import{__assign as t}from"tslib";import{jsx as i,jsxs as r}from"react/jsx-runtime";import{Box as e,Typography as o,Skeleton as x}from"@mui/material";import l from"./_svg/SparkleIcon.js";var a=function(a){var n=a.isLoading,h=a.mainText,d=a.subText;return n?i(e,t({sx:{position:"absolute",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(241, 245, 249, 0.7)",display:"flex",justifyContent:"center",alignItems:"center",zIndex:1e4}},{children:r(e,t({sx:{width:"85%",maxWidth:"800px",bgcolor:"#FFFFFF",borderRadius:"16px",boxShadow:"0px 10px 40px rgba(0,0,0,0.08)",display:"flex",p:5,gap:4,border:"1px solid #E2E8F0"}},{children:[r(e,t({sx:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"}},{children:[i(e,t({sx:{color:"#8B5CF6",mb:2}},{children:i(l,{})})),i(o,t({variant:"h6",sx:{fontWeight:600,color:"#0F172A",mb:1,fontSize:"1.1rem"}},{children:h})),d&&i(o,t({variant:"body2",sx:{color:"#64748B",lineHeight:1.5}},{children:d}))]})),r(e,t({sx:{flex:1.2,bgcolor:"#F8FAFC",borderRadius:"12px",p:3,display:"flex",flexDirection:"column",gap:1.5,border:"1px solid #F1F5F9"}},{children:[i(x,{variant:"text",sx:{width:"80%",height:"12px",bgcolor:"#E2E8F0"}}),i(x,{variant:"text",sx:{width:"100%",height:"12px",bgcolor:"#E2E8F0"}}),i(x,{variant:"text",sx:{width:"90%",height:"12px",bgcolor:"#E2E8F0",mb:1}}),i(x,{variant:"text",sx:{width:"85%",height:"12px",bgcolor:"#E2E8F0"}}),i(x,{variant:"text",sx:{width:"95%",height:"12px",bgcolor:"#E2E8F0"}}),i(x,{variant:"text",sx:{width:"70%",height:"12px",bgcolor:"#E2E8F0",mb:1}}),i(x,{variant:"text",sx:{width:"90%",height:"12px",bgcolor:"#E2E8F0"}}),i(x,{variant:"text",sx:{width:"60%",height:"12px",bgcolor:"#E2E8F0"}})]}))]}))})):null};export{a as default};
//# sourceMappingURL=VariantLoadingOverlay.js.map
