import{r as e,h as t,g as i}from"./p-5bf73c0f.js";const l=class{constructor(t){e(this,t);this.theme="ec";this.styleClass=undefined;this.label=undefined;this.type=undefined;this.itemTitle=undefined}getClass(){const e=[`ecl-timeline__item`,`sc-ecl-timeline-${this.theme}`,this.styleClass];if(this.type==="toggle"){e.push(`ecl-timeline__item--toggle`)}return e.join(" ")}componentDidRender(){const e=this.el;let t=e.previousElementSibling;while(t){if(t instanceof HTMLElement&&t.getAttribute("type")==="toggle"){this.el.firstElementChild.classList.add("ecl-timeline__item--collapsed");break}t=t.previousElementSibling}}render(){return t("li",{class:this.getClass()},this.type!=="toggle"?t("div",{class:`ecl-timeline__tooltip sc-ecl-timeline-${this.theme}`},t("div",{class:`ecl-timeline__tooltip-arrow sc-ecl-timeline-${this.theme}`}),this.label?t("div",{class:`ecl-timeline__label sc-ecl-timeline-${this.theme}`},this.label):"",this.itemTitle?t("div",{class:`ecl-timeline__title sc-ecl-timeline-${this.theme}`},this.itemTitle):"",t("div",{class:`ecl-timeline__content sc-ecl-timeline-${this.theme}`},t("slot",null))):"",this.type==="toggle"?t("ecl-button",{theme:this.theme,variant:"secondary","data-ecl-timeline-button":true,styleClass:`sc-ecl-timeline-${this.theme}`},t("ecl-icon",{styleClass:`ecl-button__icon--after sc-ecl-timeline-${this.theme}`,icon:"corner-arrow",size:"xs",transform:"rotate-180",slot:"icon-after",theme:this.theme}),t("slot",null)):"")}get el(){return i(this)}};export{l as ecl_timeline_item};
//# sourceMappingURL=p-c624c18c.entry.js.map