import{_ as e,d as t,f as o,r as a,j as n,o as l,g as r,aF as i,p as s,b as p,h as d,i as u,a3 as c,b_ as f,Y as m,b$ as y}from"./index.Bz9M-RWj.js";var g=e(t({inheritAttrs:!1}),[["render",function(e,t,a,n,l,r){return o(e.$slots,"default")}],["__file","collection.vue"]]);var E=e(t({name:"ElCollectionItem",inheritAttrs:!1}),[["render",function(e,t,a,n,l,r){return o(e.$slots,"default")}],["__file","collection-item.vue"]]);const C="data-el-collection-item",I=e=>{const t=`El${e}Collection`,o=`${t}Item`,p=Symbol(t),d=Symbol(o),u={...g,name:t,setup(){const e=a(),t=new Map;s(p,{itemMap:t,getItems:()=>{const o=r(e);if(!o)return[];const a=Array.from(o.querySelectorAll(`[${C}]`));return[...t.values()].sort((e,t)=>a.indexOf(e.ref)-a.indexOf(t.ref))},collectionRef:e})}},c={...E,name:o,setup(e,{attrs:t}){const o=a(),u=n(p,void 0);s(d,{collectionItemRef:o}),l(()=>{const e=r(o);e&&u.itemMap.set(e,{ref:e,...t})}),i(()=>{const e=r(o);u.itemMap.delete(e)})}};return{COLLECTION_INJECTION_KEY:p,COLLECTION_ITEM_INJECTION_KEY:d,ElCollection:u,ElCollectionItem:c}},b=p({trigger:y.trigger,triggerKeys:{type:d(Array),default:()=>[m.enter,m.numpadEnter,m.space,m.down]},effect:{...c.effect,default:"light"},type:{type:d(String)},placement:{type:d(String),default:"bottom"},popperOptions:{type:d(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:d([Number,String]),default:0},maxHeight:{type:d([Number,String]),default:""},popperClass:{type:String,default:""},disabled:Boolean,role:{type:String,values:f,default:"menu"},buttonProps:{type:d(Object)},teleported:c.teleported,persistent:{type:Boolean,default:!0}}),O=p({command:{type:[Object,String,Number],default:()=>({})},disabled:Boolean,divided:Boolean,textValue:String,icon:{type:u}}),N=p({onKeydown:{type:d(Function)}}),_=[m.down,m.pageDown,m.home],S=[m.up,m.pageUp,m.end],T=[..._,...S],{ElCollection:h,ElCollectionItem:L,COLLECTION_INJECTION_KEY:v,COLLECTION_ITEM_INJECTION_KEY:B}=I("Dropdown");export{C,h as E,T as F,S as L,O as a,B as b,I as c,b as d,L as e,N as f,v as g};