'use strict';

Object.defineProperty(exports, '__esModule', { value: true });

const index$1 = require('./index-578e90b1.js');
const elementQuestionBase = require('./element-question-base-0c6e17d9.js');

const ElementSortEditor = class {
    constructor(hostRef) {
        index$1.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 (index$1.h(elementQuestionBase.ElementQuestionBase, { question: this.prop('question', { localize: true }), required: this.prop('required'), t: this.t }, index$1.h("bce-option-creator", Object.assign({}, this.prop('options'), { label: this.t('me-option'), t: this.t })), index$1.h("bce-switch", Object.assign({}, this.prop('dual'))), index$1.h("bce-input", Object.assign({ type: "textarea" }, this.prop('feedbackCorrect', { localize: true }))), index$1.h("bce-input", Object.assign({ type: "textarea" }, this.prop('feedbackIncorrect', { localize: true }))), index$1.h("slot", null)));
    }
};

exports.bce_element_sort_editor = ElementSortEditor;
