ng-miam 3.4.1 → 3.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1574,7 +1574,8 @@
1574
1574
  return {
1575
1575
  name: ingredient.attributes.name,
1576
1576
  qty: (+ingredient.quantity) / (+_this.guests || 1),
1577
- unit: ingredient.attributes.unit
1577
+ unit: ingredient.attributes.unit,
1578
+ picture: ingredient.picture
1578
1579
  };
1579
1580
  });
1580
1581
  }
@@ -1941,14 +1942,15 @@
1941
1942
  function Ingredient() {
1942
1943
  var _this = _super.apply(this, __spread(arguments)) || this;
1943
1944
  _this.attributes = {
1944
- 'name': '',
1945
- 'quantity': '',
1946
- 'unit': '',
1947
- 'active': true,
1948
- 'forced-eans': []
1945
+ name: '',
1946
+ quantity: '',
1947
+ unit: '',
1948
+ active: true,
1949
+ 'forced-eans': [],
1950
+ picture: ''
1949
1951
  };
1950
1952
  _this.relationships = {
1951
- 'recipe': new i1.DocumentResource(),
1953
+ recipe: new i1.DocumentResource(),
1952
1954
  'quantity-unit': new i1.DocumentResource()
1953
1955
  };
1954
1956
  return _this;
@@ -1966,6 +1968,13 @@
1966
1968
  enumerable: false,
1967
1969
  configurable: true
1968
1970
  });
1971
+ Object.defineProperty(Ingredient.prototype, "picture", {
1972
+ get: function () {
1973
+ return this.attributes.picture;
1974
+ },
1975
+ enumerable: false,
1976
+ configurable: true
1977
+ });
1969
1978
  return Ingredient;
1970
1979
  }(i1.Resource));
1971
1980
 
@@ -3301,6 +3310,7 @@
3301
3310
  this.breakpointObserver = breakpointObserver;
3302
3311
  this.videoRecipesEnabled = false;
3303
3312
  this.articlesInCatalogEnabled = false;
3313
+ this.defaultIngredientPicture = 'https://storage.googleapis.com/assets.miam.tech/generic/images/default-ingredient-picture.svg';
3304
3314
  this.isSmallScreen$ = new rxjs.BehaviorSubject(false);
3305
3315
  this.miam = {
3306
3316
  user: {
@@ -3377,6 +3387,9 @@
3377
3387
  hidden: this.recipesService.hidden,
3378
3388
  search: function (provider, query) {
3379
3389
  return _this.recipesService.all({ remotefilter: { recipe_provider_id: provider, search: query } }).pipe(operators.skipWhile(function (result) { return !result; }), operators.map(function (response) { return response['data']; }));
3390
+ },
3391
+ setDefaultIngredientPicture: function (url) {
3392
+ _this.defaultIngredientPicture = url;
3380
3393
  }
3381
3394
  },
3382
3395
  analytics: {
@@ -13975,62 +13988,63 @@
13975
13988
  })();
13976
13989
 
13977
13990
  var _c0$r = ["topContainerImg"];
13978
- function RecipeDetailsComponent_div_0_img_5_Template(rf, ctx) {
13991
+ var _c1$b = ["mainContainer"];
13992
+ function RecipeDetailsComponent_div_0_img_6_Template(rf, ctx) {
13979
13993
  if (rf & 1) {
13980
- i0.ɵɵelement(0, "img", 39);
13994
+ i0.ɵɵelement(0, "img", 40);
13981
13995
  }
13982
13996
  if (rf & 2) {
13983
- var ctx_r4 = i0.ɵɵnextContext(2);
13984
- i0.ɵɵproperty("src", ctx_r4.recipe == null ? null : ctx_r4.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
13997
+ var ctx_r5 = i0.ɵɵnextContext(2);
13998
+ i0.ɵɵproperty("src", ctx_r5.recipe == null ? null : ctx_r5.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
13985
13999
  }
13986
14000
  }
13987
- function RecipeDetailsComponent_div_0_div_6_Template(rf, ctx) {
14001
+ function RecipeDetailsComponent_div_0_div_7_Template(rf, ctx) {
13988
14002
  if (rf & 1) {
13989
- i0.ɵɵelement(0, "div", 40);
14003
+ i0.ɵɵelement(0, "div", 41);
13990
14004
  }
13991
14005
  }
13992
- function RecipeDetailsComponent_div_0_youtube_player_7_Template(rf, ctx) {
14006
+ function RecipeDetailsComponent_div_0_youtube_player_8_Template(rf, ctx) {
13993
14007
  if (rf & 1) {
13994
- i0.ɵɵelement(0, "youtube-player", 41);
14008
+ i0.ɵɵelement(0, "youtube-player", 42);
13995
14009
  }
13996
14010
  if (rf & 2) {
13997
- var ctx_r6 = i0.ɵɵnextContext(2);
13998
- i0.ɵɵproperty("videoId", ctx_r6.recipe.videoId)("width", ctx_r6.playerWidth)("height", ctx_r6.playerHeight);
14011
+ var ctx_r7 = i0.ɵɵnextContext(2);
14012
+ i0.ɵɵproperty("videoId", ctx_r7.recipe.videoId)("width", ctx_r7.playerWidth)("height", ctx_r7.playerHeight);
13999
14013
  }
14000
14014
  }
14001
- function RecipeDetailsComponent_div_0_div_8_Template(rf, ctx) {
14015
+ function RecipeDetailsComponent_div_0_div_9_Template(rf, ctx) {
14002
14016
  if (rf & 1) {
14003
- i0.ɵɵelementStart(0, "div", 42);
14017
+ i0.ɵɵelementStart(0, "div", 43);
14004
14018
  i0.ɵɵtext(1, "D\u00E9j\u00E0 ajout\u00E9e");
14005
14019
  i0.ɵɵelementEnd();
14006
14020
  }
14007
14021
  }
14008
- function RecipeDetailsComponent_div_0_ng_miam_like_button_11_Template(rf, ctx) {
14022
+ function RecipeDetailsComponent_div_0_ng_miam_like_button_12_Template(rf, ctx) {
14009
14023
  if (rf & 1) {
14010
- i0.ɵɵelement(0, "ng-miam-like-button", 43);
14024
+ i0.ɵɵelement(0, "ng-miam-like-button", 44);
14011
14025
  }
14012
14026
  if (rf & 2) {
14013
- var ctx_r8 = i0.ɵɵnextContext(2);
14014
- i0.ɵɵproperty("recipe", ctx_r8.recipe)("width", 26)("height", 26);
14027
+ var ctx_r9 = i0.ɵɵnextContext(2);
14028
+ i0.ɵɵproperty("recipe", ctx_r9.recipe)("width", 26)("height", 26);
14015
14029
  }
14016
14030
  }
14017
- function RecipeDetailsComponent_div_0_img_15_Template(rf, ctx) {
14031
+ function RecipeDetailsComponent_div_0_img_16_Template(rf, ctx) {
14018
14032
  if (rf & 1) {
14019
- i0.ɵɵelement(0, "img", 44);
14033
+ i0.ɵɵelement(0, "img", 45);
14020
14034
  }
14021
14035
  if (rf & 2) {
14022
- var ctx_r9 = i0.ɵɵnextContext(2);
14023
- i0.ɵɵpropertyInterpolate("src", ctx_r9.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
14036
+ var ctx_r10 = i0.ɵɵnextContext(2);
14037
+ i0.ɵɵpropertyInterpolate("src", ctx_r10.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
14024
14038
  }
14025
14039
  }
14026
- function RecipeDetailsComponent_div_0_div_22_Template(rf, ctx) {
14040
+ function RecipeDetailsComponent_div_0_div_23_Template(rf, ctx) {
14027
14041
  if (rf & 1) {
14028
- i0.ɵɵelementStart(0, "div", 45);
14042
+ i0.ɵɵelementStart(0, "div", 46);
14029
14043
  i0.ɵɵelementStart(1, "span");
14030
14044
  i0.ɵɵtext(2, "Pr\u00E9paration");
14031
14045
  i0.ɵɵelementEnd();
14032
- i0.ɵɵelementStart(3, "div", 46);
14033
- i0.ɵɵelement(4, "ng-miam-icon", 47);
14046
+ i0.ɵɵelementStart(3, "div", 47);
14047
+ i0.ɵɵelement(4, "ng-miam-icon", 48);
14034
14048
  i0.ɵɵelementStart(5, "span");
14035
14049
  i0.ɵɵtext(6);
14036
14050
  i0.ɵɵelementEnd();
@@ -14038,21 +14052,21 @@
14038
14052
  i0.ɵɵelementEnd();
14039
14053
  }
14040
14054
  if (rf & 2) {
14041
- var ctx_r10 = i0.ɵɵnextContext(2);
14055
+ var ctx_r11 = i0.ɵɵnextContext(2);
14042
14056
  i0.ɵɵadvance(4);
14043
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r10.icon.Preparation);
14057
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r11.icon.Preparation);
14044
14058
  i0.ɵɵadvance(2);
14045
- i0.ɵɵtextInterpolate(ctx_r10.recipe == null ? null : ctx_r10.recipe.preparationTime);
14059
+ i0.ɵɵtextInterpolate(ctx_r11.recipe == null ? null : ctx_r11.recipe.preparationTime);
14046
14060
  }
14047
14061
  }
14048
- function RecipeDetailsComponent_div_0_div_23_Template(rf, ctx) {
14062
+ function RecipeDetailsComponent_div_0_div_24_Template(rf, ctx) {
14049
14063
  if (rf & 1) {
14050
- i0.ɵɵelementStart(0, "div", 45);
14064
+ i0.ɵɵelementStart(0, "div", 46);
14051
14065
  i0.ɵɵelementStart(1, "span");
14052
14066
  i0.ɵɵtext(2, "Cuisson");
14053
14067
  i0.ɵɵelementEnd();
14054
- i0.ɵɵelementStart(3, "div", 46);
14055
- i0.ɵɵelement(4, "ng-miam-icon", 47);
14068
+ i0.ɵɵelementStart(3, "div", 47);
14069
+ i0.ɵɵelement(4, "ng-miam-icon", 48);
14056
14070
  i0.ɵɵelementStart(5, "span");
14057
14071
  i0.ɵɵtext(6);
14058
14072
  i0.ɵɵelementEnd();
@@ -14060,21 +14074,21 @@
14060
14074
  i0.ɵɵelementEnd();
14061
14075
  }
14062
14076
  if (rf & 2) {
14063
- var ctx_r11 = i0.ɵɵnextContext(2);
14077
+ var ctx_r12 = i0.ɵɵnextContext(2);
14064
14078
  i0.ɵɵadvance(4);
14065
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r11.icon.Hot);
14079
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r12.icon.Hot);
14066
14080
  i0.ɵɵadvance(2);
14067
- i0.ɵɵtextInterpolate(ctx_r11.recipe == null ? null : ctx_r11.recipe.cookingTime);
14081
+ i0.ɵɵtextInterpolate(ctx_r12.recipe == null ? null : ctx_r12.recipe.cookingTime);
14068
14082
  }
14069
14083
  }
14070
- function RecipeDetailsComponent_div_0_div_24_Template(rf, ctx) {
14084
+ function RecipeDetailsComponent_div_0_div_25_Template(rf, ctx) {
14071
14085
  if (rf & 1) {
14072
- i0.ɵɵelementStart(0, "div", 45);
14086
+ i0.ɵɵelementStart(0, "div", 46);
14073
14087
  i0.ɵɵelementStart(1, "span");
14074
14088
  i0.ɵɵtext(2, "Repos");
14075
14089
  i0.ɵɵelementEnd();
14076
- i0.ɵɵelementStart(3, "div", 46);
14077
- i0.ɵɵelement(4, "ng-miam-icon", 47);
14090
+ i0.ɵɵelementStart(3, "div", 47);
14091
+ i0.ɵɵelement(4, "ng-miam-icon", 48);
14078
14092
  i0.ɵɵelementStart(5, "span");
14079
14093
  i0.ɵɵtext(6);
14080
14094
  i0.ɵɵelementEnd();
@@ -14082,463 +14096,478 @@
14082
14096
  i0.ɵɵelementEnd();
14083
14097
  }
14084
14098
  if (rf & 2) {
14085
- var ctx_r12 = i0.ɵɵnextContext(2);
14099
+ var ctx_r13 = i0.ɵɵnextContext(2);
14086
14100
  i0.ɵɵadvance(4);
14087
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r12.icon.Wait);
14101
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r13.icon.Wait);
14088
14102
  i0.ɵɵadvance(2);
14089
- i0.ɵɵtextInterpolate(ctx_r12.recipe == null ? null : ctx_r12.recipe.restingTime);
14103
+ i0.ɵɵtextInterpolate(ctx_r13.recipe == null ? null : ctx_r13.recipe.restingTime);
14090
14104
  }
14091
14105
  }
14092
- function RecipeDetailsComponent_div_0_ng_container_34_Template(rf, ctx) {
14106
+ function RecipeDetailsComponent_div_0_ng_container_35_Template(rf, ctx) {
14093
14107
  if (rf & 1) {
14094
14108
  i0.ɵɵelementContainerStart(0);
14095
- i0.ɵɵelement(1, "ng-miam-icon", 48);
14109
+ i0.ɵɵelement(1, "ng-miam-icon", 49);
14096
14110
  i0.ɵɵelementContainerEnd();
14097
14111
  }
14098
14112
  if (rf & 2) {
14099
- var ctx_r13 = i0.ɵɵnextContext(2);
14113
+ var ctx_r14 = i0.ɵɵnextContext(2);
14100
14114
  i0.ɵɵadvance(1);
14101
- i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r13.icon.DifficultyLow);
14115
+ i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r14.icon.DifficultyLow);
14102
14116
  }
14103
14117
  }
14104
- function RecipeDetailsComponent_div_0_ng_container_35_Template(rf, ctx) {
14118
+ function RecipeDetailsComponent_div_0_ng_container_36_Template(rf, ctx) {
14105
14119
  if (rf & 1) {
14106
14120
  i0.ɵɵelementContainerStart(0);
14107
- i0.ɵɵelement(1, "ng-miam-icon", 48);
14121
+ i0.ɵɵelement(1, "ng-miam-icon", 49);
14108
14122
  i0.ɵɵelementContainerEnd();
14109
14123
  }
14110
14124
  if (rf & 2) {
14111
- var ctx_r14 = i0.ɵɵnextContext(2);
14125
+ var ctx_r15 = i0.ɵɵnextContext(2);
14112
14126
  i0.ɵɵadvance(1);
14113
- i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r14.icon.DifficultyMedium);
14127
+ i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r15.icon.DifficultyMedium);
14114
14128
  }
14115
14129
  }
14116
- function RecipeDetailsComponent_div_0_ng_container_36_Template(rf, ctx) {
14130
+ function RecipeDetailsComponent_div_0_ng_container_37_Template(rf, ctx) {
14117
14131
  if (rf & 1) {
14118
14132
  i0.ɵɵelementContainerStart(0);
14119
- i0.ɵɵelement(1, "ng-miam-icon", 48);
14133
+ i0.ɵɵelement(1, "ng-miam-icon", 49);
14120
14134
  i0.ɵɵelementContainerEnd();
14121
14135
  }
14122
14136
  if (rf & 2) {
14123
- var ctx_r15 = i0.ɵɵnextContext(2);
14137
+ var ctx_r16 = i0.ɵɵnextContext(2);
14124
14138
  i0.ɵɵadvance(1);
14125
- i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r15.icon.DifficultyHight);
14139
+ i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r16.icon.DifficultyHight);
14126
14140
  }
14127
14141
  }
14128
- function RecipeDetailsComponent_div_0_ng_container_37_Template(rf, ctx) {
14142
+ function RecipeDetailsComponent_div_0_ng_container_38_Template(rf, ctx) {
14129
14143
  if (rf & 1) {
14130
14144
  i0.ɵɵelementContainer(0);
14131
14145
  }
14132
14146
  }
14133
- function RecipeDetailsComponent_div_0_button_50_Template(rf, ctx) {
14147
+ function RecipeDetailsComponent_div_0_button_51_Template(rf, ctx) {
14134
14148
  if (rf & 1) {
14135
- var _r24_1 = i0.ɵɵgetCurrentView();
14136
- i0.ɵɵelementStart(0, "button", 49);
14137
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_50_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r24_1); var ctx_r23 = i0.ɵɵnextContext(2); return ctx_r23.addRecipe(); });
14149
+ var _r25_1 = i0.ɵɵgetCurrentView();
14150
+ i0.ɵɵelementStart(0, "button", 50);
14151
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_51_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25_1); var ctx_r24 = i0.ɵɵnextContext(2); return ctx_r24.addRecipe(); });
14138
14152
  i0.ɵɵelementStart(1, "span");
14139
14153
  i0.ɵɵtext(2);
14140
14154
  i0.ɵɵpipe(3, "async");
14141
14155
  i0.ɵɵelementEnd();
14142
- i0.ɵɵelement(4, "ng-miam-icon", 50);
14156
+ i0.ɵɵelement(4, "ng-miam-icon", 51);
14143
14157
  i0.ɵɵpipe(5, "async");
14144
14158
  i0.ɵɵelementEnd();
14145
14159
  }
14146
14160
  if (rf & 2) {
14147
- var ctx_r17 = i0.ɵɵnextContext(2);
14161
+ var ctx_r18 = i0.ɵɵnextContext(2);
14148
14162
  var tmp_0_0 = null;
14149
14163
  var tmp_3_0 = null;
14150
14164
  i0.ɵɵadvance(2);
14151
- i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4, ctx_r17.groceriesListsService.list$)) == null ? null : tmp_0_0.hasRecipe(ctx_r17.recipe == null ? null : ctx_r17.recipe.id)) ? "Voir le d\u00E9tail" : "S\u00E9lectionner ce repas", " ");
14165
+ i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4, ctx_r18.groceriesListsService.list$)) == null ? null : tmp_0_0.hasRecipe(ctx_r18.recipe == null ? null : ctx_r18.recipe.id)) ? "Voir le d\u00E9tail" : "S\u00E9lectionner ce repas", " ");
14152
14166
  i0.ɵɵadvance(2);
14153
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6, ctx_r17.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r17.recipe == null ? null : ctx_r17.recipe.id)) ? ctx_r17.icon.CheckList : ctx_r17.icon.Cart);
14167
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6, ctx_r18.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r18.recipe == null ? null : ctx_r18.recipe.id)) ? ctx_r18.icon.CheckList : ctx_r18.icon.Cart);
14154
14168
  }
14155
14169
  }
14156
- function RecipeDetailsComponent_div_0_ng_miam_addon_link_53_Template(rf, ctx) {
14170
+ function RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template(rf, ctx) {
14157
14171
  if (rf & 1) {
14158
- var _r26_1 = i0.ɵɵgetCurrentView();
14159
- i0.ɵɵelementStart(0, "ng-miam-addon-link", 51);
14160
- i0.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_ng_miam_addon_link_53_Template_ng_miam_addon_link_showAddon_0_listener() { i0.ɵɵrestoreView(_r26_1); var ctx_r25 = i0.ɵɵnextContext(2); return ctx_r25.toggleAddon(); });
14172
+ var _r27_1 = i0.ɵɵgetCurrentView();
14173
+ i0.ɵɵelementStart(0, "ng-miam-addon-link", 52);
14174
+ i0.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template_ng_miam_addon_link_showAddon_0_listener() { i0.ɵɵrestoreView(_r27_1); var ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.toggleAddon(); });
14161
14175
  i0.ɵɵelementEnd();
14162
14176
  }
14163
14177
  if (rf & 2) {
14164
- var ctx_r18 = i0.ɵɵnextContext(2);
14165
- i0.ɵɵproperty("recipe", ctx_r18.recipe);
14178
+ var ctx_r19 = i0.ɵɵnextContext(2);
14179
+ i0.ɵɵproperty("recipe", ctx_r19.recipe);
14166
14180
  }
14167
14181
  }
14168
- var _c1$b = function (a0) { return { "checked": a0 }; };
14169
- function RecipeDetailsComponent_div_0_div_54_div_12_Template(rf, ctx) {
14182
+ function RecipeDetailsComponent_div_0_div_55_div_12_div_1_Template(rf, ctx) {
14170
14183
  if (rf & 1) {
14171
- i0.ɵɵelementStart(0, "div", 65);
14172
- i0.ɵɵelementStart(1, "div");
14173
- i0.ɵɵtext(2);
14174
- i0.ɵɵpipe(3, "capitalizeFirstLetter");
14184
+ i0.ɵɵelementStart(0, "div");
14185
+ i0.ɵɵelement(1, "img", 68);
14175
14186
  i0.ɵɵelementEnd();
14176
- i0.ɵɵelementStart(4, "div", 59);
14177
- i0.ɵɵtext(5);
14178
- i0.ɵɵpipe(6, "readableFloatNumber");
14187
+ }
14188
+ if (rf & 2) {
14189
+ var ingredient_r30 = i0.ɵɵnextContext().$implicit;
14190
+ var ctx_r32 = i0.ɵɵnextContext(3);
14191
+ i0.ɵɵadvance(1);
14192
+ i0.ɵɵproperty("src", ctx_r32.ingredientPicture(ingredient_r30), i0.ɵɵsanitizeUrl);
14193
+ }
14194
+ }
14195
+ var _c2$3 = function (a0) { return { "checked": a0 }; };
14196
+ function RecipeDetailsComponent_div_0_div_55_div_12_Template(rf, ctx) {
14197
+ if (rf & 1) {
14198
+ i0.ɵɵelementStart(0, "div", 66);
14199
+ i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_55_div_12_div_1_Template, 2, 1, "div", 67);
14200
+ i0.ɵɵelementStart(2, "div");
14201
+ i0.ɵɵtext(3);
14202
+ i0.ɵɵpipe(4, "capitalizeFirstLetter");
14203
+ i0.ɵɵelementEnd();
14204
+ i0.ɵɵelementStart(5, "div", 60);
14205
+ i0.ɵɵtext(6);
14206
+ i0.ɵɵpipe(7, "readableFloatNumber");
14179
14207
  i0.ɵɵelementEnd();
14180
14208
  i0.ɵɵelementEnd();
14181
14209
  }
14182
14210
  if (rf & 2) {
14183
- var ingredient_r29 = ctx.$implicit;
14184
- var i_r30 = ctx.index;
14185
- var ctx_r27 = i0.ɵɵnextContext(3);
14186
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$b, ctx_r27.ingredientsChecked[i_r30]));
14211
+ var ingredient_r30 = ctx.$implicit;
14212
+ var i_r31 = ctx.index;
14213
+ var ctx_r28 = i0.ɵɵnextContext(3);
14214
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2$3, ctx_r28.ingredientsChecked[i_r31]));
14215
+ i0.ɵɵadvance(1);
14216
+ i0.ɵɵproperty("ngIf", ctx_r28.ingredientsPictures);
14187
14217
  i0.ɵɵadvance(2);
14188
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, ingredient_r29.name), "");
14218
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ingredient_r30.name), "");
14189
14219
  i0.ɵɵadvance(3);
14190
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(6, 5, ingredient_r29.qty, ingredient_r29.unit), "");
14220
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(7, 6, ingredient_r30.qty, ingredient_r30.unit), "");
14191
14221
  }
14192
14222
  }
14193
- function RecipeDetailsComponent_div_0_div_54_div_17_ng_miam_icon_6_Template(rf, ctx) {
14223
+ function RecipeDetailsComponent_div_0_div_55_div_17_ng_miam_icon_6_Template(rf, ctx) {
14194
14224
  if (rf & 1) {
14195
- i0.ɵɵelement(0, "ng-miam-icon", 70);
14225
+ i0.ɵɵelement(0, "ng-miam-icon", 73);
14196
14226
  }
14197
14227
  if (rf & 2) {
14198
- var ctx_r33 = i0.ɵɵnextContext(4);
14199
- i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r33.icon.CheckCircleFill);
14228
+ var ctx_r36 = i0.ɵɵnextContext(4);
14229
+ i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r36.icon.CheckCircleFill);
14200
14230
  }
14201
14231
  }
14202
- function RecipeDetailsComponent_div_0_div_54_div_17_Template(rf, ctx) {
14232
+ function RecipeDetailsComponent_div_0_div_55_div_17_Template(rf, ctx) {
14203
14233
  if (rf & 1) {
14204
- var _r35_1 = i0.ɵɵgetCurrentView();
14205
- i0.ɵɵelementStart(0, "div", 66);
14206
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_54_div_17_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r35_1); var i_r32 = ctx.index; var ctx_r34 = i0.ɵɵnextContext(3); return ctx_r34.changeActiveStep(i_r32); });
14207
- i0.ɵɵelementStart(1, "div", 67);
14234
+ var _r38_1 = i0.ɵɵgetCurrentView();
14235
+ i0.ɵɵelementStart(0, "div", 69);
14236
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_55_div_17_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r38_1); var i_r35 = ctx.index; var ctx_r37 = i0.ɵɵnextContext(3); return ctx_r37.changeActiveStep(i_r35); });
14237
+ i0.ɵɵelementStart(1, "div", 70);
14208
14238
  i0.ɵɵelementStart(2, "strong");
14209
14239
  i0.ɵɵtext(3);
14210
14240
  i0.ɵɵelementEnd();
14211
14241
  i0.ɵɵelementEnd();
14212
- i0.ɵɵelementStart(4, "div", 68);
14242
+ i0.ɵɵelementStart(4, "div", 71);
14213
14243
  i0.ɵɵtext(5);
14214
14244
  i0.ɵɵelementEnd();
14215
- i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_div_54_div_17_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 69);
14245
+ i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_div_55_div_17_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 72);
14216
14246
  i0.ɵɵelementEnd();
14217
14247
  }
14218
14248
  if (rf & 2) {
14219
- var step_r31 = ctx.$implicit;
14220
- var i_r32 = ctx.index;
14221
- var ctx_r28 = i0.ɵɵnextContext(3);
14222
- i0.ɵɵclassProp("active", i_r32 === ctx_r28.activeStep)("miam-recipe-details__panel__done", i_r32 < ctx_r28.activeStep);
14249
+ var step_r34 = ctx.$implicit;
14250
+ var i_r35 = ctx.index;
14251
+ var ctx_r29 = i0.ɵɵnextContext(3);
14252
+ i0.ɵɵclassProp("active", i_r35 === ctx_r29.activeStep)("miam-recipe-details__panel__done", i_r35 < ctx_r29.activeStep);
14223
14253
  i0.ɵɵadvance(3);
14224
- i0.ɵɵtextInterpolate(i_r32);
14254
+ i0.ɵɵtextInterpolate(i_r35 + 1);
14225
14255
  i0.ɵɵadvance(2);
14226
- i0.ɵɵtextInterpolate(step_r31 == null ? null : step_r31.attributes == null ? null : step_r31.attributes.description);
14256
+ i0.ɵɵtextInterpolate(step_r34 == null ? null : step_r34.attributes == null ? null : step_r34.attributes.description);
14227
14257
  i0.ɵɵadvance(1);
14228
- i0.ɵɵproperty("ngIf", i_r32 <= ctx_r28.activeStep);
14258
+ i0.ɵɵproperty("ngIf", i_r35 <= ctx_r29.activeStep);
14229
14259
  }
14230
14260
  }
14231
- function RecipeDetailsComponent_div_0_div_54_Template(rf, ctx) {
14261
+ function RecipeDetailsComponent_div_0_div_55_Template(rf, ctx) {
14232
14262
  if (rf & 1) {
14233
- var _r37_1 = i0.ɵɵgetCurrentView();
14234
- i0.ɵɵelementStart(0, "div", 52);
14235
- i0.ɵɵelementStart(1, "div", 53);
14236
- i0.ɵɵelementStart(2, "div", 54);
14263
+ var _r40_1 = i0.ɵɵgetCurrentView();
14264
+ i0.ɵɵelementStart(0, "div", 53);
14265
+ i0.ɵɵelementStart(1, "div", 54);
14266
+ i0.ɵɵelementStart(2, "div", 55);
14237
14267
  i0.ɵɵtext(3, " Ingr\u00E9dients ");
14238
14268
  i0.ɵɵelementEnd();
14239
- i0.ɵɵelementStart(4, "div", 55);
14240
- i0.ɵɵelementStart(5, "div", 56);
14241
- i0.ɵɵelementStart(6, "ng-miam-counter-input", 57);
14242
- i0.ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_div_54_Template_ng_miam_counter_input_counterChange_6_listener($event) { i0.ɵɵrestoreView(_r37_1); var ctx_r36 = i0.ɵɵnextContext(2); return ctx_r36.updateGuests($event); });
14269
+ i0.ɵɵelementStart(4, "div", 56);
14270
+ i0.ɵɵelementStart(5, "div", 57);
14271
+ i0.ɵɵelementStart(6, "ng-miam-counter-input", 58);
14272
+ i0.ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_div_55_Template_ng_miam_counter_input_counterChange_6_listener($event) { i0.ɵɵrestoreView(_r40_1); var ctx_r39 = i0.ɵɵnextContext(2); return ctx_r39.updateGuests($event); });
14243
14273
  i0.ɵɵelementEnd();
14244
- i0.ɵɵelementStart(7, "span", 58);
14274
+ i0.ɵɵelementStart(7, "span", 59);
14245
14275
  i0.ɵɵtext(8);
14246
14276
  i0.ɵɵelementEnd();
14247
14277
  i0.ɵɵelementEnd();
14248
- i0.ɵɵelementStart(9, "span", 59);
14278
+ i0.ɵɵelementStart(9, "span", 60);
14249
14279
  i0.ɵɵtext(10, "Quantit\u00E9");
14250
14280
  i0.ɵɵelementEnd();
14251
14281
  i0.ɵɵelementEnd();
14252
- i0.ɵɵelementStart(11, "div", 60);
14253
- i0.ɵɵtemplate(12, RecipeDetailsComponent_div_0_div_54_div_12_Template, 7, 10, "div", 61);
14282
+ i0.ɵɵelementStart(11, "div", 61);
14283
+ i0.ɵɵtemplate(12, RecipeDetailsComponent_div_0_div_55_div_12_Template, 8, 11, "div", 62);
14254
14284
  i0.ɵɵelementEnd();
14255
14285
  i0.ɵɵelementEnd();
14256
- i0.ɵɵelementStart(13, "div", 62);
14257
- i0.ɵɵelementStart(14, "div", 54);
14286
+ i0.ɵɵelementStart(13, "div", 63);
14287
+ i0.ɵɵelementStart(14, "div", 55);
14258
14288
  i0.ɵɵtext(15, " Pr\u00E9paration ");
14259
14289
  i0.ɵɵelementEnd();
14260
- i0.ɵɵelementStart(16, "div", 63);
14261
- i0.ɵɵtemplate(17, RecipeDetailsComponent_div_0_div_54_div_17_Template, 7, 7, "div", 64);
14290
+ i0.ɵɵelementStart(16, "div", 64);
14291
+ i0.ɵɵtemplate(17, RecipeDetailsComponent_div_0_div_55_div_17_Template, 7, 7, "div", 65);
14262
14292
  i0.ɵɵelementEnd();
14263
14293
  i0.ɵɵelementEnd();
14264
14294
  i0.ɵɵelementEnd();
14265
14295
  }
14266
14296
  if (rf & 2) {
14267
- var ctx_r19 = i0.ɵɵnextContext(2);
14297
+ var ctx_r20 = i0.ɵɵnextContext(2);
14268
14298
  i0.ɵɵadvance(6);
14269
- i0.ɵɵproperty("counter", (ctx_r19.recipe == null ? null : ctx_r19.recipe.modifiedGuests) || ctx_r19.recipe.guests);
14299
+ i0.ɵɵproperty("counter", (ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedGuests) || ctx_r20.recipe.guests);
14270
14300
  i0.ɵɵadvance(2);
14271
- i0.ɵɵtextInterpolate1("Pour ", ctx_r19.recipe == null ? null : ctx_r19.recipe.modifiedGuests, " personnes");
14301
+ i0.ɵɵtextInterpolate1("Pour ", ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedGuests, " personnes");
14272
14302
  i0.ɵɵadvance(4);
14273
- i0.ɵɵproperty("ngForOf", ctx_r19.recipe == null ? null : ctx_r19.recipe.modifiedIngredients);
14303
+ i0.ɵɵproperty("ngForOf", ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedIngredients);
14274
14304
  i0.ɵɵadvance(5);
14275
- i0.ɵɵproperty("ngForOf", ctx_r19.steps);
14305
+ i0.ɵɵproperty("ngForOf", ctx_r20.steps);
14276
14306
  }
14277
14307
  }
14278
- function RecipeDetailsComponent_div_0_ng_template_55_ng_container_7_div_9_Template(rf, ctx) {
14308
+ function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_div_9_Template(rf, ctx) {
14279
14309
  if (rf & 1) {
14280
- i0.ɵɵelementStart(0, "div", 65);
14310
+ i0.ɵɵelementStart(0, "div", 66);
14281
14311
  i0.ɵɵelementStart(1, "div");
14282
14312
  i0.ɵɵtext(2);
14283
14313
  i0.ɵɵpipe(3, "capitalizeFirstLetter");
14284
14314
  i0.ɵɵelementEnd();
14285
- i0.ɵɵelementStart(4, "div", 59);
14315
+ i0.ɵɵelementStart(4, "div", 60);
14286
14316
  i0.ɵɵtext(5);
14287
14317
  i0.ɵɵpipe(6, "readableFloatNumber");
14288
14318
  i0.ɵɵelementEnd();
14289
14319
  i0.ɵɵelementEnd();
14290
14320
  }
14291
14321
  if (rf & 2) {
14292
- var ingredient_r43 = ctx.$implicit;
14293
- var i_r44 = ctx.index;
14294
- var ctx_r42 = i0.ɵɵnextContext(4);
14295
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$b, ctx_r42.ingredientsChecked[i_r44]));
14322
+ var ingredient_r46 = ctx.$implicit;
14323
+ var i_r47 = ctx.index;
14324
+ var ctx_r45 = i0.ɵɵnextContext(4);
14325
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$3, ctx_r45.ingredientsChecked[i_r47]));
14296
14326
  i0.ɵɵadvance(2);
14297
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, ingredient_r43.name), "");
14327
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, ingredient_r46.name), "");
14298
14328
  i0.ɵɵadvance(3);
14299
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(6, 5, ingredient_r43.qty, ingredient_r43.unit), "");
14329
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(6, 5, ingredient_r46.qty, ingredient_r46.unit), "");
14300
14330
  }
14301
14331
  }
14302
- function RecipeDetailsComponent_div_0_ng_template_55_ng_container_7_Template(rf, ctx) {
14332
+ function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template(rf, ctx) {
14303
14333
  if (rf & 1) {
14304
- var _r46_1 = i0.ɵɵgetCurrentView();
14334
+ var _r49_1 = i0.ɵɵgetCurrentView();
14305
14335
  i0.ɵɵelementContainerStart(0);
14306
- i0.ɵɵelementStart(1, "div", 55);
14307
- i0.ɵɵelementStart(2, "div", 56);
14308
- i0.ɵɵelementStart(3, "ng-miam-counter-input", 57);
14309
- i0.ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_ng_template_55_ng_container_7_Template_ng_miam_counter_input_counterChange_3_listener($event) { i0.ɵɵrestoreView(_r46_1); var ctx_r45 = i0.ɵɵnextContext(3); return ctx_r45.updateGuests($event); });
14336
+ i0.ɵɵelementStart(1, "div", 56);
14337
+ i0.ɵɵelementStart(2, "div", 57);
14338
+ i0.ɵɵelementStart(3, "ng-miam-counter-input", 58);
14339
+ i0.ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template_ng_miam_counter_input_counterChange_3_listener($event) { i0.ɵɵrestoreView(_r49_1); var ctx_r48 = i0.ɵɵnextContext(3); return ctx_r48.updateGuests($event); });
14310
14340
  i0.ɵɵelementEnd();
14311
- i0.ɵɵelementStart(4, "span", 58);
14341
+ i0.ɵɵelementStart(4, "span", 59);
14312
14342
  i0.ɵɵtext(5);
14313
14343
  i0.ɵɵelementEnd();
14314
14344
  i0.ɵɵelementEnd();
14315
- i0.ɵɵelementStart(6, "span", 59);
14345
+ i0.ɵɵelementStart(6, "span", 60);
14316
14346
  i0.ɵɵtext(7, "Quantit\u00E9");
14317
14347
  i0.ɵɵelementEnd();
14318
14348
  i0.ɵɵelementEnd();
14319
- i0.ɵɵelementStart(8, "div", 60);
14320
- i0.ɵɵtemplate(9, RecipeDetailsComponent_div_0_ng_template_55_ng_container_7_div_9_Template, 7, 10, "div", 61);
14349
+ i0.ɵɵelementStart(8, "div", 61);
14350
+ i0.ɵɵtemplate(9, RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_div_9_Template, 7, 10, "div", 62);
14321
14351
  i0.ɵɵelementEnd();
14322
14352
  i0.ɵɵelementContainerEnd();
14323
14353
  }
14324
14354
  if (rf & 2) {
14325
- var ctx_r39 = i0.ɵɵnextContext(3);
14355
+ var ctx_r42 = i0.ɵɵnextContext(3);
14326
14356
  i0.ɵɵadvance(3);
14327
- i0.ɵɵproperty("counter", ctx_r39.recipe == null ? null : ctx_r39.recipe.modifiedGuests);
14357
+ i0.ɵɵproperty("counter", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedGuests);
14328
14358
  i0.ɵɵadvance(2);
14329
- i0.ɵɵtextInterpolate1("Pour ", ctx_r39.recipe == null ? null : ctx_r39.recipe.modifiedGuests, " personnes");
14359
+ i0.ɵɵtextInterpolate1("Pour ", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedGuests, " personnes");
14330
14360
  i0.ɵɵadvance(4);
14331
- i0.ɵɵproperty("ngForOf", ctx_r39.recipe == null ? null : ctx_r39.recipe.modifiedIngredients);
14361
+ i0.ɵɵproperty("ngForOf", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedIngredients);
14332
14362
  }
14333
14363
  }
14334
- function RecipeDetailsComponent_div_0_ng_template_55_ng_template_8_div_1_ng_miam_icon_6_Template(rf, ctx) {
14364
+ function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_ng_miam_icon_6_Template(rf, ctx) {
14335
14365
  if (rf & 1) {
14336
- i0.ɵɵelement(0, "ng-miam-icon", 70);
14366
+ i0.ɵɵelement(0, "ng-miam-icon", 73);
14337
14367
  }
14338
14368
  if (rf & 2) {
14339
- var ctx_r50 = i0.ɵɵnextContext(5);
14340
- i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r50.icon.CheckCircleFill);
14369
+ var ctx_r53 = i0.ɵɵnextContext(5);
14370
+ i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r53.icon.CheckCircleFill);
14341
14371
  }
14342
14372
  }
14343
- function RecipeDetailsComponent_div_0_ng_template_55_ng_template_8_div_1_Template(rf, ctx) {
14373
+ function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template(rf, ctx) {
14344
14374
  if (rf & 1) {
14345
- var _r52_1 = i0.ɵɵgetCurrentView();
14346
- i0.ɵɵelementStart(0, "div", 66);
14347
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_55_ng_template_8_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r52_1); var i_r49 = ctx.index; var ctx_r51 = i0.ɵɵnextContext(4); return ctx_r51.changeActiveStep(i_r49); });
14348
- i0.ɵɵelementStart(1, "div", 67);
14375
+ var _r55_1 = i0.ɵɵgetCurrentView();
14376
+ i0.ɵɵelementStart(0, "div", 69);
14377
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r55_1); var i_r52 = ctx.index; var ctx_r54 = i0.ɵɵnextContext(4); return ctx_r54.changeActiveStep(i_r52); });
14378
+ i0.ɵɵelementStart(1, "div", 70);
14349
14379
  i0.ɵɵelementStart(2, "strong");
14350
14380
  i0.ɵɵtext(3);
14351
14381
  i0.ɵɵelementEnd();
14352
14382
  i0.ɵɵelementEnd();
14353
- i0.ɵɵelementStart(4, "div", 68);
14383
+ i0.ɵɵelementStart(4, "div", 71);
14354
14384
  i0.ɵɵtext(5);
14355
14385
  i0.ɵɵelementEnd();
14356
- i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_ng_template_55_ng_template_8_div_1_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 69);
14386
+ i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 72);
14357
14387
  i0.ɵɵelementEnd();
14358
14388
  }
14359
14389
  if (rf & 2) {
14360
- var step_r48 = ctx.$implicit;
14361
- var i_r49 = ctx.index;
14362
- var ctx_r47 = i0.ɵɵnextContext(4);
14363
- i0.ɵɵclassProp("active", i_r49 === ctx_r47.activeStep)("miam-recipe-details__panel__done", i_r49 < ctx_r47.activeStep);
14390
+ var step_r51 = ctx.$implicit;
14391
+ var i_r52 = ctx.index;
14392
+ var ctx_r50 = i0.ɵɵnextContext(4);
14393
+ i0.ɵɵclassProp("active", i_r52 === ctx_r50.activeStep)("miam-recipe-details__panel__done", i_r52 < ctx_r50.activeStep);
14364
14394
  i0.ɵɵadvance(3);
14365
- i0.ɵɵtextInterpolate(i_r49);
14395
+ i0.ɵɵtextInterpolate(i_r52 + 1);
14366
14396
  i0.ɵɵadvance(2);
14367
- i0.ɵɵtextInterpolate(step_r48 == null ? null : step_r48.attributes == null ? null : step_r48.attributes.description);
14397
+ i0.ɵɵtextInterpolate(step_r51 == null ? null : step_r51.attributes == null ? null : step_r51.attributes.description);
14368
14398
  i0.ɵɵadvance(1);
14369
- i0.ɵɵproperty("ngIf", i_r49 <= ctx_r47.activeStep);
14399
+ i0.ɵɵproperty("ngIf", i_r52 <= ctx_r50.activeStep);
14370
14400
  }
14371
14401
  }
14372
- function RecipeDetailsComponent_div_0_ng_template_55_ng_template_8_Template(rf, ctx) {
14402
+ function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_Template(rf, ctx) {
14373
14403
  if (rf & 1) {
14374
- i0.ɵɵelementStart(0, "div", 63);
14375
- i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_ng_template_55_ng_template_8_div_1_Template, 7, 7, "div", 64);
14404
+ i0.ɵɵelementStart(0, "div", 64);
14405
+ i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template, 7, 7, "div", 65);
14376
14406
  i0.ɵɵelementEnd();
14377
14407
  }
14378
14408
  if (rf & 2) {
14379
- var ctx_r41 = i0.ɵɵnextContext(3);
14409
+ var ctx_r44 = i0.ɵɵnextContext(3);
14380
14410
  i0.ɵɵadvance(1);
14381
- i0.ɵɵproperty("ngForOf", ctx_r41.steps);
14411
+ i0.ɵɵproperty("ngForOf", ctx_r44.steps);
14382
14412
  }
14383
14413
  }
14384
- var _c2$3 = function (a0) { return { "active": a0 }; };
14385
- function RecipeDetailsComponent_div_0_ng_template_55_Template(rf, ctx) {
14414
+ var _c3$2 = function (a0) { return { "active": a0 }; };
14415
+ function RecipeDetailsComponent_div_0_ng_template_56_Template(rf, ctx) {
14386
14416
  if (rf & 1) {
14387
- var _r54_1 = i0.ɵɵgetCurrentView();
14388
- i0.ɵɵelementStart(0, "div", 71, 72);
14389
- i0.ɵɵelementStart(2, "div", 73);
14390
- i0.ɵɵelementStart(3, "button", 74);
14391
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_55_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r54_1); var _r38 = i0.ɵɵreference(1); var ctx_r53 = i0.ɵɵnextContext(2); ctx_r53.toggleShowIngredient(true); return _r38.scrollIntoView(); });
14417
+ var _r57_1 = i0.ɵɵgetCurrentView();
14418
+ i0.ɵɵelementStart(0, "div", 74, 75);
14419
+ i0.ɵɵelementStart(2, "div", 76);
14420
+ i0.ɵɵelementStart(3, "button", 77);
14421
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r57_1); var _r41 = i0.ɵɵreference(1); var ctx_r56 = i0.ɵɵnextContext(2); ctx_r56.toggleShowIngredient(true); return _r41.scrollIntoView(); });
14392
14422
  i0.ɵɵtext(4, "Ingredients");
14393
14423
  i0.ɵɵelementEnd();
14394
- i0.ɵɵelementStart(5, "button", 74);
14395
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_55_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r54_1); var _r38 = i0.ɵɵreference(1); var ctx_r55 = i0.ɵɵnextContext(2); ctx_r55.toggleShowIngredient(false); return _r38.scrollIntoView(); });
14424
+ i0.ɵɵelementStart(5, "button", 77);
14425
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r57_1); var _r41 = i0.ɵɵreference(1); var ctx_r58 = i0.ɵɵnextContext(2); ctx_r58.toggleShowIngredient(false); return _r41.scrollIntoView(); });
14396
14426
  i0.ɵɵtext(6, "Pr\u00E9paration");
14397
14427
  i0.ɵɵelementEnd();
14398
14428
  i0.ɵɵelementEnd();
14399
- i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_ng_template_55_ng_container_7_Template, 10, 3, "ng-container", 75);
14400
- i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_ng_template_55_ng_template_8_Template, 2, 1, "ng-template", null, 76, i0.ɵɵtemplateRefExtractor);
14429
+ i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template, 10, 3, "ng-container", 78);
14430
+ i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_Template, 2, 1, "ng-template", null, 79, i0.ɵɵtemplateRefExtractor);
14401
14431
  i0.ɵɵelementEnd();
14402
14432
  }
14403
14433
  if (rf & 2) {
14404
- var _r40 = i0.ɵɵreference(9);
14405
- var ctx_r21 = i0.ɵɵnextContext(2);
14434
+ var _r43 = i0.ɵɵreference(9);
14435
+ var ctx_r22 = i0.ɵɵnextContext(2);
14406
14436
  i0.ɵɵadvance(3);
14407
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c2$3, ctx_r21.showIngredient));
14437
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c3$2, ctx_r22.showIngredient));
14408
14438
  i0.ɵɵadvance(2);
14409
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c2$3, !ctx_r21.showIngredient));
14439
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c3$2, !ctx_r22.showIngredient));
14410
14440
  i0.ɵɵadvance(2);
14411
- i0.ɵɵproperty("ngIf", ctx_r21.showIngredient)("ngIfElse", _r40);
14441
+ i0.ɵɵproperty("ngIf", ctx_r22.showIngredient)("ngIfElse", _r43);
14412
14442
  }
14413
14443
  }
14414
- function RecipeDetailsComponent_div_0_button_61_Template(rf, ctx) {
14444
+ function RecipeDetailsComponent_div_0_button_62_Template(rf, ctx) {
14415
14445
  if (rf & 1) {
14416
- var _r57_1 = i0.ɵɵgetCurrentView();
14417
- i0.ɵɵelementStart(0, "button", 49);
14418
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_61_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r57_1); var ctx_r56 = i0.ɵɵnextContext(2); return ctx_r56.addRecipe(); });
14446
+ var _r60_1 = i0.ɵɵgetCurrentView();
14447
+ i0.ɵɵelementStart(0, "button", 50);
14448
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_62_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r60_1); var ctx_r59 = i0.ɵɵnextContext(2); return ctx_r59.addRecipe(); });
14419
14449
  i0.ɵɵelementStart(1, "span");
14420
14450
  i0.ɵɵtext(2);
14421
14451
  i0.ɵɵpipe(3, "async");
14422
14452
  i0.ɵɵelementEnd();
14423
- i0.ɵɵelement(4, "ng-miam-icon", 50);
14453
+ i0.ɵɵelement(4, "ng-miam-icon", 51);
14424
14454
  i0.ɵɵpipe(5, "async");
14425
14455
  i0.ɵɵelementEnd();
14426
14456
  }
14427
14457
  if (rf & 2) {
14428
- var ctx_r22 = i0.ɵɵnextContext(2);
14458
+ var ctx_r23 = i0.ɵɵnextContext(2);
14429
14459
  var tmp_0_0 = null;
14430
14460
  var tmp_3_0 = null;
14431
14461
  i0.ɵɵadvance(2);
14432
- i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4, ctx_r22.groceriesListsService.list$)) == null ? null : tmp_0_0.hasRecipe(ctx_r22.recipe == null ? null : ctx_r22.recipe.id)) ? "Voir le d\u00E9tail" : "S\u00E9lectionner ce repas", " ");
14462
+ i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4, ctx_r23.groceriesListsService.list$)) == null ? null : tmp_0_0.hasRecipe(ctx_r23.recipe == null ? null : ctx_r23.recipe.id)) ? "Voir le d\u00E9tail" : "S\u00E9lectionner ce repas", " ");
14433
14463
  i0.ɵɵadvance(2);
14434
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6, ctx_r22.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r22.recipe == null ? null : ctx_r22.recipe.id)) ? ctx_r22.icon.CheckList : ctx_r22.icon.Cart);
14464
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6, ctx_r23.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r23.recipe == null ? null : ctx_r23.recipe.id)) ? ctx_r23.icon.CheckList : ctx_r23.icon.Cart);
14435
14465
  }
14436
14466
  }
14437
14467
  function RecipeDetailsComponent_div_0_Template(rf, ctx) {
14438
14468
  if (rf & 1) {
14439
- var _r59_1 = i0.ɵɵgetCurrentView();
14440
- i0.ɵɵelementStart(0, "div", 2);
14441
- i0.ɵɵlistener("scroll", function RecipeDetailsComponent_div_0_Template_div_scroll_0_listener($event) { i0.ɵɵrestoreView(_r59_1); var ctx_r58 = i0.ɵɵnextContext(); return ctx_r58.onScroll($event); });
14442
- i0.ɵɵelementStart(1, "div", 3);
14469
+ var _r62_1 = i0.ɵɵgetCurrentView();
14470
+ i0.ɵɵelementStart(0, "div", 2, 3);
14443
14471
  i0.ɵɵelementStart(2, "div", 4);
14444
- i0.ɵɵelementStart(3, "div", 5, 6);
14445
- i0.ɵɵtemplate(5, RecipeDetailsComponent_div_0_img_5_Template, 1, 1, "img", 7);
14446
- i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_div_6_Template, 1, 0, "div", 8);
14447
- i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_youtube_player_7_Template, 1, 3, "youtube-player", 9);
14448
- i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_8_Template, 2, 0, "div", 10);
14449
- i0.ɵɵpipe(9, "async");
14450
- i0.ɵɵelementStart(10, "div", 11);
14451
- i0.ɵɵtemplate(11, RecipeDetailsComponent_div_0_ng_miam_like_button_11_Template, 1, 3, "ng-miam-like-button", 12);
14452
- i0.ɵɵpipe(12, "async");
14453
- i0.ɵɵelement(13, "ng-miam-icon", 13);
14454
- i0.ɵɵelement(14, "ng-miam-icon", 13);
14472
+ i0.ɵɵelementStart(3, "div", 5);
14473
+ i0.ɵɵelementStart(4, "div", 6, 7);
14474
+ i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_img_6_Template, 1, 1, "img", 8);
14475
+ i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_7_Template, 1, 0, "div", 9);
14476
+ i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_youtube_player_8_Template, 1, 3, "youtube-player", 10);
14477
+ i0.ɵɵtemplate(9, RecipeDetailsComponent_div_0_div_9_Template, 2, 0, "div", 11);
14478
+ i0.ɵɵpipe(10, "async");
14479
+ i0.ɵɵelementStart(11, "div", 12);
14480
+ i0.ɵɵtemplate(12, RecipeDetailsComponent_div_0_ng_miam_like_button_12_Template, 1, 3, "ng-miam-like-button", 13);
14481
+ i0.ɵɵpipe(13, "async");
14482
+ i0.ɵɵelement(14, "ng-miam-icon", 14);
14483
+ i0.ɵɵelement(15, "ng-miam-icon", 14);
14455
14484
  i0.ɵɵelementEnd();
14456
- i0.ɵɵtemplate(15, RecipeDetailsComponent_div_0_img_15_Template, 1, 1, "img", 14);
14485
+ i0.ɵɵtemplate(16, RecipeDetailsComponent_div_0_img_16_Template, 1, 1, "img", 15);
14457
14486
  i0.ɵɵelementEnd();
14458
- i0.ɵɵelementStart(16, "div", 15);
14459
14487
  i0.ɵɵelementStart(17, "div", 16);
14460
- i0.ɵɵelement(18, "ng-miam-icon", 17);
14461
- i0.ɵɵelementStart(19, "span");
14462
- i0.ɵɵtext(20);
14488
+ i0.ɵɵelementStart(18, "div", 17);
14489
+ i0.ɵɵelement(19, "ng-miam-icon", 18);
14490
+ i0.ɵɵelementStart(20, "span");
14491
+ i0.ɵɵtext(21);
14463
14492
  i0.ɵɵelementEnd();
14464
14493
  i0.ɵɵelementEnd();
14465
- i0.ɵɵelementStart(21, "div", 18);
14466
- i0.ɵɵtemplate(22, RecipeDetailsComponent_div_0_div_22_Template, 7, 4, "div", 19);
14467
- i0.ɵɵtemplate(23, RecipeDetailsComponent_div_0_div_23_Template, 7, 4, "div", 19);
14468
- i0.ɵɵtemplate(24, RecipeDetailsComponent_div_0_div_24_Template, 7, 4, "div", 19);
14494
+ i0.ɵɵelementStart(22, "div", 19);
14495
+ i0.ɵɵtemplate(23, RecipeDetailsComponent_div_0_div_23_Template, 7, 4, "div", 20);
14496
+ i0.ɵɵtemplate(24, RecipeDetailsComponent_div_0_div_24_Template, 7, 4, "div", 20);
14497
+ i0.ɵɵtemplate(25, RecipeDetailsComponent_div_0_div_25_Template, 7, 4, "div", 20);
14469
14498
  i0.ɵɵelementEnd();
14470
14499
  i0.ɵɵelementEnd();
14471
14500
  i0.ɵɵelementEnd();
14472
- i0.ɵɵelementStart(25, "div", 20);
14473
14501
  i0.ɵɵelementStart(26, "div", 21);
14474
- i0.ɵɵelementStart(27, "span", 22);
14475
- i0.ɵɵtext(28);
14476
- i0.ɵɵpipe(29, "titlecase");
14477
- i0.ɵɵelementEnd();
14478
- i0.ɵɵelementStart(30, "span", 23);
14479
- i0.ɵɵtext(31);
14480
- i0.ɵɵelementEnd();
14481
- i0.ɵɵelementStart(32, "div", 24);
14482
- i0.ɵɵelementContainerStart(33, 25);
14483
- i0.ɵɵtemplate(34, RecipeDetailsComponent_div_0_ng_container_34_Template, 2, 3, "ng-container", 26);
14484
- i0.ɵɵtemplate(35, RecipeDetailsComponent_div_0_ng_container_35_Template, 2, 3, "ng-container", 26);
14485
- i0.ɵɵtemplate(36, RecipeDetailsComponent_div_0_ng_container_36_Template, 2, 3, "ng-container", 26);
14486
- i0.ɵɵtemplate(37, RecipeDetailsComponent_div_0_ng_container_37_Template, 1, 0, "ng-container", 27);
14502
+ i0.ɵɵelementStart(27, "div", 22);
14503
+ i0.ɵɵelementStart(28, "span", 23);
14504
+ i0.ɵɵtext(29);
14505
+ i0.ɵɵpipe(30, "titlecase");
14506
+ i0.ɵɵelementEnd();
14507
+ i0.ɵɵelementStart(31, "span", 24);
14508
+ i0.ɵɵtext(32);
14509
+ i0.ɵɵelementEnd();
14510
+ i0.ɵɵelementStart(33, "div", 25);
14511
+ i0.ɵɵelementContainerStart(34, 26);
14512
+ i0.ɵɵtemplate(35, RecipeDetailsComponent_div_0_ng_container_35_Template, 2, 3, "ng-container", 27);
14513
+ i0.ɵɵtemplate(36, RecipeDetailsComponent_div_0_ng_container_36_Template, 2, 3, "ng-container", 27);
14514
+ i0.ɵɵtemplate(37, RecipeDetailsComponent_div_0_ng_container_37_Template, 2, 3, "ng-container", 27);
14515
+ i0.ɵɵtemplate(38, RecipeDetailsComponent_div_0_ng_container_38_Template, 1, 0, "ng-container", 28);
14487
14516
  i0.ɵɵelementContainerEnd();
14488
- i0.ɵɵelementStart(38, "span");
14489
- i0.ɵɵtext(39);
14490
- i0.ɵɵpipe(40, "titlecase");
14517
+ i0.ɵɵelementStart(39, "span");
14518
+ i0.ɵɵtext(40);
14519
+ i0.ɵɵpipe(41, "titlecase");
14491
14520
  i0.ɵɵelementEnd();
14492
14521
  i0.ɵɵelementEnd();
14493
- i0.ɵɵelementStart(41, "div", 28);
14494
- i0.ɵɵtext(42);
14495
- i0.ɵɵelementStart(43, "div", 29);
14496
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_Template_div_click_43_listener() { i0.ɵɵrestoreView(_r59_1); var ctx_r60 = i0.ɵɵnextContext(); return ctx_r60.print(); });
14497
- i0.ɵɵelement(44, "ng-miam-icon", 13);
14498
- i0.ɵɵelementStart(45, "span");
14499
- i0.ɵɵtext(46, " Imprimer la recette ");
14522
+ i0.ɵɵelementStart(42, "div", 29);
14523
+ i0.ɵɵtext(43);
14524
+ i0.ɵɵelementStart(44, "div", 30);
14525
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_Template_div_click_44_listener() { i0.ɵɵrestoreView(_r62_1); var ctx_r61 = i0.ɵɵnextContext(); return ctx_r61.print(); });
14526
+ i0.ɵɵelement(45, "ng-miam-icon", 14);
14527
+ i0.ɵɵelementStart(46, "span");
14528
+ i0.ɵɵtext(47, " Imprimer la recette ");
14500
14529
  i0.ɵɵelementEnd();
14501
14530
  i0.ɵɵelementEnd();
14502
14531
  i0.ɵɵelementEnd();
14503
14532
  i0.ɵɵelementEnd();
14504
- i0.ɵɵelementStart(47, "div", 30);
14505
14533
  i0.ɵɵelementStart(48, "div", 31);
14506
- i0.ɵɵelement(49, "ng-miam-recipe-pricing", 32);
14534
+ i0.ɵɵelementStart(49, "div", 32);
14535
+ i0.ɵɵelement(50, "ng-miam-recipe-pricing", 33);
14507
14536
  i0.ɵɵelementEnd();
14508
- i0.ɵɵtemplate(50, RecipeDetailsComponent_div_0_button_50_Template, 6, 8, "button", 33);
14537
+ i0.ɵɵtemplate(51, RecipeDetailsComponent_div_0_button_51_Template, 6, 8, "button", 34);
14509
14538
  i0.ɵɵelementEnd();
14510
14539
  i0.ɵɵelementEnd();
14511
14540
  i0.ɵɵelementEnd();
14512
- i0.ɵɵelement(51, "div", 34);
14513
- i0.ɵɵelementStart(52, "div");
14514
- i0.ɵɵtemplate(53, RecipeDetailsComponent_div_0_ng_miam_addon_link_53_Template, 1, 1, "ng-miam-addon-link", 35);
14541
+ i0.ɵɵelement(52, "div", 35);
14542
+ i0.ɵɵelementStart(53, "div");
14543
+ i0.ɵɵtemplate(54, RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template, 1, 1, "ng-miam-addon-link", 36);
14515
14544
  i0.ɵɵelementEnd();
14516
- i0.ɵɵtemplate(54, RecipeDetailsComponent_div_0_div_54_Template, 18, 4, "div", 36);
14517
- i0.ɵɵtemplate(55, RecipeDetailsComponent_div_0_ng_template_55_Template, 10, 8, "ng-template", null, 37, i0.ɵɵtemplateRefExtractor);
14518
- i0.ɵɵelementStart(57, "div", 38);
14519
- i0.ɵɵelementStart(58, "div", 30);
14545
+ i0.ɵɵtemplate(55, RecipeDetailsComponent_div_0_div_55_Template, 18, 4, "div", 37);
14546
+ i0.ɵɵtemplate(56, RecipeDetailsComponent_div_0_ng_template_56_Template, 10, 8, "ng-template", null, 38, i0.ɵɵtemplateRefExtractor);
14547
+ i0.ɵɵelementStart(58, "div", 39);
14520
14548
  i0.ɵɵelementStart(59, "div", 31);
14521
- i0.ɵɵelement(60, "ng-miam-recipe-pricing", 32);
14549
+ i0.ɵɵelementStart(60, "div", 32);
14550
+ i0.ɵɵelement(61, "ng-miam-recipe-pricing", 33);
14522
14551
  i0.ɵɵelementEnd();
14523
- i0.ɵɵtemplate(61, RecipeDetailsComponent_div_0_button_61_Template, 6, 8, "button", 33);
14552
+ i0.ɵɵtemplate(62, RecipeDetailsComponent_div_0_button_62_Template, 6, 8, "button", 34);
14524
14553
  i0.ɵɵelementEnd();
14525
14554
  i0.ɵɵelementEnd();
14526
14555
  i0.ɵɵelementEnd();
14527
14556
  }
14528
14557
  if (rf & 2) {
14529
- var _r20 = i0.ɵɵreference(56);
14558
+ var _r21 = i0.ɵɵreference(57);
14530
14559
  var ctx_r0 = i0.ɵɵnextContext();
14531
14560
  var tmp_3_0 = null;
14532
- i0.ɵɵadvance(5);
14561
+ i0.ɵɵadvance(6);
14533
14562
  i0.ɵɵproperty("ngIf", !ctx_r0.showVideo);
14534
14563
  i0.ɵɵadvance(1);
14535
14564
  i0.ɵɵproperty("ngIf", !ctx_r0.showVideo);
14536
14565
  i0.ɵɵadvance(1);
14537
14566
  i0.ɵɵproperty("ngIf", ctx_r0.showVideo && ctx_r0.playerWidth);
14538
14567
  i0.ɵɵadvance(1);
14539
- i0.ɵɵproperty("ngIf", (tmp_3_0 = i0.ɵɵpipeBind1(9, 39, ctx_r0.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r0.recipe == null ? null : ctx_r0.recipe.id));
14568
+ i0.ɵɵproperty("ngIf", (tmp_3_0 = i0.ɵɵpipeBind1(10, 39, ctx_r0.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r0.recipe == null ? null : ctx_r0.recipe.id));
14540
14569
  i0.ɵɵadvance(3);
14541
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(12, 41, ctx_r0.userService.isLogged$));
14570
+ i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 41, ctx_r0.userService.isLogged$));
14542
14571
  i0.ɵɵadvance(2);
14543
14572
  i0.ɵɵproperty("width", 26)("height", 26)("iconName", ctx_r0.icon.Calendar);
14544
14573
  i0.ɵɵadvance(1);
@@ -14556,7 +14585,7 @@
14556
14585
  i0.ɵɵadvance(1);
14557
14586
  i0.ɵɵproperty("ngIf", (ctx_r0.recipe == null ? null : ctx_r0.recipe.restingTime) !== "-");
14558
14587
  i0.ɵɵadvance(4);
14559
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(29, 43, ctx_r0.recipe == null ? null : ctx_r0.recipe.recipeType == null ? null : ctx_r0.recipe.recipeType.attributes == null ? null : ctx_r0.recipe.recipeType.attributes.name));
14588
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 43, ctx_r0.recipe == null ? null : ctx_r0.recipe.recipeType == null ? null : ctx_r0.recipe.recipeType.attributes == null ? null : ctx_r0.recipe.recipeType.attributes.name));
14560
14589
  i0.ɵɵadvance(3);
14561
14590
  i0.ɵɵtextInterpolate(ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["title"]);
14562
14591
  i0.ɵɵadvance(2);
@@ -14568,7 +14597,7 @@
14568
14597
  i0.ɵɵadvance(1);
14569
14598
  i0.ɵɵproperty("ngSwitchCase", "difficile");
14570
14599
  i0.ɵɵadvance(3);
14571
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(40, 45, ctx_r0.recipe == null ? null : ctx_r0.recipe.difficultyLabel));
14600
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(41, 45, ctx_r0.recipe == null ? null : ctx_r0.recipe.difficultyLabel));
14572
14601
  i0.ɵɵadvance(3);
14573
14602
  i0.ɵɵtextInterpolate1(" ", ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["description"], " ");
14574
14603
  i0.ɵɵadvance(2);
@@ -14580,7 +14609,7 @@
14580
14609
  i0.ɵɵadvance(3);
14581
14610
  i0.ɵɵproperty("ngIf", (ctx_r0.recipe == null ? null : ctx_r0.recipe.sponsors == null ? null : ctx_r0.recipe.sponsors.length) > 0 || ctx_r0.recipe.informationalSentence);
14582
14611
  i0.ɵɵadvance(1);
14583
- i0.ɵɵproperty("ngIf", !ctx_r0.isMobile)("ngIfElse", _r20);
14612
+ i0.ɵɵproperty("ngIf", !ctx_r0.isMobile)("ngIfElse", _r21);
14584
14613
  i0.ɵɵadvance(6);
14585
14614
  i0.ɵɵproperty("recipe", ctx_r0.recipe)("serves", ctx_r0.recipe == null ? null : ctx_r0.recipe.modifiedGuests);
14586
14615
  i0.ɵɵadvance(1);
@@ -14589,9 +14618,9 @@
14589
14618
  }
14590
14619
  function RecipeDetailsComponent_ng_template_1_Template(rf, ctx) {
14591
14620
  if (rf & 1) {
14592
- var _r62_1 = i0.ɵɵgetCurrentView();
14593
- i0.ɵɵelementStart(0, "ng-miam-recipe-addon", 77);
14594
- i0.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_template_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0.ɵɵrestoreView(_r62_1); var ctx_r61 = i0.ɵɵnextContext(); return ctx_r61.toggleAddon(); });
14621
+ var _r64_1 = i0.ɵɵgetCurrentView();
14622
+ i0.ɵɵelementStart(0, "ng-miam-recipe-addon", 80);
14623
+ i0.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_template_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0.ɵɵrestoreView(_r64_1); var ctx_r63 = i0.ɵɵnextContext(); return ctx_r63.toggleAddon(); });
14595
14624
  i0.ɵɵelementEnd();
14596
14625
  }
14597
14626
  if (rf & 2) {
@@ -14608,8 +14637,8 @@
14608
14637
  this.posService = posService;
14609
14638
  this.recipeEventsService = recipeEventsService;
14610
14639
  this.contextService = contextService;
14611
- this.forceIngredientsStepstoggle = false;
14612
14640
  this.previewAllowed = true;
14641
+ this.ingredientsPictures = false;
14613
14642
  this.recipeAdded = new i0.EventEmitter();
14614
14643
  this.recipeChanged = new i0.EventEmitter();
14615
14644
  this.recipeError = new i0.EventEmitter();
@@ -14622,19 +14651,19 @@
14622
14651
  this.ingredientsChecked = {};
14623
14652
  this.showIngredient = true;
14624
14653
  this.closeIconhidden = new rxjs.BehaviorSubject(false);
14654
+ this.scrollListenerInitialised = false;
14625
14655
  this.subscriptions = [];
14626
14656
  this.isMobile = this.mediaMatcher.matchMedia('(max-width: 1023px)').matches;
14627
14657
  }
14628
- RecipeDetailsComponent.prototype.onScroll = function ($event) {
14629
- if ($event.srcElement.scrollTop > 300 !== this.closeIconhidden.value) {
14630
- this.closeIconhidden.next($event.srcElement.scrollTop > 300);
14631
- }
14632
- };
14633
14658
  RecipeDetailsComponent.prototype.ngOnChanges = function () {
14634
14659
  var _a;
14660
+ // if forceIngredientsStepstoggle, use isMobile to toggle ingredients & steps in mobile mode, else
14661
+ // Use the value of forceIngredientsStepstoggle to force it to mobile (true) or desktop (false)
14662
+ if (this.forceIngredientsStepstoggle !== undefined) {
14663
+ this.isMobile = this.forceIngredientsStepstoggle;
14664
+ }
14635
14665
  this.showVideo = false; // force reload video player
14636
14666
  this.cdr.detectChanges();
14637
- this.isMobile = this.forceIngredientsStepstoggle ? true : this.isMobile;
14638
14667
  this.showVideo = this.contextService.videoRecipesEnabled && ((_a = this.recipe) === null || _a === void 0 ? void 0 : _a.videoId);
14639
14668
  if (this.recipe) {
14640
14669
  this.steps = this.recipe.steps;
@@ -14646,6 +14675,28 @@
14646
14675
  var _a, _b;
14647
14676
  this.playerWidth = Math.min(640, (_b = (_a = this.topContainerImg) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.offsetWidth);
14648
14677
  this.playerHeight = this.playerWidth * 390 / 640;
14678
+ if (!this.scrollListenerInitialised) {
14679
+ this.initScrollListener();
14680
+ }
14681
+ };
14682
+ /**
14683
+ * Init the listener on scroll so the modal can hide the close icon
14684
+ */
14685
+ RecipeDetailsComponent.prototype.initScrollListener = function () {
14686
+ var _this = this;
14687
+ if (this.mainContainer) {
14688
+ var intersectionObserver = new IntersectionObserver(function (_c) {
14689
+ var _d = __read(_c, 1), entry = _d[0];
14690
+ if (_this.mainContainer.nativeElement.scrollTop > 300 !== _this.closeIconhidden.value) {
14691
+ _this.closeIconhidden.next(_this.mainContainer.nativeElement.scrollTop > 300);
14692
+ }
14693
+ }, {
14694
+ threshold: [0, 0.33, 0.66, 1],
14695
+ root: this.mainContainer.nativeElement
14696
+ });
14697
+ intersectionObserver.observe(this.topContainerImg.nativeElement);
14698
+ this.scrollListenerInitialised = true;
14699
+ }
14649
14700
  };
14650
14701
  RecipeDetailsComponent.prototype.changeActiveStep = function (index) {
14651
14702
  this.activeStep = index;
@@ -14701,24 +14752,25 @@
14701
14752
  this.showIngredient = isShowed;
14702
14753
  this.cdr.detectChanges();
14703
14754
  };
14755
+ RecipeDetailsComponent.prototype.ingredientPicture = function (ingredient) {
14756
+ return ingredient.picture || this.contextService.defaultIngredientPicture;
14757
+ };
14704
14758
  return RecipeDetailsComponent;
14705
14759
  }());
14706
14760
  RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$2.MediaMatcher), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(ContextService)); };
14707
14761
  RecipeDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsComponent, selectors: [["ng-miam-recipe-details"]], viewQuery: function RecipeDetailsComponent_Query(rf, ctx) {
14708
14762
  if (rf & 1) {
14709
14763
  i0.ɵɵviewQuery(_c0$r, true);
14764
+ i0.ɵɵviewQuery(_c1$b, true);
14710
14765
  }
14711
14766
  if (rf & 2) {
14712
14767
  var _t;
14713
14768
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.topContainerImg = _t.first);
14769
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mainContainer = _t.first);
14714
14770
  }
14715
- }, hostBindings: function RecipeDetailsComponent_HostBindings(rf, ctx) {
14716
- if (rf & 1) {
14717
- i0.ɵɵlistener("scroll", function RecipeDetailsComponent_scroll_HostBindingHandler($event) { return ctx.onScroll($event); });
14718
- }
14719
- }, inputs: { recipe: "recipe", forceIngredientsStepstoggle: "forceIngredientsStepstoggle", previewAllowed: "previewAllowed" }, outputs: { recipeAdded: "recipeAdded", recipeChanged: "recipeChanged", recipeError: "recipeError" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "miam-recipe-details", 3, "scroll", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details", 3, "scroll"], [1, "miam-recipe-details__top__container"], [1, "miam-recipe-details__top__left"], [1, "miam-recipe-details__top__container__img"], ["topContainerImg", ""], [3, "src", 4, "ngIf"], ["class", "miam-recipe-details__picture__gradient", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__tag", 4, "ngIf"], [1, "miam-recipe-details__img__actions"], ["class", "miam-recipe-details__actions__icon miam-noPadding", 3, "recipe", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", 3, "width", "height", "iconName"], ["class", "miam-recipe-details__picture__sponsor", 3, "src", 4, "ngIf"], [1, "miam-recipe-details__top__container__info"], [1, "miam-recipe-details__info__metrics", "miam-recipe-details__info__metrics__total"], ["primaryColor", "var(--m-color-primary)", 3, "width", "height", "iconName"], [1, "miam-recipe-details__info__times"], ["class", "miam-recipe-details__info__metrics", 4, "ngIf"], [1, "miam-recipe-details__top__container__infos"], [1, "miam-recipe-details__top__container__infos__top"], [1, "miam-recipe-details__infos__type"], [1, "miam-recipe-details__infos__title"], [1, "miam-recipe-details__infos__difficulty"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [1, "miam-recipe-details__infos__description"], [1, "miam-recipe-details__description__action", 3, "click"], [1, "miam-recipe-details__infos__price__wrapper"], [1, "miam-recipe-details__infos__price"], [3, "recipe", "serves"], ["class", "miam-recipe-details__infos__action m-button-fab-primary", 3, "click", 4, "ngIf"], [1, "miam-recipe-details__mid__container"], [3, "recipe", "showAddon", 4, "ngIf"], ["class", "miam-recipe-details__bottom__container", 4, "ngIf", "ngIfElse"], ["mobileContainer", ""], [1, "miam-recipe-details__bottom__container__action"], [3, "src"], [1, "miam-recipe-details__picture__gradient"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__tag"], [1, "miam-recipe-details__actions__icon", "miam-noPadding", 3, "recipe", "width", "height"], [1, "miam-recipe-details__picture__sponsor", 3, "src"], [1, "miam-recipe-details__info__metrics"], [1, "miam-recipe-details__metrics__row"], ["primaryColor", "var(--m-color-slate)", 3, "width", "height", "iconName"], [3, "width", "height", "iconName"], [1, "miam-recipe-details__infos__action", "m-button-fab-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [3, "recipe", "showAddon"], [1, "miam-recipe-details__bottom__container"], [1, "miam-recipe-details__bottom__container__ingredients"], [1, "miam-recipe-details__bottom__container__header"], [1, "miam-recipe-details__ingredients__row"], [1, "miam-recipe-details__ingredients__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-details__ingredients__counter__print"], [1, "miam-recipe-details__ingredients__row__qty"], [1, "miam-recipe-details__ingredients__list"], ["class", "miam-recipe-details__ingredients__row", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__bottom__container__steps"], [1, "miam-recipe-details__steps__list"], ["class", "miam-recipe-details__steps__list__panel", 3, "active", "miam-recipe-details__panel__done", "click", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__ingredients__row", 3, "ngClass"], [1, "miam-recipe-details__steps__list__panel", 3, "click"], [1, "miam-recipe-details__panel__idx"], [1, "miam-recipe-details__panel__text"], ["class", "miam-recipe-details__panel__checkIcon", "primaryColor", "var(--m-color-secondary)", 3, "height", "width", "iconName", 4, "ngIf"], ["primaryColor", "var(--m-color-secondary)", 1, "miam-recipe-details__panel__checkIcon", 3, "height", "width", "iconName"], [1, "miam-recipe-details__mobile__container"], ["mobileContainerTop", ""], [1, "miam-recipe-details__mobile__header"], [1, "m-button-secondary", 3, "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["stepsContainer", ""], [3, "recipe", "hideAddon"]], template: function RecipeDetailsComponent_Template(rf, ctx) {
14771
+ }, inputs: { recipe: "recipe", forceIngredientsStepstoggle: "forceIngredientsStepstoggle", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures" }, outputs: { recipeAdded: "recipeAdded", recipeChanged: "recipeChanged", recipeError: "recipeError" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "miam-recipe-details", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details"], ["mainContainer", ""], [1, "miam-recipe-details__top__container"], [1, "miam-recipe-details__top__left"], [1, "miam-recipe-details__top__container__img"], ["topContainerImg", ""], [3, "src", 4, "ngIf"], ["class", "miam-recipe-details__picture__gradient", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__tag", 4, "ngIf"], [1, "miam-recipe-details__img__actions"], ["class", "miam-recipe-details__actions__icon miam-noPadding", 3, "recipe", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", 3, "width", "height", "iconName"], ["class", "miam-recipe-details__picture__sponsor", 3, "src", 4, "ngIf"], [1, "miam-recipe-details__top__container__info"], [1, "miam-recipe-details__info__metrics", "miam-recipe-details__info__metrics__total"], ["primaryColor", "var(--m-color-primary)", 3, "width", "height", "iconName"], [1, "miam-recipe-details__info__times"], ["class", "miam-recipe-details__info__metrics", 4, "ngIf"], [1, "miam-recipe-details__top__container__infos"], [1, "miam-recipe-details__top__container__infos__top"], [1, "miam-recipe-details__infos__type"], [1, "miam-recipe-details__infos__title"], [1, "miam-recipe-details__infos__difficulty"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [1, "miam-recipe-details__infos__description"], [1, "miam-recipe-details__description__action", 3, "click"], [1, "miam-recipe-details__infos__price__wrapper"], [1, "miam-recipe-details__infos__price"], [3, "recipe", "serves"], ["class", "miam-recipe-details__infos__action m-button-fab-primary", 3, "click", 4, "ngIf"], [1, "miam-recipe-details__mid__container"], [3, "recipe", "showAddon", 4, "ngIf"], ["class", "miam-recipe-details__bottom__container", 4, "ngIf", "ngIfElse"], ["mobileContainer", ""], [1, "miam-recipe-details__bottom__container__action"], [3, "src"], [1, "miam-recipe-details__picture__gradient"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__tag"], [1, "miam-recipe-details__actions__icon", "miam-noPadding", 3, "recipe", "width", "height"], [1, "miam-recipe-details__picture__sponsor", 3, "src"], [1, "miam-recipe-details__info__metrics"], [1, "miam-recipe-details__metrics__row"], ["primaryColor", "var(--m-color-slate)", 3, "width", "height", "iconName"], [3, "width", "height", "iconName"], [1, "miam-recipe-details__infos__action", "m-button-fab-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [3, "recipe", "showAddon"], [1, "miam-recipe-details__bottom__container"], [1, "miam-recipe-details__bottom__container__ingredients"], [1, "miam-recipe-details__bottom__container__header"], [1, "miam-recipe-details__ingredients__row"], [1, "miam-recipe-details__ingredients__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-details__ingredients__counter__print"], [1, "miam-recipe-details__ingredients__row__qty"], [1, "miam-recipe-details__ingredients__list"], ["class", "miam-recipe-details__ingredients__row", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__bottom__container__steps"], [1, "miam-recipe-details__steps__list"], ["class", "miam-recipe-details__steps__list__panel", 3, "active", "miam-recipe-details__panel__done", "click", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__ingredients__row", 3, "ngClass"], [4, "ngIf"], [1, "miam-recipe-details__ingredients__row__picture", 3, "src"], [1, "miam-recipe-details__steps__list__panel", 3, "click"], [1, "miam-recipe-details__panel__idx"], [1, "miam-recipe-details__panel__text"], ["class", "miam-recipe-details__panel__checkIcon", "primaryColor", "var(--m-color-secondary)", 3, "height", "width", "iconName", 4, "ngIf"], ["primaryColor", "var(--m-color-secondary)", 1, "miam-recipe-details__panel__checkIcon", 3, "height", "width", "iconName"], [1, "miam-recipe-details__mobile__container"], ["mobileContainerTop", ""], [1, "miam-recipe-details__mobile__header"], [1, "m-button-secondary", 3, "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["stepsContainer", ""], [3, "recipe", "hideAddon"]], template: function RecipeDetailsComponent_Template(rf, ctx) {
14720
14772
  if (rf & 1) {
14721
- i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 62, 47, "div", 0);
14773
+ i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 63, 47, "div", 0);
14722
14774
  i0.ɵɵtemplate(1, RecipeDetailsComponent_ng_template_1_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
14723
14775
  }
14724
14776
  if (rf & 2) {
@@ -14742,6 +14794,8 @@
14742
14794
  type: i0.Input
14743
14795
  }], previewAllowed: [{
14744
14796
  type: i0.Input
14797
+ }], ingredientsPictures: [{
14798
+ type: i0.Input
14745
14799
  }], recipeAdded: [{
14746
14800
  type: i0.Output
14747
14801
  }], recipeChanged: [{
@@ -14751,9 +14805,9 @@
14751
14805
  }], topContainerImg: [{
14752
14806
  type: i0.ViewChild,
14753
14807
  args: ['topContainerImg']
14754
- }], onScroll: [{
14755
- type: i0.HostListener,
14756
- args: ['scroll', ['$event']]
14808
+ }], mainContainer: [{
14809
+ type: i0.ViewChild,
14810
+ args: ['mainContainer']
14757
14811
  }] });
14758
14812
  })();
14759
14813
 
@@ -14944,7 +14998,7 @@
14944
14998
  }
14945
14999
  var _c1$c = function (a0) { return { "height.px": a0 }; };
14946
15000
  var _c2$4 = function (a0) { return { "miam-recipe-tags__container__toggle__hidden": a0 }; };
14947
- var _c3$2 = function (a0) { return { "opacity": a0 }; };
15001
+ var _c3$3 = function (a0) { return { "opacity": a0 }; };
14948
15002
  function RecipeTagsComponent_div_0_Template(rf, ctx) {
14949
15003
  if (rf & 1) {
14950
15004
  var _r9_1 = i0.ɵɵgetCurrentView();
@@ -14975,7 +15029,7 @@
14975
15029
  i0.ɵɵadvance(2);
14976
15030
  i0.ɵɵtextInterpolate1(" ", ctx_r0.isListOpen ? " " : "+" + ctx_r0.wrappedItemsCount, "");
14977
15031
  i0.ɵɵadvance(2);
14978
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(10, _c3$2, ctx_r0.isListOpen ? 1 : 0));
15032
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(10, _c3$3, ctx_r0.isListOpen ? 1 : 0));
14979
15033
  i0.ɵɵadvance(1);
14980
15034
  i0.ɵɵproperty("iconName", ctx_r0.icon.ChevronDown);
14981
15035
  }