import { jsx as _jsx } from "react/jsx-runtime";
import { BaseFlowStep } from "../BaseFlowStep";
import { PropertyEditorTextList } from "../../../CommonUI/PropertyEditing/PropertyEditorTextList";
import { ObserveState } from "../../../CommonUI/StateManagement/ObserveState";
export class MultiOutputTestStep extends BaseFlowStep {
    constructor() {
        super(...arguments);
        this.paths = ["yes", "no", "no data"];
        this.firstPathMustContinue = true;
    }
    renderEditUI() {
        // todo: should not have to observe here
        return (_jsx(ObserveState, { listenTo: this, control: () => {
                return (_jsx("div", { children: _jsx(PropertyEditorTextList, { editObject: this, propertyName: "paths", updateCallback: this.stepUpdate }, void 0) }, void 0));
            } }, void 0));
    }
    run(data, complete) { }
}
export class ManyOutputTestStep extends BaseFlowStep {
    constructor() {
        super(...arguments);
        this.paths = ["a", "b", "c", "d", "e", "f", "g", "h"];
        this.firstPathMustContinue = true;
    }
    renderEditUI() {
        // todo: should not have to observe here
        return (_jsx(ObserveState, { listenTo: this, control: () => {
                return (_jsx("div", { children: _jsx(PropertyEditorTextList, { editObject: this, propertyName: "paths", updateCallback: this.stepUpdate }, void 0) }, void 0));
            } }, void 0));
    }
    run(data, complete) { }
}
export class LongOutputTestStep extends BaseFlowStep {
    constructor() {
        super(...arguments);
        this.paths = ["the answer is yes", "the answer is no", "the answer is maybe"];
        this.firstPathMustContinue = true;
    }
    renderEditUI() {
        // todo: should not have to observe here
        return (_jsx(ObserveState, { listenTo: this, control: () => {
                return (_jsx("div", { children: _jsx(PropertyEditorTextList, { editObject: this, propertyName: "paths", updateCallback: this.stepUpdate }, void 0) }, void 0));
            } }, void 0));
    }
    run(data, complete) { }
}
//# sourceMappingURL=MultiOutputTestStep.js.map