@nuxt/devtools 1.2.0 → 1.3.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.
Files changed (107) hide show
  1. package/dist/chunks/module-main.mjs +2 -35
  2. package/dist/chunks/vscode.mjs +1 -0
  3. package/dist/client/200.html +21 -21
  4. package/dist/client/404.html +21 -21
  5. package/dist/client/_nuxt/{CFcWLH5V.js → -qWogbxp.js} +1 -1
  6. package/dist/client/_nuxt/{D8i82D0r.js → 2rHQ-89_.js} +1 -1
  7. package/dist/client/_nuxt/5Viy9mJZ.js +1 -0
  8. package/dist/client/_nuxt/{ooCcziGQ.js → 5rat9AfN.js} +3 -3
  9. package/dist/client/_nuxt/{8vVaiFyN.js → 66lAmVWa.js} +1 -1
  10. package/dist/client/_nuxt/{D_pwdbKS.js → B1WwrPQO.js} +2 -2
  11. package/dist/client/_nuxt/{CYIc81Hh.js → B4a1LB7w.js} +2 -2
  12. package/dist/client/_nuxt/{CQwJxTyO.js → B5LBktAa.js} +2 -2
  13. package/dist/client/_nuxt/{D2TLnKEp.js → B7vUcbNk.js} +1 -1
  14. package/dist/client/_nuxt/{Bm01LnY_.js → BBiSxoA1.js} +1 -1
  15. package/dist/client/_nuxt/{BvY_Q6Ny.js → BEabNaD3.js} +1 -1
  16. package/dist/client/_nuxt/BGq4KZyx.js +1 -0
  17. package/dist/client/_nuxt/{DrouHJc_.js → BL23Bc6O.js} +1 -1
  18. package/dist/client/_nuxt/BMbUeBqv.js +74 -0
  19. package/dist/client/_nuxt/{Dlh-yUDi.js → BNIC4eZE.js} +1 -1
  20. package/dist/client/_nuxt/{BluVLImH.js → BNSBUDhB.js} +1 -1
  21. package/dist/client/_nuxt/{C_6aSAC7.js → BOBmlKb6.js} +1 -1
  22. package/dist/client/_nuxt/BWnGocWo.js +1 -0
  23. package/dist/client/_nuxt/BYVFCOjE.js +1 -0
  24. package/dist/client/_nuxt/BZfs-ost.js +1 -0
  25. package/dist/client/_nuxt/{DM7LQm-O.js → B_Ym5JKn.js} +1 -1
  26. package/dist/client/_nuxt/{Cgy-yYrX.js → BbqA4Ggc.js} +1 -1
  27. package/dist/client/_nuxt/{ClFBqw1c.js → BcobmRlA.js} +1 -1
  28. package/dist/client/_nuxt/BiWblMbN.js +505 -0
  29. package/dist/client/_nuxt/{Dbt1lqd7.js → BkK_qJ34.js} +1 -1
  30. package/dist/client/_nuxt/{Cr5Lt2Bh.js → BlDdoh7Z.js} +1 -1
  31. package/dist/client/_nuxt/{3yXnKq4C.js → BlKdmH9f.js} +1 -1
  32. package/dist/client/_nuxt/{CauQWwFB.js → Br0oqAKP.js} +1 -1
  33. package/dist/client/_nuxt/{DVpEqQtB.js → Bs6Xt_hm.js} +1 -1
  34. package/dist/client/_nuxt/{CE1aCf8a.js → Bx439kud.js} +1 -1
  35. package/dist/client/_nuxt/{DlQNtCxN.js → C0doa8lg.js} +1 -1
  36. package/dist/client/_nuxt/CDjZ2Pwm.js +99 -0
  37. package/dist/client/_nuxt/{CYUk1Phb.js → CGdFtN3I.js} +1 -1
  38. package/dist/client/_nuxt/CHuuZgn4.js +699 -0
  39. package/dist/client/_nuxt/{E3u_JT2d.js → CLKMZBSj.js} +1 -1
  40. package/dist/client/_nuxt/{D8hnvtQ7.js → CLVJ1qFH.js} +1 -1
  41. package/dist/client/_nuxt/{DnNA5yXt.js → CQ4DIexe.js} +1 -1
  42. package/dist/client/_nuxt/{BKROsu9M.js → CQfzcXIu.js} +1 -1
  43. package/dist/client/_nuxt/CSxKs2xg.js +48 -0
  44. package/dist/client/_nuxt/CWDIGLyg.js +1 -0
  45. package/dist/client/_nuxt/Cdv1FpqM.js +20 -0
  46. package/dist/client/_nuxt/{BNbY1jCQ.js → CgdhjF_I.js} +1 -1
  47. package/dist/client/_nuxt/{Dow1QcrX.js → CgvvXsvn.js} +1 -1
  48. package/dist/client/_nuxt/{DrTLrgyX.js → CiwDa1gT.js} +1 -1
  49. package/dist/client/_nuxt/D0LPR03l.js +1 -0
  50. package/dist/client/_nuxt/D4dWpejW.js +2 -0
  51. package/dist/client/_nuxt/{CoH69PTx.js → DCvec3a_.js} +1 -1
  52. package/dist/client/_nuxt/{DjE-sQMX.js → DCzXkWpZ.js} +1 -1
  53. package/dist/client/_nuxt/DDnrbwm6.js +2002 -0
  54. package/dist/client/_nuxt/{TDzLXguC.js → DE_Uwlru.js} +1 -1
  55. package/dist/client/_nuxt/DHFOa8tC.js +200 -0
  56. package/dist/client/_nuxt/DO3F8Knp.js +1 -0
  57. package/dist/client/_nuxt/{HezyzoNS.js → DQFmACZp.js} +1 -1
  58. package/dist/client/_nuxt/{BwcgHM_R.js → DQS-rzez.js} +1 -1
  59. package/dist/client/_nuxt/{QUVBuzQ1.js → DRuHuqMZ.js} +1 -1
  60. package/dist/client/_nuxt/DRzmYdLW.js +1 -0
  61. package/dist/client/_nuxt/{DPywwtwa.js → DTnMHt2b.js} +1 -1
  62. package/dist/client/_nuxt/{ylHKncut.js → DW3jphl9.js} +1 -1
  63. package/dist/client/_nuxt/DdJKusQR.js +1 -0
  64. package/dist/client/_nuxt/{BZMq3h7l.js → DgR63EN_.js} +155 -155
  65. package/dist/client/_nuxt/{CwLZOs-U.js → DjVyxknR.js} +1 -1
  66. package/dist/client/_nuxt/{Dpi9Vpa4.js → DnhEYZMs.js} +1 -1
  67. package/dist/client/_nuxt/{DzJVEN15.js → Dw5Tt5gJ.js} +1 -1
  68. package/dist/client/_nuxt/HBr8xMzr.js +1 -0
  69. package/dist/client/_nuxt/{D0GIdZjD.js → J3djixjQ.js} +1 -1
  70. package/dist/client/_nuxt/JkOP3KoO.js +1 -0
  71. package/dist/client/_nuxt/{DXyT_6cw.js → K0tfU50F.js} +1 -1
  72. package/dist/client/_nuxt/{gY9iaHZB.js → LKwhzCVp.js} +1 -1
  73. package/dist/client/_nuxt/NSectionBlock.DF4F_onM.css +1 -0
  74. package/dist/client/_nuxt/Q9LIRUci.js +25 -0
  75. package/dist/client/_nuxt/{Cd6DbZRp.js → Tw6nDHWX.js} +1 -1
  76. package/dist/client/_nuxt/V_y36BGi.js +1 -0
  77. package/dist/client/_nuxt/{Cykwuu7C.js → Zl399FYQ.js} +1 -1
  78. package/dist/client/_nuxt/_ECCzcZq.js +666 -0
  79. package/dist/client/_nuxt/builds/latest.json +1 -1
  80. package/dist/client/_nuxt/builds/meta/24abe175-04a3-492b-88f5-fff7ea90b9c1.json +1 -0
  81. package/dist/client/_nuxt/entry.CyP5HdOH.css +1 -0
  82. package/dist/client/_nuxt/{DFXWDr_U.js → f1qyuWhx.js} +1 -1
  83. package/dist/client/_nuxt/index.BeOv1PgR.css +1 -0
  84. package/dist/client/_nuxt/jeEj0LFC.js +1 -0
  85. package/dist/client/_nuxt/tYBohD88.js +1 -0
  86. package/dist/client/index.html +21 -21
  87. package/dist/module.json +5 -1
  88. package/dist/runtime/plugins/view/FrameBox.vue +3 -1
  89. package/dist/runtime/plugins/view/Main.vue +11 -1
  90. package/dist/runtime/plugins/view/client.mjs +4 -2
  91. package/package.json +30 -30
  92. package/dist/client/_nuxt/BX_yun5E.js +0 -2
  93. package/dist/client/_nuxt/B_ROKca0.js +0 -1
  94. package/dist/client/_nuxt/Bbe7V3sH.js +0 -1
  95. package/dist/client/_nuxt/C5RWud-q.js +0 -99
  96. package/dist/client/_nuxt/C6_5TE6z.js +0 -1
  97. package/dist/client/_nuxt/CmQBHnO5.js +0 -1
  98. package/dist/client/_nuxt/Cm_JFd_X.js +0 -1
  99. package/dist/client/_nuxt/DUvGfBHy.js +0 -1
  100. package/dist/client/_nuxt/DptAiT3z.js +0 -2
  101. package/dist/client/_nuxt/NSectionBlock.BrczCkLG.css +0 -1
  102. package/dist/client/_nuxt/VE_JCmIg.js +0 -1
  103. package/dist/client/_nuxt/builds/meta/99d3dbae-7b79-44d1-9122-56d8f78db12b.json +0 -1
  104. package/dist/client/_nuxt/entry.CKLgeA_k.css +0 -1
  105. package/dist/client/_nuxt/pinia.zSt3sP7_.css +0 -1
  106. package/dist/client/_nuxt/qlO0zMWA.js +0 -48
  107. package/dist/client/_nuxt/tVhGyT2d.js +0 -1
@@ -1 +0,0 @@
1
- import{bN as ke,d as te,bO as oe,r as W,a as $,o as y,m as C,k as d,i as O,f as u,t as R,F as B,n as Z,G as F,p as j,a6 as re,bI as Oe,ab as Te,ax as ie,ac as xe,aA as Se,a$ as we,bJ as Xe,e as De,a2 as se,I as G,j as I,v as Y,bF as Ee,h as A,l as ee,au as Me,ak as ue,V as Ie,_ as le,X as Ce,A as ce,bB as $e,a9 as Ne,aa as Ue,bP as Le,ah as Re,U as Ae,bL as Ve,ap as je}from"./qlO0zMWA.js";import{_ as Be}from"./BKROsu9M.js";import{_ as fe}from"./D2TLnKEp.js";import{_ as pe}from"./BwcgHM_R.js";import{_ as He}from"./CwLZOs-U.js";import{S as de}from"./BcJws1i5.js";import{N as We}from"./C5RWud-q.js";import{_ as ze}from"./C6_5TE6z.js";import{_ as qe}from"./CFcWLH5V.js";import"./DXyT_6cw.js";import"./Dow1QcrX.js";import"./DFXWDr_U.js";import"./CYUk1Phb.js";var he={exports:{}};(function(z,N){(function(x,D){z.exports=D()})(globalThis,()=>(()=>{var U={794:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var o=_(586),k=function(){function m(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return m.prototype.parse=function(){var t=this.extractParts(this.expression);return this.normalize(t),this.validate(t),t},m.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 n=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!==""});n.length===0&&n.push("*"),n.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=n.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 r=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";r?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},m.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 h=f.replace(/\D/,""),c=h;return e.dayOfWeekStartIndexZero?h=="7"&&(c="0"):c=(parseInt(h)-1).toString(),f.replace(h,c)}),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 n in a)t[5]=t[5].replace(new RegExp(n,"gi"),a[n].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(f){var h=f.replace(/\D/,""),c=h;return e.monthStartIndexZero&&(c=(parseInt(h)+1).toString()),f.replace(h,c)});var r={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 r)t[4]=t[4].replace(new RegExp(s,"gi"),r[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 l=null;switch(i){case 4:l="12";break;case 5:l="6";break;case 6:l="9999";break;default:l=null;break}if(l!==null){var v=t[i].split("/");t[i]="".concat(v[0],"-").concat(l,"/").concat(v[1])}}},m.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},m.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)},m.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(),"'"))},m}();p.CronParser=k},728:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var o=_(910),k=_(794),m=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 n=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(n,"'.")),this.options.locale=n}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var n=a===void 0?{}:a,r=n.throwExceptionOnParseError,s=r===void 0?!0:r,i=n.verbose,l=i===void 0?!1:i,v=n.dayOfWeekStartIndexZero,f=v===void 0?!0:v,h=n.monthStartIndexZero,c=h===void 0?!1:h,L=n.use24HourTimeFormat,T=n.locale,H=T===void 0?null:T,V=n.tzOffset,E=V===void 0?0:V,q={throwExceptionOnParseError:s,verbose:l,dayOfWeekStartIndexZero:f,monthStartIndexZero:c,use24HourTimeFormat:L,locale:H,tzOffset:E},Q=new t(e,q);return Q.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 k.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var n=this.getTimeOfDayDescription(),r=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),l=this.getYearDescription();e+=n+r+i+s+l,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(v){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(v)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],n=this.expressionParts[2],r="";if(!o.StringUtilities.containsAny(a,t.specialCharacters)&&!o.StringUtilities.containsAny(n,t.specialCharacters)&&!o.StringUtilities.containsAny(e,t.specialCharacters))r+=this.i18n.atSpace()+this.formatTime(n,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!o.StringUtilities.containsAny(n,t.specialCharacters)){var s=a.split("-");r+=o.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(n,s[0],""),this.formatTime(n,s[1],""))}else if(!e&&n.indexOf(",")>-1&&n.indexOf("-")==-1&&n.indexOf("/")==-1&&!o.StringUtilities.containsAny(a,t.specialCharacters)){var i=n.split(",");r+=this.i18n.at();for(var l=0;l<i.length;l++)r+=" ",r+=this.formatTime(i[l],a,""),l<i.length-2&&(r+=","),l==i.length-2&&(r+=this.i18n.spaceAnd())}else{var v=this.getSecondsDescription(),f=this.getMinutesDescription(),h=this.getHoursDescription();if(r+=v,r&&f&&(r+=", "),r+=f,f===h)return r;r&&h&&(r+=", "),r+=h}return r},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(n){return n},function(n){return o.StringUtilities.format(e.i18n.everyX0Seconds(n),n)},function(n){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(n){return n=="0"?"":parseInt(n)<20?e.i18n.atX0SecondsPastTheMinute(n):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(n)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],n=this.expressionParts[2],r=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"&&n.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 r},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],n=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(n&&a.includes("-")&&this.expressionParts[1]!="0"){var r=Array.from(n.matchAll(/:00/g));if(r.length>1){var s=r[r.length-1].index;n=n.substring(0,s)+":59"+n.substring(s+3)}}return n},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),n=null;return this.expressionParts[5]=="*"?n="":n=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(r,s){var i=r;r.indexOf("#")>-1?i=r.substring(0,r.indexOf("#")):r.indexOf("L")>-1&&(i=i.replace("L",""));var l=parseInt(i);if(e.options.tzOffset){var v=e.expressionParts[2],f=parseInt(v)+(e.options.tzOffset?e.options.tzOffset:0);f>=24?l++:f<0&&l--,l>6?l=0:l<0&&(l=6)}var h=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[l]:a[l];if(r.indexOf("#")>-1){var c=null,L=r.substring(r.indexOf("#")+1),T=r.substring(0,r.indexOf("#"));switch(L){case"1":c=e.i18n.first(T);break;case"2":c=e.i18n.second(T);break;case"3":c=e.i18n.third(T);break;case"4":c=e.i18n.fourth(T);break;case"5":c=e.i18n.fifth(T);break}h=c+" "+h}return h},function(r){return parseInt(r)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(r),r)},function(r){var s=r.substring(0,r.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(r){var s=null;if(r.indexOf("#")>-1){var i=r.substring(r.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(r.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(r.replace("L",""));else{var l=e.expressionParts[3]!="*";s=l?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(r)}return s}),n},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),n=this.getSegmentDescription(this.expressionParts[4],"",function(r,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(r)-1]:a[parseInt(r)-1]},function(r){return parseInt(r)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0Months(r),r)},function(r){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(r){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return n},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,n=this.expressionParts[3];switch(n){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var r=n.match(/(\d{1,2}W)|(W\d{1,2})/);if(r){var s=parseInt(r[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 l=n.match(/L-(\d{1,2})/);if(l){var v=l[1];a=o.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(v),v);break}else{if(n=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(n,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(n){return/^\d+$/.test(n)?new Date(parseInt(n),1).getFullYear().toString():n},function(n){return o.StringUtilities.format(e.i18n.commaEveryX0Years(n),n)},function(n){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,n,r,s,i){var l=null,v=e.indexOf("/")>-1,f=e.indexOf("-")>-1,h=e.indexOf(",")>-1;if(!e)l="";else if(e==="*")l=a;else if(!v&&!f&&!h)l=o.StringUtilities.format(i(e),n(e));else if(h){for(var c=e.split(","),L="",T=0;T<c.length;T++)if(T>0&&c.length>2&&(L+=",",T<c.length-1&&(L+=" ")),T>0&&c.length>1&&(T==c.length-1||c.length==2)&&(L+="".concat(this.i18n.spaceAnd()," ")),c[T].indexOf("/")>-1||c[T].indexOf("-")>-1){var H=c[T].indexOf("-")>-1&&c[T].indexOf("/")==-1,V=this.getSegmentDescription(c[T],a,n,r,H?this.i18n.commaX0ThroughX1:s,i);H&&(V=V.replace(", ","")),L+=V}else v?L+=this.getSegmentDescription(c[T],a,n,r,s,i):L+=n(c[T]);v?l=L:l=o.StringUtilities.format(i(e),L)}else if(v){var c=e.split("/");if(l=o.StringUtilities.format(r(c[1]),c[1]),c[0].indexOf("-")>-1){var E=this.generateRangeSegmentDescription(c[0],s,n);E.indexOf(", ")!=0&&(l+=", "),l+=E}else if(c[0].indexOf("*")==-1){var q=o.StringUtilities.format(i(c[0]),n(c[0]));q=q.replace(", ",""),l+=o.StringUtilities.format(this.i18n.commaStartingX0(),q)}}else f&&(l=this.generateRangeSegmentDescription(e,s,n));return l},t.prototype.generateRangeSegmentDescription=function(e,a,n){var r="",s=e.split("-"),i=n(s[0],1),l=n(s[1],2),v=a(e);return r+=o.StringUtilities.format(v,i,l),r},t.prototype.formatTime=function(e,a,n){var r=0,s=0;this.options.tzOffset&&(r=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)+r,l=parseInt(a)+s;l>=60?(l-=60,i+=1):l<0&&(l+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var v="",f=!1;this.options.use24HourTimeFormat||(f=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),v=f?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var h="";return n&&(h=":".concat(("00"+n).substring(n.length))),"".concat(f?v:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+l.toString()).substring(l.toString().length)).concat(h).concat(f?"":v)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();p.ExpressionDescriptor=m},336:(S,p,_)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var o=_(751),k=function(){function m(){}return m.prototype.load=function(t){t.en=new o.en},m}();p.enLocaleLoader=k},751:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var _=function(){function o(){}return o.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},o.prototype.atX0MinutesPastTheHourGt20=function(){return null},o.prototype.commaMonthX0ThroughMonthX1=function(){return null},o.prototype.commaYearX0ThroughYearX1=function(){return null},o.prototype.use24HourTimeFormatByDefault=function(){return!1},o.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},o.prototype.everyMinute=function(){return"every minute"},o.prototype.everyHour=function(){return"every hour"},o.prototype.atSpace=function(){return"At "},o.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},o.prototype.at=function(){return"At"},o.prototype.spaceAnd=function(){return" and"},o.prototype.everySecond=function(){return"every second"},o.prototype.everyX0Seconds=function(){return"every %s seconds"},o.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},o.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},o.prototype.everyX0Minutes=function(){return"every %s minutes"},o.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},o.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},o.prototype.everyX0Hours=function(){return"every %s hours"},o.prototype.betweenX0AndX1=function(){return"between %s and %s"},o.prototype.atX0=function(){return"at %s"},o.prototype.commaEveryDay=function(){return", every day"},o.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},o.prototype.commaX0ThroughX1=function(){return", %s through %s"},o.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},o.prototype.first=function(){return"first"},o.prototype.second=function(){return"second"},o.prototype.third=function(){return"third"},o.prototype.fourth=function(){return"fourth"},o.prototype.fifth=function(){return"fifth"},o.prototype.commaOnThe=function(){return", on the "},o.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},o.prototype.lastDay=function(){return"the last day"},o.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},o.prototype.commaOnlyOnX0=function(){return", only on %s"},o.prototype.commaAndOnX0=function(){return", and on %s"},o.prototype.commaEveryX0Months=function(){return", every %s months"},o.prototype.commaOnlyInX0=function(){return", only in %s"},o.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},o.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},o.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},o.prototype.firstWeekday=function(){return"first weekday"},o.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},o.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},o.prototype.commaEveryX0Days=function(){return", every %s days"},o.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},o.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},o.prototype.commaEveryHour=function(){return", every hour"},o.prototype.commaEveryX0Years=function(){return", every %s years"},o.prototype.commaStartingX0=function(){return", starting %s"},o.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},o}();p.en=_},586:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function _(k,m){if(!k)throw new Error(m)}var o=function(){function k(){}return k.secondRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},k.minuteRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},k.hourRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},k.dayOfMonthRange=function(m){for(var t=m.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);_(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},k.monthRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=1&&n<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},k.dayOfWeekRange=function(m,t){for(var e=m.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var n=parseInt(e[a],10);_(n>=0&&n<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},k}();p.default=o},910:(S,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var _=function(){function o(){}return o.format=function(k){for(var m=[],t=1;t<arguments.length;t++)m[t-1]=arguments[t];return k.replace(/%s/g,function(e){return m.shift()})},o.containsAny=function(k,m){return m.some(function(t){return k.indexOf(t)>-1})},o}();p.StringUtilities=_}},x={};function D(S){var p=x[S];if(p!==void 0)return p.exports;var _=x[S]={exports:{}};return U[S](_,_.exports,D),_.exports}var X={};return(()=>{var S=X;Object.defineProperty(S,"__esModule",{value:!0}),S.toString=void 0;var p=D(728),_=D(336);p.ExpressionDescriptor.initialize(new _.enLocaleLoader),S.default=p.ExpressionDescriptor;var o=p.ExpressionDescriptor.toString;S.toString=o})(),X})())})(he);var Pe=he.exports;const Ye=ke(Pe),Fe=["title"],Ge={"flex-none":"","text-left":""},Ze={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Je={class:"truncate"},Qe={"text-xs":"",op50:""},Ke=d("div",{"x-divider":""},null,-1),et={key:0},tt=["onClick"],nt=d("div",{"x-divider":""},null,-1),ot=te({__name:"CronCollection",props:{collection:{}},setup(z){const N=z,U=oe(),x=W(!0),D=$(()=>Ye.toString(N.collection.cron));return(X,S)=>{const p=re,_=fe;return y(),C("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:u(D),onClick:S[0]||(S[0]=o=>x.value=!u(x))},[d("div",Ge,[O(p,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(x)?90:0,transition:""},null,8,["transform-rotate"])]),d("span",Ze,[O(_,{class:"font-mono n-primary",textContent:R(X.collection.cron)},null,8,["textContent"]),d("span",Je,R(u(D)),1),d("span",Qe,"("+R(X.collection.tasks.length)+")",1)])],8,Fe),Ke,u(x)?(y(),C("ul",et,[(y(!0),C(B,null,Z(X.collection.tasks,o=>(y(),C("li",{key:o},[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":u(U)===o}]),onClick:k=>U.value=o},R(o),11,tt),nt]))),128))])):j("",!0)])}}}),rt={"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=d("div",{"w-5":"","x-divider":""},null,-1),dt=d("div",{"flex-none":""}," Default Inputs ",-1),ht=d("div",{"x-divider":""},null,-1),vt={key:0,border:"b base",relative:"","n-code-block":""},mt={flex:"~ wrap","w-full":""},yt=["onClick"],gt=d("div",{border:"b base","flex-auto":""},null,-1),_t={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},bt=d("div",null,"Result",-1),kt={key:1,"text-xs":"",op50:""},Ot=d("div",{"flex-auto":""},null,-1),Tt=d("div",{op50:""}," Tasks finished in ",-1),xt=te({__name:"ServerTaskDetails",props:{task:{}},emits:["open-default-input"],setup(z,{emit:N}){const U=z,x=N,D=W({payload:{}}),{inputDefaults:X}=ue("serverRoutes"),[S,p]=Oe(),_=Te(),o=ie({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),k=$(()=>JSON.stringify(o.data,null,2)),m=$(()=>o.contentType.includes("application/json")?"json":"text"),t=W(!1),e=W(!1),a=xe(),n=W(),r=["json"],s=W(r[0]),i=ie({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),l=$({get:()=>i[n.value],set:g=>{i[n.value]=g}}),v=$(()=>({...V(X.value.query),...V(i.query)})),f=$(()=>({...V(X.value.headers)})),h=$(()=>Object.keys(D.value?.payload??{}).length?{...D.value}:void 0),c=$(()=>h.value?"POST":"GET"),L=$(()=>{let g=window?.location.origin;return g.charAt(g.length-1)==="/"&&(g=g.slice(0,-1)),g}),T=$(()=>{let g=new URLSearchParams(v.value).toString();g&&(g=`?${g}`);const b=`/_nitro/tasks/${U.task.name}${g}`;let M=_.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+b}),H=$(()=>L.value+T.value);function V(g){const b=Object.fromEntries(g.filter(({active:M,key:P,value:J})=>M&&P&&J!==void 0).map(({key:M,value:P})=>[M,P]));return Object.entries(b).length?b:void 0}async function E(){e.value=!0,t.value=!0;const g=Date.now();Ie("server-tasks:run",{method:c.value});try{o.data=await $fetch(H.value,{method:"POST",headers:f.value,query:v.value,body:h.value,onResponse({response:b}){o.contentType=(b.headers.get("content-type")||"").toString().toLowerCase().trim(),o.statusCode=b.status,o.error=void 0},onResponseError(b){o.error=b.response._data,o.data=b.response._data}})}catch{}t.value=!1,o.fetchTime=Date.now()-g}const q=$(()=>{const g=[];return g.push({name:"Query",slug:"query",length:i.query.length}),g.push({name:"Body",slug:"body",length:i.body.length}),g});Se(()=>{if(s.value==="json"&&typeof D.value=="string")try{D.value=JSON.parse(D.value)}catch{}});const Q=we("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});Xe([i,n],()=>{const g=Q.value?.find(b=>b.task===U.task.name);if(g){n.value||(n.value=g.tab),g.tab!==n.value&&(g.tab=n.value);const{body:b,query:M,headers:P}=g.inputs;Object.assign(i,{body:b,query:M,headers:P})}else{const b={task:U.task.name,tab:"query",inputs:i};Q.value.push(b),n.value||(n.value=b.tab)}},{immediate:!0,deep:!0,debounce:500});const me=De();return(g,b)=>{const M=le,P=Ce,J=re,ae=pe,ye=ce,ge=$e,ne=fe,_e=He,K=se("tooltip");return y(),C("div",rt,[d("div",at,[d("div",it,[G((y(),C("div",null,[O(M,{class:F(["n-badge-base n-sm",("getRequestMethodClass"in g?g.getRequestMethodClass:u(Ee))(u(c))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:I(()=>[Y(R(u(c)),1)]),_:1},8,["class"])])),[[K,`Method is ${u(c)} as ${u(c)==="GET"?"no":""} json body is sent`]]),d("div",st,[O(P,{"model-value":u(T),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),d("div",ut,[G(O(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:b[0]||(b[0]=w=>u(me)(u(H),"server-task-url"))},null,512),[[K,"Copy URL"]]),G(O(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:b[1]||(b[1]=w=>u(a)(g.task.handler))},null,512),[[K,"Open in Editor"]])])]),O(M,{"h-full":"",n:"primary solid",onClick:E},{default:I(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),d("div",lt,[(y(!0),C(B,null,Z(u(q),w=>G((y(),A(M,{key:w.slug,class:F(u(n)===w.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:be=>n.value=w.slug},{default:I(()=>[O(J,{icon:("ServerRouteTabIcons"in g?g.ServerRouteTabIcons:u(de))[w.slug]},null,8,["icon"]),d("div",ct,[Y(R(w.name)+" "+R(w?.length?`(${w.length})`:"")+" ",1),d("span",null,R(u(X)[w.slug]?.length?`(${u(X)[w.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[K,w.name]])),128))]),O(u(S),null,{default:I(()=>[O(ae,{modelValue:u(l),"onUpdate:modelValue":b[4]||(b[4]=w=>ee(l)?l.value=w:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:I(()=>[u(X)[u(n)]?.length?(y(),C(B,{key:0},[d("div",ft,[pt,dt,O(M,{icon:"i-carbon-edit",border:!1,onClick:b[2]||(b[2]=w=>x("open-default-input"))}),ht]),O(ae,{modelValue:u(X)[u(n)],"onUpdate:modelValue":b[3]||(b[3]=w=>u(X)[u(n)]=w),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),u(l)?(y(),C("div",vt,[u(n)==="body"?(y(),C(B,{key:0},[d("div",mt,[(y(),C(B,null,Z(r,w=>d("button",{key:w,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":w!==u(s)}),onClick:be=>s.value=w},[d("div",{class:F({op30:w!==u(s)}),"font-mono":""},R(w),3)],10,yt)),64)),gt]),u(s)==="input"?(y(),A(u(p),{key:0})):u(s)==="json"?(y(),A(u(We),Me({key:1,modelValue:u(D),"onUpdate:modelValue":b[5]||(b[5]=w=>ee(D)?D.value=w:null),class:[[g.$colorMode.value==="dark"?"jse-theme-dark":"light"],"json-editor-vue of-auto text-sm outline-none"]},g.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(y(),A(u(p),{key:1}))])):j("",!0),u(e)?u(t)?(y(),A(ge,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:I(()=>[Y(" Running... ")]),_:1})):(y(),C(B,{key:3},[d("div",_t,[bt,u(o).error?(y(),A(ne,{key:0,n:"red"},{default:I(()=>[Y(" Error ")]),_:1})):j("",!0),O(ne,{n:u(o).error?"orange":"green",textContent:R(u(o).statusCode)},null,8,["n","textContent"]),u(o).contentType?(y(),C("code",kt,R(u(o).contentType),1)):j("",!0),Ot,Tt,O(ne,{n:"green"},{default:I(()=>[Y(R(u(o).fetchTime)+" ms ",1)]),_:1})]),O(_e,{"flex-auto":"","overflow-auto":"","py-2":"",code:u(k),lang:u(m)},null,8,["code","lang"])],64)):(y(),A(ye,{key:1},{default:I(()=>[O(M,{n:"primary",onClick:E},{default:I(()=>[O(J,{icon:"carbon:send"}),Y(" Run task ")]),_:1})]),_:1}))])}}}),St={"flex-none":"","text-left":""},wt={flex:"","items-center":"","text-sm":"","font-mono":""},Xt=d("div",{"x-divider":""},null,-1),ve=te({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(z){const N=W(!0),U=oe();return(x,D)=>{const X=re,S=ve;return y(),C("div",null,[d("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":u(U)===x.item.name}]),style:Ne({paddingLeft:`calc(0.5rem + ${x.index*1.5}em)`}),onClick:D[0]||(D[0]=p=>{N.value=!u(N),U.value=x.item.name})},[d("div",St,[x.item.type==="collection"?(y(),A(X,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":u(N)?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),d("span",wt,[x.item.type==="collection"?(y(),A(X,{key:0,title:`${x.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(y(),A(X,{key:1,icon:"carbon:play",ml3:"",mr1:""})),Y(" "+R(x.item.name),1)])],6),Xt,u(N)?Ue(x.$slots,"default",{key:0},()=>[(y(!0),C(B,null,Z(x.item.tasks,p=>(y(),A(S,{key:p.name,item:p,index:x.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),Dt={flex:"~ gap1","text-sm":""},Et={key:0,op50:""},Mt={op50:""},It=d("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1),Ct=d("span",{op75:""},"Select a task to start",-1),$t=d("div",{p4:"",border:"b base"},[d("span",{"text-lg":""},"Default Inputs"),d("br"),d("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1),Yt=te({__name:"server-tasks",setup(z){const N=W(!1),U=Le(),x=$(()=>Object.keys(U.value?.tasks??{}).map(n=>({name:n,...U.value.tasks[n],type:"task"}))),D=$(()=>Object.entries(U.value?.scheduledTasks??{}).map(([n,r])=>({cron:n,tasks:r}))),X=oe(),{view:S,selectedTask:p,inputDefaults:_}=ue("serverTasks"),o=$(()=>{!X.value&&p.value&&(X.value=p.value.name);const n=x.value.find(r=>r.name===X.value);return X.value!==p.value?.name&&n&&(p.value=n),n}),k=W(""),m=$(()=>new Re(x.value,{keys:["key","description"],shouldSort:!0})),t=$(()=>k.value?m.value.search(k.value).map(r=>r.item):x.value),e=$(()=>{const n=[],r=(i,l)=>{i.tasks||=[],i.tasks.push(l)},s=(i,l)=>{const v=l?l.tasks?.find(h=>h.name===i):n.find(h=>h.name===i);if(v)return{...v,type:"collection"};const f={name:i,handler:i,description:"",type:"collection",tasks:[]};return l?r(l,f):n.push(f),f};return t.value.forEach(i=>{let l;const v={...i,type:"task"},h=i.name.split(":").concat();h.length>0&&h[h.length-1].includes(".")&&h.pop(),h.forEach(c=>{l=s(c,l)}),l?r(l,v):n.push(v)}),n});function a(){S.value=S.value==="tree"?"list":"tree"}return(n,r)=>{const s=le,i=Be,l=ot,v=Ae,f=xt,h=je,c=ce,L=pe,T=ze,H=qe,V=se("tooltip");return y(),C(B,null,[O(v,{"storage-key":"tab-server-tasks"},{left:I(()=>[O(v,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:I(()=>[O(i,{search:u(k),"onUpdate:search":r[1]||(r[1]=E=>ee(k)?k.value=E:null),pb2:""},{actions:I(()=>[G(O(s,{"text-lg":"",icon:u(S)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(O(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:r[0]||(r[0]=E=>N.value=!u(N))},null,512),[[V,"Default Inputs"]])]),default:I(()=>[d("div",Dt,[u(k)?(y(),C("span",Et,R(u(t).length)+" matched · ",1)):j("",!0),d("span",Mt,R(u(x)?.length)+" tasks in total",1)])]),_:1},8,["search"]),(y(!0),C(B,null,Z(u(S)==="tree"?u(e):u(t),E=>(y(),A(ve,{key:E.name,item:E},null,8,["item"]))),128))]),right:I(()=>[It,d("div",null,[d("ul",null,[(y(!0),C(B,null,Z(u(D),E=>(y(),C("li",{key:E.cron},[O(l,{collection:E},null,8,["collection"])]))),128))])])]),_:1})]),right:I(()=>[(y(),A(Ve,{max:10},[u(o)?(y(),A(f,{key:u(o).name,task:u(o),onOpenDefaultInput:r[2]||(r[2]=E=>N.value=!0)},null,8,["task"])):j("",!0)],1024)),u(o)?j("",!0):(y(),A(c,{key:0},{default:I(()=>[O(h,{px6:"",py2:""},{default:I(()=>[Ct]),_:1})]),_:1}))]),_:1}),O(H,{modelValue:u(N),"onUpdate:modelValue":r[4]||(r[4]=E=>ee(N)?N.value=E:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:r[5]||(r[5]=E=>N.value=!1)},{default:I(()=>[d("div",null,[$t,O(T,{text:`Query ${u(_).query.length?`(${u(_).query.length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in n?n.ServerRouteTabIcons:u(de)).query},{default:I(()=>[O(L,{modelValue:u(_).query,"onUpdate:modelValue":r[3]||(r[3]=E=>u(_).query=E),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{Yt as default};