import { r as registerInstance, h } from './index-b13326fc.js';
import { E as ElementQuestionBase } from './element-question-base-275076e1.js';

const ElementSortEditor = class {
    constructor(hostRef) {
        registerInstance(this, hostRef);
        this.label = {
            name: 'Sort',
            labelQuestion: 'Formulate your question',
            labelRequired: 'Required',
            labelOCOptionAdd: 'Add Option',
            labelOCOptionRemove: 'Delete Option',
            labelOCImageUpload: 'Upload Image',
            labelOCImageDelete: 'Delete Image',
            labelDual: 'Dual',
            labelFeedbackCorrect: 'Feedback correct',
            labelFeedbackIncorrect: 'Feedback incorrect',
            placeholderOptions: 'Option',
            placeholderFeedbackCorrect: 'Feedback on correct answer',
            placeholderFeedbackIncorrect: 'Feedback on incorrect answer'
        };
    }
    prop(path, options = {}) {
        return this.handler.prop(path, Object.assign(Object.assign({}, options), { label: this.label }));
    }
    render() {
        return (h(ElementQuestionBase, { question: this.prop('question', { localize: true }), required: this.prop('required'), t: this.t }, h("bce-option-creator", Object.assign({}, this.prop('options'), { label: this.t('me-option'), t: this.t })), h("bce-switch", Object.assign({}, this.prop('dual'))), h("bce-input", Object.assign({ type: "textarea" }, this.prop('feedbackCorrect', { localize: true }))), h("bce-input", Object.assign({ type: "textarea" }, this.prop('feedbackIncorrect', { localize: true }))), h("slot", null)));
    }
};

export { ElementSortEditor as bce_element_sort_editor };
