{"size": 1481, "ext": "js", "max_stars_repo_path": "ExampleProject/App/surveillance/teamsurveillance.pipe.js", "max_stars_repo_name": "ehelse/Testsenter.Testdata", "max_stars_repo_stars_event_min_datetime": "2017-10-24T08:03:11.000Z", "max_stars_repo_stars_event_max_datetime": "2017-10-24T08:03:11.000Z", "max_issues_repo_path": "ExampleProject/App/surveillance/teamsurveillance.pipe.js", "max_issues_repo_name": "ehelse/Testsenter.Testdata", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "ExampleProject/App/surveillance/teamsurveillance.pipe.js", "max_forks_repo_name": "ehelse/Testsenter.Testdata", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 51.0689655172, "max_line_length": 153, "alphanum_fraction": 0.6529372046}
"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;
};
Object.defineProperty(exports, "__esModule", { value: true });
var core_1 = require("@angular/core");
/**
 * Tar inn en liste med personer med oppsatt varslinger samt en liste med prosjektmedlemmer. Retunerer de personene som har minst en varsling oppstatt
 * av en av medlemene i listen.
 */
var TeamFilterPipe = (function () {
    function TeamFilterPipe() {
    }
    TeamFilterPipe.prototype.transform = function (value, team) {
        if (value == undefined) {
            return new Array();
        }
        return value.filter(function (f) { return f.latestSurveillanceResults.some(function (res) { return team.indexOf(res.registeredBy) !== -1; }); });
    };
    TeamFilterPipe = __decorate([
        core_1.Pipe({ name: 'teamfilter' })
    ], TeamFilterPipe);
    return TeamFilterPipe;
}());
exports.TeamFilterPipe = TeamFilterPipe;
//# sourceMappingURL=teamsurveillance.pipe.js.map