import * as tslib_1 from "tslib";
import ADialog from './ADialog';
import { cssClass } from '../../styles';
/** @internal */
var ShowTopNDialog = /** @class */ (function (_super) {
    tslib_1.__extends(ShowTopNDialog, _super);
    function ShowTopNDialog(provider, dialog) {
        var _this = _super.call(this, dialog) || this;
        _this.provider = provider;
        return _this;
    }
    ShowTopNDialog.prototype.build = function (node) {
        var _this = this;
        node.classList.add(cssClass('dialog-rename'));
        node.insertAdjacentHTML('beforeend', "\n      <input type=\"number\" min=\"0\" step=\"1\" value=\"" + this.provider.getShowTopN() + "\">");
        this.findInput('input').onchange = function (evt) {
            var value = evt.currentTarget.valueAsNumber;
            _this.provider.setShowTopN(value);
        };
    };
    return ShowTopNDialog;
}(ADialog));
export default ShowTopNDialog;
//# sourceMappingURL=ShowTopNDialog.js.map