import { r as registerInstance, h } from './index-b13326fc.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 BceElementAudio = /** @class */ (function () {
    function BceElementAudio(hostRef) {
        registerInstance(this, hostRef);
        _server.set(this, window.BCE.file);
    }
    BceElementAudio.prototype.render = function () {
        var _this = this;
        return this.template.location.map(function (id) {
            var file = __classPrivateFieldGet(_this, _server).get(id);
            return (file && (h("audio", { key: id, autoplay: _this.template.autoplay, controls: true }, h("source", { src: file.url, type: file.type }))));
        });
    };
    Object.defineProperty(BceElementAudio, "style", {
        get: function () { return ":host{display:block;margin:1rem 0}"; },
        enumerable: true,
        configurable: true
    });
    return BceElementAudio;
}());
_server = new WeakMap();
export { BceElementAudio as bce_element_audio };
