'use strict';

var index = require('./index-CpWVsZ_u.js');

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

const CardImage = class {
    constructor(hostRef) {
        index.registerInstance(this, hostRef);
        this.imgPosition = index.createEvent(this, "imgPosition", 7);
    }
    src;
    alt;
    position;
    imgPosition;
    handlePosition(position) {
        this.imgPosition.emit(position);
    }
    componentWillLoad() {
        this.handlePosition(this.position);
    }
    componentDidUpdate() {
        this.handlePosition(this.position);
    }
    render() {
        return index.h("img", { key: '5dfce3ec8516ae2a6a8d16d452852aa94a21a584', src: this.src, alt: this.alt, class: "card-image" });
    }
};
CardImage.style = cardImageCss();

exports.ifx_card_image = CardImage;
//# sourceMappingURL=ifx-card-image.entry.cjs.js.map

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