ng-miam 3.4.6 → 3.5.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 (38) hide show
  1. package/bundles/ng-miam.umd.js +844 -668
  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 +13 -3
  6. package/esm2015/lib/_models/index.js +2 -1
  7. package/esm2015/lib/_models/ingredient.js +3 -3
  8. package/esm2015/lib/_models/recipe.js +2 -1
  9. package/esm2015/lib/_models/tag.js +22 -0
  10. package/esm2015/lib/_services/groceries-lists.service.js +10 -13
  11. package/esm2015/lib/_services/index.js +2 -1
  12. package/esm2015/lib/_services/recipes.service.js +13 -8
  13. package/esm2015/lib/_services/tags.service.js +29 -0
  14. package/esm2015/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.js +2 -2
  15. package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +162 -172
  16. package/esm2015/lib/_web-components/basket-preview/replace-item/replace-item.component.js +23 -34
  17. package/esm2015/lib/_web-components/catalog-list/catalog-list.component.js +2 -2
  18. package/esm2015/lib/_web-components/catalog-recipe-card/catalog-recipe-card.component.js +97 -85
  19. package/esm2015/lib/_web-components/order-button/order-button.component.js +1 -1
  20. package/esm2015/lib/_web-components/recipe-card/recipe-card.component.js +96 -81
  21. package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +268 -194
  22. package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +3 -3
  23. package/esm2015/lib/_web-components/recipes-history/recipes-history.component.js +4 -2
  24. package/fesm2015/ng-miam.js +787 -654
  25. package/fesm2015/ng-miam.js.map +1 -1
  26. package/lib/_components/abstracts/abstract-recipe-card.component.d.ts +2 -0
  27. package/lib/_models/index.d.ts +1 -0
  28. package/lib/_models/ingredient.d.ts +1 -1
  29. package/lib/_models/tag.d.ts +15 -0
  30. package/lib/_services/context.service.d.ts +1 -1
  31. package/lib/_services/groceries-lists.service.d.ts +2 -2
  32. package/lib/_services/index.d.ts +1 -0
  33. package/lib/_services/recipes.service.d.ts +4 -2
  34. package/lib/_services/tags.service.d.ts +14 -0
  35. package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts +1 -2
  36. package/lib/_web-components/recipe-card/recipe-card.component.d.ts +1 -1
  37. package/lib/_web-components/recipe-details/recipe-details.component.d.ts +6 -2
  38. package/package.json +1 -1
@@ -739,10 +739,9 @@
739
739
  }
740
740
  info.guests = guests.toString();
741
741
  }
742
- delete (list.attributes['recipes-ids']);
743
- this.saveList(list, openBasket);
742
+ return this.saveList(list, openBasket);
744
743
  }
745
- return this.list$;
744
+ return rxjs.of(null);
746
745
  };
747
746
  GroceriesListsService.prototype.removeRecipeFromList = function (recipeId) {
748
747
  var list = this.list$.value;
@@ -750,11 +749,10 @@
750
749
  list.attributes['recipes-infos'] = list.attributes['recipes-infos'].filter(function (info) {
751
750
  return info.id !== recipeId;
752
751
  });
753
- delete (list.attributes['recipes-ids']);
754
752
  this.analyticsService.sendEvent('remove-recipe');
755
- this.saveList(list);
753
+ return this.saveList(list);
756
754
  }
757
- return this.list$;
755
+ return rxjs.of(null);
758
756
  };
759
757
  GroceriesListsService.prototype.updateRecipeGuests = function (recipeId, guests) {
760
758
  var list = this.list$.value;
@@ -764,16 +762,15 @@
764
762
  });
765
763
  recipeInfo.guests = guests;
766
764
  this.analyticsService.sendEvent('change-guests');
767
- this.saveList(list);
765
+ this.saveList(list).subscribe();
768
766
  }
769
767
  return this.list$;
770
768
  };
771
769
  GroceriesListsService.prototype.removeRecipesFromList = function () {
772
770
  var list = this.list$.value;
773
771
  list.attributes['recipes-infos'] = [];
774
- delete (list.attributes['recipes-ids']);
775
772
  this.analyticsService.sendEvent('remove-all-recipes');
776
- this.saveList(list);
773
+ this.saveList(list).subscribe();
777
774
  return this.list$;
778
775
  };
779
776
  GroceriesListsService.prototype.addEntriesFromPicture = function (file, include) {
@@ -795,12 +792,12 @@
795
792
  var _this = this;
796
793
  if (openBasket === void 0) { openBasket = false; }
797
794
  delete (list.attributes['recipes-ids']);
798
- list.save().pipe(operators.tap(function () {
795
+ return list.save().pipe(operators.skipWhile(function (l) { return l.is_loading; }), operators.tap(function () {
799
796
  _this.list$.next(list);
800
797
  if (openBasket) {
801
798
  window.open(_this.miamBasketURL + "/" + list.id, '_blank');
802
799
  }
803
- })).subscribe();
800
+ }));
804
801
  };
805
802
  GroceriesListsService.prototype.assignList = function (l) {
806
803
  // When a CORS error happens the response is a GL with an id equal to the request URL
@@ -1344,6 +1341,7 @@
1344
1341
  'recipe-steps': new i1.DocumentCollection(),
1345
1342
  'recipe-provider': new i1.DocumentResource(),
1346
1343
  'recipe-status': new i1.DocumentResource(),
1344
+ tags: new i1.DocumentCollection(),
1347
1345
  'recipe-type': new i1.DocumentResource(),
1348
1346
  sponsors: new i1.DocumentCollection(),
1349
1347
  packages: new i1.DocumentCollection()
@@ -1948,7 +1946,7 @@
1948
1946
  unit: '',
1949
1947
  active: true,
1950
1948
  'forced-eans': [],
1951
- picture: ''
1949
+ 'picture-url': ''
1952
1950
  };
1953
1951
  _this.relationships = {
1954
1952
  recipe: new i1.DocumentResource(),
@@ -1971,7 +1969,7 @@
1971
1969
  });
1972
1970
  Object.defineProperty(Ingredient.prototype, "picture", {
1973
1971
  get: function () {
1974
- return this.attributes.picture;
1972
+ return this.attributes['picture-url'];
1975
1973
  },
1976
1974
  enumerable: false,
1977
1975
  configurable: true
@@ -2344,10 +2342,69 @@
2344
2342
  }], function () { return [{ type: i1$1.HttpClient }, { type: RecipeProviderService }, { type: RecipeStatusService }]; }, null);
2345
2343
  })();
2346
2344
 
2345
+ var Tag = /** @class */ (function (_super) {
2346
+ __extends(Tag, _super);
2347
+ function Tag() {
2348
+ var _this = _super.apply(this, __spread(arguments)) || this;
2349
+ _this.attributes = {
2350
+ 'tag-type-id': '',
2351
+ name: '',
2352
+ 'icon-url': '',
2353
+ 'picture-url': ''
2354
+ };
2355
+ _this.relationships = {
2356
+ recipe: new i1.DocumentResource()
2357
+ };
2358
+ return _this;
2359
+ }
2360
+ Object.defineProperty(Tag.prototype, "tagType", {
2361
+ get: function () {
2362
+ return this.attributes['tag-type-id'];
2363
+ },
2364
+ enumerable: false,
2365
+ configurable: true
2366
+ });
2367
+ Object.defineProperty(Tag.prototype, "name", {
2368
+ get: function () {
2369
+ return this.attributes.name;
2370
+ },
2371
+ enumerable: false,
2372
+ configurable: true
2373
+ });
2374
+ return Tag;
2375
+ }(i1.Resource));
2376
+
2347
2377
  var MIAM_API_HOST$2 = environment.miamAPI + "/api/v1/";
2378
+ var TagsService = /** @class */ (function (_super) {
2379
+ __extends(TagsService, _super);
2380
+ function TagsService(http) {
2381
+ var _this = _super.call(this) || this;
2382
+ _this.http = http;
2383
+ _this.resource = Tag;
2384
+ _this.type = 'tags';
2385
+ _this.register();
2386
+ return _this;
2387
+ }
2388
+ TagsService.prototype.autocomplete = function (searchStr) {
2389
+ return this.http.get(MIAM_API_HOST$2 + ("tags/autocomplete/" + searchStr));
2390
+ };
2391
+ return TagsService;
2392
+ }(i1.Service));
2393
+ TagsService.ɵfac = function TagsService_Factory(t) { return new (t || TagsService)(i0.ɵɵinject(i1$1.HttpClient)); };
2394
+ TagsService.ɵprov = i0.ɵɵdefineInjectable({ token: TagsService, factory: TagsService.ɵfac, providedIn: 'root' });
2395
+ /*@__PURE__*/ (function () {
2396
+ i0.ɵsetClassMetadata(TagsService, [{
2397
+ type: i0.Injectable,
2398
+ args: [{
2399
+ providedIn: 'root'
2400
+ }]
2401
+ }], function () { return [{ type: i1$1.HttpClient }]; }, null);
2402
+ })();
2403
+
2404
+ var MIAM_API_HOST$3 = environment.miamAPI + "/api/v1/";
2348
2405
  var RecipesService = /** @class */ (function (_super) {
2349
2406
  __extends(RecipesService, _super);
2350
- function RecipesService(http, providerService, statusService, typeService, suppliersService, posService, listsService, ingredientsService, recipeStepsService, recipeEventsService, sponsorService, packageService) {
2407
+ function RecipesService(http, providerService, statusService, typeService, suppliersService, posService, listsService, ingredientsService, recipeStepsService, recipeEventsService, sponsorService, packageService, tagsService) {
2351
2408
  var _this = _super.call(this) || this;
2352
2409
  _this.http = http;
2353
2410
  _this.providerService = providerService;
@@ -2361,6 +2418,7 @@
2361
2418
  _this.recipeEventsService = recipeEventsService;
2362
2419
  _this.sponsorService = sponsorService;
2363
2420
  _this.packageService = packageService;
2421
+ _this.tagsService = tagsService;
2364
2422
  _this.resource = Recipe;
2365
2423
  _this.type = 'recipes';
2366
2424
  _this.displayedRecipe$ = new rxjs.BehaviorSubject(null);
@@ -2408,7 +2466,7 @@
2408
2466
  return this.all({
2409
2467
  page: page,
2410
2468
  remotefilter: Object.assign(Object.assign({}, filters), { random: this.randomSeed }),
2411
- include: ['ingredients', 'recipe-steps', 'recipe-status', 'recipe-type', 'sponsors', 'recipe-provider']
2469
+ include: ['ingredients', 'recipe-steps', 'recipe-status', 'recipe-type', 'sponsors', 'recipe-provider', 'tags']
2412
2470
  }).pipe(operators.skipWhile(function (result) { return result.is_loading; }), operators.map(function (result) { return result.data; }));
2413
2471
  };
2414
2472
  // DEPRECATED / use TTL instead
@@ -2419,7 +2477,9 @@
2419
2477
  return rxjs.of(recipe);
2420
2478
  }
2421
2479
  else {
2422
- return this.get(recipeId, { include: ['ingredients', 'recipe-steps', 'recipe-status', 'recipe-type', 'sponsors'] }).pipe(operators.tap(function (r) { return _this.recipes.push(r); }));
2480
+ return this.get(recipeId, {
2481
+ include: ['ingredients', 'recipe-steps', 'recipe-status', 'recipe-type', 'sponsors', 'tags']
2482
+ }).pipe(operators.tap(function (r) { return _this.recipes.push(r); }));
2423
2483
  }
2424
2484
  };
2425
2485
  // Debounce to let enough time for the pos to be defined
@@ -2431,7 +2491,7 @@
2431
2491
  if (results[1]) {
2432
2492
  supplierFilter = "supplier_id=" + results[0].id + "&pos_id=" + results[1].id;
2433
2493
  }
2434
- var url = MIAM_API_HOST$2 + ("recipes/suggestions?" + supplierFilter + "&include=ingredients,recipe-steps,sponsors,recipe-type");
2494
+ var url = MIAM_API_HOST$3 + ("recipes/suggestions?" + supplierFilter + "&include=ingredients,recipe-steps,sponsors,recipe-type,tags");
2435
2495
  return _this.http.post(url, body);
2436
2496
  }), operators.map(function (returnedRecipes) {
2437
2497
  var recipes = _this.newCollection();
@@ -2444,7 +2504,7 @@
2444
2504
  if (!recipeId) {
2445
2505
  return rxjs.of(null);
2446
2506
  }
2447
- var url = MIAM_API_HOST$2 + ("recipes/" + recipeId + "/pricing?point_of_sale_id=" + posId);
2507
+ var url = MIAM_API_HOST$3 + ("recipes/" + recipeId + "/pricing?point_of_sale_id=" + posId);
2448
2508
  if (serves) {
2449
2509
  url += "&serves=" + serves;
2450
2510
  }
@@ -2463,7 +2523,7 @@
2463
2523
  if (!recipeId) {
2464
2524
  return;
2465
2525
  }
2466
- this.get(recipeId, { include: ['ingredients', 'recipe-steps', 'recipe-type', 'sponsors'] })
2526
+ this.get(recipeId, { include: ['ingredients', 'recipe-steps', 'recipe-type', 'sponsors', 'tags'] })
2467
2527
  .pipe(operators.skipWhile(function (recipe) { return recipe.is_loading; }))
2468
2528
  .subscribe(function (recipe) {
2469
2529
  _this.displayObject(recipe, { previewAllowed: previewAllowed, guests: guests, previewMode: previewMode });
@@ -2524,7 +2584,7 @@
2524
2584
  };
2525
2585
  return RecipesService;
2526
2586
  }(i1.Service));
2527
- RecipesService.ɵfac = function RecipesService_Factory(t) { return new (t || RecipesService)(i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(RecipeProviderService), i0.ɵɵinject(RecipeStatusService), i0.ɵɵinject(RecipeTypeService), i0.ɵɵinject(SuppliersService), i0.ɵɵinject(PointOfSalesService), i0.ɵɵinject(GroceriesListsService), i0.ɵɵinject(IngredientsService), i0.ɵɵinject(RecipeStepsService), i0.ɵɵinject(RecipeEventsService), i0.ɵɵinject(SponsorService), i0.ɵɵinject(PackageService)); };
2587
+ RecipesService.ɵfac = function RecipesService_Factory(t) { return new (t || RecipesService)(i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(RecipeProviderService), i0.ɵɵinject(RecipeStatusService), i0.ɵɵinject(RecipeTypeService), i0.ɵɵinject(SuppliersService), i0.ɵɵinject(PointOfSalesService), i0.ɵɵinject(GroceriesListsService), i0.ɵɵinject(IngredientsService), i0.ɵɵinject(RecipeStepsService), i0.ɵɵinject(RecipeEventsService), i0.ɵɵinject(SponsorService), i0.ɵɵinject(PackageService), i0.ɵɵinject(TagsService)); };
2528
2588
  RecipesService.ɵprov = i0.ɵɵdefineInjectable({ token: RecipesService, factory: RecipesService.ɵfac, providedIn: 'root' });
2529
2589
  /*@__PURE__*/ (function () {
2530
2590
  i0.ɵsetClassMetadata(RecipesService, [{
@@ -2532,7 +2592,7 @@
2532
2592
  args: [{
2533
2593
  providedIn: 'root'
2534
2594
  }]
2535
- }], function () { return [{ type: i1$1.HttpClient }, { type: RecipeProviderService }, { type: RecipeStatusService }, { type: RecipeTypeService }, { type: SuppliersService }, { type: PointOfSalesService }, { type: GroceriesListsService }, { type: IngredientsService }, { type: RecipeStepsService }, { type: RecipeEventsService }, { type: SponsorService }, { type: PackageService }]; }, null);
2595
+ }], function () { return [{ type: i1$1.HttpClient }, { type: RecipeProviderService }, { type: RecipeStatusService }, { type: RecipeTypeService }, { type: SuppliersService }, { type: PointOfSalesService }, { type: GroceriesListsService }, { type: IngredientsService }, { type: RecipeStepsService }, { type: RecipeEventsService }, { type: SponsorService }, { type: PackageService }, { type: TagsService }]; }, null);
2536
2596
  })();
2537
2597
 
2538
2598
  var BasketsService = /** @class */ (function (_super) {
@@ -3016,7 +3076,7 @@
3016
3076
  }], function () { return [{ type: i0.ApplicationRef }]; }, null);
3017
3077
  })();
3018
3078
 
3019
- var MIAM_API_HOST$3 = environment.miamAPI + "/api/v1/";
3079
+ var MIAM_API_HOST$4 = environment.miamAPI + "/api/v1/";
3020
3080
  var RecipeShareService = /** @class */ (function (_super) {
3021
3081
  __extends(RecipeShareService, _super);
3022
3082
  function RecipeShareService(http) {
@@ -3087,7 +3147,7 @@
3087
3147
  destination_filters: destinationFilters,
3088
3148
  shareable_filters: shareableFilters
3089
3149
  };
3090
- var url = MIAM_API_HOST$3 + "recipe-shares/multi";
3150
+ var url = MIAM_API_HOST$4 + "recipe-shares/multi";
3091
3151
  return this.http.post(url, body);
3092
3152
  };
3093
3153
  return RecipeShareService;
@@ -7670,6 +7730,7 @@
7670
7730
  this.icon = exports.Icon;
7671
7731
  this.skeleton = Skeleton;
7672
7732
  this.isPriceDisplayed = true;
7733
+ this.addButtonLoading = false;
7673
7734
  this.analyticsEventSent = false;
7674
7735
  this.subscriptions = [];
7675
7736
  this.hide = new i0.EventEmitter();
@@ -7680,10 +7741,12 @@
7680
7741
  AbstractRecipeCardComponent.prototype.addRecipe = function (display) {
7681
7742
  var _this = this;
7682
7743
  if (display === void 0) { display = true; }
7744
+ this.toggleButtonLoader(true);
7683
7745
  rxjs.forkJoin([
7684
7746
  this.userService.isLogged$.asObservable().pipe(operators.take(1)),
7685
7747
  this.posService.isPosValid().pipe(operators.take(1))
7686
- ]).subscribe(function (res) {
7748
+ ])
7749
+ .subscribe(function (res) {
7687
7750
  var isHookOk = _this.contextService.hookCallback(res[0], res[1]);
7688
7751
  if (isHookOk) {
7689
7752
  _this.addRecipeActionOK(display);
@@ -7694,10 +7757,14 @@
7694
7757
  });
7695
7758
  };
7696
7759
  AbstractRecipeCardComponent.prototype.addRecipeActionOK = function (display) {
7760
+ var _this = this;
7697
7761
  if (!this.groceriesListsService.list$.value.hasRecipe(this.recipe.id)) {
7698
7762
  this.recipeEventsService.sendEvent(this.recipe, this.recipeEventsService.ACTION_ADDED);
7699
7763
  }
7700
- this.groceriesListsService.appendRecipeToList(this.recipe.id, this.recipe.modifiedGuests);
7764
+ this.subscriptions.push(this.groceriesListsService.appendRecipeToList(this.recipe.id, this.recipe.modifiedGuests)
7765
+ .subscribe(function (l) {
7766
+ _this.toggleButtonLoader(false);
7767
+ }));
7701
7768
  if (display) {
7702
7769
  this.recipeService.displayObject(this.recipe, { guests: +this.recipe.modifiedGuests, previewMode: true });
7703
7770
  }
@@ -7717,6 +7784,10 @@
7717
7784
  stopEventPropagation(event);
7718
7785
  // TODO implement
7719
7786
  };
7787
+ AbstractRecipeCardComponent.prototype.toggleButtonLoader = function (value) {
7788
+ this.addButtonLoading = value;
7789
+ this.cdr.detectChanges();
7790
+ };
7720
7791
  AbstractRecipeCardComponent.prototype.initIngredientsString = function () {
7721
7792
  var _this = this;
7722
7793
  var _a;
@@ -7775,64 +7846,107 @@
7775
7846
  }] });
7776
7847
  })();
7777
7848
 
7849
+ function LoaderComponent_div_0_Template(rf, ctx) {
7850
+ if (rf & 1) {
7851
+ i0.ɵɵelementStart(0, "div", 2);
7852
+ i0.ɵɵelement(1, "div", 3);
7853
+ i0.ɵɵelementEnd();
7854
+ }
7855
+ }
7856
+ function LoaderComponent_div_1_Template(rf, ctx) {
7857
+ if (rf & 1) {
7858
+ i0.ɵɵelement(0, "div", 3);
7859
+ }
7860
+ }
7861
+ var LoaderComponent = /** @class */ (function () {
7862
+ function LoaderComponent() {
7863
+ this.wide = false;
7864
+ }
7865
+ return LoaderComponent;
7866
+ }());
7867
+ LoaderComponent.ɵfac = function LoaderComponent_Factory(t) { return new (t || LoaderComponent)(); };
7868
+ LoaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LoaderComponent, selectors: [["ng-miam-loader"]], inputs: { wide: "wide" }, decls: 2, vars: 2, consts: [["class", "wide-container", 4, "ngIf"], ["class", "loader", 4, "ngIf"], [1, "wide-container"], [1, "loader"]], template: function LoaderComponent_Template(rf, ctx) {
7869
+ if (rf & 1) {
7870
+ i0.ɵɵtemplate(0, LoaderComponent_div_0_Template, 2, 0, "div", 0);
7871
+ i0.ɵɵtemplate(1, LoaderComponent_div_1_Template, 1, 0, "div", 1);
7872
+ }
7873
+ if (rf & 2) {
7874
+ i0.ɵɵproperty("ngIf", ctx.wide);
7875
+ i0.ɵɵadvance(1);
7876
+ i0.ɵɵproperty("ngIf", !ctx.wide);
7877
+ }
7878
+ }, directives: [i8.NgIf], styles: ["[_nghost-%COMP%]{--m-loader-size:var(--miam-loader-sizes,40px);--m-loader-thickness:var(--miam-loader-thickness,5px)}.loader[_ngcontent-%COMP%]{-webkit-animation:spin .5s linear infinite;animation:spin .5s linear infinite;border:var(--m-loader-thickness) solid var(--m-color-grey);border-radius:var(--m-border-radius-circle);border-top:var(--m-loader-thickness) solid var(--m-color-ternary);height:var(--m-loader-size);width:var(--m-loader-size)}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"] });
7879
+ /*@__PURE__*/ (function () {
7880
+ i0.ɵsetClassMetadata(LoaderComponent, [{
7881
+ type: i0.Component,
7882
+ args: [{
7883
+ selector: 'ng-miam-loader',
7884
+ templateUrl: './loader.component.html',
7885
+ styleUrls: ['./loader.component.scss']
7886
+ }]
7887
+ }], function () { return []; }, { wide: [{
7888
+ type: i0.Input
7889
+ }] });
7890
+ })();
7891
+
7778
7892
  function RecipeCardComponent_div_0_div_4_div_3_Template(rf, ctx) {
7779
7893
  if (rf & 1) {
7780
- i0.ɵɵelementStart(0, "div", 35);
7894
+ i0.ɵɵelementStart(0, "div", 36);
7781
7895
  i0.ɵɵtext(1, "D\u00E9j\u00E0 ajout\u00E9e");
7782
7896
  i0.ɵɵelementEnd();
7783
7897
  }
7784
7898
  }
7785
7899
  function RecipeCardComponent_div_0_div_4_div_5_Template(rf, ctx) {
7786
7900
  if (rf & 1) {
7787
- i0.ɵɵelementStart(0, "div", 36);
7788
- i0.ɵɵelement(1, "ng-miam-icon", 37);
7901
+ i0.ɵɵelementStart(0, "div", 37);
7902
+ i0.ɵɵelement(1, "ng-miam-icon", 38);
7789
7903
  i0.ɵɵelementEnd();
7790
7904
  }
7791
7905
  if (rf & 2) {
7792
- var ctx_r18 = i0.ɵɵnextContext(3);
7906
+ var ctx_r21 = i0.ɵɵnextContext(3);
7793
7907
  i0.ɵɵadvance(1);
7794
- i0.ɵɵproperty("iconName", ctx_r18.icon.Video)("width", 100)("height", 100);
7908
+ i0.ɵɵproperty("iconName", ctx_r21.icon.Video)("width", 100)("height", 100);
7795
7909
  }
7796
7910
  }
7797
7911
  function RecipeCardComponent_div_0_div_4_ng_miam_like_button_7_Template(rf, ctx) {
7798
7912
  if (rf & 1) {
7799
- i0.ɵɵelement(0, "ng-miam-like-button", 38);
7913
+ i0.ɵɵelement(0, "ng-miam-like-button", 39);
7800
7914
  }
7801
7915
  if (rf & 2) {
7802
- var ctx_r19 = i0.ɵɵnextContext(3);
7803
- i0.ɵɵproperty("recipe", ctx_r19.recipe);
7916
+ var ctx_r22 = i0.ɵɵnextContext(3);
7917
+ i0.ɵɵproperty("recipe", ctx_r22.recipe);
7804
7918
  }
7805
7919
  }
7806
7920
  function RecipeCardComponent_div_0_div_4_img_11_Template(rf, ctx) {
7807
7921
  if (rf & 1) {
7808
- i0.ɵɵelement(0, "img", 39);
7922
+ i0.ɵɵelement(0, "img", 40);
7809
7923
  }
7810
7924
  if (rf & 2) {
7811
- var ctx_r20 = i0.ɵɵnextContext(3);
7812
- i0.ɵɵproperty("src", ctx_r20.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
7925
+ var ctx_r23 = i0.ɵɵnextContext(3);
7926
+ i0.ɵɵproperty("src", ctx_r23.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
7813
7927
  }
7814
7928
  }
7815
7929
  function RecipeCardComponent_div_0_div_4_Template(rf, ctx) {
7816
7930
  if (rf & 1) {
7817
- var _r22_1 = i0.ɵɵgetCurrentView();
7818
- i0.ɵɵelementStart(0, "div", 26);
7819
- i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r22_1); var ctx_r21 = i0.ɵɵnextContext(2); return ctx_r21.openRecipe(); });
7820
- i0.ɵɵelement(1, "img", 27);
7821
- i0.ɵɵelement(2, "div", 28);
7822
- i0.ɵɵtemplate(3, RecipeCardComponent_div_0_div_4_div_3_Template, 2, 0, "div", 29);
7931
+ var _r25_1 = i0.ɵɵgetCurrentView();
7932
+ i0.ɵɵelementStart(0, "div", 27);
7933
+ i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r25_1); var ctx_r24 = i0.ɵɵnextContext(2); return ctx_r24.openRecipe(); });
7934
+ i0.ɵɵelement(1, "img", 28);
7935
+ i0.ɵɵelement(2, "div", 29);
7936
+ i0.ɵɵtemplate(3, RecipeCardComponent_div_0_div_4_div_3_Template, 2, 0, "div", 30);
7823
7937
  i0.ɵɵpipe(4, "async");
7824
- i0.ɵɵtemplate(5, RecipeCardComponent_div_0_div_4_div_5_Template, 2, 3, "div", 30);
7825
- i0.ɵɵelementStart(6, "div", 31);
7826
- i0.ɵɵtemplate(7, RecipeCardComponent_div_0_div_4_ng_miam_like_button_7_Template, 1, 1, "ng-miam-like-button", 32);
7938
+ i0.ɵɵtemplate(5, RecipeCardComponent_div_0_div_4_div_5_Template, 2, 3, "div", 31);
7939
+ i0.ɵɵelementStart(6, "div", 32);
7940
+ i0.ɵɵtemplate(7, RecipeCardComponent_div_0_div_4_ng_miam_like_button_7_Template, 1, 1, "ng-miam-like-button", 33);
7827
7941
  i0.ɵɵpipe(8, "async");
7828
- i0.ɵɵelementStart(9, "ng-miam-icon", 33);
7829
- i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_4_Template_ng_miam_icon_click_9_listener($event) { i0.ɵɵrestoreView(_r22_1); var ctx_r23 = i0.ɵɵnextContext(2); return ctx_r23.openCalendar($event); });
7942
+ i0.ɵɵelementStart(9, "ng-miam-icon", 34);
7943
+ i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_4_Template_ng_miam_icon_click_9_listener($event) { i0.ɵɵrestoreView(_r25_1); var ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.openCalendar($event); });
7830
7944
  i0.ɵɵelementEnd();
7831
- i0.ɵɵelementStart(10, "ng-miam-icon", 33);
7832
- i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_4_Template_ng_miam_icon_click_10_listener($event) { i0.ɵɵrestoreView(_r22_1); var ctx_r24 = i0.ɵɵnextContext(2); return ctx_r24.shareRecipe($event); });
7945
+ i0.ɵɵelementStart(10, "ng-miam-icon", 34);
7946
+ i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_4_Template_ng_miam_icon_click_10_listener($event) { i0.ɵɵrestoreView(_r25_1); var ctx_r27 = i0.ɵɵnextContext(2); return ctx_r27.shareRecipe($event); });
7833
7947
  i0.ɵɵelementEnd();
7834
7948
  i0.ɵɵelementEnd();
7835
- i0.ɵɵtemplate(11, RecipeCardComponent_div_0_div_4_img_11_Template, 1, 1, "img", 34);
7949
+ i0.ɵɵtemplate(11, RecipeCardComponent_div_0_div_4_img_11_Template, 1, 1, "img", 35);
7836
7950
  i0.ɵɵelementEnd();
7837
7951
  }
7838
7952
  if (rf & 2) {
@@ -7856,7 +7970,7 @@
7856
7970
  }
7857
7971
  function RecipeCardComponent_div_0_ng_template_5_Template(rf, ctx) {
7858
7972
  if (rf & 1) {
7859
- i0.ɵɵelement(0, "ng-miam-skeleton", 40);
7973
+ i0.ɵɵelement(0, "ng-miam-skeleton", 41);
7860
7974
  }
7861
7975
  if (rf & 2) {
7862
7976
  var ctx_r5 = i0.ɵɵnextContext(2);
@@ -7865,13 +7979,13 @@
7865
7979
  }
7866
7980
  function RecipeCardComponent_div_0_div_8_Template(rf, ctx) {
7867
7981
  if (rf & 1) {
7868
- var _r26_1 = i0.ɵɵgetCurrentView();
7982
+ var _r29_1 = i0.ɵɵgetCurrentView();
7869
7983
  i0.ɵɵelementStart(0, "div");
7870
- i0.ɵɵelementStart(1, "div", 41);
7871
- i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_8_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r26_1); var ctx_r25 = i0.ɵɵnextContext(2); return ctx_r25.openRecipe(); });
7984
+ i0.ɵɵelementStart(1, "div", 42);
7985
+ i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_8_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r29_1); var ctx_r28 = i0.ɵɵnextContext(2); return ctx_r28.openRecipe(); });
7872
7986
  i0.ɵɵtext(2);
7873
7987
  i0.ɵɵelementEnd();
7874
- i0.ɵɵelementStart(3, "div", 42);
7988
+ i0.ɵɵelementStart(3, "div", 43);
7875
7989
  i0.ɵɵtext(4);
7876
7990
  i0.ɵɵpipe(5, "capitalizeFirstLetter");
7877
7991
  i0.ɵɵelementEnd();
@@ -7887,7 +8001,7 @@
7887
8001
  }
7888
8002
  function RecipeCardComponent_div_0_ng_template_9_Template(rf, ctx) {
7889
8003
  if (rf & 1) {
7890
- i0.ɵɵelement(0, "ng-miam-skeleton", 40);
8004
+ i0.ɵɵelement(0, "ng-miam-skeleton", 41);
7891
8005
  }
7892
8006
  if (rf & 2) {
7893
8007
  var ctx_r8 = i0.ɵɵnextContext(2);
@@ -7896,9 +8010,9 @@
7896
8010
  }
7897
8011
  function RecipeCardComponent_div_0_div_12_Template(rf, ctx) {
7898
8012
  if (rf & 1) {
7899
- i0.ɵɵelementStart(0, "div", 43);
7900
- i0.ɵɵelement(1, "ng-miam-icon", 44);
7901
- i0.ɵɵelementStart(2, "span", 45);
8013
+ i0.ɵɵelementStart(0, "div", 44);
8014
+ i0.ɵɵelement(1, "ng-miam-icon", 45);
8015
+ i0.ɵɵelementStart(2, "span", 46);
7902
8016
  i0.ɵɵtext(3);
7903
8017
  i0.ɵɵelementEnd();
7904
8018
  i0.ɵɵelementEnd();
@@ -7914,37 +8028,37 @@
7914
8028
  function RecipeCardComponent_div_0_div_13_ng_container_2_Template(rf, ctx) {
7915
8029
  if (rf & 1) {
7916
8030
  i0.ɵɵelementContainerStart(0);
7917
- i0.ɵɵelement(1, "ng-miam-icon", 49);
8031
+ i0.ɵɵelement(1, "ng-miam-icon", 50);
7918
8032
  i0.ɵɵelementContainerEnd();
7919
8033
  }
7920
8034
  if (rf & 2) {
7921
- var ctx_r27 = i0.ɵɵnextContext(3);
8035
+ var ctx_r30 = i0.ɵɵnextContext(3);
7922
8036
  i0.ɵɵadvance(1);
7923
- i0.ɵɵproperty("width", 32)("height", 16)("iconName", ctx_r27.icon.DifficultyLow);
8037
+ i0.ɵɵproperty("width", 32)("height", 16)("iconName", ctx_r30.icon.DifficultyLow);
7924
8038
  }
7925
8039
  }
7926
8040
  function RecipeCardComponent_div_0_div_13_ng_container_3_Template(rf, ctx) {
7927
8041
  if (rf & 1) {
7928
8042
  i0.ɵɵelementContainerStart(0);
7929
- i0.ɵɵelement(1, "ng-miam-icon", 49);
8043
+ i0.ɵɵelement(1, "ng-miam-icon", 50);
7930
8044
  i0.ɵɵelementContainerEnd();
7931
8045
  }
7932
8046
  if (rf & 2) {
7933
- var ctx_r28 = i0.ɵɵnextContext(3);
8047
+ var ctx_r31 = i0.ɵɵnextContext(3);
7934
8048
  i0.ɵɵadvance(1);
7935
- i0.ɵɵproperty("width", 32)("height", 16)("iconName", ctx_r28.icon.DifficultyMedium);
8049
+ i0.ɵɵproperty("width", 32)("height", 16)("iconName", ctx_r31.icon.DifficultyMedium);
7936
8050
  }
7937
8051
  }
7938
8052
  function RecipeCardComponent_div_0_div_13_ng_container_4_Template(rf, ctx) {
7939
8053
  if (rf & 1) {
7940
8054
  i0.ɵɵelementContainerStart(0);
7941
- i0.ɵɵelement(1, "ng-miam-icon", 49);
8055
+ i0.ɵɵelement(1, "ng-miam-icon", 50);
7942
8056
  i0.ɵɵelementContainerEnd();
7943
8057
  }
7944
8058
  if (rf & 2) {
7945
- var ctx_r29 = i0.ɵɵnextContext(3);
8059
+ var ctx_r32 = i0.ɵɵnextContext(3);
7946
8060
  i0.ɵɵadvance(1);
7947
- i0.ɵɵproperty("width", 32)("height", 16)("iconName", ctx_r29.icon.DifficultyHight);
8061
+ i0.ɵɵproperty("width", 32)("height", 16)("iconName", ctx_r32.icon.DifficultyHight);
7948
8062
  }
7949
8063
  }
7950
8064
  function RecipeCardComponent_div_0_div_13_ng_container_5_Template(rf, ctx) {
@@ -7954,14 +8068,14 @@
7954
8068
  }
7955
8069
  function RecipeCardComponent_div_0_div_13_Template(rf, ctx) {
7956
8070
  if (rf & 1) {
7957
- i0.ɵɵelementStart(0, "div", 43);
7958
- i0.ɵɵelementContainerStart(1, 46);
7959
- i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_13_ng_container_2_Template, 2, 3, "ng-container", 47);
7960
- i0.ɵɵtemplate(3, RecipeCardComponent_div_0_div_13_ng_container_3_Template, 2, 3, "ng-container", 47);
7961
- i0.ɵɵtemplate(4, RecipeCardComponent_div_0_div_13_ng_container_4_Template, 2, 3, "ng-container", 47);
7962
- i0.ɵɵtemplate(5, RecipeCardComponent_div_0_div_13_ng_container_5_Template, 1, 0, "ng-container", 48);
8071
+ i0.ɵɵelementStart(0, "div", 44);
8072
+ i0.ɵɵelementContainerStart(1, 47);
8073
+ i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_13_ng_container_2_Template, 2, 3, "ng-container", 48);
8074
+ i0.ɵɵtemplate(3, RecipeCardComponent_div_0_div_13_ng_container_3_Template, 2, 3, "ng-container", 48);
8075
+ i0.ɵɵtemplate(4, RecipeCardComponent_div_0_div_13_ng_container_4_Template, 2, 3, "ng-container", 48);
8076
+ i0.ɵɵtemplate(5, RecipeCardComponent_div_0_div_13_ng_container_5_Template, 1, 0, "ng-container", 49);
7963
8077
  i0.ɵɵelementContainerEnd();
7964
- i0.ɵɵelementStart(6, "span", 45);
8078
+ i0.ɵɵelementStart(6, "span", 46);
7965
8079
  i0.ɵɵtext(7);
7966
8080
  i0.ɵɵelementEnd();
7967
8081
  i0.ɵɵelementEnd();
@@ -7982,7 +8096,7 @@
7982
8096
  }
7983
8097
  function RecipeCardComponent_div_0_ng_template_14_Template(rf, ctx) {
7984
8098
  if (rf & 1) {
7985
- i0.ɵɵelement(0, "ng-miam-skeleton", 40);
8099
+ i0.ɵɵelement(0, "ng-miam-skeleton", 41);
7986
8100
  }
7987
8101
  if (rf & 2) {
7988
8102
  var ctx_r12 = i0.ɵɵnextContext(2);
@@ -7991,26 +8105,26 @@
7991
8105
  }
7992
8106
  function RecipeCardComponent_div_0_div_21_div_5_Template(rf, ctx) {
7993
8107
  if (rf & 1) {
7994
- i0.ɵɵelementStart(0, "div", 54);
8108
+ i0.ɵɵelementStart(0, "div", 55);
7995
8109
  i0.ɵɵtext(1);
7996
8110
  i0.ɵɵelementEnd();
7997
8111
  }
7998
8112
  if (rf & 2) {
7999
- var ctx_r31 = i0.ɵɵnextContext(3);
8113
+ var ctx_r34 = i0.ɵɵnextContext(3);
8000
8114
  i0.ɵɵadvance(1);
8001
- i0.ɵɵtextInterpolate1(" + ", ctx_r31.recipe.modifiedIngredients.length - 2, " ");
8115
+ i0.ɵɵtextInterpolate1(" + ", ctx_r34.recipe.modifiedIngredients.length - 2, " ");
8002
8116
  }
8003
8117
  }
8004
8118
  function RecipeCardComponent_div_0_div_21_Template(rf, ctx) {
8005
8119
  if (rf & 1) {
8006
- i0.ɵɵelementStart(0, "div", 50);
8007
- i0.ɵɵelementStart(1, "div", 51);
8008
- i0.ɵɵelement(2, "img", 52);
8120
+ i0.ɵɵelementStart(0, "div", 51);
8121
+ i0.ɵɵelementStart(1, "div", 52);
8122
+ i0.ɵɵelement(2, "img", 53);
8009
8123
  i0.ɵɵelementEnd();
8010
- i0.ɵɵelementStart(3, "div", 51);
8011
- i0.ɵɵelement(4, "img", 52);
8124
+ i0.ɵɵelementStart(3, "div", 52);
8125
+ i0.ɵɵelement(4, "img", 53);
8012
8126
  i0.ɵɵelementEnd();
8013
- i0.ɵɵtemplate(5, RecipeCardComponent_div_0_div_21_div_5_Template, 2, 1, "div", 53);
8127
+ i0.ɵɵtemplate(5, RecipeCardComponent_div_0_div_21_div_5_Template, 2, 1, "div", 54);
8014
8128
  i0.ɵɵelementEnd();
8015
8129
  }
8016
8130
  if (rf & 2) {
@@ -8025,10 +8139,10 @@
8025
8139
  }
8026
8140
  function RecipeCardComponent_div_0_div_22_Template(rf, ctx) {
8027
8141
  if (rf & 1) {
8028
- var _r33_1 = i0.ɵɵgetCurrentView();
8029
- i0.ɵɵelementStart(0, "div", 55);
8030
- i0.ɵɵelementStart(1, "ng-miam-counter-input", 56);
8031
- i0.ɵɵlistener("counterChange", function RecipeCardComponent_div_0_div_22_Template_ng_miam_counter_input_counterChange_1_listener($event) { i0.ɵɵrestoreView(_r33_1); var ctx_r32 = i0.ɵɵnextContext(2); return ctx_r32.updateGuests($event); });
8142
+ var _r36_1 = i0.ɵɵgetCurrentView();
8143
+ i0.ɵɵelementStart(0, "div", 56);
8144
+ i0.ɵɵelementStart(1, "ng-miam-counter-input", 57);
8145
+ i0.ɵɵlistener("counterChange", function RecipeCardComponent_div_0_div_22_Template_ng_miam_counter_input_counterChange_1_listener($event) { i0.ɵɵrestoreView(_r36_1); var ctx_r35 = i0.ɵɵnextContext(2); return ctx_r35.updateGuests($event); });
8032
8146
  i0.ɵɵelementEnd();
8033
8147
  i0.ɵɵelementEnd();
8034
8148
  }
@@ -8040,16 +8154,32 @@
8040
8154
  }
8041
8155
  function RecipeCardComponent_div_0_ng_template_23_Template(rf, ctx) {
8042
8156
  if (rf & 1) {
8043
- i0.ɵɵelement(0, "ng-miam-skeleton", 40);
8157
+ i0.ɵɵelement(0, "ng-miam-skeleton", 41);
8044
8158
  }
8045
8159
  if (rf & 2) {
8046
8160
  var ctx_r16 = i0.ɵɵnextContext(2);
8047
8161
  i0.ɵɵproperty("type", ctx_r16.skeleton == null ? null : ctx_r16.skeleton.IconWithInfo);
8048
8162
  }
8049
8163
  }
8164
+ function RecipeCardComponent_div_0_ng_miam_icon_30_Template(rf, ctx) {
8165
+ if (rf & 1) {
8166
+ i0.ɵɵelement(0, "ng-miam-icon", 58);
8167
+ i0.ɵɵpipe(1, "async");
8168
+ }
8169
+ if (rf & 2) {
8170
+ var ctx_r17 = i0.ɵɵnextContext(2);
8171
+ var tmp_2_0 = null;
8172
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_2_0 = i0.ɵɵpipeBind1(1, 3, ctx_r17.groceriesListsService.list$)) == null ? null : tmp_2_0.hasRecipe(ctx_r17.recipe == null ? null : ctx_r17.recipe.id)) ? ctx_r17.icon.CheckList : ctx_r17.icon.Cart);
8173
+ }
8174
+ }
8175
+ function RecipeCardComponent_div_0_ng_template_31_Template(rf, ctx) {
8176
+ if (rf & 1) {
8177
+ i0.ɵɵelement(0, "ng-miam-loader");
8178
+ }
8179
+ }
8050
8180
  function RecipeCardComponent_div_0_Template(rf, ctx) {
8051
8181
  if (rf & 1) {
8052
- var _r35_1 = i0.ɵɵgetCurrentView();
8182
+ var _r38_1 = i0.ɵɵgetCurrentView();
8053
8183
  i0.ɵɵelementStart(0, "div", 2);
8054
8184
  i0.ɵɵelementStart(1, "div", 3);
8055
8185
  i0.ɵɵelementStart(2, "span");
@@ -8070,7 +8200,7 @@
8070
8200
  i0.ɵɵelementStart(17, "div", 14);
8071
8201
  i0.ɵɵelementStart(18, "div", 15);
8072
8202
  i0.ɵɵelementStart(19, "div", 16);
8073
- i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_div_click_19_listener() { i0.ɵɵrestoreView(_r35_1); var ctx_r34 = i0.ɵɵnextContext(); return ctx_r34.toggleHelper(); });
8203
+ i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_div_click_19_listener() { i0.ɵɵrestoreView(_r38_1); var ctx_r37 = i0.ɵɵnextContext(); return ctx_r37.toggleHelper(); });
8074
8204
  i0.ɵɵelement(20, "ng-miam-icon", 17);
8075
8205
  i0.ɵɵelementEnd();
8076
8206
  i0.ɵɵtemplate(21, RecipeCardComponent_div_0_div_21_Template, 6, 3, "div", 18);
@@ -8084,9 +8214,9 @@
8084
8214
  i0.ɵɵelementEnd();
8085
8215
  i0.ɵɵelementStart(28, "div");
8086
8216
  i0.ɵɵelementStart(29, "button", 24);
8087
- i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_button_click_29_listener() { i0.ɵɵrestoreView(_r35_1); var ctx_r36 = i0.ɵɵnextContext(); return ctx_r36.clickPrimary(); });
8088
- i0.ɵɵelement(30, "ng-miam-icon", 25);
8089
- i0.ɵɵpipe(31, "async");
8217
+ i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_button_click_29_listener() { i0.ɵɵrestoreView(_r38_1); var ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.clickPrimary(); });
8218
+ i0.ɵɵtemplate(30, RecipeCardComponent_div_0_ng_miam_icon_30_Template, 2, 5, "ng-miam-icon", 25);
8219
+ i0.ɵɵtemplate(31, RecipeCardComponent_div_0_ng_template_31_Template, 1, 0, "ng-template", null, 26, i0.ɵɵtemplateRefExtractor);
8090
8220
  i0.ɵɵelementEnd();
8091
8221
  i0.ɵɵelementEnd();
8092
8222
  i0.ɵɵelementEnd();
@@ -8099,8 +8229,8 @@
8099
8229
  var _r7 = i0.ɵɵreference(10);
8100
8230
  var _r11 = i0.ɵɵreference(15);
8101
8231
  var _r15 = i0.ɵɵreference(24);
8232
+ var _r18 = i0.ɵɵreference(32);
8102
8233
  var ctx_r0 = i0.ɵɵnextContext();
8103
- var tmp_20_0 = null;
8104
8234
  i0.ɵɵadvance(3);
8105
8235
  i0.ɵɵtextInterpolate1(" ", ctx_r0.headerText, "");
8106
8236
  i0.ɵɵadvance(1);
@@ -8122,7 +8252,7 @@
8122
8252
  i0.ɵɵadvance(2);
8123
8253
  i0.ɵɵproperty("disabled", !ctx_r0.recipe);
8124
8254
  i0.ɵɵadvance(1);
8125
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_20_0 = i0.ɵɵpipeBind1(31, 21, ctx_r0.groceriesListsService.list$)) == null ? null : tmp_20_0.hasRecipe(ctx_r0.recipe == null ? null : ctx_r0.recipe.id)) ? ctx_r0.icon.CheckList : ctx_r0.icon.Cart);
8255
+ i0.ɵɵproperty("ngIf", !ctx_r0.addButtonLoading)("ngIfElse", _r18);
8126
8256
  }
8127
8257
  }
8128
8258
  function RecipeCardComponent_ng_template_1_Template(rf, ctx) {
@@ -8194,12 +8324,15 @@
8194
8324
  }
8195
8325
  };
8196
8326
  RecipeCardComponent.prototype.clickPrimary = function () {
8197
- this.primaryButtonClicked$.emit();
8198
- this.addRecipe();
8327
+ if (!this.addButtonLoading) {
8328
+ var wasAdded = !this.groceriesListsService.list$.value.hasRecipe(this.recipe.id);
8329
+ this.addRecipe();
8330
+ this.primaryButtonClicked$.emit(wasAdded);
8331
+ }
8199
8332
  };
8200
8333
  RecipeCardComponent.prototype.loadRecipe = function () {
8201
8334
  var _this = this;
8202
- this.recipeService.get(this.recipeId, { include: ['ingredients', 'recipe-steps', 'recipe-status', 'recipe-type', 'sponsors'] }).pipe(operators.skipWhile(function (result) { return result.is_loading; }), operators.catchError(function (err) {
8335
+ this.recipeService.get(this.recipeId, { include: ['ingredients', 'recipe-steps', 'recipe-status', 'recipe-type', 'sponsors', 'tags'] }).pipe(operators.skipWhile(function (result) { return result.is_loading; }), operators.catchError(function (err) {
8203
8336
  _this.hide.emit();
8204
8337
  return rxjs.of(err);
8205
8338
  })).subscribe(function (result) {
@@ -8213,15 +8346,15 @@
8213
8346
  return RecipeCardComponent;
8214
8347
  }(AbstractRecipeCardComponent));
8215
8348
  RecipeCardComponent.ɵfac = function RecipeCardComponent_Factory(t) { return new (t || RecipeCardComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
8216
- RecipeCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardComponent, selectors: [["ng-miam-recipe-card"]], inputs: { recipeId: "recipeId", recipe: "recipe" }, outputs: { removedFromFavorite: "removedFromFavorite", displayed: "displayed", guestsChanged: "guestsChanged" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 1, consts: [["class", "miam-recipe-card", 4, "ngIf"], ["cors", ""], [1, "miam-recipe-card"], [1, "miam-recipe-card__header"], ["class", "miam-recipe-card__picture", 3, "click", 4, "ngIf", "ngIfElse"], ["pictSkeleton", ""], [1, "miam-recipe-card__attributes"], [4, "ngIf", "ngIfElse"], ["textSkeleton", ""], [1, "miam-recipe-card__attributes__infos"], ["class", "miam-recipe-card__attributes__info ", 4, "ngIf", "ngIfElse"], ["class", "miam-recipe-card__attributes__info", 4, "ngIf", "ngIfElse"], ["skeletonInfo", ""], [1, "miam-recipe-card__attributes__control"], [1, "miam-recipe-card__control__left__col"], [1, "miam-recipe-card__left__col__custom"], [1, "miam-recipe-card__help", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "width", "height", "iconName"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], ["class", "miam-recipe-card__left__col__counter", 4, "ngIf", "ngIfElse"], ["skeletoncounter", ""], [1, "miam-recipe-card__control__right__col"], [1, "miam-recipe-card__right__col__price"], [3, "recipe", "serves"], [1, "m-button-fab-primary", 3, "disabled", "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-recipe-card__picture", 3, "click"], ["loading", "lazy", 3, "src"], [1, "miam-recipe-card__picture__gradient"], ["class", "miam-recipe-card__picture__tag", 4, "ngIf"], ["class", "miam-recipe-card__picture__video", 4, "ngIf"], [1, "miam-recipe-card__picture__actions"], ["class", "miam-recipe-card__actions__icon miam-noPadding", 3, "recipe", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-card__actions__icon", 3, "iconName", "click"], ["class", "miam-recipe-card__picture__sponsor", 3, "src", 4, "ngIf"], [1, "miam-recipe-card__picture__tag"], [1, "miam-recipe-card__picture__video"], ["primaryColor", "var(--m-color-primary)", 3, "iconName", "width", "height"], [1, "miam-recipe-card__actions__icon", "miam-noPadding", 3, "recipe"], [1, "miam-recipe-card__picture__sponsor", 3, "src"], [3, "type"], [1, "miam-recipe-card__attributes__title", 3, "click"], [1, "miam-recipe-card__attributes__ingredients"], [1, "miam-recipe-card__attributes__info"], [3, "iconName"], [1, "miam-recipe-card__info__label"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["primaryColor", "var(--m-color-secondary)", 3, "width", "height", "iconName"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], [3, "src"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__left__col__counter"], [3, "counter", "counterChange"]], template: function RecipeCardComponent_Template(rf, ctx) {
8349
+ RecipeCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardComponent, selectors: [["ng-miam-recipe-card"]], inputs: { recipeId: "recipeId", recipe: "recipe" }, outputs: { removedFromFavorite: "removedFromFavorite", displayed: "displayed", guestsChanged: "guestsChanged" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 1, consts: [["class", "miam-recipe-card", 4, "ngIf"], ["cors", ""], [1, "miam-recipe-card"], [1, "miam-recipe-card__header"], ["class", "miam-recipe-card__picture", 3, "click", 4, "ngIf", "ngIfElse"], ["pictSkeleton", ""], [1, "miam-recipe-card__attributes"], [4, "ngIf", "ngIfElse"], ["textSkeleton", ""], [1, "miam-recipe-card__attributes__infos"], ["class", "miam-recipe-card__attributes__info ", 4, "ngIf", "ngIfElse"], ["class", "miam-recipe-card__attributes__info", 4, "ngIf", "ngIfElse"], ["skeletonInfo", ""], [1, "miam-recipe-card__attributes__control"], [1, "miam-recipe-card__control__left__col"], [1, "miam-recipe-card__left__col__custom"], [1, "miam-recipe-card__help", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "width", "height", "iconName"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], ["class", "miam-recipe-card__left__col__counter", 4, "ngIf", "ngIfElse"], ["skeletoncounter", ""], [1, "miam-recipe-card__control__right__col"], [1, "miam-recipe-card__right__col__price"], [3, "recipe", "serves"], [1, "m-button-fab-primary", 3, "disabled", "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-recipe-card__picture", 3, "click"], ["loading", "lazy", 3, "src"], [1, "miam-recipe-card__picture__gradient"], ["class", "miam-recipe-card__picture__tag", 4, "ngIf"], ["class", "miam-recipe-card__picture__video", 4, "ngIf"], [1, "miam-recipe-card__picture__actions"], ["class", "miam-recipe-card__actions__icon miam-noPadding", 3, "recipe", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-card__actions__icon", 3, "iconName", "click"], ["class", "miam-recipe-card__picture__sponsor", 3, "src", 4, "ngIf"], [1, "miam-recipe-card__picture__tag"], [1, "miam-recipe-card__picture__video"], ["primaryColor", "var(--m-color-primary)", 3, "iconName", "width", "height"], [1, "miam-recipe-card__actions__icon", "miam-noPadding", 3, "recipe"], [1, "miam-recipe-card__picture__sponsor", 3, "src"], [3, "type"], [1, "miam-recipe-card__attributes__title", 3, "click"], [1, "miam-recipe-card__attributes__ingredients"], [1, "miam-recipe-card__attributes__info"], [3, "iconName"], [1, "miam-recipe-card__info__label"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["primaryColor", "var(--m-color-secondary)", 3, "width", "height", "iconName"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], [3, "src"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__left__col__counter"], [3, "counter", "counterChange"], ["primaryColor", "#fff", 3, "width", "height", "iconName"]], template: function RecipeCardComponent_Template(rf, ctx) {
8217
8350
  if (rf & 1) {
8218
- i0.ɵɵtemplate(0, RecipeCardComponent_div_0_Template, 32, 23, "div", 0);
8351
+ i0.ɵɵtemplate(0, RecipeCardComponent_div_0_Template, 33, 20, "div", 0);
8219
8352
  i0.ɵɵtemplate(1, RecipeCardComponent_ng_template_1_Template, 1, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
8220
8353
  }
8221
8354
  if (rf & 2) {
8222
8355
  i0.ɵɵproperty("ngIf", ctx.isloaded);
8223
8356
  }
8224
- }, directives: [i8.NgIf, IconComponent, RecipePricingComponent, LikeButtonComponent, SkeletonComponent, i8.NgSwitch, i8.NgSwitchCase, i8.NgSwitchDefault, CounterInputComponent, CORSOverlayComponent], pipes: [i8.AsyncPipe, CapitalizeFirstLetterPipe], styles: [".miam-flex-column,.miam-recipe-card .miam-recipe-card__attributes,.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions{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}.miam-recipe-card{background-color:var(--m-color-white);border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);display:flex;flex-direction:column;height:100%;min-height:470px;position:relative;width:320px}.miam-recipe-card .miam-recipe-card__header{display:none}.miam-recipe-card .miam-recipe-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:240px;position:relative}.miam-recipe-card .miam-recipe-card__picture img{-o-object-fit:cover;object-fit:cover;transition:var(--m-default-transition);z-index:var(--m-z-index-position-absolute-low)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__gradient,.miam-recipe-card .miam-recipe-card__picture img{border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:100%;position:absolute;width:100%}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__gradient{background:linear-gradient(180deg,transparent 57.92%,rgba(0,0,0,.75) 100%,rgba(0,0,0,.75) 0);content:\"\"}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__video{left:calc(50% - 50px);position:absolute;top:calc(50% - 50px)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__tag{background-color:var(--m-color-primary-light);border-radius:5px;bottom:16px;color:var(--m-color-primary);font-weight:500;left:16px;padding:8px;position:absolute;text-transform:uppercase}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions{position:absolute;right:16px;top:8px;z-index:var(--m-z-index-position-absolute-high)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions .miam-recipe-card__actions__icon{-o-object-fit:contain;background-color:var(--m-color-white);border-radius:var(--m-border-radius-circle);box-shadow:var(--m-shadow-small);margin:0 0 16px;object-fit:contain;padding:8px;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions .miam-recipe-card__actions__icon .icon-container{margin:0}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions .miam-recipe-card__actions__icon.miam-noPadding{padding:0}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor{-o-object-fit:contain;bottom:16px;height:auto;max-height:72px;max-width:96px;object-fit:contain;position:absolute;right:16px;width:auto}.miam-recipe-card .miam-recipe-card__attributes{flex:1 1;justify-content:space-between;padding:8px 16px 16px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;-webkit-tap-highlight-color:transparent;color:var(--m-color-slate);cursor:pointer;display:-webkit-box;font-size:20px;font-weight:700;font-weight:500;letter-spacing:normal;line-height:30;line-height:1.5;margin:0 8px 8px 0;overflow:hidden;text-align:left;text-overflow:ellipsis;transition:var(--m-default-transition)}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__title:hover{color:var(--m-color-primary);text-decoration:underline}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__ingredients{-webkit-box-orient:vertical;-webkit-line-clamp:1;color:var(--m-color-grey-text);display:-webkit-box;font-size:14px;font-weight:300;overflow:hidden;text-overflow:ellipsis}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos{display:flex;flex-direction:row;padding:8px 0}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info{display:flex;flex-direction:row;margin:0 16px 0 0}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info .miam-recipe-card__info__label{font-size:14px;margin-left:8px;text-transform:capitalize}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control{align-items:center;display:flex;justify-content:space-between}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col{display:flex;flex-direction:column-reverse}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__counter{align-items:center;display:flex}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:8px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom{align-items:flex-end;display:flex;height:48px;justify-content:flex-start}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom .icon-container{cursor:pointer}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col{align-items:center;display:flex;flex-direction:column;min-width:60px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col .miam-recipe-card__right__col__price{height:48px}@media (max-width:1023px){.miam-recipe-card{min-height:unset}.miam-recipe-card .miam-recipe-card__picture{height:164px}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__gradient{background:linear-gradient(0deg,rgba(0,0,0,.2),rgba(0,0,0,.2))}.miam-recipe-card .miam-recipe-card__attributes{padding:8px 16px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__title{color:#fff;font-weight:700;height:72px;margin-left:calc(15% - 16px);position:absolute;text-align:center;top:52px;width:70%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__ingredients{display:none}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col{flex-direction:row;justify-content:space-between;width:100%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__counter{align-items:flex-end;padding-bottom:4px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col{margin-top:12px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col .miam-recipe-card__right__col__price{height:48px;position:absolute;top:172px}}"], encapsulation: 2, changeDetection: 0 });
8357
+ }, directives: [i8.NgIf, IconComponent, RecipePricingComponent, LikeButtonComponent, SkeletonComponent, i8.NgSwitch, i8.NgSwitchCase, i8.NgSwitchDefault, CounterInputComponent, LoaderComponent, CORSOverlayComponent], pipes: [i8.AsyncPipe, CapitalizeFirstLetterPipe], styles: [".miam-flex-column,.miam-recipe-card .miam-recipe-card__attributes,.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions{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}.miam-recipe-card{background-color:var(--m-color-white);border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);display:flex;flex-direction:column;height:100%;min-height:470px;position:relative;width:320px}.miam-recipe-card .miam-recipe-card__header{display:none}.miam-recipe-card .miam-recipe-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:240px;position:relative}.miam-recipe-card .miam-recipe-card__picture img{-o-object-fit:cover;object-fit:cover;transition:var(--m-default-transition);z-index:var(--m-z-index-position-absolute-low)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__gradient,.miam-recipe-card .miam-recipe-card__picture img{border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:100%;position:absolute;width:100%}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__gradient{background:linear-gradient(180deg,transparent 57.92%,rgba(0,0,0,.75) 100%,rgba(0,0,0,.75) 0);content:\"\"}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__video{left:calc(50% - 50px);position:absolute;top:calc(50% - 50px)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__tag{background-color:var(--m-color-primary-light);border-radius:5px;bottom:16px;color:var(--m-color-primary);font-weight:500;left:16px;padding:8px;position:absolute;text-transform:uppercase}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions{position:absolute;right:16px;top:8px;z-index:var(--m-z-index-position-absolute-high)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions .miam-recipe-card__actions__icon{-o-object-fit:contain;background-color:var(--m-color-white);border-radius:var(--m-border-radius-circle);box-shadow:var(--m-shadow-small);margin:0 0 16px;object-fit:contain;padding:8px;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions .miam-recipe-card__actions__icon .icon-container{margin:0}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions .miam-recipe-card__actions__icon.miam-noPadding{padding:0}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor{-o-object-fit:contain;bottom:16px;height:auto;max-height:72px;max-width:96px;object-fit:contain;position:absolute;right:16px;width:auto}.miam-recipe-card .miam-recipe-card__attributes{flex:1 1;justify-content:space-between;padding:8px 16px 16px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;-webkit-tap-highlight-color:transparent;color:var(--m-color-slate);cursor:pointer;display:-webkit-box;font-size:20px;font-weight:700;font-weight:500;letter-spacing:normal;line-height:30;line-height:1.5;margin:0 8px 8px 0;overflow:hidden;text-align:left;text-overflow:ellipsis;transition:var(--m-default-transition)}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__title:hover{color:var(--m-color-primary);text-decoration:underline}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__ingredients{-webkit-box-orient:vertical;-webkit-line-clamp:1;color:var(--m-color-grey-text);display:-webkit-box;font-size:14px;font-weight:300;overflow:hidden;text-overflow:ellipsis}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos{display:flex;flex-direction:row;padding:8px 0}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info{display:flex;flex-direction:row;margin:0 16px 0 0}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info .miam-recipe-card__info__label{font-size:14px;margin-left:8px;text-transform:capitalize}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control{align-items:center;display:flex;justify-content:space-between}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col{display:flex;flex-direction:column-reverse}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__counter{align-items:center;display:flex}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:8px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom{align-items:flex-end;display:flex;height:48px;justify-content:flex-start}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom .icon-container{cursor:pointer}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col{align-items:center;display:flex;flex-direction:column;min-width:60px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col .miam-recipe-card__right__col__price{height:48px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col button .loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:24px;width:24px}@media (max-width:1023px){.miam-recipe-card{min-height:unset}.miam-recipe-card .miam-recipe-card__picture{height:164px}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__gradient{background:linear-gradient(0deg,rgba(0,0,0,.2),rgba(0,0,0,.2))}.miam-recipe-card .miam-recipe-card__attributes{padding:8px 16px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__title{color:#fff;font-weight:700;height:72px;margin-left:calc(15% - 16px);position:absolute;text-align:center;top:52px;width:70%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__ingredients{display:none}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col{flex-direction:row;justify-content:space-between;width:100%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__counter{align-items:flex-end;padding-bottom:4px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col{margin-top:12px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col .miam-recipe-card__right__col__price{height:48px;position:absolute;top:172px}}"], encapsulation: 2, changeDetection: 0 });
8225
8358
  /*@__PURE__*/ (function () {
8226
8359
  i0.ɵsetClassMetadata(RecipeCardComponent, [{
8227
8360
  type: i0.Component,
@@ -8272,95 +8405,95 @@
8272
8405
  function CatalogRecipeCardComponent_div_4_div_3_Template(rf, ctx) {
8273
8406
  if (rf & 1) {
8274
8407
  i0.ɵɵelementStart(0, "div");
8275
- i0.ɵɵelement(1, "img", 33);
8408
+ i0.ɵɵelement(1, "img", 34);
8276
8409
  i0.ɵɵelementEnd();
8277
8410
  }
8278
8411
  if (rf & 2) {
8279
- var ctx_r14 = i0.ɵɵnextContext(2);
8412
+ var ctx_r17 = i0.ɵɵnextContext(2);
8280
8413
  i0.ɵɵadvance(1);
8281
- i0.ɵɵproperty("src", ctx_r14.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
8414
+ i0.ɵɵproperty("src", ctx_r17.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
8282
8415
  }
8283
8416
  }
8284
8417
  function CatalogRecipeCardComponent_div_4_div_5_Template(rf, ctx) {
8285
8418
  if (rf & 1) {
8286
- i0.ɵɵelementStart(0, "div", 34);
8287
- i0.ɵɵelement(1, "ng-miam-icon", 35);
8419
+ i0.ɵɵelementStart(0, "div", 35);
8420
+ i0.ɵɵelement(1, "ng-miam-icon", 36);
8288
8421
  i0.ɵɵelementEnd();
8289
8422
  }
8290
8423
  if (rf & 2) {
8291
- var ctx_r15 = i0.ɵɵnextContext(2);
8424
+ var ctx_r18 = i0.ɵɵnextContext(2);
8292
8425
  i0.ɵɵadvance(1);
8293
- i0.ɵɵproperty("iconName", ctx_r15.icon.Video)("width", 80)("height", 80);
8426
+ i0.ɵɵproperty("iconName", ctx_r18.icon.Video)("width", 80)("height", 80);
8294
8427
  }
8295
8428
  }
8296
8429
  function CatalogRecipeCardComponent_div_4_div_6_Template(rf, ctx) {
8297
8430
  if (rf & 1) {
8298
- i0.ɵɵelementStart(0, "div", 36);
8431
+ i0.ɵɵelementStart(0, "div", 37);
8299
8432
  i0.ɵɵtext(1, "D\u00E9j\u00E0 ajout\u00E9e");
8300
8433
  i0.ɵɵelementEnd();
8301
8434
  }
8302
8435
  }
8303
8436
  function CatalogRecipeCardComponent_div_4_ng_container_8_Template(rf, ctx) {
8304
8437
  if (rf & 1) {
8305
- var _r23_1 = i0.ɵɵgetCurrentView();
8438
+ var _r26_1 = i0.ɵɵgetCurrentView();
8306
8439
  i0.ɵɵelementContainerStart(0);
8307
- i0.ɵɵelementStart(1, "div", 37);
8308
- i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_ng_container_8_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r23_1); var ctx_r22 = i0.ɵɵnextContext(2); return ctx_r22.openRecipe(); });
8440
+ i0.ɵɵelementStart(1, "div", 38);
8441
+ i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_ng_container_8_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r26_1); var ctx_r25 = i0.ɵɵnextContext(2); return ctx_r25.openRecipe(); });
8309
8442
  i0.ɵɵtext(2);
8310
8443
  i0.ɵɵelementEnd();
8311
8444
  i0.ɵɵelementContainerEnd();
8312
8445
  }
8313
8446
  if (rf & 2) {
8314
- var ctx_r17 = i0.ɵɵnextContext(2);
8447
+ var ctx_r20 = i0.ɵɵnextContext(2);
8315
8448
  i0.ɵɵadvance(2);
8316
- i0.ɵɵtextInterpolate1(" ", ctx_r17.recipe == null ? null : ctx_r17.recipe.attributes["title"], " ");
8449
+ i0.ɵɵtextInterpolate1(" ", ctx_r20.recipe == null ? null : ctx_r20.recipe.attributes["title"], " ");
8317
8450
  }
8318
8451
  }
8319
8452
  function CatalogRecipeCardComponent_div_4_ng_template_9_Template(rf, ctx) {
8320
8453
  if (rf & 1) {
8321
- i0.ɵɵelement(0, "ng-miam-skeleton", 38);
8454
+ i0.ɵɵelement(0, "ng-miam-skeleton", 39);
8322
8455
  }
8323
8456
  if (rf & 2) {
8324
- var ctx_r19 = i0.ɵɵnextContext(2);
8325
- i0.ɵɵproperty("type", ctx_r19.skeleton.Text);
8457
+ var ctx_r22 = i0.ɵɵnextContext(2);
8458
+ i0.ɵɵproperty("type", ctx_r22.skeleton.Text);
8326
8459
  }
8327
8460
  }
8328
8461
  function CatalogRecipeCardComponent_div_4_ng_miam_like_button_12_Template(rf, ctx) {
8329
8462
  if (rf & 1) {
8330
- i0.ɵɵelement(0, "ng-miam-like-button", 39);
8463
+ i0.ɵɵelement(0, "ng-miam-like-button", 40);
8331
8464
  }
8332
8465
  if (rf & 2) {
8333
- var ctx_r20 = i0.ɵɵnextContext(2);
8334
- i0.ɵɵproperty("recipe", ctx_r20.recipe);
8466
+ var ctx_r23 = i0.ɵɵnextContext(2);
8467
+ i0.ɵɵproperty("recipe", ctx_r23.recipe);
8335
8468
  }
8336
8469
  }
8337
8470
  function CatalogRecipeCardComponent_div_4_Template(rf, ctx) {
8338
8471
  if (rf & 1) {
8339
- var _r25_1 = i0.ɵɵgetCurrentView();
8340
- i0.ɵɵelementStart(0, "div", 20);
8341
- i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r25_1); var ctx_r24 = i0.ɵɵnextContext(); return ctx_r24.openRecipe(); });
8342
- i0.ɵɵelementStart(1, "div", 21);
8343
- i0.ɵɵelement(2, "img", 22);
8344
- i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_4_div_3_Template, 2, 1, "div", 23);
8472
+ var _r28_1 = i0.ɵɵgetCurrentView();
8473
+ i0.ɵɵelementStart(0, "div", 21);
8474
+ i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r28_1); var ctx_r27 = i0.ɵɵnextContext(); return ctx_r27.openRecipe(); });
8475
+ i0.ɵɵelementStart(1, "div", 22);
8476
+ i0.ɵɵelement(2, "img", 23);
8477
+ i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_4_div_3_Template, 2, 1, "div", 24);
8345
8478
  i0.ɵɵpipe(4, "async");
8346
8479
  i0.ɵɵelementEnd();
8347
- i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_4_div_5_Template, 2, 3, "div", 24);
8348
- i0.ɵɵtemplate(6, CatalogRecipeCardComponent_div_4_div_6_Template, 2, 0, "div", 25);
8480
+ i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_4_div_5_Template, 2, 3, "div", 25);
8481
+ i0.ɵɵtemplate(6, CatalogRecipeCardComponent_div_4_div_6_Template, 2, 0, "div", 26);
8349
8482
  i0.ɵɵpipe(7, "async");
8350
- i0.ɵɵtemplate(8, CatalogRecipeCardComponent_div_4_ng_container_8_Template, 3, 1, "ng-container", 26);
8351
- i0.ɵɵtemplate(9, CatalogRecipeCardComponent_div_4_ng_template_9_Template, 1, 1, "ng-template", null, 27, i0.ɵɵtemplateRefExtractor);
8352
- i0.ɵɵelementStart(11, "div", 28);
8353
- i0.ɵɵtemplate(12, CatalogRecipeCardComponent_div_4_ng_miam_like_button_12_Template, 1, 1, "ng-miam-like-button", 29);
8483
+ i0.ɵɵtemplate(8, CatalogRecipeCardComponent_div_4_ng_container_8_Template, 3, 1, "ng-container", 27);
8484
+ i0.ɵɵtemplate(9, CatalogRecipeCardComponent_div_4_ng_template_9_Template, 1, 1, "ng-template", null, 28, i0.ɵɵtemplateRefExtractor);
8485
+ i0.ɵɵelementStart(11, "div", 29);
8486
+ i0.ɵɵtemplate(12, CatalogRecipeCardComponent_div_4_ng_miam_like_button_12_Template, 1, 1, "ng-miam-like-button", 30);
8354
8487
  i0.ɵɵpipe(13, "async");
8355
- i0.ɵɵelementStart(14, "div", 30, 31);
8356
- i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_14_listener($event) { i0.ɵɵrestoreView(_r25_1); var ctx_r26 = i0.ɵɵnextContext(); return ctx_r26.toggleMoreActions($event); });
8357
- i0.ɵɵelement(16, "ng-miam-icon", 32);
8488
+ i0.ɵɵelementStart(14, "div", 31, 32);
8489
+ i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_14_listener($event) { i0.ɵɵrestoreView(_r28_1); var ctx_r29 = i0.ɵɵnextContext(); return ctx_r29.toggleMoreActions($event); });
8490
+ i0.ɵɵelement(16, "ng-miam-icon", 33);
8358
8491
  i0.ɵɵelementEnd();
8359
8492
  i0.ɵɵelementEnd();
8360
8493
  i0.ɵɵelementEnd();
8361
8494
  }
8362
8495
  if (rf & 2) {
8363
- var _r18 = i0.ɵɵreference(10);
8496
+ var _r21 = i0.ɵɵreference(10);
8364
8497
  var ctx_r0 = i0.ɵɵnextContext();
8365
8498
  var tmp_1_0 = null;
8366
8499
  var tmp_3_0 = null;
@@ -8373,7 +8506,7 @@
8373
8506
  i0.ɵɵadvance(1);
8374
8507
  i0.ɵɵproperty("ngIf", (tmp_3_0 = i0.ɵɵpipeBind1(7, 10, ctx_r0.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r0.recipe == null ? null : ctx_r0.recipe.id));
8375
8508
  i0.ɵɵadvance(2);
8376
- i0.ɵɵproperty("ngIf", ctx_r0.recipe)("ngIfElse", _r18);
8509
+ i0.ɵɵproperty("ngIf", ctx_r0.recipe)("ngIfElse", _r21);
8377
8510
  i0.ɵɵadvance(4);
8378
8511
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 12, ctx_r0.userService.isLogged$));
8379
8512
  i0.ɵɵadvance(4);
@@ -8382,7 +8515,7 @@
8382
8515
  }
8383
8516
  function CatalogRecipeCardComponent_ng_template_5_Template(rf, ctx) {
8384
8517
  if (rf & 1) {
8385
- i0.ɵɵelement(0, "ng-miam-skeleton", 38);
8518
+ i0.ɵɵelement(0, "ng-miam-skeleton", 39);
8386
8519
  }
8387
8520
  if (rf & 2) {
8388
8521
  var ctx_r2 = i0.ɵɵnextContext();
@@ -8391,10 +8524,10 @@
8391
8524
  }
8392
8525
  function CatalogRecipeCardComponent_div_10_Template(rf, ctx) {
8393
8526
  if (rf & 1) {
8394
- var _r28_1 = i0.ɵɵgetCurrentView();
8395
- i0.ɵɵelementStart(0, "div", 40);
8396
- i0.ɵɵelementStart(1, "ng-miam-counter-input", 41);
8397
- i0.ɵɵlistener("counterChange", function CatalogRecipeCardComponent_div_10_Template_ng_miam_counter_input_counterChange_1_listener($event) { i0.ɵɵrestoreView(_r28_1); var ctx_r27 = i0.ɵɵnextContext(); return ctx_r27.updateGuests($event); });
8527
+ var _r31_1 = i0.ɵɵgetCurrentView();
8528
+ i0.ɵɵelementStart(0, "div", 41);
8529
+ i0.ɵɵelementStart(1, "ng-miam-counter-input", 42);
8530
+ i0.ɵɵlistener("counterChange", function CatalogRecipeCardComponent_div_10_Template_ng_miam_counter_input_counterChange_1_listener($event) { i0.ɵɵrestoreView(_r31_1); var ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.updateGuests($event); });
8398
8531
  i0.ɵɵelementEnd();
8399
8532
  i0.ɵɵelementEnd();
8400
8533
  }
@@ -8406,26 +8539,26 @@
8406
8539
  }
8407
8540
  function CatalogRecipeCardComponent_div_11_div_5_Template(rf, ctx) {
8408
8541
  if (rf & 1) {
8409
- i0.ɵɵelementStart(0, "div", 46);
8542
+ i0.ɵɵelementStart(0, "div", 47);
8410
8543
  i0.ɵɵtext(1);
8411
8544
  i0.ɵɵelementEnd();
8412
8545
  }
8413
8546
  if (rf & 2) {
8414
- var ctx_r29 = i0.ɵɵnextContext(2);
8547
+ var ctx_r32 = i0.ɵɵnextContext(2);
8415
8548
  i0.ɵɵadvance(1);
8416
- i0.ɵɵtextInterpolate1(" + ", ctx_r29.recipe.modifiedIngredients.length - 2, " ");
8549
+ i0.ɵɵtextInterpolate1(" + ", ctx_r32.recipe.modifiedIngredients.length - 2, " ");
8417
8550
  }
8418
8551
  }
8419
8552
  function CatalogRecipeCardComponent_div_11_Template(rf, ctx) {
8420
8553
  if (rf & 1) {
8421
- i0.ɵɵelementStart(0, "div", 42);
8422
- i0.ɵɵelementStart(1, "div", 43);
8423
- i0.ɵɵelement(2, "img", 44);
8554
+ i0.ɵɵelementStart(0, "div", 43);
8555
+ i0.ɵɵelementStart(1, "div", 44);
8556
+ i0.ɵɵelement(2, "img", 45);
8424
8557
  i0.ɵɵelementEnd();
8425
- i0.ɵɵelementStart(3, "div", 43);
8426
- i0.ɵɵelement(4, "img", 44);
8558
+ i0.ɵɵelementStart(3, "div", 44);
8559
+ i0.ɵɵelement(4, "img", 45);
8427
8560
  i0.ɵɵelementEnd();
8428
- i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_11_div_5_Template, 2, 1, "div", 45);
8561
+ i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_11_div_5_Template, 2, 1, "div", 46);
8429
8562
  i0.ɵɵelementEnd();
8430
8563
  }
8431
8564
  if (rf & 2) {
@@ -8440,7 +8573,7 @@
8440
8573
  }
8441
8574
  function CatalogRecipeCardComponent_ng_template_12_Template(rf, ctx) {
8442
8575
  if (rf & 1) {
8443
- i0.ɵɵelement(0, "ng-miam-skeleton", 38);
8576
+ i0.ɵɵelement(0, "ng-miam-skeleton", 39);
8444
8577
  }
8445
8578
  if (rf & 2) {
8446
8579
  var ctx_r6 = i0.ɵɵnextContext();
@@ -8449,48 +8582,64 @@
8449
8582
  }
8450
8583
  function CatalogRecipeCardComponent_ng_miam_recipe_pricing_16_Template(rf, ctx) {
8451
8584
  if (rf & 1) {
8452
- i0.ɵɵelement(0, "ng-miam-recipe-pricing", 47);
8585
+ i0.ɵɵelement(0, "ng-miam-recipe-pricing", 48);
8453
8586
  }
8454
8587
  if (rf & 2) {
8455
8588
  var ctx_r7 = i0.ɵɵnextContext();
8456
8589
  i0.ɵɵproperty("recipe", ctx_r7.recipe)("serves", ctx_r7.recipe == null ? null : ctx_r7.recipe.modifiedGuests);
8457
8590
  }
8458
8591
  }
8459
- function CatalogRecipeCardComponent_div_21_Template(rf, ctx) {
8592
+ function CatalogRecipeCardComponent_ng_miam_icon_18_Template(rf, ctx) {
8460
8593
  if (rf & 1) {
8461
- i0.ɵɵelementStart(0, "div", 48);
8462
- i0.ɵɵelement(1, "ng-miam-icon", 49);
8463
- i0.ɵɵelementStart(2, "span", 50);
8594
+ i0.ɵɵelement(0, "ng-miam-icon", 49);
8595
+ i0.ɵɵpipe(1, "async");
8596
+ }
8597
+ if (rf & 2) {
8598
+ var ctx_r8 = i0.ɵɵnextContext();
8599
+ var tmp_2_0 = null;
8600
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_2_0 = i0.ɵɵpipeBind1(1, 3, ctx_r8.groceriesListsService.list$)) == null ? null : tmp_2_0.hasRecipe(ctx_r8.recipe == null ? null : ctx_r8.recipe.id)) ? ctx_r8.icon.CheckList : ctx_r8.icon.Cart);
8601
+ }
8602
+ }
8603
+ function CatalogRecipeCardComponent_ng_template_19_Template(rf, ctx) {
8604
+ if (rf & 1) {
8605
+ i0.ɵɵelement(0, "ng-miam-loader");
8606
+ }
8607
+ }
8608
+ function CatalogRecipeCardComponent_div_22_Template(rf, ctx) {
8609
+ if (rf & 1) {
8610
+ i0.ɵɵelementStart(0, "div", 50);
8611
+ i0.ɵɵelement(1, "ng-miam-icon", 51);
8612
+ i0.ɵɵelementStart(2, "span", 52);
8464
8613
  i0.ɵɵtext(3);
8465
8614
  i0.ɵɵelementEnd();
8466
8615
  i0.ɵɵelementEnd();
8467
8616
  }
8468
8617
  if (rf & 2) {
8469
- var ctx_r8 = i0.ɵɵnextContext();
8618
+ var ctx_r11 = i0.ɵɵnextContext();
8470
8619
  i0.ɵɵadvance(1);
8471
- i0.ɵɵproperty("iconName", ctx_r8.icon.Time);
8620
+ i0.ɵɵproperty("iconName", ctx_r11.icon.Time);
8472
8621
  i0.ɵɵadvance(2);
8473
- i0.ɵɵtextInterpolate2("", ctx_r8.isMobile ? "" : "Temps n\u00E9cessaire : ", "", ctx_r8.recipe == null ? null : ctx_r8.recipe.totalTime, "");
8622
+ i0.ɵɵtextInterpolate2("", ctx_r11.isMobile ? "" : "Temps n\u00E9cessaire : ", "", ctx_r11.recipe == null ? null : ctx_r11.recipe.totalTime, "");
8474
8623
  }
8475
8624
  }
8476
- function CatalogRecipeCardComponent_ng_template_22_Template(rf, ctx) {
8625
+ function CatalogRecipeCardComponent_ng_template_23_Template(rf, ctx) {
8477
8626
  if (rf & 1) {
8478
- i0.ɵɵelement(0, "ng-miam-skeleton", 38);
8627
+ i0.ɵɵelement(0, "ng-miam-skeleton", 39);
8479
8628
  }
8480
8629
  if (rf & 2) {
8481
- var ctx_r10 = i0.ɵɵnextContext();
8482
- i0.ɵɵproperty("type", ctx_r10.skeleton == null ? null : ctx_r10.skeleton.IconWithInfo);
8630
+ var ctx_r13 = i0.ɵɵnextContext();
8631
+ i0.ɵɵproperty("type", ctx_r13.skeleton == null ? null : ctx_r13.skeleton.IconWithInfo);
8483
8632
  }
8484
8633
  }
8485
- function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template(rf, ctx) {
8634
+ function CatalogRecipeCardComponent_ng_miam_actions_popin_25_Template(rf, ctx) {
8486
8635
  if (rf & 1) {
8487
- var _r31_1 = i0.ɵɵgetCurrentView();
8488
- i0.ɵɵelementStart(0, "ng-miam-actions-popin", 51);
8489
- i0.ɵɵlistener("close", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_close_0_listener() { i0.ɵɵrestoreView(_r31_1); var ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.closeMoreActions(); })("actionTriggered", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_actionTriggered_0_listener($event) { i0.ɵɵrestoreView(_r31_1); var ctx_r32 = i0.ɵɵnextContext(); return ctx_r32.actionTriggered.emit($event); });
8636
+ var _r34_1 = i0.ɵɵgetCurrentView();
8637
+ i0.ɵɵelementStart(0, "ng-miam-actions-popin", 53);
8638
+ i0.ɵɵlistener("close", function CatalogRecipeCardComponent_ng_miam_actions_popin_25_Template_ng_miam_actions_popin_close_0_listener() { i0.ɵɵrestoreView(_r34_1); var ctx_r33 = i0.ɵɵnextContext(); return ctx_r33.closeMoreActions(); })("actionTriggered", function CatalogRecipeCardComponent_ng_miam_actions_popin_25_Template_ng_miam_actions_popin_actionTriggered_0_listener($event) { i0.ɵɵrestoreView(_r34_1); var ctx_r35 = i0.ɵɵnextContext(); return ctx_r35.actionTriggered.emit($event); });
8490
8639
  i0.ɵɵelementEnd();
8491
8640
  }
8492
8641
  }
8493
- function CatalogRecipeCardComponent_ng_template_25_Template(rf, ctx) {
8642
+ function CatalogRecipeCardComponent_ng_template_26_Template(rf, ctx) {
8494
8643
  if (rf & 1) {
8495
8644
  i0.ɵɵelement(0, "ng-miam-cors-overlay");
8496
8645
  }
@@ -8580,7 +8729,7 @@
8580
8729
  if (rf & 1) {
8581
8730
  i0.ɵɵlistener("scroll", function CatalogRecipeCardComponent_scroll_HostBindingHandler() { return ctx.onScroll(); }, false, i0.ɵɵresolveWindow);
8582
8731
  }
8583
- }, outputs: { actionTriggered: "actionTriggered" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 16, consts: [[1, "miam-catalog-recipe-card"], [1, "miam-catalog-recipe-card__header"], ["class", "miam-catalog-card__picture", 3, "click", 4, "ngIf", "ngIfElse"], ["pictSkeleton", ""], [1, "miam-catalog-card__attributes"], [1, "miam-catalog-recipe-card__attributes__control"], [1, "miam-catalog-recipe-card__control__left__col"], ["class", "miam-catalog-recipe-card__left__col__counter", 4, "ngIf", "ngIfElse"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], ["skeletoncounter", ""], [1, "miam-catalog-recipe-card__control__right__col"], [1, "miam-catalog-recipe-card__right__col__price"], [3, "recipe", "serves", 4, "ngIf"], [1, "m-button-fab-primary", 3, "disabled", "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-catalog-card__attributes__infos"], ["class", "miam-catalog-card__attributes__info ", 4, "ngIf", "ngIfElse"], ["skeletonInfo", ""], [3, "close", "actionTriggered", 4, "ngIf"], ["cors", ""], [1, "miam-catalog-card__picture", 3, "click"], [1, "miam-catalog-card__picture__gradient"], ["loading", "lazy", 1, "miam-catalog-card__picture__img", 3, "src"], [4, "ngIf"], ["class", "miam-catalog-recipe-card__picture__video", 4, "ngIf"], ["class", "miam-catalog-recipe-card__picture__tag", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["textSkeleton", ""], [1, "miam-catalog-recipe-card__picture__actions"], ["class", "miam-catalog-recipe-card__actions__icon miam-noPadding", 3, "recipe", 4, "ngIf"], [1, "miam-catalog-recipe-card__actions__icon", 3, "click"], ["miamMoreActions", ""], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-catalog-card__picture__sponsor", 3, "src"], [1, "miam-catalog-recipe-card__picture__video"], ["primaryColor", "var(--m-color-primary)", 3, "iconName", "width", "height"], [1, "miam-catalog-recipe-card__picture__tag"], [1, "miam-catalog-recipe-card__attributes__title", 3, "click"], [3, "type"], [1, "miam-catalog-recipe-card__actions__icon", "miam-noPadding", 3, "recipe"], [1, "miam-catalog-recipe-card__left__col__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], [3, "src"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [3, "recipe", "serves"], [1, "miam-catalog-card__attributes__info"], [3, "iconName"], [1, "miam-catalog-card__info__label"], [3, "close", "actionTriggered"]], template: function CatalogRecipeCardComponent_Template(rf, ctx) {
8732
+ }, outputs: { actionTriggered: "actionTriggered" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 28, vars: 13, consts: [[1, "miam-catalog-recipe-card"], [1, "miam-catalog-recipe-card__header"], ["class", "miam-catalog-card__picture", 3, "click", 4, "ngIf", "ngIfElse"], ["pictSkeleton", ""], [1, "miam-catalog-card__attributes"], [1, "miam-catalog-recipe-card__attributes__control"], [1, "miam-catalog-recipe-card__control__left__col"], ["class", "miam-catalog-recipe-card__left__col__counter", 4, "ngIf", "ngIfElse"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], ["skeletoncounter", ""], [1, "miam-catalog-recipe-card__control__right__col"], [1, "miam-catalog-recipe-card__right__col__price"], [3, "recipe", "serves", 4, "ngIf"], [1, "m-button-fab-primary", 3, "disabled", "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-catalog-card__attributes__infos"], ["class", "miam-catalog-card__attributes__info ", 4, "ngIf", "ngIfElse"], ["skeletonInfo", ""], [3, "close", "actionTriggered", 4, "ngIf"], ["cors", ""], [1, "miam-catalog-card__picture", 3, "click"], [1, "miam-catalog-card__picture__gradient"], ["loading", "lazy", 1, "miam-catalog-card__picture__img", 3, "src"], [4, "ngIf"], ["class", "miam-catalog-recipe-card__picture__video", 4, "ngIf"], ["class", "miam-catalog-recipe-card__picture__tag", 4, "ngIf"], [4, "ngIf", "ngIfElse"], ["textSkeleton", ""], [1, "miam-catalog-recipe-card__picture__actions"], ["class", "miam-catalog-recipe-card__actions__icon miam-noPadding", 3, "recipe", 4, "ngIf"], [1, "miam-catalog-recipe-card__actions__icon", 3, "click"], ["miamMoreActions", ""], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-catalog-card__picture__sponsor", 3, "src"], [1, "miam-catalog-recipe-card__picture__video"], ["primaryColor", "var(--m-color-primary)", 3, "iconName", "width", "height"], [1, "miam-catalog-recipe-card__picture__tag"], [1, "miam-catalog-recipe-card__attributes__title", 3, "click"], [3, "type"], [1, "miam-catalog-recipe-card__actions__icon", "miam-noPadding", 3, "recipe"], [1, "miam-catalog-recipe-card__left__col__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], [3, "src"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [3, "recipe", "serves"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-catalog-card__attributes__info"], [3, "iconName"], [1, "miam-catalog-card__info__label"], [3, "close", "actionTriggered"]], template: function CatalogRecipeCardComponent_Template(rf, ctx) {
8584
8733
  if (rf & 1) {
8585
8734
  i0.ɵɵelementStart(0, "div", 0);
8586
8735
  i0.ɵɵelementStart(1, "div", 1);
@@ -8603,25 +8752,25 @@
8603
8752
  i0.ɵɵelementEnd();
8604
8753
  i0.ɵɵelementStart(17, "button", 13);
8605
8754
  i0.ɵɵlistener("click", function CatalogRecipeCardComponent_Template_button_click_17_listener() { return ctx.clickPrimary(); });
8606
- i0.ɵɵelement(18, "ng-miam-icon", 14);
8607
- i0.ɵɵpipe(19, "async");
8755
+ i0.ɵɵtemplate(18, CatalogRecipeCardComponent_ng_miam_icon_18_Template, 2, 5, "ng-miam-icon", 14);
8756
+ i0.ɵɵtemplate(19, CatalogRecipeCardComponent_ng_template_19_Template, 1, 0, "ng-template", null, 15, i0.ɵɵtemplateRefExtractor);
8608
8757
  i0.ɵɵelementEnd();
8609
8758
  i0.ɵɵelementEnd();
8610
8759
  i0.ɵɵelementEnd();
8611
- i0.ɵɵelementStart(20, "div", 15);
8612
- i0.ɵɵtemplate(21, CatalogRecipeCardComponent_div_21_Template, 4, 3, "div", 16);
8613
- i0.ɵɵtemplate(22, CatalogRecipeCardComponent_ng_template_22_Template, 1, 1, "ng-template", null, 17, i0.ɵɵtemplateRefExtractor);
8760
+ i0.ɵɵelementStart(21, "div", 16);
8761
+ i0.ɵɵtemplate(22, CatalogRecipeCardComponent_div_22_Template, 4, 3, "div", 17);
8762
+ i0.ɵɵtemplate(23, CatalogRecipeCardComponent_ng_template_23_Template, 1, 1, "ng-template", null, 18, i0.ɵɵtemplateRefExtractor);
8614
8763
  i0.ɵɵelementEnd();
8615
8764
  i0.ɵɵelementEnd();
8616
- i0.ɵɵtemplate(24, CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template, 1, 0, "ng-miam-actions-popin", 18);
8765
+ i0.ɵɵtemplate(25, CatalogRecipeCardComponent_ng_miam_actions_popin_25_Template, 1, 0, "ng-miam-actions-popin", 19);
8617
8766
  i0.ɵɵelementEnd();
8618
- i0.ɵɵtemplate(25, CatalogRecipeCardComponent_ng_template_25_Template, 1, 0, "ng-template", null, 19, i0.ɵɵtemplateRefExtractor);
8767
+ i0.ɵɵtemplate(26, CatalogRecipeCardComponent_ng_template_26_Template, 1, 0, "ng-template", null, 20, i0.ɵɵtemplateRefExtractor);
8619
8768
  }
8620
8769
  if (rf & 2) {
8621
8770
  var _r1 = i0.ɵɵreference(6);
8622
8771
  var _r5 = i0.ɵɵreference(13);
8623
- var _r9 = i0.ɵɵreference(23);
8624
- var tmp_10_0 = null;
8772
+ var _r9 = i0.ɵɵreference(20);
8773
+ var _r12 = i0.ɵɵreference(24);
8625
8774
  i0.ɵɵadvance(3);
8626
8775
  i0.ɵɵtextInterpolate1(" ", ctx.headerText, "");
8627
8776
  i0.ɵɵadvance(1);
@@ -8635,13 +8784,13 @@
8635
8784
  i0.ɵɵadvance(1);
8636
8785
  i0.ɵɵproperty("disabled", !ctx.recipe);
8637
8786
  i0.ɵɵadvance(1);
8638
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_10_0 = i0.ɵɵpipeBind1(19, 14, ctx.groceriesListsService.list$)) == null ? null : tmp_10_0.hasRecipe(ctx.recipe == null ? null : ctx.recipe.id)) ? ctx.icon.CheckList : ctx.icon.Cart);
8639
- i0.ɵɵadvance(3);
8640
- i0.ɵɵproperty("ngIf", ctx.recipe)("ngIfElse", _r9);
8787
+ i0.ɵɵproperty("ngIf", !ctx.addButtonLoading)("ngIfElse", _r9);
8788
+ i0.ɵɵadvance(4);
8789
+ i0.ɵɵproperty("ngIf", ctx.recipe)("ngIfElse", _r12);
8641
8790
  i0.ɵɵadvance(3);
8642
8791
  i0.ɵɵproperty("ngIf", ctx.actionsOpened);
8643
8792
  }
8644
- }, directives: [i8.NgIf, IconComponent, SkeletonComponent, LikeButtonComponent, CounterInputComponent, RecipePricingComponent, ActionsPopinComponent, CORSOverlayComponent], pipes: [i8.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-fab,.m-button-fab-grey,.m-button-fab-primary,.m-button-fab-secondary,.m-button-grey,.m-button-link,.m-button-primary,.m-button-secondary{-moz-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;align-items:center;border-radius:var(--m-border-radius);cursor:pointer;display:flex;justify-content:center;min-width:152px;outline:0;padding:16px 32px;transition:.3s ease-in-out;user-select:none}.m-button-fab-grey ng-miam-icon,.m-button-fab-primary ng-miam-icon,.m-button-fab-secondary ng-miam-icon,.m-button-fab ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-link ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{margin-left:20px;padding:0}.m-button-fab-grey:disabled,.m-button-fab-primary:disabled,.m-button-fab-secondary:disabled,.m-button-fab:disabled,.m-button-grey:disabled,.m-button-link:disabled,.m-button-primary:disabled,.m-button-secondary:disabled,.m-button:disabled{background-color:var(--m-color-grey06);color:var(--m-color-grey03);min-height:42px}.m-button-fab-grey:disabled ng-miam-icon svg,.m-button-fab-primary:disabled ng-miam-icon svg,.m-button-fab-secondary:disabled ng-miam-icon svg,.m-button-fab:disabled ng-miam-icon svg,.m-button-grey:disabled ng-miam-icon svg,.m-button-link:disabled ng-miam-icon svg,.m-button-primary:disabled ng-miam-icon svg,.m-button-secondary:disabled ng-miam-icon svg,.m-button:disabled ng-miam-icon svg{fill:var(--m-color-grey03)}@media (min-width:1022px){.m-button-fab-grey:disabled:hover,.m-button-fab-primary:disabled:hover,.m-button-fab-secondary:disabled:hover,.m-button-fab:disabled:hover,.m-button-grey:disabled:hover,.m-button-link:disabled:hover,.m-button-primary:disabled:hover,.m-button-secondary:disabled:hover,.m-button:disabled:hover{background-color:var(--m-color-grey06);color:var(--m-color-grey03);cursor:default}}.m-button-fab-grey:focus,.m-button-fab-primary:focus,.m-button-fab-secondary:focus,.m-button-fab:focus,.m-button-grey:focus,.m-button-link:focus,.m-button-primary:focus,.m-button-secondary:focus,.m-button:focus{box-shadow:0 0 0 4px #c1f0ec}.m-button-primary{background-color:var(--m-color-primary);border:1px solid transparent;color:var(--m-color-unpure-white)}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-unpure-white)}@media (min-width:1022px){.m-button-primary:hover{background-color:var(--m-color-primary-dark)}}.m-button-secondary{background-color:var(--m-color-unpure-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary)}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-primary)}@media (min-width:1022px){.m-button-secondary:hover{background-color:var(--m-color-primary-light)}}.m-button-link{background-color:var(--m-color-primary);border:1px solid transparent;color:var(--m-color-unpure-white)}.m-button-link ng-miam-icon svg path{fill:var(--m-color-unpure-white)}@media (min-width:1022px){.m-button-link:hover{background-color:var(--m-color-secondary-dark)}}.m-button-fab-grey,.m-button-grey{background-color:var(--m-color-unpure-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03)}.m-button-fab-grey ng-miam-icon svg path,.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}@media (min-width:1022px){.m-button-fab-grey:hover,.m-button-grey:hover{background-color:var(--m-color-hairlines)}}.m-button-fab,.m-button-fab-grey,.m-button-fab-primary,.m-button-fab-secondary{border-radius:var(--m-border-radius-circle);min-width:unset;outline:0;padding:8px}.m-button-fab-grey ng-miam-icon,.m-button-fab-primary ng-miam-icon,.m-button-fab-secondary ng-miam-icon,.m-button-fab ng-miam-icon{margin-left:0}.m-button-fab-grey:disabled,.m-button-fab-primary:disabled,.m-button-fab-secondary:disabled,.m-button-fab:disabled{fill:var(--m-color-grey-text-dark)}@media (min-width:1022px){.m-button-fab-grey:disabled:hover,.m-button-fab-primary:disabled:hover,.m-button-fab-secondary:disabled:hover,.m-button-fab:disabled:hover{fill:var(--m-color-grey-text-dark)}}.m-button-fab-primary{background-color:var(--m-color-primary);border:1px solid transparent;fill:var(--m-color-primary-text)}@media (min-width:1022px){.m-button-fab-primary:hover{background-color:var(--m-color-primary-text);border:1px solid var(--m-color-primary-text)}.m-button-fab-primary:hover path{fill:var(--m-color-primary)}}.m-button-fab-secondary{background-color:var(--m-color-secondary-text);border:1px solid var(--m-color-secondary);fill:var(--m-color-secondary)}@media (min-width:1022px){.m-button-fab-secondary:hover{background-color:var(--m-color-secondary);fill:var(--m-color-secondary-text)}}.m-button-fab-grey{background-color:#fff;border:none}.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-catalog-recipe-card .miam-catalog-card__attributes,.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions,.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}#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-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,#2bb6aa);--m-color-primary-dark:var(--miam-color-primary-dark,#419f97);--m-color-primary-light:var(--miam-color-primary-light,#eafaf9);--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-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-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-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-button,:root .m-button-fab,:root .m-button-fab-grey,:root .m-button-fab-primary,:root .m-button-fab-secondary,:root .m-button-grey,:root .m-button-link,:root .m-button-primary,:root .m-button-secondary,:root .m-button-typo{font-family:Work Sans;font-size:var(--m-font-size-medium);font-size:14px;font-style:normal;font-weight:700;letter-spacing:.5px;line-height:16px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{: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-catalog-recipe-card{background-color:#fff;border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);display:flex;flex-direction:column;height:304px;position:relative;width:330px}.miam-catalog-recipe-card .miam-catalog-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:169px;position:relative}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{height:169px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{-o-object-fit:cover;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:169px;object-fit:cover;position:absolute;transition:var(--m-default-transition);width:100%;z-index:var(--m-z-index-position-absolute-low)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor{-o-object-fit:contain;height:auto;left:16px;max-height:48px;max-width:64px;object-fit:contain;position:absolute;top:16px;transform:none;width:auto;z-index:var(--m-z-index-position-absolute-low)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient:after{background:linear-gradient(180deg,rgba(0,0,0,.1) 50.52%,rgba(32,32,32,.85) 88.54%);border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);content:\"\";height:100%;position:absolute;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes{flex:1 1;justify-content:space-between;padding:24px 16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{display:flex;flex-direction:row;justify-content:center}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info{display:flex;flex-direction:row}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label{color:var(--m-color-grey-text);font-size:15px;margin-left:8px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label:first-letter{text-transform:capitalize}@media (max-width:1022px){.miam-catalog-recipe-card{border-radius:24px;width:272px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img,.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient:after{border-radius:24px 24px 0 0}.miam-catalog-recipe-card .miam-catalog-card__attributes{padding:16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__infos{bottom:16px;position:absolute}}.miam-catalog-recipe-card .miam-catalog-recipe-card__header{display:none}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__video{left:calc(50% - 40px);position:absolute;top:calc(50% - 50px)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__tag{background-color:var(--m-color-primary-light);border-radius:5px;color:var(--m-color-primary);font-weight:500;left:16px;padding:8px;position:absolute;text-transform:uppercase;top:16px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__attributes__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;-webkit-tap-highlight-color:transparent;bottom:0;color:#fff;cursor:pointer;display:-webkit-box;font-size:17px;font-weight:700;left:0;letter-spacing:normal;line-height:20;line-height:1.5;margin:16px;overflow:hidden;position:absolute;text-align:left;text-overflow:ellipsis;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__attributes__title:hover{text-decoration:underline}}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions{position:absolute;right:16px;top:16px;z-index:var(--m-z-index-position-absolute-high)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions .miam-catalog-recipe-card__actions__icon{-o-object-fit:contain;-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:var(--m-border-radius-circle);box-shadow:var(--m-shadow-small);margin:0 0 16px;object-fit:contain;padding:8px;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions .miam-catalog-recipe-card__actions__icon .icon-container{margin:0}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions .miam-catalog-recipe-card__actions__icon.miam-noPadding{padding:0}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control{align-items:center;display:flex;justify-content:space-between}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__left__col{display:flex;flex-direction:column-reverse}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__left__col .miam-catalog-recipe-card__left__col__counter{align-items:center;display:flex}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__left__col .miam-catalog-recipe-card__left__col__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:8px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__right__col{display:flex;flex-direction:row}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__right__col .miam-catalog-recipe-card__right__col__price{margin-right:16px}@media (max-width:1022px){.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control{align-items:flex-start;height:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__left__col{padding-top:4px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__right__col{align-items:end;flex-direction:column;height:100%;justify-content:space-between}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__right__col .miam-catalog-recipe-card__right__col__price{margin-right:unset}}"], encapsulation: 2, changeDetection: 0 });
8793
+ }, directives: [i8.NgIf, IconComponent, SkeletonComponent, LikeButtonComponent, CounterInputComponent, RecipePricingComponent, LoaderComponent, ActionsPopinComponent, CORSOverlayComponent], pipes: [i8.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-fab,.m-button-fab-grey,.m-button-fab-primary,.m-button-fab-secondary,.m-button-grey,.m-button-link,.m-button-primary,.m-button-secondary{-moz-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;align-items:center;border-radius:var(--m-border-radius);cursor:pointer;display:flex;justify-content:center;min-width:152px;outline:0;padding:16px 32px;transition:.3s ease-in-out;user-select:none}.m-button-fab-grey ng-miam-icon,.m-button-fab-primary ng-miam-icon,.m-button-fab-secondary ng-miam-icon,.m-button-fab ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-link ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{margin-left:20px;padding:0}.m-button-fab-grey:disabled,.m-button-fab-primary:disabled,.m-button-fab-secondary:disabled,.m-button-fab:disabled,.m-button-grey:disabled,.m-button-link:disabled,.m-button-primary:disabled,.m-button-secondary:disabled,.m-button:disabled{background-color:var(--m-color-grey06);color:var(--m-color-grey03);min-height:42px}.m-button-fab-grey:disabled ng-miam-icon svg,.m-button-fab-primary:disabled ng-miam-icon svg,.m-button-fab-secondary:disabled ng-miam-icon svg,.m-button-fab:disabled ng-miam-icon svg,.m-button-grey:disabled ng-miam-icon svg,.m-button-link:disabled ng-miam-icon svg,.m-button-primary:disabled ng-miam-icon svg,.m-button-secondary:disabled ng-miam-icon svg,.m-button:disabled ng-miam-icon svg{fill:var(--m-color-grey03)}@media (min-width:1022px){.m-button-fab-grey:disabled:hover,.m-button-fab-primary:disabled:hover,.m-button-fab-secondary:disabled:hover,.m-button-fab:disabled:hover,.m-button-grey:disabled:hover,.m-button-link:disabled:hover,.m-button-primary:disabled:hover,.m-button-secondary:disabled:hover,.m-button:disabled:hover{background-color:var(--m-color-grey06);color:var(--m-color-grey03);cursor:default}}.m-button-fab-grey:focus,.m-button-fab-primary:focus,.m-button-fab-secondary:focus,.m-button-fab:focus,.m-button-grey:focus,.m-button-link:focus,.m-button-primary:focus,.m-button-secondary:focus,.m-button:focus{box-shadow:0 0 0 4px #c1f0ec}.m-button-primary{background-color:var(--m-color-primary);border:1px solid transparent;color:var(--m-color-unpure-white)}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-unpure-white)}@media (min-width:1022px){.m-button-primary:hover{background-color:var(--m-color-primary-dark)}}.m-button-secondary{background-color:var(--m-color-unpure-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary)}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-primary)}@media (min-width:1022px){.m-button-secondary:hover{background-color:var(--m-color-primary-light)}}.m-button-link{background-color:var(--m-color-primary);border:1px solid transparent;color:var(--m-color-unpure-white)}.m-button-link ng-miam-icon svg path{fill:var(--m-color-unpure-white)}@media (min-width:1022px){.m-button-link:hover{background-color:var(--m-color-secondary-dark)}}.m-button-fab-grey,.m-button-grey{background-color:var(--m-color-unpure-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03)}.m-button-fab-grey ng-miam-icon svg path,.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}@media (min-width:1022px){.m-button-fab-grey:hover,.m-button-grey:hover{background-color:var(--m-color-hairlines)}}.m-button-fab,.m-button-fab-grey,.m-button-fab-primary,.m-button-fab-secondary{border-radius:var(--m-border-radius-circle);min-width:unset;outline:0;padding:8px}.m-button-fab-grey ng-miam-icon,.m-button-fab-primary ng-miam-icon,.m-button-fab-secondary ng-miam-icon,.m-button-fab ng-miam-icon{margin-left:0}.m-button-fab-grey:disabled,.m-button-fab-primary:disabled,.m-button-fab-secondary:disabled,.m-button-fab:disabled{fill:var(--m-color-grey-text-dark)}@media (min-width:1022px){.m-button-fab-grey:disabled:hover,.m-button-fab-primary:disabled:hover,.m-button-fab-secondary:disabled:hover,.m-button-fab:disabled:hover{fill:var(--m-color-grey-text-dark)}}.m-button-fab-primary{background-color:var(--m-color-primary);border:1px solid transparent;fill:var(--m-color-primary-text)}@media (min-width:1022px){.m-button-fab-primary:hover{background-color:var(--m-color-primary-text);border:1px solid var(--m-color-primary-text)}.m-button-fab-primary:hover path{fill:var(--m-color-primary)}}.m-button-fab-secondary{background-color:var(--m-color-secondary-text);border:1px solid var(--m-color-secondary);fill:var(--m-color-secondary)}@media (min-width:1022px){.m-button-fab-secondary:hover{background-color:var(--m-color-secondary);fill:var(--m-color-secondary-text)}}.m-button-fab-grey{background-color:#fff;border:none}.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-catalog-recipe-card .miam-catalog-card__attributes,.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions,.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}#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-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,#2bb6aa);--m-color-primary-dark:var(--miam-color-primary-dark,#419f97);--m-color-primary-light:var(--miam-color-primary-light,#eafaf9);--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-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-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-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-button,:root .m-button-fab,:root .m-button-fab-grey,:root .m-button-fab-primary,:root .m-button-fab-secondary,:root .m-button-grey,:root .m-button-link,:root .m-button-primary,:root .m-button-secondary,:root .m-button-typo{font-family:Work Sans;font-size:var(--m-font-size-medium);font-size:14px;font-style:normal;font-weight:700;letter-spacing:.5px;line-height:16px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{: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-catalog-recipe-card{background-color:#fff;border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);display:flex;flex-direction:column;height:304px;position:relative;width:330px}.miam-catalog-recipe-card .miam-catalog-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:169px;position:relative}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{height:169px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{-o-object-fit:cover;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:169px;object-fit:cover;position:absolute;transition:var(--m-default-transition);width:100%;z-index:var(--m-z-index-position-absolute-low)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor{-o-object-fit:contain;height:auto;left:16px;max-height:48px;max-width:64px;object-fit:contain;position:absolute;top:16px;transform:none;width:auto;z-index:var(--m-z-index-position-absolute-low)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient:after{background:linear-gradient(180deg,rgba(0,0,0,.1) 50.52%,rgba(32,32,32,.85) 88.54%);border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);content:\"\";height:100%;position:absolute;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes{flex:1 1;justify-content:space-between;padding:24px 16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{display:flex;flex-direction:row;justify-content:center}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info{display:flex;flex-direction:row}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label{color:var(--m-color-grey-text);font-size:15px;margin-left:8px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label:first-letter{text-transform:capitalize}@media (max-width:1022px){.miam-catalog-recipe-card{border-radius:24px;width:272px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img,.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient:after{border-radius:24px 24px 0 0}.miam-catalog-recipe-card .miam-catalog-card__attributes{padding:16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__infos{bottom:16px;position:absolute}}.miam-catalog-recipe-card .miam-catalog-recipe-card__header{display:none}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__video{left:calc(50% - 40px);position:absolute;top:calc(50% - 50px)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__tag{background-color:var(--m-color-primary-light);border-radius:5px;color:var(--m-color-primary);font-weight:500;left:16px;padding:8px;position:absolute;text-transform:uppercase;top:16px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__attributes__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;-webkit-tap-highlight-color:transparent;bottom:0;color:#fff;cursor:pointer;display:-webkit-box;font-size:17px;font-weight:700;left:0;letter-spacing:normal;line-height:20;line-height:1.5;margin:16px;overflow:hidden;position:absolute;text-align:left;text-overflow:ellipsis;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__attributes__title:hover{text-decoration:underline}}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions{position:absolute;right:16px;top:16px;z-index:var(--m-z-index-position-absolute-high)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions .miam-catalog-recipe-card__actions__icon{-o-object-fit:contain;-webkit-tap-highlight-color:transparent;background-color:#fff;border-radius:var(--m-border-radius-circle);box-shadow:var(--m-shadow-small);margin:0 0 16px;object-fit:contain;padding:8px;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions .miam-catalog-recipe-card__actions__icon .icon-container{margin:0}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions .miam-catalog-recipe-card__actions__icon.miam-noPadding{padding:0}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control{align-items:center;display:flex;justify-content:space-between}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__left__col{display:flex;flex-direction:column-reverse}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__left__col .miam-catalog-recipe-card__left__col__counter{align-items:center;display:flex}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__left__col .miam-catalog-recipe-card__left__col__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:8px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__right__col{display:flex;flex-direction:row}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__right__col .miam-catalog-recipe-card__right__col__price{margin-right:16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__right__col button .loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:24px;width:24px}@media (max-width:1022px){.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control{align-items:flex-start;height:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__left__col{padding-top:4px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__right__col{align-items:end;flex-direction:column;height:100%;justify-content:space-between}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__control__right__col .miam-catalog-recipe-card__right__col__price{margin-right:unset}}"], encapsulation: 2, changeDetection: 0 });
8645
8794
  /*@__PURE__*/ (function () {
8646
8795
  i0.ɵsetClassMetadata(CatalogRecipeCardComponent, [{
8647
8796
  type: i0.Component,
@@ -8689,49 +8838,6 @@
8689
8838
  }] });
8690
8839
  })();
8691
8840
 
8692
- function LoaderComponent_div_0_Template(rf, ctx) {
8693
- if (rf & 1) {
8694
- i0.ɵɵelementStart(0, "div", 2);
8695
- i0.ɵɵelement(1, "div", 3);
8696
- i0.ɵɵelementEnd();
8697
- }
8698
- }
8699
- function LoaderComponent_div_1_Template(rf, ctx) {
8700
- if (rf & 1) {
8701
- i0.ɵɵelement(0, "div", 3);
8702
- }
8703
- }
8704
- var LoaderComponent = /** @class */ (function () {
8705
- function LoaderComponent() {
8706
- this.wide = false;
8707
- }
8708
- return LoaderComponent;
8709
- }());
8710
- LoaderComponent.ɵfac = function LoaderComponent_Factory(t) { return new (t || LoaderComponent)(); };
8711
- LoaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LoaderComponent, selectors: [["ng-miam-loader"]], inputs: { wide: "wide" }, decls: 2, vars: 2, consts: [["class", "wide-container", 4, "ngIf"], ["class", "loader", 4, "ngIf"], [1, "wide-container"], [1, "loader"]], template: function LoaderComponent_Template(rf, ctx) {
8712
- if (rf & 1) {
8713
- i0.ɵɵtemplate(0, LoaderComponent_div_0_Template, 2, 0, "div", 0);
8714
- i0.ɵɵtemplate(1, LoaderComponent_div_1_Template, 1, 0, "div", 1);
8715
- }
8716
- if (rf & 2) {
8717
- i0.ɵɵproperty("ngIf", ctx.wide);
8718
- i0.ɵɵadvance(1);
8719
- i0.ɵɵproperty("ngIf", !ctx.wide);
8720
- }
8721
- }, directives: [i8.NgIf], styles: ["[_nghost-%COMP%]{--m-loader-size:var(--miam-loader-sizes,40px);--m-loader-thickness:var(--miam-loader-thickness,5px)}.loader[_ngcontent-%COMP%]{-webkit-animation:spin .5s linear infinite;animation:spin .5s linear infinite;border:var(--m-loader-thickness) solid var(--m-color-grey);border-radius:var(--m-border-radius-circle);border-top:var(--m-loader-thickness) solid var(--m-color-ternary);height:var(--m-loader-size);width:var(--m-loader-size)}@-webkit-keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}"] });
8722
- /*@__PURE__*/ (function () {
8723
- i0.ɵsetClassMetadata(LoaderComponent, [{
8724
- type: i0.Component,
8725
- args: [{
8726
- selector: 'ng-miam-loader',
8727
- templateUrl: './loader.component.html',
8728
- styleUrls: ['./loader.component.scss']
8729
- }]
8730
- }], function () { return []; }, { wide: [{
8731
- type: i0.Input
8732
- }] });
8733
- })();
8734
-
8735
8841
  function CatalogArticleCardComponent_img_4_Template(rf, ctx) {
8736
8842
  if (rf & 1) {
8737
8843
  i0.ɵɵelement(0, "img", 11);
@@ -9542,7 +9648,7 @@
9542
9648
  return this.recipesService.all({
9543
9649
  remotefilter: requestFilters,
9544
9650
  page: { size: 20, number: page },
9545
- include: ['ingredients', 'recipe-steps', 'recipe-type', 'recipe-status', 'sponsors', 'recipe-provider']
9651
+ include: ['ingredients', 'recipe-steps', 'recipe-type', 'recipe-status', 'sponsors', 'recipe-provider', 'tags']
9546
9652
  }).pipe(operators.skipWhile(function (resp) { return resp.is_loading; }), operators.switchMap(function (result) { return _this.processResults(result.data, requestFilters, page); }));
9547
9653
  }
9548
9654
  };
@@ -10523,85 +10629,85 @@
10523
10629
  }] });
10524
10630
  })();
10525
10631
 
10526
- function BasketPreviewLineComponent_ng_container_1_div_3_Template(rf, ctx) {
10632
+ function BasketPreviewLineComponent_div_3_Template(rf, ctx) {
10527
10633
  if (rf & 1) {
10528
- var _r15_1 = i0.ɵɵgetCurrentView();
10529
- i0.ɵɵelementStart(0, "div", 24);
10530
- i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_1_div_3_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r15_1); var ctx_r14 = i0.ɵɵnextContext(2); return ctx_r14.removeLine($event); });
10531
- i0.ɵɵelement(1, "ng-miam-icon", 25);
10634
+ var _r14_1 = i0.ɵɵgetCurrentView();
10635
+ i0.ɵɵelementStart(0, "div", 23);
10636
+ i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_3_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r14_1); var ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.removeLine($event); });
10637
+ i0.ɵɵelement(1, "ng-miam-icon", 24);
10532
10638
  i0.ɵɵelementEnd();
10533
10639
  }
10534
10640
  if (rf & 2) {
10535
- var ctx_r2 = i0.ɵɵnextContext(2);
10641
+ var ctx_r0 = i0.ɵɵnextContext();
10536
10642
  i0.ɵɵadvance(1);
10537
- i0.ɵɵproperty("iconName", ctx_r2.icon.Trash);
10643
+ i0.ɵɵproperty("iconName", ctx_r0.icon.Trash);
10538
10644
  }
10539
10645
  }
10540
- function BasketPreviewLineComponent_ng_container_1_div_11_Template(rf, ctx) {
10646
+ function BasketPreviewLineComponent_div_11_Template(rf, ctx) {
10541
10647
  if (rf & 1) {
10542
10648
  i0.ɵɵelementStart(0, "div");
10543
10649
  i0.ɵɵtext(1);
10544
10650
  i0.ɵɵelementEnd();
10545
10651
  }
10546
10652
  if (rf & 2) {
10547
- var item_r16 = ctx.$implicit;
10653
+ var item_r15 = ctx.$implicit;
10548
10654
  i0.ɵɵadvance(1);
10549
- i0.ɵɵtextInterpolate(item_r16);
10655
+ i0.ɵɵtextInterpolate(item_r15);
10550
10656
  }
10551
10657
  }
10552
- function BasketPreviewLineComponent_ng_container_1_div_13_Template(rf, ctx) {
10658
+ function BasketPreviewLineComponent_div_13_Template(rf, ctx) {
10553
10659
  if (rf & 1) {
10554
- i0.ɵɵelementStart(0, "div", 26);
10660
+ i0.ɵɵelementStart(0, "div", 25);
10555
10661
  i0.ɵɵtext(1);
10556
10662
  i0.ɵɵelementEnd();
10557
10663
  }
10558
10664
  if (rf & 2) {
10559
- var ctx_r4 = i0.ɵɵnextContext(2);
10665
+ var ctx_r2 = i0.ɵɵnextContext();
10560
10666
  i0.ɵɵadvance(1);
10561
- i0.ɵɵtextInterpolate1(" ", ctx_r4.expanded ? "Masquer" : "Voir", " le d\u00E9tail ");
10667
+ i0.ɵɵtextInterpolate1(" ", ctx_r2.expanded ? "Masquer" : "Voir", " le d\u00E9tail ");
10562
10668
  }
10563
10669
  }
10564
- function BasketPreviewLineComponent_ng_container_1_div_14_Template(rf, ctx) {
10670
+ function BasketPreviewLineComponent_div_14_Template(rf, ctx) {
10565
10671
  if (rf & 1) {
10566
- i0.ɵɵelementStart(0, "div", 26);
10672
+ i0.ɵɵelementStart(0, "div", 25);
10567
10673
  i0.ɵɵtext(1, " Voir la recette ");
10568
10674
  i0.ɵɵelementEnd();
10569
10675
  }
10570
10676
  }
10571
10677
  var _c0$g = function (a0) { return { "disable": a0 }; };
10572
- function BasketPreviewLineComponent_ng_container_1_div_15_Template(rf, ctx) {
10678
+ function BasketPreviewLineComponent_div_15_Template(rf, ctx) {
10573
10679
  if (rf & 1) {
10574
- var _r18_1 = i0.ɵɵgetCurrentView();
10575
- i0.ɵɵelementStart(0, "div", 27);
10576
- i0.ɵɵelementStart(1, "a", 28);
10577
- i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_1_div_15_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r18_1); var ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.changeProduct(ctx_r17.line); });
10680
+ var _r17_1 = i0.ɵɵgetCurrentView();
10681
+ i0.ɵɵelementStart(0, "div", 26);
10682
+ i0.ɵɵelementStart(1, "a", 27);
10683
+ i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_15_Template_a_click_1_listener() { i0.ɵɵrestoreView(_r17_1); var ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.changeProduct(ctx_r16.line); });
10578
10684
  i0.ɵɵtext(2, "Changer d'article");
10579
10685
  i0.ɵɵelementEnd();
10580
10686
  i0.ɵɵelementEnd();
10581
10687
  }
10582
10688
  if (rf & 2) {
10583
- var ctx_r6 = i0.ɵɵnextContext(2);
10689
+ var ctx_r4 = i0.ɵɵnextContext();
10584
10690
  i0.ɵɵadvance(1);
10585
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$g, ctx_r6.disableItemSelector));
10691
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$g, ctx_r4.disableItemSelector));
10586
10692
  }
10587
10693
  }
10588
- function BasketPreviewLineComponent_ng_container_1_div_16_Template(rf, ctx) {
10694
+ function BasketPreviewLineComponent_div_16_Template(rf, ctx) {
10589
10695
  if (rf & 1) {
10590
- i0.ɵɵelementStart(0, "div", 29);
10591
- i0.ɵɵelementStart(1, "span", 30);
10696
+ i0.ɵɵelementStart(0, "div", 28);
10697
+ i0.ɵɵelementStart(1, "span", 29);
10592
10698
  i0.ɵɵtext(2);
10593
10699
  i0.ɵɵelementEnd();
10594
10700
  i0.ɵɵelementEnd();
10595
10701
  }
10596
10702
  if (rf & 2) {
10597
- var ctx_r7 = i0.ɵɵnextContext(2);
10703
+ var ctx_r5 = i0.ɵɵnextContext();
10598
10704
  i0.ɵɵadvance(2);
10599
- i0.ɵɵtextInterpolate(ctx_r7.line.inlineTag);
10705
+ i0.ɵɵtextInterpolate(ctx_r5.line.inlineTag);
10600
10706
  }
10601
10707
  }
10602
- function BasketPreviewLineComponent_ng_container_1_div_18_Template(rf, ctx) {
10708
+ function BasketPreviewLineComponent_div_18_Template(rf, ctx) {
10603
10709
  if (rf & 1) {
10604
- i0.ɵɵelementStart(0, "div", 31);
10710
+ i0.ɵɵelementStart(0, "div", 30);
10605
10711
  i0.ɵɵelementStart(1, "span");
10606
10712
  i0.ɵɵtext(2);
10607
10713
  i0.ɵɵelementEnd();
@@ -10614,204 +10720,129 @@
10614
10720
  i0.ɵɵelementEnd();
10615
10721
  }
10616
10722
  if (rf & 2) {
10617
- var ctx_r8 = i0.ɵɵnextContext(2);
10723
+ var ctx_r6 = i0.ɵɵnextContext();
10618
10724
  i0.ɵɵadvance(2);
10619
- i0.ɵɵtextInterpolate1("", ctx_r8.priceIntegerPart(), ",");
10725
+ i0.ɵɵtextInterpolate1("", ctx_r6.priceIntegerPart(), ",");
10620
10726
  i0.ɵɵadvance(2);
10621
- i0.ɵɵtextInterpolate(ctx_r8.priceDecimalPart());
10727
+ i0.ɵɵtextInterpolate(ctx_r6.priceDecimalPart());
10622
10728
  }
10623
10729
  }
10624
- function BasketPreviewLineComponent_ng_container_1_ng_template_19_Template(rf, ctx) {
10730
+ function BasketPreviewLineComponent_ng_template_19_Template(rf, ctx) {
10625
10731
  if (rf & 1) {
10626
- i0.ɵɵelement(0, "ng-miam-recipe-pricing", 32);
10732
+ i0.ɵɵelement(0, "ng-miam-recipe-pricing", 31);
10627
10733
  i0.ɵɵpipe(1, "async");
10628
10734
  }
10629
10735
  if (rf & 2) {
10630
- var ctx_r10 = i0.ɵɵnextContext(2);
10631
- i0.ɵɵproperty("recipe", i0.ɵɵpipeBind1(1, 2, ctx_r10.recipesService.get(ctx_r10.line.id)))("serves", ctx_r10.line.count);
10736
+ var ctx_r8 = i0.ɵɵnextContext();
10737
+ i0.ɵɵproperty("recipe", i0.ɵɵpipeBind1(1, 2, ctx_r8.recipesService.get(ctx_r8.line.id)))("serves", ctx_r8.line.count);
10632
10738
  }
10633
10739
  }
10634
- function BasketPreviewLineComponent_ng_container_1_div_22_Template(rf, ctx) {
10740
+ function BasketPreviewLineComponent_div_22_Template(rf, ctx) {
10635
10741
  if (rf & 1) {
10636
- i0.ɵɵelementStart(0, "div", 33);
10742
+ i0.ɵɵelementStart(0, "div", 32);
10637
10743
  i0.ɵɵtext(1, "pour");
10638
10744
  i0.ɵɵelementEnd();
10639
10745
  }
10640
10746
  }
10641
- function BasketPreviewLineComponent_ng_container_1_div_24_Template(rf, ctx) {
10747
+ function BasketPreviewLineComponent_div_24_Template(rf, ctx) {
10642
10748
  if (rf & 1) {
10643
- i0.ɵɵelementStart(0, "div", 34);
10749
+ i0.ɵɵelementStart(0, "div", 33);
10644
10750
  i0.ɵɵtext(1);
10645
10751
  i0.ɵɵelementEnd();
10646
10752
  }
10647
10753
  if (rf & 2) {
10648
- var ctx_r12 = i0.ɵɵnextContext(2);
10754
+ var ctx_r10 = i0.ɵɵnextContext();
10649
10755
  i0.ɵɵadvance(1);
10650
- i0.ɵɵtextInterpolate1("personne", ctx_r12.line.count > 1 ? "s" : "", "");
10756
+ i0.ɵɵtextInterpolate1("personne", ctx_r10.line.count > 1 ? "s" : "", "");
10651
10757
  }
10652
10758
  }
10653
- function BasketPreviewLineComponent_ng_container_1_div_25_Template(rf, ctx) {
10759
+ function BasketPreviewLineComponent_div_25_Template(rf, ctx) {
10654
10760
  if (rf & 1) {
10655
- var _r20_1 = i0.ɵɵgetCurrentView();
10656
- i0.ɵɵelementStart(0, "div", 35);
10657
- i0.ɵɵelementStart(1, "button", 36);
10658
- i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_1_div_25_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r20_1); var ctx_r19 = i0.ɵɵnextContext(2); return ctx_r19.toggleRecipeDisplay($event, true); });
10659
- i0.ɵɵelement(2, "ng-miam-icon", 37);
10660
- i0.ɵɵelementEnd();
10661
- i0.ɵɵelementEnd();
10662
- }
10663
- if (rf & 2) {
10664
- var ctx_r13 = i0.ɵɵnextContext(2);
10665
- i0.ɵɵadvance(2);
10666
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r13.icon.Cart);
10667
- }
10668
- }
10669
- function BasketPreviewLineComponent_ng_container_1_Template(rf, ctx) {
10670
- if (rf & 1) {
10671
- var _r22_1 = i0.ɵɵgetCurrentView();
10672
- i0.ɵɵelementContainerStart(0);
10673
- i0.ɵɵelementStart(1, "div", 3);
10674
- i0.ɵɵelementStart(2, "div", 4);
10675
- i0.ɵɵtemplate(3, BasketPreviewLineComponent_ng_container_1_div_3_Template, 2, 1, "div", 5);
10676
- i0.ɵɵelementStart(4, "div", 6);
10677
- i0.ɵɵelementStart(5, "img", 7);
10678
- i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_1_Template_img_click_5_listener($event) { i0.ɵɵrestoreView(_r22_1); var ctx_r21 = i0.ɵɵnextContext(); return ctx_r21.toggleRecipeDisplay($event); });
10679
- i0.ɵɵelementEnd();
10680
- i0.ɵɵelementEnd();
10681
- i0.ɵɵelementStart(6, "div", 8);
10682
- i0.ɵɵelementStart(7, "strong", 9);
10683
- i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_1_Template_strong_click_7_listener($event) { i0.ɵɵrestoreView(_r22_1); var ctx_r23 = i0.ɵɵnextContext(); return ctx_r23.toggleRecipeDisplay($event); });
10684
- i0.ɵɵtext(8);
10685
- i0.ɵɵpipe(9, "capitalizeFirstLetter");
10686
- i0.ɵɵelementEnd();
10687
- i0.ɵɵelementStart(10, "div", 10);
10688
- i0.ɵɵtemplate(11, BasketPreviewLineComponent_ng_container_1_div_11_Template, 2, 1, "div", 11);
10689
- i0.ɵɵelementEnd();
10690
- i0.ɵɵelementStart(12, "div", 12);
10691
- i0.ɵɵtemplate(13, BasketPreviewLineComponent_ng_container_1_div_13_Template, 2, 1, "div", 13);
10692
- i0.ɵɵtemplate(14, BasketPreviewLineComponent_ng_container_1_div_14_Template, 2, 0, "div", 13);
10693
- i0.ɵɵtemplate(15, BasketPreviewLineComponent_ng_container_1_div_15_Template, 3, 3, "div", 14);
10694
- i0.ɵɵtemplate(16, BasketPreviewLineComponent_ng_container_1_div_16_Template, 3, 1, "div", 15);
10695
- i0.ɵɵelementEnd();
10696
- i0.ɵɵelementEnd();
10697
- i0.ɵɵelementEnd();
10698
- i0.ɵɵelementStart(17, "div", 16);
10699
- i0.ɵɵtemplate(18, BasketPreviewLineComponent_ng_container_1_div_18_Template, 7, 2, "div", 17);
10700
- i0.ɵɵtemplate(19, BasketPreviewLineComponent_ng_container_1_ng_template_19_Template, 2, 4, "ng-template", null, 18, i0.ɵɵtemplateRefExtractor);
10701
- i0.ɵɵelementStart(21, "div", 19);
10702
- i0.ɵɵtemplate(22, BasketPreviewLineComponent_ng_container_1_div_22_Template, 2, 0, "div", 20);
10703
- i0.ɵɵelementStart(23, "ng-miam-counter-input", 21);
10704
- i0.ɵɵlistener("counterChange", function BasketPreviewLineComponent_ng_container_1_Template_ng_miam_counter_input_counterChange_23_listener($event) { i0.ɵɵrestoreView(_r22_1); var ctx_r24 = i0.ɵɵnextContext(); return ctx_r24.changeCount($event); });
10705
- i0.ɵɵelementEnd();
10706
- i0.ɵɵtemplate(24, BasketPreviewLineComponent_ng_container_1_div_24_Template, 2, 1, "div", 22);
10707
- i0.ɵɵelementEnd();
10708
- i0.ɵɵtemplate(25, BasketPreviewLineComponent_ng_container_1_div_25_Template, 3, 3, "div", 23);
10761
+ var _r19_1 = i0.ɵɵgetCurrentView();
10762
+ i0.ɵɵelementStart(0, "div", 34);
10763
+ i0.ɵɵelementStart(1, "button", 35);
10764
+ i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_25_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r19_1); var ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.toggleRecipeDisplay($event, true); });
10765
+ i0.ɵɵelement(2, "ng-miam-icon", 36);
10709
10766
  i0.ɵɵelementEnd();
10710
10767
  i0.ɵɵelementEnd();
10711
- i0.ɵɵelementContainerEnd();
10712
10768
  }
10713
10769
  if (rf & 2) {
10714
- var _r9 = i0.ɵɵreference(20);
10715
- var ctx_r0 = i0.ɵɵnextContext();
10716
- i0.ɵɵadvance(3);
10717
- i0.ɵɵproperty("ngIf", !ctx_r0.uniqueLine && !ctx_r0.line.displayMode);
10718
- i0.ɵɵadvance(2);
10719
- i0.ɵɵproperty("src", ctx_r0.line.picture, i0.ɵɵsanitizeUrl);
10720
- i0.ɵɵadvance(3);
10721
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 15, ctx_r0.line.title), " ");
10722
- i0.ɵɵadvance(3);
10723
- i0.ɵɵproperty("ngForOf", ctx_r0.line.description);
10770
+ var ctx_r11 = i0.ɵɵnextContext();
10724
10771
  i0.ɵɵadvance(2);
10725
- i0.ɵɵproperty("ngIf", ctx_r0.line.hasEntries() && !ctx_r0.uniqueLine);
10726
- i0.ɵɵadvance(1);
10727
- i0.ɵɵproperty("ngIf", ctx_r0.line.displayMode);
10728
- i0.ɵɵadvance(1);
10729
- i0.ɵɵproperty("ngIf", !ctx_r0.line.isRecipe && (ctx_r0.line == null ? null : ctx_r0.line.record == null ? null : ctx_r0.line.record.candidateItems == null ? null : ctx_r0.line.record.candidateItems.length) > 0);
10730
- i0.ɵɵadvance(1);
10731
- i0.ɵɵproperty("ngIf", ctx_r0.line.inlineTag);
10732
- i0.ɵɵadvance(2);
10733
- i0.ɵɵproperty("ngIf", ctx_r0.displayTotalPricing || !ctx_r0.line.isRecipe)("ngIfElse", _r9);
10734
- i0.ɵɵadvance(4);
10735
- i0.ɵɵproperty("ngIf", ctx_r0.line.isRecipe);
10736
- i0.ɵɵadvance(1);
10737
- i0.ɵɵproperty("counter", ctx_r0.line.count)("minRange", ctx_r0.line.isRecipe ? 1 : 0);
10738
- i0.ɵɵadvance(1);
10739
- i0.ɵɵproperty("ngIf", ctx_r0.line.isRecipe);
10740
- i0.ɵɵadvance(1);
10741
- i0.ɵɵproperty("ngIf", ctx_r0.line.displayMode);
10772
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r11.icon.Cart);
10742
10773
  }
10743
10774
  }
10744
- function BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_line_1_Template(rf, ctx) {
10775
+ function BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_line_1_Template(rf, ctx) {
10745
10776
  if (rf & 1) {
10746
- var _r34_1 = i0.ɵɵgetCurrentView();
10747
- i0.ɵɵelementStart(0, "ng-miam-basket-preview-line", 45);
10748
- i0.ɵɵlistener("removed", function BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_removed_0_listener($event) { i0.ɵɵrestoreView(_r34_1); var ctx_r33 = i0.ɵɵnextContext(3); return ctx_r33.deleteEntry($event.record); })("replaceItem", function BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_replaceItem_0_listener() { i0.ɵɵrestoreView(_r34_1); var ctx_r35 = i0.ɵɵnextContext(3); return ctx_r35.replaceItem.emit(ctx_r35.line); });
10777
+ var _r29_1 = i0.ɵɵgetCurrentView();
10778
+ i0.ɵɵelementStart(0, "ng-miam-basket-preview-line", 44);
10779
+ i0.ɵɵlistener("removed", function BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_removed_0_listener($event) { i0.ɵɵrestoreView(_r29_1); var ctx_r28 = i0.ɵɵnextContext(3); return ctx_r28.deleteEntry($event.record); })("replaceItem", function BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_replaceItem_0_listener() { i0.ɵɵrestoreView(_r29_1); var ctx_r30 = i0.ɵɵnextContext(3); return ctx_r30.replaceItem.emit(ctx_r30.line); });
10749
10780
  i0.ɵɵelementEnd();
10750
10781
  }
10751
10782
  if (rf & 2) {
10752
- var entryLine_r32 = ctx.$implicit;
10753
- var ctx_r28 = i0.ɵɵnextContext(3);
10754
- i0.ɵɵproperty("line", entryLine_r32)("blockStates", ctx_r28.blockStates);
10783
+ var entryLine_r27 = ctx.$implicit;
10784
+ var ctx_r23 = i0.ɵɵnextContext(3);
10785
+ i0.ɵɵproperty("line", entryLine_r27)("blockStates", ctx_r23.blockStates);
10755
10786
  }
10756
10787
  }
10757
- function BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_disabled_3_Template(rf, ctx) {
10788
+ function BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_disabled_3_Template(rf, ctx) {
10758
10789
  if (rf & 1) {
10759
- i0.ɵɵelement(0, "ng-miam-basket-preview-disabled", 46);
10790
+ i0.ɵɵelement(0, "ng-miam-basket-preview-disabled", 45);
10760
10791
  }
10761
10792
  if (rf & 2) {
10762
- var ctx_r29 = i0.ɵɵnextContext(3);
10763
- i0.ɵɵproperty("entries", ctx_r29.line.entries.notFound);
10793
+ var ctx_r24 = i0.ɵɵnextContext(3);
10794
+ i0.ɵɵproperty("entries", ctx_r24.line.entries.notFound);
10764
10795
  }
10765
10796
  }
10766
- function BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_disabled_4_Template(rf, ctx) {
10797
+ function BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_disabled_4_Template(rf, ctx) {
10767
10798
  if (rf & 1) {
10768
- var _r37_1 = i0.ɵɵgetCurrentView();
10769
- i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 47);
10770
- i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_disabled_4_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r37_1); var ctx_r36 = i0.ɵɵnextContext(3); return ctx_r36.addEntry($event); });
10799
+ var _r32_1 = i0.ɵɵgetCurrentView();
10800
+ i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 46);
10801
+ i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_disabled_4_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r32_1); var ctx_r31 = i0.ɵɵnextContext(3); return ctx_r31.addEntry($event); });
10771
10802
  i0.ɵɵelementEnd();
10772
10803
  }
10773
10804
  if (rf & 2) {
10774
- var ctx_r30 = i0.ɵɵnextContext(3);
10775
- i0.ɵɵproperty("entries", ctx_r30.line.entries.oftenDeleted);
10805
+ var ctx_r25 = i0.ɵɵnextContext(3);
10806
+ i0.ɵɵproperty("entries", ctx_r25.line.entries.oftenDeleted);
10776
10807
  }
10777
10808
  }
10778
- function BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_disabled_5_Template(rf, ctx) {
10809
+ function BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_disabled_5_Template(rf, ctx) {
10779
10810
  if (rf & 1) {
10780
- var _r39_1 = i0.ɵɵgetCurrentView();
10781
- i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 48);
10782
- i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_disabled_5_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r39_1); var ctx_r38 = i0.ɵɵnextContext(3); return ctx_r38.addEntry($event); });
10811
+ var _r34_1 = i0.ɵɵgetCurrentView();
10812
+ i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 47);
10813
+ i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_disabled_5_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r34_1); var ctx_r33 = i0.ɵɵnextContext(3); return ctx_r33.addEntry($event); });
10783
10814
  i0.ɵɵelementEnd();
10784
10815
  }
10785
10816
  if (rf & 2) {
10786
- var ctx_r31 = i0.ɵɵnextContext(3);
10787
- i0.ɵɵproperty("entries", ctx_r31.line.entries.removed)("reduced", true);
10817
+ var ctx_r26 = i0.ɵɵnextContext(3);
10818
+ i0.ɵɵproperty("entries", ctx_r26.line.entries.removed)("reduced", true);
10788
10819
  }
10789
10820
  }
10790
- function BasketPreviewLineComponent_div_2_div_1_Template(rf, ctx) {
10821
+ function BasketPreviewLineComponent_div_26_div_1_Template(rf, ctx) {
10791
10822
  if (rf & 1) {
10792
10823
  i0.ɵɵelementStart(0, "div");
10793
- i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_line_1_Template, 1, 2, "ng-miam-basket-preview-line", 41);
10824
+ i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_line_1_Template, 1, 2, "ng-miam-basket-preview-line", 40);
10794
10825
  i0.ɵɵpipe(2, "async");
10795
- i0.ɵɵtemplate(3, BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 1, "ng-miam-basket-preview-disabled", 42);
10796
- i0.ɵɵtemplate(4, BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 1, "ng-miam-basket-preview-disabled", 43);
10797
- i0.ɵɵtemplate(5, BasketPreviewLineComponent_div_2_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 2, "ng-miam-basket-preview-disabled", 44);
10826
+ i0.ɵɵtemplate(3, BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 1, "ng-miam-basket-preview-disabled", 41);
10827
+ i0.ɵɵtemplate(4, BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 1, "ng-miam-basket-preview-disabled", 42);
10828
+ i0.ɵɵtemplate(5, BasketPreviewLineComponent_div_26_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 2, "ng-miam-basket-preview-disabled", 43);
10798
10829
  i0.ɵɵelementEnd();
10799
10830
  }
10800
10831
  if (rf & 2) {
10801
- var ctx_r25 = i0.ɵɵnextContext(2);
10832
+ var ctx_r20 = i0.ɵɵnextContext(2);
10802
10833
  i0.ɵɵadvance(1);
10803
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 4, ctx_r25.entriesLines$));
10834
+ i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 4, ctx_r20.entriesLines$));
10804
10835
  i0.ɵɵadvance(2);
10805
- i0.ɵɵproperty("ngIf", ctx_r25.line.entries.notFound.length > 0);
10836
+ i0.ɵɵproperty("ngIf", ctx_r20.line.entries.notFound.length > 0);
10806
10837
  i0.ɵɵadvance(1);
10807
- i0.ɵɵproperty("ngIf", ctx_r25.line.entries.oftenDeleted.length > 0);
10838
+ i0.ɵɵproperty("ngIf", ctx_r20.line.entries.oftenDeleted.length > 0);
10808
10839
  i0.ɵɵadvance(1);
10809
- i0.ɵɵproperty("ngIf", ctx_r25.line.entries.removed.length > 0);
10840
+ i0.ɵɵproperty("ngIf", ctx_r20.line.entries.removed.length > 0);
10810
10841
  }
10811
10842
  }
10812
- function BasketPreviewLineComponent_div_2_ng_template_2_Template(rf, ctx) {
10843
+ function BasketPreviewLineComponent_div_26_ng_template_2_Template(rf, ctx) {
10813
10844
  if (rf & 1) {
10814
- i0.ɵɵelementStart(0, "div", 49);
10845
+ i0.ɵɵelementStart(0, "div", 48);
10815
10846
  i0.ɵɵelement(1, "ng-miam-loader");
10816
10847
  i0.ɵɵelementStart(2, "div");
10817
10848
  i0.ɵɵtext(3, "Calcul des ingr\u00E9dients...");
@@ -10819,18 +10850,18 @@
10819
10850
  i0.ɵɵelementEnd();
10820
10851
  }
10821
10852
  }
10822
- function BasketPreviewLineComponent_div_2_Template(rf, ctx) {
10853
+ function BasketPreviewLineComponent_div_26_Template(rf, ctx) {
10823
10854
  if (rf & 1) {
10824
- i0.ɵɵelementStart(0, "div", 38);
10825
- i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_2_div_1_Template, 6, 6, "div", 39);
10826
- i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_2_ng_template_2_Template, 4, 0, "ng-template", null, 40, i0.ɵɵtemplateRefExtractor);
10855
+ i0.ɵɵelementStart(0, "div", 37);
10856
+ i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_26_div_1_Template, 6, 6, "div", 38);
10857
+ i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_26_ng_template_2_Template, 4, 0, "ng-template", null, 39, i0.ɵɵtemplateRefExtractor);
10827
10858
  i0.ɵɵelementEnd();
10828
10859
  }
10829
10860
  if (rf & 2) {
10830
- var _r26 = i0.ɵɵreference(3);
10831
- var ctx_r1 = i0.ɵɵnextContext();
10861
+ var _r21 = i0.ɵɵreference(3);
10862
+ var ctx_r12 = i0.ɵɵnextContext();
10832
10863
  i0.ɵɵadvance(1);
10833
- i0.ɵɵproperty("ngIf", !ctx_r1.loading)("ngIfElse", _r26);
10864
+ i0.ɵɵproperty("ngIf", !ctx_r12.loading)("ngIfElse", _r21);
10834
10865
  }
10835
10866
  }
10836
10867
  var _c1$6 = function (a0, a1, a2) { return { clickable: a0, expanded: a1, elevate: a2 }; };
@@ -10979,7 +11010,7 @@
10979
11010
  event.stopPropagation();
10980
11011
  };
10981
11012
  BasketPreviewLineComponent.prototype.addRecipeActionOK = function () {
10982
- this.listsService.appendRecipeToList(this.line.id, this.line.count);
11013
+ this.subscriptions.push(this.listsService.appendRecipeToList(this.line.id, this.line.count).subscribe());
10983
11014
  this.recipesService.display(this.line.id, { guests: this.line.count, previewMode: true });
10984
11015
  };
10985
11016
  BasketPreviewLineComponent.prototype.removeLine = function (event) {
@@ -10999,19 +11030,81 @@
10999
11030
  return BasketPreviewLineComponent;
11000
11031
  }());
11001
11032
  BasketPreviewLineComponent.ɵfac = function BasketPreviewLineComponent_Factory(t) { return new (t || BasketPreviewLineComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
11002
- BasketPreviewLineComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BasketPreviewLineComponent, selectors: [["ng-miam-basket-preview-line"]], inputs: { line: "line", uniqueLine: "uniqueLine", blockStates: "blockStates", displayTotalPricing: "displayTotalPricing" }, outputs: { removed: "removed", countChanged: "countChanged", replaceItem: "replaceItem", showRecipe: "showRecipe" }, decls: 3, vars: 8, consts: [[1, "miam-basket-preview-line", 3, "id", "ngClass", "click"], [4, "ngIf"], ["class", "miam-basket-preview-lines", 4, "ngIf"], [1, "miam-basket-preview-line__item"], [1, "miam-basket-preview-line__item__left"], ["class", "miam-basket-preview-line__item__remove", 3, "click", 4, "ngIf"], [1, "miam-basket-preview-line__item__picture"], [3, "src", "click"], [1, "miam-basket-preview-line__item__details"], [1, "miam-basket-preview-line__item__title", 3, "click"], [1, "miam-basket-preview-line__item__description"], [4, "ngFor", "ngForOf"], [1, "miam-basket-preview-line__item__actions"], ["class", "miam-basket-preview-line__item__showDetails", 4, "ngIf"], ["class", "miam-basket-preview-line__item__change", 4, "ngIf"], ["class", "miam-basket-preview-line__item__inlineTag__container", 4, "ngIf"], [1, "miam-basket-preview-line__item__right"], ["class", "miam-basket-preview-line__item__price", 4, "ngIf", "ngIfElse"], ["pricePerguest", ""], [1, "miam-basket-preview-line__item__count"], ["class", "miam-basket-preview-line__item__count__for", 4, "ngIf"], [3, "counter", "minRange", "counterChange"], ["class", "miam-basket-preview-line__item__count__people", 4, "ngIf"], ["class", "miam-basket-preview-line__add__button", 4, "ngIf"], [1, "miam-basket-preview-line__item__remove", 3, "click"], ["height", "24", "width", "24", "primaryColor", "var(--m-color-grey-text-dark)", 3, "iconName"], [1, "miam-basket-preview-line__item__showDetails"], [1, "miam-basket-preview-line__item__change"], [1, "miam-basket-preview-line__item__change__link", 3, "ngClass", "click"], [1, "miam-basket-preview-line__item__inlineTag__container"], [1, "miam-basket-preview-line__item__inlineTag"], [1, "miam-basket-preview-line__item__price"], [3, "recipe", "serves"], [1, "miam-basket-preview-line__item__count__for"], [1, "miam-basket-preview-line__item__count__people"], [1, "miam-basket-preview-line__add__button"], [1, "m-button-fab-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-basket-preview-lines"], [4, "ngIf", "ngIfElse"], ["loader", ""], [3, "line", "blockStates", "removed", "replaceItem", 4, "ngFor", "ngForOf"], ["mode", "unavailable", 3, "entries", 4, "ngIf"], ["mode", "oftenDeleted", 3, "entries", "entryAdded", 4, "ngIf"], ["mode", "removed", 3, "entries", "reduced", "entryAdded", 4, "ngIf"], [3, "line", "blockStates", "removed", "replaceItem"], ["mode", "unavailable", 3, "entries"], ["mode", "oftenDeleted", 3, "entries", "entryAdded"], ["mode", "removed", 3, "entries", "reduced", "entryAdded"], [1, "miam-basket-preview-line__loader-container"]], template: function BasketPreviewLineComponent_Template(rf, ctx) {
11033
+ BasketPreviewLineComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BasketPreviewLineComponent, selectors: [["ng-miam-basket-preview-line"]], inputs: { line: "line", uniqueLine: "uniqueLine", blockStates: "blockStates", displayTotalPricing: "displayTotalPricing" }, outputs: { removed: "removed", countChanged: "countChanged", replaceItem: "replaceItem", showRecipe: "showRecipe" }, decls: 27, vars: 24, consts: [[1, "miam-basket-preview-line", 3, "id", "ngClass", "click"], [1, "miam-basket-preview-line__item"], [1, "miam-basket-preview-line__item__left"], ["class", "miam-basket-preview-line__item__remove", 3, "click", 4, "ngIf"], [1, "miam-basket-preview-line__item__picture"], [3, "src", "click"], [1, "miam-basket-preview-line__item__details"], [1, "miam-basket-preview-line__item__title", 3, "click"], [1, "miam-basket-preview-line__item__description"], [4, "ngFor", "ngForOf"], [1, "miam-basket-preview-line__item__actions"], ["class", "miam-basket-preview-line__item__showDetails", 4, "ngIf"], ["class", "miam-basket-preview-line__item__change", 4, "ngIf"], ["class", "miam-basket-preview-line__item__inlineTag__container", 4, "ngIf"], [1, "miam-basket-preview-line__item__right"], ["class", "miam-basket-preview-line__item__price", 4, "ngIf", "ngIfElse"], ["pricePerguest", ""], [1, "miam-basket-preview-line__item__count"], ["class", "miam-basket-preview-line__item__count__for", 4, "ngIf"], [3, "counter", "minRange", "counterChange"], ["class", "miam-basket-preview-line__item__count__people", 4, "ngIf"], ["class", "miam-basket-preview-line__add__button", 4, "ngIf"], ["class", "miam-basket-preview-lines", 4, "ngIf"], [1, "miam-basket-preview-line__item__remove", 3, "click"], ["height", "24", "width", "24", "primaryColor", "var(--m-color-grey-text-dark)", 3, "iconName"], [1, "miam-basket-preview-line__item__showDetails"], [1, "miam-basket-preview-line__item__change"], [1, "miam-basket-preview-line__item__change__link", 3, "ngClass", "click"], [1, "miam-basket-preview-line__item__inlineTag__container"], [1, "miam-basket-preview-line__item__inlineTag"], [1, "miam-basket-preview-line__item__price"], [3, "recipe", "serves"], [1, "miam-basket-preview-line__item__count__for"], [1, "miam-basket-preview-line__item__count__people"], [1, "miam-basket-preview-line__add__button"], [1, "m-button-fab-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-basket-preview-lines"], [4, "ngIf", "ngIfElse"], ["loader", ""], [3, "line", "blockStates", "removed", "replaceItem", 4, "ngFor", "ngForOf"], ["mode", "unavailable", 3, "entries", 4, "ngIf"], ["mode", "oftenDeleted", 3, "entries", "entryAdded", 4, "ngIf"], ["mode", "removed", 3, "entries", "reduced", "entryAdded", 4, "ngIf"], [3, "line", "blockStates", "removed", "replaceItem"], ["mode", "unavailable", 3, "entries"], ["mode", "oftenDeleted", 3, "entries", "entryAdded"], ["mode", "removed", 3, "entries", "reduced", "entryAdded"], [1, "miam-basket-preview-line__loader-container"]], template: function BasketPreviewLineComponent_Template(rf, ctx) {
11003
11034
  if (rf & 1) {
11004
11035
  i0.ɵɵelementStart(0, "div", 0);
11005
11036
  i0.ɵɵlistener("click", function BasketPreviewLineComponent_Template_div_click_0_listener($event) { return ctx.line.displayMode ? ctx.toggleRecipeDisplay($event) : ctx.toggleExpanded($event); });
11006
- i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_container_1_Template, 26, 17, "ng-container", 1);
11037
+ i0.ɵɵelementStart(1, "div", 1);
11038
+ i0.ɵɵelementStart(2, "div", 2);
11039
+ i0.ɵɵtemplate(3, BasketPreviewLineComponent_div_3_Template, 2, 1, "div", 3);
11040
+ i0.ɵɵelementStart(4, "div", 4);
11041
+ i0.ɵɵelementStart(5, "img", 5);
11042
+ i0.ɵɵlistener("click", function BasketPreviewLineComponent_Template_img_click_5_listener($event) { return ctx.toggleRecipeDisplay($event); });
11043
+ i0.ɵɵelementEnd();
11044
+ i0.ɵɵelementEnd();
11045
+ i0.ɵɵelementStart(6, "div", 6);
11046
+ i0.ɵɵelementStart(7, "strong", 7);
11047
+ i0.ɵɵlistener("click", function BasketPreviewLineComponent_Template_strong_click_7_listener($event) { return ctx.toggleRecipeDisplay($event); });
11048
+ i0.ɵɵtext(8);
11049
+ i0.ɵɵpipe(9, "capitalizeFirstLetter");
11007
11050
  i0.ɵɵelementEnd();
11008
- i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_2_Template, 4, 2, "div", 2);
11051
+ i0.ɵɵelementStart(10, "div", 8);
11052
+ i0.ɵɵtemplate(11, BasketPreviewLineComponent_div_11_Template, 2, 1, "div", 9);
11053
+ i0.ɵɵelementEnd();
11054
+ i0.ɵɵelementStart(12, "div", 10);
11055
+ i0.ɵɵtemplate(13, BasketPreviewLineComponent_div_13_Template, 2, 1, "div", 11);
11056
+ i0.ɵɵtemplate(14, BasketPreviewLineComponent_div_14_Template, 2, 0, "div", 11);
11057
+ i0.ɵɵtemplate(15, BasketPreviewLineComponent_div_15_Template, 3, 3, "div", 12);
11058
+ i0.ɵɵtemplate(16, BasketPreviewLineComponent_div_16_Template, 3, 1, "div", 13);
11059
+ i0.ɵɵelementEnd();
11060
+ i0.ɵɵelementEnd();
11061
+ i0.ɵɵelementEnd();
11062
+ i0.ɵɵelementStart(17, "div", 14);
11063
+ i0.ɵɵtemplate(18, BasketPreviewLineComponent_div_18_Template, 7, 2, "div", 15);
11064
+ i0.ɵɵtemplate(19, BasketPreviewLineComponent_ng_template_19_Template, 2, 4, "ng-template", null, 16, i0.ɵɵtemplateRefExtractor);
11065
+ i0.ɵɵelementStart(21, "div", 17);
11066
+ i0.ɵɵtemplate(22, BasketPreviewLineComponent_div_22_Template, 2, 0, "div", 18);
11067
+ i0.ɵɵelementStart(23, "ng-miam-counter-input", 19);
11068
+ i0.ɵɵlistener("counterChange", function BasketPreviewLineComponent_Template_ng_miam_counter_input_counterChange_23_listener($event) { return ctx.changeCount($event); });
11069
+ i0.ɵɵelementEnd();
11070
+ i0.ɵɵtemplate(24, BasketPreviewLineComponent_div_24_Template, 2, 1, "div", 20);
11071
+ i0.ɵɵelementEnd();
11072
+ i0.ɵɵtemplate(25, BasketPreviewLineComponent_div_25_Template, 3, 3, "div", 21);
11073
+ i0.ɵɵelementEnd();
11074
+ i0.ɵɵelementEnd();
11075
+ i0.ɵɵelementEnd();
11076
+ i0.ɵɵtemplate(26, BasketPreviewLineComponent_div_26_Template, 4, 2, "div", 22);
11009
11077
  }
11010
11078
  if (rf & 2) {
11079
+ var _r7 = i0.ɵɵreference(20);
11011
11080
  i0.ɵɵpropertyInterpolate("id", ctx.line.id);
11012
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(4, _c1$6, ctx.line.hasEntries() || ctx.line.displayMode, ctx.expanded, ctx.selectItem));
11081
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(20, _c1$6, ctx.line.hasEntries() || ctx.line.displayMode, ctx.expanded, ctx.selectItem));
11082
+ i0.ɵɵadvance(3);
11083
+ i0.ɵɵproperty("ngIf", !ctx.uniqueLine && !ctx.line.displayMode);
11084
+ i0.ɵɵadvance(2);
11085
+ i0.ɵɵproperty("src", ctx.line.picture, i0.ɵɵsanitizeUrl);
11086
+ i0.ɵɵadvance(3);
11087
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 18, ctx.line.title), " ");
11088
+ i0.ɵɵadvance(3);
11089
+ i0.ɵɵproperty("ngForOf", ctx.line.description);
11090
+ i0.ɵɵadvance(2);
11091
+ i0.ɵɵproperty("ngIf", ctx.line.hasEntries() && !ctx.uniqueLine);
11092
+ i0.ɵɵadvance(1);
11093
+ i0.ɵɵproperty("ngIf", ctx.line.displayMode);
11094
+ i0.ɵɵadvance(1);
11095
+ i0.ɵɵproperty("ngIf", !ctx.line.isRecipe && (ctx.line == null ? null : ctx.line.record == null ? null : ctx.line.record.candidateItems == null ? null : ctx.line.record.candidateItems.length) > 0);
11096
+ i0.ɵɵadvance(1);
11097
+ i0.ɵɵproperty("ngIf", ctx.line.inlineTag);
11098
+ i0.ɵɵadvance(2);
11099
+ i0.ɵɵproperty("ngIf", ctx.displayTotalPricing || !ctx.line.isRecipe)("ngIfElse", _r7);
11100
+ i0.ɵɵadvance(4);
11101
+ i0.ɵɵproperty("ngIf", ctx.line.isRecipe);
11013
11102
  i0.ɵɵadvance(1);
11014
- i0.ɵɵproperty("ngIf", !ctx.selectItem);
11103
+ i0.ɵɵproperty("counter", ctx.line.count)("minRange", ctx.line.isRecipe ? 1 : 0);
11104
+ i0.ɵɵadvance(1);
11105
+ i0.ɵɵproperty("ngIf", ctx.line.isRecipe);
11106
+ i0.ɵɵadvance(1);
11107
+ i0.ɵɵproperty("ngIf", ctx.line.displayMode);
11015
11108
  i0.ɵɵadvance(1);
11016
11109
  i0.ɵɵproperty("ngIf", ctx.expanded);
11017
11110
  }
@@ -11045,24 +11138,23 @@
11045
11138
  }] });
11046
11139
  })();
11047
11140
 
11048
- var _c0$h = ["itemsList"];
11049
- function ReplaceItemComponent_div_24_Template(rf, ctx) {
11141
+ function ReplaceItemComponent_div_22_Template(rf, ctx) {
11050
11142
  if (rf & 1) {
11051
- var _r5_1 = i0.ɵɵgetCurrentView();
11052
- i0.ɵɵelementStart(0, "div", 13);
11053
- i0.ɵɵlistener("click", function ReplaceItemComponent_div_24_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r5_1); var item_r2 = ctx.$implicit; var ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.onSelectItem(item_r2); });
11054
- i0.ɵɵelementStart(1, "div", 14);
11055
- i0.ɵɵelement(2, "ng-miam-icon", 15);
11056
- i0.ɵɵelement(3, "img", 16);
11143
+ var _r4_1 = i0.ɵɵgetCurrentView();
11144
+ i0.ɵɵelementStart(0, "div", 12);
11145
+ i0.ɵɵlistener("click", function ReplaceItemComponent_div_22_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r4_1); var item_r1 = ctx.$implicit; var ctx_r3 = i0.ɵɵnextContext(); return ctx_r3.onSelectItem(item_r1); });
11146
+ i0.ɵɵelementStart(1, "div", 13);
11147
+ i0.ɵɵelement(2, "ng-miam-icon", 14);
11148
+ i0.ɵɵelement(3, "img", 15);
11057
11149
  i0.ɵɵelementEnd();
11058
- i0.ɵɵelementStart(4, "div", 14);
11059
- i0.ɵɵelementStart(5, "div", 17);
11150
+ i0.ɵɵelementStart(4, "div", 13);
11151
+ i0.ɵɵelementStart(5, "div", 16);
11060
11152
  i0.ɵɵelementStart(6, "div", 6);
11061
11153
  i0.ɵɵtext(7);
11062
11154
  i0.ɵɵelementEnd();
11063
11155
  i0.ɵɵelementEnd();
11064
11156
  i0.ɵɵelementEnd();
11065
- i0.ɵɵelementStart(8, "div", 14);
11157
+ i0.ɵɵelementStart(8, "div", 13);
11066
11158
  i0.ɵɵelementStart(9, "div", 7);
11067
11159
  i0.ɵɵelementStart(10, "span");
11068
11160
  i0.ɵɵtext(11);
@@ -11078,18 +11170,18 @@
11078
11170
  i0.ɵɵelementEnd();
11079
11171
  }
11080
11172
  if (rf & 2) {
11081
- var item_r2 = ctx.$implicit;
11082
- var ctx_r1 = i0.ɵɵnextContext();
11173
+ var item_r1 = ctx.$implicit;
11174
+ var ctx_r0 = i0.ɵɵnextContext();
11083
11175
  i0.ɵɵadvance(2);
11084
- i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r1.icon.Swap);
11176
+ i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r0.icon.Swap);
11085
11177
  i0.ɵɵadvance(1);
11086
- i0.ɵɵproperty("src", item_r2 == null ? null : item_r2.attributes == null ? null : item_r2.attributes.image, i0.ɵɵsanitizeUrl);
11178
+ i0.ɵɵproperty("src", item_r1 == null ? null : item_r1.attributes == null ? null : item_r1.attributes.image, i0.ɵɵsanitizeUrl);
11087
11179
  i0.ɵɵadvance(4);
11088
- i0.ɵɵtextInterpolate2(" ", item_r2 == null ? null : item_r2.attributes == null ? null : item_r2.attributes.name, " | ", item_r2 == null ? null : item_r2.capacity, " ");
11180
+ i0.ɵɵtextInterpolate2(" ", item_r1 == null ? null : item_r1.attributes == null ? null : item_r1.attributes.name, " | ", item_r1 == null ? null : item_r1.capacity, " ");
11089
11181
  i0.ɵɵadvance(4);
11090
- i0.ɵɵtextInterpolate1("", ctx_r1.priceIntegerPart(item_r2 == null ? null : item_r2.attributes["unit-price"]), ",");
11182
+ i0.ɵɵtextInterpolate1("", ctx_r0.priceIntegerPart(item_r1 == null ? null : item_r1.attributes["unit-price"]), ",");
11091
11183
  i0.ɵɵadvance(2);
11092
- i0.ɵɵtextInterpolate(ctx_r1.priceDecimalPart(item_r2 == null ? null : item_r2.attributes["unit-price"]));
11184
+ i0.ɵɵtextInterpolate(ctx_r0.priceDecimalPart(item_r1 == null ? null : item_r1.attributes["unit-price"]));
11093
11185
  }
11094
11186
  }
11095
11187
  var ReplaceItemComponent = /** @class */ (function () {
@@ -11135,15 +11227,7 @@
11135
11227
  return ReplaceItemComponent;
11136
11228
  }());
11137
11229
  ReplaceItemComponent.ɵfac = function ReplaceItemComponent_Factory(t) { return new (t || ReplaceItemComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(AnalyticsService)); };
11138
- ReplaceItemComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReplaceItemComponent, selectors: [["ng-miam-replace-item"]], viewQuery: function ReplaceItemComponent_Query(rf, ctx) {
11139
- if (rf & 1) {
11140
- i0.ɵɵstaticViewQuery(_c0$h, true);
11141
- }
11142
- if (rf & 2) {
11143
- var _t;
11144
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemsListElement = _t.first);
11145
- }
11146
- }, inputs: { line: "line" }, outputs: { selected: "selected" }, decls: 25, vars: 7, consts: [[1, "miam-replace-item"], [1, "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-replace-item__selected"], ["alt", "Image non disponible", 1, "miam-replace-item__selected__picture", 3, "src"], [1, "miam-replace-item__selected__column"], [1, "miam-replace-item__description"], [1, "miam-replace-item__price"], [1, "miam-replace-item__choices"], [1, "miam-replace-item__choices__action"], ["itemsList", ""], [1, "miam-replace-item__choices__list"], ["class", "miam-replace-item__choice", 3, "click", 4, "ngFor", "ngForOf"], [1, "miam-replace-item__choice", 3, "click"], [1, "miam-replace-item__choice__column"], [1, "miam-replace-item__choice__swap", 3, "height", "width", "iconName"], [3, "src"], [1, "miam-replace-item__choice__content"]], template: function ReplaceItemComponent_Template(rf, ctx) {
11230
+ ReplaceItemComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReplaceItemComponent, selectors: [["ng-miam-replace-item"]], inputs: { line: "line" }, outputs: { selected: "selected" }, decls: 23, vars: 7, consts: [[1, "miam-replace-item"], [1, "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-replace-item__selected"], ["alt", "Image non disponible", 1, "miam-replace-item__selected__picture", 3, "src"], [1, "miam-replace-item__selected__column"], [1, "miam-replace-item__description"], [1, "miam-replace-item__price"], [1, "miam-replace-item__choices"], [1, "miam-replace-item__choices__action"], [1, "miam-replace-item__choices__list"], ["class", "miam-replace-item__choice", 3, "click", 4, "ngFor", "ngForOf"], [1, "miam-replace-item__choice", 3, "click"], [1, "miam-replace-item__choice__column"], [1, "miam-replace-item__choice__swap", 3, "height", "width", "iconName"], [3, "src"], [1, "miam-replace-item__choice__content"]], template: function ReplaceItemComponent_Template(rf, ctx) {
11147
11231
  if (rf & 1) {
11148
11232
  i0.ɵɵelementStart(0, "div", 0);
11149
11233
  i0.ɵɵelementStart(1, "button", 1);
@@ -11178,10 +11262,8 @@
11178
11262
  i0.ɵɵtext(20, "Remplacer cet article par :");
11179
11263
  i0.ɵɵelementEnd();
11180
11264
  i0.ɵɵelementEnd();
11181
- i0.ɵɵelementStart(21, "div", 8, 10);
11182
- i0.ɵɵelementStart(23, "div", 11);
11183
- i0.ɵɵtemplate(24, ReplaceItemComponent_div_24_Template, 16, 8, "div", 12);
11184
- i0.ɵɵelementEnd();
11265
+ i0.ɵɵelementStart(21, "div", 10);
11266
+ i0.ɵɵtemplate(22, ReplaceItemComponent_div_22_Template, 16, 8, "div", 11);
11185
11267
  i0.ɵɵelementEnd();
11186
11268
  i0.ɵɵelementEnd();
11187
11269
  i0.ɵɵelementEnd();
@@ -11197,7 +11279,7 @@
11197
11279
  i0.ɵɵtextInterpolate1("", ctx.priceIntegerPart(ctx.line == null ? null : ctx.line.record == null ? null : ctx.line.record.totalPrice), ",");
11198
11280
  i0.ɵɵadvance(2);
11199
11281
  i0.ɵɵtextInterpolate(ctx.priceDecimalPart(ctx.line == null ? null : ctx.line.record == null ? null : ctx.line.record.totalPrice));
11200
- i0.ɵɵadvance(10);
11282
+ i0.ɵɵadvance(8);
11201
11283
  i0.ɵɵproperty("ngForOf", ctx.line == null ? null : ctx.line.record == null ? null : ctx.line.record.candidateItems);
11202
11284
  }
11203
11285
  }, directives: [IconComponent, i8.NgForOf], styles: [".miam-replace-item{background:var(--m-color-white);height:100%;width:100%}.miam-replace-item button{margin-left:16px;max-width:150px;padding:16px}.miam-replace-item button ng-miam-icon{height:16px;margin-left:0;padding-top:20px;transform:rotate(90deg)}.miam-replace-item button ng-miam-icon svg path:first-of-type{fill:none}.miam-replace-item .miam-replace-item__selected{align-items:center;border:1px solid var(--m-color-primary);border-radius:16px;display:flex;margin:16px;padding:16px}.miam-replace-item .miam-replace-item__selected .miam-replace-item__selected__picture{height:70px;margin:8px}.miam-replace-item .miam-replace-item__selected .miam-replace-item__selected__column{display:flex;flex-direction:column;padding:10px;width:100%}.miam-replace-item .miam-replace-item__selected .miam-replace-item__selected__column .miam-replace-item__description{text-align:left}.miam-replace-item .miam-replace-item__choices{display:flex;flex-direction:column;margin:auto;min-width:100%;padding-bottom:80px;position:relative;width:auto}@media (max-width:475px){.miam-replace-item .miam-replace-item__choices{min-width:unset}}.miam-replace-item .miam-replace-item__choices ::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-replace-item .miam-replace-item__choices ::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-replace-item .miam-replace-item__choices ::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__action{align-items:center;display:flex;justify-content:space-between;top:0}@media (max-width:475px){.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__action{margin-left:16px}}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__action div{font-size:16px;font-weight:700}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__action .miam-replace-item__choices__close{border:none;padding:0}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list{display:flex;flex-wrap:wrap;gap:16px;padding:16px}@media (max-width:475px){.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list{display:flex;gap:0;justify-content:space-between;margin:auto;padding:0;width:90vw}}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice{-webkit-tap-highlight-color:transparent;border:1px solid var(--m-color-hairlines);border-radius:var(--m-border-radius);cursor:pointer;display:flex;flex-direction:column;width:160px}@media (max-width:475px){.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice{margin-top:8px;width:40vw}}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice .miam-replace-item__choice__column{align-items:center;display:inline-flex;flex-direction:column;gap:8px;margin:8px}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice .miam-replace-item__choice__column .miam-replace-item__choice__content{align-items:center;display:flex;flex-direction:column}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice .miam-replace-item__choice__column img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:50px;object-fit:cover;width:50px}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice .miam-replace-item__choice__swap{background-color:var(--m-color-secondary);border:1px solid var(--m-color-secondary);border-radius:16px;padding:4px;transition:var(--m-default-transition)}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice .miam-replace-item__choice__swap .icon-container svg{fill:var(--m-color-white)}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice:hover{background-color:var(--m-color-white)}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice:hover .miam-replace-item__choice__swap{background-color:#fff;color:var(--m-color-secondary);transform:scale(1.1)}.miam-replace-item .miam-replace-item__choices .miam-replace-item__choices__list .miam-replace-item__choice:hover .miam-replace-item__choice__swap .icon-container svg{fill:var(--m-color-secondary)}.miam-replace-item .miam-replace-item__title{display:inline-block;font-size:16px;font-weight:700;white-space:normal}.miam-replace-item .miam-replace-item__title:first-letter{text-transform:capitalize}.miam-replace-item .miam-replace-item__description{font-size:14px;text-align:center;white-space:normal}.miam-replace-item .miam-replace-item__price{font-size:20px;font-weight:700;text-align:right}"], encapsulation: 2, changeDetection: 0 });
@@ -11215,9 +11297,6 @@
11215
11297
  type: i0.Input
11216
11298
  }], selected: [{
11217
11299
  type: i0.Output
11218
- }], itemsListElement: [{
11219
- type: i0.ViewChild,
11220
- args: ['itemsList', { static: true }]
11221
11300
  }] });
11222
11301
  })();
11223
11302
 
@@ -11238,7 +11317,7 @@
11238
11317
  i0.ɵɵproperty("iconName", ctx_r10.icon.Trash);
11239
11318
  }
11240
11319
  }
11241
- var _c0$i = function (a0) { return { "miam-basket-preview-block__chevron__down": a0 }; };
11320
+ var _c0$h = function (a0) { return { "miam-basket-preview-block__chevron__down": a0 }; };
11242
11321
  function BasketPreviewBlockComponent_div_0_ng_container_2_h3_1_Template(rf, ctx) {
11243
11322
  if (rf & 1) {
11244
11323
  var _r14_1 = i0.ɵɵgetCurrentView();
@@ -11257,7 +11336,7 @@
11257
11336
  i0.ɵɵadvance(2);
11258
11337
  i0.ɵɵproperty("ngIf", ctx_r7.showLines);
11259
11338
  i0.ɵɵadvance(1);
11260
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$i, !ctx_r7.showLines));
11339
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$h, !ctx_r7.showLines));
11261
11340
  i0.ɵɵadvance(1);
11262
11341
  i0.ɵɵproperty("iconName", ctx_r7.icon.ChevronDown);
11263
11342
  }
@@ -11439,7 +11518,7 @@
11439
11518
  this.cdr.detectChanges();
11440
11519
  };
11441
11520
  BasketPreviewBlockComponent.prototype.removeRecipe = function (line) {
11442
- this.listsService.removeRecipeFromList(line.id);
11521
+ this.listsService.removeRecipeFromList(line.id).subscribe();
11443
11522
  };
11444
11523
  BasketPreviewBlockComponent.prototype.updateRecipe = function (line) {
11445
11524
  this.listsService.updateRecipeGuests(line.id, line.count);
@@ -11640,7 +11719,7 @@
11640
11719
  i0.ɵɵproperty("ngIf", ctx_r3.loading);
11641
11720
  }
11642
11721
  }
11643
- var _c0$j = function (a0) { return { expand: a0 }; };
11722
+ var _c0$i = function (a0) { return { expand: a0 }; };
11644
11723
  var DrawerComponent = /** @class */ (function () {
11645
11724
  function DrawerComponent(cdr, listsService, posService, basketsService, analyticsService) {
11646
11725
  this.cdr = cdr;
@@ -11772,13 +11851,13 @@
11772
11851
  if (rf & 2) {
11773
11852
  i0.ɵɵproperty("ngIf", ctx.expand);
11774
11853
  i0.ɵɵadvance(1);
11775
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$j, ctx.expand));
11854
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$i, ctx.expand));
11776
11855
  i0.ɵɵadvance(1);
11777
11856
  i0.ɵɵclassProp("jiggle", ctx.jiggle);
11778
11857
  i0.ɵɵadvance(1);
11779
11858
  i0.ɵɵproperty("ngIf", ctx.recipesCount && ctx.recipesCount > 0);
11780
11859
  i0.ɵɵadvance(1);
11781
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$j, ctx.expand));
11860
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c0$i, ctx.expand));
11782
11861
  i0.ɵɵadvance(6);
11783
11862
  i0.ɵɵproperty("ngIf", ctx.expand);
11784
11863
  i0.ɵɵadvance(1);
@@ -11804,7 +11883,7 @@
11804
11883
  }] });
11805
11884
  })();
11806
11885
 
11807
- var _c0$k = ["miamCatalogTopAnchor"];
11886
+ var _c0$j = ["miamCatalogTopAnchor"];
11808
11887
  function RecipeCatalogComponent_div_2_div_4_Template(rf, ctx) {
11809
11888
  if (rf & 1) {
11810
11889
  var _r10_1 = i0.ɵɵgetCurrentView();
@@ -12232,7 +12311,7 @@
12232
12311
  RecipeCatalogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCatalogComponent, selectors: [["ng-miam-recipe-catalog"]], viewQuery: function RecipeCatalogComponent_Query(rf, ctx) {
12233
12312
  if (rf & 1) {
12234
12313
  i0.ɵɵviewQuery(CatalogHeaderComponent, true);
12235
- i0.ɵɵviewQuery(_c0$k, true);
12314
+ i0.ɵɵviewQuery(_c0$j, true);
12236
12315
  i0.ɵɵviewQuery(CatalogCategoryComponent, true);
12237
12316
  }
12238
12317
  if (rf & 2) {
@@ -12301,7 +12380,7 @@
12301
12380
  i0.ɵɵproperty("iconName", ctx_r5.icon.ChevronDown);
12302
12381
  }
12303
12382
  }
12304
- var _c0$l = function (a0) { return { "filter-collapsed": a0 }; };
12383
+ var _c0$k = function (a0) { return { "filter-collapsed": a0 }; };
12305
12384
  function FavoritePageComponent_div_2_Template(rf, ctx) {
12306
12385
  if (rf & 1) {
12307
12386
  var _r13_1 = i0.ɵɵgetCurrentView();
@@ -12326,7 +12405,7 @@
12326
12405
  i0.ɵɵadvance(1);
12327
12406
  i0.ɵɵproperty("ngIf", !(ctx_r1.listIsEmpty && ctx_r1.isMobile && ctx_r1.areFiltersEmpty()));
12328
12407
  i0.ɵɵadvance(1);
12329
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$l, ctx_r1.isFilterCollapsed));
12408
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c0$k, ctx_r1.isFilterCollapsed));
12330
12409
  i0.ɵɵadvance(1);
12331
12410
  i0.ɵɵproperty("displayReturnButton", false)("forcedPictureUrl", ctx_r1.forcedPictureUrl)("title", ctx_r1.homePageTitle);
12332
12411
  i0.ɵɵadvance(2);
@@ -12483,7 +12562,7 @@
12483
12562
  i0.ɵɵtextInterpolate1(" ", ctx_r5.confirmButtonText, " ");
12484
12563
  }
12485
12564
  }
12486
- var _c0$m = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
12565
+ var _c0$l = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
12487
12566
  function ModalComponent_ng_container_0_Template(rf, ctx) {
12488
12567
  if (rf & 1) {
12489
12568
  var _r11_1 = i0.ɵɵgetCurrentView();
@@ -12515,7 +12594,7 @@
12515
12594
  var _r2 = i0.ɵɵreference(10);
12516
12595
  var ctx_r0 = i0.ɵɵnextContext();
12517
12596
  i0.ɵɵadvance(2);
12518
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(9, _c0$m, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
12597
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(9, _c0$l, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
12519
12598
  i0.ɵɵadvance(4);
12520
12599
  i0.ɵɵtextInterpolate(ctx_r0.title);
12521
12600
  i0.ɵɵadvance(1);
@@ -12762,7 +12841,7 @@
12762
12841
  i0.ɵɵproperty("iconName", ctx_r6.icon.ChevronDown);
12763
12842
  }
12764
12843
  }
12765
- var _c0$n = function (a0) { return { "filter-collapsed": a0 }; };
12844
+ var _c0$m = function (a0) { return { "filter-collapsed": a0 }; };
12766
12845
  function PersonalRecipesComponent_div_2_Template(rf, ctx) {
12767
12846
  if (rf & 1) {
12768
12847
  var _r16_1 = i0.ɵɵgetCurrentView();
@@ -12788,7 +12867,7 @@
12788
12867
  i0.ɵɵadvance(1);
12789
12868
  i0.ɵɵproperty("ngIf", !(ctx_r1.listIsEmpty && ctx_r1.isMobile && ctx_r1.areFiltersEmpty()));
12790
12869
  i0.ɵɵadvance(1);
12791
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$n, ctx_r1.isFilterCollapsed));
12870
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c0$m, ctx_r1.isFilterCollapsed));
12792
12871
  i0.ɵɵadvance(1);
12793
12872
  i0.ɵɵproperty("displayReturnButton", false)("forcedPictureUrl", ctx_r1.forcedPictureUrl)("title", ctx_r1.homePageTitle);
12794
12873
  i0.ɵɵadvance(2);
@@ -12982,7 +13061,7 @@
12982
13061
  }], function () { return []; }, null);
12983
13062
  })();
12984
13063
 
12985
- var _c0$o = function (a0) { return { event: a0 }; };
13064
+ var _c0$n = function (a0) { return { event: a0 }; };
12986
13065
  function PlannerSideMenuComponent_div_7_Template(rf, ctx) {
12987
13066
  if (rf & 1) {
12988
13067
  i0.ɵɵelementStart(0, "div", 3);
@@ -12992,7 +13071,7 @@
12992
13071
  }
12993
13072
  if (rf & 2) {
12994
13073
  var event_r1 = ctx.$implicit;
12995
- i0.ɵɵproperty("dropData", i0.ɵɵpureFunction1(3, _c0$o, event_r1));
13074
+ i0.ɵɵproperty("dropData", i0.ɵɵpureFunction1(3, _c0$n, event_r1));
12996
13075
  i0.ɵɵadvance(1);
12997
13076
  i0.ɵɵproperty("src", event_r1.recipe == null ? null : event_r1.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
12998
13077
  i0.ɵɵadvance(1);
@@ -13241,11 +13320,11 @@
13241
13320
  }] });
13242
13321
  })();
13243
13322
 
13244
- var _c0$p = ["topContainerImg"];
13323
+ var _c0$o = ["topContainerImg"];
13245
13324
  var _c1$a = ["mainContainer"];
13246
13325
  function RecipeDetailsComponent_div_0_img_6_Template(rf, ctx) {
13247
13326
  if (rf & 1) {
13248
- i0.ɵɵelement(0, "img", 40);
13327
+ i0.ɵɵelement(0, "img", 41);
13249
13328
  }
13250
13329
  if (rf & 2) {
13251
13330
  var ctx_r5 = i0.ɵɵnextContext(2);
@@ -13254,12 +13333,12 @@
13254
13333
  }
13255
13334
  function RecipeDetailsComponent_div_0_div_7_Template(rf, ctx) {
13256
13335
  if (rf & 1) {
13257
- i0.ɵɵelement(0, "div", 41);
13336
+ i0.ɵɵelement(0, "div", 42);
13258
13337
  }
13259
13338
  }
13260
13339
  function RecipeDetailsComponent_div_0_youtube_player_8_Template(rf, ctx) {
13261
13340
  if (rf & 1) {
13262
- i0.ɵɵelement(0, "youtube-player", 42);
13341
+ i0.ɵɵelement(0, "youtube-player", 43);
13263
13342
  }
13264
13343
  if (rf & 2) {
13265
13344
  var ctx_r7 = i0.ɵɵnextContext(2);
@@ -13268,14 +13347,14 @@
13268
13347
  }
13269
13348
  function RecipeDetailsComponent_div_0_div_9_Template(rf, ctx) {
13270
13349
  if (rf & 1) {
13271
- i0.ɵɵelementStart(0, "div", 43);
13350
+ i0.ɵɵelementStart(0, "div", 44);
13272
13351
  i0.ɵɵtext(1, "D\u00E9j\u00E0 ajout\u00E9e");
13273
13352
  i0.ɵɵelementEnd();
13274
13353
  }
13275
13354
  }
13276
13355
  function RecipeDetailsComponent_div_0_ng_miam_like_button_12_Template(rf, ctx) {
13277
13356
  if (rf & 1) {
13278
- i0.ɵɵelement(0, "ng-miam-like-button", 44);
13357
+ i0.ɵɵelement(0, "ng-miam-like-button", 45);
13279
13358
  }
13280
13359
  if (rf & 2) {
13281
13360
  var ctx_r9 = i0.ɵɵnextContext(2);
@@ -13284,7 +13363,7 @@
13284
13363
  }
13285
13364
  function RecipeDetailsComponent_div_0_img_16_Template(rf, ctx) {
13286
13365
  if (rf & 1) {
13287
- i0.ɵɵelement(0, "img", 45);
13366
+ i0.ɵɵelement(0, "img", 46);
13288
13367
  }
13289
13368
  if (rf & 2) {
13290
13369
  var ctx_r10 = i0.ɵɵnextContext(2);
@@ -13293,12 +13372,12 @@
13293
13372
  }
13294
13373
  function RecipeDetailsComponent_div_0_div_23_Template(rf, ctx) {
13295
13374
  if (rf & 1) {
13296
- i0.ɵɵelementStart(0, "div", 46);
13375
+ i0.ɵɵelementStart(0, "div", 47);
13297
13376
  i0.ɵɵelementStart(1, "span");
13298
13377
  i0.ɵɵtext(2, "Pr\u00E9paration");
13299
13378
  i0.ɵɵelementEnd();
13300
- i0.ɵɵelementStart(3, "div", 47);
13301
- i0.ɵɵelement(4, "ng-miam-icon", 48);
13379
+ i0.ɵɵelementStart(3, "div", 48);
13380
+ i0.ɵɵelement(4, "ng-miam-icon", 49);
13302
13381
  i0.ɵɵelementStart(5, "span");
13303
13382
  i0.ɵɵtext(6);
13304
13383
  i0.ɵɵelementEnd();
@@ -13315,12 +13394,12 @@
13315
13394
  }
13316
13395
  function RecipeDetailsComponent_div_0_div_24_Template(rf, ctx) {
13317
13396
  if (rf & 1) {
13318
- i0.ɵɵelementStart(0, "div", 46);
13397
+ i0.ɵɵelementStart(0, "div", 47);
13319
13398
  i0.ɵɵelementStart(1, "span");
13320
13399
  i0.ɵɵtext(2, "Cuisson");
13321
13400
  i0.ɵɵelementEnd();
13322
- i0.ɵɵelementStart(3, "div", 47);
13323
- i0.ɵɵelement(4, "ng-miam-icon", 48);
13401
+ i0.ɵɵelementStart(3, "div", 48);
13402
+ i0.ɵɵelement(4, "ng-miam-icon", 49);
13324
13403
  i0.ɵɵelementStart(5, "span");
13325
13404
  i0.ɵɵtext(6);
13326
13405
  i0.ɵɵelementEnd();
@@ -13337,12 +13416,12 @@
13337
13416
  }
13338
13417
  function RecipeDetailsComponent_div_0_div_25_Template(rf, ctx) {
13339
13418
  if (rf & 1) {
13340
- i0.ɵɵelementStart(0, "div", 46);
13419
+ i0.ɵɵelementStart(0, "div", 47);
13341
13420
  i0.ɵɵelementStart(1, "span");
13342
13421
  i0.ɵɵtext(2, "Repos");
13343
13422
  i0.ɵɵelementEnd();
13344
- i0.ɵɵelementStart(3, "div", 47);
13345
- i0.ɵɵelement(4, "ng-miam-icon", 48);
13423
+ i0.ɵɵelementStart(3, "div", 48);
13424
+ i0.ɵɵelement(4, "ng-miam-icon", 49);
13346
13425
  i0.ɵɵelementStart(5, "span");
13347
13426
  i0.ɵɵtext(6);
13348
13427
  i0.ɵɵelementEnd();
@@ -13360,7 +13439,7 @@
13360
13439
  function RecipeDetailsComponent_div_0_ng_container_35_Template(rf, ctx) {
13361
13440
  if (rf & 1) {
13362
13441
  i0.ɵɵelementContainerStart(0);
13363
- i0.ɵɵelement(1, "ng-miam-icon", 49);
13442
+ i0.ɵɵelement(1, "ng-miam-icon", 50);
13364
13443
  i0.ɵɵelementContainerEnd();
13365
13444
  }
13366
13445
  if (rf & 2) {
@@ -13372,7 +13451,7 @@
13372
13451
  function RecipeDetailsComponent_div_0_ng_container_36_Template(rf, ctx) {
13373
13452
  if (rf & 1) {
13374
13453
  i0.ɵɵelementContainerStart(0);
13375
- i0.ɵɵelement(1, "ng-miam-icon", 49);
13454
+ i0.ɵɵelement(1, "ng-miam-icon", 50);
13376
13455
  i0.ɵɵelementContainerEnd();
13377
13456
  }
13378
13457
  if (rf & 2) {
@@ -13384,7 +13463,7 @@
13384
13463
  function RecipeDetailsComponent_div_0_ng_container_37_Template(rf, ctx) {
13385
13464
  if (rf & 1) {
13386
13465
  i0.ɵɵelementContainerStart(0);
13387
- i0.ɵɵelement(1, "ng-miam-icon", 49);
13466
+ i0.ɵɵelement(1, "ng-miam-icon", 50);
13388
13467
  i0.ɵɵelementContainerEnd();
13389
13468
  }
13390
13469
  if (rf & 2) {
@@ -13398,329 +13477,400 @@
13398
13477
  i0.ɵɵelementContainer(0);
13399
13478
  }
13400
13479
  }
13480
+ function RecipeDetailsComponent_div_0_button_51_ng_miam_icon_4_Template(rf, ctx) {
13481
+ if (rf & 1) {
13482
+ i0.ɵɵelement(0, "ng-miam-icon", 54);
13483
+ i0.ɵɵpipe(1, "async");
13484
+ }
13485
+ if (rf & 2) {
13486
+ var ctx_r25 = i0.ɵɵnextContext(3);
13487
+ var tmp_2_0 = null;
13488
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_2_0 = i0.ɵɵpipeBind1(1, 3, ctx_r25.groceriesListsService.list$)) == null ? null : tmp_2_0.hasRecipe(ctx_r25.recipe == null ? null : ctx_r25.recipe.id)) ? ctx_r25.icon.CheckList : ctx_r25.icon.Cart);
13489
+ }
13490
+ }
13491
+ function RecipeDetailsComponent_div_0_button_51_ng_template_5_Template(rf, ctx) {
13492
+ if (rf & 1) {
13493
+ i0.ɵɵelement(0, "ng-miam-loader");
13494
+ }
13495
+ }
13401
13496
  function RecipeDetailsComponent_div_0_button_51_Template(rf, ctx) {
13402
13497
  if (rf & 1) {
13403
- var _r25_1 = i0.ɵɵgetCurrentView();
13404
- i0.ɵɵelementStart(0, "button", 50);
13405
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_51_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25_1); var ctx_r24 = i0.ɵɵnextContext(2); return ctx_r24.clickPrimary(); });
13498
+ var _r29_1 = i0.ɵɵgetCurrentView();
13499
+ i0.ɵɵelementStart(0, "button", 51);
13500
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_51_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r29_1); var ctx_r28 = i0.ɵɵnextContext(2); return ctx_r28.clickPrimary(); });
13406
13501
  i0.ɵɵelementStart(1, "span");
13407
13502
  i0.ɵɵtext(2);
13408
13503
  i0.ɵɵpipe(3, "async");
13409
13504
  i0.ɵɵelementEnd();
13410
- i0.ɵɵelement(4, "ng-miam-icon", 51);
13411
- i0.ɵɵpipe(5, "async");
13505
+ i0.ɵɵtemplate(4, RecipeDetailsComponent_div_0_button_51_ng_miam_icon_4_Template, 2, 5, "ng-miam-icon", 52);
13506
+ i0.ɵɵtemplate(5, RecipeDetailsComponent_div_0_button_51_ng_template_5_Template, 1, 0, "ng-template", null, 53, i0.ɵɵtemplateRefExtractor);
13412
13507
  i0.ɵɵelementEnd();
13413
13508
  }
13414
13509
  if (rf & 2) {
13510
+ var _r26 = i0.ɵɵreference(6);
13415
13511
  var ctx_r18 = i0.ɵɵnextContext(2);
13416
13512
  var tmp_0_0 = null;
13417
- var tmp_3_0 = null;
13418
13513
  i0.ɵɵadvance(2);
13419
- i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4, ctx_r18.groceriesListsService.list$)) == null ? null : tmp_0_0.hasRecipe(ctx_r18.recipe == null ? null : ctx_r18.recipe.id)) ? "Voir le d\u00E9tail" : "S\u00E9lectionner ce repas", " ");
13514
+ i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 3, ctx_r18.groceriesListsService.list$)) == null ? null : tmp_0_0.hasRecipe(ctx_r18.recipe == null ? null : ctx_r18.recipe.id)) ? "Voir le d\u00E9tail" : "S\u00E9lectionner ce repas", " ");
13420
13515
  i0.ɵɵadvance(2);
13421
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6, ctx_r18.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r18.recipe == null ? null : ctx_r18.recipe.id)) ? ctx_r18.icon.CheckList : ctx_r18.icon.Cart);
13516
+ i0.ɵɵproperty("ngIf", !ctx_r18.addButtonLoading)("ngIfElse", _r26);
13422
13517
  }
13423
13518
  }
13424
- function RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template(rf, ctx) {
13519
+ function RecipeDetailsComponent_div_0_div_53_div_1_img_1_Template(rf, ctx) {
13425
13520
  if (rf & 1) {
13426
- var _r27_1 = i0.ɵɵgetCurrentView();
13427
- i0.ɵɵelementStart(0, "ng-miam-addon-link", 52);
13428
- i0.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template_ng_miam_addon_link_showAddon_0_listener() { i0.ɵɵrestoreView(_r27_1); var ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.toggleAddon(); });
13521
+ i0.ɵɵelement(0, "img", 60);
13522
+ }
13523
+ if (rf & 2) {
13524
+ var tag_r31 = i0.ɵɵnextContext().$implicit;
13525
+ i0.ɵɵproperty("src", tag_r31.attributes.icon, i0.ɵɵsanitizeUrl);
13526
+ }
13527
+ }
13528
+ function RecipeDetailsComponent_div_0_div_53_div_1_Template(rf, ctx) {
13529
+ if (rf & 1) {
13530
+ i0.ɵɵelementStart(0, "div", 57);
13531
+ i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_53_div_1_img_1_Template, 1, 1, "img", 58);
13532
+ i0.ɵɵelementStart(2, "span", 59);
13533
+ i0.ɵɵtext(3);
13534
+ i0.ɵɵelementEnd();
13535
+ i0.ɵɵelementEnd();
13536
+ }
13537
+ if (rf & 2) {
13538
+ var tag_r31 = ctx.$implicit;
13539
+ var ctx_r30 = i0.ɵɵnextContext(3);
13540
+ i0.ɵɵadvance(1);
13541
+ i0.ɵɵproperty("ngIf", ctx_r30.displayTagsIcons);
13542
+ i0.ɵɵadvance(2);
13543
+ i0.ɵɵtextInterpolate1(" ", tag_r31.name, " ");
13544
+ }
13545
+ }
13546
+ function RecipeDetailsComponent_div_0_div_53_Template(rf, ctx) {
13547
+ if (rf & 1) {
13548
+ i0.ɵɵelementStart(0, "div", 55);
13549
+ i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_53_div_1_Template, 4, 2, "div", 56);
13429
13550
  i0.ɵɵelementEnd();
13430
13551
  }
13431
13552
  if (rf & 2) {
13432
13553
  var ctx_r19 = i0.ɵɵnextContext(2);
13433
- i0.ɵɵproperty("recipe", ctx_r19.recipe);
13554
+ i0.ɵɵadvance(1);
13555
+ i0.ɵɵproperty("ngForOf", ctx_r19.recipe.relationships.tags.data);
13434
13556
  }
13435
13557
  }
13436
- function RecipeDetailsComponent_div_0_div_55_div_12_div_1_Template(rf, ctx) {
13558
+ function RecipeDetailsComponent_div_0_ng_miam_addon_link_55_Template(rf, ctx) {
13559
+ if (rf & 1) {
13560
+ var _r35_1 = i0.ɵɵgetCurrentView();
13561
+ i0.ɵɵelementStart(0, "ng-miam-addon-link", 61);
13562
+ i0.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_ng_miam_addon_link_55_Template_ng_miam_addon_link_showAddon_0_listener() { i0.ɵɵrestoreView(_r35_1); var ctx_r34 = i0.ɵɵnextContext(2); return ctx_r34.toggleAddon(); });
13563
+ i0.ɵɵelementEnd();
13564
+ }
13565
+ if (rf & 2) {
13566
+ var ctx_r20 = i0.ɵɵnextContext(2);
13567
+ i0.ɵɵproperty("recipe", ctx_r20.recipe);
13568
+ }
13569
+ }
13570
+ function RecipeDetailsComponent_div_0_div_56_div_12_div_1_Template(rf, ctx) {
13437
13571
  if (rf & 1) {
13438
13572
  i0.ɵɵelementStart(0, "div");
13439
- i0.ɵɵelement(1, "img", 68);
13573
+ i0.ɵɵelement(1, "img", 77);
13440
13574
  i0.ɵɵelementEnd();
13441
13575
  }
13442
13576
  if (rf & 2) {
13443
- var ingredient_r30 = i0.ɵɵnextContext().$implicit;
13444
- var ctx_r32 = i0.ɵɵnextContext(3);
13577
+ var ingredient_r38 = i0.ɵɵnextContext().$implicit;
13578
+ var ctx_r40 = i0.ɵɵnextContext(3);
13445
13579
  i0.ɵɵadvance(1);
13446
- i0.ɵɵproperty("src", ctx_r32.ingredientPicture(ingredient_r30), i0.ɵɵsanitizeUrl);
13580
+ i0.ɵɵproperty("src", ctx_r40.ingredientPicture(ingredient_r38), i0.ɵɵsanitizeUrl);
13447
13581
  }
13448
13582
  }
13449
13583
  var _c2$2 = function (a0) { return { "checked": a0 }; };
13450
- function RecipeDetailsComponent_div_0_div_55_div_12_Template(rf, ctx) {
13584
+ function RecipeDetailsComponent_div_0_div_56_div_12_Template(rf, ctx) {
13451
13585
  if (rf & 1) {
13452
- i0.ɵɵelementStart(0, "div", 66);
13453
- i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_55_div_12_div_1_Template, 2, 1, "div", 67);
13586
+ i0.ɵɵelementStart(0, "div", 75);
13587
+ i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_56_div_12_div_1_Template, 2, 1, "div", 76);
13454
13588
  i0.ɵɵelementStart(2, "div");
13455
13589
  i0.ɵɵtext(3);
13456
13590
  i0.ɵɵpipe(4, "capitalizeFirstLetter");
13457
13591
  i0.ɵɵelementEnd();
13458
- i0.ɵɵelementStart(5, "div", 60);
13592
+ i0.ɵɵelementStart(5, "div", 69);
13459
13593
  i0.ɵɵtext(6);
13460
13594
  i0.ɵɵpipe(7, "readableFloatNumber");
13461
13595
  i0.ɵɵelementEnd();
13462
13596
  i0.ɵɵelementEnd();
13463
13597
  }
13464
13598
  if (rf & 2) {
13465
- var ingredient_r30 = ctx.$implicit;
13466
- var i_r31 = ctx.index;
13467
- var ctx_r28 = i0.ɵɵnextContext(3);
13468
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2$2, ctx_r28.ingredientsChecked[i_r31]));
13599
+ var ingredient_r38 = ctx.$implicit;
13600
+ var i_r39 = ctx.index;
13601
+ var ctx_r36 = i0.ɵɵnextContext(3);
13602
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2$2, ctx_r36.ingredientsChecked[i_r39]));
13469
13603
  i0.ɵɵadvance(1);
13470
- i0.ɵɵproperty("ngIf", ctx_r28.ingredientsPictures);
13604
+ i0.ɵɵproperty("ngIf", ctx_r36.ingredientsPictures);
13471
13605
  i0.ɵɵadvance(2);
13472
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ingredient_r30.name), "");
13606
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ingredient_r38.name), "");
13473
13607
  i0.ɵɵadvance(3);
13474
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(7, 6, ingredient_r30.qty, ingredient_r30.unit), "");
13608
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(7, 6, ingredient_r38.qty, ingredient_r38.unit), "");
13475
13609
  }
13476
13610
  }
13477
- function RecipeDetailsComponent_div_0_div_55_div_17_ng_miam_icon_6_Template(rf, ctx) {
13611
+ function RecipeDetailsComponent_div_0_div_56_div_17_ng_miam_icon_6_Template(rf, ctx) {
13478
13612
  if (rf & 1) {
13479
- i0.ɵɵelement(0, "ng-miam-icon", 73);
13613
+ i0.ɵɵelement(0, "ng-miam-icon", 82);
13480
13614
  }
13481
13615
  if (rf & 2) {
13482
- var ctx_r36 = i0.ɵɵnextContext(4);
13483
- i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r36.icon.CheckCircleFill);
13616
+ var ctx_r44 = i0.ɵɵnextContext(4);
13617
+ i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r44.icon.CheckCircleFill);
13484
13618
  }
13485
13619
  }
13486
- function RecipeDetailsComponent_div_0_div_55_div_17_Template(rf, ctx) {
13620
+ function RecipeDetailsComponent_div_0_div_56_div_17_Template(rf, ctx) {
13487
13621
  if (rf & 1) {
13488
- var _r38_1 = i0.ɵɵgetCurrentView();
13489
- i0.ɵɵelementStart(0, "div", 69);
13490
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_55_div_17_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r38_1); var i_r35 = ctx.index; var ctx_r37 = i0.ɵɵnextContext(3); return ctx_r37.changeActiveStep(i_r35); });
13491
- i0.ɵɵelementStart(1, "div", 70);
13622
+ var _r46_1 = i0.ɵɵgetCurrentView();
13623
+ i0.ɵɵelementStart(0, "div", 78);
13624
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_56_div_17_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r46_1); var i_r43 = ctx.index; var ctx_r45 = i0.ɵɵnextContext(3); return ctx_r45.changeActiveStep(i_r43); });
13625
+ i0.ɵɵelementStart(1, "div", 79);
13492
13626
  i0.ɵɵelementStart(2, "strong");
13493
13627
  i0.ɵɵtext(3);
13494
13628
  i0.ɵɵelementEnd();
13495
13629
  i0.ɵɵelementEnd();
13496
- i0.ɵɵelementStart(4, "div", 71);
13630
+ i0.ɵɵelementStart(4, "div", 80);
13497
13631
  i0.ɵɵtext(5);
13498
13632
  i0.ɵɵelementEnd();
13499
- i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_div_55_div_17_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 72);
13633
+ i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_div_56_div_17_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 81);
13500
13634
  i0.ɵɵelementEnd();
13501
13635
  }
13502
13636
  if (rf & 2) {
13503
- var step_r34 = ctx.$implicit;
13504
- var i_r35 = ctx.index;
13505
- var ctx_r29 = i0.ɵɵnextContext(3);
13506
- i0.ɵɵclassProp("active", i_r35 === ctx_r29.activeStep)("miam-recipe-details__panel__done", i_r35 < ctx_r29.activeStep);
13637
+ var step_r42 = ctx.$implicit;
13638
+ var i_r43 = ctx.index;
13639
+ var ctx_r37 = i0.ɵɵnextContext(3);
13640
+ i0.ɵɵclassProp("active", i_r43 === ctx_r37.activeStep)("miam-recipe-details__panel__done", i_r43 < ctx_r37.activeStep);
13507
13641
  i0.ɵɵadvance(3);
13508
- i0.ɵɵtextInterpolate(i_r35 + 1);
13642
+ i0.ɵɵtextInterpolate(i_r43 + 1);
13509
13643
  i0.ɵɵadvance(2);
13510
- i0.ɵɵtextInterpolate(step_r34 == null ? null : step_r34.attributes == null ? null : step_r34.attributes.description);
13644
+ i0.ɵɵtextInterpolate(step_r42 == null ? null : step_r42.attributes == null ? null : step_r42.attributes.description);
13511
13645
  i0.ɵɵadvance(1);
13512
- i0.ɵɵproperty("ngIf", i_r35 <= ctx_r29.activeStep);
13646
+ i0.ɵɵproperty("ngIf", i_r43 <= ctx_r37.activeStep);
13513
13647
  }
13514
13648
  }
13515
- function RecipeDetailsComponent_div_0_div_55_Template(rf, ctx) {
13649
+ function RecipeDetailsComponent_div_0_div_56_Template(rf, ctx) {
13516
13650
  if (rf & 1) {
13517
- var _r40_1 = i0.ɵɵgetCurrentView();
13518
- i0.ɵɵelementStart(0, "div", 53);
13519
- i0.ɵɵelementStart(1, "div", 54);
13520
- i0.ɵɵelementStart(2, "div", 55);
13651
+ var _r48_1 = i0.ɵɵgetCurrentView();
13652
+ i0.ɵɵelementStart(0, "div", 62);
13653
+ i0.ɵɵelementStart(1, "div", 63);
13654
+ i0.ɵɵelementStart(2, "div", 64);
13521
13655
  i0.ɵɵtext(3, " Ingr\u00E9dients ");
13522
13656
  i0.ɵɵelementEnd();
13523
- i0.ɵɵelementStart(4, "div", 56);
13524
- i0.ɵɵelementStart(5, "div", 57);
13525
- i0.ɵɵelementStart(6, "ng-miam-counter-input", 58);
13526
- i0.ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_div_55_Template_ng_miam_counter_input_counterChange_6_listener($event) { i0.ɵɵrestoreView(_r40_1); var ctx_r39 = i0.ɵɵnextContext(2); return ctx_r39.updateGuests($event); });
13657
+ i0.ɵɵelementStart(4, "div", 65);
13658
+ i0.ɵɵelementStart(5, "div", 66);
13659
+ i0.ɵɵelementStart(6, "ng-miam-counter-input", 67);
13660
+ i0.ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_div_56_Template_ng_miam_counter_input_counterChange_6_listener($event) { i0.ɵɵrestoreView(_r48_1); var ctx_r47 = i0.ɵɵnextContext(2); return ctx_r47.updateGuests($event); });
13527
13661
  i0.ɵɵelementEnd();
13528
- i0.ɵɵelementStart(7, "span", 59);
13662
+ i0.ɵɵelementStart(7, "span", 68);
13529
13663
  i0.ɵɵtext(8);
13530
13664
  i0.ɵɵelementEnd();
13531
13665
  i0.ɵɵelementEnd();
13532
- i0.ɵɵelementStart(9, "span", 60);
13666
+ i0.ɵɵelementStart(9, "span", 69);
13533
13667
  i0.ɵɵtext(10, "Quantit\u00E9");
13534
13668
  i0.ɵɵelementEnd();
13535
13669
  i0.ɵɵelementEnd();
13536
- i0.ɵɵelementStart(11, "div", 61);
13537
- i0.ɵɵtemplate(12, RecipeDetailsComponent_div_0_div_55_div_12_Template, 8, 11, "div", 62);
13670
+ i0.ɵɵelementStart(11, "div", 70);
13671
+ i0.ɵɵtemplate(12, RecipeDetailsComponent_div_0_div_56_div_12_Template, 8, 11, "div", 71);
13538
13672
  i0.ɵɵelementEnd();
13539
13673
  i0.ɵɵelementEnd();
13540
- i0.ɵɵelementStart(13, "div", 63);
13541
- i0.ɵɵelementStart(14, "div", 55);
13674
+ i0.ɵɵelementStart(13, "div", 72);
13675
+ i0.ɵɵelementStart(14, "div", 64);
13542
13676
  i0.ɵɵtext(15, " Pr\u00E9paration ");
13543
13677
  i0.ɵɵelementEnd();
13544
- i0.ɵɵelementStart(16, "div", 64);
13545
- i0.ɵɵtemplate(17, RecipeDetailsComponent_div_0_div_55_div_17_Template, 7, 7, "div", 65);
13678
+ i0.ɵɵelementStart(16, "div", 73);
13679
+ i0.ɵɵtemplate(17, RecipeDetailsComponent_div_0_div_56_div_17_Template, 7, 7, "div", 74);
13546
13680
  i0.ɵɵelementEnd();
13547
13681
  i0.ɵɵelementEnd();
13548
13682
  i0.ɵɵelementEnd();
13549
13683
  }
13550
13684
  if (rf & 2) {
13551
- var ctx_r20 = i0.ɵɵnextContext(2);
13685
+ var ctx_r21 = i0.ɵɵnextContext(2);
13552
13686
  i0.ɵɵadvance(6);
13553
- i0.ɵɵproperty("counter", (ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedGuests) || ctx_r20.recipe.guests);
13687
+ i0.ɵɵproperty("counter", (ctx_r21.recipe == null ? null : ctx_r21.recipe.modifiedGuests) || ctx_r21.recipe.guests);
13554
13688
  i0.ɵɵadvance(2);
13555
- i0.ɵɵtextInterpolate1("Pour ", ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedGuests, " personnes");
13689
+ i0.ɵɵtextInterpolate1("Pour ", ctx_r21.recipe == null ? null : ctx_r21.recipe.modifiedGuests, " personnes");
13556
13690
  i0.ɵɵadvance(4);
13557
- i0.ɵɵproperty("ngForOf", ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedIngredients);
13691
+ i0.ɵɵproperty("ngForOf", ctx_r21.recipe == null ? null : ctx_r21.recipe.modifiedIngredients);
13558
13692
  i0.ɵɵadvance(5);
13559
- i0.ɵɵproperty("ngForOf", ctx_r20.steps);
13693
+ i0.ɵɵproperty("ngForOf", ctx_r21.steps);
13560
13694
  }
13561
13695
  }
13562
- function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_div_9_Template(rf, ctx) {
13696
+ function RecipeDetailsComponent_div_0_ng_template_57_ng_container_7_div_9_Template(rf, ctx) {
13563
13697
  if (rf & 1) {
13564
- i0.ɵɵelementStart(0, "div", 66);
13698
+ i0.ɵɵelementStart(0, "div", 75);
13565
13699
  i0.ɵɵelementStart(1, "div");
13566
13700
  i0.ɵɵtext(2);
13567
13701
  i0.ɵɵpipe(3, "capitalizeFirstLetter");
13568
13702
  i0.ɵɵelementEnd();
13569
- i0.ɵɵelementStart(4, "div", 60);
13703
+ i0.ɵɵelementStart(4, "div", 69);
13570
13704
  i0.ɵɵtext(5);
13571
13705
  i0.ɵɵpipe(6, "readableFloatNumber");
13572
13706
  i0.ɵɵelementEnd();
13573
13707
  i0.ɵɵelementEnd();
13574
13708
  }
13575
13709
  if (rf & 2) {
13576
- var ingredient_r46 = ctx.$implicit;
13577
- var i_r47 = ctx.index;
13578
- var ctx_r45 = i0.ɵɵnextContext(4);
13579
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$2, ctx_r45.ingredientsChecked[i_r47]));
13710
+ var ingredient_r54 = ctx.$implicit;
13711
+ var i_r55 = ctx.index;
13712
+ var ctx_r53 = i0.ɵɵnextContext(4);
13713
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$2, ctx_r53.ingredientsChecked[i_r55]));
13580
13714
  i0.ɵɵadvance(2);
13581
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, ingredient_r46.name), "");
13715
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, ingredient_r54.name), "");
13582
13716
  i0.ɵɵadvance(3);
13583
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(6, 5, ingredient_r46.qty, ingredient_r46.unit), "");
13717
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(6, 5, ingredient_r54.qty, ingredient_r54.unit), "");
13584
13718
  }
13585
13719
  }
13586
- function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template(rf, ctx) {
13720
+ function RecipeDetailsComponent_div_0_ng_template_57_ng_container_7_Template(rf, ctx) {
13587
13721
  if (rf & 1) {
13588
- var _r49_1 = i0.ɵɵgetCurrentView();
13722
+ var _r57_1 = i0.ɵɵgetCurrentView();
13589
13723
  i0.ɵɵelementContainerStart(0);
13590
- i0.ɵɵelementStart(1, "div", 56);
13591
- i0.ɵɵelementStart(2, "div", 57);
13592
- i0.ɵɵelementStart(3, "ng-miam-counter-input", 58);
13593
- i0.ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template_ng_miam_counter_input_counterChange_3_listener($event) { i0.ɵɵrestoreView(_r49_1); var ctx_r48 = i0.ɵɵnextContext(3); return ctx_r48.updateGuests($event); });
13724
+ i0.ɵɵelementStart(1, "div", 65);
13725
+ i0.ɵɵelementStart(2, "div", 66);
13726
+ i0.ɵɵelementStart(3, "ng-miam-counter-input", 67);
13727
+ i0.ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_ng_template_57_ng_container_7_Template_ng_miam_counter_input_counterChange_3_listener($event) { i0.ɵɵrestoreView(_r57_1); var ctx_r56 = i0.ɵɵnextContext(3); return ctx_r56.updateGuests($event); });
13594
13728
  i0.ɵɵelementEnd();
13595
- i0.ɵɵelementStart(4, "span", 59);
13729
+ i0.ɵɵelementStart(4, "span", 68);
13596
13730
  i0.ɵɵtext(5);
13597
13731
  i0.ɵɵelementEnd();
13598
13732
  i0.ɵɵelementEnd();
13599
- i0.ɵɵelementStart(6, "span", 60);
13733
+ i0.ɵɵelementStart(6, "span", 69);
13600
13734
  i0.ɵɵtext(7, "Quantit\u00E9");
13601
13735
  i0.ɵɵelementEnd();
13602
13736
  i0.ɵɵelementEnd();
13603
- i0.ɵɵelementStart(8, "div", 61);
13604
- i0.ɵɵtemplate(9, RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_div_9_Template, 7, 10, "div", 62);
13737
+ i0.ɵɵelementStart(8, "div", 70);
13738
+ i0.ɵɵtemplate(9, RecipeDetailsComponent_div_0_ng_template_57_ng_container_7_div_9_Template, 7, 10, "div", 71);
13605
13739
  i0.ɵɵelementEnd();
13606
13740
  i0.ɵɵelementContainerEnd();
13607
13741
  }
13608
13742
  if (rf & 2) {
13609
- var ctx_r42 = i0.ɵɵnextContext(3);
13743
+ var ctx_r50 = i0.ɵɵnextContext(3);
13610
13744
  i0.ɵɵadvance(3);
13611
- i0.ɵɵproperty("counter", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedGuests);
13745
+ i0.ɵɵproperty("counter", ctx_r50.recipe == null ? null : ctx_r50.recipe.modifiedGuests);
13612
13746
  i0.ɵɵadvance(2);
13613
- i0.ɵɵtextInterpolate1("Pour ", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedGuests, " personnes");
13747
+ i0.ɵɵtextInterpolate1("Pour ", ctx_r50.recipe == null ? null : ctx_r50.recipe.modifiedGuests, " personnes");
13614
13748
  i0.ɵɵadvance(4);
13615
- i0.ɵɵproperty("ngForOf", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedIngredients);
13749
+ i0.ɵɵproperty("ngForOf", ctx_r50.recipe == null ? null : ctx_r50.recipe.modifiedIngredients);
13616
13750
  }
13617
13751
  }
13618
- function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_ng_miam_icon_6_Template(rf, ctx) {
13752
+ function RecipeDetailsComponent_div_0_ng_template_57_ng_template_8_div_1_ng_miam_icon_6_Template(rf, ctx) {
13619
13753
  if (rf & 1) {
13620
- i0.ɵɵelement(0, "ng-miam-icon", 73);
13754
+ i0.ɵɵelement(0, "ng-miam-icon", 82);
13621
13755
  }
13622
13756
  if (rf & 2) {
13623
- var ctx_r53 = i0.ɵɵnextContext(5);
13624
- i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r53.icon.CheckCircleFill);
13757
+ var ctx_r61 = i0.ɵɵnextContext(5);
13758
+ i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r61.icon.CheckCircleFill);
13625
13759
  }
13626
13760
  }
13627
- function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template(rf, ctx) {
13761
+ function RecipeDetailsComponent_div_0_ng_template_57_ng_template_8_div_1_Template(rf, ctx) {
13628
13762
  if (rf & 1) {
13629
- var _r55_1 = i0.ɵɵgetCurrentView();
13630
- i0.ɵɵelementStart(0, "div", 69);
13631
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r55_1); var i_r52 = ctx.index; var ctx_r54 = i0.ɵɵnextContext(4); return ctx_r54.changeActiveStep(i_r52); });
13632
- i0.ɵɵelementStart(1, "div", 70);
13763
+ var _r63_1 = i0.ɵɵgetCurrentView();
13764
+ i0.ɵɵelementStart(0, "div", 78);
13765
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_57_ng_template_8_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r63_1); var i_r60 = ctx.index; var ctx_r62 = i0.ɵɵnextContext(4); return ctx_r62.changeActiveStep(i_r60); });
13766
+ i0.ɵɵelementStart(1, "div", 79);
13633
13767
  i0.ɵɵelementStart(2, "strong");
13634
13768
  i0.ɵɵtext(3);
13635
13769
  i0.ɵɵelementEnd();
13636
13770
  i0.ɵɵelementEnd();
13637
- i0.ɵɵelementStart(4, "div", 71);
13771
+ i0.ɵɵelementStart(4, "div", 80);
13638
13772
  i0.ɵɵtext(5);
13639
13773
  i0.ɵɵelementEnd();
13640
- i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 72);
13774
+ i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_ng_template_57_ng_template_8_div_1_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 81);
13641
13775
  i0.ɵɵelementEnd();
13642
13776
  }
13643
13777
  if (rf & 2) {
13644
- var step_r51 = ctx.$implicit;
13645
- var i_r52 = ctx.index;
13646
- var ctx_r50 = i0.ɵɵnextContext(4);
13647
- i0.ɵɵclassProp("active", i_r52 === ctx_r50.activeStep)("miam-recipe-details__panel__done", i_r52 < ctx_r50.activeStep);
13778
+ var step_r59 = ctx.$implicit;
13779
+ var i_r60 = ctx.index;
13780
+ var ctx_r58 = i0.ɵɵnextContext(4);
13781
+ i0.ɵɵclassProp("active", i_r60 === ctx_r58.activeStep)("miam-recipe-details__panel__done", i_r60 < ctx_r58.activeStep);
13648
13782
  i0.ɵɵadvance(3);
13649
- i0.ɵɵtextInterpolate(i_r52 + 1);
13783
+ i0.ɵɵtextInterpolate(i_r60 + 1);
13650
13784
  i0.ɵɵadvance(2);
13651
- i0.ɵɵtextInterpolate(step_r51 == null ? null : step_r51.attributes == null ? null : step_r51.attributes.description);
13785
+ i0.ɵɵtextInterpolate(step_r59 == null ? null : step_r59.attributes == null ? null : step_r59.attributes.description);
13652
13786
  i0.ɵɵadvance(1);
13653
- i0.ɵɵproperty("ngIf", i_r52 <= ctx_r50.activeStep);
13787
+ i0.ɵɵproperty("ngIf", i_r60 <= ctx_r58.activeStep);
13654
13788
  }
13655
13789
  }
13656
- function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_Template(rf, ctx) {
13790
+ function RecipeDetailsComponent_div_0_ng_template_57_ng_template_8_Template(rf, ctx) {
13657
13791
  if (rf & 1) {
13658
- i0.ɵɵelementStart(0, "div", 64);
13659
- i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template, 7, 7, "div", 65);
13792
+ i0.ɵɵelementStart(0, "div", 73);
13793
+ i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_ng_template_57_ng_template_8_div_1_Template, 7, 7, "div", 74);
13660
13794
  i0.ɵɵelementEnd();
13661
13795
  }
13662
13796
  if (rf & 2) {
13663
- var ctx_r44 = i0.ɵɵnextContext(3);
13797
+ var ctx_r52 = i0.ɵɵnextContext(3);
13664
13798
  i0.ɵɵadvance(1);
13665
- i0.ɵɵproperty("ngForOf", ctx_r44.steps);
13799
+ i0.ɵɵproperty("ngForOf", ctx_r52.steps);
13666
13800
  }
13667
13801
  }
13668
13802
  var _c3$1 = function (a0) { return { "active": a0 }; };
13669
- function RecipeDetailsComponent_div_0_ng_template_56_Template(rf, ctx) {
13803
+ function RecipeDetailsComponent_div_0_ng_template_57_Template(rf, ctx) {
13670
13804
  if (rf & 1) {
13671
- var _r57_1 = i0.ɵɵgetCurrentView();
13672
- i0.ɵɵelementStart(0, "div", 74, 75);
13673
- i0.ɵɵelementStart(2, "div", 76);
13674
- i0.ɵɵelementStart(3, "button", 77);
13675
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r57_1); var _r41 = i0.ɵɵreference(1); var ctx_r56 = i0.ɵɵnextContext(2); ctx_r56.toggleShowIngredient(true); return _r41.scrollIntoView(); });
13805
+ var _r65_1 = i0.ɵɵgetCurrentView();
13806
+ i0.ɵɵelementStart(0, "div", 83, 84);
13807
+ i0.ɵɵelementStart(2, "div", 85);
13808
+ i0.ɵɵelementStart(3, "button", 86);
13809
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_57_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r65_1); var _r49 = i0.ɵɵreference(1); var ctx_r64 = i0.ɵɵnextContext(2); ctx_r64.toggleShowIngredient(true); return _r49.scrollIntoView(); });
13676
13810
  i0.ɵɵtext(4, "Ingredients");
13677
13811
  i0.ɵɵelementEnd();
13678
- i0.ɵɵelementStart(5, "button", 77);
13679
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r57_1); var _r41 = i0.ɵɵreference(1); var ctx_r58 = i0.ɵɵnextContext(2); ctx_r58.toggleShowIngredient(false); return _r41.scrollIntoView(); });
13812
+ i0.ɵɵelementStart(5, "button", 86);
13813
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_57_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r65_1); var _r49 = i0.ɵɵreference(1); var ctx_r66 = i0.ɵɵnextContext(2); ctx_r66.toggleShowIngredient(false); return _r49.scrollIntoView(); });
13680
13814
  i0.ɵɵtext(6, "Pr\u00E9paration");
13681
13815
  i0.ɵɵelementEnd();
13682
13816
  i0.ɵɵelementEnd();
13683
- i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template, 10, 3, "ng-container", 78);
13684
- i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_Template, 2, 1, "ng-template", null, 79, i0.ɵɵtemplateRefExtractor);
13817
+ i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_ng_template_57_ng_container_7_Template, 10, 3, "ng-container", 87);
13818
+ i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_ng_template_57_ng_template_8_Template, 2, 1, "ng-template", null, 88, i0.ɵɵtemplateRefExtractor);
13685
13819
  i0.ɵɵelementEnd();
13686
13820
  }
13687
13821
  if (rf & 2) {
13688
- var _r43 = i0.ɵɵreference(9);
13689
- var ctx_r22 = i0.ɵɵnextContext(2);
13822
+ var _r51 = i0.ɵɵreference(9);
13823
+ var ctx_r23 = i0.ɵɵnextContext(2);
13690
13824
  i0.ɵɵadvance(3);
13691
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c3$1, ctx_r22.showIngredient));
13825
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c3$1, ctx_r23.showIngredient));
13692
13826
  i0.ɵɵadvance(2);
13693
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c3$1, !ctx_r22.showIngredient));
13827
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c3$1, !ctx_r23.showIngredient));
13694
13828
  i0.ɵɵadvance(2);
13695
- i0.ɵɵproperty("ngIf", ctx_r22.showIngredient)("ngIfElse", _r43);
13829
+ i0.ɵɵproperty("ngIf", ctx_r23.showIngredient)("ngIfElse", _r51);
13830
+ }
13831
+ }
13832
+ function RecipeDetailsComponent_div_0_button_63_ng_miam_icon_4_Template(rf, ctx) {
13833
+ if (rf & 1) {
13834
+ i0.ɵɵelement(0, "ng-miam-icon", 54);
13835
+ i0.ɵɵpipe(1, "async");
13836
+ }
13837
+ if (rf & 2) {
13838
+ var ctx_r67 = i0.ɵɵnextContext(3);
13839
+ var tmp_2_0 = null;
13840
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_2_0 = i0.ɵɵpipeBind1(1, 3, ctx_r67.groceriesListsService.list$)) == null ? null : tmp_2_0.hasRecipe(ctx_r67.recipe == null ? null : ctx_r67.recipe.id)) ? ctx_r67.icon.CheckList : ctx_r67.icon.Cart);
13841
+ }
13842
+ }
13843
+ function RecipeDetailsComponent_div_0_button_63_ng_template_5_Template(rf, ctx) {
13844
+ if (rf & 1) {
13845
+ i0.ɵɵelement(0, "ng-miam-loader");
13696
13846
  }
13697
13847
  }
13698
- function RecipeDetailsComponent_div_0_button_62_Template(rf, ctx) {
13848
+ function RecipeDetailsComponent_div_0_button_63_Template(rf, ctx) {
13699
13849
  if (rf & 1) {
13700
- var _r60_1 = i0.ɵɵgetCurrentView();
13701
- i0.ɵɵelementStart(0, "button", 50);
13702
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_62_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r60_1); var ctx_r59 = i0.ɵɵnextContext(2); return ctx_r59.clickPrimary(); });
13850
+ var _r71_1 = i0.ɵɵgetCurrentView();
13851
+ i0.ɵɵelementStart(0, "button", 51);
13852
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_63_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r71_1); var ctx_r70 = i0.ɵɵnextContext(2); return ctx_r70.clickPrimary(); });
13703
13853
  i0.ɵɵelementStart(1, "span");
13704
13854
  i0.ɵɵtext(2);
13705
13855
  i0.ɵɵpipe(3, "async");
13706
13856
  i0.ɵɵelementEnd();
13707
- i0.ɵɵelement(4, "ng-miam-icon", 51);
13708
- i0.ɵɵpipe(5, "async");
13857
+ i0.ɵɵtemplate(4, RecipeDetailsComponent_div_0_button_63_ng_miam_icon_4_Template, 2, 5, "ng-miam-icon", 52);
13858
+ i0.ɵɵtemplate(5, RecipeDetailsComponent_div_0_button_63_ng_template_5_Template, 1, 0, "ng-template", null, 53, i0.ɵɵtemplateRefExtractor);
13709
13859
  i0.ɵɵelementEnd();
13710
13860
  }
13711
13861
  if (rf & 2) {
13712
- var ctx_r23 = i0.ɵɵnextContext(2);
13862
+ var _r68 = i0.ɵɵreference(6);
13863
+ var ctx_r24 = i0.ɵɵnextContext(2);
13713
13864
  var tmp_0_0 = null;
13714
- var tmp_3_0 = null;
13715
13865
  i0.ɵɵadvance(2);
13716
- i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4, ctx_r23.groceriesListsService.list$)) == null ? null : tmp_0_0.hasRecipe(ctx_r23.recipe == null ? null : ctx_r23.recipe.id)) ? "Voir le d\u00E9tail" : "S\u00E9lectionner ce repas", " ");
13866
+ i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 3, ctx_r24.groceriesListsService.list$)) == null ? null : tmp_0_0.hasRecipe(ctx_r24.recipe == null ? null : ctx_r24.recipe.id)) ? "Voir le d\u00E9tail" : "S\u00E9lectionner ce repas", " ");
13717
13867
  i0.ɵɵadvance(2);
13718
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6, ctx_r23.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r23.recipe == null ? null : ctx_r23.recipe.id)) ? ctx_r23.icon.CheckList : ctx_r23.icon.Cart);
13868
+ i0.ɵɵproperty("ngIf", !ctx_r24.addButtonLoading)("ngIfElse", _r68);
13719
13869
  }
13720
13870
  }
13721
13871
  function RecipeDetailsComponent_div_0_Template(rf, ctx) {
13722
13872
  if (rf & 1) {
13723
- var _r62_1 = i0.ɵɵgetCurrentView();
13873
+ var _r73_1 = i0.ɵɵgetCurrentView();
13724
13874
  i0.ɵɵelementStart(0, "div", 2, 3);
13725
13875
  i0.ɵɵelementStart(2, "div", 4);
13726
13876
  i0.ɵɵelementStart(3, "div", 5);
@@ -13776,7 +13926,7 @@
13776
13926
  i0.ɵɵelementStart(42, "div", 29);
13777
13927
  i0.ɵɵtext(43);
13778
13928
  i0.ɵɵelementStart(44, "div", 30);
13779
- i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_Template_div_click_44_listener() { i0.ɵɵrestoreView(_r62_1); var ctx_r61 = i0.ɵɵnextContext(); return ctx_r61.print(); });
13929
+ i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_Template_div_click_44_listener() { i0.ɵɵrestoreView(_r73_1); var ctx_r72 = i0.ɵɵnextContext(); return ctx_r72.print(); });
13780
13930
  i0.ɵɵelement(45, "ng-miam-icon", 14);
13781
13931
  i0.ɵɵelementStart(46, "span");
13782
13932
  i0.ɵɵtext(47, " Imprimer la recette ");
@@ -13788,28 +13938,29 @@
13788
13938
  i0.ɵɵelementStart(49, "div", 32);
13789
13939
  i0.ɵɵelement(50, "ng-miam-recipe-pricing", 33);
13790
13940
  i0.ɵɵelementEnd();
13791
- i0.ɵɵtemplate(51, RecipeDetailsComponent_div_0_button_51_Template, 6, 8, "button", 34);
13941
+ i0.ɵɵtemplate(51, RecipeDetailsComponent_div_0_button_51_Template, 7, 5, "button", 34);
13792
13942
  i0.ɵɵelementEnd();
13793
13943
  i0.ɵɵelementEnd();
13794
13944
  i0.ɵɵelementEnd();
13795
13945
  i0.ɵɵelement(52, "div", 35);
13796
- i0.ɵɵelementStart(53, "div");
13797
- i0.ɵɵtemplate(54, RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template, 1, 1, "ng-miam-addon-link", 36);
13946
+ i0.ɵɵtemplate(53, RecipeDetailsComponent_div_0_div_53_Template, 2, 1, "div", 36);
13947
+ i0.ɵɵelementStart(54, "div");
13948
+ i0.ɵɵtemplate(55, RecipeDetailsComponent_div_0_ng_miam_addon_link_55_Template, 1, 1, "ng-miam-addon-link", 37);
13798
13949
  i0.ɵɵelementEnd();
13799
- i0.ɵɵtemplate(55, RecipeDetailsComponent_div_0_div_55_Template, 18, 4, "div", 37);
13800
- i0.ɵɵtemplate(56, RecipeDetailsComponent_div_0_ng_template_56_Template, 10, 8, "ng-template", null, 38, i0.ɵɵtemplateRefExtractor);
13801
- i0.ɵɵelementStart(58, "div", 39);
13802
- i0.ɵɵelementStart(59, "div", 31);
13803
- i0.ɵɵelementStart(60, "div", 32);
13804
- i0.ɵɵelement(61, "ng-miam-recipe-pricing", 33);
13950
+ i0.ɵɵtemplate(56, RecipeDetailsComponent_div_0_div_56_Template, 18, 4, "div", 38);
13951
+ i0.ɵɵtemplate(57, RecipeDetailsComponent_div_0_ng_template_57_Template, 10, 8, "ng-template", null, 39, i0.ɵɵtemplateRefExtractor);
13952
+ i0.ɵɵelementStart(59, "div", 40);
13953
+ i0.ɵɵelementStart(60, "div", 31);
13954
+ i0.ɵɵelementStart(61, "div", 32);
13955
+ i0.ɵɵelement(62, "ng-miam-recipe-pricing", 33);
13805
13956
  i0.ɵɵelementEnd();
13806
- i0.ɵɵtemplate(62, RecipeDetailsComponent_div_0_button_62_Template, 6, 8, "button", 34);
13957
+ i0.ɵɵtemplate(63, RecipeDetailsComponent_div_0_button_63_Template, 7, 5, "button", 34);
13807
13958
  i0.ɵɵelementEnd();
13808
13959
  i0.ɵɵelementEnd();
13809
13960
  i0.ɵɵelementEnd();
13810
13961
  }
13811
13962
  if (rf & 2) {
13812
- var _r21 = i0.ɵɵreference(57);
13963
+ var _r22 = i0.ɵɵreference(58);
13813
13964
  var ctx_r0 = i0.ɵɵnextContext();
13814
13965
  var tmp_3_0 = null;
13815
13966
  i0.ɵɵadvance(6);
@@ -13819,9 +13970,9 @@
13819
13970
  i0.ɵɵadvance(1);
13820
13971
  i0.ɵɵproperty("ngIf", ctx_r0.showVideo && ctx_r0.playerWidth);
13821
13972
  i0.ɵɵadvance(1);
13822
- i0.ɵɵproperty("ngIf", (tmp_3_0 = i0.ɵɵpipeBind1(10, 39, ctx_r0.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r0.recipe == null ? null : ctx_r0.recipe.id));
13973
+ i0.ɵɵproperty("ngIf", (tmp_3_0 = i0.ɵɵpipeBind1(10, 40, ctx_r0.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r0.recipe == null ? null : ctx_r0.recipe.id));
13823
13974
  i0.ɵɵadvance(3);
13824
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 41, ctx_r0.userService.isLogged$));
13975
+ i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 42, ctx_r0.userService.isLogged$));
13825
13976
  i0.ɵɵadvance(2);
13826
13977
  i0.ɵɵproperty("width", 26)("height", 26)("iconName", ctx_r0.icon.Calendar);
13827
13978
  i0.ɵɵadvance(1);
@@ -13839,7 +13990,7 @@
13839
13990
  i0.ɵɵadvance(1);
13840
13991
  i0.ɵɵproperty("ngIf", (ctx_r0.recipe == null ? null : ctx_r0.recipe.restingTime) !== "-");
13841
13992
  i0.ɵɵadvance(4);
13842
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 43, ctx_r0.recipe == null ? null : ctx_r0.recipe.recipeType == null ? null : ctx_r0.recipe.recipeType.attributes == null ? null : ctx_r0.recipe.recipeType.attributes.name));
13993
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 44, ctx_r0.recipe == null ? null : ctx_r0.recipe.recipeType == null ? null : ctx_r0.recipe.recipeType.attributes == null ? null : ctx_r0.recipe.recipeType.attributes.name));
13843
13994
  i0.ɵɵadvance(3);
13844
13995
  i0.ɵɵtextInterpolate(ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["title"]);
13845
13996
  i0.ɵɵadvance(2);
@@ -13851,7 +14002,7 @@
13851
14002
  i0.ɵɵadvance(1);
13852
14003
  i0.ɵɵproperty("ngSwitchCase", "difficile");
13853
14004
  i0.ɵɵadvance(3);
13854
- i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(41, 45, ctx_r0.recipe == null ? null : ctx_r0.recipe.difficultyLabel));
14005
+ i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(41, 46, ctx_r0.recipe == null ? null : ctx_r0.recipe.difficultyLabel));
13855
14006
  i0.ɵɵadvance(3);
13856
14007
  i0.ɵɵtextInterpolate1(" ", ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["description"], " ");
13857
14008
  i0.ɵɵadvance(2);
@@ -13860,10 +14011,12 @@
13860
14011
  i0.ɵɵproperty("recipe", ctx_r0.recipe)("serves", ctx_r0.recipe == null ? null : ctx_r0.recipe.modifiedGuests);
13861
14012
  i0.ɵɵadvance(1);
13862
14013
  i0.ɵɵproperty("ngIf", ctx_r0.previewAllowed);
13863
- i0.ɵɵadvance(3);
14014
+ i0.ɵɵadvance(2);
14015
+ i0.ɵɵproperty("ngIf", ctx_r0.displayTags);
14016
+ i0.ɵɵadvance(2);
13864
14017
  i0.ɵɵproperty("ngIf", (ctx_r0.recipe == null ? null : ctx_r0.recipe.sponsors == null ? null : ctx_r0.recipe.sponsors.length) > 0 || ctx_r0.recipe.informationalSentence);
13865
14018
  i0.ɵɵadvance(1);
13866
- i0.ɵɵproperty("ngIf", !ctx_r0.isMobile)("ngIfElse", _r21);
14019
+ i0.ɵɵproperty("ngIf", !ctx_r0.isMobile)("ngIfElse", _r22);
13867
14020
  i0.ɵɵadvance(6);
13868
14021
  i0.ɵɵproperty("recipe", ctx_r0.recipe)("serves", ctx_r0.recipe == null ? null : ctx_r0.recipe.modifiedGuests);
13869
14022
  i0.ɵɵadvance(1);
@@ -13872,9 +14025,9 @@
13872
14025
  }
13873
14026
  function RecipeDetailsComponent_ng_template_1_Template(rf, ctx) {
13874
14027
  if (rf & 1) {
13875
- var _r64_1 = i0.ɵɵgetCurrentView();
13876
- i0.ɵɵelementStart(0, "ng-miam-recipe-addon", 80);
13877
- i0.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_template_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0.ɵɵrestoreView(_r64_1); var ctx_r63 = i0.ɵɵnextContext(); return ctx_r63.toggleAddon(); });
14028
+ var _r75_1 = i0.ɵɵgetCurrentView();
14029
+ i0.ɵɵelementStart(0, "ng-miam-recipe-addon", 89);
14030
+ i0.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_template_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0.ɵɵrestoreView(_r75_1); var ctx_r74 = i0.ɵɵnextContext(); return ctx_r74.toggleAddon(); });
13878
14031
  i0.ɵɵelementEnd();
13879
14032
  }
13880
14033
  if (rf & 2) {
@@ -13893,6 +14046,8 @@
13893
14046
  this.contextService = contextService;
13894
14047
  this.previewAllowed = true;
13895
14048
  this.ingredientsPictures = false;
14049
+ this.displayTags = false;
14050
+ this.displayTagsIcons = false;
13896
14051
  this.recipeAdded = new i0.EventEmitter();
13897
14052
  this.recipeChanged = new i0.EventEmitter();
13898
14053
  this.recipeError = new i0.EventEmitter();
@@ -13907,6 +14062,7 @@
13907
14062
  this.showIngredient = true;
13908
14063
  this.closeIconhidden = new rxjs.BehaviorSubject(false);
13909
14064
  this.scrollListenerInitialised = false;
14065
+ this.addButtonLoading = false;
13910
14066
  this.subscriptions = [];
13911
14067
  this.isMobile = this.mediaMatcher.matchMedia('(max-width: 1023px)').matches;
13912
14068
  }
@@ -13958,11 +14114,15 @@
13958
14114
  this.cdr.detectChanges();
13959
14115
  };
13960
14116
  RecipeDetailsComponent.prototype.clickPrimary = function () {
13961
- this.primaryButtonClicked$.emit();
13962
- this.addRecipe();
14117
+ if (!this.addButtonLoading) {
14118
+ var wasAdded = !this.groceriesListsService.list$.value.hasRecipe(this.recipe.id);
14119
+ this.addRecipe();
14120
+ this.primaryButtonClicked$.emit(wasAdded);
14121
+ }
13963
14122
  };
13964
14123
  RecipeDetailsComponent.prototype.addRecipe = function () {
13965
14124
  var _this = this;
14125
+ this.toggleButtonLoader(true);
13966
14126
  rxjs.forkJoin([
13967
14127
  this.userService.isLogged$.asObservable().pipe(operators.take(1)),
13968
14128
  this.posService.isPosValid().pipe(operators.take(1))
@@ -13977,10 +14137,14 @@
13977
14137
  });
13978
14138
  };
13979
14139
  RecipeDetailsComponent.prototype.addRecipeActionOK = function () {
14140
+ var _this = this;
13980
14141
  if (!this.groceriesListsService.list$.value.hasRecipe(this.recipe.id)) {
13981
14142
  this.recipeEventsService.sendEvent(this.recipe, this.recipeEventsService.ACTION_ADDED);
13982
14143
  }
13983
- this.groceriesListsService.appendRecipeToList(this.recipe.id, this.recipe.modifiedGuests);
14144
+ this.subscriptions.push(this.groceriesListsService.appendRecipeToList(this.recipe.id, this.recipe.modifiedGuests)
14145
+ .subscribe(function (l) {
14146
+ _this.toggleButtonLoader(false);
14147
+ }));
13984
14148
  this.recipeAdded.emit();
13985
14149
  };
13986
14150
  RecipeDetailsComponent.prototype.addRecipeActionKO = function () {
@@ -14011,6 +14175,10 @@
14011
14175
  this.showIngredient = isShowed;
14012
14176
  this.cdr.detectChanges();
14013
14177
  };
14178
+ RecipeDetailsComponent.prototype.toggleButtonLoader = function (value) {
14179
+ this.addButtonLoading = value;
14180
+ this.cdr.detectChanges();
14181
+ };
14014
14182
  RecipeDetailsComponent.prototype.ingredientPicture = function (ingredient) {
14015
14183
  return ingredient.picture || this.contextService.defaultIngredientPicture;
14016
14184
  };
@@ -14019,7 +14187,7 @@
14019
14187
  RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$2.MediaMatcher), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(ContextService)); };
14020
14188
  RecipeDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsComponent, selectors: [["ng-miam-recipe-details"]], viewQuery: function RecipeDetailsComponent_Query(rf, ctx) {
14021
14189
  if (rf & 1) {
14022
- i0.ɵɵviewQuery(_c0$p, true);
14190
+ i0.ɵɵviewQuery(_c0$o, true);
14023
14191
  i0.ɵɵviewQuery(_c1$a, true);
14024
14192
  }
14025
14193
  if (rf & 2) {
@@ -14027,16 +14195,16 @@
14027
14195
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.topContainerImg = _t.first);
14028
14196
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mainContainer = _t.first);
14029
14197
  }
14030
- }, inputs: { recipe: "recipe", forceIngredientsStepstoggle: "forceIngredientsStepstoggle", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures" }, outputs: { recipeAdded: "recipeAdded", recipeChanged: "recipeChanged", recipeError: "recipeError" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "miam-recipe-details", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details"], ["mainContainer", ""], [1, "miam-recipe-details__top__container"], [1, "miam-recipe-details__top__left"], [1, "miam-recipe-details__top__container__img"], ["topContainerImg", ""], [3, "src", 4, "ngIf"], ["class", "miam-recipe-details__picture__gradient", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__tag", 4, "ngIf"], [1, "miam-recipe-details__img__actions"], ["class", "miam-recipe-details__actions__icon miam-noPadding", 3, "recipe", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", 3, "width", "height", "iconName"], ["class", "miam-recipe-details__picture__sponsor", 3, "src", 4, "ngIf"], [1, "miam-recipe-details__top__container__info"], [1, "miam-recipe-details__info__metrics", "miam-recipe-details__info__metrics__total"], ["primaryColor", "var(--m-color-primary)", 3, "width", "height", "iconName"], [1, "miam-recipe-details__info__times"], ["class", "miam-recipe-details__info__metrics", 4, "ngIf"], [1, "miam-recipe-details__top__container__infos"], [1, "miam-recipe-details__top__container__infos__top"], [1, "miam-recipe-details__infos__type"], [1, "miam-recipe-details__infos__title"], [1, "miam-recipe-details__infos__difficulty"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [1, "miam-recipe-details__infos__description"], [1, "miam-recipe-details__description__action", 3, "click"], [1, "miam-recipe-details__infos__price__wrapper"], [1, "miam-recipe-details__infos__price"], [3, "recipe", "serves"], ["class", "miam-recipe-details__infos__action m-button-fab-primary", 3, "click", 4, "ngIf"], [1, "miam-recipe-details__mid__container"], [3, "recipe", "showAddon", 4, "ngIf"], ["class", "miam-recipe-details__bottom__container", 4, "ngIf", "ngIfElse"], ["mobileContainer", ""], [1, "miam-recipe-details__bottom__container__action"], [3, "src"], [1, "miam-recipe-details__picture__gradient"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__tag"], [1, "miam-recipe-details__actions__icon", "miam-noPadding", 3, "recipe", "width", "height"], [1, "miam-recipe-details__picture__sponsor", 3, "src"], [1, "miam-recipe-details__info__metrics"], [1, "miam-recipe-details__metrics__row"], ["primaryColor", "var(--m-color-slate)", 3, "width", "height", "iconName"], [3, "width", "height", "iconName"], [1, "miam-recipe-details__infos__action", "m-button-fab-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [3, "recipe", "showAddon"], [1, "miam-recipe-details__bottom__container"], [1, "miam-recipe-details__bottom__container__ingredients"], [1, "miam-recipe-details__bottom__container__header"], [1, "miam-recipe-details__ingredients__row"], [1, "miam-recipe-details__ingredients__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-details__ingredients__counter__print"], [1, "miam-recipe-details__ingredients__row__qty"], [1, "miam-recipe-details__ingredients__list"], ["class", "miam-recipe-details__ingredients__row", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__bottom__container__steps"], [1, "miam-recipe-details__steps__list"], ["class", "miam-recipe-details__steps__list__panel", 3, "active", "miam-recipe-details__panel__done", "click", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__ingredients__row", 3, "ngClass"], [4, "ngIf"], [1, "miam-recipe-details__ingredients__row__picture", 3, "src"], [1, "miam-recipe-details__steps__list__panel", 3, "click"], [1, "miam-recipe-details__panel__idx"], [1, "miam-recipe-details__panel__text"], ["class", "miam-recipe-details__panel__checkIcon", "primaryColor", "var(--m-color-secondary)", 3, "height", "width", "iconName", 4, "ngIf"], ["primaryColor", "var(--m-color-secondary)", 1, "miam-recipe-details__panel__checkIcon", 3, "height", "width", "iconName"], [1, "miam-recipe-details__mobile__container"], ["mobileContainerTop", ""], [1, "miam-recipe-details__mobile__header"], [1, "m-button-secondary", 3, "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["stepsContainer", ""], [3, "recipe", "hideAddon"]], template: function RecipeDetailsComponent_Template(rf, ctx) {
14198
+ }, inputs: { recipe: "recipe", forceIngredientsStepstoggle: "forceIngredientsStepstoggle", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", displayTags: "displayTags", displayTagsIcons: "displayTagsIcons" }, outputs: { recipeAdded: "recipeAdded", recipeChanged: "recipeChanged", recipeError: "recipeError" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "miam-recipe-details", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details"], ["mainContainer", ""], [1, "miam-recipe-details__top__container"], [1, "miam-recipe-details__top__left"], [1, "miam-recipe-details__top__container__img"], ["topContainerImg", ""], [3, "src", 4, "ngIf"], ["class", "miam-recipe-details__picture__gradient", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__tag", 4, "ngIf"], [1, "miam-recipe-details__img__actions"], ["class", "miam-recipe-details__actions__icon miam-noPadding", 3, "recipe", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", 3, "width", "height", "iconName"], ["class", "miam-recipe-details__picture__sponsor", 3, "src", 4, "ngIf"], [1, "miam-recipe-details__top__container__info"], [1, "miam-recipe-details__info__metrics", "miam-recipe-details__info__metrics__total"], ["primaryColor", "var(--m-color-primary)", 3, "width", "height", "iconName"], [1, "miam-recipe-details__info__times"], ["class", "miam-recipe-details__info__metrics", 4, "ngIf"], [1, "miam-recipe-details__top__container__infos"], [1, "miam-recipe-details__top__container__infos__top"], [1, "miam-recipe-details__infos__type"], [1, "miam-recipe-details__infos__title"], [1, "miam-recipe-details__infos__difficulty"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [1, "miam-recipe-details__infos__description"], [1, "miam-recipe-details__description__action", 3, "click"], [1, "miam-recipe-details__infos__price__wrapper"], [1, "miam-recipe-details__infos__price"], [3, "recipe", "serves"], ["class", "miam-recipe-details__infos__action m-button-fab-primary", 3, "click", 4, "ngIf"], [1, "miam-recipe-details__mid__container"], ["class", "miam-recipe-details__tags__container", 4, "ngIf"], [3, "recipe", "showAddon", 4, "ngIf"], ["class", "miam-recipe-details__bottom__container", 4, "ngIf", "ngIfElse"], ["mobileContainer", ""], [1, "miam-recipe-details__bottom__container__action"], [3, "src"], [1, "miam-recipe-details__picture__gradient"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__tag"], [1, "miam-recipe-details__actions__icon", "miam-noPadding", 3, "recipe", "width", "height"], [1, "miam-recipe-details__picture__sponsor", 3, "src"], [1, "miam-recipe-details__info__metrics"], [1, "miam-recipe-details__metrics__row"], ["primaryColor", "var(--m-color-slate)", 3, "width", "height", "iconName"], [3, "width", "height", "iconName"], [1, "miam-recipe-details__infos__action", "m-button-fab-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-recipe-details__tags__container"], ["class", "miam-recipe-details__tag", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__tag"], ["class", "miam-recipe-details__tag__icon", 3, "src", 4, "ngIf"], [1, "miam-recipe-details__tag__name"], [1, "miam-recipe-details__tag__icon", 3, "src"], [3, "recipe", "showAddon"], [1, "miam-recipe-details__bottom__container"], [1, "miam-recipe-details__bottom__container__ingredients"], [1, "miam-recipe-details__bottom__container__header"], [1, "miam-recipe-details__ingredients__row"], [1, "miam-recipe-details__ingredients__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-details__ingredients__counter__print"], [1, "miam-recipe-details__ingredients__row__qty"], [1, "miam-recipe-details__ingredients__list"], ["class", "miam-recipe-details__ingredients__row", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__bottom__container__steps"], [1, "miam-recipe-details__steps__list"], ["class", "miam-recipe-details__steps__list__panel", 3, "active", "miam-recipe-details__panel__done", "click", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__ingredients__row", 3, "ngClass"], [4, "ngIf"], [1, "miam-recipe-details__ingredients__row__picture", 3, "src"], [1, "miam-recipe-details__steps__list__panel", 3, "click"], [1, "miam-recipe-details__panel__idx"], [1, "miam-recipe-details__panel__text"], ["class", "miam-recipe-details__panel__checkIcon", "primaryColor", "var(--m-color-secondary)", 3, "height", "width", "iconName", 4, "ngIf"], ["primaryColor", "var(--m-color-secondary)", 1, "miam-recipe-details__panel__checkIcon", 3, "height", "width", "iconName"], [1, "miam-recipe-details__mobile__container"], ["mobileContainerTop", ""], [1, "miam-recipe-details__mobile__header"], [1, "m-button-secondary", 3, "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["stepsContainer", ""], [3, "recipe", "hideAddon"]], template: function RecipeDetailsComponent_Template(rf, ctx) {
14031
14199
  if (rf & 1) {
14032
- i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 63, 47, "div", 0);
14200
+ i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 64, 48, "div", 0);
14033
14201
  i0.ɵɵtemplate(1, RecipeDetailsComponent_ng_template_1_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
14034
14202
  }
14035
14203
  if (rf & 2) {
14036
14204
  var _r1 = i0.ɵɵreference(2);
14037
14205
  i0.ɵɵproperty("ngIf", ctx.showDetail)("ngIfElse", _r1);
14038
14206
  }
14039
- }, directives: [i8.NgIf, IconComponent, i8.NgSwitch, i8.NgSwitchCase, i8.NgSwitchDefault, RecipePricingComponent, i34.YouTubePlayer, LikeButtonComponent, AddonLinkComponent, CounterInputComponent, i8.NgForOf, i8.NgClass, RecipeAddonComponent], pipes: [i8.AsyncPipe, i8.TitleCasePipe, CapitalizeFirstLetterPipe, ReadableFloatNumberPipe], styles: [".miam-recipe-details{border-radius:var(--m-border-radius);display:inline-flex;flex-direction:row;flex-wrap:wrap;height:calc(80vh - 80px);margin:40px 8px;min-width:calc(100% - 32px);padding:0 16px}.miam-recipe-details::-webkit-scrollbar-button{height:20px}.miam-recipe-details::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__top__container{display:flex;justify-content:space-evenly}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img{align-items:center;border-radius:var(--m-border-radius);display:flex;height:400px;overflow:hidden;position:relative;width:370px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img img{-o-object-fit:cover;-webkit-print-color-adjust:exact;display:block;height:100%;object-fit:cover;transform:translateX(-25%)}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__gradient{background:linear-gradient(180deg,transparent 57.92%,rgba(0,0,0,.75) 100%,rgba(0,0,0,.75) 0);border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);display:block;height:100%;position:absolute;top:0;width:100%}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__gradient{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{background-color:var(--m-color-primary-light);border-radius:5px;bottom:16px;color:var(--m-color-primary);font-weight:500;left:16px;padding:8px;position:absolute;text-transform:uppercase}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{display:flex;flex-direction:column;justify-content:space-evenly;position:absolute;right:16px;top:16px;z-index:var(--m-z-index-position-absolute-hight)}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon{-o-object-fit:contain;background-color:#fff;border-radius:var(--m-border-radius-circle);box-shadow:var(--m-shadow-small);margin:0 0 16px;object-fit:contain;padding:8px;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon.miam-noPadding{padding:0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__sponsor{-o-object-fit:contain;bottom:16px;height:auto;max-height:72px;max-width:96px;object-fit:contain;position:absolute;right:16px;transform:none;width:auto}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos{display:flex;flex:1 1;flex-direction:column;justify-content:space-between;margin-left:40px;padding:16px;position:relative}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__infos__price__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top{display:flex;flex-direction:column;position:relative}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__type{color:var(--m-color-black);font-size:14px;line-height:1.14;padding-bottom:16px;text-align:left}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__title{color:var(--m-color-secondary);font-size:32px;font-weight:700;line-height:1.1;text-align:left}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__difficulty{display:flex;padding:16px 0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__difficulty ng-miam-icon{margin-right:8px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics{align-items:center;display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics span{color:var(--m-color-black);font-size:14px;margin-left:12px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics .miam-recipe-details__metrics__row{display:flex}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description{color:var(--m-color-grey-text-dark);display:flex;flex:1;flex-direction:column;font-size:17px;line-height:1.62;margin-bottom:24px;overflow-y:auto;text-align:left;word-break:break-word}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{align-items:center;display:flex;margin-top:16px}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action>*{cursor:pointer}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action>:hover{color:var(--m-color-primary);text-decoration:underline}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action ng-miam-icon{margin-right:10px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper{align-items:flex-end;display:flex;flex-direction:column;height:100%;justify-content:flex-start;max-height:225px;padding-left:16px;position:relative}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price{margin-bottom:4px;padding:4px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{color:var(--m-color-primary);flex-direction:row}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{display:flex;flex-direction:column}}@media print{.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{font-size:20px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:14px;margin-left:12px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{border-radius:20px;color:var(--m-color-white);font-size:16px;padding:8px 20px}@media print{.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{display:none}}@media (min-width:1022px){.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action:hover{color:var(--m-color-primary)}}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action ng-miam-icon{margin-left:16px}.miam-recipe-details .miam-recipe-details__top__container__info{align-items:center;display:flex;flex-direction:column;gap:24px;justify-content:center;padding:16px 0;width:370px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__metrics{align-items:center;display:flex;justify-content:center}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__metrics span{color:var(--m-color-primary);font-size:19px;font-weight:700;margin-left:12px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times{align-items:center;display:flex;justify-content:space-evenly}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics{flex-direction:column;margin-right:24px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics span{color:var(--m-color-black);font-size:13px;font-weight:400;line-height:16px;margin-left:4px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics .miam-recipe-details__metrics__row{align-items:center;display:flex}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics .miam-recipe-details__metrics__row span{font-size:19px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics{align-items:center;display:flex;justify-content:center;z-index:0}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics ng-miam-icon{display:flex;justify-content:center;margin-right:4px;min-height:32px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics span{font-size:15px}.miam-recipe-details .miam-recipe-details__mid__container{border-bottom:1px dashed var(--m-color-primary);display:flex;padding-bottom:16px;width:100%}.miam-recipe-details .miam-recipe-details__bottom__container{display:flex;width:100%}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__header{border-bottom:1px solid var(--m-color-grey-text);color:var(--m-color-primary);display:block;font-size:20px;font-size:17px;font-weight:700;margin:24px 0;padding:16px 0 8px;position:relative}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter{align-items:center;display:flex}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:16px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:none}@media print{.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter ng-miam-counter-input{display:none}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:block}}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list{flex:1 1;overflow-y:auto;padding-bottom:40px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__row{color:var(--m-color-black);display:flex;font-size:14px;font-weight:700;height:40px;justify-content:space-between;padding-bottom:16px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__row .miam-recipe-details__ingredients__row__qty{color:var(--m-color-grey-text-dark);font-size:14px;font-weight:500;padding-right:10px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__ingredients{display:flex;flex:1;flex-direction:column;padding:0 40px 0 0}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps{display:flex;flex:1;flex-direction:column}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list{flex:1 1;overflow-y:auto;padding-bottom:40px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel{-webkit-tap-highlight-color:transparent;align-items:center;background-color:var(--m-color-primary-text);border-radius:var(--m-border-radius);cursor:pointer;display:flex;flex-direction:row;margin:0 16px 8px 0;text-align:left;transition:var(--m-default-transition)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__idx{color:var(--m-color-secondary);flex:0 0 auto;font-size:20px;margin-right:20px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__text{font-size:14px;word-break:break-word}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__checkIcon{flex:0 0 auto}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel.miam-recipe-details__panel__done{background-color:var(--m-color-secondary-light)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel div{flex:1;margin:10px}.miam-recipe-details .miam-recipe-details__bottom__container__action{width:100%}@media print{.miam-recipe-details{height:unset}}@media (max-width:1022px){.miam-recipe-details{height:80vh;margin:0;min-width:100vw;overflow-y:auto;padding:0 0 80px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper{align-items:center;background-color:var(--m-color-white);bottom:0;flex-direction:row;height:unset;justify-content:space-between;left:0;padding:4px 16px;position:fixed;right:0}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-pricing__wrapper{flex-direction:column}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:10px;margin-left:0}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{padding:8px 10px}.miam-recipe-details .miam-recipe-details__top__container{flex-wrap:wrap}.miam-recipe-details .miam-recipe-details__top__container div .miam-recipe-details__top__left{position:-webkit-sticky;position:sticky;top:0;z-index:3}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__info__times{position:-webkit-sticky;position:sticky;top:0;z-index:1}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img{height:220px;position:-webkit-sticky;position:sticky;top:-5vh;width:100vw;z-index:3}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img img{height:unset;transform:none;width:100%}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{bottom:unset;left:16px;top:16px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{bottom:0;flex-direction:unset;left:8px;right:unset;top:unset}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:rgba(0,0,0,.65);background-color:unset;box-shadow:none;margin:0 4px 8px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos{flex:unset;margin-left:unset;padding:0 16px;width:100vw;z-index:0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__type{display:none}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__title{font-size:24px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description{margin-bottom:16px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{display:none}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__info{background-color:var(--m-color-white);width:unset;z-index:1}.miam-recipe-details .miam-recipe-details__mobile__container{display:flex;flex-direction:column;min-height:80vh;padding-bottom:50px;position:relative;width:100vw}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header{background-color:var(--m-color-white);border-radius:32px 32px 0 0;display:flex;justify-content:space-evenly;padding:16px 0;position:-webkit-sticky;position:sticky;top:0;z-index:1}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header button{margin-right:0}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header button.active{background-color:var(--m-color-primary);color:var(--m-color-white)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row{align-items:center;color:var(--m-color-black);display:flex;font-size:14px;font-weight:700;justify-content:space-between;padding-bottom:16px;padding-right:16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row div{width:100%}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row .miam-recipe-details__ingredients__row__qty{color:var(--m-color-grey-text-dark);font-size:14px;font-weight:500;margin-right:16px;padding-right:10px;text-align:end}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__counter{display:flex;justify-content:space-between;padding:16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:none}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__list{display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__list .miam-recipe-details__ingredients__row{display:flex;font-size:16px;justify-content:space-between;padding:0 16px 16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel{-webkit-tap-highlight-color:transparent;align-items:center;align-items:flex-start;background-color:transparent;border-radius:var(--m-border-radius);cursor:pointer;display:flex;flex-direction:row;margin:0 8px 32px;padding:0;position:relative;text-align:left;transition:var(--m-default-transition)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel:not(:last-child):before{background-color:var(--m-color-grey);content:\"\";height:50%;left:29px;position:absolute;top:60px;width:1px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel.miam-recipe-details__panel__done{background-color:var(--miam-color-primary-light)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__idx{align-items:center;background-color:var(--m-color-primary);border-radius:40px;color:#fff;display:flex;flex:0 0 auto;font-size:17px;font-weight:700;height:40px;justify-content:center;margin-right:20px;width:40px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__text{font-size:14px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__checkIcon{flex:0 0 auto}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel div{flex:1;margin:10px}.miam-recipe-details .miam-recipe-details__bottom__container__action{background:var(--m-color-white);bottom:0;left:0;padding:0 16px;position:fixed;right:0;width:100vw;z-index:4}}"], encapsulation: 2, changeDetection: 0 });
14207
+ }, directives: [i8.NgIf, IconComponent, i8.NgSwitch, i8.NgSwitchCase, i8.NgSwitchDefault, RecipePricingComponent, i34.YouTubePlayer, LikeButtonComponent, LoaderComponent, i8.NgForOf, AddonLinkComponent, CounterInputComponent, i8.NgClass, RecipeAddonComponent], pipes: [i8.AsyncPipe, i8.TitleCasePipe, CapitalizeFirstLetterPipe, ReadableFloatNumberPipe], styles: [".miam-recipe-details{border-radius:var(--m-border-radius);display:inline-flex;flex-direction:row;flex-wrap:wrap;height:calc(80vh - 80px);margin:40px 8px;min-width:calc(100% - 32px);padding:0 16px}.miam-recipe-details::-webkit-scrollbar-button{height:20px}.miam-recipe-details::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__top__container{display:flex;justify-content:space-evenly}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img{align-items:center;border-radius:var(--m-border-radius);display:flex;height:400px;overflow:hidden;position:relative;width:370px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img img{-o-object-fit:cover;-webkit-print-color-adjust:exact;display:block;height:100%;object-fit:cover;transform:translateX(-25%)}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__gradient{background:linear-gradient(180deg,transparent 57.92%,rgba(0,0,0,.75) 100%,rgba(0,0,0,.75) 0);border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);display:block;height:100%;position:absolute;top:0;width:100%}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__gradient{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{background-color:var(--m-color-primary-light);border-radius:5px;bottom:16px;color:var(--m-color-primary);font-weight:500;left:16px;padding:8px;position:absolute;text-transform:uppercase}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{display:flex;flex-direction:column;justify-content:space-evenly;position:absolute;right:16px;top:16px;z-index:var(--m-z-index-position-absolute-hight)}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon{-o-object-fit:contain;background-color:#fff;border-radius:var(--m-border-radius-circle);box-shadow:var(--m-shadow-small);margin:0 0 16px;object-fit:contain;padding:8px;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon.miam-noPadding{padding:0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__sponsor{-o-object-fit:contain;bottom:16px;height:auto;max-height:72px;max-width:96px;object-fit:contain;position:absolute;right:16px;transform:none;width:auto}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos{display:flex;flex:1 1;flex-direction:column;justify-content:space-between;margin-left:40px;padding:16px;position:relative}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__infos__price__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top{display:flex;flex-direction:column;position:relative}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__type{color:var(--m-color-black);font-size:14px;line-height:1.14;padding-bottom:16px;text-align:left}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__title{color:var(--m-color-secondary);font-size:32px;font-weight:700;line-height:1.1;text-align:left}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__difficulty{display:flex;padding:16px 0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__difficulty ng-miam-icon{margin-right:8px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics{align-items:center;display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics span{color:var(--m-color-black);font-size:14px;margin-left:12px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics .miam-recipe-details__metrics__row{display:flex}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description{color:var(--m-color-grey-text-dark);display:flex;flex:1;flex-direction:column;font-size:17px;line-height:1.62;margin-bottom:24px;overflow-y:auto;text-align:left;word-break:break-word}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{align-items:center;display:flex;margin-top:16px}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action>*{cursor:pointer}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action>:hover{color:var(--m-color-primary);text-decoration:underline}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action ng-miam-icon{margin-right:10px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper{align-items:flex-end;display:flex;flex-direction:column;height:100%;justify-content:flex-start;max-height:225px;padding-left:16px;position:relative}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price{margin-bottom:4px;padding:4px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{color:var(--m-color-primary);flex-direction:row}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{display:flex;flex-direction:column}}@media print{.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{font-size:20px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:14px;margin-left:12px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{border-radius:20px;color:var(--m-color-white);font-size:16px;padding:8px 20px}@media print{.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{display:none}}@media (min-width:1022px){.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action:hover{color:var(--m-color-primary)}}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action ng-miam-icon{margin-left:16px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action .loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:24px;width:24px}.miam-recipe-details .miam-recipe-details__top__container__info{align-items:center;display:flex;flex-direction:column;gap:24px;justify-content:center;padding:16px 0;width:370px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__metrics{align-items:center;display:flex;justify-content:center}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__metrics span{color:var(--m-color-primary);font-size:19px;font-weight:700;margin-left:12px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times{align-items:center;display:flex;justify-content:space-evenly}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics{flex-direction:column;margin-right:24px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics span{color:var(--m-color-black);font-size:13px;font-weight:400;line-height:16px;margin-left:4px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics .miam-recipe-details__metrics__row{align-items:center;display:flex}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics .miam-recipe-details__metrics__row span{font-size:19px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics{align-items:center;display:flex;justify-content:center;z-index:0}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics ng-miam-icon{display:flex;justify-content:center;margin-right:4px;min-height:32px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics span{font-size:15px}.miam-recipe-details .miam-recipe-details__mid__container{border-bottom:1px dashed var(--m-color-primary);display:flex;padding-bottom:16px;width:100%}.miam-recipe-details .miam-recipe-details__tags__container{display:flex;flex-wrap:wrap;padding:20px;width:100%}.miam-recipe-details .miam-recipe-details__tags__container .miam-recipe-details__tag{background-color:var(--m-color-grey05);border-radius:var(--m-border-radius-pill);display:flex;margin:4px;padding:4px 8px}.miam-recipe-details .miam-recipe-details__tags__container .miam-recipe-details__tag .miam-recipe-details__tag__icon{height:16px;width:16px}.miam-recipe-details .miam-recipe-details__tags__container .miam-recipe-details__tag .miam-recipe-details__tag__name{font-size:16px}.miam-recipe-details .miam-recipe-details__bottom__container{display:flex;width:100%}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__header{border-bottom:1px solid var(--m-color-grey-text);color:var(--m-color-primary);display:block;font-size:20px;font-size:17px;font-weight:700;margin:24px 0;padding:16px 0 8px;position:relative}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter{align-items:center;display:flex}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:16px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:none}@media print{.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter ng-miam-counter-input{display:none}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:block}}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list{flex:1 1;overflow-y:auto;padding-bottom:40px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__row{color:var(--m-color-black);display:flex;font-size:14px;font-weight:700;height:40px;justify-content:space-between;padding-bottom:16px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__row .miam-recipe-details__ingredients__row__qty{color:var(--m-color-grey-text-dark);font-size:14px;font-weight:500;padding-right:10px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__ingredients{display:flex;flex:1;flex-direction:column;padding:0 40px 0 0}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps{display:flex;flex:1;flex-direction:column}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list{flex:1 1;overflow-y:auto;padding-bottom:40px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel{-webkit-tap-highlight-color:transparent;align-items:center;background-color:var(--m-color-primary-text);border-radius:var(--m-border-radius);cursor:pointer;display:flex;flex-direction:row;margin:0 16px 8px 0;text-align:left;transition:var(--m-default-transition)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__idx{color:var(--m-color-secondary);flex:0 0 auto;font-size:20px;margin-right:20px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__text{font-size:14px;word-break:break-word}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__checkIcon{flex:0 0 auto}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel.miam-recipe-details__panel__done{background-color:var(--m-color-secondary-light)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel div{flex:1;margin:10px}.miam-recipe-details .miam-recipe-details__bottom__container__action{width:100%}@media print{.miam-recipe-details{height:unset}}@media (max-width:1022px){.miam-recipe-details{height:80vh;margin:0;min-width:100vw;overflow-y:auto;padding:0 0 80px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper{align-items:center;background-color:var(--m-color-white);bottom:0;flex-direction:row;height:unset;justify-content:space-between;left:0;padding:4px 16px;position:fixed;right:0}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-pricing__wrapper{flex-direction:column}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:10px;margin-left:0}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{padding:8px 10px}.miam-recipe-details .miam-recipe-details__top__container{flex-wrap:wrap}.miam-recipe-details .miam-recipe-details__top__container div .miam-recipe-details__top__left{position:-webkit-sticky;position:sticky;top:0;z-index:3}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__info__times{position:-webkit-sticky;position:sticky;top:0;z-index:1}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img{height:220px;position:-webkit-sticky;position:sticky;top:-5vh;width:100vw;z-index:3}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img img{height:unset;transform:none;width:100%}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{bottom:unset;left:16px;top:16px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{bottom:0;flex-direction:unset;left:8px;right:unset;top:unset}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:rgba(0,0,0,.65);background-color:unset;box-shadow:none;margin:0 4px 8px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos{flex:unset;margin-left:unset;padding:0 16px;width:100vw;z-index:0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__type{display:none}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__title{font-size:24px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description{margin-bottom:16px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{display:none}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__info{background-color:var(--m-color-white);width:unset;z-index:1}.miam-recipe-details .miam-recipe-details__mobile__container{display:flex;flex-direction:column;min-height:80vh;padding-bottom:50px;position:relative;width:100vw}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header{background-color:var(--m-color-white);border-radius:32px 32px 0 0;display:flex;justify-content:space-evenly;padding:16px 0;position:-webkit-sticky;position:sticky;top:0;z-index:1}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header button{margin-right:0}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header button.active{background-color:var(--m-color-primary);color:var(--m-color-white)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row{align-items:center;color:var(--m-color-black);display:flex;font-size:14px;font-weight:700;justify-content:space-between;padding-bottom:16px;padding-right:16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row div{width:100%}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row .miam-recipe-details__ingredients__row__qty{color:var(--m-color-grey-text-dark);font-size:14px;font-weight:500;margin-right:16px;padding-right:10px;text-align:end}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__counter{display:flex;justify-content:space-between;padding:16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:none}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__list{display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__list .miam-recipe-details__ingredients__row{display:flex;font-size:16px;justify-content:space-between;padding:0 16px 16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel{-webkit-tap-highlight-color:transparent;align-items:center;align-items:flex-start;background-color:transparent;border-radius:var(--m-border-radius);cursor:pointer;display:flex;flex-direction:row;margin:0 8px 32px;padding:0;position:relative;text-align:left;transition:var(--m-default-transition)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel:not(:last-child):before{background-color:var(--m-color-grey);content:\"\";height:50%;left:29px;position:absolute;top:60px;width:1px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel.miam-recipe-details__panel__done{background-color:var(--miam-color-primary-light)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__idx{align-items:center;background-color:var(--m-color-primary);border-radius:40px;color:#fff;display:flex;flex:0 0 auto;font-size:17px;font-weight:700;height:40px;justify-content:center;margin-right:20px;width:40px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__text{font-size:14px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__checkIcon{flex:0 0 auto}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel div{flex:1;margin:10px}.miam-recipe-details .miam-recipe-details__bottom__container__action{background:var(--m-color-white);bottom:0;left:0;padding:0 16px;position:fixed;right:0;width:100vw;z-index:4}}"], encapsulation: 2, changeDetection: 0 });
14040
14208
  /*@__PURE__*/ (function () {
14041
14209
  i0.ɵsetClassMetadata(RecipeDetailsComponent, [{
14042
14210
  type: i0.Component,
@@ -14055,6 +14223,10 @@
14055
14223
  type: i0.Input
14056
14224
  }], ingredientsPictures: [{
14057
14225
  type: i0.Input
14226
+ }], displayTags: [{
14227
+ type: i0.Input
14228
+ }], displayTagsIcons: [{
14229
+ type: i0.Input
14058
14230
  }], recipeAdded: [{
14059
14231
  type: i0.Output
14060
14232
  }], recipeChanged: [{
@@ -14116,7 +14288,7 @@
14116
14288
  i0.ɵɵproperty("formControl", ctx_r2.recipeForm == null ? null : (tmp_4_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : tmp_4_0.get("description"));
14117
14289
  }
14118
14290
  }
14119
- var _c0$q = function () { return ["number-of-guests"]; };
14291
+ var _c0$p = function () { return ["number-of-guests"]; };
14120
14292
  function RecipeFormComponent_form_0_Template(rf, ctx) {
14121
14293
  if (rf & 1) {
14122
14294
  var _r4_1 = i0.ɵɵgetCurrentView();
@@ -14175,7 +14347,7 @@
14175
14347
  i0.ɵɵadvance(3);
14176
14348
  i0.ɵɵproperty("formControl", ctx_r0.recipeForm == null ? null : (tmp_3_0 = ctx_r0.recipeForm.get("attributes")) == null ? null : tmp_3_0.get("media-url"))("imageUrl", ctx_r0.recipeForm == null ? null : (tmp_4_0 = ctx_r0.recipeForm.get("attributes")) == null ? null : (tmp_4_1 = tmp_4_0.get("media-url")) == null ? null : tmp_4_1.value)("photoMode", true);
14177
14349
  i0.ɵɵadvance(4);
14178
- i0.ɵɵproperty("formControl", ctx_r0.recipeForm.controls["attributes"]["controls"][i0.ɵɵpureFunction0(19, _c0$q)]);
14350
+ i0.ɵɵproperty("formControl", ctx_r0.recipeForm.controls["attributes"]["controls"][i0.ɵɵpureFunction0(19, _c0$p)]);
14179
14351
  i0.ɵɵadvance(2);
14180
14352
  i0.ɵɵproperty("options", i0.ɵɵpipeBind1(12, 17, ctx_r0.recipeTypeService == null ? null : ctx_r0.recipeTypeService.getTypes()))("formControl", ctx_r0.recipeForm == null ? null : ctx_r0.recipeForm.get("recipe-type"));
14181
14353
  i0.ɵɵadvance(4);
@@ -14710,7 +14882,7 @@
14710
14882
  }] });
14711
14883
  })();
14712
14884
 
14713
- var _c0$r = ["topAnchor"];
14885
+ var _c0$q = ["topAnchor"];
14714
14886
  var _c1$b = ["stepperLinks"];
14715
14887
  var _c2$3 = ["step"];
14716
14888
  function RecipeStepperComponent_ng_container_28_div_21_Template(rf, ctx) {
@@ -14998,7 +15170,7 @@
14998
15170
  RecipeStepperComponent.ɵfac = function RecipeStepperComponent_Factory(t) { return ɵRecipeStepperComponent_BaseFactory(t || RecipeStepperComponent); };
14999
15171
  RecipeStepperComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeStepperComponent, selectors: [["ng-miam-recipe-stepper"]], viewQuery: function RecipeStepperComponent_Query(rf, ctx) {
15000
15172
  if (rf & 1) {
15001
- i0.ɵɵviewQuery(_c0$r, true);
15173
+ i0.ɵɵviewQuery(_c0$q, true);
15002
15174
  i0.ɵɵviewQuery(_c1$b, true);
15003
15175
  i0.ɵɵviewQuery(_c2$3, true);
15004
15176
  }
@@ -15112,7 +15284,7 @@
15112
15284
  }] });
15113
15285
  })();
15114
15286
 
15115
- var _c0$s = ["tag"];
15287
+ var _c0$r = ["tag"];
15116
15288
  function RecipeTagsComponent_div_0_div_2_Template(rf, ctx) {
15117
15289
  if (rf & 1) {
15118
15290
  var _r6_1 = i0.ɵɵgetCurrentView();
@@ -15242,7 +15414,7 @@
15242
15414
  RecipeTagsComponent.ɵfac = function RecipeTagsComponent_Factory(t) { return new (t || RecipeTagsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(ContextService)); };
15243
15415
  RecipeTagsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeTagsComponent, selectors: [["ng-miam-recipe-tags"]], viewQuery: function RecipeTagsComponent_Query(rf, ctx) {
15244
15416
  if (rf & 1) {
15245
- i0.ɵɵviewQuery(_c0$s, true);
15417
+ i0.ɵɵviewQuery(_c0$r, true);
15246
15418
  }
15247
15419
  if (rf & 2) {
15248
15420
  var _t;
@@ -15380,7 +15552,7 @@
15380
15552
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1, line_r8));
15381
15553
  }
15382
15554
  }
15383
- var _c0$t = function (a0) { return { rotate: a0 }; };
15555
+ var _c0$s = function (a0) { return { rotate: a0 }; };
15384
15556
  var _c1$d = function (a0) { return { wrap: a0 }; };
15385
15557
  function RecipesHistoryComponent_div_6_Template(rf, ctx) {
15386
15558
  if (rf & 1) {
@@ -15407,7 +15579,7 @@
15407
15579
  i0.ɵɵadvance(3);
15408
15580
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, group_r6.date));
15409
15581
  i0.ɵɵadvance(2);
15410
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$t, !group_r6.show));
15582
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c0$s, !group_r6.show));
15411
15583
  i0.ɵɵadvance(1);
15412
15584
  i0.ɵɵproperty("iconName", ctx_r2.icon.ChevronDown);
15413
15585
  i0.ɵɵadvance(1);
@@ -15479,7 +15651,9 @@
15479
15651
  };
15480
15652
  RecipesHistoryComponent.prototype.prepareLine = function (recipeInfo) {
15481
15653
  var _this = this;
15482
- return this.recipesService.get(recipeInfo.id, { include: ['ingredients', 'recipe-steps', 'recipe-status', 'recipe-type'] }).pipe(operators.skipWhile(function (r) { return r.is_loading; }), operators.map(function (recipe) {
15654
+ return this.recipesService.get(recipeInfo.id, {
15655
+ include: ['ingredients', 'recipe-steps', 'recipe-status', 'recipe-type', 'tags']
15656
+ }).pipe(operators.skipWhile(function (r) { return r.is_loading; }), operators.map(function (recipe) {
15483
15657
  var line = BasketPreviewLine.fromRecipe(recipe, recipe.ingredients.length);
15484
15658
  line.displayMode = true;
15485
15659
  setTimeout(function () { return _this.cdr.detectChanges(); }); // ensures the line will be reloaded after the observable resolves
@@ -15582,7 +15756,7 @@
15582
15756
  }], function () { return []; }, null);
15583
15757
  })();
15584
15758
 
15585
- var _c0$u = ["details"];
15759
+ var _c0$t = ["details"];
15586
15760
  function RecipeModalComponent_ng_miam_recipe_details_1_Template(rf, ctx) {
15587
15761
  if (rf & 1) {
15588
15762
  var _r4_1 = i0.ɵɵgetCurrentView();
@@ -15664,7 +15838,7 @@
15664
15838
  this.cdr.detectChanges();
15665
15839
  };
15666
15840
  RecipeModalComponent.prototype.removeRecipe = function () {
15667
- this.groceriesListsService.removeRecipeFromList(this.recipe.id);
15841
+ this.groceriesListsService.removeRecipeFromList(this.recipe.id).subscribe();
15668
15842
  this.hide();
15669
15843
  };
15670
15844
  RecipeModalComponent.prototype.updateRecipeGuests = function (guests) {
@@ -15673,7 +15847,7 @@
15673
15847
  // If the recipe is already in basket, update the number of guests (= append recipe to list again)
15674
15848
  RecipeModalComponent.prototype.recipeChanged = function () {
15675
15849
  if (this.groceriesListsService.list$.value.hasRecipe(this.recipe.id)) {
15676
- this.groceriesListsService.appendRecipeToList(this.recipe.id, this.recipe.modifiedGuests);
15850
+ this.groceriesListsService.appendRecipeToList(this.recipe.id, this.recipe.modifiedGuests).subscribe();
15677
15851
  }
15678
15852
  this.recipesService.displayedRecipeChanged.emit();
15679
15853
  };
@@ -15682,7 +15856,7 @@
15682
15856
  RecipeModalComponent.ɵfac = function RecipeModalComponent_Factory(t) { return new (t || RecipeModalComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(PrintService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(GroceriesListsService)); };
15683
15857
  RecipeModalComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeModalComponent, selectors: [["ng-miam-recipe-modal"]], viewQuery: function RecipeModalComponent_Query(rf, ctx) {
15684
15858
  if (rf & 1) {
15685
- i0.ɵɵviewQuery(_c0$u, true);
15859
+ i0.ɵɵviewQuery(_c0$t, true);
15686
15860
  }
15687
15861
  if (rf & 2) {
15688
15862
  var _t;
@@ -15719,7 +15893,7 @@
15719
15893
  }] });
15720
15894
  })();
15721
15895
 
15722
- var _c0$v = ["recipeCard"];
15896
+ var _c0$u = ["recipeCard"];
15723
15897
  function SuggestionCardComponent_ng_miam_recipe_card_0_Template(rf, ctx) {
15724
15898
  if (rf & 1) {
15725
15899
  var _r3_1 = i0.ɵɵgetCurrentView();
@@ -15814,7 +15988,7 @@
15814
15988
  SuggestionCardComponent.ɵfac = function SuggestionCardComponent_Factory(t) { return new (t || SuggestionCardComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
15815
15989
  SuggestionCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SuggestionCardComponent, selectors: [["ng-miam-suggestion-card"]], viewQuery: function SuggestionCardComponent_Query(rf, ctx) {
15816
15990
  if (rf & 1) {
15817
- i0.ɵɵviewQuery(_c0$v, true);
15991
+ i0.ɵɵviewQuery(_c0$u, true);
15818
15992
  }
15819
15993
  if (rf & 2) {
15820
15994
  var _t;
@@ -15993,7 +16167,7 @@
15993
16167
  i0.ɵɵproperty("iconName", ctx_r0.icon.ListScanner);
15994
16168
  }
15995
16169
  }
15996
- var _c0$w = function (a0) { return { reduced: a0 }; };
16170
+ var _c0$v = function (a0) { return { reduced: a0 }; };
15997
16171
  function ListScanOverlayButtonComponent_div_4_Template(rf, ctx) {
15998
16172
  if (rf & 1) {
15999
16173
  i0.ɵɵelementStart(0, "div", 10);
@@ -16002,7 +16176,7 @@
16002
16176
  }
16003
16177
  if (rf & 2) {
16004
16178
  var ctx_r1 = i0.ɵɵnextContext();
16005
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$w, ctx_r1.reduced == "true"));
16179
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c0$v, ctx_r1.reduced == "true"));
16006
16180
  }
16007
16181
  }
16008
16182
  function ListScanOverlayButtonComponent_ng_miam_loader_5_Template(rf, ctx) {
@@ -16076,7 +16250,7 @@
16076
16250
  i0.ɵɵadvance(1);
16077
16251
  i0.ɵɵproperty("ngIf", ctx.loading);
16078
16252
  i0.ɵɵadvance(1);
16079
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$w, ctx.reduced == "true"));
16253
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c0$v, ctx.reduced == "true"));
16080
16254
  }
16081
16255
  }, directives: [i8.NgClass, i8.NgIf, IconComponent, LoaderComponent], styles: [".miam-list-scan__overlay-button[_ngcontent-%COMP%]{display:inline-block;position:relative}.miam-list-scan__overlay-button.overlay[_ngcontent-%COMP%]{bottom:20px;position:fixed;right:20px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .inputfile[_ngcontent-%COMP%]{height:.1px;opacity:0;overflow:hidden;position:absolute;width:.1px;z-index:-1}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%]{max-height:50px;min-width:0}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]{margin:0}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] .button-label[_ngcontent-%COMP%]{margin-left:10px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] .button-label.reduced[_ngcontent-%COMP%]{display:none}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__reduce[_ngcontent-%COMP%]{align-items:center;background-color:#fff;border-radius:12px;box-shadow:0 2px 5px rgba(0,0,0,.25);cursor:pointer;display:flex;font-size:16px;font-weight:700;height:24px;justify-content:center;position:absolute;right:-8px;top:-9px;width:24px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__reduce.reduced[_ngcontent-%COMP%]{display:none}"], changeDetection: 0 });
16082
16256
  /*@__PURE__*/ (function () {
@@ -16109,7 +16283,7 @@
16109
16283
  i0.ɵɵproperty("iconName", ctx_r0.icon.DrawerHorizontalCloseBar);
16110
16284
  }
16111
16285
  }
16112
- var _c0$x = function (a0) { return { overlay: a0 }; };
16286
+ var _c0$w = function (a0) { return { overlay: a0 }; };
16113
16287
  function ListScanIngredientsListComponent_div_4_Template(rf, ctx) {
16114
16288
  if (rf & 1) {
16115
16289
  var _r6_1 = i0.ɵɵgetCurrentView();
@@ -16147,7 +16321,7 @@
16147
16321
  if (rf & 2) {
16148
16322
  var e_r4 = ctx.$implicit;
16149
16323
  var ctx_r1 = i0.ɵɵnextContext();
16150
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$x, ctx_r1.overlay));
16324
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$w, ctx_r1.overlay));
16151
16325
  i0.ɵɵadvance(2);
16152
16326
  i0.ɵɵproperty("iconName", ctx_r1.icon.Trash);
16153
16327
  i0.ɵɵadvance(4);
@@ -16417,7 +16591,7 @@
16417
16591
  i0.ɵɵproperty("overlay", ctx_r0.overlay);
16418
16592
  }
16419
16593
  }
16420
- var _c0$y = function (a0) { return { overlay: a0 }; };
16594
+ var _c0$x = function (a0) { return { overlay: a0 }; };
16421
16595
  function ListScanComponent_ng_miam_list_scan_ingredients_list_2_Template(rf, ctx) {
16422
16596
  if (rf & 1) {
16423
16597
  var _r6_1 = i0.ɵɵgetCurrentView();
@@ -16427,7 +16601,7 @@
16427
16601
  }
16428
16602
  if (rf & 2) {
16429
16603
  var ctx_r1 = i0.ɵɵnextContext();
16430
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$y, ctx_r1.overlay))("overlay", ctx_r1.overlay)("entries", ctx_r1.entries);
16604
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$x, ctx_r1.overlay))("overlay", ctx_r1.overlay)("entries", ctx_r1.entries);
16431
16605
  }
16432
16606
  }
16433
16607
  function ListScanComponent_ng_miam_list_scan_basket_preview_3_Template(rf, ctx) {
@@ -16439,7 +16613,7 @@
16439
16613
  }
16440
16614
  if (rf & 2) {
16441
16615
  var ctx_r2 = i0.ɵɵnextContext();
16442
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$y, ctx_r2.overlay))("overlay", ctx_r2.overlay)("entries", ctx_r2.entries);
16616
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c0$x, ctx_r2.overlay))("overlay", ctx_r2.overlay)("entries", ctx_r2.entries);
16443
16617
  }
16444
16618
  }
16445
16619
  var ListScanComponent = /** @class */ (function () {
@@ -16874,7 +17048,7 @@
16874
17048
  }], function () { return [{ type: i0.Injector }]; }, null);
16875
17049
  })();
16876
17050
 
16877
- var MIAM_API_HOST$4 = environment.miamAPI + "/api/v1/";
17051
+ var MIAM_API_HOST$5 = environment.miamAPI + "/api/v1/";
16878
17052
  var MIAM_WEB_URL = environment.miamWeb + "/fr/app";
16879
17053
  var MIAM_BASKET_URL = MIAM_WEB_URL + "/mon-panier";
16880
17054
  i8.registerLocaleData(localeFr__default['default'], 'fr');
@@ -16919,7 +17093,7 @@
16919
17093
  { provide: MIAM_BASKET_PATH, useValue: MIAM_BASKET_URL },
16920
17094
  { provide: i0.LOCALE_ID, useValue: 'fr' }
16921
17095
  ], imports: [[
16922
- i1.NgxJsonapiModule.forRoot({ url: MIAM_API_HOST$4 }),
17096
+ i1.NgxJsonapiModule.forRoot({ url: MIAM_API_HOST$5 }),
16923
17097
  ComponentsModule,
16924
17098
  WebComponentsModule,
16925
17099
  animations.BrowserAnimationsModule
@@ -16936,7 +17110,7 @@
16936
17110
  type: i0.NgModule,
16937
17111
  args: [{
16938
17112
  imports: [
16939
- i1.NgxJsonapiModule.forRoot({ url: MIAM_API_HOST$4 }),
17113
+ i1.NgxJsonapiModule.forRoot({ url: MIAM_API_HOST$5 }),
16940
17114
  ComponentsModule,
16941
17115
  WebComponentsModule,
16942
17116
  animations.BrowserAnimationsModule
@@ -17070,6 +17244,8 @@
17070
17244
  exports.TabItemComponent = TabItemComponent;
17071
17245
  exports.TabLabelComponent = TabLabelComponent;
17072
17246
  exports.TabsComponent = TabsComponent;
17247
+ exports.Tag = Tag;
17248
+ exports.TagsService = TagsService;
17073
17249
  exports.TextInputComponent = TextInputComponent;
17074
17250
  exports.TimePickerComponent = TimePickerComponent;
17075
17251
  exports.ToastrService = ToastrService;