@marimo-team/islands 0.23.16-dev9 → 0.23.17-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/{chat-ui-JeekqoMH.js → chat-ui-DsZJj75A.js} +3104 -3107
- package/dist/{code-visibility-DveLKNtj.js → common-CotPLtrU.js} +1068 -1036
- package/dist/{formats-CO8cn5_K.js → formats-Dwq1THhr.js} +1 -1
- package/dist/{html-to-image-Bif4utQZ.js → html-to-image-CZ1kLKkq.js} +7336 -6342
- package/dist/main.js +211 -147
- package/dist/{node-sql-parser-DLl_zNw0.js → node-sql-parser-v1Vi-Fft.js} +16867 -16665
- package/dist/{process-output-TAzy-GUk.js → process-output-bVfbcx5_.js} +30 -26
- package/dist/{reveal-component-DxV4Ppa2.js → reveal-component-IoHipy82.js} +634 -626
- package/dist/style.css +1 -1
- package/dist/toDate-CqhBWjvO.js +713 -0
- package/dist/{vega-component-DphdxaJ_.js → vega-component-C7nO5zcf.js} +2 -2
- package/package.json +3 -4
- package/src/__mocks__/requests.ts +56 -4
- package/src/components/data-table/__tests__/__snapshots__/chart-spec-model.test.ts.snap +174 -21
- package/src/components/data-table/__tests__/chart-spec-model.test.ts +102 -1
- package/src/components/data-table/__tests__/columns.test.tsx +9 -1
- package/src/components/data-table/column-summary/chart-spec-model.tsx +163 -103
- package/src/components/data-table/column-summary/legacy-chart-spec.ts +15 -7
- package/src/components/data-table/column-summary/utils.ts +26 -7
- package/src/components/data-table/columns.tsx +11 -1
- package/src/components/data-table/types.ts +1 -1
- package/src/components/editor/__tests__/viewer-banner.test.tsx +14 -0
- package/src/components/editor/actions/__tests__/pair-with-agent-commands.test.ts +99 -18
- package/src/components/editor/actions/__tests__/pdf-export.test.ts +32 -13
- package/src/components/editor/actions/pair-with-agent-commands.ts +21 -10
- package/src/components/editor/actions/pair-with-agent-modal.tsx +2 -2
- package/src/components/editor/actions/pdf-export.ts +11 -14
- package/src/components/editor/actions/useNotebookActions.tsx +28 -19
- package/src/components/editor/cell/code/__tests__/cell-editor-activity-lifecycle.test.ts +250 -0
- package/src/components/editor/cell/code/cell-editor.tsx +13 -7
- package/src/components/editor/chrome/__tests__/state.test.ts +7 -1
- package/src/components/editor/chrome/panels/__tests__/logs-panel.test.tsx +25 -0
- package/src/components/editor/chrome/panels/__tests__/panel-accordion-state.test.ts +42 -0
- package/src/components/editor/chrome/panels/file-explorer-panel.tsx +6 -17
- package/src/components/editor/chrome/panels/logs-panel.tsx +12 -2
- package/src/components/editor/chrome/panels/panel-accordion-state.ts +51 -0
- package/src/components/editor/chrome/panels/session-panel.tsx +5 -16
- package/src/components/editor/chrome/panels/write-secret-modal.tsx +40 -12
- package/src/components/editor/chrome/state.ts +10 -0
- package/src/components/editor/connections/__tests__/json-credentials.test.ts +114 -0
- package/src/components/editor/connections/__tests__/paths.test.ts +39 -0
- package/src/components/editor/connections/__tests__/quick-add-data-sources.test.tsx +113 -0
- package/src/components/editor/connections/add-connection-dialog.tsx +2 -0
- package/src/components/editor/connections/components.tsx +6 -2
- package/src/components/editor/connections/database/__tests__/__snapshots__/as-code.test.ts.snap +27 -5
- package/src/components/editor/connections/database/__tests__/as-code.test.ts +33 -0
- package/src/components/editor/connections/database/as-code.ts +37 -13
- package/src/components/editor/connections/database/schemas.ts +6 -5
- package/src/components/editor/connections/form-renderers.tsx +99 -1
- package/src/components/editor/connections/json-credentials.ts +57 -0
- package/src/components/editor/connections/paths.ts +21 -0
- package/src/components/editor/connections/quick-add-data-sources.tsx +106 -0
- package/src/components/editor/connections/secret-combobox.tsx +41 -20
- package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +88 -2
- package/src/components/editor/connections/storage/__tests__/as-code.test.ts +128 -8
- package/src/components/editor/connections/storage/as-code.ts +79 -36
- package/src/components/editor/connections/storage/schemas.ts +85 -44
- package/src/components/editor/file-tree/__tests__/renderers.test.ts +31 -0
- package/src/components/editor/file-tree/file-viewer.tsx +11 -7
- package/src/components/editor/file-tree/renderers.tsx +21 -0
- package/src/components/editor/renderers/vertical-layout/vertical-layout.tsx +2 -2
- package/src/components/editor/viewer-banner.tsx +6 -1
- package/src/components/forms/form.tsx +59 -24
- package/src/components/forms/options.ts +2 -1
- package/src/components/slides/__tests__/cell-output-block.test.tsx +40 -0
- package/src/components/slides/__tests__/slide-cell-view.test.tsx +33 -0
- package/src/components/slides/reveal-component.tsx +22 -17
- package/src/components/slides/slide-cell-view.tsx +1 -1
- package/src/components/slides/slides.css +4 -2
- package/src/components/static-html/share-modal.tsx +1 -1
- package/src/core/ai/context/providers/file.ts +8 -29
- package/src/core/cells/__tests__/cells.test.ts +12 -2
- package/src/core/cells/__tests__/logs.test.ts +5 -5
- package/src/core/cells/cells.ts +17 -4
- package/src/core/cells/document-changes.ts +1 -0
- package/src/core/cells/logs.ts +14 -4
- package/src/core/codemirror/cm.ts +3 -0
- package/src/core/codemirror/code-lens/__tests__/actions.test.ts +68 -0
- package/src/core/codemirror/code-lens/__tests__/analyzer.test.ts +224 -0
- package/src/core/codemirror/code-lens/__tests__/entities.test.ts +175 -0
- package/src/core/codemirror/code-lens/__tests__/extension.test.ts +325 -0
- package/src/core/codemirror/code-lens/__tests__/perf.test.ts +121 -0
- package/src/core/codemirror/code-lens/__tests__/popover.test.ts +93 -0
- package/src/core/codemirror/code-lens/actions.ts +33 -0
- package/src/core/codemirror/code-lens/analyzer.ts +284 -0
- package/src/core/codemirror/code-lens/entities.ts +123 -0
- package/src/core/codemirror/code-lens/extension.ts +298 -0
- package/src/core/codemirror/code-lens/icons.ts +36 -0
- package/src/core/codemirror/code-lens/popover.tsx +240 -0
- package/src/core/codemirror/copilot/__tests__/language-server.test.ts +396 -100
- package/src/core/codemirror/copilot/__tests__/transport.test.ts +128 -540
- package/src/core/codemirror/copilot/language-server.ts +182 -70
- package/src/core/codemirror/copilot/transport.ts +15 -207
- package/src/core/codemirror/copilot/types.ts +9 -2
- package/src/core/codemirror/find-replace/__tests__/navigate.test.ts +42 -30
- package/src/core/codemirror/find-replace/navigate.ts +2 -0
- package/src/core/codemirror/go-to-definition/__tests__/commands.test.ts +24 -3
- package/src/core/codemirror/go-to-definition/commands.ts +93 -90
- package/src/core/codemirror/language/__tests__/sql.test.ts +627 -61
- package/src/core/codemirror/language/languages/python.ts +23 -11
- package/src/core/codemirror/language/languages/sql/completion-store.ts +5 -1
- package/src/core/codemirror/language/languages/sql/renderers.tsx +3 -3
- package/src/core/codemirror/language/languages/sql/sql.ts +251 -16
- package/src/core/codemirror/lsp/__tests__/federated-lsp.test.ts +161 -0
- package/src/core/codemirror/lsp/__tests__/log-messages.test.ts +53 -0
- package/src/core/codemirror/lsp/__tests__/normalize-markdown-math.test.ts +25 -0
- package/src/core/codemirror/lsp/__tests__/notebook-lsp.test.ts +598 -156
- package/src/core/codemirror/lsp/__tests__/transports.test.ts +112 -0
- package/src/core/codemirror/lsp/federated-lsp.ts +76 -23
- package/src/core/codemirror/lsp/log-messages.ts +37 -0
- package/src/core/codemirror/lsp/normalize-markdown-math.ts +8 -4
- package/src/core/codemirror/lsp/notebook-lsp.ts +220 -56
- package/src/core/codemirror/lsp/transports.ts +8 -1
- package/src/core/codemirror/lsp/types.ts +68 -8
- package/src/core/codemirror/lsp/utils.ts +14 -0
- package/src/core/codemirror/python-node-names.ts +90 -0
- package/src/core/codemirror/reactive-references/analyzer.ts +52 -57
- package/src/core/codemirror/utils.ts +28 -0
- package/src/core/config/feature-flag.tsx +3 -1
- package/src/core/datasets/data-source-discovery.ts +5 -0
- package/src/core/datasets/request-registry.ts +11 -0
- package/src/core/edit-app.tsx +1 -2
- package/src/core/export/__tests__/hooks.test.ts +2 -4
- package/src/core/export/hooks.ts +4 -3
- package/src/core/islands/__tests__/bridge.test.ts +107 -0
- package/src/core/islands/bootstrap.ts +1 -0
- package/src/core/islands/bridge.ts +18 -0
- package/src/core/kernel/messages.ts +2 -0
- package/src/core/lsp/__tests__/transport.test.ts +509 -337
- package/src/core/lsp/transport.ts +304 -132
- package/src/core/mode.ts +10 -0
- package/src/core/network/__tests__/api.test.ts +42 -0
- package/src/core/network/__tests__/connection.test.ts +45 -0
- package/src/core/network/__tests__/requests-lazy.test.ts +47 -1
- package/src/core/network/__tests__/requests-network.test.ts +48 -0
- package/src/core/network/api.ts +27 -0
- package/src/core/network/connection.ts +15 -0
- package/src/core/network/requests-lazy.ts +3 -0
- package/src/core/network/requests-network.ts +31 -8
- package/src/core/network/requests-static.ts +3 -0
- package/src/core/network/requests-toasting.tsx +3 -0
- package/src/core/network/types.ts +27 -6
- package/src/core/rtc/state.ts +9 -0
- package/src/core/static/download-html.ts +5 -14
- package/src/core/wasm/__tests__/bridge.test.ts +99 -5
- package/src/core/wasm/bridge.ts +42 -9
- package/src/core/wasm/worker/types.ts +10 -3
- package/src/core/wasm/worker/worker.ts +7 -8
- package/src/core/websocket/useMarimoKernelConnection.tsx +4 -0
- package/src/css/app/codemirror.css +16 -2
- package/src/hooks/__tests__/useDataSourceDiscovery.test.ts +80 -0
- package/src/hooks/useDataSourceDiscovery.ts +18 -0
- package/src/plugins/impl/DataTablePlugin.tsx +4 -1
- package/src/plugins/impl/__tests__/DataTablePlugin.test.tsx +158 -0
- package/src/plugins/impl/anywidget/__tests__/model.test.ts +55 -0
- package/src/plugins/impl/anywidget/model.ts +20 -5
- package/src/plugins/impl/data-frames/forms/__tests__/__snapshots__/form.test.tsx.snap +33 -21
- package/src/plugins/impl/data-frames/forms/renderers.tsx +11 -8
- package/src/stories/log-viewer.stories.tsx +12 -6
- package/src/utils/__tests__/blob.test.ts +27 -1
- package/src/utils/__tests__/download.test.tsx +44 -4
- package/src/utils/blob.ts +24 -1
- package/src/utils/download.ts +14 -15
- package/dist/toDate-CmR_xR3P.js +0 -692
|
@@ -6,14 +6,14 @@ import { _ as Functions, f as composeRefs, g as Logger, h as cn, m as Events, n
|
|
|
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-DNq8q3zw.js";
|
|
9
|
-
import {
|
|
9
|
+
import { B as isDataURLString, Bn as Info, Bt as PluralWord, C as Accordion, Dn as Close$1, Dt as toggleBreakpoint, E as AccordionTrigger, H as renderHTML, Hn as Eye, Ht as DATA_TYPE_ICON, In as NotebookPen, It as getFeatureFlag, J as getCellEditorView, Jn as Braces, Kn as CircleX, L as base64ToUint8Array, Ln as Minus, M as DotFilledIcon, Mn as Wrench, Mt as useChromeActions, N as PinLeftIcon, Nn as Trash2, Nt as adaptForLocalStorage, Ot as goToCellLine, P as PinRightIcon, Pt as jotaiJsonStorage, Q as notebookAtom, Rn as LoaderCircle, Sn as jsonToMarkdown, St as isRecord, T as AccordionItem, Un as ExternalLink, Ut as getDataTypeColor, Vn as FileText, Xn as import_lib, Yn as esm_default, Yt as getRequestClient, Zt as useRequestClient, _ as getDatasourceContext, an as elementContainsMarimoCellFile, c as Popover, ct as AnsiUp, d as PopoverTrigger, ft as sanitizeHtml, gn as SCRATCH_CELL_ID, hn as HTMLCellId, ht as displayCellName, it as useCellNames, j as ChevronRightIcon, k as CheckIcon, l as PopoverClose, lt as outputIsLoading, m as useExpandedOutput, mn as CellOutputId, mt as getCellDomProps, n as Spinner, nt as useCellActions, on as extractAllTracebackInfo, pt as DATA_CELL_ID, r as MarkdownRenderer, rt as useCellIds, sn as getTracebackInfo, t as toPng, u as PopoverContent, un as filenameAtom, w as AccordionContent, wn as atomWithStorage, xn as jsonParseWithSpecialChar, yt as Checkbox, z as extractBase64FromDataURL, __tla as __tla_0 } from "./html-to-image-CZ1kLKkq.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-DIlxLFXG.js";
|
|
11
11
|
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-CMJGqBaY.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-Bt2qr_XS.js";
|
|
13
13
|
import { t as Check } from "./check-DP7U0H0G.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-DIy9NAmg.js";
|
|
15
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-C5K4VBvB.js";
|
|
16
|
-
import {
|
|
16
|
+
import { S as isWasm, a as millisecondsInMinute, b as viewStateAtom, 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, v as kioskModeAtom, y as useInstallAllowed } from "./toDate-CqhBWjvO.js";
|
|
17
17
|
import { r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DhLqwSWA.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";
|
|
@@ -29,13 +29,13 @@ import { c as uniqueBy, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
|
29
29
|
import { t as Objects } from "./objects-De59twF-.js";
|
|
30
30
|
import { n as once, t as memoizeLastValue } from "./once-B60G2fuJ.js";
|
|
31
31
|
import { a as parser } from "./dist-CRmSjkLP.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-Dwq1THhr.js";
|
|
33
33
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DdVSF4FD.js";
|
|
34
34
|
import { V as getContainerWidth, n as formats } from "./vega-loader.browser-DmpxCJqx.js";
|
|
35
35
|
import { a as tooltipHandler, n as vegaLoadData, r as createBatchedLoader, t as parseCsvData } from "./loader-DX-IDS7n.js";
|
|
36
36
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-kA09ykNq.js";
|
|
37
37
|
import { t as useAsyncData } from "./useAsyncData-CYOQb1EW.js";
|
|
38
|
-
let
|
|
38
|
+
let CommandSeparator, Kbd, ErrorState, getPageIndexForRow, ContextMenuTrigger, dateToLocalISODate, downloadHTMLAsImage, inferFieldTypes, ColumnName, DelayMount, downloadSizeLimitAtom, ColumnChartSpecModel, getUserColumnVisibilityCounts, TOO_MANY_ROWS, DateRangePicker, TabsList, useSelectList, dateToLocalISOTime, ContextMenu, toFieldTypes, Command, ChartInfoState, Combobox, TabsTrigger, ContextMenuContent, getMimeValues, prettifyRowColumnCount, loadTableData, prettifyRowCount, INDEX_COLUMN_NAME, ColumnPreviewContainer, useIntersectionObserver, getColumnCountForDisplay, SELECT_COLUMN_ID, CommandList, RenderTextWithLinks, ContextMenuItem, isNullishFilter, downloadExportedFile, generateColumns, Filenames, ColumnChartContext, CompactChipRow, Tabs, useInternalStateWithSync, dateToLocalISODateTime, DatePicker, TabsContent, CommandInput, LazyVegaEmbed, CommandEmpty, ChartLoadingState, CommandItem, useOverflowDetection, DataTable, ChevronLeft, TableCell, DEFAULT_DECK_TRANSITION, TextWrap, contextAwarePanelType, downloadBlob, TableRow, SLIDE_TYPE_OPTIONS_BY_VALUE, EyeOff, slotsController, Switch, Download, PanelGroup, HtmlOutput, smartMatch, RadioGroup, Code, PanelResizeHandle, OutputRenderer, ChevronsDownUp, TableBody, OutputArea, ChevronsLeft, Table, showCodeInRunModeAtom, $fae977aafc393c5c$export$6b862160d295c8e, contextAwarePanelOwner, LoadingState, loadTableAndRawData, EmptyState, usePrevious, SlideSidebar, Expand, Toggle, JsonOutput, ChevronsRight, Provider$1, useNotebookCodeAvailable, safeLocale, PANEL_TYPES, DEFAULT_DECK_VERTICAL_ALIGN, GripHorizontal, isCellAwareAtom, RadioGroupItem, ChevronsUpDown, Fill, ComboboxItem, ChartErrorState, marimoVersionAtom, $fae977aafc393c5c$export$588937bcd60ade55, contextAwarePanelOpen, DEFAULT_SLIDE_TYPE, Funnel, SlotNames, cellDomProps, EmotionCacheProvider, ContextAwarePanelItem, Slide, Ellipsis, Panel, InstallPackageButton, ArrowDownWideNarrow, TableHead, Progress, renderCellValue, downloadByURL, NAMELESS_COLUMN_PREFIX, ADD_PRINTING_CLASS, TableHeader, ContextMenuSeparator, Maps;
|
|
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, fJ = c.top - E, pJ = c.bottom + O, mJ = c.left - A, hJ = c.right + M, gJ = e === _ ? 0 : Q + $, _J = e === _ ? 0 : q + J, vJ = e.offsetWidth - e.clientWidth - gJ, yJ = e.offsetHeight - e.clientHeight - _J, bJ = v + q + I, xJ = y - J - z - yJ, SJ = S + Q + U, CJ = w - $ - K;
|
|
2065
|
+
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? SJ += vJ : CJ -= vJ;
|
|
2066
|
+
let wJ = fJ < bJ || pJ > xJ, TJ = mJ < SJ || hJ > CJ;
|
|
2067
|
+
if (wJ && i === "start") o += fJ - bJ;
|
|
2068
|
+
else if (wJ && i === "center") o += (fJ + pJ) / 2 - (bJ + xJ) / 2;
|
|
2069
|
+
else if (wJ && i === "end") o += pJ - xJ;
|
|
2070
|
+
else if (wJ && i === "nearest") {
|
|
2071
|
+
let e2 = fJ - bJ, t2 = pJ - xJ;
|
|
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 (TJ && a === "start") s += mJ - SJ;
|
|
2075
|
+
else if (TJ && a === "center") s += (mJ + hJ) / 2 - (SJ + CJ) / 2;
|
|
2076
|
+
else if (TJ && a === "end") s += hJ - CJ;
|
|
2077
|
+
else if (TJ && a === "nearest") {
|
|
2078
|
+
let e2 = mJ - SJ, t2 = hJ - CJ;
|
|
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 fJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5189
|
+
q[I] += fJ;
|
|
5190
|
+
let pJ = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5191
|
+
y && y < pJ && (pJ = y), n.height = Math.min(n.height, pJ), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), fJ = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += fJ;
|
|
5192
|
+
let mJ = {}, hJ = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], gJ = hJ + 0.5 * t[z], _J = S / 2 + w, vJ = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), yJ = n[z] - vJ - S / 2 - w;
|
|
5193
|
+
mJ[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(gJ, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), _J, yJ), { placement: U, crossPlacement: K } = A, S ? hJ = mJ[I] : K === "right" ? hJ += t[z] : K === "center" && (hJ += t[z] / 2);
|
|
5194
|
+
let bJ = U === "left" || U === "top" ? n[M] : 0, xJ = {
|
|
5195
|
+
x: U === "top" || U === "bottom" ? hJ : bJ,
|
|
5196
|
+
y: U === "left" || U === "right" ? hJ : bJ
|
|
5197
5197
|
};
|
|
5198
5198
|
return {
|
|
5199
5199
|
position: q,
|
|
5200
|
-
maxHeight:
|
|
5201
|
-
arrowOffsetLeft:
|
|
5202
|
-
arrowOffsetTop:
|
|
5200
|
+
maxHeight: pJ,
|
|
5201
|
+
arrowOffsetLeft: mJ.left,
|
|
5202
|
+
arrowOffsetTop: mJ.top,
|
|
5203
5203
|
placement: U,
|
|
5204
|
-
triggerAnchorPoint:
|
|
5204
|
+
triggerAnchorPoint: xJ
|
|
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 fJ = $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 pJ = $bdb11010cef70236$export$f680877a34711e37(), mJ = !t.isDisabled && !t.isReadOnly && e.isEditable, hJ = e.type === "literal" ? "" : s.of(e.type), gJ = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
7070
|
+
"aria-label": `${hJ}${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 _J = {
|
|
7079
7079
|
caretColor: "transparent"
|
|
7080
7080
|
};
|
|
7081
7081
|
if (o === "rtl") {
|
|
7082
|
-
|
|
7082
|
+
_J.unicodeBidi = "embed";
|
|
7083
7083
|
let t2 = v[e.type];
|
|
7084
|
-
(t2 === "numeric" || t2 === "2-digit") && (
|
|
7084
|
+
(t2 === "numeric" || t2 === "2-digit") && (_J.direction = "ltr");
|
|
7085
7085
|
}
|
|
7086
7086
|
return {
|
|
7087
|
-
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w,
|
|
7088
|
-
id:
|
|
7089
|
-
...
|
|
7087
|
+
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, gJ, {
|
|
7088
|
+
id: pJ,
|
|
7089
|
+
...fJ,
|
|
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: mJ,
|
|
7095
|
+
suppressContentEditableWarning: mJ,
|
|
7096
|
+
spellCheck: mJ ? "false" : void 0,
|
|
7097
|
+
autoCorrect: mJ ? "off" : void 0,
|
|
7098
|
+
enterKeyHint: mJ ? "next" : void 0,
|
|
7099
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !mJ ? void 0 : "numeric",
|
|
7100
7100
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
7101
7101
|
onKeyDown: A,
|
|
7102
7102
|
onFocus: Q,
|
|
7103
|
-
style:
|
|
7103
|
+
style: _J,
|
|
7104
7104
|
onPointerDown(e2) {
|
|
7105
7105
|
e2.stopPropagation();
|
|
7106
7106
|
},
|
|
@@ -10227,12 +10227,6 @@ 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
|
-
};
|
|
10236
10230
|
(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);
|
|
10237
10231
|
var $4e85f108e88277b8$export$d688439359537581 = (0, import_react.createContext)({});
|
|
10238
10232
|
(0, import_react.createContext)(null), (0, import_react.createContext)(null);
|
|
@@ -10349,12 +10343,12 @@ Defaulting to \`null\`.`;
|
|
|
10349
10343
|
e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
|
|
10350
10344
|
}
|
|
10351
10345
|
}
|
|
10352
|
-
let
|
|
10346
|
+
let fJ = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10353
10347
|
w,
|
|
10354
10348
|
f,
|
|
10355
10349
|
s,
|
|
10356
10350
|
c
|
|
10357
|
-
]),
|
|
10351
|
+
]), pJ = e.isInvalid || e.validationState === "invalid" || fJ, mJ = pJ ? "invalid" : null, hJ = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10358
10352
|
h,
|
|
10359
10353
|
o
|
|
10360
10354
|
]);
|
|
@@ -10371,8 +10365,8 @@ Defaulting to \`null\`.`;
|
|
|
10371
10365
|
maxValue: c,
|
|
10372
10366
|
focusedDate: O,
|
|
10373
10367
|
timeZone: E,
|
|
10374
|
-
validationState:
|
|
10375
|
-
isValueInvalid:
|
|
10368
|
+
validationState: mJ,
|
|
10369
|
+
isValueInvalid: pJ,
|
|
10376
10370
|
setFocusedDate(e2) {
|
|
10377
10371
|
Q(e2);
|
|
10378
10372
|
},
|
|
@@ -10397,12 +10391,12 @@ Defaulting to \`null\`.`;
|
|
|
10397
10391
|
}));
|
|
10398
10392
|
},
|
|
10399
10393
|
focusNextPage() {
|
|
10400
|
-
let e2 = M.add(
|
|
10401
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10394
|
+
let e2 = M.add(hJ);
|
|
10395
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(hJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, hJ, i, s, c), hJ, i));
|
|
10402
10396
|
},
|
|
10403
10397
|
focusPreviousPage() {
|
|
10404
|
-
let e2 = M.subtract(
|
|
10405
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10398
|
+
let e2 = M.subtract(hJ);
|
|
10399
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(hJ), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, hJ, i, s, c), hJ, i));
|
|
10406
10400
|
},
|
|
10407
10401
|
focusSectionStart() {
|
|
10408
10402
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10539,13 +10533,13 @@ Defaulting to \`null\`.`;
|
|
|
10539
10533
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10540
10534
|
}), q(null);
|
|
10541
10535
|
}
|
|
10542
|
-
}, [$,
|
|
10543
|
-
|
|
10536
|
+
}, [$, fJ] = (0, import_react.useState)(false), { isDateUnavailable: pJ } = e, mJ = (0, import_react.useMemo)(() => !h || v ? false : pJ && (pJ(h.start) || pJ(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10537
|
+
pJ,
|
|
10544
10538
|
h,
|
|
10545
10539
|
v,
|
|
10546
10540
|
c,
|
|
10547
10541
|
d
|
|
10548
|
-
]),
|
|
10542
|
+
]), hJ = e.isInvalid || e.validationState === "invalid" || mJ, gJ = hJ ? "invalid" : null;
|
|
10549
10543
|
return {
|
|
10550
10544
|
...I,
|
|
10551
10545
|
value: h,
|
|
@@ -10553,8 +10547,8 @@ Defaulting to \`null\`.`;
|
|
|
10553
10547
|
anchorDate: v,
|
|
10554
10548
|
setAnchorDate: q,
|
|
10555
10549
|
highlightedRange: J,
|
|
10556
|
-
validationState:
|
|
10557
|
-
isValueInvalid:
|
|
10550
|
+
validationState: gJ,
|
|
10551
|
+
isValueInvalid: hJ,
|
|
10558
10552
|
selectFocusedDate() {
|
|
10559
10553
|
Q(I.focusedDate);
|
|
10560
10554
|
},
|
|
@@ -10570,7 +10564,7 @@ Defaulting to \`null\`.`;
|
|
|
10570
10564
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10571
10565
|
},
|
|
10572
10566
|
isDragging: $,
|
|
10573
|
-
setDragging:
|
|
10567
|
+
setDragging: fJ
|
|
10574
10568
|
};
|
|
10575
10569
|
}
|
|
10576
10570
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11757,7 +11751,7 @@ Defaulting to \`null\`.`;
|
|
|
11757
11751
|
_,
|
|
11758
11752
|
S,
|
|
11759
11753
|
v
|
|
11760
|
-
]),
|
|
11754
|
+
]), fJ = (0, import_react.useMemo)(() => {
|
|
11761
11755
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11762
11756
|
"era",
|
|
11763
11757
|
"year",
|
|
@@ -11775,15 +11769,15 @@ Defaulting to \`null\`.`;
|
|
|
11775
11769
|
e.maxGranularity,
|
|
11776
11770
|
_,
|
|
11777
11771
|
w
|
|
11778
|
-
]), [
|
|
11779
|
-
(M !==
|
|
11780
|
-
let
|
|
11781
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11772
|
+
]), [pJ, mJ] = (0, import_react.useState)(M), [hJ, gJ] = (0, import_react.useState)(S), [_J, vJ] = (0, import_react.useState)(w);
|
|
11773
|
+
(M !== pJ || w !== _J || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, hJ)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), mJ(M), gJ(S), vJ(w), z(I));
|
|
11774
|
+
let yJ = (t2) => {
|
|
11775
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(fJ)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11782
11776
|
else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
|
|
11783
11777
|
else {
|
|
11784
|
-
if (t2.isComplete(
|
|
11778
|
+
if (t2.isComplete(fJ)) {
|
|
11785
11779
|
let e2 = t2.toValue(M ?? $);
|
|
11786
|
-
if (t2.validate(e2,
|
|
11780
|
+
if (t2.validate(e2, fJ)) {
|
|
11787
11781
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11788
11782
|
if (!E || t3.compare(E) !== 0) {
|
|
11789
11783
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11793,83 +11787,83 @@ Defaulting to \`null\`.`;
|
|
|
11793
11787
|
}
|
|
11794
11788
|
z(t2);
|
|
11795
11789
|
}
|
|
11796
|
-
},
|
|
11790
|
+
}, bJ = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11797
11791
|
I,
|
|
11798
11792
|
y,
|
|
11799
11793
|
M,
|
|
11800
11794
|
$
|
|
11801
|
-
]),
|
|
11802
|
-
|
|
11795
|
+
]), xJ = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(bJ, I, J, Q, S, t, _), [
|
|
11796
|
+
bJ,
|
|
11803
11797
|
J,
|
|
11804
11798
|
Q,
|
|
11805
11799
|
I,
|
|
11806
11800
|
S,
|
|
11807
11801
|
t,
|
|
11808
11802
|
_
|
|
11809
|
-
]),
|
|
11810
|
-
|
|
11811
|
-
},
|
|
11803
|
+
]), SJ = (e2, t2) => {
|
|
11804
|
+
yJ(I.cycle(e2, t2, $, fJ));
|
|
11805
|
+
}, CJ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11812
11806
|
E,
|
|
11813
11807
|
c,
|
|
11814
11808
|
d,
|
|
11815
11809
|
f,
|
|
11816
11810
|
K
|
|
11817
|
-
]),
|
|
11811
|
+
]), wJ = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
|
|
11818
11812
|
...e,
|
|
11819
11813
|
value: E,
|
|
11820
|
-
builtinValidation:
|
|
11821
|
-
}),
|
|
11814
|
+
builtinValidation: CJ
|
|
11815
|
+
}), TJ = wJ.displayValidation.isInvalid, EJ = e.validationState || (TJ ? "invalid" : null);
|
|
11822
11816
|
return {
|
|
11823
|
-
...
|
|
11817
|
+
...wJ,
|
|
11824
11818
|
value: M,
|
|
11825
11819
|
defaultValue: e.defaultValue ?? A,
|
|
11826
|
-
dateValue:
|
|
11820
|
+
dateValue: bJ,
|
|
11827
11821
|
calendar: S,
|
|
11828
|
-
setValue:
|
|
11829
|
-
segments:
|
|
11822
|
+
setValue: yJ,
|
|
11823
|
+
segments: xJ,
|
|
11830
11824
|
dateFormatter: J,
|
|
11831
|
-
validationState:
|
|
11832
|
-
isInvalid:
|
|
11825
|
+
validationState: EJ,
|
|
11826
|
+
isInvalid: TJ,
|
|
11833
11827
|
granularity: _,
|
|
11834
11828
|
maxGranularity: e.maxGranularity ?? "year",
|
|
11835
11829
|
isDisabled: a,
|
|
11836
11830
|
isReadOnly: o,
|
|
11837
11831
|
isRequired: s,
|
|
11838
11832
|
increment(e2) {
|
|
11839
|
-
|
|
11833
|
+
SJ(e2, 1);
|
|
11840
11834
|
},
|
|
11841
11835
|
decrement(e2) {
|
|
11842
|
-
|
|
11836
|
+
SJ(e2, -1);
|
|
11843
11837
|
},
|
|
11844
11838
|
incrementPage(e2) {
|
|
11845
|
-
|
|
11839
|
+
SJ(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
|
|
11846
11840
|
},
|
|
11847
11841
|
decrementPage(e2) {
|
|
11848
|
-
|
|
11842
|
+
SJ(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
|
|
11849
11843
|
},
|
|
11850
11844
|
incrementToMax(e2) {
|
|
11851
11845
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11852
|
-
|
|
11846
|
+
yJ(I.set(e2, t2, $));
|
|
11853
11847
|
},
|
|
11854
11848
|
decrementToMin(e2) {
|
|
11855
11849
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11856
|
-
|
|
11850
|
+
yJ(I.set(e2, t2, $));
|
|
11857
11851
|
},
|
|
11858
11852
|
setSegment(e2, t2) {
|
|
11859
|
-
|
|
11853
|
+
yJ(I.set(e2, t2, $));
|
|
11860
11854
|
},
|
|
11861
11855
|
confirmPlaceholder() {
|
|
11862
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11856
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(fJ)) {
|
|
11863
11857
|
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11864
11858
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11865
11859
|
}
|
|
11866
11860
|
},
|
|
11867
11861
|
clearSegment(e2) {
|
|
11868
11862
|
let t2 = I;
|
|
11869
|
-
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)),
|
|
11863
|
+
e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), yJ(t2);
|
|
11870
11864
|
},
|
|
11871
11865
|
formatValue(e2) {
|
|
11872
|
-
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(
|
|
11866
|
+
return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(bJ) : "";
|
|
11873
11867
|
},
|
|
11874
11868
|
getDateFormatter(e2, t2) {
|
|
11875
11869
|
return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
|
|
@@ -11989,7 +11983,7 @@ Defaulting to \`null\`.`;
|
|
|
11989
11983
|
e.endName
|
|
11990
11984
|
]),
|
|
11991
11985
|
builtinValidation: J
|
|
11992
|
-
}), $ = Q.displayValidation.isInvalid,
|
|
11986
|
+
}), $ = Q.displayValidation.isInvalid, fJ = e.validationState || ($ ? "invalid" : null);
|
|
11993
11987
|
return {
|
|
11994
11988
|
...Q,
|
|
11995
11989
|
value: c,
|
|
@@ -12035,7 +12029,7 @@ Defaulting to \`null\`.`;
|
|
|
12035
12029
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
12036
12030
|
}), t.setOpen(n2);
|
|
12037
12031
|
},
|
|
12038
|
-
validationState:
|
|
12032
|
+
validationState: fJ,
|
|
12039
12033
|
isInvalid: $,
|
|
12040
12034
|
formatValue(t2, n2) {
|
|
12041
12035
|
if (!c || !c.start || !c.end) return null;
|
|
@@ -15929,33 +15923,33 @@ try {
|
|
|
15929
15923
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15930
15924
|
function y(e2) {
|
|
15931
15925
|
var _a2, _b, _c, _d;
|
|
15932
|
-
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,
|
|
15926
|
+
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, fJ = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15933
15927
|
h2
|
|
15934
|
-
]),
|
|
15935
|
-
|
|
15936
|
-
]),
|
|
15937
|
-
supportedColorSchemes:
|
|
15938
|
-
defaultLightColorScheme:
|
|
15939
|
-
defaultDarkColorScheme:
|
|
15928
|
+
]), pJ = fJ[t], mJ = pJ || fJ, { colorSchemes: hJ = _, components: gJ = v, cssVarPrefix: _J } = mJ, vJ = Object.keys(hJ).filter((e3) => !!hJ[e3]).join(","), yJ = import_react.useMemo(() => vJ.split(","), [
|
|
15929
|
+
vJ
|
|
15930
|
+
]), bJ = typeof s == "string" ? s : s.light, xJ = typeof s == "string" ? s : s.dark, { mode: SJ, setMode: CJ, systemMode: wJ, lightColorScheme: TJ, darkColorScheme: EJ, colorScheme: DJ, setColorScheme: OJ } = useCurrentColorScheme({
|
|
15931
|
+
supportedColorSchemes: yJ,
|
|
15932
|
+
defaultLightColorScheme: bJ,
|
|
15933
|
+
defaultDarkColorScheme: xJ,
|
|
15940
15934
|
modeStorageKey: y2,
|
|
15941
15935
|
colorSchemeStorageKey: S2,
|
|
15942
|
-
defaultMode:
|
|
15936
|
+
defaultMode: hJ[bJ] && hJ[xJ] ? U : ((_b = (_a2 = hJ[mJ.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = mJ.palette) == null ? void 0 : _c.mode),
|
|
15943
15937
|
storageManager: E,
|
|
15944
15938
|
storageWindow: O,
|
|
15945
15939
|
noSsr: K
|
|
15946
|
-
}),
|
|
15947
|
-
$ && (
|
|
15948
|
-
let
|
|
15940
|
+
}), kJ = SJ, AJ = DJ;
|
|
15941
|
+
$ && (kJ = Q.mode, AJ = Q.colorScheme);
|
|
15942
|
+
let jJ = import_react.useMemo(() => {
|
|
15949
15943
|
var _a3;
|
|
15950
|
-
let e3 =
|
|
15951
|
-
...
|
|
15952
|
-
components:
|
|
15953
|
-
colorSchemes:
|
|
15954
|
-
cssVarPrefix:
|
|
15944
|
+
let e3 = AJ || mJ.defaultColorScheme, t2 = ((_a3 = mJ.generateThemeVars) == null ? void 0 : _a3.call(mJ)) || mJ.vars, n2 = {
|
|
15945
|
+
...mJ,
|
|
15946
|
+
components: gJ,
|
|
15947
|
+
colorSchemes: hJ,
|
|
15948
|
+
cssVarPrefix: _J,
|
|
15955
15949
|
vars: t2
|
|
15956
15950
|
};
|
|
15957
15951
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15958
|
-
let t3 =
|
|
15952
|
+
let t3 = hJ[e3];
|
|
15959
15953
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15960
15954
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15961
15955
|
...n2[e4],
|
|
@@ -15965,31 +15959,31 @@ try {
|
|
|
15965
15959
|
}
|
|
15966
15960
|
return c ? c(n2) : n2;
|
|
15967
15961
|
}, [
|
|
15968
|
-
|
|
15969
|
-
|
|
15970
|
-
|
|
15971
|
-
|
|
15972
|
-
|
|
15973
|
-
]),
|
|
15962
|
+
mJ,
|
|
15963
|
+
AJ,
|
|
15964
|
+
gJ,
|
|
15965
|
+
hJ,
|
|
15966
|
+
_J
|
|
15967
|
+
]), MJ = mJ.colorSchemeSelector;
|
|
15974
15968
|
useEnhancedEffect_default(() => {
|
|
15975
|
-
if (
|
|
15976
|
-
let e3 =
|
|
15977
|
-
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(...
|
|
15969
|
+
if (AJ && M && MJ && MJ !== "media") {
|
|
15970
|
+
let e3 = MJ, t2 = MJ;
|
|
15971
|
+
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(...yJ.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", AJ));
|
|
15978
15972
|
else {
|
|
15979
|
-
let e4 = t2.replace("%s",
|
|
15973
|
+
let e4 = t2.replace("%s", AJ).match(/\[([^\]]+)\]/);
|
|
15980
15974
|
if (e4) {
|
|
15981
15975
|
let [t3, n2] = e4[1].split("=");
|
|
15982
|
-
n2 ||
|
|
15983
|
-
M.removeAttribute(t3.replace(
|
|
15976
|
+
n2 || yJ.forEach((e5) => {
|
|
15977
|
+
M.removeAttribute(t3.replace(AJ, e5));
|
|
15984
15978
|
}), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
|
|
15985
|
-
} else M.setAttribute(t2,
|
|
15979
|
+
} else M.setAttribute(t2, AJ);
|
|
15986
15980
|
}
|
|
15987
15981
|
}
|
|
15988
15982
|
}, [
|
|
15989
|
-
|
|
15990
|
-
|
|
15983
|
+
AJ,
|
|
15984
|
+
MJ,
|
|
15991
15985
|
M,
|
|
15992
|
-
|
|
15986
|
+
yJ
|
|
15993
15987
|
]), import_react.useEffect(() => {
|
|
15994
15988
|
let e3;
|
|
15995
15989
|
if (w2 && q.current && A) {
|
|
@@ -16002,48 +15996,48 @@ try {
|
|
|
16002
15996
|
clearTimeout(e3);
|
|
16003
15997
|
};
|
|
16004
15998
|
}, [
|
|
16005
|
-
|
|
15999
|
+
AJ,
|
|
16006
16000
|
w2,
|
|
16007
16001
|
A
|
|
16008
16002
|
]), import_react.useEffect(() => (q.current = true, () => {
|
|
16009
16003
|
q.current = false;
|
|
16010
16004
|
}), []);
|
|
16011
|
-
let
|
|
16012
|
-
allColorSchemes:
|
|
16013
|
-
colorScheme:
|
|
16014
|
-
darkColorScheme:
|
|
16015
|
-
lightColorScheme:
|
|
16016
|
-
mode:
|
|
16017
|
-
setColorScheme:
|
|
16018
|
-
setMode:
|
|
16019
|
-
systemMode:
|
|
16005
|
+
let NJ = import_react.useMemo(() => ({
|
|
16006
|
+
allColorSchemes: yJ,
|
|
16007
|
+
colorScheme: AJ,
|
|
16008
|
+
darkColorScheme: EJ,
|
|
16009
|
+
lightColorScheme: TJ,
|
|
16010
|
+
mode: kJ,
|
|
16011
|
+
setColorScheme: OJ,
|
|
16012
|
+
setMode: CJ,
|
|
16013
|
+
systemMode: wJ
|
|
16020
16014
|
}), [
|
|
16021
|
-
|
|
16015
|
+
yJ,
|
|
16016
|
+
AJ,
|
|
16017
|
+
EJ,
|
|
16022
16018
|
TJ,
|
|
16023
|
-
|
|
16024
|
-
|
|
16025
|
-
wJ,
|
|
16019
|
+
kJ,
|
|
16020
|
+
OJ,
|
|
16026
16021
|
CJ,
|
|
16027
|
-
|
|
16028
|
-
|
|
16029
|
-
|
|
16030
|
-
|
|
16031
|
-
|
|
16032
|
-
let AJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16022
|
+
wJ,
|
|
16023
|
+
jJ.colorSchemeSelector
|
|
16024
|
+
]), PJ = true;
|
|
16025
|
+
(z || mJ.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === _J) && (PJ = false);
|
|
16026
|
+
let FJ = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
16033
16027
|
children: [
|
|
16034
16028
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
16035
|
-
themeId:
|
|
16036
|
-
theme:
|
|
16029
|
+
themeId: pJ ? t : void 0,
|
|
16030
|
+
theme: jJ,
|
|
16037
16031
|
children: d2
|
|
16038
16032
|
}),
|
|
16039
|
-
|
|
16040
|
-
styles: ((_d =
|
|
16033
|
+
PJ && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
|
|
16034
|
+
styles: ((_d = jJ.generateStyleSheets) == null ? void 0 : _d.call(jJ)) || []
|
|
16041
16035
|
})
|
|
16042
16036
|
]
|
|
16043
16037
|
});
|
|
16044
|
-
return $ ?
|
|
16045
|
-
value:
|
|
16046
|
-
children:
|
|
16038
|
+
return $ ? FJ : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
16039
|
+
value: NJ,
|
|
16040
|
+
children: FJ
|
|
16047
16041
|
});
|
|
16048
16042
|
}
|
|
16049
16043
|
let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
|
|
@@ -17543,10 +17537,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17543
17537
|
let n = useDefaultProps({
|
|
17544
17538
|
props: e,
|
|
17545
17539
|
name: "MuiInputBase"
|
|
17546
|
-
}), { "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:
|
|
17547
|
-
}, []),
|
|
17540
|
+
}), { "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: fJ, onKeyDown: pJ, onKeyUp: mJ, placeholder: hJ, readOnly: gJ, renderSuffix: _J, rows: vJ, size: yJ, slotProps: bJ = {}, slots: xJ = {}, startAdornment: SJ, type: CJ = "text", value: wJ, ...TJ } = n, EJ = A.value == null ? wJ : A.value, { current: DJ } = import_react.useRef(EJ != null), OJ = import_react.useRef(), kJ = import_react.useCallback((e2) => {
|
|
17541
|
+
}, []), AJ = useForkRef_default(OJ, M, A.ref, kJ), [jJ, MJ] = import_react.useState(false), NJ = useFormControl(), PJ = formControlState({
|
|
17548
17542
|
props: n,
|
|
17549
|
-
muiFormControl:
|
|
17543
|
+
muiFormControl: NJ,
|
|
17550
17544
|
states: [
|
|
17551
17545
|
"color",
|
|
17552
17546
|
"disabled",
|
|
@@ -17557,145 +17551,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17557
17551
|
"filled"
|
|
17558
17552
|
]
|
|
17559
17553
|
});
|
|
17560
|
-
|
|
17561
|
-
!
|
|
17554
|
+
PJ.focused = NJ ? NJ.focused : jJ, import_react.useEffect(() => {
|
|
17555
|
+
!NJ && _ && jJ && (MJ(false), J && J());
|
|
17562
17556
|
}, [
|
|
17563
|
-
|
|
17557
|
+
NJ,
|
|
17564
17558
|
_,
|
|
17565
|
-
|
|
17559
|
+
jJ,
|
|
17566
17560
|
J
|
|
17567
17561
|
]);
|
|
17568
|
-
let
|
|
17569
|
-
isFilled(e2) ?
|
|
17562
|
+
let FJ = NJ && NJ.onFilled, IJ = NJ && NJ.onEmpty, LJ = import_react.useCallback((e2) => {
|
|
17563
|
+
isFilled(e2) ? FJ && FJ() : IJ && IJ();
|
|
17570
17564
|
}, [
|
|
17571
|
-
|
|
17572
|
-
|
|
17565
|
+
FJ,
|
|
17566
|
+
IJ
|
|
17573
17567
|
]);
|
|
17574
17568
|
useEnhancedEffect_default$1(() => {
|
|
17575
|
-
|
|
17576
|
-
value:
|
|
17569
|
+
DJ && LJ({
|
|
17570
|
+
value: EJ
|
|
17577
17571
|
});
|
|
17578
17572
|
}, [
|
|
17579
|
-
|
|
17580
|
-
|
|
17581
|
-
|
|
17573
|
+
EJ,
|
|
17574
|
+
LJ,
|
|
17575
|
+
DJ
|
|
17582
17576
|
]);
|
|
17583
|
-
let
|
|
17584
|
-
|
|
17585
|
-
},
|
|
17586
|
-
J && J(e2), A.onBlur && A.onBlur(e2),
|
|
17587
|
-
},
|
|
17588
|
-
if (!
|
|
17589
|
-
let t3 = e2.target ||
|
|
17577
|
+
let RJ = (e2) => {
|
|
17578
|
+
fJ && fJ(e2), A.onFocus && A.onFocus(e2), NJ && NJ.onFocus ? NJ.onFocus(e2) : MJ(true);
|
|
17579
|
+
}, zJ = (e2) => {
|
|
17580
|
+
J && J(e2), A.onBlur && A.onBlur(e2), NJ && NJ.onBlur ? NJ.onBlur(e2) : MJ(false);
|
|
17581
|
+
}, BJ = (e2, ...t2) => {
|
|
17582
|
+
if (!DJ) {
|
|
17583
|
+
let t3 = e2.target || OJ.current;
|
|
17590
17584
|
if (t3 == null) throw Error(formatMuiErrorMessage(1));
|
|
17591
|
-
|
|
17585
|
+
LJ({
|
|
17592
17586
|
value: t3.value
|
|
17593
17587
|
});
|
|
17594
17588
|
}
|
|
17595
17589
|
A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
|
|
17596
17590
|
};
|
|
17597
17591
|
import_react.useEffect(() => {
|
|
17598
|
-
|
|
17592
|
+
LJ(OJ.current);
|
|
17599
17593
|
}, []);
|
|
17600
|
-
let
|
|
17601
|
-
|
|
17602
|
-
},
|
|
17603
|
-
K &&
|
|
17594
|
+
let VJ = (e2) => {
|
|
17595
|
+
OJ.current && e2.currentTarget === e2.target && OJ.current.focus(), $ && $(e2);
|
|
17596
|
+
}, HJ = O, UJ = A;
|
|
17597
|
+
K && HJ === "input" && (UJ = vJ ? {
|
|
17604
17598
|
type: void 0,
|
|
17605
|
-
minRows:
|
|
17606
|
-
maxRows:
|
|
17607
|
-
...
|
|
17599
|
+
minRows: vJ,
|
|
17600
|
+
maxRows: vJ,
|
|
17601
|
+
...UJ
|
|
17608
17602
|
} : {
|
|
17609
17603
|
type: void 0,
|
|
17610
17604
|
maxRows: z,
|
|
17611
17605
|
minRows: U,
|
|
17612
|
-
...
|
|
17613
|
-
},
|
|
17614
|
-
let
|
|
17615
|
-
|
|
17606
|
+
...UJ
|
|
17607
|
+
}, HJ = TextareaAutosize_default);
|
|
17608
|
+
let WJ = (e2) => {
|
|
17609
|
+
LJ(e2.animationName === "mui-auto-fill-cancel" ? OJ.current : {
|
|
17616
17610
|
value: "x"
|
|
17617
17611
|
});
|
|
17618
17612
|
};
|
|
17619
17613
|
import_react.useEffect(() => {
|
|
17620
|
-
|
|
17614
|
+
NJ && NJ.setAdornedStart(!!SJ);
|
|
17621
17615
|
}, [
|
|
17622
|
-
|
|
17623
|
-
|
|
17616
|
+
NJ,
|
|
17617
|
+
SJ
|
|
17624
17618
|
]);
|
|
17625
|
-
let
|
|
17619
|
+
let GJ = {
|
|
17626
17620
|
...n,
|
|
17627
|
-
color:
|
|
17628
|
-
disabled:
|
|
17621
|
+
color: PJ.color || "primary",
|
|
17622
|
+
disabled: PJ.disabled,
|
|
17629
17623
|
endAdornment: y,
|
|
17630
|
-
error:
|
|
17631
|
-
focused:
|
|
17632
|
-
formControl:
|
|
17624
|
+
error: PJ.error,
|
|
17625
|
+
focused: PJ.focused,
|
|
17626
|
+
formControl: NJ,
|
|
17633
17627
|
fullWidth: w,
|
|
17634
|
-
hiddenLabel:
|
|
17628
|
+
hiddenLabel: PJ.hiddenLabel,
|
|
17635
17629
|
multiline: K,
|
|
17636
|
-
size:
|
|
17637
|
-
startAdornment:
|
|
17638
|
-
type:
|
|
17639
|
-
},
|
|
17640
|
-
return
|
|
17641
|
-
...
|
|
17642
|
-
...
|
|
17630
|
+
size: PJ.size,
|
|
17631
|
+
startAdornment: SJ,
|
|
17632
|
+
type: CJ
|
|
17633
|
+
}, KJ = useUtilityClasses(GJ), qJ = xJ.root || d.Root || InputBaseRoot, JJ = bJ.root || f.root || {}, YJ = xJ.input || d.Input || InputBaseInput;
|
|
17634
|
+
return UJ = {
|
|
17635
|
+
...UJ,
|
|
17636
|
+
...bJ.input ?? f.input
|
|
17643
17637
|
}, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
17644
17638
|
children: [
|
|
17645
17639
|
!v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
|
|
17646
|
-
(0, import_jsx_runtime.jsxs)(
|
|
17647
|
-
...
|
|
17640
|
+
(0, import_jsx_runtime.jsxs)(qJ, {
|
|
17641
|
+
...JJ,
|
|
17648
17642
|
ref: t,
|
|
17649
|
-
onClick:
|
|
17650
|
-
...
|
|
17651
|
-
...!isHostComponent_default(
|
|
17643
|
+
onClick: VJ,
|
|
17644
|
+
...TJ,
|
|
17645
|
+
...!isHostComponent_default(qJ) && {
|
|
17652
17646
|
ownerState: {
|
|
17653
|
-
...
|
|
17654
|
-
...
|
|
17647
|
+
...GJ,
|
|
17648
|
+
...JJ.ownerState
|
|
17655
17649
|
}
|
|
17656
17650
|
},
|
|
17657
|
-
className: clsx_default(
|
|
17651
|
+
className: clsx_default(KJ.root, JJ.className, s, gJ && "MuiInputBase-readOnly"),
|
|
17658
17652
|
children: [
|
|
17659
|
-
|
|
17653
|
+
SJ,
|
|
17660
17654
|
(0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
|
|
17661
17655
|
value: null,
|
|
17662
|
-
children: (0, import_jsx_runtime.jsx)(
|
|
17663
|
-
"aria-invalid":
|
|
17656
|
+
children: (0, import_jsx_runtime.jsx)(YJ, {
|
|
17657
|
+
"aria-invalid": PJ.error,
|
|
17664
17658
|
"aria-describedby": i,
|
|
17665
17659
|
autoComplete: a,
|
|
17666
17660
|
autoFocus: o,
|
|
17667
17661
|
defaultValue: h,
|
|
17668
|
-
disabled:
|
|
17662
|
+
disabled: PJ.disabled,
|
|
17669
17663
|
id: E,
|
|
17670
|
-
onAnimationStart:
|
|
17664
|
+
onAnimationStart: WJ,
|
|
17671
17665
|
name: q,
|
|
17672
|
-
placeholder:
|
|
17673
|
-
readOnly:
|
|
17674
|
-
required:
|
|
17675
|
-
rows:
|
|
17676
|
-
value:
|
|
17677
|
-
onKeyDown:
|
|
17678
|
-
onKeyUp:
|
|
17679
|
-
type:
|
|
17680
|
-
...
|
|
17681
|
-
...!isHostComponent_default(
|
|
17682
|
-
as:
|
|
17666
|
+
placeholder: hJ,
|
|
17667
|
+
readOnly: gJ,
|
|
17668
|
+
required: PJ.required,
|
|
17669
|
+
rows: vJ,
|
|
17670
|
+
value: EJ,
|
|
17671
|
+
onKeyDown: pJ,
|
|
17672
|
+
onKeyUp: mJ,
|
|
17673
|
+
type: CJ,
|
|
17674
|
+
...UJ,
|
|
17675
|
+
...!isHostComponent_default(YJ) && {
|
|
17676
|
+
as: HJ,
|
|
17683
17677
|
ownerState: {
|
|
17684
|
-
...
|
|
17685
|
-
...
|
|
17678
|
+
...GJ,
|
|
17679
|
+
...UJ.ownerState
|
|
17686
17680
|
}
|
|
17687
17681
|
},
|
|
17688
|
-
ref:
|
|
17689
|
-
className: clsx_default(
|
|
17690
|
-
onBlur:
|
|
17691
|
-
onChange:
|
|
17692
|
-
onFocus:
|
|
17682
|
+
ref: AJ,
|
|
17683
|
+
className: clsx_default(KJ.input, UJ.className, gJ && "MuiInputBase-readOnly"),
|
|
17684
|
+
onBlur: zJ,
|
|
17685
|
+
onChange: BJ,
|
|
17686
|
+
onFocus: RJ
|
|
17693
17687
|
})
|
|
17694
17688
|
}),
|
|
17695
17689
|
y,
|
|
17696
|
-
|
|
17697
|
-
...
|
|
17698
|
-
startAdornment:
|
|
17690
|
+
_J ? _J({
|
|
17691
|
+
...PJ,
|
|
17692
|
+
startAdornment: SJ
|
|
17699
17693
|
}) : null
|
|
17700
17694
|
]
|
|
17701
17695
|
})
|
|
@@ -18771,30 +18765,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18771
18765
|
M,
|
|
18772
18766
|
i,
|
|
18773
18767
|
a
|
|
18774
|
-
]), 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),
|
|
18775
|
-
|
|
18768
|
+
]), 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), fJ = useTextColor(), pJ = useJsonViewerStore((e2) => e2.colorspace.base0C), mJ = useJsonViewerStore((e2) => e2.colorspace.base0A), hJ = useJsonViewerStore((e2) => e2.displayComma), gJ = useJsonViewerStore((e2) => e2.quotesOnKeys), _J = useJsonViewerStore((e2) => e2.rootName), vJ = U === t, yJ = Number.isInteger(Number(A)), bJ = useJsonViewerStore((e2) => e2.enableAdd), xJ = useJsonViewerStore((e2) => e2.onAdd), SJ = (0, import_react.useMemo)(() => !xJ || a !== void 0 || bJ === false || v === false ? false : typeof bJ == "function" ? !!bJ(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18769
|
+
xJ,
|
|
18776
18770
|
a,
|
|
18777
18771
|
i,
|
|
18778
|
-
|
|
18772
|
+
bJ,
|
|
18779
18773
|
v,
|
|
18780
18774
|
t
|
|
18781
|
-
]),
|
|
18782
|
-
|
|
18775
|
+
]), CJ = useJsonViewerStore((e2) => e2.enableDelete), wJ = useJsonViewerStore((e2) => e2.onDelete), TJ = (0, import_react.useMemo)(() => !wJ || a !== void 0 || vJ || CJ === false || v === false ? false : typeof CJ == "function" ? !!CJ(i, t) : CJ, [
|
|
18776
|
+
wJ,
|
|
18783
18777
|
a,
|
|
18784
|
-
pJ,
|
|
18785
|
-
i,
|
|
18786
18778
|
vJ,
|
|
18779
|
+
i,
|
|
18780
|
+
CJ,
|
|
18787
18781
|
v,
|
|
18788
18782
|
t
|
|
18789
|
-
]),
|
|
18790
|
-
|
|
18783
|
+
]), EJ = useJsonViewerStore((e2) => e2.enableClipboard), { copy: DJ, copied: OJ } = useClipboard(), kJ = useJsonViewerStore((e2) => e2.highlightUpdates), AJ = (0, import_react.useMemo)(() => !kJ || 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, [
|
|
18784
|
+
kJ,
|
|
18791
18785
|
n,
|
|
18792
18786
|
t
|
|
18793
|
-
]),
|
|
18787
|
+
]), jJ = (0, import_react.useRef)();
|
|
18794
18788
|
(0, import_react.useEffect)(() => {
|
|
18795
|
-
|
|
18789
|
+
jJ.current && AJ && "animate" in jJ.current && jJ.current.animate([
|
|
18796
18790
|
{
|
|
18797
|
-
backgroundColor:
|
|
18791
|
+
backgroundColor: mJ
|
|
18798
18792
|
},
|
|
18799
18793
|
{
|
|
18800
18794
|
backgroundColor: ""
|
|
@@ -18804,22 +18798,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18804
18798
|
easing: "ease-in"
|
|
18805
18799
|
});
|
|
18806
18800
|
}, [
|
|
18807
|
-
|
|
18808
|
-
|
|
18801
|
+
mJ,
|
|
18802
|
+
AJ,
|
|
18809
18803
|
n,
|
|
18810
18804
|
t
|
|
18811
18805
|
]);
|
|
18812
|
-
let
|
|
18806
|
+
let MJ = (0, import_react.useCallback)((e2) => {
|
|
18813
18807
|
e2.preventDefault(), h && E(h(t)), Q(true);
|
|
18814
18808
|
}, [
|
|
18815
18809
|
h,
|
|
18816
18810
|
t
|
|
18817
|
-
]),
|
|
18811
|
+
]), NJ = (0, import_react.useCallback)(() => {
|
|
18818
18812
|
Q(false), E("");
|
|
18819
18813
|
}, [
|
|
18820
18814
|
Q,
|
|
18821
18815
|
E
|
|
18822
|
-
]),
|
|
18816
|
+
]), PJ = (0, import_react.useCallback)((e2) => {
|
|
18823
18817
|
if (Q(false), _) try {
|
|
18824
18818
|
$(i, t, _(e2));
|
|
18825
18819
|
} catch {
|
|
@@ -18830,14 +18824,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18830
18824
|
$,
|
|
18831
18825
|
i,
|
|
18832
18826
|
t
|
|
18833
|
-
]),
|
|
18827
|
+
]), FJ = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18834
18828
|
children: [
|
|
18835
18829
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
18836
18830
|
children: (0, import_jsx_runtime.jsx)(CloseIcon, {
|
|
18837
18831
|
sx: {
|
|
18838
18832
|
fontSize: ".8rem"
|
|
18839
18833
|
},
|
|
18840
|
-
onClick:
|
|
18834
|
+
onClick: NJ
|
|
18841
18835
|
})
|
|
18842
18836
|
}),
|
|
18843
18837
|
(0, import_jsx_runtime.jsx)(IconBox, {
|
|
@@ -18845,22 +18839,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18845
18839
|
sx: {
|
|
18846
18840
|
fontSize: ".8rem"
|
|
18847
18841
|
},
|
|
18848
|
-
onClick: () =>
|
|
18842
|
+
onClick: () => PJ(w)
|
|
18849
18843
|
})
|
|
18850
18844
|
})
|
|
18851
18845
|
]
|
|
18852
18846
|
}) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18853
18847
|
children: [
|
|
18854
|
-
|
|
18848
|
+
EJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18855
18849
|
onClick: (e2) => {
|
|
18856
18850
|
e2.preventDefault();
|
|
18857
18851
|
try {
|
|
18858
|
-
|
|
18852
|
+
DJ(i, t, copyString);
|
|
18859
18853
|
} catch (e3) {
|
|
18860
18854
|
console.error(e3);
|
|
18861
18855
|
}
|
|
18862
18856
|
},
|
|
18863
|
-
children:
|
|
18857
|
+
children: OJ ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
|
|
18864
18858
|
sx: {
|
|
18865
18859
|
fontSize: ".8rem"
|
|
18866
18860
|
}
|
|
@@ -18871,16 +18865,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18871
18865
|
})
|
|
18872
18866
|
}),
|
|
18873
18867
|
f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18874
|
-
onClick:
|
|
18868
|
+
onClick: MJ,
|
|
18875
18869
|
children: (0, import_jsx_runtime.jsx)(EditIcon, {
|
|
18876
18870
|
sx: {
|
|
18877
18871
|
fontSize: ".8rem"
|
|
18878
18872
|
}
|
|
18879
18873
|
})
|
|
18880
18874
|
}),
|
|
18881
|
-
|
|
18875
|
+
SJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18882
18876
|
onClick: (e2) => {
|
|
18883
|
-
e2.preventDefault(),
|
|
18877
|
+
e2.preventDefault(), xJ == null ? void 0 : xJ(i);
|
|
18884
18878
|
},
|
|
18885
18879
|
children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
|
|
18886
18880
|
sx: {
|
|
@@ -18888,9 +18882,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18888
18882
|
}
|
|
18889
18883
|
})
|
|
18890
18884
|
}),
|
|
18891
|
-
|
|
18885
|
+
TJ && (0, import_jsx_runtime.jsx)(IconBox, {
|
|
18892
18886
|
onClick: (e2) => {
|
|
18893
|
-
e2.preventDefault(),
|
|
18887
|
+
e2.preventDefault(), wJ == null ? void 0 : wJ(i, t);
|
|
18894
18888
|
},
|
|
18895
18889
|
children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
|
|
18896
18890
|
sx: {
|
|
@@ -18903,24 +18897,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18903
18897
|
f,
|
|
18904
18898
|
h,
|
|
18905
18899
|
_,
|
|
18906
|
-
|
|
18907
|
-
|
|
18900
|
+
OJ,
|
|
18901
|
+
DJ,
|
|
18908
18902
|
S,
|
|
18909
18903
|
J,
|
|
18910
|
-
|
|
18911
|
-
|
|
18912
|
-
|
|
18904
|
+
EJ,
|
|
18905
|
+
SJ,
|
|
18906
|
+
TJ,
|
|
18913
18907
|
w,
|
|
18914
18908
|
i,
|
|
18915
18909
|
t,
|
|
18916
|
-
|
|
18917
|
-
|
|
18918
|
-
|
|
18919
|
-
|
|
18920
|
-
|
|
18921
|
-
]),
|
|
18910
|
+
xJ,
|
|
18911
|
+
wJ,
|
|
18912
|
+
MJ,
|
|
18913
|
+
NJ,
|
|
18914
|
+
PJ
|
|
18915
|
+
]), IJ = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
|
|
18922
18916
|
t
|
|
18923
|
-
]),
|
|
18917
|
+
]), LJ = !IJ && !!(c && d), RJ = useJsonViewerStore((e2) => e2.keyRenderer), zJ = (0, import_react.useMemo)(() => ({
|
|
18924
18918
|
path: i,
|
|
18925
18919
|
inspect: K,
|
|
18926
18920
|
setInspect: q,
|
|
@@ -18952,18 +18946,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18952
18946
|
className: "data-key",
|
|
18953
18947
|
sx: {
|
|
18954
18948
|
lineHeight: 1.5,
|
|
18955
|
-
color:
|
|
18949
|
+
color: fJ,
|
|
18956
18950
|
letterSpacing: 0.5,
|
|
18957
18951
|
opacity: 0.8
|
|
18958
18952
|
},
|
|
18959
18953
|
onClick: (0, import_react.useCallback)((e2) => {
|
|
18960
|
-
e2.isDefaultPrevented() ||
|
|
18954
|
+
e2.isDefaultPrevented() || IJ || q((e3) => !e3);
|
|
18961
18955
|
}, [
|
|
18962
|
-
|
|
18956
|
+
IJ,
|
|
18963
18957
|
q
|
|
18964
18958
|
]),
|
|
18965
18959
|
children: [
|
|
18966
|
-
|
|
18960
|
+
LJ ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
|
|
18967
18961
|
className: "data-key-toggle-expanded",
|
|
18968
18962
|
sx: {
|
|
18969
18963
|
fontSize: ".8rem",
|
|
@@ -18981,27 +18975,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18981
18975
|
}
|
|
18982
18976
|
}) : null,
|
|
18983
18977
|
(0, import_jsx_runtime.jsx)(Box_default, {
|
|
18984
|
-
ref:
|
|
18978
|
+
ref: jJ,
|
|
18985
18979
|
className: "data-key-key",
|
|
18986
18980
|
component: "span",
|
|
18987
|
-
children:
|
|
18981
|
+
children: vJ && O === 0 ? _J === false ? null : gJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
18988
18982
|
children: [
|
|
18989
18983
|
'"',
|
|
18990
|
-
|
|
18984
|
+
_J,
|
|
18991
18985
|
'"'
|
|
18992
18986
|
]
|
|
18993
18987
|
}) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
|
|
18994
|
-
children:
|
|
18995
|
-
}) :
|
|
18996
|
-
...
|
|
18997
|
-
}) : a === void 0 && (
|
|
18988
|
+
children: _J
|
|
18989
|
+
}) : RJ.when(zJ) ? (0, import_jsx_runtime.jsx)(RJ, {
|
|
18990
|
+
...zJ
|
|
18991
|
+
}) : a === void 0 && (yJ ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18998
18992
|
component: "span",
|
|
18999
18993
|
style: {
|
|
19000
|
-
color:
|
|
19001
|
-
userSelect:
|
|
18994
|
+
color: pJ,
|
|
18995
|
+
userSelect: yJ ? "none" : "auto"
|
|
19002
18996
|
},
|
|
19003
18997
|
children: A
|
|
19004
|
-
}) :
|
|
18998
|
+
}) : gJ ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
19005
18999
|
children: [
|
|
19006
19000
|
'"',
|
|
19007
19001
|
A,
|
|
@@ -19011,7 +19005,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19011
19005
|
children: A
|
|
19012
19006
|
}))
|
|
19013
19007
|
}),
|
|
19014
|
-
|
|
19008
|
+
vJ ? _J !== false && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19015
19009
|
className: "data-key-colon",
|
|
19016
19010
|
sx: {
|
|
19017
19011
|
mr: 0.5
|
|
@@ -19024,38 +19018,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
19024
19018
|
".data-key-key:empty + &": {
|
|
19025
19019
|
display: "none"
|
|
19026
19020
|
},
|
|
19027
|
-
userSelect:
|
|
19021
|
+
userSelect: yJ ? "none" : "auto"
|
|
19028
19022
|
},
|
|
19029
19023
|
children: ":"
|
|
19030
19024
|
}),
|
|
19031
19025
|
c && (0, import_jsx_runtime.jsx)(c, {
|
|
19032
|
-
...
|
|
19026
|
+
...zJ
|
|
19033
19027
|
}),
|
|
19034
|
-
I &&
|
|
19028
|
+
I && LJ && K && FJ
|
|
19035
19029
|
]
|
|
19036
19030
|
}),
|
|
19037
19031
|
J && S ? f && (0, import_jsx_runtime.jsx)(f, {
|
|
19038
19032
|
path: i,
|
|
19039
19033
|
value: w,
|
|
19040
19034
|
setValue: E,
|
|
19041
|
-
abortEditing:
|
|
19042
|
-
commitEditing:
|
|
19035
|
+
abortEditing: NJ,
|
|
19036
|
+
commitEditing: PJ
|
|
19043
19037
|
}) : s ? (0, import_jsx_runtime.jsx)(s, {
|
|
19044
|
-
...
|
|
19038
|
+
...zJ
|
|
19045
19039
|
}) : (0, import_jsx_runtime.jsx)(Box_default, {
|
|
19046
19040
|
component: "span",
|
|
19047
19041
|
className: "data-value-fallback",
|
|
19048
19042
|
children: `fallback: ${t}`
|
|
19049
19043
|
}),
|
|
19050
19044
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
19051
|
-
...
|
|
19045
|
+
...zJ
|
|
19052
19046
|
}),
|
|
19053
|
-
!o &&
|
|
19047
|
+
!o && hJ && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
19054
19048
|
children: ","
|
|
19055
19049
|
}),
|
|
19056
|
-
I &&
|
|
19057
|
-
I && !
|
|
19058
|
-
!I && J &&
|
|
19050
|
+
I && LJ && !K && FJ,
|
|
19051
|
+
I && !LJ && FJ,
|
|
19052
|
+
!I && J && FJ
|
|
19059
19053
|
]
|
|
19060
19054
|
});
|
|
19061
19055
|
}, query = "(prefers-color-scheme: dark)";
|
|
@@ -20141,20 +20135,20 @@ ${n}` : "Please fix this error.";
|
|
|
20141
20135
|
let i2 = e2;
|
|
20142
20136
|
i2 && "exception_type" in i2 && (d = i2.exception_type);
|
|
20143
20137
|
}
|
|
20144
|
-
let y, S, w, E,
|
|
20138
|
+
let y, S, w, E, A, M;
|
|
20145
20139
|
if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== a || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
|
|
20146
|
-
let e2 = n.filter(_temp8),
|
|
20147
|
-
t[17] === s ?
|
|
20140
|
+
let e2 = n.filter(_temp8), I2 = n.filter(_temp9), z2 = n.filter(_temp0), U = n.filter(_temp1), K = n.filter(_temp10), q = n.filter(_temp11), J = n.filter(_temp12), $ = n.filter(_temp13), fJ = n.filter(_temp14), pJ = n.filter(_temp15), mJ = n.filter(_temp16), hJ = n.filter(_temp17), gJ = n.filter(_temp18), _J;
|
|
20141
|
+
t[17] === s ? _J = t[18] : (_J = () => {
|
|
20148
20142
|
s.openApplication("scratchpad");
|
|
20149
|
-
}, t[17] = s, t[18] =
|
|
20150
|
-
let
|
|
20143
|
+
}, t[17] = s, t[18] = _J);
|
|
20144
|
+
let vJ = _J, yJ = () => {
|
|
20151
20145
|
let t2 = [];
|
|
20152
|
-
if (
|
|
20153
|
-
let e3 =
|
|
20146
|
+
if (mJ.length > 0 || hJ.length > 0) {
|
|
20147
|
+
let e3 = mJ.some(_temp19), n2 = !e3 && mJ.some(_temp20);
|
|
20154
20148
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20155
20149
|
children: [
|
|
20156
|
-
|
|
20157
|
-
|
|
20150
|
+
mJ.map(_temp21),
|
|
20151
|
+
hJ.map(_temp22),
|
|
20158
20152
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
20159
20153
|
size: "xs",
|
|
20160
20154
|
variant: "outline",
|
|
@@ -20185,8 +20179,8 @@ ${n}` : "Please fix this error.";
|
|
|
20185
20179
|
}),
|
|
20186
20180
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20187
20181
|
errors: [
|
|
20188
|
-
...
|
|
20189
|
-
...
|
|
20182
|
+
...mJ,
|
|
20183
|
+
...hJ
|
|
20190
20184
|
],
|
|
20191
20185
|
cellId: i
|
|
20192
20186
|
})
|
|
@@ -20239,7 +20233,7 @@ ${n}` : "Please fix this error.";
|
|
|
20239
20233
|
]
|
|
20240
20234
|
})
|
|
20241
20235
|
]
|
|
20242
|
-
}, "setup-refs")),
|
|
20236
|
+
}, "setup-refs")), I2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20243
20237
|
children: [
|
|
20244
20238
|
(0, import_jsx_runtime.jsx)("p", {
|
|
20245
20239
|
className: "text-muted-foreground font-medium",
|
|
@@ -20247,10 +20241,10 @@ ${n}` : "Please fix this error.";
|
|
|
20247
20241
|
}),
|
|
20248
20242
|
(0, import_jsx_runtime.jsx)("ul", {
|
|
20249
20243
|
className: "list-disc",
|
|
20250
|
-
children:
|
|
20244
|
+
children: I2.flatMap(_temp24)
|
|
20251
20245
|
}),
|
|
20252
20246
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20253
|
-
errors:
|
|
20247
|
+
errors: I2,
|
|
20254
20248
|
cellId: i
|
|
20255
20249
|
}),
|
|
20256
20250
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20285,17 +20279,17 @@ ${n}` : "Please fix this error.";
|
|
|
20285
20279
|
]
|
|
20286
20280
|
})
|
|
20287
20281
|
]
|
|
20288
|
-
}, "cycle")),
|
|
20289
|
-
let e3 =
|
|
20282
|
+
}, "cycle")), z2.length > 0) {
|
|
20283
|
+
let e3 = z2[0].name;
|
|
20290
20284
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20291
20285
|
children: [
|
|
20292
20286
|
(0, import_jsx_runtime.jsx)("p", {
|
|
20293
20287
|
className: "text-muted-foreground font-medium",
|
|
20294
20288
|
children: "This cell redefines variables from other cells."
|
|
20295
20289
|
}),
|
|
20296
|
-
|
|
20290
|
+
z2.map(_temp26),
|
|
20297
20291
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20298
|
-
errors:
|
|
20292
|
+
errors: z2,
|
|
20299
20293
|
cellId: i
|
|
20300
20294
|
}),
|
|
20301
20295
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20347,7 +20341,7 @@ ${n}` : "Please fix this error.";
|
|
|
20347
20341
|
size: "xs",
|
|
20348
20342
|
variant: "link",
|
|
20349
20343
|
className: "my-2 font-normal mx-0 px-0",
|
|
20350
|
-
onClick:
|
|
20344
|
+
onClick: vJ,
|
|
20351
20345
|
children: [
|
|
20352
20346
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20353
20347
|
className: "h-3"
|
|
@@ -20366,11 +20360,11 @@ ${n}` : "Please fix this error.";
|
|
|
20366
20360
|
]
|
|
20367
20361
|
}, "multiple-defs"));
|
|
20368
20362
|
}
|
|
20369
|
-
return
|
|
20363
|
+
return U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20370
20364
|
children: [
|
|
20371
|
-
|
|
20365
|
+
U.map(_temp27),
|
|
20372
20366
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20373
|
-
errors:
|
|
20367
|
+
errors: U,
|
|
20374
20368
|
cellId: i
|
|
20375
20369
|
}),
|
|
20376
20370
|
(0, import_jsx_runtime.jsxs)(Tip, {
|
|
@@ -20408,17 +20402,17 @@ ${n}` : "Please fix this error.";
|
|
|
20408
20402
|
]
|
|
20409
20403
|
})
|
|
20410
20404
|
]
|
|
20411
|
-
}, "import-star")),
|
|
20405
|
+
}, "import-star")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20412
20406
|
children: [
|
|
20413
|
-
|
|
20407
|
+
K.map(_temp28),
|
|
20414
20408
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20415
|
-
errors:
|
|
20409
|
+
errors: K,
|
|
20416
20410
|
cellId: i
|
|
20417
20411
|
})
|
|
20418
20412
|
]
|
|
20419
|
-
}, "interruption")),
|
|
20413
|
+
}, "interruption")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
|
|
20420
20414
|
children: [
|
|
20421
|
-
|
|
20415
|
+
q.map((e3, t3) => e3.exception_type === "NameError" && e3.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
|
|
20422
20416
|
className: "my-2",
|
|
20423
20417
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
20424
20418
|
children: [
|
|
@@ -20503,61 +20497,61 @@ ${n}` : "Please fix this error.";
|
|
|
20503
20497
|
]
|
|
20504
20498
|
})
|
|
20505
20499
|
}, `exception-${t3}`)),
|
|
20506
|
-
|
|
20500
|
+
q.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
|
|
20507
20501
|
children: "Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."
|
|
20508
20502
|
}),
|
|
20509
20503
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20510
|
-
errors:
|
|
20504
|
+
errors: q,
|
|
20511
20505
|
cellId: i
|
|
20512
20506
|
})
|
|
20513
20507
|
]
|
|
20514
|
-
}, "exception")),
|
|
20508
|
+
}, "exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
|
|
20515
20509
|
children: [
|
|
20516
|
-
|
|
20510
|
+
J.map(_temp30),
|
|
20517
20511
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20518
|
-
errors:
|
|
20512
|
+
errors: J,
|
|
20519
20513
|
cellId: i
|
|
20520
20514
|
}),
|
|
20521
20515
|
(0, import_jsx_runtime.jsx)(Tip, {
|
|
20522
|
-
children:
|
|
20516
|
+
children: J.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."
|
|
20523
20517
|
})
|
|
20524
20518
|
]
|
|
20525
|
-
}, "strict-exception")),
|
|
20519
|
+
}, "strict-exception")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20526
20520
|
children: [
|
|
20527
|
-
|
|
20521
|
+
$.map(_temp32),
|
|
20528
20522
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20529
|
-
errors:
|
|
20523
|
+
errors: $,
|
|
20530
20524
|
cellId: i
|
|
20531
20525
|
})
|
|
20532
20526
|
]
|
|
20533
|
-
}, "internal")),
|
|
20527
|
+
}, "internal")), fJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20534
20528
|
children: [
|
|
20535
|
-
|
|
20529
|
+
fJ.map(_temp33),
|
|
20536
20530
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20537
|
-
errors:
|
|
20531
|
+
errors: fJ,
|
|
20538
20532
|
cellId: i
|
|
20539
20533
|
})
|
|
20540
20534
|
]
|
|
20541
|
-
}, "ancestor-prevented")),
|
|
20535
|
+
}, "ancestor-prevented")), pJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20542
20536
|
children: [
|
|
20543
|
-
|
|
20537
|
+
pJ.map(_temp34),
|
|
20544
20538
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20545
|
-
errors:
|
|
20539
|
+
errors: pJ,
|
|
20546
20540
|
cellId: i
|
|
20547
20541
|
})
|
|
20548
20542
|
]
|
|
20549
|
-
}, "ancestor-stopped")),
|
|
20543
|
+
}, "ancestor-stopped")), gJ.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20550
20544
|
children: [
|
|
20551
|
-
|
|
20545
|
+
gJ.map(_temp35),
|
|
20552
20546
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20553
|
-
errors:
|
|
20547
|
+
errors: gJ,
|
|
20554
20548
|
cellId: i,
|
|
20555
20549
|
className: "mt-2.5"
|
|
20556
20550
|
})
|
|
20557
20551
|
]
|
|
20558
20552
|
}, "sql-errors")), t2;
|
|
20559
|
-
},
|
|
20560
|
-
t[19] === v ?
|
|
20553
|
+
}, bJ;
|
|
20554
|
+
t[19] === v ? bJ = t[20] : (bJ = v && (0, import_jsx_runtime.jsxs)("div", {
|
|
20561
20555
|
className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
|
|
20562
20556
|
children: [
|
|
20563
20557
|
v,
|
|
@@ -20569,37 +20563,37 @@ ${n}` : "Please fix this error.";
|
|
|
20569
20563
|
})
|
|
20570
20564
|
})
|
|
20571
20565
|
]
|
|
20572
|
-
}), t[19] = v, t[20] =
|
|
20573
|
-
let
|
|
20574
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20566
|
+
}), t[19] = v, t[20] = bJ);
|
|
20567
|
+
let xJ;
|
|
20568
|
+
t[21] !== _ || t[22] !== d ? (xJ = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20575
20569
|
className: `font-code font-medium ${_}`,
|
|
20576
20570
|
children: d
|
|
20577
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20578
|
-
let
|
|
20579
|
-
t[24] !==
|
|
20571
|
+
}), t[21] = _, t[22] = d, t[23] = xJ) : xJ = t[23];
|
|
20572
|
+
let SJ;
|
|
20573
|
+
t[24] !== bJ || t[25] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
20580
20574
|
className: "space-y-0.5",
|
|
20581
20575
|
children: [
|
|
20582
|
-
|
|
20583
|
-
|
|
20576
|
+
bJ,
|
|
20577
|
+
xJ
|
|
20584
20578
|
]
|
|
20585
|
-
}), t[24] =
|
|
20586
|
-
let
|
|
20587
|
-
y = Alert, E = f, t[27] === a ?
|
|
20588
|
-
} else y = t[11], S = t[12], w = t[13], E = t[14],
|
|
20589
|
-
let
|
|
20590
|
-
t[29] !== S || t[30] !== w ? (
|
|
20579
|
+
}), t[24] = bJ, t[25] = xJ, t[26] = SJ) : SJ = t[26];
|
|
20580
|
+
let CJ = SJ;
|
|
20581
|
+
y = Alert, E = f, t[27] === a ? A = t[28] : (A = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal has-[svg]:pl-0 space-y-2", a), t[27] = a, t[28] = A), M = CJ, S = "flex flex-col gap-4", w = yJ(), t[2] = f, t[3] = i, t[4] = s, t[5] = a, 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] = A, t[16] = M;
|
|
20582
|
+
} else y = t[11], S = t[12], w = t[13], E = t[14], A = t[15], M = t[16];
|
|
20583
|
+
let I;
|
|
20584
|
+
t[29] !== S || t[30] !== w ? (I = (0, import_jsx_runtime.jsx)("div", {
|
|
20591
20585
|
className: S,
|
|
20592
20586
|
children: w
|
|
20593
|
-
}), t[29] = S, t[30] = w, t[31] =
|
|
20594
|
-
let
|
|
20595
|
-
return t[32] !== y || t[33] !== E || t[34] !==
|
|
20587
|
+
}), t[29] = S, t[30] = w, t[31] = I) : I = t[31];
|
|
20588
|
+
let z;
|
|
20589
|
+
return t[32] !== y || t[33] !== E || t[34] !== A || t[35] !== M || t[36] !== I ? (z = (0, import_jsx_runtime.jsxs)(y, {
|
|
20596
20590
|
variant: E,
|
|
20597
|
-
className:
|
|
20591
|
+
className: A,
|
|
20598
20592
|
children: [
|
|
20599
|
-
|
|
20600
|
-
|
|
20593
|
+
M,
|
|
20594
|
+
I
|
|
20601
20595
|
]
|
|
20602
|
-
}), t[32] = y, t[33] = E, t[34] =
|
|
20596
|
+
}), t[32] = y, t[33] = E, t[34] = A, t[35] = M, t[36] = I, t[37] = z) : z = t[37], z;
|
|
20603
20597
|
};
|
|
20604
20598
|
function _temp$10(e) {
|
|
20605
20599
|
return e.type === "interruption";
|
|
@@ -24596,9 +24590,10 @@ ${n}` : "Please fix this error.";
|
|
|
24596
24590
|
}
|
|
24597
24591
|
},
|
|
24598
24592
|
y: {
|
|
24599
|
-
|
|
24600
|
-
|
|
24601
|
-
|
|
24593
|
+
value: 0
|
|
24594
|
+
},
|
|
24595
|
+
y2: {
|
|
24596
|
+
value: 100
|
|
24602
24597
|
},
|
|
24603
24598
|
tooltip: [
|
|
24604
24599
|
{
|
|
@@ -24666,9 +24661,10 @@ ${n}` : "Please fix this error.";
|
|
|
24666
24661
|
scale: i
|
|
24667
24662
|
},
|
|
24668
24663
|
y: {
|
|
24669
|
-
|
|
24670
|
-
|
|
24671
|
-
|
|
24664
|
+
value: 0
|
|
24665
|
+
},
|
|
24666
|
+
y2: {
|
|
24667
|
+
value: 100
|
|
24672
24668
|
},
|
|
24673
24669
|
tooltip: [
|
|
24674
24670
|
{
|
|
@@ -24813,11 +24809,15 @@ ${n}` : "Please fix this error.";
|
|
|
24813
24809
|
};
|
|
24814
24810
|
}
|
|
24815
24811
|
var READABLE_TIME_FORMAT = "%-I:%M:%S %p";
|
|
24812
|
+
function isValidBinValue(e) {
|
|
24813
|
+
let { bin_start: t, bin_end: n } = e;
|
|
24814
|
+
return !(t == null || n == null || typeof t == "number" && !Number.isFinite(t) || typeof n == "number" && !Number.isFinite(n));
|
|
24815
|
+
}
|
|
24816
24816
|
function getPartialTimeTooltip(e) {
|
|
24817
24817
|
var _a2;
|
|
24818
24818
|
if (e.length === 0) return {};
|
|
24819
|
-
let t = (_a2 = e.find((e2) => e2
|
|
24820
|
-
if (
|
|
24819
|
+
let t = (_a2 = e.find((e2) => isValidBinValue(e2))) == null ? void 0 : _a2.bin_start;
|
|
24820
|
+
if (t == null || typeof t == "number" && t.toString().length === 4) return {};
|
|
24821
24821
|
if (typeof t == "string" && t.length === 8) return {
|
|
24822
24822
|
type: "temporal",
|
|
24823
24823
|
timeUnit: "hoursminutesseconds",
|
|
@@ -24851,7 +24851,7 @@ ${n}` : "Please fix this error.";
|
|
|
24851
24851
|
}
|
|
24852
24852
|
function calculateBinStep(e) {
|
|
24853
24853
|
if (e.length === 0) return 1;
|
|
24854
|
-
let t = e.filter(
|
|
24854
|
+
let t = e.filter(isValidBinValue);
|
|
24855
24855
|
if (t.length === 0) return 1;
|
|
24856
24856
|
let n = t[0].bin_start, i = t[0].bin_end, a, o;
|
|
24857
24857
|
if (typeof n == "number" && typeof i == "number") {
|
|
@@ -24869,15 +24869,70 @@ ${n}` : "Please fix this error.";
|
|
|
24869
24869
|
let c = s / t.length;
|
|
24870
24870
|
return Math.max(c, 1);
|
|
24871
24871
|
}
|
|
24872
|
-
|
|
24873
|
-
|
|
24874
|
-
|
|
24875
|
-
|
|
24876
|
-
|
|
24877
|
-
|
|
24878
|
-
|
|
24879
|
-
|
|
24880
|
-
|
|
24872
|
+
var MAX_BAR_HEIGHT = 20, BIN_END_EXTENSION_FACTOR = 0.1, CONCAT_CHART_HEIGHT = 30, CONCAT_CHART_WIDTH = 70, CONCAT_NULL_BAR_WIDTH = 5, BAR_COLOR = mint.mint11, UNHOVERED_BAR_OPACITY = 0.6, NULL_BAR_COLOR = orange.orange11, FULL_HEIGHT_TOOLTIP_Y = {
|
|
24873
|
+
y: {
|
|
24874
|
+
value: 0
|
|
24875
|
+
},
|
|
24876
|
+
y2: {
|
|
24877
|
+
value: CONCAT_CHART_HEIGHT
|
|
24878
|
+
}
|
|
24879
|
+
}, NULLS_TOOLTIP = [
|
|
24880
|
+
{
|
|
24881
|
+
field: "count",
|
|
24882
|
+
type: "quantitative",
|
|
24883
|
+
title: "nulls",
|
|
24884
|
+
format: ",d"
|
|
24885
|
+
}
|
|
24886
|
+
];
|
|
24887
|
+
function buildNullBarSpec(e) {
|
|
24888
|
+
return {
|
|
24889
|
+
height: CONCAT_CHART_HEIGHT,
|
|
24890
|
+
width: e.width,
|
|
24891
|
+
layer: [
|
|
24892
|
+
{
|
|
24893
|
+
mark: {
|
|
24894
|
+
type: "bar",
|
|
24895
|
+
color: NULL_BAR_COLOR
|
|
24896
|
+
},
|
|
24897
|
+
encoding: {
|
|
24898
|
+
x: {
|
|
24899
|
+
field: "bin_start",
|
|
24900
|
+
type: "nominal",
|
|
24901
|
+
axis: null
|
|
24902
|
+
},
|
|
24903
|
+
y: {
|
|
24904
|
+
field: "count",
|
|
24905
|
+
type: "quantitative",
|
|
24906
|
+
axis: null
|
|
24907
|
+
}
|
|
24908
|
+
}
|
|
24909
|
+
},
|
|
24910
|
+
{
|
|
24911
|
+
mark: {
|
|
24912
|
+
type: "bar",
|
|
24913
|
+
opacity: 0
|
|
24914
|
+
},
|
|
24915
|
+
encoding: {
|
|
24916
|
+
x: {
|
|
24917
|
+
field: "bin_start",
|
|
24918
|
+
type: "nominal",
|
|
24919
|
+
axis: null
|
|
24920
|
+
},
|
|
24921
|
+
...FULL_HEIGHT_TOOLTIP_Y,
|
|
24922
|
+
tooltip: NULLS_TOOLTIP
|
|
24923
|
+
}
|
|
24924
|
+
}
|
|
24925
|
+
],
|
|
24926
|
+
...e.filterNullOnly ? {
|
|
24927
|
+
transform: [
|
|
24928
|
+
{
|
|
24929
|
+
filter: "datum['bin_start'] === null && datum['bin_end'] === null"
|
|
24930
|
+
}
|
|
24931
|
+
]
|
|
24932
|
+
} : {}
|
|
24933
|
+
};
|
|
24934
|
+
}
|
|
24935
|
+
let import_compiler_runtime$42;
|
|
24881
24936
|
ColumnChartSpecModel = (_a = class {
|
|
24882
24937
|
constructor(e, t, n, i, a, o) {
|
|
24883
24938
|
__publicField(this, "columnStats", /* @__PURE__ */ new Map());
|
|
@@ -24913,31 +24968,40 @@ ${n}` : "Please fix this error.";
|
|
|
24913
24968
|
};
|
|
24914
24969
|
}
|
|
24915
24970
|
getVegaSpec(e) {
|
|
24916
|
-
let t = this.columnBinValues.get(e), n = this.columnValueCounts.get(e), i = n && n.length > 0, a = this.
|
|
24917
|
-
i ?
|
|
24971
|
+
let t = this.columnBinValues.get(e), n = this.columnValueCounts.get(e), i = n && n.length > 0, a = this.columnStats.get(e), o = typeof (a == null ? void 0 : a.nulls) == "number" ? a.nulls : 0, s = (t ?? []).filter(isValidBinValue), c = this.dataSpec;
|
|
24972
|
+
i ? c = {
|
|
24918
24973
|
values: n,
|
|
24919
24974
|
name: "value_counts"
|
|
24920
|
-
} :
|
|
24921
|
-
|
|
24922
|
-
|
|
24923
|
-
|
|
24924
|
-
|
|
24925
|
-
|
|
24975
|
+
} : t !== void 0 && (c = {
|
|
24976
|
+
values: o > 0 ? [
|
|
24977
|
+
...s,
|
|
24978
|
+
{
|
|
24979
|
+
bin_start: null,
|
|
24980
|
+
bin_end: null,
|
|
24981
|
+
count: o
|
|
24982
|
+
}
|
|
24983
|
+
] : s,
|
|
24926
24984
|
name: "bin_values"
|
|
24927
24985
|
});
|
|
24928
|
-
let
|
|
24929
|
-
if (
|
|
24930
|
-
switch (e = e.replaceAll(".", "\\."), e = e.replaceAll("[", "\\[").replaceAll("]", "\\]"), e = e.replaceAll(":", "\\:"),
|
|
24986
|
+
let d = this.createBase(c), f = this.fieldTypes.get(e);
|
|
24987
|
+
if (f === void 0) return null;
|
|
24988
|
+
switch (e = e.replaceAll(".", "\\."), e = e.replaceAll("[", "\\[").replaceAll("]", "\\]"), e = e.replaceAll(":", "\\:"), f) {
|
|
24931
24989
|
case "date":
|
|
24932
24990
|
case "datetime":
|
|
24933
24991
|
case "time": {
|
|
24934
|
-
if (
|
|
24992
|
+
if (t === void 0) {
|
|
24935
24993
|
let t2 = this.createBase(this.legacyDataSpec), n3 = getScale(this.legacySourceName);
|
|
24936
|
-
return getLegacyTemporalSpec(e,
|
|
24994
|
+
return getLegacyTemporalSpec(e, f, t2, n3);
|
|
24937
24995
|
}
|
|
24938
|
-
|
|
24939
|
-
|
|
24940
|
-
...
|
|
24996
|
+
if (s.length === 0) return o === 0 ? null : {
|
|
24997
|
+
...d,
|
|
24998
|
+
...buildNullBarSpec({
|
|
24999
|
+
width: CONCAT_CHART_WIDTH
|
|
25000
|
+
})
|
|
25001
|
+
};
|
|
25002
|
+
let n2 = getPartialTimeTooltip(s);
|
|
25003
|
+
if (s.length === 1 && o === 0) return {
|
|
25004
|
+
...d,
|
|
24941
25005
|
mark: {
|
|
24942
25006
|
type: "bar",
|
|
24943
25007
|
color: BAR_COLOR
|
|
@@ -25031,11 +25095,7 @@ ${n}` : "Please fix this error.";
|
|
|
25031
25095
|
type: "ordinal",
|
|
25032
25096
|
axis: null
|
|
25033
25097
|
},
|
|
25034
|
-
|
|
25035
|
-
aggregate: "max",
|
|
25036
|
-
type: "quantitative",
|
|
25037
|
-
axis: null
|
|
25038
|
-
},
|
|
25098
|
+
...FULL_HEIGHT_TOOLTIP_Y,
|
|
25039
25099
|
tooltip: [
|
|
25040
25100
|
{
|
|
25041
25101
|
field: "bin_start",
|
|
@@ -25061,20 +25121,43 @@ ${n}` : "Please fix this error.";
|
|
|
25061
25121
|
]
|
|
25062
25122
|
};
|
|
25063
25123
|
return {
|
|
25064
|
-
...
|
|
25124
|
+
...d,
|
|
25065
25125
|
...i2
|
|
25066
25126
|
};
|
|
25067
25127
|
}
|
|
25068
25128
|
case "integer":
|
|
25069
25129
|
case "number": {
|
|
25070
|
-
let n2 =
|
|
25071
|
-
if (
|
|
25130
|
+
let n2 = f === "integer" ? ",d" : ".2f";
|
|
25131
|
+
if (t === void 0) {
|
|
25072
25132
|
let t2 = this.createBase(this.legacyDataSpec);
|
|
25073
25133
|
return getLegacyNumericSpec(e, n2, t2);
|
|
25074
25134
|
}
|
|
25075
|
-
|
|
25135
|
+
if (s.length === 0) return o === 0 ? null : {
|
|
25136
|
+
...d,
|
|
25137
|
+
...buildNullBarSpec({
|
|
25138
|
+
width: CONCAT_CHART_WIDTH
|
|
25139
|
+
})
|
|
25140
|
+
};
|
|
25141
|
+
let i2 = buildNullBarSpec({
|
|
25142
|
+
width: CONCAT_NULL_BAR_WIDTH,
|
|
25143
|
+
filterNullOnly: true
|
|
25144
|
+
}), c2 = calculateBinStep(s), h = [
|
|
25145
|
+
a == null ? void 0 : a.min,
|
|
25146
|
+
a == null ? void 0 : a.p25,
|
|
25147
|
+
a == null ? void 0 : a.median,
|
|
25148
|
+
a == null ? void 0 : a.p75,
|
|
25149
|
+
a == null ? void 0 : a.p95,
|
|
25150
|
+
a == null ? void 0 : a.max
|
|
25151
|
+
].filter((e2) => typeof e2 == "number" && Number.isFinite(e2)), _ = {
|
|
25076
25152
|
height: CONCAT_CHART_HEIGHT,
|
|
25077
25153
|
width: CONCAT_CHART_WIDTH,
|
|
25154
|
+
...o > 0 ? {
|
|
25155
|
+
transform: [
|
|
25156
|
+
{
|
|
25157
|
+
filter: "datum['bin_start'] !== null && datum['bin_end'] !== null"
|
|
25158
|
+
}
|
|
25159
|
+
]
|
|
25160
|
+
} : {},
|
|
25078
25161
|
layer: [
|
|
25079
25162
|
{
|
|
25080
25163
|
mark: {
|
|
@@ -25087,7 +25170,7 @@ ${n}` : "Please fix this error.";
|
|
|
25087
25170
|
type: "quantitative",
|
|
25088
25171
|
bin: {
|
|
25089
25172
|
binned: true,
|
|
25090
|
-
step:
|
|
25173
|
+
step: c2
|
|
25091
25174
|
}
|
|
25092
25175
|
},
|
|
25093
25176
|
x2: {
|
|
@@ -25131,31 +25214,20 @@ ${n}` : "Please fix this error.";
|
|
|
25131
25214
|
type: "quantitative",
|
|
25132
25215
|
bin: {
|
|
25133
25216
|
binned: true,
|
|
25134
|
-
step:
|
|
25217
|
+
step: c2
|
|
25135
25218
|
},
|
|
25136
25219
|
axis: {
|
|
25137
25220
|
title: null,
|
|
25138
25221
|
labelFontSize: 8.5,
|
|
25139
25222
|
labelOpacity: 0.5,
|
|
25140
25223
|
labelExpr: "(datum.value >= 10000 || datum.value <= -10000) ? format(datum.value, '.2e') : format(datum.value, '.2~f')",
|
|
25141
|
-
values:
|
|
25142
|
-
o == null ? void 0 : o.min,
|
|
25143
|
-
o == null ? void 0 : o.p25,
|
|
25144
|
-
o == null ? void 0 : o.median,
|
|
25145
|
-
o == null ? void 0 : o.p75,
|
|
25146
|
-
o == null ? void 0 : o.p95,
|
|
25147
|
-
o == null ? void 0 : o.max
|
|
25148
|
-
].filter((e2) => e2 !== void 0)
|
|
25224
|
+
values: h
|
|
25149
25225
|
}
|
|
25150
25226
|
},
|
|
25151
25227
|
x2: {
|
|
25152
25228
|
field: "bin_end_extended"
|
|
25153
25229
|
},
|
|
25154
|
-
|
|
25155
|
-
aggregate: "max",
|
|
25156
|
-
type: "quantitative",
|
|
25157
|
-
axis: null
|
|
25158
|
-
},
|
|
25230
|
+
...FULL_HEIGHT_TOOLTIP_Y,
|
|
25159
25231
|
tooltip: [
|
|
25160
25232
|
{
|
|
25161
25233
|
field: "bin_range",
|
|
@@ -25176,71 +25248,17 @@ ${n}` : "Please fix this error.";
|
|
|
25176
25248
|
as: "bin_range"
|
|
25177
25249
|
},
|
|
25178
25250
|
{
|
|
25179
|
-
calculate: `datum.bin_end + ${
|
|
25251
|
+
calculate: `datum.bin_end + ${c2 * BIN_END_EXTENSION_FACTOR}`,
|
|
25180
25252
|
as: "bin_end_extended"
|
|
25181
25253
|
}
|
|
25182
25254
|
]
|
|
25183
25255
|
}
|
|
25184
25256
|
]
|
|
25185
|
-
},
|
|
25186
|
-
|
|
25187
|
-
|
|
25188
|
-
layer: [
|
|
25189
|
-
{
|
|
25190
|
-
mark: {
|
|
25191
|
-
type: "bar",
|
|
25192
|
-
color: NULL_BAR_COLOR
|
|
25193
|
-
},
|
|
25194
|
-
encoding: {
|
|
25195
|
-
x: {
|
|
25196
|
-
field: "bin_start",
|
|
25197
|
-
type: "nominal",
|
|
25198
|
-
axis: null
|
|
25199
|
-
},
|
|
25200
|
-
y: {
|
|
25201
|
-
field: "count",
|
|
25202
|
-
type: "quantitative",
|
|
25203
|
-
axis: null
|
|
25204
|
-
}
|
|
25205
|
-
}
|
|
25206
|
-
},
|
|
25207
|
-
{
|
|
25208
|
-
mark: {
|
|
25209
|
-
type: "bar",
|
|
25210
|
-
opacity: 0
|
|
25211
|
-
},
|
|
25212
|
-
encoding: {
|
|
25213
|
-
x: {
|
|
25214
|
-
field: "bin_start",
|
|
25215
|
-
type: "nominal",
|
|
25216
|
-
axis: null
|
|
25217
|
-
},
|
|
25218
|
-
y: {
|
|
25219
|
-
aggregate: "max",
|
|
25220
|
-
type: "quantitative",
|
|
25221
|
-
axis: null
|
|
25222
|
-
},
|
|
25223
|
-
tooltip: [
|
|
25224
|
-
{
|
|
25225
|
-
field: "count",
|
|
25226
|
-
type: "quantitative",
|
|
25227
|
-
title: "nulls",
|
|
25228
|
-
format: ",d"
|
|
25229
|
-
}
|
|
25230
|
-
]
|
|
25231
|
-
}
|
|
25232
|
-
}
|
|
25233
|
-
],
|
|
25234
|
-
transform: [
|
|
25235
|
-
{
|
|
25236
|
-
filter: "datum['bin_start'] === null && datum['bin_end'] === null"
|
|
25237
|
-
}
|
|
25238
|
-
]
|
|
25239
|
-
}, f = a2, h = s;
|
|
25240
|
-
return (o == null ? void 0 : o.nulls) && (h = {
|
|
25241
|
-
...s,
|
|
25257
|
+
}, v = _, y = d;
|
|
25258
|
+
return o > 0 && (y = {
|
|
25259
|
+
...d,
|
|
25242
25260
|
config: {
|
|
25243
|
-
...
|
|
25261
|
+
...d.config,
|
|
25244
25262
|
concat: {
|
|
25245
25263
|
spacing: 0
|
|
25246
25264
|
}
|
|
@@ -25250,48 +25268,48 @@ ${n}` : "Please fix this error.";
|
|
|
25250
25268
|
y: "shared"
|
|
25251
25269
|
}
|
|
25252
25270
|
}
|
|
25253
|
-
},
|
|
25271
|
+
}, v = {
|
|
25254
25272
|
hconcat: [
|
|
25255
|
-
|
|
25256
|
-
|
|
25273
|
+
i2,
|
|
25274
|
+
_
|
|
25257
25275
|
]
|
|
25258
25276
|
}), {
|
|
25259
|
-
...
|
|
25260
|
-
...
|
|
25277
|
+
...y,
|
|
25278
|
+
...v
|
|
25261
25279
|
};
|
|
25262
25280
|
}
|
|
25263
25281
|
case "boolean": {
|
|
25264
|
-
if (!(
|
|
25265
|
-
let t2 = (
|
|
25282
|
+
if (!(a == null ? void 0 : a.true) || !(a == null ? void 0 : a.false)) return getLegacyBooleanSpec(e, d, MAX_BAR_HEIGHT);
|
|
25283
|
+
let t2 = (a == null ? void 0 : a.nulls) ? 11 : MAX_BAR_HEIGHT, n2 = [
|
|
25266
25284
|
{
|
|
25267
25285
|
value: "true",
|
|
25268
|
-
count:
|
|
25286
|
+
count: a.true
|
|
25269
25287
|
},
|
|
25270
25288
|
{
|
|
25271
25289
|
value: "false",
|
|
25272
|
-
count:
|
|
25290
|
+
count: a.false
|
|
25273
25291
|
}
|
|
25274
25292
|
];
|
|
25275
|
-
(
|
|
25293
|
+
(a == null ? void 0 : a.nulls) && n2.push({
|
|
25276
25294
|
value: "null",
|
|
25277
|
-
count:
|
|
25295
|
+
count: a.nulls
|
|
25278
25296
|
});
|
|
25279
25297
|
let i2 = {
|
|
25280
25298
|
field: "count",
|
|
25281
25299
|
type: "quantitative",
|
|
25282
25300
|
format: ",d"
|
|
25283
|
-
},
|
|
25284
|
-
return Number.isNaN(
|
|
25301
|
+
}, o2 = [], s2 = Number(a.total) || Number(a.true) + Number(a.false) + Number(a.nulls);
|
|
25302
|
+
return Number.isNaN(s2) || (i2 = {
|
|
25285
25303
|
field: "count_with_percent",
|
|
25286
25304
|
type: "nominal",
|
|
25287
25305
|
title: "Count"
|
|
25288
|
-
},
|
|
25306
|
+
}, o2 = [
|
|
25289
25307
|
{
|
|
25290
|
-
calculate: `format(datum.count, ',d') + ' (' + format(datum.count / ${
|
|
25308
|
+
calculate: `format(datum.count, ',d') + ' (' + format(datum.count / ${s2} * 100, '.1f') + '%)'`,
|
|
25291
25309
|
as: "count_with_percent"
|
|
25292
25310
|
}
|
|
25293
25311
|
]), {
|
|
25294
|
-
...
|
|
25312
|
+
...d,
|
|
25295
25313
|
data: {
|
|
25296
25314
|
values: n2,
|
|
25297
25315
|
name: "boolean_values"
|
|
@@ -25309,7 +25327,7 @@ ${n}` : "Please fix this error.";
|
|
|
25309
25327
|
"false",
|
|
25310
25328
|
"null"
|
|
25311
25329
|
],
|
|
25312
|
-
scale: (
|
|
25330
|
+
scale: (a == null ? void 0 : a.nulls) ? {
|
|
25313
25331
|
paddingInner: 1
|
|
25314
25332
|
} : void 0,
|
|
25315
25333
|
axis: {
|
|
@@ -25353,7 +25371,7 @@ ${n}` : "Please fix this error.";
|
|
|
25353
25371
|
i2
|
|
25354
25372
|
]
|
|
25355
25373
|
},
|
|
25356
|
-
transform:
|
|
25374
|
+
transform: o2,
|
|
25357
25375
|
layer: [
|
|
25358
25376
|
{
|
|
25359
25377
|
mark: {
|
|
@@ -25383,19 +25401,19 @@ ${n}` : "Please fix this error.";
|
|
|
25383
25401
|
}
|
|
25384
25402
|
case "string": {
|
|
25385
25403
|
if (!i) return null;
|
|
25386
|
-
let t2 = Number(
|
|
25404
|
+
let t2 = Number(a == null ? void 0 : a.total) || n.reduce((e2, t3) => e2 + t3.count, 0), o2 = "value", s2 = [], c2 = 0;
|
|
25387
25405
|
for (let e2 of n) {
|
|
25388
|
-
let n2 =
|
|
25389
|
-
|
|
25406
|
+
let n2 = c2 + e2.count, i2 = (c2 + n2) / 2, a2 = (n2 - c2) / t2;
|
|
25407
|
+
s2.push({
|
|
25390
25408
|
count: e2.count,
|
|
25391
25409
|
value: e2.value,
|
|
25392
|
-
xStart:
|
|
25410
|
+
xStart: c2,
|
|
25393
25411
|
xEnd: n2,
|
|
25394
25412
|
xMid: i2,
|
|
25395
|
-
proportion:
|
|
25396
|
-
}),
|
|
25413
|
+
proportion: a2
|
|
25414
|
+
}), c2 = n2;
|
|
25397
25415
|
}
|
|
25398
|
-
let
|
|
25416
|
+
let f2 = [
|
|
25399
25417
|
{
|
|
25400
25418
|
calculate: t2 ? `datum.count / ${t2}` : "0",
|
|
25401
25419
|
as: "percent"
|
|
@@ -25426,7 +25444,7 @@ ${n}` : "Please fix this error.";
|
|
|
25426
25444
|
},
|
|
25427
25445
|
color: {
|
|
25428
25446
|
condition: {
|
|
25429
|
-
test: `datum.${
|
|
25447
|
+
test: `datum.${o2} == "None" || datum.${o2} == "null"`,
|
|
25430
25448
|
value: NULL_BAR_COLOR
|
|
25431
25449
|
},
|
|
25432
25450
|
value: BAR_COLOR
|
|
@@ -25442,7 +25460,7 @@ ${n}` : "Please fix this error.";
|
|
|
25442
25460
|
},
|
|
25443
25461
|
tooltip: [
|
|
25444
25462
|
{
|
|
25445
|
-
field:
|
|
25463
|
+
field: o2,
|
|
25446
25464
|
type: "nominal",
|
|
25447
25465
|
title: e
|
|
25448
25466
|
},
|
|
@@ -25479,28 +25497,28 @@ ${n}` : "Please fix this error.";
|
|
|
25479
25497
|
},
|
|
25480
25498
|
transform: [
|
|
25481
25499
|
{
|
|
25482
|
-
calculate: `datum.proportion > 0.5 ? slice(datum.${
|
|
25500
|
+
calculate: `datum.proportion > 0.5 ? slice(datum.${o2}, 0, 8) : datum.proportion > 0.2 ? slice(datum.${o2}, 0, 3) : datum.proportion > 0.1 ? slice(datum.${o2}, 0, 1) : ''`,
|
|
25483
25501
|
as: "clipped_text"
|
|
25484
25502
|
}
|
|
25485
25503
|
]
|
|
25486
25504
|
};
|
|
25487
25505
|
return {
|
|
25488
|
-
...
|
|
25506
|
+
...d,
|
|
25489
25507
|
data: {
|
|
25490
|
-
values:
|
|
25508
|
+
values: s2,
|
|
25491
25509
|
name: "value_counts"
|
|
25492
25510
|
},
|
|
25493
25511
|
layer: [
|
|
25494
25512
|
h,
|
|
25495
25513
|
_
|
|
25496
25514
|
],
|
|
25497
|
-
transform:
|
|
25515
|
+
transform: f2
|
|
25498
25516
|
};
|
|
25499
25517
|
}
|
|
25500
25518
|
case "unknown":
|
|
25501
25519
|
return null;
|
|
25502
25520
|
default:
|
|
25503
|
-
return logNever(
|
|
25521
|
+
return logNever(f), null;
|
|
25504
25522
|
}
|
|
25505
25523
|
}
|
|
25506
25524
|
}, __publicField(_a, "EMPTY", new _a([], /* @__PURE__ */ new Map(), {}, {}, {}, {
|
|
@@ -25964,17 +25982,17 @@ ${n}` : "Please fix this error.";
|
|
|
25964
25982
|
});
|
|
25965
25983
|
}), Objects.entries(t);
|
|
25966
25984
|
};
|
|
25967
|
-
generateColumns = function({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: i, textJustifyColumns:
|
|
25968
|
-
let
|
|
25985
|
+
generateColumns = function({ rowHeaders: e, selection: t, fieldTypes: n, chartSpecModel: i, textJustifyColumns: s, wrappedColumns: c, headerTooltip: d, showDataTypes: f, calculateTopKRows: h, fractionDigitsByColumn: _, columnWidths: v }) {
|
|
25986
|
+
let y = new Set(e.map(([e2]) => e2)), S = Maps.keyBy(n, (e2) => e2[0]), w = (t2) => {
|
|
25969
25987
|
var _a2, _b;
|
|
25970
|
-
let n2 = (_a2 =
|
|
25988
|
+
let n2 = (_a2 = S.get(t2)) == null ? void 0 : _a2[1], i2 = y.has(t2);
|
|
25971
25989
|
if (i2 || !n2) {
|
|
25972
25990
|
let n3 = (_b = e.find(([e2]) => e2 === t2)) == null ? void 0 : _b[1];
|
|
25973
25991
|
return {
|
|
25974
25992
|
rowHeader: i2,
|
|
25975
25993
|
dtype: n3 == null ? void 0 : n3[1],
|
|
25976
25994
|
dataType: n3 == null ? void 0 : n3[0],
|
|
25977
|
-
minFractionDigits:
|
|
25995
|
+
minFractionDigits: _ == null ? void 0 : _[t2]
|
|
25978
25996
|
};
|
|
25979
25997
|
}
|
|
25980
25998
|
return {
|
|
@@ -25982,35 +26000,35 @@ ${n}` : "Please fix this error.";
|
|
|
25982
26000
|
filterType: getFilterTypeForFieldType(n2[0]),
|
|
25983
26001
|
dtype: n2[1],
|
|
25984
26002
|
dataType: n2[0],
|
|
25985
|
-
minFractionDigits:
|
|
26003
|
+
minFractionDigits: _ == null ? void 0 : _[t2]
|
|
25986
26004
|
};
|
|
25987
|
-
},
|
|
25988
|
-
if (
|
|
25989
|
-
let t2 =
|
|
26005
|
+
}, E = (e2) => {
|
|
26006
|
+
if (s == null ? void 0 : s[e2]) return s[e2];
|
|
26007
|
+
let t2 = w(e2).dataType;
|
|
25990
26008
|
if (isNumericType(t2)) return "right";
|
|
25991
|
-
},
|
|
25992
|
-
...
|
|
25993
|
-
...n.map(([e2]) => e2)
|
|
25994
|
-
],
|
|
25995
|
-
|
|
25996
|
-
let
|
|
26009
|
+
}, O = [
|
|
26010
|
+
...y,
|
|
26011
|
+
...n.filter(([e2]) => y.has(e2) ? (Logger.warn(`Skipping field type for row header column ${e2}`), false) : true).map(([e2]) => e2)
|
|
26012
|
+
], A = O.indexOf(INDEX_COLUMN_NAME);
|
|
26013
|
+
A !== -1 && O.splice(A, 1);
|
|
26014
|
+
let M = O.map((e2, n2) => ({
|
|
25997
26015
|
id: e2 || `__m_column__${n2}`,
|
|
25998
26016
|
accessorFn: (t2) => t2[e2],
|
|
25999
|
-
enableHiding: !
|
|
26017
|
+
enableHiding: !y.has(e2) && e2 !== "",
|
|
26000
26018
|
header: ({ column: t2, table: n3 }) => {
|
|
26001
26019
|
var _a2;
|
|
26002
|
-
let
|
|
26003
|
-
className: cn("flex flex-row gap-1",
|
|
26020
|
+
let a = i == null ? void 0 : i.getColumnStats(e2), c2 = (_a2 = t2.columnDef.meta) == null ? void 0 : _a2.dtype, _2 = d == null ? void 0 : d[e2], v2 = s == null ? void 0 : s[e2], S2 = f && c2 ? (0, import_jsx_runtime.jsxs)("div", {
|
|
26021
|
+
className: cn("flex flex-row gap-1", v2 === "center" && "justify-center", v2 === "right" && "justify-end"),
|
|
26004
26022
|
children: [
|
|
26005
26023
|
(0, import_jsx_runtime.jsx)("span", {
|
|
26006
26024
|
className: "text-xs text-muted-foreground",
|
|
26007
|
-
children:
|
|
26025
|
+
children: c2
|
|
26008
26026
|
}),
|
|
26009
|
-
|
|
26027
|
+
a && typeof a.nulls == "number" && a.nulls > 0 && (0, import_jsx_runtime.jsxs)("span", {
|
|
26010
26028
|
className: "text-xs text-muted-foreground",
|
|
26011
26029
|
children: [
|
|
26012
26030
|
"(nulls: ",
|
|
26013
|
-
|
|
26031
|
+
a.nulls,
|
|
26014
26032
|
")"
|
|
26015
26033
|
]
|
|
26016
26034
|
})
|
|
@@ -26026,12 +26044,12 @@ ${n}` : "Please fix this error.";
|
|
|
26026
26044
|
}) : w2,
|
|
26027
26045
|
subheader: S2,
|
|
26028
26046
|
column: t2,
|
|
26029
|
-
justify:
|
|
26030
|
-
calculateTopKRows:
|
|
26047
|
+
justify: v2,
|
|
26048
|
+
calculateTopKRows: h,
|
|
26031
26049
|
table: n3
|
|
26032
26050
|
});
|
|
26033
|
-
return
|
|
26034
|
-
className: cn("flex flex-col h-full pt-0.5 pb-3 justify-between items-start",
|
|
26051
|
+
return y.has(e2) ? E2 : (0, import_jsx_runtime.jsxs)("div", {
|
|
26052
|
+
className: cn("flex flex-col h-full pt-0.5 pb-3 justify-between items-start", v2 === "center" && "items-center", v2 === "right" && "items-end"),
|
|
26035
26053
|
children: [
|
|
26036
26054
|
E2,
|
|
26037
26055
|
(0, import_jsx_runtime.jsx)(TableColumnSummary, {
|
|
@@ -26040,42 +26058,42 @@ ${n}` : "Please fix this error.";
|
|
|
26040
26058
|
]
|
|
26041
26059
|
});
|
|
26042
26060
|
},
|
|
26043
|
-
cell: ({ column: n3, renderValue: i2, getValue:
|
|
26061
|
+
cell: ({ column: n3, renderValue: i2, getValue: a, cell: o }) => {
|
|
26044
26062
|
var _a2, _b;
|
|
26045
|
-
function
|
|
26063
|
+
function s2() {
|
|
26046
26064
|
var _a3;
|
|
26047
26065
|
t !== "single-cell" && t !== "multi-cell" || ((_a3 = o.toggleSelected) == null ? void 0 : _a3.call(o));
|
|
26048
26066
|
}
|
|
26049
|
-
let d2 =
|
|
26067
|
+
let d2 = E(e2), f2 = c == null ? void 0 : c.includes(e2), h2 = ((_a2 = o == null ? void 0 : o.getIsSelected) == null ? void 0 : _a2.call(o)) || false, _2 = (t === "single-cell" || t === "multi-cell") && !h2, v2 = (_b = n3.columnDef.meta) == null ? void 0 : _b.dataType, S2 = renderCellValue({
|
|
26050
26068
|
column: n3,
|
|
26051
26069
|
renderValue: i2,
|
|
26052
|
-
getValue:
|
|
26053
|
-
selectCell:
|
|
26070
|
+
getValue: a,
|
|
26071
|
+
selectCell: s2,
|
|
26054
26072
|
cellStyles: getCellStyleClass({
|
|
26055
26073
|
justify: d2,
|
|
26056
26074
|
wrapped: f2,
|
|
26057
26075
|
canSelectCell: _2,
|
|
26058
26076
|
isSelected: h2,
|
|
26059
|
-
isNumeric: isNumericType(
|
|
26077
|
+
isNumeric: isNumericType(v2)
|
|
26060
26078
|
})
|
|
26061
26079
|
});
|
|
26062
|
-
return
|
|
26080
|
+
return y.has(e2) ? (0, import_jsx_runtime.jsx)("b", {
|
|
26063
26081
|
children: S2
|
|
26064
26082
|
}) : S2;
|
|
26065
26083
|
},
|
|
26066
26084
|
filterFn: void 0,
|
|
26067
26085
|
enableSorting: !!e2,
|
|
26068
26086
|
meta: {
|
|
26069
|
-
...
|
|
26070
|
-
width:
|
|
26087
|
+
...w(e2),
|
|
26088
|
+
width: v == null ? void 0 : v[e2]
|
|
26071
26089
|
},
|
|
26072
|
-
...(
|
|
26073
|
-
size:
|
|
26074
|
-
minSize:
|
|
26075
|
-
maxSize:
|
|
26090
|
+
...(v == null ? void 0 : v[e2]) === void 0 ? {} : {
|
|
26091
|
+
size: v[e2],
|
|
26092
|
+
minSize: v[e2],
|
|
26093
|
+
maxSize: v[e2]
|
|
26076
26094
|
}
|
|
26077
26095
|
}));
|
|
26078
|
-
return (t === "single" || t === "multi") &&
|
|
26096
|
+
return (t === "single" || t === "multi") && M.unshift({
|
|
26079
26097
|
id: "__select__",
|
|
26080
26098
|
maxSize: 40,
|
|
26081
26099
|
header: ({ table: e2 }) => t === "multi" ? (0, import_jsx_runtime.jsx)(Checkbox, {
|
|
@@ -26097,7 +26115,7 @@ ${n}` : "Please fix this error.";
|
|
|
26097
26115
|
}),
|
|
26098
26116
|
enableSorting: false,
|
|
26099
26117
|
enableHiding: false
|
|
26100
|
-
}),
|
|
26118
|
+
}), M;
|
|
26101
26119
|
};
|
|
26102
26120
|
var PopoutColumn = ({ cellStyles: e, selectCell: t, rawStringValue: n, edges: i, contentClassName: a, buttonText: s, wrapped: c, children: d }) => {
|
|
26103
26121
|
let f = i !== void 0 && (i.leading.length > 0 || i.trailing.length > 0) ? n.slice(i.leading.length, n.length - i.trailing.length) : n;
|
|
@@ -26636,7 +26654,7 @@ ${n}` : "Please fix this error.";
|
|
|
26636
26654
|
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 }) {
|
|
26637
26655
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26638
26656
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26639
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s),
|
|
26657
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), fJ = (0, import_react.useRef)({
|
|
26640
26658
|
callbacks: {
|
|
26641
26659
|
onCollapse: f,
|
|
26642
26660
|
onExpand: h,
|
|
@@ -26656,12 +26674,12 @@ ${n}` : "Please fix this error.";
|
|
|
26656
26674
|
(0, import_react.useRef)({
|
|
26657
26675
|
didLogMissingDefaultSizeWarning: false
|
|
26658
26676
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26659
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26677
|
+
let { callbacks: e2, constraints: t2 } = fJ.current, o2 = {
|
|
26660
26678
|
...t2
|
|
26661
26679
|
};
|
|
26662
|
-
|
|
26680
|
+
fJ.current.id = $, fJ.current.idIsFromProps = s !== void 0, fJ.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(fJ.current, o2);
|
|
26663
26681
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26664
|
-
let e2 =
|
|
26682
|
+
let e2 = fJ.current;
|
|
26665
26683
|
return q(e2), () => {
|
|
26666
26684
|
Q(e2);
|
|
26667
26685
|
};
|
|
@@ -26672,25 +26690,25 @@ ${n}` : "Please fix this error.";
|
|
|
26672
26690
|
Q
|
|
26673
26691
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26674
26692
|
collapse: () => {
|
|
26675
|
-
O(
|
|
26693
|
+
O(fJ.current);
|
|
26676
26694
|
},
|
|
26677
26695
|
expand: (e2) => {
|
|
26678
|
-
A(
|
|
26696
|
+
A(fJ.current, e2);
|
|
26679
26697
|
},
|
|
26680
26698
|
getId() {
|
|
26681
26699
|
return $;
|
|
26682
26700
|
},
|
|
26683
26701
|
getSize() {
|
|
26684
|
-
return M(
|
|
26702
|
+
return M(fJ.current);
|
|
26685
26703
|
},
|
|
26686
26704
|
isCollapsed() {
|
|
26687
|
-
return U(
|
|
26705
|
+
return U(fJ.current);
|
|
26688
26706
|
},
|
|
26689
26707
|
isExpanded() {
|
|
26690
|
-
return !U(
|
|
26708
|
+
return !U(fJ.current);
|
|
26691
26709
|
},
|
|
26692
26710
|
resize: (e2) => {
|
|
26693
|
-
J(
|
|
26711
|
+
J(fJ.current, e2);
|
|
26694
26712
|
}
|
|
26695
26713
|
}), [
|
|
26696
26714
|
O,
|
|
@@ -26700,21 +26718,21 @@ ${n}` : "Please fix this error.";
|
|
|
26700
26718
|
$,
|
|
26701
26719
|
J
|
|
26702
26720
|
]);
|
|
26703
|
-
let
|
|
26721
|
+
let pJ = I(fJ.current, a);
|
|
26704
26722
|
return (0, import_react.createElement)(S, {
|
|
26705
26723
|
...w,
|
|
26706
26724
|
children: e,
|
|
26707
26725
|
className: t,
|
|
26708
26726
|
id: $,
|
|
26709
26727
|
style: {
|
|
26710
|
-
...
|
|
26728
|
+
...pJ,
|
|
26711
26729
|
...y
|
|
26712
26730
|
},
|
|
26713
26731
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26714
26732
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26715
26733
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26716
26734
|
[DATA_ATTRIBUTES.panelId]: $,
|
|
26717
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26735
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + pJ.flexGrow).toFixed(1)
|
|
26718
26736
|
});
|
|
26719
26737
|
}
|
|
26720
26738
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27499,13 +27517,13 @@ ${n}` : "Please fix this error.";
|
|
|
27499
27517
|
}, [
|
|
27500
27518
|
S,
|
|
27501
27519
|
E
|
|
27502
|
-
]),
|
|
27520
|
+
]), fJ = (0, import_react.useCallback)((e2) => {
|
|
27503
27521
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27504
27522
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27505
|
-
}, []),
|
|
27523
|
+
}, []), pJ = (0, import_react.useCallback)((e2) => {
|
|
27506
27524
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27507
27525
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27508
|
-
}, []),
|
|
27526
|
+
}, []), mJ = (0, import_react.useCallback)((e2) => {
|
|
27509
27527
|
let { panelDataArray: t2 } = K.current;
|
|
27510
27528
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27511
27529
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27537,7 +27555,7 @@ ${n}` : "Please fix this error.";
|
|
|
27537
27555
|
e2.layout = [];
|
|
27538
27556
|
};
|
|
27539
27557
|
}, []);
|
|
27540
|
-
let
|
|
27558
|
+
let hJ = (0, import_react.useCallback)((e2) => {
|
|
27541
27559
|
let t2 = false, n2 = y.current;
|
|
27542
27560
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27543
27561
|
n3.preventDefault();
|
|
@@ -27555,7 +27573,7 @@ ${n}` : "Please fix this error.";
|
|
|
27555
27573
|
}), I2 = !compareLayouts(f2, A2);
|
|
27556
27574
|
(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));
|
|
27557
27575
|
};
|
|
27558
|
-
}, []),
|
|
27576
|
+
}, []), gJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27559
27577
|
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);
|
|
27560
27578
|
assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
|
|
27561
27579
|
let d2 = adjustLayoutByDelta({
|
|
@@ -27567,12 +27585,12 @@ ${n}` : "Please fix this error.";
|
|
|
27567
27585
|
trigger: "imperative-api"
|
|
27568
27586
|
});
|
|
27569
27587
|
compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
|
|
27570
|
-
}, []),
|
|
27588
|
+
}, []), _J = (0, import_react.useCallback)((e2, t2) => {
|
|
27571
27589
|
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);
|
|
27572
|
-
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) ||
|
|
27590
|
+
h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || gJ(e2, s2) : h2 < f2 ? gJ(e2, f2) : h2 > d2 && gJ(e2, d2));
|
|
27573
27591
|
}, [
|
|
27574
|
-
|
|
27575
|
-
]),
|
|
27592
|
+
gJ
|
|
27593
|
+
]), vJ = (0, import_react.useCallback)((e2, t2) => {
|
|
27576
27594
|
let { direction: n2 } = U.current, { layout: i2 } = K.current;
|
|
27577
27595
|
if (!y.current) return;
|
|
27578
27596
|
let a2 = getResizeHandleElement(e2, y.current);
|
|
@@ -27584,14 +27602,14 @@ ${n}` : "Please fix this error.";
|
|
|
27584
27602
|
initialCursorPosition: o2,
|
|
27585
27603
|
initialLayout: i2
|
|
27586
27604
|
});
|
|
27587
|
-
}, []),
|
|
27605
|
+
}, []), yJ = (0, import_react.useCallback)(() => {
|
|
27588
27606
|
w(null);
|
|
27589
|
-
}, []),
|
|
27607
|
+
}, []), bJ = (0, import_react.useCallback)((e2) => {
|
|
27590
27608
|
let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
|
|
27591
27609
|
n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
|
|
27592
27610
|
}, [
|
|
27593
27611
|
A
|
|
27594
|
-
]),
|
|
27612
|
+
]), xJ = (0, import_react.useMemo)(() => ({
|
|
27595
27613
|
collapsePanel: q,
|
|
27596
27614
|
direction: i,
|
|
27597
27615
|
dragState: S,
|
|
@@ -27599,15 +27617,15 @@ ${n}` : "Please fix this error.";
|
|
|
27599
27617
|
getPanelSize: Q,
|
|
27600
27618
|
getPanelStyle: $,
|
|
27601
27619
|
groupId: v,
|
|
27602
|
-
isPanelCollapsed:
|
|
27603
|
-
isPanelExpanded:
|
|
27604
|
-
reevaluatePanelConstraints:
|
|
27605
|
-
registerPanel:
|
|
27606
|
-
registerResizeHandle:
|
|
27607
|
-
resizePanel:
|
|
27608
|
-
startDragging:
|
|
27609
|
-
stopDragging:
|
|
27610
|
-
unregisterPanel:
|
|
27620
|
+
isPanelCollapsed: fJ,
|
|
27621
|
+
isPanelExpanded: pJ,
|
|
27622
|
+
reevaluatePanelConstraints: _J,
|
|
27623
|
+
registerPanel: mJ,
|
|
27624
|
+
registerResizeHandle: hJ,
|
|
27625
|
+
resizePanel: gJ,
|
|
27626
|
+
startDragging: vJ,
|
|
27627
|
+
stopDragging: yJ,
|
|
27628
|
+
unregisterPanel: bJ,
|
|
27611
27629
|
panelGroupElement: y.current
|
|
27612
27630
|
}), [
|
|
27613
27631
|
q,
|
|
@@ -27617,16 +27635,16 @@ ${n}` : "Please fix this error.";
|
|
|
27617
27635
|
Q,
|
|
27618
27636
|
$,
|
|
27619
27637
|
v,
|
|
27620
|
-
sJ,
|
|
27621
|
-
cJ,
|
|
27622
27638
|
fJ,
|
|
27623
|
-
lJ,
|
|
27624
|
-
uJ,
|
|
27625
|
-
dJ,
|
|
27626
27639
|
pJ,
|
|
27640
|
+
_J,
|
|
27627
27641
|
mJ,
|
|
27628
|
-
hJ
|
|
27629
|
-
|
|
27642
|
+
hJ,
|
|
27643
|
+
gJ,
|
|
27644
|
+
vJ,
|
|
27645
|
+
yJ,
|
|
27646
|
+
bJ
|
|
27647
|
+
]), SJ = {
|
|
27630
27648
|
display: "flex",
|
|
27631
27649
|
flexDirection: i === "horizontal" ? "row" : "column",
|
|
27632
27650
|
height: "100%",
|
|
@@ -27634,7 +27652,7 @@ ${n}` : "Please fix this error.";
|
|
|
27634
27652
|
width: "100%"
|
|
27635
27653
|
};
|
|
27636
27654
|
return (0, import_react.createElement)(PanelGroupContext.Provider, {
|
|
27637
|
-
value:
|
|
27655
|
+
value: xJ
|
|
27638
27656
|
}, (0, import_react.createElement)(h, {
|
|
27639
27657
|
..._,
|
|
27640
27658
|
children: t,
|
|
@@ -27642,7 +27660,7 @@ ${n}` : "Please fix this error.";
|
|
|
27642
27660
|
id: o,
|
|
27643
27661
|
ref: y,
|
|
27644
27662
|
style: {
|
|
27645
|
-
...
|
|
27663
|
+
...SJ,
|
|
27646
27664
|
...f
|
|
27647
27665
|
},
|
|
27648
27666
|
[DATA_ATTRIBUTES.group]: "",
|
|
@@ -27719,31 +27737,31 @@ ${n}` : "Please fix this error.";
|
|
|
27719
27737
|
});
|
|
27720
27738
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27721
27739
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27722
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$,
|
|
27740
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, fJ] = (0, import_react.useState)(false), [pJ, mJ] = (0, import_react.useState)(null), hJ = (0, import_react.useRef)({
|
|
27723
27741
|
state: J
|
|
27724
27742
|
});
|
|
27725
27743
|
useIsomorphicLayoutEffect$1(() => {
|
|
27726
|
-
|
|
27744
|
+
hJ.current.state = J;
|
|
27727
27745
|
}), (0, import_react.useEffect)(() => {
|
|
27728
|
-
if (n)
|
|
27746
|
+
if (n) mJ(null);
|
|
27729
27747
|
else {
|
|
27730
27748
|
let e2 = I(q);
|
|
27731
|
-
|
|
27749
|
+
mJ(() => e2);
|
|
27732
27750
|
}
|
|
27733
27751
|
}, [
|
|
27734
27752
|
n,
|
|
27735
27753
|
q,
|
|
27736
27754
|
I
|
|
27737
27755
|
]);
|
|
27738
|
-
let
|
|
27756
|
+
let gJ = (i == null ? void 0 : i.coarse) ?? 15, _J = (i == null ? void 0 : i.fine) ?? 5;
|
|
27739
27757
|
(0, import_react.useEffect)(() => {
|
|
27740
|
-
if (n ||
|
|
27758
|
+
if (n || pJ == null) return;
|
|
27741
27759
|
let e2 = w.current;
|
|
27742
27760
|
assert(e2, "Element ref not attached");
|
|
27743
27761
|
let t2 = false;
|
|
27744
27762
|
return registerResizeHandle(q, e2, A, {
|
|
27745
|
-
coarse:
|
|
27746
|
-
fine:
|
|
27763
|
+
coarse: gJ,
|
|
27764
|
+
fine: _J
|
|
27747
27765
|
}, (e3, n2, i2) => {
|
|
27748
27766
|
if (!n2) {
|
|
27749
27767
|
Q("inactive");
|
|
@@ -27757,8 +27775,8 @@ ${n}` : "Please fix this error.";
|
|
|
27757
27775
|
break;
|
|
27758
27776
|
}
|
|
27759
27777
|
case "move": {
|
|
27760
|
-
let { state: e4 } =
|
|
27761
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27778
|
+
let { state: e4 } = hJ.current;
|
|
27779
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), pJ(i2);
|
|
27762
27780
|
break;
|
|
27763
27781
|
}
|
|
27764
27782
|
case "up": {
|
|
@@ -27770,22 +27788,22 @@ ${n}` : "Please fix this error.";
|
|
|
27770
27788
|
}
|
|
27771
27789
|
});
|
|
27772
27790
|
}, [
|
|
27773
|
-
|
|
27791
|
+
gJ,
|
|
27774
27792
|
A,
|
|
27775
27793
|
n,
|
|
27776
|
-
|
|
27794
|
+
_J,
|
|
27777
27795
|
I,
|
|
27778
27796
|
q,
|
|
27779
|
-
|
|
27797
|
+
pJ,
|
|
27780
27798
|
z,
|
|
27781
27799
|
U
|
|
27782
27800
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27783
27801
|
disabled: n,
|
|
27784
27802
|
handleId: q,
|
|
27785
|
-
resizeHandler:
|
|
27803
|
+
resizeHandler: pJ,
|
|
27786
27804
|
panelGroupElement: K
|
|
27787
27805
|
});
|
|
27788
|
-
let
|
|
27806
|
+
let vJ = {
|
|
27789
27807
|
touchAction: "none",
|
|
27790
27808
|
userSelect: "none"
|
|
27791
27809
|
};
|
|
@@ -27795,15 +27813,15 @@ ${n}` : "Please fix this error.";
|
|
|
27795
27813
|
className: t,
|
|
27796
27814
|
id: a,
|
|
27797
27815
|
onBlur: () => {
|
|
27798
|
-
|
|
27816
|
+
fJ(false), o == null ? void 0 : o();
|
|
27799
27817
|
},
|
|
27800
27818
|
onFocus: () => {
|
|
27801
|
-
|
|
27819
|
+
fJ(true), d == null ? void 0 : d();
|
|
27802
27820
|
},
|
|
27803
27821
|
ref: w,
|
|
27804
27822
|
role: "separator",
|
|
27805
27823
|
style: {
|
|
27806
|
-
...
|
|
27824
|
+
...vJ,
|
|
27807
27825
|
..._
|
|
27808
27826
|
},
|
|
27809
27827
|
tabIndex: v,
|
|
@@ -28102,7 +28120,7 @@ ${n}` : "Please fix this error.";
|
|
|
28102
28120
|
}, [
|
|
28103
28121
|
h
|
|
28104
28122
|
]), k(() => {
|
|
28105
|
-
U(6,
|
|
28123
|
+
U(6, pJ);
|
|
28106
28124
|
}, []);
|
|
28107
28125
|
let K = import_react.useMemo(() => ({
|
|
28108
28126
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -28111,7 +28129,7 @@ ${n}` : "Please fix this error.";
|
|
|
28111
28129
|
var _a2;
|
|
28112
28130
|
var a2, o2, s2;
|
|
28113
28131
|
if (!Object.is(n.current[e2], t2)) {
|
|
28114
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
28132
|
+
if (n.current[e2] = t2, e2 === "search") fJ(), Q(), U(1, $);
|
|
28115
28133
|
else if (e2 === "value") {
|
|
28116
28134
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
28117
28135
|
let e3 = document.getElementById(I);
|
|
@@ -28119,8 +28137,8 @@ ${n}` : "Please fix this error.";
|
|
|
28119
28137
|
}
|
|
28120
28138
|
if (U(7, () => {
|
|
28121
28139
|
var _a3;
|
|
28122
|
-
n.current.selectedItemId = (_a3 =
|
|
28123
|
-
}), i2 || U(5,
|
|
28140
|
+
n.current.selectedItemId = (_a3 = mJ()) == null ? void 0 : _a3.id, K.emit();
|
|
28141
|
+
}), i2 || U(5, pJ), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
28124
28142
|
let e3 = t2 ?? "";
|
|
28125
28143
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
28126
28144
|
return;
|
|
@@ -28145,12 +28163,12 @@ ${n}` : "Please fix this error.";
|
|
|
28145
28163
|
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([
|
|
28146
28164
|
e2
|
|
28147
28165
|
]))), U(3, () => {
|
|
28148
|
-
|
|
28166
|
+
fJ(), Q(), n.current.value || $(), K.emit();
|
|
28149
28167
|
}), () => {
|
|
28150
28168
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
28151
|
-
let t3 =
|
|
28169
|
+
let t3 = mJ();
|
|
28152
28170
|
U(4, () => {
|
|
28153
|
-
|
|
28171
|
+
fJ(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
28154
28172
|
});
|
|
28155
28173
|
}),
|
|
28156
28174
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -28183,7 +28201,7 @@ ${n}` : "Please fix this error.";
|
|
|
28183
28201
|
]);
|
|
28184
28202
|
});
|
|
28185
28203
|
let i2 = z.current;
|
|
28186
|
-
|
|
28204
|
+
hJ().sort((t3, n2) => {
|
|
28187
28205
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
28188
28206
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
28189
28207
|
}).forEach((e3) => {
|
|
@@ -28197,10 +28215,10 @@ ${n}` : "Please fix this error.";
|
|
|
28197
28215
|
}
|
|
28198
28216
|
function $() {
|
|
28199
28217
|
var _a2;
|
|
28200
|
-
let e2 = (_a2 =
|
|
28218
|
+
let e2 = (_a2 = hJ().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
28201
28219
|
K.setState("value", e2 || void 0);
|
|
28202
28220
|
}
|
|
28203
|
-
function
|
|
28221
|
+
function fJ() {
|
|
28204
28222
|
var _a2, _b;
|
|
28205
28223
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
28206
28224
|
n.current.filtered.count = i.current.size;
|
|
@@ -28218,43 +28236,43 @@ ${n}` : "Please fix this error.";
|
|
|
28218
28236
|
}
|
|
28219
28237
|
n.current.filtered.count = e2;
|
|
28220
28238
|
}
|
|
28221
|
-
function
|
|
28239
|
+
function pJ() {
|
|
28222
28240
|
var _a2, _b;
|
|
28223
28241
|
var e2;
|
|
28224
|
-
let t2 =
|
|
28242
|
+
let t2 = mJ();
|
|
28225
28243
|
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({
|
|
28226
28244
|
block: "nearest"
|
|
28227
28245
|
})), t2.scrollIntoView({
|
|
28228
28246
|
block: "nearest"
|
|
28229
28247
|
}));
|
|
28230
28248
|
}
|
|
28231
|
-
function
|
|
28249
|
+
function mJ() {
|
|
28232
28250
|
var _a2;
|
|
28233
28251
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
28234
28252
|
}
|
|
28235
|
-
function
|
|
28253
|
+
function hJ() {
|
|
28236
28254
|
var _a2;
|
|
28237
28255
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
28238
28256
|
}
|
|
28239
|
-
function
|
|
28240
|
-
let t2 =
|
|
28257
|
+
function gJ(e2) {
|
|
28258
|
+
let t2 = hJ()[e2];
|
|
28241
28259
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
28242
28260
|
}
|
|
28243
|
-
function
|
|
28261
|
+
function _J(e2) {
|
|
28244
28262
|
var t2;
|
|
28245
|
-
let n2 =
|
|
28263
|
+
let n2 = mJ(), i2 = hJ(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
28246
28264
|
(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));
|
|
28247
28265
|
}
|
|
28248
|
-
function
|
|
28266
|
+
function vJ(e2) {
|
|
28249
28267
|
var _a2;
|
|
28250
|
-
let t2 = (_a2 =
|
|
28268
|
+
let t2 = (_a2 = mJ()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
28251
28269
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
28252
|
-
n2 ? K.setState("value", n2.getAttribute(T)) :
|
|
28270
|
+
n2 ? K.setState("value", n2.getAttribute(T)) : _J(e2);
|
|
28253
28271
|
}
|
|
28254
|
-
let
|
|
28255
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28256
|
-
},
|
|
28257
|
-
e2.preventDefault(), e2.metaKey ?
|
|
28272
|
+
let yJ = () => gJ(hJ().length - 1), bJ = (e2) => {
|
|
28273
|
+
e2.preventDefault(), e2.metaKey ? yJ() : e2.altKey ? vJ(1) : _J(1);
|
|
28274
|
+
}, xJ = (e2) => {
|
|
28275
|
+
e2.preventDefault(), e2.metaKey ? gJ(0) : e2.altKey ? vJ(-1) : _J(-1);
|
|
28258
28276
|
};
|
|
28259
28277
|
return import_react.createElement(Primitive.div, {
|
|
28260
28278
|
ref: t,
|
|
@@ -28268,27 +28286,27 @@ ${n}` : "Please fix this error.";
|
|
|
28268
28286
|
if (!(e2.defaultPrevented || n2)) switch (e2.key) {
|
|
28269
28287
|
case "n":
|
|
28270
28288
|
case "j":
|
|
28271
|
-
E && e2.ctrlKey &&
|
|
28289
|
+
E && e2.ctrlKey && bJ(e2);
|
|
28272
28290
|
break;
|
|
28273
28291
|
case "ArrowDown":
|
|
28274
|
-
|
|
28292
|
+
bJ(e2);
|
|
28275
28293
|
break;
|
|
28276
28294
|
case "p":
|
|
28277
28295
|
case "k":
|
|
28278
|
-
E && e2.ctrlKey &&
|
|
28296
|
+
E && e2.ctrlKey && xJ(e2);
|
|
28279
28297
|
break;
|
|
28280
28298
|
case "ArrowUp":
|
|
28281
|
-
|
|
28299
|
+
xJ(e2);
|
|
28282
28300
|
break;
|
|
28283
28301
|
case "Home":
|
|
28284
|
-
e2.preventDefault(),
|
|
28302
|
+
e2.preventDefault(), gJ(0);
|
|
28285
28303
|
break;
|
|
28286
28304
|
case "End":
|
|
28287
|
-
e2.preventDefault(),
|
|
28305
|
+
e2.preventDefault(), yJ();
|
|
28288
28306
|
break;
|
|
28289
28307
|
case "Enter": {
|
|
28290
28308
|
e2.preventDefault();
|
|
28291
|
-
let t3 =
|
|
28309
|
+
let t3 = mJ();
|
|
28292
28310
|
if (t3) {
|
|
28293
28311
|
let e3 = new Event(Z);
|
|
28294
28312
|
t3.dispatchEvent(e3);
|
|
@@ -28697,153 +28715,153 @@ ${n}` : "Please fix this error.";
|
|
|
28697
28715
|
Combobox = (e) => {
|
|
28698
28716
|
let t = (0, import_compiler_runtime$35.c)(106), n, i, a, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J, Q;
|
|
28699
28717
|
t[0] === e ? (n = t[1], i = t[2], a = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23], Q = t[24]) : ({ children: n, displayValue: d, className: a, placeholder: E, value: Q, defaultValue: c, onValueChange: S, multiple: I, shouldFilter: z, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: U, search: M, onSearchChange: y, emptyState: K, chips: q, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: J, renderValue: O, ...A } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J, t[24] = Q);
|
|
28700
|
-
let $ = I === void 0 ? false : I,
|
|
28701
|
-
t[25] !== v || t[26] !== w || t[27] !==
|
|
28718
|
+
let $ = I === void 0 ? false : I, fJ = z === void 0 ? true : z, pJ = U === void 0 ? "Search..." : U, hJ = K === void 0 ? "Nothing found." : K, gJ = q === void 0 ? false : q, _J = J === void 0 ? false : J, vJ = s ?? false, yJ;
|
|
28719
|
+
t[25] !== v || t[26] !== w || t[27] !== vJ ? (yJ = {
|
|
28702
28720
|
prop: w,
|
|
28703
|
-
defaultProp:
|
|
28721
|
+
defaultProp: vJ,
|
|
28704
28722
|
onChange: v
|
|
28705
|
-
}, t[25] = v, t[26] = w, t[27] =
|
|
28706
|
-
let [
|
|
28707
|
-
t[29] === S ?
|
|
28723
|
+
}, t[25] = v, t[26] = w, t[27] = vJ, t[28] = yJ) : yJ = t[28];
|
|
28724
|
+
let [bJ, xJ] = useControllableState(yJ), SJ = bJ === void 0 ? false : bJ, CJ;
|
|
28725
|
+
t[29] === S ? CJ = t[30] : (CJ = (e2) => {
|
|
28708
28726
|
S == null ? void 0 : S(e2);
|
|
28709
|
-
}, t[29] = S, t[30] =
|
|
28710
|
-
let
|
|
28711
|
-
t[31] !== c || t[32] !==
|
|
28727
|
+
}, t[29] = S, t[30] = CJ);
|
|
28728
|
+
let wJ;
|
|
28729
|
+
t[31] !== c || t[32] !== CJ || t[33] !== Q ? (wJ = {
|
|
28712
28730
|
prop: Q,
|
|
28713
28731
|
defaultProp: c,
|
|
28714
|
-
onChange:
|
|
28715
|
-
}, t[31] = c, t[32] =
|
|
28716
|
-
let [
|
|
28717
|
-
t[35] ===
|
|
28718
|
-
let
|
|
28719
|
-
t[37] !== _ || t[38] !== $ || t[39] !==
|
|
28732
|
+
onChange: CJ
|
|
28733
|
+
}, t[31] = c, t[32] = CJ, t[33] = Q, t[34] = wJ) : wJ = t[34];
|
|
28734
|
+
let [TJ, EJ] = useControllableState(wJ), DJ;
|
|
28735
|
+
t[35] === TJ ? DJ = t[36] : (DJ = (e2) => Array.isArray(TJ) ? TJ.includes(e2) : TJ === e2, t[35] = TJ, t[36] = DJ);
|
|
28736
|
+
let OJ = DJ, kJ;
|
|
28737
|
+
t[37] !== _ || t[38] !== $ || t[39] !== xJ || t[40] !== EJ || t[41] !== TJ ? (kJ = (e2) => {
|
|
28720
28738
|
let t2 = e2;
|
|
28721
|
-
if ($) if (Array.isArray(
|
|
28722
|
-
let n2 =
|
|
28739
|
+
if ($) if (Array.isArray(TJ)) if (TJ.includes(t2)) {
|
|
28740
|
+
let n2 = TJ.filter((t3) => t3 !== e2);
|
|
28723
28741
|
t2 = n2.length > 0 ? n2 : [];
|
|
28724
28742
|
} else t2 = [
|
|
28725
|
-
...
|
|
28743
|
+
...TJ,
|
|
28726
28744
|
t2
|
|
28727
28745
|
];
|
|
28728
28746
|
else t2 = [
|
|
28729
28747
|
t2
|
|
28730
28748
|
];
|
|
28731
|
-
else
|
|
28732
|
-
|
|
28733
|
-
}, t[37] = _, t[38] = $, t[39] =
|
|
28734
|
-
let
|
|
28735
|
-
t[43] !==
|
|
28736
|
-
let
|
|
28737
|
-
t[49] !==
|
|
28738
|
-
isSelected:
|
|
28739
|
-
onSelect:
|
|
28740
|
-
}, t[49] =
|
|
28741
|
-
let
|
|
28742
|
-
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28743
|
-
let jJ;
|
|
28744
|
-
t[53] !== dJ || t[54] !== hJ ? (jJ = (e2) => {
|
|
28745
|
-
dJ && e2 || hJ(e2);
|
|
28746
|
-
}, t[53] = dJ, t[54] = hJ, t[55] = jJ) : jJ = t[55];
|
|
28747
|
-
let MJ = dJ && "cursor-not-allowed opacity-50", NJ;
|
|
28748
|
-
t[56] !== a || t[57] !== MJ ? (NJ = 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", MJ, a), t[56] = a, t[57] = MJ, t[58] = NJ) : NJ = t[58];
|
|
28749
|
-
let FJ;
|
|
28750
|
-
t[59] !== O || t[60] !== EJ || t[61] !== yJ ? (FJ = O ? O(yJ ?? null) : EJ(), t[59] = O, t[60] = EJ, t[61] = yJ, t[62] = FJ) : FJ = t[62];
|
|
28749
|
+
else TJ === e2 && (t2 = null);
|
|
28750
|
+
EJ(t2), (_ ?? $) || xJ(false);
|
|
28751
|
+
}, t[37] = _, t[38] = $, t[39] = xJ, t[40] = EJ, t[41] = TJ, t[42] = kJ) : kJ = t[42];
|
|
28752
|
+
let AJ = kJ, jJ;
|
|
28753
|
+
t[43] !== gJ || t[44] !== d || t[45] !== $ || t[46] !== E || t[47] !== TJ ? (jJ = () => $ && gJ && E ? E : TJ == null ? E ?? "--" : Array.isArray(TJ) ? TJ.length === 0 ? E ?? "--" : TJ.length === 1 && d !== void 0 ? d(TJ[0]) : `${TJ.length} selected` : d === void 0 ? E ?? "--" : d(TJ), t[43] = gJ, t[44] = d, t[45] = $, t[46] = E, t[47] = TJ, t[48] = jJ) : jJ = t[48];
|
|
28754
|
+
let MJ = jJ, NJ;
|
|
28755
|
+
t[49] !== AJ || t[50] !== OJ ? (NJ = {
|
|
28756
|
+
isSelected: OJ,
|
|
28757
|
+
onSelect: AJ
|
|
28758
|
+
}, t[49] = AJ, t[50] = OJ, t[51] = NJ) : NJ = t[51];
|
|
28759
|
+
let PJ = NJ, FJ;
|
|
28760
|
+
t[52] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (FJ = cn("relative"), t[52] = FJ) : FJ = t[52];
|
|
28751
28761
|
let IJ;
|
|
28752
|
-
t[
|
|
28762
|
+
t[53] !== _J || t[54] !== xJ ? (IJ = (e2) => {
|
|
28763
|
+
_J && e2 || xJ(e2);
|
|
28764
|
+
}, t[53] = _J, t[54] = xJ, t[55] = IJ) : IJ = t[55];
|
|
28765
|
+
let LJ = _J && "cursor-not-allowed opacity-50", RJ;
|
|
28766
|
+
t[56] !== a || t[57] !== LJ ? (RJ = 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", LJ, a), t[56] = a, t[57] = LJ, t[58] = RJ) : RJ = t[58];
|
|
28767
|
+
let zJ;
|
|
28768
|
+
t[59] !== O || t[60] !== MJ || t[61] !== TJ ? (zJ = O ? O(TJ ?? null) : MJ(), t[59] = O, t[60] = MJ, t[61] = TJ, t[62] = zJ) : zJ = t[62];
|
|
28769
|
+
let VJ;
|
|
28770
|
+
t[63] === zJ ? VJ = t[64] : (VJ = (0, import_jsx_runtime.jsx)("span", {
|
|
28753
28771
|
className: "truncate flex-1 min-w-0",
|
|
28754
|
-
children:
|
|
28755
|
-
}), t[63] =
|
|
28756
|
-
let
|
|
28757
|
-
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28772
|
+
children: zJ
|
|
28773
|
+
}), t[63] = zJ, t[64] = VJ);
|
|
28774
|
+
let UJ;
|
|
28775
|
+
t[65] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (UJ = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28758
28776
|
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28759
|
-
}), t[65] =
|
|
28760
|
-
let
|
|
28761
|
-
t[66] !==
|
|
28777
|
+
}), t[65] = UJ) : UJ = t[65];
|
|
28778
|
+
let WJ;
|
|
28779
|
+
t[66] !== _J || t[67] !== h || t[68] !== SJ || t[69] !== RJ || t[70] !== VJ ? (WJ = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28762
28780
|
asChild: true,
|
|
28763
28781
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28764
28782
|
id: h,
|
|
28765
28783
|
type: "button",
|
|
28766
|
-
className:
|
|
28767
|
-
"aria-expanded":
|
|
28768
|
-
"aria-disabled":
|
|
28784
|
+
className: RJ,
|
|
28785
|
+
"aria-expanded": SJ,
|
|
28786
|
+
"aria-disabled": _J,
|
|
28769
28787
|
children: [
|
|
28770
|
-
|
|
28771
|
-
|
|
28788
|
+
VJ,
|
|
28789
|
+
UJ
|
|
28772
28790
|
]
|
|
28773
28791
|
})
|
|
28774
|
-
}), t[66] =
|
|
28775
|
-
let
|
|
28776
|
-
t[72] !==
|
|
28777
|
-
placeholder:
|
|
28792
|
+
}), t[66] = _J, t[67] = h, t[68] = SJ, t[69] = RJ, t[70] = VJ, t[71] = WJ) : WJ = t[71];
|
|
28793
|
+
let GJ;
|
|
28794
|
+
t[72] !== pJ || t[73] !== y || t[74] !== M ? (GJ = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28795
|
+
placeholder: pJ,
|
|
28778
28796
|
rootClassName: "px-1 h-8",
|
|
28779
28797
|
autoFocus: true,
|
|
28780
28798
|
value: M,
|
|
28781
28799
|
onValueChange: y
|
|
28782
|
-
}), t[72] =
|
|
28783
|
-
let
|
|
28784
|
-
t[76] ===
|
|
28785
|
-
children:
|
|
28786
|
-
}), t[76] =
|
|
28787
|
-
let
|
|
28788
|
-
t[78] !== n || t[79] !==
|
|
28789
|
-
value:
|
|
28800
|
+
}), t[72] = pJ, t[73] = y, t[74] = M, t[75] = GJ) : GJ = t[75];
|
|
28801
|
+
let KJ;
|
|
28802
|
+
t[76] === hJ ? KJ = t[77] : (KJ = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28803
|
+
children: hJ
|
|
28804
|
+
}), t[76] = hJ, t[77] = KJ);
|
|
28805
|
+
let qJ;
|
|
28806
|
+
t[78] !== n || t[79] !== PJ ? (qJ = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28807
|
+
value: PJ,
|
|
28790
28808
|
children: n
|
|
28791
|
-
}), t[78] = n, t[79] =
|
|
28792
|
-
let
|
|
28793
|
-
t[81] !==
|
|
28809
|
+
}), t[78] = n, t[79] = PJ, t[80] = qJ) : qJ = t[80];
|
|
28810
|
+
let JJ;
|
|
28811
|
+
t[81] !== KJ || t[82] !== qJ ? (JJ = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28794
28812
|
className: "max-h-60 py-.5",
|
|
28795
28813
|
children: [
|
|
28796
|
-
|
|
28797
|
-
|
|
28814
|
+
KJ,
|
|
28815
|
+
qJ
|
|
28798
28816
|
]
|
|
28799
|
-
}), t[81] =
|
|
28800
|
-
let
|
|
28801
|
-
t[84] !== f || t[85] !==
|
|
28817
|
+
}), t[81] = KJ, t[82] = qJ, t[83] = JJ) : JJ = t[83];
|
|
28818
|
+
let YJ;
|
|
28819
|
+
t[84] !== f || t[85] !== fJ || t[86] !== GJ || t[87] !== JJ ? (YJ = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28802
28820
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28803
28821
|
align: "start",
|
|
28804
28822
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28805
28823
|
filter: f,
|
|
28806
|
-
shouldFilter:
|
|
28824
|
+
shouldFilter: fJ,
|
|
28807
28825
|
children: [
|
|
28808
|
-
|
|
28809
|
-
|
|
28826
|
+
GJ,
|
|
28827
|
+
JJ
|
|
28810
28828
|
]
|
|
28811
28829
|
})
|
|
28812
|
-
}), t[84] = f, t[85] =
|
|
28813
|
-
let
|
|
28814
|
-
t[89] !==
|
|
28815
|
-
open:
|
|
28816
|
-
onOpenChange:
|
|
28830
|
+
}), t[84] = f, t[85] = fJ, t[86] = GJ, t[87] = JJ, t[88] = YJ) : YJ = t[88];
|
|
28831
|
+
let XJ;
|
|
28832
|
+
t[89] !== SJ || t[90] !== IJ || t[91] !== WJ || t[92] !== YJ ? (XJ = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28833
|
+
open: SJ,
|
|
28834
|
+
onOpenChange: IJ,
|
|
28817
28835
|
children: [
|
|
28818
|
-
|
|
28819
|
-
|
|
28836
|
+
WJ,
|
|
28837
|
+
YJ
|
|
28820
28838
|
]
|
|
28821
|
-
}), t[89] =
|
|
28822
|
-
let
|
|
28823
|
-
t[94] !==
|
|
28839
|
+
}), t[89] = SJ, t[90] = IJ, t[91] = WJ, t[92] = YJ, t[93] = XJ) : XJ = t[93];
|
|
28840
|
+
let ZJ;
|
|
28841
|
+
t[94] !== gJ || t[95] !== i || t[96] !== _J || t[97] !== d || t[98] !== AJ || t[99] !== $ || t[100] !== TJ ? (ZJ = $ && gJ && (0, import_jsx_runtime.jsx)("div", {
|
|
28824
28842
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28825
|
-
children: Array.isArray(
|
|
28843
|
+
children: Array.isArray(TJ) && TJ.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28826
28844
|
variant: "secondary",
|
|
28827
28845
|
children: [
|
|
28828
28846
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28829
28847
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28830
28848
|
onClick: () => {
|
|
28831
|
-
|
|
28849
|
+
_J || AJ(e2);
|
|
28832
28850
|
},
|
|
28833
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28851
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", _J && "pointer-events-none")
|
|
28834
28852
|
})
|
|
28835
28853
|
]
|
|
28836
28854
|
}, String(e2)))
|
|
28837
|
-
}), t[94] =
|
|
28838
|
-
let
|
|
28839
|
-
return t[102] !== A || t[103] !==
|
|
28840
|
-
className:
|
|
28855
|
+
}), t[94] = gJ, t[95] = i, t[96] = _J, t[97] = d, t[98] = AJ, t[99] = $, t[100] = TJ, t[101] = ZJ) : ZJ = t[101];
|
|
28856
|
+
let QJ;
|
|
28857
|
+
return t[102] !== A || t[103] !== XJ || t[104] !== ZJ ? (QJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
28858
|
+
className: FJ,
|
|
28841
28859
|
...A,
|
|
28842
28860
|
children: [
|
|
28843
|
-
|
|
28844
|
-
|
|
28861
|
+
XJ,
|
|
28862
|
+
ZJ
|
|
28845
28863
|
]
|
|
28846
|
-
}), t[102] = A, t[103] =
|
|
28864
|
+
}), t[102] = A, t[103] = XJ, t[104] = ZJ, t[105] = QJ) : QJ = t[105], QJ;
|
|
28847
28865
|
};
|
|
28848
28866
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28849
28867
|
let n = (0, import_compiler_runtime$35.c)(20), { children: i, className: a, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -29594,12 +29612,12 @@ ${n}` : "Please fix this error.";
|
|
|
29594
29612
|
onChange: E,
|
|
29595
29613
|
className: s
|
|
29596
29614
|
}, c), t[31] = s, t[32] = n, t[33] = E, t[34] = c, t[35] = A, t[36] = M) : M = t[36];
|
|
29597
|
-
let
|
|
29598
|
-
return t[37] !== S || t[38] !== M ? (
|
|
29615
|
+
let I;
|
|
29616
|
+
return t[37] !== S || t[38] !== M ? (I = (0, import_jsx_runtime.jsx)("div", {
|
|
29599
29617
|
onPasteCapture: S,
|
|
29600
29618
|
className: "contents",
|
|
29601
29619
|
children: M
|
|
29602
|
-
}), t[37] = S, t[38] = M, t[39] =
|
|
29620
|
+
}), t[37] = S, t[38] = M, t[39] = I) : I = t[39], I;
|
|
29603
29621
|
};
|
|
29604
29622
|
function _temp$5(e) {
|
|
29605
29623
|
return e + 1;
|
|
@@ -29899,17 +29917,17 @@ ${n}` : "Please fix this error.";
|
|
|
29899
29917
|
searchQuery: M,
|
|
29900
29918
|
filteredOptions: z
|
|
29901
29919
|
}, t[9] = z, t[10] = n, t[11] = _, t[12] = M, t[13] = i, t[14] = U) : U = t[14];
|
|
29902
|
-
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U),
|
|
29903
|
-
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (
|
|
29920
|
+
let { open: K, setOpen: q, repin: J, visibleOptions: Q, pinnedCount: $ } = usePinning(U), fJ;
|
|
29921
|
+
t[15] !== c || t[16] !== s || t[17] !== o || t[18] !== a || t[19] !== y || t[20] !== i ? (fJ = {
|
|
29904
29922
|
value: i,
|
|
29905
29923
|
onChange: a,
|
|
29906
29924
|
multiple: o,
|
|
29907
29925
|
maxSelections: s,
|
|
29908
29926
|
allowSelectNone: c,
|
|
29909
29927
|
selected: y
|
|
29910
|
-
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] =
|
|
29911
|
-
let { isChecked:
|
|
29912
|
-
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (
|
|
29928
|
+
}, t[15] = c, t[16] = s, t[17] = o, t[18] = a, t[19] = y, t[20] = i, t[21] = fJ) : fJ = t[21];
|
|
29929
|
+
let { isChecked: pJ, toggle: mJ } = useToggle(fJ), hJ;
|
|
29930
|
+
t[22] !== z || t[23] !== s || t[24] !== o || t[25] !== a || t[26] !== n || t[27] !== M || t[28] !== i ? (hJ = {
|
|
29913
29931
|
value: i,
|
|
29914
29932
|
onChange: a,
|
|
29915
29933
|
multiple: o,
|
|
@@ -29917,24 +29935,24 @@ ${n}` : "Please fix this error.";
|
|
|
29917
29935
|
filteredOptions: z,
|
|
29918
29936
|
searchQuery: M,
|
|
29919
29937
|
maxSelections: s
|
|
29920
|
-
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] =
|
|
29921
|
-
let { bulkActions:
|
|
29922
|
-
t[30] !== J || t[31] !== I ? (
|
|
29938
|
+
}, t[22] = z, t[23] = s, t[24] = o, t[25] = a, t[26] = n, t[27] = M, t[28] = i, t[29] = hJ) : hJ = t[29];
|
|
29939
|
+
let { bulkActions: gJ } = useBulk(hJ), _J;
|
|
29940
|
+
t[30] !== J || t[31] !== I ? (_J = (e2) => {
|
|
29923
29941
|
I(e2), e2 === "" && J();
|
|
29924
|
-
}, t[30] = J, t[31] = I, t[32] =
|
|
29925
|
-
let
|
|
29926
|
-
return t[33] !==
|
|
29942
|
+
}, t[30] = J, t[31] = I, t[32] = _J) : _J = t[32];
|
|
29943
|
+
let vJ = _J, yJ;
|
|
29944
|
+
return t[33] !== gJ || t[34] !== pJ || t[35] !== O || t[36] !== K || t[37] !== $ || t[38] !== M || t[39] !== q || t[40] !== vJ || t[41] !== mJ || t[42] !== Q ? (yJ = {
|
|
29927
29945
|
searchQuery: M,
|
|
29928
|
-
setSearchQuery:
|
|
29946
|
+
setSearchQuery: vJ,
|
|
29929
29947
|
open: K,
|
|
29930
29948
|
setOpen: q,
|
|
29931
29949
|
visibleOptions: Q,
|
|
29932
29950
|
pinnedCount: $,
|
|
29933
|
-
isChecked:
|
|
29934
|
-
toggle:
|
|
29935
|
-
bulkActions:
|
|
29951
|
+
isChecked: pJ,
|
|
29952
|
+
toggle: mJ,
|
|
29953
|
+
bulkActions: gJ,
|
|
29936
29954
|
labelOf: O
|
|
29937
|
-
}, t[33] =
|
|
29955
|
+
}, t[33] = gJ, t[34] = pJ, t[35] = O, t[36] = K, t[37] = $, t[38] = M, t[39] = q, t[40] = vJ, t[41] = mJ, t[42] = Q, t[43] = yJ) : yJ = t[43], yJ;
|
|
29938
29956
|
};
|
|
29939
29957
|
const Sets = {
|
|
29940
29958
|
merge(...e) {
|
|
@@ -30263,7 +30281,7 @@ ${n}` : "Please fix this error.";
|
|
|
30263
30281
|
type: S,
|
|
30264
30282
|
operator: E,
|
|
30265
30283
|
draft: mergeNumberTextDraft(A, I)
|
|
30266
|
-
}), $ = Q === void 0,
|
|
30284
|
+
}), $ = Q === void 0, fJ = $ ? getMissingValueMessage(S, E) : "Apply filter", pJ = () => {
|
|
30267
30285
|
if (!Q) return;
|
|
30268
30286
|
let e2 = Q;
|
|
30269
30287
|
t.setColumnFilters((t2) => {
|
|
@@ -30282,20 +30300,20 @@ ${n}` : "Please fix this error.";
|
|
|
30282
30300
|
value: e2
|
|
30283
30301
|
}, n2;
|
|
30284
30302
|
}), i();
|
|
30285
|
-
},
|
|
30303
|
+
}, mJ = () => {
|
|
30286
30304
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
30287
|
-
},
|
|
30305
|
+
}, hJ = !OPERATORS_WITHOUT_VALUE.has(E), gJ = OPERATORS_BY_TYPE[S], _J = (0, import_react.useRef)(null), vJ = (0, import_react.useRef)(null);
|
|
30288
30306
|
return (0, import_react.useEffect)(() => {
|
|
30289
30307
|
var _a2, _b;
|
|
30290
|
-
let e2 = (_a2 =
|
|
30291
|
-
e2 ? e2.focus() : (_b =
|
|
30308
|
+
let e2 = (_a2 = _J.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
30309
|
+
e2 ? e2.focus() : (_b = vJ.current) == null ? void 0 : _b.focus();
|
|
30292
30310
|
}, [
|
|
30293
30311
|
S,
|
|
30294
30312
|
E
|
|
30295
30313
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
30296
30314
|
className: "flex flex-row gap-4 items-end p-3",
|
|
30297
30315
|
onSubmit: (e2) => {
|
|
30298
|
-
e2.preventDefault(),
|
|
30316
|
+
e2.preventDefault(), pJ();
|
|
30299
30317
|
},
|
|
30300
30318
|
onKeyDownCapture: (e2) => {
|
|
30301
30319
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -30336,13 +30354,13 @@ ${n}` : "Please fix this error.";
|
|
|
30336
30354
|
onValueChange: (e2) => J(e2),
|
|
30337
30355
|
children: [
|
|
30338
30356
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
30339
|
-
ref:
|
|
30357
|
+
ref: vJ,
|
|
30340
30358
|
id: s,
|
|
30341
30359
|
className: "h-6 mb-1 bg-transparent",
|
|
30342
30360
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
30343
30361
|
}),
|
|
30344
30362
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
30345
|
-
children:
|
|
30363
|
+
children: gJ.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
30346
30364
|
value: e2,
|
|
30347
30365
|
children: OPERATOR_LABELS[e2]
|
|
30348
30366
|
}, e2))
|
|
@@ -30351,8 +30369,8 @@ ${n}` : "Please fix this error.";
|
|
|
30351
30369
|
}, S)
|
|
30352
30370
|
]
|
|
30353
30371
|
}),
|
|
30354
|
-
|
|
30355
|
-
ref:
|
|
30372
|
+
hJ && (0, import_jsx_runtime.jsxs)("div", {
|
|
30373
|
+
ref: _J,
|
|
30356
30374
|
className: "flex flex-col gap-1",
|
|
30357
30375
|
children: [
|
|
30358
30376
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -30379,7 +30397,7 @@ ${n}` : "Please fix this error.";
|
|
|
30379
30397
|
className: "flex gap-1 mb-1",
|
|
30380
30398
|
children: [
|
|
30381
30399
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
30382
|
-
content:
|
|
30400
|
+
content: fJ,
|
|
30383
30401
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
30384
30402
|
className: "inline-flex",
|
|
30385
30403
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
@@ -30418,7 +30436,7 @@ ${n}` : "Please fix this error.";
|
|
|
30418
30436
|
size: "icon",
|
|
30419
30437
|
variant: "ghost",
|
|
30420
30438
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
30421
|
-
onClick:
|
|
30439
|
+
onClick: mJ,
|
|
30422
30440
|
"aria-label": "Remove filter",
|
|
30423
30441
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
30424
30442
|
className: "h-3.5 w-3.5",
|
|
@@ -32626,29 +32644,29 @@ ${n}` : "Please fix this error.";
|
|
|
32626
32644
|
}, t[16] = a, t[17] = J);
|
|
32627
32645
|
let Q = useEvent_default(J), $;
|
|
32628
32646
|
t[18] === S ? $ = t[19] : ($ = () => S(), t[18] = S, t[19] = $);
|
|
32629
|
-
let
|
|
32630
|
-
t[20] === S ? (
|
|
32647
|
+
let fJ = useEvent_default($), pJ, mJ;
|
|
32648
|
+
t[20] === S ? (pJ = t[21], mJ = t[22]) : (pJ = () => (window.addEventListener("scroll", S, {
|
|
32631
32649
|
passive: true,
|
|
32632
32650
|
capture: true
|
|
32633
32651
|
}), window.addEventListener("resize", S), () => {
|
|
32634
32652
|
window.removeEventListener("scroll", S, {
|
|
32635
32653
|
capture: true
|
|
32636
32654
|
}), window.removeEventListener("resize", S);
|
|
32637
|
-
}),
|
|
32655
|
+
}), mJ = [
|
|
32638
32656
|
S
|
|
32639
|
-
], t[20] = S, t[21] =
|
|
32640
|
-
let
|
|
32641
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
32642
|
-
let
|
|
32643
|
-
return t[25] !==
|
|
32657
|
+
], t[20] = S, t[21] = pJ, t[22] = mJ), (0, import_react.useEffect)(pJ, mJ);
|
|
32658
|
+
let hJ, gJ;
|
|
32659
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = () => v, gJ = [], t[23] = hJ, t[24] = gJ) : (hJ = t[23], gJ = t[24]), (0, import_react.useEffect)(hJ, gJ);
|
|
32660
|
+
let _J;
|
|
32661
|
+
return t[25] !== fJ || t[26] !== Q || t[27] !== q || t[28] !== U || t[29] !== S || t[30] !== d || t[31] !== o ? (_J = {
|
|
32644
32662
|
tooltipState: o,
|
|
32645
32663
|
tooltipContentId: d,
|
|
32646
32664
|
hideTooltip: S,
|
|
32647
32665
|
handleCellMouseOver: U,
|
|
32648
32666
|
handleCellMouseLeave: q,
|
|
32649
32667
|
handleCellFocus: Q,
|
|
32650
|
-
handleCellBlur:
|
|
32651
|
-
}, t[25] =
|
|
32668
|
+
handleCellBlur: fJ
|
|
32669
|
+
}, t[25] = fJ, t[26] = Q, t[27] = q, t[28] = U, t[29] = S, t[30] = d, t[31] = o, t[32] = _J) : _J = t[32], _J;
|
|
32652
32670
|
}
|
|
32653
32671
|
var import_compiler_runtime$18 = require_compiler_runtime();
|
|
32654
32672
|
const CellRangeSelectionIndicator = (0, import_react.memo)((e) => {
|
|
@@ -33925,6 +33943,13 @@ ${n}` : "Please fix this error.";
|
|
|
33925
33943
|
let n = URL.createObjectURL(e);
|
|
33926
33944
|
downloadByURL(n, t), URL.revokeObjectURL(n);
|
|
33927
33945
|
};
|
|
33946
|
+
downloadExportedFile = function({ contents: e, filename: t, mediaType: n }) {
|
|
33947
|
+
downloadBlob(new Blob([
|
|
33948
|
+
e
|
|
33949
|
+
], {
|
|
33950
|
+
type: n
|
|
33951
|
+
}), t);
|
|
33952
|
+
};
|
|
33928
33953
|
var import_compiler_runtime$11 = require_compiler_runtime();
|
|
33929
33954
|
InstallPackageButton = (e) => {
|
|
33930
33955
|
let t = (0, import_compiler_runtime$11.c)(13), { packages: n, showMaxPackages: i, className: a, onInstall: s } = e, { handleInstallPackages: c } = useInstallPackages(), d = useInstallAllowed();
|
|
@@ -34086,7 +34111,7 @@ ${n}` : "Please fix this error.";
|
|
|
34086
34111
|
filename: i2.filename
|
|
34087
34112
|
};
|
|
34088
34113
|
}, t[6] = e, t[7] = O);
|
|
34089
|
-
let A = O, M, I, z, U, K, q, J, Q, $,
|
|
34114
|
+
let A = O, M, I, z, U, K, q, J, Q, $, fJ, pJ, mJ, hJ;
|
|
34090
34115
|
if (t[8] !== E || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
34091
34116
|
let e2 = async (t2) => {
|
|
34092
34117
|
let n2 = labelForDownloadFormat(t2);
|
|
@@ -34152,10 +34177,10 @@ ${n}` : "Please fix this error.";
|
|
|
34152
34177
|
content: d,
|
|
34153
34178
|
open: o,
|
|
34154
34179
|
children: h
|
|
34155
|
-
}), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom",
|
|
34180
|
+
}), t[32] = o, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", fJ = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (pJ = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34156
34181
|
className: "text-xs text-muted-foreground",
|
|
34157
34182
|
children: "Download"
|
|
34158
|
-
}), t[36] =
|
|
34183
|
+
}), t[36] = pJ) : pJ = t[36], mJ = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34159
34184
|
onSelect: () => {
|
|
34160
34185
|
e2(t2.format);
|
|
34161
34186
|
},
|
|
@@ -34176,10 +34201,10 @@ ${n}` : "Please fix this error.";
|
|
|
34176
34201
|
]
|
|
34177
34202
|
})
|
|
34178
34203
|
]
|
|
34179
|
-
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34204
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
34180
34205
|
className: "text-xs text-muted-foreground",
|
|
34181
34206
|
children: "Copy to clipboard"
|
|
34182
|
-
}), t[37] = z, t[38] =
|
|
34207
|
+
}), t[37] = z, t[38] = hJ) : (z = t[37], hJ = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
34183
34208
|
onSelect: async () => {
|
|
34184
34209
|
try {
|
|
34185
34210
|
await a2(e3.format);
|
|
@@ -34208,30 +34233,30 @@ ${n}` : "Please fix this error.";
|
|
|
34208
34233
|
]
|
|
34209
34234
|
})
|
|
34210
34235
|
]
|
|
34211
|
-
}, e3.label)), t[8] = E, 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] =
|
|
34212
|
-
} 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],
|
|
34213
|
-
let
|
|
34214
|
-
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !==
|
|
34236
|
+
}, e3.label)), t[8] = E, 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] = fJ, t[23] = pJ, t[24] = mJ, t[25] = hJ;
|
|
34237
|
+
} 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], fJ = t[22], pJ = t[23], mJ = t[24], hJ = t[25];
|
|
34238
|
+
let gJ;
|
|
34239
|
+
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== fJ || t[44] !== pJ || t[45] !== mJ || t[46] !== hJ ? (gJ = (0, import_jsx_runtime.jsxs)(M, {
|
|
34215
34240
|
side: $,
|
|
34216
|
-
className:
|
|
34241
|
+
className: fJ,
|
|
34217
34242
|
children: [
|
|
34218
|
-
|
|
34219
|
-
|
|
34220
|
-
|
|
34243
|
+
pJ,
|
|
34244
|
+
mJ,
|
|
34245
|
+
hJ,
|
|
34221
34246
|
z,
|
|
34222
34247
|
U
|
|
34223
34248
|
]
|
|
34224
|
-
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] =
|
|
34225
|
-
let
|
|
34226
|
-
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !==
|
|
34249
|
+
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = fJ, t[44] = pJ, t[45] = mJ, t[46] = hJ, t[47] = gJ) : gJ = t[47];
|
|
34250
|
+
let _J;
|
|
34251
|
+
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== gJ ? (_J = (0, import_jsx_runtime.jsxs)(I, {
|
|
34227
34252
|
modal: K,
|
|
34228
34253
|
open: q,
|
|
34229
34254
|
onOpenChange: J,
|
|
34230
34255
|
children: [
|
|
34231
34256
|
Q,
|
|
34232
|
-
|
|
34257
|
+
gJ
|
|
34233
34258
|
]
|
|
34234
|
-
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] =
|
|
34259
|
+
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = gJ, t[54] = _J) : _J = t[54], _J;
|
|
34235
34260
|
};
|
|
34236
34261
|
function fetchJson(e) {
|
|
34237
34262
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -34327,22 +34352,22 @@ ${n}` : "Please fix this error.";
|
|
|
34327
34352
|
]
|
|
34328
34353
|
});
|
|
34329
34354
|
};
|
|
34330
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, 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:
|
|
34331
|
-
let
|
|
34355
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: a, 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: fJ, showSearch: pJ = false, searchQuery: mJ, onSearchQueryChange: hJ, showFilters: gJ = false, filters: _J, onFiltersChange: vJ, calculateTopKRows: yJ, reloading: bJ, freezeColumnsLeft: xJ, freezeColumnsRight: SJ, hiddenColumns: CJ, toggleDisplayHeader: wJ, showChartBuilder: TJ, isChartBuilderOpen: EJ, showPageSizeSelector: DJ, showTableExplorer: OJ, togglePanel: kJ, isPanelOpen: AJ, isAnyPanelOpen: jJ, viewedRowIdx: MJ, onViewedRowChange: NJ, renderTableExplorerPanel: PJ }) => {
|
|
34356
|
+
let FJ = isStaticNotebook(), IJ = !FJ, [LJ, RJ] = import_react.useState(false), { locale: zJ } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: BJ, setColumnPinning: VJ } = useColumnPinning(xJ, SJ), { columnVisibility: HJ, setColumnVisibility: UJ } = useColumnVisibility(CJ);
|
|
34332
34357
|
import_react.useEffect(() => {
|
|
34333
34358
|
let e2;
|
|
34334
|
-
return
|
|
34335
|
-
|
|
34336
|
-
}, 300) :
|
|
34359
|
+
return bJ ? e2 = setTimeout(() => {
|
|
34360
|
+
RJ(true);
|
|
34361
|
+
}, 300) : RJ(false), () => {
|
|
34337
34362
|
e2 && clearTimeout(e2);
|
|
34338
34363
|
};
|
|
34339
34364
|
}, [
|
|
34340
|
-
|
|
34365
|
+
bJ
|
|
34341
34366
|
]);
|
|
34342
|
-
function
|
|
34367
|
+
function WJ(e2, t2) {
|
|
34343
34368
|
return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
|
|
34344
34369
|
}
|
|
34345
|
-
let
|
|
34370
|
+
let GJ = useReactTable({
|
|
34346
34371
|
_features: [
|
|
34347
34372
|
ColumnPinning,
|
|
34348
34373
|
ColumnWrappingFeature,
|
|
@@ -34366,37 +34391,37 @@ ${n}` : "Please fix this error.";
|
|
|
34366
34391
|
getRowId: (e2, t2) => {
|
|
34367
34392
|
let n2 = getStableRowId(e2);
|
|
34368
34393
|
if (n2) return n2;
|
|
34369
|
-
let i2 =
|
|
34394
|
+
let i2 = WJ(e2, t2);
|
|
34370
34395
|
return String(i2);
|
|
34371
34396
|
}
|
|
34372
34397
|
} : {},
|
|
34373
|
-
locale:
|
|
34398
|
+
locale: zJ,
|
|
34374
34399
|
manualPagination: q,
|
|
34375
34400
|
getPaginationRowModel: getPaginationRowModel(),
|
|
34376
34401
|
...w ? {
|
|
34377
34402
|
onSortingChange: w
|
|
34378
34403
|
} : {},
|
|
34379
34404
|
manualSorting: y,
|
|
34380
|
-
enableSorting: !
|
|
34405
|
+
enableSorting: !FJ,
|
|
34381
34406
|
enableMultiSort: true,
|
|
34382
34407
|
getSortedRowModel: getSortedRowModel(),
|
|
34383
34408
|
manualFiltering: true,
|
|
34384
|
-
enableColumnFilters:
|
|
34409
|
+
enableColumnFilters: gJ && !FJ,
|
|
34385
34410
|
getFilteredRowModel: getFilteredRowModel(),
|
|
34386
|
-
onColumnFiltersChange:
|
|
34411
|
+
onColumnFiltersChange: vJ,
|
|
34387
34412
|
onRowSelectionChange: Q,
|
|
34388
34413
|
onCellSelectionChange: $,
|
|
34389
34414
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
34390
34415
|
enableMultiCellSelection: c === "multi-cell",
|
|
34391
|
-
onColumnPinningChange:
|
|
34392
|
-
onColumnVisibilityChange:
|
|
34416
|
+
onColumnPinningChange: VJ,
|
|
34417
|
+
onColumnVisibilityChange: UJ,
|
|
34393
34418
|
enableFocusRow: true,
|
|
34394
|
-
onFocusRowChange:
|
|
34419
|
+
onFocusRowChange: NJ,
|
|
34395
34420
|
state: {
|
|
34396
34421
|
...S ? {
|
|
34397
34422
|
sorting: S
|
|
34398
34423
|
} : {},
|
|
34399
|
-
columnFilters:
|
|
34424
|
+
columnFilters: _J,
|
|
34400
34425
|
...z ? {
|
|
34401
34426
|
pagination: z
|
|
34402
34427
|
} : J && !z ? {} : {
|
|
@@ -34407,60 +34432,60 @@ ${n}` : "Please fix this error.";
|
|
|
34407
34432
|
},
|
|
34408
34433
|
rowSelection: E ?? {},
|
|
34409
34434
|
cellSelection: O ?? [],
|
|
34410
|
-
columnVisibility:
|
|
34435
|
+
columnVisibility: HJ,
|
|
34411
34436
|
cellStyling: A,
|
|
34412
|
-
columnPinning:
|
|
34437
|
+
columnPinning: BJ,
|
|
34413
34438
|
cellHoverTemplate: M,
|
|
34414
34439
|
cellHoverTexts: I ?? {}
|
|
34415
34440
|
}
|
|
34416
|
-
}),
|
|
34441
|
+
}), KJ = (AJ == null ? void 0 : AJ(PANEL_TYPES.ROW_VIEWER)) ?? false, qJ = !J && a.length > 100, JJ = useScrollContainerHeight({
|
|
34417
34442
|
maxHeight: n,
|
|
34418
|
-
virtualize:
|
|
34419
|
-
}), [
|
|
34443
|
+
virtualize: qJ
|
|
34444
|
+
}), [YJ, XJ] = import_react.useState(null), ZJ = import_react.useMemo(() => ({
|
|
34420
34445
|
requestAddFilter: (e2) => {
|
|
34421
|
-
let t2 =
|
|
34422
|
-
t2 &&
|
|
34446
|
+
let t2 = GJ.getColumn(e2.columnId);
|
|
34447
|
+
t2 && XJ(buildEditorSnapshot(t2, {
|
|
34423
34448
|
operator: e2.operator
|
|
34424
34449
|
}));
|
|
34425
34450
|
}
|
|
34426
34451
|
}), [
|
|
34427
|
-
|
|
34428
|
-
]),
|
|
34452
|
+
GJ
|
|
34453
|
+
]), QJ = getUserColumnVisibilityCounts(GJ), $J = QJ.total > 0 && QJ.visible === 0;
|
|
34429
34454
|
return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
|
|
34430
|
-
value:
|
|
34455
|
+
value: ZJ,
|
|
34431
34456
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34432
34457
|
className: cn(e, "flex flex-col space-y-1"),
|
|
34433
34458
|
children: [
|
|
34434
34459
|
(0, import_jsx_runtime.jsx)(FilterPills, {
|
|
34435
|
-
filters:
|
|
34436
|
-
table:
|
|
34437
|
-
calculateTopKRows:
|
|
34438
|
-
addFilterSnapshot:
|
|
34439
|
-
onAddFilterSnapshotChange:
|
|
34460
|
+
filters: _J,
|
|
34461
|
+
table: GJ,
|
|
34462
|
+
calculateTopKRows: yJ,
|
|
34463
|
+
addFilterSnapshot: YJ,
|
|
34464
|
+
onAddFilterSnapshotChange: XJ
|
|
34440
34465
|
}),
|
|
34441
|
-
|
|
34466
|
+
PJ == null ? void 0 : PJ(GJ),
|
|
34442
34467
|
(0, import_jsx_runtime.jsx)(CellSelectionProvider, {
|
|
34443
34468
|
children: (0, import_jsx_runtime.jsxs)("div", {
|
|
34444
34469
|
part: "table-wrapper",
|
|
34445
34470
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
34446
34471
|
children: [
|
|
34447
|
-
|
|
34448
|
-
table:
|
|
34449
|
-
showSearch:
|
|
34450
|
-
searchQuery:
|
|
34451
|
-
onSearchQueryChange:
|
|
34452
|
-
reloading:
|
|
34453
|
-
showChartBuilder:
|
|
34454
|
-
isChartBuilderOpen:
|
|
34455
|
-
toggleDisplayHeader:
|
|
34456
|
-
showTableExplorer:
|
|
34457
|
-
togglePanel:
|
|
34458
|
-
isAnyPanelOpen:
|
|
34472
|
+
IJ && (0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
34473
|
+
table: GJ,
|
|
34474
|
+
showSearch: pJ,
|
|
34475
|
+
searchQuery: mJ,
|
|
34476
|
+
onSearchQueryChange: hJ,
|
|
34477
|
+
reloading: bJ,
|
|
34478
|
+
showChartBuilder: TJ,
|
|
34479
|
+
isChartBuilderOpen: EJ,
|
|
34480
|
+
toggleDisplayHeader: wJ,
|
|
34481
|
+
showTableExplorer: OJ,
|
|
34482
|
+
togglePanel: kJ,
|
|
34483
|
+
isAnyPanelOpen: jJ,
|
|
34459
34484
|
downloadAs: K,
|
|
34460
34485
|
sizeBytes: _,
|
|
34461
34486
|
sizeBytesIsLoading: v
|
|
34462
34487
|
}),
|
|
34463
|
-
|
|
34488
|
+
$J && (0, import_jsx_runtime.jsxs)(Banner, {
|
|
34464
34489
|
className: "mb-1 mx-2 rounded flex items-center justify-between",
|
|
34465
34490
|
children: [
|
|
34466
34491
|
(0, import_jsx_runtime.jsx)("span", {
|
|
@@ -34469,26 +34494,26 @@ ${n}` : "Please fix this error.";
|
|
|
34469
34494
|
(0, import_jsx_runtime.jsx)(Button, {
|
|
34470
34495
|
variant: "link",
|
|
34471
34496
|
size: "xs",
|
|
34472
|
-
onClick: () =>
|
|
34497
|
+
onClick: () => GJ.resetColumnVisibility(true),
|
|
34473
34498
|
children: "Unhide all"
|
|
34474
34499
|
})
|
|
34475
34500
|
]
|
|
34476
34501
|
}),
|
|
34477
34502
|
(0, import_jsx_runtime.jsxs)(Table, {
|
|
34478
34503
|
className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
|
|
34479
|
-
ref:
|
|
34504
|
+
ref: JJ,
|
|
34480
34505
|
children: [
|
|
34481
|
-
|
|
34506
|
+
LJ && (0, import_jsx_runtime.jsx)("thead", {
|
|
34482
34507
|
className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
|
|
34483
34508
|
}),
|
|
34484
|
-
renderTableHeader(
|
|
34509
|
+
renderTableHeader(GJ, qJ || !!n),
|
|
34485
34510
|
(0, import_jsx_runtime.jsx)(DataTableBody, {
|
|
34486
|
-
table:
|
|
34511
|
+
table: GJ,
|
|
34487
34512
|
columns: i,
|
|
34488
|
-
rowViewerPanelOpen:
|
|
34489
|
-
getRowIndex:
|
|
34490
|
-
viewedRowIdx:
|
|
34491
|
-
virtualize:
|
|
34513
|
+
rowViewerPanelOpen: KJ,
|
|
34514
|
+
getRowIndex: WJ,
|
|
34515
|
+
viewedRowIdx: MJ,
|
|
34516
|
+
virtualize: qJ
|
|
34492
34517
|
})
|
|
34493
34518
|
]
|
|
34494
34519
|
}),
|
|
@@ -34499,10 +34524,10 @@ ${n}` : "Please fix this error.";
|
|
|
34499
34524
|
pagination: J,
|
|
34500
34525
|
selection: c,
|
|
34501
34526
|
onRowSelectionChange: Q,
|
|
34502
|
-
table:
|
|
34503
|
-
getRowIds:
|
|
34504
|
-
showPageSizeSelector:
|
|
34505
|
-
tableLoading:
|
|
34527
|
+
table: GJ,
|
|
34528
|
+
getRowIds: fJ,
|
|
34529
|
+
showPageSizeSelector: DJ,
|
|
34530
|
+
tableLoading: bJ
|
|
34506
34531
|
})
|
|
34507
34532
|
]
|
|
34508
34533
|
})
|
|
@@ -34587,60 +34612,60 @@ ${n}` : "Please fix this error.";
|
|
|
34587
34612
|
t[6] !== a || t[7] !== S ? (E = S && S.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = S, t[8] = E) : E = t[8];
|
|
34588
34613
|
let O = E, A;
|
|
34589
34614
|
t[9] !== f || t[10] !== n ? (A = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = A) : A = t[11];
|
|
34590
|
-
let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true),
|
|
34591
|
-
t[12] !== d || t[13] !== n ? (
|
|
34615
|
+
let M = A, I = !isStaticNotebook(), [z, U] = (0, import_react.useState)(true), q;
|
|
34616
|
+
t[12] !== d || t[13] !== n ? (q = (e2) => {
|
|
34592
34617
|
n == null ? void 0 : n({
|
|
34593
34618
|
prompt: `My code gives the following error:
|
|
34594
34619
|
|
|
34595
34620
|
${d}`,
|
|
34596
34621
|
triggerImmediately: e2
|
|
34597
34622
|
});
|
|
34598
|
-
}, t[12] = d, t[13] = n, t[14] =
|
|
34599
|
-
let
|
|
34600
|
-
t[15] !== a || t[16] !== d || t[17] !== _ ? (
|
|
34623
|
+
}, t[12] = d, t[13] = n, t[14] = q) : q = t[14];
|
|
34624
|
+
let J = q, Q;
|
|
34625
|
+
t[15] !== a || t[16] !== d || t[17] !== _ ? (Q = () => {
|
|
34601
34626
|
_({
|
|
34602
34627
|
prompt: buildFixInChatPrompt(a, d)
|
|
34603
34628
|
});
|
|
34604
|
-
}, t[15] = a, t[16] = d, t[17] = _, t[18] =
|
|
34605
|
-
let
|
|
34606
|
-
t[19] === z ?
|
|
34607
|
-
let
|
|
34608
|
-
t[21] === z ?
|
|
34629
|
+
}, t[15] = a, t[16] = d, t[17] = _, t[18] = Q) : Q = t[18];
|
|
34630
|
+
let $ = Q, fJ;
|
|
34631
|
+
t[19] === z ? fJ = t[20] : (fJ = () => U(!z), t[19] = z, t[20] = fJ);
|
|
34632
|
+
let pJ = z ? "Collapse traceback" : "Expand traceback", mJ;
|
|
34633
|
+
t[21] === z ? mJ = t[22] : (mJ = z ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
34609
34634
|
className: "h-3 w-3"
|
|
34610
34635
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
34611
34636
|
className: "h-3 w-3"
|
|
34612
|
-
}), t[21] = z, t[22] =
|
|
34613
|
-
let
|
|
34614
|
-
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
34637
|
+
}), t[21] = z, t[22] = mJ);
|
|
34638
|
+
let hJ;
|
|
34639
|
+
t[23] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (hJ = (0, import_jsx_runtime.jsx)("span", {
|
|
34615
34640
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
34616
34641
|
children: "Traceback"
|
|
34617
|
-
}), t[23] =
|
|
34618
|
-
let
|
|
34619
|
-
t[24] !== z || t[25] !==
|
|
34642
|
+
}), t[23] = hJ) : hJ = t[23];
|
|
34643
|
+
let gJ;
|
|
34644
|
+
t[24] !== z || t[25] !== mJ || t[26] !== fJ || t[27] !== pJ ? (gJ = (0, import_jsx_runtime.jsxs)("button", {
|
|
34620
34645
|
type: "button",
|
|
34621
|
-
onClick:
|
|
34646
|
+
onClick: fJ,
|
|
34622
34647
|
"aria-expanded": z,
|
|
34623
|
-
"aria-label":
|
|
34648
|
+
"aria-label": pJ,
|
|
34624
34649
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
34625
34650
|
children: [
|
|
34626
|
-
|
|
34627
|
-
|
|
34651
|
+
mJ,
|
|
34652
|
+
hJ
|
|
34628
34653
|
]
|
|
34629
|
-
}), t[24] = z, t[25] =
|
|
34630
|
-
let
|
|
34631
|
-
t[29] !== s || t[30] !== z ? (
|
|
34654
|
+
}), t[24] = z, t[25] = mJ, t[26] = fJ, t[27] = pJ, t[28] = gJ) : gJ = t[28];
|
|
34655
|
+
let _J;
|
|
34656
|
+
t[29] !== s || t[30] !== z ? (_J = z && (0, import_jsx_runtime.jsx)("div", {
|
|
34632
34657
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
34633
34658
|
children: s
|
|
34634
|
-
}), t[29] = s, t[30] = z, t[31] =
|
|
34635
|
-
let
|
|
34636
|
-
t[32] !==
|
|
34659
|
+
}), t[29] = s, t[30] = z, t[31] = _J) : _J = t[31];
|
|
34660
|
+
let vJ;
|
|
34661
|
+
t[32] !== J || t[33] !== $ || t[34] !== M ? (vJ = M && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
34637
34662
|
tooltip: "Fix with AI",
|
|
34638
|
-
openPrompt: () =>
|
|
34639
|
-
applyAutofix: () =>
|
|
34640
|
-
openChat:
|
|
34641
|
-
}), t[32] =
|
|
34642
|
-
let
|
|
34643
|
-
t[36] !== O || t[37] !== S ? (
|
|
34663
|
+
openPrompt: () => J(false),
|
|
34664
|
+
applyAutofix: () => J(true),
|
|
34665
|
+
openChat: $
|
|
34666
|
+
}), t[32] = J, t[33] = $, t[34] = M, t[35] = vJ) : vJ = t[35];
|
|
34667
|
+
let yJ;
|
|
34668
|
+
t[36] !== O || t[37] !== S ? (yJ = O && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
34644
34669
|
content: "Attach pdb to the exception point.",
|
|
34645
34670
|
children: (0, import_jsx_runtime.jsxs)(Button, {
|
|
34646
34671
|
size: "xs",
|
|
@@ -34657,9 +34682,9 @@ ${d}`,
|
|
|
34657
34682
|
"Launch debugger"
|
|
34658
34683
|
]
|
|
34659
34684
|
})
|
|
34660
|
-
}), t[36] = O, t[37] = S, t[38] =
|
|
34661
|
-
let
|
|
34662
|
-
t[39] !== d || t[40] !== i ? (
|
|
34685
|
+
}), t[36] = O, t[37] = S, t[38] = yJ) : yJ = t[38];
|
|
34686
|
+
let bJ;
|
|
34687
|
+
t[39] !== d || t[40] !== i ? (bJ = I && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
|
|
34663
34688
|
children: [
|
|
34664
34689
|
(0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
34665
34690
|
asChild: true,
|
|
@@ -34727,25 +34752,25 @@ ${d}`,
|
|
|
34727
34752
|
]
|
|
34728
34753
|
})
|
|
34729
34754
|
]
|
|
34730
|
-
}), t[39] = d, t[40] = i, t[41] =
|
|
34731
|
-
let
|
|
34732
|
-
t[42] !==
|
|
34755
|
+
}), t[39] = d, t[40] = i, t[41] = bJ) : bJ = t[41];
|
|
34756
|
+
let xJ;
|
|
34757
|
+
t[42] !== vJ || t[43] !== yJ || t[44] !== bJ ? (xJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34733
34758
|
className: "flex gap-2",
|
|
34734
34759
|
children: [
|
|
34735
|
-
|
|
34736
|
-
|
|
34737
|
-
|
|
34760
|
+
vJ,
|
|
34761
|
+
yJ,
|
|
34762
|
+
bJ
|
|
34738
34763
|
]
|
|
34739
|
-
}), t[42] =
|
|
34740
|
-
let
|
|
34741
|
-
return t[46] !==
|
|
34764
|
+
}), t[42] = vJ, t[43] = yJ, t[44] = bJ, t[45] = xJ) : xJ = t[45];
|
|
34765
|
+
let SJ;
|
|
34766
|
+
return t[46] !== gJ || t[47] !== _J || t[48] !== xJ ? (SJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
34742
34767
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
34743
34768
|
children: [
|
|
34744
|
-
|
|
34745
|
-
|
|
34746
|
-
|
|
34769
|
+
gJ,
|
|
34770
|
+
_J,
|
|
34771
|
+
xJ
|
|
34747
34772
|
]
|
|
34748
|
-
}), t[46] =
|
|
34773
|
+
}), t[46] = gJ, t[47] = _J, t[48] = xJ, t[49] = SJ) : SJ = t[49], SJ;
|
|
34749
34774
|
};
|
|
34750
34775
|
function lastLine(e) {
|
|
34751
34776
|
var _a2, _b;
|
|
@@ -36181,14 +36206,14 @@ ${d}`,
|
|
|
36181
36206
|
Q
|
|
36182
36207
|
]
|
|
36183
36208
|
}), t[33] = J, t[34] = Q, t[35] = $) : $ = t[35];
|
|
36184
|
-
let
|
|
36185
|
-
return t[36] !== I || t[37] !== $ ? (
|
|
36209
|
+
let fJ;
|
|
36210
|
+
return t[36] !== I || t[37] !== $ ? (fJ = (0, import_jsx_runtime.jsxs)("div", {
|
|
36186
36211
|
className: "flex flex-col gap-3",
|
|
36187
36212
|
children: [
|
|
36188
36213
|
I,
|
|
36189
36214
|
$
|
|
36190
36215
|
]
|
|
36191
|
-
}), t[36] = I, t[37] = $, t[38] =
|
|
36216
|
+
}), t[36] = I, t[37] = $, t[38] = fJ) : fJ = t[38], fJ;
|
|
36192
36217
|
};
|
|
36193
36218
|
SlideSidebar = (e) => {
|
|
36194
36219
|
let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: a, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
|
|
@@ -36313,7 +36338,7 @@ ${d}`,
|
|
|
36313
36338
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
36314
36339
|
}
|
|
36315
36340
|
}
|
|
36316
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.
|
|
36341
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.17-dev0");
|
|
36317
36342
|
showCodeInRunModeAtom = atom(true);
|
|
36318
36343
|
atom(null);
|
|
36319
36344
|
var import_compiler_runtime = require_compiler_runtime();
|
|
@@ -36339,133 +36364,140 @@ ${d}`,
|
|
|
36339
36364
|
function _temp(e) {
|
|
36340
36365
|
return !!e.code;
|
|
36341
36366
|
}
|
|
36367
|
+
cellDomProps = function(e, t) {
|
|
36368
|
+
return {
|
|
36369
|
+
"data-cell-id": e,
|
|
36370
|
+
"data-cell-name": t,
|
|
36371
|
+
id: HTMLCellId.create(e)
|
|
36372
|
+
};
|
|
36373
|
+
};
|
|
36342
36374
|
});
|
|
36343
36375
|
export {
|
|
36344
|
-
|
|
36345
|
-
|
|
36346
|
-
|
|
36347
|
-
|
|
36348
|
-
|
|
36349
|
-
|
|
36350
|
-
|
|
36351
|
-
|
|
36352
|
-
|
|
36353
|
-
|
|
36354
|
-
|
|
36355
|
-
|
|
36356
|
-
|
|
36357
|
-
|
|
36358
|
-
|
|
36359
|
-
|
|
36360
|
-
|
|
36361
|
-
|
|
36362
|
-
|
|
36363
|
-
|
|
36364
|
-
|
|
36365
|
-
|
|
36366
|
-
|
|
36367
|
-
|
|
36368
|
-
|
|
36369
|
-
|
|
36370
|
-
|
|
36371
|
-
|
|
36372
|
-
|
|
36373
|
-
|
|
36374
|
-
|
|
36375
|
-
|
|
36376
|
-
|
|
36377
|
-
|
|
36378
|
-
|
|
36379
|
-
|
|
36380
|
-
|
|
36381
|
-
|
|
36382
|
-
|
|
36383
|
-
|
|
36384
|
-
|
|
36385
|
-
|
|
36386
|
-
|
|
36387
|
-
|
|
36388
|
-
|
|
36389
|
-
|
|
36390
|
-
|
|
36391
|
-
|
|
36392
|
-
|
|
36393
|
-
|
|
36394
|
-
|
|
36395
|
-
|
|
36396
|
-
|
|
36397
|
-
|
|
36398
|
-
|
|
36376
|
+
CommandSeparator as $,
|
|
36377
|
+
Kbd as $t,
|
|
36378
|
+
ErrorState as A,
|
|
36379
|
+
getPageIndexForRow as At,
|
|
36380
|
+
ContextMenuTrigger as B,
|
|
36381
|
+
dateToLocalISODate as Bt,
|
|
36382
|
+
downloadHTMLAsImage as C,
|
|
36383
|
+
inferFieldTypes as Ct,
|
|
36384
|
+
ColumnName as D,
|
|
36385
|
+
DelayMount as Dt,
|
|
36386
|
+
downloadSizeLimitAtom as E,
|
|
36387
|
+
ColumnChartSpecModel as Et,
|
|
36388
|
+
getUserColumnVisibilityCounts as F,
|
|
36389
|
+
TOO_MANY_ROWS as Ft,
|
|
36390
|
+
DateRangePicker as G,
|
|
36391
|
+
TabsList as Gt,
|
|
36392
|
+
useSelectList as H,
|
|
36393
|
+
dateToLocalISOTime as Ht,
|
|
36394
|
+
ContextMenu as I,
|
|
36395
|
+
toFieldTypes as It,
|
|
36396
|
+
Command as J,
|
|
36397
|
+
ChartInfoState as Jt,
|
|
36398
|
+
Combobox as K,
|
|
36399
|
+
TabsTrigger as Kt,
|
|
36400
|
+
ContextMenuContent as L,
|
|
36401
|
+
getMimeValues as Lt,
|
|
36402
|
+
prettifyRowColumnCount as M,
|
|
36403
|
+
loadTableData as Mt,
|
|
36404
|
+
prettifyRowCount as N,
|
|
36405
|
+
INDEX_COLUMN_NAME as Nt,
|
|
36406
|
+
ColumnPreviewContainer as O,
|
|
36407
|
+
useIntersectionObserver as Ot,
|
|
36408
|
+
getColumnCountForDisplay as P,
|
|
36409
|
+
SELECT_COLUMN_ID as Pt,
|
|
36410
|
+
CommandList as Q,
|
|
36411
|
+
RenderTextWithLinks as Qt,
|
|
36412
|
+
ContextMenuItem as R,
|
|
36413
|
+
isNullishFilter as Rt,
|
|
36414
|
+
downloadExportedFile as S,
|
|
36415
|
+
generateColumns as St,
|
|
36416
|
+
Filenames as T,
|
|
36417
|
+
ColumnChartContext as Tt,
|
|
36418
|
+
CompactChipRow as U,
|
|
36419
|
+
Tabs as Ut,
|
|
36420
|
+
useInternalStateWithSync as V,
|
|
36421
|
+
dateToLocalISODateTime as Vt,
|
|
36422
|
+
DatePicker as W,
|
|
36423
|
+
TabsContent as Wt,
|
|
36424
|
+
CommandInput as X,
|
|
36425
|
+
LazyVegaEmbed as Xt,
|
|
36426
|
+
CommandEmpty as Y,
|
|
36427
|
+
ChartLoadingState as Yt,
|
|
36428
|
+
CommandItem as Z,
|
|
36429
|
+
useOverflowDetection as Zt,
|
|
36430
|
+
DataTable as _,
|
|
36399
36431
|
__tla,
|
|
36400
36432
|
ChevronLeft as _n,
|
|
36401
|
-
|
|
36402
|
-
|
|
36433
|
+
TableCell as _t,
|
|
36434
|
+
DEFAULT_DECK_TRANSITION as a,
|
|
36403
36435
|
TextWrap as an,
|
|
36404
|
-
|
|
36405
|
-
|
|
36406
|
-
|
|
36407
|
-
|
|
36436
|
+
contextAwarePanelType as at,
|
|
36437
|
+
downloadBlob as b,
|
|
36438
|
+
TableRow as bt,
|
|
36439
|
+
SLIDE_TYPE_OPTIONS_BY_VALUE as c,
|
|
36408
36440
|
EyeOff as cn,
|
|
36409
|
-
|
|
36410
|
-
|
|
36441
|
+
slotsController as ct,
|
|
36442
|
+
Switch as d,
|
|
36411
36443
|
Download as dn,
|
|
36412
|
-
|
|
36413
|
-
|
|
36414
|
-
|
|
36415
|
-
|
|
36444
|
+
PanelGroup as dt,
|
|
36445
|
+
HtmlOutput as en,
|
|
36446
|
+
smartMatch as et,
|
|
36447
|
+
RadioGroup as f,
|
|
36416
36448
|
Code as fn,
|
|
36417
|
-
|
|
36418
|
-
|
|
36449
|
+
PanelResizeHandle as ft,
|
|
36450
|
+
OutputRenderer as g,
|
|
36419
36451
|
ChevronsDownUp as gn,
|
|
36420
|
-
|
|
36421
|
-
|
|
36452
|
+
TableBody as gt,
|
|
36453
|
+
OutputArea as h,
|
|
36422
36454
|
ChevronsLeft as hn,
|
|
36423
|
-
|
|
36424
|
-
|
|
36455
|
+
Table as ht,
|
|
36456
|
+
showCodeInRunModeAtom as i,
|
|
36425
36457
|
$fae977aafc393c5c$export$6b862160d295c8e as in,
|
|
36426
|
-
|
|
36427
|
-
|
|
36428
|
-
|
|
36429
|
-
|
|
36430
|
-
|
|
36431
|
-
|
|
36458
|
+
contextAwarePanelOwner as it,
|
|
36459
|
+
LoadingState as j,
|
|
36460
|
+
loadTableAndRawData as jt,
|
|
36461
|
+
EmptyState as k,
|
|
36462
|
+
usePrevious as kt,
|
|
36463
|
+
SlideSidebar as l,
|
|
36432
36464
|
Expand as ln,
|
|
36433
|
-
|
|
36434
|
-
|
|
36465
|
+
Toggle as lt,
|
|
36466
|
+
JsonOutput as m,
|
|
36435
36467
|
ChevronsRight as mn,
|
|
36436
|
-
|
|
36437
|
-
|
|
36438
|
-
|
|
36439
|
-
|
|
36440
|
-
|
|
36468
|
+
Provider$1 as mt,
|
|
36469
|
+
useNotebookCodeAvailable as n,
|
|
36470
|
+
safeLocale as nn,
|
|
36471
|
+
PANEL_TYPES as nt,
|
|
36472
|
+
DEFAULT_DECK_VERTICAL_ALIGN as o,
|
|
36441
36473
|
GripHorizontal as on,
|
|
36442
|
-
|
|
36443
|
-
|
|
36474
|
+
isCellAwareAtom as ot,
|
|
36475
|
+
RadioGroupItem as p,
|
|
36444
36476
|
ChevronsUpDown as pn,
|
|
36445
|
-
|
|
36446
|
-
|
|
36447
|
-
|
|
36448
|
-
|
|
36477
|
+
Fill as pt,
|
|
36478
|
+
ComboboxItem as q,
|
|
36479
|
+
ChartErrorState as qt,
|
|
36480
|
+
marimoVersionAtom as r,
|
|
36449
36481
|
$fae977aafc393c5c$export$588937bcd60ade55 as rn,
|
|
36450
|
-
|
|
36451
|
-
|
|
36482
|
+
contextAwarePanelOpen as rt,
|
|
36483
|
+
DEFAULT_SLIDE_TYPE as s,
|
|
36452
36484
|
Funnel as sn,
|
|
36453
|
-
|
|
36454
|
-
|
|
36455
|
-
|
|
36456
|
-
|
|
36457
|
-
|
|
36485
|
+
SlotNames as st,
|
|
36486
|
+
cellDomProps as t,
|
|
36487
|
+
EmotionCacheProvider as tn,
|
|
36488
|
+
ContextAwarePanelItem as tt,
|
|
36489
|
+
Slide as u,
|
|
36458
36490
|
Ellipsis as un,
|
|
36459
|
-
|
|
36460
|
-
|
|
36491
|
+
Panel as ut,
|
|
36492
|
+
InstallPackageButton as v,
|
|
36461
36493
|
ArrowDownWideNarrow as vn,
|
|
36462
|
-
|
|
36463
|
-
|
|
36464
|
-
|
|
36465
|
-
|
|
36466
|
-
|
|
36467
|
-
|
|
36468
|
-
|
|
36469
|
-
|
|
36470
|
-
|
|
36494
|
+
TableHead as vt,
|
|
36495
|
+
Progress as w,
|
|
36496
|
+
renderCellValue as wt,
|
|
36497
|
+
downloadByURL as x,
|
|
36498
|
+
NAMELESS_COLUMN_PREFIX as xt,
|
|
36499
|
+
ADD_PRINTING_CLASS as y,
|
|
36500
|
+
TableHeader as yt,
|
|
36501
|
+
ContextMenuSeparator as z,
|
|
36502
|
+
Maps as zt
|
|
36471
36503
|
};
|