import{p as e,H as c,h as t,t as i}from"./p-BHHBMN0G.js";const s=e(class extends c{constructor(e){super(),!1!==e&&this.__registerHost(),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 t("picture",{key:"d04b4b39630998f1f3708f2ce96c7feadc48c2b0",class:this.getClass()},t("slot",{key:"0087999168fefe4ac6a4d36a014028cd18cf998c"}),t("img",Object.assign({key:"6c9d5fd559a1e8a20f8a2421ebb08008bfe6de26"},this.getImgAttr())))}static get style(){return{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}'}}},[294,"ecl-picture",{styleClass:[1,"style-class"],theme:[1025],image:[1],imgClass:[1,"img-class"],imageAlt:[1,"image-alt"],imageAnchor:[1,"image-anchor"],lazy:[4],zoom:[4]}]);function r(){"undefined"!=typeof customElements&&["ecl-picture"].forEach((e=>{"ecl-picture"===e&&(customElements.get(i(e))||customElements.define(i(e),s))}))}export{s as E,r as d}