"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.BaseSequenceTitle = void 0;
const tslib_1 = require("tslib");
const react_1 = tslib_1.__importDefault(require("react"));
const AutoBind_1 = require("@appglue/common/dist/Common/AutoBind");
const StateManager_1 = require("@appglue/common/dist/Common/StateManager");
const FlowStepData_1 = require("@appglue/common/dist/Flow/Steps/FlowStepData");
class BaseSequenceTitle extends react_1.default.Component {
    onUpdateStackName(s, name) {
        if (name.length <= 30) {
            s.name = name;
            StateManager_1.StateManager.propertyChanged(s, FlowStepData_1.FlowStepData.NAME);
        }
    }
}
tslib_1.__decorate([
    AutoBind_1.AutoBind
], BaseSequenceTitle.prototype, "onUpdateStackName", null);
exports.BaseSequenceTitle = BaseSequenceTitle;
//# sourceMappingURL=BaseSequenceTitle.js.map