var __extends = (this && this.__extends) || (function () {
    var extendStatics = function (d, b) {
        extendStatics = Object.setPrototypeOf ||
            ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
            function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
        return extendStatics(d, b);
    };
    return function (d, b) {
        if (typeof b !== "function" && b !== null)
            throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
        extendStatics(d, b);
        function __() { this.constructor = d; }
        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
    };
})();
import BaseRenderer from "./base-renderer";
var HyperlinkRenderer = (function (_super) {
    __extends(HyperlinkRenderer, _super);
    function HyperlinkRenderer() {
        return _super !== null && _super.apply(this, arguments) || this;
    }
    HyperlinkRenderer.prototype.init = function (params) {
        _super.prototype.init.call(this, params);
        _super.prototype.setupGui.call(this);
    };
    HyperlinkRenderer.prototype.setupContentGui = function () {
        var href = this.getValueToDisplay();
        if ((href === null || href === void 0 ? void 0 : href.length) > 0) {
            return "\n                <ui-button class='ui-btn__ag-grid' size='lg' icon='digi-arrow-circle-right' type='ghost' click.delegate='openLink()'>\n                </ui-button>\n            ";
        }
        return '';
    };
    HyperlinkRenderer.prototype.openLink = function () {
        window.open(this.getValueToDisplay(), this.params.linkInNewTab ? "_blank" : "_self");
    };
    return HyperlinkRenderer;
}(BaseRenderer));
export default HyperlinkRenderer;

//# sourceMappingURL=hyperlink-renderer.js.map
