@nuxt/devtools-nightly 2.2.0-29019442.db01e1b → 2.2.1-29030652.7bd1409

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 (109) hide show
  1. package/dist/chunks/module-main.mjs +2 -2
  2. package/dist/chunks/vscode.mjs +1 -1
  3. package/dist/client/200.html +24 -24
  4. package/dist/client/404.html +24 -24
  5. package/dist/client/_nuxt/__blank-luthoork.js +1 -0
  6. package/dist/client/_nuxt/{analyze-build-e9aciqzh.js → analyze-build-ile3hk57.js} +1 -1
  7. package/dist/client/_nuxt/assets-jv2tj066.js +16 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/f15cbb75-7ddb-4d58-a277-e712b1037498.json +1 -0
  10. package/dist/client/_nuxt/{client-gsjyqe32.js → client-j9xalwnm.js} +1 -1
  11. package/dist/client/_nuxt/{code-diff.vue-o59tfc01.js → code-diff.vue-f6qrbepb.js} +3 -3
  12. package/dist/client/_nuxt/{code-snippets.vue-gdfwtmrd.js → code-snippets.vue-bkthg5zd.js} +1 -1
  13. package/dist/client/_nuxt/{components-pd5ytnzs.js → components-bhfbfjbt.js} +1 -1
  14. package/dist/client/_nuxt/composable-item.vue-iiq4onn8.js +1 -0
  15. package/dist/client/_nuxt/custom-_name_-cy41kcan.js +1 -0
  16. package/dist/client/_nuxt/{data-schema-button.vue-3wc2g6px.js → data-schema-button.vue-ieb9nkmo.js} +1 -1
  17. package/dist/client/_nuxt/{data-schema-drawer-iczbfixb.js → data-schema-drawer-cijrljo1.js} +2 -2
  18. package/dist/client/_nuxt/{default-lmgc40qx.js → default-bkjb22ts.js} +1 -1
  19. package/dist/client/_nuxt/duration-display.vue-oa6j0va3.js +1 -0
  20. package/dist/client/_nuxt/{entry.css-jfo9gib8.css → entry.css-hxjy5fr6.css} +1 -1
  21. package/dist/client/_nuxt/{error-404-ewrdc7jn.js → error-404-okmvdr88.js} +1 -1
  22. package/dist/client/_nuxt/error-404.css-gqth5ww7.css +1 -0
  23. package/dist/client/_nuxt/{error-500-jd4y3r9k.js → error-500-maxlsh1n.js} +1 -1
  24. package/dist/client/_nuxt/error-500.css-n3cvcfas.css +1 -0
  25. package/dist/client/_nuxt/{error-c8jev8an.js → error-kcjqvgkd.js} +3 -3
  26. package/dist/client/_nuxt/{filepath-item.vue-h7tvoozy.js → filepath-item.vue-lxwmjgzn.js} +1 -1
  27. package/dist/client/_nuxt/full-f9ooae4n.js +1 -0
  28. package/dist/client/_nuxt/{help-fab.vue-ejg5hm5e.js → help-fab.vue-nvotn2uf.js} +1 -1
  29. package/dist/client/_nuxt/{hooks-nw4zcjgp.js → hooks-dn5j8jke.js} +1 -1
  30. package/dist/client/_nuxt/{imports-bsvmh0o7.js → imports-h05xe6oh.js} +1 -1
  31. package/dist/client/_nuxt/{index-gm3ryebv.js → index-ibyc0yte.js} +1 -1
  32. package/dist/client/_nuxt/launch-page.vue-nyd180gp.js +1 -0
  33. package/dist/client/_nuxt/{modules-olrhf7bs.js → modules-knby4kbj.js} +1 -1
  34. package/dist/client/_nuxt/nbadge-f29cbhae.js +1 -0
  35. package/dist/client/_nuxt/ncheckbox.vue-ns9g273q.js +1 -0
  36. package/dist/client/_nuxt/{ncode-block.vue-bir2wz4z.js → ncode-block.vue-fo8ld4g6.js} +1 -1
  37. package/dist/client/_nuxt/{ndrawer.vue-eleqt68n.js → ndrawer.vue-ni9cq008.js} +1 -1
  38. package/dist/client/_nuxt/{ndropdown.vue-i4su1de4.js → ndropdown.vue-lisujvwi.js} +1 -1
  39. package/dist/client/_nuxt/{nicon-title.vue-dsf9ygne.js → nicon-title.vue-ewg1179r.js} +1 -1
  40. package/dist/client/_nuxt/{nlink.vue-c5755oy2.js → nlink.vue-hz7sjbml.js} +1 -1
  41. package/dist/client/_nuxt/nmarkdown.vue-o2d4fkm8.js +1 -0
  42. package/dist/client/_nuxt/nnavbar.vue-jarkjgm5.js +1 -0
  43. package/dist/client/_nuxt/none-f7ufjwvc.js +1 -0
  44. package/dist/client/_nuxt/nsection-block-bwzu1176.js +1 -0
  45. package/dist/client/_nuxt/nselect-tabs.vue-klp7zgkt.js +1 -0
  46. package/dist/client/_nuxt/{nselect.vue-j7i2gi7w.js → nselect.vue-c33h2hkg.js} +1 -1
  47. package/dist/client/_nuxt/{nswitch.vue-jbyu7ls8.js → nswitch.vue-bae7rz1k.js} +1 -1
  48. package/dist/client/_nuxt/{open-graph-fun0dda2.js → open-graph-o8kygcls.js} +2 -2
  49. package/dist/client/_nuxt/{overview-ib7x7s7e.js → overview-mg930p2s.js} +1 -1
  50. package/dist/client/_nuxt/oywnus8r.js +15 -0
  51. package/dist/client/_nuxt/{pages-diisjrwd.js → pages-hzj8377s.js} +1 -1
  52. package/dist/client/_nuxt/{payload-laeh5ay3.js → payload-pa9ho3wx.js} +1 -1
  53. package/dist/client/_nuxt/pinia-bn59tmvq.js +1 -0
  54. package/dist/client/_nuxt/plugins-b0u34t54.js +1 -0
  55. package/dist/client/_nuxt/render-tree-ex3rd8k2.js +1 -0
  56. package/dist/client/_nuxt/{runtime-configs-mdng7c37.js → runtime-configs-lscmvl3j.js} +1 -1
  57. package/dist/client/_nuxt/{server-discovery-imurt5vj.js → server-discovery-j3ue5064.js} +1 -1
  58. package/dist/client/_nuxt/{server-route-inputs.vue-cm4adfbq.js → server-route-inputs.vue-oqsya5sz.js} +1 -1
  59. package/dist/client/_nuxt/server-routes-b69rugb7.js +9 -0
  60. package/dist/client/_nuxt/{server-tasks-kt1ddu0p.js → server-tasks-j1x2e5m1.js} +1 -1
  61. package/dist/client/_nuxt/{settings-ixw4tbbq.js → settings-eajnpmxa.js} +1 -1
  62. package/dist/client/_nuxt/stacktrace-list.vue-pdr4s7js.js +1 -0
  63. package/dist/client/_nuxt/{state-components-l62yewzq.js → state-components-cdh7urp4.js} +1 -1
  64. package/dist/client/_nuxt/{state-editor.vue-cwematyb.js → state-editor.vue-jf8xzi0c.js} +1 -1
  65. package/dist/client/_nuxt/{state-modules-gepr3wkm.js → state-modules-hnuz66f5.js} +1 -1
  66. package/dist/client/_nuxt/{storage-dypko3ue.js → storage-b7hu0ni2.js} +1 -1
  67. package/dist/client/_nuxt/terminals-fgu81yza.js +1 -0
  68. package/dist/client/_nuxt/{timeline-nfv3pbct.js → timeline-mvzeq9ip.js} +2 -2
  69. package/dist/client/_nuxt/{unocss-runtime-l2otbg6e.js → unocss-runtime-nuu2hnrz.js} +1 -1
  70. package/dist/client/_nuxt/vendor/json-editor-vue-ddl3r0b2.js +3831 -0
  71. package/dist/client/_nuxt/vendor/quicktype-core-2ghyy1he.js +1007 -0
  72. package/dist/client/_nuxt/vendor/{shiki-kdj4mcqm.js → shiki-jv02kgzv.js} +55 -54
  73. package/dist/client/_nuxt/vendor/{unocss-mvzv9iuf.js → unocss-jhada3qg.js} +2 -2
  74. package/dist/client/_nuxt/virtual-files-btz10qqn.js +1 -0
  75. package/dist/client/_nuxt/vue-devtools-nv55x5gc.js +2 -0
  76. package/dist/client/_nuxt/{vue-virtual-scroller.esm-gnguvd0a.js → vue-virtual-scroller.esm-dyo77aio.js} +2 -2
  77. package/dist/client/index.html +24 -24
  78. package/dist/module.json +1 -1
  79. package/dist/module.mjs +1 -1
  80. package/dist/shared/{devtools-nightly.60b2ba4d.mjs → devtools-nightly.c069f83f.mjs} +2 -2
  81. package/package.json +18 -20
  82. package/dist/client/_nuxt/__blank-dudv6g9d.js +0 -1
  83. package/dist/client/_nuxt/assets-cwxb2x6m.js +0 -16
  84. package/dist/client/_nuxt/builds/meta/bc0a60d2-8f24-4ff2-8d69-0108e582f46f.json +0 -1
  85. package/dist/client/_nuxt/composable-item.vue-b97lr5qo.js +0 -1
  86. package/dist/client/_nuxt/custom-_name_-i3el4phz.js +0 -1
  87. package/dist/client/_nuxt/duration-display.vue-h9mqvgci.js +0 -1
  88. package/dist/client/_nuxt/error-404.css-cyoi3t2n.css +0 -1
  89. package/dist/client/_nuxt/error-500.css-c3osv0mr.css +0 -1
  90. package/dist/client/_nuxt/full-hmj6eye4.js +0 -1
  91. package/dist/client/_nuxt/hyzu9r3l.js +0 -17
  92. package/dist/client/_nuxt/launch-page.vue-clctd6el.js +0 -1
  93. package/dist/client/_nuxt/nbadge-faqjde9j.js +0 -1
  94. package/dist/client/_nuxt/ncheckbox.vue-kkq02s4e.js +0 -1
  95. package/dist/client/_nuxt/nmarkdown.vue-iw2voruc.js +0 -1
  96. package/dist/client/_nuxt/nnavbar.vue-o88azs72.js +0 -1
  97. package/dist/client/_nuxt/none-mpwy3i72.js +0 -1
  98. package/dist/client/_nuxt/nsection-block-lykty6mm.js +0 -1
  99. package/dist/client/_nuxt/nselect-tabs.vue-jrhsrslt.js +0 -1
  100. package/dist/client/_nuxt/pinia-kqm7q3wc.js +0 -1
  101. package/dist/client/_nuxt/plugins-io4ukckd.js +0 -1
  102. package/dist/client/_nuxt/render-tree-jps1z2vn.js +0 -1
  103. package/dist/client/_nuxt/server-routes-j4fu3xzc.js +0 -9
  104. package/dist/client/_nuxt/stacktrace-list.vue-izey048j.js +0 -1
  105. package/dist/client/_nuxt/terminals-o61lxbp2.js +0 -1
  106. package/dist/client/_nuxt/vendor/json-editor-vue-llkaejaf.js +0 -3819
  107. package/dist/client/_nuxt/vendor/quicktype-core-o2aektoq.js +0 -1006
  108. package/dist/client/_nuxt/virtual-files-oyry2nza.js +0 -1
  109. package/dist/client/_nuxt/vue-devtools-l80civnz.js +0 -2
@@ -1 +1 @@
1
- import{b as a,d as i,e as u}from"./hyzu9r3l.js";import{P as c,a1 as l,Q as e,a8 as r,a3 as d,a2 as p,a9 as f}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=u;return l(),c("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[d(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:p(()=>[f(r(t.backHome),1)]),_:1})])])])}}},N=a(y,[["__scopeId","data-v-1f38420e"]]);export{N as default};
1
+ import{b as a,d as i,e as u}from"./oywnus8r.js";import{O as c,a0 as l,P as e,a7 as r,a2 as d,a1 as p,a8 as f}from"./vendor/json-editor-vue-ddl3r0b2.js";import"./vendor/unocss-jhada3qg.js";import"./vendor/shiki-jv02kgzv.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=u;return l(),c("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[d(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:p(()=>[f(r(t.backHome),1)]),_:1})])])])}}},N=a(y,[["__scopeId","data-v-ad94c1fd"]]);export{N as default};
@@ -0,0 +1 @@
1
+ .spotlight[data-v-ad94c1fd]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);bottom:-30vh;filter:blur(20vh);height:40vh}.gradient-border[data-v-ad94c1fd]{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-radius:.5rem;position:relative}@media (prefers-color-scheme:light){.gradient-border[data-v-ad94c1fd]{background-color:#ffffff4d}.gradient-border[data-v-ad94c1fd]:before{background:linear-gradient(90deg,#e2e2e2,#e2e2e2 25%,#00dc82,#36e4da 75%,#0047e1)}}@media (prefers-color-scheme:dark){.gradient-border[data-v-ad94c1fd]{background-color:#1414144d}.gradient-border[data-v-ad94c1fd]:before{background:linear-gradient(90deg,#303030,#303030 25%,#00dc82,#36e4da 75%,#0047e1)}}.gradient-border[data-v-ad94c1fd]:before{background-size:400% auto;border-radius:.5rem;content:"";inset:0;-webkit-mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);mask:linear-gradient(#fff 0 0) content-box,linear-gradient(#fff 0 0);-webkit-mask-composite:xor;mask-composite:exclude;opacity:.5;padding:2px;position:absolute;transition:background-position .3s ease-in-out,opacity .2s ease-in-out;width:100%}.gradient-border[data-v-ad94c1fd]:hover:before{background-position:-50% 0;opacity:1}.fixed[data-v-ad94c1fd]{position:fixed}.left-0[data-v-ad94c1fd]{left:0}.right-0[data-v-ad94c1fd]{right:0}.z-10[data-v-ad94c1fd]{z-index:10}.z-20[data-v-ad94c1fd]{z-index:20}.grid[data-v-ad94c1fd]{display:grid}.mb-16[data-v-ad94c1fd]{margin-bottom:4rem}.mb-8[data-v-ad94c1fd]{margin-bottom:2rem}.max-w-520px[data-v-ad94c1fd]{max-width:520px}.min-h-screen[data-v-ad94c1fd]{min-height:100vh}.w-full[data-v-ad94c1fd]{width:100%}.flex[data-v-ad94c1fd]{display:flex}.cursor-pointer[data-v-ad94c1fd]{cursor:pointer}.place-content-center[data-v-ad94c1fd]{place-content:center}.items-center[data-v-ad94c1fd]{align-items:center}.justify-center[data-v-ad94c1fd]{justify-content:center}.overflow-hidden[data-v-ad94c1fd]{overflow:hidden}.bg-white[data-v-ad94c1fd]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-4[data-v-ad94c1fd]{padding-left:1rem;padding-right:1rem}.px-8[data-v-ad94c1fd]{padding-left:2rem;padding-right:2rem}.py-2[data-v-ad94c1fd]{padding-bottom:.5rem;padding-top:.5rem}.text-center[data-v-ad94c1fd]{text-align:center}.text-8xl[data-v-ad94c1fd]{font-size:6rem;line-height:1}.text-xl[data-v-ad94c1fd]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-ad94c1fd]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-ad94c1fd]{font-weight:300}.font-medium[data-v-ad94c1fd]{font-weight:500}.leading-tight[data-v-ad94c1fd]{line-height:1.25}.font-sans[data-v-ad94c1fd]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-ad94c1fd]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-ad94c1fd]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-ad94c1fd]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-ad94c1fd]{padding-left:0;padding-right:0}.sm\:px-6[data-v-ad94c1fd]{padding-left:1.5rem;padding-right:1.5rem}.sm\:py-3[data-v-ad94c1fd]{padding-bottom:.75rem;padding-top:.75rem}.sm\:text-4xl[data-v-ad94c1fd]{font-size:2.25rem;line-height:2.5rem}.sm\:text-xl[data-v-ad94c1fd]{font-size:1.25rem;line-height:1.75rem}}
@@ -1 +1 @@
1
- import{b as s,d as a}from"./hyzu9r3l.js";import{P as i,a1 as u,Q as e,a8 as o}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},y=s(f,[["__scopeId","data-v-fb22c929"]]);export{y as default};
1
+ import{b as s,d as a}from"./oywnus8r.js";import{O as i,a0 as u,P as e,a7 as o}from"./vendor/json-editor-vue-ddl3r0b2.js";import"./vendor/unocss-jhada3qg.js";import"./vendor/shiki-jv02kgzv.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return a({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(u(),i("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},y=s(f,[["__scopeId","data-v-f2deb708"]]);export{y as default};
@@ -0,0 +1 @@
1
+ .spotlight[data-v-f2deb708]{background:linear-gradient(45deg,#00dc82,#36e4da 50%,#0047e1);filter:blur(20vh)}.fixed[data-v-f2deb708]{position:fixed}.-bottom-1\/2[data-v-f2deb708]{bottom:-50%}.left-0[data-v-f2deb708]{left:0}.right-0[data-v-f2deb708]{right:0}.grid[data-v-f2deb708]{display:grid}.mb-16[data-v-f2deb708]{margin-bottom:4rem}.mb-8[data-v-f2deb708]{margin-bottom:2rem}.h-1\/2[data-v-f2deb708]{height:50%}.max-w-520px[data-v-f2deb708]{max-width:520px}.min-h-screen[data-v-f2deb708]{min-height:100vh}.place-content-center[data-v-f2deb708]{place-content:center}.overflow-hidden[data-v-f2deb708]{overflow:hidden}.bg-white[data-v-f2deb708]{--un-bg-opacity:1;background-color:rgb(255 255 255/var(--un-bg-opacity))}.px-8[data-v-f2deb708]{padding-left:2rem;padding-right:2rem}.text-center[data-v-f2deb708]{text-align:center}.text-8xl[data-v-f2deb708]{font-size:6rem;line-height:1}.text-xl[data-v-f2deb708]{font-size:1.25rem;line-height:1.75rem}.text-black[data-v-f2deb708]{--un-text-opacity:1;color:rgb(0 0 0/var(--un-text-opacity))}.font-light[data-v-f2deb708]{font-weight:300}.font-medium[data-v-f2deb708]{font-weight:500}.leading-tight[data-v-f2deb708]{line-height:1.25}.font-sans[data-v-f2deb708]{font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji}.antialiased[data-v-f2deb708]{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){.dark\:bg-black[data-v-f2deb708]{--un-bg-opacity:1;background-color:rgb(0 0 0/var(--un-bg-opacity))}.dark\:text-white[data-v-f2deb708]{--un-text-opacity:1;color:rgb(255 255 255/var(--un-text-opacity))}}@media (min-width:640px){.sm\:px-0[data-v-f2deb708]{padding-left:0;padding-right:0}.sm\:text-4xl[data-v-f2deb708]{font-size:2.25rem;line-height:2.5rem}}
@@ -1,9 +1,9 @@
1
- import{f as E,A as x}from"./hyzu9r3l.js";import{_ as N}from"./stacktrace-list.vue-izey048j.js";import{p as y,q as v,P as l,a1 as i,a3 as C,Q as f,R as _,a2 as S,a9 as w,a8 as p,S as R}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./filepath-item.vue-h7tvoozy.js";const $=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,O=/^(eval@)?(\[native code\])?$/;function A(e,a){if(typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u")return T(e);if(e.stack&&e.stack.match(h))return F(e);if(e.stack)return b(e);throw new Error("Cannot parse given Error object")}function m(e){if(!e.includes(":"))return[e,void 0,void 0];const o=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[o[1],o[2]||void 0,o[3]||void 0]}function d(e,a){return e}function F(e,a){return I(e.stack)}function I(e,a){return d(e.split(`
1
+ import{f as E,A as x}from"./oywnus8r.js";import{_ as N}from"./stacktrace-list.vue-pdr4s7js.js";import{q as y,u as v,O as l,a0 as i,a2 as C,P as f,Q as _,a1 as w,a8 as S,a7 as p,R as O}from"./vendor/json-editor-vue-ddl3r0b2.js";import"./vendor/unocss-jhada3qg.js";import"./vendor/shiki-jv02kgzv.js";import"./filepath-item.vue-lxwmjgzn.js";const R=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,$=/^(eval@)?(\[native code\])?$/;function A(e,a){if(typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u")return T(e);if(e.stack&&e.stack.match(h))return F(e);if(e.stack)return b(e);throw new Error("Cannot parse given Error object")}function m(e){if(!e.includes(":"))return[e,void 0,void 0];const o=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[o[1],o[2]||void 0,o[3]||void 0]}function d(e,a){return e}function F(e,a){return I(e.stack)}function I(e,a){return d(e.split(`
2
2
  `).filter(t=>!!t.match(h))).map(t=>{t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const n=r.match(/ (\(.+\)$)/);r=n?r.replace(n[0],""):r;const c=m(n?n[1]:r),s=n&&r||void 0,u=["eval","<anonymous>"].includes(c[0])?void 0:c[0];return{function:s,file:u,line:c[1]?+c[1]:void 0,col:c[2]?+c[2]:void 0,raw:t}})}function b(e,a){return P(e.stack)}function P(e,a){return d(e.split(`
3
- `).filter(t=>!t.match(O))).map(t=>{if(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":"))return{function:t};{const r=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(r),c=n&&n[1]?n[1]:void 0,s=m(t.replace(r,""));return{function:c,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:t}}})}function T(e,a){return!e.stacktrace||e.message.includes(`
3
+ `).filter(t=>!t.match($))).map(t=>{if(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":"))return{function:t};{const r=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(r),c=n&&n[1]?n[1]:void 0,s=m(t.replace(r,""));return{function:c,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:t}}})}function T(e,a){return!e.stacktrace||e.message.includes(`
4
4
  `)&&e.message.split(`
5
5
  `).length>e.stacktrace.split(`
6
6
  `).length?V(e):e.stack?L(e):B(e)}function V(e,a){const o=/Line (\d+).*script (?:in )?(\S+)/i,t=e.message.split(`
7
7
  `),r=[];for(let n=2,c=t.length;n<c;n+=2){const s=o.exec(t[n]);s&&r.push({file:s[2],line:+s[1],raw:t[n]})}return d(r)}function B(e,a){const o=/Line (\d+).*script (?:in )?(\S+)(?:: In function (\S+))?$/i,t=e.stacktrace.split(`
8
8
  `),r=[];for(let n=0,c=t.length;n<c;n+=2){const s=o.exec(t[n]);s&&r.push({function:s[3]||void 0,file:s[2],line:s[1]?+s[1]:void 0,raw:t[n]})}return d(r)}function L(e,a){return d(e.stack.split(`
9
- `).filter(t=>!!t.match($)&&!t.match(/^Error created at/))).map(t=>{const r=t.split("@"),n=m(r.pop()),c=r.shift()||"",s=c.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;let u;c.match(/\(([^)]*)\)/)&&(u=c.replace(/^[^(]+\(([^)]*)\)$/,"$1"));const k=u===void 0||u==="[arguments not available]"?void 0:u.split(",");return{function:s,args:k,file:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:t}})}function X(e){return e.map(a=>({functionName:a.function,args:a.args,fileName:a.file,lineNumber:a.line,columnNumber:a.col,source:a.raw}))}function g(e,a){return X(A(e))}const D={p6:""},G={key:0},M={"text-6xl":""},K={key:0,op75:""},j={my4:"","text-xl":"","text-red":""},q={key:1,"of-auto":"",rounded:"","bg-active":"",p2:""},z=["textContent"],H={key:1,op50:""},ee=y({__name:"error",setup(e){const a=E(),o=v(()=>{const r=a.value?.nuxt?.payload?.error;return r&&(console.error("[Nuxt DevTools] Error in payload:"),console.error(r),console.error({...r})),r}),t=v(()=>{if(!o.value?.stack)return[];try{return o.value.stack.startsWith("<pre>")?g({stack:o.value.stack.replace(/<.*?>/g,"")}):g(o.value)}catch(r){return console.error(r),[]}});return(r,n)=>{const c=x,s=N;return i(),l("div",D,[o.value?(i(),l("div",G,[C(c,{n:"red",icon:"i-carbon-warning-alt-filled",mb5:""},{default:S(()=>n[0]||(n[0]=[w(" Error occurred in this page ")])),_:1}),f("div",M,p(o.value.statusCode||"Client Error"),1),o.value.statusMessage?(i(),l("div",K,p(o.value.statusMessage),1)):_("",!0),f("div",j,p(o.value.message||o.value.description||"Unknown error"),1),t.value.length||o.value.stack?(i(),l("div",q,[n[1]||(n[1]=f("div",{px1:"",op50:""}," Stacktrace ",-1)),t.value.length?(i(),R(s,{key:0,px2:"",stacktrace:t.value},null,8,["stacktrace"])):(i(),l("pre",{key:1,textContent:p(o.value.stack)},null,8,z))])):_("",!0)])):(i(),l("div",H," No error "))])}}});export{ee as default};
9
+ `).filter(t=>!!t.match(R)&&!t.match(/^Error created at/))).map(t=>{const r=t.split("@"),n=m(r.pop()),c=r.shift()||"",s=c.replace(/<anonymous function(: (\w+))?>/,"$2").replace(/\([^)]*\)/g,"")||void 0;let u;c.match(/\(([^)]*)\)/)&&(u=c.replace(/^[^(]+\(([^)]*)\)$/,"$1"));const k=u===void 0||u==="[arguments not available]"?void 0:u.split(",");return{function:s,args:k,file:n[0],line:n[1]?+n[1]:void 0,col:n[2]?+n[2]:void 0,raw:t}})}function X(e){return e.map(a=>({functionName:a.function,args:a.args,fileName:a.file,lineNumber:a.line,columnNumber:a.col,source:a.raw}))}function g(e,a){return X(A(e))}const D={p6:""},G={key:0},M={"text-6xl":""},K={key:0,op75:""},j={my4:"","text-xl":"","text-red":""},q={key:1,"of-auto":"",rounded:"","bg-active":"",p2:""},z=["textContent"],H={key:1,op50:""},ee=y({__name:"error",setup(e){const a=E(),o=v(()=>{const r=a.value?.nuxt?.payload?.error;return r&&(console.error("[Nuxt DevTools] Error in payload:"),console.error(r),console.error({...r})),r}),t=v(()=>{if(!o.value?.stack)return[];try{return o.value.stack.startsWith("<pre>")?g({stack:o.value.stack.replace(/<.*?>/g,"")}):g(o.value)}catch(r){return console.error(r),[]}});return(r,n)=>{const c=x,s=N;return i(),l("div",D,[o.value?(i(),l("div",G,[C(c,{n:"red",icon:"i-carbon-warning-alt-filled",mb5:""},{default:w(()=>n[0]||(n[0]=[S(" Error occurred in this page ")])),_:1}),f("div",M,p(o.value.statusCode||"Client Error"),1),o.value.statusMessage?(i(),l("div",K,p(o.value.statusMessage),1)):_("",!0),f("div",j,p(o.value.message||o.value.description||"Unknown error"),1),t.value.length||o.value.stack?(i(),l("div",q,[n[1]||(n[1]=f("div",{px1:"",op50:""}," Stacktrace ",-1)),t.value.length?(i(),O(s,{key:0,px2:"",stacktrace:t.value},null,8,["stacktrace"])):(i(),l("pre",{key:1,textContent:p(o.value.stack)},null,8,z))])):_("",!0)])):(i(),l("div",H," No error "))])}}});export{ee as default};
@@ -1 +1 @@
1
- import{K as k,a as c,J as g,av as C}from"./hyzu9r3l.js";import{p as b,q as B,P as t,a1 as a,Q as s,U as N,R as u,X as E,F as l,a9 as d,a8 as r,u as m}from"./vendor/json-editor-vue-llkaejaf.js";const F={flex:"~ gap-2 items-center",class:"group"},I=["title"],S={key:0,op50:""},V={key:0,flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},D=b({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(f){const p=f,v=k(),h=c(),i=g(),n=B(()=>p.filepath&&i.value?C(p.filepath,i.value.rootDir):{path:p.filepath||""});return(e,o)=>(a(),t("span",F,[s("span",{class:E([e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath},[e.override?(a(),t(l,{key:0},[d(r(e.override),1)],64)):n.value.moduleName?(a(),t(l,{key:1},[s("span",null,r(n.value.moduleName),1),e.subpath?(a(),t("span",S,r(n.value.path.slice(n.value.moduleName.length)),1)):u("",!0)],64)):(a(),t(l,{key:2},[d(r(n.value.path),1)],64))],10,I),N(e.$slots,"default"),e.filepath?(a(),t("div",V,[s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:o[0]||(o[0]=y=>m(v)(e.filepath))},o[2]||(o[2]=[s("div",{"i-carbon-script-reference":""},null,-1)])),s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Copy path",onClick:o[1]||(o[1]=y=>m(h)(e.filepath))},o[3]||(o[3]=[s("div",{"i-carbon-copy":""},null,-1)]))])):u("",!0)]))}});export{D as _};
1
+ import{L as k,a as c,K as g,aw as C}from"./oywnus8r.js";import{q as b,u as B,O as t,a0 as a,P as s,S as N,Q as u,W as S,F as l,a8 as d,a7 as r,v as m}from"./vendor/json-editor-vue-ddl3r0b2.js";const w={flex:"~ gap-2 items-center",class:"group"},E=["title"],F={key:0,op50:""},I={key:0,flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},$=b({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(f){const p=f,v=k(),h=c(),i=g(),n=B(()=>p.filepath&&i.value?C(p.filepath,i.value.rootDir):{path:p.filepath||""});return(e,o)=>(a(),t("span",w,[s("span",{class:S([e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath},[e.override?(a(),t(l,{key:0},[d(r(e.override),1)],64)):n.value.moduleName?(a(),t(l,{key:1},[s("span",null,r(n.value.moduleName),1),e.subpath?(a(),t("span",F,r(n.value.path.slice(n.value.moduleName.length)),1)):u("",!0)],64)):(a(),t(l,{key:2},[d(r(n.value.path),1)],64))],10,E),N(e.$slots,"default"),e.filepath?(a(),t("div",I,[s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:o[0]||(o[0]=y=>m(v)(e.filepath))},o[2]||(o[2]=[s("div",{"i-carbon-script-reference":""},null,-1)])),s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Copy path",onClick:o[1]||(o[1]=y=>m(h)(e.filepath))},o[3]||(o[3]=[s("div",{"i-carbon-copy":""},null,-1)]))])):u("",!0)]))}});export{$ as _};
@@ -0,0 +1 @@
1
+ import{b as t}from"./oywnus8r.js";import{O as e,a0 as r,S as s}from"./vendor/json-editor-vue-ddl3r0b2.js";import"./vendor/unocss-jhada3qg.js";import"./vendor/shiki-jv02kgzv.js";const a={},c={"h-full":"","of-auto":""};function n(o,f){return r(),e("div",c,[s(o.$slots,"default")])}const d=t(a,[["render",n]]);export{d as default};
@@ -1 +1 @@
1
- import{g as f,_ as m}from"./hyzu9r3l.js";import{p as v,f as c,P as o,R as s,u as g,a1 as a,F as k,Q as r,a3 as l,M as u,a2 as i,U as _}from"./vendor/json-editor-vue-llkaejaf.js";const x={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},y=v({__name:"HelpFab",setup(w){const t=c(!1),{showHelpButtons:p}=f("ui");return(d,e)=>{const b=m;return g(p)?(a(),o(k,{key:0},[r("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:e[0]||(e[0]=n=>t.value=!t.value)},e[3]||(e[3]=[r("div",{"i-ri:question-mark":""},null,-1)])),l(u,{name:"fade-in"},{default:i(()=>[t.value?(a(),o("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:e[1]||(e[1]=n=>t.value=!1)})):s("",!0)]),_:1}),l(u,{name:"slide-in"},{default:i(()=>[t.value?(a(),o("div",x,[_(d.$slots,"default"),l(b,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=n=>t.value=!1)})])):s("",!0)]),_:3})],64)):s("",!0)}}});export{y as _};
1
+ import{g as f,_ as m}from"./oywnus8r.js";import{q as v,k as c,O as o,Q as s,v as k,a0 as a,F as g,P as r,a2 as l,L as u,a1 as i,S as _}from"./vendor/json-editor-vue-ddl3r0b2.js";const x={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},y=v({__name:"HelpFab",setup(w){const t=c(!1),{showHelpButtons:p}=f("ui");return(d,e)=>{const b=m;return k(p)?(a(),o(g,{key:0},[r("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:e[0]||(e[0]=n=>t.value=!t.value)},e[3]||(e[3]=[r("div",{"i-ri:question-mark":""},null,-1)])),l(u,{name:"fade-in"},{default:i(()=>[t.value?(a(),o("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:e[1]||(e[1]=n=>t.value=!1)})):s("",!0)]),_:1}),l(u,{name:"slide-in"},{default:i(()=>[t.value?(a(),o("div",x,[_(d.$slots,"default"),l(b,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=n=>t.value=!1)})])):s("",!0)]),_:3})],64)):s("",!0)}}});export{y as _};
@@ -1 +1 @@
1
- import{_ as S}from"./duration-display.vue-h9mqvgci.js";import{a4 as T,a5 as F,f as V}from"./hyzu9r3l.js";import{p as $,f as H,q as w,P as h,a1 as u,Q as o,a9 as l,X as p,F as y,ae as B,a8 as m,V as P,u as x,a3 as _,S as C,R as N,a2 as f}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as D}from"./nsection-block-lykty6mm.js";import{_ as E}from"./help-fab.vue-ejg5hm5e.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./nicon-title.vue-dsf9ygne.js";const O={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},R={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},Y={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},q={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},Q={"text-sm":""},U={"ws-nowrap":""},X={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-right":"","text-sm":""},M=$({__name:"HooksTable",props:{hooks:{}},setup(k){const a=k,r=H("duration"),n=H("asc"),d={duration:(e,t)=>(t.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},g=w(()=>a.hooks.map(e=>e.start).sort((e,t)=>e-t)),b=w(()=>{const e=d[r.value],t=[...a.hooks].sort(e);return n.value==="desc"&&t.reverse(),t});function c(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function v(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function i(e){r.value===e?n.value=n.value==="asc"?"desc":"asc":r.value=e}return(e,t)=>{const I=S;return u(),h("table",O,[o("thead",j,[o("tr",null,[o("th",L,[o("button",{onClick:t[0]||(t[0]=s=>i("start"))},[t[5]||(t[5]=l(" Order ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="start"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[1]||(t[1]=s=>i("name"))},[t[6]||(t[6]=l(" Hook name ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="name"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[2]||(t[2]=s=>i("listener"))},[t[7]||(t[7]=l(" Listeners ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="listener"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",R,[o("button",{onClick:t[3]||(t[3]=s=>i("executions"))},[t[8]||(t[8]=l(" Executions ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="executions"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",Y,[o("button",{onClick:t[4]||(t[4]=s=>i("duration"))},[t[9]||(t[9]=l(" Duration ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="duration"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(u(!0),h(y,null,B(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",q,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:P({color:("getHashColorFromString"in e?e.getHashColorFromString:x(T))(c(s.name))})},[o("code",Q,m(c(s.name)),1)],4),o("td",U,[o("code",X,m(v(s.name)),1)]),o("td",G,m(s.listeners),1),o("td",J,m(s.executions.length+1),1),o("td",K,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),W={class:"markdown-body"},Z={__name:"hooks",setup(k,{expose:a}){return a({frontmatter:{}}),(n,d)=>(u(),h("div",W,d[0]||(d[0]=[o("h1",null,"Hooks",-1),o("p",null,[l("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")],-1)])))}},it=$({__name:"hooks",setup(k){const a=F(),r=V(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=M,c=D,v=Z,i=E;return u(),h(y,null,[o("div",null,[n.value?.length?(u(),C(c,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n.value.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:n.value},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),x(a)?.length?(u(),C(c,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${x(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:x(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{it as default};
1
+ import{_ as S}from"./duration-display.vue-oa6j0va3.js";import{a5 as T,a6 as F,f as B}from"./oywnus8r.js";import{q as $,k as H,u as w,O as h,a0 as u,P as o,a8 as l,W as p,F as y,ad as P,a7 as m,U as V,v as k,a2 as _,R as C,Q as N,a1 as f}from"./vendor/json-editor-vue-ddl3r0b2.js";import{_ as D}from"./nsection-block-bwzu1176.js";import{_ as O}from"./help-fab.vue-nvotn2uf.js";import"./vendor/unocss-jhada3qg.js";import"./vendor/shiki-jv02kgzv.js";import"./nicon-title.vue-ewg1179r.js";const E={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},R={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},U={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},Y={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},q={"text-sm":""},Q={"ws-nowrap":""},W={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-right":"","text-sm":""},M=$({__name:"HooksTable",props:{hooks:{}},setup(x){const a=x,r=H("duration"),n=H("asc"),d={duration:(e,t)=>(t.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},g=w(()=>a.hooks.map(e=>e.start).sort((e,t)=>e-t)),b=w(()=>{const e=d[r.value],t=[...a.hooks].sort(e);return n.value==="desc"&&t.reverse(),t});function c(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function v(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function i(e){r.value===e?n.value=n.value==="asc"?"desc":"asc":r.value=e}return(e,t)=>{const I=S;return u(),h("table",E,[o("thead",j,[o("tr",null,[o("th",L,[o("button",{onClick:t[0]||(t[0]=s=>i("start"))},[t[5]||(t[5]=l(" Order ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="start"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[1]||(t[1]=s=>i("name"))},[t[6]||(t[6]=l(" Hook name ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="name"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[2]||(t[2]=s=>i("listener"))},[t[7]||(t[7]=l(" Listeners ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="listener"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",R,[o("button",{onClick:t[3]||(t[3]=s=>i("executions"))},[t[8]||(t[8]=l(" Executions ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="executions"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",U,[o("button",{onClick:t[4]||(t[4]=s=>i("duration"))},[t[9]||(t[9]=l(" Duration ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="duration"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(u(!0),h(y,null,P(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",Y,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:V({color:("getHashColorFromString"in e?e.getHashColorFromString:k(T))(c(s.name))})},[o("code",q,m(c(s.name)),1)],4),o("td",Q,[o("code",W,m(v(s.name)),1)]),o("td",G,m(s.listeners),1),o("td",J,m(s.executions.length+1),1),o("td",K,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),X={class:"markdown-body"},Z={__name:"hooks",setup(x,{expose:a}){return a({frontmatter:{}}),(n,d)=>(u(),h("div",X,d[0]||(d[0]=[o("h1",null,"Hooks",-1),o("p",null,[l("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")],-1)])))}},it=$({__name:"hooks",setup(x){const a=F(),r=B(),n=w(()=>r.value?.metrics.clientHooks());return(d,g)=>{const b=M,c=D,v=Z,i=O;return u(),h(y,null,[o("div",null,[n.value?.length?(u(),C(c,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n.value.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:n.value},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),k(a)?.length?(u(),C(c,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${k(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:k(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{it as default};
@@ -1 +1 @@
1
- import{a6 as T,X as A,a7 as S,J as P,N as j,W as X,E as q}from"./hyzu9r3l.js";import{_ as J}from"./nselect-tabs.vue-jrhsrslt.js";import{_ as Q}from"./nnavbar.vue-o88azs72.js";import{_ as U}from"./filepath-item.vue-h7tvoozy.js";import{_ as R}from"./composable-item.vue-b97lr5qo.js";import{p as C,P as u,a1 as a,F as k,ae as M,a3 as c,Q as i,S as w,R as x,u as f,q as _,a8 as W,f as B,a2 as $}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as Y}from"./nsection-block-lykty6mm.js";import{_ as G}from"./help-fab.vue-ejg5hm5e.js";import{D as V}from"./constants-b32h69zq.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./nmarkdown.vue-iw2voruc.js";import"./client-gsjyqe32.js";import"./index-jc4yj4to.js";import"./nicon-title.vue-dsf9ygne.js";const K={flex:"~ wrap gap2",p2:"",pl4:""},O=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=U,e=R;return a(),u("div",null,[(a(!0),u(k,null,M(r.map.entries(),([l,m])=>(a(),u("div",{key:l},[c(o,{filepath:l,op50:"","hover:underline":""},null,8,["filepath"]),i("div",K,[(a(!0),u(k,null,M(m,g=>(a(),w(e,{key:g.as,item:g,metadata:r.metadata,"is-directive":g.meta?.vueDirective===!0,filepath:l.match(/^[\w@]/)?void 0:l},null,8,["item","metadata","is-directive","filepath"]))),128))])]))),128))])}}}),Z={key:0,flex:"~ col gap-2 items-start"},ee=C({__name:"HelpImportsDirs",setup(D){const r=T();return(v,o)=>{const e=U;return f(r)?.dirs?(a(),u("div",Z,[(a(!0),u(k,null,M(f(r).dirs,l=>(a(),w(e,{key:l,filepath:l,"text-primary":""},null,8,["filepath"]))),128))])):x("",!0)}}}),te={flex:"~ gap-2 wrap",mb6:""},oe=C({__name:"HelpImportsModules",setup(D){const r=T(),v=_(()=>[...new Set(r.value?.imports.map(o=>A(o.from)).filter(o=>!!o&&!S(o)))]);return(o,e)=>(a(),u("div",te,[(a(!0),u(k,null,M(v.value,l=>(a(),u("code",{key:l,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},W(l),1))),128))]))}}),se={class:"markdown-body"},ae={__name:"imports",setup(D,{expose:r}){return r({frontmatter:{}}),(o,e)=>{const l=ee,m=oe;return a(),u("div",se,[e[0]||(e[0]=i("h1",null,"Auto imports",-1)),e[1]||(e[1]=i("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1)),e[2]||(e[2]=i("hr",null,null,-1)),e[3]||(e[3]=i("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),c(l),e[4]||(e[4]=i("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),c(m),e[5]||(e[5]=i("hr",null,null,-1)),e[6]||(e[6]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)),e[7]||(e[7]=i("h2",null,"Directives",-1)),e[8]||(e[8]=i("p",null,"Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1)),e[9]||(e[9]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/directory-structure/directives",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},le={key:0,relative:"","h-full":"","of-auto":""},re={key:0,flex:"~ gap-2 items-center lt-sm:col lt-sm:items-start"},$e=C({__name:"imports",setup(D){const r=P(),v=B("all"),o=B("all"),e=B(""),l=T(),m=_(()=>l.value?.metadata),g=_(()=>l.value?.imports.filter(d=>d.as||d.name).sort((d,n)=>(d.as||d.name).localeCompare(n.as||n.name))||[]),z=_(()=>new j(g.value,{keys:["from","as","name"]})),s=_(()=>{const d=new Map,n=new Map,I=new Map;let p=e.value?z.value.search(e.value).map(t=>t.item):g.value;const N=o.value;N==="composables"?p=p.filter(t=>t.meta?.vueDirective!==!0):N==="directives"&&(p=p.filter(t=>t.meta?.vueDirective===!0)),v.value==="using"&&m.value?p=p.filter(t=>(t.as||t.name)in m.value.injectionUsage):v.value==="not-used"&&m.value&&(p=p.filter(t=>!((t.as||t.name)in m.value.injectionUsage)));const h={user:0,lib:0,builtin:0};return p.forEach(t=>{const b=X(t.from)?S(A(t.from))?I:n:d;b.has(t.from)||b.set(t.from,[]),b.get(t.from).push(t),h[b===d?"user":b===n?"lib":"builtin"]++}),{user:d,lib:n,builtin:I,count:h}}),F=_(()=>o.value==="directives"?`${s.value.count.user} directives from ${s.value.user.size} modules`:`${s.value.count.user} composables from ${s.value.user.size} modules`),E=_(()=>o.value==="directives"?`${s.value.count.builtin} directives`:`${s.value.count.builtin} composables`),H=_(()=>o.value==="directives"?`${s.value.count.lib} directives from ${s.value.lib.size} packages`:`${s.value.count.lib} composables from ${s.value.lib.size} packages`);return(d,n)=>{const I=q,p=J,N=Q,h=O,t=Y,b=ae,L=G;return a(),u(k,null,[f(r)?(a(),u("div",le,[c(N,{search:e.value,"onUpdate:search":n[2]||(n[2]=y=>e.value=y),pb3:""},{default:$(()=>[m.value?(a(),u("div",re,[c(I,{icon:"carbon-filter",op50:""}),c(p,{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=y=>v.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"]),c(p,{modelValue:o.value,"onUpdate:modelValue":n[1]||(n[1]=y=>o.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Composables",value:"composables"},{label:"Directives",value:"directives"}]},null,8,["modelValue"])])):x("",!0)]),_:1},8,["search"]),s.value.user.size?(a(),w(t,{key:0,open:s.value.count.user<=f(V),icon:o.value==="directives"?"tabler:hexagon-letter-d":"carbon-function",text:`User ${o.value==="directives"?"directives":"composables"}`,description:F.value},{default:$(()=>[c(h,{map:s.value.user,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","icon","text","description"])):x("",!0),s.value.builtin.size?(a(),w(t,{key:1,open:s.value.count.builtin<=f(V),icon:"simple-icons-nuxtdotjs",text:`Built-in ${o.value==="directives"?"directives":"composables"}`,description:E.value},{default:$(()=>[c(h,{map:s.value.builtin,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0),s.value.lib.size?(a(),w(t,{key:2,open:s.value.count.lib<=f(V),icon:"carbon-3d-mpr-toggle",text:`${o.value==="directives"?"Directives":"Composables"} from libraries`,description:H.value},{default:$(()=>[c(h,{map:s.value.lib,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0)])):x("",!0),c(L,null,{default:$(()=>[c(b)]),_:1})],64)}}});export{$e as default};
1
+ import{a7 as T,Y as A,a8 as U,K as P,O as j,X as O,E as X}from"./oywnus8r.js";import{_ as Y}from"./nselect-tabs.vue-klp7zgkt.js";import{_ as q}from"./nnavbar.vue-jarkjgm5.js";import{_ as z}from"./filepath-item.vue-lxwmjgzn.js";import{_ as K}from"./composable-item.vue-iiq4onn8.js";import{q as C,O as u,a0 as a,F as k,ad as M,a2 as c,P as i,R as w,Q as x,v as f,u as _,a7 as Q,k as B,a1 as $}from"./vendor/json-editor-vue-ddl3r0b2.js";import{_ as R}from"./nsection-block-bwzu1176.js";import{_ as G}from"./help-fab.vue-nvotn2uf.js";import{D as V}from"./constants-b32h69zq.js";import"./vendor/unocss-jhada3qg.js";import"./vendor/shiki-jv02kgzv.js";import"./nmarkdown.vue-o2d4fkm8.js";import"./client-j9xalwnm.js";import"./index-jc4yj4to.js";import"./nicon-title.vue-ewg1179r.js";const J={flex:"~ wrap gap2",p2:"",pl4:""},W=C({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup(D){return(r,v)=>{const o=z,e=K;return a(),u("div",null,[(a(!0),u(k,null,M(r.map.entries(),([l,m])=>(a(),u("div",{key:l},[c(o,{filepath:l,op50:"","hover:underline":""},null,8,["filepath"]),i("div",J,[(a(!0),u(k,null,M(m,g=>(a(),w(e,{key:g.as,item:g,metadata:r.metadata,"is-directive":g.meta?.vueDirective===!0,filepath:l.match(/^[\w@]/)?void 0:l},null,8,["item","metadata","is-directive","filepath"]))),128))])]))),128))])}}}),Z={key:0,flex:"~ col gap-2 items-start"},ee=C({__name:"HelpImportsDirs",setup(D){const r=T();return(v,o)=>{const e=z;return f(r)?.dirs?(a(),u("div",Z,[(a(!0),u(k,null,M(f(r).dirs,l=>(a(),w(e,{key:l,filepath:l,"text-primary":""},null,8,["filepath"]))),128))])):x("",!0)}}}),te={flex:"~ gap-2 wrap",mb6:""},oe=C({__name:"HelpImportsModules",setup(D){const r=T(),v=_(()=>[...new Set(r.value?.imports.map(o=>A(o.from)).filter(o=>!!o&&!U(o)))]);return(o,e)=>(a(),u("div",te,[(a(!0),u(k,null,M(v.value,l=>(a(),u("code",{key:l,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},Q(l),1))),128))]))}}),se={class:"markdown-body"},ae={__name:"imports",setup(D,{expose:r}){return r({frontmatter:{}}),(o,e)=>{const l=ee,m=oe;return a(),u("div",se,[e[0]||(e[0]=i("h1",null,"Auto imports",-1)),e[1]||(e[1]=i("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1)),e[2]||(e[2]=i("hr",null,null,-1)),e[3]||(e[3]=i("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),c(l),e[4]||(e[4]=i("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),c(m),e[5]||(e[5]=i("hr",null,null,-1)),e[6]||(e[6]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)),e[7]||(e[7]=i("h2",null,"Directives",-1)),e[8]||(e[8]=i("p",null,"Directives placed in the directives/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1)),e[9]||(e[9]=i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/directory-structure/directives",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},le={key:0,relative:"","h-full":"","of-auto":""},re={key:0,flex:"~ gap-2 items-center lt-sm:col lt-sm:items-start"},$e=C({__name:"imports",setup(D){const r=P(),v=B("all"),o=B("all"),e=B(""),l=T(),m=_(()=>l.value?.metadata),g=_(()=>l.value?.imports.filter(d=>d.as||d.name).sort((d,n)=>(d.as||d.name).localeCompare(n.as||n.name))||[]),F=_(()=>new j(g.value,{keys:["from","as","name"]})),s=_(()=>{const d=new Map,n=new Map,I=new Map;let p=e.value?F.value.search(e.value).map(t=>t.item):g.value;const N=o.value;N==="composables"?p=p.filter(t=>t.meta?.vueDirective!==!0):N==="directives"&&(p=p.filter(t=>t.meta?.vueDirective===!0)),v.value==="using"&&m.value?p=p.filter(t=>(t.as||t.name)in m.value.injectionUsage):v.value==="not-used"&&m.value&&(p=p.filter(t=>!((t.as||t.name)in m.value.injectionUsage)));const h={user:0,lib:0,builtin:0};return p.forEach(t=>{const b=O(t.from)?U(A(t.from))?I:n:d;b.has(t.from)||b.set(t.from,[]),b.get(t.from).push(t),h[b===d?"user":b===n?"lib":"builtin"]++}),{user:d,lib:n,builtin:I,count:h}}),S=_(()=>o.value==="directives"?`${s.value.count.user} directives from ${s.value.user.size} modules`:`${s.value.count.user} composables from ${s.value.user.size} modules`),E=_(()=>o.value==="directives"?`${s.value.count.builtin} directives`:`${s.value.count.builtin} composables`),H=_(()=>o.value==="directives"?`${s.value.count.lib} directives from ${s.value.lib.size} packages`:`${s.value.count.lib} composables from ${s.value.lib.size} packages`);return(d,n)=>{const I=X,p=Y,N=q,h=W,t=R,b=ae,L=G;return a(),u(k,null,[f(r)?(a(),u("div",le,[c(N,{search:e.value,"onUpdate:search":n[2]||(n[2]=y=>e.value=y),pb3:""},{default:$(()=>[m.value?(a(),u("div",re,[c(I,{icon:"carbon-filter",op50:""}),c(p,{modelValue:v.value,"onUpdate:modelValue":n[0]||(n[0]=y=>v.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"]),c(p,{modelValue:o.value,"onUpdate:modelValue":n[1]||(n[1]=y=>o.value=y),n:"primary sm",options:[{label:"All",value:"all"},{label:"Composables",value:"composables"},{label:"Directives",value:"directives"}]},null,8,["modelValue"])])):x("",!0)]),_:1},8,["search"]),s.value.user.size?(a(),w(t,{key:0,open:s.value.count.user<=f(V),icon:o.value==="directives"?"tabler:hexagon-letter-d":"carbon-function",text:`User ${o.value==="directives"?"directives":"composables"}`,description:S.value},{default:$(()=>[c(h,{map:s.value.user,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","icon","text","description"])):x("",!0),s.value.builtin.size?(a(),w(t,{key:1,open:s.value.count.builtin<=f(V),icon:"simple-icons-nuxtdotjs",text:`Built-in ${o.value==="directives"?"directives":"composables"}`,description:E.value},{default:$(()=>[c(h,{map:s.value.builtin,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0),s.value.lib.size?(a(),w(t,{key:2,open:s.value.count.lib<=f(V),icon:"carbon-3d-mpr-toggle",text:`${o.value==="directives"?"Directives":"Composables"} from libraries`,description:H.value},{default:$(()=>[c(h,{map:s.value.lib,root:f(r).rootDir,metadata:m.value},null,8,["map","root","metadata"])]),_:1},8,["open","text","description"])):x("",!0)])):x("",!0),c(L,null,{default:$(()=>[c(b)]),_:1})],64)}}});export{$e as default};
@@ -1 +1 @@
1
- import{f as y,g,h as N,_ as b,i as k,t as h,j as w}from"./hyzu9r3l.js";import{_ as C}from"./nlink.vue-c5755oy2.js";import{_ as V}from"./ncheckbox.vue-kkq02s4e.js";import{p as B,f as L,S as u,a1 as m,a2 as o,Q as t,a3 as n,R as T,a9 as l,u as j}from"./vendor/json-editor-vue-llkaejaf.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";const D={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},P={"max-w-190":"","text-lg":""},S={mb6:"",op50:""},E={p4:""},F={flex:"~ col gap-2",mxa:""},U=B({__name:"index",setup(G){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){h.value=s.value,w.value=!1}function _(){a.value=!1,p.value.devtools.close()}return($,e)=>{const f=N,r=C,i=b,x=V,v=k;return m(),u(v,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:o(()=>[t("div",D,[e[7]||(e[7]=t("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1)),t("p",P,[n(f,{"mr-0.5":"","inline-block":"","h-5":"","translate-y--1.1":"","align-mid":""}),e[1]||(e[1]=l(" is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!")),e[2]||(e[2]=t("br",null,null,-1))]),t("p",S,[e[4]||(e[4]=l(" Learn more at ")),n(r,{href:"https://devtools.nuxt.com/",target:"_blank",rel:"noopener noreferrer",n:"primary"},{default:o(()=>e[3]||(e[3]=[l(" devtools.nuxt.com ")])),_:1})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>e[5]||(e[5]=[t("span",null,"Get Started",-1)])),_:1}),j(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:_},{default:o(()=>e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])),_:1})):T("",!0)]),t("div",E,[t("div",F,[n(x,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=c=>s.value=c),n:"green6"},{default:o(()=>[e[8]||(e[8]=t("span",{op50:""},"Send anonymous statistics, help us improving DevTools",-1)),n(r,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op35:"",textContent:"Learn more"})]),_:1},8,["modelValue"])])])]),_:1})}}});export{U as default};
1
+ import{f as y,g,h as k,_ as N,i as b,t as h,j as w}from"./oywnus8r.js";import{_ as C}from"./nlink.vue-hz7sjbml.js";import{_ as V}from"./ncheckbox.vue-ns9g273q.js";import{q as B,k as L,R as u,a0 as m,a1 as o,P as t,a2 as n,Q as P,a8 as l,v as T}from"./vendor/json-editor-vue-ddl3r0b2.js";import"./vendor/unocss-jhada3qg.js";import"./vendor/shiki-jv02kgzv.js";const j={flex:"~ auto col gap3","items-center":"","justify-center":"","text-center":""},D={"max-w-190":"","text-lg":""},E={mb6:"",op50:""},F={p4:""},G={flex:"~ col gap-2",mxa:""},R=B({__name:"index",setup(S){const p=y(),s=L(!0),{showPanel:a}=g("ui");function d(){h.value=s.value,w.value=!1}function _(){a.value=!1,p.value.devtools.close()}return($,e)=>{const f=k,r=C,i=N,x=V,v=b;return m(),u(v,{flex:"~ col",relative:"","h-screen":"","w-full":""},{default:o(()=>[t("div",j,[e[7]||(e[7]=t("p",{my2:"","text-3em":"","text-primary":"","font-bold":"","font-stylish":""}," 👋 Hi there, welcome to Nuxt DevTools! ",-1)),t("p",D,[n(f,{"mr-0.5":"","inline-block":"","h-5":"","translate-y--1.1":"","align-mid":""}),e[1]||(e[1]=l(" is a set of visual tools that help you to know your Nuxt app better, and enhance your development experience with Nuxt. Enjoy!")),e[2]||(e[2]=t("br",null,null,-1))]),t("p",E,[e[4]||(e[4]=l(" Learn more at ")),n(r,{href:"https://devtools.nuxt.com/",target:"_blank",rel:"noopener noreferrer",n:"primary"},{default:o(()=>e[3]||(e[3]=[l(" devtools.nuxt.com ")])),_:1})]),n(i,{to:"/modules/overview",n:"lg primary",onClick:d},{default:o(()=>e[5]||(e[5]=[t("span",null,"Get Started",-1)])),_:1}),T(a)!==!1?(m(),u(i,{key:0,n:"borderless orange",onClick:_},{default:o(()=>e[6]||(e[6]=[t("span",null,"Always hide the floating panel",-1)])),_:1})):P("",!0)]),t("div",F,[t("div",G,[n(x,{modelValue:s.value,"onUpdate:modelValue":e[0]||(e[0]=c=>s.value=c),n:"green6"},{default:o(()=>[e[8]||(e[8]=t("span",{op50:""},"Send anonymous statistics, help us improving DevTools",-1)),n(r,{href:"https://github.com/nuxt/devtools#anonymous-usage-analytics",target:"_blank",ml1:"",op35:"",textContent:"Learn more"})]),_:1},8,["modelValue"])])])]),_:1})}}});export{R as default};
@@ -0,0 +1 @@
1
+ import{i as w,V as y,bj as B,_ as C,E as V,B as P}from"./oywnus8r.js";import{_ as $}from"./nmarkdown.vue-o2d4fkm8.js";import{q as v,R as a,a0 as n,a1 as o,a2 as c,P as i,Q as m,a7 as _,O as E,F,ad as I,a3 as L,a8 as T}from"./vendor/json-editor-vue-ddl3r0b2.js";const j={"text-xl":""},q={flex:"~ gap2 wrap"},Q=v({__name:"LaunchPage",props:{name:{},icon:{},title:{},description:{},actions:{}},emits:["action"],setup(l,{emit:p}){const d=l,u=p;function f(e,s){P("launch-page",{pageName:d.name}),e.handle?.(),u("action",s)}return(e,s)=>{const g=B,k=$,b=V,h=C,N=y,x=w;return n(),a(x,null,{default:o(()=>[c(N,{flex:"~ col gap2",mxa:"","min-w-100":"","items-center":"",p6:""},{default:o(()=>[c(g,{mb2:"","text-5xl":"",icon:e.icon||e.icon,title:e.title},null,8,["icon","title"]),i("h1",j,_(e.title),1),e.description?(n(),a(k,{key:0,mb2:"","mt--1":"","text-center":"","text-base":"",op50:"",markdown:e.description},null,8,["markdown"])):m("",!0),i("div",q,[(n(!0),E(F,null,I(e.actions,(t,r)=>(n(),a(h,L({key:r,n:"solid primary",disabled:t.pending,to:t.src,target:t.src?"_blank":void 0,ref_for:!0},t.attrs,{onClick:D=>f(t,r)}),{default:o(()=>[t.pending?(n(),a(b,{key:0,icon:"carbon-circle-dash","animate-spin":""})):m("",!0),T(" "+_(t.label),1)]),_:2},1040,["disabled","to","target","onClick"]))),128))])]),_:1})]),_:1})}}});export{Q as _};
@@ -1 +1 @@
1
- import{_ as oe}from"./filepath-item.vue-h7tvoozy.js";import{K as G,U as H,e as O,E as J,s as K,_ as S,r as q,m as E,B as ne,a8 as Q,a9 as R,N as se,J as le,y as ae,A as ie,v as re}from"./hyzu9r3l.js";import{_ as ue,u as F,a as de}from"./state-modules-gepr3wkm.js";import{_ as me}from"./duration-display.vue-h9mqvgci.js";import{p as P,q as M,S as $,a1 as o,a2 as r,Q as e,U as T,P as p,R as v,a9 as k,a8 as g,u as j,X as U,a3 as s,F as B,ae as A,ak as pe,f as D,M as Y}from"./vendor/json-editor-vue-llkaejaf.js";import{_ as ce}from"./nsection-block-lykty6mm.js";import{_ as _e}from"./nicon-title.vue-dsf9ygne.js";import{_ as X}from"./ndropdown.vue-i4su1de4.js";import{_ as fe}from"./ncheckbox.vue-kkq02s4e.js";import{_ as ve}from"./nnavbar.vue-o88azs72.js";import{_ as ge}from"./nbadge-faqjde9j.js";import{s as xe}from"./vue-virtual-scroller.esm-gnguvd0a.js";import{_ as be}from"./ncode-block.vue-bir2wz4z.js";import{_ as ke}from"./nlink.vue-c5755oy2.js";import{_ as he}from"./code-diff.vue-o59tfc01.js";import{_ as ye}from"./help-fab.vue-ejg5hm5e.js";import"./vendor/unocss-mvzv9iuf.js";import"./vendor/shiki-kdj4mcqm.js";import"./client-gsjyqe32.js";const $e={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},we={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},Ce={key:2},Ie={key:1,flex:"~ gap-2",title:"Documentation"},Me={key:2,flex:"~ gap-2"},Ne={key:0,flex:"~ gap-4 items-center"},Be={flex:"~ gap-2 items-center",op50:""},je={flex:"~ gap-2 items-center",op50:""},Pe={key:1},De={flex:"~ col","items-end":""},Ae={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Te=["src","alt"],Ue={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Se=["src"],ze={flex:"","justify-end":""},Le="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Oe="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",Fe="https://github.com/",Ve="https://www.npmjs.com/package/",V=P({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const f=N,i=M(()=>({...f.mod?.meta,...f.mod,...f.info})),x=G();return(m,t)=>{const l=O,u=J,h=me,w=H;return o(),$(w,{p4:"",flex:"~ gap2"},{default:r(()=>[e("div",$e,[T(m.$slots,"main",{},()=>[e("div",we,[m.mod.isPackageModule?(o(),$(l,{key:0,to:Ve+(i.value.npm||i.value.name),target:"_blank",hover:"underline text-primary"},{default:r(()=>[k(g(i.value.name),1)]),_:1},8,["to"])):m.mod.entryPath?(o(),p("button",{key:1,role:"button",hover:"underline text-primary",onClick:t[0]||(t[0]=c=>j(x)(m.mod.entryPath))},g(i.value.name),1)):(o(),p("span",Ce,g(i.value.name),1)),T(m.$slots,"badge")]),i.value.description?(o(),p("div",{key:0,class:U(m.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},g(i.value.description),3)):v("",!0),t[3]||(t[3]=e("div",{"flex-auto":""},null,-1)),i.value.website?(o(),p("div",Ie,[t[1]||(t[1]=e("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):v("",!0),i.value.github?(o(),p("div",Me,[t[2]||(t[2]=e("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):v("",!0)]),T(m.$slots,"items"),i.value.stats?(o(),p("div",Ne,[e("div",Be,[s(u,{icon:"carbon-star","text-lg":""}),e("span",null,g(i.value.stats.stars),1)]),e("div",je,[s(u,{icon:"carbon-download","text-lg":""}),e("span",null,g(i.value.stats.downloads),1)])])):v("",!0),m.mod.timings?.setup?(o(),p("div",Pe,[s(h,{title:"Module Setup Time",flex:"~ items-center",duration:m.mod.timings.setup*1e3,factor:.5},{before:r(()=>[s(u,{icon:"carbon-time",mr2:"","text-lg":"",op50:""})]),_:1},8,["duration"])])):v("",!0)]),e("div",De,[i.value.icon||m.mod.isPackageModule?(o(),p("div",Ae,[i.value.icon?(o(),p("img",{key:0,src:Le+i.value.icon,alt:m.mod.name,ma:""},null,8,Te)):v("",!0),t[4]||(t[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):v("",!0),i.value.maintainers?.length&&m.maintainers?(o(),p("div",Ue,[(o(!0),p(B,null,A(i.value.maintainers,c=>(o(),$(l,{key:c.name,target:"_blank",to:Fe+c.github,title:c.name},{default:r(()=>[e("img",{src:Oe+c.github,"h-6":"","w-6":"","rounded-full":""},null,8,Se)]),_:2},1032,["to","title"]))),128))])):v("",!0),m.$slots.actions?(o(),p(B,{key:2},[t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("div",ze,[T(m.$slots,"actions")])],64)):v("",!0)])]),_:3})}}}),qe={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ee={key:1,"mx--2":""},Ye=["onClick"],Ge={key:2,"mx--2":""},He=["onClick"],Je={op50:""},Ke={"text-green":""},Qe={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Re={"text-sm":"",op50:""},Xe=P({__name:"ModuleItem",props:{mod:{}},setup(N){const f=N,i=M(()=>f.mod.info),x=M(()=>({...f.mod?.meta,...f.mod,...i.value})),m=K();return(t,l)=>{const u=oe,h=O,w=ue,c=V;return o(),$(c,{mod:t.mod,info:i.value},{items:r(()=>[t.mod.entryPath?(o(),p("div",qe,[l[0]||(l[0]=e("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1)),s(u,{filepath:t.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):v("",!0),x.value.npm?(o(),$(w,{key:x.value.npm,"package-name":x.value.npm,options:{dev:!0}},{default:r(({info:d,update:C,state:b,id:a,restart:n})=>[b==="running"?(o(),$(h,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:a?"/modules/terminals":void 0,onClick:y=>a?m.value=a:void 0},{default:r(()=>l[1]||(l[1]=[e("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])),_:2},1032,["to","onClick"])):b==="updated"?(o(),p("div",Ee,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:n},l[2]||(l[2]=[e("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)]),8,Ye)])):d?.needsUpdate?(o(),p("div",Ge,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:y=>C()},[l[3]||(l[3]=e("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),e("code",Je,"v"+g(d.current),1),l[4]||(l[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Ke,"v"+g(d.latest),1)],8,He)])):d?.latest?(o(),p("div",Qe,[l[5]||(l[5]=e("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),e("code",Re,"v"+g(d.current),1)])):v("",!0)]),_:1},8,["package-name"])):v("",!0)]),_:1},8,["mod","info"])}}}),We=P({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:f}){const i=N,x=f,m=F(),t=M(()=>m.value.find(c=>c.name===i.item.npm)),l=M(()=>t.value&&t.value.isPackageModule),u=M(()=>t.value&&t.value.isPackageModule&&t.value.isUninstallable);async function h(c,d){const C=d==="install"?q.installNuxtModule:q.uninstallNuxtModule,b=await C(await E(),c.npm,!0);ne(`modules:${d}`,{moduleName:c.npm}),b.commands&&await Q.start(c,b,d)&&(R.value.push({name:c.npm,info:c,processId:b.processId}),x("start"),await C(await E(),c.npm,!1))}const w={};return(c,d)=>{const C=ge,b=S,a=X,n=V;return o(),$(n,{mod:w,role:l.value?"":"button",info:c.item,mb2:"","h-full":"",class:U(l.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:d[1]||(d[1]=y=>l.value?null:h(c.item,"install"))},pe({_:2},[l.value?{name:"badge",fn:r(()=>[s(C,{n:"green",textContent:"Installed"}),u.value?(o(),$(a,{key:0,n:"sm green"},{trigger:r(({click:y})=>[s(b,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:_=>y()},null,8,["onClick"])]),default:r(()=>[s(b,{icon:"carbon-trash-can",n:"red",onClick:d[0]||(d[0]=y=>h(c.item,"uninstall"))},{default:r(()=>d[2]||(d[2]=[k(" Uninstall ")])),_:1})]),_:1})):v("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),Ze={"h-full":"",flex:"~ col gap-4"},et={flex:"~ items-center"},tt={flex:"~ col","w-30":"","of-auto":""},ot={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},nt={flex:"~ items-center gap-2"},st={flex:"~ gap1","text-sm":"",op50:""},lt={key:0},at={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},it=P({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:f}){const i=f,x=de(),m=F(),t=["downloads","stars","updated","created"],l=D(!1),u=D(t[0]),h=D(!0),w={downloads:(a,n)=>a.stats.downloads-n.stats.downloads,stars:(a,n)=>a.stats.stars-n.stats.stars,created:(a,n)=>a.stats.createdAt-n.stats.createdAt,updated:(a,n)=>a.stats.publishedAt-n.stats.publishedAt},c=M(()=>x.value?.toSorted((a,n)=>w[u.value](a,n)*(l.value?1:-1))),d=D(""),C=M(()=>new se(x.value||[],{keys:["name","description","npm","category"],sortFn:(a,n)=>{const y=x.value?.[a.idx],_=x.value?.[n.idx];return y&&_?w[u.value](y,_)*(l.value?1:-1):a.score-n.score},threshold:.2})),b=M(()=>{let a=c.value;return h.value&&(a=(a||[]).filter(n=>!m.value.some(y=>y.name===n.name))),d.value?C.value.search(d.value).map(n=>n.item).filter(n=>a?.includes(n)):a});return(a,n)=>{const y=_e,_=S,z=J,W=X,Z=fe,ee=ve,te=We;return o(),p("div",Ze,[s(y,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),s(ee,{search:d.value,"onUpdate:search":n[2]||(n[2]=I=>d.value=I),"no-padding":"","px-6":"","pb-3":"","pt-2":""},{actions:r(()=>[s(W,{direction:"end",n:"sm primary"},{trigger:r(({click:I})=>[e("div",et,[s(_,{icon:l.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:n[0]||(n[0]=L=>l.value=!l.value)},null,8,["icon"]),s(_,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:L=>I()},{default:r(()=>[k(g(u.value)+" ",1),s(z,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:r(()=>[e("div",tt,[(o(),p(B,null,A(t,I=>s(_,{key:I,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:L=>u.value=I},{default:r(()=>[e("span",ot,[k(g(I)+" ",1),u.value===I?(o(),$(z,{key:0,icon:"carbon:checkmark"})):v("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),default:r(()=>[e("div",nt,[s(Z,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=I=>h.value=I),n:"primary md"},{default:r(()=>n[4]||(n[4]=[e("span",{op75:""},"Exclude installed modules",-1)])),_:1},8,["modelValue"]),e("div",st,[d.value||h.value?(o(),p("span",lt,g(b.value?.length)+" matched · ",1)):v("",!0),e("span",null,g(j(x)?.length)+" modules in total",1)])])]),_:1},8,["search"]),e("div",at,[s(j(xe),{class:"scroller",items:b.value,"item-size":200,"key-field":"name"},{default:r(({item:I})=>[s(te,{item:I,onStart:n[3]||(n[3]=L=>i("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),rt={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ut={capitalize:""},dt={op50:""},mt={flex:"~ gap-3",mt2:"","justify-end":""},pt=P({__name:"ModuleActionDialog",setup(N){const f=le(),i=G(),x={};return(m,t)=>{const l=V,u=be,h=ke,w=he,c=ie,d=S,C=ae;return o(),$(j(Q),null,{default:r(({resolve:b,args:a})=>[s(C,{"model-value":!0,onClose:n=>b(!1)},{default:r(()=>[s(l,{mod:x,info:a[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",rt,[e("h2",{"text-xl":"",class:U(a[2]==="install"?"text-primary":"text-red")},[e("span",ut,g(a[2]),1),t[1]||(t[1]=k()),e("code",null,g(a[0].name),1),t[2]||(t[2]=k("? "))],2),t[7]||(t[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(u,{code:a[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",dt,[t[3]||(t[3]=k(" Then your ")),s(h,{role:"button",n:"primary",underline:"",onClick:t[0]||(t[0]=n=>j(i)(j(f)?._nuxtConfigFile)),textContent:"Nuxt config"}),t[4]||(t[4]=k(" will be updated as: "))]),s(w,{from:a[1].configOriginal,to:a[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),t[8]||(t[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),k(". ")],-1)),e("div",mt,[s(c,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:r(()=>t[5]||(t[5]=[k(" Please make sure to backup your project first. ")])),_:1}),s(d,{onClick:n=>b(!1)},{default:r(()=>t[6]||(t[6]=[k(" Cancel ")])),_:2},1032,["onClick"]),s(d,{n:"solid",capitalize:"",class:U(a[2]==="install"?"n-primary":"n-red"),onClick:n=>b(!0)},{default:r(()=>[k(g(a[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),ct={class:"markdown-body"},_t={__name:"modules",setup(N,{expose:f}){return f({frontmatter:{}}),(x,m)=>(o(),p("div",ct,m[0]||(m[0]=[e("h1",null,"Modules",-1),e("p",null,[k("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),e("code",null,"nuxt.config"),k(".")],-1),e("p",null,[k("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),k(" or install them directly inside the DevTools.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},ft={"h-full":"","w-full":"","of-auto":""},vt={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},gt=["src","alt"],xt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},bt={op75:""},kt={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},ht="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Vt=P({__name:"modules",setup(N){const f=D(!1),i=F(),x=K(),m=M(()=>i.value.filter(l=>l.isPackageModule)),t=M(()=>i.value.filter(l=>!l.isPackageModule));return re(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{f.value=!0}}]),(l,u)=>{const h=Xe,w=H,c=O,d=ce,C=S,b=it,a=pt,n=_t,y=ye;return o(),p(B,null,[e("div",ft,[s(d,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${m.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(m.value,_=>(o(),$(h,{key:_.name,mod:_},null,8,["mod"]))),128)),(o(!0),p(B,null,A("processInstallingModules"in l?l.processInstallingModules:j(R),_=>(o(),$(c,{key:_.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:z=>x.value=_.processId},{default:r(()=>[s(w,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:r(()=>[e("div",vt,[e("img",{src:ht+_.info.icon,alt:_.info.name,ma:""},null,8,gt),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",xt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",bt,"Installing "+g(_.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(w,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:u[0]||(u[0]=_=>f.value=!0)},{default:r(()=>u[6]||(u[6]=[e("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),e("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1)])),_:1})]),_:1},8,["description"]),t.value.length?(o(),$(d,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${t.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(t.value,_=>(o(),p(B,{key:_.meta?.name||_.entryPath},[_.meta?.name||_.entryPath?(o(),$(h,{key:0,mod:_},null,8,["mod"])):v("",!0)],64))),128))]),_:1},8,["description"])):v("",!0),s(Y,{name:"fade-in"},{default:r(()=>[f.value?(o(),p("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=_=>f.value=!1)})):v("",!0)]),_:1}),s(Y,{name:"slide-in"},{default:r(()=>[f.value?(o(),p("div",kt,[s(C,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=_=>f.value=!1)}),s(b,{onClose:u[3]||(u[3]=_=>f.value=!1)})])):v("",!0)]),_:1}),s(a)]),s(y,null,{default:r(()=>[s(n)]),_:1})],64)}}});export{Vt as default};
1
+ import{_ as oe}from"./filepath-item.vue-lxwmjgzn.js";import{L as G,V as H,e as U,E as K,s as Q,_ as O,r as q,m as E,B as ne,a9 as R,aa as W,O as se,K as le,y as ae,A as ie,v as re}from"./oywnus8r.js";import{_ as ue,u as V,a as de}from"./state-modules-hnuz66f5.js";import{_ as me}from"./duration-display.vue-oa6j0va3.js";import{q as P,u as M,R as $,a0 as o,a1 as r,P as e,S as T,O as p,Q as v,a8 as k,a7 as g,v as j,W as L,a2 as s,F as B,ad as A,ak as pe,k as D,L as Y}from"./vendor/json-editor-vue-ddl3r0b2.js";import{_ as ce}from"./nsection-block-bwzu1176.js";import{_ as _e}from"./nicon-title.vue-ewg1179r.js";import{_ as J}from"./ndropdown.vue-lisujvwi.js";import{_ as fe}from"./ncheckbox.vue-ns9g273q.js";import{_ as ve}from"./nnavbar.vue-jarkjgm5.js";import{_ as ge}from"./nbadge-f29cbhae.js";import{s as xe}from"./vue-virtual-scroller.esm-dyo77aio.js";import{_ as be}from"./ncode-block.vue-fo8ld4g6.js";import{_ as ke}from"./nlink.vue-hz7sjbml.js";import{_ as he}from"./code-diff.vue-f6qrbepb.js";import{_ as ye}from"./help-fab.vue-nvotn2uf.js";import"./vendor/unocss-jhada3qg.js";import"./vendor/shiki-jv02kgzv.js";import"./client-j9xalwnm.js";const $e={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},we={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},Ce={key:2},Ie={key:1,flex:"~ gap-2",title:"Documentation"},Me={key:2,flex:"~ gap-2"},Ne={key:0,flex:"~ gap-4 items-center"},Be={flex:"~ gap-2 items-center",op50:""},je={flex:"~ gap-2 items-center",op50:""},Pe={key:1},De={flex:"~ col","items-end":""},Ae={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Te=["src","alt"],Le={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Oe=["src"],Se={flex:"","justify-end":""},ze="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Ue="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",Ve="https://github.com/",Fe="https://www.npmjs.com/package/",F=P({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(N){const f=N,i=M(()=>({...f.mod?.meta,...f.mod,...f.info})),x=G();return(m,t)=>{const l=U,u=K,h=me,w=H;return o(),$(w,{p4:"",flex:"~ gap2"},{default:r(()=>[e("div",$e,[T(m.$slots,"main",{},()=>[e("div",we,[m.mod.isPackageModule?(o(),$(l,{key:0,to:Fe+(i.value.npm||i.value.name),target:"_blank",hover:"underline text-primary"},{default:r(()=>[k(g(i.value.name),1)]),_:1},8,["to"])):m.mod.entryPath?(o(),p("button",{key:1,role:"button",hover:"underline text-primary",onClick:t[0]||(t[0]=c=>j(x)(m.mod.entryPath))},g(i.value.name),1)):(o(),p("span",Ce,g(i.value.name),1)),T(m.$slots,"badge")]),i.value.description?(o(),p("div",{key:0,class:L(m.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},g(i.value.description),3)):v("",!0),t[3]||(t[3]=e("div",{"flex-auto":""},null,-1)),i.value.website?(o(),p("div",Ie,[t[1]||(t[1]=e("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):v("",!0),i.value.github?(o(),p("div",Me,[t[2]||(t[2]=e("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),s(l,{to:i.value.github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[k(g(i.value.github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):v("",!0)]),T(m.$slots,"items"),i.value.stats?(o(),p("div",Ne,[e("div",Be,[s(u,{icon:"carbon-star","text-lg":""}),e("span",null,g(i.value.stats.stars),1)]),e("div",je,[s(u,{icon:"carbon-download","text-lg":""}),e("span",null,g(i.value.stats.downloads),1)])])):v("",!0),m.mod.timings?.setup?(o(),p("div",Pe,[s(h,{title:"Module Setup Time",flex:"~ items-center",duration:m.mod.timings.setup*1e3,factor:.5},{before:r(()=>[s(u,{icon:"carbon-time",mr2:"","text-lg":"",op50:""})]),_:1},8,["duration"])])):v("",!0)]),e("div",De,[i.value.icon||m.mod.isPackageModule?(o(),p("div",Ae,[i.value.icon?(o(),p("img",{key:0,src:ze+i.value.icon,alt:m.mod.name,ma:""},null,8,Te)):v("",!0),t[4]||(t[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):v("",!0),i.value.maintainers?.length&&m.maintainers?(o(),p("div",Le,[(o(!0),p(B,null,A(i.value.maintainers,c=>(o(),$(l,{key:c.name,target:"_blank",to:Ve+c.github,title:c.name},{default:r(()=>[e("img",{src:Ue+c.github,"h-6":"","w-6":"","rounded-full":""},null,8,Oe)]),_:2},1032,["to","title"]))),128))])):v("",!0),m.$slots.actions?(o(),p(B,{key:2},[t[5]||(t[5]=e("div",{"flex-auto":""},null,-1)),e("div",Se,[T(m.$slots,"actions")])],64)):v("",!0)])]),_:3})}}}),qe={key:0,flex:"~ gap-2",title:"Open on filesystem"},Ee={key:1,"mx--2":""},Ye=["onClick"],Ge={key:2,"mx--2":""},He=["onClick"],Ke={op50:""},Qe={"text-green":""},Re={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},We={"text-sm":"",op50:""},Je=P({__name:"ModuleItem",props:{mod:{}},setup(N){const f=N,i=M(()=>f.mod.info),x=M(()=>({...f.mod?.meta,...f.mod,...i.value})),m=Q();return(t,l)=>{const u=oe,h=U,w=ue,c=F;return o(),$(c,{mod:t.mod,info:i.value},{items:r(()=>[t.mod.entryPath?(o(),p("div",qe,[l[0]||(l[0]=e("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1)),s(u,{filepath:t.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):v("",!0),x.value.npm?(o(),$(w,{key:x.value.npm,"package-name":x.value.npm,options:{dev:!0}},{default:r(({info:d,update:C,state:b,id:a,restart:n})=>[b==="running"?(o(),$(h,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:a?"/modules/terminals":void 0,onClick:y=>a?m.value=a:void 0},{default:r(()=>l[1]||(l[1]=[e("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),e("code",{"text-sm":"",op50:""},"Upgrading...",-1)])),_:2},1032,["to","onClick"])):b==="updated"?(o(),p("div",Ee,[e("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:n},l[2]||(l[2]=[e("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),e("code",{"text-xs":""},"Update installed, click to restart",-1)]),8,Ye)])):d?.needsUpdate?(o(),p("div",Ge,[e("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:y=>C()},[l[3]||(l[3]=e("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),e("code",Ke,"v"+g(d.current),1),l[4]||(l[4]=e("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),e("code",Qe,"v"+g(d.latest),1)],8,He)])):d?.latest?(o(),p("div",Re,[l[5]||(l[5]=e("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),e("code",We,"v"+g(d.current),1)])):v("",!0)]),_:1},8,["package-name"])):v("",!0)]),_:1},8,["mod","info"])}}}),Xe=P({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(N,{emit:f}){const i=N,x=f,m=V(),t=M(()=>m.value.find(c=>c.name===i.item.npm)),l=M(()=>t.value&&t.value.isPackageModule),u=M(()=>t.value&&t.value.isPackageModule&&t.value.isUninstallable);async function h(c,d){const C=d==="install"?q.installNuxtModule:q.uninstallNuxtModule,b=await C(await E(),c.npm,!0);ne(`modules:${d}`,{moduleName:c.npm}),b.commands&&await R.start(c,b,d)&&(W.value.push({name:c.npm,info:c,processId:b.processId}),x("start"),await C(await E(),c.npm,!1))}const w={};return(c,d)=>{const C=ge,b=O,a=J,n=F;return o(),$(n,{mod:w,role:l.value?"":"button",info:c.item,mb2:"","h-full":"",class:L(l.value?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:d[1]||(d[1]=y=>l.value?null:h(c.item,"install"))},pe({_:2},[l.value?{name:"badge",fn:r(()=>[s(C,{n:"green",textContent:"Installed"}),u.value?(o(),$(a,{key:0,n:"sm green"},{trigger:r(({click:y})=>[s(b,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:_=>y()},null,8,["onClick"])]),default:r(()=>[s(b,{icon:"carbon-trash-can",n:"red",onClick:d[0]||(d[0]=y=>h(c.item,"uninstall"))},{default:r(()=>d[2]||(d[2]=[k(" Uninstall ")])),_:1})]),_:1})):v("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),Ze={"h-full":"",flex:"~ col gap-4"},et={flex:"~ items-center"},tt={flex:"~ col","w-30":"","of-auto":""},ot={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},nt={flex:"~ items-center gap-2"},st={flex:"~ gap1","text-sm":"",op50:""},lt={key:0},at={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},it=P({__name:"ModuleInstallList",emits:["close"],setup(N,{emit:f}){const i=f,x=de(),m=V(),t=["downloads","stars","updated","created"],l=D(!1),u=D(t[0]),h=D(!0),w={downloads:(a,n)=>a.stats.downloads-n.stats.downloads,stars:(a,n)=>a.stats.stars-n.stats.stars,created:(a,n)=>a.stats.createdAt-n.stats.createdAt,updated:(a,n)=>a.stats.publishedAt-n.stats.publishedAt},c=M(()=>x.value?.toSorted((a,n)=>w[u.value](a,n)*(l.value?1:-1))),d=D(""),C=M(()=>new se(x.value||[],{keys:["name","description","npm","category"],sortFn:(a,n)=>{const y=x.value?.[a.idx],_=x.value?.[n.idx];return y&&_?w[u.value](y,_)*(l.value?1:-1):a.score-n.score},threshold:.2})),b=M(()=>{let a=c.value;return h.value&&(a=(a||[]).filter(n=>!m.value.some(y=>y.name===n.name))),d.value?C.value.search(d.value).map(n=>n.item).filter(n=>a?.includes(n)):a});return(a,n)=>{const y=_e,_=O,S=K,X=J,Z=fe,ee=ve,te=Xe;return o(),p("div",Ze,[s(y,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),s(ee,{search:d.value,"onUpdate:search":n[2]||(n[2]=I=>d.value=I),"no-padding":"","px-6":"","pb-3":"","pt-2":""},{actions:r(()=>[s(X,{direction:"end",n:"sm primary"},{trigger:r(({click:I})=>[e("div",et,[s(_,{icon:l.value?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:n[0]||(n[0]=z=>l.value=!l.value)},null,8,["icon"]),s(_,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:z=>I()},{default:r(()=>[k(g(u.value)+" ",1),s(S,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:r(()=>[e("div",tt,[(o(),p(B,null,A(t,I=>s(_,{key:I,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:z=>u.value=I},{default:r(()=>[e("span",ot,[k(g(I)+" ",1),u.value===I?(o(),$(S,{key:0,icon:"carbon:checkmark"})):v("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),default:r(()=>[e("div",nt,[s(Z,{modelValue:h.value,"onUpdate:modelValue":n[1]||(n[1]=I=>h.value=I),n:"primary md"},{default:r(()=>n[4]||(n[4]=[e("span",{op75:""},"Exclude installed modules",-1)])),_:1},8,["modelValue"]),e("div",st,[d.value||h.value?(o(),p("span",lt,g(b.value?.length)+" matched · ",1)):v("",!0),e("span",null,g(j(x)?.length)+" modules in total",1)])])]),_:1},8,["search"]),e("div",at,[s(j(xe),{class:"scroller",items:b.value,"item-size":200,"key-field":"name"},{default:r(({item:I})=>[s(te,{item:I,onStart:n[3]||(n[3]=z=>i("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),rt={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ut={capitalize:""},dt={op50:""},mt={flex:"~ gap-3",mt2:"","justify-end":""},pt=P({__name:"ModuleActionDialog",setup(N){const f=le(),i=G(),x={};return(m,t)=>{const l=F,u=be,h=ke,w=he,c=ie,d=O,C=ae;return o(),$(j(R),null,{default:r(({resolve:b,args:a})=>[s(C,{"model-value":!0,onClose:n=>b(!1)},{default:r(()=>[s(l,{mod:x,info:a[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),e("div",rt,[e("h2",{"text-xl":"",class:L(a[2]==="install"?"text-primary":"text-red")},[e("span",ut,g(a[2]),1),t[1]||(t[1]=k()),e("code",null,g(a[0].name),1),t[2]||(t[2]=k("? "))],2),t[7]||(t[7]=e("p",{op50:""}," The following command will be executed in your terminal: ",-1)),s(u,{code:a[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),e("p",dt,[t[3]||(t[3]=k(" Then your ")),s(h,{role:"button",n:"primary",underline:"",onClick:t[0]||(t[0]=n=>j(i)(j(f)?._nuxtConfigFile)),textContent:"Nuxt config"}),t[4]||(t[4]=k(" will be updated as: "))]),s(w,{from:a[1].configOriginal,to:a[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),t[8]||(t[8]=e("p",null,[e("span",{op50:""},"After that, Nuxt will "),e("span",{"text-orange":""},"restart automatically"),k(". ")],-1)),e("div",mt,[s(c,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:r(()=>t[5]||(t[5]=[k(" Please make sure to backup your project first. ")])),_:1}),s(d,{onClick:n=>b(!1)},{default:r(()=>t[6]||(t[6]=[k(" Cancel ")])),_:2},1032,["onClick"]),s(d,{n:"solid",capitalize:"",class:L(a[2]==="install"?"n-primary":"n-red"),onClick:n=>b(!0)},{default:r(()=>[k(g(a[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),ct={class:"markdown-body"},_t={__name:"modules",setup(N,{expose:f}){return f({frontmatter:{}}),(x,m)=>(o(),p("div",ct,m[0]||(m[0]=[e("h1",null,"Modules",-1),e("p",null,[k("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),e("code",null,"nuxt.config"),k(".")],-1),e("p",null,[k("You can explore the list of modules on "),e("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),k(" or install them directly inside the DevTools.")],-1),e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},ft={"h-full":"","w-full":"","of-auto":""},vt={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},gt=["src","alt"],xt={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},bt={op75:""},kt={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},ht="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Ft=P({__name:"modules",setup(N){const f=D(!1),i=V(),x=Q(),m=M(()=>i.value.filter(l=>l.isPackageModule)),t=M(()=>i.value.filter(l=>!l.isPackageModule));return re(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{f.value=!0}}]),(l,u)=>{const h=Je,w=H,c=U,d=ce,C=O,b=it,a=pt,n=_t,y=ye;return o(),p(B,null,[e("div",ft,[s(d,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${m.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(m.value,_=>(o(),$(h,{key:_.name,mod:_},null,8,["mod"]))),128)),(o(!0),p(B,null,A("processInstallingModules"in l?l.processInstallingModules:j(W),_=>(o(),$(c,{key:_.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:S=>x.value=_.processId},{default:r(()=>[s(w,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:r(()=>[e("div",vt,[e("img",{src:ht+_.info.icon,alt:_.info.name,ma:""},null,8,gt),u[4]||(u[4]=e("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),e("div",xt,[u[5]||(u[5]=e("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),e("span",bt,"Installing "+g(_.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),s(w,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:u[0]||(u[0]=_=>f.value=!0)},{default:r(()=>u[6]||(u[6]=[e("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),e("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1)])),_:1})]),_:1},8,["description"]),t.value.length?(o(),$(d,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${t.value.length}`},{default:r(()=>[(o(!0),p(B,null,A(t.value,_=>(o(),p(B,{key:_.meta?.name||_.entryPath},[_.meta?.name||_.entryPath?(o(),$(h,{key:0,mod:_},null,8,["mod"])):v("",!0)],64))),128))]),_:1},8,["description"])):v("",!0),s(Y,{name:"fade-in"},{default:r(()=>[f.value?(o(),p("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=_=>f.value=!1)})):v("",!0)]),_:1}),s(Y,{name:"slide-in"},{default:r(()=>[f.value?(o(),p("div",kt,[s(C,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=_=>f.value=!1)}),s(b,{onClose:u[3]||(u[3]=_=>f.value=!1)})])):v("",!0)]),_:1}),s(a)]),s(y,null,{default:r(()=>[s(n)]),_:1})],64)}}});export{Ft as default};
@@ -0,0 +1 @@
1
+ import{b as o}from"./oywnus8r.js";import{O as n,a0 as s,S as t}from"./vendor/json-editor-vue-ddl3r0b2.js";const r={},c={class:"n-badge"};function _(e,a){return s(),n("span",c,[t(e.$slots,"default")])}const m=o(r,[["render",_]]);export{m as _};
@@ -0,0 +1 @@
1
+ import{C as i,E as r}from"./oywnus8r.js";import{q as p,O as b,a0 as u,a9 as h,P as n,az as m,v as o,V as k,j as f,a2 as v,S as _,W as x}from"./vendor/json-editor-vue-ddl3r0b2.js";const V=["checked","disabled"],y=["disabled"],B={class:"n-checkbox-box n-checked:n-checkbox-box-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},z=p({__name:"NCheckbox",props:{modelValue:{type:[Boolean,null],default:!1},disabled:{type:Boolean,default:!1}},setup(t,{emit:c}){const e=i(t,"modelValue",c,{passive:!0});return(a,s)=>{const d=r;return u(),b("label",{class:"n-checkbox hover:n-checkbox-hover select-none items-center n-disabled:n-disabled",checked:o(e)||null,disabled:a.disabled||null},[h(n("input",{"onUpdate:modelValue":s[0]||(s[0]=l=>f(e)?e.value=l:null),type:"checkbox",class:"peer absolute op0",disabled:a.disabled,onKeypress:s[1]||(s[1]=k(l=>e.value=!o(e),["enter"]))},null,40,y),[[m,o(e)]]),n("span",B,[v(d,{class:"n-checkbox-icon scale-0 transform op0 n-transition n-checked:scale-100 n-checked:op100"})]),n("span",{class:x([o(e)?"":"op50","n-transition"])},[_(a.$slots,"default")],2)],8,V)}}});export{z as _};
@@ -1,2 +1,2 @@
1
- import{d as g}from"./client-gsjyqe32.js";import{p as v,q as d,n as C,P as o,a1 as s,X as c,Q as t,F as i,ae as _,a8 as y}from"./vendor/json-editor-vue-llkaejaf.js";const B=["innerHTML"],h=["textContent"],b=v({__name:"NCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},inline:{type:Boolean},transformRendered:{}},emits:["loaded"],setup(p,{emit:u}){const e=p,m=u,l=d(()=>{const n=e.lang==="text"?{code:e.code,supported:!1}:g.value?.devtools.renderCodeHighlight(e.code,e.lang)||{code:e.code,supported:!1};return n.supported&&e.transformRendered&&(n.code=e.transformRendered(n.code)),n.supported&&C(()=>m("loaded")),n}),r=d(()=>["n-code-block shiki",e.lines&&!e.inline?"n-code-block-lines":""]);return(n,a)=>n.lang&&l.value.supported?(s(),o("pre",{key:0,class:c(r.value)},[t("code",{innerHTML:l.value.code},null,8,B)],2)):(s(),o("pre",{key:1,class:c(r.value)},[t("code",null,[(s(!0),o(i,null,_(n.code.split(`
1
+ import{d as g}from"./client-j9xalwnm.js";import{q as v,u as d,p as C,O as o,a0 as s,W as c,P as t,F as i,ad as _,a7 as y}from"./vendor/json-editor-vue-ddl3r0b2.js";const B=["innerHTML"],h=["textContent"],b=v({__name:"NCodeBlock",props:{code:{},lang:{},lines:{type:Boolean,default:!0},inline:{type:Boolean},transformRendered:{}},emits:["loaded"],setup(p,{emit:u}){const e=p,m=u,l=d(()=>{const n=e.lang==="text"?{code:e.code,supported:!1}:g.value?.devtools.renderCodeHighlight(e.code,e.lang)||{code:e.code,supported:!1};return n.supported&&e.transformRendered&&(n.code=e.transformRendered(n.code)),n.supported&&C(()=>m("loaded")),n}),r=d(()=>["n-code-block shiki",e.lines&&!e.inline?"n-code-block-lines":""]);return(n,a)=>n.lang&&l.value.supported?(s(),o("pre",{key:0,class:c(r.value)},[t("code",{innerHTML:l.value.code},null,8,B)],2)):(s(),o("pre",{key:1,class:c(r.value)},[t("code",null,[(s(!0),o(i,null,_(n.code.split(`
2
2
  `),(f,k)=>(s(),o(i,{key:k},[t("span",{class:"line",textContent:y(f)},null,8,h),a[0]||(a[0]=t("br",null,null,-1))],64))),128))])],2))}});export{b as _};
@@ -1 +1 @@
1
- import{bj as n,aa as b,_ as g}from"./hyzu9r3l.js";import{p as h,f as y,S as v,a1 as l,a2 as B,P as C,R as k,a4 as i,u as o,a3 as _,Q as $,U as w,M as V}from"./vendor/json-editor-vue-llkaejaf.js";const x=["border"],N={relative:"","h-full":"","w-full":"","of-auto":""},P=h({__name:"NDrawer",props:{modelValue:{type:Boolean},top:{},left:{},autoClose:{type:Boolean},transition:{default:"right"}},emits:["close"],setup(m,{emit:f}){const e=m,c=f,a=y(),{height:u}=n(()=>e.top,void 0,{box:"border-box"}),s=typeof e.left=="string"&&e.left.startsWith("#")?document.querySelector(e.left)?.getBoundingClientRect().width:n(()=>e.left,void 0,{box:"border-box"}).width;b(a,()=>{e.modelValue&&e.autoClose&&c("close")},{ignore:["a","button","summary",'[role="dialog"]']});const d={right:{"enter-from-class":"transform translate-x-1/1","leave-to-class":"transform translate-x-1/1"},top:{"enter-from-class":"transform translate-y--1/1","leave-to-class":"transform translate-y--1/1"},bottom:{"enter-from-class":"transform translate-y-1/1","leave-to-class":"transform translate-y-1/1"}};return(t,r)=>{const p=g;return l(),v(V,i(d[t.transition],{"enter-active-class":"duration-200 ease-in","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100"}),{default:B(()=>[t.modelValue?(l(),C("div",i({key:0,ref_key:"el",ref:a,border:`${t.transition==="right"?"l":t.transition==="bottom"?"t":"b"} base`,flex:"~ col gap-1",class:{"right-0":t.transition==="right"||t.transition==="bottom"},absolute:"","bottom-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","n-glass-effect":"",style:{top:t.transition==="bottom"?"auto":`${o(u)}px`,left:t.transition==="right"&&!o(s)?"auto":`${o(s)}px`}},t.$attrs),[_(p,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",border:!1,onClick:r[0]||(r[0]=z=>t.$emit("close"))}),$("div",N,[w(t.$slots,"default")])],16,x)):k("",!0)]),_:3},16)}}});export{P as _};
1
+ import{bk as n,ab as b,_ as g}from"./oywnus8r.js";import{q as h,k as y,R as v,a0 as l,a1 as k,O as B,Q as C,a3 as i,v as o,a2 as _,P as $,S as w,L as V}from"./vendor/json-editor-vue-ddl3r0b2.js";const x=["border"],N={relative:"","h-full":"","w-full":"","of-auto":""},E=h({__name:"NDrawer",props:{modelValue:{type:Boolean},top:{},left:{},autoClose:{type:Boolean},transition:{default:"right"}},emits:["close"],setup(m,{emit:c}){const e=m,f=c,a=y(),{height:u}=n(()=>e.top,void 0,{box:"border-box"}),s=typeof e.left=="string"&&e.left.startsWith("#")?document.querySelector(e.left)?.getBoundingClientRect().width:n(()=>e.left,void 0,{box:"border-box"}).width;b(a,()=>{e.modelValue&&e.autoClose&&f("close")},{ignore:["a","button","summary",'[role="dialog"]']});const d={right:{"enter-from-class":"transform translate-x-1/1","leave-to-class":"transform translate-x-1/1"},top:{"enter-from-class":"transform translate-y--1/1","leave-to-class":"transform translate-y--1/1"},bottom:{"enter-from-class":"transform translate-y-1/1","leave-to-class":"transform translate-y-1/1"}};return(t,r)=>{const p=g;return l(),v(V,i(d[t.transition],{"enter-active-class":"duration-200 ease-in","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100"}),{default:k(()=>[t.modelValue?(l(),B("div",i({key:0,ref_key:"el",ref:a,border:`${t.transition==="right"?"l":t.transition==="bottom"?"t":"b"} base`,flex:"~ col gap-1",class:{"right-0":t.transition==="right"||t.transition==="bottom"},absolute:"","bottom-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","n-glass-effect":"",style:{top:t.transition==="bottom"?"auto":`${o(u)}px`,left:t.transition==="right"&&!o(s)?"auto":`${o(s)}px`}},t.$attrs),[_(p,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",border:!1,onClick:r[0]||(r[0]=z=>t.$emit("close"))}),$("div",N,[w(t.$slots,"default")])],16,x)):C("",!0)]),_:3},16)}}});export{E as _};
@@ -1 +1 @@
1
- import{C as i,aa as p,_ as u}from"./hyzu9r3l.js";import{p as m,f as c,P as f,a1 as v,U as n,Q as _,a3 as b,u as t,a2 as k,a9 as C,X as V}from"./vendor/json-editor-vue-llkaejaf.js";const $=m({__name:"NDropdown",props:{modelValue:{type:Boolean},direction:{default:"start"}},setup(r,{emit:l}){const e=i(r,"modelValue",l,{passive:!0}),s=c();return p(s,()=>{e.value=!1}),(a,o)=>{const d=u;return v(),f("div",{ref_key:"el",ref:s,class:"relative"},[n(a.$slots,"trigger",{enabled:t(e),click:()=>e.value=!t(e)},()=>[b(d,{onClick:o[0]||(o[0]=g=>e.value=!t(e))},{default:k(()=>o[1]||(o[1]=[C(" Dropdown ")])),_:1})]),_("div",{class:V(["absolute z-10 border n-border-base rounded shadow n-transition n-bg-base",[t(e)?"op-100":"op0 pointer-events-none -translate-y-1",a.direction==="end"?"right-0":"left-0"]])},[n(a.$slots,"default")],2)],512)}}});export{$ as _};
1
+ import{C as i,ab as p,_ as u}from"./oywnus8r.js";import{q as m,k as c,O as f,a0 as v,S as n,P as b,a2 as _,v as t,a1 as k,a8 as C,W as V}from"./vendor/json-editor-vue-ddl3r0b2.js";const $=m({__name:"NDropdown",props:{modelValue:{type:Boolean},direction:{default:"start"}},setup(r,{emit:l}){const e=i(r,"modelValue",l,{passive:!0}),s=c();return p(s,()=>{e.value=!1}),(a,o)=>{const d=u;return v(),f("div",{ref_key:"el",ref:s,class:"relative"},[n(a.$slots,"trigger",{enabled:t(e),click:()=>e.value=!t(e)},()=>[_(d,{onClick:o[0]||(o[0]=g=>e.value=!t(e))},{default:k(()=>o[1]||(o[1]=[C(" Dropdown ")])),_:1})]),b("div",{class:V(["absolute z-10 border n-border-base rounded shadow n-transition n-bg-base",[t(e)?"op-100":"op0 pointer-events-none -translate-y-1",a.direction==="end"?"right-0":"left-0"]])},[n(a.$slots,"default")],2)],512)}}});export{$ as _};
@@ -1 +1 @@
1
- import{p as o,P as s,a1 as a,R as t,U as n,X as r,Q as l,a8 as i}from"./vendor/json-editor-vue-llkaejaf.js";const c={flex:"~ gap-3","items-center":""},u=o({__name:"NIconTitle",props:{icon:{},text:{}},setup(p){return(e,m)=>(a(),s("div",c,[e.icon?(a(),s("div",{key:0,class:r(e.icon)},null,2)):t("",!0),n(e.$slots,"default",{},()=>[l("div",null,i(e.text),1)])]))}});export{u as _};
1
+ import{q as o,O as s,a0 as a,Q as t,S as n,W as r,P as l,a7 as i}from"./vendor/json-editor-vue-ddl3r0b2.js";const c={flex:"~ gap-3","items-center":""},u=o({__name:"NIconTitle",props:{icon:{},text:{}},setup(p){return(e,m)=>(a(),s("div",c,[e.icon?(a(),s("div",{key:0,class:r(e.icon)},null,2)):t("",!0),n(e.$slots,"default",{},()=>[l("div",null,i(e.text),1)])]))}});export{u as _};
@@ -1 +1 @@
1
- import{e as s}from"./hyzu9r3l.js";import{p as l,q as i,S as p,a1 as r,a4 as u,a2 as c,U as m,P as _,R as k}from"./vendor/json-editor-vue-llkaejaf.js";const d={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},v=l({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(a){const t=a,n=i(()=>t.href||t.to);return(e,f)=>{const o=s;return r(),p(o,u(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:c(()=>[m(e.$slots,"default"),n.value&&e.target==="_blank"?(r(),_("div",d)):k("",!0)]),_:3},16,["class"])}}});export{v as _};
1
+ import{e as s}from"./oywnus8r.js";import{q as l,u as i,R as p,a0 as r,a3 as u,a1 as c,S as m,O as _,Q as k}from"./vendor/json-editor-vue-ddl3r0b2.js";const d={key:0,"i-carbon:arrow-up-right":"","translate-y--1":"","text-xs":"",op50:""},v=l({__name:"NLink",props:{to:{},href:{},target:{},underline:{type:Boolean}},setup(a){const t=a,n=i(()=>t.href||t.to);return(e,f)=>{const o=s;return r(),p(o,u(n.value?{href:n.value,target:e.target,rel:e.target==="_blank"?"noopener noreferrer":null}:{},{class:{"n-link n-transition hover:n-link-hover n-link-base":n.value||e.underline}}),{default:c(()=>[m(e.$slots,"default"),n.value&&e.target==="_blank"?(r(),_("div",d)):k("",!0)]),_:3},16,["class"])}}});export{v as _};
@@ -0,0 +1 @@
1
+ import{d as o}from"./client-j9xalwnm.js";import{q as t,R as a,v as e,a0 as r,ac as s,a7 as d}from"./vendor/json-editor-vue-ddl3r0b2.js";const i=t({__name:"NMarkdown",props:{markdown:{},tag:{}},setup(m){return(n,l)=>n.markdown&&e(o)?.devtools?.renderMarkdown?(r(),a(s(n.tag||"span"),{key:0,class:"n-markdown",innerHTML:e(o).devtools.renderMarkdown(n.markdown)},null,8,["innerHTML"])):(r(),a(s(n.tag||"span"),{key:1,class:"n-markdown",textContent:d(n.markdown)},null,8,["textContent"]))}});export{i as _};
@@ -0,0 +1 @@
1
+ import{z as l}from"./oywnus8r.js";import{q as p,O as i,a0 as s,W as o,P as d,S as a,R as m,Q as u}from"./vendor/json-editor-vue-ddl3r0b2.js";const f={flex:"~ gap4 wrap","items-center":""},b=p({__name:"NNavbar",props:{search:{},noPadding:{type:Boolean}},emits:["update:search"],setup(h,{emit:n}){const r=n;function t(e){r("update:search",e.target.value)}return(e,v)=>{const c=l;return s(),i("div",{flex:"~ col gap2 wrap",border:"b base","flex-1":"","n-navbar-glass":"",class:o([{p4:!e.noPadding}])},[d("div",f,[a(e.$slots,"search",{},()=>[e.search!==void 0?(s(),m(c,{key:0,placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:o({"px-3 py-2":!e.noPadding}),value:e.search,onInput:t},null,8,["class","value"])):u("",!0)]),a(e.$slots,"actions")]),a(e.$slots,"default")],2)}}});export{b as _};
@@ -0,0 +1 @@
1
+ import{b as o}from"./oywnus8r.js";import{O as t,a0 as r,S as n}from"./vendor/json-editor-vue-ddl3r0b2.js";import"./vendor/unocss-jhada3qg.js";import"./vendor/shiki-jv02kgzv.js";const s={},a={relative:"","w-full":""};function c(e,l){return r(),t("div",a,[n(e.$slots,"default")])}const d=o(s,[["render",c]]);export{d as default};
@@ -0,0 +1 @@
1
+ import{C,E as $,b as B}from"./oywnus8r.js";import{_ as b}from"./nicon-title.vue-ewg1179r.js";import{q as h,O as l,a0 as n,F as u,P as s,v as r,Q as p,W as i,a2 as w,a1 as N,S as t,R as k,a8 as c,a7 as f,a9 as S,aa as _}from"./vendor/json-editor-vue-ddl3r0b2.js";const V=["open"],x={"text-base":""},T={key:0,"text-sm":"",op50:""},z=h({__name:"NSectionBlock",props:{icon:{},text:{},description:{},containerClass:{default:""},headerClass:{},collapse:{type:Boolean,default:!0},open:{type:Boolean,default:!0},padding:{type:[Boolean,String],default:!0}},setup(v){const a=C(v,"open",void 0,{passive:!0});function d(e){a.value=e.target.open}return(e,o)=>{const m=$,g=b;return n(),l(u,null,[s("details",{open:r(a),onToggle:o[0]||(o[0]=(...y)=>d&&d(...y))},[s("summary",{class:i(["cursor-pointer select-none hover:bg-active p4",e.collapse?"":"pointer-events-none"])},[w(g,{icon:e.icon,text:e.text,"text-xl":"",transition:"",class:i([r(a)?"op100":"op60",e.headerClass])},{default:N(()=>[s("div",null,[s("div",x,[t(e.$slots,"text",{},()=>[c(f(e.text),1)],!0)]),e.description||e.$slots.description?(n(),l("div",T,[t(e.$slots,"description",{},()=>[c(f(e.description),1)],!0)])):p("",!0)]),o[1]||(o[1]=s("div",{class:"flex-auto"},null,-1)),t(e.$slots,"actions",{},void 0,!0),e.collapse?(n(),k(m,{key:0,icon:"carbon-chevron-down",class:"chevron","cursor-pointer":"","place-self-start":"","text-base":"",op75:"",transition:"","duration-500":""})):p("",!0)]),_:3},8,["icon","text","class"])],2),o._lazyshow1||r(a)?(o._lazyshow1=!0,n(),l(u,null,[S(s("div",{class:i(["flex flex-col flex-gap2 pb6 pt2",typeof e.padding=="string"?e.padding:e.padding?"px4":""])},[t(e.$slots,"details",{},void 0,!0),s("div",{class:i([e.containerClass,"mt1"])},[t(e.$slots,"default",{},void 0,!0)],2),t(e.$slots,"footer",{},void 0,!0)],2),[[_,r(a)]])],64)):p("v-show-if",!0)],40,V),o[2]||(o[2]=s("div",{class:"x-divider"},null,-1))],64)}}}),q=B(z,[["__scopeId","data-v-bae9fa8d"]]);export{q as _};
@@ -0,0 +1 @@
1
+ import{q as m,O as l,a0 as t,F as c,ad as v,W as d,v as o,P as r,a9 as f,a7 as _,ao as g,j as y}from"./vendor/json-editor-vue-ddl3r0b2.js";import{C as V}from"./oywnus8r.js";const h={class:"n-select-tabs flex flex-inline flex-wrap items-center border n-border-base rounded n-bg-base"},x=["disabled","title"],B=["disabled","value","title"],F=m({__name:"NSelectTabs",props:{modelValue:{default:void 0},disabled:{type:Boolean,default:!1},options:{}},setup(i,{emit:b}){const a=V(i,"modelValue",b,{passive:!0});return(s,n)=>(t(),l("fieldset",h,[(t(!0),l(c,null,v(s.options,(e,p)=>(t(),l("label",{key:e.label,disabled:s.disabled,class:d(["relative n-border-base hover:n-bg-active px-0.5em py-0.1em",[p?"border-l n-border-base ml--1px":"",e.value===o(a)?"n-bg-active":""]]),title:e.label},[r("div",{class:d([e.value===o(a)?"":"op35"])},_(e.label),3),f(r("input",{"onUpdate:modelValue":n[0]||(n[0]=u=>y(a)?a.value=u:null),type:"radio",disabled:s.disabled,value:e.value,title:e.label,class:"absolute inset-0 op-0.1"},null,8,B),[[g,o(a)]])],10,x))),128))]))}});export{F as _};
@@ -1 +1 @@
1
- import{C as p,E as m}from"./hyzu9r3l.js";import{p as f,P as l,a1 as s,X as n,U as t,aa as b,S as h,R as d,aB as v,u as y,Q as B,C as V,a8 as k}from"./vendor/json-editor-vue-llkaejaf.js";const C=["disabled"],S={key:0,value:"",disabled:"",hidden:""},$=f({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(i,{emit:r}){const o=p(i,"modelValue",r,{passive:!0});return(e,a)=>{const c=m;return s(),l("div",{class:n(["n-select flex flex items-center border rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base",e.disabled?"border-gray:10":"n-border-base"])},[t(e.$slots,"icon",{},()=>[e.icon?(s(),h(c,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):d("",!0)]),b(B("select",{"onUpdate:modelValue":a[0]||(a[0]=u=>V(o)?o.value=u:null),disabled:e.disabled,class:n(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(s(),l("option",S,k(e.placeholder),1)):d("",!0),t(e.$slots,"default")],10,C),[[v,y(o)]])],2)}}});export{$ as _};
1
+ import{C as p,E as m}from"./oywnus8r.js";import{q as f,O as l,a0 as s,W as n,S as t,a9 as b,R as h,Q as d,aA as v,v as y,P as V,j as k,a7 as B}from"./vendor/json-editor-vue-ddl3r0b2.js";const S=["disabled"],g={key:0,value:"",disabled:"",hidden:""},$=f({__name:"NSelect",props:{modelValue:{default:void 0},placeholder:{default:""},icon:{default:""},disabled:{type:Boolean,default:!1}},setup(i,{emit:r}){const o=p(i,"modelValue",r,{passive:!0});return(e,a)=>{const c=m;return s(),l("div",{class:n(["n-select flex flex items-center border rounded px-2 py-1 focus-within:n-focus-base focus-within:border-context n-bg-base",e.disabled?"border-gray:10":"n-border-base"])},[t(e.$slots,"icon",{},()=>[e.icon?(s(),h(c,{key:0,icon:e.icon,class:"mr-0.4em text-1.1em op50"},null,8,["icon"])):d("",!0)]),b(V("select",{"onUpdate:modelValue":a[0]||(a[0]=u=>k(o)?o.value=u:null),disabled:e.disabled,class:n(["w-full flex-auto n-bg-base !outline-none",e.disabled?"appearance-none":""])},[e.placeholder?(s(),l("option",g,B(e.placeholder),1)):d("",!0),t(e.$slots,"default")],10,S),[[v,y(o)]])],2)}}});export{$ as _};
@@ -1 +1 @@
1
- import{p as n,ar as o,as as i,P as c,a1 as r,aa as u,Q as l,U as h,aA as b,W as p}from"./vendor/json-editor-vue-llkaejaf.js";const m=["checked","disabled"],v=["disabled"],k=n({__name:"NSwitch",props:o({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const s=i(t,"modelValue");return(a,e)=>(r(),c("label",{class:"n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled",checked:s.value||null,disabled:a.disabled||null},[u(l("input",{"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d),type:"checkbox",class:"peer absolute op0",disabled:a.disabled,onKeypress:e[1]||(e[1]=p(d=>s.value=!s.value,["enter"]))},null,40,v),[[b,s.value]]),e[2]||(e[2]=l("div",{class:"n-switch-slider n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},[l("div",{class:"n-checked:n-switch-thumb-checked n-switch-thumb n-transition"})],-1)),h(a.$slots,"default")],8,m))}});export{k as _};
1
+ import{q as n,aq as o,ar as i,O as c,a0 as r,a9 as u,P as l,S as h,az as b,V as p}from"./vendor/json-editor-vue-ddl3r0b2.js";const m=["checked","disabled"],v=["disabled"],k=n({__name:"NSwitch",props:o({disabled:{type:Boolean,default:!1}},{modelValue:{type:Boolean,default:!1},modelModifiers:{}}),emits:["update:modelValue"],setup(t){const s=i(t,"modelValue");return(a,e)=>(r(),c("label",{class:"n-switch n-switch-base hover:n-switch-hover n-disabled:n-disabled",checked:s.value||null,disabled:a.disabled||null},[u(l("input",{"onUpdate:modelValue":e[0]||(e[0]=d=>s.value=d),type:"checkbox",class:"peer absolute op0",disabled:a.disabled,onKeypress:e[1]||(e[1]=p(d=>s.value=!s.value,["enter"]))},null,40,v),[[b,s.value]]),e[2]||(e[2]=l("div",{class:"n-switch-slider n-checked:n-switch-slider-checked peer-active:n-active-base peer-focus-visible:n-focus-base n-transition"},[l("div",{class:"n-checked:n-switch-thumb-checked n-switch-thumb n-transition"})],-1)),h(a.$slots,"default")],8,m))}});export{k as _};