"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 rxjs_1 = require("rxjs");
var busy_1 = require("../../source/components/busy/busy");
var MiscNgContextBootstrapper = (function () {
    function MiscNgContextBootstrapper() {
        this.width = 100;
        this.value = 0;
    }
    MiscNgContextBootstrapper.prototype.wait = function () {
        return rxjs_1.Observable.of(null).delay(1000);
    };
    MiscNgContextBootstrapper.prototype.toggle = function () {
        this.busy2.waitOn(!this.busy2.loading);
    };
    return MiscNgContextBootstrapper;
}());
__decorate([
    core_1.ViewChild('busy2'),
    __metadata("design:type", busy_1.BusyComponent)
], MiscNgContextBootstrapper.prototype, "busy2", void 0);
MiscNgContextBootstrapper = __decorate([
    core_1.Component({
        selector: 'tsMiscNgContext',
        template: require('./miscNg2Context.html'),
    })
], MiscNgContextBootstrapper);
exports.MiscNgContextBootstrapper = MiscNgContextBootstrapper;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibWlzY05nMkNvbnRleHQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyJtaXNjTmcyQ29udGV4dC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7O0FBQUEsc0NBQXFEO0FBQ3JELDZCQUEyQztBQUUzQywwREFBa0U7QUFNbEUsSUFBYSx5QkFBeUI7SUFKdEM7UUFNQyxVQUFLLEdBQVcsR0FBRyxDQUFDO1FBQ3BCLFVBQUssR0FBVyxDQUFDLENBQUM7SUFTbkIsQ0FBQztJQVBBLHdDQUFJLEdBQUo7UUFDQyxNQUFNLENBQUMsaUJBQVUsQ0FBQyxFQUFFLENBQUMsSUFBSSxDQUFDLENBQUMsS0FBSyxDQUFDLElBQUksQ0FBQyxDQUFDO0lBQ3hDLENBQUM7SUFFRCwwQ0FBTSxHQUFOO1FBQ0MsSUFBSSxDQUFDLEtBQUssQ0FBQyxNQUFNLENBQUMsQ0FBQyxJQUFJLENBQUMsS0FBSyxDQUFDLE9BQU8sQ0FBQyxDQUFDO0lBQ3hDLENBQUM7SUFDRixnQ0FBQztBQUFELENBQUMsQUFaRCxJQVlDO0FBWG9CO0lBQW5CLGdCQUFTLENBQUMsT0FBTyxDQUFDOzhCQUFRLG9CQUFhO3dEQUFDO0FBRDdCLHlCQUF5QjtJQUpyQyxnQkFBUyxDQUFDO1FBQ1YsUUFBUSxFQUFFLGlCQUFpQjtRQUMzQixRQUFRLEVBQUUsT0FBTyxDQUFDLHVCQUF1QixDQUFDO0tBQzFDLENBQUM7R0FDVyx5QkFBeUIsQ0FZckM7QUFaWSw4REFBeUIifQ==