nuxt-graphql-middleware 5.0.0-alpha.9 → 5.1.0

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 (72) hide show
  1. package/README.md +101 -19
  2. package/dist/client/200.html +8 -8
  3. package/dist/client/404.html +8 -8
  4. package/dist/client/_nuxt/{C9pb_2rp.js → CPiV13Ng.js} +2 -2
  5. package/dist/client/_nuxt/CQCiRbEL.js +1 -0
  6. package/dist/client/_nuxt/CYI2eNUl.js +1 -0
  7. package/dist/client/_nuxt/UAIVpYSK.js +25 -0
  8. package/dist/client/_nuxt/builds/latest.json +1 -1
  9. package/dist/client/_nuxt/builds/meta/48332277-c4ad-4d6a-8f09-7a58a109c32d.json +1 -0
  10. package/dist/client/_nuxt/error-404.Bbd2eCoc.css +1 -0
  11. package/dist/client/_nuxt/error-500.Cd2cwFc3.css +1 -0
  12. package/dist/client/_nuxt/{BLvMh1Ga.js → u1b7LyOw.js} +1 -1
  13. package/dist/client/index.html +8 -8
  14. package/dist/client-options.d.mts +6 -0
  15. package/dist/client-options.mjs +5 -0
  16. package/dist/module.d.mts +63 -181
  17. package/dist/module.json +4 -4
  18. package/dist/module.mjs +435 -92
  19. package/dist/runtime/components/CodeFrame.vue +19 -28
  20. package/dist/runtime/components/CodeFrame.vue.d.ts +7 -0
  21. package/dist/runtime/components/DevModeOverlay.vue +25 -33
  22. package/dist/runtime/components/DevModeOverlay.vue.d.ts +3 -0
  23. package/dist/runtime/components/ErrorExtensions.vue +9 -11
  24. package/dist/runtime/components/ErrorExtensions.vue.d.ts +5 -0
  25. package/dist/runtime/components/ErrorGroup.vue +28 -39
  26. package/dist/runtime/components/ErrorGroup.vue.d.ts +9 -0
  27. package/dist/runtime/composables/nuxtApp.d.ts +30 -2
  28. package/dist/runtime/composables/nuxtApp.js +66 -24
  29. package/dist/runtime/composables/useAsyncGraphqlQuery.js +28 -25
  30. package/dist/runtime/composables/useGraphqlMutation.d.ts +1 -1
  31. package/dist/runtime/composables/useGraphqlMutation.js +11 -16
  32. package/dist/runtime/composables/useGraphqlQuery.d.ts +1 -1
  33. package/dist/runtime/composables/useGraphqlQuery.js +7 -25
  34. package/dist/runtime/composables/useGraphqlUploadMutation.js +1 -1
  35. package/dist/runtime/helpers/ClientCache.d.ts +1 -0
  36. package/dist/runtime/helpers/ClientCache.js +12 -0
  37. package/dist/runtime/helpers/composables.d.ts +8 -0
  38. package/dist/runtime/helpers/composables.js +27 -0
  39. package/dist/runtime/helpers/index.d.ts +0 -4
  40. package/dist/runtime/helpers/index.js +0 -13
  41. package/dist/runtime/helpers/queryEncoding.d.ts +11 -0
  42. package/dist/runtime/helpers/queryEncoding.js +89 -0
  43. package/dist/runtime/plugins/devMode.js +2 -1
  44. package/dist/runtime/server/api/mutation.js +2 -1
  45. package/dist/runtime/server/api/query.js +7 -8
  46. package/dist/runtime/server/utils/doGraphqlRequest.js +5 -4
  47. package/dist/runtime/server/utils/useGraphqlQuery.js +2 -2
  48. package/dist/runtime/settings/index.d.ts +1 -0
  49. package/dist/runtime/settings/index.js +1 -0
  50. package/dist/runtime/types.d.ts +2 -2
  51. package/dist/server-options.d.mts +8 -0
  52. package/dist/server-options.mjs +5 -0
  53. package/dist/shared/nuxt-graphql-middleware.-BeiPV4H.d.mts +566 -0
  54. package/dist/types.d.mts +1 -7
  55. package/dist/utils.d.mts +15 -0
  56. package/dist/utils.mjs +18 -0
  57. package/package.json +36 -32
  58. package/dist/client/_nuxt/CBwfSTyQ.js +0 -1
  59. package/dist/client/_nuxt/CPyoLiCY.js +0 -1
  60. package/dist/client/_nuxt/VpkRx2_e.js +0 -25
  61. package/dist/client/_nuxt/builds/meta/826a43da-d42c-4fbf-8dfd-2572141eaf8f.json +0 -1
  62. package/dist/client/_nuxt/error-404.BJkSn6RI.css +0 -1
  63. package/dist/client/_nuxt/error-500.TOCKLquH.css +0 -1
  64. package/dist/module.cjs +0 -5
  65. package/dist/module.d.ts +0 -210
  66. package/dist/runtime/clientOptions/index.d.ts +0 -2
  67. package/dist/runtime/clientOptions/index.js +0 -3
  68. package/dist/runtime/serverOptions/defineGraphqlServerOptions.d.ts +0 -4
  69. package/dist/runtime/serverOptions/defineGraphqlServerOptions.js +0 -3
  70. package/dist/runtime/serverOptions/index.d.ts +0 -2
  71. package/dist/runtime/serverOptions/index.js +0 -2
  72. package/dist/types.d.ts +0 -7
package/package.json CHANGED
@@ -1,39 +1,42 @@
1
1
  {
2
2
  "name": "nuxt-graphql-middleware",
3
- "version": "5.0.0-alpha.9",
3
+ "version": "5.1.0",
4
4
  "description": "Module to perform GraphQL requests as a server middleware.",
5
5
  "repository": {
6
6
  "type": "git",
7
7
  "url": "git+https://github.com/dulnan/nuxt-graphql-middleware.git"
8
8
  },
9
- "license": "MIT",
10
9
  "type": "module",
11
10
  "exports": {
12
11
  ".": {
13
- "import": {
14
- "types": "./dist/types.d.ts",
15
- "default": "./dist/module.mjs"
16
- },
17
- "require": {
18
- "types": "./dist/types.d.ts",
19
- "default": "./dist/module.cjs"
20
- }
21
- },
22
- "./dist/runtime/serverOptions": {
23
- "import": "./dist/runtime/serverOptions/index.js",
24
- "types": "./dist/runtime/serverOptions/index.d.ts"
12
+ "types": "./dist/types.d.mts",
13
+ "import": "./dist/module.mjs"
25
14
  },
26
- "./dist/runtime/clientOptions": {
27
- "import": "./dist/runtime/clientOptions/index.js",
28
- "types": "./dist/runtime/clientOptions/index.d.ts"
15
+ "./utils": "./dist/utils.mjs",
16
+ "./client-options": "./dist/client-options.mjs",
17
+ "./server-options": "./dist/server-options.mjs"
18
+ },
19
+ "main": "./dist/module.mjs",
20
+ "typesVersions": {
21
+ "*": {
22
+ ".": [
23
+ "./dist/types.d.mts"
24
+ ],
25
+ "utils": [
26
+ "./dist/utils.d.mts"
27
+ ],
28
+ "client-options": [
29
+ "./dist/client-options.d.mts"
30
+ ],
31
+ "server-options": [
32
+ "./dist/server-options.d.mts"
33
+ ]
29
34
  }
30
35
  },
31
- "main": "./dist/module.cjs",
32
- "module": "./dist/module.mjs",
33
- "types": "./dist/types.d.ts",
34
36
  "files": [
35
37
  "dist"
36
38
  ],
39
+ "license": "MIT",
37
40
  "scripts": {
38
41
  "prepack": "npm run styles:build && nuxt-module-build build && npm run client:build",
39
42
  "dev": "nuxi dev playground --trace-warnings",
@@ -41,15 +44,16 @@
41
44
  "debug": "nuxi dev playground --inspect",
42
45
  "dev:build": "nuxi build playground",
43
46
  "dev:layers:build": "nuxi build playground-layers",
44
- "dev:prepare": "MODULE_BUILD=true nuxt-module-build build --stub && MODULE_BUILD=true nuxt-module-build prepare && nuxi prepare playground-layers && nuxi prepare playground",
47
+ "dev:prepare": "PLAYGROUND_MODULE_BUILD=true nuxt-module-build build --stub && PLAYGROUND_MODULE_BUILD=true nuxt-module-build prepare && nuxi prepare playground-layers && nuxi prepare playground",
45
48
  "dev:start": "node ./playground/.output/server/index.mjs",
46
49
  "client:build": "nuxi generate client",
47
50
  "client:dev": "nuxi dev client --port 3300",
48
- "typedoc": "typedoc --plugin typedoc-plugin-markdown --out foobar",
49
51
  "typecheck": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit && cd ../playground-layers && vue-tsc --noEmit",
50
52
  "docs:dev": "vitepress dev docs --port 5000",
51
53
  "docs:build": "vitepress build docs",
52
54
  "docs:serve": "vitepress serve docs --port 5000",
55
+ "typedoc": "./scripts/typedoc.sh",
56
+ "typedoc:generate": "typedoc --tsconfig tsconfig.typedoc.json",
53
57
  "cypress": "cypress run --e2e",
54
58
  "cypress:open": "cypress open --e2e",
55
59
  "lint": "eslint ./src",
@@ -69,25 +73,25 @@
69
73
  "@graphql-codegen/schema-ast": "^4.1.0",
70
74
  "@graphql-tools/utils": "^10.8.6",
71
75
  "@nuxt/devtools-kit": "^2.3.1",
72
- "graphql-typescript-deluxe": "^0.0.8",
76
+ "graphql-typescript-deluxe": "^0.0.14",
73
77
  "minisearch": "^7.1.2",
74
78
  "picocolors": "^1.1.1"
75
79
  },
76
80
  "devDependencies": {
77
81
  "@iconify-json/carbon": "^1.2.8",
78
- "@nuxt/devtools": "^2.3.1",
79
- "@nuxt/devtools-ui-kit": "^2.3.1",
82
+ "@nuxt/devtools": "^2.4.0",
83
+ "@nuxt/devtools-ui-kit": "^2.4.0",
80
84
  "@nuxt/eslint": "^1.2.0",
81
- "@nuxt/kit": "^3.16.1",
82
- "@nuxt/module-builder": "^0.8.4",
83
- "@nuxt/schema": "^3.16.1",
85
+ "@nuxt/kit": "^3.17.2",
86
+ "@nuxt/module-builder": "^1.0.1",
87
+ "@nuxt/schema": "^3.17.2",
84
88
  "@types/micromatch": "^4.0.9",
85
89
  "cypress": "^13.12.0",
86
90
  "eslint": "^9.23.0",
87
91
  "eslint-config-prettier": "^10.1.1",
88
92
  "eslint-plugin-prettier": "^5.2.3",
89
93
  "mermaid": "^11.5.0",
90
- "nuxt": "^3.16.1",
94
+ "nuxt": "^3.17.2",
91
95
  "postcss": "^8.5.3",
92
96
  "postcss-cli": "^11.0.1",
93
97
  "postcss-import": "^16.1.0",
@@ -98,10 +102,10 @@
98
102
  "tailwindcss": "^3.4.17",
99
103
  "tailwindcss-scoped-preflight": "^3.4.10",
100
104
  "typedoc": "^0.28.1",
101
- "typedoc-plugin-markdown": "^4.5.2",
105
+ "typedoc-plugin-markdown": "^4.6.1",
106
+ "typedoc-vitepress-theme": "^1.1.2",
102
107
  "vitepress": "^1.6.3",
103
108
  "vitepress-plugin-mermaid": "^2.0.17",
104
- "vitest": "^1.6.0",
105
- "vue-tsc": "^2.2.8"
109
+ "vitest": "^1.6.0"
106
110
  }
107
111
  }
@@ -1 +0,0 @@
1
- import{_ as s,t as a,v as i,x as e,y as o}from"./VpkRx2_e.js";import{u}from"./BLvMh1Ga.js";const l={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},c={class:"max-w-520px text-center"},d=["textContent"],p=["textContent"],f={__name:"error-500",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:500},statusMessage:{type:String,default:"Server error"},description:{type:String,default:"This page is temporarily unavailable."}},setup(t){const r=t;return u({title:`${r.statusCode} - ${r.statusMessage} | ${r.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(g,n)=>(i(),a("div",l,[n[0]||(n[0]=e("div",{class:"-bottom-1/2 fixed h-1/2 left-0 right-0 spotlight"},null,-1)),e("div",c,[e("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:o(t.statusCode)},null,8,d),e("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:o(t.description)},null,8,p)])]))}},b=s(f,[["__scopeId","data-v-9ae14d19"]]);export{b as default};
@@ -1 +0,0 @@
1
- import{u as P,d as B,r as q,a as N,o as I,b as U,c as T,e as H,f as V,h as A,g as L,p as F,i as z,j as x,k as O,l as M,m as D,n as $,w as W,q as G,s as K,_ as Q,t as J,v as X,x as S,y as C,z as Y,A as Z,B as ee}from"./VpkRx2_e.js";import{u as te}from"./BLvMh1Ga.js";async function E(t,n=P()){const{path:d,matched:h}=n.resolve(t);if(!h.length||(n._routePreloaded||(n._routePreloaded=new Set),n._routePreloaded.has(d)))return;const v=n._preloadPromises||(n._preloadPromises=[]);if(v.length>4)return Promise.all(v).then(()=>E(t,n));n._routePreloaded.add(d);const e=h.map(a=>{var u;return(u=a.components)==null?void 0:u.default}).filter(a=>typeof a=="function");for(const a of e){const u=Promise.resolve(a()).catch(()=>{}).finally(()=>v.splice(v.indexOf(u)));v.push(u)}await Promise.all(v)}const ne=(...t)=>t.find(n=>n!==void 0);function ae(t){const n=t.componentName||"NuxtLink";function d(e){return typeof e=="string"&&e.startsWith("#")}function h(e,a){if(!e||t.trailingSlash!=="append"&&t.trailingSlash!=="remove")return e;if(typeof e=="string")return j(e,t.trailingSlash);const u="path"in e&&e.path!==void 0?e.path:a(e).path;return{...e,name:void 0,path:j(u,t.trailingSlash)}}function v(e){const a=P(),u=D(),s=x(()=>!!e.target&&e.target!=="_self"),p=x(()=>{const f=e.to||e.href||"";return typeof f=="string"&&O(f,{acceptRelative:!0})}),_=L("RouterLink"),b=typeof _!="string"?_.useLink:void 0,m=x(()=>{if(e.external)return!0;const f=e.to||e.href||"";return typeof f=="object"?!1:f===""||p.value}),r=x(()=>{const f=e.to||e.href||"";return m.value?f:h(f,a.resolve)}),c=m.value||b==null?void 0:b({...e,to:r}),y=x(()=>{var f;if(!r.value||p.value||d(r.value))return r.value;if(m.value){const k=typeof r.value=="object"&&"path"in r.value?z(r.value):r.value,w=typeof k=="object"?a.resolve(k).href:k;return h(w,a.resolve)}return typeof r.value=="object"?((f=a.resolve(r.value))==null?void 0:f.href)??null:h(M(u.app.baseURL,r.value),a.resolve)});return{to:r,hasTarget:s,isAbsoluteUrl:p,isExternal:m,href:y,isActive:(c==null?void 0:c.isActive)??x(()=>r.value===a.currentRoute.value.path),isExactActive:(c==null?void 0:c.isExactActive)??x(()=>r.value===a.currentRoute.value.path),route:(c==null?void 0:c.route)??x(()=>a.resolve(r.value)),async navigate(f){await $(y.value,{replace:e.replace,external:m.value||s.value})}}}return B({name:n,props:{to:{type:[String,Object],default:void 0,required:!1},href:{type:[String,Object],default:void 0,required:!1},target:{type:String,default:void 0,required:!1},rel:{type:String,default:void 0,required:!1},noRel:{type:Boolean,default:void 0,required:!1},prefetch:{type:Boolean,default:void 0,required:!1},prefetchOn:{type:[String,Object],default:void 0,required:!1},noPrefetch:{type:Boolean,default:void 0,required:!1},activeClass:{type:String,default:void 0,required:!1},exactActiveClass:{type:String,default:void 0,required:!1},prefetchedClass:{type:String,default:void 0,required:!1},replace:{type:Boolean,default:void 0,required:!1},ariaCurrentValue:{type:String,default:void 0,required:!1},external:{type:Boolean,default:void 0,required:!1},custom:{type:Boolean,default:void 0,required:!1}},useLink:v,setup(e,{slots:a}){const u=P(),{to:s,href:p,navigate:_,isExternal:b,hasTarget:m,isAbsoluteUrl:r}=v(e),c=q(!1),y=q(null),f=o=>{var l;y.value=e.custom?(l=o==null?void 0:o.$el)==null?void 0:l.nextElementSibling:o==null?void 0:o.$el};function k(o){var l,i;return!c.value&&(typeof e.prefetchOn=="string"?e.prefetchOn===o:((l=e.prefetchOn)==null?void 0:l[o])??((i=t.prefetchOn)==null?void 0:i[o]))&&(e.prefetch??t.prefetch)!==!1&&e.noPrefetch!==!0&&e.target!=="_blank"&&!se()}async function w(o=N()){if(c.value)return;c.value=!0;const l=typeof s.value=="string"?s.value:b.value?z(s.value):u.resolve(s.value).fullPath,i=b.value?new URL(l,window.location.href).href:l;await Promise.all([o.hooks.callHook("link:prefetch",i).catch(()=>{}),!b.value&&!m.value&&E(s.value,u).catch(()=>{})])}if(k("visibility")){const o=N();let l,i=null;I(()=>{const g=oe();U(()=>{l=T(()=>{var R;(R=y==null?void 0:y.value)!=null&&R.tagName&&(i=g.observe(y.value,async()=>{i==null||i(),i=null,await w(o)}))})})}),H(()=>{l&&V(l),i==null||i(),i=null})}return()=>{var i;if(!b.value&&!m.value&&!d(s.value)){const g={ref:f,to:s.value,activeClass:e.activeClass||t.activeClass,exactActiveClass:e.exactActiveClass||t.exactActiveClass,replace:e.replace,ariaCurrentValue:e.ariaCurrentValue,custom:e.custom};return e.custom||(k("interaction")&&(g.onPointerenter=w.bind(null,void 0),g.onFocus=w.bind(null,void 0)),c.value&&(g.class=e.prefetchedClass||t.prefetchedClass),g.rel=e.rel||void 0),A(L("RouterLink"),g,a.default)}const o=e.target||null,l=ne(e.noRel?"":e.rel,t.externalRelAttribute,r.value||m.value?"noopener noreferrer":"")||null;return e.custom?a.default?a.default({href:p.value,navigate:_,prefetch:w,get route(){if(!p.value)return;const g=new URL(p.value,window.location.href);return{path:g.pathname,fullPath:g.pathname,get query(){return F(g.search)},hash:g.hash,params:{},name:void 0,matched:[],redirectedFrom:void 0,meta:{},href:p.value}},rel:l,target:o,isExternal:b.value||m.value,isActive:!1,isExactActive:!1}):null:A("a",{ref:y,href:p.value||null,rel:l,target:o},(i=a.default)==null?void 0:i.call(a))}}})}const re=ae(K);function j(t,n){const d=n==="append"?W:G;return O(t)&&!t.startsWith("http")?t:d(t,!0)}function oe(){const t=N();if(t._observer)return t._observer;let n=null;const d=new Map,h=(e,a)=>(n||(n=new IntersectionObserver(u=>{for(const s of u){const p=d.get(s.target);(s.isIntersecting||s.intersectionRatio>0)&&p&&p()}})),d.set(e,a),n.observe(e),()=>{d.delete(e),n==null||n.unobserve(e),d.size===0&&(n==null||n.disconnect(),n=null)});return t._observer={observe:h}}const ie=/2g/;function se(){const t=navigator.connection;return!!(t&&(t.saveData||ie.test(t.effectiveType)))}const le={class:"antialiased bg-white dark:bg-black dark:text-white font-sans grid min-h-screen overflow-hidden place-content-center text-black"},ue={class:"max-w-520px text-center z-20"},ce=["textContent"],fe=["textContent"],de={class:"flex items-center justify-center w-full"},he={__name:"error-404",props:{appName:{type:String,default:"Nuxt"},version:{type:String,default:""},statusCode:{type:Number,default:404},statusMessage:{type:String,default:"Not Found"},description:{type:String,default:"Sorry, the page you are looking for could not be found."},backHome:{type:String,default:"Go back home"}},setup(t){const n=t;return te({title:`${n.statusCode} - ${n.statusMessage} | ${n.appName}`,script:[{children:`!function(){const e=document.createElement("link").relList;if(!(e&&e.supports&&e.supports("modulepreload"))){for(const e of document.querySelectorAll('link[rel="modulepreload"]'))r(e);new MutationObserver((e=>{for(const o of e)if("childList"===o.type)for(const e of o.addedNodes)"LINK"===e.tagName&&"modulepreload"===e.rel&&r(e)})).observe(document,{childList:!0,subtree:!0})}function r(e){if(e.ep)return;e.ep=!0;const r=function(e){const r={};return e.integrity&&(r.integrity=e.integrity),e.referrerPolicy&&(r.referrerPolicy=e.referrerPolicy),"use-credentials"===e.crossOrigin?r.credentials="include":"anonymous"===e.crossOrigin?r.credentials="omit":r.credentials="same-origin",r}(e);fetch(e.href,r)}}();`}],style:[{children:'*,:after,:before{border-color:var(--un-default-border-color,#e5e7eb);border-style:solid;border-width:0;box-sizing:border-box}:after,:before{--un-content:""}html{line-height:1.5;-webkit-text-size-adjust:100%;font-family:ui-sans-serif,system-ui,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;font-feature-settings:normal;font-variation-settings:normal;-moz-tab-size:4;tab-size:4;-webkit-tap-highlight-color:transparent}body{line-height:inherit;margin:0}h1{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}h1,p{margin:0}*,:after,:before{--un-rotate:0;--un-rotate-x:0;--un-rotate-y:0;--un-rotate-z:0;--un-scale-x:1;--un-scale-y:1;--un-scale-z:1;--un-skew-x:0;--un-skew-y:0;--un-translate-x:0;--un-translate-y:0;--un-translate-z:0;--un-pan-x: ;--un-pan-y: ;--un-pinch-zoom: ;--un-scroll-snap-strictness:proximity;--un-ordinal: ;--un-slashed-zero: ;--un-numeric-figure: ;--un-numeric-spacing: ;--un-numeric-fraction: ;--un-border-spacing-x:0;--un-border-spacing-y:0;--un-ring-offset-shadow:0 0 transparent;--un-ring-shadow:0 0 transparent;--un-shadow-inset: ;--un-shadow:0 0 transparent;--un-ring-inset: ;--un-ring-offset-width:0px;--un-ring-offset-color:#fff;--un-ring-width:0px;--un-ring-color:rgba(147,197,253,.5);--un-blur: ;--un-brightness: ;--un-contrast: ;--un-drop-shadow: ;--un-grayscale: ;--un-hue-rotate: ;--un-invert: ;--un-saturate: ;--un-sepia: ;--un-backdrop-blur: ;--un-backdrop-brightness: ;--un-backdrop-contrast: ;--un-backdrop-grayscale: ;--un-backdrop-hue-rotate: ;--un-backdrop-invert: ;--un-backdrop-opacity: ;--un-backdrop-saturate: ;--un-backdrop-sepia: }'}]}),(d,h)=>{const v=re;return X(),J("div",le,[h[0]||(h[0]=S("div",{class:"fixed left-0 right-0 spotlight z-10"},null,-1)),S("div",ue,[S("h1",{class:"font-medium mb-8 sm:text-10xl text-8xl",textContent:C(t.statusCode)},null,8,ce),S("p",{class:"font-light leading-tight mb-16 px-8 sm:px-0 sm:text-4xl text-xl",textContent:C(t.description)},null,8,fe),S("div",de,[Y(v,{to:"/",class:"cursor-pointer gradient-border px-4 py-2 sm:px-6 sm:py-3 sm:text-xl text-md"},{default:Z(()=>[ee(C(t.backHome),1)]),_:1})])])])}}},ge=Q(he,[["__scopeId","data-v-460438a1"]]);export{ge as default};