import{C as e,Et as t,K as n,Kt as r,Q as i,St as a,T as o,Y as s,Z as c,ct as l,g as u,j as d,k as f,kt as p,nn as m,rn as h,w as g,x as _,z as v,zt as y}from"./vue.runtime.esm-bundler-DpGzKKN4.js";import{Q as b,Y as x,Zt as S,b as C,et as w,y as T}from"./style-DGCNsUJ6.js";import{Ht as E,Mt as D,Vt as O,kt as k,mt as A}from"./vnode-DU8g6Rf7.js";var j=T({checked:Boolean,disabled:Boolean,type:{type:String,values:[`primary`,`success`,`info`,`warning`,`danger`],default:`primary`}}),M={"update:checked":e=>x(e),[E]:e=>x(e)},N=k(O(d({...d({name:`ElCheckTag`}),props:j,emits:M,setup(e,{emit:t}){let n=e,r=S(`check-tag`),a=_(()=>[r.b(),r.is(`checked`,n.checked),r.is(`disabled`,n.disabled),r.m(n.type||`primary`)]),c=()=>{if(n.disabled)return;let e=!n.checked;t(E,e),t(`update:checked`,e)};return(e,t)=>(s(),o(`span`,{class:m(p(a)),onClick:c},[i(e.$slots,`default`)],2))}}),[[`__file`,`check-tag.vue`]])),P=T({animated:Boolean,count:{type:Number,default:1},rows:{type:Number,default:3},loading:{type:Boolean,default:!0},throttle:{type:C([Number,Object])}}),F=T({variant:{type:String,values:[`circle`,`rect`,`h1`,`h3`,`text`,`caption`,`p`,`image`,`button`],default:`text`}}),I=O(d({...d({name:`ElSkeletonItem`}),props:F,setup(t){let n=S(`skeleton`);return(t,r)=>(s(),o(`div`,{class:m([p(n).e(`item`),p(n).e(t.variant)])},[t.variant===`image`?(s(),e(p(A),{key:0})):g(`v-if`,!0)],2))}}),[[`__file`,`skeleton-item.vue`]]);y();var L=(e,t=0)=>{if(t===0)return e;let i=a(r(t)&&!!t.initVal),o=null,s=t=>{if(w(t)){i.value=e.value;return}o&&clearTimeout(o),o=setTimeout(()=>{i.value=e.value},t)},c=e=>{e===`leading`?b(t)?s(t):s(t.leading):r(t)?s(t.trailing):i.value=!1};return n(()=>c(`leading`)),l(()=>e.value,e=>{c(e?`leading`:`trailing`)}),i},R=k(O(d({...d({name:`ElSkeleton`}),props:P,setup(n,{expose:r}){let a=n,l=S(`skeleton`),d=L(t(a,`loading`),a.throttle);return r({uiLoading:d}),(t,n)=>p(d)?(s(),o(`div`,v({key:0,class:[p(l).b(),p(l).is(`animated`,t.animated)]},t.$attrs),[(s(!0),o(u,null,c(t.count,n=>(s(),o(u,{key:n},[p(d)?i(t.$slots,`template`,{key:n},()=>[f(I,{class:m(p(l).is(`first`)),variant:`p`},null,8,[`class`]),(s(!0),o(u,null,c(t.rows,n=>(s(),e(I,{key:n,class:m([p(l).e(`paragraph`),p(l).is(`last`,n===t.rows&&t.rows>1)]),variant:`p`},null,8,[`class`]))),128))]):g(`v-if`,!0)],64))),128))],16)):i(t.$slots,`default`,h(v({key:1},t.$attrs)))}}),[[`__file`,`skeleton.vue`]]),{SkeletonItem:I}),z=D(I);export{z as n,N as r,R as t};