var I=Object.defineProperty,T=Object.defineProperties;var $=Object.getOwnPropertyDescriptors;var v=Object.getOwnPropertySymbols;var P=Object.prototype.hasOwnProperty,V=Object.prototype.propertyIsEnumerable;var b=(s,e,t)=>e in s?I(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,c=(s,e)=>{for(var t in e||(e={}))P.call(e,t)&&b(s,t,e[t]);if(v)for(var t of v(e))V.call(e,t)&&b(s,t,e[t]);return s},m=(s,e)=>T(s,$(e));import{e as x,o as z,w as L,v as S,d as k,y as B,C as o,O as u,D as E,L as n,bz as F,W as N,K as f,_ as C,B as R,F as d,ap as g,aN as _,U as w,bA as j,c as i,Y as A,at as D,l as H}from"./index.f06d32fc.js";const K=(s,e=0)=>{if(e===0)return s;const t=x(!1);let l=0;const r=()=>{l&&clearTimeout(l),l=window.setTimeout(()=>{t.value=s.value},e)};return z(r),L(()=>s.value,a=>{a?r():t.value=a}),t},M=S({animated:{type:Boolean,default:!1},count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:Number}}),O=S({variant:{type:String,values:["circle","rect","h1","h3","text","caption","p","image","button"],default:"text"}}),U={name:"ElSkeletonItem"},W=k(m(c({},U),{props:O,setup(s){const e=B("skeleton");return(t,l)=>(o(),u("div",{class:f([n(e).e("item"),n(e).e(t.variant)])},[t.variant==="image"?(o(),E(n(F),{key:0})):N("v-if",!0)],2))}}));var p=C(W,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton-item.vue"]]);const Y={name:"ElSkeleton"},q=k(m(c({},Y),{props:M,setup(s,{expose:e}){const t=s,l=B("skeleton"),r=K(R(t,"loading"),t.throttle);return e({uiLoading:r}),(a,Q)=>n(r)?(o(),u("div",_({key:0,class:[n(l).b(),n(l).is("animated",a.animated)]},a.$attrs),[(o(!0),u(d,null,g(a.count,y=>(o(),u(d,{key:y},[a.loading?w(a.$slots,"template",{key:y},()=>[i(p,{class:f(n(l).is("first")),variant:"p"},null,8,["class"]),(o(!0),u(d,null,g(a.rows,h=>(o(),E(p,{key:h,class:f([n(l).e("paragraph"),n(l).is("last",h===a.rows&&a.rows>1)]),variant:"p"},null,8,["class"]))),128))]):N("v-if",!0)],64))),128))],16)):w(a.$slots,"default",j(_({key:1},a.$attrs)))}}));var G=C(q,[["__file","/home/runner/work/element-plus/element-plus/packages/components/skeleton/src/skeleton.vue"]]);const ee=A(G,{SkeletonItem:p}),te=D(p);var J="./assets/icon_empty.df5db7bf.png",se=k({name:"col-empty",props:{message:{type:String,default:"\u6682\u65E0\u6570\u636E"},buttonText:{type:String,default:"\u53BB\u9996\u9875"},buttonVisibility:{type:Boolean,default:!1}},render(){return i("div",{class:"w-full h-full text-center flex items-center justify-center flex-col"},[i("img",{src:J,class:"w-64 m-auto"},null),i("p",{class:"text-base text-[#999999] pt-4 pb-6"},[this.message]),this.buttonVisibility&&i(H,{type:"primary",class:"rounded-sm !px-12",style:{height:"38px"}},{default:()=>[this.buttonText]})])}});export{se as C,ee as E,te as a};