let e=require("vue"),t=require("@antsoo-lib/icons");var n=e=>{e&&(e.style.width=`0px`,e.style.opacity=`0`,e.style.transform=`scale(0)`)},r=t=>{(0,e.nextTick)(()=>{t&&(t.style.width=`${t.scrollWidth}px`,t.style.opacity=`1`,t.style.transform=`scale(1)`)})},i=e=>{e&&e.style&&(e.style.width=null,e.style.opacity=null,e.style.transform=null)},a=(0,e.defineComponent)({compatConfig:{MODE:3},name:`LoadingIcon`,props:{prefixCls:String,loading:[Boolean,Object],existIcon:Boolean},setup(a){return()=>{let{existIcon:o,prefixCls:s,loading:c}=a;if(o)return(0,e.createVNode)(`span`,{class:`${s}-loading-icon`},[(0,e.createVNode)(t.LoadingOutlined,null,null)]);let l=!!c;return(0,e.createVNode)(e.Transition,{name:`${s}-loading-icon-motion`,onBeforeEnter:n,onEnter:r,onAfterEnter:i,onBeforeLeave:r,onLeave:e=>{setTimeout(()=>{n(e)})},onAfterLeave:i},{default:()=>[l?(0,e.createVNode)(`span`,{class:`${s}-loading-icon`},[(0,e.createVNode)(t.LoadingOutlined,null,null)]):null]})}}});exports.default=a;