"use strict";
var __extends = (this && this.__extends) || function (d, b) {
    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];
    function __() { this.constructor = d; }
    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
};
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 baseButton_1 = require("../baseButton");
var ButtonRouteComponent = (function (_super) {
    __extends(ButtonRouteComponent, _super);
    function ButtonRouteComponent() {
        var _this = _super !== null && _super.apply(this, arguments) || this;
        _this.activeClass = 'active';
        return _this;
    }
    Object.defineProperty(ButtonRouteComponent.prototype, "target", {
        get: function () {
            return this.newTab ? '_blank' : '_self';
        },
        enumerable: true,
        configurable: true
    });
    return ButtonRouteComponent;
}(baseButton_1.BaseButtonComponent));
__decorate([
    core_1.Input(),
    __metadata("design:type", String)
], ButtonRouteComponent.prototype, "link", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", String)
], ButtonRouteComponent.prototype, "activeClass", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", Boolean)
], ButtonRouteComponent.prototype, "newTab", void 0);
ButtonRouteComponent = __decorate([
    core_1.Component({
        selector: 'rlButtonRoute',
        template: require('./buttonRoute.html'),
        inputs: baseButton_1.baseInputs,
    })
], ButtonRouteComponent);
exports.ButtonRouteComponent = ButtonRouteComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uUm91dGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJidXR0b25Sb3V0ZS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7QUFBQSxzQ0FBaUQ7QUFFakQsNENBQWdFO0FBT2hFLElBQWEsb0JBQW9CO0lBQVMsd0NBQW1CO0lBTDdEO1FBQUEscUVBYUM7UUFOUyxpQkFBVyxHQUFXLFFBQVEsQ0FBQzs7SUFNekMsQ0FBQztJQUhBLHNCQUFJLHdDQUFNO2FBQVY7WUFDQyxNQUFNLENBQUMsSUFBSSxDQUFDLE1BQU0sR0FBRyxRQUFRLEdBQUcsT0FBTyxDQUFDO1FBQ3pDLENBQUM7OztPQUFBO0lBQ0YsMkJBQUM7QUFBRCxDQUFDLEFBUkQsQ0FBMEMsZ0NBQW1CLEdBUTVEO0FBUFM7SUFBUixZQUFLLEVBQUU7O2tEQUFjO0FBQ2I7SUFBUixZQUFLLEVBQUU7O3lEQUFnQztBQUMvQjtJQUFSLFlBQUssRUFBRTs7b0RBQWlCO0FBSGIsb0JBQW9CO0lBTGhDLGdCQUFTLENBQUM7UUFDVixRQUFRLEVBQUUsZUFBZTtRQUN6QixRQUFRLEVBQUUsT0FBTyxDQUFDLG9CQUFvQixDQUFDO1FBQ3ZDLE1BQU0sRUFBRSx1QkFBVTtLQUNsQixDQUFDO0dBQ1csb0JBQW9CLENBUWhDO0FBUlksb0RBQW9CIn0=