import * as tslib_1 from "tslib";
import { EAdvancedSortMethod } from '../../model';
import ADialog from './ADialog';
import { sortMethods } from './utils';
/** @internal */
var ReduceDialog = /** @class */ (function (_super) {
    tslib_1.__extends(ReduceDialog, _super);
    function ReduceDialog(column, dialog) {
        var _this = _super.call(this, dialog) || this;
        _this.column = column;
        return _this;
    }
    ReduceDialog.prototype.build = function (node) {
        var _this = this;
        var wrapper = {
            getSortMethod: function () { return _this.column.getReduce(); },
            setSortMethod: function (s) { return _this.column.setReduce(s); }
        };
        sortMethods(node, wrapper, Object.keys(EAdvancedSortMethod));
    };
    return ReduceDialog;
}(ADialog));
export default ReduceDialog;
//# sourceMappingURL=ReduceDialog.js.map