define(["require", "exports", "../ScreenSizeDetection"], function (require, exports, ScreenSizeDetection_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    var PaginationController = /** @class */ (function () {
        function PaginationController($timeout) {
            this.$timeout = $timeout;
            this.controlsMaxSize = 9;
            this.subscribeObservables();
        }
        PaginationController.prototype.subscribeObservables = function () {
            var _this = this;
            ScreenSizeDetection_1.default.get().subscribe(function (screensize) {
                var controlsMaxSize;
                if (screensize === 'xs' || screensize === 'sm') {
                    controlsMaxSize = 5;
                }
                else {
                    controlsMaxSize = 9;
                }
                _this.$timeout(function () {
                    _this.controlsMaxSize = controlsMaxSize;
                });
            });
        };
        return PaginationController;
    }());
    exports.PaginationController = PaginationController;
});
//# sourceMappingURL=pagination.controller.js.map