"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 ButtonLinkComponent = (function (_super) {
    __extends(ButtonLinkComponent, _super);
    function ButtonLinkComponent() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    Object.defineProperty(ButtonLinkComponent.prototype, "target", {
        get: function () {
            return this.newTab ? '_blank' : '_self';
        },
        enumerable: true,
        configurable: true
    });
    return ButtonLinkComponent;
}(baseButton_1.BaseButtonComponent));
__decorate([
    core_1.Input(),
    __metadata("design:type", String)
], ButtonLinkComponent.prototype, "link", void 0);
__decorate([
    core_1.Input(),
    __metadata("design:type", Boolean)
], ButtonLinkComponent.prototype, "newTab", void 0);
ButtonLinkComponent = __decorate([
    core_1.Component({
        selector: 'rlButtonLink',
        template: require('./buttonLink.html'),
        inputs: baseButton_1.baseInputs,
    })
], ButtonLinkComponent);
exports.ButtonLinkComponent = ButtonLinkComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uTGluay5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbImJ1dHRvbkxpbmsudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7Ozs7Ozs7O0FBQUEsc0NBQWlEO0FBRWpELDRDQUFnRTtBQU9oRSxJQUFhLG1CQUFtQjtJQUFTLHVDQUFtQjtJQUE1RDs7SUFPQSxDQUFDO0lBSEEsc0JBQUksdUNBQU07YUFBVjtZQUNDLE1BQU0sQ0FBQyxJQUFJLENBQUMsTUFBTSxHQUFHLFFBQVEsR0FBRyxPQUFPLENBQUM7UUFDekMsQ0FBQzs7O09BQUE7SUFDRiwwQkFBQztBQUFELENBQUMsQUFQRCxDQUF5QyxnQ0FBbUIsR0FPM0Q7QUFOUztJQUFSLFlBQUssRUFBRTs7aURBQWM7QUFDYjtJQUFSLFlBQUssRUFBRTs7bURBQWlCO0FBRmIsbUJBQW1CO0lBTC9CLGdCQUFTLENBQUM7UUFDVixRQUFRLEVBQUUsY0FBYztRQUN4QixRQUFRLEVBQUUsT0FBTyxDQUFDLG1CQUFtQixDQUFDO1FBQ3RDLE1BQU0sRUFBRSx1QkFBVTtLQUNsQixDQUFDO0dBQ1csbUJBQW1CLENBTy9CO0FBUFksa0RBQW1CIn0=