-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.bundle.js
659 lines (538 loc) · 38.3 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
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
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, __webpack_require__) {
exports = module.exports = __webpack_require__("../../../../css-loader/lib/css-base.js")(false);
// imports
// module
exports.push([module.i, "\n.photos-select{\n max-width:350px;\n width: 20%;\n}\n\n.calc{\n max-width:420px;\n width: 27%;\n}\n", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ "../../../../../src/app/app.component.html":
/***/ (function(module, exports) {
module.exports = "<mat-drawer-container lass=\"example-container\">\n <mat-drawer class=\"photos-select\" mode=\"side\" opened=\"true\" position=\"start\">\n <app-photos-select></app-photos-select>\n </mat-drawer>\n <mat-drawer-content>\n <app-photo-label></app-photo-label>\n </mat-drawer-content>\n <mat-drawer class=\"calc\" mode=\"side\" opened=\"true\" position=\"end\">\n <app-calc></app-calc>\n </mat-drawer>\n</mat-drawer-container>\n"
/***/ }),
/***/ "../../../../../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__("../../../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 AppComponent = /** @class */ (function () {
function AppComponent() {
this.title = 'app';
}
AppComponent = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'app-root',
template: __webpack_require__("../../../../../src/app/app.component.html"),
styles: [__webpack_require__("../../../../../src/app/app.component.css")]
})
], AppComponent);
return AppComponent;
}());
/***/ }),
/***/ "../../../../../src/app/app.module.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* unused harmony export MaterialDesign */
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return AppModule; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__ = __webpack_require__("../../../platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_core__ = __webpack_require__("../../../core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__angular_router__ = __webpack_require__("../../../router/esm5/router.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_3__services_calc_params_service__ = __webpack_require__("../../../../../src/app/services/calc-params.service.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4__app_component__ = __webpack_require__("../../../../../src/app/app.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_5__calc_calc_component__ = __webpack_require__("../../../../../src/app/calc/calc.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_6__photo_label_photo_label_component__ = __webpack_require__("../../../../../src/app/photo-label/photo-label.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_7__photos_select_photos_select_component__ = __webpack_require__("../../../../../src/app/photos-select/photos-select.component.ts");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_8__angular_platform_browser_animations__ = __webpack_require__("../../../platform-browser/esm5/animations.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_9__angular_material__ = __webpack_require__("../../../material/esm5/material.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_10__angular_material_input__ = __webpack_require__("../../../material/esm5/input.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_11__angular_material_form_field__ = __webpack_require__("../../../material/esm5/form-field.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_12__angular_material_button__ = __webpack_require__("../../../material/esm5/button.es5.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_13__angular_forms__ = __webpack_require__("../../../forms/esm5/forms.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_14__ng_bootstrap_ng_bootstrap__ = __webpack_require__("../../../../@ng-bootstrap/ng-bootstrap/index.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 MaterialDesign = /** @class */ (function () {
function MaterialDesign() {
}
MaterialDesign = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["K" /* NgModule */])({
exports: [
__WEBPACK_IMPORTED_MODULE_9__angular_material__["a" /* MatSidenavModule */],
__WEBPACK_IMPORTED_MODULE_10__angular_material_input__["b" /* MatInputModule */],
__WEBPACK_IMPORTED_MODULE_11__angular_material_form_field__["c" /* MatFormFieldModule */],
__WEBPACK_IMPORTED_MODULE_12__angular_material_button__["a" /* MatButtonModule */]
]
})
], MaterialDesign);
return MaterialDesign;
}());
var AppModule = /** @class */ (function () {
function AppModule() {
}
AppModule = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_1__angular_core__["K" /* NgModule */])({
declarations: [
__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* AppComponent */],
__WEBPACK_IMPORTED_MODULE_5__calc_calc_component__["a" /* CalcComponent */],
__WEBPACK_IMPORTED_MODULE_6__photo_label_photo_label_component__["a" /* PhotoLabelComponent */],
__WEBPACK_IMPORTED_MODULE_7__photos_select_photos_select_component__["a" /* PhotosSelectComponent */]
],
imports: [
__WEBPACK_IMPORTED_MODULE_0__angular_platform_browser__["a" /* BrowserModule */],
MaterialDesign,
__WEBPACK_IMPORTED_MODULE_8__angular_platform_browser_animations__["a" /* BrowserAnimationsModule */],
__WEBPACK_IMPORTED_MODULE_13__angular_forms__["d" /* FormsModule */],
__WEBPACK_IMPORTED_MODULE_14__ng_bootstrap_ng_bootstrap__["a" /* NgbModule */].forRoot(),
__WEBPACK_IMPORTED_MODULE_2__angular_router__["a" /* RouterModule */].forRoot([
{ path: 'dashboard', component: __WEBPACK_IMPORTED_MODULE_5__calc_calc_component__["a" /* CalcComponent */] }
])
],
providers: [
__WEBPACK_IMPORTED_MODULE_13__angular_forms__["b" /* FormBuilder */],
__WEBPACK_IMPORTED_MODULE_3__services_calc_params_service__["a" /* CalcParamsService */]
],
bootstrap: [__WEBPACK_IMPORTED_MODULE_4__app_component__["a" /* AppComponent */]]
})
], AppModule);
return AppModule;
}());
/***/ }),
/***/ "../../../../../src/app/calc/calc.component.html":
/***/ (function(module, exports) {
module.exports = "<div class=\"container-calc\">\n <h2 class=\"title\">ФОТООБОИ {{selectedPhoto.name}}</h2>\n <p class=\"placeholder\">Длина стены от потолка</p>\n <div class=\"input-group\">\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"width\" placeholder=\"Recipient's username\" aria-label=\"Recipient's username\" aria-describedby=\"basic-addon2\">\n <span class=\"input-group-addon\" id=\"basic-addon2\">см</span>\n </div>\n <p class=\"placeholder\">Высота стены от потолка</p>\n <div class=\"input-group\">\n <input type=\"text\" class=\"form-control\" [(ngModel)]=\"height\" placeholder=\"Recipient's username\" aria-label=\"Recipient's username\" aria-describedby=\"basic-addon2\">\n <span class=\"input-group-addon\" id=\"basic-addon2\">см</span>\n </div>\n <button type=\"button\" class=\"btn btn-light btn-block own_button\" (click)=\"makeOwnMaket()\" >Самостоятельно сделать макет</button>\n <h2 class=\"title\">ЭФФЕКТЫ</h2>\n <div class=\"container-fluid\">\n <ng-container *ngFor=\"let filter of Filters\" >\n <div class=\"row\">\n <div class=\"col-sm-8\">\n <button type=\"button\" class=\"btn btn-light btn-block material_button\" [ngClass]=\"filter == selectedFilter? 'selected' : ''\" (click)=\"filterSelected(filter)\" >{{filter.name}}</button>\n <!-- <label class=\"btn btn-light btn-block material_button\" ngbButtonLabel>\n <input type=\"radio\" ngbButton > {{material.name}}\n </label> -->\n </div>\n <div *ngIf=\"filter && filter.id\" class=\"col-sm-4\">\n <p class=\"materials_cost\">{{filter.cost}}руб</p>\n <button type=\"button\" class=\"btn btn-info btn-sm\" (click)=\"moreAboutFilter(filter)\" >Подробней</button>\n </div>\n </div>\n </ng-container>\n </div>\n <h2 class=\"title\">МАТЕРИАЛЫ</h2>\n <div class=\"container-fluid\">\n <ng-container *ngFor=\"let material of Materials\" >\n <div class=\"row\">\n <div class=\"col-sm-8\">\n <button type=\"button\" class=\"btn btn-light btn-block material_button\" [ngClass]=\"material == selectedMaterial? 'selected' : ''\" (click)=\"materailSelected(material)\" >{{material.name}}</button>\n <!-- <label class=\"btn btn-light btn-block material_button\" ngbButtonLabel>\n <input type=\"radio\" ngbButton > {{material.name}}\n </label> -->\n </div>\n <div *ngIf=\"material && material.id\" class=\"col-sm-4\">\n <p class=\"materials_cost\">{{material.cost}}руб</p>\n <button type=\"button\" class=\"btn btn-info btn-sm\" (click)=\"moreAboutMaterial(material)\" >Подробней</button>\n </div>\n </div>\n </ng-container>\n </div>\n <div class=\"line\"></div>\n <div style=\"display: flex;\">\n <span class=\"total_cost\">{{totalCost}}руб</span>\n <button type=\"button\" class=\"btn btn-info buy_button\" (click)=\"buyWallper()\" >Купить</button>\n </div>\n</div>\n"
/***/ }),
/***/ "../../../../../src/app/calc/calc.component.scss":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("../../../../css-loader/lib/css-base.js")(false);
// imports
// module
exports.push([module.i, ".container-calc {\n background-color: white;\n padding: 0px 0px 5px 20px;\n overflow-x: hidden;\n overflow-y: auto; }\n\n.title {\n font-size: 25px;\n min-width: 360px;\n font-weight: 700; }\n\n.placeholder {\n margin-top: 10px;\n margin-bottom: 5px; }\n\n.materials_cost {\n margin-bottom: 1px;\n font-weight: 500; }\n\n.line {\n width: 100%;\n height: 2px;\n background-color: rgba(240, 240, 240, 0.829);\n margin-top: 10px;\n margin-bottom: 10px; }\n\n.total_cost {\n font-weight: bold;\n font-size: 27px;\n margin-right: 15px; }\n\n.buy_button {\n border-radius: 30px; }\n\n.form-control:focus {\n border-color: #117a8b !important;\n box-shadow: 0 0 0 0.2rem rgba(23, 162, 184, 0.5) !important; }\n\n.container-fluid {\n padding-right: 0px;\n padding-left: 0px;\n max-height: 170px;\n overflow-y: auto;\n overflow-x: hidden; }\n\n.container-fluid::-webkit-scrollbar-track, .container-calc::-webkit-scrollbar-track {\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n background-color: #F5F5F5;\n border-radius: 10px; }\n\n.container-fluid::-webkit-scrollbar, .container-calc::-webkit-scrollbar {\n width: 3px;\n background-color: #F5F5F5; }\n\n.container-fluid::-webkit-scrollbar-thumb, .container-calc::-webkit-scrollbar-thumb {\n border-radius: 10px;\n background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, #7a99d9), color-stop(0.72, #497dbd), color-stop(0.86, #1c3a94)); }\n\n.row {\n margin-bottom: 5px; }\n .row div {\n padding-right: 0px; }\n\n.own_button {\n margin-top: 10px;\n margin-bottom: 10px; }\n\n.material_button {\n height: 100%; }\n\n.selected {\n background-color: #17a2b8; }\n", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ "../../../../../src/app/calc/calc.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CalcComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("../../../core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_forms__ = __webpack_require__("../../../forms/esm5/forms.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_calc_params_service__ = __webpack_require__("../../../../../src/app/services/calc-params.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 __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
var CalcComponent = /** @class */ (function () {
function CalcComponent(fb, service) {
var _this = this;
this.fb = fb;
this.service = service;
this.Filters = [
{
name: 'Оригинал',
cost: 0
},
{
name: 'Негатив',
cost: 190,
color: 'white',
id: 'difference'
},
{
name: 'Монохромний',
cost: 300,
color: 'grey',
id: 'luminosity'
},
{
name: 'Сепия',
cost: 250,
color: 'rgb(200,150,50)',
id: 'luminosity'
},
{
name: 'Попарт',
cost: 452,
color: 'rgb(200,50,150)',
id: 'luminosity'
}
];
this.Materials = [
{
name: 'Оригинал',
cost: 0
},
{
name: 'Plust',
cost: 190,
url: 'PhotoCalcDemo/assets/textures/plust.jpg',
id: 'plust'
},
{
name: 'Rakuski',
cost: 230,
url: 'PhotoCalcDemo/assets/textures/gravi.jpg',
id: 'rakuski'
},
{
name: 'Gravel',
cost: 250,
url: 'PhotoCalcDemo/assets/textures/gravel.jpg',
id: 'gravel'
}
];
this.totalCost = 0;
this.selectedPhoto = { name: '', cost: 0 };
this.selectedMaterial = this.Materials[0]; //{cost:0}
this.selectedFilter = this.Filters[0]; //{cost:0}
this.height = 100;
this.width = 200;
this.service.photoUpdated.subscribe(function (photo) {
_this.selectedPhoto = photo;
_this.recountTotalCost();
});
fb.control({});
}
CalcComponent.prototype.ngOnInit = function () {
this.height = this.height ? parseInt(this.height.toString()) : null;
this.width = this.width ? parseInt(this.width.toString()) : null;
this.recountTotalCost();
};
CalcComponent.prototype.recountTotalCost = function () {
this.totalCost = this.selectedPhoto.cost + this.selectedMaterial.cost + this.selectedFilter.cost;
};
CalcComponent.prototype.materailSelected = function (material) {
this.selectedMaterial = material;
this.recountTotalCost();
this.service.materialUpdated.emit(material);
return true;
};
CalcComponent.prototype.moreAboutMaterial = function (material) {
console.log('more about material:', material);
};
CalcComponent.prototype.filterSelected = function (filter) {
this.selectedFilter = filter;
this.recountTotalCost();
this.service.filterUpdated.emit(filter);
return true;
};
CalcComponent.prototype.moreAboutFilter = function (filter) {
console.log('more about material:', filter);
};
CalcComponent.prototype.makeOwnMaket = function () {
console.log('makeOwnMaket');
};
CalcComponent.prototype.buyWallper = function () {
var buyObject = {};
buyObject.Photo = {
cost: this.selectedPhoto.cost,
id: this.selectedPhoto.id,
name: this.selectedPhoto.name,
url: this.selectedPhoto.url
};
buyObject.Material = {
name: this.selectedMaterial.name,
cost: this.selectedMaterial.cost
};
buyObject.Filter = {
name: this.selectedFilter.name,
cost: this.selectedFilter.cost
};
buyObject.width = this.width + "c\u043C";
buyObject.height = this.height + "c\u043C";
console.log('buy wallper:', buyObject);
};
CalcComponent = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'app-calc',
template: __webpack_require__("../../../../../src/app/calc/calc.component.html"),
styles: [__webpack_require__("../../../../../src/app/calc/calc.component.scss")]
}),
__param(1, Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["B" /* Inject */])(__WEBPACK_IMPORTED_MODULE_2__services_calc_params_service__["a" /* CalcParamsService */])),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_forms__["b" /* FormBuilder */], __WEBPACK_IMPORTED_MODULE_2__services_calc_params_service__["a" /* CalcParamsService */]])
], CalcComponent);
return CalcComponent;
}());
/***/ }),
/***/ "../../../../../src/app/photo-label/photo-label.component.html":
/***/ (function(module, exports) {
module.exports = "<div class=\"container-photo\">\n <div class=\"photo\" [style.background-image]=\"currentPhoto.urlSafe\" [style.background-color]=\"currentFilter.color\" [style.background-blend-mode]=\"currentFilter.id\" >\n <img *ngIf=\"currentMaterial && currentMaterial.url\" class=\"material_back\" [src]=\"currentMaterial.url\"/>\n <img *ngIf=\"currentRoom\" [src]=\"currentRoom.url\"/>\n <div class=\"room_click next\" (click)=\"nextRoom()\" >\n <span class=\"material-icons\">navigate_next</span>\n </div>\n <div class=\"room_click prev\" (click)=\"prevRoom()\" >\n <span class=\"material-icons\">navigate_before</span>\n </div>\n <div *ngIf=\"currentRoom\" class=\"hide_room\" (click)=\"hideRoom()\" >\n <span class=\"material-icons\">Скрить</span>\n </div>\n </div>\n</div>"
/***/ }),
/***/ "../../../../../src/app/photo-label/photo-label.component.scss":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("../../../../css-loader/lib/css-base.js")(false);
// imports
// module
exports.push([module.i, ".container-photo {\n height: 780px;\n width: 100%;\n padding: 0px 0px 0px 0px;\n background-color: white;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n .container-photo .photo {\n background-position: center;\n background-size: cover;\n height: 80%;\n position: relative;\n z-index: 2; }\n .container-photo .photo img {\n width: 100%;\n height: 100%;\n z-index: 22; }\n .container-photo .photo .material_back {\n height: 100%;\n width: 100%;\n position: absolute;\n z-index: -1;\n opacity: 0.4; }\n .container-photo .room_click {\n height: 100%;\n position: absolute;\n top: 0px;\n background-color: rgba(200, 200, 200, 0.3);\n width: 40px;\n cursor: pointer;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center; }\n .container-photo .room_click span {\n font-size: 40px;\n color: white;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n .container-photo .room_click:hover {\n background-color: rgba(200, 200, 200, 0.8); }\n .container-photo .next {\n right: 0px; }\n .container-photo .prev {\n left: 0px; }\n .container-photo .hide_room {\n position: absolute;\n width: 100%;\n height: 40px;\n bottom: 0px;\n background-color: rgba(200, 200, 200, 0.3);\n cursor: pointer;\n text-align: center; }\n .container-photo .hide_room span {\n font-size: 22px;\n color: white;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none; }\n .container-photo .hide_room:hover {\n background-color: rgba(200, 200, 200, 0.8); }\n", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ "../../../../../src/app/photo-label/photo-label.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PhotoLabelComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("../../../core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__services_calc_params_service__ = __webpack_require__("../../../../../src/app/services/calc-params.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 __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
var PhotoLabelComponent = /** @class */ (function () {
function PhotoLabelComponent(service) {
var _this = this;
this.service = service;
this.currentPhoto = { urlSafe: '' };
this.currentRoom = null;
this.currentFilter = { id: 'normal', color: 'white' };
this.currentMaterial = { id: 0, name: 'original', url: '' };
this.service.photoUpdated.subscribe(function (photo) {
_this.currentPhoto = photo;
});
this.service.filterUpdated.subscribe(function (filter) {
_this.currentFilter = filter;
});
this.service.materialUpdated.subscribe(function (material) {
_this.currentMaterial = material;
});
this.Rooms = [
'PhotoCalcDemo/assets/temp1.png',
'PhotoCalcDemo/assets/temp2.png',
'PhotoCalcDemo/assets/temp3.png',
'PhotoCalcDemo/assets/temp4.png',
'PhotoCalcDemo/assets/temp5.png'
];
}
PhotoLabelComponent.prototype.ngOnInit = function () {
this.nextRoom();
};
PhotoLabelComponent.prototype.nextRoom = function () {
if (!this.currentRoom)
this.currentRoom = { id: 0, url: '' };
this.currentRoom.id = this.currentRoom.id < (this.Rooms.length - 1) ? this.currentRoom.id + 1 : 0;
this.currentRoom.url = this.Rooms[this.currentRoom.id];
};
PhotoLabelComponent.prototype.prevRoom = function () {
if (!this.currentRoom)
this.currentRoom = { id: 0, url: '' };
this.currentRoom.id = this.currentRoom.id > 0 ? this.currentRoom.id - 1 : this.Rooms.length - 1;
this.currentRoom.url = this.Rooms[this.currentRoom.id];
};
PhotoLabelComponent.prototype.hideRoom = function () {
this.currentRoom = null;
};
PhotoLabelComponent = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'app-photo-label',
template: __webpack_require__("../../../../../src/app/photo-label/photo-label.component.html"),
styles: [__webpack_require__("../../../../../src/app/photo-label/photo-label.component.scss")]
}),
__param(0, Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["B" /* Inject */])(__WEBPACK_IMPORTED_MODULE_1__services_calc_params_service__["a" /* CalcParamsService */])),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__services_calc_params_service__["a" /* CalcParamsService */]])
], PhotoLabelComponent);
return PhotoLabelComponent;
}());
/***/ }),
/***/ "../../../../../src/app/photos-select/photos-select.component.html":
/***/ (function(module, exports) {
module.exports = "<div class=\"container-photo-select\">\n <div class=\"card\" *ngFor=\"let photo of Photos\" [style.background-image]=\"photo.urlSafe\" [ngClass]=\"photo == selectedPhoto ? 'selected' : ''\" (click)=\"selectPhoto(photo)\" >\n <div class=\"card-body\">\n <h3 class=\"card-text\">{{photo.name}}</h3>\n <h3 class=\"card-text\">{{photo.cost}}руб</h3>\n <button type=\"button\" class=\"btn btn-info btn-sm photo_about-button\" (click)=\"moreAboutPhoto(photo)\" >Подробней</button>\n </div>\n </div>\n</div>\n"
/***/ }),
/***/ "../../../../../src/app/photos-select/photos-select.component.scss":
/***/ (function(module, exports, __webpack_require__) {
exports = module.exports = __webpack_require__("../../../../css-loader/lib/css-base.js")(false);
// imports
// module
exports.push([module.i, ".container-photo-select {\n background-color: white;\n padding: 0px 20px 0px 0px;\n overflow-y: auto; }\n .container-photo-select .card {\n margin-bottom: 20px;\n background-position: center;\n background-size: cover;\n cursor: pointer; }\n .container-photo-select .card .card-body {\n background-color: rgba(1, 1, 1, 0.5);\n color: white;\n text-align: center; }\n .container-photo-select .card .card-body .photo_about-button {\n border-radius: 20px; }\n .container-photo-select .selected {\n box-shadow: 0px 0px 15px #17a2b8; }\n\n.container-photo-select::-webkit-scrollbar-track {\n -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);\n background-color: #F5F5F5;\n border-radius: 10px; }\n\n.container-photo-select::-webkit-scrollbar {\n width: 3px;\n background-color: #F5F5F5; }\n\n.container-photo-select::-webkit-scrollbar-thumb {\n border-radius: 10px;\n background-image: -webkit-gradient(linear, left bottom, left top, color-stop(0.44, #7a99d9), color-stop(0.72, #497dbd), color-stop(0.86, #1c3a94)); }\n", ""]);
// exports
/*** EXPORTS FROM exports-loader ***/
module.exports = module.exports.toString();
/***/ }),
/***/ "../../../../../src/app/photos-select/photos-select.component.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return PhotosSelectComponent; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("../../../core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__ = __webpack_require__("../../../platform-browser/esm5/platform-browser.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_2__services_calc_params_service__ = __webpack_require__("../../../../../src/app/services/calc-params.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 __param = (this && this.__param) || function (paramIndex, decorator) {
return function (target, key) { decorator(target, key, paramIndex); }
};
var PhotosSelectComponent = /** @class */ (function () {
function PhotosSelectComponent(sanitizer, service) {
var _this = this;
this.sanitizer = sanitizer;
this.service = service;
this.Photos = [
{
id: 'first',
cost: 2300,
url: 'https://homesteadandgarden.co.uk/wp-content/uploads/2015/12/Nature-Green-Garden-Road-Wide.jpg',
name: '"Fire is house"'
},
{
id: 'second',
cost: 2450,
url: 'https://www.quickenloans.com/blog/wp-content/uploads/2017/09/FirePlace.jpg',
name: '"Fire is Fire is Fire is Fire is Fire is Fire is ass"'
},
{
id: 'third',
cost: 2560,
url: 'http://webneel.com/daily/sites/default/files/images/daily/10-2013/3-nature-photography-cherry-tree.preview.jpg',
name: '"Fire is fireplace"'
},
{
id: 'fourth',
cost: 2560,
url: 'https://scontent.fdnk1-1.fna.fbcdn.net/v/t1.0-1/p720x720/16684123_1714534411896141_7118653729282711876_n.jpg?oh=b9aeb379899ff3b56442e24b8b61586b&oe=5ABB1383',
name: '"Fire is fireplace"'
},
{
id: 'fifth',
cost: 2560,
url: 'http://proshots-2.s3.amazonaws.com/ebf012ea89bc1482e9d9505a1d190c4ef97ff6c3e666c1d6564eb98a9e4d7053/640x480.jpg',
name: '"Fire is fireplace"'
}
];
this.Photos = this.Photos.map(function (photo) {
photo.urlSafe = _this.sanitizer.bypassSecurityTrustStyle("url('" + photo.url + "')");
return photo;
});
this.selectedPhoto = this.Photos[0];
}
PhotosSelectComponent.prototype.ngOnInit = function () {
this.selectPhoto(this.Photos[0]);
};
PhotosSelectComponent.prototype.selectPhoto = function (photo) {
this.selectedPhoto = photo;
this.service.photoUpdated.emit(photo);
};
PhotosSelectComponent.prototype.moreAboutPhoto = function (photo) {
console.log('more about photo:', photo);
};
PhotosSelectComponent = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["n" /* Component */])({
selector: 'app-photos-select',
template: __webpack_require__("../../../../../src/app/photos-select/photos-select.component.html"),
styles: [__webpack_require__("../../../../../src/app/photos-select/photos-select.component.scss")]
}),
__param(1, Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["B" /* Inject */])(__WEBPACK_IMPORTED_MODULE_2__services_calc_params_service__["a" /* CalcParamsService */])),
__metadata("design:paramtypes", [__WEBPACK_IMPORTED_MODULE_1__angular_platform_browser__["c" /* DomSanitizer */], __WEBPACK_IMPORTED_MODULE_2__services_calc_params_service__["a" /* CalcParamsService */]])
], PhotosSelectComponent);
return PhotosSelectComponent;
}());
/***/ }),
/***/ "../../../../../src/app/services/calc-params.service.ts":
/***/ (function(module, __webpack_exports__, __webpack_require__) {
"use strict";
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return CalcParamsService; });
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_0__angular_core__ = __webpack_require__("../../../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 CalcParamsService = /** @class */ (function () {
function CalcParamsService() {
this.photoUpdated = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["x" /* EventEmitter */]();
this.filterUpdated = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["x" /* EventEmitter */]();
this.materialUpdated = new __WEBPACK_IMPORTED_MODULE_0__angular_core__["x" /* EventEmitter */]();
this.photo = null;
}
CalcParamsService = __decorate([
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["C" /* Injectable */])(),
__metadata("design:paramtypes", [])
], CalcParamsService);
return CalcParamsService;
}());
/***/ }),
/***/ "../../../../../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__("../../../core/esm5/core.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_1__angular_platform_browser_dynamic__ = __webpack_require__("../../../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");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hammerjs__ = __webpack_require__("../../../../hammerjs/hammer.js");
/* harmony import */ var __WEBPACK_IMPORTED_MODULE_4_hammerjs___default = __webpack_require__.n(__WEBPACK_IMPORTED_MODULE_4_hammerjs__);
if (__WEBPACK_IMPORTED_MODULE_3__environments_environment__["a" /* environment */].production) {
Object(__WEBPACK_IMPORTED_MODULE_0__angular_core__["_18" /* 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