text: System.register(["aurelia-http-client"], function (_export) {
    "use strict";
  
    var HttpClient, _prototypeProperties, _classCallCheck, url, Flickr;
    return {
      setters: [function (_aureliaHttpClient) {
        HttpClient = _aureliaHttpClient.HttpClient;
      }],
      execute: function () {
        _prototypeProperties = function (child, staticProps, instanceProps) { if (staticProps) Object.defineProperties(child, staticProps); if (instanceProps) Object.defineProperties(child.prototype, instanceProps); };
  
        _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } };
  
        url = "http://api.flickr.com/services/feeds/photos_public.gne?tags=rainier&tagmode=any&format=json";
        Flickr = _export("Flickr", (function () {
          function Flickr(http) {
            _classCallCheck(this, Flickr);
  
            this.heading = "Flickr";
            this.images = [];
            this.http = http;
          }
  
          _prototypeProperties(Flickr, {
            inject: {
              value: function inject() {
                return [HttpClient];
              },
              writable: true,
              configurable: true
            }
          }, {
            activate: {
              value: function activate() {
                var _this = this;
                return this.http.jsonp(url).then(function (response) {
                  _this.images = response.content.items;
                });
              },
              writable: true,
              configurable: true
            },
            canDeactivate: {
              value: function canDeactivate() {
                return confirm("Are you sure you want to leave?");
              },
              writable: true,
              configurable: true
            }
          });
  
          return Flickr;
        })());
      }
    };
  });
  //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImZsaWNrci5qcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7TUFBUSxVQUFVLHlDQUVkLEdBQUcsRUFFTSxNQUFNOzs7QUFKWCxnQkFBVSxzQkFBVixVQUFVOzs7Ozs7O0FBRWQsU0FBRyxHQUFHLDZGQUE2RjtBQUUxRixZQUFNO0FBRU4saUJBRkEsTUFBTSxDQUVMLElBQUk7Z0NBRkwsTUFBTTs7QUFHZixjQUFJLENBQUMsT0FBTyxHQUFHLFFBQVEsQ0FBQztBQUN4QixjQUFJLENBQUMsTUFBTSxHQUFHLEVBQUUsQ0FBQztBQUNqQixjQUFJLENBQUMsSUFBSSxHQUFHLElBQUksQ0FBQztTQUNsQjs7NkJBTlUsTUFBTTtBQUNWLGdCQUFNO21CQUFBLGtCQUFHO0FBQUUscUJBQU8sQ0FBQyxVQUFVLENBQUMsQ0FBQzthQUFFOzs7OztBQU94QyxrQkFBUTttQkFBQSxvQkFBRTs7QUFDUixxQkFBTyxJQUFJLENBQUMsSUFBSSxDQUFDLEtBQUssQ0FBQyxHQUFHLENBQUMsQ0FBQyxJQUFJLENBQUMsVUFBQSxRQUFRLEVBQUk7QUFDM0Msc0JBQUssTUFBTSxHQUFHLFFBQVEsQ0FBQyxPQUFPLENBQUMsS0FBSyxDQUFDO2VBQ3RDLENBQUMsQ0FBQzthQUNKOzs7O0FBRUQsdUJBQWE7bUJBQUEseUJBQUU7QUFDYixxQkFBTyxPQUFPLENBQUMsaUNBQWlDLENBQUMsQ0FBQzthQUNuRDs7Ozs7O2VBaEJVLE1BQU0iLCJmaWxlIjoiZmxpY2tyLmpzIiwic291cmNlUm9vdCI6Ii9zcmMvIn0=