-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathplay-play-module-es5.js
3235 lines (2505 loc) · 248 KB
/
play-play-module-es5.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
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
function _createForOfIteratorHelper(o) { if (typeof Symbol === "undefined" || o[Symbol.iterator] == null) { if (Array.isArray(o) || (o = _unsupportedIterableToArray(o))) { var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var it, normalCompletion = true, didErr = false, err; return { s: function s() { it = o[Symbol.iterator](); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it["return"] != null) it["return"](); } finally { if (didErr) throw err; } } }; }
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
(window["webpackJsonp"] = window["webpackJsonp"] || []).push([["play-play-module"], {
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/addresses/addresses.component.html":
/*!***********************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/play/addresses/addresses.component.html ***!
\***********************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppPlayAddressesAddressesComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<ion-header>\n <ion-toolbar color=\"customColor\">\n <ion-title text-center class=\"toolbarTitle\">My addresses</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"addressesPage-container flexColCentered\">\n\n <div class=\"map-sample\">\n <img src=\"assets/graphicMat/map_sample.png\" alt=\"map-sample\" />\n </div>\n\n <div *ngIf=\"listIsEmpty\" class=\"bubble\">\n <img [src]=\"noAddressBubble\" alt=\"noAddressesYet\" />\n </div>\n\n <div class=\"address-list-container\">\n <ul *ngFor=\"let address of addressList\" class=\"address-item\">\n <li class=\"address-item\">\n <p>Today at : {{ address.timestamp | date: 'h:mm a z'}}</p>\n {{ address.lat }} : {{ address.long }}\n </li>\n <div class=\"btns-container\" (click)=\"removeAddress(address)\">\n <!-- <img [src]=\"plusBtn\" alt=\"plus-btn\" (click)=\"\" /> -->\n <img [src]=\"minusBtn\" alt=\"minus-btn\" />\n </div>\n </ul>\n </div>\n\n</ion-content>";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/backpack/backpack.component.html":
/*!*********************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/play/backpack/backpack.component.html ***!
\*********************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppPlayBackpackBackpackComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<ion-header>\n <ion-toolbar color=\"customColor\">\n <ion-title text-center class=\"toolbarTitle\">Backpack</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\n\n <div class=\"backpack-elements-container flexColCentered\">\n <div class=\"bag-illust-container circlesImgBg\">\n <div class=\"bag-img-container\">\n <img src=\"assets/graphicMat/candyBag.png\" alt=\"\" />\n </div>\n\n <div class=\"total flexColCentered\">\n <h2>Total candy : {{ totalCandy }}</h2>\n <h2>Total points : {{ totalPoints }}</h2>\n </div>\n </div>\n\n <!-- <div class=\"cornCandy-container\">\n <ng-container *ngFor=\"let i of [].constructor(8)\">\n <img src=\"assets/graphicMat/corn_candy.png\" alt=\"\" />\n </ng-container>\n </div> -->\n\n <!-- TO DO ? : get level (banner) at init --\n <div class=\"current-level\">\n <h2>Current level</h2>\n <h2>{{levelName}}</h2>\n </div> -->\n <div *ngIf=\"collectedCandy.length > 0;else noCandyYetBlock\">\n <div *ngFor=\"let item of collectedCandy\" class=\"myCollectedCandy\">\n <div class=\"candyItem\">\n <div class=\"candyThumbnail\">\n <img src=\"{{item.image_front_url}}\">\n </div>\n <div class=\"candyName\">\n <!-- <h2>{{data.brands_tags[1]}}</h2> -->\n <h1>{{ item.product_name | shortenString:30 }}</h1>\n <button (click)=\"seeCandyInfos(item._id)\">see infos</button>\n </div>\n <div class=\"amount\">\n <h1>{{ item.amountInBackpack }}</h1>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n <ng-template #noCandyYetBlock>\n <div class=\"noCandyYet\">\n <!-- <h1>No candy yet !</h1> -->\n <img [src]=\"ghostBubble\" alt=\"no candy bubble\" />\n <img [src]=\"ghostImg\" alt=\"little ghost\" />\n </div>\n </ng-template>\n\n\n</ion-content>";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/candy-details/candy-details.component.html":
/*!*******************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/play/candy-details/candy-details.component.html ***!
\*******************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppPlayCandyDetailsCandyDetailsComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<ion-header>\n <ion-toolbar color=\"customColor\">\n <ion-title text-center class=\"toolbarTitle\">Candy Infos</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\n <div class=\"candyDetailsPage\" *ngIf=\"candyItem\">\n\n<!-- <div class=\"info\">\n Due to the reliance on the database, some info might not be totally accurate.<br>\n 'Open food facts' database relies itself on the inputs of users and on the work of its devoted developers, \n so it is subject to constant changes.<br>\n We can see for instance, that the english version of ingredients list (in use here) does not contain 'gelatin' for certain candy,\n although it is definitely part of this list in the french version.\n </div> -->\n\n <div class=\"candyItemTitle flexRowCentered\">\n <div class=\"candyThumbnail\">\n <img src=\"{{ candyItem.image_front_url }}\">\n </div>\n <div>\n <h1>{{ candyItem.product_name | shortenString:30 }}</h1>\n </div>\n </div>\n\n <ion-row class=\"candy-checklist\">\n <ion-col>\n <ion-row class=\"checklistType\">\n <div *ngIf=\"candyChecklist.organic;else elseblock\"><img [src]=iconTrue /></div>\n <ng-template #elseblock><img [src]=iconFalse /></ng-template>\n Organic\n </ion-row>\n\n <ion-row class=\"checklistType\">\n <div *ngIf=\"candyChecklist.additives;else elseblock\"><img [src]=iconTrue /></div>\n <ng-template #elseblock><img [src]=iconFalse /></ng-template>\n Additives\n </ion-row>\n </ion-col>\n\n <ion-col>\n <ion-row class=\"checklistType\">\n <div *ngIf=\"candyChecklist.glutenFree;else elseblock\"><img [src]=iconTrue /></div>\n <ng-template #elseblock><img [src]=iconFalse /></ng-template>\n Gluten free\n </ion-row>\n\n <ion-row class=\"checklistType\">\n <div *ngIf=\"candyChecklist.vegan;else elseblock\"><img [src]=iconTrue /></div>\n <ng-template #elseblock><img [src]=iconFalse /></ng-template>\n Vegan\n </ion-row>\n <ion-row class=\"checklistType\">\n <div *ngIf=\"candyChecklist.vegetarian;else elseblock\"><img [src]=iconTrue /></div>\n <ng-template #elseblock><img [src]=iconFalse /></ng-template>\n Vegetarian\n </ion-row>\n </ion-col>\n </ion-row>\n\n <div class=\"rubriks\">\n <div class=\"rubrik\">\n <div class=\"rubrik-title flexRowCentered\" (click)=\"toggleIngredients()\">\n <h1>Ingredients hierarchy</h1>\n <img [src]=arrowDownImg />\n </div>\n <div class=\"candyIngredients\" *ngIf=\"showIngredients\">\n <table>\n <tr *ngFor=\"let i of candyItem.ingredients_tags\">\n <td>\n {{ i | removeChars | removeUnderscore }}\n </td>\n </tr>\n </table>\n </div>\n </div>\n\n <div class=\"rubrik\">\n <div class=\"rubrik-title flexRowCentered\" (click)=\"toggleNutriscore()\">\n <h1>Nutriscore</h1>\n <img [src]=arrowDownImg />\n </div>\n <div class=\"candyNutriscore\" *ngIf=\"showNutriscore\">\n <table>\n <tr *ngFor=\"let i of candyItem.nutriscore_data | keyvalue\">\n <td>\n {{ i.key | removeUnderscore }}\n </td>\n <td>\n {{ i.value }}\n </td>\n </tr>\n </table>\n </div>\n </div>\n\n <div class=\"rubrik\">\n <div class=\"rubrik-title flexRowCentered\" (click)=\"toggleAllergens()\">\n <h1>Allergens</h1>\n <img [src]=arrowDownImg />\n </div>\n <div *ngIf=\"showAllergens\" class=\"candyAllergens\">\n <table *ngIf=\"allergens;else none\">\n <tr *ngFor=\"let i of candyItem.allergens_hierarchy\">\n <td>\n {{ i | removeChars }}\n </td>\n </tr>\n </table>\n <ng-template #none>\n <h1>No listed allergen in the database</h1>\n </ng-template>\n </div>\n </div>\n </div>\n </div>\n\n</ion-content>";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/candy-list/candy-list.component.html":
/*!*************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/play/candy-list/candy-list.component.html ***!
\*************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppPlayCandyListCandyListComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "\n<ion-header>\n <ion-toolbar color=\"customColor\">\n <ion-title text-center class=\"toolbarTitle\">Candy to find</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"candyPageContainer\">\n\n <div class=\"add-label flexRowCentered \">\n <ion-searchbar animated class=\"custom-searchbar\"\n [formControl]=\"searchControl\"\n (ionChange)=\"onSearchInput()\">\n </ion-searchbar>\n <img src=\"assets/graphicMat/bubble_add2.png\" alt=\"\" />\n </div>\n\n\n <div *ngIf=\"candyList$ | async as candyList; else loading\">\n <div *ngFor=\"let candyItem of candyList$ | async\" class=\"candyList\">\n<!-- <div *ngIf=\"candyList; else loading\">\n <div *ngFor=\"let candyItem of candyList\" class=\"candyList\"> -->\n <div class=\"candyItem\">\n <div class=\"candyThumbnail\">\n <img src=\"{{candyItem.image_front_url}}\">\n </div>\n <div class=\"candyName\">\n <!-- <h2>{{data.brands_tags[1]}}</h2> -->\n <h1>{{ candyItem.product_name | shortenString:30 }}</h1>\n </div>\n <div class=\"plus-btn\">\n <!-- <button (click)=\"sendId(candyItem._id)\"> -->\n <button (click)=\"addCandyToBackpack(candyItem)\">\n <img src=\"assets/graphicMat/zoomIn.png\" alt=\"plus-button\"/>\n </button>\n </div>\n </div>\n </div>\n </div>\n \n <!-- \n TODO: find a workaround to make loading anim work with condition \n <ng-template #loading>\n <app-loading-animation></app-loading-animation>\n </ng-template> \n -->\n \n <ng-template #loading>\n <img src= \"{{ anim }}\"/>\n <h1 class=\"loading\">\n loading... \n </h1>\n </ng-template> \n\n <div class=\"newChallenge-btn\" *ngIf=\"newChallenge\">\n <button (click)=\"goToChallenges()\">New challenge!</button>\n </div>\n\n</ion-content>\n";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/challenges-list/challenges-list.component.html":
/*!***********************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/play/challenges-list/challenges-list.component.html ***!
\***********************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppPlayChallengesListChallengesListComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<ion-header>\n <ion-toolbar color=\"customColor\">\n <ion-title text-center class=\"toolbarTitle\">Challenges</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"special-bg\">\n\n <div *ngIf=\"achievedTricksdisplay || achievedTreatsdisplay;else listIsEmpty\" class=\"main-container\">\n <h2>You have achieved these so far ! </h2>\n \n <div *ngFor=\"let treat of achievedTreatsList\" class=\" treat flexRowCentered\">\n <img [src]=iconTrue />\n <h1><span>treat:<br></span>{{ treat.challengeDescription }}</h1>\n <h2>This got you<br><span>{{treat.bonusPoints}}</span> bonus points</h2>\n </div>\n\n <div *ngFor=\"let trick of achievedTricksList\" class=\"trick flexRowCentered\">\n <img [src]=iconTrue />\n <h1><span>trick:<br></span>{{ trick.challengeDescription }}</h1>\n <h2>This got you<br><span>{{trick.bonusPoints}}</span> bonus points</h2>\n </div>\n </div>\n\n <ng-template #listIsEmpty>\n <img [src]=\"noChallengesYetImg\" alt=\"noChallengesYet\" class=\"bubble\" />\n </ng-template >\n</ion-content>";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/challenges/challenges.component.html":
/*!*************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/play/challenges/challenges.component.html ***!
\*************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppPlayChallengesChallengesComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<ion-header>\n <ion-toolbar color=\"customColor\">\n <!-- <ion-title text-center class=\"toolbarTitle\">Trick or treat</ion-title> -->\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"special-bg\">\n\n <div class=\"main-container\" *ngIf=\"dataIsLoaded\">\n\n <div class=\"upper-row\">\n <h1>You Chose..<br><span>{{ choice }} !</span></h1>\n </div>\n \n <div class=\"main-row\">\n <h1>Your challenge:</h1>\n <div class=\"description-container\">\n <p>{{ currentChallenge.challengeDescription }}</p>\n <p>Bonus Points : {{ currentChallenge.bonusPoints }}</p>\n </div>\n </div>\n\n <div class=\"bottom-row\">\n <p>{{ currentChallenge.challengeType }}</p>\n <button class=\"classicBtn\" (click)=\"isDone(currentChallenge)\">Done!</button>\n <button class=\"classicBtn\" (click)=\"isSkipped()\">Skip challenge</button>\n <img src=\"{{ candleSkullImg }}\" alt=\"candle-skull\" />\n </div>\n\n </div>\n\n</ion-content>";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/map/map.component.html":
/*!***********************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/play/map/map.component.html ***!
\***********************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppPlayMapMapComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<ion-header>\n <ion-toolbar color=\"customColor\">\n <ion-title text-center class=\"toolbarTitle\">\n Your map\n </ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\n\n <div class=\"mapContainer\">\n <div id=\"map\"></div>\n </div>\n <div class=\"options-container\">\n <!-- <button (click)=\"see()\">pull</button> -->\n <div class=\"saveLocationBtnContainer\">\n <button class=\"flexRowCentered\" (click)=\"saveAddress()\">\n <img [src]=\"heartIcon\" alt=\"heartIcon\" />\n Save this address to favorites !\n </button>\n </div>\n </div>\n\n\n</ion-content>";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/trick-or-treat/trick-or-treat.component.html":
/*!*********************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/play/trick-or-treat/trick-or-treat.component.html ***!
\*********************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppPlayTrickOrTreatTrickOrTreatComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<ion-header>\n <ion-toolbar color=\"customColor\">\n <ion-title text-center class=\"toolbarTitle\">Trick or treat</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content class=\"special-bg\">\n\n <div class=\"main-container flexColCentered\">\n\n <div class=\"upper-row flexRowCentered\" (click)=\"choseTreat()\">\n <h1>Choose<br><span>treat!</span></h1>\n <img src=\"{{candyImg }}\" alt=\"candy\" />\n </div>\n \n <div class=\"main-row flexRowCentered\">\n <img src=\"{{ treatOrTrickImg }}\" alt=\"treatOrTrick\" />\n </div>\n \n <div class=\"bottom-row flexRowCentered\" (click)=\"choseTrick()\">\n <img src=\"{{ witchHatImg }}\" alt=\"witch-hat\" />\n <h1>Choose<br><span>trick!</span></h1>\n </div>\n\n </div>\n\n</ion-content>";
/***/
},
/***/
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/user-stats/user-stats.component.html":
/*!*************************************************************************************************!*\
!*** ./node_modules/raw-loader/dist/cjs.js!./src/app/play/user-stats/user-stats.component.html ***!
\*************************************************************************************************/
/*! exports provided: default */
/***/
function node_modulesRawLoaderDistCjsJsSrcAppPlayUserStatsUserStatsComponentHtml(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = "<ion-header>\n <ion-toolbar color=\"customColor\">\n <ion-title text-center class=\"toolbarTitle\">My stats</ion-title>\n </ion-toolbar>\n</ion-header>\n\n<ion-content>\n\n <div class=\"stats-container\">\n <!-- <div *ngFor=\"let stat of userStats\" class=\"stats-container\" style=\"background-image: '{{ currentLevel.levelImg }}'\">\n -->\n <img src=\"{{ currentLevel.levelImg }}\" />\n\n <div class=\"item-level\">\n <h1>Current Level</h1>\n <h2>{{ currentLevel.levelName }}</h2>\n </div>\n\n <div class=\"item\">\n <h1>Total Points</h1>\n <h2>{{ totalPoints }}</h2>\n </div>\n\n <div class=\"item\">\n <h1>Total Candy</h1>\n <h2>{{ candyCount }}</h2>\n </div>\n\n <div class=\"item\" (click)=\"goToAddresses()\">\n <h1>Saved Addresses</h1>\n <h2>{{ savedAddressesCount }}</h2>\n </div>\n\n <div class=\"item\" (click)=\"goToChallenges()\">\n <h1>Completed challenges</h1>\n <h2>{{ completedChallengesCount }}</h2>\n </div>\n </div>\n\n\n <div class=\"bottom-cards-container\">\n\n <div class=\"cardsList flexRowCentered\">\n <div *ngFor=\"let level of levels\">\n <div class=\"card-container flexColCentered\">\n <div *ngIf=\"level.idLevel === currentLevel.idLevel+1\" class=\"bubbleNext\">\n <h2>Next mission:<br>Get the <span>{{ level.levelCardName }} !</span></h2>\n </div>\n <div class=\"card-img-container\">\n <img src=\"{{ level.levelCard }}\" [class] =\"level.idLevel===currentLevel.idLevel ? 'opacity' : 'noOpacity'\"/>\n </div>\n </div>\n </div>\n </div>\n </div>\n\n</ion-content>";
/***/
},
/***/
"./src/app/play/addresses/addresses.component.scss":
/*!*********************************************************!*\
!*** ./src/app/play/addresses/addresses.component.scss ***!
\*********************************************************/
/*! exports provided: default */
/***/
function srcAppPlayAddressesAddressesComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = ":root {\n /*--ion-color-primary: #ffa500;\n --ion-color-secondary: #B4CDFF;\n --ion-color-tertiary: #ffc0cb; */ }\n\n@font-face {\n font-family: flyingleather;\n src: url('flyingleather.ttf') format(\"truetype\"); }\n\n@font-face {\n font-family: TitanOne;\n src: url('TitanOne-Regular.ttf') format(\"truetype\"); }\n\n/* $font-family-base: \"flying_leatherneck\";\n $font-family-md-base: $font-family-base;\n $font-family-ios-base: $font-family-base;\n $font-family-md-base: $font-family-base;\n $font-family-wp-base: $font-family-base; */\n\n.addressesPage-container .map-sample img {\n width: 100%; }\n\n.addressesPage-container .address-list-container {\n height: 30vh;\n color: #b2caf8; }\n\n.addressesPage-container .address-list-container ul {\n width: 90%;\n margin: auto;\n display: flex;\n flex-direction: row;\n align-items: center; }\n\n.addressesPage-container .address-list-container ul li {\n min-width: 85%;\n border: 2px solid #b1c9fb;\n border-radius: 20px;\n list-style-image: url('heartAsset_red_mini.png');\n font-size: 1rem;\n font-family: TitanOne;\n color: #ffeedf;\n padding: 5%;\n margin: 2%; }\n\n.addressesPage-container .address-list-container ul .btns-container {\n width: 10%; }\n\n.addressesPage-container .bubble {\n width: 40%;\n margin: 10% auto; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9oaWxkZWdhcmRhZ25lc2dlbmF5L0RvY3VtZW50cy9BbmRCRVlPTkQvQ0FORFlfQ0hBU0VfMjAyMF9pb25pYy9jYW5keUNoYXNlMjAyMElvbmljNS9zcmMvdGhlbWUvdmFyaWFibGVzLnNjc3MiLCJzcmMvYXBwL3BsYXkvYWRkcmVzc2VzL2FkZHJlc3Nlcy5jb21wb25lbnQuc2NzcyIsIi9Vc2Vycy9oaWxkZWdhcmRhZ25lc2dlbmF5L0RvY3VtZW50cy9BbmRCRVlPTkQvQ0FORFlfQ0hBU0VfMjAyMF9pb25pYy9jYW5keUNoYXNlMjAyMElvbmljNS9zcmMvYXBwL3BsYXkvYWRkcmVzc2VzL2FkZHJlc3Nlcy5jb21wb25lbnQuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFFQTtFQUVBOztrQ0NEa0MsRURHQzs7QUFtRGpDO0VBQ0ksMEJBQTBCO0VBQzFCLGdEQUErRCxFQUFBOztBQUduRTtFQUNJLHFCQUFxQjtFQUNyQixtREFBa0UsRUFBQTs7QUFJeEU7Ozs7OENDbkQ4Qzs7QUNmOUM7RUFFYyxXQUFXLEVBQUE7O0FBRnpCO0VBS1EsWUFBWTtFQUNaL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XNzLWxpc3QtY29udGFpbmVyIHVsIC5idG5zLWNvbnRhaW5lciB7XG4gICAgICB3aWR0aDogMTAlOyB9XG5cbi5hZGRyZXNzZXNQYWdlLWNvbnRhaW5lciAuYnViYmxlIHtcbiAgd2lkdGg6IDQwJTtcbiAgbWFyZ2luOiAxMCUgYXV0bzsgfVxuIiwiQGltcG9ydCBcInNyYy90aGVtZS92YXJpYWJsZXMuc2Nzc1wiO1xuXG4uYWRkcmVzc2VzUGFnZS1jb250YWluZXIge1xuICAgIC5tYXAtc2FtcGxlIHsgXG4gICAgICAgIGltZyB7IHdpZHRoOiAxMDAlO31cbiAgICB9XG4gICAgLmFkZHJlc3MtbGlzdC1jb250YWluZXIge1xuICAgICAgICBoZWlnaHQ6IDMwdmg7XG4gICAgICAgIGNvbG9yOiAjYjJjYWY4O1xuICAgICAgICB1bCB7XG4gICAgICAgICAgICB3aWR0aDogOTAlO1xuICAgICAgICAgICAgbWFyZ2luOiBhdXRvO1xuICAgICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuXG4gICAgICAgICAgICBsaSB7XG4gICAgICAgICAgICAgICAgbWluLXdpZHRoOjg1JTtcbiAgICAgICAgICAgICAgICBib3JkZXI6IDJweCBzb2xpZCAkbWFpbi1ibHVlO1xuICAgICAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDIwcHg7XG4gICAgICAgICAgICAgICAgbGlzdC1zdHlsZS1pbWFnZTogdXJsKFwic3JjL2Fzc2V0cy9ncmFwaGljTWF0L2hlYXJ0QXNzZXRfcmVkX21pbmkucG5nXCIpO1xuICAgICAgICAgICAgICAgIGZvbnQtc2l6ZTogMXJlbTtcbiAgICAgICAgICAgICAgICBmb250LWZhbWlseTogJHRpdGFuT25lO1xuICAgICAgICAgICAgICAgIGNvbG9yOiAkbGlnaHQtb3JhbmdlO1xuICAgICAgICAgICAgICAgIHBhZGRpbmc6IDUlO1xuICAgICAgICAgICAgICAgIG1hcmdpbjogMiU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAuYnRucy1jb250YWluZXIge1xuICAgICAgICAgICAgICAgIHdpZHRoOiAxMCU7XG4gICAgICAgICAgICB9XG4gICAgICAgIFxuICAgICAgICB9XG4gICAgfVxuICAgIC5idWJibGUge1xuICAgICAgICB3aWR0aDogNDAlO1xuICAgICAgICBtYXJnaW46IDEwJSBhdXRvO1xuICAgIH1cbn1cbiJdfQ== */";
/***/
},
/***/
"./src/app/play/addresses/addresses.component.ts":
/*!*******************************************************!*\
!*** ./src/app/play/addresses/addresses.component.ts ***!
\*******************************************************/
/*! exports provided: AddressesComponent */
/***/
function srcAppPlayAddressesAddressesComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "AddressesComponent", function () {
return AddressesComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _shared_services_user_stats_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../../shared/services/user-stats.service */
"./src/app/shared/services/user-stats.service.ts");
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! @ionic/angular */
"./node_modules/@ionic/angular/fesm2015/ionic-angular.js");
var AddressesComponent = /*#__PURE__*/function () {
function AddressesComponent(userStatsService, alertController) {
_classCallCheck(this, AddressesComponent);
this.userStatsService = userStatsService;
this.alertController = alertController;
this.addressCoords = {};
this.noAddressBubble = 'assets/graphicMat/noAddressYet_bubble.png';
this.plusBtn = 'assets/graphicMat/zoomIn.png';
this.minusBtn = 'assets/graphicMat/zoomOut.png';
this.addressList = [];
this.addressCoords = {
lat: 0,
"long": 0
};
this.listIsEmpty = false;
}
_createClass(AddressesComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
var _this = this;
this.userStatsService.getCurrentAddressesList().subscribe(function (data) {
// console.log('RAW==', data);
_this.addressList = data; // console.log('ADDRESS lIST==', this.addressList);
if (_this.addressList.length === 0) {
_this.listIsEmpty = true;
}
});
}
}, {
key: "removeAddress",
value: function removeAddress(address) {
// this.addressList.
this.presentConfirmDelete();
}
}, {
key: "presentConfirmDelete",
value: function presentConfirmDelete() {
return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee() {
var alert;
return regeneratorRuntime.wrap(function _callee$(_context) {
while (1) {
switch (_context.prev = _context.next) {
case 0:
_context.next = 2;
return this.alertController.create({
cssClass: 'dialog',
header: 'Are you sure?',
subHeader: 'Do you really want to delete this address?',
// message: 'Do you really want to delete this address?',
buttons: ['No!', 'Delete', 'Cancel']
});
case 2:
alert = _context.sent;
_context.next = 5;
return alert.present();
case 5:
case "end":
return _context.stop();
}
}
}, _callee, this);
}));
}
}]);
return AddressesComponent;
}();
AddressesComponent.ctorParameters = function () {
return [{
type: _shared_services_user_stats_service__WEBPACK_IMPORTED_MODULE_2__["UserStatsService"]
}, {
type: _ionic_angular__WEBPACK_IMPORTED_MODULE_3__["AlertController"]
}];
};
AddressesComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-addresses',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./addresses.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/addresses/addresses.component.html"))["default"],
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./addresses.component.scss */
"./src/app/play/addresses/addresses.component.scss"))["default"]]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_shared_services_user_stats_service__WEBPACK_IMPORTED_MODULE_2__["UserStatsService"], _ionic_angular__WEBPACK_IMPORTED_MODULE_3__["AlertController"]])], AddressesComponent);
/***/
},
/***/
"./src/app/play/backpack/backpack.component.scss":
/*!*******************************************************!*\
!*** ./src/app/play/backpack/backpack.component.scss ***!
\*******************************************************/
/*! exports provided: default */
/***/
function srcAppPlayBackpackBackpackComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = ":root {\n /*--ion-color-primary: #ffa500;\n --ion-color-secondary: #B4CDFF;\n --ion-color-tertiary: #ffc0cb; */ }\n\n@font-face {\n font-family: flyingleather;\n src: url('flyingleather.ttf') format(\"truetype\"); }\n\n@font-face {\n font-family: TitanOne;\n src: url('TitanOne-Regular.ttf') format(\"truetype\"); }\n\n/* $font-family-base: \"flying_leatherneck\";\n $font-family-md-base: $font-family-base;\n $font-family-ios-base: $font-family-base;\n $font-family-md-base: $font-family-base;\n $font-family-wp-base: $font-family-base; */\n\n.backpack-elements-container {\n margin: 5% 10%; }\n\n.backpack-elements-container .bag-illust-container {\n height: 10rem;\n width: 100%;\n background-size: cover;\n display: flex;\n flex-flow: row nowrap;\n justify-content: center; }\n\n.backpack-elements-container .bag-illust-container .bag-img-container {\n margin: auto 2%; }\n\n.backpack-elements-container .bag-illust-container .bag-img-container img {\n height: 6rem; }\n\n.backpack-elements-container .total {\n align-items: flex-start; }\n\n.backpack-elements-container .total h2 {\n text-align: center;\n text-transform: uppercase;\n font-size: 1rem;\n font-family: TitanOne; }\n\n.backpack-elements-container .total h2:first-child {\n color: #ffa500; }\n\n.backpack-elements-container .total h2:nth-child(2) {\n color: #ffc0cb; }\n\n.backpack-elements-container .myCollectedCandy {\n width: 60vw; }\n\n.backpack-elements-container .myCollectedCandy .candyItem {\n padding: 3%;\n margin: 3% 0%;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-items: center;\n border: 2px solid #b1c9fb;\n border-radius: 50px; }\n\n.backpack-elements-container .myCollectedCandy .candyItem .candyThumbnail {\n height: 3rem;\n width: 3rem;\n min-width: 3rem;\n background-color: pink;\n align-content: center;\n align-items: center;\n overflow: hidden;\n border-radius: 50%; }\n\n.backpack-elements-container .myCollectedCandy .candyItem .candyName {\n max-width: 60%;\n text-align: center;\n display: flex;\n flex-direction: column; }\n\n.backpack-elements-container .myCollectedCandy .candyItem .candyName h1 {\n font-family: TitanOne;\n color: #b1c9fb;\n font-size: 0.7rem;\n text-transform: uppercase;\n transform: scale(1, 1.2);\n -webkit-transform: scale(1, 1.2);\n /* Safari and Chrome */\n -moz-transform: scale(1, 1.2);\n /* Firefox */\n -ms-transform: scale(1, 1.2);\n /* IE 9+ */\n -o-transform: scale(1, 1.2);\n /* Opera */ }\n\n.backpack-elements-container .myCollectedCandy .candyItem .candyName button {\n color: #ffa500;\n border: 1px solid #ffa500;\n font-family: TitanOne;\n background-color: transparent; }\n\n.backpack-elements-container .myCollectedCandy .candyItem .amount {\n text-align: center; }\n\n.backpack-elements-container .myCollectedCandy .candyItem .amount h1 {\n width: 40px;\n height: 1.5rem;\n font-family: TitanOne;\n color: #fbb1f1;\n font-size: 1rem;\n text-transform: uppercase; }\n\n.noCandyYet {\n margin-top: 5%;\n text-align: center;\n max-width: 20rem;\n /* background-image: url(\"src/assets/graphicMat/lightning.png\");\n background-size: cover;\n background-position: center; */ }\n\n.noCandyYet img:first-child {\n max-width: 10rem;\n float: right; }\n\n.noCandyYet img:nth-child(2) {\n height: 15rem; }\n\n.noCandyYet h1 {\n font-family: TitanOne;\n color: #fbb1f1;\n font-size: 1rem;\n text-transform: uppercase; }\n\n@media (min-width: 1440px) {\n .backpack-elements-container .myCollectedCandy {\n width: 50vw; } }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpb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hcmlhYmxlcy5zY3NzXCI7XG5cbi5iYWNrcGFjay1lbGVtZW50cy1jb250YWluZXIge1xuXG4gICAgbWFyZ2luOiA1JSAxMCU7XG5cbiAgICAuYmFnLWlsbHVzdC1jb250YWluZXIge1xuICAgICAgICBoZWlnaHQ6MTByZW07XG4gICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICBiYWNrZ3JvdW5kLXNpemU6IGNvdmVyO1xuICAgICAgICBkaXNwbGF5OiBmbGV4O1xuICAgICAgICBmbGV4LWZsb3c6IHJvdyBub3dyYXA7XG4gICAgICAgIGp1c3RpZnktY29udGVudDogY2VudGVyO1xuICAgICAgICAuYmFnLWltZy1jb250YWluZXIge1xuICAgICAgICAgICAgbWFyZ2luOiBhdXRvIDIlO1xuICAgICAgICAgICAgaW1nIHtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IDZyZW07XG4gICAgICAgICAgICAgICAgLy8gd2lkdGg6IDQwJTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgfVxuICAgIH1cbiAgICAudG90YWwge1xuICAgICAgICBhbGlnbi1pdGVtczogZmxleC1zdGFydDtcbiAgICAgICAgaDIge1xuICAgICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICAgICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMXJlbTtcbiAgICAgICAgICAgIGZvbnQtZmFtaWx5OiAkdGl0YW5PbmU7XG4gICAgICAgIH1cbiAgICAgICAgaDI6Zmlyc3QtY2hpbGQge1xuICAgICAgICAgICAgY29sb3I6ICRtYWluLW9yYW5nZTtcbiAgICAgICAgfVxuICAgICAgICBoMjpudGgtY2hpbGQoMikge1xuICAgICAgICAgICAgY29sb3I6ICRtYWluLXBpbms7XG4gICAgICAgIH1cbiAgICB9XG4gICAgLm15Q29sbGVjdGVkQ2FuZHkge1xuICAgICAgICB3aWR0aDogNjB2dztcblxuICAgICAgICAuY2FuZHlJdGVtIHtcbiAgICAgICAgICAgIHBhZGRpbmc6IDMlO1xuICAgICAgICAgICAgbWFyZ2luOiAzJSAwJTtcbiAgICAgICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogcm93O1xuICAgICAgICAgICAganVzdGlmeS1jb250ZW50OiBzcGFjZS1iZXR3ZWVuO1xuICAgICAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgICAgIGJvcmRlcjogMnB4IHNvbGlkICNiMWM5ZmI7XG4gICAgICAgICAgICBib3JkZXItcmFkaXVzOiA1MHB4O1xuXG4gICAgICAgICAgICAuY2FuZHlUaHVtYm5haWwge1xuICAgICAgICAgICAgICAgIGhlaWdodDogM3JlbTtcbiAgICAgICAgICAgICAgICB3aWR0aDogM3JlbTtcbiAgICAgICAgICAgICAgICBtaW4td2lkdGg6IDNyZW07XG4gICAgICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjogcGluaztcbiAgICAgICAgICAgICAgICBhbGlnbi1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgICAgICAgICAgYWxpZ24taXRlbXM6IGNlbnRlcjtcbiAgICAgICAgICAgICAgICBvdmVyZmxvdzogaGlkZGVuO1xuICAgICAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC5jYW5keU5hbWUge1xuICAgICAgICAgICAgICAgIG1heC13aWR0aDogNjAlO1xuICAgICAgICAgICAgICAgIC8vIGhlaWdodDogMnJlbTtcbiAgICAgICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICAgICAgICBmbGV4LWRpcmVjdGlvbjogY29sdW1uO1xuICAgICAgICAgICAgICAgIGgxIHtcbiAgICAgICAgICAgICAgICAgICAgZm9udC1mYW1pbHk6ICR0aXRhbk9uZTtcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6JG1haW4tYmx1ZTtcbiAgICAgICAgICAgICAgICAgICAgZm9udC1zaXplOiAwLjdyZW07XG4gICAgICAgICAgICAgICAgICAgIHRleHQtdHJhbnNmb3JtOiB1cHBlcmNhc2U7XG4gICAgICAgICAgICAgICAgICAgIHRyYW5zZm9ybTogc2NhbGUoMSwgMS4yKTtcbiAgICAgICAgICAgICAgICAgICAgLXdlYmtpdC10cmFuc2Zvcm06IHNjYWxlKDEsIDEuMik7IC8qIFNhZmFyaSBhbmQgQ2hyb21lICovXG4gICAgICAgICAgICAgICAgICAgIC1tb3otdHJhbnNmb3JtOiBzY2FsZSgxLCAxLjIpOyAvKiBGaXJlZm94ICovXG4gICAgICAgICAgICAgICAgICAgIC1tcy10cmFuc2Zvcm06IHNjYWxlKDEsIDEuMik7IC8qIElFIDkrICovXG4gICAgICAgICAgICAgICAgICAgIC1vLXRyYW5zZm9ybTogc2NhbGUoMSwgMS4yKTsgLyogT3BlcmEgKi9cbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgYnV0dG9uIHtcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6ICRtYWluLW9yYW5nZTtcbiAgICAgICAgICAgICAgICAgICAgYm9yZGVyOiAxcHggc29saWQgJG1haW4tb3JhbmdlO1xuICAgICAgICAgICAgICAgICAgICBmb250LWZhbWlseTogJHRpdGFuT25lO1xuICAgICAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiB0cmFuc3BhcmVudDtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAuYW1vdW50IHtcbiAgICAgICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgICAgICAgICAgaDEge1xuICAgICAgICAgICAgICAgICAgICB3aWR0aDogNDBweDtcbiAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiAxLjVyZW07XG4gICAgICAgICAgICAgICAgICAgIGZvbnQtZmFtaWx5OiAkdGl0YW5PbmU7XG4gICAgICAgICAgICAgICAgICAgIGNvbG9yOiAkc3ViLXBpbms7XG4gICAgICAgICAgICAgICAgICAgIGZvbnQtc2l6ZTogMXJlbTtcbiAgICAgICAgICAgICAgICAgICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICB9XG4gICAgICAgIH1cbiAgICB9XG59XG4gICAgICAgIC5ub0NhbmR5WWV0IHtcbiAgICAgICAgICAgIG1hcmdpbi10b3A6IDUlO1xuICAgICAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgICAgICAgICAgbWF4LXdpZHRoOiAyMHJlbTtcbi8qICAgICAgICAgIGJhY2tncm91bmQtaW1hZ2U6IHVybChcInNyYy9hc3NldHMvZ3JhcGhpY01hdC9saWdodG5pbmcucG5nXCIpO1xuICAgICAgICAgICAgYmFja2dyb3VuZC1zaXplOiBjb3ZlcjtcbiAgICAgICAgICAgIGJhY2tncm91bmQtcG9zaXRpb246IGNlbnRlcjsgKi9cbiAgICAgICAgICAgIGltZzpmaXJzdC1jaGlsZCB7XG4gICAgICAgICAgICAgICAgbWF4LXdpZHRoOiAxMHJlbTtcbiAgICAgICAgICAgICAgICBmbG9hdDogcmlnaHQ7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBpbWc6bnRoLWNoaWxkKDIpIHtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6MTVyZW07XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICBoMSB7XG4gICAgICAgICAgICAgICAgZm9udC1mYW1pbHk6ICR0aXRhbk9uZTtcbiAgICAgICAgICAgICAgICBjb2xvcjogJHN1Yi1waW5rO1xuICAgICAgICAgICAgICAgIGZvbnQtc2l6ZTogMXJlbTtcbiAgICAgICAgICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG5cbi8vIGV4Y2VwdGlvbiBibG9jayBjYW5keSBuYW1lID4gMTQ0MHB4XG5AbWVkaWEgKG1pbi13aWR0aDogMTQ0MHB4KSB7XG4gICAgLmJhY2twYWNrLWVsZW1lbnRzLWNvbnRhaW5lciB7XG4gICAgICAgIC5teUNvbGxlY3RlZENhbmR5IHsgd2lkdGg6IDUwdnc7fVxuICAgIH1cbn1cblxuXG5cblxuXG4iXX0= */";
/***/
},
/***/
"./src/app/play/backpack/backpack.component.ts":
/*!*****************************************************!*\
!*** ./src/app/play/backpack/backpack.component.ts ***!
\*****************************************************/
/*! exports provided: BackpackComponent */
/***/
function srcAppPlayBackpackBackpackComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "BackpackComponent", function () {
return BackpackComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */
var _shared_services_user_stats_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../../shared/services/user-stats.service */
"./src/app/shared/services/user-stats.service.ts");
var BackpackComponent = /*#__PURE__*/function () {
function BackpackComponent(userStatsService, router) {
_classCallCheck(this, BackpackComponent);
this.userStatsService = userStatsService;
this.router = router; // public noCandyYet: boolean;
this.ghostImg = 'assets/graphicMat/ghost_2.png';
this.ghostBubble = 'assets/graphicMat/noCandyYet_bubble.png';
this.totalCandy = 0; // this.noCandyYet = false;
}
_createClass(BackpackComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
// retrieve all candy items
this.setBackpack();
this.setStats();
}
}, {
key: "setBackpack",
value: function setBackpack() {
var _this2 = this;
this.userStatsService.getCurrentBackpackContent().subscribe(function (data) {
_this2.collectedCandy = data;
});
console.log('COLLECTED CANDY RETRIEVED ON INIT: ', this.collectedCandy);
}
}, {
key: "setStats",
value: function setStats() {
var _this3 = this;
this.userStatsService.getCurrentBackpackCount().subscribe(function (data) {
return _this3.totalCandy = data;
});
this.userStatsService.getCurrentTotalPoints().subscribe(function (data) {
return _this3.totalPoints = data;
});
}
}, {
key: "seeCandyInfos",
value: function seeCandyInfos(id) {
this.candyId = id;
console.log('candy id= ', this.candyId);
this.router.navigate(['play/candyDetails' + '/' + id]);
}
}]);
return BackpackComponent;
}();
BackpackComponent.ctorParameters = function () {
return [{
type: _shared_services_user_stats_service__WEBPACK_IMPORTED_MODULE_3__["UserStatsService"]
}, {
type: _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]
}];
};
BackpackComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-backpack',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./backpack.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/backpack/backpack.component.html"))["default"],
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./backpack.component.scss */
"./src/app/play/backpack/backpack.component.scss"))["default"]]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_shared_services_user_stats_service__WEBPACK_IMPORTED_MODULE_3__["UserStatsService"], _angular_router__WEBPACK_IMPORTED_MODULE_2__["Router"]])], BackpackComponent);
/***/
},
/***/
"./src/app/play/candy-details/candy-details.component.scss":
/*!*****************************************************************!*\
!*** ./src/app/play/candy-details/candy-details.component.scss ***!
\*****************************************************************/
/*! exports provided: default */
/***/
function srcAppPlayCandyDetailsCandyDetailsComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = ":root {\n /*--ion-color-primary: #ffa500;\n --ion-color-secondary: #B4CDFF;\n --ion-color-tertiary: #ffc0cb; */ }\n\n@font-face {\n font-family: flyingleather;\n src: url('flyingleather.ttf') format(\"truetype\"); }\n\n@font-face {\n font-family: TitanOne;\n src: url('TitanOne-Regular.ttf') format(\"truetype\"); }\n\n/* $font-family-base: \"flying_leatherneck\";\n $font-family-md-base: $font-family-base;\n $font-family-ios-base: $font-family-base;\n $font-family-md-base: $font-family-base;\n $font-family-wp-base: $font-family-base; */\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0; }\n\n.candyDetailsPage {\n display: flex;\n flex-direction: column;\n width: 80%;\n margin: 5% auto; }\n\n.candyDetailsPage .info {\n width: 100%;\n padding: 5%;\n border: 3px dashed #ff0000;\n border-radius: 25px;\n font-size: 1rem;\n color: #ff000096;\n font-family: TitanOne; }\n\n.candyDetailsPage .candyItemTitle {\n width: 100%;\n padding: 2%;\n margin: 10% auto;\n justify-content: unset;\n border: 3px solid #ffa500;\n border-radius: 50px; }\n\n.candyDetailsPage .candyItemTitle .candyThumbnail {\n height: 3rem;\n width: 3rem;\n background-color: #ffc0cb;\n align-content: center;\n align-items: center;\n overflow: hidden;\n border-radius: 50%;\n margin-right: 3%; }\n\n.candyDetailsPage .candyItemTitle h1 {\n font-size: 1rem;\n font-family: TitanOne;\n color: #b1c9fb;\n text-transform: uppercase; }\n\n.candyDetailsPage .candy-checklist {\n border: 5px solid #ffc0cb;\n border-radius: 15px; }\n\n.candyDetailsPage .candy-checklist .checklistType {\n padding: 5%;\n font-size: 0.8rem;\n font-family: TitanOne;\n color: #ffa500;\n padding: 3% 0%; }\n\n.candyDetailsPage .candy-checklist .checklistType img {\n min-width: 25px;\n padding: 3%; }\n\n.candyDetailsPage .rubriks {\n margin: 3% auto;\n width: 100%; }\n\n.candyDetailsPage .rubriks .rubrik h1 {\n font-size: .8rem;\n color: #ffa500;\n font-family: TitanOne; }\n\n.candyDetailsPage .rubriks .rubrik .rubrik-title {\n justify-content: space-between;\n border-bottom: 3px solid #b1c9fb; }\n\n.candyDetailsPage .rubriks .rubrik .rubrik-title h1 {\n font-size: 1rem;\n color: #b1c9fb;\n text-align: center;\n line-height: 3;\n font-family: TitanOne;\n text-transform: uppercase; }\n\n.candyDetailsPage .rubriks .rubrik .rubrik-title h1 .selected {\n font-size: 7vw; }\n\n.candyDetailsPage .rubriks .rubrik .rubrik-title h1 img {\n width: 25px;\n height: 25px; }\n\n.candyDetailsPage .candyIngredients table,\n .candyDetailsPage .candyNutriscore table,\n .candyDetailsPage .candyAllergens table {\n margin: auto;\n width: 100%; }\n\n.candyDetailsPage .candyIngredients table,\n .candyDetailsPage .candyIngredients td,\n .candyDetailsPage .candyIngredients tr,\n .candyDetailsPage .candyNutriscore table,\n .candyDetailsPage .candyNutriscore td,\n .candyDetailsPage .candyNutriscore tr,\n .candyDetailsPage .candyAllergens table,\n .candyDetailsPage .candyAllergens td,\n .candyDetailsPage .candyAllergens tr {\n margin-top: 5%;\n padding: 2%;\n border: 2px solid #b1c9fb;\n font-size: 1rem;\n color: #ffa500;\n font-family: TitanOne; }\n\n.plus-btn > button {\n width: 50px;\n height: 50px;\n background-color: transparent; }\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi9Vc2Vycy9oaWxkZWdhcmRhZ25lc2dlbmF5L0RvY3VtZW50cy9BbmRCRVlPTkQvQ0FORFlfQ0hBU0VfMjAyMF9pb25pYy9jYW5keUNoYXNlMjAyMElvbmljNS9zcmMvdGhlbWUvdmFyaWFibGVzLnNjc3MiLCJzcmMvYXBwL3BsYXkvY2FuZHktZGV0YWlscy9jYW5keS1kZXRhaWxzLmNvbXBvbmVudC5zY3NzIiwiL1VzZXJzL2hpbGRlZ2FyZGFnbmVzZ2VuYXkvRG9jdW1lbnRzL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AgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6ICRtYWluLXBpbms7XG4gICAgICAgICAgICBhbGlnbi1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgICAgb3ZlcmZsb3c6IGhpZGRlbjtcbiAgICAgICAgICAgIGJvcmRlci1yYWRpdXM6IDUwJTtcbiAgICAgICAgICAgIG1hcmdpbi1yaWdodDogMyU7XG4gICAgICAgIH1cbiAgICAgICAgaDEge1xuICAgICAgICAgICAgZm9udC1zaXplOiAxcmVtO1xuICAgICAgICAgICAgZm9udC1mYW1pbHk6ICR0aXRhbk9uZTtcbiAgICAgICAgICAgIGNvbG9yOiAkbWFpbi1ibHVlO1xuICAgICAgICAgICAgdGV4dC10cmFuc2Zvcm06IHVwcGVyY2FzZTtcbiAgICAgICAgfVxuICAgIH1cbiAgICAuY2FuZHktY2hlY2tsaXN0IHtcbiAgICAgICAgYm9yZGVyOiA1cHggc29saWQgJG1haW4tcGluaztcbiAgICAgICAgYm9yZGVyLXJhZGl1czogMTVweDtcblxuICAgICAgICAuY2hlY2tsaXN0VHlwZSB7XG4gICAgICAgICAgICBwYWRkaW5nOiA1JTtcbiAgICAgICAgICAgIGZvbnQtc2l6ZTogMC44cmVtO1xuICAgICAgICAgICAgZm9udC1mYW1pbHk6ICR0aXRhbk9uZTtcbiAgICAgICAgICAgIGNvbG9yOiAkbWFpbi1vcmFuZ2U7XG4gICAgICAgICAgICBwYWRkaW5nOiAzJSAwJTtcbiAgICAgICAgICAgIGltZyB7XG4gICAgICAgICAgICAgICAgbWluLXdpZHRoOiAyNXB4O1xuICAgICAgICAgICAgICAgIHBhZGRpbmc6IDMlO1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIC5ydWJyaWtzIHtcbiAgICAgICAgbWFyZ2luOiAzJSBhdXRvO1xuICAgICAgICB3aWR0aDogMTAwJTtcbiAgICAgICAgLnJ1YnJpayB7XG4gICAgICAgICAgICBoMSB7XG4gICAgICAgICAgICAgICAgZm9udC1zaXplOiAuOHJlbTtcbiAgICAgICAgICAgICAgICBjb2xvcjogJG1haW4tb3JhbmdlO1xuICAgICAgICAgICAgICAgIGZvbnQtZmFtaWx5OiAkdGl0YW5PbmU7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgICAucnVicmlrLXRpdGxlIHtcbiAgICAgICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gICAgICAgICAgICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICRtYWluLWJsdWU7XG4gICAgICAgICAgICAgICAgaDEge1xuICAgICAgICAgICAgICAgICAgICBmb250LXNpemU6IDFyZW07XG4gICAgICAgICAgICAgICAgICAgIGNvbG9yOiAkbWFpbi1ibHVlO1xuICAgICAgICAgICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgICAgICAgICAgICAgIGxpbmUtaGVpZ2h0OiAzO1xuICAgICAgICAgICAgICAgICAgICBmb250LWZhbWlseTogJHRpdGFuT25lO1xuICAgICAgICAgICAgICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuICAgICAgICAgICAgICAgICAgICAuc2VsZWN0ZWQge1xuICAgICAgICAgICAgICAgICAgICAgICAgZm9udC1zaXplOiA3dnc7XG4gICAgICAgICAgICAgICAgICAgIH1cbiAgICAgICAgICAgICAgICAgICAgaW1nIHtcbiAgICAgICAgICAgICAgICAgICAgICAgIHdpZHRoOiAyNXB4O1xuICAgICAgICAgICAgICAgICAgICAgICAgaGVpZ2h0OiAyNXB4O1xuICAgICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIC8vIHRvIGFkZCBvbiBydWJyaWtzIDogIHRyYW5zaXRpb246IGFsbCAzMDBtcyBlYXNlOyBcbiAgICAuY2FuZHlJbmdyZWRpZW50cyxcbiAgICAuY2FuZHlOdXRyaXNjb3JlLFxuICAgIC5jYW5keUFsbGVyZ2VucyB7XG4gICAgICAgIHRhYmxlIHtcbiAgICAgICAgICAgIG1hcmdpbjogYXV0bztcbiAgICAgICAgICAgIHdpZHRoOiAxMDAlO1xuICAgICAgICB9XG4gICAgICAgIHRhYmxlLFxuICAgICAgICB0ZCxcbiAgICAgICAgdHIge1xuICAgICAgICAgICAgbWFyZ2luLXRvcDogNSU7XG4gICAgICAgICAgICBwYWRkaW5nOiAyJTtcbiAgICAgICAgICAgIGJvcmRlcjogMnB4IHNvbGlkICRtYWluLWJsdWU7XG4gICAgICAgICAgICBmb250LXNpemU6IDFyZW07XG4gICAgICAgICAgICBjb2xvcjogJG1haW4tb3JhbmdlO1xuICAgICAgICAgICAgZm9udC1mYW1pbHk6ICR0aXRhbk9uZTtcbiAgICAgICAgfVxuICAgIH1cbn1cblxuLnBsdXMtYnRuID4gYnV0dG9uIHtcbiAgICB3aWR0aDogNTBweDtcbiAgICBoZWlnaHQ6IDUwcHg7XG4gICAgYmFja2dyb3VuZC1jb2xvcjogdHJhbnNwYXJlbnQ7XG59XG4iXX0= */";
/***/
},
/***/
"./src/app/play/candy-details/candy-details.component.ts":
/*!***************************************************************!*\
!*** ./src/app/play/candy-details/candy-details.component.ts ***!
\***************************************************************/
/*! exports provided: CandyDetailsComponent */
/***/
function srcAppPlayCandyDetailsCandyDetailsComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "CandyDetailsComponent", function () {
return CandyDetailsComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _services_candy_api_service__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! ../services/candy-api.service */
"./src/app/play/services/candy-api.service.ts");
/* harmony import */
var _shared_pipes_keyvalue_keyvalue__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../../shared/pipes/keyvalue/keyvalue */
"./src/app/shared/pipes/keyvalue/keyvalue.ts");
/* harmony import */
var _shared_pipes_shorten_string_shorten_string__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! ../../shared/pipes/shorten-string/shorten-string */
"./src/app/shared/pipes/shorten-string/shorten-string.ts");
/* harmony import */
var _shared_pipes_remove_underscore_remove_underscore__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ../../shared/pipes/remove-underscore/remove-underscore */
"./src/app/shared/pipes/remove-underscore/remove-underscore.ts");
/* harmony import */
var _shared_pipes_remove_chars_remove_chars__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ../../shared/pipes/remove-chars/remove-chars */
"./src/app/shared/pipes/remove-chars/remove-chars.ts");
/* harmony import */
var _shared_models_candy_model__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! ../../shared/models/candy.model */
"./src/app/shared/models/candy.model.ts");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
var CandyDetailsComponent = /*#__PURE__*/function () {
function CandyDetailsComponent(activatedRoute, candyApiService, keyvaluepipe, removeUnderscore, removeChars, shortenString) {
_classCallCheck(this, CandyDetailsComponent);
this.activatedRoute = activatedRoute;
this.candyApiService = candyApiService;
this.keyvaluepipe = keyvaluepipe;
this.removeUnderscore = removeUnderscore;
this.removeChars = removeChars;
this.shortenString = shortenString;
this.iconTrue = 'assets/icon/icon_true.png';
this.iconFalse = 'assets/icon/icon_false.png';
this.arrowDownImg = 'assets/icon/icon_arrowDown.png';
this.candy = new _shared_models_candy_model__WEBPACK_IMPORTED_MODULE_7__["Candy"]();
this.candyItem = Object.assign({}, this.candy);
this.candyChecklist = new _shared_models_candy_model__WEBPACK_IMPORTED_MODULE_7__["CandyChecklist"]();
this.candyItem.candyChecklist = Object.assign({}, this.candyChecklist);
this.allergens = false;
this.showIngredients = false;
this.showNutriscore = false;
this.showAllergens = false;
this.noKnownAllergen = false;
}
_createClass(CandyDetailsComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
this.displayCandyInfo(this.candyId);
}
}, {
key: "displayCandyInfo",
value: function displayCandyInfo(candyId) {
var _this4 = this;
this.activatedRoute.paramMap.subscribe(function (param) {
_this4.candyId = param.get('id');
}); // console.log('activated route param= ', this.candyId);
this.candyApiService.getCandyById(this.candyId).subscribe(function (response) {
_this4.candyItem = Object.assign({}, response); // special check for 'gelatin' in the api's fr version of ingredients list
// (for it is systematically missing in the en version in use)
var containsGelatin = function containsGelatin() {
return _this4.candyItem.ingredients_text_fr.includes('gélatine' || false);
}; // console.log('containsGelatin==', containsGelatin());
// glutenFree check ----
if (_this4.candyItem.allergens_hierarchy.length > 0) {
var _iterator = _createForOfIteratorHelper(_this4.candyItem.allergens_hierarchy),
_step;
try {
for (_iterator.s(); !(_step = _iterator.n()).done;) {
var x = _step.value;
if (x === 'gluten' || x === 'cereals' || x === 'wheat') {
_this4.candyChecklist.glutenFree = false;
}
}
} catch (err) {
_iterator.e(err);
} finally {
_iterator.f();
}
} // gelatin check : add to ingredients list en version ---
if (containsGelatin()) {
_this4.candyItem.ingredients_tags.push('gelatin');
} // vegan / vegetarian check ---
var _iterator2 = _createForOfIteratorHelper(_this4.candyItem.ingredients_tags),
_step2;
try {
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
var _x = _step2.value;
var animalProductsTerms = /dairy | milk | butter| eggs | honey/g;
if (_x === 'gelatin' || containsGelatin()) {
if (_x.match(animalProductsTerms)) {
_this4.candyChecklist.vegan = false;
}
_this4.candyChecklist.vegetarian = false;
} else {
_this4.candyChecklist.vegetarian = true;
}
} // additives check ---
} catch (err) {
_iterator2.e(err);
} finally {
_iterator2.f();
}
if (_this4.candyItem.additives_tags && _this4.candyItem.additives_tags.length > 0) {
_this4.candyChecklist.additives = true;
} // organic check ---
if (_this4.candyItem.labels !== '' || _this4.candyItem.labels_hierarchy) {
var terms = /bio | ab | biologique/g;
if (_this4.candyItem.labels.match(terms)) {
console.log('BIO');
_this4.candyChecklist.organic = true;
}
} // allergens check ---
if (_this4.candyItem.allergens_hierarchy.length > 0) {
_this4.allergens = true;
}
});
}
}, {
key: "toggleIngredients",
value: function toggleIngredients() {
this.showIngredients = !this.showIngredients;
}
}, {
key: "toggleNutriscore",
value: function toggleNutriscore() {
this.showNutriscore = !this.showNutriscore;
}
}, {
key: "toggleAllergens",
value: function toggleAllergens() {
this.showAllergens = !this.showAllergens;
}
}]);
return CandyDetailsComponent;
}();
CandyDetailsComponent.ctorParameters = function () {
return [{
type: _angular_router__WEBPACK_IMPORTED_MODULE_8__["ActivatedRoute"]
}, {
type: _services_candy_api_service__WEBPACK_IMPORTED_MODULE_2__["CandyApiService"]
}, {
type: _shared_pipes_keyvalue_keyvalue__WEBPACK_IMPORTED_MODULE_3__["KeyvaluePipe"]
}, {
type: _shared_pipes_remove_underscore_remove_underscore__WEBPACK_IMPORTED_MODULE_5__["RemoveUnderscorePipe"]
}, {
type: _shared_pipes_remove_chars_remove_chars__WEBPACK_IMPORTED_MODULE_6__["RemoveCharsPipe"]
}, {
type: _shared_pipes_shorten_string_shorten_string__WEBPACK_IMPORTED_MODULE_4__["ShortenStringPipe"]
}];
};
CandyDetailsComponent = tslib__WEBPACK_IMPORTED_MODULE_0__["__decorate"]([Object(_angular_core__WEBPACK_IMPORTED_MODULE_1__["Component"])({
selector: 'app-candy-details',
template: tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! raw-loader!./candy-details.component.html */
"./node_modules/raw-loader/dist/cjs.js!./src/app/play/candy-details/candy-details.component.html"))["default"],
styles: [tslib__WEBPACK_IMPORTED_MODULE_0__["__importDefault"](__webpack_require__(
/*! ./candy-details.component.scss */
"./src/app/play/candy-details/candy-details.component.scss"))["default"]]
}), tslib__WEBPACK_IMPORTED_MODULE_0__["__metadata"]("design:paramtypes", [_angular_router__WEBPACK_IMPORTED_MODULE_8__["ActivatedRoute"], _services_candy_api_service__WEBPACK_IMPORTED_MODULE_2__["CandyApiService"], _shared_pipes_keyvalue_keyvalue__WEBPACK_IMPORTED_MODULE_3__["KeyvaluePipe"], _shared_pipes_remove_underscore_remove_underscore__WEBPACK_IMPORTED_MODULE_5__["RemoveUnderscorePipe"], _shared_pipes_remove_chars_remove_chars__WEBPACK_IMPORTED_MODULE_6__["RemoveCharsPipe"], _shared_pipes_shorten_string_shorten_string__WEBPACK_IMPORTED_MODULE_4__["ShortenStringPipe"]])], CandyDetailsComponent);
/***/
},
/***/
"./src/app/play/candy-list/candy-list.component.scss":
/*!***********************************************************!*\
!*** ./src/app/play/candy-list/candy-list.component.scss ***!
\***********************************************************/
/*! exports provided: default */
/***/
function srcAppPlayCandyListCandyListComponentScss(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony default export */
__webpack_exports__["default"] = ":root {\n /*--ion-color-primary: #ffa500;\n --ion-color-secondary: #B4CDFF;\n --ion-color-tertiary: #ffc0cb; */ }\n\n@font-face {\n font-family: flyingleather;\n src: url('flyingleather.ttf') format(\"truetype\"); }\n\n@font-face {\n font-family: TitanOne;\n src: url('TitanOne-Regular.ttf') format(\"truetype\"); }\n\n/* $font-family-base: \"flying_leatherneck\";\n $font-family-md-base: $font-family-base;\n $font-family-ios-base: $font-family-base;\n $font-family-md-base: $font-family-base;\n $font-family-wp-base: $font-family-base; */\n\nh1,\nh2,\nh3,\nh4,\nh5,\nh6 {\n margin: 0; }\n\n.candyPageContainer .add-label {\n height: 20vh;\n background-image: url('sparkles.png');\n background-size: cover;\n background-position: center; }\n\n.candyPageContainer .add-label img {\n max-width: 100px;\n float: right; }\n\n.candyPageContainer .candyList {\n display: flex;\n flex-direction: column;\n width: 80%;\n margin: auto;\n /* margin: -10% 10%; */ }\n\n.candyPageContainer .candyList .candyItem {\n /* border: 4px solid yellow;\n background-color:pink; */\n height: 7rem;\n display: flex;\n flex-direction: row;\n justify-content: space-between;\n align-content: center;\n align-items: center;\n border-bottom: 3px solid #b1c9fb; }\n\n.candyPageContainer .candyList .candyItem .candyName {\n max-width: 70%;\n display: flex;\n flex-direction: column; }\n\n.candyPageContainer .candyList .candyItem .candyName h1,\n .candyPageContainer .candyList .candyItem .candyName h2 {\n font-family: TitanOne;\n color: #b1c9fb;\n text-transform: uppercase;\n text-align: center; }\n\n.candyPageContainer .candyList .candyItem .candyName h1 {\n font-size: 1rem;\n transform: scale(1, 1.2);\n -webkit-transform: scale(1, 1.2);\n /* Safari and Chrome */\n -moz-transform: scale(1, 1.2);\n /* Firefox */\n -ms-transform: scale(1, 1.2);\n /* IE 9+ */\n -o-transform: scale(1, 1.2);\n /* Opera */ }\n\n.candyPageContainer .candyList .candyItem .candyName h2 {\n font-size: 0.7rem; }\n\n.candyPageContainer .candyList .candyItem .candyThumbnail {\n height: 4rem;\n width: 4rem;\n min-width: 4rem;\n border: 3px solid #ff0000;\n background-color: #ffc0cb;\n align-content: center;\n align-items: center;\n overflow: hidden;\n border-radius: 50px; }\n\n.candyPageContainer .candyList .candyItem .plus-btn > button {\n width: 3rem;\n height: 3rem;\n background-color: transparent; }\n\n.candyPageContainer .loading {\n color: #b1c9fb;\n font-size: 4rem;\n text-align: center; }\n\n.candyPageContainer .newChallenge-btn {\n width: 90%;\n margin-left: 50%;\n bottom: 2%;\n position: -webkit-sticky;\n position: sticky; }\n\n.candyPageContainer .newChallenge-btn button {\n padding: 1.5%;\n background-color: yellow;\n border-radius: 10px;\n font-family: TitanOne;\n color: #ffa500; }\n\n/* customize toasts => global.scss */\n\n/*# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbIi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cGhpY01hdC9zcGFya2xlcy5wbmdcIik7XG4gICAgICAgIGJhY2tncm91bmQtc2l6ZTogY292ZXI7XG4gICAgICAgIGJhY2tncm91bmQtcG9zaXRpb246IGNlbnRlcjtcbiAgICAgICAgaW1nIHtcbiAgICAgICAgICAgIG1heC13aWR0aDogMTAwcHg7XG4gICAgICAgICAgICBmbG9hdDogcmlnaHQ7XG4gICAgICAgIH1cbiAgICB9XG4gICAgLmNhbmR5TGlzdCB7XG4gICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgIGZsZXgtZGlyZWN0aW9uOiBjb2x1bW47XG4gICAgICAgIHdpZHRoOiA4MCU7XG4gICAgICAgIG1hcmdpbjogYXV0bztcbiAgICAgICAgLyogbWFyZ2luOiAtMTAlIDEwJTsgKi9cbiAgICAgICAgLmNhbmR5SXRlbSB7XG4gICAgLyogICAgYm9yZGVyOiA0cHggc29saWQgeWVsbG93O1xuICAgICAgICAgICAgYmFja2dyb3VuZC1jb2xvcjpwaW5rOyAqL1xuICAgICAgICAgICAgaGVpZ2h0OiA3cmVtO1xuICAgICAgICAgICAgZGlzcGxheTogZmxleDtcbiAgICAgICAgICAgIGZsZXgtZGlyZWN0aW9uOiByb3c7XG4gICAgICAgICAgICBqdXN0aWZ5LWNvbnRlbnQ6IHNwYWNlLWJldHdlZW47XG4gICAgICAgICAgICBhbGlnbi1jb250ZW50OiBjZW50ZXI7XG4gICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgICAgYm9yZGVyLWJvdHRvbTogM3B4IHNvbGlkICRtYWluLWJsdWU7XG5cbiAgICAgICAgICAgIC5jYW5keU5hbWUge1xuICAgICAgICAgICAgICAgIG1heC13aWR0aDogNzAlO1xuICAgICAgICAgICAgICAgIGRpc3BsYXk6IGZsZXg7XG4gICAgICAgICAgICAgICAgZmxleC1kaXJlY3Rpb246IGNvbHVtbjtcbiAgICAgICAgICAgICAgICBoMSxcbiAgICAgICAgICAgICAgICBoMiB7XG4gICAgICAgICAgICAgICAgICAgIGZvbnQtZmFtaWx5OiR0aXRhbk9uZTtcbiAgICAgICAgICAgICAgICAgICAgY29sb3I6ICAkbWFpbi1ibHVlO1xuICAgICAgICAgICAgICAgICAgICB0ZXh0LXRyYW5zZm9ybTogdXBwZXJjYXNlO1xuICAgICAgICAgICAgICAgICAgICB0ZXh0LWFsaWduOiBjZW50ZXI7XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGgxIHtcbiAgICAgICAgICAgICAgICAgICAgZm9udC1zaXplOiAxcmVtO1xuICAgICAgICAgICAgICAgICAgICB0cmFuc2Zvcm06IHNjYWxlKDEsIDEuMik7XG4gICAgICAgICAgICAgICAgICAgIC13ZWJraXQtdHJhbnNmb3JtOiBzY2FsZSgxLCAxLjIpOyAvKiBTYWZhcmkgYW5kIENocm9tZSAqL1xuICAgICAgICAgICAgICAgICAgICAtbW96LXRyYW5zZm9ybTogc2NhbGUoMSwgMS4yKTsgLyogRmlyZWZveCAqL1xuICAgICAgICAgICAgICAgICAgICAtbXMtdHJhbnNmb3JtOiBzY2FsZSgxLCAxLjIpOyAvKiBJRSA5KyAqL1xuICAgICAgICAgICAgICAgICAgICAtby10cmFuc2Zvcm06IHNjYWxlKDEsIDEuMik7IC8qIE9wZXJhICovXG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgICAgIGgyIHtcbiAgICAgICAgICAgICAgICAgICAgZm9udC1zaXplOiAwLjdyZW07XG4gICAgICAgICAgICAgICAgfVxuICAgICAgICAgICAgfVxuICAgICAgICAgICAgLmNhbmR5VGh1bWJuYWlsIHtcbiAgICAgICAgICAgICAgICBoZWlnaHQ6IDRyZW07XG4gICAgICAgICAgICAgICAgd2lkdGg6IDRyZW07XG4gICAgICAgICAgICAgICAgbWluLXdpZHRoOiA0cmVtO1xuICAgICAgICAgICAgICAgIGJvcmRlcjogM3B4IHNvbGlkICRtYWluLXJlZDtcbiAgICAgICAgICAgICAgICBiYWNrZ3JvdW5kLWNvbG9yOiAkbWFpbi1waW5rO1xuICAgICAgICAgICAgICAgIGFsaWduLWNvbnRlbnQ6IGNlbnRlcjtcbiAgICAgICAgICAgICAgICBhbGlnbi1pdGVtczogY2VudGVyO1xuICAgICAgICAgICAgICAgIG92ZXJmbG93OiBoaWRkZW47XG4gICAgICAgICAgICAgICAgYm9yZGVyLXJhZGl1czogNTBweDtcbiAgICAgICAgICAgIH1cbiAgICAgICAgICAgIC5wbHVzLWJ0biA+IGJ1dHRvbiB7XG4gICAgICAgICAgICAgICAgd2lkdGg6IDNyZW07XG4gICAgICAgICAgICAgICAgaGVpZ2h0OiAzcmVtO1xuICAgICAgICAgICAgICAgIGJhY2tncm91bmQtY29sb3I6IHRyYW5zcGFyZW50O1xuICAgICAgICAgICAgfVxuICAgICAgICB9XG4gICAgfVxuICAgIC5sb2FkaW5nIHtcbiAgICAgICAgY29sb3I6ICRtYWluLWJsdWU7XG4gICAgICAgIGZvbnQtc2l6ZTogNHJlbTtcbiAgICAgICAgdGV4dC1hbGlnbjogY2VudGVyO1xuICAgIH1cbiAgICAubmV3Q2hhbGxlbmdlLWJ0biB7XG5cbiAgICAgICAgd2lkdGg6IDkwJTtcbiAgICAgICAgbWFyZ2luLWxlZnQ6NTAlO1xuICAgICAgICBib3R0b206IDIlO1xuICAgICAgICBwb3NpdGlvbjogc3RpY2t5O1xuXG4gICAgICAgIGJ1dHRvbiB7XG4gICAgICAgIHBhZGRpbmc6IDEuNSU7XG4gICAgICAgIGJhY2tncm91bmQtY29sb3I6IHllbGxvdztcbiAgICAgICAgYm9yZGVyLXJhZGl1czogMTBweDtcbiAgICAgICAgZm9udC1mYW1pbHk6ICR0aXRhbk9uZTtcbiAgICAgICAgY29sb3I6ICRtYWluLW9yYW5nZTtcbiAgICAgICAgfVxuICAgIH1cbn1cblxuLyogY3VzdG9taXplIHRvYXN0cyAgPT4gZ2xvYmFsLnNjc3MgKi9cblxuXG5cblxuXG4iXX0= */";
/***/
},
/***/
"./src/app/play/candy-list/candy-list.component.ts":
/*!*********************************************************!*\
!*** ./src/app/play/candy-list/candy-list.component.ts ***!
\*********************************************************/
/*! exports provided: CandyListComponent */
/***/
function srcAppPlayCandyListCandyListComponentTs(module, __webpack_exports__, __webpack_require__) {
"use strict";
__webpack_require__.r(__webpack_exports__);
/* harmony export (binding) */
__webpack_require__.d(__webpack_exports__, "CandyListComponent", function () {
return CandyListComponent;
});
/* harmony import */
var tslib__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
/*! tslib */
"./node_modules/tslib/tslib.es6.js");
/* harmony import */
var _angular_core__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
/*! @angular/core */
"./node_modules/@angular/core/fesm2015/core.js");
/* harmony import */
var _angular_router__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
/*! @angular/router */
"./node_modules/@angular/router/fesm2015/router.js");
/* harmony import */
var _services_candy_api_service__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
/*! ../services/candy-api.service */
"./src/app/play/services/candy-api.service.ts");
/* harmony import */
var _angular_forms__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
/*! @angular/forms */
"./node_modules/@angular/forms/fesm2015/forms.js");
/* harmony import */
var _shared_models_candy_model__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
/*! ../../shared/models/candy.model */
"./src/app/shared/models/candy.model.ts");
/* harmony import */
var _shared_pipes_shorten_string_shorten_string__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(
/*! ../../shared/pipes/shorten-string/shorten-string */
"./src/app/shared/pipes/shorten-string/shorten-string.ts");
/* harmony import */
var _shared_services_user_stats_service__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(
/*! ../../shared/services/user-stats.service */
"./src/app/shared/services/user-stats.service.ts");
/* harmony import */
var _shared_services_local_storage_service__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(
/*! ../../shared/services/local-storage.service */
"./src/app/shared/services/local-storage.service.ts");
/* harmony import */
var _ionic_angular__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(
/*! @ionic/angular */
"./node_modules/@ionic/angular/fesm2015/ionic-angular.js");
var CandyListComponent = /*#__PURE__*/function () {
function CandyListComponent(candyApiService, localStorageService, userStatsService, shortenString, toastController, router, activatedRoute) {
_classCallCheck(this, CandyListComponent);
this.candyApiService = candyApiService;
this.localStorageService = localStorageService;
this.userStatsService = userStatsService;
this.shortenString = shortenString;
this.toastController = toastController;
this.router = router;
this.activatedRoute = activatedRoute;
this.searching = false;
this.anim = 'assets/graphicMat/loading.gif'; // this.candyList$ = this.candyApiService.getAllCandyFromApi();
this.candyList = [];
this.candyItem = new _shared_models_candy_model__WEBPACK_IMPORTED_MODULE_5__["Candy"]();
this.candyChecklist = new _shared_models_candy_model__WEBPACK_IMPORTED_MODULE_5__["CandyChecklist"]();
this.itemsInBackpack = [];
this.totalCandy = 0;
this.totalPoints = 0;
this.newChallenge = false;
this.searchTerm = '';
this.searchControl = new _angular_forms__WEBPACK_IMPORTED_MODULE_4__["FormControl"]();
}
_createClass(CandyListComponent, [{
key: "ngOnInit",
value: function ngOnInit() {
this.loadCandyListFromApi();
/* this.retrievePathOrigin();
if (!this.pathOrigin) {
this.loadCandyListFromApi();
} else if (this.pathOrigin === 'resumePlaying') {
console.log('localStorage should activate');
this.loadCandyListFromLocalStorage();
} */
} // ----- tests for issue : userstats resetting because of play module reloading when going to menu (app module) and back
// test with localstorage :
// the api call should happen only once :
// when user opens the page for the first time ( = very first loading of play module )
// then candylist data gets cached in localstorage for potential subsequent play module exits
}, {
key: "retrievePathOrigin",
value: function retrievePathOrigin() {
var _this5 = this;
this.activatedRoute.paramMap.subscribe(function (param) {
_this5.pathOrigin = param.get('origin'); // = 'startPlaying' || 'resumePlaying'
});
return this.pathOrigin;
}
}, {
key: "loadCandyListFromApi",
value: function loadCandyListFromApi() {
this.candyList$ = this.candyApiService.getAllCandyFromApi(); // this.candyApiService.getAllCandyFromApi().subscribe(data => this.candyList = data );
// this.localStorageService.setDataToStore(this.candyList);
}
}, {
key: "loadCandyListFromLocalStorage",
value: function loadCandyListFromLocalStorage() {
this.localStorageService.getStoredData();
} // ------------
// search ..........................................................
}, {
key: "filterItems",
value: function filterItems(searchTerm) {
var searchbar = document.querySelector('ion-searchbar');
searchbar.addEventListener('ionInput', this.handleInput);
}
}, {
key: "handleInput",
value: function handleInput(event) {
var elementsToFilter = Array.from(document.getElementsByClassName('candyList'));
var query = event.target.value.toLowerCase();
requestAnimationFrame(function () {
elementsToFilter.forEach(function (item) {
var shouldShow = item.textContent.toLowerCase().indexOf(query) > -1;
item.style.display = shouldShow ? 'block' : 'none';
});
});
}
}, {
key: "onSearchInput",
value: function onSearchInput() {
this.searching = true;
this.filterItems(this.searchTerm);
} // ..........................................................
}, {
key: "addCandyToBackpack",
value: function addCandyToBackpack(candyItem) {
this.totalCandy$ = this.userStatsService.getCurrentBackpackCount();
this.candyItem = candyItem;
this.candyItem.product_name = candyItem.product_name;
this.candyItem._id = candyItem._id; // tslint:disable-next-line: no-bitwise
this.candyItem.amountInBackpack = candyItem.amountInBackpack | 0; // new candy has not been added yet
var added = false; // look into items of backpack if new candy id already exists
var _iterator3 = _createForOfIteratorHelper(this.itemsInBackpack),
_step3;
try {
for (_iterator3.s(); !(_step3 = _iterator3.n()).done;) {
var item = _step3.value;
// if id exists : only increase amount of this candy
if (item.product_name === this.candyItem.product_name) {
item.amountInBackpack += 1;
added = true;
break;
}
} // if id does not exist : add new candy type to backpack (and increase amount)
} catch (err) {
_iterator3.e(err);
} finally {
_iterator3.f();
}
if (!added) {
this.candyItem.amountInBackpack += 1;
this.itemsInBackpack.push(this.candyItem);
} // console.log('ITEMS : ', this.itemsInBackpack);
// console.log(this.itemsInBackpack.forEach(item => console.log('AMOUNT==== ', item.amountInBackpack)));
// save new total of all candy and points
this.userStatsService.update_totalCandyCount(this.totalCandy += 1);
this.userStatsService.update_totalPoints(this.totalPoints += 6); // save backpack new content
this.userStatsService.update_backpackContent(this.itemsInBackpack);
this.presentToastNewPoints();
}
}, {
key: "presentToastNewPoints",
value: function presentToastNewPoints() {
return tslib__WEBPACK_IMPORTED_MODULE_0__["__awaiter"](this, void 0, void 0, /*#__PURE__*/regeneratorRuntime.mark(function _callee2() {
var toast1, toast2, toast3;
return regeneratorRuntime.wrap(function _callee2$(_context2) {
while (1) {
switch (_context2.prev = _context2.next) {
case 0:
_context2.next = 2;
return this.toastController.create({
message: "+ 6 Points! ".concat(name),
position: 'middle',
duration: 300,
cssClass: 'new-points-toast'