import{ab as f,ac as p,aT as k,i as d,ae as h,b2 as g,af as b,d as V,r as l,M as v,f as C,m as y,j as u,g as P,A as T,cs as _,bs as S,z as w,bu as B,dC as N}from"./index-B2MTLsCS.js";const x=p({withBackground:Boolean,...b(),...g(),...h()},"VThemeProvider"),A=f()({name:"VThemeProvider",props:x(),setup(t,r){let{slots:a}=r;const{themeClasses:e}=k(t);return()=>{var s;return t.withBackground?d(t.tag,{class:["v-theme-provider",e.value,t.class],style:t.style},{default:()=>{var o;return[(o=a.default)==null?void 0:o.call(a)]}}):(s=a.default)==null?void 0:s.call(a)}}}),L={key:0,class:"position-fixed",style:{"z-index":"9999","inset-block-start":"0","inset-inline":"0 0"}},z=V({__name:"AppLoadingIndicator",setup(t,{expose:r}){const a=l(20),e=l(10),s=l(!1),o=l(),n=l(!1);v([e,s],()=>{e.value>80&&s.value&&(e.value=82),i()});function i(){clearInterval(o.value),o.value=setInterval(()=>{e.value+=Math.random()*10+5,a.value+=Math.random()*10+6},800)}return r({fallbackHandle:()=>{n.value=!0,e.value=10,s.value=!0,i()},resolveHandle:()=>{s.value=!1,e.value=100,setTimeout(()=>{clearInterval(o.value),e.value=0,a.value=20,n.value=!1},300)}}),(j,c)=>u(n)?(P(),C("div",L,[d(_,{modelValue:u(e),"onUpdate:modelValue":c[0]||(c[0]=m=>T(e)?e.value=m:null),"buffer-value":u(a),color:"primary",height:"2","bg-color":"background"},null,8,["modelValue","buffer-value"])])):y("",!0)}}),F=()=>{const t=S(),r=w(()=>({verticalNavAttrs:{wrapper:B(A,{tag:"div"}),wrapperProps:{withBackground:!0,theme:t.isVerticalNavSemiDark&&t.appContentLayoutNav===N.Vertical?"dark":void 0}}}));return{injectSkinClasses:()=>{if(typeof document<"u"){const e=document.body.classList,s=o=>`skin--${o}`;v(()=>t.skin,(o,n)=>{e.remove(s(n)),e.add(s(o))},{immediate:!0})}},layoutAttrs:r}};export{z as _,F as u};