import{r as a,w as f,A as o,o as i,e as d,f as m,a3 as p,aF as b,M as _}from"./index.737529e8.1750111005555.js";const k={key:0,class:"position-fixed",style:{"z-index":"9999","inset-block-start":"0","inset-inline-end":"0","inset-inline-start":"0"}},I={__name:"AppLoadingIndicator",setup(V,{expose:c}){const s=a(20),e=a(10),l=a(!1),t=a(),n=a(!1);f([e,l],()=>{e.value>80&&l.value&&(e.value=82),r()});function r(){clearInterval(t.value),t.value=setInterval(()=>{e.value+=Math.random()*(15-5)+5,s.value+=Math.random()*(15-5)+6},800)}return c({fallbackHandle:()=>{n.value=!0,e.value=10,l.value=!0,r()},resolveHandle:()=>{l.value=!1,e.value=100,setTimeout(()=>{clearInterval(t.value),e.value=0,s.value=20,n.value=!1},300)}}),(x,u)=>o(n)?(i(),d("div",k,[m(b,{modelValue:o(e),"onUpdate:modelValue":u[0]||(u[0]=v=>p(e)?e.value=v:null),"buffer-value":o(s),color:"#f2af05",height:"6","bg-color":"background"},null,8,["modelValue","buffer-value"])])):_("",!0)}};export{I as _};
