const e=require("../_util/classNames.js"),t=require("../_util/props-util/initDefaultProps.js"),n=require("../config-provider/hooks/useConfigInject.js"),r=require("./Element.js"),i=require("./style/index.js"),a=require("./Paragraph.js"),o=require("./Title.js");let s=require("vue");var c=()=>({active:{type:Boolean,default:void 0},loading:{type:Boolean,default:void 0},prefixCls:String,avatar:{type:[Boolean,Object],default:void 0},title:{type:[Boolean,Object],default:void 0},paragraph:{type:[Boolean,Object],default:void 0},round:{type:Boolean,default:void 0}});function l(e){return e&&typeof e==`object`?e:{}}function u(e,t){return e&&!t?{size:`large`,shape:`square`}:{size:`large`,shape:`circle`}}function d(e,t){return!e&&t?{width:`38%`}:e&&t?{width:`50%`}:{}}function f(e,t){let n={};return(!e||!t)&&(n.width=`61%`),!e&&t?n.rows=3:n.rows=2,n}var p=(0,s.defineComponent)({compatConfig:{MODE:3},name:`ASkeleton`,props:t.default(c(),{avatar:!1,title:!0,paragraph:!0}),setup(t,{slots:c}){let{prefixCls:p,direction:m}=n.default(`skeleton`,t),[h,g]=i.default(p);return()=>{let{loading:n,avatar:i,title:_,paragraph:v,active:y,round:b}=t,x=p.value;if(n||t.loading===void 0){let t=!!i||i===``,n=!!_||_===``,c=!!v||v===``,p;if(t){let e={prefixCls:`${x}-avatar`,...u(n,c),...l(i)};p=(0,s.createVNode)(`div`,{class:`${x}-header`},[(0,s.createVNode)(r.default,e,null)])}let S;if(n||c){let e;n&&(e=(0,s.createVNode)(o.default,{prefixCls:`${x}-title`,...d(t,c),...l(_)},null));let r;c&&(r=(0,s.createVNode)(a.default,{prefixCls:`${x}-paragraph`,...f(t,n),...l(v)},null)),S=(0,s.createVNode)(`div`,{class:`${x}-content`},[e,r])}let C=e.default(x,{[`${x}-with-avatar`]:t,[`${x}-active`]:y,[`${x}-rtl`]:m.value===`rtl`,[`${x}-round`]:b,[g.value]:!0});return h((0,s.createVNode)(`div`,{class:C},[p,S]))}return c.default?.()}}});exports.default=p,exports.skeletonProps=c;