import{d as m,b1 as u,bW as w,h as T,aF as r,a$ as S,b0 as $,b as B,o as l,c as i,g as p,W as s,a,ar as E,l as y,w as x,aN as z,b2 as I,a2 as n,t as f,b3 as W,b4 as C,b8 as F,__tla as N}from"./index-8c6726e5.js";let v,b,P=Promise.all([(()=>{try{return N}catch{}})()]).then(async()=>{const g=m({name:"ElTimeline",setup(d,{slots:o}){const e=u("timeline");return w("timeline",o),()=>T("ul",{class:[e.b()]},[r(o,"default")])}}),h=S({timestamp:{type:String,default:""},hideTimestamp:{type:Boolean,default:!1},center:{type:Boolean,default:!1},placement:{type:String,values:["top","bottom"],default:"bottom"},type:{type:String,values:["primary","success","warning","danger","info"],default:""},color:{type:String,default:""},size:{type:String,values:["normal","large"],default:"normal"},icon:{type:$},hollow:{type:Boolean,default:!1}}),_=m({name:"ElTimelineItem"});var c=W(m({..._,props:h,setup(d){const o=d,e=u("timeline-item"),k=B(()=>[e.e("node"),e.em("node",o.size||""),e.em("node",o.type||""),e.is("hollow",o.hollow)]);return(t,j)=>(l(),i("li",{class:s([a(e).b(),{[a(e).e("center")]:t.center}])},[p("div",{class:s(a(e).e("tail"))},null,2),t.$slots.dot?n("v-if",!0):(l(),i("div",{key:0,class:s(a(k)),style:E({backgroundColor:t.color})},[t.icon?(l(),y(a(I),{key:0,class:s(a(e).e("icon"))},{default:x(()=>[(l(),y(z(t.icon)))]),_:1},8,["class"])):n("v-if",!0)],6)),t.$slots.dot?(l(),i("div",{key:1,class:s(a(e).e("dot"))},[r(t.$slots,"dot")],2)):n("v-if",!0),p("div",{class:s(a(e).e("wrapper"))},[t.hideTimestamp||t.placement!=="top"?n("v-if",!0):(l(),i("div",{key:0,class:s([a(e).e("timestamp"),a(e).is("top")])},f(t.timestamp),3)),p("div",{class:s(a(e).e("content"))},[r(t.$slots,"default")],2),t.hideTimestamp||t.placement!=="bottom"?n("v-if",!0):(l(),i("div",{key:1,class:s([a(e).e("timestamp"),a(e).is("bottom")])},f(t.timestamp),3))],2)],2))}}),[["__file","/home/runner/work/element-plus/element-plus/packages/components/timeline/src/timeline-item.vue"]]);b=C(g,{TimelineItem:c}),v=F(c)});export{v as E,P as __tla,b as a};
