import{r as e,h as c}from"./p-ytAlchvh.js";const t=class{constructor(c){e(this,c),this.styleClass="",this.imageAnchor="center",this.lazy=!1,this.zoom=!1}getClass(){const e=["ecl-picture",this.styleClass];return this.zoom&&e.push("ecl-picture--zoom"),e.join(" ")}getImgAttr(){const e={src:this.image};return this.imgClass&&(e.class=this.imgClass),this.imageAlt&&(e.alt=this.imageAlt),this.lazy&&(e.loading="lazy"),this.imageAnchor&&"center"!==this.imageAnchor&&(e.style={"--ecl-image-anchor":this.imageAnchor}),e}componentWillLoad(){var e;this.theme=null!==(e=document.documentElement.getAttribute("data-ecl-theme"))&&void 0!==e?e:this.theme||"ec"}render(){return c("picture",{key:"d04b4b39630998f1f3708f2ce96c7feadc48c2b0",class:this.getClass()},c("slot",{key:"0087999168fefe4ac6a4d36a014028cd18cf998c"}),c("img",Object.assign({key:"6c9d5fd559a1e8a20f8a2421ebb08008bfe6de26"},this.getImgAttr())))}};t.style={ec:'.ecl-picture.sc-ecl-picture-ec img.sc-ecl-picture-ec{object-position:var(--ecl-image-anchor,"center")}.ecl-picture--zoom.sc-ecl-picture-ec{display:block;overflow:hidden}.ecl-picture--zoom.sc-ecl-picture-ec img.sc-ecl-picture-ec{transition:transform .5s}.ecl-picture--zoom.sc-ecl-picture-ec:focus-visible img.sc-ecl-picture-ec,.ecl-picture--zoom.sc-ecl-picture-ec:hover img.sc-ecl-picture-ec{transform:scale(1.1)}.sc-ecl-picture-ec-h{display:contents}',eu:'.ecl-picture.sc-ecl-picture-eu img.sc-ecl-picture-eu{object-position:var(--ecl-image-anchor,"center")}.ecl-picture--zoom.sc-ecl-picture-eu{display:block;overflow:hidden}.ecl-picture--zoom.sc-ecl-picture-eu img.sc-ecl-picture-eu{transition:transform .5s}.ecl-picture--zoom.sc-ecl-picture-eu:focus-visible img.sc-ecl-picture-eu,.ecl-picture--zoom.sc-ecl-picture-eu:hover img.sc-ecl-picture-eu{transform:scale(1.1)}.sc-ecl-picture-eu-h{display:contents}'};export{t as ecl_picture}