text: 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);
  };
  import { Component } from '@angular/core';
  import { NavParams } from 'ionic-angular';
  import { ConferenceData } from '../../providers/conference-data';
  var SessionDetailPage = (function () {
      function SessionDetailPage(dataProvider, navParams) {
          this.dataProvider = dataProvider;
          this.navParams = navParams;
      }
      SessionDetailPage.prototype.ionViewWillEnter = function () {
          var _this = this;
          this.dataProvider.load().subscribe(function (data) {
              if (data &&
                  data.schedule &&
                  data.schedule[0] &&
                  data.schedule[0].groups) {
                  for (var _i = 0, _a = data.schedule[0].groups; _i < _a.length; _i++) {
                      var group = _a[_i];
                      if (group && group.sessions) {
                          for (var _b = 0, _c = group.sessions; _b < _c.length; _b++) {
                              var session = _c[_b];
                              if (session && session.id === _this.navParams.data.sessionId) {
                                  _this.session = session;
                                  break;
                              }
                          }
                      }
                  }
              }
          });
      };
      SessionDetailPage = __decorate([
          Component({
              selector: 'page-session-detail',template:/*ion-inline-start:"/Users/Contence/locale/src/pages/session-detail/session-detail.html"*/'<ion-header>\n  <ion-navbar>\n    <ion-title *ngIf="session">{{session.name}}</ion-title>\n  </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n  <div *ngIf="session">\n    <h1>{{session.name}}</h1>\n    <h4 *ngFor="let speaker of session?.speakers">\n    {{speaker.name}}\n  </h4>\n    <p>\n      {{session.timeStart}} - {{session.timeEnd}}\n    </p>\n    <p>{{session.location}}</p>\n    <p>{{session.description}}</p>\n  </div>\n</ion-content>\n'/*ion-inline-end:"/Users/Contence/locale/src/pages/session-detail/session-detail.html"*/
          }),
          __metadata("design:paramtypes", [ConferenceData,
              NavParams])
      ], SessionDetailPage);
      return SessionDetailPage;
  }());
  export { SessionDetailPage };
  //# sourceMappingURL=session-detail.js.map