@marimo-team/islands 0.23.10-dev29 → 0.23.10-dev30
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-C_uXSW2l.js → code-visibility-wR7WSQ4c.js} +1227 -986
- package/dist/main.js +1103 -1165
- package/dist/{reveal-component-BdSVsJMP.js → reveal-component-BjnkUAZ9.js} +23 -23
- package/package.json +1 -1
- package/src/components/data-table/TableBottomBar.tsx +1 -15
- package/src/components/data-table/TableTopBar.tsx +8 -13
- package/src/components/data-table/__tests__/TableBottomBar.test.tsx +6 -12
- package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +227 -0
- package/src/components/data-table/column-visibility-dropdown.tsx +204 -0
- package/src/components/data-table/data-table.tsx +1 -1
package/dist/main.js
CHANGED
|
@@ -22,11 +22,11 @@ import { _ as Logger, c as Objects, g as cn, h as Events, i as NOT_SET, l as use
|
|
|
22
22
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
23
23
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
24
24
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-UqRYxiOg.js";
|
|
25
|
-
import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleAlert, Bt as DATA_TYPE_ICON, C as AccordionContent, Cn as Root2$1, Ct as Checkbox, Dn as Table2, Dt as PathBuilder, E as BorderAllIcon, En as Trash2, F as base64ToDataView, Fn as Eye, H as getMarimoExportContext, Ht as require_client, It as jotaiJsonStorage, J as getCellNames, Jt as requestClientAtom, K as createActions, Kt as convertStatsName, L as dataViewToBase64, Ln as Database, Mn as Layers, Mt as generateUUID, Nn as Info, On as PaintRoller, Ot as Paths, Pn as FileText, Pt as repl, Q as numColumnsAtom, Rn as Columns2, S as Accordion, Sn as Item$1, St as normalizeName, T as AccordionTrigger, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, V as renderHTML, Vn as Braces,
|
|
25
|
+
import { $ as reducer, B as safeExtractSetUIElementMessageBuffers, Bn as CircleAlert, Bt as DATA_TYPE_ICON, C as AccordionContent, Cn as Root2$1, Ct as Checkbox, Dn as Table2, Dt as PathBuilder, E as BorderAllIcon, En as Trash2, F as base64ToDataView, Fn as Eye, H as getMarimoExportContext, Ht as require_client, It as jotaiJsonStorage, J as getCellNames, Jt as requestClientAtom, K as createActions, Kt as convertStatsName, L as dataViewToBase64, Ln as Database, Mn as Layers, Mt as generateUUID, Nn as Info, On as PaintRoller, Ot as Paths, Pn as FileText, Pt as repl, Q as numColumnsAtom, Rn as Columns2, S as Accordion, Sn as Item$1, St as normalizeName, T as AccordionTrigger, Tt as MarkdownLanguageAdapter, U as hasTrustedExportContext, V as renderHTML, Vn as Braces, W as hasRunAnyCellAtom, X as notebookAtom, Xt as isUninstantiated, Y as hasOnlyOneCellAtom, Yt as useRequestClient, Z as notebookOutline, _n as atomWithStorage, a as useCellFocusActions, an as parseDataset, bt as getValidName, cn as HTMLCellId, ct as initialModeAtom, dn as findCellId, et as useCellActions, f as isOutputEmpty, fn as OBJECT_ID_ATTR, ft as outputIsLoading, gn as atomWithReducer, ht as headingToIdentifier, i as LazyAnyLanguageCodeMirror, in as parseAttrValue, jn as LoaderCircle, jt as DeferredRequestRegistry, k as ChevronDownIcon, lt as kioskModeAtom, mn as jsonParseWithSpecialChar, mt as isErrorMime, n as Spinner, o as useLastFocusedCellId, on as parseInitialValue, p as useExpandedConsoleOutput, pn as RANDOM_ID_ATTR, pt as outputIsStale, qt as getRequestClient, rt as createCell, s as maybeAddAltairImport, st as getInitialAppMode, tn as NotebookScopedLocalStorage, tt as useCellIds, un as UIElementId, vn as selectAtom, w as AccordionItem, wn as Trigger2, wt as customPythonLanguageSupport, xn as Content2, xt as isInternalCellName, zt as PluralWords, __tla as __tla_0 } from "./html-to-image-UEH5lFDZ.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-BNjes6Yx.js";
|
|
27
27
|
import { o as useSize, s as Root$1, u as createLucideIcon } from "./dist-Dk6PV_d3.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-X7FwLJni.js";
|
|
29
|
-
import { $ as
|
|
29
|
+
import { $ as contextAwarePanelOpen, $t as $fae977aafc393c5c$export$6b862160d295c8e, A as prettifyRowCount, At as SELECT_COLUMN_ID, B as DatePicker, Bt as TabsContent, C as downloadSizeLimitAtom, Ct as DelayMount, D as ErrorState, Dt as loadTableAndRawData, E as EmptyState, Et as getPageIndexForRow, F as ContextMenuSeparator, Ft as Maps, G as CommandEmpty, Gt as ChartLoadingState, H as Combobox, Ht as TabsTrigger, I as ContextMenuTrigger, It as dateToLocalISODate, J as CommandList, Jt as RenderTextWithLinks, K as CommandInput, Kt as LazyVegaEmbed, L as useInternalStateWithSync, Lt as dateToLocalISODateTime, M as ContextMenu, Mt as toFieldTypes, N as ContextMenuContent, Nt as getMimeValues, O as LoadingState, Ot as loadTableData, P as ContextMenuItem, Pt as isNullishFilter, Q as PANEL_TYPES, Qt as $fae977aafc393c5c$export$588937bcd60ade55, R as useSelectList, Rt as dateToLocalISOTime, S as Filenames, St as ColumnChartSpecModel, T as ColumnPreviewContainer, Tt as usePrevious$1, U as ComboboxItem, Ut as ChartErrorState, V as DateRangePicker, Vt as TabsList, W as Command, Wt as ChartInfoState, X as smartMatch, Xt as HtmlOutput, Y as CommandSeparator, Yt as Kbd, Z as ContextAwarePanelItem, Zt as EmotionCacheProvider, _ as ADD_PRINTING_CLASS, _t as NAMELESS_COLUMN_PREFIX, an as Ellipsis, at as Toggle, b as downloadHTMLAsImage, bt as renderCellValue, c as Slide, cn as ChevronsUpDown, d as RadioGroupItem, dn as ChevronsDownUp, dt as Table, en as TextWrap, et as contextAwarePanelOwner, f as JsonOutput, fn as ChevronLeft, ft as TableBody, g as InstallPackageButton, gt as TableRow, h as DataTable, ht as TableHeader, it as slotsController, j as getColumnCountForDisplay, jt as TOO_MANY_ROWS, k as prettifyRowColumnCount, kt as INDEX_COLUMN_NAME, l as Switch, ln as ChevronsRight, lt as Fill, m as OutputRenderer, mt as TableHead, n as marimoVersionAtom, nn as Funnel, nt as isCellAwareAtom, o as SLIDE_TYPE_OPTIONS_BY_VALUE, on as Download, p as OutputArea, pn as ArrowDownWideNarrow, pt as TableCell, q as CommandItem, qt as useOverflowDetection, r as showCodeInRunModeAtom, rn as EyeOff, rt as SlotNames, sn as Code, t as useNotebookCodeAvailable, tn as GripHorizontal, tt as contextAwarePanelType, u as RadioGroup, un as ChevronsLeft, ut as Provider$1, v as downloadBlob, vt as generateColumns, w as ColumnName, wt as useIntersectionObserver, x as Progress, xt as ColumnChartContext, y as downloadByURL, yt as inferFieldTypes, z as CompactChipRow, zt as Tabs, __tla as __tla_2 } from "./code-visibility-wR7WSQ4c.js";
|
|
30
30
|
import { c as Calendar, i as createReducerAndAtoms, n as useOnUnmount, o as ToggleLeft, t as useOnMount } from "./useLifecycle-00mO3OSS.js";
|
|
31
31
|
import { t as Check } from "./check-BCaJeT-J.js";
|
|
32
32
|
import { A as Icon, C as logNever, D as $18f2051aff69b9bf$export$a54013f0d02a8f82, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, F as createCollection, I as X, M as clamp$2, N as usePrevious$2, P as useDirection, R as ChevronDown, S as assertNever, a as SelectGroup, c as SelectSeparator, d as NativeSelect, i as SelectContent, j as Trigger$1, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, s as SelectLabel, t as Strings, u as SelectValue, w as $a916eb452884faea$export$b7a616150fdb9f44 } from "./strings-J57tzLr3.js";
|
|
@@ -3848,8 +3848,8 @@ let __tla = Promise.all([
|
|
|
3848
3848
|
}
|
|
3849
3849
|
}
|
|
3850
3850
|
repl(MODEL_MANAGER, "MODEL_MANAGER");
|
|
3851
|
-
var import_compiler_runtime$
|
|
3852
|
-
let c = (0, import_compiler_runtime$
|
|
3851
|
+
var import_compiler_runtime$90 = require_compiler_runtime(), NavigationMenu = import_react.forwardRef((e, r) => {
|
|
3852
|
+
let c = (0, import_compiler_runtime$90.c)(16), l, u, d, f;
|
|
3853
3853
|
c[0] === e ? (l = c[1], u = c[2], d = c[3], f = c[4]) : ({ className: u, children: l, orientation: d, ...f } = e, c[0] = e, c[1] = l, c[2] = u, c[3] = d, c[4] = f);
|
|
3854
3854
|
let m = d === "horizontal" && "max-w-max flex-1 items-center justify-center", h = d === "vertical" && "", g;
|
|
3855
3855
|
c[5] !== u || c[6] !== m || c[7] !== h ? (g = cn(m, h, "relative z-10", u), c[5] = u, c[6] = m, c[7] = h, c[8] = g) : g = c[8];
|
|
@@ -3879,7 +3879,7 @@ let __tla = Promise.all([
|
|
|
3879
3879
|
orientation: "horizontal"
|
|
3880
3880
|
}
|
|
3881
3881
|
}), NavigationMenuList = import_react.forwardRef((e, r) => {
|
|
3882
|
-
let c = (0, import_compiler_runtime$
|
|
3882
|
+
let c = (0, import_compiler_runtime$90.c)(11), l, u, d;
|
|
3883
3883
|
c[0] === e ? (l = c[1], u = c[2], d = c[3]) : ({ className: l, orientation: u, ...d } = e, c[0] = e, c[1] = l, c[2] = u, c[3] = d);
|
|
3884
3884
|
let f;
|
|
3885
3885
|
c[4] !== l || c[5] !== u ? (f = cn(navigationMenuListStyle({
|
|
@@ -3904,7 +3904,7 @@ let __tla = Promise.all([
|
|
|
3904
3904
|
orientation: "horizontal"
|
|
3905
3905
|
}
|
|
3906
3906
|
}), NavigationMenuTrigger = import_react.forwardRef((e, r) => {
|
|
3907
|
-
let c = (0, import_compiler_runtime$
|
|
3907
|
+
let c = (0, import_compiler_runtime$90.c)(12), l, u, d;
|
|
3908
3908
|
c[0] === e ? (l = c[1], u = c[2], d = c[3]) : ({ className: u, children: l, ...d } = e, c[0] = e, c[1] = l, c[2] = u, c[3] = d);
|
|
3909
3909
|
let f;
|
|
3910
3910
|
c[4] === u ? f = c[5] : (f = cn(navigationMenuTriggerStyle(), "group", u), c[4] = u, c[5] = f);
|
|
@@ -3927,7 +3927,7 @@ let __tla = Promise.all([
|
|
|
3927
3927
|
});
|
|
3928
3928
|
NavigationMenuTrigger.displayName = Trigger.displayName;
|
|
3929
3929
|
var NavigationMenuContent = import_react.forwardRef((e, r) => {
|
|
3930
|
-
let c = (0, import_compiler_runtime$
|
|
3930
|
+
let c = (0, import_compiler_runtime$90.c)(9), l, u;
|
|
3931
3931
|
c[0] === e ? (l = c[1], u = c[2]) : ({ className: l, ...u } = e, c[0] = e, c[1] = l, c[2] = u);
|
|
3932
3932
|
let d;
|
|
3933
3933
|
c[3] === l ? d = c[4] : (d = cn("left-0 top-0 w-full data-[motion^=from-]:animate-in data-[motion^=to-]:animate-out data-[motion^=from-]:fade-in data-[motion^=to-]:fade-out data-[motion=from-end]:slide-in-from-right-52 data-[motion=from-start]:slide-in-from-left-52 data-[motion=to-end]:slide-out-to-right-52 data-[motion=to-start]:slide-out-to-left-52 md:absolute md:w-auto ", l), c[3] = l, c[4] = d);
|
|
@@ -3940,7 +3940,7 @@ let __tla = Promise.all([
|
|
|
3940
3940
|
});
|
|
3941
3941
|
NavigationMenuContent.displayName = Content.displayName;
|
|
3942
3942
|
var NavigationMenuLink = Link, NavigationMenuViewport = import_react.forwardRef((e, r) => {
|
|
3943
|
-
let c = (0, import_compiler_runtime$
|
|
3943
|
+
let c = (0, import_compiler_runtime$90.c)(10), l, u;
|
|
3944
3944
|
c[0] === e ? (l = c[1], u = c[2]) : ({ className: l, ...u } = e, c[0] = e, c[1] = l, c[2] = u);
|
|
3945
3945
|
let d;
|
|
3946
3946
|
c[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = cn("absolute left-0 top-full flex justify-center"), c[3] = d) : d = c[3];
|
|
@@ -3958,7 +3958,7 @@ let __tla = Promise.all([
|
|
|
3958
3958
|
});
|
|
3959
3959
|
NavigationMenuViewport.displayName = Viewport.displayName;
|
|
3960
3960
|
var NavigationMenuIndicator = import_react.forwardRef((e, r) => {
|
|
3961
|
-
let c = (0, import_compiler_runtime$
|
|
3961
|
+
let c = (0, import_compiler_runtime$90.c)(10), l, u;
|
|
3962
3962
|
c[0] === e ? (l = c[1], u = c[2]) : ({ className: l, ...u } = e, c[0] = e, c[1] = l, c[2] = u);
|
|
3963
3963
|
let d;
|
|
3964
3964
|
c[3] === l ? d = c[4] : (d = cn("top-full z-1 flex h-1.5 items-end justify-center overflow-hidden data-[state=visible]:animate-in data-[state=hidden]:animate-out data-[state=hidden]:fade-out data-[state=visible]:fade-in", l), c[3] = l, c[4] = d);
|
|
@@ -3975,7 +3975,7 @@ let __tla = Promise.all([
|
|
|
3975
3975
|
}), c[6] = u, c[7] = r, c[8] = d, c[9] = m) : m = c[9], m;
|
|
3976
3976
|
});
|
|
3977
3977
|
NavigationMenuIndicator.displayName = Indicator.displayName;
|
|
3978
|
-
var import_compiler_runtime$
|
|
3978
|
+
var import_compiler_runtime$89 = require_compiler_runtime(), NavigationMenuPlugin = class {
|
|
3979
3979
|
constructor() {
|
|
3980
3980
|
__publicField(this, "tagName", "marimo-nav-menu");
|
|
3981
3981
|
__publicField(this, "menuItemValidator", object({
|
|
@@ -4004,7 +4004,7 @@ let __tla = Promise.all([
|
|
|
4004
4004
|
});
|
|
4005
4005
|
}
|
|
4006
4006
|
}, NavMenuComponent = (e) => {
|
|
4007
|
-
let r = (0, import_compiler_runtime$
|
|
4007
|
+
let r = (0, import_compiler_runtime$89.c)(13), { items: c, orientation: l } = e, u = _temp$28, d = _temp2$17, f = _temp3$13, p;
|
|
4008
4008
|
r[0] === l ? p = r[1] : (p = (e2) => "items" in e2 ? l === "horizontal" ? (0, import_jsx_runtime.jsx)(NavigationMenu, {
|
|
4009
4009
|
orientation: "horizontal",
|
|
4010
4010
|
children: (0, import_jsx_runtime.jsx)(NavigationMenuList, {
|
|
@@ -4085,7 +4085,7 @@ let __tla = Promise.all([
|
|
|
4085
4085
|
children: g
|
|
4086
4086
|
}), r[10] = l, r[11] = g, r[12] = _) : _ = r[12], _;
|
|
4087
4087
|
}, ListItem = import_react.forwardRef((e, r) => {
|
|
4088
|
-
let c = (0, import_compiler_runtime$
|
|
4088
|
+
let c = (0, import_compiler_runtime$89.c)(19), l, u, d, f;
|
|
4089
4089
|
c[0] === e ? (l = c[1], u = c[2], d = c[3], f = c[4]) : ({ className: u, label: d, children: l, ...f } = e, c[0] = e, c[1] = l, c[2] = u, c[3] = d, c[4] = f);
|
|
4090
4090
|
let m;
|
|
4091
4091
|
c[5] === u ? m = c[6] : (m = cn("block select-none space-y-1 rounded-md p-3 leading-none no-underline outline-hidden transition-colors hover:bg-accent hover:text-accent-foreground focus:bg-accent focus:text-accent-foreground", u), c[5] = u, c[6] = m);
|
|
@@ -4294,9 +4294,9 @@ let __tla = Promise.all([
|
|
|
4294
4294
|
isSelected: f
|
|
4295
4295
|
}
|
|
4296
4296
|
}, y.children));
|
|
4297
|
-
}), import_compiler_runtime$
|
|
4297
|
+
}), import_compiler_runtime$88 = require_compiler_runtime();
|
|
4298
4298
|
const LocaleProvider = (e) => {
|
|
4299
|
-
let r = (0, import_compiler_runtime$
|
|
4299
|
+
let r = (0, import_compiler_runtime$88.c)(5), { children: c } = e, l = useAtomValue(localeAtom), u;
|
|
4300
4300
|
r[0] === l ? u = r[1] : (u = safeLocale(l), r[0] = l, r[1] = u);
|
|
4301
4301
|
let d;
|
|
4302
4302
|
return r[2] !== c || r[3] !== u ? (d = (0, import_jsx_runtime.jsx)($18f2051aff69b9bf$export$a54013f0d02a8f82, {
|
|
@@ -6993,33 +6993,33 @@ let __tla = Promise.all([
|
|
|
6993
6993
|
}), B = C({
|
|
6994
6994
|
height: 0,
|
|
6995
6995
|
width: 0
|
|
6996
|
-
}), H = U(), W = U(), G = C(0), q = C(null),
|
|
6996
|
+
}), H = U(), W = U(), G = C(0), q = C(null), UU = C({
|
|
6997
6997
|
column: 0,
|
|
6998
6998
|
row: 0
|
|
6999
|
-
}), Z = U(),
|
|
7000
|
-
Y(x(b, $(
|
|
7001
|
-
D(
|
|
7002
|
-
}), Y(x(ut(b,
|
|
7003
|
-
D(
|
|
6999
|
+
}), Z = U(), WU = U(), GU = C(false), KU = C(0), qU = C(true), JU = C(false), YU = C(false);
|
|
7000
|
+
Y(x(b, $(KU), P(([e2, r2]) => !!r2)), () => {
|
|
7001
|
+
D(qU, false);
|
|
7002
|
+
}), Y(x(ut(b, qU, B, z, KU, JU), P(([e2, r2, c2, l2, , u2]) => e2 && !r2 && c2.height !== 0 && l2.height !== 0 && !u2)), ([, , , , e2]) => {
|
|
7003
|
+
D(JU, true), Ue(1, () => {
|
|
7004
7004
|
D(H, e2);
|
|
7005
7005
|
}), Et(x(h), () => {
|
|
7006
7006
|
D(r, [
|
|
7007
7007
|
0,
|
|
7008
7008
|
0
|
|
7009
|
-
]), D(
|
|
7009
|
+
]), D(qU, true);
|
|
7010
7010
|
});
|
|
7011
|
-
}), F(x(
|
|
7012
|
-
e2 && (D(z, e2.viewport), D(B, e2.item), D(
|
|
7013
|
-
D(
|
|
7011
|
+
}), F(x(WU, P((e2) => e2 != null && e2.scrollTop > 0), Ft(0)), L), Y(x(b, $(WU), P(([, e2]) => e2 != null)), ([, e2]) => {
|
|
7012
|
+
e2 && (D(z, e2.viewport), D(B, e2.item), D(UU, e2.gap), e2.scrollTop > 0 && (D(GU, true), Et(x(h, Kt(1)), (e3) => {
|
|
7013
|
+
D(GU, false);
|
|
7014
7014
|
}), D(m, {
|
|
7015
7015
|
top: e2.scrollTop
|
|
7016
7016
|
})));
|
|
7017
|
-
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(
|
|
7017
|
+
}), F(x(z, k(({ height: e2 }) => e2)), _), F(x(ut(V(z, xe), V(B, xe), V(UU, (e2, r2) => e2 && e2.column === r2.column && e2.row === r2.row), V(h)), k(([e2, r2, c2, l2]) => ({
|
|
7018
7018
|
gap: c2,
|
|
7019
7019
|
item: r2,
|
|
7020
7020
|
scrollTop: l2,
|
|
7021
7021
|
viewport: e2
|
|
7022
|
-
}))), Z), F(x(ut(V(I), l, V(
|
|
7022
|
+
}))), Z), F(x(ut(V(I), l, V(UU, Or), V(B, xe), V(z, xe), V(q), V(L), V(GU), V(qU), V(KU)), P(([, , , , , , , e2]) => !e2), k(([e2, [r2, c2], l2, u2, d2, f2, p2, , m2, h2]) => {
|
|
7023
7023
|
let { column: g2, row: _2 } = l2, { height: v2, width: y2 } = u2, { width: b2 } = d2;
|
|
7024
7024
|
if (p2 === 0 && (e2 === 0 || b2 === 0)) return bn;
|
|
7025
7025
|
if (y2 === 0) {
|
|
@@ -7038,23 +7038,23 @@ let __tla = Promise.all([
|
|
|
7038
7038
|
offsetTop: j2,
|
|
7039
7039
|
top: j2
|
|
7040
7040
|
};
|
|
7041
|
-
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R,
|
|
7041
|
+
})), R), F(x(q, P((e2) => e2 !== null), k((e2) => e2.length)), I), F(x(ut(z, B, R, UU), P(([e2, r2, { items: c2 }]) => c2.length > 0 && r2.height !== 0 && e2.height !== 0), k(([e2, r2, { items: c2 }, l2]) => {
|
|
7042
7042
|
let { bottom: u2, top: d2 } = Bn(e2, l2, r2, c2);
|
|
7043
7043
|
return [
|
|
7044
7044
|
d2,
|
|
7045
7045
|
u2
|
|
7046
7046
|
];
|
|
7047
7047
|
}), J(ce)), r);
|
|
7048
|
-
let
|
|
7049
|
-
F(x(h, $(
|
|
7050
|
-
let
|
|
7048
|
+
let XU = C(false);
|
|
7049
|
+
F(x(h, $(XU), k(([e2, r2]) => r2 || e2 !== 0)), XU);
|
|
7050
|
+
let ZU = bt(x(ut(R, I), P(([{ items: e2 }]) => e2.length > 0), $(XU), P(([[e2, r2], c2]) => {
|
|
7051
7051
|
let l2 = e2.items[e2.items.length - 1].index === r2 - 1;
|
|
7052
7052
|
return (c2 || e2.bottom > 0 && e2.itemHeight > 0 && e2.offsetBottom === 0 && e2.items.length === r2) && l2;
|
|
7053
|
-
}), k(([[, e2]]) => e2 - 1), J())),
|
|
7053
|
+
}), k(([[, e2]]) => e2 - 1), J())), QU = bt(x(V(R), P(({ items: e2 }) => e2.length > 0 && e2[0].index === 0), Ft(0), J())), $U = bt(x(V(R), $(GU), P(([{ items: e2 }, r2]) => e2.length > 0 && !r2), k(([{ items: e2 }]) => ({
|
|
7054
7054
|
endIndex: e2[e2.length - 1].index,
|
|
7055
7055
|
startIndex: e2[0].index
|
|
7056
7056
|
})), J(An), Gt(0)));
|
|
7057
|
-
F(
|
|
7057
|
+
F($U, y.scrollSeekRangeChanged), F(x(H, $(z, B, I, UU), k(([e2, r2, c2, l2, u2]) => {
|
|
7058
7058
|
let d2 = $n(e2), { align: f2, behavior: p2, offset: m2 } = d2, h2 = d2.index;
|
|
7059
7059
|
h2 === "LAST" && (h2 = l2 - 1), h2 = re(0, h2, Oe(l2 - 1, h2));
|
|
7060
7060
|
let g2 = Me(r2, u2, c2, h2);
|
|
@@ -7063,7 +7063,7 @@ let __tla = Promise.all([
|
|
|
7063
7063
|
top: g2
|
|
7064
7064
|
};
|
|
7065
7065
|
})), m);
|
|
7066
|
-
let
|
|
7066
|
+
let eW = ht(x(R, k((e2) => e2.offsetBottom + e2.bottom)), 0);
|
|
7067
7067
|
return F(x(j, k((e2) => ({
|
|
7068
7068
|
height: e2.visibleHeight,
|
|
7069
7069
|
width: e2.visibleWidth
|
|
@@ -7072,13 +7072,13 @@ let __tla = Promise.all([
|
|
|
7072
7072
|
data: q,
|
|
7073
7073
|
deviation: G,
|
|
7074
7074
|
footerHeight: u,
|
|
7075
|
-
gap:
|
|
7075
|
+
gap: UU,
|
|
7076
7076
|
headerHeight: d,
|
|
7077
7077
|
increaseViewportBy: e,
|
|
7078
7078
|
initialItemCount: L,
|
|
7079
7079
|
itemDimensions: B,
|
|
7080
7080
|
overscan: c,
|
|
7081
|
-
restoreStateFrom:
|
|
7081
|
+
restoreStateFrom: WU,
|
|
7082
7082
|
scrollBy: f,
|
|
7083
7083
|
scrollContainerState: p,
|
|
7084
7084
|
scrollHeight: W,
|
|
@@ -7094,16 +7094,16 @@ let __tla = Promise.all([
|
|
|
7094
7094
|
windowViewportRect: j,
|
|
7095
7095
|
...y,
|
|
7096
7096
|
gridState: R,
|
|
7097
|
-
horizontalDirection:
|
|
7098
|
-
initialTopMostItemIndex:
|
|
7099
|
-
totalListHeight:
|
|
7097
|
+
horizontalDirection: YU,
|
|
7098
|
+
initialTopMostItemIndex: KU,
|
|
7099
|
+
totalListHeight: eW,
|
|
7100
7100
|
...v,
|
|
7101
|
-
endReached:
|
|
7101
|
+
endReached: ZU,
|
|
7102
7102
|
propsReady: S,
|
|
7103
|
-
rangeChanged:
|
|
7104
|
-
startReached:
|
|
7103
|
+
rangeChanged: $U,
|
|
7104
|
+
startReached: QU,
|
|
7105
7105
|
stateChanged: Z,
|
|
7106
|
-
stateRestoreInProgress:
|
|
7106
|
+
stateRestoreInProgress: GU,
|
|
7107
7107
|
...M
|
|
7108
7108
|
};
|
|
7109
7109
|
}, tt(je, It, he, Zn, _t, qe, Wt));
|
|
@@ -7328,9 +7328,9 @@ let __tla = Promise.all([
|
|
|
7328
7328
|
function kn(e, r, c) {
|
|
7329
7329
|
return r !== "normal" && !(r != null && r.endsWith("px")) && c(`${e} was not resolved to pixel value correctly`, r, Ct.WARN), r === "normal" ? 0 : parseInt(r ?? "0", 10);
|
|
7330
7330
|
}
|
|
7331
|
-
var import_compiler_runtime$
|
|
7331
|
+
var import_compiler_runtime$87 = require_compiler_runtime();
|
|
7332
7332
|
function OptionRowImpl(e) {
|
|
7333
|
-
let r = (0, import_compiler_runtime$
|
|
7333
|
+
let r = (0, import_compiler_runtime$87.c)(9), { option: c, checked: l, renderOption: u } = e, d = l || void 0, f = c.value, p;
|
|
7334
7334
|
r[0] !== l || r[1] !== c || r[2] !== u ? (p = u ? u(c, {
|
|
7335
7335
|
checked: l
|
|
7336
7336
|
}) : c.label, r[0] = l, r[1] = c, r[2] = u, r[3] = p) : p = r[3];
|
|
@@ -7347,7 +7347,7 @@ let __tla = Promise.all([
|
|
|
7347
7347
|
function renderSlot(e, ...r) {
|
|
7348
7348
|
return typeof e == "function" ? e(...r) : e;
|
|
7349
7349
|
}
|
|
7350
|
-
var import_compiler_runtime$
|
|
7350
|
+
var import_compiler_runtime$86 = require_compiler_runtime();
|
|
7351
7351
|
function bulkActionLabel(e) {
|
|
7352
7352
|
switch (e.kind) {
|
|
7353
7353
|
case "select-all":
|
|
@@ -7361,7 +7361,7 @@ let __tla = Promise.all([
|
|
|
7361
7361
|
}
|
|
7362
7362
|
}
|
|
7363
7363
|
function SelectList(e) {
|
|
7364
|
-
let r = (0, import_compiler_runtime$
|
|
7364
|
+
let r = (0, import_compiler_runtime$86.c)(55), { options: c, value: l, onChange: u, multiple: d, maxSelections: f, allowSelectNone: m, pinSelected: h, compactChipTrigger: g, placeholder: _, disabled: v, fullWidth: y, className: b, id: S, renderOption: w, renderEmpty: T, virtualizeThreshold: E, virtualizedHeight: O } = e, j = h === void 0 ? false : h, M = g === void 0 ? false : g, I = _ === void 0 ? "Select..." : _, L = v === void 0 ? false : v, R = y === void 0 ? false : y, z = T === void 0 ? "Nothing found." : T, B = E === void 0 ? 200 : E, H = O === void 0 ? 200 : O, W;
|
|
7365
7365
|
r[0] !== m || r[1] !== f || r[2] !== d || r[3] !== u || r[4] !== c || r[5] !== j || r[6] !== l ? (W = {
|
|
7366
7366
|
options: c,
|
|
7367
7367
|
value: l,
|
|
@@ -7381,7 +7381,7 @@ let __tla = Promise.all([
|
|
|
7381
7381
|
let r2 = Array.isArray(e2) ? e2 : [];
|
|
7382
7382
|
f != null && r2.length > f && (r2 = r2.slice(-f)), u(r2);
|
|
7383
7383
|
}, r[8] = m, r[9] = f, r[10] = d, r[11] = u, r[12] = q) : q = r[12];
|
|
7384
|
-
let
|
|
7384
|
+
let UU = q, Z;
|
|
7385
7385
|
if (r[13] !== G.bulkActions) {
|
|
7386
7386
|
if (Z = G.bulkActions.map(_temp$27), Z.length > 0) {
|
|
7387
7387
|
let e2;
|
|
@@ -7391,12 +7391,12 @@ let __tla = Promise.all([
|
|
|
7391
7391
|
}
|
|
7392
7392
|
r[13] = G.bulkActions, r[14] = Z;
|
|
7393
7393
|
} else Z = r[14];
|
|
7394
|
-
let
|
|
7395
|
-
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (
|
|
7394
|
+
let WU;
|
|
7395
|
+
r[16] !== G.pinnedCount || r[17] !== G.visibleOptions.length ? (WU = (e2) => G.pinnedCount > 0 && e2 === G.pinnedCount && G.pinnedCount < G.visibleOptions.length ? (0, import_jsx_runtime.jsx)(CommandSeparator, {
|
|
7396
7396
|
"data-slot": "select-separator"
|
|
7397
|
-
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] =
|
|
7398
|
-
let
|
|
7399
|
-
r[19] !== Z || r[20] !== G || r[21] !==
|
|
7397
|
+
}, "_pinned_separator") : null, r[16] = G.pinnedCount, r[17] = G.visibleOptions.length, r[18] = WU) : WU = r[18];
|
|
7398
|
+
let GU = WU, KU;
|
|
7399
|
+
r[19] !== Z || r[20] !== G || r[21] !== GU || r[22] !== w || r[23] !== B || r[24] !== H ? (KU = () => {
|
|
7400
7400
|
if (G.visibleOptions.length > B) return (0, import_jsx_runtime.jsx)(Yr, {
|
|
7401
7401
|
"data-slot": "select-list",
|
|
7402
7402
|
style: {
|
|
@@ -7409,7 +7409,7 @@ let __tla = Promise.all([
|
|
|
7409
7409
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
7410
7410
|
children: [
|
|
7411
7411
|
e3 === 0 && Z,
|
|
7412
|
-
|
|
7412
|
+
GU(e3),
|
|
7413
7413
|
(0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7414
7414
|
option: r2,
|
|
7415
7415
|
checked: G.isChecked(r2.value),
|
|
@@ -7420,7 +7420,7 @@ let __tla = Promise.all([
|
|
|
7420
7420
|
}
|
|
7421
7421
|
});
|
|
7422
7422
|
let e2 = G.visibleOptions.flatMap((e3, r2) => {
|
|
7423
|
-
let c2 =
|
|
7423
|
+
let c2 = GU(r2), l2 = (0, import_jsx_runtime.jsx)(OptionRow, {
|
|
7424
7424
|
option: e3,
|
|
7425
7425
|
checked: G.isChecked(e3.value),
|
|
7426
7426
|
renderOption: w
|
|
@@ -7438,9 +7438,9 @@ let __tla = Promise.all([
|
|
|
7438
7438
|
e2
|
|
7439
7439
|
]
|
|
7440
7440
|
});
|
|
7441
|
-
}, r[19] = Z, r[20] = G, r[21] =
|
|
7442
|
-
let
|
|
7443
|
-
r[26] !== G.labelOf || r[27] !== I ? (
|
|
7441
|
+
}, r[19] = Z, r[20] = G, r[21] = GU, r[22] = w, r[23] = B, r[24] = H, r[25] = KU) : KU = r[25];
|
|
7442
|
+
let qU = KU, JU;
|
|
7443
|
+
r[26] !== G.labelOf || r[27] !== I ? (JU = (e2) => {
|
|
7444
7444
|
let r2 = Array.isArray(e2) ? e2 : e2 == null ? [] : [
|
|
7445
7445
|
e2
|
|
7446
7446
|
];
|
|
@@ -7451,46 +7451,46 @@ let __tla = Promise.all([
|
|
|
7451
7451
|
items: r2.map(G.labelOf),
|
|
7452
7452
|
max: 3
|
|
7453
7453
|
});
|
|
7454
|
-
}, r[26] = G.labelOf, r[27] = I, r[28] =
|
|
7455
|
-
let
|
|
7456
|
-
r[29] === G ?
|
|
7457
|
-
let
|
|
7458
|
-
r[31] !== b || r[32] !== R ? (
|
|
7454
|
+
}, r[26] = G.labelOf, r[27] = I, r[28] = JU) : JU = r[28];
|
|
7455
|
+
let YU = JU, XU = e["data-testid"], ZU;
|
|
7456
|
+
r[29] === G ? ZU = r[30] : (ZU = (e2) => G.labelOf(e2), r[29] = G, r[30] = ZU);
|
|
7457
|
+
let QU = M ? YU : void 0, $U;
|
|
7458
|
+
r[31] !== b || r[32] !== R ? ($U = cn({
|
|
7459
7459
|
"w-full": R
|
|
7460
|
-
}, b), r[31] = b, r[32] = R, r[33] =
|
|
7461
|
-
let
|
|
7462
|
-
r[34] === z ?
|
|
7463
|
-
let
|
|
7464
|
-
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !==
|
|
7460
|
+
}, b), r[31] = b, r[32] = R, r[33] = $U) : $U = r[33];
|
|
7461
|
+
let eW = G.searchQuery, tW = G.setSearchQuery, nW = G.open, rW = G.setOpen, iW;
|
|
7462
|
+
r[34] === z ? iW = r[35] : (iW = renderSlot(z), r[34] = z, r[35] = iW);
|
|
7463
|
+
let aW;
|
|
7464
|
+
r[36] !== L || r[37] !== S || r[38] !== G.open || r[39] !== G.searchQuery || r[40] !== G.setOpen || r[41] !== G.setSearchQuery || r[42] !== I || r[43] !== XU || r[44] !== ZU || r[45] !== QU || r[46] !== $U || r[47] !== iW ? (aW = {
|
|
7465
7465
|
"data-slot": "select-root",
|
|
7466
|
-
"data-testid":
|
|
7467
|
-
displayValue:
|
|
7468
|
-
renderValue:
|
|
7466
|
+
"data-testid": XU,
|
|
7467
|
+
displayValue: ZU,
|
|
7468
|
+
renderValue: QU,
|
|
7469
7469
|
placeholder: I,
|
|
7470
|
-
className:
|
|
7470
|
+
className: $U,
|
|
7471
7471
|
shouldFilter: false,
|
|
7472
|
-
search:
|
|
7473
|
-
onSearchChange:
|
|
7474
|
-
open:
|
|
7475
|
-
onOpenChange:
|
|
7476
|
-
emptyState:
|
|
7472
|
+
search: eW,
|
|
7473
|
+
onSearchChange: tW,
|
|
7474
|
+
open: nW,
|
|
7475
|
+
onOpenChange: rW,
|
|
7476
|
+
emptyState: iW,
|
|
7477
7477
|
disabled: L,
|
|
7478
7478
|
id: S
|
|
7479
|
-
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] =
|
|
7480
|
-
let
|
|
7481
|
-
return r[49] !==
|
|
7482
|
-
...
|
|
7479
|
+
}, r[36] = L, r[37] = S, r[38] = G.open, r[39] = G.searchQuery, r[40] = G.setOpen, r[41] = G.setSearchQuery, r[42] = I, r[43] = XU, r[44] = ZU, r[45] = QU, r[46] = $U, r[47] = iW, r[48] = aW) : aW = r[48];
|
|
7480
|
+
let oW = aW, sW;
|
|
7481
|
+
return r[49] !== oW || r[50] !== UU || r[51] !== d || r[52] !== qU || r[53] !== l ? (sW = d ? (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7482
|
+
...oW,
|
|
7483
7483
|
multiple: true,
|
|
7484
7484
|
value: l,
|
|
7485
|
-
onValueChange:
|
|
7486
|
-
children:
|
|
7485
|
+
onValueChange: UU,
|
|
7486
|
+
children: qU()
|
|
7487
7487
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
7488
|
-
...
|
|
7488
|
+
...oW,
|
|
7489
7489
|
multiple: false,
|
|
7490
7490
|
value: l,
|
|
7491
|
-
onValueChange:
|
|
7492
|
-
children:
|
|
7493
|
-
}), r[49] =
|
|
7491
|
+
onValueChange: UU,
|
|
7492
|
+
children: qU()
|
|
7493
|
+
}), r[49] = oW, r[50] = UU, r[51] = d, r[52] = qU, r[53] = l, r[54] = sW) : sW = r[54], sW;
|
|
7494
7494
|
}
|
|
7495
7495
|
function _temp$27(e) {
|
|
7496
7496
|
let r = "enabled" in e ? !e.enabled : e.items.length === 0;
|
|
@@ -7505,9 +7505,9 @@ let __tla = Promise.all([
|
|
|
7505
7505
|
children: bulkActionLabel(e)
|
|
7506
7506
|
}, e.kind);
|
|
7507
7507
|
}
|
|
7508
|
-
var import_compiler_runtime$
|
|
7508
|
+
var import_compiler_runtime$85 = require_compiler_runtime(), Accordion$1 = Root2$1, AccordionContent$1 = Content2, AccordionItem$1 = Item$1, AccordionTrigger$1 = Trigger2;
|
|
7509
7509
|
const BadPluginData = (e) => {
|
|
7510
|
-
let r = (0, import_compiler_runtime$
|
|
7510
|
+
let r = (0, import_compiler_runtime$85.c)(16), { error: c, badData: l, shadowRoot: u } = e;
|
|
7511
7511
|
if (c instanceof ZodError) {
|
|
7512
7512
|
let e2;
|
|
7513
7513
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
@@ -7987,9 +7987,9 @@ let __tla = Promise.all([
|
|
|
7987
7987
|
}
|
|
7988
7988
|
};
|
|
7989
7989
|
}
|
|
7990
|
-
var import_compiler_runtime$
|
|
7990
|
+
var import_compiler_runtime$84 = require_compiler_runtime();
|
|
7991
7991
|
function useAnyWidgetModule(e) {
|
|
7992
|
-
let r = (0, import_compiler_runtime$
|
|
7992
|
+
let r = (0, import_compiler_runtime$84.c)(16), { jsUrl: c, jsHash: l } = e, u;
|
|
7993
7993
|
r[0] !== l || r[1] !== c ? (u = async () => await WIDGET_DEF_REGISTRY.getModule(c, l), r[0] = l, r[1] = c, r[2] = u) : u = r[2];
|
|
7994
7994
|
let d;
|
|
7995
7995
|
r[3] === l ? d = r[4] : (d = [
|
|
@@ -8043,7 +8043,7 @@ let __tla = Promise.all([
|
|
|
8043
8043
|
...e
|
|
8044
8044
|
}));
|
|
8045
8045
|
var AnyWidgetSlot = (e) => {
|
|
8046
|
-
let r = (0, import_compiler_runtime$
|
|
8046
|
+
let r = (0, import_compiler_runtime$84.c)(14), { jsUrl: c, jsHash: l, modelId: u } = e.data, d = e.host, f;
|
|
8047
8047
|
r[0] !== l || r[1] !== c ? (f = {
|
|
8048
8048
|
jsUrl: c,
|
|
8049
8049
|
jsHash: l
|
|
@@ -8084,7 +8084,7 @@ let __tla = Promise.all([
|
|
|
8084
8084
|
return e.default ? typeof e.default == "function" || typeof ((_a3 = e.default) == null ? void 0 : _a3.render) == "function" || typeof ((_b3 = e.default) == null ? void 0 : _b3.initialize) == "function" : false;
|
|
8085
8085
|
}
|
|
8086
8086
|
var LoadedSlot = (e) => {
|
|
8087
|
-
let r = (0, import_compiler_runtime$
|
|
8087
|
+
let r = (0, import_compiler_runtime$84.c)(9), { widget: c, modelId: l, host: u } = e, f = (0, import_react.useRef)(null), p, m;
|
|
8088
8088
|
r[0] === l ? (p = r[1], m = r[2]) : (p = MODEL_MANAGER.getSync(l), p || Logger.error("Model not found for modelId", l), m = p == null ? void 0 : p.get("_css"), r[0] = l, r[1] = p, r[2] = m), useMountCss(m, u);
|
|
8089
8089
|
let h, g;
|
|
8090
8090
|
r[3] !== p || r[4] !== l || r[5] !== c ? (h = () => {
|
|
@@ -8100,9 +8100,9 @@ let __tla = Promise.all([
|
|
|
8100
8100
|
return r[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (0, import_jsx_runtime.jsx)("div", {
|
|
8101
8101
|
ref: f
|
|
8102
8102
|
}), r[8] = _) : _ = r[8], _;
|
|
8103
|
-
}, import_compiler_runtime$
|
|
8103
|
+
}, import_compiler_runtime$83 = require_compiler_runtime();
|
|
8104
8104
|
const KeyboardHotkeys = (e) => {
|
|
8105
|
-
let r = (0, import_compiler_runtime$
|
|
8105
|
+
let r = (0, import_compiler_runtime$83.c)(10), { shortcut: c, className: l } = e;
|
|
8106
8106
|
if (c === NOT_SET || c === "") {
|
|
8107
8107
|
let e2;
|
|
8108
8108
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)("span", {}), r[0] = e2) : e2 = r[0], e2;
|
|
@@ -8118,7 +8118,7 @@ let __tla = Promise.all([
|
|
|
8118
8118
|
children: d
|
|
8119
8119
|
}), r[7] = u, r[8] = d, r[9] = f) : f = r[9], f;
|
|
8120
8120
|
}, MinimalHotkeys = (e) => {
|
|
8121
|
-
let r = (0, import_compiler_runtime$
|
|
8121
|
+
let r = (0, import_compiler_runtime$83.c)(12), { shortcut: c, className: l } = e;
|
|
8122
8122
|
if (c === NOT_SET || c === "") {
|
|
8123
8123
|
let e2;
|
|
8124
8124
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)("span", {}), r[0] = e2) : e2 = r[0], e2;
|
|
@@ -8367,9 +8367,9 @@ let __tla = Promise.all([
|
|
|
8367
8367
|
return "success";
|
|
8368
8368
|
}
|
|
8369
8369
|
}
|
|
8370
|
-
var import_compiler_runtime$
|
|
8370
|
+
var import_compiler_runtime$82 = require_compiler_runtime();
|
|
8371
8371
|
const Labeled = (e) => {
|
|
8372
|
-
let r = (0, import_compiler_runtime$
|
|
8372
|
+
let r = (0, import_compiler_runtime$82.c)(27), { label: c, children: l, align: u, className: d, labelClassName: f, fullWidth: m, id: h } = e, g = u === void 0 ? "left" : u;
|
|
8373
8373
|
if (m && (g = "top"), !c) {
|
|
8374
8374
|
if (g === "top") {
|
|
8375
8375
|
let e3;
|
|
@@ -8413,7 +8413,7 @@ let __tla = Promise.all([
|
|
|
8413
8413
|
]
|
|
8414
8414
|
}), r[23] = l, r[24] = b, r[25] = j, r[26] = M) : M = r[26], M;
|
|
8415
8415
|
};
|
|
8416
|
-
var import_compiler_runtime$
|
|
8416
|
+
var import_compiler_runtime$81 = require_compiler_runtime(), CheckboxPlugin = class {
|
|
8417
8417
|
constructor() {
|
|
8418
8418
|
__publicField(this, "tagName", "marimo-checkbox");
|
|
8419
8419
|
__publicField(this, "validator", object({
|
|
@@ -8428,7 +8428,7 @@ let __tla = Promise.all([
|
|
|
8428
8428
|
});
|
|
8429
8429
|
}
|
|
8430
8430
|
}, CheckboxComponent = (e) => {
|
|
8431
|
-
let r = (0, import_compiler_runtime$
|
|
8431
|
+
let r = (0, import_compiler_runtime$81.c)(11), { value: c, setValue: l, data: u } = e, d;
|
|
8432
8432
|
r[0] === l ? d = r[1] : (d = (e2) => {
|
|
8433
8433
|
e2 !== "indeterminate" && l(e2);
|
|
8434
8434
|
}, r[0] = l, r[1] = d);
|
|
@@ -8447,7 +8447,7 @@ let __tla = Promise.all([
|
|
|
8447
8447
|
id: p,
|
|
8448
8448
|
children: m
|
|
8449
8449
|
}), r[7] = u.label, r[8] = p, r[9] = m, r[10] = h) : h = r[10], h;
|
|
8450
|
-
}, import_compiler_runtime$
|
|
8450
|
+
}, import_compiler_runtime$80 = require_compiler_runtime(), CodeEditorPlugin = class {
|
|
8451
8451
|
constructor() {
|
|
8452
8452
|
__publicField(this, "tagName", "marimo-code-editor");
|
|
8453
8453
|
__publicField(this, "validator", object({
|
|
@@ -8477,7 +8477,7 @@ let __tla = Promise.all([
|
|
|
8477
8477
|
});
|
|
8478
8478
|
}
|
|
8479
8479
|
}, CodeEditorComponent = (e) => {
|
|
8480
|
-
let r = (0, import_compiler_runtime$
|
|
8480
|
+
let r = (0, import_compiler_runtime$80.c)(34), { theme: c } = useTheme(), l = e.theme || c, u = e.minHeight ? `${e.minHeight}px` : "70px", d = e.maxHeight ? `${e.maxHeight}px` : void 0, [f, p] = (0, import_react.useState)(e.value), m = Number.isFinite(e.debounce) ? e.debounce : 0, h = !Number.isFinite(e.debounce), g;
|
|
8481
8481
|
r[0] !== e.setValue || r[1] !== e.value || r[2] !== m || r[3] !== h ? (g = {
|
|
8482
8482
|
initialValue: e.value,
|
|
8483
8483
|
delay: m,
|
|
@@ -8617,9 +8617,9 @@ let __tla = Promise.all([
|
|
|
8617
8617
|
})
|
|
8618
8618
|
});
|
|
8619
8619
|
});
|
|
8620
|
-
var dist_default = '.marimo .gdg-r17m35ur{background-color:var(--gdg-bg-header-has-focus);box-shadow:0 0 0 1px var(--gdg-border-color);color:var(--gdg-text-group-header);font:var(--gdg-header-font-style)var(--gdg-font-family);min-height:var(--r17m35ur-0);border:none;border-radius:9px;outline:none;flex-grow:1;padding:0 8px}.marimo .gdg-c1tqibwd{background-color:var(--gdg-bg-header);align-items:center;padding:0 8px}.marimo .gdg-c1tqibwd,.marimo .gdg-d19meir1{display:flex}.marimo .gdg-d19meir1{box-sizing:border-box;--overlay-top:var(--d19meir1-0);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);left:var(--d19meir1-1);max-height:calc(100vh - var(--d19meir1-4));max-width:400px;min-height:var(--d19meir1-3);min-width:var(--d19meir1-2);text-align:start;top:var(--d19meir1-0);flex-direction:column;width:max-content;position:absolute;overflow:hidden}@keyframes glide_fade_in-gdg-d19meir1{0%{opacity:0}to{opacity:1}}.marimo .gdg-d19meir1.gdg-style{background-color:var(--gdg-bg-cell);box-shadow:0 0 0 1px var(--gdg-accent-color),0 0 1px #3e415666,0 6px 12px #3e415626;border-radius:2px;animation:60ms glide_fade_in-gdg-d19meir1}.marimo .gdg-d19meir1.gdg-pad{padding:var(--d19meir1-5)8.5px 3px}.marimo .gdg-d19meir1 .gdg-clip-region{border-radius:2px;flex-direction:column;flex-grow:1;display:flex;overflow:hidden auto}.marimo .gdg-d19meir1 .gdg-clip-region .gdg-growing-entry{height:100%}.marimo .gdg-d19meir1 .gdg-clip-region input.gdg-input{border:0;outline:none;width:100%}.marimo .gdg-d19meir1 .gdg-clip-region textarea.gdg-input{border:0;outline:none}.marimo .gdg-b1ygi5by{flex-wrap:wrap;margin-top:auto;margin-bottom:auto}.marimo .gdg-b1ygi5by,.marimo .gdg-b1ygi5by .boe-bubble{display:flex}.marimo .gdg-b1ygi5by .boe-bubble{background-color:var(--gdg-bg-bubble);border-radius:var(--gdg-rounding-radius,10px);color:var(--gdg-text-dark);justify-content:center;align-items:center;height:20px;margin:2px;padding:0 8px}.marimo .gdg-b1ygi5by textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-u1rrojo{align-items:center;min-height:21px;display:flex}.marimo .gdg-u1rrojo,.marimo .gdg-u1rrojo .gdg-link-area{flex-grow:1}.marimo .gdg-u1rrojo .gdg-link-area{color:var(--gdg-link-color);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;margin-right:8px;overflow:hidden;-webkit-text-decoration:underline!important;text-decoration:underline!important}.marimo .gdg-u1rrojo .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;width:32px;display:flex}.marimo .gdg-u1rrojo .gdg-edit-icon>*{width:24px;height:24px}.marimo .gdg-u1rrojo textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-n15fjm3e{color:var(--gdg-text-dark);margin:6px 0 3px;display:flex}.marimo .gdg-n15fjm3e>input{background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);padding:0}.marimo .gdg-i2iowwq,.marimo .gdg-i2iowwq .gdg-centering-container{height:100%;display:flex}.marimo .gdg-i2iowwq .gdg-centering-container{justify-content:center;align-items:center}.marimo .gdg-i2iowwq .gdg-centering-container canvas,.marimo .gdg-i2iowwq .gdg-centering-container img{max-height:calc(100vh - var(--overlay-top) - 20px);object-fit:contain;user-select:none}.marimo .gdg-i2iowwq .gdg-centering-container canvas{max-width:380px}.marimo .gdg-i2iowwq .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;justify-content:center;align-items:center;width:48px;height:48px;display:flex;position:absolute;top:12px;right:0}.marimo .gdg-i2iowwq .gdg-edit-icon>*{width:24px;height:24px}.marimo .gdg-i2iowwq textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-m1pnx84e{min-width:var(--m1pnx84e-0);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;width:100%;color:var(--gdg-text-dark);justify-content:space-between;align-items:flex-start;display:flex;position:relative}.marimo .gdg-m1pnx84e .gdg-g1y0xocz{flex-shrink:1;min-width:0}.marimo .gdg-m1pnx84e .gdg-spacer{flex:1}.marimo .gdg-m1pnx84e .gdg-edit-icon{cursor:pointer;color:var(--gdg-accent-color);width:24px;height:24px;-webkit-transition:all "0.125s ease";transition:all "0.125s ease";border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:flex;position:relative}.marimo .gdg-m1pnx84e .gdg-edit-icon>*{width:16px;height:16px}.marimo .gdg-m1pnx84e .gdg-edit-hover:hover{background-color:var(--gdg-accent-light);transition:background-color .15s}.marimo .gdg-m1pnx84e .gdg-checkmark-hover:hover{background-color:var(--gdg-accent-color);color:#fff}.marimo .gdg-m1pnx84e .gdg-md-edit-textarea{opacity:0;width:0;height:0;margin-top:25px;padding:0;position:relative;top:0;left:0}.marimo .gdg-m1pnx84e .gdg-ml-6{margin-left:6px}.marimo .gdg-d4zsq0x{flex-wrap:wrap}.marimo .gdg-d4zsq0x,.marimo .gdg-d4zsq0x .doe-bubble{display:flex}.marimo .gdg-d4zsq0x .doe-bubble{background-color:var(--gdg-bg-cell);border-radius:var(--gdg-rounding-radius,6px);color:var(--gdg-text-dark);justify-content:center;align-items:center;height:24px;margin:2px;padding:0 8px;box-shadow:0 0 1px #3e415666,0 1px 3px #3e415666}.marimo .gdg-d4zsq0x .doe-bubble img{object-fit:contain;height:16px;margin-right:4px}.marimo .gdg-d4zsq0x textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-s1dgczr6 .dvn-scroller{overflow:var(--s1dgczr6-0);transform:translateZ(0)}.marimo .gdg-s1dgczr6 .dvn-hidden{visibility:hidden}.marimo .gdg-s1dgczr6 .dvn-scroll-inner{pointer-events:none;display:flex}.marimo .gdg-s1dgczr6 .dvn-scroll-inner>*{flex-shrink:0}.marimo .gdg-s1dgczr6 .dvn-scroll-inner .dvn-spacer{flex-grow:1}.marimo .gdg-s1dgczr6 .dvn-scroll-inner .dvn-stack{flex-direction:column;display:flex}.marimo .gdg-s1dgczr6 .dvn-underlay>*{position:absolute;top:0;left:0}.marimo .gdg-s1dgczr6 canvas{outline:none}.marimo .gdg-s1dgczr6 canvas *{height:0}.marimo .gdg-izpuzkl{font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);resize:none;white-space:pre-wrap;-webkit-text-fill-color:var(--gdg-text-dark);width:100%;min-width:100%;height:100%;color:var(--gdg-text-dark);background-color:#0000;border:0;border-radius:0;margin:0;padding:0;line-height:16px;position:absolute;inset:0;overflow:hidden}.marimo .gdg-izpuzkl::-webkit-input-placeholder{color:var(--gdg-text-light)}.marimo .gdg-izpuzkl::placeholder{color:var(--gdg-text-light)}.marimo .gdg-izpuzkl:-ms-placeholder-shown{color:var(--gdg-text-light)}.marimo .gdg-izpuzkl::placeholder{color:var(--gdg-text-light)}.marimo .gdg-invalid .gdg-izpuzkl{text-decoration:underline #d60606}.marimo .gdg-s69h75o{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;color:var(--gdg-text-dark);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);width:max-content;min-width:100%;max-width:100%;margin:0;padding:0 0 2px;line-height:16px}.marimo .gdg-g1y0xocz{margin-top:6px;position:relative}.marimo .gdg-wmyidgi{height:var(--wmyidgi-1);min-width:10px;max-width:100%;min-height:10px;max-height:100%;width:var(--wmyidgi-0);direction:ltr;position:relative;overflow:clip}.marimo .gdg-wmyidgi>:first-child{width:100%;height:100%;position:absolute;top:0;left:0}.marimo .gdg-seveqep{background-color:var(--gdg-bg-cell);border:1px solid var(--gdg-border-color);color:var(--gdg-text-dark);font-size:var(--gdg-editor-font-size);border-radius:6px;padding:8px;animation:.15s forwards gdg-search-fadein-gdg-seveqep;position:absolute;top:4px;right:20px}.marimo .gdg-seveqep.out{animation:.15s forwards gdg-search-fadeout-gdg-seveqep}.marimo .gdg-seveqep .gdg-search-bar-inner{display:flex}.marimo .gdg-seveqep .gdg-search-status{padding-top:4px;font-size:11px}.marimo .gdg-seveqep .gdg-search-progress{background-color:var(--gdg-text-light);height:4px;position:absolute;bottom:0;left:0}.marimo .gdg-seveqep input{background-color:var(--gdg-bg-cell);color:var(--gdg-textDark);border:0;outline:none;width:220px}.marimo .gdg-seveqep button{width:24px;height:24px;color:var(--gdg-text-medium);cursor:pointer;background:0 0;border:none;outline:none;justify-content:center;align-items:center;padding:0;display:flex}.marimo .gdg-seveqep button:hover{color:var(--gdg-text-dark)}.marimo .gdg-seveqep button .button-icon{width:16px;height:16px}.marimo .gdg-seveqep button:disabled{opacity:.4;pointer-events:none}@keyframes gdg-search-fadeout-gdg-seveqep{0%{transform:translate(0)}to{transform:translate(400px)}}@keyframes gdg-search-fadein-gdg-seveqep{0%{transform:translate(400px)}to{transform:translate(0)}}.marimo .gdg-mnuv029{word-break:break-word;-webkit-touch-callout:default;padding-top:6px}.marimo .gdg-mnuv029>*{margin:0}.marimo .gdg-mnuv029 :last-child{margin-bottom:0}.marimo .gdg-mnuv029 p img{width:100%}', import_compiler_runtime$
|
|
8620
|
+
var dist_default = '.marimo .gdg-r17m35ur{background-color:var(--gdg-bg-header-has-focus);box-shadow:0 0 0 1px var(--gdg-border-color);color:var(--gdg-text-group-header);font:var(--gdg-header-font-style)var(--gdg-font-family);min-height:var(--r17m35ur-0);border:none;border-radius:9px;outline:none;flex-grow:1;padding:0 8px}.marimo .gdg-c1tqibwd{background-color:var(--gdg-bg-header);align-items:center;padding:0 8px}.marimo .gdg-c1tqibwd,.marimo .gdg-d19meir1{display:flex}.marimo .gdg-d19meir1{box-sizing:border-box;--overlay-top:var(--d19meir1-0);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);left:var(--d19meir1-1);max-height:calc(100vh - var(--d19meir1-4));max-width:400px;min-height:var(--d19meir1-3);min-width:var(--d19meir1-2);text-align:start;top:var(--d19meir1-0);flex-direction:column;width:max-content;position:absolute;overflow:hidden}@keyframes glide_fade_in-gdg-d19meir1{0%{opacity:0}to{opacity:1}}.marimo .gdg-d19meir1.gdg-style{background-color:var(--gdg-bg-cell);box-shadow:0 0 0 1px var(--gdg-accent-color),0 0 1px #3e415666,0 6px 12px #3e415626;border-radius:2px;animation:60ms glide_fade_in-gdg-d19meir1}.marimo .gdg-d19meir1.gdg-pad{padding:var(--d19meir1-5)8.5px 3px}.marimo .gdg-d19meir1 .gdg-clip-region{border-radius:2px;flex-direction:column;flex-grow:1;display:flex;overflow:hidden auto}.marimo .gdg-d19meir1 .gdg-clip-region .gdg-growing-entry{height:100%}.marimo .gdg-d19meir1 .gdg-clip-region input.gdg-input{border:0;outline:none;width:100%}.marimo .gdg-d19meir1 .gdg-clip-region textarea.gdg-input{border:0;outline:none}.marimo .gdg-b1ygi5by{flex-wrap:wrap;margin-top:auto;margin-bottom:auto}.marimo .gdg-b1ygi5by,.marimo .gdg-b1ygi5by .boe-bubble{display:flex}.marimo .gdg-b1ygi5by .boe-bubble{background-color:var(--gdg-bg-bubble);border-radius:var(--gdg-rounding-radius,10px);color:var(--gdg-text-dark);justify-content:center;align-items:center;height:20px;margin:2px;padding:0 8px}.marimo .gdg-b1ygi5by textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-u1rrojo{align-items:center;min-height:21px;display:flex}.marimo .gdg-u1rrojo,.marimo .gdg-u1rrojo .gdg-link-area{flex-grow:1}.marimo .gdg-u1rrojo .gdg-link-area{color:var(--gdg-link-color);cursor:pointer;text-overflow:ellipsis;white-space:nowrap;flex-shrink:1;margin-right:8px;overflow:hidden;-webkit-text-decoration:underline!important;text-decoration:underline!important}.marimo .gdg-u1rrojo .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;flex-shrink:0;justify-content:center;align-items:center;width:32px;display:flex}.marimo .gdg-u1rrojo .gdg-edit-icon>*{width:24px;height:24px}.marimo .gdg-u1rrojo textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-n15fjm3e{color:var(--gdg-text-dark);margin:6px 0 3px;display:flex}.marimo .gdg-n15fjm3e>input{background-color:var(--gdg-bg-cell);color:var(--gdg-text-dark);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);padding:0}.marimo .gdg-i2iowwq,.marimo .gdg-i2iowwq .gdg-centering-container{height:100%;display:flex}.marimo .gdg-i2iowwq .gdg-centering-container{justify-content:center;align-items:center}.marimo .gdg-i2iowwq .gdg-centering-container canvas,.marimo .gdg-i2iowwq .gdg-centering-container img{max-height:calc(100vh - var(--overlay-top) - 20px);object-fit:contain;user-select:none}.marimo .gdg-i2iowwq .gdg-centering-container canvas{max-width:380px}.marimo .gdg-i2iowwq .gdg-edit-icon{color:var(--gdg-accent-color);cursor:pointer;justify-content:center;align-items:center;width:48px;height:48px;display:flex;position:absolute;top:12px;right:0}.marimo .gdg-i2iowwq .gdg-edit-icon>*{width:24px;height:24px}.marimo .gdg-i2iowwq textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-m1pnx84e{min-width:var(--m1pnx84e-0);-webkit-align-items:flex-start;-webkit-box-align:flex-start;-ms-flex-align:flex-start;width:100%;color:var(--gdg-text-dark);justify-content:space-between;align-items:flex-start;display:flex;position:relative}.marimo .gdg-m1pnx84e .gdg-g1y0xocz{flex-shrink:1;min-width:0}.marimo .gdg-m1pnx84e .gdg-spacer{flex:1}.marimo .gdg-m1pnx84e .gdg-edit-icon{cursor:pointer;color:var(--gdg-accent-color);width:24px;height:24px;-webkit-transition:all "0.125s ease";transition:all "0.125s ease";border-radius:6px;flex-shrink:0;justify-content:center;align-items:center;padding:0;display:flex;position:relative}.marimo .gdg-m1pnx84e .gdg-edit-icon>*{width:16px;height:16px}.marimo .gdg-m1pnx84e .gdg-edit-hover:hover{background-color:var(--gdg-accent-light);transition:background-color .15s}.marimo .gdg-m1pnx84e .gdg-checkmark-hover:hover{background-color:var(--gdg-accent-color);color:#fff}.marimo .gdg-m1pnx84e .gdg-md-edit-textarea{opacity:0;width:0;height:0;margin-top:25px;padding:0;position:relative;top:0;left:0}.marimo .gdg-m1pnx84e .gdg-ml-6{margin-left:6px}.marimo .gdg-d4zsq0x{flex-wrap:wrap}.marimo .gdg-d4zsq0x,.marimo .gdg-d4zsq0x .doe-bubble{display:flex}.marimo .gdg-d4zsq0x .doe-bubble{background-color:var(--gdg-bg-cell);border-radius:var(--gdg-rounding-radius,6px);color:var(--gdg-text-dark);justify-content:center;align-items:center;height:24px;margin:2px;padding:0 8px;box-shadow:0 0 1px #3e415666,0 1px 3px #3e415666}.marimo .gdg-d4zsq0x .doe-bubble img{object-fit:contain;height:16px;margin-right:4px}.marimo .gdg-d4zsq0x textarea{opacity:0;width:0;height:0;position:absolute;top:0;left:0}.marimo .gdg-s1dgczr6 .dvn-scroller{overflow:var(--s1dgczr6-0);transform:translateZ(0)}.marimo .gdg-s1dgczr6 .dvn-hidden{visibility:hidden}.marimo .gdg-s1dgczr6 .dvn-scroll-inner{pointer-events:none;display:flex}.marimo .gdg-s1dgczr6 .dvn-scroll-inner>*{flex-shrink:0}.marimo .gdg-s1dgczr6 .dvn-scroll-inner .dvn-spacer{flex-grow:1}.marimo .gdg-s1dgczr6 .dvn-scroll-inner .dvn-stack{flex-direction:column;display:flex}.marimo .gdg-s1dgczr6 .dvn-underlay>*{position:absolute;top:0;left:0}.marimo .gdg-s1dgczr6 canvas{outline:none}.marimo .gdg-s1dgczr6 canvas *{height:0}.marimo .gdg-izpuzkl{font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);resize:none;white-space:pre-wrap;-webkit-text-fill-color:var(--gdg-text-dark);width:100%;min-width:100%;height:100%;color:var(--gdg-text-dark);background-color:#0000;border:0;border-radius:0;margin:0;padding:0;line-height:16px;position:absolute;inset:0;overflow:hidden}.marimo .gdg-izpuzkl::-webkit-input-placeholder{color:var(--gdg-text-light)}.marimo .gdg-izpuzkl::placeholder{color:var(--gdg-text-light)}.marimo .gdg-izpuzkl:-ms-placeholder-shown{color:var(--gdg-text-light)}.marimo .gdg-izpuzkl::placeholder{color:var(--gdg-text-light)}.marimo .gdg-invalid .gdg-izpuzkl{text-decoration:underline #d60606}.marimo .gdg-s69h75o{visibility:hidden;white-space:pre-wrap;word-wrap:break-word;color:var(--gdg-text-dark);font-family:var(--gdg-font-family);font-size:var(--gdg-editor-font-size);width:max-content;min-width:100%;max-width:100%;margin:0;padding:0 0 2px;line-height:16px}.marimo .gdg-g1y0xocz{margin-top:6px;position:relative}.marimo .gdg-wmyidgi{height:var(--wmyidgi-1);min-width:10px;max-width:100%;min-height:10px;max-height:100%;width:var(--wmyidgi-0);direction:ltr;position:relative;overflow:clip}.marimo .gdg-wmyidgi>:first-child{width:100%;height:100%;position:absolute;top:0;left:0}.marimo .gdg-seveqep{background-color:var(--gdg-bg-cell);border:1px solid var(--gdg-border-color);color:var(--gdg-text-dark);font-size:var(--gdg-editor-font-size);border-radius:6px;padding:8px;animation:.15s forwards gdg-search-fadein-gdg-seveqep;position:absolute;top:4px;right:20px}.marimo .gdg-seveqep.out{animation:.15s forwards gdg-search-fadeout-gdg-seveqep}.marimo .gdg-seveqep .gdg-search-bar-inner{display:flex}.marimo .gdg-seveqep .gdg-search-status{padding-top:4px;font-size:11px}.marimo .gdg-seveqep .gdg-search-progress{background-color:var(--gdg-text-light);height:4px;position:absolute;bottom:0;left:0}.marimo .gdg-seveqep input{background-color:var(--gdg-bg-cell);color:var(--gdg-textDark);border:0;outline:none;width:220px}.marimo .gdg-seveqep button{width:24px;height:24px;color:var(--gdg-text-medium);cursor:pointer;background:0 0;border:none;outline:none;justify-content:center;align-items:center;padding:0;display:flex}.marimo .gdg-seveqep button:hover{color:var(--gdg-text-dark)}.marimo .gdg-seveqep button .button-icon{width:16px;height:16px}.marimo .gdg-seveqep button:disabled{opacity:.4;pointer-events:none}@keyframes gdg-search-fadeout-gdg-seveqep{0%{transform:translate(0)}to{transform:translate(400px)}}@keyframes gdg-search-fadein-gdg-seveqep{0%{transform:translate(400px)}to{transform:translate(0)}}.marimo .gdg-mnuv029{word-break:break-word;-webkit-touch-callout:default;padding-top:6px}.marimo .gdg-mnuv029>*{margin:0}.marimo .gdg-mnuv029 :last-child{margin-bottom:0}.marimo .gdg-mnuv029 p img{width:100%}', import_compiler_runtime$79 = require_compiler_runtime();
|
|
8621
8621
|
const LoadingTable = (e) => {
|
|
8622
|
-
let r = (0, import_compiler_runtime$
|
|
8622
|
+
let r = (0, import_compiler_runtime$79.c)(14), { wrapperClassName: c, className: l, pageSize: u } = e, d = u === void 0 ? 10 : u, f;
|
|
8623
8623
|
r[0] === c ? f = r[1] : (f = cn(c, "flex flex-col space-y-2"), r[0] = c, r[1] = f);
|
|
8624
8624
|
let m = l || "rounded-md border", h;
|
|
8625
8625
|
r[2] === m ? h = r[3] : (h = cn(m), r[2] = m, r[3] = h);
|
|
@@ -8697,7 +8697,7 @@ let __tla = Promise.all([
|
|
|
8697
8697
|
"time",
|
|
8698
8698
|
"unknown"
|
|
8699
8699
|
];
|
|
8700
|
-
var import_compiler_runtime$
|
|
8700
|
+
var import_compiler_runtime$78 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-Qhu8oCX-.js").then(async (m) => {
|
|
8701
8701
|
await m.__tla;
|
|
8702
8702
|
return m;
|
|
8703
8703
|
}));
|
|
@@ -8742,7 +8742,7 @@ let __tla = Promise.all([
|
|
|
8742
8742
|
editableColumns: e.data.editableColumns
|
|
8743
8743
|
}));
|
|
8744
8744
|
var LoadingDataEditor = (e) => {
|
|
8745
|
-
let r = (0, import_compiler_runtime$
|
|
8745
|
+
let r = (0, import_compiler_runtime$78.c)(31), c;
|
|
8746
8746
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = [], r[0] = c) : c = r[0];
|
|
8747
8747
|
let [l, u] = (0, import_react.useState)(c), d;
|
|
8748
8748
|
r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = /* @__PURE__ */ new Map(), r[1] = d) : d = r[1];
|
|
@@ -9663,7 +9663,7 @@ let __tla = Promise.all([
|
|
|
9663
9663
|
let m2 = get(l, e2);
|
|
9664
9664
|
if (m2) {
|
|
9665
9665
|
let l2 = get(d, e2, isUndefined(c2) ? get(u, e2) : c2);
|
|
9666
|
-
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) :
|
|
9666
|
+
isUndefined(l2) || p2 && p2.defaultChecked || r2 ? set(d, e2, r2 ? l2 : getFieldValue(m2._f)) : UU(e2, l2), f.mount && w();
|
|
9667
9667
|
}
|
|
9668
9668
|
}, I = (e2, d2, f2, p2, m2) => {
|
|
9669
9669
|
let h2 = false, v2 = false, y2 = {
|
|
@@ -9736,14 +9736,14 @@ let __tla = Promise.all([
|
|
|
9736
9736
|
}, H = () => {
|
|
9737
9737
|
for (let e2 of p.unMount) {
|
|
9738
9738
|
let r2 = get(l, e2);
|
|
9739
|
-
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) &&
|
|
9739
|
+
r2 && (r2._f.refs ? r2._f.refs.every((e3) => !live(e3)) : !live(r2._f.ref)) && $U(e2);
|
|
9740
9740
|
}
|
|
9741
9741
|
p.unMount = /* @__PURE__ */ new Set();
|
|
9742
|
-
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(
|
|
9742
|
+
}, W = (e2, c2) => !r.disabled && (e2 && c2 && set(d, e2, c2), !deepEqual(JU(), u)), G = (e2, r2, c2) => generateWatchOutput(e2, p, {
|
|
9743
9743
|
...f.mount ? d : isUndefined(r2) ? u : isString(e2) ? {
|
|
9744
9744
|
[e2]: r2
|
|
9745
9745
|
} : r2
|
|
9746
|
-
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])),
|
|
9746
|
+
}, c2, r2), q = (e2) => compact$1(get(f.mount ? d : u, e2, r.shouldUnregister ? get(u, e2, []) : [])), UU = (e2, r2, c2 = {}) => {
|
|
9747
9747
|
let u2 = get(l, e2), f2 = r2;
|
|
9748
9748
|
if (u2) {
|
|
9749
9749
|
let c3 = u2._f;
|
|
@@ -9756,13 +9756,13 @@ let __tla = Promise.all([
|
|
|
9756
9756
|
}
|
|
9757
9757
|
})));
|
|
9758
9758
|
}
|
|
9759
|
-
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate &&
|
|
9759
|
+
(c2.shouldDirty || c2.shouldTouch) && I(e2, f2, c2.shouldTouch, c2.shouldDirty, true), c2.shouldValidate && qU(e2);
|
|
9760
9760
|
}, Z = (e2, r2, c2) => {
|
|
9761
9761
|
for (let u2 in r2) {
|
|
9762
9762
|
let d2 = r2[u2], f2 = `${e2}.${u2}`, m2 = get(l, f2);
|
|
9763
|
-
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) :
|
|
9763
|
+
(p.array.has(e2) || isObject$1(d2) || m2 && !m2._f) && !isDateObject(d2) ? Z(f2, d2, c2) : UU(f2, d2, c2);
|
|
9764
9764
|
}
|
|
9765
|
-
},
|
|
9765
|
+
}, WU = (e2, r2, m2 = {}) => {
|
|
9766
9766
|
let h2 = get(l, e2), v2 = p.array.has(e2), y2 = cloneObject(r2);
|
|
9767
9767
|
set(d, e2, y2), v2 ? (_.array.next({
|
|
9768
9768
|
name: e2,
|
|
@@ -9773,7 +9773,7 @@ let __tla = Promise.all([
|
|
|
9773
9773
|
name: e2,
|
|
9774
9774
|
dirtyFields: getDirtyFields(u, d),
|
|
9775
9775
|
isDirty: W(e2, y2)
|
|
9776
|
-
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) :
|
|
9776
|
+
})) : h2 && !h2._f && !isNullOrUndefined(y2) ? Z(e2, y2, m2) : UU(e2, y2, m2), isWatched(e2, p) && _.state.next({
|
|
9777
9777
|
...c
|
|
9778
9778
|
}), _.values.next({
|
|
9779
9779
|
name: f.mount ? e2 : void 0,
|
|
@@ -9781,7 +9781,7 @@ let __tla = Promise.all([
|
|
|
9781
9781
|
...d
|
|
9782
9782
|
}
|
|
9783
9783
|
});
|
|
9784
|
-
},
|
|
9784
|
+
}, GU = async (e2) => {
|
|
9785
9785
|
f.mount = true;
|
|
9786
9786
|
let u2 = e2.target, h2 = u2.name, S2 = true, E2 = get(l, h2), O2 = () => u2.type ? getFieldValue(E2._f) : getEventValue(e2), j2 = (e3) => {
|
|
9787
9787
|
S2 = Number.isNaN(e3) || isDateObject(e3) && isNaN(e3.getTime()) || deepEqual(e3, get(d, h2, e3));
|
|
@@ -9815,11 +9815,11 @@ let __tla = Promise.all([
|
|
|
9815
9815
|
], true), u3 = (await validateField(E2, p.disabled, d, b, r.shouldUseNativeValidation))[h2], T([
|
|
9816
9816
|
h2
|
|
9817
9817
|
]), j2(M2), S2 && (u3 ? f2 = false : g.isValid && (f2 = await B(l, true)));
|
|
9818
|
-
S2 && (E2._f.deps &&
|
|
9818
|
+
S2 && (E2._f.deps && qU(E2._f.deps), L(h2, f2, u3, G2));
|
|
9819
9819
|
}
|
|
9820
|
-
},
|
|
9820
|
+
}, KU = (e2, r2) => {
|
|
9821
9821
|
if (get(c.errors, r2) && e2.focus) return e2.focus(), 1;
|
|
9822
|
-
},
|
|
9822
|
+
}, qU = async (e2, u2 = {}) => {
|
|
9823
9823
|
let d2, f2, m2 = convertToArrayPayload(e2);
|
|
9824
9824
|
if (r.resolver) {
|
|
9825
9825
|
let r2 = await z(isUndefined(e2) ? e2 : m2);
|
|
@@ -9838,23 +9838,23 @@ let __tla = Promise.all([
|
|
|
9838
9838
|
isValid: d2
|
|
9839
9839
|
} : {},
|
|
9840
9840
|
errors: c.errors
|
|
9841
|
-
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l,
|
|
9842
|
-
},
|
|
9841
|
+
}), u2.shouldFocus && !f2 && iterateFieldsByAction(l, KU, e2 ? m2 : p.mount), f2;
|
|
9842
|
+
}, JU = (e2) => {
|
|
9843
9843
|
let r2 = {
|
|
9844
9844
|
...f.mount ? d : u
|
|
9845
9845
|
};
|
|
9846
9846
|
return isUndefined(e2) ? r2 : isString(e2) ? get(r2, e2) : e2.map((e3) => get(r2, e3));
|
|
9847
|
-
},
|
|
9847
|
+
}, YU = (e2, r2) => ({
|
|
9848
9848
|
invalid: !!get((r2 || c).errors, e2),
|
|
9849
9849
|
isDirty: !!get((r2 || c).dirtyFields, e2),
|
|
9850
9850
|
error: get((r2 || c).errors, e2),
|
|
9851
9851
|
isValidating: !!get(c.validatingFields, e2),
|
|
9852
9852
|
isTouched: !!get((r2 || c).touchedFields, e2)
|
|
9853
|
-
}),
|
|
9853
|
+
}), XU = (e2) => {
|
|
9854
9854
|
e2 && convertToArrayPayload(e2).forEach((e3) => unset(c.errors, e3)), _.state.next({
|
|
9855
9855
|
errors: e2 ? c.errors : {}
|
|
9856
9856
|
});
|
|
9857
|
-
},
|
|
9857
|
+
}, ZU = (e2, r2, u2) => {
|
|
9858
9858
|
let d2 = (get(l, e2, {
|
|
9859
9859
|
_f: {}
|
|
9860
9860
|
})._f || {}).ref, { ref: f2, message: p2, type: m2, ...h2 } = get(c.errors, e2) || {};
|
|
@@ -9867,9 +9867,9 @@ let __tla = Promise.all([
|
|
|
9867
9867
|
errors: c.errors,
|
|
9868
9868
|
isValid: false
|
|
9869
9869
|
}), u2 && u2.shouldFocus && d2 && d2.focus && d2.focus();
|
|
9870
|
-
},
|
|
9870
|
+
}, QU = (e2, r2) => isFunction$1(e2) ? _.values.subscribe({
|
|
9871
9871
|
next: (c2) => e2(G(void 0, r2), c2)
|
|
9872
|
-
}) : G(e2, r2, true),
|
|
9872
|
+
}) : G(e2, r2, true), $U = (e2, f2 = {}) => {
|
|
9873
9873
|
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);
|
|
9874
9874
|
_.values.next({
|
|
9875
9875
|
values: {
|
|
@@ -9881,9 +9881,9 @@ let __tla = Promise.all([
|
|
|
9881
9881
|
isDirty: W()
|
|
9882
9882
|
} : {}
|
|
9883
9883
|
}), !f2.keepIsValid && w();
|
|
9884
|
-
},
|
|
9884
|
+
}, eW = ({ disabled: e2, name: r2, field: c2, fields: l2 }) => {
|
|
9885
9885
|
(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));
|
|
9886
|
-
},
|
|
9886
|
+
}, tW = (e2, c2 = {}) => {
|
|
9887
9887
|
let d2 = get(l, e2), m2 = isBoolean(c2.disabled) || isBoolean(r.disabled);
|
|
9888
9888
|
return set(l, e2, {
|
|
9889
9889
|
...d2 || {},
|
|
@@ -9897,7 +9897,7 @@ let __tla = Promise.all([
|
|
|
9897
9897
|
mount: true,
|
|
9898
9898
|
...c2
|
|
9899
9899
|
}
|
|
9900
|
-
}), p.mount.add(e2), d2 ?
|
|
9900
|
+
}), p.mount.add(e2), d2 ? eW({
|
|
9901
9901
|
field: d2,
|
|
9902
9902
|
disabled: isBoolean(c2.disabled) ? c2.disabled : r.disabled,
|
|
9903
9903
|
name: e2
|
|
@@ -9914,11 +9914,11 @@ let __tla = Promise.all([
|
|
|
9914
9914
|
pattern: getRuleValue(c2.pattern)
|
|
9915
9915
|
} : {},
|
|
9916
9916
|
name: e2,
|
|
9917
|
-
onChange:
|
|
9918
|
-
onBlur:
|
|
9917
|
+
onChange: GU,
|
|
9918
|
+
onBlur: GU,
|
|
9919
9919
|
ref: (m3) => {
|
|
9920
9920
|
if (m3) {
|
|
9921
|
-
|
|
9921
|
+
tW(e2, c2), d2 = get(l, e2);
|
|
9922
9922
|
let r2 = isUndefined(m3.value) && m3.querySelectorAll && m3.querySelectorAll("input,select,textarea")[0] || m3, f2 = isRadioOrCheckbox(r2), p2 = d2._f.refs || [];
|
|
9923
9923
|
if (f2 ? p2.find((e3) => e3 === r2) : r2 === d2._f.ref) return;
|
|
9924
9924
|
set(l, e2, {
|
|
@@ -9944,7 +9944,7 @@ let __tla = Promise.all([
|
|
|
9944
9944
|
} 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);
|
|
9945
9945
|
}
|
|
9946
9946
|
};
|
|
9947
|
-
},
|
|
9947
|
+
}, nW = () => r.shouldFocusError && iterateFieldsByAction(l, KU, p.mount), rW = (e2) => {
|
|
9948
9948
|
isBoolean(e2) && (_.state.next({
|
|
9949
9949
|
disabled: e2
|
|
9950
9950
|
}), iterateFieldsByAction(l, (r2, c2) => {
|
|
@@ -9953,7 +9953,7 @@ let __tla = Promise.all([
|
|
|
9953
9953
|
r3.disabled = u2._f.disabled || e2;
|
|
9954
9954
|
}));
|
|
9955
9955
|
}, 0, false));
|
|
9956
|
-
},
|
|
9956
|
+
}, iW = (e2, u2) => async (f2) => {
|
|
9957
9957
|
let m2;
|
|
9958
9958
|
f2 && (f2.preventDefault && f2.preventDefault(), f2.persist && f2.persist());
|
|
9959
9959
|
let h2 = cloneObject(d);
|
|
@@ -9975,7 +9975,7 @@ let __tla = Promise.all([
|
|
|
9975
9975
|
}
|
|
9976
9976
|
} else u2 && await u2({
|
|
9977
9977
|
...c.errors
|
|
9978
|
-
}, f2),
|
|
9978
|
+
}, f2), nW(), setTimeout(nW);
|
|
9979
9979
|
if (_.state.next({
|
|
9980
9980
|
isSubmitted: true,
|
|
9981
9981
|
isSubmitting: false,
|
|
@@ -9983,11 +9983,11 @@ let __tla = Promise.all([
|
|
|
9983
9983
|
submitCount: c.submitCount + 1,
|
|
9984
9984
|
errors: c.errors
|
|
9985
9985
|
}), m2) throw m2;
|
|
9986
|
-
},
|
|
9987
|
-
get(l, e2) && (isUndefined(r2.defaultValue) ?
|
|
9986
|
+
}, aW = (e2, r2 = {}) => {
|
|
9987
|
+
get(l, e2) && (isUndefined(r2.defaultValue) ? WU(e2, cloneObject(get(u, e2))) : (WU(e2, r2.defaultValue), set(u, e2, cloneObject(r2.defaultValue))), r2.keepTouched || unset(c.touchedFields, e2), r2.keepDirty || (unset(c.dirtyFields, e2), c.isDirty = r2.defaultValue ? W(e2, cloneObject(get(u, e2))) : W()), r2.keepError || (unset(c.errors, e2), g.isValid && w()), _.state.next({
|
|
9988
9988
|
...c
|
|
9989
9989
|
}));
|
|
9990
|
-
},
|
|
9990
|
+
}, oW = (e2, m2 = {}) => {
|
|
9991
9991
|
let h2 = e2 ? cloneObject(e2) : u, v2 = cloneObject(h2), y2 = isEmptyObject(e2), b2 = y2 ? u : v2;
|
|
9992
9992
|
if (m2.keepDefaultValues || (u = h2), !m2.keepValues) {
|
|
9993
9993
|
if (m2.keepDirtyValues) {
|
|
@@ -9995,7 +9995,7 @@ let __tla = Promise.all([
|
|
|
9995
9995
|
...p.mount,
|
|
9996
9996
|
...Object.keys(getDirtyFields(u, d))
|
|
9997
9997
|
]);
|
|
9998
|
-
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) :
|
|
9998
|
+
for (let r2 of Array.from(e3)) get(c.dirtyFields, r2) ? set(b2, r2, get(d, r2)) : WU(r2, get(b2, r2));
|
|
9999
9999
|
} else {
|
|
10000
10000
|
if (isWeb && isUndefined(e2)) for (let e3 of p.mount) {
|
|
10001
10001
|
let r2 = get(l, e3);
|
|
@@ -10040,25 +10040,25 @@ let __tla = Promise.all([
|
|
|
10040
10040
|
isSubmitSuccessful: m2.keepIsSubmitSuccessful ? c.isSubmitSuccessful : false,
|
|
10041
10041
|
isSubmitting: false
|
|
10042
10042
|
});
|
|
10043
|
-
},
|
|
10043
|
+
}, sW = (e2, r2) => oW(isFunction$1(e2) ? e2(d) : e2, r2);
|
|
10044
10044
|
return {
|
|
10045
10045
|
control: {
|
|
10046
|
-
register:
|
|
10047
|
-
unregister:
|
|
10048
|
-
getFieldState:
|
|
10049
|
-
handleSubmit:
|
|
10050
|
-
setError:
|
|
10046
|
+
register: tW,
|
|
10047
|
+
unregister: $U,
|
|
10048
|
+
getFieldState: YU,
|
|
10049
|
+
handleSubmit: iW,
|
|
10050
|
+
setError: ZU,
|
|
10051
10051
|
_executeSchema: R,
|
|
10052
10052
|
_getWatch: G,
|
|
10053
10053
|
_getDirty: W,
|
|
10054
10054
|
_updateValid: w,
|
|
10055
10055
|
_removeUnmounted: H,
|
|
10056
10056
|
_updateFieldArray: E,
|
|
10057
|
-
_updateDisabledField:
|
|
10057
|
+
_updateDisabledField: eW,
|
|
10058
10058
|
_getFieldArray: q,
|
|
10059
|
-
_reset:
|
|
10059
|
+
_reset: oW,
|
|
10060
10060
|
_resetDefaultValues: () => isFunction$1(r.defaultValues) && r.defaultValues().then((e2) => {
|
|
10061
|
-
|
|
10061
|
+
sW(e2, r.resetOptions), _.state.next({
|
|
10062
10062
|
isLoading: false
|
|
10063
10063
|
});
|
|
10064
10064
|
}),
|
|
@@ -10068,7 +10068,7 @@ let __tla = Promise.all([
|
|
|
10068
10068
|
...e2
|
|
10069
10069
|
};
|
|
10070
10070
|
},
|
|
10071
|
-
_disableForm:
|
|
10071
|
+
_disableForm: rW,
|
|
10072
10072
|
_subjects: _,
|
|
10073
10073
|
_proxyFormState: g,
|
|
10074
10074
|
_setErrors: j,
|
|
@@ -10109,17 +10109,17 @@ let __tla = Promise.all([
|
|
|
10109
10109
|
};
|
|
10110
10110
|
}
|
|
10111
10111
|
},
|
|
10112
|
-
trigger:
|
|
10113
|
-
register:
|
|
10114
|
-
handleSubmit:
|
|
10115
|
-
watch:
|
|
10116
|
-
setValue:
|
|
10117
|
-
getValues:
|
|
10118
|
-
reset:
|
|
10119
|
-
resetField:
|
|
10120
|
-
clearErrors:
|
|
10121
|
-
unregister:
|
|
10122
|
-
setError:
|
|
10112
|
+
trigger: qU,
|
|
10113
|
+
register: tW,
|
|
10114
|
+
handleSubmit: iW,
|
|
10115
|
+
watch: QU,
|
|
10116
|
+
setValue: WU,
|
|
10117
|
+
getValues: JU,
|
|
10118
|
+
reset: sW,
|
|
10119
|
+
resetField: aW,
|
|
10120
|
+
clearErrors: XU,
|
|
10121
|
+
unregister: $U,
|
|
10122
|
+
setError: ZU,
|
|
10123
10123
|
setFocus: (e2, r2 = {}) => {
|
|
10124
10124
|
let c2 = get(l, e2), u2 = c2 && c2._f;
|
|
10125
10125
|
if (u2) {
|
|
@@ -10127,7 +10127,7 @@ let __tla = Promise.all([
|
|
|
10127
10127
|
e3.focus && (e3.focus(), r2.shouldSelect && isFunction$1(e3.select) && e3.select());
|
|
10128
10128
|
}
|
|
10129
10129
|
},
|
|
10130
|
-
getFieldState:
|
|
10130
|
+
getFieldState: YU
|
|
10131
10131
|
};
|
|
10132
10132
|
}
|
|
10133
10133
|
function useForm(e = {}) {
|
|
@@ -10417,8 +10417,8 @@ let __tla = Promise.all([
|
|
|
10417
10417
|
f.height
|
|
10418
10418
|
]);
|
|
10419
10419
|
}
|
|
10420
|
-
var import_compiler_runtime$
|
|
10421
|
-
let r = (0, import_compiler_runtime$
|
|
10420
|
+
var import_compiler_runtime$77 = require_compiler_runtime(), Form$1 = FormProvider, FormFieldContext = import_react.createContext({}), FormField = (e) => {
|
|
10421
|
+
let r = (0, import_compiler_runtime$77.c)(10), c;
|
|
10422
10422
|
r[0] === e ? c = r[1] : ({ ...c } = e, r[0] = e, r[1] = c);
|
|
10423
10423
|
let l;
|
|
10424
10424
|
r[2] === c.name ? l = r[3] : (l = {
|
|
@@ -10434,7 +10434,7 @@ let __tla = Promise.all([
|
|
|
10434
10434
|
children: u
|
|
10435
10435
|
}, c.name), r[6] = c.name, r[7] = l, r[8] = u, r[9] = d) : d = r[9], d;
|
|
10436
10436
|
}, useFormField = () => {
|
|
10437
|
-
let e = (0, import_compiler_runtime$
|
|
10437
|
+
let e = (0, import_compiler_runtime$77.c)(11), r = import_react.use(FormFieldContext), c = import_react.use(FormItemContext), { getFieldState: l, formState: u } = useFormContext(), d;
|
|
10438
10438
|
e[0] !== r.name || e[1] !== u || e[2] !== l ? (d = l(r.name, u), e[0] = r.name, e[1] = u, e[2] = l, e[3] = d) : d = e[3];
|
|
10439
10439
|
let f = d;
|
|
10440
10440
|
if (!r) throw Error("useFormField should be used within <FormField>");
|
|
@@ -10448,7 +10448,7 @@ let __tla = Promise.all([
|
|
|
10448
10448
|
...f
|
|
10449
10449
|
}, e[4] = r.name, e[5] = f, e[6] = p, e[7] = m, e[8] = h, e[9] = g, e[10] = _) : _ = e[10], _;
|
|
10450
10450
|
}, FormItemContext = import_react.createContext({}), FormItem = import_react.forwardRef((e, r) => {
|
|
10451
|
-
let c = (0, import_compiler_runtime$
|
|
10451
|
+
let c = (0, import_compiler_runtime$77.c)(14), l, u;
|
|
10452
10452
|
c[0] === e ? (l = c[1], u = c[2]) : ({ className: l, ...u } = e, c[0] = e, c[1] = l, c[2] = u);
|
|
10453
10453
|
let d = import_react.useId(), f;
|
|
10454
10454
|
c[3] === d ? f = c[4] : (f = {
|
|
@@ -10470,7 +10470,7 @@ let __tla = Promise.all([
|
|
|
10470
10470
|
});
|
|
10471
10471
|
FormItem.displayName = "FormItem";
|
|
10472
10472
|
var FormLabel = import_react.forwardRef((e, r) => {
|
|
10473
|
-
let c = (0, import_compiler_runtime$
|
|
10473
|
+
let c = (0, import_compiler_runtime$77.c)(11), l, u;
|
|
10474
10474
|
c[0] === e ? (l = c[1], u = c[2]) : ({ className: l, ...u } = e, c[0] = e, c[1] = l, c[2] = u);
|
|
10475
10475
|
let { error: d, formItemId: f } = useFormField();
|
|
10476
10476
|
if (!u.children) return;
|
|
@@ -10486,7 +10486,7 @@ let __tla = Promise.all([
|
|
|
10486
10486
|
});
|
|
10487
10487
|
FormLabel.displayName = "FormLabel";
|
|
10488
10488
|
var FormControl = import_react.forwardRef((e, r) => {
|
|
10489
|
-
let c = (0, import_compiler_runtime$
|
|
10489
|
+
let c = (0, import_compiler_runtime$77.c)(8), l;
|
|
10490
10490
|
c[0] === e ? l = c[1] : ({ ...l } = e, c[0] = e, c[1] = l);
|
|
10491
10491
|
let { error: u, formItemId: d, formDescriptionId: f, formMessageId: p } = useFormField(), m = u ? `${f} ${p}` : f, h = !!u, g;
|
|
10492
10492
|
return c[2] !== d || c[3] !== l || c[4] !== r || c[5] !== m || c[6] !== h ? (g = (0, import_jsx_runtime.jsx)(Slot, {
|
|
@@ -10499,7 +10499,7 @@ let __tla = Promise.all([
|
|
|
10499
10499
|
});
|
|
10500
10500
|
FormControl.displayName = "FormControl";
|
|
10501
10501
|
var FormDescription = import_react.forwardRef((e, r) => {
|
|
10502
|
-
let c = (0, import_compiler_runtime$
|
|
10502
|
+
let c = (0, import_compiler_runtime$77.c)(10), l, u;
|
|
10503
10503
|
c[0] === e ? (l = c[1], u = c[2]) : ({ className: l, ...u } = e, c[0] = e, c[1] = l, c[2] = u);
|
|
10504
10504
|
let { formDescriptionId: d } = useFormField();
|
|
10505
10505
|
if (!u.children) return null;
|
|
@@ -10515,7 +10515,7 @@ let __tla = Promise.all([
|
|
|
10515
10515
|
});
|
|
10516
10516
|
FormDescription.displayName = "FormDescription";
|
|
10517
10517
|
var FormMessage = import_react.forwardRef((e, r) => {
|
|
10518
|
-
let c = (0, import_compiler_runtime$
|
|
10518
|
+
let c = (0, import_compiler_runtime$77.c)(12), l, u, d;
|
|
10519
10519
|
c[0] === e ? (l = c[1], u = c[2], d = c[3]) : ({ className: u, children: l, ...d } = e, c[0] = e, c[1] = l, c[2] = u, c[3] = d);
|
|
10520
10520
|
let { error: f, formMessageId: m } = useFormField(), h = (f == null ? void 0 : f.message) ? String(f == null ? void 0 : f.message) : l;
|
|
10521
10521
|
if (!h) return null;
|
|
@@ -10532,7 +10532,7 @@ let __tla = Promise.all([
|
|
|
10532
10532
|
});
|
|
10533
10533
|
FormMessage.displayName = "FormMessage";
|
|
10534
10534
|
var FormMessageTooltip = (e) => {
|
|
10535
|
-
let r = (0, import_compiler_runtime$
|
|
10535
|
+
let r = (0, import_compiler_runtime$77.c)(7), { className: c } = e, { error: l } = useFormField(), u = (l == null ? void 0 : l.message) ? String(l == null ? void 0 : l.message) : null;
|
|
10536
10536
|
if (!u) return null;
|
|
10537
10537
|
let d;
|
|
10538
10538
|
r[0] === c ? d = r[1] : (d = cn("stroke-[1.8px]", c), r[0] = c, r[1] = d);
|
|
@@ -10690,9 +10690,9 @@ ${c}
|
|
|
10690
10690
|
saveForm: Functions.NOOP,
|
|
10691
10691
|
chartType: ChartType.LINE
|
|
10692
10692
|
}), useChartFormContext = () => (0, import_react.use)(ChartFormContext);
|
|
10693
|
-
var import_compiler_runtime$
|
|
10693
|
+
var import_compiler_runtime$76 = require_compiler_runtime();
|
|
10694
10694
|
function useBoolean(e) {
|
|
10695
|
-
let r = (0, import_compiler_runtime$
|
|
10695
|
+
let r = (0, import_compiler_runtime$76.c)(6), [c, l] = (0, import_react.useState)(e), u;
|
|
10696
10696
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = (e2) => {
|
|
10697
10697
|
var _a3;
|
|
10698
10698
|
(_a3 = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a3.call(e2), l(true);
|
|
@@ -10722,8 +10722,8 @@ ${c}
|
|
|
10722
10722
|
function _temp$22(e) {
|
|
10723
10723
|
return !e;
|
|
10724
10724
|
}
|
|
10725
|
-
var import_compiler_runtime$
|
|
10726
|
-
let c = (0, import_compiler_runtime$
|
|
10725
|
+
var import_compiler_runtime$75 = require_compiler_runtime(), Slider = import_react.forwardRef((e, r) => {
|
|
10726
|
+
let c = (0, import_compiler_runtime$75.c)(25), { className: l, valueMap: u, ...d } = e, [f, m] = useBoolean(false), { locale: h } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), g = dist_exports, _;
|
|
10727
10727
|
c[0] === l ? _ = c[1] : (_ = 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[0] = l, c[1] = _);
|
|
10728
10728
|
let v;
|
|
10729
10729
|
c[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = 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[2] = v) : v = c[2];
|
|
@@ -10781,7 +10781,7 @@ ${c}
|
|
|
10781
10781
|
}), c[18] = d, c[19] = r, c[20] = g.Root, c[21] = M, c[22] = _, c[23] = y, c[24] = I) : I = c[24], I;
|
|
10782
10782
|
});
|
|
10783
10783
|
Slider.displayName = Root.displayName;
|
|
10784
|
-
var import_compiler_runtime$
|
|
10784
|
+
var import_compiler_runtime$74 = require_compiler_runtime(), MultiselectPlugin = class {
|
|
10785
10785
|
constructor() {
|
|
10786
10786
|
__publicField(this, "tagName", "marimo-multiselect");
|
|
10787
10787
|
__publicField(this, "validator", object({
|
|
@@ -10802,7 +10802,7 @@ ${c}
|
|
|
10802
10802
|
}
|
|
10803
10803
|
};
|
|
10804
10804
|
const Multiselect = (e) => {
|
|
10805
|
-
let r = (0, import_compiler_runtime$
|
|
10805
|
+
let r = (0, import_compiler_runtime$74.c)(17), { options: c, label: l, value: u, setValue: d, fullWidth: f, maxSelections: p, disabled: m } = e, h = (0, import_react.useId)(), g;
|
|
10806
10806
|
r[0] === c ? g = r[1] : (g = c.map(_temp$21), r[0] = c, r[1] = g);
|
|
10807
10807
|
let _ = g, v;
|
|
10808
10808
|
r[2] === d ? v = r[3] : (v = (e2) => d(e2 ?? []), r[2] = d, r[3] = v);
|
|
@@ -10833,9 +10833,9 @@ ${c}
|
|
|
10833
10833
|
label: e
|
|
10834
10834
|
};
|
|
10835
10835
|
}
|
|
10836
|
-
var import_compiler_runtime$
|
|
10836
|
+
var import_compiler_runtime$73 = require_compiler_runtime();
|
|
10837
10837
|
function useAddCodeToNewCell() {
|
|
10838
|
-
let e = (0, import_compiler_runtime$
|
|
10838
|
+
let e = (0, import_compiler_runtime$73.c)(4), r = useAtomValue(autoInstantiateAtom), c = useLastFocusedCellId(), { createNewCell: l } = useCellActions(), u;
|
|
10839
10839
|
return e[0] !== r || e[1] !== l || e[2] !== c ? (u = (e2) => {
|
|
10840
10840
|
e2.includes("alt") && maybeAddAltairImport({
|
|
10841
10841
|
autoInstantiate: r,
|
|
@@ -10848,7 +10848,7 @@ ${c}
|
|
|
10848
10848
|
});
|
|
10849
10849
|
}, e[0] = r, e[1] = l, e[2] = c, e[3] = u) : u = e[3], u;
|
|
10850
10850
|
}
|
|
10851
|
-
var import_compiler_runtime$
|
|
10851
|
+
var import_compiler_runtime$72 = require_compiler_runtime(), pythonExtensions = [
|
|
10852
10852
|
customPythonLanguageSupport(),
|
|
10853
10853
|
EditorView.lineWrapping
|
|
10854
10854
|
], sqlExtensions = [
|
|
@@ -10856,7 +10856,7 @@ ${c}
|
|
|
10856
10856
|
EditorView.lineWrapping
|
|
10857
10857
|
];
|
|
10858
10858
|
const ReadonlyCode = (0, import_react.memo)((e) => {
|
|
10859
|
-
let r = (0, import_compiler_runtime$
|
|
10859
|
+
let r = (0, import_compiler_runtime$72.c)(41), { theme: c } = useTheme(), l, u, d, f, m, h, g, _;
|
|
10860
10860
|
r[0] === e ? (l = r[1], u = r[2], d = r[3], f = r[4], m = r[5], h = r[6], g = r[7], _ = r[8]) : ({ code: u, className: l, initiallyHideCode: d, showHideCode: h, showCopyCode: g, insertNewCell: f, language: _, ...m } = e, r[0] = e, r[1] = l, r[2] = u, r[3] = d, r[4] = f, r[5] = m, r[6] = h, r[7] = g, r[8] = _);
|
|
10861
10861
|
let v = h === void 0 ? true : h, y = g === void 0 ? true : g, b = _ === void 0 ? "python" : _, [S, w] = (0, import_react.useState)(d), T;
|
|
10862
10862
|
r[9] === l ? T = r[10] : (T = cn("relative hover-actions-parent w-full overflow-hidden", l), r[9] = l, r[10] = T);
|
|
@@ -10911,7 +10911,7 @@ ${c}
|
|
|
10911
10911
|
});
|
|
10912
10912
|
ReadonlyCode.displayName = "ReadonlyCode";
|
|
10913
10913
|
var CopyButton = (e) => {
|
|
10914
|
-
let r = (0, import_compiler_runtime$
|
|
10914
|
+
let r = (0, import_compiler_runtime$72.c)(5), c;
|
|
10915
10915
|
r[0] === e.text ? c = r[1] : (c = Events.stopPropagation(async () => {
|
|
10916
10916
|
await copyToClipboard(e.text), toast({
|
|
10917
10917
|
title: "Copied to clipboard"
|
|
@@ -10935,7 +10935,7 @@ ${c}
|
|
|
10935
10935
|
})
|
|
10936
10936
|
}), r[3] = l, r[4] = d), d;
|
|
10937
10937
|
}, EyeCloseButton = (e) => {
|
|
10938
|
-
let r = (0, import_compiler_runtime$
|
|
10938
|
+
let r = (0, import_compiler_runtime$72.c)(3), c;
|
|
10939
10939
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(EyeOff, {
|
|
10940
10940
|
size: 14,
|
|
10941
10941
|
strokeWidth: 1.5
|
|
@@ -10954,7 +10954,7 @@ ${c}
|
|
|
10954
10954
|
}), r[1] = e.onClick, r[2] = l), l;
|
|
10955
10955
|
};
|
|
10956
10956
|
const HideCodeButton = (e) => {
|
|
10957
|
-
let r = (0, import_compiler_runtime$
|
|
10957
|
+
let r = (0, import_compiler_runtime$72.c)(7), c;
|
|
10958
10958
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(Eye, {
|
|
10959
10959
|
className: "hover-action w-5 h-5 text-muted-foreground cursor-pointer absolute left-1/2 top-1/2 transform -translate-x-1/2 -translate-y-1/2 opacity-80 hover:opacity-100 z-20"
|
|
10960
10960
|
}), r[0] = c) : c = r[0];
|
|
@@ -10972,7 +10972,7 @@ ${c}
|
|
|
10972
10972
|
}), r[3] = e.className, r[4] = e.onClick, r[5] = l, r[6] = u) : u = r[6], u;
|
|
10973
10973
|
};
|
|
10974
10974
|
var InsertNewCell = (e) => {
|
|
10975
|
-
let r = (0, import_compiler_runtime$
|
|
10975
|
+
let r = (0, import_compiler_runtime$72.c)(6), c = useAddCodeToNewCell(), l;
|
|
10976
10976
|
r[0] !== c || r[1] !== e.code ? (l = () => {
|
|
10977
10977
|
c(e.code);
|
|
10978
10978
|
}, r[0] = c, r[1] = e.code, r[2] = l) : l = r[2];
|
|
@@ -10993,9 +10993,9 @@ ${c}
|
|
|
10993
10993
|
children: d
|
|
10994
10994
|
})
|
|
10995
10995
|
}), r[4] = u, r[5] = f), f;
|
|
10996
|
-
}, import_compiler_runtime$
|
|
10996
|
+
}, import_compiler_runtime$71 = require_compiler_runtime();
|
|
10997
10997
|
const Title = (e) => {
|
|
10998
|
-
let r = (0, import_compiler_runtime$
|
|
10998
|
+
let r = (0, import_compiler_runtime$71.c)(5), { text: c, tooltip: l } = e, u;
|
|
10999
10999
|
r[0] === l ? u = r[1] : (u = l && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
11000
11000
|
content: l,
|
|
11001
11001
|
children: (0, import_jsx_runtime.jsx)(Info, {
|
|
@@ -11011,7 +11011,7 @@ ${c}
|
|
|
11011
11011
|
]
|
|
11012
11012
|
}), r[2] = u, r[3] = c, r[4] = d) : d = r[4], d;
|
|
11013
11013
|
}, TabContainer = (e) => {
|
|
11014
|
-
let r = (0, import_compiler_runtime$
|
|
11014
|
+
let r = (0, import_compiler_runtime$71.c)(5), { children: c, className: l } = e, u;
|
|
11015
11015
|
r[0] === l ? u = r[1] : (u = cn("flex flex-col gap-2", l), r[0] = l, r[1] = u);
|
|
11016
11016
|
let d;
|
|
11017
11017
|
return r[2] !== c || r[3] !== u ? (d = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -11019,14 +11019,14 @@ ${c}
|
|
|
11019
11019
|
children: c
|
|
11020
11020
|
}), r[2] = c, r[3] = u, r[4] = d) : d = r[4], d;
|
|
11021
11021
|
}, FormSectionHorizontalRule = (e) => {
|
|
11022
|
-
let r = (0, import_compiler_runtime$
|
|
11022
|
+
let r = (0, import_compiler_runtime$71.c)(4), { className: c } = e, l;
|
|
11023
11023
|
r[0] === c ? l = r[1] : (l = cn("my-1", c), r[0] = c, r[1] = l);
|
|
11024
11024
|
let u;
|
|
11025
11025
|
return r[2] === l ? u = r[3] : (u = (0, import_jsx_runtime.jsx)("hr", {
|
|
11026
11026
|
className: l
|
|
11027
11027
|
}), r[2] = l, r[3] = u), u;
|
|
11028
11028
|
}, FieldSection = (e) => {
|
|
11029
|
-
let r = (0, import_compiler_runtime$
|
|
11029
|
+
let r = (0, import_compiler_runtime$71.c)(5), { children: c, className: l } = e, u;
|
|
11030
11030
|
r[0] === l ? u = r[1] : (u = cn("flex flex-col gap-1.5", l), r[0] = l, r[1] = u);
|
|
11031
11031
|
let d;
|
|
11032
11032
|
return r[2] !== c || r[3] !== u ? (d = (0, import_jsx_runtime.jsx)("section", {
|
|
@@ -11034,7 +11034,7 @@ ${c}
|
|
|
11034
11034
|
children: c
|
|
11035
11035
|
}), r[2] = c, r[3] = u, r[4] = d) : d = r[4], d;
|
|
11036
11036
|
}, IconWithText = (e) => {
|
|
11037
|
-
let r = (0, import_compiler_runtime$
|
|
11037
|
+
let r = (0, import_compiler_runtime$71.c)(7), { Icon: c, text: l } = e, u;
|
|
11038
11038
|
r[0] === c ? u = r[1] : (u = (0, import_jsx_runtime.jsx)(c, {
|
|
11039
11039
|
className: "w-3 h-3 mr-2"
|
|
11040
11040
|
}), r[0] = c, r[1] = u);
|
|
@@ -11051,7 +11051,7 @@ ${c}
|
|
|
11051
11051
|
]
|
|
11052
11052
|
}), r[4] = u, r[5] = d, r[6] = f) : f = r[6], f;
|
|
11053
11053
|
}, AccordionFormTrigger = (e) => {
|
|
11054
|
-
let r = (0, import_compiler_runtime$
|
|
11054
|
+
let r = (0, import_compiler_runtime$71.c)(5), { children: c, className: l } = e, u;
|
|
11055
11055
|
r[0] === l ? u = r[1] : (u = cn("py-1", l), r[0] = l, r[1] = u);
|
|
11056
11056
|
let d;
|
|
11057
11057
|
return r[2] !== c || r[3] !== u ? (d = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
@@ -11059,14 +11059,14 @@ ${c}
|
|
|
11059
11059
|
children: c
|
|
11060
11060
|
}), r[2] = c, r[3] = u, r[4] = d) : d = r[4], d;
|
|
11061
11061
|
}, AccordionFormItem = (e) => {
|
|
11062
|
-
let r = (0, import_compiler_runtime$
|
|
11062
|
+
let r = (0, import_compiler_runtime$71.c)(3), { children: c, value: l } = e, u;
|
|
11063
11063
|
return r[0] !== c || r[1] !== l ? (u = (0, import_jsx_runtime.jsx)(AccordionItem, {
|
|
11064
11064
|
value: l,
|
|
11065
11065
|
className: "border-none",
|
|
11066
11066
|
children: c
|
|
11067
11067
|
}), r[0] = c, r[1] = l, r[2] = u) : u = r[2], u;
|
|
11068
11068
|
}, AccordionFormContent = (e) => {
|
|
11069
|
-
let r = (0, import_compiler_runtime$
|
|
11069
|
+
let r = (0, import_compiler_runtime$71.c)(5), { children: c, wrapperClassName: l } = e, u;
|
|
11070
11070
|
r[0] === l ? u = r[1] : (u = cn("pb-2 flex flex-col gap-2", l), r[0] = l, r[1] = u);
|
|
11071
11071
|
let d;
|
|
11072
11072
|
return r[2] !== c || r[3] !== u ? (d = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
@@ -11074,7 +11074,7 @@ ${c}
|
|
|
11074
11074
|
children: c
|
|
11075
11075
|
}), r[2] = c, r[3] = u, r[4] = d) : d = r[4], d;
|
|
11076
11076
|
}, CodeSnippet = (e) => {
|
|
11077
|
-
let r = (0, import_compiler_runtime$
|
|
11077
|
+
let r = (0, import_compiler_runtime$71.c)(4), { code: c, insertNewCell: l, language: u } = e, d;
|
|
11078
11078
|
return r[0] !== c || r[1] !== l || r[2] !== u ? (d = (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
11079
11079
|
minHeight: "330px",
|
|
11080
11080
|
maxHeight: "330px",
|
|
@@ -11085,9 +11085,9 @@ ${c}
|
|
|
11085
11085
|
insertNewCell: l
|
|
11086
11086
|
}), r[0] = c, r[1] = l, r[2] = u, r[3] = d) : d = r[3], d;
|
|
11087
11087
|
};
|
|
11088
|
-
var import_compiler_runtime$
|
|
11088
|
+
var import_compiler_runtime$70 = require_compiler_runtime(), CLEAR_VALUE = "__clear__";
|
|
11089
11089
|
const ColumnSelector = (e) => {
|
|
11090
|
-
let r = (0, import_compiler_runtime$
|
|
11090
|
+
let r = (0, import_compiler_runtime$70.c)(23), { fieldName: c, columns: l, onValueChange: u, includeCountField: d } = e, f = d === void 0 ? true : d, p = useFormContext(), m;
|
|
11091
11091
|
r[0] === c ? m = r[1] : (m = c.replace(".field", ".type"), r[0] = c, r[1] = m);
|
|
11092
11092
|
let h = m, g;
|
|
11093
11093
|
r[2] === c ? g = r[3] : (g = c.replace(".field", ".selectedDataType"), r[2] = c, r[3] = g);
|
|
@@ -11169,7 +11169,7 @@ ${c}
|
|
|
11169
11169
|
render: b
|
|
11170
11170
|
}), r[19] = c, r[20] = p.control, r[21] = b, r[22] = S) : S = r[22], S;
|
|
11171
11171
|
}, SelectField = (e) => {
|
|
11172
|
-
let r = (0, import_compiler_runtime$
|
|
11172
|
+
let r = (0, import_compiler_runtime$70.c)(8), { fieldName: c, label: l, options: u, defaultValue: d } = e, f = useFormContext(), p;
|
|
11173
11173
|
r[0] !== d || r[1] !== l || r[2] !== u ? (p = (e2) => {
|
|
11174
11174
|
let { field: r2 } = e2;
|
|
11175
11175
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -11208,7 +11208,7 @@ ${c}
|
|
|
11208
11208
|
render: p
|
|
11209
11209
|
}), r[4] = c, r[5] = f.control, r[6] = p, r[7] = m) : m = r[7], m;
|
|
11210
11210
|
}, InputField = (e) => {
|
|
11211
|
-
let r = (0, import_compiler_runtime$
|
|
11211
|
+
let r = (0, import_compiler_runtime$70.c)(6), { fieldName: c, label: l } = e, u = useFormContext(), d;
|
|
11212
11212
|
r[0] === l ? d = r[1] : (d = (e2) => {
|
|
11213
11213
|
let { field: r2 } = e2;
|
|
11214
11214
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -11235,7 +11235,7 @@ ${c}
|
|
|
11235
11235
|
render: d
|
|
11236
11236
|
}), r[2] = c, r[3] = u.control, r[4] = d, r[5] = f) : f = r[5], f;
|
|
11237
11237
|
}, NumberField$1 = (e) => {
|
|
11238
|
-
let r = (0, import_compiler_runtime$
|
|
11238
|
+
let r = (0, import_compiler_runtime$70.c)(17), c, l, u, d, f, m;
|
|
11239
11239
|
r[0] === e ? (c = r[1], l = r[2], u = r[3], d = r[4], f = r[5], m = r[6]) : ({ fieldName: l, label: f, className: c, inputClassName: u, isDisabled: d, ...m } = e, r[0] = e, r[1] = c, r[2] = l, r[3] = u, r[4] = d, r[5] = f, r[6] = m);
|
|
11240
11240
|
let h = useFormContext(), g;
|
|
11241
11241
|
r[7] !== c || r[8] !== u || r[9] !== d || r[10] !== f || r[11] !== m ? (g = (e2) => {
|
|
@@ -11269,7 +11269,7 @@ ${c}
|
|
|
11269
11269
|
render: g
|
|
11270
11270
|
}), r[13] = l, r[14] = h.control, r[15] = g, r[16] = _) : _ = r[16], _;
|
|
11271
11271
|
}, BooleanField = (e) => {
|
|
11272
|
-
let r = (0, import_compiler_runtime$
|
|
11272
|
+
let r = (0, import_compiler_runtime$70.c)(8), { fieldName: c, label: l, className: u, defaultValue: d } = e, f = useFormContext(), m;
|
|
11273
11273
|
r[0] !== u || r[1] !== d || r[2] !== l ? (m = (e2) => {
|
|
11274
11274
|
let { field: r2 } = e2;
|
|
11275
11275
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -11295,7 +11295,7 @@ ${c}
|
|
|
11295
11295
|
render: m
|
|
11296
11296
|
}), r[4] = c, r[5] = f.control, r[6] = m, r[7] = h) : h = r[7], h;
|
|
11297
11297
|
}, SliderField = (e) => {
|
|
11298
|
-
let r = (0, import_compiler_runtime$
|
|
11298
|
+
let r = (0, import_compiler_runtime$70.c)(12), { fieldName: c, label: l, defaultValue: u, start: d, stop: f, step: m, className: h } = e, g = useFormContext(), _;
|
|
11299
11299
|
r[0] !== h || r[1] !== u || r[2] !== c || r[3] !== l || r[4] !== d || r[5] !== m || r[6] !== f ? (_ = (e2) => {
|
|
11300
11300
|
let { field: r2 } = e2, g2 = r2.value ?? u, _2 = Number(g2), v2 = (e3) => {
|
|
11301
11301
|
typeof e3 == "string" && (e3 = Number(e3)), r2.onChange(e3);
|
|
@@ -11338,7 +11338,7 @@ ${c}
|
|
|
11338
11338
|
render: _
|
|
11339
11339
|
}), r[8] = c, r[9] = g.control, r[10] = _, r[11] = v) : v = r[11], v;
|
|
11340
11340
|
}, ColorArrayField = (e) => {
|
|
11341
|
-
let r = (0, import_compiler_runtime$
|
|
11341
|
+
let r = (0, import_compiler_runtime$70.c)(28), { fieldName: c, label: l, className: u } = e, d = useFormContext(), f;
|
|
11342
11342
|
r[0] !== c || r[1] !== d ? (f = d.watch(c), r[0] = c, r[1] = d, r[2] = f) : f = r[2];
|
|
11343
11343
|
let m = f, h;
|
|
11344
11344
|
r[3] === m ? h = r[4] : (h = m ?? [], r[3] = m, r[4] = h);
|
|
@@ -11419,7 +11419,7 @@ ${c}
|
|
|
11419
11419
|
render: O
|
|
11420
11420
|
}), r[24] = c, r[25] = d.control, r[26] = O, r[27] = j) : j = r[27], j;
|
|
11421
11421
|
}, TimeUnitSelect = (e) => {
|
|
11422
|
-
let r = (0, import_compiler_runtime$
|
|
11422
|
+
let r = (0, import_compiler_runtime$70.c)(10), { fieldName: c, label: l } = e, u = useFormContext(), d;
|
|
11423
11423
|
r[0] !== c || r[1] !== u ? (d = () => {
|
|
11424
11424
|
u.setValue(c, "");
|
|
11425
11425
|
}, r[0] = c, r[1] = u, r[2] = d) : d = r[2];
|
|
@@ -11488,7 +11488,7 @@ ${c}
|
|
|
11488
11488
|
render: m
|
|
11489
11489
|
}), r[6] = c, r[7] = u.control, r[8] = m, r[9] = h) : h = r[9], h;
|
|
11490
11490
|
}, DataTypeSelect = (e) => {
|
|
11491
|
-
let r = (0, import_compiler_runtime$
|
|
11491
|
+
let r = (0, import_compiler_runtime$70.c)(9), { fieldName: c, label: l, defaultValue: u, onValueChange: d } = e, [f, p] = import_react.useState(false), m = useFormContext(), h;
|
|
11492
11492
|
r[0] !== u || r[1] !== f || r[2] !== l || r[3] !== d ? (h = (e2) => {
|
|
11493
11493
|
let { field: r2 } = e2;
|
|
11494
11494
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -11544,7 +11544,7 @@ ${c}
|
|
|
11544
11544
|
render: h
|
|
11545
11545
|
}), r[5] = c, r[6] = m.control, r[7] = h, r[8] = g) : g = r[8], g;
|
|
11546
11546
|
}, AggregationSelect = (e) => {
|
|
11547
|
-
let r = (0, import_compiler_runtime$
|
|
11547
|
+
let r = (0, import_compiler_runtime$70.c)(12), { fieldName: c, selectedDataType: l, binFieldName: u, defaultAggregation: d } = e, f = useFormContext(), p = l === "string" ? STRING_AGGREGATION_FNS : AGGREGATION_FNS$1, { chartType: m } = useChartFormContext(), h = m !== ChartType.HEATMAP, g = _temp6$1, _ = _temp7, v;
|
|
11548
11548
|
r[0] !== u || r[1] !== f ? (v = (e2) => {
|
|
11549
11549
|
let { value: r2, previousValue: c2, onChange: l2 } = e2;
|
|
11550
11550
|
r2 === "bin" ? f.setValue(u, true) : c2 === "bin" && f.setValue(u, false), l2(r2);
|
|
@@ -11603,7 +11603,7 @@ ${c}
|
|
|
11603
11603
|
render: b
|
|
11604
11604
|
}), r[8] = c, r[9] = f.control, r[10] = b, r[11] = S) : S = r[11], S;
|
|
11605
11605
|
}, TooltipSelect = (e) => {
|
|
11606
|
-
let r = (0, import_compiler_runtime$
|
|
11606
|
+
let r = (0, import_compiler_runtime$70.c)(7), { fieldName: c, saveFunction: l } = e, u = useFormContext(), { fields: d } = useChartFormContext(), f = _temp8, p;
|
|
11607
11607
|
r[0] !== d || r[1] !== l ? (p = (e2) => {
|
|
11608
11608
|
var _a3;
|
|
11609
11609
|
let { field: r2 } = e2, c2 = ((_a3 = r2.value) == null ? void 0 : _a3.map(_temp9)) ?? [];
|
|
@@ -11630,7 +11630,7 @@ ${c}
|
|
|
11630
11630
|
render: p
|
|
11631
11631
|
}), r[3] = c, r[4] = u.control, r[5] = p, r[6] = m) : m = r[6], m;
|
|
11632
11632
|
}, SortField = (e) => {
|
|
11633
|
-
let r = (0, import_compiler_runtime$
|
|
11633
|
+
let r = (0, import_compiler_runtime$70.c)(5), { fieldName: c, label: l, defaultValue: u } = e, d;
|
|
11634
11634
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = SORT_TYPES.map(_temp1), r[0] = d) : d = r[0];
|
|
11635
11635
|
let f = u ?? "ascending", p;
|
|
11636
11636
|
return r[1] !== c || r[2] !== l || r[3] !== f ? (p = (0, import_jsx_runtime.jsx)(SelectField, {
|
|
@@ -11641,7 +11641,7 @@ ${c}
|
|
|
11641
11641
|
}), r[1] = c, r[2] = l, r[3] = f, r[4] = p) : p = r[4], p;
|
|
11642
11642
|
}, BinFields = (e) => {
|
|
11643
11643
|
var _a3, _b3, _c3, _d3;
|
|
11644
|
-
let r = (0, import_compiler_runtime$
|
|
11644
|
+
let r = (0, import_compiler_runtime$70.c)(10), { fieldName: c } = e, l = useFormContext(), u;
|
|
11645
11645
|
r[0] === l.control ? u = r[1] : (u = {
|
|
11646
11646
|
control: l.control
|
|
11647
11647
|
}, r[0] = l.control, r[1] = u);
|
|
@@ -11756,7 +11756,7 @@ ${c}
|
|
|
11756
11756
|
value: e
|
|
11757
11757
|
};
|
|
11758
11758
|
}
|
|
11759
|
-
var import_compiler_runtime$
|
|
11759
|
+
var import_compiler_runtime$69 = require_compiler_runtime();
|
|
11760
11760
|
function isNonCountField(e) {
|
|
11761
11761
|
return isFieldSet(e == null ? void 0 : e.field) && (e == null ? void 0 : e.field) !== "__count__";
|
|
11762
11762
|
}
|
|
@@ -11780,7 +11780,7 @@ ${c}
|
|
|
11780
11780
|
};
|
|
11781
11781
|
}
|
|
11782
11782
|
var ColumnSelectorWithAggregation = (e) => {
|
|
11783
|
-
let r = (0, import_compiler_runtime$
|
|
11783
|
+
let r = (0, import_compiler_runtime$69.c)(14), { columnFieldName: c, column: l, columns: u, binFieldName: d, defaultAggregation: f } = e, p;
|
|
11784
11784
|
r[0] === l ? p = r[1] : (p = getColumnDataTypes(l), r[0] = l, r[1] = p);
|
|
11785
11785
|
let { selectedDataType: m } = p, h;
|
|
11786
11786
|
r[2] !== c || r[3] !== u ? (h = (0, import_jsx_runtime.jsx)(ColumnSelector, {
|
|
@@ -11804,7 +11804,7 @@ ${c}
|
|
|
11804
11804
|
}), r[11] = h, r[12] = g, r[13] = _) : _ = r[13], _;
|
|
11805
11805
|
};
|
|
11806
11806
|
const ChartTypeSelect = (e) => {
|
|
11807
|
-
let r = (0, import_compiler_runtime$
|
|
11807
|
+
let r = (0, import_compiler_runtime$69.c)(7), { value: c, onValueChange: l } = e, u, d;
|
|
11808
11808
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (u = buttonVariants({
|
|
11809
11809
|
variant: "outline",
|
|
11810
11810
|
className: "user-select-none w-full justify-between px-3"
|
|
@@ -11840,7 +11840,7 @@ ${c}
|
|
|
11840
11840
|
}), r[4] = l, r[5] = c, r[6] = m) : m = r[6], m;
|
|
11841
11841
|
};
|
|
11842
11842
|
var ChartSelectItem = (e) => {
|
|
11843
|
-
let r = (0, import_compiler_runtime$
|
|
11843
|
+
let r = (0, import_compiler_runtime$69.c)(10), { chartType: c } = e, l = CHART_TYPE_ICON[c], u;
|
|
11844
11844
|
r[0] === l ? u = r[1] : (u = (0, import_jsx_runtime.jsx)(l, {
|
|
11845
11845
|
className: "w-4 h-4 mr-2"
|
|
11846
11846
|
}), r[0] = l, r[1] = u);
|
|
@@ -11863,7 +11863,7 @@ ${c}
|
|
|
11863
11863
|
};
|
|
11864
11864
|
const XAxis = () => {
|
|
11865
11865
|
var _a3, _b3, _c3, _d3, _e9, _f3, _g3;
|
|
11866
|
-
let e = (0, import_compiler_runtime$
|
|
11866
|
+
let e = (0, import_compiler_runtime$69.c)(22), r = useFormContext(), c;
|
|
11867
11867
|
e[0] === r.control ? c = e[1] : (c = {
|
|
11868
11868
|
control: r.control
|
|
11869
11869
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -11916,7 +11916,7 @@ ${c}
|
|
|
11916
11916
|
}), e[17] = g, e[18] = _, e[19] = v, e[20] = y, e[21] = b) : b = e[21], b;
|
|
11917
11917
|
}, YAxis = () => {
|
|
11918
11918
|
var _a3, _b3, _c3;
|
|
11919
|
-
let e = (0, import_compiler_runtime$
|
|
11919
|
+
let e = (0, import_compiler_runtime$69.c)(29), r = useFormContext(), c;
|
|
11920
11920
|
e[0] === r.control ? c = e[1] : (c = {
|
|
11921
11921
|
control: r.control
|
|
11922
11922
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -11973,7 +11973,7 @@ ${c}
|
|
|
11973
11973
|
}), e[23] = O, e[24] = j, e[25] = w, e[26] = T, e[27] = E, e[28] = M) : M = e[28], M;
|
|
11974
11974
|
}, ColorByAxis = () => {
|
|
11975
11975
|
var _a3;
|
|
11976
|
-
let e = (0, import_compiler_runtime$
|
|
11976
|
+
let e = (0, import_compiler_runtime$69.c)(13), { fields: r } = useChartFormContext(), c = useFormContext(), l;
|
|
11977
11977
|
e[0] === c.control ? l = e[1] : (l = {
|
|
11978
11978
|
control: c.control
|
|
11979
11979
|
}, e[0] = c.control, e[1] = l);
|
|
@@ -12004,7 +12004,7 @@ ${c}
|
|
|
12004
12004
|
}), e[10] = m, e[11] = h, e[12] = g) : g = e[12], g;
|
|
12005
12005
|
}, Facet = () => {
|
|
12006
12006
|
var _a3, _b3;
|
|
12007
|
-
let e = (0, import_compiler_runtime$
|
|
12007
|
+
let e = (0, import_compiler_runtime$69.c)(7), r = useChartFormContext().fields, c = useFormContext(), l;
|
|
12008
12008
|
e[0] === c.control ? l = e[1] : (l = {
|
|
12009
12009
|
control: c.control
|
|
12010
12010
|
}, e[0] = c.control, e[1] = l);
|
|
@@ -12083,10 +12083,10 @@ ${c}
|
|
|
12083
12083
|
chartType: e
|
|
12084
12084
|
}, e);
|
|
12085
12085
|
}
|
|
12086
|
-
var import_compiler_runtime$
|
|
12086
|
+
var import_compiler_runtime$68 = require_compiler_runtime();
|
|
12087
12087
|
const CommonChartForm = () => {
|
|
12088
12088
|
var _a3, _b3;
|
|
12089
|
-
let e = (0, import_compiler_runtime$
|
|
12089
|
+
let e = (0, import_compiler_runtime$68.c)(17), r = useFormContext(), c;
|
|
12090
12090
|
e[0] === r.control ? c = e[1] : (c = {
|
|
12091
12091
|
control: r.control
|
|
12092
12092
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -12138,7 +12138,7 @@ ${c}
|
|
|
12138
12138
|
]
|
|
12139
12139
|
}), e[15] = S, e[16] = E), E;
|
|
12140
12140
|
}, StyleForm = () => {
|
|
12141
|
-
let e = (0, import_compiler_runtime$
|
|
12141
|
+
let e = (0, import_compiler_runtime$68.c)(15), { chartType: r } = useChartFormContext(), c;
|
|
12142
12142
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(AccordionFormTrigger, {
|
|
12143
12143
|
className: "pt-0",
|
|
12144
12144
|
children: (0, import_jsx_runtime.jsx)(Title, {
|
|
@@ -12281,7 +12281,7 @@ ${c}
|
|
|
12281
12281
|
}), e[13] = d, e[14] = S), S;
|
|
12282
12282
|
}, OtherOptions = () => {
|
|
12283
12283
|
var _a3;
|
|
12284
|
-
let e = (0, import_compiler_runtime$
|
|
12284
|
+
let e = (0, import_compiler_runtime$68.c)(11), { saveForm: r } = useChartFormContext(), c = useFormContext(), l;
|
|
12285
12285
|
e[0] === c.control ? l = e[1] : (l = {
|
|
12286
12286
|
control: c.control
|
|
12287
12287
|
}, e[0] = c.control, e[1] = l);
|
|
@@ -12352,10 +12352,10 @@ ${c}
|
|
|
12352
12352
|
value: e
|
|
12353
12353
|
};
|
|
12354
12354
|
}
|
|
12355
|
-
var import_compiler_runtime$
|
|
12355
|
+
var import_compiler_runtime$67 = require_compiler_runtime();
|
|
12356
12356
|
const HeatmapForm = () => {
|
|
12357
12357
|
var _a3, _b3, _c3, _d3;
|
|
12358
|
-
let e = (0, import_compiler_runtime$
|
|
12358
|
+
let e = (0, import_compiler_runtime$67.c)(17), r = useFormContext(), c;
|
|
12359
12359
|
e[0] === r.control ? c = e[1] : (c = {
|
|
12360
12360
|
control: r.control
|
|
12361
12361
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -12398,10 +12398,10 @@ ${c}
|
|
|
12398
12398
|
]
|
|
12399
12399
|
}), e[14] = _, e[15] = y, e[16] = w) : w = e[16], w;
|
|
12400
12400
|
};
|
|
12401
|
-
var import_compiler_runtime$
|
|
12401
|
+
var import_compiler_runtime$66 = require_compiler_runtime();
|
|
12402
12402
|
const PieForm = () => {
|
|
12403
12403
|
var _a3, _b3, _c3;
|
|
12404
|
-
let e = (0, import_compiler_runtime$
|
|
12404
|
+
let e = (0, import_compiler_runtime$66.c)(25), r = useFormContext(), { fields: c } = useChartFormContext(), l;
|
|
12405
12405
|
e[0] === r.control ? l = e[1] : (l = {
|
|
12406
12406
|
control: r.control
|
|
12407
12407
|
}, e[0] = r.control, e[1] = l);
|
|
@@ -12468,9 +12468,9 @@ ${c}
|
|
|
12468
12468
|
]
|
|
12469
12469
|
}), e[21] = g, e[22] = _, e[23] = S, e[24] = O) : O = e[24], O;
|
|
12470
12470
|
};
|
|
12471
|
-
var import_compiler_runtime$
|
|
12471
|
+
var import_compiler_runtime$65 = require_compiler_runtime();
|
|
12472
12472
|
const LazyChart = (e) => {
|
|
12473
|
-
let r = (0, import_compiler_runtime$
|
|
12473
|
+
let r = (0, import_compiler_runtime$65.c)(8), { baseSpec: c, data: l, height: u } = e, { theme: d } = useTheme();
|
|
12474
12474
|
if (!l) {
|
|
12475
12475
|
let e2;
|
|
12476
12476
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -12511,7 +12511,7 @@ ${c}
|
|
|
12511
12511
|
}), r[5] = c, r[6] = p, r[7] = m) : m = r[7], m;
|
|
12512
12512
|
};
|
|
12513
12513
|
var LoadingChart$1 = () => {
|
|
12514
|
-
let e = (0, import_compiler_runtime$
|
|
12514
|
+
let e = (0, import_compiler_runtime$65.c)(1), r;
|
|
12515
12515
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (0, import_jsx_runtime.jsx)(ChartInfoState, {
|
|
12516
12516
|
className: "mt-14",
|
|
12517
12517
|
children: "Loading chart..."
|
|
@@ -12655,7 +12655,7 @@ ${c}
|
|
|
12655
12655
|
let r = initialStorageValue.get(e);
|
|
12656
12656
|
return r ? r.length > 0 : false;
|
|
12657
12657
|
}
|
|
12658
|
-
var import_compiler_runtime$
|
|
12658
|
+
var import_compiler_runtime$64 = require_compiler_runtime(), NEW_CHART_TYPE = "bar", DEFAULT_TAB_NAME = "table", CHART_HEIGHT = 290, CHART_MAX_ROWS = 5e4, CHART_MAX_COLUMNS = 50;
|
|
12659
12659
|
const TablePanel = ({ cellId: e, data: r, dataTable: c, totalRows: l, columns: u, getDataUrl: d, fieldTypes: f, displayHeader: p, onCloseChartBuilder: m }) => {
|
|
12660
12660
|
let [h, g] = useAtom(tabsStorageAtom), _ = e ? h.get(e) ?? [] : [], [v, y] = (0, import_react.useState)(DEFAULT_TAB_NAME), [b, S] = (0, import_react.useState)(_.length), T = (0, import_react.useRef)(p);
|
|
12661
12661
|
if (p && !T.current && _.length === 0 && e) {
|
|
@@ -12921,7 +12921,7 @@ ${c}
|
|
|
12921
12921
|
});
|
|
12922
12922
|
};
|
|
12923
12923
|
var ChartFormContainer = (e) => {
|
|
12924
|
-
let r = (0, import_compiler_runtime$
|
|
12924
|
+
let r = (0, import_compiler_runtime$64.c)(28), { form: c, saveChart: l, fieldTypes: u, chartType: d } = e, f;
|
|
12925
12925
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = [], r[0] = f) : f = r[0];
|
|
12926
12926
|
let p = f;
|
|
12927
12927
|
if (u) {
|
|
@@ -13031,9 +13031,9 @@ ${c}
|
|
|
13031
13031
|
function _temp3$10(e) {
|
|
13032
13032
|
return e.preventDefault();
|
|
13033
13033
|
}
|
|
13034
|
-
var import_compiler_runtime$
|
|
13034
|
+
var import_compiler_runtime$63 = require_compiler_runtime();
|
|
13035
13035
|
function usePanelOwnership(e, r) {
|
|
13036
|
-
let c = (0, import_compiler_runtime$
|
|
13036
|
+
let c = (0, import_compiler_runtime$63.c)(16), l = useAtomValue(isCellAwareAtom), { focusCell: u } = useCellFocusActions(), f = useLastFocusedCellId(), [p, m] = useAtom(contextAwarePanelType), [h, g] = useAtom(contextAwarePanelOwner), [_, v] = useAtom(contextAwarePanelOpen), y = getPanelId(e, r);
|
|
13037
13037
|
!r && l && (Logger.error("CellId is not found, defaulting to fixed mode"), l = false);
|
|
13038
13038
|
let b = (e2) => h === y && _ && e2 === p, S = f === r, w = h && isPanelOwner(h, r);
|
|
13039
13039
|
l && S && h !== y && !w && g(y);
|
|
@@ -13071,68 +13071,6 @@ ${c}
|
|
|
13071
13071
|
error: zod_default.string().nullish(),
|
|
13072
13072
|
missing_packages: zod_default.array(zod_default.string()).nullish()
|
|
13073
13073
|
}));
|
|
13074
|
-
var import_compiler_runtime$63 = require_compiler_runtime();
|
|
13075
|
-
const EmptyState = (e) => {
|
|
13076
|
-
let r = (0, import_compiler_runtime$63.c)(5), { content: c, className: l } = e, u;
|
|
13077
|
-
r[0] === l ? u = r[1] : (u = cn("text-sm text-muted-foreground py-1", l), r[0] = l, r[1] = u);
|
|
13078
|
-
let d;
|
|
13079
|
-
return r[2] !== c || r[3] !== u ? (d = (0, import_jsx_runtime.jsx)("div", {
|
|
13080
|
-
className: u,
|
|
13081
|
-
children: c
|
|
13082
|
-
}), r[2] = c, r[3] = u, r[4] = d) : d = r[4], d;
|
|
13083
|
-
}, ErrorState = (e) => {
|
|
13084
|
-
let r = (0, import_compiler_runtime$63.c)(9), { error: c, style: l, className: u, showIcon: d } = e, f = d === void 0 ? true : d, m;
|
|
13085
|
-
r[0] === u ? m = r[1] : (m = cn("text-sm bg-red-50 dark:bg-red-900 text-red-600 dark:text-red-50 flex items-center gap-2 p-2 h-8", u), r[0] = u, r[1] = m);
|
|
13086
|
-
let h;
|
|
13087
|
-
r[2] === f ? h = r[3] : (h = f && (0, import_jsx_runtime.jsx)(X, {
|
|
13088
|
-
className: "h-4 w-4 mt-0.5"
|
|
13089
|
-
}), r[2] = f, r[3] = h);
|
|
13090
|
-
let g;
|
|
13091
|
-
return r[4] !== c.message || r[5] !== l || r[6] !== m || r[7] !== h ? (g = (0, import_jsx_runtime.jsxs)("div", {
|
|
13092
|
-
className: m,
|
|
13093
|
-
style: l,
|
|
13094
|
-
children: [
|
|
13095
|
-
h,
|
|
13096
|
-
c.message
|
|
13097
|
-
]
|
|
13098
|
-
}), r[4] = c.message, r[5] = l, r[6] = m, r[7] = h, r[8] = g) : g = r[8], g;
|
|
13099
|
-
}, LoadingState = (e) => {
|
|
13100
|
-
let r = (0, import_compiler_runtime$63.c)(6), { message: c, className: l } = e, u;
|
|
13101
|
-
r[0] === l ? u = r[1] : (u = cn("text-sm bg-blue-50 dark:bg-(--accent) text-blue-500 dark:text-blue-50 flex items-center gap-2 p-2 h-8", l), r[0] = l, r[1] = u);
|
|
13102
|
-
let d;
|
|
13103
|
-
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
13104
|
-
className: "h-4 w-4 animate-spin"
|
|
13105
|
-
}), r[2] = d) : d = r[2];
|
|
13106
|
-
let f;
|
|
13107
|
-
return r[3] !== c || r[4] !== u ? (f = (0, import_jsx_runtime.jsxs)("div", {
|
|
13108
|
-
className: u,
|
|
13109
|
-
children: [
|
|
13110
|
-
d,
|
|
13111
|
-
c
|
|
13112
|
-
]
|
|
13113
|
-
}), r[3] = c, r[4] = u, r[5] = f) : f = r[5], f;
|
|
13114
|
-
}, ColumnPreviewContainer = (e) => {
|
|
13115
|
-
let r = (0, import_compiler_runtime$63.c)(5), { children: c, className: l } = e, u;
|
|
13116
|
-
r[0] === l ? u = r[1] : (u = cn("flex flex-col gap-2 relative", l), r[0] = l, r[1] = u);
|
|
13117
|
-
let d;
|
|
13118
|
-
return r[2] !== c || r[3] !== u ? (d = (0, import_jsx_runtime.jsx)("div", {
|
|
13119
|
-
className: u,
|
|
13120
|
-
children: c
|
|
13121
|
-
}), r[2] = c, r[3] = u, r[4] = d) : d = r[4], d;
|
|
13122
|
-
}, ColumnName = (e) => {
|
|
13123
|
-
let r = (0, import_compiler_runtime$63.c)(6), { columnName: c, dataType: l } = e, u = DATA_TYPE_ICON[l], d = `w-4 h-4 p-0.5 rounded-sm stroke-card-foreground ${getDataTypeColor(l)}`, f;
|
|
13124
|
-
r[0] !== u || r[1] !== d ? (f = (0, import_jsx_runtime.jsx)(u, {
|
|
13125
|
-
className: d
|
|
13126
|
-
}), r[0] = u, r[1] = d, r[2] = f) : f = r[2];
|
|
13127
|
-
let p;
|
|
13128
|
-
return r[3] !== c || r[4] !== f ? (p = (0, import_jsx_runtime.jsxs)("div", {
|
|
13129
|
-
className: "flex flex-row items-center gap-1.5",
|
|
13130
|
-
children: [
|
|
13131
|
-
f,
|
|
13132
|
-
c
|
|
13133
|
-
]
|
|
13134
|
-
}), r[3] = c, r[4] = f, r[5] = p) : p = r[5], p;
|
|
13135
|
-
};
|
|
13136
13074
|
var import_compiler_runtime$62 = require_compiler_runtime();
|
|
13137
13075
|
function renderPreviewError({ error: e, missingPackages: r, refetchPreview: c }) {
|
|
13138
13076
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -14439,21 +14377,21 @@ ${c}
|
|
|
14439
14377
|
_.pageSize,
|
|
14440
14378
|
_.pageIndex
|
|
14441
14379
|
], 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];
|
|
14442
|
-
let { data: W, error: G, isPending: q, isFetching:
|
|
14443
|
-
r[48] !== Z || r[49] !== e ? (
|
|
14444
|
-
let
|
|
14445
|
-
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !==
|
|
14380
|
+
let { data: W, error: G, isPending: q, isFetching: UU } = useAsyncData(z, H), Z = useAtomValue(downloadSizeLimitAtom), WU;
|
|
14381
|
+
r[48] !== Z || r[49] !== e ? (WU = async () => !Z || !e.showDownload || e.lazy || e.totalRows === 0 ? null : (await e.get_size_bytes({})).size_bytes ?? null, r[48] = Z, r[49] = e, r[50] = WU) : WU = r[50];
|
|
14382
|
+
let GU = e.showDownload, KU = e.get_size_bytes, qU = e.lazy, JU = e.totalRows, YU = useDeepCompareMemoize(w), XU = useDeepCompareMemoize(m), ZU;
|
|
14383
|
+
r[51] !== Z || r[52] !== e.get_size_bytes || r[53] !== e.lazy || r[54] !== e.showDownload || r[55] !== e.totalRows || r[56] !== y || r[57] !== YU || r[58] !== XU ? (ZU = [
|
|
14446
14384
|
Z,
|
|
14385
|
+
GU,
|
|
14386
|
+
KU,
|
|
14447
14387
|
qU,
|
|
14448
14388
|
JU,
|
|
14449
|
-
YU,
|
|
14450
|
-
XU,
|
|
14451
14389
|
y,
|
|
14452
|
-
|
|
14453
|
-
|
|
14454
|
-
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] =
|
|
14455
|
-
let { data:
|
|
14456
|
-
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (
|
|
14390
|
+
YU,
|
|
14391
|
+
XU
|
|
14392
|
+
], r[51] = Z, r[52] = e.get_size_bytes, r[53] = e.lazy, r[54] = e.showDownload, r[55] = e.totalRows, r[56] = y, r[57] = YU, r[58] = XU, r[59] = ZU) : ZU = r[59];
|
|
14393
|
+
let { data: QU, isPending: $U } = useAsyncData(WU, ZU), eW = QU ?? null, tW = !!Z && e.showDownload && $U, nW;
|
|
14394
|
+
r[60] !== w || r[61] !== u || r[62] !== y || r[63] !== m ? (nW = async (e2) => ({
|
|
14457
14395
|
rows: await loadTableData((await u({
|
|
14458
14396
|
page_number: e2,
|
|
14459
14397
|
page_size: 1,
|
|
@@ -14462,38 +14400,38 @@ ${c}
|
|
|
14462
14400
|
filters: filtersToFilterGroup(w),
|
|
14463
14401
|
max_columns: null
|
|
14464
14402
|
})).data)
|
|
14465
|
-
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] =
|
|
14466
|
-
let
|
|
14467
|
-
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
14403
|
+
}), r[60] = w, r[61] = u, r[62] = y, r[63] = m, r[64] = nW) : nW = r[64];
|
|
14404
|
+
let rW = nW, iW;
|
|
14405
|
+
r[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iW = () => {
|
|
14468
14406
|
v(_temp4$4);
|
|
14469
|
-
}, r[65] =
|
|
14470
|
-
let
|
|
14471
|
-
r[66] ===
|
|
14472
|
-
|
|
14473
|
-
], r[66] =
|
|
14474
|
-
let
|
|
14475
|
-
r[68] === e ?
|
|
14407
|
+
}, r[65] = iW) : iW = r[65];
|
|
14408
|
+
let aW = W == null ? void 0 : W.totalRows, oW;
|
|
14409
|
+
r[66] === aW ? oW = r[67] : (oW = [
|
|
14410
|
+
aW
|
|
14411
|
+
], r[66] = aW, r[67] = oW), (0, import_react.useEffect)(iW, oW);
|
|
14412
|
+
let sW;
|
|
14413
|
+
r[68] === e ? sW = r[69] : (sW = async () => e.totalRows === 0 || !e.showColumnSummaries ? {
|
|
14476
14414
|
data: null,
|
|
14477
14415
|
stats: {},
|
|
14478
14416
|
bin_values: {},
|
|
14479
14417
|
value_counts: {},
|
|
14480
14418
|
show_charts: false
|
|
14481
|
-
} : e.get_column_summaries({}), r[68] = e, r[69] =
|
|
14482
|
-
let
|
|
14483
|
-
r[70] !== w || r[71] !== e.data || r[72] !== e.get_column_summaries || r[73] !== e.showColumnSummaries || r[74] !== e.totalRows || r[75] !== y ? (
|
|
14419
|
+
} : e.get_column_summaries({}), r[68] = e, r[69] = sW);
|
|
14420
|
+
let cW;
|
|
14421
|
+
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 = [
|
|
14484
14422
|
e.get_column_summaries,
|
|
14485
14423
|
e.showColumnSummaries,
|
|
14486
14424
|
w,
|
|
14487
14425
|
y,
|
|
14488
14426
|
e.totalRows,
|
|
14489
14427
|
e.data
|
|
14490
|
-
], 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] =
|
|
14491
|
-
let { data:
|
|
14492
|
-
if (r[77] ===
|
|
14493
|
-
|
|
14494
|
-
},
|
|
14495
|
-
|
|
14496
|
-
], r[77] =
|
|
14428
|
+
], 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];
|
|
14429
|
+
let { data: lW, error: uW } = useAsyncData(sW, cW), dW, fW;
|
|
14430
|
+
if (r[77] === uW ? (dW = r[78], fW = r[79]) : (dW = () => {
|
|
14431
|
+
uW && Logger.error(uW);
|
|
14432
|
+
}, fW = [
|
|
14433
|
+
uW
|
|
14434
|
+
], r[77] = uW, r[78] = dW, r[79] = fW), (0, import_react.useEffect)(dW, fW), q) {
|
|
14497
14435
|
let c2 = e.totalRows !== "too_many" && e.totalRows > 0 ? Math.min(e.totalRows, e.pageSize) : e.pageSize, l2;
|
|
14498
14436
|
return r[80] === c2 ? l2 = r[81] : (l2 = (0, import_jsx_runtime.jsx)(DelayMount, {
|
|
14499
14437
|
milliseconds: 200,
|
|
@@ -14502,7 +14440,7 @@ ${c}
|
|
|
14502
14440
|
})
|
|
14503
14441
|
}), r[80] = c2, r[81] = l2), l2;
|
|
14504
14442
|
}
|
|
14505
|
-
let
|
|
14443
|
+
let pW = null;
|
|
14506
14444
|
if (G) {
|
|
14507
14445
|
Logger.error(G);
|
|
14508
14446
|
let e2;
|
|
@@ -14518,61 +14456,61 @@ ${c}
|
|
|
14518
14456
|
children: G.message || "An unknown error occurred"
|
|
14519
14457
|
})
|
|
14520
14458
|
]
|
|
14521
|
-
}), r[82] = G, r[83] = e2),
|
|
14459
|
+
}), r[82] = G, r[83] = e2), pW = e2;
|
|
14522
14460
|
}
|
|
14523
|
-
let
|
|
14524
|
-
r[84] === O ?
|
|
14461
|
+
let mW;
|
|
14462
|
+
r[84] === O ? mW = r[85] : (mW = () => {
|
|
14525
14463
|
j(!O);
|
|
14526
|
-
}, r[84] = O, r[85] =
|
|
14527
|
-
let
|
|
14528
|
-
r[86] !== l || r[87] !==
|
|
14464
|
+
}, r[84] = O, r[85] = mW);
|
|
14465
|
+
let hW = mW, gW = (W == null ? void 0 : W.rows) ?? Arrays.EMPTY, _W = W == null ? void 0 : W.rawRows, vW = UU && !q, yW = (W == null ? void 0 : W.totalRows) ?? e.totalRows, bW = (W == null ? void 0 : W.cellStyles) ?? e.cellStyles, xW = (W == null ? void 0 : W.cellHoverTexts) ?? e.cellHoverTexts, SW;
|
|
14466
|
+
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, {
|
|
14529
14467
|
...e,
|
|
14530
|
-
data:
|
|
14531
|
-
rawData:
|
|
14532
|
-
columnSummaries:
|
|
14468
|
+
data: gW,
|
|
14469
|
+
rawData: _W,
|
|
14470
|
+
columnSummaries: lW,
|
|
14533
14471
|
sorting: m,
|
|
14534
14472
|
setSorting: h,
|
|
14535
14473
|
searchQuery: y,
|
|
14536
14474
|
setSearchQuery: b,
|
|
14537
14475
|
filters: w,
|
|
14538
14476
|
setFilters: T,
|
|
14539
|
-
reloading:
|
|
14540
|
-
totalRows:
|
|
14541
|
-
sizeBytes:
|
|
14542
|
-
sizeBytesIsLoading:
|
|
14477
|
+
reloading: vW,
|
|
14478
|
+
totalRows: yW,
|
|
14479
|
+
sizeBytes: eW,
|
|
14480
|
+
sizeBytesIsLoading: tW,
|
|
14543
14481
|
paginationState: _,
|
|
14544
14482
|
setPaginationState: v,
|
|
14545
|
-
cellStyles:
|
|
14546
|
-
cellHoverTexts:
|
|
14547
|
-
toggleDisplayHeader:
|
|
14483
|
+
cellStyles: bW,
|
|
14484
|
+
cellHoverTexts: xW,
|
|
14485
|
+
toggleDisplayHeader: hW,
|
|
14548
14486
|
isChartBuilderOpen: O,
|
|
14549
|
-
getRow:
|
|
14487
|
+
getRow: rW,
|
|
14550
14488
|
cellId: l,
|
|
14551
14489
|
maxHeight: e.maxHeight
|
|
14552
|
-
}), r[86] = l, r[87] =
|
|
14553
|
-
let
|
|
14554
|
-
r[105] !== l || r[106] !==
|
|
14490
|
+
}), 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];
|
|
14491
|
+
let CW = SW, wW;
|
|
14492
|
+
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, {
|
|
14555
14493
|
displayHeader: O,
|
|
14556
14494
|
onCloseChartBuilder: () => j(false),
|
|
14557
14495
|
data: (W == null ? void 0 : W.rows) || [],
|
|
14558
14496
|
columns: e.totalColumns,
|
|
14559
14497
|
totalRows: e.totalRows,
|
|
14560
|
-
dataTable:
|
|
14498
|
+
dataTable: CW,
|
|
14561
14499
|
getDataUrl: e.get_data_url,
|
|
14562
14500
|
fieldTypes: e.fieldTypes,
|
|
14563
14501
|
cellId: l
|
|
14564
|
-
}) :
|
|
14565
|
-
let
|
|
14566
|
-
return r[115] !==
|
|
14502
|
+
}) : 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];
|
|
14503
|
+
let TW;
|
|
14504
|
+
return r[115] !== pW || r[116] !== wW ? (TW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14567
14505
|
children: [
|
|
14568
|
-
|
|
14569
|
-
|
|
14506
|
+
pW,
|
|
14507
|
+
wW
|
|
14570
14508
|
]
|
|
14571
|
-
}), r[115] =
|
|
14509
|
+
}), r[115] = pW, r[116] = wW, r[117] = TW) : TW = r[117], TW;
|
|
14572
14510
|
});
|
|
14573
14511
|
LoadingDataTableComponent.displayName = "LoadingDataTableComponent";
|
|
14574
|
-
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: G, setSearchQuery: q, filters:
|
|
14575
|
-
let
|
|
14512
|
+
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: G, setSearchQuery: q, filters: UU, setFilters: Z, reloading: WU, 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 }) => {
|
|
14513
|
+
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)(() => {
|
|
14576
14514
|
if (!L || !O || !L.stats) return ColumnChartSpecModel.EMPTY;
|
|
14577
14515
|
let e2 = toFieldTypes(O);
|
|
14578
14516
|
return new ColumnChartSpecModel(L.data || [], e2, L.stats, L.bin_values, L.value_counts, {
|
|
@@ -14581,13 +14519,13 @@ ${c}
|
|
|
14581
14519
|
}, [
|
|
14582
14520
|
O,
|
|
14583
14521
|
L
|
|
14584
|
-
]),
|
|
14522
|
+
]), vW = useDeepCompareMemoize(O ?? inferFieldTypes(r)), yW = (0, import_react.useMemo)(() => f === "all" ? vW : vW.slice(0, f), [
|
|
14585
14523
|
f,
|
|
14586
|
-
|
|
14587
|
-
]),
|
|
14524
|
+
vW
|
|
14525
|
+
]), bW = (0, import_react.useMemo)(() => {
|
|
14588
14526
|
let e2 = {};
|
|
14589
14527
|
if (r && r.length > 0) {
|
|
14590
|
-
for (let [c2, l2] of
|
|
14528
|
+
for (let [c2, l2] of yW) if (l2[0] === "number") {
|
|
14591
14529
|
let l3 = 0;
|
|
14592
14530
|
for (let e3 of r) {
|
|
14593
14531
|
let r2 = e3[c2];
|
|
@@ -14602,93 +14540,93 @@ ${c}
|
|
|
14602
14540
|
return e2;
|
|
14603
14541
|
}, [
|
|
14604
14542
|
r,
|
|
14605
|
-
|
|
14606
|
-
]),
|
|
14543
|
+
yW
|
|
14544
|
+
]), xW = useDeepCompareMemoize(T), SW = useDeepCompareMemoize(JU), CW = useDeepCompareMemoize(YU), wW = useDeepCompareMemoize(_W), TW = useDeepCompareMemoize(bW), EW = yW.length;
|
|
14607
14545
|
O || (w = false);
|
|
14608
|
-
let
|
|
14609
|
-
rowHeaders:
|
|
14546
|
+
let DW = (0, import_react.useMemo)(() => generateColumns({
|
|
14547
|
+
rowHeaders: xW,
|
|
14610
14548
|
selection: m,
|
|
14611
|
-
chartSpecModel:
|
|
14612
|
-
fieldTypes:
|
|
14613
|
-
textJustifyColumns:
|
|
14614
|
-
wrappedColumns:
|
|
14615
|
-
headerTooltip:
|
|
14549
|
+
chartSpecModel: wW,
|
|
14550
|
+
fieldTypes: yW,
|
|
14551
|
+
textJustifyColumns: SW,
|
|
14552
|
+
wrappedColumns: CW,
|
|
14553
|
+
headerTooltip: XU,
|
|
14616
14554
|
showDataTypes: w,
|
|
14617
|
-
calculateTopKRows:
|
|
14618
|
-
fractionDigitsByColumn:
|
|
14555
|
+
calculateTopKRows: iW,
|
|
14556
|
+
fractionDigitsByColumn: TW
|
|
14619
14557
|
}), [
|
|
14620
14558
|
m,
|
|
14621
14559
|
w,
|
|
14622
|
-
EW,
|
|
14623
|
-
CW,
|
|
14624
|
-
xW,
|
|
14625
14560
|
wW,
|
|
14626
|
-
|
|
14627
|
-
|
|
14628
|
-
|
|
14629
|
-
|
|
14630
|
-
|
|
14561
|
+
xW,
|
|
14562
|
+
yW,
|
|
14563
|
+
SW,
|
|
14564
|
+
CW,
|
|
14565
|
+
XU,
|
|
14566
|
+
iW,
|
|
14567
|
+
TW
|
|
14568
|
+
]), OW = (0, import_react.useMemo)(() => Object.fromEntries((h || []).map((e2) => [
|
|
14631
14569
|
e2,
|
|
14632
14570
|
true
|
|
14633
14571
|
])), [
|
|
14634
14572
|
h
|
|
14635
|
-
]),
|
|
14573
|
+
]), kW = useEvent_default((e2) => {
|
|
14636
14574
|
if (m === "single") {
|
|
14637
14575
|
let r2 = Functions.asUpdater(e2)({});
|
|
14638
14576
|
z(Object.keys(r2).slice(0, 1));
|
|
14639
14577
|
}
|
|
14640
14578
|
if (m === "multi") {
|
|
14641
|
-
let r2 = Functions.asUpdater(e2)(
|
|
14579
|
+
let r2 = Functions.asUpdater(e2)(OW);
|
|
14642
14580
|
z(Object.keys(r2));
|
|
14643
14581
|
}
|
|
14644
|
-
}),
|
|
14645
|
-
if (
|
|
14582
|
+
}), AW = useEvent_default((e2) => {
|
|
14583
|
+
if (dW(e2), e2 < 0 || typeof l == "number" && e2 >= l || l === "too_many") return;
|
|
14646
14584
|
let r2 = getPageIndexForRow(e2, j.pageIndex, j.pageSize);
|
|
14647
14585
|
r2 !== null && M((e3) => ({
|
|
14648
14586
|
...e3,
|
|
14649
14587
|
pageIndex: r2
|
|
14650
14588
|
}));
|
|
14651
|
-
}),
|
|
14652
|
-
m === "single-cell" && z(Functions.asUpdater(e2)(
|
|
14653
|
-
}),
|
|
14654
|
-
if (!(!
|
|
14589
|
+
}), jW = h.filter((e2) => e2 instanceof Object && e2.columnName !== void 0), MW = useEvent_default((e2) => {
|
|
14590
|
+
m === "single-cell" && z(Functions.asUpdater(e2)(jW).slice(0, 1)), m === "multi-cell" && z(Functions.asUpdater(e2)(jW));
|
|
14591
|
+
}), NW = m === "multi" || m === "single", PW = y && !!aW, FW = isInVscodeExtension(), IW = isIslands(), LW = (0, import_react.useMemo)(() => {
|
|
14592
|
+
if (!(!pW || !(b || PW))) return (e2) => (0, import_jsx_runtime.jsx)(ContextAwarePanelItem, {
|
|
14655
14593
|
children: (0, import_jsx_runtime.jsx)(TableExplorerPanel, {
|
|
14656
|
-
rowIdx:
|
|
14657
|
-
setRowIdx:
|
|
14594
|
+
rowIdx: uW,
|
|
14595
|
+
setRowIdx: AW,
|
|
14658
14596
|
totalRows: l,
|
|
14659
|
-
fieldTypes:
|
|
14660
|
-
getRow:
|
|
14661
|
-
isSelectable:
|
|
14662
|
-
isRowSelected: !!
|
|
14663
|
-
handleRowSelectionChange:
|
|
14664
|
-
previewColumn:
|
|
14665
|
-
totalColumns:
|
|
14666
|
-
tableId:
|
|
14597
|
+
fieldTypes: vW,
|
|
14598
|
+
getRow: oW,
|
|
14599
|
+
isSelectable: NW,
|
|
14600
|
+
isRowSelected: !!OW[uW],
|
|
14601
|
+
handleRowSelectionChange: kW,
|
|
14602
|
+
previewColumn: aW,
|
|
14603
|
+
totalColumns: ZU,
|
|
14604
|
+
tableId: lW,
|
|
14667
14605
|
table: e2,
|
|
14668
|
-
showRowExplorer: b && !
|
|
14669
|
-
showColumnExplorer:
|
|
14670
|
-
activeTab:
|
|
14671
|
-
onTabChange:
|
|
14606
|
+
showRowExplorer: b && !FW,
|
|
14607
|
+
showColumnExplorer: PW && !FW,
|
|
14608
|
+
activeTab: hW,
|
|
14609
|
+
onTabChange: gW
|
|
14672
14610
|
})
|
|
14673
14611
|
});
|
|
14674
14612
|
}, [
|
|
14675
|
-
|
|
14613
|
+
pW,
|
|
14676
14614
|
b,
|
|
14677
|
-
|
|
14678
|
-
|
|
14679
|
-
|
|
14615
|
+
PW,
|
|
14616
|
+
uW,
|
|
14617
|
+
AW,
|
|
14680
14618
|
l,
|
|
14681
|
-
|
|
14682
|
-
|
|
14619
|
+
vW,
|
|
14620
|
+
oW,
|
|
14621
|
+
NW,
|
|
14622
|
+
OW,
|
|
14623
|
+
kW,
|
|
14624
|
+
aW,
|
|
14625
|
+
ZU,
|
|
14626
|
+
lW,
|
|
14683
14627
|
FW,
|
|
14684
|
-
|
|
14685
|
-
|
|
14686
|
-
sW,
|
|
14687
|
-
$U,
|
|
14688
|
-
dW,
|
|
14689
|
-
LW,
|
|
14690
|
-
_W,
|
|
14691
|
-
vW
|
|
14628
|
+
hW,
|
|
14629
|
+
gW
|
|
14692
14630
|
]);
|
|
14693
14631
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
14694
14632
|
children: [
|
|
@@ -14700,13 +14638,13 @@ ${c}
|
|
|
14700
14638
|
" rows."
|
|
14701
14639
|
]
|
|
14702
14640
|
}),
|
|
14703
|
-
|
|
14641
|
+
EW < ZU && EW > 0 && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
14704
14642
|
className: "mb-1 rounded",
|
|
14705
14643
|
children: [
|
|
14706
14644
|
"Result clipped. Showing ",
|
|
14707
|
-
|
|
14645
|
+
EW,
|
|
14708
14646
|
" of ",
|
|
14709
|
-
|
|
14647
|
+
ZU,
|
|
14710
14648
|
" columns."
|
|
14711
14649
|
]
|
|
14712
14650
|
}),
|
|
@@ -14715,7 +14653,7 @@ ${c}
|
|
|
14715
14653
|
children: "Column summaries are unavailable. Filter your data to fewer than 1,000,000 rows."
|
|
14716
14654
|
}),
|
|
14717
14655
|
(0, import_jsx_runtime.jsx)(ColumnChartContext, {
|
|
14718
|
-
value:
|
|
14656
|
+
value: _W,
|
|
14719
14657
|
children: (0, import_jsx_runtime.jsx)(Labeled, {
|
|
14720
14658
|
label: e,
|
|
14721
14659
|
align: "top",
|
|
@@ -14723,14 +14661,14 @@ ${c}
|
|
|
14723
14661
|
children: (0, import_jsx_runtime.jsx)(DataTable, {
|
|
14724
14662
|
data: r,
|
|
14725
14663
|
rawData: c,
|
|
14726
|
-
columns:
|
|
14664
|
+
columns: DW,
|
|
14727
14665
|
className: R,
|
|
14728
|
-
maxHeight:
|
|
14666
|
+
maxHeight: cW,
|
|
14729
14667
|
sorting: B,
|
|
14730
14668
|
totalRows: l,
|
|
14731
14669
|
sizeBytes: u,
|
|
14732
14670
|
sizeBytesIsLoading: d,
|
|
14733
|
-
totalColumns:
|
|
14671
|
+
totalColumns: ZU,
|
|
14734
14672
|
manualSorting: true,
|
|
14735
14673
|
setSorting: H,
|
|
14736
14674
|
pagination: p,
|
|
@@ -14738,37 +14676,37 @@ ${c}
|
|
|
14738
14676
|
selection: m,
|
|
14739
14677
|
paginationState: j,
|
|
14740
14678
|
setPaginationState: M,
|
|
14741
|
-
rowSelection:
|
|
14742
|
-
cellSelection:
|
|
14743
|
-
cellStyling:
|
|
14744
|
-
hoverTemplate:
|
|
14745
|
-
cellHoverTexts:
|
|
14679
|
+
rowSelection: OW,
|
|
14680
|
+
cellSelection: jW,
|
|
14681
|
+
cellStyling: $U,
|
|
14682
|
+
hoverTemplate: eW,
|
|
14683
|
+
cellHoverTexts: tW,
|
|
14746
14684
|
downloadAs: _ ? I : void 0,
|
|
14747
14685
|
enableSearch: W,
|
|
14748
14686
|
searchQuery: G,
|
|
14749
14687
|
onSearchQueryChange: q,
|
|
14750
14688
|
showFilters: g,
|
|
14751
|
-
filters:
|
|
14689
|
+
filters: UU,
|
|
14752
14690
|
onFiltersChange: Z,
|
|
14753
|
-
calculateTopKRows:
|
|
14754
|
-
reloading:
|
|
14755
|
-
onRowSelectionChange:
|
|
14756
|
-
freezeColumnsLeft:
|
|
14757
|
-
freezeColumnsRight:
|
|
14758
|
-
hiddenColumns:
|
|
14759
|
-
onCellSelectionChange:
|
|
14760
|
-
getRowIds:
|
|
14761
|
-
toggleDisplayHeader:
|
|
14762
|
-
showChartBuilder: S && !
|
|
14763
|
-
isChartBuilderOpen:
|
|
14691
|
+
calculateTopKRows: iW,
|
|
14692
|
+
reloading: WU,
|
|
14693
|
+
onRowSelectionChange: kW,
|
|
14694
|
+
freezeColumnsLeft: GU,
|
|
14695
|
+
freezeColumnsRight: KU,
|
|
14696
|
+
hiddenColumns: qU,
|
|
14697
|
+
onCellSelectionChange: MW,
|
|
14698
|
+
getRowIds: QU,
|
|
14699
|
+
toggleDisplayHeader: nW,
|
|
14700
|
+
showChartBuilder: S && !IW,
|
|
14701
|
+
isChartBuilderOpen: rW,
|
|
14764
14702
|
showPageSizeSelector: v,
|
|
14765
|
-
showTableExplorer: (b ||
|
|
14766
|
-
togglePanel:
|
|
14767
|
-
isPanelOpen:
|
|
14768
|
-
isAnyPanelOpen:
|
|
14769
|
-
viewedRowIdx:
|
|
14770
|
-
onViewedRowChange: (e2) =>
|
|
14771
|
-
renderTableExplorerPanel:
|
|
14703
|
+
showTableExplorer: (b || PW) && !FW && !IW,
|
|
14704
|
+
togglePanel: mW,
|
|
14705
|
+
isPanelOpen: fW,
|
|
14706
|
+
isAnyPanelOpen: pW,
|
|
14707
|
+
viewedRowIdx: uW,
|
|
14708
|
+
onViewedRowChange: (e2) => dW(e2),
|
|
14709
|
+
renderTableExplorerPanel: LW
|
|
14772
14710
|
})
|
|
14773
14711
|
})
|
|
14774
14712
|
})
|
|
@@ -16820,29 +16758,29 @@ ${c}
|
|
|
16820
16758
|
], r[2] = S, r[3] = w);
|
|
16821
16759
|
let { data: T, error: O, isPending: j } = useAsyncData(b, w), M;
|
|
16822
16760
|
r[4] === T ? M = r[5] : (M = T || {}, r[4] = T, r[5] = M);
|
|
16823
|
-
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q,
|
|
16824
|
-
r[6] === d ?
|
|
16761
|
+
let { url: I, total_rows: L, row_headers: R, field_types: z, column_types_per_step: B, python_code: H, sql_code: W } = M, G = z == null ? void 0 : z.length, [q, UU] = (0, import_react.useState)(f || EMPTY), Z = (0, import_react.useRef)(null), WU;
|
|
16762
|
+
r[6] === d ? WU = r[7] : (WU = (e2) => {
|
|
16825
16763
|
var _a3;
|
|
16826
16764
|
d && e2 !== "transform" && ((_a3 = Z.current) == null ? void 0 : _a3.submit());
|
|
16827
|
-
}, r[6] = d, r[7] =
|
|
16828
|
-
let
|
|
16829
|
-
r[8] === q ?
|
|
16830
|
-
|
|
16831
|
-
}, r[8] = q, r[9] =
|
|
16832
|
-
let
|
|
16833
|
-
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (
|
|
16834
|
-
let e2 =
|
|
16765
|
+
}, r[6] = d, r[7] = WU);
|
|
16766
|
+
let GU = WU, KU = (0, import_react.useRef)(q), qU;
|
|
16767
|
+
r[8] === q ? qU = r[9] : (qU = () => {
|
|
16768
|
+
KU.current = q;
|
|
16769
|
+
}, r[8] = q, r[9] = qU), (0, import_react.useEffect)(qU);
|
|
16770
|
+
let JU;
|
|
16771
|
+
r[10] !== p || r[11] !== (f == null ? void 0 : f.transforms.length) ? (JU = () => {
|
|
16772
|
+
let e2 = KU.current;
|
|
16835
16773
|
(f == null ? void 0 : f.transforms.length) !== e2.transforms.length && p(e2);
|
|
16836
|
-
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] =
|
|
16837
|
-
let
|
|
16838
|
-
r[13] !== T || r[14] !== p || r[15] !==
|
|
16774
|
+
}, r[10] = p, r[11] = f == null ? void 0 : f.transforms.length, r[12] = JU) : JU = r[12];
|
|
16775
|
+
let YU = f == null ? void 0 : f.transforms.length, XU;
|
|
16776
|
+
r[13] !== T || r[14] !== p || r[15] !== YU ? (XU = [
|
|
16839
16777
|
T,
|
|
16840
|
-
|
|
16841
|
-
|
|
16778
|
+
YU,
|
|
16779
|
+
KU,
|
|
16842
16780
|
p
|
|
16843
|
-
], r[13] = T, r[14] = p, r[15] =
|
|
16844
|
-
let
|
|
16845
|
-
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16781
|
+
], r[13] = T, r[14] = p, r[15] = YU, r[16] = XU) : XU = r[16], (0, import_react.useEffect)(JU, XU);
|
|
16782
|
+
let ZU;
|
|
16783
|
+
r[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZU = (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16846
16784
|
value: "transform",
|
|
16847
16785
|
className: "text-xs py-1",
|
|
16848
16786
|
children: [
|
|
@@ -16851,9 +16789,9 @@ ${c}
|
|
|
16851
16789
|
}),
|
|
16852
16790
|
"Transform"
|
|
16853
16791
|
]
|
|
16854
|
-
}), r[17] =
|
|
16855
|
-
let
|
|
16856
|
-
r[18] === H ?
|
|
16792
|
+
}), r[17] = ZU) : ZU = r[17];
|
|
16793
|
+
let QU;
|
|
16794
|
+
r[18] === H ? QU = r[19] : (QU = H && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16857
16795
|
value: "python-code",
|
|
16858
16796
|
className: "text-xs py-1",
|
|
16859
16797
|
children: [
|
|
@@ -16862,9 +16800,9 @@ ${c}
|
|
|
16862
16800
|
}),
|
|
16863
16801
|
"Python Code"
|
|
16864
16802
|
]
|
|
16865
|
-
}), r[18] = H, r[19] =
|
|
16866
|
-
let
|
|
16867
|
-
r[20] === W ?
|
|
16803
|
+
}), r[18] = H, r[19] = QU);
|
|
16804
|
+
let $U;
|
|
16805
|
+
r[20] === W ? $U = r[21] : ($U = W && (0, import_jsx_runtime.jsxs)(TabsTrigger, {
|
|
16868
16806
|
value: "sql-code",
|
|
16869
16807
|
className: "text-xs py-1",
|
|
16870
16808
|
children: [
|
|
@@ -16873,54 +16811,54 @@ ${c}
|
|
|
16873
16811
|
}),
|
|
16874
16812
|
"SQL Code"
|
|
16875
16813
|
]
|
|
16876
|
-
}), r[20] = W, r[21] =
|
|
16877
|
-
let
|
|
16878
|
-
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
16814
|
+
}), r[20] = W, r[21] = $U);
|
|
16815
|
+
let eW;
|
|
16816
|
+
r[22] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eW = (0, import_jsx_runtime.jsx)("div", {
|
|
16879
16817
|
className: "grow"
|
|
16880
|
-
}), r[22] =
|
|
16881
|
-
let
|
|
16882
|
-
r[23] !==
|
|
16818
|
+
}), r[22] = eW) : eW = r[22];
|
|
16819
|
+
let tW;
|
|
16820
|
+
r[23] !== QU || r[24] !== $U ? (tW = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
16883
16821
|
className: "h-8",
|
|
16884
16822
|
children: [
|
|
16823
|
+
ZU,
|
|
16824
|
+
QU,
|
|
16885
16825
|
$U,
|
|
16886
|
-
eW
|
|
16887
|
-
tW,
|
|
16888
|
-
nW
|
|
16826
|
+
eW
|
|
16889
16827
|
]
|
|
16890
|
-
}), r[23] =
|
|
16891
|
-
let
|
|
16892
|
-
r[26] === j ?
|
|
16828
|
+
}), r[23] = QU, r[24] = $U, r[25] = tW) : tW = r[25];
|
|
16829
|
+
let nW;
|
|
16830
|
+
r[26] === j ? nW = r[27] : (nW = j && (0, import_jsx_runtime.jsx)(Spinner, {
|
|
16893
16831
|
size: "small"
|
|
16894
|
-
}), r[26] = j, r[27] =
|
|
16895
|
-
let
|
|
16896
|
-
r[28] !==
|
|
16832
|
+
}), r[26] = j, r[27] = nW);
|
|
16833
|
+
let iW;
|
|
16834
|
+
r[28] !== tW || r[29] !== nW ? (iW = (0, import_jsx_runtime.jsxs)("div", {
|
|
16897
16835
|
className: "flex items-center gap-2",
|
|
16898
16836
|
children: [
|
|
16899
|
-
|
|
16900
|
-
|
|
16837
|
+
tW,
|
|
16838
|
+
nW
|
|
16901
16839
|
]
|
|
16902
|
-
}), r[28] =
|
|
16903
|
-
let
|
|
16904
|
-
r[31] !== p || r[32] !== f ? (
|
|
16905
|
-
dequal(e2, f) || (p(e2),
|
|
16906
|
-
}, r[31] = p, r[32] = f, r[33] =
|
|
16907
|
-
let
|
|
16908
|
-
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !==
|
|
16840
|
+
}), r[28] = tW, r[29] = nW, r[30] = iW) : iW = r[30];
|
|
16841
|
+
let aW;
|
|
16842
|
+
r[31] !== p || r[32] !== f ? (aW = (e2) => {
|
|
16843
|
+
dequal(e2, f) || (p(e2), UU(e2));
|
|
16844
|
+
}, r[31] = p, r[32] = f, r[33] = aW) : aW = r[33];
|
|
16845
|
+
let oW;
|
|
16846
|
+
r[34] !== B || r[35] !== c || r[36] !== h || r[37] !== q || r[38] !== d || r[39] !== aW ? (oW = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16909
16847
|
value: "transform",
|
|
16910
16848
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16911
16849
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
16912
16850
|
ref: Z,
|
|
16913
16851
|
initialValue: q,
|
|
16914
16852
|
columns: c,
|
|
16915
|
-
onChange:
|
|
16916
|
-
onInvalidChange:
|
|
16853
|
+
onChange: aW,
|
|
16854
|
+
onInvalidChange: UU,
|
|
16917
16855
|
getColumnValues: h,
|
|
16918
16856
|
columnTypesPerStep: B,
|
|
16919
16857
|
lazy: d
|
|
16920
16858
|
})
|
|
16921
|
-
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] =
|
|
16922
|
-
let
|
|
16923
|
-
r[41] === H ?
|
|
16859
|
+
}), r[34] = B, r[35] = c, r[36] = h, r[37] = q, r[38] = d, r[39] = aW, r[40] = oW) : oW = r[40];
|
|
16860
|
+
let sW;
|
|
16861
|
+
r[41] === H ? sW = r[42] : (sW = H && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16924
16862
|
value: "python-code",
|
|
16925
16863
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16926
16864
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16929,9 +16867,9 @@ ${c}
|
|
|
16929
16867
|
code: H,
|
|
16930
16868
|
language: "python"
|
|
16931
16869
|
})
|
|
16932
|
-
}), r[41] = H, r[42] =
|
|
16933
|
-
let
|
|
16934
|
-
r[43] === W ?
|
|
16870
|
+
}), r[41] = H, r[42] = sW);
|
|
16871
|
+
let cW;
|
|
16872
|
+
r[43] === W ? cW = r[44] : (cW = W && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
16935
16873
|
value: "sql-code",
|
|
16936
16874
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
16937
16875
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -16940,35 +16878,35 @@ ${c}
|
|
|
16940
16878
|
code: W,
|
|
16941
16879
|
language: "sql"
|
|
16942
16880
|
})
|
|
16943
|
-
}), r[43] = W, r[44] =
|
|
16944
|
-
let
|
|
16945
|
-
r[45] !==
|
|
16881
|
+
}), r[43] = W, r[44] = cW);
|
|
16882
|
+
let lW;
|
|
16883
|
+
r[45] !== GU || r[46] !== iW || r[47] !== oW || r[48] !== sW || r[49] !== cW ? (lW = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
16946
16884
|
defaultValue: "transform",
|
|
16947
|
-
onValueChange:
|
|
16885
|
+
onValueChange: GU,
|
|
16948
16886
|
children: [
|
|
16887
|
+
iW,
|
|
16949
16888
|
oW,
|
|
16950
|
-
|
|
16951
|
-
|
|
16952
|
-
uW
|
|
16889
|
+
sW,
|
|
16890
|
+
cW
|
|
16953
16891
|
]
|
|
16954
|
-
}), r[45] =
|
|
16955
|
-
let
|
|
16956
|
-
r[51] === O ?
|
|
16892
|
+
}), r[45] = GU, r[46] = iW, r[47] = oW, r[48] = sW, r[49] = cW, r[50] = lW) : lW = r[50];
|
|
16893
|
+
let uW;
|
|
16894
|
+
r[51] === O ? uW = r[52] : (uW = O && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
16957
16895
|
error: O
|
|
16958
|
-
}), r[51] = O, r[52] =
|
|
16959
|
-
let
|
|
16960
|
-
r[53] !== _ || r[54] !== z || r[55] !== v || r[56] !== y || r[57] !== l || r[58] !== g || r[59] !== u || r[60] !==
|
|
16896
|
+
}), r[51] = O, r[52] = uW);
|
|
16897
|
+
let dW = I || "", fW = L ?? 0, pW = G ?? 0, mW = R || Arrays.EMPTY, hW = L && L > 5 || false, gW;
|
|
16898
|
+
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, {
|
|
16961
16899
|
label: null,
|
|
16962
16900
|
className: "rounded-b border-x border-b",
|
|
16963
|
-
data:
|
|
16901
|
+
data: dW,
|
|
16964
16902
|
hasStableRowId: false,
|
|
16965
|
-
totalRows:
|
|
16966
|
-
totalColumns:
|
|
16903
|
+
totalRows: fW,
|
|
16904
|
+
totalColumns: pW,
|
|
16967
16905
|
maxColumns: "all",
|
|
16968
16906
|
pageSize: l,
|
|
16969
16907
|
pagination: true,
|
|
16970
16908
|
fieldTypes: z,
|
|
16971
|
-
rowHeaders:
|
|
16909
|
+
rowHeaders: mW,
|
|
16972
16910
|
showDownload: u,
|
|
16973
16911
|
download_as: _,
|
|
16974
16912
|
get_size_bytes: v,
|
|
@@ -16978,7 +16916,7 @@ ${c}
|
|
|
16978
16916
|
showColumnSummaries: false,
|
|
16979
16917
|
showDataTypes: true,
|
|
16980
16918
|
get_column_summaries: getColumnSummaries,
|
|
16981
|
-
showPageSizeSelector:
|
|
16919
|
+
showPageSizeSelector: hW,
|
|
16982
16920
|
showColumnExplorer: false,
|
|
16983
16921
|
showRowExplorer: true,
|
|
16984
16922
|
showChartBuilder: false,
|
|
@@ -16987,15 +16925,15 @@ ${c}
|
|
|
16987
16925
|
selection: null,
|
|
16988
16926
|
lazy: false,
|
|
16989
16927
|
host: y
|
|
16990
|
-
}), r[53] = _, r[54] = z, r[55] = v, r[56] = y, r[57] = l, r[58] = g, r[59] = u, r[60] =
|
|
16991
|
-
let
|
|
16992
|
-
return r[66] !==
|
|
16928
|
+
}), 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];
|
|
16929
|
+
let _W;
|
|
16930
|
+
return r[66] !== lW || r[67] !== uW || r[68] !== gW ? (_W = (0, import_jsx_runtime.jsxs)("div", {
|
|
16993
16931
|
children: [
|
|
16994
|
-
|
|
16995
|
-
|
|
16996
|
-
|
|
16932
|
+
lW,
|
|
16933
|
+
uW,
|
|
16934
|
+
gW
|
|
16997
16935
|
]
|
|
16998
|
-
}), r[66] =
|
|
16936
|
+
}), r[66] = lW, r[67] = uW, r[68] = gW, r[69] = _W) : _W = r[69], _W;
|
|
16999
16937
|
});
|
|
17000
16938
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
17001
16939
|
function getColumnSummaries() {
|
|
@@ -17183,28 +17121,28 @@ ${c}
|
|
|
17183
17121
|
}, W = [
|
|
17184
17122
|
B
|
|
17185
17123
|
], r[8] = B, r[9] = H, r[10] = W), (0, import_react.useEffect)(H, W);
|
|
17186
|
-
let G, q,
|
|
17124
|
+
let G, q, UU, Z, GU, KU, qU, JU, YU;
|
|
17187
17125
|
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) {
|
|
17188
|
-
|
|
17126
|
+
YU = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
17189
17127
|
bb0: {
|
|
17190
|
-
|
|
17128
|
+
GU = (R == null ? void 0 : R.files) ?? [];
|
|
17191
17129
|
let e2;
|
|
17192
17130
|
r[31] === c ? e2 = r[32] : (e2 = new Set(c.map(_temp$12)), r[31] = c, r[32] = e2);
|
|
17193
17131
|
let m2 = e2, g2 = d === "directory" || d === "all", _2 = d === "file" || d === "all", w;
|
|
17194
17132
|
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];
|
|
17195
|
-
let T2 =
|
|
17133
|
+
let T2 = GU.filter(w);
|
|
17196
17134
|
if (G = T2.length > 0 && T2.every((e3) => m2.has(e3.path)), !R && z) {
|
|
17197
17135
|
let e3;
|
|
17198
17136
|
r[36] === z.message ? e3 = r[37] : (e3 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
17199
17137
|
kind: "danger",
|
|
17200
17138
|
children: z.message
|
|
17201
|
-
}), r[36] = z.message, r[37] = e3),
|
|
17139
|
+
}), r[36] = z.message, r[37] = e3), YU = e3;
|
|
17202
17140
|
break bb0;
|
|
17203
17141
|
}
|
|
17204
17142
|
let E2;
|
|
17205
17143
|
r[38] === u ? E2 = r[39] : (E2 = PathBuilder.guessDeliminator(u), r[38] = u, r[39] = E2), q = E2.deliminator;
|
|
17206
17144
|
let O2;
|
|
17207
|
-
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$7), r[40] = c, r[41] = O2),
|
|
17145
|
+
r[40] === c ? O2 = r[41] : (O2 = c.map(_temp2$7), r[40] = c, r[41] = O2), qU = O2;
|
|
17208
17146
|
let j2;
|
|
17209
17147
|
r[42] !== q || r[43] !== u || r[44] !== b || r[45] !== v || r[46] !== h || r[47] !== y ? (j2 = function(e3) {
|
|
17210
17148
|
if (b) return;
|
|
@@ -17225,7 +17163,7 @@ ${c}
|
|
|
17225
17163
|
return;
|
|
17226
17164
|
}
|
|
17227
17165
|
y(e3), S(false);
|
|
17228
|
-
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48],
|
|
17166
|
+
}, r[42] = q, r[43] = u, r[44] = b, r[45] = v, r[46] = h, r[47] = y, r[48] = j2) : j2 = r[48], JU = j2;
|
|
17229
17167
|
let M2;
|
|
17230
17168
|
r[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M2 = function(e3) {
|
|
17231
17169
|
let { path: r2, name: c2, isDirectory: l2 } = e3;
|
|
@@ -17253,9 +17191,9 @@ ${c}
|
|
|
17253
17191
|
let H2 = B2, W2;
|
|
17254
17192
|
r[55] !== v || r[56] !== l || r[57] !== c ? (W2 = function() {
|
|
17255
17193
|
l(c.filter((e3) => Paths.dirname(e3.path) !== v));
|
|
17256
|
-
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58],
|
|
17194
|
+
}, r[55] = v, r[56] = l, r[57] = c, r[58] = W2) : W2 = r[58], UU = W2, KU = function() {
|
|
17257
17195
|
let e3 = [];
|
|
17258
|
-
for (let r2 of
|
|
17196
|
+
for (let r2 of GU) {
|
|
17259
17197
|
if (!g2 && r2.is_directory || m2.has(r2.path)) continue;
|
|
17260
17198
|
let c2 = I2({
|
|
17261
17199
|
path: r2.path,
|
|
@@ -17269,32 +17207,32 @@ ${c}
|
|
|
17269
17207
|
...e3
|
|
17270
17208
|
]);
|
|
17271
17209
|
}, Z = [];
|
|
17272
|
-
let
|
|
17273
|
-
r[59] ===
|
|
17274
|
-
let
|
|
17275
|
-
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
17210
|
+
let XU2;
|
|
17211
|
+
r[59] === JU ? XU2 = r[60] : (XU2 = () => JU(PARENT_DIRECTORY), r[59] = JU, r[60] = XU2);
|
|
17212
|
+
let ZU2, QU2;
|
|
17213
|
+
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZU2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17276
17214
|
className: "w-[50px] pl-4",
|
|
17277
17215
|
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
17278
17216
|
size: 16
|
|
17279
17217
|
})
|
|
17280
|
-
}),
|
|
17218
|
+
}), QU2 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
17281
17219
|
children: PARENT_DIRECTORY
|
|
17282
|
-
}), r[61] =
|
|
17283
|
-
let
|
|
17284
|
-
r[63] ===
|
|
17220
|
+
}), r[61] = ZU2, r[62] = QU2) : (ZU2 = r[61], QU2 = r[62]);
|
|
17221
|
+
let $U2;
|
|
17222
|
+
r[63] === XU2 ? $U2 = r[64] : ($U2 = (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17285
17223
|
className: "hover:bg-accent select-none",
|
|
17286
|
-
onClick:
|
|
17224
|
+
onClick: XU2,
|
|
17287
17225
|
children: [
|
|
17288
|
-
|
|
17289
|
-
|
|
17226
|
+
ZU2,
|
|
17227
|
+
QU2
|
|
17290
17228
|
]
|
|
17291
|
-
}, "Parent directory"), r[63] =
|
|
17292
|
-
for (let e3 of
|
|
17229
|
+
}, "Parent directory"), r[63] = XU2, r[64] = $U2), Z.push($U2);
|
|
17230
|
+
for (let e3 of GU) {
|
|
17293
17231
|
let r2 = e3.path;
|
|
17294
17232
|
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
17295
17233
|
let c2 = e3.is_directory ? (e4) => {
|
|
17296
17234
|
let { path: r3 } = e4;
|
|
17297
|
-
return
|
|
17235
|
+
return JU(r3);
|
|
17298
17236
|
} : H2, l2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], u2 = m2.has(r2);
|
|
17299
17237
|
Z.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
17300
17238
|
className: cn("hover:bg-accent group select-none", {
|
|
@@ -17326,21 +17264,21 @@ ${c}
|
|
|
17326
17264
|
}, e3.id));
|
|
17327
17265
|
}
|
|
17328
17266
|
}
|
|
17329
|
-
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] =
|
|
17330
|
-
} else G = r[22], q = r[23],
|
|
17331
|
-
if (
|
|
17332
|
-
let QU, $U, eW, tW, nW
|
|
17333
|
-
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !==
|
|
17267
|
+
r[11] = R, r[12] = z, r[13] = u, r[14] = b, r[15] = f, r[16] = v, r[17] = h, r[18] = d, r[19] = y, r[20] = l, r[21] = c, r[22] = G, r[23] = q, r[24] = UU, r[25] = Z, r[26] = GU, r[27] = KU, r[28] = qU, r[29] = JU, r[30] = YU;
|
|
17268
|
+
} else G = r[22], q = r[23], UU = r[24], Z = r[25], GU = r[26], KU = r[27], qU = r[28], JU = r[29], YU = r[30];
|
|
17269
|
+
if (YU !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return YU;
|
|
17270
|
+
let XU, ZU, QU, $U, eW, tW, nW;
|
|
17271
|
+
if (r[65] !== G || r[66] !== R || r[67] !== q || r[68] !== UU || r[69] !== z || r[70] !== Z || r[71] !== GU || r[72] !== u || r[73] !== B || r[74] !== m || r[75] !== f || r[76] !== v || r[77] !== h || r[78] !== KU || r[79] !== qU || r[80] !== d || r[81] !== JU || r[82] !== l || r[83] !== T || r[84] !== c.length) {
|
|
17334
17272
|
let { parentDirectories: e2 } = getProtocolAndParentDirectories({
|
|
17335
17273
|
path: v,
|
|
17336
17274
|
delimiter: q,
|
|
17337
17275
|
initialPath: u,
|
|
17338
17276
|
restrictNavigation: h
|
|
17339
17277
|
}), g2 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
17340
|
-
r[92] === z ?
|
|
17278
|
+
r[92] === z ? nW = r[93] : (nW = z && (0, import_jsx_runtime.jsx)(Banner, {
|
|
17341
17279
|
kind: "danger",
|
|
17342
17280
|
children: z.message
|
|
17343
|
-
}), r[92] = z, r[93] =
|
|
17281
|
+
}), r[92] = z, r[93] = nW), XU = (() => {
|
|
17344
17282
|
let e3 = (0, import_jsx_runtime.jsx)(Label, {
|
|
17345
17283
|
children: renderHTML({
|
|
17346
17284
|
html: m ?? `Select ${g2.join(" and ", 2)}...`
|
|
@@ -17357,7 +17295,7 @@ ${c}
|
|
|
17357
17295
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
17358
17296
|
size: "xs",
|
|
17359
17297
|
variant: "link",
|
|
17360
|
-
onClick: G ?
|
|
17298
|
+
onClick: G ? UU : KU,
|
|
17361
17299
|
children: G ? "Deselect all" : "Select all"
|
|
17362
17300
|
})
|
|
17363
17301
|
})
|
|
@@ -17365,18 +17303,18 @@ ${c}
|
|
|
17365
17303
|
}) : e3;
|
|
17366
17304
|
})();
|
|
17367
17305
|
let _2;
|
|
17368
|
-
r[94] ===
|
|
17306
|
+
r[94] === JU ? _2 = r[95] : (_2 = (e3) => JU(e3.target.value), r[94] = JU, r[95] = _2);
|
|
17369
17307
|
let y2 = e2.map(_temp3$5);
|
|
17370
|
-
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (
|
|
17308
|
+
r[96] !== v || r[97] !== _2 || r[98] !== y2 ? (ZU = (0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
17371
17309
|
className: "mt-2 w-full",
|
|
17372
17310
|
placeholder: v,
|
|
17373
17311
|
value: v,
|
|
17374
17312
|
onChange: _2,
|
|
17375
17313
|
children: y2
|
|
17376
|
-
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] =
|
|
17314
|
+
}), r[96] = v, r[97] = _2, r[98] = y2, r[99] = ZU) : ZU = r[99], r[100] !== R || r[101] !== GU ? (QU = R && typeof R.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
17377
17315
|
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
17378
|
-
children: R.is_truncated ? `Showing ${
|
|
17379
|
-
}), r[100] = R, r[101] =
|
|
17316
|
+
children: R.is_truncated ? `Showing ${GU.length} of ${R.total_count} items` : `${R.total_count} ${R.total_count === 1 ? "item" : "items"}`
|
|
17317
|
+
}), r[100] = R, r[101] = GU, r[102] = QU) : QU = r[102];
|
|
17380
17318
|
let b2;
|
|
17381
17319
|
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (b2 = {
|
|
17382
17320
|
height: "14rem"
|
|
@@ -17400,7 +17338,7 @@ ${c}
|
|
|
17400
17338
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
17401
17339
|
children: Z
|
|
17402
17340
|
})
|
|
17403
|
-
}), r[106] = Z, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? (
|
|
17341
|
+
}), r[106] = Z, r[107] = E2), r[108] !== B || r[109] !== S2 || r[110] !== E2 ? ($U = (0, import_jsx_runtime.jsxs)("div", {
|
|
17404
17342
|
className: "mt-3 overflow-y-auto w-full border relative",
|
|
17405
17343
|
style: b2,
|
|
17406
17344
|
"aria-busy": B,
|
|
@@ -17409,7 +17347,7 @@ ${c}
|
|
|
17409
17347
|
S2,
|
|
17410
17348
|
E2
|
|
17411
17349
|
]
|
|
17412
|
-
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] =
|
|
17350
|
+
}), r[108] = B, r[109] = S2, r[110] = E2, r[111] = $U) : $U = r[111], eW = "mt-4", tW = c.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
17413
17351
|
children: [
|
|
17414
17352
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
17415
17353
|
className: "flex items-center gap-2",
|
|
@@ -17439,28 +17377,28 @@ ${c}
|
|
|
17439
17377
|
marginBlock: 0
|
|
17440
17378
|
},
|
|
17441
17379
|
className: "m-0 text-xs text-muted-foreground",
|
|
17442
|
-
children:
|
|
17380
|
+
children: qU
|
|
17443
17381
|
})
|
|
17444
17382
|
})
|
|
17445
17383
|
]
|
|
17446
|
-
}), r[65] = G, r[66] = R, r[67] = q, r[68] =
|
|
17447
|
-
} else
|
|
17448
|
-
let
|
|
17449
|
-
r[112] !==
|
|
17450
|
-
className:
|
|
17451
|
-
children:
|
|
17452
|
-
}), r[112] =
|
|
17453
|
-
let
|
|
17454
|
-
return r[115] !==
|
|
17384
|
+
}), r[65] = G, r[66] = R, r[67] = q, r[68] = UU, r[69] = z, r[70] = Z, r[71] = GU, r[72] = u, r[73] = B, r[74] = m, r[75] = f, r[76] = v, r[77] = h, r[78] = KU, r[79] = qU, r[80] = d, r[81] = JU, r[82] = l, r[83] = T, r[84] = c.length, r[85] = XU, r[86] = ZU, r[87] = QU, r[88] = $U, r[89] = eW, r[90] = tW, r[91] = nW;
|
|
17385
|
+
} else XU = r[85], ZU = r[86], QU = r[87], $U = r[88], eW = r[89], tW = r[90], nW = r[91];
|
|
17386
|
+
let rW;
|
|
17387
|
+
r[112] !== eW || r[113] !== tW ? (rW = (0, import_jsx_runtime.jsx)("div", {
|
|
17388
|
+
className: eW,
|
|
17389
|
+
children: tW
|
|
17390
|
+
}), r[112] = eW, r[113] = tW, r[114] = rW) : rW = r[114];
|
|
17391
|
+
let iW;
|
|
17392
|
+
return r[115] !== XU || r[116] !== ZU || r[117] !== QU || r[118] !== $U || r[119] !== rW || r[120] !== nW ? (iW = (0, import_jsx_runtime.jsxs)("div", {
|
|
17455
17393
|
children: [
|
|
17456
|
-
|
|
17394
|
+
nW,
|
|
17395
|
+
XU,
|
|
17396
|
+
ZU,
|
|
17457
17397
|
QU,
|
|
17458
17398
|
$U,
|
|
17459
|
-
|
|
17460
|
-
tW,
|
|
17461
|
-
aW
|
|
17399
|
+
rW
|
|
17462
17400
|
]
|
|
17463
|
-
}), r[115] =
|
|
17401
|
+
}), r[115] = XU, r[116] = ZU, r[117] = QU, r[118] = $U, r[119] = rW, r[120] = nW, r[121] = iW) : iW = r[121], iW;
|
|
17464
17402
|
};
|
|
17465
17403
|
function _temp$12(e) {
|
|
17466
17404
|
return e.path;
|
|
@@ -22850,55 +22788,55 @@ ${c}
|
|
|
22850
22788
|
return typeof S == "function" ? S : noop$2;
|
|
22851
22789
|
}, [
|
|
22852
22790
|
S
|
|
22853
|
-
]), q = (0, import_react.useRef)(null),
|
|
22854
|
-
!
|
|
22855
|
-
|
|
22791
|
+
]), q = (0, import_react.useRef)(null), UU = (0, import_react.useRef)(null), Z = _slicedToArray((0, import_react.useReducer)(reducer$2, initialState), 2), WU = Z[0], GU = Z[1], KU = WU.isFocused, qU = WU.isFileDialogActive, JU = (0, import_react.useRef)(typeof window < "u" && window.isSecureContext && T && canUseFileSystemAccessAPI()), YU = function() {
|
|
22792
|
+
!JU.current && qU && setTimeout(function() {
|
|
22793
|
+
UU.current && (UU.current.files.length || (GU({
|
|
22856
22794
|
type: "closeDialog"
|
|
22857
22795
|
}), G()));
|
|
22858
22796
|
}, 300);
|
|
22859
22797
|
};
|
|
22860
22798
|
(0, import_react.useEffect)(function() {
|
|
22861
|
-
return window.addEventListener("focus",
|
|
22862
|
-
window.removeEventListener("focus",
|
|
22799
|
+
return window.addEventListener("focus", YU, false), function() {
|
|
22800
|
+
window.removeEventListener("focus", YU, false);
|
|
22863
22801
|
};
|
|
22864
22802
|
}, [
|
|
22865
|
-
|
|
22866
|
-
|
|
22803
|
+
UU,
|
|
22804
|
+
qU,
|
|
22867
22805
|
G,
|
|
22868
|
-
|
|
22806
|
+
JU
|
|
22869
22807
|
]);
|
|
22870
|
-
var
|
|
22871
|
-
q.current && q.current.contains(e2.target) || (e2.preventDefault(),
|
|
22808
|
+
var XU = (0, import_react.useRef)([]), ZU = (0, import_react.useRef)([]), QU = function(e2) {
|
|
22809
|
+
q.current && q.current.contains(e2.target) || (e2.preventDefault(), XU.current = []);
|
|
22872
22810
|
};
|
|
22873
22811
|
(0, import_react.useEffect)(function() {
|
|
22874
|
-
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop",
|
|
22875
|
-
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop",
|
|
22812
|
+
return O && (document.addEventListener("dragover", onDocumentDragOver, false), document.addEventListener("drop", QU, false)), function() {
|
|
22813
|
+
O && (document.removeEventListener("dragover", onDocumentDragOver), document.removeEventListener("drop", QU));
|
|
22876
22814
|
};
|
|
22877
22815
|
}, [
|
|
22878
22816
|
q,
|
|
22879
22817
|
O
|
|
22880
22818
|
]), (0, import_react.useEffect)(function() {
|
|
22881
22819
|
var e2 = function(e3) {
|
|
22882
|
-
|
|
22820
|
+
ZU.current = [].concat(_toConsumableArray(ZU.current), [
|
|
22883
22821
|
e3.target
|
|
22884
|
-
]), isEvtWithFiles(e3) &&
|
|
22822
|
+
]), isEvtWithFiles(e3) && GU({
|
|
22885
22823
|
isDragGlobal: true,
|
|
22886
22824
|
type: "setDragGlobal"
|
|
22887
22825
|
});
|
|
22888
22826
|
}, r2 = function(e3) {
|
|
22889
|
-
|
|
22827
|
+
ZU.current = ZU.current.filter(function(r3) {
|
|
22890
22828
|
return r3 !== e3.target && r3 !== null;
|
|
22891
|
-
}), !(
|
|
22829
|
+
}), !(ZU.current.length > 0) && GU({
|
|
22892
22830
|
isDragGlobal: false,
|
|
22893
22831
|
type: "setDragGlobal"
|
|
22894
22832
|
});
|
|
22895
22833
|
}, c2 = function() {
|
|
22896
|
-
|
|
22834
|
+
ZU.current = [], GU({
|
|
22897
22835
|
isDragGlobal: false,
|
|
22898
22836
|
type: "setDragGlobal"
|
|
22899
22837
|
});
|
|
22900
22838
|
}, l2 = function() {
|
|
22901
|
-
|
|
22839
|
+
ZU.current = [], GU({
|
|
22902
22840
|
isDragGlobal: false,
|
|
22903
22841
|
type: "setDragGlobal"
|
|
22904
22842
|
});
|
|
@@ -22916,12 +22854,12 @@ ${c}
|
|
|
22916
22854
|
E,
|
|
22917
22855
|
l
|
|
22918
22856
|
]);
|
|
22919
|
-
var
|
|
22857
|
+
var $U = (0, import_react.useCallback)(function(e2) {
|
|
22920
22858
|
R ? R(e2) : console.error(e2);
|
|
22921
22859
|
}, [
|
|
22922
22860
|
R
|
|
22923
|
-
]),
|
|
22924
|
-
e2.preventDefault(), e2.persist(),
|
|
22861
|
+
]), eW = (0, import_react.useCallback)(function(e2) {
|
|
22862
|
+
e2.preventDefault(), e2.persist(), pW(e2), XU.current = [].concat(_toConsumableArray(XU.current), [
|
|
22925
22863
|
e2.target
|
|
22926
22864
|
]), isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22927
22865
|
if (!(isPropagationStopped(e2) && !L)) {
|
|
@@ -22934,7 +22872,7 @@ ${c}
|
|
|
22934
22872
|
maxFiles: m,
|
|
22935
22873
|
validator: z
|
|
22936
22874
|
});
|
|
22937
|
-
|
|
22875
|
+
GU({
|
|
22938
22876
|
isDragAccept: l2,
|
|
22939
22877
|
isDragReject: c2 > 0 && !l2,
|
|
22940
22878
|
isDragActive: true,
|
|
@@ -22942,12 +22880,12 @@ ${c}
|
|
|
22942
22880
|
}), h && h(e2);
|
|
22943
22881
|
}
|
|
22944
22882
|
}).catch(function(e3) {
|
|
22945
|
-
return
|
|
22883
|
+
return $U(e3);
|
|
22946
22884
|
});
|
|
22947
22885
|
}, [
|
|
22948
22886
|
u,
|
|
22949
22887
|
h,
|
|
22950
|
-
|
|
22888
|
+
$U,
|
|
22951
22889
|
L,
|
|
22952
22890
|
B,
|
|
22953
22891
|
f,
|
|
@@ -22955,8 +22893,8 @@ ${c}
|
|
|
22955
22893
|
p,
|
|
22956
22894
|
m,
|
|
22957
22895
|
z
|
|
22958
|
-
]),
|
|
22959
|
-
e2.preventDefault(), e2.persist(),
|
|
22896
|
+
]), tW = (0, import_react.useCallback)(function(e2) {
|
|
22897
|
+
e2.preventDefault(), e2.persist(), pW(e2);
|
|
22960
22898
|
var r2 = isEvtWithFiles(e2);
|
|
22961
22899
|
if (r2 && e2.dataTransfer) try {
|
|
22962
22900
|
e2.dataTransfer.dropEffect = "copy";
|
|
@@ -22966,12 +22904,12 @@ ${c}
|
|
|
22966
22904
|
}, [
|
|
22967
22905
|
_,
|
|
22968
22906
|
L
|
|
22969
|
-
]),
|
|
22970
|
-
e2.preventDefault(), e2.persist(),
|
|
22971
|
-
var r2 =
|
|
22907
|
+
]), nW = (0, import_react.useCallback)(function(e2) {
|
|
22908
|
+
e2.preventDefault(), e2.persist(), pW(e2);
|
|
22909
|
+
var r2 = XU.current.filter(function(e3) {
|
|
22972
22910
|
return q.current && q.current.contains(e3);
|
|
22973
22911
|
}), c2 = r2.indexOf(e2.target);
|
|
22974
|
-
c2 !== -1 && r2.splice(c2, 1),
|
|
22912
|
+
c2 !== -1 && r2.splice(c2, 1), XU.current = r2, !(r2.length > 0) && (GU({
|
|
22975
22913
|
type: "setDraggedFiles",
|
|
22976
22914
|
isDragActive: false,
|
|
22977
22915
|
isDragAccept: false,
|
|
@@ -22981,7 +22919,7 @@ ${c}
|
|
|
22981
22919
|
q,
|
|
22982
22920
|
g,
|
|
22983
22921
|
L
|
|
22984
|
-
]),
|
|
22922
|
+
]), rW = (0, import_react.useCallback)(function(e2, r2) {
|
|
22985
22923
|
var c2 = [], l2 = [];
|
|
22986
22924
|
e2.forEach(function(e3) {
|
|
22987
22925
|
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;
|
|
@@ -23005,14 +22943,14 @@ ${c}
|
|
|
23005
22943
|
TOO_MANY_FILES_REJECTION
|
|
23006
22944
|
]
|
|
23007
22945
|
});
|
|
23008
|
-
}), c2.splice(0)),
|
|
22946
|
+
}), c2.splice(0)), GU({
|
|
23009
22947
|
acceptedFiles: c2,
|
|
23010
22948
|
fileRejections: l2,
|
|
23011
22949
|
isDragReject: l2.length > 0,
|
|
23012
22950
|
type: "setFiles"
|
|
23013
22951
|
}), v && v(c2, l2, r2), l2.length > 0 && b && b(l2, r2), c2.length > 0 && y && y(c2, r2);
|
|
23014
22952
|
}, [
|
|
23015
|
-
|
|
22953
|
+
GU,
|
|
23016
22954
|
p,
|
|
23017
22955
|
B,
|
|
23018
22956
|
f,
|
|
@@ -23022,22 +22960,22 @@ ${c}
|
|
|
23022
22960
|
y,
|
|
23023
22961
|
b,
|
|
23024
22962
|
z
|
|
23025
|
-
]),
|
|
23026
|
-
e2.preventDefault(), e2.persist(),
|
|
23027
|
-
isPropagationStopped(e2) && !L ||
|
|
22963
|
+
]), iW = (0, import_react.useCallback)(function(e2) {
|
|
22964
|
+
e2.preventDefault(), e2.persist(), pW(e2), XU.current = [], isEvtWithFiles(e2) && Promise.resolve(u(e2)).then(function(r2) {
|
|
22965
|
+
isPropagationStopped(e2) && !L || rW(r2, e2);
|
|
23028
22966
|
}).catch(function(e3) {
|
|
23029
|
-
return
|
|
23030
|
-
}),
|
|
22967
|
+
return $U(e3);
|
|
22968
|
+
}), GU({
|
|
23031
22969
|
type: "reset"
|
|
23032
22970
|
});
|
|
23033
22971
|
}, [
|
|
23034
22972
|
u,
|
|
23035
|
-
|
|
23036
|
-
|
|
22973
|
+
rW,
|
|
22974
|
+
$U,
|
|
23037
22975
|
L
|
|
23038
|
-
]),
|
|
23039
|
-
if (
|
|
23040
|
-
|
|
22976
|
+
]), aW = (0, import_react.useCallback)(function() {
|
|
22977
|
+
if (JU.current) {
|
|
22978
|
+
GU({
|
|
23041
22979
|
type: "openDialog"
|
|
23042
22980
|
}), W();
|
|
23043
22981
|
var e2 = {
|
|
@@ -23047,66 +22985,66 @@ ${c}
|
|
|
23047
22985
|
window.showOpenFilePicker(e2).then(function(e3) {
|
|
23048
22986
|
return u(e3);
|
|
23049
22987
|
}).then(function(e3) {
|
|
23050
|
-
|
|
22988
|
+
rW(e3, null), GU({
|
|
23051
22989
|
type: "closeDialog"
|
|
23052
22990
|
});
|
|
23053
22991
|
}).catch(function(e3) {
|
|
23054
|
-
isAbort(e3) ? (G(e3),
|
|
22992
|
+
isAbort(e3) ? (G(e3), GU({
|
|
23055
22993
|
type: "closeDialog"
|
|
23056
|
-
})) : isSecurityError(e3) ? (
|
|
22994
|
+
})) : isSecurityError(e3) ? (JU.current = false, UU.current ? (UU.current.value = null, UU.current.click()) : $U(Error("Cannot open the file picker because the https://developer.mozilla.org/en-US/docs/Web/API/File_System_Access_API is not supported and no <input> was provided."))) : $U(e3);
|
|
23057
22995
|
});
|
|
23058
22996
|
return;
|
|
23059
22997
|
}
|
|
23060
|
-
|
|
22998
|
+
UU.current && (GU({
|
|
23061
22999
|
type: "openDialog"
|
|
23062
|
-
}), W(),
|
|
23000
|
+
}), W(), UU.current.value = null, UU.current.click());
|
|
23063
23001
|
}, [
|
|
23064
|
-
|
|
23002
|
+
GU,
|
|
23065
23003
|
W,
|
|
23066
23004
|
G,
|
|
23067
23005
|
T,
|
|
23068
|
-
|
|
23069
|
-
|
|
23006
|
+
rW,
|
|
23007
|
+
$U,
|
|
23070
23008
|
H,
|
|
23071
23009
|
p
|
|
23072
|
-
]),
|
|
23073
|
-
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(),
|
|
23010
|
+
]), oW = (0, import_react.useCallback)(function(e2) {
|
|
23011
|
+
!q.current || !q.current.isEqualNode(e2.target) || (e2.key === " " || e2.key === "Enter" || e2.keyCode === 32 || e2.keyCode === 13) && (e2.preventDefault(), aW());
|
|
23074
23012
|
}, [
|
|
23075
23013
|
q,
|
|
23076
|
-
|
|
23077
|
-
]),
|
|
23078
|
-
|
|
23014
|
+
aW
|
|
23015
|
+
]), sW = (0, import_react.useCallback)(function() {
|
|
23016
|
+
GU({
|
|
23079
23017
|
type: "focus"
|
|
23080
23018
|
});
|
|
23081
|
-
}, []),
|
|
23082
|
-
|
|
23019
|
+
}, []), cW = (0, import_react.useCallback)(function() {
|
|
23020
|
+
GU({
|
|
23083
23021
|
type: "blur"
|
|
23084
23022
|
});
|
|
23085
|
-
}, []),
|
|
23086
|
-
j || (isIeOrEdge() ? setTimeout(
|
|
23023
|
+
}, []), lW = (0, import_react.useCallback)(function() {
|
|
23024
|
+
j || (isIeOrEdge() ? setTimeout(aW, 0) : aW());
|
|
23087
23025
|
}, [
|
|
23088
23026
|
j,
|
|
23089
|
-
|
|
23090
|
-
]),
|
|
23027
|
+
aW
|
|
23028
|
+
]), uW = function(e2) {
|
|
23091
23029
|
return l ? null : e2;
|
|
23030
|
+
}, dW = function(e2) {
|
|
23031
|
+
return M ? null : uW(e2);
|
|
23032
|
+
}, fW = function(e2) {
|
|
23033
|
+
return I ? null : uW(e2);
|
|
23092
23034
|
}, pW = function(e2) {
|
|
23093
|
-
return M ? null : fW(e2);
|
|
23094
|
-
}, mW = function(e2) {
|
|
23095
|
-
return I ? null : fW(e2);
|
|
23096
|
-
}, hW = function(e2) {
|
|
23097
23035
|
L && e2.stopPropagation();
|
|
23098
|
-
},
|
|
23036
|
+
}, mW = (0, import_react.useMemo)(function() {
|
|
23099
23037
|
return function() {
|
|
23100
23038
|
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);
|
|
23101
23039
|
return _objectSpread$7(_objectSpread$7(_defineProperty$10({
|
|
23102
|
-
onKeyDown:
|
|
23103
|
-
onFocus:
|
|
23104
|
-
onBlur:
|
|
23105
|
-
onClick:
|
|
23106
|
-
onDragEnter:
|
|
23107
|
-
onDragOver:
|
|
23108
|
-
onDragLeave:
|
|
23109
|
-
onDrop:
|
|
23040
|
+
onKeyDown: dW(composeEventHandlers(d2, oW)),
|
|
23041
|
+
onFocus: dW(composeEventHandlers(f2, sW)),
|
|
23042
|
+
onBlur: dW(composeEventHandlers(p2, cW)),
|
|
23043
|
+
onClick: uW(composeEventHandlers(m2, lW)),
|
|
23044
|
+
onDragEnter: fW(composeEventHandlers(h2, eW)),
|
|
23045
|
+
onDragOver: fW(composeEventHandlers(g2, tW)),
|
|
23046
|
+
onDragLeave: fW(composeEventHandlers(_2, nW)),
|
|
23047
|
+
onDrop: fW(composeEventHandlers(v2, iW)),
|
|
23110
23048
|
role: typeof u2 == "string" && u2 !== "" ? u2 : "presentation"
|
|
23111
23049
|
}, c2, q), !l && !M ? {
|
|
23112
23050
|
tabIndex: 0
|
|
@@ -23114,20 +23052,20 @@ ${c}
|
|
|
23114
23052
|
};
|
|
23115
23053
|
}, [
|
|
23116
23054
|
q,
|
|
23055
|
+
oW,
|
|
23056
|
+
sW,
|
|
23117
23057
|
cW,
|
|
23118
23058
|
lW,
|
|
23119
|
-
|
|
23120
|
-
|
|
23059
|
+
eW,
|
|
23060
|
+
tW,
|
|
23121
23061
|
nW,
|
|
23122
|
-
rW,
|
|
23123
23062
|
iW,
|
|
23124
|
-
oW,
|
|
23125
23063
|
M,
|
|
23126
23064
|
I,
|
|
23127
23065
|
l
|
|
23128
|
-
]),
|
|
23066
|
+
]), hW = (0, import_react.useCallback)(function(e2) {
|
|
23129
23067
|
e2.stopPropagation();
|
|
23130
|
-
}, []),
|
|
23068
|
+
}, []), gW = (0, import_react.useMemo)(function() {
|
|
23131
23069
|
return function() {
|
|
23132
23070
|
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);
|
|
23133
23071
|
return _objectSpread$7(_objectSpread$7({}, _defineProperty$10({
|
|
@@ -23146,25 +23084,25 @@ ${c}
|
|
|
23146
23084
|
width: "1px",
|
|
23147
23085
|
whiteSpace: "nowrap"
|
|
23148
23086
|
},
|
|
23149
|
-
onChange:
|
|
23150
|
-
onClick:
|
|
23087
|
+
onChange: uW(composeEventHandlers(l2, iW)),
|
|
23088
|
+
onClick: uW(composeEventHandlers(u2, hW)),
|
|
23151
23089
|
tabIndex: -1
|
|
23152
|
-
}, c2,
|
|
23090
|
+
}, c2, UU)), d2);
|
|
23153
23091
|
};
|
|
23154
23092
|
}, [
|
|
23155
|
-
|
|
23093
|
+
UU,
|
|
23156
23094
|
c,
|
|
23157
23095
|
p,
|
|
23158
|
-
|
|
23096
|
+
iW,
|
|
23159
23097
|
l
|
|
23160
23098
|
]);
|
|
23161
|
-
return _objectSpread$7(_objectSpread$7({},
|
|
23162
|
-
isFocused:
|
|
23163
|
-
getRootProps:
|
|
23164
|
-
getInputProps:
|
|
23099
|
+
return _objectSpread$7(_objectSpread$7({}, WU), {}, {
|
|
23100
|
+
isFocused: KU && !l,
|
|
23101
|
+
getRootProps: mW,
|
|
23102
|
+
getInputProps: gW,
|
|
23165
23103
|
rootRef: q,
|
|
23166
|
-
inputRef:
|
|
23167
|
-
open:
|
|
23104
|
+
inputRef: UU,
|
|
23105
|
+
open: uW(aW)
|
|
23168
23106
|
});
|
|
23169
23107
|
}
|
|
23170
23108
|
function reducer$2(e, r) {
|
|
@@ -23396,47 +23334,47 @@ ${c}
|
|
|
23396
23334
|
html: I
|
|
23397
23335
|
})
|
|
23398
23336
|
}), r[45] = I, r[46] = M, r[47] = G) : G = r[47];
|
|
23399
|
-
let q = w && "text-primary",
|
|
23400
|
-
r[48] !== q || r[49] !==
|
|
23401
|
-
let
|
|
23402
|
-
r[51] === Z ?
|
|
23337
|
+
let q = w && "text-primary", UU = T && "text-destructive", Z;
|
|
23338
|
+
r[48] !== q || r[49] !== UU ? (Z = cn(q, UU), r[48] = q, r[49] = UU, r[50] = Z) : Z = r[50];
|
|
23339
|
+
let WU;
|
|
23340
|
+
r[51] === Z ? WU = r[52] : (WU = (0, import_jsx_runtime.jsx)(Upload, {
|
|
23403
23341
|
strokeWidth: 1.4,
|
|
23404
23342
|
className: Z
|
|
23405
|
-
}), r[51] = Z, r[52] =
|
|
23406
|
-
let
|
|
23407
|
-
r[53] !==
|
|
23408
|
-
let
|
|
23409
|
-
r[56] ===
|
|
23343
|
+
}), r[51] = Z, r[52] = WU);
|
|
23344
|
+
let GU = w && "text-primary", KU = T && "text-destructive", qU;
|
|
23345
|
+
r[53] !== GU || r[54] !== KU ? (qU = cn(GU, KU), r[53] = GU, r[54] = KU, r[55] = qU) : qU = r[55];
|
|
23346
|
+
let JU;
|
|
23347
|
+
r[56] === qU ? JU = r[57] : (JU = (0, import_jsx_runtime.jsx)(SquareDashedMousePointer, {
|
|
23410
23348
|
strokeWidth: 1.4,
|
|
23411
|
-
className:
|
|
23412
|
-
}), r[56] =
|
|
23413
|
-
let
|
|
23414
|
-
r[58] !==
|
|
23349
|
+
className: qU
|
|
23350
|
+
}), r[56] = qU, r[57] = JU);
|
|
23351
|
+
let YU;
|
|
23352
|
+
r[58] !== WU || r[59] !== JU ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23415
23353
|
className: "flex flex-row items-center justify-center grow gap-3",
|
|
23416
23354
|
children: [
|
|
23417
|
-
|
|
23418
|
-
|
|
23355
|
+
WU,
|
|
23356
|
+
JU
|
|
23419
23357
|
]
|
|
23420
|
-
}), r[58] =
|
|
23421
|
-
let
|
|
23422
|
-
r[61] !== G || r[62] !==
|
|
23358
|
+
}), r[58] = WU, r[59] = JU, r[60] = YU) : YU = r[60];
|
|
23359
|
+
let XU;
|
|
23360
|
+
r[61] !== G || r[62] !== YU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23423
23361
|
className: "flex flex-col items-center justify-center grow gap-3",
|
|
23424
23362
|
children: [
|
|
23425
23363
|
G,
|
|
23426
|
-
|
|
23364
|
+
YU
|
|
23427
23365
|
]
|
|
23428
|
-
}), r[61] = G, r[62] =
|
|
23429
|
-
let
|
|
23430
|
-
r[64] !== W || r[65] !==
|
|
23366
|
+
}), r[61] = G, r[62] = YU, r[63] = XU) : XU = r[63];
|
|
23367
|
+
let ZU;
|
|
23368
|
+
r[64] !== W || r[65] !== XU || r[66] !== z || r[67] !== B ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23431
23369
|
className: z,
|
|
23432
23370
|
...B,
|
|
23433
23371
|
children: [
|
|
23434
23372
|
W,
|
|
23435
|
-
|
|
23373
|
+
XU
|
|
23436
23374
|
]
|
|
23437
|
-
}), r[64] = W, r[65] =
|
|
23438
|
-
let
|
|
23439
|
-
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (
|
|
23375
|
+
}), r[64] = W, r[65] = XU, r[66] = z, r[67] = B, r[68] = ZU) : ZU = r[68];
|
|
23376
|
+
let QU;
|
|
23377
|
+
r[69] !== f || r[70] !== u || r[71] !== M || r[72] !== j || r[73] !== m.length ? (QU = M ? (0, import_jsx_runtime.jsxs)("div", {
|
|
23440
23378
|
className: "flex flex-row gap-1",
|
|
23441
23379
|
children: [
|
|
23442
23380
|
(0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -23472,17 +23410,17 @@ ${c}
|
|
|
23472
23410
|
})
|
|
23473
23411
|
})
|
|
23474
23412
|
]
|
|
23475
|
-
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] =
|
|
23476
|
-
let
|
|
23477
|
-
return r[75] !==
|
|
23413
|
+
}) : null, r[69] = f, r[70] = u, r[71] = M, r[72] = j, r[73] = m.length, r[74] = QU) : QU = r[74];
|
|
23414
|
+
let $U;
|
|
23415
|
+
return r[75] !== ZU || r[76] !== QU ? ($U = (0, import_jsx_runtime.jsx)("section", {
|
|
23478
23416
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
23479
23417
|
className: "flex flex-col items-start justify-start grow gap-3",
|
|
23480
23418
|
children: [
|
|
23481
|
-
|
|
23482
|
-
|
|
23419
|
+
ZU,
|
|
23420
|
+
QU
|
|
23483
23421
|
]
|
|
23484
23422
|
})
|
|
23485
|
-
}), r[75] =
|
|
23423
|
+
}), r[75] = ZU, r[76] = QU, r[77] = $U) : $U = r[77], $U;
|
|
23486
23424
|
};
|
|
23487
23425
|
function _temp$11(e) {
|
|
23488
23426
|
Logger.error(e), toast({
|
|
@@ -23578,75 +23516,75 @@ ${c}
|
|
|
23578
23516
|
r[10] !== u || r[11] !== d ? (q = (e2) => {
|
|
23579
23517
|
e2.key === "Enter" && (e2.ctrlKey || e2.metaKey) && (e2.preventDefault(), e2.stopPropagation(), d(u));
|
|
23580
23518
|
}, r[10] = u, r[11] = d, r[12] = q) : q = r[12];
|
|
23581
|
-
let
|
|
23582
|
-
r[13] === f ?
|
|
23519
|
+
let UU;
|
|
23520
|
+
r[13] === f ? UU = r[14] : (UU = f === null ? null : (0, import_jsx_runtime.jsx)("div", {
|
|
23583
23521
|
className: "text-center",
|
|
23584
23522
|
children: renderHTML({
|
|
23585
23523
|
html: f
|
|
23586
23524
|
})
|
|
23587
|
-
}), r[13] = f, r[14] =
|
|
23525
|
+
}), r[13] = f, r[14] = UU);
|
|
23588
23526
|
let Z;
|
|
23589
23527
|
r[15] === L ? Z = r[16] : (Z = L != null && (0, import_jsx_runtime.jsx)(Banner, {
|
|
23590
23528
|
kind: "danger",
|
|
23591
23529
|
className: "rounded",
|
|
23592
23530
|
children: L ?? "Invalid input"
|
|
23593
23531
|
}), r[15] = L, r[16] = Z);
|
|
23594
|
-
let
|
|
23595
|
-
r[17] === c ?
|
|
23532
|
+
let WU;
|
|
23533
|
+
r[17] === c ? WU = r[18] : (WU = (0, import_jsx_runtime.jsx)("div", {
|
|
23596
23534
|
children: c
|
|
23597
|
-
}), r[17] = c, r[18] =
|
|
23598
|
-
let
|
|
23599
|
-
r[19] !== S || r[20] !== T || r[21] !== b ? (
|
|
23535
|
+
}), r[17] = c, r[18] = WU);
|
|
23536
|
+
let GU;
|
|
23537
|
+
r[19] !== S || r[20] !== T || r[21] !== b ? (GU = b && withTooltip((0, import_jsx_runtime.jsx)(Button, {
|
|
23600
23538
|
"data-testid": "marimo-plugin-form-clear-button",
|
|
23601
23539
|
variant: "text",
|
|
23602
23540
|
onClick: (e2) => {
|
|
23603
23541
|
e2.preventDefault(), B();
|
|
23604
23542
|
},
|
|
23605
23543
|
children: S
|
|
23606
|
-
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] =
|
|
23607
|
-
let
|
|
23608
|
-
r[23] === h ?
|
|
23544
|
+
}), T), r[19] = S, r[20] = T, r[21] = b, r[22] = GU) : GU = r[22];
|
|
23545
|
+
let KU = v || h, qU;
|
|
23546
|
+
r[23] === h ? qU = r[24] : (qU = h && (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
23609
23547
|
className: "h-4 w-4 mr-2 animate-spin"
|
|
23610
|
-
}), r[23] = h, r[24] =
|
|
23611
|
-
let
|
|
23612
|
-
r[25] !== g || r[26] !==
|
|
23548
|
+
}), r[23] = h, r[24] = qU);
|
|
23549
|
+
let JU;
|
|
23550
|
+
r[25] !== g || r[26] !== KU || r[27] !== qU || r[28] !== I ? (JU = (0, import_jsx_runtime.jsxs)(Button, {
|
|
23613
23551
|
"data-testid": "marimo-plugin-form-submit-button",
|
|
23614
23552
|
variant: I,
|
|
23615
|
-
disabled:
|
|
23553
|
+
disabled: KU,
|
|
23616
23554
|
type: "submit",
|
|
23617
23555
|
children: [
|
|
23618
|
-
|
|
23556
|
+
qU,
|
|
23619
23557
|
g
|
|
23620
23558
|
]
|
|
23621
|
-
}), r[25] = g, r[26] =
|
|
23622
|
-
let
|
|
23623
|
-
r[30] !== _ || r[31] !==
|
|
23624
|
-
let
|
|
23625
|
-
r[33] !==
|
|
23559
|
+
}), r[25] = g, r[26] = KU, r[27] = qU, r[28] = I, r[29] = JU) : JU = r[29];
|
|
23560
|
+
let YU;
|
|
23561
|
+
r[30] !== _ || r[31] !== JU ? (YU = withTooltip(JU, _), r[30] = _, r[31] = JU, r[32] = YU) : YU = r[32];
|
|
23562
|
+
let XU;
|
|
23563
|
+
r[33] !== YU || r[34] !== GU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23626
23564
|
className: "flex justify-end gap-2 font-code",
|
|
23627
23565
|
children: [
|
|
23628
|
-
|
|
23629
|
-
|
|
23566
|
+
GU,
|
|
23567
|
+
YU
|
|
23630
23568
|
]
|
|
23631
|
-
}), r[33] =
|
|
23632
|
-
let
|
|
23633
|
-
r[36] !==
|
|
23569
|
+
}), r[33] = YU, r[34] = GU, r[35] = XU) : XU = r[35];
|
|
23570
|
+
let ZU;
|
|
23571
|
+
r[36] !== XU || r[37] !== G || r[38] !== q || r[39] !== UU || r[40] !== Z || r[41] !== WU ? (ZU = (0, import_jsx_runtime.jsxs)("div", {
|
|
23634
23572
|
className: G,
|
|
23635
23573
|
onKeyDown: q,
|
|
23636
23574
|
children: [
|
|
23637
|
-
|
|
23575
|
+
UU,
|
|
23638
23576
|
Z,
|
|
23639
|
-
|
|
23640
|
-
|
|
23577
|
+
WU,
|
|
23578
|
+
XU
|
|
23641
23579
|
]
|
|
23642
|
-
}), r[36] =
|
|
23643
|
-
let
|
|
23644
|
-
return r[43] !==
|
|
23580
|
+
}), r[36] = XU, r[37] = G, r[38] = q, r[39] = UU, r[40] = Z, r[41] = WU, r[42] = ZU) : ZU = r[42];
|
|
23581
|
+
let QU;
|
|
23582
|
+
return r[43] !== ZU || r[44] !== H ? (QU = (0, import_jsx_runtime.jsx)("form", {
|
|
23645
23583
|
className: "contents",
|
|
23646
23584
|
ref: j,
|
|
23647
23585
|
onSubmit: H,
|
|
23648
|
-
children:
|
|
23649
|
-
}), r[43] =
|
|
23586
|
+
children: ZU
|
|
23587
|
+
}), r[43] = ZU, r[44] = H, r[45] = QU) : QU = r[45], QU;
|
|
23650
23588
|
};
|
|
23651
23589
|
var Form = (e) => {
|
|
23652
23590
|
let r = (0, import_compiler_runtime$43.c)(24), c, l, u, d, f, p;
|
|
@@ -25406,8 +25344,8 @@ ${c}
|
|
|
25406
25344
|
points: extractSunburstPoints(e2.points)
|
|
25407
25345
|
}));
|
|
25408
25346
|
}, r[29] = u, r[30] = G);
|
|
25409
|
-
let q = useEvent_default(G),
|
|
25410
|
-
r[31] === u ?
|
|
25347
|
+
let q = useEvent_default(G), UU;
|
|
25348
|
+
r[31] === u ? UU = r[32] : (UU = (e2) => {
|
|
25411
25349
|
if (!e2 || !shouldHandleClickSelection(e2.points)) return;
|
|
25412
25350
|
let r2 = extractPoints(e2.points), c2 = extractIndices(e2.points);
|
|
25413
25351
|
u((e3) => ({
|
|
@@ -25418,9 +25356,9 @@ ${c}
|
|
|
25418
25356
|
points: r2,
|
|
25419
25357
|
indices: c2
|
|
25420
25358
|
}));
|
|
25421
|
-
}, r[31] = u, r[32] =
|
|
25422
|
-
let Z = useEvent_default(
|
|
25423
|
-
r[33] === u ?
|
|
25359
|
+
}, r[31] = u, r[32] = UU);
|
|
25360
|
+
let Z = useEvent_default(UU), WU;
|
|
25361
|
+
r[33] === u ? WU = r[34] : (WU = (e2) => {
|
|
25424
25362
|
e2 && u((r2) => ({
|
|
25425
25363
|
...r2,
|
|
25426
25364
|
selections: "selections" in e2 ? e2.selections : [],
|
|
@@ -25429,9 +25367,9 @@ ${c}
|
|
|
25429
25367
|
range: e2.range,
|
|
25430
25368
|
lasso: "lassoPoints" in e2 ? e2.lassoPoints : void 0
|
|
25431
25369
|
}));
|
|
25432
|
-
}, r[33] = u, r[34] =
|
|
25433
|
-
let
|
|
25434
|
-
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !==
|
|
25370
|
+
}, r[33] = u, r[34] = WU);
|
|
25371
|
+
let GU = useEvent_default(WU), KU = m.frames ?? void 0, qU = useEvent_default(_temp3$3), JU;
|
|
25372
|
+
return r[35] !== m || r[36] !== h || r[37] !== L || r[38] !== B || r[39] !== W || r[40] !== q || r[41] !== Z || r[42] !== GU || r[43] !== KU || r[44] !== qU || r[45] !== R ? (JU = (0, import_jsx_runtime.jsx)(LazyPlot, {
|
|
25435
25373
|
...m,
|
|
25436
25374
|
layout: h,
|
|
25437
25375
|
onRelayout: R,
|
|
@@ -25440,12 +25378,12 @@ ${c}
|
|
|
25440
25378
|
onSunburstClick: q,
|
|
25441
25379
|
config: L,
|
|
25442
25380
|
onClick: Z,
|
|
25443
|
-
onSelected:
|
|
25381
|
+
onSelected: GU,
|
|
25444
25382
|
className: "w-full",
|
|
25445
25383
|
useResizeHandler: true,
|
|
25446
|
-
frames:
|
|
25447
|
-
onError:
|
|
25448
|
-
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] =
|
|
25384
|
+
frames: KU,
|
|
25385
|
+
onError: qU
|
|
25386
|
+
}), r[35] = m, r[36] = h, r[37] = L, r[38] = B, r[39] = W, r[40] = q, r[41] = Z, r[42] = GU, r[43] = KU, r[44] = qU, r[45] = R, r[46] = JU) : JU = r[46], JU;
|
|
25449
25387
|
});
|
|
25450
25388
|
PlotlyComponent.displayName = "PlotlyComponent";
|
|
25451
25389
|
function _temp$8(e) {
|
|
@@ -25577,8 +25515,8 @@ ${c}
|
|
|
25577
25515
|
c[17] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G = cn("relative grow overflow-hidden rounded-full bg-slate-200 dark:bg-accent/60", "data-[orientation=horizontal]:h-2 data-[orientation=horizontal]:w-full", "data-[orientation=vertical]:h-full data-[orientation=vertical]:w-2"), c[17] = G) : G = c[17];
|
|
25578
25516
|
let q;
|
|
25579
25517
|
c[18] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = cn("absolute bg-blue-500 dark:bg-primary", "data-[orientation=horizontal]:h-full", "data-[orientation=vertical]:w-full", "data-disabled:opacity-50", "hover:cursor-grab active:cursor-grabbing"), c[18] = q) : q = c[18];
|
|
25580
|
-
let
|
|
25581
|
-
c[19] !== L || c[20] !== z || c[21] !== H ? (
|
|
25518
|
+
let UU;
|
|
25519
|
+
c[19] !== L || c[20] !== z || c[21] !== H ? (UU = (0, import_jsx_runtime.jsx)(Track, {
|
|
25582
25520
|
ref: E,
|
|
25583
25521
|
"data-testid": "track",
|
|
25584
25522
|
className: G,
|
|
@@ -25589,7 +25527,7 @@ ${c}
|
|
|
25589
25527
|
onPointerMove: z,
|
|
25590
25528
|
onPointerUp: H
|
|
25591
25529
|
})
|
|
25592
|
-
}), c[19] = L, c[20] = z, c[21] = H, c[22] =
|
|
25530
|
+
}), c[19] = L, c[20] = z, c[21] = H, c[22] = UU) : UU = c[22];
|
|
25593
25531
|
let Z;
|
|
25594
25532
|
c[23] !== m.setFalse || c[24] !== m.setTrue ? (Z = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25595
25533
|
asChild: true,
|
|
@@ -25602,29 +25540,29 @@ ${c}
|
|
|
25602
25540
|
onMouseLeave: m.setFalse
|
|
25603
25541
|
})
|
|
25604
25542
|
}), c[23] = m.setFalse, c[24] = m.setTrue, c[25] = Z) : Z = c[25];
|
|
25605
|
-
let
|
|
25606
|
-
c[26] !== h || c[27] !== u.value || c[28] !== d ? (
|
|
25543
|
+
let WU;
|
|
25544
|
+
c[26] !== h || c[27] !== u.value || c[28] !== d ? (WU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25607
25545
|
children: prettyScientificNumber(d(u.value[0]), {
|
|
25608
25546
|
locale: h
|
|
25609
25547
|
})
|
|
25610
|
-
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] =
|
|
25611
|
-
let
|
|
25612
|
-
c[30] ===
|
|
25613
|
-
children:
|
|
25614
|
-
}), c[30] =
|
|
25615
|
-
let
|
|
25616
|
-
c[32] !== f || c[33] !== Z || c[34] !==
|
|
25548
|
+
}, u.value[0]), c[26] = h, c[27] = u.value, c[28] = d, c[29] = WU) : WU = c[29];
|
|
25549
|
+
let GU;
|
|
25550
|
+
c[30] === WU ? GU = c[31] : (GU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25551
|
+
children: WU
|
|
25552
|
+
}), c[30] = WU, c[31] = GU);
|
|
25553
|
+
let KU;
|
|
25554
|
+
c[32] !== f || c[33] !== Z || c[34] !== GU ? (KU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25617
25555
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25618
25556
|
delayDuration: 0,
|
|
25619
25557
|
open: f,
|
|
25620
25558
|
children: [
|
|
25621
25559
|
Z,
|
|
25622
|
-
|
|
25560
|
+
GU
|
|
25623
25561
|
]
|
|
25624
25562
|
})
|
|
25625
|
-
}), c[32] = f, c[33] = Z, c[34] =
|
|
25626
|
-
let
|
|
25627
|
-
c[36] !== m.setFalse || c[37] !== m.setTrue ? (
|
|
25563
|
+
}), c[32] = f, c[33] = Z, c[34] = GU, c[35] = KU) : KU = c[35];
|
|
25564
|
+
let qU;
|
|
25565
|
+
c[36] !== m.setFalse || c[37] !== m.setTrue ? (qU = (0, import_jsx_runtime.jsx)(TooltipTrigger, {
|
|
25628
25566
|
asChild: true,
|
|
25629
25567
|
children: (0, import_jsx_runtime.jsx)(Thumb, {
|
|
25630
25568
|
"data-testid": "thumb",
|
|
@@ -25634,39 +25572,39 @@ ${c}
|
|
|
25634
25572
|
onMouseEnter: m.setTrue,
|
|
25635
25573
|
onMouseLeave: m.setFalse
|
|
25636
25574
|
})
|
|
25637
|
-
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] =
|
|
25638
|
-
let
|
|
25639
|
-
c[39] !== h || c[40] !== u.value || c[41] !== d ? (
|
|
25575
|
+
}), c[36] = m.setFalse, c[37] = m.setTrue, c[38] = qU) : qU = c[38];
|
|
25576
|
+
let JU;
|
|
25577
|
+
c[39] !== h || c[40] !== u.value || c[41] !== d ? (JU = u.value != null && u.value.length === 2 && (0, import_jsx_runtime.jsx)(TooltipContent, {
|
|
25640
25578
|
children: prettyScientificNumber(d(u.value[1]), {
|
|
25641
25579
|
locale: h
|
|
25642
25580
|
})
|
|
25643
|
-
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] =
|
|
25644
|
-
let
|
|
25645
|
-
c[43] ===
|
|
25646
|
-
children:
|
|
25647
|
-
}), c[43] =
|
|
25648
|
-
let
|
|
25649
|
-
c[45] !== f || c[46] !==
|
|
25581
|
+
}, u.value[1]), c[39] = h, c[40] = u.value, c[41] = d, c[42] = JU) : JU = c[42];
|
|
25582
|
+
let YU;
|
|
25583
|
+
c[43] === JU ? YU = c[44] : (YU = (0, import_jsx_runtime.jsx)(TooltipPortal, {
|
|
25584
|
+
children: JU
|
|
25585
|
+
}), c[43] = JU, c[44] = YU);
|
|
25586
|
+
let XU;
|
|
25587
|
+
c[45] !== f || c[46] !== qU || c[47] !== YU ? (XU = (0, import_jsx_runtime.jsx)(TooltipProvider, {
|
|
25650
25588
|
children: (0, import_jsx_runtime.jsxs)(TooltipRoot, {
|
|
25651
25589
|
delayDuration: 0,
|
|
25652
25590
|
open: f,
|
|
25653
25591
|
children: [
|
|
25654
|
-
|
|
25655
|
-
|
|
25592
|
+
qU,
|
|
25593
|
+
YU
|
|
25656
25594
|
]
|
|
25657
25595
|
})
|
|
25658
|
-
}), c[45] = f, c[46] =
|
|
25659
|
-
let
|
|
25660
|
-
return c[49] !== M || c[50] !== u || c[51] !==
|
|
25596
|
+
}), c[45] = f, c[46] = qU, c[47] = YU, c[48] = XU) : XU = c[48];
|
|
25597
|
+
let ZU;
|
|
25598
|
+
return c[49] !== M || c[50] !== u || c[51] !== UU || c[52] !== KU || c[53] !== XU || c[54] !== W ? (ZU = (0, import_jsx_runtime.jsxs)(Root, {
|
|
25661
25599
|
ref: M,
|
|
25662
25600
|
className: W,
|
|
25663
25601
|
...u,
|
|
25664
25602
|
children: [
|
|
25665
|
-
|
|
25666
|
-
|
|
25667
|
-
|
|
25603
|
+
UU,
|
|
25604
|
+
KU,
|
|
25605
|
+
XU
|
|
25668
25606
|
]
|
|
25669
|
-
}), c[49] = M, c[50] = u, c[51] =
|
|
25607
|
+
}), c[49] = M, c[50] = u, c[51] = UU, c[52] = KU, c[53] = XU, c[54] = W, c[55] = ZU) : ZU = c[55], ZU;
|
|
25670
25608
|
});
|
|
25671
25609
|
RangeSlider.displayName = Root.displayName;
|
|
25672
25610
|
var import_compiler_runtime$31 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
@@ -25717,14 +25655,14 @@ ${c}
|
|
|
25717
25655
|
}, q = (e2) => {
|
|
25718
25656
|
h && l(e2);
|
|
25719
25657
|
}, r[10] = h, r[11] = l, r[12] = G, r[13] = q) : (G = r[12], q = r[13]);
|
|
25720
|
-
let
|
|
25721
|
-
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (
|
|
25658
|
+
let UU, Z;
|
|
25659
|
+
r[14] !== h || r[15] !== T || r[16] !== l || r[17] !== u ? (UU = () => {
|
|
25722
25660
|
h && !dequal(T, u) && l(T);
|
|
25723
25661
|
}, Z = () => {
|
|
25724
25662
|
h && !dequal(T, u) && l(T);
|
|
25725
|
-
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] =
|
|
25726
|
-
let
|
|
25727
|
-
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !==
|
|
25663
|
+
}, r[14] = h, r[15] = T, r[16] = l, r[17] = u, r[18] = UU, r[19] = Z) : (UU = r[18], Z = r[19]);
|
|
25664
|
+
let WU;
|
|
25665
|
+
r[20] !== y || r[21] !== S || r[22] !== T || r[23] !== g || r[24] !== d || r[25] !== m || r[26] !== f || r[27] !== W || r[28] !== G || r[29] !== q || r[30] !== UU || r[31] !== Z || r[32] !== b ? (WU = (0, import_jsx_runtime.jsx)(RangeSlider, {
|
|
25728
25666
|
id: S,
|
|
25729
25667
|
className: W,
|
|
25730
25668
|
value: T,
|
|
@@ -25735,36 +25673,36 @@ ${c}
|
|
|
25735
25673
|
disabled: y,
|
|
25736
25674
|
onValueChange: G,
|
|
25737
25675
|
onValueCommit: q,
|
|
25738
|
-
onPointerUp:
|
|
25676
|
+
onPointerUp: UU,
|
|
25739
25677
|
onMouseUp: Z,
|
|
25740
25678
|
valueMap: b
|
|
25741
|
-
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
25742
|
-
let
|
|
25743
|
-
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (
|
|
25679
|
+
}), r[20] = y, r[21] = S, r[22] = T, r[23] = g, r[24] = d, r[25] = m, r[26] = f, r[27] = W, r[28] = G, r[29] = q, r[30] = UU, r[31] = Z, r[32] = b, r[33] = WU) : WU = r[33];
|
|
25680
|
+
let GU;
|
|
25681
|
+
r[34] !== T || r[35] !== w || r[36] !== _ || r[37] !== b ? (GU = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
25744
25682
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
25745
25683
|
children: `${prettyScientificNumber(b(T[0]), {
|
|
25746
25684
|
locale: w
|
|
25747
25685
|
})}, ${prettyScientificNumber(b(T[1]), {
|
|
25748
25686
|
locale: w
|
|
25749
25687
|
})}`
|
|
25750
|
-
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] =
|
|
25751
|
-
let
|
|
25752
|
-
r[39] !==
|
|
25688
|
+
}), r[34] = T, r[35] = w, r[36] = _, r[37] = b, r[38] = GU) : GU = r[38];
|
|
25689
|
+
let KU;
|
|
25690
|
+
r[39] !== WU || r[40] !== GU || r[41] !== B ? (KU = (0, import_jsx_runtime.jsxs)("div", {
|
|
25753
25691
|
className: B,
|
|
25754
25692
|
children: [
|
|
25755
|
-
|
|
25756
|
-
|
|
25693
|
+
WU,
|
|
25694
|
+
GU
|
|
25757
25695
|
]
|
|
25758
|
-
}), r[39] =
|
|
25759
|
-
let
|
|
25760
|
-
return r[43] !== v || r[44] !== S || r[45] !== c || r[46] !==
|
|
25696
|
+
}), r[39] = WU, r[40] = GU, r[41] = B, r[42] = KU) : KU = r[42];
|
|
25697
|
+
let qU;
|
|
25698
|
+
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, {
|
|
25761
25699
|
label: c,
|
|
25762
25700
|
id: S,
|
|
25763
25701
|
align: M,
|
|
25764
25702
|
className: L,
|
|
25765
25703
|
fullWidth: v,
|
|
25766
|
-
children:
|
|
25767
|
-
}), r[43] = v, r[44] = S, r[45] = c, r[46] =
|
|
25704
|
+
children: KU
|
|
25705
|
+
}), 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;
|
|
25768
25706
|
}, import_timestring = __toESM(__commonJSMin(((e, r) => {
|
|
25769
25707
|
r.exports = u;
|
|
25770
25708
|
var c = {
|
|
@@ -25992,16 +25930,16 @@ ${c}
|
|
|
25992
25930
|
r[9] === E ? G = r[10] : (G = [
|
|
25993
25931
|
E
|
|
25994
25932
|
], r[9] = E, r[10] = G);
|
|
25995
|
-
let q,
|
|
25933
|
+
let q, UU;
|
|
25996
25934
|
r[11] !== h || r[12] !== l ? (q = (e2) => {
|
|
25997
25935
|
let [r2] = e2;
|
|
25998
25936
|
O(r2), h || l(r2);
|
|
25999
|
-
},
|
|
25937
|
+
}, UU = (e2) => {
|
|
26000
25938
|
let [r2] = e2;
|
|
26001
25939
|
h && l(r2);
|
|
26002
|
-
}, r[11] = h, r[12] = l, r[13] = q, r[14] =
|
|
25940
|
+
}, r[11] = h, r[12] = l, r[13] = q, r[14] = UU) : (q = r[13], UU = r[14]);
|
|
26003
25941
|
let Z;
|
|
26004
|
-
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== G || r[22] !== q || r[23] !==
|
|
25942
|
+
r[15] !== S || r[16] !== w || r[17] !== g || r[18] !== d || r[19] !== m || r[20] !== f || r[21] !== G || r[22] !== q || r[23] !== UU || r[24] !== W || r[25] !== y ? (Z = (0, import_jsx_runtime.jsx)(Slider, {
|
|
26005
25943
|
id: w,
|
|
26006
25944
|
className: W,
|
|
26007
25945
|
value: G,
|
|
@@ -26010,19 +25948,19 @@ ${c}
|
|
|
26010
25948
|
step: m,
|
|
26011
25949
|
orientation: g,
|
|
26012
25950
|
onValueChange: q,
|
|
26013
|
-
onValueCommit:
|
|
25951
|
+
onValueCommit: UU,
|
|
26014
25952
|
valueMap: y,
|
|
26015
25953
|
disabled: S
|
|
26016
|
-
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = G, r[22] = q, r[23] =
|
|
26017
|
-
let
|
|
26018
|
-
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (
|
|
25954
|
+
}), r[15] = S, r[16] = w, r[17] = g, r[18] = d, r[19] = m, r[20] = f, r[21] = G, r[22] = q, r[23] = UU, r[24] = W, r[25] = y, r[26] = Z) : Z = r[26];
|
|
25955
|
+
let WU;
|
|
25956
|
+
r[27] !== E || r[28] !== T || r[29] !== _ || r[30] !== y ? (WU = _ && (0, import_jsx_runtime.jsx)("div", {
|
|
26019
25957
|
className: "text-xs text-muted-foreground min-w-[16px]",
|
|
26020
25958
|
children: prettyScientificNumber(y(E), {
|
|
26021
25959
|
locale: T
|
|
26022
25960
|
})
|
|
26023
|
-
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] =
|
|
26024
|
-
let
|
|
26025
|
-
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 ? (
|
|
25961
|
+
}), r[27] = E, r[28] = T, r[29] = _, r[30] = y, r[31] = WU) : WU = r[31];
|
|
25962
|
+
let GU;
|
|
25963
|
+
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, {
|
|
26026
25964
|
value: y(E),
|
|
26027
25965
|
onChange: (e2) => {
|
|
26028
25966
|
(e2 == null || Number.isNaN(e2)) && (e2 = Number(d)), O(e2), l(e2);
|
|
@@ -26033,25 +25971,25 @@ ${c}
|
|
|
26033
25971
|
className: "w-24",
|
|
26034
25972
|
"aria-label": `${c || "Slider"} value input`,
|
|
26035
25973
|
isDisabled: S
|
|
26036
|
-
}), 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] =
|
|
26037
|
-
let
|
|
26038
|
-
r[42] !== Z || r[43] !==
|
|
25974
|
+
}), 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];
|
|
25975
|
+
let KU;
|
|
25976
|
+
r[42] !== Z || r[43] !== WU || r[44] !== GU || r[45] !== B ? (KU = (0, import_jsx_runtime.jsxs)("div", {
|
|
26039
25977
|
className: B,
|
|
26040
25978
|
children: [
|
|
26041
25979
|
Z,
|
|
26042
|
-
|
|
26043
|
-
|
|
25980
|
+
WU,
|
|
25981
|
+
GU
|
|
26044
25982
|
]
|
|
26045
|
-
}), r[42] = Z, r[43] =
|
|
26046
|
-
let
|
|
26047
|
-
return r[47] !== v || r[48] !== w || r[49] !== c || r[50] !==
|
|
25983
|
+
}), r[42] = Z, r[43] = WU, r[44] = GU, r[45] = B, r[46] = KU) : KU = r[46];
|
|
25984
|
+
let qU;
|
|
25985
|
+
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, {
|
|
26048
25986
|
label: c,
|
|
26049
25987
|
id: w,
|
|
26050
25988
|
align: I,
|
|
26051
25989
|
fullWidth: v,
|
|
26052
25990
|
className: R,
|
|
26053
|
-
children:
|
|
26054
|
-
}), r[47] = v, r[48] = w, r[49] = c, r[50] =
|
|
25991
|
+
children: KU
|
|
25992
|
+
}), 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;
|
|
26055
25993
|
}, import_compiler_runtime$29 = require_compiler_runtime(), SwitchPlugin = class {
|
|
26056
25994
|
constructor() {
|
|
26057
25995
|
__publicField(this, "tagName", "marimo-switch");
|
|
@@ -29021,7 +28959,7 @@ ${c}
|
|
|
29021
28959
|
areRegExpsEqual: H,
|
|
29022
28960
|
areSetsEqual: W,
|
|
29023
28961
|
createIsNestedEqual: r2
|
|
29024
|
-
}),
|
|
28962
|
+
}), UU = Object.freeze({
|
|
29025
28963
|
areArraysEqual: O,
|
|
29026
28964
|
areDatesEqual: j,
|
|
29027
28965
|
areMapsEqual: I,
|
|
@@ -29030,39 +28968,39 @@ ${c}
|
|
|
29030
28968
|
areSetsEqual: G,
|
|
29031
28969
|
createIsNestedEqual: r2
|
|
29032
28970
|
}), Z = T(q);
|
|
29033
|
-
function
|
|
28971
|
+
function WU(e3, r3) {
|
|
29034
28972
|
return Z(e3, r3, void 0);
|
|
29035
28973
|
}
|
|
29036
|
-
var
|
|
28974
|
+
var GU = T(l(q, {
|
|
29037
28975
|
createIsNestedEqual: function() {
|
|
29038
28976
|
return f;
|
|
29039
28977
|
}
|
|
29040
28978
|
}));
|
|
29041
|
-
function
|
|
29042
|
-
return
|
|
28979
|
+
function KU(e3, r3) {
|
|
28980
|
+
return GU(e3, r3, void 0);
|
|
29043
28981
|
}
|
|
29044
|
-
var
|
|
29045
|
-
function
|
|
29046
|
-
return
|
|
28982
|
+
var qU = T(UU);
|
|
28983
|
+
function JU(e3, r3) {
|
|
28984
|
+
return qU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29047
28985
|
}
|
|
29048
|
-
var
|
|
28986
|
+
var YU = T(l(UU, {
|
|
29049
28987
|
createIsNestedEqual: function() {
|
|
29050
28988
|
return f;
|
|
29051
28989
|
}
|
|
29052
28990
|
}));
|
|
29053
|
-
function
|
|
29054
|
-
return
|
|
28991
|
+
function XU(e3, r3) {
|
|
28992
|
+
return YU(e3, r3, /* @__PURE__ */ new WeakMap());
|
|
29055
28993
|
}
|
|
29056
|
-
function
|
|
28994
|
+
function ZU(e3) {
|
|
29057
28995
|
return T(l(q, e3(q)));
|
|
29058
28996
|
}
|
|
29059
|
-
function
|
|
29060
|
-
var r3 = T(l(
|
|
28997
|
+
function QU(e3) {
|
|
28998
|
+
var r3 = T(l(UU, e3(UU)));
|
|
29061
28999
|
return (function(e4, c2, l2) {
|
|
29062
29000
|
return l2 === void 0 && (l2 = /* @__PURE__ */ new WeakMap()), r3(e4, c2, l2);
|
|
29063
29001
|
});
|
|
29064
29002
|
}
|
|
29065
|
-
e2.circularDeepEqual =
|
|
29003
|
+
e2.circularDeepEqual = JU, e2.circularShallowEqual = XU, e2.createCustomCircularEqual = QU, e2.createCustomEqual = ZU, e2.deepEqual = WU, e2.sameValueZeroEqual = f, e2.shallowEqual = KU, Object.defineProperty(e2, "__esModule", {
|
|
29066
29004
|
value: true
|
|
29067
29005
|
});
|
|
29068
29006
|
}));
|
|
@@ -29088,7 +29026,7 @@ ${c}
|
|
|
29088
29026
|
})), require_utils$1 = __commonJSMin(((e) => {
|
|
29089
29027
|
Object.defineProperty(e, "__esModule", {
|
|
29090
29028
|
value: true
|
|
29091
|
-
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType =
|
|
29029
|
+
}), e.bottom = h, e.childrenEqual = b, e.cloneLayout = g, e.cloneLayoutItem = y, e.collides = w, e.compact = T, e.compactItem = M, e.compactType = iW, e.correctBounds = I, e.fastPositionEqual = S, e.fastRGLPropsEqual = void 0, e.getAllCollisions = z, e.getFirstCollision = R, e.getLayoutItem = L, e.getStatics = B, e.modifyLayout = _, e.moveElement = H, e.moveElementAwayFromCollision = W, e.noop = void 0, e.perc = G, e.resizeItemInDirection = XU, e.setTopLeft = QU, e.setTransform = ZU, e.sortLayoutItems = $U, e.sortLayoutItemsByColRow = tW, e.sortLayoutItemsByRowCol = eW, e.synchronizeLayoutWithChildren = nW, e.validateLayout = rW, e.withLayoutItem = v;
|
|
29092
29030
|
var r = require_fast_equals(), c = l(require_react());
|
|
29093
29031
|
function l(e2) {
|
|
29094
29032
|
return e2 && e2.__esModule ? e2 : {
|
|
@@ -29193,7 +29131,7 @@ ${c}
|
|
|
29193
29131
|
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);
|
|
29194
29132
|
}
|
|
29195
29133
|
function T(e2, r2, c2, l2) {
|
|
29196
|
-
let u2 = B(e2), d2 = h(u2), f2 =
|
|
29134
|
+
let u2 = B(e2), d2 = h(u2), f2 = $U(e2, r2), p2 = Array(e2.length);
|
|
29197
29135
|
for (let m2 = 0, h2 = f2.length; m2 < h2; m2++) {
|
|
29198
29136
|
let h3 = y(f2[m2]);
|
|
29199
29137
|
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;
|
|
@@ -29251,7 +29189,7 @@ ${c}
|
|
|
29251
29189
|
`${r2.i}${String(c2)}${String(l2)}${r2.x}${r2.y}`;
|
|
29252
29190
|
let h2 = r2.x, _2 = r2.y;
|
|
29253
29191
|
typeof c2 == "number" && (r2.x = c2), typeof l2 == "number" && (r2.y = l2), r2.moved = true;
|
|
29254
|
-
let v2 =
|
|
29192
|
+
let v2 = $U(e2, f2);
|
|
29255
29193
|
(f2 === "vertical" && typeof l2 == "number" ? _2 >= l2 : f2 === "horizontal" && typeof c2 == "number" && h2 >= c2) && (v2 = v2.reverse());
|
|
29256
29194
|
let y2 = z(v2, r2), b2 = y2.length > 0;
|
|
29257
29195
|
if (b2 && m2) return g(e2);
|
|
@@ -29285,15 +29223,15 @@ ${c}
|
|
|
29285
29223
|
function G(e2) {
|
|
29286
29224
|
return e2 * 100 + "%";
|
|
29287
29225
|
}
|
|
29288
|
-
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2,
|
|
29226
|
+
var q = (e2, r2, c2, l2) => e2 + c2 > l2 ? r2 : c2, UU = (e2, r2, c2) => e2 < 0 ? r2 : c2, Z = (e2) => Math.max(0, e2), WU = (e2) => Math.max(0, e2), GU = (e2, r2, c2) => {
|
|
29289
29227
|
let { left: l2, height: u2, width: d2 } = r2, f2 = e2.top - (u2 - e2.height);
|
|
29290
29228
|
return {
|
|
29291
29229
|
left: l2,
|
|
29292
29230
|
width: d2,
|
|
29293
|
-
height:
|
|
29294
|
-
top:
|
|
29231
|
+
height: UU(f2, e2.height, u2),
|
|
29232
|
+
top: WU(f2)
|
|
29295
29233
|
};
|
|
29296
|
-
},
|
|
29234
|
+
}, KU = (e2, r2, c2) => {
|
|
29297
29235
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29298
29236
|
return {
|
|
29299
29237
|
top: l2,
|
|
@@ -29301,45 +29239,45 @@ ${c}
|
|
|
29301
29239
|
width: q(e2.left, e2.width, f2, c2),
|
|
29302
29240
|
left: Z(u2)
|
|
29303
29241
|
};
|
|
29304
|
-
},
|
|
29242
|
+
}, qU = (e2, r2, c2) => {
|
|
29305
29243
|
let { top: l2, height: u2, width: d2 } = r2, f2 = e2.left - (d2 - e2.width);
|
|
29306
29244
|
return {
|
|
29307
29245
|
height: u2,
|
|
29308
29246
|
width: f2 < 0 ? e2.width : q(e2.left, e2.width, d2, c2),
|
|
29309
|
-
top:
|
|
29247
|
+
top: WU(l2),
|
|
29310
29248
|
left: Z(f2)
|
|
29311
29249
|
};
|
|
29312
|
-
},
|
|
29250
|
+
}, JU = (e2, r2, c2) => {
|
|
29313
29251
|
let { top: l2, left: u2, height: d2, width: f2 } = r2;
|
|
29314
29252
|
return {
|
|
29315
29253
|
width: f2,
|
|
29316
29254
|
left: u2,
|
|
29317
|
-
height:
|
|
29318
|
-
top:
|
|
29255
|
+
height: UU(l2, e2.height, d2),
|
|
29256
|
+
top: WU(l2)
|
|
29319
29257
|
};
|
|
29320
|
-
},
|
|
29321
|
-
n:
|
|
29258
|
+
}, YU = {
|
|
29259
|
+
n: GU,
|
|
29322
29260
|
ne: function() {
|
|
29323
|
-
return
|
|
29261
|
+
return GU(arguments.length <= 0 ? void 0 : arguments[0], KU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29324
29262
|
},
|
|
29325
|
-
e:
|
|
29263
|
+
e: KU,
|
|
29326
29264
|
se: function() {
|
|
29327
|
-
return
|
|
29265
|
+
return JU(arguments.length <= 0 ? void 0 : arguments[0], KU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29328
29266
|
},
|
|
29329
|
-
s:
|
|
29267
|
+
s: JU,
|
|
29330
29268
|
sw: function() {
|
|
29331
|
-
return
|
|
29269
|
+
return JU(arguments.length <= 0 ? void 0 : arguments[0], qU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29332
29270
|
},
|
|
29333
|
-
w:
|
|
29271
|
+
w: qU,
|
|
29334
29272
|
nw: function() {
|
|
29335
|
-
return
|
|
29273
|
+
return GU(arguments.length <= 0 ? void 0 : arguments[0], qU(...arguments), arguments.length <= 2 ? void 0 : arguments[2]);
|
|
29336
29274
|
}
|
|
29337
29275
|
};
|
|
29338
|
-
function
|
|
29339
|
-
let u2 =
|
|
29276
|
+
function XU(e2, r2, c2, l2) {
|
|
29277
|
+
let u2 = YU[e2];
|
|
29340
29278
|
return u2 ? u2(r2, d(d({}, r2), c2), l2) : c2;
|
|
29341
29279
|
}
|
|
29342
|
-
function
|
|
29280
|
+
function ZU(e2) {
|
|
29343
29281
|
let { top: r2, left: c2, width: l2, height: u2 } = e2, d2 = `translate(${c2}px,${r2}px)`;
|
|
29344
29282
|
return {
|
|
29345
29283
|
transform: d2,
|
|
@@ -29352,7 +29290,7 @@ ${c}
|
|
|
29352
29290
|
position: "absolute"
|
|
29353
29291
|
};
|
|
29354
29292
|
}
|
|
29355
|
-
function
|
|
29293
|
+
function QU(e2) {
|
|
29356
29294
|
let { top: r2, left: c2, width: l2, height: u2 } = e2;
|
|
29357
29295
|
return {
|
|
29358
29296
|
top: `${r2}px`,
|
|
@@ -29362,20 +29300,20 @@ ${c}
|
|
|
29362
29300
|
position: "absolute"
|
|
29363
29301
|
};
|
|
29364
29302
|
}
|
|
29365
|
-
function
|
|
29366
|
-
return r2 === "horizontal" ?
|
|
29303
|
+
function $U(e2, r2) {
|
|
29304
|
+
return r2 === "horizontal" ? tW(e2) : r2 === "vertical" ? eW(e2) : e2;
|
|
29367
29305
|
}
|
|
29368
|
-
function
|
|
29306
|
+
function eW(e2) {
|
|
29369
29307
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29370
29308
|
return e3.y > r2.y || e3.y === r2.y && e3.x > r2.x ? 1 : e3.y === r2.y && e3.x === r2.x ? 0 : -1;
|
|
29371
29309
|
});
|
|
29372
29310
|
}
|
|
29373
|
-
function
|
|
29311
|
+
function tW(e2) {
|
|
29374
29312
|
return e2.slice(0).sort(function(e3, r2) {
|
|
29375
29313
|
return e3.x > r2.x || e3.x === r2.x && e3.y > r2.y ? 1 : -1;
|
|
29376
29314
|
});
|
|
29377
29315
|
}
|
|
29378
|
-
function
|
|
29316
|
+
function nW(e2, r2, l2, u2, f2) {
|
|
29379
29317
|
e2 || (e2 = []);
|
|
29380
29318
|
let p2 = [];
|
|
29381
29319
|
c.default.Children.forEach(r2, (r3) => {
|
|
@@ -29396,7 +29334,7 @@ ${c}
|
|
|
29396
29334
|
});
|
|
29397
29335
|
return f2 ? m2 : T(m2, u2, l2);
|
|
29398
29336
|
}
|
|
29399
|
-
function
|
|
29337
|
+
function rW(e2) {
|
|
29400
29338
|
let r2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : "Layout", c2 = [
|
|
29401
29339
|
"x",
|
|
29402
29340
|
"y",
|
|
@@ -29413,7 +29351,7 @@ ${c}
|
|
|
29413
29351
|
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})`);
|
|
29414
29352
|
}
|
|
29415
29353
|
}
|
|
29416
|
-
function
|
|
29354
|
+
function iW(e2) {
|
|
29417
29355
|
let { verticalCompact: r2, compactType: c2 } = e2 || {};
|
|
29418
29356
|
return r2 === false ? null : c2;
|
|
29419
29357
|
}
|
|
@@ -32218,7 +32156,7 @@ ${c}
|
|
|
32218
32156
|
], r[4] = c.bordered, r[5] = w, r[6] = T), (0, import_react.useEffect)(w, T);
|
|
32219
32157
|
let E = useIsDragging(), O, j;
|
|
32220
32158
|
r[7] === E ? (O = r[8], j = r[9]) : ({ isDragging: j, ...O } = E, r[7] = E, r[8] = O, r[9] = j);
|
|
32221
|
-
let M = !f && !v, I, L, R, z, B, H, W, G, q,
|
|
32159
|
+
let M = !f && !v, I, L, R, z, B, H, W, G, q, UU, Z, WU, GU, KU, qU, JU, YU, XU, ZU, QU, $U, eW, tW, nW, rW, iW;
|
|
32222
32160
|
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) {
|
|
32223
32161
|
let e2 = Maps.keyBy(c.cells, _temp2$3), m2;
|
|
32224
32162
|
r[47] !== c || r[48] !== l ? (m2 = (e3) => (r2) => {
|
|
@@ -32237,23 +32175,23 @@ ${c}
|
|
|
32237
32175
|
});
|
|
32238
32176
|
}, r[50] = c, r[51] = l, r[52] = v2) : v2 = r[52];
|
|
32239
32177
|
let y2 = v2;
|
|
32240
|
-
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,
|
|
32178
|
+
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 = {
|
|
32241
32179
|
lg: c.cells
|
|
32242
|
-
}, r[58] = c.cells, r[59] =
|
|
32180
|
+
}, r[58] = c.cells, r[59] = nW), rW = L, iW = S, R = false;
|
|
32243
32181
|
let b2 = M && "bg-(--slate-2) border-r", w2 = f && "disable-animation", T2 = !c.maxWidth && "min-w-[800px]";
|
|
32244
32182
|
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 ? [
|
|
32245
32183
|
20,
|
|
32246
32184
|
20
|
|
32247
|
-
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true,
|
|
32185
|
+
] : void 0, r[64] = f, r[65] = B), H = MARGIN, W = false, G = null, q = true, UU = c.rowHeight, r[66] !== f || r[67] !== c || r[68] !== l ? (Z = (e3) => {
|
|
32248
32186
|
f || l({
|
|
32249
32187
|
...c,
|
|
32250
32188
|
cells: e3
|
|
32251
32189
|
});
|
|
32252
|
-
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ?
|
|
32190
|
+
}, r[66] = f, r[67] = c, r[68] = l, r[69] = Z) : Z = r[69], r[70] === g ? WU = r[71] : (WU = g ? {
|
|
32253
32191
|
i: g.i,
|
|
32254
32192
|
w: g.w || 2,
|
|
32255
32193
|
h: g.h || 2
|
|
32256
|
-
} : void 0, r[70] = g, r[71] =
|
|
32194
|
+
} : void 0, r[70] = g, r[71] = WU), r[72] !== O || r[73] !== c || r[74] !== l ? (GU = (e3, r2, u2) => {
|
|
32257
32195
|
O.onDragStop(), r2 && l({
|
|
32258
32196
|
...c,
|
|
32259
32197
|
cells: [
|
|
@@ -32261,15 +32199,15 @@ ${c}
|
|
|
32261
32199
|
r2
|
|
32262
32200
|
]
|
|
32263
32201
|
});
|
|
32264
|
-
}, r[72] = O, r[73] = c, r[74] = l, r[75] =
|
|
32202
|
+
}, 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) => {
|
|
32265
32203
|
O.onDragStart(u2);
|
|
32266
|
-
},
|
|
32204
|
+
}, qU = (e3, r2, c2, l2, u2) => {
|
|
32267
32205
|
O.onDragMove(u2);
|
|
32268
|
-
},
|
|
32206
|
+
}, JU = () => {
|
|
32269
32207
|
O.onDragStop();
|
|
32270
|
-
}, r[76] = O, r[77] =
|
|
32208
|
+
}, 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";
|
|
32271
32209
|
let E2;
|
|
32272
|
-
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2),
|
|
32210
|
+
r[80] === h ? E2 = r[81] : (E2 = (e3) => h.has(e3.id), r[80] = h, r[81] = E2), eW = u.filter(E2).map((r2) => {
|
|
32273
32211
|
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, {
|
|
32274
32212
|
code: r2.code,
|
|
32275
32213
|
mode: d,
|
|
@@ -32298,14 +32236,14 @@ ${c}
|
|
|
32298
32236
|
}, r2.id) : (0, import_jsx_runtime.jsx)("div", {
|
|
32299
32237
|
children: m3
|
|
32300
32238
|
}, r2.id);
|
|
32301
|
-
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] =
|
|
32302
|
-
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29],
|
|
32303
|
-
let
|
|
32304
|
-
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !==
|
|
32305
|
-
breakpoint:
|
|
32306
|
-
layouts:
|
|
32307
|
-
style:
|
|
32308
|
-
cols:
|
|
32239
|
+
}), r[10] = u, r[11] = S, r[12] = O, r[13] = g, r[14] = M, r[15] = h, r[16] = j, r[17] = f, r[18] = c, r[19] = d, r[20] = l, r[21] = I, r[22] = L, r[23] = R, r[24] = z, r[25] = B, r[26] = H, r[27] = W, r[28] = G, r[29] = q, r[30] = UU, r[31] = Z, r[32] = WU, r[33] = GU, r[34] = KU, r[35] = qU, r[36] = JU, r[37] = YU, r[38] = XU, r[39] = ZU, r[40] = QU, r[41] = $U, r[42] = eW, r[43] = tW, r[44] = nW, r[45] = rW, r[46] = iW;
|
|
32240
|
+
} else I = r[21], L = r[22], R = r[23], z = r[24], B = r[25], H = r[26], W = r[27], G = r[28], q = r[29], UU = r[30], Z = r[31], WU = r[32], GU = r[33], KU = r[34], qU = r[35], JU = r[36], YU = r[37], XU = r[38], ZU = r[39], QU = r[40], $U = r[41], eW = r[42], tW = r[43], nW = r[44], rW = r[45], iW = r[46];
|
|
32241
|
+
let aW;
|
|
32242
|
+
r[82] !== I || r[83] !== R || r[84] !== z || r[85] !== B || r[86] !== H || r[87] !== W || r[88] !== G || r[89] !== q || r[90] !== UU || r[91] !== Z || r[92] !== WU || r[93] !== GU || r[94] !== KU || r[95] !== qU || r[96] !== JU || r[97] !== YU || r[98] !== XU || r[99] !== ZU || r[100] !== QU || r[101] !== $U || r[102] !== eW || r[103] !== tW || r[104] !== nW || r[105] !== rW || r[106] !== iW ? (aW = (0, import_jsx_runtime.jsx)(I, {
|
|
32243
|
+
breakpoint: tW,
|
|
32244
|
+
layouts: nW,
|
|
32245
|
+
style: rW,
|
|
32246
|
+
cols: iW,
|
|
32309
32247
|
allowOverlap: R,
|
|
32310
32248
|
className: z,
|
|
32311
32249
|
containerPadding: B,
|
|
@@ -32313,23 +32251,23 @@ ${c}
|
|
|
32313
32251
|
isBounded: W,
|
|
32314
32252
|
compactType: G,
|
|
32315
32253
|
preventCollision: q,
|
|
32316
|
-
rowHeight:
|
|
32254
|
+
rowHeight: UU,
|
|
32317
32255
|
onLayoutChange: Z,
|
|
32318
|
-
droppingItem:
|
|
32319
|
-
onDrop:
|
|
32320
|
-
onDragStart:
|
|
32321
|
-
onDrag:
|
|
32322
|
-
onDragStop:
|
|
32323
|
-
onResizeStop:
|
|
32324
|
-
isDraggable:
|
|
32325
|
-
isDroppable:
|
|
32326
|
-
isResizable:
|
|
32327
|
-
draggableHandle:
|
|
32328
|
-
children:
|
|
32329
|
-
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] =
|
|
32330
|
-
let
|
|
32331
|
-
if (r[108] !== u || r[109] !==
|
|
32332
|
-
|
|
32256
|
+
droppingItem: WU,
|
|
32257
|
+
onDrop: GU,
|
|
32258
|
+
onDragStart: KU,
|
|
32259
|
+
onDrag: qU,
|
|
32260
|
+
onDragStop: JU,
|
|
32261
|
+
onResizeStop: YU,
|
|
32262
|
+
isDraggable: XU,
|
|
32263
|
+
isDroppable: ZU,
|
|
32264
|
+
isResizable: QU,
|
|
32265
|
+
draggableHandle: $U,
|
|
32266
|
+
children: eW
|
|
32267
|
+
}), r[82] = I, r[83] = R, r[84] = z, r[85] = B, r[86] = H, r[87] = W, r[88] = G, r[89] = q, r[90] = UU, r[91] = Z, r[92] = WU, r[93] = GU, r[94] = KU, r[95] = qU, r[96] = JU, r[97] = YU, r[98] = XU, r[99] = ZU, r[100] = QU, r[101] = $U, r[102] = eW, r[103] = tW, r[104] = nW, r[105] = rW, r[106] = iW, r[107] = aW) : aW = r[107];
|
|
32268
|
+
let oW = aW, sW, cW, lW, uW, dW, fW, pW;
|
|
32269
|
+
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) {
|
|
32270
|
+
pW = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
32333
32271
|
bb0: {
|
|
32334
32272
|
let e2;
|
|
32335
32273
|
r[125] === h ? e2 = r[126] : (e2 = (e3) => !h.has(e3.id), r[125] = h, r[126] = e2);
|
|
@@ -32337,14 +32275,14 @@ ${c}
|
|
|
32337
32275
|
if (f) {
|
|
32338
32276
|
if (c.bordered) {
|
|
32339
32277
|
let e4;
|
|
32340
|
-
r[127] !==
|
|
32278
|
+
r[127] !== oW || r[128] !== L ? (e4 = (0, import_jsx_runtime.jsx)("div", {
|
|
32341
32279
|
className: "flex flex-1 flex-col items-center",
|
|
32342
32280
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
32343
32281
|
style: L,
|
|
32344
32282
|
className: "bg-background flex-1 border-t border-x rounded-t shadow-sm w-full overflow-hidden",
|
|
32345
|
-
children:
|
|
32283
|
+
children: oW
|
|
32346
32284
|
})
|
|
32347
|
-
}), r[127] =
|
|
32285
|
+
}), r[127] = oW, r[128] = L, r[129] = e4) : e4 = r[129], oW = e4;
|
|
32348
32286
|
}
|
|
32349
32287
|
let e3 = m2.filter(_temp4$2), l2;
|
|
32350
32288
|
r[130] === d ? l2 = r[131] : (l2 = (e4) => (0, import_jsx_runtime.jsx)(GridCell, {
|
|
@@ -32355,9 +32293,9 @@ ${c}
|
|
|
32355
32293
|
status: e4.status,
|
|
32356
32294
|
isScrollable: false,
|
|
32357
32295
|
hidden: false
|
|
32358
|
-
}, e4.id), r[130] = d, r[131] = l2),
|
|
32296
|
+
}, e4.id), r[130] = d, r[131] = l2), pW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32359
32297
|
children: [
|
|
32360
|
-
|
|
32298
|
+
oW,
|
|
32361
32299
|
(0, import_jsx_runtime.jsx)("div", {
|
|
32362
32300
|
className: "hidden",
|
|
32363
32301
|
children: e3.map(l2)
|
|
@@ -32368,31 +32306,31 @@ ${c}
|
|
|
32368
32306
|
}
|
|
32369
32307
|
if (c.bordered) {
|
|
32370
32308
|
let e3;
|
|
32371
|
-
r[132] ===
|
|
32309
|
+
r[132] === oW ? e3 = r[133] : (e3 = (0, import_jsx_runtime.jsx)("div", {
|
|
32372
32310
|
className: "h-full overflow-auto",
|
|
32373
|
-
children:
|
|
32374
|
-
}), r[132] =
|
|
32311
|
+
children: oW
|
|
32312
|
+
}), r[132] = oW, r[133] = e3);
|
|
32375
32313
|
let c2;
|
|
32376
32314
|
r[134] !== L || r[135] !== e3 ? (c2 = (0, import_jsx_runtime.jsx)("div", {
|
|
32377
32315
|
style: L,
|
|
32378
32316
|
className: "bg-background border-t border-x rounded-t shadow-sm w-full mx-auto mt-4 h-[calc(100%-1rem)] overflow-hidden",
|
|
32379
32317
|
children: e3
|
|
32380
|
-
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136],
|
|
32318
|
+
}), r[134] = L, r[135] = e3, r[136] = c2) : c2 = r[136], oW = c2;
|
|
32381
32319
|
}
|
|
32382
|
-
r[137] !== v || r[138] !== c || r[139] !== l ? (
|
|
32320
|
+
r[137] !== v || r[138] !== c || r[139] !== l ? (fW = (0, import_jsx_runtime.jsx)(GridControls, {
|
|
32383
32321
|
layout: c,
|
|
32384
32322
|
setLayout: l,
|
|
32385
32323
|
isLocked: v,
|
|
32386
32324
|
setIsLocked: y
|
|
32387
|
-
}), r[137] = v, r[138] = c, r[139] = l, r[140] =
|
|
32325
|
+
}), r[137] = v, r[138] = c, r[139] = l, r[140] = fW) : fW = r[140];
|
|
32388
32326
|
let g2;
|
|
32389
|
-
r[141] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32327
|
+
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", {
|
|
32390
32328
|
className: g2,
|
|
32391
|
-
children:
|
|
32392
|
-
}), r[143] =
|
|
32329
|
+
children: oW
|
|
32330
|
+
}), 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", {
|
|
32393
32331
|
className: "text font-bold text-(--slate-20) shrink-0",
|
|
32394
32332
|
children: "Outputs"
|
|
32395
|
-
}), r[145] =
|
|
32333
|
+
}), r[145] = cW) : cW = r[145];
|
|
32396
32334
|
let b2;
|
|
32397
32335
|
r[146] !== c.columns || r[147] !== c.rowHeight || r[148] !== d ? (b2 = (e3) => (0, import_jsx_runtime.jsx)("div", {
|
|
32398
32336
|
draggable: true,
|
|
@@ -32417,34 +32355,34 @@ ${c}
|
|
|
32417
32355
|
status: e3.status,
|
|
32418
32356
|
hidden: false
|
|
32419
32357
|
})
|
|
32420
|
-
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149],
|
|
32421
|
-
}
|
|
32422
|
-
r[108] = u, r[109] =
|
|
32423
|
-
} else
|
|
32424
|
-
if (
|
|
32425
|
-
let
|
|
32426
|
-
r[150] !==
|
|
32427
|
-
className:
|
|
32358
|
+
}, e3.id), r[146] = c.columns, r[147] = c.rowHeight, r[148] = d, r[149] = b2) : b2 = r[149], lW = m2.map(b2);
|
|
32359
|
+
}
|
|
32360
|
+
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;
|
|
32361
|
+
} 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];
|
|
32362
|
+
if (pW !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return pW;
|
|
32363
|
+
let mW;
|
|
32364
|
+
r[150] !== sW || r[151] !== cW || r[152] !== lW ? (mW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32365
|
+
className: sW,
|
|
32428
32366
|
children: [
|
|
32429
|
-
|
|
32430
|
-
|
|
32367
|
+
cW,
|
|
32368
|
+
lW
|
|
32431
32369
|
]
|
|
32432
|
-
}), r[150] =
|
|
32433
|
-
let
|
|
32434
|
-
r[154] !==
|
|
32435
|
-
className:
|
|
32370
|
+
}), r[150] = sW, r[151] = cW, r[152] = lW, r[153] = mW) : mW = r[153];
|
|
32371
|
+
let hW;
|
|
32372
|
+
r[154] !== uW || r[155] !== dW || r[156] !== mW ? (hW = (0, import_jsx_runtime.jsxs)("div", {
|
|
32373
|
+
className: uW,
|
|
32436
32374
|
children: [
|
|
32437
|
-
|
|
32438
|
-
|
|
32375
|
+
dW,
|
|
32376
|
+
mW
|
|
32439
32377
|
]
|
|
32440
|
-
}), r[154] =
|
|
32441
|
-
let
|
|
32442
|
-
return r[158] !==
|
|
32378
|
+
}), r[154] = uW, r[155] = dW, r[156] = mW, r[157] = hW) : hW = r[157];
|
|
32379
|
+
let gW;
|
|
32380
|
+
return r[158] !== fW || r[159] !== hW ? (gW = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
32443
32381
|
children: [
|
|
32444
|
-
|
|
32445
|
-
|
|
32382
|
+
fW,
|
|
32383
|
+
hW
|
|
32446
32384
|
]
|
|
32447
|
-
}), r[158] =
|
|
32385
|
+
}), r[158] = fW, r[159] = hW, r[160] = gW) : gW = r[160], gW;
|
|
32448
32386
|
};
|
|
32449
32387
|
var GridCell = (0, import_react.memo)((e) => {
|
|
32450
32388
|
let r = (0, import_compiler_runtime$13.c)(20), { output: c, cellId: l, status: u, mode: d, code: f, hidden: m, isScrollable: h, side: g, className: _ } = e, v;
|
|
@@ -32745,25 +32683,25 @@ ${c}
|
|
|
32745
32683
|
G
|
|
32746
32684
|
]
|
|
32747
32685
|
}), r[31] = L, r[32] = R, r[33] = G, r[34] = q) : q = r[34];
|
|
32748
|
-
let
|
|
32749
|
-
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32686
|
+
let UU;
|
|
32687
|
+
r[35] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UU = (0, import_jsx_runtime.jsx)(GripHorizontal, {
|
|
32750
32688
|
className: cn(DRAG_HANDLE, "cursor-move", "h-4 w-4 opacity-60 hover:opacity-100")
|
|
32751
|
-
}), r[35] =
|
|
32689
|
+
}), r[35] = UU) : UU = r[35];
|
|
32752
32690
|
let Z;
|
|
32753
32691
|
r[36] === l ? Z = r[37] : (Z = (0, import_jsx_runtime.jsx)(X, {
|
|
32754
32692
|
className: "h-4 w-4 opacity-60 hover:opacity-100",
|
|
32755
32693
|
onClick: () => l()
|
|
32756
32694
|
}), r[36] = l, r[37] = Z);
|
|
32757
|
-
let
|
|
32758
|
-
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (
|
|
32695
|
+
let WU;
|
|
32696
|
+
return r[38] !== I || r[39] !== q || r[40] !== Z || r[41] !== w ? (WU = (0, import_jsx_runtime.jsxs)("div", {
|
|
32759
32697
|
className: w,
|
|
32760
32698
|
children: [
|
|
32761
32699
|
I,
|
|
32762
32700
|
q,
|
|
32763
|
-
|
|
32701
|
+
UU,
|
|
32764
32702
|
Z
|
|
32765
32703
|
]
|
|
32766
|
-
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] =
|
|
32704
|
+
}), r[38] = I, r[39] = q, r[40] = Z, r[41] = w, r[42] = WU) : WU = r[42], WU;
|
|
32767
32705
|
};
|
|
32768
32706
|
function isSidebarCell(e) {
|
|
32769
32707
|
var _a3;
|
|
@@ -34767,31 +34705,31 @@ ${c}
|
|
|
34767
34705
|
}, [
|
|
34768
34706
|
T,
|
|
34769
34707
|
M
|
|
34770
|
-
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r),
|
|
34708
|
+
]), R = (0, import_react.useRef)(null), [z, B] = (0, import_react.useState)(null), [H, W] = (0, import_react.useState)(null), G = useLatestValue(h, Object.values(h)), q = useUniqueId("DndDescribedBy", r), UU = (0, import_react.useMemo)(() => j.getEnabled(), [
|
|
34771
34709
|
j
|
|
34772
|
-
]), Z = useMeasuringConfiguration(p), { droppableRects:
|
|
34710
|
+
]), Z = useMeasuringConfiguration(p), { droppableRects: WU, measureDroppableContainers: GU, measuringScheduled: KU } = useDroppableMeasuring(UU, {
|
|
34773
34711
|
dragging: w,
|
|
34774
34712
|
dependencies: [
|
|
34775
34713
|
O.x,
|
|
34776
34714
|
O.y
|
|
34777
34715
|
],
|
|
34778
34716
|
config: Z.droppable
|
|
34779
|
-
}),
|
|
34717
|
+
}), qU = useCachedNode(E, T), JU = (0, import_react.useMemo)(() => H ? getEventCoordinates(H) : null, [
|
|
34780
34718
|
H
|
|
34781
|
-
]),
|
|
34719
|
+
]), YU = EW(), XU = useInitialRect(qU, Z.draggable.measure);
|
|
34782
34720
|
useLayoutShiftScrollCompensation({
|
|
34783
34721
|
activeNode: T == null ? null : E.get(T),
|
|
34784
|
-
config:
|
|
34785
|
-
initialRect:
|
|
34722
|
+
config: YU.layoutShiftCompensation,
|
|
34723
|
+
initialRect: XU,
|
|
34786
34724
|
measure: Z.draggable.measure
|
|
34787
34725
|
});
|
|
34788
|
-
let
|
|
34726
|
+
let ZU = useRect(qU, Z.draggable.measure, XU), QU = useRect(qU ? qU.parentElement : null), $U = (0, import_react.useRef)({
|
|
34789
34727
|
activatorEvent: null,
|
|
34790
34728
|
active: null,
|
|
34791
|
-
activeNode:
|
|
34729
|
+
activeNode: qU,
|
|
34792
34730
|
collisionRect: null,
|
|
34793
34731
|
collisions: null,
|
|
34794
|
-
droppableRects:
|
|
34732
|
+
droppableRects: WU,
|
|
34795
34733
|
draggableNodes: E,
|
|
34796
34734
|
draggingNode: null,
|
|
34797
34735
|
draggingNodeRect: null,
|
|
@@ -34799,45 +34737,45 @@ ${c}
|
|
|
34799
34737
|
over: null,
|
|
34800
34738
|
scrollableAncestors: [],
|
|
34801
34739
|
scrollAdjustedTranslate: null
|
|
34802
|
-
}),
|
|
34740
|
+
}), eW = j.getNodeFor((_a3 = $U.current.over) == null ? void 0 : _a3.id), tW = useDragOverlayMeasuring({
|
|
34803
34741
|
measure: Z.dragOverlay.measure
|
|
34804
|
-
}),
|
|
34742
|
+
}), 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, {
|
|
34805
34743
|
transform: {
|
|
34806
|
-
x: O.x -
|
|
34807
|
-
y: O.y -
|
|
34744
|
+
x: O.x - aW.x,
|
|
34745
|
+
y: O.y - aW.y,
|
|
34808
34746
|
scaleX: 1,
|
|
34809
34747
|
scaleY: 1
|
|
34810
34748
|
},
|
|
34811
34749
|
activatorEvent: H,
|
|
34812
34750
|
active: L,
|
|
34813
|
-
activeNodeRect:
|
|
34814
|
-
containerNodeRect:
|
|
34815
|
-
draggingNodeRect:
|
|
34816
|
-
over:
|
|
34817
|
-
overlayNodeRect:
|
|
34818
|
-
scrollableAncestors:
|
|
34819
|
-
scrollableAncestorRects:
|
|
34820
|
-
windowRect:
|
|
34821
|
-
}),
|
|
34822
|
-
|
|
34823
|
-
]),
|
|
34751
|
+
activeNodeRect: ZU,
|
|
34752
|
+
containerNodeRect: QU,
|
|
34753
|
+
draggingNodeRect: rW,
|
|
34754
|
+
over: $U.current.over,
|
|
34755
|
+
overlayNodeRect: tW.rect,
|
|
34756
|
+
scrollableAncestors: sW,
|
|
34757
|
+
scrollableAncestorRects: cW,
|
|
34758
|
+
windowRect: oW
|
|
34759
|
+
}), uW = JU ? add(JU, O) : null, dW = useScrollOffsets(sW), fW = useScrollOffsetsDelta(dW), pW = useScrollOffsetsDelta(dW, [
|
|
34760
|
+
ZU
|
|
34761
|
+
]), mW = add(lW, fW), hW = rW ? getAdjustedRect(rW, lW) : null, gW = L && hW ? f({
|
|
34824
34762
|
active: L,
|
|
34825
|
-
collisionRect:
|
|
34826
|
-
droppableRects:
|
|
34827
|
-
droppableContainers:
|
|
34828
|
-
pointerCoordinates:
|
|
34829
|
-
}) : null,
|
|
34763
|
+
collisionRect: hW,
|
|
34764
|
+
droppableRects: WU,
|
|
34765
|
+
droppableContainers: UU,
|
|
34766
|
+
pointerCoordinates: uW
|
|
34767
|
+
}) : 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) => {
|
|
34830
34768
|
let { sensor: c2, options: l2 } = r2;
|
|
34831
34769
|
if (R.current == null) return;
|
|
34832
34770
|
let u2 = E.get(R.current);
|
|
34833
34771
|
if (!u2) return;
|
|
34834
34772
|
let d2 = e2.nativeEvent;
|
|
34835
|
-
|
|
34773
|
+
xW.current = new c2({
|
|
34836
34774
|
active: R.current,
|
|
34837
34775
|
activeNode: u2,
|
|
34838
34776
|
event: d2,
|
|
34839
34777
|
options: l2,
|
|
34840
|
-
context:
|
|
34778
|
+
context: $U,
|
|
34841
34779
|
onAbort(e3) {
|
|
34842
34780
|
if (!E.get(e3)) return;
|
|
34843
34781
|
let { onDragAbort: r3 } = G.current, c3 = {
|
|
@@ -34882,7 +34820,7 @@ ${c}
|
|
|
34882
34820
|
}), v({
|
|
34883
34821
|
type: "onDragStart",
|
|
34884
34822
|
event: u3
|
|
34885
|
-
}), B(
|
|
34823
|
+
}), B(xW.current), W(d2);
|
|
34886
34824
|
});
|
|
34887
34825
|
},
|
|
34888
34826
|
onMove(e3) {
|
|
@@ -34896,7 +34834,7 @@ ${c}
|
|
|
34896
34834
|
});
|
|
34897
34835
|
function f2(e3) {
|
|
34898
34836
|
return async function() {
|
|
34899
|
-
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } =
|
|
34837
|
+
let { active: r3, collisions: c3, over: l3, scrollAdjustedTranslate: u3 } = $U.current, f3 = null;
|
|
34900
34838
|
if (r3 && u3) {
|
|
34901
34839
|
let { cancelDrop: p2 } = G.current;
|
|
34902
34840
|
f3 = {
|
|
@@ -34910,7 +34848,7 @@ ${c}
|
|
|
34910
34848
|
R.current = null, (0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34911
34849
|
_({
|
|
34912
34850
|
type: e3
|
|
34913
|
-
}), S(Status.Uninitialized),
|
|
34851
|
+
}), S(Status.Uninitialized), yW(null), B(null), W(null), xW.current = null;
|
|
34914
34852
|
let r4 = e3 === Action.DragEnd ? "onDragEnd" : "onDragCancel";
|
|
34915
34853
|
if (f3) {
|
|
34916
34854
|
let e4 = G.current[r4];
|
|
@@ -34924,7 +34862,7 @@ ${c}
|
|
|
34924
34862
|
}
|
|
34925
34863
|
}, [
|
|
34926
34864
|
E
|
|
34927
|
-
]),
|
|
34865
|
+
]), CW = useCombineActivators(d, (0, import_react.useCallback)((e2, r2) => (c2, l2) => {
|
|
34928
34866
|
let u2 = c2.nativeEvent, d2 = E.get(l2);
|
|
34929
34867
|
if (R.current !== null || !d2 || u2.dndKit || u2.defaultPrevented) return;
|
|
34930
34868
|
let f2 = {
|
|
@@ -34932,26 +34870,26 @@ ${c}
|
|
|
34932
34870
|
};
|
|
34933
34871
|
e2(c2, r2.options, f2) === true && (u2.dndKit = {
|
|
34934
34872
|
capturedBy: r2.sensor
|
|
34935
|
-
}, R.current = l2,
|
|
34873
|
+
}, R.current = l2, SW(c2, r2));
|
|
34936
34874
|
}, [
|
|
34937
34875
|
E,
|
|
34938
|
-
|
|
34876
|
+
SW
|
|
34939
34877
|
]));
|
|
34940
34878
|
useSensorSetup(d), useIsomorphicLayoutEffect(() => {
|
|
34941
|
-
|
|
34879
|
+
ZU && b === Status.Initializing && S(Status.Initialized);
|
|
34942
34880
|
}, [
|
|
34943
|
-
|
|
34881
|
+
ZU,
|
|
34944
34882
|
b
|
|
34945
34883
|
]), (0, import_react.useEffect)(() => {
|
|
34946
|
-
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } =
|
|
34884
|
+
let { onDragMove: e2 } = G.current, { active: r2, activatorEvent: c2, collisions: l2, over: u2 } = $U.current;
|
|
34947
34885
|
if (!r2 || !c2) return;
|
|
34948
34886
|
let d2 = {
|
|
34949
34887
|
active: r2,
|
|
34950
34888
|
activatorEvent: c2,
|
|
34951
34889
|
collisions: l2,
|
|
34952
34890
|
delta: {
|
|
34953
|
-
x:
|
|
34954
|
-
y:
|
|
34891
|
+
x: mW.x,
|
|
34892
|
+
y: mW.y
|
|
34955
34893
|
},
|
|
34956
34894
|
over: u2
|
|
34957
34895
|
};
|
|
@@ -34962,12 +34900,12 @@ ${c}
|
|
|
34962
34900
|
});
|
|
34963
34901
|
});
|
|
34964
34902
|
}, [
|
|
34965
|
-
|
|
34966
|
-
|
|
34903
|
+
mW.x,
|
|
34904
|
+
mW.y
|
|
34967
34905
|
]), (0, import_react.useEffect)(() => {
|
|
34968
|
-
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } =
|
|
34906
|
+
let { active: e2, activatorEvent: r2, collisions: c2, droppableContainers: l2, scrollAdjustedTranslate: u2 } = $U.current;
|
|
34969
34907
|
if (!e2 || R.current == null || !r2 || !u2) return;
|
|
34970
|
-
let { onDragOver: d2 } = G.current, f2 = l2.get(
|
|
34908
|
+
let { onDragOver: d2 } = G.current, f2 = l2.get(_W), p2 = f2 && f2.rect.current ? {
|
|
34971
34909
|
id: f2.id,
|
|
34972
34910
|
rect: f2.rect.current,
|
|
34973
34911
|
data: f2.data,
|
|
@@ -34983,127 +34921,127 @@ ${c}
|
|
|
34983
34921
|
over: p2
|
|
34984
34922
|
};
|
|
34985
34923
|
(0, import_react_dom.unstable_batchedUpdates)(() => {
|
|
34986
|
-
|
|
34924
|
+
yW(p2), d2 == null ? void 0 : d2(m2), v({
|
|
34987
34925
|
type: "onDragOver",
|
|
34988
34926
|
event: m2
|
|
34989
34927
|
});
|
|
34990
34928
|
});
|
|
34991
34929
|
}, [
|
|
34992
|
-
|
|
34930
|
+
_W
|
|
34993
34931
|
]), useIsomorphicLayoutEffect(() => {
|
|
34994
|
-
|
|
34932
|
+
$U.current = {
|
|
34995
34933
|
activatorEvent: H,
|
|
34996
34934
|
active: L,
|
|
34997
|
-
activeNode:
|
|
34998
|
-
collisionRect:
|
|
34999
|
-
collisions:
|
|
35000
|
-
droppableRects:
|
|
34935
|
+
activeNode: qU,
|
|
34936
|
+
collisionRect: hW,
|
|
34937
|
+
collisions: gW,
|
|
34938
|
+
droppableRects: WU,
|
|
35001
34939
|
draggableNodes: E,
|
|
35002
|
-
draggingNode:
|
|
35003
|
-
draggingNodeRect:
|
|
34940
|
+
draggingNode: nW,
|
|
34941
|
+
draggingNodeRect: rW,
|
|
35004
34942
|
droppableContainers: j,
|
|
35005
|
-
over:
|
|
35006
|
-
scrollableAncestors:
|
|
35007
|
-
scrollAdjustedTranslate:
|
|
34943
|
+
over: vW,
|
|
34944
|
+
scrollableAncestors: sW,
|
|
34945
|
+
scrollAdjustedTranslate: mW
|
|
35008
34946
|
}, I.current = {
|
|
35009
|
-
initial:
|
|
35010
|
-
translated:
|
|
34947
|
+
initial: rW,
|
|
34948
|
+
translated: hW
|
|
35011
34949
|
};
|
|
35012
34950
|
}, [
|
|
35013
34951
|
L,
|
|
35014
|
-
|
|
35015
|
-
|
|
35016
|
-
|
|
34952
|
+
qU,
|
|
34953
|
+
gW,
|
|
34954
|
+
hW,
|
|
35017
34955
|
E,
|
|
35018
|
-
|
|
35019
|
-
|
|
35020
|
-
|
|
34956
|
+
nW,
|
|
34957
|
+
rW,
|
|
34958
|
+
WU,
|
|
35021
34959
|
j,
|
|
35022
|
-
|
|
35023
|
-
|
|
35024
|
-
|
|
34960
|
+
vW,
|
|
34961
|
+
sW,
|
|
34962
|
+
mW
|
|
35025
34963
|
]), useAutoScroller({
|
|
35026
|
-
...
|
|
34964
|
+
...YU,
|
|
35027
34965
|
delta: O,
|
|
35028
|
-
draggingRect:
|
|
35029
|
-
pointerCoordinates:
|
|
35030
|
-
scrollableAncestors:
|
|
35031
|
-
scrollableAncestorRects:
|
|
34966
|
+
draggingRect: hW,
|
|
34967
|
+
pointerCoordinates: uW,
|
|
34968
|
+
scrollableAncestors: sW,
|
|
34969
|
+
scrollableAncestorRects: cW
|
|
35032
34970
|
});
|
|
35033
|
-
let
|
|
34971
|
+
let wW = (0, import_react.useMemo)(() => ({
|
|
35034
34972
|
active: L,
|
|
35035
|
-
activeNode:
|
|
35036
|
-
activeNodeRect:
|
|
34973
|
+
activeNode: qU,
|
|
34974
|
+
activeNodeRect: ZU,
|
|
35037
34975
|
activatorEvent: H,
|
|
35038
|
-
collisions:
|
|
35039
|
-
containerNodeRect:
|
|
35040
|
-
dragOverlay:
|
|
34976
|
+
collisions: gW,
|
|
34977
|
+
containerNodeRect: QU,
|
|
34978
|
+
dragOverlay: tW,
|
|
35041
34979
|
draggableNodes: E,
|
|
35042
34980
|
droppableContainers: j,
|
|
35043
|
-
droppableRects:
|
|
35044
|
-
over:
|
|
35045
|
-
measureDroppableContainers:
|
|
35046
|
-
scrollableAncestors:
|
|
35047
|
-
scrollableAncestorRects:
|
|
34981
|
+
droppableRects: WU,
|
|
34982
|
+
over: vW,
|
|
34983
|
+
measureDroppableContainers: GU,
|
|
34984
|
+
scrollableAncestors: sW,
|
|
34985
|
+
scrollableAncestorRects: cW,
|
|
35048
34986
|
measuringConfiguration: Z,
|
|
35049
|
-
measuringScheduled:
|
|
35050
|
-
windowRect:
|
|
34987
|
+
measuringScheduled: KU,
|
|
34988
|
+
windowRect: oW
|
|
35051
34989
|
}), [
|
|
35052
34990
|
L,
|
|
35053
|
-
|
|
35054
|
-
|
|
34991
|
+
qU,
|
|
34992
|
+
ZU,
|
|
35055
34993
|
H,
|
|
35056
|
-
|
|
35057
|
-
|
|
35058
|
-
|
|
34994
|
+
gW,
|
|
34995
|
+
QU,
|
|
34996
|
+
tW,
|
|
35059
34997
|
E,
|
|
35060
34998
|
j,
|
|
35061
|
-
|
|
35062
|
-
|
|
35063
|
-
|
|
35064
|
-
|
|
35065
|
-
|
|
34999
|
+
WU,
|
|
35000
|
+
vW,
|
|
35001
|
+
GU,
|
|
35002
|
+
sW,
|
|
35003
|
+
cW,
|
|
35066
35004
|
Z,
|
|
35067
|
-
|
|
35068
|
-
|
|
35069
|
-
]),
|
|
35005
|
+
KU,
|
|
35006
|
+
oW
|
|
35007
|
+
]), TW = (0, import_react.useMemo)(() => ({
|
|
35070
35008
|
activatorEvent: H,
|
|
35071
|
-
activators:
|
|
35009
|
+
activators: CW,
|
|
35072
35010
|
active: L,
|
|
35073
|
-
activeNodeRect:
|
|
35011
|
+
activeNodeRect: ZU,
|
|
35074
35012
|
ariaDescribedById: {
|
|
35075
35013
|
draggable: q
|
|
35076
35014
|
},
|
|
35077
35015
|
dispatch: _,
|
|
35078
35016
|
draggableNodes: E,
|
|
35079
|
-
over:
|
|
35080
|
-
measureDroppableContainers:
|
|
35017
|
+
over: vW,
|
|
35018
|
+
measureDroppableContainers: GU
|
|
35081
35019
|
}), [
|
|
35082
35020
|
H,
|
|
35083
|
-
|
|
35021
|
+
CW,
|
|
35084
35022
|
L,
|
|
35085
|
-
|
|
35023
|
+
ZU,
|
|
35086
35024
|
_,
|
|
35087
35025
|
q,
|
|
35088
35026
|
E,
|
|
35089
|
-
|
|
35090
|
-
|
|
35027
|
+
vW,
|
|
35028
|
+
GU
|
|
35091
35029
|
]);
|
|
35092
35030
|
return import_react.createElement(DndMonitorContext.Provider, {
|
|
35093
35031
|
value: y
|
|
35094
35032
|
}, import_react.createElement(InternalContext.Provider, {
|
|
35095
|
-
value:
|
|
35033
|
+
value: TW
|
|
35096
35034
|
}, import_react.createElement(PublicContext.Provider, {
|
|
35097
|
-
value:
|
|
35035
|
+
value: wW
|
|
35098
35036
|
}, import_react.createElement(ActiveDraggableContext.Provider, {
|
|
35099
|
-
value:
|
|
35037
|
+
value: bW
|
|
35100
35038
|
}, u)), import_react.createElement(RestoreFocus, {
|
|
35101
35039
|
disabled: (c == null ? void 0 : c.restoreFocus) === false
|
|
35102
35040
|
})), import_react.createElement(Accessibility, {
|
|
35103
35041
|
...c,
|
|
35104
35042
|
hiddenTextDescribedById: q
|
|
35105
35043
|
}));
|
|
35106
|
-
function
|
|
35044
|
+
function EW() {
|
|
35107
35045
|
let e2 = (z == null ? void 0 : z.autoScrollEnabled) === false, r2 = typeof l == "object" ? l.enabled === false : l === false, c2 = w && !e2 && !r2;
|
|
35108
35046
|
return typeof l == "object" ? {
|
|
35109
35047
|
...l,
|
|
@@ -35631,7 +35569,7 @@ ${c}
|
|
|
35631
35569
|
updateMeasurementsFor: I,
|
|
35632
35570
|
...m
|
|
35633
35571
|
}
|
|
35634
|
-
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef:
|
|
35572
|
+
}), { active: H, activatorEvent: W, activeNodeRect: G, attributes: q, setNodeRef: UU, listeners: Z, isDragging: WU, over: GU, setActivatorNodeRef: KU, transform: qU } = useDraggable({
|
|
35635
35573
|
id: f,
|
|
35636
35574
|
data: M,
|
|
35637
35575
|
attributes: {
|
|
@@ -35639,60 +35577,60 @@ ${c}
|
|
|
35639
35577
|
...c
|
|
35640
35578
|
},
|
|
35641
35579
|
disabled: O.draggable
|
|
35642
|
-
}),
|
|
35580
|
+
}), JU = useCombinedRefs(B, UU), YU = !!H, XU = YU && !b && isValidIndex(v) && isValidIndex(w), ZU = !T && WU, QU = XU ? (ZU && XU ? qU : null) ?? (p ?? E)({
|
|
35643
35581
|
rects: S,
|
|
35644
35582
|
activeNodeRect: G,
|
|
35645
35583
|
activeIndex: v,
|
|
35646
35584
|
overIndex: w,
|
|
35647
35585
|
index: j
|
|
35648
|
-
}) : null,
|
|
35586
|
+
}) : null, $U = isValidIndex(v) && isValidIndex(w) ? d({
|
|
35649
35587
|
id: f,
|
|
35650
35588
|
items: g,
|
|
35651
35589
|
activeIndex: v,
|
|
35652
35590
|
overIndex: w
|
|
35653
|
-
}) : j,
|
|
35654
|
-
activeId:
|
|
35591
|
+
}) : j, eW = H == null ? void 0 : H.id, tW = (0, import_react.useRef)({
|
|
35592
|
+
activeId: eW,
|
|
35655
35593
|
items: g,
|
|
35656
|
-
newIndex:
|
|
35594
|
+
newIndex: $U,
|
|
35657
35595
|
containerId: _
|
|
35658
|
-
}),
|
|
35596
|
+
}), nW = g !== tW.current.items, rW = r({
|
|
35659
35597
|
active: H,
|
|
35660
35598
|
containerId: _,
|
|
35661
|
-
isDragging:
|
|
35662
|
-
isSorting:
|
|
35599
|
+
isDragging: WU,
|
|
35600
|
+
isSorting: YU,
|
|
35663
35601
|
id: f,
|
|
35664
35602
|
index: j,
|
|
35665
35603
|
items: g,
|
|
35666
|
-
newIndex:
|
|
35667
|
-
previousItems:
|
|
35668
|
-
previousContainerId:
|
|
35604
|
+
newIndex: tW.current.newIndex,
|
|
35605
|
+
previousItems: tW.current.items,
|
|
35606
|
+
previousContainerId: tW.current.containerId,
|
|
35669
35607
|
transition: h,
|
|
35670
|
-
wasDragging:
|
|
35671
|
-
}),
|
|
35672
|
-
disabled: !
|
|
35608
|
+
wasDragging: tW.current.activeId != null
|
|
35609
|
+
}), iW = useDerivedTransform({
|
|
35610
|
+
disabled: !rW,
|
|
35673
35611
|
index: j,
|
|
35674
35612
|
node: R,
|
|
35675
35613
|
rect: L
|
|
35676
35614
|
});
|
|
35677
35615
|
return (0, import_react.useEffect)(() => {
|
|
35678
|
-
|
|
35616
|
+
YU && tW.current.newIndex !== $U && (tW.current.newIndex = $U), _ !== tW.current.containerId && (tW.current.containerId = _), g !== tW.current.items && (tW.current.items = g);
|
|
35679
35617
|
}, [
|
|
35680
|
-
|
|
35681
|
-
|
|
35618
|
+
YU,
|
|
35619
|
+
$U,
|
|
35682
35620
|
_,
|
|
35683
35621
|
g
|
|
35684
35622
|
]), (0, import_react.useEffect)(() => {
|
|
35685
|
-
if (
|
|
35686
|
-
if (
|
|
35687
|
-
|
|
35623
|
+
if (eW === tW.current.activeId) return;
|
|
35624
|
+
if (eW != null && tW.current.activeId == null) {
|
|
35625
|
+
tW.current.activeId = eW;
|
|
35688
35626
|
return;
|
|
35689
35627
|
}
|
|
35690
35628
|
let e2 = setTimeout(() => {
|
|
35691
|
-
|
|
35629
|
+
tW.current.activeId = eW;
|
|
35692
35630
|
}, 50);
|
|
35693
35631
|
return () => clearTimeout(e2);
|
|
35694
35632
|
}, [
|
|
35695
|
-
|
|
35633
|
+
eW
|
|
35696
35634
|
]), {
|
|
35697
35635
|
active: H,
|
|
35698
35636
|
activeIndex: v,
|
|
@@ -35700,25 +35638,25 @@ ${c}
|
|
|
35700
35638
|
data: M,
|
|
35701
35639
|
rect: L,
|
|
35702
35640
|
index: j,
|
|
35703
|
-
newIndex:
|
|
35641
|
+
newIndex: $U,
|
|
35704
35642
|
items: g,
|
|
35705
35643
|
isOver: z,
|
|
35706
|
-
isSorting:
|
|
35707
|
-
isDragging:
|
|
35644
|
+
isSorting: YU,
|
|
35645
|
+
isDragging: WU,
|
|
35708
35646
|
listeners: Z,
|
|
35709
35647
|
node: R,
|
|
35710
35648
|
overIndex: w,
|
|
35711
|
-
over:
|
|
35712
|
-
setNodeRef:
|
|
35713
|
-
setActivatorNodeRef:
|
|
35649
|
+
over: GU,
|
|
35650
|
+
setNodeRef: JU,
|
|
35651
|
+
setActivatorNodeRef: KU,
|
|
35714
35652
|
setDroppableNodeRef: B,
|
|
35715
|
-
setDraggableNodeRef:
|
|
35716
|
-
transform:
|
|
35717
|
-
transition:
|
|
35653
|
+
setDraggableNodeRef: UU,
|
|
35654
|
+
transform: iW ?? QU,
|
|
35655
|
+
transition: aW()
|
|
35718
35656
|
};
|
|
35719
|
-
function
|
|
35720
|
-
if (
|
|
35721
|
-
if (!(
|
|
35657
|
+
function aW() {
|
|
35658
|
+
if (iW || nW && tW.current.newIndex === j) return disabledTransition;
|
|
35659
|
+
if (!(ZU && !isKeyboardEvent(W) || !h) && (YU || rW)) return CSS$1.Transition.toString({
|
|
35722
35660
|
...h,
|
|
35723
35661
|
property: transitionProperty
|
|
35724
35662
|
});
|
|
@@ -36018,15 +35956,15 @@ ${c}
|
|
|
36018
35956
|
G
|
|
36019
35957
|
]
|
|
36020
35958
|
}), r[35] = c.id, r[36] = h, r[37] = y, r[38] = b, r[39] = I, r[40] = z, r[41] = B, r[42] = H, r[43] = W, r[44] = G, r[45] = q) : q = r[45];
|
|
36021
|
-
let
|
|
36022
|
-
if (!v && !g) return
|
|
35959
|
+
let UU = q;
|
|
35960
|
+
if (!v && !g) return UU;
|
|
36023
35961
|
let Z;
|
|
36024
|
-
r[46] ===
|
|
35962
|
+
r[46] === UU ? Z = r[47] : (Z = (0, import_jsx_runtime.jsx)(ContextMenuTrigger, {
|
|
36025
35963
|
asChild: true,
|
|
36026
|
-
children:
|
|
36027
|
-
}), r[46] =
|
|
36028
|
-
let
|
|
36029
|
-
r[48] === v ?
|
|
35964
|
+
children: UU
|
|
35965
|
+
}), r[46] = UU, r[47] = Z);
|
|
35966
|
+
let WU;
|
|
35967
|
+
r[48] === v ? WU = r[49] : (WU = v && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36030
35968
|
onSelect: v,
|
|
36031
35969
|
children: [
|
|
36032
35970
|
(0, import_jsx_runtime.jsx)(Plus, {
|
|
@@ -36034,11 +35972,11 @@ ${c}
|
|
|
36034
35972
|
}),
|
|
36035
35973
|
"Add cell"
|
|
36036
35974
|
]
|
|
36037
|
-
}), r[48] = v, r[49] =
|
|
35975
|
+
}), r[48] = v, r[49] = WU);
|
|
35976
|
+
let GU;
|
|
35977
|
+
r[50] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (GU = (0, import_jsx_runtime.jsx)(ContextMenuSeparator, {}), r[50] = GU) : GU = r[50];
|
|
36038
35978
|
let qU;
|
|
36039
|
-
r[
|
|
36040
|
-
let YU;
|
|
36041
|
-
r[51] === g ? YU = r[52] : (YU = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
35979
|
+
r[51] === g ? qU = r[52] : (qU = g && (0, import_jsx_runtime.jsxs)(ContextMenuItem, {
|
|
36042
35980
|
variant: "danger",
|
|
36043
35981
|
onSelect: g,
|
|
36044
35982
|
children: [
|
|
@@ -36047,22 +35985,22 @@ ${c}
|
|
|
36047
35985
|
}),
|
|
36048
35986
|
"Delete cell"
|
|
36049
35987
|
]
|
|
36050
|
-
}), r[51] = g, r[52] =
|
|
36051
|
-
let
|
|
36052
|
-
r[53] !==
|
|
35988
|
+
}), r[51] = g, r[52] = qU);
|
|
35989
|
+
let JU;
|
|
35990
|
+
r[53] !== WU || r[54] !== qU ? (JU = (0, import_jsx_runtime.jsxs)(ContextMenuContent, {
|
|
36053
35991
|
children: [
|
|
36054
|
-
|
|
36055
|
-
|
|
36056
|
-
|
|
35992
|
+
WU,
|
|
35993
|
+
GU,
|
|
35994
|
+
qU
|
|
36057
35995
|
]
|
|
36058
|
-
}), r[53] =
|
|
36059
|
-
let
|
|
36060
|
-
return r[56] !== Z || r[57] !==
|
|
35996
|
+
}), r[53] = WU, r[54] = qU, r[55] = JU) : JU = r[55];
|
|
35997
|
+
let YU;
|
|
35998
|
+
return r[56] !== Z || r[57] !== JU ? (YU = (0, import_jsx_runtime.jsxs)(ContextMenu, {
|
|
36061
35999
|
children: [
|
|
36062
36000
|
Z,
|
|
36063
|
-
|
|
36001
|
+
JU
|
|
36064
36002
|
]
|
|
36065
|
-
}), r[56] = Z, r[57] =
|
|
36003
|
+
}), r[56] = Z, r[57] = JU, r[58] = YU) : YU = r[58], YU;
|
|
36066
36004
|
}, InsertCellLine = (e) => {
|
|
36067
36005
|
let r = (0, import_compiler_runtime$10.c)(10), { position: c, onInsert: l } = e, u = c === "below" ? "bottom-0 translate-y-1/2" : "top-0 -translate-y-1/2", d;
|
|
36068
36006
|
r[0] === u ? d = r[1] : (d = cn("absolute left-0 right-0 z-30 flex h-3 items-center justify-center", "opacity-0 transition-opacity hover:opacity-80 focus-visible:opacity-100 focus:outline-none", u), r[0] = u, r[1] = d);
|
|
@@ -36116,10 +36054,10 @@ ${c}
|
|
|
36116
36054
|
...B,
|
|
36117
36055
|
...h
|
|
36118
36056
|
}, r[20] = M, r[21] = h, r[22] = B, r[23] = j, r[24] = H) : H = r[24];
|
|
36119
|
-
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50",
|
|
36120
|
-
r[25] !== l || r[26] !==
|
|
36121
|
-
let
|
|
36122
|
-
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (
|
|
36057
|
+
let W = H, G = E || T, q = S || w || T ? "border-blue-500" : "border-border hover:border-blue-500/50", UU = w && !T && "opacity-35", Z = T && "opacity-95 shadow-lg", WU;
|
|
36058
|
+
r[25] !== l || r[26] !== UU || r[27] !== Z || r[28] !== q ? (WU = cn("border-2 shrink-0 rounded-md relative select-none bg-background cursor-pointer active:cursor-grabbing overflow-hidden transition-colors", q, UU, Z, l), r[25] = l, r[26] = UU, r[27] = Z, r[28] = q, r[29] = WU) : WU = r[29];
|
|
36059
|
+
let GU;
|
|
36060
|
+
r[30] !== c || r[31] !== M || r[32] !== O || r[33] !== I || r[34] !== G || r[35] !== j ? (GU = G && (0, import_jsx_runtime.jsx)("div", {
|
|
36123
36061
|
className: "flex p-6 box-border pointer-events-none mo-slide-content overflow-hidden",
|
|
36124
36062
|
style: {
|
|
36125
36063
|
transform: `scale(${I})`,
|
|
@@ -36134,14 +36072,14 @@ ${c}
|
|
|
36134
36072
|
status: c.status,
|
|
36135
36073
|
output: c.output
|
|
36136
36074
|
})
|
|
36137
|
-
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] =
|
|
36138
|
-
let
|
|
36139
|
-
r[37] === z ?
|
|
36075
|
+
}), r[30] = c, r[31] = M, r[32] = O, r[33] = I, r[34] = G, r[35] = j, r[36] = GU) : GU = r[36];
|
|
36076
|
+
let KU;
|
|
36077
|
+
r[37] === z ? KU = r[38] : (KU = z && (0, import_jsx_runtime.jsx)("div", {
|
|
36140
36078
|
className: "absolute inset-0 bg-muted/50 pointer-events-none",
|
|
36141
36079
|
"aria-hidden": true
|
|
36142
|
-
}), r[37] = z, r[38] =
|
|
36143
|
-
let
|
|
36144
|
-
r[39] !== z || r[40] !== R ? (
|
|
36080
|
+
}), r[37] = z, r[38] = KU);
|
|
36081
|
+
let qU;
|
|
36082
|
+
r[39] !== z || r[40] !== R ? (qU = (R == null ? void 0 : R.Icon) && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36145
36083
|
content: (0, import_jsx_runtime.jsx)("span", {
|
|
36146
36084
|
className: "text-xs opacity-80",
|
|
36147
36085
|
children: R.description
|
|
@@ -36153,19 +36091,19 @@ ${c}
|
|
|
36153
36091
|
className: "h-3.5 w-3.5"
|
|
36154
36092
|
})
|
|
36155
36093
|
})
|
|
36156
|
-
}), r[39] = z, r[40] = R, r[41] =
|
|
36157
|
-
let
|
|
36158
|
-
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !==
|
|
36094
|
+
}), r[39] = z, r[40] = R, r[41] = qU) : qU = r[41];
|
|
36095
|
+
let JU;
|
|
36096
|
+
return r[42] !== W || r[43] !== d || r[44] !== f || r[45] !== WU || r[46] !== GU || r[47] !== KU || r[48] !== qU ? (JU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36159
36097
|
ref: f,
|
|
36160
|
-
className:
|
|
36098
|
+
className: WU,
|
|
36161
36099
|
style: W,
|
|
36162
36100
|
...d,
|
|
36163
36101
|
children: [
|
|
36164
|
-
|
|
36165
|
-
|
|
36166
|
-
|
|
36102
|
+
GU,
|
|
36103
|
+
KU,
|
|
36104
|
+
qU
|
|
36167
36105
|
]
|
|
36168
|
-
}), r[42] = W, r[43] = d, r[44] = f, r[45] =
|
|
36106
|
+
}), r[42] = W, r[43] = d, r[44] = f, r[45] = WU, r[46] = GU, r[47] = KU, r[48] = qU, r[49] = JU) : JU = r[49], JU;
|
|
36169
36107
|
}, MiniCodePreview = (e) => {
|
|
36170
36108
|
let r = (0, import_compiler_runtime$10.c)(2), { code: c } = e, l;
|
|
36171
36109
|
return r[0] === c ? l = r[1] : (l = (0, import_jsx_runtime.jsx)("pre", {
|
|
@@ -36205,7 +36143,7 @@ ${c}
|
|
|
36205
36143
|
function _temp2$2(e) {
|
|
36206
36144
|
e.target === e.currentTarget && e.key === "Enter" && (e.preventDefault(), e.stopPropagation(), e.currentTarget.click());
|
|
36207
36145
|
}
|
|
36208
|
-
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-
|
|
36146
|
+
var LazySlidesComponent = import_react.lazy(() => import("./reveal-component-BjnkUAZ9.js"));
|
|
36209
36147
|
const SlidesLayoutRenderer = ({ layout: e, setLayout: r, cells: c, mode: l }) => {
|
|
36210
36148
|
var _a3;
|
|
36211
36149
|
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), [
|
|
@@ -36583,7 +36521,7 @@ ${c}
|
|
|
36583
36521
|
let r2 = e2.scrollHeight - e2.clientHeight;
|
|
36584
36522
|
r2 - e2.scrollTop < 120 && (e2.scrollTop = r2);
|
|
36585
36523
|
}, r[2] = B) : B = r[2], (0, import_react.useLayoutEffect)(B), !L && isInternalCellName(S)) return null;
|
|
36586
|
-
let H, W, G, q,
|
|
36524
|
+
let H, W, G, q, UU, Z, WU, GU, KU, qU;
|
|
36587
36525
|
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) {
|
|
36588
36526
|
let e2 = I.toReversed(), g2 = e2.some(_temp$2), v2 = e2.findIndex(_temp2$1), S2;
|
|
36589
36527
|
r[30] === I ? S2 = r[31] : (S2 = () => I.filter(_temp3$1).map(_temp4$1).join("\n"), r[30] = I, r[31] = S2);
|
|
@@ -36629,11 +36567,11 @@ ${c}
|
|
|
36629
36567
|
})
|
|
36630
36568
|
})
|
|
36631
36569
|
]
|
|
36632
|
-
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area",
|
|
36633
|
-
let
|
|
36634
|
-
r[40] !== M || r[41] !==
|
|
36570
|
+
}), r[32] = B2, r[33] = L, r[34] = d, r[35] = z, r[36] = f, r[37] = u, r[38] = l, r[39] = W) : W = r[39], G = y ? "This console output is stale" : void 0, q = "console-output-area", UU = c, Z = R, WU = 0;
|
|
36571
|
+
let JU2 = y && "marimo-output-stale", YU2 = L ? "p-5" : "p-3";
|
|
36572
|
+
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 ? {
|
|
36635
36573
|
maxHeight: "none"
|
|
36636
|
-
} : void 0, r[44] = d, r[45] =
|
|
36574
|
+
} : void 0, r[44] = d, r[45] = KU), qU = e2.map((e3, r2) => {
|
|
36637
36575
|
if (e3.channel === "pdb") return null;
|
|
36638
36576
|
if (e3.channel === "stdin") {
|
|
36639
36577
|
invariant(typeof e3.data == "string", "Expected data to be a string");
|
|
@@ -36662,36 +36600,36 @@ ${c}
|
|
|
36662
36600
|
wrapText: l
|
|
36663
36601
|
})
|
|
36664
36602
|
}, r2);
|
|
36665
|
-
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] =
|
|
36666
|
-
} else H = r[20], W = r[21], G = r[22], q = r[23],
|
|
36667
|
-
let
|
|
36668
|
-
r[46] !== T || r[47] !== S ? (
|
|
36603
|
+
}), r[3] = T, r[4] = M, r[5] = I, r[6] = L, r[7] = _, r[8] = b, r[9] = d, r[10] = z, r[11] = O, r[12] = j, r[13] = E, r[14] = R, r[15] = f, r[16] = u, r[17] = y, r[18] = m, r[19] = l, r[20] = H, r[21] = W, r[22] = G, r[23] = q, r[24] = UU, r[25] = Z, r[26] = WU, r[27] = GU, r[28] = KU, r[29] = qU;
|
|
36604
|
+
} else H = r[20], W = r[21], G = r[22], q = r[23], UU = r[24], Z = r[25], WU = r[26], GU = r[27], KU = r[28], qU = r[29];
|
|
36605
|
+
let JU;
|
|
36606
|
+
r[46] !== T || r[47] !== S ? (JU = (0, import_jsx_runtime.jsx)(NameCellContentEditable, {
|
|
36669
36607
|
value: S,
|
|
36670
36608
|
cellId: T,
|
|
36671
36609
|
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"
|
|
36672
|
-
}), r[46] = T, r[47] = S, r[48] =
|
|
36673
|
-
let
|
|
36674
|
-
r[49] !==
|
|
36610
|
+
}), r[46] = T, r[47] = S, r[48] = JU) : JU = r[48];
|
|
36611
|
+
let YU;
|
|
36612
|
+
r[49] !== JU || r[50] !== G || r[51] !== q || r[52] !== UU || r[53] !== Z || r[54] !== WU || r[55] !== GU || r[56] !== KU || r[57] !== qU ? (YU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36675
36613
|
title: G,
|
|
36676
36614
|
"data-testid": q,
|
|
36677
|
-
ref:
|
|
36615
|
+
ref: UU,
|
|
36678
36616
|
...Z,
|
|
36679
|
-
tabIndex:
|
|
36680
|
-
className:
|
|
36681
|
-
style:
|
|
36617
|
+
tabIndex: WU,
|
|
36618
|
+
className: GU,
|
|
36619
|
+
style: KU,
|
|
36682
36620
|
children: [
|
|
36683
|
-
|
|
36684
|
-
|
|
36621
|
+
qU,
|
|
36622
|
+
JU
|
|
36685
36623
|
]
|
|
36686
|
-
}), r[49] =
|
|
36687
|
-
let
|
|
36688
|
-
return r[59] !== H || r[60] !== W || r[61] !==
|
|
36624
|
+
}), r[49] = JU, r[50] = G, r[51] = q, r[52] = UU, r[53] = Z, r[54] = WU, r[55] = GU, r[56] = KU, r[57] = qU, r[58] = YU) : YU = r[58];
|
|
36625
|
+
let XU;
|
|
36626
|
+
return r[59] !== H || r[60] !== W || r[61] !== YU ? (XU = (0, import_jsx_runtime.jsxs)("div", {
|
|
36689
36627
|
className: H,
|
|
36690
36628
|
children: [
|
|
36691
36629
|
W,
|
|
36692
|
-
|
|
36630
|
+
YU
|
|
36693
36631
|
]
|
|
36694
|
-
}), r[59] = H, r[60] = W, r[61] =
|
|
36632
|
+
}), r[59] = H, r[60] = W, r[61] = YU, r[62] = XU) : XU = r[62], XU;
|
|
36695
36633
|
}, StdInput = (e) => {
|
|
36696
36634
|
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;
|
|
36697
36635
|
r[0] === d ? y = r[1] : (y = renderText(d), r[0] = d, r[1] = y);
|
|
@@ -37155,23 +37093,23 @@ ${c}
|
|
|
37155
37093
|
if ((h || _ || m || W) && !G) return null;
|
|
37156
37094
|
let q;
|
|
37157
37095
|
r[43] !== d || r[44] !== T ? (q = cellDomProps(d, T), r[43] = d, r[44] = T, r[45] = q) : q = r[45];
|
|
37158
|
-
let
|
|
37159
|
-
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !==
|
|
37160
|
-
allowExpand:
|
|
37096
|
+
let UU = w === "edit", Z;
|
|
37097
|
+
r[46] !== d || r[47] !== R || r[48] !== c || r[49] !== I || r[50] !== UU ? (Z = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
37098
|
+
allowExpand: UU,
|
|
37161
37099
|
output: c,
|
|
37162
37100
|
className: CSSClasses.outputArea,
|
|
37163
37101
|
cellId: d,
|
|
37164
37102
|
stale: I,
|
|
37165
37103
|
loading: R
|
|
37166
|
-
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] =
|
|
37167
|
-
let
|
|
37168
|
-
return r[52] !== H || r[53] !== q || r[54] !== Z ? (
|
|
37104
|
+
}), r[46] = d, r[47] = R, r[48] = c, r[49] = I, r[50] = UU, r[51] = Z) : Z = r[51];
|
|
37105
|
+
let WU;
|
|
37106
|
+
return r[52] !== H || r[53] !== q || r[54] !== Z ? (WU = (0, import_jsx_runtime.jsx)("div", {
|
|
37169
37107
|
tabIndex: -1,
|
|
37170
37108
|
ref: j,
|
|
37171
37109
|
className: H,
|
|
37172
37110
|
...q,
|
|
37173
37111
|
children: Z
|
|
37174
|
-
}), r[52] = H, r[53] = q, r[54] = Z, r[55] =
|
|
37112
|
+
}), r[52] = H, r[53] = q, r[54] = Z, r[55] = WU) : WU = r[55], WU;
|
|
37175
37113
|
});
|
|
37176
37114
|
VerticalCell.displayName = "VerticalCell";
|
|
37177
37115
|
const VerticalLayoutPlugin = {
|