import{p as e,H as t,h as s,t as c}from"./p-BHHBMN0G.js";import{d as i}from"./p-C1DHlsEo.js";import{d as l}from"./p-Bmv0DoO8.js";import{d as n}from"./p-CvotSt5y.js";const r=e(class extends t{constructor(e){super(),!1!==e&&this.__registerHost()}getClass(){return["ecl-news-ticker__slide","sc-ecl-news-ticker-"+this.theme,this.styleClass].join(" ")}componentWillLoad(){var e;this.theme=null!==(e=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==e?e:this.theme||"ec"}render(){return s("li",{key:"7b27e4c6921bc2c9e989c7e4eb73ce815f6cb84b",class:this.getClass()},this.image&&s("img",Object.assign({key:"f6d1318edcc09d7d175dddead9ee362d9af52f5f",src:this.image,class:"ecl-news-ticker__icon sc-ecl-news-ticker-"+this.theme},this.altAttr&&{alt:this.altAttr},this.titleAttr&&{title:this.titleAttr})),this.icon&&s("ecl-icon",{key:"86fb315eb59c27304d6b126023830c50505289a5",size:"l",icon:this.icon,styleClass:"ecl-news-ticker__icon sc-ecl-news-ticker-"+this.theme}),this.path?s("ecl-link",{theme:this.theme,path:this.path,styleClass:"ecl-news-ticker__slide-text sc-ecl-news-ticker-"+this.theme},s("slot",null)):s("slot",null))}},[260,"ecl-news-ticker-item",{icon:[1],image:[1],altAttr:[1,"alt-attr"],titleAttr:[1,"title-attr"],theme:[1025],styleClass:[1,"style-class"],path:[1]}]),o=r,a=function(){"undefined"!=typeof customElements&&["ecl-news-ticker-item","ecl-icon","ecl-indicator","ecl-link"].forEach((e=>{switch(e){case"ecl-news-ticker-item":customElements.get(c(e))||customElements.define(c(e),r);break;case"ecl-icon":customElements.get(c(e))||i();break;case"ecl-indicator":customElements.get(c(e))||l();break;case"ecl-link":customElements.get(c(e))||n()}}))};export{o as EclNewsTickerItem,a as defineCustomElement}