text: System.register(['aurelia-framework', './services/builds-api', './services/screenshots-api'], function (_export) {
    var inject, BuildsApi, ScreenshotsApi, _classCallCheck, _createClass, Screenshots;
  
    return {
      setters: [function (_aureliaFramework) {
        inject = _aureliaFramework.inject;
      }, function (_servicesBuildsApi) {
        BuildsApi = _servicesBuildsApi.BuildsApi;
      }, function (_servicesScreenshotsApi) {
        ScreenshotsApi = _servicesScreenshotsApi.ScreenshotsApi;
      }],
      execute: function () {
        'use strict';
  
        _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
  
        _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
  
        Screenshots = (function () {
          function Screenshots(buildsApi, screenshotsApi) {
            _classCallCheck(this, _Screenshots);
  
            this.buildsApi = buildsApi;
            this.screenshotsApi = screenshotsApi;
          }
  
          var _Screenshots = Screenshots;
  
          _createClass(_Screenshots, [{
            key: 'activate',
            value: function activate(params, queryString, routeConfig) {
              var _this = this;
  
              var buildId = params.id;
              this.buildsApi.get(buildId).then(function (response) {
                var data = JSON.parse(response.response).data;
                _this.build = data[0];
              });
  
              this.screenshotsApi.get(buildId).then(function (response) {
                var data = JSON.parse(response.response).data;
                _this.screenshots = data;
              });
  
              this.showDiff = false;
            }
          }]);
  
          Screenshots = inject(BuildsApi, ScreenshotsApi)(Screenshots) || Screenshots;
          return Screenshots;
        })();
  
        _export('Screenshots', Screenshots);
      }
    };
  });
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInNjcmVlbnNob3RzLmpzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3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