@adecore/editor-react 0.31.12 → 0.33.0

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 (137) hide show
  1. package/dist/AnchoredPopup.js +73 -19
  2. package/dist/AttributionCard.js +162 -4
  3. package/dist/BaselineStatus.js +62 -8
  4. package/dist/CallHierarchyPanel.js +977 -60
  5. package/dist/ChangeReview.js +76 -25
  6. package/dist/CodeAuthorsCard.js +314 -14
  7. package/dist/CompletionPopup.js +490 -83
  8. package/dist/DiffView.js +548 -181
  9. package/dist/EditorContextMenu.js +352 -34
  10. package/dist/EditorView.js +276 -99
  11. package/dist/FindReplace.js +525 -67
  12. package/dist/HoverCard.js +378 -38
  13. package/dist/HoverSections.js +367 -56
  14. package/dist/LanguagePopups.js +95 -34
  15. package/dist/Markdown.js +41 -6
  16. package/dist/PanelResizeHandle.js +199 -66
  17. package/dist/PathText.js +49 -7
  18. package/dist/PeekPanel.js +675 -72
  19. package/dist/PickPopup.js +304 -34
  20. package/dist/RenameCard.js +679 -85
  21. package/dist/RenderedDocs.js +329 -58
  22. package/dist/SignatureCard.js +91 -7
  23. package/dist/SplitDiffView.js +344 -254
  24. package/dist/SymbolPicker.js +440 -85
  25. package/dist/call-hierarchy-model.js +102 -68
  26. package/dist/call-hierarchy.js +458 -359
  27. package/dist/code-actions-model.js +88 -76
  28. package/dist/code-actions.js +372 -283
  29. package/dist/code-authors.js +64 -55
  30. package/dist/code-vision-model.js +134 -127
  31. package/dist/code-vision.js +224 -206
  32. package/dist/completion-call.js +94 -67
  33. package/dist/completion-model.js +334 -244
  34. package/dist/completion.js +840 -649
  35. package/dist/conflict-model.js +35 -29
  36. package/dist/context-menu-rows.js +42 -17
  37. package/dist/context-menu.js +64 -46
  38. package/dist/definition-link.js +88 -85
  39. package/dist/diagnostics-model.js +74 -55
  40. package/dist/diagnostics.js +121 -100
  41. package/dist/diff-expansion.js +38 -35
  42. package/dist/diff-overlays.js +144 -22
  43. package/dist/diff-syntax.js +65 -42
  44. package/dist/diff-wordmarks.js +26 -23
  45. package/dist/doc-comment-model.js +265 -216
  46. package/dist/editor-language.js +177 -152
  47. package/dist/error-message.js +2 -2
  48. package/dist/find-query.js +49 -36
  49. package/dist/folding.js +81 -62
  50. package/dist/format-on-type.js +86 -67
  51. package/dist/highlight-layers.js +19 -20
  52. package/dist/highlights.js +105 -83
  53. package/dist/history.js +44 -38
  54. package/dist/holder.js +18 -18
  55. package/dist/host-types.js +1 -1
  56. package/dist/hover-content.js +167 -129
  57. package/dist/hover.js +285 -245
  58. package/dist/index.js +10 -10
  59. package/dist/inlay-hints.js +369 -324
  60. package/dist/key-priority.js +34 -31
  61. package/dist/language-ids.js +45 -42
  62. package/dist/line-edits.js +74 -28
  63. package/dist/line-text.js +18 -3
  64. package/dist/locales/en.json +38 -38
  65. package/dist/locales/nl.json +41 -41
  66. package/dist/models.js +1 -1
  67. package/dist/navigation-history.js +40 -41
  68. package/dist/navigation.js +141 -123
  69. package/dist/panel-size.js +8 -8
  70. package/dist/patch-decorations.js +236 -160
  71. package/dist/patch-layout.js +331 -262
  72. package/dist/paths.js +3 -3
  73. package/dist/peek-model.js +86 -69
  74. package/dist/peek.js +254 -192
  75. package/dist/pick.js +164 -157
  76. package/dist/popup-focus.js +5 -5
  77. package/dist/popup-placement.js +36 -21
  78. package/dist/popups.js +13 -13
  79. package/dist/project-language.js +228 -211
  80. package/dist/project-problems.js +81 -69
  81. package/dist/proposal-model.js +163 -126
  82. package/dist/recent-choices.js +25 -25
  83. package/dist/refresher.js +44 -49
  84. package/dist/rename-model.js +113 -113
  85. package/dist/rename.js +321 -233
  86. package/dist/rendered-docs.d.ts +4 -2
  87. package/dist/rendered-docs.js +384 -318
  88. package/dist/rendering-context.js +5 -3
  89. package/dist/rendering.js +22 -4
  90. package/dist/review-group.js +42 -39
  91. package/dist/row-host.d.ts +4 -2
  92. package/dist/row-host.js +90 -78
  93. package/dist/selection-ranges.js +21 -17
  94. package/dist/semantic-delta.js +22 -19
  95. package/dist/semantic-model.js +86 -73
  96. package/dist/semantic-tokens.js +201 -162
  97. package/dist/shortcut-keys.js +16 -10
  98. package/dist/signature-model.js +34 -28
  99. package/dist/signature.js +177 -129
  100. package/dist/snippet-field-transforms.js +118 -106
  101. package/dist/snippet-indent.js +48 -43
  102. package/dist/snippet-range-order.js +11 -11
  103. package/dist/snippet-session.js +703 -667
  104. package/dist/snippet-transform-client.js +59 -59
  105. package/dist/snippet-transform-format.js +285 -263
  106. package/dist/snippet-transform-protocol.js +1 -1
  107. package/dist/snippet-transform-queue.js +163 -153
  108. package/dist/snippet-transform-worker.js +42 -35
  109. package/dist/snippet-variable-names.js +1 -36
  110. package/dist/snippet-variables.js +53 -63
  111. package/dist/snippet.js +477 -405
  112. package/dist/split-alignment.js +47 -35
  113. package/dist/split-scroll.js +42 -40
  114. package/dist/symbol-links.js +33 -25
  115. package/dist/symbol-picker-model.js +126 -116
  116. package/dist/symbol-picker.js +98 -59
  117. package/dist/symbols.js +117 -88
  118. package/dist/testing.js +248 -165
  119. package/dist/timers.js +35 -30
  120. package/dist/use-panel-body.js +49 -8
  121. package/dist/use-problem-counts.js +29 -15
  122. package/dist/view-state.js +54 -33
  123. package/dist/word-diff.js +18 -18
  124. package/dist/workspace-edit.js +300 -249
  125. package/package.json +6 -6
  126. package/src/CallHierarchyPanel.tsx +2 -2
  127. package/src/DiffView.tsx +3 -3
  128. package/src/FindReplace.tsx +2 -2
  129. package/src/LanguagePopups.tsx +2 -0
  130. package/src/PeekPanel.tsx +3 -3
  131. package/src/RenderedDocs.tsx +9 -10
  132. package/src/SymbolPicker.tsx +2 -2
  133. package/src/diff-overlays.tsx +6 -4
  134. package/src/locales/en.json +38 -38
  135. package/src/locales/nl.json +41 -41
  136. package/src/rendered-docs.ts +14 -3
  137. package/src/row-host.ts +14 -3
@@ -1,4 +1,4 @@
1
- import { Fragment as _Fragment, jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
1
+ import { c as _c } from "react/compiler-runtime";
2
2
  import { useEffect, useId, useLayoutEffect, useRef } from 'react';
3
3
  import { createPortal } from 'react-dom';
4
4
  import { useTranslation } from 'react-i18next';
@@ -7,86 +7,1003 @@ import { fileUriToPath } from '@adecore/lsp';
7
7
  import { Icon, IconButton, Segmented, Spinner, Tooltip } from '@adecore/ui';
8
8
  import { formatNumber } from '@adecore/ui/format';
9
9
  import { CALL_HIERARCHY_HEIGHT } from './call-hierarchy.js';
10
- import { PanelResizeHandle } from './PanelResizeHandle.js';
10
+ import { PanelResizeHandle } from "./PanelResizeHandle.js";
11
11
  import { usePanelBody } from './use-panel-body.js';
12
12
  import { PANEL_BODY_HEIGHT } from './panel-size.js';
13
13
  import { CALL_LEVEL_LIMIT } from './call-hierarchy-model.js';
14
14
  import { basenameOf, relativeTo } from './paths.js';
15
- import { PathText } from './PathText.js';
16
- import { Preview } from './PeekPanel.js';
17
- import { SymbolBadge } from './SymbolPicker.js';
15
+ import { PathText } from "./PathText.js";
16
+ import { Preview } from "./PeekPanel.js";
17
+ import { SymbolBadge } from "./SymbolPicker.js";
18
+ import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
18
19
  const INDENT = 14;
19
20
  const BASE_INDENT = 8;
20
21
  function folderOf(path) {
21
- return path.slice(0, Math.max(0, path.lastIndexOf('/')));
22
+ return path.slice(0, Math.max(0, path.lastIndexOf('/')));
22
23
  }
23
24
  /* One line of the tree. Status lines are treeitems too, so the level of a symbol's calls is read the same way, but nothing selects them. */
24
- function Line({ row, id, active, expanded, position, size, ref, children, onClick, onDoubleClick }) {
25
- return (_jsx("div", { ref: ref, id: id, role: "treeitem", "aria-level": row.level, "aria-selected": active, "aria-expanded": expanded, "aria-posinset": position, "aria-setsize": size, "aria-disabled": row.kind === 'status' ? true : undefined, "data-active": active, className: "flex h-[22px] w-full cursor-default items-center gap-1.5 pr-3 text-left font-mono text-code hover:bg-surface-hover data-[active=true]:bg-accent-soft", style: { paddingLeft: BASE_INDENT + (row.level - 1) * INDENT }, onClick: onClick, onDoubleClick: onDoubleClick, children: children }));
25
+ function Line(t0) {
26
+ const $ = _c(15);
27
+ const {
28
+ row,
29
+ id,
30
+ active,
31
+ expanded,
32
+ position,
33
+ size,
34
+ ref,
35
+ children,
36
+ onClick,
37
+ onDoubleClick
38
+ } = t0;
39
+ const t1 = row.kind === "status" ? true : undefined;
40
+ const t2 = BASE_INDENT + (row.level - 1) * INDENT;
41
+ let t3;
42
+ if ($[0] !== t2) {
43
+ t3 = {
44
+ paddingLeft: t2
45
+ };
46
+ $[0] = t2;
47
+ $[1] = t3;
48
+ } else {
49
+ t3 = $[1];
50
+ }
51
+ let t4;
52
+ if ($[2] !== active || $[3] !== children || $[4] !== expanded || $[5] !== id || $[6] !== onClick || $[7] !== onDoubleClick || $[8] !== position || $[9] !== ref || $[10] !== row.level || $[11] !== size || $[12] !== t1 || $[13] !== t3) {
53
+ t4 = /*#__PURE__*/_jsx("div", {
54
+ ref: ref,
55
+ id: id,
56
+ role: "treeitem",
57
+ "aria-level": row.level,
58
+ "aria-selected": active,
59
+ "aria-expanded": expanded,
60
+ "aria-posinset": position,
61
+ "aria-setsize": size,
62
+ "aria-disabled": t1,
63
+ "data-active": active,
64
+ className: "flex h-[22px] w-full cursor-default items-center gap-1.5 pr-3 text-left font-mono text-code hover:bg-surface-hover data-[active=true]:bg-accent-soft",
65
+ style: t3,
66
+ onClick: onClick,
67
+ onDoubleClick: onDoubleClick,
68
+ children: children
69
+ });
70
+ $[2] = active;
71
+ $[3] = children;
72
+ $[4] = expanded;
73
+ $[5] = id;
74
+ $[6] = onClick;
75
+ $[7] = onDoubleClick;
76
+ $[8] = position;
77
+ $[9] = ref;
78
+ $[10] = row.level;
79
+ $[11] = size;
80
+ $[12] = t1;
81
+ $[13] = t3;
82
+ $[14] = t4;
83
+ } else {
84
+ t4 = $[14];
85
+ }
86
+ return t4;
26
87
  }
27
- function Symbol({ language, row, active, id, ref }) {
28
- const { t } = useTranslation('editor');
29
- const { item } = row;
88
+ function SymbolRow(t0) {
89
+ const $ = _c(87);
90
+ const {
91
+ language,
92
+ row,
93
+ active,
94
+ id,
95
+ ref
96
+ } = t0;
97
+ const {
98
+ t
99
+ } = useTranslation("editor");
100
+ const {
101
+ item
102
+ } = row;
103
+ let T0;
104
+ let T1;
105
+ let t1;
106
+ let t10;
107
+ let t11;
108
+ let t12;
109
+ let t13;
110
+ let t14;
111
+ let t15;
112
+ let t16;
113
+ let t17;
114
+ let t18;
115
+ let t2;
116
+ let t3;
117
+ let t4;
118
+ let t5;
119
+ let t6;
120
+ let t7;
121
+ let t8;
122
+ let t9;
123
+ if ($[0] !== active || $[1] !== id || $[2] !== item.detail || $[3] !== item.kind || $[4] !== item.name || $[5] !== item.tags || $[6] !== item.uri || $[7] !== language.callHierarchy || $[8] !== language.project.folder || $[9] !== ref || $[10] !== row || $[11] !== t) {
30
124
  const path = relativeTo(fileUriToPath(item.uri) ?? item.uri, language.project.folder);
31
125
  const tool = language.callHierarchy;
32
- return (_jsxs(Line, { ref: ref, row: row, id: id, active: active, expanded: row.leaf ? undefined : row.expanded, position: row.position, size: row.size, onClick: () => (active ? tool.go(row.id) : tool.select(row.id)), onDoubleClick: () => tool.go(row.id), children: [_jsx("span", { "aria-hidden": true, className: "grid size-3.5 shrink-0 place-items-center text-text-muted", onClick: (event) => {
33
- event.stopPropagation();
34
- tool.toggle(row.id);
35
- }, children: row.leaf ? null : _jsx(Icon, { icon: row.expanded ? ChevronDown : ChevronRight, size: 14 }) }), _jsx(SymbolBadge, { kind: item.kind }), _jsx("span", { className: `shrink-0 text-text ${item.tags?.includes(1) ? 'line-through' : ''}`, children: item.name }), item.detail !== undefined && item.detail !== '' && _jsx("span", { className: "min-w-0 flex-1 truncate text-text-muted", children: item.detail }), _jsxs("span", { className: "ml-auto flex shrink-0 items-center gap-2 pl-2 font-sans text-xs text-text-faint", children: [row.sites > 1 && (_jsx(Tooltip, { label: t('language.callHierarchy.sites', { count: row.sites, formatted: formatNumber(row.sites) }), children: _jsx("span", { className: "text-text-muted", children: `×${formatNumber(row.sites)}` }) })), _jsx(Tooltip, { label: path, children: _jsx("span", { className: "max-w-40 truncate", children: `${basenameOf(path)}:${formatNumber(item.selectionRange.start.line + 1)}` }) })] })] }));
126
+ T1 = Line;
127
+ t6 = ref;
128
+ t7 = row;
129
+ t8 = id;
130
+ t9 = active;
131
+ t10 = row.leaf ? undefined : row.expanded;
132
+ t11 = row.position;
133
+ t12 = row.size;
134
+ if ($[32] !== active || $[33] !== row.id || $[34] !== tool) {
135
+ t13 = () => active ? tool.go(row.id) : tool.select(row.id);
136
+ $[32] = active;
137
+ $[33] = row.id;
138
+ $[34] = tool;
139
+ $[35] = t13;
140
+ } else {
141
+ t13 = $[35];
142
+ }
143
+ if ($[36] !== row.id || $[37] !== tool) {
144
+ t14 = () => tool.go(row.id);
145
+ $[36] = row.id;
146
+ $[37] = tool;
147
+ $[38] = t14;
148
+ } else {
149
+ t14 = $[38];
150
+ }
151
+ let t19;
152
+ if ($[39] !== row.id || $[40] !== tool) {
153
+ t19 = event => {
154
+ event.stopPropagation();
155
+ tool.toggle(row.id);
156
+ };
157
+ $[39] = row.id;
158
+ $[40] = tool;
159
+ $[41] = t19;
160
+ } else {
161
+ t19 = $[41];
162
+ }
163
+ let t20;
164
+ if ($[42] !== row.expanded || $[43] !== row.leaf) {
165
+ t20 = row.leaf ? null : /*#__PURE__*/_jsx(Icon, {
166
+ icon: row.expanded ? ChevronDown : ChevronRight,
167
+ size: 14
168
+ });
169
+ $[42] = row.expanded;
170
+ $[43] = row.leaf;
171
+ $[44] = t20;
172
+ } else {
173
+ t20 = $[44];
174
+ }
175
+ if ($[45] !== t19 || $[46] !== t20) {
176
+ t15 = /*#__PURE__*/_jsx("span", {
177
+ "aria-hidden": true,
178
+ className: "grid size-3.5 shrink-0 place-items-center text-text-muted",
179
+ onClick: t19,
180
+ children: t20
181
+ });
182
+ $[45] = t19;
183
+ $[46] = t20;
184
+ $[47] = t15;
185
+ } else {
186
+ t15 = $[47];
187
+ }
188
+ if ($[48] !== item.kind) {
189
+ t16 = /*#__PURE__*/_jsx(SymbolBadge, {
190
+ kind: item.kind
191
+ });
192
+ $[48] = item.kind;
193
+ $[49] = t16;
194
+ } else {
195
+ t16 = $[49];
196
+ }
197
+ const t21 = `shrink-0 text-text ${item.tags?.includes(1) ? "line-through" : ""}`;
198
+ if ($[50] !== item.name || $[51] !== t21) {
199
+ t17 = /*#__PURE__*/_jsx("span", {
200
+ className: t21,
201
+ children: item.name
202
+ });
203
+ $[50] = item.name;
204
+ $[51] = t21;
205
+ $[52] = t17;
206
+ } else {
207
+ t17 = $[52];
208
+ }
209
+ if ($[53] !== item.detail) {
210
+ t18 = item.detail !== undefined && item.detail !== "" && /*#__PURE__*/_jsx("span", {
211
+ className: "min-w-0 flex-1 truncate text-text-muted",
212
+ children: item.detail
213
+ });
214
+ $[53] = item.detail;
215
+ $[54] = t18;
216
+ } else {
217
+ t18 = $[54];
218
+ }
219
+ t4 = "ml-auto flex shrink-0 items-center gap-2 pl-2 font-sans text-xs text-text-faint";
220
+ if ($[55] !== row.sites || $[56] !== t) {
221
+ t5 = row.sites > 1 && /*#__PURE__*/_jsx(Tooltip, {
222
+ label: t("language.callHierarchy.sites", {
223
+ count: row.sites,
224
+ formatted: formatNumber(row.sites)
225
+ }),
226
+ children: /*#__PURE__*/_jsx("span", {
227
+ className: "text-text-muted",
228
+ children: `×${formatNumber(row.sites)}`
229
+ })
230
+ });
231
+ $[55] = row.sites;
232
+ $[56] = t;
233
+ $[57] = t5;
234
+ } else {
235
+ t5 = $[57];
236
+ }
237
+ T0 = Tooltip;
238
+ t3 = path;
239
+ t2 = "max-w-40 truncate";
240
+ t1 = basenameOf(path);
241
+ $[0] = active;
242
+ $[1] = id;
243
+ $[2] = item.detail;
244
+ $[3] = item.kind;
245
+ $[4] = item.name;
246
+ $[5] = item.tags;
247
+ $[6] = item.uri;
248
+ $[7] = language.callHierarchy;
249
+ $[8] = language.project.folder;
250
+ $[9] = ref;
251
+ $[10] = row;
252
+ $[11] = t;
253
+ $[12] = T0;
254
+ $[13] = T1;
255
+ $[14] = t1;
256
+ $[15] = t10;
257
+ $[16] = t11;
258
+ $[17] = t12;
259
+ $[18] = t13;
260
+ $[19] = t14;
261
+ $[20] = t15;
262
+ $[21] = t16;
263
+ $[22] = t17;
264
+ $[23] = t18;
265
+ $[24] = t2;
266
+ $[25] = t3;
267
+ $[26] = t4;
268
+ $[27] = t5;
269
+ $[28] = t6;
270
+ $[29] = t7;
271
+ $[30] = t8;
272
+ $[31] = t9;
273
+ } else {
274
+ T0 = $[12];
275
+ T1 = $[13];
276
+ t1 = $[14];
277
+ t10 = $[15];
278
+ t11 = $[16];
279
+ t12 = $[17];
280
+ t13 = $[18];
281
+ t14 = $[19];
282
+ t15 = $[20];
283
+ t16 = $[21];
284
+ t17 = $[22];
285
+ t18 = $[23];
286
+ t2 = $[24];
287
+ t3 = $[25];
288
+ t4 = $[26];
289
+ t5 = $[27];
290
+ t6 = $[28];
291
+ t7 = $[29];
292
+ t8 = $[30];
293
+ t9 = $[31];
294
+ }
295
+ const t19 = item.selectionRange.start.line + 1;
296
+ let t20;
297
+ if ($[58] !== t19) {
298
+ t20 = formatNumber(t19);
299
+ $[58] = t19;
300
+ $[59] = t20;
301
+ } else {
302
+ t20 = $[59];
303
+ }
304
+ const t21 = `${t1}:${t20}`;
305
+ let t22;
306
+ if ($[60] !== t2 || $[61] !== t21) {
307
+ t22 = /*#__PURE__*/_jsx("span", {
308
+ className: t2,
309
+ children: t21
310
+ });
311
+ $[60] = t2;
312
+ $[61] = t21;
313
+ $[62] = t22;
314
+ } else {
315
+ t22 = $[62];
316
+ }
317
+ let t23;
318
+ if ($[63] !== T0 || $[64] !== t22 || $[65] !== t3) {
319
+ t23 = /*#__PURE__*/_jsx(T0, {
320
+ label: t3,
321
+ children: t22
322
+ });
323
+ $[63] = T0;
324
+ $[64] = t22;
325
+ $[65] = t3;
326
+ $[66] = t23;
327
+ } else {
328
+ t23 = $[66];
329
+ }
330
+ let t24;
331
+ if ($[67] !== t23 || $[68] !== t4 || $[69] !== t5) {
332
+ t24 = /*#__PURE__*/_jsxs("span", {
333
+ className: t4,
334
+ children: [t5, t23]
335
+ });
336
+ $[67] = t23;
337
+ $[68] = t4;
338
+ $[69] = t5;
339
+ $[70] = t24;
340
+ } else {
341
+ t24 = $[70];
342
+ }
343
+ let t25;
344
+ if ($[71] !== T1 || $[72] !== t10 || $[73] !== t11 || $[74] !== t12 || $[75] !== t13 || $[76] !== t14 || $[77] !== t15 || $[78] !== t16 || $[79] !== t17 || $[80] !== t18 || $[81] !== t24 || $[82] !== t6 || $[83] !== t7 || $[84] !== t8 || $[85] !== t9) {
345
+ t25 = /*#__PURE__*/_jsxs(T1, {
346
+ ref: t6,
347
+ row: t7,
348
+ id: t8,
349
+ active: t9,
350
+ expanded: t10,
351
+ position: t11,
352
+ size: t12,
353
+ onClick: t13,
354
+ onDoubleClick: t14,
355
+ children: [t15, t16, t17, t18, t24]
356
+ });
357
+ $[71] = T1;
358
+ $[72] = t10;
359
+ $[73] = t11;
360
+ $[74] = t12;
361
+ $[75] = t13;
362
+ $[76] = t14;
363
+ $[77] = t15;
364
+ $[78] = t16;
365
+ $[79] = t17;
366
+ $[80] = t18;
367
+ $[81] = t24;
368
+ $[82] = t6;
369
+ $[83] = t7;
370
+ $[84] = t8;
371
+ $[85] = t9;
372
+ $[86] = t25;
373
+ } else {
374
+ t25 = $[86];
375
+ }
376
+ return t25;
36
377
  }
37
- function Tree({ language, view }) {
38
- const { t } = useTranslation('editor');
39
- const treeId = useId();
40
- const activeRow = useRef(null);
41
- const idOf = (row) => `${treeId}-${row.id}`;
42
- const activeId = view.rows.some((row) => row.id === view.active) ? `${treeId}-${view.active}` : undefined;
43
- useEffect(() => {
44
- activeRow.current?.scrollIntoView({ block: 'nearest' });
45
- }, [view.active]);
46
- // The focus stays in the text, so the input is what names the tree and its active row.
47
- useLayoutEffect(() => {
48
- language.editor.setInputPopup({ controls: treeId, activeDescendant: activeId });
49
- return () => language.editor.setInputPopup(null);
50
- }, [language, treeId, activeId]);
51
- return (_jsx("div", { id: treeId, role: "tree", "aria-label": t('language.callHierarchy.label'), className: "w-1/2 shrink-0 overflow-y-auto border-r border-border py-1", children: view.rows.map((row) => {
52
- const active = row.id === view.active;
53
- const ref = active ? activeRow : undefined;
54
- if (row.kind === 'node') {
55
- return _jsx(Symbol, { ref: ref, language: language, row: row, active: active, id: idOf(row) }, row.id);
56
- }
57
- if (row.kind === 'more') {
58
- const next = Math.min(row.hidden, CALL_LEVEL_LIMIT);
59
- return (_jsx(Line, { ref: ref, row: row, id: idOf(row), active: active, onClick: () => language.callHierarchy.showMore(row.parent), children: _jsx("span", { className: "font-sans text-xs text-accent", children: t('language.callHierarchy.more', { count: next, formatted: formatNumber(next), hidden: formatNumber(row.hidden) }) }) }, row.id));
60
- }
61
- return (_jsx(Line, { row: row, id: idOf(row), active: false, onClick: () => language.callHierarchy.retry(row.parent), children: _jsx(StatusText, { row: row, direction: view.direction }) }, row.id));
62
- }) }));
378
+ function Tree(t0) {
379
+ const $ = _c(30);
380
+ const {
381
+ language,
382
+ view
383
+ } = t0;
384
+ const {
385
+ t
386
+ } = useTranslation("editor");
387
+ const treeId = useId();
388
+ const activeRow = useRef(null);
389
+ let t1;
390
+ if ($[0] !== treeId) {
391
+ t1 = row => `${treeId}-${row.id}`;
392
+ $[0] = treeId;
393
+ $[1] = t1;
394
+ } else {
395
+ t1 = $[1];
396
+ }
397
+ const idOf = t1;
398
+ let t2;
399
+ if ($[2] !== treeId || $[3] !== view.active || $[4] !== view.rows) {
400
+ t2 = view.rows.some(row_0 => row_0.id === view.active) ? `${treeId}-${view.active}` : undefined;
401
+ $[2] = treeId;
402
+ $[3] = view.active;
403
+ $[4] = view.rows;
404
+ $[5] = t2;
405
+ } else {
406
+ t2 = $[5];
407
+ }
408
+ const activeId = t2;
409
+ let t3;
410
+ if ($[6] === Symbol.for("react.memo_cache_sentinel")) {
411
+ t3 = () => {
412
+ activeRow.current?.scrollIntoView({
413
+ block: "nearest"
414
+ });
415
+ };
416
+ $[6] = t3;
417
+ } else {
418
+ t3 = $[6];
419
+ }
420
+ let t4;
421
+ if ($[7] !== view.active) {
422
+ t4 = [view.active];
423
+ $[7] = view.active;
424
+ $[8] = t4;
425
+ } else {
426
+ t4 = $[8];
427
+ }
428
+ useEffect(t3, t4);
429
+ let t5;
430
+ if ($[9] !== activeId || $[10] !== language.editor || $[11] !== treeId) {
431
+ t5 = () => {
432
+ language.editor.setInputPopup({
433
+ controls: treeId,
434
+ activeDescendant: activeId
435
+ });
436
+ return () => language.editor.setInputPopup(null);
437
+ };
438
+ $[9] = activeId;
439
+ $[10] = language.editor;
440
+ $[11] = treeId;
441
+ $[12] = t5;
442
+ } else {
443
+ t5 = $[12];
444
+ }
445
+ let t6;
446
+ if ($[13] !== activeId || $[14] !== language || $[15] !== treeId) {
447
+ t6 = [language, treeId, activeId];
448
+ $[13] = activeId;
449
+ $[14] = language;
450
+ $[15] = treeId;
451
+ $[16] = t6;
452
+ } else {
453
+ t6 = $[16];
454
+ }
455
+ useLayoutEffect(t5, t6);
456
+ let t7;
457
+ if ($[17] !== t) {
458
+ t7 = t("language.callHierarchy.label");
459
+ $[17] = t;
460
+ $[18] = t7;
461
+ } else {
462
+ t7 = $[18];
463
+ }
464
+ let t8;
465
+ if ($[19] !== idOf || $[20] !== language || $[21] !== t || $[22] !== view.active || $[23] !== view.direction || $[24] !== view.rows) {
466
+ t8 = view.rows.map(row_1 => {
467
+ const active = row_1.id === view.active;
468
+ const ref = active ? activeRow : undefined;
469
+ if (row_1.kind === "node") {
470
+ return /*#__PURE__*/_jsx(SymbolRow, {
471
+ ref: ref,
472
+ language: language,
473
+ row: row_1,
474
+ active: active,
475
+ id: idOf(row_1)
476
+ }, row_1.id);
477
+ }
478
+ if (row_1.kind === "more") {
479
+ const next = Math.min(row_1.hidden, CALL_LEVEL_LIMIT);
480
+ return /*#__PURE__*/_jsx(Line, {
481
+ ref: ref,
482
+ row: row_1,
483
+ id: idOf(row_1),
484
+ active: active,
485
+ onClick: () => language.callHierarchy.showMore(row_1.parent),
486
+ children: /*#__PURE__*/_jsx("span", {
487
+ className: "font-sans text-xs text-accent",
488
+ children: t("language.callHierarchy.more", {
489
+ count: next,
490
+ formatted: formatNumber(next),
491
+ hidden: formatNumber(row_1.hidden)
492
+ })
493
+ })
494
+ }, row_1.id);
495
+ }
496
+ return /*#__PURE__*/_jsx(Line, {
497
+ row: row_1,
498
+ id: idOf(row_1),
499
+ active: false,
500
+ onClick: () => language.callHierarchy.retry(row_1.parent),
501
+ children: /*#__PURE__*/_jsx(StatusText, {
502
+ row: row_1,
503
+ direction: view.direction
504
+ })
505
+ }, row_1.id);
506
+ });
507
+ $[19] = idOf;
508
+ $[20] = language;
509
+ $[21] = t;
510
+ $[22] = view.active;
511
+ $[23] = view.direction;
512
+ $[24] = view.rows;
513
+ $[25] = t8;
514
+ } else {
515
+ t8 = $[25];
516
+ }
517
+ let t9;
518
+ if ($[26] !== t7 || $[27] !== t8 || $[28] !== treeId) {
519
+ t9 = /*#__PURE__*/_jsx("div", {
520
+ id: treeId,
521
+ role: "tree",
522
+ "aria-label": t7,
523
+ className: "w-1/2 shrink-0 overflow-y-auto border-r border-border py-1",
524
+ children: t8
525
+ });
526
+ $[26] = t7;
527
+ $[27] = t8;
528
+ $[28] = treeId;
529
+ $[29] = t9;
530
+ } else {
531
+ t9 = $[29];
532
+ }
533
+ return t9;
63
534
  }
64
- function StatusText({ row, direction }) {
65
- const { t } = useTranslation('editor');
66
- if (row.status === 'loading') {
67
- return (_jsxs("span", { className: "flex items-center gap-2 font-sans text-xs text-text-muted", children: [_jsx(Spinner, { size: 12 }), t('language.callHierarchy.loading')] }));
535
+ function StatusText(t0) {
536
+ const $ = _c(15);
537
+ const {
538
+ row,
539
+ direction
540
+ } = t0;
541
+ const {
542
+ t
543
+ } = useTranslation("editor");
544
+ if (row.status === "loading") {
545
+ let t1;
546
+ if ($[0] === Symbol.for("react.memo_cache_sentinel")) {
547
+ t1 = /*#__PURE__*/_jsx(Spinner, {
548
+ size: 12
549
+ });
550
+ $[0] = t1;
551
+ } else {
552
+ t1 = $[0];
553
+ }
554
+ let t2;
555
+ if ($[1] !== t) {
556
+ t2 = t("language.callHierarchy.loading");
557
+ $[1] = t;
558
+ $[2] = t2;
559
+ } else {
560
+ t2 = $[2];
561
+ }
562
+ let t3;
563
+ if ($[3] !== t2) {
564
+ t3 = /*#__PURE__*/_jsxs("span", {
565
+ className: "flex items-center gap-2 font-sans text-xs text-text-muted",
566
+ children: [t1, t2]
567
+ });
568
+ $[3] = t2;
569
+ $[4] = t3;
570
+ } else {
571
+ t3 = $[4];
572
+ }
573
+ return t3;
574
+ }
575
+ if (row.status === "failed") {
576
+ const t1 = row.message ?? "";
577
+ let t2;
578
+ if ($[5] !== t || $[6] !== t1) {
579
+ t2 = t("language.callHierarchy.retry", {
580
+ message: t1
581
+ });
582
+ $[5] = t;
583
+ $[6] = t1;
584
+ $[7] = t2;
585
+ } else {
586
+ t2 = $[7];
68
587
  }
69
- if (row.status === 'failed') {
70
- return (_jsx("span", { className: "min-w-0 truncate font-sans text-xs text-status-error", children: t('language.callHierarchy.retry', { message: row.message ?? '' }) }));
588
+ let t3;
589
+ if ($[8] !== t2) {
590
+ t3 = /*#__PURE__*/_jsx("span", {
591
+ className: "min-w-0 truncate font-sans text-xs text-status-error",
592
+ children: t2
593
+ });
594
+ $[8] = t2;
595
+ $[9] = t3;
596
+ } else {
597
+ t3 = $[9];
71
598
  }
72
- return (_jsx("span", { className: "font-sans text-xs text-text-muted", children: t(direction === 'incoming' ? 'language.callHierarchy.noIncoming' : 'language.callHierarchy.noOutgoing') }));
599
+ return t3;
600
+ }
601
+ const t1 = direction === "incoming" ? "language.callHierarchy.noIncoming" : "language.callHierarchy.noOutgoing";
602
+ let t2;
603
+ if ($[10] !== t || $[11] !== t1) {
604
+ t2 = t(t1);
605
+ $[10] = t;
606
+ $[11] = t1;
607
+ $[12] = t2;
608
+ } else {
609
+ t2 = $[12];
610
+ }
611
+ let t3;
612
+ if ($[13] !== t2) {
613
+ t3 = /*#__PURE__*/_jsx("span", {
614
+ className: "font-sans text-xs text-text-muted",
615
+ children: t2
616
+ });
617
+ $[13] = t2;
618
+ $[14] = t3;
619
+ } else {
620
+ t3 = $[14];
621
+ }
622
+ return t3;
73
623
  }
74
624
  /*
75
625
  * The call hierarchy of a symbol in the row the editor leaves under the line: the tree of callers or callees on
76
626
  * the left and the code of the active call on the right. Like the peek it portals into that row, which the
77
627
  * editor makes again when it scrolls back into view.
78
628
  */
79
- export function CallHierarchyPanel({ language, view }) {
80
- const { t } = useTranslation('editor');
81
- const body = usePanelBody(language);
82
- if (view.container === null) {
83
- return null;
84
- }
85
- const folder = language.project.folder;
629
+ export function CallHierarchyPanel(t0) {
630
+ const $ = _c(98);
631
+ const {
632
+ language,
633
+ view
634
+ } = t0;
635
+ const {
636
+ t
637
+ } = useTranslation("editor");
638
+ const body = usePanelBody(language);
639
+ if (view.container === null) {
640
+ return null;
641
+ }
642
+ const folder = language.project.folder;
643
+ let shown;
644
+ let t1;
645
+ let t10;
646
+ let t2;
647
+ let t3;
648
+ let t4;
649
+ let t5;
650
+ let t6;
651
+ let t7;
652
+ let t8;
653
+ let t9;
654
+ if ($[0] !== body.height || $[1] !== folder || $[2] !== language.callHierarchy || $[3] !== t || $[4] !== view.direction || $[5] !== view.name || $[6] !== view.preview) {
86
655
  const path = view.preview === null ? null : fileUriToPath(view.preview.uri);
87
- const shown = path === null ? '' : folderOf(relativeTo(path, folder));
88
- return createPortal(_jsxs("div", { className: "flex flex-col bg-surface pt-[2px] font-sans text-xs text-text", style: { height: CALL_HIERARCHY_HEIGHT - PANEL_BODY_HEIGHT + body.height }, onPointerDown: (event) => event.preventDefault(), children: [_jsx("div", { className: "peek-hatch h-[14px]" }), _jsxs("div", { className: "flex h-[33px] shrink-0 items-center gap-2 border-b border-border pr-2 pl-3 text-sm", children: [_jsx(Segmented, { value: view.direction, onValueChange: (direction) => language.callHierarchy.setDirection(direction), label: t('language.callHierarchy.direction'), options: [
89
- { id: 'incoming', label: t('language.callHierarchy.incoming') },
90
- { id: 'outgoing', label: t('language.callHierarchy.outgoing') }
91
- ] }), _jsx("span", { className: "shrink-0 font-medium", children: view.name }), _jsx("span", { className: "shrink-0 font-medium text-text-muted", children: path === null ? '' : basenameOf(path) }), _jsx(PathText, { path: shown, className: "text-text-muted" }), _jsxs("div", { className: "ml-auto flex shrink-0 items-center gap-1", children: [view.sites > 1 && (_jsxs(_Fragment, { children: [_jsx(IconButton, { icon: ChevronLeft, size: "xs", label: t('language.callHierarchy.previousSite'), onClick: () => language.callHierarchy.stepSite(-1) }), _jsx("span", { className: "text-text-muted", children: t('language.callHierarchy.site', { current: formatNumber(view.site + 1), total: formatNumber(view.sites) }) }), _jsx(IconButton, { icon: ChevronRight, size: "xs", label: t('language.callHierarchy.nextSite'), onClick: () => language.callHierarchy.stepSite(1) })] })), _jsx(IconButton, { icon: X, size: "xs", label: t('language.callHierarchy.close'), onClick: () => language.callHierarchy.close() })] })] }), _jsxs("div", { className: "flex shrink-0", style: { height: body.height }, children: [_jsx(Tree, { language: language, view: view }), _jsx(Preview, { preview: view.preview })] }), _jsx("div", { className: "peek-hatch relative h-[14px]", children: _jsx(PanelResizeHandle, { container: view.container, height: body.height, onHeight: body.set, onCommit: body.commit }) })] }), view.container);
656
+ shown = path === null ? "" : folderOf(relativeTo(path, folder));
657
+ t10 = createPortal;
658
+ t6 = "flex flex-col bg-surface pt-[2px] font-sans text-xs text-text";
659
+ const t11 = CALL_HIERARCHY_HEIGHT - PANEL_BODY_HEIGHT + body.height;
660
+ if ($[18] !== t11) {
661
+ t7 = {
662
+ height: t11
663
+ };
664
+ $[18] = t11;
665
+ $[19] = t7;
666
+ } else {
667
+ t7 = $[19];
668
+ }
669
+ t8 = _temp;
670
+ if ($[20] === Symbol.for("react.memo_cache_sentinel")) {
671
+ t9 = /*#__PURE__*/_jsx("div", {
672
+ className: "peek-hatch h-[14px]"
673
+ });
674
+ $[20] = t9;
675
+ } else {
676
+ t9 = $[20];
677
+ }
678
+ t3 = "flex h-[33px] shrink-0 items-center gap-2 border-b border-border pr-2 pl-3 text-sm";
679
+ const t12 = view.direction;
680
+ let t13;
681
+ if ($[21] !== language.callHierarchy) {
682
+ t13 = direction => language.callHierarchy.setDirection(direction);
683
+ $[21] = language.callHierarchy;
684
+ $[22] = t13;
685
+ } else {
686
+ t13 = $[22];
687
+ }
688
+ let t14;
689
+ if ($[23] !== t) {
690
+ t14 = t("language.callHierarchy.direction");
691
+ $[23] = t;
692
+ $[24] = t14;
693
+ } else {
694
+ t14 = $[24];
695
+ }
696
+ let t15;
697
+ if ($[25] !== t) {
698
+ t15 = t("language.callHierarchy.incoming");
699
+ $[25] = t;
700
+ $[26] = t15;
701
+ } else {
702
+ t15 = $[26];
703
+ }
704
+ let t16;
705
+ if ($[27] !== t15) {
706
+ t16 = {
707
+ id: "incoming",
708
+ label: t15
709
+ };
710
+ $[27] = t15;
711
+ $[28] = t16;
712
+ } else {
713
+ t16 = $[28];
714
+ }
715
+ let t17;
716
+ if ($[29] !== t) {
717
+ t17 = t("language.callHierarchy.outgoing");
718
+ $[29] = t;
719
+ $[30] = t17;
720
+ } else {
721
+ t17 = $[30];
722
+ }
723
+ let t18;
724
+ if ($[31] !== t17) {
725
+ t18 = {
726
+ id: "outgoing",
727
+ label: t17
728
+ };
729
+ $[31] = t17;
730
+ $[32] = t18;
731
+ } else {
732
+ t18 = $[32];
733
+ }
734
+ let t19;
735
+ if ($[33] !== t16 || $[34] !== t18) {
736
+ t19 = [t16, t18];
737
+ $[33] = t16;
738
+ $[34] = t18;
739
+ $[35] = t19;
740
+ } else {
741
+ t19 = $[35];
742
+ }
743
+ if ($[36] !== t13 || $[37] !== t14 || $[38] !== t19 || $[39] !== view.direction) {
744
+ t4 = /*#__PURE__*/_jsx(Segmented, {
745
+ value: t12,
746
+ onValueChange: t13,
747
+ label: t14,
748
+ options: t19
749
+ });
750
+ $[36] = t13;
751
+ $[37] = t14;
752
+ $[38] = t19;
753
+ $[39] = view.direction;
754
+ $[40] = t4;
755
+ } else {
756
+ t4 = $[40];
757
+ }
758
+ if ($[41] !== view.name) {
759
+ t5 = /*#__PURE__*/_jsx("span", {
760
+ className: "shrink-0 font-medium",
761
+ children: view.name
762
+ });
763
+ $[41] = view.name;
764
+ $[42] = t5;
765
+ } else {
766
+ t5 = $[42];
767
+ }
768
+ t1 = "shrink-0 font-medium text-text-muted";
769
+ t2 = path === null ? "" : basenameOf(path);
770
+ $[0] = body.height;
771
+ $[1] = folder;
772
+ $[2] = language.callHierarchy;
773
+ $[3] = t;
774
+ $[4] = view.direction;
775
+ $[5] = view.name;
776
+ $[6] = view.preview;
777
+ $[7] = shown;
778
+ $[8] = t1;
779
+ $[9] = t10;
780
+ $[10] = t2;
781
+ $[11] = t3;
782
+ $[12] = t4;
783
+ $[13] = t5;
784
+ $[14] = t6;
785
+ $[15] = t7;
786
+ $[16] = t8;
787
+ $[17] = t9;
788
+ } else {
789
+ shown = $[7];
790
+ t1 = $[8];
791
+ t10 = $[9];
792
+ t2 = $[10];
793
+ t3 = $[11];
794
+ t4 = $[12];
795
+ t5 = $[13];
796
+ t6 = $[14];
797
+ t7 = $[15];
798
+ t8 = $[16];
799
+ t9 = $[17];
800
+ }
801
+ let t11;
802
+ if ($[43] !== t1 || $[44] !== t2) {
803
+ t11 = /*#__PURE__*/_jsx("span", {
804
+ className: t1,
805
+ children: t2
806
+ });
807
+ $[43] = t1;
808
+ $[44] = t2;
809
+ $[45] = t11;
810
+ } else {
811
+ t11 = $[45];
812
+ }
813
+ let t12;
814
+ if ($[46] !== shown) {
815
+ t12 = /*#__PURE__*/_jsx(PathText, {
816
+ path: shown,
817
+ className: "text-text-muted"
818
+ });
819
+ $[46] = shown;
820
+ $[47] = t12;
821
+ } else {
822
+ t12 = $[47];
823
+ }
824
+ let t13;
825
+ if ($[48] !== language.callHierarchy || $[49] !== t || $[50] !== view.site || $[51] !== view.sites) {
826
+ t13 = view.sites > 1 && /*#__PURE__*/_jsxs(_Fragment, {
827
+ children: [/*#__PURE__*/_jsx(IconButton, {
828
+ icon: ChevronLeft,
829
+ size: "xs",
830
+ label: t("language.callHierarchy.previousSite"),
831
+ onClick: () => language.callHierarchy.stepSite(-1)
832
+ }), /*#__PURE__*/_jsx("span", {
833
+ className: "text-text-muted",
834
+ children: t("language.callHierarchy.site", {
835
+ current: formatNumber(view.site + 1),
836
+ total: formatNumber(view.sites)
837
+ })
838
+ }), /*#__PURE__*/_jsx(IconButton, {
839
+ icon: ChevronRight,
840
+ size: "xs",
841
+ label: t("language.callHierarchy.nextSite"),
842
+ onClick: () => language.callHierarchy.stepSite(1)
843
+ })]
844
+ });
845
+ $[48] = language.callHierarchy;
846
+ $[49] = t;
847
+ $[50] = view.site;
848
+ $[51] = view.sites;
849
+ $[52] = t13;
850
+ } else {
851
+ t13 = $[52];
852
+ }
853
+ let t14;
854
+ if ($[53] !== t) {
855
+ t14 = t("language.callHierarchy.close");
856
+ $[53] = t;
857
+ $[54] = t14;
858
+ } else {
859
+ t14 = $[54];
860
+ }
861
+ let t15;
862
+ if ($[55] !== language.callHierarchy) {
863
+ t15 = () => language.callHierarchy.close();
864
+ $[55] = language.callHierarchy;
865
+ $[56] = t15;
866
+ } else {
867
+ t15 = $[56];
868
+ }
869
+ let t16;
870
+ if ($[57] !== t14 || $[58] !== t15) {
871
+ t16 = /*#__PURE__*/_jsx(IconButton, {
872
+ icon: X,
873
+ size: "xs",
874
+ label: t14,
875
+ onClick: t15
876
+ });
877
+ $[57] = t14;
878
+ $[58] = t15;
879
+ $[59] = t16;
880
+ } else {
881
+ t16 = $[59];
882
+ }
883
+ let t17;
884
+ if ($[60] !== t13 || $[61] !== t16) {
885
+ t17 = /*#__PURE__*/_jsxs("div", {
886
+ className: "ml-auto flex shrink-0 items-center gap-1",
887
+ children: [t13, t16]
888
+ });
889
+ $[60] = t13;
890
+ $[61] = t16;
891
+ $[62] = t17;
892
+ } else {
893
+ t17 = $[62];
894
+ }
895
+ let t18;
896
+ if ($[63] !== t11 || $[64] !== t12 || $[65] !== t17 || $[66] !== t3 || $[67] !== t4 || $[68] !== t5) {
897
+ t18 = /*#__PURE__*/_jsxs("div", {
898
+ className: t3,
899
+ children: [t4, t5, t11, t12, t17]
900
+ });
901
+ $[63] = t11;
902
+ $[64] = t12;
903
+ $[65] = t17;
904
+ $[66] = t3;
905
+ $[67] = t4;
906
+ $[68] = t5;
907
+ $[69] = t18;
908
+ } else {
909
+ t18 = $[69];
910
+ }
911
+ let t19;
912
+ if ($[70] !== body.height) {
913
+ t19 = {
914
+ height: body.height
915
+ };
916
+ $[70] = body.height;
917
+ $[71] = t19;
918
+ } else {
919
+ t19 = $[71];
920
+ }
921
+ let t20;
922
+ if ($[72] !== language || $[73] !== view) {
923
+ t20 = /*#__PURE__*/_jsx(Tree, {
924
+ language: language,
925
+ view: view
926
+ });
927
+ $[72] = language;
928
+ $[73] = view;
929
+ $[74] = t20;
930
+ } else {
931
+ t20 = $[74];
932
+ }
933
+ let t21;
934
+ if ($[75] !== view.preview) {
935
+ t21 = /*#__PURE__*/_jsx(Preview, {
936
+ preview: view.preview
937
+ });
938
+ $[75] = view.preview;
939
+ $[76] = t21;
940
+ } else {
941
+ t21 = $[76];
942
+ }
943
+ let t22;
944
+ if ($[77] !== t19 || $[78] !== t20 || $[79] !== t21) {
945
+ t22 = /*#__PURE__*/_jsxs("div", {
946
+ className: "flex shrink-0",
947
+ style: t19,
948
+ children: [t20, t21]
949
+ });
950
+ $[77] = t19;
951
+ $[78] = t20;
952
+ $[79] = t21;
953
+ $[80] = t22;
954
+ } else {
955
+ t22 = $[80];
956
+ }
957
+ let t23;
958
+ if ($[81] !== body.commit || $[82] !== body.height || $[83] !== body.set || $[84] !== view.container) {
959
+ t23 = /*#__PURE__*/_jsx("div", {
960
+ className: "peek-hatch relative h-[14px]",
961
+ children: /*#__PURE__*/_jsx(PanelResizeHandle, {
962
+ container: view.container,
963
+ height: body.height,
964
+ onHeight: body.set,
965
+ onCommit: body.commit
966
+ })
967
+ });
968
+ $[81] = body.commit;
969
+ $[82] = body.height;
970
+ $[83] = body.set;
971
+ $[84] = view.container;
972
+ $[85] = t23;
973
+ } else {
974
+ t23 = $[85];
975
+ }
976
+ let t24;
977
+ if ($[86] !== t18 || $[87] !== t22 || $[88] !== t23 || $[89] !== t6 || $[90] !== t7 || $[91] !== t8 || $[92] !== t9) {
978
+ t24 = /*#__PURE__*/_jsxs("div", {
979
+ className: t6,
980
+ style: t7,
981
+ onPointerDown: t8,
982
+ children: [t9, t18, t22, t23]
983
+ });
984
+ $[86] = t18;
985
+ $[87] = t22;
986
+ $[88] = t23;
987
+ $[89] = t6;
988
+ $[90] = t7;
989
+ $[91] = t8;
990
+ $[92] = t9;
991
+ $[93] = t24;
992
+ } else {
993
+ t24 = $[93];
994
+ }
995
+ let t25;
996
+ if ($[94] !== t10 || $[95] !== t24 || $[96] !== view.container) {
997
+ t25 = t10(t24, view.container);
998
+ $[94] = t10;
999
+ $[95] = t24;
1000
+ $[96] = view.container;
1001
+ $[97] = t25;
1002
+ } else {
1003
+ t25 = $[97];
1004
+ }
1005
+ return t25;
92
1006
  }
1007
+ function _temp(event) {
1008
+ return event.preventDefault();
1009
+ }