ng-miam 6.3.0 → 6.3.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.
Files changed (30) hide show
  1. package/bundles/ng-miam.umd.js +379 -273
  2. package/bundles/ng-miam.umd.js.map +1 -1
  3. package/bundles/ng-miam.umd.min.js +1 -1
  4. package/bundles/ng-miam.umd.min.js.map +1 -1
  5. package/esm2015/lib/_components/abstracts/abstract-recipe-card.component.js +5 -2
  6. package/esm2015/lib/_components/progress-tracker/progress-tracker.component.js +1 -1
  7. package/esm2015/lib/_components/recipe-filters/recipe-filters.component.js +149 -127
  8. package/esm2015/lib/_models/sponsor.js +3 -2
  9. package/esm2015/lib/_services/interceptor.service.js +2 -2
  10. package/esm2015/lib/_services/recipes.service.js +7 -7
  11. package/esm2015/lib/_web-components/meals-planner/meals-planner-catalog/meals-planner-catalog.component.js +21 -23
  12. package/esm2015/lib/_web-components/meals-planner/meals-planner-result/meals-planner-result.component.js +69 -41
  13. package/esm2015/lib/_web-components/meals-planner/meals-planner.component.js +32 -9
  14. package/esm2015/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.js +2 -2
  15. package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +8 -5
  16. package/esm2015/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.js +67 -56
  17. package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +9 -6
  18. package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +6 -4
  19. package/fesm2015/ng-miam.js +364 -271
  20. package/fesm2015/ng-miam.js.map +1 -1
  21. package/lib/_components/abstracts/abstract-recipe-card.component.d.ts +2 -1
  22. package/lib/_models/sponsor.d.ts +1 -0
  23. package/lib/_services/recipes.service.d.ts +5 -2
  24. package/lib/_web-components/meals-planner/meals-planner-result/meals-planner-result.component.d.ts +2 -1
  25. package/lib/_web-components/meals-planner/meals-planner.component.d.ts +3 -0
  26. package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts +2 -1
  27. package/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.d.ts +2 -1
  28. package/lib/_web-components/recipe-details/recipe-details.component.d.ts +2 -1
  29. package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts +1 -0
  30. package/package.json +1 -1
@@ -2279,7 +2279,8 @@
2279
2279
  var _this = _super.apply(this, __spread(arguments)) || this;
2280
2280
  _this.attributes = {
2281
2281
  name: '',
2282
- 'logo-url': ''
2282
+ 'logo-url': '',
2283
+ 'provider-id': ''
2283
2284
  };
2284
2285
  return _this;
2285
2286
  }
@@ -3526,23 +3527,23 @@
3526
3527
  // Open modal showing recipe details
3527
3528
  RecipesService.prototype.display = function (recipeId, _c, eventTrace) {
3528
3529
  var _this = this;
3529
- var _d = _c.previewAllowed, previewAllowed = _d === void 0 ? true : _d, _e = _c.guests, guests = _e === void 0 ? null : _e, _f = _c.previewMode, previewMode = _f === void 0 ? false : _f;
3530
+ var _d = _c.previewAllowed, previewAllowed = _d === void 0 ? true : _d, _e = _c.guests, guests = _e === void 0 ? null : _e, _f = _c.previewMode, previewMode = _f === void 0 ? false : _f, _g = _c.displayGuests, displayGuests = _g === void 0 ? true : _g;
3530
3531
  if (!recipeId) {
3531
3532
  return;
3532
3533
  }
3533
3534
  this.get(recipeId, { include: ['ingredients', 'recipe-steps', 'recipe-type', 'sponsors', 'tags'] })
3534
3535
  .pipe(operators.skipWhile(function (recipe) { return recipe.is_loading; }))
3535
3536
  .subscribe(function (recipe) {
3536
- _this.displayObject(recipe, { previewAllowed: previewAllowed, guests: guests, previewMode: previewMode }, eventTrace);
3537
+ _this.displayObject(recipe, { previewAllowed: previewAllowed, guests: guests, previewMode: previewMode, displayGuests: displayGuests }, eventTrace);
3537
3538
  });
3538
3539
  };
3539
3540
  RecipesService.prototype.displayObject = function (recipe, _c, eventTrace) {
3540
- var _d = _c.previewAllowed, previewAllowed = _d === void 0 ? true : _d, _e = _c.guests, guests = _e === void 0 ? null : _e, _f = _c.previewMode, previewMode = _f === void 0 ? false : _f, _g = _c.wasAdded, wasAdded = _g === void 0 ? false : _g;
3541
+ var _d = _c.previewAllowed, previewAllowed = _d === void 0 ? true : _d, _e = _c.guests, guests = _e === void 0 ? null : _e, _f = _c.previewMode, previewMode = _f === void 0 ? false : _f, _g = _c.wasAdded, wasAdded = _g === void 0 ? false : _g, _h = _c.displayGuests, displayGuests = _h === void 0 ? true : _h;
3541
3542
  if (!recipe) {
3542
3543
  return;
3543
3544
  }
3544
3545
  recipe.modifiedGuests = guests || +recipe.guests;
3545
- this.displayedRecipe$.next({ previewAllowed: previewAllowed, recipe: recipe, previewMode: previewMode, wasAdded: wasAdded, eventTrace: eventTrace });
3546
+ this.displayedRecipe$.next({ previewAllowed: previewAllowed, recipe: recipe, previewMode: previewMode, wasAdded: wasAdded, displayGuests: displayGuests, eventTrace: eventTrace });
3546
3547
  if (!previewMode) {
3547
3548
  this.recipeEventsService.sendEvent(recipe, this.recipeEventsService.ACTION_DISPLAYED);
3548
3549
  }
@@ -3589,7 +3590,7 @@
3589
3590
  var url = MIAM_API_HOST$3 + 'recipes/plan';
3590
3591
  return this.posService.pos$.pipe(operators.skipWhile(function (pos) { return !(pos === null || pos === void 0 ? void 0 : pos.id); }), operators.take(1), operators.switchMap(function (pos) {
3591
3592
  url += "?point_of_sale_id=" + pos.id + "&guests=" + guests + "&budget=" + budget + "&recipes_count=" + recipesCount;
3592
- url += "&include=" + includes.join(',') + plannerFields + "&filter[recipe_type_id]=1";
3593
+ url += "&include=" + includes.join(',') + plannerFields + "&filter[recipe_type_id]=main-dish";
3593
3594
  return _this.http.get(url, {}).pipe(operators.map(function (returnedRecipes) {
3594
3595
  var recipes = _this.newCollection();
3595
3596
  recipes.fill(returnedRecipes);
@@ -3600,7 +3601,7 @@
3600
3601
  RecipesService.prototype.maxPlannableRecipes = function (budget, guests) {
3601
3602
  var _this = this;
3602
3603
  return this.posService.pos$.pipe(operators.skipWhile(function (pos) { return !(pos === null || pos === void 0 ? void 0 : pos.id); }), operators.take(1), operators.switchMap(function (pos) {
3603
- return _this.http.get(MIAM_API_HOST$3 + ("recipes/plan_max_recipes?point_of_sale_id=" + pos.id + "&guests=" + guests + "&budget=" + budget), {}).pipe(operators.map(function (result) { return result.max_recipes; }));
3604
+ return _this.http.get(MIAM_API_HOST$3 + ("recipes/plan_max_recipes?point_of_sale_id=" + pos.id + "&guests=" + guests + "&budget=" + budget + "&filter[recipe_type_id]=main-dish"), {}).pipe(operators.map(function (result) { return result.max_recipes; }));
3604
3605
  }));
3605
3606
  };
3606
3607
  // DEPRECATED / use TTL instead
@@ -9789,7 +9790,7 @@
9789
9790
  })();
9790
9791
  var templateObject_1$4;
9791
9792
 
9792
- function RecipeFiltersComponent_div_7_div_3_span_2_Template(rf, ctx) {
9793
+ function RecipeFiltersComponent_div_8_div_4_span_2_Template(rf, ctx) {
9793
9794
  if (rf & 1) {
9794
9795
  i0.ɵɵelementStart(0, "span");
9795
9796
  i0.ɵɵtext(1);
@@ -9801,38 +9802,38 @@
9801
9802
  i0.ɵɵtextInterpolate(difficulty_r6.text);
9802
9803
  }
9803
9804
  }
9804
- function RecipeFiltersComponent_div_7_div_3_span_3_Template(rf, ctx) {
9805
+ function RecipeFiltersComponent_div_8_div_4_span_3_Template(rf, ctx) {
9805
9806
  if (rf & 1) {
9806
9807
  i0.ɵɵelementStart(0, "span");
9807
- i0.ɵɵi18n(1, 19);
9808
+ i0.ɵɵi18n(1, 21);
9808
9809
  i0.ɵɵelementEnd();
9809
9810
  }
9810
9811
  }
9811
- function RecipeFiltersComponent_div_7_div_3_span_4_Template(rf, ctx) {
9812
+ function RecipeFiltersComponent_div_8_div_4_span_4_Template(rf, ctx) {
9812
9813
  if (rf & 1) {
9813
9814
  i0.ɵɵelementStart(0, "span");
9814
- i0.ɵɵi18n(1, 20);
9815
+ i0.ɵɵi18n(1, 22);
9815
9816
  i0.ɵɵelementEnd();
9816
9817
  }
9817
9818
  }
9818
- function RecipeFiltersComponent_div_7_div_3_span_5_Template(rf, ctx) {
9819
+ function RecipeFiltersComponent_div_8_div_4_span_5_Template(rf, ctx) {
9819
9820
  if (rf & 1) {
9820
9821
  i0.ɵɵelementStart(0, "span");
9821
- i0.ɵɵi18n(1, 21);
9822
+ i0.ɵɵi18n(1, 23);
9822
9823
  i0.ɵɵelementEnd();
9823
9824
  }
9824
9825
  }
9825
- function RecipeFiltersComponent_div_7_div_3_Template(rf, ctx) {
9826
+ function RecipeFiltersComponent_div_8_div_4_Template(rf, ctx) {
9826
9827
  if (rf & 1) {
9827
9828
  var _r13_1 = i0.ɵɵgetCurrentView();
9828
- i0.ɵɵelementStart(0, "div", 17);
9829
- i0.ɵɵelementStart(1, "input", 18);
9830
- i0.ɵɵlistener("ngModelChange", function RecipeFiltersComponent_div_7_div_3_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r13_1); var difficulty_r6 = ctx.$implicit; return difficulty_r6.value = $event; })("ngModelChange", function RecipeFiltersComponent_div_7_div_3_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r13_1); var ctx_r14 = i0.ɵɵnextContext(2); return ctx_r14.filtersChanged(); });
9829
+ i0.ɵɵelementStart(0, "div", 19);
9830
+ i0.ɵɵelementStart(1, "input", 20);
9831
+ i0.ɵɵlistener("ngModelChange", function RecipeFiltersComponent_div_8_div_4_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r13_1); var difficulty_r6 = ctx.$implicit; return difficulty_r6.value = $event; })("ngModelChange", function RecipeFiltersComponent_div_8_div_4_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r13_1); var ctx_r14 = i0.ɵɵnextContext(2); return ctx_r14.filtersChanged(); });
9831
9832
  i0.ɵɵelementEnd();
9832
- i0.ɵɵtemplate(2, RecipeFiltersComponent_div_7_div_3_span_2_Template, 2, 1, "span", 7);
9833
- i0.ɵɵtemplate(3, RecipeFiltersComponent_div_7_div_3_span_3_Template, 2, 0, "span", 7);
9834
- i0.ɵɵtemplate(4, RecipeFiltersComponent_div_7_div_3_span_4_Template, 2, 0, "span", 7);
9835
- i0.ɵɵtemplate(5, RecipeFiltersComponent_div_7_div_3_span_5_Template, 2, 0, "span", 7);
9833
+ i0.ɵɵtemplate(2, RecipeFiltersComponent_div_8_div_4_span_2_Template, 2, 1, "span", 7);
9834
+ i0.ɵɵtemplate(3, RecipeFiltersComponent_div_8_div_4_span_3_Template, 2, 0, "span", 7);
9835
+ i0.ɵɵtemplate(4, RecipeFiltersComponent_div_8_div_4_span_4_Template, 2, 0, "span", 7);
9836
+ i0.ɵɵtemplate(5, RecipeFiltersComponent_div_8_div_4_span_5_Template, 2, 0, "span", 7);
9836
9837
  i0.ɵɵelementEnd();
9837
9838
  }
9838
9839
  if (rf & 2) {
@@ -9849,22 +9850,24 @@
9849
9850
  i0.ɵɵproperty("ngIf", !difficulty_r6.text && difficulty_r6.name === "3");
9850
9851
  }
9851
9852
  }
9852
- function RecipeFiltersComponent_div_7_Template(rf, ctx) {
9853
+ function RecipeFiltersComponent_div_8_Template(rf, ctx) {
9853
9854
  if (rf & 1) {
9854
9855
  i0.ɵɵelementStart(0, "div");
9855
- i0.ɵɵelementStart(1, "div", 14);
9856
- i0.ɵɵi18n(2, 15);
9856
+ i0.ɵɵelementStart(1, "div", 16);
9857
+ i0.ɵɵelementStart(2, "span");
9858
+ i0.ɵɵi18n(3, 17);
9859
+ i0.ɵɵelementEnd();
9857
9860
  i0.ɵɵelementEnd();
9858
- i0.ɵɵtemplate(3, RecipeFiltersComponent_div_7_div_3_Template, 6, 5, "div", 16);
9861
+ i0.ɵɵtemplate(4, RecipeFiltersComponent_div_8_div_4_Template, 6, 5, "div", 18);
9859
9862
  i0.ɵɵelementEnd();
9860
9863
  }
9861
9864
  if (rf & 2) {
9862
9865
  var ctx_r0 = i0.ɵɵnextContext();
9863
- i0.ɵɵadvance(3);
9866
+ i0.ɵɵadvance(4);
9864
9867
  i0.ɵɵproperty("ngForOf", ctx_r0.filters.difficulty);
9865
9868
  }
9866
9869
  }
9867
- function RecipeFiltersComponent_div_9_div_3_span_2_Template(rf, ctx) {
9870
+ function RecipeFiltersComponent_div_10_div_4_span_2_Template(rf, ctx) {
9868
9871
  if (rf & 1) {
9869
9872
  i0.ɵɵelementStart(0, "span");
9870
9873
  i0.ɵɵtext(1);
@@ -9876,38 +9879,38 @@
9876
9879
  i0.ɵɵtextInterpolate(cost_r16.text);
9877
9880
  }
9878
9881
  }
9879
- function RecipeFiltersComponent_div_9_div_3_span_3_Template(rf, ctx) {
9882
+ function RecipeFiltersComponent_div_10_div_4_span_3_Template(rf, ctx) {
9880
9883
  if (rf & 1) {
9881
9884
  i0.ɵɵelementStart(0, "span");
9882
- i0.ɵɵi18n(1, 23);
9885
+ i0.ɵɵi18n(1, 25);
9883
9886
  i0.ɵɵelementEnd();
9884
9887
  }
9885
9888
  }
9886
- function RecipeFiltersComponent_div_9_div_3_span_4_Template(rf, ctx) {
9889
+ function RecipeFiltersComponent_div_10_div_4_span_4_Template(rf, ctx) {
9887
9890
  if (rf & 1) {
9888
9891
  i0.ɵɵelementStart(0, "span");
9889
- i0.ɵɵi18n(1, 24);
9892
+ i0.ɵɵi18n(1, 26);
9890
9893
  i0.ɵɵelementEnd();
9891
9894
  }
9892
9895
  }
9893
- function RecipeFiltersComponent_div_9_div_3_span_5_Template(rf, ctx) {
9896
+ function RecipeFiltersComponent_div_10_div_4_span_5_Template(rf, ctx) {
9894
9897
  if (rf & 1) {
9895
9898
  i0.ɵɵelementStart(0, "span");
9896
- i0.ɵɵi18n(1, 25);
9899
+ i0.ɵɵi18n(1, 27);
9897
9900
  i0.ɵɵelementEnd();
9898
9901
  }
9899
9902
  }
9900
- function RecipeFiltersComponent_div_9_div_3_Template(rf, ctx) {
9903
+ function RecipeFiltersComponent_div_10_div_4_Template(rf, ctx) {
9901
9904
  if (rf & 1) {
9902
9905
  var _r23_1 = i0.ɵɵgetCurrentView();
9903
- i0.ɵɵelementStart(0, "div", 17);
9904
- i0.ɵɵelementStart(1, "input", 18);
9905
- i0.ɵɵlistener("ngModelChange", function RecipeFiltersComponent_div_9_div_3_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r23_1); var ctx_r22 = i0.ɵɵnextContext(2); return ctx_r22.uncheckFiltersOnChange("cost"); })("ngModelChange", function RecipeFiltersComponent_div_9_div_3_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r23_1); var cost_r16 = ctx.$implicit; return cost_r16.value = $event; })("ngModelChange", function RecipeFiltersComponent_div_9_div_3_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r23_1); var ctx_r25 = i0.ɵɵnextContext(2); return ctx_r25.filtersChanged(); });
9906
+ i0.ɵɵelementStart(0, "div", 19);
9907
+ i0.ɵɵelementStart(1, "input", 20);
9908
+ i0.ɵɵlistener("ngModelChange", function RecipeFiltersComponent_div_10_div_4_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r23_1); var ctx_r22 = i0.ɵɵnextContext(2); return ctx_r22.uncheckFiltersOnChange("cost"); })("ngModelChange", function RecipeFiltersComponent_div_10_div_4_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r23_1); var cost_r16 = ctx.$implicit; return cost_r16.value = $event; })("ngModelChange", function RecipeFiltersComponent_div_10_div_4_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r23_1); var ctx_r25 = i0.ɵɵnextContext(2); return ctx_r25.filtersChanged(); });
9906
9909
  i0.ɵɵelementEnd();
9907
- i0.ɵɵtemplate(2, RecipeFiltersComponent_div_9_div_3_span_2_Template, 2, 1, "span", 7);
9908
- i0.ɵɵtemplate(3, RecipeFiltersComponent_div_9_div_3_span_3_Template, 2, 0, "span", 7);
9909
- i0.ɵɵtemplate(4, RecipeFiltersComponent_div_9_div_3_span_4_Template, 2, 0, "span", 7);
9910
- i0.ɵɵtemplate(5, RecipeFiltersComponent_div_9_div_3_span_5_Template, 2, 0, "span", 7);
9910
+ i0.ɵɵtemplate(2, RecipeFiltersComponent_div_10_div_4_span_2_Template, 2, 1, "span", 7);
9911
+ i0.ɵɵtemplate(3, RecipeFiltersComponent_div_10_div_4_span_3_Template, 2, 0, "span", 7);
9912
+ i0.ɵɵtemplate(4, RecipeFiltersComponent_div_10_div_4_span_4_Template, 2, 0, "span", 7);
9913
+ i0.ɵɵtemplate(5, RecipeFiltersComponent_div_10_div_4_span_5_Template, 2, 0, "span", 7);
9911
9914
  i0.ɵɵelementEnd();
9912
9915
  }
9913
9916
  if (rf & 2) {
@@ -9924,22 +9927,24 @@
9924
9927
  i0.ɵɵproperty("ngIf", !cost_r16.text && cost_r16.name === "10-1000");
9925
9928
  }
9926
9929
  }
9927
- function RecipeFiltersComponent_div_9_Template(rf, ctx) {
9930
+ function RecipeFiltersComponent_div_10_Template(rf, ctx) {
9928
9931
  if (rf & 1) {
9929
9932
  i0.ɵɵelementStart(0, "div");
9930
- i0.ɵɵelementStart(1, "div", 14);
9931
- i0.ɵɵi18n(2, 22);
9933
+ i0.ɵɵelementStart(1, "div", 16);
9934
+ i0.ɵɵelementStart(2, "span");
9935
+ i0.ɵɵi18n(3, 24);
9936
+ i0.ɵɵelementEnd();
9932
9937
  i0.ɵɵelementEnd();
9933
- i0.ɵɵtemplate(3, RecipeFiltersComponent_div_9_div_3_Template, 6, 5, "div", 16);
9938
+ i0.ɵɵtemplate(4, RecipeFiltersComponent_div_10_div_4_Template, 6, 5, "div", 18);
9934
9939
  i0.ɵɵelementEnd();
9935
9940
  }
9936
9941
  if (rf & 2) {
9937
9942
  var ctx_r1 = i0.ɵɵnextContext();
9938
- i0.ɵɵadvance(3);
9943
+ i0.ɵɵadvance(4);
9939
9944
  i0.ɵɵproperty("ngForOf", ctx_r1.filters.cost);
9940
9945
  }
9941
9946
  }
9942
- function RecipeFiltersComponent_div_11_div_3_span_2_Template(rf, ctx) {
9947
+ function RecipeFiltersComponent_div_12_div_4_span_2_Template(rf, ctx) {
9943
9948
  if (rf & 1) {
9944
9949
  i0.ɵɵelementStart(0, "span");
9945
9950
  i0.ɵɵtext(1);
@@ -9951,46 +9956,46 @@
9951
9956
  i0.ɵɵtextInterpolate(time_r27.text);
9952
9957
  }
9953
9958
  }
9954
- function RecipeFiltersComponent_div_11_div_3_span_3_Template(rf, ctx) {
9959
+ function RecipeFiltersComponent_div_12_div_4_span_3_Template(rf, ctx) {
9955
9960
  if (rf & 1) {
9956
9961
  i0.ɵɵelementStart(0, "span");
9957
- i0.ɵɵi18n(1, 27);
9962
+ i0.ɵɵi18n(1, 29);
9958
9963
  i0.ɵɵelementEnd();
9959
9964
  }
9960
9965
  }
9961
- function RecipeFiltersComponent_div_11_div_3_span_4_Template(rf, ctx) {
9966
+ function RecipeFiltersComponent_div_12_div_4_span_4_Template(rf, ctx) {
9962
9967
  if (rf & 1) {
9963
9968
  i0.ɵɵelementStart(0, "span");
9964
- i0.ɵɵi18n(1, 28);
9969
+ i0.ɵɵi18n(1, 30);
9965
9970
  i0.ɵɵelementEnd();
9966
9971
  }
9967
9972
  }
9968
- function RecipeFiltersComponent_div_11_div_3_span_5_Template(rf, ctx) {
9973
+ function RecipeFiltersComponent_div_12_div_4_span_5_Template(rf, ctx) {
9969
9974
  if (rf & 1) {
9970
9975
  i0.ɵɵelementStart(0, "span");
9971
- i0.ɵɵi18n(1, 29);
9976
+ i0.ɵɵi18n(1, 31);
9972
9977
  i0.ɵɵelementEnd();
9973
9978
  }
9974
9979
  }
9975
- function RecipeFiltersComponent_div_11_div_3_span_6_Template(rf, ctx) {
9980
+ function RecipeFiltersComponent_div_12_div_4_span_6_Template(rf, ctx) {
9976
9981
  if (rf & 1) {
9977
9982
  i0.ɵɵelementStart(0, "span");
9978
- i0.ɵɵi18n(1, 30);
9983
+ i0.ɵɵi18n(1, 32);
9979
9984
  i0.ɵɵelementEnd();
9980
9985
  }
9981
9986
  }
9982
- function RecipeFiltersComponent_div_11_div_3_Template(rf, ctx) {
9987
+ function RecipeFiltersComponent_div_12_div_4_Template(rf, ctx) {
9983
9988
  if (rf & 1) {
9984
9989
  var _r35_1 = i0.ɵɵgetCurrentView();
9985
- i0.ɵɵelementStart(0, "div", 17);
9986
- i0.ɵɵelementStart(1, "input", 18);
9987
- i0.ɵɵlistener("ngModelChange", function RecipeFiltersComponent_div_11_div_3_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r35_1); var ctx_r34 = i0.ɵɵnextContext(2); return ctx_r34.uncheckFiltersOnChange("time"); })("ngModelChange", function RecipeFiltersComponent_div_11_div_3_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r35_1); var time_r27 = ctx.$implicit; return time_r27.value = $event; })("ngModelChange", function RecipeFiltersComponent_div_11_div_3_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r35_1); var ctx_r37 = i0.ɵɵnextContext(2); return ctx_r37.filtersChanged(); });
9990
+ i0.ɵɵelementStart(0, "div", 19);
9991
+ i0.ɵɵelementStart(1, "input", 20);
9992
+ i0.ɵɵlistener("ngModelChange", function RecipeFiltersComponent_div_12_div_4_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r35_1); var ctx_r34 = i0.ɵɵnextContext(2); return ctx_r34.uncheckFiltersOnChange("time"); })("ngModelChange", function RecipeFiltersComponent_div_12_div_4_Template_input_ngModelChange_1_listener($event) { i0.ɵɵrestoreView(_r35_1); var time_r27 = ctx.$implicit; return time_r27.value = $event; })("ngModelChange", function RecipeFiltersComponent_div_12_div_4_Template_input_ngModelChange_1_listener() { i0.ɵɵrestoreView(_r35_1); var ctx_r37 = i0.ɵɵnextContext(2); return ctx_r37.filtersChanged(); });
9988
9993
  i0.ɵɵelementEnd();
9989
- i0.ɵɵtemplate(2, RecipeFiltersComponent_div_11_div_3_span_2_Template, 2, 1, "span", 7);
9990
- i0.ɵɵtemplate(3, RecipeFiltersComponent_div_11_div_3_span_3_Template, 2, 0, "span", 7);
9991
- i0.ɵɵtemplate(4, RecipeFiltersComponent_div_11_div_3_span_4_Template, 2, 0, "span", 7);
9992
- i0.ɵɵtemplate(5, RecipeFiltersComponent_div_11_div_3_span_5_Template, 2, 0, "span", 7);
9993
- i0.ɵɵtemplate(6, RecipeFiltersComponent_div_11_div_3_span_6_Template, 2, 0, "span", 7);
9994
+ i0.ɵɵtemplate(2, RecipeFiltersComponent_div_12_div_4_span_2_Template, 2, 1, "span", 7);
9995
+ i0.ɵɵtemplate(3, RecipeFiltersComponent_div_12_div_4_span_3_Template, 2, 0, "span", 7);
9996
+ i0.ɵɵtemplate(4, RecipeFiltersComponent_div_12_div_4_span_4_Template, 2, 0, "span", 7);
9997
+ i0.ɵɵtemplate(5, RecipeFiltersComponent_div_12_div_4_span_5_Template, 2, 0, "span", 7);
9998
+ i0.ɵɵtemplate(6, RecipeFiltersComponent_div_12_div_4_span_6_Template, 2, 0, "span", 7);
9994
9999
  i0.ɵɵelementEnd();
9995
10000
  }
9996
10001
  if (rf & 2) {
@@ -10009,75 +10014,82 @@
10009
10014
  i0.ɵɵproperty("ngIf", !time_r27.text && time_r27.name === "120");
10010
10015
  }
10011
10016
  }
10012
- function RecipeFiltersComponent_div_11_Template(rf, ctx) {
10017
+ function RecipeFiltersComponent_div_12_Template(rf, ctx) {
10013
10018
  if (rf & 1) {
10014
10019
  i0.ɵɵelementStart(0, "div");
10015
- i0.ɵɵelementStart(1, "div", 14);
10016
- i0.ɵɵi18n(2, 26);
10020
+ i0.ɵɵelementStart(1, "div", 16);
10021
+ i0.ɵɵelementStart(2, "span");
10022
+ i0.ɵɵi18n(3, 28);
10023
+ i0.ɵɵelementEnd();
10017
10024
  i0.ɵɵelementEnd();
10018
- i0.ɵɵtemplate(3, RecipeFiltersComponent_div_11_div_3_Template, 7, 6, "div", 16);
10025
+ i0.ɵɵtemplate(4, RecipeFiltersComponent_div_12_div_4_Template, 7, 6, "div", 18);
10019
10026
  i0.ɵɵelementEnd();
10020
10027
  }
10021
10028
  if (rf & 2) {
10022
10029
  var ctx_r2 = i0.ɵɵnextContext();
10023
- i0.ɵɵadvance(3);
10030
+ i0.ɵɵadvance(4);
10024
10031
  i0.ɵɵproperty("ngForOf", ctx_r2.filters.time);
10025
10032
  }
10026
10033
  }
10027
- function RecipeFiltersComponent_a_13_Template(rf, ctx) {
10028
- if (rf & 1) {
10029
- var _r39_1 = i0.ɵɵgetCurrentView();
10030
- i0.ɵɵelementStart(0, "a", 31);
10031
- i0.ɵɵlistener("click", function RecipeFiltersComponent_a_13_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r39_1); var ctx_r38 = i0.ɵɵnextContext(); return ctx_r38.reset(); });
10032
- i0.ɵɵi18n(1, 32);
10033
- i0.ɵɵelementEnd();
10034
- }
10035
- }
10036
- function RecipeFiltersComponent_div_21_span_7_Template(rf, ctx) {
10034
+ function RecipeFiltersComponent_div_13_span_8_Template(rf, ctx) {
10037
10035
  if (rf & 1) {
10038
10036
  i0.ɵɵelementStart(0, "span");
10039
10037
  i0.ɵɵi18n(1, 35);
10040
10038
  i0.ɵɵelementEnd();
10041
10039
  }
10042
10040
  }
10043
- function RecipeFiltersComponent_div_21_span_8_Template(rf, ctx) {
10041
+ function RecipeFiltersComponent_div_13_span_9_Template(rf, ctx) {
10044
10042
  if (rf & 1) {
10045
10043
  i0.ɵɵelementStart(0, "span");
10046
10044
  i0.ɵɵi18n(1, 36);
10047
10045
  i0.ɵɵelementEnd();
10048
10046
  }
10049
10047
  }
10050
- function RecipeFiltersComponent_div_21_Template(rf, ctx) {
10048
+ function RecipeFiltersComponent_div_13_Template(rf, ctx) {
10051
10049
  if (rf & 1) {
10052
- var _r43_1 = i0.ɵɵgetCurrentView();
10050
+ var _r41_1 = i0.ɵɵgetCurrentView();
10053
10051
  i0.ɵɵelementStart(0, "div");
10054
10052
  i0.ɵɵelement(1, "div", 8);
10055
10053
  i0.ɵɵelementStart(2, "div", 33);
10056
- i0.ɵɵelementStart(3, "div", 14);
10057
- i0.ɵɵi18n(4, 34);
10054
+ i0.ɵɵelementStart(3, "div", 16);
10055
+ i0.ɵɵelementStart(4, "span");
10056
+ i0.ɵɵi18n(5, 34);
10058
10057
  i0.ɵɵelementEnd();
10059
- i0.ɵɵelementStart(5, "div", 17);
10060
- i0.ɵɵelementStart(6, "input", 18);
10061
- i0.ɵɵlistener("ngModelChange", function RecipeFiltersComponent_div_21_Template_input_ngModelChange_6_listener($event) { i0.ɵɵrestoreView(_r43_1); var ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.updateUserPreference("has_children", $event); });
10062
10058
  i0.ɵɵelementEnd();
10063
- i0.ɵɵtemplate(7, RecipeFiltersComponent_div_21_span_7_Template, 2, 0, "span", 7);
10064
- i0.ɵɵtemplate(8, RecipeFiltersComponent_div_21_span_8_Template, 2, 0, "span", 7);
10059
+ i0.ɵɵelementStart(6, "div", 19);
10060
+ i0.ɵɵelementStart(7, "input", 20);
10061
+ i0.ɵɵlistener("ngModelChange", function RecipeFiltersComponent_div_13_Template_input_ngModelChange_7_listener($event) { i0.ɵɵrestoreView(_r41_1); var ctx_r40 = i0.ɵɵnextContext(); return ctx_r40.updateUserPreference("has_children", $event); });
10062
+ i0.ɵɵelementEnd();
10063
+ i0.ɵɵtemplate(8, RecipeFiltersComponent_div_13_span_8_Template, 2, 0, "span", 7);
10064
+ i0.ɵɵtemplate(9, RecipeFiltersComponent_div_13_span_9_Template, 2, 0, "span", 7);
10065
10065
  i0.ɵɵelementEnd();
10066
10066
  i0.ɵɵelementEnd();
10067
10067
  i0.ɵɵelementEnd();
10068
10068
  }
10069
10069
  if (rf & 2) {
10070
- var ctx_r4 = i0.ɵɵnextContext();
10071
- i0.ɵɵadvance(6);
10072
- i0.ɵɵproperty("ngModel", ctx_r4.hasChildren);
10070
+ var ctx_r3 = i0.ɵɵnextContext();
10071
+ i0.ɵɵadvance(7);
10072
+ i0.ɵɵproperty("ngModel", ctx_r3.hasChildren);
10073
10073
  i0.ɵɵadvance(1);
10074
- i0.ɵɵproperty("ngIf", ctx_r4.hasChildren);
10074
+ i0.ɵɵproperty("ngIf", ctx_r3.hasChildren);
10075
10075
  i0.ɵɵadvance(1);
10076
- i0.ɵɵproperty("ngIf", !ctx_r4.hasChildren);
10076
+ i0.ɵɵproperty("ngIf", !ctx_r3.hasChildren);
10077
+ }
10078
+ }
10079
+ function RecipeFiltersComponent_a_17_Template(rf, ctx) {
10080
+ if (rf & 1) {
10081
+ var _r43_1 = i0.ɵɵgetCurrentView();
10082
+ i0.ɵɵelementStart(0, "a", 37);
10083
+ i0.ɵɵlistener("click", function RecipeFiltersComponent_a_17_Template_a_click_0_listener() { i0.ɵɵrestoreView(_r43_1); var ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.reset(); });
10084
+ i0.ɵɵelementStart(1, "span");
10085
+ i0.ɵɵi18n(2, 38);
10086
+ i0.ɵɵelementEnd();
10087
+ i0.ɵɵelementEnd();
10077
10088
  }
10078
10089
  }
10079
10090
  var _c40 = function (a0, a1) { return { "filter-collapsed": a0, "right": a1 }; };
10080
- var _c41 = function (a0) { return { "filter-collapsed": a0 }; };
10091
+ var _c41 = function (a0) { return { "some-filters-set": a0 }; };
10092
+ var _c42 = function (a0) { return { "filter-collapsed": a0 }; };
10081
10093
  var RecipeFiltersComponent = /** @class */ (function (_super) {
10082
10094
  __extends(RecipeFiltersComponent, _super);
10083
10095
  function RecipeFiltersComponent(cdr, mediaMatcher, usersService, context, recipesService, analyticsService) {
@@ -10225,14 +10237,14 @@
10225
10237
  return RecipeFiltersComponent;
10226
10238
  }(EventTracerComponent));
10227
10239
  RecipeFiltersComponent.ɵfac = function RecipeFiltersComponent_Factory(t) { return new (t || RecipeFiltersComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i2.MediaMatcher), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(AnalyticsService)); };
10228
- RecipeFiltersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeFiltersComponent, selectors: [["ng-miam-recipe-filters"]], inputs: { filters: "filters", filterToRemove: "filterToRemove", isFilterCollapsed: "isFilterCollapsed", position: "position" }, outputs: { filterChanged: "filterChanged", filterCollapsed: "filterCollapsed", preferencesChanged: "preferencesChanged" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 23, vars: 16, consts: function () {
10240
+ RecipeFiltersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeFiltersComponent, selectors: [["ng-miam-recipe-filters"]], inputs: { filters: "filters", filterToRemove: "filterToRemove", isFilterCollapsed: "isFilterCollapsed", position: "position" }, outputs: { filterChanged: "filterChanged", filterCollapsed: "filterCollapsed", preferencesChanged: "preferencesChanged" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 26, vars: 22, consts: function () {
10229
10241
  var i18n_0;
10230
10242
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
10231
- var MSG_EXTERNAL_2760418062889315315$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_1 = goog.getMsg(" Affiner ma s\u00E9lection ");
10232
- i18n_0 = MSG_EXTERNAL_2760418062889315315$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_1;
10243
+ var MSG_EXTERNAL_5449168122747319631$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_1 = goog.getMsg("Affiner ma s\u00E9lection");
10244
+ i18n_0 = MSG_EXTERNAL_5449168122747319631$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_1;
10233
10245
  }
10234
10246
  else {
10235
- i18n_0 = $localize(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject([":\u241Fd5ab86659aa813e1234665d4d19ce722e18ce8d6\u241F2760418062889315315: Affiner ma s\u00E9lection "], [":\u241Fd5ab86659aa813e1234665d4d19ce722e18ce8d6\u241F2760418062889315315: Affiner ma s\u00E9lection "])));
10247
+ i18n_0 = $localize(templateObject_1$5 || (templateObject_1$5 = __makeTemplateObject([":\u241Fcb566c11ab51c1db6ae00f9c28ed67cf6a715955\u241F5449168122747319631:Affiner ma s\u00E9lection"], [":\u241Fcb566c11ab51c1db6ae00f9c28ed67cf6a715955\u241F5449168122747319631:Affiner ma s\u00E9lection"])));
10236
10248
  }
10237
10249
  var i18n_2;
10238
10250
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10356,37 +10368,37 @@
10356
10368
  }
10357
10369
  var i18n_32;
10358
10370
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
10359
- var MSG_EXTERNAL_932621373027877648$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS__33 = goog.getMsg("Retirer tous les filtres");
10360
- i18n_32 = MSG_EXTERNAL_932621373027877648$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS__33;
10371
+ var MSG_EXTERNAL_7018050884147735331$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS__33 = goog.getMsg("Pr\u00E9f\u00E9rences");
10372
+ i18n_32 = MSG_EXTERNAL_7018050884147735331$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS__33;
10361
10373
  }
10362
10374
  else {
10363
- i18n_32 = $localize(templateObject_17 || (templateObject_17 = __makeTemplateObject([":\u241F538c7e66056b4063e1721b5b0b4b395f0d53237d\u241F932621373027877648:Retirer tous les filtres"], [":\u241F538c7e66056b4063e1721b5b0b4b395f0d53237d\u241F932621373027877648:Retirer tous les filtres"])));
10375
+ i18n_32 = $localize(templateObject_17 || (templateObject_17 = __makeTemplateObject([":\u241F9c1ee9470393e19cd9dc0dac8c351c7115e89332\u241F7018050884147735331:Pr\u00E9f\u00E9rences"], [":\u241F9c1ee9470393e19cd9dc0dac8c351c7115e89332\u241F7018050884147735331:Pr\u00E9f\u00E9rences"])));
10364
10376
  }
10365
10377
  var i18n_34;
10366
10378
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
10367
- var MSG_EXTERNAL_7018050884147735331$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS__35 = goog.getMsg("Pr\u00E9f\u00E9rences");
10368
- i18n_34 = MSG_EXTERNAL_7018050884147735331$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS__35;
10379
+ var MSG_EXTERNAL_1902718123761941238$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS___35 = goog.getMsg("J'ai des enfants");
10380
+ i18n_34 = MSG_EXTERNAL_1902718123761941238$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS___35;
10369
10381
  }
10370
10382
  else {
10371
- i18n_34 = $localize(templateObject_18 || (templateObject_18 = __makeTemplateObject([":\u241F9c1ee9470393e19cd9dc0dac8c351c7115e89332\u241F7018050884147735331:Pr\u00E9f\u00E9rences"], [":\u241F9c1ee9470393e19cd9dc0dac8c351c7115e89332\u241F7018050884147735331:Pr\u00E9f\u00E9rences"])));
10383
+ i18n_34 = $localize(templateObject_18 || (templateObject_18 = __makeTemplateObject([":\u241Fa43e94d3e67152b815c5dca4d614a161d60958f5\u241F1902718123761941238:J'ai des enfants"], [":\u241Fa43e94d3e67152b815c5dca4d614a161d60958f5\u241F1902718123761941238:J'ai des enfants"])));
10372
10384
  }
10373
10385
  var i18n_36;
10374
10386
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
10375
- var MSG_EXTERNAL_1902718123761941238$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS___37 = goog.getMsg("J'ai des enfants");
10376
- i18n_36 = MSG_EXTERNAL_1902718123761941238$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS___37;
10387
+ var MSG_EXTERNAL_2335686793709504437$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS___37 = goog.getMsg("Je n'ai pas d'enfant");
10388
+ i18n_36 = MSG_EXTERNAL_2335686793709504437$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS___37;
10377
10389
  }
10378
10390
  else {
10379
- i18n_36 = $localize(templateObject_19 || (templateObject_19 = __makeTemplateObject([":\u241Fa43e94d3e67152b815c5dca4d614a161d60958f5\u241F1902718123761941238:J'ai des enfants"], [":\u241Fa43e94d3e67152b815c5dca4d614a161d60958f5\u241F1902718123761941238:J'ai des enfants"])));
10391
+ i18n_36 = $localize(templateObject_19 || (templateObject_19 = __makeTemplateObject([":\u241Facf731327e3f519e8f334e0d45bdb7d30ef00a27\u241F2335686793709504437:Je n'ai pas d'enfant"], [":\u241Facf731327e3f519e8f334e0d45bdb7d30ef00a27\u241F2335686793709504437:Je n'ai pas d'enfant"])));
10380
10392
  }
10381
10393
  var i18n_38;
10382
10394
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
10383
- var MSG_EXTERNAL_2335686793709504437$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS___39 = goog.getMsg("Je n'ai pas d'enfant");
10384
- i18n_38 = MSG_EXTERNAL_2335686793709504437$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS___39;
10395
+ var MSG_EXTERNAL_932621373027877648$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS__39 = goog.getMsg("Retirer tous les filtres");
10396
+ i18n_38 = MSG_EXTERNAL_932621373027877648$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS__39;
10385
10397
  }
10386
10398
  else {
10387
- i18n_38 = $localize(templateObject_20 || (templateObject_20 = __makeTemplateObject([":\u241Facf731327e3f519e8f334e0d45bdb7d30ef00a27\u241F2335686793709504437:Je n'ai pas d'enfant"], [":\u241Facf731327e3f519e8f334e0d45bdb7d30ef00a27\u241F2335686793709504437:Je n'ai pas d'enfant"])));
10399
+ i18n_38 = $localize(templateObject_20 || (templateObject_20 = __makeTemplateObject([":\u241F538c7e66056b4063e1721b5b0b4b395f0d53237d\u241F932621373027877648:Retirer tous les filtres"], [":\u241F538c7e66056b4063e1721b5b0b4b395f0d53237d\u241F932621373027877648:Retirer tous les filtres"])));
10388
10400
  }
10389
- return [[1, "miam-recipe-filters", 3, "ngClass"], [1, "miam-recipe-filters__toggle", "m-button-primary", "reverse", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], [1, "miam-recipe-filters__content"], [1, "miam-recipe-filters__head"], i18n_0, [1, "miam-recipe-filters__container", 3, "ngClass"], [4, "ngIf"], [1, "miam-recipe-filters__separator"], [1, "miam-recipe-filters__remove"], [3, "click", 4, "ngIf"], [1, "m-button-primary", "miam-recipe-filters__confirm", 3, "click"], i18n_2, i18n_4, [1, "miam-recipe-filters__title"], i18n_6, ["class", "miam-recipe-filters__choice", 4, "ngFor", "ngForOf"], [1, "miam-recipe-filters__choice"], ["type", "checkbox", 3, "ngModel", "ngModelChange"], i18n_8, i18n_10, i18n_12, i18n_14, i18n_16, i18n_18, i18n_20, i18n_22, i18n_24, i18n_26, i18n_28, i18n_30, [3, "click"], i18n_32, [1, "miam-recipe-filters__preferences"], i18n_34, i18n_36, i18n_38];
10401
+ return [[1, "miam-recipe-filters", 3, "ngClass"], [1, "miam-recipe-filters__toggle", "m-button-primary", "reverse", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], [1, "miam-recipe-filters__content", 3, "ngClass"], [1, "miam-recipe-filters__head"], i18n_0, [1, "miam-recipe-filters__container", 3, "ngClass"], [4, "ngIf"], [1, "miam-recipe-filters__separator"], [1, "miam-recipe-filters__ctas"], [1, "miam-recipe-filters__remove"], [3, "click", 4, "ngIf"], [1, "m-button-primary", "miam-recipe-filters__confirm", 3, "click"], i18n_2, i18n_4, [1, "miam-recipe-filters__overlay", 3, "ngClass", "click"], [1, "miam-recipe-filters__title"], i18n_6, ["class", "miam-recipe-filters__choice", 4, "ngFor", "ngForOf"], [1, "miam-recipe-filters__choice"], ["type", "checkbox", 3, "ngModel", "ngModelChange"], i18n_8, i18n_10, i18n_12, i18n_14, i18n_16, i18n_18, i18n_20, i18n_22, i18n_24, i18n_26, i18n_28, i18n_30, [1, "miam-recipe-filters__preferences"], i18n_32, i18n_34, i18n_36, [3, "click"], i18n_38];
10390
10402
  }, template: function RecipeFiltersComponent_Template(rf, ctx) {
10391
10403
  if (rf & 1) {
10392
10404
  i0.ɵɵelementStart(0, "div", 0);
@@ -10396,55 +10408,66 @@
10396
10408
  i0.ɵɵelementEnd();
10397
10409
  i0.ɵɵelementStart(3, "div", 3);
10398
10410
  i0.ɵɵelementStart(4, "div", 4);
10399
- i0.ɵɵi18n(5, 5);
10411
+ i0.ɵɵelementStart(5, "span");
10412
+ i0.ɵɵi18n(6, 5);
10400
10413
  i0.ɵɵelementEnd();
10401
- i0.ɵɵelementStart(6, "div", 6);
10402
- i0.ɵɵtemplate(7, RecipeFiltersComponent_div_7_Template, 4, 1, "div", 7);
10403
- i0.ɵɵelement(8, "div", 8);
10404
- i0.ɵɵtemplate(9, RecipeFiltersComponent_div_9_Template, 4, 1, "div", 7);
10405
- i0.ɵɵelement(10, "div", 8);
10406
- i0.ɵɵtemplate(11, RecipeFiltersComponent_div_11_Template, 4, 1, "div", 7);
10407
- i0.ɵɵelementStart(12, "div", 9);
10408
- i0.ɵɵtemplate(13, RecipeFiltersComponent_a_13_Template, 2, 0, "a", 10);
10409
- i0.ɵɵelementEnd();
10410
- i0.ɵɵelementStart(14, "button", 11);
10411
- i0.ɵɵlistener("click", function RecipeFiltersComponent_Template_button_click_14_listener() { return ctx.confirm(); });
10412
- i0.ɵɵelementStart(15, "span");
10413
- i0.ɵɵi18n(16, 12);
10414
10414
  i0.ɵɵelementEnd();
10415
- i0.ɵɵelementStart(17, "span");
10416
- i0.ɵɵtext(18);
10415
+ i0.ɵɵelementStart(7, "div", 6);
10416
+ i0.ɵɵtemplate(8, RecipeFiltersComponent_div_8_Template, 5, 1, "div", 7);
10417
+ i0.ɵɵelement(9, "div", 8);
10418
+ i0.ɵɵtemplate(10, RecipeFiltersComponent_div_10_Template, 5, 1, "div", 7);
10419
+ i0.ɵɵelement(11, "div", 8);
10420
+ i0.ɵɵtemplate(12, RecipeFiltersComponent_div_12_Template, 5, 1, "div", 7);
10421
+ i0.ɵɵtemplate(13, RecipeFiltersComponent_div_13_Template, 10, 3, "div", 7);
10422
+ i0.ɵɵpipe(14, "async");
10423
+ i0.ɵɵelementEnd();
10424
+ i0.ɵɵelementStart(15, "div", 9);
10425
+ i0.ɵɵelementStart(16, "div", 10);
10426
+ i0.ɵɵtemplate(17, RecipeFiltersComponent_a_17_Template, 3, 0, "a", 11);
10417
10427
  i0.ɵɵelementEnd();
10428
+ i0.ɵɵelementStart(18, "button", 12);
10429
+ i0.ɵɵlistener("click", function RecipeFiltersComponent_Template_button_click_18_listener() { return ctx.confirm(); });
10418
10430
  i0.ɵɵelementStart(19, "span");
10419
10431
  i0.ɵɵi18n(20, 13);
10420
10432
  i0.ɵɵelementEnd();
10433
+ i0.ɵɵelementStart(21, "span");
10434
+ i0.ɵɵtext(22);
10435
+ i0.ɵɵelementEnd();
10436
+ i0.ɵɵelementStart(23, "span");
10437
+ i0.ɵɵi18n(24, 14);
10438
+ i0.ɵɵelementEnd();
10439
+ i0.ɵɵelementEnd();
10421
10440
  i0.ɵɵelementEnd();
10422
- i0.ɵɵtemplate(21, RecipeFiltersComponent_div_21_Template, 9, 3, "div", 7);
10423
- i0.ɵɵpipe(22, "async");
10424
10441
  i0.ɵɵelementEnd();
10425
10442
  i0.ɵɵelementEnd();
10443
+ i0.ɵɵelementStart(25, "div", 15);
10444
+ i0.ɵɵlistener("click", function RecipeFiltersComponent_Template_div_click_25_listener() { return ctx.toggleFilter(); });
10426
10445
  i0.ɵɵelementEnd();
10427
10446
  }
10428
10447
  if (rf & 2) {
10429
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(11, _c40, ctx.isFilterCollapsed, ctx.position == "right"));
10448
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(13, _c40, ctx.isFilterCollapsed, ctx.position == "right"));
10430
10449
  i0.ɵɵadvance(2);
10431
10450
  i0.ɵɵproperty("iconName", ctx.icon.ChevronDown);
10451
+ i0.ɵɵadvance(1);
10452
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c41, ctx.areSomeFiltersSet()));
10432
10453
  i0.ɵɵadvance(4);
10433
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c41, ctx.isFilterCollapsed));
10454
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c42, ctx.isFilterCollapsed));
10434
10455
  i0.ɵɵadvance(1);
10435
10456
  i0.ɵɵproperty("ngIf", ctx.filters.difficulty);
10436
10457
  i0.ɵɵadvance(2);
10437
10458
  i0.ɵɵproperty("ngIf", ctx.filters.cost);
10438
10459
  i0.ɵɵadvance(2);
10439
10460
  i0.ɵɵproperty("ngIf", ctx.filters.time);
10440
- i0.ɵɵadvance(2);
10461
+ i0.ɵɵadvance(1);
10462
+ i0.ɵɵproperty("ngIf", ctx.isLogged && i0.ɵɵpipeBind1(14, 11, ctx.usersService.preferencesActivated$));
10463
+ i0.ɵɵadvance(4);
10441
10464
  i0.ɵɵproperty("ngIf", ctx.areSomeFiltersSet());
10442
10465
  i0.ɵɵadvance(5);
10443
10466
  i0.ɵɵtextInterpolate(ctx.recipesCount !== undefined ? ctx.recipesCount + " " : "");
10444
10467
  i0.ɵɵadvance(3);
10445
- i0.ɵɵproperty("ngIf", ctx.isLogged && i0.ɵɵpipeBind1(22, 9, ctx.usersService.preferencesActivated$));
10468
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c42, ctx.isFilterCollapsed));
10446
10469
  }
10447
- }, directives: [i2$1.NgClass, IconComponent, i2$1.NgIf, i2$1.NgForOf, i3.CheckboxControlValueAccessor, i3.NgControlStatus, i3.NgModel], pipes: [i2$1.AsyncPipe], styles: [".cal-month-view .cal-header{font-weight:bolder;text-align:center}.cal-month-view .cal-header .cal-cell{display:block;overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.cal-month-view .cal-days{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{flex:1;min-height:78px}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{align-items:stretch;display:flex;flex:1;flex-direction:column;float:left}.cal-month-view .cal-cell .cal-event{pointer-events:all!important}.cal-month-view .cal-day-cell{min-height:100px}@media (-ms-high-contrast:none){.cal-month-view .cal-day-cell{display:block}}.cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid}.cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid}.cal-month-view .cal-day-badge{border-radius:10px;display:inline-block;font-size:12px;font-weight:700;line-height:1;margin-left:10px;margin-top:18px;min-width:10px;padding:3px 7px;text-align:center;vertical-align:middle;white-space:nowrap}.cal-month-view .cal-day-number{float:right;font-size:1.2em;font-weight:400;margin-bottom:10px;margin-right:15px;margin-top:15px;opacity:.5}.cal-month-view .cal-events{align-items:flex-end;display:flex;flex:1;flex-wrap:wrap;line-height:10px;margin:3px}.cal-month-view .cal-event{border-radius:50%;display:inline-block;height:10px;margin:2px;width:10px}.cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer}.cal-month-view .cal-day-cell.cal-out-month .cal-day-number{cursor:default;opacity:.1}.cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em}.cal-month-view .cal-open-day-events{padding:15px}.cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px}.cal-month-view .cal-out-month .cal-day-badge,.cal-month-view .cal-out-month .cal-event{opacity:.3}.cal-month-view .cal-draggable{cursor:move}.cal-month-view .cal-drag-active *{pointer-events:none}.cal-month-view .cal-event-title{cursor:pointer}.cal-month-view .cal-event-title:hover{text-decoration:underline}.cal-month-view{background-color:#fff}.cal-month-view .cal-cell-row:hover{background-color:#fafafa}.cal-month-view .cal-cell-row .cal-cell:hover,.cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed}.cal-month-view .cal-days{border-color:#e1e1e1}.cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1}.cal-month-view .cal-days .cal-cell-row{border-bottom-color:#e1e1e1}.cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff}.cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff}.cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000}.cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7}.cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important}.cal-month-view .cal-open-day-events{background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5);color:#fff}.cal-week-view *{box-sizing:border-box}.cal-week-view .cal-day-headers{border:1px solid;display:flex;padding-left:70px}.cal-week-view .cal-day-headers .cal-header{flex:1;padding:5px;text-align:center}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid}.cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid}.cal-week-view .cal-day-headers span{font-weight:400;opacity:.5}.cal-week-view .cal-day-column{border-left:1px solid;flex-grow:1}.cal-week-view .cal-event{border:1px solid;font-size:12px}.cal-week-view .cal-time-label-column{height:100%;width:70px}.cal-week-view .cal-current-time-marker{height:2px;position:absolute;width:100%;z-index:2}.cal-week-view .cal-all-day-events{border-bottom:3px solid;border-left:1px solid;border-right:1px solid;border-top:0;padding-top:3px;position:relative}.cal-week-view .cal-all-day-events .cal-day-columns{display:flex;height:100%;position:absolute;top:0;width:100%;z-index:0}.cal-week-view .cal-all-day-events .cal-events-row{height:31px;margin-left:70px;position:relative}.cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute}.cal-week-view .cal-all-day-events .cal-event-container.resize-active{pointer-events:none;z-index:1}.cal-week-view .cal-all-day-events .cal-event{height:28px;line-height:28px;margin-left:2px;margin-right:2px;padding:0 5px}.cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-bottom-left-radius:5px;border-top-left-radius:5px}.cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-bottom-right-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-all-day-events .cal-time-label-column{align-items:center;display:flex;font-size:14px;justify-content:center}.cal-week-view .cal-all-day-events .cal-resize-handle{cursor:col-resize;height:100%;position:absolute;top:0;width:6px}.cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0}.cal-week-view .cal-event,.cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-week-view .cal-drag-active{pointer-events:none;z-index:1}.cal-week-view .cal-drag-active *{pointer-events:none}.cal-week-view .cal-time-events{border:1px solid;border-top:0;display:flex;position:relative}.cal-week-view .cal-time-events .cal-day-columns{display:flex;flex-grow:1}.cal-week-view .cal-time-events .cal-day-column,.cal-week-view .cal-time-events .cal-events-container{position:relative}.cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1}.cal-week-view .cal-time-events .cal-event{height:calc(100% - 2px);line-height:25px;margin:1px;padding:0 5px;width:calc(100% - 2px)}.cal-week-view .cal-time-events .cal-resize-handle{cursor:row-resize;height:4px;position:absolute;width:100%}.cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0}.cal-week-view .cal-hour-segment{position:relative}.cal-week-view .cal-hour-segment:after{content:\"\\00a0\"}.cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer}.cal-week-view .cal-draggable{cursor:move}.cal-week-view .cal-hour-segment,.cal-week-view mwl-calendar-week-view-hour-segment{display:block}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom:thin dashed}.cal-week-view .cal-time{font-weight:700;padding-top:5px;text-align:center;width:70px}.cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none}.cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.cal-week-view{background-color:#fff;border-top:1px solid #e1e1e1}.cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-drag-over,.cal-week-view .cal-day-headers .cal-header:hover{background-color:#ededed}.cal-week-view .cal-day-column{border-left-color:#e1e1e1}.cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff}.cal-week-view .cal-all-day-events{border-color:#e1e1e1}.cal-week-view .cal-header.cal-today{background-color:#e8fde7}.cal-week-view .cal-header.cal-weekend span{color:#8b0000}.cal-week-view .cal-time-events{border-color:#e1e1e1}.cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed}.cal-week-view .cal-hour-odd{background-color:#fafafa}.cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1}.cal-week-view .cal-current-time-marker{background-color:#ea4334}.cal-day-view mwl-calendar-week-view-header{display:none}.cal-day-view .cal-events-container{margin-left:70px}.cal-day-view .cal-day-column{border-left:0}.cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)}.cal-tooltip{display:block;font-size:11px;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;opacity:.9;position:absolute;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:break-word;z-index:1070}.cal-tooltip.cal-tooltip-top{margin-top:-3px;padding:5px 0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-width:5px 5px 0;bottom:0;left:50%;margin-left:-5px}.cal-tooltip.cal-tooltip-right{margin-left:3px;padding:0 5px}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-width:5px 5px 5px 0;left:0;margin-top:-5px;top:50%}.cal-tooltip.cal-tooltip-bottom{margin-top:3px;padding:5px 0}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-width:0 5px 5px;left:50%;margin-left:-5px;top:0}.cal-tooltip.cal-tooltip-left{margin-left:-3px;padding:0 5px}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-width:5px 0 5px 5px;margin-top:-5px;right:0;top:50%}.cal-tooltip-inner{border-radius:.25rem;max-width:200px;padding:3px 8px;text-align:center}.cal-tooltip-arrow{border-color:transparent;border-style:solid;height:0;position:absolute;width:0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000}.cal-tooltip-inner{background-color:#000;color:#fff}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{-moz-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;align-items:center;border-radius:var(--m-button-radius);cursor:pointer;display:flex;font-size:var(--m-button-text-size);font-weight:var(--m-button-text-weight);justify-content:center;line-height:var(--m-button-text-height);outline:0;padding:var(--m-button-padding);user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-primary:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-primary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-primary.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-primary.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-secondary{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-secondary:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-secondary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-secondary.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-secondary.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-grey{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-grey:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-grey.reverse{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-grey.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-grey.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-input{align-items:center;border:1px solid var(--m-color-grey06);border-radius:5px;display:flex;justify-content:space-between;margin-top:16px;max-width:320px;min-width:200px;outline:none;padding:8px 16px}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-flex-column{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin:auto}.m-default-card{background-color:var(--m-color-unpure-white);border-radius:8px;box-shadow:var(--m-shadow-small);padding:16px}@media (max-width:1023px){.m-default-card{margin-bottom:8px;padding:8px}}#toast-container>div{opacity:.95!important}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-gap:var(--miam-button-gap,10px);--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-height:var(--miam-button-text-height,calc(var(--m-button-text-size)*1.5));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-white:var(--miam-color-white,#fafcfe);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-small:var(--miam-font-size-small,14px);--m-loader-size:var(--miam-loader-sizes,40px);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-progress-tracker-background-color:var(--miam-progress-tracker-background-color,var(--m-color-grey));--m-progress-tracker-color:var(--miam-progress-tracker-color,var(--m-color-primary));--m-progress-tracker-danger-color:var(--miam-progress-tracker-danger-color,var(--m-color-danger));--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0);--m-z-index-toaster:var(--miam-z-index-toaster,6002)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){color:var(--m-color-slate);font-family:Work Sans;font-size:var(--m-font-size-medium);font-style:normal;font-weight:500;line-height:24px}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-size:40px;font-weight:700;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{-webkit-animation:none!important;-webkit-transition:none!important;animation:none!important;transition:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}.miam-recipe-filters{left:0;position:absolute;top:0;z-index:calc(var(--m-z-index-modal-overlay) - 1)}.miam-recipe-filters.filter-collapsed{display:none}.miam-recipe-filters.right{border-left:1px solid #ccc;border-right:0;box-shadow:0 -8px 28px 0 rgba(0,0,0,.07058823529411765);left:unset;right:-1px}.miam-recipe-filters.right .m-button-primary.reverse.miam-recipe-filters__toggle{border-bottom-left-radius:var(--m-border-radius-pill);border-bottom-right-radius:0;border-right:0!important;border-top-left-radius:var(--m-border-radius-pill);border-top-right-radius:0;left:unset;padding:12px 4px 12px 12px;right:320px}.miam-recipe-filters.right .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container{transform:rotate(-90deg)}.miam-recipe-filters:not(.right) .m-button-primary.reverse.miam-recipe-filters__toggle{border-left:0!important}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle{border-bottom-left-radius:0;border-bottom-right-radius:var(--m-border-radius-pill);border-top-left-radius:0;border-top-right-radius:var(--m-border-radius-pill);left:320px;padding:12px 12px 12px 4px;position:absolute;top:41px}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle:hover ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-white)}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container{transform:rotate(90deg)}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container svg path{fill:none}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-primary)}.miam-recipe-filters .miam-recipe-filters__content{background-color:var(--m-color-white);border-bottom:1px solid #ccc;border-right:1px solid #ccc;box-shadow:0 8px 28px 0 rgba(0,0,0,.07058823529411765);height:100%;overflow-y:auto;padding:24px;width:320px}.miam-recipe-filters .miam-recipe-filters__head{color:var(--m-color-primary);font-size:21px;font-weight:700;line-height:24px;margin-bottom:48px}.miam-recipe-filters .miam-recipe-filters__container{opacity:1;transition:opacity .25s cubic-bezier(0,0,.2,1)}.miam-recipe-filters .miam-recipe-filters__container.filter-collapsed{opacity:0;transition:none}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filter__details{align-items:center;background-color:var(--m-color-grey);display:flex;flex-flow:row wrap;margin-bottom:24px;min-height:10vh;padding-top:8px;position:-webkit-sticky;position:sticky;top:0;width:100%}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filter__details .miam-recipe-filter__detail__title{margin-bottom:16px;padding:0 24px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filter__details .miam-recipe-filter__detail{align-items:center;border:1px solid var(--m-color-primary);border-radius:4px;display:flex;margin:0 0 16px 8px;padding:8px 16px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filter__details .miam-recipe-filter__detail .miam-recipe-filter__detail__icon .icon-container{margin:0 0 0 16px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__title{font-size:16px;font-weight:700;line-height:20px;margin-bottom:16px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__choice{display:flex;font-size:16px;line-height:20px;margin-bottom:16px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__choice:first-letter{text-transform:capitalize}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__choice input{cursor:pointer;height:20px;margin:0 12px 0 0;width:20px}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__separator{background-color:#e9e9e9;height:1px;margin:24px 0;width:100%}.miam-recipe-filters .miam-recipe-filters__container .miam-recipe-filters__remove{cursor:pointer;margin:40px 0 24px;text-align:center}.miam-recipe-filters .miam-recipe-filters__container .m-button-primary.miam-recipe-filters__confirm{border-radius:0;font-size:16px;font-weight:700;height:60px;width:100%}.miam-recipe-filters .miam-recipe-filters__container .m-button-primary.miam-recipe-filters__confirm span{margin:0 2px}@media (max-width:607px){.miam-recipe-filters{bottom:-1px;left:-1px!important;position:fixed;right:-1px!important;top:-1px;z-index:var(--m-z-index-modal)}.miam-recipe-filters .miam-recipe-filters__toggle{left:unset!important;right:8px!important;top:11px!important;z-index:calc(var(--m-z-index-modal) + 1px)}.miam-recipe-filters:not(.right) .miam-recipe-filters__toggle{transform:rotate(180deg)}.miam-recipe-filters .miam-recipe-filters__content{width:100%}}"], encapsulation: 2, changeDetection: 0 });
10470
+ }, directives: [i2$1.NgClass, IconComponent, i2$1.NgIf, i2$1.NgForOf, i3.CheckboxControlValueAccessor, i3.NgControlStatus, i3.NgModel], pipes: [i2$1.AsyncPipe], styles: [".cal-month-view .cal-header{font-weight:bolder;text-align:center}.cal-month-view .cal-header .cal-cell{display:block;overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.cal-month-view .cal-days{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{flex:1;min-height:78px}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{align-items:stretch;display:flex;flex:1;flex-direction:column;float:left}.cal-month-view .cal-cell .cal-event{pointer-events:all!important}.cal-month-view .cal-day-cell{min-height:100px}@media (-ms-high-contrast:none){.cal-month-view .cal-day-cell{display:block}}.cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid}.cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid}.cal-month-view .cal-day-badge{border-radius:10px;display:inline-block;font-size:12px;font-weight:700;line-height:1;margin-left:10px;margin-top:18px;min-width:10px;padding:3px 7px;text-align:center;vertical-align:middle;white-space:nowrap}.cal-month-view .cal-day-number{float:right;font-size:1.2em;font-weight:400;margin-bottom:10px;margin-right:15px;margin-top:15px;opacity:.5}.cal-month-view .cal-events{align-items:flex-end;display:flex;flex:1;flex-wrap:wrap;line-height:10px;margin:3px}.cal-month-view .cal-event{border-radius:50%;display:inline-block;height:10px;margin:2px;width:10px}.cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer}.cal-month-view .cal-day-cell.cal-out-month .cal-day-number{cursor:default;opacity:.1}.cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em}.cal-month-view .cal-open-day-events{padding:15px}.cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px}.cal-month-view .cal-out-month .cal-day-badge,.cal-month-view .cal-out-month .cal-event{opacity:.3}.cal-month-view .cal-draggable{cursor:move}.cal-month-view .cal-drag-active *{pointer-events:none}.cal-month-view .cal-event-title{cursor:pointer}.cal-month-view .cal-event-title:hover{text-decoration:underline}.cal-month-view{background-color:#fff}.cal-month-view .cal-cell-row:hover{background-color:#fafafa}.cal-month-view .cal-cell-row .cal-cell:hover,.cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed}.cal-month-view .cal-days{border-color:#e1e1e1}.cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1}.cal-month-view .cal-days .cal-cell-row{border-bottom-color:#e1e1e1}.cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff}.cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff}.cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000}.cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7}.cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important}.cal-month-view .cal-open-day-events{background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5);color:#fff}.cal-week-view *{box-sizing:border-box}.cal-week-view .cal-day-headers{border:1px solid;display:flex;padding-left:70px}.cal-week-view .cal-day-headers .cal-header{flex:1;padding:5px;text-align:center}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid}.cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid}.cal-week-view .cal-day-headers span{font-weight:400;opacity:.5}.cal-week-view .cal-day-column{border-left:1px solid;flex-grow:1}.cal-week-view .cal-event{border:1px solid;font-size:12px}.cal-week-view .cal-time-label-column{height:100%;width:70px}.cal-week-view .cal-current-time-marker{height:2px;position:absolute;width:100%;z-index:2}.cal-week-view .cal-all-day-events{border-bottom:3px solid;border-left:1px solid;border-right:1px solid;border-top:0;padding-top:3px;position:relative}.cal-week-view .cal-all-day-events .cal-day-columns{display:flex;height:100%;position:absolute;top:0;width:100%;z-index:0}.cal-week-view .cal-all-day-events .cal-events-row{height:31px;margin-left:70px;position:relative}.cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute}.cal-week-view .cal-all-day-events .cal-event-container.resize-active{pointer-events:none;z-index:1}.cal-week-view .cal-all-day-events .cal-event{height:28px;line-height:28px;margin-left:2px;margin-right:2px;padding:0 5px}.cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-bottom-left-radius:5px;border-top-left-radius:5px}.cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-bottom-right-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-all-day-events .cal-time-label-column{align-items:center;display:flex;font-size:14px;justify-content:center}.cal-week-view .cal-all-day-events .cal-resize-handle{cursor:col-resize;height:100%;position:absolute;top:0;width:6px}.cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0}.cal-week-view .cal-event,.cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-week-view .cal-drag-active{pointer-events:none;z-index:1}.cal-week-view .cal-drag-active *{pointer-events:none}.cal-week-view .cal-time-events{border:1px solid;border-top:0;display:flex;position:relative}.cal-week-view .cal-time-events .cal-day-columns{display:flex;flex-grow:1}.cal-week-view .cal-time-events .cal-day-column,.cal-week-view .cal-time-events .cal-events-container{position:relative}.cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1}.cal-week-view .cal-time-events .cal-event{height:calc(100% - 2px);line-height:25px;margin:1px;padding:0 5px;width:calc(100% - 2px)}.cal-week-view .cal-time-events .cal-resize-handle{cursor:row-resize;height:4px;position:absolute;width:100%}.cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0}.cal-week-view .cal-hour-segment{position:relative}.cal-week-view .cal-hour-segment:after{content:\"\\00a0\"}.cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer}.cal-week-view .cal-draggable{cursor:move}.cal-week-view .cal-hour-segment,.cal-week-view mwl-calendar-week-view-hour-segment{display:block}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom:thin dashed}.cal-week-view .cal-time{font-weight:700;padding-top:5px;text-align:center;width:70px}.cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none}.cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.cal-week-view{background-color:#fff;border-top:1px solid #e1e1e1}.cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-drag-over,.cal-week-view .cal-day-headers .cal-header:hover{background-color:#ededed}.cal-week-view .cal-day-column{border-left-color:#e1e1e1}.cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff}.cal-week-view .cal-all-day-events{border-color:#e1e1e1}.cal-week-view .cal-header.cal-today{background-color:#e8fde7}.cal-week-view .cal-header.cal-weekend span{color:#8b0000}.cal-week-view .cal-time-events{border-color:#e1e1e1}.cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed}.cal-week-view .cal-hour-odd{background-color:#fafafa}.cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1}.cal-week-view .cal-current-time-marker{background-color:#ea4334}.cal-day-view mwl-calendar-week-view-header{display:none}.cal-day-view .cal-events-container{margin-left:70px}.cal-day-view .cal-day-column{border-left:0}.cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)}.cal-tooltip{display:block;font-size:11px;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;opacity:.9;position:absolute;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:break-word;z-index:1070}.cal-tooltip.cal-tooltip-top{margin-top:-3px;padding:5px 0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-width:5px 5px 0;bottom:0;left:50%;margin-left:-5px}.cal-tooltip.cal-tooltip-right{margin-left:3px;padding:0 5px}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-width:5px 5px 5px 0;left:0;margin-top:-5px;top:50%}.cal-tooltip.cal-tooltip-bottom{margin-top:3px;padding:5px 0}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-width:0 5px 5px;left:50%;margin-left:-5px;top:0}.cal-tooltip.cal-tooltip-left{margin-left:-3px;padding:0 5px}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-width:5px 0 5px 5px;margin-top:-5px;right:0;top:50%}.cal-tooltip-inner{border-radius:.25rem;max-width:200px;padding:3px 8px;text-align:center}.cal-tooltip-arrow{border-color:transparent;border-style:solid;height:0;position:absolute;width:0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000}.cal-tooltip-inner{background-color:#000;color:#fff}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{-moz-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;align-items:center;border-radius:var(--m-button-radius);cursor:pointer;display:flex;font-size:var(--m-button-text-size);font-weight:var(--m-button-text-weight);justify-content:center;line-height:var(--m-button-text-height);outline:0;padding:var(--m-button-padding);user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-primary:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-primary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-primary.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-primary.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-secondary{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-secondary:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-secondary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-secondary.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-secondary.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-grey{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-grey:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-grey.reverse{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-grey.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-grey.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-input{align-items:center;border:1px solid var(--m-color-grey06);border-radius:5px;display:flex;justify-content:space-between;margin-top:16px;max-width:320px;min-width:200px;outline:none;padding:8px 16px}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-flex-column{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin:auto}.m-default-card{background-color:var(--m-color-unpure-white);border-radius:8px;box-shadow:var(--m-shadow-small);padding:16px}@media (max-width:1023px){.m-default-card{margin-bottom:8px;padding:8px}}#toast-container>div{opacity:.95!important}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-gap:var(--miam-button-gap,10px);--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-height:var(--miam-button-text-height,calc(var(--m-button-text-size)*1.5));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-white:var(--miam-color-white,#fafcfe);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-small:var(--miam-font-size-small,14px);--m-loader-size:var(--miam-loader-sizes,40px);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-progress-tracker-background-color:var(--miam-progress-tracker-background-color,var(--m-color-grey));--m-progress-tracker-color:var(--miam-progress-tracker-color,var(--m-color-primary));--m-progress-tracker-danger-color:var(--miam-progress-tracker-danger-color,var(--m-color-danger));--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0);--m-z-index-toaster:var(--miam-z-index-toaster,6002)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){color:var(--m-color-slate);font-family:Work Sans;font-size:var(--m-font-size-medium);font-style:normal;font-weight:500;line-height:24px}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-size:40px;font-weight:700;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{-webkit-animation:none!important;-webkit-transition:none!important;animation:none!important;transition:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}.miam-recipe-filters{background-color:var(--m-color-white);border-bottom:1px solid #ccc;border-right:1px solid #ccc;box-shadow:0 8px 28px 0 rgba(0,0,0,.07058823529411765);display:flex;flex-direction:column;justify-content:flex-start;left:0;position:absolute;top:0;z-index:calc(var(--m-z-index-modal-overlay) - 1)}.miam-recipe-filters.filter-collapsed{display:none}.miam-recipe-filters.right{border-left:1px solid #ccc;border-right:0;box-shadow:0 -8px 28px 0 rgba(0,0,0,.07058823529411765);left:unset;right:-1px}.miam-recipe-filters.right .m-button-primary.reverse.miam-recipe-filters__toggle{border-bottom-left-radius:var(--m-border-radius-pill);border-bottom-right-radius:0;border-right:0!important;border-top-left-radius:var(--m-border-radius-pill);border-top-right-radius:0;left:unset;padding:12px 4px 12px 12px;right:320px}.miam-recipe-filters.right .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container{transform:rotate(-90deg)}.miam-recipe-filters:not(.right) .m-button-primary.reverse.miam-recipe-filters__toggle{border-left:0!important}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle{border-bottom-left-radius:0;border-bottom-right-radius:var(--m-border-radius-pill);border-top-left-radius:0;border-top-right-radius:var(--m-border-radius-pill);left:320px;padding:12px 12px 12px 4px;position:absolute;top:41px}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle:hover ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-white)}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container{transform:rotate(90deg)}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container svg path{fill:none}.miam-recipe-filters .m-button-primary.reverse.miam-recipe-filters__toggle ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-primary)}.miam-recipe-filters .miam-recipe-filters__content{height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;overflow-y:auto;padding:24px;width:320px}.miam-recipe-filters .miam-recipe-filters__content.some-filters-set .miam-recipe-filters__ctas .miam-recipe-filters__remove{margin:40px 0 24px}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__head{color:var(--m-color-primary);font-size:21px;font-weight:700;line-height:24px;margin-bottom:48px}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container{opacity:1;transition:opacity .25s cubic-bezier(0,0,.2,1)}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container.filter-collapsed{opacity:0;transition:none}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container .miam-recipe-filter__details{align-items:center;background-color:var(--m-color-grey);display:flex;flex-flow:row wrap;margin-bottom:24px;min-height:10vh;padding-top:8px;position:-webkit-sticky;position:sticky;top:0;width:100%}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container .miam-recipe-filter__details .miam-recipe-filter__detail__title{margin-bottom:16px;padding:0 24px}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container .miam-recipe-filter__details .miam-recipe-filter__detail{align-items:center;border:1px solid var(--m-color-primary);border-radius:4px;display:flex;margin:0 0 16px 8px;padding:8px 16px}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container .miam-recipe-filter__details .miam-recipe-filter__detail .miam-recipe-filter__detail__icon .icon-container{margin:0 0 0 16px}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container .miam-recipe-filters__title{font-size:16px;font-weight:700;line-height:20px;margin-bottom:16px}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container .miam-recipe-filters__choice{display:flex;font-size:16px;line-height:20px;margin-bottom:16px}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container .miam-recipe-filters__choice:first-letter{text-transform:capitalize}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container .miam-recipe-filters__choice input{cursor:pointer;height:20px;margin:0 12px 0 0;width:20px}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__container .miam-recipe-filters__separator{background-color:#e9e9e9;height:1px;margin:24px 0;width:100%}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__ctas{display:flex;flex-direction:column}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__ctas .miam-recipe-filters__remove{cursor:pointer;margin:12px 0;text-align:center}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__ctas .m-button-primary.miam-recipe-filters__confirm{border-radius:0;font-size:16px;font-weight:700;height:60px;width:100%}.miam-recipe-filters .miam-recipe-filters__content .miam-recipe-filters__ctas .m-button-primary.miam-recipe-filters__confirm span{margin:0 2px}@media (max-width:607px){.miam-recipe-filters{bottom:-1px;left:-1px!important;position:fixed;right:-1px!important;top:-1px;z-index:var(--m-z-index-modal)}.miam-recipe-filters .miam-recipe-filters__toggle{left:unset!important;right:8px!important;top:11px!important;z-index:calc(var(--m-z-index-modal) + 1px)}.miam-recipe-filters:not(.right) .miam-recipe-filters__toggle{transform:rotate(180deg)}.miam-recipe-filters .miam-recipe-filters__content{width:100%}}.miam-recipe-filters__overlay{background-color:#000;bottom:0;display:none;left:0;opacity:.68;position:fixed;right:0;top:0;z-index:calc(var(--m-z-index-modal-overlay) - 2)}.miam-recipe-filters__overlay.filter-collapsed{display:none}"], encapsulation: 2, changeDetection: 0 });
10448
10471
  /*@__PURE__*/ (function () {
10449
10472
  i0.ɵsetClassMetadata(RecipeFiltersComponent, [{
10450
10473
  type: i0.Component,
@@ -11415,7 +11438,7 @@
11415
11438
  i0.ɵɵadvance(1);
11416
11439
  i0.ɵɵtextInterpolate2("", ctx.roundedValue, " ", ctx.unit, "");
11417
11440
  }
11418
- }, directives: [i2$1.NgIf, i2$1.NgClass, i2$1.NgStyle, TooltipableContentComponent], styles: [".miam-progress-tracker{display:flex;flex-direction:column;width:100%}.miam-progress-tracker .miam-progress-tracker__label{font-size:16px;font-weight:900;line-height:24px;margin-bottom:16px}.miam-progress-tracker .miam-progress-tracker__content{align-items:center;display:flex;flex-direction:row;justify-content:flex-start}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__tracker{background-color:var(--m-progress-tracker-background-color);border-radius:8px;height:8px;position:relative;width:100%}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__tracker:not(.full){overflow:hidden}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__tracker.full{background-color:transparent}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__tracker .miam-progress-tracker__tracker-bar{background-color:var(--m-progress-tracker-color);border-radius:8px 0 0 8px;height:105%}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__tracker .miam-progress-tracker__tracker-danger{background-color:var(--m-progress-tracker-danger-color);border-radius:0 8px 8px 0;height:105%;position:absolute;right:0;top:0}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__value{color:var(--m-color-primary);font-size:16px;font-weight:900;line-height:24px;margin-left:16px;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__value.danger{color:var(--m-color-danger-text)}"], encapsulation: 2, changeDetection: 0 });
11441
+ }, directives: [i2$1.NgIf, i2$1.NgClass, i2$1.NgStyle, TooltipableContentComponent], styles: [".miam-progress-tracker{display:flex;flex-direction:column;width:100%}.miam-progress-tracker .miam-progress-tracker__label{font-size:16px;font-weight:900;line-height:24px;margin-bottom:16px}.miam-progress-tracker .miam-progress-tracker__content{align-items:center;display:flex;flex-direction:row;justify-content:flex-start}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__tracker{background-color:var(--m-progress-tracker-background-color);border-radius:8px;height:8px;position:relative;width:100%}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__tracker:not(.full){overflow:hidden}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__tracker.full{background-color:transparent}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__tracker .miam-progress-tracker__tracker-bar{background-color:var(--m-progress-tracker-color);border-radius:8px 0 0 8px;height:105%;transition:width .5s ease-in-out}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__tracker .miam-progress-tracker__tracker-danger{background-color:var(--m-progress-tracker-danger-color);border-radius:0 8px 8px 0;height:105%;position:absolute;right:0;top:0}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__value{color:var(--m-color-primary);font-size:16px;font-weight:900;line-height:24px;margin-left:16px;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__value.danger{color:var(--m-color-danger-text)}"], encapsulation: 2, changeDetection: 0 });
11419
11442
  /*@__PURE__*/ (function () {
11420
11443
  i0.ɵsetClassMetadata(ProgressTrackerComponent, [{
11421
11444
  type: i0.Component,
@@ -15189,62 +15212,91 @@
15189
15212
  function RecipeDetailsIngredientsComponent_span_6_Template(rf, ctx) {
15190
15213
  if (rf & 1) {
15191
15214
  i0.ɵɵelementStart(0, "span");
15192
- i0.ɵɵi18n(1, 11);
15215
+ i0.ɵɵi18n(1, 7);
15193
15216
  i0.ɵɵelementEnd();
15194
15217
  }
15195
15218
  }
15196
15219
  function RecipeDetailsIngredientsComponent_span_7_Template(rf, ctx) {
15197
15220
  if (rf & 1) {
15198
15221
  i0.ɵɵelementStart(0, "span");
15199
- i0.ɵɵi18n(1, 12);
15222
+ i0.ɵɵi18n(1, 8);
15223
+ i0.ɵɵelementEnd();
15224
+ }
15225
+ }
15226
+ function RecipeDetailsIngredientsComponent_div_8_Template(rf, ctx) {
15227
+ if (rf & 1) {
15228
+ var _r5_1 = i0.ɵɵgetCurrentView();
15229
+ i0.ɵɵelementStart(0, "div", 9);
15230
+ i0.ɵɵelementStart(1, "ng-miam-counter-input", 10);
15231
+ i0.ɵɵlistener("counterChange", function RecipeDetailsIngredientsComponent_div_8_Template_ng_miam_counter_input_counterChange_1_listener($event) { i0.ɵɵrestoreView(_r5_1); var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.updateGuests($event); });
15232
+ i0.ɵɵelementEnd();
15233
+ i0.ɵɵelementStart(2, "span", 11);
15234
+ i0.ɵɵelementStart(3, "span");
15235
+ i0.ɵɵi18n(4, 12);
15236
+ i0.ɵɵelementEnd();
15237
+ i0.ɵɵelementStart(5, "span");
15238
+ i0.ɵɵtext(6);
15239
+ i0.ɵɵelementEnd();
15240
+ i0.ɵɵelementStart(7, "span");
15241
+ i0.ɵɵi18n(8, 13);
15242
+ i0.ɵɵelementEnd();
15200
15243
  i0.ɵɵelementEnd();
15244
+ i0.ɵɵelementEnd();
15245
+ }
15246
+ if (rf & 2) {
15247
+ var ctx_r2 = i0.ɵɵnextContext();
15248
+ i0.ɵɵadvance(1);
15249
+ i0.ɵɵproperty("counter", (ctx_r2.recipe == null ? null : ctx_r2.recipe.modifiedGuests) || ctx_r2.recipe.guests);
15250
+ i0.ɵɵadvance(5);
15251
+ i0.ɵɵtextInterpolate(ctx_r2.recipe == null ? null : ctx_r2.recipe.modifiedGuests);
15201
15252
  }
15202
15253
  }
15203
- function RecipeDetailsIngredientsComponent_div_18_div_1_Template(rf, ctx) {
15254
+ function RecipeDetailsIngredientsComponent_div_10_div_1_Template(rf, ctx) {
15204
15255
  if (rf & 1) {
15205
15256
  i0.ɵɵelementStart(0, "div");
15206
- i0.ɵɵelement(1, "img", 15);
15257
+ i0.ɵɵelement(1, "img", 16);
15207
15258
  i0.ɵɵelementEnd();
15208
15259
  }
15209
15260
  if (rf & 2) {
15210
- var ingredient_r3 = i0.ɵɵnextContext().$implicit;
15211
- var ctx_r5 = i0.ɵɵnextContext();
15261
+ var ingredient_r6 = i0.ɵɵnextContext().$implicit;
15262
+ var ctx_r8 = i0.ɵɵnextContext();
15212
15263
  i0.ɵɵadvance(1);
15213
- i0.ɵɵproperty("src", ctx_r5.ingredientPicture(ingredient_r3), i0.ɵɵsanitizeUrl);
15264
+ i0.ɵɵproperty("src", ctx_r8.ingredientPicture(ingredient_r6), i0.ɵɵsanitizeUrl);
15214
15265
  }
15215
15266
  }
15216
15267
  var _c8$1 = function (a0) { return { "checked": a0 }; };
15217
- function RecipeDetailsIngredientsComponent_div_18_Template(rf, ctx) {
15268
+ function RecipeDetailsIngredientsComponent_div_10_Template(rf, ctx) {
15218
15269
  if (rf & 1) {
15219
- i0.ɵɵelementStart(0, "div", 13);
15220
- i0.ɵɵtemplate(1, RecipeDetailsIngredientsComponent_div_18_div_1_Template, 2, 1, "div", 3);
15270
+ i0.ɵɵelementStart(0, "div", 14);
15271
+ i0.ɵɵtemplate(1, RecipeDetailsIngredientsComponent_div_10_div_1_Template, 2, 1, "div", 3);
15221
15272
  i0.ɵɵelementStart(2, "div");
15222
15273
  i0.ɵɵtext(3);
15223
15274
  i0.ɵɵpipe(4, "capitalizeFirstLetter");
15224
15275
  i0.ɵɵelementEnd();
15225
- i0.ɵɵelementStart(5, "div", 14);
15276
+ i0.ɵɵelementStart(5, "div", 15);
15226
15277
  i0.ɵɵtext(6);
15227
15278
  i0.ɵɵpipe(7, "readableFloatNumber");
15228
15279
  i0.ɵɵelementEnd();
15229
15280
  i0.ɵɵelementEnd();
15230
15281
  }
15231
15282
  if (rf & 2) {
15232
- var ingredient_r3 = ctx.$implicit;
15233
- var i_r4 = ctx.index;
15234
- var ctx_r2 = i0.ɵɵnextContext();
15235
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c8$1, ctx_r2.ingredientsChecked[i_r4]));
15283
+ var ingredient_r6 = ctx.$implicit;
15284
+ var i_r7 = ctx.index;
15285
+ var ctx_r3 = i0.ɵɵnextContext();
15286
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c8$1, ctx_r3.ingredientsChecked[i_r7]));
15236
15287
  i0.ɵɵadvance(1);
15237
- i0.ɵɵproperty("ngIf", ctx_r2.ingredientsPictures);
15288
+ i0.ɵɵproperty("ngIf", ctx_r3.ingredientsPictures);
15238
15289
  i0.ɵɵadvance(2);
15239
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ingredient_r3.name), "");
15290
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ingredient_r6.name), "");
15240
15291
  i0.ɵɵadvance(3);
15241
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(7, 6, ingredient_r3.qty, ingredient_r3.unit), " ");
15292
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(7, 6, ingredient_r6.qty, ingredient_r6.unit), " ");
15242
15293
  }
15243
15294
  }
15244
15295
  var RecipeDetailsIngredientsComponent = /** @class */ (function () {
15245
15296
  function RecipeDetailsIngredientsComponent(cdr, contextService) {
15246
15297
  this.cdr = cdr;
15247
15298
  this.contextService = contextService;
15299
+ this.displayGuests = true;
15248
15300
  this.ingredientsPictures = false;
15249
15301
  this.guestsUpdated = new i0.EventEmitter();
15250
15302
  this.ingredientsChecked = {};
@@ -15260,40 +15312,40 @@
15260
15312
  return RecipeDetailsIngredientsComponent;
15261
15313
  }());
15262
15314
  RecipeDetailsIngredientsComponent.ɵfac = function RecipeDetailsIngredientsComponent_Factory(t) { return new (t || RecipeDetailsIngredientsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ContextService)); };
15263
- RecipeDetailsIngredientsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsIngredientsComponent, selectors: [["ng-miam-recipe-details-ingredients"]], inputs: { recipe: "recipe", ingredientsPictures: "ingredientsPictures" }, outputs: { guestsUpdated: "guestsUpdated" }, decls: 19, vars: 6, consts: function () {
15315
+ RecipeDetailsIngredientsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsIngredientsComponent, selectors: [["ng-miam-recipe-details-ingredients"]], inputs: { recipe: "recipe", displayGuests: "displayGuests", ingredientsPictures: "ingredientsPictures" }, outputs: { guestsUpdated: "guestsUpdated" }, decls: 11, vars: 5, consts: function () {
15264
15316
  var i18n_0;
15265
15317
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
15266
- var MSG_EXTERNAL_6355784539835027667$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS_1 = goog.getMsg("Pour");
15267
- i18n_0 = MSG_EXTERNAL_6355784539835027667$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS_1;
15318
+ var MSG_EXTERNAL_7521397528410775601$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__1 = goog.getMsg("ingr\u00E9dients");
15319
+ i18n_0 = MSG_EXTERNAL_7521397528410775601$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__1;
15268
15320
  }
15269
15321
  else {
15270
- i18n_0 = $localize(templateObject_1$j || (templateObject_1$j = __makeTemplateObject([":\u241F767ac7d695ee51771c92c1ce24a2920511544f6a\u241F6355784539835027667:Pour"], [":\u241F767ac7d695ee51771c92c1ce24a2920511544f6a\u241F6355784539835027667:Pour"])));
15322
+ i18n_0 = $localize(templateObject_1$j || (templateObject_1$j = __makeTemplateObject([":\u241Fe859ba2d36a6f30bb3acdc80852d4e82a5411aa0\u241F7521397528410775601:ingr\u00E9dients"], [":\u241Fe859ba2d36a6f30bb3acdc80852d4e82a5411aa0\u241F7521397528410775601:ingr\u00E9dients"])));
15271
15323
  }
15272
15324
  var i18n_2;
15273
15325
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
15274
- var MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS_3 = goog.getMsg("personnes");
15275
- i18n_2 = MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS_3;
15326
+ var MSG_EXTERNAL_6517018329453008605$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__3 = goog.getMsg("ingr\u00E9dient");
15327
+ i18n_2 = MSG_EXTERNAL_6517018329453008605$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__3;
15276
15328
  }
15277
15329
  else {
15278
- i18n_2 = $localize(templateObject_2$f || (templateObject_2$f = __makeTemplateObject([":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"], [":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"])));
15330
+ i18n_2 = $localize(templateObject_2$f || (templateObject_2$f = __makeTemplateObject([":\u241F50bd24ece9d857e744e5647b7bfb3a637b6f2a44\u241F6517018329453008605:ingr\u00E9dient"], [":\u241F50bd24ece9d857e744e5647b7bfb3a637b6f2a44\u241F6517018329453008605:ingr\u00E9dient"])));
15279
15331
  }
15280
15332
  var i18n_4;
15281
15333
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
15282
- var MSG_EXTERNAL_7521397528410775601$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__5 = goog.getMsg("ingr\u00E9dients");
15283
- i18n_4 = MSG_EXTERNAL_7521397528410775601$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__5;
15334
+ var MSG_EXTERNAL_6355784539835027667$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__5 = goog.getMsg("Pour");
15335
+ i18n_4 = MSG_EXTERNAL_6355784539835027667$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__5;
15284
15336
  }
15285
15337
  else {
15286
- i18n_4 = $localize(templateObject_3$b || (templateObject_3$b = __makeTemplateObject([":\u241Fe859ba2d36a6f30bb3acdc80852d4e82a5411aa0\u241F7521397528410775601:ingr\u00E9dients"], [":\u241Fe859ba2d36a6f30bb3acdc80852d4e82a5411aa0\u241F7521397528410775601:ingr\u00E9dients"])));
15338
+ i18n_4 = $localize(templateObject_3$b || (templateObject_3$b = __makeTemplateObject([":\u241F767ac7d695ee51771c92c1ce24a2920511544f6a\u241F6355784539835027667:Pour"], [":\u241F767ac7d695ee51771c92c1ce24a2920511544f6a\u241F6355784539835027667:Pour"])));
15287
15339
  }
15288
15340
  var i18n_6;
15289
15341
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
15290
- var MSG_EXTERNAL_6517018329453008605$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__7 = goog.getMsg("ingr\u00E9dient");
15291
- i18n_6 = MSG_EXTERNAL_6517018329453008605$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__7;
15342
+ var MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__7 = goog.getMsg("personnes");
15343
+ i18n_6 = MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INGREDIENTS_RECIPE_DETAILS_INGREDIENTS_COMPONENT_TS__7;
15292
15344
  }
15293
15345
  else {
15294
- i18n_6 = $localize(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject([":\u241F50bd24ece9d857e744e5647b7bfb3a637b6f2a44\u241F6517018329453008605:ingr\u00E9dient"], [":\u241F50bd24ece9d857e744e5647b7bfb3a637b6f2a44\u241F6517018329453008605:ingr\u00E9dient"])));
15346
+ i18n_6 = $localize(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject([":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"], [":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"])));
15295
15347
  }
15296
- return [[1, "miam-recipe-details-ingredients"], [1, "miam-recipe-details-ingredients__header"], [1, "miam-recipe-details-ingredients__header__title"], [4, "ngIf"], [1, "miam-recipe-details-ingredients__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-details-ingredients__counter__print"], i18n_0, i18n_2, [1, "miam-recipe-details-ingredients__list"], ["class", "miam-recipe-details-ingredients__row", 3, "ngClass", 4, "ngFor", "ngForOf"], i18n_4, i18n_6, [1, "miam-recipe-details-ingredients__row", 3, "ngClass"], [1, "miam-recipe-details-ingredients__row__qty"], [1, "miam-recipe-details-ingredients__row__picture", 3, "src"]];
15348
+ return [[1, "miam-recipe-details-ingredients"], [1, "miam-recipe-details-ingredients__header"], [1, "miam-recipe-details-ingredients__header__title"], [4, "ngIf"], ["class", "miam-recipe-details-ingredients__counter", 4, "ngIf"], [1, "miam-recipe-details-ingredients__list"], ["class", "miam-recipe-details-ingredients__row", 3, "ngClass", 4, "ngFor", "ngForOf"], i18n_0, i18n_2, [1, "miam-recipe-details-ingredients__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-details-ingredients__counter__print"], i18n_4, i18n_6, [1, "miam-recipe-details-ingredients__row", 3, "ngClass"], [1, "miam-recipe-details-ingredients__row__qty"], [1, "miam-recipe-details-ingredients__row__picture", 3, "src"]];
15297
15349
  }, template: function RecipeDetailsIngredientsComponent_Template(rf, ctx) {
15298
15350
  if (rf & 1) {
15299
15351
  i0.ɵɵelementStart(0, "div", 0);
@@ -15307,25 +15359,10 @@
15307
15359
  i0.ɵɵtemplate(7, RecipeDetailsIngredientsComponent_span_7_Template, 2, 0, "span", 3);
15308
15360
  i0.ɵɵelementEnd();
15309
15361
  i0.ɵɵelementEnd();
15310
- i0.ɵɵelementStart(8, "div", 4);
15311
- i0.ɵɵelementStart(9, "ng-miam-counter-input", 5);
15312
- i0.ɵɵlistener("counterChange", function RecipeDetailsIngredientsComponent_Template_ng_miam_counter_input_counterChange_9_listener($event) { return ctx.updateGuests($event); });
15362
+ i0.ɵɵtemplate(8, RecipeDetailsIngredientsComponent_div_8_Template, 9, 2, "div", 4);
15313
15363
  i0.ɵɵelementEnd();
15314
- i0.ɵɵelementStart(10, "span", 6);
15315
- i0.ɵɵelementStart(11, "span");
15316
- i0.ɵɵi18n(12, 7);
15317
- i0.ɵɵelementEnd();
15318
- i0.ɵɵelementStart(13, "span");
15319
- i0.ɵɵtext(14);
15320
- i0.ɵɵelementEnd();
15321
- i0.ɵɵelementStart(15, "span");
15322
- i0.ɵɵi18n(16, 8);
15323
- i0.ɵɵelementEnd();
15324
- i0.ɵɵelementEnd();
15325
- i0.ɵɵelementEnd();
15326
- i0.ɵɵelementEnd();
15327
- i0.ɵɵelementStart(17, "div", 9);
15328
- i0.ɵɵtemplate(18, RecipeDetailsIngredientsComponent_div_18_Template, 8, 11, "div", 10);
15364
+ i0.ɵɵelementStart(9, "div", 5);
15365
+ i0.ɵɵtemplate(10, RecipeDetailsIngredientsComponent_div_10_Template, 8, 11, "div", 6);
15329
15366
  i0.ɵɵelementEnd();
15330
15367
  i0.ɵɵelementEnd();
15331
15368
  }
@@ -15336,14 +15373,12 @@
15336
15373
  i0.ɵɵproperty("ngIf", (ctx.recipe == null ? null : ctx.recipe.modifiedIngredients.length) > 1);
15337
15374
  i0.ɵɵadvance(1);
15338
15375
  i0.ɵɵproperty("ngIf", !((ctx.recipe == null ? null : ctx.recipe.modifiedIngredients.length) > 1));
15376
+ i0.ɵɵadvance(1);
15377
+ i0.ɵɵproperty("ngIf", ctx.displayGuests);
15339
15378
  i0.ɵɵadvance(2);
15340
- i0.ɵɵproperty("counter", (ctx.recipe == null ? null : ctx.recipe.modifiedGuests) || ctx.recipe.guests);
15341
- i0.ɵɵadvance(5);
15342
- i0.ɵɵtextInterpolate(ctx.recipe == null ? null : ctx.recipe.modifiedGuests);
15343
- i0.ɵɵadvance(4);
15344
15379
  i0.ɵɵproperty("ngForOf", ctx.recipe == null ? null : ctx.recipe.modifiedIngredients);
15345
15380
  }
15346
- }, directives: [i2$1.NgIf, CounterInputComponent, i2$1.NgForOf, i2$1.NgClass], pipes: [CapitalizeFirstLetterPipe, ReadableFloatNumberPipe], styles: [".miam-recipe-details-ingredients{display:flex;flex-direction:column}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header{border-bottom:1px solid var(--m-color-grey07);display:flex;flex-direction:row;justify-content:space-between;margin-bottom:16px;padding-bottom:12px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__header__title{color:var(--m-color-primary);font-size:21px;font-weight:700;line-height:24px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter{align-items:center;display:flex}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:16px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter .miam-recipe-details-ingredients__counter__print{display:none}@media print{.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter ng-miam-counter-input{display:none}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter .miam-recipe-details-ingredients__counter__print{display:block}}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__list{background-color:var(--m-color-primary-light);border-radius:8px;display:flex;flex-direction:column;padding:4px 16px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__row{color:var(--m-color-black);display:flex;font-size:16px;justify-content:space-between;line-height:20px;padding:12px 0}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__row .miam-recipe-details-ingredients__row__qty{font-weight:700}"], encapsulation: 2, changeDetection: 0 });
15381
+ }, directives: [i2$1.NgIf, i2$1.NgForOf, CounterInputComponent, i2$1.NgClass], pipes: [CapitalizeFirstLetterPipe, ReadableFloatNumberPipe], styles: [".miam-recipe-details-ingredients{display:flex;flex-direction:column}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header{border-bottom:1px solid var(--m-color-grey07);display:flex;flex-direction:row;justify-content:space-between;margin-bottom:16px;padding-bottom:12px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__header__title{color:var(--m-color-primary);font-size:21px;font-weight:700;line-height:24px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter{align-items:center;display:flex}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:16px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter .miam-recipe-details-ingredients__counter__print{display:none}@media print{.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter ng-miam-counter-input{display:none}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__header .miam-recipe-details-ingredients__counter .miam-recipe-details-ingredients__counter__print{display:block}}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__list{background-color:var(--m-color-primary-light);border-radius:8px;display:flex;flex-direction:column;padding:4px 16px}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__row{color:var(--m-color-black);display:flex;font-size:16px;justify-content:space-between;line-height:20px;padding:12px 0}.miam-recipe-details-ingredients .miam-recipe-details-ingredients__row .miam-recipe-details-ingredients__row__qty{font-weight:700}"], encapsulation: 2, changeDetection: 0 });
15347
15382
  /*@__PURE__*/ (function () {
15348
15383
  i0.ɵsetClassMetadata(RecipeDetailsIngredientsComponent, [{
15349
15384
  type: i0.Component,
@@ -15356,6 +15391,8 @@
15356
15391
  }]
15357
15392
  }], function () { return [{ type: i0.ChangeDetectorRef }, { type: ContextService }]; }, { recipe: [{
15358
15393
  type: i0.Input
15394
+ }], displayGuests: [{
15395
+ type: i0.Input
15359
15396
  }], ingredientsPictures: [{
15360
15397
  type: i0.Input
15361
15398
  }], guestsUpdated: [{
@@ -16338,7 +16375,7 @@
16338
16375
  i0.ɵɵadvance(1);
16339
16376
  i0.ɵɵproperty("ngIf", ctx_r8.recipe.filigraneLogoUrl);
16340
16377
  i0.ɵɵadvance(3);
16341
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 23, ctx_r8.userService.isLogged$));
16378
+ i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 24, ctx_r8.userService.isLogged$));
16342
16379
  i0.ɵɵadvance(2);
16343
16380
  i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r8.icon.Print);
16344
16381
  i0.ɵɵadvance(2);
@@ -16358,7 +16395,7 @@
16358
16395
  i0.ɵɵadvance(1);
16359
16396
  i0.ɵɵproperty("ngIf", ctx_r8.isMobile);
16360
16397
  i0.ɵɵadvance(1);
16361
- i0.ɵɵproperty("recipe", ctx_r8.recipe)("ingredientsPictures", ctx_r8.ingredientsPictures);
16398
+ i0.ɵɵproperty("recipe", ctx_r8.recipe)("ingredientsPictures", ctx_r8.ingredientsPictures)("displayGuests", ctx_r8.displayGuests);
16362
16399
  i0.ɵɵadvance(1);
16363
16400
  i0.ɵɵproperty("ngIf", !(!ctx_r8.isMobile && ctx_r8.stepsOnLeftSide));
16364
16401
  i0.ɵɵadvance(1);
@@ -16382,7 +16419,7 @@
16382
16419
  i0.ɵɵi18n(10, 11);
16383
16420
  i0.ɵɵelementEnd();
16384
16421
  i0.ɵɵelementEnd();
16385
- i0.ɵɵtemplate(11, RecipeDetailsComponent_div_0_div_11_Template, 32, 25, "div", 12);
16422
+ i0.ɵɵtemplate(11, RecipeDetailsComponent_div_0_div_11_Template, 32, 26, "div", 12);
16386
16423
  i0.ɵɵelementEnd();
16387
16424
  }
16388
16425
  if (rf & 2) {
@@ -16438,6 +16475,7 @@
16438
16475
  _this.displayTagsIcons = false;
16439
16476
  _this.displayPricing = true;
16440
16477
  _this.displayAddedOnPicture = true;
16478
+ _this.displayGuests = true;
16441
16479
  _this.stepsOnLeftSide = false; // If true, display the detail in 4 quarters instead of 2 halves
16442
16480
  _this.cookingTimeAsPrimaryInfo = false; // If true, display the cooking time next to total time
16443
16481
  _this.pricingGuestsText = 'par-personne';
@@ -16638,7 +16676,7 @@
16638
16676
  var _t;
16639
16677
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.topContainerImg = _t.first);
16640
16678
  }
16641
- }, inputs: { recipeId: "recipeId", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: function () {
16679
+ }, inputs: { recipeId: "recipeId", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture", displayGuests: "displayGuests", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: function () {
16642
16680
  var i18n_1;
16643
16681
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
16644
16682
  var MSG_EXTERNAL_4599208369990758061$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS__2 = goog.getMsg(" Voir plus d'id\u00E9es repas ");
@@ -16663,7 +16701,7 @@
16663
16701
  else {
16664
16702
  i18n_6 = $localize(templateObject_3$d || (templateObject_3$d = __makeTemplateObject([":\u241Fe3d3d7039794cbbd2e16e8548bfbf9ee8fa29247\u241F1225769932237505428:Ajouter les ingr\u00E9dients"], [":\u241Fe3d3d7039794cbbd2e16e8548bfbf9ee8fa29247\u241F1225769932237505428:Ajouter les ingr\u00E9dients"])));
16665
16703
  }
16666
- return [["class", "miam-recipe-details", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details"], ["mainContainer", ""], [1, "miam-recipe-details__header"], [1, "miam-recipe-details__bookmark"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg", 4, "ngIf", "ngIfElse"], ["stamp", ""], [1, "miam-recipe-details__title"], [4, "ngIf"], [1, "miam-recipe-details__header__link", 3, "href"], i18n_1, ["class", "miam-recipe-details__container", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-stamp.svg"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__summary"], ["topContainerImg", ""], [1, "miam-recipe-details__summary__container"], [1, "miam-recipe-details__sponsor"], [3, "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__picture"], [3, "src", "ngClass", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__actionbar"], [1, "miam-recipe-details__actionbar__group"], ["class", "miam-recipe-details__actions__icon like", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", "print", 3, "width", "height", "iconName", "click"], ["primaryColor", "var(--m-color-grey02)", "secondaryColor", "var(--m-color-grey07)", 1, "miam-recipe-details__actions__icon", "help", 3, "width", "height", "iconName", "click"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced", 4, "ngIf"], [3, "recipe", 4, "ngIf"], [1, "miam-recipe-details__action__container"], [1, "miam-recipe-details__price"], [3, "recipe", "serves", "guestsText", 4, "ngIf"], ["class", "miam-recipe-details__addbasket", 3, "ngClass", "click", 4, "ngIf"], ["id", "miam-recipe-details__content", 1, "miam-recipe-details__content"], ["class", "miam-recipe-details__title", "id", "miam-recipe-details__title", 4, "ngIf"], ["class", "miam-recipe-details__content__description", 4, "ngIf"], [3, "recipe", "ingredientsPictures", "guestsUpdated"], [1, "miam-recipe-details__content__image", 3, "href"], [3, "src"], [3, "recipe", "showAddon"], [3, "src", "ngClass"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__filigrane"], [1, "miam-recipe-details__actions__icon", "like", 3, "recipe", "originTrace", "width", "height"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced"], [3, "recipe"], [3, "recipe", "serves", "guestsText"], [1, "miam-recipe-details__addbasket", 3, "ngClass", "click"], ["class", "miam-recipe-details__addbasket__cta", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-recipe-details__addbasket__cta"], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf"], i18n_4, i18n_6, ["primaryColor", "#fff", 3, "width", "height", "iconName"], ["id", "miam-recipe-details__title", 1, "miam-recipe-details__title"], [1, "miam-recipe-details__content__description"], [3, "recipe", "hideAddon"]];
16704
+ return [["class", "miam-recipe-details", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details"], ["mainContainer", ""], [1, "miam-recipe-details__header"], [1, "miam-recipe-details__bookmark"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg", 4, "ngIf", "ngIfElse"], ["stamp", ""], [1, "miam-recipe-details__title"], [4, "ngIf"], [1, "miam-recipe-details__header__link", 3, "href"], i18n_1, ["class", "miam-recipe-details__container", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-stamp.svg"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__summary"], ["topContainerImg", ""], [1, "miam-recipe-details__summary__container"], [1, "miam-recipe-details__sponsor"], [3, "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__picture"], [3, "src", "ngClass", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__actionbar"], [1, "miam-recipe-details__actionbar__group"], ["class", "miam-recipe-details__actions__icon like", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", "print", 3, "width", "height", "iconName", "click"], ["primaryColor", "var(--m-color-grey02)", "secondaryColor", "var(--m-color-grey07)", 1, "miam-recipe-details__actions__icon", "help", 3, "width", "height", "iconName", "click"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced", 4, "ngIf"], [3, "recipe", 4, "ngIf"], [1, "miam-recipe-details__action__container"], [1, "miam-recipe-details__price"], [3, "recipe", "serves", "guestsText", 4, "ngIf"], ["class", "miam-recipe-details__addbasket", 3, "ngClass", "click", 4, "ngIf"], ["id", "miam-recipe-details__content", 1, "miam-recipe-details__content"], ["class", "miam-recipe-details__title", "id", "miam-recipe-details__title", 4, "ngIf"], ["class", "miam-recipe-details__content__description", 4, "ngIf"], [3, "recipe", "ingredientsPictures", "displayGuests", "guestsUpdated"], [1, "miam-recipe-details__content__image", 3, "href"], [3, "src"], [3, "recipe", "showAddon"], [3, "src", "ngClass"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__filigrane"], [1, "miam-recipe-details__actions__icon", "like", 3, "recipe", "originTrace", "width", "height"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced"], [3, "recipe"], [3, "recipe", "serves", "guestsText"], [1, "miam-recipe-details__addbasket", 3, "ngClass", "click"], ["class", "miam-recipe-details__addbasket__cta", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-recipe-details__addbasket__cta"], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf"], i18n_4, i18n_6, ["primaryColor", "#fff", 3, "width", "height", "iconName"], ["id", "miam-recipe-details__title", 1, "miam-recipe-details__title"], [1, "miam-recipe-details__content__description"], [3, "recipe", "hideAddon"]];
16667
16705
  }, template: function RecipeDetailsComponent_Template(rf, ctx) {
16668
16706
  if (rf & 1) {
16669
16707
  i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 12, 5, "div", 0);
@@ -16698,6 +16736,8 @@
16698
16736
  type: i0.Input
16699
16737
  }], displayAddedOnPicture: [{
16700
16738
  type: i0.Input
16739
+ }], displayGuests: [{
16740
+ type: i0.Input
16701
16741
  }], stepsOnLeftSide: [{
16702
16742
  type: i0.Input
16703
16743
  }], cookingTimeAsPrimaryInfo: [{
@@ -16746,7 +16786,7 @@
16746
16786
  }
16747
16787
  if (rf & 2) {
16748
16788
  var ctx_r8 = i0.ɵɵnextContext(2);
16749
- i0.ɵɵproperty("recipeId", ctx_r8.recipe.id)("previewAllowed", ctx_r8.previewAllowed)("originTrace", ctx_r8.eventTrace)("stepsOnLeftSide", ctx_r8.detailsStepsOnLeftSide)("moreRecipesImageURL", ctx_r8.detailsMoreRecipesImageURL)("pricingGuestsText", ctx_r8.detailsPricingGuestsText);
16789
+ i0.ɵɵproperty("recipeId", ctx_r8.recipe.id)("previewAllowed", ctx_r8.previewAllowed)("originTrace", ctx_r8.eventTrace)("stepsOnLeftSide", ctx_r8.detailsStepsOnLeftSide)("moreRecipesImageURL", ctx_r8.detailsMoreRecipesImageURL)("pricingGuestsText", ctx_r8.detailsPricingGuestsText)("displayGuests", ctx_r8.displayGuestsInDetails);
16750
16790
  }
16751
16791
  }
16752
16792
  function RecipeModalComponent_ng_miam_modal_1_Template(rf, ctx) {
@@ -16754,7 +16794,7 @@
16754
16794
  var _r14_1 = i0.ɵɵgetCurrentView();
16755
16795
  i0.ɵɵelementStart(0, "ng-miam-modal", 6);
16756
16796
  i0.ɵɵlistener("expandedChange", function RecipeModalComponent_ng_miam_modal_1_Template_ng_miam_modal_expandedChange_0_listener($event) { i0.ɵɵrestoreView(_r14_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.show = $event; })("close", function RecipeModalComponent_ng_miam_modal_1_Template_ng_miam_modal_close_0_listener() { i0.ɵɵrestoreView(_r14_1); var ctx_r15 = i0.ɵɵnextContext(); return ctx_r15.hide(); })("cancel", function RecipeModalComponent_ng_miam_modal_1_Template_ng_miam_modal_cancel_0_listener() { i0.ɵɵrestoreView(_r14_1); var ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.removeRecipe(); })("confirm", function RecipeModalComponent_ng_miam_modal_1_Template_ng_miam_modal_confirm_0_listener() { i0.ɵɵrestoreView(_r14_1); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.hide(); });
16757
- i0.ɵɵtemplate(1, RecipeModalComponent_ng_miam_modal_1_ng_miam_recipe_details_1_Template, 2, 6, "ng-miam-recipe-details", 7);
16797
+ i0.ɵɵtemplate(1, RecipeModalComponent_ng_miam_modal_1_ng_miam_recipe_details_1_Template, 2, 7, "ng-miam-recipe-details", 7);
16758
16798
  i0.ɵɵelementEnd();
16759
16799
  }
16760
16800
  if (rf & 2) {
@@ -16774,6 +16814,7 @@
16774
16814
  this.basketsService = basketsService;
16775
16815
  this.show = false;
16776
16816
  this.previewMode = false;
16817
+ this.displayGuestsInDetails = true;
16777
16818
  this.canCloseModal = true;
16778
16819
  this.removeIsLoading = false;
16779
16820
  this.basketChangedSinceOpened = false; // true if show = true and basket is different since last time show was false
@@ -16804,6 +16845,7 @@
16804
16845
  _this.recipe = result.recipe;
16805
16846
  _this.previewMode = result.previewMode;
16806
16847
  _this.previewAllowed = result.previewAllowed;
16848
+ _this.displayGuestsInDetails = result.displayGuests;
16807
16849
  _this.show = true;
16808
16850
  _this.printService.prepareForPrint(_this.elRef);
16809
16851
  (_a = _this.detailsComponent) === null || _a === void 0 ? void 0 : _a.cdr.markForCheck();
@@ -16883,7 +16925,7 @@
16883
16925
  else {
16884
16926
  i18n_2 = $localize(templateObject_2$i || (templateObject_2$i = __makeTemplateObject([":\u241Ffbcdc7ac4903b6cf1768873b28836553fa58247a\u241F4845069511982551334:Ok, continuer mes courses"], [":\u241Ffbcdc7ac4903b6cf1768873b28836553fa58247a\u241F4845069511982551334:Ok, continuer mes courses"])));
16885
16927
  }
16886
- return [[3, "isAngularComponent", "noHeaderMode", "expanded", "cancelButtonDisabled", "confirmButtonDisabled", "cancelButtonIsLoading", "expandedChange", "close", "cancel", "confirm", 4, "ngIf", 6, "title", "confirmButtonText"], [3, "isAngularComponent", "noHeaderMode", "expanded", "cancelButtonDisabled", "confirmButtonDisabled", "cancelButtonIsLoading", "expandedChange", "close", "cancel", "confirm", 4, "ngIf"], [3, "isAngularComponent", "noHeaderMode", "expanded", "cancelButtonDisabled", "confirmButtonDisabled", "cancelButtonIsLoading", "expandedChange", "close", "cancel", "confirm", 6, "title", "confirmButtonText"], ["title", i18n_0, "confirmButtonText", i18n_2], [1, "miam-wrapper-preview"], [3, "recipeId", "displayItemsUnitaryPrice", "originTrace", "loading"], [3, "isAngularComponent", "noHeaderMode", "expanded", "cancelButtonDisabled", "confirmButtonDisabled", "cancelButtonIsLoading", "expandedChange", "close", "cancel", "confirm"], [3, "recipeId", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "recipeAdded", "recipeError", 4, "ngIf"], [3, "recipeId", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "recipeAdded", "recipeError"], ["details", ""]];
16928
+ return [[3, "isAngularComponent", "noHeaderMode", "expanded", "cancelButtonDisabled", "confirmButtonDisabled", "cancelButtonIsLoading", "expandedChange", "close", "cancel", "confirm", 4, "ngIf", 6, "title", "confirmButtonText"], [3, "isAngularComponent", "noHeaderMode", "expanded", "cancelButtonDisabled", "confirmButtonDisabled", "cancelButtonIsLoading", "expandedChange", "close", "cancel", "confirm", 4, "ngIf"], [3, "isAngularComponent", "noHeaderMode", "expanded", "cancelButtonDisabled", "confirmButtonDisabled", "cancelButtonIsLoading", "expandedChange", "close", "cancel", "confirm", 6, "title", "confirmButtonText"], ["title", i18n_0, "confirmButtonText", i18n_2], [1, "miam-wrapper-preview"], [3, "recipeId", "displayItemsUnitaryPrice", "originTrace", "loading"], [3, "isAngularComponent", "noHeaderMode", "expanded", "cancelButtonDisabled", "confirmButtonDisabled", "cancelButtonIsLoading", "expandedChange", "close", "cancel", "confirm"], [3, "recipeId", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "recipeAdded", "recipeError", 4, "ngIf"], [3, "recipeId", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "recipeAdded", "recipeError"], ["details", ""]];
16887
16929
  }, template: function RecipeModalComponent_Template(rf, ctx) {
16888
16930
  if (rf & 1) {
16889
16931
  i0.ɵɵtemplate(0, RecipeModalComponent_ng_miam_modal_0_Template, 4, 10, "ng-miam-modal", 0);
@@ -17731,6 +17773,7 @@
17731
17773
  _this.toasterService = toasterService;
17732
17774
  _this.headerText = '';
17733
17775
  _this.displayPricing = true;
17776
+ _this.displayGuests = true;
17734
17777
  _this.displayAddedOnPicture = true;
17735
17778
  _this.hovered = false;
17736
17779
  _this.icon = exports.Icon;
@@ -17870,7 +17913,7 @@
17870
17913
  if (rf & 1) {
17871
17914
  i0.ɵɵlistener("scroll", function AbstractRecipeCardComponent_scroll_HostBindingHandler() { return ctx.onScroll(); }, false, i0.ɵɵresolveWindow);
17872
17915
  }
17873
- }, inputs: { headerText: "headerText", displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture" }, outputs: { hide: "hide" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function AbstractRecipeCardComponent_Template(rf, ctx) { }, encapsulation: 2 });
17916
+ }, inputs: { headerText: "headerText", displayPricing: "displayPricing", displayGuests: "displayGuests", displayAddedOnPicture: "displayAddedOnPicture" }, outputs: { hide: "hide" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 0, vars: 0, template: function AbstractRecipeCardComponent_Template(rf, ctx) { }, encapsulation: 2 });
17874
17917
  /*@__PURE__*/ (function () {
17875
17918
  i0.ɵsetClassMetadata(AbstractRecipeCardComponent, [{
17876
17919
  type: i0.Component,
@@ -17879,6 +17922,8 @@
17879
17922
  type: i0.Input
17880
17923
  }], displayPricing: [{
17881
17924
  type: i0.Input
17925
+ }], displayGuests: [{
17926
+ type: i0.Input
17882
17927
  }], displayAddedOnPicture: [{
17883
17928
  type: i0.Input
17884
17929
  }], hide: [{
@@ -18500,7 +18545,7 @@
18500
18545
  };
18501
18546
  RecipeCardComponent.prototype.openRecipe = function () {
18502
18547
  var videoEvent = this.contextService.videoRecipesEnabled && this.recipe.videoId;
18503
- this.recipeService.displayObject(this.recipe, { previewAllowed: this.previewAllowed, guests: this.recipe.modifiedGuests }, this.eventTrace());
18548
+ this.recipeService.displayObject(this.recipe, { previewAllowed: this.previewAllowed, guests: this.recipe.modifiedGuests, displayGuests: this.displayGuests }, this.eventTrace());
18504
18549
  this.displayed.emit();
18505
18550
  };
18506
18551
  RecipeCardComponent.prototype.updateGuests = function (count) {
@@ -20988,7 +21033,7 @@
20988
21033
  if (rf & 2) {
20989
21034
  var recipe_r14 = ctx.$implicit;
20990
21035
  var ctx_r2 = i0.ɵɵnextContext();
20991
- i0.ɵɵproperty("recipe", recipe_r14)("originTrace", ctx_r2.eventTrace())("displayPricing", ctx_r2.displayPricing)("previewAllowed", !ctx_r2.addRecipeMode)("addRecipeMode", ctx_r2.addRecipeMode);
21036
+ i0.ɵɵproperty("recipe", recipe_r14)("originTrace", ctx_r2.eventTrace())("displayPricing", ctx_r2.displayPricing)("previewAllowed", !ctx_r2.addRecipeMode)("addRecipeMode", ctx_r2.addRecipeMode)("displayGuests", ctx_r2.displayGuests);
20992
21037
  }
20993
21038
  }
20994
21039
  function CatalogListComponent_ng_miam_catalog_article_card_5_Template(rf, ctx) {
@@ -21031,6 +21076,7 @@
21031
21076
  _this.analyticsService = analyticsService;
21032
21077
  _this.insertCreateCard = false;
21033
21078
  _this.randomMode = false;
21079
+ _this.displayGuests = true;
21034
21080
  _this.addRecipeMode = false;
21035
21081
  _this.addToMealsPlanner = new i0.EventEmitter();
21036
21082
  _this.filterRemoved = new i0.EventEmitter();
@@ -21261,7 +21307,7 @@
21261
21307
  var _t;
21262
21308
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.recipeCards = _t);
21263
21309
  }
21264
- }, inputs: { filters: "filters", insertCreateCard: "insertCreateCard", randomMode: "randomMode", modifiedGuests: "modifiedGuests", displayPricing: "displayPricing", addRecipeMode: "addRecipeMode" }, outputs: { addToMealsPlanner: "addToMealsPlanner", filterRemoved: "filterRemoved", recipeActionTriggered: "recipeActionTriggered", loading: "loading" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 9, vars: 9, consts: function () {
21310
+ }, inputs: { filters: "filters", insertCreateCard: "insertCreateCard", randomMode: "randomMode", modifiedGuests: "modifiedGuests", displayPricing: "displayPricing", displayGuests: "displayGuests", addRecipeMode: "addRecipeMode" }, outputs: { addToMealsPlanner: "addToMealsPlanner", filterRemoved: "filterRemoved", recipeActionTriggered: "recipeActionTriggered", loading: "loading" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 9, vars: 9, consts: function () {
21265
21311
  var i18n_0;
21266
21312
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
21267
21313
  var MSG_EXTERNAL_2565683500171826824$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___1 = goog.getMsg("D\u00E9sol\u00E9, aucune proposition trouv\u00E9e");
@@ -21310,14 +21356,14 @@
21310
21356
  else {
21311
21357
  i18n_10 = $localize(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
21312
21358
  }
21313
- return [[1, "miam-catalog-list__cards"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__card", 3, "clicked", 4, "ngIf"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "addToMealsPlanner", "actionTriggered", 4, "ngFor", "ngForOf"], [3, "article", 4, "ngFor", "ngForOf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["id", "miam-catalog-list__anchor"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1"], i18n_0, [4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, i18n_4, i18n_6, i18n_8, [1, "miam-catalog-list__card", 3, "clicked"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "addToMealsPlanner", "actionTriggered"], [3, "article"], [1, "miam-catalog-list__loader"], i18n_10];
21359
+ return [[1, "miam-catalog-list__cards"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__card", 3, "clicked", 4, "ngIf"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "addToMealsPlanner", "actionTriggered", 4, "ngFor", "ngForOf"], [3, "article", 4, "ngFor", "ngForOf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["id", "miam-catalog-list__anchor"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1"], i18n_0, [4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, i18n_4, i18n_6, i18n_8, [1, "miam-catalog-list__card", 3, "clicked"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "addToMealsPlanner", "actionTriggered"], [3, "article"], [1, "miam-catalog-list__loader"], i18n_10];
21314
21360
  }, template: function CatalogListComponent_Template(rf, ctx) {
21315
21361
  if (rf & 1) {
21316
21362
  i0.ɵɵelementStart(0, "div", 0);
21317
21363
  i0.ɵɵtemplate(1, CatalogListComponent_div_1_Template, 7, 5, "div", 1);
21318
21364
  i0.ɵɵpipe(2, "async");
21319
21365
  i0.ɵɵtemplate(3, CatalogListComponent_ng_miam_card_create_recipe_3_Template, 1, 0, "ng-miam-card-create-recipe", 2);
21320
- i0.ɵɵtemplate(4, CatalogListComponent_ng_miam_catalog_recipe_card_4_Template, 1, 5, "ng-miam-catalog-recipe-card", 3);
21366
+ i0.ɵɵtemplate(4, CatalogListComponent_ng_miam_catalog_recipe_card_4_Template, 1, 6, "ng-miam-catalog-recipe-card", 3);
21321
21367
  i0.ɵɵtemplate(5, CatalogListComponent_ng_miam_catalog_article_card_5_Template, 1, 1, "ng-miam-catalog-article-card", 4);
21322
21368
  i0.ɵɵtemplate(6, CatalogListComponent_div_6_Template, 4, 0, "div", 5);
21323
21369
  i0.ɵɵpipe(7, "async");
@@ -21357,6 +21403,8 @@
21357
21403
  type: i0.Input
21358
21404
  }], displayPricing: [{
21359
21405
  type: i0.Input
21406
+ }], displayGuests: [{
21407
+ type: i0.Input
21360
21408
  }], addRecipeMode: [{
21361
21409
  type: i0.Input
21362
21410
  }], addToMealsPlanner: [{
@@ -25849,50 +25897,81 @@
25849
25897
  })();
25850
25898
  var templateObject_1$J, templateObject_2$z, templateObject_3$s, templateObject_4$m, templateObject_5$g, templateObject_6$f, templateObject_7$b, templateObject_8$9, templateObject_9$9, templateObject_10$5;
25851
25899
 
25852
- function MealsPlannerResultComponent_div_7_div_1_Template(rf, ctx) {
25900
+ function MealsPlannerResultComponent_div_6_div_1_div_1_Template(rf, ctx) {
25853
25901
  if (rf & 1) {
25854
- var _r9_1 = i0.ɵɵgetCurrentView();
25902
+ var _r15_1 = i0.ɵɵgetCurrentView();
25855
25903
  i0.ɵɵelementStart(0, "div");
25856
- i0.ɵɵelementStart(1, "ng-miam-catalog-recipe-card", 13);
25857
- i0.ɵɵlistener("openCatalog", function MealsPlannerResultComponent_div_7_div_1_Template_ng_miam_catalog_recipe_card_openCatalog_1_listener() { i0.ɵɵrestoreView(_r9_1); var i_r3 = i0.ɵɵnextContext().index; var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.openCatalog.emit(i_r3); })("removeFromMealsPlanner", function MealsPlannerResultComponent_div_7_div_1_Template_ng_miam_catalog_recipe_card_removeFromMealsPlanner_1_listener() { i0.ɵɵrestoreView(_r9_1); var i_r3 = i0.ɵɵnextContext().index; var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.removeRecipe(i_r3); });
25904
+ i0.ɵɵelementStart(1, "ng-miam-catalog-recipe-card", 15);
25905
+ i0.ɵɵlistener("openCatalog", function MealsPlannerResultComponent_div_6_div_1_div_1_Template_ng_miam_catalog_recipe_card_openCatalog_1_listener() { i0.ɵɵrestoreView(_r15_1); var i_r9 = i0.ɵɵnextContext().index; var ctx_r13 = i0.ɵɵnextContext(2); return ctx_r13.openCatalog.emit(i_r9); })("removeFromMealsPlanner", function MealsPlannerResultComponent_div_6_div_1_div_1_Template_ng_miam_catalog_recipe_card_removeFromMealsPlanner_1_listener() { i0.ɵɵrestoreView(_r15_1); var i_r9 = i0.ɵɵnextContext().index; var ctx_r16 = i0.ɵɵnextContext(2); return ctx_r16.removeRecipe(i_r9); });
25858
25906
  i0.ɵɵelementEnd();
25859
25907
  i0.ɵɵelementEnd();
25860
25908
  }
25861
25909
  if (rf & 2) {
25862
- var recipe_r2 = i0.ɵɵnextContext().$implicit;
25910
+ var recipe_r8 = i0.ɵɵnextContext().$implicit;
25863
25911
  i0.ɵɵadvance(1);
25864
- i0.ɵɵproperty("recipe", recipe_r2)("displayPricing", true)("previewAllowed", false)("replaceMode", true);
25912
+ i0.ɵɵproperty("recipe", recipe_r8)("displayPricing", true)("displayGuests", false)("previewAllowed", false)("replaceMode", true);
25865
25913
  }
25866
25914
  }
25867
- function MealsPlannerResultComponent_div_7_ng_template_2_Template(rf, ctx) {
25915
+ function MealsPlannerResultComponent_div_6_div_1_ng_template_2_Template(rf, ctx) {
25868
25916
  if (rf & 1) {
25869
- var _r15_1 = i0.ɵɵgetCurrentView();
25870
- i0.ɵɵelementStart(0, "ng-miam-add-recipe-card", 14);
25871
- i0.ɵɵlistener("addRecipe", function MealsPlannerResultComponent_div_7_ng_template_2_Template_ng_miam_add_recipe_card_addRecipe_0_listener() { i0.ɵɵrestoreView(_r15_1); var i_r3 = i0.ɵɵnextContext().index; var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.openCatalog.emit(i_r3); });
25917
+ var _r21_1 = i0.ɵɵgetCurrentView();
25918
+ i0.ɵɵelementStart(0, "ng-miam-add-recipe-card", 16);
25919
+ i0.ɵɵlistener("addRecipe", function MealsPlannerResultComponent_div_6_div_1_ng_template_2_Template_ng_miam_add_recipe_card_addRecipe_0_listener() { i0.ɵɵrestoreView(_r21_1); var i_r9 = i0.ɵɵnextContext().index; var ctx_r19 = i0.ɵɵnextContext(2); return ctx_r19.openCatalog.emit(i_r9); });
25872
25920
  i0.ɵɵelementEnd();
25873
25921
  }
25874
25922
  }
25875
- function MealsPlannerResultComponent_div_7_Template(rf, ctx) {
25923
+ function MealsPlannerResultComponent_div_6_div_1_Template(rf, ctx) {
25924
+ if (rf & 1) {
25925
+ i0.ɵɵelementStart(0, "div", 12);
25926
+ i0.ɵɵtemplate(1, MealsPlannerResultComponent_div_6_div_1_div_1_Template, 2, 5, "div", 13);
25927
+ i0.ɵɵtemplate(2, MealsPlannerResultComponent_div_6_div_1_ng_template_2_Template, 1, 0, "ng-template", null, 14, i0.ɵɵtemplateRefExtractor);
25928
+ i0.ɵɵelementEnd();
25929
+ }
25930
+ if (rf & 2) {
25931
+ var recipe_r8 = ctx.$implicit;
25932
+ var _r11 = i0.ɵɵreference(3);
25933
+ i0.ɵɵadvance(1);
25934
+ i0.ɵɵproperty("ngIf", recipe_r8)("ngIfElse", _r11);
25935
+ }
25936
+ }
25937
+ function MealsPlannerResultComponent_div_6_Template(rf, ctx) {
25876
25938
  if (rf & 1) {
25877
25939
  i0.ɵɵelementStart(0, "div", 10);
25878
- i0.ɵɵtemplate(1, MealsPlannerResultComponent_div_7_div_1_Template, 2, 4, "div", 11);
25879
- i0.ɵɵtemplate(2, MealsPlannerResultComponent_div_7_ng_template_2_Template, 1, 0, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor);
25940
+ i0.ɵɵtemplate(1, MealsPlannerResultComponent_div_6_div_1_Template, 4, 2, "div", 11);
25880
25941
  i0.ɵɵelementEnd();
25881
25942
  }
25882
25943
  if (rf & 2) {
25883
- var recipe_r2 = ctx.$implicit;
25884
- var _r5 = i0.ɵɵreference(3);
25944
+ var ctx_r0 = i0.ɵɵnextContext();
25885
25945
  i0.ɵɵadvance(1);
25886
- i0.ɵɵproperty("ngIf", recipe_r2)("ngIfElse", _r5);
25946
+ i0.ɵɵproperty("ngForOf", ctx_r0.recipes);
25947
+ }
25948
+ }
25949
+ function MealsPlannerResultComponent_ng_template_7_Template(rf, ctx) {
25950
+ if (rf & 1) {
25951
+ i0.ɵɵelement(0, "ng-miam-loader");
25887
25952
  }
25888
25953
  }
25889
- function MealsPlannerResultComponent_ng_miam_progress_tracker_9_Template(rf, ctx) {
25954
+ function MealsPlannerResultComponent_ng_miam_progress_tracker_10_Template(rf, ctx) {
25890
25955
  if (rf & 1) {
25891
- i0.ɵɵelement(0, "ng-miam-progress-tracker", 15);
25956
+ i0.ɵɵelement(0, "ng-miam-progress-tracker", 17);
25892
25957
  }
25893
25958
  if (rf & 2) {
25894
- var ctx_r1 = i0.ɵɵnextContext();
25895
- i0.ɵɵproperty("unit", "\u20AC")("value", ctx_r1.usedBudget)("max", ctx_r1.maxBudget);
25959
+ var ctx_r3 = i0.ɵɵnextContext();
25960
+ i0.ɵɵproperty("unit", "\u20AC")("value", ctx_r3.usedBudget)("max", ctx_r3.maxBudget);
25961
+ }
25962
+ }
25963
+ function MealsPlannerResultComponent_ng_miam_icon_12_Template(rf, ctx) {
25964
+ if (rf & 1) {
25965
+ i0.ɵɵelement(0, "ng-miam-icon", 18);
25966
+ }
25967
+ if (rf & 2) {
25968
+ var ctx_r4 = i0.ɵɵnextContext();
25969
+ i0.ɵɵproperty("iconName", ctx_r4.icon.Cart);
25970
+ }
25971
+ }
25972
+ function MealsPlannerResultComponent_ng_template_13_Template(rf, ctx) {
25973
+ if (rf & 1) {
25974
+ i0.ɵɵelement(0, "ng-miam-loader");
25896
25975
  }
25897
25976
  }
25898
25977
  var MealsPlannerResultComponent = /** @class */ (function () {
@@ -25904,6 +25983,7 @@
25904
25983
  this.recipes = [];
25905
25984
  this.usedBudget = 0;
25906
25985
  this.maxBudget = 0;
25986
+ this.loading = false;
25907
25987
  this.confirmed = new i0.EventEmitter();
25908
25988
  this.recipeRemoval = new i0.EventEmitter();
25909
25989
  this.openCatalog = new i0.EventEmitter();
@@ -25937,7 +26017,7 @@
25937
26017
  return MealsPlannerResultComponent;
25938
26018
  }());
25939
26019
  MealsPlannerResultComponent.ɵfac = function MealsPlannerResultComponent_Factory(t) { return new (t || MealsPlannerResultComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService)); };
25940
- MealsPlannerResultComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MealsPlannerResultComponent, selectors: [["ng-miam-meals-planner-result"]], inputs: { recipes: "recipes", usedBudget: "usedBudget", maxBudget: "maxBudget" }, outputs: { confirmed: "confirmed", recipeRemoval: "recipeRemoval", openCatalog: "openCatalog" }, features: [i0.ɵɵNgOnChangesFeature], decls: 14, vars: 4, consts: function () {
26020
+ MealsPlannerResultComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MealsPlannerResultComponent, selectors: [["ng-miam-meals-planner-result"]], inputs: { recipes: "recipes", usedBudget: "usedBudget", maxBudget: "maxBudget", loading: "loading" }, outputs: { confirmed: "confirmed", recipeRemoval: "recipeRemoval", openCatalog: "openCatalog" }, features: [i0.ɵɵNgOnChangesFeature], decls: 17, vars: 7, consts: function () {
25941
26021
  var i18n_0;
25942
26022
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
25943
26023
  var MSG_EXTERNAL_4657629567820612951$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_RESULT_MEALS_PLANNER_RESULT_COMPONENT_TS_1 = goog.getMsg(" id\u00E9es repas pour vous");
@@ -25954,7 +26034,7 @@
25954
26034
  else {
25955
26035
  i18n_2 = $localize(templateObject_2$A || (templateObject_2$A = __makeTemplateObject([":\u241Fcbd8320aa840fa217e5711e1e1a23bbc04cddacb\u241F1290005437956785602:Ajouter tous les ingr\u00E9dients"], [":\u241Fcbd8320aa840fa217e5711e1e1a23bbc04cddacb\u241F1290005437956785602:Ajouter tous les ingr\u00E9dients"])));
25956
26036
  }
25957
- return [[1, "miam-meals-planner-result"], [1, "miam-meals-planner-result__header"], i18n_0, [1, "miam-meals-planner-result__recipes"], ["class", "miam-meals-planner-result__recipe", 4, "ngFor", "ngForOf"], [1, "miam-meals-planner-result__cta"], ["class", "miam-meals-planner-result__progress-bar", 3, "unit", "value", "max", 4, "ngIf"], [1, "m-button-primary", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_2, [1, "miam-meals-planner-result__recipe"], [4, "ngIf", "ngIfElse"], ["addRecipeTemplate", ""], [3, "recipe", "displayPricing", "previewAllowed", "replaceMode", "openCatalog", "removeFromMealsPlanner"], [3, "addRecipe"], [1, "miam-meals-planner-result__progress-bar", 3, "unit", "value", "max"]];
26037
+ return [[1, "miam-meals-planner-result"], [1, "miam-meals-planner-result__header"], i18n_0, ["class", "miam-meals-planner-result__recipes", 4, "ngIf", "ngIfElse"], ["isLoading", ""], [1, "miam-meals-planner-result__cta"], ["class", "miam-meals-planner-result__progress-bar", 3, "unit", "value", "max", 4, "ngIf"], [1, "m-button-primary", 3, "disabled", "click"], ["width", "24", "height", "24", 3, "iconName", 4, "ngIf", "ngIfElse"], i18n_2, [1, "miam-meals-planner-result__recipes"], ["class", "miam-meals-planner-result__recipe", 4, "ngFor", "ngForOf"], [1, "miam-meals-planner-result__recipe"], [4, "ngIf", "ngIfElse"], ["addRecipeTemplate", ""], [3, "recipe", "displayPricing", "displayGuests", "previewAllowed", "replaceMode", "openCatalog", "removeFromMealsPlanner"], [3, "addRecipe"], [1, "miam-meals-planner-result__progress-bar", 3, "unit", "value", "max"], ["width", "24", "height", "24", 3, "iconName"]];
25958
26038
  }, template: function MealsPlannerResultComponent_Template(rf, ctx) {
25959
26039
  if (rf & 1) {
25960
26040
  i0.ɵɵelementStart(0, "div", 0);
@@ -25966,32 +26046,35 @@
25966
26046
  i0.ɵɵi18n(5, 2);
25967
26047
  i0.ɵɵelementEnd();
25968
26048
  i0.ɵɵelementEnd();
25969
- i0.ɵɵelementStart(6, "div", 3);
25970
- i0.ɵɵtemplate(7, MealsPlannerResultComponent_div_7_Template, 4, 2, "div", 4);
25971
- i0.ɵɵelementEnd();
25972
- i0.ɵɵelementStart(8, "div", 5);
25973
- i0.ɵɵtemplate(9, MealsPlannerResultComponent_ng_miam_progress_tracker_9_Template, 1, 3, "ng-miam-progress-tracker", 6);
25974
- i0.ɵɵelementStart(10, "button", 7);
25975
- i0.ɵɵlistener("click", function MealsPlannerResultComponent_Template_button_click_10_listener() { return ctx.submit(); });
25976
- i0.ɵɵelement(11, "ng-miam-icon", 8);
25977
- i0.ɵɵelementStart(12, "span");
25978
- i0.ɵɵi18n(13, 9);
26049
+ i0.ɵɵtemplate(6, MealsPlannerResultComponent_div_6_Template, 2, 1, "div", 3);
26050
+ i0.ɵɵtemplate(7, MealsPlannerResultComponent_ng_template_7_Template, 1, 0, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
26051
+ i0.ɵɵelementStart(9, "div", 5);
26052
+ i0.ɵɵtemplate(10, MealsPlannerResultComponent_ng_miam_progress_tracker_10_Template, 1, 3, "ng-miam-progress-tracker", 6);
26053
+ i0.ɵɵelementStart(11, "button", 7);
26054
+ i0.ɵɵlistener("click", function MealsPlannerResultComponent_Template_button_click_11_listener() { return ctx.submit(); });
26055
+ i0.ɵɵtemplate(12, MealsPlannerResultComponent_ng_miam_icon_12_Template, 1, 1, "ng-miam-icon", 8);
26056
+ i0.ɵɵtemplate(13, MealsPlannerResultComponent_ng_template_13_Template, 1, 0, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
26057
+ i0.ɵɵelementStart(15, "span");
26058
+ i0.ɵɵi18n(16, 9);
25979
26059
  i0.ɵɵelementEnd();
25980
26060
  i0.ɵɵelementEnd();
25981
26061
  i0.ɵɵelementEnd();
25982
26062
  i0.ɵɵelementEnd();
25983
26063
  }
25984
26064
  if (rf & 2) {
26065
+ var _r1 = i0.ɵɵreference(8);
25985
26066
  i0.ɵɵadvance(3);
25986
26067
  i0.ɵɵtextInterpolate1(" ", ctx.recipes.length, "");
26068
+ i0.ɵɵadvance(3);
26069
+ i0.ɵɵproperty("ngIf", ctx.recipes.length !== 0)("ngIfElse", _r1);
25987
26070
  i0.ɵɵadvance(4);
25988
- i0.ɵɵproperty("ngForOf", ctx.recipes);
25989
- i0.ɵɵadvance(2);
25990
26071
  i0.ɵɵproperty("ngIf", ctx.context.antiInflation);
25991
- i0.ɵɵadvance(2);
25992
- i0.ɵɵproperty("iconName", ctx.icon.Cart);
26072
+ i0.ɵɵadvance(1);
26073
+ i0.ɵɵproperty("disabled", ctx.loading);
26074
+ i0.ɵɵadvance(1);
26075
+ i0.ɵɵproperty("ngIf", !ctx.loading)("ngIfElse", _r1);
25993
26076
  }
25994
- }, directives: [i2$1.NgForOf, i2$1.NgIf, IconComponent, CatalogRecipeCardComponent, AddRecipeCardComponent, ProgressTrackerComponent], styles: [".miam-meals-planner-result{display:flex;flex-direction:column;height:100%;width:100%}.miam-meals-planner-result .miam-meals-planner-result__header{font-size:24px;font-weight:900;line-height:120%;padding:32px 24px;width:100%}.miam-meals-planner-result .miam-meals-planner-result__recipes{display:flex;flex-flow:row wrap;gap:var(--m-catalog-cards-spacing);padding:0 24px}.miam-meals-planner-result .miam-meals-planner-result__progress-bar{align-items:center;display:flex;justify-content:center;max-width:300px;padding:16px;width:100%}.miam-meals-planner-result .miam-meals-planner-result__cta{align-items:center;display:flex;justify-content:space-evenly;padding:24px;width:100%}@media (max-width:1023px){.miam-meals-planner-result .miam-meals-planner-result__header{display:none}.miam-meals-planner-result .miam-meals-planner-result__recipes{justify-content:center}.miam-meals-planner-result .miam-meals-planner-result__recipes .miam-meals-planner-result__recipes{margin-top:var(--m-catalog-cards-spacing)}.miam-meals-planner-result .miam-meals-planner-result__progress-bar{align-items:flex-start}.miam-meals-planner-result .miam-meals-planner-result__progress-bar .miam-progress-tracker .miam-progress-tracker__content{align-items:flex-start;flex-direction:column}.miam-meals-planner-result .miam-meals-planner-result__progress-bar .miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__value{margin-left:0;margin-top:3px}.miam-meals-planner-result .miam-meals-planner-result__cta{background-color:#fff;border-top:1px solid #d9dde1;bottom:0;padding:16px;position:fixed;position:-webkit-sticky;z-index:1}.miam-meals-planner-result .miam-meals-planner-result__cta .m-button-primary{border-radius:6px;padding:14px;width:100%}}"], encapsulation: 2, changeDetection: 0 });
26077
+ }, directives: [i2$1.NgIf, i2$1.NgForOf, CatalogRecipeCardComponent, AddRecipeCardComponent, LoaderComponent, ProgressTrackerComponent, IconComponent], styles: [".miam-meals-planner-result{display:flex;flex-direction:column;height:100%;width:100%}.miam-meals-planner-result .miam-meals-planner-result__header{font-size:24px;font-weight:900;line-height:120%;padding:32px 24px;width:100%}.miam-meals-planner-result .miam-meals-planner-result__recipes{display:flex;flex-flow:row wrap;gap:var(--m-catalog-cards-spacing);padding:0 24px}.miam-meals-planner-result .miam-meals-planner-result__progress-bar{align-items:center;display:flex;justify-content:center;max-width:300px;padding:16px;width:100%}.miam-meals-planner-result .miam-meals-planner-result__cta{align-items:center;display:flex;justify-content:space-evenly;padding:24px;width:100%}.miam-meals-planner-result .miam-meals-planner-result__cta .m-button-primary .miam-loader{border:4px solid var(--m-color-grey);border-top:4px solid var(--m-color-grey);border-top-color:var(--m-color-primary);height:28px;margin-right:8px;width:28px}@media (max-width:1023px){.miam-meals-planner-result .miam-meals-planner-result__header{display:none}.miam-meals-planner-result .miam-meals-planner-result__recipes{justify-content:center}.miam-meals-planner-result .miam-meals-planner-result__recipes .miam-meals-planner-result__recipes{margin-top:var(--m-catalog-cards-spacing)}.miam-meals-planner-result .miam-meals-planner-result__progress-bar{align-items:flex-start}.miam-meals-planner-result .miam-meals-planner-result__progress-bar .miam-progress-tracker .miam-progress-tracker__content{align-items:flex-start;flex-direction:column}.miam-meals-planner-result .miam-meals-planner-result__progress-bar .miam-progress-tracker .miam-progress-tracker__content .miam-progress-tracker__value{margin-left:0;margin-top:3px}.miam-meals-planner-result .miam-meals-planner-result__cta{background-color:#fff;border-top:1px solid #d9dde1;bottom:0;padding:16px;position:fixed;position:-webkit-sticky;z-index:1}.miam-meals-planner-result .miam-meals-planner-result__cta .m-button-primary{border-radius:6px;padding:14px;width:100%}}"], encapsulation: 2, changeDetection: 0 });
25995
26078
  /*@__PURE__*/ (function () {
25996
26079
  i0.ɵsetClassMetadata(MealsPlannerResultComponent, [{
25997
26080
  type: i0.Component,
@@ -26008,6 +26091,8 @@
26008
26091
  type: i0.Input
26009
26092
  }], maxBudget: [{
26010
26093
  type: i0.Input
26094
+ }], loading: [{
26095
+ type: i0.Input
26011
26096
  }], confirmed: [{
26012
26097
  type: i0.Output
26013
26098
  }], recipeRemoval: [{
@@ -26208,7 +26293,7 @@
26208
26293
 
26209
26294
  function MealsPlannerCatalogComponent_div_14_Template(rf, ctx) {
26210
26295
  if (rf & 1) {
26211
- i0.ɵɵelementStart(0, "div", 16);
26296
+ i0.ɵɵelementStart(0, "div", 15);
26212
26297
  i0.ɵɵtext(1);
26213
26298
  i0.ɵɵelementEnd();
26214
26299
  }
@@ -26278,7 +26363,7 @@
26278
26363
  return MealsPlannerCatalogComponent;
26279
26364
  }());
26280
26365
  MealsPlannerCatalogComponent.ɵfac = function MealsPlannerCatalogComponent_Factory(t) { return new (t || MealsPlannerCatalogComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService)); };
26281
- MealsPlannerCatalogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MealsPlannerCatalogComponent, selectors: [["ng-miam-meals-planner-catalog"]], inputs: { modifiedGuests: "modifiedGuests", remainingBudget: "remainingBudget", remainingRecipesNumber: "remainingRecipesNumber" }, outputs: { canceled: "canceled", editRecipe: "editRecipe" }, decls: 17, vars: 12, consts: function () {
26366
+ MealsPlannerCatalogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MealsPlannerCatalogComponent, selectors: [["ng-miam-meals-planner-catalog"]], inputs: { modifiedGuests: "modifiedGuests", remainingBudget: "remainingBudget", remainingRecipesNumber: "remainingRecipesNumber" }, outputs: { canceled: "canceled", editRecipe: "editRecipe" }, decls: 17, vars: 13, consts: function () {
26282
26367
  var i18n_0;
26283
26368
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
26284
26369
  var MSG_EXTERNAL_2741573127118604046$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_CATALOG_MEALS_PLANNER_CATALOG_COMPONENT_TS_1 = goog.getMsg("Notre catalogue");
@@ -26295,43 +26380,41 @@
26295
26380
  else {
26296
26381
  i18n_2 = $localize(templateObject_2$C || (templateObject_2$C = __makeTemplateObject([":\u241F43a5be6775550e305fdcc873e3fe93fe756b2340\u241F673430564078029527:Filtrer"], [":\u241F43a5be6775550e305fdcc873e3fe93fe756b2340\u241F673430564078029527:Filtrer"])));
26297
26382
  }
26298
- return [[1, "miam-meals-planner-catalog"], [1, "miam-meals-planner-catalog__title"], ["width", "24", "height", "24", 3, "iconName", "click"], [3, "click"], i18n_0, [1, "miam-meals-planner-catalog__search-and-filters"], [1, "miam-meals-planner-catalog__searchbar"], ["type", "text", "placeholder", "Chercher un ingr\u00E9dient ou un repas", 1, "miam-meals-planner-catalog__searchbar__input", 3, "ngModel", "ngModelChange", "keydown.enter", "blur"], [1, "miam-meals-planner-catalog__searchbar__button", "m-button-primary"], ["width", "20", "height", "20", 3, "iconName", "click"], [1, "miam-meals-planner-catalog__controls__filter", "m-button-primary", 3, "click"], ["width", "18", "height", "18", 3, "iconName"], i18n_2, ["class", "miam-meals-planner-catalog__controls__filter-badge", 4, "ngIf"], [3, "filters", "isFilterCollapsed", "position", "filterChanged", "filterCollapsed"], [3, "displayPricing", "addRecipeMode", "modifiedGuests", "filters", "addToMealsPlanner"], [1, "miam-meals-planner-catalog__controls__filter-badge"]];
26383
+ return [[1, "miam-meals-planner-catalog"], [1, "miam-meals-planner-catalog__title", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_0, [1, "miam-meals-planner-catalog__search-and-filters"], [1, "miam-meals-planner-catalog__searchbar"], ["type", "text", "placeholder", "Chercher un ingr\u00E9dient ou un repas", 1, "miam-meals-planner-catalog__searchbar__input", 3, "ngModel", "ngModelChange", "keydown.enter", "blur"], [1, "miam-meals-planner-catalog__searchbar__button", "m-button-primary"], ["width", "20", "height", "20", 3, "iconName", "click"], [1, "miam-meals-planner-catalog__controls__filter", "m-button-primary", 3, "click"], ["width", "18", "height", "18", 3, "iconName"], i18n_2, ["class", "miam-meals-planner-catalog__controls__filter-badge", 4, "ngIf"], [3, "filters", "isFilterCollapsed", "position", "filterChanged", "filterCollapsed"], [3, "displayPricing", "addRecipeMode", "modifiedGuests", "filters", "displayGuests", "addToMealsPlanner"], [1, "miam-meals-planner-catalog__controls__filter-badge"]];
26299
26384
  }, template: function MealsPlannerCatalogComponent_Template(rf, ctx) {
26300
26385
  if (rf & 1) {
26301
26386
  i0.ɵɵelementStart(0, "div", 0);
26302
26387
  i0.ɵɵelementStart(1, "div", 1);
26303
- i0.ɵɵelementStart(2, "ng-miam-icon", 2);
26304
- i0.ɵɵlistener("click", function MealsPlannerCatalogComponent_Template_ng_miam_icon_click_2_listener() { return ctx.canceled.emit(); });
26305
- i0.ɵɵelementEnd();
26306
- i0.ɵɵelementStart(3, "span", 3);
26307
- i0.ɵɵlistener("click", function MealsPlannerCatalogComponent_Template_span_click_3_listener() { return ctx.canceled.emit(); });
26308
- i0.ɵɵi18n(4, 4);
26388
+ i0.ɵɵlistener("click", function MealsPlannerCatalogComponent_Template_div_click_1_listener() { return ctx.canceled.emit(); });
26389
+ i0.ɵɵelement(2, "ng-miam-icon", 2);
26390
+ i0.ɵɵelementStart(3, "span");
26391
+ i0.ɵɵi18n(4, 3);
26309
26392
  i0.ɵɵelementEnd();
26310
26393
  i0.ɵɵelementEnd();
26311
- i0.ɵɵelementStart(5, "div", 5);
26312
- i0.ɵɵelementStart(6, "div", 6);
26313
- i0.ɵɵelementStart(7, "input", 7);
26394
+ i0.ɵɵelementStart(5, "div", 4);
26395
+ i0.ɵɵelementStart(6, "div", 5);
26396
+ i0.ɵɵelementStart(7, "input", 6);
26314
26397
  i0.ɵɵlistener("ngModelChange", function MealsPlannerCatalogComponent_Template_input_ngModelChange_7_listener($event) { return ctx.searchString = $event; })("keydown.enter", function MealsPlannerCatalogComponent_Template_input_keydown_enter_7_listener() { return ctx.updateSearchString(); })("blur", function MealsPlannerCatalogComponent_Template_input_blur_7_listener() { return ctx.updateSearchString(); });
26315
26398
  i0.ɵɵelementEnd();
26316
- i0.ɵɵelementStart(8, "button", 8);
26317
- i0.ɵɵelementStart(9, "ng-miam-icon", 9);
26399
+ i0.ɵɵelementStart(8, "button", 7);
26400
+ i0.ɵɵelementStart(9, "ng-miam-icon", 8);
26318
26401
  i0.ɵɵlistener("click", function MealsPlannerCatalogComponent_Template_ng_miam_icon_click_9_listener() { return ctx.updateSearchString(); });
26319
26402
  i0.ɵɵelementEnd();
26320
26403
  i0.ɵɵelementEnd();
26321
26404
  i0.ɵɵelementEnd();
26322
- i0.ɵɵelementStart(10, "button", 10);
26405
+ i0.ɵɵelementStart(10, "button", 9);
26323
26406
  i0.ɵɵlistener("click", function MealsPlannerCatalogComponent_Template_button_click_10_listener() { return ctx.onFilterCollapsed(); });
26324
- i0.ɵɵelement(11, "ng-miam-icon", 11);
26407
+ i0.ɵɵelement(11, "ng-miam-icon", 10);
26325
26408
  i0.ɵɵelementStart(12, "span");
26326
- i0.ɵɵi18n(13, 12);
26409
+ i0.ɵɵi18n(13, 11);
26327
26410
  i0.ɵɵelementEnd();
26328
- i0.ɵɵtemplate(14, MealsPlannerCatalogComponent_div_14_Template, 2, 1, "div", 13);
26411
+ i0.ɵɵtemplate(14, MealsPlannerCatalogComponent_div_14_Template, 2, 1, "div", 12);
26329
26412
  i0.ɵɵelementEnd();
26330
26413
  i0.ɵɵelementEnd();
26331
- i0.ɵɵelementStart(15, "ng-miam-recipe-filters", 14);
26414
+ i0.ɵɵelementStart(15, "ng-miam-recipe-filters", 13);
26332
26415
  i0.ɵɵlistener("filterChanged", function MealsPlannerCatalogComponent_Template_ng_miam_recipe_filters_filterChanged_15_listener($event) { return ctx.updateFilters($event); })("filterCollapsed", function MealsPlannerCatalogComponent_Template_ng_miam_recipe_filters_filterCollapsed_15_listener() { return ctx.onFilterCollapsed(); });
26333
26416
  i0.ɵɵelementEnd();
26334
- i0.ɵɵelementStart(16, "ng-miam-catalog-list", 15);
26417
+ i0.ɵɵelementStart(16, "ng-miam-catalog-list", 14);
26335
26418
  i0.ɵɵlistener("addToMealsPlanner", function MealsPlannerCatalogComponent_Template_ng_miam_catalog_list_addToMealsPlanner_16_listener($event) { return ctx.editRecipe.emit($event); });
26336
26419
  i0.ɵɵelementEnd();
26337
26420
  i0.ɵɵelementEnd();
@@ -26350,9 +26433,9 @@
26350
26433
  i0.ɵɵadvance(1);
26351
26434
  i0.ɵɵproperty("filters", ctx.filters)("isFilterCollapsed", ctx.isFilterCollapsed)("position", "right");
26352
26435
  i0.ɵɵadvance(1);
26353
- i0.ɵɵproperty("displayPricing", true)("addRecipeMode", true)("modifiedGuests", ctx.modifiedGuests)("filters", ctx.filters);
26436
+ i0.ɵɵproperty("displayPricing", true)("addRecipeMode", true)("modifiedGuests", ctx.modifiedGuests)("filters", ctx.filters)("displayGuests", false);
26354
26437
  }
26355
- }, directives: [IconComponent, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i2$1.NgIf, RecipeFiltersComponent, CatalogListComponent], styles: [".miam-meals-planner-catalog .miam-meals-planner-catalog__title{display:flex;flex-direction:row;font-size:24px;font-weight:900;line-height:120%;margin-bottom:24px}.miam-meals-planner-catalog .miam-meals-planner-catalog__title ng-miam-icon{cursor:pointer;transform:rotate(90deg)}.miam-meals-planner-catalog .miam-meals-planner-catalog__title ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-primary)}.miam-meals-planner-catalog .miam-meals-planner-catalog__title span{cursor:pointer;margin-left:16px}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters{align-items:center;display:flex;justify-content:space-between;margin-bottom:24px;width:100%}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar{align-items:center;background:var(--m-color-white);border:1px solid #ddd;border-radius:var(--m-border-radius-pill);display:flex;font-size:14px;height:45px;margin-right:8px;padding:0 2px 0 20px;width:400px}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar .miam-meals-planner-catalog__searchbar__input{background:transparent;border:transparent;flex:1;outline:none!important}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar .miam-meals-planner-catalog__searchbar__button{padding:10px}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar .miam-meals-planner-catalog__searchbar__button:hover{border-color:transparent}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__controls__filter{border-color:transparent;font-weight:700;position:relative}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__controls__filter .miam-meals-planner-catalog__controls__filter-badge{align-items:center;background-color:var(--m-catalog-redpoint-color);border-radius:var(--m-border-radius-circle);color:var(--m-catalog-redpoint-text-color);display:flex;font-size:12px;height:18px;justify-content:center;line-height:18px;position:absolute;right:-4px;top:-4px;width:18px}@media (max-width:1023px){.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar{width:300px}.miam-meals-planner-catalog .miam-meals-planner-catalog__controls__filter{border-radius:var(--m-border-radius-circle);padding:10px}.miam-meals-planner-catalog .miam-meals-planner-catalog__controls__filter span{display:none}.miam-meals-planner-catalog .miam-meals-planner-catalog__controls__filter ng-miam-icon{margin-right:0!important}}@media (max-width:607px){.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters{justify-content:center}}"], encapsulation: 2, changeDetection: 0 });
26438
+ }, directives: [IconComponent, i3.DefaultValueAccessor, i3.NgControlStatus, i3.NgModel, i2$1.NgIf, RecipeFiltersComponent, CatalogListComponent], styles: [".miam-meals-planner-catalog .miam-meals-planner-catalog__title{display:flex;flex-direction:row;font-size:24px;font-weight:900;line-height:120%;margin-bottom:24px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.miam-meals-planner-catalog .miam-meals-planner-catalog__title ng-miam-icon{cursor:pointer;transform:rotate(90deg)}.miam-meals-planner-catalog .miam-meals-planner-catalog__title ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-primary)}.miam-meals-planner-catalog .miam-meals-planner-catalog__title span{cursor:pointer;margin-left:16px}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters{align-items:center;display:flex;justify-content:space-between;margin-bottom:24px;width:100%}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar{align-items:center;background:var(--m-color-white);border:1px solid #ddd;border-radius:var(--m-border-radius-pill);display:flex;font-size:14px;height:45px;margin-right:8px;padding:0 2px 0 20px;width:400px}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar .miam-meals-planner-catalog__searchbar__input{background:transparent;border:transparent;flex:1;outline:none!important}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar .miam-meals-planner-catalog__searchbar__button{padding:10px}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar .miam-meals-planner-catalog__searchbar__button:hover{border-color:transparent}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__controls__filter{border-color:transparent;font-weight:700;position:relative}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__controls__filter .miam-meals-planner-catalog__controls__filter-badge{align-items:center;background-color:var(--m-catalog-redpoint-color);border-radius:var(--m-border-radius-circle);color:var(--m-catalog-redpoint-text-color);display:flex;font-size:12px;height:18px;justify-content:center;line-height:18px;position:absolute;right:-4px;top:-4px;width:18px}@media (max-width:1023px){.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar{width:300px}.miam-meals-planner-catalog .miam-meals-planner-catalog__controls__filter{border-radius:var(--m-border-radius-circle);padding:10px}.miam-meals-planner-catalog .miam-meals-planner-catalog__controls__filter span{display:none}.miam-meals-planner-catalog .miam-meals-planner-catalog__controls__filter ng-miam-icon{margin-right:0!important}}@media (max-width:607px){.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters{justify-content:center}}"], encapsulation: 2, changeDetection: 0 });
26356
26439
  /*@__PURE__*/ (function () {
26357
26440
  i0.ɵsetClassMetadata(MealsPlannerCatalogComponent, [{
26358
26441
  type: i0.Component,
@@ -26524,7 +26607,7 @@
26524
26607
  }
26525
26608
  if (rf & 2) {
26526
26609
  var ctx_r3 = i0.ɵɵnextContext(2);
26527
- i0.ɵɵproperty("recipes", ctx_r3.budgettedRecipes)("usedBudget", ctx_r3.usedBudget)("maxBudget", ctx_r3.maxBudget);
26610
+ i0.ɵɵproperty("recipes", ctx_r3.budgettedRecipes)("usedBudget", ctx_r3.usedBudget)("maxBudget", ctx_r3.maxBudget)("loading", ctx_r3.loading);
26528
26611
  }
26529
26612
  }
26530
26613
  function MealsPlannerComponent_div_15_ng_miam_meals_planner_basket_preview_3_Template(rf, ctx) {
@@ -26564,7 +26647,7 @@
26564
26647
  if (rf & 1) {
26565
26648
  i0.ɵɵelementStart(0, "div", 13);
26566
26649
  i0.ɵɵtemplate(1, MealsPlannerComponent_div_15_ng_miam_meals_planner_form_1_Template, 1, 5, "ng-miam-meals-planner-form", 14);
26567
- i0.ɵɵtemplate(2, MealsPlannerComponent_div_15_ng_miam_meals_planner_result_2_Template, 1, 3, "ng-miam-meals-planner-result", 15);
26650
+ i0.ɵɵtemplate(2, MealsPlannerComponent_div_15_ng_miam_meals_planner_result_2_Template, 1, 4, "ng-miam-meals-planner-result", 15);
26568
26651
  i0.ɵɵtemplate(3, MealsPlannerComponent_div_15_ng_miam_meals_planner_basket_preview_3_Template, 1, 6, "ng-miam-meals-planner-basket-preview", 16);
26569
26652
  i0.ɵɵtemplate(4, MealsPlannerComponent_div_15_ng_miam_meals_planner_catalog_4_Template, 1, 3, "ng-miam-meals-planner-catalog", 17);
26570
26653
  i0.ɵɵtemplate(5, MealsPlannerComponent_div_15_ng_miam_meals_planner_basket_confirmation_5_Template, 1, 2, "ng-miam-meals-planner-basket-confirmation", 18);
@@ -26610,6 +26693,7 @@
26610
26693
  _this.icon = exports.Icon;
26611
26694
  _this.catalogMode = false;
26612
26695
  _this.basketConfirmed = false;
26696
+ _this.loading = false;
26613
26697
  // Progress bar
26614
26698
  _this.usedBudget = 0;
26615
26699
  _this.maxBudget = 0;
@@ -26633,6 +26717,8 @@
26633
26717
  };
26634
26718
  MealsPlannerComponent.prototype.fetchRecipes = function (inputs) {
26635
26719
  var _this = this;
26720
+ this.loading = true;
26721
+ this.cdr.detectChanges();
26636
26722
  if (this.contextService.displayIngredientPicturesOnRecipeCards && !recipeIncludes$5.includes('ingredients')) {
26637
26723
  recipeIncludes$5.push('ingredients');
26638
26724
  recipeSparseFields$5.recipes.push('ingredients');
@@ -26642,6 +26728,7 @@
26642
26728
  _this.budgettedRecipes = []; // Refresh the result view
26643
26729
  _this.cdr.detectChanges();
26644
26730
  _this.budgettedRecipes = recipes;
26731
+ _this.loading = false;
26645
26732
  _this.cdr.detectChanges();
26646
26733
  return _this.fetchRecipesPricing();
26647
26734
  })).subscribe(function (pricings) {
@@ -26658,14 +26745,30 @@
26658
26745
  MealsPlannerComponent.prototype.currentPath = function () { return 'miam/meals-planner'; };
26659
26746
  MealsPlannerComponent.prototype.addRecipes = function () {
26660
26747
  var _this = this;
26748
+ this.loading = true;
26749
+ this.cdr.detectChanges();
26661
26750
  this.subscriptions.push(this.groceriesListsService.appendRecipesToList(this.budgettedRecipes.filter(function (r) { return r === null || r === void 0 ? void 0 : r.id; }).map(function (r) { return ({ id: r.id, guests: r.modifiedGuests }); }), // remove empty recipes
26662
26751
  this.eventTrace()).pipe(operators.take(1), operators.switchMap(function () {
26663
26752
  _this.addedRecipesIds = _this.budgettedRecipes.filter(function (r) { return r === null || r === void 0 ? void 0 : r.id; }).map(function (r) { return r.id; });
26664
26753
  _this.scrollToTop();
26754
+ _this.loading = false;
26755
+ _this.cdr.detectChanges();
26665
26756
  return _this.basketsService.basketPreview$;
26666
- })).subscribe(function (basketPreviewLines) {
26667
- _this.fetchBasketPreviewPricing(basketPreviewLines);
26668
- }));
26757
+ }), operators.switchMap(function (basketPreviewLines) {
26758
+ if (!_this.containsSomeAddedRecipe(basketPreviewLines)) {
26759
+ return _this.fetchBudgetValues();
26760
+ }
26761
+ return rxjs.of(_this.fetchBasketPreviewPricing(basketPreviewLines));
26762
+ })).subscribe());
26763
+ };
26764
+ MealsPlannerComponent.prototype.containsSomeAddedRecipe = function (basketPreviewLines) {
26765
+ var containsSomeAddedRecipeId = false;
26766
+ this.addedRecipesIds.forEach(function (recipeId) {
26767
+ if (basketPreviewLines.some(function (line) { return line.id === recipeId; })) {
26768
+ containsSomeAddedRecipeId = true;
26769
+ }
26770
+ });
26771
+ return containsSomeAddedRecipeId;
26669
26772
  };
26670
26773
  MealsPlannerComponent.prototype.fetchBasketPreviewPricing = function (basketPreviewLines) {
26671
26774
  var _this = this;
@@ -26699,8 +26802,11 @@
26699
26802
  return requests.length > 0 ? rxjs.forkJoin(requests) : rxjs.of([]);
26700
26803
  };
26701
26804
  MealsPlannerComponent.prototype.updateBudgetValues = function () {
26805
+ this.subscriptions.push(this.fetchBudgetValues().subscribe());
26806
+ };
26807
+ MealsPlannerComponent.prototype.fetchBudgetValues = function () {
26702
26808
  var _this = this;
26703
- this.subscriptions.push(this.fetchRecipesPricing().subscribe(function (pricings) {
26809
+ return this.fetchRecipesPricing().pipe(operators.tap(function (pricings) {
26704
26810
  _this.usedBudget = pricings.length > 0 ? pricings.reduce(function (acc, pricing) { return acc + pricing.price; }, 0) : 0;
26705
26811
  _this.usedBudget = Math.round(_this.usedBudget * 100) / 100;
26706
26812
  _this.maxBudget = _this.form.value.budget;
@@ -26788,7 +26894,7 @@
26788
26894
  else {
26789
26895
  i18n_3 = $localize(templateObject_2$E || (templateObject_2$E = __makeTemplateObject([":\u241F1699ac3b921e6d286c72605705ac342f122b2652\u241F406825433402702343:Planifier mes repas"], [":\u241F1699ac3b921e6d286c72605705ac342f122b2652\u241F406825433402702343:Planifier mes repas"])));
26790
26896
  }
26791
- return [[1, "miam-meals-planner-anchor"], ["miamMealsPlannerTopAnchor", ""], [1, "miam-meals-planner"], [1, "miam-meals-planner__header"], [1, "miam-meals-planner__header__breadcrumb", 3, "ngClass"], ["href", "/"], ["width", "18", "height", "18", "primaryColor", "#1F3543", 3, "iconName"], ["width", "24", "height", "24", 1, "chevron-right", 3, "iconName"], [1, "inactive", 3, "href"], i18n_1, ["href", "javascript:void(0)", 1, "active"], i18n_3, ["class", "miam-meals-planner__content", 4, "ngIf"], [1, "miam-meals-planner__content"], [3, "reduced", "form", "ngClass", "submitted", 4, "ngIf"], [3, "recipes", "usedBudget", "maxBudget", "recipeRemoval", "confirmed", "openCatalog", 4, "ngIf"], [3, "recipesIds", "usedBudget", "maxBudget", "ngClass", "closed", 4, "ngIf"], [3, "modifiedGuests", "remainingBudget", "remainingRecipesNumber", "editRecipe", "canceled", 4, "ngIf"], [3, "recipesIds", "budget", 4, "ngIf"], [3, "reduced", "form", "ngClass", "submitted"], [3, "recipes", "usedBudget", "maxBudget", "recipeRemoval", "confirmed", "openCatalog"], [3, "recipesIds", "usedBudget", "maxBudget", "ngClass", "closed"], [3, "modifiedGuests", "remainingBudget", "remainingRecipesNumber", "editRecipe", "canceled"], [3, "recipesIds", "budget"]];
26897
+ return [[1, "miam-meals-planner-anchor"], ["miamMealsPlannerTopAnchor", ""], [1, "miam-meals-planner"], [1, "miam-meals-planner__header"], [1, "miam-meals-planner__header__breadcrumb", 3, "ngClass"], ["href", "/"], ["width", "18", "height", "18", "primaryColor", "#1F3543", 3, "iconName"], ["width", "24", "height", "24", 1, "chevron-right", 3, "iconName"], [1, "inactive", 3, "href"], i18n_1, ["href", "javascript:void(0)", 1, "active"], i18n_3, ["class", "miam-meals-planner__content", 4, "ngIf"], [1, "miam-meals-planner__content"], [3, "reduced", "form", "ngClass", "submitted", 4, "ngIf"], [3, "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog", 4, "ngIf"], [3, "recipesIds", "usedBudget", "maxBudget", "ngClass", "closed", 4, "ngIf"], [3, "modifiedGuests", "remainingBudget", "remainingRecipesNumber", "editRecipe", "canceled", 4, "ngIf"], [3, "recipesIds", "budget", 4, "ngIf"], [3, "reduced", "form", "ngClass", "submitted"], [3, "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog"], [3, "recipesIds", "usedBudget", "maxBudget", "ngClass", "closed"], [3, "modifiedGuests", "remainingBudget", "remainingRecipesNumber", "editRecipe", "canceled"], [3, "recipesIds", "budget"]];
26792
26898
  }, template: function MealsPlannerComponent_Template(rf, ctx) {
26793
26899
  if (rf & 1) {
26794
26900
  i0.ɵɵelement(0, "div", 0, 1);
@@ -27102,7 +27208,7 @@
27102
27208
  request = request.clone({
27103
27209
  setHeaders: {
27104
27210
  'miam-origin': context.origin,
27105
- 'miam-front-version': '6.3.0',
27211
+ 'miam-front-version': '6.3.1',
27106
27212
  'miam-front-type': 'web',
27107
27213
  'miam-api-version': '4.7.0'
27108
27214
  }