import { r as registerInstance, h } from './index-d0047af2.js';

const ElementImageEditor = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        this.label = {
            name: 'Image'
        };
    }
    prop(path, options = {}) {
        return this.handler.prop(path, Object.assign(Object.assign({}, options), { label: this.label }));
    }
    render() {
        return [
            h("bce-upload", Object.assign({ accept: "image/*" }, this.prop('location'))),
            h("slot", null)
        ];
    }
};

export { ElementImageEditor as bce_element_image_editor };
