import { r as registerInstance, h } from './index-d0047af2.js';
var __classPrivateFieldGet = (undefined && undefined.__classPrivateFieldGet) || function (receiver, privateMap) {
    if (!privateMap.has(receiver)) {
        throw new TypeError("attempted to get private field on non-instance");
    }
    return privateMap.get(receiver);
};
var _server;
var BceElementImage = /** @class */ (function () {
    function BceElementImage(hostRef) {
        registerInstance(this, hostRef);
        _server.set(this, window.BCE.file);
    }
    BceElementImage.prototype.render = function () {
        var _this = this;
        if (!this.template)
            return;
        return this.template.location.map(function (id) {
            var file = __classPrivateFieldGet(_this, _server).get(id);
            return file && h("img", { key: id, src: file.url });
        });
    };
    Object.defineProperty(BceElementImage, "style", {
        get: function () { return ":host{display:block;width:auto;text-align:center}:host img{margin:1rem 0;width:auto;max-width:100%;max-height:32rem}\@media screen and (min-width: 1024px){:host{max-width:1200px;text-align:left}}"; },
        enumerable: true,
        configurable: true
    });
    return BceElementImage;
}());
_server = new WeakMap();
export { BceElementImage as bce_element_image };
