"use strict";
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const html_1 = __importDefault(require("../../../../../client/html"));
class Image_ extends html_1.default {
    constructor($props, $system, $element) {
        super($props, $system, $system.api.document.createElement('img'), $system.style['image'], {}, {
            src: (url) => {
                this.$element.src = url ?? '';
            },
        });
        const { src } = this.$props;
        if (src !== undefined) {
            this.$element.src = src;
        }
    }
}
exports.default = Image_;
//# sourceMappingURL=Component.js.map