import{$ as e,n as t,t as n}from"./Fade-Bj1YUcWe.js";import{t as r}from"./Box-BoFhqo9n.js";import{t as i}from"./CircularProgress-zVZJTwOj.js";var a=e();function o({text:e=`加载中...`,fullScreen:o=!1}){return(0,a.jsx)(n,{in:!0,timeout:300,children:(0,a.jsxs)(r,{sx:{display:`flex`,flexDirection:`column`,alignItems:`center`,justifyContent:`center`,minHeight:o?`100dvh`:`30dvh`,width:`100%`,gap:2},children:[(0,a.jsx)(i,{size:48,thickness:4,sx:{color:`primary.main`}}),(0,a.jsx)(t,{color:`text.secondary`,children:e})]})})}function s(){return(0,a.jsx)(o,{fullScreen:!0,text:`页面加载中...`})}export{s as n,o as t};