@nuxt/devtools-nightly 2.0.0-beta.3-28970839.e68b27c → 2.0.0-beta.4-28972036.a28ca5b

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 (63) hide show
  1. package/dist/chunks/module-main.mjs +2 -2
  2. package/dist/chunks/vscode.mjs +1 -1
  3. package/dist/client/200.html +8 -8
  4. package/dist/client/404.html +8 -8
  5. package/dist/client/_nuxt/{analyze-build-qg47sl4o.js → analyze-build-k4mk9yun.js} +1 -1
  6. package/dist/client/_nuxt/{assets-maj7w0l9.js → assets-l2ksml1j.js} +1 -1
  7. package/dist/client/_nuxt/b02f8h4y.js +17 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/0b18b2cb-e292-49a5-84bc-8034f148e947.json +1 -0
  10. package/dist/client/_nuxt/{code-diff.vue-fllw55iu.js → code-diff.vue-mke5i5ht.js} +1 -1
  11. package/dist/client/_nuxt/{code-snippets.vue-ngmabwjj.js → code-snippets.vue-kz39ylf7.js} +1 -1
  12. package/dist/client/_nuxt/{components-nj82whya.js → components-5jpwg4jr.js} +1 -1
  13. package/dist/client/_nuxt/{composable-item.vue-j11edtac.js → composable-item.vue-krvb1hx6.js} +1 -1
  14. package/dist/client/_nuxt/{custom-_name_-lajghw1z.js → custom-_name_-e39sqimm.js} +1 -1
  15. package/dist/client/_nuxt/{default-lms1zo5u.js → default-okvqvker.js} +1 -1
  16. package/dist/client/_nuxt/{error-404-o2jqlzj0.js → error-404-donj9nx3.js} +1 -1
  17. package/dist/client/_nuxt/{error-500-kb1a8894.js → error-500-guu8hu4a.js} +1 -1
  18. package/dist/client/_nuxt/{error-h3ad8c1i.js → error-h4c4ee89.js} +1 -1
  19. package/dist/client/_nuxt/{filepath-item.vue-l7pl1gvj.js → filepath-item.vue-f3958elb.js} +1 -1
  20. package/dist/client/_nuxt/{full-faaw8alz.js → full-p3k4lso2.js} +1 -1
  21. package/dist/client/_nuxt/{help-fab.vue-fjxqso9x.js → help-fab.vue-kjnf5h3g.js} +1 -1
  22. package/dist/client/_nuxt/{hooks-idxosdyf.js → hooks-m100lq90.js} +1 -1
  23. package/dist/client/_nuxt/{imports-h5mch89l.js → imports-lgznszn5.js} +1 -1
  24. package/dist/client/_nuxt/{index-e6n64afw.js → index-jwebz8s6.js} +1 -1
  25. package/dist/client/_nuxt/{index-osmg2pok.js → index-og3vi7fw.js} +1 -1
  26. package/dist/client/_nuxt/{launch-page.vue-m96ik0mi.js → launch-page.vue-fzp5jez3.js} +1 -1
  27. package/dist/client/_nuxt/{modules-ljo7w86b.js → modules-gzb89d9p.js} +1 -1
  28. package/dist/client/_nuxt/{nbadge-hhw3aa8r.js → nbadge-le6qglrd.js} +1 -1
  29. package/dist/client/_nuxt/{ncheckbox.vue-j4t249t2.js → ncheckbox.vue-mnhptb1i.js} +1 -1
  30. package/dist/client/_nuxt/{ndrawer.vue-kxfav72j.js → ndrawer.vue-xvdipzno.js} +1 -1
  31. package/dist/client/_nuxt/{ndropdown.vue-iffjo568.js → ndropdown.vue-nlyuq8dr.js} +1 -1
  32. package/dist/client/_nuxt/{nlink.vue-due16c7b.js → nlink.vue-l5e2nrsl.js} +1 -1
  33. package/dist/client/_nuxt/{nnavbar.vue-b7eqg6ig.js → nnavbar.vue-med0h49f.js} +1 -1
  34. package/dist/client/_nuxt/{none-bm65ro1m.js → none-d4srol4h.js} +1 -1
  35. package/dist/client/_nuxt/{nsection-block-m2ivsm2j.js → nsection-block-mwhk66gw.js} +1 -1
  36. package/dist/client/_nuxt/{nselect-tabs.vue-lxewcdog.js → nselect-tabs.vue-lw6b1oce.js} +1 -1
  37. package/dist/client/_nuxt/{nselect.vue-pdie1h91.js → nselect.vue-cpd2bgtt.js} +1 -1
  38. package/dist/client/_nuxt/{open-graph-oulfhv0x.js → open-graph-lnevntcs.js} +1 -1
  39. package/dist/client/_nuxt/{overview-d3pguxfg.js → overview-lggw2g8n.js} +1 -1
  40. package/dist/client/_nuxt/{pages-krw3rrtt.js → pages-cmfmwr2p.js} +1 -1
  41. package/dist/client/_nuxt/{payload-esuovu7k.js → payload-cxg8buvj.js} +1 -1
  42. package/dist/client/_nuxt/{pinia-ebkme3kc.js → pinia-nc122g2e.js} +1 -1
  43. package/dist/client/_nuxt/{plugins-c9rjtsgs.js → plugins-emvg7eig.js} +1 -1
  44. package/dist/client/_nuxt/{render-tree-nhjqix1a.js → render-tree-k13q5r2i.js} +1 -1
  45. package/dist/client/_nuxt/{runtime-configs-lc5k9j35.js → runtime-configs-joak20f6.js} +1 -1
  46. package/dist/client/_nuxt/{server-discovery-o1xx4xlq.js → server-discovery-gfxffs3t.js} +1 -1
  47. package/dist/client/_nuxt/{server-route-inputs.vue-hxih12fp.js → server-route-inputs.vue-cci8vi7h.js} +1 -1
  48. package/dist/client/_nuxt/{server-routes-ntp1q33t.js → server-routes-mxv29exp.js} +1 -1
  49. package/dist/client/_nuxt/{server-tasks-jm6xnpg4.js → server-tasks-i6n4zfmj.js} +1 -1
  50. package/dist/client/_nuxt/{settings-i3h2912r.js → settings-hb6178w8.js} +1 -1
  51. package/dist/client/_nuxt/{stacktrace-list.vue-bape1neq.js → stacktrace-list.vue-mbkojt56.js} +1 -1
  52. package/dist/client/_nuxt/{state-components-bvd7t1lv.js → state-components-fb7dlw2d.js} +1 -1
  53. package/dist/client/_nuxt/{state-editor.vue-liucgld3.js → state-editor.vue-n8pkn9an.js} +1 -1
  54. package/dist/client/_nuxt/{state-modules-itoszau0.js → state-modules-h8uf7h8d.js} +1 -1
  55. package/dist/client/_nuxt/{storage-j0xx658w.js → storage-dbjnpbvw.js} +1 -1
  56. package/dist/client/_nuxt/{terminals-lnhuzqlq.js → terminals-m00yl3x9.js} +1 -1
  57. package/dist/client/_nuxt/{timeline-e91bvmwe.js → timeline-m1v5ujmi.js} +1 -1
  58. package/dist/client/_nuxt/{virtual-files-jbxjirh7.js → virtual-files-mvbbim6p.js} +1 -1
  59. package/dist/client/index.html +8 -8
  60. package/dist/module.json +1 -1
  61. package/package.json +5 -5
  62. package/dist/client/_nuxt/builds/meta/4f0bef29-b7ee-4a9f-88fc-7224b6fdf7b0.json +0 -1
  63. package/dist/client/_nuxt/h48l6b7a.js +0 -17
@@ -1 +1 @@
1
- {"id":"4f0bef29-b7ee-4a9f-88fc-7224b6fdf7b0","timestamp":1738250359850}
1
+ {"id":"0b18b2cb-e292-49a5-84bc-8034f148e947","timestamp":1738322159916}
@@ -0,0 +1 @@
1
+ {"id":"0b18b2cb-e292-49a5-84bc-8034f148e947","timestamp":1738322159916,"matcher":{"static":{},"wildcard":{},"dynamic":{}},"prerendered":[]}
@@ -1,4 +1,4 @@
1
- import{_ as P}from"./ncode-block.vue-bazndqbc.js";import{bi as Q}from"./h48l6b7a.js";import{l as U,m as X,c as Y,x as j,R as W,N as S}from"./vendor/json-editor-vue-hrh84odz.js";function g(){}g.prototype={diff:function(e,r){var t,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=u.callback;typeof u=="function"&&(o=u,u={});var i=this;function f(v){return v=i.postProcess(v,u),o?(setTimeout(function(){o(v)},0),!0):v}e=this.castInput(e,u),r=this.castInput(r,u),e=this.removeEmpty(this.tokenize(e,u)),r=this.removeEmpty(this.tokenize(r,u));var l=r.length,s=e.length,a=1,c=l+s;u.maxEditLength!=null&&(c=Math.min(c,u.maxEditLength));var p=(t=u.timeout)!==null&&t!==void 0?t:1/0,d=Date.now()+p,m=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(m[0],r,e,0,u);if(m[0].oldPos+1>=s&&h+1>=l)return f(F(i,m[0].lastComponent,r,e,i.useLongestToken));var y=-1/0,T=1/0;function x(){for(var v=Math.max(y,-a);v<=Math.min(T,a);v+=2){var C=void 0,w=m[v-1],E=m[v+1];w&&(m[v-1]=void 0);var N=!1;if(E){var M=E.oldPos-v;N=E&&0<=M&&M<l}var B=w&&w.oldPos+1<s;if(!N&&!B){m[v]=void 0;continue}if(!B||N&&w.oldPos<E.oldPos?C=i.addToPath(E,!0,!1,0,u):C=i.addToPath(w,!1,!0,1,u),h=i.extractCommon(C,r,e,v,u),C.oldPos+1>=s&&h+1>=l)return f(F(i,C.lastComponent,r,e,i.useLongestToken));m[v]=C,C.oldPos+1>=s&&(T=Math.min(T,v-1)),h+1>=l&&(y=Math.max(y,v+1))}a++}if(o)(function v(){setTimeout(function(){if(a>c||Date.now()>d)return o();x()||v()},0)})();else for(;a<=c&&Date.now()<=d;){var z=x();if(z)return z}},addToPath:function(e,r,t,u,o){var i=e.lastComponent;return i&&!o.oneChangePerToken&&i.added===r&&i.removed===t?{oldPos:e.oldPos+u,lastComponent:{count:i.count+1,added:r,removed:t,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+u,lastComponent:{count:1,added:r,removed:t,previousComponent:i}}},extractCommon:function(e,r,t,u,o){for(var i=r.length,f=t.length,l=e.oldPos,s=l-u,a=0;s+1<i&&l+1<f&&this.equals(t[l+1],r[s+1],o);)s++,l++,a++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return a&&!o.oneChangePerToken&&(e.lastComponent={count:a,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,s},equals:function(e,r,t){return t.comparator?t.comparator(e,r):e===r||t.ignoreCase&&e.toLowerCase()===r.toLowerCase()},removeEmpty:function(e){for(var r=[],t=0;t<e.length;t++)e[t]&&r.push(e[t]);return r},castInput:function(e){return e},tokenize:function(e){return Array.from(e)},join:function(e){return e.join("")},postProcess:function(e){return e}};function F(n,e,r,t,u){for(var o=[],i;e;)o.push(e),i=e.previousComponent,delete e.previousComponent,e=i;o.reverse();for(var f=0,l=o.length,s=0,a=0;f<l;f++){var c=o[f];if(c.removed)c.value=n.join(t.slice(a,a+c.count)),a+=c.count;else{if(!c.added&&u){var p=r.slice(s,s+c.count);p=p.map(function(d,m){var h=t[a+m];return h.length>d.length?h:d}),c.value=n.join(p)}else c.value=n.join(r.slice(s,s+c.count));s+=c.count,c.added||(a+=c.count)}}return o}function V(n,e){var r;for(r=0;r<n.length&&r<e.length;r++)if(n[r]!=e[r])return n.slice(0,r);return n.slice(0,r)}function Z(n,e){var r;if(!n||!e||n[n.length-1]!=e[e.length-1])return"";for(r=0;r<n.length&&r<e.length;r++)if(n[n.length-(r+1)]!=e[e.length-(r+1)])return n.slice(-r);return n.slice(-r)}function R(n,e,r){if(n.slice(0,e.length)!=e)throw Error("string ".concat(JSON.stringify(n)," doesn't start with prefix ").concat(JSON.stringify(e),"; this is a bug"));return r+n.slice(e.length)}function _(n,e,r){if(!e)return n+r;if(n.slice(-e.length)!=e)throw Error("string ".concat(JSON.stringify(n)," doesn't end with suffix ").concat(JSON.stringify(e),"; this is a bug"));return n.slice(0,-e.length)+r}function L(n,e){return R(n,e,"")}function I(n,e){return _(n,e,"")}function G(n,e){return e.slice(0,b(n,e))}function b(n,e){var r=0;n.length>e.length&&(r=n.length-e.length);var t=e.length;n.length<e.length&&(t=n.length);var u=Array(t),o=0;u[0]=0;for(var i=1;i<t;i++){for(e[i]==e[o]?u[i]=u[o]:u[i]=o;o>0&&e[i]!=e[o];)o=u[o];e[i]==e[o]&&o++}o=0;for(var f=r;f<n.length;f++){for(;o>0&&n[f]!=e[o];)o=u[o];n[f]==e[o]&&o++}return o}var O="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",K=new RegExp("[".concat(O,"]+|\\s+|[^").concat(O,"]"),"ug"),$=new g;$.equals=function(n,e,r){return r.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n.trim()===e.trim()};$.tokenize=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;if(e.intlSegmenter){if(e.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=Array.from(e.intlSegmenter.segment(n),function(o){return o.segment})}else r=n.match(K)||[];var t=[],u=null;return r.forEach(function(o){/\s/.test(o)?u==null?t.push(o):t.push(t.pop()+o):/\s/.test(u)?t[t.length-1]==u?t.push(t.pop()+o):t.push(u+o):t.push(o),u=o}),t};$.join=function(n){return n.map(function(e,r){return r==0?e:e.replace(/^\s+/,"")}).join("")};$.postProcess=function(n,e){if(!n||e.oneChangePerToken)return n;var r=null,t=null,u=null;return n.forEach(function(o){o.added?t=o:o.removed?u=o:((t||u)&&H(r,u,t,o),r=o,t=null,u=null)}),(t||u)&&H(r,u,t,null),n};function H(n,e,r,t){if(e&&r){var u=e.value.match(/^\s*/)[0],o=e.value.match(/\s*$/)[0],i=r.value.match(/^\s*/)[0],f=r.value.match(/\s*$/)[0];if(n){var l=V(u,i);n.value=_(n.value,i,l),e.value=L(e.value,l),r.value=L(r.value,l)}if(t){var s=Z(o,f);t.value=R(t.value,f,s),e.value=I(e.value,s),r.value=I(r.value,s)}}else if(r)n&&(r.value=r.value.replace(/^\s*/,"")),t&&(t.value=t.value.replace(/^\s*/,""));else if(n&&t){var a=t.value.match(/^\s*/)[0],c=e.value.match(/^\s*/)[0],p=e.value.match(/\s*$/)[0],d=V(a,c);e.value=L(e.value,d);var m=Z(L(a,d),p);e.value=I(e.value,m),t.value=R(t.value,a,m),n.value=_(n.value,a,a.slice(0,a.length-m.length))}else if(t){var h=t.value.match(/^\s*/)[0],y=e.value.match(/\s*$/)[0],T=G(y,h);e.value=I(e.value,T)}else if(n){var x=n.value.match(/\s*$/)[0],z=e.value.match(/^\s*/)[0],v=G(x,z);e.value=L(e.value,v)}}var ee=new g;ee.tokenize=function(n){var e=new RegExp("(\\r?\\n)|[".concat(O,"]+|[^\\S\\n\\r]+|[^").concat(O,"]"),"ug");return n.match(e)||[]};var k=new g;k.tokenize=function(n,e){e.stripTrailingCr&&(n=n.replace(/\r\n/g,`
1
+ import{_ as P}from"./ncode-block.vue-bazndqbc.js";import{bi as Q}from"./b02f8h4y.js";import{l as U,m as X,c as Y,x as j,R as W,N as S}from"./vendor/json-editor-vue-hrh84odz.js";function g(){}g.prototype={diff:function(e,r){var t,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},o=u.callback;typeof u=="function"&&(o=u,u={});var i=this;function f(v){return v=i.postProcess(v,u),o?(setTimeout(function(){o(v)},0),!0):v}e=this.castInput(e,u),r=this.castInput(r,u),e=this.removeEmpty(this.tokenize(e,u)),r=this.removeEmpty(this.tokenize(r,u));var l=r.length,s=e.length,a=1,c=l+s;u.maxEditLength!=null&&(c=Math.min(c,u.maxEditLength));var p=(t=u.timeout)!==null&&t!==void 0?t:1/0,d=Date.now()+p,m=[{oldPos:-1,lastComponent:void 0}],h=this.extractCommon(m[0],r,e,0,u);if(m[0].oldPos+1>=s&&h+1>=l)return f(F(i,m[0].lastComponent,r,e,i.useLongestToken));var y=-1/0,T=1/0;function x(){for(var v=Math.max(y,-a);v<=Math.min(T,a);v+=2){var C=void 0,w=m[v-1],E=m[v+1];w&&(m[v-1]=void 0);var N=!1;if(E){var M=E.oldPos-v;N=E&&0<=M&&M<l}var B=w&&w.oldPos+1<s;if(!N&&!B){m[v]=void 0;continue}if(!B||N&&w.oldPos<E.oldPos?C=i.addToPath(E,!0,!1,0,u):C=i.addToPath(w,!1,!0,1,u),h=i.extractCommon(C,r,e,v,u),C.oldPos+1>=s&&h+1>=l)return f(F(i,C.lastComponent,r,e,i.useLongestToken));m[v]=C,C.oldPos+1>=s&&(T=Math.min(T,v-1)),h+1>=l&&(y=Math.max(y,v+1))}a++}if(o)(function v(){setTimeout(function(){if(a>c||Date.now()>d)return o();x()||v()},0)})();else for(;a<=c&&Date.now()<=d;){var z=x();if(z)return z}},addToPath:function(e,r,t,u,o){var i=e.lastComponent;return i&&!o.oneChangePerToken&&i.added===r&&i.removed===t?{oldPos:e.oldPos+u,lastComponent:{count:i.count+1,added:r,removed:t,previousComponent:i.previousComponent}}:{oldPos:e.oldPos+u,lastComponent:{count:1,added:r,removed:t,previousComponent:i}}},extractCommon:function(e,r,t,u,o){for(var i=r.length,f=t.length,l=e.oldPos,s=l-u,a=0;s+1<i&&l+1<f&&this.equals(t[l+1],r[s+1],o);)s++,l++,a++,o.oneChangePerToken&&(e.lastComponent={count:1,previousComponent:e.lastComponent,added:!1,removed:!1});return a&&!o.oneChangePerToken&&(e.lastComponent={count:a,previousComponent:e.lastComponent,added:!1,removed:!1}),e.oldPos=l,s},equals:function(e,r,t){return t.comparator?t.comparator(e,r):e===r||t.ignoreCase&&e.toLowerCase()===r.toLowerCase()},removeEmpty:function(e){for(var r=[],t=0;t<e.length;t++)e[t]&&r.push(e[t]);return r},castInput:function(e){return e},tokenize:function(e){return Array.from(e)},join:function(e){return e.join("")},postProcess:function(e){return e}};function F(n,e,r,t,u){for(var o=[],i;e;)o.push(e),i=e.previousComponent,delete e.previousComponent,e=i;o.reverse();for(var f=0,l=o.length,s=0,a=0;f<l;f++){var c=o[f];if(c.removed)c.value=n.join(t.slice(a,a+c.count)),a+=c.count;else{if(!c.added&&u){var p=r.slice(s,s+c.count);p=p.map(function(d,m){var h=t[a+m];return h.length>d.length?h:d}),c.value=n.join(p)}else c.value=n.join(r.slice(s,s+c.count));s+=c.count,c.added||(a+=c.count)}}return o}function V(n,e){var r;for(r=0;r<n.length&&r<e.length;r++)if(n[r]!=e[r])return n.slice(0,r);return n.slice(0,r)}function Z(n,e){var r;if(!n||!e||n[n.length-1]!=e[e.length-1])return"";for(r=0;r<n.length&&r<e.length;r++)if(n[n.length-(r+1)]!=e[e.length-(r+1)])return n.slice(-r);return n.slice(-r)}function R(n,e,r){if(n.slice(0,e.length)!=e)throw Error("string ".concat(JSON.stringify(n)," doesn't start with prefix ").concat(JSON.stringify(e),"; this is a bug"));return r+n.slice(e.length)}function _(n,e,r){if(!e)return n+r;if(n.slice(-e.length)!=e)throw Error("string ".concat(JSON.stringify(n)," doesn't end with suffix ").concat(JSON.stringify(e),"; this is a bug"));return n.slice(0,-e.length)+r}function L(n,e){return R(n,e,"")}function I(n,e){return _(n,e,"")}function G(n,e){return e.slice(0,b(n,e))}function b(n,e){var r=0;n.length>e.length&&(r=n.length-e.length);var t=e.length;n.length<e.length&&(t=n.length);var u=Array(t),o=0;u[0]=0;for(var i=1;i<t;i++){for(e[i]==e[o]?u[i]=u[o]:u[i]=o;o>0&&e[i]!=e[o];)o=u[o];e[i]==e[o]&&o++}o=0;for(var f=r;f<n.length;f++){for(;o>0&&n[f]!=e[o];)o=u[o];n[f]==e[o]&&o++}return o}var O="a-zA-Z0-9_\\u{C0}-\\u{FF}\\u{D8}-\\u{F6}\\u{F8}-\\u{2C6}\\u{2C8}-\\u{2D7}\\u{2DE}-\\u{2FF}\\u{1E00}-\\u{1EFF}",K=new RegExp("[".concat(O,"]+|\\s+|[^").concat(O,"]"),"ug"),$=new g;$.equals=function(n,e,r){return r.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n.trim()===e.trim()};$.tokenize=function(n){var e=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r;if(e.intlSegmenter){if(e.intlSegmenter.resolvedOptions().granularity!="word")throw new Error('The segmenter passed must have a granularity of "word"');r=Array.from(e.intlSegmenter.segment(n),function(o){return o.segment})}else r=n.match(K)||[];var t=[],u=null;return r.forEach(function(o){/\s/.test(o)?u==null?t.push(o):t.push(t.pop()+o):/\s/.test(u)?t[t.length-1]==u?t.push(t.pop()+o):t.push(u+o):t.push(o),u=o}),t};$.join=function(n){return n.map(function(e,r){return r==0?e:e.replace(/^\s+/,"")}).join("")};$.postProcess=function(n,e){if(!n||e.oneChangePerToken)return n;var r=null,t=null,u=null;return n.forEach(function(o){o.added?t=o:o.removed?u=o:((t||u)&&H(r,u,t,o),r=o,t=null,u=null)}),(t||u)&&H(r,u,t,null),n};function H(n,e,r,t){if(e&&r){var u=e.value.match(/^\s*/)[0],o=e.value.match(/\s*$/)[0],i=r.value.match(/^\s*/)[0],f=r.value.match(/\s*$/)[0];if(n){var l=V(u,i);n.value=_(n.value,i,l),e.value=L(e.value,l),r.value=L(r.value,l)}if(t){var s=Z(o,f);t.value=R(t.value,f,s),e.value=I(e.value,s),r.value=I(r.value,s)}}else if(r)n&&(r.value=r.value.replace(/^\s*/,"")),t&&(t.value=t.value.replace(/^\s*/,""));else if(n&&t){var a=t.value.match(/^\s*/)[0],c=e.value.match(/^\s*/)[0],p=e.value.match(/\s*$/)[0],d=V(a,c);e.value=L(e.value,d);var m=Z(L(a,d),p);e.value=I(e.value,m),t.value=R(t.value,a,m),n.value=_(n.value,a,a.slice(0,a.length-m.length))}else if(t){var h=t.value.match(/^\s*/)[0],y=e.value.match(/\s*$/)[0],T=G(y,h);e.value=I(e.value,T)}else if(n){var x=n.value.match(/\s*$/)[0],z=e.value.match(/^\s*/)[0],v=G(x,z);e.value=L(e.value,v)}}var ee=new g;ee.tokenize=function(n){var e=new RegExp("(\\r?\\n)|[".concat(O,"]+|[^\\S\\n\\r]+|[^").concat(O,"]"),"ug");return n.match(e)||[]};var k=new g;k.tokenize=function(n,e){e.stripTrailingCr&&(n=n.replace(/\r\n/g,`
2
2
  `));var r=[],t=n.split(/(\n|\r\n)/);t[t.length-1]||t.pop();for(var u=0;u<t.length;u++){var o=t[u];u%2&&!e.newlineIsToken?r[r.length-1]+=o:r.push(o)}return r};k.equals=function(n,e,r){return r.ignoreWhitespace?((!r.newlineIsToken||!n.includes(`
3
3
  `))&&(n=n.trim()),(!r.newlineIsToken||!e.includes(`
4
4
  `))&&(e=e.trim())):r.ignoreNewlineAtEof&&!r.newlineIsToken&&(n.endsWith(`
@@ -1 +1 @@
1
- import{_ as g}from"./ncode-block.vue-bazndqbc.js";import{J as C,f as S}from"./h48l6b7a.js";import{l as w,k as x,m as N,w as B,R as a,U as n,V as s,F as d,ac as V,Z as i,a6 as $,a1 as u,a0 as m,a7 as v,u as T,N as h,X as r}from"./vendor/json-editor-vue-hrh84odz.js";const D={key:0,relative:"","n-code-block":""},E={flex:"~ wrap","w-full":""},F=["onClick"],L={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},X=w({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(f){const l=f,e=x(l.codeSnippets[0]),_=C(),b=N(()=>e.value?.lang||"text");return B(()=>{l.codeSnippets.includes(e.value)||(e.value=l.codeSnippets[0])}),(p,o)=>{const k=g,c=S;return p.codeSnippets.length?(a(),n("div",D,[s("div",E,[(a(!0),n(d,null,V(p.codeSnippets,(t,y)=>(a(),n("button",{key:y,px4:"",py2:"",border:"r base",hover:"bg-active",class:i(t===e.value?"":"border-b"),onClick:R=>e.value=t},[s("div",{class:i(t===e.value?"":"op30"),"font-mono":""},$(t.name),3)],10,F))),128)),o[1]||(o[1]=s("div",{border:"b base","flex-auto":""},null,-1))]),e.value?(a(),n(d,{key:0},[u(k,{code:e.value.code,lang:b.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),s("div",L,[u(c,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>T(_)(e.value.code,p.eventType||`code-snippet-${e.value.name}`))},{default:m(()=>o[2]||(o[2]=[v(" Copy ")])),_:1}),e.value?.docs?(a(),h(c,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:m(()=>o[3]||(o[3]=[v(" Docs ")])),_:1},8,["to"])):r("",!0)])],64)):r("",!0)])):r("",!0)}}});export{X as _};
1
+ import{_ as g}from"./ncode-block.vue-bazndqbc.js";import{J as C,f as S}from"./b02f8h4y.js";import{l as w,k as x,m as N,w as B,R as a,U as n,V as s,F as d,ac as V,Z as i,a6 as $,a1 as u,a0 as m,a7 as v,u as T,N as h,X as r}from"./vendor/json-editor-vue-hrh84odz.js";const D={key:0,relative:"","n-code-block":""},E={flex:"~ wrap","w-full":""},F=["onClick"],L={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},X=w({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(f){const l=f,e=x(l.codeSnippets[0]),_=C(),b=N(()=>e.value?.lang||"text");return B(()=>{l.codeSnippets.includes(e.value)||(e.value=l.codeSnippets[0])}),(p,o)=>{const k=g,c=S;return p.codeSnippets.length?(a(),n("div",D,[s("div",E,[(a(!0),n(d,null,V(p.codeSnippets,(t,y)=>(a(),n("button",{key:y,px4:"",py2:"",border:"r base",hover:"bg-active",class:i(t===e.value?"":"border-b"),onClick:R=>e.value=t},[s("div",{class:i(t===e.value?"":"op30"),"font-mono":""},$(t.name),3)],10,F))),128)),o[1]||(o[1]=s("div",{border:"b base","flex-auto":""},null,-1))]),e.value?(a(),n(d,{key:0},[u(k,{code:e.value.code,lang:b.value,lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),s("div",L,[u(c,{icon:"carbon-copy",onClick:o[0]||(o[0]=t=>T(_)(e.value.code,p.eventType||`code-snippet-${e.value.name}`))},{default:m(()=>o[2]||(o[2]=[v(" Copy ")])),_:1}),e.value?.docs?(a(),h(c,{key:0,to:e.value.docs,target:"_blank",icon:"carbon-catalog"},{default:m(()=>o[3]||(o[3]=[v(" Docs ")])),_:1},8,["to"])):r("",!0)])],64)):r("",!0)])):r("",!0)}}});export{X as _};
@@ -1 +1 @@
1
- import{J as ie,f as q,Q as pe,R as re,I as ue,S as de,c as Z,T as ce,U as me,V as fe,N as ve,W as _e,X as he,E as be,b as ge}from"./h48l6b7a.js";import{R as t,U as _,V as n,l as R,m as S,a7 as O,a6 as W,a1 as v,u as N,N as x,X as k,F as T,ac as L,W as H,c as M,k as ye,x as we,d as xe,a0 as b,y as E,S as ke,Z as Ce,a2 as z,ae as $e,a8 as Ne,a9 as Q}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as Ve}from"./help-fab.vue-fjxqso9x.js";import{_ as Se}from"./ncheckbox.vue-j4t249t2.js";import{_ as K}from"./nnavbar.vue-b7eqg6ig.js";import{_ as Y}from"./nbadge-hhw3aa8r.js";import{_ as ee}from"./filepath-item.vue-l7pl1gvj.js";import{_ as Pe}from"./ndrawer.vue-kxfav72j.js";import{N as De}from"./vendor/vis-fzckz0r6.js";import{_ as Te}from"./nselect-tabs.vue-lxewcdog.js";import{_ as Ue}from"./nsection-block-m2ivsm2j.js";import{_ as Be}from"./nicon-title.vue-evdbm4ef.js";import{D as j}from"./constants-b32h69zq.js";import{u as Le,a as Me}from"./state-components-bvd7t1lv.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const Re={class:"markdown-body"},Ie={__name:"components",setup(r,{expose:s}){return s({frontmatter:{}}),(a,i)=>(t(),_("div",Re,i[0]||(i[0]=[n("h1",null,"Components",-1),n("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.",-1),n("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},Fe=/\d/,Ge=["-","_","/","."];function Ee(r=""){if(!Fe.test(r))return r!==r.toLowerCase()}function Ae(r,s){const c=Ge,a=[];if(!r||typeof r!="string")return a;let i="",o,p;for(const m of r){const u=c.includes(m);if(u===!0){a.push(i),i="",o=void 0;continue}const f=Ee(m);if(p===!1){if(o===!1&&f===!0){a.push(i),i=m,o=f;continue}if(o===!0&&f===!1&&i.length>1){const g=i.at(-1);a.push(i.slice(0,Math.max(0,i.length-1))),i=g+m,o=f;continue}}i+=m,o=f,p=u}return a.push(i),a}function ze(r){return r?r[0].toUpperCase()+r.slice(1):""}function ne(r,s){return r?(Array.isArray(r)?r:Ae(r)).map(c=>ze(c)).join(""):""}const We={"text-sm":"","font-mono":""},oe=R({__name:"ComponentName",props:{component:{}},setup(r){const s=r,c=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||""));return(a,i)=>(t(),_("code",We,[i[0]||(i[0]=n("span",{mr1:"",op20:""},"<",-1)),O(W(c.value),1),i[1]||(i[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),He={flex:"~ col gap1","items-start":"","of-hidden":""},Xe={flex:"~ gap2",px3:""},je={px3:"",pb2:""},Oe={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},qe={"text-sm":""},Je={"text-primary":""},Qe={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Ze={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Ke={"text-sm":""},Ye={"text-primary":""},en={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},te=R({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,c=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||"")),a=S(()=>s.component.filePath||s.component.file||s.component.__file||""),i=ie();return(o,p)=>{const m=oe,u=q,f=Y,g=ee;return t(),_("div",He,[n("div",Xe,[v(m,{component:o.component},null,8,["component"]),v(u,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:p[0]||(p[0]=h=>N(i)(`<${c.value}></${c.value}>`,"component-name"))}),o.component.global?(t(),x(f,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0)]),n("div",je,[a.value?(t(),x(g,{key:0,filepath:a.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)]),o.dependents?(t(),_("div",Oe,[n("div",qe,[n("strong",Je,W(o.dependents.length),1),p[1]||(p[1]=n("span",{op50:""}," references",-1))]),o.dependents.length?(t(),_("div",Qe,[(t(!0),_(T,null,L(o.dependents,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),o.dependencies?(t(),_("div",Ze,[n("div",Ke,[n("strong",Ye,W(o.dependencies.length),1),p[2]||(p[2]=n("span",{op50:""}," dependencies",-1))]),o.dependencies.length?(t(),_("div",en,[(t(!0),_(T,null,L(o.dependencies,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),H(o.$slots,"default")])}}}),nn={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},on={relative:"","h-full":"","w-full":""},tn={key:0,py4:"",pt4:"",flex:"~ col"},sn={border:"t base",p4:""},ln=R({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(r){const s=r,c=M(),a=M(),i=pe(),o=ye(),p=re(),m=ue(),u=de(),{componentsGraphShowNodeModules:f,componentsGraphShowGlobalComponents:g,componentsGraphShowPages:h,componentsGraphShowLayouts:V,componentsGraphShowWorkspace:y}=Z("ui"),C=M(),d=M(""),I=ce(d,300),F=S(()=>{const P=s.relationships||[];if(C.value){let e=function($){!$||l.has($)||(l.add($),$.deps.forEach(U=>{e(P.find(B=>B.id===U))}))};const l=new Set;return e(C.value),Array.from(l)}return P}),A=S(()=>{const P=F.value.map(l=>{const $=s.components.find(G=>G.filePath===l.id),U=p.value?.find(G=>G.file===l.id),B=u.value?.find(G=>G.file===l.id),X=l.id.replace(/\?.*$/,"").replace(/#.*$/,""),D=l.id.includes("/node_modules/")?"lib":$?$.global?"global":"user":B?"layout":U?"page":"unknown";if(!f.value&&D==="lib"||!h.value&&D==="page"||!V.value&&D==="layout"||!y.value&&D==="user"&&m.value&&!l.id.startsWith(m.value.rootDir)||!g.value&&D==="global")return null;const w=D==="layout"?"hexagon":D==="page"?"square":"dot",J=I.value&&!l.id.toLowerCase().includes(I.value.toLowerCase());return{id:l.id,label:X.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:D,shape:w,size:15+Math.min(l.deps.length/2,8),font:{color:J?"#8885":i.value==="dark"?"white":"black"},color:J?"#8885":C.value?.id===l.id?"#82c742":void 0,extra:{id:l.id,component:$,page:U,layout:B,relationship:l}}}).filter(l=>!!l),e=F.value.flatMap(l=>l.deps.map($=>({from:l.id,to:$,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:P,edges:e}}),se=S(()=>o.value?.component?s.relationships?.find(e=>e.id===o.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(l=>l.id===e)?.id).filter(Boolean):[]),le=S(()=>o.value?.component?s.relationships?.filter(e=>e.deps.includes(o.value.component.filePath))?.map(e=>s.relationships?.find(l=>l.id===e.id)?.id).filter(Boolean):[]);we(()=>{const P={nodes:{shape:"dot",size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:"#42b883"},unknown:{color:"#b86542"},lib:{color:"#b4b842"},page:{color:"#42b2b8"},layout:{color:"#4256b8"}}},e=new De(c.value,A.value,P);e.on("click",l=>{const $=l.nodes?.[0],U=A.value.nodes?.find(B=>B.id===$)?.extra;U&&(o.value=U)}),xe(A,()=>{e.setData(A.value)})});function ae(){C.value=o.value?.relationship,o.value=void 0}return(P,e)=>{const l=Se,$=K,U=me,B=te,X=q,D=Pe;return t(),_(T,null,[v($,{ref_key:"navbar",ref:a,search:d.value,"onUpdate:search":e[6]||(e[6]=w=>d.value=w),absolute:"","left-0":"","right-0":"","top-0":""},{actions:b(()=>[n("div",nn,[v(l,{modelValue:N(h),"onUpdate:modelValue":e[0]||(e[0]=w=>E(h)?h.value=w:null),n:"primary sm"},{default:b(()=>e[9]||(e[9]=[n("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(V),"onUpdate:modelValue":e[1]||(e[1]=w=>E(V)?V.value=w:null),n:"primary sm"},{default:b(()=>e[10]||(e[10]=[n("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(y),"onUpdate:modelValue":e[2]||(e[2]=w=>E(y)?y.value=w:null),n:"primary sm"},{default:b(()=>e[11]||(e[11]=[n("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(f),"onUpdate:modelValue":e[3]||(e[3]=w=>E(f)?f.value=w:null),n:"primary sm"},{default:b(()=>e[12]||(e[12]=[n("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(g),"onUpdate:modelValue":e[4]||(e[4]=w=>E(g)?g.value=w:null),n:"primary sm"},{default:b(()=>e[13]||(e[13]=[n("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),C.value?(t(),_("button",{key:0,flex:"~ gap-1","flex-none":"","items-center":"","rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:e[5]||(e[5]=w=>C.value=void 0)},e[14]||(e[14]=[O(" Clear filter "),n("div",{"i-carbon-close":""},null,-1)]))):k("",!0),e[15]||(e[15]=n("div",{"flex-auto":""},null,-1)),H(P.$slots,"default")]),_:3},8,["search"]),n("div",on,[n("div",{ref_key:"container",ref:c,"h-full":"","w-full":""},null,512),v(U,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:b(()=>e[16]||(e[16]=[n("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),n("div",{op50:""}," Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),n("div",{op50:""}," Global Component "),n("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),n("div",{op50:""}," Page "),n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[n("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),n("div",{op50:""}," Layout "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),n("div",{op50:""}," Library Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),n("div",{op50:""}," Unknown ")],-1)])),_:1}),v(D,{"model-value":!!(o.value&&o.value.component),top:a.value,border:"t l base","w-80":"",onClose:e[8]||(e[8]=w=>o.value=void 0)},{default:b(()=>[o.value&&o.value.component?(t(),_("div",tn,[v(B,{component:o.value.component,dependencies:se.value,dependents:le.value},null,8,["component","dependencies","dependents"]),n("div",sn,[v(X,{n:"primary solid",onClick:e[7]||(e[7]=w=>ae())},{default:b(()=>e[17]||(e[17]=[O(" Filter to this component ")])),_:1})])])):k("",!0)]),_:1},8,["model-value","top"])])],64)}}}),an={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},pn={key:0,"ml--1":"","text-primary":""},rn=R({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,c=S(()=>s.component.filePath||s.component.file||s.component.__file||"");return(a,i)=>{const o=oe,p=te,m=ke("VDropdown"),u=Y,f=ee;return t(),_("div",an,[v(m,null,{popper:b(()=>[v(p,{component:a.component,dependencies:a.dependencies,dependents:a.dependents,"w-100":"",pt4:""},null,8,["component","dependencies","dependents"])]),default:b(()=>[n("button",{"hover:text-primary":"",class:Ce(a.dependents&&a.dependents.length===0?"op50":"")},[v(o,{component:a.component},null,8,["component"])],2)]),_:1}),a.dependents?.length?(t(),_("sup",pn," x"+W(a.dependents?.length),1)):k("",!0),a.component.global?(t(),x(u,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0),H(a.$slots,"default"),c.value?(t(),x(f,{key:2,filepath:c.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)])}}}),un={flex:"~ gap-2 items-center"},dn={pl4:""},cn=R({__name:"ComponentsList",props:{components:{},relationships:{}},setup(r){const s=r,c=M(""),a=M("all"),i=S(()=>{const m=s.components.map(u=>fe(u,s.relationships));return a.value==="using"?m.filter(u=>u.dependents?.length):a.value==="not-used"?m.filter(u=>!u.dependents?.length):m}),o=S(()=>new ve(i.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),p=S(()=>{const m=[],u=new Map,f=[],g=[],h={user:0,lib:0,builtin:0,runtime:0};return(c.value?o.value.search(c.value).map(y=>y.item):i.value).forEach(y=>{const C=y.component;if(C.filePath&&_e(C.filePath)){const d=he(C.filePath);if(!d)return;d==="nuxt"?(f.push(y),h.builtin++):(u.has(d)||u.set(d,[]),u.get(d).push(y),h.lib++)}else C.global&&!C.filePath?(g.push(y),h.runtime++):(m.push(y),h.user++)}),{count:h,user:m,builtin:f,lib:u,runtime:g}});return(m,u)=>{const f=be,g=Te,h=K,V=rn,y=Ue,C=Be;return t(),_(T,null,[v(h,{search:c.value,"onUpdate:search":u[1]||(u[1]=d=>c.value=d),pb3:""},{actions:b(()=>[H(m.$slots,"default")]),default:b(()=>[n("div",un,[v(f,{icon:"carbon-filter",op50:""}),v(g,{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=d=>a.value=d),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),p.value.user.length?(t(),x(y,{key:0,icon:"carbon-nominal",text:"User components",open:p.value.user.length<=N(j),description:`Total components: ${p.value.count.user}`},{default:b(()=>[(t(!0),_(T,null,L(p.value.user,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.runtime.length?(t(),x(y,{key:1,icon:"carbon-load-balancer-global",open:p.value.runtime.length<=N(j),text:"Runtime components",description:`Total components: ${p.value.count.runtime}`},{default:b(()=>[(t(!0),_(T,null,L(p.value.runtime,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.builtin.length?(t(),x(y,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${p.value.count.builtin}`},{default:b(()=>[(t(!0),_(T,null,L(p.value.builtin,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["description"])):k("",!0),p.value.lib.size?(t(),x(y,{key:3,open:p.value.count.lib<=N(j),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:b(()=>[(t(!0),_(T,null,L(p.value.lib.entries(),([d,I])=>(t(),_("div",{key:d,"ml-2":""},[v(C,{text:`${d} (${I.length})`,py1:"",op50:""},null,8,["text"]),n("div",dn,[(t(!0),_(T,null,L(I,F=>(t(),x(V,z({key:F.component.filePath,ref_for:!0},F),null,16))),128))])]))),128))]),_:1},8,["open","description"])):k("",!0)],64)}}}),mn={relative:"","h-full":"","of-auto":""},fn={"flex-none":"",flex:"~ gap3"},Tn=R({__name:"components",setup(r){const s=ge(),c=Le(),a=Me(),{componentsView:i}=Z("ui");function o(){s.value?.inspector?.instance&&s.value.inspector.enable()}function p(){i.value=i.value==="list"?"graph":"list"}return(m,u)=>{const f=q,g=Ie,h=Ve,V=$e("tooltip");return t(),_(T,null,[n("div",mn,[(t(),x(Ne(N(i)==="list"?cn:ln),{components:N(c),relationships:N(a)},{default:b(()=>[n("div",fn,[Q(v(f,{"text-lg":"",border:!1,icon:N(i)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:p},null,8,["icon"]),[[V,"Toggle View",void 0,{"bottom-end":!0}]]),N(s)?.inspector?.instance?Q((t(),x(f,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:o},null,512)),[[V,"Inspect Vue components",void 0,{"bottom-end":!0}]]):k("",!0)])]),_:1},8,["components","relationships"]))]),v(h,null,{default:b(()=>[v(g)]),_:1})],64)}}});export{Tn as default};
1
+ import{J as ie,f as q,Q as pe,R as re,I as ue,S as de,c as Z,T as ce,U as me,V as fe,N as ve,W as _e,X as he,E as be,b as ge}from"./b02f8h4y.js";import{R as t,U as _,V as n,l as R,m as S,a7 as O,a6 as W,a1 as v,u as N,N as x,X as k,F as T,ac as L,W as H,c as M,k as ye,x as we,d as xe,a0 as b,y as E,S as ke,Z as Ce,a2 as z,ae as $e,a8 as Ne,a9 as Q}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as Ve}from"./help-fab.vue-kjnf5h3g.js";import{_ as Se}from"./ncheckbox.vue-mnhptb1i.js";import{_ as K}from"./nnavbar.vue-med0h49f.js";import{_ as Y}from"./nbadge-le6qglrd.js";import{_ as ee}from"./filepath-item.vue-f3958elb.js";import{_ as Pe}from"./ndrawer.vue-xvdipzno.js";import{N as De}from"./vendor/vis-fzckz0r6.js";import{_ as Te}from"./nselect-tabs.vue-lw6b1oce.js";import{_ as Ue}from"./nsection-block-mwhk66gw.js";import{_ as Be}from"./nicon-title.vue-evdbm4ef.js";import{D as j}from"./constants-b32h69zq.js";import{u as Le,a as Me}from"./state-components-fb7dlw2d.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const Re={class:"markdown-body"},Ie={__name:"components",setup(r,{expose:s}){return s({frontmatter:{}}),(a,i)=>(t(),_("div",Re,i[0]||(i[0]=[n("h1",null,"Components",-1),n("p",null,"Vue Components allow us to split the UI into independent and reusable pieces, and think about each piece in isolation. This is very similar to how we nest native HTML elements, but Vue implements its own component model that allow us to encapsulate custom content and logic in each component.",-1),n("p",null,"Components placed in the components/ directory are automatically registered by Nuxt. They can be used in your templates without importing them.",-1),n("p",null,[n("a",{href:"https://nuxt.com/docs/guide/directory-structure/components",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},Fe=/\d/,Ge=["-","_","/","."];function Ee(r=""){if(!Fe.test(r))return r!==r.toLowerCase()}function Ae(r,s){const c=Ge,a=[];if(!r||typeof r!="string")return a;let i="",o,p;for(const m of r){const u=c.includes(m);if(u===!0){a.push(i),i="",o=void 0;continue}const f=Ee(m);if(p===!1){if(o===!1&&f===!0){a.push(i),i=m,o=f;continue}if(o===!0&&f===!1&&i.length>1){const g=i.at(-1);a.push(i.slice(0,Math.max(0,i.length-1))),i=g+m,o=f;continue}}i+=m,o=f,p=u}return a.push(i),a}function ze(r){return r?r[0].toUpperCase()+r.slice(1):""}function ne(r,s){return r?(Array.isArray(r)?r:Ae(r)).map(c=>ze(c)).join(""):""}const We={"text-sm":"","font-mono":""},oe=R({__name:"ComponentName",props:{component:{}},setup(r){const s=r,c=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||""));return(a,i)=>(t(),_("code",We,[i[0]||(i[0]=n("span",{mr1:"",op20:""},"<",-1)),O(W(c.value),1),i[1]||(i[1]=n("span",{ml1:"",op20:""},"/>",-1))]))}}),He={flex:"~ col gap1","items-start":"","of-hidden":""},Xe={flex:"~ gap2",px3:""},je={px3:"",pb2:""},Oe={key:0,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},qe={"text-sm":""},Je={"text-primary":""},Qe={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Ze={key:1,border:"t base","max-h-60":"","w-full":"","of-auto":"",px3:"",py3:""},Ke={"text-sm":""},Ye={"text-primary":""},en={key:0,flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},te=R({__name:"ComponentDetails",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,c=S(()=>s.component.pascalName||ne(s.component.name||s.component.__name||s.component.kebabName||"")),a=S(()=>s.component.filePath||s.component.file||s.component.__file||""),i=ie();return(o,p)=>{const m=oe,u=q,f=Y,g=ee;return t(),_("div",He,[n("div",Xe,[v(m,{component:o.component},null,8,["component"]),v(u,{title:"Copy name","flex-none":"",icon:"carbon-copy",border:!1,onClick:p[0]||(p[0]=h=>N(i)(`<${c.value}></${c.value}>`,"component-name"))}),o.component.global?(t(),x(f,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0)]),n("div",je,[a.value?(t(),x(g,{key:0,filepath:a.value,"w-full":"","text-sm":"",op40:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)]),o.dependents?(t(),_("div",Oe,[n("div",qe,[n("strong",Je,W(o.dependents.length),1),p[1]||(p[1]=n("span",{op50:""}," references",-1))]),o.dependents.length?(t(),_("div",Qe,[(t(!0),_(T,null,L(o.dependents,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),o.dependencies?(t(),_("div",Ze,[n("div",Ke,[n("strong",Ye,W(o.dependencies.length),1),p[2]||(p[2]=n("span",{op50:""}," dependencies",-1))]),o.dependencies.length?(t(),_("div",en,[(t(!0),_(T,null,L(o.dependencies,h=>(t(),x(g,{key:h,filepath:h},null,8,["filepath"]))),128))])):k("",!0)])):k("",!0),H(o.$slots,"default")])}}}),nn={flex:"~ gap-x-3 gap-y-1 wrap","w-full":""},on={relative:"","h-full":"","w-full":""},tn={key:0,py4:"",pt4:"",flex:"~ col"},sn={border:"t base",p4:""},ln=R({__name:"ComponentsGraph",props:{components:{},relationships:{}},setup(r){const s=r,c=M(),a=M(),i=pe(),o=ye(),p=re(),m=ue(),u=de(),{componentsGraphShowNodeModules:f,componentsGraphShowGlobalComponents:g,componentsGraphShowPages:h,componentsGraphShowLayouts:V,componentsGraphShowWorkspace:y}=Z("ui"),C=M(),d=M(""),I=ce(d,300),F=S(()=>{const P=s.relationships||[];if(C.value){let e=function($){!$||l.has($)||(l.add($),$.deps.forEach(U=>{e(P.find(B=>B.id===U))}))};const l=new Set;return e(C.value),Array.from(l)}return P}),A=S(()=>{const P=F.value.map(l=>{const $=s.components.find(G=>G.filePath===l.id),U=p.value?.find(G=>G.file===l.id),B=u.value?.find(G=>G.file===l.id),X=l.id.replace(/\?.*$/,"").replace(/#.*$/,""),D=l.id.includes("/node_modules/")?"lib":$?$.global?"global":"user":B?"layout":U?"page":"unknown";if(!f.value&&D==="lib"||!h.value&&D==="page"||!V.value&&D==="layout"||!y.value&&D==="user"&&m.value&&!l.id.startsWith(m.value.rootDir)||!g.value&&D==="global")return null;const w=D==="layout"?"hexagon":D==="page"?"square":"dot",J=I.value&&!l.id.toLowerCase().includes(I.value.toLowerCase());return{id:l.id,label:X.split("/").splice(-1)[0].replace(/\.\w+$/,""),group:D,shape:w,size:15+Math.min(l.deps.length/2,8),font:{color:J?"#8885":i.value==="dark"?"white":"black"},color:J?"#8885":C.value?.id===l.id?"#82c742":void 0,extra:{id:l.id,component:$,page:U,layout:B,relationship:l}}}).filter(l=>!!l),e=F.value.flatMap(l=>l.deps.map($=>({from:l.id,to:$,arrows:{to:{enabled:!0,scaleFactor:.8}}})));return{nodes:P,edges:e}}),se=S(()=>o.value?.component?s.relationships?.find(e=>e.id===o.value?.component?.filePath)?.deps?.map(e=>s.relationships?.find(l=>l.id===e)?.id).filter(Boolean):[]),le=S(()=>o.value?.component?s.relationships?.filter(e=>e.deps.includes(o.value.component.filePath))?.map(e=>s.relationships?.find(l=>l.id===e.id)?.id).filter(Boolean):[]);we(()=>{const P={nodes:{shape:"dot",size:16},physics:{repulsion:{centralGravity:.7,springLength:100,springConstant:.01},maxVelocity:146,solver:"forceAtlas2Based",timestep:.35,stabilization:{enabled:!0,iterations:200}},groups:{user:{color:"#42b883"},unknown:{color:"#b86542"},lib:{color:"#b4b842"},page:{color:"#42b2b8"},layout:{color:"#4256b8"}}},e=new De(c.value,A.value,P);e.on("click",l=>{const $=l.nodes?.[0],U=A.value.nodes?.find(B=>B.id===$)?.extra;U&&(o.value=U)}),xe(A,()=>{e.setData(A.value)})});function ae(){C.value=o.value?.relationship,o.value=void 0}return(P,e)=>{const l=Se,$=K,U=me,B=te,X=q,D=Pe;return t(),_(T,null,[v($,{ref_key:"navbar",ref:a,search:d.value,"onUpdate:search":e[6]||(e[6]=w=>d.value=w),absolute:"","left-0":"","right-0":"","top-0":""},{actions:b(()=>[n("div",nn,[v(l,{modelValue:N(h),"onUpdate:modelValue":e[0]||(e[0]=w=>E(h)?h.value=w:null),n:"primary sm"},{default:b(()=>e[9]||(e[9]=[n("span",{op75:""},"Show pages",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(V),"onUpdate:modelValue":e[1]||(e[1]=w=>E(V)?V.value=w:null),n:"primary sm"},{default:b(()=>e[10]||(e[10]=[n("span",{op75:""},"Show layouts",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(y),"onUpdate:modelValue":e[2]||(e[2]=w=>E(y)?y.value=w:null),n:"primary sm"},{default:b(()=>e[11]||(e[11]=[n("span",{op75:""},"Show workspace",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(f),"onUpdate:modelValue":e[3]||(e[3]=w=>E(f)?f.value=w:null),n:"primary sm"},{default:b(()=>e[12]||(e[12]=[n("span",{op75:""},"Show node_modules",-1)])),_:1},8,["modelValue"]),v(l,{modelValue:N(g),"onUpdate:modelValue":e[4]||(e[4]=w=>E(g)?g.value=w:null),n:"primary sm"},{default:b(()=>e[13]||(e[13]=[n("span",{op75:""},"Show global components",-1)])),_:1},8,["modelValue"])]),C.value?(t(),_("button",{key:0,flex:"~ gap-1","flex-none":"","items-center":"","rounded-full":"","bg-gray:20":"",py1:"",pl3:"",pr2:"","text-xs":"",op50:"","hover:op100":"",onClick:e[5]||(e[5]=w=>C.value=void 0)},e[14]||(e[14]=[O(" Clear filter "),n("div",{"i-carbon-close":""},null,-1)]))):k("",!0),e[15]||(e[15]=n("div",{"flex-auto":""},null,-1)),H(P.$slots,"default")]),_:3},8,["search"]),n("div",on,[n("div",{ref_key:"container",ref:c,"h-full":"","w-full":""},null,512),v(U,{absolute:"","bottom-3":"","left-3":"","border-0":"",p2:"",px3:"","text-sm":"","n-glass-effect":""},{default:b(()=>e[16]||(e[16]=[n("div",{grid:"~ cols-[20px_1fr] items-center gap-y-1"},[n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-42b883":""}),n("div",{op50:""}," Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-97c2fc":""}),n("div",{op50:""}," Global Component "),n("div",{"h-3":"","w-3":"","bg-hex-42b2b8":""}),n("div",{op50:""}," Page "),n("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 726 628","ml--1px":"","h-3":""},[n("path",{fill:"#4256b8","stroke-width":"4",d:"M723 314 543 625.8H183L3 314 183 2.2h360L723 314z"})]),n("div",{op50:""}," Layout "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b4b842":""}),n("div",{op50:""}," Library Component "),n("div",{"h-3":"","w-3":"","rounded-full":"","bg-hex-b86542":""}),n("div",{op50:""}," Unknown ")],-1)])),_:1}),v(D,{"model-value":!!(o.value&&o.value.component),top:a.value,border:"t l base","w-80":"",onClose:e[8]||(e[8]=w=>o.value=void 0)},{default:b(()=>[o.value&&o.value.component?(t(),_("div",tn,[v(B,{component:o.value.component,dependencies:se.value,dependents:le.value},null,8,["component","dependencies","dependents"]),n("div",sn,[v(X,{n:"primary solid",onClick:e[7]||(e[7]=w=>ae())},{default:b(()=>e[17]||(e[17]=[O(" Filter to this component ")])),_:1})])])):k("",!0)]),_:1},8,["model-value","top"])])],64)}}}),an={hover:"bg-active",class:"group",flex:"~ gap2","w-full":"","items-center":"",rounded:"",px2:"",py1:""},pn={key:0,"ml--1":"","text-primary":""},rn=R({__name:"ComponentItem",props:{component:{},dependencies:{},dependents:{}},setup(r){const s=r,c=S(()=>s.component.filePath||s.component.file||s.component.__file||"");return(a,i)=>{const o=oe,p=te,m=ke("VDropdown"),u=Y,f=ee;return t(),_("div",an,[v(m,null,{popper:b(()=>[v(p,{component:a.component,dependencies:a.dependencies,dependents:a.dependents,"w-100":"",pt4:""},null,8,["component","dependencies","dependents"])]),default:b(()=>[n("button",{"hover:text-primary":"",class:Ce(a.dependents&&a.dependents.length===0?"op50":"")},[v(o,{component:a.component},null,8,["component"])],2)]),_:1}),a.dependents?.length?(t(),_("sup",pn," x"+W(a.dependents?.length),1)):k("",!0),a.component.global?(t(),x(u,{key:1,n:"green",title:"Registered at runtime as a global component",textContent:"runtime"})):k("",!0),H(a.$slots,"default"),c.value?(t(),x(f,{key:2,filepath:c.value,"text-sm":"",op25:"","group-hover:op75":""},null,8,["filepath"])):k("",!0)])}}}),un={flex:"~ gap-2 items-center"},dn={pl4:""},cn=R({__name:"ComponentsList",props:{components:{},relationships:{}},setup(r){const s=r,c=M(""),a=M("all"),i=S(()=>{const m=s.components.map(u=>fe(u,s.relationships));return a.value==="using"?m.filter(u=>u.dependents?.length):a.value==="not-used"?m.filter(u=>!u.dependents?.length):m}),o=S(()=>new ve(i.value,{keys:["component.pascalName","component.filePath","component.kebabName"]})),p=S(()=>{const m=[],u=new Map,f=[],g=[],h={user:0,lib:0,builtin:0,runtime:0};return(c.value?o.value.search(c.value).map(y=>y.item):i.value).forEach(y=>{const C=y.component;if(C.filePath&&_e(C.filePath)){const d=he(C.filePath);if(!d)return;d==="nuxt"?(f.push(y),h.builtin++):(u.has(d)||u.set(d,[]),u.get(d).push(y),h.lib++)}else C.global&&!C.filePath?(g.push(y),h.runtime++):(m.push(y),h.user++)}),{count:h,user:m,builtin:f,lib:u,runtime:g}});return(m,u)=>{const f=be,g=Te,h=K,V=rn,y=Ue,C=Be;return t(),_(T,null,[v(h,{search:c.value,"onUpdate:search":u[1]||(u[1]=d=>c.value=d),pb3:""},{actions:b(()=>[H(m.$slots,"default")]),default:b(()=>[n("div",un,[v(f,{icon:"carbon-filter",op50:""}),v(g,{modelValue:a.value,"onUpdate:modelValue":u[0]||(u[0]=d=>a.value=d),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])]),_:3},8,["search"]),p.value.user.length?(t(),x(y,{key:0,icon:"carbon-nominal",text:"User components",open:p.value.user.length<=N(j),description:`Total components: ${p.value.count.user}`},{default:b(()=>[(t(!0),_(T,null,L(p.value.user,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.runtime.length?(t(),x(y,{key:1,icon:"carbon-load-balancer-global",open:p.value.runtime.length<=N(j),text:"Runtime components",description:`Total components: ${p.value.count.runtime}`},{default:b(()=>[(t(!0),_(T,null,L(p.value.runtime,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["open","description"])):k("",!0),p.value.builtin.length?(t(),x(y,{key:2,icon:"simple-icons-nuxtdotjs",text:"Built-in components",description:`Total components: ${p.value.count.builtin}`},{default:b(()=>[(t(!0),_(T,null,L(p.value.builtin,d=>(t(),x(V,z({key:d.component.filePath,ref_for:!0},d),null,16))),128))]),_:1},8,["description"])):k("",!0),p.value.lib.size?(t(),x(y,{key:3,open:p.value.count.lib<=N(j),icon:"carbon-3d-mpr-toggle",text:"Components from libraries",description:`${p.value.count.lib} components from ${p.value.lib.size} packages`},{default:b(()=>[(t(!0),_(T,null,L(p.value.lib.entries(),([d,I])=>(t(),_("div",{key:d,"ml-2":""},[v(C,{text:`${d} (${I.length})`,py1:"",op50:""},null,8,["text"]),n("div",dn,[(t(!0),_(T,null,L(I,F=>(t(),x(V,z({key:F.component.filePath,ref_for:!0},F),null,16))),128))])]))),128))]),_:1},8,["open","description"])):k("",!0)],64)}}}),mn={relative:"","h-full":"","of-auto":""},fn={"flex-none":"",flex:"~ gap3"},Tn=R({__name:"components",setup(r){const s=ge(),c=Le(),a=Me(),{componentsView:i}=Z("ui");function o(){s.value?.inspector?.instance&&s.value.inspector.enable()}function p(){i.value=i.value==="list"?"graph":"list"}return(m,u)=>{const f=q,g=Ie,h=Ve,V=$e("tooltip");return t(),_(T,null,[n("div",mn,[(t(),x(Ne(N(i)==="list"?cn:ln),{components:N(c),relationships:N(a)},{default:b(()=>[n("div",fn,[Q(v(f,{"text-lg":"",border:!1,icon:N(i)==="graph"?"i-carbon-list":"i-carbon-network-4",title:"Toggle view",onClick:p},null,8,["icon"]),[[V,"Toggle View",void 0,{"bottom-end":!0}]]),N(s)?.inspector?.instance?Q((t(),x(f,{key:0,"text-lg":"",border:!1,icon:"i-tabler-focus-2",title:"Inspect Vue components",onClick:o},null,512)),[[V,"Inspect Vue components",void 0,{"bottom-end":!0}]]):k("",!0)])]),_:1},8,["components","relationships"]))]),v(h,null,{default:b(()=>[v(g)]),_:1})],64)}}});export{Tn as default};
@@ -1 +1 @@
1
- import{_ as B}from"./nmarkdown.vue-ffthu1ys.js";import{J as I,K as U,f as D}from"./h48l6b7a.js";import{_ as $}from"./filepath-item.vue-l7pl1gvj.js";import{C as y}from"./constants-b32h69zq.js";import{l as E,m as l,S as F,R as s,N as r,a0 as i,V as o,X as u,a1 as S,u as x,a7 as d,U as c,F as k,a6 as v,ac as j,Z as z}from"./vendor/json-editor-vue-hrh84odz.js";const J={"hover:text-primary":""},K={key:0,"text-primary":""},L={"max-w-100":""},M={px4:"",py3:"","text-sm":""},O={flex:"~ gap2",n:"primary xs"},R={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},T={"text-sm":""},W={"text-primary":""},X={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Z={key:1,"text-sm":"",op50:""},Q=E({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(b){const t=b,g=I(),C=U(),m=l(()=>t.item.as||t.item.name),n=l(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),h=l(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(a=>!a.endsWith("?macro=true"))),_=l(()=>t.item.meta?.docsUrl?t.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(t.item.from)?y.nuxt[t.item.name]:t.item.from==="vue"?y.vue[t.item.name]:null);return(a,e)=>{const N=B,f=D,w=$,V=F("VDropdown");return s(),r(V,{disabled:!t.metadata},{popper:i(()=>[o("div",L,[o("div",M,[a.item.meta?.description?(s(),r(N,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):u("",!0),o("div",O,[S(f,{icon:"carbon-copy",onClick:e[0]||(e[0]=p=>x(g)(m.value,"imports-name"))},{default:i(()=>e[2]||(e[2]=[d(" Copy ")])),_:1}),a.filepath?(s(),r(f,{key:0,icon:"carbon-code",onClick:e[1]||(e[1]=p=>a.filepath&&x(C)(a.filepath))},{default:i(()=>e[3]||(e[3]=[d(" Source ")])),_:1})):u("",!0),_.value?(s(),r(f,{key:1,icon:"carbon-catalog",to:_.value,target:"_blank"},{default:i(()=>e[4]||(e[4]=[d(" Docs ")])),_:1},8,["to"])):u("",!0)])]),o("div",R,[n.value?(s(),c(k,{key:0},[o("div",T,[e[5]||(e[5]=o("span",{op50:""},"It has been referenced ",-1)),o("strong",W,v(n.value),1),e[6]||(e[6]=o("span",{op50:""}," times by:",-1))]),o("div",X,[(s(!0),c(k,null,j(h.value,p=>(s(),r(w,{key:p,filepath:p},null,8,["filepath"]))),128))])],64)):(s(),c("div",Z," Not in use via auto import. "))])])]),default:i(()=>[o("button",J,[o("code",{rounded:"","font-mono":"",class:z([a.metadata&&!n.value?"op30 hover:op100":"",a.classes])},[d(v(m.value)+" ",1),n.value&&a.counter?(s(),c("sup",K,"x"+v(n.value),1)):u("",!0)],2)])]),_:1},8,["disabled"])}}});export{Q as _};
1
+ import{_ as B}from"./nmarkdown.vue-ffthu1ys.js";import{J as I,K as U,f as D}from"./b02f8h4y.js";import{_ as $}from"./filepath-item.vue-f3958elb.js";import{C as y}from"./constants-b32h69zq.js";import{l as E,m as l,S as F,R as s,N as r,a0 as i,V as o,X as u,a1 as S,u as x,a7 as d,U as c,F as k,a6 as v,ac as j,Z as z}from"./vendor/json-editor-vue-hrh84odz.js";const J={"hover:text-primary":""},K={key:0,"text-primary":""},L={"max-w-100":""},M={px4:"",py3:"","text-sm":""},O={flex:"~ gap2",n:"primary xs"},R={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},T={"text-sm":""},W={"text-primary":""},X={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},Z={key:1,"text-sm":"",op50:""},Q=E({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(b){const t=b,g=I(),C=U(),m=l(()=>t.item.as||t.item.name),n=l(()=>t.metadata?.injectionUsage?.[m.value]?.count||0),h=l(()=>(t.metadata?.injectionUsage?.[m.value]?.moduleIds||[]).filter(a=>!a.endsWith("?macro=true"))),_=l(()=>t.item.meta?.docsUrl?t.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(t.item.from)?y.nuxt[t.item.name]:t.item.from==="vue"?y.vue[t.item.name]:null);return(a,e)=>{const N=B,f=D,w=$,V=F("VDropdown");return s(),r(V,{disabled:!t.metadata},{popper:i(()=>[o("div",L,[o("div",M,[a.item.meta?.description?(s(),r(N,{key:0,tag:"div",pb3:"","text-sm":"",markdown:a.item.meta.description},null,8,["markdown"])):u("",!0),o("div",O,[S(f,{icon:"carbon-copy",onClick:e[0]||(e[0]=p=>x(g)(m.value,"imports-name"))},{default:i(()=>e[2]||(e[2]=[d(" Copy ")])),_:1}),a.filepath?(s(),r(f,{key:0,icon:"carbon-code",onClick:e[1]||(e[1]=p=>a.filepath&&x(C)(a.filepath))},{default:i(()=>e[3]||(e[3]=[d(" Source ")])),_:1})):u("",!0),_.value?(s(),r(f,{key:1,icon:"carbon-catalog",to:_.value,target:"_blank"},{default:i(()=>e[4]||(e[4]=[d(" Docs ")])),_:1},8,["to"])):u("",!0)])]),o("div",R,[n.value?(s(),c(k,{key:0},[o("div",T,[e[5]||(e[5]=o("span",{op50:""},"It has been referenced ",-1)),o("strong",W,v(n.value),1),e[6]||(e[6]=o("span",{op50:""}," times by:",-1))]),o("div",X,[(s(!0),c(k,null,j(h.value,p=>(s(),r(w,{key:p,filepath:p},null,8,["filepath"]))),128))])],64)):(s(),c("div",Z," Not in use via auto import. "))])])]),default:i(()=>[o("button",J,[o("code",{rounded:"","font-mono":"",class:z([a.metadata&&!n.value?"op30 hover:op100":"",a.classes])},[d(v(m.value)+" ",1),n.value&&a.counter?(s(),c("sup",K,"x"+v(n.value),1)):u("",!0)],2)])]),_:1},8,["disabled"])}}});export{Q as _};
@@ -1 +1 @@
1
- import{Q as q,Y as M,Z as V,$ as j,m as B,a0 as E,a1 as k,a2 as D,d as I,r as L,U as P,a3 as R}from"./h48l6b7a.js";import{l as $,c as C,m as x,r as U,x as N,n as W,w as b,G as O,U as S,R as n,N as u,a0 as y,u as A,a8 as F,V as r,a7 as w,a6 as T,a1 as G}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as Q}from"./launch-page.vue-m96ik0mi.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nmarkdown.vue-ffthu1ys.js";import"./client-bvu6p7m4.js";const h=new Map,X=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=q(),d=C(),s=x(()=>m.tab.name),e=C(),t=U(M(d));N(()=>{const o=m.tab.view,l=o.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(s.value)&&l)e.value=h.get(s.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",_.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&h.set(s.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),i(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),W(p)}setTimeout(i,100)}),b(p),b(i),b(v),O(()=>{e.value&&(e.value.style.visibility="hidden")});function i(){if(!(!e.value||!e.value.contentWindow))try{const o=e.value.contentWindow.document.querySelector("html");o?.classList.toggle("dark",c.value==="dark"),o?.classList.toggle("light",c.value==="dark"),new MutationObserver(()=>{c.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(o,{attributes:!0,attributeFilter:["class"]})}catch{}}const a=V();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function p(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(o,l)=>(n(),S("div",{ref_key:"anchor",ref:d,"h-full":"","w-full":""},null,512))}}),Y={flex:"~ col gap2",mxa:"","items-center":""},Z={"text-xl":""},z={"text-rose":""},ne=$({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=j(),d=B(),s=x(()=>m.name??c.params.name),e=E(),t=x(()=>e.value.find(i=>i.name===s.value));return N(()=>{t.value?t.value.requireAuth&&!k.value&&D():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(i,a)=>{const v=I,p=R,o=X,l=Q,_=P;return t.value?t.value.requireAuth&&!A(k)?(n(),u(p,{key:1})):t.value.view.type==="iframe"?(n(),u(o,{key:2,tab:t.value},null,8,["tab"])):t.value.view.type==="vnode"?(n(),u(F(t.value.view.vnode),{key:3})):t.value.view.type==="launch"?(n(),u(l,{key:4,name:`custom-${t.value.name}`,icon:t.value.view.icon||t.value.icon,title:t.value.view.title||t.value.title,description:t.value.view.description,actions:t.value.view.actions,onAction:a[0]||(a[0]=g=>A(L).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[G(_,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+T(t.value.view),1)]),_:1})]),_:1})):(n(),u(v,{key:0},{default:y(()=>[r("div",Y,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",Z,[a[1]||(a[1]=w(" Tab ")),r("code",z,T(s.value),1),a[2]||(a[2]=w(" not found "))]),a[4]||(a[4]=r("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1)),a[5]||(a[5]=r("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]),_:1}))}}});export{ne as default};
1
+ import{Q as q,Y as M,Z as V,$ as j,m as B,a0 as E,a1 as k,a2 as D,d as I,r as L,U as P,a3 as R}from"./b02f8h4y.js";import{l as $,c as C,m as x,r as U,x as N,n as W,w as b,G as O,U as S,R as n,N as u,a0 as y,u as A,a8 as F,V as r,a7 as w,a6 as T,a1 as G}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as Q}from"./launch-page.vue-fzp5jez3.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nmarkdown.vue-ffthu1ys.js";import"./client-bvu6p7m4.js";const h=new Map,X=$({__name:"IframeView",props:{tab:{}},setup(f){const m=f,c=q(),d=C(),s=x(()=>m.tab.name),e=C(),t=U(M(d));N(()=>{const o=m.tab.view,l=o.persistent!==!1,_=["clipboard-write","clipboard-read"];if(h.get(s.value)&&l)e.value=h.get(s.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",_.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),l&&h.set(s.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{v(),i(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),W(p)}setTimeout(i,100)}),b(p),b(i),b(v),O(()=>{e.value&&(e.value.style.visibility="hidden")});function i(){if(!(!e.value||!e.value.contentWindow))try{const o=e.value.contentWindow.document.querySelector("html");o?.classList.toggle("dark",c.value==="dark"),o?.classList.toggle("light",c.value==="dark"),new MutationObserver(()=>{c.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(o,{attributes:!0,attributeFilter:["class"]})}catch{}}const a=V();function v(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function p(){e.value&&Object.assign(e.value.style,{position:"fixed",left:`${t.left}px`,top:`${t.top}px`,width:`${t.width}px`,height:`${t.height}px`,outline:"none"})}return(o,l)=>(n(),S("div",{ref_key:"anchor",ref:d,"h-full":"","w-full":""},null,512))}}),Y={flex:"~ col gap2",mxa:"","items-center":""},Z={"text-xl":""},z={"text-rose":""},ne=$({__name:"custom-[name]",props:{name:{}},setup(f){const m=f,c=j(),d=B(),s=x(()=>m.name??c.params.name),e=E(),t=x(()=>e.value.find(i=>i.name===s.value));return N(()=>{t.value?t.value.requireAuth&&!k.value&&D():setTimeout(()=>{t.value||d.push("/modules/overview")},2e3)}),(i,a)=>{const v=I,p=R,o=X,l=Q,_=P;return t.value?t.value.requireAuth&&!A(k)?(n(),u(p,{key:1})):t.value.view.type==="iframe"?(n(),u(o,{key:2,tab:t.value},null,8,["tab"])):t.value.view.type==="vnode"?(n(),u(F(t.value.view.vnode),{key:3})):t.value.view.type==="launch"?(n(),u(l,{key:4,name:`custom-${t.value.name}`,icon:t.value.view.icon||t.value.icon,title:t.value.view.title||t.value.title,description:t.value.view.description,actions:t.value.view.actions,onAction:a[0]||(a[0]=g=>A(L).customTabAction(t.value.name,g))},null,8,["name","icon","title","description","actions"])):(n(),u(v,{key:5},{default:y(()=>[G(_,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:y(()=>[w(" Unknown tab type "+T(t.value.view),1)]),_:1})]),_:1})):(n(),u(v,{key:0},{default:y(()=>[r("div",Y,[a[3]||(a[3]=r("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),r("p",Z,[a[1]||(a[1]=w(" Tab ")),r("code",z,T(s.value),1),a[2]||(a[2]=w(" not found "))]),a[4]||(a[4]=r("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1)),a[5]||(a[5]=r("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]),_:1}))}}});export{ne as default};
@@ -1 +1 @@
1
- import{_ as o}from"./h48l6b7a.js";import{R as t,U as s,V as r,W as a}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const n={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function _(e,d){return t(),s("div",c,[r("div",l,[a(e.$slots,"default")])])}const u=o(n,[["render",_]]);export{u as default};
1
+ import{_ as o}from"./b02f8h4y.js";import{R as t,U as s,V as r,W as a}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const n={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function _(e,d){return t(),s("div",c,[r("div",l,[a(e.$slots,"default")])])}const u=o(n,[["render",_]]);export{u as default};
@@ -1 +1 @@
1
- import{_ as a,u as i,a as u}from"./h48l6b7a.js";import{R as c,U as l,V as e,a6 as r,a1 as d,a0 as p,a7 as f}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=u;return c(),l("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[d(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:p(()=>[f(r(t.backHome),1)]),_:1})])])])}}},N=a(y,[["__scopeId","data-v-01fe1bca"]]);export{N as default};
1
+ import{_ as a,u as i,a as u}from"./b02f8h4y.js";import{R as c,U as l,V as e,a6 as r,a1 as d,a0 as p,a7 as f}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const m={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},g={class:"max-w-520px text-center z-20"},h=["textContent"],b=["textContent"],x={class:"flex items-center justify-center w-full"},y={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return i({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(k,o)=>{const s=u;return c(),l("div",m,[o[0]||(o[0]=e("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),e("div",g,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:r(t.statusCode)},null,8,h),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:r(t.description)},null,8,b),e("div",x,[d(s,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:p(()=>[f(r(t.backHome),1)]),_:1})])])])}}},N=a(y,[["__scopeId","data-v-01fe1bca"]]);export{N as default};
@@ -1 +1 @@
1
- import{_ as s,u as i}from"./h48l6b7a.js";import{R as a,U as u,V as e,a6 as o}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return i({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(a(),u("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},y=s(f,[["__scopeId","data-v-d1742ce5"]]);export{y as default};
1
+ import{_ as s,u as i}from"./b02f8h4y.js";import{R as a,U as u,V as e,a6 as o}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return i({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(a(),u("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},y=s(f,[["__scopeId","data-v-d1742ce5"]]);export{y as default};
@@ -1,4 +1,4 @@
1
- import{b as x,x as E}from"./h48l6b7a.js";import{_ as N}from"./stacktrace-list.vue-bape1neq.js";import{l as y,m as v,U as l,a1 as C,a0 as w,V as f,a6 as p,X as _,N as S,R as i,a7 as R}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./filepath-item.vue-l7pl1gvj.js";const $=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,O=/^(eval@)?(\[native code\])?$/;function b(e,a){if(typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u")return T(e);if(e.stack&&e.stack.match(h))return F(e);if(e.stack)return V(e);throw new Error("Cannot parse given Error object")}function m(e){if(!e.includes(":"))return[e,void 0,void 0];const o=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[o[1],o[2]||void 0,o[3]||void 0]}function d(e,a){return e}function F(e,a){return I(e.stack)}function I(e,a){return d(e.split(`
1
+ import{b as x,x as E}from"./b02f8h4y.js";import{_ as N}from"./stacktrace-list.vue-mbkojt56.js";import{l as y,m as v,U as l,a1 as C,a0 as w,V as f,a6 as p,X as _,N as S,R as i,a7 as R}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./filepath-item.vue-f3958elb.js";const $=/(^|@)\S+:\d+/,h=/^\s*at .*(\S+:\d+|\(native\))/m,O=/^(eval@)?(\[native code\])?$/;function b(e,a){if(typeof e.stacktrace<"u"||typeof e["opera#sourceloc"]<"u")return T(e);if(e.stack&&e.stack.match(h))return F(e);if(e.stack)return V(e);throw new Error("Cannot parse given Error object")}function m(e){if(!e.includes(":"))return[e,void 0,void 0];const o=/(.+?)(?::(\d+))?(?::(\d+))?$/.exec(e.replace(/[()]/g,""));return[o[1],o[2]||void 0,o[3]||void 0]}function d(e,a){return e}function F(e,a){return I(e.stack)}function I(e,a){return d(e.split(`
2
2
  `).filter(t=>!!t.match(h))).map(t=>{t.includes("(eval ")&&(t=t.replace(/eval code/g,"eval").replace(/(\(eval at [^()]*)|(,.*$)/g,""));let r=t.replace(/^\s+/,"").replace(/\(eval code/g,"(").replace(/^.*?\s+/,"");const n=r.match(/ (\(.+\)$)/);r=n?r.replace(n[0],""):r;const c=m(n?n[1]:r),s=n&&r||void 0,u=["eval","<anonymous>"].includes(c[0])?void 0:c[0];return{function:s,file:u,line:c[1]?+c[1]:void 0,col:c[2]?+c[2]:void 0,raw:t}})}function V(e,a){return A(e.stack)}function A(e,a){return d(e.split(`
3
3
  `).filter(t=>!t.match(O))).map(t=>{if(t.includes(" > eval")&&(t=t.replace(/ line (\d+)(?: > eval line \d+)* > eval:\d+:\d+/g,":$1")),!t.includes("@")&&!t.includes(":"))return{function:t};{const r=/(([^\n\r"\u2028\u2029]*".[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*(?:@[^\n\r"\u2028\u2029]*"[^\n\r@\u2028\u2029]*)*(?:[\n\r\u2028\u2029][^@]*)?)?[^@]*)@/,n=t.match(r),c=n&&n[1]?n[1]:void 0,s=m(t.replace(r,""));return{function:c,file:s[0],line:s[1]?+s[1]:void 0,col:s[2]?+s[2]:void 0,raw:t}}})}function T(e,a){return!e.stacktrace||e.message.includes(`
4
4
  `)&&e.message.split(`
@@ -1 +1 @@
1
- import{K as k,J as c,I as g,av as C}from"./h48l6b7a.js";import{l as b,m as B,R as t,U as a,V as s,F as l,a7 as u,a6 as r,X as d,Z as N,W as I,u as m}from"./vendor/json-editor-vue-hrh84odz.js";const V={flex:"~ gap-2 items-center",class:"group"},E=["title"],F={key:0,op50:""},S={key:0,flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},D=b({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(f){const p=f,v=k(),h=c(),i=g(),n=B(()=>p.filepath&&i.value?C(p.filepath,i.value.rootDir):{path:p.filepath||""});return(e,o)=>(t(),a("span",V,[s("span",{class:N([e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath},[e.override?(t(),a(l,{key:0},[u(r(e.override),1)],64)):n.value.moduleName?(t(),a(l,{key:1},[s("span",null,r(n.value.moduleName),1),e.subpath?(t(),a("span",F,r(n.value.path.slice(n.value.moduleName.length)),1)):d("",!0)],64)):(t(),a(l,{key:2},[u(r(n.value.path),1)],64))],10,E),I(e.$slots,"default"),e.filepath?(t(),a("div",S,[s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:o[0]||(o[0]=y=>m(v)(e.filepath))},o[2]||(o[2]=[s("div",{"i-carbon-script-reference":""},null,-1)])),s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Copy path",onClick:o[1]||(o[1]=y=>m(h)(e.filepath))},o[3]||(o[3]=[s("div",{"i-carbon-copy":""},null,-1)]))])):d("",!0)]))}});export{D as _};
1
+ import{K as k,J as c,I as g,av as C}from"./b02f8h4y.js";import{l as b,m as B,R as t,U as a,V as s,F as l,a7 as u,a6 as r,X as d,Z as N,W as I,u as m}from"./vendor/json-editor-vue-hrh84odz.js";const V={flex:"~ gap-2 items-center",class:"group"},E=["title"],F={key:0,op50:""},S={key:0,flex:"~ gap1",pr2:"",op0:"","group-hover:op100":""},D=b({__name:"FilepathItem",props:{filepath:{},lineBreak:{type:Boolean},subpath:{type:Boolean},override:{}},setup(f){const p=f,v=k(),h=c(),i=g(),n=B(()=>p.filepath&&i.value?C(p.filepath,i.value.rootDir):{path:p.filepath||""});return(e,o)=>(t(),a("span",V,[s("span",{class:N([e.lineBreak?"":"ws-nowrap of-hidden truncate"]),"font-mono":"",title:e.override||e.filepath},[e.override?(t(),a(l,{key:0},[u(r(e.override),1)],64)):n.value.moduleName?(t(),a(l,{key:1},[s("span",null,r(n.value.moduleName),1),e.subpath?(t(),a("span",F,r(n.value.path.slice(n.value.moduleName.length)),1)):d("",!0)],64)):(t(),a(l,{key:2},[u(r(n.value.path),1)],64))],10,E),I(e.$slots,"default"),e.filepath?(t(),a("div",S,[s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:o[0]||(o[0]=y=>m(v)(e.filepath))},o[2]||(o[2]=[s("div",{"i-carbon-script-reference":""},null,-1)])),s("button",{"text-sm":"",op40:"",hover:"op100 text-primary",title:"Copy path",onClick:o[1]||(o[1]=y=>m(h)(e.filepath))},o[3]||(o[3]=[s("div",{"i-carbon-copy":""},null,-1)]))])):d("",!0)]))}});export{D as _};
@@ -1 +1 @@
1
- import{_ as t}from"./h48l6b7a.js";import{R as e,U as r,W as s}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const c={},n={"h-full":"","of-auto":""};function a(o,f){return e(),r("div",n,[s(o.$slots,"default")])}const d=t(c,[["render",a]]);export{d as default};
1
+ import{_ as t}from"./b02f8h4y.js";import{R as e,U as r,W as s}from"./vendor/json-editor-vue-hrh84odz.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";const c={},n={"h-full":"","of-auto":""};function a(o,f){return e(),r("div",n,[s(o.$slots,"default")])}const d=t(c,[["render",a]]);export{d as default};
@@ -1 +1 @@
1
- import{c as f,f as m}from"./h48l6b7a.js";import{l as c,c as v,u as k,U as o,V as n,a1 as s,a0 as i,J as u,F as g,X as a,R as l,W as x}from"./vendor/json-editor-vue-hrh84odz.js";const _={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},y=c({__name:"HelpFab",setup(w){const t=v(!1),{showHelpButtons:d}=f("ui");return(p,e)=>{const b=m;return k(d)?(l(),o(g,{key:0},[n("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:e[0]||(e[0]=r=>t.value=!t.value)},e[3]||(e[3]=[n("div",{"i-ri:question-mark":""},null,-1)])),s(u,{name:"fade-in"},{default:i(()=>[t.value?(l(),o("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:e[1]||(e[1]=r=>t.value=!1)})):a("",!0)]),_:1}),s(u,{name:"slide-in"},{default:i(()=>[t.value?(l(),o("div",_,[x(p.$slots,"default"),s(b,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=r=>t.value=!1)})])):a("",!0)]),_:3})],64)):a("",!0)}}});export{y as _};
1
+ import{c as f,f as m}from"./b02f8h4y.js";import{l as c,c as v,u as k,U as o,V as n,a1 as s,a0 as i,J as u,F as g,X as a,R as l,W as x}from"./vendor/json-editor-vue-hrh84odz.js";const _={key:0,border:"l base",class:"prose",pos:"fixed bottom-0 right-0 top-0","z-200":"","h-full":"","w-150":"","overflow-auto":"",px8:"",py4:"","bg-base":""},y=c({__name:"HelpFab",setup(w){const t=v(!1),{showHelpButtons:d}=f("ui");return(p,e)=>{const b=m;return k(d)?(l(),o(g,{key:0},[n("button",{pos:"absolute bottom-5 right-5",border:"~ base rounded-full ",flex:"~ items-center justify-center","z-110":"","h-11":"","w-11":"","backdrop-blur-8":"",bg:"bg-base op50!","light:shadow":"",hover:"bg-active",title:"Help",onClick:e[0]||(e[0]=r=>t.value=!t.value)},e[3]||(e[3]=[n("div",{"i-ri:question-mark":""},null,-1)])),s(u,{name:"fade-in"},{default:i(()=>[t.value?(l(),o("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:e[1]||(e[1]=r=>t.value=!1)})):a("",!0)]),_:1}),s(u,{name:"slide-in"},{default:i(()=>[t.value?(l(),o("div",_,[x(p.$slots,"default"),s(b,{icon:"carbon-close",pos:"absolute top-3 right-3","rounded-full":"","text-xl":"",border:!1,onClick:e[2]||(e[2]=r=>t.value=!1)})])):a("",!0)]),_:3})],64)):a("",!0)}}});export{y as _};
@@ -1 +1 @@
1
- import{_ as S}from"./duration-display.vue-onla0yr8.js";import{a4 as T,a5 as F,b as V}from"./h48l6b7a.js";import{l as $,c as H,m as w,R as u,U as h,V as o,a7 as l,Z as p,F as y,ac as B,a6 as m,Y as D,u as x,a1 as _,N as C,a0 as f,X as N}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as P}from"./nsection-block-m2ivsm2j.js";import{_ as E}from"./help-fab.vue-fjxqso9x.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nicon-title.vue-evdbm4ef.js";const O={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},Y={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},z={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},R={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},U={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},X={"text-sm":""},Z={"ws-nowrap":""},q={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-right":"","text-sm":""},M=$({__name:"HooksTable",props:{hooks:{}},setup(k){const a=k,r=H("duration"),n=H("asc"),c={duration:(e,t)=>(t.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},g=w(()=>a.hooks.map(e=>e.start).sort((e,t)=>e-t)),b=w(()=>{const e=c[r.value],t=[...a.hooks].sort(e);return n.value==="desc"&&t.reverse(),t});function d(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function v(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function i(e){r.value===e?n.value=n.value==="asc"?"desc":"asc":r.value=e}return(e,t)=>{const I=S;return u(),h("table",O,[o("thead",j,[o("tr",null,[o("th",L,[o("button",{onClick:t[0]||(t[0]=s=>i("start"))},[t[5]||(t[5]=l(" Order ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="start"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",Y,[o("button",{onClick:t[1]||(t[1]=s=>i("name"))},[t[6]||(t[6]=l(" Hook name ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="name"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[2]||(t[2]=s=>i("listener"))},[t[7]||(t[7]=l(" Listeners ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="listener"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[3]||(t[3]=s=>i("executions"))},[t[8]||(t[8]=l(" Executions ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="executions"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",R,[o("button",{onClick:t[4]||(t[4]=s=>i("duration"))},[t[9]||(t[9]=l(" Duration ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="duration"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(u(!0),h(y,null,B(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",U,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:D({color:("getHashColorFromString"in e?e.getHashColorFromString:x(T))(d(s.name))})},[o("code",X,m(d(s.name)),1)],4),o("td",Z,[o("code",q,m(v(s.name)),1)]),o("td",G,m(s.listeners),1),o("td",J,m(s.executions.length+1),1),o("td",K,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),Q={class:"markdown-body"},W={__name:"hooks",setup(k,{expose:a}){return a({frontmatter:{}}),(n,c)=>(u(),h("div",Q,c[0]||(c[0]=[o("h1",null,"Hooks",-1),o("p",null,[l("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")],-1)])))}},it=$({__name:"hooks",setup(k){const a=F(),r=V(),n=w(()=>r.value?.metrics.clientHooks());return(c,g)=>{const b=M,d=P,v=W,i=E;return u(),h(y,null,[o("div",null,[n.value?.length?(u(),C(d,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n.value.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:n.value},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),x(a)?.length?(u(),C(d,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${x(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:x(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{it as default};
1
+ import{_ as S}from"./duration-display.vue-onla0yr8.js";import{a4 as T,a5 as F,b as V}from"./b02f8h4y.js";import{l as $,c as H,m as w,R as u,U as h,V as o,a7 as l,Z as p,F as y,ac as B,a6 as m,Y as D,u as x,a1 as _,N as C,a0 as f,X as N}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as P}from"./nsection-block-mwhk66gw.js";import{_ as E}from"./help-fab.vue-kjnf5h3g.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nicon-title.vue-evdbm4ef.js";const O={"w-full":""},j={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},Y={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},z={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},R={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},U={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},X={"text-sm":""},Z={"ws-nowrap":""},q={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},J={"w-0":"","text-center":"","text-sm":""},K={"w-0":"","text-right":"","text-sm":""},M=$({__name:"HooksTable",props:{hooks:{}},setup(k){const a=k,r=H("duration"),n=H("asc"),c={duration:(e,t)=>(t.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,t)=>e.name.localeCompare(t.name),listener:(e,t)=>t.listeners-e.listeners,start:(e,t)=>t.start-e.start,executions:(e,t)=>t.executions.length-e.executions.length},g=w(()=>a.hooks.map(e=>e.start).sort((e,t)=>e-t)),b=w(()=>{const e=c[r.value],t=[...a.hooks].sort(e);return n.value==="desc"&&t.reverse(),t});function d(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function v(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function i(e){r.value===e?n.value=n.value==="asc"?"desc":"asc":r.value=e}return(e,t)=>{const I=S;return u(),h("table",O,[o("thead",j,[o("tr",null,[o("th",L,[o("button",{onClick:t[0]||(t[0]=s=>i("start"))},[t[5]||(t[5]=l(" Order ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="start"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",Y,[o("button",{onClick:t[1]||(t[1]=s=>i("name"))},[t[6]||(t[6]=l(" Hook name ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="name"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[2]||(t[2]=s=>i("listener"))},[t[7]||(t[7]=l(" Listeners ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="listener"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[3]||(t[3]=s=>i("executions"))},[t[8]||(t[8]=l(" Executions ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="executions"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",R,[o("button",{onClick:t[4]||(t[4]=s=>i("duration"))},[t[9]||(t[9]=l(" Duration ")),o("div",{"ml--1":"","text-xs":"",class:p([r.value==="duration"?"op50":"op0",n.value==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(u(!0),h(y,null,B(b.value,s=>(u(),h("tr",{key:s.name,border:"b dashed transparent hover:base"},[o("td",U,m(g.value.indexOf(s.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:D({color:("getHashColorFromString"in e?e.getHashColorFromString:x(T))(d(s.name))})},[o("code",X,m(d(s.name)),1)],4),o("td",Z,[o("code",q,m(v(s.name)),1)]),o("td",G,m(s.listeners),1),o("td",J,m(s.executions.length+1),1),o("td",K,[_(I,{duration:s.duration},null,8,["duration"])])]))),128))])])}}}),Q={class:"markdown-body"},W={__name:"hooks",setup(k,{expose:a}){return a({frontmatter:{}}),(n,c)=>(u(),h("div",Q,c[0]||(c[0]=[o("h1",null,"Hooks",-1),o("p",null,[l("Hooks are an advanced API which can be used for module development or other advanced use cases. The hooking API can be used to expand almost every aspect of Nuxt. Under the hood it is powered by "),o("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),l(".")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),l(".")],-1)])))}},it=$({__name:"hooks",setup(k){const a=F(),r=V(),n=w(()=>r.value?.metrics.clientHooks());return(c,g)=>{const b=M,d=P,v=W,i=E;return u(),h(y,null,[o("div",null,[n.value?.length?(u(),C(d,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n.value.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:n.value},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),x(a)?.length?(u(),C(d,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${x(a)?.length}`,padding:"pl4 pr6"},{default:f(()=>[_(b,{hooks:x(a)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),_(i,null,{default:f(()=>[_(v)]),_:1})],64)}}});export{it as default};
@@ -1 +1 @@
1
- import{a6 as D,X as A,a7 as F,I as E,N as H,W as T,E as j}from"./h48l6b7a.js";import{_ as L}from"./nselect-tabs.vue-lxewcdog.js";import{_ as P}from"./nnavbar.vue-b7eqg6ig.js";import{_ as S}from"./filepath-item.vue-l7pl1gvj.js";import{_ as X}from"./composable-item.vue-j11edtac.js";import{l as M,R as a,U as l,F as y,ac as k,a1 as i,V as d,N as x,u as _,X as b,m as g,a6 as R,c as V,a0 as h}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as W}from"./nsection-block-m2ivsm2j.js";import{_ as Y}from"./help-fab.vue-fjxqso9x.js";import{D as B}from"./constants-b32h69zq.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nmarkdown.vue-ffthu1ys.js";import"./client-bvu6p7m4.js";import"./nicon-title.vue-evdbm4ef.js";const q={flex:"~ wrap gap2",p2:"",pl4:""},G=M({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup($){return(n,p)=>{const s=S,e=X;return a(),l("div",null,[(a(!0),l(y,null,k(n.map.entries(),([o,v])=>(a(),l("div",{key:o},[i(s,{filepath:o,op50:"","hover:underline":""},null,8,["filepath"]),d("div",q,[(a(!0),l(y,null,k(v,w=>(a(),x(e,{key:w.as,item:w,metadata:n.metadata,filepath:o.match(/^[\w@]/)?void 0:o},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),J={key:0,flex:"~ col gap-2 items-start"},K=M({__name:"HelpImportsDirs",setup($){const n=D();return(p,s)=>{const e=S;return _(n)?.dirs?(a(),l("div",J,[(a(!0),l(y,null,k(_(n).dirs,o=>(a(),x(e,{key:o,filepath:o,"text-primary":""},null,8,["filepath"]))),128))])):b("",!0)}}}),O={flex:"~ gap-2 wrap",mb6:""},Q=M({__name:"HelpImportsModules",setup($){const n=D(),p=g(()=>[...new Set(n.value?.imports.map(s=>A(s.from)).filter(s=>!!s&&!F(s)))]);return(s,e)=>(a(),l("div",O,[(a(!0),l(y,null,k(p.value,o=>(a(),l("code",{key:o,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},R(o),1))),128))]))}}),Z={class:"markdown-body"},ee={__name:"imports",setup($,{expose:n}){return n({frontmatter:{}}),(s,e)=>{const o=K,v=Q;return a(),l("div",Z,[e[0]||(e[0]=d("h1",null,"Auto imports",-1)),e[1]||(e[1]=d("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1)),e[2]||(e[2]=d("hr",null,null,-1)),e[3]||(e[3]=d("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),i(o),e[4]||(e[4]=d("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),i(v),e[5]||(e[5]=d("hr",null,null,-1)),e[6]||(e[6]=d("p",null,[d("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},oe={key:0,relative:"","h-full":"","of-auto":""},te={key:0,flex:"~ gap-2 items-center"},be=M({__name:"imports",setup($){const n=E(),p=V("all"),s=V(""),e=D(),o=g(()=>e.value?.metadata),v=g(()=>e.value?.imports.filter(m=>m.as||m.name).sort((m,u)=>(m.as||m.name).localeCompare(u.as||u.name))||[]),w=g(()=>new H(v.value,{keys:["from","as","name"]})),r=g(()=>{const m=new Map,u=new Map,I=new Map;let f=s.value?w.value.search(s.value).map(t=>t.item):v.value;p.value==="using"&&o.value?f=f.filter(t=>(t.as||t.name)in o.value.injectionUsage):p.value==="not-used"&&o.value&&(f=f.filter(t=>!((t.as||t.name)in o.value.injectionUsage)));const N={user:0,lib:0,builtin:0};return f.forEach(t=>{const c=T(t.from)?F(A(t.from))?I:u:m;c.has(t.from)||c.set(t.from,[]),c.get(t.from).push(t),N[c===m?"user":c===u?"lib":"builtin"]++}),{user:m,lib:u,builtin:I,count:N}});return(m,u)=>{const I=j,f=L,N=P,t=G,c=W,U=ee,z=Y;return a(),l(y,null,[_(n)?(a(),l("div",oe,[i(N,{search:s.value,"onUpdate:search":u[1]||(u[1]=C=>s.value=C),pb3:""},{default:h(()=>[o.value?(a(),l("div",te,[i(I,{icon:"carbon-filter",op50:""}),i(f,{modelValue:p.value,"onUpdate:modelValue":u[0]||(u[0]=C=>p.value=C),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])):b("",!0)]),_:1},8,["search"]),r.value.user.size?(a(),x(c,{key:0,open:r.value.count.user<=_(B),icon:"carbon-function",text:"User composables",description:`${r.value.count.user} composables from ${r.value.user.size} modules`},{default:h(()=>[i(t,{map:r.value.user,root:_(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),r.value.builtin.size?(a(),x(c,{key:1,open:r.value.count.builtin<=_(B),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${r.value.count.builtin} composables`},{default:h(()=>[i(t,{map:r.value.builtin,root:_(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),r.value.lib.size?(a(),x(c,{key:2,open:r.value.count.lib<=_(B),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${r.value.count.lib} composables from ${r.value.lib.size} packages`},{default:h(()=>[i(t,{map:r.value.lib,root:_(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0)])):b("",!0),i(z,null,{default:h(()=>[i(U)]),_:1})],64)}}});export{be as default};
1
+ import{a6 as D,X as A,a7 as F,I as E,N as H,W as T,E as j}from"./b02f8h4y.js";import{_ as L}from"./nselect-tabs.vue-lw6b1oce.js";import{_ as P}from"./nnavbar.vue-med0h49f.js";import{_ as S}from"./filepath-item.vue-f3958elb.js";import{_ as X}from"./composable-item.vue-krvb1hx6.js";import{l as M,R as a,U as l,F as y,ac as k,a1 as i,V as d,N as x,u as _,X as b,m as g,a6 as R,c as V,a0 as h}from"./vendor/json-editor-vue-hrh84odz.js";import{_ as W}from"./nsection-block-mwhk66gw.js";import{_ as Y}from"./help-fab.vue-kjnf5h3g.js";import{D as B}from"./constants-b32h69zq.js";import"./vendor/unocss-cbkcukyd.js";import"./vendor/shiki-nyzr6cds.js";import"./nmarkdown.vue-ffthu1ys.js";import"./client-bvu6p7m4.js";import"./nicon-title.vue-evdbm4ef.js";const q={flex:"~ wrap gap2",p2:"",pl4:""},G=M({__name:"ComposableTree",props:{map:{},root:{},metadata:{}},setup($){return(n,p)=>{const s=S,e=X;return a(),l("div",null,[(a(!0),l(y,null,k(n.map.entries(),([o,v])=>(a(),l("div",{key:o},[i(s,{filepath:o,op50:"","hover:underline":""},null,8,["filepath"]),d("div",q,[(a(!0),l(y,null,k(v,w=>(a(),x(e,{key:w.as,item:w,metadata:n.metadata,filepath:o.match(/^[\w@]/)?void 0:o},null,8,["item","metadata","filepath"]))),128))])]))),128))])}}}),J={key:0,flex:"~ col gap-2 items-start"},K=M({__name:"HelpImportsDirs",setup($){const n=D();return(p,s)=>{const e=S;return _(n)?.dirs?(a(),l("div",J,[(a(!0),l(y,null,k(_(n).dirs,o=>(a(),x(e,{key:o,filepath:o,"text-primary":""},null,8,["filepath"]))),128))])):b("",!0)}}}),O={flex:"~ gap-2 wrap",mb6:""},Q=M({__name:"HelpImportsModules",setup($){const n=D(),p=g(()=>[...new Set(n.value?.imports.map(s=>A(s.from)).filter(s=>!!s&&!F(s)))]);return(s,e)=>(a(),l("div",O,[(a(!0),l(y,null,k(p.value,o=>(a(),l("code",{key:o,rounded:"","bg-primary:5":"",p:"x2 y0.5","text-primary":""},R(o),1))),128))]))}}),Z={class:"markdown-body"},ee={__name:"imports",setup($,{expose:n}){return n({frontmatter:{}}),(s,e)=>{const o=K,v=Q;return a(),l("div",Z,[e[0]||(e[0]=d("h1",null,"Auto imports",-1)),e[1]||(e[1]=d("p",null,"Nuxt auto-imports helper functions, composables and Vue APIs to be used across your application without explicitly importing them. Based on the directory structure, every Nuxt application can also use auto-imports for its own components, composables and plugins. Components, composables or plugins can use these functions.",-1)),e[2]||(e[2]=d("hr",null,null,-1)),e[3]||(e[3]=d("p",null,"According to your config, exports of files under the following folders will be registed as auto-imports entry:",-1)),i(o),e[4]||(e[4]=d("p",null,"Meanwhile, modules could also provide auto-imports for their own components. You have auto-imports from the following modules as well:",-1)),i(v),e[5]||(e[5]=d("hr",null,null,-1)),e[6]||(e[6]=d("p",null,[d("a",{href:"https://nuxt.com/docs/guide/concepts/auto-imports",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1))])}}},oe={key:0,relative:"","h-full":"","of-auto":""},te={key:0,flex:"~ gap-2 items-center"},be=M({__name:"imports",setup($){const n=E(),p=V("all"),s=V(""),e=D(),o=g(()=>e.value?.metadata),v=g(()=>e.value?.imports.filter(m=>m.as||m.name).sort((m,u)=>(m.as||m.name).localeCompare(u.as||u.name))||[]),w=g(()=>new H(v.value,{keys:["from","as","name"]})),r=g(()=>{const m=new Map,u=new Map,I=new Map;let f=s.value?w.value.search(s.value).map(t=>t.item):v.value;p.value==="using"&&o.value?f=f.filter(t=>(t.as||t.name)in o.value.injectionUsage):p.value==="not-used"&&o.value&&(f=f.filter(t=>!((t.as||t.name)in o.value.injectionUsage)));const N={user:0,lib:0,builtin:0};return f.forEach(t=>{const c=T(t.from)?F(A(t.from))?I:u:m;c.has(t.from)||c.set(t.from,[]),c.get(t.from).push(t),N[c===m?"user":c===u?"lib":"builtin"]++}),{user:m,lib:u,builtin:I,count:N}});return(m,u)=>{const I=j,f=L,N=P,t=G,c=W,U=ee,z=Y;return a(),l(y,null,[_(n)?(a(),l("div",oe,[i(N,{search:s.value,"onUpdate:search":u[1]||(u[1]=C=>s.value=C),pb3:""},{default:h(()=>[o.value?(a(),l("div",te,[i(I,{icon:"carbon-filter",op50:""}),i(f,{modelValue:p.value,"onUpdate:modelValue":u[0]||(u[0]=C=>p.value=C),n:"primary sm",options:[{label:"All",value:"all"},{label:"Using",value:"using"},{label:"Not used",value:"not-used"}]},null,8,["modelValue"])])):b("",!0)]),_:1},8,["search"]),r.value.user.size?(a(),x(c,{key:0,open:r.value.count.user<=_(B),icon:"carbon-function",text:"User composables",description:`${r.value.count.user} composables from ${r.value.user.size} modules`},{default:h(()=>[i(t,{map:r.value.user,root:_(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),r.value.builtin.size?(a(),x(c,{key:1,open:r.value.count.builtin<=_(B),icon:"simple-icons-nuxtdotjs",text:"Built-in composables",description:`${r.value.count.builtin} composables`},{default:h(()=>[i(t,{map:r.value.builtin,root:_(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0),r.value.lib.size?(a(),x(c,{key:2,open:r.value.count.lib<=_(B),icon:"carbon-3d-mpr-toggle",text:"Composables from libraries",description:`${r.value.count.lib} composables from ${r.value.lib.size} packages`},{default:h(()=>[i(t,{map:r.value.lib,root:_(n).rootDir,metadata:o.value},null,8,["map","root","metadata"])]),_:1},8,["open","description"])):b("",!0)])):b("",!0),i(z,null,{default:h(()=>[i(U)]),_:1})],64)}}});export{be as default};