@marimo-team/islands 0.23.9-dev9 → 0.23.9

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.
Files changed (101) hide show
  1. package/dist/{ConnectedDataExplorerComponent-OzrfMM5L.js → ConnectedDataExplorerComponent-CyV83R2m.js} +4 -4
  2. package/dist/assets/__vite-browser-external-Ci2ZQfXU.js +1 -0
  3. package/dist/assets/{worker-CpBbwbQo.js → worker-ip3AI_sN.js} +2 -2
  4. package/dist/{chat-ui-BDI3FMI8.js → chat-ui-ChD4VvCo.js} +3060 -3033
  5. package/dist/{code-visibility-DgHF4q8X.js → code-visibility-BkuwTYAm.js} +1368 -1204
  6. package/dist/{formats-DQ5qjo_Q.js → formats-DHxc-FdY.js} +1 -1
  7. package/dist/{glide-data-editor-DqRY9naW.js → glide-data-editor-BOmK9ETQ.js} +2 -2
  8. package/dist/{html-to-image-CiSinpSR.js → html-to-image-BHv7CEU_.js} +2145 -2153
  9. package/dist/{input-CZD2z6X2.js → input-_2sjvfne.js} +1 -1
  10. package/dist/main.js +680 -705
  11. package/dist/{mermaid-IU93XzmY.js → mermaid-lXOw5Py9.js} +2 -2
  12. package/dist/{process-output-5qJjMRKh.js → process-output-BvySRgli.js} +33 -25
  13. package/dist/{reveal-component-qpHJES_u.js → reveal-component-DeBkkDcg.js} +312 -291
  14. package/dist/{spec-a6DaqW__.js → spec-B96zNUEA.js} +1 -1
  15. package/dist/style.css +1 -1
  16. package/dist/{toDate-ZVVIBmdk.js → toDate-x-WRDCH7.js} +1 -1
  17. package/dist/{useAsyncData-C008zUPi.js → useAsyncData-iRgKDT5s.js} +1 -1
  18. package/dist/{useDeepCompareMemoize-BrA3_n61.js → useDeepCompareMemoize-CkQ57VS2.js} +1 -1
  19. package/dist/{useLifecycle-BNaoJ5a4.js → useLifecycle-BBO9PIph.js} +1 -1
  20. package/dist/{useTheme-7O0YWlE5.js → useTheme-DHIrRQOe.js} +34 -21
  21. package/dist/{vega-component-DJNmOdUj.js → vega-component-Dq-SH463.js} +5 -5
  22. package/package.json +1 -1
  23. package/src/components/ai/__tests__/ai-utils.test.ts +43 -38
  24. package/src/components/ai/ai-model-dropdown.tsx +2 -2
  25. package/src/components/app-config/ai-config.tsx +147 -16
  26. package/src/components/app-config/user-config-form.tsx +37 -1
  27. package/src/components/chat/__tests__/chat-utils.test.ts +269 -0
  28. package/src/components/chat/chat-panel.tsx +38 -5
  29. package/src/components/chat/chat-utils.ts +14 -58
  30. package/src/components/data-table/TableBottomBar.tsx +5 -8
  31. package/src/components/data-table/__tests__/column-explorer.test.tsx +128 -0
  32. package/src/components/data-table/__tests__/header-items.test.tsx +220 -10
  33. package/src/components/data-table/column-explorer-panel/column-explorer.tsx +95 -29
  34. package/src/components/data-table/column-header.tsx +17 -12
  35. package/src/components/data-table/data-table.tsx +4 -0
  36. package/src/components/data-table/export-actions.tsx +19 -12
  37. package/src/components/data-table/header-items.tsx +40 -16
  38. package/src/components/data-table/hooks/use-column-visibility.ts +14 -0
  39. package/src/components/data-table/schemas.ts +2 -2
  40. package/src/components/data-table/table-explorer-panel/table-explorer-panel.tsx +16 -6
  41. package/src/components/databases/display.tsx +2 -0
  42. package/src/components/datasources/__tests__/utils.test.ts +82 -0
  43. package/src/components/datasources/utils.ts +16 -15
  44. package/src/components/editor/Disconnected.tsx +1 -60
  45. package/src/components/editor/__tests__/viewer-banner.test.tsx +89 -0
  46. package/src/components/editor/actions/pair-with-agent-modal.tsx +1 -0
  47. package/src/components/editor/actions/useCellActionButton.tsx +3 -3
  48. package/src/components/editor/actions/useNotebookActions.tsx +5 -2
  49. package/src/components/editor/cell/code/cell-editor.tsx +25 -5
  50. package/src/components/editor/chrome/types.ts +13 -6
  51. package/src/components/editor/chrome/wrapper/app-chrome.tsx +6 -4
  52. package/src/components/editor/chrome/wrapper/footer-items/ai-status.tsx +10 -1
  53. package/src/components/editor/chrome/wrapper/sidebar.tsx +7 -5
  54. package/src/components/editor/errors/auto-fix.tsx +3 -3
  55. package/src/components/editor/header/__tests__/status.test.tsx +0 -15
  56. package/src/components/editor/header/app-header.tsx +1 -4
  57. package/src/components/editor/header/status.tsx +4 -13
  58. package/src/components/editor/navigation/__tests__/navigation.test.ts +15 -0
  59. package/src/components/editor/navigation/navigation.ts +5 -0
  60. package/src/components/editor/output/MarimoErrorOutput.tsx +103 -25
  61. package/src/components/editor/output/MarimoTracebackOutput.tsx +28 -39
  62. package/src/components/editor/renderers/cell-array.tsx +27 -24
  63. package/src/components/editor/renderers/slides-layout/__tests__/compute-slide-cells.test.ts +30 -17
  64. package/src/components/editor/renderers/slides-layout/compute-slide-cells.ts +17 -8
  65. package/src/components/editor/renderers/slides-layout/slides-layout.tsx +10 -12
  66. package/src/components/editor/viewer-banner.tsx +82 -0
  67. package/src/components/slides/minimap.tsx +45 -9
  68. package/src/components/slides/reveal-component.tsx +82 -37
  69. package/src/components/slides/slide-cell-view.tsx +12 -1
  70. package/src/components/slides/slide-form.tsx +11 -3
  71. package/src/components/static-html/static-banner.tsx +28 -22
  72. package/src/core/ai/__tests__/model-registry.test.ts +72 -60
  73. package/src/core/ai/model-registry.ts +33 -28
  74. package/src/core/cells/__tests__/actions.test.ts +48 -0
  75. package/src/core/cells/actions.ts +5 -6
  76. package/src/core/codemirror/__tests__/setup.test.ts +29 -0
  77. package/src/core/codemirror/cells/traceback-decorations.ts +1 -1
  78. package/src/core/codemirror/cm.ts +50 -3
  79. package/src/core/codemirror/completion/hints.ts +4 -1
  80. package/src/core/codemirror/format.ts +1 -0
  81. package/src/core/codemirror/keymaps/vim.ts +63 -0
  82. package/src/core/codemirror/language/languages/sql/sql.ts +1 -0
  83. package/src/core/codemirror/language/languages/sql/utils.ts +2 -0
  84. package/src/core/config/__tests__/config-schema.test.ts +4 -0
  85. package/src/core/config/config-schema.ts +4 -0
  86. package/src/core/config/config.ts +16 -0
  87. package/src/core/edit-app.tsx +3 -0
  88. package/src/core/islands/bootstrap.ts +2 -0
  89. package/src/core/kernel/__tests__/handlers.test.ts +5 -0
  90. package/src/core/websocket/__tests__/useMarimoKernelConnection.test.ts +0 -13
  91. package/src/core/websocket/types.ts +0 -6
  92. package/src/core/websocket/useMarimoKernelConnection.tsx +3 -12
  93. package/src/css/app/Cell.css +0 -1
  94. package/src/plugins/impl/DataTablePlugin.tsx +48 -22
  95. package/src/plugins/impl/chat/ChatPlugin.tsx +7 -1
  96. package/src/plugins/impl/chat/__tests__/chat-ui.test.ts +278 -0
  97. package/src/plugins/impl/chat/chat-ui.tsx +106 -59
  98. package/src/plugins/impl/chat/types.ts +5 -0
  99. package/src/utils/__tests__/json-parser.test.ts +1 -69
  100. package/src/utils/json/json-parser.ts +0 -30
  101. package/dist/assets/__vite-browser-external-CAdMKBac.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 Minus, C as AccordionContent, En as Trash2, Ft as jotaiJsonStorage, Hn as esm_default, I as base64ToUint8Array, In as ExternalLink, Jt as useRequestClient, Kt as getRequestClient, Lt as PluralWord, M as PinLeftIcon, Mt as useChromeActions, N as PinRightIcon, O as CheckIcon, Pn as FileText, Pt as adaptForLocalStorage, Qt as extractAllTracebackInfo, R as extractBase64FromDataURL, S as Accordion, St as Checkbox, T as AccordionTrigger, Tn as Wrench, Un as import_lib, V as renderHTML, Vn as Braces, Y as notebookAtom, Zt as elementContainsMarimoCellFile, _n as atomWithStorage, _t as getCellDomProps, at as AnsiUp, bn as Close$1, c as Popover, cn as SCRATCH_CELL_ID, ct as kioskModeAtom, d as PopoverTrigger, dt as outputIsLoading, et as useCellIds, g as getDatasourceContext, gt as DATA_CELL_ID, hn as jsonToTSV, ht as sanitizeHtml, j as DotFilledIcon, jn as LoaderCircle, kn as NotebookPen, kt as goToCellLine, l as PopoverClose, lt as useInstallAllowed, m as useExpandedOutput, mn as jsonToMarkdown, n as Spinner, nn as filenameAtom, on as CellOutputId, pn as jsonParseWithSpecialChar, q as getCellEditorView, r as MarkdownRenderer, sn as HTMLCellId, t as toPng, tt as useCellNames, u as PopoverContent, ut as viewStateAtom, vt as displayCellName, w as AccordionItem, z as isDataURLString, zn as CircleX, zt as DATA_TYPE_ICON, __tla as __tla_0 } from "./html-to-image-CiSinpSR.js";
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-BHv7CEU_.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-BNaoJ5a4.js";
11
+ import { c as Calendar, i as createReducerAndAtoms, r as Badge } from "./useLifecycle-BBO9PIph.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-CZD2z6X2.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-ZVVIBmdk.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-_2sjvfne.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-x-WRDCH7.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,19 +23,19 @@ 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 dequal, S as getBuildingBlocks, _ as useSetAtom, d as useJotaiEffect, g as useAtomValue, h as useAtom, m as Provider, n as useTheme, r as aiEnabledAtom, v as useStore, w as useEvent_default, x as buildStore, y as atom } from "./useTheme-7O0YWlE5.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 aiFeaturesEnabledAtom, s as resolvedMarimoConfigAtom, v as useSetAtom, w as dequal, y as useStore } from "./useTheme-DHIrRQOe.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-DQ5qjo_Q.js";
32
+ import { a as isValid, i as AlertTitle, n as Alert, t as arrow } from "./formats-DHxc-FdY.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-C008zUPi.js";
38
- let TableHead, Command, ChartLoadingState, contextAwarePanelType, GripHorizontal, prettifyRowColumnCount, dateToLocalISOTime, DateRangePicker, TabsTrigger, DatePicker, TabsList, CommandSeparator, HtmlOutput, Panel, Download, SlotNames, EyeOff, ContextAwarePanelItem, EmotionCacheProvider, Fill, ChevronsRight, PanelGroup, Code, PANEL_TYPES, $fae977aafc393c5c$export$588937bcd60ade55, CommandInput, useOverflowDetection, CommandItem, RenderTextWithLinks, Combobox, ChartErrorState, CommandList, Kbd, TableCell, ArrowDownWideNarrow, contextAwarePanelOpen, $fae977aafc393c5c$export$6b862160d295c8e, downloadSizeLimitAtom, dateToLocalISODateTime, useInternalStateWithSync, TabsContent, slotsController, Expand, isCellAwareAtom, Funnel, Toggle, Ellipsis, Table, ChevronsDownUp, Provider$1, ChevronsLeft, TableBody, ChevronLeft, downloadBlob, toFieldTypes, DEFAULT_SLIDE_TYPE, renderCellValue, Progress, Maps, Slide, DelayMount, JsonOutput, getPageIndexForRow, TableHeader, OutputArea, loadTableAndRawData, ADD_PRINTING_CLASS, TOO_MANY_ROWS, InstallPackageButton, SELECT_COLUMN_ID, DEFAULT_DECK_TRANSITION, inferFieldTypes, CommandEmpty, LazyVegaEmbed, ComboboxItem, ChartInfoState, RadioGroup, useIntersectionObserver, DataTable, INDEX_COLUMN_NAME, marimoVersionAtom, NAMELESS_COLUMN_PREFIX, SLIDE_TYPE_OPTIONS_BY_VALUE, ColumnChartContext, OutputRenderer, loadTableData, PanelResizeHandle, ChevronsUpDown, showCodeInRunModeAtom, generateColumns, SlideSidebar, ColumnChartSpecModel, useNotebookCodeAvailable, TableRow, RadioGroupItem, usePrevious, downloadByURL, getMimeValues, prettifyRowCount, Tabs, Filenames, dateToLocalISODate, downloadHTMLAsImage, isNullishFilter, contextAwarePanelOwner, TextWrap;
37
+ import { t as useAsyncData } from "./useAsyncData-iRgKDT5s.js";
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
  (() => {
41
41
  try {
@@ -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, $ = parseInt(h.borderRightWidth, 10) || 0, jK = c.top - E, MK = c.bottom + O, NK = c.left - A, PK = c.right + M, FK = e === _ ? 0 : Q + $, IK = e === _ ? 0 : q + J, LK = e.offsetWidth - e.clientWidth - FK, RK = e.offsetHeight - e.clientHeight - IK, zK = v + q + I, BK = y - J - z - RK, VK = S + Q + U, HK = w - $ - K;
1906
- h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? VK += LK : HK -= LK;
1907
- let UK = jK < zK || MK > BK, WK = NK < VK || PK > HK;
1908
- if (UK && i === "start") o += jK - zK;
1909
- else if (UK && i === "center") o += (jK + MK) / 2 - (zK + BK) / 2;
1910
- else if (UK && i === "end") o += MK - BK;
1911
- else if (UK && i === "nearest") {
1912
- let e2 = jK - zK, t2 = MK - BK;
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
+ h.direction === "rtl" && !$c87311424ea30a05$export$fedb369cb70207f1() ? WK += BK : GK -= BK;
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
+ else if (KK && i === "nearest") {
1912
+ let e2 = PK - HK, t2 = FK - UK;
1913
1913
  o += Math.abs(e2) <= Math.abs(t2) ? e2 : t2;
1914
1914
  }
1915
- if (WK && a === "start") s += NK - VK;
1916
- else if (WK && a === "center") s += (NK + PK) / 2 - (VK + HK) / 2;
1917
- else if (WK && a === "end") s += PK - HK;
1918
- else if (WK && a === "nearest") {
1919
- let e2 = NK - VK, t2 = PK - HK;
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
+ else if (qK && a === "nearest") {
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({
@@ -5026,23 +5026,23 @@ Defaulting to \`null\`.`;
5026
5026
  }
5027
5027
  let $ = "bottom";
5028
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 jK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f);
5030
- q[I] += jK;
5031
- let MK = $edcf132a9284368a$var$getMaxHeight(q, c, f, v, a, o, n.height, $, d, E, O);
5032
- y && y < MK && (MK = y), n.height = Math.min(n.height, MK), q = $edcf132a9284368a$var$computePosition(t, c, n, A, J, _, f, v, S, w, d), jK = $edcf132a9284368a$var$getDelta(I, q[I], n[z], c, d, o, f), q[I] += jK;
5033
- let NK = {}, PK = t[I] - q[I] - a[$edcf132a9284368a$var$AXIS[I]], FK = PK + 0.5 * t[z], IK = S / 2 + w, LK = $edcf132a9284368a$var$AXIS[I] === "left" ? (a.left ?? 0) + (a.right ?? 0) : (a.top ?? 0) + (a.bottom ?? 0), RK = n[z] - LK - S / 2 - w;
5034
- NK[I] = $9446cca9a3875146$export$7d15b64cf5a3a4c4($9446cca9a3875146$export$7d15b64cf5a3a4c4(FK, t[I] + S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]]), t[I] + t[z] - S / 2 - (q[I] + a[$edcf132a9284368a$var$AXIS[I]])), IK, RK), { placement: U, crossPlacement: K } = A, S ? PK = NK[I] : K === "right" ? PK += t[z] : K === "center" && (PK += t[z] / 2);
5035
- let zK = U === "left" || U === "top" ? n[M] : 0, BK = {
5036
- x: U === "top" || U === "bottom" ? PK : zK,
5037
- y: U === "left" || U === "right" ? PK : zK
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
+ let HK = U === "left" || U === "top" ? n[M] : 0, UK = {
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: MK,
5042
- arrowOffsetLeft: NK.left,
5043
- arrowOffsetTop: NK.top,
5041
+ maxHeight: FK,
5042
+ arrowOffsetLeft: IK.left,
5043
+ arrowOffsetTop: IK.top,
5044
5044
  placement: U,
5045
- triggerAnchorPoint: BK
5045
+ triggerAnchorPoint: UK
5046
5046
  };
5047
5047
  }
5048
5048
  function $edcf132a9284368a$export$b3ceb0cbf1056d98(e) {
@@ -6897,7 +6897,7 @@ Defaulting to \`null\`.`;
6897
6897
  n,
6898
6898
  h
6899
6899
  ]);
6900
- let jK = $c87311424ea30a05$export$fedb369cb70207f1() || e.type === "timeZoneName" ? {
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 MK = $bdb11010cef70236$export$f680877a34711e37(), NK = !t.isDisabled && !t.isReadOnly && e.isEditable, PK = e.type === "literal" ? "" : s.of(e.type), FK = $313b98861ee5dd6c$export$d6875122194c7b44({
6911
- "aria-label": `${PK}${c ? `, ${c}` : ""}${d ? ", " : ""}`,
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 {
@@ -6916,32 +6916,32 @@ Defaulting to \`null\`.`;
6916
6916
  "aria-hidden": true
6917
6917
  }
6918
6918
  };
6919
- let IK = {
6919
+ let zK = {
6920
6920
  caretColor: "transparent"
6921
6921
  };
6922
6922
  if (o === "rtl") {
6923
- IK.unicodeBidi = "embed";
6923
+ zK.unicodeBidi = "embed";
6924
6924
  let t2 = v[e.type];
6925
- (t2 === "numeric" || t2 === "2-digit") && (IK.direction = "ltr");
6925
+ (t2 === "numeric" || t2 === "2-digit") && (zK.direction = "ltr");
6926
6926
  }
6927
6927
  return {
6928
- segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, FK, {
6929
- id: MK,
6930
- ...jK,
6928
+ segmentProps: $3ef42575df84b30b$export$9d1611c77c2fe928(w, RK, {
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: NK,
6936
- suppressContentEditableWarning: NK,
6937
- spellCheck: NK ? "false" : void 0,
6938
- autoCorrect: NK ? "off" : void 0,
6939
- enterKeyHint: NK ? "next" : void 0,
6940
- inputMode: t.isDisabled || e.type === "dayPeriod" || e.type === "era" || !NK ? void 0 : "numeric",
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,
6944
- style: IK,
6944
+ style: zK,
6945
6945
  onPointerDown(e2) {
6946
6946
  e2.stopPropagation();
6947
6947
  },
@@ -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 jK = (0, import_react.useMemo)(() => w ? f && f(w) ? true : $f62d864046160412$export$eac50920cf2fd59a(w, s, c) : false, [
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
- ]), MK = e.isInvalid || e.validationState === "invalid" || jK, NK = MK ? "invalid" : null, PK = (0, import_react.useMemo)(() => h === "visible" ? o : $131cf43a05231e1e$var$unitDuration(o), [
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
  ]);
@@ -10206,8 +10206,8 @@ Defaulting to \`null\`.`;
10206
10206
  maxValue: c,
10207
10207
  focusedDate: O,
10208
10208
  timeZone: E,
10209
- validationState: NK,
10210
- isValueInvalid: MK,
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(PK);
10236
- A($f62d864046160412$export$4f5203c0d889109e(O.add(PK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, PK, i, s, c), PK, i));
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(PK);
10240
- A($f62d864046160412$export$4f5203c0d889109e(O.subtract(PK), s, c)), I($f62d864046160412$export$144a00ba6044eb9($f62d864046160412$export$5bb865b12696a77d(O, e2, PK, i, s, c), PK, i));
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));
@@ -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
- }, [$, jK] = (0, import_react.useState)(false), { isDateUnavailable: MK } = e, NK = (0, import_react.useMemo)(() => !h || v ? false : MK && (MK(h.start) || MK(h.end)) ? true : $f62d864046160412$export$eac50920cf2fd59a(h.start, c, d) || $f62d864046160412$export$eac50920cf2fd59a(h.end, c, d), [
10378
- MK,
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
- ]), PK = e.isInvalid || e.validationState === "invalid" || NK, FK = PK ? "invalid" : null;
10383
+ ]), LK = e.isInvalid || e.validationState === "invalid" || IK, RK = LK ? "invalid" : null;
10384
10384
  return {
10385
10385
  ...I,
10386
10386
  value: h,
@@ -10388,8 +10388,8 @@ Defaulting to \`null\`.`;
10388
10388
  anchorDate: v,
10389
10389
  setAnchorDate: q,
10390
10390
  highlightedRange: J,
10391
- validationState: FK,
10392
- isValueInvalid: PK,
10391
+ validationState: RK,
10392
+ isValueInvalid: LK,
10393
10393
  selectFocusedDate() {
10394
10394
  Q(I.focusedDate);
10395
10395
  },
@@ -10405,7 +10405,7 @@ Defaulting to \`null\`.`;
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
10407
  isDragging: $,
10408
- setDragging: jK
10408
+ setDragging: PK
10409
10409
  };
10410
10410
  }
10411
10411
  function $9a36b6ba2fb1a7c5$var$makeRange(e, t) {
@@ -11592,7 +11592,7 @@ Defaulting to \`null\`.`;
11592
11592
  _,
11593
11593
  S,
11594
11594
  v
11595
- ]), jK = (0, import_react.useMemo)(() => {
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
- ]), [MK, NK] = (0, import_react.useState)(M), [PK, FK] = (0, import_react.useState)(S), [IK, LK] = (0, import_react.useState)(w);
11614
- (M !== MK || w !== IK || !$14e0f24ef4ac5c92$export$dbc69fd56b53d5e(S, PK)) && (I = new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M), NK(M), FK(S), LK(w), z(I));
11615
- let RK = (t2) => {
11616
- if (!(e.isDisabled || e.isReadOnly)) if (t2 == null || t2 instanceof $f863c03ccd9aead0$export$ae165b50d181e1ef && t2.isCleared(jK)) z(new $f863c03ccd9aead0$export$ae165b50d181e1ef(S, w, M)), O(null);
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
+ let VK = (t2) => {
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(jK)) {
11619
+ if (t2.isComplete(PK)) {
11620
11620
  let e2 = t2.toValue(M ?? $);
11621
- if (t2.validate(e2, jK)) {
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,83 +11628,83 @@ Defaulting to \`null\`.`;
11628
11628
  }
11629
11629
  z(t2);
11630
11630
  }
11631
- }, zK = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11631
+ }, HK = (0, import_react.useMemo)(() => I.toValue(M ?? $).toDate(y), [
11632
11632
  I,
11633
11633
  y,
11634
11634
  M,
11635
11635
  $
11636
- ]), BK = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(zK, I, J, Q, S, t, _), [
11637
- zK,
11636
+ ]), UK = (0, import_react.useMemo)(() => $3c0fc76039f1c516$var$processSegments(HK, I, J, Q, S, t, _), [
11637
+ HK,
11638
11638
  J,
11639
11639
  Q,
11640
11640
  I,
11641
11641
  S,
11642
11642
  t,
11643
11643
  _
11644
- ]), VK = (e2, t2) => {
11645
- RK(I.cycle(e2, t2, $, jK));
11646
- }, HK = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11644
+ ]), WK = (e2, t2) => {
11645
+ VK(I.cycle(e2, t2, $, PK));
11646
+ }, GK = (0, import_react.useMemo)(() => $35a22f14a1f04b11$export$f18627323ab57ac0(E, c, d, f, K), [
11647
11647
  E,
11648
11648
  c,
11649
11649
  d,
11650
11650
  f,
11651
11651
  K
11652
- ]), UK = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11652
+ ]), KK = $e5be200c675c3b3a$export$fc1a364ae1f3ff10({
11653
11653
  ...e,
11654
11654
  value: E,
11655
- builtinValidation: HK
11656
- }), WK = UK.displayValidation.isInvalid, GK = e.validationState || (WK ? "invalid" : null);
11655
+ builtinValidation: GK
11656
+ }), qK = KK.displayValidation.isInvalid, JK = e.validationState || (qK ? "invalid" : null);
11657
11657
  return {
11658
- ...UK,
11658
+ ...KK,
11659
11659
  value: M,
11660
11660
  defaultValue: e.defaultValue ?? A,
11661
- dateValue: zK,
11661
+ dateValue: HK,
11662
11662
  calendar: S,
11663
- setValue: RK,
11664
- segments: BK,
11663
+ setValue: VK,
11664
+ segments: UK,
11665
11665
  dateFormatter: J,
11666
- validationState: GK,
11667
- isInvalid: WK,
11666
+ validationState: JK,
11667
+ isInvalid: qK,
11668
11668
  granularity: _,
11669
11669
  maxGranularity: e.maxGranularity ?? "year",
11670
11670
  isDisabled: a,
11671
11671
  isReadOnly: o,
11672
11672
  isRequired: s,
11673
11673
  increment(e2) {
11674
- VK(e2, 1);
11674
+ WK(e2, 1);
11675
11675
  },
11676
11676
  decrement(e2) {
11677
- VK(e2, -1);
11677
+ WK(e2, -1);
11678
11678
  },
11679
11679
  incrementPage(e2) {
11680
- VK(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11680
+ WK(e2, $3c0fc76039f1c516$var$PAGE_STEP[e2] || 1);
11681
11681
  },
11682
11682
  decrementPage(e2) {
11683
- VK(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11683
+ WK(e2, -($3c0fc76039f1c516$var$PAGE_STEP[e2] || 1));
11684
11684
  },
11685
11685
  incrementToMax(e2) {
11686
11686
  let t2 = e2 === "hour" && w === "h12" ? 11 : I.getSegmentLimits(e2).maxValue;
11687
- RK(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
- RK(I.set(e2, t2, $));
11691
+ VK(I.set(e2, t2, $));
11692
11692
  },
11693
11693
  setSegment(e2, t2) {
11694
- RK(I.set(e2, t2, $));
11694
+ VK(I.set(e2, t2, $));
11695
11695
  },
11696
11696
  confirmPlaceholder() {
11697
- if (!(e.isDisabled || e.isReadOnly) && I.isComplete(jK)) {
11697
+ if (!(e.isDisabled || e.isReadOnly) && I.isComplete(PK)) {
11698
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
  },
11702
11702
  clearSegment(e2) {
11703
11703
  let t2 = I;
11704
- e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), RK(t2);
11704
+ e2 !== "timeZoneName" && e2 !== "literal" && (t2 = I.clear(e2)), VK(t2);
11705
11705
  },
11706
11706
  formatValue(e2) {
11707
- return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(zK) : "";
11707
+ return M ? new $fb18d541ea1ad717$export$ad991b66133851cf(t, $35a22f14a1f04b11$export$7e319ea407e63bc0(e2, K)).format(HK) : "";
11708
11708
  },
11709
11709
  getDateFormatter(e2, t2) {
11710
11710
  return new $fb18d541ea1ad717$export$ad991b66133851cf(e2, $35a22f14a1f04b11$export$7e319ea407e63bc0({}, {
@@ -11824,7 +11824,7 @@ Defaulting to \`null\`.`;
11824
11824
  e.endName
11825
11825
  ]),
11826
11826
  builtinValidation: J
11827
- }), $ = Q.displayValidation.isInvalid, jK = e.validationState || ($ ? "invalid" : null);
11827
+ }), $ = Q.displayValidation.isInvalid, PK = e.validationState || ($ ? "invalid" : null);
11828
11828
  return {
11829
11829
  ...Q,
11830
11830
  value: c,
@@ -11870,7 +11870,7 @@ 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: jK,
11873
+ validationState: PK,
11874
11874
  isInvalid: $,
11875
11875
  formatValue(t2, n2) {
11876
11876
  if (!c || !c.start || !c.end) return null;
@@ -15742,33 +15742,33 @@ try {
15742
15742
  }, f = import_react.createContext(void 0), h = () => import_react.useContext(f) || d, _ = {}, v = {};
15743
15743
  function y(e2) {
15744
15744
  var _a2, _b, _c, _d;
15745
- let { children: d2, theme: h2, modeStorageKey: y2 = i, colorSchemeStorageKey: S2 = a, disableTransitionOnChange: w2 = o, storageManager: E, storageWindow: O = typeof window > "u" ? void 0 : window, documentNode: A = typeof document > "u" ? void 0 : document, colorSchemeNode: M = typeof document > "u" ? void 0 : document.documentElement, disableNestedContext: I = false, disableStyleSheetGeneration: z = false, defaultMode: U = "system", noSsr: K } = e2, q = import_react.useRef(false), J = useTheme$2(), Q = import_react.useContext(f), $ = !!Q && !I, jK = import_react.useMemo(() => h2 || (typeof n == "function" ? n() : n), [
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
- ]), MK = jK[t], NK = MK || jK, { colorSchemes: PK = _, components: FK = v, cssVarPrefix: IK } = NK, LK = Object.keys(PK).filter((e3) => !!PK[e3]).join(","), RK = import_react.useMemo(() => LK.split(","), [
15748
- LK
15749
- ]), zK = typeof s == "string" ? s : s.light, BK = typeof s == "string" ? s : s.dark, { mode: VK, setMode: HK, systemMode: UK, lightColorScheme: WK, darkColorScheme: GK, colorScheme: KK, setColorScheme: qK } = useCurrentColorScheme({
15750
- supportedColorSchemes: RK,
15751
- defaultLightColorScheme: zK,
15752
- defaultDarkColorScheme: BK,
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
+ BK
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
+ supportedColorSchemes: VK,
15751
+ defaultLightColorScheme: HK,
15752
+ defaultDarkColorScheme: UK,
15753
15753
  modeStorageKey: y2,
15754
15754
  colorSchemeStorageKey: S2,
15755
- defaultMode: PK[zK] && PK[BK] ? U : ((_b = (_a2 = PK[NK.defaultColorScheme]) == null ? void 0 : _a2.palette) == null ? void 0 : _b.mode) || ((_c = NK.palette) == null ? void 0 : _c.mode),
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
- }), JK = VK, YK = KK;
15760
- $ && (JK = Q.mode, YK = Q.colorScheme);
15761
- let XK = import_react.useMemo(() => {
15759
+ }), ZK = WK, QK = YK;
15760
+ $ && (ZK = Q.mode, QK = Q.colorScheme);
15761
+ let $K = import_react.useMemo(() => {
15762
15762
  var _a3;
15763
- let e3 = YK || NK.defaultColorScheme, t2 = ((_a3 = NK.generateThemeVars) == null ? void 0 : _a3.call(NK)) || NK.vars, n2 = {
15764
- ...NK,
15765
- components: FK,
15766
- colorSchemes: PK,
15767
- cssVarPrefix: IK,
15763
+ let e3 = QK || IK.defaultColorScheme, t2 = ((_a3 = IK.generateThemeVars) == null ? void 0 : _a3.call(IK)) || IK.vars, n2 = {
15764
+ ...IK,
15765
+ components: RK,
15766
+ colorSchemes: LK,
15767
+ cssVarPrefix: zK,
15768
15768
  vars: t2
15769
15769
  };
15770
15770
  if (typeof n2.generateSpacing == "function" && (n2.spacing = n2.generateSpacing()), e3) {
15771
- let t3 = PK[e3];
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,31 +15778,31 @@ try {
15778
15778
  }
15779
15779
  return c ? c(n2) : n2;
15780
15780
  }, [
15781
- NK,
15782
- YK,
15783
- FK,
15784
- PK,
15785
- IK
15786
- ]), ZK = NK.colorSchemeSelector;
15781
+ IK,
15782
+ QK,
15783
+ RK,
15784
+ LK,
15785
+ zK
15786
+ ]), eq = IK.colorSchemeSelector;
15787
15787
  useEnhancedEffect_default(() => {
15788
- if (YK && M && ZK && ZK !== "media") {
15789
- let e3 = ZK, t2 = ZK;
15790
- if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...RK.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", YK));
15788
+ if (QK && M && eq && eq !== "media") {
15789
+ let e3 = eq, t2 = eq;
15790
+ if (e3 === "class" && (t2 = ".%s"), e3 === "data" && (t2 = "[data-%s]"), (e3 == null ? void 0 : e3.startsWith("data-")) && !e3.includes("%s") && (t2 = `[${e3}="%s"]`), t2.startsWith(".")) M.classList.remove(...VK.map((e4) => t2.substring(1).replace("%s", e4))), M.classList.add(t2.substring(1).replace("%s", QK));
15791
15791
  else {
15792
- let e4 = t2.replace("%s", YK).match(/\[([^\]]+)\]/);
15792
+ let e4 = t2.replace("%s", QK).match(/\[([^\]]+)\]/);
15793
15793
  if (e4) {
15794
15794
  let [t3, n2] = e4[1].split("=");
15795
- n2 || RK.forEach((e5) => {
15796
- M.removeAttribute(t3.replace(YK, e5));
15795
+ n2 || VK.forEach((e5) => {
15796
+ M.removeAttribute(t3.replace(QK, e5));
15797
15797
  }), M.setAttribute(t3, n2 ? n2.replace(/"|'/g, "") : "");
15798
- } else M.setAttribute(t2, YK);
15798
+ } else M.setAttribute(t2, QK);
15799
15799
  }
15800
15800
  }
15801
15801
  }, [
15802
- YK,
15803
- ZK,
15802
+ QK,
15803
+ eq,
15804
15804
  M,
15805
- RK
15805
+ VK
15806
15806
  ]), import_react.useEffect(() => {
15807
15807
  let e3;
15808
15808
  if (w2 && q.current && A) {
@@ -15815,48 +15815,48 @@ try {
15815
15815
  clearTimeout(e3);
15816
15816
  };
15817
15817
  }, [
15818
- YK,
15818
+ QK,
15819
15819
  w2,
15820
15820
  A
15821
15821
  ]), import_react.useEffect(() => (q.current = true, () => {
15822
15822
  q.current = false;
15823
15823
  }), []);
15824
- let QK = import_react.useMemo(() => ({
15825
- allColorSchemes: RK,
15826
- colorScheme: YK,
15827
- darkColorScheme: GK,
15828
- lightColorScheme: WK,
15829
- mode: JK,
15830
- setColorScheme: qK,
15831
- setMode: HK,
15832
- systemMode: UK
15824
+ let tq = import_react.useMemo(() => ({
15825
+ allColorSchemes: VK,
15826
+ colorScheme: QK,
15827
+ darkColorScheme: JK,
15828
+ lightColorScheme: qK,
15829
+ mode: ZK,
15830
+ setColorScheme: XK,
15831
+ setMode: GK,
15832
+ systemMode: KK
15833
15833
  }), [
15834
- RK,
15835
- YK,
15836
- GK,
15837
- WK,
15834
+ VK,
15835
+ QK,
15838
15836
  JK,
15839
15837
  qK,
15840
- HK,
15841
- UK,
15842
- XK.colorSchemeSelector
15843
- ]), $K = true;
15844
- (z || NK.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === IK) && ($K = false);
15845
- let eq = (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
15838
+ ZK,
15839
+ XK,
15840
+ GK,
15841
+ KK,
15842
+ $K.colorSchemeSelector
15843
+ ]), nq = true;
15844
+ (z || IK.cssVariables === false || $ && (J == null ? void 0 : J.cssVarPrefix) === zK) && (nq = false);
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: MK ? t : void 0,
15849
- theme: XK,
15848
+ themeId: FK ? t : void 0,
15849
+ theme: $K,
15850
15850
  children: d2
15851
15851
  }),
15852
- $K && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
15853
- styles: ((_d = XK.generateStyleSheets) == null ? void 0 : _d.call(XK)) || []
15852
+ nq && (0, import_jsx_runtime.jsx)(GlobalStyles$1, {
15853
+ styles: ((_d = $K.generateStyleSheets) == null ? void 0 : _d.call($K)) || []
15854
15854
  })
15855
15855
  ]
15856
15856
  });
15857
- return $ ? eq : (0, import_jsx_runtime.jsx)(f.Provider, {
15858
- value: QK,
15859
- children: eq
15857
+ return $ ? rq : (0, import_jsx_runtime.jsx)(f.Provider, {
15858
+ value: tq,
15859
+ children: rq
15860
15860
  });
15861
15861
  }
15862
15862
  let S = typeof s == "string" ? s : s.light, w = typeof s == "string" ? s : s.dark;
@@ -17356,10 +17356,10 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17356
17356
  let n = useDefaultProps({
17357
17357
  props: e,
17358
17358
  name: "MuiInputBase"
17359
- }), { "aria-describedby": i, autoComplete: a, autoFocus: o, className: s, color: c, components: d = {}, componentsProps: f = {}, defaultValue: h, disabled: _, disableInjectingGlobalStyles: v, endAdornment: y, error: S, fullWidth: w = false, id: E, inputComponent: O = "input", inputProps: A = {}, inputRef: M, margin: I, maxRows: z, minRows: U, multiline: K = false, name: q, onBlur: J, onChange: Q, onClick: $, onFocus: jK, onKeyDown: MK, onKeyUp: NK, placeholder: PK, readOnly: FK, renderSuffix: IK, rows: LK, size: RK, slotProps: zK = {}, slots: BK = {}, startAdornment: VK, type: HK = "text", value: UK, ...WK } = n, GK = A.value == null ? UK : A.value, { current: KK } = import_react.useRef(GK != null), qK = import_react.useRef(), JK = import_react.useCallback((e2) => {
17360
- }, []), YK = useForkRef_default(qK, M, A.ref, JK), [XK, ZK] = import_react.useState(false), QK = useFormControl(), $K = formControlState({
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
+ }, []), QK = useForkRef_default(XK, M, A.ref, ZK), [$K, eq] = import_react.useState(false), tq = useFormControl(), nq = formControlState({
17361
17361
  props: n,
17362
- muiFormControl: QK,
17362
+ muiFormControl: tq,
17363
17363
  states: [
17364
17364
  "color",
17365
17365
  "disabled",
@@ -17370,145 +17370,145 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
17370
17370
  "filled"
17371
17371
  ]
17372
17372
  });
17373
- $K.focused = QK ? QK.focused : XK, import_react.useEffect(() => {
17374
- !QK && _ && XK && (ZK(false), J && J());
17373
+ nq.focused = tq ? tq.focused : $K, import_react.useEffect(() => {
17374
+ !tq && _ && $K && (eq(false), J && J());
17375
17375
  }, [
17376
- QK,
17376
+ tq,
17377
17377
  _,
17378
- XK,
17378
+ $K,
17379
17379
  J
17380
17380
  ]);
17381
- let eq = QK && QK.onFilled, tq = QK && QK.onEmpty, nq = import_react.useCallback((e2) => {
17382
- isFilled(e2) ? eq && eq() : tq && tq();
17381
+ let rq = tq && tq.onFilled, iq = tq && tq.onEmpty, aq = import_react.useCallback((e2) => {
17382
+ isFilled(e2) ? rq && rq() : iq && iq();
17383
17383
  }, [
17384
- eq,
17385
- tq
17384
+ rq,
17385
+ iq
17386
17386
  ]);
17387
17387
  useEnhancedEffect_default$1(() => {
17388
- KK && nq({
17389
- value: GK
17388
+ YK && aq({
17389
+ value: JK
17390
17390
  });
17391
17391
  }, [
17392
- GK,
17393
- nq,
17394
- KK
17392
+ JK,
17393
+ aq,
17394
+ YK
17395
17395
  ]);
17396
- let rq = (e2) => {
17397
- jK && jK(e2), A.onFocus && A.onFocus(e2), QK && QK.onFocus ? QK.onFocus(e2) : ZK(true);
17398
- }, iq = (e2) => {
17399
- J && J(e2), A.onBlur && A.onBlur(e2), QK && QK.onBlur ? QK.onBlur(e2) : ZK(false);
17400
- }, aq = (e2, ...t2) => {
17401
- if (!KK) {
17402
- let t3 = e2.target || qK.current;
17396
+ let oq = (e2) => {
17397
+ PK && PK(e2), A.onFocus && A.onFocus(e2), tq && tq.onFocus ? tq.onFocus(e2) : eq(true);
17398
+ }, sq = (e2) => {
17399
+ J && J(e2), A.onBlur && A.onBlur(e2), tq && tq.onBlur ? tq.onBlur(e2) : eq(false);
17400
+ }, cq = (e2, ...t2) => {
17401
+ if (!YK) {
17402
+ let t3 = e2.target || XK.current;
17403
17403
  if (t3 == null) throw Error(formatMuiErrorMessage(1));
17404
- nq({
17404
+ aq({
17405
17405
  value: t3.value
17406
17406
  });
17407
17407
  }
17408
17408
  A.onChange && A.onChange(e2, ...t2), Q && Q(e2, ...t2);
17409
17409
  };
17410
17410
  import_react.useEffect(() => {
17411
- nq(qK.current);
17411
+ aq(XK.current);
17412
17412
  }, []);
17413
- let oq = (e2) => {
17414
- qK.current && e2.currentTarget === e2.target && qK.current.focus(), $ && $(e2);
17415
- }, sq = O, cq = A;
17416
- K && sq === "input" && (cq = LK ? {
17413
+ let lq = (e2) => {
17414
+ XK.current && e2.currentTarget === e2.target && XK.current.focus(), $ && $(e2);
17415
+ }, uq = O, dq = A;
17416
+ K && uq === "input" && (dq = BK ? {
17417
17417
  type: void 0,
17418
- minRows: LK,
17419
- maxRows: LK,
17420
- ...cq
17418
+ minRows: BK,
17419
+ maxRows: BK,
17420
+ ...dq
17421
17421
  } : {
17422
17422
  type: void 0,
17423
17423
  maxRows: z,
17424
17424
  minRows: U,
17425
- ...cq
17426
- }, sq = TextareaAutosize_default);
17427
- let lq = (e2) => {
17428
- nq(e2.animationName === "mui-auto-fill-cancel" ? qK.current : {
17425
+ ...dq
17426
+ }, uq = TextareaAutosize_default);
17427
+ let fq = (e2) => {
17428
+ aq(e2.animationName === "mui-auto-fill-cancel" ? XK.current : {
17429
17429
  value: "x"
17430
17430
  });
17431
17431
  };
17432
17432
  import_react.useEffect(() => {
17433
- QK && QK.setAdornedStart(!!VK);
17433
+ tq && tq.setAdornedStart(!!WK);
17434
17434
  }, [
17435
- QK,
17436
- VK
17435
+ tq,
17436
+ WK
17437
17437
  ]);
17438
- let uq = {
17438
+ let pq = {
17439
17439
  ...n,
17440
- color: $K.color || "primary",
17441
- disabled: $K.disabled,
17440
+ color: nq.color || "primary",
17441
+ disabled: nq.disabled,
17442
17442
  endAdornment: y,
17443
- error: $K.error,
17444
- focused: $K.focused,
17445
- formControl: QK,
17443
+ error: nq.error,
17444
+ focused: nq.focused,
17445
+ formControl: tq,
17446
17446
  fullWidth: w,
17447
- hiddenLabel: $K.hiddenLabel,
17447
+ hiddenLabel: nq.hiddenLabel,
17448
17448
  multiline: K,
17449
- size: $K.size,
17450
- startAdornment: VK,
17451
- type: HK
17452
- }, dq = useUtilityClasses(uq), fq = BK.root || d.Root || InputBaseRoot, pq = zK.root || f.root || {}, mq = BK.input || d.Input || InputBaseInput;
17453
- return cq = {
17454
- ...cq,
17455
- ...zK.input ?? f.input
17449
+ size: nq.size,
17450
+ startAdornment: WK,
17451
+ type: GK
17452
+ }, mq = useUtilityClasses(pq), hq = UK.root || d.Root || InputBaseRoot, gq = HK.root || f.root || {}, _q = UK.input || d.Input || InputBaseInput;
17453
+ return dq = {
17454
+ ...dq,
17455
+ ...HK.input ?? f.input
17456
17456
  }, (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
17457
17457
  children: [
17458
17458
  !v && typeof InputGlobalStyles == "function" && (_InputGlobalStyles || (_InputGlobalStyles = (0, import_jsx_runtime.jsx)(InputGlobalStyles, {}))),
17459
- (0, import_jsx_runtime.jsxs)(fq, {
17460
- ...pq,
17459
+ (0, import_jsx_runtime.jsxs)(hq, {
17460
+ ...gq,
17461
17461
  ref: t,
17462
- onClick: oq,
17463
- ...WK,
17464
- ...!isHostComponent_default(fq) && {
17462
+ onClick: lq,
17463
+ ...qK,
17464
+ ...!isHostComponent_default(hq) && {
17465
17465
  ownerState: {
17466
- ...uq,
17467
- ...pq.ownerState
17466
+ ...pq,
17467
+ ...gq.ownerState
17468
17468
  }
17469
17469
  },
17470
- className: clsx_default(dq.root, pq.className, s, FK && "MuiInputBase-readOnly"),
17470
+ className: clsx_default(mq.root, gq.className, s, RK && "MuiInputBase-readOnly"),
17471
17471
  children: [
17472
- VK,
17472
+ WK,
17473
17473
  (0, import_jsx_runtime.jsx)(FormControlContext_default.Provider, {
17474
17474
  value: null,
17475
- children: (0, import_jsx_runtime.jsx)(mq, {
17476
- "aria-invalid": $K.error,
17475
+ children: (0, import_jsx_runtime.jsx)(_q, {
17476
+ "aria-invalid": nq.error,
17477
17477
  "aria-describedby": i,
17478
17478
  autoComplete: a,
17479
17479
  autoFocus: o,
17480
17480
  defaultValue: h,
17481
- disabled: $K.disabled,
17481
+ disabled: nq.disabled,
17482
17482
  id: E,
17483
- onAnimationStart: lq,
17483
+ onAnimationStart: fq,
17484
17484
  name: q,
17485
- placeholder: PK,
17486
- readOnly: FK,
17487
- required: $K.required,
17488
- rows: LK,
17489
- value: GK,
17490
- onKeyDown: MK,
17491
- onKeyUp: NK,
17492
- type: HK,
17493
- ...cq,
17494
- ...!isHostComponent_default(mq) && {
17495
- as: sq,
17485
+ placeholder: LK,
17486
+ readOnly: RK,
17487
+ required: nq.required,
17488
+ rows: BK,
17489
+ value: JK,
17490
+ onKeyDown: FK,
17491
+ onKeyUp: IK,
17492
+ type: GK,
17493
+ ...dq,
17494
+ ...!isHostComponent_default(_q) && {
17495
+ as: uq,
17496
17496
  ownerState: {
17497
- ...uq,
17498
- ...cq.ownerState
17497
+ ...pq,
17498
+ ...dq.ownerState
17499
17499
  }
17500
17500
  },
17501
- ref: YK,
17502
- className: clsx_default(dq.input, cq.className, FK && "MuiInputBase-readOnly"),
17503
- onBlur: iq,
17504
- onChange: aq,
17505
- onFocus: rq
17501
+ ref: QK,
17502
+ className: clsx_default(mq.input, dq.className, RK && "MuiInputBase-readOnly"),
17503
+ onBlur: sq,
17504
+ onChange: cq,
17505
+ onFocus: oq
17506
17506
  })
17507
17507
  }),
17508
17508
  y,
17509
- IK ? IK({
17510
- ...$K,
17511
- startAdornment: VK
17509
+ zK ? zK({
17510
+ ...nq,
17511
+ startAdornment: WK
17512
17512
  }) : null
17513
17513
  ]
17514
17514
  })
@@ -18584,30 +18584,30 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18584
18584
  M,
18585
18585
  i,
18586
18586
  a
18587
- ]), z = useJsonViewerStore((e2) => e2.setHover), U = useJsonViewerStore((e2) => e2.value), [K, q] = useInspect(i, t, a), [J, Q] = (0, import_react.useState)(false), $ = useJsonViewerStore((e2) => e2.onChange), jK = useTextColor(), MK = useJsonViewerStore((e2) => e2.colorspace.base0C), NK = useJsonViewerStore((e2) => e2.colorspace.base0A), PK = useJsonViewerStore((e2) => e2.displayComma), FK = useJsonViewerStore((e2) => e2.quotesOnKeys), IK = useJsonViewerStore((e2) => e2.rootName), LK = U === t, RK = Number.isInteger(Number(A)), zK = useJsonViewerStore((e2) => e2.enableAdd), BK = useJsonViewerStore((e2) => e2.onAdd), VK = (0, import_react.useMemo)(() => !BK || a !== void 0 || zK === false || v === false ? false : typeof zK == "function" ? !!zK(i, t) : !!(Array.isArray(t) || isPlainObject(t)), [
18588
- BK,
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
+ UK,
18589
18589
  a,
18590
18590
  i,
18591
- zK,
18591
+ HK,
18592
18592
  v,
18593
18593
  t
18594
- ]), HK = useJsonViewerStore((e2) => e2.enableDelete), UK = useJsonViewerStore((e2) => e2.onDelete), WK = (0, import_react.useMemo)(() => !UK || a !== void 0 || LK || HK === false || v === false ? false : typeof HK == "function" ? !!HK(i, t) : HK, [
18595
- UK,
18594
+ ]), GK = useJsonViewerStore((e2) => e2.enableDelete), KK = useJsonViewerStore((e2) => e2.onDelete), qK = (0, import_react.useMemo)(() => !KK || a !== void 0 || BK || GK === false || v === false ? false : typeof GK == "function" ? !!GK(i, t) : GK, [
18595
+ KK,
18596
18596
  a,
18597
- LK,
18597
+ BK,
18598
18598
  i,
18599
- HK,
18599
+ GK,
18600
18600
  v,
18601
18601
  t
18602
- ]), GK = useJsonViewerStore((e2) => e2.enableClipboard), { copy: KK, copied: qK } = useClipboard(), JK = useJsonViewerStore((e2) => e2.highlightUpdates), YK = (0, import_react.useMemo)(() => !JK || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
18603
- JK,
18602
+ ]), JK = useJsonViewerStore((e2) => e2.enableClipboard), { copy: YK, copied: XK } = useClipboard(), ZK = useJsonViewerStore((e2) => e2.highlightUpdates), QK = (0, import_react.useMemo)(() => !ZK || n === void 0 ? false : typeof t == typeof n ? typeof t == "number" ? isNaN(t) && isNaN(n) ? false : t !== n : Array.isArray(t) === Array.isArray(n) ? typeof t == "object" || typeof t == "function" ? false : t !== n : true : true, [
18603
+ ZK,
18604
18604
  n,
18605
18605
  t
18606
- ]), XK = (0, import_react.useRef)();
18606
+ ]), $K = (0, import_react.useRef)();
18607
18607
  (0, import_react.useEffect)(() => {
18608
- XK.current && YK && "animate" in XK.current && XK.current.animate([
18608
+ $K.current && QK && "animate" in $K.current && $K.current.animate([
18609
18609
  {
18610
- backgroundColor: NK
18610
+ backgroundColor: IK
18611
18611
  },
18612
18612
  {
18613
18613
  backgroundColor: ""
@@ -18617,22 +18617,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18617
18617
  easing: "ease-in"
18618
18618
  });
18619
18619
  }, [
18620
- NK,
18621
- YK,
18620
+ IK,
18621
+ QK,
18622
18622
  n,
18623
18623
  t
18624
18624
  ]);
18625
- let ZK = (0, import_react.useCallback)((e2) => {
18625
+ let eq = (0, import_react.useCallback)((e2) => {
18626
18626
  e2.preventDefault(), h && E(h(t)), Q(true);
18627
18627
  }, [
18628
18628
  h,
18629
18629
  t
18630
- ]), QK = (0, import_react.useCallback)(() => {
18630
+ ]), tq = (0, import_react.useCallback)(() => {
18631
18631
  Q(false), E("");
18632
18632
  }, [
18633
18633
  Q,
18634
18634
  E
18635
- ]), $K = (0, import_react.useCallback)((e2) => {
18635
+ ]), nq = (0, import_react.useCallback)((e2) => {
18636
18636
  if (Q(false), _) try {
18637
18637
  $(i, t, _(e2));
18638
18638
  } catch {
@@ -18643,14 +18643,14 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18643
18643
  $,
18644
18644
  i,
18645
18645
  t
18646
- ]), eq = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18646
+ ]), rq = (0, import_react.useMemo)(() => J ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18647
18647
  children: [
18648
18648
  (0, import_jsx_runtime.jsx)(IconBox, {
18649
18649
  children: (0, import_jsx_runtime.jsx)(CloseIcon, {
18650
18650
  sx: {
18651
18651
  fontSize: ".8rem"
18652
18652
  },
18653
- onClick: QK
18653
+ onClick: tq
18654
18654
  })
18655
18655
  }),
18656
18656
  (0, import_jsx_runtime.jsx)(IconBox, {
@@ -18658,22 +18658,22 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18658
18658
  sx: {
18659
18659
  fontSize: ".8rem"
18660
18660
  },
18661
- onClick: () => $K(w)
18661
+ onClick: () => nq(w)
18662
18662
  })
18663
18663
  })
18664
18664
  ]
18665
18665
  }) : (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18666
18666
  children: [
18667
- GK && (0, import_jsx_runtime.jsx)(IconBox, {
18667
+ JK && (0, import_jsx_runtime.jsx)(IconBox, {
18668
18668
  onClick: (e2) => {
18669
18669
  e2.preventDefault();
18670
18670
  try {
18671
- KK(i, t, copyString);
18671
+ YK(i, t, copyString);
18672
18672
  } catch (e3) {
18673
18673
  console.error(e3);
18674
18674
  }
18675
18675
  },
18676
- children: qK ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18676
+ children: XK ? (0, import_jsx_runtime.jsx)(CheckIcon$1, {
18677
18677
  sx: {
18678
18678
  fontSize: ".8rem"
18679
18679
  }
@@ -18684,16 +18684,16 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18684
18684
  })
18685
18685
  }),
18686
18686
  f && S && h && _ && (0, import_jsx_runtime.jsx)(IconBox, {
18687
- onClick: ZK,
18687
+ onClick: eq,
18688
18688
  children: (0, import_jsx_runtime.jsx)(EditIcon, {
18689
18689
  sx: {
18690
18690
  fontSize: ".8rem"
18691
18691
  }
18692
18692
  })
18693
18693
  }),
18694
- VK && (0, import_jsx_runtime.jsx)(IconBox, {
18694
+ WK && (0, import_jsx_runtime.jsx)(IconBox, {
18695
18695
  onClick: (e2) => {
18696
- e2.preventDefault(), BK == null ? void 0 : BK(i);
18696
+ e2.preventDefault(), UK == null ? void 0 : UK(i);
18697
18697
  },
18698
18698
  children: (0, import_jsx_runtime.jsx)(AddBoxIcon, {
18699
18699
  sx: {
@@ -18701,9 +18701,9 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18701
18701
  }
18702
18702
  })
18703
18703
  }),
18704
- WK && (0, import_jsx_runtime.jsx)(IconBox, {
18704
+ qK && (0, import_jsx_runtime.jsx)(IconBox, {
18705
18705
  onClick: (e2) => {
18706
- e2.preventDefault(), UK == null ? void 0 : UK(i, t);
18706
+ e2.preventDefault(), KK == null ? void 0 : KK(i, t);
18707
18707
  },
18708
18708
  children: (0, import_jsx_runtime.jsx)(DeleteIcon, {
18709
18709
  sx: {
@@ -18716,24 +18716,24 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18716
18716
  f,
18717
18717
  h,
18718
18718
  _,
18719
- qK,
18720
- KK,
18719
+ XK,
18720
+ YK,
18721
18721
  S,
18722
18722
  J,
18723
- GK,
18724
- VK,
18723
+ JK,
18725
18724
  WK,
18725
+ qK,
18726
18726
  w,
18727
18727
  i,
18728
18728
  t,
18729
- BK,
18730
18729
  UK,
18731
- ZK,
18732
- QK,
18733
- $K
18734
- ]), tq = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18730
+ KK,
18731
+ eq,
18732
+ tq,
18733
+ nq
18734
+ ]), iq = (0, import_react.useMemo)(() => getValueSize(t) === 0, [
18735
18735
  t
18736
- ]), nq = !tq && !!(c && d), rq = useJsonViewerStore((e2) => e2.keyRenderer), iq = (0, import_react.useMemo)(() => ({
18736
+ ]), aq = !iq && !!(c && d), oq = useJsonViewerStore((e2) => e2.keyRenderer), sq = (0, import_react.useMemo)(() => ({
18737
18737
  path: i,
18738
18738
  inspect: K,
18739
18739
  setInspect: q,
@@ -18765,18 +18765,18 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18765
18765
  className: "data-key",
18766
18766
  sx: {
18767
18767
  lineHeight: 1.5,
18768
- color: jK,
18768
+ color: PK,
18769
18769
  letterSpacing: 0.5,
18770
18770
  opacity: 0.8
18771
18771
  },
18772
18772
  onClick: (0, import_react.useCallback)((e2) => {
18773
- e2.isDefaultPrevented() || tq || q((e3) => !e3);
18773
+ e2.isDefaultPrevented() || iq || q((e3) => !e3);
18774
18774
  }, [
18775
- tq,
18775
+ iq,
18776
18776
  q
18777
18777
  ]),
18778
18778
  children: [
18779
- nq ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18779
+ aq ? K ? (0, import_jsx_runtime.jsx)(ExpandMoreIcon, {
18780
18780
  className: "data-key-toggle-expanded",
18781
18781
  sx: {
18782
18782
  fontSize: ".8rem",
@@ -18794,27 +18794,27 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18794
18794
  }
18795
18795
  }) : null,
18796
18796
  (0, import_jsx_runtime.jsx)(Box_default, {
18797
- ref: XK,
18797
+ ref: $K,
18798
18798
  className: "data-key-key",
18799
18799
  component: "span",
18800
- children: LK && O === 0 ? IK === false ? null : FK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18800
+ children: BK && O === 0 ? zK === false ? null : RK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18801
18801
  children: [
18802
18802
  '"',
18803
- IK,
18803
+ zK,
18804
18804
  '"'
18805
18805
  ]
18806
18806
  }) : (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
18807
- children: IK
18808
- }) : rq.when(iq) ? (0, import_jsx_runtime.jsx)(rq, {
18809
- ...iq
18810
- }) : a === void 0 && (RK ? (0, import_jsx_runtime.jsx)(Box_default, {
18807
+ children: zK
18808
+ }) : oq.when(sq) ? (0, import_jsx_runtime.jsx)(oq, {
18809
+ ...sq
18810
+ }) : a === void 0 && (VK ? (0, import_jsx_runtime.jsx)(Box_default, {
18811
18811
  component: "span",
18812
18812
  style: {
18813
- color: MK,
18814
- userSelect: RK ? "none" : "auto"
18813
+ color: FK,
18814
+ userSelect: VK ? "none" : "auto"
18815
18815
  },
18816
18816
  children: A
18817
- }) : FK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18817
+ }) : RK ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
18818
18818
  children: [
18819
18819
  '"',
18820
18820
  A,
@@ -18824,7 +18824,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18824
18824
  children: A
18825
18825
  }))
18826
18826
  }),
18827
- LK ? IK !== false && (0, import_jsx_runtime.jsx)(DataBox, {
18827
+ BK ? zK !== false && (0, import_jsx_runtime.jsx)(DataBox, {
18828
18828
  className: "data-key-colon",
18829
18829
  sx: {
18830
18830
  mr: 0.5
@@ -18837,38 +18837,38 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
18837
18837
  ".data-key-key:empty + &": {
18838
18838
  display: "none"
18839
18839
  },
18840
- userSelect: RK ? "none" : "auto"
18840
+ userSelect: VK ? "none" : "auto"
18841
18841
  },
18842
18842
  children: ":"
18843
18843
  }),
18844
18844
  c && (0, import_jsx_runtime.jsx)(c, {
18845
- ...iq
18845
+ ...sq
18846
18846
  }),
18847
- I && nq && K && eq
18847
+ I && aq && K && rq
18848
18848
  ]
18849
18849
  }),
18850
18850
  J && S ? f && (0, import_jsx_runtime.jsx)(f, {
18851
18851
  path: i,
18852
18852
  value: w,
18853
18853
  setValue: E,
18854
- abortEditing: QK,
18855
- commitEditing: $K
18854
+ abortEditing: tq,
18855
+ commitEditing: nq
18856
18856
  }) : s ? (0, import_jsx_runtime.jsx)(s, {
18857
- ...iq
18857
+ ...sq
18858
18858
  }) : (0, import_jsx_runtime.jsx)(Box_default, {
18859
18859
  component: "span",
18860
18860
  className: "data-value-fallback",
18861
18861
  children: `fallback: ${t}`
18862
18862
  }),
18863
18863
  d && (0, import_jsx_runtime.jsx)(d, {
18864
- ...iq
18864
+ ...sq
18865
18865
  }),
18866
- !o && PK && (0, import_jsx_runtime.jsx)(DataBox, {
18866
+ !o && LK && (0, import_jsx_runtime.jsx)(DataBox, {
18867
18867
  children: ","
18868
18868
  }),
18869
- I && nq && !K && eq,
18870
- I && !nq && eq,
18871
- !I && J && eq
18869
+ I && aq && !K && rq,
18870
+ I && !aq && rq,
18871
+ !I && J && rq
18872
18872
  ]
18873
18873
  });
18874
18874
  }, query = "(prefers-color-scheme: dark)";
@@ -19078,7 +19078,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19078
19078
  }, openPackageManager = (e) => {
19079
19079
  e.openApplication("packages"), focusPackagesInput();
19080
19080
  };
19081
- var KEY$1 = "marimo:ai:chatState:v5";
19081
+ var KEY = "marimo:ai:chatState:v5";
19082
19082
  const aiCompletionCellAtom = atom(null);
19083
19083
  atomWithStorage("marimo:ai:includeOtherCells", true, jotaiJsonStorage);
19084
19084
  function removeEmptyChats(e) {
@@ -19093,7 +19093,7 @@ To suppress this warning, you need to explicitly provide the \`palette.${t}Chann
19093
19093
  }
19094
19094
  return t;
19095
19095
  }
19096
- const chatStateAtom = atomWithStorage(KEY$1, {
19096
+ const chatStateAtom = atomWithStorage(KEY, {
19097
19097
  chats: /* @__PURE__ */ new Map(),
19098
19098
  activeChatId: null
19099
19099
  }, adaptForLocalStorage({
@@ -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(aiEnabledAtom), f;
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, {
@@ -19411,7 +19411,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19411
19411
  }
19412
19412
  var import_compiler_runtime$52 = require_compiler_runtime();
19413
19413
  const CellLink = (e) => {
19414
- let t = (0, import_compiler_runtime$52.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$12, y;
19414
+ let t = (0, import_compiler_runtime$52.c)(12), { className: n, cellId: i, variant: o, onClick: s, formatCellName: c, skipScroll: d } = e, f = useCellNames()[i] ?? "", h = useCellIds().inOrderIds.indexOf(i), { showCellIfHidden: _ } = useCellActions(), v = c ?? _temp$11, y;
19415
19415
  t[0] === n ? y = t[1] : (y = cn("inline-block cursor-pointer text-link hover:underline", n), t[0] = n, t[1] = y);
19416
19416
  let S;
19417
19417
  t[2] !== i || t[3] !== s || t[4] !== _ || t[5] !== d || t[6] !== o ? (S = (e2) => {
@@ -19462,7 +19462,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19462
19462
  o.classList.remove("focus-outline");
19463
19463
  }, 2e3)), true);
19464
19464
  }
19465
- function _temp$12(e) {
19465
+ function _temp$11(e) {
19466
19466
  return e;
19467
19467
  }
19468
19468
  var import_compiler_runtime$51 = require_compiler_runtime();
@@ -19500,13 +19500,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19500
19500
  }), t[9] = c, t[10] = s, t[11] = d) : d = t[11], d;
19501
19501
  }, MangledSegments = (e) => {
19502
19502
  let t = (0, import_compiler_runtime$51.c)(4), { segments: n } = e, i;
19503
- t[0] === n ? i = t[1] : (i = n.map(_temp$11), t[0] = n, t[1] = i);
19503
+ t[0] === n ? i = t[1] : (i = n.map(_temp$10), t[0] = n, t[1] = i);
19504
19504
  let a;
19505
19505
  return t[2] === i ? a = t[3] : (a = (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, {
19506
19506
  children: i
19507
19507
  }), t[2] = i, t[3] = a), a;
19508
19508
  };
19509
- function _temp$11(e, t) {
19509
+ function _temp$10(e, t) {
19510
19510
  return typeof e == "string" ? (0, import_jsx_runtime.jsx)("span", {
19511
19511
  children: e
19512
19512
  }, t) : (0, import_jsx_runtime.jsx)(MangledLocalChip, {
@@ -19730,15 +19730,57 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19730
19730
  children: a
19731
19731
  }), t[2] = a, t[3] = o), o;
19732
19732
  };
19733
- var import_compiler_runtime$49 = require_compiler_runtime(), Tip = (e) => {
19733
+ var import_compiler_runtime$49 = require_compiler_runtime(), CollapsibleTraceback = (e) => {
19734
+ let t = (0, import_compiler_runtime$49.c)(16), { traceback: n } = e, [i, a] = (0, import_react.useState)(true), o;
19735
+ t[0] === i ? o = t[1] : (o = () => a(!i), t[0] = i, t[1] = o);
19736
+ let s = i ? "Collapse traceback" : "Expand traceback", c;
19737
+ t[2] === i ? c = t[3] : (c = i ? (0, import_jsx_runtime.jsx)(ChevronDown, {
19738
+ className: "h-3 w-3"
19739
+ }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
19740
+ className: "h-3 w-3"
19741
+ }), t[2] = i, t[3] = c);
19742
+ let d;
19743
+ t[4] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (d = (0, import_jsx_runtime.jsx)("span", {
19744
+ className: "text-[0.6875rem] uppercase tracking-wider",
19745
+ children: "Traceback"
19746
+ }), t[4] = d) : d = t[4];
19747
+ let f;
19748
+ t[5] !== i || t[6] !== o || t[7] !== s || t[8] !== c ? (f = (0, import_jsx_runtime.jsxs)("button", {
19749
+ type: "button",
19750
+ onClick: o,
19751
+ "aria-expanded": i,
19752
+ "aria-label": s,
19753
+ className: "flex items-center gap-1 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
19754
+ children: [
19755
+ c,
19756
+ d
19757
+ ]
19758
+ }), t[5] = i, t[6] = o, t[7] = s, t[8] = c, t[9] = f) : f = t[9];
19759
+ let h;
19760
+ t[10] !== i || t[11] !== n ? (h = i && (0, import_jsx_runtime.jsx)("div", {
19761
+ className: "font-code text-sm mt-1 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
19762
+ children: renderHTML({
19763
+ html: n
19764
+ })
19765
+ }), t[10] = i, t[11] = n, t[12] = h) : h = t[12];
19766
+ let _;
19767
+ return t[13] !== f || t[14] !== h ? (_ = (0, import_jsx_runtime.jsxs)("div", {
19768
+ className: "mt-2",
19769
+ children: [
19770
+ f,
19771
+ h
19772
+ ]
19773
+ }), t[13] = f, t[14] = h, t[15] = _) : _ = t[15], _;
19774
+ }, Tip = (e) => {
19734
19775
  let t = (0, import_compiler_runtime$49.c)(10), n = e.title ?? "Tip", i;
19735
19776
  t[0] === n ? i = t[1] : (i = (0, import_jsx_runtime.jsx)(AccordionTrigger, {
19736
- className: "pt-2 pb-2 font-normal",
19777
+ className: "pt-2 pb-0 font-normal",
19737
19778
  children: n
19738
19779
  }), t[0] = n, t[1] = i);
19739
19780
  let a;
19740
19781
  t[2] === e.children ? a = t[3] : (a = (0, import_jsx_runtime.jsx)(AccordionContent, {
19741
19782
  className: "mr-24 text-[0.84375rem]",
19783
+ wrapperClassName: "pt-0 pb-2",
19742
19784
  children: e.children
19743
19785
  }), t[2] = e.children, t[3] = a);
19744
19786
  let o;
@@ -19759,32 +19801,33 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19759
19801
  }), t[7] = e.className, t[8] = o, t[9] = s) : s = t[9], s;
19760
19802
  };
19761
19803
  const MarimoErrorOutput = (e) => {
19762
- let t = (0, import_compiler_runtime$49.c)(31), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = "This cell wasn't run because it has errors", d = "destructive", f = "text-error";
19763
- if (n.some(_temp$10)) c = "Interrupted";
19764
- else if (n.some(_temp2$7)) c = "An internal error occurred";
19765
- else if (n.some(_temp3$4)) c = "Ancestor prevented from running", d = "default", f = "text-secondary-foreground";
19766
- else if (n.some(_temp4$4)) c = "Ancestor stopped", d = "default", f = "text-secondary-foreground";
19767
- else if (n.some(_temp5$2)) c = "SQL error";
19804
+ let t = (0, import_compiler_runtime$49.c)(38), { errors: n, cellId: i, className: o } = e, s = useChromeActions(), c = useAtomValue(resolvedMarimoConfigAtom).display.cell_output === "above", d = "This cell wasn't run because it has errors", f = "destructive", _ = "text-error", v = null;
19805
+ if (n.some(_temp$9)) d = "Interrupted";
19806
+ else if (n.some(_temp2$7)) d = "An internal error occurred";
19807
+ else if (n.some(_temp3$4)) d = "Ancestor prevented from running", f = "default", _ = "text-secondary-foreground";
19808
+ else if (n.some(_temp4$4)) d = "Ancestor stopped", f = "default", _ = "text-secondary-foreground";
19809
+ else if (n.some(_temp5$3)) d = "SQL error";
19810
+ else if (n.some(_temp6$2)) d = null, v = "Cell not run";
19768
19811
  else {
19769
19812
  let e2;
19770
- t[0] === n ? e2 = t[1] : (e2 = n.find(_temp6$2), t[0] = n, t[1] = e2);
19813
+ t[0] === n ? e2 = t[1] : (e2 = n.find(_temp7$1), t[0] = n, t[1] = e2);
19771
19814
  let i2 = e2;
19772
- i2 && "exception_type" in i2 && (c = i2.exception_type);
19815
+ i2 && "exception_type" in i2 && (d = i2.exception_type);
19773
19816
  }
19774
- let _, v, y, S, w, E;
19775
- if (t[2] !== d || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== f || t[8] !== c) {
19776
- let e2 = n.filter(_temp7$1), O2 = n.filter(_temp8), A2 = n.filter(_temp9), M = n.filter(_temp0), I = n.filter(_temp1), z = n.filter(_temp10), U = n.filter(_temp11), K = n.filter(_temp12), q = n.filter(_temp13), J = n.filter(_temp14), Q = n.filter(_temp15), $ = n.filter(_temp16), jK = n.filter(_temp17), MK;
19777
- t[15] === s ? MK = t[16] : (MK = () => {
19817
+ let y, S, w, E, O, A;
19818
+ if (t[2] !== f || t[3] !== i || t[4] !== s || t[5] !== o || t[6] !== n || t[7] !== c || t[8] !== v || t[9] !== _ || t[10] !== d) {
19819
+ let e2 = n.filter(_temp8), M2 = n.filter(_temp9), I2 = n.filter(_temp0), z = n.filter(_temp1), U = n.filter(_temp10), K = n.filter(_temp11), q = n.filter(_temp12), J = n.filter(_temp13), Q = n.filter(_temp14), $ = n.filter(_temp15), PK = n.filter(_temp16), FK = n.filter(_temp17), IK = n.filter(_temp18), RK;
19820
+ t[17] === s ? RK = t[18] : (RK = () => {
19778
19821
  s.openApplication("scratchpad");
19779
- }, t[15] = s, t[16] = MK);
19780
- let NK = MK, PK = () => {
19822
+ }, t[17] = s, t[18] = RK);
19823
+ let zK = RK, BK = () => {
19781
19824
  let t2 = [];
19782
- if (Q.length > 0 || $.length > 0) {
19783
- let e3 = Q.some(_temp18), n2 = !e3 && Q.some(_temp19);
19825
+ if (PK.length > 0 || FK.length > 0) {
19826
+ let e3 = PK.some(_temp19), n2 = !e3 && PK.some(_temp20);
19784
19827
  t2.push((0, import_jsx_runtime.jsxs)("div", {
19785
19828
  children: [
19786
- Q.map(_temp20),
19787
- $.map(_temp21),
19829
+ PK.map(_temp21),
19830
+ FK.map(_temp22),
19788
19831
  e3 && (0, import_jsx_runtime.jsxs)(Button, {
19789
19832
  size: "xs",
19790
19833
  variant: "outline",
@@ -19815,8 +19858,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19815
19858
  }),
19816
19859
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
19817
19860
  errors: [
19818
- ...Q,
19819
- ...$
19861
+ ...PK,
19862
+ ...FK
19820
19863
  ],
19821
19864
  cellId: i
19822
19865
  })
@@ -19831,7 +19874,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19831
19874
  }),
19832
19875
  (0, import_jsx_runtime.jsx)("ul", {
19833
19876
  className: "list-disc",
19834
- children: e2.flatMap(_temp22)
19877
+ children: e2.flatMap(_temp23)
19835
19878
  }),
19836
19879
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
19837
19880
  errors: e2,
@@ -19869,7 +19912,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19869
19912
  ]
19870
19913
  })
19871
19914
  ]
19872
- }, "setup-refs")), O2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
19915
+ }, "setup-refs")), M2.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
19873
19916
  children: [
19874
19917
  (0, import_jsx_runtime.jsx)("p", {
19875
19918
  className: "text-muted-foreground font-medium",
@@ -19877,10 +19920,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19877
19920
  }),
19878
19921
  (0, import_jsx_runtime.jsx)("ul", {
19879
19922
  className: "list-disc",
19880
- children: O2.flatMap(_temp23)
19923
+ children: M2.flatMap(_temp24)
19881
19924
  }),
19882
19925
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
19883
- errors: O2,
19926
+ errors: M2,
19884
19927
  cellId: i
19885
19928
  }),
19886
19929
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -19915,17 +19958,17 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19915
19958
  ]
19916
19959
  })
19917
19960
  ]
19918
- }, "cycle")), A2.length > 0) {
19919
- let e3 = A2[0].name;
19961
+ }, "cycle")), I2.length > 0) {
19962
+ let e3 = I2[0].name;
19920
19963
  t2.push((0, import_jsx_runtime.jsxs)("div", {
19921
19964
  children: [
19922
19965
  (0, import_jsx_runtime.jsx)("p", {
19923
19966
  className: "text-muted-foreground font-medium",
19924
19967
  children: "This cell redefines variables from other cells."
19925
19968
  }),
19926
- A2.map(_temp25),
19969
+ I2.map(_temp26),
19927
19970
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
19928
- errors: A2,
19971
+ errors: I2,
19929
19972
  cellId: i
19930
19973
  }),
19931
19974
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -19977,7 +20020,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19977
20020
  size: "xs",
19978
20021
  variant: "link",
19979
20022
  className: "my-2 font-normal mx-0 px-0",
19980
- onClick: NK,
20023
+ onClick: zK,
19981
20024
  children: [
19982
20025
  (0, import_jsx_runtime.jsx)(NotebookPen, {
19983
20026
  className: "h-3"
@@ -19996,11 +20039,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
19996
20039
  ]
19997
20040
  }, "multiple-defs"));
19998
20041
  }
19999
- return M.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20042
+ return z.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20000
20043
  children: [
20001
- M.map(_temp26),
20044
+ z.map(_temp27),
20002
20045
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20003
- errors: M,
20046
+ errors: z,
20004
20047
  cellId: i
20005
20048
  }),
20006
20049
  (0, import_jsx_runtime.jsxs)(Tip, {
@@ -20038,96 +20081,200 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20038
20081
  ]
20039
20082
  })
20040
20083
  ]
20041
- }, "import-star")), I.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20084
+ }, "import-star")), U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20042
20085
  children: [
20043
- I.map(_temp27),
20086
+ U.map(_temp28),
20044
20087
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20045
- errors: I,
20088
+ errors: U,
20046
20089
  cellId: i
20047
20090
  })
20048
20091
  ]
20049
- }, "interruption")), z.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20092
+ }, "interruption")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20050
20093
  children: [
20051
- z.map(_temp28),
20052
- z.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
20094
+ K.map((e3, t3) => e3.exception_type === "NameError" && e3.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
20095
+ className: "my-2",
20096
+ children: (0, import_jsx_runtime.jsxs)("div", {
20097
+ children: [
20098
+ (0, import_jsx_runtime.jsx)("p", {
20099
+ className: "text-muted-foreground",
20100
+ children: "name 'mo' is not defined."
20101
+ }),
20102
+ (0, import_jsx_runtime.jsxs)("p", {
20103
+ className: "text-muted-foreground mt-2",
20104
+ children: [
20105
+ "The marimo module (imported as",
20106
+ " ",
20107
+ (0, import_jsx_runtime.jsx)(Kbd, {
20108
+ className: "inline",
20109
+ children: "mo"
20110
+ }),
20111
+ ") is required for Markdown, SQL, and UI elements."
20112
+ ]
20113
+ })
20114
+ ]
20115
+ })
20116
+ }, `exception-${t3}`) : e3.exception_type === "NameError" && e3.msg.startsWith("name '_") ? (0, import_jsx_runtime.jsx)("li", {
20117
+ className: "my-2",
20118
+ children: (0, import_jsx_runtime.jsxs)("div", {
20119
+ children: [
20120
+ (0, import_jsx_runtime.jsx)("p", {
20121
+ className: "text-muted-foreground",
20122
+ children: (0, import_jsx_runtime.jsx)(MangledSegments, {
20123
+ segments: splitMangledLocals(e3.msg)
20124
+ })
20125
+ }),
20126
+ (0, import_jsx_runtime.jsxs)("p", {
20127
+ className: "text-muted-foreground mt-2",
20128
+ children: [
20129
+ "Variables prefixed with an underscore are local to a cell",
20130
+ " ",
20131
+ "(",
20132
+ (0, import_jsx_runtime.jsxs)(ExternalLink$1, {
20133
+ href: "https://links.marimo.app/local-variables",
20134
+ children: [
20135
+ "docs",
20136
+ " ",
20137
+ (0, import_jsx_runtime.jsx)(SquareArrowOutUpRight, {
20138
+ size: "0.75rem",
20139
+ className: "inline"
20140
+ })
20141
+ ]
20142
+ }),
20143
+ ")."
20144
+ ]
20145
+ }),
20146
+ c && (0, import_jsx_runtime.jsx)("div", {
20147
+ className: "text-muted-foreground mt-2",
20148
+ children: "See the console area for a traceback."
20149
+ })
20150
+ ]
20151
+ })
20152
+ }, `exception-${t3}`) : (0, import_jsx_runtime.jsx)("li", {
20153
+ className: "my-2",
20154
+ children: e3.raising_cell == null ? (0, import_jsx_runtime.jsxs)("div", {
20155
+ children: [
20156
+ (0, import_jsx_runtime.jsx)("p", {
20157
+ className: "text-muted-foreground",
20158
+ children: processTextForUrls(e3.msg, `exception-${t3}`)
20159
+ }),
20160
+ "traceback" in e3 && e3.traceback ? (0, import_jsx_runtime.jsx)(CollapsibleTraceback, {
20161
+ traceback: e3.traceback
20162
+ }) : c && (0, import_jsx_runtime.jsx)("div", {
20163
+ className: "text-muted-foreground mt-2",
20164
+ children: "See the console area for a traceback."
20165
+ })
20166
+ ]
20167
+ }) : (0, import_jsx_runtime.jsxs)("div", {
20168
+ children: [
20169
+ processTextForUrls(e3.msg, `exception-${t3}`),
20170
+ (0, import_jsx_runtime.jsx)(CellLinkError, {
20171
+ cellId: e3.raising_cell
20172
+ }),
20173
+ "traceback" in e3 && e3.traceback && (0, import_jsx_runtime.jsx)(CollapsibleTraceback, {
20174
+ traceback: e3.traceback
20175
+ })
20176
+ ]
20177
+ })
20178
+ }, `exception-${t3}`)),
20179
+ K.some(_temp29) && (0, import_jsx_runtime.jsx)(Tip, {
20053
20180
  children: "Fix the error in the mentioned cells, or handle the exceptions with try/except blocks."
20054
20181
  }),
20055
20182
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20056
- errors: z,
20183
+ errors: K,
20057
20184
  cellId: i
20058
20185
  })
20059
20186
  ]
20060
- }, "exception")), U.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20187
+ }, "exception")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("ul", {
20061
20188
  children: [
20062
- U.map(_temp30),
20189
+ q.map(_temp30),
20063
20190
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20064
- errors: U,
20191
+ errors: q,
20065
20192
  cellId: i
20066
20193
  }),
20067
20194
  (0, import_jsx_runtime.jsx)(Tip, {
20068
- children: U.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
20195
+ children: q.some(_temp31) ? "Ensure that the referenced cells define the required variables, or turn off strict execution." : "Something is wrong with your declarations. Fix any discrepancies, or turn off strict execution."
20069
20196
  })
20070
20197
  ]
20071
- }, "strict-exception")), K.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20198
+ }, "strict-exception")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20072
20199
  children: [
20073
- K.map(_temp32),
20200
+ J.map(_temp32),
20074
20201
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20075
- errors: K,
20202
+ errors: J,
20076
20203
  cellId: i
20077
20204
  })
20078
20205
  ]
20079
- }, "internal")), q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20206
+ }, "internal")), Q.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20080
20207
  children: [
20081
- q.map(_temp33),
20208
+ Q.map(_temp33),
20082
20209
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20083
- errors: q,
20210
+ errors: Q,
20084
20211
  cellId: i
20085
20212
  })
20086
20213
  ]
20087
- }, "ancestor-prevented")), J.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20214
+ }, "ancestor-prevented")), $.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20088
20215
  children: [
20089
- J.map(_temp34),
20216
+ $.map(_temp34),
20090
20217
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20091
- errors: J,
20218
+ errors: $,
20092
20219
  cellId: i
20093
20220
  })
20094
20221
  ]
20095
- }, "ancestor-stopped")), jK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20222
+ }, "ancestor-stopped")), IK.length > 0 && t2.push((0, import_jsx_runtime.jsxs)("div", {
20096
20223
  children: [
20097
- jK.map(_temp35),
20224
+ IK.map(_temp35),
20098
20225
  i && (0, import_jsx_runtime.jsx)(AutoFixButton, {
20099
- errors: jK,
20226
+ errors: IK,
20100
20227
  cellId: i,
20101
20228
  className: "mt-2.5"
20102
20229
  })
20103
20230
  ]
20104
20231
  }, "sql-errors")), t2;
20105
- }, FK = `font-code font-medium tracking-wide ${f}`, IK;
20106
- t[17] !== FK || t[18] !== c ? (IK = (0, import_jsx_runtime.jsx)(AlertTitle, {
20107
- className: FK,
20108
- children: c
20109
- }), t[17] = FK, t[18] = c, t[19] = IK) : IK = t[19];
20110
- let LK = IK;
20111
- _ = Alert, S = d, t[20] === o ? w = t[21] : (w = cn("border-none font-code text-sm text-[0.84375rem] px-0 text-muted-foreground normal [&:has(svg)]:pl-0 space-y-4", o), t[20] = o, t[21] = w), E = LK, v = "flex flex-col gap-8", y = PK(), t[2] = d, t[3] = i, t[4] = s, t[5] = o, t[6] = n, t[7] = f, t[8] = c, t[9] = _, t[10] = v, t[11] = y, t[12] = S, t[13] = w, t[14] = E;
20112
- } else _ = t[9], v = t[10], y = t[11], S = t[12], w = t[13], E = t[14];
20113
- let O;
20114
- t[22] !== v || t[23] !== y ? (O = (0, import_jsx_runtime.jsx)("div", {
20115
- children: (0, import_jsx_runtime.jsx)("div", {
20116
- className: v,
20117
- children: y
20118
- })
20119
- }), t[22] = v, t[23] = y, t[24] = O) : O = t[24];
20120
- let A;
20121
- return t[25] !== _ || t[26] !== S || t[27] !== w || t[28] !== E || t[29] !== O ? (A = (0, import_jsx_runtime.jsxs)(_, {
20122
- variant: S,
20123
- className: w,
20232
+ }, VK;
20233
+ t[19] === v ? VK = t[20] : (VK = v && (0, import_jsx_runtime.jsxs)("div", {
20234
+ className: "flex items-center gap-1 font-code text-[0.6875rem] uppercase tracking-wider text-muted-foreground/70",
20235
+ children: [
20236
+ v,
20237
+ (0, import_jsx_runtime.jsx)(Tooltip, {
20238
+ content: "marimo didn't run this cell because it detected an error.",
20239
+ delayDuration: 200,
20240
+ children: (0, import_jsx_runtime.jsx)(Info, {
20241
+ className: "size-3 cursor-help"
20242
+ })
20243
+ })
20244
+ ]
20245
+ }), t[19] = v, t[20] = VK);
20246
+ let UK;
20247
+ t[21] !== _ || t[22] !== d ? (UK = d && (0, import_jsx_runtime.jsx)(AlertTitle, {
20248
+ className: `font-code font-medium ${_}`,
20249
+ children: d
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
+ className: "space-y-0.5",
20254
+ children: [
20255
+ VK,
20256
+ UK
20257
+ ]
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
+ } else y = t[11], S = t[12], w = t[13], E = t[14], O = t[15], A = t[16];
20262
+ let M;
20263
+ t[29] !== S || t[30] !== w ? (M = (0, import_jsx_runtime.jsx)("div", {
20264
+ className: S,
20265
+ children: w
20266
+ }), t[29] = S, t[30] = w, t[31] = M) : M = t[31];
20267
+ let I;
20268
+ return t[32] !== y || t[33] !== E || t[34] !== O || t[35] !== A || t[36] !== M ? (I = (0, import_jsx_runtime.jsxs)(y, {
20269
+ variant: E,
20270
+ className: O,
20124
20271
  children: [
20125
- E,
20126
- O
20272
+ A,
20273
+ M
20127
20274
  ]
20128
- }), t[25] = _, t[26] = S, t[27] = w, t[28] = E, t[29] = O, t[30] = A) : A = t[30], A;
20275
+ }), t[32] = y, t[33] = E, t[34] = O, t[35] = A, t[36] = M, t[37] = I) : I = t[37], I;
20129
20276
  };
20130
- function _temp$10(e) {
20277
+ function _temp$9(e) {
20131
20278
  return e.type === "interruption";
20132
20279
  }
20133
20280
  function _temp2$7(e) {
@@ -20139,68 +20286,71 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20139
20286
  function _temp4$4(e) {
20140
20287
  return e.type === "ancestor-stopped";
20141
20288
  }
20142
- function _temp5$2(e) {
20289
+ function _temp5$3(e) {
20143
20290
  return e.type === "sql-error";
20144
20291
  }
20145
20292
  function _temp6$2(e) {
20146
- return e.type === "exception";
20293
+ return e.type === "multiple-defs" || e.type === "cycle" || e.type === "setup-refs" || e.type === "import-star";
20147
20294
  }
20148
20295
  function _temp7$1(e) {
20149
- return e.type === "setup-refs";
20296
+ return e.type === "exception";
20150
20297
  }
20151
20298
  function _temp8(e) {
20152
- return e.type === "cycle";
20299
+ return e.type === "setup-refs";
20153
20300
  }
20154
20301
  function _temp9(e) {
20155
- return e.type === "multiple-defs";
20302
+ return e.type === "cycle";
20156
20303
  }
20157
20304
  function _temp0(e) {
20158
- return e.type === "import-star";
20305
+ return e.type === "multiple-defs";
20159
20306
  }
20160
20307
  function _temp1(e) {
20161
- return e.type === "interruption";
20308
+ return e.type === "import-star";
20162
20309
  }
20163
20310
  function _temp10(e) {
20164
- return e.type === "exception";
20311
+ return e.type === "interruption";
20165
20312
  }
20166
20313
  function _temp11(e) {
20167
- return e.type === "strict-exception";
20314
+ return e.type === "exception";
20168
20315
  }
20169
20316
  function _temp12(e) {
20170
- return e.type === "internal";
20317
+ return e.type === "strict-exception";
20171
20318
  }
20172
20319
  function _temp13(e) {
20173
- return e.type === "ancestor-prevented";
20320
+ return e.type === "internal";
20174
20321
  }
20175
20322
  function _temp14(e) {
20176
- return e.type === "ancestor-stopped";
20323
+ return e.type === "ancestor-prevented";
20177
20324
  }
20178
20325
  function _temp15(e) {
20179
- return e.type === "syntax";
20326
+ return e.type === "ancestor-stopped";
20180
20327
  }
20181
20328
  function _temp16(e) {
20182
- return e.type === "unknown";
20329
+ return e.type === "syntax";
20183
20330
  }
20184
20331
  function _temp17(e) {
20185
- return e.type === "sql-error";
20332
+ return e.type === "unknown";
20186
20333
  }
20187
20334
  function _temp18(e) {
20188
- return e.msg.includes("!pip");
20335
+ return e.type === "sql-error";
20189
20336
  }
20190
20337
  function _temp19(e) {
20338
+ return e.msg.includes("!pip");
20339
+ }
20340
+ function _temp20(e) {
20191
20341
  return e.msg.includes("use os.subprocess");
20192
20342
  }
20193
- function _temp20(e, t) {
20343
+ function _temp21(e, t) {
20194
20344
  return (0, import_jsx_runtime.jsx)("pre", {
20195
20345
  children: processTextForUrls(e.msg, `syntax-${t}`)
20196
20346
  }, `syntax-${t}`);
20197
20347
  }
20198
- function _temp21(e, t) {
20348
+ function _temp22(e, t) {
20199
20349
  return (0, import_jsx_runtime.jsx)("pre", {
20200
20350
  children: processTextForUrls(e.msg, `unknown-${t}`)
20201
20351
  }, `unknown-${t}`);
20202
20352
  }
20203
- function _temp22(e, t) {
20353
+ function _temp23(e, t) {
20204
20354
  return e.edges_with_vars.map((e2, n) => (0, import_jsx_runtime.jsxs)("li", {
20205
20355
  className: "my-0.5 ml-8 text-muted-foreground/40",
20206
20356
  children: [
@@ -20218,7 +20368,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20218
20368
  ]
20219
20369
  }, `setup-refs-${t}-${n}`));
20220
20370
  }
20221
- function _temp23(e, t) {
20371
+ function _temp24(e, t) {
20222
20372
  return e.edges_with_vars.map((e2, n) => (0, import_jsx_runtime.jsxs)("li", {
20223
20373
  className: "my-0.5 ml-8 text-muted-foreground/40",
20224
20374
  children: [
@@ -20239,7 +20389,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20239
20389
  ]
20240
20390
  }, `cycle-${t}-${n}`));
20241
20391
  }
20242
- function _temp24(e, t) {
20392
+ function _temp25(e, t) {
20243
20393
  return (0, import_jsx_runtime.jsx)("li", {
20244
20394
  className: "my-0.5 ml-8 text-muted-foreground/40",
20245
20395
  children: (0, import_jsx_runtime.jsx)(CellLinkError, {
@@ -20247,7 +20397,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20247
20397
  })
20248
20398
  }, `cell-${t}`);
20249
20399
  }
20250
- function _temp25(e, t) {
20400
+ function _temp26(e, t) {
20251
20401
  return (0, import_jsx_runtime.jsxs)(import_react.Fragment, {
20252
20402
  children: [
20253
20403
  (0, import_jsx_runtime.jsx)("p", {
@@ -20256,115 +20406,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
20256
20406
  }),
20257
20407
  (0, import_jsx_runtime.jsx)("ul", {
20258
20408
  className: "list-disc",
20259
- children: e.cells.map(_temp24)
20409
+ children: e.cells.map(_temp25)
20260
20410
  })
20261
20411
  ]
20262
20412
  }, `multiple-defs-${t}`);
20263
20413
  }
20264
- function _temp26(e, t) {
20414
+ function _temp27(e, t) {
20265
20415
  return (0, import_jsx_runtime.jsx)("p", {
20266
20416
  className: "text-muted-foreground",
20267
20417
  children: e.msg
20268
20418
  }, `import-star-${t}`);
20269
20419
  }
20270
- function _temp27(e, t) {
20420
+ function _temp28(e, t) {
20271
20421
  return (0, import_jsx_runtime.jsx)("p", {
20272
20422
  children: "This cell was interrupted and needs to be re-run."
20273
20423
  }, `interruption-${t}`);
20274
20424
  }
20275
- function _temp28(e, t) {
20276
- return e.exception_type === "NameError" && e.msg.startsWith("name 'mo'") ? (0, import_jsx_runtime.jsx)("li", {
20277
- className: "my-2",
20278
- children: (0, import_jsx_runtime.jsxs)("div", {
20279
- children: [
20280
- (0, import_jsx_runtime.jsx)("p", {
20281
- className: "text-muted-foreground",
20282
- children: "name 'mo' is not defined."
20283
- }),
20284
- (0, import_jsx_runtime.jsxs)("p", {
20285
- className: "text-muted-foreground mt-2",
20286
- children: [
20287
- "The marimo module (imported as",
20288
- " ",
20289
- (0, import_jsx_runtime.jsx)(Kbd, {
20290
- className: "inline",
20291
- children: "mo"
20292
- }),
20293
- ") is required for Markdown, SQL, and UI elements."
20294
- ]
20295
- })
20296
- ]
20297
- })
20298
- }, `exception-${t}`) : e.exception_type === "NameError" && e.msg.startsWith("name '_") ? (0, import_jsx_runtime.jsx)("li", {
20299
- className: "my-2",
20300
- children: (0, import_jsx_runtime.jsxs)("div", {
20301
- children: [
20302
- (0, import_jsx_runtime.jsx)("p", {
20303
- className: "text-muted-foreground",
20304
- children: (0, import_jsx_runtime.jsx)(MangledSegments, {
20305
- segments: splitMangledLocals(e.msg)
20306
- })
20307
- }),
20308
- (0, import_jsx_runtime.jsxs)("p", {
20309
- className: "text-muted-foreground mt-2",
20310
- children: [
20311
- "Variables prefixed with an underscore are local to a cell",
20312
- " ",
20313
- "(",
20314
- (0, import_jsx_runtime.jsxs)(ExternalLink$1, {
20315
- href: "https://links.marimo.app/local-variables",
20316
- children: [
20317
- "docs",
20318
- " ",
20319
- (0, import_jsx_runtime.jsx)(SquareArrowOutUpRight, {
20320
- size: "0.75rem",
20321
- className: "inline"
20322
- })
20323
- ]
20324
- }),
20325
- ")."
20326
- ]
20327
- }),
20328
- (0, import_jsx_runtime.jsx)("div", {
20329
- className: "text-muted-foreground mt-2",
20330
- children: "See the console area for a traceback."
20331
- })
20332
- ]
20333
- })
20334
- }, `exception-${t}`) : (0, import_jsx_runtime.jsx)("li", {
20335
- className: "my-2",
20336
- children: e.raising_cell == null ? (0, import_jsx_runtime.jsxs)("div", {
20337
- children: [
20338
- (0, import_jsx_runtime.jsx)("p", {
20339
- className: "text-muted-foreground",
20340
- children: processTextForUrls(e.msg, `exception-${t}`)
20341
- }),
20342
- "traceback" in e && e.traceback ? (0, import_jsx_runtime.jsx)("div", {
20343
- className: "font-code text-sm mt-2 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
20344
- children: renderHTML({
20345
- html: e.traceback
20346
- })
20347
- }) : (0, import_jsx_runtime.jsx)("div", {
20348
- className: "text-muted-foreground mt-2",
20349
- children: "See the console area for a traceback."
20350
- })
20351
- ]
20352
- }) : (0, import_jsx_runtime.jsxs)("div", {
20353
- children: [
20354
- processTextForUrls(e.msg, `exception-${t}`),
20355
- (0, import_jsx_runtime.jsx)(CellLinkError, {
20356
- cellId: e.raising_cell
20357
- }),
20358
- "traceback" in e && e.traceback && (0, import_jsx_runtime.jsx)("div", {
20359
- className: "font-code text-sm mt-2 p-3 bg-muted rounded border overflow-auto max-h-[50vh] cursor-text select-text",
20360
- children: renderHTML({
20361
- html: e.traceback
20362
- })
20363
- })
20364
- ]
20365
- })
20366
- }, `exception-${t}`);
20367
- }
20368
20425
  function _temp29(e) {
20369
20426
  return e.raising_cell != null;
20370
20427
  }
@@ -23370,112 +23427,171 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23370
23427
  unknown: []
23371
23428
  };
23372
23429
  var import_compiler_runtime$41 = require_compiler_runtime();
23373
- function renderFormatOptions(e, t) {
23430
+ function FormatOptions(e) {
23374
23431
  var _a2, _b, _c;
23375
- let n = (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dataType, i = n ? formatOptions[n] : [];
23376
- if (i.length === 0 || !((_b = e.getCanFormat) == null ? void 0 : _b.call(e))) return null;
23377
- let o = DATA_TYPE_ICON[n || "unknown"], s = (_c = e.getColumnFormatting) == null ? void 0 : _c.call(e);
23378
- return (0, import_jsx_runtime.jsxs)(DropdownMenuSub, {
23379
- children: [
23380
- (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
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, {
23381
23445
  children: [
23382
- (0, import_jsx_runtime.jsx)(o, {
23446
+ (0, import_jsx_runtime.jsx)(S2, {
23383
23447
  className: "mo-dropdown-icon"
23384
23448
  }),
23385
23449
  "Format"
23386
23450
  ]
23387
- }),
23388
- (0, import_jsx_runtime.jsx)(DropdownMenuPortal, {
23389
- children: (0, import_jsx_runtime.jsxs)(DropdownMenuSubContent, {
23390
- children: [
23391
- (0, import_jsx_runtime.jsxs)("div", {
23392
- className: "text-xs text-muted-foreground px-2 py-1",
23393
- children: [
23394
- "Locale: ",
23395
- t
23396
- ]
23397
- }),
23398
- !!s && (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
23399
- children: [
23400
- (0, import_jsx_runtime.jsx)(DropdownMenuItem, {
23401
- variant: "danger",
23402
- onClick: () => e.setColumnFormatting(void 0),
23403
- children: "Clear"
23404
- }, "clear"),
23405
- (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {})
23406
- ]
23407
- }),
23408
- i.map((n2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23409
- onClick: () => e.setColumnFormatting(n2),
23410
- children: [
23411
- (0, import_jsx_runtime.jsx)("span", {
23412
- className: cn(s === n2 && "font-semibold"),
23413
- children: n2
23414
- }),
23415
- (0, import_jsx_runtime.jsx)("span", {
23416
- className: "ml-auto pl-5 text-xs text-muted-foreground",
23417
- children: formattingExample(n2, t)
23418
- })
23419
- ]
23420
- }, n2))
23421
- ]
23422
- })
23423
- })
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
+ _
23424
23491
  ]
23425
- });
23426
- }
23427
- function renderColumnWrapping(e) {
23428
- var _a2;
23429
- return !((_a2 = e.getCanWrap) == null ? void 0 : _a2.call(e)) || !e.getColumnWrapping ? null : e.getColumnWrapping() === "wrap" ? (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23430
- onClick: () => e.toggleColumnWrapping("nowrap"),
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, {
23431
23499
  children: [
23432
- (0, import_jsx_runtime.jsx)(TextAlignJustify, {
23433
- className: "mo-dropdown-icon"
23434
- }),
23435
- "No wrap text"
23500
+ v,
23501
+ w
23436
23502
  ]
23437
- }) : (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23438
- onClick: () => e.toggleColumnWrapping("wrap"),
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,
23439
23534
  children: [
23440
- (0, import_jsx_runtime.jsx)(TextWrap, {
23441
- className: "mo-dropdown-icon"
23442
- }),
23535
+ a,
23443
23536
  "Wrap text"
23444
23537
  ]
23445
- });
23538
+ }), t[8] = i, t[9] = o), o;
23446
23539
  }
23447
- function renderColumnPinning(e) {
23540
+ function ColumnPinning$1(e) {
23448
23541
  var _a2;
23449
- return !((_a2 = e.getCanPin) == null ? void 0 : _a2.call(e)) || !e.getIsPinned ? null : e.getIsPinned() === false ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
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,
23450
23569
  children: [
23451
- (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23452
- onClick: () => e.pin("left"),
23453
- children: [
23454
- (0, import_jsx_runtime.jsx)(PinLeftIcon, {
23455
- className: "mo-dropdown-icon"
23456
- }),
23457
- "Freeze left"
23458
- ]
23459
- }),
23460
- (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23461
- onClick: () => e.pin("right"),
23462
- children: [
23463
- (0, import_jsx_runtime.jsx)(PinRightIcon, {
23464
- className: "mo-dropdown-icon"
23465
- }),
23466
- "Freeze right"
23467
- ]
23468
- })
23570
+ a,
23571
+ "Freeze left"
23469
23572
  ]
23470
- }) : (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23471
- onClick: () => e.pin(false),
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,
23472
23583
  children: [
23473
- (0, import_jsx_runtime.jsx)(PinOff, {
23474
- className: "mo-dropdown-icon"
23475
- }),
23476
- "Unfreeze"
23584
+ c,
23585
+ "Freeze right"
23477
23586
  ]
23478
- });
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;
23479
23595
  }
23480
23596
  function HideColumn(e) {
23481
23597
  let t = (0, import_compiler_runtime$41.c)(5), { column: n } = e;
@@ -23495,26 +23611,41 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23495
23611
  ]
23496
23612
  }), t[3] = i, t[4] = o), o;
23497
23613
  }
23498
- function renderCopyColumn(e) {
23614
+ function CopyColumn(e) {
23499
23615
  var _a2;
23500
- return !((_a2 = e.getCanCopy) == null ? void 0 : _a2.call(e)) || e.id.startsWith("__m_column__") ? null : (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23501
- onClick: async () => await copyToClipboard(e.id),
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,
23502
23627
  children: [
23503
- (0, import_jsx_runtime.jsx)(Copy, {
23504
- className: "mo-dropdown-icon"
23505
- }),
23628
+ a,
23506
23629
  "Copy column name"
23507
23630
  ]
23508
- });
23631
+ }), t[3] = i, t[4] = o), o;
23509
23632
  }
23510
23633
  var AscIcon = ArrowUpNarrowWide, DescIcon = ArrowDownWideNarrow;
23511
- function renderSorts(e, t) {
23512
- if (!e.getCanSort()) return null;
23513
- let n = e.getIsSorted(), i = e.getSortIndex(), a = t == null ? void 0 : t.getState().sorting, o = (a == null ? void 0 : a.length) && a.length > 1, s = () => (0, import_jsx_runtime.jsx)("span", {
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", {
23514
23643
  className: "ml-auto text-xs font-medium",
23515
- children: i + 1
23516
- }), c = () => n ? o ? (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23517
- onClick: () => t == null ? void 0 : t.resetSorting(),
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(),
23518
23649
  children: [
23519
23650
  (0, import_jsx_runtime.jsx)(ChevronsUpDown, {
23520
23651
  className: "mo-dropdown-icon"
@@ -23522,47 +23653,68 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23522
23653
  "Clear all sorts"
23523
23654
  ]
23524
23655
  }) : (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23525
- onClick: () => e.clearSorting(),
23656
+ onClick: () => n.clearSorting(),
23526
23657
  children: [
23527
23658
  (0, import_jsx_runtime.jsx)(ChevronsUpDown, {
23528
23659
  className: "mo-dropdown-icon"
23529
23660
  }),
23530
23661
  "Clear sort"
23531
23662
  ]
23532
- }) : null, d = (t2) => {
23533
- if (n === t2) e.clearSorting();
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();
23534
23667
  else {
23535
- let n2 = t2 === "desc";
23536
- e.toggleSorting(n2, true);
23668
+ let t2 = e2 === "desc";
23669
+ n.toggleSorting(t2, true);
23537
23670
  }
23538
- };
23539
- return (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
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,
23540
23684
  children: [
23541
- (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23542
- onClick: () => d("asc"),
23543
- className: n === "asc" ? "bg-accent" : "",
23544
- children: [
23545
- (0, import_jsx_runtime.jsx)(AscIcon, {
23546
- className: "mo-dropdown-icon"
23547
- }),
23548
- "Asc",
23549
- n === "asc" && s()
23550
- ]
23551
- }),
23552
- (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
23553
- onClick: () => d("desc"),
23554
- className: n === "desc" ? "bg-accent" : "",
23555
- children: [
23556
- (0, import_jsx_runtime.jsx)(DescIcon, {
23557
- className: "mo-dropdown-icon"
23558
- }),
23559
- "Desc",
23560
- n === "desc" && s()
23561
- ]
23562
- }),
23563
- c()
23685
+ A,
23686
+ "Asc",
23687
+ M
23564
23688
  ]
23565
- });
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], $;
23566
23718
  }
23567
23719
  function renderSortIcon(e) {
23568
23720
  if (!e.getCanSort()) return null;
@@ -23571,18 +23723,24 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23571
23723
  className: "h-3 w-3"
23572
23724
  });
23573
23725
  }
23574
- function renderDataType(e) {
23726
+ function DataType(e) {
23575
23727
  var _a2;
23576
- let t = (_a2 = e.columnDef.meta) == null ? void 0 : _a2.dtype;
23577
- return t ? (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
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, {
23578
23739
  children: [
23579
- (0, import_jsx_runtime.jsx)("div", {
23580
- className: "flex-1 px-2 text-xs text-muted-foreground font-bold",
23581
- children: t
23582
- }),
23583
- (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {})
23740
+ a,
23741
+ o
23584
23742
  ]
23585
- }) : null;
23743
+ }), t[3] = a, t[4] = s), s;
23586
23744
  }
23587
23745
  const ClearFilterMenuItem = (e) => {
23588
23746
  let t = (0, import_compiler_runtime$41.c)(5), { column: n } = e, i;
@@ -23656,12 +23814,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
23656
23814
  (0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
23657
23815
  align: "start",
23658
23816
  children: [
23659
- renderDataType(e),
23660
- renderSorts(e, s),
23661
- renderCopyColumn(e),
23662
- renderColumnPinning(e),
23663
- renderColumnWrapping(e),
23664
- renderFormatOptions(e, c),
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
+ }),
23665
23837
  (0, import_jsx_runtime.jsx)(HideColumn, {
23666
23838
  column: e
23667
23839
  }),
@@ -26132,7 +26304,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26132
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 }) {
26133
26305
  let E = (0, import_react.useContext)(PanelGroupContext);
26134
26306
  if (E === null) throw Error("Panel components must be rendered within a PanelGroup container");
26135
- let { collapsePanel: O, expandPanel: A, getPanelSize: M, getPanelStyle: I, groupId: z, isPanelCollapsed: U, reevaluatePanelConstraints: K, registerPanel: q, resizePanel: J, unregisterPanel: Q } = E, $ = useUniqueId(s), jK = (0, import_react.useRef)({
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)({
26136
26308
  callbacks: {
26137
26309
  onCollapse: f,
26138
26310
  onExpand: h,
@@ -26152,12 +26324,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26152
26324
  (0, import_react.useRef)({
26153
26325
  didLogMissingDefaultSizeWarning: false
26154
26326
  }), useIsomorphicLayoutEffect$1(() => {
26155
- let { callbacks: e2, constraints: t2 } = jK.current, o2 = {
26327
+ let { callbacks: e2, constraints: t2 } = PK.current, o2 = {
26156
26328
  ...t2
26157
26329
  };
26158
- jK.current.id = $, jK.current.idIsFromProps = s !== void 0, jK.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(jK.current, o2);
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);
26159
26331
  }), useIsomorphicLayoutEffect$1(() => {
26160
- let e2 = jK.current;
26332
+ let e2 = PK.current;
26161
26333
  return q(e2), () => {
26162
26334
  Q(e2);
26163
26335
  };
@@ -26168,25 +26340,25 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26168
26340
  Q
26169
26341
  ]), (0, import_react.useImperativeHandle)(o, () => ({
26170
26342
  collapse: () => {
26171
- O(jK.current);
26343
+ O(PK.current);
26172
26344
  },
26173
26345
  expand: (e2) => {
26174
- A(jK.current, e2);
26346
+ A(PK.current, e2);
26175
26347
  },
26176
26348
  getId() {
26177
26349
  return $;
26178
26350
  },
26179
26351
  getSize() {
26180
- return M(jK.current);
26352
+ return M(PK.current);
26181
26353
  },
26182
26354
  isCollapsed() {
26183
- return U(jK.current);
26355
+ return U(PK.current);
26184
26356
  },
26185
26357
  isExpanded() {
26186
- return !U(jK.current);
26358
+ return !U(PK.current);
26187
26359
  },
26188
26360
  resize: (e2) => {
26189
- J(jK.current, e2);
26361
+ J(PK.current, e2);
26190
26362
  }
26191
26363
  }), [
26192
26364
  O,
@@ -26196,21 +26368,21 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26196
26368
  $,
26197
26369
  J
26198
26370
  ]);
26199
- let MK = I(jK.current, a);
26371
+ let FK = I(PK.current, a);
26200
26372
  return (0, import_react.createElement)(S, {
26201
26373
  ...w,
26202
26374
  children: e,
26203
26375
  className: t,
26204
26376
  id: $,
26205
26377
  style: {
26206
- ...MK,
26378
+ ...FK,
26207
26379
  ...y
26208
26380
  },
26209
26381
  [DATA_ATTRIBUTES.groupId]: z,
26210
26382
  [DATA_ATTRIBUTES.panel]: "",
26211
26383
  [DATA_ATTRIBUTES.panelCollapsible]: i || void 0,
26212
26384
  [DATA_ATTRIBUTES.panelId]: $,
26213
- [DATA_ATTRIBUTES.panelSize]: parseFloat("" + MK.flexGrow).toFixed(1)
26385
+ [DATA_ATTRIBUTES.panelSize]: parseFloat("" + FK.flexGrow).toFixed(1)
26214
26386
  });
26215
26387
  }
26216
26388
  Panel = (0, import_react.forwardRef)((e, t) => (0, import_react.createElement)(PanelWithForwardedRef, {
@@ -26995,13 +27167,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
26995
27167
  }, [
26996
27168
  S,
26997
27169
  E
26998
- ]), jK = (0, import_react.useCallback)((e2) => {
27170
+ ]), PK = (0, import_react.useCallback)((e2) => {
26999
27171
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27000
27172
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), a2 === true && fuzzyNumbersEqual$1(o2, i2);
27001
- }, []), MK = (0, import_react.useCallback)((e2) => {
27173
+ }, []), FK = (0, import_react.useCallback)((e2) => {
27002
27174
  let { layout: t2, panelDataArray: n2 } = K.current, { collapsedSize: i2 = 0, collapsible: a2, panelSize: o2 } = panelDataHelper(n2, e2, t2);
27003
27175
  return assert(o2 != null, `Panel size not found for panel "${e2.id}"`), !a2 || fuzzyCompareNumbers(o2, i2) > 0;
27004
- }, []), NK = (0, import_react.useCallback)((e2) => {
27176
+ }, []), IK = (0, import_react.useCallback)((e2) => {
27005
27177
  let { panelDataArray: t2 } = K.current;
27006
27178
  t2.push(e2), t2.sort((e3, t3) => {
27007
27179
  let n2 = e3.order, i2 = t3.order;
@@ -27033,7 +27205,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27033
27205
  e2.layout = [];
27034
27206
  };
27035
27207
  }, []);
27036
- let PK = (0, import_react.useCallback)((e2) => {
27208
+ let LK = (0, import_react.useCallback)((e2) => {
27037
27209
  let t2 = false, n2 = y.current;
27038
27210
  return n2 && window.getComputedStyle(n2, null).getPropertyValue("direction") === "rtl" && (t2 = true), function(n3) {
27039
27211
  n3.preventDefault();
@@ -27051,7 +27223,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27051
27223
  }), I2 = !compareLayouts(f2, A2);
27052
27224
  (isPointerEvent(n3) || isMouseEvent(n3)) && z.current != S2 && (z.current = S2, !I2 && S2 !== 0 ? w2 ? reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_HORIZONTAL_MIN : EXCEEDED_HORIZONTAL_MAX) : reportConstraintsViolation(e2, S2 < 0 ? EXCEEDED_VERTICAL_MIN : EXCEEDED_VERTICAL_MAX) : reportConstraintsViolation(e2, 0)), I2 && (O(A2), K.current.layout = A2, d2 && d2(A2), callPanelCallbacks(h2, A2, M.current));
27053
27225
  };
27054
- }, []), FK = (0, import_react.useCallback)((e2, t2) => {
27226
+ }, []), RK = (0, import_react.useCallback)((e2, t2) => {
27055
27227
  let { onLayout: n2 } = U.current, { layout: i2, panelDataArray: a2 } = K.current, o2 = a2.map((e3) => e3.constraints), { panelSize: s2, pivotIndices: c2 } = panelDataHelper(a2, e2, i2);
27056
27228
  assert(s2 != null, `Panel size not found for panel "${e2.id}"`);
27057
27229
  let d2 = adjustLayoutByDelta({
@@ -27063,12 +27235,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27063
27235
  trigger: "imperative-api"
27064
27236
  });
27065
27237
  compareLayouts(i2, d2) || (O(d2), K.current.layout = d2, n2 && n2(d2), callPanelCallbacks(a2, d2, M.current));
27066
- }, []), IK = (0, import_react.useCallback)((e2, t2) => {
27238
+ }, []), zK = (0, import_react.useCallback)((e2, t2) => {
27067
27239
  let { layout: n2, panelDataArray: i2 } = K.current, { collapsedSize: a2 = 0, collapsible: o2 } = t2, { collapsedSize: s2 = 0, collapsible: c2, maxSize: d2 = 100, minSize: f2 = 0 } = e2.constraints, { panelSize: h2 } = panelDataHelper(i2, e2, n2);
27068
- h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || FK(e2, s2) : h2 < f2 ? FK(e2, f2) : h2 > d2 && FK(e2, d2));
27240
+ h2 != null && (o2 && c2 && fuzzyNumbersEqual$1(h2, a2) ? fuzzyNumbersEqual$1(a2, s2) || RK(e2, s2) : h2 < f2 ? RK(e2, f2) : h2 > d2 && RK(e2, d2));
27069
27241
  }, [
27070
- FK
27071
- ]), LK = (0, import_react.useCallback)((e2, t2) => {
27242
+ RK
27243
+ ]), BK = (0, import_react.useCallback)((e2, t2) => {
27072
27244
  let { direction: n2 } = U.current, { layout: i2 } = K.current;
27073
27245
  if (!y.current) return;
27074
27246
  let a2 = getResizeHandleElement(e2, y.current);
@@ -27080,14 +27252,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27080
27252
  initialCursorPosition: o2,
27081
27253
  initialLayout: i2
27082
27254
  });
27083
- }, []), RK = (0, import_react.useCallback)(() => {
27255
+ }, []), VK = (0, import_react.useCallback)(() => {
27084
27256
  w(null);
27085
- }, []), zK = (0, import_react.useCallback)((e2) => {
27257
+ }, []), HK = (0, import_react.useCallback)((e2) => {
27086
27258
  let { panelDataArray: t2 } = K.current, n2 = findPanelDataIndex(t2, e2);
27087
27259
  n2 >= 0 && (t2.splice(n2, 1), delete M.current[e2.id], K.current.panelDataArrayChanged = true, A());
27088
27260
  }, [
27089
27261
  A
27090
- ]), BK = (0, import_react.useMemo)(() => ({
27262
+ ]), UK = (0, import_react.useMemo)(() => ({
27091
27263
  collapsePanel: q,
27092
27264
  direction: i,
27093
27265
  dragState: S,
@@ -27095,15 +27267,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27095
27267
  getPanelSize: Q,
27096
27268
  getPanelStyle: $,
27097
27269
  groupId: v,
27098
- isPanelCollapsed: jK,
27099
- isPanelExpanded: MK,
27100
- reevaluatePanelConstraints: IK,
27101
- registerPanel: NK,
27102
- registerResizeHandle: PK,
27103
- resizePanel: FK,
27104
- startDragging: LK,
27105
- stopDragging: RK,
27106
- unregisterPanel: zK,
27270
+ isPanelCollapsed: PK,
27271
+ isPanelExpanded: FK,
27272
+ reevaluatePanelConstraints: zK,
27273
+ registerPanel: IK,
27274
+ registerResizeHandle: LK,
27275
+ resizePanel: RK,
27276
+ startDragging: BK,
27277
+ stopDragging: VK,
27278
+ unregisterPanel: HK,
27107
27279
  panelGroupElement: y.current
27108
27280
  }), [
27109
27281
  q,
@@ -27113,16 +27285,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27113
27285
  Q,
27114
27286
  $,
27115
27287
  v,
27116
- jK,
27117
- MK,
27118
- IK,
27119
- NK,
27120
27288
  PK,
27121
27289
  FK,
27290
+ zK,
27291
+ IK,
27122
27292
  LK,
27123
27293
  RK,
27124
- zK
27125
- ]), VK = {
27294
+ BK,
27295
+ VK,
27296
+ HK
27297
+ ]), WK = {
27126
27298
  display: "flex",
27127
27299
  flexDirection: i === "horizontal" ? "row" : "column",
27128
27300
  height: "100%",
@@ -27130,7 +27302,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27130
27302
  width: "100%"
27131
27303
  };
27132
27304
  return (0, import_react.createElement)(PanelGroupContext.Provider, {
27133
- value: BK
27305
+ value: UK
27134
27306
  }, (0, import_react.createElement)(h, {
27135
27307
  ..._,
27136
27308
  children: t,
@@ -27138,7 +27310,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27138
27310
  id: o,
27139
27311
  ref: y,
27140
27312
  style: {
27141
- ...VK,
27313
+ ...WK,
27142
27314
  ...f
27143
27315
  },
27144
27316
  [DATA_ATTRIBUTES.group]: "",
@@ -27215,31 +27387,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27215
27387
  });
27216
27388
  let O = (0, import_react.useContext)(PanelGroupContext);
27217
27389
  if (O === null) throw Error("PanelResizeHandle components must be rendered within a PanelGroup container");
27218
- let { direction: A, groupId: M, registerResizeHandle: I, startDragging: z, stopDragging: U, panelGroupElement: K } = O, q = useUniqueId(a), [J, Q] = (0, import_react.useState)("inactive"), [$, jK] = (0, import_react.useState)(false), [MK, NK] = (0, import_react.useState)(null), PK = (0, import_react.useRef)({
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)({
27219
27391
  state: J
27220
27392
  });
27221
27393
  useIsomorphicLayoutEffect$1(() => {
27222
- PK.current.state = J;
27394
+ LK.current.state = J;
27223
27395
  }), (0, import_react.useEffect)(() => {
27224
- if (n) NK(null);
27396
+ if (n) IK(null);
27225
27397
  else {
27226
27398
  let e2 = I(q);
27227
- NK(() => e2);
27399
+ IK(() => e2);
27228
27400
  }
27229
27401
  }, [
27230
27402
  n,
27231
27403
  q,
27232
27404
  I
27233
27405
  ]);
27234
- let FK = (i == null ? void 0 : i.coarse) ?? 15, IK = (i == null ? void 0 : i.fine) ?? 5;
27406
+ let RK = (i == null ? void 0 : i.coarse) ?? 15, zK = (i == null ? void 0 : i.fine) ?? 5;
27235
27407
  (0, import_react.useEffect)(() => {
27236
- if (n || MK == null) return;
27408
+ if (n || FK == null) return;
27237
27409
  let e2 = w.current;
27238
27410
  assert(e2, "Element ref not attached");
27239
27411
  let t2 = false;
27240
27412
  return registerResizeHandle(q, e2, A, {
27241
- coarse: FK,
27242
- fine: IK
27413
+ coarse: RK,
27414
+ fine: zK
27243
27415
  }, (e3, n2, i2) => {
27244
27416
  if (!n2) {
27245
27417
  Q("inactive");
@@ -27253,8 +27425,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27253
27425
  break;
27254
27426
  }
27255
27427
  case "move": {
27256
- let { state: e4 } = PK.current;
27257
- t2 = true, e4 !== "drag" && Q("hover"), assert(i2, 'Expected event to be defined for "move" action'), MK(i2);
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);
27258
27430
  break;
27259
27431
  }
27260
27432
  case "up": {
@@ -27266,22 +27438,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27266
27438
  }
27267
27439
  });
27268
27440
  }, [
27269
- FK,
27441
+ RK,
27270
27442
  A,
27271
27443
  n,
27272
- IK,
27444
+ zK,
27273
27445
  I,
27274
27446
  q,
27275
- MK,
27447
+ FK,
27276
27448
  z,
27277
27449
  U
27278
27450
  ]), useWindowSplitterResizeHandlerBehavior({
27279
27451
  disabled: n,
27280
27452
  handleId: q,
27281
- resizeHandler: MK,
27453
+ resizeHandler: FK,
27282
27454
  panelGroupElement: K
27283
27455
  });
27284
- let LK = {
27456
+ let BK = {
27285
27457
  touchAction: "none",
27286
27458
  userSelect: "none"
27287
27459
  };
@@ -27291,15 +27463,15 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27291
27463
  className: t,
27292
27464
  id: a,
27293
27465
  onBlur: () => {
27294
- jK(false), o == null ? void 0 : o();
27466
+ PK(false), o == null ? void 0 : o();
27295
27467
  },
27296
27468
  onFocus: () => {
27297
- jK(true), d == null ? void 0 : d();
27469
+ PK(true), d == null ? void 0 : d();
27298
27470
  },
27299
27471
  ref: w,
27300
27472
  role: "separator",
27301
27473
  style: {
27302
- ...LK,
27474
+ ...BK,
27303
27475
  ..._
27304
27476
  },
27305
27477
  tabIndex: v,
@@ -27598,7 +27770,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27598
27770
  }, [
27599
27771
  h
27600
27772
  ]), k(() => {
27601
- U(6, MK);
27773
+ U(6, FK);
27602
27774
  }, []);
27603
27775
  let K = import_react.useMemo(() => ({
27604
27776
  subscribe: (e2) => (s.current.add(e2), () => s.current.delete(e2)),
@@ -27607,7 +27779,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27607
27779
  var _a2;
27608
27780
  var a2, o2, s2;
27609
27781
  if (!Object.is(n.current[e2], t2)) {
27610
- if (n.current[e2] = t2, e2 === "search") jK(), Q(), U(1, $);
27782
+ if (n.current[e2] = t2, e2 === "search") PK(), Q(), U(1, $);
27611
27783
  else if (e2 === "value") {
27612
27784
  if (document.activeElement.hasAttribute("cmdk-input") || document.activeElement.hasAttribute("cmdk-root")) {
27613
27785
  let e3 = document.getElementById(I);
@@ -27615,8 +27787,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27615
27787
  }
27616
27788
  if (U(7, () => {
27617
27789
  var _a3;
27618
- n.current.selectedItemId = (_a3 = NK()) == null ? void 0 : _a3.id, K.emit();
27619
- }), i2 || U(5, MK), ((_a2 = c.current) == null ? void 0 : _a2.value) !== void 0) {
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) {
27620
27792
  let e3 = t2 ?? "";
27621
27793
  (s2 = (o2 = c.current).onValueChange) == null || s2.call(o2, e3);
27622
27794
  return;
@@ -27641,12 +27813,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27641
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([
27642
27814
  e2
27643
27815
  ]))), U(3, () => {
27644
- jK(), Q(), n.current.value || $(), K.emit();
27816
+ PK(), Q(), n.current.value || $(), K.emit();
27645
27817
  }), () => {
27646
27818
  o.current.delete(e2), i.current.delete(e2), n.current.filtered.items.delete(e2);
27647
- let t3 = NK();
27819
+ let t3 = IK();
27648
27820
  U(4, () => {
27649
- jK(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
27821
+ PK(), (t3 == null ? void 0 : t3.getAttribute("id")) === e2 && $(), K.emit();
27650
27822
  });
27651
27823
  }),
27652
27824
  group: (e2) => (a.current.has(e2) || a.current.set(e2, /* @__PURE__ */ new Set()), () => {
@@ -27679,7 +27851,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27679
27851
  ]);
27680
27852
  });
27681
27853
  let i2 = z.current;
27682
- PK().sort((t3, n2) => {
27854
+ LK().sort((t3, n2) => {
27683
27855
  let i3 = t3.getAttribute("id"), a2 = n2.getAttribute("id");
27684
27856
  return (e2.get(a2) ?? 0) - (e2.get(i3) ?? 0);
27685
27857
  }).forEach((e3) => {
@@ -27693,10 +27865,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27693
27865
  }
27694
27866
  function $() {
27695
27867
  var _a2;
27696
- let e2 = (_a2 = PK().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
27868
+ let e2 = (_a2 = LK().find((e3) => e3.getAttribute("aria-disabled") !== "true")) == null ? void 0 : _a2.getAttribute(T);
27697
27869
  K.setState("value", e2 || void 0);
27698
27870
  }
27699
- function jK() {
27871
+ function PK() {
27700
27872
  var _a2, _b;
27701
27873
  if (!n.current.search || c.current.shouldFilter === false) {
27702
27874
  n.current.filtered.count = i.current.size;
@@ -27714,43 +27886,43 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27714
27886
  }
27715
27887
  n.current.filtered.count = e2;
27716
27888
  }
27717
- function MK() {
27889
+ function FK() {
27718
27890
  var _a2, _b;
27719
27891
  var e2;
27720
- let t2 = NK();
27892
+ let t2 = IK();
27721
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({
27722
27894
  block: "nearest"
27723
27895
  })), t2.scrollIntoView({
27724
27896
  block: "nearest"
27725
27897
  }));
27726
27898
  }
27727
- function NK() {
27899
+ function IK() {
27728
27900
  var _a2;
27729
27901
  return (_a2 = z.current) == null ? void 0 : _a2.querySelector(`${le}[aria-selected="true"]`);
27730
27902
  }
27731
- function PK() {
27903
+ function LK() {
27732
27904
  var _a2;
27733
27905
  return Array.from(((_a2 = z.current) == null ? void 0 : _a2.querySelectorAll(ce$1)) || []);
27734
27906
  }
27735
- function FK(e2) {
27736
- let t2 = PK()[e2];
27907
+ function RK(e2) {
27908
+ let t2 = LK()[e2];
27737
27909
  t2 && K.setState("value", t2.getAttribute(T));
27738
27910
  }
27739
- function IK(e2) {
27911
+ function zK(e2) {
27740
27912
  var t2;
27741
- let n2 = NK(), i2 = PK(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
27913
+ let n2 = IK(), i2 = LK(), a2 = i2.findIndex((e3) => e3 === n2), o2 = i2[a2 + e2];
27742
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));
27743
27915
  }
27744
- function LK(e2) {
27916
+ function BK(e2) {
27745
27917
  var _a2;
27746
- let t2 = (_a2 = NK()) == null ? void 0 : _a2.closest(N$1), n2;
27918
+ let t2 = (_a2 = IK()) == null ? void 0 : _a2.closest(N$1), n2;
27747
27919
  for (; t2 && !n2; ) t2 = e2 > 0 ? we(t2, N$1) : De(t2, N$1), n2 = t2 == null ? void 0 : t2.querySelector(ce$1);
27748
- n2 ? K.setState("value", n2.getAttribute(T)) : IK(e2);
27920
+ n2 ? K.setState("value", n2.getAttribute(T)) : zK(e2);
27749
27921
  }
27750
- let RK = () => FK(PK().length - 1), zK = (e2) => {
27751
- e2.preventDefault(), e2.metaKey ? RK() : e2.altKey ? LK(1) : IK(1);
27752
- }, BK = (e2) => {
27753
- e2.preventDefault(), e2.metaKey ? FK(0) : e2.altKey ? LK(-1) : IK(-1);
27922
+ let VK = () => RK(LK().length - 1), HK = (e2) => {
27923
+ e2.preventDefault(), e2.metaKey ? VK() : e2.altKey ? BK(1) : zK(1);
27924
+ }, UK = (e2) => {
27925
+ e2.preventDefault(), e2.metaKey ? RK(0) : e2.altKey ? BK(-1) : zK(-1);
27754
27926
  };
27755
27927
  return import_react.createElement(Primitive.div, {
27756
27928
  ref: t,
@@ -27764,27 +27936,27 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
27764
27936
  if (!(e2.defaultPrevented || n2)) switch (e2.key) {
27765
27937
  case "n":
27766
27938
  case "j":
27767
- E && e2.ctrlKey && zK(e2);
27939
+ E && e2.ctrlKey && HK(e2);
27768
27940
  break;
27769
27941
  case "ArrowDown":
27770
- zK(e2);
27942
+ HK(e2);
27771
27943
  break;
27772
27944
  case "p":
27773
27945
  case "k":
27774
- E && e2.ctrlKey && BK(e2);
27946
+ E && e2.ctrlKey && UK(e2);
27775
27947
  break;
27776
27948
  case "ArrowUp":
27777
- BK(e2);
27949
+ UK(e2);
27778
27950
  break;
27779
27951
  case "Home":
27780
- e2.preventDefault(), FK(0);
27952
+ e2.preventDefault(), RK(0);
27781
27953
  break;
27782
27954
  case "End":
27783
- e2.preventDefault(), RK();
27955
+ e2.preventDefault(), VK();
27784
27956
  break;
27785
27957
  case "Enter": {
27786
27958
  e2.preventDefault();
27787
- let t3 = NK();
27959
+ let t3 = IK();
27788
27960
  if (t3) {
27789
27961
  let e3 = new Event(Z);
27790
27962
  t3.dispatchEvent(e3);
@@ -28060,7 +28232,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28060
28232
  function words(e) {
28061
28233
  return e.toLowerCase().match(/[\da-z]+/g) || [];
28062
28234
  }
28063
- function smartMatch(e, t) {
28235
+ smartMatch = function(e, t) {
28064
28236
  let n = words(e);
28065
28237
  if (n.length === 0) return true;
28066
28238
  let i = Array.isArray(t) ? t : [
@@ -28068,7 +28240,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28068
28240
  ], a = [];
28069
28241
  for (let e2 of i) e2 && a.push(...words(e2));
28070
28242
  return n.every((e2) => a.some((t2) => t2.startsWith(e2)));
28071
- }
28243
+ };
28072
28244
  function smartMatchFilter(e, t, n) {
28073
28245
  return smartMatch(t, e) ? 1 : n && smartMatch(t, n) ? 0.8 : 0;
28074
28246
  }
@@ -28193,153 +28365,153 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28193
28365
  Combobox = (e) => {
28194
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;
28195
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);
28196
- let Q = M === void 0 ? false : M, $ = I === void 0 ? true : I, jK = z === void 0 ? "Search..." : z, MK = U === void 0 ? "Nothing found." : U, NK = K === void 0 ? false : K, PK = q === void 0 ? false : q, FK = s ?? false, IK;
28197
- t[24] !== v || t[25] !== w || t[26] !== FK ? (IK = {
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;
28369
+ t[24] !== v || t[25] !== w || t[26] !== RK ? (zK = {
28198
28370
  prop: w,
28199
- defaultProp: FK,
28371
+ defaultProp: RK,
28200
28372
  onChange: v
28201
- }, t[24] = v, t[25] = w, t[26] = FK, t[27] = IK) : IK = t[27];
28202
- let [LK, RK] = useControllableState(IK), zK = LK === void 0 ? false : LK, BK;
28203
- t[28] === S ? BK = t[29] : (BK = (e2) => {
28373
+ }, t[24] = v, t[25] = w, t[26] = RK, t[27] = zK) : zK = t[27];
28374
+ let [BK, VK] = useControllableState(zK), HK = BK === void 0 ? false : BK, UK;
28375
+ t[28] === S ? UK = t[29] : (UK = (e2) => {
28204
28376
  S == null ? void 0 : S(e2);
28205
- }, t[28] = S, t[29] = BK);
28206
- let VK;
28207
- t[30] !== c || t[31] !== BK || t[32] !== J ? (VK = {
28377
+ }, t[28] = S, t[29] = UK);
28378
+ let WK;
28379
+ t[30] !== c || t[31] !== UK || t[32] !== J ? (WK = {
28208
28380
  prop: J,
28209
28381
  defaultProp: c,
28210
- onChange: BK
28211
- }, t[30] = c, t[31] = BK, t[32] = J, t[33] = VK) : VK = t[33];
28212
- let [HK, UK] = useControllableState(VK), WK;
28213
- t[34] === HK ? WK = t[35] : (WK = (e2) => Array.isArray(HK) ? HK.includes(e2) : HK === e2, t[34] = HK, t[35] = WK);
28214
- let GK = WK, KK;
28215
- t[36] !== _ || t[37] !== Q || t[38] !== RK || t[39] !== UK || t[40] !== HK ? (KK = (e2) => {
28382
+ onChange: UK
28383
+ }, t[30] = c, t[31] = UK, t[32] = J, t[33] = WK) : WK = t[33];
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) => {
28216
28388
  let t2 = e2;
28217
- if (Q) if (Array.isArray(HK)) if (HK.includes(t2)) {
28218
- let n2 = HK.filter((t3) => t3 !== e2);
28389
+ if (Q) if (Array.isArray(GK)) if (GK.includes(t2)) {
28390
+ let n2 = GK.filter((t3) => t3 !== e2);
28219
28391
  t2 = n2.length > 0 ? n2 : [];
28220
28392
  } else t2 = [
28221
- ...HK,
28393
+ ...GK,
28222
28394
  t2
28223
28395
  ];
28224
28396
  else t2 = [
28225
28397
  t2
28226
28398
  ];
28227
- else HK === e2 && (t2 = null);
28228
- UK(t2), (_ ?? Q) || RK(false);
28229
- }, t[36] = _, t[37] = Q, t[38] = RK, t[39] = UK, t[40] = HK, t[41] = KK) : KK = t[41];
28230
- let qK = KK, JK;
28231
- t[42] !== NK || t[43] !== d || t[44] !== Q || t[45] !== E || t[46] !== HK ? (JK = () => Q && NK && E ? E : HK == null ? E ?? "--" : Array.isArray(HK) ? HK.length === 0 ? E ?? "--" : HK.length === 1 && d !== void 0 ? d(HK[0]) : `${HK.length} selected` : d === void 0 ? E ?? "--" : d(HK), t[42] = NK, t[43] = d, t[44] = Q, t[45] = E, t[46] = HK, t[47] = JK) : JK = t[47];
28232
- let YK = JK, XK;
28233
- t[48] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (XK = cn("relative"), t[48] = XK) : XK = t[48];
28234
- let ZK;
28235
- t[49] !== PK || t[50] !== RK ? (ZK = (e2) => {
28236
- PK && e2 || RK(e2);
28237
- }, t[49] = PK, t[50] = RK, t[51] = ZK) : ZK = t[51];
28238
- let QK = PK && "cursor-not-allowed opacity-50", $K;
28239
- t[52] !== o || t[53] !== QK ? ($K = 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", QK, o), t[52] = o, t[53] = QK, t[54] = $K) : $K = t[54];
28399
+ else GK === e2 && (t2 = null);
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];
28240
28406
  let tq;
28241
- t[55] === YK ? tq = t[56] : (tq = YK(), t[55] = YK, t[56] = tq);
28242
- let nq;
28243
- t[57] === tq ? nq = t[58] : (nq = (0, import_jsx_runtime.jsx)("span", {
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];
28412
+ let aq;
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", {
28244
28416
  className: "truncate flex-1 min-w-0",
28245
- children: tq
28246
- }), t[57] = tq, t[58] = nq);
28247
- let iq;
28248
- t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (iq = (0, import_jsx_runtime.jsx)(ChevronDown, {
28417
+ children: aq
28418
+ }), t[57] = aq, t[58] = sq);
28419
+ let cq;
28420
+ t[59] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (cq = (0, import_jsx_runtime.jsx)(ChevronDown, {
28249
28421
  className: "ml-3 w-4 h-4 opacity-50 shrink-0"
28250
- }), t[59] = iq) : iq = t[59];
28251
- let aq;
28252
- t[60] !== PK || t[61] !== h || t[62] !== zK || t[63] !== $K || t[64] !== nq ? (aq = (0, import_jsx_runtime.jsx)(PopoverTrigger, {
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, {
28253
28425
  asChild: true,
28254
28426
  children: (0, import_jsx_runtime.jsxs)("button", {
28255
28427
  id: h,
28256
28428
  type: "button",
28257
- className: $K,
28258
- "aria-expanded": zK,
28259
- "aria-disabled": PK,
28429
+ className: iq,
28430
+ "aria-expanded": HK,
28431
+ "aria-disabled": LK,
28260
28432
  children: [
28261
- nq,
28262
- iq
28433
+ sq,
28434
+ cq
28263
28435
  ]
28264
28436
  })
28265
- }), t[60] = PK, t[61] = h, t[62] = zK, t[63] = $K, t[64] = nq, t[65] = aq) : aq = t[65];
28266
- let oq;
28267
- t[66] !== jK || t[67] !== y || t[68] !== A ? (oq = (0, import_jsx_runtime.jsx)(CommandInput, {
28268
- placeholder: jK,
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,
28269
28441
  rootClassName: "px-1 h-8",
28270
28442
  autoFocus: true,
28271
28443
  value: A,
28272
28444
  onValueChange: y
28273
- }), t[66] = jK, t[67] = y, t[68] = A, t[69] = oq) : oq = t[69];
28274
- let sq;
28275
- t[70] === MK ? sq = t[71] : (sq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28276
- children: MK
28277
- }), t[70] = MK, t[71] = sq);
28278
- let cq;
28279
- t[72] !== qK || t[73] !== GK ? (cq = {
28280
- isSelected: GK,
28281
- onSelect: qK
28282
- }, t[72] = qK, t[73] = GK, t[74] = cq) : cq = t[74];
28283
- let lq;
28284
- t[75] !== n || t[76] !== cq ? (lq = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28285
- value: cq,
28445
+ }), t[66] = PK, t[67] = y, t[68] = A, t[69] = uq) : uq = t[69];
28446
+ let dq;
28447
+ t[70] === FK ? dq = t[71] : (dq = (0, import_jsx_runtime.jsx)(CommandEmpty, {
28448
+ children: FK
28449
+ }), t[70] = FK, t[71] = dq);
28450
+ let fq;
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];
28455
+ let pq;
28456
+ t[75] !== n || t[76] !== fq ? (pq = (0, import_jsx_runtime.jsx)(ComboboxContext, {
28457
+ value: fq,
28286
28458
  children: n
28287
- }), t[75] = n, t[76] = cq, t[77] = lq) : lq = t[77];
28288
- let uq;
28289
- t[78] !== sq || t[79] !== lq ? (uq = (0, import_jsx_runtime.jsxs)(CommandList, {
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, {
28290
28462
  className: "max-h-60 py-.5",
28291
28463
  children: [
28292
- sq,
28293
- lq
28464
+ dq,
28465
+ pq
28294
28466
  ]
28295
- }), t[78] = sq, t[79] = lq, t[80] = uq) : uq = t[80];
28296
- let dq;
28297
- t[81] !== f || t[82] !== $ || t[83] !== oq || t[84] !== uq ? (dq = (0, import_jsx_runtime.jsx)(PopoverContent, {
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, {
28298
28470
  className: "w-full min-w-(--radix-popover-trigger-width) p-0",
28299
28471
  align: "start",
28300
28472
  children: (0, import_jsx_runtime.jsxs)(Command, {
28301
28473
  filter: f,
28302
28474
  shouldFilter: $,
28303
28475
  children: [
28304
- oq,
28305
- uq
28476
+ uq,
28477
+ mq
28306
28478
  ]
28307
28479
  })
28308
- }), t[81] = f, t[82] = $, t[83] = oq, t[84] = uq, t[85] = dq) : dq = t[85];
28309
- let fq;
28310
- t[86] !== zK || t[87] !== ZK || t[88] !== aq || t[89] !== dq ? (fq = (0, import_jsx_runtime.jsxs)(Popover, {
28311
- open: zK,
28312
- onOpenChange: ZK,
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, {
28483
+ open: HK,
28484
+ onOpenChange: tq,
28313
28485
  children: [
28314
- aq,
28315
- dq
28486
+ lq,
28487
+ hq
28316
28488
  ]
28317
- }), t[86] = zK, t[87] = ZK, t[88] = aq, t[89] = dq, t[90] = fq) : fq = t[90];
28318
- let pq;
28319
- t[91] !== NK || t[92] !== i || t[93] !== PK || t[94] !== d || t[95] !== qK || t[96] !== Q || t[97] !== HK ? (pq = Q && NK && (0, import_jsx_runtime.jsx)("div", {
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", {
28320
28492
  className: cn("flex flex-col gap-1 items-start", i),
28321
- children: Array.isArray(HK) && HK.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28493
+ children: Array.isArray(GK) && GK.map((e2) => e2 == null ? null : (0, import_jsx_runtime.jsxs)(Badge, {
28322
28494
  variant: "secondary",
28323
28495
  children: [
28324
28496
  (d == null ? void 0 : d(e2)) ?? String(e2),
28325
28497
  (0, import_jsx_runtime.jsx)(CircleX, {
28326
28498
  onClick: () => {
28327
- PK || qK(e2);
28499
+ LK || ZK(e2);
28328
28500
  },
28329
- className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", PK && "pointer-events-none")
28501
+ className: cn("w-3 h-3 opacity-50 hover:opacity-100 ml-1 cursor-pointer", LK && "pointer-events-none")
28330
28502
  })
28331
28503
  ]
28332
28504
  }, String(e2)))
28333
- }), t[91] = NK, t[92] = i, t[93] = PK, t[94] = d, t[95] = qK, t[96] = Q, t[97] = HK, t[98] = pq) : pq = t[98];
28334
- let mq;
28335
- return t[99] !== O || t[100] !== fq || t[101] !== pq ? (mq = (0, import_jsx_runtime.jsxs)("div", {
28336
- className: XK,
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,
28337
28509
  ...O,
28338
28510
  children: [
28339
- fq,
28340
- pq
28511
+ gq,
28512
+ _q
28341
28513
  ]
28342
- }), t[99] = O, t[100] = fq, t[101] = pq, t[102] = mq) : mq = t[102], mq;
28514
+ }), t[99] = O, t[100] = gq, t[101] = _q, t[102] = vq) : vq = t[102], vq;
28343
28515
  };
28344
28516
  ComboboxItem = import_react.forwardRef((e, t) => {
28345
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), _;
@@ -28424,7 +28596,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28424
28596
  let t = (0, import_compiler_runtime$28.c)(8), n, i;
28425
28597
  t[0] === e ? (n = t[1], i = t[2]) : ({ className: n, ...i } = e, t[0] = e, t[1] = n, t[2] = i);
28426
28598
  let a;
28427
- t[3] === n ? a = t[4] : (a = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$9), t[3] = n, t[4] = a);
28599
+ t[3] === n ? a = t[4] : (a = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$8), t[3] = n, t[4] = a);
28428
28600
  let o;
28429
28601
  return t[5] !== i || t[6] !== a ? (o = (0, import_jsx_runtime.jsx)($40825cdb76e74f70$export$336ab7fa954c4b5f, {
28430
28602
  className: a,
@@ -28477,7 +28649,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28477
28649
  ]
28478
28650
  }), t[15] = s, t[16] = c, t[17] = d, t[18] = h, t[19] = _, t[20] = v) : v = t[20], v;
28479
28651
  };
28480
- function _temp$9(e) {
28652
+ function _temp$8(e) {
28481
28653
  return cn("type-literal:px-0 inline rounded p-0.5 caret-transparent outline-solid outline-0", "data-placeholder:text-muted-foreground", "data-disabled:cursor-not-allowed data-disabled:opacity-50", "data-focused:bg-accent data-focused:text-accent-foreground focus:bg-accent focus:text-accent-foreground", "data-invalid:data-focused:bg-destructive data-invalid:data-focused:data-placeholder:text-destructive-foreground data-invalid:data-focused:text-destructive-foreground data-invalid:data-placeholder:text-destructive data-invalid:text-destructive", e);
28482
28654
  }
28483
28655
  function _temp2$6(e) {
@@ -28492,7 +28664,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28492
28664
  let t = (0, import_compiler_runtime$27.c)(10), n, i, a;
28493
28665
  t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ className: n, offset: a, ...i } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
28494
28666
  let o = a === void 0 ? 4 : a, s;
28495
- t[4] === n ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$8), t[4] = n, t[5] = s);
28667
+ t[4] === n ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$7), t[4] = n, t[5] = s);
28496
28668
  let c;
28497
28669
  return t[6] !== o || t[7] !== i || t[8] !== s ? (c = (0, import_jsx_runtime.jsx)($07b14b47974efb58$export$5b6b19405a83ff9d, {
28498
28670
  offset: o,
@@ -28500,7 +28672,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28500
28672
  ...i
28501
28673
  }), t[6] = o, t[7] = i, t[8] = s, t[9] = c) : c = t[9], c;
28502
28674
  };
28503
- function _temp$8(e) {
28675
+ function _temp$7(e) {
28504
28676
  return cn("z-50 rounded-md border bg-popover text-popover-foreground shadow-md outline-hidden", "data-entering:animate-in data-entering:fade-in-0 data-entering:zoom-in-95", "data-exiting:animate-out data-exiting:fade-out-0 data-exiting:zoom-out-95", "data-[placement=bottom]:slide-in-from-top-2 data-[placement=left]:slide-in-from-right-2 data-[placement=right]:slide-in-from-left-2 data-[placement=top]:slide-in-from-bottom-2", e);
28505
28677
  }
28506
28678
  var import_compiler_runtime$26 = require_compiler_runtime(), CalendarHeading = (e) => {
@@ -28605,7 +28777,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28605
28777
  let t = (0, import_compiler_runtime$26.c)(14), n, i, a;
28606
28778
  t[0] === e ? (n = t[1], i = t[2], a = t[3]) : ({ errorMessage: i, className: n, ...a } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = a);
28607
28779
  let o;
28608
- t[4] === n ? o = t[5] : (o = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$7), t[4] = n, t[5] = o);
28780
+ t[4] === n ? o = t[5] : (o = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp$6), t[4] = n, t[5] = o);
28609
28781
  let s;
28610
28782
  t[6] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (s = (0, import_jsx_runtime.jsx)(CalendarHeading, {}), t[6] = s) : s = t[6];
28611
28783
  let c;
@@ -28646,7 +28818,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28646
28818
  t[7] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (c = (0, import_jsx_runtime.jsxs)(CalendarGrid, {
28647
28819
  children: [
28648
28820
  (0, import_jsx_runtime.jsx)(CalendarGridHeader, {
28649
- children: _temp5$1
28821
+ children: _temp5$2
28650
28822
  }),
28651
28823
  (0, import_jsx_runtime.jsx)(CalendarGridBody, {
28652
28824
  children: _temp6$1
@@ -28670,7 +28842,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28670
28842
  ]
28671
28843
  }), t[10] = a, t[11] = o, t[12] = d, t[13] = f) : f = t[13], f;
28672
28844
  };
28673
- function _temp$7(e) {
28845
+ function _temp$6(e) {
28674
28846
  return cn("w-fit", e);
28675
28847
  }
28676
28848
  function _temp2$5(e) {
@@ -28686,7 +28858,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28686
28858
  function _temp4$2(e) {
28687
28859
  return cn("w-fit", e);
28688
28860
  }
28689
- function _temp5$1(e) {
28861
+ function _temp5$2(e) {
28690
28862
  return (0, import_jsx_runtime.jsx)(CalendarHeaderCell, {
28691
28863
  children: e
28692
28864
  });
@@ -28702,7 +28874,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28702
28874
  let t = (0, import_compiler_runtime$25.c)(14), n, i, o;
28703
28875
  t[0] === e ? (n = t[1], i = t[2], o = t[3]) : ({ className: n, popoverClassName: i, ...o } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o);
28704
28876
  let s;
28705
- t[4] === i ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(i, _temp$6), t[4] = i, t[5] = s);
28877
+ t[4] === i ? s = t[5] : (s = $64fa3d84918910a7$export$c245e6201fed2f75(i, _temp$5), t[4] = i, t[5] = s);
28706
28878
  let c;
28707
28879
  t[6] === n ? c = t[7] : (c = cn("flex w-full flex-col space-y-4 outline-hidden sm:flex-row sm:space-x-4 sm:space-y-0", n), t[6] = n, t[7] = c);
28708
28880
  let d;
@@ -28803,7 +28975,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28803
28975
  let t = (0, import_compiler_runtime$25.c)(28), n, i, o, s, d;
28804
28976
  t[0] === e ? (n = t[1], i = t[2], o = t[3], s = t[4], d = t[5]) : ({ label: s, description: i, errorMessage: o, className: n, ...d } = e, t[0] = e, t[1] = n, t[2] = i, t[3] = o, t[4] = s, t[5] = d);
28805
28977
  let [f, h] = (0, import_react.useState)(false), _;
28806
- t[6] === n ? _ = t[7] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp5), t[6] = n, t[7] = _);
28978
+ t[6] === n ? _ = t[7] : (_ = $64fa3d84918910a7$export$c245e6201fed2f75(n, _temp5$1), t[6] = n, t[7] = _);
28807
28979
  let v;
28808
28980
  t[8] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (v = (e2) => {
28809
28981
  h(e2);
@@ -28891,7 +29063,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28891
29063
  ]
28892
29064
  }), t[21] = f, t[22] = d, t[23] = _, t[24] = y, t[25] = A, t[26] = M, t[27] = U) : U = t[27], U;
28893
29065
  };
28894
- function _temp$6(e) {
29066
+ function _temp$5(e) {
28895
29067
  return cn("w-auto p-3", e);
28896
29068
  }
28897
29069
  function _temp2$4(e) {
@@ -28907,7 +29079,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28907
29079
  date: e
28908
29080
  });
28909
29081
  }
28910
- function _temp5(e) {
29082
+ function _temp5$1(e) {
28911
29083
  return cn("group flex flex-col gap-2", e);
28912
29084
  }
28913
29085
  function _temp6(e) {
@@ -28991,7 +29163,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
28991
29163
  let v = _, y;
28992
29164
  t[3] !== n || t[4] !== a ? (y = (e2) => {
28993
29165
  let t2 = parsePastedDate(n, e2.clipboardData.getData("text"));
28994
- t2 && (e2.preventDefault(), a(t2), h(t2), d(_temp$5));
29166
+ t2 && (e2.preventDefault(), a(t2), h(t2), d(_temp$4));
28995
29167
  }, t[3] = n, t[4] = a, t[5] = y) : y = t[5];
28996
29168
  let S = y, w;
28997
29169
  t[6] !== n || t[7] !== f ? (w = f === void 0 ? void 0 : dateToAria(n, f), t[6] = n, t[7] = f, t[8] = w) : w = t[8];
@@ -29087,14 +29259,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29087
29259
  onChange: E,
29088
29260
  className: s
29089
29261
  }, c), t[31] = s, t[32] = n, t[33] = E, t[34] = c, t[35] = A, t[36] = M) : M = t[36];
29090
- let z;
29091
- return t[37] !== S || t[38] !== M ? (z = (0, import_jsx_runtime.jsx)("div", {
29262
+ let I;
29263
+ return t[37] !== S || t[38] !== M ? (I = (0, import_jsx_runtime.jsx)("div", {
29092
29264
  onPasteCapture: S,
29093
29265
  className: "contents",
29094
29266
  children: M
29095
- }), t[37] = S, t[38] = M, t[39] = z) : z = t[39], z;
29267
+ }), t[37] = S, t[38] = M, t[39] = I) : I = t[39], I;
29096
29268
  };
29097
- function _temp$5(e) {
29269
+ function _temp$4(e) {
29098
29270
  return e + 1;
29099
29271
  }
29100
29272
  function _temp2$3(e) {
@@ -29449,31 +29621,31 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29449
29621
  });
29450
29622
  }
29451
29623
  const FilterPillEditor = ({ snapshot: e, table: t, calculateTopKRows: n, onClose: i, editIndex: a }) => {
29452
- 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), K = editableColumns(t), q = (t2) => {
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) => {
29453
29625
  t2.id === e.columnId && t2.operator === f && M(_);
29454
- }, J = (e2) => {
29626
+ }, q = (e2) => {
29455
29627
  if (!e2) return;
29456
29628
  let n2 = t.getColumn(e2);
29457
29629
  if (!n2) return;
29458
29630
  let i2 = columnEditableType(n2), a2 = E;
29459
- i2 !== S && (a2 = DEFAULT_OPERATOR_FOR_TYPE[i2], w(i2), O(a2), M(emptyDraftFor(i2, a2)), z(EMPTY_NUMBER_TEXT_DRAFT)), y(e2), q({
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({
29460
29632
  id: e2,
29461
29633
  operator: a2
29462
29634
  });
29463
- }, Q = (e2) => {
29635
+ }, J = (e2) => {
29464
29636
  O(e2);
29465
29637
  let t2 = emptyDraftFor(S, e2);
29466
- t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT), q({
29638
+ t2.kind !== A.kind && M(t2), z(EMPTY_NUMBER_TEXT_DRAFT), K({
29467
29639
  id: v,
29468
29640
  operator: e2
29469
29641
  });
29470
- }, $ = buildFilterValue({
29642
+ }, Q = buildFilterValue({
29471
29643
  type: S,
29472
29644
  operator: E,
29473
29645
  draft: mergeNumberTextDraft(A, I)
29474
- }), jK = $ === void 0, MK = jK ? getMissingValueMessage(S, E) : "Apply filter", NK = () => {
29475
- if (!$) return;
29476
- let e2 = $;
29646
+ }), $ = Q === void 0, PK = $ ? getMissingValueMessage(S, E) : "Apply filter", FK = () => {
29647
+ if (!Q) return;
29648
+ let e2 = Q;
29477
29649
  t.setColumnFilters((t2) => {
29478
29650
  if (a === void 0) return [
29479
29651
  {
@@ -29490,20 +29662,20 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29490
29662
  value: e2
29491
29663
  }, n2;
29492
29664
  }), i();
29493
- }, PK = () => {
29665
+ }, IK = () => {
29494
29666
  a !== void 0 && t.setColumnFilters((e2) => e2.filter((e3, t2) => t2 !== a)), i();
29495
- }, FK = !OPERATORS_WITHOUT_VALUE.has(E), IK = OPERATORS_BY_TYPE[S], LK = (0, import_react.useRef)(null), RK = (0, import_react.useRef)(null);
29667
+ }, LK = !OPERATORS_WITHOUT_VALUE.has(E), RK = OPERATORS_BY_TYPE[S], zK = (0, import_react.useRef)(null), BK = (0, import_react.useRef)(null);
29496
29668
  return (0, import_react.useEffect)(() => {
29497
29669
  var _a2, _b;
29498
- let e2 = (_a2 = LK.current) == null ? void 0 : _a2.querySelector('input, [role="spinbutton"], [role="combobox"], button');
29499
- e2 ? e2.focus() : (_b = RK.current) == null ? void 0 : _b.focus();
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();
29500
29672
  }, [
29501
29673
  S,
29502
29674
  E
29503
29675
  ]), (0, import_jsx_runtime.jsxs)("form", {
29504
29676
  className: "flex flex-row gap-4 items-end p-3",
29505
29677
  onSubmit: (e2) => {
29506
- e2.preventDefault(), NK();
29678
+ e2.preventDefault(), FK();
29507
29679
  },
29508
29680
  onKeyDownCapture: (e2) => {
29509
29681
  e2.key === "Tab" && e2.stopPropagation();
@@ -29520,11 +29692,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29520
29692
  (0, import_jsx_runtime.jsx)(Combobox, {
29521
29693
  id: o,
29522
29694
  value: v,
29523
- onValueChange: J,
29695
+ onValueChange: q,
29524
29696
  multiple: false,
29525
29697
  placeholder: "Select column\u2026",
29526
29698
  displayValue: (e2) => e2,
29527
- children: K.map((e2) => (0, import_jsx_runtime.jsx)(ComboboxItem, {
29699
+ children: U.map((e2) => (0, import_jsx_runtime.jsx)(ComboboxItem, {
29528
29700
  value: e2.id,
29529
29701
  children: e2.id
29530
29702
  }, e2.id))
@@ -29541,16 +29713,16 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29541
29713
  }),
29542
29714
  (0, import_jsx_runtime.jsxs)(Select, {
29543
29715
  value: E,
29544
- onValueChange: (e2) => Q(e2),
29716
+ onValueChange: (e2) => J(e2),
29545
29717
  children: [
29546
29718
  (0, import_jsx_runtime.jsx)(SelectTrigger, {
29547
- ref: RK,
29719
+ ref: BK,
29548
29720
  id: s,
29549
29721
  className: "h-6 mb-1 bg-transparent",
29550
29722
  children: (0, import_jsx_runtime.jsx)(SelectValue, {})
29551
29723
  }),
29552
29724
  (0, import_jsx_runtime.jsx)(SelectContent, {
29553
- children: IK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
29725
+ children: RK.map((e2) => (0, import_jsx_runtime.jsx)(SelectItem, {
29554
29726
  value: e2,
29555
29727
  children: OPERATOR_LABELS[e2]
29556
29728
  }, e2))
@@ -29559,8 +29731,8 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29559
29731
  }, S)
29560
29732
  ]
29561
29733
  }),
29562
- FK && (0, import_jsx_runtime.jsxs)("div", {
29563
- ref: LK,
29734
+ LK && (0, import_jsx_runtime.jsxs)("div", {
29735
+ ref: zK,
29564
29736
  className: "flex flex-col gap-1",
29565
29737
  children: [
29566
29738
  (0, import_jsx_runtime.jsx)("label", {
@@ -29587,14 +29759,14 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29587
29759
  className: "flex gap-1 mb-1",
29588
29760
  children: [
29589
29761
  (0, import_jsx_runtime.jsx)(Tooltip, {
29590
- content: MK,
29762
+ content: PK,
29591
29763
  children: (0, import_jsx_runtime.jsx)("span", {
29592
29764
  className: "inline-flex",
29593
29765
  children: (0, import_jsx_runtime.jsx)(Button, {
29594
29766
  type: "submit",
29595
29767
  size: "icon",
29596
29768
  variant: "ghost",
29597
- disabled: jK,
29769
+ disabled: $,
29598
29770
  className: "rounded-full text-primary hover:text-primary hover:bg-primary/10",
29599
29771
  "aria-label": "Apply filter",
29600
29772
  children: (0, import_jsx_runtime.jsx)(Check, {
@@ -29626,7 +29798,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
29626
29798
  size: "icon",
29627
29799
  variant: "ghost",
29628
29800
  className: "rounded-full text-destructive hover:text-destructive hover:bg-destructive/10",
29629
- onClick: PK,
29801
+ onClick: IK,
29630
29802
  "aria-label": "Remove filter",
29631
29803
  children: (0, import_jsx_runtime.jsx)(Trash2, {
29632
29804
  className: "h-3.5 w-3.5",
@@ -32040,6 +32212,13 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32040
32212
  hidden: t.length - n
32041
32213
  };
32042
32214
  }
32215
+ getColumnCountForDisplay = function(e, t) {
32216
+ let n = getUserColumnVisibilityCounts(e);
32217
+ return {
32218
+ totalColumns: n.hidden > 0 ? n.total : t,
32219
+ hiddenColumns: n.hidden
32220
+ };
32221
+ };
32043
32222
  const DataTablePagination = ({ table: e, tableLoading: t, showPageSizeSelector: n }) => {
32044
32223
  let { locale: i } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), s = Math.min(e.getState().pagination.pageIndex + 1, e.getPageCount()), c = e.getPageCount(), d = e.getState().pagination.pageSize, f = (e2) => {
32045
32224
  t || e2();
@@ -32434,7 +32613,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32434
32613
  if (n.length === 0) return null;
32435
32614
  let a, o;
32436
32615
  if (t[0] !== n) {
32437
- let e2 = n.reduce(_temp$4, 0);
32616
+ let e2 = n.reduce(_temp$3, 0);
32438
32617
  a = Number, o = e2.toFixed(MAX_FRACTION_DIGITS), t[0] = n, t[1] = a, t[2] = o;
32439
32618
  } else a = t[1], o = t[2];
32440
32619
  let s = a(o), c;
@@ -32455,7 +32634,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32455
32634
  locale: i
32456
32635
  }), t[2] = s, t[3] = i, t[4] = c) : c = t[4], c;
32457
32636
  };
32458
- function _temp$4(e, t) {
32637
+ function _temp$3(e, t) {
32459
32638
  return e + t;
32460
32639
  }
32461
32640
  function _temp2$2(e, t) {
@@ -32551,23 +32730,23 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32551
32730
  })
32552
32731
  ]
32553
32732
  });
32554
- let y2 = getUserColumnVisibilityCounts(s), { rowsAndColumns: w, hiddenSuffix: O } = prettifyRowColumnCount({
32733
+ let { totalColumns: y2, hiddenColumns: w } = getColumnCountForDisplay(s, t), { rowsAndColumns: O, hiddenSuffix: A } = prettifyRowColumnCount({
32555
32734
  numRows: s.getRowCount(),
32556
- totalColumns: y2.hidden > 0 ? y2.total : t,
32557
- hiddenColumns: y2.hidden,
32735
+ totalColumns: y2,
32736
+ hiddenColumns: w,
32558
32737
  locale: S
32559
32738
  });
32560
32739
  return (0, import_jsx_runtime.jsxs)("span", {
32561
32740
  className: "flex items-center gap-1",
32562
32741
  children: [
32563
32742
  (0, import_jsx_runtime.jsx)("span", {
32564
- children: w
32743
+ children: O
32565
32744
  }),
32566
- O && (0, import_jsx_runtime.jsx)("button", {
32745
+ A && (0, import_jsx_runtime.jsx)("button", {
32567
32746
  type: "button",
32568
32747
  className: "text-xs underline-offset-2 hover:underline cursor-pointer",
32569
32748
  onClick: () => _ == null ? void 0 : _(PANEL_TYPES.COLUMN_EXPLORER),
32570
- children: O
32749
+ children: A
32571
32750
  })
32572
32751
  ]
32573
32752
  });
@@ -32835,6 +33014,7 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32835
33014
  }
32836
33015
  }, downloadOptions = [
32837
33016
  FILE_TYPES.CSV,
33017
+ FILE_TYPES.TSV,
32838
33018
  FILE_TYPES.JSON,
32839
33019
  FILE_TYPES.PARQUET
32840
33020
  ], copyOptions = [
@@ -32842,7 +33022,12 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32842
33022
  FILE_TYPES.JSON,
32843
33023
  FILE_TYPES.CSV,
32844
33024
  FILE_TYPES.MARKDOWN
32845
- ], labelForDownloadFormat = (e) => {
33025
+ ], COPY_SOURCE_FORMAT = {
33026
+ csv: "csv",
33027
+ tsv: "tsv",
33028
+ json: "json",
33029
+ markdown: "json"
33030
+ }, labelForDownloadFormat = (e) => {
32846
33031
  var _a2;
32847
33032
  return ((_a2 = downloadOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
32848
33033
  }, labelForCopyFormat = (e) => {
@@ -32850,26 +33035,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32850
33035
  return ((_a2 = copyOptions.find((t) => t.format === e)) == null ? void 0 : _a2.label) ?? e;
32851
33036
  };
32852
33037
  const ExportMenu = (e) => {
32853
- let t = (0, import_compiler_runtime$8.c)(56), { locale: n } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), [i, o] = import_react.useState(false), s = useAtomValue(downloadSizeLimitAtom), c = !!(s && e.sizeBytes != null && e.sizeBytes > s.limitBytes), d = !!(s && (e.sizeBytesIsLoading || c)), f = d ? e.sizeBytesIsLoading ? "Checking download size\u2026" : s == null ? void 0 : s.unavailableMessage : "Export", _ = i ? "text-primary" : "text-muted-foreground", v;
32854
- t[0] === _ ? v = t[1] : (v = cn("print:hidden text-xs gap-1", _), t[0] = _, t[1] = v);
32855
- let y;
32856
- t[2] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (y = (0, import_jsx_runtime.jsx)(Download, {
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, {
32857
33042
  className: "w-3.5 h-3.5"
32858
- }), t[2] = y) : y = t[2];
32859
- let S;
32860
- t[3] !== d || t[4] !== v ? (S = (0, import_jsx_runtime.jsxs)(Button, {
33043
+ }), t[2] = v) : v = t[2];
33044
+ let y;
33045
+ t[3] !== c || t[4] !== _ ? (y = (0, import_jsx_runtime.jsxs)(Button, {
32861
33046
  "data-testid": "export-button",
32862
33047
  size: "xs",
32863
33048
  variant: "text",
32864
- disabled: d,
32865
- className: v,
33049
+ disabled: c,
33050
+ className: _,
32866
33051
  children: [
32867
- y,
33052
+ v,
32868
33053
  "Export"
32869
33054
  ]
32870
- }), t[3] = d, t[4] = v, t[5] = S) : S = t[5];
32871
- let O = S, A;
32872
- t[6] === e ? A = t[7] : (A = async (t2, n2) => {
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) => {
32873
33058
  let i2;
32874
33059
  try {
32875
33060
  i2 = await e.downloadAs({
@@ -32894,50 +33079,48 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32894
33079
  url: i2.url,
32895
33080
  filename: i2.filename
32896
33081
  };
32897
- }, t[6] = e, t[7] = A);
32898
- let M = A, I, z, U, K, q, J, Q, $, jK, MK, NK, PK, FK;
32899
- if (t[8] !== O || t[9] !== d || t[10] !== i || t[11] !== n || t[12] !== M || t[13] !== f) {
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) {
32900
33085
  let e2 = async (t2) => {
32901
33086
  let n2 = labelForDownloadFormat(t2);
32902
33087
  await withLoadingToast(`Preparing ${n2} export...`, async () => {
32903
- let n3 = await M(t2, () => {
33088
+ let n3 = await A(t2, () => {
32904
33089
  e2(t2);
32905
33090
  });
32906
33091
  if (!n3) return false;
32907
- let i2 = (n3.filename ?? "").trim(), a2 = `${Filenames.withoutExtension(i2) || "download"}.${t2}`, o2 = n3.url;
32908
- if (!o2.startsWith("data:")) {
32909
- let e3 = o2.includes("?") ? "&" : "?", t3 = new URLSearchParams({
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({
32910
33095
  download: "1",
32911
33096
  filename: a2
32912
33097
  });
32913
- o2 = `${o2}${e3}${t3.toString()}`;
33098
+ o3 = `${o3}${e3}${t3.toString()}`;
32914
33099
  }
32915
- return downloadByURL(o2, a2), true;
33100
+ return downloadByURL(o3, a2), true;
32916
33101
  }) && toast({
32917
33102
  title: `${n2} download started`
32918
33103
  });
32919
33104
  }, a = async (e3) => {
32920
33105
  await withLoadingToast(`Preparing ${labelForCopyFormat(e3)} for clipboard...`, async () => {
32921
- let t2 = await M(e3 === "csv" ? "csv" : "json", () => {
33106
+ let t2 = COPY_SOURCE_FORMAT[e3], n2 = await A(t2, () => {
32922
33107
  a(e3);
32923
33108
  });
32924
- if (!t2) return;
33109
+ if (!n2) return;
32925
33110
  let i2;
32926
- bb98: switch (e3) {
33111
+ bb94: switch (e3) {
32927
33112
  case "tsv":
32928
- i2 = jsonToTSV(await fetchJson(t2.url), n);
32929
- break bb98;
33113
+ case "csv":
33114
+ i2 = await fetchText(n2.url);
33115
+ break bb94;
32930
33116
  case "json": {
32931
- let e4 = await fetchJson(t2.url);
33117
+ let e4 = await fetchJson(n2.url);
32932
33118
  i2 = JSON.stringify(e4, null, 2);
32933
- break bb98;
33119
+ break bb94;
32934
33120
  }
32935
- case "csv":
32936
- i2 = await fetchText(t2.url);
32937
- break bb98;
32938
33121
  case "markdown":
32939
- i2 = jsonToMarkdown(await fetchJson(t2.url));
32940
- break bb98;
33122
+ i2 = jsonToMarkdown(await fetchJson(n2.url));
33123
+ break bb94;
32941
33124
  default:
32942
33125
  logNever(e3);
32943
33126
  return;
@@ -32947,26 +33130,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32947
33130
  });
32948
33131
  });
32949
33132
  };
32950
- z = DropdownMenu, q = false, J = i, Q = o;
32951
- let s2 = i ? false : void 0, c2 = d ? 0 : -1, h;
32952
- t[27] !== O || t[28] !== c2 ? (h = (0, import_jsx_runtime.jsx)("span", {
32953
- tabIndex: c2,
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,
32954
33137
  className: "inline-flex",
32955
- children: O
32956
- }), t[27] = O, t[28] = c2, t[29] = h) : h = t[29];
32957
- let _2;
32958
- t[30] !== d || t[31] !== h ? (_2 = (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
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, {
32959
33142
  asChild: true,
32960
- disabled: d,
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,
32961
33148
  children: h
32962
- }), t[30] = d, t[31] = h, t[32] = _2) : _2 = t[32], t[33] !== s2 || t[34] !== _2 || t[35] !== f ? ($ = (0, import_jsx_runtime.jsx)(Tooltip, {
32963
- content: f,
32964
- open: s2,
32965
- children: _2
32966
- }), t[33] = s2, t[34] = _2, t[35] = f, t[36] = $) : $ = t[36], I = DropdownMenuContent, jK = "bottom", MK = "print:hidden", t[37] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (NK = (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, {
32967
33150
  className: "text-xs text-muted-foreground",
32968
33151
  children: "Download"
32969
- }), t[37] = NK) : NK = t[37], PK = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33152
+ }), t[36] = FK) : FK = t[36], IK = downloadOptions.map((t2) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
32970
33153
  onSelect: () => {
32971
33154
  e2(t2.format);
32972
33155
  },
@@ -32987,10 +33170,10 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
32987
33170
  ]
32988
33171
  })
32989
33172
  ]
32990
- }, t2.label)), t[38] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (FK = (0, import_jsx_runtime.jsx)(DropdownMenuSeparator, {}), U = (0, import_jsx_runtime.jsx)(DropdownMenuLabel, {
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, {
32991
33174
  className: "text-xs text-muted-foreground",
32992
33175
  children: "Copy to clipboard"
32993
- }), t[38] = U, t[39] = FK) : (U = t[38], FK = t[39]), K = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
33176
+ }), t[37] = z, t[38] = LK) : (z = t[37], LK = t[38]), U = copyOptions.map((e3) => (0, import_jsx_runtime.jsxs)(DropdownMenuItem, {
32994
33177
  onSelect: async () => {
32995
33178
  try {
32996
33179
  await a(e3.format);
@@ -33019,30 +33202,30 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33019
33202
  ]
33020
33203
  })
33021
33204
  ]
33022
- }, e3.label)), t[8] = O, t[9] = d, t[10] = i, t[11] = n, t[12] = M, t[13] = f, t[14] = I, t[15] = z, t[16] = U, t[17] = K, t[18] = q, t[19] = J, t[20] = Q, t[21] = $, t[22] = jK, t[23] = MK, t[24] = NK, t[25] = PK, t[26] = FK;
33023
- } else I = t[14], z = t[15], U = t[16], K = t[17], q = t[18], J = t[19], Q = t[20], $ = t[21], jK = t[22], MK = t[23], NK = t[24], PK = t[25], FK = t[26];
33024
- let IK;
33025
- t[40] !== I || t[41] !== U || t[42] !== K || t[43] !== jK || t[44] !== MK || t[45] !== NK || t[46] !== PK || t[47] !== FK ? (IK = (0, import_jsx_runtime.jsxs)(I, {
33026
- side: jK,
33027
- className: MK,
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,
33028
33211
  children: [
33029
- NK,
33030
- PK,
33031
33212
  FK,
33032
- U,
33033
- K
33213
+ IK,
33214
+ LK,
33215
+ z,
33216
+ U
33034
33217
  ]
33035
- }), t[40] = I, t[41] = U, t[42] = K, t[43] = jK, t[44] = MK, t[45] = NK, t[46] = PK, t[47] = FK, t[48] = IK) : IK = t[48];
33036
- let LK;
33037
- return t[49] !== z || t[50] !== q || t[51] !== J || t[52] !== Q || t[53] !== $ || t[54] !== IK ? (LK = (0, import_jsx_runtime.jsxs)(z, {
33038
- modal: q,
33039
- open: J,
33040
- onOpenChange: Q,
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,
33041
33224
  children: [
33042
- $,
33043
- IK
33225
+ Q,
33226
+ RK
33044
33227
  ]
33045
- }), t[49] = z, t[50] = q, t[51] = J, t[52] = Q, t[53] = $, t[54] = IK, t[55] = LK) : LK = t[55], LK;
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;
33046
33229
  };
33047
33230
  function fetchJson(e) {
33048
33231
  return fetchText(e).then(jsonParseWithSpecialChar);
@@ -33135,22 +33318,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33135
33318
  ]
33136
33319
  }) : null;
33137
33320
  };
33138
- 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: jK, enableSearch: MK = false, searchQuery: NK, onSearchQueryChange: PK, showFilters: FK = false, filters: IK, onFiltersChange: LK, calculateTopKRows: RK, reloading: zK, freezeColumnsLeft: BK, freezeColumnsRight: VK, hiddenColumns: HK, toggleDisplayHeader: UK, showChartBuilder: WK, isChartBuilderOpen: GK, showPageSizeSelector: KK, showTableExplorer: qK, togglePanel: JK, isPanelOpen: YK, isAnyPanelOpen: XK, viewedRowIdx: ZK, onViewedRowChange: QK }) => {
33139
- let [$K, eq] = import_react.useState(false), { locale: tq } = $18f2051aff69b9bf$export$43bb16f9c6d9e3f7(), { columnPinning: nq, setColumnPinning: rq } = useColumnPinning(BK, VK), { columnVisibility: iq, setColumnVisibility: aq } = useColumnVisibility(HK);
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 }) => {
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);
33140
33323
  import_react.useEffect(() => {
33141
33324
  let e2;
33142
- return zK ? e2 = setTimeout(() => {
33143
- eq(true);
33144
- }, 300) : eq(false), () => {
33325
+ return HK ? e2 = setTimeout(() => {
33326
+ iq(true);
33327
+ }, 300) : iq(false), () => {
33145
33328
  e2 && clearTimeout(e2);
33146
33329
  };
33147
33330
  }, [
33148
- zK
33331
+ HK
33149
33332
  ]);
33150
- function oq(e2, t2) {
33333
+ function uq(e2, t2) {
33151
33334
  return z ? t2 + (q ? z.pageIndex * z.pageSize : 0) : t2;
33152
33335
  }
33153
- let sq = useReactTable({
33336
+ let dq = useReactTable({
33154
33337
  _features: [
33155
33338
  ColumnPinning,
33156
33339
  ColumnWrappingFeature,
@@ -33174,11 +33357,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33174
33357
  getRowId: (e2, t2) => {
33175
33358
  let n2 = getStableRowId(e2);
33176
33359
  if (n2) return n2;
33177
- let i2 = oq(e2, t2);
33360
+ let i2 = uq(e2, t2);
33178
33361
  return String(i2);
33179
33362
  }
33180
33363
  } : {},
33181
- locale: tq,
33364
+ locale: aq,
33182
33365
  manualPagination: q,
33183
33366
  getPaginationRowModel: getPaginationRowModel(),
33184
33367
  ...w ? {
@@ -33188,22 +33371,22 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33188
33371
  enableMultiSort: true,
33189
33372
  getSortedRowModel: getSortedRowModel(),
33190
33373
  manualFiltering: true,
33191
- enableColumnFilters: FK,
33374
+ enableColumnFilters: RK,
33192
33375
  getFilteredRowModel: getFilteredRowModel(),
33193
- onColumnFiltersChange: LK,
33376
+ onColumnFiltersChange: BK,
33194
33377
  onRowSelectionChange: Q,
33195
33378
  onCellSelectionChange: $,
33196
33379
  enableCellSelection: c === "single-cell" || c === "multi-cell",
33197
33380
  enableMultiCellSelection: c === "multi-cell",
33198
- onColumnPinningChange: rq,
33199
- onColumnVisibilityChange: aq,
33381
+ onColumnPinningChange: sq,
33382
+ onColumnVisibilityChange: lq,
33200
33383
  enableFocusRow: true,
33201
- onFocusRowChange: QK,
33384
+ onFocusRowChange: tq,
33202
33385
  state: {
33203
33386
  ...S ? {
33204
33387
  sorting: S
33205
33388
  } : {},
33206
- columnFilters: IK,
33389
+ columnFilters: zK,
33207
33390
  ...z ? {
33208
33391
  pagination: z
33209
33392
  } : J && !z ? {} : {
@@ -33214,58 +33397,59 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33214
33397
  },
33215
33398
  rowSelection: E ?? {},
33216
33399
  cellSelection: O ?? [],
33217
- columnVisibility: iq,
33400
+ columnVisibility: cq,
33218
33401
  cellStyling: A,
33219
- columnPinning: nq,
33402
+ columnPinning: oq,
33220
33403
  cellHoverTemplate: M,
33221
33404
  cellHoverTexts: I ?? {}
33222
33405
  }
33223
- }), cq = (YK == null ? void 0 : YK(PANEL_TYPES.ROW_VIEWER)) ?? false, lq = !J && o.length > 100, uq = useScrollContainerHeight({
33406
+ }), fq = (QK == null ? void 0 : QK(PANEL_TYPES.ROW_VIEWER)) ?? false, pq = !J && o.length > 100, mq = useScrollContainerHeight({
33224
33407
  maxHeight: n,
33225
- virtualize: lq
33226
- }), [dq, fq] = import_react.useState(null), pq = import_react.useMemo(() => ({
33408
+ virtualize: pq
33409
+ }), [hq, gq] = import_react.useState(null), _q = import_react.useMemo(() => ({
33227
33410
  requestAddFilter: (e2) => {
33228
- let t2 = sq.getColumn(e2.columnId);
33229
- t2 && fq(buildEditorSnapshot(t2, {
33411
+ let t2 = dq.getColumn(e2.columnId);
33412
+ t2 && gq(buildEditorSnapshot(t2, {
33230
33413
  operator: e2.operator
33231
33414
  }));
33232
33415
  }
33233
33416
  }), [
33234
- sq
33235
- ]), mq = getUserColumnVisibilityCounts(sq), hq = mq.total > 0 && mq.visible === 0;
33417
+ dq
33418
+ ]), vq = getUserColumnVisibilityCounts(dq), yq = vq.total > 0 && vq.visible === 0;
33236
33419
  return (0, import_jsx_runtime.jsx)(FilterEditorProvider, {
33237
- value: pq,
33420
+ value: _q,
33238
33421
  children: (0, import_jsx_runtime.jsxs)("div", {
33239
33422
  className: cn(e, "flex flex-col space-y-1"),
33240
33423
  children: [
33241
33424
  (0, import_jsx_runtime.jsx)(FilterPills, {
33242
- filters: IK,
33243
- table: sq,
33244
- calculateTopKRows: RK,
33245
- addFilterSnapshot: dq,
33246
- onAddFilterSnapshotChange: fq
33425
+ filters: zK,
33426
+ table: dq,
33427
+ calculateTopKRows: VK,
33428
+ addFilterSnapshot: hq,
33429
+ onAddFilterSnapshotChange: gq
33247
33430
  }),
33431
+ nq == null ? void 0 : nq(dq),
33248
33432
  (0, import_jsx_runtime.jsx)(CellSelectionProvider, {
33249
33433
  children: (0, import_jsx_runtime.jsxs)("div", {
33250
33434
  part: "table-wrapper",
33251
33435
  className: cn(t || "rounded-md border overflow-hidden"),
33252
33436
  children: [
33253
33437
  (0, import_jsx_runtime.jsx)(TableTopBar, {
33254
- enableSearch: MK,
33255
- searchQuery: NK,
33256
- onSearchQueryChange: PK,
33257
- reloading: zK,
33258
- showChartBuilder: WK,
33259
- isChartBuilderOpen: GK,
33260
- toggleDisplayHeader: UK,
33261
- showTableExplorer: qK,
33262
- togglePanel: JK,
33263
- isAnyPanelOpen: XK,
33438
+ enableSearch: FK,
33439
+ searchQuery: IK,
33440
+ onSearchQueryChange: LK,
33441
+ reloading: HK,
33442
+ showChartBuilder: qK,
33443
+ isChartBuilderOpen: JK,
33444
+ toggleDisplayHeader: KK,
33445
+ showTableExplorer: XK,
33446
+ togglePanel: ZK,
33447
+ isAnyPanelOpen: $K,
33264
33448
  downloadAs: K,
33265
33449
  sizeBytes: _,
33266
33450
  sizeBytesIsLoading: v
33267
33451
  }),
33268
- hq && (0, import_jsx_runtime.jsxs)(Banner, {
33452
+ yq && (0, import_jsx_runtime.jsxs)(Banner, {
33269
33453
  className: "mb-1 mx-2 rounded flex items-center justify-between",
33270
33454
  children: [
33271
33455
  (0, import_jsx_runtime.jsx)("span", {
@@ -33274,26 +33458,26 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33274
33458
  (0, import_jsx_runtime.jsx)(Button, {
33275
33459
  variant: "link",
33276
33460
  size: "xs",
33277
- onClick: () => sq.resetColumnVisibility(true),
33461
+ onClick: () => dq.resetColumnVisibility(true),
33278
33462
  children: "Unhide all"
33279
33463
  })
33280
33464
  ]
33281
33465
  }),
33282
33466
  (0, import_jsx_runtime.jsxs)(Table, {
33283
33467
  className: cn("relative", i.length <= 4 ? "w-auto" : "w-full"),
33284
- ref: uq,
33468
+ ref: mq,
33285
33469
  children: [
33286
- $K && (0, import_jsx_runtime.jsx)("thead", {
33470
+ rq && (0, import_jsx_runtime.jsx)("thead", {
33287
33471
  className: "absolute top-0 left-0 h-[3px] w-1/2 bg-primary animate-slide"
33288
33472
  }),
33289
- renderTableHeader(sq, lq || !!n),
33473
+ renderTableHeader(dq, pq || !!n),
33290
33474
  (0, import_jsx_runtime.jsx)(DataTableBody, {
33291
- table: sq,
33475
+ table: dq,
33292
33476
  columns: i,
33293
- rowViewerPanelOpen: cq,
33294
- getRowIndex: oq,
33295
- viewedRowIdx: ZK,
33296
- virtualize: lq
33477
+ rowViewerPanelOpen: fq,
33478
+ getRowIndex: uq,
33479
+ viewedRowIdx: eq,
33480
+ virtualize: pq
33297
33481
  })
33298
33482
  ]
33299
33483
  }),
@@ -33304,11 +33488,11 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33304
33488
  pagination: J,
33305
33489
  selection: c,
33306
33490
  onRowSelectionChange: Q,
33307
- table: sq,
33308
- getRowIds: jK,
33309
- showPageSizeSelector: KK,
33310
- tableLoading: zK,
33311
- togglePanel: JK
33491
+ table: dq,
33492
+ getRowIds: PK,
33493
+ showPageSizeSelector: YK,
33494
+ tableLoading: HK,
33495
+ togglePanel: ZK
33312
33496
  })
33313
33497
  ]
33314
33498
  })
@@ -33373,105 +33557,80 @@ Database schema: ${n}`), (_a3 = t2.aiFix) == null ? void 0 : _a3.setAiCompletion
33373
33557
  ]
33374
33558
  }), e.focus(), true;
33375
33559
  }
33376
- var import_compiler_runtime$6 = require_compiler_runtime(), KEY = "item";
33560
+ var import_compiler_runtime$6 = require_compiler_runtime();
33377
33561
  const MarimoTracebackOutput = (e) => {
33378
33562
  var _a2;
33379
- let t = (0, import_compiler_runtime$6.c)(49), { onRefactorWithAI: n, traceback: i, cellId: o } = e, s;
33380
- t[0] === i ? s = t[1] : (s = renderHTML({
33563
+ let t = (0, import_compiler_runtime$6.c)(45), { onRefactorWithAI: n, traceback: i, cellId: a } = e, o;
33564
+ t[0] === i ? o = t[1] : (o = renderHTML({
33381
33565
  html: i,
33382
33566
  additionalReplacements: [
33383
33567
  replaceTracebackFilenames,
33384
33568
  replaceTracebackPrefix,
33385
33569
  replaceMangledLocal
33386
33570
  ]
33387
- }), t[0] = i, t[1] = s);
33388
- let c = s, [d, f] = (0, import_react.useState)(true), _ = lastLine(i), v = useAtomValue(aiEnabledAtom), y;
33389
- t[2] === i ? y = t[3] : (y = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[2] = i, t[3] = y);
33571
+ }), t[0] = i, t[1] = o);
33572
+ let s = o, c;
33573
+ t[2] === i ? c = t[3] : (c = lastLine(i), t[2] = i, t[3] = c);
33574
+ let d = c, f = useAtomValue(aiFeaturesEnabledAtom), _;
33575
+ t[4] === i ? _ = t[5] : (_ = (_a2 = extractAllTracebackInfo(i)) == null ? void 0 : _a2.at(0), t[4] = i, t[5] = _);
33576
+ let v = _, y;
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];
33390
33578
  let w = y, O;
33391
- t[4] !== o || t[5] !== w ? (O = w && w.kind === "cell" && !isWasm() && !isStaticNotebook() && o !== "__scratch__", t[4] = o, t[5] = w, t[6] = O) : O = t[6];
33392
- let A = O, M;
33393
- t[7] !== v || t[8] !== n ? (M = n && v && !isStaticNotebook(), t[7] = v, t[8] = n, t[9] = M) : M = t[9];
33394
- let I = M, U = !isStaticNotebook(), K = (e2) => {
33579
+ t[9] !== f || t[10] !== n ? (O = n && f && !isStaticNotebook(), t[9] = f, t[10] = n, t[11] = O) : O = t[11];
33580
+ let A = O, M = !isStaticNotebook(), [I, z] = (0, import_react.useState)(true), U;
33581
+ t[12] !== d || t[13] !== n ? (U = (e2) => {
33395
33582
  n == null ? void 0 : n({
33396
33583
  prompt: `My code gives the following error:
33397
33584
 
33398
- ${_}`,
33585
+ ${d}`,
33399
33586
  triggerImmediately: e2
33400
33587
  });
33401
- }, [q, J] = _.split(":", 2), $ = J ? splitMangledLocals(J) : [], MK = d ? KEY : "", NK;
33402
- t[10] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (NK = () => f(_temp$3), t[10] = NK) : NK = t[10];
33403
- let PK = d ? "rotate-180" : "rotate-0", FK;
33404
- t[11] === PK ? FK = t[12] : (FK = cn("h-4 w-4 text-muted-foreground transition-transform duration-200 shrink-0", PK), t[11] = PK, t[12] = FK);
33588
+ }, t[12] = d, t[13] = n, t[14] = U) : U = t[14];
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, {
33593
+ className: "h-3 w-3"
33594
+ }) : (0, import_jsx_runtime.jsx)(ChevronRight, {
33595
+ className: "h-3 w-3"
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", {
33599
+ className: "text-[0.6875rem] uppercase tracking-wider",
33600
+ children: "Traceback"
33601
+ }), t[19] = FK) : FK = t[19];
33405
33602
  let IK;
33406
- t[13] === FK ? IK = t[14] : (IK = (0, import_jsx_runtime.jsx)(ChevronDown, {
33407
- className: FK
33408
- }), t[13] = FK, t[14] = IK);
33409
- let LK = q || "Error", RK;
33410
- t[15] === LK ? RK = t[16] : (RK = (0, import_jsx_runtime.jsxs)("span", {
33411
- className: "text-destructive",
33412
- children: [
33413
- LK,
33414
- ":"
33415
- ]
33416
- }), t[15] = LK, t[16] = RK);
33417
- let BK;
33418
- t[17] === $ ? BK = t[18] : (BK = (0, import_jsx_runtime.jsx)(MangledSegments, {
33419
- segments: $
33420
- }), t[17] = $, t[18] = BK);
33421
- let HK;
33422
- t[19] !== RK || t[20] !== BK ? (HK = (0, import_jsx_runtime.jsxs)("div", {
33423
- className: "text-sm inline font-mono",
33424
- children: [
33425
- RK,
33426
- " ",
33427
- BK
33428
- ]
33429
- }), t[19] = RK, t[20] = BK, t[21] = HK) : HK = t[21];
33430
- let UK;
33431
- t[22] !== HK || t[23] !== IK ? (UK = (0, import_jsx_runtime.jsxs)("div", {
33432
- className: "flex gap-2 h-10 px-2 hover:bg-muted rounded-sm select-none items-center cursor-pointer transition-all",
33433
- onClick: NK,
33434
- children: [
33435
- IK,
33436
- HK
33437
- ]
33438
- }), t[22] = HK, t[23] = IK, t[24] = UK) : UK = t[24];
33439
- let WK;
33440
- t[25] === c ? WK = t[26] : (WK = (0, import_jsx_runtime.jsx)(AccordionContent, {
33441
- className: "text-muted-foreground px-4 pt-2 text-xs overflow-auto",
33442
- children: c
33443
- }), t[25] = c, t[26] = WK);
33444
- let GK;
33445
- t[27] !== UK || t[28] !== WK ? (GK = (0, import_jsx_runtime.jsxs)(AccordionItem, {
33446
- value: KEY,
33447
- className: "border-none",
33603
+ t[20] !== I || t[21] !== J || t[22] !== Q || t[23] !== $ ? (IK = (0, import_jsx_runtime.jsxs)("button", {
33604
+ type: "button",
33605
+ onClick: J,
33606
+ "aria-expanded": I,
33607
+ "aria-label": Q,
33608
+ className: "self-start flex items-center gap-1 pt-2 text-muted-foreground/70 hover:text-muted-foreground transition-colors",
33448
33609
  children: [
33449
- UK,
33450
- WK
33610
+ $,
33611
+ FK
33451
33612
  ]
33452
- }), t[27] = UK, t[28] = WK, t[29] = GK) : GK = t[29];
33453
- let qK;
33454
- t[30] !== GK || t[31] !== MK ? (qK = (0, import_jsx_runtime.jsx)(Accordion, {
33455
- type: "single",
33456
- collapsible: true,
33457
- value: MK,
33458
- children: GK
33459
- }), t[30] = GK, t[31] = MK, t[32] = qK) : qK = t[32];
33460
- let JK;
33461
- t[33] !== K || t[34] !== I ? (JK = I && (0, import_jsx_runtime.jsx)(AIFixButton, {
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", {
33616
+ className: "text-muted-foreground pr-4 text-xs overflow-auto",
33617
+ children: s
33618
+ }), t[25] = s, t[26] = I, t[27] = LK) : LK = t[27];
33619
+ let RK;
33620
+ t[28] !== q || t[29] !== A ? (RK = A && (0, import_jsx_runtime.jsx)(AIFixButton, {
33462
33621
  tooltip: "Fix with AI",
33463
- openPrompt: () => K(false),
33464
- applyAutofix: () => K(true)
33465
- }), t[33] = K, t[34] = I, t[35] = JK) : JK = t[35];
33466
- let YK;
33467
- t[36] !== A || t[37] !== w ? (YK = A && (0, import_jsx_runtime.jsx)(Tooltip, {
33622
+ openPrompt: () => q(false),
33623
+ applyAutofix: () => q(true)
33624
+ }), t[28] = q, t[29] = A, t[30] = RK) : RK = t[30];
33625
+ let zK;
33626
+ t[31] !== w || t[32] !== v ? (zK = w && (0, import_jsx_runtime.jsx)(Tooltip, {
33468
33627
  content: "Attach pdb to the exception point.",
33469
33628
  children: (0, import_jsx_runtime.jsxs)(Button, {
33470
33629
  size: "xs",
33471
33630
  variant: "outline",
33472
33631
  onClick: () => {
33473
33632
  getRequestClient().sendPdb({
33474
- cellId: w.cellId
33633
+ cellId: v.cellId
33475
33634
  });
33476
33635
  },
33477
33636
  children: [
@@ -33481,9 +33640,9 @@ ${_}`,
33481
33640
  "Launch debugger"
33482
33641
  ]
33483
33642
  })
33484
- }), t[36] = A, t[37] = w, t[38] = YK) : YK = t[38];
33485
- let XK;
33486
- t[39] !== _ || t[40] !== i ? (XK = U && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
33643
+ }), t[31] = w, t[32] = v, t[33] = zK) : zK = t[33];
33644
+ let BK;
33645
+ t[34] !== d || t[35] !== i ? (BK = M && (0, import_jsx_runtime.jsxs)(DropdownMenu, {
33487
33646
  children: [
33488
33647
  (0, import_jsx_runtime.jsx)(DropdownMenuTrigger, {
33489
33648
  asChild: true,
@@ -33506,7 +33665,7 @@ ${_}`,
33506
33665
  asChild: true,
33507
33666
  children: (0, import_jsx_runtime.jsxs)("a", {
33508
33667
  target: "_blank",
33509
- href: `https://www.google.com/search?q=${encodeURIComponent(_)}`,
33668
+ href: `https://www.google.com/search?q=${encodeURIComponent(d)}`,
33510
33669
  rel: "noreferrer",
33511
33670
  children: [
33512
33671
  (0, import_jsx_runtime.jsx)(Search, {
@@ -33551,24 +33710,25 @@ ${_}`,
33551
33710
  ]
33552
33711
  })
33553
33712
  ]
33554
- }), t[39] = _, t[40] = i, t[41] = XK) : XK = t[41];
33555
- let ZK;
33556
- t[42] !== JK || t[43] !== YK || t[44] !== XK ? (ZK = (0, import_jsx_runtime.jsxs)("div", {
33713
+ }), t[34] = d, t[35] = i, t[36] = BK) : BK = t[36];
33714
+ let VK;
33715
+ t[37] !== RK || t[38] !== zK || t[39] !== BK ? (VK = (0, import_jsx_runtime.jsxs)("div", {
33557
33716
  className: "flex gap-2",
33558
33717
  children: [
33559
- JK,
33560
- YK,
33561
- XK
33718
+ RK,
33719
+ zK,
33720
+ BK
33562
33721
  ]
33563
- }), t[42] = JK, t[43] = YK, t[44] = XK, t[45] = ZK) : ZK = t[45];
33564
- let QK;
33565
- return t[46] !== qK || t[47] !== ZK ? (QK = (0, import_jsx_runtime.jsxs)("div", {
33722
+ }), t[37] = RK, t[38] = zK, t[39] = BK, t[40] = VK) : VK = t[40];
33723
+ let HK;
33724
+ return t[41] !== IK || t[42] !== LK || t[43] !== VK ? (HK = (0, import_jsx_runtime.jsxs)("div", {
33566
33725
  className: "flex flex-col gap-2 min-w-full w-fit",
33567
33726
  children: [
33568
- qK,
33569
- ZK
33727
+ IK,
33728
+ LK,
33729
+ VK
33570
33730
  ]
33571
- }), t[46] = qK, t[47] = ZK, t[48] = QK) : QK = t[48], QK;
33731
+ }), t[41] = IK, t[42] = LK, t[43] = VK, t[44] = HK) : HK = t[44], HK;
33572
33732
  };
33573
33733
  function lastLine(e) {
33574
33734
  var _a2, _b;
@@ -33646,9 +33806,6 @@ ${_}`,
33646
33806
  ]
33647
33807
  }), e[0] = t) : t = e[0], t;
33648
33808
  };
33649
- function _temp$3(e) {
33650
- return !e;
33651
- }
33652
33809
  function renderMimeIcon(e) {
33653
33810
  switch (e) {
33654
33811
  case "text/html":
@@ -34566,7 +34723,9 @@ ${_}`,
34566
34723
  var import_compiler_runtime$1 = require_compiler_runtime();
34567
34724
  DEFAULT_SLIDE_TYPE = "slide";
34568
34725
  DEFAULT_DECK_TRANSITION = "slide";
34569
- var COLLAPSED_CONFIG_WIDTH = 36;
34726
+ var COLLAPSED_CONFIG_WIDTH = 36, slideConfigOpenAtom = atomWithStorage("marimo:slides:config-open", true, jotaiJsonStorage, {
34727
+ getOnInit: true
34728
+ });
34570
34729
  let SLIDE_TYPE_OPTIONS;
34571
34730
  SLIDE_TYPE_OPTIONS = [
34572
34731
  {
@@ -34846,7 +35005,7 @@ ${_}`,
34846
35005
  }), t[15] = y, t[16] = S, t[17] = w) : w = t[17], w;
34847
35006
  };
34848
35007
  SlideSidebar = (e) => {
34849
- let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: o, activeConfigCell: s } = e, [c, d] = (0, import_react.useState)(false), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
35008
+ let t = (0, import_compiler_runtime$1.c)(30), { configWidth: n, layout: i, setLayout: o, activeConfigCell: s } = e, [c, d] = useAtom(slideConfigOpenAtom), f = c ? n : COLLAPSED_CONFIG_WIDTH, _;
34850
35009
  t[0] === f ? _ = t[1] : (_ = {
34851
35010
  width: f
34852
35011
  }, t[0] = f, t[1] = _);
@@ -34858,7 +35017,7 @@ ${_}`,
34858
35017
  children: "Configuration"
34859
35018
  }), t[4] = c, t[5] = S);
34860
35019
  let w = c ? "Collapse panel" : "Expand panel", E;
34861
- t[6] === c ? E = t[7] : (E = () => d(!c), t[6] = c, t[7] = E);
35020
+ t[6] === d ? E = t[7] : (E = () => d(_temp5), t[6] = d, t[7] = E);
34862
35021
  let O;
34863
35022
  t[8] === c ? O = t[9] : (O = c ? (0, import_jsx_runtime.jsx)(PanelRightClose, {
34864
35023
  className: "h-4 w-4"
@@ -34951,6 +35110,9 @@ ${_}`,
34951
35110
  function _temp4(e) {
34952
35111
  return e.stopPropagation();
34953
35112
  }
35113
+ function _temp5(e) {
35114
+ return !e;
35115
+ }
34954
35116
  function getVersionFromMountConfig() {
34955
35117
  try {
34956
35118
  return window.__MARIMO_MOUNT_CONFIG__.version;
@@ -34958,7 +35120,7 @@ ${_}`,
34958
35120
  return Logger.warn("Failed to get version from mount config"), null;
34959
35121
  }
34960
35122
  }
34961
- marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9-dev9");
35123
+ marimoVersionAtom = atom(getVersionFromMountConfig() || "0.23.9");
34962
35124
  showCodeInRunModeAtom = atom(true);
34963
35125
  atom(null);
34964
35126
  var import_compiler_runtime = require_compiler_runtime();
@@ -34986,111 +35148,113 @@ ${_}`,
34986
35148
  }
34987
35149
  });
34988
35150
  export {
34989
- TableHead as $,
34990
- Command as A,
34991
- ChartLoadingState as At,
34992
- contextAwarePanelType as B,
34993
- GripHorizontal as Bt,
35151
+ TableBody as $,
35152
+ ChevronLeft as $t,
35153
+ ComboboxItem as A,
35154
+ ChartErrorState as At,
35155
+ contextAwarePanelOpen as B,
35156
+ $fae977aafc393c5c$export$6b862160d295c8e as Bt,
34994
35157
  prettifyRowColumnCount as C,
34995
- dateToLocalISOTime as Ct,
34996
- DateRangePicker as D,
34997
- TabsTrigger as Dt,
34998
- DatePicker as E,
34999
- TabsList as Et,
35000
- CommandSeparator as F,
35001
- HtmlOutput as Ft,
35002
- Panel as G,
35003
- Download as Gt,
35004
- SlotNames as H,
35005
- EyeOff as Ht,
35006
- ContextAwarePanelItem as I,
35007
- EmotionCacheProvider as It,
35008
- Fill as J,
35009
- ChevronsRight as Jt,
35010
- PanelGroup as K,
35011
- Code as Kt,
35012
- PANEL_TYPES as L,
35013
- $fae977aafc393c5c$export$588937bcd60ade55 as Lt,
35014
- CommandInput as M,
35015
- useOverflowDetection as Mt,
35016
- CommandItem as N,
35017
- RenderTextWithLinks as Nt,
35018
- Combobox as O,
35019
- ChartErrorState as Ot,
35020
- CommandList as P,
35021
- Kbd as Pt,
35022
- TableCell as Q,
35023
- ArrowDownWideNarrow as Qt,
35024
- contextAwarePanelOpen as R,
35025
- $fae977aafc393c5c$export$6b862160d295c8e as Rt,
35158
+ dateToLocalISODate as Ct,
35159
+ DatePicker as D,
35160
+ TabsContent as Dt,
35161
+ useInternalStateWithSync as E,
35162
+ Tabs as Et,
35163
+ CommandList as F,
35164
+ RenderTextWithLinks as Ft,
35165
+ slotsController as G,
35166
+ Expand as Gt,
35167
+ contextAwarePanelType as H,
35168
+ GripHorizontal as Ht,
35169
+ CommandSeparator as I,
35170
+ Kbd as It,
35171
+ PanelGroup as J,
35172
+ Code as Jt,
35173
+ Toggle as K,
35174
+ Ellipsis as Kt,
35175
+ smartMatch as L,
35176
+ HtmlOutput as Lt,
35177
+ CommandEmpty as M,
35178
+ ChartLoadingState as Mt,
35179
+ CommandInput as N,
35180
+ LazyVegaEmbed as Nt,
35181
+ DateRangePicker as O,
35182
+ TabsList as Ot,
35183
+ CommandItem as P,
35184
+ useOverflowDetection as Pt,
35185
+ Table as Q,
35186
+ ChevronsDownUp as Qt,
35187
+ ContextAwarePanelItem as R,
35188
+ EmotionCacheProvider as Rt,
35026
35189
  downloadSizeLimitAtom as S,
35027
- dateToLocalISODateTime as St,
35028
- useInternalStateWithSync as T,
35029
- TabsContent as Tt,
35030
- slotsController as U,
35031
- Expand as Ut,
35032
- isCellAwareAtom as V,
35033
- Funnel as Vt,
35034
- Toggle as W,
35035
- Ellipsis as Wt,
35036
- Table as X,
35037
- ChevronsDownUp as Xt,
35038
- Provider$1 as Y,
35039
- ChevronsLeft as Yt,
35040
- TableBody as Z,
35041
- ChevronLeft as Zt,
35190
+ Maps as St,
35191
+ getColumnCountForDisplay as T,
35192
+ dateToLocalISOTime as Tt,
35193
+ isCellAwareAtom as U,
35194
+ Funnel as Ut,
35195
+ contextAwarePanelOwner as V,
35196
+ TextWrap as Vt,
35197
+ SlotNames as W,
35198
+ EyeOff as Wt,
35199
+ Fill as X,
35200
+ ChevronsRight as Xt,
35201
+ PanelResizeHandle as Y,
35202
+ ChevronsUpDown as Yt,
35203
+ Provider$1 as Z,
35204
+ ChevronsLeft as Zt,
35042
35205
  downloadBlob as _,
35043
35206
  __tla,
35044
- toFieldTypes as _t,
35207
+ SELECT_COLUMN_ID as _t,
35045
35208
  DEFAULT_SLIDE_TYPE as a,
35046
- renderCellValue as at,
35209
+ generateColumns as at,
35047
35210
  Progress as b,
35048
- Maps as bt,
35211
+ getMimeValues as bt,
35049
35212
  Slide as c,
35050
- DelayMount as ct,
35213
+ ColumnChartContext as ct,
35051
35214
  JsonOutput as d,
35052
- getPageIndexForRow as dt,
35053
- TableHeader as et,
35215
+ useIntersectionObserver as dt,
35216
+ ArrowDownWideNarrow as en,
35217
+ TableCell as et,
35054
35218
  OutputArea as f,
35055
- loadTableAndRawData as ft,
35219
+ usePrevious as ft,
35056
35220
  ADD_PRINTING_CLASS as g,
35057
- TOO_MANY_ROWS as gt,
35221
+ INDEX_COLUMN_NAME as gt,
35058
35222
  InstallPackageButton as h,
35059
- SELECT_COLUMN_ID as ht,
35223
+ loadTableData as ht,
35060
35224
  DEFAULT_DECK_TRANSITION as i,
35061
- inferFieldTypes as it,
35062
- CommandEmpty as j,
35063
- LazyVegaEmbed as jt,
35064
- ComboboxItem as k,
35065
- ChartInfoState as kt,
35225
+ NAMELESS_COLUMN_PREFIX as it,
35226
+ Command as j,
35227
+ ChartInfoState as jt,
35228
+ Combobox as k,
35229
+ TabsTrigger as kt,
35066
35230
  RadioGroup as l,
35067
- useIntersectionObserver as lt,
35231
+ ColumnChartSpecModel as lt,
35068
35232
  DataTable as m,
35069
- INDEX_COLUMN_NAME as mt,
35233
+ loadTableAndRawData as mt,
35070
35234
  marimoVersionAtom as n,
35071
- NAMELESS_COLUMN_PREFIX as nt,
35235
+ TableHeader as nt,
35072
35236
  SLIDE_TYPE_OPTIONS_BY_VALUE as o,
35073
- ColumnChartContext as ot,
35237
+ inferFieldTypes as ot,
35074
35238
  OutputRenderer as p,
35075
- loadTableData as pt,
35076
- PanelResizeHandle as q,
35077
- ChevronsUpDown as qt,
35239
+ getPageIndexForRow as pt,
35240
+ Panel as q,
35241
+ Download as qt,
35078
35242
  showCodeInRunModeAtom as r,
35079
- generateColumns as rt,
35243
+ TableRow as rt,
35080
35244
  SlideSidebar as s,
35081
- ColumnChartSpecModel as st,
35245
+ renderCellValue as st,
35082
35246
  useNotebookCodeAvailable as t,
35083
- TableRow as tt,
35247
+ TableHead as tt,
35084
35248
  RadioGroupItem as u,
35085
- usePrevious as ut,
35249
+ DelayMount as ut,
35086
35250
  downloadByURL as v,
35087
- getMimeValues as vt,
35251
+ TOO_MANY_ROWS as vt,
35088
35252
  prettifyRowCount as w,
35089
- Tabs as wt,
35253
+ dateToLocalISODateTime as wt,
35090
35254
  Filenames as x,
35091
- dateToLocalISODate as xt,
35255
+ isNullishFilter as xt,
35092
35256
  downloadHTMLAsImage as y,
35093
- isNullishFilter as yt,
35094
- contextAwarePanelOwner as z,
35095
- TextWrap as zt
35257
+ toFieldTypes as yt,
35258
+ PANEL_TYPES as z,
35259
+ $fae977aafc393c5c$export$588937bcd60ade55 as zt
35096
35260
  };