@marimo-team/islands 0.23.2-dev53 → 0.23.2-dev54
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/main.js +761 -677
- package/dist/style.css +1 -1
- package/package.json +1 -1
- package/src/plugins/impl/FileBrowserPlugin.tsx +81 -81
package/dist/main.js
CHANGED
|
@@ -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$145 = 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$145.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$145.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$145.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$145.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$145.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$145.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$144 = 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$144.c)(13), { items: c, orientation: d } = e, f = _temp$38, h = _temp2$26, _ = _temp3$18, 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$144.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$38(e, r) {
|
|
14081
14081
|
return r ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
14082
14082
|
delayDuration: 200,
|
|
14083
14083
|
content: renderHTML({
|
|
@@ -14086,10 +14086,10 @@ Defaulting to \`null\`.`;
|
|
|
14086
14086
|
children: e
|
|
14087
14087
|
}) : e;
|
|
14088
14088
|
}
|
|
14089
|
-
function _temp2$
|
|
14089
|
+
function _temp2$26(e) {
|
|
14090
14090
|
return e.startsWith("http") ? "_blank" : "_self";
|
|
14091
14091
|
}
|
|
14092
|
-
function _temp3$
|
|
14092
|
+
function _temp3$18(e) {
|
|
14093
14093
|
return appendQueryParams({
|
|
14094
14094
|
href: e,
|
|
14095
14095
|
queryParams: new URL(globalThis.location.href).search,
|
|
@@ -16942,9 +16942,9 @@ Defaulting to \`null\`.`;
|
|
|
16942
16942
|
isSelected: _
|
|
16943
16943
|
}
|
|
16944
16944
|
}, M.children));
|
|
16945
|
-
}), import_compiler_runtime$
|
|
16945
|
+
}), import_compiler_runtime$143 = require_compiler_runtime();
|
|
16946
16946
|
const LocaleProvider = (e) => {
|
|
16947
|
-
let r = (0, import_compiler_runtime$
|
|
16947
|
+
let r = (0, import_compiler_runtime$143.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$142 = require_compiler_runtime();
|
|
17927
17927
|
const EmotionCacheProvider = (e) => {
|
|
17928
|
-
let r = (0, import_compiler_runtime$
|
|
17928
|
+
let r = (0, import_compiler_runtime$142.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$141 = 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$141.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$140 = require_compiler_runtime();
|
|
23118
23118
|
const ImageOutput = (e) => {
|
|
23119
|
-
let r = (0, import_compiler_runtime$
|
|
23119
|
+
let r = (0, import_compiler_runtime$140.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$139 = require_compiler_runtime();
|
|
23133
23133
|
const Kbd = (e) => {
|
|
23134
|
-
let r = (0, import_compiler_runtime$
|
|
23134
|
+
let r = (0, import_compiler_runtime$139.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$138 = require_compiler_runtime();
|
|
23143
23143
|
const ExternalLink$1 = (e) => {
|
|
23144
|
-
let r = (0, import_compiler_runtime$
|
|
23144
|
+
let r = (0, import_compiler_runtime$138.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$137 = 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$137.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$136 = require_compiler_runtime();
|
|
23324
23324
|
const AutoFixButton = (e) => {
|
|
23325
|
-
let r = (0, import_compiler_runtime$
|
|
23325
|
+
let r = (0, import_compiler_runtime$136.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$136.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$136.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$134 = require_compiler_runtime();
|
|
23493
23493
|
const CellLink = (e) => {
|
|
23494
|
-
let r = (0, import_compiler_runtime$
|
|
23494
|
+
let r = (0, import_compiler_runtime$134.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$37, 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$134.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$134.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$37(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$133 = 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$133.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$133.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$132 = require_compiler_runtime(), Tip = (e) => {
|
|
23761
|
+
let r = (0, import_compiler_runtime$132.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,10 +23786,10 @@ 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$
|
|
23791
|
-
else if (c.some(_temp2$
|
|
23792
|
-
else if (c.some(_temp3$
|
|
23789
|
+
let r = (0, import_compiler_runtime$132.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$36)) _ = "Interrupted";
|
|
23791
|
+
else if (c.some(_temp2$25)) _ = "An internal error occurred";
|
|
23792
|
+
else if (c.some(_temp3$17)) _ = "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";
|
|
23794
23794
|
else if (c.some(_temp5$5)) _ = "SQL error";
|
|
23795
23795
|
else {
|
|
@@ -24154,13 +24154,13 @@ 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$36(e) {
|
|
24158
24158
|
return e.type === "interruption";
|
|
24159
24159
|
}
|
|
24160
|
-
function _temp2$
|
|
24160
|
+
function _temp2$25(e) {
|
|
24161
24161
|
return e.type === "internal";
|
|
24162
24162
|
}
|
|
24163
|
-
function _temp3$
|
|
24163
|
+
function _temp3$17(e) {
|
|
24164
24164
|
return e.type === "ancestor-prevented";
|
|
24165
24165
|
}
|
|
24166
24166
|
function _temp4$9(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$131 = require_compiler_runtime();
|
|
24467
24467
|
const TextOutput = (e) => {
|
|
24468
|
-
let r = (0, import_compiler_runtime$
|
|
24468
|
+
let r = (0, import_compiler_runtime$131.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$130 = require_compiler_runtime();
|
|
24486
24486
|
const VideoOutput = (e) => {
|
|
24487
|
-
let r = (0, import_compiler_runtime$
|
|
24487
|
+
let r = (0, import_compiler_runtime$130.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$129 = require_compiler_runtime();
|
|
24494
24494
|
function useOverflowDetection(e, r) {
|
|
24495
|
-
let c = (0, import_compiler_runtime$
|
|
24495
|
+
let c = (0, import_compiler_runtime$129.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$128 = require_compiler_runtime();
|
|
24593
24593
|
const ChartLoadingState = () => {
|
|
24594
|
-
let e = (0, import_compiler_runtime$
|
|
24594
|
+
let e = (0, import_compiler_runtime$128.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$128.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$128.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$127 = require_compiler_runtime(), Tabs = Root2, TabsList = import_react.forwardRef((e, r) => {
|
|
24637
|
+
let c = (0, import_compiler_runtime$127.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$127.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$127.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$126 = require_compiler_runtime();
|
|
24676
24676
|
const WithLocale = (e) => {
|
|
24677
|
-
let r = (0, import_compiler_runtime$
|
|
24677
|
+
let r = (0, import_compiler_runtime$126.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$125 = require_compiler_runtime(), Command = import_react.forwardRef((e, r) => {
|
|
25497
|
+
let c = (0, import_compiler_runtime$125.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$125.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$125.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$125.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$125.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$125.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$125.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$124 = require_compiler_runtime();
|
|
25607
25607
|
const DraggablePopover = (e) => {
|
|
25608
|
-
let r = (0, import_compiler_runtime$
|
|
25608
|
+
let r = (0, import_compiler_runtime$124.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$123 = 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$123.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$122 = 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$122.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$122.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$121 = require_compiler_runtime();
|
|
28240
28240
|
const MimeCell = (e) => {
|
|
28241
|
-
let r = (0, import_compiler_runtime$
|
|
28241
|
+
let r = (0, import_compiler_runtime$121.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$120 = require_compiler_runtime();
|
|
28908
28908
|
const DelayMount = (e) => {
|
|
28909
|
-
let r = (0, import_compiler_runtime$
|
|
28909
|
+
let r = (0, import_compiler_runtime$120.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$119 = require_compiler_runtime();
|
|
28941
28941
|
const DatePopover = (e) => {
|
|
28942
|
-
let r = (0, import_compiler_runtime$
|
|
28942
|
+
let r = (0, import_compiler_runtime$119.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$119.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$119.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$119.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$118 = 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$118.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$117 = 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$117.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$116 = require_compiler_runtime(), ImageWithFallback = (e) => {
|
|
30360
|
+
let r = (0, import_compiler_runtime$116.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$116.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$116.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$115 = require_compiler_runtime(), Table = import_react.forwardRef((e, r) => {
|
|
30820
|
+
let c = (0, import_compiler_runtime$115.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$115.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$115.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$115.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$115.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$115.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$115.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$115.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$114 = 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$114.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$113 = 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$113.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$112 = require_compiler_runtime();
|
|
32541
32541
|
function useScrollContainerHeight(e) {
|
|
32542
|
-
let r = (0, import_compiler_runtime$
|
|
32542
|
+
let r = (0, import_compiler_runtime$112.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$111 = require_compiler_runtime();
|
|
33140
33140
|
const CellSelectionProvider = (e) => {
|
|
33141
|
-
let r = (0, import_compiler_runtime$
|
|
33141
|
+
let r = (0, import_compiler_runtime$111.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$110 = 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$110.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$110.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$110.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$110.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$110.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$110.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$110.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$110.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$109 = require_compiler_runtime();
|
|
33868
33868
|
const DataTableContextMenu = (e) => {
|
|
33869
|
-
let r = (0, import_compiler_runtime$
|
|
33869
|
+
let r = (0, import_compiler_runtime$109.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$108 = 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$108.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$107 = require_compiler_runtime();
|
|
33985
33985
|
const useCellRangeSelection = (e) => {
|
|
33986
|
-
let r = (0, import_compiler_runtime$
|
|
33986
|
+
let r = (0, import_compiler_runtime$107.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$106 = 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$106.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$105 = 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$105.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$105.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$105.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$105.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$35, 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,9 +34677,9 @@ 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$105.c)(5), { numericValues: c, locale: d } = e;
|
|
34681
34681
|
if (c.length === 0) return null;
|
|
34682
|
-
let f = c.reduce(_temp2$
|
|
34682
|
+
let f = c.reduce(_temp2$24, 0) / c.length, h;
|
|
34683
34683
|
r[0] === f ? h = r[1] : (h = f.toFixed(MAX_FRACTION_DIGITS), r[0] = f, r[1] = h);
|
|
34684
34684
|
let _ = Number(h), v;
|
|
34685
34685
|
return r[2] !== _ || r[3] !== d ? (v = (0, import_jsx_runtime.jsx)(StatSpan, {
|
|
@@ -34688,10 +34688,10 @@ 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$35(e, r) {
|
|
34692
34692
|
return e + r;
|
|
34693
34693
|
}
|
|
34694
|
-
function _temp2$
|
|
34694
|
+
function _temp2$24(e, r) {
|
|
34695
34695
|
return e + r;
|
|
34696
34696
|
}
|
|
34697
34697
|
const TableBottomBar = ({ pagination: e, totalColumns: r, selection: c, onRowSelectionChange: d, table: f, getRowIds: h, showPageSizeSelector: _, tableLoading: S, part: w, className: E }) => {
|
|
@@ -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$104 = require_compiler_runtime(), Progress = import_react.forwardRef((e, r) => {
|
|
34830
|
+
let c = (0, import_compiler_runtime$104.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,9 +34879,9 @@ 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$103 = require_compiler_runtime();
|
|
34883
34883
|
const InstallPackageButton = (e) => {
|
|
34884
|
-
let r = (0, import_compiler_runtime$
|
|
34884
|
+
let r = (0, import_compiler_runtime$103.c)(13), { packages: c, showMaxPackages: d, className: f, onInstall: h } = e, { handleInstallPackages: _ } = useInstallPackages();
|
|
34885
34885
|
if (!c || c.length === 0) return null;
|
|
34886
34886
|
let y;
|
|
34887
34887
|
r[0] !== _ || r[1] !== h || r[2] !== c ? (y = () => {
|
|
@@ -34904,9 +34904,9 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34904
34904
|
]
|
|
34905
34905
|
}), r[9] = y, r[10] = S, r[11] = w, r[12] = E) : E = r[12], E;
|
|
34906
34906
|
};
|
|
34907
|
-
var import_compiler_runtime$
|
|
34907
|
+
var import_compiler_runtime$102 = require_compiler_runtime();
|
|
34908
34908
|
const MissingPackagePrompt = (e) => {
|
|
34909
|
-
let r = (0, import_compiler_runtime$
|
|
34909
|
+
let r = (0, import_compiler_runtime$102.c)(16), { packages: c, featureName: d, description: f, onInstall: h, className: _ } = e;
|
|
34910
34910
|
if (!useInstallAllowed()) {
|
|
34911
34911
|
let e2;
|
|
34912
34912
|
r[0] === _ ? e2 = r[1] : (e2 = cn("text-xs", _), r[0] = _, r[1] = e2);
|
|
@@ -34941,7 +34941,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34941
34941
|
]
|
|
34942
34942
|
}), r[12] = y, r[13] = w, r[14] = E, r[15] = O) : O = r[15], O;
|
|
34943
34943
|
};
|
|
34944
|
-
var import_compiler_runtime$
|
|
34944
|
+
var import_compiler_runtime$101 = require_compiler_runtime(), FILE_TYPES = {
|
|
34945
34945
|
CSV: {
|
|
34946
34946
|
label: "CSV",
|
|
34947
34947
|
format: "csv",
|
|
@@ -34986,7 +34986,7 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
34986
34986
|
return ((_a3 = downloadOptions.find((r) => r.format === e)) == null ? void 0 : _a3.label) ?? e;
|
|
34987
34987
|
};
|
|
34988
34988
|
const ExportMenu = (e) => {
|
|
34989
|
-
let r = (0, import_compiler_runtime$
|
|
34989
|
+
let r = (0, import_compiler_runtime$101.c)(48), { locale: c } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [d, f] = import_react.useState(false), h = d ? "text-primary" : "text-muted-foreground", _;
|
|
34990
34990
|
r[0] === h ? _ = r[1] : (_ = cn("print:hidden text-xs gap-1", h), r[0] = h, r[1] = _);
|
|
34991
34991
|
let y;
|
|
34992
34992
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (0, import_jsx_runtime.jsx)(Download, {
|
|
@@ -35449,10 +35449,10 @@ Database schema: ${c}`), (_a4 = r2.aiFix) == null ? void 0 : _a4.setAiCompletion
|
|
|
35449
35449
|
]
|
|
35450
35450
|
}), e.focus(), true;
|
|
35451
35451
|
}
|
|
35452
|
-
var import_compiler_runtime$
|
|
35452
|
+
var import_compiler_runtime$99 = require_compiler_runtime(), KEY$1 = "item";
|
|
35453
35453
|
const MarimoTracebackOutput = (e) => {
|
|
35454
35454
|
var _a3;
|
|
35455
|
-
let r = (0, import_compiler_runtime$
|
|
35455
|
+
let r = (0, import_compiler_runtime$99.c)(47), { onRefactorWithAI: c, traceback: d, cellId: f } = e, h;
|
|
35456
35456
|
r[0] === d ? h = r[1] : (h = renderHTML({
|
|
35457
35457
|
html: d,
|
|
35458
35458
|
additionalReplacements: [
|
|
@@ -35474,7 +35474,7 @@ ${w}`,
|
|
|
35474
35474
|
triggerImmediately: e2
|
|
35475
35475
|
});
|
|
35476
35476
|
}, [Q7, e9] = w.split(":", 2), n9 = y ? KEY$1 : "", r9;
|
|
35477
|
-
r[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r9 = () => S(_temp$
|
|
35477
|
+
r[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r9 = () => S(_temp$34), r[10] = r9) : r9 = r[10];
|
|
35478
35478
|
let i9 = y ? "rotate-180" : "rotate-0", a9;
|
|
35479
35479
|
r[11] === i9 ? a9 = r[12] : (a9 = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", i9), r[11] = i9, r[12] = a9);
|
|
35480
35480
|
let o9;
|
|
@@ -35701,7 +35701,7 @@ ${w}`,
|
|
|
35701
35701
|
});
|
|
35702
35702
|
};
|
|
35703
35703
|
var InsertBreakpointContent = () => {
|
|
35704
|
-
let e = (0, import_compiler_runtime$
|
|
35704
|
+
let e = (0, import_compiler_runtime$99.c)(1), r;
|
|
35705
35705
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
35706
35706
|
children: [
|
|
35707
35707
|
"Insert a ",
|
|
@@ -35713,7 +35713,7 @@ ${w}`,
|
|
|
35713
35713
|
]
|
|
35714
35714
|
}), e[0] = r) : r = e[0], r;
|
|
35715
35715
|
};
|
|
35716
|
-
function _temp$
|
|
35716
|
+
function _temp$34(e) {
|
|
35717
35717
|
return !e;
|
|
35718
35718
|
}
|
|
35719
35719
|
function renderMimeIcon(e) {
|
|
@@ -35755,9 +35755,9 @@ ${w}`,
|
|
|
35755
35755
|
return "\u2753";
|
|
35756
35756
|
}
|
|
35757
35757
|
}
|
|
35758
|
-
var import_compiler_runtime$
|
|
35758
|
+
var import_compiler_runtime$98 = require_compiler_runtime(), METADATA_KEY = "__metadata__";
|
|
35759
35759
|
const OutputRenderer = (0, import_react.memo)((e) => {
|
|
35760
|
-
let r = (0, import_compiler_runtime$
|
|
35760
|
+
let r = (0, import_compiler_runtime$98.c)(54), { message: c, onRefactorWithAI: d, cellId: f, wrapText: h, metadata: _, renderFallback: v } = e, { theme: y } = useTheme(), S;
|
|
35761
35761
|
bb0: {
|
|
35762
35762
|
let e2 = c.data;
|
|
35763
35763
|
switch (c.mimetype) {
|
|
@@ -35949,11 +35949,11 @@ ${w}`,
|
|
|
35949
35949
|
OutputRenderer.displayName = "OutputRenderer";
|
|
35950
35950
|
var MimeBundleOutputRenderer = (0, import_react.memo)((e) => {
|
|
35951
35951
|
var _a3;
|
|
35952
|
-
let r = (0, import_compiler_runtime$
|
|
35952
|
+
let r = (0, import_compiler_runtime$98.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;
|
|
35953
35953
|
if (r[0] !== S || r[1] !== f || r[2] !== d || r[3] !== w || r[4] !== h) {
|
|
35954
35954
|
q = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
35955
35955
|
bb0: {
|
|
35956
|
-
let { entries: e2 } = processMimeBundle(Objects.entries(h).filter(_temp$
|
|
35956
|
+
let { entries: e2 } = processMimeBundle(Objects.entries(h).filter(_temp$33).map(_temp2$23)), c2 = (_a3 = e2[0]) == null ? void 0 : _a3[0];
|
|
35957
35957
|
if (!c2) {
|
|
35958
35958
|
q = null;
|
|
35959
35959
|
break bb0;
|
|
@@ -35974,7 +35974,7 @@ ${w}`,
|
|
|
35974
35974
|
let y2 = S && "mt-4", X72;
|
|
35975
35975
|
r[13] === y2 ? X72 = r[14] : (X72 = cn("self-start max-h-none flex flex-col gap-2 mr-3 shrink-0", y2), r[13] = y2, r[14] = X72), z = (0, import_jsx_runtime.jsx)(TabsList, {
|
|
35976
35976
|
className: X72,
|
|
35977
|
-
children: e2.map(_temp3$
|
|
35977
|
+
children: e2.map(_temp3$16)
|
|
35978
35978
|
}), O = "flex-1 w-full";
|
|
35979
35979
|
let Z72;
|
|
35980
35980
|
r[15] !== f || r[16] !== d || r[17] !== w ? (Z72 = (e3) => {
|
|
@@ -36020,7 +36020,7 @@ ${w}`,
|
|
|
36020
36020
|
});
|
|
36021
36021
|
MimeBundleOutputRenderer.displayName = "MimeBundleOutputRenderer";
|
|
36022
36022
|
const OutputArea = import_react.memo((e) => {
|
|
36023
|
-
let r = (0, import_compiler_runtime$
|
|
36023
|
+
let r = (0, import_compiler_runtime$98.c)(17), { output: c, cellId: d, stale: f, loading: h, allowExpand: _, forceExpand: y, className: S } = e;
|
|
36024
36024
|
if (c == null || c.channel === "output" && c.data === "") return null;
|
|
36025
36025
|
let w = f ? "This output is stale" : void 0, E = _ ? ExpandableOutput : Div, O;
|
|
36026
36026
|
r[0] === d ? O = r[1] : (O = CellOutputId.create(d), r[0] = d, r[1] = O);
|
|
@@ -36045,7 +36045,7 @@ ${w}`,
|
|
|
36045
36045
|
});
|
|
36046
36046
|
OutputArea.displayName = "OutputArea";
|
|
36047
36047
|
var Div = import_react.forwardRef((e, r) => {
|
|
36048
|
-
let c = (0, import_compiler_runtime$
|
|
36048
|
+
let c = (0, import_compiler_runtime$98.c)(3), d;
|
|
36049
36049
|
return c[0] !== e || c[1] !== r ? (d = (0, import_jsx_runtime.jsx)("div", {
|
|
36050
36050
|
ref: r,
|
|
36051
36051
|
...e
|
|
@@ -36053,7 +36053,7 @@ ${w}`,
|
|
|
36053
36053
|
});
|
|
36054
36054
|
Div.displayName = "Div";
|
|
36055
36055
|
var ExpandableOutput = import_react.memo((e) => {
|
|
36056
|
-
let r = (0, import_compiler_runtime$
|
|
36056
|
+
let r = (0, import_compiler_runtime$98.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;
|
|
36057
36057
|
r[0] === O ? M = r[1] : (M = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
36058
36058
|
content: "Fullscreen",
|
|
36059
36059
|
side: "left",
|
|
@@ -36138,18 +36138,18 @@ ${w}`,
|
|
|
36138
36138
|
}), r[22] = Z7, r[23] = $7), $7;
|
|
36139
36139
|
});
|
|
36140
36140
|
ExpandableOutput.displayName = "ExpandableOutput";
|
|
36141
|
-
function _temp$
|
|
36141
|
+
function _temp$33(e) {
|
|
36142
36142
|
let [r] = e;
|
|
36143
36143
|
return r !== METADATA_KEY;
|
|
36144
36144
|
}
|
|
36145
|
-
function _temp2$
|
|
36145
|
+
function _temp2$23(e) {
|
|
36146
36146
|
let [r, c] = e;
|
|
36147
36147
|
return [
|
|
36148
36148
|
r,
|
|
36149
36149
|
c
|
|
36150
36150
|
];
|
|
36151
36151
|
}
|
|
36152
|
-
function _temp3$
|
|
36152
|
+
function _temp3$16(e) {
|
|
36153
36153
|
let [r] = e;
|
|
36154
36154
|
return (0, import_jsx_runtime.jsx)(TabsTrigger, {
|
|
36155
36155
|
value: r,
|
|
@@ -36164,8 +36164,8 @@ ${w}`,
|
|
|
36164
36164
|
})
|
|
36165
36165
|
}, r);
|
|
36166
36166
|
}
|
|
36167
|
-
var import_compiler_runtime$
|
|
36168
|
-
let r = (0, import_compiler_runtime$
|
|
36167
|
+
var import_compiler_runtime$97 = require_compiler_runtime(), CopyButton$1 = (e) => {
|
|
36168
|
+
let r = (0, import_compiler_runtime$97.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), _;
|
|
36169
36169
|
r[0] === c ? _ = r[1] : (_ = async (e2) => {
|
|
36170
36170
|
e2.stopPropagation(), await copyToClipboard(c), h(true), setTimeout(() => h(false), 1e3);
|
|
36171
36171
|
}, r[0] = c, r[1] = _);
|
|
@@ -36188,7 +36188,7 @@ ${w}`,
|
|
|
36188
36188
|
children: w
|
|
36189
36189
|
}), r[5] = y, r[6] = w, r[7] = E) : E = r[7], E;
|
|
36190
36190
|
}, JSONCopyButton = (e) => {
|
|
36191
|
-
let r = (0, import_compiler_runtime$
|
|
36191
|
+
let r = (0, import_compiler_runtime$97.c)(5), c;
|
|
36192
36192
|
r[0] === e.value ? c = r[1] : (c = JSON.stringify(e.value, null, 2), r[0] = e.value, r[1] = c);
|
|
36193
36193
|
let d;
|
|
36194
36194
|
return r[2] !== e || r[3] !== c ? (d = (0, import_jsx_runtime.jsx)(CopyButton$1, {
|
|
@@ -36196,7 +36196,7 @@ ${w}`,
|
|
|
36196
36196
|
value: c
|
|
36197
36197
|
}), r[2] = e, r[3] = c, r[4] = d) : d = r[4], d;
|
|
36198
36198
|
}, PyCopyButton = (e) => {
|
|
36199
|
-
let r = (0, import_compiler_runtime$
|
|
36199
|
+
let r = (0, import_compiler_runtime$97.c)(5), c;
|
|
36200
36200
|
r[0] === e.value ? c = r[1] : (c = getCopyValue(e.value), r[0] = e.value, r[1] = c);
|
|
36201
36201
|
let d;
|
|
36202
36202
|
return r[2] !== e || r[3] !== c ? (d = (0, import_jsx_runtime.jsx)(CopyButton$1, {
|
|
@@ -36205,7 +36205,7 @@ ${w}`,
|
|
|
36205
36205
|
}), r[2] = e, r[3] = c, r[4] = d) : d = r[4], d;
|
|
36206
36206
|
};
|
|
36207
36207
|
const JsonOutput = (0, import_react.memo)((e) => {
|
|
36208
|
-
let r = (0, import_compiler_runtime$
|
|
36208
|
+
let r = (0, import_compiler_runtime$97.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();
|
|
36209
36209
|
y === "auto" && (y = inferBestFormat(c));
|
|
36210
36210
|
let O;
|
|
36211
36211
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
@@ -36264,7 +36264,7 @@ ${w}`,
|
|
|
36264
36264
|
return typeof e == "object" && e ? "tree" : "raw";
|
|
36265
36265
|
}
|
|
36266
36266
|
var COLLAPSED_TEXT_LENGTH = 100, CollapsibleTextOutput = (e) => {
|
|
36267
|
-
let r = (0, import_compiler_runtime$
|
|
36267
|
+
let r = (0, import_compiler_runtime$97.c)(11), [c, d] = (0, import_react.useState)(true);
|
|
36268
36268
|
if (e.text.length <= COLLAPSED_TEXT_LENGTH) {
|
|
36269
36269
|
let c2;
|
|
36270
36270
|
return r[0] === e.text ? c2 = r[1] : (c2 = (0, import_jsx_runtime.jsx)("span", {
|
|
@@ -36473,16 +36473,16 @@ ${w}`,
|
|
|
36473
36473
|
return c <= 20 ? void 0 : c >= 50 ? 5 : 10;
|
|
36474
36474
|
}
|
|
36475
36475
|
}
|
|
36476
|
-
var import_compiler_runtime$
|
|
36476
|
+
var import_compiler_runtime$96 = require_compiler_runtime(), Accordion$1 = Root2$4, AccordionContent$1 = Content2$1, AccordionItem$1 = Item$1, AccordionTrigger$1 = Trigger2;
|
|
36477
36477
|
const BadPluginData = (e) => {
|
|
36478
|
-
let r = (0, import_compiler_runtime$
|
|
36478
|
+
let r = (0, import_compiler_runtime$96.c)(16), { error: c, badData: d, shadowRoot: f } = e;
|
|
36479
36479
|
if (c instanceof ZodError) {
|
|
36480
36480
|
let e2;
|
|
36481
36481
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
36482
36482
|
children: "Bad Data"
|
|
36483
36483
|
}), r[0] = e2) : e2 = r[0];
|
|
36484
36484
|
let h2;
|
|
36485
|
-
r[1] === c.issues ? h2 = r[2] : (h2 = c.issues.map(_temp$
|
|
36485
|
+
r[1] === c.issues ? h2 = r[2] : (h2 = c.issues.map(_temp$32), r[1] = c.issues, r[2] = h2);
|
|
36486
36486
|
let _;
|
|
36487
36487
|
r[3] === h2 ? _ = r[4] : (_ = (0, import_jsx_runtime.jsx)("div", {
|
|
36488
36488
|
className: "text-md prose dark:prose-invert",
|
|
@@ -36540,7 +36540,7 @@ ${w}`,
|
|
|
36540
36540
|
shadowRoot: c
|
|
36541
36541
|
});
|
|
36542
36542
|
}
|
|
36543
|
-
function _temp$
|
|
36543
|
+
function _temp$32(e) {
|
|
36544
36544
|
let r = e.path.join(".");
|
|
36545
36545
|
return (0, import_jsx_runtime.jsxs)("li", {
|
|
36546
36546
|
children: [
|
|
@@ -36954,9 +36954,9 @@ ${w}`,
|
|
|
36954
36954
|
}
|
|
36955
36955
|
};
|
|
36956
36956
|
}
|
|
36957
|
-
var import_compiler_runtime$
|
|
36957
|
+
var import_compiler_runtime$95 = require_compiler_runtime();
|
|
36958
36958
|
function useAnyWidgetModule(e) {
|
|
36959
|
-
let r = (0, import_compiler_runtime$
|
|
36959
|
+
let r = (0, import_compiler_runtime$95.c)(16), { jsUrl: c, jsHash: d } = e, f;
|
|
36960
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];
|
|
36961
36961
|
let h;
|
|
36962
36962
|
r[3] === d ? h = r[4] : (h = [
|
|
@@ -37010,7 +37010,7 @@ ${w}`,
|
|
|
37010
37010
|
...e
|
|
37011
37011
|
}));
|
|
37012
37012
|
var AnyWidgetSlot = (e) => {
|
|
37013
|
-
let r = (0, import_compiler_runtime$
|
|
37013
|
+
let r = (0, import_compiler_runtime$95.c)(14), { jsUrl: c, jsHash: d, modelId: f } = e.data, h = e.host, _;
|
|
37014
37014
|
r[0] !== d || r[1] !== c ? (_ = {
|
|
37015
37015
|
jsUrl: c,
|
|
37016
37016
|
jsHash: d
|
|
@@ -37051,7 +37051,7 @@ ${w}`,
|
|
|
37051
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;
|
|
37052
37052
|
}
|
|
37053
37053
|
var LoadedSlot = (e) => {
|
|
37054
|
-
let r = (0, import_compiler_runtime$
|
|
37054
|
+
let r = (0, import_compiler_runtime$95.c)(9), { widget: c, modelId: d, host: f } = e, _ = (0, import_react.useRef)(null), v, y;
|
|
37055
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);
|
|
37056
37056
|
let S, w;
|
|
37057
37057
|
r[3] !== v || r[4] !== d || r[5] !== c ? (S = () => {
|
|
@@ -37067,9 +37067,9 @@ ${w}`,
|
|
|
37067
37067
|
return r[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (0, import_jsx_runtime.jsx)("div", {
|
|
37068
37068
|
ref: _
|
|
37069
37069
|
}), r[8] = E) : E = r[8], E;
|
|
37070
|
-
}, import_compiler_runtime$
|
|
37070
|
+
}, import_compiler_runtime$94 = require_compiler_runtime();
|
|
37071
37071
|
const KeyboardHotkeys = (e) => {
|
|
37072
|
-
let r = (0, import_compiler_runtime$
|
|
37072
|
+
let r = (0, import_compiler_runtime$94.c)(10), { shortcut: c, className: d } = e;
|
|
37073
37073
|
if (c === NOT_SET || c === "") {
|
|
37074
37074
|
let e2;
|
|
37075
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;
|
|
@@ -37077,7 +37077,7 @@ ${w}`,
|
|
|
37077
37077
|
let f, h;
|
|
37078
37078
|
if (r[1] !== d || r[2] !== c) {
|
|
37079
37079
|
let e2 = c.split("-");
|
|
37080
|
-
r[5] === d ? f = r[6] : (f = cn("flex gap-1", d), r[5] = d, r[6] = f), h = e2.map(prettyPrintHotkey).map(_temp$
|
|
37080
|
+
r[5] === d ? f = r[6] : (f = cn("flex gap-1", d), r[5] = d, r[6] = f), h = e2.map(prettyPrintHotkey).map(_temp$31), r[1] = d, r[2] = c, r[3] = f, r[4] = h;
|
|
37081
37081
|
} else f = r[3], h = r[4];
|
|
37082
37082
|
let _;
|
|
37083
37083
|
return r[7] !== f || r[8] !== h ? (_ = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -37231,7 +37231,7 @@ ${w}`,
|
|
|
37231
37231
|
function capitalize$1(e) {
|
|
37232
37232
|
return e.charAt(0).toUpperCase() + e.slice(1);
|
|
37233
37233
|
}
|
|
37234
|
-
function _temp$
|
|
37234
|
+
function _temp$31(e) {
|
|
37235
37235
|
let [r, c] = e;
|
|
37236
37236
|
return c ? (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
37237
37237
|
asChild: false,
|
|
@@ -37305,9 +37305,9 @@ ${w}`,
|
|
|
37305
37305
|
return "success";
|
|
37306
37306
|
}
|
|
37307
37307
|
}
|
|
37308
|
-
var import_compiler_runtime$
|
|
37308
|
+
var import_compiler_runtime$93 = require_compiler_runtime();
|
|
37309
37309
|
const Labeled = (e) => {
|
|
37310
|
-
let r = (0, import_compiler_runtime$
|
|
37310
|
+
let r = (0, import_compiler_runtime$93.c)(27), { label: c, children: d, align: f, className: h, labelClassName: _, fullWidth: y, id: S } = e, w = f === void 0 ? "left" : f;
|
|
37311
37311
|
if (y && (w = "top"), !c) {
|
|
37312
37312
|
if (w === "top") {
|
|
37313
37313
|
let e3;
|
|
@@ -37351,7 +37351,7 @@ ${w}`,
|
|
|
37351
37351
|
]
|
|
37352
37352
|
}), r[23] = d, r[24] = I, r[25] = Z7, r[26] = Q7) : Q7 = r[26], Q7;
|
|
37353
37353
|
};
|
|
37354
|
-
var import_compiler_runtime$
|
|
37354
|
+
var import_compiler_runtime$92 = require_compiler_runtime(), CheckboxPlugin = class {
|
|
37355
37355
|
constructor() {
|
|
37356
37356
|
__publicField(this, "tagName", "marimo-checkbox");
|
|
37357
37357
|
__publicField(this, "validator", object({
|
|
@@ -37366,7 +37366,7 @@ ${w}`,
|
|
|
37366
37366
|
});
|
|
37367
37367
|
}
|
|
37368
37368
|
}, CheckboxComponent = (e) => {
|
|
37369
|
-
let r = (0, import_compiler_runtime$
|
|
37369
|
+
let r = (0, import_compiler_runtime$92.c)(11), { value: c, setValue: d, data: f } = e, h;
|
|
37370
37370
|
r[0] === d ? h = r[1] : (h = (e2) => {
|
|
37371
37371
|
e2 !== "indeterminate" && d(e2);
|
|
37372
37372
|
}, r[0] = d, r[1] = h);
|
|
@@ -37385,7 +37385,7 @@ ${w}`,
|
|
|
37385
37385
|
id: v,
|
|
37386
37386
|
children: y
|
|
37387
37387
|
}), r[7] = f.label, r[8] = v, r[9] = y, r[10] = S) : S = r[10], S;
|
|
37388
|
-
}, import_compiler_runtime$
|
|
37388
|
+
}, import_compiler_runtime$91 = require_compiler_runtime(), CodeEditorPlugin = class {
|
|
37389
37389
|
constructor() {
|
|
37390
37390
|
__publicField(this, "tagName", "marimo-code-editor");
|
|
37391
37391
|
__publicField(this, "validator", object({
|
|
@@ -37415,7 +37415,7 @@ ${w}`,
|
|
|
37415
37415
|
});
|
|
37416
37416
|
}
|
|
37417
37417
|
}, CodeEditorComponent = (e) => {
|
|
37418
|
-
let r = (0, import_compiler_runtime$
|
|
37418
|
+
let r = (0, import_compiler_runtime$91.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;
|
|
37419
37419
|
r[0] !== e.setValue || r[1] !== e.value || r[2] !== y || r[3] !== S ? (w = {
|
|
37420
37420
|
initialValue: e.value,
|
|
37421
37421
|
delay: y,
|
|
@@ -37550,9 +37550,9 @@ ${w}`,
|
|
|
37550
37550
|
})
|
|
37551
37551
|
});
|
|
37552
37552
|
});
|
|
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$
|
|
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$90 = require_compiler_runtime();
|
|
37554
37554
|
const LoadingTable = (e) => {
|
|
37555
|
-
let r = (0, import_compiler_runtime$
|
|
37555
|
+
let r = (0, import_compiler_runtime$90.c)(14), { wrapperClassName: c, className: d, pageSize: f } = e, h = f === void 0 ? 10 : f, _;
|
|
37556
37556
|
r[0] === c ? _ = r[1] : (_ = cn(c, "flex flex-col space-y-2"), r[0] = c, r[1] = _);
|
|
37557
37557
|
let y = d || "rounded-md border", S;
|
|
37558
37558
|
r[2] === y ? S = r[3] : (S = cn(y), r[2] = y, r[3] = S);
|
|
@@ -37560,7 +37560,7 @@ ${w}`,
|
|
|
37560
37560
|
r[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (w = (0, import_jsx_runtime.jsx)(TableHeader, {
|
|
37561
37561
|
children: Array.from({
|
|
37562
37562
|
length: 1
|
|
37563
|
-
}).map(_temp2$
|
|
37563
|
+
}).map(_temp2$22)
|
|
37564
37564
|
}), r[4] = w) : w = r[4];
|
|
37565
37565
|
let E;
|
|
37566
37566
|
r[5] === h ? E = r[6] : (E = (0, import_jsx_runtime.jsxs)(Table, {
|
|
@@ -37592,21 +37592,21 @@ ${w}`,
|
|
|
37592
37592
|
]
|
|
37593
37593
|
}), r[11] = _, r[12] = O, r[13] = I) : I = r[13], I;
|
|
37594
37594
|
};
|
|
37595
|
-
function _temp$
|
|
37595
|
+
function _temp$30(e, r) {
|
|
37596
37596
|
return (0, import_jsx_runtime.jsx)(TableHead, {
|
|
37597
37597
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
37598
37598
|
className: "h-4 bg-(--slate-5) animate-pulse rounded-md w-[70%]"
|
|
37599
37599
|
})
|
|
37600
37600
|
}, r);
|
|
37601
37601
|
}
|
|
37602
|
-
function _temp2$
|
|
37602
|
+
function _temp2$22(e, r) {
|
|
37603
37603
|
return (0, import_jsx_runtime.jsx)(TableRow, {
|
|
37604
37604
|
children: Array.from({
|
|
37605
37605
|
length: 8
|
|
37606
|
-
}).map(_temp$
|
|
37606
|
+
}).map(_temp$30)
|
|
37607
37607
|
}, r);
|
|
37608
37608
|
}
|
|
37609
|
-
function _temp3$
|
|
37609
|
+
function _temp3$15(e, r) {
|
|
37610
37610
|
return (0, import_jsx_runtime.jsx)(TableCell, {
|
|
37611
37611
|
children: (0, import_jsx_runtime.jsx)("div", {
|
|
37612
37612
|
className: "h-4 bg-(--slate-5) animate-pulse rounded-md w-[90%]"
|
|
@@ -37617,7 +37617,7 @@ ${w}`,
|
|
|
37617
37617
|
return (0, import_jsx_runtime.jsx)(TableRow, {
|
|
37618
37618
|
children: Array.from({
|
|
37619
37619
|
length: 8
|
|
37620
|
-
}).map(_temp3$
|
|
37620
|
+
}).map(_temp3$15)
|
|
37621
37621
|
}, r);
|
|
37622
37622
|
}
|
|
37623
37623
|
const DATA_TYPES = [
|
|
@@ -37630,7 +37630,7 @@ ${w}`,
|
|
|
37630
37630
|
"time",
|
|
37631
37631
|
"unknown"
|
|
37632
37632
|
];
|
|
37633
|
-
var import_compiler_runtime$
|
|
37633
|
+
var import_compiler_runtime$89 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-BaAX1uv-.js").then(async (m2) => {
|
|
37634
37634
|
await m2.__tla;
|
|
37635
37635
|
return m2;
|
|
37636
37636
|
}));
|
|
@@ -37675,7 +37675,7 @@ ${w}`,
|
|
|
37675
37675
|
editableColumns: e.data.editableColumns
|
|
37676
37676
|
}));
|
|
37677
37677
|
var LoadingDataEditor = (e) => {
|
|
37678
|
-
let r = (0, import_compiler_runtime$
|
|
37678
|
+
let r = (0, import_compiler_runtime$89.c)(31), c;
|
|
37679
37679
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = [], r[0] = c) : c = r[0];
|
|
37680
37680
|
let [d, f] = (0, import_react.useState)(c), h;
|
|
37681
37681
|
r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = {}, r[1] = h) : h = r[1];
|
|
@@ -37751,7 +37751,7 @@ ${w}`,
|
|
|
37751
37751
|
let M, I, z, Y7;
|
|
37752
37752
|
r[15] === e ? (M = r[16], I = r[17], z = r[18], Y7 = r[19]) : (M = (r2) => {
|
|
37753
37753
|
e.onEdits((e2) => {
|
|
37754
|
-
let c2 = r2.map(_temp$
|
|
37754
|
+
let c2 = r2.map(_temp$29);
|
|
37755
37755
|
return {
|
|
37756
37756
|
...e2,
|
|
37757
37757
|
edits: [
|
|
@@ -37812,7 +37812,7 @@ ${w}`,
|
|
|
37812
37812
|
onAddColumn: Y7
|
|
37813
37813
|
}), r[20] = _, r[21] = d, r[22] = e.editableColumns, r[23] = e.edits.edits, r[24] = E, r[25] = O, r[26] = M, r[27] = I, r[28] = z, r[29] = Y7, r[30] = G) : G = r[30], G;
|
|
37814
37814
|
};
|
|
37815
|
-
function _temp$
|
|
37815
|
+
function _temp$29(e, r) {
|
|
37816
37816
|
return {
|
|
37817
37817
|
rowIdx: e - r,
|
|
37818
37818
|
type: BulkEdit.Remove
|
|
@@ -39350,8 +39350,8 @@ ${w}`,
|
|
|
39350
39350
|
_.height
|
|
39351
39351
|
]);
|
|
39352
39352
|
}
|
|
39353
|
-
var import_compiler_runtime$
|
|
39354
|
-
let r = (0, import_compiler_runtime$
|
|
39353
|
+
var import_compiler_runtime$88 = require_compiler_runtime(), Form$1 = FormProvider, FormFieldContext = import_react.createContext({}), FormField = (e) => {
|
|
39354
|
+
let r = (0, import_compiler_runtime$88.c)(10), c;
|
|
39355
39355
|
r[0] === e ? c = r[1] : ({ ...c } = e, r[0] = e, r[1] = c);
|
|
39356
39356
|
let d;
|
|
39357
39357
|
r[2] === c.name ? d = r[3] : (d = {
|
|
@@ -39367,7 +39367,7 @@ ${w}`,
|
|
|
39367
39367
|
children: f
|
|
39368
39368
|
}, c.name), r[6] = c.name, r[7] = d, r[8] = f, r[9] = h) : h = r[9], h;
|
|
39369
39369
|
}, useFormField = () => {
|
|
39370
|
-
let e = (0, import_compiler_runtime$
|
|
39370
|
+
let e = (0, import_compiler_runtime$88.c)(11), r = import_react.use(FormFieldContext), c = import_react.use(FormItemContext), { getFieldState: d, formState: f } = useFormContext(), h;
|
|
39371
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];
|
|
39372
39372
|
let _ = h;
|
|
39373
39373
|
if (!r) throw Error("useFormField should be used within <FormField>");
|
|
@@ -39381,7 +39381,7 @@ ${w}`,
|
|
|
39381
39381
|
..._
|
|
39382
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;
|
|
39383
39383
|
}, FormItemContext = import_react.createContext({}), FormItem = import_react.forwardRef((e, r) => {
|
|
39384
|
-
let c = (0, import_compiler_runtime$
|
|
39384
|
+
let c = (0, import_compiler_runtime$88.c)(14), d, f;
|
|
39385
39385
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
39386
39386
|
let h = import_react.useId(), _;
|
|
39387
39387
|
c[3] === h ? _ = c[4] : (_ = {
|
|
@@ -39403,7 +39403,7 @@ ${w}`,
|
|
|
39403
39403
|
});
|
|
39404
39404
|
FormItem.displayName = "FormItem";
|
|
39405
39405
|
var FormLabel = import_react.forwardRef((e, r) => {
|
|
39406
|
-
let c = (0, import_compiler_runtime$
|
|
39406
|
+
let c = (0, import_compiler_runtime$88.c)(11), d, f;
|
|
39407
39407
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
39408
39408
|
let { error: h, formItemId: _ } = useFormField();
|
|
39409
39409
|
if (!f.children) return;
|
|
@@ -39419,7 +39419,7 @@ ${w}`,
|
|
|
39419
39419
|
});
|
|
39420
39420
|
FormLabel.displayName = "FormLabel";
|
|
39421
39421
|
var FormControl = import_react.forwardRef((e, r) => {
|
|
39422
|
-
let c = (0, import_compiler_runtime$
|
|
39422
|
+
let c = (0, import_compiler_runtime$88.c)(8), d;
|
|
39423
39423
|
c[0] === e ? d = c[1] : ({ ...d } = e, c[0] = e, c[1] = d);
|
|
39424
39424
|
let { error: f, formItemId: h, formDescriptionId: _, formMessageId: v } = useFormField(), y = f ? `${_} ${v}` : _, S = !!f, w;
|
|
39425
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, {
|
|
@@ -39432,7 +39432,7 @@ ${w}`,
|
|
|
39432
39432
|
});
|
|
39433
39433
|
FormControl.displayName = "FormControl";
|
|
39434
39434
|
var FormDescription = import_react.forwardRef((e, r) => {
|
|
39435
|
-
let c = (0, import_compiler_runtime$
|
|
39435
|
+
let c = (0, import_compiler_runtime$88.c)(10), d, f;
|
|
39436
39436
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
39437
39437
|
let { formDescriptionId: h } = useFormField();
|
|
39438
39438
|
if (!f.children) return null;
|
|
@@ -39448,7 +39448,7 @@ ${w}`,
|
|
|
39448
39448
|
});
|
|
39449
39449
|
FormDescription.displayName = "FormDescription";
|
|
39450
39450
|
var FormMessage = import_react.forwardRef((e, r) => {
|
|
39451
|
-
let c = (0, import_compiler_runtime$
|
|
39451
|
+
let c = (0, import_compiler_runtime$88.c)(12), d, f, h;
|
|
39452
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);
|
|
39453
39453
|
let { error: _, formMessageId: y } = useFormField(), S = (_ == null ? void 0 : _.message) ? String(_ == null ? void 0 : _.message) : d;
|
|
39454
39454
|
if (!S) return null;
|
|
@@ -39465,7 +39465,7 @@ ${w}`,
|
|
|
39465
39465
|
});
|
|
39466
39466
|
FormMessage.displayName = "FormMessage";
|
|
39467
39467
|
var FormMessageTooltip = (e) => {
|
|
39468
|
-
let r = (0, import_compiler_runtime$
|
|
39468
|
+
let r = (0, import_compiler_runtime$88.c)(7), { className: c } = e, { error: d } = useFormField(), f = (d == null ? void 0 : d.message) ? String(d == null ? void 0 : d.message) : null;
|
|
39469
39469
|
if (!f) return null;
|
|
39470
39470
|
let h;
|
|
39471
39471
|
r[0] === c ? h = r[1] : (h = cn("stroke-[1.8px]", c), r[0] = c, r[1] = h);
|
|
@@ -39623,9 +39623,9 @@ ${c}
|
|
|
39623
39623
|
saveForm: Functions.NOOP,
|
|
39624
39624
|
chartType: ChartType.LINE
|
|
39625
39625
|
}), useChartFormContext = () => (0, import_react.use)(ChartFormContext);
|
|
39626
|
-
var import_compiler_runtime$
|
|
39626
|
+
var import_compiler_runtime$87 = require_compiler_runtime();
|
|
39627
39627
|
function useBoolean(e) {
|
|
39628
|
-
let r = (0, import_compiler_runtime$
|
|
39628
|
+
let r = (0, import_compiler_runtime$87.c)(6), [c, d] = (0, import_react.useState)(e), f;
|
|
39629
39629
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (e2) => {
|
|
39630
39630
|
var _a3;
|
|
39631
39631
|
(_a3 = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a3.call(e2), d(true);
|
|
@@ -39638,7 +39638,7 @@ ${c}
|
|
|
39638
39638
|
let _;
|
|
39639
39639
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (e2) => {
|
|
39640
39640
|
var _a3;
|
|
39641
|
-
(_a3 = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a3.call(e2), d(_temp$
|
|
39641
|
+
(_a3 = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a3.call(e2), d(_temp$28);
|
|
39642
39642
|
}, r[2] = _) : _ = r[2];
|
|
39643
39643
|
let v;
|
|
39644
39644
|
r[3] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
@@ -39652,11 +39652,11 @@ ${c}
|
|
|
39652
39652
|
v
|
|
39653
39653
|
], r[4] = c, r[5] = y), y;
|
|
39654
39654
|
}
|
|
39655
|
-
function _temp$
|
|
39655
|
+
function _temp$28(e) {
|
|
39656
39656
|
return !e;
|
|
39657
39657
|
}
|
|
39658
|
-
var import_compiler_runtime$
|
|
39659
|
-
let c = (0, import_compiler_runtime$
|
|
39658
|
+
var import_compiler_runtime$86 = require_compiler_runtime(), Slider = import_react.forwardRef((e, r) => {
|
|
39659
|
+
let c = (0, import_compiler_runtime$86.c)(25), { className: d, valueMap: f, ...h } = e, [_, y] = useBoolean(false), { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), w = dist_exports$1, E;
|
|
39660
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);
|
|
39661
39661
|
let O;
|
|
39662
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];
|
|
@@ -42557,12 +42557,12 @@ ${c}
|
|
|
42557
42557
|
function kn(e, r, c) {
|
|
42558
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);
|
|
42559
42559
|
}
|
|
42560
|
-
var import_compiler_runtime$
|
|
42560
|
+
var import_compiler_runtime$85 = require_compiler_runtime();
|
|
42561
42561
|
const ComboboxContext = (0, import_react.createContext)({
|
|
42562
42562
|
isSelected: () => false,
|
|
42563
42563
|
onSelect: Functions.NOOP
|
|
42564
42564
|
}), Combobox = (e) => {
|
|
42565
|
-
let r = (0, import_compiler_runtime$
|
|
42565
|
+
let r = (0, import_compiler_runtime$85.c)(94), c, d, f, h, _, y, S, w, E, O, M, I, z, Y7, G, q, X7, Z7, Q7, $7, e9;
|
|
42566
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);
|
|
42567
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;
|
|
42568
42568
|
r[22] !== E || r[23] !== I || r[24] !== o9 ? (s9 = {
|
|
@@ -42705,7 +42705,7 @@ ${c}
|
|
|
42705
42705
|
]
|
|
42706
42706
|
}), r[90] = Y7, r[91] = N9, r[92] = P9, r[93] = F9) : F9 = r[93], F9;
|
|
42707
42707
|
}, ComboboxItem = import_react.forwardRef((e, r) => {
|
|
42708
|
-
let c = (0, import_compiler_runtime$
|
|
42708
|
+
let c = (0, import_compiler_runtime$85.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;
|
|
42709
42709
|
c[0] === f ? E = c[1] : (E = cn("pl-6 m-1 py-1", f), c[0] = f, c[1] = E);
|
|
42710
42710
|
let O;
|
|
42711
42711
|
c[2] !== w || c[3] !== _ || c[4] !== h ? (O = () => {
|
|
@@ -42733,7 +42733,7 @@ ${c}
|
|
|
42733
42733
|
function multiselectFilterFn(e, r) {
|
|
42734
42734
|
return r.split(/\s+/).every((r2) => e.toLowerCase().includes(r2.toLowerCase())) ? 1 : 0;
|
|
42735
42735
|
}
|
|
42736
|
-
var import_compiler_runtime$
|
|
42736
|
+
var import_compiler_runtime$84 = require_compiler_runtime(), MultiselectPlugin = class {
|
|
42737
42737
|
constructor() {
|
|
42738
42738
|
__publicField(this, "tagName", "marimo-multiselect");
|
|
42739
42739
|
__publicField(this, "validator", object({
|
|
@@ -42753,7 +42753,7 @@ ${c}
|
|
|
42753
42753
|
}
|
|
42754
42754
|
}, SELECT_ALL_KEY = "__select_all__", DESELECT_ALL_KEY = "__deselect_all__";
|
|
42755
42755
|
const Multiselect = (e) => {
|
|
42756
|
-
let r = (0, import_compiler_runtime$
|
|
42756
|
+
let r = (0, import_compiler_runtime$84.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;
|
|
42757
42757
|
bb0: {
|
|
42758
42758
|
if (!w) {
|
|
42759
42759
|
O = c;
|
|
@@ -42772,7 +42772,7 @@ ${c}
|
|
|
42772
42772
|
h([]);
|
|
42773
42773
|
return;
|
|
42774
42774
|
}
|
|
42775
|
-
if (e2 = e2.filter(_temp$
|
|
42775
|
+
if (e2 = e2.filter(_temp$27), y === 1) {
|
|
42776
42776
|
h([
|
|
42777
42777
|
e2[e2.length - 1]
|
|
42778
42778
|
]);
|
|
@@ -42835,7 +42835,7 @@ ${c}
|
|
|
42835
42835
|
}) : r2;
|
|
42836
42836
|
}
|
|
42837
42837
|
});
|
|
42838
|
-
let e2 = M.map(_temp2$
|
|
42838
|
+
let e2 = M.map(_temp2$21);
|
|
42839
42839
|
return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
42840
42840
|
children: [
|
|
42841
42841
|
Z7,
|
|
@@ -42851,7 +42851,7 @@ ${c}
|
|
|
42851
42851
|
r[32] === $7 ? t9 = r[33] : (t9 = $7(), r[32] = $7, r[33] = t9);
|
|
42852
42852
|
let n9;
|
|
42853
42853
|
r[34] !== z || r[35] !== w || r[36] !== e9 || r[37] !== t9 || r[38] !== f ? (n9 = (0, import_jsx_runtime.jsx)(Combobox, {
|
|
42854
|
-
displayValue: _temp3$
|
|
42854
|
+
displayValue: _temp3$14,
|
|
42855
42855
|
placeholder: "Select...",
|
|
42856
42856
|
multiple: true,
|
|
42857
42857
|
className: e9,
|
|
@@ -42870,21 +42870,21 @@ ${c}
|
|
|
42870
42870
|
children: n9
|
|
42871
42871
|
}), r[40] = _, r[41] = S, r[42] = d, r[43] = n9, r[44] = r9) : r9 = r[44], r9;
|
|
42872
42872
|
};
|
|
42873
|
-
function _temp$
|
|
42873
|
+
function _temp$27(e) {
|
|
42874
42874
|
return e !== SELECT_ALL_KEY && e !== DESELECT_ALL_KEY;
|
|
42875
42875
|
}
|
|
42876
|
-
function _temp2$
|
|
42876
|
+
function _temp2$21(e) {
|
|
42877
42877
|
return (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
42878
42878
|
value: e,
|
|
42879
42879
|
children: e
|
|
42880
42880
|
}, e);
|
|
42881
42881
|
}
|
|
42882
|
-
function _temp3$
|
|
42882
|
+
function _temp3$14(e) {
|
|
42883
42883
|
return e;
|
|
42884
42884
|
}
|
|
42885
|
-
var import_compiler_runtime$
|
|
42885
|
+
var import_compiler_runtime$83 = require_compiler_runtime();
|
|
42886
42886
|
function useAddCodeToNewCell() {
|
|
42887
|
-
let e = (0, import_compiler_runtime$
|
|
42887
|
+
let e = (0, import_compiler_runtime$83.c)(4), r = useAtomValue(autoInstantiateAtom), c = useLastFocusedCellId(), { createNewCell: d } = useCellActions(), f;
|
|
42888
42888
|
return e[0] !== r || e[1] !== d || e[2] !== c ? (f = (e2) => {
|
|
42889
42889
|
e2.includes("alt") && maybeAddAltairImport({
|
|
42890
42890
|
autoInstantiate: r,
|
|
@@ -42897,7 +42897,7 @@ ${c}
|
|
|
42897
42897
|
});
|
|
42898
42898
|
}, e[0] = r, e[1] = d, e[2] = c, e[3] = f) : f = e[3], f;
|
|
42899
42899
|
}
|
|
42900
|
-
var import_compiler_runtime$
|
|
42900
|
+
var import_compiler_runtime$82 = require_compiler_runtime(), pythonExtensions = [
|
|
42901
42901
|
customPythonLanguageSupport(),
|
|
42902
42902
|
EditorView.lineWrapping
|
|
42903
42903
|
], sqlExtensions = [
|
|
@@ -42905,7 +42905,7 @@ ${c}
|
|
|
42905
42905
|
EditorView.lineWrapping
|
|
42906
42906
|
];
|
|
42907
42907
|
const ReadonlyCode = (0, import_react.memo)((e) => {
|
|
42908
|
-
let r = (0, import_compiler_runtime$
|
|
42908
|
+
let r = (0, import_compiler_runtime$82.c)(41), { theme: c } = useTheme(), d, f, h, _, y, S, w, E;
|
|
42909
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);
|
|
42910
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;
|
|
42911
42911
|
r[9] === d ? G = r[10] : (G = cn("relative hover-actions-parent w-full overflow-hidden", d), r[9] = d, r[10] = G);
|
|
@@ -42960,7 +42960,7 @@ ${c}
|
|
|
42960
42960
|
});
|
|
42961
42961
|
ReadonlyCode.displayName = "ReadonlyCode";
|
|
42962
42962
|
var CopyButton = (e) => {
|
|
42963
|
-
let r = (0, import_compiler_runtime$
|
|
42963
|
+
let r = (0, import_compiler_runtime$82.c)(5), c;
|
|
42964
42964
|
r[0] === e.text ? c = r[1] : (c = Events.stopPropagation(async () => {
|
|
42965
42965
|
await copyToClipboard(e.text), toast({
|
|
42966
42966
|
title: "Copied to clipboard"
|
|
@@ -42984,7 +42984,7 @@ ${c}
|
|
|
42984
42984
|
})
|
|
42985
42985
|
}), r[3] = d, r[4] = h), h;
|
|
42986
42986
|
}, EyeCloseButton = (e) => {
|
|
42987
|
-
let r = (0, import_compiler_runtime$
|
|
42987
|
+
let r = (0, import_compiler_runtime$82.c)(3), c;
|
|
42988
42988
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(EyeOff, {
|
|
42989
42989
|
size: 14,
|
|
42990
42990
|
strokeWidth: 1.5
|
|
@@ -43003,7 +43003,7 @@ ${c}
|
|
|
43003
43003
|
}), r[1] = e.onClick, r[2] = d), d;
|
|
43004
43004
|
};
|
|
43005
43005
|
const HideCodeButton = (e) => {
|
|
43006
|
-
let r = (0, import_compiler_runtime$
|
|
43006
|
+
let r = (0, import_compiler_runtime$82.c)(7), c;
|
|
43007
43007
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(Eye, {
|
|
43008
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"
|
|
43009
43009
|
}), r[0] = c) : c = r[0];
|
|
@@ -43021,7 +43021,7 @@ ${c}
|
|
|
43021
43021
|
}), r[3] = e.className, r[4] = e.onClick, r[5] = d, r[6] = f) : f = r[6], f;
|
|
43022
43022
|
};
|
|
43023
43023
|
var InsertNewCell = (e) => {
|
|
43024
|
-
let r = (0, import_compiler_runtime$
|
|
43024
|
+
let r = (0, import_compiler_runtime$82.c)(6), c = useAddCodeToNewCell(), d;
|
|
43025
43025
|
r[0] !== c || r[1] !== e.code ? (d = () => {
|
|
43026
43026
|
c(e.code);
|
|
43027
43027
|
}, r[0] = c, r[1] = e.code, r[2] = d) : d = r[2];
|
|
@@ -43042,9 +43042,9 @@ ${c}
|
|
|
43042
43042
|
children: h
|
|
43043
43043
|
})
|
|
43044
43044
|
}), r[4] = f, r[5] = _), _;
|
|
43045
|
-
}, import_compiler_runtime$
|
|
43045
|
+
}, import_compiler_runtime$81 = require_compiler_runtime();
|
|
43046
43046
|
const Title = (e) => {
|
|
43047
|
-
let r = (0, import_compiler_runtime$
|
|
43047
|
+
let r = (0, import_compiler_runtime$81.c)(5), { text: c, tooltip: d } = e, f;
|
|
43048
43048
|
r[0] === d ? f = r[1] : (f = d && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
43049
43049
|
content: d,
|
|
43050
43050
|
children: (0, import_jsx_runtime.jsx)(Info, {
|
|
@@ -43060,7 +43060,7 @@ ${c}
|
|
|
43060
43060
|
]
|
|
43061
43061
|
}), r[2] = f, r[3] = c, r[4] = h) : h = r[4], h;
|
|
43062
43062
|
}, TabContainer = (e) => {
|
|
43063
|
-
let r = (0, import_compiler_runtime$
|
|
43063
|
+
let r = (0, import_compiler_runtime$81.c)(5), { children: c, className: d } = e, f;
|
|
43064
43064
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col gap-2", d), r[0] = d, r[1] = f);
|
|
43065
43065
|
let h;
|
|
43066
43066
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -43068,14 +43068,14 @@ ${c}
|
|
|
43068
43068
|
children: c
|
|
43069
43069
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
43070
43070
|
}, FormSectionHorizontalRule = (e) => {
|
|
43071
|
-
let r = (0, import_compiler_runtime$
|
|
43071
|
+
let r = (0, import_compiler_runtime$81.c)(4), { className: c } = e, d;
|
|
43072
43072
|
r[0] === c ? d = r[1] : (d = cn("my-1", c), r[0] = c, r[1] = d);
|
|
43073
43073
|
let f;
|
|
43074
43074
|
return r[2] === d ? f = r[3] : (f = (0, import_jsx_runtime.jsx)("hr", {
|
|
43075
43075
|
className: d
|
|
43076
43076
|
}), r[2] = d, r[3] = f), f;
|
|
43077
43077
|
}, FieldSection = (e) => {
|
|
43078
|
-
let r = (0, import_compiler_runtime$
|
|
43078
|
+
let r = (0, import_compiler_runtime$81.c)(5), { children: c, className: d } = e, f;
|
|
43079
43079
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col gap-1.5", d), r[0] = d, r[1] = f);
|
|
43080
43080
|
let h;
|
|
43081
43081
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)("section", {
|
|
@@ -43083,7 +43083,7 @@ ${c}
|
|
|
43083
43083
|
children: c
|
|
43084
43084
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
43085
43085
|
}, IconWithText = (e) => {
|
|
43086
|
-
let r = (0, import_compiler_runtime$
|
|
43086
|
+
let r = (0, import_compiler_runtime$81.c)(7), { Icon: c, text: d } = e, f;
|
|
43087
43087
|
r[0] === c ? f = r[1] : (f = (0, import_jsx_runtime.jsx)(c, {
|
|
43088
43088
|
className: "w-3 h-3 mr-2"
|
|
43089
43089
|
}), r[0] = c, r[1] = f);
|
|
@@ -43100,7 +43100,7 @@ ${c}
|
|
|
43100
43100
|
]
|
|
43101
43101
|
}), r[4] = f, r[5] = h, r[6] = _) : _ = r[6], _;
|
|
43102
43102
|
}, AccordionFormTrigger = (e) => {
|
|
43103
|
-
let r = (0, import_compiler_runtime$
|
|
43103
|
+
let r = (0, import_compiler_runtime$81.c)(5), { children: c, className: d } = e, f;
|
|
43104
43104
|
r[0] === d ? f = r[1] : (f = cn("py-1", d), r[0] = d, r[1] = f);
|
|
43105
43105
|
let h;
|
|
43106
43106
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
@@ -43108,14 +43108,14 @@ ${c}
|
|
|
43108
43108
|
children: c
|
|
43109
43109
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
43110
43110
|
}, AccordionFormItem = (e) => {
|
|
43111
|
-
let r = (0, import_compiler_runtime$
|
|
43111
|
+
let r = (0, import_compiler_runtime$81.c)(3), { children: c, value: d } = e, f;
|
|
43112
43112
|
return r[0] !== c || r[1] !== d ? (f = (0, import_jsx_runtime.jsx)(AccordionItem, {
|
|
43113
43113
|
value: d,
|
|
43114
43114
|
className: "border-none",
|
|
43115
43115
|
children: c
|
|
43116
43116
|
}), r[0] = c, r[1] = d, r[2] = f) : f = r[2], f;
|
|
43117
43117
|
}, AccordionFormContent = (e) => {
|
|
43118
|
-
let r = (0, import_compiler_runtime$
|
|
43118
|
+
let r = (0, import_compiler_runtime$81.c)(5), { children: c, wrapperClassName: d } = e, f;
|
|
43119
43119
|
r[0] === d ? f = r[1] : (f = cn("pb-2 flex flex-col gap-2", d), r[0] = d, r[1] = f);
|
|
43120
43120
|
let h;
|
|
43121
43121
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
@@ -43123,7 +43123,7 @@ ${c}
|
|
|
43123
43123
|
children: c
|
|
43124
43124
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
43125
43125
|
}, CodeSnippet = (e) => {
|
|
43126
|
-
let r = (0, import_compiler_runtime$
|
|
43126
|
+
let r = (0, import_compiler_runtime$81.c)(4), { code: c, insertNewCell: d, language: f } = e, h;
|
|
43127
43127
|
return r[0] !== c || r[1] !== d || r[2] !== f ? (h = (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
43128
43128
|
minHeight: "330px",
|
|
43129
43129
|
maxHeight: "330px",
|
|
@@ -43134,9 +43134,9 @@ ${c}
|
|
|
43134
43134
|
insertNewCell: d
|
|
43135
43135
|
}), r[0] = c, r[1] = d, r[2] = f, r[3] = h) : h = r[3], h;
|
|
43136
43136
|
};
|
|
43137
|
-
var import_compiler_runtime$
|
|
43137
|
+
var import_compiler_runtime$80 = require_compiler_runtime(), CLEAR_VALUE = "__clear__";
|
|
43138
43138
|
const ColumnSelector = (e) => {
|
|
43139
|
-
let r = (0, import_compiler_runtime$
|
|
43139
|
+
let r = (0, import_compiler_runtime$80.c)(23), { fieldName: c, columns: d, onValueChange: f, includeCountField: h } = e, _ = h === void 0 ? true : h, v = useFormContext(), y;
|
|
43140
43140
|
r[0] === c ? y = r[1] : (y = c.replace(".field", ".type"), r[0] = c, r[1] = y);
|
|
43141
43141
|
let S = y, w;
|
|
43142
43142
|
r[2] === c ? w = r[3] : (w = c.replace(".field", ".selectedDataType"), r[2] = c, r[3] = w);
|
|
@@ -43203,7 +43203,7 @@ ${c}
|
|
|
43203
43203
|
(0, import_jsx_runtime.jsx)(SelectSeparator, {})
|
|
43204
43204
|
]
|
|
43205
43205
|
}),
|
|
43206
|
-
d.map(_temp$
|
|
43206
|
+
d.map(_temp$26)
|
|
43207
43207
|
]
|
|
43208
43208
|
})
|
|
43209
43209
|
]
|
|
@@ -43218,7 +43218,7 @@ ${c}
|
|
|
43218
43218
|
render: I
|
|
43219
43219
|
}), r[19] = c, r[20] = v.control, r[21] = I, r[22] = z) : z = r[22], z;
|
|
43220
43220
|
}, SelectField = (e) => {
|
|
43221
|
-
let r = (0, import_compiler_runtime$
|
|
43221
|
+
let r = (0, import_compiler_runtime$80.c)(8), { fieldName: c, label: d, options: f, defaultValue: h } = e, _ = useFormContext(), v;
|
|
43222
43222
|
r[0] !== h || r[1] !== d || r[2] !== f ? (v = (e2) => {
|
|
43223
43223
|
let { field: r2 } = e2;
|
|
43224
43224
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -43241,7 +43241,7 @@ ${c}
|
|
|
43241
43241
|
}),
|
|
43242
43242
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
43243
43243
|
children: (0, import_jsx_runtime.jsx)(SelectGroup, {
|
|
43244
|
-
children: f.filter(_temp2$
|
|
43244
|
+
children: f.filter(_temp2$20).map(_temp3$13)
|
|
43245
43245
|
})
|
|
43246
43246
|
})
|
|
43247
43247
|
]
|
|
@@ -43257,7 +43257,7 @@ ${c}
|
|
|
43257
43257
|
render: v
|
|
43258
43258
|
}), r[4] = c, r[5] = _.control, r[6] = v, r[7] = y) : y = r[7], y;
|
|
43259
43259
|
}, InputField = (e) => {
|
|
43260
|
-
let r = (0, import_compiler_runtime$
|
|
43260
|
+
let r = (0, import_compiler_runtime$80.c)(6), { fieldName: c, label: d } = e, f = useFormContext(), h;
|
|
43261
43261
|
r[0] === d ? h = r[1] : (h = (e2) => {
|
|
43262
43262
|
let { field: r2 } = e2;
|
|
43263
43263
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -43284,7 +43284,7 @@ ${c}
|
|
|
43284
43284
|
render: h
|
|
43285
43285
|
}), r[2] = c, r[3] = f.control, r[4] = h, r[5] = _) : _ = r[5], _;
|
|
43286
43286
|
}, NumberField$1 = (e) => {
|
|
43287
|
-
let r = (0, import_compiler_runtime$
|
|
43287
|
+
let r = (0, import_compiler_runtime$80.c)(17), c, d, f, h, _, y;
|
|
43288
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);
|
|
43289
43289
|
let S = useFormContext(), w;
|
|
43290
43290
|
r[7] !== c || r[8] !== f || r[9] !== h || r[10] !== _ || r[11] !== y ? (w = (e2) => {
|
|
@@ -43318,7 +43318,7 @@ ${c}
|
|
|
43318
43318
|
render: w
|
|
43319
43319
|
}), r[13] = d, r[14] = S.control, r[15] = w, r[16] = E) : E = r[16], E;
|
|
43320
43320
|
}, BooleanField = (e) => {
|
|
43321
|
-
let r = (0, import_compiler_runtime$
|
|
43321
|
+
let r = (0, import_compiler_runtime$80.c)(8), { fieldName: c, label: d, className: f, defaultValue: h } = e, _ = useFormContext(), y;
|
|
43322
43322
|
r[0] !== f || r[1] !== h || r[2] !== d ? (y = (e2) => {
|
|
43323
43323
|
let { field: r2 } = e2;
|
|
43324
43324
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -43344,7 +43344,7 @@ ${c}
|
|
|
43344
43344
|
render: y
|
|
43345
43345
|
}), r[4] = c, r[5] = _.control, r[6] = y, r[7] = S) : S = r[7], S;
|
|
43346
43346
|
}, SliderField = (e) => {
|
|
43347
|
-
let r = (0, import_compiler_runtime$
|
|
43347
|
+
let r = (0, import_compiler_runtime$80.c)(12), { fieldName: c, label: d, defaultValue: f, start: h, stop: _, step: y, className: S } = e, w = useFormContext(), E;
|
|
43348
43348
|
r[0] !== S || r[1] !== f || r[2] !== c || r[3] !== d || r[4] !== h || r[5] !== y || r[6] !== _ ? (E = (e2) => {
|
|
43349
43349
|
let { field: r2 } = e2, w2 = r2.value ?? f, E2 = Number(w2), O2 = (e3) => {
|
|
43350
43350
|
typeof e3 == "string" && (e3 = Number(e3)), r2.onChange(e3);
|
|
@@ -43387,7 +43387,7 @@ ${c}
|
|
|
43387
43387
|
render: E
|
|
43388
43388
|
}), r[8] = c, r[9] = w.control, r[10] = E, r[11] = O) : O = r[11], O;
|
|
43389
43389
|
}, ColorArrayField = (e) => {
|
|
43390
|
-
let r = (0, import_compiler_runtime$
|
|
43390
|
+
let r = (0, import_compiler_runtime$80.c)(28), { fieldName: c, label: d, className: f } = e, h = useFormContext(), _;
|
|
43391
43391
|
r[0] !== c || r[1] !== h ? (_ = h.watch(c), r[0] = c, r[1] = h, r[2] = _) : _ = r[2];
|
|
43392
43392
|
let y = _, S;
|
|
43393
43393
|
r[3] === y ? S = r[4] : (S = y ?? [], r[3] = y, r[4] = S);
|
|
@@ -43468,7 +43468,7 @@ ${c}
|
|
|
43468
43468
|
render: X7
|
|
43469
43469
|
}), r[24] = c, r[25] = h.control, r[26] = X7, r[27] = Z7) : Z7 = r[27], Z7;
|
|
43470
43470
|
}, TimeUnitSelect = (e) => {
|
|
43471
|
-
let r = (0, import_compiler_runtime$
|
|
43471
|
+
let r = (0, import_compiler_runtime$80.c)(10), { fieldName: c, label: d } = e, f = useFormContext(), h;
|
|
43472
43472
|
r[0] !== c || r[1] !== f ? (h = () => {
|
|
43473
43473
|
f.setValue(c, "");
|
|
43474
43474
|
}, r[0] = c, r[1] = f, r[2] = h) : h = r[2];
|
|
@@ -43537,7 +43537,7 @@ ${c}
|
|
|
43537
43537
|
render: y
|
|
43538
43538
|
}), r[6] = c, r[7] = f.control, r[8] = y, r[9] = S) : S = r[9], S;
|
|
43539
43539
|
}, DataTypeSelect = (e) => {
|
|
43540
|
-
let r = (0, import_compiler_runtime$
|
|
43540
|
+
let r = (0, import_compiler_runtime$80.c)(9), { fieldName: c, label: d, defaultValue: f, onValueChange: h } = e, [_, v] = import_react.useState(false), y = useFormContext(), S;
|
|
43541
43541
|
r[0] !== f || r[1] !== _ || r[2] !== d || r[3] !== h ? (S = (e2) => {
|
|
43542
43542
|
let { field: r2 } = e2;
|
|
43543
43543
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -43593,7 +43593,7 @@ ${c}
|
|
|
43593
43593
|
render: S
|
|
43594
43594
|
}), r[5] = c, r[6] = y.control, r[7] = S, r[8] = w) : w = r[8], w;
|
|
43595
43595
|
}, AggregationSelect = (e) => {
|
|
43596
|
-
let r = (0, import_compiler_runtime$
|
|
43596
|
+
let r = (0, import_compiler_runtime$80.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;
|
|
43597
43597
|
r[0] !== f || r[1] !== _ ? (O = (e2) => {
|
|
43598
43598
|
let { value: r2, previousValue: c2, onChange: d2 } = e2;
|
|
43599
43599
|
r2 === "bin" ? _.setValue(f, true) : c2 === "bin" && _.setValue(f, false), d2(r2);
|
|
@@ -43652,7 +43652,7 @@ ${c}
|
|
|
43652
43652
|
render: I
|
|
43653
43653
|
}), r[8] = c, r[9] = _.control, r[10] = I, r[11] = z) : z = r[11], z;
|
|
43654
43654
|
}, TooltipSelect = (e) => {
|
|
43655
|
-
let r = (0, import_compiler_runtime$
|
|
43655
|
+
let r = (0, import_compiler_runtime$80.c)(7), { fieldName: c, saveFunction: d } = e, f = useFormContext(), { fields: h } = useChartFormContext(), _ = _temp8, v;
|
|
43656
43656
|
r[0] !== h || r[1] !== d ? (v = (e2) => {
|
|
43657
43657
|
var _a3;
|
|
43658
43658
|
let { field: r2 } = e2, c2 = ((_a3 = r2.value) == null ? void 0 : _a3.map(_temp9)) ?? [];
|
|
@@ -43678,7 +43678,7 @@ ${c}
|
|
|
43678
43678
|
render: v
|
|
43679
43679
|
}), r[3] = c, r[4] = f.control, r[5] = v, r[6] = y) : y = r[6], y;
|
|
43680
43680
|
}, SortField = (e) => {
|
|
43681
|
-
let r = (0, import_compiler_runtime$
|
|
43681
|
+
let r = (0, import_compiler_runtime$80.c)(5), { fieldName: c, label: d, defaultValue: f } = e, h;
|
|
43682
43682
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = SORT_TYPES.map(_temp1), r[0] = h) : h = r[0];
|
|
43683
43683
|
let _ = f ?? "ascending", v;
|
|
43684
43684
|
return r[1] !== c || r[2] !== d || r[3] !== _ ? (v = (0, import_jsx_runtime.jsx)(SelectField, {
|
|
@@ -43689,7 +43689,7 @@ ${c}
|
|
|
43689
43689
|
}), r[1] = c, r[2] = d, r[3] = _, r[4] = v) : v = r[4], v;
|
|
43690
43690
|
}, BinFields = (e) => {
|
|
43691
43691
|
var _a3, _b3, _c3, _d3;
|
|
43692
|
-
let r = (0, import_compiler_runtime$
|
|
43692
|
+
let r = (0, import_compiler_runtime$80.c)(10), { fieldName: c } = e, d = useFormContext(), f;
|
|
43693
43693
|
r[0] === d.control ? f = r[1] : (f = {
|
|
43694
43694
|
control: d.control
|
|
43695
43695
|
}, r[0] = d.control, r[1] = f);
|
|
@@ -43719,7 +43719,7 @@ ${c}
|
|
|
43719
43719
|
]
|
|
43720
43720
|
}), r[7] = y, r[8] = w, r[9] = E) : E = r[9], E;
|
|
43721
43721
|
};
|
|
43722
|
-
function _temp$
|
|
43722
|
+
function _temp$26(e) {
|
|
43723
43723
|
if (e.name.trim() === "") return null;
|
|
43724
43724
|
let r = DATA_TYPE_ICON[e.type];
|
|
43725
43725
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
@@ -43735,10 +43735,10 @@ ${c}
|
|
|
43735
43735
|
})
|
|
43736
43736
|
}, e.name);
|
|
43737
43737
|
}
|
|
43738
|
-
function _temp2$
|
|
43738
|
+
function _temp2$20(e) {
|
|
43739
43739
|
return e.value !== "";
|
|
43740
43740
|
}
|
|
43741
|
-
function _temp3$
|
|
43741
|
+
function _temp3$13(e) {
|
|
43742
43742
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
43743
43743
|
value: e.value,
|
|
43744
43744
|
children: e.display
|
|
@@ -43804,7 +43804,7 @@ ${c}
|
|
|
43804
43804
|
value: e
|
|
43805
43805
|
};
|
|
43806
43806
|
}
|
|
43807
|
-
var import_compiler_runtime$
|
|
43807
|
+
var import_compiler_runtime$79 = require_compiler_runtime();
|
|
43808
43808
|
function isNonCountField(e) {
|
|
43809
43809
|
return isFieldSet(e == null ? void 0 : e.field) && (e == null ? void 0 : e.field) !== "__count__";
|
|
43810
43810
|
}
|
|
@@ -43828,7 +43828,7 @@ ${c}
|
|
|
43828
43828
|
};
|
|
43829
43829
|
}
|
|
43830
43830
|
var ColumnSelectorWithAggregation = (e) => {
|
|
43831
|
-
let r = (0, import_compiler_runtime$
|
|
43831
|
+
let r = (0, import_compiler_runtime$79.c)(14), { columnFieldName: c, column: d, columns: f, binFieldName: h, defaultAggregation: _ } = e, v;
|
|
43832
43832
|
r[0] === d ? v = r[1] : (v = getColumnDataTypes(d), r[0] = d, r[1] = v);
|
|
43833
43833
|
let { selectedDataType: y } = v, S;
|
|
43834
43834
|
r[2] !== c || r[3] !== f ? (S = (0, import_jsx_runtime.jsx)(ColumnSelector, {
|
|
@@ -43852,7 +43852,7 @@ ${c}
|
|
|
43852
43852
|
}), r[11] = S, r[12] = w, r[13] = E) : E = r[13], E;
|
|
43853
43853
|
};
|
|
43854
43854
|
const ChartTypeSelect = (e) => {
|
|
43855
|
-
let r = (0, import_compiler_runtime$
|
|
43855
|
+
let r = (0, import_compiler_runtime$79.c)(7), { value: c, onValueChange: d } = e, f, h;
|
|
43856
43856
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = buttonVariants({
|
|
43857
43857
|
variant: "outline",
|
|
43858
43858
|
className: "user-select-none w-full justify-between px-3"
|
|
@@ -43876,7 +43876,7 @@ ${c}
|
|
|
43876
43876
|
children: [
|
|
43877
43877
|
_,
|
|
43878
43878
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
43879
|
-
children: CHART_TYPES.map(_temp$
|
|
43879
|
+
children: CHART_TYPES.map(_temp$25)
|
|
43880
43880
|
})
|
|
43881
43881
|
]
|
|
43882
43882
|
}), r[3] = v) : v = r[3];
|
|
@@ -43888,7 +43888,7 @@ ${c}
|
|
|
43888
43888
|
}), r[4] = d, r[5] = c, r[6] = y) : y = r[6], y;
|
|
43889
43889
|
};
|
|
43890
43890
|
var ChartSelectItem = (e) => {
|
|
43891
|
-
let r = (0, import_compiler_runtime$
|
|
43891
|
+
let r = (0, import_compiler_runtime$79.c)(10), { chartType: c } = e, d = CHART_TYPE_ICON[c], f;
|
|
43892
43892
|
r[0] === d ? f = r[1] : (f = (0, import_jsx_runtime.jsx)(d, {
|
|
43893
43893
|
className: "w-4 h-4 mr-2"
|
|
43894
43894
|
}), r[0] = d, r[1] = f);
|
|
@@ -43911,7 +43911,7 @@ ${c}
|
|
|
43911
43911
|
};
|
|
43912
43912
|
const XAxis = () => {
|
|
43913
43913
|
var _a3, _b3, _c3, _d3, _e9, _f3, _g3;
|
|
43914
|
-
let e = (0, import_compiler_runtime$
|
|
43914
|
+
let e = (0, import_compiler_runtime$79.c)(22), r = useFormContext(), c;
|
|
43915
43915
|
e[0] === r.control ? c = e[1] : (c = {
|
|
43916
43916
|
control: r.control
|
|
43917
43917
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -43964,7 +43964,7 @@ ${c}
|
|
|
43964
43964
|
}), e[17] = w, e[18] = E, e[19] = O, e[20] = M, e[21] = I) : I = e[21], I;
|
|
43965
43965
|
}, YAxis = () => {
|
|
43966
43966
|
var _a3, _b3, _c3;
|
|
43967
|
-
let e = (0, import_compiler_runtime$
|
|
43967
|
+
let e = (0, import_compiler_runtime$79.c)(29), r = useFormContext(), c;
|
|
43968
43968
|
e[0] === r.control ? c = e[1] : (c = {
|
|
43969
43969
|
control: r.control
|
|
43970
43970
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -44021,7 +44021,7 @@ ${c}
|
|
|
44021
44021
|
}), e[23] = X7, e[24] = Z7, e[25] = Y7, e[26] = G, e[27] = q, e[28] = Q7) : Q7 = e[28], Q7;
|
|
44022
44022
|
}, ColorByAxis = () => {
|
|
44023
44023
|
var _a3;
|
|
44024
|
-
let e = (0, import_compiler_runtime$
|
|
44024
|
+
let e = (0, import_compiler_runtime$79.c)(13), { fields: r } = useChartFormContext(), c = useFormContext(), d;
|
|
44025
44025
|
e[0] === c.control ? d = e[1] : (d = {
|
|
44026
44026
|
control: c.control
|
|
44027
44027
|
}, e[0] = c.control, e[1] = d);
|
|
@@ -44052,7 +44052,7 @@ ${c}
|
|
|
44052
44052
|
}), e[10] = y, e[11] = S, e[12] = w) : w = e[12], w;
|
|
44053
44053
|
}, Facet = () => {
|
|
44054
44054
|
var _a3, _b3;
|
|
44055
|
-
let e = (0, import_compiler_runtime$
|
|
44055
|
+
let e = (0, import_compiler_runtime$79.c)(7), r = useChartFormContext().fields, c = useFormContext(), d;
|
|
44056
44056
|
e[0] === c.control ? d = e[1] : (d = {
|
|
44057
44057
|
control: c.control
|
|
44058
44058
|
}, e[0] = c.control, e[1] = d);
|
|
@@ -44126,15 +44126,15 @@ ${c}
|
|
|
44126
44126
|
]
|
|
44127
44127
|
}), e[5] = _, e[6] = v), v;
|
|
44128
44128
|
};
|
|
44129
|
-
function _temp$
|
|
44129
|
+
function _temp$25(e) {
|
|
44130
44130
|
return (0, import_jsx_runtime.jsx)(ChartSelectItem, {
|
|
44131
44131
|
chartType: e
|
|
44132
44132
|
}, e);
|
|
44133
44133
|
}
|
|
44134
|
-
var import_compiler_runtime$
|
|
44134
|
+
var import_compiler_runtime$78 = require_compiler_runtime();
|
|
44135
44135
|
const CommonChartForm = () => {
|
|
44136
44136
|
var _a3, _b3;
|
|
44137
|
-
let e = (0, import_compiler_runtime$
|
|
44137
|
+
let e = (0, import_compiler_runtime$78.c)(17), r = useFormContext(), c;
|
|
44138
44138
|
e[0] === r.control ? c = e[1] : (c = {
|
|
44139
44139
|
control: r.control
|
|
44140
44140
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -44186,7 +44186,7 @@ ${c}
|
|
|
44186
44186
|
]
|
|
44187
44187
|
}), e[15] = z, e[16] = q), q;
|
|
44188
44188
|
}, StyleForm = () => {
|
|
44189
|
-
let e = (0, import_compiler_runtime$
|
|
44189
|
+
let e = (0, import_compiler_runtime$78.c)(15), { chartType: r } = useChartFormContext(), c;
|
|
44190
44190
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(AccordionFormTrigger, {
|
|
44191
44191
|
className: "pt-0",
|
|
44192
44192
|
children: (0, import_jsx_runtime.jsx)(Title, {
|
|
@@ -44281,7 +44281,7 @@ ${c}
|
|
|
44281
44281
|
e[9] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (0, import_jsx_runtime.jsx)(SelectField, {
|
|
44282
44282
|
fieldName: "color.field",
|
|
44283
44283
|
label: "Field",
|
|
44284
|
-
options: COLOR_BY_FIELDS.map(_temp$
|
|
44284
|
+
options: COLOR_BY_FIELDS.map(_temp$24),
|
|
44285
44285
|
defaultValue: NONE_VALUE
|
|
44286
44286
|
}), e[9] = E) : E = e[9];
|
|
44287
44287
|
let O, M;
|
|
@@ -44289,7 +44289,7 @@ ${c}
|
|
|
44289
44289
|
fieldName: "color.scheme",
|
|
44290
44290
|
label: "Color scheme",
|
|
44291
44291
|
defaultValue: DEFAULT_COLOR_SCHEME,
|
|
44292
|
-
options: COLOR_SCHEMES.map(_temp2$
|
|
44292
|
+
options: COLOR_SCHEMES.map(_temp2$19)
|
|
44293
44293
|
}), M = (0, import_jsx_runtime.jsx)(ColorArrayField, {
|
|
44294
44294
|
fieldName: "color.range",
|
|
44295
44295
|
label: "Color range"
|
|
@@ -44329,7 +44329,7 @@ ${c}
|
|
|
44329
44329
|
}), e[13] = h, e[14] = z), z;
|
|
44330
44330
|
}, OtherOptions = () => {
|
|
44331
44331
|
var _a3;
|
|
44332
|
-
let e = (0, import_compiler_runtime$
|
|
44332
|
+
let e = (0, import_compiler_runtime$78.c)(11), { saveForm: r } = useChartFormContext(), c = useFormContext(), d;
|
|
44333
44333
|
e[0] === c.control ? d = e[1] : (d = {
|
|
44334
44334
|
control: c.control
|
|
44335
44335
|
}, e[0] = c.control, e[1] = d);
|
|
@@ -44388,22 +44388,22 @@ ${c}
|
|
|
44388
44388
|
]
|
|
44389
44389
|
}), e[9] = S, e[10] = w), w;
|
|
44390
44390
|
};
|
|
44391
|
-
function _temp$
|
|
44391
|
+
function _temp$24(e) {
|
|
44392
44392
|
return {
|
|
44393
44393
|
display: capitalize(e),
|
|
44394
44394
|
value: e
|
|
44395
44395
|
};
|
|
44396
44396
|
}
|
|
44397
|
-
function _temp2$
|
|
44397
|
+
function _temp2$19(e) {
|
|
44398
44398
|
return {
|
|
44399
44399
|
display: capitalize(e),
|
|
44400
44400
|
value: e
|
|
44401
44401
|
};
|
|
44402
44402
|
}
|
|
44403
|
-
var import_compiler_runtime$
|
|
44403
|
+
var import_compiler_runtime$77 = require_compiler_runtime();
|
|
44404
44404
|
const HeatmapForm = () => {
|
|
44405
44405
|
var _a3, _b3, _c3, _d3;
|
|
44406
|
-
let e = (0, import_compiler_runtime$
|
|
44406
|
+
let e = (0, import_compiler_runtime$77.c)(17), r = useFormContext(), c;
|
|
44407
44407
|
e[0] === r.control ? c = e[1] : (c = {
|
|
44408
44408
|
control: r.control
|
|
44409
44409
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -44446,10 +44446,10 @@ ${c}
|
|
|
44446
44446
|
]
|
|
44447
44447
|
}), e[14] = E, e[15] = M, e[16] = Y7) : Y7 = e[16], Y7;
|
|
44448
44448
|
};
|
|
44449
|
-
var import_compiler_runtime$
|
|
44449
|
+
var import_compiler_runtime$76 = require_compiler_runtime();
|
|
44450
44450
|
const PieForm = () => {
|
|
44451
44451
|
var _a3, _b3, _c3;
|
|
44452
|
-
let e = (0, import_compiler_runtime$
|
|
44452
|
+
let e = (0, import_compiler_runtime$76.c)(25), r = useFormContext(), { fields: c } = useChartFormContext(), d;
|
|
44453
44453
|
e[0] === r.control ? d = e[1] : (d = {
|
|
44454
44454
|
control: r.control
|
|
44455
44455
|
}, e[0] = r.control, e[1] = d);
|
|
@@ -44516,9 +44516,9 @@ ${c}
|
|
|
44516
44516
|
]
|
|
44517
44517
|
}), e[21] = w, e[22] = E, e[23] = z, e[24] = X7) : X7 = e[24], X7;
|
|
44518
44518
|
};
|
|
44519
|
-
var import_compiler_runtime$
|
|
44519
|
+
var import_compiler_runtime$75 = require_compiler_runtime();
|
|
44520
44520
|
const LazyChart = (e) => {
|
|
44521
|
-
let r = (0, import_compiler_runtime$
|
|
44521
|
+
let r = (0, import_compiler_runtime$75.c)(8), { baseSpec: c, data: d, height: f } = e, { theme: h } = useTheme();
|
|
44522
44522
|
if (!d) {
|
|
44523
44523
|
let e2;
|
|
44524
44524
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -44559,7 +44559,7 @@ ${c}
|
|
|
44559
44559
|
}), r[5] = c, r[6] = v, r[7] = y) : y = r[7], y;
|
|
44560
44560
|
};
|
|
44561
44561
|
var LoadingChart$1 = () => {
|
|
44562
|
-
let e = (0, import_compiler_runtime$
|
|
44562
|
+
let e = (0, import_compiler_runtime$75.c)(1), r;
|
|
44563
44563
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (0, import_jsx_runtime.jsx)(ChartInfoState, {
|
|
44564
44564
|
className: "mt-14",
|
|
44565
44565
|
children: "Loading chart..."
|
|
@@ -44703,7 +44703,7 @@ ${c}
|
|
|
44703
44703
|
let r = initialStorageValue.get(e);
|
|
44704
44704
|
return r ? r.length > 0 : false;
|
|
44705
44705
|
}
|
|
44706
|
-
var import_compiler_runtime$
|
|
44706
|
+
var import_compiler_runtime$74 = require_compiler_runtime(), NEW_CHART_TYPE = "bar", DEFAULT_TAB_NAME = "table", CHART_HEIGHT = 290, CHART_MAX_ROWS = 5e4, CHART_MAX_COLUMNS = 50;
|
|
44707
44707
|
const TablePanel = ({ cellId: e, data: r, dataTable: c, totalRows: d, columns: f, getDataUrl: h, fieldTypes: _, displayHeader: v, onCloseChartBuilder: y }) => {
|
|
44708
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);
|
|
44709
44709
|
if (v && !G.current && E.length === 0 && e) {
|
|
@@ -44969,12 +44969,12 @@ ${c}
|
|
|
44969
44969
|
});
|
|
44970
44970
|
};
|
|
44971
44971
|
var ChartFormContainer = (e) => {
|
|
44972
|
-
let r = (0, import_compiler_runtime$
|
|
44972
|
+
let r = (0, import_compiler_runtime$74.c)(28), { form: c, saveChart: d, fieldTypes: f, chartType: h } = e, _;
|
|
44973
44973
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = [], r[0] = _) : _ = r[0];
|
|
44974
44974
|
let v = _;
|
|
44975
44975
|
if (f) {
|
|
44976
44976
|
let e2;
|
|
44977
|
-
r[1] === f ? e2 = r[2] : (e2 = f.map(_temp2$
|
|
44977
|
+
r[1] === f ? e2 = r[2] : (e2 = f.map(_temp2$18), r[1] = f, r[2] = e2), v = e2;
|
|
44978
44978
|
}
|
|
44979
44979
|
let y;
|
|
44980
44980
|
r[3] !== c || r[4] !== d ? (y = () => {
|
|
@@ -45055,7 +45055,7 @@ ${c}
|
|
|
45055
45055
|
}), r[17] = z, r[18] = q);
|
|
45056
45056
|
let X7;
|
|
45057
45057
|
r[19] !== S || r[20] !== q ? (X7 = (0, import_jsx_runtime.jsx)("form", {
|
|
45058
|
-
onSubmit: _temp3$
|
|
45058
|
+
onSubmit: _temp3$12,
|
|
45059
45059
|
onChange: S,
|
|
45060
45060
|
children: q
|
|
45061
45061
|
}), r[19] = S, r[20] = q, r[21] = X7) : X7 = r[21];
|
|
@@ -45070,18 +45070,18 @@ ${c}
|
|
|
45070
45070
|
children: Z7
|
|
45071
45071
|
}), r[25] = Z7, r[26] = E, r[27] = Q7) : Q7 = r[27], Q7;
|
|
45072
45072
|
};
|
|
45073
|
-
function _temp2$
|
|
45073
|
+
function _temp2$18(e) {
|
|
45074
45074
|
return {
|
|
45075
45075
|
name: e[0],
|
|
45076
45076
|
type: e[1][0]
|
|
45077
45077
|
};
|
|
45078
45078
|
}
|
|
45079
|
-
function _temp3$
|
|
45079
|
+
function _temp3$12(e) {
|
|
45080
45080
|
return e.preventDefault();
|
|
45081
45081
|
}
|
|
45082
|
-
var import_compiler_runtime$
|
|
45082
|
+
var import_compiler_runtime$73 = require_compiler_runtime();
|
|
45083
45083
|
function usePanelOwnership(e, r) {
|
|
45084
|
-
let c = (0, import_compiler_runtime$
|
|
45084
|
+
let c = (0, import_compiler_runtime$73.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);
|
|
45085
45085
|
!r && d && (Logger.error("CellId is not found, defaulting to fixed mode"), d = false);
|
|
45086
45086
|
let I = (e2) => S === M && E && e2 === v, z = _ === r, Y7 = S && isPanelOwner(S, r);
|
|
45087
45087
|
d && z && S !== M && !Y7 && w(M);
|
|
@@ -45118,9 +45118,9 @@ ${c}
|
|
|
45118
45118
|
error: zod_default.string().nullish(),
|
|
45119
45119
|
missing_packages: zod_default.array(zod_default.string()).nullish()
|
|
45120
45120
|
}));
|
|
45121
|
-
var import_compiler_runtime$
|
|
45121
|
+
var import_compiler_runtime$72 = require_compiler_runtime();
|
|
45122
45122
|
const EmptyState = (e) => {
|
|
45123
|
-
let r = (0, import_compiler_runtime$
|
|
45123
|
+
let r = (0, import_compiler_runtime$72.c)(5), { content: c, className: d } = e, f;
|
|
45124
45124
|
r[0] === d ? f = r[1] : (f = cn("text-sm text-muted-foreground py-1", d), r[0] = d, r[1] = f);
|
|
45125
45125
|
let h;
|
|
45126
45126
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -45128,7 +45128,7 @@ ${c}
|
|
|
45128
45128
|
children: c
|
|
45129
45129
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
45130
45130
|
}, ErrorState = (e) => {
|
|
45131
|
-
let r = (0, import_compiler_runtime$
|
|
45131
|
+
let r = (0, import_compiler_runtime$72.c)(9), { error: c, style: d, className: f, showIcon: h } = e, _ = h === void 0 ? true : h, y;
|
|
45132
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);
|
|
45133
45133
|
let S;
|
|
45134
45134
|
r[2] === _ ? S = r[3] : (S = _ && (0, import_jsx_runtime.jsx)(X, {
|
|
@@ -45144,7 +45144,7 @@ ${c}
|
|
|
45144
45144
|
]
|
|
45145
45145
|
}), r[4] = c.message, r[5] = d, r[6] = y, r[7] = S, r[8] = w) : w = r[8], w;
|
|
45146
45146
|
}, LoadingState = (e) => {
|
|
45147
|
-
let r = (0, import_compiler_runtime$
|
|
45147
|
+
let r = (0, import_compiler_runtime$72.c)(6), { message: c, className: d } = e, f;
|
|
45148
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);
|
|
45149
45149
|
let h;
|
|
45150
45150
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (h = (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
@@ -45159,7 +45159,7 @@ ${c}
|
|
|
45159
45159
|
]
|
|
45160
45160
|
}), r[3] = c, r[4] = f, r[5] = _) : _ = r[5], _;
|
|
45161
45161
|
}, ColumnPreviewContainer = (e) => {
|
|
45162
|
-
let r = (0, import_compiler_runtime$
|
|
45162
|
+
let r = (0, import_compiler_runtime$72.c)(5), { children: c, className: d } = e, f;
|
|
45163
45163
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col gap-2 relative", d), r[0] = d, r[1] = f);
|
|
45164
45164
|
let h;
|
|
45165
45165
|
return r[2] !== c || r[3] !== f ? (h = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -45167,7 +45167,7 @@ ${c}
|
|
|
45167
45167
|
children: c
|
|
45168
45168
|
}), r[2] = c, r[3] = f, r[4] = h) : h = r[4], h;
|
|
45169
45169
|
}, ColumnName = (e) => {
|
|
45170
|
-
let r = (0, import_compiler_runtime$
|
|
45170
|
+
let r = (0, import_compiler_runtime$72.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)}`, _;
|
|
45171
45171
|
r[0] !== f || r[1] !== h ? (_ = (0, import_jsx_runtime.jsx)(f, {
|
|
45172
45172
|
className: h
|
|
45173
45173
|
}), r[0] = f, r[1] = h, r[2] = _) : _ = r[2];
|
|
@@ -45180,7 +45180,7 @@ ${c}
|
|
|
45180
45180
|
]
|
|
45181
45181
|
}), r[3] = c, r[4] = _, r[5] = v) : v = r[5], v;
|
|
45182
45182
|
};
|
|
45183
|
-
var import_compiler_runtime$
|
|
45183
|
+
var import_compiler_runtime$71 = require_compiler_runtime();
|
|
45184
45184
|
function renderPreviewError({ error: e, missingPackages: r, refetchPreview: c }) {
|
|
45185
45185
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
45186
45186
|
className: "text-xs text-muted-foreground p-2 border border-border rounded flex items-center justify-between",
|
|
@@ -45250,7 +45250,7 @@ ${c}
|
|
|
45250
45250
|
});
|
|
45251
45251
|
}
|
|
45252
45252
|
const AddDataframeChart = (e) => {
|
|
45253
|
-
let r = (0, import_compiler_runtime$
|
|
45253
|
+
let r = (0, import_compiler_runtime$71.c)(10), { chartCode: c } = e, d = useAtomValue(autoInstantiateAtom), f = useLastFocusedCellId(), { createNewCell: h } = useCellActions(), _;
|
|
45254
45254
|
r[0] !== d || r[1] !== h || r[2] !== f ? (_ = (e2) => {
|
|
45255
45255
|
e2.includes("alt") && maybeAddAltairImport({
|
|
45256
45256
|
autoInstantiate: d,
|
|
@@ -45281,11 +45281,11 @@ ${c}
|
|
|
45281
45281
|
})
|
|
45282
45282
|
}), r[8] = S, r[9] = E), E;
|
|
45283
45283
|
};
|
|
45284
|
-
var import_compiler_runtime$
|
|
45284
|
+
var import_compiler_runtime$70 = require_compiler_runtime();
|
|
45285
45285
|
const ColumnExplorerPanel = (e) => {
|
|
45286
|
-
let r = (0, import_compiler_runtime$
|
|
45286
|
+
let r = (0, import_compiler_runtime$70.c)(40), { previewColumn: c, fieldTypes: d, totalRows: f, totalColumns: h, tableId: _ } = e, [v, y] = (0, import_react.useState)(""), { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), w, E, O, M, I, z, Y7, G, q, X7;
|
|
45287
45287
|
if (r[0] !== d || r[1] !== S || r[2] !== c || r[3] !== v || r[4] !== _ || r[5] !== h || r[6] !== f) {
|
|
45288
|
-
let e2 = d == null ? void 0 : d.filter(_temp$
|
|
45288
|
+
let e2 = d == null ? void 0 : d.filter(_temp$23), Z72 = e2 == null ? void 0 : e2.filter((e3) => {
|
|
45289
45289
|
let [r2] = e3;
|
|
45290
45290
|
return r2.toLowerCase().includes(v.toLowerCase());
|
|
45291
45291
|
});
|
|
@@ -45301,7 +45301,7 @@ ${c}
|
|
|
45301
45301
|
Q72,
|
|
45302
45302
|
(0, import_jsx_runtime.jsx)(CopyClipboardIcon, {
|
|
45303
45303
|
tooltip: "Copy column names",
|
|
45304
|
-
value: (e2 == null ? void 0 : e2.map(_temp2$
|
|
45304
|
+
value: (e2 == null ? void 0 : e2.map(_temp2$17).join(",\n")) || "",
|
|
45305
45305
|
className: "h-3 w-3 ml-1 mt-0.5"
|
|
45306
45306
|
})
|
|
45307
45307
|
]
|
|
@@ -45351,7 +45351,7 @@ ${c}
|
|
|
45351
45351
|
}), r[36] = Q7, r[37] = q, r[38] = X7, r[39] = $7) : $7 = r[39], $7;
|
|
45352
45352
|
};
|
|
45353
45353
|
var ColumnItem = (e) => {
|
|
45354
|
-
let r = (0, import_compiler_runtime$
|
|
45354
|
+
let r = (0, import_compiler_runtime$70.c)(31), { columnName: c, dataType: d, externalType: f, previewColumn: h, defaultExpanded: _ } = e, [v, y] = (0, import_react.useState)(_ === void 0 ? false : _), S = v ? "font-semibold" : "", w;
|
|
45355
45355
|
r[0] !== c || r[1] !== S ? (w = (0, import_jsx_runtime.jsx)("span", {
|
|
45356
45356
|
className: S,
|
|
45357
45357
|
children: c
|
|
@@ -45423,7 +45423,7 @@ ${c}
|
|
|
45423
45423
|
]
|
|
45424
45424
|
}), r[28] = X7, r[29] = Z7, r[30] = Q7) : Q7 = r[30], Q7;
|
|
45425
45425
|
}, ColumnPreview = (e) => {
|
|
45426
|
-
let r = (0, import_compiler_runtime$
|
|
45426
|
+
let r = (0, import_compiler_runtime$70.c)(26), { previewColumn: c, columnName: d, dataType: f } = e, { theme: h } = useTheme(), { locale: _ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), v;
|
|
45427
45427
|
r[0] !== d || r[1] !== c ? (v = async () => await c({
|
|
45428
45428
|
column: d
|
|
45429
45429
|
}), r[0] = d, r[1] = c, r[2] = v) : v = r[2];
|
|
@@ -45478,15 +45478,15 @@ ${c}
|
|
|
45478
45478
|
]
|
|
45479
45479
|
}), r[21] = n9, r[22] = e9, r[23] = X7, r[24] = Q7, r[25] = r9) : r9 = r[25], r9;
|
|
45480
45480
|
};
|
|
45481
|
-
function _temp$
|
|
45481
|
+
function _temp$23(e) {
|
|
45482
45482
|
let [r] = e;
|
|
45483
45483
|
return !(r === "__select__" || r === "_marimo_row_id" || r.startsWith("__m_column__"));
|
|
45484
45484
|
}
|
|
45485
|
-
function _temp2$
|
|
45485
|
+
function _temp2$17(e) {
|
|
45486
45486
|
let [r] = e;
|
|
45487
45487
|
return r;
|
|
45488
45488
|
}
|
|
45489
|
-
var import_compiler_runtime$
|
|
45489
|
+
var import_compiler_runtime$69 = require_compiler_runtime();
|
|
45490
45490
|
const RowViewerPanel = ({ rowIdx: e, setRowIdx: r, totalRows: c, fieldTypes: d, getRow: f, isSelectable: h, isRowSelected: _, handleRowSelectionChange: v }) => {
|
|
45491
45491
|
let [y, S] = (0, import_react.useState)(""), w = (0, import_react.useRef)(null), E = (0, import_react.useId)(), { locale: O } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), M = c === TOO_MANY_ROWS, { data: I, error: z } = useAsyncData(async () => (await f(e)).rows, [
|
|
45492
45492
|
f,
|
|
@@ -45718,7 +45718,7 @@ ${c}
|
|
|
45718
45718
|
return h = h.toLowerCase(), d.includes(f) || h.includes(f);
|
|
45719
45719
|
}
|
|
45720
45720
|
var SimpleBanner = (e) => {
|
|
45721
|
-
let r = (0, import_compiler_runtime$
|
|
45721
|
+
let r = (0, import_compiler_runtime$69.c)(8), { kind: c, Icon: d, message: f } = e, h;
|
|
45722
45722
|
r[0] === d ? h = r[1] : (h = (0, import_jsx_runtime.jsx)(d, {
|
|
45723
45723
|
className: "w-5 h-5"
|
|
45724
45724
|
}), r[0] = d, r[1] = h);
|
|
@@ -45735,9 +45735,9 @@ ${c}
|
|
|
45735
45735
|
_
|
|
45736
45736
|
]
|
|
45737
45737
|
}), r[4] = c, r[5] = h, r[6] = _, r[7] = v) : v = r[7], v;
|
|
45738
|
-
}, import_compiler_runtime$
|
|
45738
|
+
}, import_compiler_runtime$68 = require_compiler_runtime(), tabTriggerClassName = "text-[13px] uppercase tracking-wide font-semibold cursor-pointer transition-colors", activeClassName = "text-primary", inactiveClassName = "hover:text-foreground";
|
|
45739
45739
|
const TableExplorerPanel = (e) => {
|
|
45740
|
-
let r = (0, import_compiler_runtime$
|
|
45740
|
+
let r = (0, import_compiler_runtime$68.c)(45), { rowIdx: c, setRowIdx: d, totalRows: f, fieldTypes: h, getRow: _, isSelectable: y, isRowSelected: S, handleRowSelectionChange: w, previewColumn: E, totalColumns: O, tableId: M, showRowExplorer: I, showColumnExplorer: z, activeTab: G, onTabChange: q } = e, X7 = I && z, Z7;
|
|
45741
45741
|
r[0] !== h || r[1] !== _ || r[2] !== w || r[3] !== S || r[4] !== y || r[5] !== c || r[6] !== d || r[7] !== f ? (Z7 = (0, import_jsx_runtime.jsx)(RowViewerPanel, {
|
|
45742
45742
|
rowIdx: c,
|
|
45743
45743
|
setRowIdx: d,
|
|
@@ -45825,9 +45825,9 @@ ${c}
|
|
|
45825
45825
|
]
|
|
45826
45826
|
}), r[39] = t9, r[40] = f9, r[41] = p9, r[42] = m9, r[43] = n9, r[44] = h9) : h9 = r[44], h9;
|
|
45827
45827
|
};
|
|
45828
|
-
var import_compiler_runtime$
|
|
45828
|
+
var import_compiler_runtime$67 = require_compiler_runtime();
|
|
45829
45829
|
function useEffectSkipFirstRender(e, r) {
|
|
45830
|
-
let c = (0, import_compiler_runtime$
|
|
45830
|
+
let c = (0, import_compiler_runtime$67.c)(2), d = (0, import_react.useRef)(false), f;
|
|
45831
45831
|
c[0] === e ? f = c[1] : (f = () => {
|
|
45832
45832
|
if (!d.current) {
|
|
45833
45833
|
d.current = true;
|
|
@@ -46239,7 +46239,7 @@ ${c}
|
|
|
46239
46239
|
]), TransformationsSchema = object({
|
|
46240
46240
|
transforms: array(TransformTypeSchema)
|
|
46241
46241
|
});
|
|
46242
|
-
var import_compiler_runtime$
|
|
46242
|
+
var import_compiler_runtime$66 = require_compiler_runtime(), maybeNumber = union([
|
|
46243
46243
|
number(),
|
|
46244
46244
|
nan(),
|
|
46245
46245
|
string()
|
|
@@ -46439,7 +46439,7 @@ ${c}
|
|
|
46439
46439
|
}
|
|
46440
46440
|
var LazyDataTableComponent = (e) => {
|
|
46441
46441
|
var _a3;
|
|
46442
|
-
let r = (0, import_compiler_runtime$
|
|
46442
|
+
let r = (0, import_compiler_runtime$66.c)(13), { isLazy: c, children: d, preload: f, host: h } = e, _, v, y, S;
|
|
46443
46443
|
if (r[0] !== h || r[1] !== c || r[2] !== f) {
|
|
46444
46444
|
let e2 = h.closest(`[${OBJECT_ID_ATTR}]`);
|
|
46445
46445
|
S = e2 ? UIElementId.parse(e2) : null, _ = (_a3 = h.closest(`[${RANDOM_ID_ATTR}]`)) == null ? void 0 : _a3.getAttribute(RANDOM_ID_ATTR), v = import_react.useState, y = c && !f && !wasTablePreviewed(S, _), r[0] = h, r[1] = c, r[2] = f, r[3] = _, r[4] = v, r[5] = y, r[6] = S;
|
|
@@ -46471,7 +46471,7 @@ ${c}
|
|
|
46471
46471
|
return d;
|
|
46472
46472
|
};
|
|
46473
46473
|
const LoadingDataTableComponent = (0, import_react.memo)((e) => {
|
|
46474
|
-
let r = (0, import_compiler_runtime$
|
|
46474
|
+
let r = (0, import_compiler_runtime$66.c)(104), c;
|
|
46475
46475
|
r[0] === e.host ? c = r[1] : (c = findCellId(e.host), r[0] = e.host, r[1] = c);
|
|
46476
46476
|
let d = c, f = e.search, _ = e.setValue, v;
|
|
46477
46477
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = [], r[2] = v) : v = r[2];
|
|
@@ -46513,13 +46513,13 @@ ${c}
|
|
|
46513
46513
|
cellStyles: {}
|
|
46514
46514
|
};
|
|
46515
46515
|
let r2 = e.data, c2 = e.rawData, d2 = e.totalRows, h = e.cellStyles, _2 = e.cellHoverTexts, v2 = E.pageSize !== e.pageSize, S2 = M === "" && E.pageIndex === 0 && Y7.length === 0 && y.length === 0 && !e.lazy && !v2, w2 = f({
|
|
46516
|
-
sort: y.length > 0 ? y.map(_temp$
|
|
46516
|
+
sort: y.length > 0 ? y.map(_temp$22) : void 0,
|
|
46517
46517
|
query: M,
|
|
46518
46518
|
page_number: E.pageIndex,
|
|
46519
46519
|
page_size: E.pageSize,
|
|
46520
46520
|
filters: filtersToFilterGroup(Y7)
|
|
46521
46521
|
});
|
|
46522
|
-
if (S2) w2.catch(_temp2$
|
|
46522
|
+
if (S2) w2.catch(_temp2$16);
|
|
46523
46523
|
else {
|
|
46524
46524
|
let e2 = await w2;
|
|
46525
46525
|
r2 = e2.data, c2 = e2.raw_data, d2 = e2.total_rows, h = e2.cell_styles || {}, _2 = e2.cell_hover_texts || {};
|
|
@@ -46553,7 +46553,7 @@ ${c}
|
|
|
46553
46553
|
rows: await loadTableData((await f({
|
|
46554
46554
|
page_number: e2,
|
|
46555
46555
|
page_size: 1,
|
|
46556
|
-
sort: y.length > 0 ? y.map(_temp3$
|
|
46556
|
+
sort: y.length > 0 ? y.map(_temp3$11) : void 0,
|
|
46557
46557
|
query: M,
|
|
46558
46558
|
filters: filtersToFilterGroup(Y7),
|
|
46559
46559
|
max_columns: null
|
|
@@ -46845,7 +46845,7 @@ ${c}
|
|
|
46845
46845
|
});
|
|
46846
46846
|
};
|
|
46847
46847
|
const TableProviders = (e) => {
|
|
46848
|
-
let r = (0, import_compiler_runtime$
|
|
46848
|
+
let r = (0, import_compiler_runtime$66.c)(2), { children: c } = e, d;
|
|
46849
46849
|
return r[0] === c ? d = r[1] : (d = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
46850
46850
|
children: (0, import_jsx_runtime.jsx)(Provider, {
|
|
46851
46851
|
store,
|
|
@@ -46856,16 +46856,16 @@ ${c}
|
|
|
46856
46856
|
})
|
|
46857
46857
|
}), r[0] = c, r[1] = d), d;
|
|
46858
46858
|
};
|
|
46859
|
-
function _temp$
|
|
46859
|
+
function _temp$22(e) {
|
|
46860
46860
|
return {
|
|
46861
46861
|
by: e.id,
|
|
46862
46862
|
descending: e.desc
|
|
46863
46863
|
};
|
|
46864
46864
|
}
|
|
46865
|
-
function _temp2$
|
|
46865
|
+
function _temp2$16(e) {
|
|
46866
46866
|
Logger.error(e);
|
|
46867
46867
|
}
|
|
46868
|
-
function _temp3$
|
|
46868
|
+
function _temp3$11(e) {
|
|
46869
46869
|
return {
|
|
46870
46870
|
by: e.id,
|
|
46871
46871
|
descending: e.desc
|
|
@@ -46877,11 +46877,11 @@ ${c}
|
|
|
46877
46877
|
pageIndex: 0
|
|
46878
46878
|
};
|
|
46879
46879
|
}
|
|
46880
|
-
var import_compiler_runtime$
|
|
46881
|
-
let r = (0, import_compiler_runtime$
|
|
46880
|
+
var import_compiler_runtime$65 = require_compiler_runtime(), Popover = (e) => {
|
|
46881
|
+
let r = (0, import_compiler_runtime$65.c)(10), c, d, f;
|
|
46882
46882
|
r[0] === e ? (c = r[1], d = r[2], f = r[3]) : ({ className: c, offset: f, ...d } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f);
|
|
46883
46883
|
let h = f === void 0 ? 4 : f, _;
|
|
46884
|
-
r[4] === c ? _ = r[5] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp$
|
|
46884
|
+
r[4] === c ? _ = r[5] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp$21), r[4] = c, r[5] = _);
|
|
46885
46885
|
let v;
|
|
46886
46886
|
return r[6] !== h || r[7] !== d || r[8] !== _ ? (v = (0, import_jsx_runtime.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
46887
46887
|
offset: h,
|
|
@@ -46889,11 +46889,11 @@ ${c}
|
|
|
46889
46889
|
...d
|
|
46890
46890
|
}), r[6] = h, r[7] = d, r[8] = _, r[9] = v) : v = r[9], v;
|
|
46891
46891
|
};
|
|
46892
|
-
function _temp$
|
|
46892
|
+
function _temp$21(e) {
|
|
46893
46893
|
return cn("z-50 rounded-md border bg-popover text-popover-foreground shadow-md outline-hidden", "data-entering:animate-in data-entering:fade-in-0 data-entering:zoom-in-95", "data-exiting:animate-out data-exiting:fade-out-0 data-exiting:zoom-out-95", "data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2", e);
|
|
46894
46894
|
}
|
|
46895
|
-
var import_compiler_runtime$
|
|
46896
|
-
let r = (0, import_compiler_runtime$
|
|
46895
|
+
var import_compiler_runtime$64 = require_compiler_runtime(), CalendarHeading = (e) => {
|
|
46896
|
+
let r = (0, import_compiler_runtime$64.c)(11), { direction: c } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), d;
|
|
46897
46897
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = cn(buttonVariants({
|
|
46898
46898
|
variant: "outline"
|
|
46899
46899
|
}), "size-7 bg-transparent p-0 opacity-50", "data-hovered:opacity-100"), r[0] = d) : d = r[0];
|
|
@@ -46940,7 +46940,7 @@ ${c}
|
|
|
46940
46940
|
]
|
|
46941
46941
|
}), r[7] = e, r[8] = f, r[9] = y, r[10] = S) : S = r[10], S;
|
|
46942
46942
|
}, CalendarGrid = (e) => {
|
|
46943
|
-
let r = (0, import_compiler_runtime$
|
|
46943
|
+
let r = (0, import_compiler_runtime$64.c)(8), c, d;
|
|
46944
46944
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
46945
46945
|
let f;
|
|
46946
46946
|
r[3] === c ? f = r[4] : (f = cn(" border-separate border-spacing-x-0 border-spacing-y-1 ", c), r[3] = c, r[4] = f);
|
|
@@ -46950,14 +46950,14 @@ ${c}
|
|
|
46950
46950
|
...d
|
|
46951
46951
|
}), r[5] = d, r[6] = f, r[7] = h) : h = r[7], h;
|
|
46952
46952
|
}, CalendarGridHeader = (e) => {
|
|
46953
|
-
let r = (0, import_compiler_runtime$
|
|
46953
|
+
let r = (0, import_compiler_runtime$64.c)(4), c;
|
|
46954
46954
|
r[0] === e ? c = r[1] : ({ ...c } = e, r[0] = e, r[1] = c);
|
|
46955
46955
|
let d;
|
|
46956
46956
|
return r[2] === c ? d = r[3] : (d = (0, import_jsx_runtime.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, {
|
|
46957
46957
|
...c
|
|
46958
46958
|
}), r[2] = c, r[3] = d), d;
|
|
46959
46959
|
}, CalendarHeaderCell = (e) => {
|
|
46960
|
-
let r = (0, import_compiler_runtime$
|
|
46960
|
+
let r = (0, import_compiler_runtime$64.c)(8), c, d;
|
|
46961
46961
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
46962
46962
|
let f;
|
|
46963
46963
|
r[3] === c ? f = r[4] : (f = cn("w-9 rounded-md text-[0.8rem] font-normal text-muted-foreground", c), r[3] = c, r[4] = f);
|
|
@@ -46967,7 +46967,7 @@ ${c}
|
|
|
46967
46967
|
...d
|
|
46968
46968
|
}), r[5] = d, r[6] = f, r[7] = h) : h = r[7], h;
|
|
46969
46969
|
}, CalendarGridBody = (e) => {
|
|
46970
|
-
let r = (0, import_compiler_runtime$
|
|
46970
|
+
let r = (0, import_compiler_runtime$64.c)(8), c, d;
|
|
46971
46971
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
46972
46972
|
let f;
|
|
46973
46973
|
r[3] === c ? f = r[4] : (f = cn("[&>tr>td]:p-0", c), r[3] = c, r[4] = f);
|
|
@@ -46977,7 +46977,7 @@ ${c}
|
|
|
46977
46977
|
...d
|
|
46978
46978
|
}), r[5] = d, r[6] = f, r[7] = h) : h = r[7], h;
|
|
46979
46979
|
}, CalendarCell = (e) => {
|
|
46980
|
-
let r = (0, import_compiler_runtime$
|
|
46980
|
+
let r = (0, import_compiler_runtime$64.c)(11), c, d;
|
|
46981
46981
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
46982
46982
|
let f = !!import_react.use($dfd62f934fc76fed$export$5e0fc348c00f87a0), h;
|
|
46983
46983
|
r[3] === f ? h = r[4] : (h = (e2, r2) => cn(buttonVariants({
|
|
@@ -46991,20 +46991,20 @@ ${c}
|
|
|
46991
46991
|
...d
|
|
46992
46992
|
}), r[8] = d, r[9] = _, r[10] = y) : y = r[10], y;
|
|
46993
46993
|
}, Calendar$1 = (e) => {
|
|
46994
|
-
let r = (0, import_compiler_runtime$
|
|
46994
|
+
let r = (0, import_compiler_runtime$64.c)(14), c, d, f;
|
|
46995
46995
|
r[0] === e ? (c = r[1], d = r[2], f = r[3]) : ({ errorMessage: d, className: c, ...f } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f);
|
|
46996
46996
|
let h;
|
|
46997
|
-
r[4] === c ? h = r[5] : (h = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp$
|
|
46997
|
+
r[4] === c ? h = r[5] : (h = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp$20), r[4] = c, r[5] = h);
|
|
46998
46998
|
let _;
|
|
46999
46999
|
r[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (0, import_jsx_runtime.jsx)(CalendarHeading, {}), r[6] = _) : _ = r[6];
|
|
47000
47000
|
let v;
|
|
47001
47001
|
r[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (0, import_jsx_runtime.jsxs)(CalendarGrid, {
|
|
47002
47002
|
children: [
|
|
47003
47003
|
(0, import_jsx_runtime.jsx)(CalendarGridHeader, {
|
|
47004
|
-
children: _temp2$
|
|
47004
|
+
children: _temp2$15
|
|
47005
47005
|
}),
|
|
47006
47006
|
(0, import_jsx_runtime.jsx)(CalendarGridBody, {
|
|
47007
|
-
children: _temp3$
|
|
47007
|
+
children: _temp3$10
|
|
47008
47008
|
})
|
|
47009
47009
|
]
|
|
47010
47010
|
}), r[7] = v) : v = r[7];
|
|
@@ -47025,7 +47025,7 @@ ${c}
|
|
|
47025
47025
|
]
|
|
47026
47026
|
}), r[10] = f, r[11] = h, r[12] = y, r[13] = S) : S = r[13], S;
|
|
47027
47027
|
}, RangeCalendar = (e) => {
|
|
47028
|
-
let r = (0, import_compiler_runtime$
|
|
47028
|
+
let r = (0, import_compiler_runtime$64.c)(14), c, d, f;
|
|
47029
47029
|
r[0] === e ? (c = r[1], d = r[2], f = r[3]) : ({ errorMessage: d, className: c, ...f } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f);
|
|
47030
47030
|
let h;
|
|
47031
47031
|
r[4] === c ? h = r[5] : (h = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp4$5), r[4] = c, r[5] = h);
|
|
@@ -47059,15 +47059,15 @@ ${c}
|
|
|
47059
47059
|
]
|
|
47060
47060
|
}), r[10] = f, r[11] = h, r[12] = y, r[13] = S) : S = r[13], S;
|
|
47061
47061
|
};
|
|
47062
|
-
function _temp$
|
|
47062
|
+
function _temp$20(e) {
|
|
47063
47063
|
return cn("w-fit", e);
|
|
47064
47064
|
}
|
|
47065
|
-
function _temp2$
|
|
47065
|
+
function _temp2$15(e) {
|
|
47066
47066
|
return (0, import_jsx_runtime.jsx)(CalendarHeaderCell, {
|
|
47067
47067
|
children: e
|
|
47068
47068
|
});
|
|
47069
47069
|
}
|
|
47070
|
-
function _temp3$
|
|
47070
|
+
function _temp3$10(e) {
|
|
47071
47071
|
return (0, import_jsx_runtime.jsx)(CalendarCell, {
|
|
47072
47072
|
date: e
|
|
47073
47073
|
});
|
|
@@ -47085,12 +47085,12 @@ ${c}
|
|
|
47085
47085
|
date: e
|
|
47086
47086
|
});
|
|
47087
47087
|
}
|
|
47088
|
-
var import_compiler_runtime$
|
|
47088
|
+
var import_compiler_runtime$63 = require_compiler_runtime(), labelVariants = cva([
|
|
47089
47089
|
"text-sm font-medium leading-none",
|
|
47090
47090
|
"data-disabled:cursor-not-allowed data-disabled:opacity-70",
|
|
47091
47091
|
"group-data-invalid:text-destructive"
|
|
47092
47092
|
]), Label$1 = (e) => {
|
|
47093
|
-
let r = (0, import_compiler_runtime$
|
|
47093
|
+
let r = (0, import_compiler_runtime$63.c)(8), c, d;
|
|
47094
47094
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
47095
47095
|
let f;
|
|
47096
47096
|
r[3] === c ? f = r[4] : (f = cn(labelVariants(), c), r[3] = c, r[4] = f);
|
|
@@ -47100,7 +47100,7 @@ ${c}
|
|
|
47100
47100
|
...d
|
|
47101
47101
|
}), r[5] = d, r[6] = f, r[7] = h) : h = r[7], h;
|
|
47102
47102
|
}, FieldError = (e) => {
|
|
47103
|
-
let r = (0, import_compiler_runtime$
|
|
47103
|
+
let r = (0, import_compiler_runtime$63.c)(8), c, d;
|
|
47104
47104
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
47105
47105
|
let f;
|
|
47106
47106
|
r[3] === c ? f = r[4] : (f = cn("text-sm font-medium text-destructive", c), r[3] = c, r[4] = f);
|
|
@@ -47125,7 +47125,7 @@ ${c}
|
|
|
47125
47125
|
variant: "default"
|
|
47126
47126
|
}
|
|
47127
47127
|
}), FieldGroup = (e) => {
|
|
47128
|
-
let r = (0, import_compiler_runtime$
|
|
47128
|
+
let r = (0, import_compiler_runtime$63.c)(12), c, d, f;
|
|
47129
47129
|
r[0] === e ? (c = r[1], d = r[2], f = r[3]) : ({ className: c, variant: f, ...d } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f);
|
|
47130
47130
|
let h;
|
|
47131
47131
|
r[4] === f ? h = r[5] : (h = (e2) => cn(fieldGroupVariants({
|
|
@@ -47138,18 +47138,18 @@ ${c}
|
|
|
47138
47138
|
className: _,
|
|
47139
47139
|
...d
|
|
47140
47140
|
}), r[9] = d, r[10] = _, r[11] = y) : y = r[11], y;
|
|
47141
|
-
}, import_compiler_runtime$
|
|
47142
|
-
let r = (0, import_compiler_runtime$
|
|
47141
|
+
}, import_compiler_runtime$62 = require_compiler_runtime(), DateSegment = (e) => {
|
|
47142
|
+
let r = (0, import_compiler_runtime$62.c)(8), c, d;
|
|
47143
47143
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
47144
47144
|
let f;
|
|
47145
|
-
r[3] === c ? f = r[4] : (f = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp$
|
|
47145
|
+
r[3] === c ? f = r[4] : (f = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp$19), r[3] = c, r[4] = f);
|
|
47146
47146
|
let h;
|
|
47147
47147
|
return r[5] !== d || r[6] !== f ? (h = (0, import_jsx_runtime.jsx)($40825cdb76e74f70$export$336ab7fa954c4b5f, {
|
|
47148
47148
|
className: f,
|
|
47149
47149
|
...d
|
|
47150
47150
|
}), r[5] = d, r[6] = f, r[7] = h) : h = r[7], h;
|
|
47151
47151
|
}, DateInput = (e) => {
|
|
47152
|
-
let r = (0, import_compiler_runtime$
|
|
47152
|
+
let r = (0, import_compiler_runtime$62.c)(12), c, d, f;
|
|
47153
47153
|
r[0] === e ? (c = r[1], d = r[2], f = r[3]) : ({ className: c, variant: f, ...d } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f);
|
|
47154
47154
|
let h;
|
|
47155
47155
|
r[4] === f ? h = r[5] : (h = (e2) => cn(fieldGroupVariants({
|
|
@@ -47161,22 +47161,22 @@ ${c}
|
|
|
47161
47161
|
return r[9] !== d || r[10] !== _ ? (y = (0, import_jsx_runtime.jsx)($40825cdb76e74f70$export$7edc06cf1783b30f, {
|
|
47162
47162
|
className: _,
|
|
47163
47163
|
...d,
|
|
47164
|
-
children: _temp2$
|
|
47164
|
+
children: _temp2$14
|
|
47165
47165
|
}), r[9] = d, r[10] = _, r[11] = y) : y = r[11], y;
|
|
47166
47166
|
};
|
|
47167
|
-
function _temp$
|
|
47167
|
+
function _temp$19(e) {
|
|
47168
47168
|
return cn("type-literal:px-0 inline rounded p-0.5 caret-transparent outline-solid outline-0", "data-placeholder:text-muted-foreground", "data-disabled:cursor-not-allowed data-disabled:opacity-50", "data-focused:bg-accent data-focused:text-accent-foreground focus:bg-accent focus:text-accent-foreground", "data-invalid:data-focused:bg-destructive data-invalid:data-focused:data-placeholder:text-destructive-foreground data-invalid:data-focused:text-destructive-foreground data-invalid:data-placeholder:text-destructive data-invalid:text-destructive", e);
|
|
47169
47169
|
}
|
|
47170
|
-
function _temp2$
|
|
47170
|
+
function _temp2$14(e) {
|
|
47171
47171
|
return (0, import_jsx_runtime.jsx)(DateSegment, {
|
|
47172
47172
|
segment: e
|
|
47173
47173
|
});
|
|
47174
47174
|
}
|
|
47175
|
-
var import_compiler_runtime$
|
|
47176
|
-
let r = (0, import_compiler_runtime$
|
|
47175
|
+
var import_compiler_runtime$61 = require_compiler_runtime(), DatePickerContent = (e) => {
|
|
47176
|
+
let r = (0, import_compiler_runtime$61.c)(14), c, d, f;
|
|
47177
47177
|
r[0] === e ? (c = r[1], d = r[2], f = r[3]) : ({ className: c, popoverClassName: d, ...f } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f);
|
|
47178
47178
|
let h;
|
|
47179
|
-
r[4] === d ? h = r[5] : (h = $64fa3d84918910a7$export$c245e6201fed2f75(d, _temp$
|
|
47179
|
+
r[4] === d ? h = r[5] : (h = $64fa3d84918910a7$export$c245e6201fed2f75(d, _temp$18), r[4] = d, r[5] = h);
|
|
47180
47180
|
let _;
|
|
47181
47181
|
r[6] === c ? _ = r[7] : (_ = cn("flex w-full flex-col space-y-4 outline-hidden sm:flex-row sm:space-x-4 sm:space-y-0", c), r[6] = c, r[7] = _);
|
|
47182
47182
|
let y;
|
|
@@ -47190,10 +47190,10 @@ ${c}
|
|
|
47190
47190
|
children: y
|
|
47191
47191
|
}), r[11] = h, r[12] = y, r[13] = S) : S = r[13], S;
|
|
47192
47192
|
}, DatePicker = (e) => {
|
|
47193
|
-
let r = (0, import_compiler_runtime$
|
|
47193
|
+
let r = (0, import_compiler_runtime$61.c)(26), c, d, f, h, _;
|
|
47194
47194
|
r[0] === e ? (c = r[1], d = r[2], f = r[3], h = r[4], _ = r[5]) : ({ label: h, description: d, errorMessage: f, className: c, ..._ } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = h, r[5] = _);
|
|
47195
47195
|
let [y, S] = (0, import_react.useState)(false), w;
|
|
47196
|
-
r[6] === c ? w = r[7] : (w = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp2$
|
|
47196
|
+
r[6] === c ? w = r[7] : (w = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp2$13), r[6] = c, r[7] = w);
|
|
47197
47197
|
let E;
|
|
47198
47198
|
r[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (e2) => {
|
|
47199
47199
|
S(e2);
|
|
@@ -47247,7 +47247,7 @@ ${c}
|
|
|
47247
47247
|
(0, import_jsx_runtime.jsxs)(CalendarGrid, {
|
|
47248
47248
|
children: [
|
|
47249
47249
|
(0, import_jsx_runtime.jsx)(CalendarGridHeader, {
|
|
47250
|
-
children: _temp3$
|
|
47250
|
+
children: _temp3$9
|
|
47251
47251
|
}),
|
|
47252
47252
|
(0, import_jsx_runtime.jsx)(CalendarGridBody, {
|
|
47253
47253
|
children: _temp4$4
|
|
@@ -47272,7 +47272,7 @@ ${c}
|
|
|
47272
47272
|
]
|
|
47273
47273
|
}), r[19] = y, r[20] = _, r[21] = w, r[22] = M, r[23] = Y7, r[24] = G, r[25] = Z7) : Z7 = r[25], Z7;
|
|
47274
47274
|
}, DateRangePicker = (e) => {
|
|
47275
|
-
let r = (0, import_compiler_runtime$
|
|
47275
|
+
let r = (0, import_compiler_runtime$61.c)(28), c, d, f, h, _;
|
|
47276
47276
|
r[0] === e ? (c = r[1], d = r[2], f = r[3], h = r[4], _ = r[5]) : ({ label: h, description: d, errorMessage: f, className: c, ..._ } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = h, r[5] = _);
|
|
47277
47277
|
let [y, S] = (0, import_react.useState)(false), w;
|
|
47278
47278
|
r[6] === c ? w = r[7] : (w = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp5$2), r[6] = c, r[7] = w);
|
|
@@ -47363,13 +47363,13 @@ ${c}
|
|
|
47363
47363
|
]
|
|
47364
47364
|
}), r[21] = y, r[22] = _, r[23] = w, r[24] = M, r[25] = q, r[26] = X7, r[27] = $7) : $7 = r[27], $7;
|
|
47365
47365
|
};
|
|
47366
|
-
function _temp$
|
|
47366
|
+
function _temp$18(e) {
|
|
47367
47367
|
return cn("w-auto p-3", e);
|
|
47368
47368
|
}
|
|
47369
|
-
function _temp2$
|
|
47369
|
+
function _temp2$13(e) {
|
|
47370
47370
|
return cn("group flex flex-col gap-2", e);
|
|
47371
47371
|
}
|
|
47372
|
-
function _temp3$
|
|
47372
|
+
function _temp3$9(e) {
|
|
47373
47373
|
return (0, import_jsx_runtime.jsx)(CalendarHeaderCell, {
|
|
47374
47374
|
children: e
|
|
47375
47375
|
});
|
|
@@ -47392,7 +47392,7 @@ ${c}
|
|
|
47392
47392
|
date: e
|
|
47393
47393
|
});
|
|
47394
47394
|
}
|
|
47395
|
-
var import_compiler_runtime$
|
|
47395
|
+
var import_compiler_runtime$60 = require_compiler_runtime(), DatePickerPlugin = class {
|
|
47396
47396
|
constructor() {
|
|
47397
47397
|
__publicField(this, "tagName", "marimo-date");
|
|
47398
47398
|
__publicField(this, "validator", object({
|
|
@@ -47414,7 +47414,7 @@ ${c}
|
|
|
47414
47414
|
});
|
|
47415
47415
|
}
|
|
47416
47416
|
}, DatePickerComponent = (e) => {
|
|
47417
|
-
let r = (0, import_compiler_runtime$
|
|
47417
|
+
let r = (0, import_compiler_runtime$60.c)(19), c;
|
|
47418
47418
|
r[0] === e ? c = r[1] : (c = (r2) => {
|
|
47419
47419
|
if (!r2) return;
|
|
47420
47420
|
let c2 = r2.toString();
|
|
@@ -47442,7 +47442,7 @@ ${c}
|
|
|
47442
47442
|
fullWidth: h,
|
|
47443
47443
|
children: w
|
|
47444
47444
|
}), r[15] = e.fullWidth, r[16] = e.label, r[17] = w, r[18] = E) : E = r[18], E;
|
|
47445
|
-
}, import_compiler_runtime$
|
|
47445
|
+
}, import_compiler_runtime$59 = require_compiler_runtime(), DateRangePickerPlugin = class {
|
|
47446
47446
|
constructor() {
|
|
47447
47447
|
__publicField(this, "tagName", "marimo-date-range");
|
|
47448
47448
|
__publicField(this, "validator", object({
|
|
@@ -47466,7 +47466,7 @@ ${c}
|
|
|
47466
47466
|
});
|
|
47467
47467
|
}
|
|
47468
47468
|
}, DateRangePickerComponent = (e) => {
|
|
47469
|
-
let r = (0, import_compiler_runtime$
|
|
47469
|
+
let r = (0, import_compiler_runtime$59.c)(24), c;
|
|
47470
47470
|
r[0] === e ? c = r[1] : (c = (r2) => {
|
|
47471
47471
|
if (!r2) return;
|
|
47472
47472
|
let { start: c2, end: d2 } = r2, f2 = [
|
|
@@ -47504,7 +47504,7 @@ ${c}
|
|
|
47504
47504
|
fullWidth: h,
|
|
47505
47505
|
children: O
|
|
47506
47506
|
}), r[20] = e.fullWidth, r[21] = e.label, r[22] = O, r[23] = M) : M = r[23], M;
|
|
47507
|
-
}, import_compiler_runtime$
|
|
47507
|
+
}, import_compiler_runtime$58 = require_compiler_runtime(), DateTimePickerPlugin = class {
|
|
47508
47508
|
constructor() {
|
|
47509
47509
|
__publicField(this, "tagName", "marimo-datetime");
|
|
47510
47510
|
__publicField(this, "validator", object({
|
|
@@ -47530,7 +47530,7 @@ ${c}
|
|
|
47530
47530
|
});
|
|
47531
47531
|
}
|
|
47532
47532
|
}, DateTimePickerComponent = (e) => {
|
|
47533
|
-
let r = (0, import_compiler_runtime$
|
|
47533
|
+
let r = (0, import_compiler_runtime$58.c)(20), c;
|
|
47534
47534
|
r[0] === e ? c = r[1] : (c = (r2) => {
|
|
47535
47535
|
if (!r2) return;
|
|
47536
47536
|
let c2 = r2.toString();
|
|
@@ -47558,7 +47558,7 @@ ${c}
|
|
|
47558
47558
|
fullWidth: v,
|
|
47559
47559
|
children: O
|
|
47560
47560
|
}), r[16] = e.fullWidth, r[17] = e.label, r[18] = O, r[19] = M) : M = r[19], M;
|
|
47561
|
-
}, import_compiler_runtime$
|
|
47561
|
+
}, import_compiler_runtime$57 = require_compiler_runtime(), DictPlugin = class {
|
|
47562
47562
|
constructor() {
|
|
47563
47563
|
__publicField(this, "tagName", "marimo-dict");
|
|
47564
47564
|
__publicField(this, "validator", object({
|
|
@@ -47575,7 +47575,7 @@ ${c}
|
|
|
47575
47575
|
});
|
|
47576
47576
|
}
|
|
47577
47577
|
}, Dict = (e) => {
|
|
47578
|
-
let r = (0, import_compiler_runtime$
|
|
47578
|
+
let r = (0, import_compiler_runtime$57.c)(4), { elementIds: c, setValue: d, children: f } = e, h, _;
|
|
47579
47579
|
return r[0] !== c || r[1] !== d ? (h = () => {
|
|
47580
47580
|
let e2 = (e3) => {
|
|
47581
47581
|
let r2 = e3.detail.element;
|
|
@@ -47597,9 +47597,9 @@ ${c}
|
|
|
47597
47597
|
c,
|
|
47598
47598
|
d
|
|
47599
47599
|
], r[0] = c, r[1] = d, r[2] = h, r[3] = _) : (h = r[2], _ = r[3]), (0, import_react.useEffect)(h, _), f;
|
|
47600
|
-
}, import_compiler_runtime$
|
|
47600
|
+
}, import_compiler_runtime$56 = require_compiler_runtime(), NONE_KEY = "__none__";
|
|
47601
47601
|
const SearchableSelect = (e) => {
|
|
47602
|
-
let r = (0, import_compiler_runtime$
|
|
47602
|
+
let r = (0, import_compiler_runtime$56.c)(25), { options: c, value: d, setValue: f, label: h, allowSelectNone: _, fullWidth: y } = e, S = (0, import_react.useId)(), [w, E] = (0, import_react.useState)(""), O;
|
|
47603
47603
|
bb0: {
|
|
47604
47604
|
if (!w) {
|
|
47605
47605
|
O = c;
|
|
@@ -47643,7 +47643,7 @@ ${c}
|
|
|
47643
47643
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
47644
47644
|
children: [
|
|
47645
47645
|
e2,
|
|
47646
|
-
M.map(_temp$
|
|
47646
|
+
M.map(_temp$17)
|
|
47647
47647
|
]
|
|
47648
47648
|
});
|
|
47649
47649
|
}, r[7] = _, r[8] = M, r[9] = Y7) : Y7 = r[9];
|
|
@@ -47655,7 +47655,7 @@ ${c}
|
|
|
47655
47655
|
r[12] === G ? Z7 = r[13] : (Z7 = G(), r[12] = G, r[13] = Z7);
|
|
47656
47656
|
let Q7;
|
|
47657
47657
|
r[14] !== z || r[15] !== w || r[16] !== q || r[17] !== X7 || r[18] !== Z7 ? (Q7 = (0, import_jsx_runtime.jsx)(Combobox, {
|
|
47658
|
-
displayValue: _temp2$
|
|
47658
|
+
displayValue: _temp2$12,
|
|
47659
47659
|
placeholder: "Select...",
|
|
47660
47660
|
multiple: false,
|
|
47661
47661
|
className: q,
|
|
@@ -47675,16 +47675,16 @@ ${c}
|
|
|
47675
47675
|
children: Q7
|
|
47676
47676
|
}), r[20] = y, r[21] = S, r[22] = h, r[23] = Q7, r[24] = $7) : $7 = r[24], $7;
|
|
47677
47677
|
};
|
|
47678
|
-
function _temp$
|
|
47678
|
+
function _temp$17(e) {
|
|
47679
47679
|
return (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
47680
47680
|
value: e,
|
|
47681
47681
|
children: e
|
|
47682
47682
|
}, e);
|
|
47683
47683
|
}
|
|
47684
|
-
function _temp2$
|
|
47684
|
+
function _temp2$12(e) {
|
|
47685
47685
|
return e === NONE_KEY ? "--" : e;
|
|
47686
47686
|
}
|
|
47687
|
-
var import_compiler_runtime$
|
|
47687
|
+
var import_compiler_runtime$55 = require_compiler_runtime(), DropdownPlugin = class {
|
|
47688
47688
|
constructor() {
|
|
47689
47689
|
__publicField(this, "tagName", "marimo-dropdown");
|
|
47690
47690
|
__publicField(this, "validator", object({
|
|
@@ -47714,7 +47714,7 @@ ${c}
|
|
|
47714
47714
|
});
|
|
47715
47715
|
}
|
|
47716
47716
|
}, EMPTY_VALUE = "--", Dropdown = (e) => {
|
|
47717
|
-
let r = (0, import_compiler_runtime$
|
|
47717
|
+
let r = (0, import_compiler_runtime$55.c)(24), { label: c, options: d, value: f, setValue: h, allowSelectNone: _, fullWidth: y } = e, S = (0, import_react.useId)(), w = _ ? EMPTY_VALUE : d[0], E = f.length === 0 ? w : f[0], O;
|
|
47718
47718
|
r[0] === h ? O = r[1] : (O = (e2) => {
|
|
47719
47719
|
let r2 = e2.target.value;
|
|
47720
47720
|
h(r2 === EMPTY_VALUE ? [] : [
|
|
@@ -47771,8 +47771,8 @@ ${c}
|
|
|
47771
47771
|
values: [],
|
|
47772
47772
|
too_many_values: false
|
|
47773
47773
|
}));
|
|
47774
|
-
var import_compiler_runtime$
|
|
47775
|
-
let c = (0, import_compiler_runtime$
|
|
47774
|
+
var import_compiler_runtime$54 = require_compiler_runtime(), RadioGroup = import_react.forwardRef((e, r) => {
|
|
47775
|
+
let c = (0, import_compiler_runtime$54.c)(9), d, f;
|
|
47776
47776
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
47777
47777
|
let h;
|
|
47778
47778
|
c[3] === d ? h = c[4] : (h = cn("grid gap-2", d), c[3] = d, c[4] = h);
|
|
@@ -47785,7 +47785,7 @@ ${c}
|
|
|
47785
47785
|
});
|
|
47786
47786
|
RadioGroup.displayName = Root2$1.displayName;
|
|
47787
47787
|
var RadioGroupItem = import_react.forwardRef((e, r) => {
|
|
47788
|
-
let c = (0, import_compiler_runtime$
|
|
47788
|
+
let c = (0, import_compiler_runtime$54.c)(10), d, f;
|
|
47789
47789
|
if (c[0] !== e) {
|
|
47790
47790
|
let { className: r2, children: h2, ..._2 } = e;
|
|
47791
47791
|
d = r2, f = _2, c[0] = e, c[1] = d, c[2] = f;
|
|
@@ -47817,8 +47817,8 @@ ${c}
|
|
|
47817
47817
|
function isZodTuple(e) {
|
|
47818
47818
|
return e instanceof zod_default.ZodTuple;
|
|
47819
47819
|
}
|
|
47820
|
-
var import_compiler_runtime$
|
|
47821
|
-
let c = (0, import_compiler_runtime$
|
|
47820
|
+
var import_compiler_runtime$53 = require_compiler_runtime(), Textarea = import_react.forwardRef((e, r) => {
|
|
47821
|
+
let c = (0, import_compiler_runtime$53.c)(16), d, f, h;
|
|
47822
47822
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: f, bottomAdornment: d, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
47823
47823
|
let _;
|
|
47824
47824
|
c[4] === f ? _ = c[5] : (_ = cn("shadow-xs-solid hover:shadow-sm-solid disabled:shadow-xs-solid focus-visible:shadow-md-solid", "flex w-full mb-1 rounded-sm border border-input bg-background px-3 py-2 text-sm font-code ring-offset-background placeholder:text-muted-foreground focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring focus-visible:border-accent disabled:cursor-not-allowed disabled:opacity-50 min-h-6", f), c[4] = f, c[5] = _);
|
|
@@ -47847,7 +47847,7 @@ ${c}
|
|
|
47847
47847
|
});
|
|
47848
47848
|
Textarea.displayName = "Textarea";
|
|
47849
47849
|
const DebouncedTextarea = import_react.forwardRef((e, r) => {
|
|
47850
|
-
let c = (0, import_compiler_runtime$
|
|
47850
|
+
let c = (0, import_compiler_runtime$53.c)(16), d, f, h;
|
|
47851
47851
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: d, onValueChange: f, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
47852
47852
|
let _;
|
|
47853
47853
|
c[4] !== f || c[5] !== h.delay || c[6] !== h.value ? (_ = {
|
|
@@ -47868,7 +47868,7 @@ ${c}
|
|
|
47868
47868
|
});
|
|
47869
47869
|
DebouncedTextarea.displayName = "DebouncedTextarea";
|
|
47870
47870
|
const OnBlurredTextarea = import_react.forwardRef((e, r) => {
|
|
47871
|
-
let c = (0, import_compiler_runtime$
|
|
47871
|
+
let c = (0, import_compiler_runtime$53.c)(23), d, f, h;
|
|
47872
47872
|
c[0] === e ? (d = c[1], f = c[2], h = c[3]) : ({ className: d, onValueChange: f, ...h } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = h);
|
|
47873
47873
|
let [_, v] = import_react.useState(h.value), y;
|
|
47874
47874
|
c[4] !== _ || c[5] !== f || c[6] !== h.value ? (y = {
|
|
@@ -47939,9 +47939,9 @@ ${c}
|
|
|
47939
47939
|
function doesArrayRequireMinLength(e) {
|
|
47940
47940
|
return !e.safeParse([]).success;
|
|
47941
47941
|
}
|
|
47942
|
-
var import_compiler_runtime$
|
|
47942
|
+
var import_compiler_runtime$52 = require_compiler_runtime(), DELIMINATOR = "\n";
|
|
47943
47943
|
const SwitchableMultiSelect = (e) => {
|
|
47944
|
-
let r = (0, import_compiler_runtime$
|
|
47944
|
+
let r = (0, import_compiler_runtime$52.c)(24), { value: c, options: d, onChange: f, className: h, placeholder: _, textAreaClassName: y, comboBoxClassName: S } = e, [w, E] = (0, import_react.useState)(false), O;
|
|
47945
47945
|
r[0] === c ? O = r[1] : (O = ensureStringArray(c), r[0] = c, r[1] = O);
|
|
47946
47946
|
let M = O, I;
|
|
47947
47947
|
r[2] !== S || r[3] !== f || r[4] !== d || r[5] !== _ || r[6] !== w || r[7] !== y || r[8] !== M ? (I = () => w ? (0, import_jsx_runtime.jsx)(TextAreaMultiSelect, {
|
|
@@ -47951,7 +47951,7 @@ ${c}
|
|
|
47951
47951
|
placeholder: _ ? `${_}: one per line` : "One value per line"
|
|
47952
47952
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
47953
47953
|
placeholder: _,
|
|
47954
|
-
displayValue: _temp$
|
|
47954
|
+
displayValue: _temp$16,
|
|
47955
47955
|
className: cn("w-full max-w-[400px]", S),
|
|
47956
47956
|
multiple: true,
|
|
47957
47957
|
value: M,
|
|
@@ -47959,7 +47959,7 @@ ${c}
|
|
|
47959
47959
|
keepPopoverOpenOnSelect: true,
|
|
47960
47960
|
chips: true,
|
|
47961
47961
|
chipsClassName: "flex-row flex-wrap min-w-[210px]",
|
|
47962
|
-
children: d.map(_temp2$
|
|
47962
|
+
children: d.map(_temp2$11)
|
|
47963
47963
|
}), r[2] = S, r[3] = f, r[4] = d, r[5] = _, r[6] = w, r[7] = y, r[8] = M, r[9] = I) : I = r[9];
|
|
47964
47964
|
let z = I, Y7;
|
|
47965
47965
|
r[10] === h ? Y7 = r[11] : (Y7 = cn("flex gap-1", h), r[10] = h, r[11] = Y7);
|
|
@@ -47990,7 +47990,7 @@ ${c}
|
|
|
47990
47990
|
]
|
|
47991
47991
|
}), r[20] = Y7, r[21] = G, r[22] = Q7, r[23] = $7) : $7 = r[23], $7;
|
|
47992
47992
|
}, TextAreaMultiSelect = (e) => {
|
|
47993
|
-
let r = (0, import_compiler_runtime$
|
|
47993
|
+
let r = (0, import_compiler_runtime$52.c)(11), { className: c, value: d, onChange: f, placeholder: h } = e, _, v;
|
|
47994
47994
|
if (r[0] !== d) {
|
|
47995
47995
|
let e2 = ensureStringArray(d);
|
|
47996
47996
|
_ = Textarea, v = e2.join(DELIMINATOR), r[0] = d, r[1] = _, r[2] = v;
|
|
@@ -48017,18 +48017,18 @@ ${c}
|
|
|
48017
48017
|
e
|
|
48018
48018
|
].filter((e2) => e2 != null || e2 !== "");
|
|
48019
48019
|
}
|
|
48020
|
-
function _temp$
|
|
48020
|
+
function _temp$16(e) {
|
|
48021
48021
|
return e;
|
|
48022
48022
|
}
|
|
48023
|
-
function _temp2$
|
|
48023
|
+
function _temp2$11(e) {
|
|
48024
48024
|
return (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
48025
48025
|
value: e,
|
|
48026
48026
|
children: e
|
|
48027
48027
|
}, e);
|
|
48028
48028
|
}
|
|
48029
|
-
var import_compiler_runtime$
|
|
48029
|
+
var import_compiler_runtime$51 = require_compiler_runtime();
|
|
48030
48030
|
const ZodForm = (e) => {
|
|
48031
|
-
let r = (0, import_compiler_runtime$
|
|
48031
|
+
let r = (0, import_compiler_runtime$51.c)(11), { schema: c, form: d, path: f, renderers: h, children: _ } = e, v = f === void 0 ? "" : f, y;
|
|
48032
48032
|
r[0] === h ? y = r[1] : (y = h === void 0 ? [] : h, r[0] = h, r[1] = y);
|
|
48033
48033
|
let S = y, w;
|
|
48034
48034
|
r[2] !== d || r[3] !== v || r[4] !== S || r[5] !== c ? (w = renderZodSchema(c, d, v, S), r[2] = d, r[3] = v, r[4] = S, r[5] = c, r[6] = w) : w = r[6];
|
|
@@ -48315,7 +48315,7 @@ ${c}
|
|
|
48315
48315
|
});
|
|
48316
48316
|
}
|
|
48317
48317
|
var FormArray = (e) => {
|
|
48318
|
-
let r = (0, import_compiler_runtime$
|
|
48318
|
+
let r = (0, import_compiler_runtime$51.c)(39), { schema: c, form: d, path: f, minLength: h, renderers: _ } = e, v;
|
|
48319
48319
|
r[0] === c.description ? v = r[1] : (v = FieldOptions.parse(c.description || ""), r[0] = c.description, r[1] = v);
|
|
48320
48320
|
let { label: S, description: w } = v, E = d.control, O;
|
|
48321
48321
|
r[2] !== E || r[3] !== f ? (O = {
|
|
@@ -48335,7 +48335,7 @@ ${c}
|
|
|
48335
48335
|
let e2;
|
|
48336
48336
|
r[17] !== q || r[18] !== d || r[19] !== f || r[20] !== z || r[21] !== _ || r[22] !== c ? (e2 = (e3, r2) => (0, import_jsx_runtime.jsxs)("div", {
|
|
48337
48337
|
className: "flex flex-row pl-2 ml-2 border-l-2 border-disabled hover-actions-parent relative pr-5 pt-1 items-center w-fit",
|
|
48338
|
-
onKeyDown: Events.onEnter(_temp$
|
|
48338
|
+
onKeyDown: Events.onEnter(_temp$15),
|
|
48339
48339
|
children: [
|
|
48340
48340
|
renderZodSchema(c, d, `${f}[${r2}]`, _),
|
|
48341
48341
|
q && (0, import_jsx_runtime.jsx)(Trash2, {
|
|
@@ -48392,7 +48392,7 @@ ${c}
|
|
|
48392
48392
|
]
|
|
48393
48393
|
}), r[33] = X7, r[34] = Z7, r[35] = Q7, r[36] = $7, r[37] = n9, r[38] = r9) : r9 = r[38], r9;
|
|
48394
48394
|
}, StringFormField = (e) => {
|
|
48395
|
-
let r = (0, import_compiler_runtime$
|
|
48395
|
+
let r = (0, import_compiler_runtime$51.c)(21), { schema: c, form: d, path: f } = e, h;
|
|
48396
48396
|
r[0] === c.description ? h = r[1] : (h = FieldOptions.parse(c.description), r[0] = c.description, r[1] = h);
|
|
48397
48397
|
let { label: _, description: v, placeholder: y, disabled: S, inputType: w } = h;
|
|
48398
48398
|
if (w === "textarea") {
|
|
@@ -48461,7 +48461,7 @@ ${c}
|
|
|
48461
48461
|
render: E
|
|
48462
48462
|
}), r[17] = d.control, r[18] = f, r[19] = E, r[20] = O) : O = r[20], O;
|
|
48463
48463
|
}, MultiStringFormField = (e) => {
|
|
48464
|
-
let r = (0, import_compiler_runtime$
|
|
48464
|
+
let r = (0, import_compiler_runtime$51.c)(10), { schema: c, form: d, path: f } = e, h;
|
|
48465
48465
|
r[0] === c.description ? h = r[1] : (h = FieldOptions.parse(c.description), r[0] = c.description, r[1] = h);
|
|
48466
48466
|
let { label: _, description: v, placeholder: y } = h, S;
|
|
48467
48467
|
r[2] !== v || r[3] !== _ || r[4] !== y ? (S = (e2) => {
|
|
@@ -48491,7 +48491,7 @@ ${c}
|
|
|
48491
48491
|
render: S
|
|
48492
48492
|
}), r[6] = d.control, r[7] = f, r[8] = S, r[9] = w) : w = r[9], w;
|
|
48493
48493
|
}, SelectFormField = (e) => {
|
|
48494
|
-
let r = (0, import_compiler_runtime$
|
|
48494
|
+
let r = (0, import_compiler_runtime$51.c)(22), { schema: c, form: d, path: f, options: h, textTransform: _ } = e, v;
|
|
48495
48495
|
r[0] === c.description ? v = r[1] : (v = FieldOptions.parse(c.description), r[0] = c.description, r[1] = v);
|
|
48496
48496
|
let { label: y, description: S, disabled: w, special: E } = v;
|
|
48497
48497
|
if (E === "radio_group") {
|
|
@@ -48593,7 +48593,7 @@ ${c}
|
|
|
48593
48593
|
render: O
|
|
48594
48594
|
}), r[17] = w, r[18] = d.control, r[19] = f, r[20] = O, r[21] = M) : M = r[21], M;
|
|
48595
48595
|
}, MultiSelectFormField = (e) => {
|
|
48596
|
-
let r = (0, import_compiler_runtime$
|
|
48596
|
+
let r = (0, import_compiler_runtime$51.c)(15), { schema: c, form: d, path: f, options: h, itemLabel: _, showSwitchable: v } = e, y;
|
|
48597
48597
|
r[0] === c.description ? y = r[1] : (y = FieldOptions.parse(c.description), r[0] = c.description, r[1] = y);
|
|
48598
48598
|
let { label: S, description: w, placeholder: E } = y, O;
|
|
48599
48599
|
r[2] !== _ || r[3] !== E ? (O = E ?? (_ ? `Select ${_ == null ? void 0 : _.toLowerCase()}` : void 0), r[2] = _, r[3] = E, r[4] = O) : O = r[4];
|
|
@@ -48618,13 +48618,13 @@ ${c}
|
|
|
48618
48618
|
}) : (0, import_jsx_runtime.jsx)(Combobox, {
|
|
48619
48619
|
className: "min-w-[180px]",
|
|
48620
48620
|
placeholder: M,
|
|
48621
|
-
displayValue: _temp2$
|
|
48621
|
+
displayValue: _temp2$10,
|
|
48622
48622
|
multiple: true,
|
|
48623
48623
|
chips: true,
|
|
48624
48624
|
keepPopoverOpenOnSelect: true,
|
|
48625
48625
|
value: c2,
|
|
48626
48626
|
onValueChange: r2.onChange,
|
|
48627
|
-
children: h.map(_temp3$
|
|
48627
|
+
children: h.map(_temp3$8)
|
|
48628
48628
|
})
|
|
48629
48629
|
}),
|
|
48630
48630
|
(0, import_jsx_runtime.jsx)(FormMessage, {})
|
|
@@ -48641,21 +48641,21 @@ ${c}
|
|
|
48641
48641
|
function joinPath(...e) {
|
|
48642
48642
|
return e.filter((e2) => e2 !== "").join(".");
|
|
48643
48643
|
}
|
|
48644
|
-
function _temp$
|
|
48644
|
+
function _temp$15(e) {
|
|
48645
48645
|
return e.preventDefault();
|
|
48646
48646
|
}
|
|
48647
|
-
function _temp2$
|
|
48647
|
+
function _temp2$10(e) {
|
|
48648
48648
|
return Strings.startCase(e);
|
|
48649
48649
|
}
|
|
48650
|
-
function _temp3$
|
|
48650
|
+
function _temp3$8(e) {
|
|
48651
48651
|
return (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
48652
48652
|
value: e,
|
|
48653
48653
|
children: e
|
|
48654
48654
|
}, e);
|
|
48655
48655
|
}
|
|
48656
|
-
var import_compiler_runtime$
|
|
48656
|
+
var import_compiler_runtime$50 = require_compiler_runtime();
|
|
48657
48657
|
const DataTypeIcon = (e) => {
|
|
48658
|
-
let r = (0, import_compiler_runtime$
|
|
48658
|
+
let r = (0, import_compiler_runtime$50.c)(4), { type: c } = e, d;
|
|
48659
48659
|
r[0] === c ? d = r[1] : (d = () => c.startsWith("int") || c.startsWith("float") || c.startsWith("uint") || c.startsWith("number") || c.startsWith("complex") ? (0, import_jsx_runtime.jsx)(Binary, {
|
|
48660
48660
|
size: 14
|
|
48661
48661
|
}) : c.startsWith("object") || c.startsWith("string") ? (0, import_jsx_runtime.jsx)(CaseSensitive, {
|
|
@@ -48673,7 +48673,7 @@ ${c}
|
|
|
48673
48673
|
children: f()
|
|
48674
48674
|
}), r[2] = f, r[3] = h), h;
|
|
48675
48675
|
};
|
|
48676
|
-
var import_compiler_runtime$
|
|
48676
|
+
var import_compiler_runtime$49 = require_compiler_runtime();
|
|
48677
48677
|
const columnIdRenderer = () => ({
|
|
48678
48678
|
isMatch: (e) => {
|
|
48679
48679
|
let { special: r } = FieldOptions.parse(e.description || "");
|
|
@@ -48775,7 +48775,7 @@ ${c}
|
|
|
48775
48775
|
}
|
|
48776
48776
|
});
|
|
48777
48777
|
var MultiColumnFormField = (e) => {
|
|
48778
|
-
let r = (0, import_compiler_runtime$
|
|
48778
|
+
let r = (0, import_compiler_runtime$49.c)(11), { schema: c, form: d, path: f, itemLabel: h } = e, _ = import_react.use(ColumnInfoContext), v;
|
|
48779
48779
|
r[0] === c.description ? v = r[1] : (v = FieldOptions.parse(c.description), r[0] = c.description, r[1] = v);
|
|
48780
48780
|
let { description: y } = v, S = h ? `Select ${h.toLowerCase()}` : void 0, w;
|
|
48781
48781
|
r[2] !== _ || r[3] !== y || r[4] !== h || r[5] !== S ? (w = (e2) => {
|
|
@@ -48802,7 +48802,7 @@ ${c}
|
|
|
48802
48802
|
},
|
|
48803
48803
|
children: [
|
|
48804
48804
|
..._.entries()
|
|
48805
|
-
].map(_temp$
|
|
48805
|
+
].map(_temp$14)
|
|
48806
48806
|
})
|
|
48807
48807
|
}),
|
|
48808
48808
|
(0, import_jsx_runtime.jsx)(FormMessage, {})
|
|
@@ -48940,7 +48940,7 @@ ${c}
|
|
|
48940
48940
|
}
|
|
48941
48941
|
});
|
|
48942
48942
|
var StyledFormMessage = (e) => {
|
|
48943
|
-
let r = (0, import_compiler_runtime$
|
|
48943
|
+
let r = (0, import_compiler_runtime$49.c)(4), { className: c } = e, d;
|
|
48944
48944
|
r[0] === c ? d = r[1] : (d = cn("text-destructive text-xs w-[16px]", c), r[0] = c, r[1] = d);
|
|
48945
48945
|
let f;
|
|
48946
48946
|
return r[2] === d ? f = r[3] : (f = (0, import_jsx_runtime.jsx)(FormMessageTooltip, {
|
|
@@ -48963,9 +48963,9 @@ ${c}
|
|
|
48963
48963
|
});
|
|
48964
48964
|
var ColumnFilterForm = (e) => {
|
|
48965
48965
|
var _a3;
|
|
48966
|
-
let r = (0, import_compiler_runtime$
|
|
48966
|
+
let r = (0, import_compiler_runtime$49.c)(25), { path: c, form: d, schema: f } = e, h;
|
|
48967
48967
|
r[0] === f.description ? h = r[1] : (h = FieldOptions.parse(f.description), r[0] = f.description, r[1] = h);
|
|
48968
|
-
let { description: y } = h, S = import_react.use(ColumnInfoContext), w = (_a3 = Objects.entries(f.shape).find(_temp2$
|
|
48968
|
+
let { description: y } = h, S = import_react.use(ColumnInfoContext), w = (_a3 = Objects.entries(f.shape).find(_temp2$9)) == null ? void 0 : _a3[1], E;
|
|
48969
48969
|
r[2] === c ? E = r[3] : (E = {
|
|
48970
48970
|
name: c
|
|
48971
48971
|
}, r[2] = c, r[3] = E);
|
|
@@ -49027,7 +49027,7 @@ ${c}
|
|
|
49027
49027
|
}),
|
|
49028
49028
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
49029
49029
|
children: (0, import_jsx_runtime.jsx)(SelectGroup, {
|
|
49030
|
-
children: f2.map(_temp3$
|
|
49030
|
+
children: f2.map(_temp3$7)
|
|
49031
49031
|
})
|
|
49032
49032
|
})
|
|
49033
49033
|
]
|
|
@@ -49074,7 +49074,7 @@ ${c}
|
|
|
49074
49074
|
multiColumnValuesRenderer(),
|
|
49075
49075
|
filterFormRenderer()
|
|
49076
49076
|
];
|
|
49077
|
-
function _temp$
|
|
49077
|
+
function _temp$14(e) {
|
|
49078
49078
|
let [r, c] = e;
|
|
49079
49079
|
return (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
49080
49080
|
value: r,
|
|
@@ -49100,11 +49100,11 @@ ${c}
|
|
|
49100
49100
|
})
|
|
49101
49101
|
}, r);
|
|
49102
49102
|
}
|
|
49103
|
-
function _temp2$
|
|
49103
|
+
function _temp2$9(e) {
|
|
49104
49104
|
let [r] = e;
|
|
49105
49105
|
return r === "column_id";
|
|
49106
49106
|
}
|
|
49107
|
-
function _temp3$
|
|
49107
|
+
function _temp3$7(e) {
|
|
49108
49108
|
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
49109
49109
|
value: e,
|
|
49110
49110
|
children: Strings.startCase(e)
|
|
@@ -49118,7 +49118,7 @@ ${c}
|
|
|
49118
49118
|
for (let [e2, [r2]] of d) f.set(e2, r2);
|
|
49119
49119
|
return f;
|
|
49120
49120
|
}
|
|
49121
|
-
var import_compiler_runtime$
|
|
49121
|
+
var import_compiler_runtime$48 = require_compiler_runtime();
|
|
49122
49122
|
const TransformPanel = ({ initialValue: e, columns: r, onChange: c, onInvalidChange: d, getColumnValues: f, columnTypesPerStep: h, lazy: _, ref: v }) => {
|
|
49123
49123
|
var _a3;
|
|
49124
49124
|
let y = useForm({
|
|
@@ -49281,7 +49281,7 @@ ${c}
|
|
|
49281
49281
|
})
|
|
49282
49282
|
});
|
|
49283
49283
|
}, Sidebar = (e) => {
|
|
49284
|
-
let r = (0, import_compiler_runtime$
|
|
49284
|
+
let r = (0, import_compiler_runtime$48.c)(17), { items: c, selected: d, onAdd: f, onSelect: h, onDelete: _ } = e, y;
|
|
49285
49285
|
if (r[0] !== c || r[1] !== _ || r[2] !== h || r[3] !== d) {
|
|
49286
49286
|
let e2;
|
|
49287
49287
|
r[5] !== _ || r[6] !== h || r[7] !== d ? (e2 = (e3, r2) => (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -49341,7 +49341,7 @@ ${c}
|
|
|
49341
49341
|
}), r[14] = S, r[15] = E, r[16] = O) : O = r[16], O;
|
|
49342
49342
|
};
|
|
49343
49343
|
var AddTransformDropdown = (e) => {
|
|
49344
|
-
let r = (0, import_compiler_runtime$
|
|
49344
|
+
let r = (0, import_compiler_runtime$48.c)(12), { onAdd: c, children: d } = e, f;
|
|
49345
49345
|
r[0] === d ? f = r[1] : (f = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
49346
49346
|
asChild: true,
|
|
49347
49347
|
children: d
|
|
@@ -49369,7 +49369,7 @@ ${c}
|
|
|
49369
49369
|
}), r[4] = c, r[5] = v);
|
|
49370
49370
|
let y;
|
|
49371
49371
|
r[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
|
|
49372
|
-
onSelect: _temp3$
|
|
49372
|
+
onSelect: _temp3$6,
|
|
49373
49373
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
49374
49374
|
className: "underline text-primary text-xs cursor-pointer",
|
|
49375
49375
|
children: "Request a transform"
|
|
@@ -49412,10 +49412,10 @@ ${c}
|
|
|
49412
49412
|
unique: CopySlash,
|
|
49413
49413
|
pivot: Table2
|
|
49414
49414
|
};
|
|
49415
|
-
function _temp3$
|
|
49415
|
+
function _temp3$6(e) {
|
|
49416
49416
|
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank");
|
|
49417
49417
|
}
|
|
49418
|
-
var import_compiler_runtime$
|
|
49418
|
+
var import_compiler_runtime$47 = require_compiler_runtime();
|
|
49419
49419
|
const DataFramePlugin = createPlugin("marimo-dataframe").withData(object({
|
|
49420
49420
|
label: string().nullish(),
|
|
49421
49421
|
pageSize: number().default(5),
|
|
@@ -49478,7 +49478,7 @@ ${c}
|
|
|
49478
49478
|
transforms: []
|
|
49479
49479
|
};
|
|
49480
49480
|
const DataFrameComponent = (0, import_react.memo)((e) => {
|
|
49481
|
-
let r = (0, import_compiler_runtime$
|
|
49481
|
+
let r = (0, import_compiler_runtime$47.c)(69), { columns: c, pageSize: d, showDownload: f, lazy: h, value: _, setValue: v, get_dataframe: y, get_column_values: S, search: w, download_as: E, host: O } = e, M;
|
|
49482
49482
|
r[0] === y ? M = r[1] : (M = () => y({}), r[0] = y, r[1] = M);
|
|
49483
49483
|
let I = _ == null ? void 0 : _.transforms, z;
|
|
49484
49484
|
r[2] === I ? z = r[3] : (z = [
|
|
@@ -49750,6 +49750,7 @@ ${c}
|
|
|
49750
49750
|
parentDirectories: y
|
|
49751
49751
|
};
|
|
49752
49752
|
}
|
|
49753
|
+
var import_compiler_runtime$46 = require_compiler_runtime();
|
|
49753
49754
|
const FileBrowserPlugin = createPlugin("marimo-file-browser").withData(object({
|
|
49754
49755
|
initialPath: string(),
|
|
49755
49756
|
filetypes: array(string()),
|
|
@@ -49778,16 +49779,63 @@ ${c}
|
|
|
49778
49779
|
setValue: e.setValue
|
|
49779
49780
|
}));
|
|
49780
49781
|
var PARENT_DIRECTORY = "..";
|
|
49781
|
-
|
|
49782
|
+
function CheckboxOrIcon(e) {
|
|
49783
|
+
let r = (0, import_compiler_runtime$46.c)(19), { isSelected: c, canSelect: d, Icon: f, onSelect: h } = e;
|
|
49784
|
+
if (d) {
|
|
49785
|
+
let e2;
|
|
49786
|
+
r[0] === h ? e2 = r[1] : (e2 = (e3) => {
|
|
49787
|
+
h(), e3.stopPropagation();
|
|
49788
|
+
}, r[0] = h, r[1] = e2);
|
|
49789
|
+
let d2 = !c, _2;
|
|
49790
|
+
r[2] === d2 ? _2 = r[3] : (_2 = cn({
|
|
49791
|
+
"hidden group-hover:flex": d2
|
|
49792
|
+
}), r[2] = d2, r[3] = _2);
|
|
49793
|
+
let y;
|
|
49794
|
+
r[4] !== c || r[5] !== e2 || r[6] !== _2 ? (y = (0, import_jsx_runtime.jsx)(Checkbox, {
|
|
49795
|
+
checked: c,
|
|
49796
|
+
onClick: e2,
|
|
49797
|
+
className: _2
|
|
49798
|
+
}), r[4] = c, r[5] = e2, r[6] = _2, r[7] = y) : y = r[7];
|
|
49799
|
+
let S = !c, w;
|
|
49800
|
+
r[8] !== c || r[9] !== S ? (w = cn("mr-2", {
|
|
49801
|
+
hidden: c,
|
|
49802
|
+
"group-hover:hidden": S
|
|
49803
|
+
}), r[8] = c, r[9] = S, r[10] = w) : w = r[10];
|
|
49804
|
+
let E;
|
|
49805
|
+
r[11] !== f || r[12] !== w ? (E = (0, import_jsx_runtime.jsx)(f, {
|
|
49806
|
+
size: 16,
|
|
49807
|
+
className: w
|
|
49808
|
+
}), r[11] = f, r[12] = w, r[13] = E) : E = r[13];
|
|
49809
|
+
let O;
|
|
49810
|
+
return r[14] !== y || r[15] !== E ? (O = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
49811
|
+
children: [
|
|
49812
|
+
y,
|
|
49813
|
+
E
|
|
49814
|
+
]
|
|
49815
|
+
}), r[14] = y, r[15] = E, r[16] = O) : O = r[16], O;
|
|
49816
|
+
}
|
|
49817
|
+
let _;
|
|
49818
|
+
return r[17] === f ? _ = r[18] : (_ = (0, import_jsx_runtime.jsx)(f, {
|
|
49819
|
+
size: 16,
|
|
49820
|
+
className: "mr-2"
|
|
49821
|
+
}), r[17] = f, r[18] = _), _;
|
|
49822
|
+
}
|
|
49823
|
+
const FileBrowser = (e) => {
|
|
49782
49824
|
var _a3;
|
|
49783
|
-
let
|
|
49784
|
-
|
|
49785
|
-
|
|
49786
|
-
|
|
49787
|
-
|
|
49788
|
-
]);
|
|
49789
|
-
|
|
49790
|
-
|
|
49825
|
+
let r = (0, import_compiler_runtime$46.c)(122), { value: c, setValue: d, initialPath: f, selectionMode: h, multiple: _, label: y, restrictNavigation: S, list_directory: w, host: E } = e, [O, M] = useInternalStateWithSync(f), [I, z] = (0, import_react.useState)(false), [G, q] = (0, import_react.useState)(false), X7;
|
|
49826
|
+
r[0] === E ? X7 = r[1] : (X7 = (_a3 = E.closest(`[${RANDOM_ID_ATTR}]`)) == null ? void 0 : _a3.getAttribute(RANDOM_ID_ATTR), r[0] = E, r[1] = X7);
|
|
49827
|
+
let Z7 = X7, Q7;
|
|
49828
|
+
r[2] !== w || r[3] !== O ? (Q7 = () => w({
|
|
49829
|
+
path: O
|
|
49830
|
+
}), r[2] = w, r[3] = O, r[4] = Q7) : Q7 = r[4];
|
|
49831
|
+
let $7;
|
|
49832
|
+
r[5] !== O || r[6] !== Z7 ? ($7 = [
|
|
49833
|
+
O,
|
|
49834
|
+
Z7
|
|
49835
|
+
], r[5] = O, r[6] = Z7, r[7] = $7) : $7 = r[7];
|
|
49836
|
+
let { data: t9, error: n9, isPending: r9 } = useAsyncData(Q7, $7), i9, a9;
|
|
49837
|
+
r[8] === r9 ? (i9 = r[9], a9 = r[10]) : (i9 = () => {
|
|
49838
|
+
if (!r9) {
|
|
49791
49839
|
q(false);
|
|
49792
49840
|
return;
|
|
49793
49841
|
}
|
|
@@ -49797,267 +49845,303 @@ ${c}
|
|
|
49797
49845
|
return () => {
|
|
49798
49846
|
window.clearTimeout(e2);
|
|
49799
49847
|
};
|
|
49800
|
-
}, [
|
|
49801
|
-
|
|
49802
|
-
]
|
|
49803
|
-
|
|
49804
|
-
|
|
49805
|
-
|
|
49806
|
-
|
|
49807
|
-
|
|
49808
|
-
|
|
49809
|
-
|
|
49810
|
-
|
|
49811
|
-
|
|
49812
|
-
|
|
49813
|
-
|
|
49814
|
-
|
|
49815
|
-
|
|
49816
|
-
|
|
49848
|
+
}, a9 = [
|
|
49849
|
+
r9
|
|
49850
|
+
], r[8] = r9, r[9] = i9, r[10] = a9), (0, import_react.useEffect)(i9, a9);
|
|
49851
|
+
let o9, s9, c9, l9, u9, d9, f9, p9, m9;
|
|
49852
|
+
if (r[11] !== t9 || r[12] !== n9 || r[13] !== f || r[14] !== I || r[15] !== _ || r[16] !== O || r[17] !== S || r[18] !== h || r[19] !== M || r[20] !== d || r[21] !== c) {
|
|
49853
|
+
m9 = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
49854
|
+
bb0: {
|
|
49855
|
+
u9 = (t9 == null ? void 0 : t9.files) ?? [];
|
|
49856
|
+
let e2;
|
|
49857
|
+
r[31] === c ? e2 = r[32] : (e2 = new Set(c.map(_temp$13)), r[31] = c, r[32] = e2);
|
|
49858
|
+
let y2 = e2, w2 = h === "directory" || h === "all", E2 = h === "file" || h === "all", Y7;
|
|
49859
|
+
r[33] !== w2 || r[34] !== E2 ? (Y7 = (e3) => w2 && e3.is_directory || E2 && !e3.is_directory, r[33] = w2, r[34] = E2, r[35] = Y7) : Y7 = r[35];
|
|
49860
|
+
let G2 = u9.filter(Y7);
|
|
49861
|
+
if (o9 = G2.length > 0 && G2.every((e3) => y2.has(e3.path)), !t9 && n9) {
|
|
49862
|
+
let e3;
|
|
49863
|
+
r[36] === n9.message ? e3 = r[37] : (e3 = (0, import_jsx_runtime.jsx)(Banner, {
|
|
49864
|
+
kind: "danger",
|
|
49865
|
+
children: n9.message
|
|
49866
|
+
}), r[36] = n9.message, r[37] = e3), m9 = e3;
|
|
49867
|
+
break bb0;
|
|
49817
49868
|
}
|
|
49818
|
-
|
|
49819
|
-
|
|
49820
|
-
|
|
49821
|
-
|
|
49822
|
-
|
|
49823
|
-
|
|
49824
|
-
|
|
49825
|
-
|
|
49826
|
-
|
|
49827
|
-
|
|
49828
|
-
|
|
49829
|
-
|
|
49830
|
-
|
|
49831
|
-
|
|
49832
|
-
|
|
49833
|
-
|
|
49834
|
-
|
|
49835
|
-
|
|
49836
|
-
|
|
49837
|
-
|
|
49838
|
-
|
|
49839
|
-
|
|
49840
|
-
|
|
49841
|
-
|
|
49842
|
-
|
|
49843
|
-
|
|
49844
|
-
|
|
49845
|
-
|
|
49846
|
-
|
|
49847
|
-
|
|
49848
|
-
|
|
49849
|
-
|
|
49850
|
-
|
|
49851
|
-
|
|
49852
|
-
|
|
49853
|
-
|
|
49854
|
-
|
|
49855
|
-
|
|
49856
|
-
|
|
49857
|
-
|
|
49858
|
-
|
|
49859
|
-
|
|
49860
|
-
|
|
49861
|
-
|
|
49862
|
-
|
|
49863
|
-
|
|
49864
|
-
|
|
49865
|
-
|
|
49866
|
-
|
|
49867
|
-
|
|
49868
|
-
|
|
49869
|
-
|
|
49870
|
-
|
|
49871
|
-
|
|
49872
|
-
|
|
49873
|
-
|
|
49874
|
-
|
|
49875
|
-
|
|
49876
|
-
|
|
49877
|
-
|
|
49869
|
+
let q2;
|
|
49870
|
+
r[38] === f ? q2 = r[39] : (q2 = PathBuilder.guessDeliminator(f), r[38] = f, r[39] = q2), s9 = q2.deliminator;
|
|
49871
|
+
let X72;
|
|
49872
|
+
r[40] === c ? X72 = r[41] : (X72 = c.map(_temp2$8), r[40] = c, r[41] = X72), f9 = X72;
|
|
49873
|
+
let Z72;
|
|
49874
|
+
r[42] !== s9 || r[43] !== f || r[44] !== I || r[45] !== O || r[46] !== S || r[47] !== M ? (Z72 = function(e3) {
|
|
49875
|
+
if (I) return;
|
|
49876
|
+
if (z(true), e3 === PARENT_DIRECTORY) {
|
|
49877
|
+
if (O === s9) {
|
|
49878
|
+
z(false);
|
|
49879
|
+
return;
|
|
49880
|
+
}
|
|
49881
|
+
e3 = Paths.dirname(O), e3 === "" && (e3 = s9);
|
|
49882
|
+
}
|
|
49883
|
+
let r2 = e3.length < f.length;
|
|
49884
|
+
if (S && r2) {
|
|
49885
|
+
toast({
|
|
49886
|
+
title: "Access denied",
|
|
49887
|
+
description: "Access to directories outside initial path is restricted.",
|
|
49888
|
+
variant: "danger"
|
|
49889
|
+
}), z(false);
|
|
49890
|
+
return;
|
|
49891
|
+
}
|
|
49892
|
+
M(e3), z(false);
|
|
49893
|
+
}, r[42] = s9, r[43] = f, r[44] = I, r[45] = O, r[46] = S, r[47] = M, r[48] = Z72) : Z72 = r[48], p9 = Z72;
|
|
49894
|
+
let Q72;
|
|
49895
|
+
r[49] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Q72 = function(e3) {
|
|
49896
|
+
let { path: r2, name: c2, isDirectory: d2 } = e3;
|
|
49897
|
+
return {
|
|
49898
|
+
id: r2,
|
|
49899
|
+
name: c2,
|
|
49900
|
+
path: r2,
|
|
49901
|
+
is_directory: d2
|
|
49902
|
+
};
|
|
49903
|
+
}, r[49] = Q72) : Q72 = r[49];
|
|
49904
|
+
let $72 = Q72, r92;
|
|
49905
|
+
r[50] !== _ || r[51] !== y2 || r[52] !== d || r[53] !== c ? (r92 = function(e3) {
|
|
49906
|
+
let { path: r2, name: f2, isDirectory: h2 } = e3, v = $72({
|
|
49907
|
+
path: r2,
|
|
49908
|
+
name: f2,
|
|
49909
|
+
isDirectory: h2
|
|
49910
|
+
});
|
|
49911
|
+
y2.has(r2) ? d(c.filter((e4) => e4.path !== r2)) : d(_ ? [
|
|
49912
|
+
...c,
|
|
49913
|
+
v
|
|
49914
|
+
] : [
|
|
49915
|
+
v
|
|
49916
|
+
]);
|
|
49917
|
+
}, r[50] = _, r[51] = y2, r[52] = d, r[53] = c, r[54] = r92) : r92 = r[54];
|
|
49918
|
+
let i92 = r92, a92;
|
|
49919
|
+
r[55] !== O || r[56] !== d || r[57] !== c ? (a92 = function() {
|
|
49920
|
+
d(c.filter((e3) => Paths.dirname(e3.path) !== O));
|
|
49921
|
+
}, r[55] = O, r[56] = d, r[57] = c, r[58] = a92) : a92 = r[58], c9 = a92, d9 = function() {
|
|
49922
|
+
let e3 = [];
|
|
49923
|
+
for (let r2 of u9) {
|
|
49924
|
+
if (!w2 && r2.is_directory || y2.has(r2.path)) continue;
|
|
49925
|
+
let c2 = $72({
|
|
49926
|
+
path: r2.path,
|
|
49927
|
+
name: r2.name,
|
|
49928
|
+
isDirectory: r2.is_directory
|
|
49929
|
+
});
|
|
49930
|
+
e3.push(c2);
|
|
49931
|
+
}
|
|
49932
|
+
d([
|
|
49933
|
+
...c,
|
|
49934
|
+
...e3
|
|
49935
|
+
]);
|
|
49936
|
+
}, l9 = [];
|
|
49937
|
+
let h92;
|
|
49938
|
+
r[59] === p9 ? h92 = r[60] : (h92 = () => p9(PARENT_DIRECTORY), r[59] = p9, r[60] = h92);
|
|
49939
|
+
let g92, _92;
|
|
49940
|
+
r[61] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (g92 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
49878
49941
|
className: "w-[50px] pl-4",
|
|
49879
49942
|
children: (0, import_jsx_runtime.jsx)(CornerLeftUp, {
|
|
49880
49943
|
size: 16
|
|
49881
49944
|
})
|
|
49882
|
-
}),
|
|
49883
|
-
(0, import_jsx_runtime.jsx)(TableCell, {
|
|
49945
|
+
}), _92 = (0, import_jsx_runtime.jsx)(TableCell, {
|
|
49884
49946
|
children: PARENT_DIRECTORY
|
|
49885
|
-
})
|
|
49886
|
-
|
|
49887
|
-
|
|
49888
|
-
|
|
49889
|
-
|
|
49890
|
-
|
|
49891
|
-
|
|
49892
|
-
|
|
49893
|
-
|
|
49894
|
-
|
|
49895
|
-
|
|
49896
|
-
|
|
49897
|
-
|
|
49898
|
-
|
|
49899
|
-
|
|
49900
|
-
|
|
49901
|
-
|
|
49902
|
-
|
|
49903
|
-
|
|
49904
|
-
|
|
49905
|
-
|
|
49906
|
-
|
|
49907
|
-
|
|
49908
|
-
|
|
49909
|
-
|
|
49910
|
-
|
|
49911
|
-
})
|
|
49912
|
-
})
|
|
49913
|
-
]
|
|
49914
|
-
}) : (0, import_jsx_runtime.jsx)(d2, {
|
|
49915
|
-
size: 16,
|
|
49916
|
-
className: "mr-2"
|
|
49917
|
-
});
|
|
49918
|
-
f9.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
49919
|
-
className: cn("hover:bg-primary hover:bg-opacity-25 group select-none", {
|
|
49920
|
-
"bg-primary bg-opacity-25": f2
|
|
49921
|
-
}),
|
|
49922
|
-
onClick: () => c2({
|
|
49923
|
-
path: r2,
|
|
49924
|
-
name: e2.name,
|
|
49925
|
-
isDirectory: e2.is_directory
|
|
49926
|
-
}),
|
|
49927
|
-
children: [
|
|
49928
|
-
(0, import_jsx_runtime.jsx)(TableCell, {
|
|
49929
|
-
className: "w-[50px] pl-4",
|
|
49930
|
-
children: h2()
|
|
49931
|
-
}),
|
|
49932
|
-
(0, import_jsx_runtime.jsx)(TableCell, {
|
|
49933
|
-
children: e2.name
|
|
49934
|
-
})
|
|
49935
|
-
]
|
|
49936
|
-
}, e2.id));
|
|
49937
|
-
}
|
|
49938
|
-
let { parentDirectories: p9 } = getProtocolAndParentDirectories({
|
|
49939
|
-
path: w,
|
|
49940
|
-
delimiter: n9,
|
|
49941
|
-
initialPath: c,
|
|
49942
|
-
restrictNavigation: _
|
|
49943
|
-
}), m9 = d === "all" ? PluralWords.of("file", "folder") : d === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
49944
|
-
return (0, import_jsx_runtime.jsxs)("div", {
|
|
49945
|
-
children: [
|
|
49946
|
-
Q7 && (0, import_jsx_runtime.jsx)(Banner, {
|
|
49947
|
-
kind: "danger",
|
|
49948
|
-
children: Q7.message
|
|
49949
|
-
}),
|
|
49950
|
-
(() => {
|
|
49951
|
-
h ?? (h = `Select ${m9.join(" and ", 2)}...`);
|
|
49952
|
-
let e2 = (0, import_jsx_runtime.jsx)(Label, {
|
|
49953
|
-
children: renderHTML({
|
|
49954
|
-
html: h
|
|
49955
|
-
})
|
|
49956
|
-
});
|
|
49957
|
-
return f ? (0, import_jsx_runtime.jsxs)("div", {
|
|
49958
|
-
className: "flex items-center justify-between border px-2",
|
|
49947
|
+
}), r[61] = g92, r[62] = _92) : (g92 = r[61], _92 = r[62]);
|
|
49948
|
+
let v92;
|
|
49949
|
+
r[63] === h92 ? v92 = r[64] : (v92 = (0, import_jsx_runtime.jsxs)(TableRow, {
|
|
49950
|
+
className: "hover:bg-accent select-none",
|
|
49951
|
+
onClick: h92,
|
|
49952
|
+
children: [
|
|
49953
|
+
g92,
|
|
49954
|
+
_92
|
|
49955
|
+
]
|
|
49956
|
+
}, "Parent directory"), r[63] = h92, r[64] = v92), l9.push(v92);
|
|
49957
|
+
for (let e3 of u9) {
|
|
49958
|
+
let r2 = e3.path;
|
|
49959
|
+
r2.startsWith("//") && (r2 = r2.slice(1));
|
|
49960
|
+
let c2 = e3.is_directory ? (e4) => {
|
|
49961
|
+
let { path: r3 } = e4;
|
|
49962
|
+
return p9(r3);
|
|
49963
|
+
} : i92, d2 = FILE_ICON[e3.is_directory ? "directory" : guessFileIconType(e3.name)], f2 = y2.has(r2);
|
|
49964
|
+
l9.push((0, import_jsx_runtime.jsxs)(TableRow, {
|
|
49965
|
+
className: cn("hover:bg-accent group select-none", {
|
|
49966
|
+
"bg-primary/25 hover:bg-primary/35": f2
|
|
49967
|
+
}),
|
|
49968
|
+
onClick: () => c2({
|
|
49969
|
+
path: r2,
|
|
49970
|
+
name: e3.name,
|
|
49971
|
+
isDirectory: e3.is_directory
|
|
49972
|
+
}),
|
|
49959
49973
|
children: [
|
|
49960
|
-
(0, import_jsx_runtime.jsx)(
|
|
49961
|
-
className: "
|
|
49962
|
-
children:
|
|
49963
|
-
|
|
49964
|
-
|
|
49965
|
-
|
|
49966
|
-
|
|
49967
|
-
|
|
49968
|
-
|
|
49969
|
-
|
|
49970
|
-
html: O
|
|
49974
|
+
(0, import_jsx_runtime.jsx)(TableCell, {
|
|
49975
|
+
className: "w-[50px] pl-4",
|
|
49976
|
+
children: (0, import_jsx_runtime.jsx)(CheckboxOrIcon, {
|
|
49977
|
+
isSelected: f2,
|
|
49978
|
+
canSelect: w2 && e3.is_directory || E2 && !e3.is_directory,
|
|
49979
|
+
Icon: d2,
|
|
49980
|
+
onSelect: () => i92({
|
|
49981
|
+
path: r2,
|
|
49982
|
+
name: e3.name,
|
|
49983
|
+
isDirectory: e3.is_directory
|
|
49971
49984
|
})
|
|
49972
49985
|
})
|
|
49986
|
+
}),
|
|
49987
|
+
(0, import_jsx_runtime.jsx)(TableCell, {
|
|
49988
|
+
children: e3.name
|
|
49973
49989
|
})
|
|
49974
49990
|
]
|
|
49975
|
-
})
|
|
49976
|
-
}
|
|
49977
|
-
|
|
49978
|
-
|
|
49979
|
-
|
|
49980
|
-
|
|
49981
|
-
|
|
49982
|
-
|
|
49983
|
-
|
|
49984
|
-
|
|
49985
|
-
|
|
49986
|
-
|
|
49987
|
-
|
|
49988
|
-
|
|
49989
|
-
|
|
49990
|
-
|
|
49991
|
-
|
|
49992
|
-
|
|
49993
|
-
|
|
49994
|
-
|
|
49995
|
-
|
|
49996
|
-
}
|
|
49997
|
-
|
|
49998
|
-
|
|
49991
|
+
}, e3.id));
|
|
49992
|
+
}
|
|
49993
|
+
}
|
|
49994
|
+
r[11] = t9, r[12] = n9, r[13] = f, r[14] = I, r[15] = _, r[16] = O, r[17] = S, r[18] = h, r[19] = M, r[20] = d, r[21] = c, r[22] = o9, r[23] = s9, r[24] = c9, r[25] = l9, r[26] = u9, r[27] = d9, r[28] = f9, r[29] = p9, r[30] = m9;
|
|
49995
|
+
} else o9 = r[22], s9 = r[23], c9 = r[24], l9 = r[25], u9 = r[26], d9 = r[27], f9 = r[28], p9 = r[29], m9 = r[30];
|
|
49996
|
+
if (m9 !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return m9;
|
|
49997
|
+
let h9, g9, _9, v9, y9, b9, x9;
|
|
49998
|
+
if (r[65] !== o9 || r[66] !== t9 || r[67] !== s9 || r[68] !== c9 || r[69] !== n9 || r[70] !== l9 || r[71] !== u9 || r[72] !== f || r[73] !== r9 || r[74] !== y || r[75] !== _ || r[76] !== O || r[77] !== S || r[78] !== d9 || r[79] !== f9 || r[80] !== h || r[81] !== p9 || r[82] !== d || r[83] !== G || r[84] !== c.length) {
|
|
49999
|
+
let { parentDirectories: e2 } = getProtocolAndParentDirectories({
|
|
50000
|
+
path: O,
|
|
50001
|
+
delimiter: s9,
|
|
50002
|
+
initialPath: f,
|
|
50003
|
+
restrictNavigation: S
|
|
50004
|
+
}), w2 = h === "all" ? PluralWords.of("file", "folder") : h === "directory" ? PluralWords.of("folder") : PluralWords.of("file");
|
|
50005
|
+
r[92] === n9 ? x9 = r[93] : (x9 = n9 && (0, import_jsx_runtime.jsx)(Banner, {
|
|
50006
|
+
kind: "danger",
|
|
50007
|
+
children: n9.message
|
|
50008
|
+
}), r[92] = n9, r[93] = x9), h9 = (() => {
|
|
50009
|
+
let e3 = (0, import_jsx_runtime.jsx)(Label, {
|
|
50010
|
+
children: renderHTML({
|
|
50011
|
+
html: y ?? `Select ${w2.join(" and ", 2)}...`
|
|
50012
|
+
})
|
|
50013
|
+
});
|
|
50014
|
+
return _ ? (0, import_jsx_runtime.jsxs)("div", {
|
|
50015
|
+
className: "flex items-center justify-between border px-2",
|
|
49999
50016
|
children: [
|
|
50000
|
-
|
|
50001
|
-
className: "
|
|
50002
|
-
|
|
50003
|
-
children: [
|
|
50004
|
-
(0, import_jsx_runtime.jsx)(Spinner, {
|
|
50005
|
-
size: "small"
|
|
50006
|
-
}),
|
|
50007
|
-
(0, import_jsx_runtime.jsx)("span", {
|
|
50008
|
-
children: "Listing files..."
|
|
50009
|
-
})
|
|
50010
|
-
]
|
|
50017
|
+
(0, import_jsx_runtime.jsx)("div", {
|
|
50018
|
+
className: "mb-1",
|
|
50019
|
+
children: e3
|
|
50011
50020
|
}),
|
|
50012
|
-
(0, import_jsx_runtime.jsx)(
|
|
50013
|
-
|
|
50014
|
-
|
|
50015
|
-
|
|
50021
|
+
(0, import_jsx_runtime.jsx)("div", {
|
|
50022
|
+
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
50023
|
+
size: "xs",
|
|
50024
|
+
variant: "link",
|
|
50025
|
+
onClick: o9 ? c9 : d9,
|
|
50026
|
+
children: o9 ? "Deselect all" : "Select all"
|
|
50016
50027
|
})
|
|
50017
50028
|
})
|
|
50018
50029
|
]
|
|
50019
|
-
})
|
|
50020
|
-
|
|
50021
|
-
|
|
50022
|
-
|
|
50030
|
+
}) : e3;
|
|
50031
|
+
})();
|
|
50032
|
+
let E2;
|
|
50033
|
+
r[94] === p9 ? E2 = r[95] : (E2 = (e3) => p9(e3.target.value), r[94] = p9, r[95] = E2);
|
|
50034
|
+
let M2 = e2.map(_temp3$5);
|
|
50035
|
+
r[96] !== O || r[97] !== E2 || r[98] !== M2 ? (g9 = (0, import_jsx_runtime.jsx)(NativeSelect, {
|
|
50036
|
+
className: "mt-2 w-full",
|
|
50037
|
+
placeholder: O,
|
|
50038
|
+
value: O,
|
|
50039
|
+
onChange: E2,
|
|
50040
|
+
children: M2
|
|
50041
|
+
}), r[96] = O, r[97] = E2, r[98] = M2, r[99] = g9) : g9 = r[99], r[100] !== t9 || r[101] !== u9 ? (_9 = t9 && typeof t9.total_count == "number" && (0, import_jsx_runtime.jsx)("div", {
|
|
50042
|
+
className: "text-xs text-muted-foreground mt-1 px-1",
|
|
50043
|
+
children: t9.is_truncated ? `Showing ${u9.length} of ${t9.total_count} items` : `${t9.total_count} ${t9.total_count === 1 ? "item" : "items"}`
|
|
50044
|
+
}), r[100] = t9, r[101] = u9, r[102] = _9) : _9 = r[102];
|
|
50045
|
+
let I2;
|
|
50046
|
+
r[103] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (I2 = {
|
|
50047
|
+
height: "14rem"
|
|
50048
|
+
}, r[103] = I2) : I2 = r[103];
|
|
50049
|
+
let z2;
|
|
50050
|
+
r[104] === G ? z2 = r[105] : (z2 = G && (0, import_jsx_runtime.jsxs)("div", {
|
|
50051
|
+
className: "absolute inset-0 flex flex-col items-center justify-center gap-2 bg-background/80 text-xs text-muted-foreground pointer-events-none z-10",
|
|
50052
|
+
role: "status",
|
|
50053
|
+
children: [
|
|
50054
|
+
(0, import_jsx_runtime.jsx)(Spinner, {
|
|
50055
|
+
size: "small"
|
|
50056
|
+
}),
|
|
50057
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
50058
|
+
children: "Listing files..."
|
|
50059
|
+
})
|
|
50060
|
+
]
|
|
50061
|
+
}), r[104] = G, r[105] = z2);
|
|
50062
|
+
let q2;
|
|
50063
|
+
r[106] === l9 ? q2 = r[107] : (q2 = (0, import_jsx_runtime.jsx)(Table, {
|
|
50064
|
+
className: "cursor-pointer table-fixed",
|
|
50065
|
+
children: (0, import_jsx_runtime.jsx)(TableBody, {
|
|
50066
|
+
children: l9
|
|
50067
|
+
})
|
|
50068
|
+
}), r[106] = l9, r[107] = q2), r[108] !== r9 || r[109] !== z2 || r[110] !== q2 ? (v9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
50069
|
+
className: "mt-3 overflow-y-auto w-full border relative",
|
|
50070
|
+
style: I2,
|
|
50071
|
+
"aria-busy": r9,
|
|
50072
|
+
"aria-live": "polite",
|
|
50073
|
+
children: [
|
|
50074
|
+
z2,
|
|
50075
|
+
q2
|
|
50076
|
+
]
|
|
50077
|
+
}), r[108] = r9, r[109] = z2, r[110] = q2, r[111] = v9) : v9 = r[111], y9 = "mt-4", b9 = c.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
50078
|
+
children: [
|
|
50079
|
+
(0, import_jsx_runtime.jsxs)("div", {
|
|
50080
|
+
className: "flex items-center gap-2",
|
|
50023
50081
|
children: [
|
|
50024
|
-
(0, import_jsx_runtime.jsxs)("
|
|
50025
|
-
className: "
|
|
50082
|
+
(0, import_jsx_runtime.jsxs)("span", {
|
|
50083
|
+
className: "font-bold text-xs",
|
|
50026
50084
|
children: [
|
|
50027
|
-
|
|
50028
|
-
|
|
50029
|
-
|
|
50030
|
-
|
|
50031
|
-
|
|
50032
|
-
m9.join(" or ", e.length),
|
|
50033
|
-
" ",
|
|
50034
|
-
"selected"
|
|
50035
|
-
]
|
|
50036
|
-
}),
|
|
50037
|
-
(0, import_jsx_runtime.jsx)("button", {
|
|
50038
|
-
className: cn("text-xs text-destructive hover:underline"),
|
|
50039
|
-
onClick: () => r([]),
|
|
50040
|
-
type: "button",
|
|
50041
|
-
children: "clear all"
|
|
50042
|
-
})
|
|
50085
|
+
c.length,
|
|
50086
|
+
" ",
|
|
50087
|
+
w2.join(" or ", c.length),
|
|
50088
|
+
" ",
|
|
50089
|
+
"selected"
|
|
50043
50090
|
]
|
|
50044
50091
|
}),
|
|
50045
|
-
(0, import_jsx_runtime.jsx)("
|
|
50046
|
-
className: "
|
|
50047
|
-
|
|
50048
|
-
|
|
50049
|
-
|
|
50050
|
-
},
|
|
50051
|
-
className: "m-0 text-xs text-muted-foreground",
|
|
50052
|
-
children: i9
|
|
50053
|
-
})
|
|
50092
|
+
(0, import_jsx_runtime.jsx)("button", {
|
|
50093
|
+
className: cn("text-xs text-destructive hover:underline"),
|
|
50094
|
+
onClick: () => d([]),
|
|
50095
|
+
type: "button",
|
|
50096
|
+
children: "clear all"
|
|
50054
50097
|
})
|
|
50055
50098
|
]
|
|
50099
|
+
}),
|
|
50100
|
+
(0, import_jsx_runtime.jsx)("div", {
|
|
50101
|
+
className: "markdown",
|
|
50102
|
+
children: (0, import_jsx_runtime.jsx)("ul", {
|
|
50103
|
+
style: {
|
|
50104
|
+
marginBlock: 0
|
|
50105
|
+
},
|
|
50106
|
+
className: "m-0 text-xs text-muted-foreground",
|
|
50107
|
+
children: f9
|
|
50108
|
+
})
|
|
50056
50109
|
})
|
|
50057
|
-
|
|
50110
|
+
]
|
|
50111
|
+
}), r[65] = o9, r[66] = t9, r[67] = s9, r[68] = c9, r[69] = n9, r[70] = l9, r[71] = u9, r[72] = f, r[73] = r9, r[74] = y, r[75] = _, r[76] = O, r[77] = S, r[78] = d9, r[79] = f9, r[80] = h, r[81] = p9, r[82] = d, r[83] = G, r[84] = c.length, r[85] = h9, r[86] = g9, r[87] = _9, r[88] = v9, r[89] = y9, r[90] = b9, r[91] = x9;
|
|
50112
|
+
} else h9 = r[85], g9 = r[86], _9 = r[87], v9 = r[88], y9 = r[89], b9 = r[90], x9 = r[91];
|
|
50113
|
+
let S9;
|
|
50114
|
+
r[112] !== y9 || r[113] !== b9 ? (S9 = (0, import_jsx_runtime.jsx)("div", {
|
|
50115
|
+
className: y9,
|
|
50116
|
+
children: b9
|
|
50117
|
+
}), r[112] = y9, r[113] = b9, r[114] = S9) : S9 = r[114];
|
|
50118
|
+
let C9;
|
|
50119
|
+
return r[115] !== h9 || r[116] !== g9 || r[117] !== _9 || r[118] !== v9 || r[119] !== S9 || r[120] !== x9 ? (C9 = (0, import_jsx_runtime.jsxs)("div", {
|
|
50120
|
+
children: [
|
|
50121
|
+
x9,
|
|
50122
|
+
h9,
|
|
50123
|
+
g9,
|
|
50124
|
+
_9,
|
|
50125
|
+
v9,
|
|
50126
|
+
S9
|
|
50058
50127
|
]
|
|
50059
|
-
});
|
|
50060
|
-
}
|
|
50128
|
+
}), r[115] = h9, r[116] = g9, r[117] = _9, r[118] = v9, r[119] = S9, r[120] = x9, r[121] = C9) : C9 = r[121], C9;
|
|
50129
|
+
};
|
|
50130
|
+
function _temp$13(e) {
|
|
50131
|
+
return e.path;
|
|
50132
|
+
}
|
|
50133
|
+
function _temp2$8(e) {
|
|
50134
|
+
return (0, import_jsx_runtime.jsx)("li", {
|
|
50135
|
+
children: e.path
|
|
50136
|
+
}, e.id);
|
|
50137
|
+
}
|
|
50138
|
+
function _temp3$5(e) {
|
|
50139
|
+
return (0, import_jsx_runtime.jsx)("option", {
|
|
50140
|
+
value: e,
|
|
50141
|
+
children: e
|
|
50142
|
+
}, e);
|
|
50143
|
+
}
|
|
50144
|
+
const COMMON_MIME_TYPES = /* @__PURE__ */ new Map([
|
|
50061
50145
|
[
|
|
50062
50146
|
"1km",
|
|
50063
50147
|
"application/vnd.1000minds.decision-model+xml"
|
|
@@ -69077,7 +69161,7 @@ ${c}
|
|
|
69077
69161
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
69078
69162
|
}
|
|
69079
69163
|
}
|
|
69080
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.2-
|
|
69164
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.2-dev54"), showCodeInRunModeAtom = atom(true);
|
|
69081
69165
|
atom(null);
|
|
69082
69166
|
var VIRTUAL_FILE_REGEX = /\/@file\/([^\s"&'/]+)\.([\dA-Za-z]+)/g, VirtualFileTracker = class e {
|
|
69083
69167
|
constructor() {
|