import { p as proxyCustomElement, H, c as createEvent, h } from './index.js';

const cardImageCss = ".card-image{width:100%;height:100%;vertical-align:bottom;object-fit:cover}";

const CardImage = /*@__PURE__*/ proxyCustomElement(class CardImage extends H {
    constructor() {
        super();
        this.__registerHost();
        this.__attachShadow();
        this.imgPosition = createEvent(this, "imgPosition", 7);
    }
    handlePosition(position) {
        this.imgPosition.emit(position);
    }
    componentWillLoad() {
        this.handlePosition(this.position);
    }
    componentDidUpdate() {
        this.handlePosition(this.position);
    }
    render() {
        return (h("img", { key: '74204d35691d617c897b876c6efee1b9a6722f64', src: this.src, alt: this.alt, class: "card-image" }));
    }
    static get style() { return cardImageCss; }
}, [257, "ifx-card-image", {
        "src": [1],
        "alt": [1],
        "position": [1]
    }]);
function defineCustomElement$1() {
    if (typeof customElements === "undefined") {
        return;
    }
    const components = ["ifx-card-image"];
    components.forEach(tagName => { switch (tagName) {
        case "ifx-card-image":
            if (!customElements.get(tagName)) {
                customElements.define(tagName, CardImage);
            }
            break;
    } });
}

const IfxCardImage = CardImage;
const defineCustomElement = defineCustomElement$1;

export { IfxCardImage, defineCustomElement };
//# sourceMappingURL=ifx-card-image.js.map

//# sourceMappingURL=ifx-card-image.js.map