"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
var core_1 = require("@angular/core");
var StepComponent = (function () {
    function StepComponent() {
        this.useMsiStyling = false;
        // Default classes
        this.stepStyle = true;
        this.activeStyle = true;
        // Conditional classes
        this.errorStyle = false;
    }
    StepComponent.prototype.ngOnInit = function () {
        this.checkIfValid();
    };
    StepComponent.prototype.ngOnChanges = function () {
        this.checkIfValid();
    };
    StepComponent.prototype.checkIfValid = function () {
        this.valid
            ? this.errorStyle = false
            : this.errorStyle = true;
    };
    return StepComponent;
}());
__decorate([
    core_1.Input(),
    __metadata("design:type", String)
], StepComponent.prototype, "title", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", Object)
], StepComponent.prototype, "link", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", Boolean)
], StepComponent.prototype, "valid", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", Boolean)
], StepComponent.prototype, "current", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", Boolean)
], StepComponent.prototype, "useMsiStyling", void 0);
__decorate([
    core_1.HostBinding('class.rl-step'),
    __metadata("design:type", Boolean)
], StepComponent.prototype, "stepStyle", void 0);
__decorate([
    core_1.HostBinding('class.active'),
    __metadata("design:type", Boolean)
], StepComponent.prototype, "activeStyle", void 0);
__decorate([
    core_1.HostBinding('class.error'),
    __metadata("design:type", Boolean)
], StepComponent.prototype, "errorStyle", void 0);
StepComponent = __decorate([
    core_1.Component({
        selector: 'rlStep',
        template: require('./step.component.html'),
        changeDetection: core_1.ChangeDetectionStrategy.OnPush,
    })
], StepComponent);
exports.StepComponent = StepComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJzdGVwLmNvbXBvbmVudC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsc0NBQTBHO0FBTzFHLElBQWEsYUFBYTtJQUwxQjtRQVVVLGtCQUFhLEdBQVksS0FBSyxDQUFDO1FBRXhDLGtCQUFrQjtRQUNZLGNBQVMsR0FBWSxJQUFJLENBQUM7UUFDM0IsZ0JBQVcsR0FBWSxJQUFJLENBQUM7UUFFekQsc0JBQXNCO1FBQ00sZUFBVSxHQUFZLEtBQUssQ0FBQztJQWV6RCxDQUFDO0lBYkEsZ0NBQVEsR0FBUjtRQUNDLElBQUksQ0FBQyxZQUFZLEVBQUUsQ0FBQztJQUNyQixDQUFDO0lBRUQsbUNBQVcsR0FBWDtRQUNDLElBQUksQ0FBQyxZQUFZLEVBQUUsQ0FBQztJQUNyQixDQUFDO0lBRUQsb0NBQVksR0FBWjtRQUNDLElBQUksQ0FBQyxLQUFLO2NBQ1AsSUFBSSxDQUFDLFVBQVUsR0FBRyxLQUFLO2NBQ3ZCLElBQUksQ0FBQyxVQUFVLEdBQUcsSUFBSSxDQUFDO0lBQzNCLENBQUM7SUFDRixvQkFBQztBQUFELENBQUMsQUEzQkQsSUEyQkM7QUExQlM7SUFBUixZQUFLLEVBQUU7OzRDQUFlO0FBQ2Q7SUFBUixZQUFLLEVBQUU7OzJDQUFzQjtBQUNyQjtJQUFSLFlBQUssRUFBRTs7NENBQWdCO0FBQ2Y7SUFBUixZQUFLLEVBQUU7OzhDQUFrQjtBQUNqQjtJQUFSLFlBQUssRUFBRTs7b0RBQW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