import { __decorate, __metadata } from "tslib";
import React from 'react';
import { AutoBind } from '../../Common/AutoBind';
export class BaseSequenceStrategy extends React.Component {
    showStrategyDialog(event) {
        const { sequence } = this.props;
        event.stopPropagation();
        sequence.editContext.setSelectedSequenceStrategy(event.currentTarget, sequence);
    }
    showErrorMessageForSequenceStrategy(event) {
        const { sequence } = this.props;
        event.stopPropagation();
        sequence.editContext.setSelectedSequenceForError(event.currentTarget, sequence);
    }
}
__decorate([
    AutoBind,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object]),
    __metadata("design:returntype", void 0)
], BaseSequenceStrategy.prototype, "showStrategyDialog", null);
__decorate([
    AutoBind,
    __metadata("design:type", Function),
    __metadata("design:paramtypes", [Object]),
    __metadata("design:returntype", void 0)
], BaseSequenceStrategy.prototype, "showErrorMessageForSequenceStrategy", null);
//# sourceMappingURL=BaseSequenceStrategy.js.map