@marimo-team/islands 0.23.9-dev34 → 0.23.9-dev37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{ConnectedDataExplorerComponent-MJy-Ll40.js → ConnectedDataExplorerComponent-BQBH2XAd.js} +4 -4
- package/dist/assets/__vite-browser-external-TaZstNaH.js +1 -0
- package/dist/assets/{worker-BoAkAmaG.js → worker-CZaLU0G8.js} +2 -2
- package/dist/{chat-ui-CpX2YcGy.js → chat-ui-BQqY0W74.js} +60 -60
- package/dist/{code-visibility-y3APpJ-N.js → code-visibility-CHwUF5vX.js} +675 -556
- package/dist/{formats-BIKFEOlR.js → formats-B7_JC7Ba.js} +1 -1
- package/dist/{glide-data-editor-DjQd6fKp.js → glide-data-editor-BmM4MCbn.js} +2 -2
- package/dist/{html-to-image-QL7QveRm.js → html-to-image-BAPmFVwS.js} +2139 -2152
- package/dist/{input-Dh0iMVFM.js → input-Ld3tUgdF.js} +1 -1
- package/dist/main.js +110 -109
- package/dist/{mermaid-CAibas-0.js → mermaid-BrUZ2PpQ.js} +2 -2
- package/dist/{process-output-C657UH7t.js → process-output-B55jxGI5.js} +1 -1
- package/dist/{reveal-component-Cbw9hzrS.js → reveal-component-DQF8h6lC.js} +5 -5
- package/dist/{spec-BKuFJIDz.js → spec-nqxKYdNH.js} +1 -1
- package/dist/{toDate-BeKbrOvs.js → toDate-DLCQY32Y.js} +1 -1
- package/dist/{useAsyncData-yp6n17kh.js → useAsyncData-3f5sSgzf.js} +1 -1
- package/dist/{useDeepCompareMemoize-DJvAHUIC.js → useDeepCompareMemoize-Cu37j2QD.js} +1 -1
- package/dist/{useLifecycle-CsYXf0Ln.js → useLifecycle-DVkMZA_I.js} +1 -1
- package/dist/{useTheme-CK_R9Mn8.js → useTheme-DNcgchnA.js} +11 -2
- package/dist/{vega-component-ikfBfkZO.js → vega-component-7odw1pLZ.js} +5 -5
- package/package.json +1 -1
- package/src/components/app-config/ai-config.tsx +74 -15
- package/src/components/chat/chat-panel.tsx +2 -2
- package/src/components/data-table/__tests__/header-items.test.tsx +220 -10
- package/src/components/data-table/column-header.tsx +17 -12
- package/src/components/data-table/export-actions.tsx +19 -12
- package/src/components/data-table/header-items.tsx +40 -16
- package/src/components/data-table/schemas.ts +2 -2
- package/src/components/editor/actions/useCellActionButton.tsx +3 -3
- package/src/components/editor/cell/code/cell-editor.tsx +7 -4
- package/src/components/editor/chrome/types.ts +13 -6
- package/src/components/editor/chrome/wrapper/app-chrome.tsx +6 -4
- package/src/components/editor/chrome/wrapper/footer-items/ai-status.tsx +10 -1
- package/src/components/editor/chrome/wrapper/sidebar.tsx +7 -5
- package/src/components/editor/errors/auto-fix.tsx +3 -3
- package/src/components/editor/navigation/__tests__/navigation.test.ts +15 -0
- package/src/components/editor/navigation/navigation.ts +5 -0
- package/src/components/editor/output/MarimoTracebackOutput.tsx +4 -3
- package/src/components/editor/renderers/cell-array.tsx +27 -24
- package/src/core/config/__tests__/config-schema.test.ts +2 -0
- package/src/core/config/config-schema.ts +1 -0
- package/src/core/config/config.ts +16 -0
- package/src/utils/__tests__/json-parser.test.ts +1 -69
- package/src/utils/json/json-parser.ts +0 -30
- package/dist/assets/__vite-browser-external-BBEFRPue.js +0 -1
|
@@ -6,14 +6,14 @@ import { _ as Logger, c as Objects, g as cn, h as Events, m as useComposedRefs,
|
|
|
6
6
|
import { t as require_react } from "./react-DA-nE2FX.js";
|
|
7
7
|
import { t as require_compiler_runtime } from "./compiler-runtime-CEbnTgxf.js";
|
|
8
8
|
import { n as Copy, r as toast, t as copyToClipboard } from "./copy-BuQpJEzp.js";
|
|
9
|
-
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as
|
|
9
|
+
import { $ as useCellActions, $t as getTracebackInfo, A as ChevronRightIcon, An as LoaderCircle, Bn as Braces, C as AccordionContent, Fn as ExternalLink, Ft as jotaiJsonStorage, Hn as import_lib, I as base64ToUint8Array, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mn as Info, Mt as useChromeActions, N as PinRightIcon, Nn as FileText, O as CheckIcon, On as NotebookPen, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, Rn as CircleX, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Trash2, V as renderHTML, Vn as esm_default, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _t as getCellDomProps, at as AnsiUp, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gn as atomWithStorage, gt as DATA_CELL_ID, ht as sanitizeHtml, j as DotFilledIcon, kn as Minus, kt as goToCellLine, l as PopoverClose, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as Spinner, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, r as MarkdownRenderer, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, wn as Wrench, yn as Close$1, z as isDataURLString, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-BAPmFVwS.js";
|
|
10
10
|
import { o as useSize, u as createLucideIcon } from "./dist-C1BYNeCR.js";
|
|
11
|
-
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-
|
|
11
|
+
import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-DVkMZA_I.js";
|
|
12
12
|
import { a as ListFilter, i as Table$1, n as $fb18d541ea1ad717$export$ad991b66133851cf, o as ChartPie, r as $5a387cc49350e6db$export$722debc0e56fea39, t as $896ba0a80a8f4d36$export$85fd5fdf27bacc79 } from "./useDateFormatter-BA4FCquG.js";
|
|
13
13
|
import { t as Check } from "./check-DTbrK0zt.js";
|
|
14
14
|
import { C as $a916eb452884faea$export$b7a616150fdb9f44, D as $b5e257d569688ac6$export$535bd6ca7f90a273, F as X, L as ChevronDown, M as usePrevious$1, N as useDirection, S as logNever, T as $18f2051aff69b9bf$export$43bb16f9c6d9e3f7, _ as menuItemVariants, b as menuSubTriggerVariants, f as selectStyles, g as menuControlVariants, h as menuControlCheckVariants, i as SelectContent, l as SelectTrigger, m as menuContentCommon, o as SelectItem, p as MENU_ITEM_DISABLED, r as Select, t as Strings, u as SelectValue, v as menuLabelVariants, w as $488c6ddbf4ef74c2$export$cc77c4ff7e8673c5, y as menuSeparatorVariants } from "./strings-Bu3vlb6W.js";
|
|
15
|
-
import { $ as $e5be200c675c3b3a$export$aca958c65c314e6c, $t as Portal, A as $d2b4bc8c273e7be6$export$24d547caef80ccd1, At as $c87311424ea30a05$export$fedb369cb70207f1, B as $64fa3d84918910a7$export$c62b8e45d58ddad9, Bt as $431fbd86ca7dc216$export$f21a1ffae260145a, C as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Ct as $8ae05eaa5c114e9c$export$7f54fc3180508a52, D as $ee014567cb39d3f0$export$ff05c3ac10437e03, Dt as $c87311424ea30a05$export$78551043582a6a98, E as $ee014567cb39d3f0$export$f551688fc98f2e09, Et as $c87311424ea30a05$export$6446a186d09e379e, F as $64fa3d84918910a7$export$2881499e37b75b9a, Ft as $d4ee10de306f2510$export$b4f377a2b6254582, G as marked, Gt as Anchor2, H as $64fa3d84918910a7$export$ef03459518577ad4, Ht as $bdb11010cef70236$export$b4cc09c592e8fdb8, I as $64fa3d84918910a7$export$29f1550f4b0d4415, It as $d4ee10de306f2510$export$cd4e5573fbe2b576, J as $d2e8511e6f209edf$export$e908e06f4b8e3402, Jt as Content2$1, Kt as Arrow2, L as $64fa3d84918910a7$export$4d86445c2cf5e3, Lt as $d4ee10de306f2510$export$e58f029f0fbfdb29, M as $01b77f81d0f07f68$export$75b6ee27786ba447, Mt as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, N as $01b77f81d0f07f68$export$b04be29aa201d4f5, Nt as $3ef42575df84b30b$export$9d1611c77c2fe928, O as $514c0188e459b4c0$export$5f1af8db9871e1d6, Ot as $c87311424ea30a05$export$9ac100e40613ea10, P as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Pt as $d4ee10de306f2510$export$4282f70798064fe0, Q as $e5be200c675c3b3a$export$a763b9476acd3eb, Qt as Label$1, R as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Rt as $f4e2df6bd15f8569$export$98658e8c59125e6a, S as $3985021b0ad6602f$export$f5b8910cec6cf069, St as $e9faafb641e167db$export$90fc3a17d93f704c, T as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Tt as $313b98861ee5dd6c$export$d6875122194c7b44, U as $64fa3d84918910a7$export$fabf2dc03a41866e, Ut as $bdb11010cef70236$export$f680877a34711e37, V as $64fa3d84918910a7$export$df3a06d6289f983e, Vt as $ff5963eb1fccf552$export$e08e3b67e392101e, Wt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, X as $e93e671b31057976$export$b8473d3665f3a75a, Xt as Item2$2, Y as $2baaea4c71418dea$export$294aa081a6c6f55d, Yt as Group, Z as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, Zt as ItemIndicator, _ as DropdownMenuSub, _t as $9446cca9a3875146$export$7d15b64cf5a3a4c4, a as NumberField, an as SubContent, at as $6c7bd7858deea686$export$cd11ab140839f11d, b as DropdownMenuTrigger, bt as $b4b717babfbb907b$export$bebd5a1431fec25d, c as prettyNumber, cn as Item, ct as $6db58dc88e78b024$export$2f817fcdc4b89ae0, d as DropdownMenuContent, dn as Search, dt as $9ab94262bd0047c7$export$420e68273165f4ec, en as RadioGroup$2, et as $e5be200c675c3b3a$export$dad6ae84456c676a, fn as Circle, ft as $3ad3f6e1647bc98d$export$80f3e147d781571c, g as DropdownMenuSeparator, gt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, h as DropdownMenuPortal, ht as _class_private_field_init, in as Sub, j as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, jt as $7215afc6de606d6b$export$de79e2c695e052f3, k as $514c0188e459b4c0$export$9afb8bc826b033ea, kt as $c87311424ea30a05$export$a11b0059900ceec8, l as prettyScientificNumber, ln as Root$2, lt as $5b160d28a433310d$export$c17fa47878dc55b6, m as DropdownMenuLabel, mt as $f6c31cce2adf654f$export$45712eceda6fad21, nn as Root3, nt as $319e236875307eab$export$a9b970dcc4ae71a9, o as maxFractionalDigits, on as SubTrigger, ot as $fca6afa0e843324b$export$87b761675e8eaa10, p as DropdownMenuItem, pn as ChevronRight, pt as $507fabe10e71c6fb$export$630ff653c5ada6a9, qt as CheckboxItem, r as Input, rn as Separator$1, rt as $f7dceffc5ad7768b$export$4e328f61c538687f, s as prettyEngineeringNumber, sn as createMenuScope, st as $fca6afa0e843324b$export$f12b703ca79dfbb1, tn as RadioItem, tt as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, u as DropdownMenu, un as createRovingFocusGroupScope, ut as $6179b936705e76d3$export$ae780daf29e6d456, v as DropdownMenuSubContent, vt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, w as $a049562f99e7db0e$export$f9c6924e160136d1, wt as $df56164dff5785e2$export$4338b53315abf666, x as $3985021b0ad6602f$export$37fb8590cf2c088c, xt as $99facab73266f662$export$5add1d006293d136, y as DropdownMenuSubTrigger, yt as $b4b717babfbb907b$export$4c063cf1350e6fed, z as $64fa3d84918910a7$export$c245e6201fed2f75, zt as $431fbd86ca7dc216$export$b204af158042fbac } from "./input-
|
|
16
|
-
import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-
|
|
15
|
+
import { $ as $e5be200c675c3b3a$export$aca958c65c314e6c, $t as Portal, A as $d2b4bc8c273e7be6$export$24d547caef80ccd1, At as $c87311424ea30a05$export$fedb369cb70207f1, B as $64fa3d84918910a7$export$c62b8e45d58ddad9, Bt as $431fbd86ca7dc216$export$f21a1ffae260145a, C as $a049562f99e7db0e$export$eb2fcfdbd7ba97d4, Ct as $8ae05eaa5c114e9c$export$7f54fc3180508a52, D as $ee014567cb39d3f0$export$ff05c3ac10437e03, Dt as $c87311424ea30a05$export$78551043582a6a98, E as $ee014567cb39d3f0$export$f551688fc98f2e09, Et as $c87311424ea30a05$export$6446a186d09e379e, F as $64fa3d84918910a7$export$2881499e37b75b9a, Ft as $d4ee10de306f2510$export$b4f377a2b6254582, G as marked, Gt as Anchor2, H as $64fa3d84918910a7$export$ef03459518577ad4, Ht as $bdb11010cef70236$export$b4cc09c592e8fdb8, I as $64fa3d84918910a7$export$29f1550f4b0d4415, It as $d4ee10de306f2510$export$cd4e5573fbe2b576, J as $d2e8511e6f209edf$export$e908e06f4b8e3402, Jt as Content2$1, Kt as Arrow2, L as $64fa3d84918910a7$export$4d86445c2cf5e3, Lt as $d4ee10de306f2510$export$e58f029f0fbfdb29, M as $01b77f81d0f07f68$export$75b6ee27786ba447, Mt as $65484d02dcb7eb3e$export$457c3d6518dd4c6f, N as $01b77f81d0f07f68$export$b04be29aa201d4f5, Nt as $3ef42575df84b30b$export$9d1611c77c2fe928, O as $514c0188e459b4c0$export$5f1af8db9871e1d6, Ot as $c87311424ea30a05$export$9ac100e40613ea10, P as $f39a9eba43920ace$export$b5d7cc18bb8d2b59, Pt as $d4ee10de306f2510$export$4282f70798064fe0, Q as $e5be200c675c3b3a$export$a763b9476acd3eb, Qt as Label$1, R as $64fa3d84918910a7$export$9d4c57ee4c6ffdd8, Rt as $f4e2df6bd15f8569$export$98658e8c59125e6a, S as $3985021b0ad6602f$export$f5b8910cec6cf069, St as $e9faafb641e167db$export$90fc3a17d93f704c, T as $d3e0e05bdfcf66bd$export$c24727297075ec6a, Tt as $313b98861ee5dd6c$export$d6875122194c7b44, U as $64fa3d84918910a7$export$fabf2dc03a41866e, Ut as $bdb11010cef70236$export$f680877a34711e37, V as $64fa3d84918910a7$export$df3a06d6289f983e, Vt as $ff5963eb1fccf552$export$e08e3b67e392101e, Wt as $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c, X as $e93e671b31057976$export$b8473d3665f3a75a, Xt as Item2$2, Y as $2baaea4c71418dea$export$294aa081a6c6f55d, Yt as Group, Z as $e5be200c675c3b3a$export$75ee7c75d68f5b0e, Zt as ItemIndicator, _ as DropdownMenuSub, _t as $9446cca9a3875146$export$7d15b64cf5a3a4c4, a as NumberField, an as SubContent, at as $6c7bd7858deea686$export$cd11ab140839f11d, b as DropdownMenuTrigger, bt as $b4b717babfbb907b$export$bebd5a1431fec25d, c as prettyNumber, cn as Item, ct as $6db58dc88e78b024$export$2f817fcdc4b89ae0, d as DropdownMenuContent, dn as Search, dt as $9ab94262bd0047c7$export$420e68273165f4ec, en as RadioGroup$2, et as $e5be200c675c3b3a$export$dad6ae84456c676a, fn as Circle, ft as $3ad3f6e1647bc98d$export$80f3e147d781571c, g as DropdownMenuSeparator, gt as $ae1eeba8b9eafd08$export$5165eccb35aaadb5, h as DropdownMenuPortal, ht as _class_private_field_init, in as Sub, j as $d2b4bc8c273e7be6$export$353f5b6fc5456de1, jt as $7215afc6de606d6b$export$de79e2c695e052f3, k as $514c0188e459b4c0$export$9afb8bc826b033ea, kt as $c87311424ea30a05$export$a11b0059900ceec8, l as prettyScientificNumber, ln as Root$2, lt as $5b160d28a433310d$export$c17fa47878dc55b6, m as DropdownMenuLabel, mt as $f6c31cce2adf654f$export$45712eceda6fad21, nn as Root3, nt as $319e236875307eab$export$a9b970dcc4ae71a9, o as maxFractionalDigits, on as SubTrigger, ot as $fca6afa0e843324b$export$87b761675e8eaa10, p as DropdownMenuItem, pn as ChevronRight, pt as $507fabe10e71c6fb$export$630ff653c5ada6a9, qt as CheckboxItem, r as Input, rn as Separator$1, rt as $f7dceffc5ad7768b$export$4e328f61c538687f, s as prettyEngineeringNumber, sn as createMenuScope, st as $fca6afa0e843324b$export$f12b703ca79dfbb1, tn as RadioItem, tt as $e5be200c675c3b3a$export$fc1a364ae1f3ff10, u as DropdownMenu, un as createRovingFocusGroupScope, ut as $6179b936705e76d3$export$ae780daf29e6d456, v as DropdownMenuSubContent, vt as $458b0a5536c1a7cf$export$40bfa8c7b0832715, w as $a049562f99e7db0e$export$f9c6924e160136d1, wt as $df56164dff5785e2$export$4338b53315abf666, x as $3985021b0ad6602f$export$37fb8590cf2c088c, xt as $99facab73266f662$export$5add1d006293d136, y as DropdownMenuSubTrigger, yt as $b4b717babfbb907b$export$4c063cf1350e6fed, z as $64fa3d84918910a7$export$c245e6201fed2f75, zt as $431fbd86ca7dc216$export$b204af158042fbac } from "./input-Ld3tUgdF.js";
|
|
16
|
+
import { _ as isWasm, a as millisecondsInMinute, c as asRemoteURL, d as isStaticNotebook, i as millisecondsInHour, n as constructFrom, o as millisecondsInSecond, p as isUrl, r as millisecondsInDay, s as millisecondsInWeek, t as toDate } from "./toDate-DLCQY32Y.js";
|
|
17
17
|
import { r as Plus, t as ErrorBoundary } from "./ErrorBoundary-rULOrC_p.js";
|
|
18
18
|
import { n as clsx_default } from "./clsx-CIWA5tNO.js";
|
|
19
19
|
import { t as require_react_dom } from "./react-dom-BTJzcVJ9.js";
|
|
@@ -23,18 +23,18 @@ import { a as Content$1, c as Root$3, i as prettyError, n as ErrorBanner, o as O
|
|
|
23
23
|
import { t as Tooltip } from "./tooltip-C5FYOpQc.js";
|
|
24
24
|
import { f as CopyClipboardIcon, t as _extends } from "./extends-BgdxCfYu.js";
|
|
25
25
|
import { r as KnownQueryParams } from "./constants-T20xxyNf.js";
|
|
26
|
-
import { C as getBuildingBlocks, S as buildStore, T as useEvent_default, _ as useAtomValue, b as atom, f as useJotaiEffect, g as useAtom, h as Provider, n as useTheme, r as
|
|
26
|
+
import { C as getBuildingBlocks, S as buildStore, T as useEvent_default, _ as useAtomValue, b as atom, f as useJotaiEffect, g as useAtom, h as Provider, n as useTheme, r as aiFeaturesEnabledAtom, s as resolvedMarimoConfigAtom, v as useSetAtom, w as dequal, y as useStore } from "./useTheme-DNcgchnA.js";
|
|
27
27
|
import { Z as EditorView } from "./dist-DNdhYsgW.js";
|
|
28
28
|
import { t as invariant } from "./invariant-wRzNXIsJ.js";
|
|
29
29
|
import { c as uniqueBy, t as Arrays } from "./arrays-sEtDRoG4.js";
|
|
30
30
|
import { n as once, t as memoizeLastValue } from "./once-DPuqGUeo.js";
|
|
31
31
|
import { a as parser } from "./dist-BotSqB48.js";
|
|
32
|
-
import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-
|
|
32
|
+
import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-B7_JC7Ba.js";
|
|
33
33
|
import { n as memoize$1, t as isPropValid } from "./emotion-is-prop-valid.esm-DzSb5hsH.js";
|
|
34
34
|
import { n as formats } from "./vega-loader.browser-CZ-J8Py3.js";
|
|
35
35
|
import { a as getContainerWidth, n as vegaLoadData, r as createBatchedLoader, s as tooltipHandler, t as parseCsvData } from "./loader-BWLPpjKK.js";
|
|
36
36
|
import { t as useIframeCapabilities } from "./useIframeCapabilities-C4JTXTIh.js";
|
|
37
|
-
import { t as useAsyncData } from "./useAsyncData-
|
|
37
|
+
import { t as useAsyncData } from "./useAsyncData-3f5sSgzf.js";
|
|
38
38
|
let TableBody, ChevronLeft, ComboboxItem, ChartErrorState, contextAwarePanelOpen, $fae977aafc393c5c$export$6b862160d295c8e, prettifyRowColumnCount, dateToLocalISODate, DatePicker, TabsContent, useInternalStateWithSync, Tabs, CommandList, RenderTextWithLinks, slotsController, Expand, contextAwarePanelType, GripHorizontal, CommandSeparator, Kbd, PanelGroup, Code, Toggle, Ellipsis, smartMatch, HtmlOutput, CommandEmpty, ChartLoadingState, CommandInput, LazyVegaEmbed, DateRangePicker, TabsList, CommandItem, useOverflowDetection, Table, ChevronsDownUp, ContextAwarePanelItem, EmotionCacheProvider, downloadSizeLimitAtom, Maps, getColumnCountForDisplay, dateToLocalISOTime, isCellAwareAtom, Funnel, contextAwarePanelOwner, TextWrap, SlotNames, EyeOff, Fill, ChevronsRight, PanelResizeHandle, ChevronsUpDown, Provider$1, ChevronsLeft, downloadBlob, SELECT_COLUMN_ID, DEFAULT_SLIDE_TYPE, generateColumns, Progress, getMimeValues, Slide, ColumnChartContext, JsonOutput, useIntersectionObserver, ArrowDownWideNarrow, TableCell, OutputArea, usePrevious, ADD_PRINTING_CLASS, INDEX_COLUMN_NAME, InstallPackageButton, loadTableData, DEFAULT_DECK_TRANSITION, NAMELESS_COLUMN_PREFIX, Command, ChartInfoState, Combobox, TabsTrigger, RadioGroup, ColumnChartSpecModel, DataTable, loadTableAndRawData, marimoVersionAtom, TableHeader, SLIDE_TYPE_OPTIONS_BY_VALUE, inferFieldTypes, OutputRenderer, getPageIndexForRow, Panel, Download, showCodeInRunModeAtom, TableRow, SlideSidebar, renderCellValue, useNotebookCodeAvailable, TableHead, RadioGroupItem, DelayMount, downloadByURL, TOO_MANY_ROWS, prettifyRowCount, dateToLocalISODateTime, Filenames, isNullishFilter, downloadHTMLAsImage, toFieldTypes, PANEL_TYPES, $fae977aafc393c5c$export$588937bcd60ade55;
|
|
39
39
|
let __tla = Promise.all([
|
|
40
40
|
(() => {
|
|
@@ -1902,21 +1902,21 @@ Defaulting to \`null\`.`;
|
|
|
1902
1902
|
function $2f04cbc44ee30ce0$export$53a0910f038337bd(e, t, n = {}) {
|
|
1903
1903
|
let { block: i = "nearest", inline: a = "nearest" } = n;
|
|
1904
1904
|
if (e === t) return;
|
|
1905
|
-
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0,
|
|
1905
|
+
let o = e.scrollTop, s = e.scrollLeft, c = t.getBoundingClientRect(), d = e.getBoundingClientRect(), f = window.getComputedStyle(t), h = window.getComputedStyle(e), _ = document.scrollingElement || document.documentElement, v = e === _ ? 0 : d.top, y = e === _ ? e.clientHeight : d.bottom, S = e === _ ? 0 : d.left, w = e === _ ? e.clientWidth : d.right, E = parseInt(f.scrollMarginTop, 10) || 0, O = parseInt(f.scrollMarginBottom, 10) || 0, A = parseInt(f.scrollMarginLeft, 10) || 0, M = parseInt(f.scrollMarginRight, 10) || 0, I = parseInt(h.scrollPaddingTop, 10) || 0, z = parseInt(h.scrollPaddingBottom, 10) || 0, U = parseInt(h.scrollPaddingLeft, 10) || 0, K = parseInt(h.scrollPaddingRight, 10) || 0, q = parseInt(h.borderTopWidth, 10) || 0, J = parseInt(h.borderBottomWidth, 10) || 0, Q = parseInt(h.borderLeftWidth, 10) || 0, $ = parseInt(h.borderRightWidth, 10) || 0, PK = c.top - E, FK = c.bottom + O, IK = c.left - A, LK = c.right + M, RK = e === _ ? 0 : Q + $, zK = e === _ ? 0 : q + J, BK = e.offsetWidth - e.clientWidth - RK, VK = e.offsetHeight - e.clientHeight - zK, HK = v + q + I, UK = y - J - z - VK, WK = S + Q + U, GK = w - $ - K;
|
|
1906
1906
|
h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? WK += BK : GK -= BK;
|
|
1907
|
-
let KK =
|
|
1908
|
-
if (KK && i === "start") o +=
|
|
1909
|
-
else if (KK && i === "center") o += (
|
|
1910
|
-
else if (KK && i === "end") o +=
|
|
1907
|
+
let KK = PK < HK || FK > UK, qK = IK < WK || LK > GK;
|
|
1908
|
+
if (KK && i === "start") o += PK - HK;
|
|
1909
|
+
else if (KK && i === "center") o += (PK + FK) / 2 - (HK + UK) / 2;
|
|
1910
|
+
else if (KK && i === "end") o += FK - UK;
|
|
1911
1911
|
else if (KK && i === "nearest") {
|
|
1912
|
-
let e2 =
|
|
1912
|
+
let e2 = PK - HK, t2 = FK - UK;
|
|
1913
1913
|
o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1914
1914
|
}
|
|
1915
|
-
if (qK && a === "start") s +=
|
|
1916
|
-
else if (qK && a === "center") s += (
|
|
1917
|
-
else if (qK && a === "end") s +=
|
|
1915
|
+
if (qK && a === "start") s += IK - WK;
|
|
1916
|
+
else if (qK && a === "center") s += (IK + LK) / 2 - (WK + GK) / 2;
|
|
1917
|
+
else if (qK && a === "end") s += LK - GK;
|
|
1918
1918
|
else if (qK && a === "nearest") {
|
|
1919
|
-
let e2 =
|
|
1919
|
+
let e2 = IK - WK, t2 = LK - GK;
|
|
1920
1920
|
s += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
|
|
1921
1921
|
}
|
|
1922
1922
|
e.scrollTo({
|
|
@@ -5024,23 +5024,23 @@ Defaulting to \`null\`.`;
|
|
|
5024
5024
|
let e2 = $edcf132a9284368a$var$parsePlacement(`${$edcf132a9284368a$var$FLIPPED_DIRECTION[U]} ${K}`), i2 = $edcf132a9284368a$var$computePosition(t, c, n, e2, h, _, f, v, S, w, d);
|
|
5025
5025
|
$edcf132a9284368a$var$getAvailableSpace(c, f, t, a, o + h, e2, d, E) > Q && (A = e2, q = i2, J = h);
|
|
5026
5026
|
}
|
|
5027
|
-
let
|
|
5028
|
-
A.axis === "top" ? A.placement === "top" ?
|
|
5029
|
-
let
|
|
5030
|
-
q[I] +=
|
|
5031
|
-
let
|
|
5032
|
-
y && y <
|
|
5033
|
-
let
|
|
5034
|
-
|
|
5027
|
+
let $ = "bottom";
|
|
5028
|
+
A.axis === "top" ? A.placement === "top" ? $ = "top" : A.placement === "bottom" && ($ = "bottom") : A.crossAxis === "top" && (A.crossPlacement === "top" ? $ = "bottom" : A.crossPlacement === "bottom" && ($ = "top"));
|
|
5029
|
+
let PK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
|
|
5030
|
+
q[I] += PK;
|
|
5031
|
+
let FK = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
|
|
5032
|
+
y && y < FK && (FK = y), n.height = Math.min(n.height, FK), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), PK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += PK;
|
|
5033
|
+
let IK = {}, LK = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], RK = LK + 0.5 * t[z], zK = S / 2 + w, BK = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), VK = n[z] - BK - S / 2 - w;
|
|
5034
|
+
IK[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(RK, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), zK, VK), { placement: U, crossPlacement: K } = A, S ? LK = IK[I] : K === "right" ? LK += t[z] : K === "center" && (LK += t[z] / 2);
|
|
5035
5035
|
let HK = U === "left" || U === "top" ? n[M] : 0, UK = {
|
|
5036
|
-
x: U === "top" || U === "bottom" ?
|
|
5037
|
-
y: U === "left" || U === "right" ?
|
|
5036
|
+
x: U === "top" || U === "bottom" ? LK : HK,
|
|
5037
|
+
y: U === "left" || U === "right" ? LK : HK
|
|
5038
5038
|
};
|
|
5039
5039
|
return {
|
|
5040
5040
|
position: q,
|
|
5041
|
-
maxHeight:
|
|
5042
|
-
arrowOffsetLeft:
|
|
5043
|
-
arrowOffsetTop:
|
|
5041
|
+
maxHeight: FK,
|
|
5042
|
+
arrowOffsetLeft: IK.left,
|
|
5043
|
+
arrowOffsetTop: IK.top,
|
|
5044
5044
|
placement: U,
|
|
5045
5045
|
triggerAnchorPoint: UK
|
|
5046
5046
|
};
|
|
@@ -6867,7 +6867,7 @@ Defaulting to \`null\`.`;
|
|
|
6867
6867
|
let e2 = window.getSelection();
|
|
6868
6868
|
(e2 == null ? void 0 : e2.anchorNode) && $d4ee10de306f2510$export$4282f70798064fe0(n.current, e2 == null ? void 0 : e2.anchorNode) && e2.collapse(n.current);
|
|
6869
6869
|
});
|
|
6870
|
-
let
|
|
6870
|
+
let $ = (0, import_react.useRef)("");
|
|
6871
6871
|
$e9faafb641e167db$export$90fc3a17d93f704c(n, "beforeinput", (i2) => {
|
|
6872
6872
|
if (n.current) switch (i2.preventDefault(), i2.inputType) {
|
|
6873
6873
|
case "deleteContentBackward":
|
|
@@ -6875,7 +6875,7 @@ Defaulting to \`null\`.`;
|
|
|
6875
6875
|
E.isValidPartialNumber(e.text) && !t.isReadOnly && O();
|
|
6876
6876
|
break;
|
|
6877
6877
|
case "insertCompositionText":
|
|
6878
|
-
|
|
6878
|
+
$.current = n.current.textContent, n.current.textContent = n.current.textContent;
|
|
6879
6879
|
break;
|
|
6880
6880
|
default:
|
|
6881
6881
|
i2.data != null && J(i2.data);
|
|
@@ -6885,7 +6885,7 @@ Defaulting to \`null\`.`;
|
|
|
6885
6885
|
let { inputType: t2, data: i2 } = e2;
|
|
6886
6886
|
switch (t2) {
|
|
6887
6887
|
case "insertCompositionText":
|
|
6888
|
-
n.current && (n.current.textContent =
|
|
6888
|
+
n.current && (n.current.textContent = $.current), i2 != null && (M(z, i2) || M(U, i2)) && J(i2);
|
|
6889
6889
|
break;
|
|
6890
6890
|
}
|
|
6891
6891
|
}), $f0a04ccd8dbdd83b$export$e5c5a5f917a5871c(() => {
|
|
@@ -6897,7 +6897,7 @@ Defaulting to \`null\`.`;
|
|
|
6897
6897
|
n,
|
|
6898
6898
|
h
|
|
6899
6899
|
]);
|
|
6900
|
-
let
|
|
6900
|
+
let PK = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
|
|
6901
6901
|
role: "textbox",
|
|
6902
6902
|
"aria-valuemax": null,
|
|
6903
6903
|
"aria-valuemin": null,
|
|
@@ -6907,8 +6907,8 @@ Defaulting to \`null\`.`;
|
|
|
6907
6907
|
e !== (0, import_react.useMemo)(() => t.segments.find((e2) => e2.isEditable), [
|
|
6908
6908
|
t.segments
|
|
6909
6909
|
]) && !t.isInvalid && (f = void 0);
|
|
6910
|
-
let
|
|
6911
|
-
"aria-label": `${
|
|
6910
|
+
let FK = $bdb11010cef70236$export$f680877a34711e37(), IK = !t.isDisabled && !t.isReadOnly && e.isEditable, LK = e.type === "literal" ? "" : s.of(e.type), RK = $313b98861ee5dd6c$export$d6875122194c7b44({
|
|
6911
|
+
"aria-label": `${LK}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
|
|
6912
6912
|
"aria-labelledby": d
|
|
6913
6913
|
});
|
|
6914
6914
|
if (e.type === "literal") return {
|
|
@@ -6926,18 +6926,18 @@ Defaulting to \`null\`.`;
|
|
|
6926
6926
|
}
|
|
6927
6927
|
return {
|
|
6928
6928
|
segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, RK, {
|
|
6929
|
-
id:
|
|
6930
|
-
...
|
|
6929
|
+
id: FK,
|
|
6930
|
+
...PK,
|
|
6931
6931
|
"aria-invalid": t.isInvalid ? "true" : void 0,
|
|
6932
6932
|
"aria-describedby": f,
|
|
6933
6933
|
"aria-readonly": t.isReadOnly || !e.isEditable ? "true" : void 0,
|
|
6934
6934
|
"data-placeholder": e.isPlaceholder || void 0,
|
|
6935
|
-
contentEditable:
|
|
6936
|
-
suppressContentEditableWarning:
|
|
6937
|
-
spellCheck:
|
|
6938
|
-
autoCorrect:
|
|
6939
|
-
enterKeyHint:
|
|
6940
|
-
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !
|
|
6935
|
+
contentEditable: IK,
|
|
6936
|
+
suppressContentEditableWarning: IK,
|
|
6937
|
+
spellCheck: IK ? "false" : void 0,
|
|
6938
|
+
autoCorrect: IK ? "off" : void 0,
|
|
6939
|
+
enterKeyHint: IK ? "next" : void 0,
|
|
6940
|
+
inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !IK ? void 0 : "numeric",
|
|
6941
6941
|
tabIndex: t.isDisabled ? void 0 : 0,
|
|
6942
6942
|
onKeyDown: A,
|
|
6943
6943
|
onFocus: Q,
|
|
@@ -7014,7 +7014,7 @@ Defaulting to \`null\`.`;
|
|
|
7014
7014
|
q.current = true, (n2 = e.onFocus) == null || n2.call(e, t2), (i2 = e.onFocusChange) == null || i2.call(e, true);
|
|
7015
7015
|
}
|
|
7016
7016
|
}
|
|
7017
|
-
}), Q = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a),
|
|
7017
|
+
}), Q = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a), $ = (0, import_react.useRef)($e5be200c675c3b3a$export$dad6ae84456c676a);
|
|
7018
7018
|
return {
|
|
7019
7019
|
groupProps: $3ef42575df84b30b$export$9d1611c77c2fe928(K, M, d, S, J, {
|
|
7020
7020
|
role: "group",
|
|
@@ -7061,7 +7061,7 @@ Defaulting to \`null\`.`;
|
|
|
7061
7061
|
realtimeValidation: t.realtimeValidation,
|
|
7062
7062
|
displayValidation: t.displayValidation,
|
|
7063
7063
|
updateValidation(e2) {
|
|
7064
|
-
Q.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e2,
|
|
7064
|
+
Q.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(e2, $.current));
|
|
7065
7065
|
},
|
|
7066
7066
|
resetValidation: t.resetValidation,
|
|
7067
7067
|
commitValidation: t.commitValidation
|
|
@@ -7079,7 +7079,7 @@ Defaulting to \`null\`.`;
|
|
|
7079
7079
|
realtimeValidation: t.realtimeValidation,
|
|
7080
7080
|
displayValidation: t.displayValidation,
|
|
7081
7081
|
updateValidation(e2) {
|
|
7082
|
-
|
|
7082
|
+
$.current = e2, t.updateValidation($e5be200c675c3b3a$export$75ee7c75d68f5b0e(Q.current, e2));
|
|
7083
7083
|
},
|
|
7084
7084
|
resetValidation: t.resetValidation,
|
|
7085
7085
|
commitValidation: t.commitValidation
|
|
@@ -10173,7 +10173,7 @@ Defaulting to \`null\`.`;
|
|
|
10173
10173
|
function Q(e2) {
|
|
10174
10174
|
e2 = $f62d864046160412$export$4f5203c0d889109e(e2, s, c), A(e2);
|
|
10175
10175
|
}
|
|
10176
|
-
function
|
|
10176
|
+
function $(t2) {
|
|
10177
10177
|
if (!e.isDisabled && !e.isReadOnly) {
|
|
10178
10178
|
let e2 = t2;
|
|
10179
10179
|
if (e2 === null) {
|
|
@@ -10184,12 +10184,12 @@ Defaulting to \`null\`.`;
|
|
|
10184
10184
|
e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (y == null ? void 0 : y.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), y && "hour" in y ? S(y.set(e2)) : S(e2);
|
|
10185
10185
|
}
|
|
10186
10186
|
}
|
|
10187
|
-
let
|
|
10187
|
+
let PK = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
|
|
10188
10188
|
w,
|
|
10189
10189
|
f,
|
|
10190
10190
|
s,
|
|
10191
10191
|
c
|
|
10192
|
-
]),
|
|
10192
|
+
]), FK = e.isInvalid || e.validationState === "invalid" || PK, IK = FK ? "invalid" : null, LK = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
|
|
10193
10193
|
h,
|
|
10194
10194
|
o
|
|
10195
10195
|
]);
|
|
@@ -10197,7 +10197,7 @@ Defaulting to \`null\`.`;
|
|
|
10197
10197
|
isDisabled: e.isDisabled ?? false,
|
|
10198
10198
|
isReadOnly: e.isReadOnly ?? false,
|
|
10199
10199
|
value: w,
|
|
10200
|
-
setValue:
|
|
10200
|
+
setValue: $,
|
|
10201
10201
|
visibleRange: {
|
|
10202
10202
|
start: M,
|
|
10203
10203
|
end: K
|
|
@@ -10206,8 +10206,8 @@ Defaulting to \`null\`.`;
|
|
|
10206
10206
|
maxValue: c,
|
|
10207
10207
|
focusedDate: O,
|
|
10208
10208
|
timeZone: E,
|
|
10209
|
-
validationState:
|
|
10210
|
-
isValueInvalid:
|
|
10209
|
+
validationState: IK,
|
|
10210
|
+
isValueInvalid: FK,
|
|
10211
10211
|
setFocusedDate(e2) {
|
|
10212
10212
|
Q(e2);
|
|
10213
10213
|
},
|
|
@@ -10232,12 +10232,12 @@ Defaulting to \`null\`.`;
|
|
|
10232
10232
|
}));
|
|
10233
10233
|
},
|
|
10234
10234
|
focusNextPage() {
|
|
10235
|
-
let e2 = M.add(
|
|
10236
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.add(
|
|
10235
|
+
let e2 = M.add(LK);
|
|
10236
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.add(LK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, LK, i, s, c), LK, i));
|
|
10237
10237
|
},
|
|
10238
10238
|
focusPreviousPage() {
|
|
10239
|
-
let e2 = M.subtract(
|
|
10240
|
-
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(
|
|
10239
|
+
let e2 = M.subtract(LK);
|
|
10240
|
+
A($f62d864046160412$export$4f5203c0d889109e(O.subtract(LK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, LK, i, s, c), LK, i));
|
|
10241
10241
|
},
|
|
10242
10242
|
focusSectionStart() {
|
|
10243
10243
|
o.days ? Q(M) : o.weeks ? Q($14e0f24ef4ac5c92$export$42c81a444fbfb5d4(O, i)) : (o.months || o.years) && Q($14e0f24ef4ac5c92$export$a5a3b454ada2268e(O));
|
|
@@ -10268,10 +10268,10 @@ Defaulting to \`null\`.`;
|
|
|
10268
10268
|
}));
|
|
10269
10269
|
},
|
|
10270
10270
|
selectFocusedDate() {
|
|
10271
|
-
f && f(O) ||
|
|
10271
|
+
f && f(O) || $(O);
|
|
10272
10272
|
},
|
|
10273
10273
|
selectDate(e2) {
|
|
10274
|
-
|
|
10274
|
+
$(e2);
|
|
10275
10275
|
},
|
|
10276
10276
|
isFocused: z,
|
|
10277
10277
|
setFocused: U,
|
|
@@ -10374,13 +10374,13 @@ Defaulting to \`null\`.`;
|
|
|
10374
10374
|
end: $9a36b6ba2fb1a7c5$var$convertValue(e2.end, h == null ? void 0 : h.end)
|
|
10375
10375
|
}), q(null);
|
|
10376
10376
|
}
|
|
10377
|
-
}, [PK
|
|
10378
|
-
|
|
10377
|
+
}, [$, PK] = (0, import_react.useState)(false), { isDateUnavailable: FK } = e, IK = (0, import_react.useMemo)(() => !h || v ? false : FK && (FK(h.start) || FK(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
|
|
10378
|
+
FK,
|
|
10379
10379
|
h,
|
|
10380
10380
|
v,
|
|
10381
10381
|
c,
|
|
10382
10382
|
d
|
|
10383
|
-
]),
|
|
10383
|
+
]), LK = e.isInvalid || e.validationState === "invalid" || IK, RK = LK ? "invalid" : null;
|
|
10384
10384
|
return {
|
|
10385
10385
|
...I,
|
|
10386
10386
|
value: h,
|
|
@@ -10389,7 +10389,7 @@ Defaulting to \`null\`.`;
|
|
|
10389
10389
|
setAnchorDate: q,
|
|
10390
10390
|
highlightedRange: J,
|
|
10391
10391
|
validationState: RK,
|
|
10392
|
-
isValueInvalid:
|
|
10392
|
+
isValueInvalid: LK,
|
|
10393
10393
|
selectFocusedDate() {
|
|
10394
10394
|
Q(I.focusedDate);
|
|
10395
10395
|
},
|
|
@@ -10404,8 +10404,8 @@ Defaulting to \`null\`.`;
|
|
|
10404
10404
|
var _a2, _b;
|
|
10405
10405
|
return I.isInvalid(e2) || $f62d864046160412$export$eac50920cf2fd59a(e2, (_a2 = w.current) == null ? void 0 : _a2.start, (_b = w.current) == null ? void 0 : _b.end);
|
|
10406
10406
|
},
|
|
10407
|
-
isDragging:
|
|
10408
|
-
setDragging:
|
|
10407
|
+
isDragging: $,
|
|
10408
|
+
setDragging: PK
|
|
10409
10409
|
};
|
|
10410
10410
|
}
|
|
10411
10411
|
function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
|
|
@@ -11587,12 +11587,12 @@ Defaulting to \`null\`.`;
|
|
|
11587
11587
|
q
|
|
11588
11588
|
]), Q = (0, import_react.useMemo)(() => J.resolvedOptions(), [
|
|
11589
11589
|
J
|
|
11590
|
-
]),
|
|
11590
|
+
]), $ = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$66aa2b09de4b1ea5(e.placeholderValue, _, S, v), [
|
|
11591
11591
|
e.placeholderValue,
|
|
11592
11592
|
_,
|
|
11593
11593
|
S,
|
|
11594
11594
|
v
|
|
11595
|
-
]),
|
|
11595
|
+
]), PK = (0, import_react.useMemo)(() => {
|
|
11596
11596
|
let t2 = w === "h11" || w === "h12", n2 = [
|
|
11597
11597
|
"era",
|
|
11598
11598
|
"year",
|
|
@@ -11610,15 +11610,15 @@ Defaulting to \`null\`.`;
|
|
|
11610
11610
|
e.maxGranularity,
|
|
11611
11611
|
_,
|
|
11612
11612
|
w
|
|
11613
|
-
]), [
|
|
11614
|
-
(M !==
|
|
11613
|
+
]), [FK, IK] = (0, import_react.useState)(M), [LK, RK] = (0, import_react.useState)(S), [zK, BK] = (0, import_react.useState)(w);
|
|
11614
|
+
(M !== FK || w !== zK || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, LK)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), IK(M), RK(S), BK(w), z(I));
|
|
11615
11615
|
let VK = (t2) => {
|
|
11616
|
-
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(
|
|
11616
|
+
if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(PK)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
|
|
11617
11617
|
else if (!(t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef)) t2 = $11d87f3f76e88657$export$b4a036af3fc0b032(t2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec()), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t2);
|
|
11618
11618
|
else {
|
|
11619
|
-
if (t2.isComplete(
|
|
11620
|
-
let e2 = t2.toValue(M ??
|
|
11621
|
-
if (t2.validate(e2,
|
|
11619
|
+
if (t2.isComplete(PK)) {
|
|
11620
|
+
let e2 = t2.toValue(M ?? $);
|
|
11621
|
+
if (t2.validate(e2, PK)) {
|
|
11622
11622
|
let t3 = $11d87f3f76e88657$export$b4a036af3fc0b032(e2, (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11623
11623
|
if (!E || t3.compare(E) !== 0) {
|
|
11624
11624
|
z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(t3);
|
|
@@ -11628,11 +11628,11 @@ Defaulting to \`null\`.`;
|
|
|
11628
11628
|
}
|
|
11629
11629
|
z(t2);
|
|
11630
11630
|
}
|
|
11631
|
-
}, HK = (0, import_react.useMemo)(() => I.toValue(M ??
|
|
11631
|
+
}, HK = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
|
|
11632
11632
|
I,
|
|
11633
11633
|
y,
|
|
11634
11634
|
M,
|
|
11635
|
-
|
|
11635
|
+
$
|
|
11636
11636
|
]), UK = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(HK, I, J, Q, S, t, _), [
|
|
11637
11637
|
HK,
|
|
11638
11638
|
J,
|
|
@@ -11642,7 +11642,7 @@ Defaulting to \`null\`.`;
|
|
|
11642
11642
|
t,
|
|
11643
11643
|
_
|
|
11644
11644
|
]), WK = (e2, t2) => {
|
|
11645
|
-
VK(I.cycle(e2, t2, PK
|
|
11645
|
+
VK(I.cycle(e2, t2, $, PK));
|
|
11646
11646
|
}, GK = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
|
|
11647
11647
|
E,
|
|
11648
11648
|
c,
|
|
@@ -11684,18 +11684,18 @@ Defaulting to \`null\`.`;
|
|
|
11684
11684
|
},
|
|
11685
11685
|
incrementToMax(e2) {
|
|
11686
11686
|
let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
|
|
11687
|
-
VK(I.set(e2, t2,
|
|
11687
|
+
VK(I.set(e2, t2, $));
|
|
11688
11688
|
},
|
|
11689
11689
|
decrementToMin(e2) {
|
|
11690
11690
|
let t2 = e2 === "hour" && w === "h12" ? 12 : I.getSegmentLimits(e2).minValue;
|
|
11691
|
-
VK(I.set(e2, t2,
|
|
11691
|
+
VK(I.set(e2, t2, $));
|
|
11692
11692
|
},
|
|
11693
11693
|
setSegment(e2, t2) {
|
|
11694
|
-
VK(I.set(e2, t2,
|
|
11694
|
+
VK(I.set(e2, t2, $));
|
|
11695
11695
|
},
|
|
11696
11696
|
confirmPlaceholder() {
|
|
11697
|
-
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(
|
|
11698
|
-
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ??
|
|
11697
|
+
if (!(e.isDisabled || e.isReadOnly) && I.isComplete(PK)) {
|
|
11698
|
+
let e2 = $11d87f3f76e88657$export$b4a036af3fc0b032(I.toValue(M ?? $), (h == null ? void 0 : h.calendar) || new $3b62074eb05584b2$export$80ee6245ec4f29ec());
|
|
11699
11699
|
(!E || e2.compare(E) !== 0) && O(e2), z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M));
|
|
11700
11700
|
}
|
|
11701
11701
|
},
|
|
@@ -11824,7 +11824,7 @@ Defaulting to \`null\`.`;
|
|
|
11824
11824
|
e.endName
|
|
11825
11825
|
]),
|
|
11826
11826
|
builtinValidation: J
|
|
11827
|
-
}),
|
|
11827
|
+
}), $ = Q.displayValidation.isInvalid, PK = e.validationState || ($ ? "invalid" : null);
|
|
11828
11828
|
return {
|
|
11829
11829
|
...Q,
|
|
11830
11830
|
value: c,
|
|
@@ -11870,8 +11870,8 @@ Defaulting to \`null\`.`;
|
|
|
11870
11870
|
end: (w == null ? void 0 : w.end) || $35a22f14a1f04b11$export$c5221a78ef73c5e9(e.placeholderValue)
|
|
11871
11871
|
}), t.setOpen(n2);
|
|
11872
11872
|
},
|
|
11873
|
-
validationState:
|
|
11874
|
-
isInvalid:
|
|
11873
|
+
validationState: PK,
|
|
11874
|
+
isInvalid: $,
|
|
11875
11875
|
formatValue(t2, n2) {
|
|
11876
11876
|
if (!c || !c.start || !c.end) return null;
|
|
11877
11877
|
let i2 = "timeZone" in c.start ? c.start.timeZone : void 0, a2 = e.granularity || (c.start && "minute" in c.start ? "minute" : "day"), o2 = "timeZone" in c.end ? c.end.timeZone : void 0, s2 = e.granularity || (c.end && "minute" in c.end ? "minute" : "day"), d2 = $35a22f14a1f04b11$export$7e319ea407e63bc0(n2, {
|
|
@@ -15742,9 +15742,9 @@ try {
|
|
|
15742
15742
|
}, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
|
|
15743
15743
|
function y(e2) {
|
|
15744
15744
|
var _a2, _b, _c, _d;
|
|
15745
|
-
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f),
|
|
15745
|
+
let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, PK = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
|
|
15746
15746
|
h2
|
|
15747
|
-
]),
|
|
15747
|
+
]), FK = PK[t], IK = FK || PK, { colorSchemes: LK = _, components: RK = v, cssVarPrefix: zK } = IK, BK = Object.keys(LK).filter((e3) => !!LK[e3]).join(","), VK = import_react.useMemo(() => BK.split(","), [
|
|
15748
15748
|
BK
|
|
15749
15749
|
]), HK = typeof s == "string" ? s : s.light, UK = typeof s == "string" ? s : s.dark, { mode: WK, setMode: GK, systemMode: KK, lightColorScheme: qK, darkColorScheme: JK, colorScheme: YK, setColorScheme: XK } = useCurrentColorScheme({
|
|
15750
15750
|
supportedColorSchemes: VK,
|
|
@@ -15752,23 +15752,23 @@ try {
|
|
|
15752
15752
|
defaultDarkColorScheme: UK,
|
|
15753
15753
|
modeStorageKey: y2,
|
|
15754
15754
|
colorSchemeStorageKey: S2,
|
|
15755
|
-
defaultMode:
|
|
15755
|
+
defaultMode: LK[HK] && LK[UK] ? U : ((_b = (_a2 = LK[IK.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = IK.palette) == null ? void 0 : _c.mode),
|
|
15756
15756
|
storageManager: E,
|
|
15757
15757
|
storageWindow: O,
|
|
15758
15758
|
noSsr: K
|
|
15759
15759
|
}), ZK = WK, QK = YK;
|
|
15760
|
-
|
|
15760
|
+
$ && (ZK = Q.mode, QK = Q.colorScheme);
|
|
15761
15761
|
let $K = import_react.useMemo(() => {
|
|
15762
15762
|
var _a3;
|
|
15763
|
-
let e3 = QK ||
|
|
15764
|
-
...
|
|
15763
|
+
let e3 = QK || IK.defaultColorScheme, t2 = ((_a3 = IK.generateThemeVars) == null ? void 0 : _a3.call(IK)) || IK.vars, n2 = {
|
|
15764
|
+
...IK,
|
|
15765
15765
|
components: RK,
|
|
15766
|
-
colorSchemes:
|
|
15766
|
+
colorSchemes: LK,
|
|
15767
15767
|
cssVarPrefix: zK,
|
|
15768
15768
|
vars: t2
|
|
15769
15769
|
};
|
|
15770
15770
|
if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
|
|
15771
|
-
let t3 =
|
|
15771
|
+
let t3 = LK[e3];
|
|
15772
15772
|
t3 && typeof t3 == "object" && Object.keys(t3).forEach((e4) => {
|
|
15773
15773
|
t3[e4] && typeof t3[e4] == "object" ? n2[e4] = {
|
|
15774
15774
|
...n2[e4],
|
|
@@ -15778,12 +15778,12 @@ try {
|
|
|
15778
15778
|
}
|
|
15779
15779
|
return c ? c(n2) : n2;
|
|
15780
15780
|
}, [
|
|
15781
|
-
|
|
15781
|
+
IK,
|
|
15782
15782
|
QK,
|
|
15783
15783
|
RK,
|
|
15784
|
-
|
|
15784
|
+
LK,
|
|
15785
15785
|
zK
|
|
15786
|
-
]), eq =
|
|
15786
|
+
]), eq = IK.colorSchemeSelector;
|
|
15787
15787
|
useEnhancedEffect_default(() => {
|
|
15788
15788
|
if (QK && M && eq && eq !== "media") {
|
|
15789
15789
|
let e3 = eq, t2 = eq;
|
|
@@ -15841,11 +15841,11 @@ try {
|
|
|
15841
15841
|
KK,
|
|
15842
15842
|
$K.colorSchemeSelector
|
|
15843
15843
|
]), nq = true;
|
|
15844
|
-
(z ||
|
|
15844
|
+
(z || IK.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === zK) && (nq = false);
|
|
15845
15845
|
let rq = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
|
|
15846
15846
|
children: [
|
|
15847
15847
|
(0, import_jsx_runtime.jsx)(ThemeProvider_default, {
|
|
15848
|
-
themeId:
|
|
15848
|
+
themeId: FK ? t : void 0,
|
|
15849
15849
|
theme: $K,
|
|
15850
15850
|
children: d2
|
|
15851
15851
|
}),
|
|
@@ -15854,7 +15854,7 @@ try {
|
|
|
15854
15854
|
})
|
|
15855
15855
|
]
|
|
15856
15856
|
});
|
|
15857
|
-
return
|
|
15857
|
+
return $ ? rq : (0, import_jsx_runtime.jsx)(f.Provider, {
|
|
15858
15858
|
value: tq,
|
|
15859
15859
|
children: rq
|
|
15860
15860
|
});
|
|
@@ -17356,7 +17356,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17356
17356
|
let n = useDefaultProps({
|
|
17357
17357
|
props: e,
|
|
17358
17358
|
name: "MuiInputBase"
|
|
17359
|
-
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick:
|
|
17359
|
+
}), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: PK, onKeyDown: FK, onKeyUp: IK, placeholder: LK, readOnly: RK, renderSuffix: zK, rows: BK, size: VK, slotProps: HK = {}, slots: UK = {}, startAdornment: WK, type: GK = "text", value: KK, ...qK } = n, JK = A.value == null ? KK : A.value, { current: YK } = import_react.useRef(JK != null), XK = import_react.useRef(), ZK = import_react.useCallback((e2) => {
|
|
17360
17360
|
}, []), QK = useForkRef_default(XK, M, A.ref, ZK), [$K, eq] = import_react.useState(false), tq = useFormControl(), nq = formControlState({
|
|
17361
17361
|
props: n,
|
|
17362
17362
|
muiFormControl: tq,
|
|
@@ -17394,7 +17394,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17394
17394
|
YK
|
|
17395
17395
|
]);
|
|
17396
17396
|
let oq = (e2) => {
|
|
17397
|
-
|
|
17397
|
+
PK && PK(e2), A.onFocus && A.onFocus(e2), tq && tq.onFocus ? tq.onFocus(e2) : eq(true);
|
|
17398
17398
|
}, sq = (e2) => {
|
|
17399
17399
|
J && J(e2), A.onBlur && A.onBlur(e2), tq && tq.onBlur ? tq.onBlur(e2) : eq(false);
|
|
17400
17400
|
}, cq = (e2, ...t2) => {
|
|
@@ -17411,7 +17411,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17411
17411
|
aq(XK.current);
|
|
17412
17412
|
}, []);
|
|
17413
17413
|
let lq = (e2) => {
|
|
17414
|
-
XK.current && e2.currentTarget === e2.target && XK.current.focus(),
|
|
17414
|
+
XK.current && e2.currentTarget === e2.target && XK.current.focus(), $ && $(e2);
|
|
17415
17415
|
}, uq = O, dq = A;
|
|
17416
17416
|
K && uq === "input" && (dq = BK ? {
|
|
17417
17417
|
type: void 0,
|
|
@@ -17482,13 +17482,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
17482
17482
|
id: E,
|
|
17483
17483
|
onAnimationStart: fq,
|
|
17484
17484
|
name: q,
|
|
17485
|
-
placeholder:
|
|
17485
|
+
placeholder: LK,
|
|
17486
17486
|
readOnly: RK,
|
|
17487
17487
|
required: nq.required,
|
|
17488
17488
|
rows: BK,
|
|
17489
17489
|
value: JK,
|
|
17490
|
-
onKeyDown:
|
|
17491
|
-
onKeyUp:
|
|
17490
|
+
onKeyDown: FK,
|
|
17491
|
+
onKeyUp: IK,
|
|
17492
17492
|
type: GK,
|
|
17493
17493
|
...dq,
|
|
17494
17494
|
...!isHostComponent_default(_q) && {
|
|
@@ -18584,7 +18584,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18584
18584
|
M,
|
|
18585
18585
|
i,
|
|
18586
18586
|
a
|
|
18587
|
-
]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false),
|
|
18587
|
+
]), 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), PK = useTextColor(), FK = useJsonViewerStore((e2) => e2.colorspace.base0C), IK = useJsonViewerStore((e2) => e2.colorspace.base0A), LK = useJsonViewerStore((e2) => e2.displayComma), RK = useJsonViewerStore((e2) => e2.quotesOnKeys), zK = useJsonViewerStore((e2) => e2.rootName), BK = U === t, VK = Number.isInteger(Number(A)), HK = useJsonViewerStore((e2) => e2.enableAdd), UK = useJsonViewerStore((e2) => e2.onAdd), WK = (0, import_react.useMemo)(() => !UK || a !== void 0 || HK === false || v === false ? false : typeof HK == "function" ? !!HK(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
|
|
18588
18588
|
UK,
|
|
18589
18589
|
a,
|
|
18590
18590
|
i,
|
|
@@ -18607,7 +18607,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18607
18607
|
(0, import_react.useEffect)(() => {
|
|
18608
18608
|
$K.current && QK && "animate" in $K.current && $K.current.animate([
|
|
18609
18609
|
{
|
|
18610
|
-
backgroundColor:
|
|
18610
|
+
backgroundColor: IK
|
|
18611
18611
|
},
|
|
18612
18612
|
{
|
|
18613
18613
|
backgroundColor: ""
|
|
@@ -18617,7 +18617,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18617
18617
|
easing: "ease-in"
|
|
18618
18618
|
});
|
|
18619
18619
|
}, [
|
|
18620
|
-
|
|
18620
|
+
IK,
|
|
18621
18621
|
QK,
|
|
18622
18622
|
n,
|
|
18623
18623
|
t
|
|
@@ -18634,13 +18634,13 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18634
18634
|
E
|
|
18635
18635
|
]), nq = (0, import_react.useCallback)((e2) => {
|
|
18636
18636
|
if (Q(false), _) try {
|
|
18637
|
-
|
|
18637
|
+
$(i, t, _(e2));
|
|
18638
18638
|
} catch {
|
|
18639
18639
|
}
|
|
18640
18640
|
}, [
|
|
18641
18641
|
Q,
|
|
18642
18642
|
_,
|
|
18643
|
-
|
|
18643
|
+
$,
|
|
18644
18644
|
i,
|
|
18645
18645
|
t
|
|
18646
18646
|
]), rq = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
@@ -18765,7 +18765,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18765
18765
|
className: "data-key",
|
|
18766
18766
|
sx: {
|
|
18767
18767
|
lineHeight: 1.5,
|
|
18768
|
-
color:
|
|
18768
|
+
color: PK,
|
|
18769
18769
|
letterSpacing: 0.5,
|
|
18770
18770
|
opacity: 0.8
|
|
18771
18771
|
},
|
|
@@ -18810,7 +18810,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18810
18810
|
}) : a === void 0 && (VK ? (0, import_jsx_runtime.jsx)(Box_default, {
|
|
18811
18811
|
component: "span",
|
|
18812
18812
|
style: {
|
|
18813
|
-
color:
|
|
18813
|
+
color: FK,
|
|
18814
18814
|
userSelect: VK ? "none" : "auto"
|
|
18815
18815
|
},
|
|
18816
18816
|
children: A
|
|
@@ -18863,7 +18863,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
|
|
|
18863
18863
|
d && (0, import_jsx_runtime.jsx)(d, {
|
|
18864
18864
|
...sq
|
|
18865
18865
|
}),
|
|
18866
|
-
!o &&
|
|
18866
|
+
!o && LK && (0, import_jsx_runtime.jsx)(DataBox, {
|
|
18867
18867
|
children: ","
|
|
18868
18868
|
}),
|
|
18869
18869
|
I && aq && !K && rq,
|
|
@@ -19242,7 +19242,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19242
19242
|
}
|
|
19243
19243
|
var import_compiler_runtime$54 = require_compiler_runtime();
|
|
19244
19244
|
const AutoFixButton = (e) => {
|
|
19245
|
-
let t = (0, import_compiler_runtime$54.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(
|
|
19245
|
+
let t = (0, import_compiler_runtime$54.c)(21), { errors: n, cellId: i, className: o } = e, s = useStore(), { createNewCell: c } = useCellActions(), d = useAtomValue(aiFeaturesEnabledAtom), f;
|
|
19246
19246
|
if (t[0] !== d || t[1] !== n) {
|
|
19247
19247
|
let e2;
|
|
19248
19248
|
t[3] === d ? e2 = t[4] : (e2 = (e3) => getAutoFixes(e3, {
|
|
@@ -19816,18 +19816,18 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19816
19816
|
}
|
|
19817
19817
|
let y, S, w, E, O, A;
|
|
19818
19818
|
if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
|
|
19819
|
-
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14),
|
|
19820
|
-
t[17] === s ?
|
|
19819
|
+
let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), PK = n.filter(_temp16), FK = n.filter(_temp17), IK = n.filter(_temp18), RK;
|
|
19820
|
+
t[17] === s ? RK = t[18] : (RK = () => {
|
|
19821
19821
|
s.openApplication("scratchpad");
|
|
19822
|
-
}, t[17] = s, t[18] =
|
|
19823
|
-
let
|
|
19822
|
+
}, t[17] = s, t[18] = RK);
|
|
19823
|
+
let zK = RK, BK = () => {
|
|
19824
19824
|
let t2 = [];
|
|
19825
|
-
if (
|
|
19826
|
-
let e3 =
|
|
19825
|
+
if (PK.length > 0 || FK.length > 0) {
|
|
19826
|
+
let e3 = PK.some(_temp19), n2 = !e3 && PK.some(_temp20);
|
|
19827
19827
|
t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
19828
19828
|
children: [
|
|
19829
|
-
|
|
19830
|
-
|
|
19829
|
+
PK.map(_temp21),
|
|
19830
|
+
FK.map(_temp22),
|
|
19831
19831
|
e3 && (0, import_jsx_runtime.jsxs)(Button, {
|
|
19832
19832
|
size: "xs",
|
|
19833
19833
|
variant: "outline",
|
|
@@ -19858,8 +19858,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
19858
19858
|
}),
|
|
19859
19859
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
19860
19860
|
errors: [
|
|
19861
|
-
...
|
|
19862
|
-
...
|
|
19861
|
+
...PK,
|
|
19862
|
+
...FK
|
|
19863
19863
|
],
|
|
19864
19864
|
cellId: i
|
|
19865
19865
|
})
|
|
@@ -20020,7 +20020,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20020
20020
|
size: "xs",
|
|
20021
20021
|
variant: "link",
|
|
20022
20022
|
className: "my-2 font-normal mx-0 px-0",
|
|
20023
|
-
onClick:
|
|
20023
|
+
onClick: zK,
|
|
20024
20024
|
children: [
|
|
20025
20025
|
(0, import_jsx_runtime.jsx)(NotebookPen, {
|
|
20026
20026
|
className: "h-3"
|
|
@@ -20211,19 +20211,19 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20211
20211
|
cellId: i
|
|
20212
20212
|
})
|
|
20213
20213
|
]
|
|
20214
|
-
}, "ancestor-prevented")),
|
|
20214
|
+
}, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20215
20215
|
children: [
|
|
20216
|
-
|
|
20216
|
+
$.map(_temp34),
|
|
20217
20217
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20218
|
-
errors:
|
|
20218
|
+
errors: $,
|
|
20219
20219
|
cellId: i
|
|
20220
20220
|
})
|
|
20221
20221
|
]
|
|
20222
|
-
}, "ancestor-stopped")),
|
|
20222
|
+
}, "ancestor-stopped")), IK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
|
|
20223
20223
|
children: [
|
|
20224
|
-
|
|
20224
|
+
IK.map(_temp35),
|
|
20225
20225
|
i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
|
|
20226
|
-
errors:
|
|
20226
|
+
errors: IK,
|
|
20227
20227
|
cellId: i,
|
|
20228
20228
|
className: "mt-2.5"
|
|
20229
20229
|
})
|
|
@@ -20243,21 +20243,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
20243
20243
|
})
|
|
20244
20244
|
]
|
|
20245
20245
|
}), t[19] = v, t[20] = VK);
|
|
20246
|
-
let
|
|
20247
|
-
t[21] !== _ || t[22] !== d ? (
|
|
20246
|
+
let UK;
|
|
20247
|
+
t[21] !== _ || t[22] !== d ? (UK = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
|
|
20248
20248
|
className: `font-code font-medium ${_}`,
|
|
20249
20249
|
children: d
|
|
20250
|
-
}), t[21] = _, t[22] = d, t[23] =
|
|
20251
|
-
let
|
|
20252
|
-
t[24] !== VK || t[25] !==
|
|
20250
|
+
}), t[21] = _, t[22] = d, t[23] = UK) : UK = t[23];
|
|
20251
|
+
let WK;
|
|
20252
|
+
t[24] !== VK || t[25] !== UK ? (WK = (0, import_jsx_runtime.jsxs)("div", {
|
|
20253
20253
|
className: "space-y-0.5",
|
|
20254
20254
|
children: [
|
|
20255
20255
|
VK,
|
|
20256
|
-
|
|
20256
|
+
UK
|
|
20257
20257
|
]
|
|
20258
|
-
}), t[24] = VK, t[25] =
|
|
20259
|
-
let
|
|
20260
|
-
y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A =
|
|
20258
|
+
}), t[24] = VK, t[25] = UK, t[26] = WK) : WK = t[26];
|
|
20259
|
+
let GK = WK;
|
|
20260
|
+
y = Alert, E = f, t[27] === o ? O = t[28] : (O = cn("border-none font-code text-sm text-[0.84375rem] p-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-2", o), t[27] = o, t[28] = O), A = GK, S = "flex flex-col gap-4", w = BK(), t[2] = f, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = c, t[8] = v, t[9] = _, t[10] = d, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A;
|
|
20261
20261
|
} else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
|
|
20262
20262
|
let M;
|
|
20263
20263
|
t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
|
|
@@ -23427,112 +23427,171 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23427
23427
|
unknown: []
|
|
23428
23428
|
};
|
|
23429
23429
|
var import_compiler_runtime$41 = require_compiler_runtime();
|
|
23430
|
-
function
|
|
23430
|
+
function FormatOptions(e) {
|
|
23431
23431
|
var _a2, _b, _c;
|
|
23432
|
-
let n = (_a2 =
|
|
23433
|
-
if (
|
|
23434
|
-
|
|
23435
|
-
|
|
23436
|
-
|
|
23437
|
-
(0
|
|
23432
|
+
let t = (0, import_compiler_runtime$41.c)(36), { column: n, locale: i } = e, o = (_a2 = n.columnDef.meta) == null ? void 0 : _a2.dataType, s, c, d, f, h, _, v, y;
|
|
23433
|
+
if (t[0] !== n || t[1] !== o || t[2] !== i) {
|
|
23434
|
+
y = /* @__PURE__ */ Symbol.for("react.early_return_sentinel");
|
|
23435
|
+
bb0: {
|
|
23436
|
+
let e2 = o ? formatOptions[o] : [];
|
|
23437
|
+
if (e2.length === 0 || !((_b = n.getCanFormat) == null ? void 0 : _b.call(n))) {
|
|
23438
|
+
y = null;
|
|
23439
|
+
break bb0;
|
|
23440
|
+
}
|
|
23441
|
+
let S2 = DATA_TYPE_ICON[o || "unknown"], w2;
|
|
23442
|
+
t[11] === n ? w2 = t[12] : (w2 = (_c = n.getColumnFormatting) == null ? void 0 : _c.call(n), t[11] = n, t[12] = w2);
|
|
23443
|
+
let E2 = w2;
|
|
23444
|
+
d = DropdownMenuSub, t[13] === S2 ? v = t[14] : (v = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
|
|
23438
23445
|
children: [
|
|
23439
|
-
(0, import_jsx_runtime.jsx)(
|
|
23446
|
+
(0, import_jsx_runtime.jsx)(S2, {
|
|
23440
23447
|
className: "mo-dropdown-icon"
|
|
23441
23448
|
}),
|
|
23442
23449
|
"Format"
|
|
23443
23450
|
]
|
|
23444
|
-
}),
|
|
23445
|
-
|
|
23446
|
-
children:
|
|
23447
|
-
|
|
23448
|
-
|
|
23449
|
-
|
|
23450
|
-
|
|
23451
|
-
|
|
23452
|
-
|
|
23453
|
-
|
|
23454
|
-
|
|
23455
|
-
|
|
23456
|
-
|
|
23457
|
-
|
|
23458
|
-
|
|
23459
|
-
|
|
23460
|
-
|
|
23461
|
-
|
|
23462
|
-
|
|
23463
|
-
|
|
23464
|
-
|
|
23465
|
-
|
|
23466
|
-
|
|
23467
|
-
|
|
23468
|
-
|
|
23469
|
-
|
|
23470
|
-
|
|
23471
|
-
|
|
23472
|
-
|
|
23473
|
-
|
|
23474
|
-
|
|
23475
|
-
|
|
23476
|
-
|
|
23477
|
-
|
|
23478
|
-
|
|
23479
|
-
|
|
23480
|
-
|
|
23451
|
+
}), t[13] = S2, t[14] = v), c = DropdownMenuPortal, s = DropdownMenuSubContent, t[15] === i ? f = t[16] : (f = (0, import_jsx_runtime.jsxs)("div", {
|
|
23452
|
+
className: "text-xs text-muted-foreground px-2 py-1",
|
|
23453
|
+
children: [
|
|
23454
|
+
"Locale: ",
|
|
23455
|
+
i
|
|
23456
|
+
]
|
|
23457
|
+
}), t[15] = i, t[16] = f), t[17] !== n || t[18] !== E2 ? (h = !!E2 && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
23458
|
+
children: [
|
|
23459
|
+
(0, import_jsx_runtime.jsx)(DropdownMenuItem, {
|
|
23460
|
+
variant: "danger",
|
|
23461
|
+
onClick: () => n.setColumnFormatting(void 0),
|
|
23462
|
+
children: "Clear"
|
|
23463
|
+
}, "clear"),
|
|
23464
|
+
(0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {})
|
|
23465
|
+
]
|
|
23466
|
+
}), t[17] = n, t[18] = E2, t[19] = h) : h = t[19];
|
|
23467
|
+
let O;
|
|
23468
|
+
t[20] !== n || t[21] !== E2 || t[22] !== i ? (O = (e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23469
|
+
onClick: () => n.setColumnFormatting(e3),
|
|
23470
|
+
children: [
|
|
23471
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
23472
|
+
className: cn(E2 === e3 && "font-semibold"),
|
|
23473
|
+
children: e3
|
|
23474
|
+
}),
|
|
23475
|
+
(0, import_jsx_runtime.jsx)("span", {
|
|
23476
|
+
className: "ml-auto pl-5 text-xs text-muted-foreground",
|
|
23477
|
+
children: formattingExample(e3, i)
|
|
23478
|
+
})
|
|
23479
|
+
]
|
|
23480
|
+
}, e3), t[20] = n, t[21] = E2, t[22] = i, t[23] = O) : O = t[23], _ = e2.map(O);
|
|
23481
|
+
}
|
|
23482
|
+
t[0] = n, t[1] = o, t[2] = i, t[3] = s, t[4] = c, t[5] = d, t[6] = f, t[7] = h, t[8] = _, t[9] = v, t[10] = y;
|
|
23483
|
+
} else s = t[3], c = t[4], d = t[5], f = t[6], h = t[7], _ = t[8], v = t[9], y = t[10];
|
|
23484
|
+
if (y !== /* @__PURE__ */ Symbol.for("react.early_return_sentinel")) return y;
|
|
23485
|
+
let S;
|
|
23486
|
+
t[24] !== s || t[25] !== f || t[26] !== h || t[27] !== _ ? (S = (0, import_jsx_runtime.jsxs)(s, {
|
|
23487
|
+
children: [
|
|
23488
|
+
f,
|
|
23489
|
+
h,
|
|
23490
|
+
_
|
|
23481
23491
|
]
|
|
23482
|
-
});
|
|
23483
|
-
|
|
23484
|
-
|
|
23485
|
-
|
|
23486
|
-
|
|
23487
|
-
|
|
23492
|
+
}), t[24] = s, t[25] = f, t[26] = h, t[27] = _, t[28] = S) : S = t[28];
|
|
23493
|
+
let w;
|
|
23494
|
+
t[29] !== c || t[30] !== S ? (w = (0, import_jsx_runtime.jsx)(c, {
|
|
23495
|
+
children: S
|
|
23496
|
+
}), t[29] = c, t[30] = S, t[31] = w) : w = t[31];
|
|
23497
|
+
let E;
|
|
23498
|
+
return t[32] !== d || t[33] !== v || t[34] !== w ? (E = (0, import_jsx_runtime.jsxs)(d, {
|
|
23488
23499
|
children: [
|
|
23489
|
-
|
|
23490
|
-
|
|
23491
|
-
}),
|
|
23492
|
-
"No wrap text"
|
|
23500
|
+
v,
|
|
23501
|
+
w
|
|
23493
23502
|
]
|
|
23494
|
-
})
|
|
23495
|
-
|
|
23503
|
+
}), t[32] = d, t[33] = v, t[34] = w, t[35] = E) : E = t[35], E;
|
|
23504
|
+
}
|
|
23505
|
+
function ColumnWrapping(e) {
|
|
23506
|
+
var _a2;
|
|
23507
|
+
let t = (0, import_compiler_runtime$41.c)(10), { column: n } = e;
|
|
23508
|
+
if (!((_a2 = n.getCanWrap) == null ? void 0 : _a2.call(n)) || !n.getColumnWrapping) return null;
|
|
23509
|
+
if (n.getColumnWrapping() === "wrap") {
|
|
23510
|
+
let e2;
|
|
23511
|
+
t[0] === n ? e2 = t[1] : (e2 = () => n.toggleColumnWrapping("nowrap"), t[0] = n, t[1] = e2);
|
|
23512
|
+
let i2;
|
|
23513
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i2 = (0, import_jsx_runtime.jsx)(TextAlignJustify, {
|
|
23514
|
+
className: "mo-dropdown-icon"
|
|
23515
|
+
}), t[2] = i2) : i2 = t[2];
|
|
23516
|
+
let a2;
|
|
23517
|
+
return t[3] === e2 ? a2 = t[4] : (a2 = (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23518
|
+
onClick: e2,
|
|
23519
|
+
children: [
|
|
23520
|
+
i2,
|
|
23521
|
+
"No wrap text"
|
|
23522
|
+
]
|
|
23523
|
+
}), t[3] = e2, t[4] = a2), a2;
|
|
23524
|
+
}
|
|
23525
|
+
let i;
|
|
23526
|
+
t[5] === n ? i = t[6] : (i = () => n.toggleColumnWrapping("wrap"), t[5] = n, t[6] = i);
|
|
23527
|
+
let a;
|
|
23528
|
+
t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(TextWrap, {
|
|
23529
|
+
className: "mo-dropdown-icon"
|
|
23530
|
+
}), t[7] = a) : a = t[7];
|
|
23531
|
+
let o;
|
|
23532
|
+
return t[8] === i ? o = t[9] : (o = (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23533
|
+
onClick: i,
|
|
23496
23534
|
children: [
|
|
23497
|
-
|
|
23498
|
-
className: "mo-dropdown-icon"
|
|
23499
|
-
}),
|
|
23535
|
+
a,
|
|
23500
23536
|
"Wrap text"
|
|
23501
23537
|
]
|
|
23502
|
-
});
|
|
23538
|
+
}), t[8] = i, t[9] = o), o;
|
|
23503
23539
|
}
|
|
23504
|
-
function
|
|
23540
|
+
function ColumnPinning$1(e) {
|
|
23505
23541
|
var _a2;
|
|
23506
|
-
|
|
23542
|
+
let t = (0, import_compiler_runtime$41.c)(18), { column: n } = e;
|
|
23543
|
+
if (!((_a2 = n.getCanPin) == null ? void 0 : _a2.call(n)) || !n.getIsPinned) return null;
|
|
23544
|
+
if (n.getIsPinned() !== false) {
|
|
23545
|
+
let e2;
|
|
23546
|
+
t[0] === n ? e2 = t[1] : (e2 = () => n.pin(false), t[0] = n, t[1] = e2);
|
|
23547
|
+
let i2;
|
|
23548
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (i2 = (0, import_jsx_runtime.jsx)(PinOff, {
|
|
23549
|
+
className: "mo-dropdown-icon"
|
|
23550
|
+
}), t[2] = i2) : i2 = t[2];
|
|
23551
|
+
let a2;
|
|
23552
|
+
return t[3] === e2 ? a2 = t[4] : (a2 = (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23553
|
+
onClick: e2,
|
|
23554
|
+
children: [
|
|
23555
|
+
i2,
|
|
23556
|
+
"Unfreeze"
|
|
23557
|
+
]
|
|
23558
|
+
}), t[3] = e2, t[4] = a2), a2;
|
|
23559
|
+
}
|
|
23560
|
+
let i;
|
|
23561
|
+
t[5] === n ? i = t[6] : (i = () => n.pin("left"), t[5] = n, t[6] = i);
|
|
23562
|
+
let a;
|
|
23563
|
+
t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(PinLeftIcon, {
|
|
23564
|
+
className: "mo-dropdown-icon"
|
|
23565
|
+
}), t[7] = a) : a = t[7];
|
|
23566
|
+
let o;
|
|
23567
|
+
t[8] === i ? o = t[9] : (o = (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23568
|
+
onClick: i,
|
|
23507
23569
|
children: [
|
|
23508
|
-
|
|
23509
|
-
|
|
23510
|
-
children: [
|
|
23511
|
-
(0, import_jsx_runtime.jsx)(PinLeftIcon, {
|
|
23512
|
-
className: "mo-dropdown-icon"
|
|
23513
|
-
}),
|
|
23514
|
-
"Freeze left"
|
|
23515
|
-
]
|
|
23516
|
-
}),
|
|
23517
|
-
(0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23518
|
-
onClick: () => e.pin("right"),
|
|
23519
|
-
children: [
|
|
23520
|
-
(0, import_jsx_runtime.jsx)(PinRightIcon, {
|
|
23521
|
-
className: "mo-dropdown-icon"
|
|
23522
|
-
}),
|
|
23523
|
-
"Freeze right"
|
|
23524
|
-
]
|
|
23525
|
-
})
|
|
23570
|
+
a,
|
|
23571
|
+
"Freeze left"
|
|
23526
23572
|
]
|
|
23527
|
-
})
|
|
23528
|
-
|
|
23573
|
+
}), t[8] = i, t[9] = o);
|
|
23574
|
+
let s;
|
|
23575
|
+
t[10] === n ? s = t[11] : (s = () => n.pin("right"), t[10] = n, t[11] = s);
|
|
23576
|
+
let c;
|
|
23577
|
+
t[12] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsx)(PinRightIcon, {
|
|
23578
|
+
className: "mo-dropdown-icon"
|
|
23579
|
+
}), t[12] = c) : c = t[12];
|
|
23580
|
+
let d;
|
|
23581
|
+
t[13] === s ? d = t[14] : (d = (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23582
|
+
onClick: s,
|
|
23529
23583
|
children: [
|
|
23530
|
-
|
|
23531
|
-
|
|
23532
|
-
}),
|
|
23533
|
-
"Unfreeze"
|
|
23584
|
+
c,
|
|
23585
|
+
"Freeze right"
|
|
23534
23586
|
]
|
|
23535
|
-
});
|
|
23587
|
+
}), t[13] = s, t[14] = d);
|
|
23588
|
+
let f;
|
|
23589
|
+
return t[15] !== o || t[16] !== d ? (f = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
23590
|
+
children: [
|
|
23591
|
+
o,
|
|
23592
|
+
d
|
|
23593
|
+
]
|
|
23594
|
+
}), t[15] = o, t[16] = d, t[17] = f) : f = t[17], f;
|
|
23536
23595
|
}
|
|
23537
23596
|
function HideColumn(e) {
|
|
23538
23597
|
let t = (0, import_compiler_runtime$41.c)(5), { column: n } = e;
|
|
@@ -23552,26 +23611,41 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23552
23611
|
]
|
|
23553
23612
|
}), t[3] = i, t[4] = o), o;
|
|
23554
23613
|
}
|
|
23555
|
-
function
|
|
23614
|
+
function CopyColumn(e) {
|
|
23556
23615
|
var _a2;
|
|
23557
|
-
|
|
23558
|
-
|
|
23616
|
+
let t = (0, import_compiler_runtime$41.c)(5), { column: n } = e;
|
|
23617
|
+
if (!((_a2 = n.getCanCopy) == null ? void 0 : _a2.call(n)) || n.id.startsWith("__m_column__")) return null;
|
|
23618
|
+
let i;
|
|
23619
|
+
t[0] === n.id ? i = t[1] : (i = async () => await copyToClipboard(n.id), t[0] = n.id, t[1] = i);
|
|
23620
|
+
let a;
|
|
23621
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (a = (0, import_jsx_runtime.jsx)(Copy, {
|
|
23622
|
+
className: "mo-dropdown-icon"
|
|
23623
|
+
}), t[2] = a) : a = t[2];
|
|
23624
|
+
let o;
|
|
23625
|
+
return t[3] === i ? o = t[4] : (o = (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23626
|
+
onClick: i,
|
|
23559
23627
|
children: [
|
|
23560
|
-
|
|
23561
|
-
className: "mo-dropdown-icon"
|
|
23562
|
-
}),
|
|
23628
|
+
a,
|
|
23563
23629
|
"Copy column name"
|
|
23564
23630
|
]
|
|
23565
|
-
});
|
|
23631
|
+
}), t[3] = i, t[4] = o), o;
|
|
23566
23632
|
}
|
|
23567
23633
|
var AscIcon = ArrowUpNarrowWide, DescIcon = ArrowDownWideNarrow;
|
|
23568
|
-
function
|
|
23569
|
-
|
|
23570
|
-
|
|
23634
|
+
function Sorts(e) {
|
|
23635
|
+
let t = (0, import_compiler_runtime$41.c)(40), { column: n, table: i } = e;
|
|
23636
|
+
if (!n.getCanSort()) return null;
|
|
23637
|
+
let a;
|
|
23638
|
+
t[0] === n ? a = t[1] : (a = n.getIsSorted(), t[0] = n, t[1] = a);
|
|
23639
|
+
let o = a, s = n.getSortIndex(), c;
|
|
23640
|
+
t[2] === i ? c = t[3] : (c = i == null ? void 0 : i.getState().sorting, t[2] = i, t[3] = c);
|
|
23641
|
+
let d = c, f = (d == null ? void 0 : d.length) && d.length > 1, h;
|
|
23642
|
+
t[4] === s ? h = t[5] : (h = () => (0, import_jsx_runtime.jsx)("span", {
|
|
23571
23643
|
className: "ml-auto text-xs font-medium",
|
|
23572
|
-
children:
|
|
23573
|
-
}),
|
|
23574
|
-
|
|
23644
|
+
children: s + 1
|
|
23645
|
+
}), t[4] = s, t[5] = h);
|
|
23646
|
+
let _ = h, v;
|
|
23647
|
+
t[6] !== n || t[7] !== f || t[8] !== o || t[9] !== i ? (v = () => o ? f ? (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23648
|
+
onClick: () => i == null ? void 0 : i.resetSorting(),
|
|
23575
23649
|
children: [
|
|
23576
23650
|
(0, import_jsx_runtime.jsx)(ChevronsUpDown, {
|
|
23577
23651
|
className: "mo-dropdown-icon"
|
|
@@ -23579,47 +23653,68 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23579
23653
|
"Clear all sorts"
|
|
23580
23654
|
]
|
|
23581
23655
|
}) : (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23582
|
-
onClick: () =>
|
|
23656
|
+
onClick: () => n.clearSorting(),
|
|
23583
23657
|
children: [
|
|
23584
23658
|
(0, import_jsx_runtime.jsx)(ChevronsUpDown, {
|
|
23585
23659
|
className: "mo-dropdown-icon"
|
|
23586
23660
|
}),
|
|
23587
23661
|
"Clear sort"
|
|
23588
23662
|
]
|
|
23589
|
-
}) : null,
|
|
23590
|
-
|
|
23663
|
+
}) : null, t[6] = n, t[7] = f, t[8] = o, t[9] = i, t[10] = v) : v = t[10];
|
|
23664
|
+
let y = v, S;
|
|
23665
|
+
t[11] !== n || t[12] !== o ? (S = (e2) => {
|
|
23666
|
+
if (o === e2) n.clearSorting();
|
|
23591
23667
|
else {
|
|
23592
|
-
let
|
|
23593
|
-
|
|
23668
|
+
let t2 = e2 === "desc";
|
|
23669
|
+
n.toggleSorting(t2, true);
|
|
23594
23670
|
}
|
|
23595
|
-
};
|
|
23596
|
-
|
|
23671
|
+
}, t[11] = n, t[12] = o, t[13] = S) : S = t[13];
|
|
23672
|
+
let w = S, E;
|
|
23673
|
+
t[14] === w ? E = t[15] : (E = () => w("asc"), t[14] = w, t[15] = E);
|
|
23674
|
+
let O = o === "asc" ? "bg-accent" : "", A;
|
|
23675
|
+
t[16] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (A = (0, import_jsx_runtime.jsx)(AscIcon, {
|
|
23676
|
+
className: "mo-dropdown-icon"
|
|
23677
|
+
}), t[16] = A) : A = t[16];
|
|
23678
|
+
let M;
|
|
23679
|
+
t[17] !== _ || t[18] !== o ? (M = o === "asc" && _(), t[17] = _, t[18] = o, t[19] = M) : M = t[19];
|
|
23680
|
+
let I;
|
|
23681
|
+
t[20] !== E || t[21] !== O || t[22] !== M ? (I = (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23682
|
+
onClick: E,
|
|
23683
|
+
className: O,
|
|
23597
23684
|
children: [
|
|
23598
|
-
|
|
23599
|
-
|
|
23600
|
-
|
|
23601
|
-
children: [
|
|
23602
|
-
(0, import_jsx_runtime.jsx)(AscIcon, {
|
|
23603
|
-
className: "mo-dropdown-icon"
|
|
23604
|
-
}),
|
|
23605
|
-
"Asc",
|
|
23606
|
-
n === "asc" && s()
|
|
23607
|
-
]
|
|
23608
|
-
}),
|
|
23609
|
-
(0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23610
|
-
onClick: () => d("desc"),
|
|
23611
|
-
className: n === "desc" ? "bg-accent" : "",
|
|
23612
|
-
children: [
|
|
23613
|
-
(0, import_jsx_runtime.jsx)(DescIcon, {
|
|
23614
|
-
className: "mo-dropdown-icon"
|
|
23615
|
-
}),
|
|
23616
|
-
"Desc",
|
|
23617
|
-
n === "desc" && s()
|
|
23618
|
-
]
|
|
23619
|
-
}),
|
|
23620
|
-
c()
|
|
23685
|
+
A,
|
|
23686
|
+
"Asc",
|
|
23687
|
+
M
|
|
23621
23688
|
]
|
|
23622
|
-
});
|
|
23689
|
+
}), t[20] = E, t[21] = O, t[22] = M, t[23] = I) : I = t[23];
|
|
23690
|
+
let z;
|
|
23691
|
+
t[24] === w ? z = t[25] : (z = () => w("desc"), t[24] = w, t[25] = z);
|
|
23692
|
+
let U = o === "desc" ? "bg-accent" : "", K;
|
|
23693
|
+
t[26] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (K = (0, import_jsx_runtime.jsx)(DescIcon, {
|
|
23694
|
+
className: "mo-dropdown-icon"
|
|
23695
|
+
}), t[26] = K) : K = t[26];
|
|
23696
|
+
let q;
|
|
23697
|
+
t[27] !== _ || t[28] !== o ? (q = o === "desc" && _(), t[27] = _, t[28] = o, t[29] = q) : q = t[29];
|
|
23698
|
+
let J;
|
|
23699
|
+
t[30] !== z || t[31] !== U || t[32] !== q ? (J = (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
23700
|
+
onClick: z,
|
|
23701
|
+
className: U,
|
|
23702
|
+
children: [
|
|
23703
|
+
K,
|
|
23704
|
+
"Desc",
|
|
23705
|
+
q
|
|
23706
|
+
]
|
|
23707
|
+
}), t[30] = z, t[31] = U, t[32] = q, t[33] = J) : J = t[33];
|
|
23708
|
+
let Q;
|
|
23709
|
+
t[34] === y ? Q = t[35] : (Q = y(), t[34] = y, t[35] = Q);
|
|
23710
|
+
let $;
|
|
23711
|
+
return t[36] !== I || t[37] !== J || t[38] !== Q ? ($ = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
23712
|
+
children: [
|
|
23713
|
+
I,
|
|
23714
|
+
J,
|
|
23715
|
+
Q
|
|
23716
|
+
]
|
|
23717
|
+
}), t[36] = I, t[37] = J, t[38] = Q, t[39] = $) : $ = t[39], $;
|
|
23623
23718
|
}
|
|
23624
23719
|
function renderSortIcon(e) {
|
|
23625
23720
|
if (!e.getCanSort()) return null;
|
|
@@ -23628,18 +23723,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23628
23723
|
className: "h-3 w-3"
|
|
23629
23724
|
});
|
|
23630
23725
|
}
|
|
23631
|
-
function
|
|
23726
|
+
function DataType(e) {
|
|
23632
23727
|
var _a2;
|
|
23633
|
-
let t = (_a2 =
|
|
23634
|
-
|
|
23728
|
+
let t = (0, import_compiler_runtime$41.c)(5), { column: n } = e, i = (_a2 = n.columnDef.meta) == null ? void 0 : _a2.dtype;
|
|
23729
|
+
if (!i) return null;
|
|
23730
|
+
let a;
|
|
23731
|
+
t[0] === i ? a = t[1] : (a = (0, import_jsx_runtime.jsx)("div", {
|
|
23732
|
+
className: "flex-1 px-2 text-xs text-muted-foreground font-bold",
|
|
23733
|
+
children: i
|
|
23734
|
+
}), t[0] = i, t[1] = a);
|
|
23735
|
+
let o;
|
|
23736
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (o = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), t[2] = o) : o = t[2];
|
|
23737
|
+
let s;
|
|
23738
|
+
return t[3] === a ? s = t[4] : (s = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
|
|
23635
23739
|
children: [
|
|
23636
|
-
|
|
23637
|
-
|
|
23638
|
-
children: t
|
|
23639
|
-
}),
|
|
23640
|
-
(0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {})
|
|
23740
|
+
a,
|
|
23741
|
+
o
|
|
23641
23742
|
]
|
|
23642
|
-
})
|
|
23743
|
+
}), t[3] = a, t[4] = s), s;
|
|
23643
23744
|
}
|
|
23644
23745
|
const ClearFilterMenuItem = (e) => {
|
|
23645
23746
|
let t = (0, import_compiler_runtime$41.c)(5), { column: n } = e, i;
|
|
@@ -23713,12 +23814,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
23713
23814
|
(0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
|
|
23714
23815
|
align: "start",
|
|
23715
23816
|
children: [
|
|
23716
|
-
|
|
23717
|
-
|
|
23718
|
-
|
|
23719
|
-
|
|
23720
|
-
|
|
23721
|
-
|
|
23817
|
+
(0, import_jsx_runtime.jsx)(DataType, {
|
|
23818
|
+
column: e
|
|
23819
|
+
}),
|
|
23820
|
+
(0, import_jsx_runtime.jsx)(Sorts, {
|
|
23821
|
+
column: e,
|
|
23822
|
+
table: s
|
|
23823
|
+
}),
|
|
23824
|
+
(0, import_jsx_runtime.jsx)(CopyColumn, {
|
|
23825
|
+
column: e
|
|
23826
|
+
}),
|
|
23827
|
+
(0, import_jsx_runtime.jsx)(ColumnPinning$1, {
|
|
23828
|
+
column: e
|
|
23829
|
+
}),
|
|
23830
|
+
(0, import_jsx_runtime.jsx)(ColumnWrapping, {
|
|
23831
|
+
column: e
|
|
23832
|
+
}),
|
|
23833
|
+
(0, import_jsx_runtime.jsx)(FormatOptions, {
|
|
23834
|
+
column: e,
|
|
23835
|
+
locale: c
|
|
23836
|
+
}),
|
|
23722
23837
|
(0, import_jsx_runtime.jsx)(HideColumn, {
|
|
23723
23838
|
column: e
|
|
23724
23839
|
}),
|
|
@@ -26189,7 +26304,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26189
26304
|
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 }) {
|
|
26190
26305
|
let E = (0, import_react.useContext)(PanelGroupContext);
|
|
26191
26306
|
if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
|
|
26192
|
-
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E,
|
|
26307
|
+
let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), PK = (0, import_react.useRef)({
|
|
26193
26308
|
callbacks: {
|
|
26194
26309
|
onCollapse: f,
|
|
26195
26310
|
onExpand: h,
|
|
@@ -26202,72 +26317,72 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
26202
26317
|
maxSize: c,
|
|
26203
26318
|
minSize: d
|
|
26204
26319
|
},
|
|
26205
|
-
id:
|
|
26320
|
+
id: $,
|
|
26206
26321
|
idIsFromProps: s !== void 0,
|
|
26207
26322
|
order: v
|
|
26208
26323
|
});
|
|
26209
26324
|
(0, import_react.useRef)({
|
|
26210
26325
|
didLogMissingDefaultSizeWarning: false
|
|
26211
26326
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26212
|
-
let { callbacks: e2, constraints: t2 } =
|
|
26327
|
+
let { callbacks: e2, constraints: t2 } = PK.current, o2 = {
|
|
26213
26328
|
...t2
|
|
26214
26329
|
};
|
|
26215
|
-
|
|
26330
|
+
PK.current.id = $, PK.current.idIsFromProps = s !== void 0, PK.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(PK.current, o2);
|
|
26216
26331
|
}), useIsomorphicLayoutEffect$1(() => {
|
|
26217
|
-
let e2 =
|
|
26332
|
+
let e2 = PK.current;
|
|
26218
26333
|
return q(e2), () => {
|
|
26219
26334
|
Q(e2);
|
|
26220
26335
|
};
|
|
26221
26336
|
}, [
|
|
26222
26337
|
v,
|
|
26223
|
-
|
|
26338
|
+
$,
|
|
26224
26339
|
q,
|
|
26225
26340
|
Q
|
|
26226
26341
|
]), (0, import_react.useImperativeHandle)(o, () => ({
|
|
26227
26342
|
collapse: () => {
|
|
26228
|
-
O(
|
|
26343
|
+
O(PK.current);
|
|
26229
26344
|
},
|
|
26230
26345
|
expand: (e2) => {
|
|
26231
|
-
A(
|
|
26346
|
+
A(PK.current, e2);
|
|
26232
26347
|
},
|
|
26233
26348
|
getId() {
|
|
26234
|
-
return
|
|
26349
|
+
return $;
|
|
26235
26350
|
},
|
|
26236
26351
|
getSize() {
|
|
26237
|
-
return M(
|
|
26352
|
+
return M(PK.current);
|
|
26238
26353
|
},
|
|
26239
26354
|
isCollapsed() {
|
|
26240
|
-
return U(
|
|
26355
|
+
return U(PK.current);
|
|
26241
26356
|
},
|
|
26242
26357
|
isExpanded() {
|
|
26243
|
-
return !U(
|
|
26358
|
+
return !U(PK.current);
|
|
26244
26359
|
},
|
|
26245
26360
|
resize: (e2) => {
|
|
26246
|
-
J(
|
|
26361
|
+
J(PK.current, e2);
|
|
26247
26362
|
}
|
|
26248
26363
|
}), [
|
|
26249
26364
|
O,
|
|
26250
26365
|
A,
|
|
26251
26366
|
M,
|
|
26252
26367
|
U,
|
|
26253
|
-
|
|
26368
|
+
$,
|
|
26254
26369
|
J
|
|
26255
26370
|
]);
|
|
26256
|
-
let
|
|
26371
|
+
let FK = I(PK.current, a);
|
|
26257
26372
|
return (0, import_react.createElement)(S, {
|
|
26258
26373
|
...w,
|
|
26259
26374
|
children: e,
|
|
26260
26375
|
className: t,
|
|
26261
|
-
id:
|
|
26376
|
+
id: $,
|
|
26262
26377
|
style: {
|
|
26263
|
-
...
|
|
26378
|
+
...FK,
|
|
26264
26379
|
...y
|
|
26265
26380
|
},
|
|
26266
26381
|
[DATA_ATTRIBUTES.groupId]: z,
|
|
26267
26382
|
[DATA_ATTRIBUTES.panel]: "",
|
|
26268
26383
|
[DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
|
|
26269
|
-
[DATA_ATTRIBUTES.panelId]:
|
|
26270
|
-
[DATA_ATTRIBUTES.panelSize]: parseFloat("" +
|
|
26384
|
+
[DATA_ATTRIBUTES.panelId]: $,
|
|
26385
|
+
[DATA_ATTRIBUTES.panelSize]: parseFloat("" + FK.flexGrow).toFixed(1)
|
|
26271
26386
|
});
|
|
26272
26387
|
}
|
|
26273
26388
|
Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
|
|
@@ -27040,7 +27155,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27040
27155
|
}, []), Q = (0, import_react.useCallback)((e2) => {
|
|
27041
27156
|
let { layout: t2, panelDataArray: n2 } = K.current, { panelSize: i2 } = panelDataHelper(n2, e2, t2);
|
|
27042
27157
|
return assert(i2 != null, `Panel size not found for panel "${e2.id}"`), i2;
|
|
27043
|
-
}, []),
|
|
27158
|
+
}, []), $ = (0, import_react.useCallback)((e2, t2) => {
|
|
27044
27159
|
let { panelDataArray: n2 } = K.current;
|
|
27045
27160
|
return computePanelFlexBoxStyle({
|
|
27046
27161
|
defaultSize: t2,
|
|
@@ -27052,13 +27167,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27052
27167
|
}, [
|
|
27053
27168
|
S,
|
|
27054
27169
|
E
|
|
27055
|
-
]),
|
|
27170
|
+
]), PK = (0, import_react.useCallback)((e2) => {
|
|
27056
27171
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27057
27172
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
|
|
27058
|
-
}, []),
|
|
27173
|
+
}, []), FK = (0, import_react.useCallback)((e2) => {
|
|
27059
27174
|
let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
|
|
27060
27175
|
return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
|
|
27061
|
-
}, []),
|
|
27176
|
+
}, []), IK = (0, import_react.useCallback)((e2) => {
|
|
27062
27177
|
let { panelDataArray: t2 } = K.current;
|
|
27063
27178
|
t2.push(e2), t2.sort((e3, t3) => {
|
|
27064
27179
|
let n2 = e3.order, i2 = t3.order;
|
|
@@ -27090,7 +27205,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27090
27205
|
e2.layout = [];
|
|
27091
27206
|
};
|
|
27092
27207
|
}, []);
|
|
27093
|
-
let
|
|
27208
|
+
let LK = (0, import_react.useCallback)((e2) => {
|
|
27094
27209
|
let t2 = false, n2 = y.current;
|
|
27095
27210
|
return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
|
|
27096
27211
|
n3.preventDefault();
|
|
@@ -27150,13 +27265,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27150
27265
|
dragState: S,
|
|
27151
27266
|
expandPanel: J,
|
|
27152
27267
|
getPanelSize: Q,
|
|
27153
|
-
getPanelStyle:
|
|
27268
|
+
getPanelStyle: $,
|
|
27154
27269
|
groupId: v,
|
|
27155
|
-
isPanelCollapsed:
|
|
27156
|
-
isPanelExpanded:
|
|
27270
|
+
isPanelCollapsed: PK,
|
|
27271
|
+
isPanelExpanded: FK,
|
|
27157
27272
|
reevaluatePanelConstraints: zK,
|
|
27158
|
-
registerPanel:
|
|
27159
|
-
registerResizeHandle:
|
|
27273
|
+
registerPanel: IK,
|
|
27274
|
+
registerResizeHandle: LK,
|
|
27160
27275
|
resizePanel: RK,
|
|
27161
27276
|
startDragging: BK,
|
|
27162
27277
|
stopDragging: VK,
|
|
@@ -27168,13 +27283,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27168
27283
|
i,
|
|
27169
27284
|
J,
|
|
27170
27285
|
Q,
|
|
27171
|
-
|
|
27286
|
+
$,
|
|
27172
27287
|
v,
|
|
27288
|
+
PK,
|
|
27173
27289
|
FK,
|
|
27174
|
-
IK,
|
|
27175
27290
|
zK,
|
|
27291
|
+
IK,
|
|
27176
27292
|
LK,
|
|
27177
|
-
$,
|
|
27178
27293
|
RK,
|
|
27179
27294
|
BK,
|
|
27180
27295
|
VK,
|
|
@@ -27272,16 +27387,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27272
27387
|
});
|
|
27273
27388
|
let O = (0, import_react.useContext)(PanelGroupContext);
|
|
27274
27389
|
if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
|
|
27275
|
-
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [PK
|
|
27390
|
+
let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, PK] = (0, import_react.useState)(false), [FK, IK] = (0, import_react.useState)(null), LK = (0, import_react.useRef)({
|
|
27276
27391
|
state: J
|
|
27277
27392
|
});
|
|
27278
27393
|
useIsomorphicLayoutEffect$1(() => {
|
|
27279
|
-
|
|
27394
|
+
LK.current.state = J;
|
|
27280
27395
|
}), (0, import_react.useEffect)(() => {
|
|
27281
|
-
if (n)
|
|
27396
|
+
if (n) IK(null);
|
|
27282
27397
|
else {
|
|
27283
27398
|
let e2 = I(q);
|
|
27284
|
-
|
|
27399
|
+
IK(() => e2);
|
|
27285
27400
|
}
|
|
27286
27401
|
}, [
|
|
27287
27402
|
n,
|
|
@@ -27290,7 +27405,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27290
27405
|
]);
|
|
27291
27406
|
let RK = (i == null ? void 0 : i.coarse) ?? 15, zK = (i == null ? void 0 : i.fine) ?? 5;
|
|
27292
27407
|
(0, import_react.useEffect)(() => {
|
|
27293
|
-
if (n ||
|
|
27408
|
+
if (n || FK == null) return;
|
|
27294
27409
|
let e2 = w.current;
|
|
27295
27410
|
assert(e2, "Element ref not attached");
|
|
27296
27411
|
let t2 = false;
|
|
@@ -27310,8 +27425,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27310
27425
|
break;
|
|
27311
27426
|
}
|
|
27312
27427
|
case "move": {
|
|
27313
|
-
let { state: e4 } =
|
|
27314
|
-
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'),
|
|
27428
|
+
let { state: e4 } = LK.current;
|
|
27429
|
+
t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), FK(i2);
|
|
27315
27430
|
break;
|
|
27316
27431
|
}
|
|
27317
27432
|
case "up": {
|
|
@@ -27329,13 +27444,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27329
27444
|
zK,
|
|
27330
27445
|
I,
|
|
27331
27446
|
q,
|
|
27332
|
-
|
|
27447
|
+
FK,
|
|
27333
27448
|
z,
|
|
27334
27449
|
U
|
|
27335
27450
|
]), useWindowSplitterResizeHandlerBehavior({
|
|
27336
27451
|
disabled: n,
|
|
27337
27452
|
handleId: q,
|
|
27338
|
-
resizeHandler:
|
|
27453
|
+
resizeHandler: FK,
|
|
27339
27454
|
panelGroupElement: K
|
|
27340
27455
|
});
|
|
27341
27456
|
let BK = {
|
|
@@ -27348,10 +27463,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27348
27463
|
className: t,
|
|
27349
27464
|
id: a,
|
|
27350
27465
|
onBlur: () => {
|
|
27351
|
-
|
|
27466
|
+
PK(false), o == null ? void 0 : o();
|
|
27352
27467
|
},
|
|
27353
27468
|
onFocus: () => {
|
|
27354
|
-
|
|
27469
|
+
PK(true), d == null ? void 0 : d();
|
|
27355
27470
|
},
|
|
27356
27471
|
ref: w,
|
|
27357
27472
|
role: "separator",
|
|
@@ -27363,7 +27478,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27363
27478
|
[DATA_ATTRIBUTES.groupDirection]: A,
|
|
27364
27479
|
[DATA_ATTRIBUTES.groupId]: M,
|
|
27365
27480
|
[DATA_ATTRIBUTES.resizeHandle]: "",
|
|
27366
|
-
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" :
|
|
27481
|
+
[DATA_ATTRIBUTES.resizeHandleActive]: J === "drag" ? "pointer" : $ ? "keyboard" : void 0,
|
|
27367
27482
|
[DATA_ATTRIBUTES.resizeHandleEnabled]: !n,
|
|
27368
27483
|
[DATA_ATTRIBUTES.resizeHandleId]: q,
|
|
27369
27484
|
[DATA_ATTRIBUTES.resizeHandleState]: J
|
|
@@ -27655,7 +27770,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27655
27770
|
}, [
|
|
27656
27771
|
h
|
|
27657
27772
|
]), k(() => {
|
|
27658
|
-
U(6,
|
|
27773
|
+
U(6, FK);
|
|
27659
27774
|
}, []);
|
|
27660
27775
|
let K = import_react.useMemo(() => ({
|
|
27661
27776
|
subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
|
|
@@ -27664,7 +27779,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27664
27779
|
var _a2;
|
|
27665
27780
|
var a2, o2, s2;
|
|
27666
27781
|
if (!Object.is(n.current[e2], t2)) {
|
|
27667
|
-
if (n.current[e2] = t2, e2 === "search")
|
|
27782
|
+
if (n.current[e2] = t2, e2 === "search") PK(), Q(), U(1, $);
|
|
27668
27783
|
else if (e2 === "value") {
|
|
27669
27784
|
if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
|
|
27670
27785
|
let e3 = document.getElementById(I);
|
|
@@ -27672,8 +27787,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27672
27787
|
}
|
|
27673
27788
|
if (U(7, () => {
|
|
27674
27789
|
var _a3;
|
|
27675
|
-
n.current.selectedItemId = (_a3 =
|
|
27676
|
-
}), i2 || U(5,
|
|
27790
|
+
n.current.selectedItemId = (_a3 = IK()) == null ? void 0 : _a3.id, K.emit();
|
|
27791
|
+
}), i2 || U(5, FK), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
|
|
27677
27792
|
let e3 = t2 ?? "";
|
|
27678
27793
|
(s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
|
|
27679
27794
|
return;
|
|
@@ -27698,12 +27813,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27698
27813
|
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([
|
|
27699
27814
|
e2
|
|
27700
27815
|
]))), U(3, () => {
|
|
27701
|
-
|
|
27816
|
+
PK(), Q(), n.current.value || $(), K.emit();
|
|
27702
27817
|
}), () => {
|
|
27703
27818
|
o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
|
|
27704
|
-
let t3 =
|
|
27819
|
+
let t3 = IK();
|
|
27705
27820
|
U(4, () => {
|
|
27706
|
-
|
|
27821
|
+
PK(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
|
|
27707
27822
|
});
|
|
27708
27823
|
}),
|
|
27709
27824
|
group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
|
|
@@ -27736,7 +27851,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27736
27851
|
]);
|
|
27737
27852
|
});
|
|
27738
27853
|
let i2 = z.current;
|
|
27739
|
-
|
|
27854
|
+
LK().sort((t3, n2) => {
|
|
27740
27855
|
let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
|
|
27741
27856
|
return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
|
|
27742
27857
|
}).forEach((e3) => {
|
|
@@ -27748,12 +27863,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27748
27863
|
t3 == null ? void 0 : t3.parentElement.appendChild(t3);
|
|
27749
27864
|
});
|
|
27750
27865
|
}
|
|
27751
|
-
function
|
|
27866
|
+
function $() {
|
|
27752
27867
|
var _a2;
|
|
27753
|
-
let e2 = (_a2 =
|
|
27868
|
+
let e2 = (_a2 = LK().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
|
|
27754
27869
|
K.setState("value", e2 || void 0);
|
|
27755
27870
|
}
|
|
27756
|
-
function
|
|
27871
|
+
function PK() {
|
|
27757
27872
|
var _a2, _b;
|
|
27758
27873
|
if (!n.current.search || c.current.shouldFilter === false) {
|
|
27759
27874
|
n.current.filtered.count = i.current.size;
|
|
@@ -27771,40 +27886,40 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27771
27886
|
}
|
|
27772
27887
|
n.current.filtered.count = e2;
|
|
27773
27888
|
}
|
|
27774
|
-
function
|
|
27889
|
+
function FK() {
|
|
27775
27890
|
var _a2, _b;
|
|
27776
27891
|
var e2;
|
|
27777
|
-
let t2 =
|
|
27892
|
+
let t2 = IK();
|
|
27778
27893
|
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({
|
|
27779
27894
|
block: "nearest"
|
|
27780
27895
|
})), t2.scrollIntoView({
|
|
27781
27896
|
block: "nearest"
|
|
27782
27897
|
}));
|
|
27783
27898
|
}
|
|
27784
|
-
function
|
|
27899
|
+
function IK() {
|
|
27785
27900
|
var _a2;
|
|
27786
27901
|
return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
|
|
27787
27902
|
}
|
|
27788
|
-
function
|
|
27903
|
+
function LK() {
|
|
27789
27904
|
var _a2;
|
|
27790
27905
|
return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
|
|
27791
27906
|
}
|
|
27792
27907
|
function RK(e2) {
|
|
27793
|
-
let t2 =
|
|
27908
|
+
let t2 = LK()[e2];
|
|
27794
27909
|
t2 && K.setState("value", t2.getAttribute(T));
|
|
27795
27910
|
}
|
|
27796
27911
|
function zK(e2) {
|
|
27797
27912
|
var t2;
|
|
27798
|
-
let n2 =
|
|
27913
|
+
let n2 = IK(), i2 = LK(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
|
|
27799
27914
|
(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));
|
|
27800
27915
|
}
|
|
27801
27916
|
function BK(e2) {
|
|
27802
27917
|
var _a2;
|
|
27803
|
-
let t2 = (_a2 =
|
|
27918
|
+
let t2 = (_a2 = IK()) == null ? void 0 : _a2.closest(N$1), n2;
|
|
27804
27919
|
for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
|
|
27805
27920
|
n2 ? K.setState("value", n2.getAttribute(T)) : zK(e2);
|
|
27806
27921
|
}
|
|
27807
|
-
let VK = () => RK(
|
|
27922
|
+
let VK = () => RK(LK().length - 1), HK = (e2) => {
|
|
27808
27923
|
e2.preventDefault(), e2.metaKey ? VK() : e2.altKey ? BK(1) : zK(1);
|
|
27809
27924
|
}, UK = (e2) => {
|
|
27810
27925
|
e2.preventDefault(), e2.metaKey ? RK(0) : e2.altKey ? BK(-1) : zK(-1);
|
|
@@ -27841,7 +27956,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
27841
27956
|
break;
|
|
27842
27957
|
case "Enter": {
|
|
27843
27958
|
e2.preventDefault();
|
|
27844
|
-
let t3 =
|
|
27959
|
+
let t3 = IK();
|
|
27845
27960
|
if (t3) {
|
|
27846
27961
|
let e3 = new Event(Z);
|
|
27847
27962
|
t3.dispatchEvent(e3);
|
|
@@ -28250,7 +28365,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28250
28365
|
Combobox = (e) => {
|
|
28251
28366
|
let t = (0, import_compiler_runtime$30.c)(103), n, i, o, s, c, d, f, h, _, v, y, S, w, E, O, A, M, I, z, U, K, q, J;
|
|
28252
28367
|
t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], c = t[5], d = t[6], f = t[7], h = t[8], _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16], M = t[17], I = t[18], z = t[19], U = t[20], K = t[21], q = t[22], J = t[23]) : ({ children: n, displayValue: d, className: o, placeholder: E, value: J, defaultValue: c, onValueChange: S, multiple: M, shouldFilter: I, filterFn: f, open: w, defaultOpen: s, onOpenChange: v, inputPlaceholder: z, search: A, onSearchChange: y, emptyState: U, chips: K, chipsClassName: i, keepPopoverOpenOnSelect: _, id: h, disabled: q, ...O } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = c, t[6] = d, t[7] = f, t[8] = h, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E, t[15] = O, t[16] = A, t[17] = M, t[18] = I, t[19] = z, t[20] = U, t[21] = K, t[22] = q, t[23] = J);
|
|
28253
|
-
let Q = M === void 0 ? false : M,
|
|
28368
|
+
let Q = M === void 0 ? false : M, $ = I === void 0 ? true : I, PK = z === void 0 ? "Search..." : z, FK = U === void 0 ? "Nothing found." : U, IK = K === void 0 ? false : K, LK = q === void 0 ? false : q, RK = s ?? false, zK;
|
|
28254
28369
|
t[24] !== v || t[25] !== w || t[26] !== RK ? (zK = {
|
|
28255
28370
|
prop: w,
|
|
28256
28371
|
defaultProp: RK,
|
|
@@ -28266,10 +28381,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28266
28381
|
defaultProp: c,
|
|
28267
28382
|
onChange: UK
|
|
28268
28383
|
}, t[30] = c, t[31] = UK, t[32] = J, t[33] = WK) : WK = t[33];
|
|
28269
|
-
let [GK,
|
|
28270
|
-
t[34] === GK ?
|
|
28271
|
-
let
|
|
28272
|
-
t[36] !== _ || t[37] !== Q || t[38] !== VK || t[39] !==
|
|
28384
|
+
let [GK, qK] = useControllableState(WK), JK;
|
|
28385
|
+
t[34] === GK ? JK = t[35] : (JK = (e2) => Array.isArray(GK) ? GK.includes(e2) : GK === e2, t[34] = GK, t[35] = JK);
|
|
28386
|
+
let YK = JK, XK;
|
|
28387
|
+
t[36] !== _ || t[37] !== Q || t[38] !== VK || t[39] !== qK || t[40] !== GK ? (XK = (e2) => {
|
|
28273
28388
|
let t2 = e2;
|
|
28274
28389
|
if (Q) if (Array.isArray(GK)) if (GK.includes(t2)) {
|
|
28275
28390
|
let n2 = GK.filter((t3) => t3 !== e2);
|
|
@@ -28282,98 +28397,98 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28282
28397
|
t2
|
|
28283
28398
|
];
|
|
28284
28399
|
else GK === e2 && (t2 = null);
|
|
28285
|
-
|
|
28286
|
-
}, t[36] = _, t[37] = Q, t[38] = VK, t[39] =
|
|
28287
|
-
let
|
|
28288
|
-
t[42] !==
|
|
28289
|
-
let
|
|
28290
|
-
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
28291
|
-
let
|
|
28292
|
-
t[49] !==
|
|
28293
|
-
|
|
28294
|
-
}, t[49] =
|
|
28295
|
-
let
|
|
28296
|
-
t[52] !== o || t[53] !==
|
|
28297
|
-
let rq;
|
|
28298
|
-
t[55] === QK ? rq = t[56] : (rq = QK(), t[55] = QK, t[56] = rq);
|
|
28400
|
+
qK(t2), (_ ?? Q) || VK(false);
|
|
28401
|
+
}, t[36] = _, t[37] = Q, t[38] = VK, t[39] = qK, t[40] = GK, t[41] = XK) : XK = t[41];
|
|
28402
|
+
let ZK = XK, QK;
|
|
28403
|
+
t[42] !== IK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== GK ? (QK = () => Q && IK && E ? E : GK == null ? E ?? "--" : Array.isArray(GK) ? GK.length === 0 ? E ?? "--" : GK.length === 1 && d !== void 0 ? d(GK[0]) : `${GK.length} selected` : d === void 0 ? E ?? "--" : d(GK), t[42] = IK, t[43] = d, t[44] = Q, t[45] = E, t[46] = GK, t[47] = QK) : QK = t[47];
|
|
28404
|
+
let $K = QK, eq;
|
|
28405
|
+
t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (eq = cn("relative"), t[48] = eq) : eq = t[48];
|
|
28406
|
+
let tq;
|
|
28407
|
+
t[49] !== LK || t[50] !== VK ? (tq = (e2) => {
|
|
28408
|
+
LK && e2 || VK(e2);
|
|
28409
|
+
}, t[49] = LK, t[50] = VK, t[51] = tq) : tq = t[51];
|
|
28410
|
+
let nq = LK && "cursor-not-allowed opacity-50", iq;
|
|
28411
|
+
t[52] !== o || t[53] !== nq ? (iq = 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", nq, o), t[52] = o, t[53] = nq, t[54] = iq) : iq = t[54];
|
|
28299
28412
|
let aq;
|
|
28300
|
-
t[
|
|
28413
|
+
t[55] === $K ? aq = t[56] : (aq = $K(), t[55] = $K, t[56] = aq);
|
|
28414
|
+
let sq;
|
|
28415
|
+
t[57] === aq ? sq = t[58] : (sq = (0, import_jsx_runtime.jsx)("span", {
|
|
28301
28416
|
className: "truncate flex-1 min-w-0",
|
|
28302
|
-
children:
|
|
28303
|
-
}), t[57] =
|
|
28304
|
-
let oq;
|
|
28305
|
-
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (oq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28306
|
-
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28307
|
-
}), t[59] = oq) : oq = t[59];
|
|
28417
|
+
children: aq
|
|
28418
|
+
}), t[57] = aq, t[58] = sq);
|
|
28308
28419
|
let cq;
|
|
28309
|
-
t[
|
|
28420
|
+
t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cq = (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
28421
|
+
className: "ml-3 w-4 h-4 opacity-50 shrink-0"
|
|
28422
|
+
}), t[59] = cq) : cq = t[59];
|
|
28423
|
+
let lq;
|
|
28424
|
+
t[60] !== LK || t[61] !== h || t[62] !== HK || t[63] !== iq || t[64] !== sq ? (lq = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
|
|
28310
28425
|
asChild: true,
|
|
28311
28426
|
children: (0, import_jsx_runtime.jsxs)("button", {
|
|
28312
28427
|
id: h,
|
|
28313
28428
|
type: "button",
|
|
28314
|
-
className:
|
|
28429
|
+
className: iq,
|
|
28315
28430
|
"aria-expanded": HK,
|
|
28316
|
-
"aria-disabled":
|
|
28431
|
+
"aria-disabled": LK,
|
|
28317
28432
|
children: [
|
|
28318
|
-
|
|
28319
|
-
|
|
28433
|
+
sq,
|
|
28434
|
+
cq
|
|
28320
28435
|
]
|
|
28321
28436
|
})
|
|
28322
|
-
}), t[60] =
|
|
28323
|
-
let
|
|
28324
|
-
t[66] !==
|
|
28325
|
-
placeholder:
|
|
28437
|
+
}), t[60] = LK, t[61] = h, t[62] = HK, t[63] = iq, t[64] = sq, t[65] = lq) : lq = t[65];
|
|
28438
|
+
let uq;
|
|
28439
|
+
t[66] !== PK || t[67] !== y || t[68] !== A ? (uq = (0, import_jsx_runtime.jsx)(CommandInput, {
|
|
28440
|
+
placeholder: PK,
|
|
28326
28441
|
rootClassName: "px-1 h-8",
|
|
28327
28442
|
autoFocus: true,
|
|
28328
28443
|
value: A,
|
|
28329
28444
|
onValueChange: y
|
|
28330
|
-
}), t[66] =
|
|
28331
|
-
let uq;
|
|
28332
|
-
t[70] === IK ? uq = t[71] : (uq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28333
|
-
children: IK
|
|
28334
|
-
}), t[70] = IK, t[71] = uq);
|
|
28445
|
+
}), t[66] = PK, t[67] = y, t[68] = A, t[69] = uq) : uq = t[69];
|
|
28335
28446
|
let dq;
|
|
28336
|
-
t[
|
|
28337
|
-
|
|
28338
|
-
|
|
28339
|
-
}, t[72] = XK, t[73] = JK, t[74] = dq) : dq = t[74];
|
|
28447
|
+
t[70] === FK ? dq = t[71] : (dq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
|
|
28448
|
+
children: FK
|
|
28449
|
+
}), t[70] = FK, t[71] = dq);
|
|
28340
28450
|
let fq;
|
|
28341
|
-
t[
|
|
28342
|
-
|
|
28343
|
-
|
|
28344
|
-
}
|
|
28451
|
+
t[72] !== ZK || t[73] !== YK ? (fq = {
|
|
28452
|
+
isSelected: YK,
|
|
28453
|
+
onSelect: ZK
|
|
28454
|
+
}, t[72] = ZK, t[73] = YK, t[74] = fq) : fq = t[74];
|
|
28345
28455
|
let pq;
|
|
28346
|
-
t[
|
|
28456
|
+
t[75] !== n || t[76] !== fq ? (pq = (0, import_jsx_runtime.jsx)(ComboboxContext, {
|
|
28457
|
+
value: fq,
|
|
28458
|
+
children: n
|
|
28459
|
+
}), t[75] = n, t[76] = fq, t[77] = pq) : pq = t[77];
|
|
28460
|
+
let mq;
|
|
28461
|
+
t[78] !== dq || t[79] !== pq ? (mq = (0, import_jsx_runtime.jsxs)(CommandList, {
|
|
28347
28462
|
className: "max-h-60 py-.5",
|
|
28348
28463
|
children: [
|
|
28349
|
-
|
|
28350
|
-
|
|
28464
|
+
dq,
|
|
28465
|
+
pq
|
|
28351
28466
|
]
|
|
28352
|
-
}), t[78] =
|
|
28353
|
-
let
|
|
28354
|
-
t[81] !== f || t[82] !==
|
|
28467
|
+
}), t[78] = dq, t[79] = pq, t[80] = mq) : mq = t[80];
|
|
28468
|
+
let hq;
|
|
28469
|
+
t[81] !== f || t[82] !== $ || t[83] !== uq || t[84] !== mq ? (hq = (0, import_jsx_runtime.jsx)(PopoverContent, {
|
|
28355
28470
|
className: "w-full min-w-(--radix-popover-trigger-width) p-0",
|
|
28356
28471
|
align: "start",
|
|
28357
28472
|
children: (0, import_jsx_runtime.jsxs)(Command, {
|
|
28358
28473
|
filter: f,
|
|
28359
|
-
shouldFilter:
|
|
28474
|
+
shouldFilter: $,
|
|
28360
28475
|
children: [
|
|
28361
|
-
|
|
28362
|
-
|
|
28476
|
+
uq,
|
|
28477
|
+
mq
|
|
28363
28478
|
]
|
|
28364
28479
|
})
|
|
28365
|
-
}), t[81] = f, t[82] =
|
|
28366
|
-
let
|
|
28367
|
-
t[86] !== HK || t[87] !==
|
|
28480
|
+
}), t[81] = f, t[82] = $, t[83] = uq, t[84] = mq, t[85] = hq) : hq = t[85];
|
|
28481
|
+
let gq;
|
|
28482
|
+
t[86] !== HK || t[87] !== tq || t[88] !== lq || t[89] !== hq ? (gq = (0, import_jsx_runtime.jsxs)(Popover, {
|
|
28368
28483
|
open: HK,
|
|
28369
|
-
onOpenChange:
|
|
28484
|
+
onOpenChange: tq,
|
|
28370
28485
|
children: [
|
|
28371
|
-
|
|
28372
|
-
|
|
28486
|
+
lq,
|
|
28487
|
+
hq
|
|
28373
28488
|
]
|
|
28374
|
-
}), t[86] = HK, t[87] =
|
|
28375
|
-
let
|
|
28376
|
-
t[91] !==
|
|
28489
|
+
}), t[86] = HK, t[87] = tq, t[88] = lq, t[89] = hq, t[90] = gq) : gq = t[90];
|
|
28490
|
+
let _q;
|
|
28491
|
+
t[91] !== IK || t[92] !== i || t[93] !== LK || t[94] !== d || t[95] !== ZK || t[96] !== Q || t[97] !== GK ? (_q = Q && IK && (0, import_jsx_runtime.jsx)("div", {
|
|
28377
28492
|
className: cn("flex flex-col gap-1 items-start", i),
|
|
28378
28493
|
children: Array.isArray(GK) && GK.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
|
|
28379
28494
|
variant: "secondary",
|
|
@@ -28381,22 +28496,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
28381
28496
|
(d == null ? void 0 : d(e2)) ?? String(e2),
|
|
28382
28497
|
(0, import_jsx_runtime.jsx)(CircleX, {
|
|
28383
28498
|
onClick: () => {
|
|
28384
|
-
|
|
28499
|
+
LK || ZK(e2);
|
|
28385
28500
|
},
|
|
28386
|
-
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer",
|
|
28501
|
+
className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", LK && "pointer-events-none")
|
|
28387
28502
|
})
|
|
28388
28503
|
]
|
|
28389
28504
|
}, String(e2)))
|
|
28390
|
-
}), t[91] =
|
|
28391
|
-
let
|
|
28392
|
-
return t[99] !== O || t[100] !==
|
|
28393
|
-
className:
|
|
28505
|
+
}), t[91] = IK, t[92] = i, t[93] = LK, t[94] = d, t[95] = ZK, t[96] = Q, t[97] = GK, t[98] = _q) : _q = t[98];
|
|
28506
|
+
let vq;
|
|
28507
|
+
return t[99] !== O || t[100] !== gq || t[101] !== _q ? (vq = (0, import_jsx_runtime.jsxs)("div", {
|
|
28508
|
+
className: eq,
|
|
28394
28509
|
...O,
|
|
28395
28510
|
children: [
|
|
28396
|
-
|
|
28397
|
-
|
|
28511
|
+
gq,
|
|
28512
|
+
_q
|
|
28398
28513
|
]
|
|
28399
|
-
}), t[99] = O, t[100] =
|
|
28514
|
+
}), t[99] = O, t[100] = gq, t[101] = _q, t[102] = vq) : vq = t[102], vq;
|
|
28400
28515
|
};
|
|
28401
28516
|
ComboboxItem = import_react.forwardRef((e, t) => {
|
|
28402
28517
|
let n = (0, import_compiler_runtime$30.c)(17), { children: i, className: o, value: s, onSelect: c, disabled: d } = e, f = typeof s == "object" && "value" in s ? s.value : String(s), h = import_react.use(ComboboxContext), _;
|
|
@@ -29144,12 +29259,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29144
29259
|
onChange: E,
|
|
29145
29260
|
className: s
|
|
29146
29261
|
}, c), t[31] = s, t[32] = n, t[33] = E, t[34] = c, t[35] = A, t[36] = M) : M = t[36];
|
|
29147
|
-
let
|
|
29148
|
-
return t[37] !== S || t[38] !== M ? (
|
|
29262
|
+
let I;
|
|
29263
|
+
return t[37] !== S || t[38] !== M ? (I = (0, import_jsx_runtime.jsx)("div", {
|
|
29149
29264
|
onPasteCapture: S,
|
|
29150
29265
|
className: "contents",
|
|
29151
29266
|
children: M
|
|
29152
|
-
}), t[37] = S, t[38] = M, t[39] =
|
|
29267
|
+
}), t[37] = S, t[38] = M, t[39] = I) : I = t[39], I;
|
|
29153
29268
|
};
|
|
29154
29269
|
function _temp$4(e) {
|
|
29155
29270
|
return e + 1;
|
|
@@ -29506,31 +29621,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29506
29621
|
});
|
|
29507
29622
|
}
|
|
29508
29623
|
const FilterPillEditor = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: i, editIndex: a }) => {
|
|
29509
|
-
let o = (0, import_react.useId)(), s = (0, import_react.useId)(), c = (0, import_react.useId)(), d = e.value.type, f = e.value.operator, _ = toDraftValue(e.value), [v, y] = (0, import_react.useState)(e.columnId), [S, w] = (0, import_react.useState)(d), [E, O] = (0, import_react.useState)(f), [A, M] = (0, import_react.useState)(_), [I, z] = (0, import_react.useState)(EMPTY_NUMBER_TEXT_DRAFT),
|
|
29624
|
+
let o = (0, import_react.useId)(), s = (0, import_react.useId)(), c = (0, import_react.useId)(), d = e.value.type, f = e.value.operator, _ = toDraftValue(e.value), [v, y] = (0, import_react.useState)(e.columnId), [S, w] = (0, import_react.useState)(d), [E, O] = (0, import_react.useState)(f), [A, M] = (0, import_react.useState)(_), [I, z] = (0, import_react.useState)(EMPTY_NUMBER_TEXT_DRAFT), U = editableColumns(t), K = (t2) => {
|
|
29510
29625
|
t2.id === e.columnId && t2.operator === f && M(_);
|
|
29511
|
-
},
|
|
29626
|
+
}, q = (e2) => {
|
|
29512
29627
|
if (!e2) return;
|
|
29513
29628
|
let n2 = t.getColumn(e2);
|
|
29514
29629
|
if (!n2) return;
|
|
29515
29630
|
let i2 = columnEditableType(n2), a2 = E;
|
|
29516
|
-
i2 !== S && (a2 = DEFAULT_OPERATOR_FOR_TYPE[i2], w(i2), O(a2), M(emptyDraftFor(i2, a2)), z(EMPTY_NUMBER_TEXT_DRAFT)), y(e2),
|
|
29631
|
+
i2 !== S && (a2 = DEFAULT_OPERATOR_FOR_TYPE[i2], w(i2), O(a2), M(emptyDraftFor(i2, a2)), z(EMPTY_NUMBER_TEXT_DRAFT)), y(e2), K({
|
|
29517
29632
|
id: e2,
|
|
29518
29633
|
operator: a2
|
|
29519
29634
|
});
|
|
29520
|
-
},
|
|
29635
|
+
}, J = (e2) => {
|
|
29521
29636
|
O(e2);
|
|
29522
29637
|
let t2 = emptyDraftFor(S, e2);
|
|
29523
|
-
t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT),
|
|
29638
|
+
t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT), K({
|
|
29524
29639
|
id: v,
|
|
29525
29640
|
operator: e2
|
|
29526
29641
|
});
|
|
29527
|
-
},
|
|
29642
|
+
}, Q = buildFilterValue({
|
|
29528
29643
|
type: S,
|
|
29529
29644
|
operator: E,
|
|
29530
29645
|
draft: mergeNumberTextDraft(A, I)
|
|
29531
|
-
}),
|
|
29532
|
-
if (!
|
|
29533
|
-
let e2 =
|
|
29646
|
+
}), $ = Q === void 0, PK = $ ? getMissingValueMessage(S, E) : "Apply filter", FK = () => {
|
|
29647
|
+
if (!Q) return;
|
|
29648
|
+
let e2 = Q;
|
|
29534
29649
|
t.setColumnFilters((t2) => {
|
|
29535
29650
|
if (a === void 0) return [
|
|
29536
29651
|
{
|
|
@@ -29547,20 +29662,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29547
29662
|
value: e2
|
|
29548
29663
|
}, n2;
|
|
29549
29664
|
}), i();
|
|
29550
|
-
},
|
|
29665
|
+
}, IK = () => {
|
|
29551
29666
|
a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
|
|
29552
|
-
},
|
|
29667
|
+
}, LK = !OPERATORS_WITHOUT_VALUE.has(E), RK = OPERATORS_BY_TYPE[S], zK = (0, import_react.useRef)(null), BK = (0, import_react.useRef)(null);
|
|
29553
29668
|
return (0, import_react.useEffect)(() => {
|
|
29554
29669
|
var _a2, _b;
|
|
29555
|
-
let e2 = (_a2 =
|
|
29556
|
-
e2 ? e2.focus() : (_b =
|
|
29670
|
+
let e2 = (_a2 = zK.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
|
|
29671
|
+
e2 ? e2.focus() : (_b = BK.current) == null ? void 0 : _b.focus();
|
|
29557
29672
|
}, [
|
|
29558
29673
|
S,
|
|
29559
29674
|
E
|
|
29560
29675
|
]), (0, import_jsx_runtime.jsxs)("form", {
|
|
29561
29676
|
className: "flex flex-row gap-4 items-end p-3",
|
|
29562
29677
|
onSubmit: (e2) => {
|
|
29563
|
-
e2.preventDefault(),
|
|
29678
|
+
e2.preventDefault(), FK();
|
|
29564
29679
|
},
|
|
29565
29680
|
onKeyDownCapture: (e2) => {
|
|
29566
29681
|
e2.key === "Tab" && e2.stopPropagation();
|
|
@@ -29577,11 +29692,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29577
29692
|
(0, import_jsx_runtime.jsx)(Combobox, {
|
|
29578
29693
|
id: o,
|
|
29579
29694
|
value: v,
|
|
29580
|
-
onValueChange:
|
|
29695
|
+
onValueChange: q,
|
|
29581
29696
|
multiple: false,
|
|
29582
29697
|
placeholder: "Select column\u2026",
|
|
29583
29698
|
displayValue: (e2) => e2,
|
|
29584
|
-
children:
|
|
29699
|
+
children: U.map((e2) => (0, import_jsx_runtime.jsx)(ComboboxItem, {
|
|
29585
29700
|
value: e2.id,
|
|
29586
29701
|
children: e2.id
|
|
29587
29702
|
}, e2.id))
|
|
@@ -29598,16 +29713,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29598
29713
|
}),
|
|
29599
29714
|
(0, import_jsx_runtime.jsxs)(Select, {
|
|
29600
29715
|
value: E,
|
|
29601
|
-
onValueChange: (e2) =>
|
|
29716
|
+
onValueChange: (e2) => J(e2),
|
|
29602
29717
|
children: [
|
|
29603
29718
|
(0, import_jsx_runtime.jsx)(SelectTrigger, {
|
|
29604
|
-
ref:
|
|
29719
|
+
ref: BK,
|
|
29605
29720
|
id: s,
|
|
29606
29721
|
className: "h-6 mb-1 bg-transparent",
|
|
29607
29722
|
children: (0, import_jsx_runtime.jsx)(SelectValue, {})
|
|
29608
29723
|
}),
|
|
29609
29724
|
(0, import_jsx_runtime.jsx)(SelectContent, {
|
|
29610
|
-
children:
|
|
29725
|
+
children: RK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
|
|
29611
29726
|
value: e2,
|
|
29612
29727
|
children: OPERATOR_LABELS[e2]
|
|
29613
29728
|
}, e2))
|
|
@@ -29616,8 +29731,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29616
29731
|
}, S)
|
|
29617
29732
|
]
|
|
29618
29733
|
}),
|
|
29619
|
-
|
|
29620
|
-
ref:
|
|
29734
|
+
LK && (0, import_jsx_runtime.jsxs)("div", {
|
|
29735
|
+
ref: zK,
|
|
29621
29736
|
className: "flex flex-col gap-1",
|
|
29622
29737
|
children: [
|
|
29623
29738
|
(0, import_jsx_runtime.jsx)("label", {
|
|
@@ -29644,14 +29759,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29644
29759
|
className: "flex gap-1 mb-1",
|
|
29645
29760
|
children: [
|
|
29646
29761
|
(0, import_jsx_runtime.jsx)(Tooltip, {
|
|
29647
|
-
content:
|
|
29762
|
+
content: PK,
|
|
29648
29763
|
children: (0, import_jsx_runtime.jsx)("span", {
|
|
29649
29764
|
className: "inline-flex",
|
|
29650
29765
|
children: (0, import_jsx_runtime.jsx)(Button, {
|
|
29651
29766
|
type: "submit",
|
|
29652
29767
|
size: "icon",
|
|
29653
29768
|
variant: "ghost",
|
|
29654
|
-
disabled:
|
|
29769
|
+
disabled: $,
|
|
29655
29770
|
className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
|
|
29656
29771
|
"aria-label": "Apply filter",
|
|
29657
29772
|
children: (0, import_jsx_runtime.jsx)(Check, {
|
|
@@ -29683,7 +29798,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
29683
29798
|
size: "icon",
|
|
29684
29799
|
variant: "ghost",
|
|
29685
29800
|
className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
|
|
29686
|
-
onClick:
|
|
29801
|
+
onClick: IK,
|
|
29687
29802
|
"aria-label": "Remove filter",
|
|
29688
29803
|
children: (0, import_jsx_runtime.jsx)(Trash2, {
|
|
29689
29804
|
className: "h-3.5 w-3.5",
|
|
@@ -32899,6 +33014,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32899
33014
|
}
|
|
32900
33015
|
}, downloadOptions = [
|
|
32901
33016
|
FILE_TYPES.CSV,
|
|
33017
|
+
FILE_TYPES.TSV,
|
|
32902
33018
|
FILE_TYPES.JSON,
|
|
32903
33019
|
FILE_TYPES.PARQUET
|
|
32904
33020
|
], copyOptions = [
|
|
@@ -32906,7 +33022,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32906
33022
|
FILE_TYPES.JSON,
|
|
32907
33023
|
FILE_TYPES.CSV,
|
|
32908
33024
|
FILE_TYPES.MARKDOWN
|
|
32909
|
-
],
|
|
33025
|
+
], COPY_SOURCE_FORMAT = {
|
|
33026
|
+
csv: "csv",
|
|
33027
|
+
tsv: "tsv",
|
|
33028
|
+
json: "json",
|
|
33029
|
+
markdown: "json"
|
|
33030
|
+
}, labelForDownloadFormat = (e) => {
|
|
32910
33031
|
var _a2;
|
|
32911
33032
|
return ((_a2 = downloadOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
|
|
32912
33033
|
}, labelForCopyFormat = (e) => {
|
|
@@ -32914,26 +33035,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32914
33035
|
return ((_a2 = copyOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
|
|
32915
33036
|
};
|
|
32916
33037
|
const ExportMenu = (e) => {
|
|
32917
|
-
let t = (0, import_compiler_runtime$8.c)(
|
|
32918
|
-
t[0] ===
|
|
32919
|
-
let
|
|
32920
|
-
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33038
|
+
let t = (0, import_compiler_runtime$8.c)(55), [n, i] = import_react.useState(false), o = useAtomValue(downloadSizeLimitAtom), s = !!(o && e.sizeBytes != null && e.sizeBytes > o.limitBytes), c = !!(o && (e.sizeBytesIsLoading || s)), d = c ? e.sizeBytesIsLoading ? "Checking download size\u2026" : o == null ? void 0 : o.unavailableMessage : "Export", f = n ? "text-primary" : "text-muted-foreground", _;
|
|
33039
|
+
t[0] === f ? _ = t[1] : (_ = cn("print:hidden text-xs gap-1", f), t[0] = f, t[1] = _);
|
|
33040
|
+
let v;
|
|
33041
|
+
t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (0, import_jsx_runtime.jsx)(Download, {
|
|
32921
33042
|
className: "w-3.5 h-3.5"
|
|
32922
|
-
}), t[2] =
|
|
32923
|
-
let
|
|
32924
|
-
t[3] !==
|
|
33043
|
+
}), t[2] = v) : v = t[2];
|
|
33044
|
+
let y;
|
|
33045
|
+
t[3] !== c || t[4] !== _ ? (y = (0, import_jsx_runtime.jsxs)(Button, {
|
|
32925
33046
|
"data-testid": "export-button",
|
|
32926
33047
|
size: "xs",
|
|
32927
33048
|
variant: "text",
|
|
32928
|
-
disabled:
|
|
32929
|
-
className:
|
|
33049
|
+
disabled: c,
|
|
33050
|
+
className: _,
|
|
32930
33051
|
children: [
|
|
32931
|
-
|
|
33052
|
+
v,
|
|
32932
33053
|
"Export"
|
|
32933
33054
|
]
|
|
32934
|
-
}), t[3] =
|
|
32935
|
-
let
|
|
32936
|
-
t[6] === e ?
|
|
33055
|
+
}), t[3] = c, t[4] = _, t[5] = y) : y = t[5];
|
|
33056
|
+
let S = y, O;
|
|
33057
|
+
t[6] === e ? O = t[7] : (O = async (t2, n2) => {
|
|
32937
33058
|
let i2;
|
|
32938
33059
|
try {
|
|
32939
33060
|
i2 = await e.downloadAs({
|
|
@@ -32958,50 +33079,48 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
32958
33079
|
url: i2.url,
|
|
32959
33080
|
filename: i2.filename
|
|
32960
33081
|
};
|
|
32961
|
-
}, t[6] = e, t[7] =
|
|
32962
|
-
let
|
|
32963
|
-
if (t[8] !==
|
|
33082
|
+
}, t[6] = e, t[7] = O);
|
|
33083
|
+
let A = O, M, I, z, U, K, q, J, Q, $, PK, FK, IK, LK;
|
|
33084
|
+
if (t[8] !== S || t[9] !== c || t[10] !== n || t[11] !== A || t[12] !== d) {
|
|
32964
33085
|
let e2 = async (t2) => {
|
|
32965
33086
|
let n2 = labelForDownloadFormat(t2);
|
|
32966
33087
|
await withLoadingToast(`Preparing ${n2} export...`, async () => {
|
|
32967
|
-
let n3 = await
|
|
33088
|
+
let n3 = await A(t2, () => {
|
|
32968
33089
|
e2(t2);
|
|
32969
33090
|
});
|
|
32970
33091
|
if (!n3) return false;
|
|
32971
|
-
let i2 = (n3.filename ?? "").trim(), a2 = `${Filenames.withoutExtension(i2) || "download"}.${t2}`,
|
|
32972
|
-
if (!
|
|
32973
|
-
let e3 =
|
|
33092
|
+
let i2 = (n3.filename ?? "").trim(), a2 = `${Filenames.withoutExtension(i2) || "download"}.${t2}`, o3 = n3.url;
|
|
33093
|
+
if (!o3.startsWith("data:")) {
|
|
33094
|
+
let e3 = o3.includes("?") ? "&" : "?", t3 = new URLSearchParams({
|
|
32974
33095
|
download: "1",
|
|
32975
33096
|
filename: a2
|
|
32976
33097
|
});
|
|
32977
|
-
|
|
33098
|
+
o3 = `${o3}${e3}${t3.toString()}`;
|
|
32978
33099
|
}
|
|
32979
|
-
return downloadByURL(
|
|
33100
|
+
return downloadByURL(o3, a2), true;
|
|
32980
33101
|
}) && toast({
|
|
32981
33102
|
title: `${n2} download started`
|
|
32982
33103
|
});
|
|
32983
33104
|
}, a = async (e3) => {
|
|
32984
33105
|
await withLoadingToast(`Preparing ${labelForCopyFormat(e3)} for clipboard...`, async () => {
|
|
32985
|
-
let t2 =
|
|
33106
|
+
let t2 = COPY_SOURCE_FORMAT[e3], n2 = await A(t2, () => {
|
|
32986
33107
|
a(e3);
|
|
32987
33108
|
});
|
|
32988
|
-
if (!
|
|
33109
|
+
if (!n2) return;
|
|
32989
33110
|
let i2;
|
|
32990
|
-
|
|
33111
|
+
bb94: switch (e3) {
|
|
32991
33112
|
case "tsv":
|
|
32992
|
-
|
|
32993
|
-
|
|
33113
|
+
case "csv":
|
|
33114
|
+
i2 = await fetchText(n2.url);
|
|
33115
|
+
break bb94;
|
|
32994
33116
|
case "json": {
|
|
32995
|
-
let e4 = await fetchJson(
|
|
33117
|
+
let e4 = await fetchJson(n2.url);
|
|
32996
33118
|
i2 = JSON.stringify(e4, null, 2);
|
|
32997
|
-
break
|
|
33119
|
+
break bb94;
|
|
32998
33120
|
}
|
|
32999
|
-
case "csv":
|
|
33000
|
-
i2 = await fetchText(t2.url);
|
|
33001
|
-
break bb98;
|
|
33002
33121
|
case "markdown":
|
|
33003
|
-
i2 = jsonToMarkdown(await fetchJson(
|
|
33004
|
-
break
|
|
33122
|
+
i2 = jsonToMarkdown(await fetchJson(n2.url));
|
|
33123
|
+
break bb94;
|
|
33005
33124
|
default:
|
|
33006
33125
|
logNever(e3);
|
|
33007
33126
|
return;
|
|
@@ -33011,26 +33130,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33011
33130
|
});
|
|
33012
33131
|
});
|
|
33013
33132
|
};
|
|
33014
|
-
|
|
33015
|
-
let
|
|
33016
|
-
t[
|
|
33017
|
-
tabIndex:
|
|
33133
|
+
I = DropdownMenu, K = false, q = n, J = i;
|
|
33134
|
+
let o2 = n ? false : void 0, s2 = c ? 0 : -1, f2;
|
|
33135
|
+
t[26] !== S || t[27] !== s2 ? (f2 = (0, import_jsx_runtime.jsx)("span", {
|
|
33136
|
+
tabIndex: s2,
|
|
33018
33137
|
className: "inline-flex",
|
|
33019
|
-
children:
|
|
33020
|
-
}), t[
|
|
33021
|
-
let
|
|
33022
|
-
t[
|
|
33138
|
+
children: S
|
|
33139
|
+
}), t[26] = S, t[27] = s2, t[28] = f2) : f2 = t[28];
|
|
33140
|
+
let h;
|
|
33141
|
+
t[29] !== c || t[30] !== f2 ? (h = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
|
|
33023
33142
|
asChild: true,
|
|
33024
|
-
disabled:
|
|
33143
|
+
disabled: c,
|
|
33144
|
+
children: f2
|
|
33145
|
+
}), t[29] = c, t[30] = f2, t[31] = h) : h = t[31], t[32] !== o2 || t[33] !== h || t[34] !== d ? (Q = (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33146
|
+
content: d,
|
|
33147
|
+
open: o2,
|
|
33025
33148
|
children: h
|
|
33026
|
-
}), t[
|
|
33027
|
-
content: f,
|
|
33028
|
-
open: s2,
|
|
33029
|
-
children: _2
|
|
33030
|
-
}), t[33] = s2, t[34] = _2, t[35] = f, t[36] = PK) : PK = t[36], I = DropdownMenuContent, FK = "bottom", IK = "print:hidden", t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
33149
|
+
}), t[32] = o2, t[33] = h, t[34] = d, t[35] = Q) : Q = t[35], M = DropdownMenuContent, $ = "bottom", PK = "print:hidden", t[36] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (FK = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
33031
33150
|
className: "text-xs text-muted-foreground",
|
|
33032
33151
|
children: "Download"
|
|
33033
|
-
}), t[
|
|
33152
|
+
}), t[36] = FK) : FK = t[36], IK = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
33034
33153
|
onSelect: () => {
|
|
33035
33154
|
e2(t2.format);
|
|
33036
33155
|
},
|
|
@@ -33051,10 +33170,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33051
33170
|
]
|
|
33052
33171
|
})
|
|
33053
33172
|
]
|
|
33054
|
-
}, t2.label)), t[
|
|
33173
|
+
}, t2.label)), t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (LK = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), z = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
|
|
33055
33174
|
className: "text-xs text-muted-foreground",
|
|
33056
33175
|
children: "Copy to clipboard"
|
|
33057
|
-
}), t[
|
|
33176
|
+
}), t[37] = z, t[38] = LK) : (z = t[37], LK = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
|
|
33058
33177
|
onSelect: async () => {
|
|
33059
33178
|
try {
|
|
33060
33179
|
await a(e3.format);
|
|
@@ -33083,30 +33202,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33083
33202
|
]
|
|
33084
33203
|
})
|
|
33085
33204
|
]
|
|
33086
|
-
}, e3.label)), t[8] =
|
|
33087
|
-
} else I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20],
|
|
33088
|
-
let
|
|
33089
|
-
t[
|
|
33090
|
-
side:
|
|
33091
|
-
className:
|
|
33205
|
+
}, e3.label)), t[8] = S, t[9] = c, t[10] = n, t[11] = A, t[12] = d, t[13] = M, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = PK, t[23] = FK, t[24] = IK, t[25] = LK;
|
|
33206
|
+
} 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], PK = t[22], FK = t[23], IK = t[24], LK = t[25];
|
|
33207
|
+
let RK;
|
|
33208
|
+
t[39] !== M || t[40] !== z || t[41] !== U || t[42] !== $ || t[43] !== PK || t[44] !== FK || t[45] !== IK || t[46] !== LK ? (RK = (0, import_jsx_runtime.jsxs)(M, {
|
|
33209
|
+
side: $,
|
|
33210
|
+
className: PK,
|
|
33092
33211
|
children: [
|
|
33212
|
+
FK,
|
|
33213
|
+
IK,
|
|
33093
33214
|
LK,
|
|
33094
|
-
|
|
33095
|
-
|
|
33096
|
-
U,
|
|
33097
|
-
K
|
|
33215
|
+
z,
|
|
33216
|
+
U
|
|
33098
33217
|
]
|
|
33099
|
-
}), t[40] =
|
|
33100
|
-
let
|
|
33101
|
-
return t[
|
|
33102
|
-
modal:
|
|
33103
|
-
open:
|
|
33104
|
-
onOpenChange:
|
|
33218
|
+
}), t[39] = M, t[40] = z, t[41] = U, t[42] = $, t[43] = PK, t[44] = FK, t[45] = IK, t[46] = LK, t[47] = RK) : RK = t[47];
|
|
33219
|
+
let zK;
|
|
33220
|
+
return t[48] !== I || t[49] !== K || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== RK ? (zK = (0, import_jsx_runtime.jsxs)(I, {
|
|
33221
|
+
modal: K,
|
|
33222
|
+
open: q,
|
|
33223
|
+
onOpenChange: J,
|
|
33105
33224
|
children: [
|
|
33106
|
-
|
|
33107
|
-
|
|
33225
|
+
Q,
|
|
33226
|
+
RK
|
|
33108
33227
|
]
|
|
33109
|
-
}), t[49] =
|
|
33228
|
+
}), t[48] = I, t[49] = K, t[50] = q, t[51] = J, t[52] = Q, t[53] = RK, t[54] = zK) : zK = t[54], zK;
|
|
33110
33229
|
};
|
|
33111
33230
|
function fetchJson(e) {
|
|
33112
33231
|
return fetchText(e).then(jsonParseWithSpecialChar);
|
|
@@ -33199,7 +33318,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33199
33318
|
]
|
|
33200
33319
|
}) : null;
|
|
33201
33320
|
};
|
|
33202
|
-
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange:
|
|
33321
|
+
DataTable = (0, import_react.memo)(({ wrapperClassName: e, className: t, maxHeight: n, columns: i, data: o, rawData: s, selection: c, totalColumns: d, totalRows: f, sizeBytes: _, sizeBytesIsLoading: v, manualSorting: y = false, sorting: S, setSorting: w, rowSelection: E, cellSelection: O, cellStyling: A, hoverTemplate: M, cellHoverTexts: I, paginationState: z, setPaginationState: U, downloadAs: K, manualPagination: q = false, pagination: J = false, onRowSelectionChange: Q, onCellSelectionChange: $, getRowIds: PK, enableSearch: FK = false, searchQuery: IK, onSearchQueryChange: LK, showFilters: RK = false, filters: zK, onFiltersChange: BK, calculateTopKRows: VK, reloading: HK, freezeColumnsLeft: UK, freezeColumnsRight: WK, hiddenColumns: GK, toggleDisplayHeader: KK, showChartBuilder: qK, isChartBuilderOpen: JK, showPageSizeSelector: YK, showTableExplorer: XK, togglePanel: ZK, isPanelOpen: QK, isAnyPanelOpen: $K, viewedRowIdx: eq, onViewedRowChange: tq, renderTableExplorerPanel: nq }) => {
|
|
33203
33322
|
let [rq, iq] = import_react.useState(false), { locale: aq } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: oq, setColumnPinning: sq } = useColumnPinning(UK, WK), { columnVisibility: cq, setColumnVisibility: lq } = useColumnVisibility(GK);
|
|
33204
33323
|
import_react.useEffect(() => {
|
|
33205
33324
|
let e2;
|
|
@@ -33256,7 +33375,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33256
33375
|
getFilteredRowModel: getFilteredRowModel(),
|
|
33257
33376
|
onColumnFiltersChange: BK,
|
|
33258
33377
|
onRowSelectionChange: Q,
|
|
33259
|
-
onCellSelectionChange:
|
|
33378
|
+
onCellSelectionChange: $,
|
|
33260
33379
|
enableCellSelection: c === "single-cell" || c === "multi-cell",
|
|
33261
33380
|
enableMultiCellSelection: c === "multi-cell",
|
|
33262
33381
|
onColumnPinningChange: sq,
|
|
@@ -33316,9 +33435,9 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33316
33435
|
className: cn(t || "rounded-md border overflow-hidden"),
|
|
33317
33436
|
children: [
|
|
33318
33437
|
(0, import_jsx_runtime.jsx)(TableTopBar, {
|
|
33319
|
-
enableSearch:
|
|
33320
|
-
searchQuery:
|
|
33321
|
-
onSearchQueryChange:
|
|
33438
|
+
enableSearch: FK,
|
|
33439
|
+
searchQuery: IK,
|
|
33440
|
+
onSearchQueryChange: LK,
|
|
33322
33441
|
reloading: HK,
|
|
33323
33442
|
showChartBuilder: qK,
|
|
33324
33443
|
isChartBuilderOpen: JK,
|
|
@@ -33370,7 +33489,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33370
33489
|
selection: c,
|
|
33371
33490
|
onRowSelectionChange: Q,
|
|
33372
33491
|
table: dq,
|
|
33373
|
-
getRowIds:
|
|
33492
|
+
getRowIds: PK,
|
|
33374
33493
|
showPageSizeSelector: YK,
|
|
33375
33494
|
tableLoading: HK,
|
|
33376
33495
|
togglePanel: ZK
|
|
@@ -33452,7 +33571,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
|
|
|
33452
33571
|
}), t[0] = i, t[1] = o);
|
|
33453
33572
|
let s = o, c;
|
|
33454
33573
|
t[2] === i ? c = t[3] : (c = lastLine(i), t[2] = i, t[3] = c);
|
|
33455
|
-
let d = c, f = useAtomValue(
|
|
33574
|
+
let d = c, f = useAtomValue(aiFeaturesEnabledAtom), _;
|
|
33456
33575
|
t[4] === i ? _ = t[5] : (_ = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = _);
|
|
33457
33576
|
let v = _, y;
|
|
33458
33577
|
t[6] !== a || t[7] !== v ? (y = v && v.kind === "cell" && !isWasm() && !isStaticNotebook() && a !== "__scratch__", t[6] = a, t[7] = v, t[8] = y) : y = t[8];
|
|
@@ -33467,42 +33586,42 @@ ${d}`,
|
|
|
33467
33586
|
triggerImmediately: e2
|
|
33468
33587
|
});
|
|
33469
33588
|
}, t[12] = d, t[13] = n, t[14] = U) : U = t[14];
|
|
33470
|
-
let
|
|
33471
|
-
t[15] === I ?
|
|
33472
|
-
let
|
|
33473
|
-
t[17] === I ?
|
|
33589
|
+
let q = U, J;
|
|
33590
|
+
t[15] === I ? J = t[16] : (J = () => z(!I), t[15] = I, t[16] = J);
|
|
33591
|
+
let Q = I ? "Collapse traceback" : "Expand traceback", $;
|
|
33592
|
+
t[17] === I ? $ = t[18] : ($ = I ? (0, import_jsx_runtime.jsx)(ChevronDown, {
|
|
33474
33593
|
className: "h-3 w-3"
|
|
33475
33594
|
}) : (0, import_jsx_runtime.jsx)(ChevronRight, {
|
|
33476
33595
|
className: "h-3 w-3"
|
|
33477
|
-
}), t[17] = I, t[18] =
|
|
33478
|
-
let
|
|
33479
|
-
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (
|
|
33596
|
+
}), t[17] = I, t[18] = $);
|
|
33597
|
+
let FK;
|
|
33598
|
+
t[19] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (FK = (0, import_jsx_runtime.jsx)("span", {
|
|
33480
33599
|
className: "text-[0.6875rem] uppercase tracking-wider",
|
|
33481
33600
|
children: "Traceback"
|
|
33482
|
-
}), t[19] =
|
|
33483
|
-
let
|
|
33484
|
-
t[20] !== I || t[21] !==
|
|
33601
|
+
}), t[19] = FK) : FK = t[19];
|
|
33602
|
+
let IK;
|
|
33603
|
+
t[20] !== I || t[21] !== J || t[22] !== Q || t[23] !== $ ? (IK = (0, import_jsx_runtime.jsxs)("button", {
|
|
33485
33604
|
type: "button",
|
|
33486
|
-
onClick:
|
|
33605
|
+
onClick: J,
|
|
33487
33606
|
"aria-expanded": I,
|
|
33488
|
-
"aria-label":
|
|
33607
|
+
"aria-label": Q,
|
|
33489
33608
|
className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
|
|
33490
33609
|
children: [
|
|
33491
|
-
|
|
33492
|
-
|
|
33610
|
+
$,
|
|
33611
|
+
FK
|
|
33493
33612
|
]
|
|
33494
|
-
}), t[20] = I, t[21] =
|
|
33495
|
-
let
|
|
33496
|
-
t[25] !== s || t[26] !== I ? (
|
|
33613
|
+
}), t[20] = I, t[21] = J, t[22] = Q, t[23] = $, t[24] = IK) : IK = t[24];
|
|
33614
|
+
let LK;
|
|
33615
|
+
t[25] !== s || t[26] !== I ? (LK = I && (0, import_jsx_runtime.jsx)("div", {
|
|
33497
33616
|
className: "text-muted-foreground pr-4 text-xs overflow-auto",
|
|
33498
33617
|
children: s
|
|
33499
|
-
}), t[25] = s, t[26] = I, t[27] =
|
|
33618
|
+
}), t[25] = s, t[26] = I, t[27] = LK) : LK = t[27];
|
|
33500
33619
|
let RK;
|
|
33501
|
-
t[28] !==
|
|
33620
|
+
t[28] !== q || t[29] !== A ? (RK = A && (0, import_jsx_runtime.jsx)(AIFixButton, {
|
|
33502
33621
|
tooltip: "Fix with AI",
|
|
33503
|
-
openPrompt: () =>
|
|
33504
|
-
applyAutofix: () =>
|
|
33505
|
-
}), t[28] =
|
|
33622
|
+
openPrompt: () => q(false),
|
|
33623
|
+
applyAutofix: () => q(true)
|
|
33624
|
+
}), t[28] = q, t[29] = A, t[30] = RK) : RK = t[30];
|
|
33506
33625
|
let zK;
|
|
33507
33626
|
t[31] !== w || t[32] !== v ? (zK = w && (0, import_jsx_runtime.jsx)(Tooltip, {
|
|
33508
33627
|
content: "Attach pdb to the exception point.",
|
|
@@ -33602,14 +33721,14 @@ ${d}`,
|
|
|
33602
33721
|
]
|
|
33603
33722
|
}), t[37] = RK, t[38] = zK, t[39] = BK, t[40] = VK) : VK = t[40];
|
|
33604
33723
|
let HK;
|
|
33605
|
-
return t[41] !==
|
|
33724
|
+
return t[41] !== IK || t[42] !== LK || t[43] !== VK ? (HK = (0, import_jsx_runtime.jsxs)("div", {
|
|
33606
33725
|
className: "flex flex-col gap-2 min-w-full w-fit",
|
|
33607
33726
|
children: [
|
|
33727
|
+
IK,
|
|
33608
33728
|
LK,
|
|
33609
|
-
$,
|
|
33610
33729
|
VK
|
|
33611
33730
|
]
|
|
33612
|
-
}), t[41] =
|
|
33731
|
+
}), t[41] = IK, t[42] = LK, t[43] = VK, t[44] = HK) : HK = t[44], HK;
|
|
33613
33732
|
};
|
|
33614
33733
|
function lastLine(e) {
|
|
33615
33734
|
var _a2, _b;
|
|
@@ -35001,7 +35120,7 @@ ${d}`,
|
|
|
35001
35120
|
return Logger.warn("Failed to get version from mount config"), null;
|
|
35002
35121
|
}
|
|
35003
35122
|
}
|
|
35004
|
-
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-
|
|
35123
|
+
marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-dev37");
|
|
35005
35124
|
showCodeInRunModeAtom = atom(true);
|
|
35006
35125
|
atom(null);
|
|
35007
35126
|
var import_compiler_runtime = require_compiler_runtime();
|