@marimo-team/islands 0.19.7-dev23 → 0.19.7-dev25
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/{Combination-BOmAhdTT.js → Combination-Bg-xN8JV.js} +1 -1
- package/dist/{ConnectedDataExplorerComponent-BW-EEUju.js → ConnectedDataExplorerComponent-CukLYFVV.js} +9 -9
- package/dist/{any-language-editor-jlqKouk6.js → any-language-editor-DZc6NCTp.js} +4 -4
- package/dist/{button-D6ZIdUA3.js → button-BWvsJ2Wr.js} +1 -1
- package/dist/{check-S8ldILuD.js → check-CM_kewwn.js} +1 -1
- package/dist/{copy-ACOJ1BXr.js → copy-B59Bw3-w.js} +2 -2
- package/dist/{error-banner-uJ4xh94e.js → error-banner-C7KLpECd.js} +3 -3
- package/dist/{esm-DNwkt4aO.js → esm-D4WO8J3G.js} +4 -4
- package/dist/{glide-data-editor-QbwryjAp.js → glide-data-editor-uGGDZv6S.js} +7 -7
- package/dist/{hotkeys-C4e3s3sJ.js → hotkeys-B5WnGZXF.js} +3 -0
- package/dist/{label-o68OaAQk.js → label-DC2pbeUJ.js} +4 -4
- package/dist/{loader-WBQoIunJ.js → loader-B0KEFFi-.js} +1 -1
- package/dist/main.js +522 -519
- package/dist/{mermaid-CDdsQEyr.js → mermaid-Bqp2Xw99.js} +3 -3
- package/dist/{slides-component-BGEYjTca.js → slides-component-BVjvNo92.js} +2 -2
- package/dist/{spec-CuHgWmcK.js → spec-C9rnT0AN.js} +5 -5
- package/dist/style.css +1 -1
- package/dist/{types-BIvEidLq.js → types-ZLLMdAtn.js} +6 -6
- package/dist/{useAsyncData-DFBEii2l.js → useAsyncData-BjNwqCfS.js} +1 -1
- package/dist/{useDeepCompareMemoize-HKwezUBx.js → useDeepCompareMemoize-CfoxVor3.js} +5 -5
- package/dist/{useIframeCapabilities-wWXCXV88.js → useIframeCapabilities-BBO_R0ww.js} +1 -1
- package/dist/{useTheme-D0zT6HZe.js → useTheme-BYG2SH8J.js} +1 -1
- package/dist/{vega-component-2gqZksJH.js → vega-component-rDX7xwxH.js} +8 -8
- package/package.json +1 -1
- package/src/components/editor/actions/useNotebookActions.tsx +5 -3
- package/src/components/editor/header/filename-form.tsx +15 -2
- package/src/components/editor/navigation/__tests__/navigation.test.ts +2 -0
- package/src/components/ui/progress.tsx +22 -5
- package/src/core/export/__tests__/hooks.test.ts +42 -19
- package/src/core/export/hooks.ts +33 -32
- package/src/core/saving/save-component.tsx +1 -0
- package/src/utils/__tests__/download.test.tsx +6 -4
- package/src/utils/__tests__/objects.test.ts +263 -0
- package/src/utils/__tests__/progress.test.ts +156 -0
- package/src/utils/download.ts +7 -2
- package/src/utils/objects.ts +3 -0
- package/src/utils/progress.ts +61 -0
- package/src/utils/toast-progress.tsx +41 -0
package/dist/main.js
CHANGED
|
@@ -4,23 +4,23 @@ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "sy
|
|
|
4
4
|
import { a as __toCommonJS, n as __esmMin, o as __toDynamicImportESM, r as __export$1, s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
|
|
5
5
|
import { t as require_react } from "./react-DdA8EBol.js";
|
|
6
6
|
import { t as require_compiler_runtime } from "./compiler-runtime-DHFVbq0b.js";
|
|
7
|
-
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-
|
|
7
|
+
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-B59Bw3-w.js";
|
|
8
8
|
import { _ as require_cjs$1, c as markdownLineEnding, d as SKIP, f as visitParents, g as s$2, h as h$1, l as longestStreak, m as webNamespaces, o as xn$1, p as convert$1, s as factorySpace, u as ok, __tla as __tla_0 } from "./chunk-5FQGJX7Z-D5VFKHmt.js";
|
|
9
|
-
import { C as useLayoutEffect2, D as dispatchDiscreteCustomEvent, E as Primitive
|
|
10
|
-
import { A as Badge, B as ListFilter, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $5a387cc49350e6db$export$722debc0e56fea39, H as ChartPie, I as Type, L as ToggleLeft, M as startCase_default, N as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, O as TIME_UNIT_DESCRIPTIONS, P as $fb18d541ea1ad717$export$ad991b66133851cf, R as Table$1, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as ChartColumn, V as Hash, W as Calendar, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as createReducerAndAtoms, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON, z as SquareFunction } from "./spec-
|
|
11
|
-
import { t as Check } from "./check-
|
|
12
|
-
import { A as logNever, B as ChevronDown, C as useDirection, D as useOnUnmount, E as useOnMount, F as $18f2051aff69b9bf$export$a54013f0d02a8f82, I as $b5e257d569688ac6$export$535bd6ca7f90a273, M as $a916eb452884faea$export$b7a616150fdb9f44, O as usePrevious$1, P as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, R as X, S as Trigger$5, T as clamp$2, _ as menuItemVariants, a as SelectGroup, b as menuSubTriggerVariants, c as SelectSeparator, d as NativeSelect, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, k as assertNever, l as SelectTrigger, m as menuContentCommon, n as Primitive, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, s as SelectLabel, t as Label, u as SelectValue, v as menuLabelVariants, w as createCollection, x as Icon, y as menuSeparatorVariants } from "./label-
|
|
13
|
-
import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, A as ItemIndicator, At as $6db58dc88e78b024$export$2f817fcdc4b89ae0, B as createMenuScope, Bt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, C as DropdownMenuTrigger, Ct as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, D as Content2$3, Dt as $6c7bd7858deea686$export$cd11ab140839f11d, E as CheckboxItem, Et as $701a24aa0da5b062$export$ea18c227d4417cc3, F as Root3, Ft as $507fabe10e71c6fb$export$630ff653c5ada6a9, G as $3985021b0ad6602f$export$37fb8590cf2c088c, Gt as $df56164dff5785e2$export$4338b53315abf666, H as Root$6, Ht as $b4b717babfbb907b$export$bebd5a1431fec25d, I as Separator, It as $f6c31cce2adf654f$export$45712eceda6fad21, J as $a049562f99e7db0e$export$f9c6924e160136d1, Jt as $c87311424ea30a05$export$78551043582a6a98, K as $3985021b0ad6602f$export$f5b8910cec6cf069, Kt as $313b98861ee5dd6c$export$d6875122194c7b44, L as Sub, Lt as _class_private_field_init, M as Portal$2, Mt as $6179b936705e76d3$export$ae780daf29e6d456, N as RadioGroup$2, Nt as $9ab94262bd0047c7$export$420e68273165f4ec, O as Group$1, Ot as $fca6afa0e843324b$export$87b761675e8eaa10, P as RadioItem, Pt as $3ad3f6e1647bc98d$export$80f3e147d781571c, Q as $514c0188e459b4c0$export$5f1af8db9871e1d6, Qt as $7215afc6de606d6b$export$de79e2c695e052f3, R as SubContent, Rt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, S as DropdownMenuSubTrigger, St as $e5be200c675c3b3a$export$dad6ae84456c676a, T as Arrow2, Tt as $f7dceffc5ad7768b$export$4e328f61c538687f, U as createRovingFocusGroupScope, Ut as $99facab73266f662$export$5add1d006293d136, V as Item$2, Vt as $b4b717babfbb907b$export$4c063cf1350e6fed, W as ErrorBoundary, Wt as $e9faafb641e167db$export$90fc3a17d93f704c, X as $ee014567cb39d3f0$export$f551688fc98f2e09, Xt as $c87311424ea30a05$export$a11b0059900ceec8, Y as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Yt as $c87311424ea30a05$export$9ac100e40613ea10, Z as $ee014567cb39d3f0$export$ff05c3ac10437e03, Zt as $c87311424ea30a05$export$fedb369cb70207f1, _ as DropdownMenuLabel, _n as ChevronRight, _t as $2baaea4c71418dea$export$294aa081a6c6f55d, a as OnBlurredInput, an as $431fbd86ca7dc216$export$b204af158042fbac, at as $64fa3d84918910a7$export$2881499e37b75b9a, b as DropdownMenuSub, bt as $e5be200c675c3b3a$export$a763b9476acd3eb, c as NumberField, cn as $bdb11010cef70236$export$b4cc09c592e8fdb8, ct as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, d as prettyNumber, dn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $3ef42575df84b30b$export$9d1611c77c2fe928, et as $d2b4bc8c273e7be6$export$24d547caef80ccd1, f as prettyScientificNumber, fn as Trash, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuItem, gn as Circle, gt as $d2e8511e6f209edf$export$e908e06f4b8e3402, h as DropdownMenuGroup, hn as Pencil, ht as capitalize_default, i as Input, in as $f4e2df6bd15f8569$export$98658e8c59125e6a, it as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, j as Label$2, jt as $5b160d28a433310d$export$c17fa47878dc55b6, k as Item2$2, kt as $fca6afa0e843324b$export$f12b703ca79dfbb1, l as maxFractionalDigits, ln as $bdb11010cef70236$export$f680877a34711e37, lt as $64fa3d84918910a7$export$c245e6201fed2f75, m as DropdownMenuContent, mn as Plus, mt as marked, n as DebouncedInput, nn as $d4ee10de306f2510$export$cd4e5573fbe2b576, nt as $01b77f81d0f07f68$export$75b6ee27786ba447, o as useDebounceControlledState, on as $431fbd86ca7dc216$export$f21a1ffae260145a, ot as $64fa3d84918910a7$export$29f1550f4b0d4415, p as DropdownMenu, pn as Search, pt as useNonce, q as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, qt as $c87311424ea30a05$export$6446a186d09e379e, r as DebouncedNumberInput, rn as $d4ee10de306f2510$export$e58f029f0fbfdb29, rt as $01b77f81d0f07f68$export$b04be29aa201d4f5, s as useDebouncedCallback, sn as $ff5963eb1fccf552$export$e08e3b67e392101e, st as $64fa3d84918910a7$export$4d86445c2cf5e3, t as BulkEdit, tn as $d4ee10de306f2510$export$4282f70798064fe0, tt as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, u as prettyEngineeringNumber, un as $8ae05eaa5c114e9c$export$7f54fc3180508a52, ut as $64fa3d84918910a7$export$c62b8e45d58ddad9, v as DropdownMenuPortal, vt as $e93e671b31057976$export$b8473d3665f3a75a, w as Anchor2, wt as $319e236875307eab$export$a9b970dcc4ae71a9, x as DropdownMenuSubContent, xt as $e5be200c675c3b3a$export$aca958c65c314e6c, y as DropdownMenuSeparator, yt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, z as SubTrigger, zt as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./types-
|
|
14
|
-
import { S as CircleQuestionMark, _ as isUrl, a as AlertTitle, b as Deferred, c as constructFrom, d as millisecondsInMinute, f as millisecondsInSecond, g as appendQueryParams, h as getRuntimeManager, i as AlertDescription, l as millisecondsInDay, m as asRemoteURL, n as arrow, o as isValid$1, p as millisecondsInWeek, r as Alert, s as toDate, t as useDeepCompareMemoize, u as millisecondsInHour, v as require_cuid2, x as isWasm, y as waitForConnectionOpen } from "./useDeepCompareMemoize-
|
|
9
|
+
import { C as useLayoutEffect2, D as dispatchDiscreteCustomEvent, E as Primitive, M as composeEventHandlers$1, N as createLucideIcon, O as createSlot, S as useId$12, T as useCallbackRef, _ as Arrow, a as __awaiter, b as createPopperScope, c as withSmartCollisionBoundary, d as Root$5, g as Anchor, h as Portal, i as useFocusGuards, j as createContextScope, l as isInVscodeExtension, m as Presence, n as hideOthers, o as MAX_HEIGHT_OFFSET, p as useControllableState, r as FocusScope, s as withFullScreenAsRoot, t as Combination_default, u as StyleNamespace, v as Content$3, w as DismissableLayer, x as useSize, y as Root2$6 } from "./Combination-Bg-xN8JV.js";
|
|
10
|
+
import { A as Badge, B as ListFilter, C as DEFAULT_COLOR_SCHEME, D as SCALE_TYPE_DESCRIPTIONS, E as EMPTY_VALUE$1, F as $5a387cc49350e6db$export$722debc0e56fea39, H as ChartPie, I as Type, L as ToggleLeft, M as startCase_default, N as $896ba0a80a8f4d36$export$85fd5fdf27bacc79, O as TIME_UNIT_DESCRIPTIONS, P as $fb18d541ea1ad717$export$ad991b66133851cf, R as Table$1, S as DEFAULT_AGGREGATION, T as DEFAULT_TIME_UNIT, U as ChartColumn, V as Hash, W as Calendar, _ as AGGREGATION_TYPE_DESCRIPTIONS, a as AGGREGATION_FNS$1, b as COLOR_SCHEMES, c as COLOR_BY_FIELDS, d as NONE_VALUE, f as SELECTABLE_DATA_TYPES, g as TIME_UNITS, h as STRING_AGGREGATION_FNS, i as convertDataTypeToSelectable, j as createReducerAndAtoms, k as escapeFieldName, l as COMBINED_TIME_UNITS, m as SORT_TYPES, n as createSpecWithoutData, o as BIN_AGGREGATION, p as SINGLE_TIME_UNITS, r as isFieldSet, s as CHART_TYPES, t as augmentSpecWithData, u as ChartType, v as AGGREGATION_TYPE_ICON, w as DEFAULT_MAX_BINS_FACET, x as COUNT_FIELD, y as CHART_TYPE_ICON, z as SquareFunction } from "./spec-C9rnT0AN.js";
|
|
11
|
+
import { t as Check } from "./check-CM_kewwn.js";
|
|
12
|
+
import { A as logNever, B as ChevronDown, C as useDirection, D as useOnUnmount, E as useOnMount, F as $18f2051aff69b9bf$export$a54013f0d02a8f82, I as $b5e257d569688ac6$export$535bd6ca7f90a273, M as $a916eb452884faea$export$b7a616150fdb9f44, O as usePrevious$1, P as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, R as X, S as Trigger$5, T as clamp$2, _ as menuItemVariants, a as SelectGroup, b as menuSubTriggerVariants, c as SelectSeparator, d as NativeSelect, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, k as assertNever, l as SelectTrigger, m as menuContentCommon, n as Primitive$1, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, s as SelectLabel, t as Label, u as SelectValue, v as menuLabelVariants, w as createCollection, x as Icon, y as menuSeparatorVariants } from "./label-DC2pbeUJ.js";
|
|
13
|
+
import { $ as $514c0188e459b4c0$export$9afb8bc826b033ea, $t as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, A as ItemIndicator, At as $6db58dc88e78b024$export$2f817fcdc4b89ae0, B as createMenuScope, Bt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, C as DropdownMenuTrigger, Ct as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, D as Content2$3, Dt as $6c7bd7858deea686$export$cd11ab140839f11d, E as CheckboxItem, Et as $701a24aa0da5b062$export$ea18c227d4417cc3, F as Root3, Ft as $507fabe10e71c6fb$export$630ff653c5ada6a9, G as $3985021b0ad6602f$export$37fb8590cf2c088c, Gt as $df56164dff5785e2$export$4338b53315abf666, H as Root$6, Ht as $b4b717babfbb907b$export$bebd5a1431fec25d, I as Separator, It as $f6c31cce2adf654f$export$45712eceda6fad21, J as $a049562f99e7db0e$export$f9c6924e160136d1, Jt as $c87311424ea30a05$export$78551043582a6a98, K as $3985021b0ad6602f$export$f5b8910cec6cf069, Kt as $313b98861ee5dd6c$export$d6875122194c7b44, L as Sub, Lt as _class_private_field_init, M as Portal$2, Mt as $6179b936705e76d3$export$ae780daf29e6d456, N as RadioGroup$2, Nt as $9ab94262bd0047c7$export$420e68273165f4ec, O as Group$1, Ot as $fca6afa0e843324b$export$87b761675e8eaa10, P as RadioItem, Pt as $3ad3f6e1647bc98d$export$80f3e147d781571c, Q as $514c0188e459b4c0$export$5f1af8db9871e1d6, Qt as $7215afc6de606d6b$export$de79e2c695e052f3, R as SubContent, Rt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, S as DropdownMenuSubTrigger, St as $e5be200c675c3b3a$export$dad6ae84456c676a, T as Arrow2, Tt as $f7dceffc5ad7768b$export$4e328f61c538687f, U as createRovingFocusGroupScope, Ut as $99facab73266f662$export$5add1d006293d136, V as Item$2, Vt as $b4b717babfbb907b$export$4c063cf1350e6fed, W as ErrorBoundary, Wt as $e9faafb641e167db$export$90fc3a17d93f704c, X as $ee014567cb39d3f0$export$f551688fc98f2e09, Xt as $c87311424ea30a05$export$a11b0059900ceec8, Y as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Yt as $c87311424ea30a05$export$9ac100e40613ea10, Z as $ee014567cb39d3f0$export$ff05c3ac10437e03, Zt as $c87311424ea30a05$export$fedb369cb70207f1, _ as DropdownMenuLabel, _n as ChevronRight, _t as $2baaea4c71418dea$export$294aa081a6c6f55d, a as OnBlurredInput, an as $431fbd86ca7dc216$export$b204af158042fbac, at as $64fa3d84918910a7$export$2881499e37b75b9a, b as DropdownMenuSub, bt as $e5be200c675c3b3a$export$a763b9476acd3eb, c as NumberField, cn as $bdb11010cef70236$export$b4cc09c592e8fdb8, ct as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, d as prettyNumber, dn as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, dt as $64fa3d84918910a7$export$ef03459518577ad4, en as $3ef42575df84b30b$export$9d1611c77c2fe928, et as $d2b4bc8c273e7be6$export$24d547caef80ccd1, f as prettyScientificNumber, fn as Trash, ft as $64fa3d84918910a7$export$fabf2dc03a41866e, g as DropdownMenuItem, gn as Circle, gt as $d2e8511e6f209edf$export$e908e06f4b8e3402, h as DropdownMenuGroup, hn as Pencil, ht as capitalize_default, i as Input, in as $f4e2df6bd15f8569$export$98658e8c59125e6a, it as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, j as Label$2, jt as $5b160d28a433310d$export$c17fa47878dc55b6, k as Item2$2, kt as $fca6afa0e843324b$export$f12b703ca79dfbb1, l as maxFractionalDigits, ln as $bdb11010cef70236$export$f680877a34711e37, lt as $64fa3d84918910a7$export$c245e6201fed2f75, m as DropdownMenuContent, mn as Plus, mt as marked, n as DebouncedInput, nn as $d4ee10de306f2510$export$cd4e5573fbe2b576, nt as $01b77f81d0f07f68$export$75b6ee27786ba447, o as useDebounceControlledState, on as $431fbd86ca7dc216$export$f21a1ffae260145a, ot as $64fa3d84918910a7$export$29f1550f4b0d4415, p as DropdownMenu, pn as Search, pt as useNonce, q as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, qt as $c87311424ea30a05$export$6446a186d09e379e, r as DebouncedNumberInput, rn as $d4ee10de306f2510$export$e58f029f0fbfdb29, rt as $01b77f81d0f07f68$export$b04be29aa201d4f5, s as useDebouncedCallback, sn as $ff5963eb1fccf552$export$e08e3b67e392101e, st as $64fa3d84918910a7$export$4d86445c2cf5e3, t as BulkEdit, tn as $d4ee10de306f2510$export$4282f70798064fe0, tt as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, u as prettyEngineeringNumber, un as $8ae05eaa5c114e9c$export$7f54fc3180508a52, ut as $64fa3d84918910a7$export$c62b8e45d58ddad9, v as DropdownMenuPortal, vt as $e93e671b31057976$export$b8473d3665f3a75a, w as Anchor2, wt as $319e236875307eab$export$a9b970dcc4ae71a9, x as DropdownMenuSubContent, xt as $e5be200c675c3b3a$export$aca958c65c314e6c, y as DropdownMenuSeparator, yt as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, z as SubTrigger, zt as $9446cca9a3875146$export$7d15b64cf5a3a4c4 } from "./types-ZLLMdAtn.js";
|
|
14
|
+
import { S as CircleQuestionMark, _ as isUrl, a as AlertTitle, b as Deferred, c as constructFrom, d as millisecondsInMinute, f as millisecondsInSecond, g as appendQueryParams, h as getRuntimeManager, i as AlertDescription, l as millisecondsInDay, m as asRemoteURL, n as arrow, o as isValid$1, p as millisecondsInWeek, r as Alert, s as toDate, t as useDeepCompareMemoize, u as millisecondsInHour, v as require_cuid2, x as isWasm, y as waitForConnectionOpen } from "./useDeepCompareMemoize-CfoxVor3.js";
|
|
15
15
|
import { n as clsx_default } from "./clsx-D2KVTYnW.js";
|
|
16
|
-
import { a as cva, c as useComposedRefs, l as Events, n as buttonVariants, o as useEventListener, r as Slot$1, s as composeRefs, t as Button, u as cn } from "./button-
|
|
17
|
-
import { c as Functions, i as parseShortcut, l as throwNotImplemented, o as Objects, r as isPlatformMac, s as Logger, t as NOT_SET } from "./hotkeys-
|
|
16
|
+
import { a as cva, c as useComposedRefs, l as Events, n as buttonVariants, o as useEventListener, r as Slot$1, s as composeRefs, t as Button, u as cn } from "./button-BWvsJ2Wr.js";
|
|
17
|
+
import { c as Functions, i as parseShortcut, l as throwNotImplemented, o as Objects, r as isPlatformMac, s as Logger, t as NOT_SET } from "./hotkeys-B5WnGZXF.js";
|
|
18
18
|
import { t as require_jsx_runtime } from "./jsx-runtime-CTBg5pdT.js";
|
|
19
19
|
import { t as require_react_dom } from "./react-dom-DJW8xUDg.js";
|
|
20
|
-
import { a as Portal$3, c as prettyError, d as TooltipPortal, f as TooltipProvider, h as TooltipProvider$1, i as Overlay, l as Tooltip, m as TooltipTrigger, n as ErrorBanner, o as Root$7, p as TooltipRoot, r as Content$4, s as CellNotInitializedError, t as Banner, u as TooltipContent } from "./error-banner-
|
|
21
|
-
import { a as _extends$5, c as setDiagnostics, d as CopyClipboardIcon, i as minimalSetup, l as historyField, o as forEachDiagnostic, r as esm_default, s as linter, t as langs, u as insertTab } from "./esm-
|
|
20
|
+
import { a as Portal$3, c as prettyError, d as TooltipPortal, f as TooltipProvider, h as TooltipProvider$1, i as Overlay, l as Tooltip, m as TooltipTrigger, n as ErrorBanner, o as Root$7, p as TooltipRoot, r as Content$4, s as CellNotInitializedError, t as Banner, u as TooltipContent } from "./error-banner-C7KLpECd.js";
|
|
21
|
+
import { a as _extends$5, c as setDiagnostics, d as CopyClipboardIcon, i as minimalSetup, l as historyField, o as forEachDiagnostic, r as esm_default, s as linter, t as langs, u as insertTab } from "./esm-D4WO8J3G.js";
|
|
22
22
|
import { t as purify } from "./purify.es-Brw-U87Q.js";
|
|
23
|
-
import { C as buildStore, _ as useAtom, a as getResolvedMarimoConfig, b as useStore, c as AppConfigSchema, d as useJotaiEffect, g as Provider, h as useEvent_default, i as autoInstantiateAtom, l as createDeepEqualAtom, m as isEqual_default, n as useTheme, o as localeAtom, p as isIslands, r as aiEnabledAtom, s as useResolvedMarimoConfig, t as resolvedThemeAtom, u as store, v as useAtomValue, w as getBuildingBlocks, x as atom, y as useSetAtom } from "./useTheme-
|
|
23
|
+
import { C as buildStore, _ as useAtom, a as getResolvedMarimoConfig, b as useStore, c as AppConfigSchema, d as useJotaiEffect, g as Provider, h as useEvent_default, i as autoInstantiateAtom, l as createDeepEqualAtom, m as isEqual_default, n as useTheme, o as localeAtom, p as isIslands, r as aiEnabledAtom, s as useResolvedMarimoConfig, t as resolvedThemeAtom, u as store, v as useAtomValue, w as getBuildingBlocks, x as atom, y as useSetAtom } from "./useTheme-BYG2SH8J.js";
|
|
24
24
|
import { $ as ViewPlugin, At as RangeSet, B as tags$1, Dt as Facet$1, E as getIndentUnit, Et as EditorState, Ft as Text$2, I as syntaxTree, It as Transaction, J as parseMixed, L as unfoldAll, Nt as StateEffect, Pt as StateField, Q as GutterMarker, S as foldInside, Tt as EditorSelection, Y as Decoration, Z as EditorView, _t as showPanel, b as foldAll, bt as Annotation, dt as keymap, et as WidgetType, f as StreamLanguage, kt as Prec, l as LanguageDescription, mt as placeholder, ot as gutter, u as LanguageSupport, ut as hoverTooltip, vt as showTooltip, w as foldNodeProp, wt as Compartment } from "./dist-D7jHtwN8.js";
|
|
25
25
|
import { d as snippet, n as acceptCompletion, o as closeCompletion, r as autocompletion, u as insertCompletionText } from "./dist-g1p2PEVs.js";
|
|
26
26
|
import { p as _baseTimes_default } from "./_baseFor-DSVmVciX.js";
|
|
@@ -31,11 +31,11 @@ import { n as isArrayLikeObject_default, u as _baseRest_default } from "./merge-
|
|
|
31
31
|
import { a as get_default, t as _baseProperty_default } from "./_baseProperty-BVGrW_NZ.js";
|
|
32
32
|
import { i as debounce_default, r as KnownQueryParams, t as CSSClasses } from "./constants-DrOu5vvd.js";
|
|
33
33
|
import { t as isEmpty_default } from "./isEmpty-DQXRKNtW.js";
|
|
34
|
-
import { a as tooltipHandler, n as vegaLoadData, r as createBatchedLoader, t as parseCsvData } from "./loader-
|
|
34
|
+
import { a as tooltipHandler, n as vegaLoadData, r as createBatchedLoader, t as parseCsvData } from "./loader-B0KEFFi-.js";
|
|
35
35
|
import { A as looseObject, B as union, C as any, D as discriminatedUnion, E as custom, F as optional, G as parse$3, H as safeParseAsync, I as record, J as prettifyError, K as parseAsync, L as strictObject, M as never, N as number$2, O as lazy$4, P as object$1, R as string$2, S as _null, T as boolean$2, U as ZodError$1, V as unknown, W as toJSONSchema, _ as ZodString$1, a as ZodIssueCode$1, b as _enum, c as ZodBoolean$1, d as ZodDiscriminatedUnion$1, f as ZodEnum$1, g as ZodOptional$1, h as ZodObject$1, i as string$3, j as nan, k as literal, l as ZodDate$1, m as ZodNumber$1, n as date, o as ZodAny$1, p as ZodLiteral$1, q as $ZodError, r as number$3, s as ZodArray$1, t as zod_default, u as ZodDefault$1, v as ZodType$1, w as array$2, x as _instanceof, y as ZodUnion$1, z as tuple } from "./zod-DITCj31F.js";
|
|
36
36
|
import { t as invariant } from "./invariant-D9QLJ4SZ.js";
|
|
37
37
|
import { a as arrayInsert, c as arrayShallowEquals, i as arrayDelete, l as uniqueBy, n as once, o as arrayInsertMany, r as Arrays, s as arrayMove, t as memoizeLastValue, u as clamp } from "./once-BqS42WgZ.js";
|
|
38
|
-
import { n as getIframeCapabilities, t as useIframeCapabilities } from "./useIframeCapabilities-
|
|
38
|
+
import { n as getIframeCapabilities, t as useIframeCapabilities } from "./useIframeCapabilities-BBO_R0ww.js";
|
|
39
39
|
import { i as main_exports, r as init_main } from "./main-DhFbkwoC.js";
|
|
40
40
|
import { a as PLSQL, c as SQLite, d as schemaCompletionSource, f as sql, i as MySQL, l as StandardSQL, n as MSSQL, o as PostgreSQL, r as MariaSQL, s as SQLDialect, t as Cassandra, u as keywordCompletionSource } from "./dist-CPd_adhw.js";
|
|
41
41
|
import { a as markdown, s as markdownLanguage } from "./dist-CBA36Nuy.js";
|
|
@@ -47,7 +47,7 @@ import { n as stexMath } from "./stex-DrxP7bb3.js";
|
|
|
47
47
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm--WpIBtj8.js";
|
|
48
48
|
import { t as require_prop_types } from "./prop-types-C9QZf2SY.js";
|
|
49
49
|
import { n as formats } from "./vega-loader.browser-BJ1uJidF.js";
|
|
50
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
50
|
+
import { t as useAsyncData } from "./useAsyncData-BjNwqCfS.js";
|
|
51
51
|
import "./defaultLocale-qS7DaAmi.js";
|
|
52
52
|
import "./defaultLocale-Bxoo2-30.js";
|
|
53
53
|
import { c as katex } from "./katex-Dm9nZf6A.js";
|
|
@@ -34397,7 +34397,7 @@ ${c.sqlString}
|
|
|
34397
34397
|
return createSqlAdapter();
|
|
34398
34398
|
}
|
|
34399
34399
|
};
|
|
34400
|
-
var CHECKBOX_NAME = "Checkbox", [createCheckboxContext, createCheckboxScope] = createContextScope
|
|
34400
|
+
var CHECKBOX_NAME = "Checkbox", [createCheckboxContext, createCheckboxScope] = createContextScope(CHECKBOX_NAME), [CheckboxProviderImpl, useCheckboxContext] = createCheckboxContext(CHECKBOX_NAME);
|
|
34401
34401
|
function CheckboxProvider(e) {
|
|
34402
34402
|
let { __scopeCheckbox: r, checked: c, children: d, defaultChecked: f, disabled: _, form: v, name: y, onCheckedChange: S, required: w, value: E = "on", internal_do_not_use_render: O } = e, [M, I] = useControllableState({
|
|
34403
34403
|
prop: c,
|
|
@@ -34437,7 +34437,7 @@ ${c.sqlString}
|
|
|
34437
34437
|
}, [
|
|
34438
34438
|
_,
|
|
34439
34439
|
O
|
|
34440
|
-
]), (0, import_jsx_runtime.jsx)(Primitive
|
|
34440
|
+
]), (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
34441
34441
|
type: "button",
|
|
34442
34442
|
role: "checkbox",
|
|
34443
34443
|
"aria-checked": isIndeterminate(S) ? "mixed" : S,
|
|
@@ -34488,7 +34488,7 @@ ${c.sqlString}
|
|
|
34488
34488
|
let { __scopeCheckbox: c, forceMount: d, ...f } = e, _ = useCheckboxContext(INDICATOR_NAME$4, c);
|
|
34489
34489
|
return (0, import_jsx_runtime.jsx)(Presence, {
|
|
34490
34490
|
present: d || isIndeterminate(_.checked) || _.checked === true,
|
|
34491
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
34491
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
34492
34492
|
"data-state": getState$5(_.checked),
|
|
34493
34493
|
"data-disabled": _.disabled ? "" : void 0,
|
|
34494
34494
|
...f,
|
|
@@ -34520,7 +34520,7 @@ ${c.sqlString}
|
|
|
34520
34520
|
f
|
|
34521
34521
|
]);
|
|
34522
34522
|
let IY = import_react.useRef(isIndeterminate(_) ? false : _);
|
|
34523
|
-
return (0, import_jsx_runtime.jsx)(Primitive
|
|
34523
|
+
return (0, import_jsx_runtime.jsx)(Primitive.input, {
|
|
34524
34524
|
type: "checkbox",
|
|
34525
34525
|
"aria-hidden": true,
|
|
34526
34526
|
defaultChecked: v ?? IY.current,
|
|
@@ -40422,7 +40422,7 @@ ${c.sqlString}
|
|
|
40422
40422
|
fillRule: "evenodd",
|
|
40423
40423
|
clipRule: "evenodd"
|
|
40424
40424
|
}));
|
|
40425
|
-
}), import_react_dom$1 = __toESM(require_react_dom(), 1), NAVIGATION_MENU_NAME = "NavigationMenu", [Collection$2, useCollection$2, createCollectionScope$2] = createCollection(NAVIGATION_MENU_NAME), [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME), [createNavigationMenuContext, createNavigationMenuScope] = createContextScope
|
|
40425
|
+
}), import_react_dom$1 = __toESM(require_react_dom(), 1), NAVIGATION_MENU_NAME = "NavigationMenu", [Collection$2, useCollection$2, createCollectionScope$2] = createCollection(NAVIGATION_MENU_NAME), [FocusGroupCollection, useFocusGroupCollection, createFocusGroupCollectionScope] = createCollection(NAVIGATION_MENU_NAME), [createNavigationMenuContext, createNavigationMenuScope] = createContextScope(NAVIGATION_MENU_NAME, [
|
|
40426
40426
|
createCollectionScope$2,
|
|
40427
40427
|
createFocusGroupCollectionScope
|
|
40428
40428
|
]), [NavigationMenuProviderImpl, useNavigationMenuContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME), [ViewportContentProvider, useViewportContentContext] = createNavigationMenuContext(NAVIGATION_MENU_NAME), NavigationMenu$1 = import_react.forwardRef((e, r) => {
|
|
@@ -40472,7 +40472,7 @@ ${c.sqlString}
|
|
|
40472
40472
|
BY((r2) => r2 === e2 ? "" : e2);
|
|
40473
40473
|
},
|
|
40474
40474
|
onItemDismiss: () => BY(""),
|
|
40475
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
40475
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.nav, {
|
|
40476
40476
|
"aria-label": "Main",
|
|
40477
40477
|
"data-orientation": S,
|
|
40478
40478
|
dir: z,
|
|
@@ -40499,7 +40499,7 @@ ${c.sqlString}
|
|
|
40499
40499
|
onTriggerEnter: (e2) => E(e2),
|
|
40500
40500
|
onItemSelect: (e2) => E(e2),
|
|
40501
40501
|
onItemDismiss: () => E(""),
|
|
40502
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
40502
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
40503
40503
|
"data-orientation": v,
|
|
40504
40504
|
...y,
|
|
40505
40505
|
ref: r
|
|
@@ -40544,12 +40544,12 @@ ${c.sqlString}
|
|
|
40544
40544
|
})
|
|
40545
40545
|
});
|
|
40546
40546
|
}, LIST_NAME = "NavigationMenuList", NavigationMenuList$1 = import_react.forwardRef((e, r) => {
|
|
40547
|
-
let { __scopeNavigationMenu: c, ...d } = e, f = useNavigationMenuContext(LIST_NAME, c), _ = (0, import_jsx_runtime.jsx)(Primitive
|
|
40547
|
+
let { __scopeNavigationMenu: c, ...d } = e, f = useNavigationMenuContext(LIST_NAME, c), _ = (0, import_jsx_runtime.jsx)(Primitive.ul, {
|
|
40548
40548
|
"data-orientation": f.orientation,
|
|
40549
40549
|
...d,
|
|
40550
40550
|
ref: r
|
|
40551
40551
|
});
|
|
40552
|
-
return (0, import_jsx_runtime.jsx)(Primitive
|
|
40552
|
+
return (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
40553
40553
|
style: {
|
|
40554
40554
|
position: "relative"
|
|
40555
40555
|
},
|
|
@@ -40589,7 +40589,7 @@ ${c.sqlString}
|
|
|
40589
40589
|
onFocusProxyEnter: M,
|
|
40590
40590
|
onRootContentClose: I,
|
|
40591
40591
|
onContentFocusOutside: I,
|
|
40592
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
40592
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.li, {
|
|
40593
40593
|
...f,
|
|
40594
40594
|
ref: r
|
|
40595
40595
|
})
|
|
@@ -40605,7 +40605,7 @@ ${c.sqlString}
|
|
|
40605
40605
|
value: v.value,
|
|
40606
40606
|
children: (0, import_jsx_runtime.jsx)(FocusGroupItem, {
|
|
40607
40607
|
asChild: true,
|
|
40608
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
40608
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
40609
40609
|
id: w,
|
|
40610
40610
|
disabled: d,
|
|
40611
40611
|
"data-disabled": d ? "" : void 0,
|
|
@@ -40660,7 +40660,7 @@ ${c.sqlString}
|
|
|
40660
40660
|
let { __scopeNavigationMenu: c, active: d, onSelect: f, ..._ } = e;
|
|
40661
40661
|
return (0, import_jsx_runtime.jsx)(FocusGroupItem, {
|
|
40662
40662
|
asChild: true,
|
|
40663
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
40663
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.a, {
|
|
40664
40664
|
"data-active": d ? "" : void 0,
|
|
40665
40665
|
"aria-current": d ? "page" : void 0,
|
|
40666
40666
|
..._,
|
|
@@ -40710,7 +40710,7 @@ ${c.sqlString}
|
|
|
40710
40710
|
offset: E ? v.offsetLeft : v.offsetTop
|
|
40711
40711
|
});
|
|
40712
40712
|
};
|
|
40713
|
-
return useResizeObserver$1(v, M), useResizeObserver$1(f.indicatorTrack, M), S ? (0, import_jsx_runtime.jsx)(Primitive
|
|
40713
|
+
return useResizeObserver$1(v, M), useResizeObserver$1(f.indicatorTrack, M), S ? (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
40714
40714
|
"aria-hidden": true,
|
|
40715
40715
|
"data-state": O ? "visible" : "hidden",
|
|
40716
40716
|
"data-orientation": f.orientation,
|
|
@@ -40876,7 +40876,7 @@ ${c.sqlString}
|
|
|
40876
40876
|
width: E.offsetWidth,
|
|
40877
40877
|
height: E.offsetHeight
|
|
40878
40878
|
});
|
|
40879
|
-
}), (0, import_jsx_runtime.jsx)(Primitive
|
|
40879
|
+
}), (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
40880
40880
|
"data-state": getOpenState(z),
|
|
40881
40881
|
"data-orientation": _.orientation,
|
|
40882
40882
|
...f,
|
|
@@ -40908,7 +40908,7 @@ ${c.sqlString}
|
|
|
40908
40908
|
scope: c,
|
|
40909
40909
|
children: (0, import_jsx_runtime.jsx)(FocusGroupCollection.Slot, {
|
|
40910
40910
|
scope: c,
|
|
40911
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
40911
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
40912
40912
|
dir: f.dir,
|
|
40913
40913
|
...d,
|
|
40914
40914
|
ref: r
|
|
@@ -40924,7 +40924,7 @@ ${c.sqlString}
|
|
|
40924
40924
|
let { __scopeNavigationMenu: c, ...d } = e, f = useFocusGroupCollection(c), _ = useNavigationMenuContext(FOCUS_GROUP_ITEM_NAME, c);
|
|
40925
40925
|
return (0, import_jsx_runtime.jsx)(FocusGroupCollection.ItemSlot, {
|
|
40926
40926
|
scope: c,
|
|
40927
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
40927
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
40928
40928
|
...d,
|
|
40929
40929
|
ref: r,
|
|
40930
40930
|
onKeyDown: composeEventHandlers$1(e.onKeyDown, (e2) => {
|
|
@@ -44053,7 +44053,7 @@ ${c.sqlString}
|
|
|
44053
44053
|
}
|
|
44054
44054
|
window.customElements.define(e, r);
|
|
44055
44055
|
}
|
|
44056
|
-
var COLLAPSIBLE_NAME = "Collapsible", [createCollapsibleContext, createCollapsibleScope] = createContextScope
|
|
44056
|
+
var COLLAPSIBLE_NAME = "Collapsible", [createCollapsibleContext, createCollapsibleScope] = createContextScope(COLLAPSIBLE_NAME), [CollapsibleProvider, useCollapsibleContext] = createCollapsibleContext(COLLAPSIBLE_NAME), Collapsible = import_react.forwardRef((e, r) => {
|
|
44057
44057
|
let { __scopeCollapsible: c, open: d, defaultOpen: f, disabled: _, onOpenChange: v, ...y } = e, [S, w] = useControllableState({
|
|
44058
44058
|
prop: d,
|
|
44059
44059
|
defaultProp: f ?? false,
|
|
@@ -44068,7 +44068,7 @@ ${c.sqlString}
|
|
|
44068
44068
|
onOpenToggle: import_react.useCallback(() => w((e2) => !e2), [
|
|
44069
44069
|
w
|
|
44070
44070
|
]),
|
|
44071
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
44071
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
44072
44072
|
"data-state": getState$4(S),
|
|
44073
44073
|
"data-disabled": _ ? "" : void 0,
|
|
44074
44074
|
...y,
|
|
@@ -44079,7 +44079,7 @@ ${c.sqlString}
|
|
|
44079
44079
|
Collapsible.displayName = COLLAPSIBLE_NAME;
|
|
44080
44080
|
var TRIGGER_NAME$4 = "CollapsibleTrigger", CollapsibleTrigger = import_react.forwardRef((e, r) => {
|
|
44081
44081
|
let { __scopeCollapsible: c, ...d } = e, f = useCollapsibleContext(TRIGGER_NAME$4, c);
|
|
44082
|
-
return (0, import_jsx_runtime.jsx)(Primitive
|
|
44082
|
+
return (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
44083
44083
|
type: "button",
|
|
44084
44084
|
"aria-controls": f.contentId,
|
|
44085
44085
|
"aria-expanded": f.open || false,
|
|
@@ -44122,7 +44122,7 @@ ${c.sqlString}
|
|
|
44122
44122
|
}, [
|
|
44123
44123
|
v.open,
|
|
44124
44124
|
d
|
|
44125
|
-
]), (0, import_jsx_runtime.jsx)(Primitive
|
|
44125
|
+
]), (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
44126
44126
|
"data-state": getState$4(v.open),
|
|
44127
44127
|
"data-disabled": v.disabled ? "" : void 0,
|
|
44128
44128
|
id: v.contentId,
|
|
@@ -44147,7 +44147,7 @@ ${c.sqlString}
|
|
|
44147
44147
|
"ArrowUp",
|
|
44148
44148
|
"ArrowLeft",
|
|
44149
44149
|
"ArrowRight"
|
|
44150
|
-
], [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(ACCORDION_NAME), [createAccordionContext, createAccordionScope] = createContextScope
|
|
44150
|
+
], [Collection$1, useCollection$1, createCollectionScope$1] = createCollection(ACCORDION_NAME), [createAccordionContext, createAccordionScope] = createContextScope(ACCORDION_NAME, [
|
|
44151
44151
|
createCollectionScope$1,
|
|
44152
44152
|
createCollapsibleScope
|
|
44153
44153
|
]), useCollapsibleScope = createCollapsibleScope(), Accordion$1 = import_react.forwardRef((e, r) => {
|
|
@@ -44268,7 +44268,7 @@ ${c.sqlString}
|
|
|
44268
44268
|
orientation: _,
|
|
44269
44269
|
children: (0, import_jsx_runtime.jsx)(Collection$1.Slot, {
|
|
44270
44270
|
scope: c,
|
|
44271
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
44271
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
44272
44272
|
...v,
|
|
44273
44273
|
"data-orientation": _,
|
|
44274
44274
|
ref: y,
|
|
@@ -44300,7 +44300,7 @@ ${c.sqlString}
|
|
|
44300
44300
|
AccordionItem$1.displayName = ITEM_NAME$2;
|
|
44301
44301
|
var HEADER_NAME = "AccordionHeader", AccordionHeader = import_react.forwardRef((e, r) => {
|
|
44302
44302
|
let { __scopeAccordion: c, ...d } = e, f = useAccordionContext(ACCORDION_NAME, c), _ = useAccordionItemContext(HEADER_NAME, c);
|
|
44303
|
-
return (0, import_jsx_runtime.jsx)(Primitive
|
|
44303
|
+
return (0, import_jsx_runtime.jsx)(Primitive.h3, {
|
|
44304
44304
|
"data-orientation": f.orientation,
|
|
44305
44305
|
"data-state": getState$3(_.open),
|
|
44306
44306
|
"data-disabled": _.disabled ? "" : void 0,
|
|
@@ -52232,7 +52232,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
52232
52232
|
]
|
|
52233
52233
|
}), r[5] = f, r[6] = v, r[7] = y) : y = r[7], y;
|
|
52234
52234
|
};
|
|
52235
|
-
var TABS_NAME = "Tabs", [createTabsContext, createTabsScope] = createContextScope
|
|
52235
|
+
var TABS_NAME = "Tabs", [createTabsContext, createTabsScope] = createContextScope(TABS_NAME, [
|
|
52236
52236
|
createRovingFocusGroupScope
|
|
52237
52237
|
]), useRovingFocusGroupScope$1 = createRovingFocusGroupScope(), [TabsProvider, useTabsContext] = createTabsContext(TABS_NAME), Tabs$1 = import_react.forwardRef((e, r) => {
|
|
52238
52238
|
let { __scopeTabs: c, value: d, onValueChange: f, defaultValue: _, orientation: v = "horizontal", dir: y, activationMode: S = "automatic", ...w } = e, E = useDirection(y), [O, M] = useControllableState({
|
|
@@ -52249,7 +52249,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
52249
52249
|
orientation: v,
|
|
52250
52250
|
dir: E,
|
|
52251
52251
|
activationMode: S,
|
|
52252
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
52252
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
52253
52253
|
dir: E,
|
|
52254
52254
|
"data-orientation": v,
|
|
52255
52255
|
...w,
|
|
@@ -52266,7 +52266,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
52266
52266
|
orientation: _.orientation,
|
|
52267
52267
|
dir: _.dir,
|
|
52268
52268
|
loop: d,
|
|
52269
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
52269
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
52270
52270
|
role: "tablist",
|
|
52271
52271
|
"aria-orientation": _.orientation,
|
|
52272
52272
|
...f,
|
|
@@ -52282,7 +52282,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
52282
52282
|
...y,
|
|
52283
52283
|
focusable: !f,
|
|
52284
52284
|
active: E,
|
|
52285
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
52285
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
52286
52286
|
type: "button",
|
|
52287
52287
|
role: "tab",
|
|
52288
52288
|
"aria-selected": E,
|
|
@@ -52317,7 +52317,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
52317
52317
|
return () => cancelAnimationFrame(e2);
|
|
52318
52318
|
}, []), (0, import_jsx_runtime.jsx)(Presence, {
|
|
52319
52319
|
present: f || E,
|
|
52320
|
-
children: ({ present: c2 }) => (0, import_jsx_runtime.jsx)(Primitive
|
|
52320
|
+
children: ({ present: c2 }) => (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
52321
52321
|
"data-state": E ? "active" : "inactive",
|
|
52322
52322
|
"data-orientation": y.orientation,
|
|
52323
52323
|
role: "tabpanel",
|
|
@@ -52381,7 +52381,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
52381
52381
|
}), c[5] = f, c[6] = r, c[7] = _, c[8] = v) : v = c[8], v;
|
|
52382
52382
|
});
|
|
52383
52383
|
TabsContent.displayName = Content.displayName;
|
|
52384
|
-
var POPOVER_NAME = "Popover", [createPopoverContext, createPopoverScope] = createContextScope
|
|
52384
|
+
var POPOVER_NAME = "Popover", [createPopoverContext, createPopoverScope] = createContextScope(POPOVER_NAME, [
|
|
52385
52385
|
createPopperScope
|
|
52386
52386
|
]), usePopperScope = createPopperScope(), [PopoverProvider, usePopoverContext] = createPopoverContext(POPOVER_NAME), Popover$2 = (e) => {
|
|
52387
52387
|
let { __scopePopover: r, children: c, open: d, defaultOpen: f, onOpenChange: _, modal: v = false } = e, y = usePopperScope(r), S = import_react.useRef(null), [w, E] = import_react.useState(false), [O, M] = useControllableState({
|
|
@@ -52423,7 +52423,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
52423
52423
|
});
|
|
52424
52424
|
PopoverAnchor.displayName = ANCHOR_NAME;
|
|
52425
52425
|
var TRIGGER_NAME$1 = "PopoverTrigger", PopoverTrigger$1 = import_react.forwardRef((e, r) => {
|
|
52426
|
-
let { __scopePopover: c, ...d } = e, f = usePopoverContext(TRIGGER_NAME$1, c), _ = usePopperScope(c), v = useComposedRefs(r, f.triggerRef), y = (0, import_jsx_runtime.jsx)(Primitive
|
|
52426
|
+
let { __scopePopover: c, ...d } = e, f = usePopoverContext(TRIGGER_NAME$1, c), _ = usePopperScope(c), v = useComposedRefs(r, f.triggerRef), y = (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
52427
52427
|
type: "button",
|
|
52428
52428
|
"aria-haspopup": "dialog",
|
|
52429
52429
|
"aria-expanded": f.open,
|
|
@@ -52554,7 +52554,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
52554
52554
|
});
|
|
52555
52555
|
}), CLOSE_NAME = "PopoverClose", PopoverClose = import_react.forwardRef((e, r) => {
|
|
52556
52556
|
let { __scopePopover: c, ...d } = e, f = usePopoverContext(CLOSE_NAME, c);
|
|
52557
|
-
return (0, import_jsx_runtime.jsx)(Primitive
|
|
52557
|
+
return (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
52558
52558
|
type: "button",
|
|
52559
52559
|
...d,
|
|
52560
52560
|
ref: r,
|
|
@@ -53040,7 +53040,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
53040
53040
|
}, rX = (e2) => {
|
|
53041
53041
|
e2.preventDefault(), e2.metaKey ? QY(0) : e2.altKey ? eX(-1) : $Y(-1);
|
|
53042
53042
|
};
|
|
53043
|
-
return import_react.createElement(Primitive.div, {
|
|
53043
|
+
return import_react.createElement(Primitive$1.div, {
|
|
53044
53044
|
ref: r,
|
|
53045
53045
|
tabIndex: -1,
|
|
53046
53046
|
...IY,
|
|
@@ -53120,7 +53120,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
53120
53120
|
}
|
|
53121
53121
|
if (!O) return null;
|
|
53122
53122
|
let { disabled: z, value: G, onSelect: q, forceMount: IY, keywords: LY, ...RY } = e;
|
|
53123
|
-
return import_react.createElement(Primitive.div, {
|
|
53123
|
+
return import_react.createElement(Primitive$1.div, {
|
|
53124
53124
|
ref: composeRefs(d, r),
|
|
53125
53125
|
...RY,
|
|
53126
53126
|
id: c,
|
|
@@ -53146,7 +53146,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
53146
53146
|
}), [
|
|
53147
53147
|
f
|
|
53148
53148
|
]);
|
|
53149
|
-
return import_react.createElement(Primitive.div, {
|
|
53149
|
+
return import_react.createElement(Primitive$1.div, {
|
|
53150
53150
|
ref: composeRefs(y, r),
|
|
53151
53151
|
..._,
|
|
53152
53152
|
"cmdk-group": "",
|
|
@@ -53166,7 +53166,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
53166
53166
|
}, e2))));
|
|
53167
53167
|
}), ye$1 = import_react.forwardRef((e, r) => {
|
|
53168
53168
|
let { alwaysRender: c, ...d } = e, f = import_react.useRef(null), _ = P$2((e2) => !e2.search);
|
|
53169
|
-
return !c && !_ ? null : import_react.createElement(Primitive.div, {
|
|
53169
|
+
return !c && !_ ? null : import_react.createElement(Primitive$1.div, {
|
|
53170
53170
|
ref: composeRefs(f, r),
|
|
53171
53171
|
...d,
|
|
53172
53172
|
"cmdk-separator": "",
|
|
@@ -53178,7 +53178,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
53178
53178
|
e.value != null && _.setState("search", e.value);
|
|
53179
53179
|
}, [
|
|
53180
53180
|
e.value
|
|
53181
|
-
]), import_react.createElement(Primitive.input, {
|
|
53181
|
+
]), import_react.createElement(Primitive$1.input, {
|
|
53182
53182
|
ref: r,
|
|
53183
53183
|
...d,
|
|
53184
53184
|
"cmdk-input": "",
|
|
@@ -53212,7 +53212,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
53212
53212
|
cancelAnimationFrame(c2), d2.unobserve(e2);
|
|
53213
53213
|
};
|
|
53214
53214
|
}
|
|
53215
|
-
}, []), import_react.createElement(Primitive.div, {
|
|
53215
|
+
}, []), import_react.createElement(Primitive$1.div, {
|
|
53216
53216
|
ref: composeRefs(_, r),
|
|
53217
53217
|
...f,
|
|
53218
53218
|
"cmdk-list": "",
|
|
@@ -53243,14 +53243,14 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
53243
53243
|
ref: r,
|
|
53244
53244
|
...y
|
|
53245
53245
|
}))));
|
|
53246
|
-
}), Ie$1 = import_react.forwardRef((e, r) => P$2((e2) => e2.filtered.count === 0) ? import_react.createElement(Primitive.div, {
|
|
53246
|
+
}), Ie$1 = import_react.forwardRef((e, r) => P$2((e2) => e2.filtered.count === 0) ? import_react.createElement(Primitive$1.div, {
|
|
53247
53247
|
ref: r,
|
|
53248
53248
|
...e,
|
|
53249
53249
|
"cmdk-empty": "",
|
|
53250
53250
|
role: "presentation"
|
|
53251
53251
|
}) : null), Pe$1 = import_react.forwardRef((e, r) => {
|
|
53252
53252
|
let { progress: c, children: d, label: f = "Loading...", ..._ } = e;
|
|
53253
|
-
return import_react.createElement(Primitive.div, {
|
|
53253
|
+
return import_react.createElement(Primitive$1.div, {
|
|
53254
53254
|
ref: r,
|
|
53255
53255
|
..._,
|
|
53256
53256
|
"cmdk-loading": "",
|
|
@@ -58664,7 +58664,7 @@ Database schema: ${c}`), (_a3 = r2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
58664
58664
|
hasConsoleOutput: (v == null ? void 0 : v.consoleOutputs) != null
|
|
58665
58665
|
};
|
|
58666
58666
|
}
|
|
58667
|
-
const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-
|
|
58667
|
+
const LazyAnyLanguageCodeMirror = (0, import_react.lazy)(() => import("./any-language-editor-DZc6NCTp.js"));
|
|
58668
58668
|
var import_compiler_runtime$114 = require_compiler_runtime(), extensions = [
|
|
58669
58669
|
EditorView.lineWrapping
|
|
58670
58670
|
], SUPPORTED_LANGUAGES = /* @__PURE__ */ new Set([
|
|
@@ -60113,7 +60113,7 @@ ${r}
|
|
|
60113
60113
|
children: c
|
|
60114
60114
|
}), r[1] = c, r[2] = f), f;
|
|
60115
60115
|
};
|
|
60116
|
-
var CONTEXT_MENU_NAME = "ContextMenu", [createContextMenuContext, createContextMenuScope] = createContextScope
|
|
60116
|
+
var CONTEXT_MENU_NAME = "ContextMenu", [createContextMenuContext, createContextMenuScope] = createContextScope(CONTEXT_MENU_NAME, [
|
|
60117
60117
|
createMenuScope
|
|
60118
60118
|
]), useMenuScope = createMenuScope(), [ContextMenuProvider, useContextMenuContext] = createContextMenuContext(CONTEXT_MENU_NAME), ContextMenu$1 = (e) => {
|
|
60119
60119
|
let { __scopeContextMenu: r, children: c, onOpenChange: d, dir: f, modal: _ = true } = e, [v, y] = import_react.useState(false), S = useMenuScope(r), w = useCallbackRef(d), E = import_react.useCallback((e2) => {
|
|
@@ -60164,7 +60164,7 @@ ${r}
|
|
|
60164
60164
|
...v,
|
|
60165
60165
|
virtualRef: S
|
|
60166
60166
|
}),
|
|
60167
|
-
(0, import_jsx_runtime.jsx)(Primitive
|
|
60167
|
+
(0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
60168
60168
|
"data-state": _.open ? "open" : "closed",
|
|
60169
60169
|
"data-disabled": d ? "" : void 0,
|
|
60170
60170
|
...f,
|
|
@@ -61402,6 +61402,170 @@ ${r}
|
|
|
61402
61402
|
...r
|
|
61403
61403
|
});
|
|
61404
61404
|
}
|
|
61405
|
+
var import_cuid2 = require_cuid2();
|
|
61406
|
+
function createContextScope$1(e, r = []) {
|
|
61407
|
+
let c = [];
|
|
61408
|
+
function d(r2, d2) {
|
|
61409
|
+
let f2 = import_react.createContext(d2);
|
|
61410
|
+
f2.displayName = r2 + "Context";
|
|
61411
|
+
let _ = c.length;
|
|
61412
|
+
c = [
|
|
61413
|
+
...c,
|
|
61414
|
+
d2
|
|
61415
|
+
];
|
|
61416
|
+
let v = (r3) => {
|
|
61417
|
+
var _a2;
|
|
61418
|
+
let { scope: c2, children: d3, ...v2 } = r3, y2 = ((_a2 = c2 == null ? void 0 : c2[e]) == null ? void 0 : _a2[_]) || f2, S = import_react.useMemo(() => v2, Object.values(v2));
|
|
61419
|
+
return (0, import_jsx_runtime.jsx)(y2.Provider, {
|
|
61420
|
+
value: S,
|
|
61421
|
+
children: d3
|
|
61422
|
+
});
|
|
61423
|
+
};
|
|
61424
|
+
v.displayName = r2 + "Provider";
|
|
61425
|
+
function y(c2, v2) {
|
|
61426
|
+
var _a2;
|
|
61427
|
+
let y2 = ((_a2 = v2 == null ? void 0 : v2[e]) == null ? void 0 : _a2[_]) || f2, S = import_react.useContext(y2);
|
|
61428
|
+
if (S) return S;
|
|
61429
|
+
if (d2 !== void 0) return d2;
|
|
61430
|
+
throw Error(`\`${c2}\` must be used within \`${r2}\``);
|
|
61431
|
+
}
|
|
61432
|
+
return [
|
|
61433
|
+
v,
|
|
61434
|
+
y
|
|
61435
|
+
];
|
|
61436
|
+
}
|
|
61437
|
+
let f = () => {
|
|
61438
|
+
let r2 = c.map((e2) => import_react.createContext(e2));
|
|
61439
|
+
return function(c2) {
|
|
61440
|
+
let d2 = (c2 == null ? void 0 : c2[e]) || r2;
|
|
61441
|
+
return import_react.useMemo(() => ({
|
|
61442
|
+
[`__scope${e}`]: {
|
|
61443
|
+
...c2,
|
|
61444
|
+
[e]: d2
|
|
61445
|
+
}
|
|
61446
|
+
}), [
|
|
61447
|
+
c2,
|
|
61448
|
+
d2
|
|
61449
|
+
]);
|
|
61450
|
+
};
|
|
61451
|
+
};
|
|
61452
|
+
return f.scopeName = e, [
|
|
61453
|
+
d,
|
|
61454
|
+
composeContextScopes(f, ...r)
|
|
61455
|
+
];
|
|
61456
|
+
}
|
|
61457
|
+
function composeContextScopes(...e) {
|
|
61458
|
+
let r = e[0];
|
|
61459
|
+
if (e.length === 1) return r;
|
|
61460
|
+
let c = () => {
|
|
61461
|
+
let c2 = e.map((e2) => ({
|
|
61462
|
+
useScope: e2(),
|
|
61463
|
+
scopeName: e2.scopeName
|
|
61464
|
+
}));
|
|
61465
|
+
return function(e2) {
|
|
61466
|
+
let d = c2.reduce((r2, { useScope: c3, scopeName: d2 }) => {
|
|
61467
|
+
let f = c3(e2)[`__scope${d2}`];
|
|
61468
|
+
return {
|
|
61469
|
+
...r2,
|
|
61470
|
+
...f
|
|
61471
|
+
};
|
|
61472
|
+
}, {});
|
|
61473
|
+
return import_react.useMemo(() => ({
|
|
61474
|
+
[`__scope${r.scopeName}`]: d
|
|
61475
|
+
}), [
|
|
61476
|
+
d
|
|
61477
|
+
]);
|
|
61478
|
+
};
|
|
61479
|
+
};
|
|
61480
|
+
return c.scopeName = r.scopeName, c;
|
|
61481
|
+
}
|
|
61482
|
+
var PROGRESS_NAME = "Progress", DEFAULT_MAX = 100, [createProgressContext, createProgressScope] = createContextScope$1(PROGRESS_NAME), [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME), Progress$1 = import_react.forwardRef((e, r) => {
|
|
61483
|
+
let { __scopeProgress: c, value: d = null, max: f, getValueLabel: _ = defaultGetValueLabel, ...v } = e;
|
|
61484
|
+
(f || f === 0) && !isValidMaxNumber(f) && console.error(getInvalidMaxError(`${f}`, "Progress"));
|
|
61485
|
+
let y = isValidMaxNumber(f) ? f : DEFAULT_MAX;
|
|
61486
|
+
d !== null && !isValidValueNumber(d, y) && console.error(getInvalidValueError(`${d}`, "Progress"));
|
|
61487
|
+
let S = isValidValueNumber(d, y) ? d : null, w = isNumber(S) ? _(S, y) : void 0;
|
|
61488
|
+
return (0, import_jsx_runtime.jsx)(ProgressProvider, {
|
|
61489
|
+
scope: c,
|
|
61490
|
+
value: S,
|
|
61491
|
+
max: y,
|
|
61492
|
+
children: (0, import_jsx_runtime.jsx)(Primitive$1.div, {
|
|
61493
|
+
"aria-valuemax": y,
|
|
61494
|
+
"aria-valuemin": 0,
|
|
61495
|
+
"aria-valuenow": isNumber(S) ? S : void 0,
|
|
61496
|
+
"aria-valuetext": w,
|
|
61497
|
+
role: "progressbar",
|
|
61498
|
+
"data-state": getProgressState(S, y),
|
|
61499
|
+
"data-value": S ?? void 0,
|
|
61500
|
+
"data-max": y,
|
|
61501
|
+
...v,
|
|
61502
|
+
ref: r
|
|
61503
|
+
})
|
|
61504
|
+
});
|
|
61505
|
+
});
|
|
61506
|
+
Progress$1.displayName = PROGRESS_NAME;
|
|
61507
|
+
var INDICATOR_NAME$1 = "ProgressIndicator", ProgressIndicator = import_react.forwardRef((e, r) => {
|
|
61508
|
+
let { __scopeProgress: c, ...d } = e, f = useProgressContext(INDICATOR_NAME$1, c);
|
|
61509
|
+
return (0, import_jsx_runtime.jsx)(Primitive$1.div, {
|
|
61510
|
+
"data-state": getProgressState(f.value, f.max),
|
|
61511
|
+
"data-value": f.value ?? void 0,
|
|
61512
|
+
"data-max": f.max,
|
|
61513
|
+
...d,
|
|
61514
|
+
ref: r
|
|
61515
|
+
});
|
|
61516
|
+
});
|
|
61517
|
+
ProgressIndicator.displayName = INDICATOR_NAME$1;
|
|
61518
|
+
function defaultGetValueLabel(e, r) {
|
|
61519
|
+
return `${Math.round(e / r * 100)}%`;
|
|
61520
|
+
}
|
|
61521
|
+
function getProgressState(e, r) {
|
|
61522
|
+
return e == null ? "indeterminate" : e === r ? "complete" : "loading";
|
|
61523
|
+
}
|
|
61524
|
+
function isNumber(e) {
|
|
61525
|
+
return typeof e == "number";
|
|
61526
|
+
}
|
|
61527
|
+
function isValidMaxNumber(e) {
|
|
61528
|
+
return isNumber(e) && !isNaN(e) && e > 0;
|
|
61529
|
+
}
|
|
61530
|
+
function isValidValueNumber(e, r) {
|
|
61531
|
+
return isNumber(e) && !isNaN(e) && e <= r && e >= 0;
|
|
61532
|
+
}
|
|
61533
|
+
function getInvalidMaxError(e, r) {
|
|
61534
|
+
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${DEFAULT_MAX}\`.`;
|
|
61535
|
+
}
|
|
61536
|
+
function getInvalidValueError(e, r) {
|
|
61537
|
+
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:
|
|
61538
|
+
- a positive number
|
|
61539
|
+
- less than the value passed to \`max\` (or ${DEFAULT_MAX} if no \`max\` prop is set)
|
|
61540
|
+
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
61541
|
+
|
|
61542
|
+
Defaulting to \`null\`.`;
|
|
61543
|
+
}
|
|
61544
|
+
var Root$3 = Progress$1, Indicator$2 = ProgressIndicator, import_compiler_runtime$104 = require_compiler_runtime(), Progress = import_react.forwardRef((e, r) => {
|
|
61545
|
+
let c = (0, import_compiler_runtime$104.c)(20), d, f, _, v;
|
|
61546
|
+
c[0] === e ? (d = c[1], f = c[2], _ = c[3], v = c[4]) : ({ className: d, value: v, indeterminate: f, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = _, c[4] = v);
|
|
61547
|
+
let y;
|
|
61548
|
+
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);
|
|
61549
|
+
let S = f ? "w-1/3 animate-progress-indeterminate" : "w-full transition-transform duration-300 ease-out", w;
|
|
61550
|
+
c[7] === S ? w = c[8] : (w = cn("h-full flex-1 bg-primary", S), c[7] = S, c[8] = w);
|
|
61551
|
+
let E;
|
|
61552
|
+
c[9] !== f || c[10] !== v ? (E = f ? void 0 : {
|
|
61553
|
+
transform: `translateX(-${100 - (v || 0)}%)`
|
|
61554
|
+
}, c[9] = f, c[10] = v, c[11] = E) : E = c[11];
|
|
61555
|
+
let O;
|
|
61556
|
+
c[12] !== w || c[13] !== E ? (O = (0, import_jsx_runtime.jsx)(Indicator$2, {
|
|
61557
|
+
className: w,
|
|
61558
|
+
style: E
|
|
61559
|
+
}), c[12] = w, c[13] = E, c[14] = O) : O = c[14];
|
|
61560
|
+
let M;
|
|
61561
|
+
return c[15] !== _ || c[16] !== r || c[17] !== y || c[18] !== O ? (M = (0, import_jsx_runtime.jsx)(Root$3, {
|
|
61562
|
+
ref: r,
|
|
61563
|
+
className: y,
|
|
61564
|
+
..._,
|
|
61565
|
+
children: O
|
|
61566
|
+
}), c[15] = _, c[16] = r, c[17] = y, c[18] = O, c[19] = M) : M = c[19], M;
|
|
61567
|
+
});
|
|
61568
|
+
Progress.displayName = Root$3.displayName;
|
|
61405
61569
|
async function downloadHTMLAsImage(e) {
|
|
61406
61570
|
let { element: r, filename: c, prepare: d } = e, f = document.getElementById("App"), _ = (f == null ? void 0 : f.scrollTop) ?? 0, v;
|
|
61407
61571
|
d ? v = d(r) : document.body.classList.add("printing");
|
|
@@ -61427,7 +61591,7 @@ ${r}
|
|
|
61427
61591
|
let c = URL.createObjectURL(e);
|
|
61428
61592
|
downloadByURL(c, r), URL.revokeObjectURL(c);
|
|
61429
61593
|
}
|
|
61430
|
-
var import_compiler_runtime$
|
|
61594
|
+
var import_compiler_runtime$103 = require_compiler_runtime(), options = [
|
|
61431
61595
|
{
|
|
61432
61596
|
label: "CSV",
|
|
61433
61597
|
format: "csv",
|
|
@@ -61470,7 +61634,7 @@ ${r}
|
|
|
61470
61634
|
}
|
|
61471
61635
|
];
|
|
61472
61636
|
const DownloadAs = (e) => {
|
|
61473
|
-
let r = (0, import_compiler_runtime$
|
|
61637
|
+
let r = (0, import_compiler_runtime$103.c)(18), { locale: c } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), d;
|
|
61474
61638
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (0, import_jsx_runtime.jsxs)(Button, {
|
|
61475
61639
|
"data-testid": "download-as-button",
|
|
61476
61640
|
size: "xs",
|
|
@@ -62160,10 +62324,10 @@ ${r}
|
|
|
62160
62324
|
]
|
|
62161
62325
|
}), e.focus(), true;
|
|
62162
62326
|
}
|
|
62163
|
-
var import_compiler_runtime$
|
|
62327
|
+
var import_compiler_runtime$101 = require_compiler_runtime(), KEY$2 = "item";
|
|
62164
62328
|
const MarimoTracebackOutput = (e) => {
|
|
62165
62329
|
var _a2;
|
|
62166
|
-
let r = (0, import_compiler_runtime$
|
|
62330
|
+
let r = (0, import_compiler_runtime$101.c)(47), { onRefactorWithAI: c, traceback: d, cellId: f } = e, _;
|
|
62167
62331
|
r[0] === d ? _ = r[1] : (_ = renderHTML({
|
|
62168
62332
|
html: d,
|
|
62169
62333
|
additionalReplacements: [
|
|
@@ -62412,7 +62576,7 @@ ${O}`,
|
|
|
62412
62576
|
});
|
|
62413
62577
|
};
|
|
62414
62578
|
var InsertBreakpointContent = () => {
|
|
62415
|
-
let e = (0, import_compiler_runtime$
|
|
62579
|
+
let e = (0, import_compiler_runtime$101.c)(1), r;
|
|
62416
62580
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
62417
62581
|
children: [
|
|
62418
62582
|
"Insert a ",
|
|
@@ -62466,9 +62630,9 @@ ${O}`,
|
|
|
62466
62630
|
return "\u2753";
|
|
62467
62631
|
}
|
|
62468
62632
|
}
|
|
62469
|
-
var import_compiler_runtime$
|
|
62633
|
+
var import_compiler_runtime$100 = require_compiler_runtime(), METADATA_KEY = "__metadata__";
|
|
62470
62634
|
const OutputRenderer = (0, import_react.memo)((e) => {
|
|
62471
|
-
let r = (0, import_compiler_runtime$
|
|
62635
|
+
let r = (0, import_compiler_runtime$100.c)(51), { message: c, onRefactorWithAI: d, cellId: f, wrapText: _, metadata: v, renderFallback: y } = e, { theme: S } = useTheme(), w;
|
|
62472
62636
|
bb0: {
|
|
62473
62637
|
let e2 = c.data;
|
|
62474
62638
|
switch (c.mimetype) {
|
|
@@ -62657,7 +62821,7 @@ ${O}`,
|
|
|
62657
62821
|
OutputRenderer.displayName = "OutputRenderer";
|
|
62658
62822
|
var MimeBundleOutputRenderer = (0, import_react.memo)((e) => {
|
|
62659
62823
|
var _a2;
|
|
62660
|
-
let r = (0, import_compiler_runtime$
|
|
62824
|
+
let r = (0, import_compiler_runtime$100.c)(31), { data: c, channel: d, cellId: f } = e, _ = Array.isArray(c) ? c[0] : c, { mode: v } = useAtomValue(viewStateAtom), y = v === "present" || v === "read", S = _[METADATA_KEY], w, E, O, M, I, z, G, q;
|
|
62661
62825
|
if (r[0] !== y || r[1] !== f || r[2] !== d || r[3] !== S || r[4] !== _) {
|
|
62662
62826
|
q = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
62663
62827
|
bb0: {
|
|
@@ -62728,7 +62892,7 @@ ${O}`,
|
|
|
62728
62892
|
});
|
|
62729
62893
|
MimeBundleOutputRenderer.displayName = "MimeBundleOutputRenderer";
|
|
62730
62894
|
const OutputArea = import_react.memo((e) => {
|
|
62731
|
-
let r = (0, import_compiler_runtime$
|
|
62895
|
+
let r = (0, import_compiler_runtime$100.c)(17), { output: c, cellId: d, stale: f, loading: _, allowExpand: v, forceExpand: y, className: S } = e;
|
|
62732
62896
|
if (c === null || c.channel === "output" && c.data === "") return null;
|
|
62733
62897
|
let w = f ? "This output is stale" : void 0, E = v ? ExpandableOutput : Div, O;
|
|
62734
62898
|
r[0] === d ? O = r[1] : (O = CellOutputId.create(d), r[0] = d, r[1] = O);
|
|
@@ -62753,7 +62917,7 @@ ${O}`,
|
|
|
62753
62917
|
});
|
|
62754
62918
|
OutputArea.displayName = "OutputArea";
|
|
62755
62919
|
var Div = import_react.forwardRef((e, r) => {
|
|
62756
|
-
let c = (0, import_compiler_runtime$
|
|
62920
|
+
let c = (0, import_compiler_runtime$100.c)(3), d;
|
|
62757
62921
|
return c[0] !== e || c[1] !== r ? (d = (0, import_jsx_runtime.jsx)("div", {
|
|
62758
62922
|
ref: r,
|
|
62759
62923
|
...e
|
|
@@ -62761,7 +62925,7 @@ ${O}`,
|
|
|
62761
62925
|
});
|
|
62762
62926
|
Div.displayName = "Div";
|
|
62763
62927
|
var ExpandableOutput = import_react.memo((e) => {
|
|
62764
|
-
let r = (0, import_compiler_runtime$
|
|
62928
|
+
let r = (0, import_compiler_runtime$100.c)(25), { cellId: c, children: d, forceExpand: f, ..._ } = e, v = (0, import_react.useRef)(null), [y, S] = useExpandedOutput(c), [w, E] = (0, import_react.useState)(false), { hasFullscreen: O } = useIframeCapabilities(), M;
|
|
62765
62929
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = () => {
|
|
62766
62930
|
if (!v.current) return;
|
|
62767
62931
|
let e2 = v.current, r2 = new ResizeObserver(() => {
|
|
@@ -62888,8 +63052,8 @@ ${O}`,
|
|
|
62888
63052
|
})
|
|
62889
63053
|
}, r);
|
|
62890
63054
|
}
|
|
62891
|
-
var import_compiler_runtime$
|
|
62892
|
-
let r = (0, import_compiler_runtime$
|
|
63055
|
+
var import_compiler_runtime$99 = require_compiler_runtime(), CopyButton$1 = (e) => {
|
|
63056
|
+
let r = (0, import_compiler_runtime$99.c)(8), { value: c } = e, d = typeof c == "string" && (c.startsWith("text/html:") || c.startsWith("image/") || c.startsWith("video/")), [f, _] = (0, import_react.useState)(false), v;
|
|
62893
63057
|
r[0] === c ? v = r[1] : (v = async (e2) => {
|
|
62894
63058
|
e2.stopPropagation(), await copyToClipboard(c), _(true), setTimeout(() => _(false), 1e3);
|
|
62895
63059
|
}, r[0] = c, r[1] = v);
|
|
@@ -62912,7 +63076,7 @@ ${O}`,
|
|
|
62912
63076
|
children: O
|
|
62913
63077
|
}), r[5] = y, r[6] = O, r[7] = M) : M = r[7], M;
|
|
62914
63078
|
}, JSONCopyButton = (e) => {
|
|
62915
|
-
let r = (0, import_compiler_runtime$
|
|
63079
|
+
let r = (0, import_compiler_runtime$99.c)(5), c;
|
|
62916
63080
|
r[0] === e.value ? c = r[1] : (c = JSON.stringify(e.value, null, 2), r[0] = e.value, r[1] = c);
|
|
62917
63081
|
let d;
|
|
62918
63082
|
return r[2] !== e || r[3] !== c ? (d = (0, import_jsx_runtime.jsx)(CopyButton$1, {
|
|
@@ -62920,7 +63084,7 @@ ${O}`,
|
|
|
62920
63084
|
value: c
|
|
62921
63085
|
}), r[2] = e, r[3] = c, r[4] = d) : d = r[4], d;
|
|
62922
63086
|
}, PyCopyButton = (e) => {
|
|
62923
|
-
let r = (0, import_compiler_runtime$
|
|
63087
|
+
let r = (0, import_compiler_runtime$99.c)(5), c;
|
|
62924
63088
|
r[0] === e.value ? c = r[1] : (c = getCopyValue(e.value), r[0] = e.value, r[1] = c);
|
|
62925
63089
|
let d;
|
|
62926
63090
|
return r[2] !== e || r[3] !== c ? (d = (0, import_jsx_runtime.jsx)(CopyButton$1, {
|
|
@@ -62929,7 +63093,7 @@ ${O}`,
|
|
|
62929
63093
|
}), r[2] = e, r[3] = c, r[4] = d) : d = r[4], d;
|
|
62930
63094
|
};
|
|
62931
63095
|
const JsonOutput = (0, import_react.memo)((e) => {
|
|
62932
|
-
let r = (0, import_compiler_runtime$
|
|
63096
|
+
let r = (0, import_compiler_runtime$99.c)(23), { data: c, format: d, name: f, valueTypes: _, className: v } = e, y = d === void 0 ? "auto" : d, S = f === void 0 ? false : f, w = _ === void 0 ? "python" : _, { theme: E } = useTheme();
|
|
62933
63097
|
y === "auto" && (y = inferBestFormat(c));
|
|
62934
63098
|
let O;
|
|
62935
63099
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = {
|
|
@@ -62988,7 +63152,7 @@ ${O}`,
|
|
|
62988
63152
|
return typeof e == "object" && e ? "tree" : "raw";
|
|
62989
63153
|
}
|
|
62990
63154
|
var COLLAPSED_TEXT_LENGTH = 100, CollapsibleTextOutput = (e) => {
|
|
62991
|
-
let r = (0, import_compiler_runtime$
|
|
63155
|
+
let r = (0, import_compiler_runtime$99.c)(11), [c, d] = (0, import_react.useState)(true);
|
|
62992
63156
|
if (e.text.length <= COLLAPSED_TEXT_LENGTH) {
|
|
62993
63157
|
let c2;
|
|
62994
63158
|
return r[0] === e.text ? c2 = r[1] : (c2 = (0, import_jsx_runtime.jsx)("span", {
|
|
@@ -63197,9 +63361,9 @@ ${O}`,
|
|
|
63197
63361
|
return c <= 20 ? void 0 : c >= 50 ? 5 : 10;
|
|
63198
63362
|
}
|
|
63199
63363
|
}
|
|
63200
|
-
var import_compiler_runtime$
|
|
63364
|
+
var import_compiler_runtime$98 = require_compiler_runtime();
|
|
63201
63365
|
const BadPluginData = (e) => {
|
|
63202
|
-
let r = (0, import_compiler_runtime$
|
|
63366
|
+
let r = (0, import_compiler_runtime$98.c)(16), { error: c, badData: d, shadowRoot: f } = e;
|
|
63203
63367
|
if (c instanceof ZodError$1) {
|
|
63204
63368
|
let e2;
|
|
63205
63369
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
@@ -63557,7 +63721,6 @@ ${O}`,
|
|
|
63557
63721
|
function isUIElement(e) {
|
|
63558
63722
|
return e.tagName === UI_ELEMENT_TAG_NAME;
|
|
63559
63723
|
}
|
|
63560
|
-
var import_cuid2 = require_cuid2();
|
|
63561
63724
|
const sidebarAtom = atomWithReducer({
|
|
63562
63725
|
isOpen: true
|
|
63563
63726
|
}, (e, r) => {
|
|
@@ -64049,7 +64212,7 @@ ${O}`,
|
|
|
64049
64212
|
object$1({
|
|
64050
64213
|
method: literal("close")
|
|
64051
64214
|
})
|
|
64052
|
-
]), import_compiler_runtime$
|
|
64215
|
+
]), import_compiler_runtime$97 = require_compiler_runtime();
|
|
64053
64216
|
const AnyWidgetPlugin = createPlugin("marimo-anywidget").withData(object$1({
|
|
64054
64217
|
jsUrl: string$2(),
|
|
64055
64218
|
jsHash: string$2(),
|
|
@@ -64163,7 +64326,7 @@ ${O}`,
|
|
|
64163
64326
|
return typeof e == "object" && !!e && "model_id" in e;
|
|
64164
64327
|
}
|
|
64165
64328
|
var LoadedSlot = (e) => {
|
|
64166
|
-
let r = (0, import_compiler_runtime$
|
|
64329
|
+
let r = (0, import_compiler_runtime$97.c)(14), { value: c, setValue: d, widget: f, functions: _, data: v, host: y } = e, S = (0, import_react.useRef)(null), w;
|
|
64167
64330
|
r[0] !== _.send_to_widget || r[1] !== d || r[2] !== c ? (w = new Model(c, d, _.send_to_widget, /* @__PURE__ */ new Set()), r[0] = _.send_to_widget, r[1] = d, r[2] = c, r[3] = w) : w = r[3];
|
|
64168
64331
|
let E = (0, import_react.useRef)(w), O;
|
|
64169
64332
|
r[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = (e2) => {
|
|
@@ -64199,9 +64362,9 @@ ${O}`,
|
|
|
64199
64362
|
function _temp$31(e) {
|
|
64200
64363
|
return e();
|
|
64201
64364
|
}
|
|
64202
|
-
var import_compiler_runtime$
|
|
64365
|
+
var import_compiler_runtime$96 = require_compiler_runtime();
|
|
64203
64366
|
const KeyboardHotkeys = (e) => {
|
|
64204
|
-
let r = (0, import_compiler_runtime$
|
|
64367
|
+
let r = (0, import_compiler_runtime$96.c)(10), { shortcut: c, className: d } = e;
|
|
64205
64368
|
if (c === NOT_SET || c === "") {
|
|
64206
64369
|
let e2;
|
|
64207
64370
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)("span", {}), r[0] = e2) : e2 = r[0], e2;
|
|
@@ -64439,9 +64602,9 @@ ${O}`,
|
|
|
64439
64602
|
return "success";
|
|
64440
64603
|
}
|
|
64441
64604
|
}
|
|
64442
|
-
var import_compiler_runtime$
|
|
64605
|
+
var import_compiler_runtime$95 = require_compiler_runtime();
|
|
64443
64606
|
const Labeled = (e) => {
|
|
64444
|
-
let r = (0, import_compiler_runtime$
|
|
64607
|
+
let r = (0, import_compiler_runtime$95.c)(27), { label: c, children: d, align: f, className: _, labelClassName: v, fullWidth: y, id: S } = e, w = f === void 0 ? "left" : f;
|
|
64445
64608
|
if (y && (w = "top"), !c) {
|
|
64446
64609
|
if (w === "top") {
|
|
64447
64610
|
let e3;
|
|
@@ -64481,7 +64644,7 @@ ${O}`,
|
|
|
64481
64644
|
]
|
|
64482
64645
|
}), r[23] = d, r[24] = I, r[25] = RY, r[26] = zY) : zY = r[26], zY;
|
|
64483
64646
|
};
|
|
64484
|
-
var import_compiler_runtime$
|
|
64647
|
+
var import_compiler_runtime$94 = require_compiler_runtime(), CheckboxPlugin = class {
|
|
64485
64648
|
constructor() {
|
|
64486
64649
|
__publicField(this, "tagName", "marimo-checkbox");
|
|
64487
64650
|
__publicField(this, "validator", object$1({
|
|
@@ -64496,7 +64659,7 @@ ${O}`,
|
|
|
64496
64659
|
});
|
|
64497
64660
|
}
|
|
64498
64661
|
}, CheckboxComponent = (e) => {
|
|
64499
|
-
let r = (0, import_compiler_runtime$
|
|
64662
|
+
let r = (0, import_compiler_runtime$94.c)(11), { value: c, setValue: d, data: f } = e, _;
|
|
64500
64663
|
r[0] === d ? _ = r[1] : (_ = (e2) => {
|
|
64501
64664
|
e2 !== "indeterminate" && d(e2);
|
|
64502
64665
|
}, r[0] = d, r[1] = _);
|
|
@@ -64515,7 +64678,7 @@ ${O}`,
|
|
|
64515
64678
|
id: y,
|
|
64516
64679
|
children: S
|
|
64517
64680
|
}), r[7] = f.label, r[8] = y, r[9] = S, r[10] = w) : w = r[10], w;
|
|
64518
|
-
}, import_compiler_runtime$
|
|
64681
|
+
}, import_compiler_runtime$93 = require_compiler_runtime(), CodeEditorPlugin = class {
|
|
64519
64682
|
constructor() {
|
|
64520
64683
|
__publicField(this, "tagName", "marimo-code-editor");
|
|
64521
64684
|
__publicField(this, "validator", object$1({
|
|
@@ -64545,7 +64708,7 @@ ${O}`,
|
|
|
64545
64708
|
});
|
|
64546
64709
|
}
|
|
64547
64710
|
}, CodeEditorComponent = (e) => {
|
|
64548
|
-
let r = (0, import_compiler_runtime$
|
|
64711
|
+
let r = (0, import_compiler_runtime$93.c)(34), { theme: c } = useTheme(), d = e.theme || c, f = e.minHeight ? `${e.minHeight}px` : "70px", _ = e.maxHeight ? `${e.maxHeight}px` : void 0, [v, y] = (0, import_react.useState)(e.value), S = Number.isFinite(e.debounce) ? e.debounce : 0, w = !Number.isFinite(e.debounce), E;
|
|
64549
64712
|
r[0] !== e.setValue || r[1] !== e.value || r[2] !== S || r[3] !== w ? (E = {
|
|
64550
64713
|
initialValue: e.value,
|
|
64551
64714
|
delay: S,
|
|
@@ -70248,10 +70411,10 @@ Error message: ${getErrorMessage$1(r)}`,
|
|
|
70248
70411
|
addToolOutput: d.current.addToolOutput
|
|
70249
70412
|
};
|
|
70250
70413
|
}
|
|
70251
|
-
var import_compiler_runtime$
|
|
70414
|
+
var import_compiler_runtime$92 = require_compiler_runtime();
|
|
70252
70415
|
const AttachmentRenderer = (e) => {
|
|
70253
70416
|
var _a2;
|
|
70254
|
-
let r = (0, import_compiler_runtime$
|
|
70417
|
+
let r = (0, import_compiler_runtime$92.c)(6), { attachment: c } = e;
|
|
70255
70418
|
if ((_a2 = c.mediaType) == null ? void 0 : _a2.startsWith("image/")) {
|
|
70256
70419
|
let e2 = c.filename || "Attachment", d2;
|
|
70257
70420
|
return r[0] !== c.url || r[1] !== e2 ? (d2 = (0, import_jsx_runtime.jsx)("img", {
|
|
@@ -70273,9 +70436,9 @@ Error message: ${getErrorMessage$1(r)}`,
|
|
|
70273
70436
|
]
|
|
70274
70437
|
}), r[4] = f, r[5] = _), _;
|
|
70275
70438
|
};
|
|
70276
|
-
var import_compiler_runtime$
|
|
70439
|
+
var import_compiler_runtime$91 = require_compiler_runtime();
|
|
70277
70440
|
const ReasoningAccordion = (e) => {
|
|
70278
|
-
let r = (0, import_compiler_runtime$
|
|
70441
|
+
let r = (0, import_compiler_runtime$91.c)(13), { reasoning: c, index: d, isStreaming: f } = e, _ = d === void 0 ? 0 : d, v = f === void 0 ? false : f, y = v ? "reasoning" : void 0, S;
|
|
70279
70442
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = (0, import_jsx_runtime.jsx)(BotMessageSquare, {
|
|
70280
70443
|
className: "h-3 w-3"
|
|
70281
70444
|
}), r[0] = S) : S = r[0];
|
|
@@ -70325,7 +70488,7 @@ Error message: ${getErrorMessage$1(r)}`,
|
|
|
70325
70488
|
children: M
|
|
70326
70489
|
}, _), r[9] = _, r[10] = y, r[11] = M, r[12] = I) : I = r[12], I;
|
|
70327
70490
|
};
|
|
70328
|
-
var import_compiler_runtime$
|
|
70491
|
+
var import_compiler_runtime$90 = require_compiler_runtime(), SuccessResultSchema = object$1({
|
|
70329
70492
|
status: string$2().default("success"),
|
|
70330
70493
|
auth_required: boolean$2().default(false),
|
|
70331
70494
|
action_url: any(),
|
|
@@ -70333,7 +70496,7 @@ Error message: ${getErrorMessage$1(r)}`,
|
|
|
70333
70496
|
meta: any(),
|
|
70334
70497
|
message: string$2().nullish()
|
|
70335
70498
|
}).passthrough(), PrettySuccessResult = (e) => {
|
|
70336
|
-
let r = (0, import_compiler_runtime$
|
|
70499
|
+
let r = (0, import_compiler_runtime$90.c)(12), { data: c } = e, d;
|
|
70337
70500
|
if (r[0] !== c) {
|
|
70338
70501
|
let { status: e2, auth_required: f, action_url: _, meta: v, next_steps: y, message: S, ...w } = c, E;
|
|
70339
70502
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (0, import_jsx_runtime.jsx)("h3", {
|
|
@@ -70390,7 +70553,7 @@ Error message: ${getErrorMessage$1(r)}`,
|
|
|
70390
70553
|
} else d = r[1];
|
|
70391
70554
|
return d;
|
|
70392
70555
|
}, ResultRenderer = (e) => {
|
|
70393
|
-
let r = (0, import_compiler_runtime$
|
|
70556
|
+
let r = (0, import_compiler_runtime$90.c)(8), { result: c } = e, d;
|
|
70394
70557
|
r[0] === c ? d = r[1] : (d = SuccessResultSchema.safeParse(c), r[0] = c, r[1] = d);
|
|
70395
70558
|
let f = d;
|
|
70396
70559
|
if (f.success) {
|
|
@@ -70407,7 +70570,7 @@ Error message: ${getErrorMessage$1(r)}`,
|
|
|
70407
70570
|
children: _
|
|
70408
70571
|
}), r[6] = _, r[7] = v), v;
|
|
70409
70572
|
}, ToolArgsRenderer = (e) => {
|
|
70410
|
-
let r = (0, import_compiler_runtime$
|
|
70573
|
+
let r = (0, import_compiler_runtime$90.c)(9), { input: c } = e;
|
|
70411
70574
|
if (!(c && c !== null)) return null;
|
|
70412
70575
|
let d;
|
|
70413
70576
|
r[0] === c ? d = r[1] : (d = isEmpty_default(c), r[0] = c, r[1] = d);
|
|
@@ -70431,7 +70594,7 @@ Error message: ${getErrorMessage$1(r)}`,
|
|
|
70431
70594
|
}), r[7] = y, r[8] = S), S;
|
|
70432
70595
|
};
|
|
70433
70596
|
const ToolCallAccordion = (e) => {
|
|
70434
|
-
let r = (0, import_compiler_runtime$
|
|
70597
|
+
let r = (0, import_compiler_runtime$90.c)(38), { toolName: c, result: d, error: f, index: _, state: v, className: y, input: S } = e, w = _ === void 0 ? 0 : _, E = v === "output-available" && (d || f), O = f ? "error" : E ? "success" : "loading", M;
|
|
70435
70598
|
r[0] === O ? M = r[1] : (M = () => {
|
|
70436
70599
|
switch (O) {
|
|
70437
70600
|
case "loading":
|
|
@@ -72776,8 +72939,8 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72776
72939
|
};
|
|
72777
72940
|
throw Error("Invalid input: not a Zod schema");
|
|
72778
72941
|
}
|
|
72779
|
-
var import_compiler_runtime$
|
|
72780
|
-
let r = (0, import_compiler_runtime$
|
|
72942
|
+
var import_compiler_runtime$89 = require_compiler_runtime(), Form$1 = FormProvider, FormFieldContext = import_react.createContext({}), FormField = (e) => {
|
|
72943
|
+
let r = (0, import_compiler_runtime$89.c)(10), c;
|
|
72781
72944
|
r[0] === e ? c = r[1] : ({ ...c } = e, r[0] = e, r[1] = c);
|
|
72782
72945
|
let d;
|
|
72783
72946
|
r[2] === c.name ? d = r[3] : (d = {
|
|
@@ -72793,7 +72956,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72793
72956
|
children: f
|
|
72794
72957
|
}, c.name), r[6] = c.name, r[7] = d, r[8] = f, r[9] = _) : _ = r[9], _;
|
|
72795
72958
|
}, useFormField = () => {
|
|
72796
|
-
let e = (0, import_compiler_runtime$
|
|
72959
|
+
let e = (0, import_compiler_runtime$89.c)(11), r = import_react.use(FormFieldContext), c = import_react.use(FormItemContext), { getFieldState: d, formState: f } = useFormContext(), _;
|
|
72797
72960
|
e[0] !== r.name || e[1] !== f || e[2] !== d ? (_ = d(r.name, f), e[0] = r.name, e[1] = f, e[2] = d, e[3] = _) : _ = e[3];
|
|
72798
72961
|
let v = _;
|
|
72799
72962
|
if (!r) throw Error("useFormField should be used within <FormField>");
|
|
@@ -72807,7 +72970,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72807
72970
|
...v
|
|
72808
72971
|
}, e[4] = r.name, e[5] = v, e[6] = y, e[7] = S, e[8] = w, e[9] = E, e[10] = O) : O = e[10], O;
|
|
72809
72972
|
}, FormItemContext = import_react.createContext({}), FormItem = import_react.forwardRef((e, r) => {
|
|
72810
|
-
let c = (0, import_compiler_runtime$
|
|
72973
|
+
let c = (0, import_compiler_runtime$89.c)(14), d, f;
|
|
72811
72974
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
72812
72975
|
let _ = import_react.useId(), v;
|
|
72813
72976
|
c[3] === _ ? v = c[4] : (v = {
|
|
@@ -72829,7 +72992,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72829
72992
|
});
|
|
72830
72993
|
FormItem.displayName = "FormItem";
|
|
72831
72994
|
var FormLabel = import_react.forwardRef((e, r) => {
|
|
72832
|
-
let c = (0, import_compiler_runtime$
|
|
72995
|
+
let c = (0, import_compiler_runtime$89.c)(11), d, f;
|
|
72833
72996
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
72834
72997
|
let { error: _, formItemId: v } = useFormField();
|
|
72835
72998
|
if (!f.children) return;
|
|
@@ -72845,7 +73008,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72845
73008
|
});
|
|
72846
73009
|
FormLabel.displayName = "FormLabel";
|
|
72847
73010
|
var FormControl = import_react.forwardRef((e, r) => {
|
|
72848
|
-
let c = (0, import_compiler_runtime$
|
|
73011
|
+
let c = (0, import_compiler_runtime$89.c)(8), d;
|
|
72849
73012
|
c[0] === e ? d = c[1] : ({ ...d } = e, c[0] = e, c[1] = d);
|
|
72850
73013
|
let { error: f, formItemId: _, formDescriptionId: v, formMessageId: y } = useFormField(), S = f ? `${v} ${y}` : v, w = !!f, E;
|
|
72851
73014
|
return c[2] !== _ || c[3] !== d || c[4] !== r || c[5] !== S || c[6] !== w ? (E = (0, import_jsx_runtime.jsx)(Slot$1, {
|
|
@@ -72858,7 +73021,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72858
73021
|
});
|
|
72859
73022
|
FormControl.displayName = "FormControl";
|
|
72860
73023
|
var FormDescription = import_react.forwardRef((e, r) => {
|
|
72861
|
-
let c = (0, import_compiler_runtime$
|
|
73024
|
+
let c = (0, import_compiler_runtime$89.c)(10), d, f;
|
|
72862
73025
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
72863
73026
|
let { formDescriptionId: _ } = useFormField();
|
|
72864
73027
|
if (!f.children) return null;
|
|
@@ -72874,7 +73037,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72874
73037
|
});
|
|
72875
73038
|
FormDescription.displayName = "FormDescription";
|
|
72876
73039
|
var FormMessage = import_react.forwardRef((e, r) => {
|
|
72877
|
-
let c = (0, import_compiler_runtime$
|
|
73040
|
+
let c = (0, import_compiler_runtime$89.c)(12), d, f, _;
|
|
72878
73041
|
c[0] === e ? (d = c[1], f = c[2], _ = c[3]) : ({ className: f, children: d, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = _);
|
|
72879
73042
|
let { error: v, formMessageId: y } = useFormField(), S = (v == null ? void 0 : v.message) ? String(v == null ? void 0 : v.message) : d;
|
|
72880
73043
|
if (!S) return null;
|
|
@@ -72891,7 +73054,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72891
73054
|
});
|
|
72892
73055
|
FormMessage.displayName = "FormMessage";
|
|
72893
73056
|
var FormMessageTooltip = (e) => {
|
|
72894
|
-
let r = (0, import_compiler_runtime$
|
|
73057
|
+
let r = (0, import_compiler_runtime$89.c)(7), { className: c } = e, { error: d } = useFormField(), f = (d == null ? void 0 : d.message) ? String(d == null ? void 0 : d.message) : null;
|
|
72895
73058
|
if (!f) return null;
|
|
72896
73059
|
let _;
|
|
72897
73060
|
r[0] === c ? _ = r[1] : (_ = cn("stroke-[1.8px]", c), r[0] = c, r[1] = _);
|
|
@@ -72913,17 +73076,17 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72913
73076
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
72914
73077
|
}
|
|
72915
73078
|
}
|
|
72916
|
-
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.7-
|
|
73079
|
+
const marimoVersionAtom = atom(getVersionFromMountConfig() || "0.19.7-dev25"), showCodeInRunModeAtom = atom(true);
|
|
72917
73080
|
atom(null);
|
|
72918
|
-
var import_compiler_runtime$
|
|
73081
|
+
var import_compiler_runtime$88 = require_compiler_runtime();
|
|
72919
73082
|
function useKeydownOnElement(e, r) {
|
|
72920
|
-
let c = (0, import_compiler_runtime$
|
|
73083
|
+
let c = (0, import_compiler_runtime$88.c)(2), d;
|
|
72921
73084
|
c[0] === r ? d = c[1] : (d = (e2) => {
|
|
72922
73085
|
if (!e2.defaultPrevented) for (let [c2, d2] of Objects.entries(r)) parseShortcut(c2)(e2) && (Logger.debug("Satisfied", c2, e2), d2(e2) !== false && (e2.preventDefault(), e2.stopPropagation()));
|
|
72923
73086
|
}, c[0] = r, c[1] = d), useEventListener(e, "keydown", d);
|
|
72924
73087
|
}
|
|
72925
|
-
var import_compiler_runtime$
|
|
72926
|
-
let c = (0, import_compiler_runtime$
|
|
73088
|
+
var import_compiler_runtime$87 = require_compiler_runtime(), Textarea = import_react.forwardRef((e, r) => {
|
|
73089
|
+
let c = (0, import_compiler_runtime$87.c)(16), d, f, _;
|
|
72927
73090
|
c[0] === e ? (d = c[1], f = c[2], _ = c[3]) : ({ className: f, bottomAdornment: d, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = _);
|
|
72928
73091
|
let v;
|
|
72929
73092
|
c[4] === f ? v = c[5] : (v = 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] = v);
|
|
@@ -72952,7 +73115,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72952
73115
|
});
|
|
72953
73116
|
Textarea.displayName = "Textarea";
|
|
72954
73117
|
const DebouncedTextarea = import_react.forwardRef((e, r) => {
|
|
72955
|
-
let c = (0, import_compiler_runtime$
|
|
73118
|
+
let c = (0, import_compiler_runtime$87.c)(16), d, f, _;
|
|
72956
73119
|
c[0] === e ? (d = c[1], f = c[2], _ = c[3]) : ({ className: d, onValueChange: f, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = _);
|
|
72957
73120
|
let v;
|
|
72958
73121
|
c[4] !== f || c[5] !== _.delay || c[6] !== _.value ? (v = {
|
|
@@ -72973,7 +73136,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
72973
73136
|
});
|
|
72974
73137
|
DebouncedTextarea.displayName = "DebouncedTextarea";
|
|
72975
73138
|
const OnBlurredTextarea = import_react.forwardRef((e, r) => {
|
|
72976
|
-
let c = (0, import_compiler_runtime$
|
|
73139
|
+
let c = (0, import_compiler_runtime$87.c)(23), d, f, _;
|
|
72977
73140
|
c[0] === e ? (d = c[1], f = c[2], _ = c[3]) : ({ className: d, onValueChange: f, ..._ } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = _);
|
|
72978
73141
|
let [v, y] = import_react.useState(_.value), S;
|
|
72979
73142
|
c[4] !== v || c[5] !== f || c[6] !== _.value ? (S = {
|
|
@@ -73005,7 +73168,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73005
73168
|
}), c[16] = d, c[17] = v, c[18] = _, c[19] = r, c[20] = z, c[21] = G, c[22] = q) : q = c[22], q;
|
|
73006
73169
|
});
|
|
73007
73170
|
OnBlurredTextarea.displayName = "OnBlurredTextarea";
|
|
73008
|
-
var SWITCH_NAME = "Switch", [createSwitchContext, createSwitchScope] = createContextScope
|
|
73171
|
+
var SWITCH_NAME = "Switch", [createSwitchContext, createSwitchScope] = createContextScope(SWITCH_NAME), [SwitchProvider, useSwitchContext] = createSwitchContext(SWITCH_NAME), Switch$1 = import_react.forwardRef((e, r) => {
|
|
73009
73172
|
let { __scopeSwitch: c, name: d, checked: f, defaultChecked: _, required: v, disabled: y, value: S = "on", onCheckedChange: w, form: E, ...O } = e, [M, I] = import_react.useState(null), z = useComposedRefs(r, (e2) => I(e2)), G = import_react.useRef(false), q = M ? E || !!M.closest("form") : true, [IY, LY] = useControllableState({
|
|
73010
73173
|
prop: f,
|
|
73011
73174
|
defaultProp: _ ?? false,
|
|
@@ -73017,7 +73180,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73017
73180
|
checked: IY,
|
|
73018
73181
|
disabled: y,
|
|
73019
73182
|
children: [
|
|
73020
|
-
(0, import_jsx_runtime.jsx)(Primitive
|
|
73183
|
+
(0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
73021
73184
|
type: "button",
|
|
73022
73185
|
role: "switch",
|
|
73023
73186
|
"aria-checked": IY,
|
|
@@ -73051,7 +73214,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73051
73214
|
Switch$1.displayName = SWITCH_NAME;
|
|
73052
73215
|
var THUMB_NAME$1 = "SwitchThumb", SwitchThumb = import_react.forwardRef((e, r) => {
|
|
73053
73216
|
let { __scopeSwitch: c, ...d } = e, f = useSwitchContext(THUMB_NAME$1, c);
|
|
73054
|
-
return (0, import_jsx_runtime.jsx)(Primitive
|
|
73217
|
+
return (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
73055
73218
|
"data-state": getState$1(f.checked),
|
|
73056
73219
|
"data-disabled": f.disabled ? "" : void 0,
|
|
73057
73220
|
...d,
|
|
@@ -73096,7 +73259,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73096
73259
|
function getState$1(e) {
|
|
73097
73260
|
return e ? "checked" : "unchecked";
|
|
73098
73261
|
}
|
|
73099
|
-
var Root$
|
|
73262
|
+
var Root$2 = Switch$1, Thumb$1 = SwitchThumb, import_compiler_runtime$86 = require_compiler_runtime(), switchVariants = cva("peer inline-flex shrink-0 cursor-pointer items-center rounded-full border-2 border-transparent transition-colors focus-visible:outline-hidden focus-visible:ring-1 focus-visible:ring-ring disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:bg-primary data-[state=unchecked]:bg-input", {
|
|
73100
73263
|
variants: {
|
|
73101
73264
|
size: {
|
|
73102
73265
|
default: "h-6 w-11 mb-1",
|
|
@@ -73119,7 +73282,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73119
73282
|
size: "default"
|
|
73120
73283
|
}
|
|
73121
73284
|
}), Switch = import_react.forwardRef((e, r) => {
|
|
73122
|
-
let c = (0, import_compiler_runtime$
|
|
73285
|
+
let c = (0, import_compiler_runtime$86.c)(16), d, f, _;
|
|
73123
73286
|
c[0] === e ? (d = c[1], f = c[2], _ = c[3]) : ({ className: d, size: _, ...f } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = _);
|
|
73124
73287
|
let v;
|
|
73125
73288
|
c[4] !== d || c[5] !== _ ? (v = cn(switchVariants({
|
|
@@ -73134,14 +73297,14 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73134
73297
|
className: y
|
|
73135
73298
|
}), c[9] = y, c[10] = S);
|
|
73136
73299
|
let w;
|
|
73137
|
-
return c[11] !== f || c[12] !== r || c[13] !== v || c[14] !== S ? (w = (0, import_jsx_runtime.jsx)(Root$
|
|
73300
|
+
return c[11] !== f || c[12] !== r || c[13] !== v || c[14] !== S ? (w = (0, import_jsx_runtime.jsx)(Root$2, {
|
|
73138
73301
|
className: v,
|
|
73139
73302
|
...f,
|
|
73140
73303
|
ref: r,
|
|
73141
73304
|
children: S
|
|
73142
73305
|
}), c[11] = f, c[12] = r, c[13] = v, c[14] = S, c[15] = w) : w = c[15], w;
|
|
73143
73306
|
});
|
|
73144
|
-
Switch.displayName = Root$
|
|
73307
|
+
Switch.displayName = Root$2.displayName;
|
|
73145
73308
|
const updateResources = StateEffect.define(), resourcesField = StateField.define({
|
|
73146
73309
|
create() {
|
|
73147
73310
|
return /* @__PURE__ */ new Map();
|
|
@@ -73557,9 +73720,9 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73557
73720
|
dom: r
|
|
73558
73721
|
};
|
|
73559
73722
|
}
|
|
73560
|
-
var import_compiler_runtime$
|
|
73723
|
+
var import_compiler_runtime$85 = require_compiler_runtime();
|
|
73561
73724
|
const PythonIcon = (e) => {
|
|
73562
|
-
let r = (0, import_compiler_runtime$
|
|
73725
|
+
let r = (0, import_compiler_runtime$85.c)(4), c, d;
|
|
73563
73726
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)("title", {
|
|
73564
73727
|
children: "Python Logo"
|
|
73565
73728
|
}), d = (0, import_jsx_runtime.jsx)("path", {
|
|
@@ -73579,11 +73742,11 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73579
73742
|
]
|
|
73580
73743
|
}), r[2] = e, r[3] = f), f;
|
|
73581
73744
|
};
|
|
73582
|
-
var import_compiler_runtime$
|
|
73745
|
+
var import_compiler_runtime$84 = require_compiler_runtime();
|
|
73583
73746
|
atomWithStorage("marimo:ai-language", "python", jotaiJsonStorage);
|
|
73584
73747
|
var KEY$1 = "marimo:ai-prompt-history", promptHistoryStorage = new ZodLocalStorage(array$2(string$2()), () => []);
|
|
73585
73748
|
const PromptInput = (e) => {
|
|
73586
|
-
let r = (0, import_compiler_runtime$
|
|
73749
|
+
let r = (0, import_compiler_runtime$84.c)(35), { value: c, placeholder: d, inputRef: f, className: _, onChange: v, onSubmit: y, onKeyDown: S, onClose: w, onAddFiles: E, additionalCompletions: O, maxHeight: M } = e, I = y, z = w, G = useStore(), { theme: q } = useTheme(), IY;
|
|
73587
73750
|
r[0] === O ? IY = r[1] : (IY = (e2) => O ? mentionsCompletionSource([
|
|
73588
73751
|
O.triggerCompletionRegex
|
|
73589
73752
|
], O.completions)(e2) : null, r[0] = O, r[1] = IY);
|
|
@@ -73677,7 +73840,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
73677
73840
|
function _temp3$16(e) {
|
|
73678
73841
|
return promptHistoryStorage.set(KEY$1, e);
|
|
73679
73842
|
}
|
|
73680
|
-
var import_compiler_runtime$
|
|
73843
|
+
var import_compiler_runtime$83 = require_compiler_runtime();
|
|
73681
73844
|
const Chatbot = (e) => {
|
|
73682
73845
|
var _a2;
|
|
73683
73846
|
let [r, c] = (0, import_react.useState)(""), [d, f] = (0, import_react.useState)(e.config), [_, v] = (0, import_react.useState)(e.config), [y, S] = (0, import_react.useState)(void 0), w = (0, import_react.useRef)(null), E = (0, import_react.useRef)(null), O = (0, import_react.useRef)(null), M = (0, import_react.useRef)(null);
|
|
@@ -74066,7 +74229,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
74066
74229
|
description: "Penalizes new tokens (-2: favor, 2: avoid)"
|
|
74067
74230
|
}
|
|
74068
74231
|
}, ConfigPopup = (e) => {
|
|
74069
|
-
let r = (0, import_compiler_runtime$
|
|
74232
|
+
let r = (0, import_compiler_runtime$83.c)(16), { config: c, onChange: d } = e, [f, _] = (0, import_react.useState)(false), v;
|
|
74070
74233
|
r[0] !== c || r[1] !== d ? (v = (e2, r2) => {
|
|
74071
74234
|
let f2 = r2 === null || Number.isNaN(r2) ? null : r2;
|
|
74072
74235
|
if (f2 !== null) {
|
|
@@ -74165,7 +74328,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
74165
74328
|
]
|
|
74166
74329
|
}), r[13] = f, r[14] = I, r[15] = z) : z = r[15], z;
|
|
74167
74330
|
}, PromptsPopover = (e) => {
|
|
74168
|
-
let r = (0, import_compiler_runtime$
|
|
74331
|
+
let r = (0, import_compiler_runtime$83.c)(18), { prompts: c, onSelect: d } = e, [f, _] = (0, import_react.useState)(false), [v, y] = (0, import_react.useState)(""), S;
|
|
74169
74332
|
r[0] === d ? S = r[1] : (S = (e2) => {
|
|
74170
74333
|
[
|
|
74171
74334
|
...e2.matchAll(/{{(\w+)}}/g)
|
|
@@ -74233,7 +74396,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
74233
74396
|
]
|
|
74234
74397
|
}), r[14] = f, r[15] = M, r[16] = z, r[17] = G) : G = r[17], G;
|
|
74235
74398
|
}, PromptVariablesForm = (e) => {
|
|
74236
|
-
let r = (0, import_compiler_runtime$
|
|
74399
|
+
let r = (0, import_compiler_runtime$83.c)(32), { prompt: c, onClose: d, onSelect: f } = e, _;
|
|
74237
74400
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {}, r[0] = _) : _ = r[0];
|
|
74238
74401
|
let [v, y] = (0, import_react.useState)(_), S, w;
|
|
74239
74402
|
r[1] === c ? (S = r[2], w = r[3]) : (S = () => {
|
|
@@ -74387,9 +74550,9 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
74387
74550
|
})
|
|
74388
74551
|
});
|
|
74389
74552
|
});
|
|
74390
|
-
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$
|
|
74553
|
+
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$82 = require_compiler_runtime();
|
|
74391
74554
|
const LoadingTable = (e) => {
|
|
74392
|
-
let r = (0, import_compiler_runtime$
|
|
74555
|
+
let r = (0, import_compiler_runtime$82.c)(14), { wrapperClassName: c, className: d, pageSize: f } = e, _ = f === void 0 ? 10 : f, v;
|
|
74393
74556
|
r[0] === c ? v = r[1] : (v = cn(c, "flex flex-col space-y-2"), r[0] = c, r[1] = v);
|
|
74394
74557
|
let y = d || "rounded-md border", S;
|
|
74395
74558
|
r[2] === y ? S = r[3] : (S = cn(y), r[2] = y, r[3] = S);
|
|
@@ -74469,7 +74632,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
74469
74632
|
function getVegaFieldTypes(e) {
|
|
74470
74633
|
return !e || Object.keys(e).length === 0 ? "auto" : Objects.mapValues(e, (e2) => e2 === "date" || e2 === "time" ? "string" : e2 === "datetime" ? "date" : e2);
|
|
74471
74634
|
}
|
|
74472
|
-
var import_compiler_runtime$
|
|
74635
|
+
var import_compiler_runtime$81 = require_compiler_runtime(), LazyDataEditor = import_react.lazy(() => import("./glide-data-editor-uGGDZv6S.js").then(async (m2) => {
|
|
74473
74636
|
await m2.__tla;
|
|
74474
74637
|
return m2;
|
|
74475
74638
|
}));
|
|
@@ -74516,7 +74679,7 @@ Image URL: ${r.imageUrl}`)), contextToXml({
|
|
|
74516
74679
|
})
|
|
74517
74680
|
}));
|
|
74518
74681
|
var LoadingDataEditor = (e) => {
|
|
74519
|
-
let r = (0, import_compiler_runtime$
|
|
74682
|
+
let r = (0, import_compiler_runtime$81.c)(31), c;
|
|
74520
74683
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = [], r[0] = c) : c = r[0];
|
|
74521
74684
|
let [d, f] = (0, import_react.useState)(c), _;
|
|
74522
74685
|
r[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = {}, r[1] = _) : _ = r[1];
|
|
@@ -74883,9 +75046,9 @@ ${c}
|
|
|
74883
75046
|
saveForm: Functions.NOOP,
|
|
74884
75047
|
chartType: ChartType.LINE
|
|
74885
75048
|
}), useChartFormContext = () => (0, import_react.use)(ChartFormContext);
|
|
74886
|
-
var dist_exports
|
|
75049
|
+
var dist_exports = __export$1({
|
|
74887
75050
|
Range: () => Range,
|
|
74888
|
-
Root: () => Root$
|
|
75051
|
+
Root: () => Root$1,
|
|
74889
75052
|
Slider: () => Slider$1,
|
|
74890
75053
|
SliderRange: () => SliderRange,
|
|
74891
75054
|
SliderThumb: () => SliderThumb,
|
|
@@ -74926,7 +75089,7 @@ ${c}
|
|
|
74926
75089
|
"ArrowUp",
|
|
74927
75090
|
"ArrowLeft"
|
|
74928
75091
|
]
|
|
74929
|
-
}, SLIDER_NAME = "Slider", [Collection, useCollection, createCollectionScope] = createCollection(SLIDER_NAME), [createSliderContext, createSliderScope] = createContextScope
|
|
75092
|
+
}, SLIDER_NAME = "Slider", [Collection, useCollection, createCollectionScope] = createCollection(SLIDER_NAME), [createSliderContext, createSliderScope] = createContextScope(SLIDER_NAME, [
|
|
74930
75093
|
createCollectionScope
|
|
74931
75094
|
]), [SliderProvider, useSliderContext] = createSliderContext(SLIDER_NAME), Slider$1 = import_react.forwardRef((e, r) => {
|
|
74932
75095
|
let { name: c, min: d = 0, max: f = 100, step: _ = 1, orientation: v = "horizontal", disabled: y = false, minStepsBetweenThumbs: S = 0, defaultValue: w = [
|
|
@@ -75124,7 +75287,7 @@ ${c}
|
|
|
75124
75287
|
});
|
|
75125
75288
|
}), SliderImpl = import_react.forwardRef((e, r) => {
|
|
75126
75289
|
let { __scopeSlider: c, onSlideStart: d, onSlideMove: f, onSlideEnd: _, onHomeKeyDown: v, onEndKeyDown: y, onStepKeyDown: S, ...w } = e, E = useSliderContext(SLIDER_NAME, c);
|
|
75127
|
-
return (0, import_jsx_runtime.jsx)(Primitive
|
|
75290
|
+
return (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
75128
75291
|
...w,
|
|
75129
75292
|
ref: r,
|
|
75130
75293
|
onKeyDown: composeEventHandlers$1(e.onKeyDown, (e2) => {
|
|
@@ -75144,7 +75307,7 @@ ${c}
|
|
|
75144
75307
|
});
|
|
75145
75308
|
}), TRACK_NAME = "SliderTrack", SliderTrack = import_react.forwardRef((e, r) => {
|
|
75146
75309
|
let { __scopeSlider: c, ...d } = e, f = useSliderContext(TRACK_NAME, c);
|
|
75147
|
-
return (0, import_jsx_runtime.jsx)(Primitive
|
|
75310
|
+
return (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
75148
75311
|
"data-disabled": f.disabled ? "" : void 0,
|
|
75149
75312
|
"data-orientation": f.orientation,
|
|
75150
75313
|
...d,
|
|
@@ -75154,7 +75317,7 @@ ${c}
|
|
|
75154
75317
|
SliderTrack.displayName = TRACK_NAME;
|
|
75155
75318
|
var RANGE_NAME = "SliderRange", SliderRange = import_react.forwardRef((e, r) => {
|
|
75156
75319
|
let { __scopeSlider: c, ...d } = e, f = useSliderContext(RANGE_NAME, c), _ = useSliderOrientationContext(RANGE_NAME, c), v = useComposedRefs(r, import_react.useRef(null)), y = f.values.length, S = f.values.map((e2) => convertValueToPercentage(e2, f.min, f.max)), w = y > 1 ? Math.min(...S) : 0, E = 100 - Math.max(...S);
|
|
75157
|
-
return (0, import_jsx_runtime.jsx)(Primitive
|
|
75320
|
+
return (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
75158
75321
|
"data-orientation": f.orientation,
|
|
75159
75322
|
"data-disabled": f.disabled ? "" : void 0,
|
|
75160
75323
|
...d,
|
|
@@ -75195,7 +75358,7 @@ ${c}
|
|
|
75195
75358
|
children: [
|
|
75196
75359
|
(0, import_jsx_runtime.jsx)(Collection.ItemSlot, {
|
|
75197
75360
|
scope: e.__scopeSlider,
|
|
75198
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
75361
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
75199
75362
|
role: "slider",
|
|
75200
75363
|
"aria-label": e["aria-label"] || G,
|
|
75201
75364
|
"aria-valuemin": v.min,
|
|
@@ -75239,7 +75402,7 @@ ${c}
|
|
|
75239
75402
|
}, [
|
|
75240
75403
|
v,
|
|
75241
75404
|
r
|
|
75242
|
-
]), (0, import_jsx_runtime.jsx)(Primitive
|
|
75405
|
+
]), (0, import_jsx_runtime.jsx)(Primitive.input, {
|
|
75243
75406
|
style: {
|
|
75244
75407
|
display: "none"
|
|
75245
75408
|
},
|
|
@@ -75307,9 +75470,9 @@ ${c}
|
|
|
75307
75470
|
let c = 10 ** r;
|
|
75308
75471
|
return Math.round(e * c) / c;
|
|
75309
75472
|
}
|
|
75310
|
-
var Root$
|
|
75473
|
+
var Root$1 = Slider$1, Track = SliderTrack, Range = SliderRange, Thumb = SliderThumb, import_compiler_runtime$80 = require_compiler_runtime();
|
|
75311
75474
|
function useBoolean(e) {
|
|
75312
|
-
let r = (0, import_compiler_runtime$
|
|
75475
|
+
let r = (0, import_compiler_runtime$80.c)(6), [c, d] = (0, import_react.useState)(e), f;
|
|
75313
75476
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = (e2) => {
|
|
75314
75477
|
var _a2;
|
|
75315
75478
|
(_a2 = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a2.call(e2), d(true);
|
|
@@ -75339,8 +75502,8 @@ ${c}
|
|
|
75339
75502
|
function _temp$25(e) {
|
|
75340
75503
|
return !e;
|
|
75341
75504
|
}
|
|
75342
|
-
var import_compiler_runtime$
|
|
75343
|
-
let c = (0, import_compiler_runtime$
|
|
75505
|
+
var import_compiler_runtime$79 = require_compiler_runtime(), Slider = import_react.forwardRef((e, r) => {
|
|
75506
|
+
let c = (0, import_compiler_runtime$79.c)(25), { className: d, valueMap: f, ..._ } = e, [v, y] = useBoolean(false), { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), w = dist_exports, E;
|
|
75344
75507
|
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);
|
|
75345
75508
|
let O;
|
|
75346
75509
|
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];
|
|
@@ -75397,7 +75560,7 @@ ${c}
|
|
|
75397
75560
|
]
|
|
75398
75561
|
}), c[18] = _, c[19] = r, c[20] = w.Root, c[21] = zY, c[22] = E, c[23] = M, c[24] = BY) : BY = c[24], BY;
|
|
75399
75562
|
});
|
|
75400
|
-
Slider.displayName = Root$
|
|
75563
|
+
Slider.displayName = Root$1.displayName;
|
|
75401
75564
|
var import_react_dom = __toESM(require_react_dom(), 1), ve = 0, At = 1, Jt = 2, zn = 4;
|
|
75402
75565
|
function un(e) {
|
|
75403
75566
|
return () => e;
|
|
@@ -78241,12 +78404,12 @@ ${c}
|
|
|
78241
78404
|
function kn(e, r, c) {
|
|
78242
78405
|
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);
|
|
78243
78406
|
}
|
|
78244
|
-
var import_compiler_runtime$
|
|
78407
|
+
var import_compiler_runtime$78 = require_compiler_runtime();
|
|
78245
78408
|
const ComboboxContext = (0, import_react.createContext)({
|
|
78246
78409
|
isSelected: () => false,
|
|
78247
78410
|
onSelect: Functions.NOOP
|
|
78248
78411
|
}), Combobox = (e) => {
|
|
78249
|
-
let r = (0, import_compiler_runtime$
|
|
78412
|
+
let r = (0, import_compiler_runtime$78.c)(94), c, d, f, _, v, y, S, w, E, O, M, I, z, G, q, IY, LY, RY, zY, BY, VY;
|
|
78250
78413
|
r[0] === e ? (c = r[1], d = r[2], f = r[3], _ = r[4], v = 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], G = r[14], q = r[15], IY = r[16], LY = r[17], RY = r[18], zY = r[19], BY = r[20], VY = r[21]) : ({ children: c, displayValue: y, className: f, placeholder: z, value: VY, defaultValue: v, onValueChange: M, multiple: IY, shouldFilter: LY, filterFn: S, open: I, defaultOpen: _, onOpenChange: E, inputPlaceholder: RY, search: q, onSearchChange: O, emptyState: zY, chips: BY, chipsClassName: d, keepPopoverOpenOnSelect: w, ...G } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = _, r[5] = v, 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] = G, r[15] = q, r[16] = IY, r[17] = LY, r[18] = RY, r[19] = zY, r[20] = BY, r[21] = VY);
|
|
78251
78414
|
let HY = IY === void 0 ? false : IY, UY = LY === void 0 ? true : LY, WY = RY === void 0 ? "Search..." : RY, GY = zY === void 0 ? "Nothing found." : zY, KY = BY === void 0 ? false : BY, qY = _ ?? false, JY;
|
|
78252
78415
|
r[22] !== E || r[23] !== I || r[24] !== qY ? (JY = {
|
|
@@ -78389,7 +78552,7 @@ ${c}
|
|
|
78389
78552
|
]
|
|
78390
78553
|
}), r[90] = G, r[91] = SX, r[92] = CX, r[93] = wX) : wX = r[93], wX;
|
|
78391
78554
|
}, ComboboxItem = import_react.forwardRef((e, r) => {
|
|
78392
|
-
let c = (0, import_compiler_runtime$
|
|
78555
|
+
let c = (0, import_compiler_runtime$78.c)(17), { children: d, className: f, value: _, onSelect: v, disabled: y } = e, S = typeof _ == "object" && "value" in _ ? _.value : String(_), w = import_react.use(ComboboxContext), E;
|
|
78393
78556
|
c[0] === f ? E = c[1] : (E = cn("pl-6 m-1 py-1", f), c[0] = f, c[1] = E);
|
|
78394
78557
|
let O;
|
|
78395
78558
|
c[2] !== w || c[3] !== v || c[4] !== _ ? (O = () => {
|
|
@@ -78417,7 +78580,7 @@ ${c}
|
|
|
78417
78580
|
function multiselectFilterFn(e, r) {
|
|
78418
78581
|
return r.split(/\s+/).every((r2) => e.toLowerCase().includes(r2.toLowerCase())) ? 1 : 0;
|
|
78419
78582
|
}
|
|
78420
|
-
var import_compiler_runtime$
|
|
78583
|
+
var import_compiler_runtime$77 = require_compiler_runtime(), MultiselectPlugin = class {
|
|
78421
78584
|
constructor() {
|
|
78422
78585
|
__publicField(this, "tagName", "marimo-multiselect");
|
|
78423
78586
|
__publicField(this, "validator", object$1({
|
|
@@ -78437,7 +78600,7 @@ ${c}
|
|
|
78437
78600
|
}
|
|
78438
78601
|
}, SELECT_ALL_KEY = "__select_all__", DESELECT_ALL_KEY = "__deselect_all__";
|
|
78439
78602
|
const Multiselect = (e) => {
|
|
78440
|
-
let r = (0, import_compiler_runtime$
|
|
78603
|
+
let r = (0, import_compiler_runtime$77.c)(45), { options: c, label: d, value: f, setValue: _, fullWidth: v, maxSelections: y } = e, S = (0, import_react.useId)(), [w, E] = (0, import_react.useState)(""), O;
|
|
78441
78604
|
bb0: {
|
|
78442
78605
|
if (!w) {
|
|
78443
78606
|
O = c;
|
|
@@ -78566,9 +78729,9 @@ ${c}
|
|
|
78566
78729
|
function _temp3$13(e) {
|
|
78567
78730
|
return e;
|
|
78568
78731
|
}
|
|
78569
|
-
var import_compiler_runtime$
|
|
78732
|
+
var import_compiler_runtime$76 = require_compiler_runtime();
|
|
78570
78733
|
function useAddCodeToNewCell() {
|
|
78571
|
-
let e = (0, import_compiler_runtime$
|
|
78734
|
+
let e = (0, import_compiler_runtime$76.c)(4), r = useAtomValue(autoInstantiateAtom), c = useLastFocusedCellId(), { createNewCell: d } = useCellActions(), f;
|
|
78572
78735
|
return e[0] !== r || e[1] !== d || e[2] !== c ? (f = (e2) => {
|
|
78573
78736
|
e2.includes("alt") && maybeAddAltairImport({
|
|
78574
78737
|
autoInstantiate: r,
|
|
@@ -78581,7 +78744,7 @@ ${c}
|
|
|
78581
78744
|
});
|
|
78582
78745
|
}, e[0] = r, e[1] = d, e[2] = c, e[3] = f) : f = e[3], f;
|
|
78583
78746
|
}
|
|
78584
|
-
var import_compiler_runtime$
|
|
78747
|
+
var import_compiler_runtime$75 = require_compiler_runtime(), pythonExtensions = [
|
|
78585
78748
|
customPythonLanguageSupport(),
|
|
78586
78749
|
EditorView.lineWrapping
|
|
78587
78750
|
], sqlExtensions = [
|
|
@@ -78589,7 +78752,7 @@ ${c}
|
|
|
78589
78752
|
EditorView.lineWrapping
|
|
78590
78753
|
];
|
|
78591
78754
|
const ReadonlyCode = (0, import_react.memo)((e) => {
|
|
78592
|
-
let r = (0, import_compiler_runtime$
|
|
78755
|
+
let r = (0, import_compiler_runtime$75.c)(41), { theme: c } = useTheme(), d, f, _, v, y, S, w, E;
|
|
78593
78756
|
r[0] === e ? (d = r[1], f = r[2], _ = r[3], v = r[4], y = r[5], S = r[6], w = r[7], E = r[8]) : ({ code: f, className: d, initiallyHideCode: _, showHideCode: S, showCopyCode: w, insertNewCell: v, language: E, ...y } = e, r[0] = e, r[1] = d, r[2] = f, r[3] = _, r[4] = v, r[5] = y, r[6] = S, r[7] = w, r[8] = E);
|
|
78594
78757
|
let O = S === void 0 ? true : S, M = w === void 0 ? true : w, I = E === void 0 ? "python" : E, [z, G] = (0, import_react.useState)(_), q;
|
|
78595
78758
|
r[9] === d ? q = r[10] : (q = cn("relative hover-actions-parent w-full overflow-hidden", d), r[9] = d, r[10] = q);
|
|
@@ -78644,7 +78807,7 @@ ${c}
|
|
|
78644
78807
|
});
|
|
78645
78808
|
ReadonlyCode.displayName = "ReadonlyCode";
|
|
78646
78809
|
var CopyButton = (e) => {
|
|
78647
|
-
let r = (0, import_compiler_runtime$
|
|
78810
|
+
let r = (0, import_compiler_runtime$75.c)(5), c;
|
|
78648
78811
|
r[0] === e.text ? c = r[1] : (c = Events.stopPropagation(async () => {
|
|
78649
78812
|
await copyToClipboard(e.text), toast({
|
|
78650
78813
|
title: "Copied to clipboard"
|
|
@@ -78668,7 +78831,7 @@ ${c}
|
|
|
78668
78831
|
})
|
|
78669
78832
|
}), r[3] = d, r[4] = _), _;
|
|
78670
78833
|
}, EyeCloseButton = (e) => {
|
|
78671
|
-
let r = (0, import_compiler_runtime$
|
|
78834
|
+
let r = (0, import_compiler_runtime$75.c)(3), c;
|
|
78672
78835
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(EyeOff, {
|
|
78673
78836
|
size: 14,
|
|
78674
78837
|
strokeWidth: 1.5
|
|
@@ -78687,7 +78850,7 @@ ${c}
|
|
|
78687
78850
|
}), r[1] = e.onClick, r[2] = d), d;
|
|
78688
78851
|
};
|
|
78689
78852
|
const HideCodeButton = (e) => {
|
|
78690
|
-
let r = (0, import_compiler_runtime$
|
|
78853
|
+
let r = (0, import_compiler_runtime$75.c)(7), c;
|
|
78691
78854
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(Eye, {
|
|
78692
78855
|
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"
|
|
78693
78856
|
}), r[0] = c) : c = r[0];
|
|
@@ -78705,7 +78868,7 @@ ${c}
|
|
|
78705
78868
|
}), r[3] = e.className, r[4] = e.onClick, r[5] = d, r[6] = f) : f = r[6], f;
|
|
78706
78869
|
};
|
|
78707
78870
|
var InsertNewCell = (e) => {
|
|
78708
|
-
let r = (0, import_compiler_runtime$
|
|
78871
|
+
let r = (0, import_compiler_runtime$75.c)(6), c = useAddCodeToNewCell(), d;
|
|
78709
78872
|
r[0] !== c || r[1] !== e.code ? (d = () => {
|
|
78710
78873
|
c(e.code);
|
|
78711
78874
|
}, r[0] = c, r[1] = e.code, r[2] = d) : d = r[2];
|
|
@@ -78726,9 +78889,9 @@ ${c}
|
|
|
78726
78889
|
children: _
|
|
78727
78890
|
})
|
|
78728
78891
|
}), r[4] = f, r[5] = v), v;
|
|
78729
|
-
}, import_compiler_runtime$
|
|
78892
|
+
}, import_compiler_runtime$74 = require_compiler_runtime();
|
|
78730
78893
|
const Title = (e) => {
|
|
78731
|
-
let r = (0, import_compiler_runtime$
|
|
78894
|
+
let r = (0, import_compiler_runtime$74.c)(5), { text: c, tooltip: d } = e, f;
|
|
78732
78895
|
r[0] === d ? f = r[1] : (f = d && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
78733
78896
|
content: d,
|
|
78734
78897
|
children: (0, import_jsx_runtime.jsx)(Info, {
|
|
@@ -78744,7 +78907,7 @@ ${c}
|
|
|
78744
78907
|
]
|
|
78745
78908
|
}), r[2] = f, r[3] = c, r[4] = _) : _ = r[4], _;
|
|
78746
78909
|
}, TabContainer = (e) => {
|
|
78747
|
-
let r = (0, import_compiler_runtime$
|
|
78910
|
+
let r = (0, import_compiler_runtime$74.c)(5), { children: c, className: d } = e, f;
|
|
78748
78911
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col gap-2", d), r[0] = d, r[1] = f);
|
|
78749
78912
|
let _;
|
|
78750
78913
|
return r[2] !== c || r[3] !== f ? (_ = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -78752,14 +78915,14 @@ ${c}
|
|
|
78752
78915
|
children: c
|
|
78753
78916
|
}), r[2] = c, r[3] = f, r[4] = _) : _ = r[4], _;
|
|
78754
78917
|
}, FormSectionHorizontalRule = (e) => {
|
|
78755
|
-
let r = (0, import_compiler_runtime$
|
|
78918
|
+
let r = (0, import_compiler_runtime$74.c)(4), { className: c } = e, d;
|
|
78756
78919
|
r[0] === c ? d = r[1] : (d = cn("my-1", c), r[0] = c, r[1] = d);
|
|
78757
78920
|
let f;
|
|
78758
78921
|
return r[2] === d ? f = r[3] : (f = (0, import_jsx_runtime.jsx)("hr", {
|
|
78759
78922
|
className: d
|
|
78760
78923
|
}), r[2] = d, r[3] = f), f;
|
|
78761
78924
|
}, FieldSection = (e) => {
|
|
78762
|
-
let r = (0, import_compiler_runtime$
|
|
78925
|
+
let r = (0, import_compiler_runtime$74.c)(5), { children: c, className: d } = e, f;
|
|
78763
78926
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col gap-1.5", d), r[0] = d, r[1] = f);
|
|
78764
78927
|
let _;
|
|
78765
78928
|
return r[2] !== c || r[3] !== f ? (_ = (0, import_jsx_runtime.jsx)("section", {
|
|
@@ -78767,7 +78930,7 @@ ${c}
|
|
|
78767
78930
|
children: c
|
|
78768
78931
|
}), r[2] = c, r[3] = f, r[4] = _) : _ = r[4], _;
|
|
78769
78932
|
}, IconWithText = (e) => {
|
|
78770
|
-
let r = (0, import_compiler_runtime$
|
|
78933
|
+
let r = (0, import_compiler_runtime$74.c)(7), { Icon: c, text: d } = e, f;
|
|
78771
78934
|
r[0] === c ? f = r[1] : (f = (0, import_jsx_runtime.jsx)(c, {
|
|
78772
78935
|
className: "w-3 h-3 mr-2"
|
|
78773
78936
|
}), r[0] = c, r[1] = f);
|
|
@@ -78784,7 +78947,7 @@ ${c}
|
|
|
78784
78947
|
]
|
|
78785
78948
|
}), r[4] = f, r[5] = _, r[6] = v) : v = r[6], v;
|
|
78786
78949
|
}, AccordionFormTrigger = (e) => {
|
|
78787
|
-
let r = (0, import_compiler_runtime$
|
|
78950
|
+
let r = (0, import_compiler_runtime$74.c)(5), { children: c, className: d } = e, f;
|
|
78788
78951
|
r[0] === d ? f = r[1] : (f = cn("py-1", d), r[0] = d, r[1] = f);
|
|
78789
78952
|
let _;
|
|
78790
78953
|
return r[2] !== c || r[3] !== f ? (_ = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
@@ -78792,14 +78955,14 @@ ${c}
|
|
|
78792
78955
|
children: c
|
|
78793
78956
|
}), r[2] = c, r[3] = f, r[4] = _) : _ = r[4], _;
|
|
78794
78957
|
}, AccordionFormItem = (e) => {
|
|
78795
|
-
let r = (0, import_compiler_runtime$
|
|
78958
|
+
let r = (0, import_compiler_runtime$74.c)(3), { children: c, value: d } = e, f;
|
|
78796
78959
|
return r[0] !== c || r[1] !== d ? (f = (0, import_jsx_runtime.jsx)(AccordionItem, {
|
|
78797
78960
|
value: d,
|
|
78798
78961
|
className: "border-none",
|
|
78799
78962
|
children: c
|
|
78800
78963
|
}), r[0] = c, r[1] = d, r[2] = f) : f = r[2], f;
|
|
78801
78964
|
}, AccordionFormContent = (e) => {
|
|
78802
|
-
let r = (0, import_compiler_runtime$
|
|
78965
|
+
let r = (0, import_compiler_runtime$74.c)(5), { children: c, wrapperClassName: d } = e, f;
|
|
78803
78966
|
r[0] === d ? f = r[1] : (f = cn("pb-2 flex flex-col gap-2", d), r[0] = d, r[1] = f);
|
|
78804
78967
|
let _;
|
|
78805
78968
|
return r[2] !== c || r[3] !== f ? (_ = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
@@ -78807,7 +78970,7 @@ ${c}
|
|
|
78807
78970
|
children: c
|
|
78808
78971
|
}), r[2] = c, r[3] = f, r[4] = _) : _ = r[4], _;
|
|
78809
78972
|
}, CodeSnippet = (e) => {
|
|
78810
|
-
let r = (0, import_compiler_runtime$
|
|
78973
|
+
let r = (0, import_compiler_runtime$74.c)(4), { code: c, insertNewCell: d, language: f } = e, _;
|
|
78811
78974
|
return r[0] !== c || r[1] !== d || r[2] !== f ? (_ = (0, import_jsx_runtime.jsx)(ReadonlyCode, {
|
|
78812
78975
|
minHeight: "330px",
|
|
78813
78976
|
maxHeight: "330px",
|
|
@@ -78818,9 +78981,9 @@ ${c}
|
|
|
78818
78981
|
insertNewCell: d
|
|
78819
78982
|
}), r[0] = c, r[1] = d, r[2] = f, r[3] = _) : _ = r[3], _;
|
|
78820
78983
|
};
|
|
78821
|
-
var import_compiler_runtime$
|
|
78984
|
+
var import_compiler_runtime$73 = require_compiler_runtime(), CLEAR_VALUE = "__clear__";
|
|
78822
78985
|
const ColumnSelector = (e) => {
|
|
78823
|
-
let r = (0, import_compiler_runtime$
|
|
78986
|
+
let r = (0, import_compiler_runtime$73.c)(23), { fieldName: c, columns: d, onValueChange: f, includeCountField: _ } = e, v = _ === void 0 ? true : _, y = useFormContext(), S;
|
|
78824
78987
|
r[0] === c ? S = r[1] : (S = c.replace(".field", ".type"), r[0] = c, r[1] = S);
|
|
78825
78988
|
let w = S, E;
|
|
78826
78989
|
r[2] === c ? E = r[3] : (E = c.replace(".field", ".selectedDataType"), r[2] = c, r[3] = E);
|
|
@@ -78902,7 +79065,7 @@ ${c}
|
|
|
78902
79065
|
render: z
|
|
78903
79066
|
}), r[19] = c, r[20] = y.control, r[21] = z, r[22] = G) : G = r[22], G;
|
|
78904
79067
|
}, SelectField = (e) => {
|
|
78905
|
-
let r = (0, import_compiler_runtime$
|
|
79068
|
+
let r = (0, import_compiler_runtime$73.c)(8), { fieldName: c, label: d, options: f, defaultValue: _ } = e, v = useFormContext(), y;
|
|
78906
79069
|
r[0] !== _ || r[1] !== d || r[2] !== f ? (y = (e2) => {
|
|
78907
79070
|
let { field: r2 } = e2;
|
|
78908
79071
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -78941,7 +79104,7 @@ ${c}
|
|
|
78941
79104
|
render: y
|
|
78942
79105
|
}), r[4] = c, r[5] = v.control, r[6] = y, r[7] = S) : S = r[7], S;
|
|
78943
79106
|
}, InputField = (e) => {
|
|
78944
|
-
let r = (0, import_compiler_runtime$
|
|
79107
|
+
let r = (0, import_compiler_runtime$73.c)(6), { fieldName: c, label: d } = e, f = useFormContext(), _;
|
|
78945
79108
|
r[0] === d ? _ = r[1] : (_ = (e2) => {
|
|
78946
79109
|
let { field: r2 } = e2;
|
|
78947
79110
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -78968,7 +79131,7 @@ ${c}
|
|
|
78968
79131
|
render: _
|
|
78969
79132
|
}), r[2] = c, r[3] = f.control, r[4] = _, r[5] = v) : v = r[5], v;
|
|
78970
79133
|
}, NumberField$1 = (e) => {
|
|
78971
|
-
let r = (0, import_compiler_runtime$
|
|
79134
|
+
let r = (0, import_compiler_runtime$73.c)(17), c, d, f, _, v, y;
|
|
78972
79135
|
r[0] === e ? (c = r[1], d = r[2], f = r[3], _ = r[4], v = r[5], y = r[6]) : ({ fieldName: d, label: v, className: c, inputClassName: f, isDisabled: _, ...y } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = _, r[5] = v, r[6] = y);
|
|
78973
79136
|
let S = useFormContext(), w;
|
|
78974
79137
|
r[7] !== c || r[8] !== f || r[9] !== _ || r[10] !== v || r[11] !== y ? (w = (e2) => {
|
|
@@ -79002,7 +79165,7 @@ ${c}
|
|
|
79002
79165
|
render: w
|
|
79003
79166
|
}), r[13] = d, r[14] = S.control, r[15] = w, r[16] = E) : E = r[16], E;
|
|
79004
79167
|
}, BooleanField = (e) => {
|
|
79005
|
-
let r = (0, import_compiler_runtime$
|
|
79168
|
+
let r = (0, import_compiler_runtime$73.c)(8), { fieldName: c, label: d, className: f, defaultValue: _ } = e, v = useFormContext(), y;
|
|
79006
79169
|
r[0] !== f || r[1] !== _ || r[2] !== d ? (y = (e2) => {
|
|
79007
79170
|
let { field: r2 } = e2;
|
|
79008
79171
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -79028,7 +79191,7 @@ ${c}
|
|
|
79028
79191
|
render: y
|
|
79029
79192
|
}), r[4] = c, r[5] = v.control, r[6] = y, r[7] = S) : S = r[7], S;
|
|
79030
79193
|
}, SliderField = (e) => {
|
|
79031
|
-
let r = (0, import_compiler_runtime$
|
|
79194
|
+
let r = (0, import_compiler_runtime$73.c)(12), { fieldName: c, label: d, defaultValue: f, start: _, stop: v, step: y, className: S } = e, w = useFormContext(), E;
|
|
79032
79195
|
r[0] !== S || r[1] !== f || r[2] !== c || r[3] !== d || r[4] !== _ || r[5] !== y || r[6] !== v ? (E = (e2) => {
|
|
79033
79196
|
let { field: r2 } = e2, w2 = r2.value ?? f, E2 = Number(w2), O2 = (e3) => {
|
|
79034
79197
|
typeof e3 == "string" && (e3 = Number(e3)), r2.onChange(e3);
|
|
@@ -79071,7 +79234,7 @@ ${c}
|
|
|
79071
79234
|
render: E
|
|
79072
79235
|
}), r[8] = c, r[9] = w.control, r[10] = E, r[11] = O) : O = r[11], O;
|
|
79073
79236
|
}, ColorArrayField = (e) => {
|
|
79074
|
-
let r = (0, import_compiler_runtime$
|
|
79237
|
+
let r = (0, import_compiler_runtime$73.c)(28), { fieldName: c, label: d, className: f } = e, _ = useFormContext(), v;
|
|
79075
79238
|
r[0] !== c || r[1] !== _ ? (v = _.watch(c), r[0] = c, r[1] = _, r[2] = v) : v = r[2];
|
|
79076
79239
|
let y = v, S;
|
|
79077
79240
|
r[3] === y ? S = r[4] : (S = y ?? [], r[3] = y, r[4] = S);
|
|
@@ -79152,7 +79315,7 @@ ${c}
|
|
|
79152
79315
|
render: IY
|
|
79153
79316
|
}), r[24] = c, r[25] = _.control, r[26] = IY, r[27] = LY) : LY = r[27], LY;
|
|
79154
79317
|
}, TimeUnitSelect = (e) => {
|
|
79155
|
-
let r = (0, import_compiler_runtime$
|
|
79318
|
+
let r = (0, import_compiler_runtime$73.c)(10), { fieldName: c, label: d } = e, f = useFormContext(), _;
|
|
79156
79319
|
r[0] !== c || r[1] !== f ? (_ = () => {
|
|
79157
79320
|
f.setValue(c, "");
|
|
79158
79321
|
}, r[0] = c, r[1] = f, r[2] = _) : _ = r[2];
|
|
@@ -79221,7 +79384,7 @@ ${c}
|
|
|
79221
79384
|
render: S
|
|
79222
79385
|
}), r[6] = c, r[7] = f.control, r[8] = S, r[9] = w) : w = r[9], w;
|
|
79223
79386
|
}, DataTypeSelect = (e) => {
|
|
79224
|
-
let r = (0, import_compiler_runtime$
|
|
79387
|
+
let r = (0, import_compiler_runtime$73.c)(9), { fieldName: c, label: d, defaultValue: f, onValueChange: _ } = e, [v, y] = import_react.useState(false), S = useFormContext(), w;
|
|
79225
79388
|
r[0] !== f || r[1] !== v || r[2] !== d || r[3] !== _ ? (w = (e2) => {
|
|
79226
79389
|
let { field: r2 } = e2;
|
|
79227
79390
|
return (0, import_jsx_runtime.jsxs)(FormItem, {
|
|
@@ -79277,7 +79440,7 @@ ${c}
|
|
|
79277
79440
|
render: w
|
|
79278
79441
|
}), r[5] = c, r[6] = S.control, r[7] = w, r[8] = E) : E = r[8], E;
|
|
79279
79442
|
}, AggregationSelect = (e) => {
|
|
79280
|
-
let r = (0, import_compiler_runtime$
|
|
79443
|
+
let r = (0, import_compiler_runtime$73.c)(12), { fieldName: c, selectedDataType: d, binFieldName: f, defaultAggregation: _ } = e, v = useFormContext(), y = d === "string" ? STRING_AGGREGATION_FNS : AGGREGATION_FNS$1, { chartType: S } = useChartFormContext(), w = S !== ChartType.HEATMAP, E = _temp6$5, O = _temp7$1, M;
|
|
79281
79444
|
r[0] !== f || r[1] !== v ? (M = (e2) => {
|
|
79282
79445
|
let { value: r2, previousValue: c2, onChange: d2 } = e2;
|
|
79283
79446
|
r2 === "bin" ? v.setValue(f, true) : c2 === "bin" && v.setValue(f, false), d2(r2);
|
|
@@ -79336,7 +79499,7 @@ ${c}
|
|
|
79336
79499
|
render: z
|
|
79337
79500
|
}), r[8] = c, r[9] = v.control, r[10] = z, r[11] = G) : G = r[11], G;
|
|
79338
79501
|
}, TooltipSelect = (e) => {
|
|
79339
|
-
let r = (0, import_compiler_runtime$
|
|
79502
|
+
let r = (0, import_compiler_runtime$73.c)(7), { fieldName: c, saveFunction: d } = e, f = useFormContext(), { fields: _ } = useChartFormContext(), v = _temp8, y;
|
|
79340
79503
|
r[0] !== _ || r[1] !== d ? (y = (e2) => {
|
|
79341
79504
|
var _a2;
|
|
79342
79505
|
let { field: r2 } = e2, c2 = ((_a2 = r2.value) == null ? void 0 : _a2.map(_temp9)) ?? [];
|
|
@@ -79362,7 +79525,7 @@ ${c}
|
|
|
79362
79525
|
render: y
|
|
79363
79526
|
}), r[3] = c, r[4] = f.control, r[5] = y, r[6] = S) : S = r[6], S;
|
|
79364
79527
|
}, SortField = (e) => {
|
|
79365
|
-
let r = (0, import_compiler_runtime$
|
|
79528
|
+
let r = (0, import_compiler_runtime$73.c)(5), { fieldName: c, label: d, defaultValue: f } = e, _;
|
|
79366
79529
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = SORT_TYPES.map(_temp1), r[0] = _) : _ = r[0];
|
|
79367
79530
|
let v = f ?? "ascending", y;
|
|
79368
79531
|
return r[1] !== c || r[2] !== d || r[3] !== v ? (y = (0, import_jsx_runtime.jsx)(SelectField, {
|
|
@@ -79373,7 +79536,7 @@ ${c}
|
|
|
79373
79536
|
}), r[1] = c, r[2] = d, r[3] = v, r[4] = y) : y = r[4], y;
|
|
79374
79537
|
}, BinFields = (e) => {
|
|
79375
79538
|
var _a2, _b3, _c2, _d2;
|
|
79376
|
-
let r = (0, import_compiler_runtime$
|
|
79539
|
+
let r = (0, import_compiler_runtime$73.c)(10), { fieldName: c } = e, d = useFormContext(), f;
|
|
79377
79540
|
r[0] === d.control ? f = r[1] : (f = {
|
|
79378
79541
|
control: d.control
|
|
79379
79542
|
}, r[0] = d.control, r[1] = f);
|
|
@@ -79488,7 +79651,7 @@ ${c}
|
|
|
79488
79651
|
value: e
|
|
79489
79652
|
};
|
|
79490
79653
|
}
|
|
79491
|
-
var import_compiler_runtime$
|
|
79654
|
+
var import_compiler_runtime$72 = require_compiler_runtime();
|
|
79492
79655
|
function isNonCountField(e) {
|
|
79493
79656
|
return isFieldSet(e == null ? void 0 : e.field) && (e == null ? void 0 : e.field) !== "__count__";
|
|
79494
79657
|
}
|
|
@@ -79512,7 +79675,7 @@ ${c}
|
|
|
79512
79675
|
};
|
|
79513
79676
|
}
|
|
79514
79677
|
var ColumnSelectorWithAggregation = (e) => {
|
|
79515
|
-
let r = (0, import_compiler_runtime$
|
|
79678
|
+
let r = (0, import_compiler_runtime$72.c)(14), { columnFieldName: c, column: d, columns: f, binFieldName: _, defaultAggregation: v } = e, y;
|
|
79516
79679
|
r[0] === d ? y = r[1] : (y = getColumnDataTypes(d), r[0] = d, r[1] = y);
|
|
79517
79680
|
let { selectedDataType: S } = y, w;
|
|
79518
79681
|
r[2] !== c || r[3] !== f ? (w = (0, import_jsx_runtime.jsx)(ColumnSelector, {
|
|
@@ -79536,7 +79699,7 @@ ${c}
|
|
|
79536
79699
|
}), r[11] = w, r[12] = E, r[13] = O) : O = r[13], O;
|
|
79537
79700
|
};
|
|
79538
79701
|
const ChartTypeSelect = (e) => {
|
|
79539
|
-
let r = (0, import_compiler_runtime$
|
|
79702
|
+
let r = (0, import_compiler_runtime$72.c)(7), { value: c, onValueChange: d } = e, f, _;
|
|
79540
79703
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = buttonVariants({
|
|
79541
79704
|
variant: "outline",
|
|
79542
79705
|
className: "user-select-none w-full justify-between px-3"
|
|
@@ -79572,7 +79735,7 @@ ${c}
|
|
|
79572
79735
|
}), r[4] = d, r[5] = c, r[6] = S) : S = r[6], S;
|
|
79573
79736
|
};
|
|
79574
79737
|
var ChartSelectItem = (e) => {
|
|
79575
|
-
let r = (0, import_compiler_runtime$
|
|
79738
|
+
let r = (0, import_compiler_runtime$72.c)(10), { chartType: c } = e, d = CHART_TYPE_ICON[c], f;
|
|
79576
79739
|
r[0] === d ? f = r[1] : (f = (0, import_jsx_runtime.jsx)(d, {
|
|
79577
79740
|
className: "w-4 h-4 mr-2"
|
|
79578
79741
|
}), r[0] = d, r[1] = f);
|
|
@@ -79595,7 +79758,7 @@ ${c}
|
|
|
79595
79758
|
};
|
|
79596
79759
|
const XAxis = () => {
|
|
79597
79760
|
var _a2, _b3, _c2, _d2, _e3, _f2, _g;
|
|
79598
|
-
let e = (0, import_compiler_runtime$
|
|
79761
|
+
let e = (0, import_compiler_runtime$72.c)(22), r = useFormContext(), c;
|
|
79599
79762
|
e[0] === r.control ? c = e[1] : (c = {
|
|
79600
79763
|
control: r.control
|
|
79601
79764
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -79648,7 +79811,7 @@ ${c}
|
|
|
79648
79811
|
}), e[17] = E, e[18] = O, e[19] = M, e[20] = I, e[21] = z) : z = e[21], z;
|
|
79649
79812
|
}, YAxis = () => {
|
|
79650
79813
|
var _a2, _b3, _c2;
|
|
79651
|
-
let e = (0, import_compiler_runtime$
|
|
79814
|
+
let e = (0, import_compiler_runtime$72.c)(29), r = useFormContext(), c;
|
|
79652
79815
|
e[0] === r.control ? c = e[1] : (c = {
|
|
79653
79816
|
control: r.control
|
|
79654
79817
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -79705,7 +79868,7 @@ ${c}
|
|
|
79705
79868
|
}), e[23] = RY, e[24] = zY, e[25] = q, e[26] = IY, e[27] = LY, e[28] = BY) : BY = e[28], BY;
|
|
79706
79869
|
}, ColorByAxis = () => {
|
|
79707
79870
|
var _a2;
|
|
79708
|
-
let e = (0, import_compiler_runtime$
|
|
79871
|
+
let e = (0, import_compiler_runtime$72.c)(13), { fields: r } = useChartFormContext(), c = useFormContext(), d;
|
|
79709
79872
|
e[0] === c.control ? d = e[1] : (d = {
|
|
79710
79873
|
control: c.control
|
|
79711
79874
|
}, e[0] = c.control, e[1] = d);
|
|
@@ -79736,7 +79899,7 @@ ${c}
|
|
|
79736
79899
|
}), e[10] = S, e[11] = w, e[12] = E) : E = e[12], E;
|
|
79737
79900
|
}, Facet = () => {
|
|
79738
79901
|
var _a2, _b3;
|
|
79739
|
-
let e = (0, import_compiler_runtime$
|
|
79902
|
+
let e = (0, import_compiler_runtime$72.c)(7), r = useChartFormContext().fields, c = useFormContext(), d;
|
|
79740
79903
|
e[0] === c.control ? d = e[1] : (d = {
|
|
79741
79904
|
control: c.control
|
|
79742
79905
|
}, e[0] = c.control, e[1] = d);
|
|
@@ -79815,10 +79978,10 @@ ${c}
|
|
|
79815
79978
|
chartType: e
|
|
79816
79979
|
}, e);
|
|
79817
79980
|
}
|
|
79818
|
-
var import_compiler_runtime$
|
|
79981
|
+
var import_compiler_runtime$71 = require_compiler_runtime();
|
|
79819
79982
|
const CommonChartForm = () => {
|
|
79820
79983
|
var _a2, _b3;
|
|
79821
|
-
let e = (0, import_compiler_runtime$
|
|
79984
|
+
let e = (0, import_compiler_runtime$71.c)(17), r = useFormContext(), c;
|
|
79822
79985
|
e[0] === r.control ? c = e[1] : (c = {
|
|
79823
79986
|
control: r.control
|
|
79824
79987
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -79870,7 +80033,7 @@ ${c}
|
|
|
79870
80033
|
]
|
|
79871
80034
|
}), e[15] = G, e[16] = LY), LY;
|
|
79872
80035
|
}, StyleForm = () => {
|
|
79873
|
-
let e = (0, import_compiler_runtime$
|
|
80036
|
+
let e = (0, import_compiler_runtime$71.c)(15), { chartType: r } = useChartFormContext(), c;
|
|
79874
80037
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(AccordionFormTrigger, {
|
|
79875
80038
|
className: "pt-0",
|
|
79876
80039
|
children: (0, import_jsx_runtime.jsx)(Title, {
|
|
@@ -80013,7 +80176,7 @@ ${c}
|
|
|
80013
80176
|
}), e[13] = _, e[14] = G), G;
|
|
80014
80177
|
}, OtherOptions = () => {
|
|
80015
80178
|
var _a2;
|
|
80016
|
-
let e = (0, import_compiler_runtime$
|
|
80179
|
+
let e = (0, import_compiler_runtime$71.c)(11), { saveForm: r } = useChartFormContext(), c = useFormContext(), d;
|
|
80017
80180
|
e[0] === c.control ? d = e[1] : (d = {
|
|
80018
80181
|
control: c.control
|
|
80019
80182
|
}, e[0] = c.control, e[1] = d);
|
|
@@ -80084,10 +80247,10 @@ ${c}
|
|
|
80084
80247
|
value: e
|
|
80085
80248
|
};
|
|
80086
80249
|
}
|
|
80087
|
-
var import_compiler_runtime$
|
|
80250
|
+
var import_compiler_runtime$70 = require_compiler_runtime();
|
|
80088
80251
|
const HeatmapForm = () => {
|
|
80089
80252
|
var _a2, _b3, _c2, _d2;
|
|
80090
|
-
let e = (0, import_compiler_runtime$
|
|
80253
|
+
let e = (0, import_compiler_runtime$70.c)(17), r = useFormContext(), c;
|
|
80091
80254
|
e[0] === r.control ? c = e[1] : (c = {
|
|
80092
80255
|
control: r.control
|
|
80093
80256
|
}, e[0] = r.control, e[1] = c);
|
|
@@ -80130,10 +80293,10 @@ ${c}
|
|
|
80130
80293
|
]
|
|
80131
80294
|
}), e[14] = O, e[15] = I, e[16] = q) : q = e[16], q;
|
|
80132
80295
|
};
|
|
80133
|
-
var import_compiler_runtime$
|
|
80296
|
+
var import_compiler_runtime$69 = require_compiler_runtime();
|
|
80134
80297
|
const PieForm = () => {
|
|
80135
80298
|
var _a2, _b3, _c2;
|
|
80136
|
-
let e = (0, import_compiler_runtime$
|
|
80299
|
+
let e = (0, import_compiler_runtime$69.c)(25), r = useFormContext(), { fields: c } = useChartFormContext(), d;
|
|
80137
80300
|
e[0] === r.control ? d = e[1] : (d = {
|
|
80138
80301
|
control: r.control
|
|
80139
80302
|
}, e[0] = r.control, e[1] = d);
|
|
@@ -80200,9 +80363,9 @@ ${c}
|
|
|
80200
80363
|
]
|
|
80201
80364
|
}), e[21] = E, e[22] = O, e[23] = G, e[24] = RY) : RY = e[24], RY;
|
|
80202
80365
|
};
|
|
80203
|
-
var import_compiler_runtime$
|
|
80366
|
+
var import_compiler_runtime$68 = require_compiler_runtime();
|
|
80204
80367
|
const LazyChart = (e) => {
|
|
80205
|
-
let r = (0, import_compiler_runtime$
|
|
80368
|
+
let r = (0, import_compiler_runtime$68.c)(8), { baseSpec: c, data: d, height: f } = e, { theme: _ } = useTheme();
|
|
80206
80369
|
if (!d) {
|
|
80207
80370
|
let e2;
|
|
80208
80371
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -80242,7 +80405,7 @@ ${c}
|
|
|
80242
80405
|
}), r[5] = c, r[6] = y, r[7] = S) : S = r[7], S;
|
|
80243
80406
|
};
|
|
80244
80407
|
var LoadingChart$1 = () => {
|
|
80245
|
-
let e = (0, import_compiler_runtime$
|
|
80408
|
+
let e = (0, import_compiler_runtime$68.c)(1), r;
|
|
80246
80409
|
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (r = (0, import_jsx_runtime.jsx)(ChartInfoState, {
|
|
80247
80410
|
className: "mt-14",
|
|
80248
80411
|
children: "Loading chart..."
|
|
@@ -80386,9 +80549,9 @@ ${c}
|
|
|
80386
80549
|
let r = initialStorageValue.get(e);
|
|
80387
80550
|
return r ? r.length > 0 : false;
|
|
80388
80551
|
}
|
|
80389
|
-
var import_compiler_runtime$
|
|
80552
|
+
var import_compiler_runtime$67 = require_compiler_runtime(), NEW_CHART_TYPE = "bar", DEFAULT_TAB_NAME = "table", CHART_HEIGHT = 290, CHART_MAX_ROWS = 5e4, CHART_MAX_COLUMNS = 50;
|
|
80390
80553
|
const TablePanel = (e) => {
|
|
80391
|
-
let r = (0, import_compiler_runtime$
|
|
80554
|
+
let r = (0, import_compiler_runtime$67.c)(7), { cellId: c, data: d, dataTable: f, totalRows: _, columns: v, getDataUrl: y, fieldTypes: S, displayHeader: w } = e, [E, O] = useAtom(tabsStorageAtom), M = c ? E.get(c) ?? [] : [], [I, z] = (0, import_react.useState)(0), [G, q] = (0, import_react.useState)(DEFAULT_TAB_NAME);
|
|
80392
80555
|
if (!w || M.length === 0 && !w) return f;
|
|
80393
80556
|
let IY = () => {
|
|
80394
80557
|
if (!c) return;
|
|
@@ -80645,7 +80808,7 @@ ${c}
|
|
|
80645
80808
|
});
|
|
80646
80809
|
};
|
|
80647
80810
|
var ChartFormContainer = (e) => {
|
|
80648
|
-
let r = (0, import_compiler_runtime$
|
|
80811
|
+
let r = (0, import_compiler_runtime$67.c)(28), { form: c, saveChart: d, fieldTypes: f, chartType: _ } = e, v;
|
|
80649
80812
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = [], r[0] = v) : v = r[0];
|
|
80650
80813
|
let y = v;
|
|
80651
80814
|
if (f) {
|
|
@@ -80755,9 +80918,9 @@ ${c}
|
|
|
80755
80918
|
function _temp3$11(e) {
|
|
80756
80919
|
return e.preventDefault();
|
|
80757
80920
|
}
|
|
80758
|
-
var import_compiler_runtime$
|
|
80921
|
+
var import_compiler_runtime$66 = require_compiler_runtime();
|
|
80759
80922
|
const EmptyState = (e) => {
|
|
80760
|
-
let r = (0, import_compiler_runtime$
|
|
80923
|
+
let r = (0, import_compiler_runtime$66.c)(5), { content: c, className: d } = e, f;
|
|
80761
80924
|
r[0] === d ? f = r[1] : (f = cn("text-sm text-muted-foreground py-1", d), r[0] = d, r[1] = f);
|
|
80762
80925
|
let _;
|
|
80763
80926
|
return r[2] !== c || r[3] !== f ? (_ = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -80765,7 +80928,7 @@ ${c}
|
|
|
80765
80928
|
children: c
|
|
80766
80929
|
}), r[2] = c, r[3] = f, r[4] = _) : _ = r[4], _;
|
|
80767
80930
|
}, ErrorState = (e) => {
|
|
80768
|
-
let r = (0, import_compiler_runtime$
|
|
80931
|
+
let r = (0, import_compiler_runtime$66.c)(6), { error: c, className: d } = e, f;
|
|
80769
80932
|
r[0] === d ? f = r[1] : (f = 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", d), r[0] = d, r[1] = f);
|
|
80770
80933
|
let _;
|
|
80771
80934
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (0, import_jsx_runtime.jsx)(X, {
|
|
@@ -80780,7 +80943,7 @@ ${c}
|
|
|
80780
80943
|
]
|
|
80781
80944
|
}), r[3] = c.message, r[4] = f, r[5] = v) : v = r[5], v;
|
|
80782
80945
|
}, LoadingState = (e) => {
|
|
80783
|
-
let r = (0, import_compiler_runtime$
|
|
80946
|
+
let r = (0, import_compiler_runtime$66.c)(6), { message: c, className: d } = e, f;
|
|
80784
80947
|
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);
|
|
80785
80948
|
let _;
|
|
80786
80949
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (_ = (0, import_jsx_runtime.jsx)(LoaderCircle, {
|
|
@@ -80795,7 +80958,7 @@ ${c}
|
|
|
80795
80958
|
]
|
|
80796
80959
|
}), r[3] = c, r[4] = f, r[5] = v) : v = r[5], v;
|
|
80797
80960
|
}, ColumnPreviewContainer = (e) => {
|
|
80798
|
-
let r = (0, import_compiler_runtime$
|
|
80961
|
+
let r = (0, import_compiler_runtime$66.c)(5), { children: c, className: d } = e, f;
|
|
80799
80962
|
r[0] === d ? f = r[1] : (f = cn("flex flex-col gap-2 relative", d), r[0] = d, r[1] = f);
|
|
80800
80963
|
let _;
|
|
80801
80964
|
return r[2] !== c || r[3] !== f ? (_ = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -80803,7 +80966,7 @@ ${c}
|
|
|
80803
80966
|
children: c
|
|
80804
80967
|
}), r[2] = c, r[3] = f, r[4] = _) : _ = r[4], _;
|
|
80805
80968
|
}, ColumnName = (e) => {
|
|
80806
|
-
let r = (0, import_compiler_runtime$
|
|
80969
|
+
let r = (0, import_compiler_runtime$66.c)(6), { columnName: c, dataType: d } = e, f = DATA_TYPE_ICON[d], _ = `w-4 h-4 p-0.5 rounded-sm stroke-card-foreground ${getDataTypeColor(d)}`, v;
|
|
80807
80970
|
r[0] !== f || r[1] !== _ ? (v = (0, import_jsx_runtime.jsx)(f, {
|
|
80808
80971
|
className: _
|
|
80809
80972
|
}), r[0] = f, r[1] = _, r[2] = v) : v = r[2];
|
|
@@ -80816,9 +80979,9 @@ ${c}
|
|
|
80816
80979
|
]
|
|
80817
80980
|
}), r[3] = c, r[4] = v, r[5] = y) : y = r[5], y;
|
|
80818
80981
|
};
|
|
80819
|
-
var import_compiler_runtime$
|
|
80982
|
+
var import_compiler_runtime$65 = require_compiler_runtime();
|
|
80820
80983
|
const InstallPackageButton = (e) => {
|
|
80821
|
-
let r = (0, import_compiler_runtime$
|
|
80984
|
+
let r = (0, import_compiler_runtime$65.c)(13), { packages: c, showMaxPackages: d, className: f, onInstall: _ } = e, { handleInstallPackages: v } = useInstallPackages();
|
|
80822
80985
|
if (!c || c.length === 0) return null;
|
|
80823
80986
|
let y;
|
|
80824
80987
|
r[0] !== v || r[1] !== _ || r[2] !== c ? (y = () => {
|
|
@@ -80841,7 +81004,7 @@ ${c}
|
|
|
80841
81004
|
]
|
|
80842
81005
|
}), r[9] = y, r[10] = S, r[11] = w, r[12] = E) : E = r[12], E;
|
|
80843
81006
|
};
|
|
80844
|
-
var import_compiler_runtime$
|
|
81007
|
+
var import_compiler_runtime$64 = require_compiler_runtime();
|
|
80845
81008
|
function renderPreviewError({ error: e, missingPackages: r, refetchPreview: c }) {
|
|
80846
81009
|
return (0, import_jsx_runtime.jsxs)("div", {
|
|
80847
81010
|
className: "text-xs text-muted-foreground p-2 border border-border rounded flex items-center justify-between",
|
|
@@ -80909,7 +81072,7 @@ ${c}
|
|
|
80909
81072
|
});
|
|
80910
81073
|
}
|
|
80911
81074
|
const AddDataframeChart = (e) => {
|
|
80912
|
-
let r = (0, import_compiler_runtime$
|
|
81075
|
+
let r = (0, import_compiler_runtime$64.c)(10), { chartCode: c } = e, d = useAtomValue(autoInstantiateAtom), f = useLastFocusedCellId(), { createNewCell: _ } = useCellActions(), v;
|
|
80913
81076
|
r[0] !== d || r[1] !== _ || r[2] !== f ? (v = (e2) => {
|
|
80914
81077
|
e2.includes("alt") && maybeAddAltairImport({
|
|
80915
81078
|
autoInstantiate: d,
|
|
@@ -80940,9 +81103,9 @@ ${c}
|
|
|
80940
81103
|
})
|
|
80941
81104
|
}), r[8] = S, r[9] = E), E;
|
|
80942
81105
|
};
|
|
80943
|
-
var import_compiler_runtime$
|
|
81106
|
+
var import_compiler_runtime$63 = require_compiler_runtime();
|
|
80944
81107
|
const ColumnExplorerPanel = (e) => {
|
|
80945
|
-
let r = (0, import_compiler_runtime$
|
|
81108
|
+
let r = (0, import_compiler_runtime$63.c)(40), { previewColumn: c, fieldTypes: d, totalRows: f, totalColumns: _, tableId: v } = e, [y, S] = (0, import_react.useState)(""), { locale: w } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), E, O, M, I, z, G, q, IY, LY, RY;
|
|
80946
81109
|
if (r[0] !== d || r[1] !== w || r[2] !== c || r[3] !== y || r[4] !== v || r[5] !== _ || r[6] !== f) {
|
|
80947
81110
|
let e2 = d == null ? void 0 : d.filter(_temp$20), zY2 = e2 == null ? void 0 : e2.filter((e3) => {
|
|
80948
81111
|
let [r2] = e3;
|
|
@@ -81005,7 +81168,7 @@ ${c}
|
|
|
81005
81168
|
}), r[36] = BY, r[37] = LY, r[38] = RY, r[39] = VY) : VY = r[39], VY;
|
|
81006
81169
|
};
|
|
81007
81170
|
var ColumnItem = (e) => {
|
|
81008
|
-
let r = (0, import_compiler_runtime$
|
|
81171
|
+
let r = (0, import_compiler_runtime$63.c)(28), { columnName: c, dataType: d, externalType: f, previewColumn: _ } = e, [v, y] = (0, import_react.useState)(false), S = v ? "font-semibold" : "", w;
|
|
81009
81172
|
r[0] !== c || r[1] !== S ? (w = (0, import_jsx_runtime.jsx)("span", {
|
|
81010
81173
|
className: S,
|
|
81011
81174
|
children: c
|
|
@@ -81070,7 +81233,7 @@ ${c}
|
|
|
81070
81233
|
]
|
|
81071
81234
|
}), r[25] = q, r[26] = IY, r[27] = LY) : LY = r[27], LY;
|
|
81072
81235
|
}, ColumnPreview = (e) => {
|
|
81073
|
-
let r = (0, import_compiler_runtime$
|
|
81236
|
+
let r = (0, import_compiler_runtime$63.c)(26), { previewColumn: c, columnName: d, dataType: f } = e, { theme: _ } = useTheme(), { locale: v } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), y;
|
|
81074
81237
|
r[0] !== d || r[1] !== c ? (y = async () => await c({
|
|
81075
81238
|
column: d
|
|
81076
81239
|
}), r[0] = d, r[1] = c, r[2] = y) : y = r[2];
|
|
@@ -81136,9 +81299,9 @@ ${c}
|
|
|
81136
81299
|
const contextAwarePanelOwner = atom(null), contextAwarePanelType = atom(null), contextAwarePanelOpen = atom(false);
|
|
81137
81300
|
atom(false);
|
|
81138
81301
|
const isCellAwareAtom = atom(false);
|
|
81139
|
-
var import_compiler_runtime$
|
|
81302
|
+
var import_compiler_runtime$62 = require_compiler_runtime();
|
|
81140
81303
|
function usePanelOwnership(e, r) {
|
|
81141
|
-
let c = (0, import_compiler_runtime$
|
|
81304
|
+
let c = (0, import_compiler_runtime$62.c)(12), d = useAtomValue(isCellAwareAtom), { focusCell: f } = useCellFocusActions(), _ = useLastFocusedCellId(), [v, y] = useAtom(contextAwarePanelType), [S, w] = useAtom(contextAwarePanelOwner), [E, O] = useAtom(contextAwarePanelOpen), M = getPanelId(e, r);
|
|
81142
81305
|
!r && d && (Logger.error("CellId is not found, defaulting to fixed mode"), d = false);
|
|
81143
81306
|
let I = (e2) => S === M && E && e2 === v, z = _ === r, G = S && isPanelOwner(S, r);
|
|
81144
81307
|
d && z && S !== M && !G && w(M);
|
|
@@ -81160,7 +81323,7 @@ ${c}
|
|
|
81160
81323
|
function isPanelOwner(e, r) {
|
|
81161
81324
|
return r ? e.startsWith(r) : false;
|
|
81162
81325
|
}
|
|
81163
|
-
var import_compiler_runtime$
|
|
81326
|
+
var import_compiler_runtime$61 = require_compiler_runtime();
|
|
81164
81327
|
const RowViewerPanel = ({ rowIdx: e, setRowIdx: r, totalRows: c, fieldTypes: d, getRow: f, isSelectable: _, isRowSelected: v, handleRowSelectionChange: y }) => {
|
|
81165
81328
|
let [S, w] = (0, import_react.useState)(""), E = (0, import_react.useRef)(null), O = (0, import_react.useRef)(null), { locale: M } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), I = c === TOO_MANY_ROWS, { data: z, error: G } = useAsyncData(async () => (await f(e)).rows, [
|
|
81166
81329
|
f,
|
|
@@ -81385,7 +81548,7 @@ ${c}
|
|
|
81385
81548
|
return _ = _.toLowerCase(), d.includes(f) || _.includes(f);
|
|
81386
81549
|
}
|
|
81387
81550
|
var SimpleBanner = (e) => {
|
|
81388
|
-
let r = (0, import_compiler_runtime$
|
|
81551
|
+
let r = (0, import_compiler_runtime$61.c)(8), { kind: c, Icon: d, message: f } = e, _;
|
|
81389
81552
|
r[0] === d ? _ = r[1] : (_ = (0, import_jsx_runtime.jsx)(d, {
|
|
81390
81553
|
className: "w-5 h-5"
|
|
81391
81554
|
}), r[0] = d, r[1] = _);
|
|
@@ -82621,7 +82784,7 @@ ${c}
|
|
|
82621
82784
|
defaultProp: d ?? false,
|
|
82622
82785
|
caller: NAME
|
|
82623
82786
|
});
|
|
82624
|
-
return (0, import_jsx_runtime.jsx)(Primitive
|
|
82787
|
+
return (0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
82625
82788
|
type: "button",
|
|
82626
82789
|
"aria-pressed": v,
|
|
82627
82790
|
"data-state": v ? "on" : "off",
|
|
@@ -82634,7 +82797,7 @@ ${c}
|
|
|
82634
82797
|
});
|
|
82635
82798
|
});
|
|
82636
82799
|
Toggle$1.displayName = NAME;
|
|
82637
|
-
var Root
|
|
82800
|
+
var Root = Toggle$1, import_compiler_runtime$60 = 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"), {
|
|
82638
82801
|
variants: {
|
|
82639
82802
|
variant: {
|
|
82640
82803
|
default: "bg-transparent",
|
|
@@ -82652,7 +82815,7 @@ ${c}
|
|
|
82652
82815
|
size: "default"
|
|
82653
82816
|
}
|
|
82654
82817
|
}), Toggle = import_react.forwardRef((e, r) => {
|
|
82655
|
-
let c = (0, import_compiler_runtime$
|
|
82818
|
+
let c = (0, import_compiler_runtime$60.c)(13), d, f, _, v;
|
|
82656
82819
|
c[0] === e ? (d = c[1], f = c[2], _ = c[3], v = c[4]) : ({ className: d, variant: v, size: _, ...f } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = _, c[4] = v);
|
|
82657
82820
|
let y;
|
|
82658
82821
|
c[5] !== d || c[6] !== _ || c[7] !== v ? (y = cn(toggleVariants({
|
|
@@ -82661,16 +82824,16 @@ ${c}
|
|
|
82661
82824
|
className: d
|
|
82662
82825
|
})), c[5] = d, c[6] = _, c[7] = v, c[8] = y) : y = c[8];
|
|
82663
82826
|
let S;
|
|
82664
|
-
return c[9] !== f || c[10] !== r || c[11] !== y ? (S = (0, import_jsx_runtime.jsx)(Root
|
|
82827
|
+
return c[9] !== f || c[10] !== r || c[11] !== y ? (S = (0, import_jsx_runtime.jsx)(Root, {
|
|
82665
82828
|
ref: r,
|
|
82666
82829
|
className: y,
|
|
82667
82830
|
...f
|
|
82668
82831
|
}), c[9] = f, c[10] = r, c[11] = y, c[12] = S) : S = c[12], S;
|
|
82669
82832
|
});
|
|
82670
|
-
Toggle.displayName = Root
|
|
82671
|
-
var import_compiler_runtime$
|
|
82833
|
+
Toggle.displayName = Root.displayName;
|
|
82834
|
+
var import_compiler_runtime$59 = require_compiler_runtime();
|
|
82672
82835
|
const ContextAwarePanelItem = (e) => {
|
|
82673
|
-
let r = (0, import_compiler_runtime$
|
|
82836
|
+
let r = (0, import_compiler_runtime$59.c)(2), { children: c } = e, d;
|
|
82674
82837
|
return r[0] === c ? d = r[1] : (d = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
82675
82838
|
children: (0, import_jsx_runtime.jsx)(Fill, {
|
|
82676
82839
|
name: SlotNames.CONTEXT_AWARE_PANEL,
|
|
@@ -82678,9 +82841,9 @@ ${c}
|
|
|
82678
82841
|
})
|
|
82679
82842
|
}), r[0] = c, r[1] = d), d;
|
|
82680
82843
|
};
|
|
82681
|
-
var import_compiler_runtime$
|
|
82844
|
+
var import_compiler_runtime$58 = require_compiler_runtime();
|
|
82682
82845
|
function useEffectSkipFirstRender(e, r) {
|
|
82683
|
-
let c = (0, import_compiler_runtime$
|
|
82846
|
+
let c = (0, import_compiler_runtime$58.c)(2), d = (0, import_react.useRef)(false), f;
|
|
82684
82847
|
c[0] === e ? f = c[1] : (f = () => {
|
|
82685
82848
|
if (!d.current) {
|
|
82686
82849
|
d.current = true;
|
|
@@ -83065,7 +83228,7 @@ ${c}
|
|
|
83065
83228
|
]), TransformationsSchema = object$1({
|
|
83066
83229
|
transforms: array$2(TransformTypeSchema)
|
|
83067
83230
|
});
|
|
83068
|
-
var import_compiler_runtime$
|
|
83231
|
+
var import_compiler_runtime$57 = require_compiler_runtime(), maybeNumber = union([
|
|
83069
83232
|
number$2(),
|
|
83070
83233
|
nan(),
|
|
83071
83234
|
string$2()
|
|
@@ -83248,7 +83411,7 @@ ${c}
|
|
|
83248
83411
|
})
|
|
83249
83412
|
}));
|
|
83250
83413
|
var LazyDataTableComponent = (e) => {
|
|
83251
|
-
let r = (0, import_compiler_runtime$
|
|
83414
|
+
let r = (0, import_compiler_runtime$57.c)(1), { isLazy: c, children: d, preload: f } = e, [_, v] = (0, import_react.useState)(c && !f);
|
|
83252
83415
|
if (_) {
|
|
83253
83416
|
let e2;
|
|
83254
83417
|
return r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (e2 = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -83269,7 +83432,7 @@ ${c}
|
|
|
83269
83432
|
return d;
|
|
83270
83433
|
};
|
|
83271
83434
|
const LoadingDataTableComponent = (0, import_react.memo)((e) => {
|
|
83272
|
-
let r = (0, import_compiler_runtime$
|
|
83435
|
+
let r = (0, import_compiler_runtime$57.c)(101), c;
|
|
83273
83436
|
r[0] === e.host ? c = r[1] : (c = findCellId(e.host), r[0] = e.host, r[1] = c);
|
|
83274
83437
|
let d = c, f = e.search, _ = e.setValue, v;
|
|
83275
83438
|
r[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = [], r[2] = v) : v = r[2];
|
|
@@ -83617,7 +83780,7 @@ ${c}
|
|
|
83617
83780
|
});
|
|
83618
83781
|
};
|
|
83619
83782
|
const TableProviders = (e) => {
|
|
83620
|
-
let r = (0, import_compiler_runtime$
|
|
83783
|
+
let r = (0, import_compiler_runtime$57.c)(2), { children: c } = e, d;
|
|
83621
83784
|
return r[0] === c ? d = r[1] : (d = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
|
|
83622
83785
|
children: (0, import_jsx_runtime.jsx)(Provider, {
|
|
83623
83786
|
store,
|
|
@@ -83657,8 +83820,8 @@ ${c}
|
|
|
83657
83820
|
pageIndex: 0
|
|
83658
83821
|
};
|
|
83659
83822
|
}
|
|
83660
|
-
var import_compiler_runtime$
|
|
83661
|
-
let r = (0, import_compiler_runtime$
|
|
83823
|
+
var import_compiler_runtime$56 = require_compiler_runtime(), Popover = (e) => {
|
|
83824
|
+
let r = (0, import_compiler_runtime$56.c)(10), c, d, f;
|
|
83662
83825
|
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);
|
|
83663
83826
|
let _ = f === void 0 ? 4 : f, v;
|
|
83664
83827
|
r[4] === c ? v = r[5] : (v = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp$18), r[4] = c, r[5] = v);
|
|
@@ -83672,8 +83835,8 @@ ${c}
|
|
|
83672
83835
|
function _temp$18(e) {
|
|
83673
83836
|
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);
|
|
83674
83837
|
}
|
|
83675
|
-
var import_compiler_runtime$
|
|
83676
|
-
let r = (0, import_compiler_runtime$
|
|
83838
|
+
var import_compiler_runtime$55 = require_compiler_runtime(), CalendarHeading = (e) => {
|
|
83839
|
+
let r = (0, import_compiler_runtime$55.c)(11), { direction: c } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), d;
|
|
83677
83840
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = cn(buttonVariants({
|
|
83678
83841
|
variant: "outline"
|
|
83679
83842
|
}), "size-7 bg-transparent p-0 opacity-50", "data-hovered:opacity-100"), r[0] = d) : d = r[0];
|
|
@@ -83720,7 +83883,7 @@ ${c}
|
|
|
83720
83883
|
]
|
|
83721
83884
|
}), r[7] = e, r[8] = f, r[9] = y, r[10] = S) : S = r[10], S;
|
|
83722
83885
|
}, CalendarGrid = (e) => {
|
|
83723
|
-
let r = (0, import_compiler_runtime$
|
|
83886
|
+
let r = (0, import_compiler_runtime$55.c)(8), c, d;
|
|
83724
83887
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
83725
83888
|
let f;
|
|
83726
83889
|
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);
|
|
@@ -83730,14 +83893,14 @@ ${c}
|
|
|
83730
83893
|
...d
|
|
83731
83894
|
}), r[5] = d, r[6] = f, r[7] = _) : _ = r[7], _;
|
|
83732
83895
|
}, CalendarGridHeader = (e) => {
|
|
83733
|
-
let r = (0, import_compiler_runtime$
|
|
83896
|
+
let r = (0, import_compiler_runtime$55.c)(4), c;
|
|
83734
83897
|
r[0] === e ? c = r[1] : ({ ...c } = e, r[0] = e, r[1] = c);
|
|
83735
83898
|
let d;
|
|
83736
83899
|
return r[2] === c ? d = r[3] : (d = (0, import_jsx_runtime.jsx)($dfd62f934fc76fed$export$22e2d15eaa4d2377, {
|
|
83737
83900
|
...c
|
|
83738
83901
|
}), r[2] = c, r[3] = d), d;
|
|
83739
83902
|
}, CalendarHeaderCell = (e) => {
|
|
83740
|
-
let r = (0, import_compiler_runtime$
|
|
83903
|
+
let r = (0, import_compiler_runtime$55.c)(8), c, d;
|
|
83741
83904
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
83742
83905
|
let f;
|
|
83743
83906
|
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);
|
|
@@ -83747,7 +83910,7 @@ ${c}
|
|
|
83747
83910
|
...d
|
|
83748
83911
|
}), r[5] = d, r[6] = f, r[7] = _) : _ = r[7], _;
|
|
83749
83912
|
}, CalendarGridBody = (e) => {
|
|
83750
|
-
let r = (0, import_compiler_runtime$
|
|
83913
|
+
let r = (0, import_compiler_runtime$55.c)(8), c, d;
|
|
83751
83914
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
83752
83915
|
let f;
|
|
83753
83916
|
r[3] === c ? f = r[4] : (f = cn("[&>tr>td]:p-0", c), r[3] = c, r[4] = f);
|
|
@@ -83757,7 +83920,7 @@ ${c}
|
|
|
83757
83920
|
...d
|
|
83758
83921
|
}), r[5] = d, r[6] = f, r[7] = _) : _ = r[7], _;
|
|
83759
83922
|
}, CalendarCell = (e) => {
|
|
83760
|
-
let r = (0, import_compiler_runtime$
|
|
83923
|
+
let r = (0, import_compiler_runtime$55.c)(11), c, d;
|
|
83761
83924
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
83762
83925
|
let f = !!import_react.use($dfd62f934fc76fed$export$5e0fc348c00f87a0), _;
|
|
83763
83926
|
r[3] === f ? _ = r[4] : (_ = (e2, r2) => cn(buttonVariants({
|
|
@@ -83771,7 +83934,7 @@ ${c}
|
|
|
83771
83934
|
...d
|
|
83772
83935
|
}), r[8] = d, r[9] = v, r[10] = y) : y = r[10], y;
|
|
83773
83936
|
}, Calendar$1 = (e) => {
|
|
83774
|
-
let r = (0, import_compiler_runtime$
|
|
83937
|
+
let r = (0, import_compiler_runtime$55.c)(14), c, d, f;
|
|
83775
83938
|
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);
|
|
83776
83939
|
let _;
|
|
83777
83940
|
r[4] === c ? _ = r[5] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp$17), r[4] = c, r[5] = _);
|
|
@@ -83805,7 +83968,7 @@ ${c}
|
|
|
83805
83968
|
]
|
|
83806
83969
|
}), r[10] = f, r[11] = _, r[12] = S, r[13] = w) : w = r[13], w;
|
|
83807
83970
|
}, RangeCalendar = (e) => {
|
|
83808
|
-
let r = (0, import_compiler_runtime$
|
|
83971
|
+
let r = (0, import_compiler_runtime$55.c)(14), c, d, f;
|
|
83809
83972
|
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);
|
|
83810
83973
|
let _;
|
|
83811
83974
|
r[4] === c ? _ = r[5] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp4$6), r[4] = c, r[5] = _);
|
|
@@ -83865,12 +84028,12 @@ ${c}
|
|
|
83865
84028
|
date: e
|
|
83866
84029
|
});
|
|
83867
84030
|
}
|
|
83868
|
-
var import_compiler_runtime$
|
|
84031
|
+
var import_compiler_runtime$54 = require_compiler_runtime(), labelVariants = cva([
|
|
83869
84032
|
"text-sm font-medium leading-none",
|
|
83870
84033
|
"data-disabled:cursor-not-allowed data-disabled:opacity-70",
|
|
83871
84034
|
"group-data-invalid:text-destructive"
|
|
83872
84035
|
]), Label$1 = (e) => {
|
|
83873
|
-
let r = (0, import_compiler_runtime$
|
|
84036
|
+
let r = (0, import_compiler_runtime$54.c)(8), c, d;
|
|
83874
84037
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
83875
84038
|
let f;
|
|
83876
84039
|
r[3] === c ? f = r[4] : (f = cn(labelVariants(), c), r[3] = c, r[4] = f);
|
|
@@ -83880,7 +84043,7 @@ ${c}
|
|
|
83880
84043
|
...d
|
|
83881
84044
|
}), r[5] = d, r[6] = f, r[7] = _) : _ = r[7], _;
|
|
83882
84045
|
}, FieldError = (e) => {
|
|
83883
|
-
let r = (0, import_compiler_runtime$
|
|
84046
|
+
let r = (0, import_compiler_runtime$54.c)(8), c, d;
|
|
83884
84047
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
83885
84048
|
let f;
|
|
83886
84049
|
r[3] === c ? f = r[4] : (f = cn("text-sm font-medium text-destructive", c), r[3] = c, r[4] = f);
|
|
@@ -83905,7 +84068,7 @@ ${c}
|
|
|
83905
84068
|
variant: "default"
|
|
83906
84069
|
}
|
|
83907
84070
|
}), FieldGroup = (e) => {
|
|
83908
|
-
let r = (0, import_compiler_runtime$
|
|
84071
|
+
let r = (0, import_compiler_runtime$54.c)(12), c, d, f;
|
|
83909
84072
|
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);
|
|
83910
84073
|
let _;
|
|
83911
84074
|
r[4] === f ? _ = r[5] : (_ = (e2) => cn(fieldGroupVariants({
|
|
@@ -83918,8 +84081,8 @@ ${c}
|
|
|
83918
84081
|
className: v,
|
|
83919
84082
|
...d
|
|
83920
84083
|
}), r[9] = d, r[10] = v, r[11] = y) : y = r[11], y;
|
|
83921
|
-
}, import_compiler_runtime$
|
|
83922
|
-
let r = (0, import_compiler_runtime$
|
|
84084
|
+
}, import_compiler_runtime$53 = require_compiler_runtime(), DateSegment = (e) => {
|
|
84085
|
+
let r = (0, import_compiler_runtime$53.c)(8), c, d;
|
|
83923
84086
|
r[0] === e ? (c = r[1], d = r[2]) : ({ className: c, ...d } = e, r[0] = e, r[1] = c, r[2] = d);
|
|
83924
84087
|
let f;
|
|
83925
84088
|
r[3] === c ? f = r[4] : (f = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp$16), r[3] = c, r[4] = f);
|
|
@@ -83929,7 +84092,7 @@ ${c}
|
|
|
83929
84092
|
...d
|
|
83930
84093
|
}), r[5] = d, r[6] = f, r[7] = _) : _ = r[7], _;
|
|
83931
84094
|
}, DateInput = (e) => {
|
|
83932
|
-
let r = (0, import_compiler_runtime$
|
|
84095
|
+
let r = (0, import_compiler_runtime$53.c)(12), c, d, f;
|
|
83933
84096
|
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);
|
|
83934
84097
|
let _;
|
|
83935
84098
|
r[4] === f ? _ = r[5] : (_ = (e2) => cn(fieldGroupVariants({
|
|
@@ -83952,8 +84115,8 @@ ${c}
|
|
|
83952
84115
|
segment: e
|
|
83953
84116
|
});
|
|
83954
84117
|
}
|
|
83955
|
-
var import_compiler_runtime$
|
|
83956
|
-
let r = (0, import_compiler_runtime$
|
|
84118
|
+
var import_compiler_runtime$52 = require_compiler_runtime(), DatePickerContent = (e) => {
|
|
84119
|
+
let r = (0, import_compiler_runtime$52.c)(14), c, d, f;
|
|
83957
84120
|
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);
|
|
83958
84121
|
let _;
|
|
83959
84122
|
r[4] === d ? _ = r[5] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(d, _temp$15), r[4] = d, r[5] = _);
|
|
@@ -83970,7 +84133,7 @@ ${c}
|
|
|
83970
84133
|
children: y
|
|
83971
84134
|
}), r[11] = _, r[12] = y, r[13] = S) : S = r[13], S;
|
|
83972
84135
|
}, DatePicker = (e) => {
|
|
83973
|
-
let r = (0, import_compiler_runtime$
|
|
84136
|
+
let r = (0, import_compiler_runtime$52.c)(26), c, d, f, _, v;
|
|
83974
84137
|
r[0] === e ? (c = r[1], d = r[2], f = r[3], _ = r[4], v = r[5]) : ({ label: _, description: d, errorMessage: f, className: c, ...v } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = _, r[5] = v);
|
|
83975
84138
|
let [y, S] = (0, import_react.useState)(false), w;
|
|
83976
84139
|
r[6] === c ? w = r[7] : (w = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp2$12), r[6] = c, r[7] = w);
|
|
@@ -84052,7 +84215,7 @@ ${c}
|
|
|
84052
84215
|
]
|
|
84053
84216
|
}), r[19] = y, r[20] = v, r[21] = w, r[22] = O, r[23] = z, r[24] = G, r[25] = LY) : LY = r[25], LY;
|
|
84054
84217
|
}, DateRangePicker = (e) => {
|
|
84055
|
-
let r = (0, import_compiler_runtime$
|
|
84218
|
+
let r = (0, import_compiler_runtime$52.c)(28), c, d, f, _, v;
|
|
84056
84219
|
r[0] === e ? (c = r[1], d = r[2], f = r[3], _ = r[4], v = r[5]) : ({ label: _, description: d, errorMessage: f, className: c, ...v } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = _, r[5] = v);
|
|
84057
84220
|
let [y, S] = (0, import_react.useState)(false), w;
|
|
84058
84221
|
r[6] === c ? w = r[7] : (w = $64fa3d84918910a7$export$c245e6201fed2f75(c, _temp5$3), r[6] = c, r[7] = w);
|
|
@@ -84172,7 +84335,7 @@ ${c}
|
|
|
84172
84335
|
date: e
|
|
84173
84336
|
});
|
|
84174
84337
|
}
|
|
84175
|
-
var import_compiler_runtime$
|
|
84338
|
+
var import_compiler_runtime$51 = require_compiler_runtime(), DatePickerPlugin = class {
|
|
84176
84339
|
constructor() {
|
|
84177
84340
|
__publicField(this, "tagName", "marimo-date");
|
|
84178
84341
|
__publicField(this, "validator", object$1({
|
|
@@ -84194,7 +84357,7 @@ ${c}
|
|
|
84194
84357
|
});
|
|
84195
84358
|
}
|
|
84196
84359
|
}, DatePickerComponent = (e) => {
|
|
84197
|
-
let r = (0, import_compiler_runtime$
|
|
84360
|
+
let r = (0, import_compiler_runtime$51.c)(19), c;
|
|
84198
84361
|
r[0] === e ? c = r[1] : (c = (r2) => {
|
|
84199
84362
|
if (!r2) return;
|
|
84200
84363
|
let c2 = r2.toString();
|
|
@@ -84222,7 +84385,7 @@ ${c}
|
|
|
84222
84385
|
fullWidth: _,
|
|
84223
84386
|
children: E
|
|
84224
84387
|
}), r[15] = e.fullWidth, r[16] = e.label, r[17] = E, r[18] = O) : O = r[18], O;
|
|
84225
|
-
}, import_compiler_runtime$
|
|
84388
|
+
}, import_compiler_runtime$50 = require_compiler_runtime(), DateRangePickerPlugin = class {
|
|
84226
84389
|
constructor() {
|
|
84227
84390
|
__publicField(this, "tagName", "marimo-date-range");
|
|
84228
84391
|
__publicField(this, "validator", object$1({
|
|
@@ -84246,7 +84409,7 @@ ${c}
|
|
|
84246
84409
|
});
|
|
84247
84410
|
}
|
|
84248
84411
|
}, DateRangePickerComponent = (e) => {
|
|
84249
|
-
let r = (0, import_compiler_runtime$
|
|
84412
|
+
let r = (0, import_compiler_runtime$50.c)(24), c;
|
|
84250
84413
|
r[0] === e ? c = r[1] : (c = (r2) => {
|
|
84251
84414
|
if (!r2) return;
|
|
84252
84415
|
let { start: c2, end: d2 } = r2, f2 = [
|
|
@@ -84284,7 +84447,7 @@ ${c}
|
|
|
84284
84447
|
fullWidth: _,
|
|
84285
84448
|
children: M
|
|
84286
84449
|
}), r[20] = e.fullWidth, r[21] = e.label, r[22] = M, r[23] = I) : I = r[23], I;
|
|
84287
|
-
}, import_compiler_runtime$
|
|
84450
|
+
}, import_compiler_runtime$49 = require_compiler_runtime(), DateTimePickerPlugin = class {
|
|
84288
84451
|
constructor() {
|
|
84289
84452
|
__publicField(this, "tagName", "marimo-datetime");
|
|
84290
84453
|
__publicField(this, "validator", object$1({
|
|
@@ -84310,7 +84473,7 @@ ${c}
|
|
|
84310
84473
|
});
|
|
84311
84474
|
}
|
|
84312
84475
|
}, DateTimePickerComponent = (e) => {
|
|
84313
|
-
let r = (0, import_compiler_runtime$
|
|
84476
|
+
let r = (0, import_compiler_runtime$49.c)(20), c;
|
|
84314
84477
|
r[0] === e ? c = r[1] : (c = (r2) => {
|
|
84315
84478
|
if (!r2) return;
|
|
84316
84479
|
let c2 = r2.toString();
|
|
@@ -84338,7 +84501,7 @@ ${c}
|
|
|
84338
84501
|
fullWidth: y,
|
|
84339
84502
|
children: M
|
|
84340
84503
|
}), r[16] = e.fullWidth, r[17] = e.label, r[18] = M, r[19] = I) : I = r[19], I;
|
|
84341
|
-
}, import_compiler_runtime$
|
|
84504
|
+
}, import_compiler_runtime$48 = require_compiler_runtime(), DictPlugin = class {
|
|
84342
84505
|
constructor() {
|
|
84343
84506
|
__publicField(this, "tagName", "marimo-dict");
|
|
84344
84507
|
__publicField(this, "validator", object$1({
|
|
@@ -84355,7 +84518,7 @@ ${c}
|
|
|
84355
84518
|
});
|
|
84356
84519
|
}
|
|
84357
84520
|
}, Dict = (e) => {
|
|
84358
|
-
let r = (0, import_compiler_runtime$
|
|
84521
|
+
let r = (0, import_compiler_runtime$48.c)(4), { elementIds: c, setValue: d, children: f } = e, _, v;
|
|
84359
84522
|
return r[0] !== c || r[1] !== d ? (_ = () => {
|
|
84360
84523
|
let e2 = (e3) => {
|
|
84361
84524
|
let r2 = e3.detail.element;
|
|
@@ -84377,9 +84540,9 @@ ${c}
|
|
|
84377
84540
|
c,
|
|
84378
84541
|
d
|
|
84379
84542
|
], r[0] = c, r[1] = d, r[2] = _, r[3] = v) : (_ = r[2], v = r[3]), (0, import_react.useEffect)(_, v), f;
|
|
84380
|
-
}, import_compiler_runtime$
|
|
84543
|
+
}, import_compiler_runtime$47 = require_compiler_runtime(), NONE_KEY = "__none__";
|
|
84381
84544
|
const SearchableSelect = (e) => {
|
|
84382
|
-
let r = (0, import_compiler_runtime$
|
|
84545
|
+
let r = (0, import_compiler_runtime$47.c)(25), { options: c, value: d, setValue: f, label: _, allowSelectNone: v, fullWidth: y } = e, S = (0, import_react.useId)(), [w, E] = (0, import_react.useState)(""), O;
|
|
84383
84546
|
bb0: {
|
|
84384
84547
|
if (!w) {
|
|
84385
84548
|
O = c;
|
|
@@ -84464,7 +84627,7 @@ ${c}
|
|
|
84464
84627
|
function _temp2$11(e) {
|
|
84465
84628
|
return e === NONE_KEY ? "--" : e;
|
|
84466
84629
|
}
|
|
84467
|
-
var import_compiler_runtime$
|
|
84630
|
+
var import_compiler_runtime$46 = require_compiler_runtime(), DropdownPlugin = class {
|
|
84468
84631
|
constructor() {
|
|
84469
84632
|
__publicField(this, "tagName", "marimo-dropdown");
|
|
84470
84633
|
__publicField(this, "validator", object$1({
|
|
@@ -84494,7 +84657,7 @@ ${c}
|
|
|
84494
84657
|
});
|
|
84495
84658
|
}
|
|
84496
84659
|
}, EMPTY_VALUE = "--", Dropdown = (e) => {
|
|
84497
|
-
let r = (0, import_compiler_runtime$
|
|
84660
|
+
let r = (0, import_compiler_runtime$46.c)(24), { label: c, options: d, value: f, setValue: _, allowSelectNone: v, fullWidth: y } = e, S = (0, import_react.useId)(), w = v ? EMPTY_VALUE : d[0], E = f.length === 0 ? w : f[0], O;
|
|
84498
84661
|
r[0] === _ ? O = r[1] : (O = (e2) => {
|
|
84499
84662
|
let r2 = e2.target.value;
|
|
84500
84663
|
_(r2 === EMPTY_VALUE ? [] : [
|
|
@@ -84539,7 +84702,7 @@ ${c}
|
|
|
84539
84702
|
fullWidth: y,
|
|
84540
84703
|
children: G
|
|
84541
84704
|
}), r[19] = y, r[20] = S, r[21] = c, r[22] = G, r[23] = q) : q = r[23], q;
|
|
84542
|
-
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-
|
|
84705
|
+
}, LazyDataExplorerComponent = import_react.lazy(() => import("./ConnectedDataExplorerComponent-CukLYFVV.js"));
|
|
84543
84706
|
const DataExplorerPlugin = createPlugin("marimo-data-explorer").withData(object$1({
|
|
84544
84707
|
label: string$2().nullish(),
|
|
84545
84708
|
data: string$2()
|
|
@@ -84553,14 +84716,14 @@ ${c}
|
|
|
84553
84716
|
values: [],
|
|
84554
84717
|
too_many_values: false
|
|
84555
84718
|
}));
|
|
84556
|
-
var RADIO_NAME = "Radio", [createRadioContext, createRadioScope] = createContextScope
|
|
84719
|
+
var RADIO_NAME = "Radio", [createRadioContext, createRadioScope] = createContextScope(RADIO_NAME), [RadioProvider, useRadioContext] = createRadioContext(RADIO_NAME), Radio$1 = import_react.forwardRef((e, r) => {
|
|
84557
84720
|
let { __scopeRadio: c, name: d, checked: f = false, required: _, disabled: v, value: y = "on", onCheck: S, form: w, ...E } = e, [O, M] = import_react.useState(null), I = useComposedRefs(r, (e2) => M(e2)), z = import_react.useRef(false), G = O ? w || !!O.closest("form") : true;
|
|
84558
84721
|
return (0, import_jsx_runtime.jsxs)(RadioProvider, {
|
|
84559
84722
|
scope: c,
|
|
84560
84723
|
checked: f,
|
|
84561
84724
|
disabled: v,
|
|
84562
84725
|
children: [
|
|
84563
|
-
(0, import_jsx_runtime.jsx)(Primitive
|
|
84726
|
+
(0, import_jsx_runtime.jsx)(Primitive.button, {
|
|
84564
84727
|
type: "button",
|
|
84565
84728
|
role: "radio",
|
|
84566
84729
|
"aria-checked": f,
|
|
@@ -84591,11 +84754,11 @@ ${c}
|
|
|
84591
84754
|
});
|
|
84592
84755
|
});
|
|
84593
84756
|
Radio$1.displayName = RADIO_NAME;
|
|
84594
|
-
var INDICATOR_NAME
|
|
84595
|
-
let { __scopeRadio: c, forceMount: d, ...f } = e, _ = useRadioContext(INDICATOR_NAME
|
|
84757
|
+
var INDICATOR_NAME = "RadioIndicator", RadioIndicator = import_react.forwardRef((e, r) => {
|
|
84758
|
+
let { __scopeRadio: c, forceMount: d, ...f } = e, _ = useRadioContext(INDICATOR_NAME, c);
|
|
84596
84759
|
return (0, import_jsx_runtime.jsx)(Presence, {
|
|
84597
84760
|
present: d || _.checked,
|
|
84598
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
84761
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.span, {
|
|
84599
84762
|
"data-state": getState(_.checked),
|
|
84600
84763
|
"data-disabled": _.disabled ? "" : void 0,
|
|
84601
84764
|
...f,
|
|
@@ -84603,7 +84766,7 @@ ${c}
|
|
|
84603
84766
|
})
|
|
84604
84767
|
});
|
|
84605
84768
|
});
|
|
84606
|
-
RadioIndicator.displayName = INDICATOR_NAME
|
|
84769
|
+
RadioIndicator.displayName = INDICATOR_NAME;
|
|
84607
84770
|
var BUBBLE_INPUT_NAME = "RadioBubbleInput", RadioBubbleInput = import_react.forwardRef(({ __scopeRadio: e, control: r, checked: c, bubbles: d = true, ...f }, _) => {
|
|
84608
84771
|
let v = import_react.useRef(null), y = useComposedRefs(v, _), S = usePrevious$1(c), w = useSize(r);
|
|
84609
84772
|
return import_react.useEffect(() => {
|
|
@@ -84620,7 +84783,7 @@ ${c}
|
|
|
84620
84783
|
S,
|
|
84621
84784
|
c,
|
|
84622
84785
|
d
|
|
84623
|
-
]), (0, import_jsx_runtime.jsx)(Primitive
|
|
84786
|
+
]), (0, import_jsx_runtime.jsx)(Primitive.input, {
|
|
84624
84787
|
type: "radio",
|
|
84625
84788
|
"aria-hidden": true,
|
|
84626
84789
|
defaultChecked: c,
|
|
@@ -84646,7 +84809,7 @@ ${c}
|
|
|
84646
84809
|
"ArrowDown",
|
|
84647
84810
|
"ArrowLeft",
|
|
84648
84811
|
"ArrowRight"
|
|
84649
|
-
], RADIO_GROUP_NAME = "RadioGroup", [createRadioGroupContext, createRadioGroupScope] = createContextScope
|
|
84812
|
+
], RADIO_GROUP_NAME = "RadioGroup", [createRadioGroupContext, createRadioGroupScope] = createContextScope(RADIO_GROUP_NAME, [
|
|
84650
84813
|
createRovingFocusGroupScope,
|
|
84651
84814
|
createRadioScope
|
|
84652
84815
|
]), useRovingFocusGroupScope = createRovingFocusGroupScope(), useRadioScope = createRadioScope(), [RadioGroupProvider, useRadioGroupContext] = createRadioGroupContext(RADIO_GROUP_NAME), RadioGroup$1 = import_react.forwardRef((e, r) => {
|
|
@@ -84669,7 +84832,7 @@ ${c}
|
|
|
84669
84832
|
orientation: S,
|
|
84670
84833
|
dir: z,
|
|
84671
84834
|
loop: E,
|
|
84672
|
-
children: (0, import_jsx_runtime.jsx)(Primitive
|
|
84835
|
+
children: (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
84673
84836
|
role: "radiogroup",
|
|
84674
84837
|
"aria-required": v,
|
|
84675
84838
|
"aria-orientation": S,
|
|
@@ -84725,8 +84888,8 @@ ${c}
|
|
|
84725
84888
|
});
|
|
84726
84889
|
});
|
|
84727
84890
|
RadioGroupIndicator.displayName = INDICATOR_NAME2;
|
|
84728
|
-
var Root2 = RadioGroup$1, Item2 = RadioGroupItem$1, Indicator$
|
|
84729
|
-
let c = (0, import_compiler_runtime$
|
|
84891
|
+
var Root2 = RadioGroup$1, Item2 = RadioGroupItem$1, Indicator$1 = RadioGroupIndicator, import_compiler_runtime$45 = require_compiler_runtime(), RadioGroup = import_react.forwardRef((e, r) => {
|
|
84892
|
+
let c = (0, import_compiler_runtime$45.c)(9), d, f;
|
|
84730
84893
|
c[0] === e ? (d = c[1], f = c[2]) : ({ className: d, ...f } = e, c[0] = e, c[1] = d, c[2] = f);
|
|
84731
84894
|
let _;
|
|
84732
84895
|
c[3] === d ? _ = c[4] : (_ = cn("grid gap-2", d), c[3] = d, c[4] = _);
|
|
@@ -84739,7 +84902,7 @@ ${c}
|
|
|
84739
84902
|
});
|
|
84740
84903
|
RadioGroup.displayName = Root2.displayName;
|
|
84741
84904
|
var RadioGroupItem = import_react.forwardRef((e, r) => {
|
|
84742
|
-
let c = (0, import_compiler_runtime$
|
|
84905
|
+
let c = (0, import_compiler_runtime$45.c)(10), d, f;
|
|
84743
84906
|
if (c[0] !== e) {
|
|
84744
84907
|
let { className: r2, children: _2, ...v2 } = e;
|
|
84745
84908
|
d = r2, f = v2, c[0] = e, c[1] = d, c[2] = f;
|
|
@@ -84747,7 +84910,7 @@ ${c}
|
|
|
84747
84910
|
let _;
|
|
84748
84911
|
c[3] === d ? _ = c[4] : (_ = cn("h-[16px] w-[16px] transition-shadow data-[state=unchecked]:shadow-xs-solid rounded-full border border-input text-primary ring-offset-background focus:outline-hidden focus:shadow-none focus-visible:ring-1 focus-visible:ring-ring focus-visible:ring-offset-2 disabled:cursor-not-allowed disabled:opacity-50 data-[state=checked]:border-primary data-[state=checked]:shadow-none", d), c[3] = d, c[4] = _);
|
|
84749
84912
|
let v;
|
|
84750
|
-
c[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (0, import_jsx_runtime.jsx)(Indicator$
|
|
84913
|
+
c[5] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (0, import_jsx_runtime.jsx)(Indicator$1, {
|
|
84751
84914
|
className: "flex items-center justify-center",
|
|
84752
84915
|
children: (0, import_jsx_runtime.jsx)(Circle, {
|
|
84753
84916
|
className: "h-[10px] w-[10px] fill-primary text-current"
|
|
@@ -84810,9 +84973,9 @@ ${c}
|
|
|
84810
84973
|
function doesArrayRequireMinLength(e) {
|
|
84811
84974
|
return !e.safeParse([]).success;
|
|
84812
84975
|
}
|
|
84813
|
-
var import_compiler_runtime$
|
|
84976
|
+
var import_compiler_runtime$44 = require_compiler_runtime(), DELIMINATOR = "\n";
|
|
84814
84977
|
const SwitchableMultiSelect = (e) => {
|
|
84815
|
-
let r = (0, import_compiler_runtime$
|
|
84978
|
+
let r = (0, import_compiler_runtime$44.c)(24), { value: c, options: d, onChange: f, className: _, placeholder: v, textAreaClassName: y, comboBoxClassName: S } = e, [w, E] = (0, import_react.useState)(false), O;
|
|
84816
84979
|
r[0] === c ? O = r[1] : (O = ensureStringArray(c), r[0] = c, r[1] = O);
|
|
84817
84980
|
let M = O, I;
|
|
84818
84981
|
r[2] !== S || r[3] !== f || r[4] !== d || r[5] !== v || r[6] !== w || r[7] !== y || r[8] !== M ? (I = () => w ? (0, import_jsx_runtime.jsx)(TextAreaMultiSelect, {
|
|
@@ -84861,7 +85024,7 @@ ${c}
|
|
|
84861
85024
|
]
|
|
84862
85025
|
}), r[20] = G, r[21] = q, r[22] = zY, r[23] = BY) : BY = r[23], BY;
|
|
84863
85026
|
}, TextAreaMultiSelect = (e) => {
|
|
84864
|
-
let r = (0, import_compiler_runtime$
|
|
85027
|
+
let r = (0, import_compiler_runtime$44.c)(11), { className: c, value: d, onChange: f, placeholder: _ } = e, v, y;
|
|
84865
85028
|
if (r[0] !== d) {
|
|
84866
85029
|
let e2 = ensureStringArray(d);
|
|
84867
85030
|
v = Textarea, y = e2.join(DELIMINATOR), r[0] = d, r[1] = v, r[2] = y;
|
|
@@ -84897,9 +85060,9 @@ ${c}
|
|
|
84897
85060
|
children: e
|
|
84898
85061
|
}, e);
|
|
84899
85062
|
}
|
|
84900
|
-
var import_compiler_runtime$
|
|
85063
|
+
var import_compiler_runtime$43 = require_compiler_runtime();
|
|
84901
85064
|
const ZodForm = (e) => {
|
|
84902
|
-
let r = (0, import_compiler_runtime$
|
|
85065
|
+
let r = (0, import_compiler_runtime$43.c)(11), { schema: c, form: d, path: f, renderers: _, children: v } = e, y = f === void 0 ? "" : f, S;
|
|
84903
85066
|
r[0] === _ ? S = r[1] : (S = _ === void 0 ? [] : _, r[0] = _, r[1] = S);
|
|
84904
85067
|
let w = S, E;
|
|
84905
85068
|
r[2] !== d || r[3] !== y || r[4] !== w || r[5] !== c ? (E = renderZodSchema(c, d, y, w), r[2] = d, r[3] = y, r[4] = w, r[5] = c, r[6] = E) : E = r[6];
|
|
@@ -85186,7 +85349,7 @@ ${c}
|
|
|
85186
85349
|
});
|
|
85187
85350
|
}
|
|
85188
85351
|
var FormArray = (e) => {
|
|
85189
|
-
let r = (0, import_compiler_runtime$
|
|
85352
|
+
let r = (0, import_compiler_runtime$43.c)(39), { schema: c, form: d, path: f, minLength: _, renderers: v } = e, y;
|
|
85190
85353
|
r[0] === c.description ? y = r[1] : (y = FieldOptions.parse(c.description || ""), r[0] = c.description, r[1] = y);
|
|
85191
85354
|
let { label: S, description: w } = y, E = d.control, O;
|
|
85192
85355
|
r[2] !== E || r[3] !== f ? (O = {
|
|
@@ -85263,7 +85426,7 @@ ${c}
|
|
|
85263
85426
|
]
|
|
85264
85427
|
}), r[33] = IY, r[34] = LY, r[35] = RY, r[36] = zY, r[37] = HY, r[38] = UY) : UY = r[38], UY;
|
|
85265
85428
|
}, StringFormField = (e) => {
|
|
85266
|
-
let r = (0, import_compiler_runtime$
|
|
85429
|
+
let r = (0, import_compiler_runtime$43.c)(21), { schema: c, form: d, path: f } = e, _;
|
|
85267
85430
|
r[0] === c.description ? _ = r[1] : (_ = FieldOptions.parse(c.description), r[0] = c.description, r[1] = _);
|
|
85268
85431
|
let { label: v, description: y, placeholder: S, disabled: w, inputType: E } = _;
|
|
85269
85432
|
if (E === "textarea") {
|
|
@@ -85332,7 +85495,7 @@ ${c}
|
|
|
85332
85495
|
render: O
|
|
85333
85496
|
}), r[17] = d.control, r[18] = f, r[19] = O, r[20] = M) : M = r[20], M;
|
|
85334
85497
|
}, MultiStringFormField = (e) => {
|
|
85335
|
-
let r = (0, import_compiler_runtime$
|
|
85498
|
+
let r = (0, import_compiler_runtime$43.c)(10), { schema: c, form: d, path: f } = e, _;
|
|
85336
85499
|
r[0] === c.description ? _ = r[1] : (_ = FieldOptions.parse(c.description), r[0] = c.description, r[1] = _);
|
|
85337
85500
|
let { label: v, description: y, placeholder: S } = _, w;
|
|
85338
85501
|
r[2] !== y || r[3] !== v || r[4] !== S ? (w = (e2) => {
|
|
@@ -85362,7 +85525,7 @@ ${c}
|
|
|
85362
85525
|
render: w
|
|
85363
85526
|
}), r[6] = d.control, r[7] = f, r[8] = w, r[9] = E) : E = r[9], E;
|
|
85364
85527
|
}, SelectFormField = (e) => {
|
|
85365
|
-
let r = (0, import_compiler_runtime$
|
|
85528
|
+
let r = (0, import_compiler_runtime$43.c)(22), { schema: c, form: d, path: f, options: _, textTransform: v } = e, y;
|
|
85366
85529
|
r[0] === c.description ? y = r[1] : (y = FieldOptions.parse(c.description), r[0] = c.description, r[1] = y);
|
|
85367
85530
|
let { label: S, description: w, disabled: E, special: O } = y;
|
|
85368
85531
|
if (O === "radio_group") {
|
|
@@ -85464,7 +85627,7 @@ ${c}
|
|
|
85464
85627
|
render: M
|
|
85465
85628
|
}), r[17] = E, r[18] = d.control, r[19] = f, r[20] = M, r[21] = I) : I = r[21], I;
|
|
85466
85629
|
}, MultiSelectFormField = (e) => {
|
|
85467
|
-
let r = (0, import_compiler_runtime$
|
|
85630
|
+
let r = (0, import_compiler_runtime$43.c)(15), { schema: c, form: d, path: f, options: _, itemLabel: v, showSwitchable: y } = e, S;
|
|
85468
85631
|
r[0] === c.description ? S = r[1] : (S = FieldOptions.parse(c.description), r[0] = c.description, r[1] = S);
|
|
85469
85632
|
let { label: w, description: E, placeholder: O } = S, M;
|
|
85470
85633
|
r[2] !== v || r[3] !== O ? (M = O ?? (v ? `Select ${v == null ? void 0 : v.toLowerCase()}` : void 0), r[2] = v, r[3] = O, r[4] = M) : M = r[4];
|
|
@@ -85524,9 +85687,9 @@ ${c}
|
|
|
85524
85687
|
children: e
|
|
85525
85688
|
}, e);
|
|
85526
85689
|
}
|
|
85527
|
-
var import_compiler_runtime$
|
|
85690
|
+
var import_compiler_runtime$42 = require_compiler_runtime();
|
|
85528
85691
|
const DataTypeIcon = (e) => {
|
|
85529
|
-
let r = (0, import_compiler_runtime$
|
|
85692
|
+
let r = (0, import_compiler_runtime$42.c)(4), { type: c } = e, d;
|
|
85530
85693
|
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, {
|
|
85531
85694
|
size: 14
|
|
85532
85695
|
}) : c.startsWith("object") || c.startsWith("string") ? (0, import_jsx_runtime.jsx)(CaseSensitive, {
|
|
@@ -85544,7 +85707,7 @@ ${c}
|
|
|
85544
85707
|
children: f()
|
|
85545
85708
|
}), r[2] = f, r[3] = _), _;
|
|
85546
85709
|
};
|
|
85547
|
-
var import_compiler_runtime$
|
|
85710
|
+
var import_compiler_runtime$41 = require_compiler_runtime();
|
|
85548
85711
|
const columnIdRenderer = () => ({
|
|
85549
85712
|
isMatch: (e) => {
|
|
85550
85713
|
let { special: r } = FieldOptions.parse(e.description || "");
|
|
@@ -85646,7 +85809,7 @@ ${c}
|
|
|
85646
85809
|
}
|
|
85647
85810
|
});
|
|
85648
85811
|
var MultiColumnFormField = (e) => {
|
|
85649
|
-
let r = (0, import_compiler_runtime$
|
|
85812
|
+
let r = (0, import_compiler_runtime$41.c)(11), { schema: c, form: d, path: f, itemLabel: _ } = e, v = import_react.use(ColumnInfoContext), y;
|
|
85650
85813
|
r[0] === c.description ? y = r[1] : (y = FieldOptions.parse(c.description), r[0] = c.description, r[1] = y);
|
|
85651
85814
|
let { description: S } = y, w = _ ? `Select ${_.toLowerCase()}` : void 0, E;
|
|
85652
85815
|
r[2] !== v || r[3] !== S || r[4] !== _ || r[5] !== w ? (E = (e2) => {
|
|
@@ -85811,7 +85974,7 @@ ${c}
|
|
|
85811
85974
|
}
|
|
85812
85975
|
});
|
|
85813
85976
|
var StyledFormMessage = (e) => {
|
|
85814
|
-
let r = (0, import_compiler_runtime$
|
|
85977
|
+
let r = (0, import_compiler_runtime$41.c)(4), { className: c } = e, d;
|
|
85815
85978
|
r[0] === c ? d = r[1] : (d = cn("text-destructive text-xs w-[16px]", c), r[0] = c, r[1] = d);
|
|
85816
85979
|
let f;
|
|
85817
85980
|
return r[2] === d ? f = r[3] : (f = (0, import_jsx_runtime.jsx)(FormMessageTooltip, {
|
|
@@ -85834,7 +85997,7 @@ ${c}
|
|
|
85834
85997
|
});
|
|
85835
85998
|
var ColumnFilterForm = (e) => {
|
|
85836
85999
|
var _a2;
|
|
85837
|
-
let r = (0, import_compiler_runtime$
|
|
86000
|
+
let r = (0, import_compiler_runtime$41.c)(25), { path: c, form: d, schema: f } = e, _;
|
|
85838
86001
|
r[0] === f.description ? _ = r[1] : (_ = FieldOptions.parse(f.description), r[0] = f.description, r[1] = _);
|
|
85839
86002
|
let { description: v } = _, y = import_react.use(ColumnInfoContext), S = (_a2 = Objects.entries(f.shape).find(_temp2$8)) == null ? void 0 : _a2[1], w;
|
|
85840
86003
|
r[2] === c ? w = r[3] : (w = {
|
|
@@ -85989,7 +86152,7 @@ ${c}
|
|
|
85989
86152
|
for (let [e2, [r2]] of d) f.set(e2, r2);
|
|
85990
86153
|
return f;
|
|
85991
86154
|
}
|
|
85992
|
-
var import_compiler_runtime$
|
|
86155
|
+
var import_compiler_runtime$40 = require_compiler_runtime();
|
|
85993
86156
|
const TransformPanel = ({ initialValue: e, columns: r, onChange: c, onInvalidChange: d, getColumnValues: f, columnTypesPerStep: _, lazy: v, ref: y }) => {
|
|
85994
86157
|
var _a2;
|
|
85995
86158
|
let S = useForm({
|
|
@@ -86152,7 +86315,7 @@ ${c}
|
|
|
86152
86315
|
})
|
|
86153
86316
|
});
|
|
86154
86317
|
}, Sidebar = (e) => {
|
|
86155
|
-
let r = (0, import_compiler_runtime$
|
|
86318
|
+
let r = (0, import_compiler_runtime$40.c)(17), { items: c, selected: d, onAdd: f, onSelect: _, onDelete: v } = e, y;
|
|
86156
86319
|
if (r[0] !== c || r[1] !== v || r[2] !== _ || r[3] !== d) {
|
|
86157
86320
|
let e2;
|
|
86158
86321
|
r[5] !== v || r[6] !== _ || r[7] !== d ? (e2 = (e3, r2) => (0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -86212,7 +86375,7 @@ ${c}
|
|
|
86212
86375
|
}), r[14] = S, r[15] = E, r[16] = O) : O = r[16], O;
|
|
86213
86376
|
};
|
|
86214
86377
|
var AddTransformDropdown = (e) => {
|
|
86215
|
-
let r = (0, import_compiler_runtime$
|
|
86378
|
+
let r = (0, import_compiler_runtime$40.c)(12), { onAdd: c, children: d } = e, f;
|
|
86216
86379
|
r[0] === d ? f = r[1] : (f = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
86217
86380
|
asChild: true,
|
|
86218
86381
|
children: d
|
|
@@ -86286,7 +86449,7 @@ ${c}
|
|
|
86286
86449
|
function _temp3$5(e) {
|
|
86287
86450
|
e.stopPropagation(), window.open("https://github.com/marimo-team/marimo/issues/new?title=New%20dataframe%20transform:&labels=enhancement&template=feature_request.yaml", "_blank");
|
|
86288
86451
|
}
|
|
86289
|
-
var import_compiler_runtime$
|
|
86452
|
+
var import_compiler_runtime$39 = require_compiler_runtime();
|
|
86290
86453
|
const DataFramePlugin = createPlugin("marimo-dataframe").withData(object$1({
|
|
86291
86454
|
label: string$2().nullish(),
|
|
86292
86455
|
pageSize: number$2().default(5),
|
|
@@ -86348,7 +86511,7 @@ ${c}
|
|
|
86348
86511
|
transforms: []
|
|
86349
86512
|
};
|
|
86350
86513
|
const DataFrameComponent = (0, import_react.memo)((e) => {
|
|
86351
|
-
let r = (0, import_compiler_runtime$
|
|
86514
|
+
let r = (0, import_compiler_runtime$39.c)(69), { columns: c, pageSize: d, showDownload: f, lazy: _, value: v, setValue: y, get_dataframe: S, get_column_values: w, search: E, download_as: O, host: M } = e, I;
|
|
86352
86515
|
r[0] === S ? I = r[1] : (I = () => S({}), r[0] = S, r[1] = I);
|
|
86353
86516
|
let z = v == null ? void 0 : v.transforms, G;
|
|
86354
86517
|
r[2] === z ? G = r[3] : (G = [
|
|
@@ -92625,7 +92788,7 @@ ${c}
|
|
|
92625
92788
|
}
|
|
92626
92789
|
function noop$1() {
|
|
92627
92790
|
}
|
|
92628
|
-
var import_compiler_runtime$
|
|
92791
|
+
var import_compiler_runtime$38 = require_compiler_runtime(), FileUploadPlugin = class {
|
|
92629
92792
|
constructor() {
|
|
92630
92793
|
__publicField(this, "tagName", "marimo-file");
|
|
92631
92794
|
__publicField(this, "validator", object$1({
|
|
@@ -92690,7 +92853,7 @@ ${c}
|
|
|
92690
92853
|
}), r;
|
|
92691
92854
|
}
|
|
92692
92855
|
const FileUpload = (e) => {
|
|
92693
|
-
let r = (0, import_compiler_runtime$
|
|
92856
|
+
let r = (0, import_compiler_runtime$38.c)(78), c;
|
|
92694
92857
|
r[0] === e.filetypes ? c = r[1] : (c = groupFileTypesByMIMEType(e.filetypes), r[0] = e.filetypes, r[1] = c);
|
|
92695
92858
|
let d = c, { setValue: f, kind: _, multiple: v, value: y, max_size: S } = e, w;
|
|
92696
92859
|
r[2] === f ? w = r[3] : (w = (e2) => {
|
|
@@ -92947,7 +93110,7 @@ ${c}
|
|
|
92947
93110
|
children: r
|
|
92948
93111
|
}, r);
|
|
92949
93112
|
}
|
|
92950
|
-
var import_compiler_runtime$
|
|
93113
|
+
var import_compiler_runtime$37 = require_compiler_runtime();
|
|
92951
93114
|
const FormPlugin = createPlugin("marimo-form").withData(object$1({
|
|
92952
93115
|
label: string$2().nullable(),
|
|
92953
93116
|
elementId: string$2().transform((e) => e),
|
|
@@ -92972,7 +93135,7 @@ ${c}
|
|
|
92972
93135
|
...r
|
|
92973
93136
|
})
|
|
92974
93137
|
})), FormWrapper = (e) => {
|
|
92975
|
-
let r = (0, import_compiler_runtime$
|
|
93138
|
+
let r = (0, import_compiler_runtime$37.c)(46), { children: c, currentValue: d, newValue: f, setValue: _, label: v, bordered: y, loading: S, submitButtonLabel: w, submitButtonTooltip: E, submitButtonDisabled: O, clearOnSubmit: M, showClearButton: I, clearButtonLabel: z, clearButtonTooltip: G, validate: q, shouldValidate: IY } = e, LY = (0, import_react.useRef)(null), RY = f === d, zY = RY ? "secondary" : "action", [BY, VY] = (0, import_react.useState)(null), HY;
|
|
92976
93139
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (HY = () => {
|
|
92977
93140
|
LY.current && clearInputs(LY.current);
|
|
92978
93141
|
}, r[0] = HY) : HY = r[0];
|
|
@@ -93071,7 +93234,7 @@ ${c}
|
|
|
93071
93234
|
}), r[43] = rX, r[44] = WY, r[45] = iX) : iX = r[45], iX;
|
|
93072
93235
|
};
|
|
93073
93236
|
var Form = (e) => {
|
|
93074
|
-
let r = (0, import_compiler_runtime$
|
|
93237
|
+
let r = (0, import_compiler_runtime$37.c)(24), c, d, f, _, v, y;
|
|
93075
93238
|
r[0] === e ? (c = r[1], d = r[2], f = r[3], _ = r[4], v = r[5], y = r[6]) : ({ elementId: f, value: y, setValue: _, children: c, validate: v, ...d } = e, r[0] = e, r[1] = c, r[2] = d, r[3] = f, r[4] = _, r[5] = v, r[6] = y);
|
|
93076
93239
|
let S;
|
|
93077
93240
|
r[7] === f ? S = r[8] : (S = UI_ELEMENT_REGISTRY.lookupValue(f), r[7] = f, r[8] = S);
|
|
@@ -93121,9 +93284,9 @@ ${c}
|
|
|
93121
93284
|
...e.children
|
|
93122
93285
|
].forEach(clearInputs), isUIElement(e) && e.reset());
|
|
93123
93286
|
}
|
|
93124
|
-
var import_compiler_runtime$
|
|
93287
|
+
var import_compiler_runtime$36 = require_compiler_runtime();
|
|
93125
93288
|
const AudioRecorder = (e) => {
|
|
93126
|
-
let r = (0, import_compiler_runtime$
|
|
93289
|
+
let r = (0, import_compiler_runtime$36.c)(12), { onStart: c, onStop: d, status: f, time: _ } = e, v;
|
|
93127
93290
|
r[0] !== c || r[1] !== f ? (v = f === "stopped" && (0, import_jsx_runtime.jsx)(Button, {
|
|
93128
93291
|
"data-testid": "audio-recorder-start",
|
|
93129
93292
|
variant: "secondary",
|
|
@@ -93175,9 +93338,9 @@ ${c}
|
|
|
93175
93338
|
]
|
|
93176
93339
|
}), r[8] = v, r[9] = y, r[10] = S, r[11] = w) : w = r[11], w;
|
|
93177
93340
|
};
|
|
93178
|
-
var import_compiler_runtime$
|
|
93341
|
+
var import_compiler_runtime$35 = require_compiler_runtime();
|
|
93179
93342
|
function useTimer() {
|
|
93180
|
-
let e = (0, import_compiler_runtime$
|
|
93343
|
+
let e = (0, import_compiler_runtime$35.c)(14), [r, c] = (0, import_react.useState)(0), d = (0, import_react.useRef)(void 0), f;
|
|
93181
93344
|
e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (f = {
|
|
93182
93345
|
minimumFractionDigits: 1,
|
|
93183
93346
|
maximumFractionDigits: 1
|
|
@@ -93213,9 +93376,9 @@ ${c}
|
|
|
93213
93376
|
function _temp$9(e) {
|
|
93214
93377
|
return e + 0.1;
|
|
93215
93378
|
}
|
|
93216
|
-
var import_compiler_runtime$
|
|
93379
|
+
var import_compiler_runtime$34 = require_compiler_runtime();
|
|
93217
93380
|
function useAudioRecorder(e) {
|
|
93218
|
-
let r = (0, import_compiler_runtime$
|
|
93381
|
+
let r = (0, import_compiler_runtime$34.c)(18), { onDone: c, options: d } = e, [f, _] = (0, import_react.useState)("stopped"), v = (0, import_react.useRef)(void 0), [y, S] = (0, import_react.useState)(true), [w, E] = (0, import_react.useState)(), O = useTimer(), M;
|
|
93219
93382
|
r[0] !== c || r[1] !== d || r[2] !== O ? (M = () => {
|
|
93220
93383
|
O.clear(), navigator.mediaDevices.getUserMedia({
|
|
93221
93384
|
audio: true
|
|
@@ -93263,7 +93426,7 @@ ${c}
|
|
|
93263
93426
|
function _temp$8(e) {
|
|
93264
93427
|
return e.stop();
|
|
93265
93428
|
}
|
|
93266
|
-
var import_compiler_runtime$
|
|
93429
|
+
var import_compiler_runtime$33 = require_compiler_runtime(), MicrophonePlugin = class {
|
|
93267
93430
|
constructor() {
|
|
93268
93431
|
__publicField(this, "tagName", "marimo-microphone");
|
|
93269
93432
|
__publicField(this, "validator", object$1({
|
|
@@ -93276,7 +93439,7 @@ ${c}
|
|
|
93276
93439
|
});
|
|
93277
93440
|
}
|
|
93278
93441
|
}, Microphone = (e) => {
|
|
93279
|
-
let r = (0, import_compiler_runtime$
|
|
93442
|
+
let r = (0, import_compiler_runtime$33.c)(14), { setValue: c, data: d } = e, f;
|
|
93280
93443
|
r[0] === c ? f = r[1] : (f = {
|
|
93281
93444
|
onDone: async (e2) => {
|
|
93282
93445
|
c(await blobToString(e2, "base64"));
|
|
@@ -93304,7 +93467,7 @@ ${c}
|
|
|
93304
93467
|
M
|
|
93305
93468
|
]
|
|
93306
93469
|
}), r[10] = d.label, r[11] = O, r[12] = M, r[13] = I) : I = r[13], I;
|
|
93307
|
-
}, import_compiler_runtime$
|
|
93470
|
+
}, import_compiler_runtime$32 = require_compiler_runtime(), NumberPlugin = class {
|
|
93308
93471
|
constructor() {
|
|
93309
93472
|
__publicField(this, "tagName", "marimo-number");
|
|
93310
93473
|
__publicField(this, "validator", object$1({
|
|
@@ -93326,7 +93489,7 @@ ${c}
|
|
|
93326
93489
|
});
|
|
93327
93490
|
}
|
|
93328
93491
|
}, NumberComponent = (e) => {
|
|
93329
|
-
let r = (0, import_compiler_runtime$
|
|
93492
|
+
let r = (0, import_compiler_runtime$32.c)(25), c = (0, import_react.useId)(), d;
|
|
93330
93493
|
r[0] === e.value ? d = r[1] : (d = withoutNaN(e.value), r[0] = e.value, r[1] = d);
|
|
93331
93494
|
let f = d, _ = !e.debounce, v;
|
|
93332
93495
|
r[2] !== f || r[3] !== e.setValue || r[4] !== _ ? (v = {
|
|
@@ -93589,7 +93752,7 @@ ${c}
|
|
|
93589
93752
|
}
|
|
93590
93753
|
};
|
|
93591
93754
|
}
|
|
93592
|
-
var import_compiler_runtime$
|
|
93755
|
+
var import_compiler_runtime$31 = require_compiler_runtime();
|
|
93593
93756
|
const PERSISTED_LAYOUT_KEYS = [
|
|
93594
93757
|
"dragmode",
|
|
93595
93758
|
"xaxis",
|
|
@@ -93627,7 +93790,7 @@ ${c}
|
|
|
93627
93790
|
};
|
|
93628
93791
|
}
|
|
93629
93792
|
function usePlotlyLayout(e) {
|
|
93630
|
-
let r = (0, import_compiler_runtime$
|
|
93793
|
+
let r = (0, import_compiler_runtime$31.c)(20), { originalFigure: c, initialValue: d, isScriptLoaded: f } = e, _ = f === void 0 ? true : f, v;
|
|
93631
93794
|
r[0] === c ? v = r[1] : (v = () => structuredClone(c), r[0] = c, r[1] = v);
|
|
93632
93795
|
let [y, S] = (0, import_react.useState)(v), w;
|
|
93633
93796
|
r[2] !== y || r[3] !== d ? (w = () => ({
|
|
@@ -93664,7 +93827,7 @@ ${c}
|
|
|
93664
93827
|
handleReset: LY
|
|
93665
93828
|
}, r[16] = y, r[17] = LY, r[18] = E, r[19] = RY) : RY = r[19], RY;
|
|
93666
93829
|
}
|
|
93667
|
-
var import_compiler_runtime$
|
|
93830
|
+
var import_compiler_runtime$30 = require_compiler_runtime(), PlotlyPlugin = class {
|
|
93668
93831
|
constructor() {
|
|
93669
93832
|
__publicField(this, "tagName", "marimo-plotly");
|
|
93670
93833
|
__publicField(this, "validator", object$1({
|
|
@@ -93698,7 +93861,7 @@ ${c}
|
|
|
93698
93861
|
"value"
|
|
93699
93862
|
], TREE_MAP_DATA_KEYS = SUNBURST_DATA_KEYS;
|
|
93700
93863
|
const PlotlyComponent = (0, import_react.memo)((e) => {
|
|
93701
|
-
let r = (0, import_compiler_runtime$
|
|
93864
|
+
let r = (0, import_compiler_runtime$30.c)(34), { figure: c, value: d, setValue: f, config: _ } = e, v = useScript("https://cdn.jsdelivr.net/npm/mathjax-full@3.2.2/es5/tex-mml-svg.min.js") === "ready", y;
|
|
93702
93865
|
r[0] !== v || r[1] !== c || r[2] !== d ? (y = {
|
|
93703
93866
|
originalFigure: c,
|
|
93704
93867
|
initialValue: d,
|
|
@@ -93820,7 +93983,7 @@ ${c}
|
|
|
93820
93983
|
function _temp6(e) {
|
|
93821
93984
|
Logger.error("PlotlyPlugin: ", e);
|
|
93822
93985
|
}
|
|
93823
|
-
var import_compiler_runtime$
|
|
93986
|
+
var import_compiler_runtime$29 = require_compiler_runtime(), RadioPlugin = class {
|
|
93824
93987
|
constructor() {
|
|
93825
93988
|
__publicField(this, "tagName", "marimo-radio");
|
|
93826
93989
|
__publicField(this, "validator", object$1({
|
|
@@ -93840,7 +94003,7 @@ ${c}
|
|
|
93840
94003
|
}
|
|
93841
94004
|
};
|
|
93842
94005
|
const Radio = (e) => {
|
|
93843
|
-
let r = (0, import_compiler_runtime$
|
|
94006
|
+
let r = (0, import_compiler_runtime$29.c)(18), c = (0, import_react.useId)(), d = e.label, f = e.inline ? "left" : "top", _ = e.value ?? "", v = e.setValue, y = e.inline && "grid-flow-col gap-4", S;
|
|
93844
94007
|
r[0] === y ? S = r[1] : (S = cn(y), r[0] = y, r[1] = S);
|
|
93845
94008
|
let w = e.disabled, E;
|
|
93846
94009
|
if (r[2] !== c || r[3] !== e.options) {
|
|
@@ -93878,8 +94041,8 @@ ${c}
|
|
|
93878
94041
|
children: O
|
|
93879
94042
|
}), r[13] = c, r[14] = e.label, r[15] = f, r[16] = O, r[17] = M) : M = r[17], M;
|
|
93880
94043
|
};
|
|
93881
|
-
var import_compiler_runtime$
|
|
93882
|
-
let c = (0, import_compiler_runtime$
|
|
94044
|
+
var import_compiler_runtime$28 = require_compiler_runtime(), RangeSlider = import_react.forwardRef((e, r) => {
|
|
94045
|
+
let c = (0, import_compiler_runtime$28.c)(35), { className: d, valueMap: f, ..._ } = e, [v, y] = useBoolean(false), { locale: S } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), w = dist_exports, E;
|
|
93883
94046
|
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);
|
|
93884
94047
|
let O;
|
|
93885
94048
|
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];
|
|
@@ -93968,8 +94131,8 @@ ${c}
|
|
|
93968
94131
|
]
|
|
93969
94132
|
}), c[27] = _, c[28] = r, c[29] = w.Root, c[30] = UY, c[31] = E, c[32] = M, c[33] = q, c[34] = WY) : WY = c[34], WY;
|
|
93970
94133
|
});
|
|
93971
|
-
RangeSlider.displayName = Root$
|
|
93972
|
-
var import_compiler_runtime$
|
|
94134
|
+
RangeSlider.displayName = Root$1.displayName;
|
|
94135
|
+
var import_compiler_runtime$27 = require_compiler_runtime(), RangeSliderPlugin = class {
|
|
93973
94136
|
constructor() {
|
|
93974
94137
|
__publicField(this, "tagName", "marimo-range-slider");
|
|
93975
94138
|
__publicField(this, "validator", object$1({
|
|
@@ -93999,7 +94162,7 @@ ${c}
|
|
|
93999
94162
|
});
|
|
94000
94163
|
}
|
|
94001
94164
|
}, RangeSliderComponent = (e) => {
|
|
94002
|
-
let r = (0, import_compiler_runtime$
|
|
94165
|
+
let r = (0, import_compiler_runtime$27.c)(50), { label: c, setValue: d, value: f, start: _, stop: v, step: y, debounce: S, orientation: w, showValue: E, fullWidth: O, disabled: M, valueMap: I } = e, z = (0, import_react.useId)(), { locale: G } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [q, IY] = (0, import_react.useState)(f), LY, RY;
|
|
94003
94166
|
r[0] === f ? (LY = r[1], RY = r[2]) : (LY = () => {
|
|
94004
94167
|
IY(f);
|
|
94005
94168
|
}, RY = [
|
|
@@ -94245,7 +94408,7 @@ ${c}
|
|
|
94245
94408
|
]
|
|
94246
94409
|
})
|
|
94247
94410
|
});
|
|
94248
|
-
}, import_compiler_runtime$
|
|
94411
|
+
}, import_compiler_runtime$26 = require_compiler_runtime(), SliderPlugin = class {
|
|
94249
94412
|
constructor() {
|
|
94250
94413
|
__publicField(this, "tagName", "marimo-slider");
|
|
94251
94414
|
__publicField(this, "validator", object$1({
|
|
@@ -94276,7 +94439,7 @@ ${c}
|
|
|
94276
94439
|
});
|
|
94277
94440
|
}
|
|
94278
94441
|
}, SliderComponent = (e) => {
|
|
94279
|
-
let r = (0, import_compiler_runtime$
|
|
94442
|
+
let r = (0, import_compiler_runtime$26.c)(55), { label: c, setValue: d, value: f, start: _, stop: v, step: y, debounce: S, orientation: w, showValue: E, fullWidth: O, valueMap: M, includeInput: I, disabled: z } = e, G = (0, import_react.useId)(), { locale: q } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [IY, LY] = (0, import_react.useState)(f), RY, zY;
|
|
94280
94443
|
r[0] === f ? (RY = r[1], zY = r[2]) : (RY = () => {
|
|
94281
94444
|
LY(f);
|
|
94282
94445
|
}, zY = [
|
|
@@ -94352,7 +94515,7 @@ ${c}
|
|
|
94352
94515
|
className: HY,
|
|
94353
94516
|
children: $Y
|
|
94354
94517
|
}), r[48] = O, r[49] = G, r[50] = c, r[51] = $Y, r[52] = BY, r[53] = HY, r[54] = eX) : eX = r[54], eX;
|
|
94355
|
-
}, import_compiler_runtime$
|
|
94518
|
+
}, import_compiler_runtime$25 = require_compiler_runtime(), SwitchPlugin = class {
|
|
94356
94519
|
constructor() {
|
|
94357
94520
|
__publicField(this, "tagName", "marimo-switch");
|
|
94358
94521
|
__publicField(this, "validator", object$1({
|
|
@@ -94367,7 +94530,7 @@ ${c}
|
|
|
94367
94530
|
});
|
|
94368
94531
|
}
|
|
94369
94532
|
}, SwitchComponent = (e) => {
|
|
94370
|
-
let r = (0, import_compiler_runtime$
|
|
94533
|
+
let r = (0, import_compiler_runtime$25.c)(9), { value: c, setValue: d, data: f } = e, _ = (0, import_react.useId)(), v;
|
|
94371
94534
|
r[0] !== f.disabled || r[1] !== _ || r[2] !== d || r[3] !== c ? (v = (0, import_jsx_runtime.jsx)(Switch, {
|
|
94372
94535
|
"data-testid": "marimo-plugin-switch",
|
|
94373
94536
|
checked: c,
|
|
@@ -94384,7 +94547,7 @@ ${c}
|
|
|
94384
94547
|
labelClassName: "ml-1",
|
|
94385
94548
|
children: v
|
|
94386
94549
|
}), r[5] = f.label, r[6] = _, r[7] = v, r[8] = y) : y = r[8], y;
|
|
94387
|
-
}, import_compiler_runtime$
|
|
94550
|
+
}, import_compiler_runtime$24 = require_compiler_runtime(), TabsPlugin = class {
|
|
94388
94551
|
constructor() {
|
|
94389
94552
|
__publicField(this, "tagName", "marimo-tabs");
|
|
94390
94553
|
__publicField(this, "validator", object$1({
|
|
@@ -94400,7 +94563,7 @@ ${c}
|
|
|
94400
94563
|
});
|
|
94401
94564
|
}
|
|
94402
94565
|
}, TabComponent = (e) => {
|
|
94403
|
-
let r = (0, import_compiler_runtime$
|
|
94566
|
+
let r = (0, import_compiler_runtime$24.c)(13), { tabs: c, value: d, setValue: f, children: _ } = e, [v, y] = import_react.useState(d || "0"), S;
|
|
94404
94567
|
r[0] === f ? S = r[1] : (S = (e2) => {
|
|
94405
94568
|
y(e2), f(e2);
|
|
94406
94569
|
}, r[0] = f, r[1] = S);
|
|
@@ -94438,7 +94601,7 @@ ${c}
|
|
|
94438
94601
|
children: e
|
|
94439
94602
|
});
|
|
94440
94603
|
}
|
|
94441
|
-
var import_compiler_runtime$
|
|
94604
|
+
var import_compiler_runtime$23 = require_compiler_runtime(), TextAreaPlugin = class {
|
|
94442
94605
|
constructor() {
|
|
94443
94606
|
__publicField(this, "tagName", "marimo-text-area");
|
|
94444
94607
|
__publicField(this, "validator", object$1({
|
|
@@ -94464,7 +94627,7 @@ ${c}
|
|
|
94464
94627
|
});
|
|
94465
94628
|
}
|
|
94466
94629
|
}, TextAreaComponent = (e) => {
|
|
94467
|
-
let r = (0, import_compiler_runtime$
|
|
94630
|
+
let r = (0, import_compiler_runtime$23.c)(57), c;
|
|
94468
94631
|
r[0] !== e.maxLength || r[1] !== e.value ? (c = e.maxLength ? (0, import_jsx_runtime.jsxs)("span", {
|
|
94469
94632
|
className: "text-muted-foreground text-xs font-medium",
|
|
94470
94633
|
children: [
|
|
@@ -94556,7 +94719,7 @@ ${c}
|
|
|
94556
94719
|
fullWidth: _,
|
|
94557
94720
|
children: w
|
|
94558
94721
|
}), r[53] = e.fullWidth, r[54] = e.label, r[55] = w, r[56] = E) : E = r[56], E;
|
|
94559
|
-
}, import_compiler_runtime$
|
|
94722
|
+
}, import_compiler_runtime$22 = require_compiler_runtime(), TextInputPlugin = class {
|
|
94560
94723
|
constructor() {
|
|
94561
94724
|
__publicField(this, "tagName", "marimo-text");
|
|
94562
94725
|
__publicField(this, "validator", object$1({
|
|
@@ -94587,7 +94750,7 @@ ${c}
|
|
|
94587
94750
|
});
|
|
94588
94751
|
}
|
|
94589
94752
|
}, TextComponent = (e) => {
|
|
94590
|
-
let r = (0, import_compiler_runtime$
|
|
94753
|
+
let r = (0, import_compiler_runtime$22.c)(66), [c, d] = (0, import_react.useState)(e.value), f = c ?? e.value, _ = validate(e.kind, f), v;
|
|
94591
94754
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
94592
94755
|
text: null,
|
|
94593
94756
|
password: (0, import_jsx_runtime.jsx)(Lock, {
|
|
@@ -94713,7 +94876,7 @@ ${c}
|
|
|
94713
94876
|
return true;
|
|
94714
94877
|
}
|
|
94715
94878
|
}
|
|
94716
|
-
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-
|
|
94879
|
+
var LazyVegaComponent = import_react.lazy(() => import("./vega-component-rDX7xwxH.js")), VegaPlugin = class {
|
|
94717
94880
|
constructor() {
|
|
94718
94881
|
__publicField(this, "tagName", "marimo-vega");
|
|
94719
94882
|
__publicField(this, "validator", object$1({
|
|
@@ -94739,7 +94902,7 @@ ${c}
|
|
|
94739
94902
|
})
|
|
94740
94903
|
});
|
|
94741
94904
|
}
|
|
94742
|
-
}, import_compiler_runtime$
|
|
94905
|
+
}, import_compiler_runtime$21 = require_compiler_runtime(), AccordionPlugin = class {
|
|
94743
94906
|
constructor() {
|
|
94744
94907
|
__publicField(this, "tagName", "marimo-accordion");
|
|
94745
94908
|
__publicField(this, "validator", object$1({
|
|
@@ -94754,7 +94917,7 @@ ${c}
|
|
|
94754
94917
|
});
|
|
94755
94918
|
}
|
|
94756
94919
|
}, AccordionComponent = (e) => {
|
|
94757
|
-
let r = (0, import_compiler_runtime$
|
|
94920
|
+
let r = (0, import_compiler_runtime$21.c)(8), { labels: c, multiple: d, children: f } = e, _ = d ? "multiple" : "single", v;
|
|
94758
94921
|
if (r[0] !== f || r[1] !== c) {
|
|
94759
94922
|
let e2;
|
|
94760
94923
|
r[3] === c ? e2 = r[4] : (e2 = (e3, r2) => (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
@@ -94796,9 +94959,9 @@ ${c}
|
|
|
94796
94959
|
kind: "neutral"
|
|
94797
94960
|
}
|
|
94798
94961
|
});
|
|
94799
|
-
var import_compiler_runtime$
|
|
94962
|
+
var import_compiler_runtime$20 = require_compiler_runtime();
|
|
94800
94963
|
const CalloutOutput = (0, import_react.memo)((e) => {
|
|
94801
|
-
let r = (0, import_compiler_runtime$
|
|
94964
|
+
let r = (0, import_compiler_runtime$20.c)(7), { html: c, kind: d } = e, f;
|
|
94802
94965
|
r[0] === d ? f = r[1] : (f = calloutStyles({
|
|
94803
94966
|
kind: d
|
|
94804
94967
|
}), r[0] = d, r[1] = f);
|
|
@@ -94853,7 +95016,7 @@ ${c}
|
|
|
94853
95016
|
children: e.children
|
|
94854
95017
|
});
|
|
94855
95018
|
}
|
|
94856
|
-
}, LazySlidesComponent$1 = import_react.lazy(() => import("./slides-component-
|
|
95019
|
+
}, LazySlidesComponent$1 = import_react.lazy(() => import("./slides-component-BVjvNo92.js"));
|
|
94857
95020
|
const DownloadPlugin = createPlugin("marimo-download").withData(object$1({
|
|
94858
95021
|
data: string$2(),
|
|
94859
95022
|
disabled: boolean$2().default(false),
|
|
@@ -94954,7 +95117,7 @@ ${c}
|
|
|
94954
95117
|
})
|
|
94955
95118
|
});
|
|
94956
95119
|
}
|
|
94957
|
-
}, import_compiler_runtime$
|
|
95120
|
+
}, import_compiler_runtime$19 = require_compiler_runtime();
|
|
94958
95121
|
const LazyPlugin = createPlugin("marimo-lazy").withData(object$1({
|
|
94959
95122
|
showLoadingIndicator: boolean$2().default(false)
|
|
94960
95123
|
})).withFunctions({
|
|
@@ -94968,7 +95131,7 @@ ${c}
|
|
|
94968
95131
|
...e.functions
|
|
94969
95132
|
}));
|
|
94970
95133
|
var LazyComponent = (e) => {
|
|
94971
|
-
let r = (0, import_compiler_runtime$
|
|
95134
|
+
let r = (0, import_compiler_runtime$19.c)(15), { load: c, showLoadingIndicator: d, value: f, setValue: _ } = e, v;
|
|
94972
95135
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = {
|
|
94973
95136
|
threshold: 0,
|
|
94974
95137
|
root: null,
|
|
@@ -95035,15 +95198,15 @@ ${c}
|
|
|
95035
95198
|
diagram: e.data.diagram
|
|
95036
95199
|
});
|
|
95037
95200
|
}
|
|
95038
|
-
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-
|
|
95201
|
+
}, LazyMermaid = (0, import_react.lazy)(() => import("./mermaid-Bqp2Xw99.js").then(async (m2) => {
|
|
95039
95202
|
await m2.__tla;
|
|
95040
95203
|
return m2;
|
|
95041
|
-
})), import_compiler_runtime$
|
|
95204
|
+
})), import_compiler_runtime$18 = require_compiler_runtime();
|
|
95042
95205
|
function getRootScrollableElement() {
|
|
95043
95206
|
return getInitialAppMode() === "edit" ? document.getElementById("App") : void 0;
|
|
95044
95207
|
}
|
|
95045
95208
|
function useActiveOutline(e) {
|
|
95046
|
-
let r = (0, import_compiler_runtime$
|
|
95209
|
+
let r = (0, import_compiler_runtime$18.c)(7), [c, d] = (0, import_react.useState)(void 0), [f, _] = (0, import_react.useState)(void 0), v = (0, import_react.useRef)(null), y = (0, import_react.useRef)(null), S;
|
|
95047
95210
|
r[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = /* @__PURE__ */ new Map(), r[0] = S) : S = r[0];
|
|
95048
95211
|
let w = (0, import_react.useRef)(S), E, O;
|
|
95049
95212
|
r[1] === e ? (E = r[2], O = r[3]) : (E = () => e.length === 0 ? void 0 : (v.current = new IntersectionObserver((e2) => {
|
|
@@ -95109,9 +95272,9 @@ ${c}
|
|
|
95109
95272
|
function findOutlineItem(e, r) {
|
|
95110
95273
|
return "id" in e.by ? document.querySelectorAll(`[id="${CSS.escape(e.by.id)}"]`)[r] : document.evaluate(e.by.path, document, null, XPathResult.FIRST_ORDERED_NODE_TYPE, null).singleNodeValue;
|
|
95111
95274
|
}
|
|
95112
|
-
var import_compiler_runtime$
|
|
95275
|
+
var import_compiler_runtime$17 = require_compiler_runtime();
|
|
95113
95276
|
const FloatingOutline = () => {
|
|
95114
|
-
let e = (0, import_compiler_runtime$
|
|
95277
|
+
let e = (0, import_compiler_runtime$17.c)(19), { items: r } = useAtomValue(notebookOutline), c;
|
|
95115
95278
|
e[0] === r ? c = e[1] : (c = findOutlineElements(r), e[0] = r, e[1] = c);
|
|
95116
95279
|
let { activeHeaderId: d, activeOccurrences: f } = useActiveOutline(c), [_, v] = import_react.useState(false);
|
|
95117
95280
|
if (r.length < 2) return null;
|
|
@@ -95143,7 +95306,7 @@ ${c}
|
|
|
95143
95306
|
]
|
|
95144
95307
|
}), e[16] = M, e[17] = I, e[18] = z) : z = e[18], z;
|
|
95145
95308
|
}, MiniMap = (e) => {
|
|
95146
|
-
let r = (0, import_compiler_runtime$
|
|
95309
|
+
let r = (0, import_compiler_runtime$17.c)(8), { items: c, activeHeaderId: d, activeOccurrences: f } = e, _, v;
|
|
95147
95310
|
if (r[0] !== d || r[1] !== f || r[2] !== c) {
|
|
95148
95311
|
let e2 = /* @__PURE__ */ new Map();
|
|
95149
95312
|
_ = "flex flex-col gap-4 items-end max-h-[70vh] overflow-hidden", v = c.map((r2, c2) => {
|
|
@@ -95160,7 +95323,7 @@ ${c}
|
|
|
95160
95323
|
children: v
|
|
95161
95324
|
}), r[5] = _, r[6] = v, r[7] = y) : y = r[7], y;
|
|
95162
95325
|
}, OutlineList = (e) => {
|
|
95163
|
-
let r = (0, import_compiler_runtime$
|
|
95326
|
+
let r = (0, import_compiler_runtime$17.c)(11), { items: c, activeHeaderId: d, activeOccurrences: f, className: _ } = e, v, y;
|
|
95164
95327
|
if (r[0] !== d || r[1] !== f || r[2] !== _ || r[3] !== c) {
|
|
95165
95328
|
let e2 = /* @__PURE__ */ new Map();
|
|
95166
95329
|
r[6] === _ ? v = r[7] : (v = cn("flex flex-col overflow-auto py-4 pl-2", _), r[6] = _, r[7] = v), y = c.map((r2, c2) => {
|
|
@@ -95178,8 +95341,8 @@ ${c}
|
|
|
95178
95341
|
children: y
|
|
95179
95342
|
}), r[8] = v, r[9] = y, r[10] = S) : S = r[10], S;
|
|
95180
95343
|
};
|
|
95181
|
-
var import_compiler_runtime$
|
|
95182
|
-
let r = (0, import_compiler_runtime$
|
|
95344
|
+
var import_compiler_runtime$16 = require_compiler_runtime(), OutlineContent = (e) => {
|
|
95345
|
+
let r = (0, import_compiler_runtime$16.c)(12), { label: c } = e, { items: d } = useAtomValue(notebookOutline), f;
|
|
95183
95346
|
r[0] === d ? f = r[1] : (f = findOutlineElements(d), r[0] = d, r[1] = f);
|
|
95184
95347
|
let { activeHeaderId: _, activeOccurrences: v } = useActiveOutline(f);
|
|
95185
95348
|
if (d.length === 0) {
|
|
@@ -95225,7 +95388,7 @@ ${c}
|
|
|
95225
95388
|
})
|
|
95226
95389
|
});
|
|
95227
95390
|
}
|
|
95228
|
-
},
|
|
95391
|
+
}, require_humanize_duration = __commonJSMin(((e, r) => {
|
|
95229
95392
|
(function() {
|
|
95230
95393
|
var e2 = Object.assign || function(e3) {
|
|
95231
95394
|
for (var r2, c2 = 1; c2 < arguments.length; c2++) for (var d2 in r2 = arguments[c2], r2) q(r2, d2) && (e3[d2] = r2[d2]);
|
|
@@ -96566,167 +96729,7 @@ ${c}
|
|
|
96566
96729
|
return VY;
|
|
96567
96730
|
}) : r !== void 0 && r.exports ? r.exports = VY : this.humanizeDuration = VY;
|
|
96568
96731
|
})();
|
|
96569
|
-
}))(), 1)
|
|
96570
|
-
function createContextScope(e, r = []) {
|
|
96571
|
-
let c = [];
|
|
96572
|
-
function d(r2, d2) {
|
|
96573
|
-
let f2 = import_react.createContext(d2);
|
|
96574
|
-
f2.displayName = r2 + "Context";
|
|
96575
|
-
let _ = c.length;
|
|
96576
|
-
c = [
|
|
96577
|
-
...c,
|
|
96578
|
-
d2
|
|
96579
|
-
];
|
|
96580
|
-
let v = (r3) => {
|
|
96581
|
-
var _a2;
|
|
96582
|
-
let { scope: c2, children: d3, ...v2 } = r3, y2 = ((_a2 = c2 == null ? void 0 : c2[e]) == null ? void 0 : _a2[_]) || f2, S = import_react.useMemo(() => v2, Object.values(v2));
|
|
96583
|
-
return (0, import_jsx_runtime.jsx)(y2.Provider, {
|
|
96584
|
-
value: S,
|
|
96585
|
-
children: d3
|
|
96586
|
-
});
|
|
96587
|
-
};
|
|
96588
|
-
v.displayName = r2 + "Provider";
|
|
96589
|
-
function y(c2, v2) {
|
|
96590
|
-
var _a2;
|
|
96591
|
-
let y2 = ((_a2 = v2 == null ? void 0 : v2[e]) == null ? void 0 : _a2[_]) || f2, S = import_react.useContext(y2);
|
|
96592
|
-
if (S) return S;
|
|
96593
|
-
if (d2 !== void 0) return d2;
|
|
96594
|
-
throw Error(`\`${c2}\` must be used within \`${r2}\``);
|
|
96595
|
-
}
|
|
96596
|
-
return [
|
|
96597
|
-
v,
|
|
96598
|
-
y
|
|
96599
|
-
];
|
|
96600
|
-
}
|
|
96601
|
-
let f = () => {
|
|
96602
|
-
let r2 = c.map((e2) => import_react.createContext(e2));
|
|
96603
|
-
return function(c2) {
|
|
96604
|
-
let d2 = (c2 == null ? void 0 : c2[e]) || r2;
|
|
96605
|
-
return import_react.useMemo(() => ({
|
|
96606
|
-
[`__scope${e}`]: {
|
|
96607
|
-
...c2,
|
|
96608
|
-
[e]: d2
|
|
96609
|
-
}
|
|
96610
|
-
}), [
|
|
96611
|
-
c2,
|
|
96612
|
-
d2
|
|
96613
|
-
]);
|
|
96614
|
-
};
|
|
96615
|
-
};
|
|
96616
|
-
return f.scopeName = e, [
|
|
96617
|
-
d,
|
|
96618
|
-
composeContextScopes(f, ...r)
|
|
96619
|
-
];
|
|
96620
|
-
}
|
|
96621
|
-
function composeContextScopes(...e) {
|
|
96622
|
-
let r = e[0];
|
|
96623
|
-
if (e.length === 1) return r;
|
|
96624
|
-
let c = () => {
|
|
96625
|
-
let c2 = e.map((e2) => ({
|
|
96626
|
-
useScope: e2(),
|
|
96627
|
-
scopeName: e2.scopeName
|
|
96628
|
-
}));
|
|
96629
|
-
return function(e2) {
|
|
96630
|
-
let d = c2.reduce((r2, { useScope: c3, scopeName: d2 }) => {
|
|
96631
|
-
let f = c3(e2)[`__scope${d2}`];
|
|
96632
|
-
return {
|
|
96633
|
-
...r2,
|
|
96634
|
-
...f
|
|
96635
|
-
};
|
|
96636
|
-
}, {});
|
|
96637
|
-
return import_react.useMemo(() => ({
|
|
96638
|
-
[`__scope${r.scopeName}`]: d
|
|
96639
|
-
}), [
|
|
96640
|
-
d
|
|
96641
|
-
]);
|
|
96642
|
-
};
|
|
96643
|
-
};
|
|
96644
|
-
return c.scopeName = r.scopeName, c;
|
|
96645
|
-
}
|
|
96646
|
-
var PROGRESS_NAME = "Progress", DEFAULT_MAX = 100, [createProgressContext, createProgressScope] = createContextScope(PROGRESS_NAME), [ProgressProvider, useProgressContext] = createProgressContext(PROGRESS_NAME), Progress$1 = import_react.forwardRef((e, r) => {
|
|
96647
|
-
let { __scopeProgress: c, value: d = null, max: f, getValueLabel: _ = defaultGetValueLabel, ...v } = e;
|
|
96648
|
-
(f || f === 0) && !isValidMaxNumber(f) && console.error(getInvalidMaxError(`${f}`, "Progress"));
|
|
96649
|
-
let y = isValidMaxNumber(f) ? f : DEFAULT_MAX;
|
|
96650
|
-
d !== null && !isValidValueNumber(d, y) && console.error(getInvalidValueError(`${d}`, "Progress"));
|
|
96651
|
-
let S = isValidValueNumber(d, y) ? d : null, w = isNumber(S) ? _(S, y) : void 0;
|
|
96652
|
-
return (0, import_jsx_runtime.jsx)(ProgressProvider, {
|
|
96653
|
-
scope: c,
|
|
96654
|
-
value: S,
|
|
96655
|
-
max: y,
|
|
96656
|
-
children: (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
96657
|
-
"aria-valuemax": y,
|
|
96658
|
-
"aria-valuemin": 0,
|
|
96659
|
-
"aria-valuenow": isNumber(S) ? S : void 0,
|
|
96660
|
-
"aria-valuetext": w,
|
|
96661
|
-
role: "progressbar",
|
|
96662
|
-
"data-state": getProgressState(S, y),
|
|
96663
|
-
"data-value": S ?? void 0,
|
|
96664
|
-
"data-max": y,
|
|
96665
|
-
...v,
|
|
96666
|
-
ref: r
|
|
96667
|
-
})
|
|
96668
|
-
});
|
|
96669
|
-
});
|
|
96670
|
-
Progress$1.displayName = PROGRESS_NAME;
|
|
96671
|
-
var INDICATOR_NAME = "ProgressIndicator", ProgressIndicator = import_react.forwardRef((e, r) => {
|
|
96672
|
-
let { __scopeProgress: c, ...d } = e, f = useProgressContext(INDICATOR_NAME, c);
|
|
96673
|
-
return (0, import_jsx_runtime.jsx)(Primitive.div, {
|
|
96674
|
-
"data-state": getProgressState(f.value, f.max),
|
|
96675
|
-
"data-value": f.value ?? void 0,
|
|
96676
|
-
"data-max": f.max,
|
|
96677
|
-
...d,
|
|
96678
|
-
ref: r
|
|
96679
|
-
});
|
|
96680
|
-
});
|
|
96681
|
-
ProgressIndicator.displayName = INDICATOR_NAME;
|
|
96682
|
-
function defaultGetValueLabel(e, r) {
|
|
96683
|
-
return `${Math.round(e / r * 100)}%`;
|
|
96684
|
-
}
|
|
96685
|
-
function getProgressState(e, r) {
|
|
96686
|
-
return e == null ? "indeterminate" : e === r ? "complete" : "loading";
|
|
96687
|
-
}
|
|
96688
|
-
function isNumber(e) {
|
|
96689
|
-
return typeof e == "number";
|
|
96690
|
-
}
|
|
96691
|
-
function isValidMaxNumber(e) {
|
|
96692
|
-
return isNumber(e) && !isNaN(e) && e > 0;
|
|
96693
|
-
}
|
|
96694
|
-
function isValidValueNumber(e, r) {
|
|
96695
|
-
return isNumber(e) && !isNaN(e) && e <= r && e >= 0;
|
|
96696
|
-
}
|
|
96697
|
-
function getInvalidMaxError(e, r) {
|
|
96698
|
-
return `Invalid prop \`max\` of value \`${e}\` supplied to \`${r}\`. Only numbers greater than 0 are valid max values. Defaulting to \`${DEFAULT_MAX}\`.`;
|
|
96699
|
-
}
|
|
96700
|
-
function getInvalidValueError(e, r) {
|
|
96701
|
-
return `Invalid prop \`value\` of value \`${e}\` supplied to \`${r}\`. The \`value\` prop must be:
|
|
96702
|
-
- a positive number
|
|
96703
|
-
- less than the value passed to \`max\` (or ${DEFAULT_MAX} if no \`max\` prop is set)
|
|
96704
|
-
- \`null\` or \`undefined\` if the progress is indeterminate.
|
|
96705
|
-
|
|
96706
|
-
Defaulting to \`null\`.`;
|
|
96707
|
-
}
|
|
96708
|
-
var Root = Progress$1, Indicator$1 = ProgressIndicator, import_compiler_runtime$16 = require_compiler_runtime(), Progress = import_react.forwardRef((e, r) => {
|
|
96709
|
-
let c = (0, import_compiler_runtime$16.c)(13), d, f, _;
|
|
96710
|
-
c[0] === e ? (d = c[1], f = c[2], _ = c[3]) : ({ className: d, value: _, ...f } = e, c[0] = e, c[1] = d, c[2] = f, c[3] = _);
|
|
96711
|
-
let v;
|
|
96712
|
-
c[4] === d ? v = c[5] : (v = cn("relative h-2 w-full overflow-hidden rounded-full bg-primary/20", d), c[4] = d, c[5] = v);
|
|
96713
|
-
let y = `translateX(-${100 - (_ || 0)}%)`, S;
|
|
96714
|
-
c[6] === y ? S = c[7] : (S = (0, import_jsx_runtime.jsx)(Indicator$1, {
|
|
96715
|
-
className: "h-full w-full flex-1 bg-primary transition-all pulse",
|
|
96716
|
-
style: {
|
|
96717
|
-
transform: y
|
|
96718
|
-
}
|
|
96719
|
-
}), c[6] = y, c[7] = S);
|
|
96720
|
-
let w;
|
|
96721
|
-
return c[8] !== f || c[9] !== r || c[10] !== v || c[11] !== S ? (w = (0, import_jsx_runtime.jsx)(Root, {
|
|
96722
|
-
ref: r,
|
|
96723
|
-
className: v,
|
|
96724
|
-
...f,
|
|
96725
|
-
children: S
|
|
96726
|
-
}), c[8] = f, c[9] = r, c[10] = v, c[11] = S, c[12] = w) : w = c[12], w;
|
|
96727
|
-
});
|
|
96728
|
-
Progress.displayName = Root.displayName;
|
|
96729
|
-
var import_compiler_runtime$15 = require_compiler_runtime(), ProgressPlugin = class {
|
|
96732
|
+
})), import_compiler_runtime$15 = require_compiler_runtime(), import_humanize_duration = __toESM(require_humanize_duration(), 1), ProgressPlugin = class {
|
|
96730
96733
|
constructor() {
|
|
96731
96734
|
__publicField(this, "tagName", "marimo-progress");
|
|
96732
96735
|
__publicField(this, "validator", object$1({
|
|
@@ -101299,7 +101302,7 @@ Defaulting to \`null\`.`;
|
|
|
101299
101302
|
cells: []
|
|
101300
101303
|
})
|
|
101301
101304
|
};
|
|
101302
|
-
var import_compiler_runtime$8 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./slides-component-
|
|
101305
|
+
var import_compiler_runtime$8 = require_compiler_runtime(), LazySlidesComponent = import_react.lazy(() => import("./slides-component-BVjvNo92.js"));
|
|
101303
101306
|
const SlidesLayoutRenderer = (e) => {
|
|
101304
101307
|
let r = (0, import_compiler_runtime$8.c)(11), { cells: c, mode: d } = e, f = d === "read", _;
|
|
101305
101308
|
if (r[0] !== c || r[1] !== d) {
|