"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseSequenceStrategy = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const AutoBind_1 = require("@appglue/common/dist/Common/AutoBind");
class BaseSequenceStrategy extends react_1.default.Component {
    showStrategyDialog(event) {
        const { sequence } = this.props;
        event.stopPropagation();
        this.props.editContext.setSelectedSequenceStrategy(event.currentTarget, sequence);
    }
    showErrorMessageForSequenceStrategy(event) {
        const { sequence } = this.props;
        event.stopPropagation();
        this.props.editContext.setSelectedSequenceForError(event.currentTarget, sequence);
    }
}
tslib_1.__decorate([
    AutoBind_1.AutoBind
], BaseSequenceStrategy.prototype, "showStrategyDialog", null);
tslib_1.__decorate([
    AutoBind_1.AutoBind
], BaseSequenceStrategy.prototype, "showErrorMessageForSequenceStrategy", null);
exports.BaseSequenceStrategy = BaseSequenceStrategy;
//# sourceMappingURL=BaseSequenceStrategy.js.map