@nuxt/devtools 1.4.1 → 1.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (196) hide show
  1. package/dist/chunks/analyze-build.mjs +1 -1
  2. package/dist/chunks/module-main.mjs +648 -648
  3. package/dist/chunks/vite-inspect.mjs +1 -1
  4. package/dist/chunks/vscode.mjs +15 -15
  5. package/dist/client/200.html +18 -34
  6. package/dist/client/404.html +18 -34
  7. package/dist/client/_nuxt/__blank-c3ogaker.js +1 -0
  8. package/dist/client/_nuxt/analyze-build-ea1eck8p.js +1 -0
  9. package/dist/client/_nuxt/assets-n3kfhorl.js +16 -0
  10. package/dist/client/_nuxt/builds/latest.json +1 -1
  11. package/dist/client/_nuxt/builds/meta/9a9f67ed-5b9a-4514-bf49-62859c510bf6.json +1 -0
  12. package/dist/client/_nuxt/client-klf75x38.js +1 -0
  13. package/dist/client/_nuxt/code-diff.vue-3ei6zne1.js +8 -0
  14. package/dist/client/_nuxt/code-snippets.vue-jr6ih8m7.js +1 -0
  15. package/dist/client/_nuxt/components-c38lzacq.js +1 -0
  16. package/dist/client/_nuxt/components-tree-ihs546mg.js +1 -0
  17. package/dist/client/_nuxt/composable-item.vue-fyg5hnt4.js +1 -0
  18. package/dist/client/_nuxt/custom-_name_-eeczuiaf.js +1 -0
  19. package/dist/client/_nuxt/default-iofn16rr.js +1 -0
  20. package/dist/client/_nuxt/duration-display.vue-h3qa2740.js +1 -0
  21. package/dist/client/_nuxt/entry.css-bgn3dvs3.css +1 -0
  22. package/dist/client/_nuxt/error-404-m1rb28qo.js +1 -0
  23. package/dist/client/_nuxt/error-404.css-l9hojrit.css +1 -0
  24. package/dist/client/_nuxt/error-500-diual75d.js +1 -0
  25. package/dist/client/_nuxt/error-500.css-jiufalsw.css +1 -0
  26. package/dist/client/_nuxt/error-j0kod4j7.js +9 -0
  27. package/dist/client/_nuxt/filepath-item.vue-gspuql6t.js +1 -0
  28. package/dist/client/_nuxt/full-gbkjzbjn.js +1 -0
  29. package/dist/client/_nuxt/help-fab.vue-hr5z89ai.js +1 -0
  30. package/dist/client/_nuxt/hooks-bmqjn5uk.js +1 -0
  31. package/dist/client/_nuxt/imports-bpqh8uz0.js +1 -0
  32. package/dist/client/_nuxt/index-i6v3sxsq.js +1 -0
  33. package/dist/client/_nuxt/index-kk8qg4i0.js +2 -0
  34. package/dist/client/_nuxt/l4ouzdbv.js +16 -0
  35. package/dist/client/_nuxt/launch-page.vue-o72v57lt.js +1 -0
  36. package/dist/client/_nuxt/modules-hfiy1oig.js +1 -0
  37. package/dist/client/_nuxt/nbadge-nscxg0ea.js +1 -0
  38. package/dist/client/_nuxt/ncheckbox.vue-e9ud9j5x.js +1 -0
  39. package/dist/client/_nuxt/ncode-block.vue-bfbbo3c9.js +2 -0
  40. package/dist/client/_nuxt/ndrawer.vue-mplxtid5.js +1 -0
  41. package/dist/client/_nuxt/ndropdown.vue-e87kxadx.js +1 -0
  42. package/dist/client/_nuxt/nicon-title.vue-g9trlv29.js +1 -0
  43. package/dist/client/_nuxt/nlink.vue-eiz3iwjv.js +1 -0
  44. package/dist/client/_nuxt/nmarkdown.vue-nnge8mex.js +1 -0
  45. package/dist/client/_nuxt/nnavbar.vue-g8533enj.js +1 -0
  46. package/dist/client/_nuxt/none-e5nk9q3m.js +1 -0
  47. package/dist/client/_nuxt/nsection-block-mvrkafth.js +1 -0
  48. package/dist/client/_nuxt/nselect-tabs.vue-fwkap4uo.js +1 -0
  49. package/dist/client/_nuxt/nselect.vue-fw7xtqj5.js +1 -0
  50. package/dist/client/_nuxt/open-graph-mg0wvem5.js +3 -0
  51. package/dist/client/_nuxt/{open-graph.-BQyihv8.css → open-graph.css-np61an3p.css} +1 -1
  52. package/dist/client/_nuxt/overview-dwng171y.js +1 -0
  53. package/dist/client/_nuxt/pages-dw5vn1ay.js +1 -0
  54. package/dist/client/_nuxt/payload-n5bpui5g.js +1 -0
  55. package/dist/client/_nuxt/pinia-hflvu3wk.js +1 -0
  56. package/dist/client/_nuxt/plugins-is0jalvz.js +1 -0
  57. package/dist/client/_nuxt/runtime-configs-j2weq3a8.js +1 -0
  58. package/dist/client/_nuxt/server-route-inputs.vue-f12vix3z.js +1 -0
  59. package/dist/client/_nuxt/server-routes-fukasdvq.js +9 -0
  60. package/dist/client/_nuxt/server-tasks-k1h90jj9.js +1 -0
  61. package/dist/client/_nuxt/settings-bwoka9ty.js +1 -0
  62. package/dist/client/_nuxt/stacktrace-list.vue-ctsox658.js +1 -0
  63. package/dist/client/_nuxt/state-components-3qxyvdiu.js +1 -0
  64. package/dist/client/_nuxt/state-editor.vue-mh0eij72.js +1 -0
  65. package/dist/client/_nuxt/state-modules-fxsj7vyw.js +1 -0
  66. package/dist/client/_nuxt/storage-i7qr12jo.js +1 -0
  67. package/dist/client/_nuxt/terminals-elxq15i6.js +1 -0
  68. package/dist/client/_nuxt/terminals.css-o071tnq5.css +1 -0
  69. package/dist/client/_nuxt/timeline-o2dlglei.js +31 -0
  70. package/dist/client/_nuxt/timeline.css-i7fpg75n.css +1 -0
  71. package/dist/client/_nuxt/unocss-runtime-ks657l4w.js +1 -0
  72. package/dist/client/_nuxt/vendor/json-editor-vue-mdfcgt41.js +124 -0
  73. package/dist/client/_nuxt/vendor/json-editor-vue.css-o0jf01nd.css +1 -0
  74. package/dist/client/_nuxt/vendor/shiki-fpe2sz4h.js +87 -0
  75. package/dist/client/_nuxt/vendor/unocss-mnpxkox6.js +2 -0
  76. package/dist/client/_nuxt/vendor/unocss.css-na153c8v.css +1 -0
  77. package/dist/client/_nuxt/vendor/vis-cum19y28.js +98 -0
  78. package/dist/client/_nuxt/{BMmGYe_n.js → vendor/xterm-h0ftnevm.js} +6 -6
  79. package/dist/client/_nuxt/{terminals.BIEho_Pa.css → vendor/xterm.css-egivkam7.css} +1 -1
  80. package/dist/client/_nuxt/virtual-files-j88ybqgt.js +1 -0
  81. package/dist/client/_nuxt/vue-virtual-scroller.esm-k82i9hy2.js +2 -0
  82. package/dist/client/index.html +18 -34
  83. package/dist/module.json +1 -1
  84. package/dist/runtime/function-metrics-helpers.d.ts +1 -1
  85. package/dist/runtime/function-metrics-helpers.js +1 -1
  86. package/dist/runtime/plugins/view/FrameBox.vue +1 -1
  87. package/dist/runtime/plugins/view/Main.vue +3 -3
  88. package/dist/runtime/plugins/view/client.d.ts +1 -2
  89. package/dist/runtime/plugins/view/client.js +2 -2
  90. package/dist/runtime/plugins/view/state.d.ts +1 -2
  91. package/dist/runtime/plugins/view/utils.d.ts +12 -12
  92. package/dist/runtime/settings.d.ts +1 -1
  93. package/dist/runtime/shared/hooks.d.ts +0 -1
  94. package/dist/runtime/use-nuxt-devtools.d.ts +1 -1
  95. package/dist/runtime/use-nuxt-devtools.js +1 -1
  96. package/dist/runtime/vue-devtools/overlay.js +1 -1
  97. package/package.json +35 -35
  98. package/dist/client/_nuxt/32IlS-eL.js +0 -15
  99. package/dist/client/_nuxt/6ngNN4Yp.js +0 -1
  100. package/dist/client/_nuxt/7oK7PdYH.js +0 -1
  101. package/dist/client/_nuxt/B1veJI6T.js +0 -1
  102. package/dist/client/_nuxt/B3uNdhXb.js +0 -100
  103. package/dist/client/_nuxt/B6E6ObS_.js +0 -8
  104. package/dist/client/_nuxt/BECRlsCL.js +0 -1
  105. package/dist/client/_nuxt/BHh_UM9T.js +0 -1
  106. package/dist/client/_nuxt/BI3hykgO.js +0 -1
  107. package/dist/client/_nuxt/BKeomq25.js +0 -1
  108. package/dist/client/_nuxt/BKukfVLl.js +0 -1
  109. package/dist/client/_nuxt/BLmvGqlk.js +0 -1
  110. package/dist/client/_nuxt/BMbUeBqv.js +0 -74
  111. package/dist/client/_nuxt/BOV_C5BD.js +0 -1
  112. package/dist/client/_nuxt/BYelj_cE.js +0 -1
  113. package/dist/client/_nuxt/BZfs-ost.js +0 -1
  114. package/dist/client/_nuxt/BiRcA7Ly.js +0 -1
  115. package/dist/client/_nuxt/BiWblMbN.js +0 -505
  116. package/dist/client/_nuxt/BiWf_U1D.js +0 -1
  117. package/dist/client/_nuxt/BkwfBuTq.js +0 -1
  118. package/dist/client/_nuxt/BopA0WYG.js +0 -1
  119. package/dist/client/_nuxt/Br6ll-O0.js +0 -1
  120. package/dist/client/_nuxt/BsEGx9wN.js +0 -1
  121. package/dist/client/_nuxt/Bu2gNcUf.js +0 -1
  122. package/dist/client/_nuxt/Bxkoe-BC.js +0 -1
  123. package/dist/client/_nuxt/ByTwm2ax.js +0 -1
  124. package/dist/client/_nuxt/C1fpCDlE.js +0 -1
  125. package/dist/client/_nuxt/C2HmjCtb.js +0 -1
  126. package/dist/client/_nuxt/C8RrL2-P.js +0 -1
  127. package/dist/client/_nuxt/C9bF3W-8.js +0 -1032
  128. package/dist/client/_nuxt/CCJYS4Qc.js +0 -4
  129. package/dist/client/_nuxt/CCXTpRMt.js +0 -1
  130. package/dist/client/_nuxt/CCfUy938.js +0 -2
  131. package/dist/client/_nuxt/CEL3Rl_8.js +0 -1
  132. package/dist/client/_nuxt/CHuuZgn4.js +0 -699
  133. package/dist/client/_nuxt/CIvuwNIv.js +0 -2
  134. package/dist/client/_nuxt/CNzQK24q.js +0 -1
  135. package/dist/client/_nuxt/CO7Eo6nF.js +0 -1
  136. package/dist/client/_nuxt/CTKqK4eG.js +0 -2002
  137. package/dist/client/_nuxt/CUZJ8tqD.js +0 -1
  138. package/dist/client/_nuxt/CWDIGLyg.js +0 -1
  139. package/dist/client/_nuxt/C_n3_iyW.js +0 -16
  140. package/dist/client/_nuxt/C_tLznPO.js +0 -43
  141. package/dist/client/_nuxt/CbViG2Xw.js +0 -74
  142. package/dist/client/_nuxt/CbYhyuC0.js +0 -505
  143. package/dist/client/_nuxt/CoNBQO3e.js +0 -1
  144. package/dist/client/_nuxt/CsTmP73Z.js +0 -1
  145. package/dist/client/_nuxt/CupVZNk8.js +0 -25
  146. package/dist/client/_nuxt/D4C_EO1O.js +0 -9
  147. package/dist/client/_nuxt/D4FLysGE.js +0 -1
  148. package/dist/client/_nuxt/D4V9JMY9.js +0 -1
  149. package/dist/client/_nuxt/D5Dg5B9b.js +0 -1
  150. package/dist/client/_nuxt/D86udNSS.js +0 -1
  151. package/dist/client/_nuxt/DAg81ukK.js +0 -30
  152. package/dist/client/_nuxt/DC8MraHL.js +0 -666
  153. package/dist/client/_nuxt/DDDCUP5E.js +0 -3
  154. package/dist/client/_nuxt/DDMtKJxh.js +0 -1
  155. package/dist/client/_nuxt/DHFOa8tC.js +0 -200
  156. package/dist/client/_nuxt/DHZqFavZ.js +0 -2
  157. package/dist/client/_nuxt/DHsLiygU.js +0 -1
  158. package/dist/client/_nuxt/DJg41Obz.js +0 -1
  159. package/dist/client/_nuxt/DJn5wykB.js +0 -1
  160. package/dist/client/_nuxt/DK4oFTHQ.js +0 -200
  161. package/dist/client/_nuxt/DMjsYTya.js +0 -1
  162. package/dist/client/_nuxt/DOv5BRyJ.js +0 -1
  163. package/dist/client/_nuxt/DajZvwFy.js +0 -1
  164. package/dist/client/_nuxt/Dch3xQiY.js +0 -699
  165. package/dist/client/_nuxt/Di-fSNio.js +0 -1
  166. package/dist/client/_nuxt/DiyNht5f.js +0 -9
  167. package/dist/client/_nuxt/Dm9RYIcI.js +0 -1
  168. package/dist/client/_nuxt/DockxStG.js +0 -1
  169. package/dist/client/_nuxt/DpYuRYxj.js +0 -2072
  170. package/dist/client/_nuxt/DqpvVAaa.js +0 -1
  171. package/dist/client/_nuxt/DrswlxM3.js +0 -1
  172. package/dist/client/_nuxt/DtfHoqTV.js +0 -1
  173. package/dist/client/_nuxt/DvyTQcux.js +0 -1
  174. package/dist/client/_nuxt/J0gvLlTF.js +0 -1
  175. package/dist/client/_nuxt/L3q7etZW.js +0 -1
  176. package/dist/client/_nuxt/Q9LIRUci.js +0 -25
  177. package/dist/client/_nuxt/QxrU7fRC.js +0 -1
  178. package/dist/client/_nuxt/RBAD4-dW.js +0 -1
  179. package/dist/client/_nuxt/T8d8zkkH.js +0 -1
  180. package/dist/client/_nuxt/U0su7k1z.js +0 -1
  181. package/dist/client/_nuxt/UI0GwUC_.js +0 -1
  182. package/dist/client/_nuxt/YWCqik9X.js +0 -98
  183. package/dist/client/_nuxt/_ECCzcZq.js +0 -666
  184. package/dist/client/_nuxt/builds/meta/1766755b-b307-4775-82c4-edb6a4a7e185.json +0 -1
  185. package/dist/client/_nuxt/entry.eFSfOpqI.css +0 -1
  186. package/dist/client/_nuxt/error-404.HYsbWGh9.css +0 -1
  187. package/dist/client/_nuxt/error-500.BwPFg8q2.css +0 -1
  188. package/dist/client/_nuxt/nhLZZe93.js +0 -1
  189. package/dist/client/_nuxt/timeline.BVVcTKn-.css +0 -1
  190. /package/dist/client/_nuxt/{assets.DGT3vQsf.css → assets.css-l0xw7n9m.css} +0 -0
  191. /package/dist/client/_nuxt/{BcJws1i5.js → constants-b32h69zq.js} +0 -0
  192. /package/dist/client/_nuxt/{HelpFab.DHTsX8io.css → help-fab.css-l22fo390.css} +0 -0
  193. /package/dist/client/_nuxt/{NCodeBlock.BJ-XAY5s.css → ncode-block.css-enx2fys6.css} +0 -0
  194. /package/dist/client/_nuxt/{NSectionBlock.Dnwb6MN5.css → nsection-block.css-nz74xks7.css} +0 -0
  195. /package/dist/client/_nuxt/{Blr6EMNg.js → vendor/markdown-it-fvu08dbs.js} +0 -0
  196. /package/dist/client/_nuxt/{virtual-files.CWZEM3J4.css → virtual-files.css-i6taatd1.css} +0 -0
@@ -1,3 +0,0 @@
1
- import{d as N,a as C,aZ as oe,e as ne,ac as H,r as A,f as t,h as I,j as _,p as x,o,k as e,m as s,n as B,G as O,t as p,F as T,i as d,v as $,at as V,_ as J,a9 as R,a_ as P,a$ as se,b0 as ae,b1 as re,y as ie,z as ce,q as le,b2 as de,b3 as pe,b4 as me,b as ue,b5 as ge,b6 as he,b7 as _e,b8 as G,aC as fe,a2 as ve,l as be,ae as we,I as z,X as xe}from"./C_tLznPO.js";import{_ as ye}from"./BHh_UM9T.js";import{_ as U}from"./Dm9RYIcI.js";import{_ as q}from"./DqpvVAaa.js";import{_ as ke}from"./CIvuwNIv.js";import{_ as $e}from"./BOV_C5BD.js";import"./B1veJI6T.js";import"./CO7Eo6nF.js";const K=[{name:"title",suggestion:"required",head:{title:"[title]"},seoMeta:{title:"[title]"},docs:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title",description:"A concise and descriptive title for the browser that accurately summarizes the content of the page."},{name:"description",suggestion:"required",head:{meta:[{name:"description",content:"[description]"}]},seoMeta:{description:"[description]"},description:"A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results."},{name:"icon",suggestion:"recommended",head:{link:[{rel:"icon",type:"image/png",href:"/favicon.png"}]},description:"A small image that appears in the browser tab and bookmark menu to help users easily identify the page."},{name:"lang",suggestion:"recommended",head:{htmlAttrs:{lang:"en"}},description:"The primary language of the page to help search engines and browsers understand the content."},{name:"og:title",suggestion:"recommended",head:{meta:[{property:"og:title",content:"[og:title]"}]},seoMeta:{ogTitle:"[og:title]"},docs:"https://ogp.me/#metadata",description:"A title for the link preview used by social media platforms."},{name:"og:description",suggestion:"recommended",head:{meta:[{property:"og:description",content:"[og:description]"}]},seoMeta:{ogDescription:"[og:description]"},docs:"https://ogp.me/#metadata",description:"A description for the link preview used by social media platforms."},{name:"og:image",suggestion:"recommended",head:{meta:[{property:"og:image",content:"[og:image]"}]},seoMeta:{ogImage:"[og:image]"},docs:"https://ogp.me/#metadata",description:"An image for the link preview used by social media platforms."},{name:"og:url",suggestion:"recommended",head:{meta:[{property:"og:url",content:"[og:url]"}]},seoMeta:{ogUrl:"[og:url]"},docs:"https://ogp.me/#metadata",description:"A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page."},{name:"twitter:title",suggestion:"optional",head:{meta:[{name:"twitter:title",content:"[twitter:title]"}]},seoMeta:{twitterTitle:"[twitter:title]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A title for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:description",suggestion:"optional",head:{meta:[{name:"twitter:description",content:"[twitter:description]"}]},seoMeta:{twitterDescription:"[twitter:description]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A description for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:image",suggestion:"optional",head:{meta:[{name:"twitter:image",content:"[twitter:image]"}]},seoMeta:{twitterImage:"[twitter:image]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"An image for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:card",suggestion:"optional",head:{meta:[{name:"twitter:card",content:"summary"}]},seoMeta:{twitterCard:"summary"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"The type of Twitter card to use, which determines the type of card to display in link previews on Twitter."}],Se={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},Te=["onClick"],Ce=e("div",{border:"b base","flex-auto":""},null,-1),Ne={key:0,"x-divider":""},Me={key:1,"x-divider":""},Oe={flex:"~ gap-1 items-center",class:"px2 pt2",lg:"px4 py2"},Ie=e("div",{"i-carbon-warning":"","text-orange":""},null,-1),Ae={"w-full":"",p2:"",op75:""},Be={key:1,m4:"",flex:"~ col gap-2"},Re={flex:"~ gap-1 wrap items-center"},Le={key:1},je={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},Fe=N({__name:"OpenGraphMissingTabs",props:{tags:{},matchedRouteFilepath:{}},setup(h){const a=h,l=C(()=>K.filter(r=>!a.tags?.some(g=>g.name===r.name))),n=C(()=>{let r={};const g={};l.value.forEach(u=>{u.seoMeta?Object.assign(g,u.seoMeta):r=oe(r,u.head)});const b=[];if(Object.keys(g).length){const u=JSON.stringify(g,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useSeoMeta(${u})`)}if(Object.keys(r).length){const u=JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useHead(${u})`)}return b.join(`
2
-
3
- `)}),m=ne(),y=H(),k=["Missing Tags","Code Snippet"],f=A(k[0]);return(r,g)=>{const b=U,u=V,S=J,M=ke,L=q;return t(l).length?(o(),I(L,{key:0,text:"Missing Tags",description:`${t(l).length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:_(()=>[e("div",Se,[(o(),s(T,null,B(k,(i,c)=>e("button",{key:c,px4:"",py2:"",border:"r t base",hover:"bg-active",class:O(i===t(f)?"":"border-b"),onClick:v=>f.value=i},[e("div",{class:O(i===t(f)?"":"op30"),capitalize:""},p(i),3)],10,Te)),64)),Ce]),t(f)===k[0]?(o(),I(u,{key:0,grid:"~ cols-[1fr] lg:cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),s(T,null,B(t(l),(i,c)=>(o(),s(T,{key:c},[c?(o(),s("div",Ne)):x("",!0),c?(o(),s("div",Me)):x("",!0),e("div",Oe,[Ie,d(b,{"op-50":"",href:i.docs,target:"_blank",n:"orange"},{default:_(()=>[$(p(i.name),1)]),_:2},1032,["href"])]),e("div",Ae,p(i.description),1)],64))),128))]),_:1})):(o(),s("div",Be,[e("p",Re,[d(S,{icon:"carbon-copy",n:"xs","px-2":"",onClick:g[0]||(g[0]=i=>t(m)(t(n),"open-graph-suggestion"))},{default:_(()=>[$(" Copy ")]),_:1}),$(" the following code snippet and paste it into your "),r.matchedRouteFilepath?(o(),I(S,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:g[1]||(g[1]=i=>t(y)(r.matchedRouteFilepath))},{default:_(()=>[$(" page component ")]),_:1})):(o(),s("span",Le,"page component")),$(" to full fill the missing tags. ")]),d(u,{relative:"","n-code-block":""},{default:_(()=>[d(M,{code:t(n),lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),e("div",je,[d(S,{icon:"carbon-copy",onClick:g[2]||(g[2]=i=>t(m)(t(n),"open-graph-suggestion"))},{default:_(()=>[$(" Copy ")]),_:1})])]),_:1})]))]),_:1},8,["description"])):x("",!0)}}}),De={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},ze={class:"break-words border border-base px-[12px] py-[10px] antialiased"},Ee={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},Ge={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},He={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},Ve={class:"mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50",style:{"-webkit-line-clamp":"1","border-spacing":"0px","-webkit-box-orient":"vertical"}},Je=N({__name:"SocialFacebook",props:{card:{}},setup(h){return(a,l)=>(o(),s("div",De,[e("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(a.card.image)})`})},null,4),e("div",ze,[e("div",Ee,p(a.card.url),1),e("div",Ge,[e("div",He,p(a.card.title),1),e("div",Ve,p(a.card.description),1)])])]))}}),Pe={class:"max-w-[438px] min-w-[438px] of-hidden border border-base rounded-[16px] bg-base -outline-offset-1",style:{"font-family":"TwitterChirp, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"}},Ue={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},qe={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},Ke={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},We={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},Xe=N({__name:"SocialTwitter",props:{tags:{}},setup(h){const a=h,l=C(()=>P(a.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"twitter:image"},{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"twitter:image:alt"}],description:[{tag:"meta",name:"twitter:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]})),n=C(()=>l.value.image?a.tags.find(m=>m.tag==="meta"&&m.name==="twitter:card")?.value||"summary_large_image":"summary");return(m,y)=>(o(),s("div",Pe,[e("div",{class:O(["cursor-pointer overflow-hidden leading-[1.3em]",t(n)==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[t(n)==="summary_large_image"?(o(),s("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(t(l).image)})`})},null,4)):(o(),s("div",{key:1,class:"h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(t(l).image)})`})},null,4)),e("div",Ue,[e("div",qe,p(t(l).url),1),e("div",Ke,p(t(l).title),1),e("div",We,p(t(l).description),1)])],2)]))}}),Ye={class:"max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] shadow-md bg-base"},Ze={class:"break-words p-[10px] antialiased"},Qe={class:"block h-auto max-h-[50px] border-separate select-none break-words text-left",style:{"border-spacing":"0px"}},et={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},tt={class:"overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85"},ot=N({__name:"SocialLinkedin",props:{card:{}},setup(h){return(a,l)=>(o(),s("div",Ye,[e("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(a.card.image)})`})},null,4),e("div",Ze,[e("div",Qe,[e("div",et,p(a.card.title),1),e("div",tt,p(a.card.url),1)])])]))}}),nt=h=>(ie("data-v-6d584478"),h=h(),ce(),h),st={class:"relative max-w-[420px] min-w-[420px] rounded-[16px] rounded-bl-0 py-[6px] leading-[18px] drop-shadow-sm drop-shadow-color-[#10232f26] bg-base"},at={class:"pl-[10px] pr-[8px]"},rt={class:"text-[#3390ec] leading-normal underline"},it={class:"quote w-full flex"},ct={class:"flex flex-col gap-1"},lt={key:0,class:"my-[3px] overflow-hidden rounded"},dt=["src"],pt={class:"cursor-pointer text-sm text-[#3390ec]"},mt={class:"cursor-pointer text-sm"},ut={class:"cursor-pointer text-sm"},gt={class:"flex justify-end text-xs text-[#707579]"},ht=nt(()=>e("svg",{width:"11",height:"20",viewBox:"0 0 11 20",xmlns:"http://www.w3.org/2000/svg",class:"absolute bottom-0 ml-[-8.4px] translate-y-px text-white"},[e("g",{transform:"translate(9 -14)","fill-rule":"evenodd"},[e("path",{id:"corner-fill",d:"M-6 16h6v17c-.193-2.84-.876-5.767-2.05-8.782-.904-2.325-2.446-4.485-4.625-6.48A1 1 0 01-6 16z",transform:"matrix(1 0 0 -1 0 49)",fill:"currentColor"})])],-1)),_t=N({__name:"SocialTelegram",props:{card:{}},setup(h){const a=se(),l=ae(re(),"HH:mm");return(n,m)=>(o(),s("div",st,[e("div",at,[e("div",rt,p(n.card.url),1),e("div",it,[e("div",ct,[n.card.image?(o(),s("div",lt,[e("img",{class:"h-full max-w-full w-full rounded object-cover",src:n.card.image},null,8,dt)])):x("",!0),e("div",pt,[e("strong",null,p(t(a).hostname),1)]),e("div",mt,[e("strong",null,p(n.card.title),1)]),e("div",ut,p(n.card.description),1)])]),e("div",gt,[e("span",null,p(t(l)),1)])]),ht]))}}),ft=le(_t,[["__scopeId","data-v-6d584478"]]),vt={flex:"~ col","w-full":""},bt={flex:"~ wrap","w-full":"","flex-none":""},wt=["onClick"],xt=e("div",{border:"b base","flex-auto":""},null,-1),yt={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},kt={key:0},$t={key:1},St={key:2},Tt={key:3},Ct=N({__name:"SocialPreviewGroup",props:{tags:{}},setup(h){const a=h,l=["twitter","facebook","linkedin","telegram"],n=de("nuxt-devtools-social-preview-tab",l[0]),m=C(()=>P(a.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"og:image:alt"}],description:[{tag:"meta",name:"og:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]}));return(y,k)=>{const f=Je,r=Xe,g=ot,b=ft;return o(),s("div",vt,[e("div",bt,[(o(),s(T,null,B(l,(u,S)=>e("button",{key:S,px4:"",py2:"",border:"r base",hover:"bg-active",class:O(u===t(n)?"":"border-b"),onClick:M=>n.value=u},[e("div",{class:O(u===t(n)?"":"op30"),capitalize:""},p(u),3)],10,wt)),64)),xt]),e("div",yt,[t(n)==="facebook"?(o(),s("div",kt,[d(f,{card:t(m)},null,8,["card"])])):t(n)==="twitter"?(o(),s("div",$t,[d(r,{tags:y.tags},null,8,["tags"])])):t(n)==="linkedin"?(o(),s("div",St,[d(g,{card:t(m)},null,8,["card"])])):t(n)==="telegram"?(o(),s("div",Tt,[d(b,{card:t(m)},null,8,["card"])])):x("",!0)])])}}}),Nt={class:"markdown-body"},Mt=pe('<h1>Open Graph</h1><p>Nuxt provides several different ways to manage your meta tags using <a href="https://unhead.harlanzw.com/" target="_blank" rel="noopener"><code>unhead</code></a>. Improve your Nuxt app’s SEO with powerful head config, composables and components.</p><p><a href="https://nuxt.com/docs/getting-started/seo-meta" target="_blank" rel="noopener">Learn more on the documentation</a></p><hr><p>You can also find how open graph specs are defined in:</p><ul><li><a href="https://ogp.me/" target="_blank" rel="noopener">The Open Graph protocol</a></li><li><a href="https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started" target="_blank" rel="noopener">Twitter Cards</a></li></ul>',6),Ot=[Mt],It={__name:"open-graph",setup(h,{expose:a}){return a({frontmatter:{}}),(n,m)=>(o(),s("div",Nt,Ot))}},At=It,Bt={grid:"~ lg:cols-2","h-full":"","w-full":"","of-hidden":""},Rt={"flex-auto":"","of-auto":""},Lt={"flex-none":"",flex:"~ gap2 items-center"},jt={flex:"~ col"},Ft={key:0,"x-divider":""},Dt={key:1,"x-divider":""},zt={mr2:"",px4:"",py2:""},Kt=N({__name:"open-graph",setup(h){const a=A(0),l=me(),n=ue(async()=>(a.value,(await l.value?.resolveTags()).map(c=>{const v=c.props||{};return c.tag==="htmlAttrs"&&v.lang?{tag:"html",name:"lang",value:v.lang}:v.charset?{tag:"meta",name:"charset",value:v.charset}:{tag:c.tag,name:v.property??v.name??v.rel??c.tag,value:v.content??v.href??c.textContent??JSON.stringify(v)}})),[]),m=A(!0);function y(){a.value+=1}const k=ge(),f=he(),r=A(""),g=_e(),b=H();async function u(){r.value!==f.value.path&&k.value.push(r.value||"/")}const S=C(()=>r.value===f.value.path?[]:k.value.resolve(r.value||"/").matched),M=C(()=>{const i=g.value.find(c=>c.path===f.value?.matched?.[0]?.path);return i?.file||i?.meta?.file});function L(i){return K.find(c=>c.name===i.name)?.docs}return G(f).toBeTruthy().then(i=>{r.value=i.path}),G(k).toBeTruthy().then(i=>{i.afterEach(()=>{fe(()=>{r.value=f.value.path,setTimeout(y,200),setTimeout(y,800)})})}),(i,c)=>{const v=xe,j=J,W=ye,E=U,X=V,Y=q,Z=Fe,Q=Ct,ee=At,te=$e,F=ve("tooltip");return o(),s(T,null,[e("div",Bt,[e("div",Rt,[d(W,null,{search:_(()=>[d(v,{modelValue:t(r),"onUpdate:modelValue":c[0]||(c[0]=w=>be(r)?r.value=w:null),placeholder:"Route",icon:"carbon-direction-right-01 scale-y--100",n:"primary","flex-auto":"","font-mono":"",class:O(["px-5 py-2",t(f)?.path===t(r)?"":t(S).length?"text-green":"text-orange"]),onKeydown:we(u,["enter"])},null,8,["modelValue","class"])]),actions:_(()=>[e("div",Lt,[t(M)?z((o(),I(j,{key:0,"text-lg":"",border:!1,icon:"carbon:launch",title:"Open file in editor",onClick:c[1]||(c[1]=w=>t(b)(t(M)))},null,512)),[[F,"Open file in editor"]]):x("",!0),z(d(j,{"text-lg":"",border:!1,icon:"carbon:reset",title:"Refresh Data",onClick:y},null,512),[[F,"Refresh Data"]]),z(d(j,{"text-lg":"",border:!1,icon:t(m)?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:c[2]||(c[2]=w=>m.value=!t(m))},null,8,["icon"]),[[F,"Toggle Preview"]])])]),_:1}),e("div",jt,[d(Y,{text:"Tags",icon:"carbon:tag-group"},{default:_(()=>[d(X,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),s(T,null,B(t(n),(w,D)=>(o(),s(T,{key:D},[D?(o(),s("div",Ft)):x("",!0),D?(o(),s("div",Dt)):x("",!0),e("div",zt,[d(E,{op50:"",href:L(w),target:"_blank",n:"primary"},{default:_(()=>[$(p(w.name),1)]),_:2},1032,["href"])]),d(E,{href:String(w.value).match(/^https?:\/\//)?w.value:void 0,target:"_blank","w-full":"",p2:"","font-mono":"",n:"primary"},{default:_(()=>[$(p(w.value),1)]),_:2},1032,["href"])],64))),128))]),_:1})]),_:1}),d(Z,{tags:t(n),"matched-route-filepath":t(M)},null,8,["tags","matched-route-filepath"])])]),t(m)&&t(n)?.length?(o(),I(Q,{key:0,tags:t(n),"flex-none":"","border-base":"","lt-lg":"border-t",lg:"h-full w-140 border-l"},null,8,["tags"])):x("",!0)]),d(te,null,{default:_(()=>[d(ee)]),_:1})],64)}}});export{Kt as default};
@@ -1 +0,0 @@
1
- import t from"./CTKqK4eG.js";import e from"./CHuuZgn4.js";import"./BMbUeBqv.js";import"./BiWblMbN.js";import"./_ECCzcZq.js";import"./Q9LIRUci.js";import"./DHFOa8tC.js";const n=Object.freeze({displayName:"Vue HTML",fileTypes:[],name:"vue-html",patterns:[{include:"source.vue#vue-interpolations"},{begin:"(<)([A-Z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"support.class.component.html"},5:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(<)([a-z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"entity.name.tag.html"},5:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(<\\?)(xml)",captures:{1:{name:"punctuation.definition.tag.html"},2:{name:"entity.name.tag.xml.html"}},end:"(\\?>)",name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{begin:"<!--",captures:{0:{name:"punctuation.definition.comment.html"}},end:"-->",name:"comment.block.html"},{begin:"<!",captures:{0:{name:"punctuation.definition.tag.html"}},end:">",name:"meta.tag.sgml.html",patterns:[{begin:"(?i:DOCTYPE)",captures:{1:{name:"entity.name.tag.doctype.html"}},end:"(?=>)",name:"meta.tag.sgml.doctype.html",patterns:[{match:'"[^">]*"',name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:"\\[CDATA\\[",end:"]](?=>)",name:"constant.other.inline-data.html"},{match:"(\\s*)(?!--|>)\\S(\\s*)",name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:"(</?)([A-Z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)([a-z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:body|head|html)\\b)",captures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.structure.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.inline.any.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)([a-zA-Z0-9:-]+)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.other.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:"<>",name:"invalid.illegal.incomplete.html"},{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}],repository:{entities:{patterns:[{captures:{1:{name:"punctuation.definition.entity.html"},3:{name:"punctuation.definition.entity.html"}},match:"(&)([a-zA-Z0-9]+|#[0-9]+|#x[0-9a-fA-F]+)(;)",name:"constant.character.entity.html"},{match:"&",name:"invalid.illegal.bad-ampersand.html"}]},"string-double-quoted":{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"string-single-quoted":{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"tag-generic-attribute":{match:"(?<=[^=])\\b([a-zA-Z0-9:\\-_]+)",name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:"\\b(id)\\b\\s*(=)",captures:{1:{name:"entity.other.attribute-name.id.html"},2:{name:"punctuation.separator.key-value.html"}},end:`(?!\\G)(?<='|"|[^\\s<>/])`,name:"meta.attribute-with-value.id.html",patterns:[{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{captures:{0:{name:"meta.toc-list.id.html"}},match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,name:"string.unquoted.html"}]},"tag-stuff":{patterns:[{include:"#vue-directives"},{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"},{include:"#unquoted-attribute"}]},"unquoted-attribute":{match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,name:"string.unquoted.html"},"vue-directives":{begin:"(?:\\b(v-)|(:|@|#))([a-zA-Z0-9\\-_]+)(?:\\:([a-zA-Z\\-_]+))?(?:\\.([a-zA-Z\\-_]+))*\\s*(=)",captures:{1:{name:"entity.other.attribute-name.html"},2:{name:"punctuation.separator.key-value.html"},3:{name:"entity.other.attribute-name.html"},4:{name:"entity.other.attribute-name.html"},5:{name:"entity.other.attribute-name.html"},6:{name:"punctuation.separator.key-value.html"}},end:"(?<='|\")|(?=[\\s<>`])",name:"meta.directive.vue",patterns:[{begin:"`",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"`",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]}]}},scopeName:"text.html.vue-html",embeddedLangs:["vue","javascript"]});var d=[...t,...e,n];export{d as default};
@@ -1,200 +0,0 @@
1
- const e=Object.freeze({displayName:"YAML",name:"yaml",patterns:[{include:"#comment"},{include:"#property"},{include:"#directive"},{match:"^---",name:"entity.other.document.begin.yaml"},{match:"^\\.{3}",name:"entity.other.document.end.yaml"},{include:"#node"}],repository:{"block-collection":{patterns:[{include:"#block-sequence"},{include:"#block-mapping"}]},"block-mapping":{patterns:[{include:"#block-pair"}]},"block-node":{patterns:[{include:"#prototype"},{include:"#block-scalar"},{include:"#block-collection"},{include:"#flow-scalar-plain-out"},{include:"#flow-node"}]},"block-pair":{patterns:[{begin:"\\?",beginCaptures:{1:{name:"punctuation.definition.key-value.begin.yaml"}},end:"(?=\\?)|^ *(:)|(:)",endCaptures:{1:{name:"punctuation.separator.key-value.mapping.yaml"},2:{name:"invalid.illegal.expected-newline.yaml"}},name:"meta.block-mapping.yaml",patterns:[{include:"#block-node"}]},{begin:`(?x)
2
- (?=
3
- (?x:
4
- [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
5
- | [?:-] \\S
6
- )
7
- (
8
- [^\\s:]
9
- | : \\S
10
- | \\s+ (?![#\\s])
11
- )*
12
- \\s*
13
- :
14
- (\\s|$)
15
- )
16
- `,end:`(?x)
17
- (?=
18
- \\s* $
19
- | \\s+ \\#
20
- | \\s* : (\\s|$)
21
- )
22
- `,patterns:[{include:"#flow-scalar-plain-out-implicit-type"},{begin:`(?x)
23
- [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
24
- | [?:-] \\S
25
- `,beginCaptures:{0:{name:"entity.name.tag.yaml"}},contentName:"entity.name.tag.yaml",end:`(?x)
26
- (?=
27
- \\s* $
28
- | \\s+ \\#
29
- | \\s* : (\\s|$)
30
- )
31
- `,name:"string.unquoted.plain.out.yaml"}]},{match:":(?=\\s|$)",name:"punctuation.separator.key-value.mapping.yaml"}]},"block-scalar":{begin:"(?:(\\|)|(>))([1-9])?([-+])?(.*\\n?)",beginCaptures:{1:{name:"keyword.control.flow.block-scalar.literal.yaml"},2:{name:"keyword.control.flow.block-scalar.folded.yaml"},3:{name:"constant.numeric.indentation-indicator.yaml"},4:{name:"storage.modifier.chomping-indicator.yaml"},5:{patterns:[{include:"#comment"},{match:".+",name:"invalid.illegal.expected-comment-or-newline.yaml"}]}},end:"^(?=\\S)|(?!\\G)",patterns:[{begin:"^([ ]+)(?! )",end:"^(?!\\1|\\s*$)",name:"string.unquoted.block.yaml"}]},"block-sequence":{match:"(-)(?!\\S)",name:"punctuation.definition.block.sequence.item.yaml"},comment:{begin:"(?:(^[ \\t]*)|[ \\t]+)(?=#\\p{Print}*$)",beginCaptures:{1:{name:"punctuation.whitespace.comment.leading.yaml"}},end:"(?!\\G)",patterns:[{begin:"#",beginCaptures:{0:{name:"punctuation.definition.comment.yaml"}},end:"\\n",name:"comment.line.number-sign.yaml"}]},directive:{begin:"^%",beginCaptures:{0:{name:"punctuation.definition.directive.begin.yaml"}},end:"(?=$|[ \\t]+($|#))",name:"meta.directive.yaml",patterns:[{captures:{1:{name:"keyword.other.directive.yaml.yaml"},2:{name:"constant.numeric.yaml-version.yaml"}},match:"\\G(YAML)[ \\t]+(\\d+\\.\\d+)"},{captures:{1:{name:"keyword.other.directive.tag.yaml"},2:{name:"storage.type.tag-handle.yaml"},3:{name:"support.type.tag-prefix.yaml"}},match:`(?x)
32
- \\G
33
- (TAG)
34
- (?:[ \\t]+
35
- ((?:!(?:[0-9A-Za-z\\-]*!)?))
36
- (?:[ \\t]+ (
37
- ! (?x: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$,_.!~*'()\\[\\]] )*
38
- | (?![,!\\[\\]{}]) (?x: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$,_.!~*'()\\[\\]] )+
39
- )
40
- )?
41
- )?
42
- `},{captures:{1:{name:"support.other.directive.reserved.yaml"},2:{name:"string.unquoted.directive-name.yaml"},3:{name:"string.unquoted.directive-parameter.yaml"}},match:"(?x) \\G (\\w+) (?:[ \\t]+ (\\w+) (?:[ \\t]+ (\\w+))? )?"},{match:"\\S+",name:"invalid.illegal.unrecognized.yaml"}]},"flow-alias":{captures:{1:{name:"keyword.control.flow.alias.yaml"},2:{name:"punctuation.definition.alias.yaml"},3:{name:"variable.other.alias.yaml"},4:{name:"invalid.illegal.character.anchor.yaml"}},match:"((\\*))([^\\s\\[\\]/{/},]+)([^\\s\\]},]\\S*)?"},"flow-collection":{patterns:[{include:"#flow-sequence"},{include:"#flow-mapping"}]},"flow-mapping":{begin:"\\{",beginCaptures:{0:{name:"punctuation.definition.mapping.begin.yaml"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.mapping.end.yaml"}},name:"meta.flow-mapping.yaml",patterns:[{include:"#prototype"},{match:",",name:"punctuation.separator.mapping.yaml"},{include:"#flow-pair"}]},"flow-node":{patterns:[{include:"#prototype"},{include:"#flow-alias"},{include:"#flow-collection"},{include:"#flow-scalar"}]},"flow-pair":{patterns:[{begin:"\\?",beginCaptures:{0:{name:"punctuation.definition.key-value.begin.yaml"}},end:"(?=[},\\]])",name:"meta.flow-pair.explicit.yaml",patterns:[{include:"#prototype"},{include:"#flow-pair"},{include:"#flow-node"},{begin:":(?=\\s|$|[\\[\\]{},])",beginCaptures:{0:{name:"punctuation.separator.key-value.mapping.yaml"}},end:"(?=[},\\]])",patterns:[{include:"#flow-value"}]}]},{begin:`(?x)
43
- (?=
44
- (?:
45
- [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
46
- | [?:-] [^\\s[\\[\\]{},]]
47
- )
48
- (
49
- [^\\s:[\\[\\]{},]]
50
- | : [^\\s[\\[\\]{},]]
51
- | \\s+ (?![#\\s])
52
- )*
53
- \\s*
54
- :
55
- (\\s|$)
56
- )
57
- `,end:`(?x)
58
- (?=
59
- \\s* $
60
- | \\s+ \\#
61
- | \\s* : (\\s|$)
62
- | \\s* : [\\[\\]{},]
63
- | \\s* [\\[\\]{},]
64
- )
65
- `,name:"meta.flow-pair.key.yaml",patterns:[{include:"#flow-scalar-plain-in-implicit-type"},{begin:`(?x)
66
- [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
67
- | [?:-] [^\\s[\\[\\]{},]]
68
- `,beginCaptures:{0:{name:"entity.name.tag.yaml"}},contentName:"entity.name.tag.yaml",end:`(?x)
69
- (?=
70
- \\s* $
71
- | \\s+ \\#
72
- | \\s* : (\\s|$)
73
- | \\s* : [\\[\\]{},]
74
- | \\s* [\\[\\]{},]
75
- )
76
- `,name:"string.unquoted.plain.in.yaml"}]},{include:"#flow-node"},{begin:":(?=\\s|$|[\\[\\]{},])",captures:{0:{name:"punctuation.separator.key-value.mapping.yaml"}},end:"(?=[},\\]])",name:"meta.flow-pair.yaml",patterns:[{include:"#flow-value"}]}]},"flow-scalar":{patterns:[{include:"#flow-scalar-double-quoted"},{include:"#flow-scalar-single-quoted"},{include:"#flow-scalar-plain-in"}]},"flow-scalar-double-quoted":{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.yaml"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.yaml"}},name:"string.quoted.double.yaml",patterns:[{match:'\\\\([0abtnvfre "/\\\\N_Lp]|x\\d\\d|u\\d{4}|U\\d{8})',name:"constant.character.escape.yaml"},{match:"\\\\\\n",name:"constant.character.escape.double-quoted.newline.yaml"}]},"flow-scalar-plain-in":{patterns:[{include:"#flow-scalar-plain-in-implicit-type"},{begin:`(?x)
77
- [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
78
- | [?:-] [^\\s[\\[\\]{},]]
79
- `,end:`(?x)
80
- (?=
81
- \\s* $
82
- | \\s+ \\#
83
- | \\s* : (\\s|$)
84
- | \\s* : [\\[\\]{},]
85
- | \\s* [\\[\\]{},]
86
- )
87
- `,name:"string.unquoted.plain.in.yaml"}]},"flow-scalar-plain-in-implicit-type":{patterns:[{captures:{1:{name:"constant.language.null.yaml"},2:{name:"constant.language.boolean.yaml"},3:{name:"constant.numeric.integer.yaml"},4:{name:"constant.numeric.float.yaml"},5:{name:"constant.other.timestamp.yaml"},6:{name:"constant.language.value.yaml"},7:{name:"constant.language.merge.yaml"}},match:`(?x)
88
- (?x:
89
- (null|Null|NULL|~)
90
- | (y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)
91
- | (
92
- (?:
93
- [-+]? 0b [0-1_]+
94
- | [-+]? 0 [0-7_]+
95
- | [-+]? (?: 0|[1-9][0-9_]*)
96
- | [-+]? 0x [0-9a-fA-F_]+
97
- | [-+]? [1-9] [0-9_]* (?: :[0-5]?[0-9])+
98
- )
99
- )
100
- | (
101
- (?x:
102
- [-+]? (?: [0-9] [0-9_]*)? \\. [0-9.]* (?: [eE] [-+] [0-9]+)?
103
- | [-+]? [0-9] [0-9_]* (?: :[0-5]?[0-9])+ \\. [0-9_]*
104
- | [-+]? \\. (?: inf|Inf|INF)
105
- | \\. (?: nan|NaN|NAN)
106
- )
107
- )
108
- | (
109
- (?x:
110
- \\d{4} - \\d{2} - \\d{2}
111
- | \\d{4}
112
- - \\d{1,2}
113
- - \\d{1,2}
114
- (?: [Tt] | [ \\t]+) \\d{1,2}
115
- : \\d{2}
116
- : \\d{2}
117
- (?: \\.\\d*)?
118
- (?:
119
- (?:[ \\t]*) Z
120
- | [-+] \\d{1,2} (?: :\\d{1,2})?
121
- )?
122
- )
123
- )
124
- | (=)
125
- | (<<)
126
- )
127
- (?:
128
- (?=
129
- \\s* $
130
- | \\s+ \\#
131
- | \\s* : (\\s|$)
132
- | \\s* : [\\[\\]{},]
133
- | \\s* [\\[\\]{},]
134
- )
135
- )
136
- `}]},"flow-scalar-plain-out":{patterns:[{include:"#flow-scalar-plain-out-implicit-type"},{begin:`(?x)
137
- [^\\s[-?:,\\[\\]{}#&*!|>'"%@\`]]
138
- | [?:-] \\S
139
- `,end:`(?x)
140
- (?=
141
- \\s* $
142
- | \\s+ \\#
143
- | \\s* : (\\s|$)
144
- )
145
- `,name:"string.unquoted.plain.out.yaml"}]},"flow-scalar-plain-out-implicit-type":{patterns:[{captures:{1:{name:"constant.language.null.yaml"},2:{name:"constant.language.boolean.yaml"},3:{name:"constant.numeric.integer.yaml"},4:{name:"constant.numeric.float.yaml"},5:{name:"constant.other.timestamp.yaml"},6:{name:"constant.language.value.yaml"},7:{name:"constant.language.merge.yaml"}},match:`(?x)
146
- (?x:
147
- (null|Null|NULL|~)
148
- | (y|Y|yes|Yes|YES|n|N|no|No|NO|true|True|TRUE|false|False|FALSE|on|On|ON|off|Off|OFF)
149
- | (
150
- (?:
151
- [-+]? 0b [0-1_]+
152
- | [-+]? 0 [0-7_]+
153
- | [-+]? (?: 0|[1-9][0-9_]*)
154
- | [-+]? 0x [0-9a-fA-F_]+
155
- | [-+]? [1-9] [0-9_]* (?: :[0-5]?[0-9])+
156
- )
157
- )
158
- | (
159
- (?x:
160
- [-+]? (?: [0-9] [0-9_]*)? \\. [0-9.]* (?: [eE] [-+] [0-9]+)?
161
- | [-+]? [0-9] [0-9_]* (?: :[0-5]?[0-9])+ \\. [0-9_]*
162
- | [-+]? \\. (?: inf|Inf|INF)
163
- | \\. (?: nan|NaN|NAN)
164
- )
165
- )
166
- | (
167
- (?x:
168
- \\d{4} - \\d{2} - \\d{2}
169
- | \\d{4}
170
- - \\d{1,2}
171
- - \\d{1,2}
172
- (?: [Tt] | [ \\t]+) \\d{1,2}
173
- : \\d{2}
174
- : \\d{2}
175
- (?: \\.\\d*)?
176
- (?:
177
- (?:[ \\t]*) Z
178
- | [-+] \\d{1,2} (?: :\\d{1,2})?
179
- )?
180
- )
181
- )
182
- | (=)
183
- | (<<)
184
- )
185
- (?x:
186
- (?=
187
- \\s* $
188
- | \\s+ \\#
189
- | \\s* : (\\s|$)
190
- )
191
- )
192
- `}]},"flow-scalar-single-quoted":{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.yaml"}},end:"'(?!')",endCaptures:{0:{name:"punctuation.definition.string.end.yaml"}},name:"string.quoted.single.yaml",patterns:[{match:"''",name:"constant.character.escape.single-quoted.yaml"}]},"flow-sequence":{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.sequence.begin.yaml"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.sequence.end.yaml"}},name:"meta.flow-sequence.yaml",patterns:[{include:"#prototype"},{match:",",name:"punctuation.separator.sequence.yaml"},{include:"#flow-pair"},{include:"#flow-node"}]},"flow-value":{patterns:[{begin:"\\G(?![},\\]])",end:"(?=[},\\]])",name:"meta.flow-pair.value.yaml",patterns:[{include:"#flow-node"}]}]},node:{patterns:[{include:"#block-node"}]},property:{begin:"(?=!|&)",end:"(?!\\G)",name:"meta.property.yaml",patterns:[{captures:{1:{name:"keyword.control.property.anchor.yaml"},2:{name:"punctuation.definition.anchor.yaml"},3:{name:"entity.name.type.anchor.yaml"},4:{name:"invalid.illegal.character.anchor.yaml"}},match:"\\G((&))([^\\s\\[\\]/{/},]+)(\\S+)?"},{match:`(?x)
193
- \\G
194
- (?:
195
- ! < (?: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$,_.!~*'()\\[\\]] )+ >
196
- | (?:!(?:[0-9A-Za-z\\-]*!)?) (?: %[0-9A-Fa-f]{2} | [0-9A-Za-z\\-#;/?:@&=+$_.~*'()] )+
197
- | !
198
- )
199
- (?=\\ |\\t|$)
200
- `,name:"storage.type.tag-handle.yaml"},{match:"\\S+",name:"invalid.illegal.tag-handle.yaml"}]},prototype:{patterns:[{include:"#comment"},{include:"#property"}]}},scopeName:"source.yaml",aliases:["yml"]});var n=[e];export{n as default};
@@ -1,2 +0,0 @@
1
- import{_ as Me}from"./BI3hykgO.js";import{d as U,a as B,ac as he,o as u,h as T,j as y,k as s,aa as E,f as c,v as z,t as C,m as w,G as F,p as S,i as _,F as L,n as H,x as ie,a6 as _e,at as ve,R as ge,aQ as Ce,L as ce,M as de,V as Te,aR as ye,aS as be,_ as X,y as Oe,z as Ne,aC as xe,aT as Ve,aU as Ae,aV as Pe,au as Be,a2 as Le,I as je,az as ue,ay as Re,aW as Ee,a9 as De,r as K,ah as He,l as Fe,ab as Ue,Y as qe,Z as We,S as Ke,aX as me}from"./C_tLznPO.js";import{_ as Ye,u as $e,a as Ge}from"./BiWf_U1D.js";import{_ as Xe}from"./DqpvVAaa.js";import{_ as Qe}from"./B1veJI6T.js";import{_ as we}from"./DJg41Obz.js";import{_ as Ze}from"./BHh_UM9T.js";import{_ as Je}from"./D4V9JMY9.js";import{_ as et}from"./CIvuwNIv.js";import{_ as tt}from"./Dm9RYIcI.js";import{_ as nt}from"./CCJYS4Qc.js";import{_ as it}from"./BOV_C5BD.js";import"./BKeomq25.js";import"./CO7Eo6nF.js";const ot={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},st={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},rt={key:2},lt=s("div",{"flex-auto":""},null,-1),at={key:1,flex:"~ gap-2",title:"Documentation"},ct=s("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1),dt={key:2,flex:"~ gap-2"},ut=s("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1),mt={key:0,flex:"~ gap-4 items-center"},ft={flex:"~ gap-1 items-center",op50:""},pt={flex:"~ gap-1 items-center",op50:""},ht={flex:"~ col","items-end":""},_t={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},vt=["src","alt"],gt=s("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1),yt={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},bt=["src"],xt=s("div",{"flex-auto":""},null,-1),$t={flex:"","justify-end":""},wt="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",kt="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",It="https://github.com/",St="https://www.npmjs.com/package/",oe=U({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(e){const t=e,n=B(()=>({...t.mod?.meta,...t.mod,...t.info})),o=he();return(i,r)=>{const l=ie,d=_e,a=ve;return u(),T(a,{p4:"",flex:"~ gap2"},{default:y(()=>[s("div",ot,[E(i.$slots,"main",{},()=>[s("div",st,[i.mod.isPackageModule?(u(),T(l,{key:0,to:St+(c(n).npm||c(n).name),target:"_blank",hover:"underline text-primary"},{default:y(()=>[z(C(c(n).name),1)]),_:1},8,["to"])):i.mod.entryPath?(u(),w("button",{key:1,role:"button",hover:"underline text-primary",onClick:r[0]||(r[0]=m=>c(o)(i.mod.entryPath))},C(c(n).name),1)):(u(),w("span",rt,C(c(n).name),1)),E(i.$slots,"badge")]),c(n).description?(u(),w("div",{key:0,class:F(i.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},C(c(n).description),3)):S("",!0),lt,c(n).website?(u(),w("div",at,[ct,_(l,{to:c(n).website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:y(()=>[z(C(c(n).website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):S("",!0),c(n).github?(u(),w("div",dt,[ut,_(l,{to:c(n).github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:y(()=>[z(C(c(n).github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):S("",!0)]),E(i.$slots,"items"),c(n).stats?(u(),w("div",mt,[s("div",ft,[_(d,{icon:"carbon-star","text-lg":""}),s("span",null,C(c(n).stats.stars),1)]),s("div",pt,[_(d,{icon:"carbon-download","text-lg":""}),s("span",null,C(c(n).stats.downloads),1)])])):S("",!0)]),s("div",ht,[c(n).icon||i.mod.isPackageModule?(u(),w("div",_t,[c(n).icon?(u(),w("img",{key:0,src:wt+c(n).icon,alt:i.mod.name,ma:""},null,8,vt)):S("",!0),gt])):S("",!0),c(n).maintainers?.length&&i.maintainers?(u(),w("div",yt,[(u(!0),w(L,null,H(c(n).maintainers,m=>(u(),T(l,{key:m.name,target:"_blank",to:It+m.github,title:m.name},{default:y(()=>[s("img",{src:kt+m.github,"h-6":"","w-6":"","rounded-full":""},null,8,bt)]),_:2},1032,["to","title"]))),128))])):S("",!0),i.$slots.actions?(u(),w(L,{key:2},[xt,s("div",$t,[E(i.$slots,"actions")])],64)):S("",!0)])]),_:3})}}}),zt={key:0,flex:"~ gap-2",title:"Open on filesystem"},Mt=s("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1),Ct=s("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),Tt=s("code",{"text-sm":"",op50:""},"Upgrading...",-1),Ot={key:1,"mx--2":""},Nt=["onClick"],Vt=s("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),At=s("code",{"text-xs":""},"Update installed, click to restart",-1),Pt=[Vt,At],Bt={key:2,"mx--2":""},Lt=["onClick"],jt=s("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1),Rt={op50:""},Et=s("div",{"i-carbon-arrow-right":"",op50:""},null,-1),Dt={"text-green":""},Ht={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Ft=s("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1),Ut={"text-sm":"",op50:""},qt=U({__name:"ModuleItem",props:{mod:{}},setup(e){const t=e,n=B(()=>t.mod.info),o=B(()=>({...t.mod?.meta,...t.mod,...n.value})),i=ge();return(r,l)=>{const d=Me,a=ie,m=Ye,h=oe;return u(),T(h,{mod:r.mod,info:c(n)},{items:y(()=>[r.mod.entryPath?(u(),w("div",zt,[Mt,_(d,{filepath:r.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):S("",!0),c(o).npm?(u(),T(m,{key:c(o).npm,"package-name":c(o).npm,options:{dev:!0}},{default:y(({info:g,update:v,state:p,id:I,restart:b})=>[p==="running"?(u(),T(a,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:I?"/modules/terminals":void 0,onClick:$=>I?i.value=I:void 0},{default:y(()=>[Ct,Tt]),_:2},1032,["to","onClick"])):p==="updated"?(u(),w("div",Ot,[s("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:b},Pt,8,Nt)])):g?.needsUpdate?(u(),w("div",Bt,[s("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:$=>v()},[jt,s("code",Rt,"v"+C(g.current),1),Et,s("code",Dt,"v"+C(g.latest),1)],8,Lt)])):g?.latest?(u(),w("div",Ht,[Ft,s("code",Ut,"v"+C(g.current),1)])):S("",!0)]),_:1},8,["package-name"])):S("",!0)]),_:1},8,["mod","info"])}}}),Wt=U({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(e,{emit:t}){const n=e,o=t,i=$e(),r=B(()=>i.value.find(h=>h.name===n.item.npm)),l=B(()=>r.value&&r.value.isPackageModule),d=B(()=>r.value&&r.value.isPackageModule&&r.value.isUninstallable);async function a(h,g){const v=g==="install"?ce.installNuxtModule:ce.uninstallNuxtModule,p=await v(await de(),h.npm,!0);Te(`modules:${g}`,{moduleName:h.npm}),p.commands&&await ye.start(h,p,g)&&(be.value.push({name:h.npm,info:h,processId:p.processId}),o("start"),await v(await de(),h.npm,!1))}const m={};return(h,g)=>{const v=Je,p=X,I=we,b=oe;return u(),T(b,{mod:m,role:c(l)?"":"button",info:h.item,mb2:"","h-full":"",class:F(c(l)?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:g[1]||(g[1]=$=>c(l)?null:a(h.item,"install"))},Ce({_:2},[c(l)?{name:"badge",fn:y(()=>[_(v,{n:"green",textContent:"Installed"}),c(d)?(u(),T(I,{key:0,n:"sm green"},{trigger:y(({click:$})=>[_(p,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:k=>$()},null,8,["onClick"])]),default:y(()=>[_(p,{icon:"carbon-trash-can",n:"red",onClick:g[0]||(g[0]=$=>a(h.item,"uninstall"))},{default:y(()=>[z(" Uninstall ")]),_:1})]),_:1})):S("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}});function Kt(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var n=e.indexOf("Trident/");if(n>0){var o=e.indexOf("rv:");return parseInt(e.substring(o+3,e.indexOf(".",o)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let Y;function J(){J.init||(J.init=!0,Y=Kt()!==-1)}var Q={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){J(),xe(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",Y&&this.$el.appendChild(e),e.data="about:blank",Y||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!Y&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const Yt=Ve();Oe("data-v-b329ee4c");const Gt={class:"resize-observer",tabindex:"-1"};Ne();const Xt=Yt((e,t,n,o,i,r)=>(u(),T("div",Gt)));Q.render=Xt;Q.__scopeId="data-v-b329ee4c";Q.__file="src/components/ResizeObserver.vue";function G(e){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?G=function(t){return typeof t}:G=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},G(e)}function Qt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Zt(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function Jt(e,t,n){return t&&Zt(e.prototype,t),e}function fe(e){return en(e)||tn(e)||nn(e)||on()}function en(e){if(Array.isArray(e))return ee(e)}function tn(e){if(typeof Symbol<"u"&&Symbol.iterator in Object(e))return Array.from(e)}function nn(e,t){if(e){if(typeof e=="string")return ee(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return ee(e,t)}}function ee(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function on(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function sn(e){var t;return typeof e=="function"?t={callback:e}:t=e,t}function rn(e,t){var n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o,i,r,l=function(a){for(var m=arguments.length,h=new Array(m>1?m-1:0),g=1;g<m;g++)h[g-1]=arguments[g];if(r=h,!(o&&a===i)){var v=n.leading;typeof v=="function"&&(v=v(a,i)),(!o||a!==i)&&v&&e.apply(void 0,[a].concat(fe(r))),i=a,clearTimeout(o),o=setTimeout(function(){e.apply(void 0,[a].concat(fe(r))),o=0},t)}};return l._clear=function(){clearTimeout(o),o=null},l}function ke(e,t){if(e===t)return!0;if(G(e)==="object"){for(var n in e)if(!ke(e[n],t[n]))return!1;return!0}return!1}var ln=function(){function e(t,n,o){Qt(this,e),this.el=t,this.observer=null,this.frozen=!1,this.createObserver(n,o)}return Jt(e,[{key:"createObserver",value:function(n,o){var i=this;if(this.observer&&this.destroyObserver(),!this.frozen){if(this.options=sn(n),this.callback=function(d,a){i.options.callback(d,a),d&&i.options.once&&(i.frozen=!0,i.destroyObserver())},this.callback&&this.options.throttle){var r=this.options.throttleOptions||{},l=r.leading;this.callback=rn(this.callback,this.options.throttle,{leading:function(a){return l==="both"||l==="visible"&&a||l==="hidden"&&!a}})}this.oldResult=void 0,this.observer=new IntersectionObserver(function(d){var a=d[0];if(d.length>1){var m=d.find(function(g){return g.isIntersecting});m&&(a=m)}if(i.callback){var h=a.isIntersecting&&a.intersectionRatio>=i.threshold;if(h===i.oldResult)return;i.oldResult=h,i.callback(h,a)}},this.options.intersection),xe(function(){i.observer&&i.observer.observe(i.el)})}}},{key:"destroyObserver",value:function(){this.observer&&(this.observer.disconnect(),this.observer=null),this.callback&&this.callback._clear&&(this.callback._clear(),this.callback=null)}},{key:"threshold",get:function(){return this.options.intersection&&typeof this.options.intersection.threshold=="number"?this.options.intersection.threshold:0}}]),e}();function Ie(e,t,n){var o=t.value;if(o)if(typeof IntersectionObserver>"u")console.warn("[vue-observe-visibility] IntersectionObserver API is not available in your browser. Please install this polyfill: https://github.com/w3c/IntersectionObserver/tree/master/polyfill");else{var i=new ln(e,o,n);e._vue_visibilityState=i}}function an(e,t,n){var o=t.value,i=t.oldValue;if(!ke(o,i)){var r=e._vue_visibilityState;if(!o){Se(e);return}r?r.createObserver(o,n):Ie(e,{value:o},n)}}function Se(e){var t=e._vue_visibilityState;t&&(t.destroyObserver(),delete e._vue_visibilityState)}var cn={beforeMount:Ie,updated:an,unmounted:Se},dn={itemsLimit:1e3},un=/(auto|scroll)/;function ze(e,t){return e.parentNode===null?t:ze(e.parentNode,t.concat([e]))}var Z=function(t,n){return getComputedStyle(t,null).getPropertyValue(n)},mn=function(t){return Z(t,"overflow")+Z(t,"overflow-y")+Z(t,"overflow-x")},fn=function(t){return un.test(mn(t))};function pe(e){if(e instanceof HTMLElement||e instanceof SVGElement){for(var t=ze(e.parentNode,[]),n=0;n<t.length;n+=1)if(fn(t[n]))return t[n];return document.scrollingElement||document.documentElement}}function te(e){"@babel/helpers - typeof";return te=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},te(e)}var pn={items:{type:Array,required:!0},keyField:{type:String,default:"id"},direction:{type:String,default:"vertical",validator:function(t){return["vertical","horizontal"].includes(t)}},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"}};function hn(){return this.items.length&&te(this.items[0])!=="object"}var ne=!1;if(typeof window<"u"){ne=!1;try{var _n=Object.defineProperty({},"passive",{get:function(){ne=!0}});window.addEventListener("test",null,_n)}catch{}}let vn=0;var se={name:"RecycleScroller",components:{ResizeObserver:Q},directives:{ObserveVisibility:cn},props:{...pn,itemSize:{type:Number,default:null},gridItems:{type:Number,default:void 0},itemSecondarySize:{type:Number,default:void 0},minItemSize:{type:[Number,String],default:null},sizeField:{type:String,default:"size"},typeField:{type:String,default:"type"},buffer:{type:Number,default:200},pageMode:{type:Boolean,default:!1},prerender:{type:Number,default:0},emitUpdate:{type:Boolean,default:!1},updateInterval:{type:Number,default:0},skipHover:{type:Boolean,default:!1},listTag:{type:String,default:"div"},itemTag:{type:String,default:"div"},listClass:{type:[String,Object,Array],default:""},itemClass:{type:[String,Object,Array],default:""}},emits:["resize","visible","hidden","update","scroll-start","scroll-end"],data(){return{pool:[],totalSize:0,ready:!1,hoverKey:null}},computed:{sizes(){if(this.itemSize===null){const e={"-1":{accumulator:0}},t=this.items,n=this.sizeField,o=this.minItemSize;let i=1e4,r=0,l;for(let d=0,a=t.length;d<a;d++)l=t[d][n]||o,l<i&&(i=l),r+=l,e[d]={accumulator:r,size:l};return this.$_computedMinItemSize=i,e}return[]},simpleArray:hn,itemIndexByKey(){const{keyField:e,items:t}=this,n={};for(let o=0,i=t.length;o<i;o++)n[t[o][e]]=o;return n}},watch:{items(){this.updateVisibleItems(!0)},pageMode(){this.applyPageMode(),this.updateVisibleItems(!1)},sizes:{handler(){this.updateVisibleItems(!1)},deep:!0},gridItems(){this.updateVisibleItems(!0)},itemSecondarySize(){this.updateVisibleItems(!0)}},created(){this.$_startIndex=0,this.$_endIndex=0,this.$_views=new Map,this.$_unusedViews=new Map,this.$_scrollDirty=!1,this.$_lastUpdateScrollPosition=0,this.prerender&&(this.$_prerender=!0,this.updateVisibleItems(!1)),this.gridItems&&!this.itemSize&&console.error("[vue-recycle-scroller] You must provide an itemSize when using gridItems")},mounted(){this.applyPageMode(),this.$nextTick(()=>{this.$_prerender=!1,this.updateVisibleItems(!0),this.ready=!0})},activated(){const e=this.$_lastUpdateScrollPosition;typeof e=="number"&&this.$nextTick(()=>{this.scrollToPosition(e)})},beforeUnmount(){this.removeListeners()},methods:{addView(e,t,n,o,i){const r=Ae({id:vn++,index:t,used:!0,key:o,type:i}),l=Pe({item:n,position:0,nr:r});return e.push(l),l},unuseView(e,t=!1){const n=this.$_unusedViews,o=e.nr.type;let i=n.get(o);i||(i=[],n.set(o,i)),i.push(e),t||(e.nr.used=!1,e.position=-9999)},handleResize(){this.$emit("resize"),this.ready&&this.updateVisibleItems(!1)},handleScroll(e){if(!this.$_scrollDirty){if(this.$_scrollDirty=!0,this.$_updateTimeout)return;const t=()=>requestAnimationFrame(()=>{this.$_scrollDirty=!1;const{continuous:n}=this.updateVisibleItems(!1,!0);n||(clearTimeout(this.$_refreshTimout),this.$_refreshTimout=setTimeout(this.handleScroll,this.updateInterval+100))});t(),this.updateInterval&&(this.$_updateTimeout=setTimeout(()=>{this.$_updateTimeout=0,this.$_scrollDirty&&t()},this.updateInterval))}},handleVisibilityChange(e,t){this.ready&&(e||t.boundingClientRect.width!==0||t.boundingClientRect.height!==0?(this.$emit("visible"),requestAnimationFrame(()=>{this.updateVisibleItems(!1)})):this.$emit("hidden"))},updateVisibleItems(e,t=!1){const n=this.itemSize,o=this.gridItems||1,i=this.itemSecondarySize||n,r=this.$_computedMinItemSize,l=this.typeField,d=this.simpleArray?null:this.keyField,a=this.items,m=a.length,h=this.sizes,g=this.$_views,v=this.$_unusedViews,p=this.pool,I=this.itemIndexByKey;let b,$,k,N,V;if(!m)b=$=N=V=k=0;else if(this.$_prerender)b=N=0,$=V=Math.min(this.prerender,a.length),k=null;else{const x=this.getScroll();if(t){let O=x.start-this.$_lastUpdateScrollPosition;if(O<0&&(O=-O),n===null&&O<r||O<n)return{continuous:!0}}this.$_lastUpdateScrollPosition=x.start;const A=this.buffer;x.start-=A,x.end+=A;let M=0;if(this.$refs.before&&(M=this.$refs.before.scrollHeight,x.start-=M),this.$refs.after){const O=this.$refs.after.scrollHeight;x.end+=O}if(n===null){let O,q=0,le=m-1,P=~~(m/2),ae;do ae=P,O=h[P].accumulator,O<x.start?q=P:P<m-1&&h[P+1].accumulator>x.start&&(le=P),P=~~((q+le)/2);while(P!==ae);for(P<0&&(P=0),b=P,k=h[m-1].accumulator,$=P;$<m&&h[$].accumulator<x.end;$++);for($===-1?$=a.length-1:($++,$>m&&($=m)),N=b;N<m&&M+h[N].accumulator<x.start;N++);for(V=N;V<m&&M+h[V].accumulator<x.end;V++);}else{b=~~(x.start/n*o);const O=b%o;b-=O,$=Math.ceil(x.end/n*o),N=Math.max(0,Math.floor((x.start-M)/n*o)),V=Math.floor((x.end-M)/n*o),b<0&&(b=0),$>m&&($=m),N<0&&(N=0),V>m&&(V=m),k=Math.ceil(m/o)*n}}$-b>dn.itemsLimit&&this.itemsLimitError(),this.totalSize=k;let f;const j=b<=this.$_endIndex&&$>=this.$_startIndex;if(j)for(let x=0,A=p.length;x<A;x++)f=p[x],f.nr.used&&(e&&(f.nr.index=I[f.item[d]]),(f.nr.index==null||f.nr.index<b||f.nr.index>=$)&&this.unuseView(f));const re=j?null:new Map;let D,R,W;for(let x=b;x<$;x++){D=a[x];const A=d?D[d]:D;if(A==null)throw new Error(`Key is ${A} on item (keyField is '${d}')`);if(f=g.get(A),!n&&!h[x].size){f&&this.unuseView(f);continue}R=D[l];let M=v.get(R),O=!1;if(!f)j?M&&M.length?f=M.pop():f=this.addView(p,x,D,A,R):(W=re.get(R)||0,(!M||W>=M.length)&&(f=this.addView(p,x,D,A,R),this.unuseView(f,!0),M=v.get(R)),f=M[W],re.set(R,W+1)),g.delete(f.nr.key),f.nr.used=!0,f.nr.index=x,f.nr.key=A,f.nr.type=R,g.set(A,f),O=!0;else if(!f.nr.used&&(f.nr.used=!0,O=!0,M)){const q=M.indexOf(f);q!==-1&&M.splice(q,1)}f.item=D,O&&(x===a.length-1&&this.$emit("scroll-end"),x===0&&this.$emit("scroll-start")),n===null?(f.position=h[x-1].accumulator,f.offset=0):(f.position=Math.floor(x/o)*n,f.offset=x%o*i)}return this.$_startIndex=b,this.$_endIndex=$,this.emitUpdate&&this.$emit("update",b,$,N,V),clearTimeout(this.$_sortTimer),this.$_sortTimer=setTimeout(this.sortViews,this.updateInterval+300),{continuous:j}},getListenerTarget(){let e=pe(this.$el);return window.document&&(e===window.document.documentElement||e===window.document.body)&&(e=window),e},getScroll(){const{$el:e,direction:t}=this,n=t==="vertical";let o;if(this.pageMode){const i=e.getBoundingClientRect(),r=n?i.height:i.width;let l=-(n?i.top:i.left),d=n?window.innerHeight:window.innerWidth;l<0&&(d+=l,l=0),l+d>r&&(d=r-l),o={start:l,end:l+d}}else n?o={start:e.scrollTop,end:e.scrollTop+e.clientHeight}:o={start:e.scrollLeft,end:e.scrollLeft+e.clientWidth};return o},applyPageMode(){this.pageMode?this.addListeners():this.removeListeners()},addListeners(){this.listenerTarget=this.getListenerTarget(),this.listenerTarget.addEventListener("scroll",this.handleScroll,ne?{passive:!0}:!1),this.listenerTarget.addEventListener("resize",this.handleResize)},removeListeners(){this.listenerTarget&&(this.listenerTarget.removeEventListener("scroll",this.handleScroll),this.listenerTarget.removeEventListener("resize",this.handleResize),this.listenerTarget=null)},scrollToItem(e){let t;const n=this.gridItems||1;this.itemSize===null?t=e>0?this.sizes[e-1].accumulator:0:t=Math.floor(e/n)*this.itemSize,this.scrollToPosition(t)},scrollToPosition(e){const t=this.direction==="vertical"?{scroll:"scrollTop",start:"top"}:{scroll:"scrollLeft",start:"left"};let n,o,i;if(this.pageMode){const r=pe(this.$el),l=r.tagName==="HTML"?0:r[t.scroll],d=r.getBoundingClientRect(),m=this.$el.getBoundingClientRect()[t.start]-d[t.start];n=r,o=t.scroll,i=e+l+m}else n=this.$el,o=t.scroll,i=e;n[o]=i},itemsLimitError(){throw setTimeout(()=>{console.log("It seems the scroller element isn't scrolling, so it tries to render all the items at once.","Scroller:",this.$el),console.log("Make sure the scroller has a fixed height (or width) and 'overflow-y' (or 'overflow-x') set to 'auto' so it can scroll correctly and only render the items visible in the scroll viewport.")}),new Error("Rendered items limit reached")},sortViews(){this.pool.sort((e,t)=>e.nr.index-t.nr.index)}}};const gn={key:0,ref:"before",class:"vue-recycle-scroller__slot"},yn={key:1,ref:"after",class:"vue-recycle-scroller__slot"};function bn(e,t,n,o,i,r){const l=Be("ResizeObserver"),d=Le("observe-visibility");return je((u(),w("div",{class:F(["vue-recycle-scroller",{ready:i.ready,"page-mode":n.pageMode,[`direction-${e.direction}`]:!0}]),onScrollPassive:t[0]||(t[0]=(...a)=>r.handleScroll&&r.handleScroll(...a))},[e.$slots.before?(u(),w("div",gn,[E(e.$slots,"before")],512)):S("v-if",!0),(u(),T(ue(n.listTag),{ref:"wrapper",style:De({[e.direction==="vertical"?"minHeight":"minWidth"]:i.totalSize+"px"}),class:F(["vue-recycle-scroller__item-wrapper",n.listClass])},{default:y(()=>[(u(!0),w(L,null,H(i.pool,a=>(u(),T(ue(n.itemTag),Re({key:a.nr.id,style:i.ready?{transform:`translate${e.direction==="vertical"?"Y":"X"}(${a.position}px) translate${e.direction==="vertical"?"X":"Y"}(${a.offset}px)`,width:n.gridItems?`${e.direction==="vertical"&&n.itemSecondarySize||n.itemSize}px`:void 0,height:n.gridItems?`${e.direction==="horizontal"&&n.itemSecondarySize||n.itemSize}px`:void 0}:null,class:["vue-recycle-scroller__item-view",[n.itemClass,{hover:!n.skipHover&&i.hoverKey===a.nr.key}]]},Ee(n.skipHover?{}:{mouseenter:()=>{i.hoverKey=a.nr.key},mouseleave:()=>{i.hoverKey=null}})),{default:y(()=>[E(e.$slots,"default",{item:a.item,index:a.nr.index,active:a.nr.used})]),_:2},1040,["style","class"]))),128)),E(e.$slots,"empty")]),_:3},8,["style","class"])),e.$slots.after?(u(),w("div",yn,[E(e.$slots,"after")],512)):S("v-if",!0),_(l,{onNotify:r.handleResize},null,8,["onNotify"])],34)),[[d,r.handleVisibilityChange]])}se.render=bn;se.__file="src/components/RecycleScroller.vue";const xn={"h-full":"",flex:"~ col gap-4"},$n={flex:"~ items-center"},wn={flex:"~ col","w-30":"","of-auto":""},kn={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},In={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},Sn=U({__name:"ModuleInstallList",emits:["close"],setup(e,{emit:t}){const n=t,o=Ge(),i=["downloads","stars","updated","created"],r=K(!1),l=K(i[0]),d={downloads:(v,p)=>v.stats.downloads-p.stats.downloads,stars:(v,p)=>v.stats.stars-p.stats.stars,created:(v,p)=>v.stats.createdAt-p.stats.createdAt,updated:(v,p)=>v.stats.publishedAt-p.stats.publishedAt},a=B(()=>o.value?.toSorted((v,p)=>d[l.value](v,p)*(r.value?1:-1))),m=K(""),h=B(()=>new He(o.value||[],{keys:["name","description","npm","category"],sortFn:(v,p)=>{const I=o.value?.[v.idx],b=o.value?.[p.idx];return I&&b?d[l.value](I,b)*(r.value?1:-1):v.score-p.score},threshold:.2})),g=B(()=>m.value?h.value.search(m.value).map(v=>v.item):a.value);return(v,p)=>{const I=Qe,b=X,$=_e,k=we,N=Ze,V=Wt;return u(),w("div",xn,[_(I,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),_(N,{search:c(m),"onUpdate:search":p[1]||(p[1]=f=>Fe(m)?m.value=f:null),"no-padding":"","px-6":"","pb-5":"","pt-2":""},{actions:y(()=>[_(k,{direction:"end",n:"sm primary"},{trigger:y(({click:f})=>[s("div",$n,[_(b,{icon:c(r)?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:p[0]||(p[0]=j=>r.value=!c(r))},null,8,["icon"]),_(b,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:j=>f()},{default:y(()=>[z(C(c(l))+" ",1),_($,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:y(()=>[s("div",wn,[(u(),w(L,null,H(i,f=>_(b,{key:f,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:j=>l.value=f},{default:y(()=>[s("span",kn,[z(C(f)+" ",1),c(l)===f?(u(),T($,{key:0,icon:"carbon:checkmark"})):S("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),_:1},8,["search"]),s("div",In,[_(c(se),{class:"scroller",items:c(g),"item-size":200,"key-field":"name"},{default:y(({item:f})=>[_(V,{item:f,onStart:p[2]||(p[2]=j=>n("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),zn={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},Mn={capitalize:""},Cn=s("p",{op50:""}," The following command will be executed in your terminal: ",-1),Tn={op50:""},On=s("p",null,[s("span",{op50:""},"After that, Nuxt will "),s("span",{"text-orange":""},"restart automatically"),z(". ")],-1),Nn={flex:"~ gap-3",mt2:"","justify-end":""},Vn=U({__name:"ModuleActionDialog",setup(e){const t=Ue(),n=he(),o={};return(i,r)=>{const l=oe,d=et,a=tt,m=nt,h=qe,g=X,v=We;return u(),T(c(ye),null,{default:y(({resolve:p,args:I})=>[_(v,{"model-value":!0,onClose:b=>p(!1)},{default:y(()=>[_(l,{mod:o,info:I[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),s("div",zn,[s("h2",{"text-xl":"",class:F(I[2]==="install"?"text-primary":"text-red")},[s("span",Mn,C(I[2]),1),z(),s("code",null,C(I[0].name),1),z("? ")],2),Cn,_(d,{code:I[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),s("p",Tn,[z(" Then your "),_(a,{role:"button",n:"primary",underline:"",onClick:r[0]||(r[0]=b=>c(n)(c(t)?._nuxtConfigFile)),textContent:"Nuxt config"}),z(" will be updated as: ")]),_(m,{from:I[1].configOriginal,to:I[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),On,s("div",Nn,[_(h,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:y(()=>[z(" Please make sure to backup your project first. ")]),_:1}),_(g,{onClick:b=>p(!1)},{default:y(()=>[z(" Cancel ")]),_:2},1032,["onClick"]),_(g,{n:"solid",capitalize:"",class:F(I[2]==="install"?"n-primary":"n-red"),onClick:b=>p(!0)},{default:y(()=>[z(C(I[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),An={class:"markdown-body"},Pn=s("h1",null,"Modules",-1),Bn=s("p",null,[z("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),s("code",null,"nuxt.config"),z(".")],-1),Ln=s("p",null,[z("You can explore the list of modules on "),s("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),z(" or install them directly inside the DevTools.")],-1),jn=s("p",null,[s("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Rn=[Pn,Bn,Ln,jn],En={__name:"modules",setup(e,{expose:t}){return t({frontmatter:{}}),(o,i)=>(u(),w("div",An,Rn))}},Dn=En,Hn={"h-full":"","w-full":"","of-auto":""},Fn={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},Un=["src","alt"],qn=s("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1),Wn={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},Kn=s("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1),Yn={op75:""},Gn=s("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),Xn=s("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1),Qn={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},Zn="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",fi=U({__name:"modules",setup(e){const t=K(!1),n=$e(),o=ge(),i=B(()=>n.value.filter(l=>l.isPackageModule)),r=B(()=>n.value.filter(l=>!l.isPackageModule));return Ke(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{t.value=!0}}]),(l,d)=>{const a=qt,m=ve,h=ie,g=Xe,v=X,p=Sn,I=Vn,b=Dn,$=it;return u(),w(L,null,[s("div",Hn,[_(g,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${c(i).length}`},{default:y(()=>[(u(!0),w(L,null,H(c(i),k=>(u(),T(a,{key:k.name,mod:k},null,8,["mod"]))),128)),(u(!0),w(L,null,H("processInstallingModules"in l?l.processInstallingModules:c(be),k=>(u(),T(h,{key:k.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:N=>o.value=k.processId},{default:y(()=>[_(m,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:y(()=>[s("div",Fn,[s("img",{src:Zn+k.info.icon,alt:k.info.name,ma:""},null,8,Un),qn]),s("div",Wn,[Kn,s("span",Yn,"Installing "+C(k.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),_(m,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:d[0]||(d[0]=k=>t.value=!0)},{default:y(()=>[Gn,Xn]),_:1})]),_:1},8,["description"]),c(r).length?(u(),T(g,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${c(r).length}`},{default:y(()=>[(u(!0),w(L,null,H(c(r),k=>(u(),w(L,{key:k.meta?.name||k.entryPath},[k.meta?.name||k.entryPath?(u(),T(a,{key:0,mod:k},null,8,["mod"])):S("",!0)],64))),128))]),_:1},8,["description"])):S("",!0),_(me,{name:"fade-in"},{default:y(()=>[c(t)?(u(),w("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:d[1]||(d[1]=k=>t.value=!1)})):S("",!0)]),_:1}),_(me,{name:"slide-in"},{default:y(()=>[c(t)?(u(),w("div",Qn,[_(v,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:d[2]||(d[2]=k=>t.value=!1)}),_(p,{onClose:d[3]||(d[3]=k=>t.value=!1)})])):S("",!0)]),_:1}),_(I)]),_($,null,{default:y(()=>[_(b)]),_:1})],64)}}});export{fi as default};
@@ -1 +0,0 @@
1
- import{bP as Oe,d as ee,bQ as re,r as H,a as U,o as g,m as $,k as h,i as O,f as l,t as N,F as B,n as Z,G as F,p as j,a6 as oe,ak as ue,bL as Te,ao as xe,ab as Se,aA as se,ac as we,aD as Xe,b2 as De,bM as Ee,e as Me,a2 as le,I as G,j as I,v as Y,bI as Ce,h as A,l as K,ay as Ie,V as $e,_ as ce,X as Ue,A as fe,an as Le,a9 as Re,aa as Ne,bR as Ae,ah as Ve,U as je,bO as Be,at as We}from"./C_tLznPO.js";import{_ as He}from"./BHh_UM9T.js";import{_ as pe}from"./D4V9JMY9.js";import{_ as de}from"./7oK7PdYH.js";import{_ as ze}from"./CIvuwNIv.js";import{S as he}from"./BcJws1i5.js";import{e as qe}from"./B3uNdhXb.js";import{_ as Pe}from"./DqpvVAaa.js";import{_ as Ye}from"./DrswlxM3.js";import"./BKeomq25.js";import"./BiRcA7Ly.js";import"./CO7Eo6nF.js";import"./B1veJI6T.js";var ve={exports:{}};(function(q,L){(function(T,E){q.exports=E()})(globalThis,()=>(()=>{var R={794:(x,p,b)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var o=b(586),d=function(){function y(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return y.prototype.parse=function(){var t,e,a=(t=this.expression)!==null&&t!==void 0?t:"";if(a.startsWith("@")){var r=this.parseSpecial(this.expression);e=this.extractParts(r)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},y.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},a=e[t];if(!a)throw new Error("Unknown special expression.");return a},y.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),a=0;a<e.length;a++)if(e[a].includes(",")){var r=e[a].split(",").map(function(s){return s.trim()}).filter(function(s){return s!==""}).map(function(s){return isNaN(Number(s))?s:Number(s)}).filter(function(s){return s!==null&&s!==""});r.length===0&&r.push("*"),r.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=r.map(function(s){return s!==null?s.toString():""}).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var n=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";n?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},y.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(c){var m=c.replace(/\D/,""),f=m;return e.dayOfWeekStartIndexZero?m=="7"&&(f="0"):f=(parseInt(m)-1).toString(),c.replace(m,f)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var a={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in a)t[5]=t[5].replace(new RegExp(r,"gi"),a[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(c){var m=c.replace(/\D/,""),f=m;return e.monthStartIndexZero&&(f=(parseInt(m)+1).toString()),c.replace(m,f)});var n={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var s in n)t[4]=t[4].replace(new RegExp(s,"gi"),n[s].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var i=0;i<t.length;i++)if(t[i].indexOf(",")!=-1&&(t[i]=t[i].split(",").filter(function(c){return c!==""}).join(",")||"*"),t[i]=="*/1"&&(t[i]="*"),t[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[i])){var u=null;switch(i){case 4:u="12";break;case 5:u="6";break;case 6:u="9999";break;default:u=null;break}if(u!==null){var v=t[i].split("/");t[i]="".concat(v[0],"-").concat(u,"/").concat(v[1])}}},y.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},y.prototype.validateRange=function(t){o.default.secondRange(t[0]),o.default.minuteRange(t[1]),o.default.hourRange(t[2]),o.default.dayOfMonthRange(t[3]),o.default.monthRange(t[4],this.monthStartIndexZero),o.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},y.prototype.assertNoInvalidCharacters=function(t,e){var a=e.match(/[A-KM-VX-Z]+/gi);if(a&&a.length)throw new Error("".concat(t," part contains invalid values: '").concat(a.toString(),"'"))},y}();p.CronParser=d},728:(x,p,b)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var o=b(910),d=b(794),y=function(){function t(e,a){if(this.expression=e,this.options=a,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var r=a===void 0?{}:a,n=r.throwExceptionOnParseError,s=n===void 0?!0:n,i=r.verbose,u=i===void 0?!1:i,v=r.dayOfWeekStartIndexZero,c=v===void 0?!0:v,m=r.monthStartIndexZero,f=m===void 0?!1:m,C=r.use24HourTimeFormat,S=r.locale,W=S===void 0?null:S,V=r.tzOffset,D=V===void 0?0:V,z={throwExceptionOnParseError:s,verbose:u,dayOfWeekStartIndexZero:c,monthStartIndexZero:f,use24HourTimeFormat:C,locale:W,tzOffset:D},te=new t(e,z);return te.getFullDescription()},t.initialize=function(e,a){a===void 0&&(a="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=a,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var a=new d.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var r=this.getTimeOfDayDescription(),n=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),u=this.getYearDescription();e+=r+n+i+s+u,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(v){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(v)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],r=this.expressionParts[2],n="";if(!o.StringUtilities.containsAny(a,t.specialCharacters)&&!o.StringUtilities.containsAny(r,t.specialCharacters)&&!o.StringUtilities.containsAny(e,t.specialCharacters))n+=this.i18n.atSpace()+this.formatTime(r,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!o.StringUtilities.containsAny(r,t.specialCharacters)){var s=a.split("-");n+=o.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(r,s[0],""),this.formatTime(r,s[1],""))}else if(!e&&r.indexOf(",")>-1&&r.indexOf("-")==-1&&r.indexOf("/")==-1&&!o.StringUtilities.containsAny(a,t.specialCharacters)){var i=r.split(",");n+=this.i18n.at();for(var u=0;u<i.length;u++)n+=" ",n+=this.formatTime(i[u],a,""),u<i.length-2&&(n+=","),u==i.length-2&&(n+=this.i18n.spaceAnd())}else{var v=this.getSecondsDescription(),c=this.getMinutesDescription(),m=this.getHoursDescription();if(n+=v,n&&c&&(n+=", "),n+=c,c===m)return n;n&&m&&(n+=", "),n+=m}return n},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(r){return r},function(r){return o.StringUtilities.format(e.i18n.everyX0Seconds(r),r)},function(r){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(r){return r=="0"?"":parseInt(r)<20?e.i18n.atX0SecondsPastTheMinute(r):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(r)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],r=this.expressionParts[2],n=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return o.StringUtilities.format(e.i18n.everyX0Minutes(s),s)},function(s){return e.i18n.minutesX0ThroughX1PastTheHour()},function(s){try{return s=="0"&&r.indexOf("/")==-1&&a==""?e.i18n.everyHour():parseInt(s)<20?e.i18n.atX0MinutesPastTheHour(s):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(s)}catch{return e.i18n.atX0MinutesPastTheHour(s)}});return n},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],r=this.getSegmentDescription(a,this.i18n.everyHour(),function(i){return e.formatTime(i,"0","")},function(i){return o.StringUtilities.format(e.i18n.everyX0Hours(i),i)},function(i){return e.i18n.betweenX0AndX1()},function(i){return e.i18n.atX0()});if(r&&a.includes("-")&&this.expressionParts[1]!="0"){var n=Array.from(r.matchAll(/:00/g));if(n.length>1){var s=n[n.length-1].index;r=r.substring(0,s)+":59"+r.substring(s+3)}}return r},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),r=null;return this.expressionParts[5]=="*"?r="":r=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,s){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var u=parseInt(i);if(e.options.tzOffset){var v=e.expressionParts[2],c=parseInt(v)+(e.options.tzOffset?e.options.tzOffset:0);c>=24?u++:c<0&&u--,u>6?u=0:u<0&&(u=6)}var m=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[u]:a[u];if(n.indexOf("#")>-1){var f=null,C=n.substring(n.indexOf("#")+1),S=n.substring(0,n.indexOf("#"));switch(C){case"1":f=e.i18n.first(S);break;case"2":f=e.i18n.second(S);break;case"3":f=e.i18n.third(S);break;case"4":f=e.i18n.fourth(S);break;case"5":f=e.i18n.fifth(S);break}m=f+" "+m}return m},function(n){return parseInt(n)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(n),n)},function(n){var s=n.substring(0,n.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(n){var s=null;if(n.indexOf("#")>-1){var i=n.substring(n.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(n.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(n.replace("L",""));else{var u=e.expressionParts[3]!="*";s=u?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(n)}return s}),r},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),r=this.getSegmentDescription(this.expressionParts[4],"",function(n,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(n)-1]:a[parseInt(n)-1]},function(n){return parseInt(n)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0Months(n),n)},function(n){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return r},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,r=this.expressionParts[3];switch(r){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var n=r.match(/(\d{1,2}W)|(W\d{1,2})/);if(n){var s=parseInt(n[0].replace("W","")),i=s==1?this.i18n.firstWeekday():o.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=o.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var u=r.match(/L-(\d{1,2})/);if(u){var v=u[1];a=o.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(v),v);break}else{if(r=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(r,this.i18n.commaEveryDay(),function(c){return c=="L"?e.i18n.lastDay():e.i18n.dayX0?o.StringUtilities.format(e.i18n.dayX0(),c):c},function(c){return c=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(c)},function(c){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(c)},function(c){return e.i18n.commaOnDayX0OfTheMonth(c)})}break}}return a},t.prototype.getYearDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[6],"",function(r){return/^\d+$/.test(r)?new Date(parseInt(r),1).getFullYear().toString():r},function(r){return o.StringUtilities.format(e.i18n.commaEveryX0Years(r),r)},function(r){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(r){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,r,n,s,i){var u=null,v=e.indexOf("/")>-1,c=e.indexOf("-")>-1,m=e.indexOf(",")>-1;if(!e)u="";else if(e==="*")u=a;else if(!v&&!c&&!m)u=o.StringUtilities.format(i(e),r(e));else if(m){for(var f=e.split(","),C="",S=0;S<f.length;S++)if(S>0&&f.length>2&&(C+=",",S<f.length-1&&(C+=" ")),S>0&&f.length>1&&(S==f.length-1||f.length==2)&&(C+="".concat(this.i18n.spaceAnd()," ")),f[S].indexOf("/")>-1||f[S].indexOf("-")>-1){var W=f[S].indexOf("-")>-1&&f[S].indexOf("/")==-1,V=this.getSegmentDescription(f[S],a,r,n,W?this.i18n.commaX0ThroughX1:s,i);W&&(V=V.replace(", ","")),C+=V}else v?C+=this.getSegmentDescription(f[S],a,r,n,s,i):C+=r(f[S]);v?u=C:u=o.StringUtilities.format(i(e),C)}else if(v){var f=e.split("/");if(u=o.StringUtilities.format(n(f[1]),f[1]),f[0].indexOf("-")>-1){var D=this.generateRangeSegmentDescription(f[0],s,r);D.indexOf(", ")!=0&&(u+=", "),u+=D}else if(f[0].indexOf("*")==-1){var z=o.StringUtilities.format(i(f[0]),r(f[0]));z=z.replace(", ",""),u+=o.StringUtilities.format(this.i18n.commaStartingX0(),z)}}else c&&(u=this.generateRangeSegmentDescription(e,s,r));return u},t.prototype.generateRangeSegmentDescription=function(e,a,r){var n="",s=e.split("-"),i=r(s[0],1),u=r(s[1],2),v=a(e);return n+=o.StringUtilities.format(v,i,u),n},t.prototype.formatTime=function(e,a,r){var n=0,s=0;this.options.tzOffset&&(n=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),s=parseFloat((this.options.tzOffset%1).toFixed(2)),s!=0&&(s*=60));var i=parseInt(e)+n,u=parseInt(a)+s;u>=60?(u-=60,i+=1):u<0&&(u+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var v="",c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),v=c?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var m="";return r&&(m=":".concat(("00"+r).substring(r.length))),"".concat(c?v:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+u.toString()).substring(u.toString().length)).concat(m).concat(c?"":v)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();p.ExpressionDescriptor=y},336:(x,p,b)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var o=b(751),d=function(){function y(){}return y.prototype.load=function(t){t.en=new o.en},y}();p.enLocaleLoader=d},751:(x,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var b=function(){function o(){}return o.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},o.prototype.atX0MinutesPastTheHourGt20=function(){return null},o.prototype.commaMonthX0ThroughMonthX1=function(){return null},o.prototype.commaYearX0ThroughYearX1=function(){return null},o.prototype.use24HourTimeFormatByDefault=function(){return!1},o.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},o.prototype.everyMinute=function(){return"every minute"},o.prototype.everyHour=function(){return"every hour"},o.prototype.atSpace=function(){return"At "},o.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},o.prototype.at=function(){return"At"},o.prototype.spaceAnd=function(){return" and"},o.prototype.everySecond=function(){return"every second"},o.prototype.everyX0Seconds=function(){return"every %s seconds"},o.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},o.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},o.prototype.everyX0Minutes=function(){return"every %s minutes"},o.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},o.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},o.prototype.everyX0Hours=function(){return"every %s hours"},o.prototype.betweenX0AndX1=function(){return"between %s and %s"},o.prototype.atX0=function(){return"at %s"},o.prototype.commaEveryDay=function(){return", every day"},o.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},o.prototype.commaX0ThroughX1=function(){return", %s through %s"},o.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},o.prototype.first=function(){return"first"},o.prototype.second=function(){return"second"},o.prototype.third=function(){return"third"},o.prototype.fourth=function(){return"fourth"},o.prototype.fifth=function(){return"fifth"},o.prototype.commaOnThe=function(){return", on the "},o.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},o.prototype.lastDay=function(){return"the last day"},o.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},o.prototype.commaOnlyOnX0=function(){return", only on %s"},o.prototype.commaAndOnX0=function(){return", and on %s"},o.prototype.commaEveryX0Months=function(){return", every %s months"},o.prototype.commaOnlyInX0=function(){return", only in %s"},o.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},o.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},o.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},o.prototype.firstWeekday=function(){return"first weekday"},o.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},o.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},o.prototype.commaEveryX0Days=function(){return", every %s days"},o.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},o.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},o.prototype.commaEveryHour=function(){return", every hour"},o.prototype.commaEveryX0Years=function(){return", every %s years"},o.prototype.commaStartingX0=function(){return", starting %s"},o.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},o}();p.en=b},586:(x,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function b(d,y){if(!d)throw new Error(y)}var o=function(){function d(){}return d.secondRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},d.minuteRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},d.hourRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},d.dayOfMonthRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},d.monthRange=function(y,t){for(var e=y.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var r=parseInt(e[a],10);b(r>=1&&r<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},d.dayOfWeekRange=function(y,t){for(var e=y.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var r=parseInt(e[a],10);b(r>=0&&r<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},d}();p.default=o},910:(x,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var b=function(){function o(){}return o.format=function(d){for(var y=[],t=1;t<arguments.length;t++)y[t-1]=arguments[t];return d.replace(/%s/g,function(e){return y.shift()})},o.containsAny=function(d,y){return y.some(function(t){return d.indexOf(t)>-1})},o}();p.StringUtilities=b}},T={};function E(x){var p=T[x];if(p!==void 0)return p.exports;var b=T[x]={exports:{}};return R[x](b,b.exports,E),b.exports}var X={};return(()=>{var x=X;Object.defineProperty(x,"__esModule",{value:!0}),x.toString=void 0;var p=E(728),b=E(336);p.ExpressionDescriptor.initialize(new b.enLocaleLoader),x.default=p.ExpressionDescriptor;var o=p.ExpressionDescriptor.toString;x.toString=o})(),X})())})(ve);var Fe=ve.exports;const Ge=Oe(Fe),Ze=["title"],Je={"flex-none":"","text-left":""},Qe={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Ke={class:"truncate"},et={"text-xs":"",op50:""},tt=h("div",{"x-divider":""},null,-1),nt={key:0},rt=["onClick"],ot=h("div",{"x-divider":""},null,-1),at=ee({__name:"CronCollection",props:{collection:{}},setup(q){const L=q,R=re(),T=H(!0),E=U(()=>Ge.toString(L.collection.cron));return(X,x)=>{const p=oe,b=pe;return g(),$("div",null,[h("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:l(E),onClick:x[0]||(x[0]=o=>T.value=!l(T))},[h("div",Je,[O(p,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":l(T)?90:0,transition:""},null,8,["transform-rotate"])]),h("span",Qe,[O(b,{class:"font-mono n-primary",textContent:N(X.collection.cron)},null,8,["textContent"]),h("span",Ke,N(l(E)),1),h("span",et,"("+N(X.collection.tasks.length)+")",1)])],8,Ze),tt,l(T)?(g(),$("ul",nt,[(g(!0),$(B,null,Z(X.collection.tasks,o=>(g(),$("li",{key:o},[h("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":l(R)===o}]),onClick:d=>R.value=o},N(o),11,rt),ot]))),128))])):j("",!0)])}}}),it={"h-full":"","w-full":"",flex:"~ col"},st={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},ut={flex:"~ gap2 items-center"},lt={relative:"","w-full":""},ct={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},ft={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},pt={class:"hidden md:block"},dt={flex:"~ gap2","mb--2":"","items-center":"",op50:""},ht=h("div",{"w-5":"","x-divider":""},null,-1),vt=h("div",{"flex-none":""}," Default Inputs ",-1),mt=h("div",{"x-divider":""},null,-1),yt={key:0,border:"b base",relative:"","n-code-block":""},gt={flex:"~ wrap","w-full":""},_t=["onClick"],bt=h("div",{border:"b base","flex-auto":""},null,-1),kt={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},Ot=h("div",null,"Result",-1),Tt={key:1,"text-xs":"",op50:""},xt=h("div",{"flex-auto":""},null,-1),St=h("div",{op50:""}," Tasks finished in ",-1),wt=ee({__name:"ServerTaskDetails",props:{task:{}},emits:["open-default-input"],setup(q,{emit:L}){const R=q,T=L,E=H({payload:{}}),{inputDefaults:X}=ue("serverRoutes"),[x,p]=Te(),b=xe(),o=Se(),d=se({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),y=U(()=>JSON.stringify(d.data,null,2)),t=U(()=>d.contentType.includes("application/json")?"json":"text"),e=H(!1),a=H(!1),r=we(),n=H(),s=["json"],i=H(s[0]),u=se({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),v=U({get:()=>u[n.value],set:_=>{u[n.value]=_}}),c=U(()=>({...D(X.value.query),...D(u.query)})),m=U(()=>({...D(X.value.headers)})),f=U(()=>Object.keys(E.value?.payload??{}).length?{...E.value}:void 0),C=U(()=>f.value?"POST":"GET"),S=U(()=>{let _=window?.location.origin;return _.charAt(_.length-1)==="/"&&(_=_.slice(0,-1)),_}),W=U(()=>{let _=new URLSearchParams(c.value).toString();_&&(_=`?${_}`);const k=`/_nitro/tasks/${R.task.name}${_}`;let M=o.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+k}),V=U(()=>S.value+W.value);function D(_){const k=Object.fromEntries(_.filter(({active:M,key:P,value:J})=>M&&P&&J!==void 0).map(({key:M,value:P})=>[M,P]));return Object.entries(k).length?k:void 0}async function z(){a.value=!0,e.value=!0;const _=Date.now();$e("server-tasks:run",{method:C.value});try{d.data=await $fetch(V.value,{method:"POST",headers:m.value,query:c.value,body:f.value,onResponse({response:k}){d.contentType=(k.headers.get("content-type")||"").toString().toLowerCase().trim(),d.statusCode=k.status,d.error=void 0},onResponseError(k){d.error=k.response._data,d.data=k.response._data}})}catch{}e.value=!1,d.fetchTime=Date.now()-_}const te=U(()=>{const _=[];return _.push({name:"Query",slug:"query",length:u.query.length}),_.push({name:"Body",slug:"body",length:u.body.length}),_});Xe(()=>{if(i.value==="json"&&typeof E.value=="string")try{E.value=JSON.parse(E.value)}catch{}});const ae=De("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});Ee([u,n],()=>{const _=ae.value?.find(k=>k.task===R.task.name);if(_){n.value||(n.value=_.tab),_.tab!==n.value&&(_.tab=n.value);const{body:k,query:M,headers:P}=_.inputs;Object.assign(u,{body:k,query:M,headers:P})}else{const k={task:R.task.name,tab:"query",inputs:u};ae.value.push(k),n.value||(n.value=k.tab)}},{immediate:!0,deep:!0,debounce:500});const ye=Me();return(_,k)=>{const M=ce,P=Ue,J=oe,ie=de,ge=fe,_e=Le,ne=pe,be=ze,Q=le("tooltip");return g(),$("div",it,[h("div",st,[h("div",ut,[G((g(),$("div",null,[O(M,{class:F(["n-badge-base n-sm",("getRequestMethodClass"in _?_.getRequestMethodClass:l(Ce))(l(C))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:I(()=>[Y(N(l(C)),1)]),_:1},8,["class"])])),[[Q,`Method is ${l(C)} as ${l(C)==="GET"?"no":""} json body is sent`]]),h("div",lt,[O(P,{"model-value":l(W),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),h("div",ct,[G(O(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:k[0]||(k[0]=w=>l(ye)(l(V),"server-task-url"))},null,512),[[Q,"Copy URL"]]),G(O(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:k[1]||(k[1]=w=>l(r)(_.task.handler))},null,512),[[Q,"Open in Editor"]])])]),O(M,{"h-full":"",n:"primary solid",onClick:z},{default:I(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),h("div",ft,[(g(!0),$(B,null,Z(l(te),w=>G((g(),A(M,{key:w.slug,class:F(l(n)===w.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:ke=>n.value=w.slug},{default:I(()=>[O(J,{icon:("ServerRouteTabIcons"in _?_.ServerRouteTabIcons:l(he))[w.slug]},null,8,["icon"]),h("div",pt,[Y(N(w.name)+" "+N(w?.length?`(${w.length})`:"")+" ",1),h("span",null,N(l(X)[w.slug]?.length?`(${l(X)[w.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[Q,w.name]])),128))]),O(l(x),null,{default:I(()=>[O(ie,{modelValue:l(v),"onUpdate:modelValue":k[4]||(k[4]=w=>K(v)?v.value=w:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:I(()=>[l(X)[l(n)]?.length?(g(),$(B,{key:0},[h("div",dt,[ht,vt,O(M,{icon:"i-carbon-edit",border:!1,onClick:k[2]||(k[2]=w=>T("open-default-input"))}),mt]),O(ie,{modelValue:l(X)[l(n)],"onUpdate:modelValue":k[3]||(k[3]=w=>l(X)[l(n)]=w),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),l(v)?(g(),$("div",yt,[l(n)==="body"?(g(),$(B,{key:0},[h("div",gt,[(g(),$(B,null,Z(s,w=>h("button",{key:w,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":w!==l(i)}),onClick:ke=>i.value=w},[h("div",{class:F({op30:w!==l(i)}),"font-mono":""},N(w),3)],10,_t)),64)),bt]),l(i)==="input"?(g(),A(l(p),{key:0})):l(i)==="json"?(g(),A(l(qe),Ie({key:1,modelValue:l(E),"onUpdate:modelValue":k[5]||(k[5]=w=>K(E)?E.value=w:null),class:[l(b)==="dark"?"jse-theme-dark":"light","json-editor-vue of-auto text-sm outline-none"]},_.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(g(),A(l(p),{key:1}))])):j("",!0),l(a)?l(e)?(g(),A(_e,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:I(()=>[Y(" Running... ")]),_:1})):(g(),$(B,{key:3},[h("div",kt,[Ot,l(d).error?(g(),A(ne,{key:0,n:"red"},{default:I(()=>[Y(" Error ")]),_:1})):j("",!0),O(ne,{n:l(d).error?"orange":"green",textContent:N(l(d).statusCode)},null,8,["n","textContent"]),l(d).contentType?(g(),$("code",Tt,N(l(d).contentType),1)):j("",!0),xt,St,O(ne,{n:"green"},{default:I(()=>[Y(N(l(d).fetchTime)+" ms ",1)]),_:1})]),O(be,{"flex-auto":"","overflow-auto":"","py-2":"",code:l(y),lang:l(t)},null,8,["code","lang"])],64)):(g(),A(ge,{key:1},{default:I(()=>[O(M,{n:"primary",onClick:z},{default:I(()=>[O(J,{icon:"carbon:send"}),Y(" Run task ")]),_:1})]),_:1}))])}}}),Xt={"flex-none":"","text-left":""},Dt={flex:"","items-center":"","text-sm":"","font-mono":""},Et=h("div",{"x-divider":""},null,-1),me=ee({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(q){const L=H(!0),R=re();return(T,E)=>{const X=oe,x=me;return g(),$("div",null,[h("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":l(R)===T.item.name}]),style:Re({paddingLeft:`calc(0.5rem + ${T.index*1.5}em)`}),onClick:E[0]||(E[0]=p=>{L.value=!l(L),R.value=T.item.name})},[h("div",Xt,[T.item.type==="collection"?(g(),A(X,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":l(L)?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),h("span",Dt,[T.item.type==="collection"?(g(),A(X,{key:0,title:`${T.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(g(),A(X,{key:1,icon:"carbon:play",ml3:"",mr1:""})),Y(" "+N(T.item.name),1)])],6),Et,l(L)?Ne(T.$slots,"default",{key:0},()=>[(g(!0),$(B,null,Z(T.item.tasks,p=>(g(),A(x,{key:p.name,item:p,index:T.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),Mt={flex:"~ gap1","text-sm":""},Ct={key:0,op50:""},It={op50:""},$t=h("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1),Ut=h("span",{op75:""},"Select a task to start",-1),Lt=h("div",{p4:"",border:"b base"},[h("span",{"text-lg":""},"Default Inputs"),h("br"),h("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1),Gt=ee({__name:"server-tasks",setup(q){const L=H(!1),R=Ae(),T=U(()=>Object.keys(R.value?.tasks??{}).map(r=>({name:r,...R.value.tasks[r],type:"task"}))),E=U(()=>Object.entries(R.value?.scheduledTasks??{}).map(([r,n])=>({cron:r,tasks:n}))),X=re(),{view:x,selectedTask:p,inputDefaults:b}=ue("serverTasks"),o=U(()=>{!X.value&&p.value&&(X.value=p.value.name);const r=T.value.find(n=>n.name===X.value);return X.value!==p.value?.name&&r&&(p.value=r),r}),d=H(""),y=U(()=>new Ve(T.value,{keys:["key","description"],shouldSort:!0})),t=U(()=>d.value?y.value.search(d.value).map(n=>n.item):T.value),e=U(()=>{const r=[],n=(i,u)=>{i.tasks||=[],i.tasks.push(u)},s=(i,u)=>{const v=u?u.tasks?.find(m=>m.name===i):r.find(m=>m.name===i);if(v)return{...v,type:"collection"};const c={name:i,handler:i,description:"",type:"collection",tasks:[]};return u?n(u,c):r.push(c),c};return t.value.forEach(i=>{let u;const v={...i,type:"task"},m=i.name.split(":").concat();m.length>0&&m[m.length-1].includes(".")&&m.pop(),m.forEach(f=>{u=s(f,u)}),u?n(u,v):r.push(v)}),r});function a(){x.value=x.value==="tree"?"list":"tree"}return(r,n)=>{const s=ce,i=He,u=at,v=je,c=wt,m=We,f=fe,C=de,S=Pe,W=Ye,V=le("tooltip");return g(),$(B,null,[O(v,{"storage-key":"tab-server-tasks"},{left:I(()=>[O(v,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:I(()=>[O(i,{search:l(d),"onUpdate:search":n[1]||(n[1]=D=>K(d)?d.value=D:null),pb2:""},{actions:I(()=>[G(O(s,{"text-lg":"",icon:l(x)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(O(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:n[0]||(n[0]=D=>L.value=!l(L))},null,512),[[V,"Default Inputs"]])]),default:I(()=>[h("div",Mt,[l(d)?(g(),$("span",Ct,N(l(t).length)+" matched · ",1)):j("",!0),h("span",It,N(l(T)?.length)+" tasks in total",1)])]),_:1},8,["search"]),(g(!0),$(B,null,Z(l(x)==="tree"?l(e):l(t),D=>(g(),A(me,{key:D.name,item:D},null,8,["item"]))),128))]),right:I(()=>[$t,h("div",null,[h("ul",null,[(g(!0),$(B,null,Z(l(E),D=>(g(),$("li",{key:D.cron},[O(u,{collection:D},null,8,["collection"])]))),128))])])]),_:1})]),right:I(()=>[(g(),A(Be,{max:10},[l(o)?(g(),A(c,{key:l(o).name,task:l(o),onOpenDefaultInput:n[2]||(n[2]=D=>L.value=!0)},null,8,["task"])):j("",!0)],1024)),l(o)?j("",!0):(g(),A(f,{key:0},{default:I(()=>[O(m,{px6:"",py2:""},{default:I(()=>[Ut]),_:1})]),_:1}))]),_:1}),O(W,{modelValue:l(L),"onUpdate:modelValue":n[4]||(n[4]=D=>K(L)?L.value=D:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:n[5]||(n[5]=D=>L.value=!1)},{default:I(()=>[h("div",null,[Lt,O(S,{text:`Query ${l(b).query.length?`(${l(b).query.length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in r?r.ServerRouteTabIcons:l(he)).query},{default:I(()=>[O(C,{modelValue:l(b).query,"onUpdate:modelValue":n[3]||(n[3]=D=>l(b).query=D),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{Gt as default};
@@ -1 +0,0 @@
1
- import{d as i,a0 as c,r as p,aY as u,o as m,m as f,aa as n,i as v,j as _,v as b,f as a,k,G as V,_ as B}from"./C_tLznPO.js";const $=i({__name:"NDropdown",props:{modelValue:{type:Boolean},direction:{default:"start"}},setup(r,{emit:l}){const e=c(r,"modelValue",l,{passive:!0}),s=p();return u(s,()=>{e.value=!1}),(o,t)=>{const d=B;return m(),f("div",{ref_key:"el",ref:s,class:"relative"},[n(o.$slots,"trigger",{enabled:a(e),click:()=>e.value=!a(e)},()=>[v(d,{onClick:t[0]||(t[0]=g=>e.value=!a(e))},{default:_(()=>[b(" Dropdown ")]),_:1})]),k("div",{class:V(["absolute z-10 border n-border-base rounded shadow n-transition n-bg-base",[a(e)?"op-100":"op0 pointer-events-none -translate-y-1",o.direction==="end"?"right-0":"left-0"]])},[n(o.$slots,"default")],2)],512)}}});export{$ as _};
@@ -1 +0,0 @@
1
- import{d as C,a0 as N,ao as O,bl as b,as as R,w as $,a2 as D,o as l,m as c,k as m,G as u,f as t,t as g,p as d,aa as M,bq as j,br as z,F as k,I as E,i as J,h,ay as P,bB as A,l as F,aC as q,_ as G}from"./C_tLznPO.js";import{_ as I}from"./BkwfBuTq.js";import{e as T}from"./B3uNdhXb.js";const U=["open"],H={flex:"~ gap2","select-none":"","items-center":"",px4:""},K={key:0,class:"bg-red:10 px5 py3 text-red"},Y=C({__name:"StateEditor",props:{name:{},open:{type:Boolean},revision:{},state:{},readonly:{type:Boolean}},emits:["update:open"],setup(V,{emit:B}){const o=V,s=N(o,"open",B,{passive:!0}),_=O(),n=b(),p=b();function f(){p.value=void 0;try{o.state?n.value=JSON.parse(JSON.stringify(o.state||{})):(typeof o.state=="number"||typeof o.state!="string")&&(n.value=o.state)}catch(e){console.error(e),p.value=e}}R(()=>{f(),$(()=>[o.revision,o.state],e=>{typeof e!="number"&&typeof e!="string"?y(e,o.state):n.value=o.state},{deep:!0})});function y(e,r){const i=e[1];for(const a in i)Array.isArray(i[a])?r[a]=i[a].slice():typeof i[a]=="object"?y(i[a],r[a]):r[a]=i[a]}async function w(){f(),await q()}return(e,r)=>{const i=G,a=I,S=D("tooltip");return l(),c("div",{class:"state-editor-details",open:e.name?t(s):!0},[m("div",H,[e.name?(l(),c("button",{key:0,flex:"~","cursor-pointer":"","items-center":"",class:u(t(s)?"":"op50"),onClick:r[0]||(r[0]=v=>s.value=!t(s))},[m("div",{"i-carbon-chevron-right":"",transition:"",class:u(t(s)?"rotate-90 op0":"")},null,2),m("code",{px3:"",py1:"","font-mono":"",class:u(t(s)?"bg-[#8881] rounded-t":"rounded hover:bg-active")},g(e.name),3)],2)):d("",!0),M(e.$slots,"actions",j(z({isOpen:t(s),name:e.name,state:e.state}))),t(s)?(l(),c(k,{key:1},[E(J(i,{title:"Refresh View",icon:"carbon-renew",border:!1,onClick:w},null,512),[[S,"Refresh View",void 0,{bottom:!0}]]),t(n)&&!t(p)?(l(),h(a,{key:0,getter:()=>({name:e.name,input:JSON.stringify(t(n))})},null,8,["getter"])):d("",!0)],64)):d("",!0)]),t(s)||!e.name?(l(),c(k,{key:0},[t(p)?(l(),c("div",K," Error: "+g(t(p)),1)):(l(),h(t(T),P({key:1,modelValue:t(n),"onUpdate:modelValue":r[1]||(r[1]=v=>F(n)?n.value=v:null)},e.$attrs,{class:["json-editor-vue",[t(_)==="dark"?"jse-theme-dark":"",(e.name,"")]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":"readonly"in e?e.readonly:t(A),indentation:2,"tab-size":2}),null,16,["modelValue","class","read-only"]))],64)):d("",!0)],8,U)}}});export{Y as _};