-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.bundle.js
executable file
·502 lines (401 loc) · 40.8 KB
/
main.bundle.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
webpackJsonp(["main"],{
/***/ "./src/$$_lazy_route_resource lazy recursive":
/***/ (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 = "./src/$$_lazy_route_resource lazy recursive";
/***/ }),
/***/ "./src/app/app.component.css":
/***/ (function(module, exports) {
module.exports = "\r\nmat-drawer-container {\r\n padding-top: 0;\r\n}\r\n\r\nmat-drawer{\r\n background: black;\r\n}\r\n\r\n.topHeading{ \r\n padding-top: 2%;\r\n margin-top: 0;\r\n color: white;\r\n\r\n}\r\n\r\n.topHeading h2{ \r\n margin: 0;\r\n padding: 0;\r\n}\r\n\r\n.navButton{ \r\n background: none;\r\n cursor: pointer;\r\n padding: 25px 80px;\r\n display: inline-block;\r\n margin: 15px 30px;\r\n font-weight: 500;\r\n -webkit-transition: all 0.3s;\r\n transition: all 0.3s;\r\n border: 3px solid #fff;\r\n color: #fff;\r\n}\r\n\r\n.navButton:hover{\r\n border: 3px solid #ff4000;\r\n color: white;\r\n}\r\n\r\n.navIconWrap{ \r\n margin: 0%;\r\n padding: 2%;\r\n background: black;\r\n color: #ff4000;\r\n}\r\n\r\n.navBar {\r\n width: 35px;\r\n height: 5px;\r\n background-color: white;\r\n margin: 6px 0;\r\n}\r\n\r\n.tableWrap{ \r\n}\r\n\r\n#table{ \r\n /* box-shadow: 10px 10px 5px #0e83cd; */\r\n}\r\n\r\n#heading{ \r\n border-bottom: 2px solid #ff4000;\r\n padding: 2%;\r\n font-weight: bold;\r\n}\r\n\r\n.tableData{ \r\n padding: 2%;\r\n border-bottom: 1px solid #ff9f7f;\r\n}\r\n\r\n.tableData:hover{ \r\n background: #ff9f7f;\r\n}\r\n\r\nimg{ \r\n width: 25%;\r\n}\r\n\r\n.card_wrap{ \r\n margin-top: 5%;\r\n margin-bottom: 5%;\r\n}\r\n\r\n.card{ \r\n text-align: center;\r\n}\r\n\r\n.locationSymbol{ \r\n height: 30px;\r\n width: 50%;\r\n text-align: right;\r\n}\r\n\r\n.inner_card_placeName{ \r\n border-bottom: 2px solid ghostwhite; \r\n}\r\n\r\n.inner_card_bottom_division{ \r\n margin-top: 10%;\r\n border-top: 2px solid ghostwhite;\r\n}\r\n\r\n.inner_card_interestRate{ \r\n border-right: 2px solid ghostwhite;\r\n}\r\n\r\n.example-container {\r\n width: 500px;\r\n height: 300px;\r\n border: 1px solid rgba(0, 0, 0, 0.5);\r\n}\r\n\r\n.example-sidenav-content {\r\n display: -webkit-box;\r\n display: -ms-flexbox;\r\n display: flex;\r\n height: 100%;\r\n -webkit-box-align: center;\r\n -ms-flex-align: center;\r\n align-items: center;\r\n -webkit-box-pack: center;\r\n -ms-flex-pack: center;\r\n justify-content: center;\r\n}\r\n\r\n.example-sidenav {\r\n padding: 20px;\r\n}\r\n\r\n*{ \r\n font-family: Roboto;\r\n}\r\n\r\nhtml, body {\r\n background: #333;\r\n height: 100%;\r\n overflow: hidden;\r\n}\r\n\r\n.divTable{ \r\n overflow-x:auto;\r\n}\r\n\r\n.svg-wrapper {\r\n height: 60px;\r\n\tmargin: 0 auto;\r\n position: relative;\r\n top: 50%;\r\n -webkit-transform: translateY(-50%);\r\n transform: translateY(-50%);\r\n width: 320px;\r\n cursor: pointer;\r\n}\r\n\r\n.shape {\r\n fill: transparent;\r\n stroke-dasharray: 140 540;\r\n stroke-dashoffset: -474;\r\n stroke-width: 8px;\r\n stroke: #ff4000;\r\n}\r\n\r\n.text {\r\n color: black;\r\n font-size: 22px;\r\n letter-spacing: 8px;\r\n line-height: 32px;\r\n position: relative;\r\n top: -48px;\r\n}\r\n\r\n@-webkit-keyframes draw {\r\n 0% {\r\n stroke-dasharray: 140 540;\r\n stroke-dashoffset: -474;\r\n stroke-width: 8px;\r\n }\r\n 100% {\r\n stroke-dasharray: 760;\r\n stroke-dashoffset: 0;\r\n stroke-width: 2px;\r\n }\r\n}\r\n\r\n@keyframes draw {\r\n 0% {\r\n stroke-dasharray: 140 540;\r\n stroke-dashoffset: -474;\r\n stroke-width: 8px;\r\n }\r\n 100% {\r\n stroke-dasharray: 760;\r\n stroke-dashoffset: 0;\r\n stroke-width: 2px;\r\n }\r\n}\r\n\r\n.svg-wrapper:hover .shape {\r\n -webkit-animation: 0.5s draw linear forwards;\r\n animation: 0.5s draw linear forwards;\r\n}\r\n\r\n#heading{\r\n color:#D5DDE5;\r\n background:#1b1e24;\r\n border-bottom:4px solid #9ea7af;\r\n border-right: 1px solid #343a45;\r\n font-size:23px;\r\n font-weight: 100;\r\n padding:24px;\r\n text-align: center;\r\n text-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);\r\n vertical-align:middle;\r\n}\r\n\r\n#body{\r\n border-top: 1px solid #C1C3D1;\r\n border-bottom: 1px solid #C1C3D1;\r\n color:#666B85;\r\n font-size:16px;\r\n text-align: center;\r\n font-weight:normal;\r\n text-shadow: 0 1px 1px rgba(256, 256, 256, 0.1);\r\n}\r\n\r\n.tr { \r\n\r\n border-bottom: 2px solid #C1C3D1;\r\n padding-top: 1%; \r\n padding-bottom: 1%;\r\n}\r\n\r\nimg{ \r\n width: 70%; \r\n}\r\n\r\n@media screen and (max-width: 992px) { \r\nmat-drawer{ \r\n width: 100%;\r\n}\r\n\r\nimg{ \r\n width: 40%;\r\n margin: 10%;\r\n}\r\n\r\n#drawerHeading{ \r\n padding-bottom: 5%;\r\n border-bottom: 3px solid white;\r\n color: white;\r\n text-align: left;\r\n}\r\n\r\nbutton{ \r\n width: 80%;\r\n}\r\n\r\n#firstButton{ \r\n margin-top: 10%;\r\n}\r\n\r\n#backButton{ \r\n position: absolute;\r\n width: 100%;\r\n bottom: 0;\r\n left: 0; \r\n right: 0;\r\n background: #ff4000;\r\n color: white;\r\n border-top: 3px solid #ff4000; \r\n border-right: none;\r\n border-left: none;\r\n border-bottom: none;\r\n margin: 0;\r\n}\r\n\r\n}"
/***/ }),
/***/ "./src/app/app.component.html":
/***/ (function(module, exports) {
module.exports = "<svg style=\"position: absolute; width: 0; height: 0; overflow: hidden\" version=\"1.1\" xmlns=\"http://www.w3.org/2000/svg\" xmlns:xlink=\"http://www.w3.org/1999/xlink\">\n<defs>\n<symbol id=\"icon-location2\" viewBox=\"0 0 32 32\">\n<title>location2</title>\n<path d=\"M16 0c-5.523 0-10 4.477-10 10 0 10 10 22 10 22s10-12 10-22c0-5.523-4.477-10-10-10zM16 16.125c-3.383 0-6.125-2.742-6.125-6.125s2.742-6.125 6.125-6.125 6.125 2.742 6.125 6.125-2.742 6.125-6.125 6.125zM12.125 10c0-2.14 1.735-3.875 3.875-3.875s3.875 1.735 3.875 3.875c0 2.14-1.735 3.875-3.875 3.875s-3.875-1.735-3.875-3.875z\"></path>\n</symbol>\n</defs>\n</svg>\n\n\n<div *ngIf=\"!mobile\" style=\"text-align:center\" id=\"nav\" fxLayout=\"row\">\n <div fxFlex=\"25%\"> \n <div (click)=\"seniorClick()\" class=\"svg-wrapper\">\n <svg height=\"60\" width=\"320\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect class=\"shape\" height=\"60\" width=\"320\" />\n </svg>\n <div class=\"text\"> Senior Accounts </div>\n </div>\n </div>\n <div fxFlex=\"25%\"> \n <div (click)=\"taxFreeClick()\" class=\"svg-wrapper\">\n <svg height=\"60\" width=\"320\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect class=\"shape\" height=\"60\" width=\"320\" />\n </svg>\n <div class=\"text\"> Tax Free Accounts </div>\n </div>\n </div>\n <div fxFlex=\"25%\"> \n <div (click)=\"highInterstClick()\" class=\"svg-wrapper\">\n <svg height=\"60\" width=\"320\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect class=\"shape\" height=\"60\" width=\"320\" />\n </svg>\n <div class=\"text\"> High Interest </div>\n </div>\n </div>\n <div fxFlex=\"10%\"> \n <div (click)=\"youthClick()\" class=\"svg-wrapper\">\n <svg height=\"60\" width=\"320\" xmlns=\"http://www.w3.org/2000/svg\">\n <rect class=\"shape\" height=\"60\" width=\"320\" />\n </svg>\n <div class=\"text\"> Youth Accounts </div>\n </div>\n </div>\n \n</div>\n\n<div *ngIf=\"!mobile\"> \n \n<div id =\"container\" fxLayoutAlign=\"row\">\n \n <div fxFlex=\"10%\"></div>\n\n <div fxFlex=\"80%\">\n <br> <br>\n <h1> {{ heading }} </h1>\n\n <div id=\"heading\" fxLayout=\"row\">\n <!-- <div *ngFor=\"let place of seniorAccounts\"> -->\n\n <div fxFlex=\"10%\"> Logo </div>\n <div fxFlex=\"25%\"> Broker Name </div>\n <div fxFlex=\"15%\"> Location </div>\n <div fxFlex=\"25%\"> Interest Rate </div>\n <div fxFlex=\"25%\"> Type Of Account </div>\n <!--</div>-->\n\n\n\n </div>\n\n <div id=\"body\">\n <!-- <div *ngFor=\"let place of seniorAccounts\"> -->\n <div class=\"divTable\">\n <div>\n <div class=\"tr\" *ngFor=\"let place of viewable\" fxLayout=\"row\" >\n <div fxFlex=\"10%\"> <img src={{place.brokerLogo}}/> </div>\n <div fxFlex=\"25%\"> <br> {{ place.brokerName }} </div>\n <div fxFlex=\"15%\"> <br> {{place.location}} </div>\n <div fxFlex=\"25%\"> <br> {{place.interestRate}}% </div>\n <div fxFlex=\"25%\"> <br> {{place.type}} </div>\n </div>\n \n <!--</div>-->\n </div>\n </div>\n\n </div>\n\n </div>\n\n</div>\n\n</div>\n\n<mat-drawer-container *ngIf=\"mobile\" [style.height.px]=\"pageHeight\" class=\"container\" >\n <mat-drawer #drawer class=\"sidenav\" mode=\"side\">\n \n <div fxLayout=\"row\">\n <div fxFlex=\"5%\"></div>\n <div fxFlex=\"90%\">\n <h2 id=\"drawerHeading\"> Account Types </h2>\n </div>\n </div>\n <!--\n <div class=\"topHeading\" fxLayout=\"row\" fxLayoutAlign=\"center center\">\n <h2> Bank Rates </h2>\n </div>\n -->\n\n <div fxLayout=\"row\">\n <div fxFlex=\"5%\"></div>\n <div fxFlex=\"90%\" fxLayoutAlign=\"center center\"> <button id=\"firstButton\" (click)=\"seniorClick();drawer.toggle()\" class=\"navButton\"> Senior Accounts </button> </div>\n </div>\n <div fxLayout=\"row\">\n <div fxFlex=\"5%\"></div>\n <div fxFlex=\"90%\" fxLayoutAlign=\"center center\"> <button (click)=\"taxFreeClick();drawer.toggle()\" class=\"navButton\"> Tax Free Accounts </button> </div>\n </div>\n <div fxLayout=\"row\">\n <div fxFlex=\"5%\"></div>\n <div fxFlex=\"90%\" fxLayoutAlign=\"center center\"> <button (click)=\"highInterstClick();drawer.toggle()\" class=\"navButton\"> High Interest </button> </div>\n </div>\n <div fxLayout=\"row\">\n <div fxFlex=\"5%\"></div>\n <div fxFlex=\"90%\" fxLayoutAlign=\"center center\"> <button (click)=\"youthClick();drawer.toggle()\" class=\"navButton\"> Youth Accounts </button> </div>\n </div>\n <div fxLayout=\"row\">\n <div fxFlex=\"100%\" fxLayoutAlign=\"center center\"> <button id=\"backButton\" (click)=\"drawer.toggle()\" class=\"navButton\"> Back </button> </div>\n </div>\n </mat-drawer>\n\n <div flex layout=\"column\" class=\"sidenav-content\" >\n \n <div class=\"navIconWrap\" (click)=\"drawer.toggle()\">\n <div class=\"navBar\"></div>\n <div class=\"navBar\"></div>\n <div class=\"navBar\"></div>\n </div>\n\n <div fxLayout=\"row\">\n <div fxFlex=\"10%\"></div>\n <div fxFlex=\"80%\">\n <h1> {{ heading }} </h1>\n </div>\n </div>\n\n\n <!--\n <mat-table #table [dataSource]=\"viewable\" [dataSource]=\"dataSource\" class=\"mat-elevation-z8\">\n <ng-container matColumnDef=\"position\">\n <th mat-header-cell *matHeaderCellDef> No. </th>\n <td mat-cell *matCellDef=\"let place\"> {{place.brokerName}} </td>\n </ng-container>\n </mat-table>\n -->\n <div *ngIf=\"!mobile\" fxLayout=\"row\">\n <div fxFlex=\"10%\"></div>\n <div id=\"table\" fxFlex=\"80%\">\n <div id=\"heading\" fxLayout=\"row\">\n <p fxFlex=\"20%\"> Logo </p>\n <p fxFlex=\"20%\"> Name </p>\n <p fxFlex=\"20%\"> Location </p>\n <p fxFlex=\"20%\"> Interest Rate </p>\n <p fxFlex=\"20%\"> Account Type </p>\n </div>\n <div class=\"tableData\" fxLayout=\"row\" *ngFor=\"let place of viewable\">\n <div fxFlex=\"20%\"> <img src=\"{{place.brokerLogo}}\"> </div>\n <div fxFlex=\"20%\"> {{place.brokerName}} </div>\n <div fxFlex=\"20%\"> {{place.location}}</div>\n <div fxFlex=\"20%\"> {{place.interestRate}}% </div>\n <div fxFlex=\"20%\"> {{place.type}}</div>\n </div>\n </div>\n </div>\n\n <div *ngIf=\"mobile\">\n <div class=\"card_wrap\" *ngFor=\"let place of viewable\" fxLayout=\"row\">\n <div fxFlex=\"10%\"></div>\n <mat-card fxFlex=\"80%\" class=\"card\">\n <div> \n \n <div class=\"inner_card_placeName\" > <h3> {{place.brokerName}} </h3> </div>\n \n <img src=\"{{place.brokerLogo}}\"> </div>\n \n <div fxLayout=\"row\">\n <div fxFlex=\"20%\"></div>\n <div fxFlex=\"20%\"> \n <svg class=\"locationSymbol\"><use xlink:href=\"#icon-location2\"></use></svg> \n </div>\n <div fxFlex=\"50%\" fxLayoutAlign=\"left center\"> {{place.location}}</div> \n </div>\n\n <div class=\"inner_card_bottom_division\" fxLayout=\"row\">\n <div class=\"inner_card_interestRate\" fxFlex=\"50%\">\n <h4> Interest Rate </h4>\n <div> {{place.interestRate}}% </div>\n </div>\n <div fxFlex=\"50%\">\n <h4> Account Type </h4>\n <div> {{place.type}}</div>\n </div>\n </div>\n\n </mat-card>\n </div>\n </div>\n\n\n </div>\n\n\n\n</mat-drawer-container>"
/***/ }),
/***/ "./src/app/app.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_api_client_service__ = __webpack_require__("./src/app/services/api-client.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__data_model_place__ = __webpack_require__("./src/app/data-model/place.ts");
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 AppComponent = /** @class */ (function () {
function AppComponent(apiClient) {
var _this = this;
this.apiClient = apiClient;
this.title = 'app';
this.mobile = false;
this.searchable = [];
this.seniorAccounts = [];
this.taxFree = [];
this.highInterest = [];
this.youthAccounts = [];
this.pageHeight = 0;
this.pageHeight = window.screen.height;
apiClient.getHighInterest().subscribe(function (data) {
data.map(function (place) {
var currMap = new __WEBPACK_IMPORTED_MODULE_2__data_model_place__["a" /* Place */](place.brokerName, place.brokerLogo, place.location, place.interestRate, place.returnAmount, place.type, place.createdData);
_this.highInterest.push(currMap);
_this.searchable.push(currMap);
});
});
apiClient.getSeniorAccounts().subscribe(function (data) {
data.map(function (place) {
var currMap = new __WEBPACK_IMPORTED_MODULE_2__data_model_place__["a" /* Place */](place.brokerName, place.brokerLogo, place.location, place.interestRate, place.returnAmount, place.type, place.createdData);
_this.seniorAccounts.push(currMap);
_this.searchable.push(currMap);
});
});
apiClient.getTaxFree().subscribe(function (data) {
data.map(function (place) {
var currMap = new __WEBPACK_IMPORTED_MODULE_2__data_model_place__["a" /* Place */](place.brokerName, place.brokerLogo, place.location, place.interestRate, place.returnAmount, place.type, place.createdData);
_this.taxFree.push(currMap);
_this.searchable.push(currMap);
});
});
apiClient.getYouthAccounts().subscribe(function (data) {
data.map(function (place) {
var currMap = new __WEBPACK_IMPORTED_MODULE_2__data_model_place__["a" /* Place */](place.brokerName, place.brokerLogo, place.location, place.interestRate, place.returnAmount, place.type, place.createdData);
_this.youthAccounts.push(currMap);
_this.searchable.push(currMap);
});
});
this.viewable = this.seniorAccounts;
this.heading = "Senior Accounts";
}
AppComponent.prototype.ngOnInit = function () {
if (window.screen.width < 600) {
this.mobile = true;
}
};
AppComponent.prototype.onResize = function (event) {
if (event.target.innerWidth < 600) {
this.pageHeight = window.screen.height;
this.mobile = true;
}
else if (event.target.innerWidth > 600) {
this.pageHeight = window.screen.height;
this.mobile = false;
}
};
AppComponent.prototype.seniorClick = function () {
this.viewable = this.seniorAccounts;
this.heading = "Senior Accounts";
};
;
AppComponent.prototype.taxFreeClick = function () {
this.viewable = this.taxFree;
this.heading = "Tax Free Accounts";
};
AppComponent.prototype.highInterstClick = function () {
this.viewable = this.highInterest;
this.heading = "High Interest Accounts";
};
AppComponent.prototype.youthClick = function () {
this.viewable = this.youthAccounts;
this.heading = "Youth Accounts";
};
__decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["y" /* HostListener */])('window:resize', ['$event']),
__metadata("design:type", Function),
__metadata("design:paramtypes", [Object]),
__metadata("design:returntype", void 0)
], AppComponent.prototype, "onResize", null);
AppComponent = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
selector: 'app-root',
template: __webpack_require__("./src/app/app.component.html"),
styles: [__webpack_require__("./src/app/app.component.css")]
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__services_api_client_service__["a" /* ApiClientService */]])
], AppComponent);
return AppComponent;
}());
/***/ }),
/***/ "./src/app/app.module.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_flex_layout__ = __webpack_require__("./node_modules/@angular/flex-layout/esm5/flex-layout.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__angular_forms__ = __webpack_require__("./node_modules/@angular/forms/esm5/forms.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__app_component__ = __webpack_require__("./src/app/app.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__services_api_client_service__ = __webpack_require__("./src/app/services/api-client.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__services_component_link_service__ = __webpack_require__("./src/app/services/component-link.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_material_sidenav__ = __webpack_require__("./node_modules/@angular/material/esm5/sidenav.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__angular_material_button__ = __webpack_require__("./node_modules/@angular/material/esm5/button.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__angular_material_table__ = __webpack_require__("./node_modules/@angular/material/esm5/table.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__angular_material_card__ = __webpack_require__("./node_modules/@angular/material/esm5/card.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__angular_material_tabs__ = __webpack_require__("./node_modules/@angular/material/esm5/tabs.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__angular_material_icon__ = __webpack_require__("./node_modules/@angular/material/esm5/icon.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__angular_platform_browser_animations__ = __webpack_require__("./node_modules/@angular/platform-browser/esm5/animations.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_15__display_table_display_table_component__ = __webpack_require__("./src/app/display-table/display-table.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_16__search_view_search_view_component__ = __webpack_require__("./src/app/search-view/search-view.component.ts");
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 AppModule = /** @class */ (function () {
function AppModule() {
}
AppModule = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["I" /* NgModule */])({
declarations: [
__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* AppComponent */],
__WEBPACK_IMPORTED_MODULE_15__display_table_display_table_component__["a" /* DisplayTableComponent */],
__WEBPACK_IMPORTED_MODULE_16__search_view_search_view_component__["a" /* SearchViewComponent */]
],
imports: [
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
__WEBPACK_IMPORTED_MODULE_14__angular_platform_browser_animations__["a" /* BrowserAnimationsModule */],
__WEBPACK_IMPORTED_MODULE_3__angular_forms__["a" /* FormsModule */],
__WEBPACK_IMPORTED_MODULE_4__angular_common_http__["b" /* HttpClientModule */],
__WEBPACK_IMPORTED_MODULE_2__angular_flex_layout__["a" /* FlexLayoutModule */],
__WEBPACK_IMPORTED_MODULE_8__angular_material_sidenav__["a" /* MatSidenavModule */],
__WEBPACK_IMPORTED_MODULE_9__angular_material_button__["a" /* MatButtonModule */],
__WEBPACK_IMPORTED_MODULE_10__angular_material_table__["a" /* MatTableModule */],
__WEBPACK_IMPORTED_MODULE_11__angular_material_card__["a" /* MatCardModule */],
__WEBPACK_IMPORTED_MODULE_12__angular_material_tabs__["a" /* MatTabsModule */],
__WEBPACK_IMPORTED_MODULE_13__angular_material_icon__["a" /* MatIconModule */]
],
providers: [
__WEBPACK_IMPORTED_MODULE_7__services_component_link_service__["a" /* ComponentLinkService */],
__WEBPACK_IMPORTED_MODULE_6__services_api_client_service__["a" /* ApiClientService */]
],
bootstrap: [__WEBPACK_IMPORTED_MODULE_5__app_component__["a" /* AppComponent */]]
})
], AppModule);
return AppModule;
}());
/***/ }),
/***/ "./src/app/data-model/place.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return Place; });
var Place = /** @class */ (function () {
function Place(brokerName, brokerLogo, location, interestRate, returnAmount, type, createdData) {
if (brokerName === void 0) { brokerName = ""; }
if (brokerLogo === void 0) { brokerLogo = ""; }
if (location === void 0) { location = ""; }
if (interestRate === void 0) { interestRate = 0; }
if (returnAmount === void 0) { returnAmount = 0; }
if (type === void 0) { type = ""; }
if (createdData === void 0) { createdData = ""; }
this.brokerName = brokerName;
this.brokerLogo = brokerLogo;
this.location = location;
this.interestRate = interestRate;
this.returnAmount = returnAmount;
this.type = type;
this.createdData = createdData;
}
return Place;
}());
/***/ }),
/***/ "./src/app/display-table/display-table.component.html":
/***/ (function(module, exports) {
module.exports = "\n<!--\n<div class=\"table-users\">\n <div class=\"header\">Users</div>\n \n <table cellspacing=\"0\">\n <tr>\n <th>Logo</th>\n <th>Name</th>\n <th>Location</th>\n <th>Interest Rate</th>\n <th width=\"230\">Return Amount</th>\n </tr>\n\n\n </table>\n</div>\n\n-->"
/***/ }),
/***/ "./src/app/display-table/display-table.component.scss":
/***/ (function(module, exports) {
module.exports = "/*\r\nbody {\r\n background-color: lighten($baseColor, 30%);\r\n * { box-sizing: border-box; }\r\n}\r\n\r\n.header {\r\n background-color: darken($baseColor, 5%);\r\n color: white;\r\n font-size: 1.5em;\r\n padding: 1rem;\r\n text-align: center;\r\n text-transform: uppercase;\r\n}\r\n\r\nimg {\r\n border-radius: 50%;\r\n height: $imageSmall;\r\n width: $imageSmall;\r\n}\r\n\r\n.table-users {\r\n border: 1px solid darken($baseColor, 5%);\r\n border-radius: $borderRadius;\r\n box-shadow: 3px 3px 0 rgba(0,0,0,0.1);\r\n max-width: calc(100% - 2em);\r\n margin: 1em auto;\r\n overflow: hidden;\r\n width: 800px;\r\n}\r\n\r\ntable {\r\n width: 100%;\r\n \r\n td, th { \r\n color: darken($baseColor, 10%);\r\n padding: $padding; \r\n }\r\n \r\n td {\r\n text-align: center;\r\n vertical-align: middle;\r\n \r\n &:last-child {\r\n font-size: 0.95em;\r\n line-height: 1.4;\r\n text-align: left;\r\n }\r\n }\r\n \r\n th { \r\n background-color: lighten($baseColor, 50%);\r\n font-weight: 300;\r\n }\r\n \r\n tr { \r\n &:nth-child(2n) { background-color: white; }\r\n &:nth-child(2n+1) { background-color: lighten($baseColor, 55%) }\r\n }\r\n}\r\n\r\n@media screen and (max-width: 700px) { \r\n table, tr, td { display: block; }\r\n \r\n td {\r\n &:first-child {\r\n position: absolute;\r\n top: 50%;\r\n transform: translateY(-50%);\r\n width: $imageBig;\r\n }\r\n\r\n &:not(:first-child) {\r\n clear: both;\r\n margin-left: $imageBig;\r\n padding: 4px 20px 4px 90px;\r\n position: relative;\r\n text-align: left;\r\n\r\n &:before {\r\n color: lighten($baseColor, 30%);\r\n content: '';\r\n display: block;\r\n left: 0;\r\n position: absolute;\r\n }\r\n }\r\n\r\n &:nth-child(2):before { content: 'Name:'; }\r\n &:nth-child(3):before { content: 'Email:'; }\r\n &:nth-child(4):before { content: 'Phone:'; }\r\n &:nth-child(5):before { content: 'Comments:'; }\r\n }\r\n \r\n tr {\r\n padding: $padding 0;\r\n position: relative;\r\n &:first-child { display: none; }\r\n }\r\n}\r\n\r\n@media screen and (max-width: 500px) {\r\n .header {\r\n background-color: transparent;\r\n color: lighten($baseColor, 60%);\r\n font-size: 2em;\r\n font-weight: 700;\r\n padding: 0;\r\n text-shadow: 2px 2px 0 rgba(0,0,0,0.1);\r\n }\r\n \r\n img {\r\n border: 3px solid;\r\n border-color: lighten($baseColor, 50%);\r\n height: $imageBig;\r\n margin: 0.5rem 0;\r\n width: $imageBig;\r\n }\r\n \r\n td {\r\n &:first-child { \r\n background-color: lighten($baseColor, 45%); \r\n border-bottom: 1px solid lighten($baseColor, 30%);\r\n border-radius: $borderRadius $borderRadius 0 0;\r\n position: relative; \r\n top: 0;\r\n transform: translateY(0);\r\n width: 100%;\r\n }\r\n \r\n &:not(:first-child) {\r\n margin: 0;\r\n padding: 5px 1em;\r\n width: 100%;\r\n \r\n &:before {\r\n font-size: .8em;\r\n padding-top: 0.3em;\r\n position: relative;\r\n }\r\n }\r\n \r\n &:last-child { padding-bottom: 1rem !important; }\r\n }\r\n \r\n tr {\r\n background-color: white !important;\r\n border: 1px solid lighten($baseColor, 20%);\r\n border-radius: $borderRadius;\r\n box-shadow: 2px 2px 0 rgba(0,0,0,0.1);\r\n margin: 0.5rem 0;\r\n padding: 0;\r\n }\r\n \r\n .table-users { \r\n border: none; \r\n box-shadow: none;\r\n overflow: visible;\r\n }\r\n}\r\n*/\n"
/***/ }),
/***/ "./src/app/display-table/display-table.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return DisplayTableComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_component_link_service__ = __webpack_require__("./src/app/services/component-link.service.ts");
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 DisplayTableComponent = /** @class */ (function () {
function DisplayTableComponent(linkService) {
var _this = this;
this.linkService = linkService;
this.linkService.dataTable$.subscribe(function (data) {
_this.tableData = data;
});
}
DisplayTableComponent.prototype.ngOnInit = function () {
};
DisplayTableComponent = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
selector: 'app-display-table',
template: __webpack_require__("./src/app/display-table/display-table.component.html"),
styles: [__webpack_require__("./src/app/display-table/display-table.component.scss")]
}),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__services_component_link_service__["a" /* ComponentLinkService */]])
], DisplayTableComponent);
return DisplayTableComponent;
}());
/***/ }),
/***/ "./src/app/search-view/search-view.component.css":
/***/ (function(module, exports) {
module.exports = ""
/***/ }),
/***/ "./src/app/search-view/search-view.component.html":
/***/ (function(module, exports) {
module.exports = "<div>\n\n Search\n\n</div>"
/***/ }),
/***/ "./src/app/search-view/search-view.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return SearchViewComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
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 SearchViewComponent = /** @class */ (function () {
function SearchViewComponent() {
}
SearchViewComponent.prototype.ngOnInit = function () {
};
SearchViewComponent = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["m" /* Component */])({
selector: 'app-search-view',
template: __webpack_require__("./src/app/search-view/search-view.component.html"),
styles: [__webpack_require__("./src/app/search-view/search-view.component.css")]
}),
__metadata("design:paramtypes", [])
], SearchViewComponent);
return SearchViewComponent;
}());
/***/ }),
/***/ "./src/app/services/api-client.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ApiClientService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_common_http__ = __webpack_require__("./node_modules/@angular/common/esm5/http.js");
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 ApiClientService = /** @class */ (function () {
function ApiClientService(httpClient) {
this.httpClient = httpClient;
}
ApiClientService.prototype.getSeniorAccounts = function () {
return this.httpClient.get("http://ec2-52-43-83-228.us-west-2.compute.amazonaws.com/api/accounts/seniors-accounts/rates");
};
ApiClientService.prototype.getTaxFree = function () {
return this.httpClient.get("http://ec2-52-43-83-228.us-west-2.compute.amazonaws.com/api/accounts/tax-free/rates");
};
ApiClientService.prototype.getHighInterest = function () {
return this.httpClient.get("http://ec2-52-43-83-228.us-west-2.compute.amazonaws.com/api/accounts/high-interest/rates");
};
ApiClientService.prototype.getYouthAccounts = function () {
return this.httpClient.get("http://ec2-52-43-83-228.us-west-2.compute.amazonaws.com/api/accounts/youth-accounts/rates");
};
ApiClientService = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])(),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_common_http__["a" /* HttpClient */]])
], ApiClientService);
return ApiClientService;
}());
/***/ }),
/***/ "./src/app/services/component-link.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return ComponentLinkService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs__ = __webpack_require__("./node_modules/rxjs/Rx.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1_rxjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_1_rxjs__);
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__data_model_place__ = __webpack_require__("./src/app/data-model/place.ts");
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 ComponentLinkService = /** @class */ (function () {
function ComponentLinkService() {
this.dataTable = new __WEBPACK_IMPORTED_MODULE_1_rxjs__["BehaviorSubject"]([new __WEBPACK_IMPORTED_MODULE_2__data_model_place__["a" /* Place */]()]);
this.dataTable$ = this.dataTable.asObservable();
this.searchTable = new __WEBPACK_IMPORTED_MODULE_1_rxjs__["Subject"]();
this.searchTable$ = this.searchTable.asObservable();
}
ComponentLinkService.prototype.updateDataTable = function (data) {
this.dataTable.next(data);
};
ComponentLinkService.prototype.sendNewSearch = function (params) {
this.searchTable.next(params);
};
ComponentLinkService = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["A" /* Injectable */])()
], ComponentLinkService);
return ComponentLinkService;
}());
/***/ }),
/***/ "./src/environments/environment.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return environment; });
// The file contents for the current environment will overwrite these during build.
// The build system defaults to the dev environment which uses `environment.ts`, but if you do
// `ng build --env=prod` then `environment.prod.ts` will be used instead.
// The list of which env maps to which file can be found in `.angular-cli.json`.
var environment = {
production: false
};
/***/ }),
/***/ "./src/main.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
Object.defineProperty(__webpack_exports__, "__esModule", { value: true });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("./node_modules/@angular/core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__ = __webpack_require__("./node_modules/@angular/platform-browser-dynamic/esm5/platform-browser-dynamic.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__app_app_module__ = __webpack_require__("./src/app/app.module.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__environments_environment__ = __webpack_require__("./src/environments/environment.ts");
if (__WEBPACK_IMPORTED_MODULE_3__environments_environment__["a" /* environment */].production) {
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_13" /* enableProdMode */])();
}
Object(__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__["a" /* platformBrowserDynamic */])().bootstrapModule(__WEBPACK_IMPORTED_MODULE_2__app_app_module__["a" /* AppModule */])
.catch(function (err) { return console.log(err); });
/***/ }),
/***/ 0:
/***/ (function(module, exports, __webpack_require__) {
module.exports = __webpack_require__("./src/main.ts");
/***/ })
},[0]);
//# sourceMappingURL=main.bundle.js.map