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