@nuxt/devtools 0.4.2 → 0.4.4

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 (158) hide show
  1. package/dist/chunks/module-main.mjs +37 -7
  2. package/dist/chunks/vscode.mjs +34 -9
  3. package/dist/client/200.html +2 -2
  4. package/dist/client/404.html +2 -2
  5. package/dist/client/__inspecting/index.html +2 -2
  6. package/dist/client/_nuxt/{Badge.1a9bc0c6.js → Badge.0c2ba14d.js} +1 -1
  7. package/dist/client/_nuxt/CodeSnippets.vue.246adc67.js +1 -0
  8. package/dist/client/_nuxt/ContentDoc.16c5984a.js +1 -0
  9. package/dist/client/_nuxt/ContentList.89c59146.js +1 -0
  10. package/dist/client/_nuxt/ContentNavigation.8a10a134.js +1 -0
  11. package/dist/client/_nuxt/ContentQuery.117fabd3.js +1 -0
  12. package/dist/client/_nuxt/{ContentRenderer.c8303114.js → ContentRenderer.914f3a38.js} +1 -1
  13. package/dist/client/_nuxt/{ContentRendererMarkdown.8c14695e.js → ContentRendererMarkdown.fd0df501.js} +1 -1
  14. package/dist/client/_nuxt/{ContentSlot.e091c2e8.js → ContentSlot.1f87440b.js} +1 -1
  15. package/dist/client/_nuxt/{DocumentDrivenEmpty.18123693.js → DocumentDrivenEmpty.3cbfc9a3.js} +1 -1
  16. package/dist/client/_nuxt/{DocumentDrivenNotFound.ed16cd57.js → DocumentDrivenNotFound.744ab959.js} +1 -1
  17. package/dist/client/_nuxt/DrawerRight.vue.0cd41196.js +1 -0
  18. package/dist/client/_nuxt/{DurationDisplay.vue.d882ace0.js → DurationDisplay.vue.0d861fe1.js} +1 -1
  19. package/dist/client/_nuxt/FilepathItem.vue.64e00c09.js +1 -0
  20. package/dist/client/_nuxt/{HelpFab.vue.36bf5011.js → HelpFab.vue.8f58b14e.js} +1 -1
  21. package/dist/client/_nuxt/{HelpImportsDirs.17a0339c.js → HelpImportsDirs.d13cb77d.js} +1 -1
  22. package/dist/client/_nuxt/{HelpImportsModules.0f656e6a.js → HelpImportsModules.0357ca53.js} +1 -1
  23. package/dist/client/_nuxt/HelpTip.5b4ceadc.js +1 -0
  24. package/dist/client/_nuxt/{HelpTip.vue.6ef6e4b5.js → HelpTip.vue.ea6b0f55.js} +1 -1
  25. package/dist/client/_nuxt/HelpTipPerformance.6ea06c19.js +1 -0
  26. package/dist/client/_nuxt/{LaunchPage.vue.af95bd8e.js → LaunchPage.vue.453bd3ae.js} +1 -1
  27. package/dist/client/_nuxt/{Markdown.84efaf14.js → Markdown.242967cb.js} +1 -1
  28. package/dist/client/_nuxt/NCheckbox.vue.93b3bec2.js +1 -0
  29. package/dist/client/_nuxt/NCodeBlock.vue.da19eaf4.js +2 -0
  30. package/dist/client/_nuxt/NIconButton.vue.b4278b36.js +1 -0
  31. package/dist/client/_nuxt/{NIconTitle.vue.dc1de8f8.js → NIconTitle.vue.321882c6.js} +1 -1
  32. package/dist/client/_nuxt/NMarkdown.vue.f4e94eed.js +1 -0
  33. package/dist/client/_nuxt/{NPanelGrids.e189e2d9.js → NPanelGrids.a0c996c3.js} +1 -1
  34. package/dist/client/_nuxt/{NSectionBlock.30b4b4e5.js → NSectionBlock.53fae3a6.js} +1 -1
  35. package/dist/client/_nuxt/{NSelect.vue.048cc70e.js → NSelect.vue.67595372.js} +1 -1
  36. package/dist/client/_nuxt/{NSwitch.vue.a0591f17.js → NSwitch.vue.8577379b.js} +1 -1
  37. package/dist/client/_nuxt/{NTextInput.vue.7b3bcc54.js → NTextInput.vue.c65cc1e4.js} +1 -1
  38. package/dist/client/_nuxt/NpmVersionCheck.vue.2810bb88.js +1 -0
  39. package/dist/client/_nuxt/{NuxtLogo.61744901.js → NuxtLogo.a6b7ebcc.js} +1 -1
  40. package/dist/client/_nuxt/{PanelLeftRight.vue.7fa691b7.js → PanelLeftRight.vue.a115e8d3.js} +1 -1
  41. package/dist/client/_nuxt/{ProseA.6eb4e9ef.js → ProseA.a471b674.js} +1 -1
  42. package/dist/client/_nuxt/{ProseBlockquote.6e543efa.js → ProseBlockquote.aa4b332f.js} +1 -1
  43. package/dist/client/_nuxt/{ProseCode.7f8e5e2a.js → ProseCode.090fc27a.js} +1 -1
  44. package/dist/client/_nuxt/{ProseCodeInline.14122108.js → ProseCodeInline.9997b45e.js} +1 -1
  45. package/dist/client/_nuxt/{ProseEm.6e89de46.js → ProseEm.c33573e1.js} +1 -1
  46. package/dist/client/_nuxt/{ProseH1.56d03309.js → ProseH1.5a84caee.js} +1 -1
  47. package/dist/client/_nuxt/{ProseH2.0416a5ef.js → ProseH2.e16731e2.js} +1 -1
  48. package/dist/client/_nuxt/{ProseH3.b0819372.js → ProseH3.7fd4f252.js} +1 -1
  49. package/dist/client/_nuxt/{ProseH4.cbaa5e84.js → ProseH4.727675aa.js} +1 -1
  50. package/dist/client/_nuxt/{ProseH5.aa49daf5.js → ProseH5.61f1037b.js} +1 -1
  51. package/dist/client/_nuxt/{ProseH6.443aeb57.js → ProseH6.6c1be9fd.js} +1 -1
  52. package/dist/client/_nuxt/{ProseHr.0680025e.js → ProseHr.f82e71cd.js} +1 -1
  53. package/dist/client/_nuxt/{ProseImg.ab27c28e.js → ProseImg.2f67758f.js} +1 -1
  54. package/dist/client/_nuxt/{ProseLi.682acad3.js → ProseLi.8dff4df1.js} +1 -1
  55. package/dist/client/_nuxt/{ProseOl.805d891c.js → ProseOl.4b9af098.js} +1 -1
  56. package/dist/client/_nuxt/{ProseP.4965522b.js → ProseP.03062ef9.js} +1 -1
  57. package/dist/client/_nuxt/{ProseStrong.8e2379e2.js → ProseStrong.e20e175b.js} +1 -1
  58. package/dist/client/_nuxt/{ProseTable.12e1b7dc.js → ProseTable.a819c70b.js} +1 -1
  59. package/dist/client/_nuxt/{ProseTbody.fa824c1d.js → ProseTbody.e0143690.js} +1 -1
  60. package/dist/client/_nuxt/{ProseTd.23a8ea21.js → ProseTd.da17cdf5.js} +1 -1
  61. package/dist/client/_nuxt/{ProseTh.5305dfa9.js → ProseTh.f1f2176c.js} +1 -1
  62. package/dist/client/_nuxt/{ProseThead.fe5d5f04.js → ProseThead.d8777ee6.js} +1 -1
  63. package/dist/client/_nuxt/{ProseTr.5aadde10.js → ProseTr.db9c20a2.js} +1 -1
  64. package/dist/client/_nuxt/{ProseUl.6bf488f1.js → ProseUl.613e2640.js} +1 -1
  65. package/dist/client/_nuxt/StateEditor.vue.d274c06c.js +1 -0
  66. package/dist/client/_nuxt/__inspecting.cb51497e.js +1 -0
  67. package/dist/client/_nuxt/assets.5336bd04.js +16 -0
  68. package/dist/client/_nuxt/client-db.a04e1eda.js +1 -0
  69. package/dist/client/_nuxt/components.a77abd82.js +1 -0
  70. package/dist/client/_nuxt/custom-_name_.d515746e.js +1 -0
  71. package/dist/client/_nuxt/{default.1fba4512.js → default.9728844a.js} +1 -1
  72. package/dist/client/_nuxt/editor.e9c81b63.js +1 -0
  73. package/dist/client/_nuxt/entry.c396e258.css +32 -0
  74. package/dist/client/_nuxt/{entry.75f7a625.js → entry.cefe3147.js} +107 -105
  75. package/dist/client/_nuxt/{error-404.47559066.js → error-404.8472f8a8.js} +1 -1
  76. package/dist/client/_nuxt/{error-500.d45b7d02.js → error-500.d5f3c7ae.js} +1 -1
  77. package/dist/client/_nuxt/{error-component.9d585a4e.js → error-component.b49d59e8.js} +2 -2
  78. package/dist/client/_nuxt/{full.d7db9e10.js → full.a88c8cad.js} +1 -1
  79. package/dist/client/_nuxt/{fuse.esm.852e9cca.js → fuse.esm.dae60b17.js} +1 -1
  80. package/dist/client/_nuxt/hooks.6fc67d6d.js +1 -0
  81. package/dist/client/_nuxt/imports.3b7c1f0c.js +1 -0
  82. package/dist/client/_nuxt/{index.b60cb3eb.js → index.687801a0.js} +1 -1
  83. package/dist/client/_nuxt/{middleware.20a031d7.js → middleware.901ba296.js} +1 -1
  84. package/dist/client/_nuxt/modules.0557ab86.js +1 -0
  85. package/dist/client/_nuxt/{none.cff39a5d.js → none.48e51402.js} +1 -1
  86. package/dist/client/_nuxt/{overview.00099d39.js → overview.a8b663e6.js} +1 -1
  87. package/dist/client/_nuxt/pages.0b2af782.js +1 -0
  88. package/dist/client/_nuxt/payload.043a33c6.js +1 -0
  89. package/dist/client/_nuxt/plugins.0227817e.js +1 -0
  90. package/dist/client/_nuxt/{preview.2db228fe.js → preview.485816aa.js} +1 -1
  91. package/dist/client/_nuxt/query.851664d2.js +1 -0
  92. package/dist/client/_nuxt/runtime-configs.06de9352.js +1 -0
  93. package/dist/client/_nuxt/server-routes.5d9da777.js +9 -0
  94. package/dist/client/_nuxt/settings.d459c303.js +1 -0
  95. package/dist/client/_nuxt/storage.8085fbb3.js +1 -0
  96. package/dist/client/_nuxt/terminals.163374b6.js +1 -0
  97. package/dist/client/_nuxt/{unocss-runtime.50f049ae.js → unocss-runtime.bf627221.js} +1 -1
  98. package/dist/client/_nuxt/{utils.e261e0da.js → utils.e5367885.js} +1 -1
  99. package/dist/client/_nuxt/virtual-files.2262e9f9.js +1 -0
  100. package/dist/client/api/_content/{cache.1682331104243.json → cache.1682819066298.json} +1 -1
  101. package/dist/client/index.html +2 -2
  102. package/dist/client/modules/assets/index.html +2 -2
  103. package/dist/client/modules/components/index.html +2 -2
  104. package/dist/client/modules/hooks/index.html +2 -2
  105. package/dist/client/modules/imports/index.html +2 -2
  106. package/dist/client/modules/middleware/index.html +2 -2
  107. package/dist/client/modules/modules/index.html +2 -2
  108. package/dist/client/modules/overview/index.html +2 -2
  109. package/dist/client/modules/pages/index.html +2 -2
  110. package/dist/client/modules/payload/index.html +2 -2
  111. package/dist/client/modules/plugins/index.html +2 -2
  112. package/dist/client/modules/runtime-configs/index.html +2 -2
  113. package/dist/client/modules/server-routes/index.html +2 -2
  114. package/dist/client/modules/storage/index.html +2 -2
  115. package/dist/client/modules/terminals/index.html +2 -2
  116. package/dist/client/modules/virtual-files/index.html +2 -2
  117. package/dist/client/settings/index.html +2 -2
  118. package/dist/module.json +1 -1
  119. package/dist/module.mjs +1 -1
  120. package/dist/runtime/plugins/view/Frame.vue +1 -1
  121. package/dist/shared/{devtools.95cf6023.mjs → devtools.23768dcf.mjs} +2 -0
  122. package/package.json +5 -4
  123. package/dist/client/_nuxt/CodeSnippets.vue.4e865162.js +0 -1
  124. package/dist/client/_nuxt/ContentDoc.a38c9cb6.js +0 -1
  125. package/dist/client/_nuxt/ContentList.25846cf2.js +0 -1
  126. package/dist/client/_nuxt/ContentNavigation.efe4f108.js +0 -1
  127. package/dist/client/_nuxt/ContentQuery.40c0b232.js +0 -1
  128. package/dist/client/_nuxt/DrawerRight.vue.c96ac35e.js +0 -1
  129. package/dist/client/_nuxt/FilepathItem.vue.41f1b77a.js +0 -1
  130. package/dist/client/_nuxt/HelpTip.10f8f400.js +0 -1
  131. package/dist/client/_nuxt/HelpTipPerformance.248cac4f.js +0 -1
  132. package/dist/client/_nuxt/NCheckbox.vue.c2fcd2eb.js +0 -1
  133. package/dist/client/_nuxt/NCodeBlock.vue.a30ec3a3.js +0 -2
  134. package/dist/client/_nuxt/NIconButton.vue.8bf5e423.js +0 -1
  135. package/dist/client/_nuxt/NMarkdown.vue.4afad80d.js +0 -1
  136. package/dist/client/_nuxt/NpmVersionCheck.vue.23de8792.js +0 -1
  137. package/dist/client/_nuxt/StateEditor.vue.bbfd7f46.js +0 -1
  138. package/dist/client/_nuxt/__inspecting.b1ac04d0.js +0 -1
  139. package/dist/client/_nuxt/assets.62b6a3a9.js +0 -16
  140. package/dist/client/_nuxt/client-db.651e30a1.js +0 -1
  141. package/dist/client/_nuxt/components.4599ac44.js +0 -1
  142. package/dist/client/_nuxt/custom-_name_.234877a5.js +0 -1
  143. package/dist/client/_nuxt/editor.32ed33ad.js +0 -1
  144. package/dist/client/_nuxt/entry.693dcb8a.css +0 -32
  145. package/dist/client/_nuxt/hooks.69c89849.js +0 -1
  146. package/dist/client/_nuxt/imports.b43589e2.js +0 -1
  147. package/dist/client/_nuxt/index.5afe666e.js +0 -3
  148. package/dist/client/_nuxt/modules.b5283ac0.js +0 -1
  149. package/dist/client/_nuxt/pages.b0dfe85b.js +0 -1
  150. package/dist/client/_nuxt/payload.a52d7c8b.js +0 -1
  151. package/dist/client/_nuxt/plugins.054a4753.js +0 -1
  152. package/dist/client/_nuxt/query.f8a40424.js +0 -1
  153. package/dist/client/_nuxt/runtime-configs.c3623b7d.js +0 -1
  154. package/dist/client/_nuxt/server-routes.aeb28db6.js +0 -9
  155. package/dist/client/_nuxt/settings.a515facb.js +0 -1
  156. package/dist/client/_nuxt/storage.4183ed8b.js +0 -1
  157. package/dist/client/_nuxt/terminals.f68d138a.js +0 -1
  158. package/dist/client/_nuxt/virtual-files.e3d4df65.js +0 -1
@@ -1 +1 @@
1
- import{k as a,y as n,o as r,e as l,m as e,t as s,l as d,w as c,M as p,H as f,af as m,ag as x}from"./entry.75f7a625.js";const h=t=>(m("data-v-bf1556d5"),t=t(),x(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=h(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],y=["textContent"],w={class:"w-full flex items-center justify-center"},S={__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 o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(k,v)=>{const i=f;return r(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,y),e("div",w,[d(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(S,[["__scopeId","data-v-bf1556d5"]]);export{z as default};
1
+ import{k as a,y as n,o as r,e as l,m as e,t as s,l as d,w as c,N as p,I as f,aj as m,ak as x}from"./entry.cefe3147.js";const h=t=>(m("data-v-bf1556d5"),t=t(),x(),t),u={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},g=h(()=>e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),b={class:"max-w-520px text-center z-20"},_=["textContent"],y=["textContent"],w={class:"w-full flex items-center justify-center"},k={__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 o=t;return n({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}a{color:inherit;text-decoration:inherit}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(S,N)=>{const i=f;return r(),l("div",u,[g,e("div",b,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,_),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,y),e("div",w,[d(i,{to:"/",class:"gradient-border text-md sm:text-xl py-2 px-4 sm:py-3 sm:px-6 cursor-pointer"},{default:c(()=>[p(s(t.backHome),1)]),_:1})])])])}}},z=a(k,[["__scopeId","data-v-bf1556d5"]]);export{z as default};
@@ -1 +1 @@
1
- import{k as i,y as a,o as r,e as n,m as e,t as s,af as l,ag as d}from"./entry.75f7a625.js";const c=t=>(l("data-v-583914b6"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],b={__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 o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(x,u)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(b,[["__scopeId","data-v-583914b6"]]);export{w as default};
1
+ import{k as i,y as a,o as r,e as n,m as e,t as s,aj as l,ak as d}from"./entry.cefe3147.js";const c=t=>(l("data-v-583914b6"),t=t(),d(),t),p={class:"font-sans antialiased bg-white dark:bg-black text-black dark:text-white grid min-h-screen place-content-center overflow-hidden"},h=c(()=>e("div",{class:"fixed -bottom-1/2 left-0 right-0 h-1/2 spotlight"},null,-1)),f={class:"max-w-520px text-center"},g=["textContent"],m=["textContent"],b={__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 o=t;return a({title:`${o.statusCode} - ${o.statusMessage} | ${o.appName}`,script:[],style:[{children:'*,:before,:after{-webkit-box-sizing:border-box;box-sizing:border-box;border-width:0;border-style:solid;border-color:#e0e0e0}*{--tw-ring-inset:var(--tw-empty, );--tw-ring-offset-width:0px;--tw-ring-offset-color:#fff;--tw-ring-color:rgba(14, 165, 233, .5);--tw-ring-offset-shadow:0 0 #0000;--tw-ring-shadow:0 0 #0000;--tw-shadow:0 0 #0000}:root{-moz-tab-size:4;-o-tab-size:4;tab-size:4}body{margin:0;font-family:inherit;line-height:inherit}html{-webkit-text-size-adjust:100%;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";line-height:1.5}h1,p{margin:0}h1{font-size:inherit;font-weight:inherit}'}]}),(x,u)=>(r(),n("div",p,[h,e("div",f,[e("h1",{class:"text-8xl sm:text-10xl font-medium mb-8",textContent:s(t.statusCode)},null,8,g),e("p",{class:"text-xl px-8 sm:px-0 sm:text-4xl font-light mb-16 leading-tight",textContent:s(t.description)},null,8,m)])]))}},w=i(b,[["__scopeId","data-v-583914b6"]]);export{w as default};
@@ -1,3 +1,3 @@
1
- import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.75f7a625.js";const g={__name:"nuxt-error-page",props:{error:Object},setup(c){const{error:t}=c;(t.stack||"").split(`
1
+ import{o as l,c as m,n as E,g as f,u as s,d as n,_ as o}from"./entry.cefe3147.js";const g={__name:"nuxt-error-page",props:{error:Object},setup(c){const{error:t}=c;(t.stack||"").split(`
2
2
  `).splice(1).map(e=>({text:e.replace("webpack:/","").replace(".vue",".js").trim(),internal:e.includes("node_modules")&&!e.includes(".cache")||e.includes("internal")||e.includes("new Promise")})).map(e=>`<span class="stack${e.internal?" internal":""}">${e.text}</span>`).join(`
3
- `);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.47559066.js"),["./error-404.47559066.js","./entry.75f7a625.js","./entry.693dcb8a.css","./error-404.2618a69f.css"],import.meta.url).then(e=>e.default||e)):n(()=>o(()=>import("./error-500.d45b7d02.js"),["./error-500.d45b7d02.js","./entry.75f7a625.js","./entry.693dcb8a.css","./error-500.12a2683b.css"],import.meta.url).then(e=>e.default||e));return(e,d)=>(l(),m(s(_),E(f({statusCode:s(r),statusMessage:s(u),description:s(i),stack:s(p)})),null,16))}},x=g;export{x as default};
3
+ `);const r=Number(t.statusCode||500),a=r===404,u=t.statusMessage??(a?"Page Not Found":"Internal Server Error"),i=t.message||t.toString(),p=void 0,_=a?n(()=>o(()=>import("./error-404.8472f8a8.js"),["./error-404.8472f8a8.js","./entry.cefe3147.js","./entry.c396e258.css","./error-404.2618a69f.css"],import.meta.url).then(e=>e.default||e)):n(()=>o(()=>import("./error-500.d5f3c7ae.js"),["./error-500.d5f3c7ae.js","./entry.cefe3147.js","./entry.c396e258.css","./error-500.12a2683b.css"],import.meta.url).then(e=>e.default||e));return(e,d)=>(l(),m(s(_),E(f({statusCode:s(r),statusMessage:s(u),description:s(i),stack:s(p)})),null,16))}},x=g;export{x as default};
@@ -1 +1 @@
1
- import{k as o,o as t,e as s,p as r}from"./entry.75f7a625.js";const c={},n={"h-full":"","of-auto":""};function a(e,l){return t(),s("div",n,[r(e.$slots,"default")])}const _=o(c,[["render",a]]);export{_ as default};
1
+ import{k as o,o as t,e as s,p as r}from"./entry.cefe3147.js";const c={},n={"h-full":"","of-auto":""};function a(e,l){return t(),s("div",n,[r(e.$slots,"default")])}const _=o(c,[["render",a]]);export{_ as default};
@@ -1 +1 @@
1
- import{_ as ut}from"./NTextInput.vue.7b3bcc54.js";import{a as ft,o as dt,e as gt,m as pt,p as j,N as Q,l as mt}from"./entry.75f7a625.js";const Mt={flex:"~ gap4"},oe=ft({__name:"Navbar",props:{search:{type:String,default:void 0},noPadding:{type:Boolean,default:!1}},emits:["update:search"],setup(e,{emit:t}){function s(n){t("update:search",n.target.value)}return(n,r)=>{const i=ut;return dt(),gt("div",{flex:"~ col gap2",border:"b base","flex-1":"","navbar-glass":"",class:Q([{p4:!e.noPadding}])},[pt("div",Mt,[j(n.$slots,"search",{},()=>[mt(i,{placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:Q({"px-5 py-2":!e.noPadding}),value:e.search,onInput:s},null,8,["class","value"])]),j(n.$slots,"actions")]),j(n.$slots,"default")],2)}}});function I(e){return Array.isArray?Array.isArray(e):nt(e)==="[object Array]"}const xt=1/0;function _t(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-xt?"-0":t}function Et(e){return e==null?"":_t(e)}function E(e){return typeof e=="string"}function et(e){return typeof e=="number"}function yt(e){return e===!0||e===!1||It(e)&&nt(e)=="[object Boolean]"}function st(e){return typeof e=="object"}function It(e){return st(e)&&e!==null}function m(e){return e!=null}function B(e){return!e.trim().length}function nt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const St="Incorrect 'index' type",At=e=>`Invalid value for key ${e}`,wt=e=>`Pattern length exceeds max of ${e}.`,bt=e=>`Missing ${e} property in key`,Lt=e=>`Property 'weight' in key '${e}' must be a positive integer`,X=Object.prototype.hasOwnProperty;class Rt{constructor(t){this._keys=[],this._keyMap={};let s=0;t.forEach(n=>{let r=rt(n);s+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,s+=r.weight}),this._keys.forEach(n=>{n.weight/=s})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function rt(e){let t=null,s=null,n=null,r=1,i=null;if(E(e)||I(e))n=e,t=J(e),s=K(e);else{if(!X.call(e,"name"))throw new Error(bt("name"));const c=e.name;if(n=c,X.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(Lt(c));t=J(c),s=K(c),i=e.getFn}return{path:t,id:s,weight:r,src:n,getFn:i}}function J(e){return I(e)?e:e.split(".")}function K(e){return I(e)?e.join("."):e}function Nt(e,t){let s=[],n=!1;const r=(i,c,o)=>{if(m(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!m(h))return;if(o===c.length-1&&(E(h)||et(h)||yt(h)))s.push(Et(h));else if(I(h)){n=!0;for(let l=0,f=h.length;l<f;l+=1)r(h[l],c,o+1)}else c.length&&r(h,c,o+1)}};return r(e,E(t)?t.split("."):t,0),n?s:s[0]}const $t={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},kt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},vt={location:0,threshold:.6,distance:100},Ot={useExtendedSearch:!1,getFn:Nt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var u={...kt,...$t,...vt,...Ot};const Ct=/[^ ]+/g;function Tt(e=1,t=3){const s=new Map,n=Math.pow(10,t);return{get(r){const i=r.match(Ct).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*e),o=parseFloat(Math.round(c*n)/n);return s.set(i,o),o},clear(){s.clear()}}}class Y{constructor({getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){this.norm=Tt(s,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,E(this.docs[0])?this.docs.forEach((t,s)=>{this._addString(t,s)}):this.docs.forEach((t,s)=>{this._addObject(t,s)}),this.norm.clear())}add(t){const s=this.size();E(t)?this._addString(t,s):this._addObject(t,s)}removeAt(t){this.records.splice(t,1);for(let s=t,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(t,s){return t[this._keysMap[s]]}size(){return this.records.length}_addString(t,s){if(!m(t)||B(t))return;let n={v:t,i:s,n:this.norm.get(t)};this.records.push(n)}_addObject(t,s){let n={i:s,$:{}};this.keys.forEach((r,i)=>{let c=r.getFn?r.getFn(t):this.getFn(t,r.path);if(m(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(m(l))if(E(l)&&!B(l)){let f={v:l,i:h,n:this.norm.get(l)};o.push(f)}else I(l)&&l.forEach((f,d)=>{a.push({nestedArrIndex:d,value:f})})}n.$[i]=o}else if(E(c)&&!B(c)){let o={v:c,n:this.norm.get(c)};n.$[i]=o}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function it(e,t,{getFn:s=u.getFn,fieldNormWeight:n=u.fieldNormWeight}={}){const r=new Y({getFn:s,fieldNormWeight:n});return r.setKeys(e.map(rt)),r.setSources(t),r.create(),r}function Ft(e,{getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){const{keys:n,records:r}=e,i=new Y({getFn:t,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(r),i}function C(e,{errors:t=0,currentLocation:s=0,expectedLocation:n=0,distance:r=u.distance,ignoreLocation:i=u.ignoreLocation}={}){const c=t/e.length;if(i)return c;const o=Math.abs(n-s);return r?c+o/r:o?1:c}function Pt(e=[],t=u.minMatchCharLength){let s=[],n=-1,r=-1,i=0;for(let c=e.length;i<c;i+=1){let o=e[i];o&&n===-1?n=i:!o&&n!==-1&&(r=i-1,r-n+1>=t&&s.push([n,r]),n=-1)}return e[i-1]&&i-n>=t&&s.push([n,i-1]),s}const R=32;function jt(e,t,s,{location:n=u.location,distance:r=u.distance,threshold:i=u.threshold,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,includeMatches:a=u.includeMatches,ignoreLocation:h=u.ignoreLocation}={}){if(t.length>R)throw new Error(wt(R));const l=t.length,f=e.length,d=Math.max(0,Math.min(n,f));let g=i,p=d;const M=o>1||a,b=M?Array(f):[];let y;for(;(y=e.indexOf(t,p))>-1;){let x=C(t,{currentLocation:y,expectedLocation:d,distance:r,ignoreLocation:h});if(g=Math.min(x,g),p=y+l,M){let S=0;for(;S<l;)b[y+S]=1,S+=1}}p=-1;let N=[],L=1,v=l+f;const lt=1<<l-1;for(let x=0;x<l;x+=1){let S=0,A=v;for(;S<A;)C(t,{errors:x,currentLocation:d+A,expectedLocation:d,distance:r,ignoreLocation:h})<=g?S=A:v=A,A=Math.floor((v-S)/2+S);v=A;let G=Math.max(1,d-A+1),P=c?f:Math.min(d+A,f)+l,$=Array(P+2);$[P+1]=(1<<x)-1;for(let _=P;_>=G;_-=1){let O=_-1,U=s[e.charAt(O)];if(M&&(b[O]=+!!U),$[_]=($[_+1]<<1|1)&U,x&&($[_]|=(N[_+1]|N[_])<<1|1|N[_+1]),$[_]&lt&&(L=C(t,{errors:x,currentLocation:O,expectedLocation:d,distance:r,ignoreLocation:h}),L<=g)){if(g=L,p=O,p<=d)break;G=Math.max(1,2*d-p)}}if(C(t,{errors:x+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:h})>g)break;N=$}const F={isMatch:p>=0,score:Math.max(.001,L)};if(M){const x=Pt(b,o);x.length?a&&(F.indices=x):F.isMatch=!1}return F}function Bt(e){let t={};for(let s=0,n=e.length;s<n;s+=1){const r=e.charAt(s);t[r]=(t[r]||0)|1<<n-s-1}return t}class ct{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:a=u.isCaseSensitive,ignoreLocation:h=u.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:Bt(d),startIndex:g})},f=this.pattern.length;if(f>R){let d=0;const g=f%R,p=f-g;for(;d<p;)l(this.pattern.substr(d,R),d),d+=R;if(g){const M=f-R;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(t){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(t=t.toLowerCase()),this.pattern===t){let p={isMatch:!0,score:0};return n&&(p.indices=[[0,t.length-1]]),p}const{location:r,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],f=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:b})=>{const{isMatch:y,score:N,indices:L}=jt(t,p,M,{location:r+b,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:n,ignoreLocation:h});y&&(d=!0),f+=N,y&&L&&(l=[...l,...L])});let g={isMatch:d,score:d?f/this.chunks.length:1};return d&&n&&(g.indices=l),g}}class w{constructor(t){this.pattern=t}static isMultiMatch(t){return Z(t,this.multiRegex)}static isSingleMatch(t){return Z(t,this.singleRegex)}search(){}}function Z(e,t){const s=e.match(t);return s?s[1]:null}class Kt extends w{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const s=t===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Dt extends w{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Wt extends w{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const s=t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class zt extends w{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const s=!t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Vt extends w{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const s=t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ht extends w{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const s=!t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class ot extends w{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:a=u.isCaseSensitive,ignoreLocation:h=u.ignoreLocation}={}){super(t),this._bitapSearch=new ct(t,{location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class at extends w{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let s=0,n;const r=[],i=this.pattern.length;for(;(n=t.indexOf(this.pattern,s))>-1;)s=n+i,r.push([n,s-1]);const c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}const D=[Kt,at,Wt,zt,Ht,Vt,Dt,ot],q=D.length,Yt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Gt="|";function Ut(e,t={}){return e.split(Gt).map(s=>{let n=s.trim().split(Yt).filter(i=>i&&!!i.trim()),r=[];for(let i=0,c=n.length;i<c;i+=1){const o=n[i];let a=!1,h=-1;for(;!a&&++h<q;){const l=D[h];let f=l.isMultiMatch(o);f&&(r.push(new l(f,t)),a=!0)}if(!a)for(h=-1;++h<q;){const l=D[h];let f=l.isSingleMatch(o);if(f){r.push(new l(f,t));break}}}return r})}const Qt=new Set([ot.type,at.type]);class Xt{constructor(t,{isCaseSensitive:s=u.isCaseSensitive,includeMatches:n=u.includeMatches,minMatchCharLength:r=u.minMatchCharLength,ignoreLocation:i=u.ignoreLocation,findAllMatches:c=u.findAllMatches,location:o=u.location,threshold:a=u.threshold,distance:h=u.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:r,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?t:t.toLowerCase(),this.query=Ut(this.pattern,this.options)}static condition(t,s){return s.useExtendedSearch}searchIn(t){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let f=0,d=l.length;f<d;f+=1){const g=l[f],{isMatch:p,indices:M,score:b}=g.search(t);if(p){if(i+=1,o+=b,n){const y=g.constructor.type;Qt.has(y)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let f={isMatch:!0,score:o/i};return n&&(f.indices=c),f}}return{isMatch:!1,score:1}}}const W=[];function Jt(...e){W.push(...e)}function z(e,t){for(let s=0,n=W.length;s<n;s+=1){let r=W[s];if(r.condition(e,t))return new r(e,t)}return new ct(e,t)}const T={AND:"$and",OR:"$or"},V={PATH:"$path",PATTERN:"$val"},H=e=>!!(e[T.AND]||e[T.OR]),Zt=e=>!!e[V.PATH],qt=e=>!I(e)&&st(e)&&!H(e),tt=e=>({[T.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ht(e,t,{auto:s=!0}={}){const n=r=>{let i=Object.keys(r);const c=Zt(r);if(!c&&i.length>1&&!H(r))return n(tt(r));if(qt(r)){const a=c?r[V.PATH]:i[0],h=c?r[V.PATTERN]:r[a];if(!E(h))throw new Error(At(a));const l={keyId:K(a),pattern:h};return s&&(l.searcher=z(h,t)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=r[a];I(h)&&h.forEach(l=>{o.children.push(n(l))})}),o};return H(e)||(e=tt(e)),n(e)}function te(e,{ignoreFieldNorm:t=u.ignoreFieldNorm}){e.forEach(s=>{let n=1;s.matches.forEach(({key:r,norm:i,score:c})=>{const o=r?r.weight:null;n*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(t?1:i))}),s.score=n})}function ee(e,t){const s=e.matches;t.matches=[],m(s)&&s.forEach(n=>{if(!m(n.indices)||!n.indices.length)return;const{indices:r,value:i}=n;let c={indices:r,value:i};n.key&&(c.key=n.key.src),n.idx>-1&&(c.refIndex=n.idx),t.matches.push(c)})}function se(e,t){t.score=e.score}function ne(e,t,{includeMatches:s=u.includeMatches,includeScore:n=u.includeScore}={}){const r=[];return s&&r.push(ee),n&&r.push(se),e.map(i=>{const{idx:c}=i,o={item:t[c],refIndex:c};return r.length&&r.forEach(a=>{a(i,o)}),o})}class k{constructor(t,s={},n){this.options={...u,...s},this.options.useExtendedSearch,this._keyStore=new Rt(this.options.keys),this.setCollection(t,n)}setCollection(t,s){if(this._docs=t,s&&!(s instanceof Y))throw new Error(St);this._myIndex=s||it(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){m(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const s=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,r-=1,s.push(i))}return s}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:s=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=E(t)?E(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return te(a,{ignoreFieldNorm:o}),i&&a.sort(c),et(s)&&s>-1&&(a=a.slice(0,s)),ne(a,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(t){const s=z(t,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:i,i:c,n:o})=>{if(!m(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&r.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),r}_searchLogical(t){const s=ht(t,this.options),n=(o,a,h)=>{if(!o.children){const{keyId:f,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let f=0,d=o.children.length;f<d;f+=1){const g=o.children[f],p=n(g,a,h);if(p.length)l.push(...p);else if(o.operator===T.AND)return[]}return l},r=this._myIndex.records,i={},c=[];return r.forEach(({$:o,i:a})=>{if(m(o)){let h=n(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(t){const s=z(t,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:c,i:o})=>{if(!m(c))return;let a=[];n.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:t,value:s,searcher:n}){if(!m(s))return[];let r=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!m(i))return;const{isMatch:a,score:h,indices:l}=n.searchIn(i);a&&r.push({score:h,key:t,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=n.searchIn(i);o&&r.push({score:a,key:t,value:i,norm:c,indices:h})}return r}}k.version="6.6.2";k.createIndex=it;k.parseIndex=Ft;k.config=u;k.parseQuery=ht;Jt(Xt);export{k as F,oe as _};
1
+ import{_ as ut}from"./NTextInput.vue.c65cc1e4.js";import{a as ft,o as dt,e as gt,m as pt,p as j,O as Q,l as mt}from"./entry.cefe3147.js";const Mt={flex:"~ gap4"},oe=ft({__name:"Navbar",props:{search:{type:String,default:void 0},noPadding:{type:Boolean,default:!1}},emits:["update:search"],setup(e,{emit:t}){function s(n){t("update:search",n.target.value)}return(n,r)=>{const i=ut;return dt(),gt("div",{flex:"~ col gap2",border:"b base","flex-1":"","navbar-glass":"",class:Q([{p4:!e.noPadding}])},[pt("div",Mt,[j(n.$slots,"search",{},()=>[mt(i,{placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:Q({"px-5 py-2":!e.noPadding}),value:e.search,onInput:s},null,8,["class","value"])]),j(n.$slots,"actions")]),j(n.$slots,"default")],2)}}});function I(e){return Array.isArray?Array.isArray(e):nt(e)==="[object Array]"}const xt=1/0;function _t(e){if(typeof e=="string")return e;let t=e+"";return t=="0"&&1/e==-xt?"-0":t}function Et(e){return e==null?"":_t(e)}function E(e){return typeof e=="string"}function et(e){return typeof e=="number"}function yt(e){return e===!0||e===!1||It(e)&&nt(e)=="[object Boolean]"}function st(e){return typeof e=="object"}function It(e){return st(e)&&e!==null}function m(e){return e!=null}function B(e){return!e.trim().length}function nt(e){return e==null?e===void 0?"[object Undefined]":"[object Null]":Object.prototype.toString.call(e)}const St="Incorrect 'index' type",At=e=>`Invalid value for key ${e}`,wt=e=>`Pattern length exceeds max of ${e}.`,bt=e=>`Missing ${e} property in key`,Lt=e=>`Property 'weight' in key '${e}' must be a positive integer`,X=Object.prototype.hasOwnProperty;class Rt{constructor(t){this._keys=[],this._keyMap={};let s=0;t.forEach(n=>{let r=rt(n);s+=r.weight,this._keys.push(r),this._keyMap[r.id]=r,s+=r.weight}),this._keys.forEach(n=>{n.weight/=s})}get(t){return this._keyMap[t]}keys(){return this._keys}toJSON(){return JSON.stringify(this._keys)}}function rt(e){let t=null,s=null,n=null,r=1,i=null;if(E(e)||I(e))n=e,t=J(e),s=K(e);else{if(!X.call(e,"name"))throw new Error(bt("name"));const c=e.name;if(n=c,X.call(e,"weight")&&(r=e.weight,r<=0))throw new Error(Lt(c));t=J(c),s=K(c),i=e.getFn}return{path:t,id:s,weight:r,src:n,getFn:i}}function J(e){return I(e)?e:e.split(".")}function K(e){return I(e)?e.join("."):e}function Nt(e,t){let s=[],n=!1;const r=(i,c,o)=>{if(m(i))if(!c[o])s.push(i);else{let a=c[o];const h=i[a];if(!m(h))return;if(o===c.length-1&&(E(h)||et(h)||yt(h)))s.push(Et(h));else if(I(h)){n=!0;for(let l=0,f=h.length;l<f;l+=1)r(h[l],c,o+1)}else c.length&&r(h,c,o+1)}};return r(e,E(t)?t.split("."):t,0),n?s:s[0]}const $t={includeMatches:!1,findAllMatches:!1,minMatchCharLength:1},kt={isCaseSensitive:!1,includeScore:!1,keys:[],shouldSort:!0,sortFn:(e,t)=>e.score===t.score?e.idx<t.idx?-1:1:e.score<t.score?-1:1},vt={location:0,threshold:.6,distance:100},Ot={useExtendedSearch:!1,getFn:Nt,ignoreLocation:!1,ignoreFieldNorm:!1,fieldNormWeight:1};var u={...kt,...$t,...vt,...Ot};const Ct=/[^ ]+/g;function Tt(e=1,t=3){const s=new Map,n=Math.pow(10,t);return{get(r){const i=r.match(Ct).length;if(s.has(i))return s.get(i);const c=1/Math.pow(i,.5*e),o=parseFloat(Math.round(c*n)/n);return s.set(i,o),o},clear(){s.clear()}}}class Y{constructor({getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){this.norm=Tt(s,3),this.getFn=t,this.isCreated=!1,this.setIndexRecords()}setSources(t=[]){this.docs=t}setIndexRecords(t=[]){this.records=t}setKeys(t=[]){this.keys=t,this._keysMap={},t.forEach((s,n)=>{this._keysMap[s.id]=n})}create(){this.isCreated||!this.docs.length||(this.isCreated=!0,E(this.docs[0])?this.docs.forEach((t,s)=>{this._addString(t,s)}):this.docs.forEach((t,s)=>{this._addObject(t,s)}),this.norm.clear())}add(t){const s=this.size();E(t)?this._addString(t,s):this._addObject(t,s)}removeAt(t){this.records.splice(t,1);for(let s=t,n=this.size();s<n;s+=1)this.records[s].i-=1}getValueForItemAtKeyId(t,s){return t[this._keysMap[s]]}size(){return this.records.length}_addString(t,s){if(!m(t)||B(t))return;let n={v:t,i:s,n:this.norm.get(t)};this.records.push(n)}_addObject(t,s){let n={i:s,$:{}};this.keys.forEach((r,i)=>{let c=r.getFn?r.getFn(t):this.getFn(t,r.path);if(m(c)){if(I(c)){let o=[];const a=[{nestedArrIndex:-1,value:c}];for(;a.length;){const{nestedArrIndex:h,value:l}=a.pop();if(m(l))if(E(l)&&!B(l)){let f={v:l,i:h,n:this.norm.get(l)};o.push(f)}else I(l)&&l.forEach((f,d)=>{a.push({nestedArrIndex:d,value:f})})}n.$[i]=o}else if(E(c)&&!B(c)){let o={v:c,n:this.norm.get(c)};n.$[i]=o}}}),this.records.push(n)}toJSON(){return{keys:this.keys,records:this.records}}}function it(e,t,{getFn:s=u.getFn,fieldNormWeight:n=u.fieldNormWeight}={}){const r=new Y({getFn:s,fieldNormWeight:n});return r.setKeys(e.map(rt)),r.setSources(t),r.create(),r}function Ft(e,{getFn:t=u.getFn,fieldNormWeight:s=u.fieldNormWeight}={}){const{keys:n,records:r}=e,i=new Y({getFn:t,fieldNormWeight:s});return i.setKeys(n),i.setIndexRecords(r),i}function C(e,{errors:t=0,currentLocation:s=0,expectedLocation:n=0,distance:r=u.distance,ignoreLocation:i=u.ignoreLocation}={}){const c=t/e.length;if(i)return c;const o=Math.abs(n-s);return r?c+o/r:o?1:c}function Pt(e=[],t=u.minMatchCharLength){let s=[],n=-1,r=-1,i=0;for(let c=e.length;i<c;i+=1){let o=e[i];o&&n===-1?n=i:!o&&n!==-1&&(r=i-1,r-n+1>=t&&s.push([n,r]),n=-1)}return e[i-1]&&i-n>=t&&s.push([n,i-1]),s}const R=32;function jt(e,t,s,{location:n=u.location,distance:r=u.distance,threshold:i=u.threshold,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,includeMatches:a=u.includeMatches,ignoreLocation:h=u.ignoreLocation}={}){if(t.length>R)throw new Error(wt(R));const l=t.length,f=e.length,d=Math.max(0,Math.min(n,f));let g=i,p=d;const M=o>1||a,b=M?Array(f):[];let y;for(;(y=e.indexOf(t,p))>-1;){let x=C(t,{currentLocation:y,expectedLocation:d,distance:r,ignoreLocation:h});if(g=Math.min(x,g),p=y+l,M){let S=0;for(;S<l;)b[y+S]=1,S+=1}}p=-1;let N=[],L=1,v=l+f;const lt=1<<l-1;for(let x=0;x<l;x+=1){let S=0,A=v;for(;S<A;)C(t,{errors:x,currentLocation:d+A,expectedLocation:d,distance:r,ignoreLocation:h})<=g?S=A:v=A,A=Math.floor((v-S)/2+S);v=A;let G=Math.max(1,d-A+1),P=c?f:Math.min(d+A,f)+l,$=Array(P+2);$[P+1]=(1<<x)-1;for(let _=P;_>=G;_-=1){let O=_-1,U=s[e.charAt(O)];if(M&&(b[O]=+!!U),$[_]=($[_+1]<<1|1)&U,x&&($[_]|=(N[_+1]|N[_])<<1|1|N[_+1]),$[_]&lt&&(L=C(t,{errors:x,currentLocation:O,expectedLocation:d,distance:r,ignoreLocation:h}),L<=g)){if(g=L,p=O,p<=d)break;G=Math.max(1,2*d-p)}}if(C(t,{errors:x+1,currentLocation:d,expectedLocation:d,distance:r,ignoreLocation:h})>g)break;N=$}const F={isMatch:p>=0,score:Math.max(.001,L)};if(M){const x=Pt(b,o);x.length?a&&(F.indices=x):F.isMatch=!1}return F}function Bt(e){let t={};for(let s=0,n=e.length;s<n;s+=1){const r=e.charAt(s);t[r]=(t[r]||0)|1<<n-s-1}return t}class ct{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:a=u.isCaseSensitive,ignoreLocation:h=u.ignoreLocation}={}){if(this.options={location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h},this.pattern=a?t:t.toLowerCase(),this.chunks=[],!this.pattern.length)return;const l=(d,g)=>{this.chunks.push({pattern:d,alphabet:Bt(d),startIndex:g})},f=this.pattern.length;if(f>R){let d=0;const g=f%R,p=f-g;for(;d<p;)l(this.pattern.substr(d,R),d),d+=R;if(g){const M=f-R;l(this.pattern.substr(M),M)}}else l(this.pattern,0)}searchIn(t){const{isCaseSensitive:s,includeMatches:n}=this.options;if(s||(t=t.toLowerCase()),this.pattern===t){let p={isMatch:!0,score:0};return n&&(p.indices=[[0,t.length-1]]),p}const{location:r,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,ignoreLocation:h}=this.options;let l=[],f=0,d=!1;this.chunks.forEach(({pattern:p,alphabet:M,startIndex:b})=>{const{isMatch:y,score:N,indices:L}=jt(t,p,M,{location:r+b,distance:i,threshold:c,findAllMatches:o,minMatchCharLength:a,includeMatches:n,ignoreLocation:h});y&&(d=!0),f+=N,y&&L&&(l=[...l,...L])});let g={isMatch:d,score:d?f/this.chunks.length:1};return d&&n&&(g.indices=l),g}}class w{constructor(t){this.pattern=t}static isMultiMatch(t){return Z(t,this.multiRegex)}static isSingleMatch(t){return Z(t,this.singleRegex)}search(){}}function Z(e,t){const s=e.match(t);return s?s[1]:null}class Kt extends w{constructor(t){super(t)}static get type(){return"exact"}static get multiRegex(){return/^="(.*)"$/}static get singleRegex(){return/^=(.*)$/}search(t){const s=t===this.pattern;return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class Dt extends w{constructor(t){super(t)}static get type(){return"inverse-exact"}static get multiRegex(){return/^!"(.*)"$/}static get singleRegex(){return/^!(.*)$/}search(t){const n=t.indexOf(this.pattern)===-1;return{isMatch:n,score:n?0:1,indices:[0,t.length-1]}}}class Wt extends w{constructor(t){super(t)}static get type(){return"prefix-exact"}static get multiRegex(){return/^\^"(.*)"$/}static get singleRegex(){return/^\^(.*)$/}search(t){const s=t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,this.pattern.length-1]}}}class zt extends w{constructor(t){super(t)}static get type(){return"inverse-prefix-exact"}static get multiRegex(){return/^!\^"(.*)"$/}static get singleRegex(){return/^!\^(.*)$/}search(t){const s=!t.startsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class Vt extends w{constructor(t){super(t)}static get type(){return"suffix-exact"}static get multiRegex(){return/^"(.*)"\$$/}static get singleRegex(){return/^(.*)\$$/}search(t){const s=t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[t.length-this.pattern.length,t.length-1]}}}class Ht extends w{constructor(t){super(t)}static get type(){return"inverse-suffix-exact"}static get multiRegex(){return/^!"(.*)"\$$/}static get singleRegex(){return/^!(.*)\$$/}search(t){const s=!t.endsWith(this.pattern);return{isMatch:s,score:s?0:1,indices:[0,t.length-1]}}}class ot extends w{constructor(t,{location:s=u.location,threshold:n=u.threshold,distance:r=u.distance,includeMatches:i=u.includeMatches,findAllMatches:c=u.findAllMatches,minMatchCharLength:o=u.minMatchCharLength,isCaseSensitive:a=u.isCaseSensitive,ignoreLocation:h=u.ignoreLocation}={}){super(t),this._bitapSearch=new ct(t,{location:s,threshold:n,distance:r,includeMatches:i,findAllMatches:c,minMatchCharLength:o,isCaseSensitive:a,ignoreLocation:h})}static get type(){return"fuzzy"}static get multiRegex(){return/^"(.*)"$/}static get singleRegex(){return/^(.*)$/}search(t){return this._bitapSearch.searchIn(t)}}class at extends w{constructor(t){super(t)}static get type(){return"include"}static get multiRegex(){return/^'"(.*)"$/}static get singleRegex(){return/^'(.*)$/}search(t){let s=0,n;const r=[],i=this.pattern.length;for(;(n=t.indexOf(this.pattern,s))>-1;)s=n+i,r.push([n,s-1]);const c=!!r.length;return{isMatch:c,score:c?0:1,indices:r}}}const D=[Kt,at,Wt,zt,Ht,Vt,Dt,ot],q=D.length,Yt=/ +(?=(?:[^\"]*\"[^\"]*\")*[^\"]*$)/,Gt="|";function Ut(e,t={}){return e.split(Gt).map(s=>{let n=s.trim().split(Yt).filter(i=>i&&!!i.trim()),r=[];for(let i=0,c=n.length;i<c;i+=1){const o=n[i];let a=!1,h=-1;for(;!a&&++h<q;){const l=D[h];let f=l.isMultiMatch(o);f&&(r.push(new l(f,t)),a=!0)}if(!a)for(h=-1;++h<q;){const l=D[h];let f=l.isSingleMatch(o);if(f){r.push(new l(f,t));break}}}return r})}const Qt=new Set([ot.type,at.type]);class Xt{constructor(t,{isCaseSensitive:s=u.isCaseSensitive,includeMatches:n=u.includeMatches,minMatchCharLength:r=u.minMatchCharLength,ignoreLocation:i=u.ignoreLocation,findAllMatches:c=u.findAllMatches,location:o=u.location,threshold:a=u.threshold,distance:h=u.distance}={}){this.query=null,this.options={isCaseSensitive:s,includeMatches:n,minMatchCharLength:r,findAllMatches:c,ignoreLocation:i,location:o,threshold:a,distance:h},this.pattern=s?t:t.toLowerCase(),this.query=Ut(this.pattern,this.options)}static condition(t,s){return s.useExtendedSearch}searchIn(t){const s=this.query;if(!s)return{isMatch:!1,score:1};const{includeMatches:n,isCaseSensitive:r}=this.options;t=r?t:t.toLowerCase();let i=0,c=[],o=0;for(let a=0,h=s.length;a<h;a+=1){const l=s[a];c.length=0,i=0;for(let f=0,d=l.length;f<d;f+=1){const g=l[f],{isMatch:p,indices:M,score:b}=g.search(t);if(p){if(i+=1,o+=b,n){const y=g.constructor.type;Qt.has(y)?c=[...c,...M]:c.push(M)}}else{o=0,i=0,c.length=0;break}}if(i){let f={isMatch:!0,score:o/i};return n&&(f.indices=c),f}}return{isMatch:!1,score:1}}}const W=[];function Jt(...e){W.push(...e)}function z(e,t){for(let s=0,n=W.length;s<n;s+=1){let r=W[s];if(r.condition(e,t))return new r(e,t)}return new ct(e,t)}const T={AND:"$and",OR:"$or"},V={PATH:"$path",PATTERN:"$val"},H=e=>!!(e[T.AND]||e[T.OR]),Zt=e=>!!e[V.PATH],qt=e=>!I(e)&&st(e)&&!H(e),tt=e=>({[T.AND]:Object.keys(e).map(t=>({[t]:e[t]}))});function ht(e,t,{auto:s=!0}={}){const n=r=>{let i=Object.keys(r);const c=Zt(r);if(!c&&i.length>1&&!H(r))return n(tt(r));if(qt(r)){const a=c?r[V.PATH]:i[0],h=c?r[V.PATTERN]:r[a];if(!E(h))throw new Error(At(a));const l={keyId:K(a),pattern:h};return s&&(l.searcher=z(h,t)),l}let o={children:[],operator:i[0]};return i.forEach(a=>{const h=r[a];I(h)&&h.forEach(l=>{o.children.push(n(l))})}),o};return H(e)||(e=tt(e)),n(e)}function te(e,{ignoreFieldNorm:t=u.ignoreFieldNorm}){e.forEach(s=>{let n=1;s.matches.forEach(({key:r,norm:i,score:c})=>{const o=r?r.weight:null;n*=Math.pow(c===0&&o?Number.EPSILON:c,(o||1)*(t?1:i))}),s.score=n})}function ee(e,t){const s=e.matches;t.matches=[],m(s)&&s.forEach(n=>{if(!m(n.indices)||!n.indices.length)return;const{indices:r,value:i}=n;let c={indices:r,value:i};n.key&&(c.key=n.key.src),n.idx>-1&&(c.refIndex=n.idx),t.matches.push(c)})}function se(e,t){t.score=e.score}function ne(e,t,{includeMatches:s=u.includeMatches,includeScore:n=u.includeScore}={}){const r=[];return s&&r.push(ee),n&&r.push(se),e.map(i=>{const{idx:c}=i,o={item:t[c],refIndex:c};return r.length&&r.forEach(a=>{a(i,o)}),o})}class k{constructor(t,s={},n){this.options={...u,...s},this.options.useExtendedSearch,this._keyStore=new Rt(this.options.keys),this.setCollection(t,n)}setCollection(t,s){if(this._docs=t,s&&!(s instanceof Y))throw new Error(St);this._myIndex=s||it(this.options.keys,this._docs,{getFn:this.options.getFn,fieldNormWeight:this.options.fieldNormWeight})}add(t){m(t)&&(this._docs.push(t),this._myIndex.add(t))}remove(t=()=>!1){const s=[];for(let n=0,r=this._docs.length;n<r;n+=1){const i=this._docs[n];t(i,n)&&(this.removeAt(n),n-=1,r-=1,s.push(i))}return s}removeAt(t){this._docs.splice(t,1),this._myIndex.removeAt(t)}getIndex(){return this._myIndex}search(t,{limit:s=-1}={}){const{includeMatches:n,includeScore:r,shouldSort:i,sortFn:c,ignoreFieldNorm:o}=this.options;let a=E(t)?E(this._docs[0])?this._searchStringList(t):this._searchObjectList(t):this._searchLogical(t);return te(a,{ignoreFieldNorm:o}),i&&a.sort(c),et(s)&&s>-1&&(a=a.slice(0,s)),ne(a,this._docs,{includeMatches:n,includeScore:r})}_searchStringList(t){const s=z(t,this.options),{records:n}=this._myIndex,r=[];return n.forEach(({v:i,i:c,n:o})=>{if(!m(i))return;const{isMatch:a,score:h,indices:l}=s.searchIn(i);a&&r.push({item:i,idx:c,matches:[{score:h,value:i,norm:o,indices:l}]})}),r}_searchLogical(t){const s=ht(t,this.options),n=(o,a,h)=>{if(!o.children){const{keyId:f,searcher:d}=o,g=this._findMatches({key:this._keyStore.get(f),value:this._myIndex.getValueForItemAtKeyId(a,f),searcher:d});return g&&g.length?[{idx:h,item:a,matches:g}]:[]}const l=[];for(let f=0,d=o.children.length;f<d;f+=1){const g=o.children[f],p=n(g,a,h);if(p.length)l.push(...p);else if(o.operator===T.AND)return[]}return l},r=this._myIndex.records,i={},c=[];return r.forEach(({$:o,i:a})=>{if(m(o)){let h=n(s,o,a);h.length&&(i[a]||(i[a]={idx:a,item:o,matches:[]},c.push(i[a])),h.forEach(({matches:l})=>{i[a].matches.push(...l)}))}}),c}_searchObjectList(t){const s=z(t,this.options),{keys:n,records:r}=this._myIndex,i=[];return r.forEach(({$:c,i:o})=>{if(!m(c))return;let a=[];n.forEach((h,l)=>{a.push(...this._findMatches({key:h,value:c[l],searcher:s}))}),a.length&&i.push({idx:o,item:c,matches:a})}),i}_findMatches({key:t,value:s,searcher:n}){if(!m(s))return[];let r=[];if(I(s))s.forEach(({v:i,i:c,n:o})=>{if(!m(i))return;const{isMatch:a,score:h,indices:l}=n.searchIn(i);a&&r.push({score:h,key:t,value:i,idx:c,norm:o,indices:l})});else{const{v:i,n:c}=s,{isMatch:o,score:a,indices:h}=n.searchIn(i);o&&r.push({score:a,key:t,value:i,norm:c,indices:h})}return r}}k.version="6.6.2";k.createIndex=it;k.parseIndex=Ft;k.config=u;k.parseQuery=ht;Jt(Xt);export{k as F,oe as _};
@@ -0,0 +1 @@
1
+ import{_ as S}from"./DurationDisplay.vue.0d861fe1.js";import{a as H,V as C,h as b,o as _,e as x,m as e,N as d,O as u,u as s,F as y,r as B,t as p,a8 as F,l as m,aL as T,a3 as V,c as D,w as $,f as L}from"./entry.cefe3147.js";import{_ as O}from"./NSectionBlock.53fae3a6.js";import{_ as z}from"./HelpFab.vue.8f58b14e.js";import"./NIconTitle.vue.321882c6.js";import"./ContentRenderer.914f3a38.js";import"./ContentRendererMarkdown.fd0df501.js";import"./index.a6ef77ff.js";import"./preview.485816aa.js";import"./NIconButton.vue.b4278b36.js";import"./query.851664d2.js";import"./utils.e5367885.js";const E={"w-full":""},I={border:"b base"},j={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},A={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},M={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},P={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},R={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},q={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},G={"text-sm":""},J={"ws-nowrap":""},K={"text-sm":""},Q={"w-0":"","text-center":"","text-sm":""},U={"w-0":"","text-center":"","text-sm":""},W={"w-0":"","text-right":"","text-sm":""},X=H({__name:"HooksTable",props:{hooks:null},setup(f){const i=f,a=C("duration"),r=C("asc"),k={duration:(o,t)=>(t.duration??1/0)-(o.duration??1/0),name:(o,t)=>o.name.localeCompare(t.name),listener:(o,t)=>t.listeners-o.listeners,start:(o,t)=>t.start-o.start,executions:(o,t)=>t.executions.length-o.executions.length},g=b(()=>i.hooks.map(o=>o.start).sort((o,t)=>o-t)),h=b(()=>{const o=k[a.value],t=[...i.hooks].sort(o);return r.value==="desc"&&t.reverse(),t});function l(o){const t=o.split(":");return t.length===1?"":`${t[0]}:`}function w(o){const t=o.split(":");return t.length===1?o:t.slice(1).join(":")}function N(o){let t=0;for(let n=0;n<o.length;n++)t=o.charCodeAt(n)+((t<<5)-t);return`hsl(${t%360}, 65%, 50%)`}function c(o){a.value===o?r.value=r.value==="asc"?"desc":"asc":a.value=o}return(o,t)=>{const v=S;return _(),x("table",E,[e("thead",I,[e("tr",null,[e("th",j,[e("button",{onClick:t[0]||(t[0]=n=>c("start"))},[d(" Order "),e("div",{"ml--1":"","text-xs":"",class:u([s(a)==="start"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",A,[e("button",{onClick:t[1]||(t[1]=n=>c("name"))},[d(" Hook name "),e("div",{"ml--1":"","text-xs":"",class:u([s(a)==="name"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",M,[e("button",{onClick:t[2]||(t[2]=n=>c("listener"))},[d(" Listeners "),e("div",{"ml--1":"","text-xs":"",class:u([s(a)==="listener"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",P,[e("button",{onClick:t[3]||(t[3]=n=>c("executions"))},[d(" Executions "),e("div",{"ml--1":"","text-xs":"",class:u([s(a)==="executions"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),e("th",R,[e("button",{onClick:t[4]||(t[4]=n=>c("duration"))},[d(" Duration "),e("div",{"ml--1":"","text-xs":"",class:u([s(a)==="duration"?"op50":"op0",s(r)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),e("tbody",null,[(_(!0),x(y,null,B(s(h),n=>(_(),x("tr",{key:n.name,border:"b dashed transparent hover:base"},[e("td",q,p(s(g).indexOf(n.start)),1),e("td",{"w-0":"","ws-nowrap":"","text-right":"",style:F({color:N(l(n.name))})},[e("code",G,p(l(n.name)),1)],4),e("td",J,[e("code",K,p(w(n.name)),1)]),e("td",Q,p(n.listeners),1),e("td",U,p(n.executions.length+1),1),e("td",W,[m(v,{duration:n.duration},null,8,["duration"])])]))),128))])])}}}),dt=H({__name:"hooks",setup(f){const i=T(),a=V(),r=b(()=>a.value?.getClientHooksMetrics());return(k,g)=>{const h=X,l=O,w=z;return _(),x(y,null,[e("div",null,[s(r)?.length?(_(),D(l,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${s(r).length}`,padding:"pl4 pr6"},{default:$(()=>[m(h,{hooks:s(r)},null,8,["hooks"])]),_:1},8,["description"])):L("",!0),m(l,{icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${s(i).length}`,padding:"pl4 pr6"},{default:$(()=>[m(h,{hooks:s(i)},null,8,["hooks"])]),_:1},8,["description"])]),m(w,{path:"/hooks"})],64)}}});export{dt as default};
@@ -0,0 +1 @@
1
+ import{_ as L}from"./NSwitch.vue.8577379b.js";import{F as B,_ as F}from"./fuse.esm.dae60b17.js";import{_ as V}from"./FilepathItem.vue.64e00c09.js";import{_ as X}from"./NMarkdown.vue.f4e94eed.js";import{a as A,h as y,Y as z,o as a,c as _,w as p,m,f,l as v,u as t,N as S,e as u,F as C,t as $,r as w,O as j,a6 as O,L as P,V as D,b as H,aA as R,j as Y,i as q,af as N}from"./entry.cefe3147.js";import{a as G,u as J}from"./editor.e9c81b63.js";import{C as U,D as T}from"./constants.126da185.js";import{_ as K}from"./NSectionBlock.53fae3a6.js";import{_ as Q}from"./HelpFab.vue.8f58b14e.js";import"./NTextInput.vue.c65cc1e4.js";import"./NIconTitle.vue.321882c6.js";import"./ContentRenderer.914f3a38.js";import"./ContentRendererMarkdown.fd0df501.js";import"./index.a6ef77ff.js";import"./preview.485816aa.js";import"./NIconButton.vue.b4278b36.js";import"./query.851664d2.js";import"./utils.e5367885.js";const W={"hover:text-primary":""},Z={key:0,"text-primary":""},tt={"max-w-100":""},et={px4:"",py3:"","text-sm":""},ot={flex:"~ gap2",n:"primary xs"},at={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},nt={"text-sm":""},st=m("span",{op50:""},"It has been referenced ",-1),it={"text-primary":""},rt=m("span",{op50:""}," times by:",-1),mt={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":""},lt={key:1,"text-sm":"",op50:""},ut=A({__name:"ComposableItem",props:{item:null,metadata:null,filepath:null},setup(l){const n=l,x=G(),c=J(),d=y(()=>n.item.as||n.item.name),s=y(()=>n.metadata?.injectionUsage?.[d.value]?.count||0),M=y(()=>n.metadata?.injectionUsage?.[d.value]?.moduleIds||[]),I=y(()=>{if(n.item.meta?.docsUrl)return n.item.meta.docsUrl;if(["nuxt","#app","nuxt3"].includes(n.item.from))return U.nuxt[n.item.name];if(n.item.from==="vue")return U.vue[n.item.name]});return(i,e)=>{const r=X,b=O,g=V,h=z("VDropdown");return a(),_(h,{disabled:!n.metadata},{popper:p(()=>[m("div",tt,[m("div",et,[l.item.meta?.description?(a(),_(r,{key:0,tag:"div",pb3:"","text-sm":"",markdown:l.item.meta.description},null,8,["markdown"])):f("",!0),m("div",ot,[v(b,{icon:"carbon-copy",onClick:e[0]||(e[0]=o=>t(x)(t(d)))},{default:p(()=>[S(" Copy ")]),_:1}),l.filepath?(a(),_(b,{key:0,icon:"carbon-code",onClick:e[1]||(e[1]=o=>l.filepath&&t(c)(l.filepath))},{default:p(()=>[S(" Source ")]),_:1})):f("",!0),t(I)?(a(),_(b,{key:1,icon:"carbon-catalog",to:t(I),target:"_blank"},{default:p(()=>[S(" Docs ")]),_:1},8,["to"])):f("",!0)])]),m("div",at,[t(s)?(a(),u(C,{key:0},[m("div",nt,[st,m("strong",it,$(t(s)),1),rt]),m("div",mt,[(a(!0),u(C,null,w(t(M),o=>(a(),_(g,{key:o,filepath:o},null,8,["filepath"]))),128))])],64)):(a(),u("div",lt," Not in use via auto import. "))])])]),default:p(()=>[m("button",W,[m("code",{rounded:"","bg-gray:5":"",px2:"",py1:"","font-mono":"","text-sm":"",class:j(l.metadata&&!t(s)?"op30 hover:op100":"")},[S($(t(d))+" ",1),t(s)?(a(),u("sup",Z,"x"+$(t(s)),1)):f("",!0)],2)])]),_:1},8,["disabled"])}}}),pt={flex:"~ wrap gap2",p2:"",pl4:""},ct=A({__name:"ComposableTree",props:{map:null,root:null,metadata:null},setup(l){return(n,x)=>{const c=V,d=ut;return a(),u("div",null,[(a(!0),u(C,null,w(l.map.entries(),([s,M])=>(a(),u("div",{key:s},[v(c,{filepath:s,op50:"","hover:underline":""},null,8,["filepath"]),m("div",pt,[(a(!0),u(C,null,w(M,I=>(a(),_(d,{key:I.as,item:I,metadata:l.metadata,filepath:s.match(/^[\w@]/)?void 0:s},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),dt={key:0,relative:"","h-full":"","of-auto":""},_t={key:0},Nt=A({__name:"imports",setup(l){const n=P(),x=D(!1),c=D(""),d=H(),s=y(()=>d.value?.metadata),M=y(()=>d.value?.imports.filter(e=>e.as||e.name).sort((e,r)=>(e.as||e.name).localeCompare(r.as||r.name))||[]),I=y(()=>new B(M.value,{keys:["from","as","name"]})),i=y(()=>{const e=new Map,r=new Map,b=new Map;let g=c.value?I.value.search(c.value).map(o=>o.item):M.value;x.value&&s.value&&(g=g.filter(o=>(o.as||o.name)in s.value.injectionUsage));const h={user:0,lib:0,builtin:0};return g.forEach(o=>{const k=R(o.from)?Y(q(o.from))?b:r:e;k.has(o.from)||k.set(o.from,[]),k.get(o.from).push(o),h[k===e?"user":k===r?"lib":"builtin"]++}),{user:e,lib:r,builtin:b,count:h}});return(e,r)=>{const b=L,g=F,h=ct,o=K,k=Q;return a(),u(C,null,[t(n)?(a(),u("div",dt,[v(g,{search:t(c),"onUpdate:search":r[1]||(r[1]=E=>N(c)?c.value=E:null),pb2:""},{default:p(()=>[t(s)?(a(),u("div",_t,[v(b,{modelValue:t(x),"onUpdate:modelValue":r[0]||(r[0]=E=>N(x)?x.value=E:null),n:"primary sm"},{default:p(()=>[S(" Show used only ")]),_:1},8,["modelValue"])])):f("",!0)]),_:1},8,["search"]),t(i).user.size?(a(),_(o,{key:0,open:t(i).count.user<=("DETAILS_MAX_ITEMS"in e?e.DETAILS_MAX_ITEMS:t(T)),icon:"carbon-function",text:"User composables",description:`${t(i).count.user} composables from ${t(i).user.size} modules`},{default:p(()=>[v(h,{map:t(i).user,root:t(n).rootDir,metadata:t(s)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):f("",!0),t(i).builtin.size?(a(),_(o,{key:1,open:t(i).count.builtin<=("DETAILS_MAX_ITEMS"in e?e.DETAILS_MAX_ITEMS:t(T)),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${t(i).count.builtin} composables`},{default:p(()=>[v(h,{map:t(i).builtin,root:t(n).rootDir,metadata:t(s)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):f("",!0),t(i).lib.size?(a(),_(o,{key:2,open:t(i).count.lib<=("DETAILS_MAX_ITEMS"in e?e.DETAILS_MAX_ITEMS:t(T)),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${t(i).count.lib} composables from ${t(i).lib.size} packages`},{default:p(()=>[v(h,{map:t(i).lib,root:t(n).rootDir,metadata:t(s)},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):f("",!0)])):f("",!0),v(k,{path:"/imports"})],64)}}});export{Nt as default};
@@ -1 +1 @@
1
- import{_ as r}from"./NuxtLogo.61744901.js";import{_ as c}from"./Badge.1a9bc0c6.js";import{a as _,o as l,e as u,m as e,l as o,w as p,a1 as m,a2 as d,M as t}from"./entry.75f7a625.js";const x={flex:"~ col gap4",mxa:"","h-screen":"","w-160":"","items-center":"","justify-center":"","text-center":""},f={flex:"~","items-center":"","justify-center":""},h=e("p",{my2:"","text-xl":"","font-bold":""}," 👋 Welcome trying the preview of Nuxt DevTools! ",-1),v=e("p",{"text-lg":""},[e("b",{"font-bold":""},"Nuxt DevTools"),t(" is a set of visual tools that help you to know your app/site better, and enhance your development experience with Nuxt. ")],-1),g=e("p",{"text-lg":""},[t(" Be aware that "),e("span",{rounded:"","bg-orange:10":"",px2:"","py0.5":"","font-bold":"","text-orange":""},"Nuxt DevTools is still in early preview"),t(", features might be incomplete and unstable. "),e("a",{href:"https://github.com/nuxt/devtools",target:"_blank","text-primary":"","hover-underline":""},"Create an issue or discussion"),t(" if you find any bugs or have any suggestions. Thank you and have fun! ")],-1),y=e("span",null,"Get Started",-1),T=_({__name:"index",setup(b){function n(){m.value=!1}return(w,N)=>{const s=r,a=c,i=d;return l(),u("div",x,[e("div",f,[o(s,{"h-16":""}),o(a,{"mr--15":"","mt--5":"","bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})]),h,v,g,o(i,{to:"/modules/overview","mt-4":"",n:"xl primary",onClick:n},{default:p(()=>[y]),_:1})])}}});export{T as default};
1
+ import{_ as r}from"./NuxtLogo.a6b7ebcc.js";import{_ as c}from"./Badge.0c2ba14d.js";import{a as _,o as l,e as u,m as e,l as o,w as p,a5 as m,a6 as d,N as t}from"./entry.cefe3147.js";const x={flex:"~ col gap4",mxa:"","h-screen":"","w-160":"","items-center":"","justify-center":"","text-center":""},f={flex:"~","items-center":"","justify-center":""},h=e("p",{my2:"","text-xl":"","font-bold":""}," 👋 Welcome trying the preview of Nuxt DevTools! ",-1),v=e("p",{"text-lg":""},[e("b",{"font-bold":""},"Nuxt DevTools"),t(" is a set of visual tools that help you to know your app/site better, and enhance your development experience with Nuxt. ")],-1),g=e("p",{"text-lg":""},[t(" Be aware that "),e("span",{rounded:"","bg-orange:10":"",px2:"","py0.5":"","font-bold":"","text-orange":""},"Nuxt DevTools is still in early preview"),t(", features might be incomplete and unstable. "),e("a",{href:"https://github.com/nuxt/devtools",target:"_blank","text-primary":"","hover-underline":""},"Create an issue or discussion"),t(" if you find any bugs or have any suggestions. Thank you and have fun! ")],-1),y=e("span",null,"Get Started",-1),T=_({__name:"index",setup(b){function n(){m.value=!1}return(w,N)=>{const s=r,a=c,i=d;return l(),u("div",x,[e("div",f,[o(s,{"h-16":""}),o(a,{"mr--15":"","mt--5":"","bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})]),h,v,g,o(i,{to:"/modules/overview","mt-4":"",n:"xl primary",onClick:n},{default:p(()=>[y]),_:1})])}}});export{T as default};
@@ -1 +1 @@
1
- import{a as e,o as a,e as n}from"./entry.75f7a625.js";const s=e({__name:"middleware",setup(o){return(t,r)=>(a(),n("div",null," WIP "))}});export{s as default};
1
+ import{a as e,o as a,e as n}from"./entry.cefe3147.js";const s=e({__name:"middleware",setup(o){return(t,r)=>(a(),n("div",null," WIP "))}});export{s as default};
@@ -0,0 +1 @@
1
+ import{a as V,L as U,h as b,aA as j,i as O,M as R,aM as H,aN as J,o as e,c as u,w as d,m as o,u as t,N as C,t as p,e as a,f as l,l as y,F as f,r as M,I as z,aJ as G,V as F,ar as K}from"./entry.cefe3147.js";import{_ as Q}from"./FilepathItem.vue.64e00c09.js";import{_ as W}from"./NpmVersionCheck.vue.2810bb88.js";import{u as X}from"./editor.e9c81b63.js";import{_ as Y}from"./NSectionBlock.53fae3a6.js";import{_ as Z}from"./HelpFab.vue.8f58b14e.js";import"./Badge.0c2ba14d.js";import"./NCodeBlock.vue.da19eaf4.js";import"./NCheckbox.vue.93b3bec2.js";import"./NIconTitle.vue.321882c6.js";import"./ContentRenderer.914f3a38.js";import"./ContentRendererMarkdown.fd0df501.js";import"./index.a6ef77ff.js";import"./preview.485816aa.js";import"./NIconButton.vue.b4278b36.js";import"./query.851664d2.js";import"./utils.e5367885.js";const tt={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},et={"of-hidden":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},ot={key:2},nt={key:0,"line-clamp-2":"","mt--1":"","text-sm":"",op50:""},at=o("div",{"flex-auto":""},null,-1),st={key:1,flex:"~ gap-2",title:"Documentation"},it=o("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1),rt={key:2,flex:"~ gap-2"},lt=o("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1),ct={key:3,flex:"~ gap-2",title:"Open on filesystem"},dt=o("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1),mt=o("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),pt=o("code",{"text-sm":"",op50:""},"Upgrading...",-1),ut={key:1,"mx--2":""},_t=["onClick"],ht=o("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),gt=o("code",{"text-xs":""},"Update installed, click to restart",-1),xt=[ht,gt],ft={key:2,"mx--2":""},yt=["onClick"],vt=o("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1),kt={op50:""},bt=o("div",{"i-carbon-arrow-right":"",op50:""},null,-1),wt={"text-green":""},Pt={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Ct=o("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1),Mt={"text-sm":"",op50:""},Nt={flex:"~ col"},$t={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Bt=["src","alt"],It=o("div",{"i-carbon-circle-dash":"",ma:"","text-4xl":"",op50:""},null,-1),Ft={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Vt=["src"],Ut=V({__name:"ModuleItem",props:{mod:null},async setup(h){let g,v;const c=h,_=U(),m=b(()=>c.mod.entryPath&&j(c.mod.entryPath)),s=b(()=>c.mod.meta?.name?c.mod.meta.name:c.mod.entryPath?m.value?O(c.mod.entryPath):_.value?.rootDir?R(c.mod.entryPath,_.value?.rootDir).path:"":""),N=([g,v]=H(()=>J()),g=await g,v(),g),n=b(()=>({name:s,...c.mod?.meta,...(N||[]).find?.(P=>P.npm===s.value||P.name===s.value)})),k="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",w="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",i="https://github.com/",D="https://www.npmjs.com/package/",E=X();return(P,$)=>{const x=z,L=Q,S=W,T=G;return e(),u(T,{p4:"",flex:"~ gap2"},{default:d(()=>[o("div",tt,[o("div",et,[t(m)?(e(),u(x,{key:0,to:D+(t(n).npm||t(n).name),target:"_blank",hover:"underline text-primary"},{default:d(()=>[C(p(t(n).name),1)]),_:1},8,["to"])):h.mod.entryPath?(e(),a("button",{key:1,role:"button",hover:"underline text-primary",onClick:$[0]||($[0]=r=>t(E)(h.mod.entryPath))},p(t(n).name),1)):(e(),a("span",ot,p(t(n).name),1))]),t(n).description?(e(),a("div",nt,p(t(n).description),1)):l("",!0),at,t(n).website?(e(),a("div",st,[it,y(x,{to:t(n).website,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:d(()=>[C(p(t(n).website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):l("",!0),t(n).github?(e(),a("div",rt,[lt,y(x,{to:t(n).github,target:"_blank","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:d(()=>[C(p(t(n).github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):l("",!0),h.mod.entryPath?(e(),a("div",ct,[dt,y(L,{filepath:h.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):l("",!0),t(n).npm?(e(),u(S,{key:t(n).npm,"package-name":t(n).npm,options:{dev:!0}},{default:d(({info:r,update:q,state:B,id:I,restart:A})=>[B==="running"?(e(),u(x,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:I?`/modules/terminals?id=${encodeURIComponent(I)}`:void 0},{default:d(()=>[mt,pt]),_:2},1032,["to"])):B==="updated"?(e(),a("div",ut,[o("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:A},xt,8,_t)])):r?.needsUpdate?(e(),a("div",ft,[o("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:Et=>q()},[vt,o("code",kt,"v"+p(r.current),1),bt,o("code",wt,"v"+p(r.latest),1)],8,yt)])):r?.latest?(e(),a("div",Pt,[Ct,o("code",Mt,"v"+p(r.current),1)])):l("",!0)]),_:1},8,["package-name"])):l("",!0)]),o("div",Nt,[t(n).icon||t(m)?(e(),a("div",$t,[t(n).icon?(e(),a("img",{key:0,src:k+t(n).icon,alt:t(s),ma:""},null,8,Bt)):l("",!0),It])):l("",!0),t(n).maintainers?.length?(e(),a("div",Ft,[(e(!0),a(f,null,M(t(n).maintainers,r=>(e(),u(x,{key:r.name,target:"_blank",to:i+r.github,title:r.name},{default:d(()=>[o("img",{src:w+r.github,"h-6":"","w-6":"","rounded-full":""},null,8,Vt)]),_:2},1032,["to","title"]))),128))])):l("",!0)])]),_:1})}}}),jt={"h-full":"","w-full":"","of-auto":""},Dt=o("div",{px4:""},[o("span",{op50:""},"Find more modules at "),o("a",{href:"https://nuxt.com/modules",target:"_blank",hover:"text-primary underline"},"nuxt.com/modules")],-1),te=V({__name:"modules",setup(h){const g=["pages","meta","components","imports","nuxt-config-schema","@nuxt/devtools","@nuxt/telemetry"],v=U(),c=b(()=>v.value?._installedModules||[]),_=F([]),m=F([]);return K(()=>{_.value.length=0,m.value.length=0;for(const s of c.value)g.includes(s.meta?.name)||(s.entryPath&&j(s.entryPath)?_.value.push(s):m.value.push(s))}),(s,N)=>{const n=Ut,k=Y,w=Z;return e(),a(f,null,[o("div",jt,[y(k,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${t(_).length}`},{footer:d(()=>[Dt]),default:d(()=>[(e(!0),a(f,null,M(t(_),i=>(e(),u(n,{key:i.meta?.name||i.entryPath,mod:i},null,8,["mod"]))),128))]),_:1},8,["description"]),t(m).length?(e(),u(k,{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(m).length}`},{default:d(()=>[(e(!0),a(f,null,M(t(m),i=>(e(),a(f,{key:i.meta?.name||i.entryPath},[i.meta?.name||i.entryPath?(e(),u(n,{key:0,mod:i},null,8,["mod"])):l("",!0)],64))),128))]),_:1},8,["description"])):l("",!0)]),y(w,{path:"/modules"})],64)}}});export{te as default};
@@ -1 +1 @@
1
- import{k as r,p as n}from"./entry.75f7a625.js";const t={};function o(e,s){return n(e.$slots,"default")}const a=r(t,[["render",o]]);export{a as default};
1
+ import{k as r,p as n}from"./entry.cefe3147.js";const t={};function o(e,s){return n(e.$slots,"default")}const a=r(t,[["render",o]]);export{a as default};
@@ -1 +1 @@
1
- import{_ as B}from"./NuxtLogo.61744901.js";import{_ as V}from"./Badge.1a9bc0c6.js";import{_ as j,a as D}from"./NpmVersionCheck.vue.23de8792.js";import{a as I,Z as R,K as M,az as T,b as $,aQ as A,aR as F,ay as L,o as s,c as a,w as o,u as e,e as d,m as t,l as i,t as _,F as p,f as c,aS as O,M as n,a1 as P,H as W,a2 as G}from"./entry.75f7a625.js";import{_ as H}from"./NPanelGrids.e189e2d9.js";import"./NCodeBlock.vue.a30ec3a3.js";import"./NCheckbox.vue.c2fcd2eb.js";const z="0.4.2",E={key:0},K={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p8:"",px20:""},Q=t("div",{"flex-auto":""},null,-1),U={flex:"~ col","mt-20":"","items-center":""},Z={flex:"~","mt--10":"","items-center":"","justify-center":""},q={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},J=t("span",{op40:""}," Nuxt DevTools ",-1),X={op40:""},Y={flex:"~ gap2 wrap"},tt={p4:"","theme-card-green":"",flex:"~ col auto"},et=t("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),ot=t("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1),nt=t("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),st=t("div",{"carbon-function":"","text-3xl":""},null,-1),it=t("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1),lt=t("div",{"carbon-plug":"","text-3xl":""},null,-1),at={flex:"~ col gap2"},ct={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},rt=t("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[t("div",{"i-carbon-star":""}),n(" Star on GitHub ")],-1),ut=t("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[t("div",{"i-carbon-data-enrichment":""}),n(" Ideas & Suggestions ")],-1),_t=t("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[t("div",{"i-carbon-plan":""}),n(" Project Roadmap ")],-1),dt=t("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[t("div",{"i-carbon-debug":""}),n(" Bug Reports ")],-1),pt=t("div",{"i-carbon-settings":""},null,-1),mt=t("div",{"flex-auto":""},null,-1),ht={flex:"~ gap-1","items-center":"","justify-center":"","text-sm":"",op40:""},xt=t("span",null,"+",-1),ft=t("span",null,"+",-1),gt=t("span",null,"+",-1),vt=t("span",null,"+",-1),jt=I({__name:"overview",setup(bt){const f=R(),l=M(),g=T(),m=$(),v=A(),b=F(),k=L();function w(){P.value=!0,k.push("/")}return(h,kt)=>{const y=B,C=V,x=j,r=W,N=D,u=G,S=H;return s(),a(S,{"h-screen":"","w-full":"",flex:""},{default:o(()=>[e(l)?(s(),d("div",K,[Q,t("div",U,[t("div",Z,[i(y,{"h-18":""}),t("button",{"mr--16":"","mt--6":"",onClick:w},[i(C,{"bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})])]),t("div",q,[J,t("code",X,"v"+_(e(z)),1),i(x,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),t("div",Y,[t("div",tt,[et,i(x,{"package-name":"nuxt",options:{dev:!0}})]),e(l)?(s(),d(p,{key:0},[e(l)&&e(l).pages&&e(f)?(s(),a(r,{key:0,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/pages"},{default:o(()=>[ot,t("div",null,_(e(v).length)+" pages",1)]),_:1})):c("",!0),e(l)?(s(),a(r,{key:1,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/components"},{default:o(()=>[nt,t("div",null,_(e(g).length)+" components",1)]),_:1})):c("",!0),e(l)&&e(m)?(s(),a(r,{key:2,"min-w-40":"",p4:"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:o(()=>[st,t("div",null,_(e(m).imports.length)+" imports",1)]),_:1})):c("",!0),e(l)?(s(),a(r,{key:3,"min-w-40":"",p4:"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:o(()=>[it,t("div",null,_(e(l)._installedModules.length)+" modules",1)]),_:1})):c("",!0),e(l)?(s(),a(r,{key:4,"min-w-40":"",p4:"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:o(()=>[lt,t("div",null,_(e(l).plugins.length)+" plugins",1)]),_:1})):c("",!0)],64)):c("",!0)]),t("div",at,[("showConnectionWarning"in h?h.showConnectionWarning:e(O))?(s(),a(N,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:o(()=>[n(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):c("",!0)]),t("div",ct,[rt,ut,_t,dt,i(r,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:o(()=>[pt,n(" Settings ")]),_:1})]),mt,t("div",ht,[n(" Press "),e(b)?(s(),d(p,{key:0},[i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" ⇧ Shift ")]),_:1}),xt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" ⌥ Option ")]),_:1}),ft,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)):(s(),d(p,{key:1},[i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" Shift ")]),_:1}),gt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" Alt ")]),_:1}),vt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)),n(" to toggle DevTools ")])])):(s(),d("div",E," Loading... "))]),_:1})}}});export{jt as default};
1
+ import{_ as B}from"./NuxtLogo.a6b7ebcc.js";import{_ as I}from"./Badge.0c2ba14d.js";import{_ as V,a as j}from"./NpmVersionCheck.vue.2810bb88.js";import{a as D,a3 as R,L as T,aB as L,b as $,aS as A,aT as F,R as M,o as s,c as a,w as o,u as e,e as d,m as t,l as i,t as _,F as p,f as c,aU as O,N as n,a5 as P,I as W,a6 as G}from"./entry.cefe3147.js";import{_ as U}from"./NPanelGrids.a0c996c3.js";import"./NCodeBlock.vue.da19eaf4.js";import"./NCheckbox.vue.93b3bec2.js";const E="0.4.4",H={key:0},q={key:1,flex:"~ col gap2",ma:"","h-full":"","max-w-300":"","w-full":"",p8:"",px20:""},z=t("div",{"flex-auto":""},null,-1),J={flex:"~ col","mt-20":"","items-center":""},K={flex:"~","mt--10":"","items-center":"","justify-center":""},Q={mb6:"","mt--1":"","text-center":"","text-sm":"",flex:"~ gap-1"},X=t("span",{op40:""}," Nuxt DevTools ",-1),Y={op40:""},Z={flex:"~ gap2 wrap"},tt={p4:"","theme-card-green":"",flex:"~ col auto"},et=t("div",{"logos-nuxt-icon":"","text-3xl":""},null,-1),ot=t("div",{"carbon-tree-view-alt":"","text-3xl":""},null,-1),nt=t("div",{"i-carbon-assembly-cluster":"","text-3xl":""},null,-1),st=t("div",{"carbon-function":"","text-3xl":""},null,-1),it=t("div",{"carbon-3d-mpr-toggle":"","text-3xl":""},null,-1),lt=t("div",{"carbon-plug":"","text-3xl":""},null,-1),at={flex:"~ col gap2"},ct={flex:"~ gap-6 wrap","mt-5":"","items-center":"","justify-center":""},rt=t("a",{href:"https://github.com/nuxt/devtools",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-blue",transition:""},[t("div",{"i-carbon-star":""}),n(" Star on GitHub ")],-1),ut=t("a",{href:"https://github.com/nuxt/devtools/discussions/29",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-yellow",transition:""},[t("div",{"i-carbon-data-enrichment":""}),n(" Ideas & Suggestions ")],-1),_t=t("a",{href:"https://github.com/nuxt/devtools/discussions/31",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-lime",transition:""},[t("div",{"i-carbon-plan":""}),n(" Project Roadmap ")],-1),dt=t("a",{href:"https://github.com/nuxt/devtools/issues",target:"_blank",flex:"~ gap1","items-center":"",op50:"",hover:"op100 text-rose",transition:""},[t("div",{"i-carbon-debug":""}),n(" Bug Reports ")],-1),pt=t("div",{"i-carbon-settings":""},null,-1),mt=t("div",{"flex-auto":""},null,-1),ht={flex:"~ gap-1","items-center":"","justify-center":"","text-sm":"",op40:""},xt=t("span",null,"+",-1),ft=t("span",null,"+",-1),gt=t("span",null,"+",-1),vt=t("span",null,"+",-1),Vt=D({__name:"overview",setup(bt){const f=R(),l=T(),g=L(),m=$(),v=A(),b=F(),k=M();function w(){P.value=!0,k.push("/")}return(h,kt)=>{const y=B,N=I,x=V,r=W,C=j,u=G,S=U;return s(),a(S,{"h-screen":"","w-full":"",flex:""},{default:o(()=>[e(l)?(s(),d("div",q,[z,t("div",J,[t("div",K,[i(y,{"h-18":""}),t("button",{"mr--16":"","mt--6":"",onClick:w},[i(N,{"bg-green-400:10":"","text-green-400":"",title:"preview",textContent:"preview"})])]),t("div",Q,[X,t("code",Y,"v"+_(e(E)),1),i(x,{"package-name":"@nuxt/devtools",options:{dev:!0},"show-version":!1})])]),t("div",Z,[t("div",tt,[et,i(x,{"package-name":"nuxt",options:{dev:!0}})]),e(l)?(s(),d(p,{key:0},[e(l)&&e(l).pages&&e(f)?(s(),a(r,{key:0,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/pages"},{default:o(()=>[ot,t("div",null,_(e(v).length)+" pages",1)]),_:1})):c("",!0),e(l)?(s(),a(r,{key:1,"min-w-40":"",p4:"","theme-card-lime":"",flex:"~ col auto",to:"/modules/components"},{default:o(()=>[nt,t("div",null,_(e(g).length)+" components",1)]),_:1})):c("",!0),e(l)&&e(m)?(s(),a(r,{key:2,"min-w-40":"",p4:"","theme-card-yellow":"",flex:"~ col auto",to:"/modules/imports"},{default:o(()=>[st,t("div",null,_(e(m).imports.length)+" imports",1)]),_:1})):c("",!0),e(l)?(s(),a(r,{key:3,"min-w-40":"",p4:"","theme-card-purple":"",flex:"~ col auto",to:"/modules/modules"},{default:o(()=>[it,t("div",null,_(e(l)._installedModules.length)+" modules",1)]),_:1})):c("",!0),e(l)?(s(),a(r,{key:4,"min-w-40":"",p4:"","theme-card-teal":"",flex:"~ col auto",to:"/modules/plugins"},{default:o(()=>[lt,t("div",null,_(e(l).plugins.length)+" plugins",1)]),_:1})):c("",!0)],64)):c("",!0)]),t("div",at,[("showConnectionWarning"in h?h.showConnectionWarning:e(O))?(s(),a(C,{key:0,n:"yellow5",icon:"carbon-unlink","justify-center":""},{default:o(()=>[n(" Not connected to the client app, showing server-side data only. Use the embedded mode for full features. ")]),_:1})):c("",!0)]),t("div",ct,[rt,ut,_t,dt,i(r,{to:"/settings",flex:"~ gap1","inline-block":"","items-center":"",op50:"","hover:op80":""},{default:o(()=>[pt,n(" Settings ")]),_:1})]),mt,t("div",ht,[n(" Press "),e(b)?(s(),d(p,{key:0},[i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" ⇧ Shift ")]),_:1}),xt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" ⌥ Option ")]),_:1}),ft,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)):(s(),d(p,{key:1},[i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" Shift ")]),_:1}),gt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" Alt ")]),_:1}),vt,i(u,{n:"xs",class:"px2"},{default:o(()=>[n(" D ")]),_:1})],64)),n(" to toggle DevTools ")])])):(s(),d("div",H," Loading... "))]),_:1})}}});export{Vt as default};
@@ -0,0 +1 @@
1
+ import{_ as L}from"./NTextInput.vue.c65cc1e4.js";import{_ as F}from"./Badge.0c2ba14d.js";import{a as T,V as M,h as b,aV as j,Y as z,u as n,o,e as a,m as e,t as k,c as g,w as C,aW as Y,F as _,r as P,f as v,l as h,N as B,O as E,a6 as H,aX as A,aY as X,aZ as Z,L as q,au as G,av as J,a_ as Q,a$ as S,x as ee,af as te,aD as ne,S as oe}from"./entry.cefe3147.js";import{_ as D}from"./FilepathItem.vue.64e00c09.js";import{u as ae}from"./editor.e9c81b63.js";import{_ as se}from"./NSectionBlock.53fae3a6.js";import{_ as re}from"./LaunchPage.vue.453bd3ae.js";import{_ as le}from"./HelpFab.vue.8f58b14e.js";import"./NIconTitle.vue.321882c6.js";import"./NMarkdown.vue.f4e94eed.js";import"./NPanelGrids.a0c996c3.js";import"./ContentRenderer.914f3a38.js";import"./ContentRendererMarkdown.fd0df501.js";import"./index.a6ef77ff.js";import"./preview.485816aa.js";import"./NIconButton.vue.b4278b36.js";import"./query.851664d2.js";import"./utils.e5367885.js";const ie={block:"","cursor-pointer":""},ue={p2:""},ce=["onSubmit"],de=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),pe={flex:"~","items-center":"",p2:"","font-mono":"","text-sm":""},me={key:1},he=T({__name:"RoutePathItem",props:{route:null},emits:["navigate"],setup(m,{emit:c}){const i=m,f=M([]),y=b(()=>{const s=j(i.route.path);return f.value=Array.from({length:s.length},()=>""),s}),w=b(()=>y.value.map((s,l)=>s[0]===":"?f.value[l]:s).join("").replace(/\/+/g,"/")),x=b(()=>i.route.path.includes(":"));function u(){c("navigate",w.value)}return(s,l)=>{const N=L,p=H,r=z("VDropdown");return n(x)?(o(),g(r,{key:1},{popper:C(({hide:t})=>[e("div",ue,[e("form",{flex:"~ col",onSubmit:Y(()=>{u(),t()},["prevent"])},[n(x)?(o(),a(_,{key:0},[de,e("div",pe,[(o(!0),a(_,null,P(n(y),(d,R)=>(o(),a(_,{key:R},[d[0]===":"?(o(),g(N,{key:0,modelValue:n(f)[R],"onUpdate:modelValue":V=>n(f)[R]=V,"w-20":"","n-sm":"",placeholder:d.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),a("span",me,k(d),1))],64))),128))])],64)):v("",!0),h(p,{block:"",n:"primary"},{default:C(()=>[B(" Navigate ")]),_:1})],40,ce)])]),default:C(()=>[e("code",ie,[(o(!0),a(_,null,P(n(y),(t,d)=>(o(),a("span",{key:d,class:E(t[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},k(t[0]===":"?t.slice(1):t),3))),128))])]),_:1})):(o(),a("button",{key:0,onClick:u},[e("code",null,k(m.route.path),1)]))}}}),_e={"w-full":""},fe=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),ge={"w-20":"","pr-1":""},ve={flex:"","items-center":"","justify-end":""},ye={"text-sm":""},xe={flex:"inline gap3","items-center":""},be={op0:"","group-hover:op100":"",flex:"~ gap1"},ke=["onClick"],we=e("div",{"i-carbon-script-reference":""},null,-1),$e=[we],Ce={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","font-mono":"","text-sm":"",op50:""},Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","font-mono":"","text-sm":"",op50:""},Re={"w-0":"","ws-nowrap":"","text-center":"","font-mono":"","text-sm":""},Ve={key:0},Pe=["onClick"],Ie=T({__name:"RoutesTable",props:{pages:null,layouts:null,matched:null,matchedPending:null},emits:["navigate"],setup(m){const c=m,i=ae(),f=A(),y=b(()=>[...c.pages].sort((u,s)=>u.path.localeCompare(s.path)));function w(u){const s=c.layouts.find(l=>l.name===u);s&&i(s.file)}function x(u){if(typeof u=="string")return f.value?.middleware.find(s=>s.name===u)?.path}return(u,s)=>{const l=F,N=he,p=D;return o(),a("div",null,[e("table",_e,[fe,e("tbody",null,[(o(!0),a(_,null,P(n(y),r=>(o(),a("tr",{key:r.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ge,[e("div",ve,[m.matched.find(t=>t.name===r.name)?(o(),g(l,{key:0,"bg-green-400:10":"","text-green-400":"",title:"active",textContent:"active"})):v("",!0),m.matchedPending.find(t=>t.name===r.name)?(o(),g(l,{key:1,"bg-teal-400:10":"","text-teal-400":"",title:"next",textContent:"next"})):v("",!0)])]),e("td",ye,[e("div",xe,[h(N,{route:r,class:E(m.matched.find(t=>t.name===r.name)?"text-primary":m.matchedPending.find(t=>t.name===r.name)?"text-teal":""),onNavigate:s[0]||(s[0]=t=>u.$emit("navigate",t))},null,8,["route","class"]),e("div",be,[r.file||r.meta?.file?(o(),a("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:t=>n(i)(r.file||r.meta?.file)},$e,8,ke)):v("",!0)])])]),e("td",Ce,k(r.name),1),e("td",Ne,[h(p,{filepath:x(r.meta.middleware),override:`${r.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Re,[r.meta.layout===!1?(o(),a("span",Ve,"-")):r.meta.layout?(o(),a("button",{key:1,onClick:t=>w(r.meta.layout)},k(r.meta.layout),9,Pe)):(o(),a("button",{key:2,"text-sm":"",op15:"",onClick:s[1]||(s[1]=t=>w("default"))}," (default) "))])]))),128))])])])}}}),Be={key:0,"h-full":"","of-auto":""},Te={border:"b base",flex:"~ col gap1",px4:"",py3:"","navbar-glass":""},Ee=e("span",{op50:""},"Navigate from ",-1),Se={"font-mono":""},Le=e("span",{op50:""}," to ",-1),Fe={key:1,op50:""},Me=e("span",null,[B("Press "),e("b",{"font-bold":""},"Enter"),B(" to navigate")],-1),Ae={key:0,"text-orange":"",op75:""},De={key:1,op50:""},Ke={"w-full":""},Oe=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),Ue={mr1:""},lt=T({__name:"pages",setup(m){const c=X(),i=Z(),f=q(),y=A(),w=G(),x=J(),u=b(()=>(c.value?.getRoutes()||[]).map(t=>Q(t,["path","name","meta","props","children"])).map(t=>({...w.value?.find(d=>d.name&&d.name===t.name),...t}))),s=b(()=>y.value?.middleware||[]),l=M("");S(i).toBeTruthy().then(t=>{l.value=t.path}),S(c).toBeTruthy().then(t=>{t.afterEach(()=>{ee(()=>{l.value=i.value.path})})});async function N(){l.value!==i.value.path&&c.value.push(l.value||"/")}const p=b(()=>l.value===i.value.path?[]:c.value.resolve(l.value||"/").matched);function r(t){c.value.push(t)}return(t,d)=>{const R=L,V=Ie,I=se,K=F,O=D,U=re,W=le;return o(),a(_,null,[n(f)?.pages&&n(c)?(o(),a("div",Be,[e("div",Te,[e("div",null,[n(i).path!==n(l)?(o(),a(_,{key:0},[Ee,e("span",Se,k(n(i).path),1),Le],64)):(o(),a("span",Fe,"Current route"))]),h(R,{modelValue:n(l),"onUpdate:modelValue":d[0]||(d[0]=$=>te(l)?l.value=$:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(n(i).path===n(l)?"":n(p).length?"text-green":"text-orange"),onKeydown:ne(N,["enter"])},null,8,["modelValue","class","onKeydown"]),e("div",null,[n(i).path!==n(l)?(o(),a(_,{key:0},[Me,n(p).length?v("",!0):(o(),a("span",Ae," (no match)"))],64)):(o(),a("span",De,"Edit path above to navigate"))])]),n(p).length?(o(),g(I,{key:0,icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:C(()=>[h(V,{pages:n(p),layouts:n(x)||[],matched:[],"matched-pending":n(p),onNavigate:r},null,8,["pages","layouts","matched-pending"])]),_:1})):v("",!0),h(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${n(u).length} routes registered in your application`,padding:"pr5"},{default:C(()=>[h(V,{pages:n(u),layouts:n(x)||[],matched:n(i).matched,"matched-pending":n(p),onNavigate:r},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),n(s).length?(o(),g(I,{key:1,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${n(s).length} middleware registered in your application`,padding:"px13"},{default:C(()=>[e("table",Ke,[Oe,(o(!0),a(_,null,P(n(s),$=>(o(),a("tr",{key:$.path,"h-7":""},[e("td",null,[e("span",Ue,k($.name),1),$.global?(o(),g(K,{key:0,"bg-green-400:10":"","text-green-400":"",title:"Registered at runtime as a global component",textContent:"global"})):v("",!0)]),e("td",null,[h(O,{filepath:$.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):v("",!0)])):(o(),g(U,{key:1,icon:"carbon-tree-view-alt",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",handle(){return("rpc"in t?t.rpc:n(oe)).runWizard("enablePages")}}]},null,8,["actions"])),h(W,{path:"/pages"})],64)}}});export{lt as default};
@@ -0,0 +1 @@
1
+ import{_ as h}from"./StateEditor.vue.d274c06c.js";import{a as y,o as t,e as r,F as k,r as S,c as f,w as o,p as N,n as C,g as B,a3 as F,h as w,u as c,l as a,f as d,N as D,a6 as E}from"./entry.cefe3147.js";import{_ as P}from"./NSectionBlock.53fae3a6.js";import{_ as R}from"./NIconButton.vue.b4278b36.js";import{_ as V}from"./HelpFab.vue.8f58b14e.js";import"./NIconTitle.vue.321882c6.js";import"./ContentRenderer.914f3a38.js";import"./ContentRendererMarkdown.fd0df501.js";import"./index.a6ef77ff.js";import"./preview.485816aa.js";import"./query.851664d2.js";import"./utils.e5367885.js";const j={key:0,flex:"~ col gap-1"},G={key:1,mt2:"",px4:"",italic:"",op35:""},H=y({__name:"StateGroup",props:{state:null,prefix:{default:""}},setup(n){return(i,s)=>{const l=h;return t(),r("div",null,[n.state&&Object.keys(n.state).length>0?(t(),r("div",j,[(t(!0),r(k,null,S(n.state,(p,e)=>(t(),f(l,{key:e,state:p,name:e.startsWith(n.prefix)?e.slice(n.prefix.length):e},{actions:o(u=>[N(i.$slots,"actions",C(B(u)))]),_:2},1032,["state","name"]))),128))])):(t(),r("div",G," No data "))])}}}),K={key:0},Y=y({__name:"payload",setup(n){const i=F(),s=w(()=>i.value?.nuxt.payload);async function l(p){await i.value?.nuxt.hooks.callHookParallel("app:data:refresh",p)}return(p,e)=>{const u=H,m=P,$=E,b=R,g=h,v=V;return t(),r(k,null,[c(i)?(t(),r("div",K,[a(m,{icon:"carbon-data-set",text:"State",description:"Keyed state from `useState`",padding:!1},{default:o(()=>[a(u,{state:c(s).state,prefix:"$s"},null,8,["state"])]),_:1}),a(m,{icon:"carbon-data-blob",text:"Data",description:"Keyed state from `useAsyncData`",padding:!1},{actions:o(()=>[a($,{n:"xs primary","self-start":"",icon:"i-carbon-recycle",onClick:e[0]||(e[0]=x=>l())},{default:o(()=>[D(" Re-fetch all data ")]),_:1})]),default:o(()=>[a(u,{state:c(s).data},{actions:o(({isOpen:x,name:_})=>[x&&_?(t(),f(b,{key:0,title:`Re-fetch '${_}'`,icon:"carbon-recycle",onClick:O=>l([_])},null,8,["title","onClick"])):d("",!0)]),_:1},8,["state"])]),_:1}),c(s).functions&&Object.keys(c(s).functions).length?(t(),f(m,{key:0,icon:"carbon-function",text:"Functions",description:"State for functions (experimental)"},{default:o(()=>[a(g,{"ml--6":"",state:c(s).functions},null,8,["state"])]),_:1})):d("",!0)])):d("",!0),a(v,{path:"/payload"})],64)}}});export{Y as default};
@@ -0,0 +1 @@
1
+ import{_ as P}from"./FilepathItem.vue.64e00c09.js";import{_ as B}from"./Badge.0c2ba14d.js";import{_ as b}from"./DurationDisplay.vue.0d861fe1.js";import{a as C,L as k,h as x,M as D,o as n,e as d,m as l,t as M,l as g,u as a,c,f as u,a3 as F,w as N,F as y,r as S,O as w}from"./entry.cefe3147.js";import{_ as E}from"./NSectionBlock.53fae3a6.js";import{_ as I}from"./HelpFab.vue.8f58b14e.js";import"./editor.e9c81b63.js";import"./NIconTitle.vue.321882c6.js";import"./ContentRenderer.914f3a38.js";import"./ContentRendererMarkdown.fd0df501.js";import"./index.a6ef77ff.js";import"./preview.485816aa.js";import"./NIconButton.vue.b4278b36.js";import"./query.851664d2.js";import"./utils.e5367885.js";const T={flex:"~ gap2","items-center":""},V={w8:"","text-right":"","text-sm":"",op25:""},W={key:0,"flex-auto":"","text-right":""},L=C({__name:"PluginItem",props:{plugin:null,index:null},setup(o){const s=o,m=k(),p=x(()=>D(s.plugin.src,m.value?.rootDir||"").path);return(f,i)=>{const r=P,t=B,e=b;return n(),d("div",T,[l("div",V,M(o.index),1),g(r,{filepath:s.plugin.src,subpath:!0},null,8,["filepath"]),l("div",null,[a(p).startsWith("#")?(n(),c(t,{key:0,"bg-rose-400:10":"","text-rose":"",textContent:"virtual"})):a(p).startsWith(".")?u("",!0):(n(),c(t,{key:1,"bg-gray-400:10":"","text-gray":"",textContent:"module"})),o.plugin.mode==="server"?(n(),c(t,{key:2,"bg-teal-400:10":"","text-teal-400":"",textContent:"server"})):u("",!0),o.plugin.mode==="client"?(n(),c(t,{key:3,"bg-orange-400:10":"","text-orange-400":"",textContent:"client"})):u("",!0)]),o.plugin.metric?.duration!=null?(n(),d("div",W,[g(e,{duration:o.plugin.metric?.duration,factor:10},null,8,["duration"])])):u("",!0)])}}}),j={pt4:""},z={class:"text-sm",flex:"~ gap-1 items-center justify-end","mt-3":""},H=l("div",{"i-carbon-timer":"","text-lg":"",op75:""},null,-1),O=l("span",{op50:""},"Total execution time:",-1),st=C({__name:"plugins",setup(o){const s=k(),m=F(),p=x(()=>{const i=s.value?.plugins||[],r=m.value?.getClientPluginMetrics()||[];return i.map(t=>{const e=typeof t=="string"?{src:t}:t;return{...e,metric:r.find(_=>_.src===e.src||_.src.startsWith(e.src))}})}),f=x(()=>{const i=m.value?.getClientPluginMetrics()||[],r=Math.min(...i.map(e=>e.start));return Math.max(...i.map(e=>e.end))-r});return(i,r)=>{const t=L,e=b,_=E,$=I;return n(),d(y,null,[a(s)?(n(),c(_,{key:0,icon:"carbon-plug",text:"Plugins",description:`Total plugins: ${a(s).plugins.length}`},{default:N(()=>[l("div",j,[(n(!0),d(y,null,S(a(p),(h,v)=>(n(),c(t,{key:h.src,plugin:h,index:v+1,"ml--4":"","border-base":"",py2:"",class:w(v?"border-t":"")},null,8,["plugin","index","class"]))),128)),l("div",z,[H,O,g(e,{duration:a(f),factor:10},null,8,["duration"])])])]),_:1},8,["description"])):u("",!0),g($,{path:"/plugins"})],64)}}});export{st as default};
@@ -1 +1 @@
1
- import{R as m,s as v,S as g,v as d}from"./entry.75f7a625.js";const h=decodeURIComponent,S=encodeURIComponent,y=/; */,p=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function k(t,o){if(typeof t!="string")throw new TypeError("argument str must be a string");let i={},e=o||{},n=t.split(y),a=e.decode||h;for(let r=0;r<n.length;r++){let s=n[r],l=s.indexOf("=");if(l<0)continue;let f=s.substr(0,l).trim(),c=s.substr(++l,s.length).trim();c[0]=='"'&&(c=c.slice(1,-1)),i[f]==null&&(i[f]=T(c,a))}return i}function w(t,o,i){let e=i||{},n=e.encode||S;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!p.test(t))throw new TypeError("argument name is invalid");let a=n(o);if(a&&!p.test(a))throw new TypeError("argument val is invalid");let r=t+"="+a;if(e.maxAge!=null){let s=e.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");r+="; Max-Age="+Math.floor(s)}if(e.domain){if(!p.test(e.domain))throw new TypeError("option domain is invalid");r+="; Domain="+e.domain}if(e.path){if(!p.test(e.path))throw new TypeError("option path is invalid");r+="; Path="+e.path}if(e.expires){if(typeof e.expires.toUTCString!="function")throw new TypeError("option expires is invalid");r+="; Expires="+e.expires.toUTCString()}if(e.httpOnly&&(r+="; HttpOnly"),e.secure&&(r+="; Secure"),e.sameSite)switch(typeof e.sameSite=="string"?e.sameSite.toLowerCase():e.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r}function T(t,o){try{return o(t)}catch{return t}}const x={path:"/",watch:!0,decode:t=>g(decodeURIComponent(t)),encode:t=>encodeURIComponent(typeof t=="string"?t:JSON.stringify(t))};function u(t,o){const i={...x,...o},e=C(i)||{},n=m(e[t]??i.default?.());{const a=()=>{b(t,n.value,i)};i.watch?v(n,a,{deep:i.watch!=="shallow"}):a()}return n}function C(t={}){return k(document.cookie,t)}function E(t,o,i={}){return o==null?w(t,o,{...i,maxAge:-1}):w(t,o,i)}function b(t,o,i={}){document.cookie=E(t,o,i)}const I=()=>({isEnabled:()=>{const e=d().query;return Object.prototype.hasOwnProperty.call(e,"preview")&&!e.preview?!1:!!(e.preview||u("previewToken").value||sessionStorage.getItem("previewToken"))},getPreviewToken:()=>u("previewToken").value||sessionStorage.getItem("previewToken")||void 0,setPreviewToken:e=>{u("previewToken").value=e,d().query.preview=e||"",e?sessionStorage.setItem("previewToken",e):sessionStorage.removeItem("previewToken"),window.location.reload()}});export{I as u};
1
+ import{V as m,s as v,W as g,v as d}from"./entry.cefe3147.js";const h=decodeURIComponent,S=encodeURIComponent,y=/; */,p=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function k(t,o){if(typeof t!="string")throw new TypeError("argument str must be a string");let i={},e=o||{},n=t.split(y),a=e.decode||h;for(let r=0;r<n.length;r++){let s=n[r],l=s.indexOf("=");if(l<0)continue;let f=s.substr(0,l).trim(),c=s.substr(++l,s.length).trim();c[0]=='"'&&(c=c.slice(1,-1)),i[f]==null&&(i[f]=T(c,a))}return i}function w(t,o,i){let e=i||{},n=e.encode||S;if(typeof n!="function")throw new TypeError("option encode is invalid");if(!p.test(t))throw new TypeError("argument name is invalid");let a=n(o);if(a&&!p.test(a))throw new TypeError("argument val is invalid");let r=t+"="+a;if(e.maxAge!=null){let s=e.maxAge-0;if(isNaN(s)||!isFinite(s))throw new TypeError("option maxAge is invalid");r+="; Max-Age="+Math.floor(s)}if(e.domain){if(!p.test(e.domain))throw new TypeError("option domain is invalid");r+="; Domain="+e.domain}if(e.path){if(!p.test(e.path))throw new TypeError("option path is invalid");r+="; Path="+e.path}if(e.expires){if(typeof e.expires.toUTCString!="function")throw new TypeError("option expires is invalid");r+="; Expires="+e.expires.toUTCString()}if(e.httpOnly&&(r+="; HttpOnly"),e.secure&&(r+="; Secure"),e.sameSite)switch(typeof e.sameSite=="string"?e.sameSite.toLowerCase():e.sameSite){case!0:r+="; SameSite=Strict";break;case"lax":r+="; SameSite=Lax";break;case"strict":r+="; SameSite=Strict";break;case"none":r+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}return r}function T(t,o){try{return o(t)}catch{return t}}const x={path:"/",watch:!0,decode:t=>g(decodeURIComponent(t)),encode:t=>encodeURIComponent(typeof t=="string"?t:JSON.stringify(t))};function u(t,o){const i={...x,...o},e=C(i)||{},n=m(e[t]??i.default?.());{const a=()=>{b(t,n.value,i)};i.watch?v(n,a,{deep:i.watch!=="shallow"}):a()}return n}function C(t={}){return k(document.cookie,t)}function E(t,o,i={}){return o==null?w(t,o,{...i,maxAge:-1}):w(t,o,i)}function b(t,o,i={}){document.cookie=E(t,o,i)}const R=()=>({isEnabled:()=>{const e=d().query;return Object.prototype.hasOwnProperty.call(e,"preview")&&!e.preview?!1:!!(e.preview||u("previewToken").value||sessionStorage.getItem("previewToken"))},getPreviewToken:()=>u("previewToken").value||sessionStorage.getItem("previewToken")||void 0,setPreviewToken:e=>{u("previewToken").value=e,d().query.preview=e||"",e?sessionStorage.setItem("previewToken",e):sessionStorage.removeItem("previewToken"),window.location.reload()}});export{R as u};
@@ -0,0 +1 @@
1
+ import{z as h,a0 as g,a1 as d,a2 as _,D as p,_ as $}from"./entry.cefe3147.js";import{w as f,s as P}from"./utils.e5367885.js";import{u as E}from"./preview.485816aa.js";const l=(r,e)=>e.split(".").reduce((t,s)=>t&&t[s],r),y=(r,e)=>Object.keys(r).filter(e).reduce((t,s)=>Object.assign(t,{[s]:r[s]}),{}),L=r=>e=>Array.isArray(e)?e.map(t=>r(t)):r(e),w=r=>{const e=[],t=[];for(const s of r)["$","_"].includes(s)?e.push(s):t.push(s);return{prefixes:e,properties:t}},R=(r=[])=>e=>{if(r.length===0||!e)return e;const{prefixes:t,properties:s}=w(r);return y(e,n=>!s.includes(n)&&!t.includes(n[0]))},q=(r=[])=>e=>{if(r.length===0||!e)return e;const{prefixes:t,properties:s}=w(r);return y(e,n=>s.includes(n)||t.includes(n[0]))},D=(r,e)=>{const t=new Intl.Collator(e.$locale,{numeric:e.$numeric,caseFirst:e.$caseFirst,sensitivity:e.$sensitivity}),s=Object.keys(e).filter(n=>!n.startsWith("$"));for(const n of s)r=r.sort((o,i)=>{const c=[l(o,n),l(i,n)].map(u=>{if(u!==null)return u instanceof Date?u.toISOString():u});return e[n]===-1&&c.reverse(),t.compare(c[0],c[1])});return r},j=(r,e="Expected an array")=>{if(!Array.isArray(r))throw new TypeError(e)},a=r=>Array.isArray(r)?r:r?[r]:[],S=["sort","where","only","without"],x=(r,e)=>{const t={...e};for(const o of S)t[o]&&(t[o]=a(t[o]));const s=(o,i=c=>c)=>(...c)=>(t[o]=i(...c),n),n={params:()=>({...t,...t.where?{where:[...a(t.where)]}:{},...t.sort?{sort:[...a(t.sort)]}:{}}),only:s("only",a),without:s("without",a),where:s("where",o=>[...a(t.where),...a(o)]),sort:s("sort",o=>[...a(t.sort),...a(o)]),limit:s("limit",o=>parseInt(String(o),10)),skip:s("skip",o=>parseInt(String(o),10)),find:()=>r(n),findOne:()=>(t.first=!0,r(n)),findSurround:(o,i)=>(t.surround={query:o,...i},r(n)),locale:o=>n.where({_locale:o})};return n};function m(r){return JSON.stringify(r,k)}function k(r,e){return e instanceof RegExp?`--REGEX ${e.toString()}`:e}const A=r=>{let e=m(r);return e=typeof Buffer<"u"?Buffer.from(e).toString("base64"):btoa(e),e=e.replace(/\+/g,"-").replace(/\//g,"_").replace(/=/g,""),(e.match(/.{1,100}/g)||[]).join("/")},C=()=>async r=>{const{content:e}=h().public,t=r.params(),s=e.experimental.stripQueryParameters?f(`/query/${`${p(t)}.${e.integrity}`}/${A(t)}.json`):f(`/query/${p(t)}.${e.integrity}.json`);if(P())return(await $(()=>import("./client-db.a04e1eda.js"),["./client-db.a04e1eda.js","./entry.cefe3147.js","./entry.c396e258.css","./index.a6ef77ff.js","./_commonjsHelpers.87174ba5.js","./preview.485816aa.js","./utils.e5367885.js"],import.meta.url).then(i=>i.useContentDatabase())).fetch(r);const n=await $fetch(s,{method:"GET",responseType:"json",params:e.experimental.stripQueryParameters?void 0:{_params:m(t),previewToken:E().getPreviewToken()}});if(typeof n=="string"&&n.startsWith("<!DOCTYPE html>"))throw new Error("Not found");return n};function B(r,...e){const{content:t}=h().public,s=x(C(),typeof r!="string"?r:{});let n;typeof r=="string"&&(n=g(d(r,...e)));const o=s.params;return s.params=()=>{const i=o();return n&&(i.where=i.where||[],i.first&&(i.where||[]).length===0?i.where.push({_path:_(n)}):i.where.push({_path:new RegExp(`^${n.replace(/[-[\]{}()*+.,^$\s/]/g,"\\$&")}`)})),i.sort?.length||(i.sort=[{_file:1,$numeric:!0}]),t.locales.length&&(i.where?.find(u=>u._locale)?._locale||(i.where=i.where||[],i.where.push({_locale:t.defaultLocale}))),i},s}export{j as a,a as b,L as c,q as d,A as e,x as f,l as g,m as j,B as q,D as s,R as w};
@@ -0,0 +1 @@
1
+ import{_ as f}from"./StateEditor.vue.d274c06c.js";import{_ as d}from"./NSectionBlock.53fae3a6.js";import{_ as g}from"./HelpFab.vue.8f58b14e.js";import{a as C,a3 as v,L as x,h as r,o as c,e as p,u as o,l as e,w as s,f as h,F as b}from"./entry.cefe3147.js";import"./NIconButton.vue.b4278b36.js";import"./NIconTitle.vue.321882c6.js";import"./ContentRenderer.914f3a38.js";import"./ContentRendererMarkdown.fd0df501.js";import"./index.a6ef77ff.js";import"./preview.485816aa.js";import"./query.851664d2.js";import"./utils.e5367885.js";const y={key:0},H=C({__name:"runtime-configs",setup(k){const n=v(),l=x(),m=r(()=>n.value?.nuxt.payload),u=r(()=>{const t={...l.value?.runtimeConfig};return delete t.public,delete t.app,t});return(t,B)=>{const a=f,i=d,_=g;return c(),p(b,null,[o(n)?(c(),p("div",y,[e(i,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:s(()=>[e(a,{state:o(n).appConfig},null,8,["state"])]),_:1}),e(i,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:s(()=>[e(a,{state:o(m).config?.public},null,8,["state"])]),_:1}),e(i,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:s(()=>[e(a,{state:o(u),readonly:""},null,8,["state"])]),_:1})])):h("",!0),e(_,{path:"/runtime-configs"})],64)}}});export{H as default};
@@ -0,0 +1,9 @@
1
+ import{F as ce,_ as ie}from"./fuse.esm.dae60b17.js";import{_ as Y}from"./Badge.0c2ba14d.js";import{a as Z,L as de,aE as pe,h as p,V as k,o as a,e as m,m as c,c as x,w as l,N as h,t as y,u as e,O as b,b2 as G,F as j,r as A,af as ee,l as s,f as $,a6 as me,q as fe,b3 as _e,v as ve,b4 as he,b5 as ye,I as ge,aJ as xe}from"./entry.cefe3147.js";import{_ as be}from"./NSelect.vue.67595372.js";import{_ as Ce}from"./NTextInput.vue.c65cc1e4.js";import{_ as ke}from"./CodeSnippets.vue.246adc67.js";import{_ as te}from"./NPanelGrids.a0c996c3.js";import{_ as $e}from"./NCodeBlock.vue.da19eaf4.js";import{u as Re}from"./editor.e9c81b63.js";import{C as X}from"./constants.126da185.js";import{_ as Te}from"./PanelLeftRight.vue.a115e8d3.js";const qe={"h-full":"","w-full":"",flex:"~ col"},je={flex:"~ col gap-2","flex-none":"",p4:"","navbar-glass":""},Ve={flex:"~ gap2"},Se={flex:"~ gap2","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},we=c("div",{"flex-auto":""},null,-1),Ne={key:0,border:"b base","items-center":"",px4:"",py2:"",grid:"~ cols-[max-content_1fr] gap-2"},Ee={"text-right":"","font-mono":""},Ue={key:1,relative:""},Pe={key:2,px4:"",py2:"",flex:"~ col gap-2",border:"b base"},Oe={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},Be=c("div",null,"Response",-1),Le={key:1,"text-xs":"",op50:""},Me=c("div",{"flex-auto":""},null,-1),De=c("div",{op50:""}," Request finished in ",-1),Fe=Z({__name:"ServerRouteDetails",props:{route:{type:Object,required:!0}},setup(P){const O=P,R=de(),u=pe({contentType:"text/plain",data:"",statusCode:200,error:void 0}),T=p(()=>u.contentType.includes("application/json")?"json":u.contentType.includes("text/html")?"html":u.contentType.includes("text/css")?"css":u.contentType.includes("text/javascript")?"javascript":u.contentType.includes("text/xml")||u.contentType.includes("application/xml")?"xml":"text"),q=p(()=>T.value==="json"?JSON.stringify(u.data,null,2):u.data),w=k(0),C=k(!1),N=k(!1),I=Re(),B=p(()=>O.route.route?.split(/((?:\*\*)?:[\w_]+)/g)),V=p(()=>B.value?.filter(n=>n.startsWith(":")||n.startsWith("**:"))||[]),g=k(O.route.method||"GET"),E=k({}),U=k([{key:"",value:""}]),S=k([{key:"",value:""}]),f=k([{key:"Content-Type",value:"application/json"}]),J=p(()=>S.value.filter(({key:n})=>n).length),z=p(()=>f.value.filter(({key:n})=>n).length),W=p(()=>{const n={};for(let t=0;t<U.value.length;t++){const{key:o,value:i}=U.value[t];n[o]=i}return Object.keys(n)[0]?n:null}),ne=p(()=>{let n=R.value?.devServer.url||"http://localhost";n.charAt(n.length-1)==="/"&&(n=n.slice(0,-1));const t=R.value?.devServer.port||3e3;return n.includes(`:${t}`)?n:`${n}:${t}`}),L=p(()=>{let n=new URLSearchParams(Object.fromEntries(S.value.filter(({key:i})=>i).map(({key:i,value:_})=>[i,_]))).toString();n&&(n=`?${n}`);const t=(B.value?.map(i=>(i.startsWith(":")||i.startsWith("**:"))&&E.value[i]||i).join("")||"")+n;let o=R.value?.app.baseURL||"";return(o==="./"||o===".")&&(o=""),o.endsWith("/")&&(o=o.slice(0,-1)),o+t}),oe=p(()=>ne.value+L.value);async function K(){N.value=!0,C.value=!0,Object.assign(u,{lang:"text",contentType:"",data:"",content:"",error:void 0});const n=Date.now();try{u.data=await $fetch(oe.value,{method:g.value.toUpperCase(),headers:Object.fromEntries(f.value.filter(({key:t,value:o})=>t&&o).map(({key:t,value:o})=>[t,o])),query:Object.fromEntries(S.value.filter(({key:t,value:o})=>t&&o).map(({key:t,value:o})=>[t,o])),body:W.value,onResponse({response:t}){u.contentType=(t.headers.get("content-type")||"").toString().toLowerCase().trim(),u.statusCode=t.status},onResponseError(t){u.error=t.response._data,u.data=t.response._data}})}catch{}C.value=!1,w.value=Date.now()-n}const Q=p(()=>{const n=[],t=[],o=f.value.filter(({key:_,value:v})=>_&&v&&!(_==="Content-Type"&&v==="application/json")).map(({key:_,value:v})=>` '${_}': '${v}'`).join(`,
2
+ `);g.value.toUpperCase()!=="GET"&&t.push(`method: '${g.value.toUpperCase()}'`),o&&t.push(`headers: {
3
+ ${o}
4
+ }`),W.value&&t.push(`body: ${JSON.stringify(W.value,null,2)}`);const i=t.length?`, {
5
+ ${t.join(`,
6
+ `).split(`
7
+ `).map(_=>` ${_}`).join(`
8
+ `)}
9
+ }`:"";return n.push({name:"useFetch",lang:"javascript",docs:X.nuxt.useFetch,code:`const { data, pending, error, refresh } = useFetch('${L.value}'${i})`}),n.push({name:"$fetch",lang:"javascript",docs:X.nuxt.$fetch,code:`await $fetch('${L.value}'${i})`}),n}),d=k(V.value.length?"params":"query"),M=p(()=>{if(d.value==="query")return S.value;if(d.value==="body")return U.value;if(d.value==="headers")return f.value}),se=["GET","POST","PUT","PATCH","DELETE","HEAD"];return(n,t)=>{const o=me,i=be,_=Ce,v=fe,ae=ke,re=te,le=_e,H=Y,ue=$e;return a(),m("div",qe,[c("div",je,[c("div",Ve,[P.route.method?(a(),x(o,{key:0,class:b(("getRequestMethodClass"in n?n.getRequestMethodClass:e(G))(e(g))),"pointer-events-none":"",tabindex:"-1"},{default:l(()=>[h(y(e(g).toUpperCase()),1)]),_:1},8,["class"])):(a(),x(i,{key:1,modelValue:e(g),"onUpdate:modelValue":t[0]||(t[0]=r=>ee(g)?g.value=r:null),class:b(("getRequestMethodClass"in n?n.getRequestMethodClass:e(G))(e(g)))},{default:l(()=>[(a(),m(j,null,A(se,r=>c("option",{key:r,class:b(("getRequestMethodClass"in n?n.getRequestMethodClass:e(G))(r))},y(r.toUpperCase()),3)),64))]),_:1},8,["modelValue","class"])),s(_,{"model-value":e(L),disabled:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"primary xs"},null,8,["model-value"]),s(o,{n:"primary solid",onClick:K},{default:l(()=>[s(v,{icon:"carbon:send"})]),_:1})])]),c("div",Se,[e(V).length?(a(),x(o,{key:0,class:b(e(d)==="params"?"text-primary n-primary":"border-transparent! shadow-none!"),onClick:t[1]||(t[1]=r=>d.value="params")},{default:l(()=>[s(v,{icon:"i-carbon-text-selection"}),h(" Params ("+y(e(V).length)+") ",1)]),_:1},8,["class"])):$("",!0),s(o,{class:b(e(d)==="query"?"text-primary n-primary":"border-transparent! shadow-none!"),onClick:t[2]||(t[2]=r=>d.value="query")},{default:l(()=>[s(v,{icon:"i-carbon-help"}),h(" Query "+y(e(J)?`(${e(J)})`:""),1)]),_:1},8,["class"]),e(g)!=="GET"?(a(),x(o,{key:1,class:b(e(d)==="body"?"text-primary n-primary":"border-transparent! shadow-none!"),onClick:t[3]||(t[3]=r=>d.value="body")},{default:l(()=>[s(v,{icon:"i-carbon-document"}),h(" Body ")]),_:1},8,["class"])):$("",!0),s(o,{class:b(e(d)==="headers"?"text-primary n-primary":"border-transparent! shadow-none!"),onClick:t[4]||(t[4]=r=>d.value="headers")},{default:l(()=>[s(v,{icon:"i-carbon-html-reference"}),h(" Headers "+y(e(z)?`(${e(z)})`:""),1)]),_:1},8,["class"]),s(o,{class:b(e(d)==="snippet"?"text-primary n-primary":"border-transparent! shadow-none!"),onClick:t[5]||(t[5]=r=>d.value="snippet")},{default:l(()=>[s(v,{icon:"carbon:code"}),h(" Snippets ")]),_:1},8,["class"]),we,s(o,{icon:"carbon-launch",onClick:t[6]||(t[6]=r=>e(I)(P.route.filepath))},{default:l(()=>[h(" Open in Editor ")]),_:1})]),e(d)==="params"?(a(),m("div",Ne,[(a(!0),m(j,null,A(e(V),r=>(a(),m(j,{key:r},[c("div",Ee,y(r),1),s(_,{modelValue:e(E)[r],"onUpdate:modelValue":D=>e(E)[r]=D,placeholder:r,"flex-1":""},null,8,["modelValue","onUpdate:modelValue","placeholder"])],64))),128))])):$("",!0),e(d)==="snippet"?(a(),m("div",Ue,[e(Q).length?(a(),x(ae,{key:0,border:"b base","code-snippets":e(Q)},null,8,["code-snippets"])):$("",!0)])):e(M)?(a(),m("div",Pe,[(a(!0),m(j,null,A(e(M),(r,D)=>(a(),m("div",{key:D,flex:"~ gap-2","justify-around":""},[s(_,{modelValue:r.key,"onUpdate:modelValue":F=>r.key=F,placeholder:"Key","flex-1":"","font-mono":"",n:"sm"},null,8,["modelValue","onUpdate:modelValue"]),s(_,{modelValue:r.value,"onUpdate:modelValue":F=>r.value=F,placeholder:"Value","flex-1":"","font-mono":"",n:"sm"},null,8,["modelValue","onUpdate:modelValue"]),s(o,{n:"red",onClick:F=>e(M).splice(D,1)},{default:l(()=>[s(v,{icon:"carbon:delete"})]),_:2},1032,["onClick"])]))),128)),c("div",null,[s(o,{icon:"carbon-add",n:"sm primary",my1:"","px-3":"",onClick:t[7]||(t[7]=r=>e(M).push({key:"",value:""}))},{default:l(()=>[h(" Add ")]),_:1})])])):$("",!0),e(N)?e(C)?(a(),x(le,{key:4,"z-10":"","flex-auto":"","backdrop-blur":""},{default:l(()=>[h(" Fetching... ")]),_:1})):(a(),m(j,{key:5},[c("div",Oe,[Be,e(u).error?(a(),x(H,{key:0,"bg-red-400:10":"","text-red-400":""},{default:l(()=>[h(" Error ")]),_:1})):$("",!0),s(H,{class:b({"bg-orange-400:10 text-orange-400":e(u).error,"bg-green-400:10 text-green-400":!e(u).error})},{default:l(()=>[h(y(e(u).statusCode),1)]),_:1},8,["class"]),e(u).contentType?(a(),m("code",Le,y(e(u).contentType),1)):$("",!0),Me,De,s(H,{"bg-green-400:10":"","text-green-400":""},{default:l(()=>[h(y(e(w))+" ms ",1)]),_:1})]),s(ue,{"flex-auto":"","overflow-auto":"","py-2":"",code:e(q),lang:e(T)},null,8,["code","lang"])],64)):(a(),x(re,{key:3},{default:l(()=>[s(o,{n:"primary",onClick:K},{default:l(()=>[s(v,{icon:"carbon:send"}),h(" Send request ")]),_:1})]),_:1}))])}}}),Ge={flex:"~ gap1","text-sm":"",op50:""},Ae={key:0},Ie={"w-12":"","flex-none":"","text-right":""},We={"font-mono":"","text-sm":""},He=c("div",{"x-divider":""},null,-1),Je=c("span",{op75:""},"Select a route to start",-1),at=Z({__name:"server-routes",setup(P){const O=ve(),R=he(),u=p(()=>new ce(R.value||[],{keys:["method","route"],shouldSort:!0})),T=p(()=>R.value?.find(C=>C.path===O.query?.path)),q=k(""),w=p(()=>R.value?q.value?u.value.search(q.value).map(C=>C.item):R.value:[]);return(C,N)=>{const I=ie,B=Y,V=ge,g=Fe,E=xe,U=te,S=Te;return a(),x(S,null,{left:l(()=>[s(I,{search:e(q),"onUpdate:search":N[0]||(N[0]=f=>ee(q)?q.value=f:null),pb2:""},{default:l(()=>[c("div",Ge,[e(q)?(a(),m("span",Ae,y(e(w).length)+" matched · ",1)):$("",!0),c("span",null,y(e(R)?.length)+" routes in total",1)])]),_:1},8,["search"]),(a(!0),m(j,null,A(e(w),f=>(a(),m(j,{key:f.id},[s(V,{flex:"~ gap-2","items-center":"","hover-bg-active":"",px2:"",py1:"",class:b([{"bg-active":e(T)?.path===f.path}]),to:{query:{path:f.path}}},{default:l(()=>[c("div",Ie,[s(B,{class:b(("getRequestMethodClass"in C?C.getRequestMethodClass:e(G))(f.method||"*")),title:"updates available",textContent:y((f.method||"*").toUpperCase())},null,8,["class","textContent"])]),c("span",We,y(f.route),1)]),_:2},1032,["class","to"]),He],64))),128))]),right:l(()=>[(a(),x(ye,{max:10},[e(T)?(a(),x(g,{key:e(T).path,route:e(T)},null,8,["route"])):$("",!0)],1024)),e(T)?$("",!0):(a(),x(U,{key:0},{default:l(()=>[s(E,{px6:"",py2:""},{default:l(()=>[Je]),_:1})]),_:1}))]),_:1})}}});export{at as default};
@@ -0,0 +1 @@
1
+ import{_ as F}from"./NIconTitle.vue.321882c6.js";import{_ as O}from"./NSwitch.vue.8577379b.js";import{a as j,bc as I,o as i,e as u,l as a,m as e,F as m,r as V,u as s,w as n,af as f,az as L,bd as E,O as T,t as g,c as H,f as A,N as K,aK as R,a6 as q}from"./entry.cefe3147.js";import{_ as G}from"./NSelect.vue.67595372.js";import{_ as J}from"./NCheckbox.vue.93b3bec2.js";const M={px6:"",py6:""},P={grid:"~ md:cols-2 gap-x-10 gap-y-3","max-w-300":""},Q={flex:"~ col gap-1",py3:""},W=e("h3",{mb1:"","text-lg":""}," Tabs ",-1),X={flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":""},Y={capitalize:"",op75:""},Z={flex:"~ col gap-1",border:"~ base rounded",py3:"",pl4:"",pr2:""},ee={py3:"",flex:"~ col gap-1",border:"b base"},oe=e("h3",{mb1:"","text-lg":""}," Appearance ",-1),te=e("div",{"carbon-sun":"","dark:carbon-moon":"","translate-y--1px":""},null,-1),le={py3:"",flex:"~ col gap-1",border:"b base"},ae=e("h3",{mb1:"","text-lg":""}," UI Scale ",-1),se=["value"],ne={py3:"",flex:"~ col gap-1"},ie=e("h3",{mb1:"","text-lg":""}," Features ",-1),de=e("span",null,"Close DevTools when clicking outside",-1),ue=e("span",null,"Show experimental features",-1),re=e("span",null,"Show help buttons",-1),ve=j({__name:"settings",setup(ce){const{interactionCloseOnOutsideClick:v,showExperimentalFeatures:x,showHelpButtons:h,scale:y,hiddenTabs:r,hiddenTabCategories:c}=L(),C=[["Tiny",12/15],["Small",14/15],["Normal",1],["Large",16/15],["Huge",18/15]],N=I(!1);function w(d,t){t?r.value=r.value.filter(p=>p!==d):r.value.push(d)}function S(d,t){t?c.value=c.value.filter(p=>p!==d):c.value.push(d)}return(d,t)=>{const p=F,k=O,U=R,$=q,B=E,D=G,b=J;return i(),u("div",M,[a(p,{class:"mb-5 text-xl op75",icon:"i-carbon-settings-adjust",text:"DevTools Settings"}),e("div",P,[e("div",Q,[W,(i(!0),u(m,null,V(s(N),([o,_])=>(i(),u(m,{key:o},[_.length?(i(),u("div",{key:0,flex:"~ col gap-1","mx--1":"",class:T(s(c).includes(o)?"op50 grayscale":""),"pt-2":""},[a(k,{flex:"~ row-reverse",px2:"",py1:"","n-lime":"","model-value":!s(c).includes(o),"onUpdate:modelValue":l=>S(o,l)},{default:n(()=>[e("div",X,[e("span",Y,g(o),1)])]),_:2},1032,["model-value","onUpdate:modelValue"]),e("div",Z,[(i(!0),u(m,null,V(_,l=>(i(),H(k,{key:l.name,flex:"~ row-reverse",py1:"","n-primary":"","model-value":!s(r).includes(l.name),"onUpdate:modelValue":z=>w(l.name,z)},{default:n(()=>[e("div",{flex:"~ gap-2","flex-auto":"","items-center":"","justify-start":"",class:T(s(r).includes(l.name)?"op25":"")},[a(U,{"text-xl":"",icon:l.icon,title:l.title},null,8,["icon","title"]),e("span",null,g(l.title),1)],2)]),_:2},1032,["model-value","onUpdate:modelValue"]))),128))])],2)):A("",!0)],64))),128))]),e("div",null,[e("div",ee,[oe,e("div",null,[a(B,null,{default:n(({toggle:o,isDark:_})=>[a($,{n:"primary",onClick:l=>o()},{default:n(()=>[te,K(" "+g(_.value?"Dark":"Light"),1)]),_:2},1032,["onClick"])]),_:1})])]),e("div",le,[ae,a(D,{modelValue:s(y),"onUpdate:modelValue":t[0]||(t[0]=o=>f(y)?y.value=o:null),n:"primary"},{default:n(()=>[(i(),u(m,null,V(C,o=>e("option",{key:o[0],value:o[1]},g(o[0]),9,se)),64))]),_:1},8,["modelValue"])]),e("div",ne,[ie,a(b,{modelValue:s(v),"onUpdate:modelValue":t[1]||(t[1]=o=>f(v)?v.value=o:null),"n-primary":""},{default:n(()=>[de]),_:1},8,["modelValue"]),a(b,{modelValue:s(x),"onUpdate:modelValue":t[2]||(t[2]=o=>f(x)?x.value=o:null),"n-primary":""},{default:n(()=>[ue]),_:1},8,["modelValue"]),a(b,{modelValue:s(h),"onUpdate:modelValue":t[3]||(t[3]=o=>f(h)?h.value=o:null),"n-primary":""},{default:n(()=>[re]),_:1},8,["modelValue"])])])])])}}});export{ve as default};
@@ -0,0 +1 @@
1
+ import{_ as re}from"./NIconButton.vue.b4278b36.js";import{_ as le}from"./NSelect.vue.67595372.js";import{_ as ue}from"./NTextInput.vue.c65cc1e4.js";import{a as z,o as r,c as m,w as l,p as ie,ao as G,P as de,u as t,I as W,aO as ce,R as pe,V as I,h as j,v as P,aM as E,aG as me,s as _e,ar as fe,a4 as ye,S as _,H as F,m as u,l as c,e as p,r as q,t as g,F as x,af as L,N as d,O,aD as U,f as T,b1 as ve,ah as ge,b8 as he,aW as ke,q as be,a6 as xe,aJ as we}from"./entry.cefe3147.js";import{_ as Ce}from"./NPanelGrids.a0c996c3.js";import{_ as Ke}from"./PanelLeftRight.vue.a115e8d3.js";import{_ as Ne}from"./FilepathItem.vue.64e00c09.js";import"./editor.e9c81b63.js";const Ve=z({__name:"NLink",props:{to:null,href:null,target:null},setup(w){return(i,v)=>(r(),m(de(w.href||w.target?"a":t(W)),G(i.$props,{class:"n-link hover:n-link-hover n-transition n-link-base"}),{default:l(()=>[ie(i.$slots,"default")]),_:3},16))}}),$e={class:"h-[48px] flex items-center justify-between gap1 px-3"},Se={class:"w-full text-sm"},Ie=["value"],je=u("div",{"x-divider":""},null,-1),qe={key:0,"h-full":"","of-hidden":"",flex:"~ col"},Le={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},Ue={class:"flex items-center gap-4"},De={key:1},Me=["onKeyup"],Be=u("br",null,null,-1),Re={key:0,op50:""},Ae={key:1},Pe=u("code",null,"nitro.storage",-1),Ee=u("br",null,null,-1),Fe={"font-bold":""},Oe=u("br",null,null,-1),Te={"text-sm":""},ze=u("br",null,null,-1),tt=z({__name:"storage",async setup(w){let i,v;const H=ce(),h=pe(),k=I(""),y=I(""),a=j({get(){return P().query?.storage},set(n){h.replace({query:{storage:n}})}}),e=I(),b=j(()=>P().query?.key),{data:C}=([i,v]=E(()=>F("storageMounts",()=>_.getStorageMounts())),i=await i,v(),i),{data:K,refresh:D}=([i,v]=E(async()=>F("storageKeys",async()=>a.value?await _.getStorageKeys(a.value):[])),i=await i,v(),i),J=H.hook("storage:key:update",async(n,s)=>{if(!(!a.value||n.split(":")[0]!==a.value)&&(await D(),b.value===n)){if(s==="remove")return h.replace({query:{storage:a.value}});await V(b.value)}});me(J),_e(a,D),fe(async()=>{if(!b.value){e.value=null;return}V(b.value)}),ye("keydown",n=>{n.key==="s"&&(n.ctrlKey||n.metaKey)&&($(),n.preventDefault())});function N(n){return n.replace(`${a.value}:`,"")}const Q=j(()=>K.value?K.value.filter(n=>n.includes(k.value)):[]);async function V(n){const s=await _.getStorageItem(n);e.value={key:n,updatedKey:N(n),editingKey:!1,content:s,updatedContent:s}}async function X(){if(!y.value||!a.value)return;const n=`${a.value}:${y.value}`;K.value?.includes(n)||await _.setStorageItem(n,""),h.replace({query:{storage:a.value,key:n}}),y.value=""}async function $(){e.value&&(await _.setStorageItem(e.value.key,e.value.updatedContent),await V(e.value.key))}async function Y(){!e.value||!a.value||(await _.removeStorageItem(e.value.key),e.value=null)}async function Z(){if(!e.value||!a.value)return;const n=`${a.value}:${e.value.updatedKey}`;await _.setStorageItem(n,e.value.updatedContent),await _.removeStorageItem(e.value.key),h.replace({query:{storage:a.value,key:n}})}return(n,s)=>{const ee=re,te=le,S=ue,ne=W,oe=be,M=xe,B=Ve,R=we,A=Ce,ae=Ke,se=Ne;return t(a)?(r(),m(ae,{key:0,"storage-key":"tab-storage"},{left:l(()=>[u("div",$e,[c(ee,{icon:"carbon-chevron-left","ml--1":"",onClick:s[0]||(s[0]=o=>a.value="")}),u("div",Se,[c(te,{modelValue:t(a),"onUpdate:modelValue":s[1]||(s[1]=o=>L(a)?a.value=o:null),n:"primary",icon:"carbon-data-base"},{default:l(()=>[(r(!0),p(x,null,q(t(C),(o,f)=>(r(),p("option",{key:f,value:f},g(f),9,Ie))),128))]),_:1},8,["modelValue"])])]),c(S,{modelValue:t(k),"onUpdate:modelValue":s[2]||(s[2]=o=>L(k)?k.value=o:null),icon:"carbon-search",placeholder:"Search...",n:"primary sm",border:"y x-none base! rounded-0",class:"w-full py2 ring-0!"},null,8,["modelValue"]),(r(!0),p(x,null,q(t(Q),o=>(r(),p(x,{key:o},[c(ne,{block:"",truncate:"",px2:"",py1:"","font-mono":"","text-sm":"",to:{query:{key:o,storage:t(a)}},class:O(o===t(e)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover")},{default:l(()=>[d(g(N(o)),1)]),_:2},1032,["to","class"]),je],64))),128)),c(S,{modelValue:t(y),"onUpdate:modelValue":s[3]||(s[3]=o=>L(y)?y.value=o:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:U(X,["enter"])},null,8,["modelValue","onKeyup"])]),right:l(()=>[t(e)?.key?(r(),p("div",qe,[u("div",Le,[u("div",Ue,[t(e).editingKey?(r(),m(S,{key:0,modelValue:t(e).updatedKey,"onUpdate:modelValue":s[4]||(s[4]=o=>t(e).updatedKey=o),onKeyup:U(Z,["enter"])},null,8,["modelValue","onKeyup"])):(r(),p("code",De,[d(g(N(t(e).key))+" ",1),c(oe,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:s[5]||(s[5]=o=>t(e).editingKey=!0)})])),t(e).editingKey?T("",!0):(r(),m(M,{key:2,n:"green xs",disabled:t(e).content===t(e).updatedContent,class:O({"border-green":t(e).content!==t(e).updatedContent}),onClick:$},{default:l(()=>[d(" Save ")]),_:1},8,["disabled","class"]))]),u("div",null,[c(M,{n:"red xs",onClick:Y},{default:l(()=>[d(" Delete ")]),_:1})])]),typeof t(e).content=="object"?(r(),m(t(ve),G({key:0,modelValue:t(e).updatedContent,"onUpdate:modelValue":s[6]||(s[6]=o=>t(e).updatedContent=o),class:[[n.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},n.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):ge((r(),p("textarea",{key:1,"onUpdate:modelValue":s[7]||(s[7]=o=>t(e).updatedContent=o),placeholder:"Item value...",class:"h-full of-auto p-4 font-mono text-sm outline-none",onKeyup:U(ke($,["ctrl"]),["enter"])},null,40,Me)),[[he,t(e).updatedContent]])])):(r(),m(A,{key:1},{default:l(()=>[c(R,{px6:"",py4:""},{default:l(()=>[d(" Select one key to start."),Be,d("Learn more about "),c(B,{href:"https://nitro.unjs.io/guide/introduction/storage",n:"orange",target:"_blank"},{default:l(()=>[d(" Nitro storage ")]),_:1})]),_:1})]),_:1}))]),_:1})):(r(),m(A,{key:1},{default:l(()=>[Object.keys(t(C)).length?(r(),p("p",Re," Select one storage to start: ")):(r(),p("p",Ae,[d(" No custom storage defined in "),Pe,d("."),Ee,d(" Learn more about "),c(B,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:l(()=>[d(" Nitro storage ")]),_:1})])),(r(!0),p(x,null,q(t(C),(o,f)=>(r(),m(R,{key:f,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:Ge=>a.value=f},{default:l(()=>[u("span",Fe,g(f),1),Oe,u("span",Te,g(o.driver)+" driver",1),ze,o.base?(r(),m(se,{key:0,"text-xs":"",filepath:o.base},null,8,["filepath"])):T("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}});export{tt as default};
@@ -0,0 +1 @@
1
+ import{a as T,V as y,aO as $,ax as A,b9 as R,ba as V,a4 as B,S as f,o,e as _,m as c,l as E,u as e,c as m,f as x,t as k,F as g,bb as I,v as q,R as F,h as L,ar as M,r as z,N as w,w as D,O as h,aW as O,q as S,I as U}from"./entry.cefe3147.js";import{_ as C}from"./NIconButton.vue.b4278b36.js";const j={border:"t base",flex:"~ gap-2","items-center":"",p2:""},W={"text-sm":"",op50:""},G=T({__name:"TerminalView",props:{id:null},setup(p){const a=p,d=y(),v=$(),n=y();let s;A(async()=>{s=new R.Terminal({convertEol:!0,cols:80,screenReaderMode:!0});const t=new V.FitAddon;s.loadAddon(t),s.open(d.value),t.fit(),B(window,"resize",()=>{t.fit()}),n.value=await f.getTerminalDetail(a.id),n.value?.buffer&&s.write(n.value.buffer),v.hook("devtools:terminal:data",({id:i,data:l})=>{i===a.id&&s.write(l)})});function u(){f.runTerminalAction(a.id,"clear"),s?.clear()}return(t,i)=>{const l=C;return o(),_(g,null,[c("div",{ref_key:"container",ref:d,"h-full":"","w-full":"","of-auto":"","bg-black":""},null,512),c("div",j,[E(l,{title:"Clear",icon:"i-carbon-clean",onClick:i[0]||(i[0]=b=>u())}),e(n)?.restartable?(o(),m(l,{key:0,title:"Restart",icon:"carbon-renew",onClick:i[1]||(i[1]=b=>("rpc"in t?t.rpc:e(f)).runTerminalAction(p.id,"restart"))})):x("",!0),e(n)?.terminatable?(o(),m(l,{key:1,title:"Terminate",icon:"carbon-delete",onClick:i[2]||(i[2]=b=>("rpc"in t?t.rpc:e(f)).runTerminalAction(p.id,"terminate"))})):x("",!0),c("span",W,k(e(n)?.description),1)])],64)}}}),H={key:0,"h-full":"","w-full":"","of-hidden":"",grid:"~ rows-[max-content_1fr_max-content]"},J={flex:"~",border:"b base","flex-1":"","items-center":"","navbar-glass":""},K={key:1,p10:""},P={key:1,"h-full":"",flex:"","items-center":"","justify-center":""},Q=c("em",{op50:""},"No terminal attached",-1),X=[Q],ne=T({__name:"terminals",setup(p){const a=I(),d=q(),v=F(),n=L(()=>{const u=d.query.id;return a.value?.find(t=>t.id===u)});function s(u){f.runTerminalAction(u,"remove"),v.replace("/modules/terminals")}return M(()=>{!d.query.id&&a.value?.length&&v.replace(`/modules/terminals?id=${encodeURIComponent(a.value[0].id)}`)}),(u,t)=>{const i=S,l=C,b=U,N=G;return e(a)?.length?(o(),_("div",H,[c("div",J,[(o(!0),_(g,null,z(e(a),r=>(o(),m(b,{key:r.id,border:"r base",flex:"~ gap-2","items-center":"",px3:"",py2:"",class:h(r.id===e(n)?.id?"bg-active":""),to:`/modules/terminals?id=${encodeURIComponent(r.id)}`},{default:D(()=>[r.icon?(o(),m(i,{key:0,icon:r.icon},null,8,["icon"])):x("",!0),c("span",{class:h(r.id===e(n)?.id?"":"op50")},k(r.name)+k(r.isTerminated?" (terminated)":""),3),r.isTerminated?(o(),m(l,{key:1,icon:"carbon-close","mx--2":"",onClick:O(Y=>s(r.id),["stop"])},null,8,["onClick"])):x("",!0)]),_:2},1032,["class","to"]))),128))]),e(n)?(o(),m(N,{id:e(n).id,key:e(n).id},null,8,["id"])):(o(),_("div",K,[w(" Terminal "),c("code",null,k(e(d).query.id),1),w(" not found ")]))])):(o(),_("div",P,X))}}});export{ne as default};