123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687
  1. webpackJsonp([6],{
  2. /***/ 149:
  3. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  4. "use strict";
  5. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AddDestinationPage; });
  6. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
  7. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
  8. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_forms__ = __webpack_require__(25);
  9. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_destination_service_destination_service__ = __webpack_require__(85);
  10. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__map_map__ = __webpack_require__(86);
  11. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  12. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  13. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  14. 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;
  15. return c > 3 && r && Object.defineProperty(target, key, r), r;
  16. };
  17. var __metadata = (this && this.__metadata) || function (k, v) {
  18. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  19. };
  20. /**
  21. * Generated class for the AddDestinationPage page.
  22. *
  23. * See https://ionicframework.com/docs/components/#navigation for more info on
  24. * Ionic pages and navigation.
  25. */
  26. var AddDestinationPage = /** @class */ (function () {
  27. function AddDestinationPage(navCtrl, navParams, formBuilder, destinationService) {
  28. this.navCtrl = navCtrl;
  29. this.navParams = navParams;
  30. this.formBuilder = formBuilder;
  31. this.destinationService = destinationService;
  32. this.profile = {
  33. id: 1,
  34. userName: "JohnDoe",
  35. homeCity: "",
  36. homeCountry: "",
  37. description: "",
  38. imagePath: "",
  39. friendList: null,
  40. user: null
  41. };
  42. this.destinationForm = this.formBuilder.group({
  43. destinationState: ['', __WEBPACK_IMPORTED_MODULE_2__angular_forms__["f" /* Validators */].required],
  44. city: ['', __WEBPACK_IMPORTED_MODULE_2__angular_forms__["f" /* Validators */].required],
  45. country: ['', __WEBPACK_IMPORTED_MODULE_2__angular_forms__["f" /* Validators */].required]
  46. });
  47. }
  48. AddDestinationPage.prototype.ionViewDidLoad = function () {
  49. console.log('ionViewDidLoad AddDestinationPage');
  50. };
  51. AddDestinationPage.prototype.createDestination = function () {
  52. var _this = this;
  53. this.destination = this.destinationForm.value;
  54. this.destination.profile = this.profile;
  55. this.destinationService.createDestination(this.destination).subscribe(function (data) { return _this.destination = data; }, function (err) {
  56. console.log(err);
  57. });
  58. this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_4__map_map__["a" /* MapPage */]);
  59. };
  60. AddDestinationPage = __decorate([
  61. Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
  62. selector: 'page-add-destination',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/add-destination/add-destination.html"*/'<ion-header>\n\n <ion-navbar>\n <ion-title>Add Destination</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <form [formGroup]="destinationForm">\n <ion-list radio-group formControlName="destinationState">\n <ion-item>\n <ion-label>Want to go</ion-label>\n <ion-radio value="future"></ion-radio>\n </ion-item>\n <ion-item>\n <ion-label>Have been to</ion-label>\n <ion-radio value="past"></ion-radio>\n </ion-item>\n </ion-list>\n\n <ion-item>\n <ion-label stacked>City</ion-label>\n <ion-input formControlName="city" type="text"></ion-input>\n </ion-item>\n\n <ion-item>\n <ion-label stacked>Country</ion-label>\n <ion-input formControlName="country" type="text"></ion-input>\n </ion-item>\n\n <button ion-button full color="primary" style="margin-top: 20px;" \n type="submit" [disabled]="!destinationForm.valid" (click)=createDestination()>Add</button>\n\n </form>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/add-destination/add-destination.html"*/,
  63. }),
  64. __metadata("design:paramtypes", [typeof (_a = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */]) === "function" && _a || Object, typeof (_b = typeof __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]) === "function" && _b || Object, typeof (_c = typeof __WEBPACK_IMPORTED_MODULE_2__angular_forms__["a" /* FormBuilder */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_2__angular_forms__["a" /* FormBuilder */]) === "function" && _c || Object, typeof (_d = typeof __WEBPACK_IMPORTED_MODULE_3__services_destination_service_destination_service__["a" /* DestinationService */] !== "undefined" && __WEBPACK_IMPORTED_MODULE_3__services_destination_service_destination_service__["a" /* DestinationService */]) === "function" && _d || Object])
  65. ], AddDestinationPage);
  66. return AddDestinationPage;
  67. var _a, _b, _c, _d;
  68. }());
  69. //# sourceMappingURL=add-destination.js.map
  70. /***/ }),
  71. /***/ 150:
  72. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  73. "use strict";
  74. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DestinationDetailsPage; });
  75. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
  76. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
  77. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  78. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  79. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  80. 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;
  81. return c > 3 && r && Object.defineProperty(target, key, r), r;
  82. };
  83. var __metadata = (this && this.__metadata) || function (k, v) {
  84. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  85. };
  86. /**
  87. * Generated class for the DestinationDetailsPage page.
  88. *
  89. * See https://ionicframework.com/docs/components/#navigation for more info on
  90. * Ionic pages and navigation.
  91. */
  92. var DestinationDetailsPage = /** @class */ (function () {
  93. function DestinationDetailsPage(navCtrl, navParams) {
  94. this.navCtrl = navCtrl;
  95. this.navParams = navParams;
  96. this.destination = {};
  97. }
  98. DestinationDetailsPage.prototype.ionViewDidLoad = function () {
  99. this.destination = this.navParams.data;
  100. };
  101. DestinationDetailsPage = __decorate([
  102. Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
  103. selector: 'page-destination-details',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/destination-details/destination-details.html"*/'<!--\n Generated template for the DestinationDetailsPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>{{ destination.city }}, {{ destination.country }}</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/destination-details/destination-details.html"*/,
  104. }),
  105. __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
  106. ], DestinationDetailsPage);
  107. return DestinationDetailsPage;
  108. }());
  109. //# sourceMappingURL=destination-details.js.map
  110. /***/ }),
  111. /***/ 151:
  112. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  113. "use strict";
  114. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return LoginPage; });
  115. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
  116. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
  117. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__profile_profile__ = __webpack_require__(152);
  118. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__signup_signup__ = __webpack_require__(153);
  119. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  120. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  121. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  122. 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;
  123. return c > 3 && r && Object.defineProperty(target, key, r), r;
  124. };
  125. var __metadata = (this && this.__metadata) || function (k, v) {
  126. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  127. };
  128. var LoginPage = /** @class */ (function () {
  129. function LoginPage(navCtrl, navParams) {
  130. this.navCtrl = navCtrl;
  131. this.navParams = navParams;
  132. }
  133. LoginPage.prototype.ionViewDidLoad = function () {
  134. console.log('ionViewDidLoad LoginPage');
  135. };
  136. LoginPage.prototype.goToProfile = function () {
  137. this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__profile_profile__["a" /* ProfilePage */]);
  138. };
  139. LoginPage.prototype.goToSignup = function () {
  140. this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__signup_signup__["a" /* SignupPage */]);
  141. };
  142. LoginPage = __decorate([
  143. Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
  144. selector: 'page-login',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/login/login.html"*/'<ion-header>\n\n <ion-navbar>\n <ion-title>Login</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <ion-input placeholder="Email" type="text" required #email></ion-input>\n <ion-input placeholder="Password" type="text" required #password></ion-input>\n <button ion-button (click)=goToProfile()>Login</button>\n <button ion-button (click)=goToSignup()>Sign up</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/login/login.html"*/,
  145. }),
  146. __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
  147. ], LoginPage);
  148. return LoginPage;
  149. }());
  150. //# sourceMappingURL=login.js.map
  151. /***/ }),
  152. /***/ 152:
  153. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  154. "use strict";
  155. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ProfilePage; });
  156. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
  157. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
  158. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__map_map__ = __webpack_require__(86);
  159. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  160. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  161. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  162. 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;
  163. return c > 3 && r && Object.defineProperty(target, key, r), r;
  164. };
  165. var __metadata = (this && this.__metadata) || function (k, v) {
  166. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  167. };
  168. /**
  169. * Generated class for the ProfilePage page.
  170. *
  171. * See https://ionicframework.com/docs/components/#navigation for more info on
  172. * Ionic pages and navigation.
  173. */
  174. var ProfilePage = /** @class */ (function () {
  175. function ProfilePage(navCtrl, navParams) {
  176. this.navCtrl = navCtrl;
  177. this.navParams = navParams;
  178. }
  179. ProfilePage.prototype.ionViewDidLoad = function () {
  180. console.log('ionViewDidLoad ProfilePage');
  181. };
  182. ProfilePage.prototype.goToMap = function () {
  183. this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__map_map__["a" /* MapPage */]);
  184. };
  185. ProfilePage = __decorate([
  186. Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
  187. selector: 'page-profile',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/profile/profile.html"*/'<!--\n Generated template for the ProfilePage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>profile</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <button ion-button (click)=goToMap()>Map</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/profile/profile.html"*/,
  188. }),
  189. __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
  190. ], ProfilePage);
  191. return ProfilePage;
  192. }());
  193. //# sourceMappingURL=profile.js.map
  194. /***/ }),
  195. /***/ 153:
  196. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  197. "use strict";
  198. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SignupPage; });
  199. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
  200. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
  201. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  202. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  203. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  204. 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;
  205. return c > 3 && r && Object.defineProperty(target, key, r), r;
  206. };
  207. var __metadata = (this && this.__metadata) || function (k, v) {
  208. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  209. };
  210. /**
  211. * Generated class for the SignupPage page.
  212. *
  213. * See https://ionicframework.com/docs/components/#navigation for more info on
  214. * Ionic pages and navigation.
  215. */
  216. var SignupPage = /** @class */ (function () {
  217. function SignupPage(navCtrl, navParams) {
  218. this.navCtrl = navCtrl;
  219. this.navParams = navParams;
  220. }
  221. SignupPage.prototype.ionViewDidLoad = function () {
  222. console.log('ionViewDidLoad SignupPage');
  223. };
  224. SignupPage = __decorate([
  225. Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
  226. selector: 'page-signup',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/signup/signup.html"*/'<!--\n Generated template for the SignupPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>signup</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <ion-input placeholder="Email" type="text" required #email></ion-input>\n <ion-input placeholder="Password" type="text" required #password></ion-input>\n <ion-input placeholder="First Name" type="text" #firstName></ion-input>\n <ion-input placeholder="Last Name" type="text" #lastName></ion-input>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/signup/signup.html"*/,
  227. }),
  228. __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */], __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */]])
  229. ], SignupPage);
  230. return SignupPage;
  231. }());
  232. //# sourceMappingURL=signup.js.map
  233. /***/ }),
  234. /***/ 164:
  235. /***/ (function(module, exports) {
  236. function webpackEmptyAsyncContext(req) {
  237. // Here Promise.resolve().then() is used instead of new Promise() to prevent
  238. // uncatched exception popping up in devtools
  239. return Promise.resolve().then(function() {
  240. throw new Error("Cannot find module '" + req + "'.");
  241. });
  242. }
  243. webpackEmptyAsyncContext.keys = function() { return []; };
  244. webpackEmptyAsyncContext.resolve = webpackEmptyAsyncContext;
  245. module.exports = webpackEmptyAsyncContext;
  246. webpackEmptyAsyncContext.id = 164;
  247. /***/ }),
  248. /***/ 209:
  249. /***/ (function(module, exports, __webpack_require__) {
  250. var map = {
  251. "../pages/add-destination/add-destination.module": [
  252. 679,
  253. 5
  254. ],
  255. "../pages/destination-details/destination-details.module": [
  256. 680,
  257. 4
  258. ],
  259. "../pages/login/login.module": [
  260. 682,
  261. 3
  262. ],
  263. "../pages/map/map.module": [
  264. 681,
  265. 2
  266. ],
  267. "../pages/profile/profile.module": [
  268. 683,
  269. 1
  270. ],
  271. "../pages/signup/signup.module": [
  272. 684,
  273. 0
  274. ]
  275. };
  276. function webpackAsyncContext(req) {
  277. var ids = map[req];
  278. if(!ids)
  279. return Promise.reject(new Error("Cannot find module '" + req + "'."));
  280. return __webpack_require__.e(ids[1]).then(function() {
  281. return __webpack_require__(ids[0]);
  282. });
  283. };
  284. webpackAsyncContext.keys = function webpackAsyncContextKeys() {
  285. return Object.keys(map);
  286. };
  287. webpackAsyncContext.id = 209;
  288. module.exports = webpackAsyncContext;
  289. /***/ }),
  290. /***/ 349:
  291. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  292. "use strict";
  293. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return HomePage; });
  294. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
  295. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
  296. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__login_login__ = __webpack_require__(151);
  297. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  298. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  299. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  300. 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;
  301. return c > 3 && r && Object.defineProperty(target, key, r), r;
  302. };
  303. var __metadata = (this && this.__metadata) || function (k, v) {
  304. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  305. };
  306. var HomePage = /** @class */ (function () {
  307. function HomePage(navCtrl) {
  308. this.navCtrl = navCtrl;
  309. }
  310. HomePage.prototype.goToLogin = function () {
  311. this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__login_login__["a" /* LoginPage */]);
  312. };
  313. HomePage = __decorate([
  314. Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
  315. selector: 'page-home',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/home/home.html"*/'<ion-header>\n <ion-navbar>\n <ion-title>\n Shared Travel Map\n </ion-title>\n </ion-navbar>\n</ion-header>\n\n<ion-content padding>\n <button ion-button (click)=goToLogin()>Login</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/home/home.html"*/
  316. }),
  317. __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */]])
  318. ], HomePage);
  319. return HomePage;
  320. }());
  321. //# sourceMappingURL=home.js.map
  322. /***/ }),
  323. /***/ 350:
  324. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  325. "use strict";
  326. Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
  327. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__ = __webpack_require__(351);
  328. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__app_module__ = __webpack_require__(355);
  329. Object(__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_1__app_module__["a" /* AppModule */]);
  330. //# sourceMappingURL=main.js.map
  331. /***/ }),
  332. /***/ 355:
  333. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  334. "use strict";
  335. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
  336. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__(40);
  337. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
  338. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_ionic_angular__ = __webpack_require__(29);
  339. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(345);
  340. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__ = __webpack_require__(348);
  341. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__angular_http__ = __webpack_require__(210);
  342. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__app_component__ = __webpack_require__(678);
  343. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__pages_home_home__ = __webpack_require__(349);
  344. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__pages_login_login__ = __webpack_require__(151);
  345. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__pages_signup_signup__ = __webpack_require__(153);
  346. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__pages_profile_profile__ = __webpack_require__(152);
  347. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__pages_map_map__ = __webpack_require__(86);
  348. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__pages_destination_details_destination_details__ = __webpack_require__(150);
  349. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__pages_add_destination_add_destination__ = __webpack_require__(149);
  350. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__services_destination_service_destination_service__ = __webpack_require__(85);
  351. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  352. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  353. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  354. 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;
  355. return c > 3 && r && Object.defineProperty(target, key, r), r;
  356. };
  357. var config = {
  358. issuer: 'https://dev-270119.oktapreview.com/oauth2/default',
  359. redirectUri: 'http://localhost:8100/implicit/callback',
  360. clientId: '0oafqd6lpsD4ECG5k0h7'
  361. };
  362. var AppModule = /** @class */ (function () {
  363. function AppModule() {
  364. }
  365. AppModule = __decorate([
  366. Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
  367. declarations: [
  368. __WEBPACK_IMPORTED_MODULE_6__app_component__["a" /* MyApp */],
  369. __WEBPACK_IMPORTED_MODULE_7__pages_home_home__["a" /* HomePage */],
  370. __WEBPACK_IMPORTED_MODULE_8__pages_login_login__["a" /* LoginPage */],
  371. __WEBPACK_IMPORTED_MODULE_9__pages_signup_signup__["a" /* SignupPage */],
  372. __WEBPACK_IMPORTED_MODULE_10__pages_profile_profile__["a" /* ProfilePage */],
  373. __WEBPACK_IMPORTED_MODULE_11__pages_map_map__["a" /* MapPage */],
  374. __WEBPACK_IMPORTED_MODULE_13__pages_add_destination_add_destination__["a" /* AddDestinationPage */],
  375. __WEBPACK_IMPORTED_MODULE_12__pages_destination_details_destination_details__["a" /* DestinationDetailsPage */]
  376. ],
  377. imports: [
  378. __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
  379. __WEBPACK_IMPORTED_MODULE_5__angular_http__["c" /* HttpModule */],
  380. __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["c" /* IonicModule */].forRoot(__WEBPACK_IMPORTED_MODULE_6__app_component__["a" /* MyApp */], {}, {
  381. links: [
  382. { loadChildren: '../pages/add-destination/add-destination.module#AddDestinationPageModule', name: 'AddDestinationPage', segment: 'add-destination', priority: 'low', defaultHistory: [] },
  383. { loadChildren: '../pages/destination-details/destination-details.module#DestinationDetailsPageModule', name: 'DestinationDetailsPage', segment: 'destination-details', priority: 'low', defaultHistory: [] },
  384. { loadChildren: '../pages/map/map.module#MapPageModule', name: 'MapPage', segment: 'map', priority: 'low', defaultHistory: [] },
  385. { loadChildren: '../pages/login/login.module#LoginPageModule', name: 'LoginPage', segment: 'login', priority: 'low', defaultHistory: [] },
  386. { loadChildren: '../pages/profile/profile.module#ProfilePageModule', name: 'ProfilePage', segment: 'profile', priority: 'low', defaultHistory: [] },
  387. { loadChildren: '../pages/signup/signup.module#SignupPageModule', name: 'SignupPage', segment: 'signup', priority: 'low', defaultHistory: [] }
  388. ]
  389. })
  390. ],
  391. bootstrap: [__WEBPACK_IMPORTED_MODULE_2_ionic_angular__["a" /* IonicApp */]],
  392. entryComponents: [
  393. __WEBPACK_IMPORTED_MODULE_6__app_component__["a" /* MyApp */],
  394. __WEBPACK_IMPORTED_MODULE_7__pages_home_home__["a" /* HomePage */],
  395. __WEBPACK_IMPORTED_MODULE_8__pages_login_login__["a" /* LoginPage */],
  396. __WEBPACK_IMPORTED_MODULE_9__pages_signup_signup__["a" /* SignupPage */],
  397. __WEBPACK_IMPORTED_MODULE_10__pages_profile_profile__["a" /* ProfilePage */],
  398. __WEBPACK_IMPORTED_MODULE_11__pages_map_map__["a" /* MapPage */],
  399. __WEBPACK_IMPORTED_MODULE_13__pages_add_destination_add_destination__["a" /* AddDestinationPage */],
  400. __WEBPACK_IMPORTED_MODULE_12__pages_destination_details_destination_details__["a" /* DestinationDetailsPage */]
  401. ],
  402. providers: [
  403. __WEBPACK_IMPORTED_MODULE_4__ionic_native_status_bar__["a" /* StatusBar */],
  404. __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */],
  405. __WEBPACK_IMPORTED_MODULE_14__services_destination_service_destination_service__["a" /* DestinationService */],
  406. { provide: __WEBPACK_IMPORTED_MODULE_1__angular_core__["u" /* ErrorHandler */], useClass: __WEBPACK_IMPORTED_MODULE_2_ionic_angular__["b" /* IonicErrorHandler */] },
  407. ]
  408. })
  409. ], AppModule);
  410. return AppModule;
  411. }());
  412. //# sourceMappingURL=app.module.js.map
  413. /***/ }),
  414. /***/ 678:
  415. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  416. "use strict";
  417. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MyApp; });
  418. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
  419. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
  420. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__ = __webpack_require__(348);
  421. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__ = __webpack_require__(345);
  422. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__pages_home_home__ = __webpack_require__(349);
  423. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  424. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  425. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  426. 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;
  427. return c > 3 && r && Object.defineProperty(target, key, r), r;
  428. };
  429. var __metadata = (this && this.__metadata) || function (k, v) {
  430. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  431. };
  432. var MyApp = /** @class */ (function () {
  433. function MyApp(platform, statusBar, splashScreen) {
  434. this.rootPage = __WEBPACK_IMPORTED_MODULE_4__pages_home_home__["a" /* HomePage */];
  435. platform.ready().then(function () {
  436. // Okay, so the platform is ready and our plugins are available.
  437. // Here you can do any higher level native things you might need.
  438. statusBar.styleDefault();
  439. splashScreen.hide();
  440. });
  441. }
  442. MyApp = __decorate([
  443. Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/app/app.html"*/'<ion-nav [root]="rootPage"></ion-nav>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/app/app.html"*/
  444. }),
  445. __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["h" /* Platform */], __WEBPACK_IMPORTED_MODULE_2__ionic_native_status_bar__["a" /* StatusBar */], __WEBPACK_IMPORTED_MODULE_3__ionic_native_splash_screen__["a" /* SplashScreen */]])
  446. ], MyApp);
  447. return MyApp;
  448. }());
  449. //# sourceMappingURL=app.component.js.map
  450. /***/ }),
  451. /***/ 85:
  452. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  453. "use strict";
  454. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DestinationService; });
  455. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_http__ = __webpack_require__(210);
  456. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__(1);
  457. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs__ = __webpack_require__(375);
  458. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_2_rxjs__);
  459. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__ = __webpack_require__(251);
  460. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_3_rxjs_add_operator_map__);
  461. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch__ = __webpack_require__(224);
  462. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_rxjs_add_operator_catch__);
  463. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  464. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  465. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  466. 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;
  467. return c > 3 && r && Object.defineProperty(target, key, r), r;
  468. };
  469. var __metadata = (this && this.__metadata) || function (k, v) {
  470. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  471. };
  472. /*
  473. Generated class for the DestinationsApiProvider provider.
  474. See https://angular.io/guide/dependency-injection for more info on providers
  475. and Angular DI.
  476. */
  477. var DestinationService = /** @class */ (function () {
  478. function DestinationService(http) {
  479. this.http = http;
  480. this.destinationUrl = "http://localhost:9090/api/v1/destinations";
  481. }
  482. //CREATE
  483. DestinationService.prototype.createDestination = function (body) {
  484. var bodyString = JSON.stringify(body);
  485. var headers = new __WEBPACK_IMPORTED_MODULE_0__angular_http__["a" /* Headers */]({ 'Content-Type': 'application/json' });
  486. var options = new __WEBPACK_IMPORTED_MODULE_0__angular_http__["d" /* RequestOptions */]({ headers: headers });
  487. return this.http.post(this.destinationUrl, bodyString, options).map(function (res) { return res.json(); })
  488. .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_2_rxjs__["Observable"].throw(error.json().error || 'Server error'); });
  489. };
  490. //READ
  491. DestinationService.prototype.getAllDestinations = function () {
  492. return this.http.get(this.destinationUrl).map(function (res) { return res.json(); })
  493. .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_2_rxjs__["Observable"].throw(error.json().error || 'Server error'); });
  494. };
  495. DestinationService.prototype.getDestinationById = function (destinationId) {
  496. return this.http.get("this.destinationUrl/" + destinationId)
  497. .map(function (response) {
  498. return response.json();
  499. });
  500. };
  501. //UPDATE
  502. DestinationService.prototype.updateDestination = function (body) {
  503. var bodyString = JSON.stringify(body);
  504. var headers = new __WEBPACK_IMPORTED_MODULE_0__angular_http__["a" /* Headers */]({ 'Content-Type': 'application/json' });
  505. var options = new __WEBPACK_IMPORTED_MODULE_0__angular_http__["d" /* RequestOptions */]({ headers: headers });
  506. return this.http.put(this.destinationUrl + "/" + body['id'], body, options).map(function (res) { return res.json(); })
  507. .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_2_rxjs__["Observable"].throw(error.json().error || 'Server error'); });
  508. };
  509. //DELETE
  510. DestinationService.prototype.deleteDestination = function (id) {
  511. return this.http.delete(this.destinationUrl + "/" + id).map(function (res) { return res.json(); })
  512. .catch(function (error) { return __WEBPACK_IMPORTED_MODULE_2_rxjs__["Observable"].throw(error.json().error || 'Server error'); });
  513. };
  514. DestinationService = __decorate([
  515. Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["A" /* Injectable */])(),
  516. __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_0__angular_http__["b" /* Http */]])
  517. ], DestinationService);
  518. return DestinationService;
  519. }());
  520. //# sourceMappingURL=destination-service.js.map
  521. /***/ }),
  522. /***/ 86:
  523. /***/ (function(module, __webpack_exports__, __webpack_require__) {
  524. "use strict";
  525. /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return MapPage; });
  526. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__(1);
  527. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_ionic_angular__ = __webpack_require__(29);
  528. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__ = __webpack_require__(150);
  529. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__add_destination_add_destination__ = __webpack_require__(149);
  530. /* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__services_destination_service_destination_service__ = __webpack_require__(85);
  531. var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
  532. var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
  533. if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
  534. 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;
  535. return c > 3 && r && Object.defineProperty(target, key, r), r;
  536. };
  537. var __metadata = (this && this.__metadata) || function (k, v) {
  538. if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
  539. };
  540. var MapPage = /** @class */ (function () {
  541. function MapPage(navCtrl, navParams, destinationService, loadingController) {
  542. this.navCtrl = navCtrl;
  543. this.navParams = navParams;
  544. this.destinationService = destinationService;
  545. this.loadingController = loadingController;
  546. this.destinations = [];
  547. this.destination = {};
  548. }
  549. MapPage.prototype.ionViewDidLoad = function () {
  550. var _this = this;
  551. var loader = this.loadingController.create({
  552. content: 'Getting destinations...'
  553. });
  554. loader.present().then(function () {
  555. _this.getAllDestinations();
  556. loader.dismiss();
  557. });
  558. };
  559. MapPage.prototype.goToDestinationDetails = function ($event, destination) {
  560. this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_2__destination_details_destination_details__["a" /* DestinationDetailsPage */], destination);
  561. };
  562. MapPage.prototype.getAllDestinations = function () {
  563. var _this = this;
  564. this.destinationService.getAllDestinations().subscribe(function (destinations) { return _this.destinations = destinations; }, function (err) {
  565. console.log(err);
  566. });
  567. };
  568. MapPage.prototype.goToAddDestination = function () {
  569. this.navCtrl.push(__WEBPACK_IMPORTED_MODULE_3__add_destination_add_destination__["a" /* AddDestinationPage */]);
  570. };
  571. MapPage = __decorate([
  572. Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
  573. selector: 'page-map',template:/*ion-inline-start:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/map/map.html"*/'<!--\n Generated template for the MapPage page.\n\n See http://ionicframework.com/docs/components/#navigation for more info on\n Ionic pages and navigation.\n-->\n<ion-header>\n\n <ion-navbar>\n <ion-title>map</ion-title>\n </ion-navbar>\n\n</ion-header>\n\n\n<ion-content padding>\n <ion-list>\n <ion-item-sliding *ngFor = "let destination of destinations">\n <ion-item>\n <div>{{ destination.city }}</div>\n <div>{{ destination.country }}</div>\n <button ion-button (click)="goToDestinationDetails($event, destination)">Details</button>\n </ion-item>\n </ion-item-sliding>\n </ion-list>\n <button ion-button (click)=goToAddDestination()>Add Destination</button>\n</ion-content>\n'/*ion-inline-end:"/Users/ericf/ZCWProjects/SharedTravelMapIonicApp/src/pages/map/map.html"*/,
  574. }),
  575. __metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1_ionic_angular__["f" /* NavController */],
  576. __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["g" /* NavParams */],
  577. __WEBPACK_IMPORTED_MODULE_4__services_destination_service_destination_service__["a" /* DestinationService */],
  578. __WEBPACK_IMPORTED_MODULE_1_ionic_angular__["e" /* LoadingController */]])
  579. ], MapPage);
  580. return MapPage;
  581. }());
  582. //# sourceMappingURL=map.js.map
  583. /***/ })
  584. },[350]);
  585. //# sourceMappingURL=main.js.map