vendor: 4,322 bytes, line 1
1import{s as ne,t as ae}from"./DtMaxPh6.js";import{j as k,p as q,Y as se,d as R}from"./C-qj6MZJ.js";import{z as P,x as ue,C as le,W as ie,aE as re,h as v,E as ce,s as D,q as E,S as w,m as ve,v as F}from"./CEfunCRU.js";const V=Symbol.for("vuetify:layout"),U=Symbol.for("vuetify:layout-item"),Z=1e3,ge=q({overlaps:{type:Array,default:()=>[]},fullHeight:Boolean},"layout"),he=q({name:{type:String},order:{type:[Number,String],default:0},absolute:Boolean},"layout-item");function Ie(){const s=P(V);if(!s)throw new Error("[Vuetify] Could not find injected layout");return{getLayoutItem:s.getLayoutItem,mainRect:s.mainRect,mainStyles:s.mainStyles}}function xe(s){const u=P(V);if(!u)throw new Error("[Vuetify] Could not find injected layout");const d=s.id??`layout-item-${le()}`,i=k("useLayoutItem");F(U,{id:d});const n=D(!1);ie(()=>n.value=!0),re(()=>n.value=!1);const{layoutItemStyles:r,layoutItemScrimStyles:c}=u.register(i,{...s,active:v(()=>n.value?!1:s.active.value),id:d});return ce(()=>u.unregister(d)),{layoutItemStyles:r,layoutRect:u.layoutRect,layoutItemScrimStyles:c}}const de=(s,u,d,i)=>{let n={top:0,left:0,right:0,bottom:0};const r=[{id:"",layer:{...n}}];for(const c of s){const y=u.get(c),g=d.get(c),$=i.get(c);if(!y||!g||!$)continue;const h={...n,[y.value]:parseInt(n[y.value],10)+($.value?parseInt(g.value,10):0)};r.push({id:c,layer:h}),n=h}return r};function be(s){const u=P(V,null),d=v(()=>u?u.rootZIndex.value-100:Z),i=ve([]),n=w(new Map),r=w(new Map),c=w(new Map),y=w(new Map),g=w(new Map),{resizeRef:$,contentRect:h}=ne(),W=v(()=>{const t=new Map,l=s.overlaps??[];for(const e of l.filter(a=>a.includes(":"))){const[a,o]=e.split(":");if(!i.value.includes(a)||!i.value.includes(o))continue;const m=n.get(a),f=n.get(o),S=r.get(a),z=r.get(o);!m||!f||!S||!z||(t.set(o,{position:m.value,amount:parseInt(S.value,10)}),t.set(a,{position:f.value,amount:-parseInt(z.value,10)}))}return t}),I=v(()=>{const t=[...new Set([...c.values()].map(e=>e.value))].sort((e,a)=>e-a),l=[];for(const e of t){const a=i.value.filter(o=>c.get(o)?.value===e);l.push(...a)}return de(l,n,r,y)}),j=v(()=>!Array.from(g.values()).some(t=>t.value)),x=v(()=>I.value[I.value.length-1].layer),X=E(()=>({"--v-layout-left":R(x.value.left),"--v-layout-right":R(x.value.right),"--v-layout-top":R(x.value.top),"--v-layout-bottom":R(x.value.bottom),...j.value?void 0:{transition:"none"}})),b=v(()=>I.value.slice(1).map((t,l)=>{let{id:e}=t;const{layer:a}=I.value[l],o=r.get(e),m=n.get(e);return{id:e,...a,size:Number(o.value),position:m.value}})),H=t=>b.value.find(l=>l.id===t),Y=k("createLayout"),T=D(!1);ue(()=>{T.value=!0}),F(V,{register:(t,l)=>{let{id:e,order:a,position:o,layoutSize:m,elementSize:f,active:S,disableTransitions:z,absolute:J}=l;c.set(e,a),n.set(e,o),r.set(e,m),y.set(e,S),z&&g.set(e,z);const B=se(U,Y?.vnode).indexOf(t);B>-1?i.value.splice(B,0,e):i.value.push(e);const K=v(()=>b.value.findIndex(L=>L.id===e)),M=v(()=>d.value+I.value.length*2-K.value*2),Q=v(()=>{const L=o.value==="left"||o.value==="right",O=o.value==="right",te=o.value==="bottom",A=f.value??m.value,oe=A===0?"%":"px",N={[o.value]:0,zIndex:M.value,transform:`translate${L?"X":"Y"}(${(S.value?0:-(A===0?100:A))*(O||te?-1:1)}${oe})`,position:J.value||d.value!==Z?"absolute":"fixed",...j.value?void 0:{transition:"none"}};if(!T.value)return N;const p=b.value[K.value],C=W.value.get(e);return C&&(p[C.position]+=C.amount),{...N,height:L?`calc(100% - ${p.top}px - ${p.bottom}px)`:f.value?`${f.value}px`:void 0,left:O?void 0:`${p.left}px`,right:O?`${p.right}px`:void 0,top:o.value!=="bottom"?`${p.top}px`:void 0,bottom:o.value!=="top"?`${p.bottom}px`:void 0,width:L?f.value?`${f.value}px`:void 0:`calc(100% - ${p.left}px - ${p.right}px)`}}),ee=v(()=>({zIndex:M.value-1}));return{layoutItemStyles:Q,layoutItemScrimStyles:ee,zIndex:M}},unregister:t=>{c.delete(t),n.delete(t),r.delete(t),y.delete(t),g.delete(t),i.value=i.value.filter(l=>l!==t)},mainRect:x,mainStyles:X,getLayoutItem:H,items:b,layoutRect:h,rootZIndex:d});const _=E(()=>["v-layout",{"v-layout--full-height":s.fullHeight}]),G=E(()=>({zIndex:u?d.value:void 0,position:u?"relative":void 0,overflow:u?"hidden":void 0}));return{layoutClasses:_,layoutStyles:G,getLayoutItem:H,items:b,layoutRect:h,layoutRef:$}}const Se=ae("v-spacer","div","VSpacer");export{Se as V,V as a,xe as b,be as c,ge as d,he as m,Ie as u};
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.