import { r as registerInstance, h } from './index-d0047af2.js';
import { E as ElementQuestionBase } from './element-question-base-5ebd9dee.js';
var ElementIconEditor = /** @class */ (function () {
    function ElementIconEditor(hostRef) {
        registerInstance(this, hostRef);
        this.label = {
            name: 'Icon',
            labelQuestion: 'Formulate your question',
            labelRequired: 'Required',
            labelOCOptionAdd: 'Add Icon',
            labelOCOptionRemove: 'Delete Icon',
            placeholderOptions: 'Icon'
        };
    }
    ElementIconEditor.prototype.prop = function (path, options) {
        if (options === void 0) { options = {}; }
        return this.handler.prop(path, Object.assign(Object.assign({}, options), { label: this.label }));
    };
    ElementIconEditor.prototype.render = function () {
        return (h(ElementQuestionBase, { question: this.prop('question', { localize: true }), required: this.prop('required') }, h("bce-option-creator", Object.assign({}, this.prop('options'), { label: this.label, "allow-color": true })), h("slot", null)));
    };
    return ElementIconEditor;
}());
export { ElementIconEditor as bce_element_icon_editor };
