PageSourceSearch

https://www.weleda.es/_nuxt/XdDVWy_i.js

js weleda.es collected 2026-10-02 10:05:44 UTC 2,067 bytes, 1 lines download raw bytes

1import{t as f,v as _,x as L,u as R,y as g,z as j,A as c,B as h,C as w,D as S,p as T,E as P,F as A,G as B,H as d,m as O,I as E,S as F,P as p,J as v,L as C,K as H}from"./weQc1KCP.js";const b=B,M=f({name:"LayoutLoader",inheritAttrs:!1,props:{name:String,layoutProps:Object},setup(t,s){return()=>d(c[t.name],t.layoutProps,s.slots)}}),G={name:{type:[String,Boolean,Object],default:null},fallback:{type:[String,Object],default:null}},W=f({name:"NuxtLayout",inheritAttrs:!1,props:G,setup(t,s){const e=_(),n=L(p),o=!n||n===R()?g():n,a=T(()=>{let r=P(t.name)??o?.meta.layout??b(o?.path).appLayout??"default";return r&&!(r in c)&&t.fallback&&(r=P(t.fallback)),r}),i=A();s.expose({layoutRef:i});const u=e.deferHydration();if(e.isHydrating){const r=e.hooks.hookOnce("app:error",u),l=j().beforeEach(()=>{r(),l()})}let m;return()=>{const l=!!a.value&&a.value in c&&!!(o?.meta.layoutTransition??h),N=l&&w([o?.meta.layoutTransition,h,{onBeforeLeave(){e["~transitionPromise"]=new Promise(y=>{e["~transitionFinish"]=y})},onAfterLeave(){e["~transitionFinish"]?.(),delete e["~transitionFinish"],delete e["~transitionPromise"]}}]),x=m;return m=a.value,S(N,{default:()=>d(F,{suspensible:!0,onResolve:async()=>{await E(u)}},{default:()=>d(I,{layoutProps:O(s.attrs,o.meta.layoutProps??{},{ref:i}),key:a.value||void 0,name:a.value,shouldProvide:!t.name,isRenderingNewLayout:y=>y!==x&&y===a.value,hasTransition:l},s.slots)})}).default()}}}),I=f({name:"NuxtLayoutProvider",inheritAttrs:!1,props:{name:{type:[String,Boolean]},layoutProps:{type:Object},hasTransition:{type:Boolean},shouldProvide:{type:Boolean},isRenderingNewLayout:{type:Function,required:!0}},setup(t,s){const e=t.name;t.shouldProvide&&v(C,{isCurrent:o=>e===!1||e===(o.meta.layout??b(o.path).appLayout??"default")});const n=L(p);if(n&&n===R()){const o=g(),a={};for(const i in o){const u=i;Object.defineProperty(a,u,{enumerable:!0,get:()=>t.isRenderingNewLayout(t.name)?o[u]:n[u]})}v(p,H(a))}return()=>!e||typeof e=="string"&&!(e in c)?s.slots.default?.():d(M,{key:e,layoutProps:t.layoutProps,name:e},s.slots)}});export{W 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.