@nuxt/devtools 1.1.1 → 1.1.2

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 (69) hide show
  1. package/dist/chunks/module-main.mjs +2 -2
  2. package/dist/client/200.html +15 -15
  3. package/dist/client/404.html +15 -15
  4. package/dist/client/_nuxt/{C54XRc8l.js → 05eipVqs.js} +1 -1
  5. package/dist/client/_nuxt/{Z8_3SdCx.js → 35i4wAMX.js} +1 -1
  6. package/dist/client/_nuxt/{C_MnmfmV.js → 5522rDXy.js} +1 -1
  7. package/dist/client/_nuxt/{C3QlK_7B.js → 8hufx-0P.js} +1 -1
  8. package/dist/client/_nuxt/{BkuzPiAP.js → B60kQZgx.js} +1 -1
  9. package/dist/client/_nuxt/{CtdhE1f3.js → BAEd9nCl.js} +1 -1
  10. package/dist/client/_nuxt/{D89IPr06.js → BDkh8QK0.js} +1 -1
  11. package/dist/client/_nuxt/{DDNphti6.js → BGCrOz4e.js} +1 -1
  12. package/dist/client/_nuxt/{DN9uS3r9.js → BH9eSsM3.js} +1 -1
  13. package/dist/client/_nuxt/{CXHl10-y.js → BMO0AzJa.js} +1 -1
  14. package/dist/client/_nuxt/{DdbkFw3c.js → BRRmM0xY.js} +1 -1
  15. package/dist/client/_nuxt/{D4f0f7UU.js → BUzRqhRD.js} +1 -1
  16. package/dist/client/_nuxt/{Elk39DYk.js → BahhYg3z.js} +1 -1
  17. package/dist/client/_nuxt/{CB59kvvk.js → BoIcwzHe.js} +1 -1
  18. package/dist/client/_nuxt/{BOnTdqFq.js → BrR1uaPL.js} +1 -1
  19. package/dist/client/_nuxt/{DZNF9_Ts.js → Btmz1I6b.js} +1 -1
  20. package/dist/client/_nuxt/{CXNvZAmn.js → BxIo2FZE.js} +1 -1
  21. package/dist/client/_nuxt/{BIG-xU8F.js → By0eb6Ij.js} +1 -1
  22. package/dist/client/_nuxt/{DwPRkQcZ.js → BzBCjr50.js} +1 -1
  23. package/dist/client/_nuxt/{C9nlvRuE.js → C4lFqnv_.js} +1 -1
  24. package/dist/client/_nuxt/{DBpZLuBg.js → C5LAasJC.js} +1 -1
  25. package/dist/client/_nuxt/{BnqTDRTQ.js → CCI8m-9C.js} +1 -1
  26. package/dist/client/_nuxt/{CwIrUz6t.js → CHNBAloE.js} +1 -1
  27. package/dist/client/_nuxt/{CrUxNsPP.js → CKob1_mL.js} +1 -1
  28. package/dist/client/_nuxt/{LysmJLvR.js → CSNWMf2X.js} +1 -1
  29. package/dist/client/_nuxt/{CD_YezWg.js → CSZoFkhp.js} +1 -1
  30. package/dist/client/_nuxt/{DW-UQrvA.js → CT68Z8ay.js} +1 -1
  31. package/dist/client/_nuxt/{Ba4DdyWR.js → CUP8SSIE.js} +1 -1
  32. package/dist/client/_nuxt/{QRQ0ln8W.js → CX13B-L1.js} +1 -1
  33. package/dist/client/_nuxt/{BZ4OC5-6.js → ChFyfSj-.js} +1 -1
  34. package/dist/client/_nuxt/{DDu9F5dm.js → CoG0T9C_.js} +1 -1
  35. package/dist/client/_nuxt/{8EggbMwu.js → Coo9jkJv.js} +1 -1
  36. package/dist/client/_nuxt/{CMLG2-wm.js → CsaIzWXD.js} +1 -1
  37. package/dist/client/_nuxt/{BMDCUlkj.js → Cumeyj8G.js} +1 -1
  38. package/dist/client/_nuxt/{e8Aij11V.js → CvdRAF54.js} +1 -1
  39. package/dist/client/_nuxt/{D_qxg9CZ.js → CvkvF8B0.js} +1 -1
  40. package/dist/client/_nuxt/{DE14FQNr.js → CyFpVQ5f.js} +1 -1
  41. package/dist/client/_nuxt/{CY8m9THH.js → CzbknTwr.js} +1 -1
  42. package/dist/client/_nuxt/{vzR1DB7b.js → D-O8rTjO.js} +1 -1
  43. package/dist/client/_nuxt/{CyGasit_.js → D3a_2Jhy.js} +1 -1
  44. package/dist/client/_nuxt/{z8NVlzAs.js → D5qO0ocA.js} +1 -1
  45. package/dist/client/_nuxt/{CtILACI6.js → DBwX64I2.js} +5 -5
  46. package/dist/client/_nuxt/{CXiebJPP.js → DDzYLyiY.js} +1 -1
  47. package/dist/client/_nuxt/{hRYdrzP_.js → DOhD0XD4.js} +1 -1
  48. package/dist/client/_nuxt/{2bKi2e5w.js → DWmRbhwd.js} +1 -1
  49. package/dist/client/_nuxt/{BEjaWloH.js → Df-7Z7ap.js} +1 -1
  50. package/dist/client/_nuxt/{Buf8bEqg.js → Dg4ajmlB.js} +1 -1
  51. package/dist/client/_nuxt/{ChqQx1p4.js → DictM9hy.js} +1 -1
  52. package/dist/client/_nuxt/{BDWyeyq_.js → DkJgRml6.js} +1 -1
  53. package/dist/client/_nuxt/{DEHAvi9d.js → DohjUBb1.js} +1 -1
  54. package/dist/client/_nuxt/{Bdtkoq5_.js → DsMIOSL0.js} +1 -1
  55. package/dist/client/_nuxt/{BgkphNq2.js → Dt-wn2qS.js} +1 -1
  56. package/dist/client/_nuxt/{DnXIYXpO.js → Dy0bGpwB.js} +1 -1
  57. package/dist/client/_nuxt/{BZ5b_UHE.js → H39NmHRU.js} +1 -1
  58. package/dist/client/_nuxt/{C6khTLBN.js → RobKPY4N.js} +1 -1
  59. package/dist/client/_nuxt/{DRyh6x-M.js → RreOIvUw.js} +1 -1
  60. package/dist/client/_nuxt/builds/latest.json +1 -1
  61. package/dist/client/_nuxt/builds/meta/5301e8c6-9a1e-46bd-a583-33279d289002.json +1 -0
  62. package/dist/client/_nuxt/{B9hwBRIe.js → jdRwaW7t.js} +1 -1
  63. package/dist/client/_nuxt/{tH7Oq52e.js → r3xdub1V.js} +1 -1
  64. package/dist/client/_nuxt/{9xk-6Ftp.js → stCFyAu4.js} +1 -1
  65. package/dist/client/_nuxt/{ud_P3M-F.js → vOpv7-NV.js} +1 -1
  66. package/dist/client/index.html +15 -15
  67. package/dist/module.json +1 -1
  68. package/package.json +4 -4
  69. package/dist/client/_nuxt/builds/meta/ca0a12b4-0fff-4e13-ae05-41075030e4de.json +0 -1
@@ -1 +1 @@
1
- import{d as r,u as s,a2 as c,I as i,o as p,h as _,_ as u}from"./CtILACI6.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"./DBwX64I2.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 _};
@@ -4,7 +4,7 @@ function __vite__mapDeps(indexes) {
4
4
  }
5
5
  return indexes.map((i) => __vite__mapDeps.viteFileDeps[i])
6
6
  }
7
- import{bN as P5,c as R5,bZ as N5,d as I5,bx as D5,r as Lp,aB as L5,ao as B5,w as sf,f as z5,bn as q5}from"./CtILACI6.js";function Tn(t){return Array.isArray(t)}function er(t){return t!==null&&typeof t=="object"&&(t.constructor===void 0||t.constructor.name==="Object")}function Ik(t){return t&&typeof t=="object"?t.op==="add":!1}function Dk(t){return t&&typeof t=="object"?t.op==="remove":!1}function Dv(t){return t&&typeof t=="object"?t.op==="replace":!1}function Fm(t){return t&&typeof t=="object"?t.op==="copy":!1}function vl(t){return t&&typeof t=="object"?t.op==="move":!1}function F5(t,e){return JSON.stringify(t)===JSON.stringify(e)}function V5(t,e){return t===e}function Lk(t){return t.slice(0,t.length-1)}function H5(t){return t[t.length-1]}function U5(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V5;if(t.length<e.length)return!1;for(let r=0;r<e.length;r++)if(!n(t[r],e[r]))return!1;return!0}function Bk(t){return typeof t=="object"&&t!==null}function Lv(t){if(Tn(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else if(er(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else return t}function Bv(t,e,n){if(t[e]===n)return t;{const r=Lv(t);return r[e]=n,r}}function Ye(t,e){let n=t,r=0;for(;r<e.length;)er(n)?n=n[e[r]]:Tn(n)?n=n[parseInt(e[r])]:n=void 0,r++;return n}function Ki(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.length===0)return n;const i=e[0],o=Ki(t?t[i]:void 0,e.slice(1),n,r);if(er(t)||Tn(t))return Bv(t,i,o);if(r){const s=W5.test(i)?[]:{};return s[i]=o,s}else throw new Error("Path does not exist")}const W5=/^\d+$/;function zk(t,e,n){if(e.length===0)return n(t);if(!Bk(t))throw new Error("Path doesn't exist");const r=e[0],i=zk(t[r],e.slice(1),n);return Bv(t,r,i)}function zv(t,e){if(e.length===0)return t;if(!Bk(t))throw new Error("Path does not exist");if(e.length===1){const i=e[0];if(i in t){const o=Lv(t);return Tn(o)&&o.splice(parseInt(i),1),er(o)&&delete o[i],o}else return t}const n=e[0],r=zv(t[n],e.slice(1));return Bv(t,n,r)}function qv(t,e,n){const r=e.slice(0,e.length-1),i=e[e.length-1];return zk(t,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const s=Lv(o);return s.splice(parseInt(i),0,n),s})}function Ri(t,e){return t===void 0?!1:e.length===0?!0:t===null?!1:Ri(t[e[0]],e.slice(1))}function io(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function Ve(t){return t.map(qk).join("")}function qk(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function uy(t,e){return t+qk(e)}function Ih(t,e){return t.startsWith(e)&&(t.length===e.length||t[e.length]==="/")}function eo(t,e,n){let r=t;for(let i=0;i<e.length;i++){eO(e[i]);let o=e[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const s=r,a=Eo(r,o.path);if(o.op==="add")r=G5(r,a,o.value);else if(o.op==="remove")r=K5(r,a);else if(o.op==="replace")r=J5(r,a,o.value);else if(o.op==="copy")r=Q5(r,a,Vm(o.from));else if(o.op==="move")r=Y5(r,a,Vm(o.from));else if(o.op==="test")X5(r,a,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,s);l!==void 0&&(r=l)}}return r}function J5(t,e,n){return Ki(t,e,n)}function K5(t,e){return zv(t,e)}function G5(t,e,n){return Nu(t,e)?qv(t,e,n):Ki(t,e,n)}function Q5(t,e,n){const r=Ye(t,n);if(Nu(t,e))return qv(t,e,r);{const i=Ye(t,n);return Ki(t,e,i)}}function Y5(t,e,n){const r=Ye(t,n),i=zv(t,n);return Nu(i,e)?qv(i,e,r):Ki(i,e,r)}function X5(t,e,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${Ve(e)}")`);if(!Ri(t,e))throw new Error(`Test failed: path not found (path: "${Ve(e)}")`);const r=Ye(t,e);if(!F5(r,n))throw new Error(`Test failed, value differs (path: "${Ve(e)}")`)}function Nu(t,e){if(e.length===0)return!1;const n=Ye(t,Lk(e));return Array.isArray(n)}function Z5(t,e){if(H5(e)!=="-")return e;const n=Lk(e),r=Ye(t,n);return n.concat(r.length)}function eO(t){if(!["add","remove","replace","copy","move","test"].includes(t.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(t.op));if(typeof t.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(t));if((t.op==="copy"||t.op==="move")&&typeof t.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(t))}function Eo(t,e){return Z5(t,io(e))}function Vm(t){return io(t)}function Fk(t,e,n){let r=[];return eo(t,e,{before:(o,s)=>{let a;const l=Eo(o,s.path);if(s.op==="add")a=Uk(o,l);else if(s.op==="remove")a=Hk(o,l);else if(s.op==="replace")a=Vk(o,l);else if(s.op==="copy")a=tO(o,l);else if(s.op==="move")a=nO(o,l,Vm(s.from));else if(s.op==="test")a=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(s));let c;if(n&&n.before){const u=n.before(o,s,a);if(u&&u.revertOperations&&(a=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=a.concat(r),c!==void 0)return{document:c}}}),r}function Vk(t,e){return[{op:"replace",path:Ve(e),value:Ye(t,e)}]}function Hk(t,e){return[{op:"add",path:Ve(e),value:Ye(t,e)}]}function Uk(t,e){return Nu(t,e)||!Ri(t,e)?[{op:"remove",path:Ve(e)}]:Vk(t,e)}function tO(t,e){return Uk(t,e)}function nO(t,e,n){if(e.length<n.length&&U5(n,e))return[{op:"replace",path:Ve(e),value:t}];const r={op:"move",from:Ve(e),path:Ve(n)};return!Nu(t,e)&&Ri(t,e)?[r,...Hk(t,e)]:[r]}var Ad={},fy={b:"\b",f:"\f",n:`
7
+ import{bN as P5,c as R5,bZ as N5,d as I5,bx as D5,r as Lp,aB as L5,ao as B5,w as sf,f as z5,bn as q5}from"./DBwX64I2.js";function Tn(t){return Array.isArray(t)}function er(t){return t!==null&&typeof t=="object"&&(t.constructor===void 0||t.constructor.name==="Object")}function Ik(t){return t&&typeof t=="object"?t.op==="add":!1}function Dk(t){return t&&typeof t=="object"?t.op==="remove":!1}function Dv(t){return t&&typeof t=="object"?t.op==="replace":!1}function Fm(t){return t&&typeof t=="object"?t.op==="copy":!1}function vl(t){return t&&typeof t=="object"?t.op==="move":!1}function F5(t,e){return JSON.stringify(t)===JSON.stringify(e)}function V5(t,e){return t===e}function Lk(t){return t.slice(0,t.length-1)}function H5(t){return t[t.length-1]}function U5(t,e){let n=arguments.length>2&&arguments[2]!==void 0?arguments[2]:V5;if(t.length<e.length)return!1;for(let r=0;r<e.length;r++)if(!n(t[r],e[r]))return!1;return!0}function Bk(t){return typeof t=="object"&&t!==null}function Lv(t){if(Tn(t)){const e=t.slice();return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else if(er(t)){const e={...t};return Object.getOwnPropertySymbols(t).forEach(n=>{e[n]=t[n]}),e}else return t}function Bv(t,e,n){if(t[e]===n)return t;{const r=Lv(t);return r[e]=n,r}}function Ye(t,e){let n=t,r=0;for(;r<e.length;)er(n)?n=n[e[r]]:Tn(n)?n=n[parseInt(e[r])]:n=void 0,r++;return n}function Ki(t,e,n){let r=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1;if(e.length===0)return n;const i=e[0],o=Ki(t?t[i]:void 0,e.slice(1),n,r);if(er(t)||Tn(t))return Bv(t,i,o);if(r){const s=W5.test(i)?[]:{};return s[i]=o,s}else throw new Error("Path does not exist")}const W5=/^\d+$/;function zk(t,e,n){if(e.length===0)return n(t);if(!Bk(t))throw new Error("Path doesn't exist");const r=e[0],i=zk(t[r],e.slice(1),n);return Bv(t,r,i)}function zv(t,e){if(e.length===0)return t;if(!Bk(t))throw new Error("Path does not exist");if(e.length===1){const i=e[0];if(i in t){const o=Lv(t);return Tn(o)&&o.splice(parseInt(i),1),er(o)&&delete o[i],o}else return t}const n=e[0],r=zv(t[n],e.slice(1));return Bv(t,n,r)}function qv(t,e,n){const r=e.slice(0,e.length-1),i=e[e.length-1];return zk(t,r,o=>{if(!Array.isArray(o))throw new TypeError("Array expected at path "+JSON.stringify(r));const s=Lv(o);return s.splice(parseInt(i),0,n),s})}function Ri(t,e){return t===void 0?!1:e.length===0?!0:t===null?!1:Ri(t[e[0]],e.slice(1))}function io(t){const e=t.split("/");return e.shift(),e.map(n=>n.replace(/~1/g,"/").replace(/~0/g,"~"))}function Ve(t){return t.map(qk).join("")}function qk(t){return"/"+String(t).replace(/~/g,"~0").replace(/\//g,"~1")}function uy(t,e){return t+qk(e)}function Ih(t,e){return t.startsWith(e)&&(t.length===e.length||t[e.length]==="/")}function eo(t,e,n){let r=t;for(let i=0;i<e.length;i++){eO(e[i]);let o=e[i];if(n&&n.before){const l=n.before(r,o);if(l!==void 0){if(l.document!==void 0&&(r=l.document),l.json!==void 0)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"');l.operation!==void 0&&(o=l.operation)}}const s=r,a=Eo(r,o.path);if(o.op==="add")r=G5(r,a,o.value);else if(o.op==="remove")r=K5(r,a);else if(o.op==="replace")r=J5(r,a,o.value);else if(o.op==="copy")r=Q5(r,a,Vm(o.from));else if(o.op==="move")r=Y5(r,a,Vm(o.from));else if(o.op==="test")X5(r,a,o.value);else throw new Error("Unknown JSONPatch operation "+JSON.stringify(o));if(n&&n.after){const l=n.after(r,o,s);l!==void 0&&(r=l)}}return r}function J5(t,e,n){return Ki(t,e,n)}function K5(t,e){return zv(t,e)}function G5(t,e,n){return Nu(t,e)?qv(t,e,n):Ki(t,e,n)}function Q5(t,e,n){const r=Ye(t,n);if(Nu(t,e))return qv(t,e,r);{const i=Ye(t,n);return Ki(t,e,i)}}function Y5(t,e,n){const r=Ye(t,n),i=zv(t,n);return Nu(i,e)?qv(i,e,r):Ki(i,e,r)}function X5(t,e,n){if(n===void 0)throw new Error(`Test failed: no value provided (path: "${Ve(e)}")`);if(!Ri(t,e))throw new Error(`Test failed: path not found (path: "${Ve(e)}")`);const r=Ye(t,e);if(!F5(r,n))throw new Error(`Test failed, value differs (path: "${Ve(e)}")`)}function Nu(t,e){if(e.length===0)return!1;const n=Ye(t,Lk(e));return Array.isArray(n)}function Z5(t,e){if(H5(e)!=="-")return e;const n=Lk(e),r=Ye(t,n);return n.concat(r.length)}function eO(t){if(!["add","remove","replace","copy","move","test"].includes(t.op))throw new Error("Unknown JSONPatch op "+JSON.stringify(t.op));if(typeof t.path!="string")throw new Error('Required property "path" missing or not a string in operation '+JSON.stringify(t));if((t.op==="copy"||t.op==="move")&&typeof t.from!="string")throw new Error('Required property "from" missing or not a string in operation '+JSON.stringify(t))}function Eo(t,e){return Z5(t,io(e))}function Vm(t){return io(t)}function Fk(t,e,n){let r=[];return eo(t,e,{before:(o,s)=>{let a;const l=Eo(o,s.path);if(s.op==="add")a=Uk(o,l);else if(s.op==="remove")a=Hk(o,l);else if(s.op==="replace")a=Vk(o,l);else if(s.op==="copy")a=tO(o,l);else if(s.op==="move")a=nO(o,l,Vm(s.from));else if(s.op==="test")a=[];else throw new Error("Unknown JSONPatch operation "+JSON.stringify(s));let c;if(n&&n.before){const u=n.before(o,s,a);if(u&&u.revertOperations&&(a=u.revertOperations),u&&u.document&&(c=u.document),u&&u.json)throw new Error('Deprecation warning: returned object property ".json" has been renamed to ".document"')}if(r=a.concat(r),c!==void 0)return{document:c}}}),r}function Vk(t,e){return[{op:"replace",path:Ve(e),value:Ye(t,e)}]}function Hk(t,e){return[{op:"add",path:Ve(e),value:Ye(t,e)}]}function Uk(t,e){return Nu(t,e)||!Ri(t,e)?[{op:"remove",path:Ve(e)}]:Vk(t,e)}function tO(t,e){return Uk(t,e)}function nO(t,e,n){if(e.length<n.length&&U5(n,e))return[{op:"replace",path:Ve(e),value:t}];const r={op:"move",from:Ve(e),path:Ve(n)};return!Nu(t,e)&&Ri(t,e)?[r,...Hk(t,e)]:[r]}var Ad={},fy={b:"\b",f:"\f",n:`
8
8
  `,r:"\r",t:" ",'"':'"',"/":"/","\\":"\\"},rO=97;Ad.parse=function(t,e,n){var r={},i=0,o=0,s=0,a=n&&n.bigint&&typeof BigInt<"u";return{data:l("",!0),pointers:r};function l(z,O){c();var L;x(z,"value");var R=m();switch(R){case"t":p("rue"),L=!0;break;case"f":p("alse"),L=!1;break;case"n":p("ull"),L=null;break;case'"':L=u();break;case"[":L=d(z);break;case"{":L=h(z);break;default:g(),"-0123456789".indexOf(R)>=0?L=f():w()}return x(z,"valueEnd"),c(),O&&s<t.length&&w(),L}function c(){e:for(;s<t.length;){switch(t[s]){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
9
9
  `:o=0,i++;break;default:break e}s++}}function u(){for(var z="",O;O=m(),O!='"';)O=="\\"?(O=m(),O in fy?z+=fy[O]:O=="u"?z+=v():k()):z+=O;return z}function f(){var z="",O=!0;t[s]=="-"&&(z+=m()),z+=t[s]=="0"?m():y(),t[s]=="."&&(z+=m()+y(),O=!1),(t[s]=="e"||t[s]=="E")&&(z+=m(),(t[s]=="+"||t[s]=="-")&&(z+=m()),z+=y(),O=!1);var L=+z;return a&&O&&(L>Number.MAX_SAFE_INTEGER||L<Number.MIN_SAFE_INTEGER)?BigInt(z):L}function d(z){c();var O=[],L=0;if(m()=="]")return O;for(g();;){var R=z+"/"+L;O.push(l(R)),c();var G=m();if(G=="]")break;G!=","&&k(),c(),L++}return O}function h(z){c();var O={};if(m()=="}")return O;for(g();;){var L=b();m()!='"'&&k();var R=u(),G=z+"/"+Hm(R);j(G,"key",L),x(G,"keyEnd"),c(),m()!=":"&&k(),c(),O[R]=l(G),c();var V=m();if(V=="}")break;V!=","&&k(),c()}return O}function p(z){for(var O=0;O<z.length;O++)m()!==z[O]&&k()}function m(){N();var z=t[s];return s++,o++,z}function g(){s--,o--}function v(){for(var z=4,O=0;z--;){O<<=4;var L=m().toLowerCase();L>="a"&&L<="f"?O+=L.charCodeAt()-rO+10:L>="0"&&L<="9"?O+=+L:k()}return String.fromCharCode(O)}function y(){for(var z="";t[s]>="0"&&t[s]<="9";)z+=m();if(z.length)return z;N(),w()}function x(z,O){j(z,O,b())}function j(z,O,L){r[z]=r[z]||{},r[z][O]=L}function b(){return{line:i,column:o,pos:s}}function w(){throw new SyntaxError("Unexpected token "+t[s]+" in JSON at position "+s)}function k(){g(),w()}function N(){if(s>=t.length)throw new SyntaxError("Unexpected end of JSON input")}};Ad.stringify=function(t,e,n){if(!af(t))return;var r=0,i,o,s=typeof n=="object"?n.space:n;switch(typeof s){case"number":var a=s>10?10:s<0?0:Math.floor(s);s=a&&j(a," "),i=a,o=a;break;case"string":s=s.slice(0,10),i=0,o=0;for(var l=0;l<s.length;l++){var c=s[l];switch(c){case" ":o++;break;case" ":o+=4;break;case"\r":o=0;break;case`
10
10
  `:o=0,r++;break;default:throw new Error("whitespace characters not allowed in JSON")}i++}break;default:s=void 0}var u="",f={},d=0,h=0,p=0,m=n&&n.es6&&typeof Map=="function";return g(t,0,""),{json:u,pointers:f};function g(b,w,k){switch(x(k,"value"),typeof b){case"number":case"bigint":case"boolean":v(""+b);break;case"string":v(lf(b));break;case"object":b===null?v("null"):typeof b.toJSON=="function"?v(lf(b.toJSON())):Array.isArray(b)?N():m?b.constructor.BYTES_PER_ELEMENT?N():b instanceof Map?O():b instanceof Set?O(!0):z():z()}x(k,"valueEnd");function N(){if(b.length){v("[");for(var L=w+1,R=0;R<b.length;R++){R&&v(","),y(L);var G=af(b[R])?b[R]:null,V=k+"/"+R;g(G,L,V)}y(w),v("]")}else v("[]")}function z(){var L=Object.keys(b);if(L.length){v("{");for(var R=w+1,G=0;G<L.length;G++){var V=L[G],Q=b[V];if(af(Q)){G&&v(",");var Y=k+"/"+Hm(V);y(R),x(Y,"key"),v(lf(V)),x(Y,"keyEnd"),v(":"),s&&v(" "),g(Q,R,Y)}}y(w),v("}")}else v("{}")}function O(L){if(b.size){v("{");for(var R=w+1,G=!0,V=b.entries(),Q=V.next();!Q.done;){var Y=Q.value,q=Y[0],T=L?!0:Y[1];if(af(T)){G||v(","),G=!1;var F=k+"/"+Hm(q);y(R),x(F,"key"),v(lf(q)),x(F,"keyEnd"),v(":"),s&&v(" "),g(T,R,F)}Q=V.next()}y(w),v("}")}else v("{}")}}function v(b){h+=b.length,p+=b.length,u+=b}function y(b){if(s){for(u+=`
@@ -1 +1 @@
1
- import{_ as C}from"./C6khTLBN.js";import{d as h,bM as S,e as x,a as w,aA as B,o as n,m as s,k as a,F as i,n as N,G as u,f as o,t as $,i as _,j as m,v as f,h as V,p,_ as T}from"./CtILACI6.js";const D={key:0,relative:"","n-code-block":""},E={flex:"~ wrap","w-full":""},F=["onClick"],L=a("div",{border:"b base","flex-auto":""},null,-1),j={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},M=h({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(v){const c=v,e=S(c.codeSnippets[0]),b=x(),k=w(()=>e.value?.lang||"text");return B(()=>{c.codeSnippets.includes(e.value)||(e.value=c.codeSnippets[0])}),(l,r)=>{const y=C,d=T;return l.codeSnippets.length?(n(),s("div",D,[a("div",E,[(n(!0),s(i,null,N(l.codeSnippets,(t,g)=>(n(),s("button",{key:g,px4:"",py2:"",border:"r base",hover:"bg-active",class:u(t===o(e)?"":"border-b"),onClick:z=>e.value=t},[a("div",{class:u(t===o(e)?"":"op30"),"font-mono":""},$(t.name),3)],10,F))),128)),L]),o(e)?(n(),s(i,{key:0},[_(y,{code:o(e).code,lang:o(k),lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),a("div",j,[_(d,{icon:"carbon-copy",onClick:r[0]||(r[0]=t=>o(b)(o(e).code,l.eventType||`code-snippet-${o(e).name}`))},{default:m(()=>[f(" Copy ")]),_:1}),o(e)?.docs?(n(),V(d,{key:0,to:o(e).docs,target:"_blank",icon:"carbon-catalog"},{default:m(()=>[f(" Docs ")]),_:1},8,["to"])):p("",!0)])],64)):p("",!0)])):p("",!0)}}});export{M as _};
1
+ import{_ as C}from"./RobKPY4N.js";import{d as h,bM as S,e as x,a as w,aA as B,o as n,m as s,k as a,F as i,n as N,G as u,f as o,t as $,i as _,j as m,v as f,h as V,p,_ as T}from"./DBwX64I2.js";const D={key:0,relative:"","n-code-block":""},E={flex:"~ wrap","w-full":""},F=["onClick"],L=a("div",{border:"b base","flex-auto":""},null,-1),j={flex:"~ gap-2",px3:"",pb3:"",n:"sm primary"},M=h({__name:"CodeSnippets",props:{codeSnippets:{},eventType:{}},setup(v){const c=v,e=S(c.codeSnippets[0]),b=x(),k=w(()=>e.value?.lang||"text");return B(()=>{c.codeSnippets.includes(e.value)||(e.value=c.codeSnippets[0])}),(l,r)=>{const y=C,d=T;return l.codeSnippets.length?(n(),s("div",D,[a("div",E,[(n(!0),s(i,null,N(l.codeSnippets,(t,g)=>(n(),s("button",{key:g,px4:"",py2:"",border:"r base",hover:"bg-active",class:u(t===o(e)?"":"border-b"),onClick:z=>e.value=t},[a("div",{class:u(t===o(e)?"":"op30"),"font-mono":""},$(t.name),3)],10,F))),128)),L]),o(e)?(n(),s(i,{key:0},[_(y,{code:o(e).code,lang:o(k),lines:!1,"w-full":"","of-auto":"",p3:""},null,8,["code","lang"]),a("div",j,[_(d,{icon:"carbon-copy",onClick:r[0]||(r[0]=t=>o(b)(o(e).code,l.eventType||`code-snippet-${o(e).name}`))},{default:m(()=>[f(" Copy ")]),_:1}),o(e)?.docs?(n(),V(d,{key:0,to:o(e).docs,target:"_blank",icon:"carbon-catalog"},{default:m(()=>[f(" Docs ")]),_:1},8,["to"])):p("",!0)])],64)):p("",!0)])):p("",!0)}}});export{M as _};
@@ -1 +1 @@
1
- import{d as B,r as T,a as k,aq as W,f as t,o,m as s,k as e,t as $,h as y,j as x,bg as q,F as v,n as M,p as P,i as h,v as L,G as E,X as A,_ as G,ac as H,bh as D,b2 as X,b3 as J,ab as Q,an as Y,b4 as Z,ao as ee,l as te,ae as oe,L as ne,M as ae}from"./CtILACI6.js";import{_ as j}from"./BIG-xU8F.js";import{_ as F}from"./BOnTdqFq.js";import{_ as se}from"./DRyh6x-M.js";import{_ as re}from"./BEjaWloH.js";import{_ as le}from"./9xk-6Ftp.js";import"./DwPRkQcZ.js";import"./2bKi2e5w.js";import"./D_qxg9CZ.js";const ie={block:"","cursor-pointer":""},ue={p2:""},ce=["onSubmit"],de=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),pe={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},_e={key:1},he=B({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:i}){const d=V,w=i,m=T([]),p=k(()=>{const u=N(d.route.path);return m.value=Array.from({length:u.length},()=>""),u});function N(u){return u.split(/(:\w+[\?\*]?(?:\(\))?)/).filter(Boolean).map(_=>_[0]===":"?_.replace(/\(\)$/,"?"):_)}const r=k(()=>p.value.map((u,_)=>u[0]===":"?m.value[_]:u).join("").replace(/\/+/g,"/")),n=k(()=>d.route.path.includes(":"));function f(){w("navigate",r.value)}return(u,_)=>{const a=A,l=G,c=W("VDropdown");return t(n)?(o(),y(c,{key:1},{popper:x(({hide:g})=>[e("div",ue,[e("form",{flex:"~ col",onSubmit:q(()=>{f(),g()},["prevent"])},[t(n)?(o(),s(v,{key:0},[de,e("div",pe,[(o(!0),s(v,null,M(t(p),(b,R)=>(o(),s(v,{key:R},[b[0]===":"?(o(),y(a,{key:0,modelValue:t(m)[R],"onUpdate:modelValue":I=>t(m)[R]=I,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",_e,$(b),1))],64))),128))])],64)):P("",!0),h(l,{block:"",n:"primary"},{default:x(()=>[L(" Navigate ")]),_:1})],40,ce)])]),default:x(()=>[e("code",ie,[(o(!0),s(v,null,M(t(p),(g,b)=>(o(),s("span",{key:b,class:E(g[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(g[0]===":"?g.slice(1):g),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:f},[e("code",null,$(u.route.path),1)]))}}}),me={"w-full":""},fe=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),ge={"w-20":"","pr-1":""},ve={flex:"","items-center":"","justify-end":""},ye={"text-sm":""},be={flex:"inline gap3","items-center":""},xe={op0:"","group-hover:op100":"",flex:"~ gap1"},ke=["onClick"],$e=e("div",{"i-carbon-script-reference":""},null,-1),we=[$e],Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Re={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ce={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Pe={key:0},Ve=["onClick"],Ie=B({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const i=V,d=H(),w=D(),m=k(()=>[...i.pages].sort((r,n)=>r.path.localeCompare(n.path)));function p(r){const n=i.layouts.find(f=>f.name===r);n&&d(n.file)}function N(r){if(typeof r=="string")return w.value?.middleware.find(n=>n.name===r)?.path}return(r,n)=>{const f=j,u=he,_=F;return o(),s("div",null,[e("table",me,[fe,e("tbody",null,[(o(!0),s(v,null,M(t(m),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ge,[e("div",ve,[r.matched.find(l=>l.name===a.name)?(o(),y(f,{key:0,n:"green",title:"active",textContent:"active"})):r.matchedPending.find(l=>l.name===a.name)?(o(),y(f,{key:1,n:"teal",title:"next",textContent:"next"})):P("",!0)])]),e("td",ye,[e("div",be,[h(u,{route:a,class:E(r.matched.find(l=>l.name===a.name)?"text-primary":r.matchedPending.find(l=>l.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=l=>r.$emit("navigate",l))},null,8,["route","class"]),e("div",xe,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>t(d)(a.file||a.meta?.file)},we,8,ke)):P("",!0)])])]),e("td",Ne,$(a.name),1),e("td",Re,[h(_,{filepath:N(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ce,[a.meta.layout===!1?(o(),s("span",Pe,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:l=>p(a.meta.layout)},$(a.meta.layout),9,Ve)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=l=>p("default"))}," (default) "))])]))),128))])])])}}}),Le={class:"markdown-body"},Me=e("h1",null,"Pages",-1),Te=e("p",null,[L("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),L(" directory.")],-1),Be=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Ee=e("hr",null,null,-1),Ae=e("h1",null,"Middlewares",-1),De=e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),je=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Fe=[Me,Te,Be,Ee,Ae,De,je],Se={__name:"pages",setup(V,{expose:i}){return i({frontmatter:{}}),(w,m)=>(o(),s("div",Le,Fe))}},ze={key:0,"h-full":"","of-auto":""},Ue={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Ke=e("span",{op50:""},"Navigate from ",-1),Oe={"font-mono":""},We=e("span",{op50:""}," to ",-1),qe={key:1,op50:""},Ge=e("span",null,[L("Press "),e("b",{"font-bold":""},"Enter"),L(" to navigate")],-1),He={key:0,"text-orange":"",op75:""},Xe={key:1,op50:""},Je={"min-h-14":""},Qe={key:1,class:"py-4 text-center"},Ye=e("span",{op50:""},"No routes matched",-1),Ze=[Ye],et={"w-full":""},tt=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),ot={mr1:""},pt=B({__name:"pages",setup(V){const i=X(),d=J(),w=Q(),m=D(),p=Y(),N=Z(),r=k(()=>m.value?.middleware||[]),n=T(""),f=T(0),u=k(()=>(r.value,n.value,p.value,f.value,i.value?.currentRoute?.value?.path));ee(()=>{d.value&&(n.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(c=>{n.value=c.fullPath}),i.value?.afterEach(c=>{n.value=c.fullPath})});async function _(){n.value!==i.value?.currentRoute?.value?.path&&i.value.push(n.value||"/")}const a=k(()=>i.value.resolve(n.value||"/").matched);function l(c){i.value.push(c),n.value=c}return(c,g)=>{const b=A,R=Ie,I=se,S=j,z=F,U=re,K=Se,O=le;return o(),s(v,null,[t(w)?.pages&&t(i)?(o(),s("div",ze,[e("div",Ue,[e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ke,e("span",Oe,$(t(u)),1),We],64)):(o(),s("span",qe,"Current route"))]),h(b,{modelValue:t(n),"onUpdate:modelValue":g[0]||(g[0]=C=>te(n)?n.value=C:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(t(u)===t(n)?"":t(a).length?"text-green":"text-orange"),onKeydown:oe(_,["enter"])},null,8,["modelValue","class"]),e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ge,t(a).length?P("",!0):(o(),s("span",He," (no match)"))],64)):(o(),s("span",Xe,"Edit path above to navigate"))])]),h(I,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:x(()=>[e("div",Je,[t(a).length?(o(),y(R,{key:0,pages:t(a),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])):(o(),s("div",Qe,Ze))])]),_:1}),h(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(N).length} routes registered in your application`,padding:"pr5"},{default:x(()=>[h(R,{pages:t(N),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),y(I,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:x(()=>[e("table",et,[tt,(o(!0),s(v,null,M(t(r),C=>(o(),s("tr",{key:C.path,"h-7":""},[e("td",null,[e("span",ot,$(C.name),1),C.global?(o(),y(S,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):P("",!0)]),e("td",null,[h(z,{filepath:C.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):P("",!0)])):(o(),y(U,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in c?c.rpc:t(ne)).runWizard(await("ensureDevAuthToken"in c?c.ensureDevAuthToken:t(ae))(),"enablePages")}}]},null,8,["actions"])),h(O,null,{default:x(()=>[h(K)]),_:1})],64)}}});export{pt as default};
1
+ import{d as B,r as T,a as k,aq as W,f as t,o,m as s,k as e,t as $,h as y,j as x,bg as q,F as v,n as M,p as P,i as h,v as L,G as E,X as A,_ as G,ac as H,bh as D,b2 as X,b3 as J,ab as Q,an as Y,b4 as Z,ao as ee,l as te,ae as oe,L as ne,M as ae}from"./DBwX64I2.js";import{_ as j}from"./By0eb6Ij.js";import{_ as F}from"./BrR1uaPL.js";import{_ as se}from"./RreOIvUw.js";import{_ as re}from"./Df-7Z7ap.js";import{_ as le}from"./stCFyAu4.js";import"./BzBCjr50.js";import"./DWmRbhwd.js";import"./CvkvF8B0.js";const ie={block:"","cursor-pointer":""},ue={p2:""},ce=["onSubmit"],de=e("div",{px2:"","text-sm":"",op50:""}," Fill params and navigate: ",-1),pe={flex:"~","items-center":"",p2:"","text-sm":"","font-mono":""},_e={key:1},he=B({__name:"RoutePathItem",props:{route:{}},emits:["navigate"],setup(V,{emit:i}){const d=V,w=i,m=T([]),p=k(()=>{const u=N(d.route.path);return m.value=Array.from({length:u.length},()=>""),u});function N(u){return u.split(/(:\w+[\?\*]?(?:\(\))?)/).filter(Boolean).map(_=>_[0]===":"?_.replace(/\(\)$/,"?"):_)}const r=k(()=>p.value.map((u,_)=>u[0]===":"?m.value[_]:u).join("").replace(/\/+/g,"/")),n=k(()=>d.route.path.includes(":"));function f(){w("navigate",r.value)}return(u,_)=>{const a=A,l=G,c=W("VDropdown");return t(n)?(o(),y(c,{key:1},{popper:x(({hide:g})=>[e("div",ue,[e("form",{flex:"~ col",onSubmit:q(()=>{f(),g()},["prevent"])},[t(n)?(o(),s(v,{key:0},[de,e("div",pe,[(o(!0),s(v,null,M(t(p),(b,R)=>(o(),s(v,{key:R},[b[0]===":"?(o(),y(a,{key:0,modelValue:t(m)[R],"onUpdate:modelValue":I=>t(m)[R]=I,"w-20":"","n-sm":"",placeholder:b.slice(1)},null,8,["modelValue","onUpdate:modelValue","placeholder"])):(o(),s("span",_e,$(b),1))],64))),128))])],64)):P("",!0),h(l,{block:"",n:"primary"},{default:x(()=>[L(" Navigate ")]),_:1})],40,ce)])]),default:x(()=>[e("code",ie,[(o(!0),s(v,null,M(t(p),(g,b)=>(o(),s("span",{key:b,class:E(g[0]===":"?"text-gray border border-dashed rounded border-gray:50 px1":"")},$(g[0]===":"?g.slice(1):g),3))),128))])]),_:1})):(o(),s("button",{key:0,onClick:f},[e("code",null,$(u.route.path),1)]))}}}),me={"w-full":""},fe=e("thead",{border:"b base"},[e("tr",null,[e("th",{"text-left":""}),e("th",{"text-left":""}," Route Path "),e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Middleware "),e("th",null," Layout ")])],-1),ge={"w-20":"","pr-1":""},ve={flex:"","items-center":"","justify-end":""},ye={"text-sm":""},be={flex:"inline gap3","items-center":""},xe={op0:"","group-hover:op100":"",flex:"~ gap1"},ke=["onClick"],$e=e("div",{"i-carbon-script-reference":""},null,-1),we=[$e],Ne={"w-0":"","ws-nowrap":"","pr-1":"","text-left":"","text-sm":"","font-mono":"",op50:""},Re={"w-0":"","ws-nowrap":"","pr-1":"","text-center":"","text-sm":"","font-mono":"",op50:""},Ce={"w-0":"","ws-nowrap":"","text-center":"","text-sm":"","font-mono":""},Pe={key:0},Ve=["onClick"],Ie=B({__name:"RoutesTable",props:{pages:{},layouts:{},matched:{},matchedPending:{}},emits:["navigate"],setup(V){const i=V,d=H(),w=D(),m=k(()=>[...i.pages].sort((r,n)=>r.path.localeCompare(n.path)));function p(r){const n=i.layouts.find(f=>f.name===r);n&&d(n.file)}function N(r){if(typeof r=="string")return w.value?.middleware.find(n=>n.name===r)?.path}return(r,n)=>{const f=j,u=he,_=F;return o(),s("div",null,[e("table",me,[fe,e("tbody",null,[(o(!0),s(v,null,M(t(m),a=>(o(),s("tr",{key:a.name,class:"group","h-7":"",border:"b dashed transparent hover:base"},[e("td",ge,[e("div",ve,[r.matched.find(l=>l.name===a.name)?(o(),y(f,{key:0,n:"green",title:"active",textContent:"active"})):r.matchedPending.find(l=>l.name===a.name)?(o(),y(f,{key:1,n:"teal",title:"next",textContent:"next"})):P("",!0)])]),e("td",ye,[e("div",be,[h(u,{route:a,class:E(r.matched.find(l=>l.name===a.name)?"text-primary":r.matchedPending.find(l=>l.name===a.name)?"text-teal":""),onNavigate:n[0]||(n[0]=l=>r.$emit("navigate",l))},null,8,["route","class"]),e("div",xe,[a.file||a.meta?.file?(o(),s("button",{key:0,"text-sm":"",op40:"",hover:"op100 text-primary",title:"Open in editor",onClick:l=>t(d)(a.file||a.meta?.file)},we,8,ke)):P("",!0)])])]),e("td",Ne,$(a.name),1),e("td",Re,[h(_,{filepath:N(a.meta.middleware),override:`${a.meta.middleware||"-"}`},null,8,["filepath","override"])]),e("td",Ce,[a.meta.layout===!1?(o(),s("span",Pe,"-")):a.meta.layout?(o(),s("button",{key:1,onClick:l=>p(a.meta.layout)},$(a.meta.layout),9,Ve)):(o(),s("button",{key:2,"text-sm":"",op15:"",onClick:n[1]||(n[1]=l=>p("default"))}," (default) "))])]))),128))])])])}}}),Le={class:"markdown-body"},Me=e("h1",null,"Pages",-1),Te=e("p",null,[L("Nuxt provides a file-based routing to create routes within your web application using Vue Router under the hood. Pages are Vue components and can have any valid extension that Nuxt supports (by default .vue, .js, .jsx, .mjs, .ts or .tsx). Nuxt will automatically create a route for every page in your "),e("code",null,"~/pages/"),L(" directory.")],-1),Be=e("p",null,[e("a",{href:"https://nuxt.com/docs/getting-started/routing",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Ee=e("hr",null,null,-1),Ae=e("h1",null,"Middlewares",-1),De=e("p",null,"Nuxt provides a customizable route middleware framework that can be used throughout the application. This is ideal for extracting code that needs to run before navigating to a particular route.",-1),je=e("p",null,[e("a",{href:"https://nuxt.com/docs/guide/directory-structure/middleware",target:"_blank",rel:"noopener"},"Learn more in the documentation")],-1),Fe=[Me,Te,Be,Ee,Ae,De,je],Se={__name:"pages",setup(V,{expose:i}){return i({frontmatter:{}}),(w,m)=>(o(),s("div",Le,Fe))}},ze={key:0,"h-full":"","of-auto":""},Ue={border:"b base",flex:"~ col gap1",px4:"",py3:"","n-navbar-glass":""},Ke=e("span",{op50:""},"Navigate from ",-1),Oe={"font-mono":""},We=e("span",{op50:""}," to ",-1),qe={key:1,op50:""},Ge=e("span",null,[L("Press "),e("b",{"font-bold":""},"Enter"),L(" to navigate")],-1),He={key:0,"text-orange":"",op75:""},Xe={key:1,op50:""},Je={"min-h-14":""},Qe={key:1,class:"py-4 text-center"},Ye=e("span",{op50:""},"No routes matched",-1),Ze=[Ye],et={"w-full":""},tt=e("thead",{border:"b base","h-7":""},[e("tr",null,[e("th",{"text-left":""}," Name "),e("th",{"text-left":""}," Path ")])],-1),ot={mr1:""},pt=B({__name:"pages",setup(V){const i=X(),d=J(),w=Q(),m=D(),p=Y(),N=Z(),r=k(()=>m.value?.middleware||[]),n=T(""),f=T(0),u=k(()=>(r.value,n.value,p.value,f.value,i.value?.currentRoute?.value?.path));ee(()=>{d.value&&(n.value=i.value?.currentRoute?.value?.path),i.value?.beforeEach(c=>{n.value=c.fullPath}),i.value?.afterEach(c=>{n.value=c.fullPath})});async function _(){n.value!==i.value?.currentRoute?.value?.path&&i.value.push(n.value||"/")}const a=k(()=>i.value.resolve(n.value||"/").matched);function l(c){i.value.push(c),n.value=c}return(c,g)=>{const b=A,R=Ie,I=se,S=j,z=F,U=re,K=Se,O=le;return o(),s(v,null,[t(w)?.pages&&t(i)?(o(),s("div",ze,[e("div",Ue,[e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ke,e("span",Oe,$(t(u)),1),We],64)):(o(),s("span",qe,"Current route"))]),h(b,{modelValue:t(n),"onUpdate:modelValue":g[0]||(g[0]=C=>te(n)?n.value=C:null),"font-mono":"",icon:"carbon-direction-right-01 scale-y--100",class:E(t(u)===t(n)?"":t(a).length?"text-green":"text-orange"),onKeydown:oe(_,["enter"])},null,8,["modelValue","class"]),e("div",null,[t(u)!==t(n)?(o(),s(v,{key:0},[Ge,t(a).length?P("",!0):(o(),s("span",He," (no match)"))],64)):(o(),s("span",Xe,"Edit path above to navigate"))])]),h(I,{icon:"carbon-tree-view",text:"Matched Routes",padding:!1},{default:x(()=>[e("div",Je,[t(a).length?(o(),y(R,{key:0,pages:t(a),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])):(o(),s("div",Qe,Ze))])]),_:1}),h(I,{icon:"carbon-tree-view-alt",text:"All Routes",description:`${t(N).length} routes registered in your application`,padding:"pr5"},{default:x(()=>[h(R,{pages:t(N),layouts:t(p)||[],matched:t(d).matched,"matched-pending":t(a),onNavigate:l},null,8,["pages","layouts","matched","matched-pending"])]),_:1},8,["description"]),t(r).length?(o(),y(I,{key:0,icon:"carbon:ibm-watson-studio",text:"Middleware",description:`${t(r).length} middleware registered in your application`,padding:"px13"},{default:x(()=>[e("table",et,[tt,(o(!0),s(v,null,M(t(r),C=>(o(),s("tr",{key:C.path,"h-7":""},[e("td",null,[e("span",ot,$(C.name),1),C.global?(o(),y(S,{key:0,n:"green",title:"Registered at runtime as a global component",textContent:"global"})):P("",!0)]),e("td",null,[h(z,{filepath:C.path},null,8,["filepath"])])]))),128))])]),_:1},8,["description"])):P("",!0)])):(o(),y(U,{key:1,icon:"carbon-tree-view-alt",name:"wizard-pages",title:"Nuxt Routing",description:"Create `./pages/index.vue` to enable routing",actions:[{label:"Learn more",src:"https://nuxt.com/docs/getting-started/routing",attrs:{n:"primary"}},{label:"Enable Routing",async handle(){return("rpc"in c?c.rpc:t(ne)).runWizard(await("ensureDevAuthToken"in c?c.ensureDevAuthToken:t(ae))(),"enablePages")}}]},null,8,["actions"])),h(O,null,{default:x(()=>[h(K)]),_:1})],64)}}});export{pt as default};