"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
const Element_1 = require("../../../../../Class/Element");
const _ids_1 = require("../../../../_ids");
const globalComponent_1 = require("../../../../globalComponent");
class Image extends Element_1.Element_ {
    constructor(system) {
        super({
            i: ['src', 'style', 'attr'],
            o: [],
        }, {}, system, _ids_1.ID_IMAGE_1);
    }
    async image() {
        const localComponent = await (0, globalComponent_1.firstGlobalComponentPromise)(this.__system, this.__global_id);
        return localComponent.$element;
    }
}
exports.default = Image;
//# sourceMappingURL=index.js.map