@marimo-team/islands 0.23.15-dev4 → 0.23.15-dev41
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-CU4fZJzG.js → ConnectedDataExplorerComponent-7p7rt9iw.js} +4 -4
- package/dist/{ErrorBoundary-DE6tzZf-.js → ErrorBoundary-B_CAG7_e.js} +1 -1
- package/dist/{ImageComparisonComponent-CHrI72em.js → ImageComparisonComponent-1i5IBhon.js} +173 -129
- package/dist/assets/__vite-browser-external-CjNAy01L.js +1 -0
- package/dist/assets/worker-B3XPCb6y.js +98 -0
- package/dist/{chat-ui-DinOvbWu.js → chat-ui-C0z13gJB.js} +3111 -3111
- package/dist/{code-visibility-Dk8cVOny.js → code-visibility-COokQS5X.js} +946 -864
- package/dist/{constants-T20xxyNf.js → debounce-BOD3DbfP.js} +1 -24
- package/dist/{formats-Dzx4J_z1.js → formats-CitsMtUm.js} +1 -1
- package/dist/{glide-data-editor-CjTu7ukN.js → glide-data-editor-CwZz71BD.js} +3 -3
- package/dist/{html-to-image-_wGfk8V-.js → html-to-image-CEo5pRYw.js} +2291 -2250
- package/dist/{input-DtsN7xm-.js → input-BGPrFH3g.js} +2 -2
- package/dist/main.js +1297 -1201
- package/dist/{mermaid-BYqXy_NE.js → mermaid-UdmxG2PZ.js} +2 -2
- package/dist/{process-output-Mh4UrjwM.js → process-output-BOvvilRG.js} +1 -1
- package/dist/{reveal-component-B5DXLyO7.js → reveal-component-D3ySPwH5.js} +618 -605
- package/dist/{spec-Cz-Bj1JI.js → spec-DSs9v0xx.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{toDate-CWNNlFEX.js → toDate-BRJgtOGm.js} +14 -5
- package/dist/{useAsyncData-KfHB8wQR.js → useAsyncData-BSOyAbac.js} +1 -1
- package/dist/{useDeepCompareMemoize-nJMtxhm4.js → useDeepCompareMemoize-BTLeWzuR.js} +1 -1
- package/dist/{useLifecycle-DegSo0lV.js → useLifecycle-C6wHjkhW.js} +1 -1
- package/dist/{useTheme-6eZ3GOTS.js → useTheme-Df_vGflw.js} +62 -27
- package/dist/{vega-component-DzyyM9fc.js → vega-component-BAvmvTjO.js} +6 -6
- package/package.json +1 -1
- package/src/components/chat/__tests__/chat-utils.test.ts +244 -1
- package/src/components/chat/__tests__/message-queue.test.tsx +121 -0
- package/src/components/chat/chat-panel.tsx +196 -67
- package/src/components/chat/chat-utils.ts +111 -2
- package/src/components/editor/SortableCell.tsx +6 -2
- package/src/components/editor/__tests__/output-persistence.test.tsx +241 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +153 -0
- package/src/components/editor/actions/pair-with-agent-commands.ts +109 -0
- package/src/components/editor/actions/pair-with-agent-modal.tsx +20 -64
- package/src/components/editor/ai/add-cell-with-ai.tsx +14 -5
- package/src/components/editor/ai/ai-completion-editor.tsx +4 -1
- package/src/components/editor/cell/cell-context-menu.tsx +7 -0
- package/src/components/editor/chrome/panels/packages-panel.tsx +11 -1
- package/src/components/editor/columns/__tests__/cell-column.test.tsx +105 -0
- package/src/components/editor/columns/cell-column.tsx +34 -4
- package/src/components/editor/columns/sortable-column.tsx +24 -4
- package/src/components/editor/file-tree/download.ts +46 -0
- package/src/components/editor/file-tree/file-explorer.tsx +3 -21
- package/src/components/editor/file-tree/file-viewer.tsx +4 -27
- package/src/components/editor/navigation/__tests__/navigation.test.ts +33 -0
- package/src/components/editor/navigation/navigation.ts +8 -1
- package/src/components/editor/notebook-cell.tsx +203 -106
- package/src/components/editor/renderers/__tests__/cells-renderer.test.tsx +66 -0
- package/src/components/editor/renderers/cell-array.tsx +26 -13
- package/src/components/editor/renderers/cells-renderer.tsx +8 -2
- package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +29 -0
- package/src/components/editor/renderers/slides-layout/types.ts +4 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +19 -19
- package/src/components/slides/reveal-component.tsx +37 -4
- package/src/components/slides/slide-form.tsx +72 -0
- package/src/components/ui/toast.tsx +11 -3
- package/src/components/ui/toaster.tsx +65 -9
- package/src/core/cells/__tests__/utils.test.ts +59 -0
- package/src/core/cells/utils.ts +51 -0
- package/src/core/codemirror/completion/__tests__/signature-hint.test.ts +97 -3
- package/src/core/codemirror/completion/signature-hint.ts +78 -11
- package/src/core/constants.ts +6 -0
- package/src/core/islands/__tests__/bridge.test.ts +341 -46
- package/src/core/islands/__tests__/main.test.ts +176 -0
- package/src/core/islands/__tests__/parse.test.ts +105 -0
- package/src/core/islands/bootstrap.ts +8 -3
- package/src/core/islands/bridge.ts +116 -23
- package/src/core/islands/components/__tests__/web-components.test.tsx +214 -0
- package/src/core/islands/components/web-components.tsx +76 -15
- package/src/core/islands/constants.ts +1 -0
- package/src/core/islands/main.ts +69 -3
- package/src/core/islands/parse.ts +70 -23
- package/src/core/islands/worker/__tests__/controller.test.ts +173 -0
- package/src/core/islands/worker/worker.tsx +145 -57
- package/src/core/runtime/__tests__/runtime.test.ts +64 -0
- package/src/core/runtime/runtime.ts +30 -10
- package/src/core/wasm/worker/bootstrap.ts +113 -20
- package/src/css/app/Cell.css +10 -0
- package/src/hooks/__tests__/useHotkey.test.tsx +88 -0
- package/src/hooks/useHotkey.ts +29 -4
- package/src/plugins/impl/anywidget/__tests__/host.test.ts +6 -9
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +22 -61
- package/src/plugins/impl/anywidget/model-proxy.ts +0 -13
- package/src/plugins/impl/anywidget/widget-binding.ts +4 -34
- package/src/plugins/impl/image-comparison/ImageComparisonComponent.tsx +53 -2
- package/src/plugins/impl/image-comparison/__tests__/ImageComparisonComponent.test.tsx +71 -0
- package/src/plugins/impl/matplotlib/__tests__/matplotlib-renderer.test.ts +71 -3
- package/src/plugins/impl/matplotlib/matplotlib-renderer.ts +1 -0
- package/src/theme/__tests__/useTheme.test.ts +68 -0
- package/src/theme/useTheme.ts +16 -1
- package/dist/assets/__vite-browser-external-BQCLNwri.js +0 -1
- package/dist/assets/worker-DAWRHcPq.js +0 -73
|
@@ -6,15 +6,15 @@ 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-COam1EG7.js";
|
|
9
|
-
import { $
|
|
9
|
+
import { $n as import_lib, An as Close$1, At as toggleBreakpoint, B as isDataURLString, Bn as Minus, C as Accordion, Dn as atomWithStorage, E as AccordionTrigger, Fn as Wrench, Ft as useChromeActions, Gn as Eye, Gt as DATA_TYPE_ICON, H as renderHTML, In as Trash2, It as adaptForLocalStorage, J as getCellEditorView, Kn as ExternalLink, Kt as getDataTypeColor, L as base64ToUint8Array, Lt as jotaiJsonStorage, M as DotFilledIcon, Mt as goToCellLine, N as PinLeftIcon, P as PinRightIcon, Q as notebookAtom, Qn as esm_default, Qt as getRequestClient, T as AccordionItem, Tn as jsonToMarkdown, Un as Info, Ut as PluralWord, Vn as LoaderCircle, Wn as FileText, Yn as CircleX, Zn as Braces, _ as getDatasourceContext, _n as CellOutputId, _t as sanitizeHtml, bt as displayCellName, c as Popover, cn as elementContainsMarimoCellFile, ct as AnsiUp, d as PopoverTrigger, dt as kioskModeAtom, en as useRequestClient, ft as useInstallAllowed, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, ln as extractAllTracebackInfo, m as useExpandedOutput, mt as outputIsLoading, n as Spinner, nt as useCellActions, pn as filenameAtom, pt as viewStateAtom, r as MarkdownRenderer, rt as useCellIds, t as toPng, u as PopoverContent, un as getTracebackInfo, vn as HTMLCellId, vt as DATA_CELL_ID, w as AccordionContent, wn as jsonParseWithSpecialChar, wt as Checkbox, yn as SCRATCH_CELL_ID, yt as getCellDomProps, z as extractBase64FromDataURL, zn as NotebookPen, zt as getFeatureFlag, __tla as __tla_0 } from "./html-to-image-CEo5pRYw.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist--2Bqjvs0.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-C6wHjkhW.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-CMnRuVmN.js";
|
|
13
13
|
import { t as Check } from "./check-C9OoNtR4.js";
|
|
14
14
|
import { C as logNever, E as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, I as X, N as usePrevious$1, O as $b5e257d569688ac6$export$535bd6ca7f90a273, P as useDirection, R as ChevronDown, S as assertNever, T as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, _ as menuControlVariants, b as menuSeparatorVariants, f as selectStyles, g as menuControlCheckVariants, h as menuContentCommon, i as SelectContent, l as SelectTrigger, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuItemVariants, w as $a916eb452884faea$export$b7a616150fdb9f44, x as menuSubTriggerVariants, y as menuLabelVariants } from "./strings-Dq_j3Rxw.js";
|
|
15
|
-
import { $ as $e93e671b31057976$export$b8473d3665f3a75a, $t as Item2$2, A as $ee014567cb39d3f0$export$ff05c3ac10437e03, At as $c87311424ea30a05$export$78551043582a6a98, B as $64fa3d84918910a7$export$4d86445c2cf5e3, Bt as $d4ee10de306f2510$export$e58f029f0fbfdb29, C as DropdownMenuTrigger, Ct as $b4b717babfbb907b$export$bebd5a1431fec25d, D as $a049562f99e7db0e$export$f9c6924e160136d1, Dt as $df56164dff5785e2$export$4338b53315abf666, E as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Et as $8ae05eaa5c114e9c$export$7f54fc3180508a52, F as $01b77f81d0f07f68$export$75b6ee27786ba447, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, G as $64fa3d84918910a7$export$ef03459518577ad4, Gt as $bdb11010cef70236$export$b4cc09c592e8fdb8, H as $64fa3d84918910a7$export$c245e6201fed2f75, Ht as $431fbd86ca7dc216$export$b204af158042fbac, I as $01b77f81d0f07f68$export$b04be29aa201d4f5, It as $3ef42575df84b30b$export$9d1611c77c2fe928, J as marked, Jt as Anchor2, K as $64fa3d84918910a7$export$fabf2dc03a41866e, Kt as $bdb11010cef70236$export$f680877a34711e37, L as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Lt as $d4ee10de306f2510$export$4282f70798064fe0, M as $514c0188e459b4c0$export$9afb8bc826b033ea, Mt as $c87311424ea30a05$export$a11b0059900ceec8, N as $d2b4bc8c273e7be6$export$24d547caef80ccd1, Nt as $c87311424ea30a05$export$fedb369cb70207f1, O as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Ot as $313b98861ee5dd6c$export$d6875122194c7b44, P as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, Pt as $7215afc6de606d6b$export$de79e2c695e052f3, Q as $2baaea4c71418dea$export$294aa081a6c6f55d, Qt as Group, R as $64fa3d84918910a7$export$2881499e37b75b9a, Rt as $d4ee10de306f2510$export$b4f377a2b6254582, S as DropdownMenuSubTrigger, St as $b4b717babfbb907b$export$4c063cf1350e6fed, T as $3985021b0ad6602f$export$f5b8910cec6cf069, Tt as $e9faafb641e167db$export$90fc3a17d93f704c, U as $64fa3d84918910a7$export$c62b8e45d58ddad9, Ut as $431fbd86ca7dc216$export$f21a1ffae260145a, V as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Vt as $f4e2df6bd15f8569$export$98658e8c59125e6a, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, Xt as CheckboxItem, Yt as Arrow2, Z as $d2e8511e6f209edf$export$e908e06f4b8e3402, Zt as Content2$1, _ as DropdownMenuPortal, _t as $f6c31cce2adf654f$export$45712eceda6fad21, a as NumberField, an as Root3, at as $319e236875307eab$export$a9b970dcc4ae71a9, b as DropdownMenuSub, bt as $9446cca9a3875146$export$7d15b64cf5a3a4c4, c as prettyEngineeringNumber, cn as SubContent, ct as $6c7bd7858deea686$export$cd11ab140839f11d, dn as Item, dt as $6db58dc88e78b024$export$2f817fcdc4b89ae0, en as ItemIndicator, et as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, f as DropdownMenu, fn as Root$3, ft as $5b160d28a433310d$export$c17fa47878dc55b6, g as DropdownMenuLabel, gn as ChevronRight, gt as $507fabe10e71c6fb$export$630ff653c5ada6a9, h as DropdownMenuItem, hn as Circle, ht as $3ad3f6e1647bc98d$export$80f3e147d781571c, in as RadioItem, it as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, j as $514c0188e459b4c0$export$5f1af8db9871e1d6, jt as $c87311424ea30a05$export$9ac100e40613ea10, k as $ee014567cb39d3f0$export$f551688fc98f2e09, kt as $c87311424ea30a05$export$6446a186d09e379e, l as prettyNumber, ln as SubTrigger, lt as $fca6afa0e843324b$export$87b761675e8eaa10, mn as Search, mt as $9ab94262bd0047c7$export$420e68273165f4ec, nn as Portal, nt as $e5be200c675c3b3a$export$aca958c65c314e6c, on as Separator$1, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pn as createRovingFocusGroupScope, pt as $6179b936705e76d3$export$ae780daf29e6d456, qt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, r as Input, rn as RadioGroup$2, rt as $e5be200c675c3b3a$export$dad6ae84456c676a, s as maxFractionalDigits, sn as Sub, tn as Label$1, tt as $e5be200c675c3b3a$export$a763b9476acd3eb, u as prettyScientificNumber, un as createMenuScope, ut as $fca6afa0e843324b$export$f12b703ca79dfbb1, v as DropdownMenuSeparator, vt as _class_private_field_init, w as $3985021b0ad6602f$export$37fb8590cf2c088c, wt as $99facab73266f662$export$5add1d006293d136, x as DropdownMenuSubContent, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, yt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, z as $64fa3d84918910a7$export$29f1550f4b0d4415, zt as $d4ee10de306f2510$export$cd4e5573fbe2b576 } 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-
|
|
17
|
-
import { r as Plus, t as ErrorBoundary } from "./ErrorBoundary-
|
|
15
|
+
import { $ as $e93e671b31057976$export$b8473d3665f3a75a, $t as Item2$2, A as $ee014567cb39d3f0$export$ff05c3ac10437e03, At as $c87311424ea30a05$export$78551043582a6a98, B as $64fa3d84918910a7$export$4d86445c2cf5e3, Bt as $d4ee10de306f2510$export$e58f029f0fbfdb29, C as DropdownMenuTrigger, Ct as $b4b717babfbb907b$export$bebd5a1431fec25d, D as $a049562f99e7db0e$export$f9c6924e160136d1, Dt as $df56164dff5785e2$export$4338b53315abf666, E as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Et as $8ae05eaa5c114e9c$export$7f54fc3180508a52, F as $01b77f81d0f07f68$export$75b6ee27786ba447, Ft as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, G as $64fa3d84918910a7$export$ef03459518577ad4, Gt as $bdb11010cef70236$export$b4cc09c592e8fdb8, H as $64fa3d84918910a7$export$c245e6201fed2f75, Ht as $431fbd86ca7dc216$export$b204af158042fbac, I as $01b77f81d0f07f68$export$b04be29aa201d4f5, It as $3ef42575df84b30b$export$9d1611c77c2fe928, J as marked, Jt as Anchor2, K as $64fa3d84918910a7$export$fabf2dc03a41866e, Kt as $bdb11010cef70236$export$f680877a34711e37, L as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Lt as $d4ee10de306f2510$export$4282f70798064fe0, M as $514c0188e459b4c0$export$9afb8bc826b033ea, Mt as $c87311424ea30a05$export$a11b0059900ceec8, N as $d2b4bc8c273e7be6$export$24d547caef80ccd1, Nt as $c87311424ea30a05$export$fedb369cb70207f1, O as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Ot as $313b98861ee5dd6c$export$d6875122194c7b44, P as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, Pt as $7215afc6de606d6b$export$de79e2c695e052f3, Q as $2baaea4c71418dea$export$294aa081a6c6f55d, Qt as Group, R as $64fa3d84918910a7$export$2881499e37b75b9a, Rt as $d4ee10de306f2510$export$b4f377a2b6254582, S as DropdownMenuSubTrigger, St as $b4b717babfbb907b$export$4c063cf1350e6fed, T as $3985021b0ad6602f$export$f5b8910cec6cf069, Tt as $e9faafb641e167db$export$90fc3a17d93f704c, U as $64fa3d84918910a7$export$c62b8e45d58ddad9, Ut as $431fbd86ca7dc216$export$f21a1ffae260145a, V as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Vt as $f4e2df6bd15f8569$export$98658e8c59125e6a, W as $64fa3d84918910a7$export$df3a06d6289f983e, Wt as $ff5963eb1fccf552$export$e08e3b67e392101e, Xt as CheckboxItem, Yt as Arrow2, Z as $d2e8511e6f209edf$export$e908e06f4b8e3402, Zt as Content2$1, _ as DropdownMenuPortal, _t as $f6c31cce2adf654f$export$45712eceda6fad21, a as NumberField, an as Root3, at as $319e236875307eab$export$a9b970dcc4ae71a9, b as DropdownMenuSub, bt as $9446cca9a3875146$export$7d15b64cf5a3a4c4, c as prettyEngineeringNumber, cn as SubContent, ct as $6c7bd7858deea686$export$cd11ab140839f11d, dn as Item, dt as $6db58dc88e78b024$export$2f817fcdc4b89ae0, en as ItemIndicator, et as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, f as DropdownMenu, fn as Root$3, ft as $5b160d28a433310d$export$c17fa47878dc55b6, g as DropdownMenuLabel, gn as ChevronRight, gt as $507fabe10e71c6fb$export$630ff653c5ada6a9, h as DropdownMenuItem, hn as Circle, ht as $3ad3f6e1647bc98d$export$80f3e147d781571c, in as RadioItem, it as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, j as $514c0188e459b4c0$export$5f1af8db9871e1d6, jt as $c87311424ea30a05$export$9ac100e40613ea10, k as $ee014567cb39d3f0$export$f551688fc98f2e09, kt as $c87311424ea30a05$export$6446a186d09e379e, l as prettyNumber, ln as SubTrigger, lt as $fca6afa0e843324b$export$87b761675e8eaa10, mn as Search, mt as $9ab94262bd0047c7$export$420e68273165f4ec, nn as Portal, nt as $e5be200c675c3b3a$export$aca958c65c314e6c, on as Separator$1, ot as $f7dceffc5ad7768b$export$4e328f61c538687f, p as DropdownMenuContent, pn as createRovingFocusGroupScope, pt as $6179b936705e76d3$export$ae780daf29e6d456, qt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, r as Input, rn as RadioGroup$2, rt as $e5be200c675c3b3a$export$dad6ae84456c676a, s as maxFractionalDigits, sn as Sub, tn as Label$1, tt as $e5be200c675c3b3a$export$a763b9476acd3eb, u as prettyScientificNumber, un as createMenuScope, ut as $fca6afa0e843324b$export$f12b703ca79dfbb1, v as DropdownMenuSeparator, vt as _class_private_field_init, w as $3985021b0ad6602f$export$37fb8590cf2c088c, wt as $99facab73266f662$export$5add1d006293d136, x as DropdownMenuSubContent, xt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, yt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, z as $64fa3d84918910a7$export$29f1550f4b0d4415, zt as $d4ee10de306f2510$export$cd4e5573fbe2b576 } from "./input-BGPrFH3g.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-BRJgtOGm.js";
|
|
17
|
+
import { r as Plus, t as ErrorBoundary } from "./ErrorBoundary-B_CAG7_e.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";
|
|
20
20
|
import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
|
|
@@ -22,20 +22,19 @@ import { Q as withSmartCollisionBoundary, Y as MAX_HEIGHT_OFFSET, Z as withFullS
|
|
|
22
22
|
import { a as prettyError, c as Portal$1, l as Root$4, n as ErrorBanner, o as Content$1, s as Overlay, t as Banner } from "./error-banner-DFPfz_Qf.js";
|
|
23
23
|
import { a as TooltipRoot, n as TooltipContent, o as TooltipTrigger, r as TooltipPortal, t as Tooltip } from "./tooltip-Czds6Qr8.js";
|
|
24
24
|
import { f as CopyClipboardIcon, t as _extends } from "./extends-9MVIxxRo.js";
|
|
25
|
-
import {
|
|
26
|
-
import { D as useEvent_default, E as dequal, S as atom, T as getBuildingBlocks, _ as Provider, b as useSetAtom, c as resolvedMarimoConfigAtom, i as aiModelConfiguredAtom, m as useJotaiEffect, n as useTheme, p as store, r as aiFeaturesEnabledAtom, u as userConfigAtom, v as useAtom, w as buildStore, x as useStore, y as useAtomValue } from "./useTheme-6eZ3GOTS.js";
|
|
25
|
+
import { A as useEvent_default, C as useSetAtom, D as buildStore, O as getBuildingBlocks, S as useAtomValue, T as atom, _ as useJotaiEffect, a as KnownQueryParams, b as Provider, d as resolvedMarimoConfigAtom, g as store, k as dequal, n as useTheme, o as aiFeaturesEnabledAtom, p as userConfigAtom, s as aiModelConfiguredAtom, w as useStore, x as useAtom } from "./useTheme-Df_vGflw.js";
|
|
27
26
|
import { $ as EditorView } from "./dist-U4F-tbMs.js";
|
|
28
27
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
29
28
|
import { c as uniqueBy, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
30
29
|
import { n as once, t as memoizeLastValue } from "./once-DPuqGUeo.js";
|
|
31
30
|
import { a as parser } from "./dist-C_Y3oV3C.js";
|
|
32
|
-
import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-
|
|
31
|
+
import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-CitsMtUm.js";
|
|
33
32
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DzSb5hsH.js";
|
|
34
33
|
import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
|
|
35
34
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-Boph2xIS.js";
|
|
36
35
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-DWIYvDh7.js";
|
|
37
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
38
|
-
let
|
|
36
|
+
import { t as useAsyncData } from "./useAsyncData-BSOyAbac.js";
|
|
37
|
+
let ContextAwarePanelItem, EmotionCacheProvider, prettifyRowColumnCount, loadTableData, useSelectList, dateToLocalISOTime, Filenames, ColumnChartContext, EmptyState, usePrevious, ColumnPreviewContainer, useIntersectionObserver, ContextMenuContent, getMimeValues, ComboboxItem, ChartErrorState, DatePicker, TabsContent, ContextMenuItem, isNullishFilter, CommandInput, LazyVegaEmbed, Command, ChartInfoState, ContextMenuSeparator, Maps, getColumnCountForDisplay, SELECT_COLUMN_ID, getUserColumnVisibilityCounts, TOO_MANY_ROWS, ErrorState, getPageIndexForRow, ContextMenu, toFieldTypes, smartMatch, HtmlOutput, ContextMenuTrigger, dateToLocalISODate, Progress, renderCellValue, ColumnName, DelayMount, DateRangePicker, TabsList, CompactChipRow, Tabs, Combobox, TabsTrigger, CommandList, RenderTextWithLinks, CommandItem, useOverflowDetection, CommandSeparator, Kbd, InstallPackageButton, ArrowDownWideNarrow, TableHeader, DEFAULT_DECK_VERTICAL_ALIGN, GripHorizontal, SlotNames, downloadByURL, generateColumns, SlideSidebar, Expand, Panel, RadioGroup, Code, Fill, hasFunctionProperty, PANEL_TYPES, RadioGroupItem, ChevronsUpDown, Provider$1, DataTable, ChevronLeft, TableHead, OutputRenderer, ChevronsDownUp, TableCell, DEFAULT_DECK_TRANSITION, TextWrap, isCellAwareAtom, prettifyRowCount, INDEX_COLUMN_NAME, LoadingState, loadTableAndRawData, Slide, Ellipsis, PanelGroup, OutputArea, ChevronsLeft, TableBody, marimoVersionAtom, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelOwner, DEFAULT_SLIDE_TYPE, Funnel, slotsController, JsonOutput, ChevronsRight, Table, CommandEmpty, ChartLoadingState, showCodeInRunModeAtom, $fae977aafc393c5c$export$6b862160d295c8e, contextAwarePanelType, SLIDE_TYPE_OPTIONS_BY_VALUE, EyeOff, Toggle, useNotebookCodeAvailable, isRecord, contextAwarePanelOpen, Switch, Download, PanelResizeHandle, ADD_PRINTING_CLASS, TableRow, downloadSizeLimitAtom, ColumnChartSpecModel, downloadHTMLAsImage, inferFieldTypes, downloadBlob, NAMELESS_COLUMN_PREFIX, useInternalStateWithSync, dateToLocalISODateTime;
|
|
39
38
|
let __tla = Promise.all([
|
|
40
39
|
(() => {
|
|
41
40
|
try {
|
|
@@ -2061,21 +2060,21 @@ Defaulting to \`null\`.`;
|
|
|
2061
2060
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
2062
2061
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
2063
2062
|
if (e === t) return;
|
|
2064
|
-
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, $ = parseInt(h.borderRightWidth, 10) || 0,
|
|
2065
|
-
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ?
|
|
2066
|
-
let
|
|
2067
|
-
if (
|
|
2068
|
-
else if (
|
|
2069
|
-
else if (
|
|
2070
|
-
else if (
|
|
2071
|
-
let e2 =
|
|
2063
|
+
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, $ = parseInt(h.borderRightWidth, 10) || 0, rJ = c.top - E, iJ = c.bottom + O, aJ = c.left - A, oJ = c.right + M, sJ = e === _ ? 0 : Q + $, cJ = e === _ ? 0 : q + J, lJ = e.offsetWidth - e.clientWidth - sJ, uJ = e.offsetHeight - e.clientHeight - cJ, dJ = v + q + I, fJ = y - J - z - uJ, pJ = S + Q + U, mJ = w - $ - K;
|
|
2064
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? pJ += lJ : mJ -= lJ;
|
|
2065
|
+
let hJ = rJ < dJ || iJ > fJ, gJ = aJ < pJ || oJ > mJ;
|
|
2066
|
+
if (hJ && i === "start") o += rJ - dJ;
|
|
2067
|
+
else if (hJ && i === "center") o += (rJ + iJ) / 2 - (dJ + fJ) / 2;
|
|
2068
|
+
else if (hJ && i === "end") o += iJ - fJ;
|
|
2069
|
+
else if (hJ && i === "nearest") {
|
|
2070
|
+
let e2 = rJ - dJ, t2 = iJ - fJ;
|
|
2072
2071
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2073
2072
|
}
|
|
2074
|
-
if (
|
|
2075
|
-
else if (
|
|
2076
|
-
else if (
|
|
2077
|
-
else if (
|
|
2078
|
-
let e2 =
|
|
2073
|
+
if (gJ && a === "start") s += aJ - pJ;
|
|
2074
|
+
else if (gJ && a === "center") s += (aJ + oJ) / 2 - (pJ + mJ) / 2;
|
|
2075
|
+
else if (gJ && a === "end") s += oJ - mJ;
|
|
2076
|
+
else if (gJ && a === "nearest") {
|
|
2077
|
+
let e2 = aJ - pJ, t2 = oJ - mJ;
|
|
2079
2078
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2080
2079
|
}
|
|
2081
2080
|
e.scrollTo({
|
|
@@ -5185,23 +5184,23 @@ Defaulting to \`null\`.`;
|
|
|
5185
5184
|
}
|
|
5186
5185
|
let $ = "bottom";
|
|
5187
5186
|
A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
|
|
5188
|
-
let
|
|
5189
|
-
q[I] +=
|
|
5190
|
-
let
|
|
5191
|
-
y && y <
|
|
5192
|
-
let
|
|
5193
|
-
|
|
5194
|
-
let
|
|
5195
|
-
x: U === "top" || U === "bottom" ?
|
|
5196
|
-
y: U === "left" || U === "right" ?
|
|
5187
|
+
let rJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5188
|
+
q[I] += rJ;
|
|
5189
|
+
let iJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5190
|
+
y && y < iJ && (iJ = y), n.height = Math.min(n.height, iJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), rJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += rJ;
|
|
5191
|
+
let aJ = {}, oJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], sJ = oJ + 0.5 * t[z], cJ = S / 2 + w, lJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), uJ = n[z] - lJ - S / 2 - w;
|
|
5192
|
+
aJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(sJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), cJ, uJ), { placement: U, crossPlacement: K } = A, S ? oJ = aJ[I] : K === "right" ? oJ += t[z] : K === "center" && (oJ += t[z] / 2);
|
|
5193
|
+
let dJ = U === "left" || U === "top" ? n[M] : 0, fJ = {
|
|
5194
|
+
x: U === "top" || U === "bottom" ? oJ : dJ,
|
|
5195
|
+
y: U === "left" || U === "right" ? oJ : dJ
|
|
5197
5196
|
};
|
|
5198
5197
|
return {
|
|
5199
5198
|
position: q,
|
|
5200
|
-
maxHeight:
|
|
5201
|
-
arrowOffsetLeft:
|
|
5202
|
-
arrowOffsetTop:
|
|
5199
|
+
maxHeight: iJ,
|
|
5200
|
+
arrowOffsetLeft: aJ.left,
|
|
5201
|
+
arrowOffsetTop: aJ.top,
|
|
5203
5202
|
placement: U,
|
|
5204
|
-
triggerAnchorPoint:
|
|
5203
|
+
triggerAnchorPoint: fJ
|
|
5205
5204
|
};
|
|
5206
5205
|
}
|
|
5207
5206
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -7056,7 +7055,7 @@ Defaulting to \`null\`.`;
|
|
|
7056
7055
|
n,
|
|
7057
7056
|
h
|
|
7058
7057
|
]);
|
|
7059
|
-
let
|
|
7058
|
+
let rJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
7060
7059
|
role: "textbox",
|
|
7061
7060
|
"aria-valuemax": null,
|
|
7062
7061
|
"aria-valuemin": null,
|
|
@@ -7066,8 +7065,8 @@ Defaulting to \`null\`.`;
|
|
|
7066
7065
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
7067
7066
|
t.segments
|
|
7068
7067
|
]) && !t.isInvalid && (f = void 0);
|
|
7069
|
-
let
|
|
7070
|
-
"aria-label": `${
|
|
7068
|
+
let iJ = $bdb11010cef70236$export$f680877a34711e37(), aJ = !t.isDisabled && !t.isReadOnly && e.isEditable, oJ = e.type === "literal" ? "" : s.of(e.type), sJ = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
7069
|
+
"aria-label": `${oJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
7071
7070
|
"aria-labelledby": d
|
|
7072
7071
|
});
|
|
7073
7072
|
if (e.type === "literal") return {
|
|
@@ -7075,32 +7074,32 @@ Defaulting to \`null\`.`;
|
|
|
7075
7074
|
"aria-hidden": true
|
|
7076
7075
|
}
|
|
7077
7076
|
};
|
|
7078
|
-
let
|
|
7077
|
+
let cJ = {
|
|
7079
7078
|
caretColor: "transparent"
|
|
7080
7079
|
};
|
|
7081
7080
|
if (o === "rtl") {
|
|
7082
|
-
|
|
7081
|
+
cJ.unicodeBidi = "embed";
|
|
7083
7082
|
let t2 = v[e.type];
|
|
7084
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
7083
|
+
(t2 === "numeric" || t2 === "2-digit") && (cJ.direction = "ltr");
|
|
7085
7084
|
}
|
|
7086
7085
|
return {
|
|
7087
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
7088
|
-
id:
|
|
7089
|
-
...
|
|
7086
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, sJ, {
|
|
7087
|
+
id: iJ,
|
|
7088
|
+
...rJ,
|
|
7090
7089
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
7091
7090
|
"aria-describedby": f,
|
|
7092
7091
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
7093
7092
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
7094
|
-
contentEditable:
|
|
7095
|
-
suppressContentEditableWarning:
|
|
7096
|
-
spellCheck:
|
|
7097
|
-
autoCorrect:
|
|
7098
|
-
enterKeyHint:
|
|
7099
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
7093
|
+
contentEditable: aJ,
|
|
7094
|
+
suppressContentEditableWarning: aJ,
|
|
7095
|
+
spellCheck: aJ ? "false" : void 0,
|
|
7096
|
+
autoCorrect: aJ ? "off" : void 0,
|
|
7097
|
+
enterKeyHint: aJ ? "next" : void 0,
|
|
7098
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !aJ ? void 0 : "numeric",
|
|
7100
7099
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
7101
7100
|
onKeyDown: A,
|
|
7102
7101
|
onFocus: Q,
|
|
7103
|
-
style:
|
|
7102
|
+
style: cJ,
|
|
7104
7103
|
onPointerDown(e2) {
|
|
7105
7104
|
e2.stopPropagation();
|
|
7106
7105
|
},
|
|
@@ -10349,12 +10348,12 @@ Defaulting to \`null\`.`;
|
|
|
10349
10348
|
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);
|
|
10350
10349
|
}
|
|
10351
10350
|
}
|
|
10352
|
-
let
|
|
10351
|
+
let rJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10353
10352
|
w,
|
|
10354
10353
|
f,
|
|
10355
10354
|
s,
|
|
10356
10355
|
c
|
|
10357
|
-
]),
|
|
10356
|
+
]), iJ = e.isInvalid || e.validationState === "invalid" || rJ, aJ = iJ ? "invalid" : null, oJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10358
10357
|
h,
|
|
10359
10358
|
o
|
|
10360
10359
|
]);
|
|
@@ -10371,8 +10370,8 @@ Defaulting to \`null\`.`;
|
|
|
10371
10370
|
maxValue: c,
|
|
10372
10371
|
focusedDate: O,
|
|
10373
10372
|
timeZone: E,
|
|
10374
|
-
validationState:
|
|
10375
|
-
isValueInvalid:
|
|
10373
|
+
validationState: aJ,
|
|
10374
|
+
isValueInvalid: iJ,
|
|
10376
10375
|
setFocusedDate(e2) {
|
|
10377
10376
|
Q(e2);
|
|
10378
10377
|
},
|
|
@@ -10397,12 +10396,12 @@ Defaulting to \`null\`.`;
|
|
|
10397
10396
|
}));
|
|
10398
10397
|
},
|
|
10399
10398
|
focusNextPage() {
|
|
10400
|
-
let e2 = M.add(
|
|
10401
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10399
|
+
let e2 = M.add(oJ);
|
|
10400
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(oJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, oJ, i, s, c), oJ, i));
|
|
10402
10401
|
},
|
|
10403
10402
|
focusPreviousPage() {
|
|
10404
|
-
let e2 = M.subtract(
|
|
10405
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10403
|
+
let e2 = M.subtract(oJ);
|
|
10404
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(oJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, oJ, i, s, c), oJ, i));
|
|
10406
10405
|
},
|
|
10407
10406
|
focusSectionStart() {
|
|
10408
10407
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10539,13 +10538,13 @@ Defaulting to \`null\`.`;
|
|
|
10539
10538
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10540
10539
|
}), q(null);
|
|
10541
10540
|
}
|
|
10542
|
-
}, [$,
|
|
10543
|
-
|
|
10541
|
+
}, [$, rJ] = (0, import_react.useState)(false), { isDateUnavailable: iJ } = e, aJ = (0, import_react.useMemo)(() => !h || v ? false : iJ && (iJ(h.start) || iJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10542
|
+
iJ,
|
|
10544
10543
|
h,
|
|
10545
10544
|
v,
|
|
10546
10545
|
c,
|
|
10547
10546
|
d
|
|
10548
|
-
]),
|
|
10547
|
+
]), oJ = e.isInvalid || e.validationState === "invalid" || aJ, sJ = oJ ? "invalid" : null;
|
|
10549
10548
|
return {
|
|
10550
10549
|
...I,
|
|
10551
10550
|
value: h,
|
|
@@ -10553,8 +10552,8 @@ Defaulting to \`null\`.`;
|
|
|
10553
10552
|
anchorDate: v,
|
|
10554
10553
|
setAnchorDate: q,
|
|
10555
10554
|
highlightedRange: J,
|
|
10556
|
-
validationState:
|
|
10557
|
-
isValueInvalid:
|
|
10555
|
+
validationState: sJ,
|
|
10556
|
+
isValueInvalid: oJ,
|
|
10558
10557
|
selectFocusedDate() {
|
|
10559
10558
|
Q(I.focusedDate);
|
|
10560
10559
|
},
|
|
@@ -10570,7 +10569,7 @@ Defaulting to \`null\`.`;
|
|
|
10570
10569
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10571
10570
|
},
|
|
10572
10571
|
isDragging: $,
|
|
10573
|
-
setDragging:
|
|
10572
|
+
setDragging: rJ
|
|
10574
10573
|
};
|
|
10575
10574
|
}
|
|
10576
10575
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11757,7 +11756,7 @@ Defaulting to \`null\`.`;
|
|
|
11757
11756
|
_,
|
|
11758
11757
|
S,
|
|
11759
11758
|
v
|
|
11760
|
-
]),
|
|
11759
|
+
]), rJ = (0, import_react.useMemo)(() => {
|
|
11761
11760
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11762
11761
|
"era",
|
|
11763
11762
|
"year",
|
|
@@ -11775,15 +11774,15 @@ Defaulting to \`null\`.`;
|
|
|
11775
11774
|
e.maxGranularity,
|
|
11776
11775
|
_,
|
|
11777
11776
|
w
|
|
11778
|
-
]), [
|
|
11779
|
-
(M !==
|
|
11780
|
-
let
|
|
11781
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11777
|
+
]), [iJ, aJ] = (0, import_react.useState)(M), [oJ, sJ] = (0, import_react.useState)(S), [cJ, lJ] = (0, import_react.useState)(w);
|
|
11778
|
+
(M !== iJ || w !== cJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, oJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), aJ(M), sJ(S), lJ(w), z(I));
|
|
11779
|
+
let uJ = (t2) => {
|
|
11780
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(rJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11782
11781
|
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);
|
|
11783
11782
|
else {
|
|
11784
|
-
if (t2.isComplete(
|
|
11783
|
+
if (t2.isComplete(rJ)) {
|
|
11785
11784
|
let e2 = t2.toValue(M ?? $);
|
|
11786
|
-
if (t2.validate(e2,
|
|
11785
|
+
if (t2.validate(e2, rJ)) {
|
|
11787
11786
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11788
11787
|
if (!E || t3.compare(E) !== 0) {
|
|
11789
11788
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11793,83 +11792,83 @@ Defaulting to \`null\`.`;
|
|
|
11793
11792
|
}
|
|
11794
11793
|
z(t2);
|
|
11795
11794
|
}
|
|
11796
|
-
},
|
|
11795
|
+
}, dJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11797
11796
|
I,
|
|
11798
11797
|
y,
|
|
11799
11798
|
M,
|
|
11800
11799
|
$
|
|
11801
|
-
]),
|
|
11802
|
-
|
|
11800
|
+
]), fJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(dJ, I, J, Q, S, t, _), [
|
|
11801
|
+
dJ,
|
|
11803
11802
|
J,
|
|
11804
11803
|
Q,
|
|
11805
11804
|
I,
|
|
11806
11805
|
S,
|
|
11807
11806
|
t,
|
|
11808
11807
|
_
|
|
11809
|
-
]),
|
|
11810
|
-
|
|
11811
|
-
},
|
|
11808
|
+
]), pJ = (e2, t2) => {
|
|
11809
|
+
uJ(I.cycle(e2, t2, $, rJ));
|
|
11810
|
+
}, mJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11812
11811
|
E,
|
|
11813
11812
|
c,
|
|
11814
11813
|
d,
|
|
11815
11814
|
f,
|
|
11816
11815
|
K
|
|
11817
|
-
]),
|
|
11816
|
+
]), hJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11818
11817
|
...e,
|
|
11819
11818
|
value: E,
|
|
11820
|
-
builtinValidation:
|
|
11821
|
-
}),
|
|
11819
|
+
builtinValidation: mJ
|
|
11820
|
+
}), gJ = hJ.displayValidation.isInvalid, _J = e.validationState || (gJ ? "invalid" : null);
|
|
11822
11821
|
return {
|
|
11823
|
-
...
|
|
11822
|
+
...hJ,
|
|
11824
11823
|
value: M,
|
|
11825
11824
|
defaultValue: e.defaultValue ?? A,
|
|
11826
|
-
dateValue:
|
|
11825
|
+
dateValue: dJ,
|
|
11827
11826
|
calendar: S,
|
|
11828
|
-
setValue:
|
|
11829
|
-
segments:
|
|
11827
|
+
setValue: uJ,
|
|
11828
|
+
segments: fJ,
|
|
11830
11829
|
dateFormatter: J,
|
|
11831
|
-
validationState:
|
|
11832
|
-
isInvalid:
|
|
11830
|
+
validationState: _J,
|
|
11831
|
+
isInvalid: gJ,
|
|
11833
11832
|
granularity: _,
|
|
11834
11833
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11835
11834
|
isDisabled: a,
|
|
11836
11835
|
isReadOnly: o,
|
|
11837
11836
|
isRequired: s,
|
|
11838
11837
|
increment(e2) {
|
|
11839
|
-
|
|
11838
|
+
pJ(e2, 1);
|
|
11840
11839
|
},
|
|
11841
11840
|
decrement(e2) {
|
|
11842
|
-
|
|
11841
|
+
pJ(e2, -1);
|
|
11843
11842
|
},
|
|
11844
11843
|
incrementPage(e2) {
|
|
11845
|
-
|
|
11844
|
+
pJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11846
11845
|
},
|
|
11847
11846
|
decrementPage(e2) {
|
|
11848
|
-
|
|
11847
|
+
pJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11849
11848
|
},
|
|
11850
11849
|
incrementToMax(e2) {
|
|
11851
11850
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11852
|
-
|
|
11851
|
+
uJ(I.set(e2, t2, $));
|
|
11853
11852
|
},
|
|
11854
11853
|
decrementToMin(e2) {
|
|
11855
11854
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11856
|
-
|
|
11855
|
+
uJ(I.set(e2, t2, $));
|
|
11857
11856
|
},
|
|
11858
11857
|
setSegment(e2, t2) {
|
|
11859
|
-
|
|
11858
|
+
uJ(I.set(e2, t2, $));
|
|
11860
11859
|
},
|
|
11861
11860
|
confirmPlaceholder() {
|
|
11862
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11861
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(rJ)) {
|
|
11863
11862
|
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11864
11863
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11865
11864
|
}
|
|
11866
11865
|
},
|
|
11867
11866
|
clearSegment(e2) {
|
|
11868
11867
|
let t2 = I;
|
|
11869
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11868
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), uJ(t2);
|
|
11870
11869
|
},
|
|
11871
11870
|
formatValue(e2) {
|
|
11872
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11871
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(dJ) : "";
|
|
11873
11872
|
},
|
|
11874
11873
|
getDateFormatter(e2, t2) {
|
|
11875
11874
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11989,7 +11988,7 @@ Defaulting to \`null\`.`;
|
|
|
11989
11988
|
e.endName
|
|
11990
11989
|
]),
|
|
11991
11990
|
builtinValidation: J
|
|
11992
|
-
}), $ = Q.displayValidation.isInvalid,
|
|
11991
|
+
}), $ = Q.displayValidation.isInvalid, rJ = e.validationState || ($ ? "invalid" : null);
|
|
11993
11992
|
return {
|
|
11994
11993
|
...Q,
|
|
11995
11994
|
value: c,
|
|
@@ -12035,7 +12034,7 @@ Defaulting to \`null\`.`;
|
|
|
12035
12034
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
12036
12035
|
}), t.setOpen(n2);
|
|
12037
12036
|
},
|
|
12038
|
-
validationState:
|
|
12037
|
+
validationState: rJ,
|
|
12039
12038
|
isInvalid: $,
|
|
12040
12039
|
formatValue(t2, n2) {
|
|
12041
12040
|
if (!c || !c.start || !c.end) return null;
|
|
@@ -15907,33 +15906,33 @@ try {
|
|
|
15907
15906
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15908
15907
|
function y(e2) {
|
|
15909
15908
|
var _a2, _b, _c, _d;
|
|
15910
|
-
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), $ = !!Q && !I,
|
|
15909
|
+
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), $ = !!Q && !I, rJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15911
15910
|
h2
|
|
15912
|
-
]),
|
|
15913
|
-
|
|
15914
|
-
]),
|
|
15915
|
-
supportedColorSchemes:
|
|
15916
|
-
defaultLightColorScheme:
|
|
15917
|
-
defaultDarkColorScheme:
|
|
15911
|
+
]), iJ = rJ[t], aJ = iJ || rJ, { colorSchemes: oJ = _, components: sJ = v, cssVarPrefix: cJ } = aJ, lJ = Object.keys(oJ).filter((e3) => !!oJ[e3]).join(","), uJ = import_react.useMemo(() => lJ.split(","), [
|
|
15912
|
+
lJ
|
|
15913
|
+
]), dJ = typeof s == "string" ? s : s.light, fJ = typeof s == "string" ? s : s.dark, { mode: pJ, setMode: mJ, systemMode: hJ, lightColorScheme: gJ, darkColorScheme: _J, colorScheme: vJ, setColorScheme: yJ } = useCurrentColorScheme({
|
|
15914
|
+
supportedColorSchemes: uJ,
|
|
15915
|
+
defaultLightColorScheme: dJ,
|
|
15916
|
+
defaultDarkColorScheme: fJ,
|
|
15918
15917
|
modeStorageKey: y2,
|
|
15919
15918
|
colorSchemeStorageKey: S2,
|
|
15920
|
-
defaultMode:
|
|
15919
|
+
defaultMode: oJ[dJ] && oJ[fJ] ? U : ((_b = (_a2 = oJ[aJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = aJ.palette) == null ? void 0 : _c.mode),
|
|
15921
15920
|
storageManager: E,
|
|
15922
15921
|
storageWindow: O,
|
|
15923
15922
|
noSsr: K
|
|
15924
|
-
}),
|
|
15925
|
-
$ && (
|
|
15926
|
-
let
|
|
15923
|
+
}), bJ = pJ, xJ = vJ;
|
|
15924
|
+
$ && (bJ = Q.mode, xJ = Q.colorScheme);
|
|
15925
|
+
let SJ = import_react.useMemo(() => {
|
|
15927
15926
|
var _a3;
|
|
15928
|
-
let e3 =
|
|
15929
|
-
...
|
|
15930
|
-
components:
|
|
15931
|
-
colorSchemes:
|
|
15932
|
-
cssVarPrefix:
|
|
15927
|
+
let e3 = xJ || aJ.defaultColorScheme, t2 = ((_a3 = aJ.generateThemeVars) == null ? void 0 : _a3.call(aJ)) || aJ.vars, n2 = {
|
|
15928
|
+
...aJ,
|
|
15929
|
+
components: sJ,
|
|
15930
|
+
colorSchemes: oJ,
|
|
15931
|
+
cssVarPrefix: cJ,
|
|
15933
15932
|
vars: t2
|
|
15934
15933
|
};
|
|
15935
15934
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15936
|
-
let t3 =
|
|
15935
|
+
let t3 = oJ[e3];
|
|
15937
15936
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15938
15937
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15939
15938
|
...n2[e4],
|
|
@@ -15943,31 +15942,31 @@ try {
|
|
|
15943
15942
|
}
|
|
15944
15943
|
return c ? c(n2) : n2;
|
|
15945
15944
|
}, [
|
|
15946
|
-
|
|
15947
|
-
|
|
15948
|
-
|
|
15949
|
-
|
|
15950
|
-
|
|
15951
|
-
]),
|
|
15945
|
+
aJ,
|
|
15946
|
+
xJ,
|
|
15947
|
+
sJ,
|
|
15948
|
+
oJ,
|
|
15949
|
+
cJ
|
|
15950
|
+
]), CJ = aJ.colorSchemeSelector;
|
|
15952
15951
|
useEnhancedEffect_default(() => {
|
|
15953
|
-
if (
|
|
15954
|
-
let e3 =
|
|
15955
|
-
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(...
|
|
15952
|
+
if (xJ && M && CJ && CJ !== "media") {
|
|
15953
|
+
let e3 = CJ, t2 = CJ;
|
|
15954
|
+
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(...uJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", xJ));
|
|
15956
15955
|
else {
|
|
15957
|
-
let e4 = t2.replace("%s",
|
|
15956
|
+
let e4 = t2.replace("%s", xJ).match(/\[([^\]]+)\]/);
|
|
15958
15957
|
if (e4) {
|
|
15959
15958
|
let [t3, n2] = e4[1].split("=");
|
|
15960
|
-
n2 ||
|
|
15961
|
-
M.removeAttribute(t3.replace(
|
|
15959
|
+
n2 || uJ.forEach((e5) => {
|
|
15960
|
+
M.removeAttribute(t3.replace(xJ, e5));
|
|
15962
15961
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15963
|
-
} else M.setAttribute(t2,
|
|
15962
|
+
} else M.setAttribute(t2, xJ);
|
|
15964
15963
|
}
|
|
15965
15964
|
}
|
|
15966
15965
|
}, [
|
|
15967
|
-
|
|
15968
|
-
|
|
15966
|
+
xJ,
|
|
15967
|
+
CJ,
|
|
15969
15968
|
M,
|
|
15970
|
-
|
|
15969
|
+
uJ
|
|
15971
15970
|
]), import_react.useEffect(() => {
|
|
15972
15971
|
let e3;
|
|
15973
15972
|
if (w2 && q.current && A) {
|
|
@@ -15980,48 +15979,48 @@ try {
|
|
|
15980
15979
|
clearTimeout(e3);
|
|
15981
15980
|
};
|
|
15982
15981
|
}, [
|
|
15983
|
-
|
|
15982
|
+
xJ,
|
|
15984
15983
|
w2,
|
|
15985
15984
|
A
|
|
15986
15985
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
15987
15986
|
q.current = false;
|
|
15988
15987
|
}), []);
|
|
15989
|
-
let
|
|
15990
|
-
allColorSchemes:
|
|
15991
|
-
colorScheme:
|
|
15992
|
-
darkColorScheme:
|
|
15993
|
-
lightColorScheme:
|
|
15994
|
-
mode:
|
|
15995
|
-
setColorScheme:
|
|
15996
|
-
setMode:
|
|
15997
|
-
systemMode:
|
|
15988
|
+
let wJ = import_react.useMemo(() => ({
|
|
15989
|
+
allColorSchemes: uJ,
|
|
15990
|
+
colorScheme: xJ,
|
|
15991
|
+
darkColorScheme: _J,
|
|
15992
|
+
lightColorScheme: gJ,
|
|
15993
|
+
mode: bJ,
|
|
15994
|
+
setColorScheme: yJ,
|
|
15995
|
+
setMode: mJ,
|
|
15996
|
+
systemMode: hJ
|
|
15998
15997
|
}), [
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
mJ,
|
|
16002
|
-
pJ,
|
|
15998
|
+
uJ,
|
|
15999
|
+
xJ,
|
|
16003
16000
|
_J,
|
|
16004
16001
|
gJ,
|
|
16005
|
-
|
|
16006
|
-
|
|
16007
|
-
|
|
16008
|
-
|
|
16009
|
-
|
|
16010
|
-
|
|
16002
|
+
bJ,
|
|
16003
|
+
yJ,
|
|
16004
|
+
mJ,
|
|
16005
|
+
hJ,
|
|
16006
|
+
SJ.colorSchemeSelector
|
|
16007
|
+
]), TJ = true;
|
|
16008
|
+
(z || aJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === cJ) && (TJ = false);
|
|
16009
|
+
let EJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16011
16010
|
children: [
|
|
16012
16011
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
16013
|
-
themeId:
|
|
16014
|
-
theme:
|
|
16012
|
+
themeId: iJ ? t : void 0,
|
|
16013
|
+
theme: SJ,
|
|
16015
16014
|
children: d2
|
|
16016
16015
|
}),
|
|
16017
|
-
|
|
16018
|
-
styles: ((_d =
|
|
16016
|
+
TJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
16017
|
+
styles: ((_d = SJ.generateStyleSheets) == null ? void 0 : _d.call(SJ)) || []
|
|
16019
16018
|
})
|
|
16020
16019
|
]
|
|
16021
16020
|
});
|
|
16022
|
-
return $ ?
|
|
16023
|
-
value:
|
|
16024
|
-
children:
|
|
16021
|
+
return $ ? EJ : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
16022
|
+
value: wJ,
|
|
16023
|
+
children: EJ
|
|
16025
16024
|
});
|
|
16026
16025
|
}
|
|
16027
16026
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17521,10 +17520,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17521
17520
|
let n = useDefaultProps({
|
|
17522
17521
|
props: e,
|
|
17523
17522
|
name: "MuiInputBase"
|
|
17524
|
-
}), { "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: $, onFocus:
|
|
17525
|
-
}, []),
|
|
17523
|
+
}), { "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: $, onFocus: rJ, onKeyDown: iJ, onKeyUp: aJ, placeholder: oJ, readOnly: sJ, renderSuffix: cJ, rows: lJ, size: uJ, slotProps: dJ = {}, slots: fJ = {}, startAdornment: pJ, type: mJ = "text", value: hJ, ...gJ } = n, _J = A.value == null ? hJ : A.value, { current: vJ } = import_react.useRef(_J != null), yJ = import_react.useRef(), bJ = import_react.useCallback((e2) => {
|
|
17524
|
+
}, []), xJ = useForkRef_default(yJ, M, A.ref, bJ), [SJ, CJ] = import_react.useState(false), wJ = useFormControl(), TJ = formControlState({
|
|
17526
17525
|
props: n,
|
|
17527
|
-
muiFormControl:
|
|
17526
|
+
muiFormControl: wJ,
|
|
17528
17527
|
states: [
|
|
17529
17528
|
"color",
|
|
17530
17529
|
"disabled",
|
|
@@ -17535,145 +17534,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17535
17534
|
"filled"
|
|
17536
17535
|
]
|
|
17537
17536
|
});
|
|
17538
|
-
|
|
17539
|
-
!
|
|
17537
|
+
TJ.focused = wJ ? wJ.focused : SJ, import_react.useEffect(() => {
|
|
17538
|
+
!wJ && _ && SJ && (CJ(false), J && J());
|
|
17540
17539
|
}, [
|
|
17541
|
-
|
|
17540
|
+
wJ,
|
|
17542
17541
|
_,
|
|
17543
|
-
|
|
17542
|
+
SJ,
|
|
17544
17543
|
J
|
|
17545
17544
|
]);
|
|
17546
|
-
let
|
|
17547
|
-
isFilled(e2) ?
|
|
17545
|
+
let EJ = wJ && wJ.onFilled, DJ = wJ && wJ.onEmpty, OJ = import_react.useCallback((e2) => {
|
|
17546
|
+
isFilled(e2) ? EJ && EJ() : DJ && DJ();
|
|
17548
17547
|
}, [
|
|
17549
|
-
|
|
17550
|
-
|
|
17548
|
+
EJ,
|
|
17549
|
+
DJ
|
|
17551
17550
|
]);
|
|
17552
17551
|
useEnhancedEffect_default$1(() => {
|
|
17553
|
-
|
|
17554
|
-
value:
|
|
17552
|
+
vJ && OJ({
|
|
17553
|
+
value: _J
|
|
17555
17554
|
});
|
|
17556
17555
|
}, [
|
|
17557
|
-
|
|
17558
|
-
|
|
17559
|
-
|
|
17556
|
+
_J,
|
|
17557
|
+
OJ,
|
|
17558
|
+
vJ
|
|
17560
17559
|
]);
|
|
17561
|
-
let
|
|
17562
|
-
|
|
17563
|
-
},
|
|
17564
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17565
|
-
},
|
|
17566
|
-
if (!
|
|
17567
|
-
let t3 = e2.target ||
|
|
17560
|
+
let kJ = (e2) => {
|
|
17561
|
+
rJ && rJ(e2), A.onFocus && A.onFocus(e2), wJ && wJ.onFocus ? wJ.onFocus(e2) : CJ(true);
|
|
17562
|
+
}, AJ = (e2) => {
|
|
17563
|
+
J && J(e2), A.onBlur && A.onBlur(e2), wJ && wJ.onBlur ? wJ.onBlur(e2) : CJ(false);
|
|
17564
|
+
}, jJ = (e2, ...t2) => {
|
|
17565
|
+
if (!vJ) {
|
|
17566
|
+
let t3 = e2.target || yJ.current;
|
|
17568
17567
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17569
|
-
|
|
17568
|
+
OJ({
|
|
17570
17569
|
value: t3.value
|
|
17571
17570
|
});
|
|
17572
17571
|
}
|
|
17573
17572
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17574
17573
|
};
|
|
17575
17574
|
import_react.useEffect(() => {
|
|
17576
|
-
|
|
17575
|
+
OJ(yJ.current);
|
|
17577
17576
|
}, []);
|
|
17578
|
-
let
|
|
17579
|
-
|
|
17580
|
-
},
|
|
17581
|
-
K &&
|
|
17577
|
+
let MJ = (e2) => {
|
|
17578
|
+
yJ.current && e2.currentTarget === e2.target && yJ.current.focus(), $ && $(e2);
|
|
17579
|
+
}, NJ = O, PJ = A;
|
|
17580
|
+
K && NJ === "input" && (PJ = lJ ? {
|
|
17582
17581
|
type: void 0,
|
|
17583
|
-
minRows:
|
|
17584
|
-
maxRows:
|
|
17585
|
-
...
|
|
17582
|
+
minRows: lJ,
|
|
17583
|
+
maxRows: lJ,
|
|
17584
|
+
...PJ
|
|
17586
17585
|
} : {
|
|
17587
17586
|
type: void 0,
|
|
17588
17587
|
maxRows: z,
|
|
17589
17588
|
minRows: U,
|
|
17590
|
-
...
|
|
17591
|
-
},
|
|
17592
|
-
let
|
|
17593
|
-
|
|
17589
|
+
...PJ
|
|
17590
|
+
}, NJ = TextareaAutosize_default);
|
|
17591
|
+
let FJ = (e2) => {
|
|
17592
|
+
OJ(e2.animationName === "mui-auto-fill-cancel" ? yJ.current : {
|
|
17594
17593
|
value: "x"
|
|
17595
17594
|
});
|
|
17596
17595
|
};
|
|
17597
17596
|
import_react.useEffect(() => {
|
|
17598
|
-
|
|
17597
|
+
wJ && wJ.setAdornedStart(!!pJ);
|
|
17599
17598
|
}, [
|
|
17600
|
-
|
|
17601
|
-
|
|
17599
|
+
wJ,
|
|
17600
|
+
pJ
|
|
17602
17601
|
]);
|
|
17603
|
-
let
|
|
17602
|
+
let IJ = {
|
|
17604
17603
|
...n,
|
|
17605
|
-
color:
|
|
17606
|
-
disabled:
|
|
17604
|
+
color: TJ.color || "primary",
|
|
17605
|
+
disabled: TJ.disabled,
|
|
17607
17606
|
endAdornment: y,
|
|
17608
|
-
error:
|
|
17609
|
-
focused:
|
|
17610
|
-
formControl:
|
|
17607
|
+
error: TJ.error,
|
|
17608
|
+
focused: TJ.focused,
|
|
17609
|
+
formControl: wJ,
|
|
17611
17610
|
fullWidth: w,
|
|
17612
|
-
hiddenLabel:
|
|
17611
|
+
hiddenLabel: TJ.hiddenLabel,
|
|
17613
17612
|
multiline: K,
|
|
17614
|
-
size:
|
|
17615
|
-
startAdornment:
|
|
17616
|
-
type:
|
|
17617
|
-
},
|
|
17618
|
-
return
|
|
17619
|
-
...
|
|
17620
|
-
...
|
|
17613
|
+
size: TJ.size,
|
|
17614
|
+
startAdornment: pJ,
|
|
17615
|
+
type: mJ
|
|
17616
|
+
}, LJ = useUtilityClasses(IJ), RJ = fJ.root || d.Root || InputBaseRoot, zJ = dJ.root || f.root || {}, BJ = fJ.input || d.Input || InputBaseInput;
|
|
17617
|
+
return PJ = {
|
|
17618
|
+
...PJ,
|
|
17619
|
+
...dJ.input ?? f.input
|
|
17621
17620
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17622
17621
|
children: [
|
|
17623
17622
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17624
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17625
|
-
...
|
|
17623
|
+
(0, import_jsx_runtime.jsxs)(RJ, {
|
|
17624
|
+
...zJ,
|
|
17626
17625
|
ref: t,
|
|
17627
|
-
onClick:
|
|
17628
|
-
...
|
|
17629
|
-
...!isHostComponent_default(
|
|
17626
|
+
onClick: MJ,
|
|
17627
|
+
...gJ,
|
|
17628
|
+
...!isHostComponent_default(RJ) && {
|
|
17630
17629
|
ownerState: {
|
|
17631
|
-
...
|
|
17632
|
-
...
|
|
17630
|
+
...IJ,
|
|
17631
|
+
...zJ.ownerState
|
|
17633
17632
|
}
|
|
17634
17633
|
},
|
|
17635
|
-
className: clsx_default(
|
|
17634
|
+
className: clsx_default(LJ.root, zJ.className, s, sJ && "MuiInputBase-readOnly"),
|
|
17636
17635
|
children: [
|
|
17637
|
-
|
|
17636
|
+
pJ,
|
|
17638
17637
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17639
17638
|
value: null,
|
|
17640
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17641
|
-
"aria-invalid":
|
|
17639
|
+
children: (0, import_jsx_runtime.jsx)(BJ, {
|
|
17640
|
+
"aria-invalid": TJ.error,
|
|
17642
17641
|
"aria-describedby": i,
|
|
17643
17642
|
autoComplete: a,
|
|
17644
17643
|
autoFocus: o,
|
|
17645
17644
|
defaultValue: h,
|
|
17646
|
-
disabled:
|
|
17645
|
+
disabled: TJ.disabled,
|
|
17647
17646
|
id: E,
|
|
17648
|
-
onAnimationStart:
|
|
17647
|
+
onAnimationStart: FJ,
|
|
17649
17648
|
name: q,
|
|
17650
|
-
placeholder:
|
|
17651
|
-
readOnly:
|
|
17652
|
-
required:
|
|
17653
|
-
rows:
|
|
17654
|
-
value:
|
|
17655
|
-
onKeyDown:
|
|
17656
|
-
onKeyUp:
|
|
17657
|
-
type:
|
|
17658
|
-
...
|
|
17659
|
-
...!isHostComponent_default(
|
|
17660
|
-
as:
|
|
17649
|
+
placeholder: oJ,
|
|
17650
|
+
readOnly: sJ,
|
|
17651
|
+
required: TJ.required,
|
|
17652
|
+
rows: lJ,
|
|
17653
|
+
value: _J,
|
|
17654
|
+
onKeyDown: iJ,
|
|
17655
|
+
onKeyUp: aJ,
|
|
17656
|
+
type: mJ,
|
|
17657
|
+
...PJ,
|
|
17658
|
+
...!isHostComponent_default(BJ) && {
|
|
17659
|
+
as: NJ,
|
|
17661
17660
|
ownerState: {
|
|
17662
|
-
...
|
|
17663
|
-
...
|
|
17661
|
+
...IJ,
|
|
17662
|
+
...PJ.ownerState
|
|
17664
17663
|
}
|
|
17665
17664
|
},
|
|
17666
|
-
ref:
|
|
17667
|
-
className: clsx_default(
|
|
17668
|
-
onBlur:
|
|
17669
|
-
onChange:
|
|
17670
|
-
onFocus:
|
|
17665
|
+
ref: xJ,
|
|
17666
|
+
className: clsx_default(LJ.input, PJ.className, sJ && "MuiInputBase-readOnly"),
|
|
17667
|
+
onBlur: AJ,
|
|
17668
|
+
onChange: jJ,
|
|
17669
|
+
onFocus: kJ
|
|
17671
17670
|
})
|
|
17672
17671
|
}),
|
|
17673
17672
|
y,
|
|
17674
|
-
|
|
17675
|
-
...
|
|
17676
|
-
startAdornment:
|
|
17673
|
+
cJ ? cJ({
|
|
17674
|
+
...TJ,
|
|
17675
|
+
startAdornment: pJ
|
|
17677
17676
|
}) : null
|
|
17678
17677
|
]
|
|
17679
17678
|
})
|
|
@@ -18749,30 +18748,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18749
18748
|
M,
|
|
18750
18749
|
i,
|
|
18751
18750
|
a
|
|
18752
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange),
|
|
18753
|
-
|
|
18751
|
+
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), rJ = useTextColor(), iJ = useJsonViewerStore((e2) => e2.colorspace.base0C), aJ = useJsonViewerStore((e2) => e2.colorspace.base0A), oJ = useJsonViewerStore((e2) => e2.displayComma), sJ = useJsonViewerStore((e2) => e2.quotesOnKeys), cJ = useJsonViewerStore((e2) => e2.rootName), lJ = U === t, uJ = Number.isInteger(Number(A)), dJ = useJsonViewerStore((e2) => e2.enableAdd), fJ = useJsonViewerStore((e2) => e2.onAdd), pJ = (0, import_react.useMemo)(() => !fJ || a !== void 0 || dJ === false || v === false ? false : typeof dJ == "function" ? !!dJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18752
|
+
fJ,
|
|
18754
18753
|
a,
|
|
18755
18754
|
i,
|
|
18756
|
-
|
|
18755
|
+
dJ,
|
|
18757
18756
|
v,
|
|
18758
18757
|
t
|
|
18759
|
-
]),
|
|
18760
|
-
|
|
18758
|
+
]), mJ = useJsonViewerStore((e2) => e2.enableDelete), hJ = useJsonViewerStore((e2) => e2.onDelete), gJ = (0, import_react.useMemo)(() => !hJ || a !== void 0 || lJ || mJ === false || v === false ? false : typeof mJ == "function" ? !!mJ(i, t) : mJ, [
|
|
18759
|
+
hJ,
|
|
18761
18760
|
a,
|
|
18762
|
-
|
|
18761
|
+
lJ,
|
|
18763
18762
|
i,
|
|
18764
|
-
|
|
18763
|
+
mJ,
|
|
18765
18764
|
v,
|
|
18766
18765
|
t
|
|
18767
|
-
]),
|
|
18768
|
-
|
|
18766
|
+
]), _J = useJsonViewerStore((e2) => e2.enableClipboard), { copy: vJ, copied: yJ } = useClipboard(), bJ = useJsonViewerStore((e2) => e2.highlightUpdates), xJ = (0, import_react.useMemo)(() => !bJ || 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, [
|
|
18767
|
+
bJ,
|
|
18769
18768
|
n,
|
|
18770
18769
|
t
|
|
18771
|
-
]),
|
|
18770
|
+
]), SJ = (0, import_react.useRef)();
|
|
18772
18771
|
(0, import_react.useEffect)(() => {
|
|
18773
|
-
|
|
18772
|
+
SJ.current && xJ && "animate" in SJ.current && SJ.current.animate([
|
|
18774
18773
|
{
|
|
18775
|
-
backgroundColor:
|
|
18774
|
+
backgroundColor: aJ
|
|
18776
18775
|
},
|
|
18777
18776
|
{
|
|
18778
18777
|
backgroundColor: ""
|
|
@@ -18782,22 +18781,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18782
18781
|
easing: "ease-in"
|
|
18783
18782
|
});
|
|
18784
18783
|
}, [
|
|
18785
|
-
|
|
18786
|
-
|
|
18784
|
+
aJ,
|
|
18785
|
+
xJ,
|
|
18787
18786
|
n,
|
|
18788
18787
|
t
|
|
18789
18788
|
]);
|
|
18790
|
-
let
|
|
18789
|
+
let CJ = (0, import_react.useCallback)((e2) => {
|
|
18791
18790
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18792
18791
|
}, [
|
|
18793
18792
|
h,
|
|
18794
18793
|
t
|
|
18795
|
-
]),
|
|
18794
|
+
]), wJ = (0, import_react.useCallback)(() => {
|
|
18796
18795
|
Q(false), E("");
|
|
18797
18796
|
}, [
|
|
18798
18797
|
Q,
|
|
18799
18798
|
E
|
|
18800
|
-
]),
|
|
18799
|
+
]), TJ = (0, import_react.useCallback)((e2) => {
|
|
18801
18800
|
if (Q(false), _) try {
|
|
18802
18801
|
$(i, t, _(e2));
|
|
18803
18802
|
} catch {
|
|
@@ -18808,14 +18807,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18808
18807
|
$,
|
|
18809
18808
|
i,
|
|
18810
18809
|
t
|
|
18811
|
-
]),
|
|
18810
|
+
]), EJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18812
18811
|
children: [
|
|
18813
18812
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18814
18813
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18815
18814
|
sx: {
|
|
18816
18815
|
fontSize: ".8rem"
|
|
18817
18816
|
},
|
|
18818
|
-
onClick:
|
|
18817
|
+
onClick: wJ
|
|
18819
18818
|
})
|
|
18820
18819
|
}),
|
|
18821
18820
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18823,22 +18822,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18823
18822
|
sx: {
|
|
18824
18823
|
fontSize: ".8rem"
|
|
18825
18824
|
},
|
|
18826
|
-
onClick: () =>
|
|
18825
|
+
onClick: () => TJ(w)
|
|
18827
18826
|
})
|
|
18828
18827
|
})
|
|
18829
18828
|
]
|
|
18830
18829
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18831
18830
|
children: [
|
|
18832
|
-
|
|
18831
|
+
_J && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18833
18832
|
onClick: (e2) => {
|
|
18834
18833
|
e2.preventDefault();
|
|
18835
18834
|
try {
|
|
18836
|
-
|
|
18835
|
+
vJ(i, t, copyString);
|
|
18837
18836
|
} catch (e3) {
|
|
18838
18837
|
console.error(e3);
|
|
18839
18838
|
}
|
|
18840
18839
|
},
|
|
18841
|
-
children:
|
|
18840
|
+
children: yJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18842
18841
|
sx: {
|
|
18843
18842
|
fontSize: ".8rem"
|
|
18844
18843
|
}
|
|
@@ -18849,16 +18848,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18849
18848
|
})
|
|
18850
18849
|
}),
|
|
18851
18850
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18852
|
-
onClick:
|
|
18851
|
+
onClick: CJ,
|
|
18853
18852
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18854
18853
|
sx: {
|
|
18855
18854
|
fontSize: ".8rem"
|
|
18856
18855
|
}
|
|
18857
18856
|
})
|
|
18858
18857
|
}),
|
|
18859
|
-
|
|
18858
|
+
pJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18860
18859
|
onClick: (e2) => {
|
|
18861
|
-
e2.preventDefault(),
|
|
18860
|
+
e2.preventDefault(), fJ == null ? void 0 : fJ(i);
|
|
18862
18861
|
},
|
|
18863
18862
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18864
18863
|
sx: {
|
|
@@ -18866,9 +18865,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18866
18865
|
}
|
|
18867
18866
|
})
|
|
18868
18867
|
}),
|
|
18869
|
-
|
|
18868
|
+
gJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18870
18869
|
onClick: (e2) => {
|
|
18871
|
-
e2.preventDefault(),
|
|
18870
|
+
e2.preventDefault(), hJ == null ? void 0 : hJ(i, t);
|
|
18872
18871
|
},
|
|
18873
18872
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18874
18873
|
sx: {
|
|
@@ -18881,24 +18880,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18881
18880
|
f,
|
|
18882
18881
|
h,
|
|
18883
18882
|
_,
|
|
18884
|
-
|
|
18885
|
-
|
|
18883
|
+
yJ,
|
|
18884
|
+
vJ,
|
|
18886
18885
|
S,
|
|
18887
18886
|
J,
|
|
18888
|
-
|
|
18889
|
-
uJ,
|
|
18887
|
+
_J,
|
|
18890
18888
|
pJ,
|
|
18889
|
+
gJ,
|
|
18891
18890
|
w,
|
|
18892
18891
|
i,
|
|
18893
18892
|
t,
|
|
18894
|
-
lJ,
|
|
18895
18893
|
fJ,
|
|
18896
|
-
|
|
18897
|
-
|
|
18898
|
-
|
|
18899
|
-
|
|
18894
|
+
hJ,
|
|
18895
|
+
CJ,
|
|
18896
|
+
wJ,
|
|
18897
|
+
TJ
|
|
18898
|
+
]), DJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18900
18899
|
t
|
|
18901
|
-
]),
|
|
18900
|
+
]), OJ = !DJ && !!(c && d), kJ = useJsonViewerStore((e2) => e2.keyRenderer), AJ = (0, import_react.useMemo)(() => ({
|
|
18902
18901
|
path: i,
|
|
18903
18902
|
inspect: K,
|
|
18904
18903
|
setInspect: q,
|
|
@@ -18930,18 +18929,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18930
18929
|
className: "data-key",
|
|
18931
18930
|
sx: {
|
|
18932
18931
|
lineHeight: 1.5,
|
|
18933
|
-
color:
|
|
18932
|
+
color: rJ,
|
|
18934
18933
|
letterSpacing: 0.5,
|
|
18935
18934
|
opacity: 0.8
|
|
18936
18935
|
},
|
|
18937
18936
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18938
|
-
e2.isDefaultPrevented() ||
|
|
18937
|
+
e2.isDefaultPrevented() || DJ || q((e3) => !e3);
|
|
18939
18938
|
}, [
|
|
18940
|
-
|
|
18939
|
+
DJ,
|
|
18941
18940
|
q
|
|
18942
18941
|
]),
|
|
18943
18942
|
children: [
|
|
18944
|
-
|
|
18943
|
+
OJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18945
18944
|
className: "data-key-toggle-expanded",
|
|
18946
18945
|
sx: {
|
|
18947
18946
|
fontSize: ".8rem",
|
|
@@ -18959,27 +18958,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18959
18958
|
}
|
|
18960
18959
|
}) : null,
|
|
18961
18960
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18962
|
-
ref:
|
|
18961
|
+
ref: SJ,
|
|
18963
18962
|
className: "data-key-key",
|
|
18964
18963
|
component: "span",
|
|
18965
|
-
children:
|
|
18964
|
+
children: lJ && O === 0 ? cJ === false ? null : sJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18966
18965
|
children: [
|
|
18967
18966
|
'"',
|
|
18968
|
-
|
|
18967
|
+
cJ,
|
|
18969
18968
|
'"'
|
|
18970
18969
|
]
|
|
18971
18970
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18972
|
-
children:
|
|
18973
|
-
}) :
|
|
18974
|
-
...
|
|
18975
|
-
}) : a === void 0 && (
|
|
18971
|
+
children: cJ
|
|
18972
|
+
}) : kJ.when(AJ) ? (0, import_jsx_runtime.jsx)(kJ, {
|
|
18973
|
+
...AJ
|
|
18974
|
+
}) : a === void 0 && (uJ ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18976
18975
|
component: "span",
|
|
18977
18976
|
style: {
|
|
18978
|
-
color:
|
|
18979
|
-
userSelect:
|
|
18977
|
+
color: iJ,
|
|
18978
|
+
userSelect: uJ ? "none" : "auto"
|
|
18980
18979
|
},
|
|
18981
18980
|
children: A
|
|
18982
|
-
}) :
|
|
18981
|
+
}) : sJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18983
18982
|
children: [
|
|
18984
18983
|
'"',
|
|
18985
18984
|
A,
|
|
@@ -18989,7 +18988,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18989
18988
|
children: A
|
|
18990
18989
|
}))
|
|
18991
18990
|
}),
|
|
18992
|
-
|
|
18991
|
+
lJ ? cJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18993
18992
|
className: "data-key-colon",
|
|
18994
18993
|
sx: {
|
|
18995
18994
|
mr: 0.5
|
|
@@ -19002,38 +19001,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19002
19001
|
".data-key-key:empty + &": {
|
|
19003
19002
|
display: "none"
|
|
19004
19003
|
},
|
|
19005
|
-
userSelect:
|
|
19004
|
+
userSelect: uJ ? "none" : "auto"
|
|
19006
19005
|
},
|
|
19007
19006
|
children: ":"
|
|
19008
19007
|
}),
|
|
19009
19008
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
19010
|
-
...
|
|
19009
|
+
...AJ
|
|
19011
19010
|
}),
|
|
19012
|
-
I &&
|
|
19011
|
+
I && OJ && K && EJ
|
|
19013
19012
|
]
|
|
19014
19013
|
}),
|
|
19015
19014
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
19016
19015
|
path: i,
|
|
19017
19016
|
value: w,
|
|
19018
19017
|
setValue: E,
|
|
19019
|
-
abortEditing:
|
|
19020
|
-
commitEditing:
|
|
19018
|
+
abortEditing: wJ,
|
|
19019
|
+
commitEditing: TJ
|
|
19021
19020
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
19022
|
-
...
|
|
19021
|
+
...AJ
|
|
19023
19022
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
19024
19023
|
component: "span",
|
|
19025
19024
|
className: "data-value-fallback",
|
|
19026
19025
|
children: `fallback: ${t}`
|
|
19027
19026
|
}),
|
|
19028
19027
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
19029
|
-
...
|
|
19028
|
+
...AJ
|
|
19030
19029
|
}),
|
|
19031
|
-
!o &&
|
|
19030
|
+
!o && oJ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19032
19031
|
children: ","
|
|
19033
19032
|
}),
|
|
19034
|
-
I &&
|
|
19035
|
-
I && !
|
|
19036
|
-
!I && J &&
|
|
19033
|
+
I && OJ && !K && EJ,
|
|
19034
|
+
I && !OJ && EJ,
|
|
19035
|
+
!I && J && EJ
|
|
19037
19036
|
]
|
|
19038
19037
|
});
|
|
19039
19038
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -20112,7 +20111,7 @@ ${n}` : "Please fix this error.";
|
|
|
20112
20111
|
else if (n.some(_temp3$5)) d = "Ancestor prevented from running", f = "default", _ = "text-secondary-foreground";
|
|
20113
20112
|
else if (n.some(_temp4$5)) d = "Ancestor stopped", f = "default", _ = "text-secondary-foreground";
|
|
20114
20113
|
else if (n.some(_temp5$3)) d = "SQL error";
|
|
20115
|
-
else if (n.some(_temp6$
|
|
20114
|
+
else if (n.some(_temp6$3)) d = null, v = "Cell not run";
|
|
20116
20115
|
else {
|
|
20117
20116
|
let e2;
|
|
20118
20117
|
t[0] === n ? e2 = t[1] : (e2 = n.find(_temp7$1), t[0] = n, t[1] = e2);
|
|
@@ -20121,18 +20120,18 @@ ${n}` : "Please fix this error.";
|
|
|
20121
20120
|
}
|
|
20122
20121
|
let y, S, w, E, O, A;
|
|
20123
20122
|
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) {
|
|
20124
|
-
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),
|
|
20125
|
-
t[17] === s ?
|
|
20123
|
+
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), $ = n.filter(_temp15), rJ = n.filter(_temp16), iJ = n.filter(_temp17), aJ = n.filter(_temp18), oJ;
|
|
20124
|
+
t[17] === s ? oJ = t[18] : (oJ = () => {
|
|
20126
20125
|
s.openApplication("scratchpad");
|
|
20127
|
-
}, t[17] = s, t[18] =
|
|
20128
|
-
let
|
|
20126
|
+
}, t[17] = s, t[18] = oJ);
|
|
20127
|
+
let sJ = oJ, cJ = () => {
|
|
20129
20128
|
let t2 = [];
|
|
20130
|
-
if (
|
|
20131
|
-
let e3 =
|
|
20129
|
+
if (rJ.length > 0 || iJ.length > 0) {
|
|
20130
|
+
let e3 = rJ.some(_temp19), n2 = !e3 && rJ.some(_temp20);
|
|
20132
20131
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20133
20132
|
children: [
|
|
20134
|
-
|
|
20135
|
-
|
|
20133
|
+
rJ.map(_temp21),
|
|
20134
|
+
iJ.map(_temp22),
|
|
20136
20135
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
20137
20136
|
size: "xs",
|
|
20138
20137
|
variant: "outline",
|
|
@@ -20163,8 +20162,8 @@ ${n}` : "Please fix this error.";
|
|
|
20163
20162
|
}),
|
|
20164
20163
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20165
20164
|
errors: [
|
|
20166
|
-
...
|
|
20167
|
-
...
|
|
20165
|
+
...rJ,
|
|
20166
|
+
...iJ
|
|
20168
20167
|
],
|
|
20169
20168
|
cellId: i
|
|
20170
20169
|
})
|
|
@@ -20325,7 +20324,7 @@ ${n}` : "Please fix this error.";
|
|
|
20325
20324
|
size: "xs",
|
|
20326
20325
|
variant: "link",
|
|
20327
20326
|
className: "my-2 font-normal mx-0 px-0",
|
|
20328
|
-
onClick:
|
|
20327
|
+
onClick: sJ,
|
|
20329
20328
|
children: [
|
|
20330
20329
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20331
20330
|
className: "h-3"
|
|
@@ -20500,42 +20499,42 @@ ${n}` : "Please fix this error.";
|
|
|
20500
20499
|
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."
|
|
20501
20500
|
})
|
|
20502
20501
|
]
|
|
20503
|
-
}, "strict-exception")),
|
|
20502
|
+
}, "strict-exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20504
20503
|
children: [
|
|
20505
|
-
|
|
20504
|
+
J.map(_temp32),
|
|
20506
20505
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20507
|
-
errors:
|
|
20506
|
+
errors: J,
|
|
20508
20507
|
cellId: i
|
|
20509
20508
|
})
|
|
20510
20509
|
]
|
|
20511
|
-
}, "internal")),
|
|
20510
|
+
}, "internal")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20512
20511
|
children: [
|
|
20513
|
-
|
|
20512
|
+
Q.map(_temp33),
|
|
20514
20513
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20515
|
-
errors:
|
|
20514
|
+
errors: Q,
|
|
20516
20515
|
cellId: i
|
|
20517
20516
|
})
|
|
20518
20517
|
]
|
|
20519
|
-
}, "ancestor-prevented")),
|
|
20518
|
+
}, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20520
20519
|
children: [
|
|
20521
|
-
|
|
20520
|
+
$.map(_temp34),
|
|
20522
20521
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20523
|
-
errors:
|
|
20522
|
+
errors: $,
|
|
20524
20523
|
cellId: i
|
|
20525
20524
|
})
|
|
20526
20525
|
]
|
|
20527
|
-
}, "ancestor-stopped")),
|
|
20526
|
+
}, "ancestor-stopped")), aJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20528
20527
|
children: [
|
|
20529
|
-
|
|
20528
|
+
aJ.map(_temp35),
|
|
20530
20529
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20531
|
-
errors:
|
|
20530
|
+
errors: aJ,
|
|
20532
20531
|
cellId: i,
|
|
20533
20532
|
className: "mt-2.5"
|
|
20534
20533
|
})
|
|
20535
20534
|
]
|
|
20536
20535
|
}, "sql-errors")), t2;
|
|
20537
|
-
},
|
|
20538
|
-
t[19] === v ?
|
|
20536
|
+
}, lJ;
|
|
20537
|
+
t[19] === v ? lJ = t[20] : (lJ = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20539
20538
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20540
20539
|
children: [
|
|
20541
20540
|
v,
|
|
@@ -20547,22 +20546,22 @@ ${n}` : "Please fix this error.";
|
|
|
20547
20546
|
})
|
|
20548
20547
|
})
|
|
20549
20548
|
]
|
|
20550
|
-
}), t[19] = v, t[20] =
|
|
20551
|
-
let
|
|
20552
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20549
|
+
}), t[19] = v, t[20] = lJ);
|
|
20550
|
+
let uJ;
|
|
20551
|
+
t[21] !== _ || t[22] !== d ? (uJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20553
20552
|
className: `font-code font-medium ${_}`,
|
|
20554
20553
|
children: d
|
|
20555
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20556
|
-
let
|
|
20557
|
-
t[24] !==
|
|
20554
|
+
}), t[21] = _, t[22] = d, t[23] = uJ) : uJ = t[23];
|
|
20555
|
+
let dJ;
|
|
20556
|
+
t[24] !== lJ || t[25] !== uJ ? (dJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
20558
20557
|
className: "space-y-0.5",
|
|
20559
20558
|
children: [
|
|
20560
|
-
|
|
20561
|
-
|
|
20559
|
+
lJ,
|
|
20560
|
+
uJ
|
|
20562
20561
|
]
|
|
20563
|
-
}), t[24] =
|
|
20564
|
-
let
|
|
20565
|
-
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 =
|
|
20562
|
+
}), t[24] = lJ, t[25] = uJ, t[26] = dJ) : dJ = t[26];
|
|
20563
|
+
let fJ = dJ;
|
|
20564
|
+
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 = fJ, S = "flex flex-col gap-4", w = cJ(), 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;
|
|
20566
20565
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20567
20566
|
let M;
|
|
20568
20567
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -20594,7 +20593,7 @@ ${n}` : "Please fix this error.";
|
|
|
20594
20593
|
function _temp5$3(e) {
|
|
20595
20594
|
return e.type === "sql-error";
|
|
20596
20595
|
}
|
|
20597
|
-
function _temp6$
|
|
20596
|
+
function _temp6$3(e) {
|
|
20598
20597
|
return e.type === "multiple-defs" || e.type === "cycle" || e.type === "setup-refs" || e.type === "import-star";
|
|
20599
20598
|
}
|
|
20600
20599
|
function _temp7$1(e) {
|
|
@@ -26614,7 +26613,7 @@ ${n}` : "Please fix this error.";
|
|
|
26614
26613
|
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 }) {
|
|
26615
26614
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26616
26615
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26617
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
26616
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), rJ = (0, import_react.useRef)({
|
|
26618
26617
|
callbacks: {
|
|
26619
26618
|
onCollapse: f,
|
|
26620
26619
|
onExpand: h,
|
|
@@ -26634,12 +26633,12 @@ ${n}` : "Please fix this error.";
|
|
|
26634
26633
|
(0, import_react.useRef)({
|
|
26635
26634
|
didLogMissingDefaultSizeWarning: false
|
|
26636
26635
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26637
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26636
|
+
let { callbacks: e2, constraints: t2 } = rJ.current, o2 = {
|
|
26638
26637
|
...t2
|
|
26639
26638
|
};
|
|
26640
|
-
|
|
26639
|
+
rJ.current.id = $, rJ.current.idIsFromProps = s !== void 0, rJ.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(rJ.current, o2);
|
|
26641
26640
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26642
|
-
let e2 =
|
|
26641
|
+
let e2 = rJ.current;
|
|
26643
26642
|
return q(e2), () => {
|
|
26644
26643
|
Q(e2);
|
|
26645
26644
|
};
|
|
@@ -26650,25 +26649,25 @@ ${n}` : "Please fix this error.";
|
|
|
26650
26649
|
Q
|
|
26651
26650
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26652
26651
|
collapse: () => {
|
|
26653
|
-
O(
|
|
26652
|
+
O(rJ.current);
|
|
26654
26653
|
},
|
|
26655
26654
|
expand: (e2) => {
|
|
26656
|
-
A(
|
|
26655
|
+
A(rJ.current, e2);
|
|
26657
26656
|
},
|
|
26658
26657
|
getId() {
|
|
26659
26658
|
return $;
|
|
26660
26659
|
},
|
|
26661
26660
|
getSize() {
|
|
26662
|
-
return M(
|
|
26661
|
+
return M(rJ.current);
|
|
26663
26662
|
},
|
|
26664
26663
|
isCollapsed() {
|
|
26665
|
-
return U(
|
|
26664
|
+
return U(rJ.current);
|
|
26666
26665
|
},
|
|
26667
26666
|
isExpanded() {
|
|
26668
|
-
return !U(
|
|
26667
|
+
return !U(rJ.current);
|
|
26669
26668
|
},
|
|
26670
26669
|
resize: (e2) => {
|
|
26671
|
-
J(
|
|
26670
|
+
J(rJ.current, e2);
|
|
26672
26671
|
}
|
|
26673
26672
|
}), [
|
|
26674
26673
|
O,
|
|
@@ -26678,21 +26677,21 @@ ${n}` : "Please fix this error.";
|
|
|
26678
26677
|
$,
|
|
26679
26678
|
J
|
|
26680
26679
|
]);
|
|
26681
|
-
let
|
|
26680
|
+
let iJ = I(rJ.current, a);
|
|
26682
26681
|
return (0, import_react.createElement)(S, {
|
|
26683
26682
|
...w,
|
|
26684
26683
|
children: e,
|
|
26685
26684
|
className: t,
|
|
26686
26685
|
id: $,
|
|
26687
26686
|
style: {
|
|
26688
|
-
...
|
|
26687
|
+
...iJ,
|
|
26689
26688
|
...y
|
|
26690
26689
|
},
|
|
26691
26690
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26692
26691
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26693
26692
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26694
26693
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26695
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26694
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + iJ.flexGrow).toFixed(1)
|
|
26696
26695
|
});
|
|
26697
26696
|
}
|
|
26698
26697
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27477,13 +27476,13 @@ ${n}` : "Please fix this error.";
|
|
|
27477
27476
|
}, [
|
|
27478
27477
|
S,
|
|
27479
27478
|
E
|
|
27480
|
-
]),
|
|
27479
|
+
]), rJ = (0, import_react.useCallback)((e2) => {
|
|
27481
27480
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27482
27481
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27483
|
-
}, []),
|
|
27482
|
+
}, []), iJ = (0, import_react.useCallback)((e2) => {
|
|
27484
27483
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27485
27484
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27486
|
-
}, []),
|
|
27485
|
+
}, []), aJ = (0, import_react.useCallback)((e2) => {
|
|
27487
27486
|
let { panelDataArray: t2 } = K.current;
|
|
27488
27487
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27489
27488
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27515,7 +27514,7 @@ ${n}` : "Please fix this error.";
|
|
|
27515
27514
|
e2.layout = [];
|
|
27516
27515
|
};
|
|
27517
27516
|
}, []);
|
|
27518
|
-
let
|
|
27517
|
+
let oJ = (0, import_react.useCallback)((e2) => {
|
|
27519
27518
|
let t2 = false, n2 = y.current;
|
|
27520
27519
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27521
27520
|
n3.preventDefault();
|
|
@@ -27533,7 +27532,7 @@ ${n}` : "Please fix this error.";
|
|
|
27533
27532
|
}), I2 = !compareLayouts(f2, A2);
|
|
27534
27533
|
(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));
|
|
27535
27534
|
};
|
|
27536
|
-
}, []),
|
|
27535
|
+
}, []), sJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27537
27536
|
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);
|
|
27538
27537
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27539
27538
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27545,12 +27544,12 @@ ${n}` : "Please fix this error.";
|
|
|
27545
27544
|
trigger: "imperative-api"
|
|
27546
27545
|
});
|
|
27547
27546
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27548
|
-
}, []),
|
|
27547
|
+
}, []), cJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27549
27548
|
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);
|
|
27550
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27549
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || sJ(e2, s2) : h2 < f2 ? sJ(e2, f2) : h2 > d2 && sJ(e2, d2));
|
|
27551
27550
|
}, [
|
|
27552
|
-
|
|
27553
|
-
]),
|
|
27551
|
+
sJ
|
|
27552
|
+
]), lJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27554
27553
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27555
27554
|
if (!y.current) return;
|
|
27556
27555
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27562,14 +27561,14 @@ ${n}` : "Please fix this error.";
|
|
|
27562
27561
|
initialCursorPosition: o2,
|
|
27563
27562
|
initialLayout: i2
|
|
27564
27563
|
});
|
|
27565
|
-
}, []),
|
|
27564
|
+
}, []), uJ = (0, import_react.useCallback)(() => {
|
|
27566
27565
|
w(null);
|
|
27567
|
-
}, []),
|
|
27566
|
+
}, []), dJ = (0, import_react.useCallback)((e2) => {
|
|
27568
27567
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27569
27568
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27570
27569
|
}, [
|
|
27571
27570
|
A
|
|
27572
|
-
]),
|
|
27571
|
+
]), fJ = (0, import_react.useMemo)(() => ({
|
|
27573
27572
|
collapsePanel: q,
|
|
27574
27573
|
direction: i,
|
|
27575
27574
|
dragState: S,
|
|
@@ -27577,15 +27576,15 @@ ${n}` : "Please fix this error.";
|
|
|
27577
27576
|
getPanelSize: Q,
|
|
27578
27577
|
getPanelStyle: $,
|
|
27579
27578
|
groupId: v,
|
|
27580
|
-
isPanelCollapsed:
|
|
27581
|
-
isPanelExpanded:
|
|
27582
|
-
reevaluatePanelConstraints:
|
|
27583
|
-
registerPanel:
|
|
27584
|
-
registerResizeHandle:
|
|
27585
|
-
resizePanel:
|
|
27586
|
-
startDragging:
|
|
27587
|
-
stopDragging:
|
|
27588
|
-
unregisterPanel:
|
|
27579
|
+
isPanelCollapsed: rJ,
|
|
27580
|
+
isPanelExpanded: iJ,
|
|
27581
|
+
reevaluatePanelConstraints: cJ,
|
|
27582
|
+
registerPanel: aJ,
|
|
27583
|
+
registerResizeHandle: oJ,
|
|
27584
|
+
resizePanel: sJ,
|
|
27585
|
+
startDragging: lJ,
|
|
27586
|
+
stopDragging: uJ,
|
|
27587
|
+
unregisterPanel: dJ,
|
|
27589
27588
|
panelGroupElement: y.current
|
|
27590
27589
|
}), [
|
|
27591
27590
|
q,
|
|
@@ -27595,16 +27594,16 @@ ${n}` : "Please fix this error.";
|
|
|
27595
27594
|
Q,
|
|
27596
27595
|
$,
|
|
27597
27596
|
v,
|
|
27598
|
-
eJ,
|
|
27599
|
-
tJ,
|
|
27600
|
-
aJ,
|
|
27601
|
-
nJ,
|
|
27602
27597
|
rJ,
|
|
27603
27598
|
iJ,
|
|
27599
|
+
cJ,
|
|
27600
|
+
aJ,
|
|
27604
27601
|
oJ,
|
|
27605
27602
|
sJ,
|
|
27606
|
-
|
|
27607
|
-
|
|
27603
|
+
lJ,
|
|
27604
|
+
uJ,
|
|
27605
|
+
dJ
|
|
27606
|
+
]), pJ = {
|
|
27608
27607
|
display: "flex",
|
|
27609
27608
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27610
27609
|
height: "100%",
|
|
@@ -27612,7 +27611,7 @@ ${n}` : "Please fix this error.";
|
|
|
27612
27611
|
width: "100%"
|
|
27613
27612
|
};
|
|
27614
27613
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27615
|
-
value:
|
|
27614
|
+
value: fJ
|
|
27616
27615
|
}, (0, import_react.createElement)(h, {
|
|
27617
27616
|
..._,
|
|
27618
27617
|
children: t,
|
|
@@ -27620,7 +27619,7 @@ ${n}` : "Please fix this error.";
|
|
|
27620
27619
|
id: o,
|
|
27621
27620
|
ref: y,
|
|
27622
27621
|
style: {
|
|
27623
|
-
...
|
|
27622
|
+
...pJ,
|
|
27624
27623
|
...f
|
|
27625
27624
|
},
|
|
27626
27625
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27697,31 +27696,31 @@ ${n}` : "Please fix this error.";
|
|
|
27697
27696
|
});
|
|
27698
27697
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27699
27698
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27700
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
27699
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, rJ] = (0, import_react.useState)(false), [iJ, aJ] = (0, import_react.useState)(null), oJ = (0, import_react.useRef)({
|
|
27701
27700
|
state: J
|
|
27702
27701
|
});
|
|
27703
27702
|
useIsomorphicLayoutEffect$1(() => {
|
|
27704
|
-
|
|
27703
|
+
oJ.current.state = J;
|
|
27705
27704
|
}), (0, import_react.useEffect)(() => {
|
|
27706
|
-
if (n)
|
|
27705
|
+
if (n) aJ(null);
|
|
27707
27706
|
else {
|
|
27708
27707
|
let e2 = I(q);
|
|
27709
|
-
|
|
27708
|
+
aJ(() => e2);
|
|
27710
27709
|
}
|
|
27711
27710
|
}, [
|
|
27712
27711
|
n,
|
|
27713
27712
|
q,
|
|
27714
27713
|
I
|
|
27715
27714
|
]);
|
|
27716
|
-
let
|
|
27715
|
+
let sJ = (i == null ? void 0 : i.coarse) ?? 15, cJ = (i == null ? void 0 : i.fine) ?? 5;
|
|
27717
27716
|
(0, import_react.useEffect)(() => {
|
|
27718
|
-
if (n ||
|
|
27717
|
+
if (n || iJ == null) return;
|
|
27719
27718
|
let e2 = w.current;
|
|
27720
27719
|
assert(e2, "Element ref not attached");
|
|
27721
27720
|
let t2 = false;
|
|
27722
27721
|
return registerResizeHandle(q, e2, A, {
|
|
27723
|
-
coarse:
|
|
27724
|
-
fine:
|
|
27722
|
+
coarse: sJ,
|
|
27723
|
+
fine: cJ
|
|
27725
27724
|
}, (e3, n2, i2) => {
|
|
27726
27725
|
if (!n2) {
|
|
27727
27726
|
Q("inactive");
|
|
@@ -27735,8 +27734,8 @@ ${n}` : "Please fix this error.";
|
|
|
27735
27734
|
break;
|
|
27736
27735
|
}
|
|
27737
27736
|
case "move": {
|
|
27738
|
-
let { state: e4 } =
|
|
27739
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27737
|
+
let { state: e4 } = oJ.current;
|
|
27738
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), iJ(i2);
|
|
27740
27739
|
break;
|
|
27741
27740
|
}
|
|
27742
27741
|
case "up": {
|
|
@@ -27748,22 +27747,22 @@ ${n}` : "Please fix this error.";
|
|
|
27748
27747
|
}
|
|
27749
27748
|
});
|
|
27750
27749
|
}, [
|
|
27751
|
-
|
|
27750
|
+
sJ,
|
|
27752
27751
|
A,
|
|
27753
27752
|
n,
|
|
27754
|
-
|
|
27753
|
+
cJ,
|
|
27755
27754
|
I,
|
|
27756
27755
|
q,
|
|
27757
|
-
|
|
27756
|
+
iJ,
|
|
27758
27757
|
z,
|
|
27759
27758
|
U
|
|
27760
27759
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27761
27760
|
disabled: n,
|
|
27762
27761
|
handleId: q,
|
|
27763
|
-
resizeHandler:
|
|
27762
|
+
resizeHandler: iJ,
|
|
27764
27763
|
panelGroupElement: K
|
|
27765
27764
|
});
|
|
27766
|
-
let
|
|
27765
|
+
let lJ = {
|
|
27767
27766
|
touchAction: "none",
|
|
27768
27767
|
userSelect: "none"
|
|
27769
27768
|
};
|
|
@@ -27773,15 +27772,15 @@ ${n}` : "Please fix this error.";
|
|
|
27773
27772
|
className: t,
|
|
27774
27773
|
id: a,
|
|
27775
27774
|
onBlur: () => {
|
|
27776
|
-
|
|
27775
|
+
rJ(false), o == null ? void 0 : o();
|
|
27777
27776
|
},
|
|
27778
27777
|
onFocus: () => {
|
|
27779
|
-
|
|
27778
|
+
rJ(true), d == null ? void 0 : d();
|
|
27780
27779
|
},
|
|
27781
27780
|
ref: w,
|
|
27782
27781
|
role: "separator",
|
|
27783
27782
|
style: {
|
|
27784
|
-
...
|
|
27783
|
+
...lJ,
|
|
27785
27784
|
..._
|
|
27786
27785
|
},
|
|
27787
27786
|
tabIndex: v,
|
|
@@ -28080,7 +28079,7 @@ ${n}` : "Please fix this error.";
|
|
|
28080
28079
|
}, [
|
|
28081
28080
|
h
|
|
28082
28081
|
]), k(() => {
|
|
28083
|
-
U(6,
|
|
28082
|
+
U(6, iJ);
|
|
28084
28083
|
}, []);
|
|
28085
28084
|
let K = import_react.useMemo(() => ({
|
|
28086
28085
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -28089,7 +28088,7 @@ ${n}` : "Please fix this error.";
|
|
|
28089
28088
|
var _a2;
|
|
28090
28089
|
var a2, o2, s2;
|
|
28091
28090
|
if (!Object.is(n.current[e2], t2)) {
|
|
28092
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
28091
|
+
if (n.current[e2] = t2, e2 === "search") rJ(), Q(), U(1, $);
|
|
28093
28092
|
else if (e2 === "value") {
|
|
28094
28093
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
28095
28094
|
let e3 = document.getElementById(I);
|
|
@@ -28097,8 +28096,8 @@ ${n}` : "Please fix this error.";
|
|
|
28097
28096
|
}
|
|
28098
28097
|
if (U(7, () => {
|
|
28099
28098
|
var _a3;
|
|
28100
|
-
n.current.selectedItemId = (_a3 =
|
|
28101
|
-
}), i2 || U(5,
|
|
28099
|
+
n.current.selectedItemId = (_a3 = aJ()) == null ? void 0 : _a3.id, K.emit();
|
|
28100
|
+
}), i2 || U(5, iJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
28102
28101
|
let e3 = t2 ?? "";
|
|
28103
28102
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
28104
28103
|
return;
|
|
@@ -28123,12 +28122,12 @@ ${n}` : "Please fix this error.";
|
|
|
28123
28122
|
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([
|
|
28124
28123
|
e2
|
|
28125
28124
|
]))), U(3, () => {
|
|
28126
|
-
|
|
28125
|
+
rJ(), Q(), n.current.value || $(), K.emit();
|
|
28127
28126
|
}), () => {
|
|
28128
28127
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
28129
|
-
let t3 =
|
|
28128
|
+
let t3 = aJ();
|
|
28130
28129
|
U(4, () => {
|
|
28131
|
-
|
|
28130
|
+
rJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
28132
28131
|
});
|
|
28133
28132
|
}),
|
|
28134
28133
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -28161,7 +28160,7 @@ ${n}` : "Please fix this error.";
|
|
|
28161
28160
|
]);
|
|
28162
28161
|
});
|
|
28163
28162
|
let i2 = z.current;
|
|
28164
|
-
|
|
28163
|
+
oJ().sort((t3, n2) => {
|
|
28165
28164
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
28166
28165
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
28167
28166
|
}).forEach((e3) => {
|
|
@@ -28175,10 +28174,10 @@ ${n}` : "Please fix this error.";
|
|
|
28175
28174
|
}
|
|
28176
28175
|
function $() {
|
|
28177
28176
|
var _a2;
|
|
28178
|
-
let e2 = (_a2 =
|
|
28177
|
+
let e2 = (_a2 = oJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
28179
28178
|
K.setState("value", e2 || void 0);
|
|
28180
28179
|
}
|
|
28181
|
-
function
|
|
28180
|
+
function rJ() {
|
|
28182
28181
|
var _a2, _b;
|
|
28183
28182
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
28184
28183
|
n.current.filtered.count = i.current.size;
|
|
@@ -28196,43 +28195,43 @@ ${n}` : "Please fix this error.";
|
|
|
28196
28195
|
}
|
|
28197
28196
|
n.current.filtered.count = e2;
|
|
28198
28197
|
}
|
|
28199
|
-
function
|
|
28198
|
+
function iJ() {
|
|
28200
28199
|
var _a2, _b;
|
|
28201
28200
|
var e2;
|
|
28202
|
-
let t2 =
|
|
28201
|
+
let t2 = aJ();
|
|
28203
28202
|
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({
|
|
28204
28203
|
block: "nearest"
|
|
28205
28204
|
})), t2.scrollIntoView({
|
|
28206
28205
|
block: "nearest"
|
|
28207
28206
|
}));
|
|
28208
28207
|
}
|
|
28209
|
-
function
|
|
28208
|
+
function aJ() {
|
|
28210
28209
|
var _a2;
|
|
28211
28210
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
28212
28211
|
}
|
|
28213
|
-
function
|
|
28212
|
+
function oJ() {
|
|
28214
28213
|
var _a2;
|
|
28215
28214
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
28216
28215
|
}
|
|
28217
|
-
function
|
|
28218
|
-
let t2 =
|
|
28216
|
+
function sJ(e2) {
|
|
28217
|
+
let t2 = oJ()[e2];
|
|
28219
28218
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
28220
28219
|
}
|
|
28221
|
-
function
|
|
28220
|
+
function cJ(e2) {
|
|
28222
28221
|
var t2;
|
|
28223
|
-
let n2 =
|
|
28222
|
+
let n2 = aJ(), i2 = oJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
28224
28223
|
(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));
|
|
28225
28224
|
}
|
|
28226
|
-
function
|
|
28225
|
+
function lJ(e2) {
|
|
28227
28226
|
var _a2;
|
|
28228
|
-
let t2 = (_a2 =
|
|
28227
|
+
let t2 = (_a2 = aJ()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
28229
28228
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
28230
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
28229
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : cJ(e2);
|
|
28231
28230
|
}
|
|
28232
|
-
let
|
|
28233
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28234
|
-
},
|
|
28235
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28231
|
+
let uJ = () => sJ(oJ().length - 1), dJ = (e2) => {
|
|
28232
|
+
e2.preventDefault(), e2.metaKey ? uJ() : e2.altKey ? lJ(1) : cJ(1);
|
|
28233
|
+
}, fJ = (e2) => {
|
|
28234
|
+
e2.preventDefault(), e2.metaKey ? sJ(0) : e2.altKey ? lJ(-1) : cJ(-1);
|
|
28236
28235
|
};
|
|
28237
28236
|
return import_react.createElement(Primitive.div, {
|
|
28238
28237
|
ref: t,
|
|
@@ -28246,27 +28245,27 @@ ${n}` : "Please fix this error.";
|
|
|
28246
28245
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
28247
28246
|
case "n":
|
|
28248
28247
|
case "j":
|
|
28249
|
-
E && e2.ctrlKey &&
|
|
28248
|
+
E && e2.ctrlKey && dJ(e2);
|
|
28250
28249
|
break;
|
|
28251
28250
|
case "ArrowDown":
|
|
28252
|
-
|
|
28251
|
+
dJ(e2);
|
|
28253
28252
|
break;
|
|
28254
28253
|
case "p":
|
|
28255
28254
|
case "k":
|
|
28256
|
-
E && e2.ctrlKey &&
|
|
28255
|
+
E && e2.ctrlKey && fJ(e2);
|
|
28257
28256
|
break;
|
|
28258
28257
|
case "ArrowUp":
|
|
28259
|
-
|
|
28258
|
+
fJ(e2);
|
|
28260
28259
|
break;
|
|
28261
28260
|
case "Home":
|
|
28262
|
-
e2.preventDefault(),
|
|
28261
|
+
e2.preventDefault(), sJ(0);
|
|
28263
28262
|
break;
|
|
28264
28263
|
case "End":
|
|
28265
|
-
e2.preventDefault(),
|
|
28264
|
+
e2.preventDefault(), uJ();
|
|
28266
28265
|
break;
|
|
28267
28266
|
case "Enter": {
|
|
28268
28267
|
e2.preventDefault();
|
|
28269
|
-
let t3 =
|
|
28268
|
+
let t3 = aJ();
|
|
28270
28269
|
if (t3) {
|
|
28271
28270
|
let e3 = new Event(Z);
|
|
28272
28271
|
t3.dispatchEvent(e3);
|
|
@@ -28673,155 +28672,155 @@ ${n}` : "Please fix this error.";
|
|
|
28673
28672
|
onSelect: Functions.NOOP
|
|
28674
28673
|
});
|
|
28675
28674
|
Combobox = (e) => {
|
|
28676
|
-
let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J,
|
|
28677
|
-
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],
|
|
28678
|
-
let
|
|
28679
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
28675
|
+
let t = (0, import_compiler_runtime$35.c)(106), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
|
|
28676
|
+
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], Q = t[24]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = 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, t[24] = Q);
|
|
28677
|
+
let $ = I === void 0 ? false : I, rJ = z === void 0 ? true : z, iJ = U === void 0 ? "Search..." : U, aJ = K === void 0 ? "Nothing found." : K, oJ = q === void 0 ? false : q, sJ = J === void 0 ? false : J, cJ = s ?? false, lJ;
|
|
28678
|
+
t[25] !== v || t[26] !== w || t[27] !== cJ ? (lJ = {
|
|
28680
28679
|
prop: w,
|
|
28681
|
-
defaultProp:
|
|
28680
|
+
defaultProp: cJ,
|
|
28682
28681
|
onChange: v
|
|
28683
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28684
|
-
let [
|
|
28685
|
-
t[29] === S ?
|
|
28682
|
+
}, t[25] = v, t[26] = w, t[27] = cJ, t[28] = lJ) : lJ = t[28];
|
|
28683
|
+
let [uJ, dJ] = useControllableState(lJ), fJ = uJ === void 0 ? false : uJ, pJ;
|
|
28684
|
+
t[29] === S ? pJ = t[30] : (pJ = (e2) => {
|
|
28686
28685
|
S == null ? void 0 : S(e2);
|
|
28687
|
-
}, t[29] = S, t[30] =
|
|
28688
|
-
let
|
|
28689
|
-
t[31] !== c || t[32] !==
|
|
28690
|
-
prop:
|
|
28686
|
+
}, t[29] = S, t[30] = pJ);
|
|
28687
|
+
let mJ;
|
|
28688
|
+
t[31] !== c || t[32] !== pJ || t[33] !== Q ? (mJ = {
|
|
28689
|
+
prop: Q,
|
|
28691
28690
|
defaultProp: c,
|
|
28692
|
-
onChange:
|
|
28693
|
-
}, t[31] = c, t[32] =
|
|
28694
|
-
let [
|
|
28695
|
-
t[35] ===
|
|
28696
|
-
let
|
|
28697
|
-
t[37] !== _ || t[38] !==
|
|
28691
|
+
onChange: pJ
|
|
28692
|
+
}, t[31] = c, t[32] = pJ, t[33] = Q, t[34] = mJ) : mJ = t[34];
|
|
28693
|
+
let [hJ, gJ] = useControllableState(mJ), _J;
|
|
28694
|
+
t[35] === hJ ? _J = t[36] : (_J = (e2) => Array.isArray(hJ) ? hJ.includes(e2) : hJ === e2, t[35] = hJ, t[36] = _J);
|
|
28695
|
+
let vJ = _J, yJ;
|
|
28696
|
+
t[37] !== _ || t[38] !== $ || t[39] !== dJ || t[40] !== gJ || t[41] !== hJ ? (yJ = (e2) => {
|
|
28698
28697
|
let t2 = e2;
|
|
28699
|
-
if (
|
|
28700
|
-
let n2 =
|
|
28698
|
+
if ($) if (Array.isArray(hJ)) if (hJ.includes(t2)) {
|
|
28699
|
+
let n2 = hJ.filter((t3) => t3 !== e2);
|
|
28701
28700
|
t2 = n2.length > 0 ? n2 : [];
|
|
28702
28701
|
} else t2 = [
|
|
28703
|
-
...
|
|
28702
|
+
...hJ,
|
|
28704
28703
|
t2
|
|
28705
28704
|
];
|
|
28706
28705
|
else t2 = [
|
|
28707
28706
|
t2
|
|
28708
28707
|
];
|
|
28709
|
-
else
|
|
28710
|
-
|
|
28711
|
-
}, t[37] = _, t[38] =
|
|
28712
|
-
let vJ = _J, yJ;
|
|
28713
|
-
t[43] !== iJ || t[44] !== d || t[45] !== eJ || t[46] !== E || t[47] !== pJ ? (yJ = () => eJ && iJ && E ? E : pJ == null ? E ?? "--" : Array.isArray(pJ) ? pJ.length === 0 ? E ?? "--" : pJ.length === 1 && d !== void 0 ? d(pJ[0]) : `${pJ.length} selected` : d === void 0 ? E ?? "--" : d(pJ), t[43] = iJ, t[44] = d, t[45] = eJ, t[46] = E, t[47] = pJ, t[48] = yJ) : yJ = t[48];
|
|
28708
|
+
else hJ === e2 && (t2 = null);
|
|
28709
|
+
gJ(t2), (_ ?? $) || dJ(false);
|
|
28710
|
+
}, t[37] = _, t[38] = $, t[39] = dJ, t[40] = gJ, t[41] = hJ, t[42] = yJ) : yJ = t[42];
|
|
28714
28711
|
let bJ = yJ, xJ;
|
|
28715
|
-
t[
|
|
28716
|
-
isSelected: gJ,
|
|
28717
|
-
onSelect: vJ
|
|
28718
|
-
}, t[49] = vJ, t[50] = gJ, t[51] = xJ) : xJ = t[51];
|
|
28712
|
+
t[43] !== oJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== hJ ? (xJ = () => $ && oJ && E ? E : hJ == null ? E ?? "--" : Array.isArray(hJ) ? hJ.length === 0 ? E ?? "--" : hJ.length === 1 && d !== void 0 ? d(hJ[0]) : `${hJ.length} selected` : d === void 0 ? E ?? "--" : d(hJ), t[43] = oJ, t[44] = d, t[45] = $, t[46] = E, t[47] = hJ, t[48] = xJ) : xJ = t[48];
|
|
28719
28713
|
let SJ = xJ, CJ;
|
|
28720
|
-
t[
|
|
28721
|
-
|
|
28722
|
-
|
|
28723
|
-
|
|
28724
|
-
|
|
28725
|
-
|
|
28726
|
-
|
|
28727
|
-
|
|
28728
|
-
|
|
28714
|
+
t[49] !== bJ || t[50] !== vJ ? (CJ = {
|
|
28715
|
+
isSelected: vJ,
|
|
28716
|
+
onSelect: bJ
|
|
28717
|
+
}, t[49] = bJ, t[50] = vJ, t[51] = CJ) : CJ = t[51];
|
|
28718
|
+
let wJ = CJ, EJ;
|
|
28719
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (EJ = cn("relative"), t[52] = EJ) : EJ = t[52];
|
|
28720
|
+
let DJ;
|
|
28721
|
+
t[53] !== sJ || t[54] !== dJ ? (DJ = (e2) => {
|
|
28722
|
+
sJ && e2 || dJ(e2);
|
|
28723
|
+
}, t[53] = sJ, t[54] = dJ, t[55] = DJ) : DJ = t[55];
|
|
28724
|
+
let OJ = sJ && "cursor-not-allowed opacity-50", kJ;
|
|
28725
|
+
t[56] !== o || t[57] !== OJ ? (kJ = 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", OJ, o), t[56] = o, t[57] = OJ, t[58] = kJ) : kJ = t[58];
|
|
28729
28726
|
let AJ;
|
|
28730
|
-
t[
|
|
28727
|
+
t[59] !== O || t[60] !== SJ || t[61] !== hJ ? (AJ = O ? O(hJ ?? null) : SJ(), t[59] = O, t[60] = SJ, t[61] = hJ, t[62] = AJ) : AJ = t[62];
|
|
28728
|
+
let MJ;
|
|
28729
|
+
t[63] === AJ ? MJ = t[64] : (MJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28731
28730
|
className: "truncate flex-1 min-w-0",
|
|
28732
|
-
children:
|
|
28733
|
-
}), t[63] =
|
|
28734
|
-
let
|
|
28735
|
-
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28731
|
+
children: AJ
|
|
28732
|
+
}), t[63] = AJ, t[64] = MJ);
|
|
28733
|
+
let NJ;
|
|
28734
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (NJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28736
28735
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28737
|
-
}), t[65] =
|
|
28738
|
-
let
|
|
28739
|
-
t[66] !==
|
|
28736
|
+
}), t[65] = NJ) : NJ = t[65];
|
|
28737
|
+
let FJ;
|
|
28738
|
+
t[66] !== sJ || t[67] !== h || t[68] !== fJ || t[69] !== kJ || t[70] !== MJ ? (FJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28740
28739
|
asChild: true,
|
|
28741
28740
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28742
28741
|
id: h,
|
|
28743
28742
|
type: "button",
|
|
28744
|
-
className:
|
|
28745
|
-
"aria-expanded":
|
|
28746
|
-
"aria-disabled":
|
|
28743
|
+
className: kJ,
|
|
28744
|
+
"aria-expanded": fJ,
|
|
28745
|
+
"aria-disabled": sJ,
|
|
28747
28746
|
children: [
|
|
28748
|
-
|
|
28749
|
-
|
|
28747
|
+
MJ,
|
|
28748
|
+
NJ
|
|
28750
28749
|
]
|
|
28751
28750
|
})
|
|
28752
|
-
}), t[66] =
|
|
28753
|
-
let
|
|
28754
|
-
t[72] !==
|
|
28755
|
-
placeholder:
|
|
28751
|
+
}), t[66] = sJ, t[67] = h, t[68] = fJ, t[69] = kJ, t[70] = MJ, t[71] = FJ) : FJ = t[71];
|
|
28752
|
+
let IJ;
|
|
28753
|
+
t[72] !== iJ || t[73] !== y || t[74] !== M ? (IJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28754
|
+
placeholder: iJ,
|
|
28756
28755
|
rootClassName: "px-1 h-8",
|
|
28757
28756
|
autoFocus: true,
|
|
28758
28757
|
value: M,
|
|
28759
28758
|
onValueChange: y
|
|
28760
|
-
}), t[72] =
|
|
28761
|
-
let
|
|
28762
|
-
t[76] ===
|
|
28763
|
-
children:
|
|
28764
|
-
}), t[76] =
|
|
28765
|
-
let
|
|
28766
|
-
t[78] !== n || t[79] !==
|
|
28767
|
-
value:
|
|
28759
|
+
}), t[72] = iJ, t[73] = y, t[74] = M, t[75] = IJ) : IJ = t[75];
|
|
28760
|
+
let LJ;
|
|
28761
|
+
t[76] === aJ ? LJ = t[77] : (LJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28762
|
+
children: aJ
|
|
28763
|
+
}), t[76] = aJ, t[77] = LJ);
|
|
28764
|
+
let RJ;
|
|
28765
|
+
t[78] !== n || t[79] !== wJ ? (RJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28766
|
+
value: wJ,
|
|
28768
28767
|
children: n
|
|
28769
|
-
}), t[78] = n, t[79] =
|
|
28770
|
-
let
|
|
28771
|
-
t[81] !==
|
|
28768
|
+
}), t[78] = n, t[79] = wJ, t[80] = RJ) : RJ = t[80];
|
|
28769
|
+
let zJ;
|
|
28770
|
+
t[81] !== LJ || t[82] !== RJ ? (zJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28772
28771
|
className: "max-h-60 py-.5",
|
|
28773
28772
|
children: [
|
|
28774
|
-
|
|
28775
|
-
|
|
28773
|
+
LJ,
|
|
28774
|
+
RJ
|
|
28776
28775
|
]
|
|
28777
|
-
}), t[81] =
|
|
28778
|
-
let
|
|
28779
|
-
t[84] !== f || t[85] !==
|
|
28776
|
+
}), t[81] = LJ, t[82] = RJ, t[83] = zJ) : zJ = t[83];
|
|
28777
|
+
let BJ;
|
|
28778
|
+
t[84] !== f || t[85] !== rJ || t[86] !== IJ || t[87] !== zJ ? (BJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28780
28779
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28781
28780
|
align: "start",
|
|
28782
28781
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28783
28782
|
filter: f,
|
|
28784
|
-
shouldFilter:
|
|
28783
|
+
shouldFilter: rJ,
|
|
28785
28784
|
children: [
|
|
28786
|
-
|
|
28787
|
-
|
|
28785
|
+
IJ,
|
|
28786
|
+
zJ
|
|
28788
28787
|
]
|
|
28789
28788
|
})
|
|
28790
|
-
}), t[84] = f, t[85] =
|
|
28791
|
-
let
|
|
28792
|
-
t[89] !==
|
|
28793
|
-
open:
|
|
28794
|
-
onOpenChange:
|
|
28789
|
+
}), t[84] = f, t[85] = rJ, t[86] = IJ, t[87] = zJ, t[88] = BJ) : BJ = t[88];
|
|
28790
|
+
let VJ;
|
|
28791
|
+
t[89] !== fJ || t[90] !== DJ || t[91] !== FJ || t[92] !== BJ ? (VJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28792
|
+
open: fJ,
|
|
28793
|
+
onOpenChange: DJ,
|
|
28795
28794
|
children: [
|
|
28796
|
-
|
|
28797
|
-
|
|
28795
|
+
FJ,
|
|
28796
|
+
BJ
|
|
28798
28797
|
]
|
|
28799
|
-
}), t[89] =
|
|
28800
|
-
let
|
|
28801
|
-
t[94] !==
|
|
28798
|
+
}), t[89] = fJ, t[90] = DJ, t[91] = FJ, t[92] = BJ, t[93] = VJ) : VJ = t[93];
|
|
28799
|
+
let HJ;
|
|
28800
|
+
t[94] !== oJ || t[95] !== i || t[96] !== sJ || t[97] !== d || t[98] !== bJ || t[99] !== $ || t[100] !== hJ ? (HJ = $ && oJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28802
28801
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28803
|
-
children: Array.isArray(
|
|
28802
|
+
children: Array.isArray(hJ) && hJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28804
28803
|
variant: "secondary",
|
|
28805
28804
|
children: [
|
|
28806
28805
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28807
28806
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28808
28807
|
onClick: () => {
|
|
28809
|
-
|
|
28808
|
+
sJ || bJ(e2);
|
|
28810
28809
|
},
|
|
28811
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28810
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", sJ && "pointer-events-none")
|
|
28812
28811
|
})
|
|
28813
28812
|
]
|
|
28814
28813
|
}, String(e2)))
|
|
28815
|
-
}), t[94] =
|
|
28816
|
-
let
|
|
28817
|
-
return t[102] !== A || t[103] !==
|
|
28818
|
-
className:
|
|
28814
|
+
}), t[94] = oJ, t[95] = i, t[96] = sJ, t[97] = d, t[98] = bJ, t[99] = $, t[100] = hJ, t[101] = HJ) : HJ = t[101];
|
|
28815
|
+
let UJ;
|
|
28816
|
+
return t[102] !== A || t[103] !== VJ || t[104] !== HJ ? (UJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
28817
|
+
className: EJ,
|
|
28819
28818
|
...A,
|
|
28820
28819
|
children: [
|
|
28821
|
-
|
|
28822
|
-
|
|
28820
|
+
VJ,
|
|
28821
|
+
HJ
|
|
28823
28822
|
]
|
|
28824
|
-
}), t[102] = A, t[103] =
|
|
28823
|
+
}), t[102] = A, t[103] = VJ, t[104] = HJ, t[105] = UJ) : UJ = t[105], UJ;
|
|
28825
28824
|
};
|
|
28826
28825
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28827
28826
|
let n = (0, import_compiler_runtime$35.c)(20), { 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), _;
|
|
@@ -29134,7 +29133,7 @@ ${n}` : "Please fix this error.";
|
|
|
29134
29133
|
children: _temp5$2
|
|
29135
29134
|
}),
|
|
29136
29135
|
(0, import_jsx_runtime.jsx)(CalendarGridBody, {
|
|
29137
|
-
children: _temp6$
|
|
29136
|
+
children: _temp6$2
|
|
29138
29137
|
})
|
|
29139
29138
|
]
|
|
29140
29139
|
}), t[7] = c) : c = t[7];
|
|
@@ -29176,7 +29175,7 @@ ${n}` : "Please fix this error.";
|
|
|
29176
29175
|
children: e
|
|
29177
29176
|
});
|
|
29178
29177
|
}
|
|
29179
|
-
function _temp6$
|
|
29178
|
+
function _temp6$2(e) {
|
|
29180
29179
|
return (0, import_jsx_runtime.jsx)(CalendarCell, {
|
|
29181
29180
|
date: e
|
|
29182
29181
|
});
|
|
@@ -29351,7 +29350,7 @@ ${n}` : "Please fix this error.";
|
|
|
29351
29350
|
(0, import_jsx_runtime.jsxs)(CalendarGrid, {
|
|
29352
29351
|
children: [
|
|
29353
29352
|
(0, import_jsx_runtime.jsx)(CalendarGridHeader, {
|
|
29354
|
-
children: _temp6
|
|
29353
|
+
children: _temp6$1
|
|
29355
29354
|
}),
|
|
29356
29355
|
(0, import_jsx_runtime.jsx)(CalendarGridBody, {
|
|
29357
29356
|
children: _temp7
|
|
@@ -29395,7 +29394,7 @@ ${n}` : "Please fix this error.";
|
|
|
29395
29394
|
function _temp5$1(e) {
|
|
29396
29395
|
return cn("group flex flex-col gap-2", e);
|
|
29397
29396
|
}
|
|
29398
|
-
function _temp6(e) {
|
|
29397
|
+
function _temp6$1(e) {
|
|
29399
29398
|
return (0, import_jsx_runtime.jsx)(CalendarHeaderCell, {
|
|
29400
29399
|
children: e
|
|
29401
29400
|
});
|
|
@@ -29877,17 +29876,17 @@ ${n}` : "Please fix this error.";
|
|
|
29877
29876
|
searchQuery: M,
|
|
29878
29877
|
filteredOptions: z
|
|
29879
29878
|
}, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
|
|
29880
|
-
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U),
|
|
29881
|
-
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (
|
|
29879
|
+
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), rJ;
|
|
29880
|
+
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (rJ = {
|
|
29882
29881
|
value: i,
|
|
29883
29882
|
onChange: a,
|
|
29884
29883
|
multiple: o,
|
|
29885
29884
|
maxSelections: s,
|
|
29886
29885
|
allowSelectNone: c,
|
|
29887
29886
|
selected: y
|
|
29888
|
-
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] =
|
|
29889
|
-
let { isChecked:
|
|
29890
|
-
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (
|
|
29887
|
+
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = rJ) : rJ = t[21];
|
|
29888
|
+
let { isChecked: iJ, toggle: aJ } = useToggle(rJ), oJ;
|
|
29889
|
+
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (oJ = {
|
|
29891
29890
|
value: i,
|
|
29892
29891
|
onChange: a,
|
|
29893
29892
|
multiple: o,
|
|
@@ -29895,24 +29894,24 @@ ${n}` : "Please fix this error.";
|
|
|
29895
29894
|
filteredOptions: z,
|
|
29896
29895
|
searchQuery: M,
|
|
29897
29896
|
maxSelections: s
|
|
29898
|
-
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] =
|
|
29899
|
-
let { bulkActions:
|
|
29900
|
-
t[30] !== J || t[31] !== I ? (
|
|
29897
|
+
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = oJ) : oJ = t[29];
|
|
29898
|
+
let { bulkActions: sJ } = useBulk(oJ), cJ;
|
|
29899
|
+
t[30] !== J || t[31] !== I ? (cJ = (e2) => {
|
|
29901
29900
|
I(e2), e2 === "" && J();
|
|
29902
|
-
}, t[30] = J, t[31] = I, t[32] =
|
|
29903
|
-
let
|
|
29904
|
-
return t[33] !==
|
|
29901
|
+
}, t[30] = J, t[31] = I, t[32] = cJ) : cJ = t[32];
|
|
29902
|
+
let lJ = cJ, uJ;
|
|
29903
|
+
return t[33] !== sJ || t[34] !== iJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== lJ || t[41] !== aJ || t[42] !== Q ? (uJ = {
|
|
29905
29904
|
searchQuery: M,
|
|
29906
|
-
setSearchQuery:
|
|
29905
|
+
setSearchQuery: lJ,
|
|
29907
29906
|
open: K,
|
|
29908
29907
|
setOpen: q,
|
|
29909
29908
|
visibleOptions: Q,
|
|
29910
29909
|
pinnedCount: $,
|
|
29911
|
-
isChecked:
|
|
29912
|
-
toggle:
|
|
29913
|
-
bulkActions:
|
|
29910
|
+
isChecked: iJ,
|
|
29911
|
+
toggle: aJ,
|
|
29912
|
+
bulkActions: sJ,
|
|
29914
29913
|
labelOf: O
|
|
29915
|
-
}, t[33] =
|
|
29914
|
+
}, t[33] = sJ, t[34] = iJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = lJ, t[41] = aJ, t[42] = Q, t[43] = uJ) : uJ = t[43], uJ;
|
|
29916
29915
|
};
|
|
29917
29916
|
const Sets = {
|
|
29918
29917
|
merge(...e) {
|
|
@@ -30241,7 +30240,7 @@ ${n}` : "Please fix this error.";
|
|
|
30241
30240
|
type: S,
|
|
30242
30241
|
operator: E,
|
|
30243
30242
|
draft: mergeNumberTextDraft(A, I)
|
|
30244
|
-
}), $ = Q === void 0,
|
|
30243
|
+
}), $ = Q === void 0, rJ = $ ? getMissingValueMessage(S, E) : "Apply filter", iJ = () => {
|
|
30245
30244
|
if (!Q) return;
|
|
30246
30245
|
let e2 = Q;
|
|
30247
30246
|
t.setColumnFilters((t2) => {
|
|
@@ -30260,20 +30259,20 @@ ${n}` : "Please fix this error.";
|
|
|
30260
30259
|
value: e2
|
|
30261
30260
|
}, n2;
|
|
30262
30261
|
}), i();
|
|
30263
|
-
},
|
|
30262
|
+
}, oJ = () => {
|
|
30264
30263
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30265
|
-
},
|
|
30264
|
+
}, sJ = !OPERATORS_WITHOUT_VALUE.has(E), cJ = OPERATORS_BY_TYPE[S], lJ = (0, import_react.useRef)(null), uJ = (0, import_react.useRef)(null);
|
|
30266
30265
|
return (0, import_react.useEffect)(() => {
|
|
30267
30266
|
var _a2, _b;
|
|
30268
|
-
let e2 = (_a2 =
|
|
30269
|
-
e2 ? e2.focus() : (_b =
|
|
30267
|
+
let e2 = (_a2 = lJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30268
|
+
e2 ? e2.focus() : (_b = uJ.current) == null ? void 0 : _b.focus();
|
|
30270
30269
|
}, [
|
|
30271
30270
|
S,
|
|
30272
30271
|
E
|
|
30273
30272
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30274
30273
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30275
30274
|
onSubmit: (e2) => {
|
|
30276
|
-
e2.preventDefault(),
|
|
30275
|
+
e2.preventDefault(), iJ();
|
|
30277
30276
|
},
|
|
30278
30277
|
onKeyDownCapture: (e2) => {
|
|
30279
30278
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30314,13 +30313,13 @@ ${n}` : "Please fix this error.";
|
|
|
30314
30313
|
onValueChange: (e2) => J(e2),
|
|
30315
30314
|
children: [
|
|
30316
30315
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30317
|
-
ref:
|
|
30316
|
+
ref: uJ,
|
|
30318
30317
|
id: s,
|
|
30319
30318
|
className: "h-6 mb-1 bg-transparent",
|
|
30320
30319
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30321
30320
|
}),
|
|
30322
30321
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30323
|
-
children:
|
|
30322
|
+
children: cJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30324
30323
|
value: e2,
|
|
30325
30324
|
children: OPERATOR_LABELS[e2]
|
|
30326
30325
|
}, e2))
|
|
@@ -30329,8 +30328,8 @@ ${n}` : "Please fix this error.";
|
|
|
30329
30328
|
}, S)
|
|
30330
30329
|
]
|
|
30331
30330
|
}),
|
|
30332
|
-
|
|
30333
|
-
ref:
|
|
30331
|
+
sJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30332
|
+
ref: lJ,
|
|
30334
30333
|
className: "flex flex-col gap-1",
|
|
30335
30334
|
children: [
|
|
30336
30335
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30357,7 +30356,7 @@ ${n}` : "Please fix this error.";
|
|
|
30357
30356
|
className: "flex gap-1 mb-1",
|
|
30358
30357
|
children: [
|
|
30359
30358
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30360
|
-
content:
|
|
30359
|
+
content: rJ,
|
|
30361
30360
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30362
30361
|
className: "inline-flex",
|
|
30363
30362
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -30396,7 +30395,7 @@ ${n}` : "Please fix this error.";
|
|
|
30396
30395
|
size: "icon",
|
|
30397
30396
|
variant: "ghost",
|
|
30398
30397
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30399
|
-
onClick:
|
|
30398
|
+
onClick: oJ,
|
|
30400
30399
|
"aria-label": "Remove filter",
|
|
30401
30400
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30402
30401
|
className: "h-3.5 w-3.5",
|
|
@@ -32604,29 +32603,29 @@ ${n}` : "Please fix this error.";
|
|
|
32604
32603
|
}, t[16] = a, t[17] = J);
|
|
32605
32604
|
let Q = useEvent_default(J), $;
|
|
32606
32605
|
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32607
|
-
let
|
|
32608
|
-
t[20] === S ? (
|
|
32606
|
+
let rJ = useEvent_default($), iJ, aJ;
|
|
32607
|
+
t[20] === S ? (iJ = t[21], aJ = t[22]) : (iJ = () => (window.addEventListener("scroll", S, {
|
|
32609
32608
|
passive: true,
|
|
32610
32609
|
capture: true
|
|
32611
32610
|
}), window.addEventListener("resize", S), () => {
|
|
32612
32611
|
window.removeEventListener("scroll", S, {
|
|
32613
32612
|
capture: true
|
|
32614
32613
|
}), window.removeEventListener("resize", S);
|
|
32615
|
-
}),
|
|
32614
|
+
}), aJ = [
|
|
32616
32615
|
S
|
|
32617
|
-
], t[20] = S, t[21] =
|
|
32618
|
-
let
|
|
32619
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32620
|
-
let
|
|
32621
|
-
return t[25] !==
|
|
32616
|
+
], t[20] = S, t[21] = iJ, t[22] = aJ), (0, import_react.useEffect)(iJ, aJ);
|
|
32617
|
+
let oJ, sJ;
|
|
32618
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oJ = () => v, sJ = [], t[23] = oJ, t[24] = sJ) : (oJ = t[23], sJ = t[24]), (0, import_react.useEffect)(oJ, sJ);
|
|
32619
|
+
let cJ;
|
|
32620
|
+
return t[25] !== rJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (cJ = {
|
|
32622
32621
|
tooltipState: o,
|
|
32623
32622
|
tooltipContentId: d,
|
|
32624
32623
|
hideTooltip: S,
|
|
32625
32624
|
handleCellMouseOver: U,
|
|
32626
32625
|
handleCellMouseLeave: q,
|
|
32627
32626
|
handleCellFocus: Q,
|
|
32628
|
-
handleCellBlur:
|
|
32629
|
-
}, t[25] =
|
|
32627
|
+
handleCellBlur: rJ
|
|
32628
|
+
}, t[25] = rJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = cJ) : cJ = t[32], cJ;
|
|
32630
32629
|
}
|
|
32631
32630
|
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
32632
32631
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
@@ -34064,7 +34063,7 @@ ${n}` : "Please fix this error.";
|
|
|
34064
34063
|
filename: i2.filename
|
|
34065
34064
|
};
|
|
34066
34065
|
}, t[6] = e, t[7] = O);
|
|
34067
|
-
let A = O, M, I, z, U, K, q, J, Q, $,
|
|
34066
|
+
let A = O, M, I, z, U, K, q, J, Q, $, rJ, iJ, aJ, oJ;
|
|
34068
34067
|
if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34069
34068
|
let e2 = async (t2) => {
|
|
34070
34069
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34130,10 +34129,10 @@ ${n}` : "Please fix this error.";
|
|
|
34130
34129
|
content: d,
|
|
34131
34130
|
open: o2,
|
|
34132
34131
|
children: h
|
|
34133
|
-
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom",
|
|
34132
|
+
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", rJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34134
34133
|
className: "text-xs text-muted-foreground",
|
|
34135
34134
|
children: "Download"
|
|
34136
|
-
}), t[36] =
|
|
34135
|
+
}), t[36] = iJ) : iJ = t[36], aJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34137
34136
|
onSelect: () => {
|
|
34138
34137
|
e2(t2.format);
|
|
34139
34138
|
},
|
|
@@ -34154,10 +34153,10 @@ ${n}` : "Please fix this error.";
|
|
|
34154
34153
|
]
|
|
34155
34154
|
})
|
|
34156
34155
|
]
|
|
34157
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34156
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34158
34157
|
className: "text-xs text-muted-foreground",
|
|
34159
34158
|
children: "Copy to clipboard"
|
|
34160
|
-
}), t[37] = z, t[38] =
|
|
34159
|
+
}), t[37] = z, t[38] = oJ) : (z = t[37], oJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34161
34160
|
onSelect: async () => {
|
|
34162
34161
|
try {
|
|
34163
34162
|
await a(e3.format);
|
|
@@ -34186,30 +34185,30 @@ ${n}` : "Please fix this error.";
|
|
|
34186
34185
|
]
|
|
34187
34186
|
})
|
|
34188
34187
|
]
|
|
34189
|
-
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] =
|
|
34190
|
-
} else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21],
|
|
34191
|
-
let
|
|
34192
|
-
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !==
|
|
34188
|
+
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = rJ, t[23] = iJ, t[24] = aJ, t[25] = oJ;
|
|
34189
|
+
} else M = t[13], I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], rJ = t[22], iJ = t[23], aJ = t[24], oJ = t[25];
|
|
34190
|
+
let sJ;
|
|
34191
|
+
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== rJ || t[44] !== iJ || t[45] !== aJ || t[46] !== oJ ? (sJ = (0, import_jsx_runtime.jsxs)(M, {
|
|
34193
34192
|
side: $,
|
|
34194
|
-
className:
|
|
34193
|
+
className: rJ,
|
|
34195
34194
|
children: [
|
|
34196
|
-
|
|
34197
|
-
|
|
34198
|
-
|
|
34195
|
+
iJ,
|
|
34196
|
+
aJ,
|
|
34197
|
+
oJ,
|
|
34199
34198
|
z,
|
|
34200
34199
|
U
|
|
34201
34200
|
]
|
|
34202
|
-
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] =
|
|
34203
|
-
let
|
|
34204
|
-
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !==
|
|
34201
|
+
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = rJ, t[44] = iJ, t[45] = aJ, t[46] = oJ, t[47] = sJ) : sJ = t[47];
|
|
34202
|
+
let cJ;
|
|
34203
|
+
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== sJ ? (cJ = (0, import_jsx_runtime.jsxs)(I, {
|
|
34205
34204
|
modal: K,
|
|
34206
34205
|
open: q,
|
|
34207
34206
|
onOpenChange: J,
|
|
34208
34207
|
children: [
|
|
34209
34208
|
Q,
|
|
34210
|
-
|
|
34209
|
+
sJ
|
|
34211
34210
|
]
|
|
34212
|
-
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] =
|
|
34211
|
+
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = sJ, t[54] = cJ) : cJ = t[54], cJ;
|
|
34213
34212
|
};
|
|
34214
34213
|
function fetchJson(e) {
|
|
34215
34214
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34305,22 +34304,22 @@ ${n}` : "Please fix this error.";
|
|
|
34305
34304
|
]
|
|
34306
34305
|
});
|
|
34307
34306
|
};
|
|
34308
|
-
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: $, getRowIds:
|
|
34309
|
-
let
|
|
34307
|
+
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: $, getRowIds: rJ, showSearch: iJ = false, searchQuery: aJ, onSearchQueryChange: oJ, showFilters: sJ = false, filters: cJ, onFiltersChange: lJ, calculateTopKRows: uJ, reloading: dJ, freezeColumnsLeft: fJ, freezeColumnsRight: pJ, hiddenColumns: mJ, toggleDisplayHeader: hJ, showChartBuilder: gJ, isChartBuilderOpen: _J, showPageSizeSelector: vJ, showTableExplorer: yJ, togglePanel: bJ, isPanelOpen: xJ, isAnyPanelOpen: SJ, viewedRowIdx: CJ, onViewedRowChange: wJ, renderTableExplorerPanel: TJ }) => {
|
|
34308
|
+
let EJ = isStaticNotebook(), DJ = !EJ, [OJ, kJ] = import_react.useState(false), { locale: AJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: jJ, setColumnPinning: MJ } = useColumnPinning(fJ, pJ), { columnVisibility: NJ, setColumnVisibility: PJ } = useColumnVisibility(mJ);
|
|
34310
34309
|
import_react.useEffect(() => {
|
|
34311
34310
|
let e2;
|
|
34312
|
-
return
|
|
34313
|
-
|
|
34314
|
-
}, 300) :
|
|
34311
|
+
return dJ ? e2 = setTimeout(() => {
|
|
34312
|
+
kJ(true);
|
|
34313
|
+
}, 300) : kJ(false), () => {
|
|
34315
34314
|
e2 && clearTimeout(e2);
|
|
34316
34315
|
};
|
|
34317
34316
|
}, [
|
|
34318
|
-
|
|
34317
|
+
dJ
|
|
34319
34318
|
]);
|
|
34320
|
-
function
|
|
34319
|
+
function FJ(e2, t2) {
|
|
34321
34320
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
34322
34321
|
}
|
|
34323
|
-
let
|
|
34322
|
+
let IJ = useReactTable({
|
|
34324
34323
|
_features: [
|
|
34325
34324
|
ColumnPinning,
|
|
34326
34325
|
ColumnWrappingFeature,
|
|
@@ -34344,37 +34343,37 @@ ${n}` : "Please fix this error.";
|
|
|
34344
34343
|
getRowId: (e2, t2) => {
|
|
34345
34344
|
let n2 = getStableRowId(e2);
|
|
34346
34345
|
if (n2) return n2;
|
|
34347
|
-
let i2 =
|
|
34346
|
+
let i2 = FJ(e2, t2);
|
|
34348
34347
|
return String(i2);
|
|
34349
34348
|
}
|
|
34350
34349
|
} : {},
|
|
34351
|
-
locale:
|
|
34350
|
+
locale: AJ,
|
|
34352
34351
|
manualPagination: q,
|
|
34353
34352
|
getPaginationRowModel: getPaginationRowModel(),
|
|
34354
34353
|
...w ? {
|
|
34355
34354
|
onSortingChange: w
|
|
34356
34355
|
} : {},
|
|
34357
34356
|
manualSorting: y,
|
|
34358
|
-
enableSorting: !
|
|
34357
|
+
enableSorting: !EJ,
|
|
34359
34358
|
enableMultiSort: true,
|
|
34360
34359
|
getSortedRowModel: getSortedRowModel(),
|
|
34361
34360
|
manualFiltering: true,
|
|
34362
|
-
enableColumnFilters:
|
|
34361
|
+
enableColumnFilters: sJ && !EJ,
|
|
34363
34362
|
getFilteredRowModel: getFilteredRowModel(),
|
|
34364
|
-
onColumnFiltersChange:
|
|
34363
|
+
onColumnFiltersChange: lJ,
|
|
34365
34364
|
onRowSelectionChange: Q,
|
|
34366
34365
|
onCellSelectionChange: $,
|
|
34367
34366
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
34368
34367
|
enableMultiCellSelection: c === "multi-cell",
|
|
34369
|
-
onColumnPinningChange:
|
|
34370
|
-
onColumnVisibilityChange:
|
|
34368
|
+
onColumnPinningChange: MJ,
|
|
34369
|
+
onColumnVisibilityChange: PJ,
|
|
34371
34370
|
enableFocusRow: true,
|
|
34372
|
-
onFocusRowChange:
|
|
34371
|
+
onFocusRowChange: wJ,
|
|
34373
34372
|
state: {
|
|
34374
34373
|
...S ? {
|
|
34375
34374
|
sorting: S
|
|
34376
34375
|
} : {},
|
|
34377
|
-
columnFilters:
|
|
34376
|
+
columnFilters: cJ,
|
|
34378
34377
|
...z ? {
|
|
34379
34378
|
pagination: z
|
|
34380
34379
|
} : J && !z ? {} : {
|
|
@@ -34385,60 +34384,60 @@ ${n}` : "Please fix this error.";
|
|
|
34385
34384
|
},
|
|
34386
34385
|
rowSelection: E ?? {},
|
|
34387
34386
|
cellSelection: O ?? [],
|
|
34388
|
-
columnVisibility:
|
|
34387
|
+
columnVisibility: NJ,
|
|
34389
34388
|
cellStyling: A,
|
|
34390
|
-
columnPinning:
|
|
34389
|
+
columnPinning: jJ,
|
|
34391
34390
|
cellHoverTemplate: M,
|
|
34392
34391
|
cellHoverTexts: I ?? {}
|
|
34393
34392
|
}
|
|
34394
|
-
}),
|
|
34393
|
+
}), LJ = (xJ == null ? void 0 : xJ(PANEL_TYPES.ROW_VIEWER)) ?? false, RJ = !J && o.length > 100, zJ = useScrollContainerHeight({
|
|
34395
34394
|
maxHeight: n,
|
|
34396
|
-
virtualize:
|
|
34397
|
-
}), [
|
|
34395
|
+
virtualize: RJ
|
|
34396
|
+
}), [BJ, VJ] = import_react.useState(null), HJ = import_react.useMemo(() => ({
|
|
34398
34397
|
requestAddFilter: (e2) => {
|
|
34399
|
-
let t2 =
|
|
34400
|
-
t2 &&
|
|
34398
|
+
let t2 = IJ.getColumn(e2.columnId);
|
|
34399
|
+
t2 && VJ(buildEditorSnapshot(t2, {
|
|
34401
34400
|
operator: e2.operator
|
|
34402
34401
|
}));
|
|
34403
34402
|
}
|
|
34404
34403
|
}), [
|
|
34405
|
-
|
|
34406
|
-
]),
|
|
34404
|
+
IJ
|
|
34405
|
+
]), UJ = getUserColumnVisibilityCounts(IJ), WJ = UJ.total > 0 && UJ.visible === 0;
|
|
34407
34406
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
34408
|
-
value:
|
|
34407
|
+
value: HJ,
|
|
34409
34408
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34410
34409
|
className: cn(e, "flex flex-col space-y-1"),
|
|
34411
34410
|
children: [
|
|
34412
34411
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
34413
|
-
filters:
|
|
34414
|
-
table:
|
|
34415
|
-
calculateTopKRows:
|
|
34416
|
-
addFilterSnapshot:
|
|
34417
|
-
onAddFilterSnapshotChange:
|
|
34412
|
+
filters: cJ,
|
|
34413
|
+
table: IJ,
|
|
34414
|
+
calculateTopKRows: uJ,
|
|
34415
|
+
addFilterSnapshot: BJ,
|
|
34416
|
+
onAddFilterSnapshotChange: VJ
|
|
34418
34417
|
}),
|
|
34419
|
-
|
|
34418
|
+
TJ == null ? void 0 : TJ(IJ),
|
|
34420
34419
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
34421
34420
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34422
34421
|
part: "table-wrapper",
|
|
34423
34422
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
34424
34423
|
children: [
|
|
34425
|
-
|
|
34426
|
-
table:
|
|
34427
|
-
showSearch:
|
|
34428
|
-
searchQuery:
|
|
34429
|
-
onSearchQueryChange:
|
|
34430
|
-
reloading:
|
|
34431
|
-
showChartBuilder:
|
|
34432
|
-
isChartBuilderOpen:
|
|
34433
|
-
toggleDisplayHeader:
|
|
34434
|
-
showTableExplorer:
|
|
34435
|
-
togglePanel:
|
|
34436
|
-
isAnyPanelOpen:
|
|
34424
|
+
DJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
34425
|
+
table: IJ,
|
|
34426
|
+
showSearch: iJ,
|
|
34427
|
+
searchQuery: aJ,
|
|
34428
|
+
onSearchQueryChange: oJ,
|
|
34429
|
+
reloading: dJ,
|
|
34430
|
+
showChartBuilder: gJ,
|
|
34431
|
+
isChartBuilderOpen: _J,
|
|
34432
|
+
toggleDisplayHeader: hJ,
|
|
34433
|
+
showTableExplorer: yJ,
|
|
34434
|
+
togglePanel: bJ,
|
|
34435
|
+
isAnyPanelOpen: SJ,
|
|
34437
34436
|
downloadAs: K,
|
|
34438
34437
|
sizeBytes: _,
|
|
34439
34438
|
sizeBytesIsLoading: v
|
|
34440
34439
|
}),
|
|
34441
|
-
|
|
34440
|
+
WJ && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
34442
34441
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
34443
34442
|
children: [
|
|
34444
34443
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34447,26 +34446,26 @@ ${n}` : "Please fix this error.";
|
|
|
34447
34446
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
34448
34447
|
variant: "link",
|
|
34449
34448
|
size: "xs",
|
|
34450
|
-
onClick: () =>
|
|
34449
|
+
onClick: () => IJ.resetColumnVisibility(true),
|
|
34451
34450
|
children: "Unhide all"
|
|
34452
34451
|
})
|
|
34453
34452
|
]
|
|
34454
34453
|
}),
|
|
34455
34454
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34456
34455
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
34457
|
-
ref:
|
|
34456
|
+
ref: zJ,
|
|
34458
34457
|
children: [
|
|
34459
|
-
|
|
34458
|
+
OJ && (0, import_jsx_runtime.jsx)("thead", {
|
|
34460
34459
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
34461
34460
|
}),
|
|
34462
|
-
renderTableHeader(
|
|
34461
|
+
renderTableHeader(IJ, RJ || !!n),
|
|
34463
34462
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
34464
|
-
table:
|
|
34463
|
+
table: IJ,
|
|
34465
34464
|
columns: i,
|
|
34466
|
-
rowViewerPanelOpen:
|
|
34467
|
-
getRowIndex:
|
|
34468
|
-
viewedRowIdx:
|
|
34469
|
-
virtualize:
|
|
34465
|
+
rowViewerPanelOpen: LJ,
|
|
34466
|
+
getRowIndex: FJ,
|
|
34467
|
+
viewedRowIdx: CJ,
|
|
34468
|
+
virtualize: RJ
|
|
34470
34469
|
})
|
|
34471
34470
|
]
|
|
34472
34471
|
}),
|
|
@@ -34477,10 +34476,10 @@ ${n}` : "Please fix this error.";
|
|
|
34477
34476
|
pagination: J,
|
|
34478
34477
|
selection: c,
|
|
34479
34478
|
onRowSelectionChange: Q,
|
|
34480
|
-
table:
|
|
34481
|
-
getRowIds:
|
|
34482
|
-
showPageSizeSelector:
|
|
34483
|
-
tableLoading:
|
|
34479
|
+
table: IJ,
|
|
34480
|
+
getRowIds: rJ,
|
|
34481
|
+
showPageSizeSelector: vJ,
|
|
34482
|
+
tableLoading: dJ
|
|
34484
34483
|
})
|
|
34485
34484
|
]
|
|
34486
34485
|
})
|
|
@@ -34563,62 +34562,62 @@ ${n}` : "Please fix this error.";
|
|
|
34563
34562
|
t[4] === i ? v = t[5] : (v = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = v);
|
|
34564
34563
|
let y = v, w;
|
|
34565
34564
|
t[6] !== a || t[7] !== y ? (w = y && y.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = y, t[8] = w) : w = t[8];
|
|
34566
|
-
let
|
|
34567
|
-
t[9] !== f || t[10] !== n ? (
|
|
34568
|
-
let
|
|
34569
|
-
t[12] !== d || t[13] !== n ? (
|
|
34565
|
+
let O = w, A;
|
|
34566
|
+
t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
|
|
34567
|
+
let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), K;
|
|
34568
|
+
t[12] !== d || t[13] !== n ? (K = (e2) => {
|
|
34570
34569
|
n == null ? void 0 : n({
|
|
34571
34570
|
prompt: `My code gives the following error:
|
|
34572
34571
|
|
|
34573
34572
|
${d}`,
|
|
34574
34573
|
triggerImmediately: e2
|
|
34575
34574
|
});
|
|
34576
|
-
}, t[12] = d, t[13] = n, t[14] =
|
|
34577
|
-
let
|
|
34578
|
-
t[15] !== a || t[16] !== d || t[17] !== _ ? (
|
|
34575
|
+
}, t[12] = d, t[13] = n, t[14] = K) : K = t[14];
|
|
34576
|
+
let q = K, J;
|
|
34577
|
+
t[15] !== a || t[16] !== d || t[17] !== _ ? (J = () => {
|
|
34579
34578
|
_({
|
|
34580
34579
|
prompt: buildFixInChatPrompt(a, d)
|
|
34581
34580
|
});
|
|
34582
|
-
}, t[15] = a, t[16] = d, t[17] = _, t[18] =
|
|
34583
|
-
let
|
|
34584
|
-
t[19] ===
|
|
34585
|
-
let rJ =
|
|
34586
|
-
t[21] ===
|
|
34581
|
+
}, t[15] = a, t[16] = d, t[17] = _, t[18] = J) : J = t[18];
|
|
34582
|
+
let Q = J, $;
|
|
34583
|
+
t[19] === z ? $ = t[20] : ($ = () => U(!z), t[19] = z, t[20] = $);
|
|
34584
|
+
let rJ = z ? "Collapse traceback" : "Expand traceback", aJ;
|
|
34585
|
+
t[21] === z ? aJ = t[22] : (aJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34587
34586
|
className: "h-3 w-3"
|
|
34588
34587
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34589
34588
|
className: "h-3 w-3"
|
|
34590
|
-
}), t[21] =
|
|
34591
|
-
let
|
|
34592
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34589
|
+
}), t[21] = z, t[22] = aJ);
|
|
34590
|
+
let oJ;
|
|
34591
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34593
34592
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34594
34593
|
children: "Traceback"
|
|
34595
|
-
}), t[23] =
|
|
34596
|
-
let
|
|
34597
|
-
t[24] !==
|
|
34594
|
+
}), t[23] = oJ) : oJ = t[23];
|
|
34595
|
+
let sJ;
|
|
34596
|
+
t[24] !== z || t[25] !== aJ || t[26] !== $ || t[27] !== rJ ? (sJ = (0, import_jsx_runtime.jsxs)("button", {
|
|
34598
34597
|
type: "button",
|
|
34599
|
-
onClick:
|
|
34600
|
-
"aria-expanded":
|
|
34598
|
+
onClick: $,
|
|
34599
|
+
"aria-expanded": z,
|
|
34601
34600
|
"aria-label": rJ,
|
|
34602
34601
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34603
34602
|
children: [
|
|
34604
|
-
|
|
34605
|
-
|
|
34603
|
+
aJ,
|
|
34604
|
+
oJ
|
|
34606
34605
|
]
|
|
34607
|
-
}), t[24] =
|
|
34608
|
-
let
|
|
34609
|
-
t[29] !== s || t[30] !==
|
|
34606
|
+
}), t[24] = z, t[25] = aJ, t[26] = $, t[27] = rJ, t[28] = sJ) : sJ = t[28];
|
|
34607
|
+
let lJ;
|
|
34608
|
+
t[29] !== s || t[30] !== z ? (lJ = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34610
34609
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34611
34610
|
children: s
|
|
34612
|
-
}), t[29] = s, t[30] =
|
|
34613
|
-
let
|
|
34614
|
-
t[32] !==
|
|
34611
|
+
}), t[29] = s, t[30] = z, t[31] = lJ) : lJ = t[31];
|
|
34612
|
+
let uJ;
|
|
34613
|
+
t[32] !== q || t[33] !== Q || t[34] !== M ? (uJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34615
34614
|
tooltip: "Fix with AI",
|
|
34616
|
-
openPrompt: () =>
|
|
34617
|
-
applyAutofix: () =>
|
|
34618
|
-
openChat:
|
|
34619
|
-
}), t[32] =
|
|
34620
|
-
let
|
|
34621
|
-
t[36] !==
|
|
34615
|
+
openPrompt: () => q(false),
|
|
34616
|
+
applyAutofix: () => q(true),
|
|
34617
|
+
openChat: Q
|
|
34618
|
+
}), t[32] = q, t[33] = Q, t[34] = M, t[35] = uJ) : uJ = t[35];
|
|
34619
|
+
let dJ;
|
|
34620
|
+
t[36] !== O || t[37] !== y ? (dJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34622
34621
|
content: "Attach pdb to the exception point.",
|
|
34623
34622
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34624
34623
|
size: "xs",
|
|
@@ -34635,9 +34634,9 @@ ${d}`,
|
|
|
34635
34634
|
"Launch debugger"
|
|
34636
34635
|
]
|
|
34637
34636
|
})
|
|
34638
|
-
}), t[36] =
|
|
34639
|
-
let
|
|
34640
|
-
t[39] !== d || t[40] !== i ? (
|
|
34637
|
+
}), t[36] = O, t[37] = y, t[38] = dJ) : dJ = t[38];
|
|
34638
|
+
let fJ;
|
|
34639
|
+
t[39] !== d || t[40] !== i ? (fJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34641
34640
|
children: [
|
|
34642
34641
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34643
34642
|
asChild: true,
|
|
@@ -34705,25 +34704,25 @@ ${d}`,
|
|
|
34705
34704
|
]
|
|
34706
34705
|
})
|
|
34707
34706
|
]
|
|
34708
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34709
|
-
let
|
|
34710
|
-
t[42] !==
|
|
34707
|
+
}), t[39] = d, t[40] = i, t[41] = fJ) : fJ = t[41];
|
|
34708
|
+
let pJ;
|
|
34709
|
+
t[42] !== uJ || t[43] !== dJ || t[44] !== fJ ? (pJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34711
34710
|
className: "flex gap-2",
|
|
34712
34711
|
children: [
|
|
34713
|
-
|
|
34714
|
-
|
|
34715
|
-
|
|
34712
|
+
uJ,
|
|
34713
|
+
dJ,
|
|
34714
|
+
fJ
|
|
34716
34715
|
]
|
|
34717
|
-
}), t[42] =
|
|
34718
|
-
let
|
|
34719
|
-
return t[46] !==
|
|
34716
|
+
}), t[42] = uJ, t[43] = dJ, t[44] = fJ, t[45] = pJ) : pJ = t[45];
|
|
34717
|
+
let mJ;
|
|
34718
|
+
return t[46] !== sJ || t[47] !== lJ || t[48] !== pJ ? (mJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34720
34719
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34721
34720
|
children: [
|
|
34722
|
-
oJ,
|
|
34723
34721
|
sJ,
|
|
34724
|
-
|
|
34722
|
+
lJ,
|
|
34723
|
+
pJ
|
|
34725
34724
|
]
|
|
34726
|
-
}), t[46] =
|
|
34725
|
+
}), t[46] = sJ, t[47] = lJ, t[48] = pJ, t[49] = mJ) : mJ = t[49], mJ;
|
|
34727
34726
|
};
|
|
34728
34727
|
function lastLine(e) {
|
|
34729
34728
|
var _a2, _b;
|
|
@@ -35777,6 +35776,7 @@ ${d}`,
|
|
|
35777
35776
|
var import_compiler_runtime$1 = require_compiler_runtime();
|
|
35778
35777
|
DEFAULT_SLIDE_TYPE = "slide";
|
|
35779
35778
|
DEFAULT_DECK_TRANSITION = "slide";
|
|
35779
|
+
DEFAULT_DECK_VERTICAL_ALIGN = "center";
|
|
35780
35780
|
var COLLAPSED_CONFIG_WIDTH = 36, slideConfigOpenAtom = atomWithStorage("marimo:slides:config-open", true, jotaiJsonStorage, {
|
|
35781
35781
|
getOnInit: true
|
|
35782
35782
|
});
|
|
@@ -35842,6 +35842,22 @@ ${d}`,
|
|
|
35842
35842
|
label: "Zoom",
|
|
35843
35843
|
description: "Zoom into the next slide."
|
|
35844
35844
|
}
|
|
35845
|
+
], DECK_VERTICAL_ALIGN_OPTIONS = [
|
|
35846
|
+
{
|
|
35847
|
+
value: "center",
|
|
35848
|
+
label: "Center",
|
|
35849
|
+
description: "Vertically center each slide's content."
|
|
35850
|
+
},
|
|
35851
|
+
{
|
|
35852
|
+
value: "top",
|
|
35853
|
+
label: "Top",
|
|
35854
|
+
description: "Align content to the top, like the cell view."
|
|
35855
|
+
},
|
|
35856
|
+
{
|
|
35857
|
+
value: "bottom",
|
|
35858
|
+
label: "Bottom",
|
|
35859
|
+
description: "Align content to the bottom of each slide."
|
|
35860
|
+
}
|
|
35845
35861
|
], SlidesForm = (e) => {
|
|
35846
35862
|
let t = (0, import_compiler_runtime$1.c)(13), { layout: n, setLayout: i, cellId: a } = e, o;
|
|
35847
35863
|
t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (0, import_jsx_runtime.jsxs)(TabsList, {
|
|
@@ -36035,11 +36051,13 @@ ${d}`,
|
|
|
36035
36051
|
]
|
|
36036
36052
|
}), t[26] = O, t[27] = M, t[28] = I) : I = t[28], I;
|
|
36037
36053
|
}, DeckConfigForm = (e) => {
|
|
36038
|
-
var _a2, _b;
|
|
36039
|
-
let t = (0, import_compiler_runtime$1.c)(
|
|
36054
|
+
var _a2, _b, _c, _d;
|
|
36055
|
+
let t = (0, import_compiler_runtime$1.c)(39), { layout: n, setLayout: i } = e, a = ((_a2 = n.deck) == null ? void 0 : _a2.transition) ?? "slide", o;
|
|
36040
36056
|
t[0] === a ? o = t[1] : (o = (_b = DECK_TRANSITION_OPTIONS.find((e2) => e2.value === a)) == null ? void 0 : _b.description, t[0] = a, t[1] = o);
|
|
36041
|
-
let s = o, c;
|
|
36042
|
-
t[2]
|
|
36057
|
+
let s = o, c = ((_c = n.deck) == null ? void 0 : _c.verticalAlign) ?? "center", d;
|
|
36058
|
+
t[2] === c ? d = t[3] : (d = (_d = DECK_VERTICAL_ALIGN_OPTIONS.find((e2) => e2.value === c)) == null ? void 0 : _d.description, t[2] = c, t[3] = d);
|
|
36059
|
+
let f = d, h;
|
|
36060
|
+
t[4] !== n || t[5] !== i ? (h = (e2) => {
|
|
36043
36061
|
i({
|
|
36044
36062
|
...n,
|
|
36045
36063
|
deck: {
|
|
@@ -36047,51 +36065,107 @@ ${d}`,
|
|
|
36047
36065
|
transition: e2
|
|
36048
36066
|
}
|
|
36049
36067
|
});
|
|
36050
|
-
}, t[
|
|
36051
|
-
let
|
|
36052
|
-
t[
|
|
36068
|
+
}, t[4] = n, t[5] = i, t[6] = h) : h = t[6];
|
|
36069
|
+
let _ = h, v;
|
|
36070
|
+
t[7] !== n || t[8] !== i ? (v = (e2) => {
|
|
36071
|
+
i({
|
|
36072
|
+
...n,
|
|
36073
|
+
deck: {
|
|
36074
|
+
...n.deck,
|
|
36075
|
+
verticalAlign: e2
|
|
36076
|
+
}
|
|
36077
|
+
});
|
|
36078
|
+
}, t[7] = n, t[8] = i, t[9] = v) : v = t[9];
|
|
36079
|
+
let y = v, S;
|
|
36080
|
+
t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (S = (0, import_jsx_runtime.jsx)("label", {
|
|
36053
36081
|
htmlFor: "deck-transition",
|
|
36054
36082
|
className: "font-semibold text-sm text-foreground",
|
|
36055
36083
|
children: "Transition"
|
|
36056
|
-
}), t[
|
|
36057
|
-
let
|
|
36058
|
-
t[
|
|
36059
|
-
let
|
|
36060
|
-
t[
|
|
36084
|
+
}), t[10] = S) : S = t[10];
|
|
36085
|
+
let w;
|
|
36086
|
+
t[11] === _ ? w = t[12] : (w = (e2) => _(e2), t[11] = _, t[12] = w);
|
|
36087
|
+
let E;
|
|
36088
|
+
t[13] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (E = (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
36061
36089
|
id: "deck-transition",
|
|
36062
36090
|
"aria-label": "Slide transition",
|
|
36063
36091
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
36064
|
-
}), t[
|
|
36065
|
-
let
|
|
36066
|
-
t[
|
|
36092
|
+
}), t[13] = E) : E = t[13];
|
|
36093
|
+
let O;
|
|
36094
|
+
t[14] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (O = (0, import_jsx_runtime.jsx)(SelectContent, {
|
|
36067
36095
|
children: DECK_TRANSITION_OPTIONS.map(_temp3)
|
|
36068
|
-
}), t[
|
|
36069
|
-
let
|
|
36070
|
-
t[
|
|
36096
|
+
}), t[14] = O) : O = t[14];
|
|
36097
|
+
let A;
|
|
36098
|
+
t[15] !== a || t[16] !== w ? (A = (0, import_jsx_runtime.jsxs)(Select, {
|
|
36071
36099
|
value: a,
|
|
36072
|
-
onValueChange:
|
|
36100
|
+
onValueChange: w,
|
|
36073
36101
|
children: [
|
|
36074
|
-
|
|
36075
|
-
|
|
36102
|
+
E,
|
|
36103
|
+
O
|
|
36076
36104
|
]
|
|
36077
|
-
}), t[
|
|
36078
|
-
let
|
|
36079
|
-
t[
|
|
36105
|
+
}), t[15] = a, t[16] = w, t[17] = A) : A = t[17];
|
|
36106
|
+
let M;
|
|
36107
|
+
t[18] === s ? M = t[19] : (M = s && (0, import_jsx_runtime.jsx)("p", {
|
|
36080
36108
|
className: "text-xs text-foreground/70",
|
|
36081
36109
|
children: s
|
|
36082
|
-
}), t[
|
|
36083
|
-
let
|
|
36084
|
-
|
|
36110
|
+
}), t[18] = s, t[19] = M);
|
|
36111
|
+
let I;
|
|
36112
|
+
t[20] !== M || t[21] !== A ? (I = (0, import_jsx_runtime.jsxs)("div", {
|
|
36113
|
+
className: "flex flex-col gap-1.5",
|
|
36114
|
+
children: [
|
|
36115
|
+
S,
|
|
36116
|
+
A,
|
|
36117
|
+
M
|
|
36118
|
+
]
|
|
36119
|
+
}), t[20] = M, t[21] = A, t[22] = I) : I = t[22];
|
|
36120
|
+
let z;
|
|
36121
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (z = (0, import_jsx_runtime.jsx)("label", {
|
|
36122
|
+
htmlFor: "deck-vertical-align",
|
|
36123
|
+
className: "font-semibold text-sm text-foreground",
|
|
36124
|
+
children: "Vertical alignment"
|
|
36125
|
+
}), t[23] = z) : z = t[23];
|
|
36126
|
+
let U;
|
|
36127
|
+
t[24] === y ? U = t[25] : (U = (e2) => y(e2), t[24] = y, t[25] = U);
|
|
36128
|
+
let K;
|
|
36129
|
+
t[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = (0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
36130
|
+
id: "deck-vertical-align",
|
|
36131
|
+
"aria-label": "Vertical alignment",
|
|
36132
|
+
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
36133
|
+
}), t[26] = K) : K = t[26];
|
|
36134
|
+
let q;
|
|
36135
|
+
t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (q = (0, import_jsx_runtime.jsx)(SelectContent, {
|
|
36136
|
+
children: DECK_VERTICAL_ALIGN_OPTIONS.map(_temp4)
|
|
36137
|
+
}), t[27] = q) : q = t[27];
|
|
36138
|
+
let J;
|
|
36139
|
+
t[28] !== c || t[29] !== U ? (J = (0, import_jsx_runtime.jsxs)(Select, {
|
|
36140
|
+
value: c,
|
|
36141
|
+
onValueChange: U,
|
|
36142
|
+
children: [
|
|
36143
|
+
K,
|
|
36144
|
+
q
|
|
36145
|
+
]
|
|
36146
|
+
}), t[28] = c, t[29] = U, t[30] = J) : J = t[30];
|
|
36147
|
+
let Q;
|
|
36148
|
+
t[31] === f ? Q = t[32] : (Q = f && (0, import_jsx_runtime.jsx)("p", {
|
|
36149
|
+
className: "text-xs text-foreground/70",
|
|
36150
|
+
children: f
|
|
36151
|
+
}), t[31] = f, t[32] = Q);
|
|
36152
|
+
let $;
|
|
36153
|
+
t[33] !== J || t[34] !== Q ? ($ = (0, import_jsx_runtime.jsxs)("div", {
|
|
36154
|
+
className: "flex flex-col gap-1.5",
|
|
36155
|
+
children: [
|
|
36156
|
+
z,
|
|
36157
|
+
J,
|
|
36158
|
+
Q
|
|
36159
|
+
]
|
|
36160
|
+
}), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
|
|
36161
|
+
let rJ;
|
|
36162
|
+
return t[36] !== I || t[37] !== $ ? (rJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
36085
36163
|
className: "flex flex-col gap-3",
|
|
36086
|
-
children:
|
|
36087
|
-
|
|
36088
|
-
|
|
36089
|
-
|
|
36090
|
-
|
|
36091
|
-
S
|
|
36092
|
-
]
|
|
36093
|
-
})
|
|
36094
|
-
}), t[15] = y, t[16] = S, t[17] = w) : w = t[17], w;
|
|
36164
|
+
children: [
|
|
36165
|
+
I,
|
|
36166
|
+
$
|
|
36167
|
+
]
|
|
36168
|
+
}), t[36] = I, t[37] = $, t[38] = rJ) : rJ = t[38], rJ;
|
|
36095
36169
|
};
|
|
36096
36170
|
SlideSidebar = (e) => {
|
|
36097
36171
|
let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: o, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
|
|
@@ -36106,7 +36180,7 @@ ${d}`,
|
|
|
36106
36180
|
children: "Configuration"
|
|
36107
36181
|
}), t[4] = c, t[5] = S);
|
|
36108
36182
|
let w = c ? "Collapse panel" : "Expand panel", E;
|
|
36109
|
-
t[6] === d ? E = t[7] : (E = () => d(
|
|
36183
|
+
t[6] === d ? E = t[7] : (E = () => d(_temp6), t[6] = d, t[7] = E);
|
|
36110
36184
|
let O;
|
|
36111
36185
|
t[8] === c ? O = t[9] : (O = c ? (0, import_jsx_runtime.jsx)(PanelRightClose, {
|
|
36112
36186
|
className: "h-4 w-4"
|
|
@@ -36162,7 +36236,7 @@ ${d}`,
|
|
|
36162
36236
|
className: "h-full flex flex-col border-l border-border/60 bg-muted/20 transition-[width] duration-200 ease-out overflow-hidden",
|
|
36163
36237
|
style: _,
|
|
36164
36238
|
"aria-label": "Slide configuration",
|
|
36165
|
-
onKeyDown:
|
|
36239
|
+
onKeyDown: _temp5,
|
|
36166
36240
|
children: [
|
|
36167
36241
|
I,
|
|
36168
36242
|
z
|
|
@@ -36197,9 +36271,16 @@ ${d}`,
|
|
|
36197
36271
|
}, t);
|
|
36198
36272
|
}
|
|
36199
36273
|
function _temp4(e) {
|
|
36200
|
-
|
|
36274
|
+
let { value: t, label: n } = e;
|
|
36275
|
+
return (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
36276
|
+
value: t,
|
|
36277
|
+
children: n
|
|
36278
|
+
}, t);
|
|
36201
36279
|
}
|
|
36202
36280
|
function _temp5(e) {
|
|
36281
|
+
return e.stopPropagation();
|
|
36282
|
+
}
|
|
36283
|
+
function _temp6(e) {
|
|
36203
36284
|
return !e;
|
|
36204
36285
|
}
|
|
36205
36286
|
function getVersionFromMountConfig() {
|
|
@@ -36209,7 +36290,7 @@ ${d}`,
|
|
|
36209
36290
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36210
36291
|
}
|
|
36211
36292
|
}
|
|
36212
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-
|
|
36293
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-dev41");
|
|
36213
36294
|
showCodeInRunModeAtom = atom(true);
|
|
36214
36295
|
atom(null);
|
|
36215
36296
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -36237,129 +36318,130 @@ ${d}`,
|
|
|
36237
36318
|
}
|
|
36238
36319
|
});
|
|
36239
36320
|
export {
|
|
36240
|
-
|
|
36241
|
-
|
|
36242
|
-
|
|
36243
|
-
|
|
36244
|
-
|
|
36245
|
-
|
|
36246
|
-
|
|
36247
|
-
|
|
36248
|
-
|
|
36249
|
-
|
|
36250
|
-
|
|
36251
|
-
|
|
36252
|
-
|
|
36253
|
-
|
|
36254
|
-
|
|
36255
|
-
|
|
36256
|
-
|
|
36257
|
-
|
|
36258
|
-
|
|
36259
|
-
|
|
36260
|
-
|
|
36261
|
-
|
|
36262
|
-
|
|
36263
|
-
|
|
36264
|
-
|
|
36265
|
-
|
|
36266
|
-
|
|
36267
|
-
|
|
36268
|
-
|
|
36269
|
-
|
|
36270
|
-
|
|
36271
|
-
|
|
36272
|
-
|
|
36273
|
-
|
|
36274
|
-
|
|
36275
|
-
|
|
36276
|
-
|
|
36277
|
-
|
|
36278
|
-
|
|
36279
|
-
|
|
36280
|
-
|
|
36281
|
-
|
|
36282
|
-
|
|
36283
|
-
|
|
36284
|
-
|
|
36285
|
-
|
|
36286
|
-
|
|
36287
|
-
|
|
36288
|
-
|
|
36289
|
-
|
|
36290
|
-
|
|
36291
|
-
|
|
36292
|
-
|
|
36293
|
-
|
|
36294
|
-
|
|
36321
|
+
ContextAwarePanelItem as $,
|
|
36322
|
+
EmotionCacheProvider as $t,
|
|
36323
|
+
prettifyRowColumnCount as A,
|
|
36324
|
+
loadTableData as At,
|
|
36325
|
+
useSelectList as B,
|
|
36326
|
+
dateToLocalISOTime as Bt,
|
|
36327
|
+
Filenames as C,
|
|
36328
|
+
ColumnChartContext as Ct,
|
|
36329
|
+
EmptyState as D,
|
|
36330
|
+
usePrevious as Dt,
|
|
36331
|
+
ColumnPreviewContainer as E,
|
|
36332
|
+
useIntersectionObserver as Et,
|
|
36333
|
+
ContextMenuContent as F,
|
|
36334
|
+
getMimeValues as Ft,
|
|
36335
|
+
ComboboxItem as G,
|
|
36336
|
+
ChartErrorState as Gt,
|
|
36337
|
+
DatePicker as H,
|
|
36338
|
+
TabsContent as Ht,
|
|
36339
|
+
ContextMenuItem as I,
|
|
36340
|
+
isNullishFilter as It,
|
|
36341
|
+
CommandInput as J,
|
|
36342
|
+
LazyVegaEmbed as Jt,
|
|
36343
|
+
Command as K,
|
|
36344
|
+
ChartInfoState as Kt,
|
|
36345
|
+
ContextMenuSeparator as L,
|
|
36346
|
+
Maps as Lt,
|
|
36347
|
+
getColumnCountForDisplay as M,
|
|
36348
|
+
SELECT_COLUMN_ID as Mt,
|
|
36349
|
+
getUserColumnVisibilityCounts as N,
|
|
36350
|
+
TOO_MANY_ROWS as Nt,
|
|
36351
|
+
ErrorState as O,
|
|
36352
|
+
getPageIndexForRow as Ot,
|
|
36353
|
+
ContextMenu as P,
|
|
36354
|
+
toFieldTypes as Pt,
|
|
36355
|
+
smartMatch as Q,
|
|
36356
|
+
HtmlOutput as Qt,
|
|
36357
|
+
ContextMenuTrigger as R,
|
|
36358
|
+
dateToLocalISODate as Rt,
|
|
36359
|
+
Progress as S,
|
|
36360
|
+
renderCellValue as St,
|
|
36361
|
+
ColumnName as T,
|
|
36362
|
+
DelayMount as Tt,
|
|
36363
|
+
DateRangePicker as U,
|
|
36364
|
+
TabsList as Ut,
|
|
36365
|
+
CompactChipRow as V,
|
|
36366
|
+
Tabs as Vt,
|
|
36367
|
+
Combobox as W,
|
|
36368
|
+
TabsTrigger as Wt,
|
|
36369
|
+
CommandList as X,
|
|
36370
|
+
RenderTextWithLinks as Xt,
|
|
36371
|
+
CommandItem as Y,
|
|
36372
|
+
useOverflowDetection as Yt,
|
|
36373
|
+
CommandSeparator as Z,
|
|
36374
|
+
Kbd as Zt,
|
|
36375
|
+
InstallPackageButton as _,
|
|
36295
36376
|
__tla,
|
|
36296
|
-
|
|
36297
|
-
|
|
36298
|
-
|
|
36299
|
-
|
|
36300
|
-
|
|
36301
|
-
|
|
36302
|
-
|
|
36303
|
-
|
|
36304
|
-
|
|
36305
|
-
|
|
36306
|
-
|
|
36307
|
-
|
|
36308
|
-
|
|
36309
|
-
|
|
36310
|
-
|
|
36311
|
-
|
|
36312
|
-
|
|
36313
|
-
|
|
36314
|
-
|
|
36315
|
-
|
|
36316
|
-
|
|
36317
|
-
|
|
36318
|
-
|
|
36377
|
+
ArrowDownWideNarrow as _n,
|
|
36378
|
+
TableHeader as _t,
|
|
36379
|
+
DEFAULT_DECK_VERTICAL_ALIGN as a,
|
|
36380
|
+
GripHorizontal as an,
|
|
36381
|
+
SlotNames as at,
|
|
36382
|
+
downloadByURL as b,
|
|
36383
|
+
generateColumns as bt,
|
|
36384
|
+
SlideSidebar as c,
|
|
36385
|
+
Expand as cn,
|
|
36386
|
+
Panel as ct,
|
|
36387
|
+
RadioGroup as d,
|
|
36388
|
+
Code as dn,
|
|
36389
|
+
Fill as dt,
|
|
36390
|
+
hasFunctionProperty as en,
|
|
36391
|
+
PANEL_TYPES as et,
|
|
36392
|
+
RadioGroupItem as f,
|
|
36393
|
+
ChevronsUpDown as fn,
|
|
36394
|
+
Provider$1 as ft,
|
|
36395
|
+
DataTable as g,
|
|
36396
|
+
ChevronLeft as gn,
|
|
36397
|
+
TableHead as gt,
|
|
36398
|
+
OutputRenderer as h,
|
|
36399
|
+
ChevronsDownUp as hn,
|
|
36400
|
+
TableCell as ht,
|
|
36319
36401
|
DEFAULT_DECK_TRANSITION as i,
|
|
36320
|
-
|
|
36321
|
-
|
|
36322
|
-
|
|
36323
|
-
|
|
36324
|
-
|
|
36325
|
-
|
|
36326
|
-
|
|
36327
|
-
|
|
36328
|
-
|
|
36329
|
-
|
|
36330
|
-
|
|
36331
|
-
|
|
36402
|
+
TextWrap as in,
|
|
36403
|
+
isCellAwareAtom as it,
|
|
36404
|
+
prettifyRowCount as j,
|
|
36405
|
+
INDEX_COLUMN_NAME as jt,
|
|
36406
|
+
LoadingState as k,
|
|
36407
|
+
loadTableAndRawData as kt,
|
|
36408
|
+
Slide as l,
|
|
36409
|
+
Ellipsis as ln,
|
|
36410
|
+
PanelGroup as lt,
|
|
36411
|
+
OutputArea as m,
|
|
36412
|
+
ChevronsLeft as mn,
|
|
36413
|
+
TableBody as mt,
|
|
36332
36414
|
marimoVersionAtom as n,
|
|
36333
|
-
$fae977aafc393c5c$export$
|
|
36334
|
-
|
|
36335
|
-
|
|
36336
|
-
|
|
36337
|
-
|
|
36338
|
-
|
|
36339
|
-
|
|
36340
|
-
|
|
36341
|
-
|
|
36342
|
-
|
|
36415
|
+
$fae977aafc393c5c$export$588937bcd60ade55 as nn,
|
|
36416
|
+
contextAwarePanelOwner as nt,
|
|
36417
|
+
DEFAULT_SLIDE_TYPE as o,
|
|
36418
|
+
Funnel as on,
|
|
36419
|
+
slotsController as ot,
|
|
36420
|
+
JsonOutput as p,
|
|
36421
|
+
ChevronsRight as pn,
|
|
36422
|
+
Table as pt,
|
|
36423
|
+
CommandEmpty as q,
|
|
36424
|
+
ChartLoadingState as qt,
|
|
36343
36425
|
showCodeInRunModeAtom as r,
|
|
36344
|
-
|
|
36345
|
-
|
|
36346
|
-
|
|
36347
|
-
|
|
36348
|
-
|
|
36426
|
+
$fae977aafc393c5c$export$6b862160d295c8e as rn,
|
|
36427
|
+
contextAwarePanelType as rt,
|
|
36428
|
+
SLIDE_TYPE_OPTIONS_BY_VALUE as s,
|
|
36429
|
+
EyeOff as sn,
|
|
36430
|
+
Toggle as st,
|
|
36349
36431
|
useNotebookCodeAvailable as t,
|
|
36350
|
-
|
|
36351
|
-
|
|
36352
|
-
|
|
36353
|
-
|
|
36354
|
-
|
|
36355
|
-
|
|
36356
|
-
|
|
36357
|
-
|
|
36358
|
-
|
|
36359
|
-
|
|
36360
|
-
|
|
36361
|
-
|
|
36362
|
-
|
|
36363
|
-
|
|
36364
|
-
|
|
36432
|
+
isRecord as tn,
|
|
36433
|
+
contextAwarePanelOpen as tt,
|
|
36434
|
+
Switch as u,
|
|
36435
|
+
Download as un,
|
|
36436
|
+
PanelResizeHandle as ut,
|
|
36437
|
+
ADD_PRINTING_CLASS as v,
|
|
36438
|
+
TableRow as vt,
|
|
36439
|
+
downloadSizeLimitAtom as w,
|
|
36440
|
+
ColumnChartSpecModel as wt,
|
|
36441
|
+
downloadHTMLAsImage as x,
|
|
36442
|
+
inferFieldTypes as xt,
|
|
36443
|
+
downloadBlob as y,
|
|
36444
|
+
NAMELESS_COLUMN_PREFIX as yt,
|
|
36445
|
+
useInternalStateWithSync as z,
|
|
36446
|
+
dateToLocalISODateTime as zt
|
|
36365
36447
|
};
|