text: webpackJsonp([14],{
  
  /***/ 117:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Api; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(125);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__models_Costants__ = __webpack_require__(219);
  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);
  };
  
  
  
  /**
   * Api is a generic REST Api handler. Set your API url first.
   */
  var Api = (function () {
      function Api(http) {
          this.http = http;
          this.url = __WEBPACK_IMPORTED_MODULE_2__models_Costants__["i" /* URL_BASE_API */];
      }
      Api.prototype.get = function (endpoint, params, reqOpts) {
          if (!reqOpts) {
              reqOpts = {
                  params: new __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["c" /* HttpParams */]()
              };
          }
          // Support easy query params for GET requests
          if (params) {
              reqOpts.params = new __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["c" /* HttpParams */]();
              for (var k in params) {
                  reqOpts.params.set(k, params[k]);
              }
          }
          return this.http.get(this.url + '/' + endpoint, reqOpts);
      };
      Api.prototype.post = function (endpoint, body, reqOpts) {
          return this.http.post(this.url + '/' + endpoint, body, reqOpts);
      };
      Api.prototype.put = function (endpoint, body, reqOpts) {
          return this.http.put(this.url + '/' + endpoint, body, reqOpts);
      };
      Api.prototype.delete = function (endpoint, reqOpts) {
          return this.http.delete(this.url + '/' + endpoint, reqOpts);
      };
      Api.prototype.patch = function (endpoint, body, reqOpts) {
          return this.http.put(this.url + '/' + endpoint, body, reqOpts);
      };
      return Api;
  }());
  Api = __decorate([
      Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["B" /* Injectable */])(),
      __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]])
  ], Api);
  
  //# sourceMappingURL=api.js.map
  
  /***/ }),
  
  /***/ 124:
  /***/ (function(module, exports) {
  
  function webpackEmptyAsyncContext(req) {
  	// Here Promise.resolve().then() is used instead of new Promise() to prevent
  	// uncatched exception popping up in devtools
  	return Promise.resolve().then(function() {
  		throw new Error("Cannot find module '" + req + "'.");
  	});
  }
  webpackEmptyAsyncContext.keys = function() { return []; };
  webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
  module.exports = webpackEmptyAsyncContext;
  webpackEmptyAsyncContext.id = 124;
  
  /***/ }),
  
  /***/ 173:
  /***/ (function(module, exports, __webpack_require__) {
  
  var map = {
  	"../pages/cards/cards.module": [
  		307,
  		13
  	],
  	"../pages/content/content.module": [
  		308,
  		12
  	],
  	"../pages/item-create/item-create.module": [
  		309,
  		11
  	],
  	"../pages/item-detail/item-detail.module": [
  		310,
  		10
  	],
  	"../pages/list-master/list-master.module": [
  		311,
  		9
  	],
  	"../pages/login/login.module": [
  		312,
  		8
  	],
  	"../pages/menu/menu.module": [
  		313,
  		7
  	],
  	"../pages/profile/profile.module": [
  		306,
  		6
  	],
  	"../pages/search/search.module": [
  		317,
  		5
  	],
  	"../pages/settings/settings.module": [
  		314,
  		4
  	],
  	"../pages/signup/signup.module": [
  		315,
  		3
  	],
  	"../pages/tabs/tabs.module": [
  		316,
  		2
  	],
  	"../pages/tutorial/tutorial.module": [
  		318,
  		1
  	],
  	"../pages/welcome/welcome.module": [
  		319,
  		0
  	]
  };
  function webpackAsyncContext(req) {
  	var ids = map[req];
  	if(!ids)
  		return Promise.reject(new Error("Cannot find module '" + req + "'."));
  	return __webpack_require__.e(ids[1]).then(function() {
  		return __webpack_require__(ids[0]);
  	});
  };
  webpackAsyncContext.keys = function webpackAsyncContextKeys() {
  	return Object.keys(map);
  };
  webpackAsyncContext.id = 173;
  module.exports = webpackAsyncContext;
  
  /***/ }),
  
  /***/ 174:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Items; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__models_item__ = __webpack_require__(284);
  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 Items = (function () {
      function Items() {
          this.items = [];
          this.defaultItem = {
              "name": "Burt Bear",
              "profilePic": "assets/img/speakers/bear.jpg",
              "about": "Burt is a Bear.",
          };
          var items = [
              {
                  "name": "Burt Bear",
                  "profilePic": "assets/img/speakers/bear.jpg",
                  "about": "Burt is a Bear."
              },
              {
                  "name": "Charlie Cheetah",
                  "profilePic": "assets/img/speakers/cheetah.jpg",
                  "about": "Charlie is a Cheetah."
              },
              {
                  "name": "Donald Duck",
                  "profilePic": "assets/img/speakers/duck.jpg",
                  "about": "Donald is a Duck."
              },
              {
                  "name": "Eva Eagle",
                  "profilePic": "assets/img/speakers/eagle.jpg",
                  "about": "Eva is an Eagle."
              },
              {
                  "name": "Ellie Elephant",
                  "profilePic": "assets/img/speakers/elephant.jpg",
                  "about": "Ellie is an Elephant."
              },
              {
                  "name": "Molly Mouse",
                  "profilePic": "assets/img/speakers/mouse.jpg",
                  "about": "Molly is a Mouse."
              },
              {
                  "name": "Paul Puppy",
                  "profilePic": "assets/img/speakers/puppy.jpg",
                  "about": "Paul is a Puppy."
              }
          ];
          for (var _i = 0, items_1 = items; _i < items_1.length; _i++) {
              var item = items_1[_i];
              this.items.push(new __WEBPACK_IMPORTED_MODULE_1__models_item__["a" /* Item */](item));
          }
      }
      Items.prototype.query = function (params) {
          if (!params) {
              return this.items;
          }
          return this.items.filter(function (item) {
              for (var key in params) {
                  var field = item[key];
                  if (typeof field == 'string' && field.toLowerCase().indexOf(params[key].toLowerCase()) >= 0) {
                      return item;
                  }
                  else if (field == params[key]) {
                      return item;
                  }
              }
              return null;
          });
      };
      Items.prototype.add = function (item) {
          this.items.push(item);
      };
      Items.prototype.delete = function (item) {
          this.items.splice(this.items.indexOf(item), 1);
      };
      return Items;
  }());
  Items = __decorate([
      Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["B" /* Injectable */])(),
      __metadata("design:paramtypes", [])
  ], Items);
  
  //# sourceMappingURL=items.js.map
  
  /***/ }),
  
  /***/ 215:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return FirstRunPage; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return MainPage; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return Tab1Root; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return Tab2Root; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return Tab3Root; });
  // The page the user lands on after opening the app and without a session
  // The page the user lands on after opening the app and without a session
  var FirstRunPage = 'TutorialPage';
  // The main page the user will see as they use the app over a long period of time.
  // Change this if not using tabs
  var MainPage = 'TabsPage';
  // The initial root pages for our tabs (remove if not using tabs)
  var Tab1Root = 'ListMasterPage';
  var Tab2Root = 'SearchPage';
  var Tab3Root = 'SettingsPage';
  //# sourceMappingURL=pages.js.map
  
  /***/ }),
  
  /***/ 219:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "i", function() { return URL_BASE_API; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "k", function() { return URL_LIST_PROVIDERS; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "j", function() { return URL_LIST_AUTHSPID; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "e", function() { return LABEL_LOADING_GENERIC; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LABEL_ALERT_ERROR; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return LABEL_ALERT_ERROR_BROWSER; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return LABEL_ALERT_ERROR_REST; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return LABEL_ALERT_ERROR_SPID_LOGIN; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "f", function() { return LABEL_OK_BUTTON; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "g", function() { return MOCK_ENABLED; });
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "h", function() { return MOCK_ONLY_POSTEID; });
  /**
   * Created by vivad on 07/10/17.
   */
  //export const URL_BASE_API = "http://23.101.73.129:8080";
  //export const URL_LIST_PROVIDERS = "/list-providers";
  //export const URL_LIST_AUTHSPID = "auth-spid?entityId=";
  //auth-spid?entityId=prova
  /**
   * Created by vivad on 07/10/17.
   */ var URL_BASE_API = "http://www.mocky.io/v2";
  var URL_LIST_PROVIDERS = "59d8e6020f00006d122a2483";
  var URL_LIST_AUTHSPID = "59d95ff0100000a606caf130?entityId=";
  var LABEL_LOADING_GENERIC = "Completamento operazione...";
  var LABEL_ALERT_ERROR = "Errore";
  var LABEL_ALERT_ERROR_BROWSER = "Errore nel caricamento della pagina web del Provider selezionato";
  var LABEL_ALERT_ERROR_REST = "Problemi nel contattare il server remoto";
  var LABEL_ALERT_ERROR_SPID_LOGIN = "Problemi con l'autenticazione del Provider selezionato";
  var LABEL_OK_BUTTON = "Ok";
  var MOCK_ENABLED = true;
  var MOCK_ONLY_POSTEID = true;
  //# sourceMappingURL=Costants.js.map
  
  /***/ }),
  
  /***/ 245:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(246);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(250);
  
  
  Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
  //# sourceMappingURL=main.js.map
  
  /***/ }),
  
  /***/ 250:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* unused harmony export createTranslateLoader */
  /* unused harmony export provideSettings */
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_common_http__ = __webpack_require__(125);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser__ = __webpack_require__(29);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_camera__ = __webpack_require__(231);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_splash_screen__ = __webpack_require__(128);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__ionic_native_status_bar__ = __webpack_require__(129);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__ionic_storage__ = __webpack_require__(130);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__ngx_translate_core__ = __webpack_require__(112);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__ngx_translate_http_loader__ = __webpack_require__(263);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9_ionic_angular__ = __webpack_require__(111);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__mocks_providers_items__ = __webpack_require__(174);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__providers_providers__ = __webpack_require__(43);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__app_component__ = __webpack_require__(305);
  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;
  };
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  
  // The translate loader needs to know where to load i18n files
  // in Ionic's static asset pipeline.
  function createTranslateLoader(http) {
      return new __WEBPACK_IMPORTED_MODULE_8__ngx_translate_http_loader__["a" /* TranslateHttpLoader */](http, './assets/i18n/', '.json');
  }
  function provideSettings(storage) {
      /**
       * The Settings provider takes a set of default settings for your app.
       *
       * You can add new settings options at any time. Once the settings are saved,
       * these values will not overwrite the saved values (this can be done manually if desired).
       */
      return new __WEBPACK_IMPORTED_MODULE_11__providers_providers__["c" /* Settings */](storage, {
          option1: true,
          option2: 'Ionitron J. Framework',
          option3: '3',
          option4: 'Hello'
      });
  }
  var AppModule = (function () {
      function AppModule() {
      }
      return AppModule;
  }());
  AppModule = __decorate([
      Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["L" /* NgModule */])({
          declarations: [
              __WEBPACK_IMPORTED_MODULE_12__app_component__["a" /* MyApp */]
          ],
          imports: [
              __WEBPACK_IMPORTED_MODULE_2__angular_platform_browser__["a" /* BrowserModule */],
              __WEBPACK_IMPORTED_MODULE_0__angular_common_http__["b" /* HttpClientModule */],
              __WEBPACK_IMPORTED_MODULE_7__ngx_translate_core__["b" /* TranslateModule */].forRoot({
                  loader: {
                      provide: __WEBPACK_IMPORTED_MODULE_7__ngx_translate_core__["a" /* TranslateLoader */],
                      useFactory: (createTranslateLoader),
                      deps: [__WEBPACK_IMPORTED_MODULE_0__angular_common_http__["a" /* HttpClient */]]
                  }
              }),
              __WEBPACK_IMPORTED_MODULE_9_ionic_angular__["e" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_12__app_component__["a" /* MyApp */], {}, {
                  links: [
                      { loadChildren: '../pages/cards/cards.module#CardsPageModule', name: 'CardsPage', segment: 'cards', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/content/content.module#ContentPageModule', name: 'ContentPage', segment: 'content', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/item-create/item-create.module#ItemCreatePageModule', name: 'ItemCreatePage', segment: 'item-create', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/item-detail/item-detail.module#ItemDetailPageModule', name: 'ItemDetailPage', segment: 'item-detail', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/list-master/list-master.module#ListMasterPageModule', name: 'ListMasterPage', segment: 'list-master', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/login/login.module#LoginPageModule', name: 'LoginPage', segment: 'login', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/menu/menu.module#MenuPageModule', name: 'MenuPage', segment: 'menu', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/profile/profile.module#ProfilePageModule', name: 'ProfilePage', segment: 'profile', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/settings/settings.module#SettingsPageModule', name: 'SettingsPage', segment: 'settings', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/signup/signup.module#SignupPageModule', name: 'SignupPage', segment: 'signup', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/tabs/tabs.module#TabsPageModule', name: 'TabsPage', segment: 'tabs', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/search/search.module#SearchPageModule', name: 'SearchPage', segment: 'search', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/tutorial/tutorial.module#TutorialPageModule', name: 'TutorialPage', segment: 'tutorial', priority: 'low', defaultHistory: [] },
                      { loadChildren: '../pages/welcome/welcome.module#WelcomePageModule', name: 'WelcomePage', segment: 'welcome', priority: 'low', defaultHistory: [] }
                  ]
              }),
              __WEBPACK_IMPORTED_MODULE_6__ionic_storage__["a" /* IonicStorageModule */].forRoot()
          ],
          bootstrap: [__WEBPACK_IMPORTED_MODULE_9_ionic_angular__["c" /* IonicApp */]],
          entryComponents: [
              __WEBPACK_IMPORTED_MODULE_12__app_component__["a" /* MyApp */]
          ],
          providers: [
              __WEBPACK_IMPORTED_MODULE_11__providers_providers__["a" /* Api */],
              __WEBPACK_IMPORTED_MODULE_10__mocks_providers_items__["a" /* Items */],
              __WEBPACK_IMPORTED_MODULE_11__providers_providers__["d" /* User */],
              __WEBPACK_IMPORTED_MODULE_3__ionic_native_camera__["a" /* Camera */],
              __WEBPACK_IMPORTED_MODULE_4__ionic_native_splash_screen__["a" /* SplashScreen */],
              __WEBPACK_IMPORTED_MODULE_5__ionic_native_status_bar__["a" /* StatusBar */],
              { provide: __WEBPACK_IMPORTED_MODULE_11__providers_providers__["c" /* Settings */], useFactory: provideSettings, deps: [__WEBPACK_IMPORTED_MODULE_6__ionic_storage__["b" /* Storage */]] },
              // Keep this to enable Ionic's runtime error handling during development
              { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["v" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_9_ionic_angular__["d" /* IonicErrorHandler */] }
          ]
      })
  ], AppModule);
  
  //# sourceMappingURL=app.module.js.map
  
  /***/ }),
  
  /***/ 284:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Item; });
  /**
   * A generic model that our Master-Detail pages list, create, and delete.
   *
   * Change "Item" to the noun your app will use. For example, a "Contact," or a
   * "Customer," or a "Animal," or something like that.
   *
   * The Items service manages creating instances of Item, so go ahead and rename
   * that something that fits your app as well.
   */
  var Item = (function () {
      function Item(fields) {
          // Quick and dirty extend/assign fields to this model
          for (var f in fields) {
              this[f] = fields[f];
          }
      }
      return Item;
  }());
  
  //# sourceMappingURL=item.js.map
  
  /***/ }),
  
  /***/ 285:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Settings; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ionic_storage__ = __webpack_require__(130);
  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);
  };
  
  
  /**
   * A simple settings/config class for storing key/value pairs with persistence.
   */
  var Settings = (function () {
      function Settings(storage, defaults) {
          this.storage = storage;
          this.SETTINGS_KEY = '_settings';
          this._defaults = defaults;
      }
      Settings.prototype.load = function () {
          var _this = this;
          return this.storage.get(this.SETTINGS_KEY).then(function (value) {
              if (value) {
                  _this.settings = value;
                  return _this._mergeDefaults(_this._defaults);
              }
              else {
                  return _this.setAll(_this._defaults).then(function (val) {
                      _this.settings = val;
                  });
              }
          });
      };
      Settings.prototype._mergeDefaults = function (defaults) {
          for (var k in defaults) {
              if (!(k in this.settings)) {
                  this.settings[k] = defaults[k];
              }
          }
          return this.setAll(this.settings);
      };
      Settings.prototype.merge = function (settings) {
          for (var k in settings) {
              this.settings[k] = settings[k];
          }
          return this.save();
      };
      Settings.prototype.setValue = function (key, value) {
          this.settings[key] = value;
          return this.storage.set(this.SETTINGS_KEY, this.settings);
      };
      Settings.prototype.setAll = function (value) {
          return this.storage.set(this.SETTINGS_KEY, value);
      };
      Settings.prototype.getValue = function (key) {
          return this.storage.get(this.SETTINGS_KEY)
              .then(function (settings) {
              return settings[key];
          });
      };
      Settings.prototype.save = function () {
          return this.setAll(this.settings);
      };
      Object.defineProperty(Settings.prototype, "allSettings", {
          get: function () {
              return this.settings;
          },
          enumerable: true,
          configurable: true
      });
      return Settings;
  }());
  Settings = __decorate([
      Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["B" /* Injectable */])(),
      __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__ionic_storage__["b" /* Storage */], Object])
  ], Settings);
  
  //# sourceMappingURL=settings.js.map
  
  /***/ }),
  
  /***/ 286:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return User; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_add_operator_toPromise__ = __webpack_require__(244);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0_rxjs_add_operator_toPromise___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_0_rxjs_add_operator_toPromise__);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__api_api__ = __webpack_require__(117);
  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);
  };
  
  
  
  /**
   * Most apps have the concept of a User. This is a simple provider
   * with stubs for login/signup/etc.
   *
   * This User provider makes calls to our API at the `login` and `signup` endpoints.
   *
   * By default, it expects `login` and `signup` to return a JSON object of the shape:
   *
   * ```json
   * {
   *   status: 'success',
   *   user: {
   *     // User fields your app needs, like "id", "name", "email", etc.
   *   }
   * }Ø
   * ```
   *
   * If the `status` field is not `success`, then an error is detected and returned.
   */
  var User = (function () {
      function User(api) {
          this.api = api;
      }
      /**
       * Send a POST request to our login endpoint with the data
       * the user entered on the form.
       */
      User.prototype.login = function (accountInfo) {
          var _this = this;
          var seq = this.api.post('login', accountInfo).share();
          seq.subscribe(function (res) {
              // If the API returned a successful response, mark the user as logged in
              if (res.status == 'success') {
                  _this._loggedIn(res);
              }
              else {
              }
          }, function (err) {
              console.error('ERROR', err);
          });
          return seq;
      };
      /**
       * Send a POST request to our signup endpoint with the data
       * the user entered on the form.
       */
      User.prototype.signup = function (accountInfo) {
          var _this = this;
          var seq = this.api.post('signup', accountInfo).share();
          seq.subscribe(function (res) {
              // If the API returned a successful response, mark the user as logged in
              if (res.status == 'success') {
                  _this._loggedIn(res);
              }
          }, function (err) {
              console.error('ERROR', err);
          });
          return seq;
      };
      /**
       * Log the user out, which forgets the session
       */
      User.prototype.logout = function () {
          this._user = null;
      };
      /**
       * Process a login/signup response to store user data
       */
      User.prototype._loggedIn = function (resp) {
          this._user = resp.user;
      };
      return User;
  }());
  User = __decorate([
      Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["B" /* Injectable */])(),
      __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_2__api_api__["a" /* Api */]])
  ], User);
  
  //# sourceMappingURL=user.js.map
  
  /***/ }),
  
  /***/ 305:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(0);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__ionic_native_splash_screen__ = __webpack_require__(128);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(129);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ngx_translate_core__ = __webpack_require__(112);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_ionic_angular__ = __webpack_require__(111);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__pages_pages__ = __webpack_require__(215);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__providers_providers__ = __webpack_require__(43);
  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 MyApp = (function () {
      function MyApp(translate, platform, settings, config, statusBar, splashScreen) {
          var _this = this;
          this.translate = translate;
          this.config = config;
          this.statusBar = statusBar;
          this.splashScreen = splashScreen;
          this.rootPage = __WEBPACK_IMPORTED_MODULE_5__pages_pages__["a" /* FirstRunPage */];
          this.pages = [
              { title: 'Tutorial', component: 'TutorialPage' },
              { title: 'Welcome', component: 'WelcomePage' },
              { title: 'Tabs', component: 'TabsPage' },
              { title: 'Cards', component: 'CardsPage' },
              { title: 'Content', component: 'ContentPage' },
              { title: 'Login', component: 'LoginPage' },
              { title: 'Signup', component: 'SignupPage' },
              { title: 'Master Detail', component: 'ListMasterPage' },
              { title: 'Menu', component: 'MenuPage' },
              { title: 'Settings', component: 'SettingsPage' },
              { title: 'Search', component: 'SearchPage' }
          ];
          platform.ready().then(function () {
              // Okay, so the platform is ready and our plugins are available.
              // Here you can do any higher level native things you might need.
              _this.statusBar.styleDefault();
              _this.splashScreen.hide();
          });
          this.initTranslate();
      }
      MyApp.prototype.initTranslate = function () {
          var _this = this;
          // Set the default language for translation strings, and the current language.
          this.translate.setDefaultLang('en');
          if (this.translate.getBrowserLang() !== undefined) {
              this.translate.use(this.translate.getBrowserLang());
          }
          else {
              this.translate.use('en'); // Set your language here
          }
          this.translate.get(['BACK_BUTTON_TEXT']).subscribe(function (values) {
              _this.config.set('ios', 'backButtonText', values.BACK_BUTTON_TEXT);
          });
      };
      MyApp.prototype.openPage = function (page) {
          // Reset the content nav to have just this page
          // we wouldn't want the back button to show in this scenario
          this.nav.setRoot(page.component);
      };
      return MyApp;
  }());
  __decorate([
      Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_14" /* ViewChild */])(__WEBPACK_IMPORTED_MODULE_4_ionic_angular__["j" /* Nav */]),
      __metadata("design:type", __WEBPACK_IMPORTED_MODULE_4_ionic_angular__["j" /* Nav */])
  ], MyApp.prototype, "nav", void 0);
  MyApp = __decorate([
      Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
          template: "<ion-menu [content]=\"content\">\n    <ion-header>\n      <ion-toolbar>\n        <ion-title>Pages</ion-title>\n      </ion-toolbar>\n    </ion-header>\n\n    <ion-content>\n      <ion-list>\n        <button menuClose ion-item *ngFor=\"let p of pages\" (click)=\"openPage(p)\">\n          {{p.title}}\n        </button>\n      </ion-list>\n    </ion-content>\n\n  </ion-menu>\n  <ion-nav #content [root]=\"rootPage\"></ion-nav>"
      }),
      __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_3__ngx_translate_core__["c" /* TranslateService */], __WEBPACK_IMPORTED_MODULE_4_ionic_angular__["m" /* Platform */], __WEBPACK_IMPORTED_MODULE_6__providers_providers__["c" /* Settings */], __WEBPACK_IMPORTED_MODULE_4_ionic_angular__["b" /* Config */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_1__ionic_native_splash_screen__["a" /* SplashScreen */]])
  ], MyApp);
  
  //# sourceMappingURL=app.component.js.map
  
  /***/ }),
  
  /***/ 43:
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
  
  "use strict";
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__api_api__ = __webpack_require__(117);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__mocks_providers_items__ = __webpack_require__(174);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__settings_settings__ = __webpack_require__(285);
  /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__user_user__ = __webpack_require__(286);
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return __WEBPACK_IMPORTED_MODULE_0__api_api__["a"]; });
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "b", function() { return __WEBPACK_IMPORTED_MODULE_1__mocks_providers_items__["a"]; });
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "c", function() { return __WEBPACK_IMPORTED_MODULE_2__settings_settings__["a"]; });
  /* harmony reexport (binding) */ __webpack_require__.d(__webpack_exports__, "d", function() { return __WEBPACK_IMPORTED_MODULE_3__user_user__["a"]; });
  
  
  
  
  
  //# sourceMappingURL=providers.js.map
  
  /***/ })
  
  },[245]);
  //# sourceMappingURL=main.js.map