"use strict";
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 $ = require("jquery");
var WindowService = (function () {
    function WindowService() {
        this.windowControl = $(window);
    }
    WindowService.prototype.resize = function (callback) {
        this.windowControl.resize(callback);
    };
    WindowService.prototype.scrollTop = function () {
        return this.windowControl.scrollTop();
    };
    WindowService.prototype.scroll = function (handler) {
        this.windowControl.scroll(handler);
    };
    WindowService.prototype.height = function () {
        return this.windowControl.height();
    };
    return WindowService;
}());
WindowService = __decorate([
    core_1.Injectable(),
    __metadata("design:paramtypes", [])
], WindowService);
exports.WindowService = WindowService;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoid2luZG93V3JhcHBlci5zZXJ2aWNlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsid2luZG93V3JhcHBlci5zZXJ2aWNlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiI7Ozs7Ozs7Ozs7QUFBQSxzQ0FBMkM7QUFDM0MsMEJBQTRCO0FBYzVCLElBQWEsYUFBYTtJQUd6QjtRQUNDLElBQUksQ0FBQyxhQUFhLEdBQUcsQ0FBQyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ2hDLENBQUM7SUFFRCw4QkFBTSxHQUFOLFVBQU8sUUFBNkM7UUFDbkQsSUFBSSxDQUFDLGFBQWEsQ0FBQyxNQUFNLENBQUMsUUFBUSxDQUFDLENBQUM7SUFDckMsQ0FBQztJQUVELGlDQUFTLEdBQVQ7UUFDQyxNQUFNLENBQUMsSUFBSSxDQUFDLGFBQWEsQ0FBQyxTQUFTLEVBQUUsQ0FBQztJQUN2QyxDQUFDO0lBRUQsOEJBQU0sR0FBTixVQUFPLE9BQXVCO1FBQzdCLElBQUksQ0FBQyxhQUFhLENBQUMsTUFBTSxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ3BDLENBQUM7SUFFRCw4QkFBTSxHQUFOO1FBQ0MsTUFBTSxDQUFDLElBQUksQ0FBQyxhQUFhLENBQUMsTUFBTSxFQUFFLENBQUM7SUFDcEMsQ0FBQztJQUNGLG9CQUFDO0FBQUQsQ0FBQyxBQXRCRCxJQXNCQztBQXRCWSxhQUFhO0lBRHpCLGlCQUFVLEVBQUU7O0dBQ0EsYUFBYSxDQXNCekI7QUF0Qlksc0NBQWEifQ==