@marimo-team/islands 0.23.9-dev10 → 0.23.9-dev12
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/{ConnectedDataExplorerComponent-OzrfMM5L.js → ConnectedDataExplorerComponent-DFQ1yVhp.js} +4 -4
- package/dist/{chat-ui-BDI3FMI8.js → chat-ui-xfKWgbtB.js} +6 -6
- package/dist/{code-visibility-7NV5S02K.js → code-visibility-BtojRYax.js} +948 -918
- package/dist/{formats-DQ5qjo_Q.js → formats-BHOojBDG.js} +1 -1
- package/dist/{glide-data-editor-DqRY9naW.js → glide-data-editor-CpzEdx8N.js} +2 -2
- package/dist/{html-to-image-CiSinpSR.js → html-to-image-DjEqYaQd.js} +5 -5
- package/dist/{input-CZD2z6X2.js → input-DBDlwwuD.js} +1 -1
- package/dist/main.js +17 -17
- package/dist/{mermaid-IU93XzmY.js → mermaid-D00onudG.js} +2 -2
- package/dist/{process-output-5qJjMRKh.js → process-output-Cz6wQSkL.js} +1 -1
- package/dist/{reveal-component-CBOpXCsm.js → reveal-component-CIxmUvf5.js} +12 -12
- package/dist/{spec-a6DaqW__.js → spec-BQbOvWbq.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{toDate-ZVVIBmdk.js → toDate-DqrFDZlc.js} +1 -1
- package/dist/{useAsyncData-C008zUPi.js → useAsyncData-4lY05iWF.js} +1 -1
- package/dist/{useDeepCompareMemoize-BrA3_n61.js → useDeepCompareMemoize-C5Zu9gK6.js} +1 -1
- package/dist/{useLifecycle-BNaoJ5a4.js → useLifecycle-YLdDriVo.js} +1 -1
- package/dist/{useTheme-7O0YWlE5.js → useTheme-u3PW8S24.js} +19 -18
- package/dist/{vega-component-DJNmOdUj.js → vega-component-CdQu2ErN.js} +5 -5
- package/package.json +1 -1
- package/src/components/editor/output/MarimoErrorOutput.tsx +103 -25
- package/src/components/editor/output/MarimoTracebackOutput.tsx +24 -36
- package/src/core/codemirror/cells/traceback-decorations.ts +1 -1
- package/src/css/app/Cell.css +0 -1
|
@@ -6,14 +6,14 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-BuQpJEzp.js";
|
|
9
|
-
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as Minus, C as AccordionContent, En as Trash2, Ft as jotaiJsonStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, Pn as FileText, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, kt as goToCellLine, l as PopoverClose, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as Spinner, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, r as MarkdownRenderer, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zn as CircleX, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-
|
|
9
|
+
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as Minus, C as AccordionContent, En as Trash2, Ft as jotaiJsonStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mt as useChromeActions, N as PinRightIcon, Nn as Info, O as CheckIcon, Pn as FileText, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, kt as goToCellLine, l as PopoverClose, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as Spinner, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, r as MarkdownRenderer, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zn as CircleX, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-DjEqYaQd.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-C1BYNeCR.js";
|
|
11
|
-
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-
|
|
11
|
+
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-YLdDriVo.js";
|
|
12
12
|
import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-BA4FCquG.js";
|
|
13
13
|
import { t as Check } from "./check-DTbrK0zt.js";
|
|
14
14
|
import { C as $a916eb452884faea$export$b7a616150fdb9f44, D as $b5e257d569688ac6$export$535bd6ca7f90a273, F as X, L as ChevronDown, M as usePrevious$1, N as useDirection, S as logNever, T as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, _ as menuItemVariants, b as menuSubTriggerVariants, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuLabelVariants, w as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, y as menuSeparatorVariants } from "./strings-Bu3vlb6W.js";
|
|
15
|
-
import { $ as $e5be200c675c3b3a$export$aca958c65c314e6c, $t as Portal, A as $d2b4bc8c273e7be6$export$24d547caef80ccd1, At as $c87311424ea30a05$export$fedb369cb70207f1, B as $64fa3d84918910a7$export$c62b8e45d58ddad9, Bt as $431fbd86ca7dc216$export$f21a1ffae260145a, C as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Ct as $8ae05eaa5c114e9c$export$7f54fc3180508a52, D as $ee014567cb39d3f0$export$ff05c3ac10437e03, Dt as $c87311424ea30a05$export$78551043582a6a98, E as $ee014567cb39d3f0$export$f551688fc98f2e09, Et as $c87311424ea30a05$export$6446a186d09e379e, F as $64fa3d84918910a7$export$2881499e37b75b9a, Ft as $d4ee10de306f2510$export$b4f377a2b6254582, G as marked, Gt as Anchor2, H as $64fa3d84918910a7$export$ef03459518577ad4, Ht as $bdb11010cef70236$export$b4cc09c592e8fdb8, I as $64fa3d84918910a7$export$29f1550f4b0d4415, It as $d4ee10de306f2510$export$cd4e5573fbe2b576, J as $d2e8511e6f209edf$export$e908e06f4b8e3402, Jt as Content2$1, Kt as Arrow2, L as $64fa3d84918910a7$export$4d86445c2cf5e3, Lt as $d4ee10de306f2510$export$e58f029f0fbfdb29, M as $01b77f81d0f07f68$export$75b6ee27786ba447, Mt as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, N as $01b77f81d0f07f68$export$b04be29aa201d4f5, Nt as $3ef42575df84b30b$export$9d1611c77c2fe928, O as $514c0188e459b4c0$export$5f1af8db9871e1d6, Ot as $c87311424ea30a05$export$9ac100e40613ea10, P as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Pt as $d4ee10de306f2510$export$4282f70798064fe0, Q as $e5be200c675c3b3a$export$a763b9476acd3eb, Qt as Label$1, R as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Rt as $f4e2df6bd15f8569$export$98658e8c59125e6a, S as $3985021b0ad6602f$export$f5b8910cec6cf069, St as $e9faafb641e167db$export$90fc3a17d93f704c, T as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Tt as $313b98861ee5dd6c$export$d6875122194c7b44, U as $64fa3d84918910a7$export$fabf2dc03a41866e, Ut as $bdb11010cef70236$export$f680877a34711e37, V as $64fa3d84918910a7$export$df3a06d6289f983e, Vt as $ff5963eb1fccf552$export$e08e3b67e392101e, Wt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, X as $e93e671b31057976$export$b8473d3665f3a75a, Xt as Item2$2, Y as $2baaea4c71418dea$export$294aa081a6c6f55d, Yt as Group, Z as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, Zt as ItemIndicator, _ as DropdownMenuSub, _t as $9446cca9a3875146$export$7d15b64cf5a3a4c4, a as NumberField, an as SubContent, at as $6c7bd7858deea686$export$cd11ab140839f11d, b as DropdownMenuTrigger, bt as $b4b717babfbb907b$export$bebd5a1431fec25d, c as prettyNumber, cn as Item, ct as $6db58dc88e78b024$export$2f817fcdc4b89ae0, d as DropdownMenuContent, dn as Search, dt as $9ab94262bd0047c7$export$420e68273165f4ec, en as RadioGroup$2, et as $e5be200c675c3b3a$export$dad6ae84456c676a, fn as Circle, ft as $3ad3f6e1647bc98d$export$80f3e147d781571c, g as DropdownMenuSeparator, gt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, h as DropdownMenuPortal, ht as _class_private_field_init, in as Sub, j as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, jt as $7215afc6de606d6b$export$de79e2c695e052f3, k as $514c0188e459b4c0$export$9afb8bc826b033ea, kt as $c87311424ea30a05$export$a11b0059900ceec8, l as prettyScientificNumber, ln as Root$2, lt as $5b160d28a433310d$export$c17fa47878dc55b6, m as DropdownMenuLabel, mt as $f6c31cce2adf654f$export$45712eceda6fad21, nn as Root3, nt as $319e236875307eab$export$a9b970dcc4ae71a9, o as maxFractionalDigits, on as SubTrigger, ot as $fca6afa0e843324b$export$87b761675e8eaa10, p as DropdownMenuItem, pn as ChevronRight, pt as $507fabe10e71c6fb$export$630ff653c5ada6a9, qt as CheckboxItem, r as Input, rn as Separator$1, rt as $f7dceffc5ad7768b$export$4e328f61c538687f, s as prettyEngineeringNumber, sn as createMenuScope, st as $fca6afa0e843324b$export$f12b703ca79dfbb1, tn as RadioItem, tt as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, u as DropdownMenu, un as createRovingFocusGroupScope, ut as $6179b936705e76d3$export$ae780daf29e6d456, v as DropdownMenuSubContent, vt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, w as $a049562f99e7db0e$export$f9c6924e160136d1, wt as $df56164dff5785e2$export$4338b53315abf666, x as $3985021b0ad6602f$export$37fb8590cf2c088c, xt as $99facab73266f662$export$5add1d006293d136, y as DropdownMenuSubTrigger, yt as $b4b717babfbb907b$export$4c063cf1350e6fed, z as $64fa3d84918910a7$export$c245e6201fed2f75, zt as $431fbd86ca7dc216$export$b204af158042fbac } from "./input-
|
|
16
|
-
import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-
|
|
15
|
+
import { $ as $e5be200c675c3b3a$export$aca958c65c314e6c, $t as Portal, A as $d2b4bc8c273e7be6$export$24d547caef80ccd1, At as $c87311424ea30a05$export$fedb369cb70207f1, B as $64fa3d84918910a7$export$c62b8e45d58ddad9, Bt as $431fbd86ca7dc216$export$f21a1ffae260145a, C as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Ct as $8ae05eaa5c114e9c$export$7f54fc3180508a52, D as $ee014567cb39d3f0$export$ff05c3ac10437e03, Dt as $c87311424ea30a05$export$78551043582a6a98, E as $ee014567cb39d3f0$export$f551688fc98f2e09, Et as $c87311424ea30a05$export$6446a186d09e379e, F as $64fa3d84918910a7$export$2881499e37b75b9a, Ft as $d4ee10de306f2510$export$b4f377a2b6254582, G as marked, Gt as Anchor2, H as $64fa3d84918910a7$export$ef03459518577ad4, Ht as $bdb11010cef70236$export$b4cc09c592e8fdb8, I as $64fa3d84918910a7$export$29f1550f4b0d4415, It as $d4ee10de306f2510$export$cd4e5573fbe2b576, J as $d2e8511e6f209edf$export$e908e06f4b8e3402, Jt as Content2$1, Kt as Arrow2, L as $64fa3d84918910a7$export$4d86445c2cf5e3, Lt as $d4ee10de306f2510$export$e58f029f0fbfdb29, M as $01b77f81d0f07f68$export$75b6ee27786ba447, Mt as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, N as $01b77f81d0f07f68$export$b04be29aa201d4f5, Nt as $3ef42575df84b30b$export$9d1611c77c2fe928, O as $514c0188e459b4c0$export$5f1af8db9871e1d6, Ot as $c87311424ea30a05$export$9ac100e40613ea10, P as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Pt as $d4ee10de306f2510$export$4282f70798064fe0, Q as $e5be200c675c3b3a$export$a763b9476acd3eb, Qt as Label$1, R as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Rt as $f4e2df6bd15f8569$export$98658e8c59125e6a, S as $3985021b0ad6602f$export$f5b8910cec6cf069, St as $e9faafb641e167db$export$90fc3a17d93f704c, T as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Tt as $313b98861ee5dd6c$export$d6875122194c7b44, U as $64fa3d84918910a7$export$fabf2dc03a41866e, Ut as $bdb11010cef70236$export$f680877a34711e37, V as $64fa3d84918910a7$export$df3a06d6289f983e, Vt as $ff5963eb1fccf552$export$e08e3b67e392101e, Wt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, X as $e93e671b31057976$export$b8473d3665f3a75a, Xt as Item2$2, Y as $2baaea4c71418dea$export$294aa081a6c6f55d, Yt as Group, Z as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, Zt as ItemIndicator, _ as DropdownMenuSub, _t as $9446cca9a3875146$export$7d15b64cf5a3a4c4, a as NumberField, an as SubContent, at as $6c7bd7858deea686$export$cd11ab140839f11d, b as DropdownMenuTrigger, bt as $b4b717babfbb907b$export$bebd5a1431fec25d, c as prettyNumber, cn as Item, ct as $6db58dc88e78b024$export$2f817fcdc4b89ae0, d as DropdownMenuContent, dn as Search, dt as $9ab94262bd0047c7$export$420e68273165f4ec, en as RadioGroup$2, et as $e5be200c675c3b3a$export$dad6ae84456c676a, fn as Circle, ft as $3ad3f6e1647bc98d$export$80f3e147d781571c, g as DropdownMenuSeparator, gt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, h as DropdownMenuPortal, ht as _class_private_field_init, in as Sub, j as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, jt as $7215afc6de606d6b$export$de79e2c695e052f3, k as $514c0188e459b4c0$export$9afb8bc826b033ea, kt as $c87311424ea30a05$export$a11b0059900ceec8, l as prettyScientificNumber, ln as Root$2, lt as $5b160d28a433310d$export$c17fa47878dc55b6, m as DropdownMenuLabel, mt as $f6c31cce2adf654f$export$45712eceda6fad21, nn as Root3, nt as $319e236875307eab$export$a9b970dcc4ae71a9, o as maxFractionalDigits, on as SubTrigger, ot as $fca6afa0e843324b$export$87b761675e8eaa10, p as DropdownMenuItem, pn as ChevronRight, pt as $507fabe10e71c6fb$export$630ff653c5ada6a9, qt as CheckboxItem, r as Input, rn as Separator$1, rt as $f7dceffc5ad7768b$export$4e328f61c538687f, s as prettyEngineeringNumber, sn as createMenuScope, st as $fca6afa0e843324b$export$f12b703ca79dfbb1, tn as RadioItem, tt as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, u as DropdownMenu, un as createRovingFocusGroupScope, ut as $6179b936705e76d3$export$ae780daf29e6d456, v as DropdownMenuSubContent, vt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, w as $a049562f99e7db0e$export$f9c6924e160136d1, wt as $df56164dff5785e2$export$4338b53315abf666, x as $3985021b0ad6602f$export$37fb8590cf2c088c, xt as $99facab73266f662$export$5add1d006293d136, y as DropdownMenuSubTrigger, yt as $b4b717babfbb907b$export$4c063cf1350e6fed, z as $64fa3d84918910a7$export$c245e6201fed2f75, zt as $431fbd86ca7dc216$export$b204af158042fbac } from "./input-DBDlwwuD.js";
|
|
16
|
+
import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-DqrFDZlc.js";
|
|
17
17
|
import { r as Plus, t as ErrorBoundary } from "./ErrorBoundary-rULOrC_p.js";
|
|
18
18
|
import { n as clsx_default } from "./clsx-CIWA5tNO.js";
|
|
19
19
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
@@ -23,18 +23,18 @@ import { a as Content$1, c as Root$3, i as prettyError, n as ErrorBanner, o as O
|
|
|
23
23
|
import { t as Tooltip } from "./tooltip-C5FYOpQc.js";
|
|
24
24
|
import { f as CopyClipboardIcon, t as _extends } from "./extends-BgdxCfYu.js";
|
|
25
25
|
import { r as KnownQueryParams } from "./constants-T20xxyNf.js";
|
|
26
|
-
import { C as
|
|
26
|
+
import { C as getBuildingBlocks, S as buildStore, T as useEvent_default, _ as useAtomValue, b as atom, f as useJotaiEffect, g as useAtom, h as Provider, n as useTheme, r as aiEnabledAtom, s as resolvedMarimoConfigAtom, v as useSetAtom, w as dequal, y as useStore } from "./useTheme-u3PW8S24.js";
|
|
27
27
|
import { Z as EditorView } from "./dist-DNdhYsgW.js";
|
|
28
28
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
29
29
|
import { c as uniqueBy, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
30
30
|
import { n as once, t as memoizeLastValue } from "./once-DPuqGUeo.js";
|
|
31
31
|
import { a as parser } from "./dist-BotSqB48.js";
|
|
32
|
-
import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-
|
|
32
|
+
import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-BHOojBDG.js";
|
|
33
33
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DzSb5hsH.js";
|
|
34
34
|
import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
|
|
35
35
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BWLPpjKK.js";
|
|
36
36
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-C4JTXTIh.js";
|
|
37
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
37
|
+
import { t as useAsyncData } from "./useAsyncData-4lY05iWF.js";
|
|
38
38
|
let TableBody, ChevronLeft, ComboboxItem, ChartErrorState, contextAwarePanelOpen, $fae977aafc393c5c$export$6b862160d295c8e, prettifyRowColumnCount, dateToLocalISODate, DatePicker, TabsContent, useInternalStateWithSync, Tabs, CommandList, RenderTextWithLinks, slotsController, Expand, contextAwarePanelType, GripHorizontal, CommandSeparator, Kbd, PanelGroup, Code, Toggle, Ellipsis, smartMatch, HtmlOutput, CommandEmpty, ChartLoadingState, CommandInput, LazyVegaEmbed, DateRangePicker, TabsList, CommandItem, useOverflowDetection, Table, ChevronsDownUp, ContextAwarePanelItem, EmotionCacheProvider, downloadSizeLimitAtom, Maps, getColumnCountForDisplay, dateToLocalISOTime, isCellAwareAtom, Funnel, contextAwarePanelOwner, TextWrap, SlotNames, EyeOff, Fill, ChevronsRight, PanelResizeHandle, ChevronsUpDown, Provider$1, ChevronsLeft, downloadBlob, SELECT_COLUMN_ID, DEFAULT_SLIDE_TYPE, generateColumns, Progress, getMimeValues, Slide, ColumnChartContext, JsonOutput, useIntersectionObserver, ArrowDownWideNarrow, TableCell, OutputArea, usePrevious, ADD_PRINTING_CLASS, INDEX_COLUMN_NAME, InstallPackageButton, loadTableData, DEFAULT_DECK_TRANSITION, NAMELESS_COLUMN_PREFIX, Command, ChartInfoState, Combobox, TabsTrigger, RadioGroup, ColumnChartSpecModel, DataTable, loadTableAndRawData, marimoVersionAtom, TableHeader, SLIDE_TYPE_OPTIONS_BY_VALUE, inferFieldTypes, OutputRenderer, getPageIndexForRow, Panel, Download, showCodeInRunModeAtom, TableRow, SlideSidebar, renderCellValue, useNotebookCodeAvailable, TableHead, RadioGroupItem, DelayMount, downloadByURL, TOO_MANY_ROWS, prettifyRowCount, dateToLocalISODateTime, Filenames, isNullishFilter, downloadHTMLAsImage, toFieldTypes, PANEL_TYPES, $fae977aafc393c5c$export$588937bcd60ade55;
|
|
39
39
|
let __tla = Promise.all([
|
|
40
40
|
(() => {
|
|
@@ -1902,21 +1902,21 @@ Defaulting to \`null\`.`;
|
|
|
1902
1902
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
1903
1903
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
1904
1904
|
if (e === t) return;
|
|
1905
|
-
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0,
|
|
1906
|
-
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
1907
|
-
let
|
|
1908
|
-
if (
|
|
1909
|
-
else if (
|
|
1910
|
-
else if (
|
|
1911
|
-
else if (
|
|
1912
|
-
let e2 =
|
|
1905
|
+
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, MK = parseInt(h.borderRightWidth, 10) || 0, NK = c.top - E, PK = c.bottom + O, FK = c.left - A, $ = c.right + M, IK = e === _ ? 0 : Q + MK, LK = e === _ ? 0 : q + J, RK = e.offsetWidth - e.clientWidth - IK, zK = e.offsetHeight - e.clientHeight - LK, BK = v + q + I, VK = y - J - z - zK, HK = S + Q + U, UK = w - MK - K;
|
|
1906
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? HK += RK : UK -= RK;
|
|
1907
|
+
let WK = NK < BK || PK > VK, GK = FK < HK || $ > UK;
|
|
1908
|
+
if (WK && i === "start") o += NK - BK;
|
|
1909
|
+
else if (WK && i === "center") o += (NK + PK) / 2 - (BK + VK) / 2;
|
|
1910
|
+
else if (WK && i === "end") o += PK - VK;
|
|
1911
|
+
else if (WK && i === "nearest") {
|
|
1912
|
+
let e2 = NK - BK, t2 = PK - VK;
|
|
1913
1913
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1914
1914
|
}
|
|
1915
|
-
if (
|
|
1916
|
-
else if (
|
|
1917
|
-
else if (
|
|
1918
|
-
else if (
|
|
1919
|
-
let e2 =
|
|
1915
|
+
if (GK && a === "start") s += FK - HK;
|
|
1916
|
+
else if (GK && a === "center") s += (FK + $) / 2 - (HK + UK) / 2;
|
|
1917
|
+
else if (GK && a === "end") s += $ - UK;
|
|
1918
|
+
else if (GK && a === "nearest") {
|
|
1919
|
+
let e2 = FK - HK, t2 = $ - UK;
|
|
1920
1920
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1921
1921
|
}
|
|
1922
1922
|
e.scrollTo({
|
|
@@ -5024,25 +5024,25 @@ Defaulting to \`null\`.`;
|
|
|
5024
5024
|
let e2 = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[U]} ${K}`), i2 = $edcf132a9284368a$var$computePosition(t, c, n, e2, h, _, f, v, S, w, d);
|
|
5025
5025
|
$edcf132a9284368a$var$getAvailableSpace(c, f, t, a, o + h, e2, d, E) > Q && (A = e2, q = i2, J = h);
|
|
5026
5026
|
}
|
|
5027
|
-
let
|
|
5028
|
-
A.axis === "top" ? A.placement === "top" ?
|
|
5029
|
-
let
|
|
5030
|
-
q[I] +=
|
|
5031
|
-
let
|
|
5032
|
-
y && y <
|
|
5033
|
-
let
|
|
5034
|
-
|
|
5035
|
-
let
|
|
5036
|
-
x: U === "top" || U === "bottom" ?
|
|
5037
|
-
y: U === "left" || U === "right" ?
|
|
5027
|
+
let MK = "bottom";
|
|
5028
|
+
A.axis === "top" ? A.placement === "top" ? MK = "top" : A.placement === "bottom" && (MK = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? MK = "bottom" : A.crossPlacement === "bottom" && (MK = "top"));
|
|
5029
|
+
let NK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5030
|
+
q[I] += NK;
|
|
5031
|
+
let PK = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, MK, d, E, O);
|
|
5032
|
+
y && y < PK && (PK = y), n.height = Math.min(n.height, PK), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), NK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += NK;
|
|
5033
|
+
let FK = {}, $ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], IK = $ + 0.5 * t[z], LK = S / 2 + w, RK = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), zK = n[z] - RK - S / 2 - w;
|
|
5034
|
+
FK[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(IK, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), LK, zK), { placement: U, crossPlacement: K } = A, S ? $ = FK[I] : K === "right" ? $ += t[z] : K === "center" && ($ += t[z] / 2);
|
|
5035
|
+
let BK = U === "left" || U === "top" ? n[M] : 0, VK = {
|
|
5036
|
+
x: U === "top" || U === "bottom" ? $ : BK,
|
|
5037
|
+
y: U === "left" || U === "right" ? $ : BK
|
|
5038
5038
|
};
|
|
5039
5039
|
return {
|
|
5040
5040
|
position: q,
|
|
5041
|
-
maxHeight:
|
|
5042
|
-
arrowOffsetLeft:
|
|
5043
|
-
arrowOffsetTop:
|
|
5041
|
+
maxHeight: PK,
|
|
5042
|
+
arrowOffsetLeft: FK.left,
|
|
5043
|
+
arrowOffsetTop: FK.top,
|
|
5044
5044
|
placement: U,
|
|
5045
|
-
triggerAnchorPoint:
|
|
5045
|
+
triggerAnchorPoint: VK
|
|
5046
5046
|
};
|
|
5047
5047
|
}
|
|
5048
5048
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -6867,7 +6867,7 @@ Defaulting to \`null\`.`;
|
|
|
6867
6867
|
let e2 = window.getSelection();
|
|
6868
6868
|
(e2 == null ? void 0 : e2.anchorNode) && $d4ee10de306f2510$export$4282f70798064fe0(n.current, e2 == null ? void 0 : e2.anchorNode) && e2.collapse(n.current);
|
|
6869
6869
|
});
|
|
6870
|
-
let
|
|
6870
|
+
let MK = (0, import_react.useRef)("");
|
|
6871
6871
|
$e9faafb641e167db$export$90fc3a17d93f704c(n, "beforeinput", (i2) => {
|
|
6872
6872
|
if (n.current) switch (i2.preventDefault(), i2.inputType) {
|
|
6873
6873
|
case "deleteContentBackward":
|
|
@@ -6875,7 +6875,7 @@ Defaulting to \`null\`.`;
|
|
|
6875
6875
|
E.isValidPartialNumber(e.text) && !t.isReadOnly && O();
|
|
6876
6876
|
break;
|
|
6877
6877
|
case "insertCompositionText":
|
|
6878
|
-
|
|
6878
|
+
MK.current = n.current.textContent, n.current.textContent = n.current.textContent;
|
|
6879
6879
|
break;
|
|
6880
6880
|
default:
|
|
6881
6881
|
i2.data != null && J(i2.data);
|
|
@@ -6885,7 +6885,7 @@ Defaulting to \`null\`.`;
|
|
|
6885
6885
|
let { inputType: t2, data: i2 } = e2;
|
|
6886
6886
|
switch (t2) {
|
|
6887
6887
|
case "insertCompositionText":
|
|
6888
|
-
n.current && (n.current.textContent =
|
|
6888
|
+
n.current && (n.current.textContent = MK.current), i2 != null && (M(z, i2) || M(U, i2)) && J(i2);
|
|
6889
6889
|
break;
|
|
6890
6890
|
}
|
|
6891
6891
|
}), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
@@ -6897,7 +6897,7 @@ Defaulting to \`null\`.`;
|
|
|
6897
6897
|
n,
|
|
6898
6898
|
h
|
|
6899
6899
|
]);
|
|
6900
|
-
let
|
|
6900
|
+
let NK = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
6901
6901
|
role: "textbox",
|
|
6902
6902
|
"aria-valuemax": null,
|
|
6903
6903
|
"aria-valuemin": null,
|
|
@@ -6907,8 +6907,8 @@ Defaulting to \`null\`.`;
|
|
|
6907
6907
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
6908
6908
|
t.segments
|
|
6909
6909
|
]) && !t.isInvalid && (f = void 0);
|
|
6910
|
-
let
|
|
6911
|
-
"aria-label": `${
|
|
6910
|
+
let PK = $bdb11010cef70236$export$f680877a34711e37(), FK = !t.isDisabled && !t.isReadOnly && e.isEditable, $ = e.type === "literal" ? "" : s.of(e.type), IK = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
6911
|
+
"aria-label": `${$}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
6912
6912
|
"aria-labelledby": d
|
|
6913
6913
|
});
|
|
6914
6914
|
if (e.type === "literal") return {
|
|
@@ -6916,32 +6916,32 @@ Defaulting to \`null\`.`;
|
|
|
6916
6916
|
"aria-hidden": true
|
|
6917
6917
|
}
|
|
6918
6918
|
};
|
|
6919
|
-
let
|
|
6919
|
+
let LK = {
|
|
6920
6920
|
caretColor: "transparent"
|
|
6921
6921
|
};
|
|
6922
6922
|
if (o === "rtl") {
|
|
6923
|
-
|
|
6923
|
+
LK.unicodeBidi = "embed";
|
|
6924
6924
|
let t2 = v[e.type];
|
|
6925
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
6925
|
+
(t2 === "numeric" || t2 === "2-digit") && (LK.direction = "ltr");
|
|
6926
6926
|
}
|
|
6927
6927
|
return {
|
|
6928
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
6929
|
-
id:
|
|
6930
|
-
...
|
|
6928
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, IK, {
|
|
6929
|
+
id: PK,
|
|
6930
|
+
...NK,
|
|
6931
6931
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
6932
6932
|
"aria-describedby": f,
|
|
6933
6933
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
6934
6934
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
6935
|
-
contentEditable:
|
|
6936
|
-
suppressContentEditableWarning:
|
|
6937
|
-
spellCheck:
|
|
6938
|
-
autoCorrect:
|
|
6939
|
-
enterKeyHint:
|
|
6940
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
6935
|
+
contentEditable: FK,
|
|
6936
|
+
suppressContentEditableWarning: FK,
|
|
6937
|
+
spellCheck: FK ? "false" : void 0,
|
|
6938
|
+
autoCorrect: FK ? "off" : void 0,
|
|
6939
|
+
enterKeyHint: FK ? "next" : void 0,
|
|
6940
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !FK ? void 0 : "numeric",
|
|
6941
6941
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
6942
6942
|
onKeyDown: A,
|
|
6943
6943
|
onFocus: Q,
|
|
6944
|
-
style:
|
|
6944
|
+
style: LK,
|
|
6945
6945
|
onPointerDown(e2) {
|
|
6946
6946
|
e2.stopPropagation();
|
|
6947
6947
|
},
|
|
@@ -7014,7 +7014,7 @@ Defaulting to \`null\`.`;
|
|
|
7014
7014
|
q.current = true, (n2 = e.onFocus) == null || n2.call(e, t2), (i2 = e.onFocusChange) == null || i2.call(e, true);
|
|
7015
7015
|
}
|
|
7016
7016
|
}
|
|
7017
|
-
}), Q = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a),
|
|
7017
|
+
}), Q = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a), MK = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
7018
7018
|
return {
|
|
7019
7019
|
groupProps: $3ef42575df84b30b$export$9d1611c77c2fe928(K, M, d, S, J, {
|
|
7020
7020
|
role: "group",
|
|
@@ -7061,7 +7061,7 @@ Defaulting to \`null\`.`;
|
|
|
7061
7061
|
realtimeValidation: t.realtimeValidation,
|
|
7062
7062
|
displayValidation: t.displayValidation,
|
|
7063
7063
|
updateValidation(e2) {
|
|
7064
|
-
Q.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e2,
|
|
7064
|
+
Q.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e2, MK.current));
|
|
7065
7065
|
},
|
|
7066
7066
|
resetValidation: t.resetValidation,
|
|
7067
7067
|
commitValidation: t.commitValidation
|
|
@@ -7079,7 +7079,7 @@ Defaulting to \`null\`.`;
|
|
|
7079
7079
|
realtimeValidation: t.realtimeValidation,
|
|
7080
7080
|
displayValidation: t.displayValidation,
|
|
7081
7081
|
updateValidation(e2) {
|
|
7082
|
-
|
|
7082
|
+
MK.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(Q.current, e2));
|
|
7083
7083
|
},
|
|
7084
7084
|
resetValidation: t.resetValidation,
|
|
7085
7085
|
commitValidation: t.commitValidation
|
|
@@ -10173,7 +10173,7 @@ Defaulting to \`null\`.`;
|
|
|
10173
10173
|
function Q(e2) {
|
|
10174
10174
|
e2 = $f62d864046160412$export$4f5203c0d889109e(e2, s, c), A(e2);
|
|
10175
10175
|
}
|
|
10176
|
-
function
|
|
10176
|
+
function MK(t2) {
|
|
10177
10177
|
if (!e.isDisabled && !e.isReadOnly) {
|
|
10178
10178
|
let e2 = t2;
|
|
10179
10179
|
if (e2 === null) {
|
|
@@ -10184,12 +10184,12 @@ Defaulting to \`null\`.`;
|
|
|
10184
10184
|
e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
|
|
10185
10185
|
}
|
|
10186
10186
|
}
|
|
10187
|
-
let
|
|
10187
|
+
let NK = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10188
10188
|
w,
|
|
10189
10189
|
f,
|
|
10190
10190
|
s,
|
|
10191
10191
|
c
|
|
10192
|
-
]),
|
|
10192
|
+
]), PK = e.isInvalid || e.validationState === "invalid" || NK, FK = PK ? "invalid" : null, $ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10193
10193
|
h,
|
|
10194
10194
|
o
|
|
10195
10195
|
]);
|
|
@@ -10197,7 +10197,7 @@ Defaulting to \`null\`.`;
|
|
|
10197
10197
|
isDisabled: e.isDisabled ?? false,
|
|
10198
10198
|
isReadOnly: e.isReadOnly ?? false,
|
|
10199
10199
|
value: w,
|
|
10200
|
-
setValue:
|
|
10200
|
+
setValue: MK,
|
|
10201
10201
|
visibleRange: {
|
|
10202
10202
|
start: M,
|
|
10203
10203
|
end: K
|
|
@@ -10206,8 +10206,8 @@ Defaulting to \`null\`.`;
|
|
|
10206
10206
|
maxValue: c,
|
|
10207
10207
|
focusedDate: O,
|
|
10208
10208
|
timeZone: E,
|
|
10209
|
-
validationState:
|
|
10210
|
-
isValueInvalid:
|
|
10209
|
+
validationState: FK,
|
|
10210
|
+
isValueInvalid: PK,
|
|
10211
10211
|
setFocusedDate(e2) {
|
|
10212
10212
|
Q(e2);
|
|
10213
10213
|
},
|
|
@@ -10232,12 +10232,12 @@ Defaulting to \`null\`.`;
|
|
|
10232
10232
|
}));
|
|
10233
10233
|
},
|
|
10234
10234
|
focusNextPage() {
|
|
10235
|
-
let e2 = M.add(
|
|
10236
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10235
|
+
let e2 = M.add($);
|
|
10236
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add($), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, $, i, s, c), $, i));
|
|
10237
10237
|
},
|
|
10238
10238
|
focusPreviousPage() {
|
|
10239
|
-
let e2 = M.subtract(
|
|
10240
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10239
|
+
let e2 = M.subtract($);
|
|
10240
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract($), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, $, i, s, c), $, i));
|
|
10241
10241
|
},
|
|
10242
10242
|
focusSectionStart() {
|
|
10243
10243
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10268,10 +10268,10 @@ Defaulting to \`null\`.`;
|
|
|
10268
10268
|
}));
|
|
10269
10269
|
},
|
|
10270
10270
|
selectFocusedDate() {
|
|
10271
|
-
f && f(O) ||
|
|
10271
|
+
f && f(O) || MK(O);
|
|
10272
10272
|
},
|
|
10273
10273
|
selectDate(e2) {
|
|
10274
|
-
|
|
10274
|
+
MK(e2);
|
|
10275
10275
|
},
|
|
10276
10276
|
isFocused: z,
|
|
10277
10277
|
setFocused: U,
|
|
@@ -10374,13 +10374,13 @@ Defaulting to \`null\`.`;
|
|
|
10374
10374
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10375
10375
|
}), q(null);
|
|
10376
10376
|
}
|
|
10377
|
-
}, [
|
|
10378
|
-
|
|
10377
|
+
}, [MK, NK] = (0, import_react.useState)(false), { isDateUnavailable: PK } = e, FK = (0, import_react.useMemo)(() => !h || v ? false : PK && (PK(h.start) || PK(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10378
|
+
PK,
|
|
10379
10379
|
h,
|
|
10380
10380
|
v,
|
|
10381
10381
|
c,
|
|
10382
10382
|
d
|
|
10383
|
-
]),
|
|
10383
|
+
]), $ = e.isInvalid || e.validationState === "invalid" || FK, IK = $ ? "invalid" : null;
|
|
10384
10384
|
return {
|
|
10385
10385
|
...I,
|
|
10386
10386
|
value: h,
|
|
@@ -10388,8 +10388,8 @@ Defaulting to \`null\`.`;
|
|
|
10388
10388
|
anchorDate: v,
|
|
10389
10389
|
setAnchorDate: q,
|
|
10390
10390
|
highlightedRange: J,
|
|
10391
|
-
validationState:
|
|
10392
|
-
isValueInvalid:
|
|
10391
|
+
validationState: IK,
|
|
10392
|
+
isValueInvalid: $,
|
|
10393
10393
|
selectFocusedDate() {
|
|
10394
10394
|
Q(I.focusedDate);
|
|
10395
10395
|
},
|
|
@@ -10404,8 +10404,8 @@ Defaulting to \`null\`.`;
|
|
|
10404
10404
|
var _a2, _b;
|
|
10405
10405
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10406
10406
|
},
|
|
10407
|
-
isDragging:
|
|
10408
|
-
setDragging:
|
|
10407
|
+
isDragging: MK,
|
|
10408
|
+
setDragging: NK
|
|
10409
10409
|
};
|
|
10410
10410
|
}
|
|
10411
10411
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11587,12 +11587,12 @@ Defaulting to \`null\`.`;
|
|
|
11587
11587
|
q
|
|
11588
11588
|
]), Q = (0, import_react.useMemo)(() => J.resolvedOptions(), [
|
|
11589
11589
|
J
|
|
11590
|
-
]),
|
|
11590
|
+
]), MK = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$66aa2b09de4b1ea5(e.placeholderValue, _, S, v), [
|
|
11591
11591
|
e.placeholderValue,
|
|
11592
11592
|
_,
|
|
11593
11593
|
S,
|
|
11594
11594
|
v
|
|
11595
|
-
]),
|
|
11595
|
+
]), NK = (0, import_react.useMemo)(() => {
|
|
11596
11596
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11597
11597
|
"era",
|
|
11598
11598
|
"year",
|
|
@@ -11610,15 +11610,15 @@ Defaulting to \`null\`.`;
|
|
|
11610
11610
|
e.maxGranularity,
|
|
11611
11611
|
_,
|
|
11612
11612
|
w
|
|
11613
|
-
]), [
|
|
11614
|
-
(M !==
|
|
11615
|
-
let
|
|
11616
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11613
|
+
]), [PK, FK] = (0, import_react.useState)(M), [$, IK] = (0, import_react.useState)(S), [LK, RK] = (0, import_react.useState)(w);
|
|
11614
|
+
(M !== PK || w !== LK || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, $)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), FK(M), IK(S), RK(w), z(I));
|
|
11615
|
+
let zK = (t2) => {
|
|
11616
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(NK)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11617
11617
|
else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
|
|
11618
11618
|
else {
|
|
11619
|
-
if (t2.isComplete(
|
|
11620
|
-
let e2 = t2.toValue(M ??
|
|
11621
|
-
if (t2.validate(e2,
|
|
11619
|
+
if (t2.isComplete(NK)) {
|
|
11620
|
+
let e2 = t2.toValue(M ?? MK);
|
|
11621
|
+
if (t2.validate(e2, NK)) {
|
|
11622
11622
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11623
11623
|
if (!E || t3.compare(E) !== 0) {
|
|
11624
11624
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11628,83 +11628,83 @@ Defaulting to \`null\`.`;
|
|
|
11628
11628
|
}
|
|
11629
11629
|
z(t2);
|
|
11630
11630
|
}
|
|
11631
|
-
},
|
|
11631
|
+
}, BK = (0, import_react.useMemo)(() => I.toValue(M ?? MK).toDate(y), [
|
|
11632
11632
|
I,
|
|
11633
11633
|
y,
|
|
11634
11634
|
M,
|
|
11635
|
-
|
|
11636
|
-
]),
|
|
11637
|
-
|
|
11635
|
+
MK
|
|
11636
|
+
]), VK = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(BK, I, J, Q, S, t, _), [
|
|
11637
|
+
BK,
|
|
11638
11638
|
J,
|
|
11639
11639
|
Q,
|
|
11640
11640
|
I,
|
|
11641
11641
|
S,
|
|
11642
11642
|
t,
|
|
11643
11643
|
_
|
|
11644
|
-
]),
|
|
11645
|
-
|
|
11646
|
-
},
|
|
11644
|
+
]), HK = (e2, t2) => {
|
|
11645
|
+
zK(I.cycle(e2, t2, MK, NK));
|
|
11646
|
+
}, UK = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11647
11647
|
E,
|
|
11648
11648
|
c,
|
|
11649
11649
|
d,
|
|
11650
11650
|
f,
|
|
11651
11651
|
K
|
|
11652
|
-
]),
|
|
11652
|
+
]), WK = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11653
11653
|
...e,
|
|
11654
11654
|
value: E,
|
|
11655
|
-
builtinValidation:
|
|
11656
|
-
}),
|
|
11655
|
+
builtinValidation: UK
|
|
11656
|
+
}), GK = WK.displayValidation.isInvalid, KK = e.validationState || (GK ? "invalid" : null);
|
|
11657
11657
|
return {
|
|
11658
|
-
...
|
|
11658
|
+
...WK,
|
|
11659
11659
|
value: M,
|
|
11660
11660
|
defaultValue: e.defaultValue ?? A,
|
|
11661
|
-
dateValue:
|
|
11661
|
+
dateValue: BK,
|
|
11662
11662
|
calendar: S,
|
|
11663
|
-
setValue:
|
|
11664
|
-
segments:
|
|
11663
|
+
setValue: zK,
|
|
11664
|
+
segments: VK,
|
|
11665
11665
|
dateFormatter: J,
|
|
11666
|
-
validationState:
|
|
11667
|
-
isInvalid:
|
|
11666
|
+
validationState: KK,
|
|
11667
|
+
isInvalid: GK,
|
|
11668
11668
|
granularity: _,
|
|
11669
11669
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11670
11670
|
isDisabled: a,
|
|
11671
11671
|
isReadOnly: o,
|
|
11672
11672
|
isRequired: s,
|
|
11673
11673
|
increment(e2) {
|
|
11674
|
-
|
|
11674
|
+
HK(e2, 1);
|
|
11675
11675
|
},
|
|
11676
11676
|
decrement(e2) {
|
|
11677
|
-
|
|
11677
|
+
HK(e2, -1);
|
|
11678
11678
|
},
|
|
11679
11679
|
incrementPage(e2) {
|
|
11680
|
-
|
|
11680
|
+
HK(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11681
11681
|
},
|
|
11682
11682
|
decrementPage(e2) {
|
|
11683
|
-
|
|
11683
|
+
HK(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11684
11684
|
},
|
|
11685
11685
|
incrementToMax(e2) {
|
|
11686
11686
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11687
|
-
|
|
11687
|
+
zK(I.set(e2, t2, MK));
|
|
11688
11688
|
},
|
|
11689
11689
|
decrementToMin(e2) {
|
|
11690
11690
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11691
|
-
|
|
11691
|
+
zK(I.set(e2, t2, MK));
|
|
11692
11692
|
},
|
|
11693
11693
|
setSegment(e2, t2) {
|
|
11694
|
-
|
|
11694
|
+
zK(I.set(e2, t2, MK));
|
|
11695
11695
|
},
|
|
11696
11696
|
confirmPlaceholder() {
|
|
11697
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11698
|
-
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ??
|
|
11697
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(NK)) {
|
|
11698
|
+
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? MK), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11699
11699
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11700
11700
|
}
|
|
11701
11701
|
},
|
|
11702
11702
|
clearSegment(e2) {
|
|
11703
11703
|
let t2 = I;
|
|
11704
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11704
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), zK(t2);
|
|
11705
11705
|
},
|
|
11706
11706
|
formatValue(e2) {
|
|
11707
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11707
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(BK) : "";
|
|
11708
11708
|
},
|
|
11709
11709
|
getDateFormatter(e2, t2) {
|
|
11710
11710
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11824,7 +11824,7 @@ Defaulting to \`null\`.`;
|
|
|
11824
11824
|
e.endName
|
|
11825
11825
|
]),
|
|
11826
11826
|
builtinValidation: J
|
|
11827
|
-
}),
|
|
11827
|
+
}), MK = Q.displayValidation.isInvalid, NK = e.validationState || (MK ? "invalid" : null);
|
|
11828
11828
|
return {
|
|
11829
11829
|
...Q,
|
|
11830
11830
|
value: c,
|
|
@@ -11870,8 +11870,8 @@ Defaulting to \`null\`.`;
|
|
|
11870
11870
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
11871
11871
|
}), t.setOpen(n2);
|
|
11872
11872
|
},
|
|
11873
|
-
validationState:
|
|
11874
|
-
isInvalid:
|
|
11873
|
+
validationState: NK,
|
|
11874
|
+
isInvalid: MK,
|
|
11875
11875
|
formatValue(t2, n2) {
|
|
11876
11876
|
if (!c || !c.start || !c.end) return null;
|
|
11877
11877
|
let i2 = "timeZone" in c.start ? c.start.timeZone : void 0, a2 = e.granularity || (c.start && "minute" in c.start ? "minute" : "day"), o2 = "timeZone" in c.end ? c.end.timeZone : void 0, s2 = e.granularity || (c.end && "minute" in c.end ? "minute" : "day"), d2 = $35a22f14a1f04b11$export$7e319ea407e63bc0(n2, {
|
|
@@ -15742,33 +15742,33 @@ try {
|
|
|
15742
15742
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15743
15743
|
function y(e2) {
|
|
15744
15744
|
var _a2, _b, _c, _d;
|
|
15745
|
-
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f),
|
|
15745
|
+
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), MK = !!Q && !I, NK = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15746
15746
|
h2
|
|
15747
|
-
]),
|
|
15748
|
-
|
|
15749
|
-
]),
|
|
15750
|
-
supportedColorSchemes:
|
|
15751
|
-
defaultLightColorScheme:
|
|
15752
|
-
defaultDarkColorScheme:
|
|
15747
|
+
]), PK = NK[t], FK = PK || NK, { colorSchemes: $ = _, components: IK = v, cssVarPrefix: LK } = FK, RK = Object.keys($).filter((e3) => !!$[e3]).join(","), zK = import_react.useMemo(() => RK.split(","), [
|
|
15748
|
+
RK
|
|
15749
|
+
]), BK = typeof s == "string" ? s : s.light, VK = typeof s == "string" ? s : s.dark, { mode: HK, setMode: UK, systemMode: WK, lightColorScheme: GK, darkColorScheme: KK, colorScheme: qK, setColorScheme: JK } = useCurrentColorScheme({
|
|
15750
|
+
supportedColorSchemes: zK,
|
|
15751
|
+
defaultLightColorScheme: BK,
|
|
15752
|
+
defaultDarkColorScheme: VK,
|
|
15753
15753
|
modeStorageKey: y2,
|
|
15754
15754
|
colorSchemeStorageKey: S2,
|
|
15755
|
-
defaultMode:
|
|
15755
|
+
defaultMode: $[BK] && $[VK] ? U : ((_b = (_a2 = $[FK.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = FK.palette) == null ? void 0 : _c.mode),
|
|
15756
15756
|
storageManager: E,
|
|
15757
15757
|
storageWindow: O,
|
|
15758
15758
|
noSsr: K
|
|
15759
|
-
}),
|
|
15760
|
-
|
|
15761
|
-
let
|
|
15759
|
+
}), YK = HK, XK = qK;
|
|
15760
|
+
MK && (YK = Q.mode, XK = Q.colorScheme);
|
|
15761
|
+
let ZK = import_react.useMemo(() => {
|
|
15762
15762
|
var _a3;
|
|
15763
|
-
let e3 =
|
|
15764
|
-
...
|
|
15765
|
-
components:
|
|
15766
|
-
colorSchemes:
|
|
15767
|
-
cssVarPrefix:
|
|
15763
|
+
let e3 = XK || FK.defaultColorScheme, t2 = ((_a3 = FK.generateThemeVars) == null ? void 0 : _a3.call(FK)) || FK.vars, n2 = {
|
|
15764
|
+
...FK,
|
|
15765
|
+
components: IK,
|
|
15766
|
+
colorSchemes: $,
|
|
15767
|
+
cssVarPrefix: LK,
|
|
15768
15768
|
vars: t2
|
|
15769
15769
|
};
|
|
15770
15770
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15771
|
-
let t3 =
|
|
15771
|
+
let t3 = $[e3];
|
|
15772
15772
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15773
15773
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15774
15774
|
...n2[e4],
|
|
@@ -15778,31 +15778,31 @@ try {
|
|
|
15778
15778
|
}
|
|
15779
15779
|
return c ? c(n2) : n2;
|
|
15780
15780
|
}, [
|
|
15781
|
-
NK,
|
|
15782
|
-
YK,
|
|
15783
15781
|
FK,
|
|
15784
|
-
|
|
15785
|
-
IK
|
|
15786
|
-
|
|
15782
|
+
XK,
|
|
15783
|
+
IK,
|
|
15784
|
+
$,
|
|
15785
|
+
LK
|
|
15786
|
+
]), QK = FK.colorSchemeSelector;
|
|
15787
15787
|
useEnhancedEffect_default(() => {
|
|
15788
|
-
if (
|
|
15789
|
-
let e3 =
|
|
15790
|
-
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...
|
|
15788
|
+
if (XK && M && QK && QK !== "media") {
|
|
15789
|
+
let e3 = QK, t2 = QK;
|
|
15790
|
+
if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...zK.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", XK));
|
|
15791
15791
|
else {
|
|
15792
|
-
let e4 = t2.replace("%s",
|
|
15792
|
+
let e4 = t2.replace("%s", XK).match(/\[([^\]]+)\]/);
|
|
15793
15793
|
if (e4) {
|
|
15794
15794
|
let [t3, n2] = e4[1].split("=");
|
|
15795
|
-
n2 ||
|
|
15796
|
-
M.removeAttribute(t3.replace(
|
|
15795
|
+
n2 || zK.forEach((e5) => {
|
|
15796
|
+
M.removeAttribute(t3.replace(XK, e5));
|
|
15797
15797
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15798
|
-
} else M.setAttribute(t2,
|
|
15798
|
+
} else M.setAttribute(t2, XK);
|
|
15799
15799
|
}
|
|
15800
15800
|
}
|
|
15801
15801
|
}, [
|
|
15802
|
-
|
|
15803
|
-
|
|
15802
|
+
XK,
|
|
15803
|
+
QK,
|
|
15804
15804
|
M,
|
|
15805
|
-
|
|
15805
|
+
zK
|
|
15806
15806
|
]), import_react.useEffect(() => {
|
|
15807
15807
|
let e3;
|
|
15808
15808
|
if (w2 && q.current && A) {
|
|
@@ -15815,48 +15815,48 @@ try {
|
|
|
15815
15815
|
clearTimeout(e3);
|
|
15816
15816
|
};
|
|
15817
15817
|
}, [
|
|
15818
|
-
|
|
15818
|
+
XK,
|
|
15819
15819
|
w2,
|
|
15820
15820
|
A
|
|
15821
15821
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
15822
15822
|
q.current = false;
|
|
15823
15823
|
}), []);
|
|
15824
|
-
let
|
|
15825
|
-
allColorSchemes:
|
|
15826
|
-
colorScheme:
|
|
15827
|
-
darkColorScheme:
|
|
15828
|
-
lightColorScheme:
|
|
15829
|
-
mode:
|
|
15830
|
-
setColorScheme:
|
|
15831
|
-
setMode:
|
|
15832
|
-
systemMode:
|
|
15824
|
+
let $K = import_react.useMemo(() => ({
|
|
15825
|
+
allColorSchemes: zK,
|
|
15826
|
+
colorScheme: XK,
|
|
15827
|
+
darkColorScheme: KK,
|
|
15828
|
+
lightColorScheme: GK,
|
|
15829
|
+
mode: YK,
|
|
15830
|
+
setColorScheme: JK,
|
|
15831
|
+
setMode: UK,
|
|
15832
|
+
systemMode: WK
|
|
15833
15833
|
}), [
|
|
15834
|
-
|
|
15835
|
-
|
|
15834
|
+
zK,
|
|
15835
|
+
XK,
|
|
15836
|
+
KK,
|
|
15836
15837
|
GK,
|
|
15837
|
-
|
|
15838
|
+
YK,
|
|
15838
15839
|
JK,
|
|
15839
|
-
qK,
|
|
15840
|
-
HK,
|
|
15841
15840
|
UK,
|
|
15842
|
-
|
|
15843
|
-
|
|
15844
|
-
|
|
15845
|
-
|
|
15841
|
+
WK,
|
|
15842
|
+
ZK.colorSchemeSelector
|
|
15843
|
+
]), eq = true;
|
|
15844
|
+
(z || FK.cssVariables === false || MK && (J == null ? void 0 : J.cssVarPrefix) === LK) && (eq = false);
|
|
15845
|
+
let tq = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
15846
15846
|
children: [
|
|
15847
15847
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
15848
|
-
themeId:
|
|
15849
|
-
theme:
|
|
15848
|
+
themeId: PK ? t : void 0,
|
|
15849
|
+
theme: ZK,
|
|
15850
15850
|
children: d2
|
|
15851
15851
|
}),
|
|
15852
|
-
|
|
15853
|
-
styles: ((_d =
|
|
15852
|
+
eq && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
15853
|
+
styles: ((_d = ZK.generateStyleSheets) == null ? void 0 : _d.call(ZK)) || []
|
|
15854
15854
|
})
|
|
15855
15855
|
]
|
|
15856
15856
|
});
|
|
15857
|
-
return
|
|
15858
|
-
value:
|
|
15859
|
-
children:
|
|
15857
|
+
return MK ? tq : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
15858
|
+
value: $K,
|
|
15859
|
+
children: tq
|
|
15860
15860
|
});
|
|
15861
15861
|
}
|
|
15862
15862
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17356,10 +17356,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17356
17356
|
let n = useDefaultProps({
|
|
17357
17357
|
props: e,
|
|
17358
17358
|
name: "MuiInputBase"
|
|
17359
|
-
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick:
|
|
17360
|
-
}, []),
|
|
17359
|
+
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: MK, onFocus: NK, onKeyDown: PK, onKeyUp: FK, placeholder: $, readOnly: IK, renderSuffix: LK, rows: RK, size: zK, slotProps: BK = {}, slots: VK = {}, startAdornment: HK, type: UK = "text", value: WK, ...GK } = n, KK = A.value == null ? WK : A.value, { current: qK } = import_react.useRef(KK != null), JK = import_react.useRef(), YK = import_react.useCallback((e2) => {
|
|
17360
|
+
}, []), XK = useForkRef_default(JK, M, A.ref, YK), [ZK, QK] = import_react.useState(false), $K = useFormControl(), eq = formControlState({
|
|
17361
17361
|
props: n,
|
|
17362
|
-
muiFormControl:
|
|
17362
|
+
muiFormControl: $K,
|
|
17363
17363
|
states: [
|
|
17364
17364
|
"color",
|
|
17365
17365
|
"disabled",
|
|
@@ -17370,145 +17370,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17370
17370
|
"filled"
|
|
17371
17371
|
]
|
|
17372
17372
|
});
|
|
17373
|
-
|
|
17374
|
-
|
|
17373
|
+
eq.focused = $K ? $K.focused : ZK, import_react.useEffect(() => {
|
|
17374
|
+
!$K && _ && ZK && (QK(false), J && J());
|
|
17375
17375
|
}, [
|
|
17376
|
-
|
|
17376
|
+
$K,
|
|
17377
17377
|
_,
|
|
17378
|
-
|
|
17378
|
+
ZK,
|
|
17379
17379
|
J
|
|
17380
17380
|
]);
|
|
17381
|
-
let
|
|
17382
|
-
isFilled(e2) ?
|
|
17381
|
+
let tq = $K && $K.onFilled, nq = $K && $K.onEmpty, rq = import_react.useCallback((e2) => {
|
|
17382
|
+
isFilled(e2) ? tq && tq() : nq && nq();
|
|
17383
17383
|
}, [
|
|
17384
|
-
|
|
17385
|
-
|
|
17384
|
+
tq,
|
|
17385
|
+
nq
|
|
17386
17386
|
]);
|
|
17387
17387
|
useEnhancedEffect_default$1(() => {
|
|
17388
|
-
|
|
17389
|
-
value:
|
|
17388
|
+
qK && rq({
|
|
17389
|
+
value: KK
|
|
17390
17390
|
});
|
|
17391
17391
|
}, [
|
|
17392
|
-
|
|
17393
|
-
|
|
17394
|
-
|
|
17392
|
+
KK,
|
|
17393
|
+
rq,
|
|
17394
|
+
qK
|
|
17395
17395
|
]);
|
|
17396
|
-
let
|
|
17397
|
-
|
|
17398
|
-
},
|
|
17399
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17400
|
-
},
|
|
17401
|
-
if (!
|
|
17402
|
-
let t3 = e2.target ||
|
|
17396
|
+
let iq = (e2) => {
|
|
17397
|
+
NK && NK(e2), A.onFocus && A.onFocus(e2), $K && $K.onFocus ? $K.onFocus(e2) : QK(true);
|
|
17398
|
+
}, aq = (e2) => {
|
|
17399
|
+
J && J(e2), A.onBlur && A.onBlur(e2), $K && $K.onBlur ? $K.onBlur(e2) : QK(false);
|
|
17400
|
+
}, oq = (e2, ...t2) => {
|
|
17401
|
+
if (!qK) {
|
|
17402
|
+
let t3 = e2.target || JK.current;
|
|
17403
17403
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17404
|
-
|
|
17404
|
+
rq({
|
|
17405
17405
|
value: t3.value
|
|
17406
17406
|
});
|
|
17407
17407
|
}
|
|
17408
17408
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17409
17409
|
};
|
|
17410
17410
|
import_react.useEffect(() => {
|
|
17411
|
-
|
|
17411
|
+
rq(JK.current);
|
|
17412
17412
|
}, []);
|
|
17413
|
-
let
|
|
17414
|
-
|
|
17415
|
-
},
|
|
17416
|
-
K &&
|
|
17413
|
+
let sq = (e2) => {
|
|
17414
|
+
JK.current && e2.currentTarget === e2.target && JK.current.focus(), MK && MK(e2);
|
|
17415
|
+
}, cq = O, lq = A;
|
|
17416
|
+
K && cq === "input" && (lq = RK ? {
|
|
17417
17417
|
type: void 0,
|
|
17418
|
-
minRows:
|
|
17419
|
-
maxRows:
|
|
17420
|
-
...
|
|
17418
|
+
minRows: RK,
|
|
17419
|
+
maxRows: RK,
|
|
17420
|
+
...lq
|
|
17421
17421
|
} : {
|
|
17422
17422
|
type: void 0,
|
|
17423
17423
|
maxRows: z,
|
|
17424
17424
|
minRows: U,
|
|
17425
|
-
...
|
|
17426
|
-
},
|
|
17427
|
-
let
|
|
17428
|
-
|
|
17425
|
+
...lq
|
|
17426
|
+
}, cq = TextareaAutosize_default);
|
|
17427
|
+
let uq = (e2) => {
|
|
17428
|
+
rq(e2.animationName === "mui-auto-fill-cancel" ? JK.current : {
|
|
17429
17429
|
value: "x"
|
|
17430
17430
|
});
|
|
17431
17431
|
};
|
|
17432
17432
|
import_react.useEffect(() => {
|
|
17433
|
-
|
|
17433
|
+
$K && $K.setAdornedStart(!!HK);
|
|
17434
17434
|
}, [
|
|
17435
|
-
|
|
17436
|
-
|
|
17435
|
+
$K,
|
|
17436
|
+
HK
|
|
17437
17437
|
]);
|
|
17438
|
-
let
|
|
17438
|
+
let dq = {
|
|
17439
17439
|
...n,
|
|
17440
|
-
color:
|
|
17441
|
-
disabled:
|
|
17440
|
+
color: eq.color || "primary",
|
|
17441
|
+
disabled: eq.disabled,
|
|
17442
17442
|
endAdornment: y,
|
|
17443
|
-
error:
|
|
17444
|
-
focused:
|
|
17445
|
-
formControl:
|
|
17443
|
+
error: eq.error,
|
|
17444
|
+
focused: eq.focused,
|
|
17445
|
+
formControl: $K,
|
|
17446
17446
|
fullWidth: w,
|
|
17447
|
-
hiddenLabel:
|
|
17447
|
+
hiddenLabel: eq.hiddenLabel,
|
|
17448
17448
|
multiline: K,
|
|
17449
|
-
size:
|
|
17450
|
-
startAdornment:
|
|
17451
|
-
type:
|
|
17452
|
-
},
|
|
17453
|
-
return
|
|
17454
|
-
...
|
|
17455
|
-
...
|
|
17449
|
+
size: eq.size,
|
|
17450
|
+
startAdornment: HK,
|
|
17451
|
+
type: UK
|
|
17452
|
+
}, fq = useUtilityClasses(dq), pq = VK.root || d.Root || InputBaseRoot, mq = BK.root || f.root || {}, hq = VK.input || d.Input || InputBaseInput;
|
|
17453
|
+
return lq = {
|
|
17454
|
+
...lq,
|
|
17455
|
+
...BK.input ?? f.input
|
|
17456
17456
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17457
17457
|
children: [
|
|
17458
17458
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17459
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17460
|
-
...
|
|
17459
|
+
(0, import_jsx_runtime.jsxs)(pq, {
|
|
17460
|
+
...mq,
|
|
17461
17461
|
ref: t,
|
|
17462
|
-
onClick:
|
|
17463
|
-
...
|
|
17464
|
-
...!isHostComponent_default(
|
|
17462
|
+
onClick: sq,
|
|
17463
|
+
...GK,
|
|
17464
|
+
...!isHostComponent_default(pq) && {
|
|
17465
17465
|
ownerState: {
|
|
17466
|
-
...
|
|
17467
|
-
...
|
|
17466
|
+
...dq,
|
|
17467
|
+
...mq.ownerState
|
|
17468
17468
|
}
|
|
17469
17469
|
},
|
|
17470
|
-
className: clsx_default(
|
|
17470
|
+
className: clsx_default(fq.root, mq.className, s, IK && "MuiInputBase-readOnly"),
|
|
17471
17471
|
children: [
|
|
17472
|
-
|
|
17472
|
+
HK,
|
|
17473
17473
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17474
17474
|
value: null,
|
|
17475
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17476
|
-
"aria-invalid":
|
|
17475
|
+
children: (0, import_jsx_runtime.jsx)(hq, {
|
|
17476
|
+
"aria-invalid": eq.error,
|
|
17477
17477
|
"aria-describedby": i,
|
|
17478
17478
|
autoComplete: a,
|
|
17479
17479
|
autoFocus: o,
|
|
17480
17480
|
defaultValue: h,
|
|
17481
|
-
disabled:
|
|
17481
|
+
disabled: eq.disabled,
|
|
17482
17482
|
id: E,
|
|
17483
|
-
onAnimationStart:
|
|
17483
|
+
onAnimationStart: uq,
|
|
17484
17484
|
name: q,
|
|
17485
|
-
placeholder:
|
|
17486
|
-
readOnly:
|
|
17487
|
-
required:
|
|
17488
|
-
rows:
|
|
17489
|
-
value:
|
|
17490
|
-
onKeyDown:
|
|
17491
|
-
onKeyUp:
|
|
17492
|
-
type:
|
|
17493
|
-
...
|
|
17494
|
-
...!isHostComponent_default(
|
|
17495
|
-
as:
|
|
17485
|
+
placeholder: $,
|
|
17486
|
+
readOnly: IK,
|
|
17487
|
+
required: eq.required,
|
|
17488
|
+
rows: RK,
|
|
17489
|
+
value: KK,
|
|
17490
|
+
onKeyDown: PK,
|
|
17491
|
+
onKeyUp: FK,
|
|
17492
|
+
type: UK,
|
|
17493
|
+
...lq,
|
|
17494
|
+
...!isHostComponent_default(hq) && {
|
|
17495
|
+
as: cq,
|
|
17496
17496
|
ownerState: {
|
|
17497
|
-
...
|
|
17498
|
-
...
|
|
17497
|
+
...dq,
|
|
17498
|
+
...lq.ownerState
|
|
17499
17499
|
}
|
|
17500
17500
|
},
|
|
17501
|
-
ref:
|
|
17502
|
-
className: clsx_default(
|
|
17503
|
-
onBlur:
|
|
17504
|
-
onChange:
|
|
17505
|
-
onFocus:
|
|
17501
|
+
ref: XK,
|
|
17502
|
+
className: clsx_default(fq.input, lq.className, IK && "MuiInputBase-readOnly"),
|
|
17503
|
+
onBlur: aq,
|
|
17504
|
+
onChange: oq,
|
|
17505
|
+
onFocus: iq
|
|
17506
17506
|
})
|
|
17507
17507
|
}),
|
|
17508
17508
|
y,
|
|
17509
|
-
|
|
17510
|
-
|
|
17511
|
-
startAdornment:
|
|
17509
|
+
LK ? LK({
|
|
17510
|
+
...eq,
|
|
17511
|
+
startAdornment: HK
|
|
17512
17512
|
}) : null
|
|
17513
17513
|
]
|
|
17514
17514
|
})
|
|
@@ -18584,30 +18584,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18584
18584
|
M,
|
|
18585
18585
|
i,
|
|
18586
18586
|
a
|
|
18587
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
18588
|
-
|
|
18587
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), MK = useJsonViewerStore((e2) => e2.onChange), NK = useTextColor(), PK = useJsonViewerStore((e2) => e2.colorspace.base0C), FK = useJsonViewerStore((e2) => e2.colorspace.base0A), $ = useJsonViewerStore((e2) => e2.displayComma), IK = useJsonViewerStore((e2) => e2.quotesOnKeys), LK = useJsonViewerStore((e2) => e2.rootName), RK = U === t, zK = Number.isInteger(Number(A)), BK = useJsonViewerStore((e2) => e2.enableAdd), VK = useJsonViewerStore((e2) => e2.onAdd), HK = (0, import_react.useMemo)(() => !VK || a !== void 0 || BK === false || v === false ? false : typeof BK == "function" ? !!BK(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18588
|
+
VK,
|
|
18589
18589
|
a,
|
|
18590
18590
|
i,
|
|
18591
|
-
|
|
18591
|
+
BK,
|
|
18592
18592
|
v,
|
|
18593
18593
|
t
|
|
18594
|
-
]),
|
|
18595
|
-
|
|
18594
|
+
]), UK = useJsonViewerStore((e2) => e2.enableDelete), WK = useJsonViewerStore((e2) => e2.onDelete), GK = (0, import_react.useMemo)(() => !WK || a !== void 0 || RK || UK === false || v === false ? false : typeof UK == "function" ? !!UK(i, t) : UK, [
|
|
18595
|
+
WK,
|
|
18596
18596
|
a,
|
|
18597
|
-
|
|
18597
|
+
RK,
|
|
18598
18598
|
i,
|
|
18599
|
-
|
|
18599
|
+
UK,
|
|
18600
18600
|
v,
|
|
18601
18601
|
t
|
|
18602
|
-
]),
|
|
18603
|
-
|
|
18602
|
+
]), KK = useJsonViewerStore((e2) => e2.enableClipboard), { copy: qK, copied: JK } = useClipboard(), YK = useJsonViewerStore((e2) => e2.highlightUpdates), XK = (0, import_react.useMemo)(() => !YK || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
|
|
18603
|
+
YK,
|
|
18604
18604
|
n,
|
|
18605
18605
|
t
|
|
18606
|
-
]),
|
|
18606
|
+
]), ZK = (0, import_react.useRef)();
|
|
18607
18607
|
(0, import_react.useEffect)(() => {
|
|
18608
|
-
|
|
18608
|
+
ZK.current && XK && "animate" in ZK.current && ZK.current.animate([
|
|
18609
18609
|
{
|
|
18610
|
-
backgroundColor:
|
|
18610
|
+
backgroundColor: FK
|
|
18611
18611
|
},
|
|
18612
18612
|
{
|
|
18613
18613
|
backgroundColor: ""
|
|
@@ -18617,40 +18617,40 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18617
18617
|
easing: "ease-in"
|
|
18618
18618
|
});
|
|
18619
18619
|
}, [
|
|
18620
|
-
|
|
18621
|
-
|
|
18620
|
+
FK,
|
|
18621
|
+
XK,
|
|
18622
18622
|
n,
|
|
18623
18623
|
t
|
|
18624
18624
|
]);
|
|
18625
|
-
let
|
|
18625
|
+
let QK = (0, import_react.useCallback)((e2) => {
|
|
18626
18626
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18627
18627
|
}, [
|
|
18628
18628
|
h,
|
|
18629
18629
|
t
|
|
18630
|
-
]),
|
|
18630
|
+
]), $K = (0, import_react.useCallback)(() => {
|
|
18631
18631
|
Q(false), E("");
|
|
18632
18632
|
}, [
|
|
18633
18633
|
Q,
|
|
18634
18634
|
E
|
|
18635
|
-
]),
|
|
18635
|
+
]), eq = (0, import_react.useCallback)((e2) => {
|
|
18636
18636
|
if (Q(false), _) try {
|
|
18637
|
-
|
|
18637
|
+
MK(i, t, _(e2));
|
|
18638
18638
|
} catch {
|
|
18639
18639
|
}
|
|
18640
18640
|
}, [
|
|
18641
18641
|
Q,
|
|
18642
18642
|
_,
|
|
18643
|
-
|
|
18643
|
+
MK,
|
|
18644
18644
|
i,
|
|
18645
18645
|
t
|
|
18646
|
-
]),
|
|
18646
|
+
]), tq = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18647
18647
|
children: [
|
|
18648
18648
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18649
18649
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18650
18650
|
sx: {
|
|
18651
18651
|
fontSize: ".8rem"
|
|
18652
18652
|
},
|
|
18653
|
-
onClick:
|
|
18653
|
+
onClick: $K
|
|
18654
18654
|
})
|
|
18655
18655
|
}),
|
|
18656
18656
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18658,22 +18658,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18658
18658
|
sx: {
|
|
18659
18659
|
fontSize: ".8rem"
|
|
18660
18660
|
},
|
|
18661
|
-
onClick: () =>
|
|
18661
|
+
onClick: () => eq(w)
|
|
18662
18662
|
})
|
|
18663
18663
|
})
|
|
18664
18664
|
]
|
|
18665
18665
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18666
18666
|
children: [
|
|
18667
|
-
|
|
18667
|
+
KK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18668
18668
|
onClick: (e2) => {
|
|
18669
18669
|
e2.preventDefault();
|
|
18670
18670
|
try {
|
|
18671
|
-
|
|
18671
|
+
qK(i, t, copyString);
|
|
18672
18672
|
} catch (e3) {
|
|
18673
18673
|
console.error(e3);
|
|
18674
18674
|
}
|
|
18675
18675
|
},
|
|
18676
|
-
children:
|
|
18676
|
+
children: JK ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18677
18677
|
sx: {
|
|
18678
18678
|
fontSize: ".8rem"
|
|
18679
18679
|
}
|
|
@@ -18684,16 +18684,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18684
18684
|
})
|
|
18685
18685
|
}),
|
|
18686
18686
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18687
|
-
onClick:
|
|
18687
|
+
onClick: QK,
|
|
18688
18688
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18689
18689
|
sx: {
|
|
18690
18690
|
fontSize: ".8rem"
|
|
18691
18691
|
}
|
|
18692
18692
|
})
|
|
18693
18693
|
}),
|
|
18694
|
-
|
|
18694
|
+
HK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18695
18695
|
onClick: (e2) => {
|
|
18696
|
-
e2.preventDefault(),
|
|
18696
|
+
e2.preventDefault(), VK == null ? void 0 : VK(i);
|
|
18697
18697
|
},
|
|
18698
18698
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18699
18699
|
sx: {
|
|
@@ -18701,9 +18701,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18701
18701
|
}
|
|
18702
18702
|
})
|
|
18703
18703
|
}),
|
|
18704
|
-
|
|
18704
|
+
GK && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18705
18705
|
onClick: (e2) => {
|
|
18706
|
-
e2.preventDefault(),
|
|
18706
|
+
e2.preventDefault(), WK == null ? void 0 : WK(i, t);
|
|
18707
18707
|
},
|
|
18708
18708
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18709
18709
|
sx: {
|
|
@@ -18716,24 +18716,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18716
18716
|
f,
|
|
18717
18717
|
h,
|
|
18718
18718
|
_,
|
|
18719
|
+
JK,
|
|
18719
18720
|
qK,
|
|
18720
|
-
KK,
|
|
18721
18721
|
S,
|
|
18722
18722
|
J,
|
|
18723
|
+
KK,
|
|
18724
|
+
HK,
|
|
18723
18725
|
GK,
|
|
18724
|
-
VK,
|
|
18725
|
-
WK,
|
|
18726
18726
|
w,
|
|
18727
18727
|
i,
|
|
18728
18728
|
t,
|
|
18729
|
-
|
|
18730
|
-
|
|
18731
|
-
ZK,
|
|
18729
|
+
VK,
|
|
18730
|
+
WK,
|
|
18732
18731
|
QK,
|
|
18733
|
-
$K
|
|
18734
|
-
|
|
18732
|
+
$K,
|
|
18733
|
+
eq
|
|
18734
|
+
]), nq = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18735
18735
|
t
|
|
18736
|
-
]),
|
|
18736
|
+
]), rq = !nq && !!(c && d), iq = useJsonViewerStore((e2) => e2.keyRenderer), aq = (0, import_react.useMemo)(() => ({
|
|
18737
18737
|
path: i,
|
|
18738
18738
|
inspect: K,
|
|
18739
18739
|
setInspect: q,
|
|
@@ -18765,18 +18765,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18765
18765
|
className: "data-key",
|
|
18766
18766
|
sx: {
|
|
18767
18767
|
lineHeight: 1.5,
|
|
18768
|
-
color:
|
|
18768
|
+
color: NK,
|
|
18769
18769
|
letterSpacing: 0.5,
|
|
18770
18770
|
opacity: 0.8
|
|
18771
18771
|
},
|
|
18772
18772
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18773
|
-
e2.isDefaultPrevented() ||
|
|
18773
|
+
e2.isDefaultPrevented() || nq || q((e3) => !e3);
|
|
18774
18774
|
}, [
|
|
18775
|
-
|
|
18775
|
+
nq,
|
|
18776
18776
|
q
|
|
18777
18777
|
]),
|
|
18778
18778
|
children: [
|
|
18779
|
-
|
|
18779
|
+
rq ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18780
18780
|
className: "data-key-toggle-expanded",
|
|
18781
18781
|
sx: {
|
|
18782
18782
|
fontSize: ".8rem",
|
|
@@ -18794,27 +18794,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18794
18794
|
}
|
|
18795
18795
|
}) : null,
|
|
18796
18796
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18797
|
-
ref:
|
|
18797
|
+
ref: ZK,
|
|
18798
18798
|
className: "data-key-key",
|
|
18799
18799
|
component: "span",
|
|
18800
|
-
children:
|
|
18800
|
+
children: RK && O === 0 ? LK === false ? null : IK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18801
18801
|
children: [
|
|
18802
18802
|
'"',
|
|
18803
|
-
|
|
18803
|
+
LK,
|
|
18804
18804
|
'"'
|
|
18805
18805
|
]
|
|
18806
18806
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18807
|
-
children:
|
|
18808
|
-
}) :
|
|
18809
|
-
...
|
|
18810
|
-
}) : a === void 0 && (
|
|
18807
|
+
children: LK
|
|
18808
|
+
}) : iq.when(aq) ? (0, import_jsx_runtime.jsx)(iq, {
|
|
18809
|
+
...aq
|
|
18810
|
+
}) : a === void 0 && (zK ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18811
18811
|
component: "span",
|
|
18812
18812
|
style: {
|
|
18813
|
-
color:
|
|
18814
|
-
userSelect:
|
|
18813
|
+
color: PK,
|
|
18814
|
+
userSelect: zK ? "none" : "auto"
|
|
18815
18815
|
},
|
|
18816
18816
|
children: A
|
|
18817
|
-
}) :
|
|
18817
|
+
}) : IK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18818
18818
|
children: [
|
|
18819
18819
|
'"',
|
|
18820
18820
|
A,
|
|
@@ -18824,7 +18824,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18824
18824
|
children: A
|
|
18825
18825
|
}))
|
|
18826
18826
|
}),
|
|
18827
|
-
|
|
18827
|
+
RK ? LK !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18828
18828
|
className: "data-key-colon",
|
|
18829
18829
|
sx: {
|
|
18830
18830
|
mr: 0.5
|
|
@@ -18837,38 +18837,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18837
18837
|
".data-key-key:empty + &": {
|
|
18838
18838
|
display: "none"
|
|
18839
18839
|
},
|
|
18840
|
-
userSelect:
|
|
18840
|
+
userSelect: zK ? "none" : "auto"
|
|
18841
18841
|
},
|
|
18842
18842
|
children: ":"
|
|
18843
18843
|
}),
|
|
18844
18844
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
18845
|
-
...
|
|
18845
|
+
...aq
|
|
18846
18846
|
}),
|
|
18847
|
-
I &&
|
|
18847
|
+
I && rq && K && tq
|
|
18848
18848
|
]
|
|
18849
18849
|
}),
|
|
18850
18850
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
18851
18851
|
path: i,
|
|
18852
18852
|
value: w,
|
|
18853
18853
|
setValue: E,
|
|
18854
|
-
abortEditing:
|
|
18855
|
-
commitEditing:
|
|
18854
|
+
abortEditing: $K,
|
|
18855
|
+
commitEditing: eq
|
|
18856
18856
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
18857
|
-
...
|
|
18857
|
+
...aq
|
|
18858
18858
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18859
18859
|
component: "span",
|
|
18860
18860
|
className: "data-value-fallback",
|
|
18861
18861
|
children: `fallback: ${t}`
|
|
18862
18862
|
}),
|
|
18863
18863
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
18864
|
-
...
|
|
18864
|
+
...aq
|
|
18865
18865
|
}),
|
|
18866
|
-
!o &&
|
|
18866
|
+
!o && $ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18867
18867
|
children: ","
|
|
18868
18868
|
}),
|
|
18869
|
-
I &&
|
|
18870
|
-
I && !
|
|
18871
|
-
!I && J &&
|
|
18869
|
+
I && rq && !K && tq,
|
|
18870
|
+
I && !rq && tq,
|
|
18871
|
+
!I && J && tq
|
|
18872
18872
|
]
|
|
18873
18873
|
});
|
|
18874
18874
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -19078,7 +19078,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19078
19078
|
}, openPackageManager = (e) => {
|
|
19079
19079
|
e.openApplication("packages"), focusPackagesInput();
|
|
19080
19080
|
};
|
|
19081
|
-
var KEY
|
|
19081
|
+
var KEY = "marimo:ai:chatState:v5";
|
|
19082
19082
|
const aiCompletionCellAtom = atom(null);
|
|
19083
19083
|
atomWithStorage("marimo:ai:includeOtherCells", true, jotaiJsonStorage);
|
|
19084
19084
|
function removeEmptyChats(e) {
|
|
@@ -19093,7 +19093,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19093
19093
|
}
|
|
19094
19094
|
return t;
|
|
19095
19095
|
}
|
|
19096
|
-
const chatStateAtom = atomWithStorage(KEY
|
|
19096
|
+
const chatStateAtom = atomWithStorage(KEY, {
|
|
19097
19097
|
chats: /* @__PURE__ */ new Map(),
|
|
19098
19098
|
activeChatId: null
|
|
19099
19099
|
}, adaptForLocalStorage({
|
|
@@ -19411,7 +19411,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19411
19411
|
}
|
|
19412
19412
|
var import_compiler_runtime$52 = require_compiler_runtime();
|
|
19413
19413
|
const CellLink = (e) => {
|
|
19414
|
-
let t = (0, import_compiler_runtime$52.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$
|
|
19414
|
+
let t = (0, import_compiler_runtime$52.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$11, y;
|
|
19415
19415
|
t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
|
|
19416
19416
|
let S;
|
|
19417
19417
|
t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
|
|
@@ -19462,7 +19462,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19462
19462
|
o.classList.remove("focus-outline");
|
|
19463
19463
|
}, 2e3)), true);
|
|
19464
19464
|
}
|
|
19465
|
-
function _temp$
|
|
19465
|
+
function _temp$11(e) {
|
|
19466
19466
|
return e;
|
|
19467
19467
|
}
|
|
19468
19468
|
var import_compiler_runtime$51 = require_compiler_runtime();
|
|
@@ -19500,13 +19500,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19500
19500
|
}), t[9] = c, t[10] = s, t[11] = d) : d = t[11], d;
|
|
19501
19501
|
}, MangledSegments = (e) => {
|
|
19502
19502
|
let t = (0, import_compiler_runtime$51.c)(4), { segments: n } = e, i;
|
|
19503
|
-
t[0] === n ? i = t[1] : (i = n.map(_temp$
|
|
19503
|
+
t[0] === n ? i = t[1] : (i = n.map(_temp$10), t[0] = n, t[1] = i);
|
|
19504
19504
|
let a;
|
|
19505
19505
|
return t[2] === i ? a = t[3] : (a = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
19506
19506
|
children: i
|
|
19507
19507
|
}), t[2] = i, t[3] = a), a;
|
|
19508
19508
|
};
|
|
19509
|
-
function _temp$
|
|
19509
|
+
function _temp$10(e, t) {
|
|
19510
19510
|
return typeof e == "string" ? (0, import_jsx_runtime.jsx)("span", {
|
|
19511
19511
|
children: e
|
|
19512
19512
|
}, t) : (0, import_jsx_runtime.jsx)(MangledLocalChip, {
|
|
@@ -19730,15 +19730,57 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19730
19730
|
children: a
|
|
19731
19731
|
}), t[2] = a, t[3] = o), o;
|
|
19732
19732
|
};
|
|
19733
|
-
var import_compiler_runtime$49 = require_compiler_runtime(),
|
|
19733
|
+
var import_compiler_runtime$49 = require_compiler_runtime(), CollapsibleTraceback = (e) => {
|
|
19734
|
+
let t = (0, import_compiler_runtime$49.c)(16), { traceback: n } = e, [i, a] = (0, import_react.useState)(true), o;
|
|
19735
|
+
t[0] === i ? o = t[1] : (o = () => a(!i), t[0] = i, t[1] = o);
|
|
19736
|
+
let s = i ? "Collapse traceback" : "Expand traceback", c;
|
|
19737
|
+
t[2] === i ? c = t[3] : (c = i ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
19738
|
+
className: "h-3 w-3"
|
|
19739
|
+
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
19740
|
+
className: "h-3 w-3"
|
|
19741
|
+
}), t[2] = i, t[3] = c);
|
|
19742
|
+
let d;
|
|
19743
|
+
t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (0, import_jsx_runtime.jsx)("span", {
|
|
19744
|
+
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
19745
|
+
children: "Traceback"
|
|
19746
|
+
}), t[4] = d) : d = t[4];
|
|
19747
|
+
let f;
|
|
19748
|
+
t[5] !== i || t[6] !== o || t[7] !== s || t[8] !== c ? (f = (0, import_jsx_runtime.jsxs)("button", {
|
|
19749
|
+
type: "button",
|
|
19750
|
+
onClick: o,
|
|
19751
|
+
"aria-expanded": i,
|
|
19752
|
+
"aria-label": s,
|
|
19753
|
+
className: "flex items-center gap-1 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
19754
|
+
children: [
|
|
19755
|
+
c,
|
|
19756
|
+
d
|
|
19757
|
+
]
|
|
19758
|
+
}), t[5] = i, t[6] = o, t[7] = s, t[8] = c, t[9] = f) : f = t[9];
|
|
19759
|
+
let h;
|
|
19760
|
+
t[10] !== i || t[11] !== n ? (h = i && (0, import_jsx_runtime.jsx)("div", {
|
|
19761
|
+
className: "font-code text-sm mt-1 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
|
|
19762
|
+
children: renderHTML({
|
|
19763
|
+
html: n
|
|
19764
|
+
})
|
|
19765
|
+
}), t[10] = i, t[11] = n, t[12] = h) : h = t[12];
|
|
19766
|
+
let _;
|
|
19767
|
+
return t[13] !== f || t[14] !== h ? (_ = (0, import_jsx_runtime.jsxs)("div", {
|
|
19768
|
+
className: "mt-2",
|
|
19769
|
+
children: [
|
|
19770
|
+
f,
|
|
19771
|
+
h
|
|
19772
|
+
]
|
|
19773
|
+
}), t[13] = f, t[14] = h, t[15] = _) : _ = t[15], _;
|
|
19774
|
+
}, Tip = (e) => {
|
|
19734
19775
|
let t = (0, import_compiler_runtime$49.c)(10), n = e.title ?? "Tip", i;
|
|
19735
19776
|
t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
|
|
19736
|
-
className: "pt-2 pb-
|
|
19777
|
+
className: "pt-2 pb-0 font-normal",
|
|
19737
19778
|
children: n
|
|
19738
19779
|
}), t[0] = n, t[1] = i);
|
|
19739
19780
|
let a;
|
|
19740
19781
|
t[2] === e.children ? a = t[3] : (a = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
19741
19782
|
className: "mr-24 text-[0.84375rem]",
|
|
19783
|
+
wrapperClassName: "pt-0 pb-2",
|
|
19742
19784
|
children: e.children
|
|
19743
19785
|
}), t[2] = e.children, t[3] = a);
|
|
19744
19786
|
let o;
|
|
@@ -19759,32 +19801,33 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19759
19801
|
}), t[7] = e.className, t[8] = o, t[9] = s) : s = t[9], s;
|
|
19760
19802
|
};
|
|
19761
19803
|
const MarimoErrorOutput = (e) => {
|
|
19762
|
-
let t = (0, import_compiler_runtime$49.c)(
|
|
19763
|
-
if (n.some(_temp$
|
|
19764
|
-
else if (n.some(_temp2$7))
|
|
19765
|
-
else if (n.some(_temp3$4))
|
|
19766
|
-
else if (n.some(_temp4$4))
|
|
19767
|
-
else if (n.some(_temp5$2))
|
|
19804
|
+
let t = (0, import_compiler_runtime$49.c)(38), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = useAtomValue(resolvedMarimoConfigAtom).display.cell_output === "above", d = "This cell wasn't run because it has errors", f = "destructive", _ = "text-error", v = null;
|
|
19805
|
+
if (n.some(_temp$9)) d = "Interrupted";
|
|
19806
|
+
else if (n.some(_temp2$7)) d = "An internal error occurred";
|
|
19807
|
+
else if (n.some(_temp3$4)) d = "Ancestor prevented from running", f = "default", _ = "text-secondary-foreground";
|
|
19808
|
+
else if (n.some(_temp4$4)) d = "Ancestor stopped", f = "default", _ = "text-secondary-foreground";
|
|
19809
|
+
else if (n.some(_temp5$2)) d = "SQL error";
|
|
19810
|
+
else if (n.some(_temp6$2)) d = null, v = "Cell not run";
|
|
19768
19811
|
else {
|
|
19769
19812
|
let e2;
|
|
19770
|
-
t[0] === n ? e2 = t[1] : (e2 = n.find(
|
|
19813
|
+
t[0] === n ? e2 = t[1] : (e2 = n.find(_temp7$1), t[0] = n, t[1] = e2);
|
|
19771
19814
|
let i2 = e2;
|
|
19772
|
-
i2 && "exception_type" in i2 && (
|
|
19815
|
+
i2 && "exception_type" in i2 && (d = i2.exception_type);
|
|
19773
19816
|
}
|
|
19774
|
-
let
|
|
19775
|
-
if (t[2] !==
|
|
19776
|
-
let e2 = n.filter(
|
|
19777
|
-
t[
|
|
19817
|
+
let y, S, w, E, O, A;
|
|
19818
|
+
if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
|
|
19819
|
+
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), MK = n.filter(_temp15), NK = n.filter(_temp16), PK = n.filter(_temp17), FK = n.filter(_temp18), $;
|
|
19820
|
+
t[17] === s ? $ = t[18] : ($ = () => {
|
|
19778
19821
|
s.openApplication("scratchpad");
|
|
19779
|
-
}, t[
|
|
19780
|
-
let
|
|
19822
|
+
}, t[17] = s, t[18] = $);
|
|
19823
|
+
let IK = $, RK = () => {
|
|
19781
19824
|
let t2 = [];
|
|
19782
|
-
if (
|
|
19783
|
-
let e3 =
|
|
19825
|
+
if (NK.length > 0 || PK.length > 0) {
|
|
19826
|
+
let e3 = NK.some(_temp19), n2 = !e3 && NK.some(_temp20);
|
|
19784
19827
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
19785
19828
|
children: [
|
|
19786
|
-
|
|
19787
|
-
|
|
19829
|
+
NK.map(_temp21),
|
|
19830
|
+
PK.map(_temp22),
|
|
19788
19831
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
19789
19832
|
size: "xs",
|
|
19790
19833
|
variant: "outline",
|
|
@@ -19815,8 +19858,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19815
19858
|
}),
|
|
19816
19859
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
19817
19860
|
errors: [
|
|
19818
|
-
...
|
|
19819
|
-
|
|
19861
|
+
...NK,
|
|
19862
|
+
...PK
|
|
19820
19863
|
],
|
|
19821
19864
|
cellId: i
|
|
19822
19865
|
})
|
|
@@ -19831,7 +19874,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19831
19874
|
}),
|
|
19832
19875
|
(0, import_jsx_runtime.jsx)("ul", {
|
|
19833
19876
|
className: "list-disc",
|
|
19834
|
-
children: e2.flatMap(
|
|
19877
|
+
children: e2.flatMap(_temp23)
|
|
19835
19878
|
}),
|
|
19836
19879
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
19837
19880
|
errors: e2,
|
|
@@ -19869,7 +19912,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19869
19912
|
]
|
|
19870
19913
|
})
|
|
19871
19914
|
]
|
|
19872
|
-
}, "setup-refs")),
|
|
19915
|
+
}, "setup-refs")), M2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
19873
19916
|
children: [
|
|
19874
19917
|
(0, import_jsx_runtime.jsx)("p", {
|
|
19875
19918
|
className: "text-muted-foreground font-medium",
|
|
@@ -19877,10 +19920,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19877
19920
|
}),
|
|
19878
19921
|
(0, import_jsx_runtime.jsx)("ul", {
|
|
19879
19922
|
className: "list-disc",
|
|
19880
|
-
children:
|
|
19923
|
+
children: M2.flatMap(_temp24)
|
|
19881
19924
|
}),
|
|
19882
19925
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
19883
|
-
errors:
|
|
19926
|
+
errors: M2,
|
|
19884
19927
|
cellId: i
|
|
19885
19928
|
}),
|
|
19886
19929
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -19915,17 +19958,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19915
19958
|
]
|
|
19916
19959
|
})
|
|
19917
19960
|
]
|
|
19918
|
-
}, "cycle")),
|
|
19919
|
-
let e3 =
|
|
19961
|
+
}, "cycle")), I2.length > 0) {
|
|
19962
|
+
let e3 = I2[0].name;
|
|
19920
19963
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
19921
19964
|
children: [
|
|
19922
19965
|
(0, import_jsx_runtime.jsx)("p", {
|
|
19923
19966
|
className: "text-muted-foreground font-medium",
|
|
19924
19967
|
children: "This cell redefines variables from other cells."
|
|
19925
19968
|
}),
|
|
19926
|
-
|
|
19969
|
+
I2.map(_temp26),
|
|
19927
19970
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
19928
|
-
errors:
|
|
19971
|
+
errors: I2,
|
|
19929
19972
|
cellId: i
|
|
19930
19973
|
}),
|
|
19931
19974
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -19977,7 +20020,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19977
20020
|
size: "xs",
|
|
19978
20021
|
variant: "link",
|
|
19979
20022
|
className: "my-2 font-normal mx-0 px-0",
|
|
19980
|
-
onClick:
|
|
20023
|
+
onClick: IK,
|
|
19981
20024
|
children: [
|
|
19982
20025
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
19983
20026
|
className: "h-3"
|
|
@@ -19996,11 +20039,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19996
20039
|
]
|
|
19997
20040
|
}, "multiple-defs"));
|
|
19998
20041
|
}
|
|
19999
|
-
return
|
|
20042
|
+
return z.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20000
20043
|
children: [
|
|
20001
|
-
|
|
20044
|
+
z.map(_temp27),
|
|
20002
20045
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20003
|
-
errors:
|
|
20046
|
+
errors: z,
|
|
20004
20047
|
cellId: i
|
|
20005
20048
|
}),
|
|
20006
20049
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20038,96 +20081,200 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20038
20081
|
]
|
|
20039
20082
|
})
|
|
20040
20083
|
]
|
|
20041
|
-
}, "import-star")),
|
|
20084
|
+
}, "import-star")), U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20042
20085
|
children: [
|
|
20043
|
-
|
|
20086
|
+
U.map(_temp28),
|
|
20044
20087
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20045
|
-
errors:
|
|
20088
|
+
errors: U,
|
|
20046
20089
|
cellId: i
|
|
20047
20090
|
})
|
|
20048
20091
|
]
|
|
20049
|
-
}, "interruption")),
|
|
20092
|
+
}, "interruption")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
|
|
20050
20093
|
children: [
|
|
20051
|
-
|
|
20052
|
-
|
|
20094
|
+
K.map((e3, t3) => e3.exception_type === "NameError" && e3.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
|
|
20095
|
+
className: "my-2",
|
|
20096
|
+
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20097
|
+
children: [
|
|
20098
|
+
(0, import_jsx_runtime.jsx)("p", {
|
|
20099
|
+
className: "text-muted-foreground",
|
|
20100
|
+
children: "name 'mo' is not defined."
|
|
20101
|
+
}),
|
|
20102
|
+
(0, import_jsx_runtime.jsxs)("p", {
|
|
20103
|
+
className: "text-muted-foreground mt-2",
|
|
20104
|
+
children: [
|
|
20105
|
+
"The marimo module (imported as",
|
|
20106
|
+
" ",
|
|
20107
|
+
(0, import_jsx_runtime.jsx)(Kbd, {
|
|
20108
|
+
className: "inline",
|
|
20109
|
+
children: "mo"
|
|
20110
|
+
}),
|
|
20111
|
+
") is required for Markdown, SQL, and UI elements."
|
|
20112
|
+
]
|
|
20113
|
+
})
|
|
20114
|
+
]
|
|
20115
|
+
})
|
|
20116
|
+
}, `exception-${t3}`) : e3.exception_type === "NameError" && e3.msg.startsWith("name '_") ? (0, import_jsx_runtime.jsx)("li", {
|
|
20117
|
+
className: "my-2",
|
|
20118
|
+
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20119
|
+
children: [
|
|
20120
|
+
(0, import_jsx_runtime.jsx)("p", {
|
|
20121
|
+
className: "text-muted-foreground",
|
|
20122
|
+
children: (0, import_jsx_runtime.jsx)(MangledSegments, {
|
|
20123
|
+
segments: splitMangledLocals(e3.msg)
|
|
20124
|
+
})
|
|
20125
|
+
}),
|
|
20126
|
+
(0, import_jsx_runtime.jsxs)("p", {
|
|
20127
|
+
className: "text-muted-foreground mt-2",
|
|
20128
|
+
children: [
|
|
20129
|
+
"Variables prefixed with an underscore are local to a cell",
|
|
20130
|
+
" ",
|
|
20131
|
+
"(",
|
|
20132
|
+
(0, import_jsx_runtime.jsxs)(ExternalLink$1, {
|
|
20133
|
+
href: "https://links.marimo.app/local-variables",
|
|
20134
|
+
children: [
|
|
20135
|
+
"docs",
|
|
20136
|
+
" ",
|
|
20137
|
+
(0, import_jsx_runtime.jsx)(SquareArrowOutUpRight, {
|
|
20138
|
+
size: "0.75rem",
|
|
20139
|
+
className: "inline"
|
|
20140
|
+
})
|
|
20141
|
+
]
|
|
20142
|
+
}),
|
|
20143
|
+
")."
|
|
20144
|
+
]
|
|
20145
|
+
}),
|
|
20146
|
+
c && (0, import_jsx_runtime.jsx)("div", {
|
|
20147
|
+
className: "text-muted-foreground mt-2",
|
|
20148
|
+
children: "See the console area for a traceback."
|
|
20149
|
+
})
|
|
20150
|
+
]
|
|
20151
|
+
})
|
|
20152
|
+
}, `exception-${t3}`) : (0, import_jsx_runtime.jsx)("li", {
|
|
20153
|
+
className: "my-2",
|
|
20154
|
+
children: e3.raising_cell == null ? (0, import_jsx_runtime.jsxs)("div", {
|
|
20155
|
+
children: [
|
|
20156
|
+
(0, import_jsx_runtime.jsx)("p", {
|
|
20157
|
+
className: "text-muted-foreground",
|
|
20158
|
+
children: processTextForUrls(e3.msg, `exception-${t3}`)
|
|
20159
|
+
}),
|
|
20160
|
+
"traceback" in e3 && e3.traceback ? (0, import_jsx_runtime.jsx)(CollapsibleTraceback, {
|
|
20161
|
+
traceback: e3.traceback
|
|
20162
|
+
}) : c && (0, import_jsx_runtime.jsx)("div", {
|
|
20163
|
+
className: "text-muted-foreground mt-2",
|
|
20164
|
+
children: "See the console area for a traceback."
|
|
20165
|
+
})
|
|
20166
|
+
]
|
|
20167
|
+
}) : (0, import_jsx_runtime.jsxs)("div", {
|
|
20168
|
+
children: [
|
|
20169
|
+
processTextForUrls(e3.msg, `exception-${t3}`),
|
|
20170
|
+
(0, import_jsx_runtime.jsx)(CellLinkError, {
|
|
20171
|
+
cellId: e3.raising_cell
|
|
20172
|
+
}),
|
|
20173
|
+
"traceback" in e3 && e3.traceback && (0, import_jsx_runtime.jsx)(CollapsibleTraceback, {
|
|
20174
|
+
traceback: e3.traceback
|
|
20175
|
+
})
|
|
20176
|
+
]
|
|
20177
|
+
})
|
|
20178
|
+
}, `exception-${t3}`)),
|
|
20179
|
+
K.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
|
|
20053
20180
|
children: "Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."
|
|
20054
20181
|
}),
|
|
20055
20182
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20056
|
-
errors:
|
|
20183
|
+
errors: K,
|
|
20057
20184
|
cellId: i
|
|
20058
20185
|
})
|
|
20059
20186
|
]
|
|
20060
|
-
}, "exception")),
|
|
20187
|
+
}, "exception")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
|
|
20061
20188
|
children: [
|
|
20062
|
-
|
|
20189
|
+
q.map(_temp30),
|
|
20063
20190
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20064
|
-
errors:
|
|
20191
|
+
errors: q,
|
|
20065
20192
|
cellId: i
|
|
20066
20193
|
}),
|
|
20067
20194
|
(0, import_jsx_runtime.jsx)(Tip, {
|
|
20068
|
-
children:
|
|
20195
|
+
children: q.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
|
|
20069
20196
|
})
|
|
20070
20197
|
]
|
|
20071
|
-
}, "strict-exception")),
|
|
20198
|
+
}, "strict-exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20072
20199
|
children: [
|
|
20073
|
-
|
|
20200
|
+
J.map(_temp32),
|
|
20074
20201
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20075
|
-
errors:
|
|
20202
|
+
errors: J,
|
|
20076
20203
|
cellId: i
|
|
20077
20204
|
})
|
|
20078
20205
|
]
|
|
20079
|
-
}, "internal")),
|
|
20206
|
+
}, "internal")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20080
20207
|
children: [
|
|
20081
|
-
|
|
20208
|
+
Q.map(_temp33),
|
|
20082
20209
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20083
|
-
errors:
|
|
20210
|
+
errors: Q,
|
|
20084
20211
|
cellId: i
|
|
20085
20212
|
})
|
|
20086
20213
|
]
|
|
20087
|
-
}, "ancestor-prevented")),
|
|
20214
|
+
}, "ancestor-prevented")), MK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20088
20215
|
children: [
|
|
20089
|
-
|
|
20216
|
+
MK.map(_temp34),
|
|
20090
20217
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20091
|
-
errors:
|
|
20218
|
+
errors: MK,
|
|
20092
20219
|
cellId: i
|
|
20093
20220
|
})
|
|
20094
20221
|
]
|
|
20095
|
-
}, "ancestor-stopped")),
|
|
20222
|
+
}, "ancestor-stopped")), FK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20096
20223
|
children: [
|
|
20097
|
-
|
|
20224
|
+
FK.map(_temp35),
|
|
20098
20225
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20099
|
-
errors:
|
|
20226
|
+
errors: FK,
|
|
20100
20227
|
cellId: i,
|
|
20101
20228
|
className: "mt-2.5"
|
|
20102
20229
|
})
|
|
20103
20230
|
]
|
|
20104
20231
|
}, "sql-errors")), t2;
|
|
20105
|
-
},
|
|
20106
|
-
t[
|
|
20107
|
-
className:
|
|
20108
|
-
children:
|
|
20109
|
-
|
|
20110
|
-
|
|
20111
|
-
|
|
20112
|
-
|
|
20113
|
-
|
|
20114
|
-
|
|
20115
|
-
|
|
20116
|
-
|
|
20117
|
-
|
|
20118
|
-
})
|
|
20119
|
-
|
|
20120
|
-
|
|
20121
|
-
|
|
20122
|
-
|
|
20123
|
-
|
|
20232
|
+
}, zK;
|
|
20233
|
+
t[19] === v ? zK = t[20] : (zK = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20234
|
+
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20235
|
+
children: [
|
|
20236
|
+
v,
|
|
20237
|
+
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
20238
|
+
content: "marimo didn't run this cell because it detected an error.",
|
|
20239
|
+
delayDuration: 200,
|
|
20240
|
+
children: (0, import_jsx_runtime.jsx)(Info, {
|
|
20241
|
+
className: "size-3 cursor-help"
|
|
20242
|
+
})
|
|
20243
|
+
})
|
|
20244
|
+
]
|
|
20245
|
+
}), t[19] = v, t[20] = zK);
|
|
20246
|
+
let BK;
|
|
20247
|
+
t[21] !== _ || t[22] !== d ? (BK = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20248
|
+
className: `font-code font-medium ${_}`,
|
|
20249
|
+
children: d
|
|
20250
|
+
}), t[21] = _, t[22] = d, t[23] = BK) : BK = t[23];
|
|
20251
|
+
let VK;
|
|
20252
|
+
t[24] !== zK || t[25] !== BK ? (VK = (0, import_jsx_runtime.jsxs)("div", {
|
|
20253
|
+
className: "space-y-0.5",
|
|
20254
|
+
children: [
|
|
20255
|
+
zK,
|
|
20256
|
+
BK
|
|
20257
|
+
]
|
|
20258
|
+
}), t[24] = zK, t[25] = BK, t[26] = VK) : VK = t[26];
|
|
20259
|
+
let HK = VK;
|
|
20260
|
+
y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = HK, S = "flex flex-col gap-4", w = RK(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
|
|
20261
|
+
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20262
|
+
let M;
|
|
20263
|
+
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
20264
|
+
className: S,
|
|
20265
|
+
children: w
|
|
20266
|
+
}), t[29] = S, t[30] = w, t[31] = M) : M = t[31];
|
|
20267
|
+
let I;
|
|
20268
|
+
return t[32] !== y || t[33] !== E || t[34] !== O || t[35] !== A || t[36] !== M ? (I = (0, import_jsx_runtime.jsxs)(y, {
|
|
20269
|
+
variant: E,
|
|
20270
|
+
className: O,
|
|
20124
20271
|
children: [
|
|
20125
|
-
|
|
20126
|
-
|
|
20272
|
+
A,
|
|
20273
|
+
M
|
|
20127
20274
|
]
|
|
20128
|
-
}), t[
|
|
20275
|
+
}), t[32] = y, t[33] = E, t[34] = O, t[35] = A, t[36] = M, t[37] = I) : I = t[37], I;
|
|
20129
20276
|
};
|
|
20130
|
-
function _temp$
|
|
20277
|
+
function _temp$9(e) {
|
|
20131
20278
|
return e.type === "interruption";
|
|
20132
20279
|
}
|
|
20133
20280
|
function _temp2$7(e) {
|
|
@@ -20143,64 +20290,67 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20143
20290
|
return e.type === "sql-error";
|
|
20144
20291
|
}
|
|
20145
20292
|
function _temp6$2(e) {
|
|
20146
|
-
return e.type === "
|
|
20293
|
+
return e.type === "multiple-defs" || e.type === "cycle" || e.type === "setup-refs" || e.type === "import-star";
|
|
20147
20294
|
}
|
|
20148
20295
|
function _temp7$1(e) {
|
|
20149
|
-
return e.type === "
|
|
20296
|
+
return e.type === "exception";
|
|
20150
20297
|
}
|
|
20151
20298
|
function _temp8(e) {
|
|
20152
|
-
return e.type === "
|
|
20299
|
+
return e.type === "setup-refs";
|
|
20153
20300
|
}
|
|
20154
20301
|
function _temp9(e) {
|
|
20155
|
-
return e.type === "
|
|
20302
|
+
return e.type === "cycle";
|
|
20156
20303
|
}
|
|
20157
20304
|
function _temp0(e) {
|
|
20158
|
-
return e.type === "
|
|
20305
|
+
return e.type === "multiple-defs";
|
|
20159
20306
|
}
|
|
20160
20307
|
function _temp1(e) {
|
|
20161
|
-
return e.type === "
|
|
20308
|
+
return e.type === "import-star";
|
|
20162
20309
|
}
|
|
20163
20310
|
function _temp10(e) {
|
|
20164
|
-
return e.type === "
|
|
20311
|
+
return e.type === "interruption";
|
|
20165
20312
|
}
|
|
20166
20313
|
function _temp11(e) {
|
|
20167
|
-
return e.type === "
|
|
20314
|
+
return e.type === "exception";
|
|
20168
20315
|
}
|
|
20169
20316
|
function _temp12(e) {
|
|
20170
|
-
return e.type === "
|
|
20317
|
+
return e.type === "strict-exception";
|
|
20171
20318
|
}
|
|
20172
20319
|
function _temp13(e) {
|
|
20173
|
-
return e.type === "
|
|
20320
|
+
return e.type === "internal";
|
|
20174
20321
|
}
|
|
20175
20322
|
function _temp14(e) {
|
|
20176
|
-
return e.type === "ancestor-
|
|
20323
|
+
return e.type === "ancestor-prevented";
|
|
20177
20324
|
}
|
|
20178
20325
|
function _temp15(e) {
|
|
20179
|
-
return e.type === "
|
|
20326
|
+
return e.type === "ancestor-stopped";
|
|
20180
20327
|
}
|
|
20181
20328
|
function _temp16(e) {
|
|
20182
|
-
return e.type === "
|
|
20329
|
+
return e.type === "syntax";
|
|
20183
20330
|
}
|
|
20184
20331
|
function _temp17(e) {
|
|
20185
|
-
return e.type === "
|
|
20332
|
+
return e.type === "unknown";
|
|
20186
20333
|
}
|
|
20187
20334
|
function _temp18(e) {
|
|
20188
|
-
return e.
|
|
20335
|
+
return e.type === "sql-error";
|
|
20189
20336
|
}
|
|
20190
20337
|
function _temp19(e) {
|
|
20338
|
+
return e.msg.includes("!pip");
|
|
20339
|
+
}
|
|
20340
|
+
function _temp20(e) {
|
|
20191
20341
|
return e.msg.includes("use os.subprocess");
|
|
20192
20342
|
}
|
|
20193
|
-
function
|
|
20343
|
+
function _temp21(e, t) {
|
|
20194
20344
|
return (0, import_jsx_runtime.jsx)("pre", {
|
|
20195
20345
|
children: processTextForUrls(e.msg, `syntax-${t}`)
|
|
20196
20346
|
}, `syntax-${t}`);
|
|
20197
20347
|
}
|
|
20198
|
-
function
|
|
20348
|
+
function _temp22(e, t) {
|
|
20199
20349
|
return (0, import_jsx_runtime.jsx)("pre", {
|
|
20200
20350
|
children: processTextForUrls(e.msg, `unknown-${t}`)
|
|
20201
20351
|
}, `unknown-${t}`);
|
|
20202
20352
|
}
|
|
20203
|
-
function
|
|
20353
|
+
function _temp23(e, t) {
|
|
20204
20354
|
return e.edges_with_vars.map((e2, n) => (0, import_jsx_runtime.jsxs)("li", {
|
|
20205
20355
|
className: "my-0.5 ml-8 text-muted-foreground/40",
|
|
20206
20356
|
children: [
|
|
@@ -20218,7 +20368,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20218
20368
|
]
|
|
20219
20369
|
}, `setup-refs-${t}-${n}`));
|
|
20220
20370
|
}
|
|
20221
|
-
function
|
|
20371
|
+
function _temp24(e, t) {
|
|
20222
20372
|
return e.edges_with_vars.map((e2, n) => (0, import_jsx_runtime.jsxs)("li", {
|
|
20223
20373
|
className: "my-0.5 ml-8 text-muted-foreground/40",
|
|
20224
20374
|
children: [
|
|
@@ -20239,7 +20389,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20239
20389
|
]
|
|
20240
20390
|
}, `cycle-${t}-${n}`));
|
|
20241
20391
|
}
|
|
20242
|
-
function
|
|
20392
|
+
function _temp25(e, t) {
|
|
20243
20393
|
return (0, import_jsx_runtime.jsx)("li", {
|
|
20244
20394
|
className: "my-0.5 ml-8 text-muted-foreground/40",
|
|
20245
20395
|
children: (0, import_jsx_runtime.jsx)(CellLinkError, {
|
|
@@ -20247,7 +20397,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20247
20397
|
})
|
|
20248
20398
|
}, `cell-${t}`);
|
|
20249
20399
|
}
|
|
20250
|
-
function
|
|
20400
|
+
function _temp26(e, t) {
|
|
20251
20401
|
return (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
20252
20402
|
children: [
|
|
20253
20403
|
(0, import_jsx_runtime.jsx)("p", {
|
|
@@ -20256,115 +20406,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20256
20406
|
}),
|
|
20257
20407
|
(0, import_jsx_runtime.jsx)("ul", {
|
|
20258
20408
|
className: "list-disc",
|
|
20259
|
-
children: e.cells.map(
|
|
20409
|
+
children: e.cells.map(_temp25)
|
|
20260
20410
|
})
|
|
20261
20411
|
]
|
|
20262
20412
|
}, `multiple-defs-${t}`);
|
|
20263
20413
|
}
|
|
20264
|
-
function
|
|
20414
|
+
function _temp27(e, t) {
|
|
20265
20415
|
return (0, import_jsx_runtime.jsx)("p", {
|
|
20266
20416
|
className: "text-muted-foreground",
|
|
20267
20417
|
children: e.msg
|
|
20268
20418
|
}, `import-star-${t}`);
|
|
20269
20419
|
}
|
|
20270
|
-
function
|
|
20420
|
+
function _temp28(e, t) {
|
|
20271
20421
|
return (0, import_jsx_runtime.jsx)("p", {
|
|
20272
20422
|
children: "This cell was interrupted and needs to be re-run."
|
|
20273
20423
|
}, `interruption-${t}`);
|
|
20274
20424
|
}
|
|
20275
|
-
function _temp28(e, t) {
|
|
20276
|
-
return e.exception_type === "NameError" && e.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
|
|
20277
|
-
className: "my-2",
|
|
20278
|
-
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20279
|
-
children: [
|
|
20280
|
-
(0, import_jsx_runtime.jsx)("p", {
|
|
20281
|
-
className: "text-muted-foreground",
|
|
20282
|
-
children: "name 'mo' is not defined."
|
|
20283
|
-
}),
|
|
20284
|
-
(0, import_jsx_runtime.jsxs)("p", {
|
|
20285
|
-
className: "text-muted-foreground mt-2",
|
|
20286
|
-
children: [
|
|
20287
|
-
"The marimo module (imported as",
|
|
20288
|
-
" ",
|
|
20289
|
-
(0, import_jsx_runtime.jsx)(Kbd, {
|
|
20290
|
-
className: "inline",
|
|
20291
|
-
children: "mo"
|
|
20292
|
-
}),
|
|
20293
|
-
") is required for Markdown, SQL, and UI elements."
|
|
20294
|
-
]
|
|
20295
|
-
})
|
|
20296
|
-
]
|
|
20297
|
-
})
|
|
20298
|
-
}, `exception-${t}`) : e.exception_type === "NameError" && e.msg.startsWith("name '_") ? (0, import_jsx_runtime.jsx)("li", {
|
|
20299
|
-
className: "my-2",
|
|
20300
|
-
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20301
|
-
children: [
|
|
20302
|
-
(0, import_jsx_runtime.jsx)("p", {
|
|
20303
|
-
className: "text-muted-foreground",
|
|
20304
|
-
children: (0, import_jsx_runtime.jsx)(MangledSegments, {
|
|
20305
|
-
segments: splitMangledLocals(e.msg)
|
|
20306
|
-
})
|
|
20307
|
-
}),
|
|
20308
|
-
(0, import_jsx_runtime.jsxs)("p", {
|
|
20309
|
-
className: "text-muted-foreground mt-2",
|
|
20310
|
-
children: [
|
|
20311
|
-
"Variables prefixed with an underscore are local to a cell",
|
|
20312
|
-
" ",
|
|
20313
|
-
"(",
|
|
20314
|
-
(0, import_jsx_runtime.jsxs)(ExternalLink$1, {
|
|
20315
|
-
href: "https://links.marimo.app/local-variables",
|
|
20316
|
-
children: [
|
|
20317
|
-
"docs",
|
|
20318
|
-
" ",
|
|
20319
|
-
(0, import_jsx_runtime.jsx)(SquareArrowOutUpRight, {
|
|
20320
|
-
size: "0.75rem",
|
|
20321
|
-
className: "inline"
|
|
20322
|
-
})
|
|
20323
|
-
]
|
|
20324
|
-
}),
|
|
20325
|
-
")."
|
|
20326
|
-
]
|
|
20327
|
-
}),
|
|
20328
|
-
(0, import_jsx_runtime.jsx)("div", {
|
|
20329
|
-
className: "text-muted-foreground mt-2",
|
|
20330
|
-
children: "See the console area for a traceback."
|
|
20331
|
-
})
|
|
20332
|
-
]
|
|
20333
|
-
})
|
|
20334
|
-
}, `exception-${t}`) : (0, import_jsx_runtime.jsx)("li", {
|
|
20335
|
-
className: "my-2",
|
|
20336
|
-
children: e.raising_cell == null ? (0, import_jsx_runtime.jsxs)("div", {
|
|
20337
|
-
children: [
|
|
20338
|
-
(0, import_jsx_runtime.jsx)("p", {
|
|
20339
|
-
className: "text-muted-foreground",
|
|
20340
|
-
children: processTextForUrls(e.msg, `exception-${t}`)
|
|
20341
|
-
}),
|
|
20342
|
-
"traceback" in e && e.traceback ? (0, import_jsx_runtime.jsx)("div", {
|
|
20343
|
-
className: "font-code text-sm mt-2 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
|
|
20344
|
-
children: renderHTML({
|
|
20345
|
-
html: e.traceback
|
|
20346
|
-
})
|
|
20347
|
-
}) : (0, import_jsx_runtime.jsx)("div", {
|
|
20348
|
-
className: "text-muted-foreground mt-2",
|
|
20349
|
-
children: "See the console area for a traceback."
|
|
20350
|
-
})
|
|
20351
|
-
]
|
|
20352
|
-
}) : (0, import_jsx_runtime.jsxs)("div", {
|
|
20353
|
-
children: [
|
|
20354
|
-
processTextForUrls(e.msg, `exception-${t}`),
|
|
20355
|
-
(0, import_jsx_runtime.jsx)(CellLinkError, {
|
|
20356
|
-
cellId: e.raising_cell
|
|
20357
|
-
}),
|
|
20358
|
-
"traceback" in e && e.traceback && (0, import_jsx_runtime.jsx)("div", {
|
|
20359
|
-
className: "font-code text-sm mt-2 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
|
|
20360
|
-
children: renderHTML({
|
|
20361
|
-
html: e.traceback
|
|
20362
|
-
})
|
|
20363
|
-
})
|
|
20364
|
-
]
|
|
20365
|
-
})
|
|
20366
|
-
}, `exception-${t}`);
|
|
20367
|
-
}
|
|
20368
20425
|
function _temp29(e) {
|
|
20369
20426
|
return e.raising_cell != null;
|
|
20370
20427
|
}
|
|
@@ -26132,7 +26189,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26132
26189
|
function PanelWithForwardedRef({ children: e, className: t = "", collapsedSize: n, collapsible: i, defaultSize: a, forwardedRef: o, id: s, maxSize: c, minSize: d, onCollapse: f, onExpand: h, onResize: _, order: v, style: y, tagName: S = "div", ...w }) {
|
|
26133
26190
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26134
26191
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26135
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
26192
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, MK = useUniqueId(s), NK = (0, import_react.useRef)({
|
|
26136
26193
|
callbacks: {
|
|
26137
26194
|
onCollapse: f,
|
|
26138
26195
|
onExpand: h,
|
|
@@ -26145,72 +26202,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26145
26202
|
maxSize: c,
|
|
26146
26203
|
minSize: d
|
|
26147
26204
|
},
|
|
26148
|
-
id:
|
|
26205
|
+
id: MK,
|
|
26149
26206
|
idIsFromProps: s !== void 0,
|
|
26150
26207
|
order: v
|
|
26151
26208
|
});
|
|
26152
26209
|
(0, import_react.useRef)({
|
|
26153
26210
|
didLogMissingDefaultSizeWarning: false
|
|
26154
26211
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26155
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26212
|
+
let { callbacks: e2, constraints: t2 } = NK.current, o2 = {
|
|
26156
26213
|
...t2
|
|
26157
26214
|
};
|
|
26158
|
-
|
|
26215
|
+
NK.current.id = MK, NK.current.idIsFromProps = s !== void 0, NK.current.order = v, e2.onCollapse = f, e2.onExpand = h, e2.onResize = _, t2.collapsedSize = n, t2.collapsible = i, t2.defaultSize = a, t2.maxSize = c, t2.minSize = d, (o2.collapsedSize !== t2.collapsedSize || o2.collapsible !== t2.collapsible || o2.maxSize !== t2.maxSize || o2.minSize !== t2.minSize) && K(NK.current, o2);
|
|
26159
26216
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26160
|
-
let e2 =
|
|
26217
|
+
let e2 = NK.current;
|
|
26161
26218
|
return q(e2), () => {
|
|
26162
26219
|
Q(e2);
|
|
26163
26220
|
};
|
|
26164
26221
|
}, [
|
|
26165
26222
|
v,
|
|
26166
|
-
|
|
26223
|
+
MK,
|
|
26167
26224
|
q,
|
|
26168
26225
|
Q
|
|
26169
26226
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26170
26227
|
collapse: () => {
|
|
26171
|
-
O(
|
|
26228
|
+
O(NK.current);
|
|
26172
26229
|
},
|
|
26173
26230
|
expand: (e2) => {
|
|
26174
|
-
A(
|
|
26231
|
+
A(NK.current, e2);
|
|
26175
26232
|
},
|
|
26176
26233
|
getId() {
|
|
26177
|
-
return
|
|
26234
|
+
return MK;
|
|
26178
26235
|
},
|
|
26179
26236
|
getSize() {
|
|
26180
|
-
return M(
|
|
26237
|
+
return M(NK.current);
|
|
26181
26238
|
},
|
|
26182
26239
|
isCollapsed() {
|
|
26183
|
-
return U(
|
|
26240
|
+
return U(NK.current);
|
|
26184
26241
|
},
|
|
26185
26242
|
isExpanded() {
|
|
26186
|
-
return !U(
|
|
26243
|
+
return !U(NK.current);
|
|
26187
26244
|
},
|
|
26188
26245
|
resize: (e2) => {
|
|
26189
|
-
J(
|
|
26246
|
+
J(NK.current, e2);
|
|
26190
26247
|
}
|
|
26191
26248
|
}), [
|
|
26192
26249
|
O,
|
|
26193
26250
|
A,
|
|
26194
26251
|
M,
|
|
26195
26252
|
U,
|
|
26196
|
-
|
|
26253
|
+
MK,
|
|
26197
26254
|
J
|
|
26198
26255
|
]);
|
|
26199
|
-
let
|
|
26256
|
+
let PK = I(NK.current, a);
|
|
26200
26257
|
return (0, import_react.createElement)(S, {
|
|
26201
26258
|
...w,
|
|
26202
26259
|
children: e,
|
|
26203
26260
|
className: t,
|
|
26204
|
-
id:
|
|
26261
|
+
id: MK,
|
|
26205
26262
|
style: {
|
|
26206
|
-
...
|
|
26263
|
+
...PK,
|
|
26207
26264
|
...y
|
|
26208
26265
|
},
|
|
26209
26266
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26210
26267
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26211
26268
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26212
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
26213
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26269
|
+
[DATA_ATTRIBUTES.panelId]: MK,
|
|
26270
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + PK.flexGrow).toFixed(1)
|
|
26214
26271
|
});
|
|
26215
26272
|
}
|
|
26216
26273
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -26983,7 +27040,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26983
27040
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
26984
27041
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
26985
27042
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
26986
|
-
}, []),
|
|
27043
|
+
}, []), MK = (0, import_react.useCallback)((e2, t2) => {
|
|
26987
27044
|
let { panelDataArray: n2 } = K.current;
|
|
26988
27045
|
return computePanelFlexBoxStyle({
|
|
26989
27046
|
defaultSize: t2,
|
|
@@ -26995,13 +27052,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26995
27052
|
}, [
|
|
26996
27053
|
S,
|
|
26997
27054
|
E
|
|
26998
|
-
]),
|
|
27055
|
+
]), NK = (0, import_react.useCallback)((e2) => {
|
|
26999
27056
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27000
27057
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27001
|
-
}, []),
|
|
27058
|
+
}, []), PK = (0, import_react.useCallback)((e2) => {
|
|
27002
27059
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27003
27060
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27004
|
-
}, []),
|
|
27061
|
+
}, []), FK = (0, import_react.useCallback)((e2) => {
|
|
27005
27062
|
let { panelDataArray: t2 } = K.current;
|
|
27006
27063
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27007
27064
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27033,7 +27090,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27033
27090
|
e2.layout = [];
|
|
27034
27091
|
};
|
|
27035
27092
|
}, []);
|
|
27036
|
-
let
|
|
27093
|
+
let $ = (0, import_react.useCallback)((e2) => {
|
|
27037
27094
|
let t2 = false, n2 = y.current;
|
|
27038
27095
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27039
27096
|
n3.preventDefault();
|
|
@@ -27051,7 +27108,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27051
27108
|
}), I2 = !compareLayouts(f2, A2);
|
|
27052
27109
|
(isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
|
|
27053
27110
|
};
|
|
27054
|
-
}, []),
|
|
27111
|
+
}, []), IK = (0, import_react.useCallback)((e2, t2) => {
|
|
27055
27112
|
let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
|
|
27056
27113
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27057
27114
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27063,12 +27120,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27063
27120
|
trigger: "imperative-api"
|
|
27064
27121
|
});
|
|
27065
27122
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27066
|
-
}, []),
|
|
27123
|
+
}, []), LK = (0, import_react.useCallback)((e2, t2) => {
|
|
27067
27124
|
let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
|
|
27068
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27125
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || IK(e2, s2) : h2 < f2 ? IK(e2, f2) : h2 > d2 && IK(e2, d2));
|
|
27069
27126
|
}, [
|
|
27070
|
-
|
|
27071
|
-
]),
|
|
27127
|
+
IK
|
|
27128
|
+
]), RK = (0, import_react.useCallback)((e2, t2) => {
|
|
27072
27129
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27073
27130
|
if (!y.current) return;
|
|
27074
27131
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27080,30 +27137,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27080
27137
|
initialCursorPosition: o2,
|
|
27081
27138
|
initialLayout: i2
|
|
27082
27139
|
});
|
|
27083
|
-
}, []),
|
|
27140
|
+
}, []), zK = (0, import_react.useCallback)(() => {
|
|
27084
27141
|
w(null);
|
|
27085
|
-
}, []),
|
|
27142
|
+
}, []), BK = (0, import_react.useCallback)((e2) => {
|
|
27086
27143
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27087
27144
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27088
27145
|
}, [
|
|
27089
27146
|
A
|
|
27090
|
-
]),
|
|
27147
|
+
]), VK = (0, import_react.useMemo)(() => ({
|
|
27091
27148
|
collapsePanel: q,
|
|
27092
27149
|
direction: i,
|
|
27093
27150
|
dragState: S,
|
|
27094
27151
|
expandPanel: J,
|
|
27095
27152
|
getPanelSize: Q,
|
|
27096
|
-
getPanelStyle:
|
|
27153
|
+
getPanelStyle: MK,
|
|
27097
27154
|
groupId: v,
|
|
27098
|
-
isPanelCollapsed:
|
|
27099
|
-
isPanelExpanded:
|
|
27100
|
-
reevaluatePanelConstraints:
|
|
27101
|
-
registerPanel:
|
|
27102
|
-
registerResizeHandle:
|
|
27103
|
-
resizePanel:
|
|
27104
|
-
startDragging:
|
|
27105
|
-
stopDragging:
|
|
27106
|
-
unregisterPanel:
|
|
27155
|
+
isPanelCollapsed: NK,
|
|
27156
|
+
isPanelExpanded: PK,
|
|
27157
|
+
reevaluatePanelConstraints: LK,
|
|
27158
|
+
registerPanel: FK,
|
|
27159
|
+
registerResizeHandle: $,
|
|
27160
|
+
resizePanel: IK,
|
|
27161
|
+
startDragging: RK,
|
|
27162
|
+
stopDragging: zK,
|
|
27163
|
+
unregisterPanel: BK,
|
|
27107
27164
|
panelGroupElement: y.current
|
|
27108
27165
|
}), [
|
|
27109
27166
|
q,
|
|
@@ -27111,18 +27168,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27111
27168
|
i,
|
|
27112
27169
|
J,
|
|
27113
27170
|
Q,
|
|
27114
|
-
$,
|
|
27115
|
-
v,
|
|
27116
|
-
jK,
|
|
27117
27171
|
MK,
|
|
27118
|
-
|
|
27172
|
+
v,
|
|
27119
27173
|
NK,
|
|
27120
27174
|
PK,
|
|
27121
|
-
FK,
|
|
27122
27175
|
LK,
|
|
27176
|
+
FK,
|
|
27177
|
+
$,
|
|
27178
|
+
IK,
|
|
27123
27179
|
RK,
|
|
27124
|
-
zK
|
|
27125
|
-
|
|
27180
|
+
zK,
|
|
27181
|
+
BK
|
|
27182
|
+
]), HK = {
|
|
27126
27183
|
display: "flex",
|
|
27127
27184
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27128
27185
|
height: "100%",
|
|
@@ -27130,7 +27187,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27130
27187
|
width: "100%"
|
|
27131
27188
|
};
|
|
27132
27189
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27133
|
-
value:
|
|
27190
|
+
value: VK
|
|
27134
27191
|
}, (0, import_react.createElement)(h, {
|
|
27135
27192
|
..._,
|
|
27136
27193
|
children: t,
|
|
@@ -27138,7 +27195,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27138
27195
|
id: o,
|
|
27139
27196
|
ref: y,
|
|
27140
27197
|
style: {
|
|
27141
|
-
...
|
|
27198
|
+
...HK,
|
|
27142
27199
|
...f
|
|
27143
27200
|
},
|
|
27144
27201
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27215,31 +27272,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27215
27272
|
});
|
|
27216
27273
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27217
27274
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27218
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [
|
|
27275
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [MK, NK] = (0, import_react.useState)(false), [PK, FK] = (0, import_react.useState)(null), $ = (0, import_react.useRef)({
|
|
27219
27276
|
state: J
|
|
27220
27277
|
});
|
|
27221
27278
|
useIsomorphicLayoutEffect$1(() => {
|
|
27222
|
-
|
|
27279
|
+
$.current.state = J;
|
|
27223
27280
|
}), (0, import_react.useEffect)(() => {
|
|
27224
|
-
if (n)
|
|
27281
|
+
if (n) FK(null);
|
|
27225
27282
|
else {
|
|
27226
27283
|
let e2 = I(q);
|
|
27227
|
-
|
|
27284
|
+
FK(() => e2);
|
|
27228
27285
|
}
|
|
27229
27286
|
}, [
|
|
27230
27287
|
n,
|
|
27231
27288
|
q,
|
|
27232
27289
|
I
|
|
27233
27290
|
]);
|
|
27234
|
-
let
|
|
27291
|
+
let IK = (i == null ? void 0 : i.coarse) ?? 15, LK = (i == null ? void 0 : i.fine) ?? 5;
|
|
27235
27292
|
(0, import_react.useEffect)(() => {
|
|
27236
|
-
if (n ||
|
|
27293
|
+
if (n || PK == null) return;
|
|
27237
27294
|
let e2 = w.current;
|
|
27238
27295
|
assert(e2, "Element ref not attached");
|
|
27239
27296
|
let t2 = false;
|
|
27240
27297
|
return registerResizeHandle(q, e2, A, {
|
|
27241
|
-
coarse:
|
|
27242
|
-
fine:
|
|
27298
|
+
coarse: IK,
|
|
27299
|
+
fine: LK
|
|
27243
27300
|
}, (e3, n2, i2) => {
|
|
27244
27301
|
if (!n2) {
|
|
27245
27302
|
Q("inactive");
|
|
@@ -27253,8 +27310,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27253
27310
|
break;
|
|
27254
27311
|
}
|
|
27255
27312
|
case "move": {
|
|
27256
|
-
let { state: e4 } =
|
|
27257
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27313
|
+
let { state: e4 } = $.current;
|
|
27314
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), PK(i2);
|
|
27258
27315
|
break;
|
|
27259
27316
|
}
|
|
27260
27317
|
case "up": {
|
|
@@ -27266,22 +27323,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27266
27323
|
}
|
|
27267
27324
|
});
|
|
27268
27325
|
}, [
|
|
27269
|
-
|
|
27326
|
+
IK,
|
|
27270
27327
|
A,
|
|
27271
27328
|
n,
|
|
27272
|
-
|
|
27329
|
+
LK,
|
|
27273
27330
|
I,
|
|
27274
27331
|
q,
|
|
27275
|
-
|
|
27332
|
+
PK,
|
|
27276
27333
|
z,
|
|
27277
27334
|
U
|
|
27278
27335
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27279
27336
|
disabled: n,
|
|
27280
27337
|
handleId: q,
|
|
27281
|
-
resizeHandler:
|
|
27338
|
+
resizeHandler: PK,
|
|
27282
27339
|
panelGroupElement: K
|
|
27283
27340
|
});
|
|
27284
|
-
let
|
|
27341
|
+
let RK = {
|
|
27285
27342
|
touchAction: "none",
|
|
27286
27343
|
userSelect: "none"
|
|
27287
27344
|
};
|
|
@@ -27291,22 +27348,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27291
27348
|
className: t,
|
|
27292
27349
|
id: a,
|
|
27293
27350
|
onBlur: () => {
|
|
27294
|
-
|
|
27351
|
+
NK(false), o == null ? void 0 : o();
|
|
27295
27352
|
},
|
|
27296
27353
|
onFocus: () => {
|
|
27297
|
-
|
|
27354
|
+
NK(true), d == null ? void 0 : d();
|
|
27298
27355
|
},
|
|
27299
27356
|
ref: w,
|
|
27300
27357
|
role: "separator",
|
|
27301
27358
|
style: {
|
|
27302
|
-
...
|
|
27359
|
+
...RK,
|
|
27303
27360
|
..._
|
|
27304
27361
|
},
|
|
27305
27362
|
tabIndex: v,
|
|
27306
27363
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
27307
27364
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
27308
27365
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
27309
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
27366
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : MK ? "keyboard" : void 0,
|
|
27310
27367
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
27311
27368
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
27312
27369
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -27598,7 +27655,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27598
27655
|
}, [
|
|
27599
27656
|
h
|
|
27600
27657
|
]), k(() => {
|
|
27601
|
-
U(6,
|
|
27658
|
+
U(6, PK);
|
|
27602
27659
|
}, []);
|
|
27603
27660
|
let K = import_react.useMemo(() => ({
|
|
27604
27661
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -27607,7 +27664,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27607
27664
|
var _a2;
|
|
27608
27665
|
var a2, o2, s2;
|
|
27609
27666
|
if (!Object.is(n.current[e2], t2)) {
|
|
27610
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
27667
|
+
if (n.current[e2] = t2, e2 === "search") NK(), Q(), U(1, MK);
|
|
27611
27668
|
else if (e2 === "value") {
|
|
27612
27669
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
27613
27670
|
let e3 = document.getElementById(I);
|
|
@@ -27615,8 +27672,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27615
27672
|
}
|
|
27616
27673
|
if (U(7, () => {
|
|
27617
27674
|
var _a3;
|
|
27618
|
-
n.current.selectedItemId = (_a3 =
|
|
27619
|
-
}), i2 || U(5,
|
|
27675
|
+
n.current.selectedItemId = (_a3 = FK()) == null ? void 0 : _a3.id, K.emit();
|
|
27676
|
+
}), i2 || U(5, PK), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
27620
27677
|
let e3 = t2 ?? "";
|
|
27621
27678
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
27622
27679
|
return;
|
|
@@ -27641,12 +27698,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27641
27698
|
item: (e2, t2) => (i.current.add(e2), t2 && (a.current.has(t2) ? a.current.get(t2).add(e2) : a.current.set(t2, /* @__PURE__ */ new Set([
|
|
27642
27699
|
e2
|
|
27643
27700
|
]))), U(3, () => {
|
|
27644
|
-
|
|
27701
|
+
NK(), Q(), n.current.value || MK(), K.emit();
|
|
27645
27702
|
}), () => {
|
|
27646
27703
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
27647
|
-
let t3 =
|
|
27704
|
+
let t3 = FK();
|
|
27648
27705
|
U(4, () => {
|
|
27649
|
-
|
|
27706
|
+
NK(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && MK(), K.emit();
|
|
27650
27707
|
});
|
|
27651
27708
|
}),
|
|
27652
27709
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -27679,7 +27736,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27679
27736
|
]);
|
|
27680
27737
|
});
|
|
27681
27738
|
let i2 = z.current;
|
|
27682
|
-
|
|
27739
|
+
$().sort((t3, n2) => {
|
|
27683
27740
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
27684
27741
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
27685
27742
|
}).forEach((e3) => {
|
|
@@ -27691,12 +27748,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27691
27748
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
27692
27749
|
});
|
|
27693
27750
|
}
|
|
27694
|
-
function
|
|
27751
|
+
function MK() {
|
|
27695
27752
|
var _a2;
|
|
27696
|
-
let e2 = (_a2 =
|
|
27753
|
+
let e2 = (_a2 = $().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
27697
27754
|
K.setState("value", e2 || void 0);
|
|
27698
27755
|
}
|
|
27699
|
-
function
|
|
27756
|
+
function NK() {
|
|
27700
27757
|
var _a2, _b;
|
|
27701
27758
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
27702
27759
|
n.current.filtered.count = i.current.size;
|
|
@@ -27714,43 +27771,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27714
27771
|
}
|
|
27715
27772
|
n.current.filtered.count = e2;
|
|
27716
27773
|
}
|
|
27717
|
-
function
|
|
27774
|
+
function PK() {
|
|
27718
27775
|
var _a2, _b;
|
|
27719
27776
|
var e2;
|
|
27720
|
-
let t2 =
|
|
27777
|
+
let t2 = FK();
|
|
27721
27778
|
t2 && (((_a2 = t2.parentElement) == null ? void 0 : _a2.firstChild) === t2 && ((e2 = (_b = t2.closest(N$1)) == null ? void 0 : _b.querySelector(be)) == null || e2.scrollIntoView({
|
|
27722
27779
|
block: "nearest"
|
|
27723
27780
|
})), t2.scrollIntoView({
|
|
27724
27781
|
block: "nearest"
|
|
27725
27782
|
}));
|
|
27726
27783
|
}
|
|
27727
|
-
function
|
|
27784
|
+
function FK() {
|
|
27728
27785
|
var _a2;
|
|
27729
27786
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
27730
27787
|
}
|
|
27731
|
-
function
|
|
27788
|
+
function $() {
|
|
27732
27789
|
var _a2;
|
|
27733
27790
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
27734
27791
|
}
|
|
27735
|
-
function
|
|
27736
|
-
let t2 =
|
|
27792
|
+
function IK(e2) {
|
|
27793
|
+
let t2 = $()[e2];
|
|
27737
27794
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
27738
27795
|
}
|
|
27739
|
-
function
|
|
27796
|
+
function LK(e2) {
|
|
27740
27797
|
var t2;
|
|
27741
|
-
let n2 =
|
|
27798
|
+
let n2 = FK(), i2 = $(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
27742
27799
|
(t2 = c.current) != null && t2.loop && (o2 = a2 + e2 < 0 ? i2[i2.length - 1] : a2 + e2 === i2.length ? i2[0] : i2[a2 + e2]), o2 && K.setState("value", o2.getAttribute(T));
|
|
27743
27800
|
}
|
|
27744
|
-
function
|
|
27801
|
+
function RK(e2) {
|
|
27745
27802
|
var _a2;
|
|
27746
|
-
let t2 = (_a2 =
|
|
27803
|
+
let t2 = (_a2 = FK()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
27747
27804
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
27748
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
27805
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : LK(e2);
|
|
27749
27806
|
}
|
|
27750
|
-
let
|
|
27751
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27752
|
-
},
|
|
27753
|
-
e2.preventDefault(), e2.metaKey ?
|
|
27807
|
+
let zK = () => IK($().length - 1), BK = (e2) => {
|
|
27808
|
+
e2.preventDefault(), e2.metaKey ? zK() : e2.altKey ? RK(1) : LK(1);
|
|
27809
|
+
}, VK = (e2) => {
|
|
27810
|
+
e2.preventDefault(), e2.metaKey ? IK(0) : e2.altKey ? RK(-1) : LK(-1);
|
|
27754
27811
|
};
|
|
27755
27812
|
return import_react.createElement(Primitive.div, {
|
|
27756
27813
|
ref: t,
|
|
@@ -27764,27 +27821,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27764
27821
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
27765
27822
|
case "n":
|
|
27766
27823
|
case "j":
|
|
27767
|
-
E && e2.ctrlKey &&
|
|
27824
|
+
E && e2.ctrlKey && BK(e2);
|
|
27768
27825
|
break;
|
|
27769
27826
|
case "ArrowDown":
|
|
27770
|
-
|
|
27827
|
+
BK(e2);
|
|
27771
27828
|
break;
|
|
27772
27829
|
case "p":
|
|
27773
27830
|
case "k":
|
|
27774
|
-
E && e2.ctrlKey &&
|
|
27831
|
+
E && e2.ctrlKey && VK(e2);
|
|
27775
27832
|
break;
|
|
27776
27833
|
case "ArrowUp":
|
|
27777
|
-
|
|
27834
|
+
VK(e2);
|
|
27778
27835
|
break;
|
|
27779
27836
|
case "Home":
|
|
27780
|
-
e2.preventDefault(),
|
|
27837
|
+
e2.preventDefault(), IK(0);
|
|
27781
27838
|
break;
|
|
27782
27839
|
case "End":
|
|
27783
|
-
e2.preventDefault(),
|
|
27840
|
+
e2.preventDefault(), zK();
|
|
27784
27841
|
break;
|
|
27785
27842
|
case "Enter": {
|
|
27786
27843
|
e2.preventDefault();
|
|
27787
|
-
let t3 =
|
|
27844
|
+
let t3 = FK();
|
|
27788
27845
|
if (t3) {
|
|
27789
27846
|
let e3 = new Event(Z);
|
|
27790
27847
|
t3.dispatchEvent(e3);
|
|
@@ -28193,153 +28250,153 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28193
28250
|
Combobox = (e) => {
|
|
28194
28251
|
let t = (0, import_compiler_runtime$30.c)(103), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J;
|
|
28195
28252
|
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: J, defaultValue: c, onValueChange: S, multiple: M, shouldFilter: I, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: z, search: A, onSearchChange: y, emptyState: U, chips: K, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: q, ...O } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J);
|
|
28196
|
-
let Q = M === void 0 ? false : M,
|
|
28197
|
-
t[24] !== v || t[25] !== w || t[26] !==
|
|
28253
|
+
let Q = M === void 0 ? false : M, MK = I === void 0 ? true : I, NK = z === void 0 ? "Search..." : z, PK = U === void 0 ? "Nothing found." : U, FK = K === void 0 ? false : K, $ = q === void 0 ? false : q, IK = s ?? false, LK;
|
|
28254
|
+
t[24] !== v || t[25] !== w || t[26] !== IK ? (LK = {
|
|
28198
28255
|
prop: w,
|
|
28199
|
-
defaultProp:
|
|
28256
|
+
defaultProp: IK,
|
|
28200
28257
|
onChange: v
|
|
28201
|
-
}, t[24] = v, t[25] = w, t[26] =
|
|
28202
|
-
let [
|
|
28203
|
-
t[28] === S ?
|
|
28258
|
+
}, t[24] = v, t[25] = w, t[26] = IK, t[27] = LK) : LK = t[27];
|
|
28259
|
+
let [RK, zK] = useControllableState(LK), BK = RK === void 0 ? false : RK, VK;
|
|
28260
|
+
t[28] === S ? VK = t[29] : (VK = (e2) => {
|
|
28204
28261
|
S == null ? void 0 : S(e2);
|
|
28205
|
-
}, t[28] = S, t[29] =
|
|
28206
|
-
let
|
|
28207
|
-
t[30] !== c || t[31] !==
|
|
28262
|
+
}, t[28] = S, t[29] = VK);
|
|
28263
|
+
let HK;
|
|
28264
|
+
t[30] !== c || t[31] !== VK || t[32] !== J ? (HK = {
|
|
28208
28265
|
prop: J,
|
|
28209
28266
|
defaultProp: c,
|
|
28210
|
-
onChange:
|
|
28211
|
-
}, t[30] = c, t[31] =
|
|
28212
|
-
let [
|
|
28213
|
-
t[34] ===
|
|
28214
|
-
let
|
|
28215
|
-
t[36] !== _ || t[37] !== Q || t[38] !==
|
|
28267
|
+
onChange: VK
|
|
28268
|
+
}, t[30] = c, t[31] = VK, t[32] = J, t[33] = HK) : HK = t[33];
|
|
28269
|
+
let [UK, WK] = useControllableState(HK), GK;
|
|
28270
|
+
t[34] === UK ? GK = t[35] : (GK = (e2) => Array.isArray(UK) ? UK.includes(e2) : UK === e2, t[34] = UK, t[35] = GK);
|
|
28271
|
+
let KK = GK, qK;
|
|
28272
|
+
t[36] !== _ || t[37] !== Q || t[38] !== zK || t[39] !== WK || t[40] !== UK ? (qK = (e2) => {
|
|
28216
28273
|
let t2 = e2;
|
|
28217
|
-
if (Q) if (Array.isArray(
|
|
28218
|
-
let n2 =
|
|
28274
|
+
if (Q) if (Array.isArray(UK)) if (UK.includes(t2)) {
|
|
28275
|
+
let n2 = UK.filter((t3) => t3 !== e2);
|
|
28219
28276
|
t2 = n2.length > 0 ? n2 : [];
|
|
28220
28277
|
} else t2 = [
|
|
28221
|
-
...
|
|
28278
|
+
...UK,
|
|
28222
28279
|
t2
|
|
28223
28280
|
];
|
|
28224
28281
|
else t2 = [
|
|
28225
28282
|
t2
|
|
28226
28283
|
];
|
|
28227
|
-
else
|
|
28228
|
-
|
|
28229
|
-
}, t[36] = _, t[37] = Q, t[38] =
|
|
28230
|
-
let
|
|
28231
|
-
t[42] !==
|
|
28232
|
-
let
|
|
28233
|
-
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28234
|
-
let
|
|
28235
|
-
t[49] !==
|
|
28236
|
-
|
|
28237
|
-
}, t[49] =
|
|
28238
|
-
let
|
|
28239
|
-
t[52] !== o || t[53] !==
|
|
28284
|
+
else UK === e2 && (t2 = null);
|
|
28285
|
+
WK(t2), (_ ?? Q) || zK(false);
|
|
28286
|
+
}, t[36] = _, t[37] = Q, t[38] = zK, t[39] = WK, t[40] = UK, t[41] = qK) : qK = t[41];
|
|
28287
|
+
let JK = qK, YK;
|
|
28288
|
+
t[42] !== FK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== UK ? (YK = () => Q && FK && E ? E : UK == null ? E ?? "--" : Array.isArray(UK) ? UK.length === 0 ? E ?? "--" : UK.length === 1 && d !== void 0 ? d(UK[0]) : `${UK.length} selected` : d === void 0 ? E ?? "--" : d(UK), t[42] = FK, t[43] = d, t[44] = Q, t[45] = E, t[46] = UK, t[47] = YK) : YK = t[47];
|
|
28289
|
+
let XK = YK, ZK;
|
|
28290
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ZK = cn("relative"), t[48] = ZK) : ZK = t[48];
|
|
28291
|
+
let QK;
|
|
28292
|
+
t[49] !== $ || t[50] !== zK ? (QK = (e2) => {
|
|
28293
|
+
$ && e2 || zK(e2);
|
|
28294
|
+
}, t[49] = $, t[50] = zK, t[51] = QK) : QK = t[51];
|
|
28295
|
+
let $K = $ && "cursor-not-allowed opacity-50", eq;
|
|
28296
|
+
t[52] !== o || t[53] !== $K ? (eq = cn("flex h-6 w-fit mb-1 shadow-xs-solid items-center justify-between rounded-sm border border-input bg-transparent px-2 text-sm font-prose ring-offset-background placeholder:text-muted-foreground hover:shadow-sm-solid focus:outline-hidden focus:ring-1 focus:ring-ring focus:border-primary focus:shadow-md-solid", $K, o), t[52] = o, t[53] = $K, t[54] = eq) : eq = t[54];
|
|
28240
28297
|
let tq;
|
|
28241
|
-
t[55] ===
|
|
28242
|
-
let
|
|
28243
|
-
t[57] === tq ?
|
|
28298
|
+
t[55] === XK ? tq = t[56] : (tq = XK(), t[55] = XK, t[56] = tq);
|
|
28299
|
+
let rq;
|
|
28300
|
+
t[57] === tq ? rq = t[58] : (rq = (0, import_jsx_runtime.jsx)("span", {
|
|
28244
28301
|
className: "truncate flex-1 min-w-0",
|
|
28245
28302
|
children: tq
|
|
28246
|
-
}), t[57] = tq, t[58] =
|
|
28303
|
+
}), t[57] = tq, t[58] = rq);
|
|
28247
28304
|
let iq;
|
|
28248
28305
|
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28249
28306
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28250
28307
|
}), t[59] = iq) : iq = t[59];
|
|
28251
|
-
let
|
|
28252
|
-
t[60] !==
|
|
28308
|
+
let oq;
|
|
28309
|
+
t[60] !== $ || t[61] !== h || t[62] !== BK || t[63] !== eq || t[64] !== rq ? (oq = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28253
28310
|
asChild: true,
|
|
28254
28311
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28255
28312
|
id: h,
|
|
28256
28313
|
type: "button",
|
|
28257
|
-
className:
|
|
28258
|
-
"aria-expanded":
|
|
28259
|
-
"aria-disabled":
|
|
28314
|
+
className: eq,
|
|
28315
|
+
"aria-expanded": BK,
|
|
28316
|
+
"aria-disabled": $,
|
|
28260
28317
|
children: [
|
|
28261
|
-
|
|
28318
|
+
rq,
|
|
28262
28319
|
iq
|
|
28263
28320
|
]
|
|
28264
28321
|
})
|
|
28265
|
-
}), t[60] =
|
|
28266
|
-
let
|
|
28267
|
-
t[66] !==
|
|
28268
|
-
placeholder:
|
|
28322
|
+
}), t[60] = $, t[61] = h, t[62] = BK, t[63] = eq, t[64] = rq, t[65] = oq) : oq = t[65];
|
|
28323
|
+
let sq;
|
|
28324
|
+
t[66] !== NK || t[67] !== y || t[68] !== A ? (sq = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28325
|
+
placeholder: NK,
|
|
28269
28326
|
rootClassName: "px-1 h-8",
|
|
28270
28327
|
autoFocus: true,
|
|
28271
28328
|
value: A,
|
|
28272
28329
|
onValueChange: y
|
|
28273
|
-
}), t[66] =
|
|
28274
|
-
let sq;
|
|
28275
|
-
t[70] === MK ? sq = t[71] : (sq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28276
|
-
children: MK
|
|
28277
|
-
}), t[70] = MK, t[71] = sq);
|
|
28330
|
+
}), t[66] = NK, t[67] = y, t[68] = A, t[69] = sq) : sq = t[69];
|
|
28278
28331
|
let cq;
|
|
28279
|
-
t[
|
|
28280
|
-
|
|
28281
|
-
|
|
28282
|
-
}, t[72] = qK, t[73] = GK, t[74] = cq) : cq = t[74];
|
|
28332
|
+
t[70] === PK ? cq = t[71] : (cq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28333
|
+
children: PK
|
|
28334
|
+
}), t[70] = PK, t[71] = cq);
|
|
28283
28335
|
let lq;
|
|
28284
|
-
t[
|
|
28285
|
-
|
|
28286
|
-
|
|
28287
|
-
}
|
|
28336
|
+
t[72] !== JK || t[73] !== KK ? (lq = {
|
|
28337
|
+
isSelected: KK,
|
|
28338
|
+
onSelect: JK
|
|
28339
|
+
}, t[72] = JK, t[73] = KK, t[74] = lq) : lq = t[74];
|
|
28288
28340
|
let uq;
|
|
28289
|
-
t[
|
|
28341
|
+
t[75] !== n || t[76] !== lq ? (uq = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28342
|
+
value: lq,
|
|
28343
|
+
children: n
|
|
28344
|
+
}), t[75] = n, t[76] = lq, t[77] = uq) : uq = t[77];
|
|
28345
|
+
let dq;
|
|
28346
|
+
t[78] !== cq || t[79] !== uq ? (dq = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28290
28347
|
className: "max-h-60 py-.5",
|
|
28291
28348
|
children: [
|
|
28292
|
-
|
|
28293
|
-
|
|
28349
|
+
cq,
|
|
28350
|
+
uq
|
|
28294
28351
|
]
|
|
28295
|
-
}), t[78] =
|
|
28296
|
-
let
|
|
28297
|
-
t[81] !== f || t[82] !==
|
|
28352
|
+
}), t[78] = cq, t[79] = uq, t[80] = dq) : dq = t[80];
|
|
28353
|
+
let fq;
|
|
28354
|
+
t[81] !== f || t[82] !== MK || t[83] !== sq || t[84] !== dq ? (fq = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28298
28355
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28299
28356
|
align: "start",
|
|
28300
28357
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28301
28358
|
filter: f,
|
|
28302
|
-
shouldFilter:
|
|
28359
|
+
shouldFilter: MK,
|
|
28303
28360
|
children: [
|
|
28304
|
-
|
|
28305
|
-
|
|
28361
|
+
sq,
|
|
28362
|
+
dq
|
|
28306
28363
|
]
|
|
28307
28364
|
})
|
|
28308
|
-
}), t[81] = f, t[82] =
|
|
28309
|
-
let
|
|
28310
|
-
t[86] !==
|
|
28311
|
-
open:
|
|
28312
|
-
onOpenChange:
|
|
28365
|
+
}), t[81] = f, t[82] = MK, t[83] = sq, t[84] = dq, t[85] = fq) : fq = t[85];
|
|
28366
|
+
let pq;
|
|
28367
|
+
t[86] !== BK || t[87] !== QK || t[88] !== oq || t[89] !== fq ? (pq = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28368
|
+
open: BK,
|
|
28369
|
+
onOpenChange: QK,
|
|
28313
28370
|
children: [
|
|
28314
|
-
|
|
28315
|
-
|
|
28371
|
+
oq,
|
|
28372
|
+
fq
|
|
28316
28373
|
]
|
|
28317
|
-
}), t[86] =
|
|
28318
|
-
let
|
|
28319
|
-
t[91] !==
|
|
28374
|
+
}), t[86] = BK, t[87] = QK, t[88] = oq, t[89] = fq, t[90] = pq) : pq = t[90];
|
|
28375
|
+
let mq;
|
|
28376
|
+
t[91] !== FK || t[92] !== i || t[93] !== $ || t[94] !== d || t[95] !== JK || t[96] !== Q || t[97] !== UK ? (mq = Q && FK && (0, import_jsx_runtime.jsx)("div", {
|
|
28320
28377
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28321
|
-
children: Array.isArray(
|
|
28378
|
+
children: Array.isArray(UK) && UK.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28322
28379
|
variant: "secondary",
|
|
28323
28380
|
children: [
|
|
28324
28381
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28325
28382
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28326
28383
|
onClick: () => {
|
|
28327
|
-
|
|
28384
|
+
$ || JK(e2);
|
|
28328
28385
|
},
|
|
28329
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28386
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", $ && "pointer-events-none")
|
|
28330
28387
|
})
|
|
28331
28388
|
]
|
|
28332
28389
|
}, String(e2)))
|
|
28333
|
-
}), t[91] =
|
|
28334
|
-
let
|
|
28335
|
-
return t[99] !== O || t[100] !==
|
|
28336
|
-
className:
|
|
28390
|
+
}), t[91] = FK, t[92] = i, t[93] = $, t[94] = d, t[95] = JK, t[96] = Q, t[97] = UK, t[98] = mq) : mq = t[98];
|
|
28391
|
+
let hq;
|
|
28392
|
+
return t[99] !== O || t[100] !== pq || t[101] !== mq ? (hq = (0, import_jsx_runtime.jsxs)("div", {
|
|
28393
|
+
className: ZK,
|
|
28337
28394
|
...O,
|
|
28338
28395
|
children: [
|
|
28339
|
-
|
|
28340
|
-
|
|
28396
|
+
pq,
|
|
28397
|
+
mq
|
|
28341
28398
|
]
|
|
28342
|
-
}), t[99] = O, t[100] =
|
|
28399
|
+
}), t[99] = O, t[100] = pq, t[101] = mq, t[102] = hq) : hq = t[102], hq;
|
|
28343
28400
|
};
|
|
28344
28401
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28345
28402
|
let n = (0, import_compiler_runtime$30.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -28424,7 +28481,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28424
28481
|
let t = (0, import_compiler_runtime$28.c)(8), n, i;
|
|
28425
28482
|
t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
|
|
28426
28483
|
let a;
|
|
28427
|
-
t[3] === n ? a = t[4] : (a = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$
|
|
28484
|
+
t[3] === n ? a = t[4] : (a = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$8), t[3] = n, t[4] = a);
|
|
28428
28485
|
let o;
|
|
28429
28486
|
return t[5] !== i || t[6] !== a ? (o = (0, import_jsx_runtime.jsx)($40825cdb76e74f70$export$336ab7fa954c4b5f, {
|
|
28430
28487
|
className: a,
|
|
@@ -28477,7 +28534,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28477
28534
|
]
|
|
28478
28535
|
}), t[15] = s, t[16] = c, t[17] = d, t[18] = h, t[19] = _, t[20] = v) : v = t[20], v;
|
|
28479
28536
|
};
|
|
28480
|
-
function _temp$
|
|
28537
|
+
function _temp$8(e) {
|
|
28481
28538
|
return cn("type-literal:px-0 inline rounded p-0.5 caret-transparent outline-solid outline-0", "data-placeholder:text-muted-foreground", "data-disabled:cursor-not-allowed data-disabled:opacity-50", "data-focused:bg-accent data-focused:text-accent-foreground focus:bg-accent focus:text-accent-foreground", "data-invalid:data-focused:bg-destructive data-invalid:data-focused:data-placeholder:text-destructive-foreground data-invalid:data-focused:text-destructive-foreground data-invalid:data-placeholder:text-destructive data-invalid:text-destructive", e);
|
|
28482
28539
|
}
|
|
28483
28540
|
function _temp2$6(e) {
|
|
@@ -28492,7 +28549,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28492
28549
|
let t = (0, import_compiler_runtime$27.c)(10), n, i, a;
|
|
28493
28550
|
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ className: n, offset: a, ...i } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
28494
28551
|
let o = a === void 0 ? 4 : a, s;
|
|
28495
|
-
t[4] === n ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$
|
|
28552
|
+
t[4] === n ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$7), t[4] = n, t[5] = s);
|
|
28496
28553
|
let c;
|
|
28497
28554
|
return t[6] !== o || t[7] !== i || t[8] !== s ? (c = (0, import_jsx_runtime.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, {
|
|
28498
28555
|
offset: o,
|
|
@@ -28500,7 +28557,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28500
28557
|
...i
|
|
28501
28558
|
}), t[6] = o, t[7] = i, t[8] = s, t[9] = c) : c = t[9], c;
|
|
28502
28559
|
};
|
|
28503
|
-
function _temp$
|
|
28560
|
+
function _temp$7(e) {
|
|
28504
28561
|
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);
|
|
28505
28562
|
}
|
|
28506
28563
|
var import_compiler_runtime$26 = require_compiler_runtime(), CalendarHeading = (e) => {
|
|
@@ -28605,7 +28662,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28605
28662
|
let t = (0, import_compiler_runtime$26.c)(14), n, i, a;
|
|
28606
28663
|
t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ errorMessage: i, className: n, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
|
|
28607
28664
|
let o;
|
|
28608
|
-
t[4] === n ? o = t[5] : (o = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$
|
|
28665
|
+
t[4] === n ? o = t[5] : (o = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$6), t[4] = n, t[5] = o);
|
|
28609
28666
|
let s;
|
|
28610
28667
|
t[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(CalendarHeading, {}), t[6] = s) : s = t[6];
|
|
28611
28668
|
let c;
|
|
@@ -28670,7 +28727,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28670
28727
|
]
|
|
28671
28728
|
}), t[10] = a, t[11] = o, t[12] = d, t[13] = f) : f = t[13], f;
|
|
28672
28729
|
};
|
|
28673
|
-
function _temp$
|
|
28730
|
+
function _temp$6(e) {
|
|
28674
28731
|
return cn("w-fit", e);
|
|
28675
28732
|
}
|
|
28676
28733
|
function _temp2$5(e) {
|
|
@@ -28702,7 +28759,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28702
28759
|
let t = (0, import_compiler_runtime$25.c)(14), n, i, o;
|
|
28703
28760
|
t[0] === e ? (n = t[1], i = t[2], o = t[3]) : ({ className: n, popoverClassName: i, ...o } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o);
|
|
28704
28761
|
let s;
|
|
28705
|
-
t[4] === i ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(i, _temp$
|
|
28762
|
+
t[4] === i ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(i, _temp$5), t[4] = i, t[5] = s);
|
|
28706
28763
|
let c;
|
|
28707
28764
|
t[6] === n ? c = t[7] : (c = cn("flex w-full flex-col space-y-4 outline-hidden sm:flex-row sm:space-x-4 sm:space-y-0", n), t[6] = n, t[7] = c);
|
|
28708
28765
|
let d;
|
|
@@ -28891,7 +28948,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28891
28948
|
]
|
|
28892
28949
|
}), t[21] = f, t[22] = d, t[23] = _, t[24] = y, t[25] = A, t[26] = M, t[27] = U) : U = t[27], U;
|
|
28893
28950
|
};
|
|
28894
|
-
function _temp$
|
|
28951
|
+
function _temp$5(e) {
|
|
28895
28952
|
return cn("w-auto p-3", e);
|
|
28896
28953
|
}
|
|
28897
28954
|
function _temp2$4(e) {
|
|
@@ -28991,7 +29048,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28991
29048
|
let v = _, y;
|
|
28992
29049
|
t[3] !== n || t[4] !== a ? (y = (e2) => {
|
|
28993
29050
|
let t2 = parsePastedDate(n, e2.clipboardData.getData("text"));
|
|
28994
|
-
t2 && (e2.preventDefault(), a(t2), h(t2), d(_temp$
|
|
29051
|
+
t2 && (e2.preventDefault(), a(t2), h(t2), d(_temp$4));
|
|
28995
29052
|
}, t[3] = n, t[4] = a, t[5] = y) : y = t[5];
|
|
28996
29053
|
let S = y, w;
|
|
28997
29054
|
t[6] !== n || t[7] !== f ? (w = f === void 0 ? void 0 : dateToAria(n, f), t[6] = n, t[7] = f, t[8] = w) : w = t[8];
|
|
@@ -29094,7 +29151,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29094
29151
|
children: M
|
|
29095
29152
|
}), t[37] = S, t[38] = M, t[39] = z) : z = t[39], z;
|
|
29096
29153
|
};
|
|
29097
|
-
function _temp$
|
|
29154
|
+
function _temp$4(e) {
|
|
29098
29155
|
return e + 1;
|
|
29099
29156
|
}
|
|
29100
29157
|
function _temp2$3(e) {
|
|
@@ -29467,13 +29524,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29467
29524
|
id: v,
|
|
29468
29525
|
operator: e2
|
|
29469
29526
|
});
|
|
29470
|
-
},
|
|
29527
|
+
}, MK = buildFilterValue({
|
|
29471
29528
|
type: S,
|
|
29472
29529
|
operator: E,
|
|
29473
29530
|
draft: mergeNumberTextDraft(A, I)
|
|
29474
|
-
}),
|
|
29475
|
-
if (
|
|
29476
|
-
let e2 =
|
|
29531
|
+
}), NK = MK === void 0, PK = NK ? getMissingValueMessage(S, E) : "Apply filter", FK = () => {
|
|
29532
|
+
if (!MK) return;
|
|
29533
|
+
let e2 = MK;
|
|
29477
29534
|
t.setColumnFilters((t2) => {
|
|
29478
29535
|
if (a === void 0) return [
|
|
29479
29536
|
{
|
|
@@ -29490,20 +29547,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29490
29547
|
value: e2
|
|
29491
29548
|
}, n2;
|
|
29492
29549
|
}), i();
|
|
29493
|
-
},
|
|
29550
|
+
}, $ = () => {
|
|
29494
29551
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
29495
|
-
},
|
|
29552
|
+
}, IK = !OPERATORS_WITHOUT_VALUE.has(E), LK = OPERATORS_BY_TYPE[S], RK = (0, import_react.useRef)(null), zK = (0, import_react.useRef)(null);
|
|
29496
29553
|
return (0, import_react.useEffect)(() => {
|
|
29497
29554
|
var _a2, _b;
|
|
29498
|
-
let e2 = (_a2 =
|
|
29499
|
-
e2 ? e2.focus() : (_b =
|
|
29555
|
+
let e2 = (_a2 = RK.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
29556
|
+
e2 ? e2.focus() : (_b = zK.current) == null ? void 0 : _b.focus();
|
|
29500
29557
|
}, [
|
|
29501
29558
|
S,
|
|
29502
29559
|
E
|
|
29503
29560
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
29504
29561
|
className: "flex flex-row gap-4 items-end p-3",
|
|
29505
29562
|
onSubmit: (e2) => {
|
|
29506
|
-
e2.preventDefault(),
|
|
29563
|
+
e2.preventDefault(), FK();
|
|
29507
29564
|
},
|
|
29508
29565
|
onKeyDownCapture: (e2) => {
|
|
29509
29566
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -29544,13 +29601,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29544
29601
|
onValueChange: (e2) => Q(e2),
|
|
29545
29602
|
children: [
|
|
29546
29603
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
29547
|
-
ref:
|
|
29604
|
+
ref: zK,
|
|
29548
29605
|
id: s,
|
|
29549
29606
|
className: "h-6 mb-1 bg-transparent",
|
|
29550
29607
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
29551
29608
|
}),
|
|
29552
29609
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
29553
|
-
children:
|
|
29610
|
+
children: LK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
29554
29611
|
value: e2,
|
|
29555
29612
|
children: OPERATOR_LABELS[e2]
|
|
29556
29613
|
}, e2))
|
|
@@ -29559,8 +29616,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29559
29616
|
}, S)
|
|
29560
29617
|
]
|
|
29561
29618
|
}),
|
|
29562
|
-
|
|
29563
|
-
ref:
|
|
29619
|
+
IK && (0, import_jsx_runtime.jsxs)("div", {
|
|
29620
|
+
ref: RK,
|
|
29564
29621
|
className: "flex flex-col gap-1",
|
|
29565
29622
|
children: [
|
|
29566
29623
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -29587,14 +29644,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29587
29644
|
className: "flex gap-1 mb-1",
|
|
29588
29645
|
children: [
|
|
29589
29646
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
29590
|
-
content:
|
|
29647
|
+
content: PK,
|
|
29591
29648
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
29592
29649
|
className: "inline-flex",
|
|
29593
29650
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
29594
29651
|
type: "submit",
|
|
29595
29652
|
size: "icon",
|
|
29596
29653
|
variant: "ghost",
|
|
29597
|
-
disabled:
|
|
29654
|
+
disabled: NK,
|
|
29598
29655
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
29599
29656
|
"aria-label": "Apply filter",
|
|
29600
29657
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -29626,7 +29683,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29626
29683
|
size: "icon",
|
|
29627
29684
|
variant: "ghost",
|
|
29628
29685
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
29629
|
-
onClick:
|
|
29686
|
+
onClick: $,
|
|
29630
29687
|
"aria-label": "Remove filter",
|
|
29631
29688
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
29632
29689
|
className: "h-3.5 w-3.5",
|
|
@@ -32441,7 +32498,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32441
32498
|
if (n.length === 0) return null;
|
|
32442
32499
|
let a, o;
|
|
32443
32500
|
if (t[0] !== n) {
|
|
32444
|
-
let e2 = n.reduce(_temp$
|
|
32501
|
+
let e2 = n.reduce(_temp$3, 0);
|
|
32445
32502
|
a = Number, o = e2.toFixed(MAX_FRACTION_DIGITS), t[0] = n, t[1] = a, t[2] = o;
|
|
32446
32503
|
} else a = t[1], o = t[2];
|
|
32447
32504
|
let s = a(o), c;
|
|
@@ -32462,7 +32519,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32462
32519
|
locale: i
|
|
32463
32520
|
}), t[2] = s, t[3] = i, t[4] = c) : c = t[4], c;
|
|
32464
32521
|
};
|
|
32465
|
-
function _temp$
|
|
32522
|
+
function _temp$3(e, t) {
|
|
32466
32523
|
return e + t;
|
|
32467
32524
|
}
|
|
32468
32525
|
function _temp2$2(e, t) {
|
|
@@ -32902,7 +32959,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32902
32959
|
filename: i2.filename
|
|
32903
32960
|
};
|
|
32904
32961
|
}, t[6] = e, t[7] = A);
|
|
32905
|
-
let M = A, I, z, U, K, q, J, Q,
|
|
32962
|
+
let M = A, I, z, U, K, q, J, Q, MK, NK, PK, FK, $, IK;
|
|
32906
32963
|
if (t[8] !== O || t[9] !== d || t[10] !== i || t[11] !== n || t[12] !== M || t[13] !== f) {
|
|
32907
32964
|
let e2 = async (t2) => {
|
|
32908
32965
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -32966,14 +33023,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32966
33023
|
asChild: true,
|
|
32967
33024
|
disabled: d,
|
|
32968
33025
|
children: h
|
|
32969
|
-
}), t[30] = d, t[31] = h, t[32] = _2) : _2 = t[32], t[33] !== s2 || t[34] !== _2 || t[35] !== f ? (
|
|
33026
|
+
}), t[30] = d, t[31] = h, t[32] = _2) : _2 = t[32], t[33] !== s2 || t[34] !== _2 || t[35] !== f ? (MK = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
32970
33027
|
content: f,
|
|
32971
33028
|
open: s2,
|
|
32972
33029
|
children: _2
|
|
32973
|
-
}), t[33] = s2, t[34] = _2, t[35] = f, t[36] =
|
|
33030
|
+
}), t[33] = s2, t[34] = _2, t[35] = f, t[36] = MK) : MK = t[36], I = DropdownMenuContent, NK = "bottom", PK = "print:hidden", t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (FK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
32974
33031
|
className: "text-xs text-muted-foreground",
|
|
32975
33032
|
children: "Download"
|
|
32976
|
-
}), t[37] =
|
|
33033
|
+
}), t[37] = FK) : FK = t[37], $ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
32977
33034
|
onSelect: () => {
|
|
32978
33035
|
e2(t2.format);
|
|
32979
33036
|
},
|
|
@@ -32994,10 +33051,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32994
33051
|
]
|
|
32995
33052
|
})
|
|
32996
33053
|
]
|
|
32997
|
-
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33054
|
+
}, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (IK = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
32998
33055
|
className: "text-xs text-muted-foreground",
|
|
32999
33056
|
children: "Copy to clipboard"
|
|
33000
|
-
}), t[38] = U, t[39] =
|
|
33057
|
+
}), t[38] = U, t[39] = IK) : (U = t[38], IK = t[39]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
33001
33058
|
onSelect: async () => {
|
|
33002
33059
|
try {
|
|
33003
33060
|
await a(e3.format);
|
|
@@ -33026,30 +33083,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33026
33083
|
]
|
|
33027
33084
|
})
|
|
33028
33085
|
]
|
|
33029
|
-
}, e3.label)), t[8] = O, t[9] = d, t[10] = i, t[11] = n, t[12] = M, t[13] = f, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] =
|
|
33030
|
-
} else I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20],
|
|
33031
|
-
let
|
|
33032
|
-
t[40] !== I || t[41] !== U || t[42] !== K || t[43] !==
|
|
33033
|
-
side:
|
|
33034
|
-
className:
|
|
33086
|
+
}, e3.label)), t[8] = O, t[9] = d, t[10] = i, t[11] = n, t[12] = M, t[13] = f, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = MK, t[22] = NK, t[23] = PK, t[24] = FK, t[25] = $, t[26] = IK;
|
|
33087
|
+
} else I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], MK = t[21], NK = t[22], PK = t[23], FK = t[24], $ = t[25], IK = t[26];
|
|
33088
|
+
let LK;
|
|
33089
|
+
t[40] !== I || t[41] !== U || t[42] !== K || t[43] !== NK || t[44] !== PK || t[45] !== FK || t[46] !== $ || t[47] !== IK ? (LK = (0, import_jsx_runtime.jsxs)(I, {
|
|
33090
|
+
side: NK,
|
|
33091
|
+
className: PK,
|
|
33035
33092
|
children: [
|
|
33036
|
-
NK,
|
|
33037
|
-
PK,
|
|
33038
33093
|
FK,
|
|
33094
|
+
$,
|
|
33095
|
+
IK,
|
|
33039
33096
|
U,
|
|
33040
33097
|
K
|
|
33041
33098
|
]
|
|
33042
|
-
}), t[40] = I, t[41] = U, t[42] = K, t[43] =
|
|
33043
|
-
let
|
|
33044
|
-
return t[49] !== z || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !==
|
|
33099
|
+
}), t[40] = I, t[41] = U, t[42] = K, t[43] = NK, t[44] = PK, t[45] = FK, t[46] = $, t[47] = IK, t[48] = LK) : LK = t[48];
|
|
33100
|
+
let RK;
|
|
33101
|
+
return t[49] !== z || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== MK || t[54] !== LK ? (RK = (0, import_jsx_runtime.jsxs)(z, {
|
|
33045
33102
|
modal: q,
|
|
33046
33103
|
open: J,
|
|
33047
33104
|
onOpenChange: Q,
|
|
33048
33105
|
children: [
|
|
33049
|
-
|
|
33050
|
-
|
|
33106
|
+
MK,
|
|
33107
|
+
LK
|
|
33051
33108
|
]
|
|
33052
|
-
}), t[49] = z, t[50] = q, t[51] = J, t[52] = Q, t[53] =
|
|
33109
|
+
}), t[49] = z, t[50] = q, t[51] = J, t[52] = Q, t[53] = MK, t[54] = LK, t[55] = RK) : RK = t[55], RK;
|
|
33053
33110
|
};
|
|
33054
33111
|
function fetchJson(e) {
|
|
33055
33112
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -33142,22 +33199,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33142
33199
|
]
|
|
33143
33200
|
}) : null;
|
|
33144
33201
|
};
|
|
33145
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange:
|
|
33146
|
-
let [
|
|
33202
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: MK, getRowIds: NK, enableSearch: PK = false, searchQuery: FK, onSearchQueryChange: $, showFilters: IK = false, filters: LK, onFiltersChange: RK, calculateTopKRows: zK, reloading: BK, freezeColumnsLeft: VK, freezeColumnsRight: HK, hiddenColumns: UK, toggleDisplayHeader: WK, showChartBuilder: GK, isChartBuilderOpen: KK, showPageSizeSelector: qK, showTableExplorer: JK, togglePanel: YK, isPanelOpen: XK, isAnyPanelOpen: ZK, viewedRowIdx: QK, onViewedRowChange: $K, renderTableExplorerPanel: eq }) => {
|
|
33203
|
+
let [tq, nq] = import_react.useState(false), { locale: rq } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: iq, setColumnPinning: aq } = useColumnPinning(VK, HK), { columnVisibility: oq, setColumnVisibility: sq } = useColumnVisibility(UK);
|
|
33147
33204
|
import_react.useEffect(() => {
|
|
33148
33205
|
let e2;
|
|
33149
|
-
return
|
|
33150
|
-
|
|
33151
|
-
}, 300) :
|
|
33206
|
+
return BK ? e2 = setTimeout(() => {
|
|
33207
|
+
nq(true);
|
|
33208
|
+
}, 300) : nq(false), () => {
|
|
33152
33209
|
e2 && clearTimeout(e2);
|
|
33153
33210
|
};
|
|
33154
33211
|
}, [
|
|
33155
|
-
|
|
33212
|
+
BK
|
|
33156
33213
|
]);
|
|
33157
|
-
function
|
|
33214
|
+
function cq(e2, t2) {
|
|
33158
33215
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
33159
33216
|
}
|
|
33160
|
-
let
|
|
33217
|
+
let lq = useReactTable({
|
|
33161
33218
|
_features: [
|
|
33162
33219
|
ColumnPinning,
|
|
33163
33220
|
ColumnWrappingFeature,
|
|
@@ -33181,11 +33238,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33181
33238
|
getRowId: (e2, t2) => {
|
|
33182
33239
|
let n2 = getStableRowId(e2);
|
|
33183
33240
|
if (n2) return n2;
|
|
33184
|
-
let i2 =
|
|
33241
|
+
let i2 = cq(e2, t2);
|
|
33185
33242
|
return String(i2);
|
|
33186
33243
|
}
|
|
33187
33244
|
} : {},
|
|
33188
|
-
locale:
|
|
33245
|
+
locale: rq,
|
|
33189
33246
|
manualPagination: q,
|
|
33190
33247
|
getPaginationRowModel: getPaginationRowModel(),
|
|
33191
33248
|
...w ? {
|
|
@@ -33195,22 +33252,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33195
33252
|
enableMultiSort: true,
|
|
33196
33253
|
getSortedRowModel: getSortedRowModel(),
|
|
33197
33254
|
manualFiltering: true,
|
|
33198
|
-
enableColumnFilters:
|
|
33255
|
+
enableColumnFilters: IK,
|
|
33199
33256
|
getFilteredRowModel: getFilteredRowModel(),
|
|
33200
|
-
onColumnFiltersChange:
|
|
33257
|
+
onColumnFiltersChange: RK,
|
|
33201
33258
|
onRowSelectionChange: Q,
|
|
33202
|
-
onCellSelectionChange:
|
|
33259
|
+
onCellSelectionChange: MK,
|
|
33203
33260
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
33204
33261
|
enableMultiCellSelection: c === "multi-cell",
|
|
33205
|
-
onColumnPinningChange:
|
|
33206
|
-
onColumnVisibilityChange:
|
|
33262
|
+
onColumnPinningChange: aq,
|
|
33263
|
+
onColumnVisibilityChange: sq,
|
|
33207
33264
|
enableFocusRow: true,
|
|
33208
|
-
onFocusRowChange:
|
|
33265
|
+
onFocusRowChange: $K,
|
|
33209
33266
|
state: {
|
|
33210
33267
|
...S ? {
|
|
33211
33268
|
sorting: S
|
|
33212
33269
|
} : {},
|
|
33213
|
-
columnFilters:
|
|
33270
|
+
columnFilters: LK,
|
|
33214
33271
|
...z ? {
|
|
33215
33272
|
pagination: z
|
|
33216
33273
|
} : J && !z ? {} : {
|
|
@@ -33221,59 +33278,59 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33221
33278
|
},
|
|
33222
33279
|
rowSelection: E ?? {},
|
|
33223
33280
|
cellSelection: O ?? [],
|
|
33224
|
-
columnVisibility:
|
|
33281
|
+
columnVisibility: oq,
|
|
33225
33282
|
cellStyling: A,
|
|
33226
|
-
columnPinning:
|
|
33283
|
+
columnPinning: iq,
|
|
33227
33284
|
cellHoverTemplate: M,
|
|
33228
33285
|
cellHoverTexts: I ?? {}
|
|
33229
33286
|
}
|
|
33230
|
-
}),
|
|
33287
|
+
}), uq = (XK == null ? void 0 : XK(PANEL_TYPES.ROW_VIEWER)) ?? false, dq = !J && o.length > 100, fq = useScrollContainerHeight({
|
|
33231
33288
|
maxHeight: n,
|
|
33232
|
-
virtualize:
|
|
33233
|
-
}), [
|
|
33289
|
+
virtualize: dq
|
|
33290
|
+
}), [pq, mq] = import_react.useState(null), hq = import_react.useMemo(() => ({
|
|
33234
33291
|
requestAddFilter: (e2) => {
|
|
33235
|
-
let t2 =
|
|
33236
|
-
t2 &&
|
|
33292
|
+
let t2 = lq.getColumn(e2.columnId);
|
|
33293
|
+
t2 && mq(buildEditorSnapshot(t2, {
|
|
33237
33294
|
operator: e2.operator
|
|
33238
33295
|
}));
|
|
33239
33296
|
}
|
|
33240
33297
|
}), [
|
|
33241
|
-
|
|
33242
|
-
]),
|
|
33298
|
+
lq
|
|
33299
|
+
]), gq = getUserColumnVisibilityCounts(lq), _q = gq.total > 0 && gq.visible === 0;
|
|
33243
33300
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
33244
|
-
value:
|
|
33301
|
+
value: hq,
|
|
33245
33302
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
33246
33303
|
className: cn(e, "flex flex-col space-y-1"),
|
|
33247
33304
|
children: [
|
|
33248
33305
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
33249
|
-
filters:
|
|
33250
|
-
table:
|
|
33251
|
-
calculateTopKRows:
|
|
33252
|
-
addFilterSnapshot:
|
|
33253
|
-
onAddFilterSnapshotChange:
|
|
33306
|
+
filters: LK,
|
|
33307
|
+
table: lq,
|
|
33308
|
+
calculateTopKRows: zK,
|
|
33309
|
+
addFilterSnapshot: pq,
|
|
33310
|
+
onAddFilterSnapshotChange: mq
|
|
33254
33311
|
}),
|
|
33255
|
-
|
|
33312
|
+
eq == null ? void 0 : eq(lq),
|
|
33256
33313
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
33257
33314
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
33258
33315
|
part: "table-wrapper",
|
|
33259
33316
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
33260
33317
|
children: [
|
|
33261
33318
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
33262
|
-
enableSearch:
|
|
33263
|
-
searchQuery:
|
|
33264
|
-
onSearchQueryChange:
|
|
33265
|
-
reloading:
|
|
33266
|
-
showChartBuilder:
|
|
33267
|
-
isChartBuilderOpen:
|
|
33268
|
-
toggleDisplayHeader:
|
|
33269
|
-
showTableExplorer:
|
|
33270
|
-
togglePanel:
|
|
33271
|
-
isAnyPanelOpen:
|
|
33319
|
+
enableSearch: PK,
|
|
33320
|
+
searchQuery: FK,
|
|
33321
|
+
onSearchQueryChange: $,
|
|
33322
|
+
reloading: BK,
|
|
33323
|
+
showChartBuilder: GK,
|
|
33324
|
+
isChartBuilderOpen: KK,
|
|
33325
|
+
toggleDisplayHeader: WK,
|
|
33326
|
+
showTableExplorer: JK,
|
|
33327
|
+
togglePanel: YK,
|
|
33328
|
+
isAnyPanelOpen: ZK,
|
|
33272
33329
|
downloadAs: K,
|
|
33273
33330
|
sizeBytes: _,
|
|
33274
33331
|
sizeBytesIsLoading: v
|
|
33275
33332
|
}),
|
|
33276
|
-
|
|
33333
|
+
_q && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
33277
33334
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
33278
33335
|
children: [
|
|
33279
33336
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -33282,26 +33339,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33282
33339
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
33283
33340
|
variant: "link",
|
|
33284
33341
|
size: "xs",
|
|
33285
|
-
onClick: () =>
|
|
33342
|
+
onClick: () => lq.resetColumnVisibility(true),
|
|
33286
33343
|
children: "Unhide all"
|
|
33287
33344
|
})
|
|
33288
33345
|
]
|
|
33289
33346
|
}),
|
|
33290
33347
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
33291
33348
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
33292
|
-
ref:
|
|
33349
|
+
ref: fq,
|
|
33293
33350
|
children: [
|
|
33294
|
-
|
|
33351
|
+
tq && (0, import_jsx_runtime.jsx)("thead", {
|
|
33295
33352
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
33296
33353
|
}),
|
|
33297
|
-
renderTableHeader(
|
|
33354
|
+
renderTableHeader(lq, dq || !!n),
|
|
33298
33355
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
33299
|
-
table:
|
|
33356
|
+
table: lq,
|
|
33300
33357
|
columns: i,
|
|
33301
|
-
rowViewerPanelOpen:
|
|
33302
|
-
getRowIndex:
|
|
33303
|
-
viewedRowIdx:
|
|
33304
|
-
virtualize:
|
|
33358
|
+
rowViewerPanelOpen: uq,
|
|
33359
|
+
getRowIndex: cq,
|
|
33360
|
+
viewedRowIdx: QK,
|
|
33361
|
+
virtualize: dq
|
|
33305
33362
|
})
|
|
33306
33363
|
]
|
|
33307
33364
|
}),
|
|
@@ -33312,11 +33369,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33312
33369
|
pagination: J,
|
|
33313
33370
|
selection: c,
|
|
33314
33371
|
onRowSelectionChange: Q,
|
|
33315
|
-
table:
|
|
33316
|
-
getRowIds:
|
|
33317
|
-
showPageSizeSelector:
|
|
33318
|
-
tableLoading:
|
|
33319
|
-
togglePanel:
|
|
33372
|
+
table: lq,
|
|
33373
|
+
getRowIds: NK,
|
|
33374
|
+
showPageSizeSelector: qK,
|
|
33375
|
+
tableLoading: BK,
|
|
33376
|
+
togglePanel: YK
|
|
33320
33377
|
})
|
|
33321
33378
|
]
|
|
33322
33379
|
})
|
|
@@ -33381,105 +33438,80 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33381
33438
|
]
|
|
33382
33439
|
}), e.focus(), true;
|
|
33383
33440
|
}
|
|
33384
|
-
var import_compiler_runtime$6 = require_compiler_runtime()
|
|
33441
|
+
var import_compiler_runtime$6 = require_compiler_runtime();
|
|
33385
33442
|
const MarimoTracebackOutput = (e) => {
|
|
33386
33443
|
var _a2;
|
|
33387
|
-
let t = (0, import_compiler_runtime$6.c)(
|
|
33388
|
-
t[0] === i ?
|
|
33444
|
+
let t = (0, import_compiler_runtime$6.c)(45), { onRefactorWithAI: n, traceback: i, cellId: a } = e, o;
|
|
33445
|
+
t[0] === i ? o = t[1] : (o = renderHTML({
|
|
33389
33446
|
html: i,
|
|
33390
33447
|
additionalReplacements: [
|
|
33391
33448
|
replaceTracebackFilenames,
|
|
33392
33449
|
replaceTracebackPrefix,
|
|
33393
33450
|
replaceMangledLocal
|
|
33394
33451
|
]
|
|
33395
|
-
}), t[0] = i, t[1] =
|
|
33396
|
-
let
|
|
33397
|
-
t[2] === i ?
|
|
33452
|
+
}), t[0] = i, t[1] = o);
|
|
33453
|
+
let s = o, c;
|
|
33454
|
+
t[2] === i ? c = t[3] : (c = lastLine(i), t[2] = i, t[3] = c);
|
|
33455
|
+
let d = c, f = useAtomValue(aiEnabledAtom), _;
|
|
33456
|
+
t[4] === i ? _ = t[5] : (_ = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = _);
|
|
33457
|
+
let v = _, y;
|
|
33458
|
+
t[6] !== a || t[7] !== v ? (y = v && v.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = v, t[8] = y) : y = t[8];
|
|
33398
33459
|
let w = y, O;
|
|
33399
|
-
t[
|
|
33400
|
-
let A = O, M;
|
|
33401
|
-
t[
|
|
33402
|
-
let I = M, U = !isStaticNotebook(), K = (e2) => {
|
|
33460
|
+
t[9] !== f || t[10] !== n ? (O = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = O) : O = t[11];
|
|
33461
|
+
let A = O, M = !isStaticNotebook(), [I, z] = (0, import_react.useState)(true), U;
|
|
33462
|
+
t[12] !== d || t[13] !== n ? (U = (e2) => {
|
|
33403
33463
|
n == null ? void 0 : n({
|
|
33404
33464
|
prompt: `My code gives the following error:
|
|
33405
33465
|
|
|
33406
|
-
${
|
|
33466
|
+
${d}`,
|
|
33407
33467
|
triggerImmediately: e2
|
|
33408
33468
|
});
|
|
33409
|
-
}, [
|
|
33410
|
-
|
|
33411
|
-
|
|
33412
|
-
|
|
33413
|
-
|
|
33414
|
-
|
|
33415
|
-
|
|
33416
|
-
|
|
33417
|
-
|
|
33418
|
-
|
|
33419
|
-
|
|
33420
|
-
|
|
33421
|
-
|
|
33422
|
-
|
|
33423
|
-
|
|
33424
|
-
|
|
33425
|
-
|
|
33426
|
-
|
|
33427
|
-
|
|
33428
|
-
|
|
33429
|
-
|
|
33430
|
-
t[19] !== RK || t[20] !== BK ? (HK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33431
|
-
className: "text-sm inline font-mono",
|
|
33432
|
-
children: [
|
|
33433
|
-
RK,
|
|
33434
|
-
" ",
|
|
33435
|
-
BK
|
|
33436
|
-
]
|
|
33437
|
-
}), t[19] = RK, t[20] = BK, t[21] = HK) : HK = t[21];
|
|
33438
|
-
let UK;
|
|
33439
|
-
t[22] !== HK || t[23] !== IK ? (UK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33440
|
-
className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
|
|
33441
|
-
onClick: NK,
|
|
33442
|
-
children: [
|
|
33443
|
-
IK,
|
|
33444
|
-
HK
|
|
33445
|
-
]
|
|
33446
|
-
}), t[22] = HK, t[23] = IK, t[24] = UK) : UK = t[24];
|
|
33447
|
-
let WK;
|
|
33448
|
-
t[25] === c ? WK = t[26] : (WK = (0, import_jsx_runtime.jsx)(AccordionContent, {
|
|
33449
|
-
className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
|
|
33450
|
-
children: c
|
|
33451
|
-
}), t[25] = c, t[26] = WK);
|
|
33452
|
-
let GK;
|
|
33453
|
-
t[27] !== UK || t[28] !== WK ? (GK = (0, import_jsx_runtime.jsxs)(AccordionItem, {
|
|
33454
|
-
value: KEY,
|
|
33455
|
-
className: "border-none",
|
|
33469
|
+
}, t[12] = d, t[13] = n, t[14] = U) : U = t[14];
|
|
33470
|
+
let K = U, q;
|
|
33471
|
+
t[15] === I ? q = t[16] : (q = () => z(!I), t[15] = I, t[16] = q);
|
|
33472
|
+
let J = I ? "Collapse traceback" : "Expand traceback", MK;
|
|
33473
|
+
t[17] === I ? MK = t[18] : (MK = I ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
33474
|
+
className: "h-3 w-3"
|
|
33475
|
+
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
33476
|
+
className: "h-3 w-3"
|
|
33477
|
+
}), t[17] = I, t[18] = MK);
|
|
33478
|
+
let PK;
|
|
33479
|
+
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (PK = (0, import_jsx_runtime.jsx)("span", {
|
|
33480
|
+
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
33481
|
+
children: "Traceback"
|
|
33482
|
+
}), t[19] = PK) : PK = t[19];
|
|
33483
|
+
let FK;
|
|
33484
|
+
t[20] !== I || t[21] !== q || t[22] !== J || t[23] !== MK ? (FK = (0, import_jsx_runtime.jsxs)("button", {
|
|
33485
|
+
type: "button",
|
|
33486
|
+
onClick: q,
|
|
33487
|
+
"aria-expanded": I,
|
|
33488
|
+
"aria-label": J,
|
|
33489
|
+
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
33456
33490
|
children: [
|
|
33457
|
-
|
|
33458
|
-
|
|
33491
|
+
MK,
|
|
33492
|
+
PK
|
|
33459
33493
|
]
|
|
33460
|
-
}), t[
|
|
33461
|
-
let
|
|
33462
|
-
t[
|
|
33463
|
-
|
|
33464
|
-
|
|
33465
|
-
|
|
33466
|
-
|
|
33467
|
-
|
|
33468
|
-
let JK;
|
|
33469
|
-
t[33] !== K || t[34] !== I ? (JK = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
33494
|
+
}), t[20] = I, t[21] = q, t[22] = J, t[23] = MK, t[24] = FK) : FK = t[24];
|
|
33495
|
+
let $;
|
|
33496
|
+
t[25] !== s || t[26] !== I ? ($ = I && (0, import_jsx_runtime.jsx)("div", {
|
|
33497
|
+
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
33498
|
+
children: s
|
|
33499
|
+
}), t[25] = s, t[26] = I, t[27] = $) : $ = t[27];
|
|
33500
|
+
let IK;
|
|
33501
|
+
t[28] !== K || t[29] !== A ? (IK = A && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
33470
33502
|
tooltip: "Fix with AI",
|
|
33471
33503
|
openPrompt: () => K(false),
|
|
33472
33504
|
applyAutofix: () => K(true)
|
|
33473
|
-
}), t[
|
|
33474
|
-
let
|
|
33475
|
-
t[
|
|
33505
|
+
}), t[28] = K, t[29] = A, t[30] = IK) : IK = t[30];
|
|
33506
|
+
let LK;
|
|
33507
|
+
t[31] !== w || t[32] !== v ? (LK = w && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33476
33508
|
content: "Attach pdb to the exception point.",
|
|
33477
33509
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
33478
33510
|
size: "xs",
|
|
33479
33511
|
variant: "outline",
|
|
33480
33512
|
onClick: () => {
|
|
33481
33513
|
getRequestClient().sendPdb({
|
|
33482
|
-
cellId:
|
|
33514
|
+
cellId: v.cellId
|
|
33483
33515
|
});
|
|
33484
33516
|
},
|
|
33485
33517
|
children: [
|
|
@@ -33489,9 +33521,9 @@ ${_}`,
|
|
|
33489
33521
|
"Launch debugger"
|
|
33490
33522
|
]
|
|
33491
33523
|
})
|
|
33492
|
-
}), t[
|
|
33493
|
-
let
|
|
33494
|
-
t[
|
|
33524
|
+
}), t[31] = w, t[32] = v, t[33] = LK) : LK = t[33];
|
|
33525
|
+
let RK;
|
|
33526
|
+
t[34] !== d || t[35] !== i ? (RK = M && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
33495
33527
|
children: [
|
|
33496
33528
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
33497
33529
|
asChild: true,
|
|
@@ -33514,7 +33546,7 @@ ${_}`,
|
|
|
33514
33546
|
asChild: true,
|
|
33515
33547
|
children: (0, import_jsx_runtime.jsxs)("a", {
|
|
33516
33548
|
target: "_blank",
|
|
33517
|
-
href: `https://www.google.com/search?q=${encodeURIComponent(
|
|
33549
|
+
href: `https://www.google.com/search?q=${encodeURIComponent(d)}`,
|
|
33518
33550
|
rel: "noreferrer",
|
|
33519
33551
|
children: [
|
|
33520
33552
|
(0, import_jsx_runtime.jsx)(Search, {
|
|
@@ -33559,24 +33591,25 @@ ${_}`,
|
|
|
33559
33591
|
]
|
|
33560
33592
|
})
|
|
33561
33593
|
]
|
|
33562
|
-
}), t[
|
|
33563
|
-
let
|
|
33564
|
-
t[
|
|
33594
|
+
}), t[34] = d, t[35] = i, t[36] = RK) : RK = t[36];
|
|
33595
|
+
let zK;
|
|
33596
|
+
t[37] !== IK || t[38] !== LK || t[39] !== RK ? (zK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33565
33597
|
className: "flex gap-2",
|
|
33566
33598
|
children: [
|
|
33567
|
-
|
|
33568
|
-
|
|
33569
|
-
|
|
33599
|
+
IK,
|
|
33600
|
+
LK,
|
|
33601
|
+
RK
|
|
33570
33602
|
]
|
|
33571
|
-
}), t[
|
|
33572
|
-
let
|
|
33573
|
-
return t[
|
|
33603
|
+
}), t[37] = IK, t[38] = LK, t[39] = RK, t[40] = zK) : zK = t[40];
|
|
33604
|
+
let BK;
|
|
33605
|
+
return t[41] !== FK || t[42] !== $ || t[43] !== zK ? (BK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33574
33606
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
33575
33607
|
children: [
|
|
33576
|
-
|
|
33577
|
-
|
|
33608
|
+
FK,
|
|
33609
|
+
$,
|
|
33610
|
+
zK
|
|
33578
33611
|
]
|
|
33579
|
-
}), t[
|
|
33612
|
+
}), t[41] = FK, t[42] = $, t[43] = zK, t[44] = BK) : BK = t[44], BK;
|
|
33580
33613
|
};
|
|
33581
33614
|
function lastLine(e) {
|
|
33582
33615
|
var _a2, _b;
|
|
@@ -33654,9 +33687,6 @@ ${_}`,
|
|
|
33654
33687
|
]
|
|
33655
33688
|
}), e[0] = t) : t = e[0], t;
|
|
33656
33689
|
};
|
|
33657
|
-
function _temp$3(e) {
|
|
33658
|
-
return !e;
|
|
33659
|
-
}
|
|
33660
33690
|
function renderMimeIcon(e) {
|
|
33661
33691
|
switch (e) {
|
|
33662
33692
|
case "text/html":
|
|
@@ -34966,7 +34996,7 @@ ${_}`,
|
|
|
34966
34996
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
34967
34997
|
}
|
|
34968
34998
|
}
|
|
34969
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-
|
|
34999
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-dev12");
|
|
34970
35000
|
showCodeInRunModeAtom = atom(true);
|
|
34971
35001
|
atom(null);
|
|
34972
35002
|
var import_compiler_runtime = require_compiler_runtime();
|