import{A as _,af as M,B as L,a7 as $,a8 as l,f as y,M as A,r as S,D as I,K as P,aq as k,F as z,o as E,c as N,X as O,k as i,m as T,w as K,a9 as Y,R as j,W as g,O as D,_ as v,a2 as F,J as h,$ as J,G as R,I as q,aD as u}from"./entry.71eeda7b.js";import{u as U,a as b}from"./index.154e8509.js";const V=_({size:{type:[Number,String],values:M,default:"",validator:t=>L(t)},shape:{type:String,values:["circle","square"],default:"circle"},icon:{type:$},src:{type:String,default:""},alt:String,srcSet:String,fit:{type:l(String),default:"cover"}}),G={error:t=>t instanceof Event},W=["src","alt","srcset"],x=y({name:"ElAvatar"}),H=y({...x,props:V,emits:G,setup(t,{emit:c}){const n=t,o=A("avatar"),a=S(!1),d=I(()=>{const{size:e,icon:r,shape:s}=n,m=[o.b()];return P(e)&&m.push(o.m(e)),r&&m.push(o.m("icon")),s&&m.push(o.m(s)),m}),C=I(()=>{const{size:e}=n;return L(e)?o.cssVarBlock({size:k(e)||""}):void 0}),f=I(()=>({objectFit:n.fit}));z(()=>n.src,()=>a.value=!1);function p(e){a.value=!0,c("error",e)}return(e,r)=>(E(),N("span",{class:D(i(d)),style:O(i(C))},[(e.src||e.srcSet)&&!a.value?(E(),N("img",{key:0,src:e.src,alt:e.alt,srcset:e.srcSet,style:O(i(f)),onError:p},null,44,W)):e.icon?(E(),T(i(j),{key:1},{default:K(()=>[(E(),T(Y(e.icon)))]),_:1})):g(e.$slots,"default",{key:2})],6))}});var X=v(H,[["__file","avatar.vue"]]);const pe=F(X),Q=y({inheritAttrs:!1});function Z(t,c,n,o,a,d){return g(t.$slots,"default")}var ee=v(Q,[["render",Z],["__file","collection.vue"]]);const te=y({name:"ElCollectionItem",inheritAttrs:!1});function oe(t,c,n,o,a,d){return g(t.$slots,"default")}var se=v(te,[["render",oe],["__file","collection-item.vue"]]);const ne="data-el-collection-item",ae=t=>{const c=`El${t}Collection`,n=`${c}Item`,o=Symbol(c),a=Symbol(n),d={...ee,name:c,setup(){const f=S(null),p=new Map;h(o,{itemMap:p,getItems:()=>{const r=i(f);if(!r)return[];const s=Array.from(r.querySelectorAll(`[${ne}]`));return[...p.values()].sort((w,B)=>s.indexOf(w.ref)-s.indexOf(B.ref))},collectionRef:f})}},C={...se,name:n,setup(f,{attrs:p}){const e=S(null),r=J(o,void 0);h(a,{collectionItemRef:e}),R(()=>{const s=i(e);s&&r.itemMap.set(s,{ref:s,...p})}),q(()=>{const s=i(e);r.itemMap.delete(s)})}};return{COLLECTION_INJECTION_KEY:o,COLLECTION_ITEM_INJECTION_KEY:a,ElCollection:d,ElCollectionItem:C}},ue=_({trigger:U.trigger,effect:{...b.effect,default:"light"},type:{type:l(String)},placement:{type:l(String),default:"bottom"},popperOptions:{type:l(Object),default:()=>({})},id:String,size:{type:String,default:""},splitButton:Boolean,hideOnClick:{type:Boolean,default:!0},loop:{type:Boolean,default:!0},showTimeout:{type:Number,default:150},hideTimeout:{type:Number,default:150},tabindex:{type:l([Number,String]),default:0},maxHeight:{type:l([Number,String]),default:""},popperClass:{type:String,default:""},disabled:{type:Boolean,default:!1},role:{type:String,default:"menu"},buttonProps:{type:l(Object)},teleported:b.teleported}),de=_({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:$}}),fe=_({onKeydown:{type:l(Function)}}),re=[u.down,u.pageDown,u.home],le=[u.up,u.pageUp,u.end],me=[...re,...le],{ElCollection:Ee,ElCollectionItem:_e,COLLECTION_INJECTION_KEY:ye,COLLECTION_ITEM_INJECTION_KEY:Ce}=ae("Dropdown");export{Ce as C,pe as E,me as F,le as L,Ee as a,de as b,ae as c,ue as d,ne as e,_e as f,fe as g,ye as h};
