import{r as e,h as l}from"./p-5bf73c0f.js";const s=class{constructor(l){e(this,l);this.styleClass="";this.theme="ec";this.imageAlt=undefined;this.mediaHref=undefined;this.mediaIframeHref=undefined;this.mediaSharePath=undefined;this.meta=undefined;this.type="image";this.icon=undefined}getClass(){return[`ecl-gallery__item`,`sc-ecl-gallery-${this.theme}`,this.styleClass].join(" ")}getLinkAttr(){const e={"data-ecl-gallery-item":""};if(this.mediaSharePath){e["data-ecl-gallery-item-share"]=this.mediaSharePath}if(this.mediaIframeHref){e["data-ecl-gallery-item-embed-src"]=this.mediaIframeHref}return e}render(){return l("li",{class:this.getClass()},l("a",Object.assign({href:this.mediaIframeHref?this.mediaIframeHref:this.mediaHref,class:`ecl-gallery__item-link sc-ecl-gallery-${this.theme}`},this.getLinkAttr()),l("figure",{class:`ecl-gallery__image-container sc-ecl-gallery-${this.theme}`},l("slot",{name:"video"}),this.type!=="html-video"?l("ecl-picture",{image:this.mediaHref,"image-alt":this.imageAlt,styleClass:`ecl-gallery__picture sc-ecl-gallery-${this.theme}`,"img-class":`ecl-gallery__image sc-ecl-gallery-${this.theme}`},l("slot",{name:"sources"})):"",this.type!=="image"?l("div",{class:`ecl-gallery__item-icon-wrapper sc-ecl-gallery-${this.theme}`},l("ecl-icon",{"style-class":`ecl-gallery__item-icon sc-ecl-gallery-${this.theme}`,icon:"play-filled",size:"l",color:"inverted"})):"",l("figcaption",{class:`ecl-gallery__description sc-ecl-gallery-${this.theme}`,"data-ecl-gallery-description":true},this.icon?l("ecl-icon",{icon:this.icon,styleClass:"ecl-gallery__description-icon",size:"s"}):"",l("slot",null),l("span",{class:`ecl-gallery__meta sc-ecl-gallery-${this.theme}`,"data-ecl-gallery-meta":true},this.meta)))))}};export{s as ecl_gallery_item};
//# sourceMappingURL=p-cad78d08.entry.js.map