@nuxt/devtools 1.4.2 → 1.5.1
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.
- package/dist/chunks/module-main.mjs +1 -1
- package/dist/client/200.html +18 -34
- package/dist/client/404.html +18 -34
- package/dist/client/_nuxt/__blank-ho4amkbo.js +1 -0
- package/dist/client/_nuxt/analyze-build-cdqqqirn.js +1 -0
- package/dist/client/_nuxt/assets-gr2bjlk1.js +16 -0
- package/dist/client/_nuxt/builds/latest.json +1 -1
- package/dist/client/_nuxt/builds/meta/99ac6b65-839f-4dab-9c11-759a1509e3bf.json +1 -0
- package/dist/client/_nuxt/client-klf75x38.js +1 -0
- package/dist/client/_nuxt/code-diff.vue-bw0ide58.js +8 -0
- package/dist/client/_nuxt/code-snippets.vue-m8d4zz58.js +1 -0
- package/dist/client/_nuxt/components-oxhvj1ov.js +1 -0
- package/dist/client/_nuxt/components-tree-ed0z07in.js +1 -0
- package/dist/client/_nuxt/composable-item.vue-hb6xcfj7.js +1 -0
- package/dist/client/_nuxt/custom-_name_-gqu7vbz4.js +1 -0
- package/dist/client/_nuxt/default-jhyqf6kc.js +1 -0
- package/dist/client/_nuxt/duration-display.vue-h3qa2740.js +1 -0
- package/dist/client/_nuxt/entry.css-bgn3dvs3.css +1 -0
- package/dist/client/_nuxt/error-404-e7oew4nr.js +1 -0
- package/dist/client/_nuxt/error-404.css-l9hojrit.css +1 -0
- package/dist/client/_nuxt/error-500-g6yrkaek.js +1 -0
- package/dist/client/_nuxt/error-500.css-jiufalsw.css +1 -0
- package/dist/client/_nuxt/error-kqorjls4.js +9 -0
- package/dist/client/_nuxt/filepath-item.vue-dx2h1i9n.js +1 -0
- package/dist/client/_nuxt/fm9jupb1.js +16 -0
- package/dist/client/_nuxt/full-murxybmz.js +1 -0
- package/dist/client/_nuxt/help-fab.vue-crgr5bip.js +1 -0
- package/dist/client/_nuxt/hooks-7dy4bdig.js +1 -0
- package/dist/client/_nuxt/imports-iajkha8n.js +1 -0
- package/dist/client/_nuxt/index-b96i27om.js +2 -0
- package/dist/client/_nuxt/index-nw09rrob.js +1 -0
- package/dist/client/_nuxt/launch-page.vue-d1verc8u.js +1 -0
- package/dist/client/_nuxt/modules-peak225e.js +1 -0
- package/dist/client/_nuxt/nbadge-gs58euic.js +1 -0
- package/dist/client/_nuxt/ncheckbox.vue-lcng4tp3.js +1 -0
- package/dist/client/_nuxt/ncode-block.vue-bfbbo3c9.js +2 -0
- package/dist/client/_nuxt/ndrawer.vue-n0jo71pp.js +1 -0
- package/dist/client/_nuxt/ndropdown.vue-l48zufyg.js +1 -0
- package/dist/client/_nuxt/nicon-title.vue-g9trlv29.js +1 -0
- package/dist/client/_nuxt/nlink.vue-grxar87b.js +1 -0
- package/dist/client/_nuxt/nmarkdown.vue-nnge8mex.js +1 -0
- package/dist/client/_nuxt/nnavbar.vue-ncwj4zjw.js +1 -0
- package/dist/client/_nuxt/none-grn7kg3n.js +1 -0
- package/dist/client/_nuxt/nsection-block-lj9jr5lq.js +1 -0
- package/dist/client/_nuxt/nselect-tabs.vue-hf6vcf5w.js +1 -0
- package/dist/client/_nuxt/nselect.vue-fu3yp2s3.js +1 -0
- package/dist/client/_nuxt/open-graph-n1d09rxe.js +3 -0
- package/dist/client/_nuxt/{open-graph.-BQyihv8.css → open-graph.css-np61an3p.css} +1 -1
- package/dist/client/_nuxt/overview-cjpjmhqv.js +1 -0
- package/dist/client/_nuxt/pages-bosbcml3.js +1 -0
- package/dist/client/_nuxt/payload-b9mwwvi8.js +1 -0
- package/dist/client/_nuxt/pinia-io97mkj5.js +1 -0
- package/dist/client/_nuxt/plugins-mkpz93oz.js +1 -0
- package/dist/client/_nuxt/runtime-configs-in7facqi.js +1 -0
- package/dist/client/_nuxt/server-route-inputs.vue-diwdds2s.js +1 -0
- package/dist/client/_nuxt/server-routes-eozbg2ko.js +9 -0
- package/dist/client/_nuxt/server-tasks-enz00tr5.js +1 -0
- package/dist/client/_nuxt/settings-e42sb40z.js +1 -0
- package/dist/client/_nuxt/stacktrace-list.vue-gv8cnf42.js +1 -0
- package/dist/client/_nuxt/state-components-jr16pryk.js +1 -0
- package/dist/client/_nuxt/state-editor.vue-nway0kx6.js +1 -0
- package/dist/client/_nuxt/state-modules-k69l57jh.js +1 -0
- package/dist/client/_nuxt/storage-gr8o9ir6.js +1 -0
- package/dist/client/_nuxt/terminals-nora4jiw.js +1 -0
- package/dist/client/_nuxt/terminals.css-o071tnq5.css +1 -0
- package/dist/client/_nuxt/timeline-k1m04t71.js +31 -0
- package/dist/client/_nuxt/timeline.css-i7fpg75n.css +1 -0
- package/dist/client/_nuxt/unocss-runtime-ks657l4w.js +1 -0
- package/dist/client/_nuxt/vendor/json-editor-vue-mdfcgt41.js +124 -0
- package/dist/client/_nuxt/vendor/json-editor-vue.css-o0jf01nd.css +1 -0
- package/dist/client/_nuxt/vendor/shiki-fpe2sz4h.js +87 -0
- package/dist/client/_nuxt/vendor/unocss-mnpxkox6.js +2 -0
- package/dist/client/_nuxt/vendor/unocss.css-na153c8v.css +1 -0
- package/dist/client/_nuxt/vendor/vis-cum19y28.js +98 -0
- package/dist/client/_nuxt/{CzYNa_kd.js → vendor/xterm-h0ftnevm.js} +6 -6
- package/dist/client/_nuxt/{terminals.BIEho_Pa.css → vendor/xterm.css-egivkam7.css} +1 -1
- package/dist/client/_nuxt/virtual-files-d3sqyioj.js +1 -0
- package/dist/client/_nuxt/{DPGeaLSc.js → vue-virtual-scroller.esm-k82i9hy2.js} +2 -2
- package/dist/client/index.html +18 -34
- package/dist/module.json +1 -1
- package/dist/runtime/plugins/view/FrameBox.vue +1 -1
- package/dist/runtime/plugins/view/Main.vue +1 -1
- package/dist/runtime/use-nuxt-devtools.js +1 -1
- package/package.json +21 -21
- package/dist/client/_nuxt/3LqotSTl.js +0 -1
- package/dist/client/_nuxt/52L3kFQK.js +0 -1
- package/dist/client/_nuxt/5bRVBCrv.js +0 -1
- package/dist/client/_nuxt/Az69hgFj.js +0 -1
- package/dist/client/_nuxt/B1ejXUAS.js +0 -1
- package/dist/client/_nuxt/B4nba3hY.js +0 -100
- package/dist/client/_nuxt/B6E6ObS_.js +0 -8
- package/dist/client/_nuxt/B6JyyHnR.js +0 -1
- package/dist/client/_nuxt/B9vFkdfw.js +0 -1
- package/dist/client/_nuxt/BAfkJCOj.js +0 -1
- package/dist/client/_nuxt/BHSU4EaZ.js +0 -1
- package/dist/client/_nuxt/BJHQxsCJ.js +0 -1
- package/dist/client/_nuxt/BJJ62LnN.js +0 -1
- package/dist/client/_nuxt/BK2fI3On.js +0 -1
- package/dist/client/_nuxt/BLmvGqlk.js +0 -1
- package/dist/client/_nuxt/BNEgG9Tt.js +0 -1
- package/dist/client/_nuxt/BPCL41ht.js +0 -1
- package/dist/client/_nuxt/BYKXQFmR.js +0 -1
- package/dist/client/_nuxt/BYelj_cE.js +0 -1
- package/dist/client/_nuxt/BiZn8tsj.js +0 -1
- package/dist/client/_nuxt/BmDbnW5H.js +0 -1
- package/dist/client/_nuxt/BnYPtiAB.js +0 -1
- package/dist/client/_nuxt/BpWWOd5v.js +0 -1
- package/dist/client/_nuxt/Bysyzw-g.js +0 -118
- package/dist/client/_nuxt/BzRxh9kO.js +0 -1
- package/dist/client/_nuxt/C6_7eaNf.js +0 -1
- package/dist/client/_nuxt/C6_B1_1h.js +0 -1
- package/dist/client/_nuxt/C6gZu76V.js +0 -1
- package/dist/client/_nuxt/C9iVm8DM.js +0 -9
- package/dist/client/_nuxt/CDP-pALJ.js +0 -1
- package/dist/client/_nuxt/CE5Yv1k8.js +0 -1
- package/dist/client/_nuxt/CFA-cGyt.js +0 -30
- package/dist/client/_nuxt/CFByhje9.js +0 -1
- package/dist/client/_nuxt/CGCqTpKA.js +0 -1
- package/dist/client/_nuxt/CMNERnbt.js +0 -1
- package/dist/client/_nuxt/COjmv9fs.js +0 -1
- package/dist/client/_nuxt/CP6X-Nb2.js +0 -3
- package/dist/client/_nuxt/CQTsRCSt.js +0 -1
- package/dist/client/_nuxt/CXTghDHT.js +0 -1
- package/dist/client/_nuxt/CZKrALC4.js +0 -9
- package/dist/client/_nuxt/C_HkoMG5.js +0 -1
- package/dist/client/_nuxt/CdlRa3-_.js +0 -2
- package/dist/client/_nuxt/Ci0JrwP0.js +0 -1
- package/dist/client/_nuxt/CpQX28Pm.js +0 -1
- package/dist/client/_nuxt/Cpe0RYoz.js +0 -5
- package/dist/client/_nuxt/CsTmP73Z.js +0 -1
- package/dist/client/_nuxt/CtUB4FID.js +0 -1
- package/dist/client/_nuxt/CvHWZNAB.js +0 -1
- package/dist/client/_nuxt/D4miJ1xw.js +0 -1
- package/dist/client/_nuxt/DByNSuIM.js +0 -8
- package/dist/client/_nuxt/DDQO9uCK.js +0 -1
- package/dist/client/_nuxt/DFUDf3T0.js +0 -1
- package/dist/client/_nuxt/DJDMOkXE.js +0 -2
- package/dist/client/_nuxt/DK4YETzW.js +0 -1
- package/dist/client/_nuxt/DN3C0UJz.js +0 -1
- package/dist/client/_nuxt/DNiICKty.js +0 -3
- package/dist/client/_nuxt/DUTLobbz.js +0 -1032
- package/dist/client/_nuxt/DljFhaqE.js +0 -1
- package/dist/client/_nuxt/DxQMSSvi.js +0 -1
- package/dist/client/_nuxt/DxufXTo6.js +0 -1
- package/dist/client/_nuxt/FSSfXIZy.js +0 -1
- package/dist/client/_nuxt/HT-8HE-a.js +0 -1
- package/dist/client/_nuxt/L1GM70c7.js +0 -1
- package/dist/client/_nuxt/O2-hisWU.js +0 -1
- package/dist/client/_nuxt/OvqPz-_F.js +0 -1
- package/dist/client/_nuxt/WFxqX3Wd.js +0 -1
- package/dist/client/_nuxt/XYic6raa.js +0 -1
- package/dist/client/_nuxt/YcmwJ_aR.js +0 -98
- package/dist/client/_nuxt/ZTJOnUjs.js +0 -1
- package/dist/client/_nuxt/builds/meta/553e6dd1-1d61-402c-830e-2a99ec46bcef.json +0 -1
- package/dist/client/_nuxt/c9Ocm0jZ.js +0 -1
- package/dist/client/_nuxt/dPiMYs67.js +0 -1
- package/dist/client/_nuxt/entry.DUv7pUjq.css +0 -1
- package/dist/client/_nuxt/error-404.BPtGIMAo.css +0 -1
- package/dist/client/_nuxt/error-500.WI7ozw6a.css +0 -1
- package/dist/client/_nuxt/goeoWIau.js +0 -1
- package/dist/client/_nuxt/lRZxrFTT.js +0 -1
- package/dist/client/_nuxt/omNoIW9g.js +0 -1
- package/dist/client/_nuxt/rc9fNBfM.js +0 -16
- package/dist/client/_nuxt/timeline.ygjsvjYU.css +0 -1
- package/dist/client/_nuxt/xcveoa5T.js +0 -1
- /package/dist/client/_nuxt/{assets.DGT3vQsf.css → assets.css-l0xw7n9m.css} +0 -0
- /package/dist/client/_nuxt/{BcJws1i5.js → constants-b32h69zq.js} +0 -0
- /package/dist/client/_nuxt/{HelpFab.DHTsX8io.css → help-fab.css-l22fo390.css} +0 -0
- /package/dist/client/_nuxt/{NCodeBlock.BJ-XAY5s.css → ncode-block.css-enx2fys6.css} +0 -0
- /package/dist/client/_nuxt/{NSectionBlock.Dnwb6MN5.css → nsection-block.css-nz74xks7.css} +0 -0
- /package/dist/client/_nuxt/{Blr6EMNg.js → vendor/markdown-it-fvu08dbs.js} +0 -0
- /package/dist/client/_nuxt/{virtual-files.CWZEM3J4.css → virtual-files.css-i6taatd1.css} +0 -0
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/*!
|
|
2
|
-
* vanilla-picker v2.12.3
|
|
3
|
-
* https://vanilla-picker.js.org
|
|
4
|
-
*
|
|
5
|
-
* Copyright 2017-2024 Andreas Borgen (https://github.com/Sphinxxxx), Adam Brooks (https://github.com/dissimulate)
|
|
6
|
-
* Released under the ISC license.
|
|
7
|
-
*/var O=function(l,n){if(!(l instanceof n))throw new TypeError("Cannot call a class as a function")},R=function(){function l(n,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(n,r.key,r)}}return function(n,e,t){return e&&l(n.prototype,e),t&&l(n,t),n}}(),y=function(){function l(n,e){var t=[],r=!0,i=!1,o=void 0;try{for(var c=n[Symbol.iterator](),a;!(r=(a=c.next()).done)&&(t.push(a.value),!(e&&t.length===e));r=!0);}catch(s){i=!0,o=s}finally{try{!r&&c.return&&c.return()}finally{if(i)throw o}}return t}return function(n,e){if(Array.isArray(n))return n;if(Symbol.iterator in Object(n))return l(n,e);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}();String.prototype.startsWith=String.prototype.startsWith||function(l){return this.indexOf(l)===0};String.prototype.padStart=String.prototype.padStart||function(l,n){for(var e=this;e.length<l;)e=n+e;return e};var I={cb:"0f8ff",tqw:"aebd7",q:"-ffff",qmrn:"7fffd4",zr:"0ffff",bg:"5f5dc",bsq:"e4c4",bck:"---",nch:"ebcd",b:"--ff",bvt:"8a2be2",brwn:"a52a2a",brw:"deb887",ctb:"5f9ea0",hrt:"7fff-",chcT:"d2691e",cr:"7f50",rnw:"6495ed",crns:"8dc",crms:"dc143c",cn:"-ffff",Db:"--8b",Dcn:"-8b8b",Dgnr:"b8860b",Dgr:"a9a9a9",Dgrn:"-64-",Dkhk:"bdb76b",Dmgn:"8b-8b",Dvgr:"556b2f",Drng:"8c-",Drch:"9932cc",Dr:"8b--",Dsmn:"e9967a",Dsgr:"8fbc8f",DsTb:"483d8b",DsTg:"2f4f4f",Dtrq:"-ced1",Dvt:"94-d3",ppnk:"1493",pskb:"-bfff",mgr:"696969",grb:"1e90ff",rbrc:"b22222",rwht:"af0",stg:"228b22",chs:"-ff",gnsb:"dcdcdc",st:"8f8ff",g:"d7-",gnr:"daa520",gr:"808080",grn:"-8-0",grnw:"adff2f",hnw:"0fff0",htpn:"69b4",nnr:"cd5c5c",ng:"4b-82",vr:"0",khk:"0e68c",vnr:"e6e6fa",nrb:"0f5",wngr:"7cfc-",mnch:"acd",Lb:"add8e6",Lcr:"08080",Lcn:"e0ffff",Lgnr:"afad2",Lgr:"d3d3d3",Lgrn:"90ee90",Lpnk:"b6c1",Lsmn:"a07a",Lsgr:"20b2aa",Lskb:"87cefa",LsTg:"778899",Lstb:"b0c4de",Lw:"e0",m:"-ff-",mgrn:"32cd32",nn:"af0e6",mgnt:"-ff",mrn:"8--0",mqm:"66cdaa",mmb:"--cd",mmrc:"ba55d3",mmpr:"9370db",msg:"3cb371",mmsT:"7b68ee","":"-fa9a",mtr:"48d1cc",mmvt:"c71585",mnLb:"191970",ntc:"5fffa",mstr:"e4e1",mccs:"e4b5",vjw:"dead",nv:"--80",c:"df5e6",v:"808-0",vrb:"6b8e23",rng:"a5-",rngr:"45-",rch:"da70d6",pgnr:"eee8aa",pgrn:"98fb98",ptrq:"afeeee",pvtr:"db7093",ppwh:"efd5",pchp:"dab9",pr:"cd853f",pnk:"c0cb",pm:"dda0dd",pwrb:"b0e0e6",prp:"8-080",cc:"663399",r:"--",sbr:"bc8f8f",rb:"4169e1",sbrw:"8b4513",smn:"a8072",nbr:"4a460",sgrn:"2e8b57",ssh:"5ee",snn:"a0522d",svr:"c0c0c0",skb:"87ceeb",sTb:"6a5acd",sTgr:"708090",snw:"afa",n:"-ff7f",stb:"4682b4",tn:"d2b48c",t:"-8080",thst:"d8bfd8",tmT:"6347",trqs:"40e0d0",vt:"ee82ee",whT:"5deb3",wht:"",hts:"5f5f5",w:"-",wgrn:"9acd32"};function A(l){var n=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,e=n>0?l.toFixed(n).replace(/0+$/,"").replace(/\.$/,""):l.toString();return e||"0"}var N=function(){function l(n,e,t,r){O(this,l);var i=this;function o(a){if(a.startsWith("hsl")){var s=a.match(/([\-\d\.e]+)/g).map(Number),p=y(s,4),f=p[0],u=p[1],d=p[2],b=p[3];b===void 0&&(b=1),f/=360,u/=100,d/=100,i.hsla=[f,u,d,b]}else if(a.startsWith("rgb")){var m=a.match(/([\-\d\.e]+)/g).map(Number),h=y(m,4),v=h[0],g=h[1],E=h[2],k=h[3];k===void 0&&(k=1),i.rgba=[v,g,E,k]}else a.startsWith("#")?i.rgba=l.hexToRgb(a):i.rgba=l.nameToRgb(a)||l.hexToRgb(a)}if(n!==void 0)if(Array.isArray(n))this.rgba=n;else if(t===void 0){var c=n&&""+n;c&&o(c.toLowerCase())}else this.rgba=[n,e,t,r===void 0?1:r]}return R(l,[{key:"printRGB",value:function(e){var t=e?this.rgba:this.rgba.slice(0,3),r=t.map(function(i,o){return A(i,o===3?3:0)});return e?"rgba("+r+")":"rgb("+r+")"}},{key:"printHSL",value:function(e){var t=[360,100,100,1],r=["","%","%",""],i=e?this.hsla:this.hsla.slice(0,3),o=i.map(function(c,a){return A(c*t[a],a===3?3:1)+r[a]});return e?"hsla("+o+")":"hsl("+o+")"}},{key:"printHex",value:function(e){var t=this.hex;return e?t:t.substring(0,7)}},{key:"rgba",get:function(){if(this._rgba)return this._rgba;if(!this._hsla)throw new Error("No color is set");return this._rgba=l.hslToRgb(this._hsla)},set:function(e){e.length===3&&(e[3]=1),this._rgba=e,this._hsla=null}},{key:"rgbString",get:function(){return this.printRGB()}},{key:"rgbaString",get:function(){return this.printRGB(!0)}},{key:"hsla",get:function(){if(this._hsla)return this._hsla;if(!this._rgba)throw new Error("No color is set");return this._hsla=l.rgbToHsl(this._rgba)},set:function(e){e.length===3&&(e[3]=1),this._hsla=e,this._rgba=null}},{key:"hslString",get:function(){return this.printHSL()}},{key:"hslaString",get:function(){return this.printHSL(!0)}},{key:"hex",get:function(){var e=this.rgba,t=e.map(function(r,i){return i<3?r.toString(16):Math.round(r*255).toString(16)});return"#"+t.map(function(r){return r.padStart(2,"0")}).join("")},set:function(e){this.rgba=l.hexToRgb(e)}}],[{key:"hexToRgb",value:function(e){var t=(e.startsWith("#")?e.slice(1):e).replace(/^(\w{3})$/,"$1F").replace(/^(\w)(\w)(\w)(\w)$/,"$1$1$2$2$3$3$4$4").replace(/^(\w{6})$/,"$1FF");if(!t.match(/^([0-9a-fA-F]{8})$/))throw new Error("Unknown hex color; "+e);var r=t.match(/^(\w\w)(\w\w)(\w\w)(\w\w)$/).slice(1).map(function(i){return parseInt(i,16)});return r[3]=r[3]/255,r}},{key:"nameToRgb",value:function(e){var t=e.toLowerCase().replace("at","T").replace(/[aeiouyldf]/g,"").replace("ght","L").replace("rk","D").slice(-5,4),r=I[t];return r===void 0?r:l.hexToRgb(r.replace(/\-/g,"00").padStart(6,"f"))}},{key:"rgbToHsl",value:function(e){var t=y(e,4),r=t[0],i=t[1],o=t[2],c=t[3];r/=255,i/=255,o/=255;var a=Math.max(r,i,o),s=Math.min(r,i,o),p=void 0,f=void 0,u=(a+s)/2;if(a===s)p=f=0;else{var d=a-s;switch(f=u>.5?d/(2-a-s):d/(a+s),a){case r:p=(i-o)/d+(i<o?6:0);break;case i:p=(o-r)/d+2;break;case o:p=(r-i)/d+4;break}p/=6}return[p,f,u,c]}},{key:"hslToRgb",value:function(e){var t=y(e,4),r=t[0],i=t[1],o=t[2],c=t[3],a=void 0,s=void 0,p=void 0;if(i===0)a=s=p=o;else{var f=function(h,v,g){return g<0&&(g+=1),g>1&&(g-=1),g<.16666666666666666?h+(v-h)*6*g:g<.5?v:g<.6666666666666666?h+(v-h)*(.6666666666666666-g)*6:h},u=o<.5?o*(1+i):o+i-o*i,d=2*o-u;a=f(d,u,r+1/3),s=f(d,u,r),p=f(d,u,r-1/3)}var b=[a*255,s*255,p*255].map(Math.round);return b[3]=c,b}}]),l}(),z=function(){function l(){O(this,l),this._events=[]}return R(l,[{key:"add",value:function(e,t,r){e.addEventListener(t,r,!1),this._events.push({target:e,type:t,handler:r})}},{key:"remove",value:function(e,t,r){this._events=this._events.filter(function(i){var o=!0;return e&&e!==i.target&&(o=!1),t&&t!==i.type&&(o=!1),r&&r!==i.handler&&(o=!1),o&&l._doRemove(i.target,i.type,i.handler),!o})}},{key:"destroy",value:function(){this._events.forEach(function(e){return l._doRemove(e.target,e.type,e.handler)}),this._events=[]}}],[{key:"_doRemove",value:function(e,t,r){e.removeEventListener(t,r,!1)}}]),l}();function F(l){var n=document.createElement("div");return n.innerHTML=l,n.firstElementChild}function L(l,n,e){var t=!1;function r(a,s,p){return Math.max(s,Math.min(a,p))}function i(a,s,p){if(p&&(t=!0),!!t){a.preventDefault();var f=n.getBoundingClientRect(),u=f.width,d=f.height,b=s.clientX,m=s.clientY,h=r(b-f.left,0,u),v=r(m-f.top,0,d);e(h/u,v/d)}}function o(a,s){var p=a.buttons===void 0?a.which:a.buttons;p===1?i(a,a,s):t=!1}function c(a,s){a.touches.length===1?i(a,a.touches[0],s):t=!1}l.add(n,"mousedown",function(a){o(a,!0)}),l.add(n,"touchstart",function(a){c(a,!0)}),l.add(window,"mousemove",o),l.add(n,"touchmove",c),l.add(window,"mouseup",function(a){t=!1}),l.add(n,"touchend",function(a){t=!1}),l.add(n,"touchcancel",function(a){t=!1})}var U=`linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0 / 2em 2em,
|
|
8
|
-
linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em / 2em 2em`,B=360,P="keydown",x="mousedown",T="focusin";function _(l,n){return(n||document).querySelector(l)}function G(l){l.preventDefault(),l.stopPropagation()}function H(l,n,e,t,r){l.add(n,P,function(i){e.indexOf(i.key)>=0&&t(i)})}var K=function(){function l(n){O(this,l),this.settings={popup:"right",layout:"default",alpha:!0,editor:!0,editorFormat:"hex",cancelButton:!1,defaultColor:"#0cf"},this._events=new z,this.onChange=null,this.onDone=null,this.onOpen=null,this.onClose=null,this.setOptions(n)}return R(l,[{key:"setOptions",value:function(e){var t=this;if(!e)return;var r=this.settings;function i(s,p,f){for(var u in s)p[u]=s[u]}if(e instanceof HTMLElement)r.parent=e;else{r.parent&&e.parent&&r.parent!==e.parent&&(this._events.remove(r.parent),this._popupInited=!1),i(e,r),e.onChange&&(this.onChange=e.onChange),e.onDone&&(this.onDone=e.onDone),e.onOpen&&(this.onOpen=e.onOpen),e.onClose&&(this.onClose=e.onClose);var o=e.color||e.colour;o&&this._setColor(o)}var c=r.parent;if(c&&r.popup&&!this._popupInited){var a=function(p){return t.openHandler(p)};this._events.add(c,"click",a),H(this._events,c,[" ","Spacebar","Enter"],a),this._popupInited=!0}else e.parent&&!r.popup&&this.show()}},{key:"openHandler",value:function(e){if(this.show()){e&&e.preventDefault(),this.settings.parent.style.pointerEvents="none";var t=e&&e.type===P?this._domEdit:this.domElement;setTimeout(function(){return t.focus()},100),this.onOpen&&this.onOpen(this.colour)}}},{key:"closeHandler",value:function(e){var t=e&&e.type,r=!1;if(!e)r=!0;else if(t===x||t===T){var i=(this.__containedEvent||0)+100;e.timeStamp>i&&(r=!0)}else G(e),r=!0;r&&this.hide()&&(this.settings.parent.style.pointerEvents="",t!==x&&this.settings.parent.focus(),this.onClose&&this.onClose(this.colour))}},{key:"movePopup",value:function(e,t){this.closeHandler(),this.setOptions(e),t&&this.openHandler()}},{key:"setColor",value:function(e,t){this._setColor(e,{silent:t})}},{key:"_setColor",value:function(e,t){if(typeof e=="string"&&(e=e.trim()),!!e){t=t||{};var r=void 0;try{r=new N(e)}catch(o){if(t.failSilently)return;throw o}if(!this.settings.alpha){var i=r.hsla;i[3]=1,r.hsla=i}this.colour=this.color=r,this._setHSLA(null,null,null,null,t)}}},{key:"setColour",value:function(e,t){this.setColor(e,t)}},{key:"show",value:function(){var e=this.settings.parent;if(!e)return!1;if(this.domElement){var t=this._toggleDOM(!0);return this._setPosition(),t}var r=this.settings.template||'<div class="picker_wrapper" tabindex="-1"><div class="picker_arrow"></div><div class="picker_hue picker_slider"><div class="picker_selector"></div></div><div class="picker_sl"><div class="picker_selector"></div></div><div class="picker_alpha picker_slider"><div class="picker_selector"></div></div><div class="picker_editor"><input aria-label="Type a color name or hex value"/></div><div class="picker_sample"></div><div class="picker_done"><button>Ok</button></div><div class="picker_cancel"><button>Cancel</button></div></div>',i=F(r);return this.domElement=i,this._domH=_(".picker_hue",i),this._domSL=_(".picker_sl",i),this._domA=_(".picker_alpha",i),this._domEdit=_(".picker_editor input",i),this._domSample=_(".picker_sample",i),this._domOkay=_(".picker_done button",i),this._domCancel=_(".picker_cancel button",i),i.classList.add("layout_"+this.settings.layout),this.settings.alpha||i.classList.add("no_alpha"),this.settings.editor||i.classList.add("no_editor"),this.settings.cancelButton||i.classList.add("no_cancel"),this._ifPopup(function(){return i.classList.add("popup")}),this._setPosition(),this.colour?this._updateUI():this._setColor(this.settings.defaultColor),this._bindEvents(),!0}},{key:"hide",value:function(){return this._toggleDOM(!1)}},{key:"destroy",value:function(){this._events.destroy(),this.domElement&&this.settings.parent.removeChild(this.domElement)}},{key:"_bindEvents",value:function(){var e=this,t=this,r=this.domElement,i=this._events;function o(s,p,f){i.add(s,p,f)}o(r,"click",function(s){return s.preventDefault()}),L(i,this._domH,function(s,p){return t._setHSLA(s)}),L(i,this._domSL,function(s,p){return t._setHSLA(null,s,1-p)}),this.settings.alpha&&L(i,this._domA,function(s,p){return t._setHSLA(null,null,null,1-p)});var c=this._domEdit;o(c,"input",function(s){t._setColor(this.value,{fromEditor:!0,failSilently:!0})}),o(c,"focus",function(s){var p=this;p.selectionStart===p.selectionEnd&&p.select()}),this._ifPopup(function(){var s=function(u){return e.closeHandler(u)};o(window,x,s),o(window,T,s),H(i,r,["Esc","Escape"],s);var p=function(u){e.__containedEvent=u.timeStamp};o(r,x,p),o(r,T,p),o(e._domCancel,"click",s)});var a=function(p){e._ifPopup(function(){return e.closeHandler(p)}),e.onDone&&e.onDone(e.colour)};o(this._domOkay,"click",a),H(i,r,["Enter"],a)}},{key:"_setPosition",value:function(){var e=this.settings.parent,t=this.domElement;e!==t.parentNode&&e.appendChild(t),this._ifPopup(function(r){getComputedStyle(e).position==="static"&&(e.style.position="relative");var i=r===!0?"popup_right":"popup_"+r;["popup_top","popup_bottom","popup_left","popup_right"].forEach(function(o){o===i?t.classList.add(o):t.classList.remove(o)}),t.classList.add(i)})}},{key:"_setHSLA",value:function(e,t,r,i,o){o=o||{};var c=this.colour,a=c.hsla;[e,t,r,i].forEach(function(s,p){(s||s===0)&&(a[p]=s)}),c.hsla=a,this._updateUI(o),this.onChange&&!o.silent&&this.onChange(c)}},{key:"_updateUI",value:function(e){if(!this.domElement)return;e=e||{};var t=this.colour,r=t.hsla,i="hsl("+r[0]*B+", 100%, 50%)",o=t.hslString,c=t.hslaString,a=this._domH,s=this._domSL,p=this._domA,f=_(".picker_selector",a),u=_(".picker_selector",s),d=_(".picker_selector",p);function b(M,S,C){S.style.left=C*100+"%"}function m(M,S,C){S.style.top=C*100+"%"}b(a,f,r[0]),this._domSL.style.backgroundColor=this._domH.style.color=i,b(s,u,r[1]),m(s,u,1-r[2]),s.style.color=o,m(p,d,1-r[3]);var h=o,v=h.replace("hsl","hsla").replace(")",", 0)"),g="linear-gradient("+[h,v]+")";if(this._domA.style.background=g+", "+U,!e.fromEditor){var E=this.settings.editorFormat,k=this.settings.alpha,w=void 0;switch(E){case"rgb":w=t.printRGB(k);break;case"hsl":w=t.printHSL(k);break;default:w=t.printHex(k)}this._domEdit.value=w}this._domSample.style.color=c}},{key:"_ifPopup",value:function(e,t){this.settings.parent&&this.settings.popup?e&&e(this.settings.popup):t&&t()}},{key:"_toggleDOM",value:function(e){var t=this.domElement;if(!t)return!1;var r=e?"":"none",i=t.style.display!==r;return i&&(t.style.display=r),i}}]),l}();{var D=document.createElement("style");D.textContent='.picker_wrapper.no_alpha .picker_alpha{display:none}.picker_wrapper.no_editor .picker_editor{position:absolute;z-index:-1;opacity:0}.picker_wrapper.no_cancel .picker_cancel{display:none}.layout_default.picker_wrapper{display:flex;flex-flow:row wrap;justify-content:space-between;align-items:stretch;font-size:10px;width:25em;padding:.5em}.layout_default.picker_wrapper input,.layout_default.picker_wrapper button{font-size:1rem}.layout_default.picker_wrapper>*{margin:.5em}.layout_default.picker_wrapper::before{content:"";display:block;width:100%;height:0;order:1}.layout_default .picker_slider,.layout_default .picker_selector{padding:1em}.layout_default .picker_hue{width:100%}.layout_default .picker_sl{flex:1 1 auto}.layout_default .picker_sl::before{content:"";display:block;padding-bottom:100%}.layout_default .picker_editor{order:1;width:6.5rem}.layout_default .picker_editor input{width:100%;height:100%}.layout_default .picker_sample{order:1;flex:1 1 auto}.layout_default .picker_done,.layout_default .picker_cancel{order:1}.picker_wrapper{box-sizing:border-box;background:#f2f2f2;box-shadow:0 0 0 1px silver;cursor:default;font-family:sans-serif;color:#444;pointer-events:auto}.picker_wrapper:focus{outline:none}.picker_wrapper button,.picker_wrapper input{box-sizing:border-box;border:none;box-shadow:0 0 0 1px silver;outline:none}.picker_wrapper button:focus,.picker_wrapper button:active,.picker_wrapper input:focus,.picker_wrapper input:active{box-shadow:0 0 2px 1px #1e90ff}.picker_wrapper button{padding:.4em .6em;cursor:pointer;background-color:#f5f5f5;background-image:linear-gradient(0deg, gainsboro, transparent)}.picker_wrapper button:active{background-image:linear-gradient(0deg, transparent, gainsboro)}.picker_wrapper button:hover{background-color:#fff}.picker_selector{position:absolute;z-index:1;display:block;-webkit-transform:translate(-50%, -50%);transform:translate(-50%, -50%);border:2px solid #fff;border-radius:100%;box-shadow:0 0 3px 1px #67b9ff;background:currentColor;cursor:pointer}.picker_slider .picker_selector{border-radius:2px}.picker_hue{position:relative;background-image:linear-gradient(90deg, red, yellow, lime, cyan, blue, magenta, red);box-shadow:0 0 0 1px silver}.picker_sl{position:relative;box-shadow:0 0 0 1px silver;background-image:linear-gradient(180deg, white, rgba(255, 255, 255, 0) 50%),linear-gradient(0deg, black, rgba(0, 0, 0, 0) 50%),linear-gradient(90deg, #808080, rgba(128, 128, 128, 0))}.picker_alpha,.picker_sample{position:relative;background:linear-gradient(45deg, lightgrey 25%, transparent 25%, transparent 75%, lightgrey 75%) 0 0/2em 2em,linear-gradient(45deg, lightgrey 25%, white 25%, white 75%, lightgrey 75%) 1em 1em/2em 2em;box-shadow:0 0 0 1px silver}.picker_alpha .picker_selector,.picker_sample .picker_selector{background:none}.picker_editor input{font-family:monospace;padding:.2em .4em}.picker_sample::before{content:"";position:absolute;display:block;width:100%;height:100%;background:currentColor}.picker_arrow{position:absolute;z-index:-1}.picker_wrapper.popup{position:absolute;z-index:2;margin:1.5em}.picker_wrapper.popup,.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{background:#f2f2f2;box-shadow:0 0 10px 1px rgba(0,0,0,.4)}.picker_wrapper.popup .picker_arrow{width:3em;height:3em;margin:0}.picker_wrapper.popup .picker_arrow::before,.picker_wrapper.popup .picker_arrow::after{content:"";display:block;position:absolute;top:0;left:0;z-index:-99}.picker_wrapper.popup .picker_arrow::before{width:100%;height:100%;-webkit-transform:skew(45deg);transform:skew(45deg);-webkit-transform-origin:0 100%;transform-origin:0 100%}.picker_wrapper.popup .picker_arrow::after{width:150%;height:150%;box-shadow:none}.popup.popup_top{bottom:100%;left:0}.popup.popup_top .picker_arrow{bottom:0;left:0;-webkit-transform:rotate(-90deg);transform:rotate(-90deg)}.popup.popup_bottom{top:100%;left:0}.popup.popup_bottom .picker_arrow{top:0;left:0;-webkit-transform:rotate(90deg) scale(1, -1);transform:rotate(90deg) scale(1, -1)}.popup.popup_left{top:0;right:100%}.popup.popup_left .picker_arrow{top:0;right:0;-webkit-transform:scale(-1, 1);transform:scale(-1, 1)}.popup.popup_right{top:0;left:100%}.popup.popup_right .picker_arrow{top:0;left:0}',document.documentElement.firstElementChild.appendChild(D),K.StyleElement=D}export{K as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{cg as Oe,d as ee,ch as re,r as H,a as U,o as _,m as $,k as v,i as T,f as l,t as N,F as B,n as Z,D as F,p as j,a4 as oe,ai as ue,cc as Te,am as xe,a9 as Se,ay as se,aa as we,aB as Xe,aY as De,cd as Ee,e as Me,a0 as le,G,j as I,v as P,c8 as Ce,h as A,l as K,aw as Ie,S as $e,_ as ce,V as Ue,y as fe,al as Re,a7 as Le,a8 as Ne,ci as Ae,af as Ve,R as je,cf as Be,ar as We}from"./Bysyzw-g.js";import{_ as He}from"./Ci0JrwP0.js";import{_ as pe}from"./CpQX28Pm.js";import{_ as de}from"./CFByhje9.js";import{_ as ze}from"./CdlRa3-_.js";import{S as he}from"./BcJws1i5.js";import{s as qe}from"./B4nba3hY.js";import{_ as Ye}from"./C6_B1_1h.js";import{_ as Pe}from"./dPiMYs67.js";import"./ZTJOnUjs.js";import"./DFUDf3T0.js";import"./DK4YETzW.js";import"./3LqotSTl.js";import"./CXTghDHT.js";var ve={exports:{}};(function(q,R){(function(x,X){q.exports=X()})(globalThis,()=>(()=>{var L={794:(O,d,k)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.CronParser=void 0;var o=k(586),h=function(){function g(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return g.prototype.parse=function(){var t,e,a=(t=this.expression)!==null&&t!==void 0?t:"";if(a.startsWith("@")){var r=this.parseSpecial(this.expression);e=this.extractParts(r)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},g.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},a=e[t];if(!a)throw new Error("Unknown special expression.");return a},g.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),a=0;a<e.length;a++)if(e[a].includes(",")){var r=e[a].split(",").map(function(s){return s.trim()}).filter(function(s){return s!==""}).map(function(s){return isNaN(Number(s))?s:Number(s)}).filter(function(s){return s!==null&&s!==""});r.length===0&&r.push("*"),r.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=r.map(function(s){return s!==null?s.toString():""}).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var n=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";n?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},g.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(f){var y=f.replace(/\D/,""),p=y;return e.dayOfWeekStartIndexZero?y=="7"&&(p="0"):p=(parseInt(y)-1).toString(),f.replace(y,p)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var a={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in a)t[5]=t[5].replace(new RegExp(r,"gi"),a[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(f){var y=f.replace(/\D/,""),p=y;return e.monthStartIndexZero&&(p=(parseInt(y)+1).toString()),f.replace(y,p)});var n={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var s in n)t[4]=t[4].replace(new RegExp(s,"gi"),n[s].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var i=0;i<t.length;i++)if(t[i].indexOf(",")!=-1&&(t[i]=t[i].split(",").filter(function(f){return f!==""}).join(",")||"*"),t[i]=="*/1"&&(t[i]="*"),t[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[i])){var u=null;switch(i){case 4:u="12";break;case 5:u="6";break;case 6:u="9999";break;default:u=null;break}if(u!==null){var m=t[i].split("/");t[i]="".concat(m[0],"-").concat(u,"/").concat(m[1])}}},g.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},g.prototype.validateRange=function(t){o.default.secondRange(t[0]),o.default.minuteRange(t[1]),o.default.hourRange(t[2]),o.default.dayOfMonthRange(t[3]),o.default.monthRange(t[4],this.monthStartIndexZero),o.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},g.prototype.assertNoInvalidCharacters=function(t,e){var a=e.match(/[A-KM-VX-Z]+/gi);if(a&&a.length)throw new Error("".concat(t," part contains invalid values: '").concat(a.toString(),"'"))},g}();d.CronParser=h},728:(O,d,k)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.ExpressionDescriptor=void 0;var o=k(910),h=k(794),g=function(){function t(e,a){if(this.expression=e,this.options=a,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var r=a===void 0?{}:a,n=r.throwExceptionOnParseError,s=n===void 0?!0:n,i=r.verbose,u=i===void 0?!1:i,m=r.dayOfWeekStartIndexZero,f=m===void 0?!0:m,y=r.monthStartIndexZero,p=y===void 0?!1:y,C=r.use24HourTimeFormat,S=r.locale,W=S===void 0?null:S,V=r.tzOffset,E=V===void 0?0:V,z={throwExceptionOnParseError:s,verbose:u,dayOfWeekStartIndexZero:f,monthStartIndexZero:p,use24HourTimeFormat:C,locale:W,tzOffset:E},te=new t(e,z);return te.getFullDescription()},t.initialize=function(e,a){a===void 0&&(a="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=a,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var a=new h.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var r=this.getTimeOfDayDescription(),n=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),u=this.getYearDescription();e+=r+n+i+s+u,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(m){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(m)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],r=this.expressionParts[2],n="";if(!o.StringUtilities.containsAny(a,t.specialCharacters)&&!o.StringUtilities.containsAny(r,t.specialCharacters)&&!o.StringUtilities.containsAny(e,t.specialCharacters))n+=this.i18n.atSpace()+this.formatTime(r,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!o.StringUtilities.containsAny(r,t.specialCharacters)){var s=a.split("-");n+=o.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(r,s[0],""),this.formatTime(r,s[1],""))}else if(!e&&r.indexOf(",")>-1&&r.indexOf("-")==-1&&r.indexOf("/")==-1&&!o.StringUtilities.containsAny(a,t.specialCharacters)){var i=r.split(",");n+=this.i18n.at();for(var u=0;u<i.length;u++)n+=" ",n+=this.formatTime(i[u],a,""),u<i.length-2&&(n+=","),u==i.length-2&&(n+=this.i18n.spaceAnd())}else{var m=this.getSecondsDescription(),f=this.getMinutesDescription(),y=this.getHoursDescription();if(n+=m,n&&f&&(n+=", "),n+=f,f===y)return n;n&&y&&(n+=", "),n+=y}return n},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(r){return r},function(r){return o.StringUtilities.format(e.i18n.everyX0Seconds(r),r)},function(r){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(r){return r=="0"?"":parseInt(r)<20?e.i18n.atX0SecondsPastTheMinute(r):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(r)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],r=this.expressionParts[2],n=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return o.StringUtilities.format(e.i18n.everyX0Minutes(s),s)},function(s){return e.i18n.minutesX0ThroughX1PastTheHour()},function(s){try{return s=="0"&&r.indexOf("/")==-1&&a==""?e.i18n.everyHour():parseInt(s)<20?e.i18n.atX0MinutesPastTheHour(s):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(s)}catch{return e.i18n.atX0MinutesPastTheHour(s)}});return n},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],r=this.getSegmentDescription(a,this.i18n.everyHour(),function(i){return e.formatTime(i,"0","")},function(i){return o.StringUtilities.format(e.i18n.everyX0Hours(i),i)},function(i){return e.i18n.betweenX0AndX1()},function(i){return e.i18n.atX0()});if(r&&a.includes("-")&&this.expressionParts[1]!="0"){var n=Array.from(r.matchAll(/:00/g));if(n.length>1){var s=n[n.length-1].index;r=r.substring(0,s)+":59"+r.substring(s+3)}}return r},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),r=null;return this.expressionParts[5]=="*"?r="":r=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,s){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var u=parseInt(i);if(e.options.tzOffset){var m=e.expressionParts[2],f=parseInt(m)+(e.options.tzOffset?e.options.tzOffset:0);f>=24?u++:f<0&&u--,u>6?u=0:u<0&&(u=6)}var y=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[u]:a[u];if(n.indexOf("#")>-1){var p=null,C=n.substring(n.indexOf("#")+1),S=n.substring(0,n.indexOf("#"));switch(C){case"1":p=e.i18n.first(S);break;case"2":p=e.i18n.second(S);break;case"3":p=e.i18n.third(S);break;case"4":p=e.i18n.fourth(S);break;case"5":p=e.i18n.fifth(S);break}y=p+" "+y}return y},function(n){return parseInt(n)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(n),n)},function(n){var s=n.substring(0,n.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(n){var s=null;if(n.indexOf("#")>-1){var i=n.substring(n.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(n.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(n.replace("L",""));else{var u=e.expressionParts[3]!="*";s=u?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(n)}return s}),r},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),r=this.getSegmentDescription(this.expressionParts[4],"",function(n,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(n)-1]:a[parseInt(n)-1]},function(n){return parseInt(n)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0Months(n),n)},function(n){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return r},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,r=this.expressionParts[3];switch(r){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var n=r.match(/(\d{1,2}W)|(W\d{1,2})/);if(n){var s=parseInt(n[0].replace("W","")),i=s==1?this.i18n.firstWeekday():o.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=o.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var u=r.match(/L-(\d{1,2})/);if(u){var m=u[1];a=o.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(m),m);break}else{if(r=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(r,this.i18n.commaEveryDay(),function(f){return f=="L"?e.i18n.lastDay():e.i18n.dayX0?o.StringUtilities.format(e.i18n.dayX0(),f):f},function(f){return f=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(f)},function(f){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(f)},function(f){return e.i18n.commaOnDayX0OfTheMonth(f)})}break}}return a},t.prototype.getYearDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[6],"",function(r){return/^\d+$/.test(r)?new Date(parseInt(r),1).getFullYear().toString():r},function(r){return o.StringUtilities.format(e.i18n.commaEveryX0Years(r),r)},function(r){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(r){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,r,n,s,i){var u=null,m=e.indexOf("/")>-1,f=e.indexOf("-")>-1,y=e.indexOf(",")>-1;if(!e)u="";else if(e==="*")u=a;else if(!m&&!f&&!y)u=o.StringUtilities.format(i(e),r(e));else if(y){for(var p=e.split(","),C="",S=0;S<p.length;S++)if(S>0&&p.length>2&&(C+=",",S<p.length-1&&(C+=" ")),S>0&&p.length>1&&(S==p.length-1||p.length==2)&&(C+="".concat(this.i18n.spaceAnd()," ")),p[S].indexOf("/")>-1||p[S].indexOf("-")>-1){var W=p[S].indexOf("-")>-1&&p[S].indexOf("/")==-1,V=this.getSegmentDescription(p[S],a,r,n,W?this.i18n.commaX0ThroughX1:s,i);W&&(V=V.replace(", ","")),C+=V}else m?C+=this.getSegmentDescription(p[S],a,r,n,s,i):C+=r(p[S]);m?u=C:u=o.StringUtilities.format(i(e),C)}else if(m){var p=e.split("/");if(u=o.StringUtilities.format(n(p[1]),p[1]),p[0].indexOf("-")>-1){var E=this.generateRangeSegmentDescription(p[0],s,r);E.indexOf(", ")!=0&&(u+=", "),u+=E}else if(p[0].indexOf("*")==-1){var z=o.StringUtilities.format(i(p[0]),r(p[0]));z=z.replace(", ",""),u+=o.StringUtilities.format(this.i18n.commaStartingX0(),z)}}else f&&(u=this.generateRangeSegmentDescription(e,s,r));return u},t.prototype.generateRangeSegmentDescription=function(e,a,r){var n="",s=e.split("-"),i=r(s[0],1),u=r(s[1],2),m=a(e);return n+=o.StringUtilities.format(m,i,u),n},t.prototype.formatTime=function(e,a,r){var n=0,s=0;this.options.tzOffset&&(n=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),s=parseFloat((this.options.tzOffset%1).toFixed(2)),s!=0&&(s*=60));var i=parseInt(e)+n,u=parseInt(a)+s;u>=60?(u-=60,i+=1):u<0&&(u+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var m="",f=!1;this.options.use24HourTimeFormat||(f=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),m=f?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var y="";return r&&(y=":".concat(("00"+r).substring(r.length))),"".concat(f?m:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+u.toString()).substring(u.toString().length)).concat(y).concat(f?"":m)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();d.ExpressionDescriptor=g},336:(O,d,k)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.enLocaleLoader=void 0;var o=k(751),h=function(){function g(){}return g.prototype.load=function(t){t.en=new o.en},g}();d.enLocaleLoader=h},751:(O,d)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.en=void 0;var k=function(){function o(){}return o.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},o.prototype.atX0MinutesPastTheHourGt20=function(){return null},o.prototype.commaMonthX0ThroughMonthX1=function(){return null},o.prototype.commaYearX0ThroughYearX1=function(){return null},o.prototype.use24HourTimeFormatByDefault=function(){return!1},o.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},o.prototype.everyMinute=function(){return"every minute"},o.prototype.everyHour=function(){return"every hour"},o.prototype.atSpace=function(){return"At "},o.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},o.prototype.at=function(){return"At"},o.prototype.spaceAnd=function(){return" and"},o.prototype.everySecond=function(){return"every second"},o.prototype.everyX0Seconds=function(){return"every %s seconds"},o.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},o.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},o.prototype.everyX0Minutes=function(){return"every %s minutes"},o.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},o.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},o.prototype.everyX0Hours=function(){return"every %s hours"},o.prototype.betweenX0AndX1=function(){return"between %s and %s"},o.prototype.atX0=function(){return"at %s"},o.prototype.commaEveryDay=function(){return", every day"},o.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},o.prototype.commaX0ThroughX1=function(){return", %s through %s"},o.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},o.prototype.first=function(){return"first"},o.prototype.second=function(){return"second"},o.prototype.third=function(){return"third"},o.prototype.fourth=function(){return"fourth"},o.prototype.fifth=function(){return"fifth"},o.prototype.commaOnThe=function(){return", on the "},o.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},o.prototype.lastDay=function(){return"the last day"},o.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},o.prototype.commaOnlyOnX0=function(){return", only on %s"},o.prototype.commaAndOnX0=function(){return", and on %s"},o.prototype.commaEveryX0Months=function(){return", every %s months"},o.prototype.commaOnlyInX0=function(){return", only in %s"},o.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},o.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},o.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},o.prototype.firstWeekday=function(){return"first weekday"},o.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},o.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},o.prototype.commaEveryX0Days=function(){return", every %s days"},o.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},o.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},o.prototype.commaEveryHour=function(){return", every hour"},o.prototype.commaEveryX0Years=function(){return", every %s years"},o.prototype.commaStartingX0=function(){return", starting %s"},o.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},o}();d.en=k},586:(O,d)=>{Object.defineProperty(d,"__esModule",{value:!0});function k(h,g){if(!h)throw new Error(g)}var o=function(){function h(){}return h.secondRange=function(g){for(var t=g.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);k(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},h.minuteRange=function(g){for(var t=g.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);k(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},h.hourRange=function(g){for(var t=g.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);k(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},h.dayOfMonthRange=function(g){for(var t=g.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);k(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},h.monthRange=function(g,t){for(var e=g.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var r=parseInt(e[a],10);k(r>=1&&r<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},h.dayOfWeekRange=function(g,t){for(var e=g.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var r=parseInt(e[a],10);k(r>=0&&r<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},h}();d.default=o},910:(O,d)=>{Object.defineProperty(d,"__esModule",{value:!0}),d.StringUtilities=void 0;var k=function(){function o(){}return o.format=function(h){for(var g=[],t=1;t<arguments.length;t++)g[t-1]=arguments[t];return h.replace(/%s/g,function(e){return g.shift()})},o.containsAny=function(h,g){return g.some(function(t){return h.indexOf(t)>-1})},o}();d.StringUtilities=k}},x={};function X(O){var d=x[O];if(d!==void 0)return d.exports;var k=x[O]={exports:{}};return L[O](k,k.exports,X),k.exports}var D={};return(()=>{var O=D;Object.defineProperty(O,"__esModule",{value:!0}),O.toString=void 0;var d=X(728),k=X(336);d.ExpressionDescriptor.initialize(new k.enLocaleLoader),O.default=d.ExpressionDescriptor;var o=d.ExpressionDescriptor.toString;O.toString=o})(),D})())})(ve);var Fe=ve.exports;const Ge=Oe(Fe),Ze=["title"],Je={"flex-none":"","text-left":""},Qe={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Ke={class:"truncate"},et={"text-xs":"",op50:""},tt={key:0},nt=["onClick"],rt=ee({__name:"CronCollection",props:{collection:{}},setup(q){const R=q,L=re(),x=H(!0),X=U(()=>Ge.toString(R.collection.cron));return(D,O)=>{const d=oe,k=pe;return _(),$("div",null,[v("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:l(X),onClick:O[0]||(O[0]=o=>x.value=!l(x))},[v("div",Je,[T(d,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":l(x)?90:0,transition:""},null,8,["transform-rotate"])]),v("span",Qe,[T(k,{class:"font-mono n-primary",textContent:N(D.collection.cron)},null,8,["textContent"]),v("span",Ke,N(l(X)),1),v("span",et,"("+N(D.collection.tasks.length)+")",1)])],8,Ze),O[2]||(O[2]=v("div",{"x-divider":""},null,-1)),l(x)?(_(),$("ul",tt,[(_(!0),$(B,null,Z(D.collection.tasks,o=>(_(),$("li",{key:o},[v("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":l(L)===o}]),onClick:h=>L.value=o},N(o),11,nt),O[1]||(O[1]=v("div",{"x-divider":""},null,-1))]))),128))])):j("",!0)])}}}),ot={"h-full":"","w-full":"",flex:"~ col"},at={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},it={flex:"~ gap2 items-center"},st={relative:"","w-full":""},ut={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},lt={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},ct={class:"hidden md:block"},ft={flex:"~ gap2","mb--2":"","items-center":"",op50:""},pt={key:0,border:"b base",relative:"","n-code-block":""},dt={flex:"~ wrap","w-full":""},ht=["onClick"],vt={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},mt={key:1,"text-xs":"",op50:""},yt=ee({__name:"ServerTaskDetails",props:{task:{}},emits:["open-default-input"],setup(q,{emit:R}){const L=q,x=R,X=H({payload:{}}),{inputDefaults:D}=ue("serverRoutes"),[O,d]=Te(),k=xe(),o=Se(),h=se({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),g=U(()=>JSON.stringify(h.data,null,2)),t=U(()=>h.contentType.includes("application/json")?"json":"text"),e=H(!1),a=H(!1),r=we(),n=H(),s=["json"],i=H(s[0]),u=se({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),m=U({get:()=>u[n.value],set:b=>{u[n.value]=b}}),f=U(()=>({...E(D.value.query),...E(u.query)})),y=U(()=>({...E(D.value.headers)})),p=U(()=>Object.keys(X.value?.payload??{}).length?{...X.value}:void 0),C=U(()=>p.value?"POST":"GET"),S=U(()=>{let b=window?.location.origin;return b.charAt(b.length-1)==="/"&&(b=b.slice(0,-1)),b}),W=U(()=>{let b=new URLSearchParams(f.value).toString();b&&(b=`?${b}`);const c=`/_nitro/tasks/${L.task.name}${b}`;let M=o.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+c}),V=U(()=>S.value+W.value);function E(b){const c=Object.fromEntries(b.filter(({active:M,key:Y,value:J})=>M&&Y&&J!==void 0).map(({key:M,value:Y})=>[M,Y]));return Object.entries(c).length?c:void 0}async function z(){a.value=!0,e.value=!0;const b=Date.now();$e("server-tasks:run",{method:C.value});try{h.data=await $fetch(V.value,{method:"POST",headers:y.value,query:f.value,body:p.value,onResponse({response:c}){h.contentType=(c.headers.get("content-type")||"").toString().toLowerCase().trim(),h.statusCode=c.status,h.error=void 0},onResponseError(c){h.error=c.response._data,h.data=c.response._data}})}catch{}e.value=!1,h.fetchTime=Date.now()-b}const te=U(()=>{const b=[];return b.push({name:"Query",slug:"query",length:u.query.length}),b.push({name:"Body",slug:"body",length:u.body.length}),b});Xe(()=>{if(i.value==="json"&&typeof X.value=="string")try{X.value=JSON.parse(X.value)}catch{}});const ae=De("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});Ee([u,n],()=>{const b=ae.value?.find(c=>c.task===L.task.name);if(b){n.value||(n.value=b.tab),b.tab!==n.value&&(b.tab=n.value);const{body:c,query:M,headers:Y}=b.inputs;Object.assign(u,{body:c,query:M,headers:Y})}else{const c={task:L.task.name,tab:"query",inputs:u};ae.value.push(c),n.value||(n.value=c.tab)}},{immediate:!0,deep:!0,debounce:500});const ye=Me();return(b,c)=>{const M=ce,Y=Ue,J=oe,ie=de,ge=fe,_e=Re,ne=pe,be=ze,Q=le("tooltip");return _(),$("div",ot,[v("div",at,[v("div",it,[G((_(),$("div",null,[T(M,{class:F(["n-badge-base n-sm",("getRequestMethodClass"in b?b.getRequestMethodClass:l(Ce))(l(C))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:I(()=>[P(N(l(C)),1)]),_:1},8,["class"])])),[[Q,`Method is ${l(C)} as ${l(C)==="GET"?"no":""} json body is sent`]]),v("div",st,[T(Y,{"model-value":l(W),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),v("div",ut,[G(T(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:c[0]||(c[0]=w=>l(ye)(l(V),"server-task-url"))},null,512),[[Q,"Copy URL"]]),G(T(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:c[1]||(c[1]=w=>l(r)(b.task.handler))},null,512),[[Q,"Open in Editor"]])])]),T(M,{"h-full":"",n:"primary solid",onClick:z},{default:I(()=>[T(J,{icon:"carbon:send"})]),_:1})])]),v("div",lt,[(_(!0),$(B,null,Z(l(te),w=>G((_(),A(M,{key:w.slug,class:F(l(n)===w.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:ke=>n.value=w.slug},{default:I(()=>[T(J,{icon:("ServerRouteTabIcons"in b?b.ServerRouteTabIcons:l(he))[w.slug]},null,8,["icon"]),v("div",ct,[P(N(w.name)+" "+N(w?.length?`(${w.length})`:"")+" ",1),v("span",null,N(l(D)[w.slug]?.length?`(${l(D)[w.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[Q,w.name]])),128))]),T(l(O),null,{default:I(()=>[T(ie,{modelValue:l(m),"onUpdate:modelValue":c[4]||(c[4]=w=>K(m)?m.value=w:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:I(()=>[l(D)[l(n)]?.length?(_(),$(B,{key:0},[v("div",ft,[c[6]||(c[6]=v("div",{"w-5":"","x-divider":""},null,-1)),c[7]||(c[7]=v("div",{"flex-none":""}," Default Inputs ",-1)),T(M,{icon:"i-carbon-edit",border:!1,onClick:c[2]||(c[2]=w=>x("open-default-input"))}),c[8]||(c[8]=v("div",{"x-divider":""},null,-1))]),T(ie,{modelValue:l(D)[l(n)],"onUpdate:modelValue":c[3]||(c[3]=w=>l(D)[l(n)]=w),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),l(m)?(_(),$("div",pt,[l(n)==="body"?(_(),$(B,{key:0},[v("div",dt,[(_(),$(B,null,Z(s,w=>v("button",{key:w,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":w!==l(i)}),onClick:ke=>i.value=w},[v("div",{class:F({op30:w!==l(i)}),"font-mono":""},N(w),3)],10,ht)),64)),c[9]||(c[9]=v("div",{border:"b base","flex-auto":""},null,-1))]),l(i)==="input"?(_(),A(l(d),{key:0})):l(i)==="json"?(_(),A(l(qe),Ie({key:1,modelValue:l(X),"onUpdate:modelValue":c[5]||(c[5]=w=>K(X)?X.value=w:null),class:[l(k)==="dark"?"jse-theme-dark":"light","json-editor-vue of-auto text-sm outline-none"]},b.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(_(),A(l(d),{key:1}))])):j("",!0),l(a)?l(e)?(_(),A(_e,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:I(()=>c[11]||(c[11]=[P(" Running... ")])),_:1})):(_(),$(B,{key:3},[v("div",vt,[c[13]||(c[13]=v("div",null,"Result",-1)),l(h).error?(_(),A(ne,{key:0,n:"red"},{default:I(()=>c[12]||(c[12]=[P(" Error ")])),_:1})):j("",!0),T(ne,{n:l(h).error?"orange":"green",textContent:N(l(h).statusCode)},null,8,["n","textContent"]),l(h).contentType?(_(),$("code",mt,N(l(h).contentType),1)):j("",!0),c[14]||(c[14]=v("div",{"flex-auto":""},null,-1)),c[15]||(c[15]=v("div",{op50:""}," Tasks finished in ",-1)),T(ne,{n:"green"},{default:I(()=>[P(N(l(h).fetchTime)+" ms ",1)]),_:1})]),T(be,{"flex-auto":"","overflow-auto":"","py-2":"",code:l(g),lang:l(t)},null,8,["code","lang"])],64)):(_(),A(ge,{key:1},{default:I(()=>[T(M,{n:"primary",onClick:z},{default:I(()=>[T(J,{icon:"carbon:send"}),c[10]||(c[10]=P(" Run task "))]),_:1})]),_:1}))])}}}),gt={"flex-none":"","text-left":""},_t={flex:"","items-center":"","text-sm":"","font-mono":""},me=ee({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(q){const R=H(!0),L=re();return(x,X)=>{const D=oe,O=me;return _(),$("div",null,[v("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":l(L)===x.item.name}]),style:Le({paddingLeft:`calc(0.5rem + ${x.index*1.5}em)`}),onClick:X[0]||(X[0]=d=>{R.value=!l(R),L.value=x.item.name})},[v("div",gt,[x.item.type==="collection"?(_(),A(D,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":l(R)?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),v("span",_t,[x.item.type==="collection"?(_(),A(D,{key:0,title:`${x.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(_(),A(D,{key:1,icon:"carbon:play",ml3:"",mr1:""})),P(" "+N(x.item.name),1)])],6),X[1]||(X[1]=v("div",{"x-divider":""},null,-1)),l(R)?Ne(x.$slots,"default",{key:0},()=>[(_(!0),$(B,null,Z(x.item.tasks,d=>(_(),A(O,{key:d.name,item:d,index:x.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),bt={flex:"~ gap1","text-sm":""},kt={key:0,op50:""},Ot={op50:""},Nt=ee({__name:"server-tasks",setup(q){const R=H(!1),L=Ae(),x=U(()=>Object.keys(L.value?.tasks??{}).map(r=>({name:r,...L.value.tasks[r],type:"task"}))),X=U(()=>Object.entries(L.value?.scheduledTasks??{}).map(([r,n])=>({cron:r,tasks:n}))),D=re(),{view:O,selectedTask:d,inputDefaults:k}=ue("serverTasks"),o=U(()=>{!D.value&&d.value&&(D.value=d.value.name);const r=x.value.find(n=>n.name===D.value);return D.value!==d.value?.name&&r&&(d.value=r),r}),h=H(""),g=U(()=>new Ve(x.value,{keys:["key","description"],shouldSort:!0})),t=U(()=>h.value?g.value.search(h.value).map(n=>n.item):x.value),e=U(()=>{const r=[],n=(i,u)=>{i.tasks||=[],i.tasks.push(u)},s=(i,u)=>{const m=u?u.tasks?.find(y=>y.name===i):r.find(y=>y.name===i);if(m)return{...m,type:"collection"};const f={name:i,handler:i,description:"",type:"collection",tasks:[]};return u?n(u,f):r.push(f),f};return t.value.forEach(i=>{let u;const m={...i,type:"task"},y=i.name.split(":").concat();y.length>0&&y[y.length-1].includes(".")&&y.pop(),y.forEach(p=>{u=s(p,u)}),u?n(u,m):r.push(m)}),r});function a(){O.value=O.value==="tree"?"list":"tree"}return(r,n)=>{const s=ce,i=He,u=rt,m=je,f=yt,y=We,p=fe,C=de,S=Ye,W=Pe,V=le("tooltip");return _(),$(B,null,[T(m,{"storage-key":"tab-server-tasks"},{left:I(()=>[T(m,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:I(()=>[T(i,{search:l(h),"onUpdate:search":n[1]||(n[1]=E=>K(h)?h.value=E:null),pb2:""},{actions:I(()=>[G(T(s,{"text-lg":"",icon:l(O)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(T(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:n[0]||(n[0]=E=>R.value=!l(R))},null,512),[[V,"Default Inputs"]])]),default:I(()=>[v("div",bt,[l(h)?(_(),$("span",kt,N(l(t).length)+" matched · ",1)):j("",!0),v("span",Ot,N(l(x)?.length)+" tasks in total",1)])]),_:1},8,["search"]),(_(!0),$(B,null,Z(l(O)==="tree"?l(e):l(t),E=>(_(),A(me,{key:E.name,item:E},null,8,["item"]))),128))]),right:I(()=>[n[6]||(n[6]=v("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1)),v("div",null,[v("ul",null,[(_(!0),$(B,null,Z(l(X),E=>(_(),$("li",{key:E.cron},[T(u,{collection:E},null,8,["collection"])]))),128))])])]),_:1})]),right:I(()=>[(_(),A(Be,{max:10},[l(o)?(_(),A(f,{key:l(o).name,task:l(o),onOpenDefaultInput:n[2]||(n[2]=E=>R.value=!0)},null,8,["task"])):j("",!0)],1024)),l(o)?j("",!0):(_(),A(p,{key:0},{default:I(()=>[T(y,{px6:"",py2:""},{default:I(()=>n[7]||(n[7]=[v("span",{op75:""},"Select a task to start",-1)])),_:1})]),_:1}))]),_:1}),T(W,{modelValue:l(R),"onUpdate:modelValue":n[4]||(n[4]=E=>K(R)?R.value=E:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:n[5]||(n[5]=E=>R.value=!1)},{default:I(()=>[v("div",null,[n[8]||(n[8]=v("div",{p4:"",border:"b base"},[v("span",{"text-lg":""},"Default Inputs"),v("br"),v("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1)),T(S,{text:`Query ${l(k).query.length?`(${l(k).query.length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in r?r.ServerRouteTabIcons:l(he)).query},{default:I(()=>[T(C,{modelValue:l(k).query,"onUpdate:modelValue":n[3]||(n[3]=E=>l(k).query=E),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{Nt as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
const n=Object.freeze({displayName:"JSON",name:"json",patterns:[{include:"#value"}],repository:{array:{begin:"\\[",beginCaptures:{0:{name:"punctuation.definition.array.begin.json"}},end:"\\]",endCaptures:{0:{name:"punctuation.definition.array.end.json"}},name:"meta.structure.array.json",patterns:[{include:"#value"},{match:",",name:"punctuation.separator.array.json"},{match:"[^\\s\\]]",name:"invalid.illegal.expected-array-separator.json"}]},comments:{patterns:[{begin:"/\\*\\*(?!/)",captures:{0:{name:"punctuation.definition.comment.json"}},end:"\\*/",name:"comment.block.documentation.json"},{begin:"/\\*",captures:{0:{name:"punctuation.definition.comment.json"}},end:"\\*/",name:"comment.block.json"},{captures:{1:{name:"punctuation.definition.comment.json"}},match:"(//).*$\\n?",name:"comment.line.double-slash.js"}]},constant:{match:"\\b(?:true|false|null)\\b",name:"constant.language.json"},number:{match:"-?(?:0|[1-9]\\d*)(?:(?:\\.\\d+)?(?:[eE][+-]?\\d+)?)?",name:"constant.numeric.json"},object:{begin:"\\{",beginCaptures:{0:{name:"punctuation.definition.dictionary.begin.json"}},end:"\\}",endCaptures:{0:{name:"punctuation.definition.dictionary.end.json"}},name:"meta.structure.dictionary.json",patterns:[{comment:"the JSON object key",include:"#objectkey"},{include:"#comments"},{begin:":",beginCaptures:{0:{name:"punctuation.separator.dictionary.key-value.json"}},end:"(,)|(?=\\})",endCaptures:{1:{name:"punctuation.separator.dictionary.pair.json"}},name:"meta.structure.dictionary.value.json",patterns:[{comment:"the JSON object value",include:"#value"},{match:"[^\\s,]",name:"invalid.illegal.expected-dictionary-separator.json"}]},{match:"[^\\s}]",name:"invalid.illegal.expected-dictionary-separator.json"}]},objectkey:{begin:'"',beginCaptures:{0:{name:"punctuation.support.type.property-name.begin.json"}},end:'"',endCaptures:{0:{name:"punctuation.support.type.property-name.end.json"}},name:"string.json support.type.property-name.json",patterns:[{include:"#stringcontent"}]},string:{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.json"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.json"}},name:"string.quoted.double.json",patterns:[{include:"#stringcontent"}]},stringcontent:{patterns:[{match:'\\\\(?:["\\\\/bfnrt]|u[0-9a-fA-F]{4})',name:"constant.character.escape.json"},{match:"\\\\.",name:"invalid.illegal.unrecognized-string-escape.json"}]},value:{patterns:[{include:"#constant"},{include:"#number"},{include:"#string"},{include:"#array"},{include:"#object"},{include:"#comments"}]}},scopeName:"source.json"});var e=[n];export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as x}from"./C6_7eaNf.js";import{_ as y}from"./C6_B1_1h.js";import{o as l,m as p,k as i,v as _,d as C,ak as b,c6 as k,a as u,f as t,i as e,j as s,p as w,F as N}from"./Bysyzw-g.js";import{_ as R}from"./WFxqX3Wd.js";import"./CGCqTpKA.js";import"./B4nba3hY.js";import"./3LqotSTl.js";import"./CXTghDHT.js";const T={class:"markdown-body"},B={__name:"runtime-configs",setup(f,{expose:n}){return n({frontmatter:{}}),(d,o)=>(l(),p("div",T,o[0]||(o[0]=[i("h1",null,"Runtime Configs",-1),i("p",null,"Nuxt provides a runtime config API to expose configuration within your application and server routes, with the ability to update it at runtime by setting environment variables.",-1),i("p",null,[_("In Nuxt DevTools, the editor allows you to edit the runtime config temporarily to see how the changes affect your application. To update them, you might want to update your "),i("code",null,"nuxt.config.js"),_(" file, or check more details in the documentation.")],-1),i("p",null,[i("a",{href:"https://nuxt.com/docs/guide/going-further/runtime-config",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},V=B,$={key:0},L=C({__name:"runtime-configs",setup(f){const n=b(),m=k(),d=u(()=>n.value?.nuxt.payload),o=u(()=>n.value?.revision.value),g=u(()=>{const a={...m.value};return delete a.public,delete a.app,a});return(a,D)=>{const r=x,c=y,v=V,h=R;return l(),p(N,null,[t(n)?(l(),p("div",$,[e(c,{icon:"carbon-settings-services",text:"App Config",padding:!1},{default:s(()=>[e(r,{state:t(n).app.appConfig,revision:t(o)},null,8,["state","revision"])]),_:1}),e(c,{icon:"carbon-settings",text:"Public Runtime Config",padding:!1},{default:s(()=>[e(r,{state:t(d).config?.public,revision:t(o)},null,8,["state","revision"])]),_:1}),e(c,{icon:"i-carbon-code-signing-service",text:"Private Runtime Config",open:!1,padding:!1,description:"These values are not exposed to the client. Readonly in the DevTools."},{default:s(()=>[e(r,{state:t(g),revision:t(o),readonly:""},null,8,["state","revision"])]),_:1})])):w("",!0),e(h,null,{default:s(()=>[e(v)]),_:1})],64)}}});export{L as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as r,a8 as n}from"./Bysyzw-g.js";const t={};function o(e,s){return n(e.$slots,"default")}const c=r(t,[["render",o]]);export{c as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as Z}from"./CQTsRCSt.js";import{d as P,a as I,aa as Q,o as n,h as w,j as r,k as t,a8 as A,f as o,v as b,t as h,m,D as O,p as y,i as a,F as j,n as D,x as S,a4 as R,ar as Y,P as G,aO as tt,J as q,K as V,S as et,aP as H,aQ as J,_ as z,r as T,af as ot,l as nt,a9 as st,W as lt,X as at,Q as it,aR as E}from"./Bysyzw-g.js";import{_ as rt,u as K,a as dt}from"./HT-8HE-a.js";import{_ as ut}from"./C6_B1_1h.js";import{_ as pt}from"./CXTghDHT.js";import{_ as W}from"./CtUB4FID.js";import{_ as mt}from"./Ci0JrwP0.js";import{_ as ct}from"./CpQX28Pm.js";import{s as _t}from"./DPGeaLSc.js";import{_ as ft}from"./CdlRa3-_.js";import{_ as gt}from"./DxQMSSvi.js";import{_ as xt}from"./DByNSuIM.js";import{_ as vt}from"./WFxqX3Wd.js";import"./ZTJOnUjs.js";import"./DK4YETzW.js";const bt={flex:"~ col gap2","flex-auto":"","of-hidden":"",px1:""},kt={"gap-1t":"",flex:"","items-center":"","text-ellipsis":"","ws-nowrap":"","text-lg":""},ht={key:2},yt={key:1,flex:"~ gap-2",title:"Documentation"},$t={key:2,flex:"~ gap-2"},wt={key:0,flex:"~ gap-4 items-center"},Ct={flex:"~ gap-1 items-center",op50:""},It={flex:"~ gap-1 items-center",op50:""},Mt={flex:"~ col","items-end":""},Nt={key:0,"h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p4:""},Bt=["src","alt"],jt={key:1,flex:"~",mt2:"","flex-auto":"","items-end":"","justify-end":""},Pt=["src"],Dt={flex:"","justify-end":""},At="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",Tt="https://api.nuxtjs.org/api/ipx/s_44,f_webp/gh_avatar/",Ot="https://github.com/",zt="https://www.npmjs.com/package/",F=P({__name:"ModuleItemBase",props:{mod:{},info:{},compact:{type:Boolean},maintainers:{type:Boolean,default:!0}},setup(B){const _=B,i=I(()=>({..._.mod?.meta,..._.mod,..._.info})),k=Q();return(d,e)=>{const s=S,u=R,C=Y;return n(),w(C,{p4:"",flex:"~ gap2"},{default:r(()=>[t("div",bt,[A(d.$slots,"main",{},()=>[t("div",kt,[d.mod.isPackageModule?(n(),w(s,{key:0,to:zt+(o(i).npm||o(i).name),target:"_blank",hover:"underline text-primary"},{default:r(()=>[b(h(o(i).name),1)]),_:1},8,["to"])):d.mod.entryPath?(n(),m("button",{key:1,role:"button",hover:"underline text-primary",onClick:e[0]||(e[0]=x=>o(k)(d.mod.entryPath))},h(o(i).name),1)):(n(),m("span",ht,h(o(i).name),1)),A(d.$slots,"badge")]),o(i).description?(n(),m("div",{key:0,class:O(d.compact?"ws-nowrap of-hidden truncate":"line-clamp-2"),"mt--1":"","text-sm":"",op50:""},h(o(i).description),3)):y("",!0),e[3]||(e[3]=t("div",{"flex-auto":""},null,-1)),o(i).website?(n(),m("div",yt,[e[1]||(e[1]=t("span",{"i-carbon-link":"","text-lg":"",op50:""},null,-1)),a(s,{to:o(i).website,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[b(h(o(i).website.replace(/^https?:\/\//,"")),1)]),_:1},8,["to"])])):y("",!0),o(i).github?(n(),m("div",$t,[e[2]||(e[2]=t("span",{"i-carbon-logo-github":"","text-lg":"",op50:""},null,-1)),a(s,{to:o(i).github,target:"_blank","of-hidden":"",truncate:"","ws-nowrap":"","text-sm":"",op50:"",hover:"op100 underline text-primary"},{default:r(()=>[b(h(o(i).github.replace(/^https?:\/\/github.com\//,"")),1)]),_:1},8,["to"])])):y("",!0)]),A(d.$slots,"items"),o(i).stats?(n(),m("div",wt,[t("div",Ct,[a(u,{icon:"carbon-star","text-lg":""}),t("span",null,h(o(i).stats.stars),1)]),t("div",It,[a(u,{icon:"carbon-download","text-lg":""}),t("span",null,h(o(i).stats.downloads),1)])])):y("",!0)]),t("div",Mt,[o(i).icon||d.mod.isPackageModule?(n(),m("div",Nt,[o(i).icon?(n(),m("img",{key:0,src:At+o(i).icon,alt:d.mod.name,ma:""},null,8,Bt)):y("",!0),e[4]||(e[4]=t("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))])):y("",!0),o(i).maintainers?.length&&d.maintainers?(n(),m("div",jt,[(n(!0),m(j,null,D(o(i).maintainers,x=>(n(),w(s,{key:x.name,target:"_blank",to:Ot+x.github,title:x.name},{default:r(()=>[t("img",{src:Tt+x.github,"h-6":"","w-6":"","rounded-full":""},null,8,Pt)]),_:2},1032,["to","title"]))),128))])):y("",!0),d.$slots.actions?(n(),m(j,{key:2},[e[5]||(e[5]=t("div",{"flex-auto":""},null,-1)),t("div",Dt,[A(d.$slots,"actions")])],64)):y("",!0)])]),_:3})}}}),Lt={key:0,flex:"~ gap-2",title:"Open on filesystem"},St={key:1,"mx--2":""},Ft=["onClick"],Ut={key:2,"mx--2":""},qt=["onClick"],Vt={op50:""},Et={"text-green":""},Qt={key:3,flex:"~ gap-2","items-center":"",title:"NPM"},Rt={"text-sm":"",op50:""},Yt=P({__name:"ModuleItem",props:{mod:{}},setup(B){const _=B,i=I(()=>_.mod.info),k=I(()=>({..._.mod?.meta,..._.mod,...i.value})),d=G();return(e,s)=>{const u=Z,C=S,x=rt,v=F;return n(),w(v,{mod:e.mod,info:o(i)},{items:r(()=>[e.mod.entryPath?(n(),m("div",Lt,[s[0]||(s[0]=t("span",{"i-carbon-folder-move-to":"","text-lg":"",op50:""},null,-1)),a(u,{filepath:e.mod.entryPath,"text-sm":"",op50:"",hover:"text-primary op100"},null,8,["filepath"])])):y("",!0),o(k).npm?(n(),w(x,{key:o(k).npm,"package-name":o(k).npm,options:{dev:!0}},{default:r(({info:c,update:p,state:l,id:f,restart:$})=>[l==="running"?(n(),w(C,{key:0,flex:"~ gap-2","animate-pulse":"","items-center":"",to:f?"/modules/terminals":void 0,onClick:M=>f?d.value=f:void 0},{default:r(()=>s[1]||(s[1]=[t("span",{"i-carbon-circle-dash":"","animate-spin":"","text-lg":"",op50:""},null,-1),t("code",{"text-sm":"",op50:""},"Upgrading...",-1)])),_:2},1032,["to","onClick"])):l==="updated"?(n(),m("div",St,[t("button",{flex:"~ gap-2",hover:"bg-primary/20","items-center":"",rounded:"","bg-primary:10":"",px2:"","text-sm":"","text-primary":"",onClick:$},s[2]||(s[2]=[t("span",{"i-carbon-intent-request-active":"","text-lg":"","text-primary":""},null,-1),t("code",{"text-xs":""},"Update installed, click to restart",-1)]),8,Ft)])):c?.needsUpdate?(n(),m("div",Ut,[t("button",{flex:"~ gap-2",title:"Click to upgrade","items-center":"",rounded:"",px2:"","text-sm":"",hover:"bg-active",onClick:M=>p()},[s[3]||(s[3]=t("span",{"i-carbon-intent-request-upgrade":"","text-lg":"",op50:""},null,-1)),t("code",Vt,"v"+h(c.current),1),s[4]||(s[4]=t("div",{"i-carbon-arrow-right":"",op50:""},null,-1)),t("code",Et,"v"+h(c.latest),1)],8,qt)])):c?.latest?(n(),m("div",Qt,[s[5]||(s[5]=t("span",{"i-carbon-cube":"","text-lg":"",op50:""},null,-1)),t("code",Rt,"v"+h(c.current),1)])):y("",!0)]),_:1},8,["package-name"])):y("",!0)]),_:1},8,["mod","info"])}}}),Gt=P({__name:"ModuleItemInstall",props:{item:{}},emits:["start"],setup(B,{emit:_}){const i=B,k=_,d=K(),e=I(()=>d.value.find(v=>v.name===i.item.npm)),s=I(()=>e.value&&e.value.isPackageModule),u=I(()=>e.value&&e.value.isPackageModule&&e.value.isUninstallable);async function C(v,c){const p=c==="install"?q.installNuxtModule:q.uninstallNuxtModule,l=await p(await V(),v.npm,!0);et(`modules:${c}`,{moduleName:v.npm}),l.commands&&await H.start(v,l,c)&&(J.value.push({name:v.npm,info:v,processId:l.processId}),k("start"),await p(await V(),v.npm,!1))}const x={};return(v,c)=>{const p=ct,l=z,f=W,$=F;return n(),w($,{mod:x,role:o(s)?"":"button",info:v.item,mb2:"","h-full":"",class:O(o(s)?"border-dashed op75":"hover:bg-active!"),compact:!0,onClick:c[1]||(c[1]=M=>o(s)?null:C(v.item,"install"))},tt({_:2},[o(s)?{name:"badge",fn:r(()=>[a(p,{n:"green",textContent:"Installed"}),o(u)?(n(),w(f,{key:0,n:"sm green"},{trigger:r(({click:M})=>[a(l,{icon:"carbon-overflow-menu-vertical",border:!1,onClick:g=>M()},null,8,["onClick"])]),default:r(()=>[a(l,{icon:"carbon-trash-can",n:"red",onClick:c[0]||(c[0]=M=>C(v.item,"uninstall"))},{default:r(()=>c[2]||(c[2]=[b(" Uninstall ")])),_:1})]),_:1})):y("",!0)]),key:"0"}:void 0]),1032,["role","info","class"])}}}),Ht={"h-full":"",flex:"~ col gap-4"},Jt={flex:"~ items-center"},Kt={flex:"~ col","w-30":"","of-auto":""},Wt={flex:"~ justify-between","w-full":"","text-xs":"",capitalize:"",op75:""},Xt={"flex-auto":"","of-auto":"",flex:"~ col gap-2",pl6:"",pr4:""},Zt=P({__name:"ModuleInstallList",emits:["close"],setup(B,{emit:_}){const i=_,k=dt(),d=["downloads","stars","updated","created"],e=T(!1),s=T(d[0]),u={downloads:(p,l)=>p.stats.downloads-l.stats.downloads,stars:(p,l)=>p.stats.stars-l.stats.stars,created:(p,l)=>p.stats.createdAt-l.stats.createdAt,updated:(p,l)=>p.stats.publishedAt-l.stats.publishedAt},C=I(()=>k.value?.toSorted((p,l)=>u[s.value](p,l)*(e.value?1:-1))),x=T(""),v=I(()=>new ot(k.value||[],{keys:["name","description","npm","category"],sortFn:(p,l)=>{const f=k.value?.[p.idx],$=k.value?.[l.idx];return f&&$?u[s.value](f,$)*(e.value?1:-1):p.score-l.score},threshold:.2})),c=I(()=>x.value?v.value.search(x.value).map(p=>p.item):C.value);return(p,l)=>{const f=pt,$=z,M=R,g=W,U=mt,X=Gt;return n(),m("div",Ht,[a(f,{mx6:"",mt6:"","text-xl":"",op75:"",icon:"i-carbon-intent-request-create",text:"Install Module"}),a(U,{search:o(x),"onUpdate:search":l[1]||(l[1]=N=>nt(x)?x.value=N:null),"no-padding":"","px-6":"","pb-5":"","pt-2":""},{actions:r(()=>[a(g,{direction:"end",n:"sm primary"},{trigger:r(({click:N})=>[t("div",Jt,[a($,{icon:o(e)?"tabler:sort-ascending":"tabler:sort-descending","h-full":"","rounded-r-none":"",onClick:l[0]||(l[0]=L=>e.value=!o(e))},null,8,["icon"]),a($,{flex:"~ justify-between","min-w-30":"","border-l-0":"","rounded-l-none":"","px-2":"",capitalize:"",hover:"border-l-1",onClick:L=>N()},{default:r(()=>[b(h(o(s))+" ",1),a(M,{icon:"carbon:chevron-down"})]),_:2},1032,["onClick"])])]),default:r(()=>[t("div",Kt,[(n(),m(j,null,D(d,N=>a($,{key:N,border:!1,p2:"",hover:"n-checkbox-hover text-green",onClick:L=>s.value=N},{default:r(()=>[t("span",Wt,[b(h(N)+" ",1),o(s)===N?(n(),w(M,{key:0,icon:"carbon:checkmark"})):y("",!0)])]),_:2},1032,["onClick"])),64))])]),_:1})]),_:1},8,["search"]),t("div",Xt,[a(o(_t),{class:"scroller",items:o(c),"item-size":200,"key-field":"name"},{default:r(({item:N})=>[a(X,{item:N,onStart:l[2]||(l[2]=L=>i("close"))},null,8,["item"])]),_:1},8,["items"])])])}}}),te={flex:"~ col gap-2","w-150":"",p4:"",border:"t base"},ee={capitalize:""},oe={op50:""},ne={flex:"~ gap-3",mt2:"","justify-end":""},se=P({__name:"ModuleActionDialog",setup(B){const _=st(),i=Q(),k={};return(d,e)=>{const s=F,u=ft,C=gt,x=xt,v=lt,c=z,p=at;return n(),w(o(H),null,{default:r(({resolve:l,args:f})=>[a(p,{"model-value":!0,onClose:$=>l(!1)},{default:r(()=>[a(s,{mod:k,info:f[0],border:"none","w-150":"","n-panel-grids":""},null,8,["info"]),t("div",te,[t("h2",{"text-xl":"",class:O(f[2]==="install"?"text-primary":"text-red")},[t("span",ee,h(f[2]),1),e[1]||(e[1]=b()),t("code",null,h(f[0].name),1),e[2]||(e[2]=b("? "))],2),e[7]||(e[7]=t("p",{op50:""}," The following command will be executed in your terminal: ",-1)),a(u,{code:f[1].commands.join(" "),lang:"bash",px4:"",py2:"",border:"~ base rounded",lines:!1},null,8,["code"]),t("p",oe,[e[3]||(e[3]=b(" Then your ")),a(C,{role:"button",n:"primary",underline:"",onClick:e[0]||(e[0]=$=>o(i)(o(_)?._nuxtConfigFile)),textContent:"Nuxt config"}),e[4]||(e[4]=b(" will be updated as: "))]),a(x,{from:f[1].configOriginal,to:f[1].configGenerated,"max-h-80":"","of-auto":"",py2:"",border:"~ base rounded",lang:"ts"},null,8,["from","to"]),e[8]||(e[8]=t("p",null,[t("span",{op50:""},"After that, Nuxt will "),t("span",{"text-orange":""},"restart automatically"),b(". ")],-1)),t("div",ne,[a(v,{n:"sm amber","flex-auto":"",icon:"i-carbon-data-backup"},{default:r(()=>e[5]||(e[5]=[b(" Please make sure to backup your project first. ")])),_:1}),a(c,{onClick:$=>l(!1)},{default:r(()=>e[6]||(e[6]=[b(" Cancel ")])),_:2},1032,["onClick"]),a(c,{n:"solid",capitalize:"",class:O(f[2]==="install"?"n-primary":"n-red"),onClick:$=>l(!0)},{default:r(()=>[b(h(f[2]),1)]),_:2},1032,["class","onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}}),le={class:"markdown-body"},ae={__name:"modules",setup(B,{expose:_}){return _({frontmatter:{}}),(k,d)=>(n(),m("div",le,d[0]||(d[0]=[t("h1",null,"Modules",-1),t("p",null,[b("Nuxt provides a module system to extend the framework core and simplify integrations. You don’t need to develop everything from scratch or maintain boilerplate if there is already a Nuxt module for it. Adding Nuxt modules is possible using "),t("code",null,"nuxt.config"),b(".")],-1),t("p",null,[b("You can explore the list of modules on "),t("a",{href:"https://nuxt.com/modules",target:"_blank",rel:"noopener"},"nuxt.com/modules"),b(" or install them directly inside the DevTools.")],-1),t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/concepts/modules",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1)])))}},ie=ae,re={"h-full":"","w-full":"","of-auto":""},de={relative:"","h-20":"","w-20":"",flex:"","flex-none":"",rounded:"","bg-gray:3":"",p3:""},ue=["src","alt"],pe={"text-lg":"","group-hover":"text-primary",transition:"",flex:"~ gap-2 items-center"},me={op75:""},ce={key:0,border:"l base",pos:"fixed bottom-0 right-0 top-0","z-200":"","w-150":"","bg-base":""},_e="https://api.nuxtjs.org/api/ipx/s_80,f_webp/gh/nuxt/modules/main/icons/",je=P({__name:"modules",setup(B){const _=T(!1),i=K(),k=G(),d=I(()=>i.value.filter(s=>s.isPackageModule)),e=I(()=>i.value.filter(s=>!s.isPackageModule));return it(()=>[{id:"action:modules:install",title:"Install a new module",icon:"i-carbon-intent-request-create ",action:()=>{_.value=!0}}]),(s,u)=>{const C=Yt,x=Y,v=S,c=ut,p=z,l=Zt,f=se,$=ie,M=vt;return n(),m(j,null,[t("div",re,[a(c,{icon:"carbon-3d-mpr-toggle",text:"Installed Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${o(d).length}`},{default:r(()=>[(n(!0),m(j,null,D(o(d),g=>(n(),w(C,{key:g.name,mod:g},null,8,["mod"]))),128)),(n(!0),m(j,null,D("processInstallingModules"in s?s.processInstallingModules:o(J),g=>(n(),w(v,{key:g.processId,block:"","min-h-30":"",to:"/modules/terminals",onClick:U=>k.value=g.processId},{default:r(()=>[a(x,{border:"1.5 dashed","h-full":"","animate-pulse":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-1 items-center justify-center",role:"button",class:"group"},{default:r(()=>[t("div",de,[t("img",{src:_e+g.info.icon,alt:g.info.name,ma:""},null,8,ue),u[4]||(u[4]=t("div",{"i-carbon-cube":"",ma:"","text-4xl":"",op30:""},null,-1))]),t("div",pe,[u[5]||(u[5]=t("div",{"i-carbon-circle-dash":"","animate-spin":"","text-xl":"",op75:""},null,-1)),t("span",me,"Installing "+h(g.name)+"...",1)])]),_:2},1024)]),_:2},1032,["onClick"]))),128)),a(x,{border:"1.5 dashed","min-h-30":"",p4:"",transition:"",hover:"border-primary",flex:"~ col gap-2 items-center justify-center",role:"button",class:"group",onClick:u[0]||(u[0]=g=>_.value=!0)},{default:r(()=>u[6]||(u[6]=[t("div",{"i-carbon-intent-request-create":"","text-4xl":"",op40:"","group-hover":"op75 text-primary",transition:""},null,-1),t("div",{"text-lg":"",op40:"","group-hover":"op75 text-primary",transition:""}," Install New Module ",-1)])),_:1})]),_:1},8,["description"]),o(e).length?(n(),w(c,{key:0,icon:"carbon-3d-mpr-toggle",text:"User Modules","container-class":"grid grid-cols-minmax-400px gap3 px4",padding:!1,description:`Total modules: ${o(e).length}`},{default:r(()=>[(n(!0),m(j,null,D(o(e),g=>(n(),m(j,{key:g.meta?.name||g.entryPath},[g.meta?.name||g.entryPath?(n(),w(C,{key:0,mod:g},null,8,["mod"])):y("",!0)],64))),128))]),_:1},8,["description"])):y("",!0),a(E,{name:"fade-in"},{default:r(()=>[o(_)?(n(),m("div",{key:0,class:"fixed bottom-0 left-0 right-0 top-0 z-100","bg-black:20":"","backdrop-blur-2":"",onClick:u[1]||(u[1]=g=>_.value=!1)})):y("",!0)]),_:1}),a(E,{name:"slide-in"},{default:r(()=>[o(_)?(n(),m("div",ce,[a(p,{icon:"carbon-close",pos:"absolute top-3 right-3 z-10","rounded-full":"","text-xl":"",border:!1,onClick:u[2]||(u[2]=g=>_.value=!1)}),a(l,{onClose:u[3]||(u[3]=g=>_.value=!1)})])):y("",!0)]),_:1}),a(f)]),a(M,null,{default:r(()=>[a($)]),_:1})],64)}}});export{je as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as O,am as oe,cj as ae,N as se,r as M,O as T,ck as E,aC as re,w as le,aB as ue,Z as ie,a as de,J as v,K as k,f as n,o as r,h as f,j as u,k as l,i as m,l as U,m as i,F as w,n as A,t as b,D as F,ac as B,v as d,p as z,aw as me,G as pe,bd as fe,ad as ce,cl as G,_ as ve,V as ye,a4 as _e,ar as ge,y as ke,R as be,aI as xe}from"./Bysyzw-g.js";import{_ as we}from"./DFUDf3T0.js";import{_ as Ce}from"./DxQMSSvi.js";import{_ as Ke}from"./CQTsRCSt.js";import{s as Se}from"./B4nba3hY.js";import"./3LqotSTl.js";const Ve={class:"h-[48px] flex items-center justify-between gap1 px-3"},Ne={class:"w-full text-sm"},$e=["value"],Ie=["onClick"],he={key:0,"h-full":"","of-hidden":"",flex:"~ col"},je={border:"b base",class:"h-[49px] flex flex-none items-center justify-between px-4 text-sm"},De={class:"flex items-center gap-4"},Me={key:1},Ue=["onKeyup"],Ae={key:0,op50:""},Be={key:1},Le={"font-bold":""},qe={"text-sm":""},Pe=O({__name:"StorageDetails",async setup(J){let p,g;const C=oe(),K=ae(),S=se(),x=M(""),y=M(""),s=T("storage:current",""),t=M(),_=T("storage:file:state",""),{data:V}=([p,g]=E(()=>G("storageMounts",()=>v.getStorageMounts())),p=await p,g(),p),{data:N,refresh:L}=([p,g]=E(async()=>G("storageKeys",async()=>s.value?await v.getStorageKeys(s.value):[])),p=await p,g(),p),W=K.hook("storage:key:update",async(o,e)=>{if(!(!s.value||o.split(":")[0]!==s.value)&&(await L(),_.value===o)){if(e==="remove")return S.replace({query:{storage:s.value}});await I(_.value)}});re(W),le(s,()=>{L(),_.value=""}),ue(async()=>{if(!_.value){t.value=null;return}I(_.value)}),ie("keydown",o=>{o.key==="s"&&(o.ctrlKey||o.metaKey)&&(h(),o.preventDefault())});function $(o){return o.replace(`${s.value}:`,"")}const Z=de(()=>N.value?N.value.filter(o=>o.includes(x.value)):[]);async function I(o){const e=await v.getStorageItem(await k(),o);t.value={key:o,updatedKey:$(o),editingKey:!1,content:e,updatedContent:e}}async function H(){if(!y.value||!s.value)return;const o=`${s.value}:${y.value}`;N.value?.includes(o)||await v.setStorageItem(await k(),o,""),S.replace({query:{storage:s.value,key:o}}),y.value=""}async function h(){t.value&&(await v.setStorageItem(await k(),t.value.key,t.value.updatedContent),await I(t.value.key))}async function Q(){!t.value||!s.value||(await v.removeStorageItem(await k(),t.value.key),t.value=null)}async function X(){if(!t.value||!s.value)return;const o=`${s.value}:${t.value.updatedKey}`,e=await k();await v.setStorageItem(e,o,t.value.updatedContent),await v.removeStorageItem(e,t.value.key),S.replace({query:{storage:s.value,key:o}})}return(o,e)=>{const j=ve,Y=we,D=ye,ee=_e,q=Ce,P=ge,R=ke,te=be,ne=Ke;return n(s)?(r(),f(te,{key:0,"storage-key":"tab-storage"},{left:u(()=>[l("div",Ve,[m(j,{icon:"carbon-chevron-left","ml--1":"",border:!1,onClick:e[0]||(e[0]=a=>s.value="")}),l("div",Ne,[m(Y,{modelValue:n(s),"onUpdate:modelValue":e[1]||(e[1]=a=>U(s)?s.value=a:null),n:"primary",icon:"carbon-data-base"},{default:u(()=>[(r(!0),i(w,null,A(n(V),(a,c)=>(r(),i("option",{key:c,value:c},b(c),9,$e))),128))]),_:1},8,["modelValue"])])]),m(D,{modelValue:n(x),"onUpdate:modelValue":e[2]||(e[2]=a=>U(x)?x.value=a:null),icon:"carbon-search",placeholder:"Search...",n:"primary sm",border:"y x-none base! rounded-0",class:"w-full py2 ring-0!"},null,8,["modelValue"]),(r(!0),i(w,null,A(n(Z),a=>(r(),i(w,{key:a},[l("button",{block:"","w-full":"",truncate:"",px2:"",py1:"","text-start":"","text-sm":"","font-mono":"",class:F(a===n(t)?.key?"text-primary n-bg-active":"text-secondary hover:n-bg-hover"),onClick:c=>_.value=a},b($(a)),11,Ie),e[8]||(e[8]=l("div",{"x-divider":""},null,-1))],64))),128)),m(D,{modelValue:n(y),"onUpdate:modelValue":e[3]||(e[3]=a=>U(y)?y.value=a:null),icon:"carbon-add",placeholder:"key",n:"sm",border:"t-none x-none base! rounded-0",class:"w-full py2 font-mono ring-0!",onKeyup:B(H,["enter"])},null,8,["modelValue"])]),right:u(()=>[n(t)?.key?(r(),i("div",he,[l("div",je,[l("div",De,[n(t).editingKey?(r(),f(D,{key:0,modelValue:n(t).updatedKey,"onUpdate:modelValue":e[4]||(e[4]=a=>n(t).updatedKey=a),onKeyup:B(X,["enter"])},null,8,["modelValue"])):(r(),i("code",Me,[d(b($(n(t).key))+" ",1),m(ee,{icon:"carbon-edit",class:"cursor-pointer op50 hover:op100",onClick:e[5]||(e[5]=a=>n(t).editingKey=!0)})])),n(t).editingKey?z("",!0):(r(),f(j,{key:2,n:"green xs",disabled:n(t).content===n(t).updatedContent,class:F({"border-green":n(t).content!==n(t).updatedContent}),onClick:h},{default:u(()=>e[9]||(e[9]=[d(" Save ")])),_:1},8,["disabled","class"]))]),l("div",null,[m(j,{n:"red xs",onClick:Q},{default:u(()=>e[10]||(e[10]=[d(" Delete ")])),_:1})])]),typeof n(t).content=="object"?(r(),f(n(Se),me({key:0,modelValue:n(t).updatedContent,"onUpdate:modelValue":e[6]||(e[6]=a=>n(t).updatedContent=a),class:[[n(C)==="dark"?"jse-theme-dark":"light"],"json-editor-vue h-full of-auto text-sm outline-none"]},o.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):pe((r(),i("textarea",{key:1,"onUpdate:modelValue":e[7]||(e[7]=a=>n(t).updatedContent=a),placeholder:"Item value...",class:"h-full of-auto p-4 text-sm font-mono outline-none",onKeyup:B(fe(h,["ctrl"]),["enter"])},null,40,Ue)),[[ce,n(t).updatedContent]])])):(r(),f(R,{key:1},{default:u(()=>[m(P,{px6:"",py4:""},{default:u(()=>[e[12]||(e[12]=d(" Select one key to start.")),e[13]||(e[13]=l("br",null,null,-1)),e[14]||(e[14]=d("Learn more about ")),m(q,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>e[11]||(e[11]=[d(" Nitro storage ")])),_:1})]),_:1})]),_:1}))]),_:1})):(r(),f(R,{key:1},{default:u(()=>[Object.keys(n(V)).length?(r(),i("p",Ae," Select one storage to start: ")):(r(),i("p",Be,[e[16]||(e[16]=d(" No custom storage defined in ")),e[17]||(e[17]=l("code",null,"nitro.storage",-1)),e[18]||(e[18]=d(".")),e[19]||(e[19]=l("br",null,null,-1)),e[20]||(e[20]=d(" Learn more about ")),m(q,{href:"https://nitro.unjs.io/guide/storage",n:"orange",target:"_blank"},{default:u(()=>e[15]||(e[15]=[d(" Nitro storage ")])),_:1})])),(r(!0),i(w,null,A(n(V),(a,c)=>(r(),f(P,{key:c,"min-w-80":"","cursor-pointer":"","p-4":"","text-left":"",hover:"border-green",onClick:Re=>s.value=c},{default:u(()=>[l("span",Le,b(c),1),e[21]||(e[21]=l("br",null,null,-1)),l("span",qe,b(a.driver)+" driver",1),e[22]||(e[22]=l("br",null,null,-1)),a.base?(r(),f(ne,{key:0,"text-xs":"",filepath:a.base},null,8,["filepath"])):z("",!0)]),_:2},1032,["onClick"]))),128))]),_:1}))}}}),Je=O({__name:"storage",setup(J){return(p,g)=>{const C=Pe,K=xe;return r(),f(K,null,{default:u(()=>[m(C)]),_:1})}}});export{Je as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as D}from"./goeoWIau.js";import{d as I,e as V,aa as U,a as l,as as $,o as a,h as i,j as m,k as s,p as u,i as j,f as e,v as c,m as f,F as k,t as y,n as E,D as F,_ as S}from"./Bysyzw-g.js";import{_ as z}from"./CQTsRCSt.js";import{C as x}from"./BcJws1i5.js";const L={"hover:text-primary":""},M={key:0,"text-primary":""},O={"max-w-100":""},T={px4:"",py3:"","text-sm":""},W={flex:"~ gap2",n:"primary xs"},q={border:"t base","max-h-60":"","of-auto":"",px4:"",py3:""},A={"text-sm":""},G={"text-primary":""},H={flex:"~ col gap-2","items-start":"",pt3:"","text-sm":"",op75:""},J={key:1,"text-sm":"",op50:""},X=I({__name:"ComposableItem",props:{item:{},metadata:{},filepath:{},counter:{type:Boolean,default:!0},classes:{default:"px2 py1 text-sm bg-gray:5 "}},setup(b){const o=b,g=V(),C=U(),p=l(()=>o.item.as||o.item.name),r=l(()=>o.metadata?.injectionUsage?.[p.value]?.count||0),h=l(()=>(o.metadata?.injectionUsage?.[p.value]?.moduleIds||[]).filter(n=>!n.endsWith("?macro=true"))),v=l(()=>o.item.meta?.docsUrl?o.item.meta.docsUrl:["nuxt","#app","nuxt3"].includes(o.item.from)?x.nuxt[o.item.name]:o.item.from==="vue"?x.vue[o.item.name]:null);return(n,t)=>{const w=D,_=S,N=z,B=$("VDropdown");return a(),i(B,{disabled:!o.metadata},{popper:m(()=>[s("div",O,[s("div",T,[n.item.meta?.description?(a(),i(w,{key:0,tag:"div",pb3:"","text-sm":"",markdown:n.item.meta.description},null,8,["markdown"])):u("",!0),s("div",W,[j(_,{icon:"carbon-copy",onClick:t[0]||(t[0]=d=>e(g)(e(p),"imports-name"))},{default:m(()=>t[2]||(t[2]=[c(" Copy ")])),_:1}),n.filepath?(a(),i(_,{key:0,icon:"carbon-code",onClick:t[1]||(t[1]=d=>n.filepath&&e(C)(n.filepath))},{default:m(()=>t[3]||(t[3]=[c(" Source ")])),_:1})):u("",!0),e(v)?(a(),i(_,{key:1,icon:"carbon-catalog",to:e(v),target:"_blank"},{default:m(()=>t[4]||(t[4]=[c(" Docs ")])),_:1},8,["to"])):u("",!0)])]),s("div",q,[e(r)?(a(),f(k,{key:0},[s("div",A,[t[5]||(t[5]=s("span",{op50:""},"It has been referenced ",-1)),s("strong",G,y(e(r)),1),t[6]||(t[6]=s("span",{op50:""}," times by:",-1))]),s("div",H,[(a(!0),f(k,null,E(e(h),d=>(a(),i(N,{key:d,filepath:d},null,8,["filepath"]))),128))])],64)):(a(),f("div",J," Not in use via auto import. "))])])]),default:m(()=>[s("button",L,[s("code",{rounded:"","font-mono":"",class:F([n.metadata&&!e(r)?"op30 hover:op100":"",n.classes])},[c(y(e(p))+" ",1),e(r)&&n.counter?(a(),f("sup",M,"x"+y(e(r)),1)):u("",!0)],2)])]),_:1},8,["disabled"])}}});export{X as _};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.freeze({colors:{"activityBar.activeBorder":"#4d9375","activityBar.background":"#121212","activityBar.border":"#191919","activityBar.foreground":"#dbd7caee","activityBar.inactiveForeground":"#dedcd550","activityBarBadge.background":"#bfbaaa","activityBarBadge.foreground":"#121212","badge.background":"#dedcd590","badge.foreground":"#121212","breadcrumb.activeSelectionForeground":"#eeeeee18","breadcrumb.background":"#181818","breadcrumb.focusForeground":"#dbd7caee","breadcrumb.foreground":"#959da5","breadcrumbPicker.background":"#121212","button.background":"#4d9375","button.foreground":"#121212","button.hoverBackground":"#4d9375","checkbox.background":"#181818","checkbox.border":"#2f363d","debugToolBar.background":"#121212",descriptionForeground:"#dedcd590","diffEditor.insertedTextBackground":"#4d937550","diffEditor.removedTextBackground":"#ab595950","dropdown.background":"#121212","dropdown.border":"#191919","dropdown.foreground":"#dbd7caee","dropdown.listBackground":"#181818","editor.background":"#121212","editor.findMatchBackground":"#e6cc7722","editor.findMatchHighlightBackground":"#e6cc7744","editor.focusedStackFrameHighlightBackground":"#b808","editor.foldBackground":"#eeeeee10","editor.foreground":"#dbd7caee","editor.inactiveSelectionBackground":"#eeeeee10","editor.lineHighlightBackground":"#181818","editor.selectionBackground":"#eeeeee18","editor.selectionHighlightBackground":"#eeeeee10","editor.stackFrameHighlightBackground":"#a707","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#5eaab5","editorBracketHighlight.foreground2":"#4d9375","editorBracketHighlight.foreground3":"#d4976c","editorBracketHighlight.foreground4":"#d9739f","editorBracketHighlight.foreground5":"#e6cc77","editorBracketHighlight.foreground6":"#6394bf","editorBracketMatch.background":"#4d937520","editorError.foreground":"#cb7676","editorGroup.border":"#191919","editorGroupHeader.tabsBackground":"#121212","editorGroupHeader.tabsBorder":"#191919","editorGutter.addedBackground":"#4d9375","editorGutter.commentRangeForeground":"#dedcd550","editorGutter.deletedBackground":"#cb7676","editorGutter.foldingControlForeground":"#dedcd590","editorGutter.modifiedBackground":"#6394bf","editorHint.foreground":"#4d9375","editorIndentGuide.activeBackground":"#ffffff30","editorIndentGuide.background":"#ffffff15","editorInfo.foreground":"#6394bf","editorInlayHint.background":"#181818","editorInlayHint.foreground":"#666666","editorLineNumber.activeForeground":"#bfbaaa","editorLineNumber.foreground":"#dedcd550","editorOverviewRuler.border":"#111","editorStickyScroll.background":"#181818","editorStickyScrollHover.background":"#181818","editorWarning.foreground":"#d4976c","editorWhitespace.foreground":"#ffffff15","editorWidget.background":"#121212",errorForeground:"#cb7676",focusBorder:"#00000000",foreground:"#dbd7caee","gitDecoration.addedResourceForeground":"#4d9375","gitDecoration.conflictingResourceForeground":"#d4976c","gitDecoration.deletedResourceForeground":"#cb7676","gitDecoration.ignoredResourceForeground":"#dedcd550","gitDecoration.modifiedResourceForeground":"#6394bf","gitDecoration.submoduleResourceForeground":"#dedcd590","gitDecoration.untrackedResourceForeground":"#5eaab5","input.background":"#181818","input.border":"#191919","input.foreground":"#dbd7caee","input.placeholderForeground":"#dedcd590","inputOption.activeBackground":"#dedcd550","list.activeSelectionBackground":"#181818","list.activeSelectionForeground":"#dbd7caee","list.focusBackground":"#181818","list.highlightForeground":"#4d9375","list.hoverBackground":"#181818","list.hoverForeground":"#dbd7caee","list.inactiveFocusBackground":"#121212","list.inactiveSelectionBackground":"#181818","list.inactiveSelectionForeground":"#dbd7caee","menu.separatorBackground":"#191919","notificationCenterHeader.background":"#121212","notificationCenterHeader.foreground":"#959da5","notifications.background":"#121212","notifications.border":"#191919","notifications.foreground":"#dbd7caee","notificationsErrorIcon.foreground":"#cb7676","notificationsInfoIcon.foreground":"#6394bf","notificationsWarningIcon.foreground":"#d4976c","panel.background":"#121212","panel.border":"#191919","panelInput.border":"#2f363d","panelTitle.activeBorder":"#4d9375","panelTitle.activeForeground":"#dbd7caee","panelTitle.inactiveForeground":"#959da5","peekViewEditor.background":"#121212","peekViewEditor.matchHighlightBackground":"#ffd33d33","peekViewResult.background":"#121212","peekViewResult.matchHighlightBackground":"#ffd33d33","pickerGroup.border":"#191919","pickerGroup.foreground":"#dbd7caee","problemsErrorIcon.foreground":"#cb7676","problemsInfoIcon.foreground":"#6394bf","problemsWarningIcon.foreground":"#d4976c","progressBar.background":"#4d9375","quickInput.background":"#121212","quickInput.foreground":"#dbd7caee","quickInputList.focusBackground":"#181818","scrollbar.shadow":"#0000","scrollbarSlider.activeBackground":"#dedcd550","scrollbarSlider.background":"#dedcd510","scrollbarSlider.hoverBackground":"#dedcd550","settings.headerForeground":"#dbd7caee","settings.modifiedItemIndicator":"#4d9375","sideBar.background":"#121212","sideBar.border":"#191919","sideBar.foreground":"#bfbaaa","sideBarSectionHeader.background":"#121212","sideBarSectionHeader.border":"#191919","sideBarSectionHeader.foreground":"#dbd7caee","sideBarTitle.foreground":"#dbd7caee","statusBar.background":"#121212","statusBar.border":"#191919","statusBar.debuggingBackground":"#181818","statusBar.debuggingForeground":"#bfbaaa","statusBar.foreground":"#bfbaaa","statusBar.noFolderBackground":"#121212","statusBarItem.prominentBackground":"#181818","tab.activeBackground":"#121212","tab.activeBorder":"#191919","tab.activeBorderTop":"#dedcd590","tab.activeForeground":"#dbd7caee","tab.border":"#191919","tab.hoverBackground":"#181818","tab.inactiveBackground":"#121212","tab.inactiveForeground":"#959da5","tab.unfocusedActiveBorder":"#191919","tab.unfocusedActiveBorderTop":"#191919","tab.unfocusedHoverBackground":"#121212","terminal.ansiBlack":"#393a34","terminal.ansiBlue":"#6394bf","terminal.ansiBrightBlack":"#777777","terminal.ansiBrightBlue":"#6394bf","terminal.ansiBrightCyan":"#5eaab5","terminal.ansiBrightGreen":"#4d9375","terminal.ansiBrightMagenta":"#d9739f","terminal.ansiBrightRed":"#cb7676","terminal.ansiBrightWhite":"#ffffff","terminal.ansiBrightYellow":"#e6cc77","terminal.ansiCyan":"#5eaab5","terminal.ansiGreen":"#4d9375","terminal.ansiMagenta":"#d9739f","terminal.ansiRed":"#cb7676","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#e6cc77","terminal.foreground":"#dbd7caee","terminal.selectionBackground":"#eeeeee18","textBlockQuote.background":"#121212","textBlockQuote.border":"#191919","textCodeBlock.background":"#121212","textLink.activeForeground":"#4d9375","textLink.foreground":"#4d9375","textPreformat.foreground":"#d1d5da","textSeparator.foreground":"#586069","titleBar.activeBackground":"#121212","titleBar.activeForeground":"#bfbaaa","titleBar.border":"#181818","titleBar.inactiveBackground":"#121212","titleBar.inactiveForeground":"#959da5","tree.indentGuidesStroke":"#2f363d","welcomePage.buttonBackground":"#2f363d","welcomePage.buttonHoverBackground":"#444d56"},displayName:"Vitesse Dark",name:"vitesse-dark",semanticHighlighting:!0,semanticTokenColors:{class:"#6872ab",interface:"#5d99a9",namespace:"#db889a",property:"#b8a965",type:"#5d99a9"},tokenColors:[{scope:["comment","punctuation.definition.comment","string.comment"],settings:{foreground:"#758575dd"}},{scope:["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],settings:{foreground:"#666666"}},{scope:["constant","entity.name.constant","variable.language","meta.definition.variable"],settings:{foreground:"#c99076"}},{scope:["entity","entity.name"],settings:{foreground:"#80a665"}},{scope:"variable.parameter.function",settings:{foreground:"#dbd7caee"}},{scope:["entity.name.tag","tag.html"],settings:{foreground:"#4d9375"}},{scope:"entity.name.function",settings:{foreground:"#80a665"}},{scope:["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],settings:{foreground:"#4d9375"}},{scope:["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],settings:{foreground:"#cb7676"}},{scope:["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],settings:{foreground:"#dbd7caee"}},{scope:["string","string punctuation.section.embedded source","attribute.value"],settings:{foreground:"#c98a7d"}},{scope:["punctuation.definition.string"],settings:{foreground:"#c98a7d77"}},{scope:["punctuation.support.type.property-name"],settings:{foreground:"#b8a96577"}},{scope:"support",settings:{foreground:"#b8a965"}},{scope:["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],settings:{foreground:"#b8a965"}},{scope:["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],settings:{foreground:"#bd976a"}},{scope:["variable","identifier"],settings:{foreground:"#bd976a"}},{scope:["support.type.primitive","entity.name.type"],settings:{foreground:"#5DA994"}},{scope:"namespace",settings:{foreground:"#db889a"}},{scope:["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],settings:{foreground:"#cb7676"}},{scope:"invalid.broken",settings:{fontStyle:"italic",foreground:"#fdaeb7"}},{scope:"invalid.deprecated",settings:{fontStyle:"italic",foreground:"#fdaeb7"}},{scope:"invalid.illegal",settings:{fontStyle:"italic",foreground:"#fdaeb7"}},{scope:"invalid.unimplemented",settings:{fontStyle:"italic",foreground:"#fdaeb7"}},{scope:"carriage-return",settings:{background:"#f97583",content:"^M",fontStyle:"italic underline",foreground:"#24292e"}},{scope:"message.error",settings:{foreground:"#fdaeb7"}},{scope:"string variable",settings:{foreground:"#c98a7d"}},{scope:["source.regexp","string.regexp"],settings:{foreground:"#c4704f"}},{scope:["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],settings:{foreground:"#c98a7d"}},{scope:"string.regexp constant.character.escape",settings:{foreground:"#e6cc77"}},{scope:["support.constant"],settings:{foreground:"#c99076"}},{scope:["keyword.operator.quantifier.regexp","constant.numeric","number"],settings:{foreground:"#4C9A91"}},{scope:["keyword.other.unit"],settings:{foreground:"#cb7676"}},{scope:["constant.language.boolean","constant.language"],settings:{foreground:"#4d9375"}},{scope:"meta.module-reference",settings:{foreground:"#4d9375"}},{scope:"punctuation.definition.list.begin.markdown",settings:{foreground:"#d4976c"}},{scope:["markup.heading","markup.heading entity.name"],settings:{fontStyle:"bold",foreground:"#4d9375"}},{scope:"markup.quote",settings:{foreground:"#5d99a9"}},{scope:"markup.italic",settings:{fontStyle:"italic",foreground:"#dbd7caee"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#dbd7caee"}},{scope:"markup.raw",settings:{foreground:"#4d9375"}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{background:"#86181d",foreground:"#fdaeb7"}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{background:"#144620",foreground:"#85e89d"}},{scope:["markup.changed","punctuation.definition.changed"],settings:{background:"#c24e00",foreground:"#ffab70"}},{scope:["markup.ignored","markup.untracked"],settings:{background:"#79b8ff",foreground:"#2f363d"}},{scope:"meta.diff.range",settings:{fontStyle:"bold",foreground:"#b392f0"}},{scope:"meta.diff.header",settings:{foreground:"#79b8ff"}},{scope:"meta.separator",settings:{fontStyle:"bold",foreground:"#79b8ff"}},{scope:"meta.output",settings:{foreground:"#79b8ff"}},{scope:["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],settings:{foreground:"#d1d5da"}},{scope:"brackethighlighter.unmatched",settings:{foreground:"#fdaeb7"}},{scope:["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],settings:{foreground:"#c98a7d"}},{scope:["markup.underline.link.markdown","markup.underline.link.image.markdown"],settings:{fontStyle:"underline",foreground:"#dedcd590"}},{scope:["type.identifier","constant.other.character-class.regexp"],settings:{foreground:"#6872ab"}},{scope:["entity.other.attribute-name.html.vue"],settings:{foreground:"#80a665"}},{scope:["invalid.illegal.unrecognized-tag.html"],settings:{fontStyle:"normal"}}],type:"dark"});export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{q as o,m as t,a8 as s,o as r}from"./Bysyzw-g.js";const a={},c={"h-full":"","of-auto":""};function n(e,l){return r(),t("div",c,[s(e.$slots,"default")])}const _=o(a,[["render",n]]);export{_ as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as c,aj as r,m as _,f as o,h as n,j as i,al as l,o as t,v as m}from"./Bysyzw-g.js";import{t as p}from"./CP6X-Nb2.js";import"./DPGeaLSc.js";import"./3LqotSTl.js";const f={class:"h-full w-full"},B=c({__name:"pinia",setup(u){const{connected:a}=r();return(d,e)=>{const s=l;return t(),_("div",f,[o(a)?(t(),n(o(p),{key:0})):(t(),n(s,{key:1},{default:i(()=>e[0]||(e[0]=[m(" Connecting.... ")])),_:1}))])}}});export{B as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import t from"./Cpe0RYoz.js";import e from"./lRZxrFTT.js";import"./B1ejXUAS.js";import"./5bRVBCrv.js";import"./BnYPtiAB.js";import"./B9vFkdfw.js";import"./CDP-pALJ.js";const n=Object.freeze({displayName:"Vue HTML",fileTypes:[],name:"vue-html",patterns:[{include:"source.vue#vue-interpolations"},{begin:"(<)([A-Z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"support.class.component.html"},5:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(<)([a-z][a-zA-Z0-9:-]*)(?=[^>]*></\\2>)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.html"}},end:"(>)(<)(/)(\\2)(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"},2:{name:"punctuation.definition.tag.begin.html meta.scope.between-tag-pair.html"},3:{name:"punctuation.definition.tag.begin.html"},4:{name:"entity.name.tag.html"},5:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(<\\?)(xml)",captures:{1:{name:"punctuation.definition.tag.html"},2:{name:"entity.name.tag.xml.html"}},end:"(\\?>)",name:"meta.tag.preprocessor.xml.html",patterns:[{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"}]},{begin:"<!--",captures:{0:{name:"punctuation.definition.comment.html"}},end:"-->",name:"comment.block.html"},{begin:"<!",captures:{0:{name:"punctuation.definition.tag.html"}},end:">",name:"meta.tag.sgml.html",patterns:[{begin:"(?i:DOCTYPE)",captures:{1:{name:"entity.name.tag.doctype.html"}},end:"(?=>)",name:"meta.tag.sgml.doctype.html",patterns:[{match:'"[^">]*"',name:"string.quoted.double.doctype.identifiers-and-DTDs.html"}]},{begin:"\\[CDATA\\[",end:"]](?=>)",name:"constant.other.inline-data.html"},{match:"(\\s*)(?!--|>)\\S(\\s*)",name:"invalid.illegal.bad-comments-or-CDATA.html"}]},{begin:"(</?)([A-Z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"support.class.component.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)([a-z][a-zA-Z0-9:-]*\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:body|head|html)\\b)",captures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.structure.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.structure.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:address|blockquote|dd|div|dl|dt|fieldset|form|frame|frameset|h1|h2|h3|h4|h5|h6|iframe|noframes|object|ol|p|ul|applet|center|dir|hr|menu|pre)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.block.any.html"}},end:"(>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.block.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)((?i:a|abbr|acronym|area|b|base|basefont|bdo|big|br|button|caption|cite|code|col|colgroup|del|dfn|em|font|head|html|i|img|input|ins|isindex|kbd|label|legend|li|link|map|meta|noscript|optgroup|option|param|q|s|samp|script|select|small|span|strike|strong|style|sub|sup|table|tbody|td|textarea|tfoot|th|thead|title|tr|tt|u|var)(?!-)\\b)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.inline.any.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.inline.any.html",patterns:[{include:"#tag-stuff"}]},{begin:"(</?)([a-zA-Z0-9:-]+)",beginCaptures:{1:{name:"punctuation.definition.tag.begin.html"},2:{name:"entity.name.tag.other.html"}},end:"(/?>)",endCaptures:{1:{name:"punctuation.definition.tag.end.html"}},name:"meta.tag.other.html",patterns:[{include:"#tag-stuff"}]},{include:"#entities"},{match:"<>",name:"invalid.illegal.incomplete.html"},{match:"<",name:"invalid.illegal.bad-angle-bracket.html"}],repository:{entities:{patterns:[{captures:{1:{name:"punctuation.definition.entity.html"},3:{name:"punctuation.definition.entity.html"}},match:"(&)([a-zA-Z0-9]+|#\\d+|#x[0-9a-fA-F]+)(;)",name:"constant.character.entity.html"},{match:"&",name:"invalid.illegal.bad-ampersand.html"}]},"string-double-quoted":{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"string-single-quoted":{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},"tag-generic-attribute":{match:"(?<=[^=])\\b([a-zA-Z0-9:\\-_]+)",name:"entity.other.attribute-name.html"},"tag-id-attribute":{begin:"\\b(id)\\b\\s*(=)",captures:{1:{name:"entity.other.attribute-name.id.html"},2:{name:"punctuation.separator.key-value.html"}},end:`(?!\\G)(?<='|"|[^\\s<>/])`,name:"meta.attribute-with-value.id.html",patterns:[{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.double.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},contentName:"meta.toc-list.id.html",end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"string.quoted.single.html",patterns:[{include:"source.vue#vue-interpolations"},{include:"#entities"}]},{captures:{0:{name:"meta.toc-list.id.html"}},match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,name:"string.unquoted.html"}]},"tag-stuff":{patterns:[{include:"#vue-directives"},{include:"#tag-id-attribute"},{include:"#tag-generic-attribute"},{include:"#string-double-quoted"},{include:"#string-single-quoted"},{include:"#unquoted-attribute"}]},"unquoted-attribute":{match:`(?<==)(?:[^\\s<>/'"]|/(?!>))+`,name:"string.unquoted.html"},"vue-directives":{begin:"(?:\\b(v-)|(:|@|#))([a-zA-Z0-9\\-_]+)(?::([a-zA-Z\\-_]+))?(?:\\.([a-zA-Z\\-_]+))*\\s*(=)",captures:{1:{name:"entity.other.attribute-name.html"},2:{name:"punctuation.separator.key-value.html"},3:{name:"entity.other.attribute-name.html"},4:{name:"entity.other.attribute-name.html"},5:{name:"entity.other.attribute-name.html"},6:{name:"punctuation.separator.key-value.html"}},end:"(?<='|\")|(?=[\\s<>`])",name:"meta.directive.vue",patterns:[{begin:"`",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"`",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:'"',endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]},{begin:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin.html"}},end:"'",endCaptures:{0:{name:"punctuation.definition.string.end.html"}},name:"source.directive.vue",patterns:[{include:"source.js#expression"}]}]}},scopeName:"text.html.vue-html",embeddedLangs:["vue","javascript"]});var d=[...t,...e,n];export{d as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
var e=Object.freeze({colors:{"activityBar.activeBorder":"#1c6b48","activityBar.background":"#ffffff","activityBar.border":"#f0f0f0","activityBar.foreground":"#393a34","activityBar.inactiveForeground":"#393a3450","activityBarBadge.background":"#4e4f47","activityBarBadge.foreground":"#ffffff","badge.background":"#393a3490","badge.foreground":"#ffffff","breadcrumb.activeSelectionForeground":"#22222218","breadcrumb.background":"#f7f7f7","breadcrumb.focusForeground":"#393a34","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#ffffff","button.background":"#1c6b48","button.foreground":"#ffffff","button.hoverBackground":"#1c6b48","checkbox.background":"#f7f7f7","checkbox.border":"#d1d5da","debugToolBar.background":"#ffffff",descriptionForeground:"#393a3490","diffEditor.insertedTextBackground":"#1c6b4830","diffEditor.removedTextBackground":"#ab595940","dropdown.background":"#ffffff","dropdown.border":"#f0f0f0","dropdown.foreground":"#393a34","dropdown.listBackground":"#f7f7f7","editor.background":"#ffffff","editor.findMatchBackground":"#e6cc7744","editor.findMatchHighlightBackground":"#e6cc7766","editor.focusedStackFrameHighlightBackground":"#fff5b1","editor.foldBackground":"#22222210","editor.foreground":"#393a34","editor.inactiveSelectionBackground":"#22222210","editor.lineHighlightBackground":"#f7f7f7","editor.selectionBackground":"#22222218","editor.selectionHighlightBackground":"#22222210","editor.stackFrameHighlightBackground":"#fffbdd","editor.wordHighlightBackground":"#1c6b4805","editor.wordHighlightStrongBackground":"#1c6b4810","editorBracketHighlight.foreground1":"#2993a3","editorBracketHighlight.foreground2":"#1e754f","editorBracketHighlight.foreground3":"#a65e2b","editorBracketHighlight.foreground4":"#a13865","editorBracketHighlight.foreground5":"#bda437","editorBracketHighlight.foreground6":"#296aa3","editorBracketMatch.background":"#1c6b4820","editorError.foreground":"#ab5959","editorGroup.border":"#f0f0f0","editorGroupHeader.tabsBackground":"#ffffff","editorGroupHeader.tabsBorder":"#f0f0f0","editorGutter.addedBackground":"#1e754f","editorGutter.commentRangeForeground":"#393a3450","editorGutter.deletedBackground":"#ab5959","editorGutter.foldingControlForeground":"#393a3490","editorGutter.modifiedBackground":"#296aa3","editorHint.foreground":"#1e754f","editorIndentGuide.activeBackground":"#00000030","editorIndentGuide.background":"#00000015","editorInfo.foreground":"#296aa3","editorInlayHint.background":"#f7f7f7","editorInlayHint.foreground":"#999999","editorLineNumber.activeForeground":"#4e4f47","editorLineNumber.foreground":"#393a3450","editorOverviewRuler.border":"#fff","editorStickyScroll.background":"#f7f7f7","editorStickyScrollHover.background":"#f7f7f7","editorWarning.foreground":"#a65e2b","editorWhitespace.foreground":"#00000015","editorWidget.background":"#ffffff",errorForeground:"#ab5959",focusBorder:"#00000000",foreground:"#393a34","gitDecoration.addedResourceForeground":"#1e754f","gitDecoration.conflictingResourceForeground":"#a65e2b","gitDecoration.deletedResourceForeground":"#ab5959","gitDecoration.ignoredResourceForeground":"#393a3450","gitDecoration.modifiedResourceForeground":"#296aa3","gitDecoration.submoduleResourceForeground":"#393a3490","gitDecoration.untrackedResourceForeground":"#2993a3","input.background":"#f7f7f7","input.border":"#f0f0f0","input.foreground":"#393a34","input.placeholderForeground":"#393a3490","inputOption.activeBackground":"#393a3450","list.activeSelectionBackground":"#f7f7f7","list.activeSelectionForeground":"#393a34","list.focusBackground":"#f7f7f7","list.highlightForeground":"#1c6b48","list.hoverBackground":"#f7f7f7","list.hoverForeground":"#393a34","list.inactiveFocusBackground":"#ffffff","list.inactiveSelectionBackground":"#f7f7f7","list.inactiveSelectionForeground":"#393a34","menu.separatorBackground":"#f0f0f0","notificationCenterHeader.background":"#ffffff","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#ffffff","notifications.border":"#f0f0f0","notifications.foreground":"#393a34","notificationsErrorIcon.foreground":"#ab5959","notificationsInfoIcon.foreground":"#296aa3","notificationsWarningIcon.foreground":"#a65e2b","panel.background":"#ffffff","panel.border":"#f0f0f0","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#1c6b48","panelTitle.activeForeground":"#393a34","panelTitle.inactiveForeground":"#6a737d","peekViewEditor.background":"#ffffff","peekViewResult.background":"#ffffff","pickerGroup.border":"#f0f0f0","pickerGroup.foreground":"#393a34","problemsErrorIcon.foreground":"#ab5959","problemsInfoIcon.foreground":"#296aa3","problemsWarningIcon.foreground":"#a65e2b","progressBar.background":"#1c6b48","quickInput.background":"#ffffff","quickInput.foreground":"#393a34","quickInputList.focusBackground":"#f7f7f7","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#393a3450","scrollbarSlider.background":"#393a3410","scrollbarSlider.hoverBackground":"#393a3450","settings.headerForeground":"#393a34","settings.modifiedItemIndicator":"#1c6b48","sideBar.background":"#ffffff","sideBar.border":"#f0f0f0","sideBar.foreground":"#4e4f47","sideBarSectionHeader.background":"#ffffff","sideBarSectionHeader.border":"#f0f0f0","sideBarSectionHeader.foreground":"#393a34","sideBarTitle.foreground":"#393a34","statusBar.background":"#ffffff","statusBar.border":"#f0f0f0","statusBar.debuggingBackground":"#f7f7f7","statusBar.debuggingForeground":"#4e4f47","statusBar.foreground":"#4e4f47","statusBar.noFolderBackground":"#ffffff","statusBarItem.prominentBackground":"#f7f7f7","tab.activeBackground":"#ffffff","tab.activeBorder":"#f0f0f0","tab.activeBorderTop":"#393a3490","tab.activeForeground":"#393a34","tab.border":"#f0f0f0","tab.hoverBackground":"#f7f7f7","tab.inactiveBackground":"#ffffff","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#f0f0f0","tab.unfocusedActiveBorderTop":"#f0f0f0","tab.unfocusedHoverBackground":"#ffffff","terminal.ansiBlack":"#121212","terminal.ansiBlue":"#296aa3","terminal.ansiBrightBlack":"#aaaaaa","terminal.ansiBrightBlue":"#296aa3","terminal.ansiBrightCyan":"#2993a3","terminal.ansiBrightGreen":"#1e754f","terminal.ansiBrightMagenta":"#a13865","terminal.ansiBrightRed":"#ab5959","terminal.ansiBrightWhite":"#dddddd","terminal.ansiBrightYellow":"#bda437","terminal.ansiCyan":"#2993a3","terminal.ansiGreen":"#1e754f","terminal.ansiMagenta":"#a13865","terminal.ansiRed":"#ab5959","terminal.ansiWhite":"#dbd7ca","terminal.ansiYellow":"#bda437","terminal.foreground":"#393a34","terminal.selectionBackground":"#22222218","textBlockQuote.background":"#ffffff","textBlockQuote.border":"#f0f0f0","textCodeBlock.background":"#ffffff","textLink.activeForeground":"#1c6b48","textLink.foreground":"#1c6b48","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#ffffff","titleBar.activeForeground":"#4e4f47","titleBar.border":"#f7f7f7","titleBar.inactiveBackground":"#ffffff","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},displayName:"Vitesse Light",name:"vitesse-light",semanticHighlighting:!0,semanticTokenColors:{class:"#5a6aa6",interface:"#2e808f",namespace:"#b05a78",property:"#998418",type:"#2e808f"},tokenColors:[{scope:["comment","punctuation.definition.comment","string.comment"],settings:{foreground:"#a0ada0"}},{scope:["delimiter.bracket","delimiter","invalid.illegal.character-not-allowed-here.html","keyword.operator.rest","keyword.operator.spread","keyword.operator.type.annotation","keyword.operator.relational","keyword.operator.assignment","keyword.operator.type","meta.brace","meta.tag.block.any.html","meta.tag.inline.any.html","meta.tag.structure.input.void.html","meta.type.annotation","meta.embedded.block.github-actions-expression","storage.type.function.arrow","meta.objectliteral.ts","punctuation","punctuation.definition.string.begin.html.vue","punctuation.definition.string.end.html.vue"],settings:{foreground:"#999999"}},{scope:["constant","entity.name.constant","variable.language","meta.definition.variable"],settings:{foreground:"#a65e2b"}},{scope:["entity","entity.name"],settings:{foreground:"#59873a"}},{scope:"variable.parameter.function",settings:{foreground:"#393a34"}},{scope:["entity.name.tag","tag.html"],settings:{foreground:"#1e754f"}},{scope:"entity.name.function",settings:{foreground:"#59873a"}},{scope:["keyword","storage.type.class.jsdoc","punctuation.definition.template-expression"],settings:{foreground:"#1e754f"}},{scope:["storage","storage.type","support.type.builtin","constant.language.undefined","constant.language.null","constant.language.import-export-all.ts"],settings:{foreground:"#ab5959"}},{scope:["text.html.derivative","storage.modifier.package","storage.modifier.import","storage.type.java"],settings:{foreground:"#393a34"}},{scope:["string","string punctuation.section.embedded source","attribute.value"],settings:{foreground:"#b56959"}},{scope:["punctuation.definition.string"],settings:{foreground:"#b5695977"}},{scope:["punctuation.support.type.property-name"],settings:{foreground:"#99841877"}},{scope:"support",settings:{foreground:"#998418"}},{scope:["property","meta.property-name","meta.object-literal.key","entity.name.tag.yaml","attribute.name"],settings:{foreground:"#998418"}},{scope:["entity.other.attribute-name","invalid.deprecated.entity.other.attribute-name.html"],settings:{foreground:"#b07d48"}},{scope:["variable","identifier"],settings:{foreground:"#b07d48"}},{scope:["support.type.primitive","entity.name.type"],settings:{foreground:"#2e8f82"}},{scope:"namespace",settings:{foreground:"#b05a78"}},{scope:["keyword.operator","keyword.operator.assignment.compound","meta.var.expr.ts"],settings:{foreground:"#ab5959"}},{scope:"invalid.broken",settings:{fontStyle:"italic",foreground:"#b31d28"}},{scope:"invalid.deprecated",settings:{fontStyle:"italic",foreground:"#b31d28"}},{scope:"invalid.illegal",settings:{fontStyle:"italic",foreground:"#b31d28"}},{scope:"invalid.unimplemented",settings:{fontStyle:"italic",foreground:"#b31d28"}},{scope:"carriage-return",settings:{background:"#d73a49",content:"^M",fontStyle:"italic underline",foreground:"#fafbfc"}},{scope:"message.error",settings:{foreground:"#b31d28"}},{scope:"string variable",settings:{foreground:"#b56959"}},{scope:["source.regexp","string.regexp"],settings:{foreground:"#ab5e3f"}},{scope:["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],settings:{foreground:"#b56959"}},{scope:"string.regexp constant.character.escape",settings:{foreground:"#bda437"}},{scope:["support.constant"],settings:{foreground:"#a65e2b"}},{scope:["keyword.operator.quantifier.regexp","constant.numeric","number"],settings:{foreground:"#2f798a"}},{scope:["keyword.other.unit"],settings:{foreground:"#ab5959"}},{scope:["constant.language.boolean","constant.language"],settings:{foreground:"#1e754f"}},{scope:"meta.module-reference",settings:{foreground:"#1c6b48"}},{scope:"punctuation.definition.list.begin.markdown",settings:{foreground:"#a65e2b"}},{scope:["markup.heading","markup.heading entity.name"],settings:{fontStyle:"bold",foreground:"#1c6b48"}},{scope:"markup.quote",settings:{foreground:"#2e808f"}},{scope:"markup.italic",settings:{fontStyle:"italic",foreground:"#393a34"}},{scope:"markup.bold",settings:{fontStyle:"bold",foreground:"#393a34"}},{scope:"markup.raw",settings:{foreground:"#1c6b48"}},{scope:["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],settings:{background:"#ffeef0",foreground:"#b31d28"}},{scope:["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],settings:{background:"#f0fff4",foreground:"#22863a"}},{scope:["markup.changed","punctuation.definition.changed"],settings:{background:"#ffebda",foreground:"#e36209"}},{scope:["markup.ignored","markup.untracked"],settings:{background:"#005cc5",foreground:"#f6f8fa"}},{scope:"meta.diff.range",settings:{fontStyle:"bold",foreground:"#6f42c1"}},{scope:"meta.diff.header",settings:{foreground:"#005cc5"}},{scope:"meta.separator",settings:{fontStyle:"bold",foreground:"#005cc5"}},{scope:"meta.output",settings:{foreground:"#005cc5"}},{scope:["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],settings:{foreground:"#586069"}},{scope:"brackethighlighter.unmatched",settings:{foreground:"#b31d28"}},{scope:["constant.other.reference.link","string.other.link","punctuation.definition.string.begin.markdown","punctuation.definition.string.end.markdown"],settings:{foreground:"#b56959"}},{scope:["markup.underline.link.markdown","markup.underline.link.image.markdown"],settings:{fontStyle:"underline",foreground:"#393a3490"}},{scope:["type.identifier","constant.other.character-class.regexp"],settings:{foreground:"#5a6aa6"}},{scope:["entity.other.attribute-name.html.vue"],settings:{foreground:"#59873a"}},{scope:["invalid.illegal.unrecognized-tag.html"],settings:{fontStyle:"normal"}}],type:"light"});export{e as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{_ as S}from"./BpWWOd5v.js";import{d as $,r as H,a as g,o as d,m as b,k as o,v as i,D as m,f as n,F as y,n as T,t as _,a7 as F,aJ as B,i as h,aK as D,ak as V,h as C,j as w,p as N}from"./Bysyzw-g.js";import{_ as P}from"./C6_B1_1h.js";import{_ as j}from"./WFxqX3Wd.js";import"./CXTghDHT.js";const E={"w-full":""},O={border:"b base"},L={"select-none":"","ws-nowrap":"",p1:"","text-right":"","font-bold":""},z={colspan:"2",p1:"",pl5:"","text-left":"","font-bold":""},A={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},Y={"ws-nowrap":"",p1:"","text-center":"","font-bold":""},J={"ws-nowrap":"",p1:"","text-right":"","font-bold":""},K={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"",op25:""},R={"text-sm":""},U={"ws-nowrap":""},q={"text-sm":""},G={"w-0":"","text-center":"","text-sm":""},M={"w-0":"","text-center":"","text-sm":""},Q={"w-0":"","text-right":"","text-sm":""},W=$({__name:"HooksTable",props:{hooks:{}},setup(x){const l=x,a=H("duration"),s=H("asc"),u={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},v=g(()=>l.hooks.map(e=>e.start).sort((e,t)=>e-t)),k=g(()=>{const e=u[a.value],t=[...l.hooks].sort(e);return s.value==="desc"&&t.reverse(),t});function p(e){const t=e.split(":");return t.length===1?"":`${t[0]}:`}function f(e){const t=e.split(":");return t.length===1?e:t.slice(1).join(":")}function c(e){a.value===e?s.value=s.value==="asc"?"desc":"asc":a.value=e}return(e,t)=>{const I=S;return d(),b("table",E,[o("thead",O,[o("tr",null,[o("th",L,[o("button",{onClick:t[0]||(t[0]=r=>c("start"))},[t[5]||(t[5]=i(" Order ")),o("div",{"ml--1":"","text-xs":"",class:m([n(a)==="start"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",z,[o("button",{onClick:t[1]||(t[1]=r=>c("name"))},[t[6]||(t[6]=i(" Hook name ")),o("div",{"ml--1":"","text-xs":"",class:m([n(a)==="name"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",A,[o("button",{onClick:t[2]||(t[2]=r=>c("listener"))},[t[7]||(t[7]=i(" Listeners ")),o("div",{"ml--1":"","text-xs":"",class:m([n(a)==="listener"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",Y,[o("button",{onClick:t[3]||(t[3]=r=>c("executions"))},[t[8]||(t[8]=i(" Executions ")),o("div",{"ml--1":"","text-xs":"",class:m([n(a)==="executions"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),o("th",J,[o("button",{onClick:t[4]||(t[4]=r=>c("duration"))},[t[9]||(t[9]=i(" Duration ")),o("div",{"ml--1":"","text-xs":"",class:m([n(a)==="duration"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),o("tbody",null,[(d(!0),b(y,null,T(n(k),r=>(d(),b("tr",{key:r.name,border:"b dashed transparent hover:base"},[o("td",K,_(n(v).indexOf(r.start)),1),o("td",{"w-0":"","ws-nowrap":"","text-right":"",style:F({color:("getHashColorFromString"in e?e.getHashColorFromString:n(B))(p(r.name))})},[o("code",R,_(p(r.name)),1)],4),o("td",U,[o("code",q,_(f(r.name)),1)]),o("td",G,_(r.listeners),1),o("td",M,_(r.executions.length+1),1),o("td",Q,[h(I,{duration:r.duration},null,8,["duration"])])]))),128))])])}}}),X={class:"markdown-body"},Z={__name:"hooks",setup(x,{expose:l}){return l({frontmatter:{}}),(s,u)=>(d(),b("div",X,u[0]||(u[0]=[o("h1",null,"Hooks",-1),o("p",null,[i("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"),i(".")],-1),o("p",null,[o("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),i(".")],-1)])))}},tt=Z,at=$({__name:"hooks",setup(x){const l=D(),a=V(),s=g(()=>a.value?.metrics.clientHooks());return(u,v)=>{const k=W,p=P,f=tt,c=j;return d(),b(y,null,[o("div",null,[n(s)?.length?(d(),C(p,{key:0,icon:"carbon-ibm-cloud-direct-link-1-dedicated-hosting",text:"Client Hooks",description:`Total hooks: ${n(s).length}`,padding:"pl4 pr6"},{default:w(()=>[h(k,{hooks:n(s)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0),n(l)?.length?(d(),C(p,{key:1,icon:"carbon-ibm-cloud-direct-link-2-dedicated",text:"Server Hooks",description:`Total hooks: ${n(l)?.length}`,padding:"pl4 pr6"},{default:w(()=>[h(k,{hooks:n(l)},null,8,["hooks"])]),_:1},8,["description"])):N("",!0)]),h(c,null,{default:w(()=>[h(f)]),_:1})],64)}}});export{at as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{d as q,am as N,r as A,a as g,ay as $,az as j,aq as D,aA as B,aB as _,aC as E,aD as M,m as I,o as i,aE as V,N as L,aF as P,aG as C,aH as W,f as n,h as r,j as w,ax as O,y as R,k as c,v as h,t as T,J as S,i as F,ar as U,aI as G}from"./Bysyzw-g.js";import{_ as z}from"./COjmv9fs.js";import"./goeoWIau.js";import"./DK4YETzW.js";const x=new Map,H=q({__name:"IframeView",props:{tab:{}},setup(y){const v=y,d=N(),p=A(),l=g(()=>v.tab.name),e=A(),t=$(j(p));D(()=>{const o=v.tab.view,u=o.persistent!==!1,b=["clipboard-write","clipboard-read"];if(x.get(l.value)&&u)e.value=x.get(l.value),e.value.style.visibility="visible";else{e.value=document.createElement("iframe"),e.value.setAttribute("allow",b.join("; ")),e.value.setAttribute("aria-label","Nuxt Devtools"),u&&x.set(l.value,e.value),e.value.src=o.src;try{e.value.style.opacity="0.01",e.value.onload=()=>{m(),s(),e.value.style.opacity="1"}}catch{e.value.style.opacity="1"}document.body.appendChild(e.value),B(f)}setTimeout(s,100)}),_(f),_(s),_(m),E(()=>{e.value&&(e.value.style.visibility="hidden")});function s(){if(!(!e.value||!e.value.contentWindow))try{const o=e.value.contentWindow.document.querySelector("html");o?.classList.toggle("dark",d.value==="dark"),o?.classList.toggle("light",d.value==="dark"),new MutationObserver(()=>{d.value=e.value?.contentWindow?.document.querySelector("html")?.classList.contains("dark")?"dark":"light"}).observe(o,{attributes:!0,attributeFilter:["class"]})}catch{}}const a=M();function m(){if(!(!e.value||!e.value.contentWindow))try{e.value.contentWindow.__NUXT_DEVTOOLS__=a.value}catch{}}function f(){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,u)=>(i(),I("div",{ref_key:"anchor",ref:p,"h-full":"","w-full":""},null,512))}}),J={flex:"~ col gap2",mxa:"","items-center":""},X={"text-xl":""},K={"text-rose":""},te=q({__name:"custom-[name]",props:{name:{}},setup(y){const v=y,d=V(),p=L(),l=g(()=>v.name??d.params.name),e=P(),t=g(()=>e.value.find(s=>s.name===l.value));return D(()=>{t.value?t.value.requireAuth&&!C.value&&W():setTimeout(()=>{t.value||p.push("/modules/overview")},2e3)}),(s,a)=>{const m=R,f=G,o=H,u=z,b=U;return n(t)?n(t).requireAuth&&!("isDevAuthed"in s?s.isDevAuthed:n(C))?(i(),r(f,{key:1})):n(t).view.type==="iframe"?(i(),r(o,{key:2,tab:n(t)},null,8,["tab"])):n(t).view.type==="vnode"?(i(),r(O(n(t).view.vnode),{key:3})):n(t).view.type==="launch"?(i(),r(u,{key:4,name:`custom-${n(t).name}`,icon:n(t).view.icon||n(t).icon,title:n(t).view.title||n(t).title,description:n(t).view.description,actions:n(t).view.actions,onAction:a[0]||(a[0]=k=>("rpc"in s?s.rpc:n(S)).customTabAction(n(t).name,k))},null,8,["name","icon","title","description","actions"])):(i(),r(m,{key:5},{default:w(()=>[F(b,{flex:"~ col","h-full":"","items-center":"","justify-center":""},{default:w(()=>[h(" Unknown tab type "+T(n(t).view),1)]),_:1})]),_:1})):(i(),r(m,{key:0},{default:w(()=>[c("div",J,[a[3]||(a[3]=c("div",{"i-carbon-queued":"",mb2:"","text-5xl":"",op50:""},null,-1)),c("p",X,[a[1]||(a[1]=h(" Tab ")),c("code",K,T(n(l)),1),a[2]||(a[2]=h(" not found "))]),a[4]||(a[4]=c("p",{op50:""}," It might because the module contributing this tab is not installed or enabled ",-1)),a[5]||(a[5]=c("p",{mt8:"","animate-pulse":""}," Redirecting to overview page... ",-1))])]),_:1}))}}});export{te as default};
|