@qwik.dev/devtools 2.0.0-beta.45 → 2.0.0-beta.47

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 (32) hide show
  1. package/dist/kit/index.d.mts +6 -0
  2. package/dist/plugin/codegen.mjs +1 -1
  3. package/dist/plugin/{create-hook-runtime-CoRDu99E.mjs → create-hook-runtime-CAtQC5B3.mjs} +40 -18
  4. package/dist/plugin/index.mjs +12 -1
  5. package/dist/ui/lib-types/ui/src/features/HookTree/hookTreeHelpers.d.ts +1 -1
  6. package/dist/ui/packages/devtools/ui/src/components/DevtoolsButton/DevtoolsButton.qwik.mjs +6 -6
  7. package/dist/ui/packages/devtools/ui/src/components/DevtoolsPanel/DevtoolsPanel.qwik.mjs +19 -19
  8. package/dist/ui/packages/devtools/ui/src/components/Tab/Tab.qwik.mjs +2 -2
  9. package/dist/ui/packages/devtools/ui/src/components/Tree/Tree.qwik.mjs +5 -5
  10. package/dist/ui/packages/devtools/ui/src/devtools/CommandPalette.qwik.mjs +13 -13
  11. package/dist/ui/packages/devtools/ui/src/devtools/CustomizeTabsPanel.qwik.mjs +11 -11
  12. package/dist/ui/packages/devtools/ui/src/devtools/DevtoolsSidebar.qwik.mjs +5 -5
  13. package/dist/ui/packages/devtools/ui/src/devtools/QwikDevtools.qwik.mjs +3 -3
  14. package/dist/ui/packages/devtools/ui/src/devtools/QwikDevtoolsExtension.qwik.mjs +2 -2
  15. package/dist/ui/packages/devtools/ui/src/features/BuildAnalysis/BuildAnalysis.qwik.mjs +5 -5
  16. package/dist/ui/packages/devtools/ui/src/features/CodeBreak/CodeBreak.qwik.mjs +3 -3
  17. package/dist/ui/packages/devtools/ui/src/features/CodeBreak/HtmlParser.qwik.mjs +4 -4
  18. package/dist/ui/packages/devtools/ui/src/features/CodeBreak/StateParser.qwik.mjs +4 -4
  19. package/dist/ui/packages/devtools/ui/src/features/HookTree/HookTree.qwik.mjs +23 -23
  20. package/dist/ui/packages/devtools/ui/src/features/HookTree/hookTreeHelpers.qwik.mjs +2 -2
  21. package/dist/ui/packages/devtools/ui/src/features/Overview/Overview.qwik.mjs +6 -6
  22. package/dist/ui/packages/devtools/ui/src/features/Packages/Packages.qwik.mjs +15 -15
  23. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyCard/DependencyCard.qwik.mjs +6 -6
  24. package/dist/ui/packages/devtools/ui/src/features/Packages/components/DependencyToolbar/DependencyToolbar.qwik.mjs +4 -4
  25. package/dist/ui/packages/devtools/ui/src/features/Packages/components/PackageIcon/PackageIcon.qwik.mjs +2 -2
  26. package/dist/ui/packages/devtools/ui/src/features/Packages/components/SearchResultCard/SearchResultCard.qwik.mjs +3 -3
  27. package/dist/ui/packages/devtools/ui/src/features/Performance/Performance.qwik.mjs +10 -10
  28. package/dist/ui/packages/devtools/ui/src/features/Preloads/Preloads.qwik.mjs +19 -19
  29. package/dist/ui/packages/devtools/ui/src/features/RenderTree/RenderTree.qwik.mjs +13 -13
  30. package/dist/ui/packages/devtools/ui/src/features/RenderTree/components/HookFiltersCard.qwik.mjs +2 -2
  31. package/dist/ui/q-manifest.json +62 -62
  32. package/package.json +4 -4
@@ -77,6 +77,9 @@ declare const QWIK_VNODE_PROTOCOL: {
77
77
  interface DevtoolsVNodeTreeNode {
78
78
  name?: string;
79
79
  id: string;
80
+ source?: {
81
+ file: string;
82
+ };
80
83
  label?: string;
81
84
  props?: Record<string, unknown>;
82
85
  children?: DevtoolsVNodeTreeNode[];
@@ -279,6 +282,7 @@ interface QwikDevtoolsSignalEntry {
279
282
  interface QwikDevtoolsComponentSnapshot {
280
283
  /** Source path (e.g. `src/routes/index.tsx_Counter`) */
281
284
  path: string;
285
+ symbol?: string;
282
286
  /** Short display name */
283
287
  name: string;
284
288
  /** Tracked signals with current values */
@@ -400,6 +404,7 @@ interface DevtoolsRenderStats {
400
404
  perf?: QwikPerfStoreRemembered;
401
405
  }
402
406
  interface ComponentDevtoolsState {
407
+ symbol?: string;
403
408
  hooks: ParsedStructure[];
404
409
  stats: DevtoolsRenderStats;
405
410
  }
@@ -497,6 +502,7 @@ interface QwikDevtoolsHookExtended extends QwikDevtoolsHook {
497
502
  getComponentDetail(name: string, chunk?: string): DevtoolsComponentDetailEntry[] | null;
498
503
  setSignalValue(name: string, chunk: string | undefined, varName: string, val: unknown): boolean;
499
504
  getVNodeTree?(): DevtoolsVNodeTreeNode[] | null;
505
+ refreshVNodeTree?(): void;
500
506
  getNodeProps?(nodeId: string): Record<string, unknown> | null;
501
507
  resolveElementToComponent?(el: Element | null): string | null;
502
508
  getElementRect?(nodeId: string): {
@@ -1,2 +1,2 @@
1
- import { n as createHookRuntime, r as createVNodeRuntime, t as createExtensionHookRuntime } from "./create-hook-runtime-CoRDu99E.mjs";
1
+ import { n as createHookRuntime, r as createVNodeRuntime, t as createExtensionHookRuntime } from "./create-hook-runtime-CAtQC5B3.mjs";
2
2
  export { createExtensionHookRuntime, createHookRuntime, createVNodeRuntime };
@@ -38,6 +38,8 @@ function isRuntimeExpression(value) {
38
38
  */
39
39
  function __qwik_derive_component_name__(path) {
40
40
  const lastSeg = path.split("/").pop() || path;
41
+ const sourceSuffix = lastSeg.match(/\.[jt]sx?_(.+)$/);
42
+ if (sourceSuffix) return sourceSuffix[1];
41
43
  const underIdx = lastSeg.lastIndexOf("_");
42
44
  return underIdx > 0 ? lastSeg.substring(underIdx + 1) : lastSeg;
43
45
  }
@@ -157,7 +159,8 @@ function __qwik_install_hook_runtime__(options) {
157
159
  const state = getState();
158
160
  if (!state) return [];
159
161
  return Object.keys(state).map((path) => {
160
- const hooks = state[path].hooks || [];
162
+ const comp = state[path];
163
+ const hooks = comp.hooks || [];
161
164
  const name = __qwik_derive_component_name__(path);
162
165
  const signals = [];
163
166
  const hookEntries = [];
@@ -177,7 +180,8 @@ function __qwik_install_hook_runtime__(options) {
177
180
  path,
178
181
  name,
179
182
  signals,
180
- hooks: hookEntries
183
+ hooks: hookEntries,
184
+ ...comp.symbol ? { symbol: comp.symbol } : {}
181
185
  };
182
186
  });
183
187
  },
@@ -191,7 +195,7 @@ function __qwik_install_hook_runtime__(options) {
191
195
  getComponentDetail(componentName, qrlChunk) {
192
196
  const state = getState();
193
197
  if (!state) return null;
194
- const matchingKey = __qwik_find_component_key__(state, componentName, qrlChunk);
198
+ const matchingKey = __qwik_find_component_key__(state, componentName, qrlChunk ?? null);
195
199
  if (!matchingKey) return null;
196
200
  const comp = state[matchingKey];
197
201
  if (!comp || !comp.hooks) return null;
@@ -204,7 +208,7 @@ function __qwik_install_hook_runtime__(options) {
204
208
  setSignalValue(componentName, qrlChunk, variableName, newValue) {
205
209
  const state = getState();
206
210
  if (!state) return false;
207
- const matchingKey = __qwik_find_component_key__(state, componentName, qrlChunk);
211
+ const matchingKey = __qwik_find_component_key__(state, componentName, qrlChunk ?? null);
208
212
  if (!matchingKey) return false;
209
213
  const comp = state[matchingKey];
210
214
  if (!comp || !comp.hooks) return false;
@@ -406,8 +410,7 @@ function __qwik_install_vnode_runtime__(options, internals) {
406
410
  return String(val);
407
411
  }
408
412
  function normalizeName(str) {
409
- const name = str.split("_")[0] || "";
410
- return name.charAt(0).toUpperCase() + name.slice(1).toLowerCase();
413
+ return str.split("_component")[0];
411
414
  }
412
415
  function buildTree(container, vnode) {
413
416
  if (!vnode) return [];
@@ -418,26 +421,28 @@ function __qwik_install_vnode_runtime__(options, internals) {
418
421
  const renderFn = isVirtual ? container.getHostProp(current, QRENDERFN) : null;
419
422
  const isComponent = isVirtual && typeof renderFn === "function";
420
423
  if (isComponent) {
424
+ let component;
421
425
  let name = "Component";
422
426
  let qId = "";
423
427
  let colonId = "";
424
428
  try {
429
+ const symbol = renderFn.getSymbol?.() || renderFn[SYMBOL_KEY] || "";
430
+ component = componentNames.get(symbol);
431
+ name = component?.name || normalizeName(symbol) || "Component";
425
432
  const keys = internals._vnode_getAttrKeys(container, current);
426
433
  for (let i = 0; i < keys.length; i++) {
427
434
  if (keys[i] === QTYPE) continue;
428
435
  if (keys[i] === QID) qId = String(container.getHostProp(current, QID) || "");
429
436
  if (keys[i] === QCOLON) colonId = String(container.getHostProp(current, QCOLON) || "");
430
437
  }
431
- if (renderFn.getSymbol) name = normalizeName(renderFn.getSymbol());
432
- else if (renderFn[SYMBOL_KEY]) name = normalizeName(renderFn[SYMBOL_KEY]);
433
438
  } catch (_) {}
434
439
  let qrlChunk = "";
435
440
  let qrlPath = "";
436
441
  try {
437
442
  const chunk = renderFn[CHUNK_KEY] || "";
438
443
  const chunkIdx = chunk.indexOf("_component");
439
- qrlChunk = chunkIdx > 0 ? chunk.substring(0, chunkIdx) : chunk;
440
- qrlPath = renderFn.dev && renderFn.dev.file ? renderFn.dev.file : qrlChunk;
444
+ qrlChunk = component?.path || (chunkIdx > 0 ? chunk.substring(0, chunkIdx) : chunk);
445
+ qrlPath = component?.file || (renderFn.dev && renderFn.dev.file ? renderFn.dev.file : qrlChunk);
441
446
  } catch (_) {}
442
447
  let children = [];
443
448
  const firstChild = internals._vnode_getFirstChild(current);
@@ -455,6 +460,7 @@ function __qwik_install_vnode_runtime__(options, internals) {
455
460
  name,
456
461
  id: nodeId,
457
462
  label: name,
463
+ ...component?.file ? { source: { file: component.file } } : {},
458
464
  props: nodeProps,
459
465
  children: children.length > 0 ? children : void 0
460
466
  });
@@ -473,28 +479,43 @@ function __qwik_install_vnode_runtime__(options, internals) {
473
479
  const result = [];
474
480
  for (let i = 0; i < nodes.length; i++) {
475
481
  let n = nodes[i];
476
- if (n.name === "Qwikdevtools" || n.name === "Devtoolscontainer") continue;
482
+ if (n.name?.toLowerCase() === "qwikdevtools" || n.name?.toLowerCase() === "devtoolscontainer") continue;
477
483
  if (n.children) {
478
484
  n = {
479
485
  name: n.name,
480
486
  id: n.id,
481
487
  label: n.label,
482
488
  props: n.props,
489
+ ...n.source ? { source: n.source } : {},
483
490
  children: filterDevtools(n.children)
484
491
  };
485
- if (n.children.length === 0) delete n.children;
492
+ if (n.children?.length === 0) delete n.children;
486
493
  }
487
494
  result.push(n);
488
495
  }
489
496
  return result;
490
497
  }
498
+ const componentNames = /* @__PURE__ */ new Map();
491
499
  function getTree() {
492
500
  try {
493
501
  idx = 0;
494
502
  vnodeMap = {};
495
- const container = internals._getDomContainer(document.documentElement);
496
- if (!container || !container.rootVNode) return null;
497
- return filterDevtools(buildTree(container, container.rootVNode));
503
+ componentNames.clear();
504
+ const hook = window[options.devtoolsGlobalKey]?.[options.hookKey];
505
+ for (const component of hook?.getComponentTreeSnapshot?.() ?? []) if (component.symbol) componentNames.set(component.symbol, {
506
+ name: component.name,
507
+ path: component.path,
508
+ file: component.path.match(/^(.*\.[jt]sx?)_/)?.[1]
509
+ });
510
+ const elements = document.querySelectorAll("[q\\:container]");
511
+ if (!elements.length) return null;
512
+ const tree = [];
513
+ for (const element of elements) {
514
+ const container = internals._getDomContainer(element);
515
+ if (!container?.rootVNode) return null;
516
+ tree.push(...buildTree(container, container.rootVNode));
517
+ }
518
+ return filterDevtools(tree);
498
519
  } catch (_) {
499
520
  return null;
500
521
  }
@@ -502,7 +523,7 @@ function __qwik_install_vnode_runtime__(options, internals) {
502
523
  function setupBridge() {
503
524
  if (typeof window === "undefined") return;
504
525
  const hook = window[options.devtoolsGlobalKey]?.[options.hookKey];
505
- if (!hook) return;
526
+ if (!hook || hook.getVNodeTree) return;
506
527
  hook.getVNodeTree = getTree;
507
528
  hook.resolveElementToComponent = function(el) {
508
529
  if (!el) return null;
@@ -621,10 +642,11 @@ function __qwik_install_vnode_runtime__(options, internals) {
621
642
  tree
622
643
  }, "*");
623
644
  }
624
- new MutationObserver(function() {
645
+ hook.refreshVNodeTree = function() {
625
646
  if (debounceTimer) clearTimeout(debounceTimer);
626
647
  debounceTimer = setTimeout(pushTree, DEBOUNCE_MS);
627
- }).observe(document.documentElement, {
648
+ };
649
+ new MutationObserver(hook.refreshVNodeTree).observe(document.documentElement, {
628
650
  childList: true,
629
651
  subtree: true,
630
652
  characterData: true,
@@ -1,4 +1,4 @@
1
- import { a as createRuntimeAssignment, c as runtimeExpression, i as __qwik_install_perf_runtime__, l as serializeRuntimeValue, n as createHookRuntime, o as createRuntimeInstallerSource, r as createVNodeRuntime, s as createRuntimeModule } from "./create-hook-runtime-CoRDu99E.mjs";
1
+ import { a as createRuntimeAssignment, c as runtimeExpression, i as __qwik_install_perf_runtime__, l as serializeRuntimeValue, n as createHookRuntime, o as createRuntimeInstallerSource, r as createVNodeRuntime, s as createRuntimeModule } from "./create-hook-runtime-CAtQC5B3.mjs";
2
2
  import VueInspector from "vite-plugin-inspect";
3
3
  import fs from "node:fs";
4
4
  import fsp, { access, readFile } from "node:fs/promises";
@@ -1363,6 +1363,7 @@ function buildComponentArg(path, exportName) {
1363
1363
  return JSON.stringify(`${baseArg}${suffix}`);
1364
1364
  }
1365
1365
  function buildComponentSuffix(baseArg, exportName) {
1366
+ if (exportName === "") return "_default";
1366
1367
  if (exportName && typeof exportName === "string") return `_${exportName}`;
1367
1368
  if (baseArg.endsWith("index.tsx")) {
1368
1369
  const parts = baseArg.split("/");
@@ -1652,6 +1653,7 @@ const globalVersion = JSON.stringify(QWIK_DEVTOOLS_GLOBAL.version);
1652
1653
  const componentStateKey = JSON.stringify(QWIK_DEVTOOLS_GLOBAL.props.componentState);
1653
1654
  /** Virtual module source for devtools tracking. Collects hooks and tracks render statistics. */
1654
1655
  const useCollectHooks = `import { $, useSignal, useVisibleTask$ } from "@qwik.dev/core"
1656
+ import { _getContextContainer, _getContextHostElement } from "@qwik.dev/core/internal"
1655
1657
 
1656
1658
  function initComponentState() {
1657
1659
  return {
@@ -1676,11 +1678,16 @@ function getOrCreateState(src) {
1676
1678
  * Hook to collect component hooks
1677
1679
  */
1678
1680
  export const useCollectHooks = (src) => {
1681
+ const container = _getContextContainer()
1682
+ const host = _getContextHostElement()
1683
+ const symbol = container?.getHostProp(host, "q:renderFn")?.getSymbol?.()
1679
1684
  const hooksList = useSignal(new Set())
1680
1685
  useVisibleTask$(({ track }) => {
1681
1686
  const newHooks = track(() => hooksList.value)
1682
1687
  const state = getOrCreateState(src)
1683
1688
  state.hooks = [...newHooks]
1689
+ state.symbol = symbol
1690
+ window[${globalKey}]?.hook?.refreshVNodeTree?.()
1684
1691
  }, { strategy: 'document-ready' })
1685
1692
 
1686
1693
  return $((args) => {
@@ -1688,6 +1695,10 @@ export const useCollectHooks = (src) => {
1688
1695
  return
1689
1696
  }
1690
1697
  hooksList.value.add(args)
1698
+ if (typeof window !== 'undefined') {
1699
+ getOrCreateState(src).hooks = [...hooksList.value]
1700
+ window[${globalKey}]?.hook?.refreshVNodeTree?.()
1701
+ }
1691
1702
  })
1692
1703
  }
1693
1704
  `;
@@ -2,7 +2,7 @@ import type { TreeNode, ElementType } from '../../components/Tree/type';
2
2
  import type { VNodeTreeNode, ComponentDetailEntry } from '../../devtools/page-data-source';
3
3
  /** VNodeTreeNode -> TreeNode conversion */
4
4
  export declare function toTreeNodes(vnodes: VNodeTreeNode[]): TreeNode[];
5
- /** Quick structural fingerprint from node IDs. */
5
+ /** Includes names so collected source metadata refreshes existing nodes. */
6
6
  export declare function treeIdFingerprint(nodes: VNodeTreeNode[]): string;
7
7
  /** Tree search helpers */
8
8
  export declare function findNodeById(nodes: TreeNode[], id: string): TreeNode | null;
@@ -1,5 +1,5 @@
1
1
  import { QwikLogo } from "../Icons/Icons.qwik.mjs";
2
- import { _captures, _fnSignal, _jsxSorted, componentQrl, inlinedQrl, useSignal, useTaskQrl } from "@qwik.dev/core";
2
+ import { _capturesObj, _fnSignal, _jsxSorted, componentQrl, inlinedQrl, useSignal, useTaskQrl } from "@qwik.dev/core";
3
3
  var _hf0 = (p0, p1) => ({
4
4
  bottom: `${p1.value.y}px`,
5
5
  right: `${p1.value.x}px`,
@@ -25,7 +25,7 @@ var DevtoolsButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
25
25
  const isMoved = useSignal(false);
26
26
  /** Handles mouse movement during drag. Defined outside handleMouseDown$ for serialization. */
27
27
  const handleMouseMove = /*#__PURE__*/ inlinedQrl((event) => {
28
- const isDragging = _captures[0], isMoved = _captures[1], position = _captures[2], startElementPos = _captures[3], startMousePos = _captures[4];
28
+ let isDragging = _capturesObj._[0], isMoved = _capturesObj._[1], position = _capturesObj._[2], startElementPos = _capturesObj._[3], startMousePos = _capturesObj._[4];
29
29
  if (!isDragging.value) return;
30
30
  const deltaX = event.clientX - startMousePos.value.x;
31
31
  const deltaY = event.clientY - startMousePos.value.y;
@@ -47,11 +47,11 @@ var DevtoolsButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
47
47
  ]);
48
48
  /** Handles mouse release to end drag. Defined outside handleMouseDown$ for serialization. */
49
49
  const handleMouseUp = /*#__PURE__*/ inlinedQrl(() => {
50
- const isDragging = _captures[0];
50
+ let isDragging = _capturesObj._[0];
51
51
  if (isDragging.value) isDragging.value = false;
52
52
  }, "DevtoolsButton_component_handleMouseUp_GgvQR4Yjzk0", [isDragging]);
53
53
  const handleClick = /*#__PURE__*/ inlinedQrl(() => {
54
- const isMoved = _captures[0], props = _captures[1];
54
+ let isMoved = _capturesObj._[0], props = _capturesObj._[1];
55
55
  if (isMoved.value) {
56
56
  isMoved.value = false;
57
57
  return;
@@ -61,7 +61,7 @@ var DevtoolsButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
61
61
  }, "DevtoolsButton_component_handleClick_Rt3WuwyzzVQ", [isMoved, props]);
62
62
  /** Handles the mouse down event to initiate dragging. */
63
63
  const handleMouseDown = /*#__PURE__*/ inlinedQrl((event) => {
64
- const elementRef = _captures[0], isDragging = _captures[1], isMoved = _captures[2], position = _captures[3], startElementPos = _captures[4], startMousePos = _captures[5];
64
+ let elementRef = _capturesObj._[0], isDragging = _capturesObj._[1], isMoved = _capturesObj._[2], position = _capturesObj._[3], startElementPos = _capturesObj._[4], startMousePos = _capturesObj._[5];
65
65
  if (event.button !== 0) return;
66
66
  if (!elementRef.value) return;
67
67
  event.preventDefault();
@@ -91,7 +91,7 @@ var DevtoolsButton = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
91
91
  startMousePos
92
92
  ]);
93
93
  useTaskQrl(/*#__PURE__*/ inlinedQrl(({ track, cleanup }) => {
94
- const handleMouseMove = _captures[0], handleMouseUp = _captures[1], isDragging = _captures[2];
94
+ let handleMouseMove = _capturesObj._[0], handleMouseUp = _capturesObj._[1], isDragging = _capturesObj._[2];
95
95
  track(() => isDragging.value);
96
96
  if (isDragging.value && typeof window !== "undefined") {
97
97
  window.addEventListener("mousemove", handleMouseMove);
@@ -1,5 +1,5 @@
1
1
  import { IconArrowsPointingIn, IconArrowsPointingOut, IconXMark, QwikLogo } from "../Icons/Icons.qwik.mjs";
2
- import { Slot, _captures, _fnSignal, _jsxSorted, componentQrl, inlinedQrl, isBrowser, useSignal, useTaskQrl, useVisibleTaskQrl } from "@qwik.dev/core";
2
+ import { Slot, _capturesObj, _fnSignal, _jsxSorted, componentQrl, inlinedQrl, isBrowser, useSignal, useTaskQrl, useVisibleTaskQrl } from "@qwik.dev/core";
3
3
  import { Fragment } from "@qwik.dev/core/jsx-runtime";
4
4
  var _hf0 = (p0) => ["border-glass-border/80 flex items-center justify-between border-b px-4 py-3", p0.state.isPanelFullscreen ? "cursor-default" : "cursor-grab"];
5
5
  var _hf0_str = "[\"border-glass-border/80 flex items-center justify-between border-b px-4 py-3\",p0.state.isPanelFullscreen?\"cursor-default\":\"cursor-grab\"]";
@@ -112,12 +112,12 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
112
112
  });
113
113
  const panelBounds = useSignal({ ...props.state.panelBounds });
114
114
  const stopInteraction = /*#__PURE__*/ inlinedQrl(() => {
115
- const interactionMode = _captures[0];
115
+ let interactionMode = _capturesObj._[0];
116
116
  interactionMode.value = null;
117
117
  resetPointerStyles();
118
118
  }, "DevtoolsPanel_component_stopInteraction_FDdPgYv46RA", [interactionMode]);
119
119
  const handleMouseMove = /*#__PURE__*/ inlinedQrl((event) => {
120
- const interactionMode = _captures[0], panelBounds = _captures[1], props = _captures[2], startBounds = _captures[3], startMousePosition = _captures[4];
120
+ let interactionMode = _capturesObj._[0], panelBounds = _capturesObj._[1], props = _capturesObj._[2], startBounds = _capturesObj._[3], startMousePosition = _capturesObj._[4];
121
121
  if (!interactionMode.value || props.state.isPanelFullscreen) return;
122
122
  const deltaX = event.clientX - startMousePosition.value.x;
123
123
  const deltaY = event.clientY - startMousePosition.value.y;
@@ -163,7 +163,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
163
163
  startMousePosition
164
164
  ]);
165
165
  const handleDragStart = /*#__PURE__*/ inlinedQrl((event) => {
166
- const interactionMode = _captures[0], panelBounds = _captures[1], props = _captures[2], startBounds = _captures[3], startMousePosition = _captures[4];
166
+ let interactionMode = _capturesObj._[0], panelBounds = _capturesObj._[1], props = _capturesObj._[2], startBounds = _capturesObj._[3], startMousePosition = _capturesObj._[4];
167
167
  if (event.button !== 0 || props.state.isPanelFullscreen) return;
168
168
  event.preventDefault();
169
169
  event.stopPropagation();
@@ -185,7 +185,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
185
185
  startMousePosition
186
186
  ]);
187
187
  const handleResizeStart = /*#__PURE__*/ inlinedQrl((direction, event) => {
188
- const interactionMode = _captures[0], panelBounds = _captures[1], props = _captures[2], startBounds = _captures[3], startMousePosition = _captures[4];
188
+ let interactionMode = _capturesObj._[0], panelBounds = _capturesObj._[1], props = _capturesObj._[2], startBounds = _capturesObj._[3], startMousePosition = _capturesObj._[4];
189
189
  if (event.button !== 0 || props.state.isPanelFullscreen) return;
190
190
  event.preventDefault();
191
191
  event.stopPropagation();
@@ -207,7 +207,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
207
207
  startMousePosition
208
208
  ]);
209
209
  const handleToggleFullscreen = /*#__PURE__*/ inlinedQrl(() => {
210
- const interactionMode = _captures[0], panelBounds = _captures[1], props = _captures[2];
210
+ let interactionMode = _capturesObj._[0], panelBounds = _capturesObj._[1], props = _capturesObj._[2];
211
211
  if (!isBrowser) return;
212
212
  if (props.state.isPanelFullscreen) {
213
213
  props.state.isPanelFullscreen = false;
@@ -226,7 +226,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
226
226
  props
227
227
  ]);
228
228
  useTaskQrl(/*#__PURE__*/ inlinedQrl(({ cleanup }) => {
229
- const props = _captures[0];
229
+ let props = _capturesObj._[0];
230
230
  const handleKeyPress = (e) => {
231
231
  if (e.key === "`" && e.metaKey) props.state.isOpen = !props.state.isOpen;
232
232
  if (e.key === "Escape" && props.state.isPaletteOpen) props.state.isPaletteOpen = false;
@@ -239,7 +239,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
239
239
  });
240
240
  }, "DevtoolsPanel_component_useTask_m0ftdAGWrnk", [props]));
241
241
  useTaskQrl(/*#__PURE__*/ inlinedQrl(({ track, cleanup }) => {
242
- const handleMouseMove = _captures[0], interactionMode = _captures[1], stopInteraction = _captures[2];
242
+ let handleMouseMove = _capturesObj._[0], interactionMode = _capturesObj._[1], stopInteraction = _capturesObj._[2];
243
243
  track(() => interactionMode.value);
244
244
  if (!interactionMode.value || !isBrowser) return;
245
245
  window.addEventListener("mousemove", handleMouseMove);
@@ -257,7 +257,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
257
257
  stopInteraction
258
258
  ]));
259
259
  useVisibleTaskQrl(/*#__PURE__*/ inlinedQrl(({ track, cleanup }) => {
260
- const panelBounds = _captures[0], props = _captures[1];
260
+ let panelBounds = _capturesObj._[0], props = _capturesObj._[1];
261
261
  track(() => props.state.isOpen);
262
262
  track(() => props.state.isPanelFullscreen);
263
263
  if (!props.state.isOpen) return;
@@ -287,7 +287,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
287
287
  return /*#__PURE__*/ _jsxSorted(Fragment, null, null, [/*#__PURE__*/ _jsxSorted("div", null, {
288
288
  class: "fixed inset-0 z-[9990] bg-black/50 backdrop-blur-sm transition-opacity duration-300",
289
289
  "q-e:mousedown": /*#__PURE__*/ inlinedQrl(() => {
290
- const props = _captures[0];
290
+ let props = _capturesObj._[0];
291
291
  props.state.isOpen = false;
292
292
  }, "DevtoolsPanel_component_Fragment_div_q_e_mousedown_Yyj4ufBP6gI", [props])
293
293
  }, null, 3, null), /*#__PURE__*/ _jsxSorted("div", {
@@ -305,7 +305,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
305
305
  "aria-label": "Resize north",
306
306
  class: "absolute inset-x-4 top-0 z-20 h-2 cursor-ns-resize",
307
307
  "q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
308
- const handleResizeStart = _captures[0];
308
+ let handleResizeStart = _capturesObj._[0];
309
309
  return handleResizeStart("n", event);
310
310
  }, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_Kpo8QnowZug", [handleResizeStart])
311
311
  }, null, 3, null),
@@ -314,7 +314,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
314
314
  "aria-label": "Resize south",
315
315
  class: "absolute inset-x-4 bottom-0 z-20 h-2 cursor-ns-resize",
316
316
  "q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
317
- const handleResizeStart = _captures[0];
317
+ let handleResizeStart = _capturesObj._[0];
318
318
  return handleResizeStart("s", event);
319
319
  }, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_1_rpnKj8SmWbQ", [handleResizeStart])
320
320
  }, null, 3, null),
@@ -323,7 +323,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
323
323
  "aria-label": "Resize east",
324
324
  class: "absolute top-4 right-0 bottom-4 z-20 w-2 cursor-ew-resize",
325
325
  "q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
326
- const handleResizeStart = _captures[0];
326
+ let handleResizeStart = _capturesObj._[0];
327
327
  return handleResizeStart("e", event);
328
328
  }, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_2_7pH0bhGUSrQ", [handleResizeStart])
329
329
  }, null, 3, null),
@@ -332,7 +332,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
332
332
  "aria-label": "Resize west",
333
333
  class: "absolute top-4 bottom-4 left-0 z-20 w-2 cursor-ew-resize",
334
334
  "q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
335
- const handleResizeStart = _captures[0];
335
+ let handleResizeStart = _capturesObj._[0];
336
336
  return handleResizeStart("w", event);
337
337
  }, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_3_BqRiXxG6CsY", [handleResizeStart])
338
338
  }, null, 3, null),
@@ -341,7 +341,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
341
341
  "aria-label": "Resize northwest",
342
342
  class: "absolute top-0 left-0 z-20 h-4 w-4 cursor-nwse-resize",
343
343
  "q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
344
- const handleResizeStart = _captures[0];
344
+ let handleResizeStart = _capturesObj._[0];
345
345
  return handleResizeStart("nw", event);
346
346
  }, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_4_azrG92Zn70A", [handleResizeStart])
347
347
  }, null, 3, null),
@@ -350,7 +350,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
350
350
  "aria-label": "Resize northeast",
351
351
  class: "absolute top-0 right-0 z-20 h-4 w-4 cursor-nesw-resize",
352
352
  "q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
353
- const handleResizeStart = _captures[0];
353
+ let handleResizeStart = _capturesObj._[0];
354
354
  return handleResizeStart("ne", event);
355
355
  }, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_5_hTShrOzMO2s", [handleResizeStart])
356
356
  }, null, 3, null),
@@ -359,7 +359,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
359
359
  "aria-label": "Resize southwest",
360
360
  class: "absolute bottom-0 left-0 z-20 h-4 w-4 cursor-nesw-resize",
361
361
  "q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
362
- const handleResizeStart = _captures[0];
362
+ let handleResizeStart = _capturesObj._[0];
363
363
  return handleResizeStart("sw", event);
364
364
  }, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_6_ukQTZz0jKXc", [handleResizeStart])
365
365
  }, null, 3, null),
@@ -368,7 +368,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
368
368
  "aria-label": "Resize southeast",
369
369
  class: "absolute right-0 bottom-0 z-20 h-4 w-4 cursor-nwse-resize",
370
370
  "q-e:mousedown": /*#__PURE__*/ inlinedQrl((event) => {
371
- const handleResizeStart = _captures[0];
371
+ let handleResizeStart = _capturesObj._[0];
372
372
  return handleResizeStart("se", event);
373
373
  }, "DevtoolsPanel_component_Fragment_div_Fragment_button_q_e_mousedown_7_eWsKZf7ZlNg", [handleResizeStart])
374
374
  }, null, 3, null)
@@ -392,7 +392,7 @@ var DevtoolsPanel = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props)
392
392
  "aria-label": "Close devtools",
393
393
  class: "bg-card-item-bg hover:bg-card-item-hover-bg border-glass-border text-muted-foreground hover:text-foreground flex h-9 w-9 cursor-pointer items-center justify-center rounded-full border shadow-sm backdrop-blur-md transition-all hover:scale-105 active:scale-95",
394
394
  "q-e:click": /*#__PURE__*/ inlinedQrl(() => {
395
- const props = _captures[0];
395
+ let props = _capturesObj._[0];
396
396
  props.state.isOpen = false;
397
397
  }, "DevtoolsPanel_component_Fragment_div_div_div_div_button_q_e_click_wy3qFhRhsTU", [props])
398
398
  }, /*#__PURE__*/ _jsxSorted(IconXMark, null, { class: "h-5 w-5" }, null, 3, "YV_4"), 1, null)], 1, null)], 1, null), /*#__PURE__*/ _jsxSorted("div", null, { class: "flex min-h-0 min-w-0 flex-1 overflow-hidden" }, /*#__PURE__*/ _jsxSorted(Slot, null, null, null, 3, "YV_5"), 1, null)], 1, null)], 1, null)], 1, "YV_6");
@@ -1,4 +1,4 @@
1
- import { Slot, _captures, _jsxSorted, _wrapProp, componentQrl, inlinedQrl } from "@qwik.dev/core";
1
+ import { Slot, _capturesObj, _jsxSorted, _wrapProp, componentQrl, inlinedQrl } from "@qwik.dev/core";
2
2
  var Tab = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps) => {
3
3
  const isActive = _rawProps.state.activeTab === _rawProps.id;
4
4
  return /*#__PURE__*/ _jsxSorted("button", {
@@ -6,7 +6,7 @@ var Tab = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawProps) => {
6
6
  style: isActive ? { boxShadow: "inset 3px 0 0 0 var(--color-primary)" } : {},
7
7
  title: _wrapProp(_rawProps, "title")
8
8
  }, { "q-e:click": /*#__PURE__*/ inlinedQrl(() => {
9
- const _rawProps = _captures[0];
9
+ let _rawProps = _capturesObj._[0];
10
10
  _rawProps.state.activeTab = _rawProps.id;
11
11
  }, "Tab_component_button_q_e_click_mLGAiGoqTr0", [_rawProps]) }, /*#__PURE__*/ _jsxSorted(Slot, null, null, null, 3, "Cp_0"), 1, "Cp_1");
12
12
  }, "Tab_component_HsfA1eSoy4c"));
@@ -1,5 +1,5 @@
1
1
  import { IconChevronUpMini } from "../Icons/Icons.qwik.mjs";
2
- import { _captures, _fnSignal, _jsxSorted, _wrapProp, componentQrl, inlinedQrl, useSignal, useVisibleTaskQrl } from "@qwik.dev/core";
2
+ import { _capturesObj, _fnSignal, _jsxSorted, _wrapProp, componentQrl, inlinedQrl, useSignal, useVisibleTaskQrl } from "@qwik.dev/core";
3
3
  import { Fragment } from "@qwik.dev/core/jsx-runtime";
4
4
  var _hf0 = (p0) => p0.level + 1;
5
5
  var _hf0_str = "p0.level+1";
@@ -50,7 +50,7 @@ var TreeNodeComponent = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((pro
50
50
  const override = props.expanded[props.node.id];
51
51
  const childrenVisible = override !== void 0 ? override : props.level < props.expandLevel;
52
52
  const handleNodeClick = /*#__PURE__*/ inlinedQrl(() => {
53
- const childrenVisible = _captures[0], hasChildren = _captures[1], props = _captures[2];
53
+ let childrenVisible = _capturesObj._[0], hasChildren = _capturesObj._[1], props = _capturesObj._[2];
54
54
  props.onNodeClick(props.node);
55
55
  if (hasChildren) props.onToggle(props.node.id, childrenVisible);
56
56
  }, "TreeNodeComponent_component_handleNodeClick_hFhWIIdgPGE", [
@@ -94,7 +94,7 @@ var Tree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props) => {
94
94
  const activeNodeId = useSignal("");
95
95
  const expanded = useSignal({});
96
96
  const setActiveNode = /*#__PURE__*/ inlinedQrl((node) => {
97
- const activeNodeId = _captures[0], props = _captures[1], ref = _captures[2];
97
+ let activeNodeId = _capturesObj._[0], props = _capturesObj._[1], ref = _capturesObj._[2];
98
98
  if (ref.value) ref.value.scrollLeft = ref.value.scrollWidth;
99
99
  activeNodeId.value = node.id;
100
100
  props.onNodeClick?.(node);
@@ -104,14 +104,14 @@ var Tree = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((props) => {
104
104
  ref
105
105
  ]);
106
106
  const toggleNode = /*#__PURE__*/ inlinedQrl((id, childrenVisible) => {
107
- const expanded = _captures[0];
107
+ let expanded = _capturesObj._[0];
108
108
  expanded.value = {
109
109
  ...expanded.value,
110
110
  [id]: !childrenVisible
111
111
  };
112
112
  }, "Tree_component_toggleNode_QxlcpIF5TKQ", [expanded]);
113
113
  useVisibleTaskQrl(/*#__PURE__*/ inlinedQrl(({ track }) => {
114
- const activeNodeId = _captures[0], expanded = _captures[1], props = _captures[2], ref = _captures[3];
114
+ let activeNodeId = _capturesObj._[0], expanded = _capturesObj._[1], props = _capturesObj._[2], ref = _capturesObj._[3];
115
115
  const name = track(() => props.revealNode?.value);
116
116
  const nodes = track(() => props.data.value);
117
117
  if (!name) return;
@@ -1,7 +1,7 @@
1
1
  import { IconMagnifyingGlass } from "../components/Icons/Icons.qwik.mjs";
2
2
  import { getTheme, setTheme } from "../components/ThemeToggle/QwikThemeToggle.qwik.mjs";
3
3
  import { addRecentId, buildPaletteSources, filterResults, getActionResults, groupResults, loadRecentIds, resolveRecents, saveRecentIds } from "./command-palette.qwik.mjs";
4
- import { _captures, _fnSignal, _jsxSorted, _qrlSync, _wrapProp, componentQrl, inlinedQrl, useComputedQrl, useSignal, useVisibleTaskQrl } from "@qwik.dev/core";
4
+ import { _capturesObj, _fnSignal, _jsxSorted, _qrlSync, _wrapProp, componentQrl, inlinedQrl, useComputedQrl, useSignal, useVisibleTaskQrl } from "@qwik.dev/core";
5
5
  var _hf0 = (p0) => p0.value >= 0 ? `palette-option-${p0.value}` : void 0;
6
6
  var _hf0_str = "p0.value>=0?`palette-option-${p0.value}`:undefined";
7
7
  var _hf1 = (p0, p1, p2) => p2.hint ?? p0[p1.category];
@@ -28,16 +28,16 @@ var CommandPalette = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawPr
28
28
  const recentIds = useSignal([]);
29
29
  const inputRef = useSignal();
30
30
  useVisibleTaskQrl(/*#__PURE__*/ inlinedQrl(() => {
31
- const inputRef = _captures[0], recentIds = _captures[1];
31
+ let inputRef = _capturesObj._[0], recentIds = _capturesObj._[1];
32
32
  recentIds.value = loadRecentIds();
33
33
  inputRef.value?.focus();
34
34
  }, "CommandPalette_component_useVisibleTask_35PZ2o0kMqE", [inputRef, recentIds]));
35
35
  const searchable = useComputedQrl(/*#__PURE__*/ inlinedQrl(() => {
36
- const _rawProps = _captures[0];
36
+ let _rawProps = _capturesObj._[0];
37
37
  return [...buildPaletteSources(_rawProps.state), ...getActionResults(_rawProps.state)];
38
38
  }, "CommandPalette_component_searchable_useComputed_9iV5XwqJXZQ", [_rawProps]));
39
39
  const groups = useComputedQrl(/*#__PURE__*/ inlinedQrl(() => {
40
- const _rawProps = _captures[0], query = _captures[1], recentIds = _captures[2], searchable = _captures[3];
40
+ let _rawProps = _capturesObj._[0], query = _capturesObj._[1], recentIds = _capturesObj._[2], searchable = _capturesObj._[3];
41
41
  if (!query.value.trim()) {
42
42
  const recents = resolveRecents(recentIds.value, _rawProps.state);
43
43
  const emptyGroups = [];
@@ -59,15 +59,15 @@ var CommandPalette = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawPr
59
59
  searchable
60
60
  ]));
61
61
  const flatResults = useComputedQrl(/*#__PURE__*/ inlinedQrl(() => {
62
- return _captures[0].value.flatMap((group) => group.results);
62
+ return _capturesObj._[0].value.flatMap((group) => group.results);
63
63
  }, "CommandPalette_component_flatResults_useComputed_cCauVUcEhYk", [groups]));
64
64
  useVisibleTaskQrl(/*#__PURE__*/ inlinedQrl(({ track }) => {
65
- const activeIndex = _captures[0];
65
+ let activeIndex = _capturesObj._[0];
66
66
  const index = track(() => activeIndex.value);
67
67
  document.getElementById(`palette-option-${index}`)?.scrollIntoView({ block: "nearest" });
68
68
  }, "CommandPalette_component_useVisibleTask_1_fkiiKqJKwhQ", [activeIndex]));
69
69
  const activate = /*#__PURE__*/ inlinedQrl((result) => {
70
- const _rawProps = _captures[0], recentIds = _captures[1], runAction = _captures[2];
70
+ let _rawProps = _capturesObj._[0], recentIds = _capturesObj._[1], runAction = _capturesObj._[2];
71
71
  const target = result.target;
72
72
  if (target.kind === "action" && target.action === "clearRecents") {
73
73
  runAction("clearRecents");
@@ -98,7 +98,7 @@ var CommandPalette = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawPr
98
98
  _rawProps,
99
99
  recentIds,
100
100
  /* @__PURE__ */ inlinedQrl((action) => {
101
- const _rawProps = _captures[0], recentIds = _captures[1];
101
+ let _rawProps = _capturesObj._[0], recentIds = _capturesObj._[1];
102
102
  switch (action) {
103
103
  case "toggleTheme":
104
104
  cycleTheme();
@@ -118,17 +118,17 @@ var CommandPalette = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawPr
118
118
  ]);
119
119
  let optionIndex = 0;
120
120
  const CommandPalette_component_div_div_ul_li_ul_li_q_e_mouseenter_0qIEkwUcwUE = /*#__PURE__*/ inlinedQrl((_, _1, _2, index) => {
121
- const activeIndex = _captures[0];
121
+ let activeIndex = _capturesObj._[0];
122
122
  return activeIndex.value = index;
123
123
  }, "CommandPalette_component_div_div_ul_li_ul_li_q_e_mouseenter_0qIEkwUcwUE", [activeIndex]).m();
124
124
  const CommandPalette_component_div_div_ul_li_ul_li_q_e_click_jIvkGS4GrOM = /*#__PURE__*/ inlinedQrl((_, _1, result) => {
125
- const activate = _captures[0];
125
+ let activate = _capturesObj._[0];
126
126
  return activate(result);
127
127
  }, "CommandPalette_component_div_div_ul_li_ul_li_q_e_click_jIvkGS4GrOM", [activate]).m();
128
128
  return /*#__PURE__*/ _jsxSorted("div", null, { class: "absolute inset-0 z-30 flex items-start justify-center p-4" }, [/*#__PURE__*/ _jsxSorted("div", null, {
129
129
  class: "absolute inset-0 bg-black/40 backdrop-blur-sm transition-opacity",
130
130
  "q-e:click": /*#__PURE__*/ inlinedQrl(() => {
131
- const _rawProps = _captures[0];
131
+ let _rawProps = _capturesObj._[0];
132
132
  return _rawProps.state.isPaletteOpen = false;
133
133
  }, "CommandPalette_component_div_div_q_e_click_AC38AwghEZY", [_rawProps])
134
134
  }, null, 3, null), /*#__PURE__*/ _jsxSorted("div", { "q-e:keydown": [_qrlSync((event) => {
@@ -139,7 +139,7 @@ var CommandPalette = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawPr
139
139
  "Tab"
140
140
  ].includes(event.key)) event.preventDefault();
141
141
  }, "event=>{if([ \"ArrowDown\",\"ArrowUp\",\"Enter\",\"Tab\" ].includes(event.key)){event.preventDefault();}}"), /*#__PURE__*/ inlinedQrl((event) => {
142
- const _rawProps = _captures[0], activate = _captures[1], activeIndex = _captures[2], flatResults = _captures[3], inputRef = _captures[4];
142
+ let _rawProps = _capturesObj._[0], activate = _capturesObj._[1], activeIndex = _capturesObj._[2], flatResults = _capturesObj._[3], inputRef = _capturesObj._[4];
143
143
  const count = flatResults.value.length;
144
144
  if (event.key === "ArrowDown") activeIndex.value = count === 0 ? -1 : activeIndex.value < 0 ? 0 : (activeIndex.value + 1) % count;
145
145
  else if (event.key === "ArrowUp") activeIndex.value = count === 0 ? -1 : activeIndex.value < 0 ? count - 1 : (activeIndex.value - 1 + count) % count;
@@ -172,7 +172,7 @@ var CommandPalette = /*#__PURE__*/ componentQrl(/*#__PURE__*/ inlinedQrl((_rawPr
172
172
  class: "text-foreground placeholder:text-muted-foreground/70 w-full bg-transparent text-sm outline-none",
173
173
  value: _wrapProp(query),
174
174
  "q-e:input": /*#__PURE__*/ inlinedQrl((_, el) => {
175
- const activeIndex = _captures[0], query = _captures[1];
175
+ let activeIndex = _capturesObj._[0], query = _capturesObj._[1];
176
176
  query.value = el.value;
177
177
  activeIndex.value = el.value.trim() ? 0 : -1;
178
178
  }, "CommandPalette_component_div_div_div_input_q_e_input_j9vHtbrHP4c", [activeIndex, query])