"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 popoutList_service_1 = require("./popoutList.service");
var PopoutItemComponent = (function () {
    function PopoutItemComponent(list) {
        this.trigger = new core_1.EventEmitter();
        this.list = list;
    }
    Object.defineProperty(PopoutItemComponent.prototype, "focused", {
        get: function () {
            return this.list.isFocused(this);
        },
        enumerable: true,
        configurable: true
    });
    PopoutItemComponent.prototype.focus = function () {
        this.list.focus(this);
    };
    PopoutItemComponent.prototype.blur = function () {
        this.list.blur();
    };
    PopoutItemComponent.prototype.select = function () {
        this.list.selectCurrent();
    };
    return PopoutItemComponent;
}());
__decorate([
    core_1.Output(),
    __metadata("design:type", core_1.EventEmitter)
], PopoutItemComponent.prototype, "trigger", void 0);
PopoutItemComponent = __decorate([
    core_1.Component({
        selector: 'rlPopoutItem',
        template: require('./popoutItem.html'),
    }),
    __metadata("design:paramtypes", [popoutList_service_1.PopoutListService])
], PopoutItemComponent);
exports.PopoutItemComponent = PopoutItemComponent;
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicG9wb3V0SXRlbS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbInBvcG91dEl0ZW0udHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7Ozs7Ozs7OztBQUFBLHNDQUFnRTtBQUVoRSwyREFBeUQ7QUFNekQ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