@nuxt/devtools-nightly 2.7.0-29358767.ab3d5ab → 3.0.0-beta.1-29360371.9a6c882

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 (150) hide show
  1. package/dist/chunks/module-main.mjs +1 -1
  2. package/dist/chunks/vite-inspect.mjs +3 -3
  3. package/dist/client/200.html +1 -30
  4. package/dist/client/404.html +1 -30
  5. package/dist/client/_nuxt/__blank-dhzpxa9h.js +1 -0
  6. package/dist/client/_nuxt/analyze-build-i7dz4diz.js +1 -0
  7. package/dist/client/_nuxt/assets-e1eiimkb.js +16 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/201c45d2-00f5-4709-8202-2f048e9eeba9.json +1 -0
  10. package/dist/client/_nuxt/{client-grni31iy.js → client-miiq4qin.js} +1 -1
  11. package/dist/client/_nuxt/code-diff-ojhnq7lb.js +8 -0
  12. package/dist/client/_nuxt/code-snippets-io8vjgte.js +1 -0
  13. package/dist/client/_nuxt/components-b06rag2o.js +1 -0
  14. package/dist/client/_nuxt/composable-item-de2qbj5y.js +1 -0
  15. package/dist/client/_nuxt/custom-_name_-n5xcd89j.js +1 -0
  16. package/dist/client/_nuxt/data-schema-button-hqryewml.js +1 -0
  17. package/dist/client/_nuxt/data-schema-drawer-ohi5wclq.js +2 -0
  18. package/dist/client/_nuxt/debug-edst1aup.js +1 -0
  19. package/dist/client/_nuxt/{default-msxuy5cx.js → default-iey7bcl0.js} +1 -1
  20. package/dist/client/_nuxt/{duration-display.vue-hc7it00w.js → duration-display-cjpkh71u.js} +1 -1
  21. package/dist/client/_nuxt/entry.css-gme6a42i.css +1 -0
  22. package/dist/client/_nuxt/error-404-j1jq1c66.js +1 -0
  23. package/dist/client/_nuxt/error-404.css-b77wc31r.css +1 -0
  24. package/dist/client/_nuxt/error-500-g7c66z1a.js +1 -0
  25. package/dist/client/_nuxt/error-500.css-fqn6oeub.css +1 -0
  26. package/dist/client/_nuxt/{error-blzd68sr.js → error-n99dhadk.js} +7 -7
  27. package/dist/client/_nuxt/filepath-item-owlv864w.js +1 -0
  28. package/dist/client/_nuxt/full-boj6lq2g.js +1 -0
  29. package/dist/client/_nuxt/help-fab-chg6ox1v.js +1 -0
  30. package/dist/client/_nuxt/hjatffgj.js +19 -0
  31. package/dist/client/_nuxt/hooks-bpngdbhx.js +1 -0
  32. package/dist/client/_nuxt/imports-i8h7x738.js +1 -0
  33. package/dist/client/_nuxt/index-jmvfijcg.js +1 -0
  34. package/dist/client/_nuxt/launch-page-l87i7ewv.js +1 -0
  35. package/dist/client/_nuxt/modules-mo5j545f.js +1 -0
  36. package/dist/client/_nuxt/nbadge-d24jlq2b.js +1 -0
  37. package/dist/client/_nuxt/ncheckbox-eijyrwcq.js +1 -0
  38. package/dist/client/_nuxt/ncode-block-pcw3yh3u.js +2 -0
  39. package/dist/client/_nuxt/ndrawer-bkb7znk3.js +1 -0
  40. package/dist/client/_nuxt/ndropdown-jcnxkt1n.js +1 -0
  41. package/dist/client/_nuxt/nicon-title-he6hzgyb.js +1 -0
  42. package/dist/client/_nuxt/nlink-fgjzhevk.js +1 -0
  43. package/dist/client/_nuxt/nmarkdown-n6zsr15e.js +1 -0
  44. package/dist/client/_nuxt/nnavbar-b4ap0r8w.js +1 -0
  45. package/dist/client/_nuxt/none-mairbbrs.js +1 -0
  46. package/dist/client/_nuxt/nsection-block-je23gs2w.js +1 -0
  47. package/dist/client/_nuxt/nsection-block.css-h05mpq8x.css +1 -0
  48. package/dist/client/_nuxt/nselect-nvb1idpm.js +1 -0
  49. package/dist/client/_nuxt/nselect-tabs-fwdas30r.js +1 -0
  50. package/dist/client/_nuxt/nswitch-ls95gzk4.js +1 -0
  51. package/dist/client/_nuxt/open-graph-hjnpn4lk.js +3 -0
  52. package/dist/client/_nuxt/overview-k79e36il.js +1 -0
  53. package/dist/client/_nuxt/pages-ds02jwc5.js +1 -0
  54. package/dist/client/_nuxt/payload-jjh8ouvz.js +1 -0
  55. package/dist/client/_nuxt/pinia-be68olcl.js +1 -0
  56. package/dist/client/_nuxt/plugins-b9qyoo0c.js +1 -0
  57. package/dist/client/_nuxt/render-tree-m94vu53a.js +1 -0
  58. package/dist/client/_nuxt/runtime-configs-la4u86eo.js +1 -0
  59. package/dist/client/_nuxt/server-discovery-mjs49bz1.js +1 -0
  60. package/dist/client/_nuxt/server-route-inputs-e42a8bs5.js +1 -0
  61. package/dist/client/_nuxt/server-routes-emm36jf2.js +9 -0
  62. package/dist/client/_nuxt/server-tasks-gkj1p3fy.js +1 -0
  63. package/dist/client/_nuxt/settings-qjlpbgea.js +1 -0
  64. package/dist/client/_nuxt/stacktrace-list-gp6s7nwa.js +1 -0
  65. package/dist/client/_nuxt/{state-components-k1rzq61q.js → state-components-8k7sf46m.js} +1 -1
  66. package/dist/client/_nuxt/state-editor-kisl1jyp.js +1 -0
  67. package/dist/client/_nuxt/state-modules-lzveckmy.js +1 -0
  68. package/dist/client/_nuxt/storage-cgn8xpm9.js +1 -0
  69. package/dist/client/_nuxt/terminals-oykxibii.js +1 -0
  70. package/dist/client/_nuxt/timeline-kuccxakl.js +31 -0
  71. package/dist/client/_nuxt/{unocss-runtime-jezk5dwt.js → unocss-runtime-o01c8yfj.js} +1 -1
  72. package/dist/client/_nuxt/vendor/{json-editor-vue-linwxbdb.js → json-editor-vue-ikjc812x.js} +1 -1
  73. package/dist/client/_nuxt/vendor/json-editor-vue.css-f8ezrn37.css +1 -0
  74. package/dist/client/_nuxt/vendor/{quicktype-core-i7mnewyz.js → quicktype-core-e2ngitjr.js} +47 -47
  75. package/dist/client/_nuxt/vendor/{unocss-ia2v1z12.js → unocss-jpwnx6aq.js} +3 -3
  76. package/dist/client/_nuxt/vendor/unocss.css-c5u30s53.css +1 -0
  77. package/dist/client/_nuxt/vendor/xterm.css-g1ekxkss.css +1 -0
  78. package/dist/client/_nuxt/virtual-files-be3na8kr.js +1 -0
  79. package/dist/client/_nuxt/vue-devtools-bywsfgh0.js +2 -0
  80. package/dist/client/_nuxt/{vue-virtual-scroller.esm-ma3b9hj8.js → vue-virtual-scroller.esm-b0ym3ct8.js} +1 -1
  81. package/dist/client/index.html +1 -30
  82. package/dist/module.json +1 -1
  83. package/dist/runtime/shared/hooks.js +7 -5
  84. package/package.json +6 -6
  85. package/dist/client/_nuxt/__blank-o2e2nlba.js +0 -1
  86. package/dist/client/_nuxt/analyze-build-diwe2szv.js +0 -1
  87. package/dist/client/_nuxt/assets-pe7aspnr.js +0 -16
  88. package/dist/client/_nuxt/bt3kp296.js +0 -19
  89. package/dist/client/_nuxt/builds/meta/fd2d247c-d08c-4876-8eb1-788ff76b5130.json +0 -1
  90. package/dist/client/_nuxt/code-diff.vue-cickw09g.js +0 -8
  91. package/dist/client/_nuxt/code-snippets.vue-c07ituis.js +0 -1
  92. package/dist/client/_nuxt/components-f2l06ppp.js +0 -1
  93. package/dist/client/_nuxt/composable-item.vue-emog8rj6.js +0 -1
  94. package/dist/client/_nuxt/custom-_name_-h5c6lznk.js +0 -1
  95. package/dist/client/_nuxt/data-schema-button.vue-fo5mzhk5.js +0 -1
  96. package/dist/client/_nuxt/data-schema-drawer-n1vsqai5.js +0 -2
  97. package/dist/client/_nuxt/debug-ci1q2odt.js +0 -1
  98. package/dist/client/_nuxt/entry.css-kes83a7q.css +0 -1
  99. package/dist/client/_nuxt/error-404-j6tfgryj.js +0 -1
  100. package/dist/client/_nuxt/error-404.css-f2r0whq7.css +0 -1
  101. package/dist/client/_nuxt/error-500-ladx81qb.js +0 -1
  102. package/dist/client/_nuxt/error-500.css-m0gu28nc.css +0 -1
  103. package/dist/client/_nuxt/filepath-item.vue-neqjm2ct.js +0 -1
  104. package/dist/client/_nuxt/full-2v877h6v.js +0 -1
  105. package/dist/client/_nuxt/help-fab.vue-lyrsxykz.js +0 -1
  106. package/dist/client/_nuxt/hooks-g58ti7nj.js +0 -1
  107. package/dist/client/_nuxt/imports-nol9on59.js +0 -1
  108. package/dist/client/_nuxt/index-g2ijengi.js +0 -1
  109. package/dist/client/_nuxt/launch-page.vue-b5jz6435.js +0 -1
  110. package/dist/client/_nuxt/modules-hu1ysr54.js +0 -1
  111. package/dist/client/_nuxt/nbadge-h7alls7b.js +0 -1
  112. package/dist/client/_nuxt/ncheckbox.vue-bh13p6qy.js +0 -1
  113. package/dist/client/_nuxt/ncode-block.vue-fnl81rsp.js +0 -2
  114. package/dist/client/_nuxt/ndrawer.vue-hcqgn10u.js +0 -1
  115. package/dist/client/_nuxt/ndropdown.vue-cclblmxb.js +0 -1
  116. package/dist/client/_nuxt/nicon-title.vue-c7m4gyag.js +0 -1
  117. package/dist/client/_nuxt/nlink.vue-beik88gb.js +0 -1
  118. package/dist/client/_nuxt/nmarkdown.vue-benph8ez.js +0 -1
  119. package/dist/client/_nuxt/nnavbar.vue-nldppm6i.js +0 -1
  120. package/dist/client/_nuxt/none-lokkcqs4.js +0 -1
  121. package/dist/client/_nuxt/nsection-block-ld7dxama.js +0 -1
  122. package/dist/client/_nuxt/nsection-block.css-h1lgpwgm.css +0 -1
  123. package/dist/client/_nuxt/nselect-tabs.vue-g78ecijz.js +0 -1
  124. package/dist/client/_nuxt/nselect.vue-ikkkj1tq.js +0 -1
  125. package/dist/client/_nuxt/nswitch.vue-gb2x6p6j.js +0 -1
  126. package/dist/client/_nuxt/open-graph-faj5gzr7.js +0 -3
  127. package/dist/client/_nuxt/overview-jwmopyjo.js +0 -1
  128. package/dist/client/_nuxt/pages-fhkqnroq.js +0 -1
  129. package/dist/client/_nuxt/payload-j580eq4r.js +0 -1
  130. package/dist/client/_nuxt/pinia-cx9i5o0a.js +0 -1
  131. package/dist/client/_nuxt/plugins-gkuc4ygp.js +0 -1
  132. package/dist/client/_nuxt/render-tree-ow6bnqdi.js +0 -1
  133. package/dist/client/_nuxt/runtime-configs-jfsk38ap.js +0 -1
  134. package/dist/client/_nuxt/server-discovery-i686iedr.js +0 -1
  135. package/dist/client/_nuxt/server-route-inputs.vue-e944cjqy.js +0 -1
  136. package/dist/client/_nuxt/server-routes-mlww6eyz.js +0 -9
  137. package/dist/client/_nuxt/server-tasks-k0hu327m.js +0 -1
  138. package/dist/client/_nuxt/settings-bkwbcq7e.js +0 -1
  139. package/dist/client/_nuxt/stacktrace-list.vue-gtf32k2z.js +0 -1
  140. package/dist/client/_nuxt/state-editor.vue-bv2vsi3e.js +0 -1
  141. package/dist/client/_nuxt/state-modules-caoe1wdh.js +0 -1
  142. package/dist/client/_nuxt/storage-gccispaw.js +0 -1
  143. package/dist/client/_nuxt/terminals-g1fjbpv3.js +0 -1
  144. package/dist/client/_nuxt/timeline-h1bvvh7f.js +0 -31
  145. package/dist/client/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css +0 -1
  146. package/dist/client/_nuxt/vendor/unocss.css-mhvipxpl.css +0 -1
  147. package/dist/client/_nuxt/vendor/xterm.css-egmhki83.css +0 -32
  148. package/dist/client/_nuxt/virtual-files-bb8hkol9.js +0 -1
  149. package/dist/client/_nuxt/vue-devtools-eqaeie6v.js +0 -2
  150. /package/dist/client/_nuxt/vendor/{xterm-elw8536o.js → xterm-nmc0lagr.js} +0 -0
@@ -33,7 +33,7 @@ import { getDefaultExportOptions, addNuxtModule } from 'magicast/helpers';
33
33
  import { detectPackageManager } from 'nypm';
34
34
  import semver from 'semver';
35
35
 
36
- const version$1 = "2.7.0-29358767.ab3d5ab";
36
+ const version$1 = "3.0.0-beta.1-29360371.9a6c882";
37
37
 
38
38
  const urlAlphabet = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";
39
39
  function randomStr(size = 16, dict = urlAlphabet) {
@@ -23,9 +23,9 @@ async function setup({ nuxt, rpc }) {
23
23
  }), nuxt);
24
24
  async function getComponentsRelationships() {
25
25
  const meta = await api?.rpc.getMetadata();
26
- const modules = (meta ? await api?.rpc.getModulesList({
27
- vite: meta?.instances[0].vite,
28
- env: meta?.instances[0].environments[0]
26
+ const modules = (meta && meta.instances[0] ? await api?.rpc.getModulesList({
27
+ vite: meta.instances[0].vite,
28
+ env: meta.instances[0].environments[0]
29
29
  }) : null) || [];
30
30
  const components = await rpc.functions.getComponents() || [];
31
31
  const vueModules = modules.filter((m) => {
@@ -1,30 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8">
2
- <meta name="viewport" content="width=device-width, initial-scale=1">
3
- <script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/bt3kp296.js"}}</script>
4
- <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-kes83a7q.css" crossorigin>
5
- <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css" crossorigin>
6
- <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-mhvipxpl.css" crossorigin>
7
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/bt3kp296.js">
8
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-linwxbdb.js">
9
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-hpfujfi3.js">
10
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-ia2v1z12.js">
11
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-fvu08dbs.js">
12
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-msxuy5cx.js">
13
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-2v877h6v.js">
14
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-lokkcqs4.js">
15
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-lvdc77tw.css">
16
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-n1vsqai5.js">
17
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-ikkkj1tq.js">
18
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-gb2x6p6j.js">
19
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-cclblmxb.js">
20
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-fnl81rsp.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-grni31iy.js">
22
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-hcqgn10u.js">
23
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-i7mnewyz.js">
24
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-jezk5dwt.js">
25
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-f2r0whq7.css">
26
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-j6tfgryj.js">
27
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-m0gu28nc.css">
28
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-ladx81qb.js">
29
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/bt3kp296.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1761526062226,false]</script>
30
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"fd2d247c-d08c-4876-8eb1-788ff76b5130",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/hjatffgj.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-gme6a42i.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-f8ezrn37.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-c5u30s53.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/hjatffgj.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-ikjc812x.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-hpfujfi3.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-jpwnx6aq.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/hjatffgj.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1761622311993,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"201c45d2-00f5-4709-8202-2f048e9eeba9",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -1,30 +1 @@
1
- <!DOCTYPE html><html><head><meta charset="utf-8">
2
- <meta name="viewport" content="width=device-width, initial-scale=1">
3
- <script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/bt3kp296.js"}}</script>
4
- <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-kes83a7q.css" crossorigin>
5
- <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-mqq5uooj.css" crossorigin>
6
- <link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-mhvipxpl.css" crossorigin>
7
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/bt3kp296.js">
8
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-linwxbdb.js">
9
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-hpfujfi3.js">
10
- <link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-ia2v1z12.js">
11
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/markdown-it-fvu08dbs.js">
12
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/default-msxuy5cx.js">
13
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/full-2v877h6v.js">
14
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/none-lokkcqs4.js">
15
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.css-lvdc77tw.css">
16
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/data-schema-drawer-n1vsqai5.js">
17
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nselect.vue-ikkkj1tq.js">
18
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/nswitch.vue-gb2x6p6j.js">
19
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndropdown.vue-cclblmxb.js">
20
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ncode-block.vue-fnl81rsp.js">
21
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/client-grni31iy.js">
22
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/ndrawer.vue-hcqgn10u.js">
23
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/quicktype-core-i7mnewyz.js">
24
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/unocss-runtime-jezk5dwt.js">
25
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404.css-f2r0whq7.css">
26
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-404-j6tfgryj.js">
27
- <link rel="prefetch" as="style" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500.css-m0gu28nc.css">
28
- <link rel="prefetch" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/error-500-ladx81qb.js">
29
- <script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/bt3kp296.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1761526062227,false]</script>
30
- <script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"fd2d247c-d08c-4876-8eb1-788ff76b5130",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
1
+ <!DOCTYPE html><html><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1"><script type="importmap">{"imports":{"#entry":"/__NUXT_DEVTOOLS_BASE__/_nuxt/hjatffgj.js"}}</script><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/entry.css-gme6a42i.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue.css-f8ezrn37.css" crossorigin><link rel="stylesheet" href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss.css-c5u30s53.css" crossorigin><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/hjatffgj.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/json-editor-vue-ikjc812x.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/shiki-hpfujfi3.js"><link rel="modulepreload" as="script" crossorigin href="/__NUXT_DEVTOOLS_BASE__/_nuxt/vendor/unocss-jpwnx6aq.js"><script type="module" src="/__NUXT_DEVTOOLS_BASE__/_nuxt/hjatffgj.js" crossorigin></script></head><body><div id="__nuxt"></div><div id="teleports"></div><script type="application/json" data-nuxt-data="nuxt-app" data-ssr="false" id="__NUXT_DATA__">[{"prerenderedAt":1,"serverRendered":2},1761622311993,false]</script><script>window.__NUXT__={};window.__NUXT__.config={public:{},app:{baseURL:"/__NUXT_DEVTOOLS_BASE__/",buildId:"201c45d2-00f5-4709-8202-2f048e9eeba9",buildAssetsDir:"/_nuxt/",cdnURL:""}}</script></body></html>
@@ -0,0 +1 @@
1
+ import{p as e,J as n,Y as t}from"./vendor/json-editor-vue-ikjc812x.js";const c={"h-screen":"","w-screen":"","bg-black":""},r=e({__name:"__blank",setup(o){return(s,_)=>(t(),n("div",c))}});export{r as default};
@@ -0,0 +1 @@
1
+ import{b6 as W,b7 as j,_ as P,r as S,E as R,b as X,b8 as h,a6 as ee,a7 as ne,Z as te,a1 as le,i as oe,b9 as N,a8 as ie,Q as ue,v as re,q as ae,aj as se,M as de}from"#entry";import{_ as me}from"./filepath-item-owlv864w.js";import{p as L,q as V,k as F,J as a,Y as o,a3 as e,a4 as y,F as f,ah as U,a7 as E,ab as c,a1 as m,u as _,$ as d,ac as x,ad as D,ae as I,X as C}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as ve}from"./ncode-block-pcw3yh3u.js";import{_ as pe}from"./ncheckbox-eijyrwcq.js";import{_ as fe}from"./help-fab-chg6ox1v.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-jpwnx6aq.js";import"./client-miiq4qin.js";const ce={"h-full":"",grid:"~ rows-[max-content_1fr]"},xe={flex:"~ wrap","w-full":""},_e=["onClick"],be={key:0,flex:"~ col gap-4 items-center justify-center",p4:""},ye={grid:"~ cols-[30px_1fr] gap-x-2 gap-y-3 items-center justify-center","w-100":""},ge="/__nuxt_devtools__/client",we=L({__name:"BuildAnalyzeDetails",props:{current:{},prev:{}},setup(i){const p=i,w=`${W().app.baseURL.replace(ge,"/")}/__nuxt_devtools__/analyze/`.replace(/\/+/g,"/"),z=V(()=>{const l=[{name:"Overview",id:"overview"}];return p.current.features.bundleClient&&l.push({name:"Client Bundle",id:"bundle-client"}),p.current.features.bundleNitro&&l.push({name:"Nitro Bundle",id:"bundle-nitro"}),p.current.features.viteInspect&&l.push({name:"Vite Inspect",id:"vite-inspect"}),l}),u=F(z.value[0]);function $(l){return`${((l.endTime-l.startTime)/1e3).toFixed(1)}s`}function v(l){return l<1024?`${l}B`:l<1024*1024?`${(l/1024).toFixed(1)}KB`:l<1024*1024*1024?`${(l/1024/1024).toFixed(1)}MB`:`${(l/1024/1024/1024).toFixed(1)}GB`}async function T(l){return S.clearAnalyzeBuilds(await R(),[l])}return(l,n)=>{const A=me,k=P;return o(),a("div",ce,[e("div",xe,[(o(!0),a(f,null,U(z.value,(r,t)=>(o(),a("button",{key:t,px4:"",py2:"",border:"r base",hover:"bg-active",class:E(r.id===u.value?.id?"":"border-b"),onClick:B=>u.value=r},[e("div",{class:E(r.id===u.value?.id?"":"op30")},c(r.name),3)],10,_e))),128)),n[1]||(n[1]=e("div",{border:"b base","flex-auto":""},null,-1))]),u.value?.id==="overview"?(o(),a("div",be,[n[15]||(n[15]=e("div",{"flex-auto":""},null,-1)),e("div",ye,[n[10]||(n[10]=e("div",{"i-carbon-commit":"","text-xl":""},null,-1)),e("div",null,[n[2]||(n[2]=e("div",{"text-sm":"",op50:""}," Name ",-1)),e("div",null,c(i.current.name),1)]),n[11]||(n[11]=e("div",{"i-carbon-time":"","text-xl":""},null,-1)),e("div",null,[n[3]||(n[3]=e("div",{"text-sm":"",op50:""}," Build duration ",-1)),e("div",null,c($(i.current)),1)]),i.current.size?.clientBundle?(o(),a(f,{key:0},[n[5]||(n[5]=e("div",{"i-carbon-cics-program":"","text-xl":""},null,-1)),e("div",null,[n[4]||(n[4]=e("div",{"text-sm":"",op50:""}," Client bundle size ",-1)),e("div",null,c(v(i.current.size.clientBundle)),1)])],64)):y("",!0),i.current.size?.nitroBundle?(o(),a(f,{key:1},[n[7]||(n[7]=e("div",{"i-carbon-bare-metal-server":"","text-xl":""},null,-1)),e("div",null,[n[6]||(n[6]=e("div",{"text-sm":"",op50:""}," Nitro bundle size ",-1)),e("div",null,c(v(i.current.size.nitroBundle)),1)])],64)):y("",!0),n[12]||(n[12]=e("div",{"i-carbon-edge-node":"","text-xl":""},null,-1)),e("div",null,[n[8]||(n[8]=e("div",{"text-sm":"",op50:""}," Built ",-1)),e("div",null,c(_(j)(new Date(i.current.endTime))),1)]),n[13]||(n[13]=e("div",{"i-carbon:folder-parent":"","text-xl":""},null,-1)),e("div",null,[n[9]||(n[9]=e("div",{"text-sm":"",op50:""}," Report Path ",-1)),m(A,{filepath:i.current.analyzeDir},null,8,["filepath"])])]),n[16]||(n[16]=e("div",{"flex-auto":""},null,-1)),m(k,{n:"rose",icon:"carbon-delete",onClick:n[0]||(n[0]=r=>T(i.current.name))},{default:d(()=>[...n[14]||(n[14]=[x(" Delete this report ",-1)])]),_:1})])):y("",!0),n._lazyshow1||u.value?.id==="bundle-client"?(n._lazyshow1=!0,o(),a(f,null,[D(e("iframe",{src:`${_(w)}${i.current.slug}/client.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,u.value?.id==="bundle-client"]])],64)):y("v-show-if",!0),n._lazyshow2||u.value?.id==="bundle-nitro"?(n._lazyshow2=!0,o(),a(f,null,[D(e("iframe",{src:`${_(w)}${i.current.slug}/nitro.html`,"h-full":"","w-full":""},null,8,["src"]),[[I,u.value?.id==="bundle-nitro"]])],64)):y("v-show-if",!0),n._lazyshow3||u.value?.id==="vite-inspect"?(n._lazyshow3=!0,o(),a(f,null,[D(e("iframe",{src:`${_(w)}${i.current.slug}/.vite-inspect/`,"h-full":"","w-full":""},null,8,["src"]),[[I,u.value?.id==="vite-inspect"]])],64)):y("v-show-if",!0)])}}}),ze=Object.assign(we,{__name:"BuildAnalyzeDetails"}),$e={},Be={class:"markdown-body"};function Ce(i,p){return o(),a("div",Be,[...p[0]||(p[0]=[e("template",null,[e("div",{class:"markdown-body"},[e("h1",null,"Build Analyze"),e("p",null,[x("DevTools provides a build analyze tool to help you understand the size of your app in production. Whenever you start a new build, it runs the command "),e("code",{"v-pre":""},"nuxt build --analyze"),x(" and present the output data directly in DevTools for easy browsing and comparing.")])])],-1)])])}const ke=X($e,[["render",Ce]]),Ne={flex:"~ col"},Te=["onClick"],Ae={flex:"~ gap-1 items-center wrap","w-full":"","text-sm":"",op60:""},De={flex:"~ items-center justify-center wrap",p4:""},Ie={flex:"~ col gap-1","w-250":"",p4:""},Se={flex:"~ gap-3",mt2:"","justify-end":""},Oe=L({__name:"analyze-build",setup(i){const p=se(),g=h(),w=ee(),z=ne("analyze-build:slug",""),u=V(()=>g.value?.builds.find(r=>r.slug===z.value)??g.value?.builds[0]),$=F(!1),v=F(""),T=V(()=>g.value?.builds.some(r=>r.name===v.value.trim()));async function l(){v.value=await S.generateAnalyzeBuildName(),await p.start()&&(de("analyze-build:start"),N.value={name:v.value,processId:await S.startAnalyzeBuild(await R(),v.value)},$.value&&k())}const n=te();function A(r){return`${((r.endTime-r.startTime)/1e3).toFixed(1)}s`}function k(){N.value?.processId&&(n.value=N.value.processId,w.push("/modules/terminals"))}return le(()=>[{id:"action:analyze-build: start",title:"Start a new analyze build",icon:"i-carbon-edge-node",action:l}]),(r,t)=>{const B=P,G=ze,O=oe,q=ie,M=re,Y=ae,Z=ve,H=pe,J=ue,K=ke,Q=fe;return o(),a(f,null,[m(q,{"left-size":30},{left:d(()=>[e("div",Ne,[(o(!0),a(f,null,U(_(g)?.builds,s=>(o(),a(f,{key:s.slug},[e("button",{flex:"~ col gap1",p3:"","hover:bg-active":"",class:E(s.slug===u.value?.slug?"text-primary bg-active":""),onClick:b=>z.value=s.slug},[e("code",null,c(s.name),1),e("div",Ae,[t[4]||(t[4]=e("div",{"i-carbon-time":""},null,-1)),e("span",null,c(A(s)),1),t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("span",null,c(_(j)(new Date(s.endTime))),1)])],10,Te),t[6]||(t[6]=e("div",{"x-divider":""},null,-1))],64))),128)),e("div",De,[_(N)?(o(),C(B,{key:1,n:"primary",icon:"carbon-circle-dash animate-spin",onClick:t[1]||(t[1]=s=>k())},{default:d(()=>[...t[8]||(t[8]=[x(" Building... ",-1)])]),_:1})):(o(),C(B,{key:0,n:"primary",icon:"carbon-edge-node",onClick:t[0]||(t[0]=s=>l())},{default:d(()=>[...t[7]||(t[7]=[x(" Start a new build ",-1)])]),_:1}))])])]),right:d(()=>[u.value?(o(),C(G,{key:0,current:u.value},null,8,["current"])):(o(),C(O,{key:1}))]),_:1}),m(_(p),null,{default:d(({resolve:s})=>[m(J,{"model-value":!0,onClose:b=>s(!1)},{default:d(()=>[e("div",Ie,[t[13]||(t[13]=e("h3",{class:"text-lg font-medium leading-6",mb2:""}," Start analyze build? ",-1)),t[14]||(t[14]=e("p",{op50:""}," Enter the name of the build: ",-1)),m(M,{modelValue:v.value,"onUpdate:modelValue":t[2]||(t[2]=b=>v.value=b),placeholder:"Build name"},null,8,["modelValue"]),T.value?(o(),C(Y,{key:0,"n-orange":""},{default:d(()=>[...t[9]||(t[9]=[x(" A build with the same name already exists, continue would overrides the previous build result. ",-1)])]),_:1})):y("",!0),t[15]||(t[15]=e("div",{my3:"","x-divider":""},null,-1)),t[16]||(t[16]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),m(Z,{code:`npx nuxi analyze --no-serve --name=${v.value}`,lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),m(H,{modelValue:$.value,"onUpdate:modelValue":t[3]||(t[3]=b=>$.value=b),mt2:"",n:"primary"},{default:d(()=>[...t[10]||(t[10]=[x(" Navigate to terminal ",-1)])]),_:1},8,["modelValue"]),e("div",Se,[m(B,{onClick:b=>s(!1)},{default:d(()=>[...t[11]||(t[11]=[x(" Cancel ",-1)])]),_:1},8,["onClick"]),m(B,{n:"solid primary",onClick:b=>s(!0)},{default:d(()=>[...t[12]||(t[12]=[x(" Start ",-1)])]),_:1},8,["onClick"])])])]),_:2},1032,["onClose"])]),_:1}),m(Q,null,{default:d(()=>[m(K)]),_:1})],64)}}});export{Oe as default};
@@ -0,0 +1,16 @@
1
+ import{G as H,H as ee,_ as te,I as ne,v as se,J as z,K as ce,L as pe,M as me,r as J,E as X,N as ve,O as fe,c as le,A as ge,a as xe,w as he,P as _e,Q as be,R as we,S as ye,T as $e,g as ke,U as Ce}from"#entry";import{_ as Pe}from"./ncheckbox-eijyrwcq.js";import{_ as Ve}from"./ndropdown-jcnxkt1n.js";import{_ as Ae}from"./nnavbar-b4ap0r8w.js";import{p as Z,k as U,aj as oe,J as i,Y as o,a7 as Q,u as m,ad as K,a1 as d,a3 as t,ac as A,F as L,ah as q,X as P,a4 as j,$ as h,q as I,a5 as ae,ab as D,a0 as De,j as Fe,au as Ne,a6 as je}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as Ie}from"./nsection-block-je23gs2w.js";import{_ as Se}from"./filepath-item-owlv864w.js";import{_ as Ue}from"./code-snippets-io8vjgte.js";import{_ as Te}from"./ndrawer-bkb7znk3.js";import{D as Oe}from"./constants-b32h69zq.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-jpwnx6aq.js";import"./nicon-title-he6hzgyb.js";import"./ncode-block-pcw3yh3u.js";import"./client-miiq4qin.js";const Ee={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Le={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},Be={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},ze={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Re={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Me=["src"],Ke={flex:"~ gap1","items-center":""},Ge={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},qe=Z({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(l){const g=l,f=ee(g,"modelValue"),F=U(),n=U([]);function v(s){F.value=s.target,f.value=!0}function b(s){s.target===F.value&&(f.value=!1)}function T(s){s.preventDefault()}function M(s){s.preventDefault(),_(s.dataTransfer.files)}function _(s){const c=Array.from(s||[]);if(c.length){const x=[],y=n.value.map(u=>u.name);for(const u of c)if(y.includes(u.name)){let V=1;const[$,E]=u.name.split(".");for(;y.includes(`${$} (${V}).${E}`);)V++;const R=`${$}-${V}.${E}`,a=new Blob([u],{type:u.type}),e=new File([a],R,{lastModified:Date.now()});x.push(e),y.push(R)}else u.type===""&&z({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),x.push(u);n.value=[...n.value,...x]}}async function O(){if(ce.value||pe.value)return;me("assets:upload");const s=[];for(const c of n.value){const x=new FileReader;x.readAsDataURL(c);const u=(await new Promise(V=>{x.onload=()=>V(x.result)})).split(";base64,").pop();s.push({path:c.name,encoding:"base64",content:u})}await J.writeStaticAssets(await X(),[...s],g.folder).then(()=>{p(),z({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(c=>{p(),z({message:`Error uploading files: ${c?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),f.value=!1}function G(s){n.value?.splice(s,1)}function B(s){return URL.createObjectURL(s)}function w(s,c){const[x,y]=s.name.split("."),u=c.replace(/\.\w+$/,""),V=`${u}.${y}`;return u.length===0?(alert("File name must be at least 1 characters long"),x):(Object.defineProperty(s,"name",{value:V,writable:!1}),n.value.splice(n.value.indexOf(s),1,s),s)}function r(){n.value=[]}function p(){f.value=!1,r()}return H("dragenter",v),H("dragleave",b),H("dragover",T),H("drop",M),(s,c)=>{const x=te,y=ne,u=se,V=oe("tooltip");return o(),i("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Q(m(f)?"opacity-100 visible":"opacity-0 invisible")},[K(d(x,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:p},null,512),[[V,"Close",void 0,{"bottom-end":!0}]]),n.value?.length?(o(),i("div",Be,[c[4]||(c[4]=t("div",{px6:"",py6:""},[t("h1",{"text-2xl":""}," Upload "),t("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1)),t("div",ze,[(o(!0),i(L,null,q(n.value,($,E)=>(o(),i("div",{key:$.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[t("div",Re,[t("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:B($)},null,8,Me)]),t("div",Ke,[d(u,{n:"xs","h-full":"","flex-auto":"","model-value":$.name,"onUpdate:modelValue":R=>w($,R.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(x,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:R=>G(E)},null,8,["onClick"])])]))),128))]),t("div",Ge,[n.value.length?(o(),P(x,{key:0,n:"red",onClick:r},{default:h(()=>[d(y,{icon:"carbon-clean"}),c[2]||(c[2]=A(" Clear ",-1))]),_:1})):j("",!0),d(x,{disabled:!n.value.length,n:"primary solid",onClick:O},{default:h(()=>[d(y,{icon:"carbon-cloud-upload"}),c[3]||(c[3]=A(" Upload ",-1))]),_:1},8,["disabled"])])])):(o(),i("div",Ee,[t("label",Le,[d(y,{icon:"carbon-cloud-upload","mr-2":""}),c[1]||(c[1]=A(" Drop files here or click to select ",-1))]),t("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:c[0]||(c[0]=$=>_($.target.files))},null,32)]))],2)}}}),Ze=Object.assign(qe,{__name:"AssetDropZone"}),Je=Z({__name:"AssetFontPreview",props:{asset:{}},setup(l){const g=l,f=I(()=>`devtools-assets-${ve(g.asset)}`);return fe(I(()=>`
2
+ @font-face {
3
+ font-family: '${f.value}';
4
+ src: url('${g.asset.publicPath}');
5
+ }
6
+ `)),(F,n)=>(o(),i("div",{"of-hidden":"",style:ae({fontFamily:`'${f.value}'`})}," Aa Bb Cc Dd Ee Ff Gg Hh Ii Jj Kk Ll Mm Nn Oo Pp Qq Rr Ss Tt Uu Vv Ww Xx Yy Zz ",4))}}),Xe=Object.assign(Je,{__name:"AssetFontPreview"}),He={flex:"","items-center":"","justify-center":"","of-hidden":"","bg-active":"","object-cover":"",p1:""},Qe=["src"],We={key:2,"i-carbon-document":"","text-3xl":"",op20:""},Ye={key:3,"w-full":"","self-start":"",p4:""},et=["textContent"],tt={key:4},nt=["src","autoplay","controls"],ot={key:5},lt={key:0,"i-carbon-volume-up":"","text-3xl":"",op20:""},st=["src"],at={key:6,"i-carbon-help":"","text-3xl":"",op20:""},it=Z({__name:"AssetPreview",props:{asset:{},textContent:{},detail:{type:Boolean}},setup(l){return(g,f)=>{const F=Xe;return o(),i("div",He,[l.asset.type==="image"?(o(),i("img",{key:0,src:l.asset.publicPath},null,8,Qe)):l.asset.type==="font"?(o(),P(F,{key:l.asset.publicPath,asset:l.asset,"self-stretch":"",p2:"","text-2xl":""},null,8,["asset"])):l.asset.type==="text"&&!l.textContent?(o(),i("div",We)):l.asset.type==="text"&&l.textContent?(o(),i("div",Ye,[t("pre",{"max-h-10rem":"","of-hidden":"","text-xs":"","font-mono":"",textContent:D(l.textContent)},null,8,et)])):l.asset.type==="video"?(o(),i("div",tt,[t("video",{src:l.asset.publicPath,autoplay:l.detail,controls:l.detail},null,8,nt)])):l.asset.type==="audio"?(o(),i("div",ot,[l.detail?(o(),i("audio",{key:1,src:l.asset.publicPath,controls:""},null,8,st)):(o(),i("div",lt))])):(o(),i("div",at))])}}}),ie=Object.assign(it,{__name:"AssetPreview"}),rt={relative:"",flex:"~ col gap-1",hover:"bg-active","items-center":"","of-hidden":"",rounded:"",p2:""},ut={"w-full":"","of-hidden":"",truncate:"","ws-nowrap":"","text-center":"","text-xs":""},dt=Z({__name:"AssetGridItem",props:{asset:{},folder:{}},setup(l){const g=l,f=I(()=>g.folder&&g.asset.path.startsWith(g.folder)?g.asset.path.slice(g.folder.length):g.asset.path);return(F,n)=>{const v=ne,b=ie;return o(),i("button",rt,[l.asset.layer?(o(),P(v,{key:0,icon:"i-carbon-layers",absolute:"","right-4":"","top-4":"","bg-primary":""})):j("",!0),d(b,{"h-30":"","w-30":"",rounded:"",border:"~ base",asset:l.asset},null,8,["asset"]),t("div",ut,D(f.value),1)])}}}),ct=Object.assign(dt,{__name:"AssetGridItem"}),pt=Z({__name:"AssetListItem",props:{item:{},index:{default:0},modelValue:{}},setup(l,{emit:g}){const f=l,n=ee(f,"modelValue",g,{passive:!0}),v=I(()=>f.item?.children?.length),b=U(!0),T=I(()=>v.value?"i-carbon-folder":f.item.type==="image"?"i-carbon-image":f.item.type==="video"?"i-carbon-video":f.item.type==="audio"?"i-carbon-volume-up":f.item.type==="font"?"i-carbon-text-small-caps":f.item.type==="text"?"i-carbon-document":f.item.type==="json"?"i-carbon-json":"i-carbon-document-blank");return(M,_)=>{const O=ne,G=re;return o(),i("div",null,[t("button",{flex:"~ gap-2","w-full":"","items-center":"",hover:"bg-active",px4:"",py1:"",style:ae({paddingLeft:`calc(1rem + ${l.index*1.5}em)`}),class:Q({"bg-active":!v.value&&m(n)?.filePath===l.item?.filePath}),border:"b base",onClick:_[0]||(_[0]=B=>v.value?b.value=!b.value:n.value=l.item)},[t("div",{class:Q(T.value)},null,2),t("span",{class:Q({"flex items-center":v.value}),"flex-auto":"","text-start":"","text-sm":"","font-mono":""},[A(D(l.item.path)+" ",1),l.item.layer?(o(),P(O,{key:0,icon:"i-carbon-layers","bg-primary":""})):j("",!0)],2),v.value?(o(),P(O,{key:0,icon:"carbon:chevron-right","transform-rotate":b.value?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)],6),b.value?De(M.$slots,"default",{key:0},()=>[(o(!0),i(L,null,q(l.item?.children,B=>(o(),P(G,{key:B.filepath,modelValue:m(n),"onUpdate:modelValue":_[1]||(_[1]=w=>Fe(n)?n.value=w:null),item:B,index:l.index+1},null,8,["modelValue","item","index"]))),128))]):j("",!0)])}}}),re=Object.assign(pt,{__name:"AssetListItem"}),mt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},vt={flex:"~","items-center":"","justify-center":""},ft={"max-w-full":"","w-full":"","table-fixed":""},gt={flex:"~ gap-1","w-full":"","items-center":""},xt={flex:"~ gap-1","w-full":"","items-center":"","of-hidden":""},ht={"flex-auto":"","of-hidden":"",truncate:"","ws-pre":"","font-mono":""},_t={capitalize:""},bt={key:0},wt={op70:""},yt={flex:"~ gap2 wrap"},$t={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},kt={flex:"~ gap2 wrap justify-center"},Ct={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p8:""},Pt={flex:"~ gap2 wrap justify-center"},Vt={flex:"~ col gap-4","min-h-full":"","w-full":"","of-hidden":"",p4:""},At={flex:"","justify-end":"","gap-4":""},Dt=Z({__name:"AssetDetails",props:{modelValue:{}},setup(l,{emit:g}){const n=ee(l,"modelValue",g,{passive:!0}),v=le(async()=>{if(n.value.type==="image")return J.getImageMeta(await X(),n.value.filePath)}),b=U(!1),T=U(),M=U(0),_=le(async()=>{if(n.value.type!=="text")return;M.value;const a=await J.getTextAssetContent(await X(),n.value.filePath);return T.value=a,a});async function O(){if(_.value!==T.value)try{await J.writeStaticAssets(await X(),[{path:n.value.path,content:T.value,override:!0}],""),b.value=!1,M.value++,z({message:"Updated",icon:"i-carbon-checkmark",classes:"text-green"})}catch(a){console.error(a),z({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const G=ge(),B=I(()=>(G.value?._installedModules||[]).some(e=>e.meta?.name==="@nuxt/image"||e.meta?.name==="@nuxt/image-edge"||e.meta?.name==="@nuxt/image-nightly")),w=I(()=>{const a=[];if(n.value.type==="image"){const e=v.value?.width?`
7
+ width="${v.value.width}"
8
+ height="${v.value.height}" `:" ";return a.push({lang:"vue-html",code:`<img${e}
9
+ src="${n.value.publicPath}"
10
+ />`,name:"Plain Image"}),B.value&&a.push({lang:"vue-html",code:`<NuxtImg${e}
11
+ src="${n.value.publicPath}"
12
+ />`,name:"Nuxt Img",docs:"https://image.nuxt.com/usage/nuxt-img"},{lang:"vue-html",code:`<NuxtPicture${e}
13
+ src="${n.value.publicPath}"
14
+ />`,name:"Nuxt Picture",docs:"https://image.nuxt.com/usage/nuxt-picture"}),a}return a.push({lang:"html",code:`<a download href="${n.value.publicPath}">
15
+ Download ${n.value.path.split("/").slice(-1)[0]}
16
+ </a>`,name:"Download link"}),a}),r=xe(),p=he(),s=_e(()=>n.value.mtime),c=I(()=>{const a=n.value.size;return a<1024?`${a} B`:a<1024*1024?`${(a/1024).toFixed(2)} KB`:`${(a/1024/1024).toFixed(2)} MB`}),x=I(()=>{if(!v.value?.width||!v.value?.height)return"";const a=(k,S)=>S?a(S,k%S):k,e=a(v.value.width,v.value.height);return e>3?`${v.value.width/e}:${v.value.height/e}`:""}),y=I(()=>["image","text","video","audio","font"].includes(n.value.type)),u=U(!1);async function V(){try{await J.deleteStaticAsset(await X(),n.value.filePath),n.value=void 0,u.value=!1,z({message:"Asset deleted",icon:"i-carbon-checkmark",classes:"text-green"})}catch(a){console.error(a),z({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}const $=U(!1),E=U("");async function R(){const a=n.value.filePath.split("/"),e=a.slice(-1)[0]?.split(".").slice(0,-1).join(".");if(!E.value||E.value===e)return z({message:"Please enter a new name",icon:"i-carbon-warning",classes:"text-orange"});try{const k=a.slice(-1)[0]?.split(".").slice(-1)[0],S=`${a.slice(0,-1).join("/")}/${E.value}.${k}`;await J.renameStaticAsset(await X(),n.value.filePath,S),n.value=void 0,$.value=!1,z({message:"Asset renamed",icon:"i-carbon-checkmark",classes:"text-green"})}catch(k){console.error(k),z({message:"Something went wrong!",icon:"i-carbon-warning",classes:"text-red"})}}return(a,e)=>{const k=ie,S=Se,N=te,ue=Ue,W=be,de=se,Y=oe("tooltip");return o(),i(L,null,[t("div",mt,[y.value?(o(),i(L,{key:0},[e[13]||(e[13]=t("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[t("div",{"x-divider":""}),t("div",{"flex-none":""}," Preview "),t("div",{"x-divider":""})],-1)),t("div",vt,[d(k,{detail:"","max-h-80":"","min-h-20":"","min-w-20":"","w-auto":"",rounded:"",border:"~ base",asset:m(n),"text-content":m(_)},null,8,["asset","text-content"])])],64)):j("",!0),e[25]||(e[25]=t("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[t("div",{"x-divider":""}),t("div",{"flex-none":""}," Details "),t("div",{"x-divider":""})],-1)),t("table",ft,[t("tbody",null,[t("tr",null,[e[14]||(e[14]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Filepath ",-1)),t("td",null,[t("div",gt,[d(S,{filepath:m(n).filePath,"text-left":""},null,8,["filepath"]),K(d(N,{"flex-none":"",title:"Open in Editor",icon:"carbon-launch",border:!1,onClick:e[0]||(e[0]=C=>m(p)(m(n).filePath))},null,512),[[Y,"Open in Editor"]])])])]),t("tr",null,[e[15]||(e[15]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Public Path ",-1)),t("td",null,[t("div",xt,[t("div",ht,D(m(n).publicPath),1),K(d(N,{"flex-none":"",title:"Copy public path",icon:"carbon-copy",border:!1,onClick:e[1]||(e[1]=C=>m(r)(m(n).publicPath,"assets-public-path"))},null,512),[[Y,"Copy public path"]]),K(d(N,{"flex-none":"",to:m(n).publicPath,icon:"carbon-launch",target:"_blank",border:!1,title:"Open in browser"},null,8,["to"]),[[Y,"Open in browser"]])])])]),t("tr",null,[e[16]||(e[16]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Type ",-1)),t("td",_t,D(m(n).type),1)]),m(v)?.width?(o(),i(L,{key:0},[t("tr",null,[e[17]||(e[17]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Image Size ",-1)),t("td",null,D(m(v).width)+" x "+D(m(v).height),1)]),x.value?(o(),i("tr",bt,[e[18]||(e[18]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Aspect Ratio ",-1)),t("td",null,D(x.value),1)])):j("",!0)],64)):j("",!0),t("tr",null,[e[19]||(e[19]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," File size ",-1)),t("td",null,D(c.value),1)]),t("tr",null,[e[20]||(e[20]=t("td",{"w-30":"","ws-nowrap":"",pr5:"","text-right":"",op50:""}," Last modified ",-1)),t("td",null,[A(D(new Date(m(n).mtime).toLocaleString())+" ",1),t("span",wt,"("+D(m(s))+")",1)])])])]),e[26]||(e[26]=t("div",{flex:"~ gap2","mb--2":"","items-center":"",op50:""},[t("div",{"x-divider":""}),t("div",{"flex-none":""}," Actions "),t("div",{"x-divider":""})],-1)),t("div",yt,[d(N,{to:m(n).publicPath,download:"",target:"_blank",icon:"carbon-download",n:"green"},{default:h(()=>[...e[21]||(e[21]=[A(" Download ",-1)])]),_:1},8,["to"]),m(n).type==="text"?(o(),P(N,{key:0,icon:"carbon-edit",n:"cyan",onClick:e[2]||(e[2]=C=>b.value=!b.value)},{default:h(()=>[...e[22]||(e[22]=[A(" Edit ",-1)])]),_:1})):j("",!0),d(N,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:e[3]||(e[3]=C=>$.value=!$.value)},{default:h(()=>[...e[23]||(e[23]=[A(" Rename ",-1)])]),_:1}),d(N,{icon:"carbon-delete",n:"red",onClick:e[4]||(e[4]=C=>u.value=!u.value)},{default:h(()=>[...e[24]||(e[24]=[A(" Delete ",-1)])]),_:1})]),e[27]||(e[27]=t("div",{"flex-auto":""},null,-1)),w.value.length?(o(),P(ue,{key:1,border:"t base","mx--4":"","mb--4":"","code-snippets":w.value},null,8,["code-snippets"])):j("",!0)]),d(W,{modelValue:u.value,"onUpdate:modelValue":e[6]||(e[6]=C=>u.value=C)},{default:h(()=>[t("div",$t,[e[30]||(e[30]=t("span",null," Are you sure you want to delete this asset? ",-1)),t("div",kt,[d(N,{icon:"carbon-close",onClick:e[5]||(e[5]=C=>u.value=!1)},{default:h(()=>[...e[28]||(e[28]=[A(" Cancel ",-1)])]),_:1}),d(N,{icon:"carbon-delete",n:"red",onClick:V},{default:h(()=>[...e[29]||(e[29]=[A(" Delete ",-1)])]),_:1})])])]),_:1},8,["modelValue"]),d(W,{modelValue:$.value,"onUpdate:modelValue":e[9]||(e[9]=C=>$.value=C)},{default:h(()=>[t("div",Ct,[d(de,{modelValue:E.value,"onUpdate:modelValue":e[7]||(e[7]=C=>E.value=C),placeholder:"New name",n:"blue"},null,8,["modelValue"]),t("div",Pt,[d(N,{icon:"carbon-close",onClick:e[8]||(e[8]=C=>$.value=!1)},{default:h(()=>[...e[31]||(e[31]=[A(" Cancel ",-1)])]),_:1}),d(N,{icon:"carbon-text-annotation-toggle",n:"blue",onClick:R},{default:h(()=>[...e[32]||(e[32]=[A(" Rename ",-1)])]),_:1})])])]),_:1},8,["modelValue"]),m(n).type==="text"?(o(),P(W,{key:0,modelValue:b.value,"onUpdate:modelValue":e[12]||(e[12]=C=>b.value=C)},{default:h(()=>[t("div",Vt,[K(t("textarea",{"onUpdate:modelValue":e[10]||(e[10]=C=>T.value=C),placeholder:"Item value...",class:"h-lg w-xl of-auto rounded-lg p-4 text-sm font-mono outline-none",onKeydown:je(O,["enter"])},null,544),[[Ne,T.value]]),t("div",At,[d(N,{icon:"carbon-close",onClick:e[11]||(e[11]=C=>b.value=!1)},{default:h(()=>[...e[33]||(e[33]=[A(" Cancel ",-1)])]),_:1}),d(N,{icon:"carbon:save",n:"primary",onClick:O},{default:h(()=>[...e[34]||(e[34]=[A(" save ",-1)])]),_:1})])])]),_:1},8,["modelValue"])):j("",!0)],64)}}}),Ft=Object.assign(Dt,{__name:"AssetDetails"}),Nt={"h-full":"","of-auto":""},jt={"flex-none":"",flex:"~ gap2 items-center","text-lg":""},It={flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--1":"","h-4":"","w-4":"","rounded-full":"","bg-primary:30":"","text-8px":""},St={flex:"~ col","w-30":"","of-auto":""},Ut={"text-xs":"",op75:""},Tt={op50:""},Ot={key:0},Et={"mt--4":"",px2:"",grid:"~ cols-minmax-8rem"},Lt={key:1,p2:"",grid:"~ cols-minmax-8rem"},Bt={key:1},nn=Z({__name:"assets",setup(l){const g=we(),f=U(!1),F=U(""),n=I(()=>new ye(g.value||[],{keys:["path"]})),v=$e(()=>{const w=[];for(const r of g.value||[]){const p=r.path.split(".").pop();p&&!w.find(s=>s.name===p)&&w.push({name:p,value:!0})}return w}),b=I(()=>(F.value?n.value.search(F.value).map(r=>r.item):g.value||[]).filter(r=>{const p=r.path.split(".").pop();return!p||v.some(s=>s.name===p&&s.value)})),T=I(()=>{const w={};for(const r of b.value){const p=`${r.path.split("/").slice(0,-1).join("/")}/`;w[p]||(w[p]=[]),w[p].push(r)}return Object.entries(w).sort(([r],[p])=>r.localeCompare(p))}),M=I(()=>{const w={children:[]},r=(p,s,c)=>{const[x,...y]=s;let u=p.children.find(V=>V.path===x);u||(u={...c,path:x,children:[]},p.children.push(u)),y.length>1?r(u,y,c):y.length===1&&u.children.push({...c,path:y[0]})};return b.value.forEach(p=>{const s=p.path.split("/").filter(c=>c!=="");r(w,s,p)}),w.children}),_=U(),{view:O}=ke("assets");function G(){O.value=O.value==="list"?"grid":"list"}Ce("Escape",()=>{_.value=void 0});const B=U();return(w,r)=>{const p=te,s=Pe,c=Ve,x=Ae,y=Ze,u=ct,V=Ie,$=re,E=Ft,R=Te,a=oe("tooltip");return o(),i("div",Nt,[d(x,{ref_key:"navbar",ref:B,search:F.value,"onUpdate:search":r[1]||(r[1]=e=>F.value=e),pb2:""},{actions:h(()=>[t("div",jt,[K(d(p,{icon:"carbon:cloud-upload",title:"File Upload",border:!1,onClick:r[0]||(r[0]=e=>f.value=!f.value)},null,512),[[a,"File Upload",void 0,{"bottom-end":!0}]]),m(v).length?(o(),P(c,{key:0,direction:"end",n:"sm primary"},{trigger:h(({click:e})=>[K(d(p,{icon:"carbon-filter",border:!1,title:"Filter",p3:"","text-lg":"",onClick:k=>e()},null,8,["onClick"]),[[a,"Filter",void 0,{"bottom-end":!0}]]),t("span",It,D(m(v).length),1)]),default:h(()=>[t("div",St,[(o(!0),i(L,null,q(m(v),e=>(o(),P(s,{key:e.name,modelValue:e.value,"onUpdate:modelValue":k=>e.value=k,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:h(()=>[t("span",Ut,D(e.name),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):j("",!0),K(d(p,{"text-lg":"",border:!1,icon:m(O)==="grid"?"i-carbon-list":"i-carbon-grid",title:"Toggle view",onClick:G},null,8,["icon"]),[[a,"Toggle View",void 0,{"bottom-end":!0}]])])]),default:h(()=>[t("div",Tt,[F.value?(o(),i("span",Ot,D(b.value.length)+" matched · ",1)):j("",!0),t("span",null,D(m(g)?.length)+" assets in total",1)])]),_:1},8,["search"]),d(y,{modelValue:f.value,"onUpdate:modelValue":r[2]||(r[2]=e=>f.value=e),folder:"/"},null,8,["modelValue"]),m(O)==="grid"?(o(),i(L,{key:0},[T.value.length>1?(o(!0),i(L,{key:0},q(T.value,([e,k])=>(o(),P(V,{key:e,text:e,description:`${k.length} items`,open:k.length<=m(Oe),padding:!1},{default:h(()=>[t("div",Et,[(o(!0),i(L,null,q(k,S=>(o(),P(u,{key:S.path,asset:S,folder:e,onClick:N=>_.value=S},null,8,["asset","folder","onClick"]))),128))])]),_:2},1032,["text","description","open"]))),128)):(o(),i("div",Lt,[(o(!0),i(L,null,q(b.value,e=>(o(),P(u,{key:e.path,asset:e,onClick:k=>_.value=e},null,8,["asset","onClick"]))),128))]))],64)):(o(),i("div",Bt,[(o(!0),i(L,null,q(M.value,(e,k)=>(o(),P($,{key:k,modelValue:_.value,"onUpdate:modelValue":r[3]||(r[3]=S=>_.value=S),item:e},null,8,["modelValue","item"]))),128))])),d(R,{"model-value":!!_.value,"auto-close":"","w-120":"",top:B.value,onClose:r[5]||(r[5]=e=>_.value=void 0)},{default:h(()=>[_.value?(o(),P(E,{key:0,modelValue:_.value,"onUpdate:modelValue":r[4]||(r[4]=e=>_.value=e)},null,8,["modelValue"])):j("",!0)]),_:1},8,["model-value","top"])])}}});export{nn as default};
@@ -1 +1 @@
1
- {"id":"fd2d247c-d08c-4876-8eb1-788ff76b5130","timestamp":1761526036349}
1
+ {"id":"201c45d2-00f5-4709-8202-2f048e9eeba9","timestamp":1761622266366}
@@ -0,0 +1 @@
1
+ {"id":"201c45d2-00f5-4709-8202-2f048e9eeba9","timestamp":1761622266366,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -1 +1 @@
1
- import{n as f,P as r}from"./vendor/json-editor-vue-linwxbdb.js";let e;const n=[];function s(i){if(n.push(i),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&n.forEach(o=>o(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(o){o&&n.forEach(t=>t(o))},get(){return e.value},configurable:!0}),()=>{n.splice(n.indexOf(i),1)}}function u(){e||(e=f(),s(o));function i(){e&&r(e)}function o(t){e.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",i)}return e}const c=u();export{c as d};
1
+ import{n as f,P as r}from"./vendor/json-editor-vue-ikjc812x.js";let e;const n=[];function s(i){if(n.push(i),!(typeof window>"u"))return window.__NUXT_DEVTOOLS__&&n.forEach(o=>o(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(o){o&&n.forEach(t=>t(o))},get(){return e.value},configurable:!0}),()=>{n.splice(n.indexOf(i),1)}}function u(){e||(e=f(),s(o));function i(){e&&r(e)}function o(t){e.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",i)}return e}const c=u();export{c as d};
@@ -0,0 +1,8 @@
1
+ import{_ as k}from"./ncode-block-pcw3yh3u.js";import{ao as E}from"#entry";import{p as I,q as T,k as j,D as y,X as q,Y as M}from"./vendor/json-editor-vue-ikjc812x.js";class z{diff(e,t,n={}){let o;typeof n=="function"?(o=n,n={}):"callback"in n&&(o=n.callback);const d=this.castInput(e,n),u=this.castInput(t,n),l=this.removeEmpty(this.tokenize(d,n)),s=this.removeEmpty(this.tokenize(u,n));return this.diffWithOptionsObj(l,s,n,o)}diffWithOptionsObj(e,t,n,o){var d;const u=c=>{if(c=this.postProcess(c,n),o){setTimeout(function(){o(c)},0);return}else return c},l=t.length,s=e.length;let r=1,i=l+s;n.maxEditLength!=null&&(i=Math.min(i,n.maxEditLength));const p=(d=n.timeout)!==null&&d!==void 0?d:1/0,f=Date.now()+p,a=[{oldPos:-1,lastComponent:void 0}];let h=this.extractCommon(a[0],t,e,0,n);if(a[0].oldPos+1>=s&&h+1>=l)return u(this.buildValues(a[0].lastComponent,t,e));let g=-1/0,_=1/0;const w=()=>{for(let c=Math.max(g,-r);c<=Math.min(_,r);c+=2){let C;const P=a[c-1],v=a[c+1];P&&(a[c-1]=void 0);let x=!1;if(v){const D=v.oldPos-c;x=v&&0<=D&&D<l}const L=P&&P.oldPos+1<s;if(!x&&!L){a[c]=void 0;continue}if(!L||x&&P.oldPos<v.oldPos?C=this.addToPath(v,!0,!1,0,n):C=this.addToPath(P,!1,!0,1,n),h=this.extractCommon(C,t,e,c,n),C.oldPos+1>=s&&h+1>=l)return u(this.buildValues(C.lastComponent,t,e))||!0;a[c]=C,C.oldPos+1>=s&&(_=Math.min(_,c-1)),h+1>=l&&(g=Math.max(g,c+1))}r++};if(o)(function c(){setTimeout(function(){if(r>i||Date.now()>f)return o(void 0);w()||c()},0)})();else for(;r<=i&&Date.now()<=f;){const c=w();if(c)return c}}addToPath(e,t,n,o,d){const u=e.lastComponent;return u&&!d.oneChangePerToken&&u.added===t&&u.removed===n?{oldPos:e.oldPos+o,lastComponent:{count:u.count+1,added:t,removed:n,previousComponent:u.previousComponent}}:{oldPos:e.oldPos+o,lastComponent:{count:1,added:t,removed:n,previousComponent:u}}}extractCommon(e,t,n,o,d){const u=t.length,l=n.length;let s=e.oldPos,r=s-o,i=0;for(;r+1<u&&s+1<l&&this.equals(n[s+1],t[r+1],d);)r++,s++,i++,d.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return i&&!d.oneChangePerToken&&(e.lastComponent={count:i,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=s,r}equals(e,t,n){return n.comparator?n.comparator(e,t):e===t||!!n.ignoreCase&&e.toLowerCase()===t.toLowerCase()}removeEmpty(e){const t=[];for(let n=0;n<e.length;n++)e[n]&&t.push(e[n]);return t}castInput(e,t){return e}tokenize(e,t){return Array.from(e)}join(e){return e.join("")}postProcess(e,t){return e}get useLongestToken(){return!1}buildValues(e,t,n){const o=[];let d;for(;e;)o.push(e),d=e.previousComponent,delete e.previousComponent,e=d;o.reverse();const u=o.length;let l=0,s=0,r=0;for(;l<u;l++){const i=o[l];if(i.removed)i.value=this.join(n.slice(r,r+i.count)),r+=i.count;else{if(!i.added&&this.useLongestToken){let p=t.slice(s,s+i.count);p=p.map(function(f,a){const h=n[r+a];return h.length>f.length?h:f}),i.value=this.join(p)}else i.value=this.join(t.slice(s,s+i.count));s+=i.count,i.added||(r+=i.count)}}return o}}class A extends z{constructor(){super(...arguments),this.tokenize=W}equals(e,t,n){return n.ignoreWhitespace?((!n.newlineIsToken||!e.includes(`
2
+ `))&&(e=e.trim()),(!n.newlineIsToken||!t.includes(`
3
+ `))&&(t=t.trim())):n.ignoreNewlineAtEof&&!n.newlineIsToken&&(e.endsWith(`
4
+ `)&&(e=e.slice(0,-1)),t.endsWith(`
5
+ `)&&(t=t.slice(0,-1))),super.equals(e,t,n)}}const O=new A;function V(m,e,t){return O.diff(m,e,t)}function W(m,e){e.stripTrailingCr&&(m=m.replace(/\r\n/g,`
6
+ `));const t=[],n=m.split(/(\n|\r\n)/);n[n.length-1]||n.pop();for(let o=0;o<n.length;o++){const d=n[o];o%2&&!e.newlineIsToken?t[t.length-1]+=d:t.push(d)}return t}const b=I({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(m){const e=m;function t(l,s){const r=V(l.trim(),s.trim()),i=[],p=[],f=[];for(const a of r){const h=a.value.trimEnd().split(`
7
+ `);for(const g of h)a.added?(i.push(f.length),f.push(g)):(a.removed&&p.push(f.length),f.push(g))}return{added:i,removed:p,result:f.join(`
8
+ `)}}const n=T(()=>t(e.from,e.to));function o(l){let s=0;return l.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,r=>(s++,n.value.added.includes(s-1)?'class="line line-added"':n.value.removed.includes(s-1)?'class="line line-removed"':r))}const d=j();y(u);function u(){const l=E(d);l&&l.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(l,s)=>{const r=k;return M(),q(r,{ref_key:"elRef",ref:d,code:n.value.result,lang:m.lang,"transform-rendered":o,onLoaded:u},null,8,["code","lang"])}}}),S=Object.assign(b,{__name:"CodeDiff"});export{S as _};
@@ -0,0 +1 @@
1
+ import{_ as x}from"./ncode-block-pcw3yh3u.js";import{a as y,_ as g}from"#entry";import{p as C,n as S,q as w,w as B,J as s,a4 as p,Y as n,a3 as l,F as d,ah as N,a7 as i,ab as V,a1 as u,X as $,u as h,$ as m,ac as v}from"./vendor/json-editor-vue-ikjc812x.js";const T={key:0,relative:"","n-code-block":""},D={flex:"~ wrap","w-full":""},E=["onClick"],F={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},L=C({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(a){const c=a,e=S(c.codeSnippets[0]),_=y(),f=w(()=>e.value?.lang||"text");return B(()=>{c.codeSnippets.includes(e.value)||(e.value=c.codeSnippets[0])}),(j,o)=>{const b=x,r=g;return a.codeSnippets.length?(n(),s("div",T,[l("div",D,[(n(!0),s(d,null,N(a.codeSnippets,(t,k)=>(n(),s("button",{key:k,px4:"",py2:"",border:"r base",hover:"bg-active",class:i(t===e.value?"":"border-b"),onClick:q=>e.value=t},[l("div",{class:i(t===e.value?"":"op30"),"font-mono":""},V(t.name),3)],10,E))),128)),o[1]||(o[1]=l("div",{border:"b base","flex-auto":""},null,-1))]),e.value?(n(),s(d,{key:0},[u(b,{code:e.value.code,lang:f.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),l("div",F,[u(r,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>h(_)(e.value.code,a.eventType||`code-snippet-${e.value.name}`))},{default:m(()=>[...o[2]||(o[2]=[v(" Copy ",-1)])]),_:1}),e.value?.docs?(n(),$(r,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:m(()=>[...o[3]||(o[3]=[v(" Docs ",-1)])]),_:1},8,["to"])):p("",!0)])],64)):p("",!0)])):p("",!0)}}}),R=Object.assign(L,{__name:"CodeSnippets"});export{R as _};
@@ -0,0 +1 @@
1
+ import{b as pe,a as ue,_ as X,a4 as re,aq as ce,A as me,B as de,g as J,ar as fe,n as ve,as as _e,S as he,Y as xe,W as be,I as ge,f as ye}from"#entry";import{J as r,Y as t,a3 as n,p as F,q as P,ac as R,ab as E,a4 as b,a0 as W,a1 as u,X as x,$ as m,u as V,F as B,ah as M,k as U,n as we,D as Ce,x as ke,j as A,Z as Ne,a7 as $e,a2 as z,aj as Ve,ad as Y,ag as De}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as Pe}from"./help-fab-chg6ox1v.js";import{_ as Se}from"./ncheckbox-eijyrwcq.js";import{_ as Z}from"./nnavbar-b4ap0r8w.js";import{p as K}from"./index-jc4yj4to.js";import{_ as Q}from"./nbadge-d24jlq2b.js";import{_ as ee}from"./filepath-item-owlv864w.js";import{_ as Le}from"./ndrawer-bkb7znk3.js";import{D as Be,N as Ie}from"./vendor/vis-bs03k74b.js";import{_ as Te}from"./nselect-tabs-fwdas30r.js";import{_ as Me}from"./nsection-block-je23gs2w.js";import{_ as Ge}from"./nicon-title-he6hzgyb.js";import{D as H}from"./constants-b32h69zq.js";import{u as Ue,a as Fe}from"./state-components-8k7sf46m.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-jpwnx6aq.js";const Oe={},je={class:"markdown-body"};function Ae(s,l){return t(),r("div",je,[...l[0]||(l[0]=[n("template",null,[n("div",{class:"markdown-body"},[n("h1",null,"Components"),n("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component."),n("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them."),n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")])])],-1)])])}const Re=pe(Oe,[["render",Ae]]),ze={"text-sm":"","font-mono":""},Ee=F({__name:"ComponentName",props:{component:{}},setup(s){const l=s,_=P(()=>l.component.pascalName||K(l.component.name||l.component.__name||l.component.kebabName||""));return(w,h)=>(t(),r("code",ze,[h[0]||(h[0]=n("span",{mr1:"",op20:""},"<",-1)),R(E(_.value),1),h[1]||(h[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),ne=Object.assign(Ee,{__name:"ComponentName"}),We={flex:"~ col gap1","items-start":"","of-hidden":""},qe={flex:"~ gap2 items-center",px3:""},He={px3:"",pb2:""},Xe={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Ye={"text-sm":""},Je={"text-primary":""},Ze={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Ke={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Qe={"text-sm":""},en={"text-primary":""},nn={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},tn=F({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(s){const l=s,_=P(()=>l.component.pascalName||K(l.component.name||l.component.__name||l.component.kebabName||"")),w=P(()=>l.component.filePath||l.component.file||l.component.__file||""),h=ue();return(c,f)=>{const i=ne,g=X,a=Q,C=ee;return t(),r("div",We,[n("div",qe,[u(i,{component:s.component},null,8,["component"]),s.component.meta?.docs&&typeof s.component.meta.docs=="string"?(t(),x(g,{key:0,title:"Open docs","flex-none":"",n:"xs",to:s.component.meta.docs,target:"_blank",icon:"carbon-catalog"},{default:m(()=>[...f[1]||(f[1]=[R(" Docs ",-1)])]),_:1},8,["to"])):b("",!0),u(g,{title:"Copy name","flex-none":"",n:"xs",icon:"carbon-copy",onClick:f[0]||(f[0]=v=>V(h)(`<${_.value}></${_.value}>`,"component-name"))},{default:m(()=>[...f[2]||(f[2]=[R(" Copy ",-1)])]),_:1}),s.component.global?(t(),x(a,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):b("",!0)]),n("div",He,[w.value?(t(),x(C,{key:0,filepath:w.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):b("",!0)]),s.dependents?(t(),r("div",Xe,[n("div",Ye,[n("strong",Je,E(s.dependents.length),1),f[3]||(f[3]=n("span",{op50:""}," references",-1))]),s.dependents.length?(t(),r("div",Ze,[(t(!0),r(B,null,M(s.dependents,v=>(t(),x(C,{key:v,filepath:v},null,8,["filepath"]))),128))])):b("",!0)])):b("",!0),s.dependencies?(t(),r("div",Ke,[n("div",Qe,[n("strong",en,E(s.dependencies.length),1),f[4]||(f[4]=n("span",{op50:""}," dependencies",-1))]),s.dependencies.length?(t(),r("div",nn,[(t(!0),r(B,null,M(s.dependencies,v=>(t(),x(C,{key:v,filepath:v},null,8,["filepath"]))),128))])):b("",!0)])):b("",!0),W(c.$slots,"default")])}}}),te=Object.assign(tn,{__name:"ComponentDetails"}),on={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},sn={relative:"","h-full":"","w-full":""},ln={key:0,py4:"",pt3:"",flex:"~ col"},an={border:"t base",p4:""},pn=F({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(s){const l=s,_=U(),w=U(),h=re(),c=we(),f=ce(),i=me(),g=de(),{componentsGraphShowNodeModules:a,componentsGraphShowGlobalComponents:C,componentsGraphShowPages:v,componentsGraphShowLayouts:k,componentsGraphShowWorkspace:S}=J("ui"),d=U(),N=U(""),p=fe(N,300),O=P(()=>{const D=l.relationships||[];if(d.value){let e=function($){!$||o.has($)||(o.add($),$.deps.forEach(I=>{e(D.find(G=>G.id===I))}))};const o=new Set;return e(d.value),Array.from(o)}return D}),T=P(()=>{const D=O.value.map(o=>{const $=l.components.find(j=>j.filePath===o.id),I=f.value?.find(j=>j.file===o.id),G=g.value?.find(j=>j.file===o.id),L=o.id.includes("/node_modules/")?"lib":$?$.global?"global":"user":G?"layout":I?"page":"unknown";if(!a.value&&L==="lib"||!v.value&&L==="page"||!k.value&&L==="layout"||!S.value&&L==="user"&&i.value&&!o.id.startsWith(i.value.rootDir)||!C.value&&L==="global")return null;const q=L==="layout"?"hexagon":L==="page"?"square":"dot",y=p.value&&!o.id.toLowerCase().includes(p.value.toLowerCase());return{id:o.id,label:ae(o.id),group:L,shape:q,size:15+Math.min(o.deps.length/2,8),font:{color:y?"#8885":h.value==="dark"?"white":"black"},color:y?"#8885":d.value?.id===o.id?"#82c742":void 0,extra:{id:o.id,component:$,page:I,layout:G,relationship:o}}}).filter(o=>!!o),e=O.value.flatMap(o=>o.deps.map($=>({from:o.id,to:$,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:new Be(D),edges:e}}),oe=P(()=>c.value?.component?l.relationships?.find(e=>e.id===c.value?.component?.filePath)?.deps?.map(e=>l.relationships?.find(o=>o.id===e)?.id).filter(Boolean):[]),se=P(()=>c.value?.component?l.relationships?.filter(e=>e.deps.includes(c.value.component.filePath))?.map(e=>l.relationships?.find(o=>o.id===e.id)?.id).filter(Boolean):[]);Ce(()=>{const D={nodes:{shape:"dot",size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:"#42b883"},unknown:{color:"#b86542"},lib:{color:"#b4b842"},page:{color:"#42b2b8"},layout:{color:"#4256b8"}}},e=new Ie(_.value,T.value,D);e.on("click",o=>{const $=o.nodes?.[0],I=T.value.nodes.get($).extra;c.value=I}),ke(T,()=>{e.setData(T.value)})});function le(){c.value=void 0}function ae(D){const e=l.components.find(o=>o.filePath===D);return e?e.pascalName:D.replace(/.*\/components\//,"").replace(/\.vue$/,"").replace(/\/index$/,"").split("/").map(o=>o.charAt(0).toUpperCase()+o.slice(1)).join("")}function ie(){d.value=c.value?.relationship,c.value=void 0}return(D,e)=>{const o=Se,$=Z,I=ve,G=te,L=X,q=Le;return t(),r(B,null,[u($,{ref_key:"navbar",ref:w,search:N.value,"onUpdate:search":e[6]||(e[6]=y=>N.value=y),absolute:"","left-0":"","right-0":"","top-0":""},{actions:m(()=>[n("div",on,[u(o,{modelValue:V(v),"onUpdate:modelValue":e[0]||(e[0]=y=>A(v)?v.value=y:null),n:"primary sm"},{default:m(()=>[...e[8]||(e[8]=[n("span",{op75:""},"Show pages",-1)])]),_:1},8,["modelValue"]),u(o,{modelValue:V(k),"onUpdate:modelValue":e[1]||(e[1]=y=>A(k)?k.value=y:null),n:"primary sm"},{default:m(()=>[...e[9]||(e[9]=[n("span",{op75:""},"Show layouts",-1)])]),_:1},8,["modelValue"]),u(o,{modelValue:V(S),"onUpdate:modelValue":e[2]||(e[2]=y=>A(S)?S.value=y:null),n:"primary sm"},{default:m(()=>[...e[10]||(e[10]=[n("span",{op75:""},"Show workspace",-1)])]),_:1},8,["modelValue"]),u(o,{modelValue:V(a),"onUpdate:modelValue":e[3]||(e[3]=y=>A(a)?a.value=y:null),n:"primary sm"},{default:m(()=>[...e[11]||(e[11]=[n("span",{op75:""},"Show node_modules",-1)])]),_:1},8,["modelValue"]),u(o,{modelValue:V(C),"onUpdate:modelValue":e[4]||(e[4]=y=>A(C)?C.value=y:null),n:"primary sm"},{default:m(()=>[...e[12]||(e[12]=[n("span",{op75:""},"Show global components",-1)])]),_:1},8,["modelValue"])]),d.value?(t(),r("button",{key:0,flex:"~ gap-1","flex-none":"","items-center":"","rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:e[5]||(e[5]=y=>d.value=void 0)},[...e[13]||(e[13]=[R(" Clear filter ",-1),n("div",{"i-carbon-close":""},null,-1)])])):b("",!0),e[14]||(e[14]=n("div",{"flex-auto":""},null,-1)),W(D.$slots,"default")]),_:3},8,["search"]),n("div",sn,[n("div",{ref_key:"container",ref:_,"h-full":"","w-full":""},null,512),u(I,{absolute:"","bottom-3":"","left-3":"","border-0":"","n-glass-effect":"",p2:"",px3:"","text-sm":""},{default:m(()=>[...e[15]||(e[15]=[n("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),n("div",{op50:""}," Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),n("div",{op50:""}," Global Component "),n("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),n("div",{op50:""}," Page "),n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[n("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),n("div",{op50:""}," Layout "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),n("div",{op50:""}," Library Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),n("div",{op50:""}," Unknown ")],-1)])]),_:1}),u(q,{"model-value":!!(c.value&&c.value.component),top:w.value,border:"t l base","w-80":"",onClose:le},{default:m(()=>[c.value&&c.value.component?(t(),r("div",ln,[u(G,{component:c.value.component,dependencies:oe.value,dependents:se.value},null,8,["component","dependencies","dependents"]),n("div",an,[u(L,{n:"primary solid",onClick:e[7]||(e[7]=y=>ie())},{default:m(()=>[...e[16]||(e[16]=[R(" Filter to this component ",-1)])]),_:1})])])):b("",!0)]),_:1},8,["model-value","top"])])],64)}}}),un=Object.assign(pn,{__name:"ComponentsGraph"}),rn={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},cn={key:0,"ml--1":"","text-primary":""},mn=F({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(s){const l=s,_=P(()=>l.component.filePath||l.component.file||l.component.__file||"");return(w,h)=>{const c=ne,f=te,i=Ne("VDropdown"),g=Q,a=ee;return t(),r("div",rn,[u(i,null,{popper:m(()=>[u(f,{component:s.component,dependencies:s.dependencies,dependents:s.dependents,"w-100":"",pt3:""},null,8,["component","dependencies","dependents"])]),default:m(()=>[n("button",{"hover:text-primary":"",class:$e(s.dependents&&s.dependents.length===0?"op50":"")},[u(c,{component:s.component},null,8,["component"])],2)]),_:1}),s.dependents?.length?(t(),r("sup",cn," x"+E(s.dependents?.length),1)):b("",!0),s.component.global?(t(),x(g,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):b("",!0),W(w.$slots,"default"),_.value?(t(),x(a,{key:2,filepath:_.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):b("",!0)])}}}),dn=Object.assign(mn,{__name:"ComponentItem"}),fn={flex:"~ gap-2 items-center"},vn={pl4:""},_n=F({__name:"ComponentsList",props:{components:{},relationships:{}},setup(s){const l=s,_=U(""),w=U("all"),h=P(()=>{const g=l.components.map(a=>_e(a,l.relationships));return w.value==="using"?g.filter(a=>a.dependents?.length):w.value==="not-used"?g.filter(a=>!a.dependents?.length):g}),c={ClientOnly:"https://nuxt.com/docs/api/components/client-only",DevOnly:"https://nuxt.com/docs/api/components/dev-only",NuxtClientFallback:"https://nuxt.com/docs/api/components/nuxt-client-fallback",NuxtPicture:"https://nuxt.com/docs/api/components/nuxt-picture",NuxtRouteAnnouncer:"https://nuxt.com/docs/api/components/nuxt-route-announcer",NuxtTime:"https://nuxt.com/docs/api/components/nuxt-time",NuxtPage:"https://nuxt.com/docs/api/components/nuxt-page",NuxtLayout:"https://nuxt.com/docs/api/components/nuxt-layout",NuxtLink:"https://nuxt.com/docs/api/components/nuxt-link",NuxtLoadingIndicator:"https://nuxt.com/docs/api/components/nuxt-loading-indicator",NuxtErrorBoundary:"https://nuxt.com/docs/api/components/nuxt-error-boundary",NuxtWelcome:"https://nuxt.com/docs/api/components/nuxt-welcome",NuxtIsland:"https://nuxt.com/docs/api/components/nuxt-island",NuxtImg:"https://nuxt.com/docs/api/components/nuxt-img"},f=P(()=>new he(h.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),i=P(()=>{const g=[],a=new Map,C=[],v=[],k={user:0,lib:0,builtin:0,runtime:0};return(_.value?f.value.search(_.value).map(d=>d.item):h.value).forEach(d=>{const N=d.component;if(N.filePath&&xe(N.filePath)){const p=be(N.filePath);if(!p)return;p==="nuxt"?(N.meta??={},N.meta.docs??=c?.[N.pascalName],C.push(d),k.builtin++):(a.has(p)||a.set(p,[]),a.get(p).push(d),k.lib++)}else N.global&&!N.filePath?(v.push(d),k.runtime++):(g.push(d),k.user++)}),{count:k,user:g,builtin:C,lib:a,runtime:v}});return(g,a)=>{const C=ge,v=Te,k=Z,S=dn,d=Me,N=Ge;return t(),r(B,null,[u(k,{search:_.value,"onUpdate:search":a[1]||(a[1]=p=>_.value=p),pb3:""},{actions:m(()=>[W(g.$slots,"default")]),default:m(()=>[n("div",fn,[u(C,{icon:"carbon-filter",op50:""}),u(v,{modelValue:w.value,"onUpdate:modelValue":a[0]||(a[0]=p=>w.value=p),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),i.value.user.length?(t(),x(d,{key:0,icon:"carbon-nominal",text:"User components",open:i.value.user.length<=V(H),description:`Total components: ${i.value.count.user}`},{default:m(()=>[(t(!0),r(B,null,M(i.value.user,p=>(t(),x(S,z({key:p.component.filePath},{ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):b("",!0),i.value.runtime.length?(t(),x(d,{key:1,icon:"carbon-load-balancer-global",open:i.value.runtime.length<=V(H),text:"Runtime components",description:`Total components: ${i.value.count.runtime}`},{default:m(()=>[(t(!0),r(B,null,M(i.value.runtime,p=>(t(),x(S,z({key:p.component.filePath},{ref_for:!0},p),null,16))),128))]),_:1},8,["open","description"])):b("",!0),i.value.builtin.length?(t(),x(d,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${i.value.count.builtin}`},{default:m(()=>[(t(!0),r(B,null,M(i.value.builtin,p=>(t(),x(S,z({key:p.component.filePath},{ref_for:!0},p),null,16))),128))]),_:1},8,["description"])):b("",!0),i.value.lib.size?(t(),x(d,{key:3,open:i.value.count.lib<=V(H),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${i.value.count.lib} components from ${i.value.lib.size} packages`},{default:m(()=>[(t(!0),r(B,null,M(i.value.lib.entries(),([p,O])=>(t(),r("div",{key:p,"ml-2":""},[u(N,{text:`${p} (${O.length})`,py1:"",op50:""},null,8,["text"]),n("div",vn,[(t(!0),r(B,null,M(O,T=>(t(),x(S,z({key:T.component.filePath},{ref_for:!0},T),null,16))),128))])]))),128))]),_:1},8,["open","description"])):b("",!0)],64)}}}),hn=Object.assign(_n,{__name:"ComponentsList"}),xn={relative:"","h-full":"","of-auto":""},bn={"flex-none":"",flex:"~ gap3"},Un=F({__name:"components",setup(s){const l=ye(),_=Ue(),w=Fe(),{componentsView:h}=J("ui");function c(){l.value?.inspector?.enable()}function f(){h.value=h.value==="list"?"graph":"list"}return(i,g)=>{const a=X,C=Re,v=Pe,k=Ve("tooltip");return t(),r(B,null,[n("div",xn,[(t(),x(De(V(h)==="list"?hn:un),{components:V(_),relationships:V(w)},{default:m(()=>[n("div",bn,[Y(u(a,{"text-lg":"",border:!1,icon:V(h)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:f},null,8,["icon"]),[[k,"Toggle View",void 0,{"bottom-end":!0}]]),V(l)?.inspector?.isAvailable?Y((t(),x(a,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:c},null,512)),[[k,"Inspect Vue components",void 0,{"bottom-end":!0}]]):b("",!0)])]),_:1},8,["components","relationships"]))]),u(v,null,{default:m(()=>[u(C)]),_:1})],64)}}});export{Un as default};
@@ -0,0 +1 @@
1
+ import{a as $,w as U,I as j,_ as E}from"#entry";import{_ as F}from"./nmarkdown-n6zsr15e.js";import{_ as O}from"./filepath-item-owlv864w.js";import{k as S}from"./index-jc4yj4to.js";import{C as y}from"./constants-b32h69zq.js";import{p as q,q as r,Z as z,X as m,Y as a,$ as u,a3 as o,a7 as J,J as l,a4 as d,ac as _,ab as v,a1 as b,u as k,F as g,ah as L}from"./vendor/json-editor-vue-ikjc812x.js";const M={rounded:"","font-mono":""},T={key:0,"text-primary":""},W={key:0},X={title:"Vue Directive"},Y={"max-w-100":""},Z={px4:"",py3:"","text-sm":""},A={flex:"~ gap2",n:"primary xs"},G={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},H={"text-sm":""},K={"text-primary":""},P={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Q={key:1,"text-sm":"",op50:""},R=q({__name:"ComposableItem",props:{item:{},isDirective:{type:Boolean,default:!1},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(n){const t=n,C=$(),h=U(),c=r(()=>t.item.as||t.item.name),D=r(()=>{let s=c.value;return t.isDirective&&(s[0]!=="v"&&(s=`v${s}`),s=S(s)),s}),i=r(()=>t.metadata?.injectionUsage?.[c.value]?.count||0),I=r(()=>(t.metadata?.injectionUsage?.[c.value]?.moduleIds||[]).filter(s=>!s.endsWith("?macro=true"))),x=r(()=>t.item.meta?.docsUrl?t.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(t.item.from)?y.nuxt[t.item.name]:t.item.from==="vue"?y.vue[t.item.name]:null);return(s,e)=>{const N=j,w=F,f=E,B=O,V=z("VDropdown");return a(),m(V,{disabled:!t.metadata},{popper:u(()=>[o("div",Y,[o("div",Z,[n.item.meta?.description?(a(),m(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:n.item.meta.description},null,8,["markdown"])):d("",!0),o("div",A,[b(f,{icon:"carbon-copy",onClick:e[0]||(e[0]=p=>k(C)(D.value,"imports-name"))},{default:u(()=>[...e[2]||(e[2]=[_(" Copy ",-1)])]),_:1}),n.filepath?(a(),m(f,{key:0,icon:"carbon-code",onClick:e[1]||(e[1]=p=>n.filepath&&k(h)(n.filepath))},{default:u(()=>[...e[3]||(e[3]=[_(" Source ",-1)])]),_:1})):d("",!0),x.value?(a(),m(f,{key:1,icon:"carbon-catalog",to:x.value,target:"_blank"},{default:u(()=>[...e[4]||(e[4]=[_(" Docs ",-1)])]),_:1},8,["to"])):d("",!0)])]),o("div",G,[i.value?(a(),l(g,{key:0},[o("div",H,[e[5]||(e[5]=o("span",{op50:""},"It has been referenced ",-1)),o("strong",K,v(i.value),1),e[6]||(e[6]=o("span",{op50:""}," times by:",-1))]),o("div",P,[(a(!0),l(g,null,L(I.value,p=>(a(),m(B,{key:p,filepath:p},null,8,["filepath"]))),128))])],64)):(a(),l("div",Q," Not in use via auto import. "))])])]),default:u(()=>[o("button",{"hover:text-primary":"",class:J([n.metadata&&!i.value?"op30 hover:op100":"",n.classes])},[o("code",M,[_(v(c.value)+" ",1),i.value&&n.counter?(a(),l("sup",T,"x"+v(i.value),1)):d("",!0)]),n.isDirective?(a(),l("sup",W,[o("abbr",X,[b(N,{icon:"tabler:hexagon-letter-d"})])])):d("",!0)],2)]),_:1},8,["disabled"])}}}),ie=Object.assign(R,{__name:"ComposableItem"});export{ie as _};
@@ -0,0 +1 @@
1
+ import{a4 as M,ba as j,bb as N,bc as V,a6 as B,l as D,ag as k,bd as E,i as I,aa as L,r as O,n as P}from"#entry";import{p as $,k as C,q as x,r as W,D as q,z as R,w as b,M as S,J as U,Y as o,X as u,$ as w,a3 as r,ac as y,ab as A,u as T,ag as F,a1 as X}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as z}from"./launch-page-l87i7ewv.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-jpwnx6aq.js";import"./nmarkdown-n6zsr15e.js";import"./client-miiq4qin.js";const h=new Map,G=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=M(),p=C(),s=x(()=>m.tab.name),e=C(),t=W(j(p));q(()=>{const n=m.tab.view,l=n.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(s.value)&&l)e.value=h.get(s.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",_.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&h.set(s.value,e.value),e.value.src=n.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),i(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),R(d)}setTimeout(i,100)}),b(d),b(i),b(v),S(()=>{e.value&&(e.value.style.visibility="hidden")});function i(){if(!(!e.value||!e.value.contentWindow))try{const n=e.value.contentWindow.document.querySelector("html");n?.classList.toggle("dark",c.value==="dark"),n?.classList.toggle("light",c.value==="dark"),new MutationObserver(()=>{c.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(n,{attributes:!0,attributeFilter:["class"]})}catch{}}const a=N();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function d(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(n,l)=>(o(),U("div",{ref_key:"anchor",ref:p,"h-full":"","w-full":""},null,512))}}),J=Object.assign(G,{__name:"IframeView"}),Y={flex:"~ col gap2",mxa:"","items-center":""},H={"text-xl":""},K={"text-rose":""},se=$({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=V(),p=B(),s=x(()=>m.name??c.params.name),e=D(),t=x(()=>e.value.find(i=>i.name===s.value));return q(()=>{t.value?t.value.requireAuth&&!k.value&&E():setTimeout(()=>{t.value||p.push("/modules/overview")},2e3)}),(i,a)=>{const v=I,d=L,n=J,l=z,_=P;return t.value?t.value.requireAuth&&!T(k)?(o(),u(d,{key:1})):t.value.view.type==="iframe"?(o(),u(n,{key:2,tab:t.value},null,8,["tab"])):t.value.view.type==="vnode"?(o(),u(F(t.value.view.vnode),{key:3})):t.value.view.type==="launch"?(o(),u(l,{key:4,name:`custom-${t.value.name}`,icon:t.value.view.icon||t.value.icon,title:t.value.view.title||t.value.title,description:t.value.view.description,actions:t.value.view.actions,onAction:a[0]||(a[0]=g=>T(O).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(o(),u(v,{key:5},{default:w(()=>[X(_,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:w(()=>[y(" Unknown tab type "+A(t.value.view),1)]),_:1})]),_:1})):(o(),u(v,{key:0},{default:w(()=>[r("div",Y,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",H,[a[1]||(a[1]=y(" Tab ",-1)),r("code",K,A(s.value),1),a[2]||(a[2]=y(" not found ",-1))]),a[4]||(a[4]=r("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1)),a[5]||(a[5]=r("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]),_:1}))}}});export{se as default};
@@ -0,0 +1 @@
1
+ import{u as c,_ as r}from"#entry";import{p as s,aj as i,ad as _,X as p,Y as m}from"./vendor/json-editor-vue-ikjc812x.js";const u=s({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(e){const n=c();return(l,t)=>{const o=r,a=i("tooltip");return _((m(),p(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:t[0]||(t[0]=v=>n.value=e.getter())},null,512)),[[a,"Generate Data Schema"]])}}}),h=Object.assign(u,{__name:"DataSchemaButton"});export{h as _};
@@ -0,0 +1,2 @@
1
+ import{_ as E}from"./nselect-nvb1idpm.js";import{u as F,c as U,a as W,_ as q}from"#entry";import{_ as z}from"./nswitch-ls95gzk4.js";import{_ as J}from"./ndropdown-jcnxkt1n.js";import{_ as O}from"./ncode-block-pcw3yh3u.js";import{_ as X}from"./ndrawer-bkb7znk3.js";import{A as V,d as x}from"./vendor/quicktype-core-e2ngitjr.js";import{p as Y,k,q as D,x as N,X as c,a4 as m,Y as n,a1 as d,$ as r,a3 as p,J as _,F as C,ah as S,u as f,ab as b,af as G}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-jpwnx6aq.js";import"./client-miiq4qin.js";const H={border:"b base",flex:"~ items-center gap-2",sticky:"","left-0":"","right-0":"","top-0":"","z-1":"","bg-base":"",p3:""},K={key:0,flex:"~ items-center justify-center",absolute:"","bottom--1":"","right--2":"","h-4":"","w-4":"","rounded-full":"","bg-lime:30":"","text-8px":""},M={flex:"~ col","w-100":"","of-auto":"",py2:""},P={"text-xs":"",capitalize:"",op75:""},Q=Y({__name:"DataSchemaDrawer",setup(R){const s=F(),w=k(0),l=k("TypeScript"),v=D(()=>V.all.find(e=>e.displayName===l.value)),a=k(v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")),y=U(async()=>{if(w.value,!s.value)return"";const e=x.jsonInputForTargetLanguage(l.value);await e.addSource({name:s.value.name??"Data",samples:[s.value.input]});const t=new x.InputData;return t.addInput(e),(await x.quicktype({inputData:t,lang:l.value,rendererOptions:a.value?.reduce((u,i)=>(u[i.name]=i.defaultValue,u),{})})).lines.join(`
2
+ `)}),j=D(()=>{const e=l.value.toLocaleLowerCase();return e.startsWith("javascript")?"javascript":e.startsWith("json")?"json":e.startsWith("typescript")?"typescript":e});N(a,()=>{w.value++},{deep:!0}),N(l,()=>{a.value=v.value?.optionDefinitions.filter(e=>typeof e.defaultValue=="boolean")});const B=W();function L(){B(y.value||"")}return(e,t)=>{const h=E,u=q,i=z,I=J,T=O,$=X;return v.value?(n(),c(G,{key:0,to:"body"},[d($,{"model-value":!!f(s)?.input,"auto-close":"","max-w-screen":"","w-2xl":"","n-code-block":"",onClose:t[2]||(t[2]=o=>s.value=null)},{default:r(()=>[p("div",H,[t[3]||(t[3]=p("p",{"mr-2":""}," Schema ",-1)),d(h,{modelValue:l.value,"onUpdate:modelValue":t[0]||(t[0]=o=>l.value=o),n:"xs primary"},{default:r(()=>[(n(!0),_(C,null,S(f(V.all),o=>(n(),_("option",{key:o.displayName},b(o.displayName),1))),128))]),_:1},8,["modelValue"]),a.value?.length?(n(),c(I,{key:0,n:"sm lime"},{trigger:r(({click:o})=>[d(u,{icon:"carbon-settings","h-full":"",onClick:g=>o()},null,8,["onClick"]),a.value?(n(),_("span",K,b(a.value.length),1)):m("",!0)]),default:r(()=>[p("div",M,[(n(!0),_(C,null,S(a.value,(o,g)=>(n(),c(i,{key:o.name,modelValue:a.value[g].defaultValue,"onUpdate:modelValue":A=>a.value[g].defaultValue=A,flex:"~ gap-2",rounded:"",px2:"",py2:""},{default:r(()=>[p("span",P,b(o.description),1)]),_:2},1032,["modelValue","onUpdate:modelValue"]))),128))])]),_:1})):m("",!0),t[4]||(t[4]=p("div",{"flex-auto":""},null,-1)),d(u,{icon:"carbon-copy","mr-6":"","h-full":"",onClick:t[1]||(t[1]=o=>L())})]),f(y)?(n(),c(T,{key:0,lang:j.value,code:f(y)},null,8,["lang","code"])):m("",!0)]),_:1},8,["model-value"])])):m("",!0)}}}),ie=Object.assign(Q,{__name:"DataSchemaDrawer"});export{ie as default};
@@ -0,0 +1 @@
1
+ import{_ as H}from"./nsection-block-je23gs2w.js";import{_ as T}from"./ncheckbox-eijyrwcq.js";import{g as B}from"./color-mt9xuhgy.js";import{_ as U}from"./nbadge-d24jlq2b.js";import{p as h,q as $,X as y,Y as l,$ as m,ac as I,a0 as O,ab as k,a5 as P,k as _,J as u,F as x,a3 as t,a1 as a,a4 as C,ah as N,a7 as z,u as R}from"./vendor/json-editor-vue-ikjc812x.js";import{_ as E,p as W}from"#entry";import{_ as q}from"./filepath-item-owlv864w.js";import{_ as J}from"./ncode-block-pcw3yh3u.js";import"./nicon-title-he6hzgyb.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-jpwnx6aq.js";import"./client-miiq4qin.js";const K=h({__name:"NBadgeHashed",props:{text:{}},setup(i){const d=i,c=$(()=>{const s=B(d.text,50,60),r=B(d.text,50,60,.05);return{color:s,background:r}});return(s,r)=>(l(),y(U,{style:P(c.value)},{default:m(()=>[I(k(i.text),1),O(s.$slots,"default")]),_:3},8,["style"]))}}),L=Object.assign(K,{__name:"NBadgeHashed"}),X={flex:"~ gap-2 col",mb4:""},Y={flex:"~ gap-3 items-center"},A={key:0,flex:"~ gap-1","items-center":"",p1:"",border:"~ base rounded"},G={"max-w-full":"","of-auto":""},Q={"text-center":"",op50:""},Z={flex:"~",px4:""},ee={key:0,op50:""},te={px2:"","text-center":""},oe={"of-auto":""},ne=h({__name:"DebugModuleMutationRecords",props:{moduleMutationRecords:{}},setup(i){const d=i;function c(n){return n.startsWith("/")||n.match(/^[a-z]:[\\/]/i)}const s=_(!1),r=_(!1),v=_(!1),b=_(!1),g=_(!1),p=_(""),S=$(()=>{let n=d.moduleMutationRecords;return s.value||(n=n.filter(e=>!e.name.startsWith("nuxt:")&&e.name!=="@nuxt/devtools")),r.value||(n=n.filter(e=>e.keys.join(".")!=="build.templates")),v.value||(n=n.filter(e=>e.keys.join(".")!=="build.transpile")),b.value||(n=n.filter(e=>e.keys.join(".")!=="plugins")),g.value||(n=n.filter(e=>e.method||e.value!=="[]"&&e.value!=="{}")),p.value&&(n=n.filter(e=>e.name===p.value)),n});return(n,e)=>{const f=T,w=L,D=E,F=q,j=J;return l(),u(x,null,[t("div",X,[t("div",Y,[a(f,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=o=>s.value=o),n:"primary"},{default:m(()=>[...e[6]||(e[6]=[t("span",{"ws-nowrap":"",op75:""},"Builtin Modules",-1)])]),_:1},8,["modelValue"]),a(f,{modelValue:r.value,"onUpdate:modelValue":e[1]||(e[1]=o=>r.value=o),n:"primary"},{default:m(()=>[...e[7]||(e[7]=[t("span",{"ws-nowrap":"",op75:""},"Templates",-1)])]),_:1},8,["modelValue"]),a(f,{modelValue:v.value,"onUpdate:modelValue":e[2]||(e[2]=o=>v.value=o),n:"primary"},{default:m(()=>[...e[8]||(e[8]=[t("span",{"ws-nowrap":"",op75:""},"Transpile",-1)])]),_:1},8,["modelValue"]),a(f,{modelValue:b.value,"onUpdate:modelValue":e[3]||(e[3]=o=>b.value=o),n:"primary"},{default:m(()=>[...e[9]||(e[9]=[t("span",{"ws-nowrap":"",op75:""},"Plugins",-1)])]),_:1},8,["modelValue"]),a(f,{modelValue:g.value,"onUpdate:modelValue":e[4]||(e[4]=o=>g.value=o),n:"primary"},{default:m(()=>[...e[10]||(e[10]=[t("span",{"ws-nowrap":"",op75:""},"Empty Initial",-1)])]),_:1},8,["modelValue"]),p.value?(l(),u("div",A,[a(w,{"font-mono":"",text:p.value},null,8,["text"]),a(D,{icon:"carbon-close",border:!1,onClick:e[5]||(e[5]=o=>p.value="")})])):C("",!0)])]),t("table",G,[e[11]||(e[11]=t("thead",{border:"b base"},[t("tr",null,[t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Index "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Module "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Key Path "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Method "),t("th",{"ws-nowrap":"",p1:"","text-center":"","font-bold":""}," Value ")])],-1)),t("tbody",null,[(l(!0),u(x,null,N(S.value,o=>(l(),u("tr",{key:i.moduleMutationRecords.indexOf(o),border:"b dashed transparent hover:base"},[t("td",Q,[t("div",null,k(i.moduleMutationRecords.indexOf(o)+1),1)]),t("td",null,[o.name&&c(o.name)?(l(),y(F,{key:0,filepath:o.name},null,8,["filepath"])):(l(),y(w,{key:1,role:"button","font-mono":"",text:o.name,onClick:V=>p.value=o.name},null,8,["text","onClick"]))]),t("td",null,[t("code",Z,[(l(!0),u(x,null,N(o.keys,(V,M)=>(l(),u(x,{key:M},[t("span",null,k(V),1),M<o.keys.length-1?(l(),u("span",ee," . ")):C("",!0)],64))),128))])]),t("td",te,[a(w,{"font-mono":"",text:o.method||"=",class:z(o.method?"":"saturate-0")},null,8,["text","class"])]),t("td",oe,[a(j,{code:String(o.value),lang:"ts","grammar-context-code":"let a = ","ws-normal":"","break-all":"",py1:"",lines:!1,inline:!0},null,8,["code"])])]))),128))])])],64)}}}),le=Object.assign(ne,{__name:"DebugModuleMutationRecords"}),ae={key:0,p6:""},se={key:1},ge=h({__name:"debug",setup(i){const d=W();return(c,s)=>{const r=H;return R(d)?(l(),u("div",se,[a(r,{icon:"carbon-container-image-push-pull",text:"Module Mutation Records",description:"Records of module mutations to nuxt options"},{default:m(()=>[a(le,{"module-mutation-records":R(d).moduleMutationRecords||[]},null,8,["module-mutation-records"])]),_:1})])):(l(),u("div",ae,[...s[0]||(s[0]=[t("div",null,"No Debug Context Found",-1),t("div",null,"Set `debug: true` in your nuxt.config.ts to enable this panel",-1)])]))}}});export{ge as default};
@@ -1 +1 @@
1
- import{b as o}from"#entry";import{J as t,a0 as s,a1 as a,X as r}from"./vendor/json-editor-vue-linwxbdb.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-ia2v1z12.js";const n={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,f){return s(),t("div",c,[a("div",l,[r(e.$slots,"default")])])}const u=o(n,[["render",d]]);export{u as default};
1
+ import{b as o}from"#entry";import{J as t,Y as s,a3 as a,a0 as r}from"./vendor/json-editor-vue-ikjc812x.js";import"./vendor/shiki-hpfujfi3.js";import"./vendor/unocss-jpwnx6aq.js";const n={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,f){return s(),t("div",c,[a("div",l,[r(e.$slots,"default")])])}const u=o(n,[["render",d]]);export{u as default};
@@ -1 +1 @@
1
- import{p as i,q as u,J as d,a0 as f,a5 as l,X as a,ac as c,a1 as p,a9 as n}from"./vendor/json-editor-vue-linwxbdb.js";const m={"ml-1":"","text-xs":"",op50:""},_=i({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(r){const e=r;function s(t){return e.color?t?(t=t*e.factor,t<.5?"text-gray:50":t>1e3?"text-red-400":t>500?"text-orange-400":t>200?"text-yellow-400":""):"text-gray-400":""}const o=u(()=>!e.duration||e.duration<1?["<1","ms"]:e.duration<1e3?[e.duration.toFixed(0),"ms"]:e.duration<1e3*60?[(e.duration/1e3).toFixed(1),"s"]:[(e.duration/1e3/60).toFixed(1),"min"]);return(t,x)=>(f(),d("div",{class:l(s(r.duration))},[a(t.$slots,"before"),c(" "+n(o.value[0]),1),p("span",m,n(o.value[1]),1),a(t.$slots,"after")],2))}});export{_};
1
+ import{p as i,q as u,J as d,Y as f,a7 as c,a0 as a,ac as l,a3 as p,ab as n}from"./vendor/json-editor-vue-ikjc812x.js";const m={"ml-1":"","text-xs":"",op50:""},x=i({__name:"DurationDisplay",props:{duration:{},factor:{default:1},color:{type:Boolean,default:!0}},setup(r){const e=r;function s(t){return e.color?t?(t=t*e.factor,t<.5?"text-gray:50":t>1e3?"text-red-400":t>500?"text-orange-400":t>200?"text-yellow-400":""):"text-gray-400":""}const o=u(()=>!e.duration||e.duration<1?["<1","ms"]:e.duration<1e3?[e.duration.toFixed(0),"ms"]:e.duration<1e3*60?[(e.duration/1e3).toFixed(1),"s"]:[(e.duration/1e3/60).toFixed(1),"min"]);return(t,_)=>(f(),d("div",{class:c(s(r.duration))},[a(t.$slots,"before"),l(" "+n(o.value[0]),1),p("span",m,n(o.value[1]),1),a(t.$slots,"after")],2))}}),D=Object.assign(x,{__name:"DurationDisplay"});export{D as _};