@nuxt/devtools 1.3.6 → 1.3.7

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 (81) hide show
  1. package/dist/chunks/module-main.mjs +56 -5
  2. package/dist/client/200.html +21 -22
  3. package/dist/client/404.html +21 -22
  4. package/dist/client/_nuxt/{D1ai4dMD.js → -7tQh8ue.js} +1 -1
  5. package/dist/client/_nuxt/{wuvOqWUR.js → 0DKPJLdZ.js} +1 -1
  6. package/dist/client/_nuxt/{WM2j0JTY.js → 99S8uY5k.js} +1 -1
  7. package/dist/client/_nuxt/BLAdP9Oz.js +1 -0
  8. package/dist/client/_nuxt/{Cts2COMF.js → BMyxYGQm.js} +1 -1
  9. package/dist/client/_nuxt/{BqquXJFk.js → BP18yFEx.js} +1 -1
  10. package/dist/client/_nuxt/{BJ7-F_-K.js → BQl-tQOv.js} +1 -1
  11. package/dist/client/_nuxt/{BrtwsvwD.js → BZUqxYL0.js} +1 -1
  12. package/dist/client/_nuxt/{le4cTzpD.js → BaLIfrmo.js} +1 -1
  13. package/dist/client/_nuxt/{iVffBGw4.js → Bh1omw2R.js} +1 -1
  14. package/dist/client/_nuxt/{gXEBKoIH.js → BkolCBD4.js} +1 -1
  15. package/dist/client/_nuxt/{MxM3SGVW.js → Bllu6NyJ.js} +1 -1
  16. package/dist/client/_nuxt/{BNQzKmJG.js → BpkW35lO.js} +1 -1
  17. package/dist/client/_nuxt/{23UkCXk9.js → Bus6nM-z.js} +1 -1
  18. package/dist/client/_nuxt/{CeEyhwqV.js → Bwt-Gbvc.js} +1 -1
  19. package/dist/client/_nuxt/{DmAOJaWQ.js → By9REDlT.js} +1 -1
  20. package/dist/client/_nuxt/{D4gp4vy1.js → BzGSKhkq.js} +1 -1
  21. package/dist/client/_nuxt/{BBl1za1W.js → BzkN-UyG.js} +1 -1
  22. package/dist/client/_nuxt/{VY7KastK.js → C6wwj7pE.js} +2 -2
  23. package/dist/client/_nuxt/{DcU8UfXq.js → CAFgyn5d.js} +1 -1
  24. package/dist/client/_nuxt/{CGDVgZTR.js → CKZ42KS2.js} +1 -1
  25. package/dist/client/_nuxt/{B11h7Ese.js → CLQMbejQ.js} +1 -1
  26. package/dist/client/_nuxt/{DRbi-AHv.js → CN5QdCF_.js} +1 -1
  27. package/dist/client/_nuxt/{DCRELQON.js → CRBEBDvl.js} +1 -1
  28. package/dist/client/_nuxt/{CzF78jgR.js → CS0gb7jX.js} +1 -1
  29. package/dist/client/_nuxt/{mNWHE61E.js → CZ3tPvoZ.js} +1 -1
  30. package/dist/client/_nuxt/{4Dr4Cj7R.js → CZQflZba.js} +1 -1
  31. package/dist/client/_nuxt/{qjjxT3sB.js → CaJqtG8l.js} +1 -1
  32. package/dist/client/_nuxt/{CoViSLbB.js → CfJ91qCF.js} +1 -1
  33. package/dist/client/_nuxt/{BKyy5G7o.js → DALAf-yd.js} +1 -1
  34. package/dist/client/_nuxt/{D0a-fr3P.js → DCLVSMnX.js} +1 -1
  35. package/dist/client/_nuxt/{CSjnDvWq.js → DEFgdXN8.js} +1 -1
  36. package/dist/client/_nuxt/{CRLCUxrw.js → DJinuH1o.js} +1 -1
  37. package/dist/client/_nuxt/{BIR-zdoB.js → DK_JXXAF.js} +18 -18
  38. package/dist/client/_nuxt/{rLhPImdI.js → DNkCGu9V.js} +1 -1
  39. package/dist/client/_nuxt/{BHXtCixK.js → DPOdNjjh.js} +1 -1
  40. package/dist/client/_nuxt/{BOxnhk4W.js → DRptvKkQ.js} +1 -1
  41. package/dist/client/_nuxt/{CaYna3zI.js → Defveh6H.js} +1 -1
  42. package/dist/client/_nuxt/{BbLM2rJC.js → Dflne9qt.js} +1 -1
  43. package/dist/client/_nuxt/{BV7UswB-.js → DgiutZgW.js} +1 -1
  44. package/dist/client/_nuxt/{C1sxBnXr.js → Dkcrxbkn.js} +1 -1
  45. package/dist/client/_nuxt/{BD4ddXSe.js → Dmr9BwAJ.js} +1 -1
  46. package/dist/client/_nuxt/{C3yfYbN6.js → Dn64Kuww.js} +1 -1
  47. package/dist/client/_nuxt/{EGB1eG4E.js → DrwtQkzw.js} +1 -1
  48. package/dist/client/_nuxt/{zd9j1bFf.js → DtMLpJCs.js} +1 -1
  49. package/dist/client/_nuxt/{DI2S-mmO.js → DuFGBY9A.js} +1 -1
  50. package/dist/client/_nuxt/{CIBl9CV2.js → DwnntITU.js} +1 -1
  51. package/dist/client/_nuxt/Dxm8HtZr.js +1 -0
  52. package/dist/client/_nuxt/{BMGqu_eq.js → GiZoEwQH.js} +1 -1
  53. package/dist/client/_nuxt/{C1dTBAc9.js → H8AztYTG.js} +1 -1
  54. package/dist/client/_nuxt/{CKhZMZp5.js → JYG5gMLr.js} +1 -1
  55. package/dist/client/_nuxt/{DUMJFAjE.js → NWgDy8rj.js} +1 -1
  56. package/dist/client/_nuxt/{D-oZYQtF.js → PiOA0xLD.js} +1 -1
  57. package/dist/client/_nuxt/{DSpVgsos.js → Syz7eBvK.js} +1 -1
  58. package/dist/client/_nuxt/{D2vAxeLa.js → TIMkSDoD.js} +1 -1
  59. package/dist/client/_nuxt/{xooHg0zg.js → VV6dbUWb.js} +1 -1
  60. package/dist/client/_nuxt/{CJyLsSWQ.js → VtGdE5E6.js} +1 -1
  61. package/dist/client/_nuxt/{D1PyVebX.js → WGK50LCp.js} +1 -1
  62. package/dist/client/_nuxt/{BTgTnXCo.js → YOyY9aeM.js} +1 -1
  63. package/dist/client/_nuxt/builds/latest.json +1 -1
  64. package/dist/client/_nuxt/builds/meta/3221e7ca-ad23-40c3-8243-9520a1ede2e4.json +1 -0
  65. package/dist/client/_nuxt/{Cu-emya-.js → dsru6oeh.js} +1 -1
  66. package/dist/client/_nuxt/{entry.IakuBfY1.css → entry.hxdKUDpu.css} +1 -1
  67. package/dist/client/_nuxt/error-404.CSBAyIwS.css +1 -0
  68. package/dist/client/_nuxt/error-500.DL0jmuMi.css +1 -0
  69. package/dist/client/_nuxt/{DaiXQWiC.js → iHPNd0oS.js} +1 -1
  70. package/dist/client/_nuxt/{8B46VhQd.js → ix9IAXj6.js} +1 -1
  71. package/dist/client/_nuxt/{JA61WTyb.js → oBHhz7g1.js} +1 -1
  72. package/dist/client/_nuxt/{xLwx2Q8v.js → tRGVf0Jt.js} +1 -1
  73. package/dist/client/index.html +21 -22
  74. package/dist/module.json +1 -1
  75. package/package.json +11 -10
  76. package/dist/client/_nuxt/D5r6TWiw.js +0 -1
  77. package/dist/client/_nuxt/DKqjZTFM.js +0 -1
  78. package/dist/client/_nuxt/builds/meta/fa3e000a-5062-43b8-9d7a-e19f63f0ca92.json +0 -1
  79. package/dist/client/_nuxt/error-404.CdZ-8tbX.css +0 -1
  80. package/dist/client/_nuxt/error-500.4KK_ddFR.css +0 -1
  81. package/dist/client/_nuxt/fFj225Ww.js +0 -1
@@ -1 +1 @@
1
- import{bP as Oe,d as ee,bQ as re,r as H,a as U,o as g,m as $,k as h,i as O,f as l,t as N,F as B,n as Z,G as F,p as j,a6 as oe,bL as Te,ao as xe,ab as Se,az as se,ac as we,aC as Xe,b1 as De,bM as Ee,e as Me,a2 as ue,I as G,j as I,v as Y,bI as Ce,h as A,l as K,ax as Ie,ak as le,V as $e,_ as ce,X as Ue,A as fe,an as Le,a9 as Re,aa as Ne,bR as Ae,ah as Ve,U as je,bO as Be,as as We}from"./BIR-zdoB.js";import{_ as He}from"./4Dr4Cj7R.js";import{_ as pe}from"./C1dTBAc9.js";import{_ as de}from"./DKqjZTFM.js";import{_ as ze}from"./BqquXJFk.js";import{S as he}from"./BcJws1i5.js";import{e as qe}from"./xooHg0zg.js";import{_ as Pe}from"./D-oZYQtF.js";import{_ as Ye}from"./CzF78jgR.js";import"./DaiXQWiC.js";import"./BV7UswB-.js";import"./BrtwsvwD.js";import"./BTgTnXCo.js";var ve={exports:{}};(function(q,L){(function(T,E){q.exports=E()})(globalThis,()=>(()=>{var R={794:(x,p,b)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var o=b(586),d=function(){function y(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return y.prototype.parse=function(){var t,e,a=(t=this.expression)!==null&&t!==void 0?t:"";if(a.startsWith("@")){var r=this.parseSpecial(this.expression);e=this.extractParts(r)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},y.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},a=e[t];if(!a)throw new Error("Unknown special expression.");return a},y.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),a=0;a<e.length;a++)if(e[a].includes(",")){var r=e[a].split(",").map(function(s){return s.trim()}).filter(function(s){return s!==""}).map(function(s){return isNaN(Number(s))?s:Number(s)}).filter(function(s){return s!==null&&s!==""});r.length===0&&r.push("*"),r.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=r.map(function(s){return s!==null?s.toString():""}).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var n=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";n?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},y.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(c){var m=c.replace(/\D/,""),f=m;return e.dayOfWeekStartIndexZero?m=="7"&&(f="0"):f=(parseInt(m)-1).toString(),c.replace(m,f)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var a={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in a)t[5]=t[5].replace(new RegExp(r,"gi"),a[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(c){var m=c.replace(/\D/,""),f=m;return e.monthStartIndexZero&&(f=(parseInt(m)+1).toString()),c.replace(m,f)});var n={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var s in n)t[4]=t[4].replace(new RegExp(s,"gi"),n[s].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var i=0;i<t.length;i++)if(t[i].indexOf(",")!=-1&&(t[i]=t[i].split(",").filter(function(c){return c!==""}).join(",")||"*"),t[i]=="*/1"&&(t[i]="*"),t[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[i])){var u=null;switch(i){case 4:u="12";break;case 5:u="6";break;case 6:u="9999";break;default:u=null;break}if(u!==null){var v=t[i].split("/");t[i]="".concat(v[0],"-").concat(u,"/").concat(v[1])}}},y.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},y.prototype.validateRange=function(t){o.default.secondRange(t[0]),o.default.minuteRange(t[1]),o.default.hourRange(t[2]),o.default.dayOfMonthRange(t[3]),o.default.monthRange(t[4],this.monthStartIndexZero),o.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},y.prototype.assertNoInvalidCharacters=function(t,e){var a=e.match(/[A-KM-VX-Z]+/gi);if(a&&a.length)throw new Error("".concat(t," part contains invalid values: '").concat(a.toString(),"'"))},y}();p.CronParser=d},728:(x,p,b)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var o=b(910),d=b(794),y=function(){function t(e,a){if(this.expression=e,this.options=a,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var r=a===void 0?{}:a,n=r.throwExceptionOnParseError,s=n===void 0?!0:n,i=r.verbose,u=i===void 0?!1:i,v=r.dayOfWeekStartIndexZero,c=v===void 0?!0:v,m=r.monthStartIndexZero,f=m===void 0?!1:m,C=r.use24HourTimeFormat,S=r.locale,W=S===void 0?null:S,V=r.tzOffset,D=V===void 0?0:V,z={throwExceptionOnParseError:s,verbose:u,dayOfWeekStartIndexZero:c,monthStartIndexZero:f,use24HourTimeFormat:C,locale:W,tzOffset:D},te=new t(e,z);return te.getFullDescription()},t.initialize=function(e,a){a===void 0&&(a="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=a,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var a=new d.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var r=this.getTimeOfDayDescription(),n=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),u=this.getYearDescription();e+=r+n+i+s+u,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(v){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(v)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],r=this.expressionParts[2],n="";if(!o.StringUtilities.containsAny(a,t.specialCharacters)&&!o.StringUtilities.containsAny(r,t.specialCharacters)&&!o.StringUtilities.containsAny(e,t.specialCharacters))n+=this.i18n.atSpace()+this.formatTime(r,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!o.StringUtilities.containsAny(r,t.specialCharacters)){var s=a.split("-");n+=o.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(r,s[0],""),this.formatTime(r,s[1],""))}else if(!e&&r.indexOf(",")>-1&&r.indexOf("-")==-1&&r.indexOf("/")==-1&&!o.StringUtilities.containsAny(a,t.specialCharacters)){var i=r.split(",");n+=this.i18n.at();for(var u=0;u<i.length;u++)n+=" ",n+=this.formatTime(i[u],a,""),u<i.length-2&&(n+=","),u==i.length-2&&(n+=this.i18n.spaceAnd())}else{var v=this.getSecondsDescription(),c=this.getMinutesDescription(),m=this.getHoursDescription();if(n+=v,n&&c&&(n+=", "),n+=c,c===m)return n;n&&m&&(n+=", "),n+=m}return n},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(r){return r},function(r){return o.StringUtilities.format(e.i18n.everyX0Seconds(r),r)},function(r){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(r){return r=="0"?"":parseInt(r)<20?e.i18n.atX0SecondsPastTheMinute(r):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(r)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],r=this.expressionParts[2],n=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return o.StringUtilities.format(e.i18n.everyX0Minutes(s),s)},function(s){return e.i18n.minutesX0ThroughX1PastTheHour()},function(s){try{return s=="0"&&r.indexOf("/")==-1&&a==""?e.i18n.everyHour():parseInt(s)<20?e.i18n.atX0MinutesPastTheHour(s):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(s)}catch{return e.i18n.atX0MinutesPastTheHour(s)}});return n},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],r=this.getSegmentDescription(a,this.i18n.everyHour(),function(i){return e.formatTime(i,"0","")},function(i){return o.StringUtilities.format(e.i18n.everyX0Hours(i),i)},function(i){return e.i18n.betweenX0AndX1()},function(i){return e.i18n.atX0()});if(r&&a.includes("-")&&this.expressionParts[1]!="0"){var n=Array.from(r.matchAll(/:00/g));if(n.length>1){var s=n[n.length-1].index;r=r.substring(0,s)+":59"+r.substring(s+3)}}return r},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),r=null;return this.expressionParts[5]=="*"?r="":r=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,s){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var u=parseInt(i);if(e.options.tzOffset){var v=e.expressionParts[2],c=parseInt(v)+(e.options.tzOffset?e.options.tzOffset:0);c>=24?u++:c<0&&u--,u>6?u=0:u<0&&(u=6)}var m=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[u]:a[u];if(n.indexOf("#")>-1){var f=null,C=n.substring(n.indexOf("#")+1),S=n.substring(0,n.indexOf("#"));switch(C){case"1":f=e.i18n.first(S);break;case"2":f=e.i18n.second(S);break;case"3":f=e.i18n.third(S);break;case"4":f=e.i18n.fourth(S);break;case"5":f=e.i18n.fifth(S);break}m=f+" "+m}return m},function(n){return parseInt(n)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(n),n)},function(n){var s=n.substring(0,n.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(n){var s=null;if(n.indexOf("#")>-1){var i=n.substring(n.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(n.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(n.replace("L",""));else{var u=e.expressionParts[3]!="*";s=u?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(n)}return s}),r},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),r=this.getSegmentDescription(this.expressionParts[4],"",function(n,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(n)-1]:a[parseInt(n)-1]},function(n){return parseInt(n)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0Months(n),n)},function(n){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return r},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,r=this.expressionParts[3];switch(r){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var n=r.match(/(\d{1,2}W)|(W\d{1,2})/);if(n){var s=parseInt(n[0].replace("W","")),i=s==1?this.i18n.firstWeekday():o.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=o.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var u=r.match(/L-(\d{1,2})/);if(u){var v=u[1];a=o.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(v),v);break}else{if(r=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(r,this.i18n.commaEveryDay(),function(c){return c=="L"?e.i18n.lastDay():e.i18n.dayX0?o.StringUtilities.format(e.i18n.dayX0(),c):c},function(c){return c=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(c)},function(c){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(c)},function(c){return e.i18n.commaOnDayX0OfTheMonth(c)})}break}}return a},t.prototype.getYearDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[6],"",function(r){return/^\d+$/.test(r)?new Date(parseInt(r),1).getFullYear().toString():r},function(r){return o.StringUtilities.format(e.i18n.commaEveryX0Years(r),r)},function(r){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(r){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,r,n,s,i){var u=null,v=e.indexOf("/")>-1,c=e.indexOf("-")>-1,m=e.indexOf(",")>-1;if(!e)u="";else if(e==="*")u=a;else if(!v&&!c&&!m)u=o.StringUtilities.format(i(e),r(e));else if(m){for(var f=e.split(","),C="",S=0;S<f.length;S++)if(S>0&&f.length>2&&(C+=",",S<f.length-1&&(C+=" ")),S>0&&f.length>1&&(S==f.length-1||f.length==2)&&(C+="".concat(this.i18n.spaceAnd()," ")),f[S].indexOf("/")>-1||f[S].indexOf("-")>-1){var W=f[S].indexOf("-")>-1&&f[S].indexOf("/")==-1,V=this.getSegmentDescription(f[S],a,r,n,W?this.i18n.commaX0ThroughX1:s,i);W&&(V=V.replace(", ","")),C+=V}else v?C+=this.getSegmentDescription(f[S],a,r,n,s,i):C+=r(f[S]);v?u=C:u=o.StringUtilities.format(i(e),C)}else if(v){var f=e.split("/");if(u=o.StringUtilities.format(n(f[1]),f[1]),f[0].indexOf("-")>-1){var D=this.generateRangeSegmentDescription(f[0],s,r);D.indexOf(", ")!=0&&(u+=", "),u+=D}else if(f[0].indexOf("*")==-1){var z=o.StringUtilities.format(i(f[0]),r(f[0]));z=z.replace(", ",""),u+=o.StringUtilities.format(this.i18n.commaStartingX0(),z)}}else c&&(u=this.generateRangeSegmentDescription(e,s,r));return u},t.prototype.generateRangeSegmentDescription=function(e,a,r){var n="",s=e.split("-"),i=r(s[0],1),u=r(s[1],2),v=a(e);return n+=o.StringUtilities.format(v,i,u),n},t.prototype.formatTime=function(e,a,r){var n=0,s=0;this.options.tzOffset&&(n=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),s=parseFloat((this.options.tzOffset%1).toFixed(2)),s!=0&&(s*=60));var i=parseInt(e)+n,u=parseInt(a)+s;u>=60?(u-=60,i+=1):u<0&&(u+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var v="",c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),v=c?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var m="";return r&&(m=":".concat(("00"+r).substring(r.length))),"".concat(c?v:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+u.toString()).substring(u.toString().length)).concat(m).concat(c?"":v)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();p.ExpressionDescriptor=y},336:(x,p,b)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var o=b(751),d=function(){function y(){}return y.prototype.load=function(t){t.en=new o.en},y}();p.enLocaleLoader=d},751:(x,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var b=function(){function o(){}return o.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},o.prototype.atX0MinutesPastTheHourGt20=function(){return null},o.prototype.commaMonthX0ThroughMonthX1=function(){return null},o.prototype.commaYearX0ThroughYearX1=function(){return null},o.prototype.use24HourTimeFormatByDefault=function(){return!1},o.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},o.prototype.everyMinute=function(){return"every minute"},o.prototype.everyHour=function(){return"every hour"},o.prototype.atSpace=function(){return"At "},o.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},o.prototype.at=function(){return"At"},o.prototype.spaceAnd=function(){return" and"},o.prototype.everySecond=function(){return"every second"},o.prototype.everyX0Seconds=function(){return"every %s seconds"},o.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},o.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},o.prototype.everyX0Minutes=function(){return"every %s minutes"},o.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},o.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},o.prototype.everyX0Hours=function(){return"every %s hours"},o.prototype.betweenX0AndX1=function(){return"between %s and %s"},o.prototype.atX0=function(){return"at %s"},o.prototype.commaEveryDay=function(){return", every day"},o.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},o.prototype.commaX0ThroughX1=function(){return", %s through %s"},o.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},o.prototype.first=function(){return"first"},o.prototype.second=function(){return"second"},o.prototype.third=function(){return"third"},o.prototype.fourth=function(){return"fourth"},o.prototype.fifth=function(){return"fifth"},o.prototype.commaOnThe=function(){return", on the "},o.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},o.prototype.lastDay=function(){return"the last day"},o.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},o.prototype.commaOnlyOnX0=function(){return", only on %s"},o.prototype.commaAndOnX0=function(){return", and on %s"},o.prototype.commaEveryX0Months=function(){return", every %s months"},o.prototype.commaOnlyInX0=function(){return", only in %s"},o.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},o.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},o.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},o.prototype.firstWeekday=function(){return"first weekday"},o.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},o.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},o.prototype.commaEveryX0Days=function(){return", every %s days"},o.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},o.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},o.prototype.commaEveryHour=function(){return", every hour"},o.prototype.commaEveryX0Years=function(){return", every %s years"},o.prototype.commaStartingX0=function(){return", starting %s"},o.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},o}();p.en=b},586:(x,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function b(d,y){if(!d)throw new Error(y)}var o=function(){function d(){}return d.secondRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},d.minuteRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},d.hourRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},d.dayOfMonthRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},d.monthRange=function(y,t){for(var e=y.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var r=parseInt(e[a],10);b(r>=1&&r<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},d.dayOfWeekRange=function(y,t){for(var e=y.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var r=parseInt(e[a],10);b(r>=0&&r<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},d}();p.default=o},910:(x,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var b=function(){function o(){}return o.format=function(d){for(var y=[],t=1;t<arguments.length;t++)y[t-1]=arguments[t];return d.replace(/%s/g,function(e){return y.shift()})},o.containsAny=function(d,y){return y.some(function(t){return d.indexOf(t)>-1})},o}();p.StringUtilities=b}},T={};function E(x){var p=T[x];if(p!==void 0)return p.exports;var b=T[x]={exports:{}};return R[x](b,b.exports,E),b.exports}var X={};return(()=>{var x=X;Object.defineProperty(x,"__esModule",{value:!0}),x.toString=void 0;var p=E(728),b=E(336);p.ExpressionDescriptor.initialize(new b.enLocaleLoader),x.default=p.ExpressionDescriptor;var o=p.ExpressionDescriptor.toString;x.toString=o})(),X})())})(ve);var Fe=ve.exports;const Ge=Oe(Fe),Ze=["title"],Je={"flex-none":"","text-left":""},Qe={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Ke={class:"truncate"},et={"text-xs":"",op50:""},tt=h("div",{"x-divider":""},null,-1),nt={key:0},rt=["onClick"],ot=h("div",{"x-divider":""},null,-1),at=ee({__name:"CronCollection",props:{collection:{}},setup(q){const L=q,R=re(),T=H(!0),E=U(()=>Ge.toString(L.collection.cron));return(X,x)=>{const p=oe,b=pe;return g(),$("div",null,[h("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:l(E),onClick:x[0]||(x[0]=o=>T.value=!l(T))},[h("div",Je,[O(p,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":l(T)?90:0,transition:""},null,8,["transform-rotate"])]),h("span",Qe,[O(b,{class:"font-mono n-primary",textContent:N(X.collection.cron)},null,8,["textContent"]),h("span",Ke,N(l(E)),1),h("span",et,"("+N(X.collection.tasks.length)+")",1)])],8,Ze),tt,l(T)?(g(),$("ul",nt,[(g(!0),$(B,null,Z(X.collection.tasks,o=>(g(),$("li",{key:o},[h("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":l(R)===o}]),onClick:d=>R.value=o},N(o),11,rt),ot]))),128))])):j("",!0)])}}}),it={"h-full":"","w-full":"",flex:"~ col"},st={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},ut={flex:"~ gap2 items-center"},lt={relative:"","w-full":""},ct={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},ft={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},pt={class:"hidden md:block"},dt={flex:"~ gap2","mb--2":"","items-center":"",op50:""},ht=h("div",{"w-5":"","x-divider":""},null,-1),vt=h("div",{"flex-none":""}," Default Inputs ",-1),mt=h("div",{"x-divider":""},null,-1),yt={key:0,border:"b base",relative:"","n-code-block":""},gt={flex:"~ wrap","w-full":""},_t=["onClick"],bt=h("div",{border:"b base","flex-auto":""},null,-1),kt={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},Ot=h("div",null,"Result",-1),Tt={key:1,"text-xs":"",op50:""},xt=h("div",{"flex-auto":""},null,-1),St=h("div",{op50:""}," Tasks finished in ",-1),wt=ee({__name:"ServerTaskDetails",props:{task:{}},emits:["open-default-input"],setup(q,{emit:L}){const R=q,T=L,E=H({payload:{}}),{inputDefaults:X}=le("serverRoutes"),[x,p]=Te(),b=xe(),o=Se(),d=se({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),y=U(()=>JSON.stringify(d.data,null,2)),t=U(()=>d.contentType.includes("application/json")?"json":"text"),e=H(!1),a=H(!1),r=we(),n=H(),s=["json"],i=H(s[0]),u=se({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),v=U({get:()=>u[n.value],set:_=>{u[n.value]=_}}),c=U(()=>({...D(X.value.query),...D(u.query)})),m=U(()=>({...D(X.value.headers)})),f=U(()=>Object.keys(E.value?.payload??{}).length?{...E.value}:void 0),C=U(()=>f.value?"POST":"GET"),S=U(()=>{let _=window?.location.origin;return _.charAt(_.length-1)==="/"&&(_=_.slice(0,-1)),_}),W=U(()=>{let _=new URLSearchParams(c.value).toString();_&&(_=`?${_}`);const k=`/_nitro/tasks/${R.task.name}${_}`;let M=o.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+k}),V=U(()=>S.value+W.value);function D(_){const k=Object.fromEntries(_.filter(({active:M,key:P,value:J})=>M&&P&&J!==void 0).map(({key:M,value:P})=>[M,P]));return Object.entries(k).length?k:void 0}async function z(){a.value=!0,e.value=!0;const _=Date.now();$e("server-tasks:run",{method:C.value});try{d.data=await $fetch(V.value,{method:"POST",headers:m.value,query:c.value,body:f.value,onResponse({response:k}){d.contentType=(k.headers.get("content-type")||"").toString().toLowerCase().trim(),d.statusCode=k.status,d.error=void 0},onResponseError(k){d.error=k.response._data,d.data=k.response._data}})}catch{}e.value=!1,d.fetchTime=Date.now()-_}const te=U(()=>{const _=[];return _.push({name:"Query",slug:"query",length:u.query.length}),_.push({name:"Body",slug:"body",length:u.body.length}),_});Xe(()=>{if(i.value==="json"&&typeof E.value=="string")try{E.value=JSON.parse(E.value)}catch{}});const ae=De("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});Ee([u,n],()=>{const _=ae.value?.find(k=>k.task===R.task.name);if(_){n.value||(n.value=_.tab),_.tab!==n.value&&(_.tab=n.value);const{body:k,query:M,headers:P}=_.inputs;Object.assign(u,{body:k,query:M,headers:P})}else{const k={task:R.task.name,tab:"query",inputs:u};ae.value.push(k),n.value||(n.value=k.tab)}},{immediate:!0,deep:!0,debounce:500});const ye=Me();return(_,k)=>{const M=ce,P=Ue,J=oe,ie=de,ge=fe,_e=Le,ne=pe,be=ze,Q=ue("tooltip");return g(),$("div",it,[h("div",st,[h("div",ut,[G((g(),$("div",null,[O(M,{class:F(["n-badge-base n-sm",("getRequestMethodClass"in _?_.getRequestMethodClass:l(Ce))(l(C))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:I(()=>[Y(N(l(C)),1)]),_:1},8,["class"])])),[[Q,`Method is ${l(C)} as ${l(C)==="GET"?"no":""} json body is sent`]]),h("div",lt,[O(P,{"model-value":l(W),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),h("div",ct,[G(O(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:k[0]||(k[0]=w=>l(ye)(l(V),"server-task-url"))},null,512),[[Q,"Copy URL"]]),G(O(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:k[1]||(k[1]=w=>l(r)(_.task.handler))},null,512),[[Q,"Open in Editor"]])])]),O(M,{"h-full":"",n:"primary solid",onClick:z},{default:I(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),h("div",ft,[(g(!0),$(B,null,Z(l(te),w=>G((g(),A(M,{key:w.slug,class:F(l(n)===w.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:ke=>n.value=w.slug},{default:I(()=>[O(J,{icon:("ServerRouteTabIcons"in _?_.ServerRouteTabIcons:l(he))[w.slug]},null,8,["icon"]),h("div",pt,[Y(N(w.name)+" "+N(w?.length?`(${w.length})`:"")+" ",1),h("span",null,N(l(X)[w.slug]?.length?`(${l(X)[w.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[Q,w.name]])),128))]),O(l(x),null,{default:I(()=>[O(ie,{modelValue:l(v),"onUpdate:modelValue":k[4]||(k[4]=w=>K(v)?v.value=w:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:I(()=>[l(X)[l(n)]?.length?(g(),$(B,{key:0},[h("div",dt,[ht,vt,O(M,{icon:"i-carbon-edit",border:!1,onClick:k[2]||(k[2]=w=>T("open-default-input"))}),mt]),O(ie,{modelValue:l(X)[l(n)],"onUpdate:modelValue":k[3]||(k[3]=w=>l(X)[l(n)]=w),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),l(v)?(g(),$("div",yt,[l(n)==="body"?(g(),$(B,{key:0},[h("div",gt,[(g(),$(B,null,Z(s,w=>h("button",{key:w,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":w!==l(i)}),onClick:ke=>i.value=w},[h("div",{class:F({op30:w!==l(i)}),"font-mono":""},N(w),3)],10,_t)),64)),bt]),l(i)==="input"?(g(),A(l(p),{key:0})):l(i)==="json"?(g(),A(l(qe),Ie({key:1,modelValue:l(E),"onUpdate:modelValue":k[5]||(k[5]=w=>K(E)?E.value=w:null),class:[l(b)==="dark"?"jse-theme-dark":"light","json-editor-vue of-auto text-sm outline-none"]},_.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(g(),A(l(p),{key:1}))])):j("",!0),l(a)?l(e)?(g(),A(_e,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:I(()=>[Y(" Running... ")]),_:1})):(g(),$(B,{key:3},[h("div",kt,[Ot,l(d).error?(g(),A(ne,{key:0,n:"red"},{default:I(()=>[Y(" Error ")]),_:1})):j("",!0),O(ne,{n:l(d).error?"orange":"green",textContent:N(l(d).statusCode)},null,8,["n","textContent"]),l(d).contentType?(g(),$("code",Tt,N(l(d).contentType),1)):j("",!0),xt,St,O(ne,{n:"green"},{default:I(()=>[Y(N(l(d).fetchTime)+" ms ",1)]),_:1})]),O(be,{"flex-auto":"","overflow-auto":"","py-2":"",code:l(y),lang:l(t)},null,8,["code","lang"])],64)):(g(),A(ge,{key:1},{default:I(()=>[O(M,{n:"primary",onClick:z},{default:I(()=>[O(J,{icon:"carbon:send"}),Y(" Run task ")]),_:1})]),_:1}))])}}}),Xt={"flex-none":"","text-left":""},Dt={flex:"","items-center":"","text-sm":"","font-mono":""},Et=h("div",{"x-divider":""},null,-1),me=ee({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(q){const L=H(!0),R=re();return(T,E)=>{const X=oe,x=me;return g(),$("div",null,[h("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":l(R)===T.item.name}]),style:Re({paddingLeft:`calc(0.5rem + ${T.index*1.5}em)`}),onClick:E[0]||(E[0]=p=>{L.value=!l(L),R.value=T.item.name})},[h("div",Xt,[T.item.type==="collection"?(g(),A(X,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":l(L)?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),h("span",Dt,[T.item.type==="collection"?(g(),A(X,{key:0,title:`${T.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(g(),A(X,{key:1,icon:"carbon:play",ml3:"",mr1:""})),Y(" "+N(T.item.name),1)])],6),Et,l(L)?Ne(T.$slots,"default",{key:0},()=>[(g(!0),$(B,null,Z(T.item.tasks,p=>(g(),A(x,{key:p.name,item:p,index:T.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),Mt={flex:"~ gap1","text-sm":""},Ct={key:0,op50:""},It={op50:""},$t=h("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1),Ut=h("span",{op75:""},"Select a task to start",-1),Lt=h("div",{p4:"",border:"b base"},[h("span",{"text-lg":""},"Default Inputs"),h("br"),h("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1),Gt=ee({__name:"server-tasks",setup(q){const L=H(!1),R=Ae(),T=U(()=>Object.keys(R.value?.tasks??{}).map(r=>({name:r,...R.value.tasks[r],type:"task"}))),E=U(()=>Object.entries(R.value?.scheduledTasks??{}).map(([r,n])=>({cron:r,tasks:n}))),X=re(),{view:x,selectedTask:p,inputDefaults:b}=le("serverTasks"),o=U(()=>{!X.value&&p.value&&(X.value=p.value.name);const r=T.value.find(n=>n.name===X.value);return X.value!==p.value?.name&&r&&(p.value=r),r}),d=H(""),y=U(()=>new Ve(T.value,{keys:["key","description"],shouldSort:!0})),t=U(()=>d.value?y.value.search(d.value).map(n=>n.item):T.value),e=U(()=>{const r=[],n=(i,u)=>{i.tasks||=[],i.tasks.push(u)},s=(i,u)=>{const v=u?u.tasks?.find(m=>m.name===i):r.find(m=>m.name===i);if(v)return{...v,type:"collection"};const c={name:i,handler:i,description:"",type:"collection",tasks:[]};return u?n(u,c):r.push(c),c};return t.value.forEach(i=>{let u;const v={...i,type:"task"},m=i.name.split(":").concat();m.length>0&&m[m.length-1].includes(".")&&m.pop(),m.forEach(f=>{u=s(f,u)}),u?n(u,v):r.push(v)}),r});function a(){x.value=x.value==="tree"?"list":"tree"}return(r,n)=>{const s=ce,i=He,u=at,v=je,c=wt,m=We,f=fe,C=de,S=Pe,W=Ye,V=ue("tooltip");return g(),$(B,null,[O(v,{"storage-key":"tab-server-tasks"},{left:I(()=>[O(v,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:I(()=>[O(i,{search:l(d),"onUpdate:search":n[1]||(n[1]=D=>K(d)?d.value=D:null),pb2:""},{actions:I(()=>[G(O(s,{"text-lg":"",icon:l(x)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(O(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:n[0]||(n[0]=D=>L.value=!l(L))},null,512),[[V,"Default Inputs"]])]),default:I(()=>[h("div",Mt,[l(d)?(g(),$("span",Ct,N(l(t).length)+" matched · ",1)):j("",!0),h("span",It,N(l(T)?.length)+" tasks in total",1)])]),_:1},8,["search"]),(g(!0),$(B,null,Z(l(x)==="tree"?l(e):l(t),D=>(g(),A(me,{key:D.name,item:D},null,8,["item"]))),128))]),right:I(()=>[$t,h("div",null,[h("ul",null,[(g(!0),$(B,null,Z(l(E),D=>(g(),$("li",{key:D.cron},[O(u,{collection:D},null,8,["collection"])]))),128))])])]),_:1})]),right:I(()=>[(g(),A(Be,{max:10},[l(o)?(g(),A(c,{key:l(o).name,task:l(o),onOpenDefaultInput:n[2]||(n[2]=D=>L.value=!0)},null,8,["task"])):j("",!0)],1024)),l(o)?j("",!0):(g(),A(f,{key:0},{default:I(()=>[O(m,{px6:"",py2:""},{default:I(()=>[Ut]),_:1})]),_:1}))]),_:1}),O(W,{modelValue:l(L),"onUpdate:modelValue":n[4]||(n[4]=D=>K(L)?L.value=D:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:n[5]||(n[5]=D=>L.value=!1)},{default:I(()=>[h("div",null,[Lt,O(S,{text:`Query ${l(b).query.length?`(${l(b).query.length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in r?r.ServerRouteTabIcons:l(he)).query},{default:I(()=>[O(C,{modelValue:l(b).query,"onUpdate:modelValue":n[3]||(n[3]=D=>l(b).query=D),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{Gt as default};
1
+ import{bP as Oe,d as ee,bQ as re,r as H,a as U,o as g,m as $,k as h,i as O,f as l,t as N,F as B,n as Z,G as F,p as j,a6 as oe,bL as Te,ao as xe,ab as Se,az as se,ac as we,aC as Xe,b1 as De,bM as Ee,e as Me,a2 as ue,I as G,j as I,v as Y,bI as Ce,h as A,l as K,ax as Ie,ak as le,V as $e,_ as ce,X as Ue,A as fe,an as Le,a9 as Re,aa as Ne,bR as Ae,ah as Ve,U as je,bO as Be,as as We}from"./DK_JXXAF.js";import{_ as He}from"./CZQflZba.js";import{_ as pe}from"./H8AztYTG.js";import{_ as de}from"./BLAdP9Oz.js";import{_ as ze}from"./BP18yFEx.js";import{S as he}from"./BcJws1i5.js";import{e as qe}from"./VV6dbUWb.js";import{_ as Pe}from"./PiOA0xLD.js";import{_ as Ye}from"./CS0gb7jX.js";import"./iHPNd0oS.js";import"./DgiutZgW.js";import"./BZUqxYL0.js";import"./YOyY9aeM.js";var ve={exports:{}};(function(q,L){(function(T,E){q.exports=E()})(globalThis,()=>(()=>{var R={794:(x,p,b)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.CronParser=void 0;var o=b(586),d=function(){function y(t,e,a){e===void 0&&(e=!0),a===void 0&&(a=!1),this.expression=t,this.dayOfWeekStartIndexZero=e,this.monthStartIndexZero=a}return y.prototype.parse=function(){var t,e,a=(t=this.expression)!==null&&t!==void 0?t:"";if(a.startsWith("@")){var r=this.parseSpecial(this.expression);e=this.extractParts(r)}else e=this.extractParts(this.expression);return this.normalize(e),this.validate(e),e},y.prototype.parseSpecial=function(t){var e={"@yearly":"0 0 1 1 *","@annually":"0 0 1 1 *","@monthly":"0 0 1 * *","@weekly":"0 0 * * 0","@daily":"0 0 * * *","@midnight":"0 0 * * *","@hourly":"0 * * * *"},a=e[t];if(!a)throw new Error("Unknown special expression.");return a},y.prototype.extractParts=function(t){if(!this.expression)throw new Error("cron expression is empty");for(var e=t.trim().split(/[ ]+/),a=0;a<e.length;a++)if(e[a].includes(",")){var r=e[a].split(",").map(function(s){return s.trim()}).filter(function(s){return s!==""}).map(function(s){return isNaN(Number(s))?s:Number(s)}).filter(function(s){return s!==null&&s!==""});r.length===0&&r.push("*"),r.sort(function(s,i){return s!==null&&i!==null?s-i:0}),e[a]=r.map(function(s){return s!==null?s.toString():""}).join(",")}if(e.length<5)throw new Error("Expression has only ".concat(e.length," part").concat(e.length==1?"":"s",". At least 5 parts are required."));if(e.length==5)e.unshift(""),e.push("");else if(e.length==6){var n=/\d{4}$/.test(e[5])||e[4]=="?"||e[2]=="?";n?e.unshift(""):e.push("")}else if(e.length>7)throw new Error("Expression has ".concat(e.length," parts; too many!"));return e},y.prototype.normalize=function(t){var e=this;if(t[3]=t[3].replace("?","*"),t[5]=t[5].replace("?","*"),t[2]=t[2].replace("?","*"),t[0].indexOf("0/")==0&&(t[0]=t[0].replace("0/","*/")),t[1].indexOf("0/")==0&&(t[1]=t[1].replace("0/","*/")),t[2].indexOf("0/")==0&&(t[2]=t[2].replace("0/","*/")),t[3].indexOf("1/")==0&&(t[3]=t[3].replace("1/","*/")),t[4].indexOf("1/")==0&&(t[4]=t[4].replace("1/","*/")),t[6].indexOf("1/")==0&&(t[6]=t[6].replace("1/","*/")),t[5]=t[5].replace(/(^\d)|([^#/\s]\d)/g,function(c){var m=c.replace(/\D/,""),f=m;return e.dayOfWeekStartIndexZero?m=="7"&&(f="0"):f=(parseInt(m)-1).toString(),c.replace(m,f)}),t[5]=="L"&&(t[5]="6"),t[3]=="?"&&(t[3]="*"),t[3].indexOf("W")>-1&&(t[3].indexOf(",")>-1||t[3].indexOf("-")>-1))throw new Error("The 'W' character can be specified only when the day-of-month is a single day, not a range or list of days.");var a={SUN:0,MON:1,TUE:2,WED:3,THU:4,FRI:5,SAT:6};for(var r in a)t[5]=t[5].replace(new RegExp(r,"gi"),a[r].toString());t[4]=t[4].replace(/(^\d{1,2})|([^#/\s]\d{1,2})/g,function(c){var m=c.replace(/\D/,""),f=m;return e.monthStartIndexZero&&(f=(parseInt(m)+1).toString()),c.replace(m,f)});var n={JAN:1,FEB:2,MAR:3,APR:4,MAY:5,JUN:6,JUL:7,AUG:8,SEP:9,OCT:10,NOV:11,DEC:12};for(var s in n)t[4]=t[4].replace(new RegExp(s,"gi"),n[s].toString());t[0]=="0"&&(t[0]=""),!/\*|\-|\,|\//.test(t[2])&&(/\*|\//.test(t[1])||/\*|\//.test(t[0]))&&(t[2]+="-".concat(t[2]));for(var i=0;i<t.length;i++)if(t[i].indexOf(",")!=-1&&(t[i]=t[i].split(",").filter(function(c){return c!==""}).join(",")||"*"),t[i]=="*/1"&&(t[i]="*"),t[i].indexOf("/")>-1&&!/^\*|\-|\,/.test(t[i])){var u=null;switch(i){case 4:u="12";break;case 5:u="6";break;case 6:u="9999";break;default:u=null;break}if(u!==null){var v=t[i].split("/");t[i]="".concat(v[0],"-").concat(u,"/").concat(v[1])}}},y.prototype.validate=function(t){this.assertNoInvalidCharacters("DOW",t[5]),this.assertNoInvalidCharacters("DOM",t[3]),this.validateRange(t)},y.prototype.validateRange=function(t){o.default.secondRange(t[0]),o.default.minuteRange(t[1]),o.default.hourRange(t[2]),o.default.dayOfMonthRange(t[3]),o.default.monthRange(t[4],this.monthStartIndexZero),o.default.dayOfWeekRange(t[5],this.dayOfWeekStartIndexZero)},y.prototype.assertNoInvalidCharacters=function(t,e){var a=e.match(/[A-KM-VX-Z]+/gi);if(a&&a.length)throw new Error("".concat(t," part contains invalid values: '").concat(a.toString(),"'"))},y}();p.CronParser=d},728:(x,p,b)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.ExpressionDescriptor=void 0;var o=b(910),d=b(794),y=function(){function t(e,a){if(this.expression=e,this.options=a,this.expressionParts=new Array(5),!this.options.locale&&t.defaultLocale&&(this.options.locale=t.defaultLocale),!t.locales[this.options.locale]){var r=Object.keys(t.locales)[0];console.warn("Locale '".concat(this.options.locale,"' could not be found; falling back to '").concat(r,"'.")),this.options.locale=r}this.i18n=t.locales[this.options.locale],a.use24HourTimeFormat===void 0&&(a.use24HourTimeFormat=this.i18n.use24HourTimeFormatByDefault())}return t.toString=function(e,a){var r=a===void 0?{}:a,n=r.throwExceptionOnParseError,s=n===void 0?!0:n,i=r.verbose,u=i===void 0?!1:i,v=r.dayOfWeekStartIndexZero,c=v===void 0?!0:v,m=r.monthStartIndexZero,f=m===void 0?!1:m,C=r.use24HourTimeFormat,S=r.locale,W=S===void 0?null:S,V=r.tzOffset,D=V===void 0?0:V,z={throwExceptionOnParseError:s,verbose:u,dayOfWeekStartIndexZero:c,monthStartIndexZero:f,use24HourTimeFormat:C,locale:W,tzOffset:D},te=new t(e,z);return te.getFullDescription()},t.initialize=function(e,a){a===void 0&&(a="en"),t.specialCharacters=["/","-",",","*"],t.defaultLocale=a,e.load(t.locales)},t.prototype.getFullDescription=function(){var e="";try{var a=new d.CronParser(this.expression,this.options.dayOfWeekStartIndexZero,this.options.monthStartIndexZero);this.expressionParts=a.parse();var r=this.getTimeOfDayDescription(),n=this.getDayOfMonthDescription(),s=this.getMonthDescription(),i=this.getDayOfWeekDescription(),u=this.getYearDescription();e+=r+n+i+s+u,e=this.transformVerbosity(e,!!this.options.verbose),e=e.charAt(0).toLocaleUpperCase()+e.substr(1)}catch(v){if(!this.options.throwExceptionOnParseError)e=this.i18n.anErrorOccuredWhenGeneratingTheExpressionD();else throw"".concat(v)}return e},t.prototype.getTimeOfDayDescription=function(){var e=this.expressionParts[0],a=this.expressionParts[1],r=this.expressionParts[2],n="";if(!o.StringUtilities.containsAny(a,t.specialCharacters)&&!o.StringUtilities.containsAny(r,t.specialCharacters)&&!o.StringUtilities.containsAny(e,t.specialCharacters))n+=this.i18n.atSpace()+this.formatTime(r,a,e);else if(!e&&a.indexOf("-")>-1&&!(a.indexOf(",")>-1)&&!(a.indexOf("/")>-1)&&!o.StringUtilities.containsAny(r,t.specialCharacters)){var s=a.split("-");n+=o.StringUtilities.format(this.i18n.everyMinuteBetweenX0AndX1(),this.formatTime(r,s[0],""),this.formatTime(r,s[1],""))}else if(!e&&r.indexOf(",")>-1&&r.indexOf("-")==-1&&r.indexOf("/")==-1&&!o.StringUtilities.containsAny(a,t.specialCharacters)){var i=r.split(",");n+=this.i18n.at();for(var u=0;u<i.length;u++)n+=" ",n+=this.formatTime(i[u],a,""),u<i.length-2&&(n+=","),u==i.length-2&&(n+=this.i18n.spaceAnd())}else{var v=this.getSecondsDescription(),c=this.getMinutesDescription(),m=this.getHoursDescription();if(n+=v,n&&c&&(n+=", "),n+=c,c===m)return n;n&&m&&(n+=", "),n+=m}return n},t.prototype.getSecondsDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[0],this.i18n.everySecond(),function(r){return r},function(r){return o.StringUtilities.format(e.i18n.everyX0Seconds(r),r)},function(r){return e.i18n.secondsX0ThroughX1PastTheMinute()},function(r){return r=="0"?"":parseInt(r)<20?e.i18n.atX0SecondsPastTheMinute(r):e.i18n.atX0SecondsPastTheMinuteGt20()||e.i18n.atX0SecondsPastTheMinute(r)});return a},t.prototype.getMinutesDescription=function(){var e=this,a=this.expressionParts[0],r=this.expressionParts[2],n=this.getSegmentDescription(this.expressionParts[1],this.i18n.everyMinute(),function(s){return s},function(s){return o.StringUtilities.format(e.i18n.everyX0Minutes(s),s)},function(s){return e.i18n.minutesX0ThroughX1PastTheHour()},function(s){try{return s=="0"&&r.indexOf("/")==-1&&a==""?e.i18n.everyHour():parseInt(s)<20?e.i18n.atX0MinutesPastTheHour(s):e.i18n.atX0MinutesPastTheHourGt20()||e.i18n.atX0MinutesPastTheHour(s)}catch{return e.i18n.atX0MinutesPastTheHour(s)}});return n},t.prototype.getHoursDescription=function(){var e=this,a=this.expressionParts[2],r=this.getSegmentDescription(a,this.i18n.everyHour(),function(i){return e.formatTime(i,"0","")},function(i){return o.StringUtilities.format(e.i18n.everyX0Hours(i),i)},function(i){return e.i18n.betweenX0AndX1()},function(i){return e.i18n.atX0()});if(r&&a.includes("-")&&this.expressionParts[1]!="0"){var n=Array.from(r.matchAll(/:00/g));if(n.length>1){var s=n[n.length-1].index;r=r.substring(0,s)+":59"+r.substring(s+3)}}return r},t.prototype.getDayOfWeekDescription=function(){var e=this,a=this.i18n.daysOfTheWeek(),r=null;return this.expressionParts[5]=="*"?r="":r=this.getSegmentDescription(this.expressionParts[5],this.i18n.commaEveryDay(),function(n,s){var i=n;n.indexOf("#")>-1?i=n.substring(0,n.indexOf("#")):n.indexOf("L")>-1&&(i=i.replace("L",""));var u=parseInt(i);if(e.options.tzOffset){var v=e.expressionParts[2],c=parseInt(v)+(e.options.tzOffset?e.options.tzOffset:0);c>=24?u++:c<0&&u--,u>6?u=0:u<0&&(u=6)}var m=e.i18n.daysOfTheWeekInCase?e.i18n.daysOfTheWeekInCase(s)[u]:a[u];if(n.indexOf("#")>-1){var f=null,C=n.substring(n.indexOf("#")+1),S=n.substring(0,n.indexOf("#"));switch(C){case"1":f=e.i18n.first(S);break;case"2":f=e.i18n.second(S);break;case"3":f=e.i18n.third(S);break;case"4":f=e.i18n.fourth(S);break;case"5":f=e.i18n.fifth(S);break}m=f+" "+m}return m},function(n){return parseInt(n)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0DaysOfTheWeek(n),n)},function(n){var s=n.substring(0,n.indexOf("-")),i=e.expressionParts[3]!="*";return i?e.i18n.commaAndX0ThroughX1(s):e.i18n.commaX0ThroughX1(s)},function(n){var s=null;if(n.indexOf("#")>-1){var i=n.substring(n.indexOf("#")+1);s=e.i18n.commaOnThe(i).trim()+e.i18n.spaceX0OfTheMonth()}else if(n.indexOf("L")>-1)s=e.i18n.commaOnTheLastX0OfTheMonth(n.replace("L",""));else{var u=e.expressionParts[3]!="*";s=u?e.i18n.commaAndOnX0():e.i18n.commaOnlyOnX0(n)}return s}),r},t.prototype.getMonthDescription=function(){var e=this,a=this.i18n.monthsOfTheYear(),r=this.getSegmentDescription(this.expressionParts[4],"",function(n,s){return s&&e.i18n.monthsOfTheYearInCase?e.i18n.monthsOfTheYearInCase(s)[parseInt(n)-1]:a[parseInt(n)-1]},function(n){return parseInt(n)==1?"":o.StringUtilities.format(e.i18n.commaEveryX0Months(n),n)},function(n){return e.i18n.commaMonthX0ThroughMonthX1()||e.i18n.commaX0ThroughX1()},function(n){return e.i18n.commaOnlyInMonthX0?e.i18n.commaOnlyInMonthX0():e.i18n.commaOnlyInX0()});return r},t.prototype.getDayOfMonthDescription=function(){var e=this,a=null,r=this.expressionParts[3];switch(r){case"L":a=this.i18n.commaOnTheLastDayOfTheMonth();break;case"WL":case"LW":a=this.i18n.commaOnTheLastWeekdayOfTheMonth();break;default:var n=r.match(/(\d{1,2}W)|(W\d{1,2})/);if(n){var s=parseInt(n[0].replace("W","")),i=s==1?this.i18n.firstWeekday():o.StringUtilities.format(this.i18n.weekdayNearestDayX0(),s.toString());a=o.StringUtilities.format(this.i18n.commaOnTheX0OfTheMonth(),i);break}else{var u=r.match(/L-(\d{1,2})/);if(u){var v=u[1];a=o.StringUtilities.format(this.i18n.commaDaysBeforeTheLastDayOfTheMonth(v),v);break}else{if(r=="*"&&this.expressionParts[5]!="*")return"";a=this.getSegmentDescription(r,this.i18n.commaEveryDay(),function(c){return c=="L"?e.i18n.lastDay():e.i18n.dayX0?o.StringUtilities.format(e.i18n.dayX0(),c):c},function(c){return c=="1"?e.i18n.commaEveryDay():e.i18n.commaEveryX0Days(c)},function(c){return e.i18n.commaBetweenDayX0AndX1OfTheMonth(c)},function(c){return e.i18n.commaOnDayX0OfTheMonth(c)})}break}}return a},t.prototype.getYearDescription=function(){var e=this,a=this.getSegmentDescription(this.expressionParts[6],"",function(r){return/^\d+$/.test(r)?new Date(parseInt(r),1).getFullYear().toString():r},function(r){return o.StringUtilities.format(e.i18n.commaEveryX0Years(r),r)},function(r){return e.i18n.commaYearX0ThroughYearX1()||e.i18n.commaX0ThroughX1()},function(r){return e.i18n.commaOnlyInYearX0?e.i18n.commaOnlyInYearX0():e.i18n.commaOnlyInX0()});return a},t.prototype.getSegmentDescription=function(e,a,r,n,s,i){var u=null,v=e.indexOf("/")>-1,c=e.indexOf("-")>-1,m=e.indexOf(",")>-1;if(!e)u="";else if(e==="*")u=a;else if(!v&&!c&&!m)u=o.StringUtilities.format(i(e),r(e));else if(m){for(var f=e.split(","),C="",S=0;S<f.length;S++)if(S>0&&f.length>2&&(C+=",",S<f.length-1&&(C+=" ")),S>0&&f.length>1&&(S==f.length-1||f.length==2)&&(C+="".concat(this.i18n.spaceAnd()," ")),f[S].indexOf("/")>-1||f[S].indexOf("-")>-1){var W=f[S].indexOf("-")>-1&&f[S].indexOf("/")==-1,V=this.getSegmentDescription(f[S],a,r,n,W?this.i18n.commaX0ThroughX1:s,i);W&&(V=V.replace(", ","")),C+=V}else v?C+=this.getSegmentDescription(f[S],a,r,n,s,i):C+=r(f[S]);v?u=C:u=o.StringUtilities.format(i(e),C)}else if(v){var f=e.split("/");if(u=o.StringUtilities.format(n(f[1]),f[1]),f[0].indexOf("-")>-1){var D=this.generateRangeSegmentDescription(f[0],s,r);D.indexOf(", ")!=0&&(u+=", "),u+=D}else if(f[0].indexOf("*")==-1){var z=o.StringUtilities.format(i(f[0]),r(f[0]));z=z.replace(", ",""),u+=o.StringUtilities.format(this.i18n.commaStartingX0(),z)}}else c&&(u=this.generateRangeSegmentDescription(e,s,r));return u},t.prototype.generateRangeSegmentDescription=function(e,a,r){var n="",s=e.split("-"),i=r(s[0],1),u=r(s[1],2),v=a(e);return n+=o.StringUtilities.format(v,i,u),n},t.prototype.formatTime=function(e,a,r){var n=0,s=0;this.options.tzOffset&&(n=this.options.tzOffset>0?Math.floor(this.options.tzOffset):Math.ceil(this.options.tzOffset),s=parseFloat((this.options.tzOffset%1).toFixed(2)),s!=0&&(s*=60));var i=parseInt(e)+n,u=parseInt(a)+s;u>=60?(u-=60,i+=1):u<0&&(u+=60,i-=1),i>=24?i=i-24:i<0&&(i=24+i);var v="",c=!1;this.options.use24HourTimeFormat||(c=!!(this.i18n.setPeriodBeforeTime&&this.i18n.setPeriodBeforeTime()),v=c?"".concat(this.getPeriod(i)," "):" ".concat(this.getPeriod(i)),i>12&&(i-=12),i===0&&(i=12));var m="";return r&&(m=":".concat(("00"+r).substring(r.length))),"".concat(c?v:"").concat(("00"+i.toString()).substring(i.toString().length),":").concat(("00"+u.toString()).substring(u.toString().length)).concat(m).concat(c?"":v)},t.prototype.transformVerbosity=function(e,a){return a||(e=e.replace(new RegExp(", ".concat(this.i18n.everyMinute()),"g"),""),e=e.replace(new RegExp(", ".concat(this.i18n.everyHour()),"g"),""),e=e.replace(new RegExp(this.i18n.commaEveryDay(),"g"),""),e=e.replace(/\, ?$/,"")),e},t.prototype.getPeriod=function(e){return e>=12?this.i18n.pm&&this.i18n.pm()||"PM":this.i18n.am&&this.i18n.am()||"AM"},t.locales={},t}();p.ExpressionDescriptor=y},336:(x,p,b)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.enLocaleLoader=void 0;var o=b(751),d=function(){function y(){}return y.prototype.load=function(t){t.en=new o.en},y}();p.enLocaleLoader=d},751:(x,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.en=void 0;var b=function(){function o(){}return o.prototype.atX0SecondsPastTheMinuteGt20=function(){return null},o.prototype.atX0MinutesPastTheHourGt20=function(){return null},o.prototype.commaMonthX0ThroughMonthX1=function(){return null},o.prototype.commaYearX0ThroughYearX1=function(){return null},o.prototype.use24HourTimeFormatByDefault=function(){return!1},o.prototype.anErrorOccuredWhenGeneratingTheExpressionD=function(){return"An error occured when generating the expression description. Check the cron expression syntax."},o.prototype.everyMinute=function(){return"every minute"},o.prototype.everyHour=function(){return"every hour"},o.prototype.atSpace=function(){return"At "},o.prototype.everyMinuteBetweenX0AndX1=function(){return"Every minute between %s and %s"},o.prototype.at=function(){return"At"},o.prototype.spaceAnd=function(){return" and"},o.prototype.everySecond=function(){return"every second"},o.prototype.everyX0Seconds=function(){return"every %s seconds"},o.prototype.secondsX0ThroughX1PastTheMinute=function(){return"seconds %s through %s past the minute"},o.prototype.atX0SecondsPastTheMinute=function(){return"at %s seconds past the minute"},o.prototype.everyX0Minutes=function(){return"every %s minutes"},o.prototype.minutesX0ThroughX1PastTheHour=function(){return"minutes %s through %s past the hour"},o.prototype.atX0MinutesPastTheHour=function(){return"at %s minutes past the hour"},o.prototype.everyX0Hours=function(){return"every %s hours"},o.prototype.betweenX0AndX1=function(){return"between %s and %s"},o.prototype.atX0=function(){return"at %s"},o.prototype.commaEveryDay=function(){return", every day"},o.prototype.commaEveryX0DaysOfTheWeek=function(){return", every %s days of the week"},o.prototype.commaX0ThroughX1=function(){return", %s through %s"},o.prototype.commaAndX0ThroughX1=function(){return", %s through %s"},o.prototype.first=function(){return"first"},o.prototype.second=function(){return"second"},o.prototype.third=function(){return"third"},o.prototype.fourth=function(){return"fourth"},o.prototype.fifth=function(){return"fifth"},o.prototype.commaOnThe=function(){return", on the "},o.prototype.spaceX0OfTheMonth=function(){return" %s of the month"},o.prototype.lastDay=function(){return"the last day"},o.prototype.commaOnTheLastX0OfTheMonth=function(){return", on the last %s of the month"},o.prototype.commaOnlyOnX0=function(){return", only on %s"},o.prototype.commaAndOnX0=function(){return", and on %s"},o.prototype.commaEveryX0Months=function(){return", every %s months"},o.prototype.commaOnlyInX0=function(){return", only in %s"},o.prototype.commaOnTheLastDayOfTheMonth=function(){return", on the last day of the month"},o.prototype.commaOnTheLastWeekdayOfTheMonth=function(){return", on the last weekday of the month"},o.prototype.commaDaysBeforeTheLastDayOfTheMonth=function(){return", %s days before the last day of the month"},o.prototype.firstWeekday=function(){return"first weekday"},o.prototype.weekdayNearestDayX0=function(){return"weekday nearest day %s"},o.prototype.commaOnTheX0OfTheMonth=function(){return", on the %s of the month"},o.prototype.commaEveryX0Days=function(){return", every %s days"},o.prototype.commaBetweenDayX0AndX1OfTheMonth=function(){return", between day %s and %s of the month"},o.prototype.commaOnDayX0OfTheMonth=function(){return", on day %s of the month"},o.prototype.commaEveryHour=function(){return", every hour"},o.prototype.commaEveryX0Years=function(){return", every %s years"},o.prototype.commaStartingX0=function(){return", starting %s"},o.prototype.daysOfTheWeek=function(){return["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},o.prototype.monthsOfTheYear=function(){return["January","February","March","April","May","June","July","August","September","October","November","December"]},o}();p.en=b},586:(x,p)=>{Object.defineProperty(p,"__esModule",{value:!0});function b(d,y){if(!d)throw new Error(y)}var o=function(){function d(){}return d.secondRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=0&&a<=59,"seconds part must be >= 0 and <= 59")}},d.minuteRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=0&&a<=59,"minutes part must be >= 0 and <= 59")}},d.hourRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=0&&a<=23,"hours part must be >= 0 and <= 23")}},d.dayOfMonthRange=function(y){for(var t=y.split(","),e=0;e<t.length;e++)if(!isNaN(parseInt(t[e],10))){var a=parseInt(t[e],10);b(a>=1&&a<=31,"DOM part must be >= 1 and <= 31")}},d.monthRange=function(y,t){for(var e=y.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var r=parseInt(e[a],10);b(r>=1&&r<=12,t?"month part must be >= 0 and <= 11":"month part must be >= 1 and <= 12")}},d.dayOfWeekRange=function(y,t){for(var e=y.split(","),a=0;a<e.length;a++)if(!isNaN(parseInt(e[a],10))){var r=parseInt(e[a],10);b(r>=0&&r<=6,t?"DOW part must be >= 0 and <= 6":"DOW part must be >= 1 and <= 7")}},d}();p.default=o},910:(x,p)=>{Object.defineProperty(p,"__esModule",{value:!0}),p.StringUtilities=void 0;var b=function(){function o(){}return o.format=function(d){for(var y=[],t=1;t<arguments.length;t++)y[t-1]=arguments[t];return d.replace(/%s/g,function(e){return y.shift()})},o.containsAny=function(d,y){return y.some(function(t){return d.indexOf(t)>-1})},o}();p.StringUtilities=b}},T={};function E(x){var p=T[x];if(p!==void 0)return p.exports;var b=T[x]={exports:{}};return R[x](b,b.exports,E),b.exports}var X={};return(()=>{var x=X;Object.defineProperty(x,"__esModule",{value:!0}),x.toString=void 0;var p=E(728),b=E(336);p.ExpressionDescriptor.initialize(new b.enLocaleLoader),x.default=p.ExpressionDescriptor;var o=p.ExpressionDescriptor.toString;x.toString=o})(),X})())})(ve);var Fe=ve.exports;const Ge=Oe(Fe),Ze=["title"],Je={"flex-none":"","text-left":""},Qe={flex:"~ gap-2","min-w-0":"","items-center":"","text-sm":""},Ke={class:"truncate"},et={"text-xs":"",op50:""},tt=h("div",{"x-divider":""},null,-1),nt={key:0},rt=["onClick"],ot=h("div",{"x-divider":""},null,-1),at=ee({__name:"CronCollection",props:{collection:{}},setup(q){const L=q,R=re(),T=H(!0),E=U(()=>Ge.toString(L.collection.cron));return(X,x)=>{const p=oe,b=pe;return g(),$("div",null,[h("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",p2:"",title:l(E),onClick:x[0]||(x[0]=o=>T.value=!l(T))},[h("div",Je,[O(p,{icon:"carbon:chevron-right","mb0.5":"","transform-rotate":l(T)?90:0,transition:""},null,8,["transform-rotate"])]),h("span",Qe,[O(b,{class:"font-mono n-primary",textContent:N(X.collection.cron)},null,8,["textContent"]),h("span",Ke,N(l(E)),1),h("span",et,"("+N(X.collection.tasks.length)+")",1)])],8,Ze),tt,l(T)?(g(),$("ul",nt,[(g(!0),$(B,null,Z(X.collection.tasks,o=>(g(),$("li",{key:o},[h("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"","pl-9":"","font-mono":"",class:F([{"bg-active":l(R)===o}]),onClick:d=>R.value=o},N(o),11,rt),ot]))),128))])):j("",!0)])}}}),it={"h-full":"","w-full":"",flex:"~ col"},st={flex:"~ col gap-2","flex-none":"",p4:"","n-navbar-glass":""},ut={flex:"~ gap2 items-center"},lt={relative:"","w-full":""},ct={absolute:"","right-2":"","top-1.5":"",flex:"~ gap-1"},ft={flex:"~ gap2 wrap","w-full":"","items-center":"",px4:"",pb2:"","text-center":"","text-sm":"",border:"b base"},pt={class:"hidden md:block"},dt={flex:"~ gap2","mb--2":"","items-center":"",op50:""},ht=h("div",{"w-5":"","x-divider":""},null,-1),vt=h("div",{"flex-none":""}," Default Inputs ",-1),mt=h("div",{"x-divider":""},null,-1),yt={key:0,border:"b base",relative:"","n-code-block":""},gt={flex:"~ wrap","w-full":""},_t=["onClick"],bt=h("div",{border:"b base","flex-auto":""},null,-1),kt={border:"b base",flex:"~ gap2","items-center":"",px4:"",py2:""},Ot=h("div",null,"Result",-1),Tt={key:1,"text-xs":"",op50:""},xt=h("div",{"flex-auto":""},null,-1),St=h("div",{op50:""}," Tasks finished in ",-1),wt=ee({__name:"ServerTaskDetails",props:{task:{}},emits:["open-default-input"],setup(q,{emit:L}){const R=q,T=L,E=H({payload:{}}),{inputDefaults:X}=le("serverRoutes"),[x,p]=Te(),b=xe(),o=Se(),d=se({contentType:"text/plain",data:"",statusCode:200,error:void 0,fetchTime:0}),y=U(()=>JSON.stringify(d.data,null,2)),t=U(()=>d.contentType.includes("application/json")?"json":"text"),e=H(!1),a=H(!1),r=we(),n=H(),s=["json"],i=H(s[0]),u=se({query:[{active:!0,key:"",value:"",type:"string"}],body:[{active:!0,key:"",value:"",type:"string"}],headers:[]}),v=U({get:()=>u[n.value],set:_=>{u[n.value]=_}}),c=U(()=>({...D(X.value.query),...D(u.query)})),m=U(()=>({...D(X.value.headers)})),f=U(()=>Object.keys(E.value?.payload??{}).length?{...E.value}:void 0),C=U(()=>f.value?"POST":"GET"),S=U(()=>{let _=window?.location.origin;return _.charAt(_.length-1)==="/"&&(_=_.slice(0,-1)),_}),W=U(()=>{let _=new URLSearchParams(c.value).toString();_&&(_=`?${_}`);const k=`/_nitro/tasks/${R.task.name}${_}`;let M=o.value?.app.baseURL||"";return(M==="./"||M===".")&&(M=""),M.endsWith("/")&&(M=M.slice(0,-1)),M+k}),V=U(()=>S.value+W.value);function D(_){const k=Object.fromEntries(_.filter(({active:M,key:P,value:J})=>M&&P&&J!==void 0).map(({key:M,value:P})=>[M,P]));return Object.entries(k).length?k:void 0}async function z(){a.value=!0,e.value=!0;const _=Date.now();$e("server-tasks:run",{method:C.value});try{d.data=await $fetch(V.value,{method:"POST",headers:m.value,query:c.value,body:f.value,onResponse({response:k}){d.contentType=(k.headers.get("content-type")||"").toString().toLowerCase().trim(),d.statusCode=k.status,d.error=void 0},onResponseError(k){d.error=k.response._data,d.data=k.response._data}})}catch{}e.value=!1,d.fetchTime=Date.now()-_}const te=U(()=>{const _=[];return _.push({name:"Query",slug:"query",length:u.query.length}),_.push({name:"Body",slug:"body",length:u.body.length}),_});Xe(()=>{if(i.value==="json"&&typeof E.value=="string")try{E.value=JSON.parse(E.value)}catch{}});const ae=De("nuxt-devtools:server-tasks:inputs",()=>[],{window:window.parent});Ee([u,n],()=>{const _=ae.value?.find(k=>k.task===R.task.name);if(_){n.value||(n.value=_.tab),_.tab!==n.value&&(_.tab=n.value);const{body:k,query:M,headers:P}=_.inputs;Object.assign(u,{body:k,query:M,headers:P})}else{const k={task:R.task.name,tab:"query",inputs:u};ae.value.push(k),n.value||(n.value=k.tab)}},{immediate:!0,deep:!0,debounce:500});const ye=Me();return(_,k)=>{const M=ce,P=Ue,J=oe,ie=de,ge=fe,_e=Le,ne=pe,be=ze,Q=ue("tooltip");return g(),$("div",it,[h("div",st,[h("div",ut,[G((g(),$("div",null,[O(M,{class:F(["n-badge-base n-sm",("getRequestMethodClass"in _?_.getRequestMethodClass:l(Ce))(l(C))]),"pointer-events-none":"","font-mono":"",tabindex:"-1"},{default:I(()=>[Y(N(l(C)),1)]),_:1},8,["class"])])),[[Q,`Method is ${l(C)} as ${l(C)==="GET"?"no":""} json body is sent`]]),h("div",lt,[O(P,{"model-value":l(W),readonly:"","flex-auto":"","font-mono":"",p:"x5 y2",n:"sm"},null,8,["model-value"]),h("div",ct,[G(O(M,{title:"Copy URL",n:"xs blue",icon:"carbon:copy",border:!1,onClick:k[0]||(k[0]=w=>l(ye)(l(V),"server-task-url"))},null,512),[[Q,"Copy URL"]]),G(O(M,{title:"Open in Editor",icon:"carbon-launch",n:"xs blue",border:!1,onClick:k[1]||(k[1]=w=>l(r)(_.task.handler))},null,512),[[Q,"Open in Editor"]])])]),O(M,{"h-full":"",n:"primary solid",onClick:z},{default:I(()=>[O(J,{icon:"carbon:send"})]),_:1})])]),h("div",ft,[(g(!0),$(B,null,Z(l(te),w=>G((g(),A(M,{key:w.slug,class:F(l(n)===w.slug?"text-primary n-primary":"border-transparent shadow-none"),onClick:ke=>n.value=w.slug},{default:I(()=>[O(J,{icon:("ServerRouteTabIcons"in _?_.ServerRouteTabIcons:l(he))[w.slug]},null,8,["icon"]),h("div",pt,[Y(N(w.name)+" "+N(w?.length?`(${w.length})`:"")+" ",1),h("span",null,N(l(X)[w.slug]?.length?`(${l(X)[w.slug].length})`:""),1)])]),_:2},1032,["class","onClick"])),[[Q,w.name]])),128))]),O(l(x),null,{default:I(()=>[O(ie,{modelValue:l(v),"onUpdate:modelValue":k[4]||(k[4]=w=>K(v)?v.value=w:null),default:{active:!0,type:"string"},"max-h-xs":"","of-auto":""},{default:I(()=>[l(X)[l(n)]?.length?(g(),$(B,{key:0},[h("div",dt,[ht,vt,O(M,{icon:"i-carbon-edit",border:!1,onClick:k[2]||(k[2]=w=>T("open-default-input"))}),mt]),O(ie,{modelValue:l(X)[l(n)],"onUpdate:modelValue":k[3]||(k[3]=w=>l(X)[l(n)]=w),disabled:"",p0:""},null,8,["modelValue"])],64)):j("",!0)]),_:1},8,["modelValue"])]),_:1}),l(v)?(g(),$("div",yt,[l(n)==="body"?(g(),$(B,{key:0},[h("div",gt,[(g(),$(B,null,Z(s,w=>h("button",{key:w,px4:"",py2:"",border:"r base",hover:"bg-active",class:F({"border-b":w!==l(i)}),onClick:ke=>i.value=w},[h("div",{class:F({op30:w!==l(i)}),"font-mono":""},N(w),3)],10,_t)),64)),bt]),l(i)==="input"?(g(),A(l(p),{key:0})):l(i)==="json"?(g(),A(l(qe),Ie({key:1,modelValue:l(E),"onUpdate:modelValue":k[5]||(k[5]=w=>K(E)?E.value=w:null),class:[l(b)==="dark"?"jse-theme-dark":"light","json-editor-vue of-auto text-sm outline-none"]},_.$attrs,{mode:"text","navigation-bar":!1,indentation:2,"tab-size":2}),null,16,["modelValue","class"])):j("",!0)],64)):(g(),A(l(p),{key:1}))])):j("",!0),l(a)?l(e)?(g(),A(_e,{key:2,"z-10":"","flex-auto":"","backdrop-blur":""},{default:I(()=>[Y(" Running... ")]),_:1})):(g(),$(B,{key:3},[h("div",kt,[Ot,l(d).error?(g(),A(ne,{key:0,n:"red"},{default:I(()=>[Y(" Error ")]),_:1})):j("",!0),O(ne,{n:l(d).error?"orange":"green",textContent:N(l(d).statusCode)},null,8,["n","textContent"]),l(d).contentType?(g(),$("code",Tt,N(l(d).contentType),1)):j("",!0),xt,St,O(ne,{n:"green"},{default:I(()=>[Y(N(l(d).fetchTime)+" ms ",1)]),_:1})]),O(be,{"flex-auto":"","overflow-auto":"","py-2":"",code:l(y),lang:l(t)},null,8,["code","lang"])],64)):(g(),A(ge,{key:1},{default:I(()=>[O(M,{n:"primary",onClick:z},{default:I(()=>[O(J,{icon:"carbon:send"}),Y(" Run task ")]),_:1})]),_:1}))])}}}),Xt={"flex-none":"","text-left":""},Dt={flex:"","items-center":"","text-sm":"","font-mono":""},Et=h("div",{"x-divider":""},null,-1),me=ee({__name:"ServerTaskListItem",props:{item:{},index:{default:0}},setup(q){const L=H(!0),R=re();return(T,E)=>{const X=oe,x=me;return g(),$("div",null,[h("button",{flex:"~ gap-2","w-full":"","items-start":"","items-center":"","hover-bg-active":"",px2:"",py1:"",class:F([{"bg-active":l(R)===T.item.name}]),style:Re({paddingLeft:`calc(0.5rem + ${T.index*1.5}em)`}),onClick:E[0]||(E[0]=p=>{L.value=!l(L),R.value=T.item.name})},[h("div",Xt,[T.item.type==="collection"?(g(),A(X,{key:0,icon:"carbon:chevron-right","mb0.5":"","transform-rotate":l(L)?90:0,transition:""},null,8,["transform-rotate"])):j("",!0)]),h("span",Dt,[T.item.type==="collection"?(g(),A(X,{key:0,title:`${T.item.tasks?.length} tasks`,icon:"carbon:folder",mr1:""},null,8,["title"])):(g(),A(X,{key:1,icon:"carbon:play",ml3:"",mr1:""})),Y(" "+N(T.item.name),1)])],6),Et,l(L)?Ne(T.$slots,"default",{key:0},()=>[(g(!0),$(B,null,Z(T.item.tasks,p=>(g(),A(x,{key:p.name,item:p,index:T.index+1},null,8,["item","index"]))),128))]):j("",!0)])}}}),Mt={flex:"~ gap1","text-sm":""},Ct={key:0,op50:""},It={op50:""},$t=h("div",{px4:"",py2:"",border:"b base"}," Cron groups ",-1),Ut=h("span",{op75:""},"Select a task to start",-1),Lt=h("div",{p4:"",border:"b base"},[h("span",{"text-lg":""},"Default Inputs"),h("br"),h("span",{"text-white":"",op50:""},"Merged as default for every task in DevTools")],-1),Gt=ee({__name:"server-tasks",setup(q){const L=H(!1),R=Ae(),T=U(()=>Object.keys(R.value?.tasks??{}).map(r=>({name:r,...R.value.tasks[r],type:"task"}))),E=U(()=>Object.entries(R.value?.scheduledTasks??{}).map(([r,n])=>({cron:r,tasks:n}))),X=re(),{view:x,selectedTask:p,inputDefaults:b}=le("serverTasks"),o=U(()=>{!X.value&&p.value&&(X.value=p.value.name);const r=T.value.find(n=>n.name===X.value);return X.value!==p.value?.name&&r&&(p.value=r),r}),d=H(""),y=U(()=>new Ve(T.value,{keys:["key","description"],shouldSort:!0})),t=U(()=>d.value?y.value.search(d.value).map(n=>n.item):T.value),e=U(()=>{const r=[],n=(i,u)=>{i.tasks||=[],i.tasks.push(u)},s=(i,u)=>{const v=u?u.tasks?.find(m=>m.name===i):r.find(m=>m.name===i);if(v)return{...v,type:"collection"};const c={name:i,handler:i,description:"",type:"collection",tasks:[]};return u?n(u,c):r.push(c),c};return t.value.forEach(i=>{let u;const v={...i,type:"task"},m=i.name.split(":").concat();m.length>0&&m[m.length-1].includes(".")&&m.pop(),m.forEach(f=>{u=s(f,u)}),u?n(u,v):r.push(v)}),r});function a(){x.value=x.value==="tree"?"list":"tree"}return(r,n)=>{const s=ce,i=He,u=at,v=je,c=wt,m=We,f=fe,C=de,S=Pe,W=Ye,V=ue("tooltip");return g(),$(B,null,[O(v,{"storage-key":"tab-server-tasks"},{left:I(()=>[O(v,{horizontal:"","storage-key":"tab-server-tasks-split"},{left:I(()=>[O(i,{search:l(d),"onUpdate:search":n[1]||(n[1]=D=>K(d)?d.value=D:null),pb2:""},{actions:I(()=>[G(O(s,{"text-lg":"",icon:l(x)==="list"?"i-carbon-list":"i-carbon-tree-view-alt",title:"Toggle view",border:!1,onClick:a},null,8,["icon"]),[[V,"Toggle View"]]),G(O(s,{"text-lg":"",icon:"i-carbon-cics-sit-overrides",title:"Default Inputs",border:!1,onClick:n[0]||(n[0]=D=>L.value=!l(L))},null,512),[[V,"Default Inputs"]])]),default:I(()=>[h("div",Mt,[l(d)?(g(),$("span",Ct,N(l(t).length)+" matched · ",1)):j("",!0),h("span",It,N(l(T)?.length)+" tasks in total",1)])]),_:1},8,["search"]),(g(!0),$(B,null,Z(l(x)==="tree"?l(e):l(t),D=>(g(),A(me,{key:D.name,item:D},null,8,["item"]))),128))]),right:I(()=>[$t,h("div",null,[h("ul",null,[(g(!0),$(B,null,Z(l(E),D=>(g(),$("li",{key:D.cron},[O(u,{collection:D},null,8,["collection"])]))),128))])])]),_:1})]),right:I(()=>[(g(),A(Be,{max:10},[l(o)?(g(),A(c,{key:l(o).name,task:l(o),onOpenDefaultInput:n[2]||(n[2]=D=>L.value=!0)},null,8,["task"])):j("",!0)],1024)),l(o)?j("",!0):(g(),A(f,{key:0},{default:I(()=>[O(m,{px6:"",py2:""},{default:I(()=>[Ut]),_:1})]),_:1}))]),_:1}),O(W,{modelValue:l(L),"onUpdate:modelValue":n[4]||(n[4]=D=>K(L)?L.value=D:null),"auto-close":"","max-w-xl":"","min-w-xl":"",onClose:n[5]||(n[5]=D=>L.value=!1)},{default:I(()=>[h("div",null,[Lt,O(S,{text:`Query ${l(b).query.length?`(${l(b).query.length})`:""}`,padding:!1,icon:("ServerRouteTabIcons"in r?r.ServerRouteTabIcons:l(he)).query},{default:I(()=>[O(C,{modelValue:l(b).query,"onUpdate:modelValue":n[3]||(n[3]=D=>l(b).query=D),py0:"",default:{active:!0,type:"string"}},null,8,["modelValue"])]),_:1},8,["text","icon"])])]),_:1},8,["modelValue"])],64)}}});export{Gt as default};
@@ -1,4 +1,4 @@
1
- import{_ as W}from"./BqquXJFk.js";import{d as A,a as B,r as J,ar as V,bY as Y,o as Z,h as k,f as G}from"./BIR-zdoB.js";function C(){}C.prototype={diff:function(e,o){var r,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=u.callback;typeof u=="function"&&(t=u,u={}),this.options=u;var f=this;function i(c){return t?(setTimeout(function(){t(void 0,c)},0),!0):c}e=this.castInput(e),o=this.castInput(o),e=this.removeEmpty(this.tokenize(e)),o=this.removeEmpty(this.tokenize(o));var s=o.length,l=e.length,d=1,p=s+l;u.maxEditLength&&(p=Math.min(p,u.maxEditLength));var m=(r=u.timeout)!==null&&r!==void 0?r:1/0,h=Date.now()+m,a=[{oldPos:-1,lastComponent:void 0}],v=this.extractCommon(a[0],o,e,0);if(a[0].oldPos+1>=l&&v+1>=s)return i([{value:this.join(o),count:o.length}]);var g=-1/0,L=1/0;function $(){for(var c=Math.max(g,-d);c<=Math.min(L,d);c+=2){var y=void 0,x=a[c-1],D=a[c+1];x&&(a[c-1]=void 0);var E=!1;if(D){var M=D.oldPos-c;E=D&&0<=M&&M<s}var O=x&&x.oldPos+1<l;if(!E&&!O){a[c]=void 0;continue}if(!O||E&&x.oldPos+1<D.oldPos?y=f.addToPath(D,!0,void 0,0):y=f.addToPath(x,void 0,!0,1),v=f.extractCommon(y,o,e,c),y.oldPos+1>=l&&v+1>=s)return i(H(f,y.lastComponent,o,e,f.useLongestToken));a[c]=y,y.oldPos+1>=l&&(L=Math.min(L,c-1)),v+1>=s&&(g=Math.max(g,c+1))}d++}if(t)(function c(){setTimeout(function(){if(d>p||Date.now()>h)return t();$()||c()},0)})();else for(;d<=p&&Date.now()<=h;){var q=$();if(q)return q}},addToPath:function(e,o,r,u){var t=e.lastComponent;return t&&t.added===o&&t.removed===r?{oldPos:e.oldPos+u,lastComponent:{count:t.count+1,added:o,removed:r,previousComponent:t.previousComponent}}:{oldPos:e.oldPos+u,lastComponent:{count:1,added:o,removed:r,previousComponent:t}}},extractCommon:function(e,o,r,u){for(var t=o.length,f=r.length,i=e.oldPos,s=i-u,l=0;s+1<t&&i+1<f&&this.equals(o[s+1],r[i+1]);)s++,i++,l++;return l&&(e.lastComponent={count:l,previousComponent:e.lastComponent}),e.oldPos=i,s},equals:function(e,o){return this.options.comparator?this.options.comparator(e,o):e===o||this.options.ignoreCase&&e.toLowerCase()===o.toLowerCase()},removeEmpty:function(e){for(var o=[],r=0;r<e.length;r++)e[r]&&o.push(e[r]);return o},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function H(n,e,o,r,u){for(var t=[],f;e;)t.push(e),f=e.previousComponent,delete e.previousComponent,e=f;t.reverse();for(var i=0,s=t.length,l=0,d=0;i<s;i++){var p=t[i];if(p.removed){if(p.value=n.join(r.slice(d,d+p.count)),d+=p.count,i&&t[i-1].added){var h=t[i-1];t[i-1]=t[i],t[i]=h}}else{if(!p.added&&u){var m=o.slice(l,l+p.count);m=m.map(function(v,g){var L=r[d+g];return L.length>v.length?L:v}),p.value=n.join(m)}else p.value=n.join(o.slice(l,l+p.count));l+=p.count,p.added||(d+=p.count)}}var a=t[s-1];return s>1&&typeof a.value=="string"&&(a.added||a.removed)&&n.equals("",a.value)&&(t[s-2].value+=a.value,t.pop()),t}var R=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,F=/\S/,N=new C;N.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!F.test(n)&&!F.test(e)};N.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),o=0;o<e.length-1;o++)!e[o+1]&&e[o+2]&&R.test(e[o])&&R.test(e[o+2])&&(e[o]+=e[o+2],e.splice(o+1,2),o--);return e};var I=new C;I.tokenize=function(n){this.options.stripTrailingCr&&(n=n.replace(/\r\n/g,`
1
+ import{_ as W}from"./BP18yFEx.js";import{d as A,a as B,r as J,ar as V,bY as Y,o as Z,h as k,f as G}from"./DK_JXXAF.js";function C(){}C.prototype={diff:function(e,o){var r,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},t=u.callback;typeof u=="function"&&(t=u,u={}),this.options=u;var f=this;function i(c){return t?(setTimeout(function(){t(void 0,c)},0),!0):c}e=this.castInput(e),o=this.castInput(o),e=this.removeEmpty(this.tokenize(e)),o=this.removeEmpty(this.tokenize(o));var s=o.length,l=e.length,d=1,p=s+l;u.maxEditLength&&(p=Math.min(p,u.maxEditLength));var m=(r=u.timeout)!==null&&r!==void 0?r:1/0,h=Date.now()+m,a=[{oldPos:-1,lastComponent:void 0}],v=this.extractCommon(a[0],o,e,0);if(a[0].oldPos+1>=l&&v+1>=s)return i([{value:this.join(o),count:o.length}]);var g=-1/0,L=1/0;function $(){for(var c=Math.max(g,-d);c<=Math.min(L,d);c+=2){var y=void 0,x=a[c-1],D=a[c+1];x&&(a[c-1]=void 0);var E=!1;if(D){var M=D.oldPos-c;E=D&&0<=M&&M<s}var O=x&&x.oldPos+1<l;if(!E&&!O){a[c]=void 0;continue}if(!O||E&&x.oldPos+1<D.oldPos?y=f.addToPath(D,!0,void 0,0):y=f.addToPath(x,void 0,!0,1),v=f.extractCommon(y,o,e,c),y.oldPos+1>=l&&v+1>=s)return i(H(f,y.lastComponent,o,e,f.useLongestToken));a[c]=y,y.oldPos+1>=l&&(L=Math.min(L,c-1)),v+1>=s&&(g=Math.max(g,c+1))}d++}if(t)(function c(){setTimeout(function(){if(d>p||Date.now()>h)return t();$()||c()},0)})();else for(;d<=p&&Date.now()<=h;){var q=$();if(q)return q}},addToPath:function(e,o,r,u){var t=e.lastComponent;return t&&t.added===o&&t.removed===r?{oldPos:e.oldPos+u,lastComponent:{count:t.count+1,added:o,removed:r,previousComponent:t.previousComponent}}:{oldPos:e.oldPos+u,lastComponent:{count:1,added:o,removed:r,previousComponent:t}}},extractCommon:function(e,o,r,u){for(var t=o.length,f=r.length,i=e.oldPos,s=i-u,l=0;s+1<t&&i+1<f&&this.equals(o[s+1],r[i+1]);)s++,i++,l++;return l&&(e.lastComponent={count:l,previousComponent:e.lastComponent}),e.oldPos=i,s},equals:function(e,o){return this.options.comparator?this.options.comparator(e,o):e===o||this.options.ignoreCase&&e.toLowerCase()===o.toLowerCase()},removeEmpty:function(e){for(var o=[],r=0;r<e.length;r++)e[r]&&o.push(e[r]);return o},castInput:function(e){return e},tokenize:function(e){return e.split("")},join:function(e){return e.join("")}};function H(n,e,o,r,u){for(var t=[],f;e;)t.push(e),f=e.previousComponent,delete e.previousComponent,e=f;t.reverse();for(var i=0,s=t.length,l=0,d=0;i<s;i++){var p=t[i];if(p.removed){if(p.value=n.join(r.slice(d,d+p.count)),d+=p.count,i&&t[i-1].added){var h=t[i-1];t[i-1]=t[i],t[i]=h}}else{if(!p.added&&u){var m=o.slice(l,l+p.count);m=m.map(function(v,g){var L=r[d+g];return L.length>v.length?L:v}),p.value=n.join(m)}else p.value=n.join(o.slice(l,l+p.count));l+=p.count,p.added||(d+=p.count)}}var a=t[s-1];return s>1&&typeof a.value=="string"&&(a.added||a.removed)&&n.equals("",a.value)&&(t[s-2].value+=a.value,t.pop()),t}var R=/^[A-Za-z\xC0-\u02C6\u02C8-\u02D7\u02DE-\u02FF\u1E00-\u1EFF]+$/,F=/\S/,N=new C;N.equals=function(n,e){return this.options.ignoreCase&&(n=n.toLowerCase(),e=e.toLowerCase()),n===e||this.options.ignoreWhitespace&&!F.test(n)&&!F.test(e)};N.tokenize=function(n){for(var e=n.split(/([^\S\r\n]+|[()[\]{}'"\r\n]|\b)/),o=0;o<e.length-1;o++)!e[o+1]&&e[o+2]&&R.test(e[o])&&R.test(e[o+2])&&(e[o]+=e[o+2],e.splice(o+1,2),o--);return e};var I=new C;I.tokenize=function(n){this.options.stripTrailingCr&&(n=n.replace(/\r\n/g,`
2
2
  `));var e=[],o=n.split(/(\n|\r\n)/);o[o.length-1]||o.pop();for(var r=0;r<o.length;r++){var u=o[r];r%2&&!this.options.newlineIsToken?e[e.length-1]+=u:(this.options.ignoreWhitespace&&(u=u.trim()),e.push(u))}return e};function Q(n,e,o){return I.diff(n,e,o)}var U=new C;U.tokenize=function(n){return n.split(/(\S.+?[.!?])(?=\s+|$)/)};var X=new C;X.tokenize=function(n){return n.split(/([{}:;,]|\s+)/)};function w(n){"@babel/helpers - typeof";return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?w=function(e){return typeof e}:w=function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},w(n)}var K=Object.prototype.toString,T=new C;T.useLongestToken=!0;T.tokenize=I.tokenize;T.castInput=function(n){var e=this.options,o=e.undefinedReplacement,r=e.stringifyReplacer,u=r===void 0?function(t,f){return typeof f>"u"?o:f}:r;return typeof n=="string"?n:JSON.stringify(z(n,null,null,u),u," ")};T.equals=function(n,e){return C.prototype.equals.call(T,n.replace(/,([\r\n])/g,"$1"),e.replace(/,([\r\n])/g,"$1"))};function z(n,e,o,r,u){e=e||[],o=o||[],r&&(n=r(u,n));var t;for(t=0;t<e.length;t+=1)if(e[t]===n)return o[t];var f;if(K.call(n)==="[object Array]"){for(e.push(n),f=new Array(n.length),o.push(f),t=0;t<n.length;t+=1)f[t]=z(n[t],e,o,r,u);return e.pop(),o.pop(),f}if(n&&n.toJSON&&(n=n.toJSON()),w(n)==="object"&&n!==null){e.push(n),f={},o.push(f);var i=[],s;for(s in n)n.hasOwnProperty(s)&&i.push(s);for(i.sort(),t=0;t<i.length;t+=1)s=i[t],f[s]=z(n[s],e,o,r,s);e.pop(),o.pop()}else f=n;return f}var _=new C;_.tokenize=function(n){return n.slice()};_.join=_.removeEmpty=function(n){return n};const b=A({__name:"CodeDiff",props:{from:{},to:{},lang:{}},setup(n){const e=n;function o(i,s){const l=Q(i.trim(),s.trim()),d=[],p=[],m=[];for(const h of l){const a=h.value.trimEnd().split(`
3
3
  `);for(const v of a)h.added?(d.push(m.length),m.push(v)):(h.removed&&p.push(m.length),m.push(v))}return{added:d,removed:p,result:m.join(`
4
4
  `)}}const r=B(()=>o(e.from,e.to));function u(i){let s=0;return i.replace(/class="shiki/,'class="shiki diff').replace(/class="line"/g,l=>(s++,r.value.added.includes(s-1)?'class="line line-added"':r.value.removed.includes(s-1)?'class="line line-removed"':l))}const t=J();V(f);function f(){const i=Y(t);i&&i.querySelector(".line-added,.line-removed")?.scrollIntoView()}return(i,s)=>{const l=W;return Z(),k(l,{ref_key:"elRef",ref:t,code:G(r).result,lang:i.lang,"transform-rendered":u,onLoaded:f},null,8,["code","lang"])}}});export{b as _};
@@ -1,3 +1,3 @@
1
- import{d as N,a as C,aY as oe,e as ne,ac as H,r as A,f as t,h as I,j as _,p as x,o,k as e,m as a,n as B,G as O,t as p,F as T,i as d,v as $,as as V,_ as J,a9 as R,aZ as P,a_ as ae,a$ as se,b0 as re,y as ie,z as ce,q as le,b1 as de,b2 as pe,b3 as me,b as ue,b4 as ge,b5 as he,b6 as _e,b7 as G,aB as fe,a2 as ve,l as be,ae as we,I as z,X as xe}from"./BIR-zdoB.js";import{_ as ye}from"./4Dr4Cj7R.js";import{_ as U}from"./BMGqu_eq.js";import{_ as q}from"./D-oZYQtF.js";import{_ as ke}from"./BqquXJFk.js";import{_ as $e}from"./xLwx2Q8v.js";import"./BTgTnXCo.js";import"./BrtwsvwD.js";const K=[{name:"title",suggestion:"required",head:{title:"[title]"},seoMeta:{title:"[title]"},docs:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title",description:"A concise and descriptive title for the browser that accurately summarizes the content of the page."},{name:"description",suggestion:"required",head:{meta:[{name:"description",content:"[description]"}]},seoMeta:{description:"[description]"},description:"A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results."},{name:"icon",suggestion:"recommended",head:{link:[{rel:"icon",type:"image/png",href:"/favicon.png"}]},description:"A small image that appears in the browser tab and bookmark menu to help users easily identify the page."},{name:"lang",suggestion:"recommended",head:{htmlAttrs:{lang:"en"}},description:"The primary language of the page to help search engines and browsers understand the content."},{name:"og:title",suggestion:"recommended",head:{meta:[{property:"og:title",content:"[og:title]"}]},seoMeta:{ogTitle:"[og:title]"},docs:"https://ogp.me/#metadata",description:"A title for the link preview used by social media platforms."},{name:"og:description",suggestion:"recommended",head:{meta:[{property:"og:description",content:"[og:description]"}]},seoMeta:{ogDescription:"[og:description]"},docs:"https://ogp.me/#metadata",description:"A description for the link preview used by social media platforms."},{name:"og:image",suggestion:"recommended",head:{meta:[{property:"og:image",content:"[og:image]"}]},seoMeta:{ogImage:"[og:image]"},docs:"https://ogp.me/#metadata",description:"An image for the link preview used by social media platforms."},{name:"og:url",suggestion:"recommended",head:{meta:[{property:"og:url",content:"[og:url]"}]},seoMeta:{ogUrl:"[og:url]"},docs:"https://ogp.me/#metadata",description:"A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page."},{name:"twitter:title",suggestion:"optional",head:{meta:[{name:"twitter:title",content:"[twitter:title]"}]},seoMeta:{twitterTitle:"[twitter:title]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A title for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:description",suggestion:"optional",head:{meta:[{name:"twitter:description",content:"[twitter:description]"}]},seoMeta:{twitterDescription:"[twitter:description]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A description for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:image",suggestion:"optional",head:{meta:[{name:"twitter:image",content:"[twitter:image]"}]},seoMeta:{twitterImage:"[twitter:image]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"An image for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:card",suggestion:"optional",head:{meta:[{name:"twitter:card",content:"summary"}]},seoMeta:{twitterCard:"summary"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"The type of Twitter card to use, which determines the type of card to display in link previews on Twitter."}],Se={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},Te=["onClick"],Ce=e("div",{border:"b base","flex-auto":""},null,-1),Ne={key:0,"x-divider":""},Me={key:1,"x-divider":""},Oe={flex:"~ gap-1 items-center",class:"px2 pt2",lg:"px4 py2"},Ie=e("div",{"i-carbon-warning":"","text-orange":""},null,-1),Ae={"w-full":"",p2:"",op75:""},Be={key:1,m4:"",flex:"~ col gap-2"},Re={flex:"~ gap-1 wrap items-center"},Le={key:1},je={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},Fe=N({__name:"OpenGraphMissingTabs",props:{tags:{},matchedRouteFilepath:{}},setup(h){const s=h,l=C(()=>K.filter(r=>!s.tags?.some(g=>g.name===r.name))),n=C(()=>{let r={};const g={};l.value.forEach(u=>{u.seoMeta?Object.assign(g,u.seoMeta):r=oe(r,u.head)});const b=[];if(Object.keys(g).length){const u=JSON.stringify(g,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useSeoMeta(${u})`)}if(Object.keys(r).length){const u=JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useHead(${u})`)}return b.join(`
1
+ import{d as N,a as C,aY as oe,e as ne,ac as H,r as A,f as t,h as I,j as _,p as x,o,k as e,m as s,n as B,G as O,t as p,F as T,i as d,v as $,as as V,_ as J,a9 as R,aZ as P,a_ as se,a$ as ae,b0 as re,y as ie,z as ce,q as le,b1 as de,b2 as pe,b3 as me,b as ue,b4 as ge,b5 as he,b6 as _e,b7 as G,aB as fe,a2 as ve,l as be,ae as we,I as z,X as xe}from"./DK_JXXAF.js";import{_ as ye}from"./CZQflZba.js";import{_ as U}from"./GiZoEwQH.js";import{_ as q}from"./PiOA0xLD.js";import{_ as ke}from"./BP18yFEx.js";import{_ as $e}from"./tRGVf0Jt.js";import"./YOyY9aeM.js";import"./BZUqxYL0.js";const K=[{name:"title",suggestion:"required",head:{title:"[title]"},seoMeta:{title:"[title]"},docs:"https://developer.mozilla.org/en-US/docs/Web/HTML/Element/title",description:"A concise and descriptive title for the browser that accurately summarizes the content of the page."},{name:"description",suggestion:"required",head:{meta:[{name:"description",content:"[description]"}]},seoMeta:{description:"[description]"},description:"A one to two sentence summary for search engines that includes relevant keywords to improve visibility in search results."},{name:"icon",suggestion:"recommended",head:{link:[{rel:"icon",type:"image/png",href:"/favicon.png"}]},description:"A small image that appears in the browser tab and bookmark menu to help users easily identify the page."},{name:"lang",suggestion:"recommended",head:{htmlAttrs:{lang:"en"}},description:"The primary language of the page to help search engines and browsers understand the content."},{name:"og:title",suggestion:"recommended",head:{meta:[{property:"og:title",content:"[og:title]"}]},seoMeta:{ogTitle:"[og:title]"},docs:"https://ogp.me/#metadata",description:"A title for the link preview used by social media platforms."},{name:"og:description",suggestion:"recommended",head:{meta:[{property:"og:description",content:"[og:description]"}]},seoMeta:{ogDescription:"[og:description]"},docs:"https://ogp.me/#metadata",description:"A description for the link preview used by social media platforms."},{name:"og:image",suggestion:"recommended",head:{meta:[{property:"og:image",content:"[og:image]"}]},seoMeta:{ogImage:"[og:image]"},docs:"https://ogp.me/#metadata",description:"An image for the link preview used by social media platforms."},{name:"og:url",suggestion:"recommended",head:{meta:[{property:"og:url",content:"[og:url]"}]},seoMeta:{ogUrl:"[og:url]"},docs:"https://ogp.me/#metadata",description:"A canonical URL for the link preview used to specify the preferred URL to display in search engine results and social media previews when multiple URLs may point to the same page."},{name:"twitter:title",suggestion:"optional",head:{meta:[{name:"twitter:title",content:"[twitter:title]"}]},seoMeta:{twitterTitle:"[twitter:title]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A title for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:description",suggestion:"optional",head:{meta:[{name:"twitter:description",content:"[twitter:description]"}]},seoMeta:{twitterDescription:"[twitter:description]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"A description for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:image",suggestion:"optional",head:{meta:[{name:"twitter:image",content:"[twitter:image]"}]},seoMeta:{twitterImage:"[twitter:image]"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"An image for the Twitter card used to provide a preview of the content shared on the page."},{name:"twitter:card",suggestion:"optional",head:{meta:[{name:"twitter:card",content:"summary"}]},seoMeta:{twitterCard:"summary"},docs:"https://developer.twitter.com/en/docs/twitter-for-websites/cards/overview/abouts-cards",description:"The type of Twitter card to use, which determines the type of card to display in link previews on Twitter."}],Se={flex:"~ wrap","mt--2":"","w-full":"","flex-none":""},Te=["onClick"],Ce=e("div",{border:"b base","flex-auto":""},null,-1),Ne={key:0,"x-divider":""},Me={key:1,"x-divider":""},Oe={flex:"~ gap-1 items-center",class:"px2 pt2",lg:"px4 py2"},Ie=e("div",{"i-carbon-warning":"","text-orange":""},null,-1),Ae={"w-full":"",p2:"",op75:""},Be={key:1,m4:"",flex:"~ col gap-2"},Re={flex:"~ gap-1 wrap items-center"},Le={key:1},je={flex:"~ gap-2",n:"sm primary",absolute:"","right-2":"","top-2":""},Fe=N({__name:"OpenGraphMissingTabs",props:{tags:{},matchedRouteFilepath:{}},setup(h){const a=h,l=C(()=>K.filter(r=>!a.tags?.some(g=>g.name===r.name))),n=C(()=>{let r={};const g={};l.value.forEach(u=>{u.seoMeta?Object.assign(g,u.seoMeta):r=oe(r,u.head)});const b=[];if(Object.keys(g).length){const u=JSON.stringify(g,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useSeoMeta(${u})`)}if(Object.keys(r).length){const u=JSON.stringify(r,null,2).replace(/"([^"]+)":/g,"$1:").replace(/"/g,"'");b.push(`useHead(${u})`)}return b.join(`
2
2
 
3
- `)}),m=ne(),y=H(),k=["Missing Tags","Code Snippet"],f=A(k[0]);return(r,g)=>{const b=U,u=V,S=J,M=ke,L=q;return t(l).length?(o(),I(L,{key:0,text:"Missing Tags",description:`${t(l).length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:_(()=>[e("div",Se,[(o(),a(T,null,B(k,(i,c)=>e("button",{key:c,px4:"",py2:"",border:"r t base",hover:"bg-active",class:O(i===t(f)?"":"border-b"),onClick:v=>f.value=i},[e("div",{class:O(i===t(f)?"":"op30"),capitalize:""},p(i),3)],10,Te)),64)),Ce]),t(f)===k[0]?(o(),I(u,{key:0,grid:"~ cols-[1fr] lg:cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),a(T,null,B(t(l),(i,c)=>(o(),a(T,{key:c},[c?(o(),a("div",Ne)):x("",!0),c?(o(),a("div",Me)):x("",!0),e("div",Oe,[Ie,d(b,{"op-50":"",href:i.docs,target:"_blank",n:"orange"},{default:_(()=>[$(p(i.name),1)]),_:2},1032,["href"])]),e("div",Ae,p(i.description),1)],64))),128))]),_:1})):(o(),a("div",Be,[e("p",Re,[d(S,{icon:"carbon-copy",n:"xs","px-2":"",onClick:g[0]||(g[0]=i=>t(m)(t(n),"open-graph-suggestion"))},{default:_(()=>[$(" Copy ")]),_:1}),$(" the following code snippet and paste it into your "),r.matchedRouteFilepath?(o(),I(S,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:g[1]||(g[1]=i=>t(y)(r.matchedRouteFilepath))},{default:_(()=>[$(" page component ")]),_:1})):(o(),a("span",Le,"page component")),$(" to full fill the missing tags. ")]),d(u,{relative:"","n-code-block":""},{default:_(()=>[d(M,{code:t(n),lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),e("div",je,[d(S,{icon:"carbon-copy",onClick:g[2]||(g[2]=i=>t(m)(t(n),"open-graph-suggestion"))},{default:_(()=>[$(" Copy ")]),_:1})])]),_:1})]))]),_:1},8,["description"])):x("",!0)}}}),De={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},ze={class:"break-words border border-base px-[12px] py-[10px] antialiased"},Ee={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},Ge={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},He={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},Ve={class:"mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50",style:{"-webkit-line-clamp":"1","border-spacing":"0px","-webkit-box-orient":"vertical"}},Je=N({__name:"SocialFacebook",props:{card:{}},setup(h){return(s,l)=>(o(),a("div",De,[e("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(s.card.image)})`})},null,4),e("div",ze,[e("div",Ee,p(s.card.url),1),e("div",Ge,[e("div",He,p(s.card.title),1),e("div",Ve,p(s.card.description),1)])])]))}}),Pe={class:"max-w-[438px] min-w-[438px] of-hidden border border-base rounded-[16px] bg-base -outline-offset-1",style:{"font-family":"TwitterChirp, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"}},Ue={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},qe={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},Ke={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},Ye={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},We=N({__name:"SocialTwitter",props:{tags:{}},setup(h){const s=h,l=C(()=>P(s.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"twitter:image"},{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"twitter:image:alt"}],description:[{tag:"meta",name:"twitter:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]})),n=C(()=>l.value.image?s.tags.find(m=>m.tag==="meta"&&m.name==="twitter:card")?.value||"summary_large_image":"summary");return(m,y)=>(o(),a("div",Pe,[e("div",{class:O(["cursor-pointer overflow-hidden leading-[1.3em]",t(n)==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[t(n)==="summary_large_image"?(o(),a("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(t(l).image)})`})},null,4)):(o(),a("div",{key:1,class:"h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(t(l).image)})`})},null,4)),e("div",Ue,[e("div",qe,p(t(l).url),1),e("div",Ke,p(t(l).title),1),e("div",Ye,p(t(l).description),1)])],2)]))}}),Xe={class:"max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] shadow-md bg-base"},Ze={class:"break-words p-[10px] antialiased"},Qe={class:"block h-auto max-h-[50px] border-separate select-none break-words text-left",style:{"border-spacing":"0px"}},et={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},tt={class:"overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85"},ot=N({__name:"SocialLinkedin",props:{card:{}},setup(h){return(s,l)=>(o(),a("div",Xe,[e("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(s.card.image)})`})},null,4),e("div",Ze,[e("div",Qe,[e("div",et,p(s.card.title),1),e("div",tt,p(s.card.url),1)])])]))}}),nt=h=>(ie("data-v-6d584478"),h=h(),ce(),h),at={class:"relative max-w-[420px] min-w-[420px] rounded-[16px] rounded-bl-0 py-[6px] leading-[18px] drop-shadow-sm drop-shadow-color-[#10232f26] bg-base"},st={class:"pl-[10px] pr-[8px]"},rt={class:"text-[#3390ec] leading-normal underline"},it={class:"quote w-full flex"},ct={class:"flex flex-col gap-1"},lt={key:0,class:"my-[3px] overflow-hidden rounded"},dt=["src"],pt={class:"cursor-pointer text-sm text-[#3390ec]"},mt={class:"cursor-pointer text-sm"},ut={class:"cursor-pointer text-sm"},gt={class:"flex justify-end text-xs text-[#707579]"},ht=nt(()=>e("svg",{width:"11",height:"20",viewBox:"0 0 11 20",xmlns:"http://www.w3.org/2000/svg",class:"absolute bottom-0 ml-[-8.4px] translate-y-px text-white"},[e("g",{transform:"translate(9 -14)","fill-rule":"evenodd"},[e("path",{id:"corner-fill",d:"M-6 16h6v17c-.193-2.84-.876-5.767-2.05-8.782-.904-2.325-2.446-4.485-4.625-6.48A1 1 0 01-6 16z",transform:"matrix(1 0 0 -1 0 49)",fill:"currentColor"})])],-1)),_t=N({__name:"SocialTelegram",props:{card:{}},setup(h){const s=ae(),l=se(re(),"HH:mm");return(n,m)=>(o(),a("div",at,[e("div",st,[e("div",rt,p(n.card.url),1),e("div",it,[e("div",ct,[n.card.image?(o(),a("div",lt,[e("img",{class:"h-full max-w-full w-full rounded object-cover",src:n.card.image},null,8,dt)])):x("",!0),e("div",pt,[e("strong",null,p(t(s).hostname),1)]),e("div",mt,[e("strong",null,p(n.card.title),1)]),e("div",ut,p(n.card.description),1)])]),e("div",gt,[e("span",null,p(t(l)),1)])]),ht]))}}),ft=le(_t,[["__scopeId","data-v-6d584478"]]),vt={flex:"~ col"},bt={flex:"~ wrap","w-full":"","flex-none":""},wt=["onClick"],xt=e("div",{border:"b base","flex-auto":""},null,-1),yt={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},kt={key:0},$t={key:1},St={key:2},Tt={key:3},Ct=N({__name:"SocialPreviewGroup",props:{tags:{}},setup(h){const s=h,l=["twitter","facebook","linkedin","telegram"],n=de("nuxt-devtools-social-preview-tab",l[0]),m=C(()=>P(s.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"og:image:alt"}],description:[{tag:"meta",name:"og:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]}));return(y,k)=>{const f=Je,r=We,g=ot,b=ft;return o(),a("div",vt,[e("div",bt,[(o(),a(T,null,B(l,(u,S)=>e("button",{key:S,px4:"",py2:"",border:"r base",hover:"bg-active",class:O(u===t(n)?"":"border-b"),onClick:M=>n.value=u},[e("div",{class:O(u===t(n)?"":"op30"),capitalize:""},p(u),3)],10,wt)),64)),xt]),e("div",yt,[t(n)==="facebook"?(o(),a("div",kt,[d(f,{card:t(m)},null,8,["card"])])):t(n)==="twitter"?(o(),a("div",$t,[d(r,{tags:y.tags},null,8,["tags"])])):t(n)==="linkedin"?(o(),a("div",St,[d(g,{card:t(m)},null,8,["card"])])):t(n)==="telegram"?(o(),a("div",Tt,[d(b,{card:t(m)},null,8,["card"])])):x("",!0)])])}}}),Nt={class:"markdown-body"},Mt=pe('<h1>Open Graph</h1><p>Nuxt provides several different ways to manage your meta tags using <a href="https://unhead.harlanzw.com/" target="_blank" rel="noopener"><code>unhead</code></a>. Improve your Nuxt app’s SEO with powerful head config, composables and components.</p><p><a href="https://nuxt.com/docs/getting-started/seo-meta" target="_blank" rel="noopener">Learn more on the documentation</a></p><hr><p>You can also find how open graph specs are defined in:</p><ul><li><a href="https://ogp.me/" target="_blank" rel="noopener">The Open Graph protocol</a></li><li><a href="https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started" target="_blank" rel="noopener">Twitter Cards</a></li></ul>',6),Ot=[Mt],It={__name:"open-graph",setup(h,{expose:s}){return s({frontmatter:{}}),(n,m)=>(o(),a("div",Nt,Ot))}},At={flex:"~ col lg:row","h-full":"","w-full":"","of-hidden":""},Bt={"flex-auto":"","of-auto":""},Rt={"flex-none":"",flex:"~ gap2 items-center"},Lt={flex:"~ col"},jt={key:0,"x-divider":""},Ft={key:1,"x-divider":""},Dt={mr2:"",px4:"",py2:""},qt=N({__name:"open-graph",setup(h){const s=A(0),l=me(),n=ue(async()=>(s.value,(await l.value?.resolveTags()).map(c=>{const v=c.props||{};return c.tag==="htmlAttrs"&&v.lang?{tag:"html",name:"lang",value:v.lang}:v.charset?{tag:"meta",name:"charset",value:v.charset}:{tag:c.tag,name:v.property??v.name??v.rel??c.tag,value:v.content??v.href??c.textContent??JSON.stringify(v)}})),[]),m=A(!0);function y(){s.value+=1}const k=ge(),f=he(),r=A(""),g=_e(),b=H();async function u(){r.value!==f.value.path&&k.value.push(r.value||"/")}const S=C(()=>r.value===f.value.path?[]:k.value.resolve(r.value||"/").matched),M=C(()=>{const i=g.value.find(c=>c.path===f.value?.matched?.[0]?.path);return i?.file||i?.meta?.file});function L(i){return K.find(c=>c.name===i.name)?.docs}return G(f).toBeTruthy().then(i=>{r.value=i.path}),G(k).toBeTruthy().then(i=>{i.afterEach(()=>{fe(()=>{r.value=f.value.path,setTimeout(y,200),setTimeout(y,800)})})}),(i,c)=>{const v=xe,j=J,Y=ye,E=U,W=V,X=q,Z=Fe,Q=Ct,ee=It,te=$e,F=ve("tooltip");return o(),a(T,null,[e("div",At,[e("div",Bt,[d(Y,null,{search:_(()=>[d(v,{modelValue:t(r),"onUpdate:modelValue":c[0]||(c[0]=w=>be(r)?r.value=w:null),placeholder:"Route",icon:"carbon-direction-right-01 scale-y--100",n:"primary","flex-auto":"","font-mono":"",class:O(["px-5 py-2",t(f)?.path===t(r)?"":t(S).length?"text-green":"text-orange"]),onKeydown:we(u,["enter"])},null,8,["modelValue","class"])]),actions:_(()=>[e("div",Rt,[t(M)?z((o(),I(j,{key:0,"text-lg":"",border:!1,icon:"carbon:launch",title:"Open file in editor",onClick:c[1]||(c[1]=w=>t(b)(t(M)))},null,512)),[[F,"Open file in editor"]]):x("",!0),z(d(j,{"text-lg":"",border:!1,icon:"carbon:reset",title:"Refresh Data",onClick:y},null,512),[[F,"Refresh Data"]]),z(d(j,{"text-lg":"",border:!1,icon:t(m)?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:c[2]||(c[2]=w=>m.value=!t(m))},null,8,["icon"]),[[F,"Toggle Preview"]])])]),_:1}),e("div",Lt,[d(X,{text:"Tags",icon:"carbon:tag-group"},{default:_(()=>[d(W,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),a(T,null,B(t(n),(w,D)=>(o(),a(T,{key:D},[D?(o(),a("div",jt)):x("",!0),D?(o(),a("div",Ft)):x("",!0),e("div",Dt,[d(E,{op50:"",href:L(w),target:"_blank",n:"primary"},{default:_(()=>[$(p(w.name),1)]),_:2},1032,["href"])]),d(E,{href:String(w.value).match(/^https?:\/\//)?w.value:void 0,target:"_blank","w-full":"",p2:"","font-mono":"",n:"primary"},{default:_(()=>[$(p(w.value),1)]),_:2},1032,["href"])],64))),128))]),_:1})]),_:1}),d(Z,{tags:t(n),"matched-route-filepath":t(M)},null,8,["tags","matched-route-filepath"])])]),t(m)&&t(n)?.length?(o(),I(Q,{key:0,tags:t(n),"flex-none":"","border-base":"","lt-lg":"border-t",lg:"h-full w-140 border-l"},null,8,["tags"])):x("",!0)]),d(te,null,{default:_(()=>[d(ee)]),_:1})],64)}}});export{qt as default};
3
+ `)}),m=ne(),y=H(),k=["Missing Tags","Code Snippet"],f=A(k[0]);return(r,g)=>{const b=U,u=V,S=J,M=ke,L=q;return t(l).length?(o(),I(L,{key:0,text:"Missing Tags",description:`${t(l).length} missing tags`,icon:"carbon:warning-other","header-class":"text-orange op100! [[open]_&]:text-inherit",padding:!1},{default:_(()=>[e("div",Se,[(o(),s(T,null,B(k,(i,c)=>e("button",{key:c,px4:"",py2:"",border:"r t base",hover:"bg-active",class:O(i===t(f)?"":"border-b"),onClick:v=>f.value=i},[e("div",{class:O(i===t(f)?"":"op30"),capitalize:""},p(i),3)],10,Te)),64)),Ce]),t(f)===k[0]?(o(),I(u,{key:0,grid:"~ cols-[1fr] lg:cols-[max-content_1fr]",m4:"","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),s(T,null,B(t(l),(i,c)=>(o(),s(T,{key:c},[c?(o(),s("div",Ne)):x("",!0),c?(o(),s("div",Me)):x("",!0),e("div",Oe,[Ie,d(b,{"op-50":"",href:i.docs,target:"_blank",n:"orange"},{default:_(()=>[$(p(i.name),1)]),_:2},1032,["href"])]),e("div",Ae,p(i.description),1)],64))),128))]),_:1})):(o(),s("div",Be,[e("p",Re,[d(S,{icon:"carbon-copy",n:"xs","px-2":"",onClick:g[0]||(g[0]=i=>t(m)(t(n),"open-graph-suggestion"))},{default:_(()=>[$(" Copy ")]),_:1}),$(" the following code snippet and paste it into your "),r.matchedRouteFilepath?(o(),I(S,{key:0,icon:"carbon-launch",n:"xs","px-2":"",onClick:g[1]||(g[1]=i=>t(y)(r.matchedRouteFilepath))},{default:_(()=>[$(" page component ")]),_:1})):(o(),s("span",Le,"page component")),$(" to full fill the missing tags. ")]),d(u,{relative:"","n-code-block":""},{default:_(()=>[d(M,{code:t(n),lang:"ts",lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code"]),e("div",je,[d(S,{icon:"carbon-copy",onClick:g[2]||(g[2]=i=>t(m)(t(n),"open-graph-suggestion"))},{default:_(()=>[$(" Copy ")]),_:1})])]),_:1})]))]),_:1},8,["description"])):x("",!0)}}}),De={class:"max-w-[524px] min-w-[524px] cursor-pointer bg-base"},ze={class:"break-words border border-base px-[12px] py-[10px] antialiased"},Ee={class:"overflow-hidden truncate whitespace-nowrap text-[12px] leading-[11px] uppercase op50"},Ge={class:"block h-[46px] max-h-[46px] border-separate select-none overflow-hidden break-words text-left",style:{"border-spacing":"0px"}},He={class:"mt-[3px] truncate pt-[2px] text-[16px] font-semibold leading-[20px]"},Ve={class:"mt-[3px] block h-[18px] max-h-[80px] border-separate select-none overflow-hidden truncate whitespace-nowrap break-words text-left text-[14px] leading-[20px] op50",style:{"-webkit-line-clamp":"1","border-spacing":"0px","-webkit-box-orient":"vertical"}},Je=N({__name:"SocialFacebook",props:{card:{}},setup(h){return(a,l)=>(o(),s("div",De,[e("div",{class:"h-[274px] border border-b-0 border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(a.card.image)})`})},null,4),e("div",ze,[e("div",Ee,p(a.card.url),1),e("div",Ge,[e("div",He,p(a.card.title),1),e("div",Ve,p(a.card.description),1)])])]))}}),Pe={class:"max-w-[438px] min-w-[438px] of-hidden border border-base rounded-[16px] bg-base -outline-offset-1",style:{"font-family":"TwitterChirp, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif"}},Ue={class:"break-words border-base p-[0.75em] antialiased",flex:"~ col justify-center gap-[2px]"},qe={class:"overflow-hidden truncate whitespace-nowrap text-[15px] leading-[20px] lowercase op50"},Ke={class:"m-0 truncate text-[15px] font-semibold leading-[20px]"},Ye={class:"line-clamp-2 select-none overflow-hidden break-words text-left text-[15px] leading-[20px] op50"},We=N({__name:"SocialTwitter",props:{tags:{}},setup(h){const a=h,l=C(()=>P(a.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"twitter:image"},{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"twitter:image:alt"}],description:[{tag:"meta",name:"twitter:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]})),n=C(()=>l.value.image?a.tags.find(m=>m.tag==="meta"&&m.name==="twitter:card")?.value||"summary_large_image":"summary");return(m,y)=>(o(),s("div",Pe,[e("div",{class:O(["cursor-pointer overflow-hidden leading-[1.3em]",t(n)==="summary_large_image"?"":"flex"]),hover:"bg-[#88888805]"},[t(n)==="summary_large_image"?(o(),s("div",{key:0,class:"h-[220px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(t(l).image)})`})},null,4)):(o(),s("div",{key:1,class:"h-[129px] w-[129px] flex-none border-r border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(t(l).image)})`})},null,4)),e("div",Ue,[e("div",qe,p(t(l).url),1),e("div",Ke,p(t(l).title),1),e("div",Ye,p(t(l).description),1)])],2)]))}}),Xe={class:"max-w-[520px] min-w-[520px] cursor-pointer overflow-hidden border border-base rounded-[2px] shadow-md bg-base"},Ze={class:"break-words p-[10px] antialiased"},Qe={class:"block h-auto max-h-[50px] border-separate select-none break-words text-left",style:{"border-spacing":"0px"}},et={class:"pb-[2px] text-[16px] font-semibold leading-[24px]"},tt={class:"overflow-hidden truncate whitespace-nowrap text-xs font-normal uppercase op85"},ot=N({__name:"SocialLinkedin",props:{card:{}},setup(h){return(a,l)=>(o(),s("div",Xe,[e("div",{class:"h-[270px] border-b border-base bg-cover bg-center bg-no-repeat",style:R({backgroundImage:`url(${JSON.stringify(a.card.image)})`})},null,4),e("div",Ze,[e("div",Qe,[e("div",et,p(a.card.title),1),e("div",tt,p(a.card.url),1)])])]))}}),nt=h=>(ie("data-v-6d584478"),h=h(),ce(),h),st={class:"relative max-w-[420px] min-w-[420px] rounded-[16px] rounded-bl-0 py-[6px] leading-[18px] drop-shadow-sm drop-shadow-color-[#10232f26] bg-base"},at={class:"pl-[10px] pr-[8px]"},rt={class:"text-[#3390ec] leading-normal underline"},it={class:"quote w-full flex"},ct={class:"flex flex-col gap-1"},lt={key:0,class:"my-[3px] overflow-hidden rounded"},dt=["src"],pt={class:"cursor-pointer text-sm text-[#3390ec]"},mt={class:"cursor-pointer text-sm"},ut={class:"cursor-pointer text-sm"},gt={class:"flex justify-end text-xs text-[#707579]"},ht=nt(()=>e("svg",{width:"11",height:"20",viewBox:"0 0 11 20",xmlns:"http://www.w3.org/2000/svg",class:"absolute bottom-0 ml-[-8.4px] translate-y-px text-white"},[e("g",{transform:"translate(9 -14)","fill-rule":"evenodd"},[e("path",{id:"corner-fill",d:"M-6 16h6v17c-.193-2.84-.876-5.767-2.05-8.782-.904-2.325-2.446-4.485-4.625-6.48A1 1 0 01-6 16z",transform:"matrix(1 0 0 -1 0 49)",fill:"currentColor"})])],-1)),_t=N({__name:"SocialTelegram",props:{card:{}},setup(h){const a=se(),l=ae(re(),"HH:mm");return(n,m)=>(o(),s("div",st,[e("div",at,[e("div",rt,p(n.card.url),1),e("div",it,[e("div",ct,[n.card.image?(o(),s("div",lt,[e("img",{class:"h-full max-w-full w-full rounded object-cover",src:n.card.image},null,8,dt)])):x("",!0),e("div",pt,[e("strong",null,p(t(a).hostname),1)]),e("div",mt,[e("strong",null,p(n.card.title),1)]),e("div",ut,p(n.card.description),1)])]),e("div",gt,[e("span",null,p(t(l)),1)])]),ht]))}}),ft=le(_t,[["__scopeId","data-v-6d584478"]]),vt={flex:"~ col","w-full":""},bt={flex:"~ wrap","w-full":"","flex-none":""},wt=["onClick"],xt=e("div",{border:"b base","flex-auto":""},null,-1),yt={flex:"~ items-center justify-center","flex-auto":"",p4:"","n-panel-grids":""},kt={key:0},$t={key:1},St={key:2},Tt={key:3},Ct=N({__name:"SocialPreviewGroup",props:{tags:{}},setup(h){const a=h,l=["twitter","facebook","linkedin","telegram"],n=de("nuxt-devtools-social-preview-tab",l[0]),m=C(()=>P(a.tags,{title:[{tag:"title"}],image:[{tag:"meta",name:"og:image"}],imageAlt:[{tag:"meta",name:"og:image:alt"}],description:[{tag:"meta",name:"og:description"},{tag:"meta",name:"description"}],favicon:[{tag:"link",name:"icon"}]}));return(y,k)=>{const f=Je,r=We,g=ot,b=ft;return o(),s("div",vt,[e("div",bt,[(o(),s(T,null,B(l,(u,S)=>e("button",{key:S,px4:"",py2:"",border:"r base",hover:"bg-active",class:O(u===t(n)?"":"border-b"),onClick:M=>n.value=u},[e("div",{class:O(u===t(n)?"":"op30"),capitalize:""},p(u),3)],10,wt)),64)),xt]),e("div",yt,[t(n)==="facebook"?(o(),s("div",kt,[d(f,{card:t(m)},null,8,["card"])])):t(n)==="twitter"?(o(),s("div",$t,[d(r,{tags:y.tags},null,8,["tags"])])):t(n)==="linkedin"?(o(),s("div",St,[d(g,{card:t(m)},null,8,["card"])])):t(n)==="telegram"?(o(),s("div",Tt,[d(b,{card:t(m)},null,8,["card"])])):x("",!0)])])}}}),Nt={class:"markdown-body"},Mt=pe('<h1>Open Graph</h1><p>Nuxt provides several different ways to manage your meta tags using <a href="https://unhead.harlanzw.com/" target="_blank" rel="noopener"><code>unhead</code></a>. Improve your Nuxt app’s SEO with powerful head config, composables and components.</p><p><a href="https://nuxt.com/docs/getting-started/seo-meta" target="_blank" rel="noopener">Learn more on the documentation</a></p><hr><p>You can also find how open graph specs are defined in:</p><ul><li><a href="https://ogp.me/" target="_blank" rel="noopener">The Open Graph protocol</a></li><li><a href="https://developer.twitter.com/en/docs/twitter-for-websites/cards/guides/getting-started" target="_blank" rel="noopener">Twitter Cards</a></li></ul>',6),Ot=[Mt],It={__name:"open-graph",setup(h,{expose:a}){return a({frontmatter:{}}),(n,m)=>(o(),s("div",Nt,Ot))}},At={grid:"~ lg:cols-2","h-full":"","w-full":"","of-hidden":""},Bt={"flex-auto":"","of-auto":""},Rt={"flex-none":"",flex:"~ gap2 items-center"},Lt={flex:"~ col"},jt={key:0,"x-divider":""},Ft={key:1,"x-divider":""},Dt={mr2:"",px4:"",py2:""},qt=N({__name:"open-graph",setup(h){const a=A(0),l=me(),n=ue(async()=>(a.value,(await l.value?.resolveTags()).map(c=>{const v=c.props||{};return c.tag==="htmlAttrs"&&v.lang?{tag:"html",name:"lang",value:v.lang}:v.charset?{tag:"meta",name:"charset",value:v.charset}:{tag:c.tag,name:v.property??v.name??v.rel??c.tag,value:v.content??v.href??c.textContent??JSON.stringify(v)}})),[]),m=A(!0);function y(){a.value+=1}const k=ge(),f=he(),r=A(""),g=_e(),b=H();async function u(){r.value!==f.value.path&&k.value.push(r.value||"/")}const S=C(()=>r.value===f.value.path?[]:k.value.resolve(r.value||"/").matched),M=C(()=>{const i=g.value.find(c=>c.path===f.value?.matched?.[0]?.path);return i?.file||i?.meta?.file});function L(i){return K.find(c=>c.name===i.name)?.docs}return G(f).toBeTruthy().then(i=>{r.value=i.path}),G(k).toBeTruthy().then(i=>{i.afterEach(()=>{fe(()=>{r.value=f.value.path,setTimeout(y,200),setTimeout(y,800)})})}),(i,c)=>{const v=xe,j=J,Y=ye,E=U,W=V,X=q,Z=Fe,Q=Ct,ee=It,te=$e,F=ve("tooltip");return o(),s(T,null,[e("div",At,[e("div",Bt,[d(Y,null,{search:_(()=>[d(v,{modelValue:t(r),"onUpdate:modelValue":c[0]||(c[0]=w=>be(r)?r.value=w:null),placeholder:"Route",icon:"carbon-direction-right-01 scale-y--100",n:"primary","flex-auto":"","font-mono":"",class:O(["px-5 py-2",t(f)?.path===t(r)?"":t(S).length?"text-green":"text-orange"]),onKeydown:we(u,["enter"])},null,8,["modelValue","class"])]),actions:_(()=>[e("div",Rt,[t(M)?z((o(),I(j,{key:0,"text-lg":"",border:!1,icon:"carbon:launch",title:"Open file in editor",onClick:c[1]||(c[1]=w=>t(b)(t(M)))},null,512)),[[F,"Open file in editor"]]):x("",!0),z(d(j,{"text-lg":"",border:!1,icon:"carbon:reset",title:"Refresh Data",onClick:y},null,512),[[F,"Refresh Data"]]),z(d(j,{"text-lg":"",border:!1,icon:t(m)?"carbon:side-panel-open":"carbon:open-panel-right",title:"Toggle Preview",onClick:c[2]||(c[2]=w=>m.value=!t(m))},null,8,["icon"]),[[F,"Toggle Preview"]])])]),_:1}),e("div",Lt,[d(X,{text:"Tags",icon:"carbon:tag-group"},{default:_(()=>[d(W,{grid:"~ cols-[max-content_1fr]","items-center":"","justify-between":"","of-hidden":""},{default:_(()=>[(o(!0),s(T,null,B(t(n),(w,D)=>(o(),s(T,{key:D},[D?(o(),s("div",jt)):x("",!0),D?(o(),s("div",Ft)):x("",!0),e("div",Dt,[d(E,{op50:"",href:L(w),target:"_blank",n:"primary"},{default:_(()=>[$(p(w.name),1)]),_:2},1032,["href"])]),d(E,{href:String(w.value).match(/^https?:\/\//)?w.value:void 0,target:"_blank","w-full":"",p2:"","font-mono":"",n:"primary"},{default:_(()=>[$(p(w.value),1)]),_:2},1032,["href"])],64))),128))]),_:1})]),_:1}),d(Z,{tags:t(n),"matched-route-filepath":t(M)},null,8,["tags","matched-route-filepath"])])]),t(m)&&t(n)?.length?(o(),I(Q,{key:0,tags:t(n),"flex-none":"","border-base":"","lt-lg":"border-t",lg:"h-full w-140 border-l"},null,8,["tags"])):x("",!0)]),d(te,null,{default:_(()=>[d(ee)]),_:1})],64)}}});export{qt as default};
@@ -1,4 +1,4 @@
1
- import{d as q,a0 as te,r as E,a1 as J,a2 as ne,m as r,I as X,i as d,f as t,k as e,v as D,F as M,n as Z,h as V,j as x,p as I,G as Q,a3 as pe,a4 as me,V as fe,L as W,M as H,a5 as O,_ as oe,o as s,a6 as se,X as ae,a as S,a7 as ve,a8 as he,a9 as ie,t as F,aa as _e,l as R,b as le,ab as ge,e as xe,ac as be,ad as we,ae as ye,af as $e,Z as ke,ag as Ce,ah as Ve,ai as Pe,aj as Ae,ak as De}from"./BIR-zdoB.js";import{_ as Fe}from"./DaiXQWiC.js";import{_ as Ne}from"./D1ai4dMD.js";import{_ as Ie}from"./4Dr4Cj7R.js";import{_ as Se}from"./D-oZYQtF.js";import{_ as Te}from"./23UkCXk9.js";import{_ as Ue}from"./BKyy5G7o.js";import{_ as je}from"./CzF78jgR.js";import{D as Ee}from"./BcJws1i5.js";import"./BTgTnXCo.js";import"./BqquXJFk.js";import"./BrtwsvwD.js";const Le={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Be={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},Me={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},ze=e("div",{px6:"",py6:""},[e("h1",{"text-2xl":""}," Upload "),e("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1),Oe={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Re={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Ke=["src"],Xe={flex:"~ gap1","items-center":""},Ge={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ze=q({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(B){const l=B,m=te(l,"modelValue"),$=E(),o=E([]);function f(a){$.value=a.target,m.value=!0}function b(a){a.target===$.value&&(m.value=!1)}function T(a){a.preventDefault()}function P(a){a.preventDefault(),v(a.dataTransfer.files)}function v(a){const _=Array.from(a||[]);if(_.length){const g=[],w=o.value.map(i=>i.name);for(const i of _)if(w.includes(i.name)){let A=1;const[y,U]=i.name.split(".");for(;w.includes(`${y} (${A}).${U}`);)A++;const K=`${y}-${A}.${U}`,c=new Blob([i],{type:i.type}),n=new File([c],K,{lastModified:Date.now()});g.push(n),w.push(K)}else i.type===""&&O({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),g.push(i);o.value=[...o.value,...g]}}async function L(){if(pe.value||me.value)return;fe("assets:upload");const a=[];for(const _ of o.value){const g=new FileReader;g.readAsDataURL(_);const i=(await new Promise(A=>{g.onload=()=>A(g.result)})).split(";base64,").pop();a.push({path:_.name,encoding:"base64",content:i})}await W.writeStaticAssets(await H(),[...a],l.folder).then(()=>{p(),O({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(_=>{p(),O({message:`Error uploading files: ${_?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),m.value=!1}function G(a){o.value?.splice(a,1)}function z(a){return URL.createObjectURL(a)}function h(a,_){const[g,w]=a.name.split("."),i=_.replace(/\.\w+$/,""),A=`${i}.${w}`;return i.length===0?(alert("File name must be at least 1 characters long"),g):(Object.defineProperty(a,"name",{value:A,writable:!1}),o.value.splice(o.value.indexOf(a),1,a),a)}function u(){o.value=[]}function p(){m.value=!1,u()}return J("dragenter",f),J("dragleave",b),J("dragover",T),J("drop",P),(a,_)=>{const g=oe,w=se,i=ae,A=ne("tooltip");return s(),r("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Q(t(m)?"opacity-100 visible":"opacity-0 invisible")},[X(d(g,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:p},null,512),[[A,"Close",void 0,{"bottom-end":!0}]]),t(o)?.length?(s(),r("div",Me,[ze,e("div",Oe,[(s(!0),r(M,null,Z(t(o),(y,U)=>(s(),r("div",{key:y.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[e("div",Re,[e("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:z(y)},null,8,Ke)]),e("div",Xe,[d(i,{n:"xs","h-full":"","flex-auto":"","model-value":y.name,"onUpdate:modelValue":K=>h(y,K.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(g,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:K=>G(U)},null,8,["onClick"])])]))),128))]),e("div",Ge,[t(o).length?(s(),V(g,{key:0,n:"red",onClick:u},{default:x(()=>[d(w,{icon:"carbon-clean"}),D(" Clear ")]),_:1})):I("",!0),d(g,{disabled:!t(o).length,n:"primary solid",onClick:L},{default:x(()=>[d(w,{icon:"carbon-cloud-upload"}),D(" Upload ")]),_:1},8,["disabled"])])])):(s(),r("div",Le,[e("label",Be,[d(w,{icon:"carbon-cloud-upload","mr-2":""}),D(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:_[0]||(_[0]=y=>v(y.target.files))},null,32)]))],2)}}}),qe=q({__name:"AssetFontPreview",props:{asset:{}},setup(B){const l=B,m=S(()=>`devtools-assets-${ve(l.asset)}`);return he(S(()=>`
1
+ import{d as q,a0 as te,r as E,a1 as J,a2 as ne,m as r,I as X,i as d,f as t,k as e,v as D,F as M,n as Z,h as V,j as x,p as I,G as Q,a3 as pe,a4 as me,V as fe,L as W,M as H,a5 as O,_ as oe,o as s,a6 as se,X as ae,a as S,a7 as ve,a8 as he,a9 as ie,t as F,aa as _e,l as R,b as le,ab as ge,e as xe,ac as be,ad as we,ae as ye,af as $e,Z as ke,ag as Ce,ah as Ve,ai as Pe,aj as Ae,ak as De}from"./DK_JXXAF.js";import{_ as Fe}from"./iHPNd0oS.js";import{_ as Ne}from"./-7tQh8ue.js";import{_ as Ie}from"./CZQflZba.js";import{_ as Se}from"./PiOA0xLD.js";import{_ as Te}from"./Bus6nM-z.js";import{_ as Ue}from"./DALAf-yd.js";import{_ as je}from"./CS0gb7jX.js";import{D as Ee}from"./BcJws1i5.js";import"./YOyY9aeM.js";import"./BP18yFEx.js";import"./BZUqxYL0.js";const Le={key:0,"h-full":"","w-full":"",flex:"","items-center":"","justify-center":""},Be={for:"drop-zone-input","text-3xl":"",hover:"text-green cursor-pointer","transition-all":""},Me={key:1,relative:"","h-full":"","w-full":"",grid:"~ rows-[max-content_1fr_max-content]"},ze=e("div",{px6:"",py6:""},[e("h1",{"text-2xl":""}," Upload "),e("p",{"text-sm":"",op50:""}," Drag and drop files to upload ")],-1),Oe={grid:"~ cols-minmax-8rem gap-8","overflow-auto":"",p6:""},Re={flex:"","items-center":"","justify-center":"","of-hidden":"",rounded:"","rounded-t-lg":"","bg-active":"","object-cover":"",class:"aspect-1/1",border:"~ base"},Ke=["src"],Xe={flex:"~ gap1","items-center":""},Ge={flex:"~ gap-2","items-center":"","justify-center":"",p8:""},Ze=q({__name:"AssetDropZone",props:{modelValue:{type:Boolean,required:!0},folder:{type:String,required:!0}},setup(B){const l=B,m=te(l,"modelValue"),$=E(),o=E([]);function f(a){$.value=a.target,m.value=!0}function b(a){a.target===$.value&&(m.value=!1)}function T(a){a.preventDefault()}function P(a){a.preventDefault(),v(a.dataTransfer.files)}function v(a){const _=Array.from(a||[]);if(_.length){const g=[],w=o.value.map(i=>i.name);for(const i of _)if(w.includes(i.name)){let A=1;const[y,U]=i.name.split(".");for(;w.includes(`${y} (${A}).${U}`);)A++;const K=`${y}-${A}.${U}`,c=new Blob([i],{type:i.type}),n=new File([c],K,{lastModified:Date.now()});g.push(n),w.push(K)}else i.type===""&&O({message:"Folders are not supported yet",icon:"carbon:face-dissatisfied",classes:"text-orange"}),g.push(i);o.value=[...o.value,...g]}}async function L(){if(pe.value||me.value)return;fe("assets:upload");const a=[];for(const _ of o.value){const g=new FileReader;g.readAsDataURL(_);const i=(await new Promise(A=>{g.onload=()=>A(g.result)})).split(";base64,").pop();a.push({path:_.name,encoding:"base64",content:i})}await W.writeStaticAssets(await H(),[...a],l.folder).then(()=>{p(),O({message:"Files uploaded successfully!",icon:"i-carbon:checkmark"})}).catch(_=>{p(),O({message:`Error uploading files: ${_?.message??"unknown"}`,icon:"i-carbon-warning",classes:"text-red"})}),m.value=!1}function G(a){o.value?.splice(a,1)}function z(a){return URL.createObjectURL(a)}function h(a,_){const[g,w]=a.name.split("."),i=_.replace(/\.\w+$/,""),A=`${i}.${w}`;return i.length===0?(alert("File name must be at least 1 characters long"),g):(Object.defineProperty(a,"name",{value:A,writable:!1}),o.value.splice(o.value.indexOf(a),1,a),a)}function u(){o.value=[]}function p(){m.value=!1,u()}return J("dragenter",f),J("dragleave",b),J("dragover",T),J("drop",P),(a,_)=>{const g=oe,w=se,i=ae,A=ne("tooltip");return s(),r("div",{fixed:"","bottom-0":"","left-13":"","right-0":"","top-0":"","z-10":"","backdrop-blur-20":"","transition-all":"",class:Q(t(m)?"opacity-100 visible":"opacity-0 invisible")},[X(d(g,{icon:"carbon-close",title:"Close",absolute:"","right-5":"","top-5":"","z-20":"","text-xl":"",border:!1,onClick:p},null,512),[[A,"Close",void 0,{"bottom-end":!0}]]),t(o)?.length?(s(),r("div",Me,[ze,e("div",Oe,[(s(!0),r(M,null,Z(t(o),(y,U)=>(s(),r("div",{key:y.name,flex:"~ col gap-2",relative:"","h-50":"","w-40":"","items-center":""},[e("div",Re,[e("img",{"h-full":"","w-full":"","rounded-t-lg":"","object-cover":"",src:z(y)},null,8,Ke)]),e("div",Xe,[d(i,{n:"xs","h-full":"","flex-auto":"","model-value":y.name,"onUpdate:modelValue":K=>h(y,K.target.value)},null,8,["model-value","onUpdate:modelValue"]),d(g,{n:"red",icon:"carbon-trash-can","h-full":"","flex-none":"",title:"Remove file",onClick:K=>G(U)},null,8,["onClick"])])]))),128))]),e("div",Ge,[t(o).length?(s(),V(g,{key:0,n:"red",onClick:u},{default:x(()=>[d(w,{icon:"carbon-clean"}),D(" Clear ")]),_:1})):I("",!0),d(g,{disabled:!t(o).length,n:"primary solid",onClick:L},{default:x(()=>[d(w,{icon:"carbon-cloud-upload"}),D(" Upload ")]),_:1},8,["disabled"])])])):(s(),r("div",Le,[e("label",Be,[d(w,{icon:"carbon-cloud-upload","mr-2":""}),D(" Drop files here or click to select ")]),e("input",{id:"drop-zone-input",type:"file",multiple:"",hidden:"",onChange:_[0]||(_[0]=y=>v(y.target.files))},null,32)]))],2)}}}),qe=q({__name:"AssetFontPreview",props:{asset:{}},setup(B){const l=B,m=S(()=>`devtools-assets-${ve(l.asset)}`);return he(S(()=>`
2
2
  @font-face {
3
3
  font-family: '${m.value}';
4
4
  src: url('${l.asset.publicPath}');
@@ -1,4 +1,4 @@
1
- import{d as B,a as w,aK as W,o as n,m as r,k as t,a9 as T,f as l,t as k,ad as O,F as f,n as E,h as y,r as C,w as Y,aB as q,a1 as j,bW as K,p as x,i as m,G as z,q as U,ao as X,e as Z,at as P,j as v,ax as Q,v as F,_ as G,aM as ee,am as se,b2 as te,bX as ne,ab as oe,N as ae,ac as le,A as ie,L as R,a5 as re,Z as ce}from"./BIR-zdoB.js";import{_ as V}from"./D1PyVebX.js";import{_ as H}from"./C1dTBAc9.js";import{_ as pe}from"./D0a-fr3P.js";import{e as de}from"./xooHg0zg.js";import{_ as ue}from"./DmAOJaWQ.js";import{_ as me}from"./CzF78jgR.js";import{_ as ke}from"./C3yfYbN6.js";import{_ as he}from"./BMGqu_eq.js";import{_ as _e}from"./BBl1za1W.js";import{_ as fe}from"./xLwx2Q8v.js";import"./CRLCUxrw.js";import"./BrtwsvwD.js";import"./23UkCXk9.js";import"./BcJws1i5.js";import"./BqquXJFk.js";const ye=B({__name:"TimelineItemFunction",props:{item:{}},setup(_){const p=_,c=w(()=>W(p.item.name,50,60,"_op_")),e=w(()=>c.value.replace(/_op_/,"1")),a=w(()=>W(p.item.name,50,40)),i=w(()=>c.value.replace(/_op_/,"0.2"));return(o,d)=>(n(),r("button",{class:"group",style:T({color:l(e),borderLeft:`2px solid ${l(e)}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[t("div",{style:T({backgroundColor:l(i)}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),t("div",{style:T({color:l(a),"--c":l(e)}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},k(o.item.name),5)],4))}}),ve={relative:"","h-full":""},be={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},ge=B({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(_,{emit:p}){const c=_,e=p,a=O(()=>c.segment.start,{updateInterval:1e3,showSecond:!0,controls:!1,messages:{justNow:"",past:i=>i,future:i=>i,invalid:"-",second:i=>i?`${i}s`:"",minute:i=>`${i}m`,hour:i=>`${i}h`,week:i=>`${i}w`,day:i=>`${i}d`,month:i=>`${i}mo`,year:i=>`${i}y`}});return(i,o)=>{const d=ye;return n(),r("div",ve,[t("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","text-green6":"","font-mono":"",onClick:o[0]||(o[0]=s=>i.segment.route?e("select",i.segment.route):void 0)},k(i.segment.route?.event.to),1),t("div",be,k(l(a))+" ago ",1),t("div",null,[(n(!0),r(f,null,E(i.segment.functions,(s,u)=>(n(),y(d,{key:u,item:s.event,style:T({position:"absolute",minWidth:`${s.relativeWidth*100}%`,maxWidth:`${s.relativeWidth*100}%`,top:`${4+s.layer*1.6}em`,left:`${s.relativeStart*100}%`}),onClick:h=>e("select",s)},null,8,["item","style","onClick"]))),128))])])}}}),xe=3e3,$e=50;function Ae(_){const p=[];let c={start:0,end:0,events:[],functions:[],duration:0};for(const e of _){const a=e.end||e.start;(e.start-c.end>xe||e.type==="route")&&(c={start:e.start,end:a,events:[],functions:[],duration:0},p.push(c)),c.events.push(e),c.end=a+$e}return p.forEach((e,a)=>{const i=e.end-e.start,o=[];e.duration=i,e.previousGap=a>0?e.start-p[a-1].end:0,e.events.forEach(d=>{const s=d.end||d.start;let u=0;d.type!=="route"&&(u=o.findIndex($=>$<=d.start),u===-1?(u=o.length,o.push(s+1e3)):o[u]=s+1e3);const h={event:d,segment:e,relativeStart:(d.start-e.start)/i,relativeWidth:(s-d.start)/i,layer:u};d.type==="function"?e.functions.push(h):e.route=h})}),p}const De={relative:""},Ce={key:0,border:"x base","h-full":"","flex-inline":"","bg-true-gray-1":"",py15:"","text-xs":"","write-vertical-left":"",op50:"","dark:bg-true-gray-9":""},Be=B({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(_,{emit:p}){const c=_,e=p,a=C(),i=C(),o=C(),d=C(),s=C(!0),u=C(1.5),h=w(()=>Ae(c.data.events)),$=w(()=>(c.data.events.length,a.value?.scrollWidth||window.innerWidth));function A(){d.value&&(d.value.style.width=`${$.value}px`)}function S(){s.value&&a.value&&(a.value.scrollTo({left:a.value.scrollWidth-a.value.clientWidth,behavior:"smooth"}),o.value.scrollTo({left:a.value.scrollWidth-a.value.clientWidth,behavior:"smooth"}))}return Y(()=>c.data.events.length,async()=>{await q(),A(),S()},{flush:"post"}),j(a,"scroll",()=>{o.value.scrollLeft!==a.value.scrollLeft&&(A(),o.value.scrollLeft=a.value.scrollLeft,s.value=a.value.scrollLeft>=a.value.scrollWidth-a.value.clientWidth)}),j(o,"scroll",()=>{o.value.scrollLeft!==a.value.scrollLeft&&(A(),a.value.scrollLeft=o.value.scrollLeft)}),j(a,"wheel",b=>{b.altKey?(u.value=K(u.value+b.deltaY/200,.5,3),A()):a.value.scrollLeft+=b.deltaY}),(b,L)=>{const D=V,M=ge;return n(),r(f,null,[t("div",De,[t("div",{ref_key:"minimap",ref:i,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(n(!0),r(f,null,E(l(h),(g,N)=>(n(),r("div",{key:N,relative:"","h-full":"","flex-inline":"",style:T({width:`${Math.max(100,g.duration/10)/l($)*100}%`})},[(n(!0),r(f,null,E(g.functions,(I,J)=>(n(),r("div",{key:J,"h-3px":"",rounded:"",style:T({width:`max(${I.relativeWidth*100}%, 10px)`,position:"absolute",top:`${I.layer*4}px`,left:`${I.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in b?b.getHashColorFromString:l(W))(I.event.name,50,60)})},null,4))),128)),g.route?(n(),r("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:T({left:`${g.route.relativeStart*100}%`})},null,4)):x("",!0)],4))),128))],512),t("div",{ref_key:"minimapScroller",ref:o,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[t("div",{ref_key:"minimapScrollerInner",ref:d,"h-1px":""},null,512)],512)]),t("div",{ref_key:"scroller",ref:a,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(n(!0),r(f,null,E(l(h),(g,N)=>(n(),r(f,{key:N},[g.previousGap&&g.previousGap>=200?(n(),r("div",Ce,[m(D,{op50:"",duration:g.previousGap,color:!1},null,8,["duration"])])):x("",!0),m(M,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:z(N===l(h).length-1?"border-r border-base":""),segment:g,style:T({width:`${Math.max(50,g.duration/10)*l(u)}px`}),onSelect:L[0]||(L[0]=I=>e("select",I))},null,8,["class","segment","style"])],64))),128))],512)],64)}}}),we=U(Be,[["__scopeId","data-v-27e8fb2d"]]),Te={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Se=["onClick"],Ne=t("div",{"i-carbon-function":"",op50:""},null,-1),Fe={flex:"~","ml--1":"","font-mono":""},Ee=t("div",{op30:""}," ( ",-1),Le={key:0,mr2:"",op30:""},Ie={op75:""},Me=t("div",{op30:""}," ) ",-1),We=t("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[t("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1),Ve={flex:"~ col items-start"},je={"text-xs":"","font-mono":"",op30:""},Oe={"text-green":"","font-bold":"","font-mono":""},ze=t("div",{"flex-auto":""},null,-1),Ge=t("div",{"min-h-100":""},null,-1),Re=B({__name:"TimelineList",props:{data:{}},emits:["select"],setup(_,{emit:p}){const c=p;return(e,a)=>{const i=V;return n(),r("div",Te,[(n(!0),r(f,null,E(e.data.events,(o,d)=>(n(),r("button",{key:d,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:s=>c("select",o)},[o.type==="function"?(n(),r(f,{key:0},[Ne,t("div",{"font-mono":"",style:T({color:o.type==="function"?("getHashColorFromString"in e?e.getHashColorFromString:l(W))(o.name,50,60):""})},k(o.name),5),t("div",Fe,[Ee,(n(!0),r(f,null,E(o.args,(s,u)=>(n(),r(f,{key:u},[u?(n(),r("div",Le," , ")):x("",!0),t("div",Ie,k(s===null?"null":s===void 0?"undefined":typeof s=="function"?"[function]":Array.isArray(s)?"[Array]":typeof s=="object"?"[object]":JSON.stringify(s)),1)],64))),128)),Me])],64)):(n(),r(f,{key:1},[We,t("div",Ve,[t("div",je,k(o.from),1),t("div",Oe,k(o.to),1)])],64)),ze,o.end?(n(),y(i,{key:2,duration:o.end-o.start,color:o.type==="function"},null,8,["duration","color"])):x("",!0)],8,Se))),128)),Ge])}}}),Pe={key:0,"text-blue":""},He={key:1,"text-purple":""},Je={key:2,"text-green":""},Ye={key:3,"text-gray":""},qe={key:4,"text-gray":""},Ke={key:5,"text-gray":""},Ue={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Xe={key:1},Ze={p2:"","text-sm":"",border:"t base"},Qe=B({__name:"TimelineArgumentView",props:{value:{}},setup(_){const p=_,c=C(),e=C();function a(){try{c.value=JSON.parse(JSON.stringify(p.value))}catch(s){console.error(s),e.value=s}}const i=B({emits:["setup"],setup(s,{emit:u}){return u("setup"),()=>null}}),o=X(),d=Z();return(s,u)=>{const h=G,$=P("VMenu");return typeof s.value=="string"?(n(),r("div",Pe,k(JSON.stringify(s.value)),1)):typeof s.value=="number"?(n(),r("div",He,k(s.value),1)):typeof s.value=="boolean"?(n(),r("div",Je,k(s.value),1)):typeof s.value>"u"?(n(),r("div",Ye," undefined ")):typeof s.value=="function"?(n(),r("div",qe," [Function"+k(s.value.name?`: ${s.value.name}`:"")+"] ",1)):s.value===null?(n(),r("div",Ke," null ")):(n(),y($,{key:6,placement:"top"},{popper:v(()=>[m(l(i),{onSetup:a}),l(e)?(n(),r("div",Ue," Failed to display object: "+k(l(e)),1)):l(c)?(n(),r("div",Xe,[m(l(de),Q({"model-value":l(c)},s.$attrs,{class:["json-editor-vue",[l(o)==="dark"?"jse-theme-dark":""]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":!0,indentation:2,"tab-size":2}),null,16,["model-value","class"]),t("div",Ze,[m(h,{title:"Copy to clipboard",icon:"carbon-copy",onClick:u[0]||(u[0]=A=>l(d)(JSON.stringify(l(c),null,2),"timeline-argument"))},{default:v(()=>[F(" Copy ")]),_:1})])])):x("",!0)]),default:v(()=>[t("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:z([Array.isArray(s.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},k(Array.isArray(s.value)?`[Array(${s.value.length})]`:"[Object]"),3)]),_:1}))}}}),es={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},ss={"mx--1":""},ts={flex:"~ gap-1","font-mono":""},ns={key:1},os=t("span",{ml1:"",op30:""},"(",-1),as={key:0,op30:""},ls=t("span",{op30:""},")",-1),is={flex:"~ gap-1","text-sm":""},rs=t("span",{mx1:"",op50:""},"·",-1),cs={class:"text-sm text-gray-400"},ps=B({__name:"TimelineDetailsFunction",props:{record:{}},setup(_){const p=_,c=O(()=>p.record.start,{showSecond:!0}),e=ee(),a=w(()=>e.value?.metadata),i=w(()=>e.value?.imports.find(o=>o.as===p.record.name));return(o,d)=>{const s=H,u=pe,h=Qe,$=V,A=ue;return o.record?(n(),r("div",es,[t("div",ss,[m(s,{n:"yellow",textContent:"Function call"})]),t("div",ts,[l(i)?(n(),y(u,{key:0,item:l(i),metadata:l(a),counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(n(),r("span",ns,k(o.record.name),1)),os,(n(!0),r(f,null,E(o.record.args,(S,b)=>(n(),r(f,{key:b},[b?(n(),r("span",as,", ")):x("",!0),m(h,{value:S},null,8,["value"])],64))),128)),ls]),t("div",is,[o.record.end?(n(),y($,{key:0,duration:o.record.end-o.record.start},null,8,["duration"])):x("",!0),rs,t("div",cs,k(l(c)),1)]),o.record.stacktrace?(n(),y(A,{key:0,stacktrace:o.record.stacktrace,class:"text-xs text-gray-400"},null,8,["stacktrace"])):x("",!0)])):x("",!0)}}}),ds={key:0,"p-4":"",flex:"~ col gap-2"},us={"mx--1":""},ms={flex:"~ gap-1 items-center","font-mono":""},ks={op50:""},hs=t("span",{"i-carbon-arrow-right":"",op50:""},null,-1),_s={flex:"~ gap-1","text-sm":""},fs=t("span",{mx1:"",op50:""},"·",-1),ys={class:"text-sm text-gray-400"},vs=B({__name:"TimelineDetailsRoute",props:{record:{}},setup(_){const p=_,c=O(()=>p.record.start,{showSecond:!0});return(e,a)=>{const i=H,o=V;return e.record?(n(),r("div",ds,[t("div",us,[m(i,{n:"green",textContent:"Route Change"})]),t("div",ms,[t("span",ks,k(e.record.from),1),hs,t("span",null,k(e.record.to),1)]),t("div",_s,[e.record.end?(n(),y(o,{key:0,duration:e.record.end-e.record.start},null,8,["duration"])):x("",!0),fs,t("div",ys,k(l(c)),1)])])):x("",!0)}}}),bs={key:0,"h-screen":"","of-hidden":""},gs={"h-screen":"","w-full":"",flex:"","flex-col":""},xs={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},$s={"text-sm":""},As=t("div",{"flex-auto":""},null,-1),Ds={"min-h-50":"",px3:"",py2:""},Cs=B({__name:"TimelineView",setup(_){const p=se(),c=C("table"),e=C(),a=w(()=>p.value?.metrics.clientTimeline());function i(){a.value&&(a.value.events=[])}function o(){c.value=c.value==="table"?"list":"table"}return(d,s)=>{const u=P("VTooltip"),h=G,$=we,A=Re,S=ps,b=vs,L=me;return l(a)?(n(),r("div",bs,[t("div",gs,[t("div",xs,[m(u,{flex:""},{popper:v(()=>[t("div",$s,k(l(a).options.enabled?"Recording...":"Paused"),1)]),default:v(()=>[t("div",{"text-lg":"",class:z(l(a).options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),l(a).options.enabled?(n(),y(h,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:s[1]||(s[1]=D=>l(a).options.enabled=!1)},{default:v(()=>[F(" Stop Tracking ")]),_:1})):(n(),y(h,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:s[0]||(s[0]=D=>l(a).options.enabled=!0)},{default:v(()=>[F(" Start Tracking ")]),_:1})),As,m(h,{icon:l(c)==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",border:!1,onClick:o},null,8,["icon"]),m(h,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",border:!1,onClick:i})]),l(c)==="table"?(n(),y($,{key:0,data:{...l(a)},onSelect:s[2]||(s[2]=D=>e.value=D.event)},null,8,["data"])):(n(),y(A,{key:1,data:{...l(a)},onSelect:s[3]||(s[3]=D=>e.value=D)},null,8,["data"]))]),m(L,{"model-value":!!l(e),"auto-close":"",transition:"bottom",left:"#nuxt-devtools-side-nav",onClose:s[4]||(s[4]=D=>e.value=void 0)},{default:v(()=>[t("div",Ds,[l(e)?.type==="function"?(n(),y(S,{key:0,record:l(e)},null,8,["record"])):l(e)?.type==="route"?(n(),y(b,{key:1,record:l(e)},null,8,["record"])):x("",!0)])]),_:1},8,["model-value"])])):x("",!0)}}}),Bs={class:"markdown-body"},ws=t("h1",null,"Timeline",-1),Ts=t("p",null,[t("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ")],-1),Ss=te(`<p>Timeline tracks your route navigations and functions calls in your Nuxt application. It can be used to debug performance issues and to understand how your application works.</p><h2>Function calls</h2><p>Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through <code>import {} from &#39;#imports&#39;</code>.</p><pre class="shiki shiki-themes vitesse-light vitesse-dark" style="background-color:#ffffff;--shiki-dark-bg:#121212;color:#393a34;--shiki-dark:#dbd7caee;" tabindex="0"><code><span class="line"><span style="color:#999999;--shiki-dark:#666666;">&lt;</span><span style="color:#1E754F;--shiki-dark:#4D9375;">script</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> setup</span><span style="color:#999999;--shiki-dark:#666666;">&gt;</span></span>
1
+ import{d as B,a as w,aK as W,o as n,m as r,k as t,a9 as T,f as l,t as k,ad as O,F as f,n as E,h as y,r as C,w as Y,aB as q,a1 as j,bW as K,p as x,i as m,G as z,q as U,ao as X,e as Z,at as P,j as v,ax as Q,v as F,_ as G,aM as ee,am as se,b2 as te,bX as ne,ab as oe,N as ae,ac as le,A as ie,L as R,a5 as re,Z as ce}from"./DK_JXXAF.js";import{_ as V}from"./WGK50LCp.js";import{_ as H}from"./H8AztYTG.js";import{_ as pe}from"./DCLVSMnX.js";import{e as de}from"./VV6dbUWb.js";import{_ as ue}from"./By9REDlT.js";import{_ as me}from"./CS0gb7jX.js";import{_ as ke}from"./Dn64Kuww.js";import{_ as he}from"./GiZoEwQH.js";import{_ as _e}from"./BzkN-UyG.js";import{_ as fe}from"./tRGVf0Jt.js";import"./DJinuH1o.js";import"./BZUqxYL0.js";import"./Bus6nM-z.js";import"./BcJws1i5.js";import"./BP18yFEx.js";const ye=B({__name:"TimelineItemFunction",props:{item:{}},setup(_){const p=_,c=w(()=>W(p.item.name,50,60,"_op_")),e=w(()=>c.value.replace(/_op_/,"1")),a=w(()=>W(p.item.name,50,40)),i=w(()=>c.value.replace(/_op_/,"0.2"));return(o,d)=>(n(),r("button",{class:"group",style:T({color:l(e),borderLeft:`2px solid ${l(e)}`}),relative:"","text-sm":"",transition:"","hover:z-1000":"","bg-base":""},[t("div",{style:T({backgroundColor:l(i)}),absolute:"","bottom-0":"","left--1px":"","top-0":"","w-full":"","text-sm":"","transition-all":"","duration-300":""},null,4),t("div",{style:T({color:l(a),"--c":l(e)}),border:"r-2 t-2 y-2 transparent","min-w-max":"",px1:"","text-left":"","group-hover":"border-$c"},k(o.item.name),5)],4))}}),ve={relative:"","h-full":""},be={absolute:"","left-2":"","top-2.3em":"","text-xs":"",op50:""},ge=B({__name:"TimelineSegment",props:{segment:{}},emits:["select"],setup(_,{emit:p}){const c=_,e=p,a=O(()=>c.segment.start,{updateInterval:1e3,showSecond:!0,controls:!1,messages:{justNow:"",past:i=>i,future:i=>i,invalid:"-",second:i=>i?`${i}s`:"",minute:i=>`${i}m`,hour:i=>`${i}h`,week:i=>`${i}w`,day:i=>`${i}d`,month:i=>`${i}mo`,year:i=>`${i}y`}});return(i,o)=>{const d=ye;return n(),r("div",ve,[t("button",{absolute:"","left-0":"","right-0":"","top-0":"","bg-green:5":"",px2:"",py1:"","text-left":"","text-xs":"","text-green6":"","font-mono":"",onClick:o[0]||(o[0]=s=>i.segment.route?e("select",i.segment.route):void 0)},k(i.segment.route?.event.to),1),t("div",be,k(l(a))+" ago ",1),t("div",null,[(n(!0),r(f,null,E(i.segment.functions,(s,u)=>(n(),y(d,{key:u,item:s.event,style:T({position:"absolute",minWidth:`${s.relativeWidth*100}%`,maxWidth:`${s.relativeWidth*100}%`,top:`${4+s.layer*1.6}em`,left:`${s.relativeStart*100}%`}),onClick:h=>e("select",s)},null,8,["item","style","onClick"]))),128))])])}}}),xe=3e3,$e=50;function Ae(_){const p=[];let c={start:0,end:0,events:[],functions:[],duration:0};for(const e of _){const a=e.end||e.start;(e.start-c.end>xe||e.type==="route")&&(c={start:e.start,end:a,events:[],functions:[],duration:0},p.push(c)),c.events.push(e),c.end=a+$e}return p.forEach((e,a)=>{const i=e.end-e.start,o=[];e.duration=i,e.previousGap=a>0?e.start-p[a-1].end:0,e.events.forEach(d=>{const s=d.end||d.start;let u=0;d.type!=="route"&&(u=o.findIndex($=>$<=d.start),u===-1?(u=o.length,o.push(s+1e3)):o[u]=s+1e3);const h={event:d,segment:e,relativeStart:(d.start-e.start)/i,relativeWidth:(s-d.start)/i,layer:u};d.type==="function"?e.functions.push(h):e.route=h})}),p}const De={relative:""},Ce={key:0,border:"x base","h-full":"","flex-inline":"","bg-true-gray-1":"",py15:"","text-xs":"","write-vertical-left":"",op50:"","dark:bg-true-gray-9":""},Be=B({__name:"TimelineTable",props:{data:{}},emits:["select"],setup(_,{emit:p}){const c=_,e=p,a=C(),i=C(),o=C(),d=C(),s=C(!0),u=C(1.5),h=w(()=>Ae(c.data.events)),$=w(()=>(c.data.events.length,a.value?.scrollWidth||window.innerWidth));function A(){d.value&&(d.value.style.width=`${$.value}px`)}function S(){s.value&&a.value&&(a.value.scrollTo({left:a.value.scrollWidth-a.value.clientWidth,behavior:"smooth"}),o.value.scrollTo({left:a.value.scrollWidth-a.value.clientWidth,behavior:"smooth"}))}return Y(()=>c.data.events.length,async()=>{await q(),A(),S()},{flush:"post"}),j(a,"scroll",()=>{o.value.scrollLeft!==a.value.scrollLeft&&(A(),o.value.scrollLeft=a.value.scrollLeft,s.value=a.value.scrollLeft>=a.value.scrollWidth-a.value.clientWidth)}),j(o,"scroll",()=>{o.value.scrollLeft!==a.value.scrollLeft&&(A(),a.value.scrollLeft=o.value.scrollLeft)}),j(a,"wheel",b=>{b.altKey?(u.value=K(u.value+b.deltaY/200,.5,3),A()):a.value.scrollLeft+=b.deltaY}),(b,L)=>{const D=V,M=ge;return n(),r(f,null,[t("div",De,[t("div",{ref_key:"minimap",ref:i,border:"t b base",relative:"","h-50px":"","ws-nowrap":"","border-base":""},[(n(!0),r(f,null,E(l(h),(g,N)=>(n(),r("div",{key:N,relative:"","h-full":"","flex-inline":"",style:T({width:`${Math.max(100,g.duration/10)/l($)*100}%`})},[(n(!0),r(f,null,E(g.functions,(I,J)=>(n(),r("div",{key:J,"h-3px":"",rounded:"",style:T({width:`max(${I.relativeWidth*100}%, 10px)`,position:"absolute",top:`${I.layer*4}px`,left:`${I.relativeStart*100}%`,backgroundColor:("getHashColorFromString"in b?b.getHashColorFromString:l(W))(I.event.name,50,60)})},null,4))),128)),g.route?(n(),r("div",{key:0,absolute:"","top-0":"","h-full":"","w-px":"","border-l":"","border-green6":"",op10:"",style:T({left:`${g.route.relativeStart*100}%`})},null,4)):x("",!0)],4))),128))],512),t("div",{ref_key:"minimapScroller",ref:o,class:"timeline-scroller",absolute:"","inset-0":"","h-full":"","w-full":"","of-x-scroll":""},[t("div",{ref_key:"minimapScrollerInner",ref:d,"h-1px":""},null,512)],512)]),t("div",{ref_key:"scroller",ref:a,relative:"","h-full":"","w-full":"","of-x-scroll":"","of-y-hidden":"","ws-nowrap":"","n-panel-grids":""},[(n(!0),r(f,null,E(l(h),(g,N)=>(n(),r(f,{key:N},[g.previousGap&&g.previousGap>=200?(n(),r("div",Ce,[m(D,{op50:"",duration:g.previousGap,color:!1},null,8,["duration"])])):x("",!0),m(M,{"flex-inline":"","of-x-hidden":"","hover:of-x-visible":"","bg-base":"",class:z(N===l(h).length-1?"border-r border-base":""),segment:g,style:T({width:`${Math.max(50,g.duration/10)*l(u)}px`}),onSelect:L[0]||(L[0]=I=>e("select",I))},null,8,["class","segment","style"])],64))),128))],512)],64)}}}),we=U(Be,[["__scopeId","data-v-27e8fb2d"]]),Te={border:"t base",flex:"~ col","h-full":"","of-y-auto":"","text-sm":""},Se=["onClick"],Ne=t("div",{"i-carbon-function":"",op50:""},null,-1),Fe={flex:"~","ml--1":"","font-mono":""},Ee=t("div",{op30:""}," ( ",-1),Le={key:0,mr2:"",op30:""},Ie={op75:""},Me=t("div",{op30:""}," ) ",-1),We=t("div",{"mr-1":"","h-7":"","w-7":"",flex:"","rounded-lg":"","bg-primary:5":"",p1:"","text-green6":""},[t("div",{"i-carbon-direction-rotary-right":"",ma:"","text-lg":""})],-1),Ve={flex:"~ col items-start"},je={"text-xs":"","font-mono":"",op30:""},Oe={"text-green":"","font-bold":"","font-mono":""},ze=t("div",{"flex-auto":""},null,-1),Ge=t("div",{"min-h-100":""},null,-1),Re=B({__name:"TimelineList",props:{data:{}},emits:["select"],setup(_,{emit:p}){const c=p;return(e,a)=>{const i=V;return n(),r("div",Te,[(n(!0),r(f,null,E(e.data.events,(o,d)=>(n(),r("button",{key:d,border:"b base",px3:"",py2:"",flex:"~ items-center gap-2",hover:"bg-active",onClick:s=>c("select",o)},[o.type==="function"?(n(),r(f,{key:0},[Ne,t("div",{"font-mono":"",style:T({color:o.type==="function"?("getHashColorFromString"in e?e.getHashColorFromString:l(W))(o.name,50,60):""})},k(o.name),5),t("div",Fe,[Ee,(n(!0),r(f,null,E(o.args,(s,u)=>(n(),r(f,{key:u},[u?(n(),r("div",Le," , ")):x("",!0),t("div",Ie,k(s===null?"null":s===void 0?"undefined":typeof s=="function"?"[function]":Array.isArray(s)?"[Array]":typeof s=="object"?"[object]":JSON.stringify(s)),1)],64))),128)),Me])],64)):(n(),r(f,{key:1},[We,t("div",Ve,[t("div",je,k(o.from),1),t("div",Oe,k(o.to),1)])],64)),ze,o.end?(n(),y(i,{key:2,duration:o.end-o.start,color:o.type==="function"},null,8,["duration","color"])):x("",!0)],8,Se))),128)),Ge])}}}),Pe={key:0,"text-blue":""},He={key:1,"text-purple":""},Je={key:2,"text-green":""},Ye={key:3,"text-gray":""},qe={key:4,"text-gray":""},Ke={key:5,"text-gray":""},Ue={key:0,"bg-red:10":"",px2:"",py1:"","text-red":""},Xe={key:1},Ze={p2:"","text-sm":"",border:"t base"},Qe=B({__name:"TimelineArgumentView",props:{value:{}},setup(_){const p=_,c=C(),e=C();function a(){try{c.value=JSON.parse(JSON.stringify(p.value))}catch(s){console.error(s),e.value=s}}const i=B({emits:["setup"],setup(s,{emit:u}){return u("setup"),()=>null}}),o=X(),d=Z();return(s,u)=>{const h=G,$=P("VMenu");return typeof s.value=="string"?(n(),r("div",Pe,k(JSON.stringify(s.value)),1)):typeof s.value=="number"?(n(),r("div",He,k(s.value),1)):typeof s.value=="boolean"?(n(),r("div",Je,k(s.value),1)):typeof s.value>"u"?(n(),r("div",Ye," undefined ")):typeof s.value=="function"?(n(),r("div",qe," [Function"+k(s.value.name?`: ${s.value.name}`:"")+"] ",1)):s.value===null?(n(),r("div",Ke," null ")):(n(),y($,{key:6,placement:"top"},{popper:v(()=>[m(l(i),{onSetup:a}),l(e)?(n(),r("div",Ue," Failed to display object: "+k(l(e)),1)):l(c)?(n(),r("div",Xe,[m(l(de),Q({"model-value":l(c)},s.$attrs,{class:["json-editor-vue",[l(o)==="dark"?"jse-theme-dark":""]],"main-menu-bar":!1,"navigation-bar":!1,"status-bar":!1,"read-only":!0,indentation:2,"tab-size":2}),null,16,["model-value","class"]),t("div",Ze,[m(h,{title:"Copy to clipboard",icon:"carbon-copy",onClick:u[0]||(u[0]=A=>l(d)(JSON.stringify(l(c),null,2),"timeline-argument"))},{default:v(()=>[F(" Copy ")]),_:1})])])):x("",!0)]),default:v(()=>[t("span",{"rounded-sm":"",px1:"","py0.5":"","text-sm":"",class:z([Array.isArray(s.value)?"text-amber bg-amber:10":"text-orange bg-orange:10"])},k(Array.isArray(s.value)?`[Array(${s.value.length})]`:"[Object]"),3)]),_:1}))}}}),es={key:0,"p-4":"",flex:"~ col gap-2","text-base":""},ss={"mx--1":""},ts={flex:"~ gap-1","font-mono":""},ns={key:1},os=t("span",{ml1:"",op30:""},"(",-1),as={key:0,op30:""},ls=t("span",{op30:""},")",-1),is={flex:"~ gap-1","text-sm":""},rs=t("span",{mx1:"",op50:""},"·",-1),cs={class:"text-sm text-gray-400"},ps=B({__name:"TimelineDetailsFunction",props:{record:{}},setup(_){const p=_,c=O(()=>p.record.start,{showSecond:!0}),e=ee(),a=w(()=>e.value?.metadata),i=w(()=>e.value?.imports.find(o=>o.as===p.record.name));return(o,d)=>{const s=H,u=pe,h=Qe,$=V,A=ue;return o.record?(n(),r("div",es,[t("div",ss,[m(s,{n:"yellow",textContent:"Function call"})]),t("div",ts,[l(i)?(n(),y(u,{key:0,item:l(i),metadata:l(a),counter:!1,classes:"px2 py1","mx--2":""},null,8,["item","metadata"])):(n(),r("span",ns,k(o.record.name),1)),os,(n(!0),r(f,null,E(o.record.args,(S,b)=>(n(),r(f,{key:b},[b?(n(),r("span",as,", ")):x("",!0),m(h,{value:S},null,8,["value"])],64))),128)),ls]),t("div",is,[o.record.end?(n(),y($,{key:0,duration:o.record.end-o.record.start},null,8,["duration"])):x("",!0),rs,t("div",cs,k(l(c)),1)]),o.record.stacktrace?(n(),y(A,{key:0,stacktrace:o.record.stacktrace,class:"text-xs text-gray-400"},null,8,["stacktrace"])):x("",!0)])):x("",!0)}}}),ds={key:0,"p-4":"",flex:"~ col gap-2"},us={"mx--1":""},ms={flex:"~ gap-1 items-center","font-mono":""},ks={op50:""},hs=t("span",{"i-carbon-arrow-right":"",op50:""},null,-1),_s={flex:"~ gap-1","text-sm":""},fs=t("span",{mx1:"",op50:""},"·",-1),ys={class:"text-sm text-gray-400"},vs=B({__name:"TimelineDetailsRoute",props:{record:{}},setup(_){const p=_,c=O(()=>p.record.start,{showSecond:!0});return(e,a)=>{const i=H,o=V;return e.record?(n(),r("div",ds,[t("div",us,[m(i,{n:"green",textContent:"Route Change"})]),t("div",ms,[t("span",ks,k(e.record.from),1),hs,t("span",null,k(e.record.to),1)]),t("div",_s,[e.record.end?(n(),y(o,{key:0,duration:e.record.end-e.record.start},null,8,["duration"])):x("",!0),fs,t("div",ys,k(l(c)),1)])])):x("",!0)}}}),bs={key:0,"h-screen":"","of-hidden":""},gs={"h-screen":"","w-full":"",flex:"","flex-col":""},xs={"h-10":"",flex:"~ gap-2 items-center justify-end",p2:"",px3:""},$s={"text-sm":""},As=t("div",{"flex-auto":""},null,-1),Ds={"min-h-50":"",px3:"",py2:""},Cs=B({__name:"TimelineView",setup(_){const p=se(),c=C("table"),e=C(),a=w(()=>p.value?.metrics.clientTimeline());function i(){a.value&&(a.value.events=[])}function o(){c.value=c.value==="table"?"list":"table"}return(d,s)=>{const u=P("VTooltip"),h=G,$=we,A=Re,S=ps,b=vs,L=me;return l(a)?(n(),r("div",bs,[t("div",gs,[t("div",xs,[m(u,{flex:""},{popper:v(()=>[t("div",$s,k(l(a).options.enabled?"Recording...":"Paused"),1)]),default:v(()=>[t("div",{"text-lg":"",class:z(l(a).options.enabled?"i-carbon-radio-button-checked text-primary animate-pulse":"i-carbon-pause-outline op30")},null,2)]),_:1}),l(a).options.enabled?(n(),y(h,{key:1,size:"small",ml1:"","text-sm":"",n:"orange",icon:"i-carbon-stop",onClick:s[1]||(s[1]=D=>l(a).options.enabled=!1)},{default:v(()=>[F(" Stop Tracking ")]),_:1})):(n(),y(h,{key:0,size:"small",ml1:"","text-sm":"",n:"primary",icon:"i-carbon-play",onClick:s[0]||(s[0]=D=>l(a).options.enabled=!0)},{default:v(()=>[F(" Start Tracking ")]),_:1})),As,m(h,{icon:l(c)==="table"?"i-carbon-roadmap":"i-carbon-list",class:"ml-2",title:"Toggle View",border:!1,onClick:o},null,8,["icon"]),m(h,{icon:"i-carbon-trash-can","hover-text-red":"",class:"ml-2",border:!1,onClick:i})]),l(c)==="table"?(n(),y($,{key:0,data:{...l(a)},onSelect:s[2]||(s[2]=D=>e.value=D.event)},null,8,["data"])):(n(),y(A,{key:1,data:{...l(a)},onSelect:s[3]||(s[3]=D=>e.value=D)},null,8,["data"]))]),m(L,{"model-value":!!l(e),"auto-close":"",transition:"bottom",left:"#nuxt-devtools-side-nav",onClose:s[4]||(s[4]=D=>e.value=void 0)},{default:v(()=>[t("div",Ds,[l(e)?.type==="function"?(n(),y(S,{key:0,record:l(e)},null,8,["record"])):l(e)?.type==="route"?(n(),y(b,{key:1,record:l(e)},null,8,["record"])):x("",!0)])]),_:1},8,["model-value"])])):x("",!0)}}}),Bs={class:"markdown-body"},ws=t("h1",null,"Timeline",-1),Ts=t("p",null,[t("blockquote",{"text-orange":"","bg-orange:10":"",py1:""}," This is an experimental feature ")],-1),Ss=te(`<p>Timeline tracks your route navigations and functions calls in your Nuxt application. It can be used to debug performance issues and to understand how your application works.</p><h2>Function calls</h2><p>Nuxt DevTools tracks function calls by wrapping them in the build time. It works for functions referenced by auto-imports, or explicit imports through <code>import {} from &#39;#imports&#39;</code>.</p><pre class="shiki shiki-themes vitesse-light vitesse-dark" style="background-color:#ffffff;--shiki-dark-bg:#121212;color:#393a34;--shiki-dark:#dbd7caee;" tabindex="0"><code><span class="line"><span style="color:#999999;--shiki-dark:#666666;">&lt;</span><span style="color:#1E754F;--shiki-dark:#4D9375;">script</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> setup</span><span style="color:#999999;--shiki-dark:#666666;">&gt;</span></span>
2
2
  <span class="line"><span style="color:#1E754F;--shiki-dark:#4D9375;">import</span><span style="color:#999999;--shiki-dark:#666666;"> {</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> useMouse</span><span style="color:#999999;--shiki-dark:#666666;"> }</span><span style="color:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;"> &#39;</span><span style="color:#B56959;--shiki-dark:#C98A7D;">@vueuse/core</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;">&#39;</span></span>
3
3
  <span class="line"><span style="color:#1E754F;--shiki-dark:#4D9375;">import</span><span style="color:#999999;--shiki-dark:#666666;"> {</span><span style="color:#B07D48;--shiki-dark:#BD976A;"> useNuxtApp</span><span style="color:#999999;--shiki-dark:#666666;"> }</span><span style="color:#1E754F;--shiki-dark:#4D9375;"> from</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;"> &#39;</span><span style="color:#B56959;--shiki-dark:#C98A7D;">#imports</span><span style="color:#B5695999;--shiki-dark:#C98A7D99;">&#39;</span></span>
4
4
  <span class="line"></span>
@@ -1 +1 @@
1
- import{_ as S}from"./D1PyVebX.js";import{d as N,r as $,a as g,o as d,m,k as t,v as c,G as p,f as n,F as y,n as T,t as _,a9 as F,aK as B,i as h,aL as V,am as D,h as H,j as w,p as C}from"./BIR-zdoB.js";import{_ as P}from"./D-oZYQtF.js";import{_ as j}from"./xLwx2Q8v.js";import"./BTgTnXCo.js";const E={"w-full":""},L={border:"b base"},O={"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":""},G={"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":""},J={"w-0":"","text-center":"","text-sm":""},M={"w-0":"","text-center":"","text-sm":""},Q={"w-0":"","text-right":"","text-sm":""},W=N({__name:"HooksTable",props:{hooks:{}},setup(k){const l=k,a=$("duration"),s=$("asc"),x={duration:(e,o)=>(o.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,o)=>e.name.localeCompare(o.name),listener:(e,o)=>o.listeners-e.listeners,start:(e,o)=>o.start-e.start,executions:(e,o)=>o.executions.length-e.executions.length},v=g(()=>l.hooks.map(e=>e.start).sort((e,o)=>e-o)),b=g(()=>{const e=x[a.value],o=[...l.hooks].sort(e);return s.value==="desc"&&o.reverse(),o});function u(e){const o=e.split(":");return o.length===1?"":`${o[0]}:`}function f(e){const o=e.split(":");return o.length===1?e:o.slice(1).join(":")}function i(e){a.value===e?s.value=s.value==="asc"?"desc":"asc":a.value=e}return(e,o)=>{const I=S;return d(),m("table",E,[t("thead",L,[t("tr",null,[t("th",O,[t("button",{onClick:o[0]||(o[0]=r=>i("start"))},[c(" Order "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="start"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",z,[t("button",{onClick:o[1]||(o[1]=r=>i("name"))},[c(" Hook name "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="name"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",A,[t("button",{onClick:o[2]||(o[2]=r=>i("listener"))},[c(" Listeners "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="listener"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",Y,[t("button",{onClick:o[3]||(o[3]=r=>i("executions"))},[c(" Executions "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="executions"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",G,[t("button",{onClick:o[4]||(o[4]=r=>i("duration"))},[c(" Duration "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="duration"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),t("tbody",null,[(d(!0),m(y,null,T(n(b),r=>(d(),m("tr",{key:r.name,border:"b dashed transparent hover:base"},[t("td",K,_(n(v).indexOf(r.start)),1),t("td",{"w-0":"","ws-nowrap":"","text-right":"",style:F({color:("getHashColorFromString"in e?e.getHashColorFromString:n(B))(u(r.name))})},[t("code",R,_(u(r.name)),1)],4),t("td",U,[t("code",q,_(f(r.name)),1)]),t("td",J,_(r.listeners),1),t("td",M,_(r.executions.length+1),1),t("td",Q,[h(I,{duration:r.duration},null,8,["duration"])])]))),128))])])}}}),X={class:"markdown-body"},Z=t("h1",null,"Hooks",-1),tt=t("p",null,[c("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 "),t("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),c(".")],-1),ot=t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),c(".")],-1),et=[Z,tt,ot],nt={__name:"hooks",setup(k,{expose:l}){return l({frontmatter:{}}),(s,x)=>(d(),m("div",X,et))}},it=N({__name:"hooks",setup(k){const l=V(),a=D(),s=g(()=>a.value?.metrics.clientHooks());return(x,v)=>{const b=W,u=P,f=nt,i=j;return d(),m(y,null,[t("div",null,[n(s)?.length?(d(),H(u,{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(b,{hooks:n(s)},null,8,["hooks"])]),_:1},8,["description"])):C("",!0),n(l)?.length?(d(),H(u,{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(b,{hooks:n(l)},null,8,["hooks"])]),_:1},8,["description"])):C("",!0)]),h(i,null,{default:w(()=>[h(f)]),_:1})],64)}}});export{it as default};
1
+ import{_ as S}from"./WGK50LCp.js";import{d as N,r as $,a as g,o as d,m,k as t,v as c,G as p,f as n,F as y,n as T,t as _,a9 as F,aK as B,i as h,aL as V,am as D,h as H,j as w,p as C}from"./DK_JXXAF.js";import{_ as P}from"./PiOA0xLD.js";import{_ as j}from"./tRGVf0Jt.js";import"./YOyY9aeM.js";const E={"w-full":""},L={border:"b base"},O={"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":""},G={"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":""},J={"w-0":"","text-center":"","text-sm":""},M={"w-0":"","text-center":"","text-sm":""},Q={"w-0":"","text-right":"","text-sm":""},W=N({__name:"HooksTable",props:{hooks:{}},setup(k){const l=k,a=$("duration"),s=$("asc"),x={duration:(e,o)=>(o.duration??Number.POSITIVE_INFINITY)-(e.duration??Number.POSITIVE_INFINITY),name:(e,o)=>e.name.localeCompare(o.name),listener:(e,o)=>o.listeners-e.listeners,start:(e,o)=>o.start-e.start,executions:(e,o)=>o.executions.length-e.executions.length},v=g(()=>l.hooks.map(e=>e.start).sort((e,o)=>e-o)),b=g(()=>{const e=x[a.value],o=[...l.hooks].sort(e);return s.value==="desc"&&o.reverse(),o});function u(e){const o=e.split(":");return o.length===1?"":`${o[0]}:`}function f(e){const o=e.split(":");return o.length===1?e:o.slice(1).join(":")}function i(e){a.value===e?s.value=s.value==="asc"?"desc":"asc":a.value=e}return(e,o)=>{const I=S;return d(),m("table",E,[t("thead",L,[t("tr",null,[t("th",O,[t("button",{onClick:o[0]||(o[0]=r=>i("start"))},[c(" Order "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="start"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",z,[t("button",{onClick:o[1]||(o[1]=r=>i("name"))},[c(" Hook name "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="name"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",A,[t("button",{onClick:o[2]||(o[2]=r=>i("listener"))},[c(" Listeners "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="listener"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",Y,[t("button",{onClick:o[3]||(o[3]=r=>i("executions"))},[c(" Executions "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="executions"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])]),t("th",G,[t("button",{onClick:o[4]||(o[4]=r=>i("duration"))},[c(" Duration "),t("div",{"ml--1":"","text-xs":"",class:p([n(a)==="duration"?"op50":"op0",n(s)==="asc"?"carbon-arrow-down":"carbon-arrow-up"])},null,2)])])])]),t("tbody",null,[(d(!0),m(y,null,T(n(b),r=>(d(),m("tr",{key:r.name,border:"b dashed transparent hover:base"},[t("td",K,_(n(v).indexOf(r.start)),1),t("td",{"w-0":"","ws-nowrap":"","text-right":"",style:F({color:("getHashColorFromString"in e?e.getHashColorFromString:n(B))(u(r.name))})},[t("code",R,_(u(r.name)),1)],4),t("td",U,[t("code",q,_(f(r.name)),1)]),t("td",J,_(r.listeners),1),t("td",M,_(r.executions.length+1),1),t("td",Q,[h(I,{duration:r.duration},null,8,["duration"])])]))),128))])])}}}),X={class:"markdown-body"},Z=t("h1",null,"Hooks",-1),tt=t("p",null,[c("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 "),t("a",{href:"https://github.com/unjs/hookable",target:"_blank",rel:"noopener"},"unjs/hookable"),c(".")],-1),ot=t("p",null,[t("a",{href:"https://nuxt.com/docs/guide/going-further/hooks",target:"_blank",rel:"noopener"},"Learn more about hooks"),c(".")],-1),et=[Z,tt,ot],nt={__name:"hooks",setup(k,{expose:l}){return l({frontmatter:{}}),(s,x)=>(d(),m("div",X,et))}},it=N({__name:"hooks",setup(k){const l=V(),a=D(),s=g(()=>a.value?.metrics.clientHooks());return(x,v)=>{const b=W,u=P,f=nt,i=j;return d(),m(y,null,[t("div",null,[n(s)?.length?(d(),H(u,{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(b,{hooks:n(s)},null,8,["hooks"])]),_:1},8,["description"])):C("",!0),n(l)?.length?(d(),H(u,{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(b,{hooks:n(l)},null,8,["hooks"])]),_:1},8,["description"])):C("",!0)]),h(i,null,{default:w(()=>[h(f)]),_:1})],64)}}});export{it as default};
@@ -1 +1 @@
1
- import{am as m,bd as n,a as s,L as o}from"./BIR-zdoB.js";function u(){const p=m(),t=n("getComponents",()=>o.getComponents()),l=s(()=>Object.entries(p.value?.nuxt?.vueApp._context.components||{}).map(([e])=>({pascalName:e,global:!0})).filter(e=>!/^Lazy[A-Z]/.test(e.pascalName)).filter(e=>!(t.value||[]).find(a=>a.pascalName===e.pascalName)));return s(()=>[...l.value,...t.value||[]].sort((e,a)=>e.pascalName.localeCompare(a.pascalName)))}function r(){return n("getComponentsRelationships",()=>o.getComponentsRelationships())}export{r as a,u};
1
+ import{am as m,bd as n,a as s,L as o}from"./DK_JXXAF.js";function u(){const p=m(),t=n("getComponents",()=>o.getComponents()),l=s(()=>Object.entries(p.value?.nuxt?.vueApp._context.components||{}).map(([e])=>({pascalName:e,global:!0})).filter(e=>!/^Lazy[A-Z]/.test(e.pascalName)).filter(e=>!(t.value||[]).find(a=>a.pascalName===e.pascalName)));return s(()=>[...l.value,...t.value||[]].sort((e,a)=>e.pascalName.localeCompare(a.pascalName)))}function r(){return n("getComponentsRelationships",()=>o.getComponentsRelationships())}export{r as a,u};
@@ -1 +1 @@
1
- import{d as r,u as s,a2 as c,I as i,o as p,h as _,_ as u}from"./BIR-zdoB.js";const f=r({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(l){const t=s();return(n,e)=>{const o=u,a=c("tooltip");return i((p(),_(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=m=>t.value=n.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{f as _};
1
+ import{d as r,u as s,a2 as c,I as i,o as p,h as _,_ as u}from"./DK_JXXAF.js";const f=r({__name:"DataSchemaButton",props:{getter:{type:Function}},setup(l){const t=s();return(n,e)=>{const o=u,a=c("tooltip");return i((p(),_(o,{title:"Generate Data Schema",icon:"carbon:container-services",border:!1,onClick:e[0]||(e[0]=m=>t.value=n.getter())},null,512)),[[a,"Generate Data Schema"]])}}});export{f as _};
@@ -1 +1 @@
1
- import{d as b,r as h,b_ as n,aX as g,h as y,j as v,ax as l,aW as k,o as i,m as B,i as C,k as $,aa as w,f as o,p as V,_}from"./BIR-zdoB.js";const x=["border"],N={relative:"","h-full":"","w-full":"","of-auto":""},E=b({__name:"NDrawer",props:{modelValue:{type:Boolean},top:{},left:{},autoClose:{type:Boolean},transition:{default:"right"}},emits:["close"],setup(m,{emit:f}){const e=m,c=f,a=h(),{height:d}=n(()=>e.top,void 0,{box:"border-box"}),s=typeof e.left=="string"&&e.left.startsWith("#")?document.querySelector(e.left)?.getBoundingClientRect().width:n(()=>e.left,void 0,{box:"border-box"}).width;g(a,()=>{e.modelValue&&e.autoClose&&c("close")},{ignore:["a","button","summary",'[role="dialog"]']});const u={right:{"enter-from-class":"transform translate-x-1/1","leave-to-class":"transform translate-x-1/1"},top:{"enter-from-class":"transform translate-y--1/1","leave-to-class":"transform translate-y--1/1"},bottom:{"enter-from-class":"transform translate-y-1/1","leave-to-class":"transform translate-y-1/1"}};return(t,r)=>{const p=_;return i(),y(k,l(u[t.transition],{"enter-active-class":"duration-200 ease-in","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100"}),{default:v(()=>[t.modelValue?(i(),B("div",l({key:0,ref_key:"el",ref:a,border:`${t.transition==="right"?"l":t.transition==="bottom"?"t":"b"} base`,flex:"~ col gap-1",class:{"right-0":t.transition==="right"||t.transition==="bottom"},absolute:"","bottom-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","n-glass-effect":"",style:{top:t.transition==="bottom"?"auto":`${o(d)}px`,left:t.transition==="right"&&!o(s)?"auto":`${o(s)}px`}},t.$attrs),[C(p,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",border:!1,onClick:r[0]||(r[0]=z=>t.$emit("close"))}),$("div",N,[w(t.$slots,"default")])],16,x)):V("",!0)]),_:3},16)}}});export{E as _};
1
+ import{d as b,r as h,b_ as n,aX as g,h as y,j as v,ax as l,aW as k,o as i,m as B,i as C,k as $,aa as w,f as o,p as V,_}from"./DK_JXXAF.js";const x=["border"],N={relative:"","h-full":"","w-full":"","of-auto":""},E=b({__name:"NDrawer",props:{modelValue:{type:Boolean},top:{},left:{},autoClose:{type:Boolean},transition:{default:"right"}},emits:["close"],setup(m,{emit:f}){const e=m,c=f,a=h(),{height:d}=n(()=>e.top,void 0,{box:"border-box"}),s=typeof e.left=="string"&&e.left.startsWith("#")?document.querySelector(e.left)?.getBoundingClientRect().width:n(()=>e.left,void 0,{box:"border-box"}).width;g(a,()=>{e.modelValue&&e.autoClose&&c("close")},{ignore:["a","button","summary",'[role="dialog"]']});const u={right:{"enter-from-class":"transform translate-x-1/1","leave-to-class":"transform translate-x-1/1"},top:{"enter-from-class":"transform translate-y--1/1","leave-to-class":"transform translate-y--1/1"},bottom:{"enter-from-class":"transform translate-y-1/1","leave-to-class":"transform translate-y-1/1"}};return(t,r)=>{const p=_;return i(),y(k,l(u[t.transition],{"enter-active-class":"duration-200 ease-in","enter-to-class":"opacity-100","leave-active-class":"duration-200 ease-out","leave-from-class":"opacity-100"}),{default:v(()=>[t.modelValue?(i(),B("div",l({key:0,ref_key:"el",ref:a,border:`${t.transition==="right"?"l":t.transition==="bottom"?"t":"b"} base`,flex:"~ col gap-1",class:{"right-0":t.transition==="right"||t.transition==="bottom"},absolute:"","bottom-0":"","z-10":"","z-20":"","of-auto":"","text-sm":"","n-glass-effect":"",style:{top:t.transition==="bottom"?"auto":`${o(d)}px`,left:t.transition==="right"&&!o(s)?"auto":`${o(s)}px`}},t.$attrs),[C(p,{absolute:"","right-2":"","top-2":"","z-20":"","text-xl":"",icon:"carbon-close",border:!1,onClick:r[0]||(r[0]=z=>t.$emit("close"))}),$("div",N,[w(t.$slots,"default")])],16,x)):V("",!0)]),_:3},16)}}});export{E as _};
@@ -1 +1 @@
1
- import{q as o,m as s,k as t,aa as a,o as n}from"./BIR-zdoB.js";const r={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,_){return n(),s("div",c,[t("div",l,[a(e.$slots,"default")])])}const i=o(r,[["render",d]]);export{i as default};
1
+ import{q as o,m as s,k as t,aa as a,o as n}from"./DK_JXXAF.js";const r={},c={"h-full":"","of-auto":"","n-panel-grids":""},l={"h-full":"","bg-base":""};function d(e,_){return n(),s("div",c,[t("div",l,[a(e.$slots,"default")])])}const i=o(r,[["render",d]]);export{i as default};
@@ -1 +1 @@
1
- import{d as l,m as p,k as d,aa as a,G as s,o,h as i,p as m,X as u}from"./BIR-zdoB.js";const h={flex:"~ gap4","items-center":""},g=l({__name:"NNavbar",props:{search:{},noPadding:{type:Boolean}},emits:["update:search"],setup(f,{emit:n}){const r=n;function t(e){r("update:search",e.target.value)}return(e,v)=>{const c=u;return o(),p("div",{flex:"~ col gap2",border:"b base","flex-1":"","n-navbar-glass":"",class:s([{p4:!e.noPadding}])},[d("div",h,[a(e.$slots,"search",{},()=>[e.search!==void 0?(o(),i(c,{key:0,placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:s({"px-5 py-2":!e.noPadding}),value:e.search,onInput:t},null,8,["class","value"])):m("",!0)]),a(e.$slots,"actions")]),a(e.$slots,"default")],2)}}});export{g as _};
1
+ import{d as l,m as p,k as d,aa as a,G as s,o,h as i,p as m,X as u}from"./DK_JXXAF.js";const h={flex:"~ gap4","items-center":""},g=l({__name:"NNavbar",props:{search:{},noPadding:{type:Boolean}},emits:["update:search"],setup(f,{emit:n}){const r=n;function t(e){r("update:search",e.target.value)}return(e,v)=>{const c=u;return o(),p("div",{flex:"~ col gap2",border:"b base","flex-1":"","n-navbar-glass":"",class:s([{p4:!e.noPadding}])},[d("div",h,[a(e.$slots,"search",{},()=>[e.search!==void 0?(o(),i(c,{key:0,placeholder:"Search...",icon:"carbon-search",n:"primary","flex-auto":"",class:s({"px-5 py-2":!e.noPadding}),value:e.search,onInput:t},null,8,["class","value"])):m("",!0)]),a(e.$slots,"actions")]),a(e.$slots,"default")],2)}}});export{g as _};
@@ -1 +1 @@
1
- import{d as s,al as c,m as _,f as t,h as o,j as l,an as r,o as e,v as f}from"./BIR-zdoB.js";import{l as i}from"./BD4ddXSe.js";const m={class:"h-full w-full"},x=s({__name:"pinia",setup(p){const{connected:n}=c();return(u,d)=>{const a=r;return e(),_("div",m,[t(n)?(e(),o(t(i),{key:0})):(e(),o(a,{key:1},{default:l(()=>[f(" Connecting.... ")]),_:1}))])}}});export{x as default};
1
+ import{d as s,al as c,m as _,f as t,h as o,j as l,an as r,o as e,v as f}from"./DK_JXXAF.js";import{l as i}from"./Dmr9BwAJ.js";const m={class:"h-full w-full"},x=s({__name:"pinia",setup(p){const{connected:n}=c();return(u,d)=>{const a=r;return e(),_("div",m,[t(n)?(e(),o(t(i),{key:0})):(e(),o(a,{key:1},{default:l(()=>[f(" Connecting.... ")]),_:1}))])}}});export{x as default};