PageSourceSearch

https://nuxt-learning-showcase.vercel.app/_nuxt/nuxt-layout.DVOV4PVT.js

js nuxt-learning-showcase.vercel.app collected 2026-10-03 07:25:00 UTC 1,530 bytes, 1 lines download raw bytes

1import{g as i,U as c,P as m,V as h,H as P,r as v,W as b,X as u,Y as L,Z as g,E as k,$ as R,a0 as l,a1 as S,h as d,a2 as j,a3 as O,a4 as T,O as _,a5 as x}from"./entry.kgit3HX3.js";const A=i({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},async setup(e,o){const t=await u[e.name]().then(a=>a.default||a);return()=>l(t,e.layoutProps,o.slots)}}),C=i({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},setup(e,o){const t=k(),a=c(R),n=a===m()?h():a,r=P(()=>{let s=d(e.name)??n.meta.layout??"default";return s&&!(s in u)&&e.fallback&&(s=d(e.fallback)),s}),y=v();o.expose({layoutRef:y});const p=t.deferHydration();if(t.isHydrating){const s=t.hooks.hookOnce("app:error",p);b().beforeEach(s)}return()=>{const s=r.value&&r.value in u,f=n.meta.layoutTransition??L;return g(S,s&&f,{default:()=>l(T,{suspensible:!0,onResolve:()=>{O(p)}},{default:()=>l(B,{layoutProps:j(o.attrs,{ref:y}),key:r.value||void 0,name:r.value,shouldProvide:!e.name,hasTransition:!!f},o.slots)})}).default()}}}),B=i({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean}},setup(e,o){const t=e.name;return e.shouldProvide&&_(x,{isCurrent:a=>t===(a.meta.layout??"default")}),()=>{var a,n;return!t||typeof t=="string"&&!(t in u)?(n=(a=o.slots).default)==null?void 0:n.call(a):l(A,{key:t,layoutProps:e.layoutProps,name:t},o.slots)}}});export{C as _};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.