@marimo-team/islands 0.23.10-dev9 → 0.23.10

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 (188) hide show
  1. package/dist/{ConnectedDataExplorerComponent-CyV83R2m.js → ConnectedDataExplorerComponent-Z3RP7Vmm.js} +31 -31
  2. package/dist/{ErrorBoundary-rULOrC_p.js → ErrorBoundary-DpbaKVv7.js} +1 -1
  3. package/dist/{any-language-editor-CiES2a2h.js → any-language-editor-CAgFD4Kd.js} +20 -20
  4. package/dist/assets/__vite-browser-external-eshhtsgZ.js +1 -0
  5. package/dist/assets/worker-CC0Oul9k.js +73 -0
  6. package/dist/{chat-ui-K84W5ecY.js → chat-ui-C4-GMW9y.js} +77 -77
  7. package/dist/{check-DTbrK0zt.js → check-BCaJeT-J.js} +1 -1
  8. package/dist/{chunk-5FQGJX7Z-BNjes6Yx.js → chunk-5FQGJX7Z-BbqSm5gU.js} +1227 -1222
  9. package/dist/{code-block-37QAKDTI-m92Yc8pv.js → code-block-37QAKDTI-O6IH6wAi.js} +1 -1
  10. package/dist/{code-visibility-v6ucEVUg.js → code-visibility-DrFozVlm.js} +1943 -1223
  11. package/dist/{copy-5jQ_kGE1.js → copy-UqRYxiOg.js} +1 -1
  12. package/dist/dist-7QfXoMdB.js +5 -0
  13. package/dist/{dist-DgnE8F-r.js → dist-A2846XWO.js} +1 -1
  14. package/dist/dist-BEXXyZig.js +5 -0
  15. package/dist/{dist-B3pZ0Ab6.js → dist-BR_gyG9L.js} +3 -3
  16. package/dist/{dist-CcXxepx6.js → dist-BSAt6RhH.js} +27 -27
  17. package/dist/{dist-Bde4a2kU.js → dist-BY018Paw.js} +8 -8
  18. package/dist/dist-BYj57OV4.js +5 -0
  19. package/dist/{dist-CUCNs1ja.js → dist-BaoDKvdy.js} +2 -2
  20. package/dist/{dist-Cy1WxgBD.js → dist-Bf7SHuNp.js} +5 -5
  21. package/dist/{dist-Bz_sYWbr.js → dist-Bk75fBZA.js} +2 -2
  22. package/dist/dist-BlSvQzNr.js +5 -0
  23. package/dist/{dist-C5VC_yzu.js → dist-BzEzfugY.js} +1 -1
  24. package/dist/dist-CCBlxAgS.js +8 -0
  25. package/dist/dist-CIDTVIUf.js +5 -0
  26. package/dist/{dist-CLUtPrdy.js → dist-CIYBwstr.js} +1 -1
  27. package/dist/{dist-BotSqB48.js → dist-C_Y3oV3C.js} +12 -12
  28. package/dist/{dist-BTfv03uy.js → dist-CcWX6tmx.js} +2 -2
  29. package/dist/{dist-BhM8gdSO.js → dist-CoXAujgg.js} +4 -4
  30. package/dist/{dist-4j4c7bjm.js → dist-CpxNdDkw.js} +3 -3
  31. package/dist/dist-CqQyhAM8.js +8 -0
  32. package/dist/dist-CwRu2Xzh.js +5 -0
  33. package/dist/{dist-BcuoonNH.js → dist-CxJDU6Bh.js} +9 -9
  34. package/dist/{dist-DxvORzUR.js → dist-D-W5ny5a.js} +8 -8
  35. package/dist/dist-D8CDTVgf.js +6 -0
  36. package/dist/dist-D8DNB0nO.js +8 -0
  37. package/dist/dist-DL6N_q-A.js +5 -0
  38. package/dist/{dist-BbbIBDiQ.js → dist-DMjWuVs8.js} +1 -1
  39. package/dist/dist-DOFbNV_b.js +8 -0
  40. package/dist/dist-DPrYzMY0.js +6 -0
  41. package/dist/{dist-h2c8sZvT.js → dist-DZORgqKY.js} +1 -1
  42. package/dist/{dist-B3P2fFpz.js → dist-DZo4nSS0.js} +14 -14
  43. package/dist/{dist-D4CewLk6.js → dist-Dax--nl9.js} +1 -1
  44. package/dist/{dist-DRfcqpxJ.js → dist-DgGbNavJ.js} +2 -2
  45. package/dist/{dist-C1BYNeCR.js → dist-Dk6PV_d3.js} +10 -10
  46. package/dist/{dist-fQ0ViXGs.js → dist-Dv_Y15yk.js} +107 -107
  47. package/dist/{dist-Bfwsv11D.js → dist-DyyjKEYf.js} +2 -2
  48. package/dist/{dist-p2qyWijU.js → dist-GZXUmt0b.js} +2 -2
  49. package/dist/{dist-CLJWPTX2.js → dist-LTU8Hdvn.js} +3 -3
  50. package/dist/{dist-DqAWR3CS.js → dist-M9Vag9Y0.js} +20 -20
  51. package/dist/{dist-DNdhYsgW.js → dist-U4F-tbMs.js} +79 -62
  52. package/dist/{dist-RqXTaiir.js → dist-abid3KgM.js} +11 -11
  53. package/dist/dist-cdmMjgsn.js +5 -0
  54. package/dist/dist-hT4QzYX-.js +1247 -0
  55. package/dist/{dist-luvabDEB.js → dist-t9Kf7xqC.js} +2 -2
  56. package/dist/{error-banner-5bz0L9hS.js → error-banner-CJXYJ6Sb.js} +11 -6
  57. package/dist/esm-BaH2eg5-.js +1171 -0
  58. package/dist/{esm-Duie8iU-.js → esm-ga2Bf3O2.js} +43 -43
  59. package/dist/{extends-CkydH1Q5.js → extends-D_hDsj6R.js} +4 -4
  60. package/dist/files/wasm-intro.py +11 -8
  61. package/dist/{formats-DHxc-FdY.js → formats-C4wO47tk.js} +1 -1
  62. package/dist/{glide-data-editor-CgIxTzAP.js → glide-data-editor-BPkCPs7L.js} +255 -255
  63. package/dist/{html-to-image-B93KtAVY.js → html-to-image-BwfcJJxA.js} +2412 -2282
  64. package/dist/{input-_2sjvfne.js → input-OdWHkobi.js} +263 -245
  65. package/dist/{label-LWtdw5i8.js → label-CC4ytI1X.js} +1 -1
  66. package/dist/main.js +7630 -7558
  67. package/dist/{mermaid-4DMBBIKO-DIdL224_.js → mermaid-4DMBBIKO-Eg3D4FVz.js} +1 -1
  68. package/dist/{mermaid-lXOw5Py9.js → mermaid-BotvIKg9.js} +4 -4
  69. package/dist/{process-output-BOXi9fnS.js → process-output-DsloEDna.js} +3 -3
  70. package/dist/{reveal-component-gRcjQbNL.js → reveal-component-3YQBHWuD.js} +698 -620
  71. package/dist/{spec-B96zNUEA.js → spec-X7FwLJni.js} +4 -4
  72. package/dist/{strings-Bu3vlb6W.js → strings-J57tzLr3.js} +47 -46
  73. package/dist/style.css +1 -1
  74. package/dist/{toDate-x-WRDCH7.js → toDate-d8RCRrRd.js} +2 -2
  75. package/dist/{tooltip-C5FYOpQc.js → tooltip-DpcyNkQ2.js} +2 -2
  76. package/dist/{types-CVvp1fKr.js → types-ChtMFmZ2.js} +1 -1
  77. package/dist/{useAsyncData-iRgKDT5s.js → useAsyncData-PonK__yh.js} +1 -1
  78. package/dist/{useDateFormatter-BA4FCquG.js → useDateFormatter-QB-3MpYr.js} +2 -2
  79. package/dist/{useDeepCompareMemoize-CkQ57VS2.js → useDeepCompareMemoize-D3NGWke6.js} +1 -1
  80. package/dist/{useLifecycle-BBO9PIph.js → useLifecycle-00mO3OSS.js} +2 -2
  81. package/dist/{useTheme-DHIrRQOe.js → useTheme-DEhDzATN.js} +1 -1
  82. package/dist/{vega-component-Dq-SH463.js → vega-component-DGPUhbDs.js} +8 -8
  83. package/dist/{zod-CoBiJ5v4.js → zod-aLSua2NL.js} +24 -23
  84. package/package.json +4 -3
  85. package/src/__tests__/setup.ts +16 -0
  86. package/src/components/chat/chat-display.tsx +2 -2
  87. package/src/components/data-table/TableBottomBar.tsx +1 -15
  88. package/src/components/data-table/TableTopBar.tsx +8 -13
  89. package/src/components/data-table/__tests__/TableBottomBar.test.tsx +6 -12
  90. package/src/components/data-table/__tests__/column-visibility-dropdown.test.tsx +227 -0
  91. package/src/components/data-table/column-visibility-dropdown.tsx +204 -0
  92. package/src/components/data-table/data-table.tsx +1 -1
  93. package/src/components/data-table/filter-by-values-picker.tsx +39 -17
  94. package/src/components/data-table/filter-pills.tsx +1 -1
  95. package/src/components/datasources/__tests__/filter-empty.test.ts +183 -0
  96. package/src/components/datasources/datasources.tsx +92 -3
  97. package/src/components/editor/cell/code/cell-editor.tsx +70 -32
  98. package/src/components/editor/cell/code/code-placeholder.css +18 -0
  99. package/src/components/editor/cell/code/code-placeholder.tsx +47 -0
  100. package/src/components/editor/cell/code/language-toggle.tsx +7 -1
  101. package/src/components/editor/chrome/wrapper/app-chrome.tsx +97 -52
  102. package/src/components/editor/chrome/wrapper/lazy-panels.ts +91 -0
  103. package/src/components/editor/chrome/wrapper/sidebar.tsx +2 -0
  104. package/src/components/editor/connections/storage/__tests__/__snapshots__/as-code.test.ts.snap +9 -2
  105. package/src/components/editor/connections/storage/__tests__/as-code.test.ts +62 -27
  106. package/src/components/editor/connections/storage/add-storage-form.tsx +5 -1
  107. package/src/components/editor/connections/storage/as-code.ts +20 -6
  108. package/src/components/editor/documentation.css +35 -0
  109. package/src/components/editor/file-tree/file-explorer.tsx +8 -18
  110. package/src/components/editor/file-tree/tree-actions.tsx +46 -1
  111. package/src/components/editor/notebook-cell.tsx +3 -3
  112. package/src/components/editor/renderers/slides-layout/__tests__/plugin.test.ts +20 -0
  113. package/src/components/editor/renderers/slides-layout/types.ts +1 -0
  114. package/src/components/markdown/__tests__/markdown-renderer.test.tsx +43 -0
  115. package/src/components/markdown/markdown-renderer.tsx +24 -1
  116. package/src/components/slides/__tests__/minimap-actions.test.tsx +166 -0
  117. package/src/components/slides/__tests__/reveal-component.test.ts +425 -0
  118. package/src/components/slides/minimap.tsx +127 -10
  119. package/src/components/slides/reveal-component.tsx +287 -61
  120. package/src/components/slides/slide-cell-view.tsx +26 -2
  121. package/src/components/slides/slide-form.tsx +26 -4
  122. package/src/components/storage/__tests__/storage-inspector.test.ts +180 -0
  123. package/src/components/storage/storage-inspector.tsx +535 -81
  124. package/src/components/ui/combobox.tsx +51 -32
  125. package/src/components/ui/number-field.tsx +5 -1
  126. package/src/components/ui/reorderable-list.tsx +13 -0
  127. package/src/components/ui/select-core/__tests__/use-select-list.test.ts +294 -0
  128. package/src/components/ui/select-core/__tests__/utils.test.ts +222 -0
  129. package/src/components/ui/select-core/index.ts +16 -0
  130. package/src/components/ui/select-core/option-row.tsx +33 -0
  131. package/src/components/ui/select-core/render-slot.ts +20 -0
  132. package/src/components/ui/select-core/select-list.tsx +248 -0
  133. package/src/components/ui/select-core/types.ts +44 -0
  134. package/src/components/ui/select-core/use-select-list.ts +347 -0
  135. package/src/components/ui/select-core/utils.ts +121 -0
  136. package/src/components/ui/toast.tsx +1 -0
  137. package/src/core/cells/__tests__/document-changes.test.ts +2 -2
  138. package/src/core/cells/__tests__/focus.test.ts +45 -2
  139. package/src/core/cells/focus.ts +1 -1
  140. package/src/core/cells/scrollCellIntoView.ts +4 -0
  141. package/src/core/cells/utils.ts +1 -1
  142. package/src/core/codemirror/__tests__/editor-mount-scheduler.test.ts +143 -0
  143. package/src/core/codemirror/copilot/getCodes.ts +3 -1
  144. package/src/core/codemirror/editor-mount-scheduler.ts +101 -0
  145. package/src/core/codemirror/language/languages/python.ts +2 -0
  146. package/src/core/codemirror/language/languages/sql/utils.ts +3 -1
  147. package/src/core/codemirror/lsp/__tests__/markdown-renderer.test.ts +41 -0
  148. package/src/core/codemirror/lsp/markdown-renderer.ts +59 -0
  149. package/src/core/datasets/data-source-connections.ts +2 -0
  150. package/src/core/errors/errors.ts +1 -1
  151. package/src/core/storage/__tests__/state.test.ts +49 -0
  152. package/src/core/storage/__tests__/useStorageEntries.test.tsx +199 -3
  153. package/src/core/storage/state.ts +124 -13
  154. package/src/core/storage/types.ts +6 -0
  155. package/src/core/wasm/worker/bootstrap.ts +12 -4
  156. package/src/plugins/core/__test__/registerReactComponent.test.ts +96 -0
  157. package/src/plugins/core/registerReactComponent.tsx +42 -10
  158. package/src/plugins/impl/MultiselectPlugin.tsx +19 -142
  159. package/src/plugins/impl/SearchableSelect.tsx +16 -97
  160. package/src/plugins/impl/SliderPlugin.tsx +132 -18
  161. package/src/plugins/impl/__tests__/DropdownPlugin.test.tsx +5 -2
  162. package/src/plugins/impl/__tests__/MultiSelectPlugin.test.ts +1 -1
  163. package/src/plugins/impl/__tests__/SliderPlugin.test.tsx +278 -8
  164. package/src/utils/__tests__/numbers.test.ts +20 -0
  165. package/src/utils/errors.ts +9 -0
  166. package/src/utils/lazy.ts +6 -1
  167. package/src/utils/numbers.ts +27 -0
  168. package/src/utils/schedule-task.ts +71 -0
  169. package/dist/assets/__vite-browser-external-Ci2ZQfXU.js +0 -1
  170. package/dist/assets/worker-ip3AI_sN.js +0 -73
  171. package/dist/dist-0Fif7jnk.js +0 -5
  172. package/dist/dist-B5h_9sHB.js +0 -6
  173. package/dist/dist-B9M6R5ye.js +0 -5
  174. package/dist/dist-BCt3tnck.js +0 -8
  175. package/dist/dist-BUIJwMwn.js +0 -8
  176. package/dist/dist-BpquMd3k.js +0 -5
  177. package/dist/dist-BzJsqYfz.js +0 -5
  178. package/dist/dist-CA5ELXAf.js +0 -6
  179. package/dist/dist-CLBRs6Uv.js +0 -5
  180. package/dist/dist-CStVCMbq.js +0 -5
  181. package/dist/dist-CZRIEY3Y.js +0 -8
  182. package/dist/dist-CuUHbFD0.js +0 -5
  183. package/dist/dist-DV7Iabxb.js +0 -8
  184. package/dist/dist-DhHh0jLg.js +0 -1247
  185. package/dist/dist-DuEeHMvL.js +0 -5
  186. package/dist/esm-CCuYCd3R.js +0 -1171
  187. package/src/plugins/impl/multiselectFilterFn.tsx +0 -22
  188. /package/src/components/{data-table → ui}/value-chips.tsx +0 -0
@@ -5,16 +5,16 @@ import { s as __toESM, t as __commonJSMin } from "./chunk-BNovOVIE.js";
5
5
  import { _ as Logger, h as Events, t as Button } from "./button-C5K9fIPF.js";
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
- import { n as Copy, r as toast, t as copyToClipboard } from "./copy-5jQ_kGE1.js";
9
- import { S as logNever, i as SelectContent, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, u as SelectValue } from "./strings-Bu3vlb6W.js";
10
- import { G as marked, W as useNonce, _ as DropdownMenuSub, d as DropdownMenuContent, g as DropdownMenuSeparator, h as DropdownMenuPortal, p as DropdownMenuItem, r as Input, u as DropdownMenu, v as DropdownMenuSubContent, y as DropdownMenuSubTrigger } from "./input-_2sjvfne.js";
11
- import { n as Trash, r as Pencil, t as BulkEdit } from "./types-CVvp1fKr.js";
12
- import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-rULOrC_p.js";
8
+ import { n as Copy, r as toast, t as copyToClipboard } from "./copy-UqRYxiOg.js";
9
+ import { C as logNever, i as SelectContent, l as SelectTrigger, n as capitalize, o as SelectItem, r as Select, u as SelectValue } from "./strings-J57tzLr3.js";
10
+ import { J as marked, S as DropdownMenuSubTrigger, _ as DropdownMenuPortal, b as DropdownMenuSub, f as DropdownMenu, h as DropdownMenuItem, p as DropdownMenuContent, q as useNonce, r as Input, v as DropdownMenuSeparator, x as DropdownMenuSubContent } from "./input-OdWHkobi.js";
11
+ import { n as Trash, r as Pencil, t as BulkEdit } from "./types-ChtMFmZ2.js";
12
+ import { n as require_prop_types, r as Plus, t as ErrorBoundary } from "./ErrorBoundary-DpbaKVv7.js";
13
13
  import "./react-dom-BTJzcVJ9.js";
14
14
  import { t as require_jsx_runtime } from "./jsx-runtime-DebpN0FN.js";
15
- import "./zod-CoBiJ5v4.js";
16
- import { t as Label } from "./label-LWtdw5i8.js";
17
- import { T as useEvent_default, n as useTheme } from "./useTheme-DHIrRQOe.js";
15
+ import "./zod-aLSua2NL.js";
16
+ import { t as Label } from "./label-CC4ytI1X.js";
17
+ import { T as useEvent_default, n as useTheme } from "./useTheme-DEhDzATN.js";
18
18
  import { A as require__Map, B as require__baseGetTag, C as require__hasPath, D as require_isArguments, E as require__isIndex, F as require_isFunction, G as assert, H as require__root, I as require_isObject, J as maybe, K as assertNever, L as require__isKey, M as require_eq, N as require__getNative, O as require__castPath, P as require__toSource, R as require_isSymbol, S as resolveCellsThunk, T as require_isLength, U as require__freeGlobal, V as require__Symbol, W as require_isArray, _ as isEditableGridCell, a as mergeAndRealizeTheme, b as isReadWriteCell, c as withAlpha, d as CompactSelection, f as GridCellKind, g as booleanCellIsEditable, h as InnerGridCellKind, i as makeCSSStyle, j as require__ListCache, k as require__MapCache, l as BooleanEmpty, m as GridColumnMenuIcon, n as ThemeContext, o as blend, p as GridColumnIcon, q as deepEqual, r as getDataEditorTheme, s as blendCache, t as ClickOutsideContainer, u as BooleanIndeterminate, v as isInnerOnlyCell, w as require__toKey, x as isSizedGridColumn, y as isObjectEditorCallbackResult, z as require_isObjectLike } from "./click-outside-container-BDd67_1U.js";
19
19
  import { t as styled_default } from "./dist-D_bzzWBm.js";
20
20
  let GlideDataEditor, glide_data_editor_default;
@@ -3171,10 +3171,10 @@ let __tla = (async () => {
3171
3171
  kind: GridCellKind.Loading,
3172
3172
  allowOverlay: false
3173
3173
  };
3174
- function drawCells(e, t, n, r, i, a, o, s, c, l, u, f, m, h, g, y, x, S, C, E, D, O, k, A, j, M, N, P, F, I, L, zr, Br, Vr, B) {
3175
- let Hr = (E == null ? void 0 : E.size) ?? 2 ** 53 - 1, Ur = performance.now(), V = I.baseFontFull;
3176
- e.font = V;
3177
- let H = {
3174
+ function drawCells(e, t, n, r, i, a, o, s, c, l, u, f, m, h, g, y, x, S, C, E, D, O, k, A, j, M, N, P, F, I, L, B, zr, Br, V) {
3175
+ let Vr = (E == null ? void 0 : E.size) ?? 2 ** 53 - 1, Hr = performance.now(), H = I.baseFontFull;
3176
+ e.font = H;
3177
+ let Ur = {
3178
3178
  ctx: e
3179
3179
  }, U = [
3180
3180
  0,
@@ -3196,7 +3196,7 @@ let __tla = (async () => {
3196
3196
  let Xr = () => {
3197
3197
  e.save(), e.beginPath(), e.rect(Kr, qr, Jr, Yr), e.clip();
3198
3198
  }, Zr = D.columns.hasIndex(t2.sourceIndex), Qr = f(t2.group ?? "").overrideTheme, $r = t2.themeOverride === void 0 && Qr === void 0 ? I : mergeAndRealizeTheme(I, Qr, t2.themeOverride), ei = $r.baseFontFull;
3199
- ei !== V && (V = ei, e.font = ei), Xr();
3199
+ ei !== H && (H = ei, e.font = ei), Xr();
3200
3200
  let ti;
3201
3201
  return walkRowsInCol(q, o2, r, c, l, x, S, K, (i2, o3, l2, f2, x2) => {
3202
3202
  var _a, _b, _c;
@@ -3216,7 +3216,7 @@ let __tla = (async () => {
3216
3216
  if (q2.span !== void 0) {
3217
3217
  let [r2, c2] = q2.span, u2 = `${o3},${r2},${c2},${t2.sticky}`;
3218
3218
  if (G === void 0 && (G = /* @__PURE__ */ new Set()), G.has(u2)) {
3219
- Hr--;
3219
+ Vr--;
3220
3220
  return;
3221
3221
  } else {
3222
3222
  let r3 = getSpanBounds(q2.span, a2, i2, t2.width, l2, t2, n), o4 = t2.sticky ? r3[0] : r3[1];
@@ -3265,12 +3265,12 @@ let __tla = (async () => {
3265
3265
  break;
3266
3266
  }
3267
3267
  }
3268
- if (Kr2 > B && !Jr2) {
3268
+ if (Kr2 > V && !Jr2) {
3269
3269
  let n2 = J.baseFontFull;
3270
- n2 !== V && (e.font = n2, V = n2), ti = drawCell(e, q2, t2.sourceIndex, o3, ci, ui, Gr2, i2, Kr2, l2, Y > 0, J, oi ?? J.bgCell, A, j, (di == null ? void 0 : di.hoverAmount) ?? 0, N, F, Ur, P, ti, L, zr, Br, Vr);
3270
+ n2 !== H && (e.font = n2, H = n2), ti = drawCell(e, q2, t2.sourceIndex, o3, ci, ui, Gr2, i2, Kr2, l2, Y > 0, J, oi ?? J.bgCell, A, j, (di == null ? void 0 : di.hoverAmount) ?? 0, N, F, Hr, P, ti, L, B, zr, Br);
3271
3271
  }
3272
- return si && e.restore(), q2.style === "faded" && (e.globalAlpha = 1), Hr--, qr2 && (e.restore(), (_c = ti == null ? void 0 : ti.deprep) == null ? void 0 : _c.call(ti, H), ti = void 0, Xr(), V = ei, e.font = ei), Hr <= 0;
3273
- }), e.restore(), Hr <= 0;
3272
+ return si && e.restore(), q2.style === "faded" && (e.globalAlpha = 1), Vr--, qr2 && (e.restore(), (_c = ti == null ? void 0 : ti.deprep) == null ? void 0 : _c.call(ti, Ur), ti = void 0, Xr(), H = ei, e.font = ei), Vr <= 0;
3273
+ }), e.restore(), Vr <= 0;
3274
3274
  }), Wr;
3275
3275
  }
3276
3276
  var allocatedItem = [
@@ -3359,8 +3359,8 @@ let __tla = (async () => {
3359
3359
  e.save(), e.beginPath(), e.rect(r2 + g2, s, t2.width - g2, o), e.clip();
3360
3360
  let E2 = y(t2.group ?? "").overrideTheme, j = t2.themeOverride === void 0 && E2 === void 0 ? f : mergeAndRealizeTheme(f, E2, t2.themeOverride);
3361
3361
  j.bgHeader !== f.bgHeader && (e.fillStyle = j.bgHeader, e.fill()), j !== f && (e.font = j.baseFontFull);
3362
- let M = u.columns.hasIndex(t2.sourceIndex), N = c !== void 0 || l, P = !N && O === -1 && D === t2.sourceIndex, F = N ? 0 : ((_a2 = h.find((e2) => e2.item[0] === t2.sourceIndex && e2.item[1] === -1)) == null ? void 0 : _a2.hoverAmount) ?? 0, I = (u == null ? void 0 : u.current) !== void 0 && u.current.cell[0] === t2.sourceIndex, L = M ? j.accentColor : I ? j.bgHeaderHasFocus : j.bgHeader, zr = n ? s : 0, Br = t2.sourceIndex === 0 ? 0 : 1;
3363
- M ? (e.fillStyle = L, e.fillRect(r2 + Br, zr, t2.width - Br, o)) : (I || F > 0) && (e.beginPath(), e.rect(r2 + Br, zr, t2.width - Br, o), I && (e.fillStyle = j.bgHeaderHasFocus, e.fill()), F > 0 && (e.globalAlpha = F, e.fillStyle = j.bgHeaderHovered, e.fill(), e.globalAlpha = 1)), drawHeader(e, r2, zr, t2.width, o, t2, M, j, P, P ? k : void 0, P ? A : void 0, I, F, m, S, C), e.restore();
3362
+ let M = u.columns.hasIndex(t2.sourceIndex), N = c !== void 0 || l, P = !N && O === -1 && D === t2.sourceIndex, F = N ? 0 : ((_a2 = h.find((e2) => e2.item[0] === t2.sourceIndex && e2.item[1] === -1)) == null ? void 0 : _a2.hoverAmount) ?? 0, I = (u == null ? void 0 : u.current) !== void 0 && u.current.cell[0] === t2.sourceIndex, L = M ? j.accentColor : I ? j.bgHeaderHasFocus : j.bgHeader, B = n ? s : 0, zr = t2.sourceIndex === 0 ? 0 : 1;
3363
+ M ? (e.fillStyle = L, e.fillRect(r2 + zr, B, t2.width - zr, o)) : (I || F > 0) && (e.beginPath(), e.rect(r2 + zr, B, t2.width - zr, o), I && (e.fillStyle = j.bgHeaderHasFocus, e.fill()), F > 0 && (e.globalAlpha = F, e.fillStyle = j.bgHeaderHovered, e.fill(), e.globalAlpha = 1)), drawHeader(e, r2, B, t2.width, o, t2, M, j, P, P ? k : void 0, P ? A : void 0, I, F, m, S, C), e.restore();
3364
3364
  }), n && drawGroups(e, t, i, a, s, r, f, m, h, g, y, x);
3365
3365
  }
3366
3366
  function drawGroups(e, t, n, r, i, a, o, s, c, l, u, f) {
@@ -4405,15 +4405,15 @@ let __tla = (async () => {
4405
4405
  }
4406
4406
  function drawGrid(e, t) {
4407
4407
  var _a;
4408
- let { canvasCtx: n, headerCanvasCtx: r, width: i, height: a, cellXOffset: o, cellYOffset: s, translateX: c, translateY: l, mappedColumns: u, enableGroups: f, freezeColumns: m, dragAndDropState: h, theme: g, drawFocus: y, headerHeight: x, groupHeaderHeight: S, disabledRows: C, rowHeight: E, verticalBorder: D, overrideCursor: O, isResizing: k, selection: A, fillHandle: j, freezeTrailingRows: M, rows: N, getCellContent: P, getGroupDetails: F, getRowThemeOverride: I, isFocused: L, drawHeaderCallback: zr, prelightCells: Br, drawCellCallback: Vr, highlightRegions: B, resizeCol: Hr, imageLoader: Ur, lastBlitData: V, hoverValues: H, hyperWrapping: U, hoverInfo: W, spriteManager: Wr, maxScaleFactor: G, hasAppendRow: K, touchMode: Gr, enqueue: Kr, renderStateProvider: qr, getCellRenderer: Jr, renderStrategy: Yr, bufferACtx: Xr, bufferBCtx: Zr, damage: Qr, minimumCellWidth: $r, resizeIndicator: ei } = e;
4408
+ let { canvasCtx: n, headerCanvasCtx: r, width: i, height: a, cellXOffset: o, cellYOffset: s, translateX: c, translateY: l, mappedColumns: u, enableGroups: f, freezeColumns: m, dragAndDropState: h, theme: g, drawFocus: y, headerHeight: x, groupHeaderHeight: S, disabledRows: C, rowHeight: E, verticalBorder: D, overrideCursor: O, isResizing: k, selection: A, fillHandle: j, freezeTrailingRows: M, rows: N, getCellContent: P, getGroupDetails: F, getRowThemeOverride: I, isFocused: L, drawHeaderCallback: B, prelightCells: zr, drawCellCallback: Br, highlightRegions: V, resizeCol: Vr, imageLoader: Hr, lastBlitData: H, hoverValues: Ur, hyperWrapping: U, hoverInfo: W, spriteManager: Wr, maxScaleFactor: G, hasAppendRow: K, touchMode: Gr, enqueue: Kr, renderStateProvider: qr, getCellRenderer: Jr, renderStrategy: Yr, bufferACtx: Xr, bufferBCtx: Zr, damage: Qr, minimumCellWidth: $r, resizeIndicator: ei } = e;
4409
4409
  if (i === 0 || a === 0) return;
4410
4410
  let ti = Yr === "double-buffer", J = Math.min(G, Math.ceil(window.devicePixelRatio ?? 1)), ni = Yr !== "direct" && computeCanBlit(e, t), Y = n.canvas;
4411
4411
  (Y.width !== i * J || Y.height !== a * J) && (Y.width = i * J, Y.height = a * J, Y.style.width = i + "px", Y.style.height = a + "px");
4412
4412
  let ri = r.canvas, ii = f ? S + x : x, ai = ii + 1;
4413
4413
  (ri.width !== i * J || ri.height !== ai * J) && (ri.width = i * J, ri.height = ai * J, ri.style.width = i + "px", ri.style.height = ai + "px");
4414
4414
  let oi = Xr.canvas, si = Zr.canvas;
4415
- ti && (oi.width !== i * J || oi.height !== a * J) && (oi.width = i * J, oi.height = a * J, V.current !== void 0 && (V.current.aBufferScroll = void 0)), ti && (si.width !== i * J || si.height !== a * J) && (si.width = i * J, si.height = a * J, V.current !== void 0 && (V.current.bBufferScroll = void 0));
4416
- let ci = V.current;
4415
+ ti && (oi.width !== i * J || oi.height !== a * J) && (oi.width = i * J, oi.height = a * J, H.current !== void 0 && (H.current.aBufferScroll = void 0)), ti && (si.width !== i * J || si.height !== a * J) && (si.width = i * J, si.height = a * J, H.current !== void 0 && (H.current.bBufferScroll = void 0));
4416
+ let ci = H.current;
4417
4417
  if (ni === true && o === (ci == null ? void 0 : ci.cellXOffset) && s === (ci == null ? void 0 : ci.cellYOffset) && c === (ci == null ? void 0 : ci.translateX) && l === (ci == null ? void 0 : ci.translateY)) return;
4418
4418
  let li = null;
4419
4419
  ti && (li = n);
@@ -4422,14 +4422,14 @@ let __tla = (async () => {
4422
4422
  let fi = di.canvas, pi = ti ? fi === oi ? si : oi : Y, mi = typeof E == "number" ? () => E : E;
4423
4423
  ui.save(), di.save(), ui.beginPath(), di.beginPath(), ui.textBaseline = "middle", di.textBaseline = "middle", J !== 1 && (ui.scale(J, J), di.scale(J, J));
4424
4424
  let X = getEffectiveColumns(u, o, i, h, c), hi = [], gi = y && ((_a = A.current) == null ? void 0 : _a.cell[1]) === s && l === 0, vi = false;
4425
- if (B !== void 0) {
4426
- for (let e2 of B) if (e2.style !== "no-outline" && e2.range.y === s && l === 0) {
4425
+ if (V !== void 0) {
4426
+ for (let e2 of V) if (e2.style !== "no-outline" && e2.range.y === s && l === 0) {
4427
4427
  vi = true;
4428
4428
  break;
4429
4429
  }
4430
4430
  }
4431
4431
  let yi = () => {
4432
- drawGridHeaders(ui, X, f, W, i, c, x, S, h, k, A, g, Wr, H, D, F, Qr, zr, Gr), drawGridLines(ui, X, s, c, l, i, a, void 0, void 0, S, ii, mi, I, D, M, N, g, true), ui.beginPath(), ui.moveTo(0, ai - 0.5), ui.lineTo(i, ai - 0.5), ui.strokeStyle = blend(g.headerBottomBorderColor ?? g.horizontalBorderColor ?? g.borderColor, g.bgHeader), ui.stroke(), vi && drawHighlightRings(ui, i, a, o, s, c, l, u, m, x, S, E, M, N, B, g), gi && drawFillHandle(ui, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N);
4432
+ drawGridHeaders(ui, X, f, W, i, c, x, S, h, k, A, g, Wr, Ur, D, F, Qr, B, Gr), drawGridLines(ui, X, s, c, l, i, a, void 0, void 0, S, ii, mi, I, D, M, N, g, true), ui.beginPath(), ui.moveTo(0, ai - 0.5), ui.lineTo(i, ai - 0.5), ui.strokeStyle = blend(g.headerBottomBorderColor ?? g.horizontalBorderColor ?? g.borderColor, g.bgHeader), ui.stroke(), vi && drawHighlightRings(ui, i, a, o, s, c, l, u, m, x, S, E, M, N, V, g), gi && drawFillHandle(ui, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N);
4433
4433
  };
4434
4434
  if (Qr !== void 0) {
4435
4435
  let e2 = X[X.length - 1].sourceIndex + 1, t2 = Qr.hasItemInRegion([
@@ -4465,7 +4465,7 @@ let __tla = (async () => {
4465
4465
  when: M > 0
4466
4466
  }
4467
4467
  ]), n2 = (e3) => {
4468
- drawCells(e3, X, u, a, ii, c, l, s, N, mi, P, F, I, C, L, y, M, K, hi, Qr, A, Br, B, Ur, Wr, H, W, Vr, U, g, Kr, qr, Jr, O, $r);
4468
+ drawCells(e3, X, u, a, ii, c, l, s, N, mi, P, F, I, C, L, y, M, K, hi, Qr, A, zr, V, Hr, Wr, Ur, W, Br, U, g, Kr, qr, Jr, O, $r);
4469
4469
  let t3 = A.current;
4470
4470
  j && y && t3 !== void 0 && Qr.has(rectBottomRight(t3.range)) && drawFillHandle(e3, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N);
4471
4471
  };
@@ -4478,16 +4478,16 @@ let __tla = (async () => {
4478
4478
  hi = e2;
4479
4479
  } else ni !== false && (assert(ci !== void 0), hi = blitResizedCol(ci, o, s, c, l, i, a, ii, X, ni));
4480
4480
  overdrawStickyBoundaries(di, X, i, a, M, N, D, mi, g);
4481
- let bi = drawHighlightRings(di, i, a, o, s, c, l, u, m, x, S, E, M, N, B, g), xi = y ? drawFillHandle(di, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N) : void 0;
4481
+ let bi = drawHighlightRings(di, i, a, o, s, c, l, u, m, x, S, E, M, N, V, g), xi = y ? drawFillHandle(di, i, a, s, c, l, X, u, g, ii, A, mi, P, M, K, j, N) : void 0;
4482
4482
  if (di.fillStyle = g.bgCell, hi.length > 0) {
4483
4483
  di.beginPath();
4484
4484
  for (let e2 of hi) di.rect(e2.x, e2.y, e2.width, e2.height);
4485
4485
  di.clip(), di.fill(), di.beginPath();
4486
4486
  } else di.fillRect(0, 0, i, a);
4487
- let Si = drawCells(di, X, u, a, ii, c, l, s, N, mi, P, F, I, C, L, y, M, K, hi, Qr, A, Br, B, Ur, Wr, H, W, Vr, U, g, Kr, qr, Jr, O, $r);
4488
- drawBlanks(di, X, u, i, a, ii, c, l, s, N, mi, I, A.rows, C, M, K, hi, Qr, g), drawExtraRowThemes(di, X, s, c, l, i, a, hi, ii, mi, I, D, M, N, g), drawGridLines(di, X, s, c, l, i, a, hi, Si, S, ii, mi, I, D, M, N, g), bi == null ? void 0 : bi(), xi == null ? void 0 : xi(), k && ei !== "none" && walkColumns(X, 0, c, 0, ii, (e2, t2) => e2.sourceIndex === Hr ? (drawColumnResizeOutline(ui, t2 + e2.width, 0, ii + 1, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgHeader)), ei === "full" && drawColumnResizeOutline(di, t2 + e2.width, ii, a, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgCell)), true) : false), li !== null && (li.fillStyle = g.bgCell, li.fillRect(0, 0, i, a), li.drawImage(di.canvas, 0, 0));
4487
+ let Si = drawCells(di, X, u, a, ii, c, l, s, N, mi, P, F, I, C, L, y, M, K, hi, Qr, A, zr, V, Hr, Wr, Ur, W, Br, U, g, Kr, qr, Jr, O, $r);
4488
+ drawBlanks(di, X, u, i, a, ii, c, l, s, N, mi, I, A.rows, C, M, K, hi, Qr, g), drawExtraRowThemes(di, X, s, c, l, i, a, hi, ii, mi, I, D, M, N, g), drawGridLines(di, X, s, c, l, i, a, hi, Si, S, ii, mi, I, D, M, N, g), bi == null ? void 0 : bi(), xi == null ? void 0 : xi(), k && ei !== "none" && walkColumns(X, 0, c, 0, ii, (e2, t2) => e2.sourceIndex === Vr ? (drawColumnResizeOutline(ui, t2 + e2.width, 0, ii + 1, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgHeader)), ei === "full" && drawColumnResizeOutline(di, t2 + e2.width, ii, a, blend(g.resizeIndicatorColor ?? g.accentLight, g.bgCell)), true) : false), li !== null && (li.fillStyle = g.bgCell, li.fillRect(0, 0, i, a), li.drawImage(di.canvas, 0, 0));
4489
4489
  let Ci = getLastRow(X, a, ii, c, l, s, N, mi, M, K);
4490
- Ur == null ? void 0 : Ur.setWindow({
4490
+ Hr == null ? void 0 : Hr.setWindow({
4491
4491
  x: o,
4492
4492
  y: s,
4493
4493
  width: X.length,
@@ -4496,7 +4496,7 @@ let __tla = (async () => {
4496
4496
  length: M
4497
4497
  }, (e2, t2) => N - 1 - t2));
4498
4498
  let wi = ci !== void 0 && (o !== ci.cellXOffset || c !== ci.translateX), Ti = ci !== void 0 && (s !== ci.cellYOffset || l !== ci.translateY);
4499
- V.current = {
4499
+ H.current = {
4500
4500
  cellXOffset: o,
4501
4501
  cellYOffset: s,
4502
4502
  translateX: c,
@@ -4610,7 +4610,7 @@ let __tla = (async () => {
4610
4610
  var _a;
4611
4611
  return e.kind === GridCellKind.Custom ? e.copyData : ((_a = t == null ? void 0 : t(e)) == null ? void 0 : _a.getAccessibilityString(e)) ?? "";
4612
4612
  }, data_grid_default = import_react.memo(import_react.forwardRef((e, t) => {
4613
- let { width: n, height: r, accessibilityHeight: i, columns: a, cellXOffset: o, cellYOffset: s, headerHeight: c, fillHandle: l = false, groupHeaderHeight: u, rowHeight: f, rows: m, getCellContent: h, getRowThemeOverride: g, onHeaderMenuClick: y, onHeaderIndicatorClick: x, enableGroups: S, isFilling: C, onCanvasFocused: E, onCanvasBlur: D, isFocused: O, selection: k, freezeColumns: A, onContextMenu: j, freezeTrailingRows: M, fixedShadowX: N = true, fixedShadowY: P = true, drawFocusRing: F, onMouseDown: I, onMouseUp: L, onMouseMoveRaw: zr, onMouseMove: Br, onItemHovered: Vr, dragAndDropState: B, firstColAccessible: Hr, onKeyDown: Ur, onKeyUp: V, highlightRegions: H, canvasRef: U, onDragStart: W, onDragEnd: Wr, eventTargetRef: G, isResizing: K, resizeColumn: Gr, isDragging: Kr, isDraggable: qr = false, allowResize: Jr, disabledRows: Yr, hasAppendRow: Xr, getGroupDetails: Zr, theme: Qr, prelightCells: $r, headerIcons: ei, verticalBorder: ti, drawCell: J, drawHeader: ni, onCellFocused: Y, onDragOverCell: ri, onDrop: ii, onDragLeave: ai, imageWindowLoader: si, smoothScrollX: fi = false, smoothScrollY: pi = false, experimental: mi, getCellRenderer: X, resizeIndicator: hi = "full" } = e, gi = e.translateX ?? 0, _i = e.translateY ?? 0, vi = Math.max(A, Math.min(a.length - 1, o)), yi = import_react.useRef(null), bi = import_react.useRef((mi == null ? void 0 : mi.eventTarget) ?? window), xi = bi.current, Si = si, Ci = import_react.useRef(), [Ti, Ei] = import_react.useState(false), Di = import_react.useRef([]), Oi = import_react.useRef(), [ki, Ai] = import_react.useState(), [ji, Mi] = import_react.useState(), Ni = import_react.useRef(null), [Pi, Fi] = import_react.useState(), [Ii, Li] = import_react.useState(false), Ri = import_react.useRef(Ii);
4613
+ let { width: n, height: r, accessibilityHeight: i, columns: a, cellXOffset: o, cellYOffset: s, headerHeight: c, fillHandle: l = false, groupHeaderHeight: u, rowHeight: f, rows: m, getCellContent: h, getRowThemeOverride: g, onHeaderMenuClick: y, onHeaderIndicatorClick: x, enableGroups: S, isFilling: C, onCanvasFocused: E, onCanvasBlur: D, isFocused: O, selection: k, freezeColumns: A, onContextMenu: j, freezeTrailingRows: M, fixedShadowX: N = true, fixedShadowY: P = true, drawFocusRing: F, onMouseDown: I, onMouseUp: L, onMouseMoveRaw: B, onMouseMove: zr, onItemHovered: Br, dragAndDropState: V, firstColAccessible: Vr, onKeyDown: Hr, onKeyUp: H, highlightRegions: Ur, canvasRef: U, onDragStart: W, onDragEnd: Wr, eventTargetRef: G, isResizing: K, resizeColumn: Gr, isDragging: Kr, isDraggable: qr = false, allowResize: Jr, disabledRows: Yr, hasAppendRow: Xr, getGroupDetails: Zr, theme: Qr, prelightCells: $r, headerIcons: ei, verticalBorder: ti, drawCell: J, drawHeader: ni, onCellFocused: Y, onDragOverCell: ri, onDrop: ii, onDragLeave: ai, imageWindowLoader: si, smoothScrollX: fi = false, smoothScrollY: pi = false, experimental: mi, getCellRenderer: X, resizeIndicator: hi = "full" } = e, gi = e.translateX ?? 0, _i = e.translateY ?? 0, vi = Math.max(A, Math.min(a.length - 1, o)), yi = import_react.useRef(null), bi = import_react.useRef((mi == null ? void 0 : mi.eventTarget) ?? window), xi = bi.current, Si = si, Ci = import_react.useRef(), [Ti, Ei] = import_react.useState(false), Di = import_react.useRef([]), Oi = import_react.useRef(), [ki, Ai] = import_react.useState(), [ji, Mi] = import_react.useState(), Ni = import_react.useRef(null), [Pi, Fi] = import_react.useState(), [Ii, Li] = import_react.useState(false), Ri = import_react.useRef(Ii);
4614
4614
  Ri.current = Ii;
4615
4615
  let zi = import_react.useMemo(() => new SpriteManager(ei, () => {
4616
4616
  na.current = void 0, sa.current();
@@ -4629,7 +4629,7 @@ let __tla = (async () => {
4629
4629
  Hi,
4630
4630
  Ui
4631
4631
  ]);
4632
- let Wi = useMappedColumns(a, A), Gi = N ? getStickyWidth(Wi, B) : 0, Ki = import_react.useCallback((e2, t2, i2) => {
4632
+ let Wi = useMappedColumns(a, A), Gi = N ? getStickyWidth(Wi, V) : 0, Ki = import_react.useCallback((e2, t2, i2) => {
4633
4633
  let a2 = e2.getBoundingClientRect();
4634
4634
  if (t2 >= Wi.length || i2 >= m) return;
4635
4635
  let o2 = a2.width / n, c2 = computeBounds(t2, i2, n, r, u, Bi, vi, s, gi, _i, m, A, M, Wi, f);
@@ -4821,7 +4821,7 @@ let __tla = (async () => {
4821
4821
  mappedColumns: Wi,
4822
4822
  enableGroups: S,
4823
4823
  freezeColumns: A,
4824
- dragAndDropState: B,
4824
+ dragAndDropState: V,
4825
4825
  theme: Qr,
4826
4826
  headerHeight: c,
4827
4827
  groupHeaderHeight: u,
@@ -4847,7 +4847,7 @@ let __tla = (async () => {
4847
4847
  getRowThemeOverride: g,
4848
4848
  drawHeaderCallback: ni,
4849
4849
  prelightCells: $r,
4850
- highlightRegions: H,
4850
+ highlightRegions: Ur,
4851
4851
  imageLoader: Si,
4852
4852
  lastBlitData: Oi,
4853
4853
  damage: Ci.current,
@@ -4877,7 +4877,7 @@ let __tla = (async () => {
4877
4877
  Wi,
4878
4878
  S,
4879
4879
  A,
4880
- B,
4880
+ V,
4881
4881
  Qr,
4882
4882
  c,
4883
4883
  u,
@@ -4900,7 +4900,7 @@ let __tla = (async () => {
4900
4900
  J,
4901
4901
  ni,
4902
4902
  $r,
4903
- H,
4903
+ Ur,
4904
4904
  Si,
4905
4905
  zi,
4906
4906
  Ti,
@@ -5097,7 +5097,7 @@ let __tla = (async () => {
5097
5097
  let a2 = (e3, t3) => {
5098
5098
  Ai((n3) => n3 === e3 || (n3 == null ? void 0 : n3[0][0]) === (e3 == null ? void 0 : e3[0][0]) && (n3 == null ? void 0 : n3[0][1]) === (e3 == null ? void 0 : e3[0][1]) && ((n3 == null ? void 0 : n3[1][0]) === (e3 == null ? void 0 : e3[1][0]) && (n3 == null ? void 0 : n3[1][1]) === (e3 == null ? void 0 : e3[1][1]) || !t3) ? n3 : e3);
5099
5099
  };
5100
- if (!mouseEventArgsAreEqual(i2, Ia.current)) Fi(void 0), Vr == null ? void 0 : Vr(i2), a2(i2.kind === "out-of-bounds" ? void 0 : [
5100
+ if (!mouseEventArgsAreEqual(i2, Ia.current)) Fi(void 0), Br == null ? void 0 : Br(i2), a2(i2.kind === "out-of-bounds" ? void 0 : [
5101
5101
  i2.location,
5102
5102
  [
5103
5103
  i2.localEventX,
@@ -5121,16 +5121,16 @@ let __tla = (async () => {
5121
5121
  i2.location
5122
5122
  ]));
5123
5123
  }
5124
- let o2 = i2.location[0] >= (Hr ? 0 : 1);
5125
- Mi(i2.kind === "header" && i2.isEdge && o2 && Jr === true), fa(i2.kind === "cell" && i2.isFillHandle), zr == null ? void 0 : zr(e2), Br(i2);
5124
+ let o2 = i2.location[0] >= (Vr ? 0 : 1);
5125
+ Mi(i2.kind === "header" && i2.isEdge && o2 && Jr === true), fa(i2.kind === "cell" && i2.isFillHandle), B == null ? void 0 : B(e2), zr(i2);
5126
5126
  }, [
5127
5127
  G,
5128
5128
  qi,
5129
- Hr,
5129
+ Vr,
5130
5130
  Jr,
5131
+ B,
5131
5132
  zr,
5132
5133
  Br,
5133
- Vr,
5134
5134
  h,
5135
5135
  X,
5136
5136
  la
@@ -5139,7 +5139,7 @@ let __tla = (async () => {
5139
5139
  let t2 = yi.current;
5140
5140
  if (t2 === null) return;
5141
5141
  let n2, r2;
5142
- k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), Ur == null ? void 0 : Ur({
5142
+ k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), Hr == null ? void 0 : Hr({
5143
5143
  bounds: n2,
5144
5144
  stopPropagation: () => e2.stopPropagation(),
5145
5145
  preventDefault: () => e2.preventDefault(),
@@ -5154,14 +5154,14 @@ let __tla = (async () => {
5154
5154
  location: r2
5155
5155
  });
5156
5156
  }, [
5157
- Ur,
5157
+ Hr,
5158
5158
  k,
5159
5159
  Ki
5160
5160
  ]), za = import_react.useCallback((e2) => {
5161
5161
  let t2 = yi.current;
5162
5162
  if (t2 === null) return;
5163
5163
  let n2, r2;
5164
- k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), V == null ? void 0 : V({
5164
+ k.current !== void 0 && (n2 = Ki(t2, k.current.cell[0], k.current.cell[1]), r2 = k.current.cell), H == null ? void 0 : H({
5165
5165
  bounds: n2,
5166
5166
  stopPropagation: () => e2.stopPropagation(),
5167
5167
  preventDefault: () => e2.preventDefault(),
@@ -5176,7 +5176,7 @@ let __tla = (async () => {
5176
5176
  location: r2
5177
5177
  });
5178
5178
  }, [
5179
- V,
5179
+ H,
5180
5180
  k,
5181
5181
  Ki
5182
5182
  ]), Ba = import_react.useCallback((e2) => {
@@ -5249,7 +5249,7 @@ let __tla = (async () => {
5249
5249
  useEventListener("dragover", import_react.useCallback((e2) => {
5250
5250
  let t2 = yi.current;
5251
5251
  if (ii !== void 0 && e2.preventDefault(), t2 === null || ri === void 0) return;
5252
- let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location, i2 = n2 - (Hr ? 0 : 1), [a2, o2] = Va.current ?? [];
5252
+ let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location, i2 = n2 - (Vr ? 0 : 1), [a2, o2] = Va.current ?? [];
5253
5253
  (a2 !== i2 || o2 !== r2) && (Va.current = [
5254
5254
  i2,
5255
5255
  r2
@@ -5258,7 +5258,7 @@ let __tla = (async () => {
5258
5258
  r2
5259
5259
  ], e2.dataTransfer));
5260
5260
  }, [
5261
- Hr,
5261
+ Vr,
5262
5262
  qi,
5263
5263
  ri,
5264
5264
  ii
@@ -5272,11 +5272,11 @@ let __tla = (async () => {
5272
5272
  e2.preventDefault();
5273
5273
  let [n2, r2] = qi(t2, e2.clientX, e2.clientY).location;
5274
5274
  ii([
5275
- n2 - (Hr ? 0 : 1),
5275
+ n2 - (Vr ? 0 : 1),
5276
5276
  r2
5277
5277
  ], e2.dataTransfer);
5278
5278
  }, [
5279
- Hr,
5279
+ Vr,
5280
5280
  qi,
5281
5281
  ii
5282
5282
  ]), (G == null ? void 0 : G.current) ?? null, false, false), useEventListener("dragleave", import_react.useCallback(() => {
@@ -5318,8 +5318,8 @@ let __tla = (async () => {
5318
5318
  let Ja = import_react.useRef(), Ya = useDebouncedMemo(() => {
5319
5319
  var _a2, _b, _c;
5320
5320
  if (n < 50 || (mi == null ? void 0 : mi.disableAccessibilityTree) === true) return null;
5321
- let e2 = getEffectiveColumns(Wi, vi, n, B, gi), t2 = Hr ? 0 : -1;
5322
- !Hr && ((_a2 = e2[0]) == null ? void 0 : _a2.sourceIndex) === 0 && (e2 = e2.slice(1));
5321
+ let e2 = getEffectiveColumns(Wi, vi, n, V, gi), t2 = Vr ? 0 : -1;
5322
+ !Vr && ((_a2 = e2[0]) == null ? void 0 : _a2.sourceIndex) === 0 && (e2 = e2.slice(1));
5323
5323
  let [r2, a2] = ((_b = k.current) == null ? void 0 : _b.cell) ?? [], o2 = (_c = k.current) == null ? void 0 : _c.range, c2 = e2.map((e3) => e3.sourceIndex), l2 = (0, import_range$1.default)(s, Math.min(m, s + i));
5324
5324
  return r2 !== void 0 && a2 !== void 0 && !(c2.includes(r2) && l2.includes(a2)) && qa(null), import_react.createElement("table", {
5325
5325
  key: "access-tree",
@@ -5366,7 +5366,7 @@ let __tla = (async () => {
5366
5366
  "data-testid": u2,
5367
5367
  onClick: () => {
5368
5368
  let e4 = U == null ? void 0 : U.current;
5369
- if (e4 != null) return Ur == null ? void 0 : Ur({
5369
+ if (e4 != null) return Hr == null ? void 0 : Hr({
5370
5370
  bounds: Ki(e4, i2, n2),
5371
5371
  cancel: () => void 0,
5372
5372
  preventDefault: () => void 0,
@@ -5393,7 +5393,7 @@ let __tla = (async () => {
5393
5393
  n,
5394
5394
  Wi,
5395
5395
  vi,
5396
- B,
5396
+ V,
5397
5397
  gi,
5398
5398
  m,
5399
5399
  s,
@@ -5402,7 +5402,7 @@ let __tla = (async () => {
5402
5402
  qa,
5403
5403
  h,
5404
5404
  U,
5405
- Ur,
5405
+ Hr,
5406
5406
  Ki,
5407
5407
  Y
5408
5408
  ], 200), Xa = A === 0 || !N ? 0 : vi > A ? 1 : (0, import_clamp$2.default)(-gi / 100, 0, 1), Za = -s * 32 + _i, Qa = P ? (0, import_clamp$2.default)(-Za / 100, 0, 1) : 0, $a = import_react.useMemo(() => {
@@ -5467,15 +5467,15 @@ let __tla = (async () => {
5467
5467
  return (0, import_clamp$1.default)(Math.round(t - (e.growOffset ?? 0)), Math.ceil(n), Math.floor(r));
5468
5468
  }
5469
5469
  var data_grid_dnd_default = (e) => {
5470
- let [t, n] = import_react.useState(), [r, i] = import_react.useState(), [a, o] = import_react.useState(), [s, c] = import_react.useState(), [l, u] = import_react.useState(false), [f, m] = import_react.useState(), [h, g] = import_react.useState(), [y, x] = import_react.useState(), [S, C] = import_react.useState(false), [E, D] = import_react.useState(), { onHeaderMenuClick: O, onHeaderIndicatorClick: k, getCellContent: A, onColumnMoved: j, onColumnResize: M, onColumnResizeStart: N, onColumnResizeEnd: P, gridRef: F, maxColumnWidth: I, minColumnWidth: L, onRowMoved: zr, lockColumns: Br, onColumnProposeMove: Vr, onMouseDown: B, onMouseUp: Hr, onItemHovered: Ur, onDragStart: V, canvasRef: H } = e, U = (M ?? P ?? N) !== void 0, { columns: W, selection: Wr } = e, G = Wr.columns, K = import_react.useCallback((e2) => {
5470
+ let [t, n] = import_react.useState(), [r, i] = import_react.useState(), [a, o] = import_react.useState(), [s, c] = import_react.useState(), [l, u] = import_react.useState(false), [f, m] = import_react.useState(), [h, g] = import_react.useState(), [y, x] = import_react.useState(), [S, C] = import_react.useState(false), [E, D] = import_react.useState(), { onHeaderMenuClick: O, onHeaderIndicatorClick: k, getCellContent: A, onColumnMoved: j, onColumnResize: M, onColumnResizeStart: N, onColumnResizeEnd: P, gridRef: F, maxColumnWidth: I, minColumnWidth: L, onRowMoved: B, lockColumns: zr, onColumnProposeMove: Br, onMouseDown: V, onMouseUp: Vr, onItemHovered: Hr, onDragStart: H, canvasRef: Ur } = e, U = (M ?? P ?? N) !== void 0, { columns: W, selection: Wr } = e, G = Wr.columns, K = import_react.useCallback((e2) => {
5471
5471
  let [t2, n2] = e2.location;
5472
- a !== void 0 && s !== t2 && t2 >= Br ? (u(true), c(t2)) : h !== void 0 && n2 !== void 0 ? (C(true), x(Math.max(0, n2))) : r === void 0 && !l && !S && (Ur == null ? void 0 : Ur(e2));
5472
+ a !== void 0 && s !== t2 && t2 >= zr ? (u(true), c(t2)) : h !== void 0 && n2 !== void 0 ? (C(true), x(Math.max(0, n2))) : r === void 0 && !l && !S && (Hr == null ? void 0 : Hr(e2));
5473
5473
  }, [
5474
5474
  a,
5475
5475
  h,
5476
5476
  s,
5477
- Ur,
5478
- Br,
5477
+ Hr,
5478
+ zr,
5479
5479
  r,
5480
5480
  l,
5481
5481
  S
@@ -5486,26 +5486,26 @@ let __tla = (async () => {
5486
5486
  if (e2.kind === "out-of-bounds" && e2.isEdge && U) {
5487
5487
  let e3 = (_a = F == null ? void 0 : F.current) == null ? void 0 : _a.getBounds(W.length - 1, -1);
5488
5488
  e3 !== void 0 && (n(e3.x), i(W.length - 1));
5489
- } else if (e2.kind === "header" && t2 >= Br) {
5490
- let r3 = H == null ? void 0 : H.current;
5489
+ } else if (e2.kind === "header" && t2 >= zr) {
5490
+ let r3 = Ur == null ? void 0 : Ur.current;
5491
5491
  if (e2.isEdge && U && r3) {
5492
5492
  n(e2.bounds.x), i(t2);
5493
5493
  let a2 = r3.getBoundingClientRect().width / r3.offsetWidth, o2 = e2.bounds.width / a2;
5494
5494
  N == null ? void 0 : N(W[t2], o2, t2, o2 + (W[t2].growOffset ?? 0));
5495
5495
  } else e2.kind === "header" && q && (m(e2.bounds.x), o(t2));
5496
- } else e2.kind === "cell" && Br > 0 && t2 === 0 && r2 !== void 0 && zr !== void 0 && (D(e2.bounds.y), g(r2));
5496
+ } else e2.kind === "cell" && zr > 0 && t2 === 0 && r2 !== void 0 && B !== void 0 && (D(e2.bounds.y), g(r2));
5497
5497
  }
5498
- B == null ? void 0 : B(e2);
5498
+ V == null ? void 0 : V(e2);
5499
5499
  }, [
5500
- B,
5500
+ V,
5501
5501
  U,
5502
- Br,
5503
5502
  zr,
5503
+ B,
5504
5504
  F,
5505
5505
  W,
5506
5506
  q,
5507
5507
  N,
5508
- H
5508
+ Ur
5509
5509
  ]), Kr = import_react.useCallback((e2, t2) => {
5510
5510
  l || S || (O == null ? void 0 : O(e2, t2));
5511
5511
  }, [
@@ -5535,11 +5535,11 @@ let __tla = (async () => {
5535
5535
  P == null ? void 0 : P(t3, n2, e4, n2 + (t3.growOffset ?? 0));
5536
5536
  }
5537
5537
  }
5538
- Yr(), a !== void 0 && s !== void 0 && (j == null ? void 0 : j(a, s)), h !== void 0 && y !== void 0 && (zr == null ? void 0 : zr(h, y));
5538
+ Yr(), a !== void 0 && s !== void 0 && (j == null ? void 0 : j(a, s)), h !== void 0 && y !== void 0 && (B == null ? void 0 : B(h, y));
5539
5539
  }
5540
- Hr == null ? void 0 : Hr(e2, t2);
5540
+ Vr == null ? void 0 : Vr(e2, t2);
5541
5541
  }, [
5542
- Hr,
5542
+ Vr,
5543
5543
  r,
5544
5544
  a,
5545
5545
  s,
@@ -5552,19 +5552,19 @@ let __tla = (async () => {
5552
5552
  I,
5553
5553
  M,
5554
5554
  j,
5555
- zr,
5555
+ B,
5556
5556
  Yr
5557
5557
  ]), Zr = import_react.useMemo(() => {
5558
- if (!(a === void 0 || s === void 0) && a !== s && (Vr == null ? void 0 : Vr(a, s)) !== false) return {
5558
+ if (!(a === void 0 || s === void 0) && a !== s && (Br == null ? void 0 : Br(a, s)) !== false) return {
5559
5559
  src: a,
5560
5560
  dest: s
5561
5561
  };
5562
5562
  }, [
5563
5563
  a,
5564
5564
  s,
5565
- Vr
5565
+ Br
5566
5566
  ]), Qr = import_react.useCallback((e2) => {
5567
- let n2 = H == null ? void 0 : H.current;
5567
+ let n2 = Ur == null ? void 0 : Ur.current;
5568
5568
  if (a !== void 0 && f !== void 0) Math.abs(e2.clientX - f) > 20 && u(true);
5569
5569
  else if (h !== void 0 && E !== void 0) Math.abs(e2.clientY - E) > 20 && C(true);
5570
5570
  else if (r !== void 0 && t !== void 0 && n2) {
@@ -5587,7 +5587,7 @@ let __tla = (async () => {
5587
5587
  I,
5588
5588
  M,
5589
5589
  G,
5590
- H
5590
+ Ur
5591
5591
  ]), $r = import_react.useCallback((e2, t2) => {
5592
5592
  if (h === void 0 || y === void 0) return A(e2, t2);
5593
5593
  let [n2, r2] = e2;
@@ -5600,10 +5600,10 @@ let __tla = (async () => {
5600
5600
  y,
5601
5601
  A
5602
5602
  ]), ei = import_react.useCallback((e2) => {
5603
- V == null ? void 0 : V(e2), e2.defaultPrevented() || Yr();
5603
+ H == null ? void 0 : H(e2), e2.defaultPrevented() || Yr();
5604
5604
  }, [
5605
5605
  Yr,
5606
- V
5606
+ H
5607
5607
  ]);
5608
5608
  return import_react.createElement(data_grid_default, {
5609
5609
  accessibilityHeight: e.accessibilityHeight,
@@ -5810,50 +5810,50 @@ let __tla = (async () => {
5810
5810
  use_kinetic_scroll_default(h && browserIsSafari.value, I, O);
5811
5811
  let L = import_react.useRef(I);
5812
5812
  L.current = I;
5813
- let zr = import_react.useRef(), Br = import_react.useRef(false);
5813
+ let B = import_react.useRef(), zr = import_react.useRef(false);
5814
5814
  import_react.useLayoutEffect(() => {
5815
- Br.current ? I() : Br.current = true;
5815
+ zr.current ? I() : zr.current = true;
5816
5816
  }, [
5817
5817
  I,
5818
5818
  l,
5819
5819
  u
5820
5820
  ]);
5821
- let Vr = import_react.useCallback((e2) => {
5821
+ let Br = import_react.useCallback((e2) => {
5822
5822
  O.current = e2, g !== void 0 && (g.current = e2);
5823
5823
  }, [
5824
5824
  g
5825
- ]), B = 0, Hr = 0;
5825
+ ]), V = 0, Vr = 0;
5826
5826
  for (x.push(import_react.createElement("div", {
5827
- key: B++,
5827
+ key: V++,
5828
5828
  style: {
5829
5829
  width: i,
5830
5830
  height: 0
5831
5831
  }
5832
- })); Hr < r; ) {
5833
- let e2 = Math.min(5e6, r - Hr);
5832
+ })); Vr < r; ) {
5833
+ let e2 = Math.min(5e6, r - Vr);
5834
5834
  x.push(import_react.createElement("div", {
5835
- key: B++,
5835
+ key: V++,
5836
5836
  style: {
5837
5837
  width: 0,
5838
5838
  height: e2
5839
5839
  }
5840
- })), Hr += e2;
5841
- }
5842
- let { ref: Ur, width: V, height: H } = useResizeDetector(y);
5843
- return typeof window < "u" && (((_a = zr.current) == null ? void 0 : _a.height) !== H || ((_b = zr.current) == null ? void 0 : _b.width) !== V) && (window.setTimeout(() => L.current(), 0), zr.current = {
5844
- width: V,
5845
- height: H
5846
- }), (V ?? 0) === 0 || (H ?? 0) === 0 ? import_react.createElement("div", {
5847
- ref: Ur
5840
+ })), Vr += e2;
5841
+ }
5842
+ let { ref: Hr, width: H, height: Ur } = useResizeDetector(y);
5843
+ return typeof window < "u" && (((_a = B.current) == null ? void 0 : _a.height) !== Ur || ((_b = B.current) == null ? void 0 : _b.width) !== H) && (window.setTimeout(() => L.current(), 0), B.current = {
5844
+ width: H,
5845
+ height: Ur
5846
+ }), (H ?? 0) === 0 || (Ur ?? 0) === 0 ? import_react.createElement("div", {
5847
+ ref: Hr
5848
5848
  }) : import_react.createElement("div", {
5849
- ref: Ur
5849
+ ref: Hr
5850
5850
  }, import_react.createElement(ScrollRegionStyle, {
5851
5851
  isSafari: browserIsSafari.value
5852
5852
  }, import_react.createElement("div", {
5853
5853
  className: "dvn-underlay"
5854
5854
  }, t), import_react.createElement("div", {
5855
- ref: Vr,
5856
- style: zr.current,
5855
+ ref: Br,
5856
+ style: B.current,
5857
5857
  draggable: o,
5858
5858
  onDragStart: (e2) => {
5859
5859
  o || (e2.stopPropagation(), e2.preventDefault());
@@ -5869,7 +5869,7 @@ let __tla = (async () => {
5869
5869
  }), import_react.createElement("div", {
5870
5870
  ref: j,
5871
5871
  style: {
5872
- height: H,
5872
+ height: Ur,
5873
5873
  maxHeight: n - Math.ceil(k % 1),
5874
5874
  position: "sticky",
5875
5875
  top: 0,
@@ -5883,15 +5883,15 @@ let __tla = (async () => {
5883
5883
  }, f))))));
5884
5884
  };
5885
5885
  var scrolling_data_grid_default = (e) => {
5886
- let { columns: t, rows: n, rowHeight: r, headerHeight: i, groupHeaderHeight: a, enableGroups: o, freezeColumns: s, experimental: c, nonGrowWidth: l, clientSize: u, className: f, onVisibleRegionChanged: m, scrollRef: h, preventDiagonalScrolling: g, rightElement: y, rightElementProps: x, overscrollX: S, overscrollY: C, initialSize: E, smoothScrollX: D = false, smoothScrollY: O = false, isDraggable: k } = e, { paddingRight: A, paddingBottom: j } = c ?? {}, [M, N] = u, P = import_react.useRef(), F = import_react.useRef(), I = import_react.useRef(), L = import_react.useRef(), zr = l + Math.max(0, S ?? 0), Br = o ? i + a : i;
5887
- if (typeof r == "number") Br += n * r;
5888
- else for (let e2 = 0; e2 < n; e2++) Br += r(e2);
5889
- C !== void 0 && (Br += C);
5890
- let Vr = import_react.useRef(), B = import_react.useCallback(() => {
5886
+ let { columns: t, rows: n, rowHeight: r, headerHeight: i, groupHeaderHeight: a, enableGroups: o, freezeColumns: s, experimental: c, nonGrowWidth: l, clientSize: u, className: f, onVisibleRegionChanged: m, scrollRef: h, preventDiagonalScrolling: g, rightElement: y, rightElementProps: x, overscrollX: S, overscrollY: C, initialSize: E, smoothScrollX: D = false, smoothScrollY: O = false, isDraggable: k } = e, { paddingRight: A, paddingBottom: j } = c ?? {}, [M, N] = u, P = import_react.useRef(), F = import_react.useRef(), I = import_react.useRef(), L = import_react.useRef(), B = l + Math.max(0, S ?? 0), zr = o ? i + a : i;
5887
+ if (typeof r == "number") zr += n * r;
5888
+ else for (let e2 = 0; e2 < n; e2++) zr += r(e2);
5889
+ C !== void 0 && (zr += C);
5890
+ let Br = import_react.useRef(), V = import_react.useCallback(() => {
5891
5891
  var _a, _b;
5892
- if (Vr.current === void 0) return;
5892
+ if (Br.current === void 0) return;
5893
5893
  let e2 = {
5894
- ...Vr.current
5894
+ ...Br.current
5895
5895
  }, i2 = 0, a2 = e2.x < 0 ? -e2.x : 0, o2 = 0, c2 = 0;
5896
5896
  e2.x = e2.x < 0 ? 0 : e2.x;
5897
5897
  let l2 = 0;
@@ -5938,29 +5938,29 @@ let __tla = (async () => {
5938
5938
  s,
5939
5939
  D,
5940
5940
  O
5941
- ]), Hr = import_react.useCallback((e2) => {
5942
- Vr.current = e2, B();
5941
+ ]), Vr = import_react.useCallback((e2) => {
5942
+ Br.current = e2, V();
5943
5943
  }, [
5944
- B
5944
+ V
5945
5945
  ]);
5946
5946
  return import_react.useEffect(() => {
5947
- B();
5947
+ V();
5948
5948
  }, [
5949
- B
5949
+ V
5950
5950
  ]), import_react.createElement(InfiniteScroller, {
5951
5951
  scrollRef: h,
5952
5952
  className: f,
5953
5953
  kineticScrollPerfHack: c == null ? void 0 : c.kineticScrollPerfHack,
5954
5954
  preventDiagonalScrolling: g,
5955
5955
  draggable: k === true || typeof k == "string",
5956
- scrollWidth: zr + (A ?? 0),
5957
- scrollHeight: Br + (j ?? 0),
5956
+ scrollWidth: B + (A ?? 0),
5957
+ scrollHeight: zr + (j ?? 0),
5958
5958
  clientHeight: N,
5959
5959
  rightElement: y,
5960
5960
  paddingBottom: j,
5961
5961
  paddingRight: A,
5962
5962
  rightElementProps: x,
5963
- update: Hr,
5963
+ update: Vr,
5964
5964
  initialSize: E
5965
5965
  }, import_react.createElement(data_grid_dnd_default, {
5966
5966
  eventTargetRef: h,
@@ -6179,7 +6179,7 @@ let __tla = (async () => {
6179
6179
  a,
6180
6180
  S
6181
6181
  ]);
6182
- let zr = import_react.useCallback((e2) => {
6182
+ let B = import_react.useCallback((e2) => {
6183
6183
  var _a;
6184
6184
  if ((_a = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a.call(e2), C === void 0) return;
6185
6185
  let t2 = (C.selectedIndex + 1) % C.results;
@@ -6191,7 +6191,7 @@ let __tla = (async () => {
6191
6191
  C,
6192
6192
  u,
6193
6193
  M
6194
- ]), Br = import_react.useCallback((e2) => {
6194
+ ]), zr = import_react.useCallback((e2) => {
6195
6195
  var _a;
6196
6196
  if ((_a = e2 == null ? void 0 : e2.stopPropagation) == null ? void 0 : _a.call(e2), C === void 0) return;
6197
6197
  let t2 = (C.selectedIndex - 1) % C.results;
@@ -6203,30 +6203,30 @@ let __tla = (async () => {
6203
6203
  u,
6204
6204
  M,
6205
6205
  C
6206
- ]), Vr = import_react.useCallback((e2) => {
6207
- (e2.ctrlKey || e2.metaKey) && e2.nativeEvent.code === "KeyF" || e2.key === "Escape" ? (I(), e2.stopPropagation(), e2.preventDefault()) : e2.key === "Enter" && (e2.shiftKey ? Br() : zr());
6206
+ ]), Br = import_react.useCallback((e2) => {
6207
+ (e2.ctrlKey || e2.metaKey) && e2.nativeEvent.code === "KeyF" || e2.key === "Escape" ? (I(), e2.stopPropagation(), e2.preventDefault()) : e2.key === "Enter" && (e2.shiftKey ? zr() : B());
6208
6208
  }, [
6209
6209
  I,
6210
- zr,
6211
- Br
6210
+ B,
6211
+ zr
6212
6212
  ]);
6213
6213
  import_react.useEffect(() => () => {
6214
6214
  N();
6215
6215
  }, [
6216
6216
  N
6217
6217
  ]);
6218
- let [B, Hr] = import_react.useState(false);
6218
+ let [V, Vr] = import_react.useState(false);
6219
6219
  import_react.useEffect(() => {
6220
- if (f) Hr(true);
6220
+ if (f) Vr(true);
6221
6221
  else {
6222
- let e2 = setTimeout(() => Hr(false), 150);
6222
+ let e2 = setTimeout(() => Vr(false), 150);
6223
6223
  return () => clearTimeout(e2);
6224
6224
  }
6225
6225
  }, [
6226
6226
  f
6227
6227
  ]);
6228
- let Ur = import_react.useMemo(() => {
6229
- if (!f && !B) return null;
6228
+ let Hr = import_react.useMemo(() => {
6229
+ if (!f && !V) return null;
6230
6230
  let e2;
6231
6231
  C !== void 0 && (e2 = C.results >= 1e3 ? "over 1000" : `${C.results} result${C.results === 1 ? "" : "s"}`, C.selectedIndex >= 0 && (e2 = `${C.selectedIndex + 1} of ${e2}`));
6232
6232
  let t2 = (e3) => {
@@ -6250,18 +6250,18 @@ let __tla = (async () => {
6250
6250
  onChange: L,
6251
6251
  value: x,
6252
6252
  tabIndex: f ? void 0 : -1,
6253
- onKeyDownCapture: Vr
6253
+ onKeyDownCapture: Br
6254
6254
  }), import_react.createElement("button", {
6255
6255
  "aria-label": "Previous Result",
6256
6256
  "aria-hidden": !f,
6257
6257
  tabIndex: f ? void 0 : -1,
6258
- onClick: Br,
6258
+ onClick: zr,
6259
6259
  disabled: ((C == null ? void 0 : C.results) ?? 0) === 0
6260
6260
  }, upArrow), import_react.createElement("button", {
6261
6261
  "aria-label": "Next Result",
6262
6262
  "aria-hidden": !f,
6263
6263
  tabIndex: f ? void 0 : -1,
6264
- onClick: zr,
6264
+ onClick: B,
6265
6265
  disabled: ((C == null ? void 0 : C.results) ?? 0) === 0
6266
6266
  }, downArrow), m !== void 0 && import_react.createElement("button", {
6267
6267
  "aria-label": "Close Search",
@@ -6283,16 +6283,16 @@ let __tla = (async () => {
6283
6283
  })));
6284
6284
  }, [
6285
6285
  f,
6286
- B,
6286
+ V,
6287
6287
  C,
6288
6288
  r,
6289
6289
  h,
6290
6290
  a,
6291
6291
  L,
6292
6292
  x,
6293
- Vr,
6294
6293
  Br,
6295
6294
  zr,
6295
+ B,
6296
6296
  m,
6297
6297
  I
6298
6298
  ]);
@@ -6376,7 +6376,7 @@ let __tla = (async () => {
6376
6376
  smoothScrollX: e.smoothScrollX,
6377
6377
  smoothScrollY: e.smoothScrollY,
6378
6378
  resizeIndicator: e.resizeIndicator
6379
- }), Ur);
6379
+ }), Hr);
6380
6380
  }, _exp$2 = () => (e) => Math.max(16, e.targetHeight - 10), RenameInput = styled_default("input")({
6381
6381
  name: "RenameInput",
6382
6382
  class: "gdg-r17m35ur",
@@ -7418,7 +7418,7 @@ let __tla = (async () => {
7418
7418
  };
7419
7419
  const DataEditor = import_react.forwardRef((e, t) => {
7420
7420
  var _a2, _b, _c2;
7421
- let [n, r] = import_react.useState(emptyGridSelection), [i, a] = import_react.useState(), o = import_react.useRef(null), s = import_react.useRef(null), [c, l] = import_react.useState(), u = import_react.useRef(), f = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: h, markdownDivCreateNode: g, width: y, height: x, columns: S, rows: C, getCellContent: E, onCellClicked: D, onCellActivated: O, onFillPattern: k, onFinishedEditing: A, coercePasteValue: j, drawHeader: M, drawCell: N, editorBloom: P, onHeaderClicked: F, onColumnProposeMove: I, rangeSelectionColumnSpanning: L = true, spanRangeBehavior: zr = "default", onGroupHeaderClicked: Br, onCellContextMenu: Vr, className: B, onHeaderContextMenu: Hr, getCellsForSelection: Ur, onGroupHeaderContextMenu: V, onGroupHeaderRenamed: H, onCellEdited: U, onCellsEdited: W, onSearchResultsChanged: Wr, searchResults: G, onSearchValueChange: K, searchValue: Gr, onKeyDown: Kr, onKeyUp: Yr, keybindings: Xr, editOnType: Zr = true, onRowAppended: Qr, onColumnMoved: $r, validateCell: ei, highlightRegions: ti, rangeSelect: J = "rect", columnSelect: ni = "multi", rowSelect: Y = "multi", rangeSelectionBlending: ri = "exclusive", columnSelectionBlending: ui = "exclusive", rowSelectionBlending: pi = "exclusive", onDelete: mi, onDragStart: X, onMouseMove: hi, onPaste: _i, copyHeaders: vi = false, freezeColumns: yi = 0, cellActivationBehavior: xi = "second-click", rowSelectionMode: Si = "auto", onHeaderMenuClick: Ci, onHeaderIndicatorClick: Ti, getGroupDetails: Ei, rowGrouping: Oi, onSearchClose: ki, onItemHovered: Ai, onSelectionCleared: ji, showSearch: Mi, onVisibleRegionChanged: Ni, gridSelection: Pi, onGridSelectionChange: Fi, minColumnWidth: Ii = 50, maxColumnWidth: Li = 500, maxColumnAutoWidth: Ri, provideEditor: zi, trailingRowOptions: Bi, freezeTrailingRows: Vi = 0, allowedFillDirections: Hi = "orthogonal", scrollOffsetX: Ui, scrollOffsetY: Wi, verticalBorder: Gi, onDragOverCell: Ki, onDrop: qi, onColumnResize: Ji, onColumnResizeEnd: Yi, onColumnResizeStart: Xi, customRenderers: Qi, fillHandle: $i, experimental: ea, fixedShadowX: ta, fixedShadowY: na, headerIcons: ra, imageWindowLoader: ia, initialSize: aa, isDraggable: oa, onDragLeave: sa, onRowMoved: ca, overscrollX: la, overscrollY: ua, preventDiagonalScrolling: da, rightElement: fa, rightElementProps: pa, trapFocus: ma = false, smoothScrollX: ha, smoothScrollY: ga, scaleToRem: _a = false, rowHeight: va = 34, headerHeight: ya = 36, groupHeaderHeight: ba = ya, theme: xa, isOutsideClick: Sa, renderers: Ca, resizeIndicator: wa, scrollToActiveCell: Ta = true, drawFocusRing: Ea = true } = e, Da = Ea === "no-editor" ? i === void 0 : Ea, Oa = typeof e.rowMarkers == "string" ? void 0 : e.rowMarkers, ka = (Oa == null ? void 0 : Oa.kind) ?? e.rowMarkers ?? "none", Aa = (Oa == null ? void 0 : Oa.width) ?? e.rowMarkerWidth, ja = (Oa == null ? void 0 : Oa.startIndex) ?? e.rowMarkerStartIndex ?? 1, Ma = (Oa == null ? void 0 : Oa.theme) ?? e.rowMarkerTheme, Fa = Oa == null ? void 0 : Oa.headerTheme, Ra = Oa == null ? void 0 : Oa.headerAlwaysVisible, za = Y !== "multi", Ba = (Oa == null ? void 0 : Oa.checkboxStyle) ?? "square", Va = Math.max(Ii, 20), Ha = Math.max(Li, Va), Wa = Math.max(Ri ?? Ha, Va), Ga = import_react.useMemo(() => typeof window > "u" ? {
7421
+ let [n, r] = import_react.useState(emptyGridSelection), [i, a] = import_react.useState(), o = import_react.useRef(null), s = import_react.useRef(null), [c, l] = import_react.useState(), u = import_react.useRef(), f = typeof window > "u" ? null : window, { imageEditorOverride: m, getRowThemeOverride: h, markdownDivCreateNode: g, width: y, height: x, columns: S, rows: C, getCellContent: E, onCellClicked: D, onCellActivated: O, onFillPattern: k, onFinishedEditing: A, coercePasteValue: j, drawHeader: M, drawCell: N, editorBloom: P, onHeaderClicked: F, onColumnProposeMove: I, rangeSelectionColumnSpanning: L = true, spanRangeBehavior: B = "default", onGroupHeaderClicked: zr, onCellContextMenu: Br, className: V, onHeaderContextMenu: Vr, getCellsForSelection: Hr, onGroupHeaderContextMenu: H, onGroupHeaderRenamed: Ur, onCellEdited: U, onCellsEdited: W, onSearchResultsChanged: Wr, searchResults: G, onSearchValueChange: K, searchValue: Gr, onKeyDown: Kr, onKeyUp: Yr, keybindings: Xr, editOnType: Zr = true, onRowAppended: Qr, onColumnMoved: $r, validateCell: ei, highlightRegions: ti, rangeSelect: J = "rect", columnSelect: ni = "multi", rowSelect: Y = "multi", rangeSelectionBlending: ri = "exclusive", columnSelectionBlending: ui = "exclusive", rowSelectionBlending: pi = "exclusive", onDelete: mi, onDragStart: X, onMouseMove: hi, onPaste: _i, copyHeaders: vi = false, freezeColumns: yi = 0, cellActivationBehavior: xi = "second-click", rowSelectionMode: Si = "auto", onHeaderMenuClick: Ci, onHeaderIndicatorClick: Ti, getGroupDetails: Ei, rowGrouping: Oi, onSearchClose: ki, onItemHovered: Ai, onSelectionCleared: ji, showSearch: Mi, onVisibleRegionChanged: Ni, gridSelection: Pi, onGridSelectionChange: Fi, minColumnWidth: Ii = 50, maxColumnWidth: Li = 500, maxColumnAutoWidth: Ri, provideEditor: zi, trailingRowOptions: Bi, freezeTrailingRows: Vi = 0, allowedFillDirections: Hi = "orthogonal", scrollOffsetX: Ui, scrollOffsetY: Wi, verticalBorder: Gi, onDragOverCell: Ki, onDrop: qi, onColumnResize: Ji, onColumnResizeEnd: Yi, onColumnResizeStart: Xi, customRenderers: Qi, fillHandle: $i, experimental: ea, fixedShadowX: ta, fixedShadowY: na, headerIcons: ra, imageWindowLoader: ia, initialSize: aa, isDraggable: oa, onDragLeave: sa, onRowMoved: ca, overscrollX: la, overscrollY: ua, preventDiagonalScrolling: da, rightElement: fa, rightElementProps: pa, trapFocus: ma = false, smoothScrollX: ha, smoothScrollY: ga, scaleToRem: _a = false, rowHeight: va = 34, headerHeight: ya = 36, groupHeaderHeight: ba = ya, theme: xa, isOutsideClick: Sa, renderers: Ca, resizeIndicator: wa, scrollToActiveCell: Ta = true, drawFocusRing: Ea = true } = e, Da = Ea === "no-editor" ? i === void 0 : Ea, Oa = typeof e.rowMarkers == "string" ? void 0 : e.rowMarkers, ka = (Oa == null ? void 0 : Oa.kind) ?? e.rowMarkers ?? "none", Aa = (Oa == null ? void 0 : Oa.width) ?? e.rowMarkerWidth, ja = (Oa == null ? void 0 : Oa.startIndex) ?? e.rowMarkerStartIndex ?? 1, Ma = (Oa == null ? void 0 : Oa.theme) ?? e.rowMarkerTheme, Fa = Oa == null ? void 0 : Oa.headerTheme, Ra = Oa == null ? void 0 : Oa.headerAlwaysVisible, za = Y !== "multi", Ba = (Oa == null ? void 0 : Oa.checkboxStyle) ?? "square", Va = Math.max(Ii, 20), Ha = Math.max(Li, Va), Wa = Math.max(Ri ?? Ha, Va), Ga = import_react.useMemo(() => typeof window > "u" ? {
7422
7422
  fontSize: "16px"
7423
7423
  } : window.getComputedStyle(document.documentElement), []), { rows: Z, rowNumberMapper: Ka, rowHeight: qa, getRowThemeOverride: Ja } = useRowGroupingInner(Oi, C, va, h), { rowHeight: Ya, headerHeight: Xa, groupHeaderHeight: Za, theme: Qa, overscrollX: $a, overscrollY: eo } = useRemAdjuster({
7424
7424
  groupHeaderHeight: ba,
@@ -7440,7 +7440,7 @@ let __tla = (async () => {
7440
7440
  Q
7441
7441
  ]) ?? n, uo = import_react.useRef();
7442
7442
  uo.current === void 0 && (uo.current = new AbortController()), import_react.useEffect(() => () => uo == null ? void 0 : uo.current.abort(), []);
7443
- let [fo, po] = useCellsForSelection(Ur, E, Q, uo.current, Z), mo = import_react.useCallback((e2, t2, n2) => {
7443
+ let [fo, po] = useCellsForSelection(Hr, E, Q, uo.current, Z), mo = import_react.useCallback((e2, t2, n2) => {
7444
7444
  if (ei === void 0) return true;
7445
7445
  let r2 = [
7446
7446
  e2[0] - Q,
@@ -7451,12 +7451,12 @@ let __tla = (async () => {
7451
7451
  Q,
7452
7452
  ei
7453
7453
  ]), ho = import_react.useRef(Pi), go = import_react.useCallback((e2, t2) => {
7454
- t2 && (e2 = expandSelection(e2, fo, Q, zr, uo.current)), Fi === void 0 ? r(e2) : (ho.current = shiftSelection(e2, -Q), Fi(ho.current));
7454
+ t2 && (e2 = expandSelection(e2, fo, Q, B, uo.current)), Fi === void 0 ? r(e2) : (ho.current = shiftSelection(e2, -Q), Fi(ho.current));
7455
7455
  }, [
7456
7456
  Fi,
7457
7457
  fo,
7458
7458
  Q,
7459
- zr
7459
+ B
7460
7460
  ]), _o = whenDefined(Ji, import_react.useCallback((e2, t2, n2, r2) => {
7461
7461
  Ji == null ? void 0 : Ji(S[n2 - Q], t2, n2 - Q, r2);
7462
7462
  }, [
@@ -7683,7 +7683,7 @@ let __tla = (async () => {
7683
7683
  let t2 = (Ei == null ? void 0 : Ei(e2)) ?? {
7684
7684
  name: e2
7685
7685
  };
7686
- return H !== void 0 && e2 !== "" && (t2 = {
7686
+ return Ur !== void 0 && e2 !== "" && (t2 = {
7687
7687
  icon: t2.icon,
7688
7688
  name: t2.name,
7689
7689
  overrideTheme: t2.overrideTheme,
@@ -7701,7 +7701,7 @@ let __tla = (async () => {
7701
7701
  }), t2;
7702
7702
  }, [
7703
7703
  Ei,
7704
- H
7704
+ Ur
7705
7705
  ]), as = import_react.useCallback((e2) => {
7706
7706
  var _a3;
7707
7707
  let [t2, n2] = e2.cell, r2 = Lo[t2], i2 = (r2 == null ? void 0 : r2.group) === void 0 ? void 0 : (_a3 = is(r2.group)) == null ? void 0 : _a3.overrideTheme, o2 = r2 == null ? void 0 : r2.themeOverride, s2 = Ja == null ? void 0 : Ja(n2);
@@ -8271,7 +8271,7 @@ let __tla = (async () => {
8271
8271
  if (t3.x !== n3.x || t3.y !== n3.y) return;
8272
8272
  if (e2.isLongTouch === true) {
8273
8273
  if (e2.kind === "cell" && itemsAreEqual((_b2 = $.current) == null ? void 0 : _b2.cell, e2.location)) {
8274
- Vr == null ? void 0 : Vr([
8274
+ Br == null ? void 0 : Br([
8275
8275
  f2,
8276
8276
  e2.location[1]
8277
8277
  ], {
@@ -8280,21 +8280,21 @@ let __tla = (async () => {
8280
8280
  });
8281
8281
  return;
8282
8282
  } else if (e2.kind === "header" && $.columns.hasIndex(r2)) {
8283
- Hr == null ? void 0 : Hr(f2, {
8283
+ Vr == null ? void 0 : Vr(f2, {
8284
8284
  ...e2,
8285
8285
  preventDefault: s2
8286
8286
  });
8287
8287
  return;
8288
8288
  } else if (e2.kind === "group-header") {
8289
8289
  if (f2 < 0) return;
8290
- V == null ? void 0 : V(f2, {
8290
+ H == null ? void 0 : H(f2, {
8291
8291
  ...e2,
8292
8292
  preventDefault: s2
8293
8293
  });
8294
8294
  return;
8295
8295
  }
8296
8296
  }
8297
- e2.kind === "cell" ? u2(e2) || ys(e2) : e2.kind === "group-header" ? Br == null ? void 0 : Br(f2, {
8297
+ e2.kind === "cell" ? u2(e2) || ys(e2) : e2.kind === "group-header" ? zr == null ? void 0 : zr(f2, {
8298
8298
  ...e2,
8299
8299
  preventDefault: s2
8300
8300
  }) : (e2.kind === "header" && (F == null ? void 0 : F(f2, {
@@ -8312,7 +8312,7 @@ let __tla = (async () => {
8312
8312
  }
8313
8313
  if (e2.kind === "group-header") {
8314
8314
  if (f2 < 0) return;
8315
- e2.button === 0 && r2 === a2 && i2 === o2 && (Br == null ? void 0 : Br(f2, {
8315
+ e2.button === 0 && r2 === a2 && i2 === o2 && (zr == null ? void 0 : zr(f2, {
8316
8316
  ...e2,
8317
8317
  preventDefault: s2
8318
8318
  }), Os.current || Ds(e2));
@@ -8333,11 +8333,11 @@ let __tla = (async () => {
8333
8333
  Jo,
8334
8334
  O,
8335
8335
  os,
8336
+ Br,
8336
8337
  Vr,
8337
- Hr,
8338
- V,
8338
+ H,
8339
8339
  ys,
8340
- Br,
8340
+ zr,
8341
8341
  F,
8342
8342
  ks,
8343
8343
  Ds
@@ -8874,19 +8874,19 @@ let __tla = (async () => {
8874
8874
  os
8875
8875
  ]), ic = import_react.useCallback((e2, t2) => {
8876
8876
  let n2 = e2.location[0] - Q;
8877
- if (e2.kind === "header" && (Hr == null ? void 0 : Hr(n2, {
8877
+ if (e2.kind === "header" && (Vr == null ? void 0 : Vr(n2, {
8878
8878
  ...e2,
8879
8879
  preventDefault: t2
8880
8880
  })), e2.kind === "group-header") {
8881
8881
  if (n2 < 0) return;
8882
- V == null ? void 0 : V(n2, {
8882
+ H == null ? void 0 : H(n2, {
8883
8883
  ...e2,
8884
8884
  preventDefault: t2
8885
8885
  });
8886
8886
  }
8887
8887
  if (e2.kind === "cell") {
8888
8888
  let [r2, i2] = e2.location;
8889
- Vr == null ? void 0 : Vr([
8889
+ Br == null ? void 0 : Br([
8890
8890
  n2,
8891
8891
  i2
8892
8892
  ], {
@@ -8896,9 +8896,9 @@ let __tla = (async () => {
8896
8896
  }
8897
8897
  }, [
8898
8898
  $,
8899
+ Br,
8900
+ H,
8899
8901
  Vr,
8900
- V,
8901
- Hr,
8902
8902
  Q,
8903
8903
  Zs
8904
8904
  ]), ac = import_react.useCallback(async (e2) => {
@@ -9145,11 +9145,11 @@ let __tla = (async () => {
9145
9145
  canvasBounds: n2,
9146
9146
  onClose: () => Es(void 0),
9147
9147
  onFinish: (e3) => {
9148
- Es(void 0), H == null ? void 0 : H(t2, e3);
9148
+ Es(void 0), Ur == null ? void 0 : Ur(t2, e3);
9149
9149
  }
9150
9150
  });
9151
9151
  }, [
9152
- H,
9152
+ Ur,
9153
9153
  Ts
9154
9154
  ]), hc = Math.min(Lo.length, yi + (ro ? 1 : 0));
9155
9155
  import_react.useImperativeHandle(t, () => ({
@@ -9328,7 +9328,7 @@ let __tla = (async () => {
9328
9328
  value: Eo
9329
9329
  }, import_react.createElement(DataEditorContainer, {
9330
9330
  style: Ec,
9331
- className: B,
9331
+ className: V,
9332
9332
  inWidth: y ?? wc,
9333
9333
  inHeight: x ?? Tc
9334
9334
  }, import_react.createElement(data_grid_search_default, {
@@ -9351,7 +9351,7 @@ let __tla = (async () => {
9351
9351
  rightElementProps: pa,
9352
9352
  smoothScrollX: ha,
9353
9353
  smoothScrollY: ga,
9354
- className: B,
9354
+ className: V,
9355
9355
  enableGroups: No,
9356
9356
  onCanvasFocused: Sc,
9357
9357
  onCanvasBlur: Cc,
@@ -10428,8 +10428,8 @@ let __tla = (async () => {
10428
10428
  className: "w-full",
10429
10429
  children: "Rename"
10430
10430
  }), t[13] = l, t[14] = x, t[15] = S) : S = t[15];
10431
- let C;
10432
- return t[16] !== y || t[17] !== S ? (C = (0, import_jsx_runtime.jsxs)(DropdownMenuSub, {
10431
+ let O;
10432
+ return t[16] !== y || t[17] !== S ? (O = (0, import_jsx_runtime.jsxs)(DropdownMenuSub, {
10433
10433
  children: [
10434
10434
  m,
10435
10435
  (0, import_jsx_runtime.jsx)(DropdownMenuPortal, {
@@ -10445,9 +10445,9 @@ let __tla = (async () => {
10445
10445
  })
10446
10446
  })
10447
10447
  ]
10448
- }), t[16] = y, t[17] = S, t[18] = C) : C = t[18], C;
10448
+ }), t[16] = y, t[17] = S, t[18] = O) : O = t[18], O;
10449
10449
  }, AddColumnSub = (e) => {
10450
- let t = (0, import_compiler_runtime$1.c)(77), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, import_react.useState)(""), [c, l] = (0, import_react.useState)("string"), u, h, g, S, C, D, O, A, M, F, I, L, zr, Vr, B;
10450
+ let t = (0, import_compiler_runtime$1.c)(77), { direction: n, onAdd: r, onCancel: a } = e, [o, s] = (0, import_react.useState)(""), [c, l] = (0, import_react.useState)("string"), u, h, g, S, O, k, A, j, N, F, I, L, B, Br, V;
10451
10451
  if (t[0] !== o || t[1] !== c || t[2] !== n || t[3] !== r || t[4] !== a) {
10452
10452
  let e2 = [
10453
10453
  "string",
@@ -10457,23 +10457,23 @@ let __tla = (async () => {
10457
10457
  ], i;
10458
10458
  t[20] !== o || t[21] !== c || t[22] !== r ? (i = () => {
10459
10459
  o.trim() && (r(o.trim(), c), s(""), l("string"));
10460
- }, t[20] = o, t[21] = c, t[22] = r, t[23] = i) : i = t[23], D = i;
10460
+ }, t[20] = o, t[21] = c, t[22] = r, t[23] = i) : i = t[23], k = i;
10461
+ let Hr2;
10462
+ t[24] !== k || t[25] !== a ? (Hr2 = (e3) => {
10463
+ e3.key === "Enter" ? k() : e3.key === "Escape" && a();
10464
+ }, t[24] = k, t[25] = a, t[26] = Hr2) : Hr2 = t[26];
10465
+ let H2 = Hr2;
10466
+ O = DropdownMenuSub;
10461
10467
  let Ur2;
10462
- t[24] !== D || t[25] !== a ? (Ur2 = (e3) => {
10463
- e3.key === "Enter" ? D() : e3.key === "Escape" && a();
10464
- }, t[24] = D, t[25] = a, t[26] = Ur2) : Ur2 = t[26];
10465
- let V2 = Ur2;
10466
- C = DropdownMenuSub;
10467
- let H2;
10468
- t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H2 = (0, import_jsx_runtime.jsx)(Plus, {
10468
+ t[27] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ur2 = (0, import_jsx_runtime.jsx)(Plus, {
10469
10469
  className: "mr-2 h-3.5 w-3.5"
10470
- }), t[27] = H2) : H2 = t[27], t[28] === n ? B = t[29] : (B = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
10470
+ }), t[27] = Ur2) : Ur2 = t[27], t[28] === n ? V = t[29] : (V = (0, import_jsx_runtime.jsxs)(DropdownMenuSubTrigger, {
10471
10471
  children: [
10472
- H2,
10472
+ Ur2,
10473
10473
  "Add column to the ",
10474
10474
  n
10475
10475
  ]
10476
- }), t[28] = n, t[29] = B), S = DropdownMenuPortal, g = DropdownMenuSubContent, Vr = "w-64 p-4", L = "space-y-3";
10476
+ }), t[28] = n, t[29] = V), S = DropdownMenuPortal, g = DropdownMenuSubContent, Br = "w-64 p-4", L = "space-y-3";
10477
10477
  let U2 = `add-column-input-${n}`, W2;
10478
10478
  t[30] === U2 ? W2 = t[31] : (W2 = (0, import_jsx_runtime.jsx)(Label, {
10479
10479
  htmlFor: U2,
@@ -10482,84 +10482,84 @@ let __tla = (async () => {
10482
10482
  let Wr2 = `add-column-input-${n}`, G2;
10483
10483
  t[32] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (G2 = (e3) => s(e3.target.value), t[32] = G2) : G2 = t[32];
10484
10484
  let K2;
10485
- t[33] !== o || t[34] !== V2 || t[35] !== Wr2 ? (K2 = (0, import_jsx_runtime.jsx)(Input, {
10485
+ t[33] !== o || t[34] !== H2 || t[35] !== Wr2 ? (K2 = (0, import_jsx_runtime.jsx)(Input, {
10486
10486
  id: Wr2,
10487
10487
  value: o,
10488
10488
  onChange: G2,
10489
10489
  placeholder: "Enter column name",
10490
10490
  className: "mt-1",
10491
- onKeyDown: V2
10492
- }), t[33] = o, t[34] = V2, t[35] = Wr2, t[36] = K2) : K2 = t[36], t[37] !== W2 || t[38] !== K2 ? (zr = (0, import_jsx_runtime.jsxs)("div", {
10491
+ onKeyDown: H2
10492
+ }), t[33] = o, t[34] = H2, t[35] = Wr2, t[36] = K2) : K2 = t[36], t[37] !== W2 || t[38] !== K2 ? (B = (0, import_jsx_runtime.jsxs)("div", {
10493
10493
  children: [
10494
10494
  W2,
10495
10495
  K2
10496
10496
  ]
10497
- }), t[37] = W2, t[38] = K2, t[39] = zr) : zr = t[39];
10497
+ }), t[37] = W2, t[38] = K2, t[39] = B) : B = t[39];
10498
10498
  let q2 = `add-column-type-${n}`;
10499
10499
  t[40] === q2 ? I = t[41] : (I = (0, import_jsx_runtime.jsx)(Label, {
10500
10500
  htmlFor: q2,
10501
10501
  children: "Data type"
10502
- }), t[40] = q2, t[41] = I), h = Select, A = c, t[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (M = (e3) => l(e3), t[42] = M) : M = t[42];
10502
+ }), t[40] = q2, t[41] = I), h = Select, j = c, t[42] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (N = (e3) => l(e3), t[42] = N) : N = t[42];
10503
10503
  let Gr = `add-column-type-${n}`, Kr;
10504
10504
  t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Kr = (0, import_jsx_runtime.jsx)(SelectValue, {}), t[43] = Kr) : Kr = t[43], t[44] === Gr ? F = t[45] : (F = (0, import_jsx_runtime.jsx)(SelectTrigger, {
10505
10505
  id: Gr,
10506
10506
  className: "mt-1",
10507
10507
  children: Kr
10508
- }), t[44] = Gr, t[45] = F), u = SelectContent, O = e2.map(_temp$1), t[0] = o, t[1] = c, t[2] = n, t[3] = r, t[4] = a, t[5] = u, t[6] = h, t[7] = g, t[8] = S, t[9] = C, t[10] = D, t[11] = O, t[12] = A, t[13] = M, t[14] = F, t[15] = I, t[16] = L, t[17] = zr, t[18] = Vr, t[19] = B;
10509
- } else u = t[5], h = t[6], g = t[7], S = t[8], C = t[9], D = t[10], O = t[11], A = t[12], M = t[13], F = t[14], I = t[15], L = t[16], zr = t[17], Vr = t[18], B = t[19];
10510
- let Ur;
10511
- t[46] !== u || t[47] !== O ? (Ur = (0, import_jsx_runtime.jsx)(u, {
10512
- children: O
10513
- }), t[46] = u, t[47] = O, t[48] = Ur) : Ur = t[48];
10514
- let V;
10515
- t[49] !== h || t[50] !== Ur || t[51] !== A || t[52] !== M || t[53] !== F ? (V = (0, import_jsx_runtime.jsxs)(h, {
10516
- value: A,
10517
- onValueChange: M,
10508
+ }), t[44] = Gr, t[45] = F), u = SelectContent, A = e2.map(_temp$1), t[0] = o, t[1] = c, t[2] = n, t[3] = r, t[4] = a, t[5] = u, t[6] = h, t[7] = g, t[8] = S, t[9] = O, t[10] = k, t[11] = A, t[12] = j, t[13] = N, t[14] = F, t[15] = I, t[16] = L, t[17] = B, t[18] = Br, t[19] = V;
10509
+ } else u = t[5], h = t[6], g = t[7], S = t[8], O = t[9], k = t[10], A = t[11], j = t[12], N = t[13], F = t[14], I = t[15], L = t[16], B = t[17], Br = t[18], V = t[19];
10510
+ let Hr;
10511
+ t[46] !== u || t[47] !== A ? (Hr = (0, import_jsx_runtime.jsx)(u, {
10512
+ children: A
10513
+ }), t[46] = u, t[47] = A, t[48] = Hr) : Hr = t[48];
10514
+ let H;
10515
+ t[49] !== h || t[50] !== Hr || t[51] !== j || t[52] !== N || t[53] !== F ? (H = (0, import_jsx_runtime.jsxs)(h, {
10516
+ value: j,
10517
+ onValueChange: N,
10518
10518
  children: [
10519
10519
  F,
10520
- Ur
10520
+ Hr
10521
10521
  ]
10522
- }), t[49] = h, t[50] = Ur, t[51] = A, t[52] = M, t[53] = F, t[54] = V) : V = t[54];
10523
- let H;
10524
- t[55] !== V || t[56] !== I ? (H = (0, import_jsx_runtime.jsxs)("div", {
10522
+ }), t[49] = h, t[50] = Hr, t[51] = j, t[52] = N, t[53] = F, t[54] = H) : H = t[54];
10523
+ let Ur;
10524
+ t[55] !== H || t[56] !== I ? (Ur = (0, import_jsx_runtime.jsxs)("div", {
10525
10525
  children: [
10526
10526
  I,
10527
- V
10527
+ H
10528
10528
  ]
10529
- }), t[55] = V, t[56] = I, t[57] = H) : H = t[57];
10529
+ }), t[55] = H, t[56] = I, t[57] = Ur) : Ur = t[57];
10530
10530
  let U = !o.trim(), W;
10531
- t[58] !== D || t[59] !== U ? (W = (0, import_jsx_runtime.jsx)(Button, {
10532
- onClick: D,
10531
+ t[58] !== k || t[59] !== U ? (W = (0, import_jsx_runtime.jsx)(Button, {
10532
+ onClick: k,
10533
10533
  disabled: U,
10534
10534
  size: "sm",
10535
10535
  className: "w-full",
10536
10536
  children: "Add"
10537
- }), t[58] = D, t[59] = U, t[60] = W) : W = t[60];
10537
+ }), t[58] = k, t[59] = U, t[60] = W) : W = t[60];
10538
10538
  let Wr;
10539
- t[61] !== H || t[62] !== W || t[63] !== L || t[64] !== zr ? (Wr = (0, import_jsx_runtime.jsxs)("div", {
10539
+ t[61] !== Ur || t[62] !== W || t[63] !== L || t[64] !== B ? (Wr = (0, import_jsx_runtime.jsxs)("div", {
10540
10540
  className: L,
10541
10541
  children: [
10542
- zr,
10543
- H,
10542
+ B,
10543
+ Ur,
10544
10544
  W
10545
10545
  ]
10546
- }), t[61] = H, t[62] = W, t[63] = L, t[64] = zr, t[65] = Wr) : Wr = t[65];
10546
+ }), t[61] = Ur, t[62] = W, t[63] = L, t[64] = B, t[65] = Wr) : Wr = t[65];
10547
10547
  let G;
10548
- t[66] !== g || t[67] !== Wr || t[68] !== Vr ? (G = (0, import_jsx_runtime.jsx)(g, {
10549
- className: Vr,
10548
+ t[66] !== g || t[67] !== Wr || t[68] !== Br ? (G = (0, import_jsx_runtime.jsx)(g, {
10549
+ className: Br,
10550
10550
  children: Wr
10551
- }), t[66] = g, t[67] = Wr, t[68] = Vr, t[69] = G) : G = t[69];
10551
+ }), t[66] = g, t[67] = Wr, t[68] = Br, t[69] = G) : G = t[69];
10552
10552
  let K;
10553
10553
  t[70] !== S || t[71] !== G ? (K = (0, import_jsx_runtime.jsx)(S, {
10554
10554
  children: G
10555
10555
  }), t[70] = S, t[71] = G, t[72] = K) : K = t[72];
10556
10556
  let q;
10557
- return t[73] !== C || t[74] !== K || t[75] !== B ? (q = (0, import_jsx_runtime.jsxs)(C, {
10557
+ return t[73] !== O || t[74] !== K || t[75] !== V ? (q = (0, import_jsx_runtime.jsxs)(O, {
10558
10558
  children: [
10559
- B,
10559
+ V,
10560
10560
  K
10561
10561
  ]
10562
- }), t[73] = C, t[74] = K, t[75] = B, t[76] = q) : q = t[76], q;
10562
+ }), t[73] = O, t[74] = K, t[75] = V, t[76] = q) : q = t[76], q;
10563
10563
  };
10564
10564
  function _temp$1(e) {
10565
10565
  return (0, import_jsx_runtime.jsx)(SelectItem, {
@@ -10638,15 +10638,15 @@ let __tla = (async () => {
10638
10638
  }
10639
10639
  var import_compiler_runtime = require_compiler_runtime();
10640
10640
  GlideDataEditor = (e) => {
10641
- let t = (0, import_compiler_runtime.c)(107), { data: n, setData: a, columnFields: o, setColumnFields: u, editableColumns: f, edits: m, onAddEdits: h, onAddRows: g, onDeleteRows: y, onRenameColumn: x, onDeleteColumn: S, onAddColumn: E } = e, { theme: k } = useTheme(), j = (0, import_react.useRef)(null), [N, P] = (0, import_react.useState)(), [I, zr] = (0, import_react.useState)(false), Br;
10642
- t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Br = {
10641
+ let t = (0, import_compiler_runtime.c)(107), { data: n, setData: a, columnFields: o, setColumnFields: u, editableColumns: f, edits: m, onAddEdits: h, onAddRows: g, onDeleteRows: y, onRenameColumn: x, onDeleteColumn: S, onAddColumn: C } = e, { theme: E } = useTheme(), D = (0, import_react.useRef)(null), [M, P] = (0, import_react.useState)(), [I, B] = (0, import_react.useState)(false), zr;
10642
+ t[0] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (zr = {
10643
10643
  columns: CompactSelection.empty(),
10644
10644
  rows: CompactSelection.empty()
10645
- }, t[0] = Br) : Br = t[0];
10646
- let [B, Hr] = import_react.useState(Br), H;
10647
- t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (H = {}, t[1] = H) : H = t[1];
10648
- let [U, W] = (0, import_react.useState)(H), Wr = useNonce(), G = (0, import_react.useRef)(false), K;
10649
- if (t[2] !== o || t[3] !== U || t[4] !== f || t[5] !== k) {
10645
+ }, t[0] = zr) : zr = t[0];
10646
+ let [V, Vr] = import_react.useState(zr), Ur;
10647
+ t[1] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (Ur = {}, t[1] = Ur) : Ur = t[1];
10648
+ let [U, W] = (0, import_react.useState)(Ur), Wr = useNonce(), G = (0, import_react.useRef)(false), K;
10649
+ if (t[2] !== o || t[3] !== U || t[4] !== f || t[5] !== E) {
10650
10650
  K = [];
10651
10651
  for (let [e2, t2] of o) {
10652
10652
  let n2 = f === "all" || f.includes(e2);
@@ -10660,11 +10660,11 @@ let __tla = (async () => {
10660
10660
  dataType: t2,
10661
10661
  hasMenu: true,
10662
10662
  themeOverride: n2 ? void 0 : {
10663
- bgCell: k === "light" ? "#F9F9FA" : "#1e1e21"
10663
+ bgCell: E === "light" ? "#F9F9FA" : "#1e1e21"
10664
10664
  }
10665
10665
  });
10666
10666
  }
10667
- t[2] = o, t[3] = U, t[4] = f, t[5] = k, t[6] = K;
10667
+ t[2] = o, t[3] = U, t[4] = f, t[5] = E, t[6] = K;
10668
10668
  } else K = t[6];
10669
10669
  let q = K, Gr;
10670
10670
  t[7] !== q || t[8] !== n.length || t[9] !== m || t[10] !== Wr || t[11] !== u || t[12] !== a ? (Gr = () => {
@@ -10783,15 +10783,15 @@ let __tla = (async () => {
10783
10783
  return true;
10784
10784
  }, t[25] = o, t[26] = q, t[27] = $r) : $r = t[27];
10785
10785
  let ei = $r, ti;
10786
- t[28] !== q || t[29] !== n || t[30] !== f || t[31] !== h || t[32] !== B || t[33] !== a ? (ti = (e2) => {
10787
- if (j.current) {
10786
+ t[28] !== q || t[29] !== n || t[30] !== f || t[31] !== h || t[32] !== V || t[33] !== a ? (ti = (e2) => {
10787
+ if (D.current) {
10788
10788
  if (Events.isMetaOrCtrl(e2) && e2.key === "c") {
10789
- j.current.emit("copy");
10789
+ D.current.emit("copy");
10790
10790
  return;
10791
10791
  }
10792
10792
  if (Events.isMetaOrCtrl(e2) && e2.key === "v") {
10793
10793
  pasteCells({
10794
- selection: B,
10794
+ selection: V,
10795
10795
  data: n,
10796
10796
  setData: a,
10797
10797
  columns: q,
@@ -10801,15 +10801,15 @@ let __tla = (async () => {
10801
10801
  return;
10802
10802
  }
10803
10803
  if (Events.isMetaOrCtrl(e2) && e2.key === "f") {
10804
- zr(_temp3), e2.stopPropagation(), e2.preventDefault();
10804
+ B(_temp3), e2.stopPropagation(), e2.preventDefault();
10805
10805
  return;
10806
10806
  }
10807
10807
  if (e2.key === "Escape") {
10808
- zr(false);
10808
+ B(false);
10809
10809
  return;
10810
10810
  }
10811
10811
  }
10812
- }, t[28] = q, t[29] = n, t[30] = f, t[31] = h, t[32] = B, t[33] = a, t[34] = ti) : ti = t[34];
10812
+ }, t[28] = q, t[29] = n, t[30] = f, t[31] = h, t[32] = V, t[33] = a, t[34] = ti) : ti = t[34];
10813
10813
  let J = ti, ni;
10814
10814
  t[35] !== q || t[36] !== g || t[37] !== a ? (ni = () => {
10815
10815
  let e2 = Object.fromEntries(q.map(_temp4));
@@ -10821,19 +10821,19 @@ let __tla = (async () => {
10821
10821
  ]);
10822
10822
  }, t[35] = q, t[36] = g, t[37] = a, t[38] = ni) : ni = t[38];
10823
10823
  let Y = ni, ri;
10824
- t[39] !== y || t[40] !== B.rows || t[41] !== a ? (ri = () => {
10825
- let e2 = B.rows.toArray();
10824
+ t[39] !== y || t[40] !== V.rows || t[41] !== a ? (ri = () => {
10825
+ let e2 = V.rows.toArray();
10826
10826
  y(e2);
10827
10827
  let t2 = 0;
10828
10828
  for (let n2 of e2) {
10829
10829
  let e3 = n2 - t2;
10830
10830
  a((t3) => t3.filter((t4, n3) => n3 !== e3)), t2++;
10831
10831
  }
10832
- Hr({
10832
+ Vr({
10833
10833
  columns: CompactSelection.empty(),
10834
10834
  rows: CompactSelection.empty()
10835
10835
  });
10836
- }, t[39] = y, t[40] = B.rows, t[41] = a, t[42] = ri) : ri = t[42];
10836
+ }, t[39] = y, t[40] = V.rows, t[41] = a, t[42] = ri) : ri = t[42];
10837
10837
  let ii = ri, ai;
10838
10838
  t[43] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ai = (e2, t2) => {
10839
10839
  P({
@@ -10842,12 +10842,12 @@ let __tla = (async () => {
10842
10842
  });
10843
10843
  }, t[43] = ai) : ai = t[43];
10844
10844
  let oi = useEvent_default(ai), si;
10845
- t[44] !== q || t[45] !== N ? (si = async () => {
10846
- if (N) {
10847
- let e2 = q[N.col].title;
10845
+ t[44] !== q || t[45] !== M ? (si = async () => {
10846
+ if (M) {
10847
+ let e2 = q[M.col].title;
10848
10848
  await copyToClipboard(e2), P(void 0);
10849
10849
  }
10850
- }, t[44] = q, t[45] = N, t[46] = si) : si = t[46];
10850
+ }, t[44] = q, t[45] = M, t[46] = si) : si = t[46];
10851
10851
  let ui = si, di;
10852
10852
  t[47] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (di = function(e2) {
10853
10853
  toast({
@@ -10857,41 +10857,41 @@ let __tla = (async () => {
10857
10857
  });
10858
10858
  }, t[47] = di) : di = t[47];
10859
10859
  let fi = di, pi;
10860
- t[48] !== o || t[49] !== q || t[50] !== N || t[51] !== x || t[52] !== u || t[53] !== a ? (pi = (e2) => {
10861
- if (N) {
10862
- let t2 = q[N.col].title;
10860
+ t[48] !== o || t[49] !== q || t[50] !== M || t[51] !== x || t[52] !== u || t[53] !== a ? (pi = (e2) => {
10861
+ if (M) {
10862
+ let t2 = q[M.col].title;
10863
10863
  if (o.has(e2)) {
10864
10864
  fi(e2);
10865
10865
  return;
10866
10866
  }
10867
- let n2 = q[N.col].dataType;
10868
- x(N.col, e2), u((t3) => modifyColumnFields({
10867
+ let n2 = q[M.col].dataType;
10868
+ x(M.col, e2), u((t3) => modifyColumnFields({
10869
10869
  columnFields: t3,
10870
- columnIdx: N.col,
10870
+ columnIdx: M.col,
10871
10871
  type: "rename",
10872
10872
  dataType: n2,
10873
10873
  newColumnName: e2
10874
10874
  })), a((n3) => renameColumn(n3, t2, e2)), P(void 0);
10875
10875
  }
10876
- }, t[48] = o, t[49] = q, t[50] = N, t[51] = x, t[52] = u, t[53] = a, t[54] = pi) : pi = t[54];
10876
+ }, t[48] = o, t[49] = q, t[50] = M, t[51] = x, t[52] = u, t[53] = a, t[54] = pi) : pi = t[54];
10877
10877
  let mi = pi, X;
10878
- t[55] !== N || t[56] !== S || t[57] !== u || t[58] !== a ? (X = () => {
10879
- N && (S(N.col), u((e2) => modifyColumnFields({
10878
+ t[55] !== M || t[56] !== S || t[57] !== u || t[58] !== a ? (X = () => {
10879
+ M && (S(M.col), u((e2) => modifyColumnFields({
10880
10880
  columnFields: e2,
10881
- columnIdx: N.col,
10881
+ columnIdx: M.col,
10882
10882
  type: "remove"
10883
- })), a((e2) => removeColumn(e2, N.col)), P(void 0));
10884
- }, t[55] = N, t[56] = S, t[57] = u, t[58] = a, t[59] = X) : X = t[59];
10883
+ })), a((e2) => removeColumn(e2, M.col)), P(void 0));
10884
+ }, t[55] = M, t[56] = S, t[57] = u, t[58] = a, t[59] = X) : X = t[59];
10885
10885
  let hi = X, gi;
10886
- t[60] !== o || t[61] !== q.length || t[62] !== N || t[63] !== E || t[64] !== u || t[65] !== a ? (gi = (e2) => {
10886
+ t[60] !== o || t[61] !== q.length || t[62] !== M || t[63] !== C || t[64] !== u || t[65] !== a ? (gi = (e2) => {
10887
10887
  let { direction: t2, columnName: n2, dataType: r } = e2;
10888
- if (N) {
10889
- let e3 = N.col + (t2 === "left" ? 0 : 1), i = Math.max(0, Math.min(e3, q.length));
10888
+ if (M) {
10889
+ let e3 = M.col + (t2 === "left" ? 0 : 1), i = Math.max(0, Math.min(e3, q.length));
10890
10890
  if (o.has(n2)) {
10891
10891
  fi(n2);
10892
10892
  return;
10893
10893
  }
10894
- E(i, n2), u((e4) => modifyColumnFields({
10894
+ C(i, n2), u((e4) => modifyColumnFields({
10895
10895
  columnFields: e4,
10896
10896
  columnIdx: i,
10897
10897
  type: "insert",
@@ -10899,20 +10899,20 @@ let __tla = (async () => {
10899
10899
  newColumnName: n2
10900
10900
  })), a((e4) => insertColumn(e4, n2)), P(void 0);
10901
10901
  }
10902
- }, t[60] = o, t[61] = q.length, t[62] = N, t[63] = E, t[64] = u, t[65] = a, t[66] = gi) : gi = t[66];
10903
- let _i = gi, yi = (N == null ? void 0 : N.col) === q.length - 1, bi = N !== void 0, xi;
10902
+ }, t[60] = o, t[61] = q.length, t[62] = M, t[63] = C, t[64] = u, t[65] = a, t[66] = gi) : gi = t[66];
10903
+ let _i = gi, yi = (M == null ? void 0 : M.col) === q.length - 1, bi = M !== void 0, xi;
10904
10904
  t[67] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (xi = {
10905
10905
  hint: "New row",
10906
10906
  sticky: true,
10907
10907
  tint: true
10908
10908
  }, t[67] = xi) : xi = t[67];
10909
10909
  let Si = xi, Ci = n.length > 1e5, wi = f === "all", Ti;
10910
- t[68] !== wi || t[69] !== q || t[70] !== _i || t[71] !== ui || t[72] !== hi || t[73] !== mi || t[74] !== Ci || t[75] !== yi || t[76] !== bi || t[77] !== N ? (Ti = () => {
10910
+ t[68] !== wi || t[69] !== q || t[70] !== _i || t[71] !== ui || t[72] !== hi || t[73] !== mi || t[74] !== Ci || t[75] !== yi || t[76] !== bi || t[77] !== M ? (Ti = () => {
10911
10911
  if (!bi) return;
10912
10912
  let e2 = (0, import_jsx_runtime.jsxs)(import_jsx_runtime.Fragment, {
10913
10913
  children: [
10914
10914
  wi && (0, import_jsx_runtime.jsx)(RenameColumnSub, {
10915
- currentColumnName: q[N.col].title,
10915
+ currentColumnName: q[M.col].title,
10916
10916
  onRename: mi,
10917
10917
  onCancel: () => P(void 0)
10918
10918
  }),
@@ -10953,8 +10953,8 @@ let __tla = (async () => {
10953
10953
  onOpenChange: (e3) => !e3 && P(void 0),
10954
10954
  children: (0, import_jsx_runtime.jsxs)(DropdownMenuContent, {
10955
10955
  style: {
10956
- left: (N == null ? void 0 : N.bounds.x) ?? 0,
10957
- top: ((N == null ? void 0 : N.bounds.y) ?? 0) + ((N == null ? void 0 : N.bounds.height) ?? 0)
10956
+ left: (M == null ? void 0 : M.bounds.x) ?? 0,
10957
+ top: ((M == null ? void 0 : M.bounds.y) ?? 0) + ((M == null ? void 0 : M.bounds.height) ?? 0)
10958
10958
  },
10959
10959
  className: "fixed w-52",
10960
10960
  children: [
@@ -10971,21 +10971,21 @@ let __tla = (async () => {
10971
10971
  ]
10972
10972
  })
10973
10973
  });
10974
- }, t[68] = wi, t[69] = q, t[70] = _i, t[71] = ui, t[72] = hi, t[73] = mi, t[74] = Ci, t[75] = yi, t[76] = bi, t[77] = N, t[78] = Ti) : Ti = t[78];
10974
+ }, t[68] = wi, t[69] = q, t[70] = _i, t[71] = ui, t[72] = hi, t[73] = mi, t[74] = Ci, t[75] = yi, t[76] = bi, t[77] = M, t[78] = Ti) : Ti = t[78];
10975
10975
  let Ei = Ti, Di = n.length, Oi = !Ci, ki = !Ci, Ai = n.length > 10 ? 450 : void 0, ji;
10976
10976
  t[79] === /* @__PURE__ */ Symbol.for("react.memo_cache_sentinel") ? (ji = {
10977
10977
  kind: "both"
10978
10978
  }, t[79] = ji) : ji = t[79];
10979
10979
  let Mi;
10980
- t[80] === k ? Mi = t[81] : (Mi = getGlideTheme(k), t[80] = k, t[81] = Mi);
10980
+ t[80] === E ? Mi = t[81] : (Mi = getGlideTheme(E), t[80] = E, t[81] = Mi);
10981
10981
  let Ni;
10982
- t[82] !== q || t[83] !== n.length || t[84] !== Jr || t[85] !== Xr || t[86] !== oi || t[87] !== J || t[88] !== Y || t[89] !== B || t[90] !== I || t[91] !== Oi || t[92] !== ki || t[93] !== Ai || t[94] !== Mi || t[95] !== ei ? (Ni = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
10982
+ t[82] !== q || t[83] !== n.length || t[84] !== Jr || t[85] !== Xr || t[86] !== oi || t[87] !== J || t[88] !== Y || t[89] !== V || t[90] !== I || t[91] !== Oi || t[92] !== ki || t[93] !== Ai || t[94] !== Mi || t[95] !== ei ? (Ni = (0, import_jsx_runtime.jsx)(ErrorBoundary, {
10983
10983
  children: (0, import_jsx_runtime.jsx)(DataEditorAll, {
10984
- ref: j,
10984
+ ref: D,
10985
10985
  getCellContent: Jr,
10986
10986
  columns: q,
10987
- gridSelection: B,
10988
- onGridSelectionChange: Hr,
10987
+ gridSelection: V,
10988
+ onGridSelectionChange: Vr,
10989
10989
  rows: Di,
10990
10990
  overscrollX: 50,
10991
10991
  smoothScrollX: Oi,
@@ -11010,10 +11010,10 @@ let __tla = (async () => {
11010
11010
  maxColumnAutoWidth: 600,
11011
11011
  maxColumnWidth: 600
11012
11012
  })
11013
- }), t[82] = q, t[83] = n.length, t[84] = Jr, t[85] = Xr, t[86] = oi, t[87] = J, t[88] = Y, t[89] = B, t[90] = I, t[91] = Oi, t[92] = ki, t[93] = Ai, t[94] = Mi, t[95] = ei, t[96] = Ni) : Ni = t[96];
11013
+ }), t[82] = q, t[83] = n.length, t[84] = Jr, t[85] = Xr, t[86] = oi, t[87] = J, t[88] = Y, t[89] = V, t[90] = I, t[91] = Oi, t[92] = ki, t[93] = Ai, t[94] = Mi, t[95] = ei, t[96] = Ni) : Ni = t[96];
11014
11014
  let Pi;
11015
11015
  t[97] === Ei ? Pi = t[98] : (Pi = Ei(), t[97] = Ei, t[98] = Pi);
11016
- let Fi = B.rows.length === 0, Ii = B.rows.length <= 1 ? "Delete row" : "Delete rows", Li;
11016
+ let Fi = V.rows.length === 0, Ii = V.rows.length <= 1 ? "Delete row" : "Delete rows", Li;
11017
11017
  t[99] !== ii || t[100] !== Fi || t[101] !== Ii ? (Li = (0, import_jsx_runtime.jsx)("div", {
11018
11018
  className: "absolute bottom-1 right-2 w-26",
11019
11019
  children: (0, import_jsx_runtime.jsx)(Button, {