"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 lodash_1 = require("lodash");
var typescript_angular_utilities_1 = require("typescript-angular-utilities");
var __timezone = typescript_angular_utilities_1.services.timezone;
var InputsBootstrapper = (function () {
    function InputsBootstrapper(timezoneService) {
        var _this = this;
        this.getOptions = function () {
            return rxjs_1.Observable.of(_this.typeaheadOptions);
        };
        this.searchOptions = function (search) {
            return rxjs_1.Observable.of(lodash_1.filter(_this.typeaheadOptions, function (option) { return option.value.search(search) != -1; })).delay(1000);
        };
        this.createOption = function (text) {
            return { value: text };
        };
        timezoneService.setCurrentTimezone('-05:00');
        this.text = 'Something is already entered';
        this.options = [
            { value: 1 },
            { value: 2 },
            { value: 3 },
        ];
        this.selection = this.options[0];
        this.optionsAsync = rxjs_1.Observable.of(this.options).delay(1000);
        this.time = '8:00AM';
        this.typeaheadOptions = [
            { value: 'Option 1' },
            { value: 'Option 2' },
            { value: 'Option 3' },
            { value: 'Option 4' },
            { value: 'Option 5' },
        ];
        this.selections = [this.typeaheadOptions[0], this.typeaheadOptions[2]];
    }
    InputsBootstrapper.prototype.log = function (value) {
        console.log(value);
    };
    return InputsBootstrapper;
}());
InputsBootstrapper = __decorate([
    core_1.Component({
        selector: 'tsinputsBootstrapper',
        template: require('./inputsNg2.html'),
    }),
    __metadata("design:paramtypes", [__timezone.TimezoneService])
],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