@marimo-team/islands 0.23.14-dev9 → 0.23.15-dev0
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-DXBx_nQg.js → ConnectedDataExplorerComponent-CU4fZJzG.js} +4 -4
- package/dist/assets/__vite-browser-external-BQCLNwri.js +1 -0
- package/dist/assets/{worker-DEDLIQQV.js → worker-DAWRHcPq.js} +2 -2
- package/dist/{chat-ui-DYBcNEdd.js → chat-ui-DinOvbWu.js} +3256 -3052
- package/dist/{click-outside-container-BDd67_1U.js → click-outside-container-BLPjMamz.js} +141 -113
- package/dist/{code-visibility-BZArWgy6.js → code-visibility-DDwWvOQa.js} +905 -889
- package/dist/data-grid-overlay-editor-C6lxUJp-.js +136 -0
- package/dist/{dist-D_bzzWBm.js → dist-Bf9f8MuT.js} +3 -3
- package/dist/{formats-WsOgyW_K.js → formats-Dzx4J_z1.js} +1 -1
- package/dist/{glide-data-editor-qpmKyAPn.js → glide-data-editor-CjTu7ukN.js} +2084 -1889
- package/dist/{html-to-image-MqcD07Bw.js → html-to-image-_wGfk8V-.js} +2389 -2323
- package/dist/{input-BSdZp5Ng.js → input-DtsN7xm-.js} +1 -1
- package/dist/main.js +3667 -1838
- package/dist/{mermaid-D-HYBMEV.js → mermaid-BYqXy_NE.js} +2 -2
- package/dist/{number-overlay-editor-D-a0qCT8.js → number-overlay-editor-BLJXvX9c.js} +1 -1
- package/dist/{process-output-Dt3icftd.js → process-output-Mh4UrjwM.js} +1 -1
- package/dist/{reveal-component-CKomb1B5.js → reveal-component-CHu9H-QX.js} +600 -596
- package/dist/{spec-CnTgI25l.js → spec-Cz-Bj1JI.js} +1 -1
- package/dist/style.css +1 -1
- package/dist/{toDate-D1Z7ZXWh.js → toDate-CWNNlFEX.js} +15 -7
- package/dist/{useAsyncData-BMc8itk2.js → useAsyncData-KfHB8wQR.js} +1 -1
- package/dist/{useDeepCompareMemoize-ZwmDBRDY.js → useDeepCompareMemoize-nJMtxhm4.js} +1 -1
- package/dist/{useLifecycle-CxffarYV.js → useLifecycle-DegSo0lV.js} +1 -1
- package/dist/{useTheme-yGsGEk82.js → useTheme-6eZ3GOTS.js} +5 -2
- package/dist/{vega-component-BFJTyykA.js → vega-component-DzyyM9fc.js} +5 -5
- package/package.json +4 -4
- package/src/__mocks__/requests.ts +1 -0
- package/src/__tests__/CellStatus.test.tsx +1 -2
- package/src/components/app-config/user-config-form.tsx +52 -0
- package/src/components/data-table/__tests__/column-explorer.test.tsx +25 -0
- package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +60 -3
- package/src/components/data-table/charts/__tests__/altair-generator.test.ts +24 -0
- package/src/components/data-table/charts/__tests__/merge-index-fields.test.ts +33 -0
- package/src/components/data-table/charts/chart-spec/altair-generator.ts +4 -1
- package/src/components/data-table/charts/charts.tsx +23 -1
- package/src/components/data-table/column-explorer-panel/column-explorer.tsx +33 -12
- package/src/components/data-table/column-visibility-dropdown.tsx +15 -0
- package/src/components/debugger/debugger-code.tsx +7 -2
- package/src/components/editor/cell/CellStatus.tsx +1 -20
- package/src/components/editor/cell/PendingDeleteConfirmation.tsx +1 -1
- package/src/components/editor/cell/cell-context-menu.tsx +2 -2
- package/src/components/editor/chrome/panels/snippets-panel.tsx +3 -3
- package/src/components/editor/chrome/wrapper/footer-items/pyodide-status.tsx +6 -36
- package/src/components/editor/code/__tests__/readonly-python-code.test.tsx +79 -0
- package/src/components/editor/code/readonly-python-code.tsx +60 -33
- package/src/components/editor/errors/__tests__/auto-fix.test.ts +11 -107
- package/src/components/editor/errors/auto-fix.tsx +11 -31
- package/src/components/editor/notebook-cell.tsx +7 -0
- package/src/components/editor/output/ImageOutput.tsx +20 -6
- package/src/components/editor/output/MarimoTracebackOutput.tsx +20 -3
- package/src/components/editor/output/__tests__/ImageOutput.test.tsx +53 -0
- package/src/components/editor/renderers/grid-layout/grid-layout.tsx +7 -2
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +7 -3
- package/src/components/lifecycle/ProgressiveBoundary.tsx +42 -0
- package/src/components/lifecycle/RuntimeStatusBadge.tsx +59 -0
- package/src/components/lifecycle/__tests__/ProgressiveBoundary.test.tsx +147 -0
- package/src/components/lifecycle/__tests__/RuntimeStatusBadge.test.tsx +72 -0
- package/src/components/slides/__tests__/slide.test.tsx +33 -0
- package/src/components/slides/minimap.tsx +7 -1
- package/src/components/slides/reveal-component.tsx +3 -0
- package/src/components/slides/slide-cell-view.tsx +10 -6
- package/src/components/slides/slide.tsx +16 -13
- package/src/components/tracing/tracing.tsx +2 -1
- package/src/core/ai/context/__tests__/registry.test.ts +133 -3
- package/src/core/ai/context/providers/__tests__/datasource.test.ts +3 -1
- package/src/core/ai/context/providers/__tests__/error.test.ts +200 -15
- package/src/core/ai/context/providers/datasource.ts +27 -2
- package/src/core/ai/context/providers/error.ts +226 -36
- package/src/core/ai/context/registry.ts +77 -43
- package/src/core/cells/__tests__/cell.test.ts +39 -0
- package/src/core/cells/__tests__/readonly-code-display.test.ts +46 -0
- package/src/core/cells/cell.ts +5 -3
- package/src/core/cells/readonly-code-display.ts +35 -0
- package/src/core/codemirror/__tests__/setup.test.ts +33 -1
- package/src/core/codemirror/ai/resources.ts +15 -10
- package/src/core/codemirror/cells/__tests__/debugger-decorations.test.ts +185 -0
- package/src/core/codemirror/cells/__tests__/debugger-state.test.ts +224 -0
- package/src/core/codemirror/cells/__tests__/line-timing-decorations.test.ts +126 -0
- package/src/core/codemirror/cells/debugger-decorations.ts +188 -0
- package/src/core/codemirror/cells/debugger-state.ts +133 -0
- package/src/core/codemirror/cells/extensions.ts +32 -4
- package/src/core/codemirror/cells/line-timing-decorations.ts +165 -0
- package/src/core/codemirror/go-to-definition/__tests__/utils.test.ts +75 -3
- package/src/core/codemirror/go-to-definition/extension.ts +3 -3
- package/src/core/codemirror/go-to-definition/underline.ts +5 -14
- package/src/core/codemirror/go-to-definition/utils.ts +49 -1
- package/src/core/config/__tests__/config-schema.test.ts +17 -0
- package/src/core/config/config-schema.ts +1 -0
- package/src/core/config/config.ts +10 -0
- package/src/core/config/feature-flag.tsx +4 -0
- package/src/core/edit-app.tsx +8 -5
- package/src/core/errors/errors.ts +2 -1
- package/src/core/islands/bootstrap.ts +4 -3
- package/src/core/islands/bridge.ts +1 -0
- package/src/core/lifecycle/__tests__/render-policy.test.ts +247 -0
- package/src/core/lifecycle/render-policy.ts +125 -0
- package/src/core/mime.ts +11 -4
- package/src/core/network/__tests__/api.test.ts +17 -0
- package/src/core/network/__tests__/requests-toasting.test.tsx +46 -0
- package/src/core/network/api.ts +17 -6
- package/src/core/network/requests-lazy.ts +1 -0
- package/src/core/network/requests-network.ts +8 -0
- package/src/core/network/requests-static.ts +1 -0
- package/src/core/network/requests-toasting.tsx +10 -1
- package/src/core/network/types.ts +2 -0
- package/src/core/run-app.tsx +27 -23
- package/src/core/runtime/__tests__/adapter.test.ts +160 -0
- package/src/core/runtime/__tests__/runtime.test.ts +45 -0
- package/src/core/runtime/adapter.ts +182 -0
- package/src/core/runtime/runtime.ts +30 -16
- package/src/core/wasm/PyodideLoader.tsx +20 -62
- package/src/core/wasm/bridge.ts +13 -4
- package/src/core/wasm/state.ts +8 -19
- package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +4 -0
- package/src/core/websocket/__tests__/useWebSocket.test.ts +49 -0
- package/src/core/websocket/transports/__tests__/sse.test.ts +338 -0
- package/src/core/websocket/transports/sse.ts +308 -0
- package/src/core/websocket/useMarimoKernelConnection.tsx +58 -7
- package/src/core/websocket/useWebSocket.tsx +12 -2
- package/src/css/app/codemirror.css +14 -0
- package/src/hooks/__tests__/useDelayElapsed.test.tsx +55 -0
- package/src/hooks/useDelayElapsed.ts +27 -0
- package/src/mount.tsx +3 -3
- package/src/plugins/core/RenderHTML.tsx +35 -1
- package/src/plugins/core/__test__/RenderHTML.test.ts +44 -0
- package/src/plugins/impl/DataTablePlugin.tsx +1 -0
- package/src/plugins/impl/anywidget/AnyWidgetPlugin.tsx +33 -254
- package/src/plugins/impl/anywidget/__tests__/AnyWidgetPlugin.test.tsx +116 -174
- package/src/plugins/impl/anywidget/__tests__/host.test.ts +313 -0
- package/src/plugins/impl/anywidget/__tests__/model-proxy.test.ts +158 -0
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +8 -177
- package/src/plugins/impl/anywidget/__tests__/registry.test.ts +708 -0
- package/src/plugins/impl/anywidget/__tests__/resolve-widget.test.ts +132 -0
- package/src/plugins/impl/anywidget/__tests__/widget-binding.test.ts +305 -133
- package/src/plugins/impl/anywidget/__tests__/widget-ref.test.ts +28 -0
- package/src/plugins/impl/anywidget/host.ts +54 -0
- package/src/plugins/impl/anywidget/model-proxy.ts +70 -0
- package/src/plugins/impl/anywidget/model.ts +59 -239
- package/src/plugins/impl/anywidget/registry.ts +268 -0
- package/src/plugins/impl/anywidget/resolve-widget.ts +138 -0
- package/src/plugins/impl/anywidget/runtime.ts +422 -0
- package/src/plugins/impl/anywidget/types.ts +14 -0
- package/src/plugins/impl/anywidget/widget-binding.ts +280 -119
- package/src/plugins/impl/anywidget/widget-ref.ts +29 -0
- package/src/plugins/impl/data-editor/__tests__/glide-data-editor.test.tsx +187 -0
- package/src/plugins/impl/data-editor/glide-data-editor.tsx +6 -0
- package/src/plugins/impl/data-editor/glide-portal.tsx +73 -0
- package/src/plugins/impl/mpl-interactive/MplInteractivePlugin.tsx +3 -2
- package/src/plugins/impl/mpl-interactive/__tests__/MplInteractivePlugin.test.tsx +16 -13
- package/src/plugins/impl/mpl-interactive/mpl-websocket-shim.ts +1 -1
- package/src/utils/errors.ts +15 -0
- package/src/utils/time.ts +20 -0
- package/dist/assets/__vite-browser-external-DAm_YW43.js +0 -1
- package/dist/data-grid-overlay-editor-mfEJ5475.js +0 -128
- package/src/components/editor/chrome/panels/__tests__/snippet-display.test.ts +0 -22
- package/src/components/editor/chrome/panels/snippet-display.ts +0 -27
- package/src/core/ai/context/providers/__tests__/__snapshots__/error.test.ts.snap +0 -3
- package/src/core/wasm/__tests__/PyodideLoader.test.ts +0 -72
- package/src/core/wasm/__tests__/state.test.ts +0 -124
- package/src/plugins/impl/anywidget/schemas.ts +0 -32
|
@@ -6,14 +6,14 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-COam1EG7.js";
|
|
9
|
-
import { $t as
|
|
9
|
+
import { $t as getRequestClient, B as isDataURLString, Bn as FileText, Bt as getFeatureFlag, C as Accordion, Cn as atomWithStorage, E as AccordionTrigger, En as Close$1, Fn as NotebookPen, Gn as CircleX, H as renderHTML, Hn as ExternalLink, In as Minus, It as useChromeActions, Jn as esm_default, Kt as DATA_TYPE_ICON, L as base64ToUint8Array, Ln as LoaderCircle, Lt as adaptForLocalStorage, M as DotFilledIcon, Mn as Trash2, N as PinLeftIcon, Nt as goToCellLine, P as PinRightIcon, Rt as jotaiJsonStorage, T as AccordionItem, Tt as Checkbox, Vn as Eye, Wt as PluralWord, X as notebookAtom, Yn as import_lib, _ as getDatasourceContext, an as extractAllTracebackInfo, bn as jsonParseWithSpecialChar, bt as getCellDomProps, c as Popover, d as PopoverTrigger, dt as viewStateAtom, et as useCellActions, ft as outputIsLoading, hn as SCRATCH_CELL_ID, in as elementContainsMarimoCellFile, j as ChevronRightIcon, jn as Wrench, jt as toggleBreakpoint, k as CheckIcon, l as PopoverClose, ln as filenameAtom, lt as kioskModeAtom, m as useExpandedOutput, mn as HTMLCellId, n as Spinner, nt as useCellNames, on as getTracebackInfo, ot as AnsiUp, pn as CellOutputId, q as getCellEditorView, qn as Braces, qt as getDataTypeColor, r as MarkdownRenderer, t as toPng, tn as useRequestClient, tt as useCellIds, u as PopoverContent, ut as useInstallAllowed, vt as sanitizeHtml, w as AccordionContent, xn as jsonToMarkdown, xt as displayCellName, yt as DATA_CELL_ID, z as extractBase64FromDataURL, zn as Info, __tla as __tla_0 } from "./html-to-image-_wGfk8V-.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-DegSo0lV.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-
|
|
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-DtsN7xm-.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-CWNNlFEX.js";
|
|
17
17
|
import { r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DE6tzZf-.js";
|
|
18
18
|
import { n as clsx_default } from "./clsx-CIWA5tNO.js";
|
|
19
19
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
@@ -23,19 +23,19 @@ import { a as prettyError, c as Portal$1, l as Root$4, n as ErrorBanner, o as Co
|
|
|
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
25
|
import { r as KnownQueryParams } from "./constants-T20xxyNf.js";
|
|
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, r as aiFeaturesEnabledAtom, u as userConfigAtom, v as useAtom, w as buildStore, x as useStore, y as useAtomValue } from "./useTheme-
|
|
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";
|
|
27
27
|
import { $ as EditorView } from "./dist-U4F-tbMs.js";
|
|
28
28
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
29
29
|
import { c as uniqueBy, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
30
30
|
import { n as once, t as memoizeLastValue } from "./once-DPuqGUeo.js";
|
|
31
31
|
import { a as parser } from "./dist-C_Y3oV3C.js";
|
|
32
|
-
import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-
|
|
32
|
+
import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-Dzx4J_z1.js";
|
|
33
33
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DzSb5hsH.js";
|
|
34
34
|
import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
|
|
35
35
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-Boph2xIS.js";
|
|
36
36
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-DWIYvDh7.js";
|
|
37
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
38
|
-
let
|
|
37
|
+
import { t as useAsyncData } from "./useAsyncData-KfHB8wQR.js";
|
|
38
|
+
let PANEL_TYPES, hasFunctionProperty, prettifyRowCount, INDEX_COLUMN_NAME, CompactChipRow, Tabs, downloadSizeLimitAtom, ColumnChartSpecModel, ErrorState, getPageIndexForRow, EmptyState, usePrevious, ContextMenuItem, isNullishFilter, Command, ChartInfoState, DateRangePicker, TabsList, ContextMenuSeparator, Maps, CommandItem, useOverflowDetection, CommandEmpty, ChartLoadingState, ContextMenuTrigger, dateToLocalISODate, getUserColumnVisibilityCounts, TOO_MANY_ROWS, ContextMenu, toFieldTypes, LoadingState, loadTableAndRawData, ContextMenuContent, getMimeValues, ContextAwarePanelItem, EmotionCacheProvider, useInternalStateWithSync, dateToLocalISODateTime, Filenames, ColumnChartContext, ColumnPreviewContainer, useIntersectionObserver, Combobox, TabsTrigger, DatePicker, TabsContent, ComboboxItem, ChartErrorState, CommandSeparator, Kbd, CommandList, RenderTextWithLinks, smartMatch, HtmlOutput, ADD_PRINTING_CLASS, TableRow, DEFAULT_SLIDE_TYPE, Funnel, slotsController, downloadHTMLAsImage, inferFieldTypes, Slide, Ellipsis, PanelGroup, RadioGroupItem, ChevronsUpDown, Provider$1, isRecord, contextAwarePanelOpen, JsonOutput, ChevronsRight, Table, InstallPackageButton, ArrowDownWideNarrow, TableHeader, DataTable, ChevronLeft, TableHead, DEFAULT_DECK_TRANSITION, GripHorizontal, SlotNames, getColumnCountForDisplay, SELECT_COLUMN_ID, prettifyRowColumnCount, loadTableData, Switch, Download, PanelResizeHandle, OutputRenderer, ChevronsDownUp, TableCell, marimoVersionAtom, $fae977aafc393c5c$export$6b862160d295c8e, contextAwarePanelType, SLIDE_TYPE_OPTIONS_BY_VALUE, EyeOff, Toggle, OutputArea, ChevronsLeft, TableBody, CommandInput, LazyVegaEmbed, showCodeInRunModeAtom, TextWrap, isCellAwareAtom, SlideSidebar, Expand, Panel, useNotebookCodeAvailable, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelOwner, RadioGroup, Code, Fill, downloadBlob, NAMELESS_COLUMN_PREFIX, ColumnName, DelayMount, Progress, renderCellValue, downloadByURL, generateColumns, useSelectList, dateToLocalISOTime;
|
|
39
39
|
let __tla = Promise.all([
|
|
40
40
|
(() => {
|
|
41
41
|
try {
|
|
@@ -2061,21 +2061,21 @@ Defaulting to \`null\`.`;
|
|
|
2061
2061
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
2062
2062
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
2063
2063
|
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 =
|
|
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, eJ = c.top - E, tJ = c.bottom + O, nJ = c.left - A, rJ = c.right + M, iJ = e === _ ? 0 : Q + $, aJ = e === _ ? 0 : q + J, oJ = e.offsetWidth - e.clientWidth - iJ, sJ = e.offsetHeight - e.clientHeight - aJ, cJ = v + q + I, lJ = y - J - z - sJ, uJ = S + Q + U, dJ = w - $ - K;
|
|
2065
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? uJ += oJ : dJ -= oJ;
|
|
2066
|
+
let fJ = eJ < cJ || tJ > lJ, pJ = nJ < uJ || rJ > dJ;
|
|
2067
|
+
if (fJ && i === "start") o += eJ - cJ;
|
|
2068
|
+
else if (fJ && i === "center") o += (eJ + tJ) / 2 - (cJ + lJ) / 2;
|
|
2069
|
+
else if (fJ && i === "end") o += tJ - lJ;
|
|
2070
|
+
else if (fJ && i === "nearest") {
|
|
2071
|
+
let e2 = eJ - cJ, t2 = tJ - lJ;
|
|
2072
2072
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2073
2073
|
}
|
|
2074
|
-
if (
|
|
2075
|
-
else if (
|
|
2076
|
-
else if (
|
|
2077
|
-
else if (
|
|
2078
|
-
let e2 =
|
|
2074
|
+
if (pJ && a === "start") s += nJ - uJ;
|
|
2075
|
+
else if (pJ && a === "center") s += (nJ + rJ) / 2 - (uJ + dJ) / 2;
|
|
2076
|
+
else if (pJ && a === "end") s += rJ - dJ;
|
|
2077
|
+
else if (pJ && a === "nearest") {
|
|
2078
|
+
let e2 = nJ - uJ, t2 = rJ - dJ;
|
|
2079
2079
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
2080
2080
|
}
|
|
2081
2081
|
e.scrollTo({
|
|
@@ -5185,23 +5185,23 @@ Defaulting to \`null\`.`;
|
|
|
5185
5185
|
}
|
|
5186
5186
|
let $ = "bottom";
|
|
5187
5187
|
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" ?
|
|
5188
|
+
let eJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5189
|
+
q[I] += eJ;
|
|
5190
|
+
let tJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5191
|
+
y && y < tJ && (tJ = y), n.height = Math.min(n.height, tJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), eJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += eJ;
|
|
5192
|
+
let nJ = {}, rJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], iJ = rJ + 0.5 * t[z], aJ = S / 2 + w, oJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), sJ = n[z] - oJ - S / 2 - w;
|
|
5193
|
+
nJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(iJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), aJ, sJ), { placement: U, crossPlacement: K } = A, S ? rJ = nJ[I] : K === "right" ? rJ += t[z] : K === "center" && (rJ += t[z] / 2);
|
|
5194
|
+
let cJ = U === "left" || U === "top" ? n[M] : 0, lJ = {
|
|
5195
|
+
x: U === "top" || U === "bottom" ? rJ : cJ,
|
|
5196
|
+
y: U === "left" || U === "right" ? rJ : cJ
|
|
5197
5197
|
};
|
|
5198
5198
|
return {
|
|
5199
5199
|
position: q,
|
|
5200
|
-
maxHeight:
|
|
5201
|
-
arrowOffsetLeft:
|
|
5202
|
-
arrowOffsetTop:
|
|
5200
|
+
maxHeight: tJ,
|
|
5201
|
+
arrowOffsetLeft: nJ.left,
|
|
5202
|
+
arrowOffsetTop: nJ.top,
|
|
5203
5203
|
placement: U,
|
|
5204
|
-
triggerAnchorPoint:
|
|
5204
|
+
triggerAnchorPoint: lJ
|
|
5205
5205
|
};
|
|
5206
5206
|
}
|
|
5207
5207
|
function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
|
|
@@ -7056,7 +7056,7 @@ Defaulting to \`null\`.`;
|
|
|
7056
7056
|
n,
|
|
7057
7057
|
h
|
|
7058
7058
|
]);
|
|
7059
|
-
let
|
|
7059
|
+
let eJ = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
7060
7060
|
role: "textbox",
|
|
7061
7061
|
"aria-valuemax": null,
|
|
7062
7062
|
"aria-valuemin": null,
|
|
@@ -7066,8 +7066,8 @@ Defaulting to \`null\`.`;
|
|
|
7066
7066
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
7067
7067
|
t.segments
|
|
7068
7068
|
]) && !t.isInvalid && (f = void 0);
|
|
7069
|
-
let
|
|
7070
|
-
"aria-label": `${
|
|
7069
|
+
let tJ = $bdb11010cef70236$export$f680877a34711e37(), nJ = !t.isDisabled && !t.isReadOnly && e.isEditable, rJ = e.type === "literal" ? "" : s.of(e.type), iJ = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
7070
|
+
"aria-label": `${rJ}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
7071
7071
|
"aria-labelledby": d
|
|
7072
7072
|
});
|
|
7073
7073
|
if (e.type === "literal") return {
|
|
@@ -7075,32 +7075,32 @@ Defaulting to \`null\`.`;
|
|
|
7075
7075
|
"aria-hidden": true
|
|
7076
7076
|
}
|
|
7077
7077
|
};
|
|
7078
|
-
let
|
|
7078
|
+
let aJ = {
|
|
7079
7079
|
caretColor: "transparent"
|
|
7080
7080
|
};
|
|
7081
7081
|
if (o === "rtl") {
|
|
7082
|
-
|
|
7082
|
+
aJ.unicodeBidi = "embed";
|
|
7083
7083
|
let t2 = v[e.type];
|
|
7084
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
7084
|
+
(t2 === "numeric" || t2 === "2-digit") && (aJ.direction = "ltr");
|
|
7085
7085
|
}
|
|
7086
7086
|
return {
|
|
7087
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
7088
|
-
id:
|
|
7089
|
-
...
|
|
7087
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, iJ, {
|
|
7088
|
+
id: tJ,
|
|
7089
|
+
...eJ,
|
|
7090
7090
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
7091
7091
|
"aria-describedby": f,
|
|
7092
7092
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
7093
7093
|
"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" || !
|
|
7094
|
+
contentEditable: nJ,
|
|
7095
|
+
suppressContentEditableWarning: nJ,
|
|
7096
|
+
spellCheck: nJ ? "false" : void 0,
|
|
7097
|
+
autoCorrect: nJ ? "off" : void 0,
|
|
7098
|
+
enterKeyHint: nJ ? "next" : void 0,
|
|
7099
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !nJ ? void 0 : "numeric",
|
|
7100
7100
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
7101
7101
|
onKeyDown: A,
|
|
7102
7102
|
onFocus: Q,
|
|
7103
|
-
style:
|
|
7103
|
+
style: aJ,
|
|
7104
7104
|
onPointerDown(e2) {
|
|
7105
7105
|
e2.stopPropagation();
|
|
7106
7106
|
},
|
|
@@ -10227,6 +10227,12 @@ Defaulting to \`null\`.`;
|
|
|
10227
10227
|
function isMatch(e, t, n) {
|
|
10228
10228
|
return isValid(parse$1(e, t, /* @__PURE__ */ new Date(), n));
|
|
10229
10229
|
}
|
|
10230
|
+
isRecord = function(e) {
|
|
10231
|
+
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
10232
|
+
};
|
|
10233
|
+
hasFunctionProperty = function(e, t) {
|
|
10234
|
+
return typeof e[t] == "function";
|
|
10235
|
+
};
|
|
10230
10236
|
(0, import_react.createContext)(null), (0, import_react.createContext)(null), (0, import_react.createContext)(null), (0, import_react.createContext)(null), (0, import_react.createContext)(null);
|
|
10231
10237
|
var $4e85f108e88277b8$export$d688439359537581 = (0, import_react.createContext)({});
|
|
10232
10238
|
(0, import_react.createContext)(null), (0, import_react.createContext)(null);
|
|
@@ -10343,12 +10349,12 @@ Defaulting to \`null\`.`;
|
|
|
10343
10349
|
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);
|
|
10344
10350
|
}
|
|
10345
10351
|
}
|
|
10346
|
-
let
|
|
10352
|
+
let eJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10347
10353
|
w,
|
|
10348
10354
|
f,
|
|
10349
10355
|
s,
|
|
10350
10356
|
c
|
|
10351
|
-
]),
|
|
10357
|
+
]), tJ = e.isInvalid || e.validationState === "invalid" || eJ, nJ = tJ ? "invalid" : null, rJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10352
10358
|
h,
|
|
10353
10359
|
o
|
|
10354
10360
|
]);
|
|
@@ -10365,8 +10371,8 @@ Defaulting to \`null\`.`;
|
|
|
10365
10371
|
maxValue: c,
|
|
10366
10372
|
focusedDate: O,
|
|
10367
10373
|
timeZone: E,
|
|
10368
|
-
validationState:
|
|
10369
|
-
isValueInvalid:
|
|
10374
|
+
validationState: nJ,
|
|
10375
|
+
isValueInvalid: tJ,
|
|
10370
10376
|
setFocusedDate(e2) {
|
|
10371
10377
|
Q(e2);
|
|
10372
10378
|
},
|
|
@@ -10391,12 +10397,12 @@ Defaulting to \`null\`.`;
|
|
|
10391
10397
|
}));
|
|
10392
10398
|
},
|
|
10393
10399
|
focusNextPage() {
|
|
10394
|
-
let e2 = M.add(
|
|
10395
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10400
|
+
let e2 = M.add(rJ);
|
|
10401
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(rJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, rJ, i, s, c), rJ, i));
|
|
10396
10402
|
},
|
|
10397
10403
|
focusPreviousPage() {
|
|
10398
|
-
let e2 = M.subtract(
|
|
10399
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10404
|
+
let e2 = M.subtract(rJ);
|
|
10405
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(rJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, rJ, i, s, c), rJ, i));
|
|
10400
10406
|
},
|
|
10401
10407
|
focusSectionStart() {
|
|
10402
10408
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10533,13 +10539,13 @@ Defaulting to \`null\`.`;
|
|
|
10533
10539
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10534
10540
|
}), q(null);
|
|
10535
10541
|
}
|
|
10536
|
-
}, [$,
|
|
10537
|
-
|
|
10542
|
+
}, [$, eJ] = (0, import_react.useState)(false), { isDateUnavailable: tJ } = e, nJ = (0, import_react.useMemo)(() => !h || v ? false : tJ && (tJ(h.start) || tJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10543
|
+
tJ,
|
|
10538
10544
|
h,
|
|
10539
10545
|
v,
|
|
10540
10546
|
c,
|
|
10541
10547
|
d
|
|
10542
|
-
]),
|
|
10548
|
+
]), rJ = e.isInvalid || e.validationState === "invalid" || nJ, iJ = rJ ? "invalid" : null;
|
|
10543
10549
|
return {
|
|
10544
10550
|
...I,
|
|
10545
10551
|
value: h,
|
|
@@ -10547,8 +10553,8 @@ Defaulting to \`null\`.`;
|
|
|
10547
10553
|
anchorDate: v,
|
|
10548
10554
|
setAnchorDate: q,
|
|
10549
10555
|
highlightedRange: J,
|
|
10550
|
-
validationState:
|
|
10551
|
-
isValueInvalid:
|
|
10556
|
+
validationState: iJ,
|
|
10557
|
+
isValueInvalid: rJ,
|
|
10552
10558
|
selectFocusedDate() {
|
|
10553
10559
|
Q(I.focusedDate);
|
|
10554
10560
|
},
|
|
@@ -10564,7 +10570,7 @@ Defaulting to \`null\`.`;
|
|
|
10564
10570
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10565
10571
|
},
|
|
10566
10572
|
isDragging: $,
|
|
10567
|
-
setDragging:
|
|
10573
|
+
setDragging: eJ
|
|
10568
10574
|
};
|
|
10569
10575
|
}
|
|
10570
10576
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11751,7 +11757,7 @@ Defaulting to \`null\`.`;
|
|
|
11751
11757
|
_,
|
|
11752
11758
|
S,
|
|
11753
11759
|
v
|
|
11754
|
-
]),
|
|
11760
|
+
]), eJ = (0, import_react.useMemo)(() => {
|
|
11755
11761
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11756
11762
|
"era",
|
|
11757
11763
|
"year",
|
|
@@ -11769,15 +11775,15 @@ Defaulting to \`null\`.`;
|
|
|
11769
11775
|
e.maxGranularity,
|
|
11770
11776
|
_,
|
|
11771
11777
|
w
|
|
11772
|
-
]), [
|
|
11773
|
-
(M !==
|
|
11774
|
-
let
|
|
11775
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11778
|
+
]), [tJ, nJ] = (0, import_react.useState)(M), [rJ, iJ] = (0, import_react.useState)(S), [aJ, oJ] = (0, import_react.useState)(w);
|
|
11779
|
+
(M !== tJ || w !== aJ || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, rJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), nJ(M), iJ(S), oJ(w), z(I));
|
|
11780
|
+
let sJ = (t2) => {
|
|
11781
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(eJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11776
11782
|
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);
|
|
11777
11783
|
else {
|
|
11778
|
-
if (t2.isComplete(
|
|
11784
|
+
if (t2.isComplete(eJ)) {
|
|
11779
11785
|
let e2 = t2.toValue(M ?? $);
|
|
11780
|
-
if (t2.validate(e2,
|
|
11786
|
+
if (t2.validate(e2, eJ)) {
|
|
11781
11787
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11782
11788
|
if (!E || t3.compare(E) !== 0) {
|
|
11783
11789
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11787,83 +11793,83 @@ Defaulting to \`null\`.`;
|
|
|
11787
11793
|
}
|
|
11788
11794
|
z(t2);
|
|
11789
11795
|
}
|
|
11790
|
-
},
|
|
11796
|
+
}, cJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11791
11797
|
I,
|
|
11792
11798
|
y,
|
|
11793
11799
|
M,
|
|
11794
11800
|
$
|
|
11795
|
-
]),
|
|
11796
|
-
|
|
11801
|
+
]), lJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(cJ, I, J, Q, S, t, _), [
|
|
11802
|
+
cJ,
|
|
11797
11803
|
J,
|
|
11798
11804
|
Q,
|
|
11799
11805
|
I,
|
|
11800
11806
|
S,
|
|
11801
11807
|
t,
|
|
11802
11808
|
_
|
|
11803
|
-
]),
|
|
11804
|
-
|
|
11805
|
-
},
|
|
11809
|
+
]), uJ = (e2, t2) => {
|
|
11810
|
+
sJ(I.cycle(e2, t2, $, eJ));
|
|
11811
|
+
}, dJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11806
11812
|
E,
|
|
11807
11813
|
c,
|
|
11808
11814
|
d,
|
|
11809
11815
|
f,
|
|
11810
11816
|
K
|
|
11811
|
-
]),
|
|
11817
|
+
]), fJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11812
11818
|
...e,
|
|
11813
11819
|
value: E,
|
|
11814
|
-
builtinValidation:
|
|
11815
|
-
}),
|
|
11820
|
+
builtinValidation: dJ
|
|
11821
|
+
}), pJ = fJ.displayValidation.isInvalid, mJ = e.validationState || (pJ ? "invalid" : null);
|
|
11816
11822
|
return {
|
|
11817
|
-
...
|
|
11823
|
+
...fJ,
|
|
11818
11824
|
value: M,
|
|
11819
11825
|
defaultValue: e.defaultValue ?? A,
|
|
11820
|
-
dateValue:
|
|
11826
|
+
dateValue: cJ,
|
|
11821
11827
|
calendar: S,
|
|
11822
|
-
setValue:
|
|
11823
|
-
segments:
|
|
11828
|
+
setValue: sJ,
|
|
11829
|
+
segments: lJ,
|
|
11824
11830
|
dateFormatter: J,
|
|
11825
|
-
validationState:
|
|
11826
|
-
isInvalid:
|
|
11831
|
+
validationState: mJ,
|
|
11832
|
+
isInvalid: pJ,
|
|
11827
11833
|
granularity: _,
|
|
11828
11834
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11829
11835
|
isDisabled: a,
|
|
11830
11836
|
isReadOnly: o,
|
|
11831
11837
|
isRequired: s,
|
|
11832
11838
|
increment(e2) {
|
|
11833
|
-
|
|
11839
|
+
uJ(e2, 1);
|
|
11834
11840
|
},
|
|
11835
11841
|
decrement(e2) {
|
|
11836
|
-
|
|
11842
|
+
uJ(e2, -1);
|
|
11837
11843
|
},
|
|
11838
11844
|
incrementPage(e2) {
|
|
11839
|
-
|
|
11845
|
+
uJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11840
11846
|
},
|
|
11841
11847
|
decrementPage(e2) {
|
|
11842
|
-
|
|
11848
|
+
uJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11843
11849
|
},
|
|
11844
11850
|
incrementToMax(e2) {
|
|
11845
11851
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11846
|
-
|
|
11852
|
+
sJ(I.set(e2, t2, $));
|
|
11847
11853
|
},
|
|
11848
11854
|
decrementToMin(e2) {
|
|
11849
11855
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11850
|
-
|
|
11856
|
+
sJ(I.set(e2, t2, $));
|
|
11851
11857
|
},
|
|
11852
11858
|
setSegment(e2, t2) {
|
|
11853
|
-
|
|
11859
|
+
sJ(I.set(e2, t2, $));
|
|
11854
11860
|
},
|
|
11855
11861
|
confirmPlaceholder() {
|
|
11856
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11862
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(eJ)) {
|
|
11857
11863
|
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11858
11864
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11859
11865
|
}
|
|
11860
11866
|
},
|
|
11861
11867
|
clearSegment(e2) {
|
|
11862
11868
|
let t2 = I;
|
|
11863
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11869
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), sJ(t2);
|
|
11864
11870
|
},
|
|
11865
11871
|
formatValue(e2) {
|
|
11866
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11872
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(cJ) : "";
|
|
11867
11873
|
},
|
|
11868
11874
|
getDateFormatter(e2, t2) {
|
|
11869
11875
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11983,7 +11989,7 @@ Defaulting to \`null\`.`;
|
|
|
11983
11989
|
e.endName
|
|
11984
11990
|
]),
|
|
11985
11991
|
builtinValidation: J
|
|
11986
|
-
}), $ = Q.displayValidation.isInvalid,
|
|
11992
|
+
}), $ = Q.displayValidation.isInvalid, eJ = e.validationState || ($ ? "invalid" : null);
|
|
11987
11993
|
return {
|
|
11988
11994
|
...Q,
|
|
11989
11995
|
value: c,
|
|
@@ -12029,7 +12035,7 @@ Defaulting to \`null\`.`;
|
|
|
12029
12035
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
12030
12036
|
}), t.setOpen(n2);
|
|
12031
12037
|
},
|
|
12032
|
-
validationState:
|
|
12038
|
+
validationState: eJ,
|
|
12033
12039
|
isInvalid: $,
|
|
12034
12040
|
formatValue(t2, n2) {
|
|
12035
12041
|
if (!c || !c.start || !c.end) return null;
|
|
@@ -15901,33 +15907,33 @@ try {
|
|
|
15901
15907
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15902
15908
|
function y(e2) {
|
|
15903
15909
|
var _a2, _b, _c, _d;
|
|
15904
|
-
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,
|
|
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, eJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15905
15911
|
h2
|
|
15906
|
-
]),
|
|
15907
|
-
|
|
15908
|
-
]),
|
|
15909
|
-
supportedColorSchemes:
|
|
15910
|
-
defaultLightColorScheme:
|
|
15911
|
-
defaultDarkColorScheme:
|
|
15912
|
+
]), tJ = eJ[t], nJ = tJ || eJ, { colorSchemes: rJ = _, components: iJ = v, cssVarPrefix: aJ } = nJ, oJ = Object.keys(rJ).filter((e3) => !!rJ[e3]).join(","), sJ = import_react.useMemo(() => oJ.split(","), [
|
|
15913
|
+
oJ
|
|
15914
|
+
]), cJ = typeof s == "string" ? s : s.light, lJ = typeof s == "string" ? s : s.dark, { mode: uJ, setMode: dJ, systemMode: fJ, lightColorScheme: pJ, darkColorScheme: mJ, colorScheme: hJ, setColorScheme: gJ } = useCurrentColorScheme({
|
|
15915
|
+
supportedColorSchemes: sJ,
|
|
15916
|
+
defaultLightColorScheme: cJ,
|
|
15917
|
+
defaultDarkColorScheme: lJ,
|
|
15912
15918
|
modeStorageKey: y2,
|
|
15913
15919
|
colorSchemeStorageKey: S2,
|
|
15914
|
-
defaultMode:
|
|
15920
|
+
defaultMode: rJ[cJ] && rJ[lJ] ? U : ((_b = (_a2 = rJ[nJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = nJ.palette) == null ? void 0 : _c.mode),
|
|
15915
15921
|
storageManager: E,
|
|
15916
15922
|
storageWindow: O,
|
|
15917
15923
|
noSsr: K
|
|
15918
|
-
}),
|
|
15919
|
-
$ && (
|
|
15920
|
-
let
|
|
15924
|
+
}), _J = uJ, vJ = hJ;
|
|
15925
|
+
$ && (_J = Q.mode, vJ = Q.colorScheme);
|
|
15926
|
+
let yJ = import_react.useMemo(() => {
|
|
15921
15927
|
var _a3;
|
|
15922
|
-
let e3 =
|
|
15923
|
-
...
|
|
15924
|
-
components:
|
|
15925
|
-
colorSchemes:
|
|
15926
|
-
cssVarPrefix:
|
|
15928
|
+
let e3 = vJ || nJ.defaultColorScheme, t2 = ((_a3 = nJ.generateThemeVars) == null ? void 0 : _a3.call(nJ)) || nJ.vars, n2 = {
|
|
15929
|
+
...nJ,
|
|
15930
|
+
components: iJ,
|
|
15931
|
+
colorSchemes: rJ,
|
|
15932
|
+
cssVarPrefix: aJ,
|
|
15927
15933
|
vars: t2
|
|
15928
15934
|
};
|
|
15929
15935
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15930
|
-
let t3 =
|
|
15936
|
+
let t3 = rJ[e3];
|
|
15931
15937
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15932
15938
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15933
15939
|
...n2[e4],
|
|
@@ -15937,31 +15943,31 @@ try {
|
|
|
15937
15943
|
}
|
|
15938
15944
|
return c ? c(n2) : n2;
|
|
15939
15945
|
}, [
|
|
15940
|
-
eJ,
|
|
15941
|
-
gJ,
|
|
15942
15946
|
nJ,
|
|
15943
|
-
|
|
15944
|
-
|
|
15945
|
-
|
|
15947
|
+
vJ,
|
|
15948
|
+
iJ,
|
|
15949
|
+
rJ,
|
|
15950
|
+
aJ
|
|
15951
|
+
]), bJ = nJ.colorSchemeSelector;
|
|
15946
15952
|
useEnhancedEffect_default(() => {
|
|
15947
|
-
if (
|
|
15948
|
-
let e3 =
|
|
15949
|
-
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(...
|
|
15953
|
+
if (vJ && M && bJ && bJ !== "media") {
|
|
15954
|
+
let e3 = bJ, t2 = bJ;
|
|
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(...sJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", vJ));
|
|
15950
15956
|
else {
|
|
15951
|
-
let e4 = t2.replace("%s",
|
|
15957
|
+
let e4 = t2.replace("%s", vJ).match(/\[([^\]]+)\]/);
|
|
15952
15958
|
if (e4) {
|
|
15953
15959
|
let [t3, n2] = e4[1].split("=");
|
|
15954
|
-
n2 ||
|
|
15955
|
-
M.removeAttribute(t3.replace(
|
|
15960
|
+
n2 || sJ.forEach((e5) => {
|
|
15961
|
+
M.removeAttribute(t3.replace(vJ, e5));
|
|
15956
15962
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15957
|
-
} else M.setAttribute(t2,
|
|
15963
|
+
} else M.setAttribute(t2, vJ);
|
|
15958
15964
|
}
|
|
15959
15965
|
}
|
|
15960
15966
|
}, [
|
|
15961
|
-
gJ,
|
|
15962
15967
|
vJ,
|
|
15968
|
+
bJ,
|
|
15963
15969
|
M,
|
|
15964
|
-
|
|
15970
|
+
sJ
|
|
15965
15971
|
]), import_react.useEffect(() => {
|
|
15966
15972
|
let e3;
|
|
15967
15973
|
if (w2 && q.current && A) {
|
|
@@ -15974,48 +15980,48 @@ try {
|
|
|
15974
15980
|
clearTimeout(e3);
|
|
15975
15981
|
};
|
|
15976
15982
|
}, [
|
|
15977
|
-
|
|
15983
|
+
vJ,
|
|
15978
15984
|
w2,
|
|
15979
15985
|
A
|
|
15980
15986
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
15981
15987
|
q.current = false;
|
|
15982
15988
|
}), []);
|
|
15983
|
-
let
|
|
15984
|
-
allColorSchemes:
|
|
15985
|
-
colorScheme:
|
|
15986
|
-
darkColorScheme:
|
|
15987
|
-
lightColorScheme:
|
|
15988
|
-
mode:
|
|
15989
|
-
setColorScheme:
|
|
15990
|
-
setMode:
|
|
15991
|
-
systemMode:
|
|
15989
|
+
let xJ = import_react.useMemo(() => ({
|
|
15990
|
+
allColorSchemes: sJ,
|
|
15991
|
+
colorScheme: vJ,
|
|
15992
|
+
darkColorScheme: mJ,
|
|
15993
|
+
lightColorScheme: pJ,
|
|
15994
|
+
mode: _J,
|
|
15995
|
+
setColorScheme: gJ,
|
|
15996
|
+
setMode: dJ,
|
|
15997
|
+
systemMode: fJ
|
|
15992
15998
|
}), [
|
|
15993
|
-
|
|
15999
|
+
sJ,
|
|
16000
|
+
vJ,
|
|
16001
|
+
mJ,
|
|
16002
|
+
pJ,
|
|
16003
|
+
_J,
|
|
15994
16004
|
gJ,
|
|
15995
|
-
fJ,
|
|
15996
16005
|
dJ,
|
|
15997
|
-
|
|
15998
|
-
|
|
15999
|
-
|
|
16000
|
-
|
|
16001
|
-
|
|
16002
|
-
]), bJ = true;
|
|
16003
|
-
(z || eJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === rJ) && (bJ = false);
|
|
16004
|
-
let xJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16006
|
+
fJ,
|
|
16007
|
+
yJ.colorSchemeSelector
|
|
16008
|
+
]), SJ = true;
|
|
16009
|
+
(z || nJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === aJ) && (SJ = false);
|
|
16010
|
+
let CJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16005
16011
|
children: [
|
|
16006
16012
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
16007
|
-
themeId:
|
|
16008
|
-
theme:
|
|
16013
|
+
themeId: tJ ? t : void 0,
|
|
16014
|
+
theme: yJ,
|
|
16009
16015
|
children: d2
|
|
16010
16016
|
}),
|
|
16011
|
-
|
|
16012
|
-
styles: ((_d =
|
|
16017
|
+
SJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
16018
|
+
styles: ((_d = yJ.generateStyleSheets) == null ? void 0 : _d.call(yJ)) || []
|
|
16013
16019
|
})
|
|
16014
16020
|
]
|
|
16015
16021
|
});
|
|
16016
|
-
return $ ?
|
|
16017
|
-
value:
|
|
16018
|
-
children:
|
|
16022
|
+
return $ ? CJ : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
16023
|
+
value: xJ,
|
|
16024
|
+
children: CJ
|
|
16019
16025
|
});
|
|
16020
16026
|
}
|
|
16021
16027
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17515,10 +17521,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17515
17521
|
let n = useDefaultProps({
|
|
17516
17522
|
props: e,
|
|
17517
17523
|
name: "MuiInputBase"
|
|
17518
|
-
}), { "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:
|
|
17519
|
-
}, []),
|
|
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: eJ, onKeyDown: tJ, onKeyUp: nJ, placeholder: rJ, readOnly: iJ, renderSuffix: aJ, rows: oJ, size: sJ, slotProps: cJ = {}, slots: lJ = {}, startAdornment: uJ, type: dJ = "text", value: fJ, ...pJ } = n, mJ = A.value == null ? fJ : A.value, { current: hJ } = import_react.useRef(mJ != null), gJ = import_react.useRef(), _J = import_react.useCallback((e2) => {
|
|
17525
|
+
}, []), vJ = useForkRef_default(gJ, M, A.ref, _J), [yJ, bJ] = import_react.useState(false), xJ = useFormControl(), SJ = formControlState({
|
|
17520
17526
|
props: n,
|
|
17521
|
-
muiFormControl:
|
|
17527
|
+
muiFormControl: xJ,
|
|
17522
17528
|
states: [
|
|
17523
17529
|
"color",
|
|
17524
17530
|
"disabled",
|
|
@@ -17529,145 +17535,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17529
17535
|
"filled"
|
|
17530
17536
|
]
|
|
17531
17537
|
});
|
|
17532
|
-
|
|
17533
|
-
!
|
|
17538
|
+
SJ.focused = xJ ? xJ.focused : yJ, import_react.useEffect(() => {
|
|
17539
|
+
!xJ && _ && yJ && (bJ(false), J && J());
|
|
17534
17540
|
}, [
|
|
17535
|
-
|
|
17541
|
+
xJ,
|
|
17536
17542
|
_,
|
|
17537
|
-
|
|
17543
|
+
yJ,
|
|
17538
17544
|
J
|
|
17539
17545
|
]);
|
|
17540
|
-
let
|
|
17541
|
-
isFilled(e2) ?
|
|
17546
|
+
let CJ = xJ && xJ.onFilled, wJ = xJ && xJ.onEmpty, TJ = import_react.useCallback((e2) => {
|
|
17547
|
+
isFilled(e2) ? CJ && CJ() : wJ && wJ();
|
|
17542
17548
|
}, [
|
|
17543
|
-
|
|
17544
|
-
|
|
17549
|
+
CJ,
|
|
17550
|
+
wJ
|
|
17545
17551
|
]);
|
|
17546
17552
|
useEnhancedEffect_default$1(() => {
|
|
17547
|
-
|
|
17548
|
-
value:
|
|
17553
|
+
hJ && TJ({
|
|
17554
|
+
value: mJ
|
|
17549
17555
|
});
|
|
17550
17556
|
}, [
|
|
17551
|
-
|
|
17552
|
-
|
|
17553
|
-
|
|
17557
|
+
mJ,
|
|
17558
|
+
TJ,
|
|
17559
|
+
hJ
|
|
17554
17560
|
]);
|
|
17555
|
-
let
|
|
17556
|
-
|
|
17557
|
-
},
|
|
17558
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17559
|
-
},
|
|
17560
|
-
if (!
|
|
17561
|
-
let t3 = e2.target ||
|
|
17561
|
+
let EJ = (e2) => {
|
|
17562
|
+
eJ && eJ(e2), A.onFocus && A.onFocus(e2), xJ && xJ.onFocus ? xJ.onFocus(e2) : bJ(true);
|
|
17563
|
+
}, DJ = (e2) => {
|
|
17564
|
+
J && J(e2), A.onBlur && A.onBlur(e2), xJ && xJ.onBlur ? xJ.onBlur(e2) : bJ(false);
|
|
17565
|
+
}, OJ = (e2, ...t2) => {
|
|
17566
|
+
if (!hJ) {
|
|
17567
|
+
let t3 = e2.target || gJ.current;
|
|
17562
17568
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17563
|
-
|
|
17569
|
+
TJ({
|
|
17564
17570
|
value: t3.value
|
|
17565
17571
|
});
|
|
17566
17572
|
}
|
|
17567
17573
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17568
17574
|
};
|
|
17569
17575
|
import_react.useEffect(() => {
|
|
17570
|
-
|
|
17576
|
+
TJ(gJ.current);
|
|
17571
17577
|
}, []);
|
|
17572
|
-
let
|
|
17573
|
-
|
|
17574
|
-
},
|
|
17575
|
-
K &&
|
|
17578
|
+
let kJ = (e2) => {
|
|
17579
|
+
gJ.current && e2.currentTarget === e2.target && gJ.current.focus(), $ && $(e2);
|
|
17580
|
+
}, AJ = O, jJ = A;
|
|
17581
|
+
K && AJ === "input" && (jJ = oJ ? {
|
|
17576
17582
|
type: void 0,
|
|
17577
|
-
minRows:
|
|
17578
|
-
maxRows:
|
|
17579
|
-
...
|
|
17583
|
+
minRows: oJ,
|
|
17584
|
+
maxRows: oJ,
|
|
17585
|
+
...jJ
|
|
17580
17586
|
} : {
|
|
17581
17587
|
type: void 0,
|
|
17582
17588
|
maxRows: z,
|
|
17583
17589
|
minRows: U,
|
|
17584
|
-
...
|
|
17585
|
-
},
|
|
17586
|
-
let
|
|
17587
|
-
|
|
17590
|
+
...jJ
|
|
17591
|
+
}, AJ = TextareaAutosize_default);
|
|
17592
|
+
let MJ = (e2) => {
|
|
17593
|
+
TJ(e2.animationName === "mui-auto-fill-cancel" ? gJ.current : {
|
|
17588
17594
|
value: "x"
|
|
17589
17595
|
});
|
|
17590
17596
|
};
|
|
17591
17597
|
import_react.useEffect(() => {
|
|
17592
|
-
|
|
17598
|
+
xJ && xJ.setAdornedStart(!!uJ);
|
|
17593
17599
|
}, [
|
|
17594
|
-
|
|
17595
|
-
|
|
17600
|
+
xJ,
|
|
17601
|
+
uJ
|
|
17596
17602
|
]);
|
|
17597
|
-
let
|
|
17603
|
+
let NJ = {
|
|
17598
17604
|
...n,
|
|
17599
|
-
color:
|
|
17600
|
-
disabled:
|
|
17605
|
+
color: SJ.color || "primary",
|
|
17606
|
+
disabled: SJ.disabled,
|
|
17601
17607
|
endAdornment: y,
|
|
17602
|
-
error:
|
|
17603
|
-
focused:
|
|
17604
|
-
formControl:
|
|
17608
|
+
error: SJ.error,
|
|
17609
|
+
focused: SJ.focused,
|
|
17610
|
+
formControl: xJ,
|
|
17605
17611
|
fullWidth: w,
|
|
17606
|
-
hiddenLabel:
|
|
17612
|
+
hiddenLabel: SJ.hiddenLabel,
|
|
17607
17613
|
multiline: K,
|
|
17608
|
-
size:
|
|
17609
|
-
startAdornment:
|
|
17610
|
-
type:
|
|
17611
|
-
},
|
|
17612
|
-
return
|
|
17613
|
-
...
|
|
17614
|
-
...
|
|
17614
|
+
size: SJ.size,
|
|
17615
|
+
startAdornment: uJ,
|
|
17616
|
+
type: dJ
|
|
17617
|
+
}, PJ = useUtilityClasses(NJ), FJ = lJ.root || d.Root || InputBaseRoot, IJ = cJ.root || f.root || {}, LJ = lJ.input || d.Input || InputBaseInput;
|
|
17618
|
+
return jJ = {
|
|
17619
|
+
...jJ,
|
|
17620
|
+
...cJ.input ?? f.input
|
|
17615
17621
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17616
17622
|
children: [
|
|
17617
17623
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17618
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17619
|
-
...
|
|
17624
|
+
(0, import_jsx_runtime.jsxs)(FJ, {
|
|
17625
|
+
...IJ,
|
|
17620
17626
|
ref: t,
|
|
17621
|
-
onClick:
|
|
17622
|
-
...
|
|
17623
|
-
...!isHostComponent_default(
|
|
17627
|
+
onClick: kJ,
|
|
17628
|
+
...pJ,
|
|
17629
|
+
...!isHostComponent_default(FJ) && {
|
|
17624
17630
|
ownerState: {
|
|
17625
|
-
...
|
|
17626
|
-
...
|
|
17631
|
+
...NJ,
|
|
17632
|
+
...IJ.ownerState
|
|
17627
17633
|
}
|
|
17628
17634
|
},
|
|
17629
|
-
className: clsx_default(
|
|
17635
|
+
className: clsx_default(PJ.root, IJ.className, s, iJ && "MuiInputBase-readOnly"),
|
|
17630
17636
|
children: [
|
|
17631
|
-
|
|
17637
|
+
uJ,
|
|
17632
17638
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17633
17639
|
value: null,
|
|
17634
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17635
|
-
"aria-invalid":
|
|
17640
|
+
children: (0, import_jsx_runtime.jsx)(LJ, {
|
|
17641
|
+
"aria-invalid": SJ.error,
|
|
17636
17642
|
"aria-describedby": i,
|
|
17637
17643
|
autoComplete: a,
|
|
17638
17644
|
autoFocus: o,
|
|
17639
17645
|
defaultValue: h,
|
|
17640
|
-
disabled:
|
|
17646
|
+
disabled: SJ.disabled,
|
|
17641
17647
|
id: E,
|
|
17642
|
-
onAnimationStart:
|
|
17648
|
+
onAnimationStart: MJ,
|
|
17643
17649
|
name: q,
|
|
17644
|
-
placeholder:
|
|
17645
|
-
readOnly:
|
|
17646
|
-
required:
|
|
17647
|
-
rows:
|
|
17648
|
-
value:
|
|
17649
|
-
onKeyDown:
|
|
17650
|
-
onKeyUp:
|
|
17651
|
-
type:
|
|
17652
|
-
...
|
|
17653
|
-
...!isHostComponent_default(
|
|
17654
|
-
as:
|
|
17650
|
+
placeholder: rJ,
|
|
17651
|
+
readOnly: iJ,
|
|
17652
|
+
required: SJ.required,
|
|
17653
|
+
rows: oJ,
|
|
17654
|
+
value: mJ,
|
|
17655
|
+
onKeyDown: tJ,
|
|
17656
|
+
onKeyUp: nJ,
|
|
17657
|
+
type: dJ,
|
|
17658
|
+
...jJ,
|
|
17659
|
+
...!isHostComponent_default(LJ) && {
|
|
17660
|
+
as: AJ,
|
|
17655
17661
|
ownerState: {
|
|
17656
|
-
...
|
|
17657
|
-
...
|
|
17662
|
+
...NJ,
|
|
17663
|
+
...jJ.ownerState
|
|
17658
17664
|
}
|
|
17659
17665
|
},
|
|
17660
|
-
ref:
|
|
17661
|
-
className: clsx_default(
|
|
17662
|
-
onBlur:
|
|
17663
|
-
onChange:
|
|
17664
|
-
onFocus:
|
|
17666
|
+
ref: vJ,
|
|
17667
|
+
className: clsx_default(PJ.input, jJ.className, iJ && "MuiInputBase-readOnly"),
|
|
17668
|
+
onBlur: DJ,
|
|
17669
|
+
onChange: OJ,
|
|
17670
|
+
onFocus: EJ
|
|
17665
17671
|
})
|
|
17666
17672
|
}),
|
|
17667
17673
|
y,
|
|
17668
|
-
|
|
17669
|
-
...
|
|
17670
|
-
startAdornment:
|
|
17674
|
+
aJ ? aJ({
|
|
17675
|
+
...SJ,
|
|
17676
|
+
startAdornment: uJ
|
|
17671
17677
|
}) : null
|
|
17672
17678
|
]
|
|
17673
17679
|
})
|
|
@@ -18743,30 +18749,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18743
18749
|
M,
|
|
18744
18750
|
i,
|
|
18745
18751
|
a
|
|
18746
|
-
]), 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),
|
|
18747
|
-
|
|
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), eJ = useTextColor(), tJ = useJsonViewerStore((e2) => e2.colorspace.base0C), nJ = useJsonViewerStore((e2) => e2.colorspace.base0A), rJ = useJsonViewerStore((e2) => e2.displayComma), iJ = useJsonViewerStore((e2) => e2.quotesOnKeys), aJ = useJsonViewerStore((e2) => e2.rootName), oJ = U === t, sJ = Number.isInteger(Number(A)), cJ = useJsonViewerStore((e2) => e2.enableAdd), lJ = useJsonViewerStore((e2) => e2.onAdd), uJ = (0, import_react.useMemo)(() => !lJ || a !== void 0 || cJ === false || v === false ? false : typeof cJ == "function" ? !!cJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18753
|
+
lJ,
|
|
18748
18754
|
a,
|
|
18749
18755
|
i,
|
|
18750
|
-
|
|
18756
|
+
cJ,
|
|
18751
18757
|
v,
|
|
18752
18758
|
t
|
|
18753
|
-
]),
|
|
18754
|
-
|
|
18759
|
+
]), dJ = useJsonViewerStore((e2) => e2.enableDelete), fJ = useJsonViewerStore((e2) => e2.onDelete), pJ = (0, import_react.useMemo)(() => !fJ || a !== void 0 || oJ || dJ === false || v === false ? false : typeof dJ == "function" ? !!dJ(i, t) : dJ, [
|
|
18760
|
+
fJ,
|
|
18755
18761
|
a,
|
|
18756
|
-
|
|
18762
|
+
oJ,
|
|
18757
18763
|
i,
|
|
18758
|
-
|
|
18764
|
+
dJ,
|
|
18759
18765
|
v,
|
|
18760
18766
|
t
|
|
18761
|
-
]),
|
|
18762
|
-
|
|
18767
|
+
]), mJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: hJ, copied: gJ } = useClipboard(), _J = useJsonViewerStore((e2) => e2.highlightUpdates), vJ = (0, import_react.useMemo)(() => !_J || 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, [
|
|
18768
|
+
_J,
|
|
18763
18769
|
n,
|
|
18764
18770
|
t
|
|
18765
|
-
]),
|
|
18771
|
+
]), yJ = (0, import_react.useRef)();
|
|
18766
18772
|
(0, import_react.useEffect)(() => {
|
|
18767
|
-
|
|
18773
|
+
yJ.current && vJ && "animate" in yJ.current && yJ.current.animate([
|
|
18768
18774
|
{
|
|
18769
|
-
backgroundColor:
|
|
18775
|
+
backgroundColor: nJ
|
|
18770
18776
|
},
|
|
18771
18777
|
{
|
|
18772
18778
|
backgroundColor: ""
|
|
@@ -18776,22 +18782,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18776
18782
|
easing: "ease-in"
|
|
18777
18783
|
});
|
|
18778
18784
|
}, [
|
|
18779
|
-
|
|
18780
|
-
|
|
18785
|
+
nJ,
|
|
18786
|
+
vJ,
|
|
18781
18787
|
n,
|
|
18782
18788
|
t
|
|
18783
18789
|
]);
|
|
18784
|
-
let
|
|
18790
|
+
let bJ = (0, import_react.useCallback)((e2) => {
|
|
18785
18791
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18786
18792
|
}, [
|
|
18787
18793
|
h,
|
|
18788
18794
|
t
|
|
18789
|
-
]),
|
|
18795
|
+
]), xJ = (0, import_react.useCallback)(() => {
|
|
18790
18796
|
Q(false), E("");
|
|
18791
18797
|
}, [
|
|
18792
18798
|
Q,
|
|
18793
18799
|
E
|
|
18794
|
-
]),
|
|
18800
|
+
]), SJ = (0, import_react.useCallback)((e2) => {
|
|
18795
18801
|
if (Q(false), _) try {
|
|
18796
18802
|
$(i, t, _(e2));
|
|
18797
18803
|
} catch {
|
|
@@ -18802,14 +18808,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18802
18808
|
$,
|
|
18803
18809
|
i,
|
|
18804
18810
|
t
|
|
18805
|
-
]),
|
|
18811
|
+
]), CJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18806
18812
|
children: [
|
|
18807
18813
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18808
18814
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18809
18815
|
sx: {
|
|
18810
18816
|
fontSize: ".8rem"
|
|
18811
18817
|
},
|
|
18812
|
-
onClick:
|
|
18818
|
+
onClick: xJ
|
|
18813
18819
|
})
|
|
18814
18820
|
}),
|
|
18815
18821
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18817,22 +18823,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18817
18823
|
sx: {
|
|
18818
18824
|
fontSize: ".8rem"
|
|
18819
18825
|
},
|
|
18820
|
-
onClick: () =>
|
|
18826
|
+
onClick: () => SJ(w)
|
|
18821
18827
|
})
|
|
18822
18828
|
})
|
|
18823
18829
|
]
|
|
18824
18830
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18825
18831
|
children: [
|
|
18826
|
-
|
|
18832
|
+
mJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18827
18833
|
onClick: (e2) => {
|
|
18828
18834
|
e2.preventDefault();
|
|
18829
18835
|
try {
|
|
18830
|
-
|
|
18836
|
+
hJ(i, t, copyString);
|
|
18831
18837
|
} catch (e3) {
|
|
18832
18838
|
console.error(e3);
|
|
18833
18839
|
}
|
|
18834
18840
|
},
|
|
18835
|
-
children:
|
|
18841
|
+
children: gJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18836
18842
|
sx: {
|
|
18837
18843
|
fontSize: ".8rem"
|
|
18838
18844
|
}
|
|
@@ -18843,16 +18849,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18843
18849
|
})
|
|
18844
18850
|
}),
|
|
18845
18851
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18846
|
-
onClick:
|
|
18852
|
+
onClick: bJ,
|
|
18847
18853
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18848
18854
|
sx: {
|
|
18849
18855
|
fontSize: ".8rem"
|
|
18850
18856
|
}
|
|
18851
18857
|
})
|
|
18852
18858
|
}),
|
|
18853
|
-
|
|
18859
|
+
uJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18854
18860
|
onClick: (e2) => {
|
|
18855
|
-
e2.preventDefault(),
|
|
18861
|
+
e2.preventDefault(), lJ == null ? void 0 : lJ(i);
|
|
18856
18862
|
},
|
|
18857
18863
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18858
18864
|
sx: {
|
|
@@ -18860,9 +18866,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18860
18866
|
}
|
|
18861
18867
|
})
|
|
18862
18868
|
}),
|
|
18863
|
-
|
|
18869
|
+
pJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18864
18870
|
onClick: (e2) => {
|
|
18865
|
-
e2.preventDefault(),
|
|
18871
|
+
e2.preventDefault(), fJ == null ? void 0 : fJ(i, t);
|
|
18866
18872
|
},
|
|
18867
18873
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18868
18874
|
sx: {
|
|
@@ -18875,24 +18881,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18875
18881
|
f,
|
|
18876
18882
|
h,
|
|
18877
18883
|
_,
|
|
18878
|
-
|
|
18879
|
-
|
|
18884
|
+
gJ,
|
|
18885
|
+
hJ,
|
|
18880
18886
|
S,
|
|
18881
18887
|
J,
|
|
18882
|
-
|
|
18883
|
-
|
|
18884
|
-
|
|
18888
|
+
mJ,
|
|
18889
|
+
uJ,
|
|
18890
|
+
pJ,
|
|
18885
18891
|
w,
|
|
18886
18892
|
i,
|
|
18887
18893
|
t,
|
|
18888
|
-
|
|
18889
|
-
|
|
18890
|
-
|
|
18891
|
-
|
|
18892
|
-
|
|
18893
|
-
]),
|
|
18894
|
+
lJ,
|
|
18895
|
+
fJ,
|
|
18896
|
+
bJ,
|
|
18897
|
+
xJ,
|
|
18898
|
+
SJ
|
|
18899
|
+
]), wJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18894
18900
|
t
|
|
18895
|
-
]),
|
|
18901
|
+
]), TJ = !wJ && !!(c && d), EJ = useJsonViewerStore((e2) => e2.keyRenderer), DJ = (0, import_react.useMemo)(() => ({
|
|
18896
18902
|
path: i,
|
|
18897
18903
|
inspect: K,
|
|
18898
18904
|
setInspect: q,
|
|
@@ -18924,18 +18930,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18924
18930
|
className: "data-key",
|
|
18925
18931
|
sx: {
|
|
18926
18932
|
lineHeight: 1.5,
|
|
18927
|
-
color:
|
|
18933
|
+
color: eJ,
|
|
18928
18934
|
letterSpacing: 0.5,
|
|
18929
18935
|
opacity: 0.8
|
|
18930
18936
|
},
|
|
18931
18937
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18932
|
-
e2.isDefaultPrevented() ||
|
|
18938
|
+
e2.isDefaultPrevented() || wJ || q((e3) => !e3);
|
|
18933
18939
|
}, [
|
|
18934
|
-
|
|
18940
|
+
wJ,
|
|
18935
18941
|
q
|
|
18936
18942
|
]),
|
|
18937
18943
|
children: [
|
|
18938
|
-
|
|
18944
|
+
TJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18939
18945
|
className: "data-key-toggle-expanded",
|
|
18940
18946
|
sx: {
|
|
18941
18947
|
fontSize: ".8rem",
|
|
@@ -18953,27 +18959,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18953
18959
|
}
|
|
18954
18960
|
}) : null,
|
|
18955
18961
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18956
|
-
ref:
|
|
18962
|
+
ref: yJ,
|
|
18957
18963
|
className: "data-key-key",
|
|
18958
18964
|
component: "span",
|
|
18959
|
-
children:
|
|
18965
|
+
children: oJ && O === 0 ? aJ === false ? null : iJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18960
18966
|
children: [
|
|
18961
18967
|
'"',
|
|
18962
|
-
|
|
18968
|
+
aJ,
|
|
18963
18969
|
'"'
|
|
18964
18970
|
]
|
|
18965
18971
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18966
|
-
children:
|
|
18967
|
-
}) :
|
|
18968
|
-
...
|
|
18969
|
-
}) : a === void 0 && (
|
|
18972
|
+
children: aJ
|
|
18973
|
+
}) : EJ.when(DJ) ? (0, import_jsx_runtime.jsx)(EJ, {
|
|
18974
|
+
...DJ
|
|
18975
|
+
}) : a === void 0 && (sJ ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18970
18976
|
component: "span",
|
|
18971
18977
|
style: {
|
|
18972
|
-
color:
|
|
18973
|
-
userSelect:
|
|
18978
|
+
color: tJ,
|
|
18979
|
+
userSelect: sJ ? "none" : "auto"
|
|
18974
18980
|
},
|
|
18975
18981
|
children: A
|
|
18976
|
-
}) :
|
|
18982
|
+
}) : iJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18977
18983
|
children: [
|
|
18978
18984
|
'"',
|
|
18979
18985
|
A,
|
|
@@ -18983,7 +18989,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18983
18989
|
children: A
|
|
18984
18990
|
}))
|
|
18985
18991
|
}),
|
|
18986
|
-
|
|
18992
|
+
oJ ? aJ !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18987
18993
|
className: "data-key-colon",
|
|
18988
18994
|
sx: {
|
|
18989
18995
|
mr: 0.5
|
|
@@ -18996,38 +19002,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18996
19002
|
".data-key-key:empty + &": {
|
|
18997
19003
|
display: "none"
|
|
18998
19004
|
},
|
|
18999
|
-
userSelect:
|
|
19005
|
+
userSelect: sJ ? "none" : "auto"
|
|
19000
19006
|
},
|
|
19001
19007
|
children: ":"
|
|
19002
19008
|
}),
|
|
19003
19009
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
19004
|
-
...
|
|
19010
|
+
...DJ
|
|
19005
19011
|
}),
|
|
19006
|
-
I &&
|
|
19012
|
+
I && TJ && K && CJ
|
|
19007
19013
|
]
|
|
19008
19014
|
}),
|
|
19009
19015
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
19010
19016
|
path: i,
|
|
19011
19017
|
value: w,
|
|
19012
19018
|
setValue: E,
|
|
19013
|
-
abortEditing:
|
|
19014
|
-
commitEditing:
|
|
19019
|
+
abortEditing: xJ,
|
|
19020
|
+
commitEditing: SJ
|
|
19015
19021
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
19016
|
-
...
|
|
19022
|
+
...DJ
|
|
19017
19023
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
19018
19024
|
component: "span",
|
|
19019
19025
|
className: "data-value-fallback",
|
|
19020
19026
|
children: `fallback: ${t}`
|
|
19021
19027
|
}),
|
|
19022
19028
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
19023
|
-
...
|
|
19029
|
+
...DJ
|
|
19024
19030
|
}),
|
|
19025
|
-
!o &&
|
|
19031
|
+
!o && rJ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19026
19032
|
children: ","
|
|
19027
19033
|
}),
|
|
19028
|
-
I &&
|
|
19029
|
-
I && !
|
|
19030
|
-
!I && J &&
|
|
19034
|
+
I && TJ && !K && CJ,
|
|
19035
|
+
I && !TJ && CJ,
|
|
19036
|
+
!I && J && CJ
|
|
19031
19037
|
]
|
|
19032
19038
|
});
|
|
19033
19039
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -19179,19 +19185,21 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19179
19185
|
HtmlOutput.displayName = "HtmlOutput";
|
|
19180
19186
|
var import_compiler_runtime$66 = require_compiler_runtime();
|
|
19181
19187
|
const ImageOutput = (e) => {
|
|
19182
|
-
let t = (0, import_compiler_runtime$66.c)(
|
|
19183
|
-
t[0] !== o || t[1] !== a ? (d = {}, a
|
|
19184
|
-
let f;
|
|
19185
|
-
t[3] !== c || t[4] !== n || t[5] !== d ? (
|
|
19188
|
+
let t = (0, import_compiler_runtime$66.c)(12), { src: n, alt: i, width: a, height: o, className: s } = e, c = i === void 0 ? "" : i, d;
|
|
19189
|
+
t[0] !== o || t[1] !== a ? (d = {}, typeof a == "string" && (d.width = a), typeof o == "string" && (d.height = o), t[0] = o, t[1] = a, t[2] = d) : d = t[2];
|
|
19190
|
+
let f = typeof a == "number" ? a : void 0, h = typeof o == "number" ? o : void 0, _;
|
|
19191
|
+
t[3] !== c || t[4] !== n || t[5] !== d || t[6] !== f || t[7] !== h ? (_ = (0, import_jsx_runtime.jsx)("img", {
|
|
19186
19192
|
src: n,
|
|
19187
19193
|
alt: c,
|
|
19194
|
+
width: f,
|
|
19195
|
+
height: h,
|
|
19188
19196
|
style: d
|
|
19189
|
-
}), t[3] = c, t[4] = n, t[5] = d, t[6] = f) :
|
|
19190
|
-
let
|
|
19191
|
-
return t[
|
|
19197
|
+
}), t[3] = c, t[4] = n, t[5] = d, t[6] = f, t[7] = h, t[8] = _) : _ = t[8];
|
|
19198
|
+
let v;
|
|
19199
|
+
return t[9] !== s || t[10] !== _ ? (v = (0, import_jsx_runtime.jsx)("span", {
|
|
19192
19200
|
className: s,
|
|
19193
|
-
children:
|
|
19194
|
-
}), t[
|
|
19201
|
+
children: _
|
|
19202
|
+
}), t[9] = s, t[10] = _, t[11] = v) : v = t[11], v;
|
|
19195
19203
|
};
|
|
19196
19204
|
var import_compiler_runtime$65 = require_compiler_runtime();
|
|
19197
19205
|
Kbd = (e) => {
|
|
@@ -19353,7 +19361,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19353
19361
|
fixType: "ai",
|
|
19354
19362
|
onFix: async (t2) => {
|
|
19355
19363
|
var _a3;
|
|
19356
|
-
let n = getDatasourceContext(t2.cellId), i = `Fix the SQL statement: ${e.msg}.`;
|
|
19364
|
+
let n = getDatasourceContext(t2.cellId, store), i = `Fix the SQL statement: ${e.msg}.`;
|
|
19357
19365
|
n && (i += `
|
|
19358
19366
|
Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletionCell({
|
|
19359
19367
|
cellId: t2.cellId,
|
|
@@ -19502,25 +19510,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19502
19510
|
}, e[0] = t, e[1] = n, e[2] = i) : i = e[2], i;
|
|
19503
19511
|
}
|
|
19504
19512
|
var import_compiler_runtime$59 = require_compiler_runtime();
|
|
19505
|
-
function
|
|
19506
|
-
|
|
19513
|
+
function buildFixInChatPrompt(e, t) {
|
|
19514
|
+
if (e != null) return `@error://${e}
|
|
19507
19515
|
|
|
19508
|
-
|
|
19509
|
-
|
|
19510
|
-
|
|
19511
|
-
e2 && (i += `
|
|
19516
|
+
Please fix this error.`;
|
|
19517
|
+
let n = t == null ? void 0 : t.trim();
|
|
19518
|
+
return n ? `My code gives the following error. Please fix it:
|
|
19512
19519
|
|
|
19513
|
-
|
|
19514
|
-
}
|
|
19515
|
-
return i;
|
|
19516
|
-
}
|
|
19517
|
-
function buildFixPrompt(e, t) {
|
|
19518
|
-
return buildFixPromptFromText(e.map((e2) => "msg" in e2 && e2.msg ? e2.msg : e2.type).join("\n"), t, {
|
|
19519
|
-
includeDatasourceContext: e.some((e2) => e2.type === "sql-error")
|
|
19520
|
-
});
|
|
19520
|
+
${n}` : "Please fix this error.";
|
|
19521
19521
|
}
|
|
19522
19522
|
const AutoFixButton = (e) => {
|
|
19523
|
-
let t = (0, import_compiler_runtime$59.c)(
|
|
19523
|
+
let t = (0, import_compiler_runtime$59.c)(25), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiFeaturesEnabledAtom), f;
|
|
19524
19524
|
if (t[0] !== d || t[1] !== n) {
|
|
19525
19525
|
let e2;
|
|
19526
19526
|
t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
|
|
@@ -19551,15 +19551,15 @@ Database schema: ${e2}`);
|
|
|
19551
19551
|
}), t2 == null ? void 0 : t2.focus();
|
|
19552
19552
|
}, t[5] = i, t[6] = c, t[7] = S, t[8] = v, t[9] = s, t[10] = w) : w = t[10];
|
|
19553
19553
|
let E = w, O;
|
|
19554
|
-
t[11] !== i || t[12] !==
|
|
19554
|
+
t[11] !== i || t[12] !== y ? (O = () => {
|
|
19555
19555
|
y({
|
|
19556
|
-
prompt:
|
|
19556
|
+
prompt: buildFixInChatPrompt(i)
|
|
19557
19557
|
});
|
|
19558
|
-
}, t[11] = i, t[12] =
|
|
19558
|
+
}, t[11] = i, t[12] = y, t[13] = O) : O = t[13];
|
|
19559
19559
|
let A = O, M;
|
|
19560
|
-
t[
|
|
19560
|
+
t[14] === o ? M = t[15] : (M = cn("my-2", o), t[14] = o, t[15] = M);
|
|
19561
19561
|
let I;
|
|
19562
|
-
t[
|
|
19562
|
+
t[16] !== S.description || t[17] !== S.fixType || t[18] !== S.title || t[19] !== E || t[20] !== A ? (I = S.fixType === "ai" ? (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
19563
19563
|
tooltip: S.description,
|
|
19564
19564
|
openPrompt: () => E(false),
|
|
19565
19565
|
applyAutofix: () => E(true),
|
|
@@ -19579,12 +19579,12 @@ Database schema: ${e2}`);
|
|
|
19579
19579
|
S.title
|
|
19580
19580
|
]
|
|
19581
19581
|
})
|
|
19582
|
-
}), t[
|
|
19582
|
+
}), t[16] = S.description, t[17] = S.fixType, t[18] = S.title, t[19] = E, t[20] = A, t[21] = I) : I = t[21];
|
|
19583
19583
|
let z;
|
|
19584
|
-
return t[
|
|
19584
|
+
return t[22] !== M || t[23] !== I ? (z = (0, import_jsx_runtime.jsx)("div", {
|
|
19585
19585
|
className: M,
|
|
19586
19586
|
children: I
|
|
19587
|
-
}), t[
|
|
19587
|
+
}), t[22] = M, t[23] = I, t[24] = z) : z = t[24], z;
|
|
19588
19588
|
};
|
|
19589
19589
|
var MODE_CONFIG = {
|
|
19590
19590
|
autofix: {
|
|
@@ -20121,18 +20121,18 @@ Database schema: ${e2}`);
|
|
|
20121
20121
|
}
|
|
20122
20122
|
let y, S, w, E, O, A;
|
|
20123
20123
|
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),
|
|
20125
|
-
t[17] === s ?
|
|
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), Q = n.filter(_temp13), $ = n.filter(_temp14), eJ = n.filter(_temp15), tJ = n.filter(_temp16), nJ = n.filter(_temp17), rJ = n.filter(_temp18), iJ;
|
|
20125
|
+
t[17] === s ? iJ = t[18] : (iJ = () => {
|
|
20126
20126
|
s.openApplication("scratchpad");
|
|
20127
|
-
}, t[17] = s, t[18] =
|
|
20128
|
-
let
|
|
20127
|
+
}, t[17] = s, t[18] = iJ);
|
|
20128
|
+
let aJ = iJ, oJ = () => {
|
|
20129
20129
|
let t2 = [];
|
|
20130
|
-
if (
|
|
20131
|
-
let e3 =
|
|
20130
|
+
if (tJ.length > 0 || nJ.length > 0) {
|
|
20131
|
+
let e3 = tJ.some(_temp19), n2 = !e3 && tJ.some(_temp20);
|
|
20132
20132
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20133
20133
|
children: [
|
|
20134
|
-
|
|
20135
|
-
|
|
20134
|
+
tJ.map(_temp21),
|
|
20135
|
+
nJ.map(_temp22),
|
|
20136
20136
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
20137
20137
|
size: "xs",
|
|
20138
20138
|
variant: "outline",
|
|
@@ -20163,8 +20163,8 @@ Database schema: ${e2}`);
|
|
|
20163
20163
|
}),
|
|
20164
20164
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20165
20165
|
errors: [
|
|
20166
|
-
|
|
20167
|
-
...
|
|
20166
|
+
...tJ,
|
|
20167
|
+
...nJ
|
|
20168
20168
|
],
|
|
20169
20169
|
cellId: i
|
|
20170
20170
|
})
|
|
@@ -20217,7 +20217,7 @@ Database schema: ${e2}`);
|
|
|
20217
20217
|
]
|
|
20218
20218
|
})
|
|
20219
20219
|
]
|
|
20220
|
-
}, "setup-refs")),
|
|
20220
|
+
}, "setup-refs")), M2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20221
20221
|
children: [
|
|
20222
20222
|
(0, import_jsx_runtime.jsx)("p", {
|
|
20223
20223
|
className: "text-muted-foreground font-medium",
|
|
@@ -20225,10 +20225,10 @@ Database schema: ${e2}`);
|
|
|
20225
20225
|
}),
|
|
20226
20226
|
(0, import_jsx_runtime.jsx)("ul", {
|
|
20227
20227
|
className: "list-disc",
|
|
20228
|
-
children:
|
|
20228
|
+
children: M2.flatMap(_temp24)
|
|
20229
20229
|
}),
|
|
20230
20230
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20231
|
-
errors:
|
|
20231
|
+
errors: M2,
|
|
20232
20232
|
cellId: i
|
|
20233
20233
|
}),
|
|
20234
20234
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20263,17 +20263,17 @@ Database schema: ${e2}`);
|
|
|
20263
20263
|
]
|
|
20264
20264
|
})
|
|
20265
20265
|
]
|
|
20266
|
-
}, "cycle")),
|
|
20267
|
-
let e3 =
|
|
20266
|
+
}, "cycle")), I2.length > 0) {
|
|
20267
|
+
let e3 = I2[0].name;
|
|
20268
20268
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20269
20269
|
children: [
|
|
20270
20270
|
(0, import_jsx_runtime.jsx)("p", {
|
|
20271
20271
|
className: "text-muted-foreground font-medium",
|
|
20272
20272
|
children: "This cell redefines variables from other cells."
|
|
20273
20273
|
}),
|
|
20274
|
-
|
|
20274
|
+
I2.map(_temp26),
|
|
20275
20275
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20276
|
-
errors:
|
|
20276
|
+
errors: I2,
|
|
20277
20277
|
cellId: i
|
|
20278
20278
|
}),
|
|
20279
20279
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20325,7 +20325,7 @@ Database schema: ${e2}`);
|
|
|
20325
20325
|
size: "xs",
|
|
20326
20326
|
variant: "link",
|
|
20327
20327
|
className: "my-2 font-normal mx-0 px-0",
|
|
20328
|
-
onClick:
|
|
20328
|
+
onClick: aJ,
|
|
20329
20329
|
children: [
|
|
20330
20330
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20331
20331
|
className: "h-3"
|
|
@@ -20344,11 +20344,11 @@ Database schema: ${e2}`);
|
|
|
20344
20344
|
]
|
|
20345
20345
|
}, "multiple-defs"));
|
|
20346
20346
|
}
|
|
20347
|
-
return
|
|
20347
|
+
return z.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20348
20348
|
children: [
|
|
20349
|
-
|
|
20349
|
+
z.map(_temp27),
|
|
20350
20350
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20351
|
-
errors:
|
|
20351
|
+
errors: z,
|
|
20352
20352
|
cellId: i
|
|
20353
20353
|
}),
|
|
20354
20354
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20386,17 +20386,17 @@ Database schema: ${e2}`);
|
|
|
20386
20386
|
]
|
|
20387
20387
|
})
|
|
20388
20388
|
]
|
|
20389
|
-
}, "import-star")),
|
|
20389
|
+
}, "import-star")), U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20390
20390
|
children: [
|
|
20391
|
-
|
|
20391
|
+
U.map(_temp28),
|
|
20392
20392
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20393
|
-
errors:
|
|
20393
|
+
errors: U,
|
|
20394
20394
|
cellId: i
|
|
20395
20395
|
})
|
|
20396
20396
|
]
|
|
20397
|
-
}, "interruption")),
|
|
20397
|
+
}, "interruption")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
|
|
20398
20398
|
children: [
|
|
20399
|
-
|
|
20399
|
+
K.map((e3, t3) => e3.exception_type === "NameError" && e3.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
|
|
20400
20400
|
className: "my-2",
|
|
20401
20401
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20402
20402
|
children: [
|
|
@@ -20481,23 +20481,23 @@ Database schema: ${e2}`);
|
|
|
20481
20481
|
]
|
|
20482
20482
|
})
|
|
20483
20483
|
}, `exception-${t3}`)),
|
|
20484
|
-
|
|
20484
|
+
K.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
|
|
20485
20485
|
children: "Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."
|
|
20486
20486
|
}),
|
|
20487
20487
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20488
|
-
errors:
|
|
20488
|
+
errors: K,
|
|
20489
20489
|
cellId: i
|
|
20490
20490
|
})
|
|
20491
20491
|
]
|
|
20492
|
-
}, "exception")),
|
|
20492
|
+
}, "exception")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
|
|
20493
20493
|
children: [
|
|
20494
|
-
|
|
20494
|
+
q.map(_temp30),
|
|
20495
20495
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20496
|
-
errors:
|
|
20496
|
+
errors: q,
|
|
20497
20497
|
cellId: i
|
|
20498
20498
|
}),
|
|
20499
20499
|
(0, import_jsx_runtime.jsx)(Tip, {
|
|
20500
|
-
children:
|
|
20500
|
+
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
20501
|
})
|
|
20502
20502
|
]
|
|
20503
20503
|
}, "strict-exception")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
@@ -20516,26 +20516,26 @@ Database schema: ${e2}`);
|
|
|
20516
20516
|
cellId: i
|
|
20517
20517
|
})
|
|
20518
20518
|
]
|
|
20519
|
-
}, "ancestor-prevented")),
|
|
20519
|
+
}, "ancestor-prevented")), eJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20520
20520
|
children: [
|
|
20521
|
-
|
|
20521
|
+
eJ.map(_temp34),
|
|
20522
20522
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20523
|
-
errors:
|
|
20523
|
+
errors: eJ,
|
|
20524
20524
|
cellId: i
|
|
20525
20525
|
})
|
|
20526
20526
|
]
|
|
20527
|
-
}, "ancestor-stopped")),
|
|
20527
|
+
}, "ancestor-stopped")), rJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20528
20528
|
children: [
|
|
20529
|
-
|
|
20529
|
+
rJ.map(_temp35),
|
|
20530
20530
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20531
|
-
errors:
|
|
20531
|
+
errors: rJ,
|
|
20532
20532
|
cellId: i,
|
|
20533
20533
|
className: "mt-2.5"
|
|
20534
20534
|
})
|
|
20535
20535
|
]
|
|
20536
20536
|
}, "sql-errors")), t2;
|
|
20537
|
-
},
|
|
20538
|
-
t[19] === v ?
|
|
20537
|
+
}, sJ;
|
|
20538
|
+
t[19] === v ? sJ = t[20] : (sJ = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20539
20539
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20540
20540
|
children: [
|
|
20541
20541
|
v,
|
|
@@ -20547,37 +20547,37 @@ Database schema: ${e2}`);
|
|
|
20547
20547
|
})
|
|
20548
20548
|
})
|
|
20549
20549
|
]
|
|
20550
|
-
}), t[19] = v, t[20] =
|
|
20551
|
-
let
|
|
20552
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20550
|
+
}), t[19] = v, t[20] = sJ);
|
|
20551
|
+
let cJ;
|
|
20552
|
+
t[21] !== _ || t[22] !== d ? (cJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20553
20553
|
className: `font-code font-medium ${_}`,
|
|
20554
20554
|
children: d
|
|
20555
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20556
|
-
let
|
|
20557
|
-
t[24] !==
|
|
20555
|
+
}), t[21] = _, t[22] = d, t[23] = cJ) : cJ = t[23];
|
|
20556
|
+
let lJ;
|
|
20557
|
+
t[24] !== sJ || t[25] !== cJ ? (lJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
20558
20558
|
className: "space-y-0.5",
|
|
20559
20559
|
children: [
|
|
20560
|
-
|
|
20561
|
-
|
|
20560
|
+
sJ,
|
|
20561
|
+
cJ
|
|
20562
20562
|
]
|
|
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 =
|
|
20563
|
+
}), t[24] = sJ, t[25] = cJ, t[26] = lJ) : lJ = t[26];
|
|
20564
|
+
let uJ = lJ;
|
|
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 = uJ, S = "flex flex-col gap-4", w = oJ(), 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
20566
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20567
|
-
let
|
|
20568
|
-
t[29] !== S || t[30] !== w ? (
|
|
20567
|
+
let M;
|
|
20568
|
+
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
20569
20569
|
className: S,
|
|
20570
20570
|
children: w
|
|
20571
|
-
}), t[29] = S, t[30] = w, t[31] =
|
|
20572
|
-
let
|
|
20573
|
-
return t[32] !== y || t[33] !== E || t[34] !== O || t[35] !== A || t[36] !==
|
|
20571
|
+
}), t[29] = S, t[30] = w, t[31] = M) : M = t[31];
|
|
20572
|
+
let I;
|
|
20573
|
+
return t[32] !== y || t[33] !== E || t[34] !== O || t[35] !== A || t[36] !== M ? (I = (0, import_jsx_runtime.jsxs)(y, {
|
|
20574
20574
|
variant: E,
|
|
20575
20575
|
className: O,
|
|
20576
20576
|
children: [
|
|
20577
20577
|
A,
|
|
20578
|
-
|
|
20578
|
+
M
|
|
20579
20579
|
]
|
|
20580
|
-
}), t[32] = y, t[33] = E, t[34] = O, t[35] = A, t[36] =
|
|
20580
|
+
}), t[32] = y, t[33] = E, t[34] = O, t[35] = A, t[36] = M, t[37] = I) : I = t[37], I;
|
|
20581
20581
|
};
|
|
20582
20582
|
function _temp$10(e) {
|
|
20583
20583
|
return e.type === "interruption";
|
|
@@ -21412,12 +21412,6 @@ Database schema: ${e2}`);
|
|
|
21412
21412
|
is_null: "Is null",
|
|
21413
21413
|
is_not_null: "Is not null"
|
|
21414
21414
|
};
|
|
21415
|
-
isRecord = function(e) {
|
|
21416
|
-
return typeof e == "object" && !!e && !Array.isArray(e);
|
|
21417
|
-
};
|
|
21418
|
-
hasFunctionProperty = function(e, t) {
|
|
21419
|
-
return typeof e[t] == "function";
|
|
21420
|
-
};
|
|
21421
21415
|
var import_compiler_runtime$47 = require_compiler_runtime();
|
|
21422
21416
|
const MimeCell = (e) => {
|
|
21423
21417
|
let t = (0, import_compiler_runtime$47.c)(6), { value: n } = e, i;
|
|
@@ -26620,7 +26614,7 @@ Database schema: ${e2}`);
|
|
|
26620
26614
|
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 }) {
|
|
26621
26615
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26622
26616
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26623
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
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), eJ = (0, import_react.useRef)({
|
|
26624
26618
|
callbacks: {
|
|
26625
26619
|
onCollapse: f,
|
|
26626
26620
|
onExpand: h,
|
|
@@ -26640,12 +26634,12 @@ Database schema: ${e2}`);
|
|
|
26640
26634
|
(0, import_react.useRef)({
|
|
26641
26635
|
didLogMissingDefaultSizeWarning: false
|
|
26642
26636
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26643
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26637
|
+
let { callbacks: e2, constraints: t2 } = eJ.current, o2 = {
|
|
26644
26638
|
...t2
|
|
26645
26639
|
};
|
|
26646
|
-
|
|
26640
|
+
eJ.current.id = $, eJ.current.idIsFromProps = s !== void 0, eJ.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(eJ.current, o2);
|
|
26647
26641
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26648
|
-
let e2 =
|
|
26642
|
+
let e2 = eJ.current;
|
|
26649
26643
|
return q(e2), () => {
|
|
26650
26644
|
Q(e2);
|
|
26651
26645
|
};
|
|
@@ -26656,25 +26650,25 @@ Database schema: ${e2}`);
|
|
|
26656
26650
|
Q
|
|
26657
26651
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26658
26652
|
collapse: () => {
|
|
26659
|
-
O(
|
|
26653
|
+
O(eJ.current);
|
|
26660
26654
|
},
|
|
26661
26655
|
expand: (e2) => {
|
|
26662
|
-
A(
|
|
26656
|
+
A(eJ.current, e2);
|
|
26663
26657
|
},
|
|
26664
26658
|
getId() {
|
|
26665
26659
|
return $;
|
|
26666
26660
|
},
|
|
26667
26661
|
getSize() {
|
|
26668
|
-
return M(
|
|
26662
|
+
return M(eJ.current);
|
|
26669
26663
|
},
|
|
26670
26664
|
isCollapsed() {
|
|
26671
|
-
return U(
|
|
26665
|
+
return U(eJ.current);
|
|
26672
26666
|
},
|
|
26673
26667
|
isExpanded() {
|
|
26674
|
-
return !U(
|
|
26668
|
+
return !U(eJ.current);
|
|
26675
26669
|
},
|
|
26676
26670
|
resize: (e2) => {
|
|
26677
|
-
J(
|
|
26671
|
+
J(eJ.current, e2);
|
|
26678
26672
|
}
|
|
26679
26673
|
}), [
|
|
26680
26674
|
O,
|
|
@@ -26684,21 +26678,21 @@ Database schema: ${e2}`);
|
|
|
26684
26678
|
$,
|
|
26685
26679
|
J
|
|
26686
26680
|
]);
|
|
26687
|
-
let
|
|
26681
|
+
let tJ = I(eJ.current, a);
|
|
26688
26682
|
return (0, import_react.createElement)(S, {
|
|
26689
26683
|
...w,
|
|
26690
26684
|
children: e,
|
|
26691
26685
|
className: t,
|
|
26692
26686
|
id: $,
|
|
26693
26687
|
style: {
|
|
26694
|
-
|
|
26688
|
+
...tJ,
|
|
26695
26689
|
...y
|
|
26696
26690
|
},
|
|
26697
26691
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26698
26692
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26699
26693
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26700
26694
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26701
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26695
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + tJ.flexGrow).toFixed(1)
|
|
26702
26696
|
});
|
|
26703
26697
|
}
|
|
26704
26698
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27483,13 +27477,13 @@ Database schema: ${e2}`);
|
|
|
27483
27477
|
}, [
|
|
27484
27478
|
S,
|
|
27485
27479
|
E
|
|
27486
|
-
]),
|
|
27480
|
+
]), eJ = (0, import_react.useCallback)((e2) => {
|
|
27487
27481
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27488
27482
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27489
|
-
}, []),
|
|
27483
|
+
}, []), tJ = (0, import_react.useCallback)((e2) => {
|
|
27490
27484
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27491
27485
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27492
|
-
}, []),
|
|
27486
|
+
}, []), nJ = (0, import_react.useCallback)((e2) => {
|
|
27493
27487
|
let { panelDataArray: t2 } = K.current;
|
|
27494
27488
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27495
27489
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27521,7 +27515,7 @@ Database schema: ${e2}`);
|
|
|
27521
27515
|
e2.layout = [];
|
|
27522
27516
|
};
|
|
27523
27517
|
}, []);
|
|
27524
|
-
let
|
|
27518
|
+
let rJ = (0, import_react.useCallback)((e2) => {
|
|
27525
27519
|
let t2 = false, n2 = y.current;
|
|
27526
27520
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27527
27521
|
n3.preventDefault();
|
|
@@ -27539,7 +27533,7 @@ Database schema: ${e2}`);
|
|
|
27539
27533
|
}), I2 = !compareLayouts(f2, A2);
|
|
27540
27534
|
(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));
|
|
27541
27535
|
};
|
|
27542
|
-
}, []),
|
|
27536
|
+
}, []), iJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27543
27537
|
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);
|
|
27544
27538
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27545
27539
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27551,12 +27545,12 @@ Database schema: ${e2}`);
|
|
|
27551
27545
|
trigger: "imperative-api"
|
|
27552
27546
|
});
|
|
27553
27547
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27554
|
-
}, []),
|
|
27548
|
+
}, []), aJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27555
27549
|
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);
|
|
27556
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27550
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || iJ(e2, s2) : h2 < f2 ? iJ(e2, f2) : h2 > d2 && iJ(e2, d2));
|
|
27557
27551
|
}, [
|
|
27558
|
-
|
|
27559
|
-
]),
|
|
27552
|
+
iJ
|
|
27553
|
+
]), oJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27560
27554
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27561
27555
|
if (!y.current) return;
|
|
27562
27556
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27568,14 +27562,14 @@ Database schema: ${e2}`);
|
|
|
27568
27562
|
initialCursorPosition: o2,
|
|
27569
27563
|
initialLayout: i2
|
|
27570
27564
|
});
|
|
27571
|
-
}, []),
|
|
27565
|
+
}, []), sJ = (0, import_react.useCallback)(() => {
|
|
27572
27566
|
w(null);
|
|
27573
|
-
}, []),
|
|
27567
|
+
}, []), cJ = (0, import_react.useCallback)((e2) => {
|
|
27574
27568
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27575
27569
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27576
27570
|
}, [
|
|
27577
27571
|
A
|
|
27578
|
-
]),
|
|
27572
|
+
]), lJ = (0, import_react.useMemo)(() => ({
|
|
27579
27573
|
collapsePanel: q,
|
|
27580
27574
|
direction: i,
|
|
27581
27575
|
dragState: S,
|
|
@@ -27583,15 +27577,15 @@ Database schema: ${e2}`);
|
|
|
27583
27577
|
getPanelSize: Q,
|
|
27584
27578
|
getPanelStyle: $,
|
|
27585
27579
|
groupId: v,
|
|
27586
|
-
isPanelCollapsed:
|
|
27587
|
-
isPanelExpanded:
|
|
27588
|
-
reevaluatePanelConstraints:
|
|
27589
|
-
registerPanel:
|
|
27590
|
-
registerResizeHandle:
|
|
27591
|
-
resizePanel:
|
|
27592
|
-
startDragging:
|
|
27593
|
-
stopDragging:
|
|
27594
|
-
unregisterPanel:
|
|
27580
|
+
isPanelCollapsed: eJ,
|
|
27581
|
+
isPanelExpanded: tJ,
|
|
27582
|
+
reevaluatePanelConstraints: aJ,
|
|
27583
|
+
registerPanel: nJ,
|
|
27584
|
+
registerResizeHandle: rJ,
|
|
27585
|
+
resizePanel: iJ,
|
|
27586
|
+
startDragging: oJ,
|
|
27587
|
+
stopDragging: sJ,
|
|
27588
|
+
unregisterPanel: cJ,
|
|
27595
27589
|
panelGroupElement: y.current
|
|
27596
27590
|
}), [
|
|
27597
27591
|
q,
|
|
@@ -27601,16 +27595,16 @@ Database schema: ${e2}`);
|
|
|
27601
27595
|
Q,
|
|
27602
27596
|
$,
|
|
27603
27597
|
v,
|
|
27604
|
-
Qq,
|
|
27605
|
-
$q,
|
|
27606
|
-
rJ,
|
|
27607
27598
|
eJ,
|
|
27608
27599
|
tJ,
|
|
27600
|
+
aJ,
|
|
27609
27601
|
nJ,
|
|
27602
|
+
rJ,
|
|
27610
27603
|
iJ,
|
|
27611
|
-
|
|
27612
|
-
|
|
27613
|
-
|
|
27604
|
+
oJ,
|
|
27605
|
+
sJ,
|
|
27606
|
+
cJ
|
|
27607
|
+
]), uJ = {
|
|
27614
27608
|
display: "flex",
|
|
27615
27609
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27616
27610
|
height: "100%",
|
|
@@ -27618,7 +27612,7 @@ Database schema: ${e2}`);
|
|
|
27618
27612
|
width: "100%"
|
|
27619
27613
|
};
|
|
27620
27614
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27621
|
-
value:
|
|
27615
|
+
value: lJ
|
|
27622
27616
|
}, (0, import_react.createElement)(h, {
|
|
27623
27617
|
..._,
|
|
27624
27618
|
children: t,
|
|
@@ -27626,7 +27620,7 @@ Database schema: ${e2}`);
|
|
|
27626
27620
|
id: o,
|
|
27627
27621
|
ref: y,
|
|
27628
27622
|
style: {
|
|
27629
|
-
...
|
|
27623
|
+
...uJ,
|
|
27630
27624
|
...f
|
|
27631
27625
|
},
|
|
27632
27626
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27703,31 +27697,31 @@ Database schema: ${e2}`);
|
|
|
27703
27697
|
});
|
|
27704
27698
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27705
27699
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27706
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
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"), [$, eJ] = (0, import_react.useState)(false), [tJ, nJ] = (0, import_react.useState)(null), rJ = (0, import_react.useRef)({
|
|
27707
27701
|
state: J
|
|
27708
27702
|
});
|
|
27709
27703
|
useIsomorphicLayoutEffect$1(() => {
|
|
27710
|
-
|
|
27704
|
+
rJ.current.state = J;
|
|
27711
27705
|
}), (0, import_react.useEffect)(() => {
|
|
27712
|
-
if (n)
|
|
27706
|
+
if (n) nJ(null);
|
|
27713
27707
|
else {
|
|
27714
27708
|
let e2 = I(q);
|
|
27715
|
-
|
|
27709
|
+
nJ(() => e2);
|
|
27716
27710
|
}
|
|
27717
27711
|
}, [
|
|
27718
27712
|
n,
|
|
27719
27713
|
q,
|
|
27720
27714
|
I
|
|
27721
27715
|
]);
|
|
27722
|
-
let
|
|
27716
|
+
let iJ = (i == null ? void 0 : i.coarse) ?? 15, aJ = (i == null ? void 0 : i.fine) ?? 5;
|
|
27723
27717
|
(0, import_react.useEffect)(() => {
|
|
27724
|
-
if (n ||
|
|
27718
|
+
if (n || tJ == null) return;
|
|
27725
27719
|
let e2 = w.current;
|
|
27726
27720
|
assert(e2, "Element ref not attached");
|
|
27727
27721
|
let t2 = false;
|
|
27728
27722
|
return registerResizeHandle(q, e2, A, {
|
|
27729
|
-
coarse:
|
|
27730
|
-
fine:
|
|
27723
|
+
coarse: iJ,
|
|
27724
|
+
fine: aJ
|
|
27731
27725
|
}, (e3, n2, i2) => {
|
|
27732
27726
|
if (!n2) {
|
|
27733
27727
|
Q("inactive");
|
|
@@ -27741,8 +27735,8 @@ Database schema: ${e2}`);
|
|
|
27741
27735
|
break;
|
|
27742
27736
|
}
|
|
27743
27737
|
case "move": {
|
|
27744
|
-
let { state: e4 } =
|
|
27745
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27738
|
+
let { state: e4 } = rJ.current;
|
|
27739
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), tJ(i2);
|
|
27746
27740
|
break;
|
|
27747
27741
|
}
|
|
27748
27742
|
case "up": {
|
|
@@ -27754,22 +27748,22 @@ Database schema: ${e2}`);
|
|
|
27754
27748
|
}
|
|
27755
27749
|
});
|
|
27756
27750
|
}, [
|
|
27757
|
-
|
|
27751
|
+
iJ,
|
|
27758
27752
|
A,
|
|
27759
27753
|
n,
|
|
27760
|
-
|
|
27754
|
+
aJ,
|
|
27761
27755
|
I,
|
|
27762
27756
|
q,
|
|
27763
|
-
|
|
27757
|
+
tJ,
|
|
27764
27758
|
z,
|
|
27765
27759
|
U
|
|
27766
27760
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27767
27761
|
disabled: n,
|
|
27768
27762
|
handleId: q,
|
|
27769
|
-
resizeHandler:
|
|
27763
|
+
resizeHandler: tJ,
|
|
27770
27764
|
panelGroupElement: K
|
|
27771
27765
|
});
|
|
27772
|
-
let
|
|
27766
|
+
let oJ = {
|
|
27773
27767
|
touchAction: "none",
|
|
27774
27768
|
userSelect: "none"
|
|
27775
27769
|
};
|
|
@@ -27779,15 +27773,15 @@ Database schema: ${e2}`);
|
|
|
27779
27773
|
className: t,
|
|
27780
27774
|
id: a,
|
|
27781
27775
|
onBlur: () => {
|
|
27782
|
-
|
|
27776
|
+
eJ(false), o == null ? void 0 : o();
|
|
27783
27777
|
},
|
|
27784
27778
|
onFocus: () => {
|
|
27785
|
-
|
|
27779
|
+
eJ(true), d == null ? void 0 : d();
|
|
27786
27780
|
},
|
|
27787
27781
|
ref: w,
|
|
27788
27782
|
role: "separator",
|
|
27789
27783
|
style: {
|
|
27790
|
-
...
|
|
27784
|
+
...oJ,
|
|
27791
27785
|
..._
|
|
27792
27786
|
},
|
|
27793
27787
|
tabIndex: v,
|
|
@@ -28086,7 +28080,7 @@ Database schema: ${e2}`);
|
|
|
28086
28080
|
}, [
|
|
28087
28081
|
h
|
|
28088
28082
|
]), k(() => {
|
|
28089
|
-
U(6,
|
|
28083
|
+
U(6, tJ);
|
|
28090
28084
|
}, []);
|
|
28091
28085
|
let K = import_react.useMemo(() => ({
|
|
28092
28086
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -28095,7 +28089,7 @@ Database schema: ${e2}`);
|
|
|
28095
28089
|
var _a2;
|
|
28096
28090
|
var a2, o2, s2;
|
|
28097
28091
|
if (!Object.is(n.current[e2], t2)) {
|
|
28098
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
28092
|
+
if (n.current[e2] = t2, e2 === "search") eJ(), Q(), U(1, $);
|
|
28099
28093
|
else if (e2 === "value") {
|
|
28100
28094
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
28101
28095
|
let e3 = document.getElementById(I);
|
|
@@ -28103,8 +28097,8 @@ Database schema: ${e2}`);
|
|
|
28103
28097
|
}
|
|
28104
28098
|
if (U(7, () => {
|
|
28105
28099
|
var _a3;
|
|
28106
|
-
n.current.selectedItemId = (_a3 =
|
|
28107
|
-
}), i2 || U(5,
|
|
28100
|
+
n.current.selectedItemId = (_a3 = nJ()) == null ? void 0 : _a3.id, K.emit();
|
|
28101
|
+
}), i2 || U(5, tJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
28108
28102
|
let e3 = t2 ?? "";
|
|
28109
28103
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
28110
28104
|
return;
|
|
@@ -28129,12 +28123,12 @@ Database schema: ${e2}`);
|
|
|
28129
28123
|
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([
|
|
28130
28124
|
e2
|
|
28131
28125
|
]))), U(3, () => {
|
|
28132
|
-
|
|
28126
|
+
eJ(), Q(), n.current.value || $(), K.emit();
|
|
28133
28127
|
}), () => {
|
|
28134
28128
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
28135
|
-
let t3 =
|
|
28129
|
+
let t3 = nJ();
|
|
28136
28130
|
U(4, () => {
|
|
28137
|
-
|
|
28131
|
+
eJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
28138
28132
|
});
|
|
28139
28133
|
}),
|
|
28140
28134
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -28167,7 +28161,7 @@ Database schema: ${e2}`);
|
|
|
28167
28161
|
]);
|
|
28168
28162
|
});
|
|
28169
28163
|
let i2 = z.current;
|
|
28170
|
-
|
|
28164
|
+
rJ().sort((t3, n2) => {
|
|
28171
28165
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
28172
28166
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
28173
28167
|
}).forEach((e3) => {
|
|
@@ -28181,10 +28175,10 @@ Database schema: ${e2}`);
|
|
|
28181
28175
|
}
|
|
28182
28176
|
function $() {
|
|
28183
28177
|
var _a2;
|
|
28184
|
-
let e2 = (_a2 =
|
|
28178
|
+
let e2 = (_a2 = rJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
28185
28179
|
K.setState("value", e2 || void 0);
|
|
28186
28180
|
}
|
|
28187
|
-
function
|
|
28181
|
+
function eJ() {
|
|
28188
28182
|
var _a2, _b;
|
|
28189
28183
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
28190
28184
|
n.current.filtered.count = i.current.size;
|
|
@@ -28202,43 +28196,43 @@ Database schema: ${e2}`);
|
|
|
28202
28196
|
}
|
|
28203
28197
|
n.current.filtered.count = e2;
|
|
28204
28198
|
}
|
|
28205
|
-
function
|
|
28199
|
+
function tJ() {
|
|
28206
28200
|
var _a2, _b;
|
|
28207
28201
|
var e2;
|
|
28208
|
-
let t2 =
|
|
28202
|
+
let t2 = nJ();
|
|
28209
28203
|
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({
|
|
28210
28204
|
block: "nearest"
|
|
28211
28205
|
})), t2.scrollIntoView({
|
|
28212
28206
|
block: "nearest"
|
|
28213
28207
|
}));
|
|
28214
28208
|
}
|
|
28215
|
-
function
|
|
28209
|
+
function nJ() {
|
|
28216
28210
|
var _a2;
|
|
28217
28211
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
28218
28212
|
}
|
|
28219
|
-
function
|
|
28213
|
+
function rJ() {
|
|
28220
28214
|
var _a2;
|
|
28221
28215
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
28222
28216
|
}
|
|
28223
|
-
function
|
|
28224
|
-
let t2 =
|
|
28217
|
+
function iJ(e2) {
|
|
28218
|
+
let t2 = rJ()[e2];
|
|
28225
28219
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
28226
28220
|
}
|
|
28227
|
-
function
|
|
28221
|
+
function aJ(e2) {
|
|
28228
28222
|
var t2;
|
|
28229
|
-
let n2 =
|
|
28223
|
+
let n2 = nJ(), i2 = rJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
28230
28224
|
(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));
|
|
28231
28225
|
}
|
|
28232
|
-
function
|
|
28226
|
+
function oJ(e2) {
|
|
28233
28227
|
var _a2;
|
|
28234
|
-
let t2 = (_a2 =
|
|
28228
|
+
let t2 = (_a2 = nJ()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
28235
28229
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
28236
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
28230
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : aJ(e2);
|
|
28237
28231
|
}
|
|
28238
|
-
let
|
|
28239
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28240
|
-
},
|
|
28241
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28232
|
+
let sJ = () => iJ(rJ().length - 1), cJ = (e2) => {
|
|
28233
|
+
e2.preventDefault(), e2.metaKey ? sJ() : e2.altKey ? oJ(1) : aJ(1);
|
|
28234
|
+
}, lJ = (e2) => {
|
|
28235
|
+
e2.preventDefault(), e2.metaKey ? iJ(0) : e2.altKey ? oJ(-1) : aJ(-1);
|
|
28242
28236
|
};
|
|
28243
28237
|
return import_react.createElement(Primitive.div, {
|
|
28244
28238
|
ref: t,
|
|
@@ -28252,27 +28246,27 @@ Database schema: ${e2}`);
|
|
|
28252
28246
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
28253
28247
|
case "n":
|
|
28254
28248
|
case "j":
|
|
28255
|
-
E && e2.ctrlKey &&
|
|
28249
|
+
E && e2.ctrlKey && cJ(e2);
|
|
28256
28250
|
break;
|
|
28257
28251
|
case "ArrowDown":
|
|
28258
|
-
|
|
28252
|
+
cJ(e2);
|
|
28259
28253
|
break;
|
|
28260
28254
|
case "p":
|
|
28261
28255
|
case "k":
|
|
28262
|
-
E && e2.ctrlKey &&
|
|
28256
|
+
E && e2.ctrlKey && lJ(e2);
|
|
28263
28257
|
break;
|
|
28264
28258
|
case "ArrowUp":
|
|
28265
|
-
|
|
28259
|
+
lJ(e2);
|
|
28266
28260
|
break;
|
|
28267
28261
|
case "Home":
|
|
28268
|
-
e2.preventDefault(),
|
|
28262
|
+
e2.preventDefault(), iJ(0);
|
|
28269
28263
|
break;
|
|
28270
28264
|
case "End":
|
|
28271
|
-
e2.preventDefault(),
|
|
28265
|
+
e2.preventDefault(), sJ();
|
|
28272
28266
|
break;
|
|
28273
28267
|
case "Enter": {
|
|
28274
28268
|
e2.preventDefault();
|
|
28275
|
-
let t3 =
|
|
28269
|
+
let t3 = nJ();
|
|
28276
28270
|
if (t3) {
|
|
28277
28271
|
let e3 = new Event(Z);
|
|
28278
28272
|
t3.dispatchEvent(e3);
|
|
@@ -28679,155 +28673,155 @@ Database schema: ${e2}`);
|
|
|
28679
28673
|
onSelect: Functions.NOOP
|
|
28680
28674
|
});
|
|
28681
28675
|
Combobox = (e) => {
|
|
28682
|
-
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, U, K, q, J,
|
|
28683
|
-
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],
|
|
28684
|
-
let
|
|
28685
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
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], $ = t[24]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: $, 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] = $);
|
|
28678
|
+
let eJ = I === void 0 ? false : I, tJ = z === void 0 ? true : z, nJ = U === void 0 ? "Search..." : U, rJ = K === void 0 ? "Nothing found." : K, iJ = q === void 0 ? false : q, aJ = J === void 0 ? false : J, oJ = s ?? false, sJ;
|
|
28679
|
+
t[25] !== v || t[26] !== w || t[27] !== oJ ? (sJ = {
|
|
28686
28680
|
prop: w,
|
|
28687
|
-
defaultProp:
|
|
28681
|
+
defaultProp: oJ,
|
|
28688
28682
|
onChange: v
|
|
28689
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28690
|
-
let [
|
|
28691
|
-
t[29] === S ?
|
|
28683
|
+
}, t[25] = v, t[26] = w, t[27] = oJ, t[28] = sJ) : sJ = t[28];
|
|
28684
|
+
let [cJ, lJ] = useControllableState(sJ), uJ = cJ === void 0 ? false : cJ, dJ;
|
|
28685
|
+
t[29] === S ? dJ = t[30] : (dJ = (e2) => {
|
|
28692
28686
|
S == null ? void 0 : S(e2);
|
|
28693
|
-
}, t[29] = S, t[30] =
|
|
28694
|
-
let
|
|
28695
|
-
t[31] !== c || t[32] !==
|
|
28687
|
+
}, t[29] = S, t[30] = dJ);
|
|
28688
|
+
let fJ;
|
|
28689
|
+
t[31] !== c || t[32] !== dJ || t[33] !== $ ? (fJ = {
|
|
28696
28690
|
prop: $,
|
|
28697
28691
|
defaultProp: c,
|
|
28698
|
-
onChange:
|
|
28699
|
-
}, t[31] = c, t[32] =
|
|
28700
|
-
let [
|
|
28701
|
-
t[35] ===
|
|
28702
|
-
let
|
|
28703
|
-
t[37] !== _ || t[38] !==
|
|
28692
|
+
onChange: dJ
|
|
28693
|
+
}, t[31] = c, t[32] = dJ, t[33] = $, t[34] = fJ) : fJ = t[34];
|
|
28694
|
+
let [pJ, mJ] = useControllableState(fJ), hJ;
|
|
28695
|
+
t[35] === pJ ? hJ = t[36] : (hJ = (e2) => Array.isArray(pJ) ? pJ.includes(e2) : pJ === e2, t[35] = pJ, t[36] = hJ);
|
|
28696
|
+
let gJ = hJ, _J;
|
|
28697
|
+
t[37] !== _ || t[38] !== eJ || t[39] !== lJ || t[40] !== mJ || t[41] !== pJ ? (_J = (e2) => {
|
|
28704
28698
|
let t2 = e2;
|
|
28705
|
-
if (
|
|
28706
|
-
let n2 =
|
|
28699
|
+
if (eJ) if (Array.isArray(pJ)) if (pJ.includes(t2)) {
|
|
28700
|
+
let n2 = pJ.filter((t3) => t3 !== e2);
|
|
28707
28701
|
t2 = n2.length > 0 ? n2 : [];
|
|
28708
28702
|
} else t2 = [
|
|
28709
|
-
...
|
|
28703
|
+
...pJ,
|
|
28710
28704
|
t2
|
|
28711
28705
|
];
|
|
28712
28706
|
else t2 = [
|
|
28713
28707
|
t2
|
|
28714
28708
|
];
|
|
28715
|
-
else
|
|
28716
|
-
|
|
28717
|
-
}, t[37] = _, t[38] =
|
|
28718
|
-
let gJ = hJ, _J;
|
|
28719
|
-
t[43] !== nJ || t[44] !== d || t[45] !== Qq || t[46] !== E || t[47] !== dJ ? (_J = () => Qq && nJ && E ? E : dJ == null ? E ?? "--" : Array.isArray(dJ) ? dJ.length === 0 ? E ?? "--" : dJ.length === 1 && d !== void 0 ? d(dJ[0]) : `${dJ.length} selected` : d === void 0 ? E ?? "--" : d(dJ), t[43] = nJ, t[44] = d, t[45] = Qq, t[46] = E, t[47] = dJ, t[48] = _J) : _J = t[48];
|
|
28709
|
+
else pJ === e2 && (t2 = null);
|
|
28710
|
+
mJ(t2), (_ ?? eJ) || lJ(false);
|
|
28711
|
+
}, t[37] = _, t[38] = eJ, t[39] = lJ, t[40] = mJ, t[41] = pJ, t[42] = _J) : _J = t[42];
|
|
28720
28712
|
let vJ = _J, yJ;
|
|
28721
|
-
t[
|
|
28722
|
-
isSelected: mJ,
|
|
28723
|
-
onSelect: gJ
|
|
28724
|
-
}, t[49] = gJ, t[50] = mJ, t[51] = yJ) : yJ = t[51];
|
|
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];
|
|
28725
28714
|
let bJ = yJ, xJ;
|
|
28726
|
-
t[
|
|
28727
|
-
|
|
28728
|
-
|
|
28729
|
-
|
|
28730
|
-
|
|
28731
|
-
|
|
28732
|
-
|
|
28733
|
-
|
|
28734
|
-
|
|
28735
|
-
|
|
28736
|
-
|
|
28737
|
-
|
|
28738
|
-
children: DJ
|
|
28739
|
-
}), t[63] = DJ, t[64] = OJ);
|
|
28715
|
+
t[49] !== vJ || t[50] !== gJ ? (xJ = {
|
|
28716
|
+
isSelected: gJ,
|
|
28717
|
+
onSelect: vJ
|
|
28718
|
+
}, t[49] = vJ, t[50] = gJ, t[51] = xJ) : xJ = t[51];
|
|
28719
|
+
let SJ = xJ, CJ;
|
|
28720
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (CJ = cn("relative"), t[52] = CJ) : CJ = t[52];
|
|
28721
|
+
let EJ;
|
|
28722
|
+
t[53] !== aJ || t[54] !== lJ ? (EJ = (e2) => {
|
|
28723
|
+
aJ && e2 || lJ(e2);
|
|
28724
|
+
}, t[53] = aJ, t[54] = lJ, t[55] = EJ) : EJ = t[55];
|
|
28725
|
+
let DJ = aJ && "cursor-not-allowed opacity-50", OJ;
|
|
28726
|
+
t[56] !== o || t[57] !== DJ ? (OJ = 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", DJ, o), t[56] = o, t[57] = DJ, t[58] = OJ) : OJ = t[58];
|
|
28740
28727
|
let kJ;
|
|
28741
|
-
t[
|
|
28742
|
-
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28743
|
-
}), t[65] = kJ) : kJ = t[65];
|
|
28728
|
+
t[59] !== O || t[60] !== bJ || t[61] !== pJ ? (kJ = O ? O(pJ ?? null) : bJ(), t[59] = O, t[60] = bJ, t[61] = pJ, t[62] = kJ) : kJ = t[62];
|
|
28744
28729
|
let AJ;
|
|
28745
|
-
t[
|
|
28730
|
+
t[63] === kJ ? AJ = t[64] : (AJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28731
|
+
className: "truncate flex-1 min-w-0",
|
|
28732
|
+
children: kJ
|
|
28733
|
+
}), t[63] = kJ, t[64] = AJ);
|
|
28734
|
+
let jJ;
|
|
28735
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (jJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28736
|
+
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28737
|
+
}), t[65] = jJ) : jJ = t[65];
|
|
28738
|
+
let MJ;
|
|
28739
|
+
t[66] !== aJ || t[67] !== h || t[68] !== uJ || t[69] !== OJ || t[70] !== AJ ? (MJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28746
28740
|
asChild: true,
|
|
28747
28741
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28748
28742
|
id: h,
|
|
28749
28743
|
type: "button",
|
|
28750
|
-
className:
|
|
28751
|
-
"aria-expanded":
|
|
28752
|
-
"aria-disabled":
|
|
28744
|
+
className: OJ,
|
|
28745
|
+
"aria-expanded": uJ,
|
|
28746
|
+
"aria-disabled": aJ,
|
|
28753
28747
|
children: [
|
|
28754
|
-
|
|
28755
|
-
|
|
28748
|
+
AJ,
|
|
28749
|
+
jJ
|
|
28756
28750
|
]
|
|
28757
28751
|
})
|
|
28758
|
-
}), t[66] =
|
|
28759
|
-
let
|
|
28760
|
-
t[72] !==
|
|
28761
|
-
placeholder:
|
|
28752
|
+
}), t[66] = aJ, t[67] = h, t[68] = uJ, t[69] = OJ, t[70] = AJ, t[71] = MJ) : MJ = t[71];
|
|
28753
|
+
let NJ;
|
|
28754
|
+
t[72] !== nJ || t[73] !== y || t[74] !== M ? (NJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28755
|
+
placeholder: nJ,
|
|
28762
28756
|
rootClassName: "px-1 h-8",
|
|
28763
28757
|
autoFocus: true,
|
|
28764
28758
|
value: M,
|
|
28765
28759
|
onValueChange: y
|
|
28766
|
-
}), t[72] =
|
|
28767
|
-
let MJ;
|
|
28768
|
-
t[76] === tJ ? MJ = t[77] : (MJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28769
|
-
children: tJ
|
|
28770
|
-
}), t[76] = tJ, t[77] = MJ);
|
|
28771
|
-
let NJ;
|
|
28772
|
-
t[78] !== n || t[79] !== bJ ? (NJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28773
|
-
value: bJ,
|
|
28774
|
-
children: n
|
|
28775
|
-
}), t[78] = n, t[79] = bJ, t[80] = NJ) : NJ = t[80];
|
|
28760
|
+
}), t[72] = nJ, t[73] = y, t[74] = M, t[75] = NJ) : NJ = t[75];
|
|
28776
28761
|
let PJ;
|
|
28777
|
-
t[
|
|
28762
|
+
t[76] === rJ ? PJ = t[77] : (PJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28763
|
+
children: rJ
|
|
28764
|
+
}), t[76] = rJ, t[77] = PJ);
|
|
28765
|
+
let FJ;
|
|
28766
|
+
t[78] !== n || t[79] !== SJ ? (FJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28767
|
+
value: SJ,
|
|
28768
|
+
children: n
|
|
28769
|
+
}), t[78] = n, t[79] = SJ, t[80] = FJ) : FJ = t[80];
|
|
28770
|
+
let IJ;
|
|
28771
|
+
t[81] !== PJ || t[82] !== FJ ? (IJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28778
28772
|
className: "max-h-60 py-.5",
|
|
28779
28773
|
children: [
|
|
28780
|
-
|
|
28781
|
-
|
|
28774
|
+
PJ,
|
|
28775
|
+
FJ
|
|
28782
28776
|
]
|
|
28783
|
-
}), t[81] =
|
|
28784
|
-
let
|
|
28785
|
-
t[84] !== f || t[85] !==
|
|
28777
|
+
}), t[81] = PJ, t[82] = FJ, t[83] = IJ) : IJ = t[83];
|
|
28778
|
+
let LJ;
|
|
28779
|
+
t[84] !== f || t[85] !== tJ || t[86] !== NJ || t[87] !== IJ ? (LJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28786
28780
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28787
28781
|
align: "start",
|
|
28788
28782
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28789
28783
|
filter: f,
|
|
28790
|
-
shouldFilter:
|
|
28784
|
+
shouldFilter: tJ,
|
|
28791
28785
|
children: [
|
|
28792
|
-
|
|
28793
|
-
|
|
28786
|
+
NJ,
|
|
28787
|
+
IJ
|
|
28794
28788
|
]
|
|
28795
28789
|
})
|
|
28796
|
-
}), t[84] = f, t[85] =
|
|
28797
|
-
let
|
|
28798
|
-
t[89] !==
|
|
28799
|
-
open:
|
|
28800
|
-
onOpenChange:
|
|
28790
|
+
}), t[84] = f, t[85] = tJ, t[86] = NJ, t[87] = IJ, t[88] = LJ) : LJ = t[88];
|
|
28791
|
+
let RJ;
|
|
28792
|
+
t[89] !== uJ || t[90] !== EJ || t[91] !== MJ || t[92] !== LJ ? (RJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28793
|
+
open: uJ,
|
|
28794
|
+
onOpenChange: EJ,
|
|
28801
28795
|
children: [
|
|
28802
|
-
|
|
28803
|
-
|
|
28796
|
+
MJ,
|
|
28797
|
+
LJ
|
|
28804
28798
|
]
|
|
28805
|
-
}), t[89] =
|
|
28806
|
-
let
|
|
28807
|
-
t[94] !==
|
|
28799
|
+
}), t[89] = uJ, t[90] = EJ, t[91] = MJ, t[92] = LJ, t[93] = RJ) : RJ = t[93];
|
|
28800
|
+
let zJ;
|
|
28801
|
+
t[94] !== iJ || t[95] !== i || t[96] !== aJ || t[97] !== d || t[98] !== vJ || t[99] !== eJ || t[100] !== pJ ? (zJ = eJ && iJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28808
28802
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28809
|
-
children: Array.isArray(
|
|
28803
|
+
children: Array.isArray(pJ) && pJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28810
28804
|
variant: "secondary",
|
|
28811
28805
|
children: [
|
|
28812
28806
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28813
28807
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28814
28808
|
onClick: () => {
|
|
28815
|
-
|
|
28809
|
+
aJ || vJ(e2);
|
|
28816
28810
|
},
|
|
28817
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28811
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", aJ && "pointer-events-none")
|
|
28818
28812
|
})
|
|
28819
28813
|
]
|
|
28820
28814
|
}, String(e2)))
|
|
28821
|
-
}), t[94] =
|
|
28822
|
-
let
|
|
28823
|
-
return t[102] !== A || t[103] !==
|
|
28824
|
-
className:
|
|
28815
|
+
}), t[94] = iJ, t[95] = i, t[96] = aJ, t[97] = d, t[98] = vJ, t[99] = eJ, t[100] = pJ, t[101] = zJ) : zJ = t[101];
|
|
28816
|
+
let BJ;
|
|
28817
|
+
return t[102] !== A || t[103] !== RJ || t[104] !== zJ ? (BJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
28818
|
+
className: CJ,
|
|
28825
28819
|
...A,
|
|
28826
28820
|
children: [
|
|
28827
|
-
|
|
28828
|
-
|
|
28821
|
+
RJ,
|
|
28822
|
+
zJ
|
|
28829
28823
|
]
|
|
28830
|
-
}), t[102] = A, t[103] =
|
|
28824
|
+
}), t[102] = A, t[103] = RJ, t[104] = zJ, t[105] = BJ) : BJ = t[105], BJ;
|
|
28831
28825
|
};
|
|
28832
28826
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28833
28827
|
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), _;
|
|
@@ -29883,17 +29877,17 @@ Database schema: ${e2}`);
|
|
|
29883
29877
|
searchQuery: M,
|
|
29884
29878
|
filteredOptions: z
|
|
29885
29879
|
}, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
|
|
29886
|
-
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U),
|
|
29887
|
-
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (
|
|
29880
|
+
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), eJ;
|
|
29881
|
+
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (eJ = {
|
|
29888
29882
|
value: i,
|
|
29889
29883
|
onChange: a,
|
|
29890
29884
|
multiple: o,
|
|
29891
29885
|
maxSelections: s,
|
|
29892
29886
|
allowSelectNone: c,
|
|
29893
29887
|
selected: y
|
|
29894
|
-
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] =
|
|
29895
|
-
let { isChecked:
|
|
29896
|
-
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (
|
|
29888
|
+
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = eJ) : eJ = t[21];
|
|
29889
|
+
let { isChecked: tJ, toggle: nJ } = useToggle(eJ), rJ;
|
|
29890
|
+
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (rJ = {
|
|
29897
29891
|
value: i,
|
|
29898
29892
|
onChange: a,
|
|
29899
29893
|
multiple: o,
|
|
@@ -29901,24 +29895,24 @@ Database schema: ${e2}`);
|
|
|
29901
29895
|
filteredOptions: z,
|
|
29902
29896
|
searchQuery: M,
|
|
29903
29897
|
maxSelections: s
|
|
29904
|
-
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] =
|
|
29905
|
-
let { bulkActions:
|
|
29906
|
-
t[30] !== J || t[31] !== I ? (
|
|
29898
|
+
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = rJ) : rJ = t[29];
|
|
29899
|
+
let { bulkActions: iJ } = useBulk(rJ), aJ;
|
|
29900
|
+
t[30] !== J || t[31] !== I ? (aJ = (e2) => {
|
|
29907
29901
|
I(e2), e2 === "" && J();
|
|
29908
|
-
}, t[30] = J, t[31] = I, t[32] =
|
|
29909
|
-
let
|
|
29910
|
-
return t[33] !==
|
|
29902
|
+
}, t[30] = J, t[31] = I, t[32] = aJ) : aJ = t[32];
|
|
29903
|
+
let oJ = aJ, sJ;
|
|
29904
|
+
return t[33] !== iJ || t[34] !== tJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== oJ || t[41] !== nJ || t[42] !== Q ? (sJ = {
|
|
29911
29905
|
searchQuery: M,
|
|
29912
|
-
setSearchQuery:
|
|
29906
|
+
setSearchQuery: oJ,
|
|
29913
29907
|
open: K,
|
|
29914
29908
|
setOpen: q,
|
|
29915
29909
|
visibleOptions: Q,
|
|
29916
29910
|
pinnedCount: $,
|
|
29917
|
-
isChecked:
|
|
29918
|
-
toggle:
|
|
29919
|
-
bulkActions:
|
|
29911
|
+
isChecked: tJ,
|
|
29912
|
+
toggle: nJ,
|
|
29913
|
+
bulkActions: iJ,
|
|
29920
29914
|
labelOf: O
|
|
29921
|
-
}, t[33] =
|
|
29915
|
+
}, t[33] = iJ, t[34] = tJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = oJ, t[41] = nJ, t[42] = Q, t[43] = sJ) : sJ = t[43], sJ;
|
|
29922
29916
|
};
|
|
29923
29917
|
const Sets = {
|
|
29924
29918
|
merge(...e) {
|
|
@@ -30227,7 +30221,7 @@ Database schema: ${e2}`);
|
|
|
30227
30221
|
const FilterPillEditor = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: i, editIndex: a }) => {
|
|
30228
30222
|
let o = (0, import_react.useId)(), s = (0, import_react.useId)(), c = (0, import_react.useId)(), d = e.value.type, f = e.value.operator, _ = toDraftValue(e.value), [v, y] = (0, import_react.useState)(e.columnId), [S, w] = (0, import_react.useState)(d), [E, O] = (0, import_react.useState)(f), [A, M] = (0, import_react.useState)(_), [I, z] = (0, import_react.useState)(EMPTY_NUMBER_TEXT_DRAFT), U = editableColumns(t), K = (t2) => {
|
|
30229
30223
|
t2.id === e.columnId && t2.operator === f && M(_);
|
|
30230
|
-
},
|
|
30224
|
+
}, q = (e2) => {
|
|
30231
30225
|
if (!e2) return;
|
|
30232
30226
|
let n2 = t.getColumn(e2);
|
|
30233
30227
|
if (!n2) return;
|
|
@@ -30236,20 +30230,20 @@ Database schema: ${e2}`);
|
|
|
30236
30230
|
id: e2,
|
|
30237
30231
|
operator: a2
|
|
30238
30232
|
});
|
|
30239
|
-
},
|
|
30233
|
+
}, J = (e2) => {
|
|
30240
30234
|
O(e2);
|
|
30241
30235
|
let t2 = emptyDraftFor(S, e2);
|
|
30242
30236
|
t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT), K({
|
|
30243
30237
|
id: v,
|
|
30244
30238
|
operator: e2
|
|
30245
30239
|
});
|
|
30246
|
-
},
|
|
30240
|
+
}, Q = buildFilterValue({
|
|
30247
30241
|
type: S,
|
|
30248
30242
|
operator: E,
|
|
30249
30243
|
draft: mergeNumberTextDraft(A, I)
|
|
30250
|
-
}),
|
|
30251
|
-
if (
|
|
30252
|
-
let e2 =
|
|
30244
|
+
}), $ = Q === void 0, eJ = $ ? getMissingValueMessage(S, E) : "Apply filter", tJ = () => {
|
|
30245
|
+
if (!Q) return;
|
|
30246
|
+
let e2 = Q;
|
|
30253
30247
|
t.setColumnFilters((t2) => {
|
|
30254
30248
|
if (a === void 0) return [
|
|
30255
30249
|
{
|
|
@@ -30266,20 +30260,20 @@ Database schema: ${e2}`);
|
|
|
30266
30260
|
value: e2
|
|
30267
30261
|
}, n2;
|
|
30268
30262
|
}), i();
|
|
30269
|
-
},
|
|
30263
|
+
}, nJ = () => {
|
|
30270
30264
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30271
|
-
},
|
|
30265
|
+
}, rJ = !OPERATORS_WITHOUT_VALUE.has(E), iJ = OPERATORS_BY_TYPE[S], aJ = (0, import_react.useRef)(null), oJ = (0, import_react.useRef)(null);
|
|
30272
30266
|
return (0, import_react.useEffect)(() => {
|
|
30273
30267
|
var _a2, _b;
|
|
30274
|
-
let e2 = (_a2 =
|
|
30275
|
-
e2 ? e2.focus() : (_b =
|
|
30268
|
+
let e2 = (_a2 = aJ.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30269
|
+
e2 ? e2.focus() : (_b = oJ.current) == null ? void 0 : _b.focus();
|
|
30276
30270
|
}, [
|
|
30277
30271
|
S,
|
|
30278
30272
|
E
|
|
30279
30273
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30280
30274
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30281
30275
|
onSubmit: (e2) => {
|
|
30282
|
-
e2.preventDefault(),
|
|
30276
|
+
e2.preventDefault(), tJ();
|
|
30283
30277
|
},
|
|
30284
30278
|
onKeyDownCapture: (e2) => {
|
|
30285
30279
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30296,7 +30290,7 @@ Database schema: ${e2}`);
|
|
|
30296
30290
|
(0, import_jsx_runtime.jsx)(Combobox, {
|
|
30297
30291
|
id: o,
|
|
30298
30292
|
value: v,
|
|
30299
|
-
onValueChange:
|
|
30293
|
+
onValueChange: q,
|
|
30300
30294
|
multiple: false,
|
|
30301
30295
|
placeholder: "Select column\u2026",
|
|
30302
30296
|
displayValue: (e2) => e2,
|
|
@@ -30317,16 +30311,16 @@ Database schema: ${e2}`);
|
|
|
30317
30311
|
}),
|
|
30318
30312
|
(0, import_jsx_runtime.jsxs)(Select, {
|
|
30319
30313
|
value: E,
|
|
30320
|
-
onValueChange: (e2) =>
|
|
30314
|
+
onValueChange: (e2) => J(e2),
|
|
30321
30315
|
children: [
|
|
30322
30316
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30323
|
-
ref:
|
|
30317
|
+
ref: oJ,
|
|
30324
30318
|
id: s,
|
|
30325
30319
|
className: "h-6 mb-1 bg-transparent",
|
|
30326
30320
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30327
30321
|
}),
|
|
30328
30322
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30329
|
-
children:
|
|
30323
|
+
children: iJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30330
30324
|
value: e2,
|
|
30331
30325
|
children: OPERATOR_LABELS[e2]
|
|
30332
30326
|
}, e2))
|
|
@@ -30335,8 +30329,8 @@ Database schema: ${e2}`);
|
|
|
30335
30329
|
}, S)
|
|
30336
30330
|
]
|
|
30337
30331
|
}),
|
|
30338
|
-
|
|
30339
|
-
ref:
|
|
30332
|
+
rJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30333
|
+
ref: aJ,
|
|
30340
30334
|
className: "flex flex-col gap-1",
|
|
30341
30335
|
children: [
|
|
30342
30336
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30363,14 +30357,14 @@ Database schema: ${e2}`);
|
|
|
30363
30357
|
className: "flex gap-1 mb-1",
|
|
30364
30358
|
children: [
|
|
30365
30359
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30366
|
-
content:
|
|
30360
|
+
content: eJ,
|
|
30367
30361
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30368
30362
|
className: "inline-flex",
|
|
30369
30363
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
30370
30364
|
type: "submit",
|
|
30371
30365
|
size: "icon",
|
|
30372
30366
|
variant: "ghost",
|
|
30373
|
-
disabled:
|
|
30367
|
+
disabled: $,
|
|
30374
30368
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
30375
30369
|
"aria-label": "Apply filter",
|
|
30376
30370
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -30402,7 +30396,7 @@ Database schema: ${e2}`);
|
|
|
30402
30396
|
size: "icon",
|
|
30403
30397
|
variant: "ghost",
|
|
30404
30398
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30405
|
-
onClick:
|
|
30399
|
+
onClick: nJ,
|
|
30406
30400
|
"aria-label": "Remove filter",
|
|
30407
30401
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30408
30402
|
className: "h-3.5 w-3.5",
|
|
@@ -32610,29 +32604,29 @@ Database schema: ${e2}`);
|
|
|
32610
32604
|
}, t[16] = a, t[17] = J);
|
|
32611
32605
|
let Q = useEvent_default(J), $;
|
|
32612
32606
|
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32613
|
-
let
|
|
32614
|
-
t[20] === S ? (
|
|
32607
|
+
let eJ = useEvent_default($), tJ, nJ;
|
|
32608
|
+
t[20] === S ? (tJ = t[21], nJ = t[22]) : (tJ = () => (window.addEventListener("scroll", S, {
|
|
32615
32609
|
passive: true,
|
|
32616
32610
|
capture: true
|
|
32617
32611
|
}), window.addEventListener("resize", S), () => {
|
|
32618
32612
|
window.removeEventListener("scroll", S, {
|
|
32619
32613
|
capture: true
|
|
32620
32614
|
}), window.removeEventListener("resize", S);
|
|
32621
|
-
}),
|
|
32615
|
+
}), nJ = [
|
|
32622
32616
|
S
|
|
32623
|
-
], t[20] = S, t[21] =
|
|
32624
|
-
let
|
|
32625
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32626
|
-
let
|
|
32627
|
-
return t[25] !==
|
|
32617
|
+
], t[20] = S, t[21] = tJ, t[22] = nJ), (0, import_react.useEffect)(tJ, nJ);
|
|
32618
|
+
let rJ, iJ;
|
|
32619
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rJ = () => v, iJ = [], t[23] = rJ, t[24] = iJ) : (rJ = t[23], iJ = t[24]), (0, import_react.useEffect)(rJ, iJ);
|
|
32620
|
+
let aJ;
|
|
32621
|
+
return t[25] !== eJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (aJ = {
|
|
32628
32622
|
tooltipState: o,
|
|
32629
32623
|
tooltipContentId: d,
|
|
32630
32624
|
hideTooltip: S,
|
|
32631
32625
|
handleCellMouseOver: U,
|
|
32632
32626
|
handleCellMouseLeave: q,
|
|
32633
32627
|
handleCellFocus: Q,
|
|
32634
|
-
handleCellBlur:
|
|
32635
|
-
}, t[25] =
|
|
32628
|
+
handleCellBlur: eJ
|
|
32629
|
+
}, t[25] = eJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = aJ) : aJ = t[32], aJ;
|
|
32636
32630
|
}
|
|
32637
32631
|
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
32638
32632
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
@@ -32974,14 +32968,14 @@ Database schema: ${e2}`);
|
|
|
32974
32968
|
setColumnVisibility: n
|
|
32975
32969
|
};
|
|
32976
32970
|
}
|
|
32977
|
-
function
|
|
32971
|
+
getUserColumnVisibilityCounts = function(e) {
|
|
32978
32972
|
let t = e.getAllLeafColumns().filter((e2) => e2.getCanHide()), n = t.filter((e2) => e2.getIsVisible()).length;
|
|
32979
32973
|
return {
|
|
32980
32974
|
total: t.length,
|
|
32981
32975
|
visible: n,
|
|
32982
32976
|
hidden: t.length - n
|
|
32983
32977
|
};
|
|
32984
|
-
}
|
|
32978
|
+
};
|
|
32985
32979
|
getColumnCountForDisplay = function(e, t) {
|
|
32986
32980
|
let n = getUserColumnVisibilityCounts(e);
|
|
32987
32981
|
return {
|
|
@@ -33626,7 +33620,7 @@ Database schema: ${e2}`);
|
|
|
33626
33620
|
dataType: (_a2 = e2.columnDef.meta) == null ? void 0 : _a2.dataType
|
|
33627
33621
|
}
|
|
33628
33622
|
};
|
|
33629
|
-
}), i = t.filter((e2) => !e2.getIsVisible()).map((e2) => e2.id), s = (n2) => {
|
|
33623
|
+
}), i = t.filter((e2) => !e2.getIsVisible()).map((e2) => e2.id), s = t.filter((e2) => e2.getCanHide()).map((e2) => e2.id), c = s.filter((e2) => !i.includes(e2)).length, d = (n2) => {
|
|
33630
33624
|
let i2 = new Set(Array.isArray(n2) ? n2 : []);
|
|
33631
33625
|
e.setColumnVisibility((e2) => ({
|
|
33632
33626
|
...e2,
|
|
@@ -33635,17 +33629,17 @@ Database schema: ${e2}`);
|
|
|
33635
33629
|
!i2.has(e3.id)
|
|
33636
33630
|
]))
|
|
33637
33631
|
}));
|
|
33638
|
-
},
|
|
33632
|
+
}, f = useSelectList({
|
|
33639
33633
|
options: n,
|
|
33640
33634
|
value: i,
|
|
33641
|
-
onChange:
|
|
33635
|
+
onChange: d,
|
|
33642
33636
|
multiple: true,
|
|
33643
33637
|
filterFn: smartMatchFilter,
|
|
33644
33638
|
pinSelected: true
|
|
33645
|
-
}),
|
|
33639
|
+
}), _ = f.bulkActions.filter((e2) => e2.kind === "select-matching" || e2.kind === "deselect-matching");
|
|
33646
33640
|
return (0, import_jsx_runtime.jsxs)(Popover, {
|
|
33647
|
-
open:
|
|
33648
|
-
onOpenChange:
|
|
33641
|
+
open: f.open,
|
|
33642
|
+
onOpenChange: f.setOpen,
|
|
33649
33643
|
children: [
|
|
33650
33644
|
(0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
33651
33645
|
asChild: true,
|
|
@@ -33654,7 +33648,7 @@ Database schema: ${e2}`);
|
|
|
33654
33648
|
size: "xs",
|
|
33655
33649
|
"data-testid": "column-visibility-trigger",
|
|
33656
33650
|
onMouseDown: Events.preventFocus,
|
|
33657
|
-
className: cn("print:hidden text-xs gap-1",
|
|
33651
|
+
className: cn("print:hidden text-xs gap-1", f.open ? "text-primary" : "text-muted-foreground"),
|
|
33658
33652
|
children: [
|
|
33659
33653
|
(0, import_jsx_runtime.jsx)(Columns3, {
|
|
33660
33654
|
className: "w-3.5 h-3.5"
|
|
@@ -33671,20 +33665,20 @@ Database schema: ${e2}`);
|
|
|
33671
33665
|
children: [
|
|
33672
33666
|
(0, import_jsx_runtime.jsx)(CommandInput, {
|
|
33673
33667
|
placeholder: "Search columns...",
|
|
33674
|
-
value:
|
|
33675
|
-
onValueChange:
|
|
33668
|
+
value: f.searchQuery,
|
|
33669
|
+
onValueChange: f.setSearchQuery
|
|
33676
33670
|
}),
|
|
33677
33671
|
(0, import_jsx_runtime.jsxs)(CommandList, {
|
|
33678
33672
|
children: [
|
|
33679
33673
|
(0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
33680
33674
|
children: "No results."
|
|
33681
33675
|
}),
|
|
33682
|
-
|
|
33676
|
+
f.searchQuery === "" ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
33683
33677
|
children: [
|
|
33684
33678
|
(0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
33685
33679
|
value: "__show_all__",
|
|
33686
33680
|
disabled: i.length === 0,
|
|
33687
|
-
onSelect: () =>
|
|
33681
|
+
onSelect: () => d([]),
|
|
33688
33682
|
className: "cursor-pointer",
|
|
33689
33683
|
children: [
|
|
33690
33684
|
(0, import_jsx_runtime.jsx)(Eye, {
|
|
@@ -33693,11 +33687,23 @@ Database schema: ${e2}`);
|
|
|
33693
33687
|
"Show all"
|
|
33694
33688
|
]
|
|
33695
33689
|
}),
|
|
33690
|
+
(0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
33691
|
+
value: "__hide_all__",
|
|
33692
|
+
disabled: c === 0,
|
|
33693
|
+
onSelect: () => d(s),
|
|
33694
|
+
className: "cursor-pointer",
|
|
33695
|
+
children: [
|
|
33696
|
+
(0, import_jsx_runtime.jsx)(EyeOff, {
|
|
33697
|
+
className: "w-3 h-3 mr-1.5"
|
|
33698
|
+
}),
|
|
33699
|
+
"Hide all"
|
|
33700
|
+
]
|
|
33701
|
+
}),
|
|
33696
33702
|
(0, import_jsx_runtime.jsx)(CommandSeparator, {})
|
|
33697
33703
|
]
|
|
33698
|
-
}) :
|
|
33704
|
+
}) : _.length > 0 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
33699
33705
|
children: [
|
|
33700
|
-
|
|
33706
|
+
_.map((e2) => (0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
33701
33707
|
value: `__bulk_${e2.kind}`,
|
|
33702
33708
|
onSelect: e2.run,
|
|
33703
33709
|
className: "cursor-pointer",
|
|
@@ -33716,15 +33722,15 @@ Database schema: ${e2}`);
|
|
|
33716
33722
|
(0, import_jsx_runtime.jsx)(CommandSeparator, {})
|
|
33717
33723
|
]
|
|
33718
33724
|
}),
|
|
33719
|
-
|
|
33720
|
-
let n2 =
|
|
33725
|
+
f.visibleOptions.map((e2, t2) => {
|
|
33726
|
+
let n2 = f.isChecked(e2.value), { dataType: i2 } = e2.data, o = t2 === f.pinnedCount && f.pinnedCount > 0 && f.pinnedCount < f.visibleOptions.length;
|
|
33721
33727
|
return (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
33722
33728
|
children: [
|
|
33723
33729
|
o && (0, import_jsx_runtime.jsx)(CommandSeparator, {}),
|
|
33724
33730
|
(0, import_jsx_runtime.jsxs)(CommandItem, {
|
|
33725
33731
|
value: e2.value,
|
|
33726
33732
|
disabled: e2.disabled,
|
|
33727
|
-
onSelect: () =>
|
|
33733
|
+
onSelect: () => f.toggle(e2.value),
|
|
33728
33734
|
className: "flex items-center gap-1.5 cursor-pointer",
|
|
33729
33735
|
children: [
|
|
33730
33736
|
i2 === void 0 ? (0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34058,7 +34064,7 @@ Database schema: ${e2}`);
|
|
|
34058
34064
|
filename: i2.filename
|
|
34059
34065
|
};
|
|
34060
34066
|
}, t[6] = e, t[7] = O);
|
|
34061
|
-
let A = O, M, I, z, U, K, q, J, Q, $,
|
|
34067
|
+
let A = O, M, I, z, U, K, q, J, Q, $, eJ, tJ, nJ, rJ;
|
|
34062
34068
|
if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34063
34069
|
let e2 = async (t2) => {
|
|
34064
34070
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34124,10 +34130,10 @@ Database schema: ${e2}`);
|
|
|
34124
34130
|
content: d,
|
|
34125
34131
|
open: o2,
|
|
34126
34132
|
children: h
|
|
34127
|
-
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom",
|
|
34133
|
+
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", eJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (tJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34128
34134
|
className: "text-xs text-muted-foreground",
|
|
34129
34135
|
children: "Download"
|
|
34130
|
-
}), t[36] =
|
|
34136
|
+
}), t[36] = tJ) : tJ = t[36], nJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34131
34137
|
onSelect: () => {
|
|
34132
34138
|
e2(t2.format);
|
|
34133
34139
|
},
|
|
@@ -34148,10 +34154,10 @@ Database schema: ${e2}`);
|
|
|
34148
34154
|
]
|
|
34149
34155
|
})
|
|
34150
34156
|
]
|
|
34151
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34157
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (rJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34152
34158
|
className: "text-xs text-muted-foreground",
|
|
34153
34159
|
children: "Copy to clipboard"
|
|
34154
|
-
}), t[37] = z, t[38] =
|
|
34160
|
+
}), t[37] = z, t[38] = rJ) : (z = t[37], rJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34155
34161
|
onSelect: async () => {
|
|
34156
34162
|
try {
|
|
34157
34163
|
await a(e3.format);
|
|
@@ -34180,30 +34186,30 @@ Database schema: ${e2}`);
|
|
|
34180
34186
|
]
|
|
34181
34187
|
})
|
|
34182
34188
|
]
|
|
34183
|
-
}, 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] =
|
|
34184
|
-
} 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],
|
|
34185
|
-
let
|
|
34186
|
-
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !==
|
|
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] = eJ, t[23] = tJ, t[24] = nJ, t[25] = rJ;
|
|
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], eJ = t[22], tJ = t[23], nJ = t[24], rJ = t[25];
|
|
34191
|
+
let iJ;
|
|
34192
|
+
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== eJ || t[44] !== tJ || t[45] !== nJ || t[46] !== rJ ? (iJ = (0, import_jsx_runtime.jsxs)(M, {
|
|
34187
34193
|
side: $,
|
|
34188
|
-
className:
|
|
34194
|
+
className: eJ,
|
|
34189
34195
|
children: [
|
|
34190
|
-
$q,
|
|
34191
|
-
eJ,
|
|
34192
34196
|
tJ,
|
|
34197
|
+
nJ,
|
|
34198
|
+
rJ,
|
|
34193
34199
|
z,
|
|
34194
34200
|
U
|
|
34195
34201
|
]
|
|
34196
|
-
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] =
|
|
34197
|
-
let
|
|
34198
|
-
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !==
|
|
34202
|
+
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = eJ, t[44] = tJ, t[45] = nJ, t[46] = rJ, t[47] = iJ) : iJ = t[47];
|
|
34203
|
+
let aJ;
|
|
34204
|
+
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== iJ ? (aJ = (0, import_jsx_runtime.jsxs)(I, {
|
|
34199
34205
|
modal: K,
|
|
34200
34206
|
open: q,
|
|
34201
34207
|
onOpenChange: J,
|
|
34202
34208
|
children: [
|
|
34203
34209
|
Q,
|
|
34204
|
-
|
|
34210
|
+
iJ
|
|
34205
34211
|
]
|
|
34206
|
-
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] =
|
|
34212
|
+
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = iJ, t[54] = aJ) : aJ = t[54], aJ;
|
|
34207
34213
|
};
|
|
34208
34214
|
function fetchJson(e) {
|
|
34209
34215
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34299,22 +34305,22 @@ Database schema: ${e2}`);
|
|
|
34299
34305
|
]
|
|
34300
34306
|
});
|
|
34301
34307
|
};
|
|
34302
|
-
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:
|
|
34303
|
-
let
|
|
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: eJ, showSearch: tJ = false, searchQuery: nJ, onSearchQueryChange: rJ, showFilters: iJ = false, filters: aJ, onFiltersChange: oJ, calculateTopKRows: sJ, reloading: cJ, freezeColumnsLeft: lJ, freezeColumnsRight: uJ, hiddenColumns: dJ, toggleDisplayHeader: fJ, showChartBuilder: pJ, isChartBuilderOpen: mJ, showPageSizeSelector: hJ, showTableExplorer: gJ, togglePanel: _J, isPanelOpen: vJ, isAnyPanelOpen: yJ, viewedRowIdx: bJ, onViewedRowChange: xJ, renderTableExplorerPanel: SJ }) => {
|
|
34309
|
+
let CJ = isStaticNotebook(), wJ = !CJ, [TJ, EJ] = import_react.useState(false), { locale: DJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: OJ, setColumnPinning: kJ } = useColumnPinning(lJ, uJ), { columnVisibility: AJ, setColumnVisibility: jJ } = useColumnVisibility(dJ);
|
|
34304
34310
|
import_react.useEffect(() => {
|
|
34305
34311
|
let e2;
|
|
34306
|
-
return
|
|
34307
|
-
|
|
34308
|
-
}, 300) :
|
|
34312
|
+
return cJ ? e2 = setTimeout(() => {
|
|
34313
|
+
EJ(true);
|
|
34314
|
+
}, 300) : EJ(false), () => {
|
|
34309
34315
|
e2 && clearTimeout(e2);
|
|
34310
34316
|
};
|
|
34311
34317
|
}, [
|
|
34312
|
-
|
|
34318
|
+
cJ
|
|
34313
34319
|
]);
|
|
34314
|
-
function
|
|
34320
|
+
function MJ(e2, t2) {
|
|
34315
34321
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
34316
34322
|
}
|
|
34317
|
-
let
|
|
34323
|
+
let NJ = useReactTable({
|
|
34318
34324
|
_features: [
|
|
34319
34325
|
ColumnPinning,
|
|
34320
34326
|
ColumnWrappingFeature,
|
|
@@ -34338,37 +34344,37 @@ Database schema: ${e2}`);
|
|
|
34338
34344
|
getRowId: (e2, t2) => {
|
|
34339
34345
|
let n2 = getStableRowId(e2);
|
|
34340
34346
|
if (n2) return n2;
|
|
34341
|
-
let i2 =
|
|
34347
|
+
let i2 = MJ(e2, t2);
|
|
34342
34348
|
return String(i2);
|
|
34343
34349
|
}
|
|
34344
34350
|
} : {},
|
|
34345
|
-
locale:
|
|
34351
|
+
locale: DJ,
|
|
34346
34352
|
manualPagination: q,
|
|
34347
34353
|
getPaginationRowModel: getPaginationRowModel(),
|
|
34348
34354
|
...w ? {
|
|
34349
34355
|
onSortingChange: w
|
|
34350
34356
|
} : {},
|
|
34351
34357
|
manualSorting: y,
|
|
34352
|
-
enableSorting: !
|
|
34358
|
+
enableSorting: !CJ,
|
|
34353
34359
|
enableMultiSort: true,
|
|
34354
34360
|
getSortedRowModel: getSortedRowModel(),
|
|
34355
34361
|
manualFiltering: true,
|
|
34356
|
-
enableColumnFilters:
|
|
34362
|
+
enableColumnFilters: iJ && !CJ,
|
|
34357
34363
|
getFilteredRowModel: getFilteredRowModel(),
|
|
34358
|
-
onColumnFiltersChange:
|
|
34364
|
+
onColumnFiltersChange: oJ,
|
|
34359
34365
|
onRowSelectionChange: Q,
|
|
34360
34366
|
onCellSelectionChange: $,
|
|
34361
34367
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
34362
34368
|
enableMultiCellSelection: c === "multi-cell",
|
|
34363
|
-
onColumnPinningChange:
|
|
34364
|
-
onColumnVisibilityChange:
|
|
34369
|
+
onColumnPinningChange: kJ,
|
|
34370
|
+
onColumnVisibilityChange: jJ,
|
|
34365
34371
|
enableFocusRow: true,
|
|
34366
|
-
onFocusRowChange:
|
|
34372
|
+
onFocusRowChange: xJ,
|
|
34367
34373
|
state: {
|
|
34368
34374
|
...S ? {
|
|
34369
34375
|
sorting: S
|
|
34370
34376
|
} : {},
|
|
34371
|
-
columnFilters:
|
|
34377
|
+
columnFilters: aJ,
|
|
34372
34378
|
...z ? {
|
|
34373
34379
|
pagination: z
|
|
34374
34380
|
} : J && !z ? {} : {
|
|
@@ -34379,60 +34385,60 @@ Database schema: ${e2}`);
|
|
|
34379
34385
|
},
|
|
34380
34386
|
rowSelection: E ?? {},
|
|
34381
34387
|
cellSelection: O ?? [],
|
|
34382
|
-
columnVisibility:
|
|
34388
|
+
columnVisibility: AJ,
|
|
34383
34389
|
cellStyling: A,
|
|
34384
|
-
columnPinning:
|
|
34390
|
+
columnPinning: OJ,
|
|
34385
34391
|
cellHoverTemplate: M,
|
|
34386
34392
|
cellHoverTexts: I ?? {}
|
|
34387
34393
|
}
|
|
34388
|
-
}),
|
|
34394
|
+
}), PJ = (vJ == null ? void 0 : vJ(PANEL_TYPES.ROW_VIEWER)) ?? false, FJ = !J && o.length > 100, IJ = useScrollContainerHeight({
|
|
34389
34395
|
maxHeight: n,
|
|
34390
|
-
virtualize:
|
|
34391
|
-
}), [
|
|
34396
|
+
virtualize: FJ
|
|
34397
|
+
}), [LJ, RJ] = import_react.useState(null), zJ = import_react.useMemo(() => ({
|
|
34392
34398
|
requestAddFilter: (e2) => {
|
|
34393
|
-
let t2 =
|
|
34394
|
-
t2 &&
|
|
34399
|
+
let t2 = NJ.getColumn(e2.columnId);
|
|
34400
|
+
t2 && RJ(buildEditorSnapshot(t2, {
|
|
34395
34401
|
operator: e2.operator
|
|
34396
34402
|
}));
|
|
34397
34403
|
}
|
|
34398
34404
|
}), [
|
|
34399
|
-
|
|
34400
|
-
]),
|
|
34405
|
+
NJ
|
|
34406
|
+
]), BJ = getUserColumnVisibilityCounts(NJ), VJ = BJ.total > 0 && BJ.visible === 0;
|
|
34401
34407
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
34402
|
-
value:
|
|
34408
|
+
value: zJ,
|
|
34403
34409
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34404
34410
|
className: cn(e, "flex flex-col space-y-1"),
|
|
34405
34411
|
children: [
|
|
34406
34412
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
34407
|
-
filters:
|
|
34408
|
-
table:
|
|
34409
|
-
calculateTopKRows:
|
|
34410
|
-
addFilterSnapshot:
|
|
34411
|
-
onAddFilterSnapshotChange:
|
|
34413
|
+
filters: aJ,
|
|
34414
|
+
table: NJ,
|
|
34415
|
+
calculateTopKRows: sJ,
|
|
34416
|
+
addFilterSnapshot: LJ,
|
|
34417
|
+
onAddFilterSnapshotChange: RJ
|
|
34412
34418
|
}),
|
|
34413
|
-
|
|
34419
|
+
SJ == null ? void 0 : SJ(NJ),
|
|
34414
34420
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
34415
34421
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34416
34422
|
part: "table-wrapper",
|
|
34417
34423
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
34418
34424
|
children: [
|
|
34419
|
-
|
|
34420
|
-
table:
|
|
34421
|
-
showSearch:
|
|
34422
|
-
searchQuery:
|
|
34423
|
-
onSearchQueryChange:
|
|
34424
|
-
reloading:
|
|
34425
|
-
showChartBuilder:
|
|
34426
|
-
isChartBuilderOpen:
|
|
34427
|
-
toggleDisplayHeader:
|
|
34428
|
-
showTableExplorer:
|
|
34429
|
-
togglePanel:
|
|
34430
|
-
isAnyPanelOpen:
|
|
34425
|
+
wJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
34426
|
+
table: NJ,
|
|
34427
|
+
showSearch: tJ,
|
|
34428
|
+
searchQuery: nJ,
|
|
34429
|
+
onSearchQueryChange: rJ,
|
|
34430
|
+
reloading: cJ,
|
|
34431
|
+
showChartBuilder: pJ,
|
|
34432
|
+
isChartBuilderOpen: mJ,
|
|
34433
|
+
toggleDisplayHeader: fJ,
|
|
34434
|
+
showTableExplorer: gJ,
|
|
34435
|
+
togglePanel: _J,
|
|
34436
|
+
isAnyPanelOpen: yJ,
|
|
34431
34437
|
downloadAs: K,
|
|
34432
34438
|
sizeBytes: _,
|
|
34433
34439
|
sizeBytesIsLoading: v
|
|
34434
34440
|
}),
|
|
34435
|
-
|
|
34441
|
+
VJ && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
34436
34442
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
34437
34443
|
children: [
|
|
34438
34444
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34441,26 +34447,26 @@ Database schema: ${e2}`);
|
|
|
34441
34447
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
34442
34448
|
variant: "link",
|
|
34443
34449
|
size: "xs",
|
|
34444
|
-
onClick: () =>
|
|
34450
|
+
onClick: () => NJ.resetColumnVisibility(true),
|
|
34445
34451
|
children: "Unhide all"
|
|
34446
34452
|
})
|
|
34447
34453
|
]
|
|
34448
34454
|
}),
|
|
34449
34455
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34450
34456
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
34451
|
-
ref:
|
|
34457
|
+
ref: IJ,
|
|
34452
34458
|
children: [
|
|
34453
|
-
|
|
34459
|
+
TJ && (0, import_jsx_runtime.jsx)("thead", {
|
|
34454
34460
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
34455
34461
|
}),
|
|
34456
|
-
renderTableHeader(
|
|
34462
|
+
renderTableHeader(NJ, FJ || !!n),
|
|
34457
34463
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
34458
|
-
table:
|
|
34464
|
+
table: NJ,
|
|
34459
34465
|
columns: i,
|
|
34460
|
-
rowViewerPanelOpen:
|
|
34461
|
-
getRowIndex:
|
|
34462
|
-
viewedRowIdx:
|
|
34463
|
-
virtualize:
|
|
34466
|
+
rowViewerPanelOpen: PJ,
|
|
34467
|
+
getRowIndex: MJ,
|
|
34468
|
+
viewedRowIdx: bJ,
|
|
34469
|
+
virtualize: FJ
|
|
34464
34470
|
})
|
|
34465
34471
|
]
|
|
34466
34472
|
}),
|
|
@@ -34471,10 +34477,10 @@ Database schema: ${e2}`);
|
|
|
34471
34477
|
pagination: J,
|
|
34472
34478
|
selection: c,
|
|
34473
34479
|
onRowSelectionChange: Q,
|
|
34474
|
-
table:
|
|
34475
|
-
getRowIds:
|
|
34476
|
-
showPageSizeSelector:
|
|
34477
|
-
tableLoading:
|
|
34480
|
+
table: NJ,
|
|
34481
|
+
getRowIds: eJ,
|
|
34482
|
+
showPageSizeSelector: hJ,
|
|
34483
|
+
tableLoading: cJ
|
|
34478
34484
|
})
|
|
34479
34485
|
]
|
|
34480
34486
|
})
|
|
@@ -34557,62 +34563,62 @@ Database schema: ${e2}`);
|
|
|
34557
34563
|
t[4] === i ? v = t[5] : (v = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = v);
|
|
34558
34564
|
let y = v, w;
|
|
34559
34565
|
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];
|
|
34560
|
-
let
|
|
34561
|
-
t[9] !== f || t[10] !== n ? (
|
|
34562
|
-
let
|
|
34563
|
-
t[12] !== d || t[13] !== n ? (
|
|
34566
|
+
let A = w, M;
|
|
34567
|
+
t[9] !== f || t[10] !== n ? (M = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = M) : M = t[11];
|
|
34568
|
+
let I = M, z = !isStaticNotebook(), [U, K] = (0, import_react.useState)(true), q;
|
|
34569
|
+
t[12] !== d || t[13] !== n ? (q = (e2) => {
|
|
34564
34570
|
n == null ? void 0 : n({
|
|
34565
34571
|
prompt: `My code gives the following error:
|
|
34566
34572
|
|
|
34567
34573
|
${d}`,
|
|
34568
34574
|
triggerImmediately: e2
|
|
34569
34575
|
});
|
|
34570
|
-
}, t[12] = d, t[13] = n, t[14] =
|
|
34571
|
-
let
|
|
34572
|
-
t[15] !== a || t[16] !== d || t[17] !== _ ? (
|
|
34576
|
+
}, t[12] = d, t[13] = n, t[14] = q) : q = t[14];
|
|
34577
|
+
let J = q, Q;
|
|
34578
|
+
t[15] !== a || t[16] !== d || t[17] !== _ ? (Q = () => {
|
|
34573
34579
|
_({
|
|
34574
|
-
prompt:
|
|
34580
|
+
prompt: buildFixInChatPrompt(a, d)
|
|
34575
34581
|
});
|
|
34576
|
-
}, t[15] = a, t[16] = d, t[17] = _, t[18] =
|
|
34577
|
-
let
|
|
34578
|
-
t[19] ===
|
|
34579
|
-
let
|
|
34580
|
-
t[21] ===
|
|
34582
|
+
}, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
|
|
34583
|
+
let tJ = Q, nJ;
|
|
34584
|
+
t[19] === U ? nJ = t[20] : (nJ = () => K(!U), t[19] = U, t[20] = nJ);
|
|
34585
|
+
let rJ = U ? "Collapse traceback" : "Expand traceback", iJ;
|
|
34586
|
+
t[21] === U ? iJ = t[22] : (iJ = U ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34581
34587
|
className: "h-3 w-3"
|
|
34582
34588
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34583
34589
|
className: "h-3 w-3"
|
|
34584
|
-
}), t[21] =
|
|
34585
|
-
let
|
|
34586
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34590
|
+
}), t[21] = U, t[22] = iJ);
|
|
34591
|
+
let aJ;
|
|
34592
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (aJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34587
34593
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34588
34594
|
children: "Traceback"
|
|
34589
|
-
}), t[23] =
|
|
34590
|
-
let
|
|
34591
|
-
t[24] !==
|
|
34595
|
+
}), t[23] = aJ) : aJ = t[23];
|
|
34596
|
+
let oJ;
|
|
34597
|
+
t[24] !== U || t[25] !== iJ || t[26] !== nJ || t[27] !== rJ ? (oJ = (0, import_jsx_runtime.jsxs)("button", {
|
|
34592
34598
|
type: "button",
|
|
34593
|
-
onClick:
|
|
34594
|
-
"aria-expanded":
|
|
34595
|
-
"aria-label":
|
|
34599
|
+
onClick: nJ,
|
|
34600
|
+
"aria-expanded": U,
|
|
34601
|
+
"aria-label": rJ,
|
|
34596
34602
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34597
34603
|
children: [
|
|
34598
|
-
|
|
34599
|
-
|
|
34604
|
+
iJ,
|
|
34605
|
+
aJ
|
|
34600
34606
|
]
|
|
34601
|
-
}), t[24] =
|
|
34602
|
-
let
|
|
34603
|
-
t[29] !== s || t[30] !==
|
|
34607
|
+
}), t[24] = U, t[25] = iJ, t[26] = nJ, t[27] = rJ, t[28] = oJ) : oJ = t[28];
|
|
34608
|
+
let sJ;
|
|
34609
|
+
t[29] !== s || t[30] !== U ? (sJ = U && (0, import_jsx_runtime.jsx)("div", {
|
|
34604
34610
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34605
34611
|
children: s
|
|
34606
|
-
}), t[29] = s, t[30] =
|
|
34607
|
-
let
|
|
34608
|
-
t[32] !==
|
|
34612
|
+
}), t[29] = s, t[30] = U, t[31] = sJ) : sJ = t[31];
|
|
34613
|
+
let cJ;
|
|
34614
|
+
t[32] !== J || t[33] !== tJ || t[34] !== I ? (cJ = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34609
34615
|
tooltip: "Fix with AI",
|
|
34610
|
-
openPrompt: () =>
|
|
34611
|
-
applyAutofix: () =>
|
|
34612
|
-
openChat:
|
|
34613
|
-
}), t[32] =
|
|
34614
|
-
let
|
|
34615
|
-
t[36] !==
|
|
34616
|
+
openPrompt: () => J(false),
|
|
34617
|
+
applyAutofix: () => J(true),
|
|
34618
|
+
openChat: tJ
|
|
34619
|
+
}), t[32] = J, t[33] = tJ, t[34] = I, t[35] = cJ) : cJ = t[35];
|
|
34620
|
+
let lJ;
|
|
34621
|
+
t[36] !== A || t[37] !== y ? (lJ = A && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34616
34622
|
content: "Attach pdb to the exception point.",
|
|
34617
34623
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34618
34624
|
size: "xs",
|
|
@@ -34629,9 +34635,9 @@ ${d}`,
|
|
|
34629
34635
|
"Launch debugger"
|
|
34630
34636
|
]
|
|
34631
34637
|
})
|
|
34632
|
-
}), t[36] =
|
|
34633
|
-
let
|
|
34634
|
-
t[39] !== d || t[40] !== i ? (
|
|
34638
|
+
}), t[36] = A, t[37] = y, t[38] = lJ) : lJ = t[38];
|
|
34639
|
+
let uJ;
|
|
34640
|
+
t[39] !== d || t[40] !== i ? (uJ = z && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34635
34641
|
children: [
|
|
34636
34642
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34637
34643
|
asChild: true,
|
|
@@ -34699,25 +34705,25 @@ ${d}`,
|
|
|
34699
34705
|
]
|
|
34700
34706
|
})
|
|
34701
34707
|
]
|
|
34702
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34703
|
-
let
|
|
34704
|
-
t[42] !==
|
|
34708
|
+
}), t[39] = d, t[40] = i, t[41] = uJ) : uJ = t[41];
|
|
34709
|
+
let dJ;
|
|
34710
|
+
t[42] !== cJ || t[43] !== lJ || t[44] !== uJ ? (dJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34705
34711
|
className: "flex gap-2",
|
|
34706
34712
|
children: [
|
|
34707
|
-
|
|
34708
|
-
|
|
34709
|
-
|
|
34713
|
+
cJ,
|
|
34714
|
+
lJ,
|
|
34715
|
+
uJ
|
|
34710
34716
|
]
|
|
34711
|
-
}), t[42] =
|
|
34712
|
-
let
|
|
34713
|
-
return t[46] !==
|
|
34717
|
+
}), t[42] = cJ, t[43] = lJ, t[44] = uJ, t[45] = dJ) : dJ = t[45];
|
|
34718
|
+
let fJ;
|
|
34719
|
+
return t[46] !== oJ || t[47] !== sJ || t[48] !== dJ ? (fJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34714
34720
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34715
34721
|
children: [
|
|
34716
|
-
|
|
34717
|
-
|
|
34718
|
-
|
|
34722
|
+
oJ,
|
|
34723
|
+
sJ,
|
|
34724
|
+
dJ
|
|
34719
34725
|
]
|
|
34720
|
-
}), t[46] =
|
|
34726
|
+
}), t[46] = oJ, t[47] = sJ, t[48] = dJ, t[49] = fJ) : fJ = t[49], fJ;
|
|
34721
34727
|
};
|
|
34722
34728
|
function lastLine(e) {
|
|
34723
34729
|
var _a2, _b;
|
|
@@ -34727,7 +34733,7 @@ ${d}`,
|
|
|
34727
34733
|
const replaceTracebackFilenames = (e) => {
|
|
34728
34734
|
let t = getTracebackInfo(e);
|
|
34729
34735
|
if ((t == null ? void 0 : t.kind) === "cell") {
|
|
34730
|
-
let e2 = (0, import_jsx_runtime.jsx)(InsertBreakpointContent, {});
|
|
34736
|
+
let e2 = getFeatureFlag("debugger"), n = e2 ? (0, import_jsx_runtime.jsx)(ToggleBreakpointContent, {}) : (0, import_jsx_runtime.jsx)(InsertBreakpointContent, {});
|
|
34731
34737
|
return (0, import_jsx_runtime.jsx)("span", {
|
|
34732
34738
|
className: "nb",
|
|
34733
34739
|
children: (0, import_jsx_runtime.jsxs)("span", {
|
|
@@ -34738,14 +34744,18 @@ ${d}`,
|
|
|
34738
34744
|
lineNumber: t.lineNumber
|
|
34739
34745
|
}),
|
|
34740
34746
|
!isWasm() && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34741
|
-
content:
|
|
34747
|
+
content: n,
|
|
34742
34748
|
children: (0, import_jsx_runtime.jsx)("button", {
|
|
34743
34749
|
type: "button",
|
|
34744
34750
|
className: "ml-1 p-1 rounded-sm hover:bg-muted transition-all inline",
|
|
34745
34751
|
children: (0, import_jsx_runtime.jsx)(BugPlay, {
|
|
34746
34752
|
onClick: () => {
|
|
34747
|
-
|
|
34748
|
-
|
|
34753
|
+
if (e2 && !isStaticNotebook()) {
|
|
34754
|
+
toggleBreakpoint(t.cellId, t.lineNumber);
|
|
34755
|
+
return;
|
|
34756
|
+
}
|
|
34757
|
+
let n2 = getCellEditorView(t.cellId);
|
|
34758
|
+
n2 && insertDebuggerAtLine(n2, t.lineNumber);
|
|
34749
34759
|
},
|
|
34750
34760
|
className: "h-3 w-3"
|
|
34751
34761
|
})
|
|
@@ -34794,6 +34804,11 @@ ${d}`,
|
|
|
34794
34804
|
" at this line"
|
|
34795
34805
|
]
|
|
34796
34806
|
}), e[0] = t) : t = e[0], t;
|
|
34807
|
+
}, ToggleBreakpointContent = () => {
|
|
34808
|
+
let e = (0, import_compiler_runtime$7.c)(1), t;
|
|
34809
|
+
return e[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (t = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
34810
|
+
children: "Toggle a breakpoint at this line"
|
|
34811
|
+
}), e[0] = t) : t = e[0], t;
|
|
34797
34812
|
};
|
|
34798
34813
|
function renderMimeIcon(e) {
|
|
34799
34814
|
switch (e) {
|
|
@@ -35746,17 +35761,17 @@ ${d}`,
|
|
|
35746
35761
|
Switch.displayName = Root$1.displayName;
|
|
35747
35762
|
var import_compiler_runtime$2 = require_compiler_runtime();
|
|
35748
35763
|
Slide = (0, import_react.memo)((e) => {
|
|
35749
|
-
let t = (0, import_compiler_runtime$2.c)(
|
|
35750
|
-
t[0] === a ?
|
|
35751
|
-
let
|
|
35752
|
-
return t[2] !== i || t[3] !==
|
|
35764
|
+
let t = (0, import_compiler_runtime$2.c)(7), { output: n, cellId: i, status: a, stale: o } = e, s;
|
|
35765
|
+
t[0] === a ? s = t[1] : (s = outputIsLoading(a), t[0] = a, t[1] = s);
|
|
35766
|
+
let c = s, d;
|
|
35767
|
+
return t[2] !== i || t[3] !== c || t[4] !== n || t[5] !== o ? (d = (0, import_jsx_runtime.jsx)(OutputArea, {
|
|
35753
35768
|
className: "contents",
|
|
35754
35769
|
allowExpand: false,
|
|
35755
35770
|
output: n,
|
|
35756
35771
|
cellId: i,
|
|
35757
|
-
stale:
|
|
35758
|
-
loading:
|
|
35759
|
-
}), t[2] = i, t[3] =
|
|
35772
|
+
stale: o,
|
|
35773
|
+
loading: c
|
|
35774
|
+
}), t[2] = i, t[3] = c, t[4] = n, t[5] = o, t[6] = d) : d = t[6], d;
|
|
35760
35775
|
});
|
|
35761
35776
|
Slide.displayName = "Slide";
|
|
35762
35777
|
var import_compiler_runtime$1 = require_compiler_runtime();
|
|
@@ -36194,7 +36209,7 @@ ${d}`,
|
|
|
36194
36209
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36195
36210
|
}
|
|
36196
36211
|
}
|
|
36197
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.
|
|
36212
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.15-dev0");
|
|
36198
36213
|
showCodeInRunModeAtom = atom(true);
|
|
36199
36214
|
atom(null);
|
|
36200
36215
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -36222,128 +36237,129 @@ ${d}`,
|
|
|
36222
36237
|
}
|
|
36223
36238
|
});
|
|
36224
36239
|
export {
|
|
36225
|
-
|
|
36226
|
-
|
|
36240
|
+
PANEL_TYPES as $,
|
|
36241
|
+
hasFunctionProperty as $t,
|
|
36227
36242
|
prettifyRowCount as A,
|
|
36228
|
-
|
|
36229
|
-
|
|
36230
|
-
|
|
36243
|
+
INDEX_COLUMN_NAME as At,
|
|
36244
|
+
CompactChipRow as B,
|
|
36245
|
+
Tabs as Bt,
|
|
36231
36246
|
downloadSizeLimitAtom as C,
|
|
36232
|
-
|
|
36247
|
+
ColumnChartSpecModel as Ct,
|
|
36233
36248
|
ErrorState as D,
|
|
36234
|
-
|
|
36249
|
+
getPageIndexForRow as Dt,
|
|
36235
36250
|
EmptyState as E,
|
|
36236
|
-
|
|
36237
|
-
|
|
36238
|
-
|
|
36239
|
-
|
|
36240
|
-
|
|
36241
|
-
|
|
36242
|
-
|
|
36243
|
-
|
|
36244
|
-
|
|
36245
|
-
|
|
36246
|
-
|
|
36247
|
-
|
|
36248
|
-
|
|
36249
|
-
|
|
36250
|
-
|
|
36251
|
-
|
|
36252
|
-
|
|
36253
|
-
|
|
36254
|
-
|
|
36251
|
+
usePrevious as Et,
|
|
36252
|
+
ContextMenuItem as F,
|
|
36253
|
+
isNullishFilter as Ft,
|
|
36254
|
+
Command as G,
|
|
36255
|
+
ChartInfoState as Gt,
|
|
36256
|
+
DateRangePicker as H,
|
|
36257
|
+
TabsList as Ht,
|
|
36258
|
+
ContextMenuSeparator as I,
|
|
36259
|
+
Maps as It,
|
|
36260
|
+
CommandItem as J,
|
|
36261
|
+
useOverflowDetection as Jt,
|
|
36262
|
+
CommandEmpty as K,
|
|
36263
|
+
ChartLoadingState as Kt,
|
|
36264
|
+
ContextMenuTrigger as L,
|
|
36265
|
+
dateToLocalISODate as Lt,
|
|
36266
|
+
getUserColumnVisibilityCounts as M,
|
|
36267
|
+
TOO_MANY_ROWS as Mt,
|
|
36268
|
+
ContextMenu as N,
|
|
36269
|
+
toFieldTypes as Nt,
|
|
36255
36270
|
LoadingState as O,
|
|
36256
|
-
|
|
36257
|
-
|
|
36258
|
-
|
|
36259
|
-
|
|
36260
|
-
|
|
36261
|
-
|
|
36262
|
-
|
|
36271
|
+
loadTableAndRawData as Ot,
|
|
36272
|
+
ContextMenuContent as P,
|
|
36273
|
+
getMimeValues as Pt,
|
|
36274
|
+
ContextAwarePanelItem as Q,
|
|
36275
|
+
EmotionCacheProvider as Qt,
|
|
36276
|
+
useInternalStateWithSync as R,
|
|
36277
|
+
dateToLocalISODateTime as Rt,
|
|
36263
36278
|
Filenames as S,
|
|
36264
|
-
|
|
36279
|
+
ColumnChartContext as St,
|
|
36265
36280
|
ColumnPreviewContainer as T,
|
|
36266
|
-
|
|
36267
|
-
|
|
36268
|
-
|
|
36269
|
-
|
|
36270
|
-
|
|
36271
|
-
|
|
36272
|
-
|
|
36273
|
-
|
|
36274
|
-
|
|
36275
|
-
|
|
36276
|
-
|
|
36277
|
-
|
|
36278
|
-
|
|
36281
|
+
useIntersectionObserver as Tt,
|
|
36282
|
+
Combobox as U,
|
|
36283
|
+
TabsTrigger as Ut,
|
|
36284
|
+
DatePicker as V,
|
|
36285
|
+
TabsContent as Vt,
|
|
36286
|
+
ComboboxItem as W,
|
|
36287
|
+
ChartErrorState as Wt,
|
|
36288
|
+
CommandSeparator as X,
|
|
36289
|
+
Kbd as Xt,
|
|
36290
|
+
CommandList as Y,
|
|
36291
|
+
RenderTextWithLinks as Yt,
|
|
36292
|
+
smartMatch as Z,
|
|
36293
|
+
HtmlOutput as Zt,
|
|
36279
36294
|
ADD_PRINTING_CLASS as _,
|
|
36280
36295
|
__tla,
|
|
36281
|
-
|
|
36296
|
+
TableRow as _t,
|
|
36282
36297
|
DEFAULT_SLIDE_TYPE as a,
|
|
36283
|
-
|
|
36284
|
-
|
|
36298
|
+
Funnel as an,
|
|
36299
|
+
slotsController as at,
|
|
36285
36300
|
downloadHTMLAsImage as b,
|
|
36286
|
-
|
|
36301
|
+
inferFieldTypes as bt,
|
|
36287
36302
|
Slide as c,
|
|
36288
|
-
|
|
36289
|
-
|
|
36303
|
+
Ellipsis as cn,
|
|
36304
|
+
PanelGroup as ct,
|
|
36290
36305
|
RadioGroupItem as d,
|
|
36291
|
-
|
|
36292
|
-
|
|
36293
|
-
|
|
36294
|
-
|
|
36306
|
+
ChevronsUpDown as dn,
|
|
36307
|
+
Provider$1 as dt,
|
|
36308
|
+
isRecord as en,
|
|
36309
|
+
contextAwarePanelOpen as et,
|
|
36295
36310
|
JsonOutput as f,
|
|
36296
|
-
|
|
36297
|
-
|
|
36311
|
+
ChevronsRight as fn,
|
|
36312
|
+
Table as ft,
|
|
36298
36313
|
InstallPackageButton as g,
|
|
36299
|
-
|
|
36314
|
+
ArrowDownWideNarrow as gn,
|
|
36315
|
+
TableHeader as gt,
|
|
36300
36316
|
DataTable as h,
|
|
36301
|
-
|
|
36302
|
-
|
|
36317
|
+
ChevronLeft as hn,
|
|
36318
|
+
TableHead as ht,
|
|
36303
36319
|
DEFAULT_DECK_TRANSITION as i,
|
|
36304
|
-
|
|
36305
|
-
|
|
36320
|
+
GripHorizontal as in,
|
|
36321
|
+
SlotNames as it,
|
|
36306
36322
|
getColumnCountForDisplay as j,
|
|
36307
|
-
|
|
36323
|
+
SELECT_COLUMN_ID as jt,
|
|
36308
36324
|
prettifyRowColumnCount as k,
|
|
36309
|
-
|
|
36325
|
+
loadTableData as kt,
|
|
36310
36326
|
Switch as l,
|
|
36311
|
-
|
|
36312
|
-
|
|
36327
|
+
Download as ln,
|
|
36328
|
+
PanelResizeHandle as lt,
|
|
36313
36329
|
OutputRenderer as m,
|
|
36314
|
-
|
|
36315
|
-
|
|
36330
|
+
ChevronsDownUp as mn,
|
|
36331
|
+
TableCell as mt,
|
|
36316
36332
|
marimoVersionAtom as n,
|
|
36317
|
-
|
|
36318
|
-
|
|
36333
|
+
$fae977aafc393c5c$export$6b862160d295c8e as nn,
|
|
36334
|
+
contextAwarePanelType as nt,
|
|
36319
36335
|
SLIDE_TYPE_OPTIONS_BY_VALUE as o,
|
|
36320
|
-
|
|
36321
|
-
|
|
36336
|
+
EyeOff as on,
|
|
36337
|
+
Toggle as ot,
|
|
36322
36338
|
OutputArea as p,
|
|
36323
|
-
|
|
36324
|
-
|
|
36325
|
-
|
|
36326
|
-
|
|
36339
|
+
ChevronsLeft as pn,
|
|
36340
|
+
TableBody as pt,
|
|
36341
|
+
CommandInput as q,
|
|
36342
|
+
LazyVegaEmbed as qt,
|
|
36327
36343
|
showCodeInRunModeAtom as r,
|
|
36328
|
-
|
|
36329
|
-
|
|
36344
|
+
TextWrap as rn,
|
|
36345
|
+
isCellAwareAtom as rt,
|
|
36330
36346
|
SlideSidebar as s,
|
|
36331
|
-
|
|
36332
|
-
|
|
36347
|
+
Expand as sn,
|
|
36348
|
+
Panel as st,
|
|
36333
36349
|
useNotebookCodeAvailable as t,
|
|
36334
|
-
$fae977aafc393c5c$export$
|
|
36335
|
-
|
|
36350
|
+
$fae977aafc393c5c$export$588937bcd60ade55 as tn,
|
|
36351
|
+
contextAwarePanelOwner as tt,
|
|
36336
36352
|
RadioGroup as u,
|
|
36337
|
-
|
|
36338
|
-
|
|
36353
|
+
Code as un,
|
|
36354
|
+
Fill as ut,
|
|
36339
36355
|
downloadBlob as v,
|
|
36340
|
-
|
|
36356
|
+
NAMELESS_COLUMN_PREFIX as vt,
|
|
36341
36357
|
ColumnName as w,
|
|
36342
|
-
|
|
36358
|
+
DelayMount as wt,
|
|
36343
36359
|
Progress as x,
|
|
36344
|
-
|
|
36360
|
+
renderCellValue as xt,
|
|
36345
36361
|
downloadByURL as y,
|
|
36346
|
-
|
|
36347
|
-
|
|
36348
|
-
|
|
36362
|
+
generateColumns as yt,
|
|
36363
|
+
useSelectList as z,
|
|
36364
|
+
dateToLocalISOTime as zt
|
|
36349
36365
|
};
|