@marimo-team/islands 0.23.2-dev48 → 0.23.2-dev50
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/{chat-ui-D2Zk7EU6.js → chat-ui-d0C1glXQ.js} +2780 -2780
- package/dist/main.js +535 -479
- package/dist/{process-output-DIDd7H4Z.js → process-output-DQxp17Bc.js} +2186 -2181
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/components/data-table/export-actions.tsx +62 -23
- package/src/components/data-table/schemas.ts +8 -1
- package/src/components/datasources/__tests__/missing-package-prompt.test.tsx +103 -0
- package/src/components/datasources/missing-package-prompt.tsx +49 -0
- package/src/core/mode.ts +10 -1
package/dist/main.js
CHANGED
|
@@ -22,7 +22,7 @@ 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-Bp6CK_Fg.js";
|
|
25
|
-
import { $t as
|
|
25
|
+
import { $t as requestClientAtom, A as MarimoIncomingMessageEvent, An as Trigger2, At as MarkdownLanguageAdapter, B as DotFilledIcon, Bn as FileText, Bt as adaptForLocalStorage, Cn as atomWithStorage, Ct as getCellDomProps, D as AccordionContent, Dn as Content2$1, Dt as normalizeName, E as Accordion, En as Close$1, Et as isInternalCellName, F as BorderAllIcon, Fn as NotebookPen, Ft as goToCellLine, G as base64ToDataView, Gn as CircleAlert, Gt as DATA_TYPE_ICON, H as PinRightIcon, Hn as Database, In as LoaderCircle, It as DeferredRequestRegistry, J as extractBase64FromDataURL, Jn as import_lib, K as base64ToUint8Array, Kn as Braces, Kt as getDataTypeColor, L as CheckIcon, Ln as Layers, Lt as generateUUID, M as MarimoValueReadyEvent, Mn as Trash2, Mt as PathBuilder, N as MarimoValueUpdateEvent, Nn as Table2, Nt as Paths, O as AccordionItem, On as Item$1, Ot as Checkbox, P as createInputEvent, Pn as PaintRoller, Q as hasRunAnyCellAtom, Qt as getRequestClient, R as ChevronDownIcon, Rn as Info, Rt as useChromeActions, Sn as atomWithReducer, St as DATA_CELL_ID, Tt as getValidName, U as deserializeBlob, Un as Columns2, Ut as PluralWord, V as PinLeftIcon, Vn as Eye, Vt as jotaiJsonStorage, Wn as CircleX, Wt as PluralWords, X as safeExtractSetUIElementMessageBuffers, Y as isDataURLString, Z as renderHTML, Zt as convertStatsName, _ as useExpandedConsoleOutput, _n as OBJECT_ID_ATTR, _t as outputIsLoading, a as toPng, an as getTracebackInfo, at as numColumnsAtom, b as getDatasourceContext, bn as jsonToMarkdown, bt as headingToIdentifier, c as useCellFocusActions, cn as filenameAtom, ct as useCellIds, d as Spinner, dn as parseInitialValue, dt as AnsiUp, en as useRequestClient, et as createActions, f as Popover$1, fn as CellOutputId, ft as getInitialAppMode, g as isOutputEmpty, gn as findCellId, gt as viewStateAtom, h as PopoverTrigger, hn as UIElementId, ht as useInstallAllowed, i as PythonIcon, in as extractAllTracebackInfo, it as notebookOutline, j as MarimoValueInputEvent, jn as Wrench, k as AccordionTrigger, kn as Root2$4, kt as customPythonLanguageSupport, l as useLastFocusedCellId, ln as parseAttrValue, lt as useCellNames, m as PopoverContent, mn as SCRATCH_CELL_ID, mt as kioskModeAtom, n as blobToString, nt as getCellNames, o as MarkdownRenderer, on as NotebookScopedLocalStorage, ot as reducer, p as PopoverClose$1, pn as HTMLCellId, pt as initialModeAtom, q as dataViewToBase64, qn as esm_default$1, qt as require_client, r as filesToBase64, rn as elementContainsMarimoCellFile, rt as notebookAtom, s as LazyAnyLanguageCodeMirror, st as useCellActions, t as processOutput, tn as isUninstantiated, tt as getCellEditorView, u as maybeAddAltairImport, un as parseDataset, ut as createCell, v as useExpandedOutput, vn as RANDOM_ID_ATTR, vt as outputIsStale, wn as selectAtom, wt as displayCellName, xn as jsonToTSV, xt as sanitizeHtml, yn as jsonParseWithSpecialChar, yt as isErrorMime, z as ChevronRightIcon, zn as File, zt as repl, __tla as __tla_0 } from "./process-output-DQxp17Bc.js";
|
|
26
26
|
import { __tla as __tla_1 } from "./chunk-5FQGJX7Z-DDhYtPiB.js";
|
|
27
27
|
import { o as useSize, s as Root$4, u as createLucideIcon } from "./dist-CTtLBPLZ.js";
|
|
28
28
|
import { A as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as ListFilter, I as ChartPie, L as ChartColumn, M as $5a387cc49350e6db$export$722debc0e56fea39, N as Table$1, O as TIME_UNIT_DESCRIPTIONS, P as SquareFunction, 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 $fb18d541ea1ad717$export$ad991b66133851cf, 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-Budha9Vn.js";
|
|
@@ -10510,7 +10510,7 @@ Defaulting to \`null\`.`;
|
|
|
10510
10510
|
function set$1(e, r, c) {
|
|
10511
10511
|
return e == null ? e : _baseSet_default(e, r, c);
|
|
10512
10512
|
}
|
|
10513
|
-
var set_default = set$1, import_compiler_runtime$
|
|
10513
|
+
var set_default = set$1, import_compiler_runtime$144 = require_compiler_runtime(), hydratedMap = /* @__PURE__ */ new WeakMap();
|
|
10514
10514
|
function useHydrateAtoms(e, r) {
|
|
10515
10515
|
let c = useStore(r), d = getHydratedSet(c);
|
|
10516
10516
|
for (let [f, ...h] of e) (!d.has(f) || (r == null ? void 0 : r.dangerouslyForceHydrate)) && (d.add(f), c.set(f, ...h));
|
|
@@ -13806,7 +13806,7 @@ Defaulting to \`null\`.`;
|
|
|
13806
13806
|
}
|
|
13807
13807
|
repl(MODEL_MANAGER, "MODEL_MANAGER");
|
|
13808
13808
|
var NavigationMenu = import_react.forwardRef((e, r) => {
|
|
13809
|
-
let c = (0, import_compiler_runtime$
|
|
13809
|
+
let c = (0, import_compiler_runtime$144.c)(16), d, f, h, _;
|
|
13810
13810
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: f, children: d, orientation: h, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
13811
13811
|
let y = h === "horizontal" && "max-w-max flex-1 items-center justify-center", S = h === "vertical" && "", w;
|
|
13812
13812
|
c[5] !== f || c[6] !== y || c[7] !== S ? (w = cn(y, S, "relative z-10", f), c[5] = f, c[6] = y, c[7] = S, c[8] = w) : w = c[8];
|
|
@@ -13836,7 +13836,7 @@ Defaulting to \`null\`.`;
|
|
|
13836
13836
|
orientation: "horizontal"
|
|
13837
13837
|
}
|
|
13838
13838
|
}), NavigationMenuList = import_react.forwardRef((e, r) => {
|
|
13839
|
-
let c = (0, import_compiler_runtime$
|
|
13839
|
+
let c = (0, import_compiler_runtime$144.c)(11), d, f, h;
|
|
13840
13840
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: d, orientation: f, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
13841
13841
|
let _;
|
|
13842
13842
|
c[4] !== d || c[5] !== f ? (_ = cn(navigationMenuListStyle({
|
|
@@ -13861,7 +13861,7 @@ Defaulting to \`null\`.`;
|
|
|
13861
13861
|
orientation: "horizontal"
|
|
13862
13862
|
}
|
|
13863
13863
|
}), NavigationMenuTrigger = import_react.forwardRef((e, r) => {
|
|
13864
|
-
let c = (0, import_compiler_runtime$
|
|
13864
|
+
let c = (0, import_compiler_runtime$144.c)(12), d, f, h;
|
|
13865
13865
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: f, children: d, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
13866
13866
|
let _;
|
|
13867
13867
|
c[4] === f ? _ = c[5] : (_ = cn(navigationMenuTriggerStyle(), "group", f), c[4] = f, c[5] = _);
|
|
@@ -13884,7 +13884,7 @@ Defaulting to \`null\`.`;
|
|
|
13884
13884
|
});
|
|
13885
13885
|
NavigationMenuTrigger.displayName = Trigger$1.displayName;
|
|
13886
13886
|
var NavigationMenuContent = import_react.forwardRef((e, r) => {
|
|
13887
|
-
let c = (0, import_compiler_runtime$
|
|
13887
|
+
let c = (0, import_compiler_runtime$144.c)(9), d, f;
|
|
13888
13888
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
13889
13889
|
let h;
|
|
13890
13890
|
c[3] === d ? h = c[4] : (h = 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 ", d), c[3] = d, c[4] = h);
|
|
@@ -13897,7 +13897,7 @@ Defaulting to \`null\`.`;
|
|
|
13897
13897
|
});
|
|
13898
13898
|
NavigationMenuContent.displayName = Content$1.displayName;
|
|
13899
13899
|
var NavigationMenuLink = Link, NavigationMenuViewport = import_react.forwardRef((e, r) => {
|
|
13900
|
-
let c = (0, import_compiler_runtime$
|
|
13900
|
+
let c = (0, import_compiler_runtime$144.c)(10), d, f;
|
|
13901
13901
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
13902
13902
|
let h;
|
|
13903
13903
|
c[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = cn("absolute left-0 top-full flex justify-center"), c[3] = h) : h = c[3];
|
|
@@ -13915,7 +13915,7 @@ Defaulting to \`null\`.`;
|
|
|
13915
13915
|
});
|
|
13916
13916
|
NavigationMenuViewport.displayName = Viewport.displayName;
|
|
13917
13917
|
var NavigationMenuIndicator = import_react.forwardRef((e, r) => {
|
|
13918
|
-
let c = (0, import_compiler_runtime$
|
|
13918
|
+
let c = (0, import_compiler_runtime$144.c)(10), d, f;
|
|
13919
13919
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
13920
13920
|
let h;
|
|
13921
13921
|
c[3] === d ? h = c[4] : (h = 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", d), c[3] = d, c[4] = h);
|
|
@@ -13932,7 +13932,7 @@ Defaulting to \`null\`.`;
|
|
|
13932
13932
|
}), c[6] = f, c[7] = r, c[8] = h, c[9] = y) : y = c[9], y;
|
|
13933
13933
|
});
|
|
13934
13934
|
NavigationMenuIndicator.displayName = Indicator$2.displayName;
|
|
13935
|
-
var import_compiler_runtime$
|
|
13935
|
+
var import_compiler_runtime$143 = require_compiler_runtime(), NavigationMenuPlugin = class {
|
|
13936
13936
|
constructor() {
|
|
13937
13937
|
__publicField(this, "tagName", "marimo-nav-menu");
|
|
13938
13938
|
__publicField(this, "menuItemValidator", object({
|
|
@@ -13961,7 +13961,7 @@ Defaulting to \`null\`.`;
|
|
|
13961
13961
|
});
|
|
13962
13962
|
}
|
|
13963
13963
|
}, NavMenuComponent = (e) => {
|
|
13964
|
-
let r = (0, import_compiler_runtime$
|
|
13964
|
+
let r = (0, import_compiler_runtime$143.c)(13), { items: c, orientation: d } = e, f = _temp$37, h = _temp2$25, _ = _temp3$17, v;
|
|
13965
13965
|
r[0] === d ? v = r[1] : (v = (e2) => "items" in e2 ? d === "horizontal" ? (0, import_jsx_runtime.jsx)(NavigationMenu, {
|
|
13966
13966
|
orientation: "horizontal",
|
|
13967
13967
|
children: (0, import_jsx_runtime.jsx)(NavigationMenuList, {
|
|
@@ -14042,7 +14042,7 @@ Defaulting to \`null\`.`;
|
|
|
14042
14042
|
children: w
|
|
14043
14043
|
}), r[10] = d, r[11] = w, r[12] = E) : E = r[12], E;
|
|
14044
14044
|
}, ListItem = import_react.forwardRef((e, r) => {
|
|
14045
|
-
let c = (0, import_compiler_runtime$
|
|
14045
|
+
let c = (0, import_compiler_runtime$143.c)(19), d, f, h, _;
|
|
14046
14046
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: f, label: h, children: d, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
14047
14047
|
let y;
|
|
14048
14048
|
c[5] === f ? y = c[6] : (y = 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", f), c[5] = f, c[6] = y);
|
|
@@ -14077,7 +14077,7 @@ Defaulting to \`null\`.`;
|
|
|
14077
14077
|
}), c[13] = _, c[14] = r, c[15] = y, c[16] = w, c[17] = E, c[18] = O) : O = c[18], O;
|
|
14078
14078
|
});
|
|
14079
14079
|
ListItem.displayName = "ListItem";
|
|
14080
|
-
function _temp$
|
|
14080
|
+
function _temp$37(e, r) {
|
|
14081
14081
|
return r ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
14082
14082
|
delayDuration: 200,
|
|
14083
14083
|
content: renderHTML({
|
|
@@ -16942,9 +16942,9 @@ Defaulting to \`null\`.`;
|
|
|
16942
16942
|
isSelected: _
|
|
16943
16943
|
}
|
|
16944
16944
|
}, M.children));
|
|
16945
|
-
}), import_compiler_runtime$
|
|
16945
|
+
}), import_compiler_runtime$142 = require_compiler_runtime();
|
|
16946
16946
|
const LocaleProvider = (e) => {
|
|
16947
|
-
let r = (0, import_compiler_runtime$
|
|
16947
|
+
let r = (0, import_compiler_runtime$142.c)(5), { children: c } = e, d = useAtomValue(localeAtom), f;
|
|
16948
16948
|
r[0] === d ? f = r[1] : (f = safeLocale(d), r[0] = d, r[1] = f);
|
|
16949
16949
|
let h;
|
|
16950
16950
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)($18f2051aff69b9bf$export$a54013f0d02a8f82, {
|
|
@@ -17923,9 +17923,9 @@ Defaulting to \`null\`.`;
|
|
|
17923
17923
|
r,
|
|
17924
17924
|
d.name
|
|
17925
17925
|
]), null;
|
|
17926
|
-
}), import_compiler_runtime$
|
|
17926
|
+
}), import_compiler_runtime$141 = require_compiler_runtime();
|
|
17927
17927
|
const EmotionCacheProvider = (e) => {
|
|
17928
|
-
let r = (0, import_compiler_runtime$
|
|
17928
|
+
let r = (0, import_compiler_runtime$141.c)(6), { container: c, children: d } = e, f;
|
|
17929
17929
|
bb0: {
|
|
17930
17930
|
if (!c) {
|
|
17931
17931
|
let e3;
|
|
@@ -23093,9 +23093,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
23093
23093
|
})
|
|
23094
23094
|
})
|
|
23095
23095
|
});
|
|
23096
|
-
}, import_compiler_runtime$
|
|
23096
|
+
}, import_compiler_runtime$140 = require_compiler_runtime();
|
|
23097
23097
|
const HtmlOutput = (0, import_react.memo)((e) => {
|
|
23098
|
-
let r = (0, import_compiler_runtime$
|
|
23098
|
+
let r = (0, import_compiler_runtime$140.c)(10), { html: c, inline: d, className: f, alwaysSanitizeHtml: h } = e, _ = d === void 0 ? false : d;
|
|
23099
23099
|
if (!c) return null;
|
|
23100
23100
|
let y = !_, S;
|
|
23101
23101
|
r[0] !== f || r[1] !== _ || r[2] !== y ? (S = cn(f, {
|
|
@@ -23114,9 +23114,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
23114
23114
|
}), r[7] = S, r[8] = w, r[9] = E) : E = r[9], E;
|
|
23115
23115
|
});
|
|
23116
23116
|
HtmlOutput.displayName = "HtmlOutput";
|
|
23117
|
-
var import_compiler_runtime$
|
|
23117
|
+
var import_compiler_runtime$139 = require_compiler_runtime();
|
|
23118
23118
|
const ImageOutput = (e) => {
|
|
23119
|
-
let r = (0, import_compiler_runtime$
|
|
23119
|
+
let r = (0, import_compiler_runtime$139.c)(8), { src: c, alt: d, width: f, height: h, className: _ } = e, v = d === void 0 ? "" : d, y;
|
|
23120
23120
|
r[0] !== v || r[1] !== h || r[2] !== c || r[3] !== f ? (y = (0, import_jsx_runtime.jsx)("img", {
|
|
23121
23121
|
src: c,
|
|
23122
23122
|
alt: v,
|
|
@@ -23129,9 +23129,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
23129
23129
|
children: y
|
|
23130
23130
|
}), r[5] = _, r[6] = y, r[7] = S) : S = r[7], S;
|
|
23131
23131
|
};
|
|
23132
|
-
var import_compiler_runtime$
|
|
23132
|
+
var import_compiler_runtime$138 = require_compiler_runtime();
|
|
23133
23133
|
const Kbd = (e) => {
|
|
23134
|
-
let r = (0, import_compiler_runtime$
|
|
23134
|
+
let r = (0, import_compiler_runtime$138.c)(5), c;
|
|
23135
23135
|
r[0] === e.className ? c = r[1] : (c = clsx_default(e.className, "rounded-md bg-muted/40 px-2 text-[0.75rem] font-prose center border border-foreground/20 text-muted-foreground block whitespace-nowrap"), r[0] = e.className, r[1] = c);
|
|
23136
23136
|
let d;
|
|
23137
23137
|
return r[2] !== e.children || r[3] !== c ? (d = (0, import_jsx_runtime.jsx)("kbd", {
|
|
@@ -23139,9 +23139,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${r}Chann
|
|
|
23139
23139
|
children: e.children
|
|
23140
23140
|
}), r[2] = e.children, r[3] = c, r[4] = d) : d = r[4], d;
|
|
23141
23141
|
};
|
|
23142
|
-
var import_compiler_runtime$
|
|
23142
|
+
var import_compiler_runtime$137 = require_compiler_runtime();
|
|
23143
23143
|
const ExternalLink$1 = (e) => {
|
|
23144
|
-
let r = (0, import_compiler_runtime$
|
|
23144
|
+
let r = (0, import_compiler_runtime$137.c)(3), { href: c, children: d } = e, f;
|
|
23145
23145
|
return r[0] !== d || r[1] !== c ? (f = (0, import_jsx_runtime.jsx)("a", {
|
|
23146
23146
|
href: c,
|
|
23147
23147
|
target: "_blank",
|
|
@@ -23312,17 +23312,17 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23312
23312
|
os: "os",
|
|
23313
23313
|
re: "re",
|
|
23314
23314
|
sys: "sys"
|
|
23315
|
-
}, import_compiler_runtime$
|
|
23315
|
+
}, import_compiler_runtime$136 = require_compiler_runtime(), fixModeAtom = atomWithStorage("marimo:ai-autofix-mode", "autofix", jotaiJsonStorage);
|
|
23316
23316
|
function useFixMode() {
|
|
23317
|
-
let e = (0, import_compiler_runtime$
|
|
23317
|
+
let e = (0, import_compiler_runtime$136.c)(3), [r, c] = useAtom(fixModeAtom), d;
|
|
23318
23318
|
return e[0] !== r || e[1] !== c ? (d = {
|
|
23319
23319
|
fixMode: r,
|
|
23320
23320
|
setFixMode: c
|
|
23321
23321
|
}, e[0] = r, e[1] = c, e[2] = d) : d = e[2], d;
|
|
23322
23322
|
}
|
|
23323
|
-
var import_compiler_runtime$
|
|
23323
|
+
var import_compiler_runtime$135 = require_compiler_runtime();
|
|
23324
23324
|
const AutoFixButton = (e) => {
|
|
23325
|
-
let r = (0, import_compiler_runtime$
|
|
23325
|
+
let r = (0, import_compiler_runtime$135.c)(21), { errors: c, cellId: d, className: f } = e, h = useStore(), { createNewCell: _ } = useCellActions(), y = useAtomValue(aiEnabledAtom), S;
|
|
23326
23326
|
if (r[0] !== y || r[1] !== c) {
|
|
23327
23327
|
let e2;
|
|
23328
23328
|
r[3] === y ? e2 = r[4] : (e2 = (e3) => getAutoFixes(e3, {
|
|
@@ -23383,7 +23383,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23383
23383
|
};
|
|
23384
23384
|
var PromptIcon = Sparkles, AutofixIcon = Wrench, PromptTitle = "Suggest a prompt", AutofixTitle = "Fix with AI";
|
|
23385
23385
|
const AIFixButton = (e) => {
|
|
23386
|
-
let r = (0, import_compiler_runtime$
|
|
23386
|
+
let r = (0, import_compiler_runtime$135.c)(21), { tooltip: c, openPrompt: d, applyAutofix: f } = e, { fixMode: h, setFixMode: _ } = useFixMode(), v = h === "prompt" ? d : f, y;
|
|
23387
23387
|
r[0] === h ? y = r[1] : (y = h === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
23388
23388
|
className: "h-3 w-3 mr-2 mb-0.5"
|
|
23389
23389
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -23452,7 +23452,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23452
23452
|
}), r[18] = G, r[19] = E, r[20] = q) : q = r[20], q;
|
|
23453
23453
|
};
|
|
23454
23454
|
var AiModeItem = (e) => {
|
|
23455
|
-
let r = (0, import_compiler_runtime$
|
|
23455
|
+
let r = (0, import_compiler_runtime$135.c)(12), { mode: c } = e, d;
|
|
23456
23456
|
r[0] === c ? d = r[1] : (d = c === "prompt" ? (0, import_jsx_runtime.jsx)(PromptIcon, {
|
|
23457
23457
|
className: "h-4 w-4"
|
|
23458
23458
|
}) : (0, import_jsx_runtime.jsx)(AutofixIcon, {
|
|
@@ -23489,9 +23489,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23489
23489
|
function useFilename() {
|
|
23490
23490
|
return useAtomValue(filenameAtom);
|
|
23491
23491
|
}
|
|
23492
|
-
var import_compiler_runtime$
|
|
23492
|
+
var import_compiler_runtime$133 = require_compiler_runtime();
|
|
23493
23493
|
const CellLink = (e) => {
|
|
23494
|
-
let r = (0, import_compiler_runtime$
|
|
23494
|
+
let r = (0, import_compiler_runtime$133.c)(12), { className: c, cellId: d, variant: f, onClick: h, formatCellName: _, skipScroll: y } = e, S = useCellNames()[d] ?? "", w = useCellIds().inOrderIds.indexOf(d), { showCellIfHidden: E } = useCellActions(), O = _ ?? _temp$36, M;
|
|
23495
23495
|
r[0] === c ? M = r[1] : (M = cn("inline-block cursor-pointer text-link hover:underline", c), r[0] = c, r[1] = M);
|
|
23496
23496
|
let I;
|
|
23497
23497
|
r[2] !== d || r[3] !== h || r[4] !== E || r[5] !== y || r[6] !== f ? (I = (e2) => {
|
|
@@ -23511,13 +23511,13 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23511
23511
|
children: z
|
|
23512
23512
|
}), r[8] = M, r[9] = I, r[10] = z, r[11] = Y7) : Y7 = r[11], Y7;
|
|
23513
23513
|
}, CellLinkError = (e) => {
|
|
23514
|
-
let r = (0, import_compiler_runtime$
|
|
23514
|
+
let r = (0, import_compiler_runtime$133.c)(2), c;
|
|
23515
23515
|
return r[0] === e ? c = r[1] : (c = (0, import_jsx_runtime.jsx)(CellLink, {
|
|
23516
23516
|
...e,
|
|
23517
23517
|
variant: "destructive"
|
|
23518
23518
|
}), r[0] = e, r[1] = c), c;
|
|
23519
23519
|
}, CellLinkTraceback = (e) => {
|
|
23520
|
-
let r = (0, import_compiler_runtime$
|
|
23520
|
+
let r = (0, import_compiler_runtime$133.c)(10), { cellId: c, lineNumber: d } = e, f = useFilename(), h;
|
|
23521
23521
|
r[0] !== c || r[1] !== d ? (h = () => goToCellLine(c, d), r[0] = c, r[1] = d, r[2] = h) : h = r[2];
|
|
23522
23522
|
let _;
|
|
23523
23523
|
r[3] !== c || r[4] !== f ? (_ = (e2) => c === "__scratch__" ? "scratch" : `marimo://${f || "untitled"}#cell=${e2}`, r[3] = c, r[4] = f, r[5] = _) : _ = r[5];
|
|
@@ -23542,7 +23542,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23542
23542
|
f.classList.remove("focus-outline");
|
|
23543
23543
|
}, 2e3)), true);
|
|
23544
23544
|
}
|
|
23545
|
-
function _temp$
|
|
23545
|
+
function _temp$36(e) {
|
|
23546
23546
|
return e;
|
|
23547
23547
|
}
|
|
23548
23548
|
const showAddPackageToast = (e, r) => {
|
|
@@ -23614,7 +23614,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23614
23614
|
value: e2
|
|
23615
23615
|
});
|
|
23616
23616
|
}
|
|
23617
|
-
var import_compiler_runtime$
|
|
23617
|
+
var import_compiler_runtime$132 = require_compiler_runtime(), ansiUp = new AnsiUp();
|
|
23618
23618
|
const cleanAnsiCodes = (e) => {
|
|
23619
23619
|
let r = RegExp("\x1B\\[[0-9;]*m", "g");
|
|
23620
23620
|
return e.replaceAll(r, "");
|
|
@@ -23682,7 +23682,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23682
23682
|
});
|
|
23683
23683
|
}
|
|
23684
23684
|
var InstallPackageLink = (e) => {
|
|
23685
|
-
let r = (0, import_compiler_runtime$
|
|
23685
|
+
let r = (0, import_compiler_runtime$132.c)(6), { packages: c, children: d } = e, { handleInstallPackages: f } = useInstallPackages(), h;
|
|
23686
23686
|
r[0] !== f || r[1] !== c ? (h = (e2) => {
|
|
23687
23687
|
f(c), e2.preventDefault();
|
|
23688
23688
|
}, r[0] = f, r[1] = c, r[2] = h) : h = r[2];
|
|
@@ -23750,15 +23750,15 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23750
23750
|
replace: (e2) => r(e2)
|
|
23751
23751
|
})
|
|
23752
23752
|
}), RenderTextWithLinks = (e) => {
|
|
23753
|
-
let r = (0, import_compiler_runtime$
|
|
23753
|
+
let r = (0, import_compiler_runtime$132.c)(4), { text: c } = e, d;
|
|
23754
23754
|
r[0] === c ? d = r[1] : (d = renderTextWithReplacers(c, composeReplacers(pipInstallReplacer, urlReplacer)), r[0] = c, r[1] = d);
|
|
23755
23755
|
let f = d, h;
|
|
23756
23756
|
return r[2] === f ? h = r[3] : (h = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
23757
23757
|
children: f
|
|
23758
23758
|
}), r[2] = f, r[3] = h), h;
|
|
23759
23759
|
};
|
|
23760
|
-
var import_compiler_runtime$
|
|
23761
|
-
let r = (0, import_compiler_runtime$
|
|
23760
|
+
var import_compiler_runtime$131 = require_compiler_runtime(), Tip = (e) => {
|
|
23761
|
+
let r = (0, import_compiler_runtime$131.c)(10), c = e.title ?? "Tip", d;
|
|
23762
23762
|
r[0] === c ? d = r[1] : (d = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
23763
23763
|
className: "pt-2 pb-2 font-normal",
|
|
23764
23764
|
children: c
|
|
@@ -23786,8 +23786,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
23786
23786
|
}), r[7] = e.className, r[8] = h, r[9] = _) : _ = r[9], _;
|
|
23787
23787
|
};
|
|
23788
23788
|
const MarimoErrorOutput = (e) => {
|
|
23789
|
-
let r = (0, import_compiler_runtime$
|
|
23790
|
-
if (c.some(_temp$
|
|
23789
|
+
let r = (0, import_compiler_runtime$131.c)(31), { errors: c, cellId: d, className: f } = e, h = useChromeActions(), _ = "This cell wasn't run because it has errors", y = "destructive", S = "text-error";
|
|
23790
|
+
if (c.some(_temp$35)) _ = "Interrupted";
|
|
23791
23791
|
else if (c.some(_temp2$24)) _ = "An internal error occurred";
|
|
23792
23792
|
else if (c.some(_temp3$16)) _ = "Ancestor prevented from running", y = "default", S = "text-secondary-foreground";
|
|
23793
23793
|
else if (c.some(_temp4$9)) _ = "Ancestor stopped", y = "default", S = "text-secondary-foreground";
|
|
@@ -24154,7 +24154,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24154
24154
|
]
|
|
24155
24155
|
}), r[25] = w, r[26] = M, r[27] = I, r[28] = z, r[29] = G, r[30] = q) : q = r[30], q;
|
|
24156
24156
|
};
|
|
24157
|
-
function _temp$
|
|
24157
|
+
function _temp$35(e) {
|
|
24158
24158
|
return e.type === "interruption";
|
|
24159
24159
|
}
|
|
24160
24160
|
function _temp2$24(e) {
|
|
@@ -24463,9 +24463,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24463
24463
|
})
|
|
24464
24464
|
}, `sql-error-${r}`);
|
|
24465
24465
|
}
|
|
24466
|
-
var import_compiler_runtime$
|
|
24466
|
+
var import_compiler_runtime$130 = require_compiler_runtime();
|
|
24467
24467
|
const TextOutput = (e) => {
|
|
24468
|
-
let r = (0, import_compiler_runtime$
|
|
24468
|
+
let r = (0, import_compiler_runtime$130.c)(13), { text: c, channel: d, wrapText: f } = e, h = d === "stdout" || d === "stderr", _;
|
|
24469
24469
|
r[0] === f ? _ = r[1] : (_ = (e2) => (0, import_jsx_runtime.jsx)("span", {
|
|
24470
24470
|
className: f ? "whitespace-pre-wrap break-words" : "whitespace-pre",
|
|
24471
24471
|
children: (0, import_jsx_runtime.jsx)(RenderTextWithLinks, {
|
|
@@ -24482,17 +24482,17 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24482
24482
|
children: O
|
|
24483
24483
|
}), r[10] = E, r[11] = O, r[12] = M) : M = r[12], M;
|
|
24484
24484
|
};
|
|
24485
|
-
var import_compiler_runtime$
|
|
24485
|
+
var import_compiler_runtime$129 = require_compiler_runtime();
|
|
24486
24486
|
const VideoOutput = (e) => {
|
|
24487
|
-
let r = (0, import_compiler_runtime$
|
|
24487
|
+
let r = (0, import_compiler_runtime$129.c)(3), { src: c, className: d } = e, f;
|
|
24488
24488
|
return r[0] !== d || r[1] !== c ? (f = (0, import_jsx_runtime.jsx)("iframe", {
|
|
24489
24489
|
className: d,
|
|
24490
24490
|
src: c
|
|
24491
24491
|
}), r[0] = d, r[1] = c, r[2] = f) : f = r[2], f;
|
|
24492
24492
|
};
|
|
24493
|
-
var import_compiler_runtime$
|
|
24493
|
+
var import_compiler_runtime$128 = require_compiler_runtime();
|
|
24494
24494
|
function useOverflowDetection(e, r) {
|
|
24495
|
-
let c = (0, import_compiler_runtime$
|
|
24495
|
+
let c = (0, import_compiler_runtime$128.c)(4), d = r === void 0 ? true : r, [f, h] = (0, import_react.useState)(false), _, v;
|
|
24496
24496
|
return c[0] !== d || c[1] !== e ? (_ = () => {
|
|
24497
24497
|
let r2 = e.current;
|
|
24498
24498
|
if (!r2 || !d) return;
|
|
@@ -24589,9 +24589,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24589
24589
|
const LazyVegaEmbed = import_react.lazy(() => import("./react-vega-BFLRzgl7.js").then((e) => ({
|
|
24590
24590
|
default: e.VegaEmbed
|
|
24591
24591
|
})));
|
|
24592
|
-
var import_compiler_runtime$
|
|
24592
|
+
var import_compiler_runtime$127 = require_compiler_runtime();
|
|
24593
24593
|
const ChartLoadingState = () => {
|
|
24594
|
-
let e = (0, import_compiler_runtime$
|
|
24594
|
+
let e = (0, import_compiler_runtime$127.c)(1), r;
|
|
24595
24595
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (0, import_jsx_runtime.jsxs)("div", {
|
|
24596
24596
|
className: "flex items-center gap-2 justify-center",
|
|
24597
24597
|
children: [
|
|
@@ -24605,7 +24605,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24605
24605
|
]
|
|
24606
24606
|
}), e[0] = r) : r = e[0], r;
|
|
24607
24607
|
}, ChartErrorState = (e) => {
|
|
24608
|
-
let r = (0, import_compiler_runtime$
|
|
24608
|
+
let r = (0, import_compiler_runtime$127.c)(2), { error: c } = e, d;
|
|
24609
24609
|
return r[0] === c ? d = r[1] : (d = (0, import_jsx_runtime.jsx)("div", {
|
|
24610
24610
|
className: "flex items-center justify-center",
|
|
24611
24611
|
children: (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
@@ -24613,7 +24613,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24613
24613
|
})
|
|
24614
24614
|
}), r[0] = c, r[1] = d), d;
|
|
24615
24615
|
}, ChartInfoState = (e) => {
|
|
24616
|
-
let r = (0, import_compiler_runtime$
|
|
24616
|
+
let r = (0, import_compiler_runtime$127.c)(8), { children: c, className: d } = e, f;
|
|
24617
24617
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col items-center justify-center gap-4", d), r[0] = d, r[1] = f);
|
|
24618
24618
|
let h;
|
|
24619
24619
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (0, import_jsx_runtime.jsx)(ChartPie, {
|
|
@@ -24633,8 +24633,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24633
24633
|
]
|
|
24634
24634
|
}), r[5] = f, r[6] = _, r[7] = y) : y = r[7], y;
|
|
24635
24635
|
};
|
|
24636
|
-
var import_compiler_runtime$
|
|
24637
|
-
let c = (0, import_compiler_runtime$
|
|
24636
|
+
var import_compiler_runtime$126 = require_compiler_runtime(), Tabs = Root2, TabsList = import_react.forwardRef((e, r) => {
|
|
24637
|
+
let c = (0, import_compiler_runtime$126.c)(9), d, f;
|
|
24638
24638
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
24639
24639
|
let h;
|
|
24640
24640
|
c[3] === d ? h = c[4] : (h = cn("inline-flex max-h-14 items-center justify-center rounded-md bg-muted p-1 text-muted-foreground", d), c[3] = d, c[4] = h);
|
|
@@ -24647,7 +24647,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24647
24647
|
});
|
|
24648
24648
|
TabsList.displayName = List.displayName;
|
|
24649
24649
|
var TabsTrigger = import_react.forwardRef((e, r) => {
|
|
24650
|
-
let c = (0, import_compiler_runtime$
|
|
24650
|
+
let c = (0, import_compiler_runtime$126.c)(9), d, f;
|
|
24651
24651
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
24652
24652
|
let h;
|
|
24653
24653
|
c[3] === d ? h = c[4] : (h = cn("inline-flex items-center justify-center whitespace-nowrap rounded-sm px-3 py-1 text-sm font-medium ring-offset-background transition-all focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50 data-[state=active]:bg-background data-[state=active]:text-foreground data-[state=active]:shadow-sm", d), c[3] = d, c[4] = h);
|
|
@@ -24660,7 +24660,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24660
24660
|
});
|
|
24661
24661
|
TabsTrigger.displayName = Trigger.displayName;
|
|
24662
24662
|
var TabsContent = import_react.forwardRef((e, r) => {
|
|
24663
|
-
let c = (0, import_compiler_runtime$
|
|
24663
|
+
let c = (0, import_compiler_runtime$126.c)(9), d, f;
|
|
24664
24664
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
24665
24665
|
let h;
|
|
24666
24666
|
c[3] === d ? h = c[4] : (h = cn("mt-2 ring-offset-background focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2", d), c[3] = d, c[4] = h);
|
|
@@ -24672,9 +24672,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
24672
24672
|
}), c[5] = f, c[6] = r, c[7] = h, c[8] = _) : _ = c[8], _;
|
|
24673
24673
|
});
|
|
24674
24674
|
TabsContent.displayName = Content.displayName;
|
|
24675
|
-
var import_compiler_runtime$
|
|
24675
|
+
var import_compiler_runtime$125 = require_compiler_runtime();
|
|
24676
24676
|
const WithLocale = (e) => {
|
|
24677
|
-
let r = (0, import_compiler_runtime$
|
|
24677
|
+
let r = (0, import_compiler_runtime$125.c)(3), { children: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f;
|
|
24678
24678
|
return r[0] !== c || r[1] !== d ? (f = c(d), r[0] = c, r[1] = d, r[2] = f) : f = r[2], f;
|
|
24679
24679
|
};
|
|
24680
24680
|
function tzName(e, r, c = "long") {
|
|
@@ -25493,8 +25493,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25493
25493
|
function smartMatchFilter(e, r, c) {
|
|
25494
25494
|
return smartMatch(r, e) ? 1 : c && smartMatch(r, c) ? 0.8 : 0;
|
|
25495
25495
|
}
|
|
25496
|
-
var import_compiler_runtime$
|
|
25497
|
-
let c = (0, import_compiler_runtime$
|
|
25496
|
+
var import_compiler_runtime$124 = require_compiler_runtime(), Command = import_react.forwardRef((e, r) => {
|
|
25497
|
+
let c = (0, import_compiler_runtime$124.c)(9), d, f;
|
|
25498
25498
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
25499
25499
|
let h;
|
|
25500
25500
|
c[3] === d ? h = c[4] : (h = cn("flex h-full w-full flex-col overflow-hidden rounded-md bg-popover text-popover-foreground", d), c[3] = d, c[4] = h);
|
|
@@ -25508,7 +25508,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25508
25508
|
});
|
|
25509
25509
|
Command.displayName = _e$1.displayName;
|
|
25510
25510
|
var CommandInput = import_react.forwardRef((e, r) => {
|
|
25511
|
-
let c = (0, import_compiler_runtime$
|
|
25511
|
+
let c = (0, import_compiler_runtime$124.c)(19), d, f, h, _;
|
|
25512
25512
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: d, icon: f, rootClassName: _, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
25513
25513
|
let y;
|
|
25514
25514
|
c[5] === _ ? y = c[6] : (y = cn("flex items-center border-b px-3", _), c[5] = _, c[6] = y);
|
|
@@ -25536,7 +25536,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25536
25536
|
});
|
|
25537
25537
|
CommandInput.displayName = _e$1.Input.displayName;
|
|
25538
25538
|
var CommandList = import_react.forwardRef((e, r) => {
|
|
25539
|
-
let c = (0, import_compiler_runtime$
|
|
25539
|
+
let c = (0, import_compiler_runtime$124.c)(9), d, f;
|
|
25540
25540
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
25541
25541
|
let h;
|
|
25542
25542
|
c[3] === d ? h = c[4] : (h = cn("max-h-[300px] overflow-y-auto overflow-x-hidden", d), c[3] = d, c[4] = h);
|
|
@@ -25549,7 +25549,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25549
25549
|
});
|
|
25550
25550
|
CommandList.displayName = _e$1.List.displayName;
|
|
25551
25551
|
var CommandEmpty = import_react.forwardRef((e, r) => {
|
|
25552
|
-
let c = (0, import_compiler_runtime$
|
|
25552
|
+
let c = (0, import_compiler_runtime$124.c)(3), d;
|
|
25553
25553
|
return c[0] !== e || c[1] !== r ? (d = (0, import_jsx_runtime.jsx)(_e$1.Empty, {
|
|
25554
25554
|
ref: r,
|
|
25555
25555
|
className: "py-6 text-center text-sm",
|
|
@@ -25558,7 +25558,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25558
25558
|
});
|
|
25559
25559
|
CommandEmpty.displayName = _e$1.Empty.displayName;
|
|
25560
25560
|
var CommandGroup = import_react.forwardRef((e, r) => {
|
|
25561
|
-
let c = (0, import_compiler_runtime$
|
|
25561
|
+
let c = (0, import_compiler_runtime$124.c)(9), d, f;
|
|
25562
25562
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
25563
25563
|
let h;
|
|
25564
25564
|
c[3] === d ? h = c[4] : (h = cn("overflow-hidden p-1 text-foreground [&_[cmdk-group-heading]]:px-2 [&_[cmdk-group-heading]]:py-1.5 [&_[cmdk-group-heading]]:text-xs [&_[cmdk-group-heading]]:font-medium [&_[cmdk-group-heading]]:text-muted-foreground", d), c[3] = d, c[4] = h);
|
|
@@ -25571,7 +25571,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25571
25571
|
});
|
|
25572
25572
|
CommandGroup.displayName = _e$1.Group.displayName;
|
|
25573
25573
|
var CommandSeparator = import_react.forwardRef((e, r) => {
|
|
25574
|
-
let c = (0, import_compiler_runtime$
|
|
25574
|
+
let c = (0, import_compiler_runtime$124.c)(9), d, f;
|
|
25575
25575
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
25576
25576
|
let h;
|
|
25577
25577
|
c[3] === d ? h = c[4] : (h = menuSeparatorVariants({
|
|
@@ -25586,7 +25586,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25586
25586
|
});
|
|
25587
25587
|
CommandSeparator.displayName = _e$1.Separator.displayName;
|
|
25588
25588
|
var CommandItem = import_react.forwardRef((e, r) => {
|
|
25589
|
-
let c = (0, import_compiler_runtime$
|
|
25589
|
+
let c = (0, import_compiler_runtime$124.c)(17), d, f, h, _, y;
|
|
25590
25590
|
if (c[0] !== r || c[1] !== e) {
|
|
25591
25591
|
let { className: S2, variant: w, inset: E, ...O } = e;
|
|
25592
25592
|
d = _e$1.Item, f = r, c[7] !== S2 || c[8] !== E || c[9] !== w ? (h = cn(menuItemVariants({
|
|
@@ -25603,9 +25603,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25603
25603
|
}), c[11] = d, c[12] = f, c[13] = h, c[14] = _, c[15] = y, c[16] = S) : S = c[16], S;
|
|
25604
25604
|
});
|
|
25605
25605
|
CommandItem.displayName = _e$1.Item.displayName;
|
|
25606
|
-
var import_compiler_runtime$
|
|
25606
|
+
var import_compiler_runtime$123 = require_compiler_runtime();
|
|
25607
25607
|
const DraggablePopover = (e) => {
|
|
25608
|
-
let r = (0, import_compiler_runtime$
|
|
25608
|
+
let r = (0, import_compiler_runtime$123.c)(25), c, d, f;
|
|
25609
25609
|
r[0] === e ? (c = r[1], d = r[2], f = r[3]) : ({ children: c, className: d, ...f } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f);
|
|
25610
25610
|
let h;
|
|
25611
25611
|
r[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {
|
|
@@ -25845,7 +25845,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25845
25845
|
negate: false
|
|
25846
25846
|
};
|
|
25847
25847
|
}
|
|
25848
|
-
var import_compiler_runtime$
|
|
25848
|
+
var import_compiler_runtime$122 = require_compiler_runtime(), WHITESPACE_CHARS = {
|
|
25849
25849
|
" ": {
|
|
25850
25850
|
marker: "\u2423",
|
|
25851
25851
|
name: "space"
|
|
@@ -25918,7 +25918,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
25918
25918
|
}
|
|
25919
25919
|
};
|
|
25920
25920
|
function SentinelCell(e) {
|
|
25921
|
-
let r = (0, import_compiler_runtime$
|
|
25921
|
+
let r = (0, import_compiler_runtime$122.c)(15), { sentinel: c } = e, d = SENTINEL_CONFIG[c.type], f;
|
|
25922
25922
|
r[0] !== d || r[1] !== c.value ? (f = d.label(c.value), r[0] = d, r[1] = c.value, r[2] = f) : f = r[2];
|
|
25923
25923
|
let h = f, _;
|
|
25924
25924
|
r[3] !== d || r[4] !== c.value ? (_ = d.tooltip(c.value), r[3] = d, r[4] = c.value, r[5] = _) : _ = r[5];
|
|
@@ -27982,7 +27982,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
27982
27982
|
],
|
|
27983
27983
|
unknown: []
|
|
27984
27984
|
};
|
|
27985
|
-
var import_compiler_runtime$
|
|
27985
|
+
var import_compiler_runtime$121 = require_compiler_runtime();
|
|
27986
27986
|
function renderFormatOptions(e, r) {
|
|
27987
27987
|
var _a3, _b3, _c3;
|
|
27988
27988
|
let c = (_a3 = e.columnDef.meta) == null ? void 0 : _a3.dataType, d = c ? formatOptions[c] : [];
|
|
@@ -28181,7 +28181,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28181
28181
|
}) : null;
|
|
28182
28182
|
}
|
|
28183
28183
|
const ClearFilterMenuItem = (e) => {
|
|
28184
|
-
let r = (0, import_compiler_runtime$
|
|
28184
|
+
let r = (0, import_compiler_runtime$121.c)(5), { column: c } = e, d;
|
|
28185
28185
|
r[0] === c ? d = r[1] : (d = () => c.setFilterValue(void 0), r[0] = c, r[1] = d);
|
|
28186
28186
|
let f;
|
|
28187
28187
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (0, import_jsx_runtime.jsx)(FunnelX, {
|
|
@@ -28211,7 +28211,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28211
28211
|
});
|
|
28212
28212
|
}
|
|
28213
28213
|
const FilterButtons = (e) => {
|
|
28214
|
-
let r = (0, import_compiler_runtime$
|
|
28214
|
+
let r = (0, import_compiler_runtime$121.c)(8), { onApply: c, onClear: d, clearButtonDisabled: f } = e, h;
|
|
28215
28215
|
r[0] === c ? h = r[1] : (h = (0, import_jsx_runtime.jsx)(Button, {
|
|
28216
28216
|
variant: "link",
|
|
28217
28217
|
size: "sm",
|
|
@@ -28236,9 +28236,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28236
28236
|
]
|
|
28237
28237
|
}), r[5] = h, r[6] = _, r[7] = v) : v = r[7], v;
|
|
28238
28238
|
};
|
|
28239
|
-
var import_compiler_runtime$
|
|
28239
|
+
var import_compiler_runtime$120 = require_compiler_runtime();
|
|
28240
28240
|
const MimeCell = (e) => {
|
|
28241
|
-
let r = (0, import_compiler_runtime$
|
|
28241
|
+
let r = (0, import_compiler_runtime$120.c)(6), { value: c } = e, d;
|
|
28242
28242
|
r[0] !== c.data || r[1] !== c.mimetype ? (d = {
|
|
28243
28243
|
channel: "output",
|
|
28244
28244
|
data: c.data,
|
|
@@ -28904,9 +28904,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28904
28904
|
let [r, c] = import_react.useState(e), [d, f] = import_react.useState(null);
|
|
28905
28905
|
return e !== r && (f(r), c(e)), d;
|
|
28906
28906
|
}
|
|
28907
|
-
var import_compiler_runtime$
|
|
28907
|
+
var import_compiler_runtime$119 = require_compiler_runtime();
|
|
28908
28908
|
const DelayMount = (e) => {
|
|
28909
|
-
let r = (0, import_compiler_runtime$
|
|
28909
|
+
let r = (0, import_compiler_runtime$119.c)(13), { milliseconds: c, children: d, fallback: f, visibility: h, threshold: _, rootMargin: v } = e, y = h === void 0 ? false : h, S = _ === void 0 ? 0 : _, w = v === void 0 ? "0px" : v, [E, O] = (0, import_react.useState)(false), [M, I] = (0, import_react.useState)(false), z;
|
|
28910
28910
|
r[0] !== w || r[1] !== S ? (z = {
|
|
28911
28911
|
threshold: S,
|
|
28912
28912
|
root: null,
|
|
@@ -28937,9 +28937,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28937
28937
|
children: n9
|
|
28938
28938
|
}), r[10] = t9, r[11] = n9, r[12] = r9) : r9 = r[12], r9;
|
|
28939
28939
|
};
|
|
28940
|
-
var import_compiler_runtime$
|
|
28940
|
+
var import_compiler_runtime$118 = require_compiler_runtime();
|
|
28941
28941
|
const DatePopover = (e) => {
|
|
28942
|
-
let r = (0, import_compiler_runtime$
|
|
28942
|
+
let r = (0, import_compiler_runtime$118.c)(15), { date: c, type: d, children: f } = e;
|
|
28943
28943
|
if (!c || Number.isNaN(new Date(c).getTime())) return f;
|
|
28944
28944
|
let h;
|
|
28945
28945
|
r[0] === c ? h = r[1] : (h = new Date(c), r[0] = c, r[1] = h);
|
|
@@ -28979,7 +28979,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
28979
28979
|
}), r[12] = w, r[13] = E, r[14] = O) : O = r[14], O;
|
|
28980
28980
|
};
|
|
28981
28981
|
var TimezoneDisplay = (e) => {
|
|
28982
|
-
let r = (0, import_compiler_runtime$
|
|
28982
|
+
let r = (0, import_compiler_runtime$118.c)(26), { date: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f;
|
|
28983
28983
|
r[0] === d ? f = r[1] : (f = Intl.DateTimeFormat(d).resolvedOptions(), r[0] = d, r[1] = f);
|
|
28984
28984
|
let h = f.timeZone, _ = c.getUTCMilliseconds() !== 0, v;
|
|
28985
28985
|
r[2] === _ ? v = r[3] : (v = _ ? {
|
|
@@ -29055,7 +29055,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
29055
29055
|
]
|
|
29056
29056
|
}), r[23] = G, r[24] = M, r[25] = q) : q = r[25], q;
|
|
29057
29057
|
}, DateDisplay = (e) => {
|
|
29058
|
-
let r = (0, import_compiler_runtime$
|
|
29058
|
+
let r = (0, import_compiler_runtime$118.c)(6), { date: c } = e, d;
|
|
29059
29059
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = {
|
|
29060
29060
|
timeZone: "UTC",
|
|
29061
29061
|
dateStyle: "long"
|
|
@@ -29067,7 +29067,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
29067
29067
|
children: h
|
|
29068
29068
|
}), r[4] = h, r[5] = _), _;
|
|
29069
29069
|
}, RelativeTime = (e) => {
|
|
29070
|
-
let r = (0, import_compiler_runtime$
|
|
29070
|
+
let r = (0, import_compiler_runtime$118.c)(6), { date: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f, h;
|
|
29071
29071
|
if (r[0] !== c || r[1] !== d) {
|
|
29072
29072
|
h = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
29073
29073
|
bb0: {
|
|
@@ -29119,7 +29119,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
29119
29119
|
return r[4] === f ? _ = r[5] : (_ = (0, import_jsx_runtime.jsx)("span", {
|
|
29120
29120
|
children: f
|
|
29121
29121
|
}), r[4] = f, r[5] = _), _;
|
|
29122
|
-
}, import_compiler_runtime$
|
|
29122
|
+
}, import_compiler_runtime$117 = require_compiler_runtime(), hashString = (e) => {
|
|
29123
29123
|
let r = 0;
|
|
29124
29124
|
for (let c = 0; c < e.length; c++) {
|
|
29125
29125
|
let d = e.charCodeAt(c);
|
|
@@ -29136,7 +29136,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
29136
29136
|
return d;
|
|
29137
29137
|
};
|
|
29138
29138
|
const ChartSkeleton = (e) => {
|
|
29139
|
-
let r = (0, import_compiler_runtime$
|
|
29139
|
+
let r = (0, import_compiler_runtime$117.c)(11), { seed: c, width: d, height: f } = e, h = d / 9, _ = f - 15, v;
|
|
29140
29140
|
if (r[0] !== h || r[1] !== f || r[2] !== c || r[3] !== _ || r[4] !== d) {
|
|
29141
29141
|
let e2 = generateHeights({
|
|
29142
29142
|
numBars: 9,
|
|
@@ -30141,11 +30141,11 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30141
30141
|
}
|
|
30142
30142
|
}, __publicField(_g, "EMPTY", new _g([], {}, {}, {}, {}, {
|
|
30143
30143
|
includeCharts: false
|
|
30144
|
-
})), _g), import_compiler_runtime$
|
|
30144
|
+
})), _g), import_compiler_runtime$116 = require_compiler_runtime();
|
|
30145
30145
|
const ColumnChartContext = import_react.createContext(ColumnChartSpecModel.EMPTY);
|
|
30146
30146
|
var batchedLoader = createBatchedLoader();
|
|
30147
30147
|
const TableColumnSummary = (e) => {
|
|
30148
|
-
let r = (0, import_compiler_runtime$
|
|
30148
|
+
let r = (0, import_compiler_runtime$116.c)(21), { columnId: c } = e, { locale: d } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), f = import_react.use(ColumnChartContext), { theme: h } = useTheme(), _, v, y;
|
|
30149
30149
|
if (r[0] !== f || r[1] !== c || r[2] !== d || r[3] !== h) {
|
|
30150
30150
|
let { spec: e2, type: S2, stats: w } = f.getHeaderSummary(c), E = null;
|
|
30151
30151
|
if (e2) {
|
|
@@ -30356,8 +30356,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30356
30356
|
let f = e.at(-1);
|
|
30357
30357
|
return c.push(f), c;
|
|
30358
30358
|
}
|
|
30359
|
-
var import_compiler_runtime$
|
|
30360
|
-
let r = (0, import_compiler_runtime$
|
|
30359
|
+
var import_compiler_runtime$115 = require_compiler_runtime(), ImageWithFallback = (e) => {
|
|
30360
|
+
let r = (0, import_compiler_runtime$115.c)(14), { url: c } = e, [d, f] = (0, import_react.useState)(false), [h, _] = (0, import_react.useState)(false);
|
|
30361
30361
|
if (d) {
|
|
30362
30362
|
let e2;
|
|
30363
30363
|
return r[0] === c ? e2 = r[1] : (e2 = (0, import_jsx_runtime.jsx)(URLAnchor, {
|
|
@@ -30431,7 +30431,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30431
30431
|
return r.some((e2) => c.has(e2.type));
|
|
30432
30432
|
}
|
|
30433
30433
|
const MarkdownUrlDetector = (e) => {
|
|
30434
|
-
let r = (0, import_compiler_runtime$
|
|
30434
|
+
let r = (0, import_compiler_runtime$115.c)(4), { content: c, parts: d } = e;
|
|
30435
30435
|
if (isMarkdown(c)) {
|
|
30436
30436
|
let e2;
|
|
30437
30437
|
return r[0] === c ? e2 = r[1] : (e2 = (0, import_jsx_runtime.jsx)(MarkdownRenderer, {
|
|
@@ -30448,7 +30448,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30448
30448
|
url: e2.url
|
|
30449
30449
|
}, r) : e2.value);
|
|
30450
30450
|
var URLAnchor = (e) => {
|
|
30451
|
-
let r = (0, import_compiler_runtime$
|
|
30451
|
+
let r = (0, import_compiler_runtime$115.c)(3), { url: c } = e, d;
|
|
30452
30452
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = Events.stopPropagation(), r[0] = d) : d = r[0];
|
|
30453
30453
|
let f;
|
|
30454
30454
|
return r[1] === c ? f = r[2] : (f = (0, import_jsx_runtime.jsx)("a", {
|
|
@@ -30816,8 +30816,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30816
30816
|
maximumFractionDigits: maxFractionalDigits(c)
|
|
30817
30817
|
}).format(e);
|
|
30818
30818
|
};
|
|
30819
|
-
var import_compiler_runtime$
|
|
30820
|
-
let c = (0, import_compiler_runtime$
|
|
30819
|
+
var import_compiler_runtime$114 = require_compiler_runtime(), Table = import_react.forwardRef((e, r) => {
|
|
30820
|
+
let c = (0, import_compiler_runtime$114.c)(9), d, f;
|
|
30821
30821
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
30822
30822
|
let h;
|
|
30823
30823
|
c[3] === d ? h = c[4] : (h = cn("w-full caption-bottom text-sm", d), c[3] = d, c[4] = h);
|
|
@@ -30833,7 +30833,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30833
30833
|
});
|
|
30834
30834
|
Table.displayName = "Table";
|
|
30835
30835
|
var TableHeader = import_react.forwardRef((e, r) => {
|
|
30836
|
-
let c = (0, import_compiler_runtime$
|
|
30836
|
+
let c = (0, import_compiler_runtime$114.c)(9), d, f;
|
|
30837
30837
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
30838
30838
|
let h;
|
|
30839
30839
|
c[3] === d ? h = c[4] : (h = cn("[&_tr]:border-b bg-background", d), c[3] = d, c[4] = h);
|
|
@@ -30846,7 +30846,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30846
30846
|
});
|
|
30847
30847
|
TableHeader.displayName = "TableHeader";
|
|
30848
30848
|
var TableBody = import_react.forwardRef((e, r) => {
|
|
30849
|
-
let c = (0, import_compiler_runtime$
|
|
30849
|
+
let c = (0, import_compiler_runtime$114.c)(9), d, f;
|
|
30850
30850
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
30851
30851
|
let h;
|
|
30852
30852
|
c[3] === d ? h = c[4] : (h = cn("[&_tr:last-child]:border-0", d), c[3] = d, c[4] = h);
|
|
@@ -30859,7 +30859,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30859
30859
|
});
|
|
30860
30860
|
TableBody.displayName = "TableBody";
|
|
30861
30861
|
var TableFooter = import_react.forwardRef((e, r) => {
|
|
30862
|
-
let c = (0, import_compiler_runtime$
|
|
30862
|
+
let c = (0, import_compiler_runtime$114.c)(9), d, f;
|
|
30863
30863
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
30864
30864
|
let h;
|
|
30865
30865
|
c[3] === d ? h = c[4] : (h = cn("bg-primary font-medium text-primary-foreground", d), c[3] = d, c[4] = h);
|
|
@@ -30872,7 +30872,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30872
30872
|
});
|
|
30873
30873
|
TableFooter.displayName = "TableFooter";
|
|
30874
30874
|
var TableRow = import_react.forwardRef((e, r) => {
|
|
30875
|
-
let c = (0, import_compiler_runtime$
|
|
30875
|
+
let c = (0, import_compiler_runtime$114.c)(9), d, f;
|
|
30876
30876
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
30877
30877
|
let h;
|
|
30878
30878
|
c[3] === d ? h = c[4] : (h = cn("border-b transition-colors bg-background hover:bg-(--slate-2) data-[state=selected]:bg-(--slate-3)", d), c[3] = d, c[4] = h);
|
|
@@ -30885,7 +30885,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30885
30885
|
});
|
|
30886
30886
|
TableRow.displayName = "TableRow";
|
|
30887
30887
|
var TableHead = import_react.forwardRef((e, r) => {
|
|
30888
|
-
let c = (0, import_compiler_runtime$
|
|
30888
|
+
let c = (0, import_compiler_runtime$114.c)(9), d, f;
|
|
30889
30889
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
30890
30890
|
let h;
|
|
30891
30891
|
c[3] === d ? h = c[4] : (h = cn("h-10 px-2 text-left align-middle font-medium text-muted-foreground [&:has([role=checkbox])]:pr-0", d), c[3] = d, c[4] = h);
|
|
@@ -30898,7 +30898,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30898
30898
|
});
|
|
30899
30899
|
TableHead.displayName = "TableHead";
|
|
30900
30900
|
var TableCell = import_react.forwardRef((e, r) => {
|
|
30901
|
-
let c = (0, import_compiler_runtime$
|
|
30901
|
+
let c = (0, import_compiler_runtime$114.c)(9), d, f;
|
|
30902
30902
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
30903
30903
|
let h;
|
|
30904
30904
|
c[3] === d ? h = c[4] : (h = cn("p-1.5 align-middle [&:has([role=checkbox])]:pr-0", d), c[3] = d, c[4] = h);
|
|
@@ -30911,7 +30911,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
30911
30911
|
});
|
|
30912
30912
|
TableCell.displayName = "TableCell";
|
|
30913
30913
|
var TableCaption = import_react.forwardRef((e, r) => {
|
|
30914
|
-
let c = (0, import_compiler_runtime$
|
|
30914
|
+
let c = (0, import_compiler_runtime$114.c)(9), d, f;
|
|
30915
30915
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
30916
30916
|
let h;
|
|
30917
30917
|
c[3] === d ? h = c[4] : (h = cn("mt-4 text-sm text-muted-foreground", d), c[3] = d, c[4] = h);
|
|
@@ -32292,7 +32292,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
32292
32292
|
});
|
|
32293
32293
|
}
|
|
32294
32294
|
PanelResizeHandle.displayName = "PanelResizeHandle";
|
|
32295
|
-
var import_compiler_runtime$
|
|
32295
|
+
var import_compiler_runtime$113 = require_compiler_runtime(), toggleVariants = cva(cn("inline-flex items-center justify-center rounded-md text-sm font-medium ring-offset-background transition-colors hover:bg-muted hover:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-2 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:pointer-events-none disabled:opacity-50", "data-[state=on]:bg-muted data-[state=on]:text-muted-foreground"), {
|
|
32296
32296
|
variants: {
|
|
32297
32297
|
variant: {
|
|
32298
32298
|
default: "bg-transparent",
|
|
@@ -32310,7 +32310,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
32310
32310
|
size: "default"
|
|
32311
32311
|
}
|
|
32312
32312
|
}), Toggle = import_react.forwardRef((e, r) => {
|
|
32313
|
-
let c = (0, import_compiler_runtime$
|
|
32313
|
+
let c = (0, import_compiler_runtime$113.c)(13), d, f, h, _;
|
|
32314
32314
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: d, variant: _, size: h, ...f } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
32315
32315
|
let y;
|
|
32316
32316
|
c[5] !== d || c[6] !== h || c[7] !== _ ? (y = cn(toggleVariants({
|
|
@@ -32333,12 +32333,12 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
32333
32333
|
}, contextAwarePanelOwner = atom(null), contextAwarePanelType = atom(null), contextAwarePanelOpen = atom(false);
|
|
32334
32334
|
atom(false);
|
|
32335
32335
|
const isCellAwareAtom = atom(false);
|
|
32336
|
-
var import_compiler_runtime$
|
|
32336
|
+
var import_compiler_runtime$112 = require_compiler_runtime();
|
|
32337
32337
|
const PANEL_TYPES = {
|
|
32338
32338
|
ROW_VIEWER: "row-viewer",
|
|
32339
32339
|
COLUMN_EXPLORER: "column-explorer"
|
|
32340
32340
|
}, ContextAwarePanelItem = (e) => {
|
|
32341
|
-
let r = (0, import_compiler_runtime$
|
|
32341
|
+
let r = (0, import_compiler_runtime$112.c)(2), { children: c } = e, d;
|
|
32342
32342
|
return r[0] === c ? d = r[1] : (d = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
32343
32343
|
children: (0, import_jsx_runtime.jsx)(Fill, {
|
|
32344
32344
|
name: SlotNames.CONTEXT_AWARE_PANEL,
|
|
@@ -32537,9 +32537,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
32537
32537
|
...e
|
|
32538
32538
|
];
|
|
32539
32539
|
}
|
|
32540
|
-
var import_compiler_runtime$
|
|
32540
|
+
var import_compiler_runtime$111 = require_compiler_runtime();
|
|
32541
32541
|
function useScrollContainerHeight(e) {
|
|
32542
|
-
let r = (0, import_compiler_runtime$
|
|
32542
|
+
let r = (0, import_compiler_runtime$111.c)(8), { maxHeight: c, virtualize: d } = e, f = (0, import_react.useRef)(null), h, _;
|
|
32543
32543
|
r[0] !== c || r[1] !== d ? (h = () => {
|
|
32544
32544
|
if (!f.current) return;
|
|
32545
32545
|
let e2 = f.current.parentElement;
|
|
@@ -33136,9 +33136,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33136
33136
|
var _a3;
|
|
33137
33137
|
window.getSelection && ((_a3 = window.getSelection()) == null ? void 0 : _a3.empty());
|
|
33138
33138
|
};
|
|
33139
|
-
var import_compiler_runtime$
|
|
33139
|
+
var import_compiler_runtime$110 = require_compiler_runtime();
|
|
33140
33140
|
const CellSelectionProvider = (e) => {
|
|
33141
|
-
let r = (0, import_compiler_runtime$
|
|
33141
|
+
let r = (0, import_compiler_runtime$110.c)(3), { children: c } = e, d;
|
|
33142
33142
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = [
|
|
33143
33143
|
cellSelectionStateAtom
|
|
33144
33144
|
], r[0] = d) : d = r[0];
|
|
@@ -33693,8 +33693,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33693
33693
|
...e
|
|
33694
33694
|
});
|
|
33695
33695
|
}
|
|
33696
|
-
var import_compiler_runtime$
|
|
33697
|
-
let c = (0, import_compiler_runtime$
|
|
33696
|
+
var import_compiler_runtime$109 = require_compiler_runtime(), ContextMenu = Root2$3, ContextMenuTrigger = Trigger$2, ContextMenuPortal = withFullScreenAsRoot(Portal2), InternalContextMenuContent = withSmartCollisionBoundary(Content2), InternalContextMenuSubContent = withSmartCollisionBoundary(SubContent2), ContextMenuSubTrigger = import_react.forwardRef((e, r) => {
|
|
33697
|
+
let c = (0, import_compiler_runtime$109.c)(14), d, f, h, _;
|
|
33698
33698
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: f, inset: h, children: d, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
33699
33699
|
let v;
|
|
33700
33700
|
c[5] !== f || c[6] !== h ? (v = menuSubTriggerVariants({
|
|
@@ -33718,7 +33718,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33718
33718
|
});
|
|
33719
33719
|
ContextMenuSubTrigger.displayName = SubTrigger2.displayName;
|
|
33720
33720
|
var contentCommon = "data-[state=open]:animate-in data-[state=closed]:animate-out data-[state=closed]:fade-out-0 data-[state=open]:fade-in-0 data-[state=closed]:zoom-out-95 data-[state=open]:zoom-in-95 data-[side=bottom]:slide-in-from-top-2 data-[side=left]:slide-in-from-right-2 data-[side=right]:slide-in-from-left-2 data-[side=top]:slide-in-from-bottom-2", ContextMenuSubContent = import_react.forwardRef((e, r) => {
|
|
33721
|
-
let c = (0, import_compiler_runtime$
|
|
33721
|
+
let c = (0, import_compiler_runtime$109.c)(9), d, f;
|
|
33722
33722
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
33723
33723
|
let h;
|
|
33724
33724
|
c[3] === d ? h = c[4] : (h = cn(menuContentCommon({
|
|
@@ -33733,7 +33733,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33733
33733
|
});
|
|
33734
33734
|
ContextMenuSubContent.displayName = SubContent2.displayName;
|
|
33735
33735
|
var ContextMenuContent = import_react.forwardRef((e, r) => {
|
|
33736
|
-
let c = (0, import_compiler_runtime$
|
|
33736
|
+
let c = (0, import_compiler_runtime$109.c)(15), d, f, h;
|
|
33737
33737
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: d, scrollable: h, ...f } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
33738
33738
|
let _ = h === void 0 ? true : h, y;
|
|
33739
33739
|
c[4] !== d || c[5] !== _ ? (y = cn(menuContentCommon(), contentCommon, _ && "overflow-auto", d), c[4] = d, c[5] = _, c[6] = y) : y = c[6];
|
|
@@ -33756,7 +33756,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33756
33756
|
});
|
|
33757
33757
|
ContextMenuContent.displayName = Content2.displayName;
|
|
33758
33758
|
var ContextMenuItem = import_react.forwardRef((e, r) => {
|
|
33759
|
-
let c = (0, import_compiler_runtime$
|
|
33759
|
+
let c = (0, import_compiler_runtime$109.c)(13), d, f, h, _;
|
|
33760
33760
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: d, inset: f, variant: _, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
33761
33761
|
let v;
|
|
33762
33762
|
c[5] !== d || c[6] !== f || c[7] !== _ ? (v = menuItemVariants({
|
|
@@ -33773,7 +33773,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33773
33773
|
});
|
|
33774
33774
|
ContextMenuItem.displayName = Item2$1.displayName;
|
|
33775
33775
|
var ContextMenuCheckboxItem = import_react.forwardRef((e, r) => {
|
|
33776
|
-
let c = (0, import_compiler_runtime$
|
|
33776
|
+
let c = (0, import_compiler_runtime$109.c)(15), d, f, h, _;
|
|
33777
33777
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: h, children: f, checked: d, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
33778
33778
|
let v;
|
|
33779
33779
|
c[5] === h ? v = c[6] : (v = menuControlVariants({
|
|
@@ -33804,7 +33804,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33804
33804
|
});
|
|
33805
33805
|
ContextMenuCheckboxItem.displayName = CheckboxItem2.displayName;
|
|
33806
33806
|
var ContextMenuRadioItem = import_react.forwardRef((e, r) => {
|
|
33807
|
-
let c = (0, import_compiler_runtime$
|
|
33807
|
+
let c = (0, import_compiler_runtime$109.c)(13), d, f, h;
|
|
33808
33808
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: f, children: d, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
33809
33809
|
let _;
|
|
33810
33810
|
c[4] === f ? _ = c[5] : (_ = menuControlCheckVariants({
|
|
@@ -33834,7 +33834,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33834
33834
|
});
|
|
33835
33835
|
ContextMenuRadioItem.displayName = RadioItem2.displayName;
|
|
33836
33836
|
var ContextMenuLabel = import_react.forwardRef((e, r) => {
|
|
33837
|
-
let c = (0, import_compiler_runtime$
|
|
33837
|
+
let c = (0, import_compiler_runtime$109.c)(11), d, f, h;
|
|
33838
33838
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: d, inset: f, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
33839
33839
|
let _;
|
|
33840
33840
|
c[4] !== d || c[5] !== f ? (_ = menuLabelVariants({
|
|
@@ -33850,7 +33850,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33850
33850
|
});
|
|
33851
33851
|
ContextMenuLabel.displayName = Label2.displayName;
|
|
33852
33852
|
var ContextMenuSeparator = import_react.forwardRef((e, r) => {
|
|
33853
|
-
let c = (0, import_compiler_runtime$
|
|
33853
|
+
let c = (0, import_compiler_runtime$109.c)(9), d, f;
|
|
33854
33854
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
33855
33855
|
let h;
|
|
33856
33856
|
c[3] === d ? h = c[4] : (h = cn(menuSeparatorVariants({
|
|
@@ -33864,9 +33864,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33864
33864
|
}), c[5] = f, c[6] = r, c[7] = h, c[8] = _) : _ = c[8], _;
|
|
33865
33865
|
});
|
|
33866
33866
|
ContextMenuSeparator.displayName = Separator2.displayName;
|
|
33867
|
-
var import_compiler_runtime$
|
|
33867
|
+
var import_compiler_runtime$108 = require_compiler_runtime();
|
|
33868
33868
|
const DataTableContextMenu = (e) => {
|
|
33869
|
-
let r = (0, import_compiler_runtime$
|
|
33869
|
+
let r = (0, import_compiler_runtime$108.c)(12), { contextMenuRef: c, tableBody: d, tableRef: f, copyAllCells: _ } = e, v;
|
|
33870
33870
|
r[0] !== c || r[1] !== f ? (v = (e2) => {
|
|
33871
33871
|
var _a3;
|
|
33872
33872
|
let r2 = c.current;
|
|
@@ -33966,9 +33966,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33966
33966
|
]
|
|
33967
33967
|
});
|
|
33968
33968
|
};
|
|
33969
|
-
var import_compiler_runtime$
|
|
33969
|
+
var import_compiler_runtime$107 = require_compiler_runtime();
|
|
33970
33970
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
33971
|
-
let r = (0, import_compiler_runtime$
|
|
33971
|
+
let r = (0, import_compiler_runtime$107.c)(9), { cellId: c, className: d } = e, f;
|
|
33972
33972
|
r[0] === c ? f = r[1] : (f = createCellStateAtom(c), r[0] = c, r[1] = f);
|
|
33973
33973
|
let { isSelected: h, isCopied: _ } = useAtomValue(f);
|
|
33974
33974
|
if (!h && !_) return null;
|
|
@@ -33981,9 +33981,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
33981
33981
|
}), r[6] = c, r[7] = w, r[8] = E) : E = r[8], E;
|
|
33982
33982
|
});
|
|
33983
33983
|
CellRangeSelectionIndicator.displayName = "CellRangeSelectionIndicator";
|
|
33984
|
-
var import_compiler_runtime$
|
|
33984
|
+
var import_compiler_runtime$106 = require_compiler_runtime();
|
|
33985
33985
|
const useCellRangeSelection = (e) => {
|
|
33986
|
-
let r = (0, import_compiler_runtime$
|
|
33986
|
+
let r = (0, import_compiler_runtime$106.c)(30), { table: c } = e, d = useCellSelectionReducerActions(), f;
|
|
33987
33987
|
r[0] !== d || r[1] !== c ? (f = () => {
|
|
33988
33988
|
d.handleCopy({
|
|
33989
33989
|
table: c,
|
|
@@ -34074,9 +34074,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34074
34074
|
let r = e.target;
|
|
34075
34075
|
return r === e.currentTarget || !(r instanceof Element) ? false : r.closest(INTERACTIVE_SELECTOR) !== null;
|
|
34076
34076
|
}
|
|
34077
|
-
var import_compiler_runtime$
|
|
34077
|
+
var import_compiler_runtime$105 = require_compiler_runtime(), focusedCellAtom = atom((e) => e(cellSelectionStateAtom).focusedCell);
|
|
34078
34078
|
function useScrollIntoViewOnFocus(e) {
|
|
34079
|
-
let r = (0, import_compiler_runtime$
|
|
34079
|
+
let r = (0, import_compiler_runtime$105.c)(2), c;
|
|
34080
34080
|
r[0] === e ? c = r[1] : (c = (r2) => {
|
|
34081
34081
|
(r2 == null ? void 0 : r2.cellId) && setTimeout(() => {
|
|
34082
34082
|
var _a3;
|
|
@@ -34600,9 +34600,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34600
34600
|
e === "too_many" ? "Unknown" : prettifyRowCount(e, c),
|
|
34601
34601
|
`${prettyNumber(r, c)} ${new PluralWord("column").pluralize(r)}`
|
|
34602
34602
|
].join(", ");
|
|
34603
|
-
var import_compiler_runtime$
|
|
34603
|
+
var import_compiler_runtime$104 = require_compiler_runtime(), MAX_FRACTION_DIGITS = 3;
|
|
34604
34604
|
const CellSelectionStats = (e) => {
|
|
34605
|
-
let r = (0, import_compiler_runtime$
|
|
34605
|
+
let r = (0, import_compiler_runtime$104.c)(21), { table: c, className: d } = e, { locale: f } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), h = useAtomValue(selectedCellsAtom), _ = countDataCellsInSelection(h);
|
|
34606
34606
|
if (_ < 2) {
|
|
34607
34607
|
let e2;
|
|
34608
34608
|
r[0] === d ? e2 = r[1] : (e2 = cn("text-xs text-muted-foreground/80 italic", d), r[0] = d, r[1] = e2);
|
|
@@ -34645,7 +34645,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34645
34645
|
var formatNumber = (e, r) => e.toLocaleString(r, {
|
|
34646
34646
|
maximumFractionDigits: MAX_FRACTION_DIGITS
|
|
34647
34647
|
}), StatSpan = (e) => {
|
|
34648
|
-
let r = (0, import_compiler_runtime$
|
|
34648
|
+
let r = (0, import_compiler_runtime$104.c)(6), { name: c, value: d, locale: f } = e, h;
|
|
34649
34649
|
r[0] !== f || r[1] !== d ? (h = formatNumber(d, f), r[0] = f, r[1] = d, r[2] = h) : h = r[2];
|
|
34650
34650
|
let _;
|
|
34651
34651
|
return r[3] !== c || r[4] !== h ? (_ = (0, import_jsx_runtime.jsxs)("span", {
|
|
@@ -34656,18 +34656,18 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34656
34656
|
]
|
|
34657
34657
|
}), r[3] = c, r[4] = h, r[5] = _) : _ = r[5], _;
|
|
34658
34658
|
}, CountStat = (e) => {
|
|
34659
|
-
let r = (0, import_compiler_runtime$
|
|
34659
|
+
let r = (0, import_compiler_runtime$104.c)(3), { count: c, locale: d } = e, f;
|
|
34660
34660
|
return r[0] !== c || r[1] !== d ? (f = (0, import_jsx_runtime.jsx)(StatSpan, {
|
|
34661
34661
|
name: "Count",
|
|
34662
34662
|
value: c,
|
|
34663
34663
|
locale: d
|
|
34664
34664
|
}), r[0] = c, r[1] = d, r[2] = f) : f = r[2], f;
|
|
34665
34665
|
}, SumStat = (e) => {
|
|
34666
|
-
let r = (0, import_compiler_runtime$
|
|
34666
|
+
let r = (0, import_compiler_runtime$104.c)(6), { numericValues: c, locale: d } = e;
|
|
34667
34667
|
if (c.length === 0) return null;
|
|
34668
34668
|
let f, h;
|
|
34669
34669
|
if (r[0] !== c) {
|
|
34670
|
-
let e2 = c.reduce(_temp$
|
|
34670
|
+
let e2 = c.reduce(_temp$34, 0);
|
|
34671
34671
|
f = Number, h = e2.toFixed(MAX_FRACTION_DIGITS), r[0] = c, r[1] = f, r[2] = h;
|
|
34672
34672
|
} else f = r[1], h = r[2];
|
|
34673
34673
|
let _ = f(h), v;
|
|
@@ -34677,7 +34677,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34677
34677
|
locale: d
|
|
34678
34678
|
}), r[3] = d, r[4] = _, r[5] = v) : v = r[5], v;
|
|
34679
34679
|
}, AverageStat = (e) => {
|
|
34680
|
-
let r = (0, import_compiler_runtime$
|
|
34680
|
+
let r = (0, import_compiler_runtime$104.c)(5), { numericValues: c, locale: d } = e;
|
|
34681
34681
|
if (c.length === 0) return null;
|
|
34682
34682
|
let f = c.reduce(_temp2$23, 0) / c.length, h;
|
|
34683
34683
|
r[0] === f ? h = r[1] : (h = f.toFixed(MAX_FRACTION_DIGITS), r[0] = f, r[1] = h);
|
|
@@ -34688,7 +34688,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34688
34688
|
locale: d
|
|
34689
34689
|
}), r[2] = _, r[3] = d, r[4] = v) : v = r[4], v;
|
|
34690
34690
|
};
|
|
34691
|
-
function _temp$
|
|
34691
|
+
function _temp$34(e, r) {
|
|
34692
34692
|
return e + r;
|
|
34693
34693
|
}
|
|
34694
34694
|
function _temp2$23(e, r) {
|
|
@@ -34826,8 +34826,8 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34826
34826
|
},
|
|
34827
34827
|
replace: (e, r) => e.endsWith(`.${r}`) ? e : `${Filenames.withoutExtension(e)}.${r}`
|
|
34828
34828
|
};
|
|
34829
|
-
var import_cuid2 = require_cuid2(), import_compiler_runtime$
|
|
34830
|
-
let c = (0, import_compiler_runtime$
|
|
34829
|
+
var import_cuid2 = require_cuid2(), import_compiler_runtime$103 = require_compiler_runtime(), Progress = import_react.forwardRef((e, r) => {
|
|
34830
|
+
let c = (0, import_compiler_runtime$103.c)(20), d, f, h, _;
|
|
34831
34831
|
c[0] === e ? (d = c[1], f = c[2], h = c[3], _ = c[4]) : ({ className: d, value: _, indeterminate: f, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h, c[4] = _);
|
|
34832
34832
|
let y;
|
|
34833
34833
|
c[5] === d ? y = c[6] : (y = cn("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", d), c[5] = d, c[6] = y);
|
|
@@ -34879,7 +34879,69 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34879
34879
|
let c = URL.createObjectURL(e);
|
|
34880
34880
|
downloadByURL(c, r), URL.revokeObjectURL(c);
|
|
34881
34881
|
}
|
|
34882
|
-
var import_compiler_runtime$
|
|
34882
|
+
var import_compiler_runtime$102 = require_compiler_runtime();
|
|
34883
|
+
const InstallPackageButton = (e) => {
|
|
34884
|
+
let r = (0, import_compiler_runtime$102.c)(13), { packages: c, showMaxPackages: d, className: f, onInstall: h } = e, { handleInstallPackages: _ } = useInstallPackages();
|
|
34885
|
+
if (!c || c.length === 0) return null;
|
|
34886
|
+
let y;
|
|
34887
|
+
r[0] !== _ || r[1] !== h || r[2] !== c ? (y = () => {
|
|
34888
|
+
_(c, h);
|
|
34889
|
+
}, r[0] = _, r[1] = h, r[2] = c, r[3] = y) : y = r[3];
|
|
34890
|
+
let S;
|
|
34891
|
+
r[4] === f ? S = r[5] : (S = cn("ml-2", f), r[4] = f, r[5] = S);
|
|
34892
|
+
let w;
|
|
34893
|
+
r[6] !== c || r[7] !== d ? (w = d ? c.slice(0, d).join(", ") : c.join(", "), r[6] = c, r[7] = d, r[8] = w) : w = r[8];
|
|
34894
|
+
let E;
|
|
34895
|
+
return r[9] !== y || r[10] !== S || r[11] !== w ? (E = (0, import_jsx_runtime.jsxs)(Button, {
|
|
34896
|
+
variant: "outline",
|
|
34897
|
+
size: "xs",
|
|
34898
|
+
onClick: y,
|
|
34899
|
+
className: S,
|
|
34900
|
+
children: [
|
|
34901
|
+
"Install",
|
|
34902
|
+
" ",
|
|
34903
|
+
w
|
|
34904
|
+
]
|
|
34905
|
+
}), r[9] = y, r[10] = S, r[11] = w, r[12] = E) : E = r[12], E;
|
|
34906
|
+
};
|
|
34907
|
+
var import_compiler_runtime$101 = require_compiler_runtime();
|
|
34908
|
+
const MissingPackagePrompt = (e) => {
|
|
34909
|
+
let r = (0, import_compiler_runtime$101.c)(16), { packages: c, featureName: d, description: f, onInstall: h, className: _ } = e;
|
|
34910
|
+
if (!useInstallAllowed()) {
|
|
34911
|
+
let e2;
|
|
34912
|
+
r[0] === _ ? e2 = r[1] : (e2 = cn("text-xs", _), r[0] = _, r[1] = e2);
|
|
34913
|
+
let c2;
|
|
34914
|
+
return r[2] !== d || r[3] !== e2 ? (c2 = (0, import_jsx_runtime.jsxs)("span", {
|
|
34915
|
+
className: e2,
|
|
34916
|
+
children: [
|
|
34917
|
+
d,
|
|
34918
|
+
" isn't available in this notebook"
|
|
34919
|
+
]
|
|
34920
|
+
}), r[2] = d, r[3] = e2, r[4] = c2) : c2 = r[4], c2;
|
|
34921
|
+
}
|
|
34922
|
+
let y;
|
|
34923
|
+
r[5] === _ ? y = r[6] : (y = cn("text-xs flex flex-col items-end gap-2", _), r[5] = _, r[6] = y);
|
|
34924
|
+
let S = f || `${d} requires ${c.join(", ")}`, w;
|
|
34925
|
+
r[7] === S ? w = r[8] : (w = (0, import_jsx_runtime.jsx)("span", {
|
|
34926
|
+
className: "self-start",
|
|
34927
|
+
children: S
|
|
34928
|
+
}), r[7] = S, r[8] = w);
|
|
34929
|
+
let E;
|
|
34930
|
+
r[9] !== h || r[10] !== c ? (E = (0, import_jsx_runtime.jsx)(InstallPackageButton, {
|
|
34931
|
+
packages: c,
|
|
34932
|
+
onInstall: h,
|
|
34933
|
+
className: "ml-0"
|
|
34934
|
+
}), r[9] = h, r[10] = c, r[11] = E) : E = r[11];
|
|
34935
|
+
let O;
|
|
34936
|
+
return r[12] !== y || r[13] !== w || r[14] !== E ? (O = (0, import_jsx_runtime.jsxs)("div", {
|
|
34937
|
+
className: y,
|
|
34938
|
+
children: [
|
|
34939
|
+
w,
|
|
34940
|
+
E
|
|
34941
|
+
]
|
|
34942
|
+
}), r[12] = y, r[13] = w, r[14] = E, r[15] = O) : O = r[15], O;
|
|
34943
|
+
};
|
|
34944
|
+
var import_compiler_runtime$100 = require_compiler_runtime(), FILE_TYPES = {
|
|
34883
34945
|
CSV: {
|
|
34884
34946
|
label: "CSV",
|
|
34885
34947
|
format: "csv",
|
|
@@ -34919,9 +34981,12 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34919
34981
|
FILE_TYPES.JSON,
|
|
34920
34982
|
FILE_TYPES.CSV,
|
|
34921
34983
|
FILE_TYPES.MARKDOWN
|
|
34922
|
-
]
|
|
34984
|
+
], labelForDownloadFormat = (e) => {
|
|
34985
|
+
var _a3;
|
|
34986
|
+
return ((_a3 = downloadOptions.find((r) => r.format === e)) == null ? void 0 : _a3.label) ?? e;
|
|
34987
|
+
};
|
|
34923
34988
|
const ExportMenu = (e) => {
|
|
34924
|
-
let r = (0, import_compiler_runtime$
|
|
34989
|
+
let r = (0, import_compiler_runtime$100.c)(48), { locale: c } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [d, f] = import_react.useState(false), h = d ? "text-primary" : "text-muted-foreground", _;
|
|
34925
34990
|
r[0] === h ? _ = r[1] : (_ = cn("print:hidden text-xs gap-1", h), r[0] = h, r[1] = _);
|
|
34926
34991
|
let y;
|
|
34927
34992
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (0, import_jsx_runtime.jsx)(Download, {
|
|
@@ -34939,139 +35004,159 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34939
35004
|
]
|
|
34940
35005
|
}), r[3] = _, r[4] = S);
|
|
34941
35006
|
let w = S, E;
|
|
34942
|
-
r[5] === e ? E = r[6] : (E = (r2) =>
|
|
34943
|
-
|
|
34944
|
-
|
|
34945
|
-
|
|
34946
|
-
|
|
34947
|
-
|
|
34948
|
-
|
|
34949
|
-
|
|
34950
|
-
|
|
34951
|
-
|
|
34952
|
-
|
|
34953
|
-
}
|
|
34954
|
-
|
|
34955
|
-
|
|
34956
|
-
|
|
34957
|
-
|
|
34958
|
-
|
|
34959
|
-
|
|
34960
|
-
|
|
34961
|
-
|
|
34962
|
-
break bb14;
|
|
34963
|
-
}
|
|
34964
|
-
case "markdown": {
|
|
34965
|
-
let { url: e3 } = await O("json");
|
|
34966
|
-
r2 = jsonToMarkdown(await fetchJson(e3));
|
|
34967
|
-
break bb14;
|
|
34968
|
-
}
|
|
34969
|
-
default:
|
|
34970
|
-
logNever(e2);
|
|
34971
|
-
return;
|
|
34972
|
-
}
|
|
34973
|
-
await copyToClipboard(r2), toast({
|
|
34974
|
-
title: "Copied to clipboard"
|
|
34975
|
-
});
|
|
34976
|
-
}, r[7] = O, r[8] = c, r[9] = M) : M = r[9];
|
|
34977
|
-
let I = M, z = d ? false : void 0, G;
|
|
34978
|
-
r[10] === w ? G = r[11] : (G = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34979
|
-
asChild: true,
|
|
34980
|
-
children: w
|
|
34981
|
-
}), r[10] = w, r[11] = G);
|
|
34982
|
-
let q;
|
|
34983
|
-
r[12] !== z || r[13] !== G ? (q = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34984
|
-
content: "Export",
|
|
34985
|
-
open: z,
|
|
34986
|
-
children: G
|
|
34987
|
-
}), r[12] = z, r[13] = G, r[14] = q) : q = r[14];
|
|
34988
|
-
let X7;
|
|
34989
|
-
r[15] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (X7 = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34990
|
-
className: "text-xs text-muted-foreground",
|
|
34991
|
-
children: "Download"
|
|
34992
|
-
}), r[15] = X7) : X7 = r[15];
|
|
34993
|
-
let Z7;
|
|
34994
|
-
r[16] === O ? Z7 = r[17] : (Z7 = downloadOptions.map((e2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34995
|
-
onSelect: async () => {
|
|
34996
|
-
let { url: r2, filename: c2 } = await O(e2.format), d2 = e2.format, f2 = (c2 ?? "").trim();
|
|
34997
|
-
downloadByURL(r2, `${Filenames.withoutExtension(f2) || "download"}.${d2}`);
|
|
34998
|
-
},
|
|
34999
|
-
children: [
|
|
35000
|
-
(0, import_jsx_runtime.jsx)(e2.icon, {
|
|
35001
|
-
className: "mo-dropdown-icon"
|
|
35002
|
-
}),
|
|
35003
|
-
(0, import_jsx_runtime.jsxs)("div", {
|
|
35004
|
-
className: "flex flex-col",
|
|
35005
|
-
children: [
|
|
35006
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
35007
|
-
children: e2.label
|
|
35008
|
-
}),
|
|
35009
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
35010
|
-
className: "text-xs text-muted-foreground",
|
|
35011
|
-
children: e2.description
|
|
35012
|
-
})
|
|
35013
|
-
]
|
|
35007
|
+
r[5] === e ? E = r[6] : (E = async (r2, c2) => {
|
|
35008
|
+
let d2;
|
|
35009
|
+
try {
|
|
35010
|
+
d2 = await e.downloadAs({
|
|
35011
|
+
format: r2
|
|
35012
|
+
});
|
|
35013
|
+
} catch (e2) {
|
|
35014
|
+
let r3 = e2;
|
|
35015
|
+
return toast({
|
|
35016
|
+
title: "Failed to download",
|
|
35017
|
+
description: typeof r3 == "object" && r3 && "message" in r3 ? String(r3.message) : String(r3)
|
|
35018
|
+
}), null;
|
|
35019
|
+
}
|
|
35020
|
+
return d2.missing_packages && d2.missing_packages.length > 0 ? (toast({
|
|
35021
|
+
title: "Export failed",
|
|
35022
|
+
description: (0, import_jsx_runtime.jsx)(MissingPackagePrompt, {
|
|
35023
|
+
packages: d2.missing_packages,
|
|
35024
|
+
featureName: `${labelForDownloadFormat(r2)} export`,
|
|
35025
|
+
description: d2.error,
|
|
35026
|
+
onInstall: c2
|
|
35014
35027
|
})
|
|
35015
|
-
|
|
35016
|
-
|
|
35017
|
-
|
|
35018
|
-
|
|
35019
|
-
|
|
35020
|
-
|
|
35021
|
-
|
|
35022
|
-
|
|
35023
|
-
|
|
35024
|
-
|
|
35025
|
-
|
|
35026
|
-
|
|
35027
|
-
|
|
35028
|
-
|
|
35029
|
-
|
|
35030
|
-
|
|
35031
|
-
|
|
35032
|
-
|
|
35028
|
+
}), null) : {
|
|
35029
|
+
url: d2.url,
|
|
35030
|
+
filename: d2.filename
|
|
35031
|
+
};
|
|
35032
|
+
}, r[5] = e, r[6] = E);
|
|
35033
|
+
let O = E, M, I, z, G, q, X7, Z7, Q7, $7, n9, r9, i9, a9;
|
|
35034
|
+
if (r[7] !== w || r[8] !== c || r[9] !== d || r[10] !== O) {
|
|
35035
|
+
let e2 = async (r2) => {
|
|
35036
|
+
let c2 = await O(r2, () => {
|
|
35037
|
+
e2(r2);
|
|
35038
|
+
});
|
|
35039
|
+
if (!c2) return;
|
|
35040
|
+
let d2 = (c2.filename ?? "").trim(), f2 = Filenames.withoutExtension(d2) || "download";
|
|
35041
|
+
downloadByURL(c2.url, `${f2}.${r2}`);
|
|
35042
|
+
}, h2 = async (e3) => {
|
|
35043
|
+
let r2 = await O(e3 === "csv" ? "csv" : "json", () => {
|
|
35044
|
+
h2(e3);
|
|
35045
|
+
});
|
|
35046
|
+
if (!r2) return;
|
|
35047
|
+
let d2;
|
|
35048
|
+
bb59: switch (e3) {
|
|
35049
|
+
case "tsv":
|
|
35050
|
+
d2 = jsonToTSV(await fetchJson(r2.url), c);
|
|
35051
|
+
break bb59;
|
|
35052
|
+
case "json": {
|
|
35053
|
+
let e4 = await fetchJson(r2.url);
|
|
35054
|
+
d2 = JSON.stringify(e4, null, 2);
|
|
35055
|
+
break bb59;
|
|
35056
|
+
}
|
|
35057
|
+
case "csv":
|
|
35058
|
+
d2 = await fetchText(r2.url);
|
|
35059
|
+
break bb59;
|
|
35060
|
+
case "markdown":
|
|
35061
|
+
d2 = jsonToMarkdown(await fetchJson(r2.url));
|
|
35062
|
+
break bb59;
|
|
35063
|
+
default:
|
|
35064
|
+
logNever(e3);
|
|
35065
|
+
return;
|
|
35033
35066
|
}
|
|
35034
|
-
|
|
35067
|
+
await copyToClipboard(d2), toast({
|
|
35068
|
+
title: "Copied to clipboard"
|
|
35069
|
+
});
|
|
35070
|
+
};
|
|
35071
|
+
I = DropdownMenu, q = false, X7 = d, Z7 = f;
|
|
35072
|
+
let _2 = d ? false : void 0, v;
|
|
35073
|
+
r[24] === w ? v = r[25] : (v = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
35074
|
+
asChild: true,
|
|
35075
|
+
children: w
|
|
35076
|
+
}), r[24] = w, r[25] = v), r[26] !== _2 || r[27] !== v ? (Q7 = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
35077
|
+
content: "Export",
|
|
35078
|
+
open: _2,
|
|
35079
|
+
children: v
|
|
35080
|
+
}), r[26] = _2, r[27] = v, r[28] = Q7) : Q7 = r[28], M = DropdownMenuContent, $7 = "bottom", n9 = "print:hidden", r[29] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r9 = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
35081
|
+
className: "text-xs text-muted-foreground",
|
|
35082
|
+
children: "Download"
|
|
35083
|
+
}), r[29] = r9) : r9 = r[29], i9 = downloadOptions.map((r2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
35084
|
+
onSelect: () => {
|
|
35085
|
+
e2(r2.format);
|
|
35086
|
+
},
|
|
35087
|
+
children: [
|
|
35088
|
+
(0, import_jsx_runtime.jsx)(r2.icon, {
|
|
35089
|
+
className: "mo-dropdown-icon"
|
|
35090
|
+
}),
|
|
35091
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
35092
|
+
className: "flex flex-col",
|
|
35093
|
+
children: [
|
|
35094
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
35095
|
+
children: r2.label
|
|
35096
|
+
}),
|
|
35097
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
35098
|
+
className: "text-xs text-muted-foreground",
|
|
35099
|
+
children: r2.description
|
|
35100
|
+
})
|
|
35101
|
+
]
|
|
35102
|
+
})
|
|
35103
|
+
]
|
|
35104
|
+
}, r2.label)), r[30] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a9 = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
35105
|
+
className: "text-xs text-muted-foreground",
|
|
35106
|
+
children: "Copy to clipboard"
|
|
35107
|
+
}), r[30] = z, r[31] = a9) : (z = r[30], a9 = r[31]), G = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
35108
|
+
onSelect: async () => {
|
|
35109
|
+
try {
|
|
35110
|
+
await h2(e3.format);
|
|
35111
|
+
} catch (e4) {
|
|
35112
|
+
toast({
|
|
35113
|
+
title: "Failed to copy to clipboard",
|
|
35114
|
+
description: prettyError(e4),
|
|
35115
|
+
variant: "danger"
|
|
35116
|
+
});
|
|
35117
|
+
}
|
|
35118
|
+
},
|
|
35119
|
+
children: [
|
|
35120
|
+
(0, import_jsx_runtime.jsx)(e3.icon, {
|
|
35121
|
+
className: "mo-dropdown-icon"
|
|
35122
|
+
}),
|
|
35123
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
35124
|
+
className: "flex flex-col",
|
|
35125
|
+
children: [
|
|
35126
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
35127
|
+
children: e3.label
|
|
35128
|
+
}),
|
|
35129
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
35130
|
+
className: "text-xs text-muted-foreground",
|
|
35131
|
+
children: e3.description
|
|
35132
|
+
})
|
|
35133
|
+
]
|
|
35134
|
+
})
|
|
35135
|
+
]
|
|
35136
|
+
}, e3.label)), r[7] = w, r[8] = c, r[9] = d, r[10] = O, r[11] = M, r[12] = I, r[13] = z, r[14] = G, r[15] = q, r[16] = X7, r[17] = Z7, r[18] = Q7, r[19] = $7, r[20] = n9, r[21] = r9, r[22] = i9, r[23] = a9;
|
|
35137
|
+
} else M = r[11], I = r[12], z = r[13], G = r[14], q = r[15], X7 = r[16], Z7 = r[17], Q7 = r[18], $7 = r[19], n9 = r[20], r9 = r[21], i9 = r[22], a9 = r[23];
|
|
35138
|
+
let o9;
|
|
35139
|
+
r[32] !== M || r[33] !== z || r[34] !== G || r[35] !== $7 || r[36] !== n9 || r[37] !== r9 || r[38] !== i9 || r[39] !== a9 ? (o9 = (0, import_jsx_runtime.jsxs)(M, {
|
|
35140
|
+
side: $7,
|
|
35141
|
+
className: n9,
|
|
35035
35142
|
children: [
|
|
35036
|
-
|
|
35037
|
-
|
|
35038
|
-
|
|
35039
|
-
|
|
35040
|
-
|
|
35041
|
-
children: [
|
|
35042
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
35043
|
-
children: e2.label
|
|
35044
|
-
}),
|
|
35045
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
35046
|
-
className: "text-xs text-muted-foreground",
|
|
35047
|
-
children: e2.description
|
|
35048
|
-
})
|
|
35049
|
-
]
|
|
35050
|
-
})
|
|
35143
|
+
r9,
|
|
35144
|
+
i9,
|
|
35145
|
+
a9,
|
|
35146
|
+
z,
|
|
35147
|
+
G
|
|
35051
35148
|
]
|
|
35052
|
-
},
|
|
35053
|
-
let
|
|
35054
|
-
r[
|
|
35055
|
-
|
|
35056
|
-
|
|
35149
|
+
}), r[32] = M, r[33] = z, r[34] = G, r[35] = $7, r[36] = n9, r[37] = r9, r[38] = i9, r[39] = a9, r[40] = o9) : o9 = r[40];
|
|
35150
|
+
let s9;
|
|
35151
|
+
return r[41] !== I || r[42] !== q || r[43] !== X7 || r[44] !== Z7 || r[45] !== Q7 || r[46] !== o9 ? (s9 = (0, import_jsx_runtime.jsxs)(I, {
|
|
35152
|
+
modal: q,
|
|
35153
|
+
open: X7,
|
|
35154
|
+
onOpenChange: Z7,
|
|
35057
35155
|
children: [
|
|
35058
|
-
X7,
|
|
35059
|
-
Z7,
|
|
35060
35156
|
Q7,
|
|
35061
|
-
|
|
35062
|
-
n9
|
|
35063
|
-
]
|
|
35064
|
-
}), r[22] = Z7, r[23] = n9, r[24] = r9) : r9 = r[24];
|
|
35065
|
-
let i9;
|
|
35066
|
-
return r[25] !== d || r[26] !== r9 || r[27] !== q ? (i9 = (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
35067
|
-
modal: false,
|
|
35068
|
-
open: d,
|
|
35069
|
-
onOpenChange: f,
|
|
35070
|
-
children: [
|
|
35071
|
-
q,
|
|
35072
|
-
r9
|
|
35157
|
+
o9
|
|
35073
35158
|
]
|
|
35074
|
-
}), r[
|
|
35159
|
+
}), r[41] = I, r[42] = q, r[43] = X7, r[44] = Z7, r[45] = Q7, r[46] = o9, r[47] = s9) : s9 = r[47], s9;
|
|
35075
35160
|
};
|
|
35076
35161
|
function fetchJson(e) {
|
|
35077
35162
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -35082,12 +35167,6 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
35082
35167
|
return e2.text();
|
|
35083
35168
|
});
|
|
35084
35169
|
}
|
|
35085
|
-
function _temp$34(e) {
|
|
35086
|
-
throw toast({
|
|
35087
|
-
title: "Failed to download",
|
|
35088
|
-
description: "message" in e ? e.message : String(e)
|
|
35089
|
-
}), e;
|
|
35090
|
-
}
|
|
35091
35170
|
var NOOP_ON_SEARCH = () => {
|
|
35092
35171
|
};
|
|
35093
35172
|
const TableTopBar = ({ enableSearch: e, searchQuery: r, onSearchQueryChange: c, reloading: d, showChartBuilder: f, isChartBuilderOpen: h, toggleDisplayHeader: _, showTableExplorer: y, togglePanel: S, isAnyPanelOpen: w, downloadAs: E }) => {
|
|
@@ -35370,10 +35449,10 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
35370
35449
|
]
|
|
35371
35450
|
}), e.focus(), true;
|
|
35372
35451
|
}
|
|
35373
|
-
var import_compiler_runtime$
|
|
35452
|
+
var import_compiler_runtime$98 = require_compiler_runtime(), KEY$1 = "item";
|
|
35374
35453
|
const MarimoTracebackOutput = (e) => {
|
|
35375
35454
|
var _a3;
|
|
35376
|
-
let r = (0, import_compiler_runtime$
|
|
35455
|
+
let r = (0, import_compiler_runtime$98.c)(47), { onRefactorWithAI: c, traceback: d, cellId: f } = e, h;
|
|
35377
35456
|
r[0] === d ? h = r[1] : (h = renderHTML({
|
|
35378
35457
|
html: d,
|
|
35379
35458
|
additionalReplacements: [
|
|
@@ -35419,36 +35498,36 @@ ${w}`,
|
|
|
35419
35498
|
e9
|
|
35420
35499
|
]
|
|
35421
35500
|
}), r[17] = e9, r[18] = c9, r[19] = l9) : l9 = r[19];
|
|
35422
|
-
let
|
|
35423
|
-
r[20] !== l9 || r[21] !== o9 ? (
|
|
35501
|
+
let u9;
|
|
35502
|
+
r[20] !== l9 || r[21] !== o9 ? (u9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
35424
35503
|
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
35425
35504
|
onClick: r9,
|
|
35426
35505
|
children: [
|
|
35427
35506
|
o9,
|
|
35428
35507
|
l9
|
|
35429
35508
|
]
|
|
35430
|
-
}), r[20] = l9, r[21] = o9, r[22] =
|
|
35509
|
+
}), r[20] = l9, r[21] = o9, r[22] = u9) : u9 = r[22];
|
|
35431
35510
|
let f9;
|
|
35432
35511
|
r[23] === _ ? f9 = r[24] : (f9 = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
35433
35512
|
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
35434
35513
|
children: _
|
|
35435
35514
|
}), r[23] = _, r[24] = f9);
|
|
35436
|
-
let
|
|
35437
|
-
r[25] !==
|
|
35515
|
+
let p9;
|
|
35516
|
+
r[25] !== u9 || r[26] !== f9 ? (p9 = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
35438
35517
|
value: KEY$1,
|
|
35439
35518
|
className: "border-none",
|
|
35440
35519
|
children: [
|
|
35441
|
-
|
|
35520
|
+
u9,
|
|
35442
35521
|
f9
|
|
35443
35522
|
]
|
|
35444
|
-
}), r[25] =
|
|
35523
|
+
}), r[25] = u9, r[26] = f9, r[27] = p9) : p9 = r[27];
|
|
35445
35524
|
let h9;
|
|
35446
|
-
r[28] !==
|
|
35525
|
+
r[28] !== p9 || r[29] !== n9 ? (h9 = (0, import_jsx_runtime.jsx)(Accordion, {
|
|
35447
35526
|
type: "single",
|
|
35448
35527
|
collapsible: true,
|
|
35449
35528
|
value: n9,
|
|
35450
|
-
children:
|
|
35451
|
-
}), r[28] =
|
|
35529
|
+
children: p9
|
|
35530
|
+
}), r[28] = p9, r[29] = n9, r[30] = h9) : h9 = r[30];
|
|
35452
35531
|
let g9;
|
|
35453
35532
|
r[31] !== Z7 || r[32] !== q ? (g9 = q && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
35454
35533
|
tooltip: "Fix with AI",
|
|
@@ -35622,7 +35701,7 @@ ${w}`,
|
|
|
35622
35701
|
});
|
|
35623
35702
|
};
|
|
35624
35703
|
var InsertBreakpointContent = () => {
|
|
35625
|
-
let e = (0, import_compiler_runtime$
|
|
35704
|
+
let e = (0, import_compiler_runtime$98.c)(1), r;
|
|
35626
35705
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
35627
35706
|
children: [
|
|
35628
35707
|
"Insert a ",
|
|
@@ -35676,9 +35755,9 @@ ${w}`,
|
|
|
35676
35755
|
return "\u2753";
|
|
35677
35756
|
}
|
|
35678
35757
|
}
|
|
35679
|
-
var import_compiler_runtime$
|
|
35758
|
+
var import_compiler_runtime$97 = require_compiler_runtime(), METADATA_KEY = "__metadata__";
|
|
35680
35759
|
const OutputRenderer = (0, import_react.memo)((e) => {
|
|
35681
|
-
let r = (0, import_compiler_runtime$
|
|
35760
|
+
let r = (0, import_compiler_runtime$97.c)(54), { message: c, onRefactorWithAI: d, cellId: f, wrapText: h, metadata: _, renderFallback: v } = e, { theme: y } = useTheme(), S;
|
|
35682
35761
|
bb0: {
|
|
35683
35762
|
let e2 = c.data;
|
|
35684
35763
|
switch (c.mimetype) {
|
|
@@ -35870,7 +35949,7 @@ ${w}`,
|
|
|
35870
35949
|
OutputRenderer.displayName = "OutputRenderer";
|
|
35871
35950
|
var MimeBundleOutputRenderer = (0, import_react.memo)((e) => {
|
|
35872
35951
|
var _a3;
|
|
35873
|
-
let r = (0, import_compiler_runtime$
|
|
35952
|
+
let r = (0, import_compiler_runtime$97.c)(31), { data: c, channel: d, cellId: f } = e, h = Array.isArray(c) ? c[0] : c, { mode: y } = useAtomValue(viewStateAtom), S = y === "present" || y === "read", w = h[METADATA_KEY], E, O, M, I, z, Y7, G, q;
|
|
35874
35953
|
if (r[0] !== S || r[1] !== f || r[2] !== d || r[3] !== w || r[4] !== h) {
|
|
35875
35954
|
q = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
35876
35955
|
bb0: {
|
|
@@ -35941,7 +36020,7 @@ ${w}`,
|
|
|
35941
36020
|
});
|
|
35942
36021
|
MimeBundleOutputRenderer.displayName = "MimeBundleOutputRenderer";
|
|
35943
36022
|
const OutputArea = import_react.memo((e) => {
|
|
35944
|
-
let r = (0, import_compiler_runtime$
|
|
36023
|
+
let r = (0, import_compiler_runtime$97.c)(17), { output: c, cellId: d, stale: f, loading: h, allowExpand: _, forceExpand: y, className: S } = e;
|
|
35945
36024
|
if (c == null || c.channel === "output" && c.data === "") return null;
|
|
35946
36025
|
let w = f ? "This output is stale" : void 0, E = _ ? ExpandableOutput : Div, O;
|
|
35947
36026
|
r[0] === d ? O = r[1] : (O = CellOutputId.create(d), r[0] = d, r[1] = O);
|
|
@@ -35966,7 +36045,7 @@ ${w}`,
|
|
|
35966
36045
|
});
|
|
35967
36046
|
OutputArea.displayName = "OutputArea";
|
|
35968
36047
|
var Div = import_react.forwardRef((e, r) => {
|
|
35969
|
-
let c = (0, import_compiler_runtime$
|
|
36048
|
+
let c = (0, import_compiler_runtime$97.c)(3), d;
|
|
35970
36049
|
return c[0] !== e || c[1] !== r ? (d = (0, import_jsx_runtime.jsx)("div", {
|
|
35971
36050
|
ref: r,
|
|
35972
36051
|
...e
|
|
@@ -35974,7 +36053,7 @@ ${w}`,
|
|
|
35974
36053
|
});
|
|
35975
36054
|
Div.displayName = "Div";
|
|
35976
36055
|
var ExpandableOutput = import_react.memo((e) => {
|
|
35977
|
-
let r = (0, import_compiler_runtime$
|
|
36056
|
+
let r = (0, import_compiler_runtime$97.c)(24), { cellId: c, children: d, forceExpand: f, ...h } = e, _ = (0, import_react.useRef)(null), [S, w] = useExpandedOutput(c), E = useOverflowDetection(_), { hasFullscreen: O } = useIframeCapabilities(), M;
|
|
35978
36057
|
r[0] === O ? M = r[1] : (M = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
35979
36058
|
content: "Fullscreen",
|
|
35980
36059
|
side: "left",
|
|
@@ -36085,8 +36164,8 @@ ${w}`,
|
|
|
36085
36164
|
})
|
|
36086
36165
|
}, r);
|
|
36087
36166
|
}
|
|
36088
|
-
var import_compiler_runtime$
|
|
36089
|
-
let r = (0, import_compiler_runtime$
|
|
36167
|
+
var import_compiler_runtime$96 = require_compiler_runtime(), CopyButton$1 = (e) => {
|
|
36168
|
+
let r = (0, import_compiler_runtime$96.c)(8), { value: c } = e, d = typeof c == "string" && (c.startsWith("text/html:") || c.startsWith("image/") || c.startsWith("video/")), [f, h] = (0, import_react.useState)(false), _;
|
|
36090
36169
|
r[0] === c ? _ = r[1] : (_ = async (e2) => {
|
|
36091
36170
|
e2.stopPropagation(), await copyToClipboard(c), h(true), setTimeout(() => h(false), 1e3);
|
|
36092
36171
|
}, r[0] = c, r[1] = _);
|
|
@@ -36109,7 +36188,7 @@ ${w}`,
|
|
|
36109
36188
|
children: w
|
|
36110
36189
|
}), r[5] = y, r[6] = w, r[7] = E) : E = r[7], E;
|
|
36111
36190
|
}, JSONCopyButton = (e) => {
|
|
36112
|
-
let r = (0, import_compiler_runtime$
|
|
36191
|
+
let r = (0, import_compiler_runtime$96.c)(5), c;
|
|
36113
36192
|
r[0] === e.value ? c = r[1] : (c = JSON.stringify(e.value, null, 2), r[0] = e.value, r[1] = c);
|
|
36114
36193
|
let d;
|
|
36115
36194
|
return r[2] !== e || r[3] !== c ? (d = (0, import_jsx_runtime.jsx)(CopyButton$1, {
|
|
@@ -36117,7 +36196,7 @@ ${w}`,
|
|
|
36117
36196
|
value: c
|
|
36118
36197
|
}), r[2] = e, r[3] = c, r[4] = d) : d = r[4], d;
|
|
36119
36198
|
}, PyCopyButton = (e) => {
|
|
36120
|
-
let r = (0, import_compiler_runtime$
|
|
36199
|
+
let r = (0, import_compiler_runtime$96.c)(5), c;
|
|
36121
36200
|
r[0] === e.value ? c = r[1] : (c = getCopyValue(e.value), r[0] = e.value, r[1] = c);
|
|
36122
36201
|
let d;
|
|
36123
36202
|
return r[2] !== e || r[3] !== c ? (d = (0, import_jsx_runtime.jsx)(CopyButton$1, {
|
|
@@ -36126,7 +36205,7 @@ ${w}`,
|
|
|
36126
36205
|
}), r[2] = e, r[3] = c, r[4] = d) : d = r[4], d;
|
|
36127
36206
|
};
|
|
36128
36207
|
const JsonOutput = (0, import_react.memo)((e) => {
|
|
36129
|
-
let r = (0, import_compiler_runtime$
|
|
36208
|
+
let r = (0, import_compiler_runtime$96.c)(23), { data: c, format: d, name: f, valueTypes: h, className: _ } = e, y = d === void 0 ? "auto" : d, S = f === void 0 ? false : f, w = h === void 0 ? "python" : h, { theme: E } = useTheme();
|
|
36130
36209
|
y === "auto" && (y = inferBestFormat(c));
|
|
36131
36210
|
let O;
|
|
36132
36211
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
@@ -36185,7 +36264,7 @@ ${w}`,
|
|
|
36185
36264
|
return typeof e == "object" && e ? "tree" : "raw";
|
|
36186
36265
|
}
|
|
36187
36266
|
var COLLAPSED_TEXT_LENGTH = 100, CollapsibleTextOutput = (e) => {
|
|
36188
|
-
let r = (0, import_compiler_runtime$
|
|
36267
|
+
let r = (0, import_compiler_runtime$96.c)(11), [c, d] = (0, import_react.useState)(true);
|
|
36189
36268
|
if (e.text.length <= COLLAPSED_TEXT_LENGTH) {
|
|
36190
36269
|
let c2;
|
|
36191
36270
|
return r[0] === e.text ? c2 = r[1] : (c2 = (0, import_jsx_runtime.jsx)("span", {
|
|
@@ -36394,9 +36473,9 @@ ${w}`,
|
|
|
36394
36473
|
return c <= 20 ? void 0 : c >= 50 ? 5 : 10;
|
|
36395
36474
|
}
|
|
36396
36475
|
}
|
|
36397
|
-
var import_compiler_runtime$
|
|
36476
|
+
var import_compiler_runtime$95 = require_compiler_runtime(), Accordion$1 = Root2$4, AccordionContent$1 = Content2$1, AccordionItem$1 = Item$1, AccordionTrigger$1 = Trigger2;
|
|
36398
36477
|
const BadPluginData = (e) => {
|
|
36399
|
-
let r = (0, import_compiler_runtime$
|
|
36478
|
+
let r = (0, import_compiler_runtime$95.c)(16), { error: c, badData: d, shadowRoot: f } = e;
|
|
36400
36479
|
if (c instanceof ZodError) {
|
|
36401
36480
|
let e2;
|
|
36402
36481
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
@@ -36875,9 +36954,9 @@ ${w}`,
|
|
|
36875
36954
|
}
|
|
36876
36955
|
};
|
|
36877
36956
|
}
|
|
36878
|
-
var import_compiler_runtime$
|
|
36957
|
+
var import_compiler_runtime$94 = require_compiler_runtime();
|
|
36879
36958
|
function useAnyWidgetModule(e) {
|
|
36880
|
-
let r = (0, import_compiler_runtime$
|
|
36959
|
+
let r = (0, import_compiler_runtime$94.c)(16), { jsUrl: c, jsHash: d } = e, f;
|
|
36881
36960
|
r[0] !== d || r[1] !== c ? (f = async () => await WIDGET_DEF_REGISTRY.getModule(c, d), r[0] = d, r[1] = c, r[2] = f) : f = r[2];
|
|
36882
36961
|
let h;
|
|
36883
36962
|
r[3] === d ? h = r[4] : (h = [
|
|
@@ -36931,7 +37010,7 @@ ${w}`,
|
|
|
36931
37010
|
...e
|
|
36932
37011
|
}));
|
|
36933
37012
|
var AnyWidgetSlot = (e) => {
|
|
36934
|
-
let r = (0, import_compiler_runtime$
|
|
37013
|
+
let r = (0, import_compiler_runtime$94.c)(14), { jsUrl: c, jsHash: d, modelId: f } = e.data, h = e.host, _;
|
|
36935
37014
|
r[0] !== d || r[1] !== c ? (_ = {
|
|
36936
37015
|
jsUrl: c,
|
|
36937
37016
|
jsHash: d
|
|
@@ -36972,7 +37051,7 @@ ${w}`,
|
|
|
36972
37051
|
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;
|
|
36973
37052
|
}
|
|
36974
37053
|
var LoadedSlot = (e) => {
|
|
36975
|
-
let r = (0, import_compiler_runtime$
|
|
37054
|
+
let r = (0, import_compiler_runtime$94.c)(9), { widget: c, modelId: d, host: f } = e, _ = (0, import_react.useRef)(null), v, y;
|
|
36976
37055
|
r[0] === d ? (v = r[1], y = r[2]) : (v = MODEL_MANAGER.getSync(d), v || Logger.error("Model not found for modelId", d), y = v == null ? void 0 : v.get("_css"), r[0] = d, r[1] = v, r[2] = y), useMountCss(y, f);
|
|
36977
37056
|
let S, w;
|
|
36978
37057
|
r[3] !== v || r[4] !== d || r[5] !== c ? (S = () => {
|
|
@@ -36988,9 +37067,9 @@ ${w}`,
|
|
|
36988
37067
|
return r[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (0, import_jsx_runtime.jsx)("div", {
|
|
36989
37068
|
ref: _
|
|
36990
37069
|
}), r[8] = E) : E = r[8], E;
|
|
36991
|
-
}, import_compiler_runtime$
|
|
37070
|
+
}, import_compiler_runtime$93 = require_compiler_runtime();
|
|
36992
37071
|
const KeyboardHotkeys = (e) => {
|
|
36993
|
-
let r = (0, import_compiler_runtime$
|
|
37072
|
+
let r = (0, import_compiler_runtime$93.c)(10), { shortcut: c, className: d } = e;
|
|
36994
37073
|
if (c === NOT_SET || c === "") {
|
|
36995
37074
|
let e2;
|
|
36996
37075
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)("span", {}), r[0] = e2) : e2 = r[0], e2;
|
|
@@ -37226,9 +37305,9 @@ ${w}`,
|
|
|
37226
37305
|
return "success";
|
|
37227
37306
|
}
|
|
37228
37307
|
}
|
|
37229
|
-
var import_compiler_runtime$
|
|
37308
|
+
var import_compiler_runtime$92 = require_compiler_runtime();
|
|
37230
37309
|
const Labeled = (e) => {
|
|
37231
|
-
let r = (0, import_compiler_runtime$
|
|
37310
|
+
let r = (0, import_compiler_runtime$92.c)(27), { label: c, children: d, align: f, className: h, labelClassName: _, fullWidth: y, id: S } = e, w = f === void 0 ? "left" : f;
|
|
37232
37311
|
if (y && (w = "top"), !c) {
|
|
37233
37312
|
if (w === "top") {
|
|
37234
37313
|
let e3;
|
|
@@ -37272,7 +37351,7 @@ ${w}`,
|
|
|
37272
37351
|
]
|
|
37273
37352
|
}), r[23] = d, r[24] = I, r[25] = Z7, r[26] = Q7) : Q7 = r[26], Q7;
|
|
37274
37353
|
};
|
|
37275
|
-
var import_compiler_runtime$
|
|
37354
|
+
var import_compiler_runtime$91 = require_compiler_runtime(), CheckboxPlugin = class {
|
|
37276
37355
|
constructor() {
|
|
37277
37356
|
__publicField(this, "tagName", "marimo-checkbox");
|
|
37278
37357
|
__publicField(this, "validator", object({
|
|
@@ -37287,7 +37366,7 @@ ${w}`,
|
|
|
37287
37366
|
});
|
|
37288
37367
|
}
|
|
37289
37368
|
}, CheckboxComponent = (e) => {
|
|
37290
|
-
let r = (0, import_compiler_runtime$
|
|
37369
|
+
let r = (0, import_compiler_runtime$91.c)(11), { value: c, setValue: d, data: f } = e, h;
|
|
37291
37370
|
r[0] === d ? h = r[1] : (h = (e2) => {
|
|
37292
37371
|
e2 !== "indeterminate" && d(e2);
|
|
37293
37372
|
}, r[0] = d, r[1] = h);
|
|
@@ -37306,7 +37385,7 @@ ${w}`,
|
|
|
37306
37385
|
id: v,
|
|
37307
37386
|
children: y
|
|
37308
37387
|
}), r[7] = f.label, r[8] = v, r[9] = y, r[10] = S) : S = r[10], S;
|
|
37309
|
-
}, import_compiler_runtime$
|
|
37388
|
+
}, import_compiler_runtime$90 = require_compiler_runtime(), CodeEditorPlugin = class {
|
|
37310
37389
|
constructor() {
|
|
37311
37390
|
__publicField(this, "tagName", "marimo-code-editor");
|
|
37312
37391
|
__publicField(this, "validator", object({
|
|
@@ -37336,7 +37415,7 @@ ${w}`,
|
|
|
37336
37415
|
});
|
|
37337
37416
|
}
|
|
37338
37417
|
}, CodeEditorComponent = (e) => {
|
|
37339
|
-
let r = (0, import_compiler_runtime$
|
|
37418
|
+
let r = (0, import_compiler_runtime$90.c)(34), { theme: c } = useTheme(), d = e.theme || c, f = e.minHeight ? `${e.minHeight}px` : "70px", h = e.maxHeight ? `${e.maxHeight}px` : void 0, [_, v] = (0, import_react.useState)(e.value), y = Number.isFinite(e.debounce) ? e.debounce : 0, S = !Number.isFinite(e.debounce), w;
|
|
37340
37419
|
r[0] !== e.setValue || r[1] !== e.value || r[2] !== y || r[3] !== S ? (w = {
|
|
37341
37420
|
initialValue: e.value,
|
|
37342
37421
|
delay: y,
|
|
@@ -37407,7 +37486,7 @@ ${w}`,
|
|
|
37407
37486
|
};
|
|
37408
37487
|
}
|
|
37409
37488
|
};
|
|
37410
|
-
var LazyChatbot = import_react.lazy(() => import("./chat-ui-
|
|
37489
|
+
var LazyChatbot = import_react.lazy(() => import("./chat-ui-d0C1glXQ.js").then((e) => ({
|
|
37411
37490
|
default: e.Chatbot
|
|
37412
37491
|
}))), messageSchema = array(object({
|
|
37413
37492
|
id: string(),
|
|
@@ -37471,9 +37550,9 @@ ${w}`,
|
|
|
37471
37550
|
})
|
|
37472
37551
|
});
|
|
37473
37552
|
});
|
|
37474
|
-
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$
|
|
37553
|
+
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$89 = require_compiler_runtime();
|
|
37475
37554
|
const LoadingTable = (e) => {
|
|
37476
|
-
let r = (0, import_compiler_runtime$
|
|
37555
|
+
let r = (0, import_compiler_runtime$89.c)(14), { wrapperClassName: c, className: d, pageSize: f } = e, h = f === void 0 ? 10 : f, _;
|
|
37477
37556
|
r[0] === c ? _ = r[1] : (_ = cn(c, "flex flex-col space-y-2"), r[0] = c, r[1] = _);
|
|
37478
37557
|
let y = d || "rounded-md border", S;
|
|
37479
37558
|
r[2] === y ? S = r[3] : (S = cn(y), r[2] = y, r[3] = S);
|
|
@@ -37551,7 +37630,7 @@ ${w}`,
|
|
|
37551
37630
|
"time",
|
|
37552
37631
|
"unknown"
|
|
37553
37632
|
];
|
|
37554
|
-
var import_compiler_runtime$
|
|
37633
|
+
var import_compiler_runtime$88 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-BaAX1uv-.js").then(async (m2) => {
|
|
37555
37634
|
await m2.__tla;
|
|
37556
37635
|
return m2;
|
|
37557
37636
|
}));
|
|
@@ -37596,7 +37675,7 @@ ${w}`,
|
|
|
37596
37675
|
editableColumns: e.data.editableColumns
|
|
37597
37676
|
}));
|
|
37598
37677
|
var LoadingDataEditor = (e) => {
|
|
37599
|
-
let r = (0, import_compiler_runtime$
|
|
37678
|
+
let r = (0, import_compiler_runtime$88.c)(31), c;
|
|
37600
37679
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = [], r[0] = c) : c = r[0];
|
|
37601
37680
|
let [d, f] = (0, import_react.useState)(c), h;
|
|
37602
37681
|
r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {}, r[1] = h) : h = r[1];
|
|
@@ -39271,8 +39350,8 @@ ${w}`,
|
|
|
39271
39350
|
_.height
|
|
39272
39351
|
]);
|
|
39273
39352
|
}
|
|
39274
|
-
var import_compiler_runtime$
|
|
39275
|
-
let r = (0, import_compiler_runtime$
|
|
39353
|
+
var import_compiler_runtime$87 = require_compiler_runtime(), Form$1 = FormProvider, FormFieldContext = import_react.createContext({}), FormField = (e) => {
|
|
39354
|
+
let r = (0, import_compiler_runtime$87.c)(10), c;
|
|
39276
39355
|
r[0] === e ? c = r[1] : ({ ...c } = e, r[0] = e, r[1] = c);
|
|
39277
39356
|
let d;
|
|
39278
39357
|
r[2] === c.name ? d = r[3] : (d = {
|
|
@@ -39288,7 +39367,7 @@ ${w}`,
|
|
|
39288
39367
|
children: f
|
|
39289
39368
|
}, c.name), r[6] = c.name, r[7] = d, r[8] = f, r[9] = h) : h = r[9], h;
|
|
39290
39369
|
}, useFormField = () => {
|
|
39291
|
-
let e = (0, import_compiler_runtime$
|
|
39370
|
+
let e = (0, import_compiler_runtime$87.c)(11), r = import_react.use(FormFieldContext), c = import_react.use(FormItemContext), { getFieldState: d, formState: f } = useFormContext(), h;
|
|
39292
39371
|
e[0] !== r.name || e[1] !== f || e[2] !== d ? (h = d(r.name, f), e[0] = r.name, e[1] = f, e[2] = d, e[3] = h) : h = e[3];
|
|
39293
39372
|
let _ = h;
|
|
39294
39373
|
if (!r) throw Error("useFormField should be used within <FormField>");
|
|
@@ -39302,7 +39381,7 @@ ${w}`,
|
|
|
39302
39381
|
..._
|
|
39303
39382
|
}, e[4] = r.name, e[5] = _, e[6] = v, e[7] = y, e[8] = S, e[9] = w, e[10] = E) : E = e[10], E;
|
|
39304
39383
|
}, FormItemContext = import_react.createContext({}), FormItem = import_react.forwardRef((e, r) => {
|
|
39305
|
-
let c = (0, import_compiler_runtime$
|
|
39384
|
+
let c = (0, import_compiler_runtime$87.c)(14), d, f;
|
|
39306
39385
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
39307
39386
|
let h = import_react.useId(), _;
|
|
39308
39387
|
c[3] === h ? _ = c[4] : (_ = {
|
|
@@ -39324,7 +39403,7 @@ ${w}`,
|
|
|
39324
39403
|
});
|
|
39325
39404
|
FormItem.displayName = "FormItem";
|
|
39326
39405
|
var FormLabel = import_react.forwardRef((e, r) => {
|
|
39327
|
-
let c = (0, import_compiler_runtime$
|
|
39406
|
+
let c = (0, import_compiler_runtime$87.c)(11), d, f;
|
|
39328
39407
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
39329
39408
|
let { error: h, formItemId: _ } = useFormField();
|
|
39330
39409
|
if (!f.children) return;
|
|
@@ -39340,7 +39419,7 @@ ${w}`,
|
|
|
39340
39419
|
});
|
|
39341
39420
|
FormLabel.displayName = "FormLabel";
|
|
39342
39421
|
var FormControl = import_react.forwardRef((e, r) => {
|
|
39343
|
-
let c = (0, import_compiler_runtime$
|
|
39422
|
+
let c = (0, import_compiler_runtime$87.c)(8), d;
|
|
39344
39423
|
c[0] === e ? d = c[1] : ({ ...d } = e, c[0] = e, c[1] = d);
|
|
39345
39424
|
let { error: f, formItemId: h, formDescriptionId: _, formMessageId: v } = useFormField(), y = f ? `${_} ${v}` : _, S = !!f, w;
|
|
39346
39425
|
return c[2] !== h || c[3] !== d || c[4] !== r || c[5] !== y || c[6] !== S ? (w = (0, import_jsx_runtime.jsx)(Slot$1, {
|
|
@@ -39353,7 +39432,7 @@ ${w}`,
|
|
|
39353
39432
|
});
|
|
39354
39433
|
FormControl.displayName = "FormControl";
|
|
39355
39434
|
var FormDescription = import_react.forwardRef((e, r) => {
|
|
39356
|
-
let c = (0, import_compiler_runtime$
|
|
39435
|
+
let c = (0, import_compiler_runtime$87.c)(10), d, f;
|
|
39357
39436
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
39358
39437
|
let { formDescriptionId: h } = useFormField();
|
|
39359
39438
|
if (!f.children) return null;
|
|
@@ -39369,7 +39448,7 @@ ${w}`,
|
|
|
39369
39448
|
});
|
|
39370
39449
|
FormDescription.displayName = "FormDescription";
|
|
39371
39450
|
var FormMessage = import_react.forwardRef((e, r) => {
|
|
39372
|
-
let c = (0, import_compiler_runtime$
|
|
39451
|
+
let c = (0, import_compiler_runtime$87.c)(12), d, f, h;
|
|
39373
39452
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: f, children: d, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
39374
39453
|
let { error: _, formMessageId: y } = useFormField(), S = (_ == null ? void 0 : _.message) ? String(_ == null ? void 0 : _.message) : d;
|
|
39375
39454
|
if (!S) return null;
|
|
@@ -39386,7 +39465,7 @@ ${w}`,
|
|
|
39386
39465
|
});
|
|
39387
39466
|
FormMessage.displayName = "FormMessage";
|
|
39388
39467
|
var FormMessageTooltip = (e) => {
|
|
39389
|
-
let r = (0, import_compiler_runtime$
|
|
39468
|
+
let r = (0, import_compiler_runtime$87.c)(7), { className: c } = e, { error: d } = useFormField(), f = (d == null ? void 0 : d.message) ? String(d == null ? void 0 : d.message) : null;
|
|
39390
39469
|
if (!f) return null;
|
|
39391
39470
|
let h;
|
|
39392
39471
|
r[0] === c ? h = r[1] : (h = cn("stroke-[1.8px]", c), r[0] = c, r[1] = h);
|
|
@@ -39544,9 +39623,9 @@ ${c}
|
|
|
39544
39623
|
saveForm: Functions.NOOP,
|
|
39545
39624
|
chartType: ChartType.LINE
|
|
39546
39625
|
}), useChartFormContext = () => (0, import_react.use)(ChartFormContext);
|
|
39547
|
-
var import_compiler_runtime$
|
|
39626
|
+
var import_compiler_runtime$86 = require_compiler_runtime();
|
|
39548
39627
|
function useBoolean(e) {
|
|
39549
|
-
let r = (0, import_compiler_runtime$
|
|
39628
|
+
let r = (0, import_compiler_runtime$86.c)(6), [c, d] = (0, import_react.useState)(e), f;
|
|
39550
39629
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (e2) => {
|
|
39551
39630
|
var _a3;
|
|
39552
39631
|
(_a3 = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a3.call(e2), d(true);
|
|
@@ -39576,8 +39655,8 @@ ${c}
|
|
|
39576
39655
|
function _temp$27(e) {
|
|
39577
39656
|
return !e;
|
|
39578
39657
|
}
|
|
39579
|
-
var import_compiler_runtime$
|
|
39580
|
-
let c = (0, import_compiler_runtime$
|
|
39658
|
+
var import_compiler_runtime$85 = require_compiler_runtime(), Slider = import_react.forwardRef((e, r) => {
|
|
39659
|
+
let c = (0, import_compiler_runtime$85.c)(25), { className: d, valueMap: f, ...h } = e, [_, y] = useBoolean(false), { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), w = dist_exports$1, E;
|
|
39581
39660
|
c[0] === d ? E = c[1] : (E = 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", d), c[0] = d, c[1] = E);
|
|
39582
39661
|
let O;
|
|
39583
39662
|
c[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = 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] = O) : O = c[2];
|
|
@@ -42478,12 +42557,12 @@ ${c}
|
|
|
42478
42557
|
function kn(e, r, c) {
|
|
42479
42558
|
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);
|
|
42480
42559
|
}
|
|
42481
|
-
var import_compiler_runtime$
|
|
42560
|
+
var import_compiler_runtime$84 = require_compiler_runtime();
|
|
42482
42561
|
const ComboboxContext = (0, import_react.createContext)({
|
|
42483
42562
|
isSelected: () => false,
|
|
42484
42563
|
onSelect: Functions.NOOP
|
|
42485
42564
|
}), Combobox = (e) => {
|
|
42486
|
-
let r = (0, import_compiler_runtime$
|
|
42565
|
+
let r = (0, import_compiler_runtime$84.c)(94), c, d, f, h, _, y, S, w, E, O, M, I, z, Y7, G, q, X7, Z7, Q7, $7, e9;
|
|
42487
42566
|
r[0] === e ? (c = r[1], d = r[2], f = r[3], h = r[4], _ = r[5], y = r[6], S = r[7], w = r[8], E = r[9], O = r[10], M = r[11], I = r[12], z = r[13], Y7 = r[14], G = r[15], q = r[16], X7 = r[17], Z7 = r[18], Q7 = r[19], $7 = r[20], e9 = r[21]) : ({ children: c, displayValue: y, className: f, placeholder: z, value: e9, defaultValue: _, onValueChange: M, multiple: q, shouldFilter: X7, filterFn: S, open: I, defaultOpen: h, onOpenChange: E, inputPlaceholder: Z7, search: G, onSearchChange: O, emptyState: Q7, chips: $7, chipsClassName: d, keepPopoverOpenOnSelect: w, ...Y7 } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = h, r[5] = _, r[6] = y, r[7] = S, r[8] = w, r[9] = E, r[10] = O, r[11] = M, r[12] = I, r[13] = z, r[14] = Y7, r[15] = G, r[16] = q, r[17] = X7, r[18] = Z7, r[19] = Q7, r[20] = $7, r[21] = e9);
|
|
42488
42567
|
let t9 = q === void 0 ? false : q, n9 = X7 === void 0 ? true : X7, r9 = Z7 === void 0 ? "Search..." : Z7, i9 = Q7 === void 0 ? "Nothing found." : Q7, a9 = $7 === void 0 ? false : $7, o9 = h ?? false, s9;
|
|
42489
42568
|
r[22] !== E || r[23] !== I || r[24] !== o9 ? (s9 = {
|
|
@@ -42626,7 +42705,7 @@ ${c}
|
|
|
42626
42705
|
]
|
|
42627
42706
|
}), r[90] = Y7, r[91] = N9, r[92] = P9, r[93] = F9) : F9 = r[93], F9;
|
|
42628
42707
|
}, ComboboxItem = import_react.forwardRef((e, r) => {
|
|
42629
|
-
let c = (0, import_compiler_runtime$
|
|
42708
|
+
let c = (0, import_compiler_runtime$84.c)(17), { children: d, className: f, value: h, onSelect: _, disabled: y } = e, S = typeof h == "object" && "value" in h ? h.value : String(h), w = import_react.use(ComboboxContext), E;
|
|
42630
42709
|
c[0] === f ? E = c[1] : (E = cn("pl-6 m-1 py-1", f), c[0] = f, c[1] = E);
|
|
42631
42710
|
let O;
|
|
42632
42711
|
c[2] !== w || c[3] !== _ || c[4] !== h ? (O = () => {
|
|
@@ -42654,7 +42733,7 @@ ${c}
|
|
|
42654
42733
|
function multiselectFilterFn(e, r) {
|
|
42655
42734
|
return r.split(/\s+/).every((r2) => e.toLowerCase().includes(r2.toLowerCase())) ? 1 : 0;
|
|
42656
42735
|
}
|
|
42657
|
-
var import_compiler_runtime$
|
|
42736
|
+
var import_compiler_runtime$83 = require_compiler_runtime(), MultiselectPlugin = class {
|
|
42658
42737
|
constructor() {
|
|
42659
42738
|
__publicField(this, "tagName", "marimo-multiselect");
|
|
42660
42739
|
__publicField(this, "validator", object({
|
|
@@ -42674,7 +42753,7 @@ ${c}
|
|
|
42674
42753
|
}
|
|
42675
42754
|
}, SELECT_ALL_KEY = "__select_all__", DESELECT_ALL_KEY = "__deselect_all__";
|
|
42676
42755
|
const Multiselect = (e) => {
|
|
42677
|
-
let r = (0, import_compiler_runtime$
|
|
42756
|
+
let r = (0, import_compiler_runtime$83.c)(45), { options: c, label: d, value: f, setValue: h, fullWidth: _, maxSelections: y } = e, S = (0, import_react.useId)(), [w, E] = (0, import_react.useState)(""), O;
|
|
42678
42757
|
bb0: {
|
|
42679
42758
|
if (!w) {
|
|
42680
42759
|
O = c;
|
|
@@ -42803,9 +42882,9 @@ ${c}
|
|
|
42803
42882
|
function _temp3$13(e) {
|
|
42804
42883
|
return e;
|
|
42805
42884
|
}
|
|
42806
|
-
var import_compiler_runtime$
|
|
42885
|
+
var import_compiler_runtime$82 = require_compiler_runtime();
|
|
42807
42886
|
function useAddCodeToNewCell() {
|
|
42808
|
-
let e = (0, import_compiler_runtime$
|
|
42887
|
+
let e = (0, import_compiler_runtime$82.c)(4), r = useAtomValue(autoInstantiateAtom), c = useLastFocusedCellId(), { createNewCell: d } = useCellActions(), f;
|
|
42809
42888
|
return e[0] !== r || e[1] !== d || e[2] !== c ? (f = (e2) => {
|
|
42810
42889
|
e2.includes("alt") && maybeAddAltairImport({
|
|
42811
42890
|
autoInstantiate: r,
|
|
@@ -42818,7 +42897,7 @@ ${c}
|
|
|
42818
42897
|
});
|
|
42819
42898
|
}, e[0] = r, e[1] = d, e[2] = c, e[3] = f) : f = e[3], f;
|
|
42820
42899
|
}
|
|
42821
|
-
var import_compiler_runtime$
|
|
42900
|
+
var import_compiler_runtime$81 = require_compiler_runtime(), pythonExtensions = [
|
|
42822
42901
|
customPythonLanguageSupport(),
|
|
42823
42902
|
EditorView.lineWrapping
|
|
42824
42903
|
], sqlExtensions = [
|
|
@@ -42826,7 +42905,7 @@ ${c}
|
|
|
42826
42905
|
EditorView.lineWrapping
|
|
42827
42906
|
];
|
|
42828
42907
|
const ReadonlyCode = (0, import_react.memo)((e) => {
|
|
42829
|
-
let r = (0, import_compiler_runtime$
|
|
42908
|
+
let r = (0, import_compiler_runtime$81.c)(41), { theme: c } = useTheme(), d, f, h, _, y, S, w, E;
|
|
42830
42909
|
r[0] === e ? (d = r[1], f = r[2], h = r[3], _ = r[4], y = r[5], S = r[6], w = r[7], E = r[8]) : ({ code: f, className: d, initiallyHideCode: h, showHideCode: S, showCopyCode: w, insertNewCell: _, language: E, ...y } = e, r[0] = e, r[1] = d, r[2] = f, r[3] = h, r[4] = _, r[5] = y, r[6] = S, r[7] = w, r[8] = E);
|
|
42831
42910
|
let O = S === void 0 ? true : S, M = w === void 0 ? true : w, I = E === void 0 ? "python" : E, [z, Y7] = (0, import_react.useState)(h), G;
|
|
42832
42911
|
r[9] === d ? G = r[10] : (G = cn("relative hover-actions-parent w-full overflow-hidden", d), r[9] = d, r[10] = G);
|
|
@@ -42881,7 +42960,7 @@ ${c}
|
|
|
42881
42960
|
});
|
|
42882
42961
|
ReadonlyCode.displayName = "ReadonlyCode";
|
|
42883
42962
|
var CopyButton = (e) => {
|
|
42884
|
-
let r = (0, import_compiler_runtime$
|
|
42963
|
+
let r = (0, import_compiler_runtime$81.c)(5), c;
|
|
42885
42964
|
r[0] === e.text ? c = r[1] : (c = Events.stopPropagation(async () => {
|
|
42886
42965
|
await copyToClipboard(e.text), toast({
|
|
42887
42966
|
title: "Copied to clipboard"
|
|
@@ -42905,7 +42984,7 @@ ${c}
|
|
|
42905
42984
|
})
|
|
42906
42985
|
}), r[3] = d, r[4] = h), h;
|
|
42907
42986
|
}, EyeCloseButton = (e) => {
|
|
42908
|
-
let r = (0, import_compiler_runtime$
|
|
42987
|
+
let r = (0, import_compiler_runtime$81.c)(3), c;
|
|
42909
42988
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(EyeOff, {
|
|
42910
42989
|
size: 14,
|
|
42911
42990
|
strokeWidth: 1.5
|
|
@@ -42924,7 +43003,7 @@ ${c}
|
|
|
42924
43003
|
}), r[1] = e.onClick, r[2] = d), d;
|
|
42925
43004
|
};
|
|
42926
43005
|
const HideCodeButton = (e) => {
|
|
42927
|
-
let r = (0, import_compiler_runtime$
|
|
43006
|
+
let r = (0, import_compiler_runtime$81.c)(7), c;
|
|
42928
43007
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(Eye, {
|
|
42929
43008
|
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"
|
|
42930
43009
|
}), r[0] = c) : c = r[0];
|
|
@@ -42942,7 +43021,7 @@ ${c}
|
|
|
42942
43021
|
}), r[3] = e.className, r[4] = e.onClick, r[5] = d, r[6] = f) : f = r[6], f;
|
|
42943
43022
|
};
|
|
42944
43023
|
var InsertNewCell = (e) => {
|
|
42945
|
-
let r = (0, import_compiler_runtime$
|
|
43024
|
+
let r = (0, import_compiler_runtime$81.c)(6), c = useAddCodeToNewCell(), d;
|
|
42946
43025
|
r[0] !== c || r[1] !== e.code ? (d = () => {
|
|
42947
43026
|
c(e.code);
|
|
42948
43027
|
}, r[0] = c, r[1] = e.code, r[2] = d) : d = r[2];
|
|
@@ -42963,9 +43042,9 @@ ${c}
|
|
|
42963
43042
|
children: h
|
|
42964
43043
|
})
|
|
42965
43044
|
}), r[4] = f, r[5] = _), _;
|
|
42966
|
-
}, import_compiler_runtime$
|
|
43045
|
+
}, import_compiler_runtime$80 = require_compiler_runtime();
|
|
42967
43046
|
const Title = (e) => {
|
|
42968
|
-
let r = (0, import_compiler_runtime$
|
|
43047
|
+
let r = (0, import_compiler_runtime$80.c)(5), { text: c, tooltip: d } = e, f;
|
|
42969
43048
|
r[0] === d ? f = r[1] : (f = d && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
42970
43049
|
content: d,
|
|
42971
43050
|
children: (0, import_jsx_runtime.jsx)(Info, {
|
|
@@ -42981,7 +43060,7 @@ ${c}
|
|
|
42981
43060
|
]
|
|
42982
43061
|
}), r[2] = f, r[3] = c, r[4] = h) : h = r[4], h;
|
|
42983
43062
|
}, TabContainer = (e) => {
|
|
42984
|
-
let r = (0, import_compiler_runtime$
|
|
43063
|
+
let r = (0, import_compiler_runtime$80.c)(5), { children: c, className: d } = e, f;
|
|
42985
43064
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col gap-2", d), r[0] = d, r[1] = f);
|
|
42986
43065
|
let h;
|
|
42987
43066
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -42989,14 +43068,14 @@ ${c}
|
|
|
42989
43068
|
children: c
|
|
42990
43069
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
42991
43070
|
}, FormSectionHorizontalRule = (e) => {
|
|
42992
|
-
let r = (0, import_compiler_runtime$
|
|
43071
|
+
let r = (0, import_compiler_runtime$80.c)(4), { className: c } = e, d;
|
|
42993
43072
|
r[0] === c ? d = r[1] : (d = cn("my-1", c), r[0] = c, r[1] = d);
|
|
42994
43073
|
let f;
|
|
42995
43074
|
return r[2] === d ? f = r[3] : (f = (0, import_jsx_runtime.jsx)("hr", {
|
|
42996
43075
|
className: d
|
|
42997
43076
|
}), r[2] = d, r[3] = f), f;
|
|
42998
43077
|
}, FieldSection = (e) => {
|
|
42999
|
-
let r = (0, import_compiler_runtime$
|
|
43078
|
+
let r = (0, import_compiler_runtime$80.c)(5), { children: c, className: d } = e, f;
|
|
43000
43079
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col gap-1.5", d), r[0] = d, r[1] = f);
|
|
43001
43080
|
let h;
|
|
43002
43081
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)("section", {
|
|
@@ -43004,7 +43083,7 @@ ${c}
|
|
|
43004
43083
|
children: c
|
|
43005
43084
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
43006
43085
|
}, IconWithText = (e) => {
|
|
43007
|
-
let r = (0, import_compiler_runtime$
|
|
43086
|
+
let r = (0, import_compiler_runtime$80.c)(7), { Icon: c, text: d } = e, f;
|
|
43008
43087
|
r[0] === c ? f = r[1] : (f = (0, import_jsx_runtime.jsx)(c, {
|
|
43009
43088
|
className: "w-3 h-3 mr-2"
|
|
43010
43089
|
}), r[0] = c, r[1] = f);
|
|
@@ -43021,7 +43100,7 @@ ${c}
|
|
|
43021
43100
|
]
|
|
43022
43101
|
}), r[4] = f, r[5] = h, r[6] = _) : _ = r[6], _;
|
|
43023
43102
|
}, AccordionFormTrigger = (e) => {
|
|
43024
|
-
let r = (0, import_compiler_runtime$
|
|
43103
|
+
let r = (0, import_compiler_runtime$80.c)(5), { children: c, className: d } = e, f;
|
|
43025
43104
|
r[0] === d ? f = r[1] : (f = cn("py-1", d), r[0] = d, r[1] = f);
|
|
43026
43105
|
let h;
|
|
43027
43106
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
@@ -43029,14 +43108,14 @@ ${c}
|
|
|
43029
43108
|
children: c
|
|
43030
43109
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
43031
43110
|
}, AccordionFormItem = (e) => {
|
|
43032
|
-
let r = (0, import_compiler_runtime$
|
|
43111
|
+
let r = (0, import_compiler_runtime$80.c)(3), { children: c, value: d } = e, f;
|
|
43033
43112
|
return r[0] !== c || r[1] !== d ? (f = (0, import_jsx_runtime.jsx)(AccordionItem, {
|
|
43034
43113
|
value: d,
|
|
43035
43114
|
className: "border-none",
|
|
43036
43115
|
children: c
|
|
43037
43116
|
}), r[0] = c, r[1] = d, r[2] = f) : f = r[2], f;
|
|
43038
43117
|
}, AccordionFormContent = (e) => {
|
|
43039
|
-
let r = (0, import_compiler_runtime$
|
|
43118
|
+
let r = (0, import_compiler_runtime$80.c)(5), { children: c, wrapperClassName: d } = e, f;
|
|
43040
43119
|
r[0] === d ? f = r[1] : (f = cn("pb-2 flex flex-col gap-2", d), r[0] = d, r[1] = f);
|
|
43041
43120
|
let h;
|
|
43042
43121
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
@@ -43044,7 +43123,7 @@ ${c}
|
|
|
43044
43123
|
children: c
|
|
43045
43124
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
43046
43125
|
}, CodeSnippet = (e) => {
|
|
43047
|
-
let r = (0, import_compiler_runtime$
|
|
43126
|
+
let r = (0, import_compiler_runtime$80.c)(4), { code: c, insertNewCell: d, language: f } = e, h;
|
|
43048
43127
|
return r[0] !== c || r[1] !== d || r[2] !== f ? (h = (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
43049
43128
|
minHeight: "330px",
|
|
43050
43129
|
maxHeight: "330px",
|
|
@@ -43055,9 +43134,9 @@ ${c}
|
|
|
43055
43134
|
insertNewCell: d
|
|
43056
43135
|
}), r[0] = c, r[1] = d, r[2] = f, r[3] = h) : h = r[3], h;
|
|
43057
43136
|
};
|
|
43058
|
-
var import_compiler_runtime$
|
|
43137
|
+
var import_compiler_runtime$79 = require_compiler_runtime(), CLEAR_VALUE = "__clear__";
|
|
43059
43138
|
const ColumnSelector = (e) => {
|
|
43060
|
-
let r = (0, import_compiler_runtime$
|
|
43139
|
+
let r = (0, import_compiler_runtime$79.c)(23), { fieldName: c, columns: d, onValueChange: f, includeCountField: h } = e, _ = h === void 0 ? true : h, v = useFormContext(), y;
|
|
43061
43140
|
r[0] === c ? y = r[1] : (y = c.replace(".field", ".type"), r[0] = c, r[1] = y);
|
|
43062
43141
|
let S = y, w;
|
|
43063
43142
|
r[2] === c ? w = r[3] : (w = c.replace(".field", ".selectedDataType"), r[2] = c, r[3] = w);
|
|
@@ -43139,7 +43218,7 @@ ${c}
|
|
|
43139
43218
|
render: I
|
|
43140
43219
|
}), r[19] = c, r[20] = v.control, r[21] = I, r[22] = z) : z = r[22], z;
|
|
43141
43220
|
}, SelectField = (e) => {
|
|
43142
|
-
let r = (0, import_compiler_runtime$
|
|
43221
|
+
let r = (0, import_compiler_runtime$79.c)(8), { fieldName: c, label: d, options: f, defaultValue: h } = e, _ = useFormContext(), v;
|
|
43143
43222
|
r[0] !== h || r[1] !== d || r[2] !== f ? (v = (e2) => {
|
|
43144
43223
|
let { field: r2 } = e2;
|
|
43145
43224
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -43178,7 +43257,7 @@ ${c}
|
|
|
43178
43257
|
render: v
|
|
43179
43258
|
}), r[4] = c, r[5] = _.control, r[6] = v, r[7] = y) : y = r[7], y;
|
|
43180
43259
|
}, InputField = (e) => {
|
|
43181
|
-
let r = (0, import_compiler_runtime$
|
|
43260
|
+
let r = (0, import_compiler_runtime$79.c)(6), { fieldName: c, label: d } = e, f = useFormContext(), h;
|
|
43182
43261
|
r[0] === d ? h = r[1] : (h = (e2) => {
|
|
43183
43262
|
let { field: r2 } = e2;
|
|
43184
43263
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -43205,7 +43284,7 @@ ${c}
|
|
|
43205
43284
|
render: h
|
|
43206
43285
|
}), r[2] = c, r[3] = f.control, r[4] = h, r[5] = _) : _ = r[5], _;
|
|
43207
43286
|
}, NumberField$1 = (e) => {
|
|
43208
|
-
let r = (0, import_compiler_runtime$
|
|
43287
|
+
let r = (0, import_compiler_runtime$79.c)(17), c, d, f, h, _, y;
|
|
43209
43288
|
r[0] === e ? (c = r[1], d = r[2], f = r[3], h = r[4], _ = r[5], y = r[6]) : ({ fieldName: d, label: _, className: c, inputClassName: f, isDisabled: h, ...y } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = h, r[5] = _, r[6] = y);
|
|
43210
43289
|
let S = useFormContext(), w;
|
|
43211
43290
|
r[7] !== c || r[8] !== f || r[9] !== h || r[10] !== _ || r[11] !== y ? (w = (e2) => {
|
|
@@ -43239,7 +43318,7 @@ ${c}
|
|
|
43239
43318
|
render: w
|
|
43240
43319
|
}), r[13] = d, r[14] = S.control, r[15] = w, r[16] = E) : E = r[16], E;
|
|
43241
43320
|
}, BooleanField = (e) => {
|
|
43242
|
-
let r = (0, import_compiler_runtime$
|
|
43321
|
+
let r = (0, import_compiler_runtime$79.c)(8), { fieldName: c, label: d, className: f, defaultValue: h } = e, _ = useFormContext(), y;
|
|
43243
43322
|
r[0] !== f || r[1] !== h || r[2] !== d ? (y = (e2) => {
|
|
43244
43323
|
let { field: r2 } = e2;
|
|
43245
43324
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -43265,7 +43344,7 @@ ${c}
|
|
|
43265
43344
|
render: y
|
|
43266
43345
|
}), r[4] = c, r[5] = _.control, r[6] = y, r[7] = S) : S = r[7], S;
|
|
43267
43346
|
}, SliderField = (e) => {
|
|
43268
|
-
let r = (0, import_compiler_runtime$
|
|
43347
|
+
let r = (0, import_compiler_runtime$79.c)(12), { fieldName: c, label: d, defaultValue: f, start: h, stop: _, step: y, className: S } = e, w = useFormContext(), E;
|
|
43269
43348
|
r[0] !== S || r[1] !== f || r[2] !== c || r[3] !== d || r[4] !== h || r[5] !== y || r[6] !== _ ? (E = (e2) => {
|
|
43270
43349
|
let { field: r2 } = e2, w2 = r2.value ?? f, E2 = Number(w2), O2 = (e3) => {
|
|
43271
43350
|
typeof e3 == "string" && (e3 = Number(e3)), r2.onChange(e3);
|
|
@@ -43308,7 +43387,7 @@ ${c}
|
|
|
43308
43387
|
render: E
|
|
43309
43388
|
}), r[8] = c, r[9] = w.control, r[10] = E, r[11] = O) : O = r[11], O;
|
|
43310
43389
|
}, ColorArrayField = (e) => {
|
|
43311
|
-
let r = (0, import_compiler_runtime$
|
|
43390
|
+
let r = (0, import_compiler_runtime$79.c)(28), { fieldName: c, label: d, className: f } = e, h = useFormContext(), _;
|
|
43312
43391
|
r[0] !== c || r[1] !== h ? (_ = h.watch(c), r[0] = c, r[1] = h, r[2] = _) : _ = r[2];
|
|
43313
43392
|
let y = _, S;
|
|
43314
43393
|
r[3] === y ? S = r[4] : (S = y ?? [], r[3] = y, r[4] = S);
|
|
@@ -43389,7 +43468,7 @@ ${c}
|
|
|
43389
43468
|
render: X7
|
|
43390
43469
|
}), r[24] = c, r[25] = h.control, r[26] = X7, r[27] = Z7) : Z7 = r[27], Z7;
|
|
43391
43470
|
}, TimeUnitSelect = (e) => {
|
|
43392
|
-
let r = (0, import_compiler_runtime$
|
|
43471
|
+
let r = (0, import_compiler_runtime$79.c)(10), { fieldName: c, label: d } = e, f = useFormContext(), h;
|
|
43393
43472
|
r[0] !== c || r[1] !== f ? (h = () => {
|
|
43394
43473
|
f.setValue(c, "");
|
|
43395
43474
|
}, r[0] = c, r[1] = f, r[2] = h) : h = r[2];
|
|
@@ -43458,7 +43537,7 @@ ${c}
|
|
|
43458
43537
|
render: y
|
|
43459
43538
|
}), r[6] = c, r[7] = f.control, r[8] = y, r[9] = S) : S = r[9], S;
|
|
43460
43539
|
}, DataTypeSelect = (e) => {
|
|
43461
|
-
let r = (0, import_compiler_runtime$
|
|
43540
|
+
let r = (0, import_compiler_runtime$79.c)(9), { fieldName: c, label: d, defaultValue: f, onValueChange: h } = e, [_, v] = import_react.useState(false), y = useFormContext(), S;
|
|
43462
43541
|
r[0] !== f || r[1] !== _ || r[2] !== d || r[3] !== h ? (S = (e2) => {
|
|
43463
43542
|
let { field: r2 } = e2;
|
|
43464
43543
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -43514,7 +43593,7 @@ ${c}
|
|
|
43514
43593
|
render: S
|
|
43515
43594
|
}), r[5] = c, r[6] = y.control, r[7] = S, r[8] = w) : w = r[8], w;
|
|
43516
43595
|
}, AggregationSelect = (e) => {
|
|
43517
|
-
let r = (0, import_compiler_runtime$
|
|
43596
|
+
let r = (0, import_compiler_runtime$79.c)(12), { fieldName: c, selectedDataType: d, binFieldName: f, defaultAggregation: h } = e, _ = useFormContext(), v = d === "string" ? STRING_AGGREGATION_FNS : AGGREGATION_FNS$1, { chartType: y } = useChartFormContext(), S = y !== ChartType.HEATMAP, w = _temp6$4, E = _temp7$1, O;
|
|
43518
43597
|
r[0] !== f || r[1] !== _ ? (O = (e2) => {
|
|
43519
43598
|
let { value: r2, previousValue: c2, onChange: d2 } = e2;
|
|
43520
43599
|
r2 === "bin" ? _.setValue(f, true) : c2 === "bin" && _.setValue(f, false), d2(r2);
|
|
@@ -43573,7 +43652,7 @@ ${c}
|
|
|
43573
43652
|
render: I
|
|
43574
43653
|
}), r[8] = c, r[9] = _.control, r[10] = I, r[11] = z) : z = r[11], z;
|
|
43575
43654
|
}, TooltipSelect = (e) => {
|
|
43576
|
-
let r = (0, import_compiler_runtime$
|
|
43655
|
+
let r = (0, import_compiler_runtime$79.c)(7), { fieldName: c, saveFunction: d } = e, f = useFormContext(), { fields: h } = useChartFormContext(), _ = _temp8, v;
|
|
43577
43656
|
r[0] !== h || r[1] !== d ? (v = (e2) => {
|
|
43578
43657
|
var _a3;
|
|
43579
43658
|
let { field: r2 } = e2, c2 = ((_a3 = r2.value) == null ? void 0 : _a3.map(_temp9)) ?? [];
|
|
@@ -43599,7 +43678,7 @@ ${c}
|
|
|
43599
43678
|
render: v
|
|
43600
43679
|
}), r[3] = c, r[4] = f.control, r[5] = v, r[6] = y) : y = r[6], y;
|
|
43601
43680
|
}, SortField = (e) => {
|
|
43602
|
-
let r = (0, import_compiler_runtime$
|
|
43681
|
+
let r = (0, import_compiler_runtime$79.c)(5), { fieldName: c, label: d, defaultValue: f } = e, h;
|
|
43603
43682
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = SORT_TYPES.map(_temp1), r[0] = h) : h = r[0];
|
|
43604
43683
|
let _ = f ?? "ascending", v;
|
|
43605
43684
|
return r[1] !== c || r[2] !== d || r[3] !== _ ? (v = (0, import_jsx_runtime.jsx)(SelectField, {
|
|
@@ -43610,7 +43689,7 @@ ${c}
|
|
|
43610
43689
|
}), r[1] = c, r[2] = d, r[3] = _, r[4] = v) : v = r[4], v;
|
|
43611
43690
|
}, BinFields = (e) => {
|
|
43612
43691
|
var _a3, _b3, _c3, _d3;
|
|
43613
|
-
let r = (0, import_compiler_runtime$
|
|
43692
|
+
let r = (0, import_compiler_runtime$79.c)(10), { fieldName: c } = e, d = useFormContext(), f;
|
|
43614
43693
|
r[0] === d.control ? f = r[1] : (f = {
|
|
43615
43694
|
control: d.control
|
|
43616
43695
|
}, r[0] = d.control, r[1] = f);
|
|
@@ -43725,7 +43804,7 @@ ${c}
|
|
|
43725
43804
|
value: e
|
|
43726
43805
|
};
|
|
43727
43806
|
}
|
|
43728
|
-
var import_compiler_runtime$
|
|
43807
|
+
var import_compiler_runtime$78 = require_compiler_runtime();
|
|
43729
43808
|
function isNonCountField(e) {
|
|
43730
43809
|
return isFieldSet(e == null ? void 0 : e.field) && (e == null ? void 0 : e.field) !== "__count__";
|
|
43731
43810
|
}
|
|
@@ -43749,7 +43828,7 @@ ${c}
|
|
|
43749
43828
|
};
|
|
43750
43829
|
}
|
|
43751
43830
|
var ColumnSelectorWithAggregation = (e) => {
|
|
43752
|
-
let r = (0, import_compiler_runtime$
|
|
43831
|
+
let r = (0, import_compiler_runtime$78.c)(14), { columnFieldName: c, column: d, columns: f, binFieldName: h, defaultAggregation: _ } = e, v;
|
|
43753
43832
|
r[0] === d ? v = r[1] : (v = getColumnDataTypes(d), r[0] = d, r[1] = v);
|
|
43754
43833
|
let { selectedDataType: y } = v, S;
|
|
43755
43834
|
r[2] !== c || r[3] !== f ? (S = (0, import_jsx_runtime.jsx)(ColumnSelector, {
|
|
@@ -43773,7 +43852,7 @@ ${c}
|
|
|
43773
43852
|
}), r[11] = S, r[12] = w, r[13] = E) : E = r[13], E;
|
|
43774
43853
|
};
|
|
43775
43854
|
const ChartTypeSelect = (e) => {
|
|
43776
|
-
let r = (0, import_compiler_runtime$
|
|
43855
|
+
let r = (0, import_compiler_runtime$78.c)(7), { value: c, onValueChange: d } = e, f, h;
|
|
43777
43856
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = buttonVariants({
|
|
43778
43857
|
variant: "outline",
|
|
43779
43858
|
className: "user-select-none w-full justify-between px-3"
|
|
@@ -43809,7 +43888,7 @@ ${c}
|
|
|
43809
43888
|
}), r[4] = d, r[5] = c, r[6] = y) : y = r[6], y;
|
|
43810
43889
|
};
|
|
43811
43890
|
var ChartSelectItem = (e) => {
|
|
43812
|
-
let r = (0, import_compiler_runtime$
|
|
43891
|
+
let r = (0, import_compiler_runtime$78.c)(10), { chartType: c } = e, d = CHART_TYPE_ICON[c], f;
|
|
43813
43892
|
r[0] === d ? f = r[1] : (f = (0, import_jsx_runtime.jsx)(d, {
|
|
43814
43893
|
className: "w-4 h-4 mr-2"
|
|
43815
43894
|
}), r[0] = d, r[1] = f);
|
|
@@ -43832,7 +43911,7 @@ ${c}
|
|
|
43832
43911
|
};
|
|
43833
43912
|
const XAxis = () => {
|
|
43834
43913
|
var _a3, _b3, _c3, _d3, _e9, _f3, _g3;
|
|
43835
|
-
let e = (0, import_compiler_runtime$
|
|
43914
|
+
let e = (0, import_compiler_runtime$78.c)(22), r = useFormContext(), c;
|
|
43836
43915
|
e[0] === r.control ? c = e[1] : (c = {
|
|
43837
43916
|
control: r.control
|
|
43838
43917
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -43885,7 +43964,7 @@ ${c}
|
|
|
43885
43964
|
}), e[17] = w, e[18] = E, e[19] = O, e[20] = M, e[21] = I) : I = e[21], I;
|
|
43886
43965
|
}, YAxis = () => {
|
|
43887
43966
|
var _a3, _b3, _c3;
|
|
43888
|
-
let e = (0, import_compiler_runtime$
|
|
43967
|
+
let e = (0, import_compiler_runtime$78.c)(29), r = useFormContext(), c;
|
|
43889
43968
|
e[0] === r.control ? c = e[1] : (c = {
|
|
43890
43969
|
control: r.control
|
|
43891
43970
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -43942,7 +44021,7 @@ ${c}
|
|
|
43942
44021
|
}), e[23] = X7, e[24] = Z7, e[25] = Y7, e[26] = G, e[27] = q, e[28] = Q7) : Q7 = e[28], Q7;
|
|
43943
44022
|
}, ColorByAxis = () => {
|
|
43944
44023
|
var _a3;
|
|
43945
|
-
let e = (0, import_compiler_runtime$
|
|
44024
|
+
let e = (0, import_compiler_runtime$78.c)(13), { fields: r } = useChartFormContext(), c = useFormContext(), d;
|
|
43946
44025
|
e[0] === c.control ? d = e[1] : (d = {
|
|
43947
44026
|
control: c.control
|
|
43948
44027
|
}, e[0] = c.control, e[1] = d);
|
|
@@ -43973,7 +44052,7 @@ ${c}
|
|
|
43973
44052
|
}), e[10] = y, e[11] = S, e[12] = w) : w = e[12], w;
|
|
43974
44053
|
}, Facet = () => {
|
|
43975
44054
|
var _a3, _b3;
|
|
43976
|
-
let e = (0, import_compiler_runtime$
|
|
44055
|
+
let e = (0, import_compiler_runtime$78.c)(7), r = useChartFormContext().fields, c = useFormContext(), d;
|
|
43977
44056
|
e[0] === c.control ? d = e[1] : (d = {
|
|
43978
44057
|
control: c.control
|
|
43979
44058
|
}, e[0] = c.control, e[1] = d);
|
|
@@ -44052,10 +44131,10 @@ ${c}
|
|
|
44052
44131
|
chartType: e
|
|
44053
44132
|
}, e);
|
|
44054
44133
|
}
|
|
44055
|
-
var import_compiler_runtime$
|
|
44134
|
+
var import_compiler_runtime$77 = require_compiler_runtime();
|
|
44056
44135
|
const CommonChartForm = () => {
|
|
44057
44136
|
var _a3, _b3;
|
|
44058
|
-
let e = (0, import_compiler_runtime$
|
|
44137
|
+
let e = (0, import_compiler_runtime$77.c)(17), r = useFormContext(), c;
|
|
44059
44138
|
e[0] === r.control ? c = e[1] : (c = {
|
|
44060
44139
|
control: r.control
|
|
44061
44140
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -44107,7 +44186,7 @@ ${c}
|
|
|
44107
44186
|
]
|
|
44108
44187
|
}), e[15] = z, e[16] = q), q;
|
|
44109
44188
|
}, StyleForm = () => {
|
|
44110
|
-
let e = (0, import_compiler_runtime$
|
|
44189
|
+
let e = (0, import_compiler_runtime$77.c)(15), { chartType: r } = useChartFormContext(), c;
|
|
44111
44190
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(AccordionFormTrigger, {
|
|
44112
44191
|
className: "pt-0",
|
|
44113
44192
|
children: (0, import_jsx_runtime.jsx)(Title, {
|
|
@@ -44250,7 +44329,7 @@ ${c}
|
|
|
44250
44329
|
}), e[13] = h, e[14] = z), z;
|
|
44251
44330
|
}, OtherOptions = () => {
|
|
44252
44331
|
var _a3;
|
|
44253
|
-
let e = (0, import_compiler_runtime$
|
|
44332
|
+
let e = (0, import_compiler_runtime$77.c)(11), { saveForm: r } = useChartFormContext(), c = useFormContext(), d;
|
|
44254
44333
|
e[0] === c.control ? d = e[1] : (d = {
|
|
44255
44334
|
control: c.control
|
|
44256
44335
|
}, e[0] = c.control, e[1] = d);
|
|
@@ -44321,10 +44400,10 @@ ${c}
|
|
|
44321
44400
|
value: e
|
|
44322
44401
|
};
|
|
44323
44402
|
}
|
|
44324
|
-
var import_compiler_runtime$
|
|
44403
|
+
var import_compiler_runtime$76 = require_compiler_runtime();
|
|
44325
44404
|
const HeatmapForm = () => {
|
|
44326
44405
|
var _a3, _b3, _c3, _d3;
|
|
44327
|
-
let e = (0, import_compiler_runtime$
|
|
44406
|
+
let e = (0, import_compiler_runtime$76.c)(17), r = useFormContext(), c;
|
|
44328
44407
|
e[0] === r.control ? c = e[1] : (c = {
|
|
44329
44408
|
control: r.control
|
|
44330
44409
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -44367,10 +44446,10 @@ ${c}
|
|
|
44367
44446
|
]
|
|
44368
44447
|
}), e[14] = E, e[15] = M, e[16] = Y7) : Y7 = e[16], Y7;
|
|
44369
44448
|
};
|
|
44370
|
-
var import_compiler_runtime$
|
|
44449
|
+
var import_compiler_runtime$75 = require_compiler_runtime();
|
|
44371
44450
|
const PieForm = () => {
|
|
44372
44451
|
var _a3, _b3, _c3;
|
|
44373
|
-
let e = (0, import_compiler_runtime$
|
|
44452
|
+
let e = (0, import_compiler_runtime$75.c)(25), r = useFormContext(), { fields: c } = useChartFormContext(), d;
|
|
44374
44453
|
e[0] === r.control ? d = e[1] : (d = {
|
|
44375
44454
|
control: r.control
|
|
44376
44455
|
}, e[0] = r.control, e[1] = d);
|
|
@@ -44437,9 +44516,9 @@ ${c}
|
|
|
44437
44516
|
]
|
|
44438
44517
|
}), e[21] = w, e[22] = E, e[23] = z, e[24] = X7) : X7 = e[24], X7;
|
|
44439
44518
|
};
|
|
44440
|
-
var import_compiler_runtime$
|
|
44519
|
+
var import_compiler_runtime$74 = require_compiler_runtime();
|
|
44441
44520
|
const LazyChart = (e) => {
|
|
44442
|
-
let r = (0, import_compiler_runtime$
|
|
44521
|
+
let r = (0, import_compiler_runtime$74.c)(8), { baseSpec: c, data: d, height: f } = e, { theme: h } = useTheme();
|
|
44443
44522
|
if (!d) {
|
|
44444
44523
|
let e2;
|
|
44445
44524
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -44480,7 +44559,7 @@ ${c}
|
|
|
44480
44559
|
}), r[5] = c, r[6] = v, r[7] = y) : y = r[7], y;
|
|
44481
44560
|
};
|
|
44482
44561
|
var LoadingChart$1 = () => {
|
|
44483
|
-
let e = (0, import_compiler_runtime$
|
|
44562
|
+
let e = (0, import_compiler_runtime$74.c)(1), r;
|
|
44484
44563
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (0, import_jsx_runtime.jsx)(ChartInfoState, {
|
|
44485
44564
|
className: "mt-14",
|
|
44486
44565
|
children: "Loading chart..."
|
|
@@ -44624,7 +44703,7 @@ ${c}
|
|
|
44624
44703
|
let r = initialStorageValue.get(e);
|
|
44625
44704
|
return r ? r.length > 0 : false;
|
|
44626
44705
|
}
|
|
44627
|
-
var import_compiler_runtime$
|
|
44706
|
+
var import_compiler_runtime$73 = require_compiler_runtime(), NEW_CHART_TYPE = "bar", DEFAULT_TAB_NAME = "table", CHART_HEIGHT = 290, CHART_MAX_ROWS = 5e4, CHART_MAX_COLUMNS = 50;
|
|
44628
44707
|
const TablePanel = ({ cellId: e, data: r, dataTable: c, totalRows: d, columns: f, getDataUrl: h, fieldTypes: _, displayHeader: v, onCloseChartBuilder: y }) => {
|
|
44629
44708
|
let [S, w] = useAtom(tabsStorageAtom), E = e ? S.get(e) ?? [] : [], [O, M] = (0, import_react.useState)(DEFAULT_TAB_NAME), [I, z] = (0, import_react.useState)(E.length), G = (0, import_react.useRef)(v);
|
|
44630
44709
|
if (v && !G.current && E.length === 0 && e) {
|
|
@@ -44890,7 +44969,7 @@ ${c}
|
|
|
44890
44969
|
});
|
|
44891
44970
|
};
|
|
44892
44971
|
var ChartFormContainer = (e) => {
|
|
44893
|
-
let r = (0, import_compiler_runtime$
|
|
44972
|
+
let r = (0, import_compiler_runtime$73.c)(28), { form: c, saveChart: d, fieldTypes: f, chartType: h } = e, _;
|
|
44894
44973
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = [], r[0] = _) : _ = r[0];
|
|
44895
44974
|
let v = _;
|
|
44896
44975
|
if (f) {
|
|
@@ -45000,9 +45079,9 @@ ${c}
|
|
|
45000
45079
|
function _temp3$11(e) {
|
|
45001
45080
|
return e.preventDefault();
|
|
45002
45081
|
}
|
|
45003
|
-
var import_compiler_runtime$
|
|
45082
|
+
var import_compiler_runtime$72 = require_compiler_runtime();
|
|
45004
45083
|
function usePanelOwnership(e, r) {
|
|
45005
|
-
let c = (0, import_compiler_runtime$
|
|
45084
|
+
let c = (0, import_compiler_runtime$72.c)(16), d = useAtomValue(isCellAwareAtom), { focusCell: f } = useCellFocusActions(), _ = useLastFocusedCellId(), [v, y] = useAtom(contextAwarePanelType), [S, w] = useAtom(contextAwarePanelOwner), [E, O] = useAtom(contextAwarePanelOpen), M = getPanelId(e, r);
|
|
45006
45085
|
!r && d && (Logger.error("CellId is not found, defaulting to fixed mode"), d = false);
|
|
45007
45086
|
let I = (e2) => S === M && E && e2 === v, z = _ === r, Y7 = S && isPanelOwner(S, r);
|
|
45008
45087
|
d && z && S !== M && !Y7 && w(M);
|
|
@@ -45035,11 +45114,13 @@ ${c}
|
|
|
45035
45114
|
])
|
|
45036
45115
|
})).output(zod_default.object({
|
|
45037
45116
|
url: zod_default.string(),
|
|
45038
|
-
filename: zod_default.string()
|
|
45117
|
+
filename: zod_default.string(),
|
|
45118
|
+
error: zod_default.string().nullish(),
|
|
45119
|
+
missing_packages: zod_default.array(zod_default.string()).nullish()
|
|
45039
45120
|
}));
|
|
45040
|
-
var import_compiler_runtime$
|
|
45121
|
+
var import_compiler_runtime$71 = require_compiler_runtime();
|
|
45041
45122
|
const EmptyState = (e) => {
|
|
45042
|
-
let r = (0, import_compiler_runtime$
|
|
45123
|
+
let r = (0, import_compiler_runtime$71.c)(5), { content: c, className: d } = e, f;
|
|
45043
45124
|
r[0] === d ? f = r[1] : (f = cn("text-sm text-muted-foreground py-1", d), r[0] = d, r[1] = f);
|
|
45044
45125
|
let h;
|
|
45045
45126
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -45047,7 +45128,7 @@ ${c}
|
|
|
45047
45128
|
children: c
|
|
45048
45129
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
45049
45130
|
}, ErrorState = (e) => {
|
|
45050
|
-
let r = (0, import_compiler_runtime$
|
|
45131
|
+
let r = (0, import_compiler_runtime$71.c)(9), { error: c, style: d, className: f, showIcon: h } = e, _ = h === void 0 ? true : h, y;
|
|
45051
45132
|
r[0] === f ? y = r[1] : (y = 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", f), r[0] = f, r[1] = y);
|
|
45052
45133
|
let S;
|
|
45053
45134
|
r[2] === _ ? S = r[3] : (S = _ && (0, import_jsx_runtime.jsx)(X, {
|
|
@@ -45063,7 +45144,7 @@ ${c}
|
|
|
45063
45144
|
]
|
|
45064
45145
|
}), r[4] = c.message, r[5] = d, r[6] = y, r[7] = S, r[8] = w) : w = r[8], w;
|
|
45065
45146
|
}, LoadingState = (e) => {
|
|
45066
|
-
let r = (0, import_compiler_runtime$
|
|
45147
|
+
let r = (0, import_compiler_runtime$71.c)(6), { message: c, className: d } = e, f;
|
|
45067
45148
|
r[0] === d ? f = r[1] : (f = 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", d), r[0] = d, r[1] = f);
|
|
45068
45149
|
let h;
|
|
45069
45150
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
@@ -45078,7 +45159,7 @@ ${c}
|
|
|
45078
45159
|
]
|
|
45079
45160
|
}), r[3] = c, r[4] = f, r[5] = _) : _ = r[5], _;
|
|
45080
45161
|
}, ColumnPreviewContainer = (e) => {
|
|
45081
|
-
let r = (0, import_compiler_runtime$
|
|
45162
|
+
let r = (0, import_compiler_runtime$71.c)(5), { children: c, className: d } = e, f;
|
|
45082
45163
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col gap-2 relative", d), r[0] = d, r[1] = f);
|
|
45083
45164
|
let h;
|
|
45084
45165
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -45086,7 +45167,7 @@ ${c}
|
|
|
45086
45167
|
children: c
|
|
45087
45168
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
45088
45169
|
}, ColumnName = (e) => {
|
|
45089
|
-
let r = (0, import_compiler_runtime$
|
|
45170
|
+
let r = (0, import_compiler_runtime$71.c)(6), { columnName: c, dataType: d } = e, f = DATA_TYPE_ICON[d], h = `w-4 h-4 p-0.5 rounded-sm stroke-card-foreground ${getDataTypeColor(d)}`, _;
|
|
45090
45171
|
r[0] !== f || r[1] !== h ? (_ = (0, import_jsx_runtime.jsx)(f, {
|
|
45091
45172
|
className: h
|
|
45092
45173
|
}), r[0] = f, r[1] = h, r[2] = _) : _ = r[2];
|
|
@@ -45099,31 +45180,6 @@ ${c}
|
|
|
45099
45180
|
]
|
|
45100
45181
|
}), r[3] = c, r[4] = _, r[5] = v) : v = r[5], v;
|
|
45101
45182
|
};
|
|
45102
|
-
var import_compiler_runtime$71 = require_compiler_runtime();
|
|
45103
|
-
const InstallPackageButton = (e) => {
|
|
45104
|
-
let r = (0, import_compiler_runtime$71.c)(13), { packages: c, showMaxPackages: d, className: f, onInstall: h } = e, { handleInstallPackages: _ } = useInstallPackages();
|
|
45105
|
-
if (!c || c.length === 0) return null;
|
|
45106
|
-
let y;
|
|
45107
|
-
r[0] !== _ || r[1] !== h || r[2] !== c ? (y = () => {
|
|
45108
|
-
_(c, h);
|
|
45109
|
-
}, r[0] = _, r[1] = h, r[2] = c, r[3] = y) : y = r[3];
|
|
45110
|
-
let S;
|
|
45111
|
-
r[4] === f ? S = r[5] : (S = cn("ml-2", f), r[4] = f, r[5] = S);
|
|
45112
|
-
let w;
|
|
45113
|
-
r[6] !== c || r[7] !== d ? (w = d ? c.slice(0, d).join(", ") : c.join(", "), r[6] = c, r[7] = d, r[8] = w) : w = r[8];
|
|
45114
|
-
let E;
|
|
45115
|
-
return r[9] !== y || r[10] !== S || r[11] !== w ? (E = (0, import_jsx_runtime.jsxs)(Button, {
|
|
45116
|
-
variant: "outline",
|
|
45117
|
-
size: "xs",
|
|
45118
|
-
onClick: y,
|
|
45119
|
-
className: S,
|
|
45120
|
-
children: [
|
|
45121
|
-
"Install",
|
|
45122
|
-
" ",
|
|
45123
|
-
w
|
|
45124
|
-
]
|
|
45125
|
-
}), r[9] = y, r[10] = S, r[11] = w, r[12] = E) : E = r[12], E;
|
|
45126
|
-
};
|
|
45127
45183
|
var import_compiler_runtime$70 = require_compiler_runtime();
|
|
45128
45184
|
function renderPreviewError({ error: e, missingPackages: r, refetchPreview: c }) {
|
|
45129
45185
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -49514,8 +49570,8 @@ ${c}
|
|
|
49514
49570
|
r[31] !== v || r[32] !== _ ? (C9 = (e2) => {
|
|
49515
49571
|
dequal(e2, _) || (v(e2), s9(e2));
|
|
49516
49572
|
}, r[31] = v, r[32] = _, r[33] = C9) : C9 = r[33];
|
|
49517
|
-
let
|
|
49518
|
-
r[34] !== n9 || r[35] !== c || r[36] !== S || r[37] !== o9 || r[38] !== h || r[39] !== C9 ? (
|
|
49573
|
+
let T9;
|
|
49574
|
+
r[34] !== n9 || r[35] !== c || r[36] !== S || r[37] !== o9 || r[38] !== h || r[39] !== C9 ? (T9 = (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
49519
49575
|
value: "transform",
|
|
49520
49576
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
49521
49577
|
children: (0, import_jsx_runtime.jsx)(TransformPanel, {
|
|
@@ -49528,9 +49584,9 @@ ${c}
|
|
|
49528
49584
|
columnTypesPerStep: n9,
|
|
49529
49585
|
lazy: h
|
|
49530
49586
|
})
|
|
49531
|
-
}), r[34] = n9, r[35] = c, r[36] = S, r[37] = o9, r[38] = h, r[39] = C9, r[40] =
|
|
49532
|
-
let
|
|
49533
|
-
r[41] === r9 ?
|
|
49587
|
+
}), r[34] = n9, r[35] = c, r[36] = S, r[37] = o9, r[38] = h, r[39] = C9, r[40] = T9) : T9 = r[40];
|
|
49588
|
+
let E9;
|
|
49589
|
+
r[41] === r9 ? E9 = r[42] : (E9 = r9 && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
49534
49590
|
value: "python-code",
|
|
49535
49591
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
49536
49592
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -49539,9 +49595,9 @@ ${c}
|
|
|
49539
49595
|
code: r9,
|
|
49540
49596
|
language: "python"
|
|
49541
49597
|
})
|
|
49542
|
-
}), r[41] = r9, r[42] =
|
|
49543
|
-
let
|
|
49544
|
-
r[43] === i9 ?
|
|
49598
|
+
}), r[41] = r9, r[42] = E9);
|
|
49599
|
+
let D9;
|
|
49600
|
+
r[43] === i9 ? D9 = r[44] : (D9 = i9 && (0, import_jsx_runtime.jsx)(TabsContent, {
|
|
49545
49601
|
value: "sql-code",
|
|
49546
49602
|
className: "mt-1 border rounded-t overflow-hidden",
|
|
49547
49603
|
children: (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
@@ -49550,35 +49606,35 @@ ${c}
|
|
|
49550
49606
|
code: i9,
|
|
49551
49607
|
language: "sql"
|
|
49552
49608
|
})
|
|
49553
|
-
}), r[43] = i9, r[44] =
|
|
49554
|
-
let
|
|
49555
|
-
r[45] !== u9 || r[46] !== S9 || r[47] !==
|
|
49609
|
+
}), r[43] = i9, r[44] = D9);
|
|
49610
|
+
let O9;
|
|
49611
|
+
r[45] !== u9 || r[46] !== S9 || r[47] !== T9 || r[48] !== E9 || r[49] !== D9 ? (O9 = (0, import_jsx_runtime.jsxs)(Tabs, {
|
|
49556
49612
|
defaultValue: "transform",
|
|
49557
49613
|
onValueChange: u9,
|
|
49558
49614
|
children: [
|
|
49559
49615
|
S9,
|
|
49560
|
-
w9,
|
|
49561
49616
|
T9,
|
|
49562
|
-
E9
|
|
49617
|
+
E9,
|
|
49618
|
+
D9
|
|
49563
49619
|
]
|
|
49564
|
-
}), r[45] = u9, r[46] = S9, r[47] =
|
|
49565
|
-
let
|
|
49566
|
-
r[51] === G ?
|
|
49620
|
+
}), r[45] = u9, r[46] = S9, r[47] = T9, r[48] = E9, r[49] = D9, r[50] = O9) : O9 = r[50];
|
|
49621
|
+
let k9;
|
|
49622
|
+
r[51] === G ? k9 = r[52] : (k9 = G && (0, import_jsx_runtime.jsx)(ErrorBanner, {
|
|
49567
49623
|
error: G
|
|
49568
|
-
}), r[51] = G, r[52] =
|
|
49569
|
-
let
|
|
49570
|
-
r[53] !== E || r[54] !== t9 || r[55] !== O || r[56] !== d || r[57] !== w || r[58] !== f || r[59] !==
|
|
49624
|
+
}), r[51] = G, r[52] = k9);
|
|
49625
|
+
let A9 = Q7 || "", j9 = $7 ?? 0, M9 = a9 ?? 0, N9 = e9 || Arrays.EMPTY, P9 = $7 && $7 > 5 || false, F9;
|
|
49626
|
+
r[53] !== E || r[54] !== t9 || r[55] !== O || r[56] !== d || r[57] !== w || r[58] !== f || r[59] !== A9 || r[60] !== j9 || r[61] !== M9 || r[62] !== N9 || r[63] !== P9 ? (F9 = (0, import_jsx_runtime.jsx)(LoadingDataTableComponent, {
|
|
49571
49627
|
label: null,
|
|
49572
49628
|
className: "rounded-b border-x border-b",
|
|
49573
|
-
data:
|
|
49629
|
+
data: A9,
|
|
49574
49630
|
hasStableRowId: false,
|
|
49575
|
-
totalRows:
|
|
49576
|
-
totalColumns:
|
|
49631
|
+
totalRows: j9,
|
|
49632
|
+
totalColumns: M9,
|
|
49577
49633
|
maxColumns: "all",
|
|
49578
49634
|
pageSize: d,
|
|
49579
49635
|
pagination: true,
|
|
49580
49636
|
fieldTypes: t9,
|
|
49581
|
-
rowHeaders:
|
|
49637
|
+
rowHeaders: N9,
|
|
49582
49638
|
showDownload: f,
|
|
49583
49639
|
download_as: E,
|
|
49584
49640
|
enableSearch: false,
|
|
@@ -49587,7 +49643,7 @@ ${c}
|
|
|
49587
49643
|
showColumnSummaries: false,
|
|
49588
49644
|
showDataTypes: true,
|
|
49589
49645
|
get_column_summaries: getColumnSummaries,
|
|
49590
|
-
showPageSizeSelector:
|
|
49646
|
+
showPageSizeSelector: P9,
|
|
49591
49647
|
showColumnExplorer: false,
|
|
49592
49648
|
showRowExplorer: true,
|
|
49593
49649
|
showChartBuilder: false,
|
|
@@ -49596,15 +49652,15 @@ ${c}
|
|
|
49596
49652
|
selection: null,
|
|
49597
49653
|
lazy: false,
|
|
49598
49654
|
host: O
|
|
49599
|
-
}), r[53] = E, r[54] = t9, r[55] = O, r[56] = d, r[57] = w, r[58] = f, r[59] =
|
|
49600
|
-
let
|
|
49601
|
-
return r[65] !==
|
|
49655
|
+
}), r[53] = E, r[54] = t9, r[55] = O, r[56] = d, r[57] = w, r[58] = f, r[59] = A9, r[60] = j9, r[61] = M9, r[62] = N9, r[63] = P9, r[64] = F9) : F9 = r[64];
|
|
49656
|
+
let I9;
|
|
49657
|
+
return r[65] !== O9 || r[66] !== k9 || r[67] !== F9 ? (I9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
49602
49658
|
children: [
|
|
49603
|
-
D9,
|
|
49604
49659
|
O9,
|
|
49605
|
-
|
|
49660
|
+
k9,
|
|
49661
|
+
F9
|
|
49606
49662
|
]
|
|
49607
|
-
}), r[65] =
|
|
49663
|
+
}), r[65] = O9, r[66] = k9, r[67] = F9, r[68] = I9) : I9 = r[68], I9;
|
|
49608
49664
|
});
|
|
49609
49665
|
DataFrameComponent.displayName = "DataFrameComponent";
|
|
49610
49666
|
function getColumnSummaries() {
|
|
@@ -49813,8 +49869,8 @@ ${c}
|
|
|
49813
49869
|
...c2
|
|
49814
49870
|
]), M("Deselect all");
|
|
49815
49871
|
}
|
|
49816
|
-
let
|
|
49817
|
-
|
|
49872
|
+
let f9 = [];
|
|
49873
|
+
f9.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
49818
49874
|
className: "hover:bg-primary hover:bg-opacity-25 select-none",
|
|
49819
49875
|
onClick: () => s9(PARENT_DIRECTORY),
|
|
49820
49876
|
children: [
|
|
@@ -49859,7 +49915,7 @@ ${c}
|
|
|
49859
49915
|
size: 16,
|
|
49860
49916
|
className: "mr-2"
|
|
49861
49917
|
});
|
|
49862
|
-
|
|
49918
|
+
f9.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
49863
49919
|
className: cn("hover:bg-primary hover:bg-opacity-25 group select-none", {
|
|
49864
49920
|
"bg-primary bg-opacity-25": f2
|
|
49865
49921
|
}),
|
|
@@ -49879,12 +49935,12 @@ ${c}
|
|
|
49879
49935
|
]
|
|
49880
49936
|
}, e2.id));
|
|
49881
49937
|
}
|
|
49882
|
-
let { parentDirectories:
|
|
49938
|
+
let { parentDirectories: p9 } = getProtocolAndParentDirectories({
|
|
49883
49939
|
path: w,
|
|
49884
49940
|
delimiter: n9,
|
|
49885
49941
|
initialPath: c,
|
|
49886
49942
|
restrictNavigation: _
|
|
49887
|
-
}),
|
|
49943
|
+
}), m9 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
49888
49944
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
49889
49945
|
children: [
|
|
49890
49946
|
Q7 && (0, import_jsx_runtime.jsx)(Banner, {
|
|
@@ -49892,7 +49948,7 @@ ${c}
|
|
|
49892
49948
|
children: Q7.message
|
|
49893
49949
|
}),
|
|
49894
49950
|
(() => {
|
|
49895
|
-
h ?? (h = `Select ${
|
|
49951
|
+
h ?? (h = `Select ${m9.join(" and ", 2)}...`);
|
|
49896
49952
|
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
49897
49953
|
children: renderHTML({
|
|
49898
49954
|
html: h
|
|
@@ -49923,7 +49979,7 @@ ${c}
|
|
|
49923
49979
|
placeholder: w,
|
|
49924
49980
|
value: w,
|
|
49925
49981
|
onChange: (e2) => s9(e2.target.value),
|
|
49926
|
-
children:
|
|
49982
|
+
children: p9.map((e2) => (0, import_jsx_runtime.jsx)("option", {
|
|
49927
49983
|
value: e2,
|
|
49928
49984
|
selected: e2 === w,
|
|
49929
49985
|
children: e2
|
|
@@ -49956,7 +50012,7 @@ ${c}
|
|
|
49956
50012
|
(0, import_jsx_runtime.jsx)(Table, {
|
|
49957
50013
|
className: "cursor-pointer table-fixed",
|
|
49958
50014
|
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
49959
|
-
children:
|
|
50015
|
+
children: f9
|
|
49960
50016
|
})
|
|
49961
50017
|
})
|
|
49962
50018
|
]
|
|
@@ -49973,7 +50029,7 @@ ${c}
|
|
|
49973
50029
|
children: [
|
|
49974
50030
|
e.length,
|
|
49975
50031
|
" ",
|
|
49976
|
-
|
|
50032
|
+
m9.join(" or ", e.length),
|
|
49977
50033
|
" ",
|
|
49978
50034
|
"selected"
|
|
49979
50035
|
]
|
|
@@ -56154,8 +56210,8 @@ ${c}
|
|
|
56154
56210
|
h9
|
|
56155
56211
|
]
|
|
56156
56212
|
}), r[33] = h9, r[34] = d9, r[35] = g9) : g9 = r[35];
|
|
56157
|
-
let
|
|
56158
|
-
r[36] !== g9 || r[37] !== o9 || r[38] !== s9 || r[39] !== c9 || r[40] !== l9 || r[41] !== u9 ? (
|
|
56213
|
+
let _9;
|
|
56214
|
+
r[36] !== g9 || r[37] !== o9 || r[38] !== s9 || r[39] !== c9 || r[40] !== l9 || r[41] !== u9 ? (_9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
56159
56215
|
className: o9,
|
|
56160
56216
|
onKeyDown: s9,
|
|
56161
56217
|
children: [
|
|
@@ -56164,14 +56220,14 @@ ${c}
|
|
|
56164
56220
|
u9,
|
|
56165
56221
|
g9
|
|
56166
56222
|
]
|
|
56167
|
-
}), r[36] = g9, r[37] = o9, r[38] = s9, r[39] = c9, r[40] = l9, r[41] = u9, r[42] =
|
|
56168
|
-
let
|
|
56169
|
-
return r[43] !==
|
|
56223
|
+
}), r[36] = g9, r[37] = o9, r[38] = s9, r[39] = c9, r[40] = l9, r[41] = u9, r[42] = _9) : _9 = r[42];
|
|
56224
|
+
let v9;
|
|
56225
|
+
return r[43] !== _9 || r[44] !== i9 ? (v9 = (0, import_jsx_runtime.jsx)("form", {
|
|
56170
56226
|
className: "contents",
|
|
56171
56227
|
ref: Z7,
|
|
56172
56228
|
onSubmit: i9,
|
|
56173
|
-
children:
|
|
56174
|
-
}), r[43] =
|
|
56229
|
+
children: _9
|
|
56230
|
+
}), r[43] = _9, r[44] = i9, r[45] = v9) : v9 = r[45], v9;
|
|
56175
56231
|
};
|
|
56176
56232
|
var Form = (e) => {
|
|
56177
56233
|
let r = (0, import_compiler_runtime$44.c)(24), c, d, f, h, _, v;
|
|
@@ -69021,7 +69077,7 @@ ${c}
|
|
|
69021
69077
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
69022
69078
|
}
|
|
69023
69079
|
}
|
|
69024
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.2-
|
|
69080
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.2-dev50"), showCodeInRunModeAtom = atom(true);
|
|
69025
69081
|
atom(null);
|
|
69026
69082
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
69027
69083
|
constructor() {
|
|
@@ -69395,27 +69451,27 @@ ${c}
|
|
|
69395
69451
|
]
|
|
69396
69452
|
}), r[35] = i9, r[36] = z2, r[37] = S2, r[38] = E2, r[39] = O2, r[40] = M2, r[41] = Y72) : Y72 = r[41], Y72;
|
|
69397
69453
|
}
|
|
69398
|
-
let
|
|
69399
|
-
if ((S || E || y ||
|
|
69400
|
-
let
|
|
69401
|
-
r[42] !== h || r[43] !== G ? (
|
|
69402
|
-
let
|
|
69403
|
-
r[45] !== h || r[46] !== t9 || r[47] !== c || r[48] !== $7 || r[49] !==
|
|
69404
|
-
allowExpand:
|
|
69454
|
+
let o9 = isErrorMime(c == null ? void 0 : c.mimetype), s9 = X7 && o9 && Array.isArray(c == null ? void 0 : c.data) && c.data.some(_temp6);
|
|
69455
|
+
if ((S || E || y || o9) && !s9) return null;
|
|
69456
|
+
let c9;
|
|
69457
|
+
r[42] !== h || r[43] !== G ? (c9 = cellDomProps(h, G), r[42] = h, r[43] = G, r[44] = c9) : c9 = r[44];
|
|
69458
|
+
let l9 = Y7 === "edit", u9;
|
|
69459
|
+
r[45] !== h || r[46] !== t9 || r[47] !== c || r[48] !== $7 || r[49] !== l9 ? (u9 = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
69460
|
+
allowExpand: l9,
|
|
69405
69461
|
output: c,
|
|
69406
69462
|
className: CSSClasses.outputArea,
|
|
69407
69463
|
cellId: h,
|
|
69408
69464
|
stale: $7,
|
|
69409
69465
|
loading: t9
|
|
69410
|
-
}), r[45] = h, r[46] = t9, r[47] = c, r[48] = $7, r[49] =
|
|
69411
|
-
let
|
|
69412
|
-
return r[51] !== i9 || r[52] !==
|
|
69466
|
+
}), r[45] = h, r[46] = t9, r[47] = c, r[48] = $7, r[49] = l9, r[50] = u9) : u9 = r[50];
|
|
69467
|
+
let d9;
|
|
69468
|
+
return r[51] !== i9 || r[52] !== c9 || r[53] !== u9 ? (d9 = (0, import_jsx_runtime.jsx)("div", {
|
|
69413
69469
|
tabIndex: -1,
|
|
69414
69470
|
ref: Z7,
|
|
69415
69471
|
className: i9,
|
|
69416
|
-
...
|
|
69417
|
-
children:
|
|
69418
|
-
}), r[51] = i9, r[52] =
|
|
69472
|
+
...c9,
|
|
69473
|
+
children: u9
|
|
69474
|
+
}), r[51] = i9, r[52] = c9, r[53] = u9, r[54] = d9) : d9 = r[54], d9;
|
|
69419
69475
|
});
|
|
69420
69476
|
VerticalCell.displayName = "VerticalCell";
|
|
69421
69477
|
const VerticalLayoutPlugin = {
|