ng-miam 6.3.12 → 6.4.1

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 (32) hide show
  1. package/bundles/ng-miam.umd.js +866 -914
  2. package/bundles/ng-miam.umd.js.map +1 -1
  3. package/bundles/ng-miam.umd.min.js +2 -2
  4. package/bundles/ng-miam.umd.min.js.map +1 -1
  5. package/esm2015/lib/_components/abstracts/abstract-recipe-card.component.js +6 -60
  6. package/esm2015/lib/_models/campaign.js +6 -2
  7. package/esm2015/lib/_services/baskets.service.js +2 -2
  8. package/esm2015/lib/_services/context.service.js +1 -8
  9. package/esm2015/lib/_services/interceptor.service.js +2 -2
  10. package/esm2015/lib/_types/builded/miam-interface.js +1 -1
  11. package/esm2015/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.js +2 -2
  12. package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +133 -120
  13. package/esm2015/lib/_web-components/recipe-cards/catalog-recipe-card/catalog-recipe-card.component.js +145 -240
  14. package/esm2015/lib/_web-components/recipe-cards/index.js +2 -1
  15. package/esm2015/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.js +140 -269
  16. package/esm2015/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.js +245 -0
  17. package/esm2015/lib/_web-components/recipe-cards/recipe-cards.module.js +7 -3
  18. package/esm2015/lib/_web-components/recipe-cards/suggestion-card/suggestion-card.component.js +22 -40
  19. package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +10 -2
  20. package/fesm2015/ng-miam.js +783 -817
  21. package/fesm2015/ng-miam.js.map +1 -1
  22. package/lib/_components/abstracts/abstract-recipe-card.component.d.ts +3 -12
  23. package/lib/_models/campaign.d.ts +2 -0
  24. package/lib/_types/builded/miam-interface.d.ts +0 -13
  25. package/lib/_web-components/recipe-cards/catalog-recipe-card/catalog-recipe-card.component.d.ts +11 -4
  26. package/lib/_web-components/recipe-cards/index.d.ts +1 -0
  27. package/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.d.ts +9 -9
  28. package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts +48 -0
  29. package/lib/_web-components/recipe-cards/recipe-cards.module.d.ts +6 -5
  30. package/lib/_web-components/recipe-cards/suggestion-card/suggestion-card.component.d.ts +6 -5
  31. package/lib/_web-components/recipe-details/recipe-details.component.d.ts +2 -1
  32. package/package.json +1 -1
@@ -2419,7 +2419,8 @@
2419
2419
  'start-date': '',
2420
2420
  subtitle: '',
2421
2421
  image: '',
2422
- 'amount-paid': 0
2422
+ 'amount-paid': 0,
2423
+ 'provider-id': '',
2423
2424
  };
2424
2425
  _this.relationships = {};
2425
2426
  return _this;
@@ -2459,6 +2460,13 @@
2459
2460
  enumerable: false,
2460
2461
  configurable: true
2461
2462
  });
2463
+ Object.defineProperty(Campaign.prototype, "providerId", {
2464
+ get: function () {
2465
+ return this.attributes['provider-id'];
2466
+ },
2467
+ enumerable: false,
2468
+ configurable: true
2469
+ });
2462
2470
  return Campaign;
2463
2471
  }(i1.Resource));
2464
2472
 
@@ -3951,7 +3959,7 @@
3951
3959
  });
3952
3960
  var pricePerGuest = recipePrice / guests;
3953
3961
  return BasketPreviewLine.fromRecipe(recipe, itemsCount, pricePerGuest, recipePrice, lineEntries[idx]);
3954
- });
3962
+ }).sort(function (a, b) { return recipes.findIndex(function (r) { return r.id === a.id; }) - recipes.findIndex(function (r) { return r.id === b.id; }); });
3955
3963
  };
3956
3964
  BasketsService.prototype.groupBasketEntries = function (recipes, entries) {
3957
3965
  return recipes.map(function (recipe) {
@@ -4595,10 +4603,6 @@
4595
4603
  },
4596
4604
  list: {
4597
4605
  reset: function () { return _this.listsService.resetList().subscribe(); },
4598
- addRecipe: function (recipeId, guests) {
4599
- return _this.listsService.appendRecipeToList(recipeId, guests, { originPath: 'client', props: { recipe_id: recipeId } });
4600
- },
4601
- hasRecipe: function (recipeId) { return _this.listsService.recipeIsInList(recipeId); },
4602
4606
  recipeCount: function () {
4603
4607
  return _this.listsService.list$.pipe(operators.skipWhile(function (l) { return !l; }), operators.map(function (l) { return l.attributes['recipes-ids'].length; }));
4604
4608
  }
@@ -4621,9 +4625,6 @@
4621
4625
  setDefaultIngredientPicture: function (url) {
4622
4626
  _this.defaultIngredientPicture = url;
4623
4627
  },
4624
- search: function (provider, query) {
4625
- return _this.recipesService.all({ remotefilter: { recipe_provider_id: provider, search: query } }).pipe(operators.skipWhile(function (result) { return !result; }), operators.map(function (response) { return response['data']; }));
4626
- },
4627
4628
  // We keep those just in case
4628
4629
  // setRecipesPrimaryButtonActions: (display = true, addToBasket = true) => {
4629
4630
  // this.recipesService.setRecipesPrimaryButtonActions(display, addToBasket);
@@ -13272,7 +13273,7 @@
13272
13273
 
13273
13274
  function BasketPreviewLineComponent_div_3_ng_miam_icon_1_Template(rf, ctx) {
13274
13275
  if (rf & 1) {
13275
- i0.ɵɵelement(0, "ng-miam-icon", 26);
13276
+ i0.ɵɵelement(0, "ng-miam-icon", 27);
13276
13277
  }
13277
13278
  if (rf & 2) {
13278
13279
  var ctx_r14 = i0.ɵɵnextContext(2);
@@ -13281,7 +13282,7 @@
13281
13282
  }
13282
13283
  function BasketPreviewLineComponent_div_3_ng_template_2_Template(rf, ctx) {
13283
13284
  if (rf & 1) {
13284
- i0.ɵɵelementStart(0, "div", 27);
13285
+ i0.ɵɵelementStart(0, "div", 28);
13285
13286
  i0.ɵɵelement(1, "ng-miam-loader");
13286
13287
  i0.ɵɵelementEnd();
13287
13288
  }
@@ -13289,10 +13290,10 @@
13289
13290
  function BasketPreviewLineComponent_div_3_Template(rf, ctx) {
13290
13291
  if (rf & 1) {
13291
13292
  var _r18_1 = i0.ɵɵgetCurrentView();
13292
- i0.ɵɵelementStart(0, "div", 23);
13293
+ i0.ɵɵelementStart(0, "div", 24);
13293
13294
  i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_3_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r18_1); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.removeLine($event); });
13294
- i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_3_ng_miam_icon_1_Template, 1, 1, "ng-miam-icon", 24);
13295
- i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_3_ng_template_2_Template, 2, 0, "ng-template", null, 25, i0.ɵɵtemplateRefExtractor);
13295
+ i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_3_ng_miam_icon_1_Template, 1, 1, "ng-miam-icon", 25);
13296
+ i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_3_ng_template_2_Template, 2, 0, "ng-template", null, 26, i0.ɵɵtemplateRefExtractor);
13296
13297
  i0.ɵɵelementEnd();
13297
13298
  }
13298
13299
  if (rf & 2) {
@@ -13326,7 +13327,7 @@
13326
13327
  i0.ɵɵtext(6, " /");
13327
13328
  i0.ɵɵelementEnd();
13328
13329
  i0.ɵɵelementStart(7, "span");
13329
- i0.ɵɵi18n(8, 28);
13330
+ i0.ɵɵi18n(8, 29);
13330
13331
  i0.ɵɵelementEnd();
13331
13332
  i0.ɵɵelementEnd();
13332
13333
  }
@@ -13341,74 +13342,87 @@
13341
13342
  function BasketPreviewLineComponent_div_14_span_1_Template(rf, ctx) {
13342
13343
  if (rf & 1) {
13343
13344
  i0.ɵɵelementStart(0, "span");
13344
- i0.ɵɵi18n(1, 30);
13345
+ i0.ɵɵi18n(1, 31);
13345
13346
  i0.ɵɵelementEnd();
13346
13347
  }
13347
13348
  }
13348
- function BasketPreviewLineComponent_div_14_span_3_Template(rf, ctx) {
13349
+ function BasketPreviewLineComponent_div_14_span_2_Template(rf, ctx) {
13349
13350
  if (rf & 1) {
13350
13351
  i0.ɵɵelementStart(0, "span");
13351
- i0.ɵɵi18n(1, 31);
13352
+ i0.ɵɵi18n(1, 32);
13352
13353
  i0.ɵɵelementEnd();
13353
13354
  }
13354
13355
  }
13356
+ var _c6$2 = function (a0) { return { "expanded": a0 }; };
13355
13357
  function BasketPreviewLineComponent_div_14_Template(rf, ctx) {
13356
13358
  if (rf & 1) {
13357
- i0.ɵɵelementStart(0, "div", 29);
13359
+ i0.ɵɵelementStart(0, "div", 30);
13358
13360
  i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_14_span_1_Template, 2, 0, "span", 9);
13359
- i0.ɵɵtext(2, " \u00A0 ");
13360
- i0.ɵɵtemplate(3, BasketPreviewLineComponent_div_14_span_3_Template, 2, 0, "span", 9);
13361
+ i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_14_span_2_Template, 2, 0, "span", 9);
13361
13362
  i0.ɵɵelementEnd();
13362
13363
  }
13363
13364
  if (rf & 2) {
13364
13365
  var ctx_r3 = i0.ɵɵnextContext();
13366
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(3, _c6$2, ctx_r3.expanded));
13365
13367
  i0.ɵɵadvance(1);
13366
13368
  i0.ɵɵproperty("ngIf", ctx_r3.expanded);
13367
- i0.ɵɵadvance(2);
13369
+ i0.ɵɵadvance(1);
13368
13370
  i0.ɵɵproperty("ngIf", !ctx_r3.expanded);
13369
13371
  }
13370
13372
  }
13371
13373
  function BasketPreviewLineComponent_div_15_Template(rf, ctx) {
13372
13374
  if (rf & 1) {
13373
- i0.ɵɵelementStart(0, "div", 29);
13374
- i0.ɵɵi18n(1, 32);
13375
+ i0.ɵɵelementStart(0, "div", 33);
13376
+ i0.ɵɵi18n(1, 34);
13375
13377
  i0.ɵɵelementEnd();
13376
13378
  }
13377
13379
  }
13378
- var _c10$1 = function (a0) { return { "disable": a0 }; };
13380
+ var _c11$1 = function (a0) { return { "disable": a0 }; };
13379
13381
  function BasketPreviewLineComponent_div_16_Template(rf, ctx) {
13380
13382
  if (rf & 1) {
13381
13383
  var _r22_1 = i0.ɵɵgetCurrentView();
13382
- i0.ɵɵelementStart(0, "div", 33);
13384
+ i0.ɵɵelementStart(0, "div", 35);
13383
13385
  i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_16_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r22_1); var ctx_r21 = i0.ɵɵnextContext(); return ctx_r21.changeProduct(ctx_r21.line); });
13384
- i0.ɵɵelementStart(1, "a", 34);
13385
- i0.ɵɵi18n(2, 35);
13386
+ i0.ɵɵelementStart(1, "a", 36);
13387
+ i0.ɵɵi18n(2, 37);
13386
13388
  i0.ɵɵelementEnd();
13387
13389
  i0.ɵɵelementEnd();
13388
13390
  }
13389
13391
  if (rf & 2) {
13390
13392
  var ctx_r5 = i0.ɵɵnextContext();
13391
13393
  i0.ɵɵadvance(1);
13392
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c10$1, ctx_r5.disableItemSelector));
13394
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(1, _c11$1, ctx_r5.disableItemSelector));
13395
+ }
13396
+ }
13397
+ function BasketPreviewLineComponent_div_17_span_2_Template(rf, ctx) {
13398
+ if (rf & 1) {
13399
+ i0.ɵɵelementStart(0, "span");
13400
+ i0.ɵɵtext(1);
13401
+ i0.ɵɵelementEnd();
13402
+ }
13403
+ if (rf & 2) {
13404
+ var word_r24 = ctx.$implicit;
13405
+ i0.ɵɵadvance(1);
13406
+ i0.ɵɵtextInterpolate(word_r24);
13393
13407
  }
13394
13408
  }
13395
13409
  function BasketPreviewLineComponent_div_17_Template(rf, ctx) {
13396
13410
  if (rf & 1) {
13397
- i0.ɵɵelementStart(0, "div", 36);
13398
- i0.ɵɵelementStart(1, "span", 37);
13399
- i0.ɵɵtext(2);
13411
+ i0.ɵɵelementStart(0, "div", 38);
13412
+ i0.ɵɵelementStart(1, "div", 39);
13413
+ i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_17_span_2_Template, 2, 1, "span", 40);
13400
13414
  i0.ɵɵelementEnd();
13401
13415
  i0.ɵɵelementEnd();
13402
13416
  }
13403
13417
  if (rf & 2) {
13404
13418
  var ctx_r6 = i0.ɵɵnextContext();
13405
13419
  i0.ɵɵadvance(2);
13406
- i0.ɵɵtextInterpolate(ctx_r6.line.inlineTag);
13420
+ i0.ɵɵproperty("ngForOf", ctx_r6.line.inlineTag.split(" "));
13407
13421
  }
13408
13422
  }
13409
13423
  function BasketPreviewLineComponent_div_19_Template(rf, ctx) {
13410
13424
  if (rf & 1) {
13411
- i0.ɵɵelementStart(0, "div", 38);
13425
+ i0.ɵɵelementStart(0, "div", 41);
13412
13426
  i0.ɵɵelementStart(1, "span");
13413
13427
  i0.ɵɵtext(2);
13414
13428
  i0.ɵɵelementEnd();
@@ -13431,43 +13445,43 @@
13431
13445
  i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(7, 3, ctx_r7.currency), "");
13432
13446
  }
13433
13447
  }
13434
- var _c11$1 = function () { return ["title"]; };
13435
- var _c12 = function (a0) { return { recipes: a0 }; };
13436
- var _c13 = function (a0) { return { fields: a0 }; };
13448
+ var _c12 = function () { return ["title"]; };
13449
+ var _c13 = function (a0) { return { recipes: a0 }; };
13450
+ var _c14 = function (a0) { return { fields: a0 }; };
13437
13451
  function BasketPreviewLineComponent_ng_template_20_Template(rf, ctx) {
13438
13452
  if (rf & 1) {
13439
- i0.ɵɵelement(0, "ng-miam-recipe-pricing", 39);
13453
+ i0.ɵɵelement(0, "ng-miam-recipe-pricing", 42);
13440
13454
  i0.ɵɵpipe(1, "async");
13441
13455
  }
13442
13456
  if (rf & 2) {
13443
13457
  var ctx_r9 = i0.ɵɵnextContext();
13444
- i0.ɵɵproperty("recipe", i0.ɵɵpipeBind1(1, 2, ctx_r9.recipesService.get(ctx_r9.line.id, i0.ɵɵpureFunction1(7, _c13, i0.ɵɵpureFunction1(5, _c12, i0.ɵɵpureFunction0(4, _c11$1))))))("serves", ctx_r9.line.count);
13458
+ i0.ɵɵproperty("recipe", i0.ɵɵpipeBind1(1, 2, ctx_r9.recipesService.get(ctx_r9.line.id, i0.ɵɵpureFunction1(7, _c14, i0.ɵɵpureFunction1(5, _c13, i0.ɵɵpureFunction0(4, _c12))))))("serves", ctx_r9.line.count);
13445
13459
  }
13446
13460
  }
13447
13461
  function BasketPreviewLineComponent_div_23_Template(rf, ctx) {
13448
13462
  if (rf & 1) {
13449
- i0.ɵɵelementStart(0, "div", 40);
13450
- i0.ɵɵi18n(1, 41);
13463
+ i0.ɵɵelementStart(0, "div", 43);
13464
+ i0.ɵɵi18n(1, 44);
13451
13465
  i0.ɵɵelementEnd();
13452
13466
  }
13453
13467
  }
13454
13468
  function BasketPreviewLineComponent_div_25_span_1_Template(rf, ctx) {
13455
13469
  if (rf & 1) {
13456
13470
  i0.ɵɵelementStart(0, "span");
13457
- i0.ɵɵi18n(1, 43);
13471
+ i0.ɵɵi18n(1, 46);
13458
13472
  i0.ɵɵelementEnd();
13459
13473
  }
13460
13474
  }
13461
13475
  function BasketPreviewLineComponent_div_25_span_2_Template(rf, ctx) {
13462
13476
  if (rf & 1) {
13463
13477
  i0.ɵɵelementStart(0, "span");
13464
- i0.ɵɵi18n(1, 44);
13478
+ i0.ɵɵi18n(1, 47);
13465
13479
  i0.ɵɵelementEnd();
13466
13480
  }
13467
13481
  }
13468
13482
  function BasketPreviewLineComponent_div_25_Template(rf, ctx) {
13469
13483
  if (rf & 1) {
13470
- i0.ɵɵelementStart(0, "div", 42);
13484
+ i0.ɵɵelementStart(0, "div", 45);
13471
13485
  i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_25_span_1_Template, 2, 0, "span", 9);
13472
13486
  i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_25_span_2_Template, 2, 0, "span", 9);
13473
13487
  i0.ɵɵelementEnd();
@@ -13482,11 +13496,11 @@
13482
13496
  }
13483
13497
  function BasketPreviewLineComponent_div_26_Template(rf, ctx) {
13484
13498
  if (rf & 1) {
13485
- var _r26_1 = i0.ɵɵgetCurrentView();
13486
- i0.ɵɵelementStart(0, "div", 45);
13487
- i0.ɵɵelementStart(1, "button", 46);
13488
- i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_26_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r26_1); var ctx_r25 = i0.ɵɵnextContext(); return ctx_r25.toggleRecipeDisplay($event, true); });
13489
- i0.ɵɵelement(2, "ng-miam-icon", 47);
13499
+ var _r28_1 = i0.ɵɵgetCurrentView();
13500
+ i0.ɵɵelementStart(0, "div", 48);
13501
+ i0.ɵɵelementStart(1, "button", 49);
13502
+ i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_26_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r28_1); var ctx_r27 = i0.ɵɵnextContext(); return ctx_r27.toggleRecipeDisplay($event, true); });
13503
+ i0.ɵɵelement(2, "ng-miam-icon", 50);
13490
13504
  i0.ɵɵelementEnd();
13491
13505
  i0.ɵɵelementEnd();
13492
13506
  }
@@ -13498,97 +13512,98 @@
13498
13512
  }
13499
13513
  function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_line_1_Template(rf, ctx) {
13500
13514
  if (rf & 1) {
13501
- var _r36_1 = i0.ɵɵgetCurrentView();
13502
- i0.ɵɵelementStart(0, "ng-miam-basket-preview-line", 55);
13503
- i0.ɵɵlistener("removed", function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_removed_0_listener($event) { i0.ɵɵrestoreView(_r36_1); var ctx_r35 = i0.ɵɵnextContext(3); return ctx_r35.deleteEntry($event.record); })("replaceItem", function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_replaceItem_0_listener() { i0.ɵɵrestoreView(_r36_1); var ctx_r37 = i0.ɵɵnextContext(3); return ctx_r37.replaceItem.emit(ctx_r37.line); });
13515
+ var _r38_1 = i0.ɵɵgetCurrentView();
13516
+ i0.ɵɵelementStart(0, "ng-miam-basket-preview-line", 58);
13517
+ i0.ɵɵlistener("removed", function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_removed_0_listener($event) { i0.ɵɵrestoreView(_r38_1); var ctx_r37 = i0.ɵɵnextContext(3); return ctx_r37.deleteEntry($event.record); })("replaceItem", function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_replaceItem_0_listener() { i0.ɵɵrestoreView(_r38_1); var ctx_r39 = i0.ɵɵnextContext(3); return ctx_r39.replaceItem.emit(ctx_r39.line); });
13504
13518
  i0.ɵɵelementEnd();
13505
13519
  }
13506
13520
  if (rf & 2) {
13507
- var entryLine_r34 = ctx.$implicit;
13508
- var ctx_r30 = i0.ɵɵnextContext(3);
13509
- i0.ɵɵproperty("line", entryLine_r34)("displayItemsUnitaryPrice", ctx_r30.displayItemsUnitaryPrice)("originTrace", ctx_r30.eventTrace())("blockStates", ctx_r30.blockStates);
13521
+ var entryLine_r36 = ctx.$implicit;
13522
+ var ctx_r32 = i0.ɵɵnextContext(3);
13523
+ i0.ɵɵproperty("line", entryLine_r36)("displayItemsUnitaryPrice", ctx_r32.displayItemsUnitaryPrice)("originTrace", ctx_r32.eventTrace())("blockStates", ctx_r32.blockStates);
13510
13524
  }
13511
13525
  }
13512
13526
  function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_3_Template(rf, ctx) {
13513
13527
  if (rf & 1) {
13514
- i0.ɵɵelement(0, "ng-miam-basket-preview-disabled", 56);
13528
+ i0.ɵɵelement(0, "ng-miam-basket-preview-disabled", 59);
13515
13529
  }
13516
13530
  if (rf & 2) {
13517
- var ctx_r31 = i0.ɵɵnextContext(3);
13518
- i0.ɵɵproperty("entries", ctx_r31.line.entries.notFound)("alwaysExpanded", ctx_r31.itemsAlwaysExpanded);
13531
+ var ctx_r33 = i0.ɵɵnextContext(3);
13532
+ i0.ɵɵproperty("entries", ctx_r33.line.entries.notFound)("alwaysExpanded", ctx_r33.itemsAlwaysExpanded);
13519
13533
  }
13520
13534
  }
13521
13535
  function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_4_Template(rf, ctx) {
13522
13536
  if (rf & 1) {
13523
- var _r39_1 = i0.ɵɵgetCurrentView();
13524
- i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 57);
13525
- i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_4_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); });
13537
+ var _r41_1 = i0.ɵɵgetCurrentView();
13538
+ i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 60);
13539
+ i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_4_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r41_1); var ctx_r40 = i0.ɵɵnextContext(3); return ctx_r40.addEntry($event); });
13526
13540
  i0.ɵɵelementEnd();
13527
13541
  }
13528
13542
  if (rf & 2) {
13529
- var ctx_r32 = i0.ɵɵnextContext(3);
13530
- i0.ɵɵproperty("entries", ctx_r32.line.entries.oftenDeleted)("alwaysExpanded", ctx_r32.itemsAlwaysExpanded);
13543
+ var ctx_r34 = i0.ɵɵnextContext(3);
13544
+ i0.ɵɵproperty("entries", ctx_r34.line.entries.oftenDeleted)("alwaysExpanded", ctx_r34.itemsAlwaysExpanded);
13531
13545
  }
13532
13546
  }
13533
13547
  function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_5_Template(rf, ctx) {
13534
13548
  if (rf & 1) {
13535
- var _r41_1 = i0.ɵɵgetCurrentView();
13536
- i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 58);
13537
- i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_5_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r41_1); var ctx_r40 = i0.ɵɵnextContext(3); return ctx_r40.addEntry($event); });
13549
+ var _r43_1 = i0.ɵɵgetCurrentView();
13550
+ i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 61);
13551
+ i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_5_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r43_1); var ctx_r42 = i0.ɵɵnextContext(3); return ctx_r42.addEntry($event); });
13538
13552
  i0.ɵɵelementEnd();
13539
13553
  }
13540
13554
  if (rf & 2) {
13541
- var ctx_r33 = i0.ɵɵnextContext(3);
13542
- i0.ɵɵproperty("entries", ctx_r33.line.entries.removed)("alwaysExpanded", ctx_r33.itemsAlwaysExpanded)("reduced", true);
13555
+ var ctx_r35 = i0.ɵɵnextContext(3);
13556
+ i0.ɵɵproperty("entries", ctx_r35.line.entries.removed)("alwaysExpanded", ctx_r35.itemsAlwaysExpanded)("reduced", true);
13543
13557
  }
13544
13558
  }
13545
13559
  function BasketPreviewLineComponent_div_27_div_1_Template(rf, ctx) {
13546
13560
  if (rf & 1) {
13547
13561
  i0.ɵɵelementStart(0, "div");
13548
- i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_line_1_Template, 1, 4, "ng-miam-basket-preview-line", 51);
13562
+ i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_line_1_Template, 1, 4, "ng-miam-basket-preview-line", 54);
13549
13563
  i0.ɵɵpipe(2, "async");
13550
- i0.ɵɵtemplate(3, BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 2, "ng-miam-basket-preview-disabled", 52);
13551
- i0.ɵɵtemplate(4, BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 2, "ng-miam-basket-preview-disabled", 53);
13552
- i0.ɵɵtemplate(5, BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 3, "ng-miam-basket-preview-disabled", 54);
13564
+ i0.ɵɵtemplate(3, BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 2, "ng-miam-basket-preview-disabled", 55);
13565
+ i0.ɵɵtemplate(4, BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 2, "ng-miam-basket-preview-disabled", 56);
13566
+ i0.ɵɵtemplate(5, BasketPreviewLineComponent_div_27_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 3, "ng-miam-basket-preview-disabled", 57);
13553
13567
  i0.ɵɵelementEnd();
13554
13568
  }
13555
13569
  if (rf & 2) {
13556
- var ctx_r27 = i0.ɵɵnextContext(2);
13570
+ var ctx_r29 = i0.ɵɵnextContext(2);
13557
13571
  i0.ɵɵadvance(1);
13558
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 4, ctx_r27.entriesLines$));
13572
+ i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 4, ctx_r29.entriesLines$));
13559
13573
  i0.ɵɵadvance(2);
13560
- i0.ɵɵproperty("ngIf", ctx_r27.line.entries.notFound.length > 0);
13574
+ i0.ɵɵproperty("ngIf", ctx_r29.line.entries.notFound.length > 0);
13561
13575
  i0.ɵɵadvance(1);
13562
- i0.ɵɵproperty("ngIf", ctx_r27.line.entries.oftenDeleted.length > 0);
13576
+ i0.ɵɵproperty("ngIf", ctx_r29.line.entries.oftenDeleted.length > 0);
13563
13577
  i0.ɵɵadvance(1);
13564
- i0.ɵɵproperty("ngIf", ctx_r27.line.entries.removed.length > 0);
13578
+ i0.ɵɵproperty("ngIf", ctx_r29.line.entries.removed.length > 0);
13565
13579
  }
13566
13580
  }
13567
13581
  function BasketPreviewLineComponent_div_27_ng_template_2_Template(rf, ctx) {
13568
13582
  if (rf & 1) {
13569
- i0.ɵɵelementStart(0, "div", 59);
13583
+ i0.ɵɵelementStart(0, "div", 62);
13570
13584
  i0.ɵɵelement(1, "ng-miam-loader");
13571
13585
  i0.ɵɵelementStart(2, "div");
13572
- i0.ɵɵi18n(3, 60);
13586
+ i0.ɵɵi18n(3, 63);
13573
13587
  i0.ɵɵelementEnd();
13574
13588
  i0.ɵɵelementEnd();
13575
13589
  }
13576
13590
  }
13577
13591
  function BasketPreviewLineComponent_div_27_Template(rf, ctx) {
13578
13592
  if (rf & 1) {
13579
- i0.ɵɵelementStart(0, "div", 48);
13580
- i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_27_div_1_Template, 6, 6, "div", 49);
13581
- i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_27_ng_template_2_Template, 4, 0, "ng-template", null, 50, i0.ɵɵtemplateRefExtractor);
13593
+ i0.ɵɵelementStart(0, "div", 51);
13594
+ i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_27_div_1_Template, 6, 6, "div", 52);
13595
+ i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_27_ng_template_2_Template, 4, 0, "ng-template", null, 53, i0.ɵɵtemplateRefExtractor);
13582
13596
  i0.ɵɵelementEnd();
13583
13597
  }
13584
13598
  if (rf & 2) {
13585
- var _r28 = i0.ɵɵreference(3);
13599
+ var _r30 = i0.ɵɵreference(3);
13586
13600
  var ctx_r13 = i0.ɵɵnextContext();
13587
13601
  i0.ɵɵadvance(1);
13588
- i0.ɵɵproperty("ngIf", !ctx_r13.loading)("ngIfElse", _r28);
13602
+ i0.ɵɵproperty("ngIf", !ctx_r13.loading)("ngIfElse", _r30);
13589
13603
  }
13590
13604
  }
13591
- var _c22 = function (a0, a1, a2) { return { clickable: a0, expanded: a1, elevate: a2 }; };
13605
+ var _c23 = function (a0, a1, a2) { return { clickable: a0, expanded: a1, elevate: a2 }; };
13606
+ var _c24 = function (a0) { return { "with-inline-tag": a0 }; };
13592
13607
  var BasketPreviewLineComponent = /** @class */ (function (_super) {
13593
13608
  __extends(BasketPreviewLineComponent, _super);
13594
13609
  function BasketPreviewLineComponent(cdr, recipesService, listsService, basketsService, analyticsService, posService, userService, contextService, elementRef, supplierService) {
@@ -13788,7 +13803,7 @@
13788
13803
  return BasketPreviewLineComponent;
13789
13804
  }(EventTracerComponent));
13790
13805
  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), i0.ɵɵdirectiveInject(SuppliersService)); };
13791
- BasketPreviewLineComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BasketPreviewLineComponent, selectors: [["ng-miam-basket-preview-line"]], inputs: { line: "line", uniqueLine: "uniqueLine", blockStates: "blockStates", displayTotalPricing: "displayTotalPricing", recipesAlwaysExpanded: "recipesAlwaysExpanded", itemsAlwaysExpanded: "itemsAlwaysExpanded", displayItemsUnitaryPrice: "displayItemsUnitaryPrice" }, outputs: { removed: "removed", countChanged: "countChanged", replaceItem: "replaceItem", showRecipe: "showRecipe" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 28, vars: 25, consts: function () {
13806
+ BasketPreviewLineComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BasketPreviewLineComponent, selectors: [["ng-miam-basket-preview-line"]], inputs: { line: "line", uniqueLine: "uniqueLine", blockStates: "blockStates", displayTotalPricing: "displayTotalPricing", recipesAlwaysExpanded: "recipesAlwaysExpanded", itemsAlwaysExpanded: "itemsAlwaysExpanded", displayItemsUnitaryPrice: "displayItemsUnitaryPrice" }, outputs: { removed: "removed", countChanged: "countChanged", replaceItem: "replaceItem", showRecipe: "showRecipe" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 28, vars: 28, consts: function () {
13792
13807
  var i18n_0;
13793
13808
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
13794
13809
  var MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__1 = goog.getMsg(" personne ");
@@ -13813,55 +13828,55 @@
13813
13828
  else {
13814
13829
  i18n_4 = $localize(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject([":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"], [":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"])));
13815
13830
  }
13816
- var i18n_6;
13831
+ var i18n_7;
13817
13832
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
13818
- var MSG_EXTERNAL_3422645121321619499$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__7 = goog.getMsg(" Voir la recette ");
13819
- i18n_6 = MSG_EXTERNAL_3422645121321619499$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__7;
13833
+ var MSG_EXTERNAL_3422645121321619499$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__8 = goog.getMsg(" Voir la recette ");
13834
+ i18n_7 = MSG_EXTERNAL_3422645121321619499$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__8;
13820
13835
  }
13821
13836
  else {
13822
- i18n_6 = $localize(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject([":\u241F34e23f58b49b30b043bb800b0929fb73a63b2949\u241F3422645121321619499: Voir la recette "], [":\u241F34e23f58b49b30b043bb800b0929fb73a63b2949\u241F3422645121321619499: Voir la recette "])));
13837
+ i18n_7 = $localize(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject([":\u241F34e23f58b49b30b043bb800b0929fb73a63b2949\u241F3422645121321619499: Voir la recette "], [":\u241F34e23f58b49b30b043bb800b0929fb73a63b2949\u241F3422645121321619499: Voir la recette "])));
13823
13838
  }
13824
- var i18n_8;
13839
+ var i18n_9;
13825
13840
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
13826
- var MSG_EXTERNAL_2014297263214357463$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__9 = goog.getMsg("Changer d'article");
13827
- i18n_8 = MSG_EXTERNAL_2014297263214357463$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__9;
13841
+ var MSG_EXTERNAL_2014297263214357463$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__10 = goog.getMsg("Changer d'article");
13842
+ i18n_9 = MSG_EXTERNAL_2014297263214357463$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__10;
13828
13843
  }
13829
13844
  else {
13830
- i18n_8 = $localize(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject([":\u241Fc0482d798065c40279036142ef812ebf3942d280\u241F2014297263214357463:Changer d'article"], [":\u241Fc0482d798065c40279036142ef812ebf3942d280\u241F2014297263214357463:Changer d'article"])));
13845
+ i18n_9 = $localize(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject([":\u241Fc0482d798065c40279036142ef812ebf3942d280\u241F2014297263214357463:Changer d'article"], [":\u241Fc0482d798065c40279036142ef812ebf3942d280\u241F2014297263214357463:Changer d'article"])));
13831
13846
  }
13832
- var i18n_14;
13847
+ var i18n_15;
13833
13848
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
13834
- var MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__15 = goog.getMsg("pour");
13835
- i18n_14 = MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__15;
13849
+ var MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__16 = goog.getMsg("pour");
13850
+ i18n_15 = MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__16;
13836
13851
  }
13837
13852
  else {
13838
- i18n_14 = $localize(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject([":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"], [":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"])));
13853
+ i18n_15 = $localize(templateObject_6$2 || (templateObject_6$2 = __makeTemplateObject([":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"], [":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"])));
13839
13854
  }
13840
- var i18n_16;
13855
+ var i18n_17;
13841
13856
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
13842
- var MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___17 = goog.getMsg("personnes");
13843
- i18n_16 = MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___17;
13857
+ var MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___18 = goog.getMsg("personnes");
13858
+ i18n_17 = MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___18;
13844
13859
  }
13845
13860
  else {
13846
- i18n_16 = $localize(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject([":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"], [":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"])));
13861
+ i18n_17 = $localize(templateObject_7$2 || (templateObject_7$2 = __makeTemplateObject([":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"], [":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"])));
13847
13862
  }
13848
- var i18n_18;
13863
+ var i18n_19;
13849
13864
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
13850
- var MSG_EXTERNAL_2884439310873584392$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___19 = goog.getMsg("personne");
13851
- i18n_18 = MSG_EXTERNAL_2884439310873584392$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___19;
13865
+ var MSG_EXTERNAL_2884439310873584392$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___20 = goog.getMsg("personne");
13866
+ i18n_19 = MSG_EXTERNAL_2884439310873584392$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___20;
13852
13867
  }
13853
13868
  else {
13854
- i18n_18 = $localize(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject([":\u241F1d52fd9a90536a68517dea0fee46df2e64971d3f\u241F2884439310873584392:personne"], [":\u241F1d52fd9a90536a68517dea0fee46df2e64971d3f\u241F2884439310873584392:personne"])));
13869
+ i18n_19 = $localize(templateObject_8$2 || (templateObject_8$2 = __makeTemplateObject([":\u241F1d52fd9a90536a68517dea0fee46df2e64971d3f\u241F2884439310873584392:personne"], [":\u241F1d52fd9a90536a68517dea0fee46df2e64971d3f\u241F2884439310873584392:personne"])));
13855
13870
  }
13856
- var i18n_20;
13871
+ var i18n_21;
13857
13872
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
13858
- var MSG_EXTERNAL_8327069019640670106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___21 = goog.getMsg("Calcul des ingr\u00E9dients...");
13859
- i18n_20 = MSG_EXTERNAL_8327069019640670106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___21;
13873
+ var MSG_EXTERNAL_8327069019640670106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___22 = goog.getMsg("Calcul des ingr\u00E9dients...");
13874
+ i18n_21 = MSG_EXTERNAL_8327069019640670106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___22;
13860
13875
  }
13861
13876
  else {
13862
- i18n_20 = $localize(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject([":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."], [":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."])));
13877
+ i18n_21 = $localize(templateObject_9$2 || (templateObject_9$2 = __makeTemplateObject([":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."], [":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."])));
13863
13878
  }
13864
- return [[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, "ngIf"], [1, "miam-basket-preview-line__item__actions"], ["class", "miam-basket-preview-line__item__showDetails", 4, "ngIf"], ["class", "miam-basket-preview-line__item__change", 3, "click", 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", 4, "ngIf", "ngIfElse"], ["addLoader", ""], ["height", "24", "width", "24", "primaryColor", "var(--m-color-grey-text-dark)", 3, "iconName"], [1, "icon-container"], i18n_0, [1, "miam-basket-preview-line__item__showDetails"], i18n_2, i18n_4, i18n_6, [1, "miam-basket-preview-line__item__change", 3, "click"], [1, "miam-basket-preview-line__item__change__link", 3, "ngClass"], i18n_8, [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"], i18n_14, [1, "miam-basket-preview-line__item__count__people"], i18n_16, i18n_18, [1, "miam-basket-preview-line__add__button"], [1, "m-button-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-basket-preview-lines"], [4, "ngIf", "ngIfElse"], ["loader", ""], [3, "line", "displayItemsUnitaryPrice", "originTrace", "blockStates", "removed", "replaceItem", 4, "ngFor", "ngForOf"], ["mode", "unavailable", 3, "entries", "alwaysExpanded", 4, "ngIf"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded", 4, "ngIf"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded", 4, "ngIf"], [3, "line", "displayItemsUnitaryPrice", "originTrace", "blockStates", "removed", "replaceItem"], ["mode", "unavailable", 3, "entries", "alwaysExpanded"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded"], [1, "miam-basket-preview-line__loader-container"], i18n_20];
13879
+ return [[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", 3, "ngClass"], [1, "miam-basket-preview-line__item__title", 3, "click"], [1, "miam-basket-preview-line__item__description"], [4, "ngIf"], [1, "miam-basket-preview-line__item__actions"], ["class", "miam-basket-preview-line__item__showDetails", 3, "ngClass", 4, "ngIf"], ["class", "miam-basket-preview-line__item__showDetails", 4, "ngIf"], ["class", "miam-basket-preview-line__item__change", 3, "click", 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", 4, "ngIf", "ngIfElse"], ["addLoader", ""], ["height", "24", "width", "24", "primaryColor", "var(--m-color-grey-text-dark)", 3, "iconName"], [1, "icon-container"], i18n_0, [1, "miam-basket-preview-line__item__showDetails", 3, "ngClass"], i18n_2, i18n_4, [1, "miam-basket-preview-line__item__showDetails"], i18n_7, [1, "miam-basket-preview-line__item__change", 3, "click"], [1, "miam-basket-preview-line__item__change__link", 3, "ngClass"], i18n_9, [1, "miam-basket-preview-line__item__inlineTag__container"], [1, "miam-basket-preview-line__item__inlineTag"], [4, "ngFor", "ngForOf"], [1, "miam-basket-preview-line__item__price"], [3, "recipe", "serves"], [1, "miam-basket-preview-line__item__count__for"], i18n_15, [1, "miam-basket-preview-line__item__count__people"], i18n_17, i18n_19, [1, "miam-basket-preview-line__add__button"], [1, "m-button-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-basket-preview-lines"], [4, "ngIf", "ngIfElse"], ["loader", ""], [3, "line", "displayItemsUnitaryPrice", "originTrace", "blockStates", "removed", "replaceItem", 4, "ngFor", "ngForOf"], ["mode", "unavailable", 3, "entries", "alwaysExpanded", 4, "ngIf"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded", 4, "ngIf"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded", 4, "ngIf"], [3, "line", "displayItemsUnitaryPrice", "originTrace", "blockStates", "removed", "replaceItem"], ["mode", "unavailable", 3, "entries", "alwaysExpanded"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded"], [1, "miam-basket-preview-line__loader-container"], i18n_21];
13865
13880
  }, template: function BasketPreviewLineComponent_Template(rf, ctx) {
13866
13881
  if (rf & 1) {
13867
13882
  i0.ɵɵelementStart(0, "div", 0);
@@ -13885,39 +13900,41 @@
13885
13900
  i0.ɵɵtemplate(12, BasketPreviewLineComponent_div_12_Template, 9, 4, "div", 9);
13886
13901
  i0.ɵɵelementEnd();
13887
13902
  i0.ɵɵelementStart(13, "div", 10);
13888
- i0.ɵɵtemplate(14, BasketPreviewLineComponent_div_14_Template, 4, 2, "div", 11);
13889
- i0.ɵɵtemplate(15, BasketPreviewLineComponent_div_15_Template, 2, 0, "div", 11);
13890
- i0.ɵɵtemplate(16, BasketPreviewLineComponent_div_16_Template, 3, 3, "div", 12);
13891
- i0.ɵɵtemplate(17, BasketPreviewLineComponent_div_17_Template, 3, 1, "div", 13);
13903
+ i0.ɵɵtemplate(14, BasketPreviewLineComponent_div_14_Template, 3, 5, "div", 11);
13904
+ i0.ɵɵtemplate(15, BasketPreviewLineComponent_div_15_Template, 2, 0, "div", 12);
13905
+ i0.ɵɵtemplate(16, BasketPreviewLineComponent_div_16_Template, 3, 3, "div", 13);
13906
+ i0.ɵɵtemplate(17, BasketPreviewLineComponent_div_17_Template, 3, 1, "div", 14);
13892
13907
  i0.ɵɵelementEnd();
13893
13908
  i0.ɵɵelementEnd();
13894
13909
  i0.ɵɵelementEnd();
13895
- i0.ɵɵelementStart(18, "div", 14);
13896
- i0.ɵɵtemplate(19, BasketPreviewLineComponent_div_19_Template, 8, 5, "div", 15);
13897
- i0.ɵɵtemplate(20, BasketPreviewLineComponent_ng_template_20_Template, 2, 9, "ng-template", null, 16, i0.ɵɵtemplateRefExtractor);
13898
- i0.ɵɵelementStart(22, "div", 17);
13899
- i0.ɵɵtemplate(23, BasketPreviewLineComponent_div_23_Template, 2, 0, "div", 18);
13900
- i0.ɵɵelementStart(24, "ng-miam-counter-input", 19);
13910
+ i0.ɵɵelementStart(18, "div", 15);
13911
+ i0.ɵɵtemplate(19, BasketPreviewLineComponent_div_19_Template, 8, 5, "div", 16);
13912
+ i0.ɵɵtemplate(20, BasketPreviewLineComponent_ng_template_20_Template, 2, 9, "ng-template", null, 17, i0.ɵɵtemplateRefExtractor);
13913
+ i0.ɵɵelementStart(22, "div", 18);
13914
+ i0.ɵɵtemplate(23, BasketPreviewLineComponent_div_23_Template, 2, 0, "div", 19);
13915
+ i0.ɵɵelementStart(24, "ng-miam-counter-input", 20);
13901
13916
  i0.ɵɵlistener("counterChange", function BasketPreviewLineComponent_Template_ng_miam_counter_input_counterChange_24_listener($event) { return ctx.changeCount($event); });
13902
13917
  i0.ɵɵelementEnd();
13903
- i0.ɵɵtemplate(25, BasketPreviewLineComponent_div_25_Template, 3, 2, "div", 20);
13918
+ i0.ɵɵtemplate(25, BasketPreviewLineComponent_div_25_Template, 3, 2, "div", 21);
13904
13919
  i0.ɵɵelementEnd();
13905
- i0.ɵɵtemplate(26, BasketPreviewLineComponent_div_26_Template, 3, 3, "div", 21);
13920
+ i0.ɵɵtemplate(26, BasketPreviewLineComponent_div_26_Template, 3, 3, "div", 22);
13906
13921
  i0.ɵɵelementEnd();
13907
13922
  i0.ɵɵelementEnd();
13908
13923
  i0.ɵɵelementEnd();
13909
- i0.ɵɵtemplate(27, BasketPreviewLineComponent_div_27_Template, 4, 2, "div", 22);
13924
+ i0.ɵɵtemplate(27, BasketPreviewLineComponent_div_27_Template, 4, 2, "div", 23);
13910
13925
  }
13911
13926
  if (rf & 2) {
13912
13927
  var _r8 = i0.ɵɵreference(21);
13913
13928
  i0.ɵɵpropertyInterpolate("id", ctx.line.id);
13914
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(21, _c22, ctx.line.hasEntries() || ctx.line.displayMode, ctx.expanded, ctx.selectItem));
13929
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(22, _c23, ctx.line.hasEntries() || ctx.line.displayMode, ctx.expanded, ctx.selectItem));
13915
13930
  i0.ɵɵadvance(3);
13916
13931
  i0.ɵɵproperty("ngIf", !ctx.uniqueLine && !ctx.line.displayMode);
13917
13932
  i0.ɵɵadvance(2);
13918
13933
  i0.ɵɵproperty("src", ctx.line.picture, i0.ɵɵsanitizeUrl);
13919
- i0.ɵɵadvance(3);
13920
- i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 19, ctx.line.title), " ");
13934
+ i0.ɵɵadvance(1);
13935
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c24, ctx.line.inlineTag));
13936
+ i0.ɵɵadvance(2);
13937
+ i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(9, 20, ctx.line.title), " ");
13921
13938
  i0.ɵɵadvance(3);
13922
13939
  i0.ɵɵproperty("ngIf", ctx.line.description.length > 0);
13923
13940
  i0.ɵɵadvance(1);
@@ -13943,7 +13960,7 @@
13943
13960
  i0.ɵɵadvance(1);
13944
13961
  i0.ɵɵproperty("ngIf", ctx.expanded);
13945
13962
  }
13946
- }, directives: [i2$1.NgClass, i2$1.NgIf, CounterInputComponent, IconComponent, LoaderComponent, RecipePricingComponent, i2$1.NgForOf, BasketPreviewLineComponent, BasketPreviewDisabledComponent], pipes: [CapitalizeFirstLetterPipe, i2$1.AsyncPipe], styles: [":root{--price-color:var(--miam-price-color,green);--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line{-webkit-tap-highlight-color:transparent;overflow:hidden;padding-left:10px}.miam-basket-preview-line.clickable{border:1px solid var(--m-color-grey);border-radius:4px;box-shadow:none;cursor:pointer;margin-bottom:6px;transition:var(--m-default-transition)}.miam-basket-preview-line.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.expanded{background:#fff;border-color:var(--m-color-grey);box-shadow:var(--m-shadow-small);margin-bottom:15px;margin-top:10px;position:relative}.miam-basket-preview-line .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{align-items:center;display:flex;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{align-self:center;margin:0 30px 0 15px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container{background-color:var(--m-color-grey);border-radius:12.5px;height:25px!important;padding:6px;width:25px!important}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container .miam-loader,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container svg{border-top-color:var(--m-color-grey-text);color:var(--m-color-grey-text);cursor:pointer;height:13px;width:13px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{margin-right:25px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:100px;object-fit:cover;width:130px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{display:inline-block;font-size:var(--m-font-size-medium)}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-primary);text-decoration:underline}}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:first-letter{text-transform:capitalize}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description{font-size:var(--m-font-size-small);font-weight:400}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{display:flex;flex-direction:row}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__showDetails{color:var(--m-color-grey-text);cursor:pointer;margin:2px 30px 0 0;text-decoration:underline;transition:var(--m-default-transition);width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link{color:var(--m-color-grey-text);cursor:pointer;margin:2px 30px 0 0;text-decoration:underline;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link:hover{color:var(--m-color-primary)}}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link.disable{color:var(--m-color-grey-text);pointer-events:none}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{background-color:var(--tag-color);border-radius:100px;display:inline-block;font-size:var(--m-font-size-small);height:22px;padding:1px 16px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{align-items:center;display:flex;justify-content:flex-end;max-width:330px;position:relative;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{color:var(--price-color);font-size:var(--m-font-size-large);font-weight:700;margin:0 20px;white-space:nowrap}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{font-size:var(--m-font-size-small);text-align:center}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{color:var(--m-color-slate);font-weight:700;margin-bottom:2px;padding-left:20px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__add__button{margin:0 20px}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__left .miam-basket-preview-line__item__showDetails{color:var(--m-color-primary)}}.miam-basket-preview-lines{border-left:1px solid var(--m-color-grey);margin-bottom:20px;margin-left:20px;overflow:hidden}.miam-basket-preview-lines .miam-basket-preview-line{border-top:1px solid var(--m-color-grey)}.miam-basket-preview-lines .miam-basket-preview-line.expanded{border-top:1px solid var(--m-color-primary)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{border-top:none;padding:12px 0 15px}@media (min-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-black);text-decoration:none}}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{margin-right:15px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:50px;object-fit:cover;width:50px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{margin-top:-16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{color:var(--m-color-grey-text);font-size:16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count ng-miam-counter-input .miam-counter-input__icon{display:none}.miam-basket-preview-lines .miam-basket-preview-line__loader-container{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:10px}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;padding:0 0 52px;position:relative}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:92px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{bottom:58px;margin:0;position:absolute;right:18px;z-index:1}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:152px;position:absolute;top:16px;width:33%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{height:100%;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:8px 0 0 40%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{bottom:8px;left:0;position:absolute}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{height:auto;padding:1px;text-align:center}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{align-items:flex-start;flex-direction:column-reverse;justify-content:flex-start;padding-left:38%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{display:none}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:auto;padding:0;position:relative}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:auto}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{bottom:unset;margin-right:15px;position:relative;right:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:72px;position:relative;top:unset;width:72px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:72px;object-fit:cover;width:72px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions{bottom:unset;flex-direction:column;gap:8px;position:relative}}@media (max-width:1022px) and (min-width:1023px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container{width:100%}}@media (max-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container .miam-basket-preview-line__item__inlineTag{padding:4px 16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{flex-direction:row;margin:16px 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 16px 0 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:0}}"], encapsulation: 2, changeDetection: 0 });
13963
+ }, directives: [i2$1.NgClass, i2$1.NgIf, CounterInputComponent, IconComponent, LoaderComponent, i2$1.NgForOf, RecipePricingComponent, BasketPreviewLineComponent, BasketPreviewDisabledComponent], pipes: [CapitalizeFirstLetterPipe, i2$1.AsyncPipe], styles: [":root{--price-color:var(--miam-price-color,green);--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line{-webkit-tap-highlight-color:transparent;overflow:hidden;padding-left:10px}.miam-basket-preview-line.clickable{border:1px solid var(--m-color-grey);border-radius:4px;box-shadow:none;cursor:pointer;margin-bottom:6px;transition:var(--m-default-transition)}.miam-basket-preview-line.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.expanded{background:#fff;border-color:var(--m-color-grey);box-shadow:var(--m-shadow-small);margin-bottom:15px;margin-top:10px;position:relative}.miam-basket-preview-line .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{align-items:center;display:flex;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{align-self:center;margin:0 30px 0 15px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container{background-color:var(--m-color-grey);border-radius:12.5px;height:25px!important;padding:6px;width:25px!important}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container .miam-loader,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container svg{border-top-color:var(--m-color-grey-text);color:var(--m-color-grey-text);cursor:pointer;height:13px;width:13px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{margin-right:25px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:100px;object-fit:cover;width:130px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{display:inline-block;font-size:var(--m-font-size-medium)}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-primary);text-decoration:underline}}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:first-letter{text-transform:capitalize}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description{font-size:var(--m-font-size-small);font-weight:400}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{display:flex;flex-direction:row}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__showDetails{color:var(--m-color-grey-text);cursor:pointer;margin:2px 30px 0 0;text-decoration:underline;transition:var(--m-default-transition);width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link{color:var(--m-color-grey-text);cursor:pointer;margin:2px 30px 0 0;text-decoration:underline;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link:hover{color:var(--m-color-primary)}}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link.disable{color:var(--m-color-grey-text);pointer-events:none}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{align-items:center;background-color:var(--tag-color);border-radius:100px;display:flex;font-size:var(--m-font-size-small);height:22px;padding:1px 16px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag span:not(:last-child){margin-right:4px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{align-items:center;display:flex;justify-content:flex-end;max-width:330px;position:relative;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{color:var(--price-color);font-size:var(--m-font-size-large);font-weight:700;margin:0 20px;white-space:nowrap}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{font-size:var(--m-font-size-small);text-align:center}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{color:var(--m-color-slate);font-weight:700;margin-bottom:2px;padding-left:20px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__add__button{margin:0 20px}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__left .miam-basket-preview-line__item__showDetails{color:var(--m-color-primary)}}.miam-basket-preview-lines{border-left:1px solid var(--m-color-grey);margin-bottom:20px;margin-left:20px;overflow:hidden}.miam-basket-preview-lines .miam-basket-preview-line{border-top:1px solid var(--m-color-grey)}.miam-basket-preview-lines .miam-basket-preview-line.expanded{border-top:1px solid var(--m-color-primary)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{border-top:none;padding:12px 0 15px}@media (min-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-black);text-decoration:none}}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{margin-right:15px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:50px;object-fit:cover;width:50px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{margin-top:-16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{color:var(--m-color-grey-text);font-size:16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count ng-miam-counter-input .miam-counter-input__icon{display:none}.miam-basket-preview-lines .miam-basket-preview-line__loader-container{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:10px}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;padding:0 0 52px;position:relative}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:92px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{bottom:58px;margin:0;position:absolute;right:18px;z-index:1}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:152px;position:absolute;top:16px;width:33%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{height:100%;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:8px 0 0 40%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{bottom:8px;left:0;position:absolute}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{height:auto;padding:1px;text-align:center}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{align-items:flex-start;flex-direction:column-reverse;justify-content:flex-start;padding-left:38%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{display:none}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:auto;padding:0;position:relative}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:auto}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{bottom:unset;margin-right:15px;position:relative;right:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:72px;position:relative;top:unset;width:72px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:72px;object-fit:cover;width:72px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions{bottom:unset;flex-direction:column;gap:8px;position:relative}}@media (max-width:1022px) and (min-width:1023px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container{width:100%}}@media (max-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container .miam-basket-preview-line__item__inlineTag{padding:4px 16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{flex-direction:row;margin:16px 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 16px 0 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:0}}"], encapsulation: 2, changeDetection: 0 });
13947
13964
  /*@__PURE__*/ (function () {
13948
13965
  i0.ɵsetClassMetadata(BasketPreviewLineComponent, [{
13949
13966
  type: i0.Component,
@@ -14369,7 +14386,7 @@
14369
14386
  return previewLines;
14370
14387
  }
14371
14388
  return previewLines.filter(function (line) { return _this.recipesIds.includes(line.id); });
14372
- }), operators.tap(function (preview) { return _this.refreshPreview(preview.reverse()); }));
14389
+ }), operators.tap(function (preview) { return _this.refreshPreview(__spread(preview).reverse()); }));
14373
14390
  })).subscribe(function () {
14374
14391
  _this.loading.next(false);
14375
14392
  _this.cdr.detectChanges();
@@ -16546,6 +16563,11 @@
16546
16563
  this.cdr.detectChanges();
16547
16564
  this.fetchRecipe();
16548
16565
  }
16566
+ else {
16567
+ if (changes.forcedRecipe && this.forcedRecipe) {
16568
+ this.recipe = this.forcedRecipe;
16569
+ }
16570
+ }
16549
16571
  if (this.forceDisplayTags !== undefined && this.forceDisplayTags !== this.displayTags) {
16550
16572
  this.displayTags = this.forceDisplayTags;
16551
16573
  }
@@ -16717,7 +16739,7 @@
16717
16739
  var _t;
16718
16740
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.topContainerImg = _t.first);
16719
16741
  }
16720
- }, inputs: { recipeId: "recipeId", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: function () {
16742
+ }, inputs: { recipeId: "recipeId", forcedRecipe: "forcedRecipe", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: function () {
16721
16743
  var i18n_1;
16722
16744
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
16723
16745
  var MSG_EXTERNAL_4599208369990758061$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS__2 = goog.getMsg(" Voir plus d'id\u00E9es repas ");
@@ -16765,6 +16787,8 @@
16765
16787
  }]
16766
16788
  }], function () { return [{ type: i0.ChangeDetectorRef }, { type: RecipesService }, { type: GroceriesListsService }, { type: UserService }, { type: PointOfSalesService }, { type: RecipeEventsService }, { type: i2.MediaMatcher }, { type: ContextService }, { type: AnalyticsService }, { type: ToasterService }]; }, { recipeId: [{
16767
16789
  type: i0.Input
16790
+ }], forcedRecipe: [{
16791
+ type: i0.Input
16768
16792
  }], previewAllowed: [{
16769
16793
  type: i0.Input
16770
16794
  }], ingredientsPictures: [{
@@ -17114,7 +17138,7 @@
17114
17138
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1, line_r8));
17115
17139
  }
17116
17140
  }
17117
- var _c6$2 = function (a0) { return { rotate: a0 }; };
17141
+ var _c6$3 = function (a0) { return { rotate: a0 }; };
17118
17142
  var _c7 = function (a0) { return { wrap: a0 }; };
17119
17143
  function RecipesHistoryComponent_div_6_Template(rf, ctx) {
17120
17144
  if (rf & 1) {
@@ -17141,7 +17165,7 @@
17141
17165
  i0.ɵɵadvance(3);
17142
17166
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, group_r6.date));
17143
17167
  i0.ɵɵadvance(2);
17144
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c6$2, !group_r6.show));
17168
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c6$3, !group_r6.show));
17145
17169
  i0.ɵɵadvance(1);
17146
17170
  i0.ɵɵproperty("iconName", ctx_r2.icon.ChevronDown);
17147
17171
  i0.ɵɵadvance(1);
@@ -17806,18 +17830,15 @@
17806
17830
 
17807
17831
  var AbstractRecipeCardComponent = /** @class */ (function (_super) {
17808
17832
  __extends(AbstractRecipeCardComponent, _super);
17809
- function AbstractRecipeCardComponent(cdr, recipeService, recipeEventsService, groceriesListsService, userService, posService, contextService, analyticsService, element, toasterService) {
17833
+ function AbstractRecipeCardComponent(cdr, recipeService, recipeEventsService, groceriesListsService, contextService, analyticsService, element) {
17810
17834
  var _this = _super.call(this, analyticsService) || this;
17811
17835
  _this.cdr = cdr;
17812
17836
  _this.recipeService = recipeService;
17813
17837
  _this.recipeEventsService = recipeEventsService;
17814
17838
  _this.groceriesListsService = groceriesListsService;
17815
- _this.userService = userService;
17816
- _this.posService = posService;
17817
17839
  _this.contextService = contextService;
17818
17840
  _this.analyticsService = analyticsService;
17819
17841
  _this.element = element;
17820
- _this.toasterService = toasterService;
17821
17842
  _this.headerText = '';
17822
17843
  _this.displayPricing = true;
17823
17844
  _this.displayGuests = true;
@@ -17834,7 +17855,7 @@
17834
17855
  _this.hide = new i0.EventEmitter();
17835
17856
  return _this;
17836
17857
  }
17837
- AbstractRecipeCardComponent.prototype.onScroll = function (e) {
17858
+ AbstractRecipeCardComponent.prototype.onScroll = function () {
17838
17859
  if (this.sendShowEventsOnScroll) {
17839
17860
  this.sendShowEvent();
17840
17861
  }
@@ -17861,51 +17882,6 @@
17861
17882
  AbstractRecipeCardComponent.prototype.ngOnDestroy = function () {
17862
17883
  this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
17863
17884
  };
17864
- AbstractRecipeCardComponent.prototype.addRecipe = function (display) {
17865
- var _this = this;
17866
- if (display === void 0) { display = true; }
17867
- this.toggleButtonLoader(true);
17868
- this.subscriptions.push(rxjs.forkJoin([
17869
- this.userService.isLogged$.asObservable().pipe(operators.take(1)),
17870
- this.posService.isPosValid().pipe(operators.take(1))
17871
- ])
17872
- .subscribe(function (res) {
17873
- var isHookOk = _this.contextService.hookCallback(res[0], res[1]);
17874
- if (isHookOk) {
17875
- _this.addRecipeActionOK(display);
17876
- }
17877
- else {
17878
- _this.addRecipeActionKO();
17879
- }
17880
- }));
17881
- };
17882
- AbstractRecipeCardComponent.prototype.addRecipeActionOK = function (display) {
17883
- var _this = this;
17884
- this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(function (recipeIsInList) {
17885
- var recipeWasAdded = !recipeIsInList;
17886
- if (recipeWasAdded) {
17887
- _this.recipeEventsService.sendEvent(_this.recipe, _this.recipeEventsService.ACTION_ADDED);
17888
- }
17889
- _this.subscriptions.push(_this.groceriesListsService.appendRecipeToList(_this.recipe.id, _this.recipe.modifiedGuests, _this.eventTrace())
17890
- .pipe(operators.take(1))
17891
- .subscribe(function (l) {
17892
- _this.toggleButtonLoader(false);
17893
- if (recipeWasAdded && _this.recipeService.confirmationToaster) {
17894
- _this.showRecipeToaster();
17895
- }
17896
- }));
17897
- if (display) {
17898
- _this.recipeService.displayObject(_this.recipe, { guests: +_this.recipe.modifiedGuests, previewMode: true, wasAdded: recipeWasAdded }, _this.eventTrace());
17899
- }
17900
- }));
17901
- };
17902
- AbstractRecipeCardComponent.prototype.showRecipeToaster = function () {
17903
- this.toasterService.show(MessageType.Success, true);
17904
- };
17905
- AbstractRecipeCardComponent.prototype.addRecipeActionKO = function () {
17906
- sessionStorage.setItem('_miam/cached-recipe', JSON.stringify(this.recipe));
17907
- this.toggleButtonLoader(false);
17908
- };
17909
17885
  AbstractRecipeCardComponent.prototype.toggleHelper = function () {
17910
17886
  this.recipeService.toggleHelper();
17911
17887
  this.cdr.detectChanges();
@@ -17918,10 +17894,6 @@
17918
17894
  stopEventPropagation(event);
17919
17895
  // TODO implement
17920
17896
  };
17921
- AbstractRecipeCardComponent.prototype.toggleButtonLoader = function (value) {
17922
- this.addButtonLoading = value;
17923
- this.cdr.detectChanges();
17924
- };
17925
17897
  AbstractRecipeCardComponent.prototype.isInViewport = function () {
17926
17898
  var rect = this.element.nativeElement.getBoundingClientRect();
17927
17899
  return (rect.top >= 0 &&
@@ -17956,7 +17928,7 @@
17956
17928
  };
17957
17929
  return AbstractRecipeCardComponent;
17958
17930
  }(EventTracerComponent));
17959
- AbstractRecipeCardComponent.ɵfac = function AbstractRecipeCardComponent_Factory(t) { return new (t || AbstractRecipeCardComponent)(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), i0.ɵɵdirectiveInject(ToasterService)); };
17931
+ AbstractRecipeCardComponent.ɵfac = function AbstractRecipeCardComponent_Factory(t) { return new (t || AbstractRecipeCardComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
17960
17932
  AbstractRecipeCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AbstractRecipeCardComponent, selectors: [["ng-component"]], hostBindings: function AbstractRecipeCardComponent_HostBindings(rf, ctx) {
17961
17933
  if (rf & 1) {
17962
17934
  i0.ɵɵlistener("scroll", function AbstractRecipeCardComponent_scroll_HostBindingHandler() { return ctx.onScroll(); }, false, i0.ɵɵresolveWindow);
@@ -17966,7 +17938,7 @@
17966
17938
  i0.ɵsetClassMetadata(AbstractRecipeCardComponent, [{
17967
17939
  type: i0.Component,
17968
17940
  args: [{ template: '' }]
17969
- }], function () { return [{ type: i0.ChangeDetectorRef }, { type: RecipesService }, { type: RecipeEventsService }, { type: GroceriesListsService }, { type: UserService }, { type: PointOfSalesService }, { type: ContextService }, { type: AnalyticsService }, { type: i0.ElementRef }, { type: ToasterService }]; }, { headerText: [{
17941
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: RecipesService }, { type: RecipeEventsService }, { type: GroceriesListsService }, { type: ContextService }, { type: AnalyticsService }, { type: i0.ElementRef }]; }, { headerText: [{
17970
17942
  type: i0.Input
17971
17943
  }], displayPricing: [{
17972
17944
  type: i0.Input
@@ -17984,314 +17956,581 @@
17984
17956
  }] });
17985
17957
  })();
17986
17958
 
17987
- var _b;
17988
- function RecipeCardComponent_div_0_div_3_div_2_Template(rf, ctx) {
17959
+ function RecipeCardCtaComponent_div_0_span_4_Template(rf, ctx) {
17989
17960
  if (rf & 1) {
17990
- i0.ɵɵelementStart(0, "div", 37);
17991
- i0.ɵɵelement(1, "ng-miam-icon", 38);
17961
+ i0.ɵɵelementStart(0, "span");
17962
+ i0.ɵɵtext(1, "Voir le d\u00E9tail");
17992
17963
  i0.ɵɵelementEnd();
17993
17964
  }
17994
- if (rf & 2) {
17995
- var ctx_r25 = i0.ɵɵnextContext(3);
17996
- i0.ɵɵadvance(1);
17997
- i0.ɵɵproperty("iconName", ctx_r25.icon.Video)("width", 100)("height", 100);
17998
- }
17999
- }
18000
- function RecipeCardComponent_div_0_div_3_ng_miam_like_button_4_Template(rf, ctx) {
18001
- if (rf & 1) {
18002
- i0.ɵɵelement(0, "ng-miam-like-button", 39);
18003
- }
18004
- if (rf & 2) {
18005
- var ctx_r26 = i0.ɵɵnextContext(3);
18006
- i0.ɵɵproperty("recipe", ctx_r26.recipe)("originTrace", ctx_r26.eventTrace());
18007
- }
18008
17965
  }
18009
- function RecipeCardComponent_div_0_div_3_div_6_Template(rf, ctx) {
17966
+ function RecipeCardCtaComponent_div_0_ng_container_6_span_1_Template(rf, ctx) {
18010
17967
  if (rf & 1) {
18011
- i0.ɵɵelementStart(0, "div", 40);
18012
- i0.ɵɵelement(1, "img", 41);
17968
+ i0.ɵɵelementStart(0, "span");
17969
+ i0.ɵɵtext(1, "'D\u00E9couvrir l'id\u00E9e repas");
18013
17970
  i0.ɵɵelementEnd();
18014
17971
  }
18015
- if (rf & 2) {
18016
- var ctx_r27 = i0.ɵɵnextContext(3);
18017
- i0.ɵɵadvance(1);
18018
- i0.ɵɵproperty("src", ctx_r27.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl);
18019
- }
18020
17972
  }
18021
- function RecipeCardComponent_div_0_div_3_div_7_Template(rf, ctx) {
17973
+ function RecipeCardCtaComponent_div_0_ng_container_6_Template(rf, ctx) {
18022
17974
  if (rf & 1) {
18023
- i0.ɵɵelementStart(0, "div", 42);
18024
- i0.ɵɵelement(1, "img", 41);
18025
- i0.ɵɵelementEnd();
17975
+ i0.ɵɵelementContainerStart(0);
17976
+ i0.ɵɵtemplate(1, RecipeCardCtaComponent_div_0_ng_container_6_span_1_Template, 2, 0, "span", 3);
17977
+ i0.ɵɵpipe(2, "async");
17978
+ i0.ɵɵelementContainerEnd();
18026
17979
  }
18027
17980
  if (rf & 2) {
18028
- var ctx_r28 = i0.ɵɵnextContext(3);
17981
+ var ctx_r2 = i0.ɵɵnextContext(2);
18029
17982
  i0.ɵɵadvance(1);
18030
- i0.ɵɵproperty("src", ctx_r28.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
17983
+ i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(2, 1, ctx_r2.groceriesListsService.recipeIsInList(ctx_r2.recipe == null ? null : ctx_r2.recipe.id)));
18031
17984
  }
18032
17985
  }
18033
- function RecipeCardComponent_div_0_div_3_Template(rf, ctx) {
17986
+ function RecipeCardCtaComponent_div_0_ng_template_7_span_0_Template(rf, ctx) {
18034
17987
  if (rf & 1) {
18035
- var _r30_1 = i0.ɵɵgetCurrentView();
18036
- i0.ɵɵelementStart(0, "div", 30);
18037
- i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_3_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r30_1); var ctx_r29 = i0.ɵɵnextContext(2); return ctx_r29.openRecipe(); });
18038
- i0.ɵɵelement(1, "img", 31);
18039
- i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_3_div_2_Template, 2, 3, "div", 32);
18040
- i0.ɵɵelementStart(3, "div", 33);
18041
- i0.ɵɵtemplate(4, RecipeCardComponent_div_0_div_3_ng_miam_like_button_4_Template, 1, 2, "ng-miam-like-button", 34);
18042
- i0.ɵɵpipe(5, "async");
18043
- i0.ɵɵelementEnd();
18044
- i0.ɵɵtemplate(6, RecipeCardComponent_div_0_div_3_div_6_Template, 2, 1, "div", 35);
18045
- i0.ɵɵtemplate(7, RecipeCardComponent_div_0_div_3_div_7_Template, 2, 1, "div", 36);
17988
+ i0.ɵɵelementStart(0, "span");
17989
+ i0.ɵɵtext(1, "Ajouter les ingr\u00E9dients");
18046
17990
  i0.ɵɵelementEnd();
18047
17991
  }
18048
- if (rf & 2) {
18049
- var ctx_r3 = i0.ɵɵnextContext(2);
18050
- i0.ɵɵadvance(1);
18051
- i0.ɵɵproperty("src", ctx_r3.recipe == null ? null : ctx_r3.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
18052
- i0.ɵɵadvance(1);
18053
- i0.ɵɵproperty("ngIf", ctx_r3.contextService.videoRecipesEnabled && (ctx_r3.recipe == null ? null : ctx_r3.recipe.videoId));
18054
- i0.ɵɵadvance(2);
18055
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5, 5, ctx_r3.userService.isLogged$));
18056
- i0.ɵɵadvance(2);
18057
- i0.ɵɵproperty("ngIf", ctx_r3.recipe.sponsorLogoUrl);
18058
- i0.ɵɵadvance(1);
18059
- i0.ɵɵproperty("ngIf", ctx_r3.recipe.filigraneLogoUrl);
18060
- }
18061
17992
  }
18062
- function RecipeCardComponent_div_0_ng_template_4_Template(rf, ctx) {
17993
+ function RecipeCardCtaComponent_div_0_ng_template_7_Template(rf, ctx) {
18063
17994
  if (rf & 1) {
18064
- i0.ɵɵelement(0, "ng-miam-skeleton", 43);
17995
+ i0.ɵɵtemplate(0, RecipeCardCtaComponent_div_0_ng_template_7_span_0_Template, 2, 0, "span", 3);
17996
+ i0.ɵɵpipe(1, "async");
18065
17997
  }
18066
17998
  if (rf & 2) {
18067
- var ctx_r5 = i0.ɵɵnextContext(2);
18068
- i0.ɵɵproperty("type", ctx_r5.skeleton.Picture);
17999
+ var ctx_r4 = i0.ɵɵnextContext(2);
18000
+ i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(1, 1, ctx_r4.groceriesListsService.recipeIsInList(ctx_r4.recipe == null ? null : ctx_r4.recipe.id)));
18069
18001
  }
18070
18002
  }
18071
- function RecipeCardComponent_div_0_div_7_Template(rf, ctx) {
18003
+ function RecipeCardCtaComponent_div_0_ng_miam_icon_9_Template(rf, ctx) {
18072
18004
  if (rf & 1) {
18073
- var _r32_1 = i0.ɵɵgetCurrentView();
18074
- i0.ɵɵelementStart(0, "div");
18075
- i0.ɵɵelementStart(1, "div", 44);
18076
- i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_7_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r32_1); var ctx_r31 = i0.ɵɵnextContext(2); return ctx_r31.openRecipe(); });
18077
- i0.ɵɵtext(2);
18078
- i0.ɵɵelementEnd();
18079
- i0.ɵɵelementEnd();
18005
+ i0.ɵɵelement(0, "ng-miam-icon", 8);
18006
+ i0.ɵɵpipe(1, "async");
18080
18007
  }
18081
18008
  if (rf & 2) {
18082
- var ctx_r6 = i0.ɵɵnextContext(2);
18083
- i0.ɵɵadvance(2);
18084
- i0.ɵɵtextInterpolate1(" ", ctx_r6.recipe == null ? null : ctx_r6.recipe.attributes["title"], " ");
18009
+ var ctx_r5 = i0.ɵɵnextContext(2);
18010
+ i0.ɵɵproperty("width", 24)("height", 24)("iconName", i0.ɵɵpipeBind1(1, 3, ctx_r5.groceriesListsService.recipeIsInList(ctx_r5.recipe == null ? null : ctx_r5.recipe.id)) ? ctx_r5.icon.CheckList : ctx_r5.icon.Cart);
18085
18011
  }
18086
18012
  }
18087
- function RecipeCardComponent_div_0_ng_template_8_Template(rf, ctx) {
18013
+ function RecipeCardCtaComponent_div_0_ng_template_10_Template(rf, ctx) {
18088
18014
  if (rf & 1) {
18089
- i0.ɵɵelement(0, "ng-miam-skeleton", 43);
18090
- }
18091
- if (rf & 2) {
18092
- var ctx_r8 = i0.ɵɵnextContext(2);
18093
- i0.ɵɵproperty("type", ctx_r8.skeleton.Text);
18015
+ i0.ɵɵelement(0, "ng-miam-loader");
18094
18016
  }
18095
18017
  }
18096
- function RecipeCardComponent_div_0_div_11_Template(rf, ctx) {
18018
+ var _c0$r = function (a0, a1) { return { "in-basket": a0, "loading": a1 }; };
18019
+ function RecipeCardCtaComponent_div_0_Template(rf, ctx) {
18097
18020
  if (rf & 1) {
18098
- i0.ɵɵelementStart(0, "div", 45);
18099
- i0.ɵɵelement(1, "ng-miam-icon", 46);
18100
- i0.ɵɵelementStart(2, "span", 47);
18101
- i0.ɵɵtext(3);
18021
+ var _r11_1 = i0.ɵɵgetCurrentView();
18022
+ i0.ɵɵelementStart(0, "div", 1);
18023
+ i0.ɵɵelementStart(1, "button", 2);
18024
+ i0.ɵɵlistener("click", function RecipeCardCtaComponent_div_0_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r11_1); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.clickPrimary(); });
18025
+ i0.ɵɵpipe(2, "async");
18026
+ i0.ɵɵelementStart(3, "span");
18027
+ i0.ɵɵtemplate(4, RecipeCardCtaComponent_div_0_span_4_Template, 2, 0, "span", 3);
18028
+ i0.ɵɵpipe(5, "async");
18029
+ i0.ɵɵtemplate(6, RecipeCardCtaComponent_div_0_ng_container_6_Template, 3, 3, "ng-container", 4);
18030
+ i0.ɵɵtemplate(7, RecipeCardCtaComponent_div_0_ng_template_7_Template, 2, 3, "ng-template", null, 5, i0.ɵɵtemplateRefExtractor);
18031
+ i0.ɵɵelementEnd();
18032
+ i0.ɵɵtemplate(9, RecipeCardCtaComponent_div_0_ng_miam_icon_9_Template, 2, 5, "ng-miam-icon", 6);
18033
+ i0.ɵɵtemplate(10, RecipeCardCtaComponent_div_0_ng_template_10_Template, 1, 0, "ng-template", null, 7, i0.ɵɵtemplateRefExtractor);
18102
18034
  i0.ɵɵelementEnd();
18103
18035
  i0.ɵɵelementEnd();
18104
18036
  }
18105
18037
  if (rf & 2) {
18106
- var ctx_r9 = i0.ɵɵnextContext(2);
18038
+ var _r3 = i0.ɵɵreference(8);
18039
+ var _r6 = i0.ɵɵreference(11);
18040
+ var ctx_r0 = i0.ɵɵnextContext();
18107
18041
  i0.ɵɵadvance(1);
18108
- i0.ɵɵproperty("width", 20)("height", 20)("iconName", ctx_r9.icon.Time);
18042
+ i0.ɵɵproperty("disabled", !ctx_r0.recipe)("ngClass", i0.ɵɵpureFunction2(11, _c0$r, i0.ɵɵpipeBind1(2, 7, ctx_r0.groceriesListsService.recipeIsInList(ctx_r0.recipe == null ? null : ctx_r0.recipe.id)), ctx_r0.loading));
18043
+ i0.ɵɵadvance(3);
18044
+ i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5, 9, ctx_r0.groceriesListsService.recipeIsInList(ctx_r0.recipe == null ? null : ctx_r0.recipe.id)));
18109
18045
  i0.ɵɵadvance(2);
18110
- i0.ɵɵtextInterpolate(ctx_r9.recipe == null ? null : ctx_r9.recipe.totalTime);
18111
- }
18112
- }
18113
- function RecipeCardComponent_div_0_div_12_ng_container_2_Template(rf, ctx) {
18114
- if (rf & 1) {
18115
- i0.ɵɵelementContainerStart(0);
18116
- i0.ɵɵelement(1, "ng-miam-icon", 52);
18117
- i0.ɵɵelementContainerEnd();
18118
- }
18119
- if (rf & 2) {
18120
- var ctx_r33 = i0.ɵɵnextContext(3);
18121
- i0.ɵɵadvance(1);
18122
- i0.ɵɵproperty("width", 60)("height", 20)("iconName", ctx_r33.icon.DifficultyMedium);
18046
+ i0.ɵɵproperty("ngIf", ctx_r0.recipeService.suggestionsPrimaryButtonActions.display && !ctx_r0.recipeService.suggestionsPrimaryButtonActions.addToBasket || ctx_r0.recipeService.recipesPrimaryButtonActions.display && !ctx_r0.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r3);
18047
+ i0.ɵɵadvance(3);
18048
+ i0.ɵɵproperty("ngIf", !ctx_r0.loading)("ngIfElse", _r6);
18123
18049
  }
18124
18050
  }
18125
- function RecipeCardComponent_div_0_div_12_ng_container_3_Template(rf, ctx) {
18126
- if (rf & 1) {
18127
- i0.ɵɵelementContainerStart(0);
18128
- i0.ɵɵelement(1, "ng-miam-icon", 52);
18129
- i0.ɵɵelementContainerEnd();
18051
+ var RecipeCardCtaComponent = /** @class */ (function (_super) {
18052
+ __extends(RecipeCardCtaComponent, _super);
18053
+ function RecipeCardCtaComponent(cdr, recipeService, recipeEventsService, groceriesListsService, userService, pointOfSalesService, contextService, analyticsService, toasterService, supplierService) {
18054
+ var _this = _super.call(this, analyticsService) || this;
18055
+ _this.cdr = cdr;
18056
+ _this.recipeService = recipeService;
18057
+ _this.recipeEventsService = recipeEventsService;
18058
+ _this.groceriesListsService = groceriesListsService;
18059
+ _this.userService = userService;
18060
+ _this.pointOfSalesService = pointOfSalesService;
18061
+ _this.contextService = contextService;
18062
+ _this.analyticsService = analyticsService;
18063
+ _this.toasterService = toasterService;
18064
+ _this.supplierService = supplierService;
18065
+ _this.cardType = 'recipe-card';
18066
+ _this.previewAllowed = true;
18067
+ _this.helpButtonAllowed = true;
18068
+ _this.displayGuests = true;
18069
+ _this.displayed = new i0.EventEmitter();
18070
+ _this.clicked = new i0.EventEmitter();
18071
+ _this.loading = false;
18072
+ _this.icon = exports.Icon;
18073
+ _this.subscriptions = [];
18074
+ return _this;
18130
18075
  }
18131
- if (rf & 2) {
18132
- var ctx_r34 = i0.ɵɵnextContext(3);
18133
- i0.ɵɵadvance(1);
18134
- i0.ɵɵproperty("width", 60)("height", 20)("iconName", ctx_r34.icon.DifficultyHigh);
18076
+ RecipeCardCtaComponent.prototype.ngOnInit = function () {
18077
+ var _this = this;
18078
+ this.subscriptions.push(this.groceriesListsService.list$.subscribe(function () { return _this.cdr.detectChanges(); }));
18079
+ };
18080
+ RecipeCardCtaComponent.prototype.ngOnChanges = function () {
18081
+ var _this = this;
18082
+ var _a;
18083
+ if (!this.recipe && ((_a = this.recipeName) === null || _a === void 0 ? void 0 : _a.length) > 0) {
18084
+ this.searchRecipeByName().subscribe(function (result) {
18085
+ _this.recipe = result;
18086
+ _this.cdr.detectChanges();
18087
+ });
18088
+ }
18089
+ };
18090
+ RecipeCardCtaComponent.prototype.searchRecipeByName = function () {
18091
+ var _this = this;
18092
+ return this.recipeService.all({ remotefilter: { recipe_provider_id: this.contextService.origin, search: this.recipeName } }).pipe(operators.skipWhile(function (result) { return !result || result.is_loading; }), operators.map(function (response) { var _a; return ((_a = response.data[0]) === null || _a === void 0 ? void 0 : _a.attributes.title) === _this.recipeName ? response.data[0] : null; }));
18093
+ };
18094
+ RecipeCardCtaComponent.prototype.currentPath = function () {
18095
+ return '';
18096
+ };
18097
+ /**
18098
+ * Add recipe to list on primary button click and emit true if the recipe is added, false if recipe is not added
18099
+ * so lib users can decide that clicked.emit(false) removes the recipe for example
18100
+ */
18101
+ RecipeCardCtaComponent.prototype.clickPrimary = function () {
18102
+ var _this = this;
18103
+ if (!this.loading) {
18104
+ this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(function (recipeIsInList) {
18105
+ var wasAdded = !recipeIsInList;
18106
+ if (_this.cardType === 'suggestion-card') {
18107
+ if (_this.recipeService.suggestionsPrimaryButtonActions.addToBasket) {
18108
+ // If recipe is added we still want to diplay details
18109
+ _this.addRecipe(_this.recipeService.suggestionsPrimaryButtonActions.display || !wasAdded);
18110
+ }
18111
+ else {
18112
+ if (_this.recipeService.suggestionsPrimaryButtonActions.display) {
18113
+ _this.openRecipe();
18114
+ }
18115
+ }
18116
+ }
18117
+ else {
18118
+ if (_this.recipeService.recipesPrimaryButtonActions.addToBasket) {
18119
+ // If recipe is added we still want to diplay details
18120
+ _this.addRecipe(_this.recipeService.recipesPrimaryButtonActions.display || !wasAdded);
18121
+ }
18122
+ else {
18123
+ if (_this.recipeService.recipesPrimaryButtonActions.display) {
18124
+ _this.openRecipe();
18125
+ }
18126
+ }
18127
+ }
18128
+ _this.clicked.emit(!recipeIsInList); // !recipeIsInList = add action, so we emit true
18129
+ }));
18130
+ }
18131
+ };
18132
+ RecipeCardCtaComponent.prototype.openRecipe = function () {
18133
+ var videoEvent = this.contextService.videoRecipesEnabled && this.recipe.videoId;
18134
+ this.recipeService.displayObject(this.recipe, { previewAllowed: this.previewAllowed, guests: this.recipe.modifiedGuests, displayGuests: this.displayGuests, helpButtonAllowed: this.helpButtonAllowed }, this.eventTrace());
18135
+ this.displayed.emit();
18136
+ };
18137
+ RecipeCardCtaComponent.prototype.addRecipe = function (display) {
18138
+ var _this = this;
18139
+ if (display === void 0) { display = true; }
18140
+ this.toggleButtonLoader(true);
18141
+ this.subscriptions.push(rxjs.forkJoin([
18142
+ this.userService.isLogged$.asObservable().pipe(operators.take(1)),
18143
+ this.pointOfSalesService.isPosValid().pipe(operators.take(1))
18144
+ ])
18145
+ .subscribe(function (res) {
18146
+ var isHookOk = _this.contextService.hookCallback(res[0], res[1]);
18147
+ if (isHookOk) {
18148
+ _this.addRecipeActionOK(display);
18149
+ }
18150
+ else {
18151
+ _this.addRecipeActionKO();
18152
+ }
18153
+ }));
18154
+ };
18155
+ RecipeCardCtaComponent.prototype.addRecipeActionOK = function (display) {
18156
+ var _this = this;
18157
+ this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(function (recipeIsInList) {
18158
+ var recipeWasAdded = !recipeIsInList;
18159
+ if (recipeWasAdded) {
18160
+ _this.recipeEventsService.sendEvent(_this.recipe, _this.recipeEventsService.ACTION_ADDED);
18161
+ }
18162
+ _this.subscriptions.push(_this.groceriesListsService.appendRecipeToList(_this.recipe.id, _this.recipe.modifiedGuests, _this.eventTrace())
18163
+ .pipe(operators.take(1))
18164
+ .subscribe(function (l) {
18165
+ _this.toggleButtonLoader(false);
18166
+ if (recipeWasAdded && _this.recipeService.confirmationToaster) {
18167
+ _this.showRecipeToaster();
18168
+ }
18169
+ }));
18170
+ if (display) {
18171
+ _this.recipeService.displayObject(_this.recipe, { guests: +_this.recipe.modifiedGuests, previewMode: true, wasAdded: recipeWasAdded }, _this.eventTrace());
18172
+ }
18173
+ }));
18174
+ };
18175
+ RecipeCardCtaComponent.prototype.showRecipeToaster = function () {
18176
+ this.toasterService.show(MessageType.Success, true);
18177
+ };
18178
+ RecipeCardCtaComponent.prototype.addRecipeActionKO = function () {
18179
+ sessionStorage.setItem('_miam/cached-recipe', JSON.stringify(this.recipe));
18180
+ this.toggleButtonLoader(false);
18181
+ };
18182
+ RecipeCardCtaComponent.prototype.toggleButtonLoader = function (value) {
18183
+ this.loading = value;
18184
+ this.cdr.detectChanges();
18185
+ };
18186
+ return RecipeCardCtaComponent;
18187
+ }(EventTracerComponent));
18188
+ RecipeCardCtaComponent.ɵfac = function RecipeCardCtaComponent_Factory(t) { return new (t || RecipeCardCtaComponent)(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(ToasterService), i0.ɵɵdirectiveInject(SuppliersService)); };
18189
+ RecipeCardCtaComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardCtaComponent, selectors: [["ng-miam-recipe-card-cta"]], inputs: { recipeName: "recipeName", recipe: "recipe", cardType: "cardType", previewAllowed: "previewAllowed", helpButtonAllowed: "helpButtonAllowed", displayGuests: "displayGuests" }, outputs: { displayed: "displayed", clicked: "clicked" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "miam-recipe-card-cta", 4, "ngIf"], [1, "miam-recipe-card-cta"], [1, "m-button-primary", 3, "disabled", "ngClass", "click"], [4, "ngIf"], [4, "ngIf", "ngIfElse"], ["originalCTA", ""], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], ["primaryColor", "#fff", 3, "width", "height", "iconName"]], template: function RecipeCardCtaComponent_Template(rf, ctx) {
18190
+ if (rf & 1) {
18191
+ i0.ɵɵtemplate(0, RecipeCardCtaComponent_div_0_Template, 12, 14, "div", 0);
18192
+ }
18193
+ if (rf & 2) {
18194
+ i0.ɵɵproperty("ngIf", !((ctx.recipeName == null ? null : ctx.recipeName.length) > 0 && !ctx.recipe));
18195
+ }
18196
+ }, directives: [i2$1.NgIf, i2$1.NgClass, IconComponent, LoaderComponent], pipes: [i2$1.AsyncPipe], styles: [".miam-recipe-card-cta{display:flex;justify-content:center;width:100%}.miam-recipe-card-cta button{padding:12px 16px}.miam-recipe-card-cta button .miam-loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:24px;width:24px}"], encapsulation: 2, changeDetection: 0 });
18197
+ /*@__PURE__*/ (function () {
18198
+ i0.ɵsetClassMetadata(RecipeCardCtaComponent, [{
18199
+ type: i0.Component,
18200
+ args: [{
18201
+ selector: 'ng-miam-recipe-card-cta',
18202
+ templateUrl: './recipe-card-cta.component.html',
18203
+ styleUrls: ['./recipe-card-cta.component.scss'],
18204
+ encapsulation: i0.ViewEncapsulation.None,
18205
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
18206
+ }]
18207
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: RecipesService }, { type: RecipeEventsService }, { type: GroceriesListsService }, { type: UserService }, { type: PointOfSalesService }, { type: ContextService }, { type: AnalyticsService }, { type: ToasterService }, { type: SuppliersService }]; }, { recipeName: [{
18208
+ type: i0.Input
18209
+ }], recipe: [{
18210
+ type: i0.Input
18211
+ }], cardType: [{
18212
+ type: i0.Input
18213
+ }], previewAllowed: [{
18214
+ type: i0.Input
18215
+ }], helpButtonAllowed: [{
18216
+ type: i0.Input
18217
+ }], displayGuests: [{
18218
+ type: i0.Input
18219
+ }], displayed: [{
18220
+ type: i0.Output
18221
+ }], clicked: [{
18222
+ type: i0.Output
18223
+ }] });
18224
+ })();
18225
+
18226
+ var _b;
18227
+ function RecipeCardComponent_div_0_div_3_div_2_Template(rf, ctx) {
18228
+ if (rf & 1) {
18229
+ i0.ɵɵelementStart(0, "div", 32);
18230
+ i0.ɵɵelement(1, "ng-miam-icon", 33);
18231
+ i0.ɵɵelementEnd();
18232
+ }
18233
+ if (rf & 2) {
18234
+ var ctx_r18 = i0.ɵɵnextContext(3);
18235
+ i0.ɵɵadvance(1);
18236
+ i0.ɵɵproperty("iconName", ctx_r18.icon.Video)("width", 100)("height", 100);
18237
+ }
18238
+ }
18239
+ function RecipeCardComponent_div_0_div_3_ng_miam_like_button_4_Template(rf, ctx) {
18240
+ if (rf & 1) {
18241
+ i0.ɵɵelement(0, "ng-miam-like-button", 34);
18242
+ }
18243
+ if (rf & 2) {
18244
+ var ctx_r19 = i0.ɵɵnextContext(3);
18245
+ i0.ɵɵproperty("recipe", ctx_r19.recipe)("originTrace", ctx_r19.eventTrace());
18246
+ }
18247
+ }
18248
+ function RecipeCardComponent_div_0_div_3_div_6_Template(rf, ctx) {
18249
+ if (rf & 1) {
18250
+ i0.ɵɵelementStart(0, "div", 35);
18251
+ i0.ɵɵelement(1, "img", 36);
18252
+ i0.ɵɵelementEnd();
18253
+ }
18254
+ if (rf & 2) {
18255
+ var ctx_r20 = i0.ɵɵnextContext(3);
18256
+ i0.ɵɵadvance(1);
18257
+ i0.ɵɵproperty("src", ctx_r20.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl);
18258
+ }
18259
+ }
18260
+ function RecipeCardComponent_div_0_div_3_div_7_Template(rf, ctx) {
18261
+ if (rf & 1) {
18262
+ i0.ɵɵelementStart(0, "div", 37);
18263
+ i0.ɵɵelement(1, "img", 36);
18264
+ i0.ɵɵelementEnd();
18265
+ }
18266
+ if (rf & 2) {
18267
+ var ctx_r21 = i0.ɵɵnextContext(3);
18268
+ i0.ɵɵadvance(1);
18269
+ i0.ɵɵproperty("src", ctx_r21.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
18270
+ }
18271
+ }
18272
+ function RecipeCardComponent_div_0_div_3_Template(rf, ctx) {
18273
+ if (rf & 1) {
18274
+ var _r23_1 = i0.ɵɵgetCurrentView();
18275
+ i0.ɵɵelementStart(0, "div", 25);
18276
+ i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_3_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r23_1); var ctx_r22 = i0.ɵɵnextContext(2); return ctx_r22.openRecipe(); });
18277
+ i0.ɵɵelement(1, "img", 26);
18278
+ i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_3_div_2_Template, 2, 3, "div", 27);
18279
+ i0.ɵɵelementStart(3, "div", 28);
18280
+ i0.ɵɵtemplate(4, RecipeCardComponent_div_0_div_3_ng_miam_like_button_4_Template, 1, 2, "ng-miam-like-button", 29);
18281
+ i0.ɵɵpipe(5, "async");
18282
+ i0.ɵɵelementEnd();
18283
+ i0.ɵɵtemplate(6, RecipeCardComponent_div_0_div_3_div_6_Template, 2, 1, "div", 30);
18284
+ i0.ɵɵtemplate(7, RecipeCardComponent_div_0_div_3_div_7_Template, 2, 1, "div", 31);
18285
+ i0.ɵɵelementEnd();
18286
+ }
18287
+ if (rf & 2) {
18288
+ var ctx_r3 = i0.ɵɵnextContext(2);
18289
+ i0.ɵɵadvance(1);
18290
+ i0.ɵɵproperty("src", ctx_r3.recipe == null ? null : ctx_r3.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
18291
+ i0.ɵɵadvance(1);
18292
+ i0.ɵɵproperty("ngIf", ctx_r3.contextService.videoRecipesEnabled && (ctx_r3.recipe == null ? null : ctx_r3.recipe.videoId));
18293
+ i0.ɵɵadvance(2);
18294
+ i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5, 5, ctx_r3.userService.isLogged$));
18295
+ i0.ɵɵadvance(2);
18296
+ i0.ɵɵproperty("ngIf", ctx_r3.recipe.sponsorLogoUrl);
18297
+ i0.ɵɵadvance(1);
18298
+ i0.ɵɵproperty("ngIf", ctx_r3.recipe.filigraneLogoUrl);
18299
+ }
18300
+ }
18301
+ function RecipeCardComponent_div_0_ng_template_4_Template(rf, ctx) {
18302
+ if (rf & 1) {
18303
+ i0.ɵɵelement(0, "ng-miam-skeleton", 38);
18304
+ }
18305
+ if (rf & 2) {
18306
+ var ctx_r5 = i0.ɵɵnextContext(2);
18307
+ i0.ɵɵproperty("type", ctx_r5.skeleton.Picture);
18308
+ }
18309
+ }
18310
+ function RecipeCardComponent_div_0_div_7_Template(rf, ctx) {
18311
+ if (rf & 1) {
18312
+ var _r25_1 = i0.ɵɵgetCurrentView();
18313
+ i0.ɵɵelementStart(0, "div");
18314
+ i0.ɵɵelementStart(1, "div", 39);
18315
+ i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_7_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r25_1); var ctx_r24 = i0.ɵɵnextContext(2); return ctx_r24.openRecipe(); });
18316
+ i0.ɵɵtext(2);
18317
+ i0.ɵɵelementEnd();
18318
+ i0.ɵɵelementEnd();
18319
+ }
18320
+ if (rf & 2) {
18321
+ var ctx_r6 = i0.ɵɵnextContext(2);
18322
+ i0.ɵɵadvance(2);
18323
+ i0.ɵɵtextInterpolate1(" ", ctx_r6.recipe == null ? null : ctx_r6.recipe.attributes["title"], " ");
18324
+ }
18325
+ }
18326
+ function RecipeCardComponent_div_0_ng_template_8_Template(rf, ctx) {
18327
+ if (rf & 1) {
18328
+ i0.ɵɵelement(0, "ng-miam-skeleton", 38);
18329
+ }
18330
+ if (rf & 2) {
18331
+ var ctx_r8 = i0.ɵɵnextContext(2);
18332
+ i0.ɵɵproperty("type", ctx_r8.skeleton.Text);
18333
+ }
18334
+ }
18335
+ function RecipeCardComponent_div_0_div_11_Template(rf, ctx) {
18336
+ if (rf & 1) {
18337
+ i0.ɵɵelementStart(0, "div", 40);
18338
+ i0.ɵɵelement(1, "ng-miam-icon", 41);
18339
+ i0.ɵɵelementStart(2, "span", 42);
18340
+ i0.ɵɵtext(3);
18341
+ i0.ɵɵelementEnd();
18342
+ i0.ɵɵelementEnd();
18343
+ }
18344
+ if (rf & 2) {
18345
+ var ctx_r9 = i0.ɵɵnextContext(2);
18346
+ i0.ɵɵadvance(1);
18347
+ i0.ɵɵproperty("width", 20)("height", 20)("iconName", ctx_r9.icon.Time);
18348
+ i0.ɵɵadvance(2);
18349
+ i0.ɵɵtextInterpolate(ctx_r9.recipe == null ? null : ctx_r9.recipe.totalTime);
18350
+ }
18351
+ }
18352
+ function RecipeCardComponent_div_0_div_12_ng_container_2_Template(rf, ctx) {
18353
+ if (rf & 1) {
18354
+ i0.ɵɵelementContainerStart(0);
18355
+ i0.ɵɵelement(1, "ng-miam-icon", 47);
18356
+ i0.ɵɵelementContainerEnd();
18357
+ }
18358
+ if (rf & 2) {
18359
+ var ctx_r26 = i0.ɵɵnextContext(3);
18360
+ i0.ɵɵadvance(1);
18361
+ i0.ɵɵproperty("width", 60)("height", 20)("iconName", ctx_r26.icon.DifficultyMedium);
18362
+ }
18363
+ }
18364
+ function RecipeCardComponent_div_0_div_12_ng_container_3_Template(rf, ctx) {
18365
+ if (rf & 1) {
18366
+ i0.ɵɵelementContainerStart(0);
18367
+ i0.ɵɵelement(1, "ng-miam-icon", 47);
18368
+ i0.ɵɵelementContainerEnd();
18369
+ }
18370
+ if (rf & 2) {
18371
+ var ctx_r27 = i0.ɵɵnextContext(3);
18372
+ i0.ɵɵadvance(1);
18373
+ i0.ɵɵproperty("width", 60)("height", 20)("iconName", ctx_r27.icon.DifficultyHigh);
18135
18374
  }
18136
18375
  }
18137
18376
  function RecipeCardComponent_div_0_div_12_ng_container_4_Template(rf, ctx) {
18138
18377
  if (rf & 1) {
18139
18378
  i0.ɵɵelementContainerStart(0);
18140
- i0.ɵɵelement(1, "ng-miam-icon", 52);
18379
+ i0.ɵɵelement(1, "ng-miam-icon", 47);
18141
18380
  i0.ɵɵelementContainerEnd();
18142
18381
  }
18143
18382
  if (rf & 2) {
18144
- var ctx_r35 = i0.ɵɵnextContext(3);
18383
+ var ctx_r28 = i0.ɵɵnextContext(3);
18145
18384
  i0.ɵɵadvance(1);
18146
- i0.ɵɵproperty("width", 60)("height", 20)("iconName", ctx_r35.icon.DifficultyLow);
18385
+ i0.ɵɵproperty("width", 60)("height", 20)("iconName", ctx_r28.icon.DifficultyLow);
18147
18386
  }
18148
18387
  }
18149
18388
  function RecipeCardComponent_div_0_div_12_ng_container_6_span_1_Template(rf, ctx) {
18150
18389
  if (rf & 1) {
18151
- i0.ɵɵelementStart(0, "span", 55);
18390
+ i0.ɵɵelementStart(0, "span", 50);
18152
18391
  i0.ɵɵtext(1);
18153
18392
  i0.ɵɵelementEnd();
18154
18393
  }
18155
18394
  if (rf & 2) {
18156
- var ctx_r40 = i0.ɵɵnextContext(4);
18395
+ var ctx_r33 = i0.ɵɵnextContext(4);
18157
18396
  i0.ɵɵadvance(1);
18158
- i0.ɵɵtextInterpolate1(" ", ctx_r40.recipeService.difficultyLevels[0].label, " ");
18397
+ i0.ɵɵtextInterpolate1(" ", ctx_r33.recipeService.difficultyLevels[0].label, " ");
18159
18398
  }
18160
18399
  }
18161
18400
  function RecipeCardComponent_div_0_div_12_ng_container_6_ng_template_2_Template(rf, ctx) {
18162
18401
  if (rf & 1) {
18163
- i0.ɵɵelementStart(0, "span", 55);
18164
- i0.ɵɵi18n(1, 56);
18402
+ i0.ɵɵelementStart(0, "span", 50);
18403
+ i0.ɵɵi18n(1, 51);
18165
18404
  i0.ɵɵelementEnd();
18166
18405
  }
18167
18406
  }
18168
18407
  function RecipeCardComponent_div_0_div_12_ng_container_6_Template(rf, ctx) {
18169
18408
  if (rf & 1) {
18170
18409
  i0.ɵɵelementContainerStart(0);
18171
- i0.ɵɵtemplate(1, RecipeCardComponent_div_0_div_12_ng_container_6_span_1_Template, 2, 1, "span", 53);
18172
- i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_6_ng_template_2_Template, 2, 0, "ng-template", null, 54, i0.ɵɵtemplateRefExtractor);
18410
+ i0.ɵɵtemplate(1, RecipeCardComponent_div_0_div_12_ng_container_6_span_1_Template, 2, 1, "span", 48);
18411
+ i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_6_ng_template_2_Template, 2, 0, "ng-template", null, 49, i0.ɵɵtemplateRefExtractor);
18173
18412
  i0.ɵɵelementContainerEnd();
18174
18413
  }
18175
18414
  if (rf & 2) {
18176
- var _r41 = i0.ɵɵreference(3);
18177
- var ctx_r36 = i0.ɵɵnextContext(3);
18415
+ var _r34 = i0.ɵɵreference(3);
18416
+ var ctx_r29 = i0.ɵɵnextContext(3);
18178
18417
  i0.ɵɵadvance(1);
18179
- i0.ɵɵproperty("ngIf", (ctx_r36.recipeService.difficultyLevels[0] == null ? null : ctx_r36.recipeService.difficultyLevels[0].label) !== "Chef d\u00E9butant")("ngIfElse", _r41);
18418
+ i0.ɵɵproperty("ngIf", (ctx_r29.recipeService.difficultyLevels[0] == null ? null : ctx_r29.recipeService.difficultyLevels[0].label) !== "Chef d\u00E9butant")("ngIfElse", _r34);
18180
18419
  }
18181
18420
  }
18182
18421
  function RecipeCardComponent_div_0_div_12_ng_container_7_span_1_Template(rf, ctx) {
18183
18422
  if (rf & 1) {
18184
- i0.ɵɵelementStart(0, "span", 59);
18423
+ i0.ɵɵelementStart(0, "span", 54);
18185
18424
  i0.ɵɵtext(1);
18186
18425
  i0.ɵɵelementEnd();
18187
18426
  }
18188
18427
  if (rf & 2) {
18189
- var ctx_r43 = i0.ɵɵnextContext(4);
18428
+ var ctx_r36 = i0.ɵɵnextContext(4);
18190
18429
  i0.ɵɵadvance(1);
18191
- i0.ɵɵtextInterpolate1(" ", ctx_r43.recipeService.difficultyLevels[1].label, " ");
18430
+ i0.ɵɵtextInterpolate1(" ", ctx_r36.recipeService.difficultyLevels[1].label, " ");
18192
18431
  }
18193
18432
  }
18194
18433
  function RecipeCardComponent_div_0_div_12_ng_container_7_ng_template_2_Template(rf, ctx) {
18195
18434
  if (rf & 1) {
18196
- i0.ɵɵelementStart(0, "span", 59);
18197
- i0.ɵɵi18n(1, 60);
18435
+ i0.ɵɵelementStart(0, "span", 54);
18436
+ i0.ɵɵi18n(1, 55);
18198
18437
  i0.ɵɵelementEnd();
18199
18438
  }
18200
18439
  }
18201
18440
  function RecipeCardComponent_div_0_div_12_ng_container_7_Template(rf, ctx) {
18202
18441
  if (rf & 1) {
18203
18442
  i0.ɵɵelementContainerStart(0);
18204
- i0.ɵɵtemplate(1, RecipeCardComponent_div_0_div_12_ng_container_7_span_1_Template, 2, 1, "span", 57);
18205
- i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_7_ng_template_2_Template, 2, 0, "ng-template", null, 58, i0.ɵɵtemplateRefExtractor);
18443
+ i0.ɵɵtemplate(1, RecipeCardComponent_div_0_div_12_ng_container_7_span_1_Template, 2, 1, "span", 52);
18444
+ i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_7_ng_template_2_Template, 2, 0, "ng-template", null, 53, i0.ɵɵtemplateRefExtractor);
18206
18445
  i0.ɵɵelementContainerEnd();
18207
18446
  }
18208
18447
  if (rf & 2) {
18209
- var _r44 = i0.ɵɵreference(3);
18210
- var ctx_r37 = i0.ɵɵnextContext(3);
18448
+ var _r37 = i0.ɵɵreference(3);
18449
+ var ctx_r30 = i0.ɵɵnextContext(3);
18211
18450
  i0.ɵɵadvance(1);
18212
- i0.ɵɵproperty("ngIf", (ctx_r37.recipeService.difficultyLevels[1] == null ? null : ctx_r37.recipeService.difficultyLevels[1].label) !== "Chef interm\u00E9diaire")("ngIfElse", _r44);
18451
+ i0.ɵɵproperty("ngIf", (ctx_r30.recipeService.difficultyLevels[1] == null ? null : ctx_r30.recipeService.difficultyLevels[1].label) !== "Chef interm\u00E9diaire")("ngIfElse", _r37);
18213
18452
  }
18214
18453
  }
18215
18454
  function RecipeCardComponent_div_0_div_12_ng_container_8_span_1_Template(rf, ctx) {
18216
18455
  if (rf & 1) {
18217
- i0.ɵɵelementStart(0, "span", 63);
18456
+ i0.ɵɵelementStart(0, "span", 58);
18218
18457
  i0.ɵɵtext(1);
18219
18458
  i0.ɵɵelementEnd();
18220
18459
  }
18221
18460
  if (rf & 2) {
18222
- var ctx_r46 = i0.ɵɵnextContext(4);
18461
+ var ctx_r39 = i0.ɵɵnextContext(4);
18223
18462
  i0.ɵɵadvance(1);
18224
- i0.ɵɵtextInterpolate1(" ", ctx_r46.recipeService.difficultyLevels[2].label, " ");
18463
+ i0.ɵɵtextInterpolate1(" ", ctx_r39.recipeService.difficultyLevels[2].label, " ");
18225
18464
  }
18226
18465
  }
18227
18466
  function RecipeCardComponent_div_0_div_12_ng_container_8_ng_template_2_Template(rf, ctx) {
18228
18467
  if (rf & 1) {
18229
- i0.ɵɵelementStart(0, "span", 63);
18230
- i0.ɵɵi18n(1, 64);
18468
+ i0.ɵɵelementStart(0, "span", 58);
18469
+ i0.ɵɵi18n(1, 59);
18231
18470
  i0.ɵɵelementEnd();
18232
18471
  }
18233
18472
  }
18234
18473
  function RecipeCardComponent_div_0_div_12_ng_container_8_Template(rf, ctx) {
18235
18474
  if (rf & 1) {
18236
18475
  i0.ɵɵelementContainerStart(0);
18237
- i0.ɵɵtemplate(1, RecipeCardComponent_div_0_div_12_ng_container_8_span_1_Template, 2, 1, "span", 61);
18238
- i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_8_ng_template_2_Template, 2, 0, "ng-template", null, 62, i0.ɵɵtemplateRefExtractor);
18476
+ i0.ɵɵtemplate(1, RecipeCardComponent_div_0_div_12_ng_container_8_span_1_Template, 2, 1, "span", 56);
18477
+ i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_8_ng_template_2_Template, 2, 0, "ng-template", null, 57, i0.ɵɵtemplateRefExtractor);
18239
18478
  i0.ɵɵelementContainerEnd();
18240
18479
  }
18241
18480
  if (rf & 2) {
18242
- var _r47 = i0.ɵɵreference(3);
18243
- var ctx_r38 = i0.ɵɵnextContext(3);
18481
+ var _r40 = i0.ɵɵreference(3);
18482
+ var ctx_r31 = i0.ɵɵnextContext(3);
18244
18483
  i0.ɵɵadvance(1);
18245
- i0.ɵɵproperty("ngIf", (ctx_r38.recipeService.difficultyLevels[2] == null ? null : ctx_r38.recipeService.difficultyLevels[2].label) !== "Top chef")("ngIfElse", _r47);
18484
+ i0.ɵɵproperty("ngIf", (ctx_r31.recipeService.difficultyLevels[2] == null ? null : ctx_r31.recipeService.difficultyLevels[2].label) !== "Top chef")("ngIfElse", _r40);
18246
18485
  }
18247
18486
  }
18248
18487
  function RecipeCardComponent_div_0_div_12_ng_container_9_span_1_Template(rf, ctx) {
18249
18488
  if (rf & 1) {
18250
- i0.ɵɵelementStart(0, "span", 55);
18489
+ i0.ɵɵelementStart(0, "span", 50);
18251
18490
  i0.ɵɵtext(1);
18252
18491
  i0.ɵɵelementEnd();
18253
18492
  }
18254
18493
  if (rf & 2) {
18255
- var ctx_r49 = i0.ɵɵnextContext(4);
18494
+ var ctx_r42 = i0.ɵɵnextContext(4);
18256
18495
  i0.ɵɵadvance(1);
18257
- i0.ɵɵtextInterpolate1(" ", ctx_r49.recipeService.difficultyLevels[0].label, " ");
18496
+ i0.ɵɵtextInterpolate1(" ", ctx_r42.recipeService.difficultyLevels[0].label, " ");
18258
18497
  }
18259
18498
  }
18260
18499
  function RecipeCardComponent_div_0_div_12_ng_container_9_ng_template_2_Template(rf, ctx) {
18261
18500
  if (rf & 1) {
18262
- i0.ɵɵelementStart(0, "span", 55);
18263
- i0.ɵɵi18n(1, 66);
18501
+ i0.ɵɵelementStart(0, "span", 50);
18502
+ i0.ɵɵi18n(1, 61);
18264
18503
  i0.ɵɵelementEnd();
18265
18504
  }
18266
18505
  }
18267
18506
  function RecipeCardComponent_div_0_div_12_ng_container_9_Template(rf, ctx) {
18268
18507
  if (rf & 1) {
18269
18508
  i0.ɵɵelementContainerStart(0);
18270
- i0.ɵɵtemplate(1, RecipeCardComponent_div_0_div_12_ng_container_9_span_1_Template, 2, 1, "span", 53);
18271
- i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_9_ng_template_2_Template, 2, 0, "ng-template", null, 65, i0.ɵɵtemplateRefExtractor);
18509
+ i0.ɵɵtemplate(1, RecipeCardComponent_div_0_div_12_ng_container_9_span_1_Template, 2, 1, "span", 48);
18510
+ i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_9_ng_template_2_Template, 2, 0, "ng-template", null, 60, i0.ɵɵtemplateRefExtractor);
18272
18511
  i0.ɵɵelementContainerEnd();
18273
18512
  }
18274
18513
  if (rf & 2) {
18275
- var _r50 = i0.ɵɵreference(3);
18276
- var ctx_r39 = i0.ɵɵnextContext(3);
18514
+ var _r43 = i0.ɵɵreference(3);
18515
+ var ctx_r32 = i0.ɵɵnextContext(3);
18277
18516
  i0.ɵɵadvance(1);
18278
- i0.ɵɵproperty("ngIf", (ctx_r39.recipeService.difficultyLevels[0] == null ? null : ctx_r39.recipeService.difficultyLevels[0].label) !== "Chef d\u00E9butant")("ngIfElse", _r50);
18517
+ i0.ɵɵproperty("ngIf", (ctx_r32.recipeService.difficultyLevels[0] == null ? null : ctx_r32.recipeService.difficultyLevels[0].label) !== "Chef d\u00E9butant")("ngIfElse", _r43);
18279
18518
  }
18280
18519
  }
18281
18520
  var _c8$3 = function (a0, a1, a2) { return { "easy": a0, "medium": a1, "hard": a2 }; };
18282
18521
  function RecipeCardComponent_div_0_div_12_Template(rf, ctx) {
18283
18522
  if (rf & 1) {
18284
- i0.ɵɵelementStart(0, "div", 48);
18285
- i0.ɵɵelementContainerStart(1, 49);
18286
- i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_2_Template, 2, 3, "ng-container", 50);
18287
- i0.ɵɵtemplate(3, RecipeCardComponent_div_0_div_12_ng_container_3_Template, 2, 3, "ng-container", 50);
18288
- i0.ɵɵtemplate(4, RecipeCardComponent_div_0_div_12_ng_container_4_Template, 2, 3, "ng-container", 51);
18523
+ i0.ɵɵelementStart(0, "div", 43);
18524
+ i0.ɵɵelementContainerStart(1, 44);
18525
+ i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_2_Template, 2, 3, "ng-container", 45);
18526
+ i0.ɵɵtemplate(3, RecipeCardComponent_div_0_div_12_ng_container_3_Template, 2, 3, "ng-container", 45);
18527
+ i0.ɵɵtemplate(4, RecipeCardComponent_div_0_div_12_ng_container_4_Template, 2, 3, "ng-container", 46);
18289
18528
  i0.ɵɵelementContainerEnd();
18290
- i0.ɵɵelementContainerStart(5, 49);
18291
- i0.ɵɵtemplate(6, RecipeCardComponent_div_0_div_12_ng_container_6_Template, 4, 2, "ng-container", 50);
18292
- i0.ɵɵtemplate(7, RecipeCardComponent_div_0_div_12_ng_container_7_Template, 4, 2, "ng-container", 50);
18293
- i0.ɵɵtemplate(8, RecipeCardComponent_div_0_div_12_ng_container_8_Template, 4, 2, "ng-container", 50);
18294
- i0.ɵɵtemplate(9, RecipeCardComponent_div_0_div_12_ng_container_9_Template, 4, 2, "ng-container", 51);
18529
+ i0.ɵɵelementContainerStart(5, 44);
18530
+ i0.ɵɵtemplate(6, RecipeCardComponent_div_0_div_12_ng_container_6_Template, 4, 2, "ng-container", 45);
18531
+ i0.ɵɵtemplate(7, RecipeCardComponent_div_0_div_12_ng_container_7_Template, 4, 2, "ng-container", 45);
18532
+ i0.ɵɵtemplate(8, RecipeCardComponent_div_0_div_12_ng_container_8_Template, 4, 2, "ng-container", 45);
18533
+ i0.ɵɵtemplate(9, RecipeCardComponent_div_0_div_12_ng_container_9_Template, 4, 2, "ng-container", 46);
18295
18534
  i0.ɵɵelementContainerEnd();
18296
18535
  i0.ɵɵelementEnd();
18297
18536
  }
@@ -18316,7 +18555,7 @@
18316
18555
  }
18317
18556
  function RecipeCardComponent_div_0_ng_template_13_Template(rf, ctx) {
18318
18557
  if (rf & 1) {
18319
- i0.ɵɵelement(0, "ng-miam-skeleton", 43);
18558
+ i0.ɵɵelement(0, "ng-miam-skeleton", 38);
18320
18559
  }
18321
18560
  if (rf & 2) {
18322
18561
  var ctx_r12 = i0.ɵɵnextContext(2);
@@ -18325,26 +18564,26 @@
18325
18564
  }
18326
18565
  function RecipeCardComponent_div_0_div_20_div_5_Template(rf, ctx) {
18327
18566
  if (rf & 1) {
18328
- i0.ɵɵelementStart(0, "div", 70);
18567
+ i0.ɵɵelementStart(0, "div", 65);
18329
18568
  i0.ɵɵtext(1);
18330
18569
  i0.ɵɵelementEnd();
18331
18570
  }
18332
18571
  if (rf & 2) {
18333
- var ctx_r52 = i0.ɵɵnextContext(3);
18572
+ var ctx_r45 = i0.ɵɵnextContext(3);
18334
18573
  i0.ɵɵadvance(1);
18335
- i0.ɵɵtextInterpolate1(" + ", ctx_r52.recipe.modifiedIngredients.length - 2, " ");
18574
+ i0.ɵɵtextInterpolate1(" + ", ctx_r45.recipe.modifiedIngredients.length - 2, " ");
18336
18575
  }
18337
18576
  }
18338
18577
  function RecipeCardComponent_div_0_div_20_Template(rf, ctx) {
18339
18578
  if (rf & 1) {
18340
- i0.ɵɵelementStart(0, "div", 67);
18341
- i0.ɵɵelementStart(1, "div", 68);
18342
- i0.ɵɵelement(2, "img", 41);
18579
+ i0.ɵɵelementStart(0, "div", 62);
18580
+ i0.ɵɵelementStart(1, "div", 63);
18581
+ i0.ɵɵelement(2, "img", 36);
18343
18582
  i0.ɵɵelementEnd();
18344
- i0.ɵɵelementStart(3, "div", 68);
18345
- i0.ɵɵelement(4, "img", 41);
18583
+ i0.ɵɵelementStart(3, "div", 63);
18584
+ i0.ɵɵelement(4, "img", 36);
18346
18585
  i0.ɵɵelementEnd();
18347
- i0.ɵɵtemplate(5, RecipeCardComponent_div_0_div_20_div_5_Template, 2, 1, "div", 69);
18586
+ i0.ɵɵtemplate(5, RecipeCardComponent_div_0_div_20_div_5_Template, 2, 1, "div", 64);
18348
18587
  i0.ɵɵelementEnd();
18349
18588
  }
18350
18589
  if (rf & 2) {
@@ -18357,105 +18596,45 @@
18357
18596
  i0.ɵɵproperty("ngIf", ctx_r13.recipe.modifiedIngredients.length > 2);
18358
18597
  }
18359
18598
  }
18360
- function RecipeCardComponent_div_0_div_21_Template(rf, ctx) {
18361
- if (rf & 1) {
18362
- var _r54_1 = i0.ɵɵgetCurrentView();
18363
- i0.ɵɵelementStart(0, "div", 71);
18364
- i0.ɵɵelementStart(1, "ng-miam-counter-input", 72);
18365
- i0.ɵɵlistener("counterChange", function RecipeCardComponent_div_0_div_21_Template_ng_miam_counter_input_counterChange_1_listener($event) { i0.ɵɵrestoreView(_r54_1); var ctx_r53 = i0.ɵɵnextContext(2); return ctx_r53.updateGuests($event); });
18366
- i0.ɵɵelementEnd();
18367
- i0.ɵɵelementEnd();
18368
- }
18369
- if (rf & 2) {
18370
- var ctx_r14 = i0.ɵɵnextContext(2);
18371
- i0.ɵɵadvance(1);
18372
- i0.ɵɵproperty("counter", ctx_r14.recipe.modifiedGuests);
18373
- }
18374
- }
18375
- function RecipeCardComponent_div_0_ng_template_22_Template(rf, ctx) {
18376
- if (rf & 1) {
18377
- i0.ɵɵelement(0, "ng-miam-skeleton", 43);
18378
- }
18379
- if (rf & 2) {
18380
- var ctx_r16 = i0.ɵɵnextContext(2);
18381
- i0.ɵɵproperty("type", ctx_r16.skeleton == null ? null : ctx_r16.skeleton.IconWithInfo);
18382
- }
18383
- }
18384
- function RecipeCardComponent_div_0_div_25_Template(rf, ctx) {
18385
- if (rf & 1) {
18386
- i0.ɵɵelementStart(0, "div", 73);
18387
- i0.ɵɵelement(1, "ng-miam-recipe-pricing", 74);
18388
- i0.ɵɵelementEnd();
18389
- }
18390
- if (rf & 2) {
18391
- var ctx_r17 = i0.ɵɵnextContext(2);
18392
- i0.ɵɵadvance(1);
18393
- i0.ɵɵproperty("recipe", ctx_r17.recipe)("serves", ctx_r17.recipe == null ? null : ctx_r17.recipe.modifiedGuests);
18394
- }
18395
- }
18396
- function RecipeCardComponent_div_0_span_30_Template(rf, ctx) {
18397
- if (rf & 1) {
18398
- i0.ɵɵelementStart(0, "span");
18399
- i0.ɵɵi18n(1, 75);
18400
- i0.ɵɵelementEnd();
18401
- }
18402
- }
18403
- function RecipeCardComponent_div_0_ng_container_32_span_1_Template(rf, ctx) {
18404
- if (rf & 1) {
18405
- i0.ɵɵelementStart(0, "span");
18406
- i0.ɵɵi18n(1, 76);
18407
- i0.ɵɵelementEnd();
18408
- }
18409
- }
18410
- function RecipeCardComponent_div_0_ng_container_32_Template(rf, ctx) {
18411
- if (rf & 1) {
18412
- i0.ɵɵelementContainerStart(0);
18413
- i0.ɵɵtemplate(1, RecipeCardComponent_div_0_ng_container_32_span_1_Template, 2, 0, "span", 26);
18414
- i0.ɵɵpipe(2, "async");
18415
- i0.ɵɵelementContainerEnd();
18416
- }
18417
- if (rf & 2) {
18418
- var ctx_r19 = i0.ɵɵnextContext(2);
18419
- i0.ɵɵadvance(1);
18420
- i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(2, 1, ctx_r19.groceriesListsService.recipeIsInList(ctx_r19.recipe == null ? null : ctx_r19.recipe.id)));
18421
- }
18422
- }
18423
- function RecipeCardComponent_div_0_ng_template_33_span_0_Template(rf, ctx) {
18424
- if (rf & 1) {
18425
- i0.ɵɵelementStart(0, "span");
18426
- i0.ɵɵi18n(1, 77);
18427
- i0.ɵɵelementEnd();
18428
- }
18429
- }
18430
- function RecipeCardComponent_div_0_ng_template_33_Template(rf, ctx) {
18599
+ function RecipeCardComponent_div_0_div_21_Template(rf, ctx) {
18431
18600
  if (rf & 1) {
18432
- i0.ɵɵtemplate(0, RecipeCardComponent_div_0_ng_template_33_span_0_Template, 2, 0, "span", 26);
18433
- i0.ɵɵpipe(1, "async");
18601
+ var _r47_1 = i0.ɵɵgetCurrentView();
18602
+ i0.ɵɵelementStart(0, "div", 66);
18603
+ i0.ɵɵelementStart(1, "ng-miam-counter-input", 67);
18604
+ i0.ɵɵlistener("counterChange", function RecipeCardComponent_div_0_div_21_Template_ng_miam_counter_input_counterChange_1_listener($event) { i0.ɵɵrestoreView(_r47_1); var ctx_r46 = i0.ɵɵnextContext(2); return ctx_r46.updateGuests($event); });
18605
+ i0.ɵɵelementEnd();
18606
+ i0.ɵɵelementEnd();
18434
18607
  }
18435
18608
  if (rf & 2) {
18436
- var ctx_r21 = i0.ɵɵnextContext(2);
18437
- i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(1, 1, ctx_r21.groceriesListsService.recipeIsInList(ctx_r21.recipe == null ? null : ctx_r21.recipe.id)));
18609
+ var ctx_r14 = i0.ɵɵnextContext(2);
18610
+ i0.ɵɵadvance(1);
18611
+ i0.ɵɵproperty("counter", ctx_r14.recipe.modifiedGuests);
18438
18612
  }
18439
18613
  }
18440
- function RecipeCardComponent_div_0_ng_miam_icon_35_Template(rf, ctx) {
18614
+ function RecipeCardComponent_div_0_ng_template_22_Template(rf, ctx) {
18441
18615
  if (rf & 1) {
18442
- i0.ɵɵelement(0, "ng-miam-icon", 78);
18443
- i0.ɵɵpipe(1, "async");
18616
+ i0.ɵɵelement(0, "ng-miam-skeleton", 38);
18444
18617
  }
18445
18618
  if (rf & 2) {
18446
- var ctx_r22 = i0.ɵɵnextContext(2);
18447
- i0.ɵɵproperty("width", 24)("height", 24)("iconName", i0.ɵɵpipeBind1(1, 3, ctx_r22.groceriesListsService.recipeIsInList(ctx_r22.recipe == null ? null : ctx_r22.recipe.id)) ? ctx_r22.icon.CheckList : ctx_r22.icon.Cart);
18619
+ var ctx_r16 = i0.ɵɵnextContext(2);
18620
+ i0.ɵɵproperty("type", ctx_r16.skeleton == null ? null : ctx_r16.skeleton.IconWithInfo);
18448
18621
  }
18449
18622
  }
18450
- function RecipeCardComponent_div_0_ng_template_36_Template(rf, ctx) {
18623
+ function RecipeCardComponent_div_0_div_25_Template(rf, ctx) {
18451
18624
  if (rf & 1) {
18452
- i0.ɵɵelement(0, "ng-miam-loader");
18625
+ i0.ɵɵelementStart(0, "div", 68);
18626
+ i0.ɵɵelement(1, "ng-miam-recipe-pricing", 69);
18627
+ i0.ɵɵelementEnd();
18628
+ }
18629
+ if (rf & 2) {
18630
+ var ctx_r17 = i0.ɵɵnextContext(2);
18631
+ i0.ɵɵadvance(1);
18632
+ i0.ɵɵproperty("recipe", ctx_r17.recipe)("serves", ctx_r17.recipe == null ? null : ctx_r17.recipe.modifiedGuests);
18453
18633
  }
18454
18634
  }
18455
- var _c15 = function (a0, a1) { return { "in-basket": a0, "loading": a1 }; };
18456
18635
  function RecipeCardComponent_div_0_Template(rf, ctx) {
18457
18636
  if (rf & 1) {
18458
- var _r58_1 = i0.ɵɵgetCurrentView();
18637
+ var _r49_1 = i0.ɵɵgetCurrentView();
18459
18638
  i0.ɵɵelementStart(0, "div", 2);
18460
18639
  i0.ɵɵelementStart(1, "div", 3);
18461
18640
  i0.ɵɵelement(2, "img", 4);
@@ -18474,7 +18653,7 @@
18474
18653
  i0.ɵɵelementStart(16, "div", 15);
18475
18654
  i0.ɵɵelementStart(17, "div", 16);
18476
18655
  i0.ɵɵelementStart(18, "div", 17);
18477
- i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_div_click_18_listener() { i0.ɵɵrestoreView(_r58_1); var ctx_r57 = i0.ɵɵnextContext(); return ctx_r57.toggleHelper(); });
18656
+ i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_div_click_18_listener() { i0.ɵɵrestoreView(_r49_1); var ctx_r48 = i0.ɵɵnextContext(); return ctx_r48.toggleHelper(); });
18478
18657
  i0.ɵɵelement(19, "ng-miam-icon", 18);
18479
18658
  i0.ɵɵelementEnd();
18480
18659
  i0.ɵɵtemplate(20, RecipeCardComponent_div_0_div_20_Template, 6, 3, "div", 19);
@@ -18486,19 +18665,8 @@
18486
18665
  i0.ɵɵtemplate(25, RecipeCardComponent_div_0_div_25_Template, 2, 2, "div", 23);
18487
18666
  i0.ɵɵelementEnd();
18488
18667
  i0.ɵɵelementEnd();
18489
- i0.ɵɵelementStart(26, "div", 24);
18490
- i0.ɵɵelementStart(27, "button", 25);
18491
- i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_button_click_27_listener() { i0.ɵɵrestoreView(_r58_1); var ctx_r59 = i0.ɵɵnextContext(); return ctx_r59.clickPrimary(); });
18492
- i0.ɵɵpipe(28, "async");
18493
- i0.ɵɵelementStart(29, "span");
18494
- i0.ɵɵtemplate(30, RecipeCardComponent_div_0_span_30_Template, 2, 0, "span", 26);
18495
- i0.ɵɵpipe(31, "async");
18496
- i0.ɵɵtemplate(32, RecipeCardComponent_div_0_ng_container_32_Template, 3, 3, "ng-container", 8);
18497
- i0.ɵɵtemplate(33, RecipeCardComponent_div_0_ng_template_33_Template, 2, 3, "ng-template", null, 27, i0.ɵɵtemplateRefExtractor);
18498
- i0.ɵɵelementEnd();
18499
- i0.ɵɵtemplate(35, RecipeCardComponent_div_0_ng_miam_icon_35_Template, 2, 5, "ng-miam-icon", 28);
18500
- i0.ɵɵtemplate(36, RecipeCardComponent_div_0_ng_template_36_Template, 1, 0, "ng-template", null, 29, i0.ɵɵtemplateRefExtractor);
18501
- i0.ɵɵelementEnd();
18668
+ i0.ɵɵelementStart(26, "ng-miam-recipe-card-cta", 24);
18669
+ i0.ɵɵlistener("displayed", function RecipeCardComponent_div_0_Template_ng_miam_recipe_card_cta_displayed_26_listener() { i0.ɵɵrestoreView(_r49_1); var ctx_r50 = i0.ɵɵnextContext(); return ctx_r50.displayed.emit(); })("clicked", function RecipeCardComponent_div_0_Template_ng_miam_recipe_card_cta_clicked_26_listener($event) { i0.ɵɵrestoreView(_r49_1); var ctx_r51 = i0.ɵɵnextContext(); return ctx_r51.primaryButtonClicked$.emit($event); });
18502
18670
  i0.ɵɵelementEnd();
18503
18671
  i0.ɵɵelementEnd();
18504
18672
  i0.ɵɵelementEnd();
@@ -18508,8 +18676,6 @@
18508
18676
  var _r7 = i0.ɵɵreference(9);
18509
18677
  var _r11 = i0.ɵɵreference(14);
18510
18678
  var _r15 = i0.ɵɵreference(23);
18511
- var _r20 = i0.ɵɵreference(34);
18512
- var _r23 = i0.ɵɵreference(37);
18513
18679
  var ctx_r0 = i0.ɵɵnextContext();
18514
18680
  i0.ɵɵadvance(3);
18515
18681
  i0.ɵɵproperty("ngIf", ctx_r0.recipe)("ngIfElse", _r4);
@@ -18527,14 +18693,8 @@
18527
18693
  i0.ɵɵproperty("ngIf", ctx_r0.recipe)("ngIfElse", _r15);
18528
18694
  i0.ɵɵadvance(4);
18529
18695
  i0.ɵɵproperty("ngIf", ctx_r0.recipe && ctx_r0.displayPricing);
18530
- i0.ɵɵadvance(2);
18531
- i0.ɵɵproperty("disabled", !ctx_r0.recipe)("ngClass", i0.ɵɵpureFunction2(26, _c15, i0.ɵɵpipeBind1(28, 22, ctx_r0.groceriesListsService.recipeIsInList(ctx_r0.recipe == null ? null : ctx_r0.recipe.id)), ctx_r0.addButtonLoading));
18532
- i0.ɵɵadvance(3);
18533
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(31, 24, ctx_r0.groceriesListsService.recipeIsInList(ctx_r0.recipe == null ? null : ctx_r0.recipe.id)));
18534
- i0.ɵɵadvance(2);
18535
- i0.ɵɵproperty("ngIf", ctx_r0.recipeService.suggestionsPrimaryButtonActions.display && !ctx_r0.recipeService.suggestionsPrimaryButtonActions.addToBasket || ctx_r0.recipeService.recipesPrimaryButtonActions.display && !ctx_r0.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r20);
18536
- i0.ɵɵadvance(3);
18537
- i0.ɵɵproperty("ngIf", !ctx_r0.addButtonLoading)("ngIfElse", _r23);
18696
+ i0.ɵɵadvance(1);
18697
+ i0.ɵɵproperty("recipe", ctx_r0.recipe)("cardType", ctx_r0.cardType)("previewAllowed", ctx_r0.previewAllowed)("displayGuests", ctx_r0.displayGuests)("helpButtonAllowed", ctx_r0.helpButtonAllowed);
18538
18698
  }
18539
18699
  }
18540
18700
  function RecipeCardComponent_ng_template_1_Template(rf, ctx) {
@@ -18561,11 +18721,16 @@
18561
18721
  */
18562
18722
  var RecipeCardComponent = /** @class */ (function (_super) {
18563
18723
  __extends(RecipeCardComponent, _super);
18564
- function RecipeCardComponent(cdr, recipeService, recipeEventsService, groceriesListsService, userService, pointOfSalesService, contextService, analyticsService, element, toasterService) {
18565
- var _this = _super.call(this, cdr, recipeService, recipeEventsService, groceriesListsService, userService, pointOfSalesService, contextService, analyticsService, element, toasterService) || this;
18724
+ function RecipeCardComponent(cdr, recipeService, recipeEventsService, groceriesListsService, userService, contextService, analyticsService, element) {
18725
+ var _this = _super.call(this, cdr, recipeService, recipeEventsService, groceriesListsService, contextService, analyticsService, element) || this;
18726
+ _this.cdr = cdr;
18727
+ _this.recipeService = recipeService;
18728
+ _this.recipeEventsService = recipeEventsService;
18729
+ _this.groceriesListsService = groceriesListsService;
18730
+ _this.userService = userService;
18731
+ _this.contextService = contextService;
18566
18732
  _this.analyticsService = analyticsService;
18567
18733
  _this.element = element;
18568
- _this.toasterService = toasterService;
18569
18734
  _this.previewAllowed = true;
18570
18735
  _this.helpButtonAllowed = true;
18571
18736
  _this.removedFromFavorite = new i0.EventEmitter();
@@ -18611,46 +18776,12 @@
18611
18776
  var _this = this;
18612
18777
  // If recipe already in basket, update the number of guests so that the pricing gets updated as well
18613
18778
  // (display = false so that the recipe details don't show up)
18614
- this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipeId).subscribe(function (recipeIsInList) {
18779
+ this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).pipe(operators.switchMap(function (recipeIsInList) {
18615
18780
  if (recipeIsInList) {
18616
- _this.addRecipe(false);
18781
+ return _this.groceriesListsService.appendRecipeToList(_this.recipe.id, _this.recipe.modifiedGuests, _this.eventTrace())
18782
+ .pipe(operators.take(1));
18617
18783
  }
18618
- }));
18619
- };
18620
- /**
18621
- * Add recipe to list on primary button click and emit true if the recipe is added, false if recipe is not added
18622
- * so lib users can decide that primaryButtonClicked$.emit(false) removes the recipe for example
18623
- */
18624
- RecipeCardComponent.prototype.clickPrimary = function () {
18625
- var _this = this;
18626
- if (!this.addButtonLoading) {
18627
- this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(function (recipeIsInList) {
18628
- var wasAdded = !recipeIsInList;
18629
- if (_this.cardType === 'suggestion-card') {
18630
- if (_this.recipeService.suggestionsPrimaryButtonActions.addToBasket) {
18631
- // If recipe is added we still want to diplay details
18632
- _this.addRecipe(_this.recipeService.suggestionsPrimaryButtonActions.display || !wasAdded);
18633
- }
18634
- else {
18635
- if (_this.recipeService.suggestionsPrimaryButtonActions.display) {
18636
- _this.openRecipe();
18637
- }
18638
- }
18639
- }
18640
- else {
18641
- if (_this.recipeService.recipesPrimaryButtonActions.addToBasket) {
18642
- // If recipe is added we still want to diplay details
18643
- _this.addRecipe(_this.recipeService.recipesPrimaryButtonActions.display || !wasAdded);
18644
- }
18645
- else {
18646
- if (_this.recipeService.recipesPrimaryButtonActions.display) {
18647
- _this.openRecipe();
18648
- }
18649
- }
18650
- }
18651
- _this.primaryButtonClicked$.emit(!recipeIsInList); // !recipeIsInList = add action, so we emit true
18652
- }));
18653
- }
18784
+ })).subscribe(function () { return _this.cdr.detectChanges(); }));
18654
18785
  };
18655
18786
  RecipeCardComponent.prototype.loadRecipe = function () {
18656
18787
  var _this = this;
@@ -18672,7 +18803,7 @@
18672
18803
  };
18673
18804
  return RecipeCardComponent;
18674
18805
  }(AbstractRecipeCardComponent));
18675
- 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), i0.ɵɵdirectiveInject(ToasterService)); };
18806
+ 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(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
18676
18807
  RecipeCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardComponent, selectors: [["ng-miam-recipe-card"]], inputs: { recipeId: "recipeId", recipe: "recipe", previewAllowed: "previewAllowed", helpButtonAllowed: "helpButtonAllowed" }, outputs: { removedFromFavorite: "removedFromFavorite", displayed: "displayed", guestsChanged: "guestsChanged" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 1, consts: function () {
18677
18808
  var i18n_0;
18678
18809
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -18706,40 +18837,16 @@
18706
18837
  else {
18707
18838
  i18n_6 = $localize(templateObject_4$b || (templateObject_4$b = __makeTemplateObject([":\u241F96cca7cb17582a9b01053a242ca907b721fad7fe\u241F3684169623116339825:Chef d\u00E9butant"], [":\u241F96cca7cb17582a9b01053a242ca907b721fad7fe\u241F3684169623116339825:Chef d\u00E9butant"])));
18708
18839
  }
18709
- var i18n_9;
18710
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18711
- var MSG_EXTERNAL_1356308905753232069$$LIB__WEB_COMPONENTS_RECIPE_CARDS_RECIPE_CARD_RECIPE_CARD_COMPONENT_TS___10 = goog.getMsg("Voir le d\u00E9tail");
18712
- i18n_9 = MSG_EXTERNAL_1356308905753232069$$LIB__WEB_COMPONENTS_RECIPE_CARDS_RECIPE_CARD_RECIPE_CARD_COMPONENT_TS___10;
18713
- }
18714
- else {
18715
- i18n_9 = $localize(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject([":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"], [":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"])));
18716
- }
18717
- var i18n_11;
18718
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18719
- var MSG_EXTERNAL_9121654084913491917$$LIB__WEB_COMPONENTS_RECIPE_CARDS_RECIPE_CARD_RECIPE_CARD_COMPONENT_TS____12 = goog.getMsg("'D\u00E9couvrir l'id\u00E9e repas");
18720
- i18n_11 = MSG_EXTERNAL_9121654084913491917$$LIB__WEB_COMPONENTS_RECIPE_CARDS_RECIPE_CARD_RECIPE_CARD_COMPONENT_TS____12;
18721
- }
18722
- else {
18723
- i18n_11 = $localize(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject([":\u241Fcf75f62b649c64a43589bf341f7d056cd19d0fcc\u241F9121654084913491917:'D\u00E9couvrir l'id\u00E9e repas"], [":\u241Fcf75f62b649c64a43589bf341f7d056cd19d0fcc\u241F9121654084913491917:'D\u00E9couvrir l'id\u00E9e repas"])));
18724
- }
18725
- var i18n_13;
18726
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18727
- var MSG_EXTERNAL_1225769932237505428$$LIB__WEB_COMPONENTS_RECIPE_CARDS_RECIPE_CARD_RECIPE_CARD_COMPONENT_TS____14 = goog.getMsg("Ajouter les ingr\u00E9dients");
18728
- i18n_13 = MSG_EXTERNAL_1225769932237505428$$LIB__WEB_COMPONENTS_RECIPE_CARDS_RECIPE_CARD_RECIPE_CARD_COMPONENT_TS____14;
18729
- }
18730
- else {
18731
- i18n_13 = $localize(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject([":\u241Fe3d3d7039794cbbd2e16e8548bfbf9ee8fa29247\u241F1225769932237505428:Ajouter les ingr\u00E9dients"], [":\u241Fe3d3d7039794cbbd2e16e8548bfbf9ee8fa29247\u241F1225769932237505428:Ajouter les ingr\u00E9dients"])));
18732
- }
18733
- return [["class", "miam-recipe-card", 4, "ngIf"], ["cors", ""], [1, "miam-recipe-card"], [1, "miam-recipe-card__bookmark"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-card/Bookmark.svg", "alt", "Id\u00E9es repas"], ["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 recipe__total__time", 4, "ngIf", "ngIfElse"], ["class", "miam-recipe-card__attributes__info recipe__difficulty", 3, "ngClass", 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-grey02)", "secondaryColor", "var(--m-color-grey07)", 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"], ["class", "miam-recipe-card__right__col__price", 4, "ngIf"], [1, "miam-recipe-card__cta"], [1, "m-button-primary", 3, "disabled", "ngClass", "click"], [4, "ngIf"], ["originalCTA", ""], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-recipe-card__picture", 3, "click"], ["loading", "lazy", 3, "src"], ["class", "miam-recipe-card__picture__video", 4, "ngIf"], [1, "miam-recipe-card__picture__actions"], ["class", "miam-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], ["class", "miam-recipe-card__picture__sponsor", 4, "ngIf"], ["class", "miam-recipe-card__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-card__picture__video"], ["primaryColor", "black", 3, "iconName", "width", "height"], [1, "miam-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-recipe-card__picture__sponsor"], [3, "src"], [1, "miam-recipe-card__picture__filigrane"], [3, "type"], [1, "miam-recipe-card__attributes__title", 3, "click"], [1, "miam-recipe-card__attributes__info", "recipe__total__time"], [3, "width", "height", "iconName"], [1, "miam-recipe-card__info__label"], [1, "miam-recipe-card__attributes__info", "recipe__difficulty", 3, "ngClass"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["primaryColor", "var(--m-color-black)", 3, "width", "height", "iconName"], ["class", "miam-recipe-card__info__label easy", 4, "ngIf", "ngIfElse"], ["difficultyEasyDefault", ""], [1, "miam-recipe-card__info__label", "easy"], i18n_0, ["class", "miam-recipe-card__info__label medium", 4, "ngIf", "ngIfElse"], ["difficultyMediumDefault", ""], [1, "miam-recipe-card__info__label", "medium"], i18n_2, ["class", "miam-recipe-card__info__label hard", 4, "ngIf", "ngIfElse"], ["difficultyHardDefault", ""], [1, "miam-recipe-card__info__label", "hard"], i18n_4, ["difficultyDefault", ""], i18n_6, [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__left__col__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-card__right__col__price"], [3, "recipe", "serves"], i18n_9, i18n_11, i18n_13, ["primaryColor", "#fff", 3, "width", "height", "iconName"]];
18840
+ return [["class", "miam-recipe-card", 4, "ngIf"], ["cors", ""], [1, "miam-recipe-card"], [1, "miam-recipe-card__bookmark"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-card/Bookmark.svg", "alt", "Id\u00E9es repas"], ["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 recipe__total__time", 4, "ngIf", "ngIfElse"], ["class", "miam-recipe-card__attributes__info recipe__difficulty", 3, "ngClass", 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-grey02)", "secondaryColor", "var(--m-color-grey07)", 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"], ["class", "miam-recipe-card__right__col__price", 4, "ngIf"], [3, "recipe", "cardType", "previewAllowed", "displayGuests", "helpButtonAllowed", "displayed", "clicked"], [1, "miam-recipe-card__picture", 3, "click"], ["loading", "lazy", 3, "src"], ["class", "miam-recipe-card__picture__video", 4, "ngIf"], [1, "miam-recipe-card__picture__actions"], ["class", "miam-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], ["class", "miam-recipe-card__picture__sponsor", 4, "ngIf"], ["class", "miam-recipe-card__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-card__picture__video"], ["primaryColor", "black", 3, "iconName", "width", "height"], [1, "miam-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-recipe-card__picture__sponsor"], [3, "src"], [1, "miam-recipe-card__picture__filigrane"], [3, "type"], [1, "miam-recipe-card__attributes__title", 3, "click"], [1, "miam-recipe-card__attributes__info", "recipe__total__time"], [3, "width", "height", "iconName"], [1, "miam-recipe-card__info__label"], [1, "miam-recipe-card__attributes__info", "recipe__difficulty", 3, "ngClass"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["primaryColor", "var(--m-color-black)", 3, "width", "height", "iconName"], ["class", "miam-recipe-card__info__label easy", 4, "ngIf", "ngIfElse"], ["difficultyEasyDefault", ""], [1, "miam-recipe-card__info__label", "easy"], i18n_0, ["class", "miam-recipe-card__info__label medium", 4, "ngIf", "ngIfElse"], ["difficultyMediumDefault", ""], [1, "miam-recipe-card__info__label", "medium"], i18n_2, ["class", "miam-recipe-card__info__label hard", 4, "ngIf", "ngIfElse"], ["difficultyHardDefault", ""], [1, "miam-recipe-card__info__label", "hard"], i18n_4, ["difficultyDefault", ""], i18n_6, [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__left__col__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-card__right__col__price"], [3, "recipe", "serves"]];
18734
18841
  }, template: function RecipeCardComponent_Template(rf, ctx) {
18735
18842
  if (rf & 1) {
18736
- i0.ɵɵtemplate(0, RecipeCardComponent_div_0_Template, 38, 29, "div", 0);
18843
+ i0.ɵɵtemplate(0, RecipeCardComponent_div_0_Template, 27, 20, "div", 0);
18737
18844
  i0.ɵɵtemplate(1, RecipeCardComponent_ng_template_1_Template, 1, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
18738
18845
  }
18739
18846
  if (rf & 2) {
18740
18847
  i0.ɵɵproperty("ngIf", ctx.isloaded);
18741
18848
  }
18742
- }, directives: [i2$1.NgIf, IconComponent, i2$1.NgClass, LikeButtonComponent, SkeletonComponent, i2$1.NgSwitch, i2$1.NgSwitchCase, i2$1.NgSwitchDefault, CounterInputComponent, RecipePricingComponent, LoaderComponent, CORSOverlayComponent], pipes: [i2$1.AsyncPipe], styles: [".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:440px;position:relative;width:320px}.miam-recipe-card .miam-recipe-card__bookmark{filter:drop-shadow(0 6px 8px rgba(0,0,0,.1));left:0;position:absolute;top:10px;z-index:1}.miam-recipe-card .miam-recipe-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:60%;position:relative}.miam-recipe-card .miam-recipe-card__picture img{-o-object-fit:cover;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:100%;object-fit:cover;position:absolute;transition:var(--m-default-transition);width:100%;z-index:var(--m-z-index-position-absolute-low)}.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__actions{display:flex;position:absolute;right:16px;top:20px;z-index:var(--m-z-index-position-absolute-high)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions ng-miam-like-button.miam-recipe-card__actions__icon{-o-object-fit:contain;background-color:var(--m-color-white);border-radius:var(--m-border-radius-circle);filter:drop-shadow(0 6px 8px rgba(0,0,0,.1));margin:0 0 16px;object-fit:contain;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor{align-items:flex-start;display:flex;height:48px;justify-content:flex-start;left:16px;order:2;position:absolute;top:16px;width:64px}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor img{-o-object-fit:contain;border-radius:0;height:auto;max-height:100%;max-width:100%;object-fit:contain;position:unset;transition:unset;width:auto;z-index:unset}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__filigrane{align-items:flex-end;bottom:16px;display:flex;height:48px;justify-content:flex-end;order:2;position:absolute;right:16px;width:72px}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__filigrane img{-o-object-fit:contain;border-radius:0;height:auto;max-height:100%;max-width:100%;object-fit:contain;position:unset;transition:unset;width:auto;z-index:unset}.miam-recipe-card .miam-recipe-card__attributes{display:flex;flex:1 1;flex-direction:column;justify-content:space-around;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;overflow:hidden;text-align:center;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__infos{display:flex;flex-direction:row;justify-content:space-around;padding:8px 0}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info{align-items:center;display:flex;flex-direction:column;width:100%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info.recipe__total__time{border-right:1px solid #e9e9e9}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info.recipe__price{border-left:1px solid #e9e9e9;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info.recipe__price .miam-recipe-pricing__wrapper__price{line-height:20px}.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-top:10px;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:none}.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;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__left__col .miam-recipe-card__left__col__custom .miam-recipe-card__help,.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom .miam-recipe-card__ingredients__pictures{display:none}.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{display:none;height:48px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__cta{display:flex;justify-content:center;width:100%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__cta button{padding:12px 16px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__cta button .miam-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{height:440px}.miam-recipe-card .miam-recipe-card__picture{height:55%}}"], encapsulation: 2, changeDetection: 0 });
18849
+ }, directives: [i2$1.NgIf, IconComponent, RecipeCardCtaComponent, LikeButtonComponent, SkeletonComponent, i2$1.NgClass, i2$1.NgSwitch, i2$1.NgSwitchCase, i2$1.NgSwitchDefault, CounterInputComponent, RecipePricingComponent, CORSOverlayComponent], pipes: [i2$1.AsyncPipe], styles: [".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:440px;position:relative;width:320px}.miam-recipe-card .miam-recipe-card__bookmark{filter:drop-shadow(0 6px 8px rgba(0,0,0,.1));left:0;position:absolute;top:10px;z-index:1}.miam-recipe-card .miam-recipe-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:60%;position:relative}.miam-recipe-card .miam-recipe-card__picture img{-o-object-fit:cover;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:100%;object-fit:cover;position:absolute;transition:var(--m-default-transition);width:100%;z-index:var(--m-z-index-position-absolute-low)}.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__actions{display:flex;position:absolute;right:16px;top:20px;z-index:var(--m-z-index-position-absolute-high)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions ng-miam-like-button.miam-recipe-card__actions__icon{-o-object-fit:contain;background-color:var(--m-color-white);border-radius:var(--m-border-radius-circle);filter:drop-shadow(0 6px 8px rgba(0,0,0,.1));margin:0 0 16px;object-fit:contain;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor{align-items:flex-start;display:flex;height:48px;justify-content:flex-start;left:16px;order:2;position:absolute;top:16px;width:64px}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor img{-o-object-fit:contain;border-radius:0;height:auto;max-height:100%;max-width:100%;object-fit:contain;position:unset;transition:unset;width:auto;z-index:unset}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__filigrane{align-items:flex-end;bottom:16px;display:flex;height:48px;justify-content:flex-end;order:2;position:absolute;right:16px;width:72px}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__filigrane img{-o-object-fit:contain;border-radius:0;height:auto;max-height:100%;max-width:100%;object-fit:contain;position:unset;transition:unset;width:auto;z-index:unset}.miam-recipe-card .miam-recipe-card__attributes{display:flex;flex:1 1;flex-direction:column;justify-content:space-around;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;overflow:hidden;text-align:center;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__infos{display:flex;flex-direction:row;justify-content:space-around;padding:8px 0}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info{align-items:center;display:flex;flex-direction:column;width:100%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info.recipe__total__time{border-right:1px solid #e9e9e9}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info.recipe__price{border-left:1px solid #e9e9e9;min-width:-webkit-fit-content;min-width:-moz-fit-content;min-width:fit-content}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info.recipe__price .miam-recipe-pricing__wrapper__price{line-height:20px}.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-top:10px;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:none}.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;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__left__col .miam-recipe-card__left__col__custom .miam-recipe-card__help,.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom .miam-recipe-card__ingredients__pictures{display:none}.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{display:none;height:48px}@media (max-width:1023px){.miam-recipe-card{height:440px}.miam-recipe-card .miam-recipe-card__picture{height:55%}}"], encapsulation: 2, changeDetection: 0 });
18743
18850
  /*@__PURE__*/ (function () {
18744
18851
  i0.ɵsetClassMetadata(RecipeCardComponent, [{
18745
18852
  type: i0.Component,
@@ -18750,30 +18857,7 @@
18750
18857
  encapsulation: i0.ViewEncapsulation.None,
18751
18858
  changeDetection: i0.ChangeDetectionStrategy.OnPush
18752
18859
  }]
18753
- }], function () {
18754
- return [{ type: i0.ChangeDetectorRef, decorators: [{
18755
- type: i0.Inject,
18756
- args: [i0.ChangeDetectorRef]
18757
- }] }, { type: RecipesService, decorators: [{
18758
- type: i0.Inject,
18759
- args: [RecipesService]
18760
- }] }, { type: RecipeEventsService, decorators: [{
18761
- type: i0.Inject,
18762
- args: [RecipeEventsService]
18763
- }] }, { type: GroceriesListsService, decorators: [{
18764
- type: i0.Inject,
18765
- args: [GroceriesListsService]
18766
- }] }, { type: UserService, decorators: [{
18767
- type: i0.Inject,
18768
- args: [UserService]
18769
- }] }, { type: PointOfSalesService, decorators: [{
18770
- type: i0.Inject,
18771
- args: [PointOfSalesService]
18772
- }] }, { type: ContextService, decorators: [{
18773
- type: i0.Inject,
18774
- args: [ContextService]
18775
- }] }, { type: AnalyticsService }, { type: i0.ElementRef }, { type: ToasterService }];
18776
- }, { recipeId: [{
18860
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: RecipesService }, { type: RecipeEventsService }, { type: GroceriesListsService }, { type: UserService }, { type: ContextService }, { type: AnalyticsService }, { type: i0.ElementRef }]; }, { recipeId: [{
18777
18861
  type: i0.Input
18778
18862
  }], recipe: [{
18779
18863
  type: i0.Input
@@ -18789,9 +18873,10 @@
18789
18873
  type: i0.Output
18790
18874
  }] });
18791
18875
  })();
18792
- var templateObject_1$s, templateObject_2$l, templateObject_3$g, templateObject_4$b, templateObject_5$7, templateObject_6$6, templateObject_7$5;
18876
+ var templateObject_1$s, templateObject_2$l, templateObject_3$g, templateObject_4$b;
18793
18877
 
18794
- var _c0$r = ["miamMoreActions"];
18878
+ var _c0$s = ["miamMoreActions"];
18879
+ var _c1$c = ["cardCta"];
18795
18880
  function CatalogRecipeCardComponent_div_4_div_3_Template(rf, ctx) {
18796
18881
  if (rf & 1) {
18797
18882
  i0.ɵɵelementStart(0, "div", 30);
@@ -18989,105 +19074,30 @@
18989
19074
  i0.ɵɵproperty("ngIf", ctx_r3.recipe.modifiedIngredients.length > 2);
18990
19075
  }
18991
19076
  }
18992
- function CatalogRecipeCardComponent_button_10_span_2_Template(rf, ctx) {
18993
- if (rf & 1) {
18994
- i0.ɵɵelementStart(0, "span");
18995
- i0.ɵɵi18n(1, 53);
18996
- i0.ɵɵelementEnd();
18997
- }
18998
- }
18999
- function CatalogRecipeCardComponent_button_10_ng_container_4_span_1_Template(rf, ctx) {
19000
- if (rf & 1) {
19001
- i0.ɵɵelementStart(0, "span");
19002
- i0.ɵɵi18n(1, 54);
19003
- i0.ɵɵelementEnd();
19004
- }
19005
- }
19006
- function CatalogRecipeCardComponent_button_10_ng_container_4_Template(rf, ctx) {
19007
- if (rf & 1) {
19008
- i0.ɵɵelementContainerStart(0);
19009
- i0.ɵɵtemplate(1, CatalogRecipeCardComponent_button_10_ng_container_4_span_1_Template, 2, 0, "span", 24);
19010
- i0.ɵɵpipe(2, "async");
19011
- i0.ɵɵelementContainerEnd();
19012
- }
19013
- if (rf & 2) {
19014
- var ctx_r36 = i0.ɵɵnextContext(2);
19015
- i0.ɵɵadvance(1);
19016
- i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(2, 1, ctx_r36.groceriesListsService.recipeIsInList(ctx_r36.recipe == null ? null : ctx_r36.recipe.id)));
19017
- }
19018
- }
19019
- function CatalogRecipeCardComponent_button_10_ng_template_5_span_0_Template(rf, ctx) {
19020
- if (rf & 1) {
19021
- i0.ɵɵelementStart(0, "span");
19022
- i0.ɵɵi18n(1, 55);
19023
- i0.ɵɵelementEnd();
19024
- }
19025
- }
19026
- function CatalogRecipeCardComponent_button_10_ng_template_5_Template(rf, ctx) {
19027
- if (rf & 1) {
19028
- i0.ɵɵtemplate(0, CatalogRecipeCardComponent_button_10_ng_template_5_span_0_Template, 2, 0, "span", 24);
19029
- i0.ɵɵpipe(1, "async");
19030
- }
19031
- if (rf & 2) {
19032
- var ctx_r38 = i0.ɵɵnextContext(2);
19033
- i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(1, 1, ctx_r38.groceriesListsService.recipeIsInList(ctx_r38.recipe == null ? null : ctx_r38.recipe.id)));
19034
- }
19035
- }
19036
- function CatalogRecipeCardComponent_button_10_ng_miam_icon_7_Template(rf, ctx) {
19037
- if (rf & 1) {
19038
- i0.ɵɵelement(0, "ng-miam-icon", 56);
19039
- i0.ɵɵpipe(1, "async");
19040
- }
19041
- if (rf & 2) {
19042
- var ctx_r39 = i0.ɵɵnextContext(2);
19043
- i0.ɵɵproperty("width", 16)("height", 16)("iconName", i0.ɵɵpipeBind1(1, 3, ctx_r39.groceriesListsService.recipeIsInList(ctx_r39.recipe == null ? null : ctx_r39.recipe.id)) ? ctx_r39.icon.CheckList : ctx_r39.icon.Cart);
19044
- }
19045
- }
19046
- function CatalogRecipeCardComponent_button_10_ng_template_8_Template(rf, ctx) {
19047
- if (rf & 1) {
19048
- i0.ɵɵelement(0, "ng-miam-loader");
19049
- }
19050
- }
19051
- var _c9$1 = function (a0, a1) { return { loading: a0, reverse: a1 }; };
19052
- function CatalogRecipeCardComponent_button_10_Template(rf, ctx) {
19077
+ function CatalogRecipeCardComponent_ng_miam_recipe_card_cta_10_Template(rf, ctx) {
19053
19078
  if (rf & 1) {
19054
- var _r45_1 = i0.ɵɵgetCurrentView();
19055
- i0.ɵɵelementStart(0, "button", 49);
19056
- i0.ɵɵlistener("click", function CatalogRecipeCardComponent_button_10_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r45_1); var ctx_r44 = i0.ɵɵnextContext(); return ctx_r44.clickPrimary(); });
19057
- i0.ɵɵpipe(1, "async");
19058
- i0.ɵɵtemplate(2, CatalogRecipeCardComponent_button_10_span_2_Template, 2, 0, "span", 24);
19059
- i0.ɵɵpipe(3, "async");
19060
- i0.ɵɵtemplate(4, CatalogRecipeCardComponent_button_10_ng_container_4_Template, 3, 3, "ng-container", 25);
19061
- i0.ɵɵtemplate(5, CatalogRecipeCardComponent_button_10_ng_template_5_Template, 2, 3, "ng-template", null, 50, i0.ɵɵtemplateRefExtractor);
19062
- i0.ɵɵtemplate(7, CatalogRecipeCardComponent_button_10_ng_miam_icon_7_Template, 2, 5, "ng-miam-icon", 51);
19063
- i0.ɵɵtemplate(8, CatalogRecipeCardComponent_button_10_ng_template_8_Template, 1, 0, "ng-template", null, 52, i0.ɵɵtemplateRefExtractor);
19079
+ var _r37_1 = i0.ɵɵgetCurrentView();
19080
+ i0.ɵɵelementStart(0, "ng-miam-recipe-card-cta", 49, 50);
19081
+ i0.ɵɵlistener("displayed", function CatalogRecipeCardComponent_ng_miam_recipe_card_cta_10_Template_ng_miam_recipe_card_cta_displayed_0_listener() { i0.ɵɵrestoreView(_r37_1); var ctx_r36 = i0.ɵɵnextContext(); return ctx_r36.displayed.emit(); })("clicked", function CatalogRecipeCardComponent_ng_miam_recipe_card_cta_10_Template_ng_miam_recipe_card_cta_clicked_0_listener($event) { i0.ɵɵrestoreView(_r37_1); var ctx_r38 = i0.ɵɵnextContext(); return ctx_r38.primaryButtonClicked$.emit($event); });
19064
19082
  i0.ɵɵelementEnd();
19065
19083
  }
19066
19084
  if (rf & 2) {
19067
- var _r37 = i0.ɵɵreference(6);
19068
- var _r40 = i0.ɵɵreference(9);
19069
19085
  var ctx_r4 = i0.ɵɵnextContext();
19070
- i0.ɵɵproperty("disabled", !ctx_r4.recipe)("ngClass", i0.ɵɵpureFunction2(11, _c9$1, ctx_r4.addButtonLoading, i0.ɵɵpipeBind1(1, 7, ctx_r4.groceriesListsService.recipeIsInList(ctx_r4.recipe == null ? null : ctx_r4.recipe.id))));
19071
- i0.ɵɵadvance(2);
19072
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(3, 9, ctx_r4.groceriesListsService.recipeIsInList(ctx_r4.recipe == null ? null : ctx_r4.recipe.id)));
19073
- i0.ɵɵadvance(2);
19074
- i0.ɵɵproperty("ngIf", ctx_r4.recipeService.recipesPrimaryButtonActions.display && !ctx_r4.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r37);
19075
- i0.ɵɵadvance(3);
19076
- i0.ɵɵproperty("ngIf", !ctx_r4.addButtonLoading)("ngIfElse", _r40);
19086
+ i0.ɵɵproperty("recipe", ctx_r4.recipe)("cardType", ctx_r4.cardType)("previewAllowed", ctx_r4.previewAllowed)("helpButtonAllowed", ctx_r4.helpButtonAllowed)("displayGuests", ctx_r4.displayGuests);
19077
19087
  }
19078
19088
  }
19079
19089
  function CatalogRecipeCardComponent_div_11_Template(rf, ctx) {
19080
19090
  if (rf & 1) {
19081
- var _r47_1 = i0.ɵɵgetCurrentView();
19082
- i0.ɵɵelementStart(0, "div", 57);
19083
- i0.ɵɵelementStart(1, "div", 58);
19084
- i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_11_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r47_1); var ctx_r46 = i0.ɵɵnextContext(); return ctx_r46.openCatalog.emit(); });
19091
+ var _r40_1 = i0.ɵɵgetCurrentView();
19092
+ i0.ɵɵelementStart(0, "div", 51);
19093
+ i0.ɵɵelementStart(1, "div", 52);
19094
+ i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_11_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r40_1); var ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.openCatalog.emit(); });
19085
19095
  i0.ɵɵelementStart(2, "span");
19086
- i0.ɵɵi18n(3, 59);
19096
+ i0.ɵɵi18n(3, 53);
19087
19097
  i0.ɵɵelementEnd();
19088
19098
  i0.ɵɵelementEnd();
19089
- i0.ɵɵelementStart(4, "div", 60);
19090
- i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_11_Template_div_click_4_listener() { i0.ɵɵrestoreView(_r47_1); var ctx_r48 = i0.ɵɵnextContext(); return ctx_r48.removeFromMealsPlanner.emit(); });
19099
+ i0.ɵɵelementStart(4, "div", 54);
19100
+ i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_11_Template_div_click_4_listener() { i0.ɵɵrestoreView(_r40_1); var ctx_r41 = i0.ɵɵnextContext(); return ctx_r41.removeFromMealsPlanner.emit(); });
19091
19101
  i0.ɵɵelement(5, "ng-miam-icon", 42);
19092
19102
  i0.ɵɵelementEnd();
19093
19103
  i0.ɵɵelementEnd();
@@ -19100,20 +19110,20 @@
19100
19110
  }
19101
19111
  function CatalogRecipeCardComponent_button_12_Template(rf, ctx) {
19102
19112
  if (rf & 1) {
19103
- var _r50_1 = i0.ɵɵgetCurrentView();
19104
- i0.ɵɵelementStart(0, "button", 61);
19105
- i0.ɵɵlistener("click", function CatalogRecipeCardComponent_button_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r50_1); var ctx_r49 = i0.ɵɵnextContext(); return ctx_r49.addToMealsPlanner.emit(ctx_r49.recipe); });
19113
+ var _r43_1 = i0.ɵɵgetCurrentView();
19114
+ i0.ɵɵelementStart(0, "button", 55);
19115
+ i0.ɵɵlistener("click", function CatalogRecipeCardComponent_button_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r43_1); var ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.addToMealsPlanner.emit(ctx_r42.recipe); });
19106
19116
  i0.ɵɵelementStart(1, "span");
19107
- i0.ɵɵi18n(2, 62);
19117
+ i0.ɵɵi18n(2, 56);
19108
19118
  i0.ɵɵelementEnd();
19109
19119
  i0.ɵɵelementEnd();
19110
19120
  }
19111
19121
  }
19112
19122
  function CatalogRecipeCardComponent_div_15_Template(rf, ctx) {
19113
19123
  if (rf & 1) {
19114
- i0.ɵɵelementStart(0, "div", 63);
19115
- i0.ɵɵelement(1, "ng-miam-icon", 64);
19116
- i0.ɵɵelementStart(2, "span", 65);
19124
+ i0.ɵɵelementStart(0, "div", 57);
19125
+ i0.ɵɵelement(1, "ng-miam-icon", 58);
19126
+ i0.ɵɵelementStart(2, "span", 59);
19117
19127
  i0.ɵɵtext(3);
19118
19128
  i0.ɵɵelementEnd();
19119
19129
  i0.ɵɵelementEnd();
@@ -19129,191 +19139,191 @@
19129
19139
  function CatalogRecipeCardComponent_div_16_ng_container_2_Template(rf, ctx) {
19130
19140
  if (rf & 1) {
19131
19141
  i0.ɵɵelementContainerStart(0);
19132
- i0.ɵɵelement(1, "ng-miam-icon", 70);
19142
+ i0.ɵɵelement(1, "ng-miam-icon", 64);
19133
19143
  i0.ɵɵelementContainerEnd();
19134
19144
  }
19135
19145
  if (rf & 2) {
19136
- var ctx_r51 = i0.ɵɵnextContext(2);
19146
+ var ctx_r44 = i0.ɵɵnextContext(2);
19137
19147
  i0.ɵɵadvance(1);
19138
- i0.ɵɵproperty("width", 39)("height", 18)("iconName", ctx_r51.icon.DifficultyMedium);
19148
+ i0.ɵɵproperty("width", 39)("height", 18)("iconName", ctx_r44.icon.DifficultyMedium);
19139
19149
  }
19140
19150
  }
19141
19151
  function CatalogRecipeCardComponent_div_16_ng_container_3_Template(rf, ctx) {
19142
19152
  if (rf & 1) {
19143
19153
  i0.ɵɵelementContainerStart(0);
19144
- i0.ɵɵelement(1, "ng-miam-icon", 70);
19154
+ i0.ɵɵelement(1, "ng-miam-icon", 64);
19145
19155
  i0.ɵɵelementContainerEnd();
19146
19156
  }
19147
19157
  if (rf & 2) {
19148
- var ctx_r52 = i0.ɵɵnextContext(2);
19158
+ var ctx_r45 = i0.ɵɵnextContext(2);
19149
19159
  i0.ɵɵadvance(1);
19150
- i0.ɵɵproperty("width", 60)("height", 18)("iconName", ctx_r52.icon.DifficultyHigh);
19160
+ i0.ɵɵproperty("width", 60)("height", 18)("iconName", ctx_r45.icon.DifficultyHigh);
19151
19161
  }
19152
19162
  }
19153
19163
  function CatalogRecipeCardComponent_div_16_ng_container_4_Template(rf, ctx) {
19154
19164
  if (rf & 1) {
19155
19165
  i0.ɵɵelementContainerStart(0);
19156
- i0.ɵɵelement(1, "ng-miam-icon", 70);
19166
+ i0.ɵɵelement(1, "ng-miam-icon", 64);
19157
19167
  i0.ɵɵelementContainerEnd();
19158
19168
  }
19159
19169
  if (rf & 2) {
19160
- var ctx_r53 = i0.ɵɵnextContext(2);
19170
+ var ctx_r46 = i0.ɵɵnextContext(2);
19161
19171
  i0.ɵɵadvance(1);
19162
- i0.ɵɵproperty("width", 18)("height", 18)("iconName", ctx_r53.icon.DifficultyLow);
19172
+ i0.ɵɵproperty("width", 18)("height", 18)("iconName", ctx_r46.icon.DifficultyLow);
19163
19173
  }
19164
19174
  }
19165
19175
  function CatalogRecipeCardComponent_div_16_ng_container_6_span_1_Template(rf, ctx) {
19166
19176
  if (rf & 1) {
19167
- i0.ɵɵelementStart(0, "span", 73);
19177
+ i0.ɵɵelementStart(0, "span", 67);
19168
19178
  i0.ɵɵtext(1);
19169
19179
  i0.ɵɵelementEnd();
19170
19180
  }
19171
19181
  if (rf & 2) {
19172
- var ctx_r58 = i0.ɵɵnextContext(3);
19182
+ var ctx_r51 = i0.ɵɵnextContext(3);
19173
19183
  i0.ɵɵadvance(1);
19174
- i0.ɵɵtextInterpolate1(" ", ctx_r58.recipeService.difficultyLevels[0].label, " ");
19184
+ i0.ɵɵtextInterpolate1(" ", ctx_r51.recipeService.difficultyLevels[0].label, " ");
19175
19185
  }
19176
19186
  }
19177
19187
  function CatalogRecipeCardComponent_div_16_ng_container_6_ng_template_2_Template(rf, ctx) {
19178
19188
  if (rf & 1) {
19179
- i0.ɵɵelementStart(0, "span", 73);
19180
- i0.ɵɵi18n(1, 74);
19189
+ i0.ɵɵelementStart(0, "span", 67);
19190
+ i0.ɵɵi18n(1, 68);
19181
19191
  i0.ɵɵelementEnd();
19182
19192
  }
19183
19193
  }
19184
19194
  function CatalogRecipeCardComponent_div_16_ng_container_6_Template(rf, ctx) {
19185
19195
  if (rf & 1) {
19186
19196
  i0.ɵɵelementContainerStart(0);
19187
- i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_16_ng_container_6_span_1_Template, 2, 1, "span", 71);
19188
- i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_16_ng_container_6_ng_template_2_Template, 2, 0, "ng-template", null, 72, i0.ɵɵtemplateRefExtractor);
19197
+ i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_16_ng_container_6_span_1_Template, 2, 1, "span", 65);
19198
+ i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_16_ng_container_6_ng_template_2_Template, 2, 0, "ng-template", null, 66, i0.ɵɵtemplateRefExtractor);
19189
19199
  i0.ɵɵelementContainerEnd();
19190
19200
  }
19191
19201
  if (rf & 2) {
19192
- var _r59 = i0.ɵɵreference(3);
19193
- var ctx_r54 = i0.ɵɵnextContext(2);
19202
+ var _r52 = i0.ɵɵreference(3);
19203
+ var ctx_r47 = i0.ɵɵnextContext(2);
19194
19204
  i0.ɵɵadvance(1);
19195
- i0.ɵɵproperty("ngIf", (ctx_r54.recipeService.difficultyLevels[0] == null ? null : ctx_r54.recipeService.difficultyLevels[0].label) !== "Chef d\u00E9butant")("ngIfElse", _r59);
19205
+ i0.ɵɵproperty("ngIf", (ctx_r47.recipeService.difficultyLevels[0] == null ? null : ctx_r47.recipeService.difficultyLevels[0].label) !== "Chef d\u00E9butant")("ngIfElse", _r52);
19196
19206
  }
19197
19207
  }
19198
19208
  function CatalogRecipeCardComponent_div_16_ng_container_7_span_1_Template(rf, ctx) {
19199
19209
  if (rf & 1) {
19200
- i0.ɵɵelementStart(0, "span", 77);
19210
+ i0.ɵɵelementStart(0, "span", 71);
19201
19211
  i0.ɵɵtext(1);
19202
19212
  i0.ɵɵelementEnd();
19203
19213
  }
19204
19214
  if (rf & 2) {
19205
- var ctx_r61 = i0.ɵɵnextContext(3);
19215
+ var ctx_r54 = i0.ɵɵnextContext(3);
19206
19216
  i0.ɵɵadvance(1);
19207
- i0.ɵɵtextInterpolate1(" ", ctx_r61.recipeService.difficultyLevels[1].label, " ");
19217
+ i0.ɵɵtextInterpolate1(" ", ctx_r54.recipeService.difficultyLevels[1].label, " ");
19208
19218
  }
19209
19219
  }
19210
19220
  function CatalogRecipeCardComponent_div_16_ng_container_7_ng_template_2_Template(rf, ctx) {
19211
19221
  if (rf & 1) {
19212
- i0.ɵɵelementStart(0, "span", 77);
19213
- i0.ɵɵi18n(1, 78);
19222
+ i0.ɵɵelementStart(0, "span", 71);
19223
+ i0.ɵɵi18n(1, 72);
19214
19224
  i0.ɵɵelementEnd();
19215
19225
  }
19216
19226
  }
19217
19227
  function CatalogRecipeCardComponent_div_16_ng_container_7_Template(rf, ctx) {
19218
19228
  if (rf & 1) {
19219
19229
  i0.ɵɵelementContainerStart(0);
19220
- i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_16_ng_container_7_span_1_Template, 2, 1, "span", 75);
19221
- i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_16_ng_container_7_ng_template_2_Template, 2, 0, "ng-template", null, 76, i0.ɵɵtemplateRefExtractor);
19230
+ i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_16_ng_container_7_span_1_Template, 2, 1, "span", 69);
19231
+ i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_16_ng_container_7_ng_template_2_Template, 2, 0, "ng-template", null, 70, i0.ɵɵtemplateRefExtractor);
19222
19232
  i0.ɵɵelementContainerEnd();
19223
19233
  }
19224
19234
  if (rf & 2) {
19225
- var _r62 = i0.ɵɵreference(3);
19226
- var ctx_r55 = i0.ɵɵnextContext(2);
19235
+ var _r55 = i0.ɵɵreference(3);
19236
+ var ctx_r48 = i0.ɵɵnextContext(2);
19227
19237
  i0.ɵɵadvance(1);
19228
- i0.ɵɵproperty("ngIf", (ctx_r55.recipeService.difficultyLevels[1] == null ? null : ctx_r55.recipeService.difficultyLevels[1].label) !== "Chef interm\u00E9diaire")("ngIfElse", _r62);
19238
+ i0.ɵɵproperty("ngIf", (ctx_r48.recipeService.difficultyLevels[1] == null ? null : ctx_r48.recipeService.difficultyLevels[1].label) !== "Chef interm\u00E9diaire")("ngIfElse", _r55);
19229
19239
  }
19230
19240
  }
19231
19241
  function CatalogRecipeCardComponent_div_16_ng_container_8_span_1_Template(rf, ctx) {
19232
19242
  if (rf & 1) {
19233
- i0.ɵɵelementStart(0, "span", 81);
19243
+ i0.ɵɵelementStart(0, "span", 75);
19234
19244
  i0.ɵɵtext(1);
19235
19245
  i0.ɵɵelementEnd();
19236
19246
  }
19237
19247
  if (rf & 2) {
19238
- var ctx_r64 = i0.ɵɵnextContext(3);
19248
+ var ctx_r57 = i0.ɵɵnextContext(3);
19239
19249
  i0.ɵɵadvance(1);
19240
- i0.ɵɵtextInterpolate1(" ", ctx_r64.recipeService.difficultyLevels[2].label, " ");
19250
+ i0.ɵɵtextInterpolate1(" ", ctx_r57.recipeService.difficultyLevels[2].label, " ");
19241
19251
  }
19242
19252
  }
19243
19253
  function CatalogRecipeCardComponent_div_16_ng_container_8_ng_template_2_Template(rf, ctx) {
19244
19254
  if (rf & 1) {
19245
- i0.ɵɵelementStart(0, "span", 81);
19246
- i0.ɵɵi18n(1, 82);
19255
+ i0.ɵɵelementStart(0, "span", 75);
19256
+ i0.ɵɵi18n(1, 76);
19247
19257
  i0.ɵɵelementEnd();
19248
19258
  }
19249
19259
  }
19250
19260
  function CatalogRecipeCardComponent_div_16_ng_container_8_Template(rf, ctx) {
19251
19261
  if (rf & 1) {
19252
19262
  i0.ɵɵelementContainerStart(0);
19253
- i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_16_ng_container_8_span_1_Template, 2, 1, "span", 79);
19254
- i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_16_ng_container_8_ng_template_2_Template, 2, 0, "ng-template", null, 80, i0.ɵɵtemplateRefExtractor);
19263
+ i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_16_ng_container_8_span_1_Template, 2, 1, "span", 73);
19264
+ i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_16_ng_container_8_ng_template_2_Template, 2, 0, "ng-template", null, 74, i0.ɵɵtemplateRefExtractor);
19255
19265
  i0.ɵɵelementContainerEnd();
19256
19266
  }
19257
19267
  if (rf & 2) {
19258
- var _r65 = i0.ɵɵreference(3);
19259
- var ctx_r56 = i0.ɵɵnextContext(2);
19268
+ var _r58 = i0.ɵɵreference(3);
19269
+ var ctx_r49 = i0.ɵɵnextContext(2);
19260
19270
  i0.ɵɵadvance(1);
19261
- i0.ɵɵproperty("ngIf", (ctx_r56.recipeService.difficultyLevels[2] == null ? null : ctx_r56.recipeService.difficultyLevels[2].label) !== "Top chef")("ngIfElse", _r65);
19271
+ i0.ɵɵproperty("ngIf", (ctx_r49.recipeService.difficultyLevels[2] == null ? null : ctx_r49.recipeService.difficultyLevels[2].label) !== "Top chef")("ngIfElse", _r58);
19262
19272
  }
19263
19273
  }
19264
19274
  function CatalogRecipeCardComponent_div_16_ng_container_9_span_1_Template(rf, ctx) {
19265
19275
  if (rf & 1) {
19266
- i0.ɵɵelementStart(0, "span", 73);
19276
+ i0.ɵɵelementStart(0, "span", 67);
19267
19277
  i0.ɵɵtext(1);
19268
19278
  i0.ɵɵelementEnd();
19269
19279
  }
19270
19280
  if (rf & 2) {
19271
- var ctx_r67 = i0.ɵɵnextContext(3);
19281
+ var ctx_r60 = i0.ɵɵnextContext(3);
19272
19282
  i0.ɵɵadvance(1);
19273
- i0.ɵɵtextInterpolate1(" ", ctx_r67.recipeService.difficultyLevels[0].label, " ");
19283
+ i0.ɵɵtextInterpolate1(" ", ctx_r60.recipeService.difficultyLevels[0].label, " ");
19274
19284
  }
19275
19285
  }
19276
19286
  function CatalogRecipeCardComponent_div_16_ng_container_9_ng_template_2_Template(rf, ctx) {
19277
19287
  if (rf & 1) {
19278
- i0.ɵɵelementStart(0, "span", 73);
19279
- i0.ɵɵi18n(1, 84);
19288
+ i0.ɵɵelementStart(0, "span", 67);
19289
+ i0.ɵɵi18n(1, 78);
19280
19290
  i0.ɵɵelementEnd();
19281
19291
  }
19282
19292
  }
19283
19293
  function CatalogRecipeCardComponent_div_16_ng_container_9_Template(rf, ctx) {
19284
19294
  if (rf & 1) {
19285
19295
  i0.ɵɵelementContainerStart(0);
19286
- i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_16_ng_container_9_span_1_Template, 2, 1, "span", 71);
19287
- i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_16_ng_container_9_ng_template_2_Template, 2, 0, "ng-template", null, 83, i0.ɵɵtemplateRefExtractor);
19296
+ i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_16_ng_container_9_span_1_Template, 2, 1, "span", 65);
19297
+ i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_16_ng_container_9_ng_template_2_Template, 2, 0, "ng-template", null, 77, i0.ɵɵtemplateRefExtractor);
19288
19298
  i0.ɵɵelementContainerEnd();
19289
19299
  }
19290
19300
  if (rf & 2) {
19291
- var _r68 = i0.ɵɵreference(3);
19292
- var ctx_r57 = i0.ɵɵnextContext(2);
19301
+ var _r61 = i0.ɵɵreference(3);
19302
+ var ctx_r50 = i0.ɵɵnextContext(2);
19293
19303
  i0.ɵɵadvance(1);
19294
- i0.ɵɵproperty("ngIf", (ctx_r57.recipeService.difficultyLevels[0] == null ? null : ctx_r57.recipeService.difficultyLevels[0].label) !== "Chef d\u00E9butant")("ngIfElse", _r68);
19304
+ i0.ɵɵproperty("ngIf", (ctx_r50.recipeService.difficultyLevels[0] == null ? null : ctx_r50.recipeService.difficultyLevels[0].label) !== "Chef d\u00E9butant")("ngIfElse", _r61);
19295
19305
  }
19296
19306
  }
19297
- var _c22$1 = function (a0, a1, a2) { return { "easy": a0, "medium": a1, "hard": a2 }; };
19307
+ var _c16 = function (a0, a1, a2) { return { "easy": a0, "medium": a1, "hard": a2 }; };
19298
19308
  function CatalogRecipeCardComponent_div_16_Template(rf, ctx) {
19299
19309
  if (rf & 1) {
19300
- i0.ɵɵelementStart(0, "div", 66);
19301
- i0.ɵɵelementContainerStart(1, 67);
19302
- i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_16_ng_container_2_Template, 2, 3, "ng-container", 68);
19303
- i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_16_ng_container_3_Template, 2, 3, "ng-container", 68);
19304
- i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_16_ng_container_4_Template, 2, 3, "ng-container", 69);
19310
+ i0.ɵɵelementStart(0, "div", 60);
19311
+ i0.ɵɵelementContainerStart(1, 61);
19312
+ i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_16_ng_container_2_Template, 2, 3, "ng-container", 62);
19313
+ i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_16_ng_container_3_Template, 2, 3, "ng-container", 62);
19314
+ i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_16_ng_container_4_Template, 2, 3, "ng-container", 63);
19305
19315
  i0.ɵɵelementContainerEnd();
19306
- i0.ɵɵelementContainerStart(5, 67);
19307
- i0.ɵɵtemplate(6, CatalogRecipeCardComponent_div_16_ng_container_6_Template, 4, 2, "ng-container", 68);
19308
- i0.ɵɵtemplate(7, CatalogRecipeCardComponent_div_16_ng_container_7_Template, 4, 2, "ng-container", 68);
19309
- i0.ɵɵtemplate(8, CatalogRecipeCardComponent_div_16_ng_container_8_Template, 4, 2, "ng-container", 68);
19310
- i0.ɵɵtemplate(9, CatalogRecipeCardComponent_div_16_ng_container_9_Template, 4, 2, "ng-container", 69);
19316
+ i0.ɵɵelementContainerStart(5, 61);
19317
+ i0.ɵɵtemplate(6, CatalogRecipeCardComponent_div_16_ng_container_6_Template, 4, 2, "ng-container", 62);
19318
+ i0.ɵɵtemplate(7, CatalogRecipeCardComponent_div_16_ng_container_7_Template, 4, 2, "ng-container", 62);
19319
+ i0.ɵɵtemplate(8, CatalogRecipeCardComponent_div_16_ng_container_8_Template, 4, 2, "ng-container", 62);
19320
+ i0.ɵɵtemplate(9, CatalogRecipeCardComponent_div_16_ng_container_9_Template, 4, 2, "ng-container", 63);
19311
19321
  i0.ɵɵelementContainerEnd();
19312
19322
  i0.ɵɵelementEnd();
19313
19323
  }
19314
19324
  if (rf & 2) {
19315
19325
  var ctx_r8 = i0.ɵɵnextContext();
19316
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(8, _c22$1, (ctx_r8.recipe == null ? null : ctx_r8.recipe.difficulty) === 1, (ctx_r8.recipe == null ? null : ctx_r8.recipe.difficulty) === 2, (ctx_r8.recipe == null ? null : ctx_r8.recipe.difficulty) === 3));
19326
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(8, _c16, (ctx_r8.recipe == null ? null : ctx_r8.recipe.difficulty) === 1, (ctx_r8.recipe == null ? null : ctx_r8.recipe.difficulty) === 2, (ctx_r8.recipe == null ? null : ctx_r8.recipe.difficulty) === 3));
19317
19327
  i0.ɵɵadvance(1);
19318
19328
  i0.ɵɵproperty("ngSwitch", ctx_r8.recipe == null ? null : ctx_r8.recipe.difficulty);
19319
19329
  i0.ɵɵadvance(1);
@@ -19332,17 +19342,17 @@
19332
19342
  }
19333
19343
  function CatalogRecipeCardComponent_div_17_ng_miam_recipe_pricing_1_Template(rf, ctx) {
19334
19344
  if (rf & 1) {
19335
- i0.ɵɵelement(0, "ng-miam-recipe-pricing", 87);
19345
+ i0.ɵɵelement(0, "ng-miam-recipe-pricing", 81);
19336
19346
  }
19337
19347
  if (rf & 2) {
19338
- var ctx_r70 = i0.ɵɵnextContext(2);
19339
- i0.ɵɵproperty("recipe", ctx_r70.recipe)("serves", ctx_r70.recipe == null ? null : ctx_r70.recipe.modifiedGuests);
19348
+ var ctx_r63 = i0.ɵɵnextContext(2);
19349
+ i0.ɵɵproperty("recipe", ctx_r63.recipe)("serves", ctx_r63.recipe == null ? null : ctx_r63.recipe.modifiedGuests);
19340
19350
  }
19341
19351
  }
19342
19352
  function CatalogRecipeCardComponent_div_17_Template(rf, ctx) {
19343
19353
  if (rf & 1) {
19344
- i0.ɵɵelementStart(0, "div", 85);
19345
- i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_17_ng_miam_recipe_pricing_1_Template, 1, 2, "ng-miam-recipe-pricing", 86);
19354
+ i0.ɵɵelementStart(0, "div", 79);
19355
+ i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_17_ng_miam_recipe_pricing_1_Template, 1, 2, "ng-miam-recipe-pricing", 80);
19346
19356
  i0.ɵɵelementEnd();
19347
19357
  }
19348
19358
  if (rf & 2) {
@@ -19362,9 +19372,9 @@
19362
19372
  }
19363
19373
  function CatalogRecipeCardComponent_ng_miam_actions_popin_20_Template(rf, ctx) {
19364
19374
  if (rf & 1) {
19365
- var _r72_1 = i0.ɵɵgetCurrentView();
19366
- i0.ɵɵelementStart(0, "ng-miam-actions-popin", 88);
19367
- i0.ɵɵlistener("close", function CatalogRecipeCardComponent_ng_miam_actions_popin_20_Template_ng_miam_actions_popin_close_0_listener() { i0.ɵɵrestoreView(_r72_1); var ctx_r71 = i0.ɵɵnextContext(); return ctx_r71.closeMoreActions(); })("actionTriggered", function CatalogRecipeCardComponent_ng_miam_actions_popin_20_Template_ng_miam_actions_popin_actionTriggered_0_listener($event) { i0.ɵɵrestoreView(_r72_1); var ctx_r73 = i0.ɵɵnextContext(); return ctx_r73.actionTriggered.emit($event); });
19375
+ var _r65_1 = i0.ɵɵgetCurrentView();
19376
+ i0.ɵɵelementStart(0, "ng-miam-actions-popin", 82);
19377
+ i0.ɵɵlistener("close", function CatalogRecipeCardComponent_ng_miam_actions_popin_20_Template_ng_miam_actions_popin_close_0_listener() { i0.ɵɵrestoreView(_r65_1); var ctx_r64 = i0.ɵɵnextContext(); return ctx_r64.closeMoreActions(); })("actionTriggered", function CatalogRecipeCardComponent_ng_miam_actions_popin_20_Template_ng_miam_actions_popin_actionTriggered_0_listener($event) { i0.ɵɵrestoreView(_r65_1); var ctx_r66 = i0.ɵɵnextContext(); return ctx_r66.actionTriggered.emit($event); });
19368
19378
  i0.ɵɵelementEnd();
19369
19379
  }
19370
19380
  }
@@ -19384,10 +19394,16 @@
19384
19394
  */
19385
19395
  var CatalogRecipeCardComponent = /** @class */ (function (_super) {
19386
19396
  __extends(CatalogRecipeCardComponent, _super);
19387
- function CatalogRecipeCardComponent(cdr, recipeService, recipeEventsService, groceriesListsService, userService, pointOfSalesService, contextService, analyticsService, element, toasterService) {
19388
- var _this = _super.call(this, cdr, recipeService, recipeEventsService, groceriesListsService, userService, pointOfSalesService, contextService, analyticsService, element, toasterService) || this;
19397
+ function CatalogRecipeCardComponent(cdr, recipeService, recipeEventsService, groceriesListsService, userService, contextService, analyticsService, element) {
19398
+ var _this = _super.call(this, cdr, recipeService, recipeEventsService, groceriesListsService, userService, contextService, analyticsService, element) || this;
19399
+ _this.cdr = cdr;
19400
+ _this.recipeService = recipeService;
19401
+ _this.recipeEventsService = recipeEventsService;
19402
+ _this.groceriesListsService = groceriesListsService;
19403
+ _this.userService = userService;
19404
+ _this.contextService = contextService;
19405
+ _this.analyticsService = analyticsService;
19389
19406
  _this.element = element;
19390
- _this.toasterService = toasterService;
19391
19407
  _this.eventsGroupId = uuid.v4();
19392
19408
  _this.displayPricing = false;
19393
19409
  _this.displayAddedOnPicture = false;
@@ -19434,15 +19450,8 @@
19434
19450
  this.observer.observe(this.element.nativeElement);
19435
19451
  };
19436
19452
  CatalogRecipeCardComponent.prototype.updateGuests = function (count) {
19437
- var _this = this;
19438
19453
  this.recipe.modifiedGuests = count;
19439
- this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(function (recipeIsInList) {
19440
- if (recipeIsInList) {
19441
- _this.addRecipe(false);
19442
- _this.cdr.detectChanges();
19443
- }
19444
- }));
19445
- this.cdr.detectChanges();
19454
+ this._updateBasket();
19446
19455
  };
19447
19456
  CatalogRecipeCardComponent.prototype.toggleMoreActions = function (event) {
19448
19457
  var _a;
@@ -19459,63 +19468,65 @@
19459
19468
  };
19460
19469
  return CatalogRecipeCardComponent;
19461
19470
  }(RecipeCardComponent));
19462
- CatalogRecipeCardComponent.ɵfac = function CatalogRecipeCardComponent_Factory(t) { return new (t || CatalogRecipeCardComponent)(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), i0.ɵɵdirectiveInject(ToasterService)); };
19471
+ CatalogRecipeCardComponent.ɵfac = function CatalogRecipeCardComponent_Factory(t) { return new (t || CatalogRecipeCardComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
19463
19472
  CatalogRecipeCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogRecipeCardComponent, selectors: [["ng-miam-catalog-recipe-card"]], viewQuery: function CatalogRecipeCardComponent_Query(rf, ctx) {
19464
19473
  if (rf & 1) {
19465
- i0.ɵɵviewQuery(_c0$r, true);
19474
+ i0.ɵɵviewQuery(_c0$s, true);
19475
+ i0.ɵɵviewQuery(_c1$c, true);
19466
19476
  }
19467
19477
  if (rf & 2) {
19468
19478
  var _t;
19469
19479
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.moreActions = _t.first);
19480
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.cta = _t.first);
19470
19481
  }
19471
19482
  }, inputs: { displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture", addRecipeMode: "addRecipeMode", replaceMode: "replaceMode" }, outputs: { actionTriggered: "actionTriggered", removeFromMealsPlanner: "removeFromMealsPlanner", addToMealsPlanner: "addToMealsPlanner", openCatalog: "openCatalog" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 23, vars: 12, consts: function () {
19472
- var i18n_1;
19483
+ var i18n_2;
19473
19484
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
19474
- var MSG_EXTERNAL_3076397314674090145$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____2 = goog.getMsg(" D\u00E9j\u00E0 ajout\u00E9e ");
19475
- i18n_1 = MSG_EXTERNAL_3076397314674090145$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____2;
19485
+ var MSG_EXTERNAL_3076397314674090145$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____3 = goog.getMsg(" D\u00E9j\u00E0 ajout\u00E9e ");
19486
+ i18n_2 = MSG_EXTERNAL_3076397314674090145$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____3;
19476
19487
  }
19477
19488
  else {
19478
- i18n_1 = $localize(templateObject_1$t || (templateObject_1$t = __makeTemplateObject([":\u241Fa0d3005c25313fff41182341708419907740410e\u241F3076397314674090145: D\u00E9j\u00E0 ajout\u00E9e "], [":\u241Fa0d3005c25313fff41182341708419907740410e\u241F3076397314674090145: D\u00E9j\u00E0 ajout\u00E9e "])));
19489
+ i18n_2 = $localize(templateObject_1$t || (templateObject_1$t = __makeTemplateObject([":\u241Fa0d3005c25313fff41182341708419907740410e\u241F3076397314674090145: D\u00E9j\u00E0 ajout\u00E9e "], [":\u241Fa0d3005c25313fff41182341708419907740410e\u241F3076397314674090145: D\u00E9j\u00E0 ajout\u00E9e "])));
19479
19490
  }
19480
- var i18n_3;
19491
+ var i18n_4;
19481
19492
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
19482
- var MSG_EXTERNAL_1356308905753232069$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS___4 = goog.getMsg("Voir le d\u00E9tail");
19483
- i18n_3 = MSG_EXTERNAL_1356308905753232069$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS___4;
19493
+ var MSG_EXTERNAL_4705093661060921903$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS__5 = goog.getMsg("Remplacer");
19494
+ i18n_4 = MSG_EXTERNAL_4705093661060921903$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS__5;
19484
19495
  }
19485
19496
  else {
19486
- i18n_3 = $localize(templateObject_2$m || (templateObject_2$m = __makeTemplateObject([":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"], [":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"])));
19497
+ i18n_4 = $localize(templateObject_2$m || (templateObject_2$m = __makeTemplateObject([":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"], [":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"])));
19487
19498
  }
19488
- var i18n_5;
19499
+ var i18n_6;
19489
19500
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
19490
- var MSG_EXTERNAL_9121654084913491917$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____6 = goog.getMsg("'D\u00E9couvrir l'id\u00E9e repas");
19491
- i18n_5 = MSG_EXTERNAL_9121654084913491917$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____6;
19501
+ var MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS__7 = goog.getMsg("Ajouter");
19502
+ i18n_6 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS__7;
19492
19503
  }
19493
19504
  else {
19494
- i18n_5 = $localize(templateObject_3$h || (templateObject_3$h = __makeTemplateObject([":\u241Fcf75f62b649c64a43589bf341f7d056cd19d0fcc\u241F9121654084913491917:'D\u00E9couvrir l'id\u00E9e repas"], [":\u241Fcf75f62b649c64a43589bf341f7d056cd19d0fcc\u241F9121654084913491917:'D\u00E9couvrir l'id\u00E9e repas"])));
19505
+ i18n_6 = $localize(templateObject_3$h || (templateObject_3$h = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
19495
19506
  }
19496
- var i18n_7;
19507
+ var i18n_8;
19497
19508
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
19498
- var MSG_EXTERNAL_1225769932237505428$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____8 = goog.getMsg("Ajouter les ingr\u00E9dients");
19499
- i18n_7 = MSG_EXTERNAL_1225769932237505428$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____8;
19509
+ var MSG_EXTERNAL_3684169623116339825$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____9 = goog.getMsg("Chef d\u00E9butant");
19510
+ i18n_8 = MSG_EXTERNAL_3684169623116339825$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____9;
19500
19511
  }
19501
19512
  else {
19502
- i18n_7 = $localize(templateObject_4$c || (templateObject_4$c = __makeTemplateObject([":\u241Fe3d3d7039794cbbd2e16e8548bfbf9ee8fa29247\u241F1225769932237505428:Ajouter les ingr\u00E9dients"], [":\u241Fe3d3d7039794cbbd2e16e8548bfbf9ee8fa29247\u241F1225769932237505428:Ajouter les ingr\u00E9dients"])));
19513
+ i18n_8 = $localize(templateObject_4$c || (templateObject_4$c = __makeTemplateObject([":\u241F96cca7cb17582a9b01053a242ca907b721fad7fe\u241F3684169623116339825:Chef d\u00E9butant"], [":\u241F96cca7cb17582a9b01053a242ca907b721fad7fe\u241F3684169623116339825:Chef d\u00E9butant"])));
19503
19514
  }
19504
19515
  var i18n_10;
19505
19516
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
19506
- var MSG_EXTERNAL_4705093661060921903$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS__11 = goog.getMsg("Remplacer");
19507
- i18n_10 = MSG_EXTERNAL_4705093661060921903$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS__11;
19517
+ var MSG_EXTERNAL_7733455880752157102$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____11 = goog.getMsg("Chef interm\u00E9diaire");
19518
+ i18n_10 = MSG_EXTERNAL_7733455880752157102$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____11;
19508
19519
  }
19509
19520
  else {
19510
- i18n_10 = $localize(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject([":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"], [":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"])));
19521
+ i18n_10 = $localize(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject([":\u241Fccfd103e2bbd9a80c6d3a226332a77c93c88d871\u241F7733455880752157102:Chef interm\u00E9diaire"], [":\u241Fccfd103e2bbd9a80c6d3a226332a77c93c88d871\u241F7733455880752157102:Chef interm\u00E9diaire"])));
19511
19522
  }
19512
19523
  var i18n_12;
19513
19524
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
19514
- var MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS__13 = goog.getMsg("Ajouter");
19515
- i18n_12 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS__13;
19525
+ var MSG_EXTERNAL_8735393154824887316$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____13 = goog.getMsg("Top chef");
19526
+ i18n_12 = MSG_EXTERNAL_8735393154824887316$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____13;
19516
19527
  }
19517
19528
  else {
19518
- i18n_12 = $localize(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
19529
+ i18n_12 = $localize(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject([":\u241Ffb603a6dffb1bfa95a9b7eda7e134156ab67f0b3\u241F8735393154824887316:Top chef"], [":\u241Ffb603a6dffb1bfa95a9b7eda7e134156ab67f0b3\u241F8735393154824887316:Top chef"])));
19519
19530
  }
19520
19531
  var i18n_14;
19521
19532
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -19523,33 +19534,9 @@
19523
19534
  i18n_14 = MSG_EXTERNAL_3684169623116339825$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____15;
19524
19535
  }
19525
19536
  else {
19526
- i18n_14 = $localize(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject([":\u241F96cca7cb17582a9b01053a242ca907b721fad7fe\u241F3684169623116339825:Chef d\u00E9butant"], [":\u241F96cca7cb17582a9b01053a242ca907b721fad7fe\u241F3684169623116339825:Chef d\u00E9butant"])));
19527
- }
19528
- var i18n_16;
19529
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
19530
- var MSG_EXTERNAL_7733455880752157102$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____17 = goog.getMsg("Chef interm\u00E9diaire");
19531
- i18n_16 = MSG_EXTERNAL_7733455880752157102$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____17;
19532
- }
19533
- else {
19534
- i18n_16 = $localize(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject([":\u241Fccfd103e2bbd9a80c6d3a226332a77c93c88d871\u241F7733455880752157102:Chef interm\u00E9diaire"], [":\u241Fccfd103e2bbd9a80c6d3a226332a77c93c88d871\u241F7733455880752157102:Chef interm\u00E9diaire"])));
19535
- }
19536
- var i18n_18;
19537
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
19538
- var MSG_EXTERNAL_8735393154824887316$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____19 = goog.getMsg("Top chef");
19539
- i18n_18 = MSG_EXTERNAL_8735393154824887316$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____19;
19540
- }
19541
- else {
19542
- i18n_18 = $localize(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject([":\u241Ffb603a6dffb1bfa95a9b7eda7e134156ab67f0b3\u241F8735393154824887316:Top chef"], [":\u241Ffb603a6dffb1bfa95a9b7eda7e134156ab67f0b3\u241F8735393154824887316:Top chef"])));
19543
- }
19544
- var i18n_20;
19545
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
19546
- var MSG_EXTERNAL_3684169623116339825$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____21 = goog.getMsg("Chef d\u00E9butant");
19547
- i18n_20 = MSG_EXTERNAL_3684169623116339825$$LIB__WEB_COMPONENTS_RECIPE_CARDS_CATALOG_RECIPE_CARD_CATALOG_RECIPE_CARD_COMPONENT_TS____21;
19548
- }
19549
- else {
19550
- i18n_20 = $localize(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject([":\u241F96cca7cb17582a9b01053a242ca907b721fad7fe\u241F3684169623116339825:Chef d\u00E9butant"], [":\u241F96cca7cb17582a9b01053a242ca907b721fad7fe\u241F3684169623116339825:Chef d\u00E9butant"])));
19537
+ i18n_14 = $localize(templateObject_7$5 || (templateObject_7$5 = __makeTemplateObject([":\u241F96cca7cb17582a9b01053a242ca907b721fad7fe\u241F3684169623116339825:Chef d\u00E9butant"], [":\u241F96cca7cb17582a9b01053a242ca907b721fad7fe\u241F3684169623116339825:Chef d\u00E9butant"])));
19551
19538
  }
19552
- return [[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"], ["class", "miam-catalog-recipe-card__ingredients__pictures", 4, "ngIf"], ["class", "m-button-primary", 3, "disabled", "ngClass", "click", 4, "ngIf"], ["class", "miam-catalog-recipe-card__actions", 4, "ngIf"], ["class", "m-button-primary reverse", 3, "click", 4, "ngIf"], [1, "miam-catalog-card__attributes__infos"], [1, "miam-catalog-card__attributes__infos", "recipe__time-and-difficulty"], ["class", "miam-catalog-card__attributes__info recipe__total__time", 4, "ngIf", "ngIfElse"], ["class", "miam-catalog-card__attributes__info recipe__difficulty", 3, "ngClass", 4, "ngIf"], ["class", "miam-catalog-card__attributes__info recipe__price", 4, "ngIf"], ["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"], ["class", "miam-catalog-card__picture__sponsor", 4, "ngIf"], ["class", "miam-catalog-card__picture__filigrane", 4, "ngIf"], ["class", "miam-catalog-recipe-card__picture__video", 4, "ngIf"], [4, "ngIf"], [4, "ngIf", "ngIfElse"], ["textSkeleton", ""], [1, "miam-catalog-recipe-card__picture__actions"], ["class", "miam-catalog-recipe-card__actions__icon m-button-primary reverse", 3, "click", 4, "ngIf", "ngIfElse"], ["like", ""], [1, "miam-catalog-card__picture__sponsor"], [3, "src"], [1, "miam-catalog-card__picture__filigrane"], [1, "miam-catalog-recipe-card__picture__video"], ["primaryColor", "black", 3, "iconName", "width", "height"], ["class", "miam-catalog-recipe-card__picture__tag", 4, "ngIf"], [1, "miam-catalog-recipe-card__picture__tag"], i18n_1, [1, "miam-catalog-recipe-card__attributes__title", 3, "click"], [3, "type"], [1, "miam-catalog-recipe-card__actions__icon", "m-button-primary", "reverse", 3, "click"], ["miamMoreActions", ""], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], ["width", "17", "height", "17", "class", "miam-catalog-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], ["width", "17", "height", "17", 1, "miam-catalog-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-catalog-recipe-card__ingredients__pictures"], [1, "miam-catalog-recipe-card__ingredients__picture"], ["class", "miam-catalog-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-catalog-recipe-card__ingredients__more"], [1, "m-button-primary", 3, "disabled", "ngClass", "click"], ["originalCTA", ""], [3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], i18n_3, i18n_5, i18n_7, [3, "width", "height", "iconName"], [1, "miam-catalog-recipe-card__actions"], [1, "miam-catalog-recipe-card__actions__link", "replace", 3, "click"], i18n_10, [1, "miam-catalog-recipe-card__actions__link", "delete", 3, "click"], [1, "m-button-primary", "reverse", 3, "click"], i18n_12, [1, "miam-catalog-card__attributes__info", "recipe__total__time"], ["width", "18", "height", "18", "primaryColor", "var(--m-catalog-card-details-color)", 3, "iconName"], [1, "miam-catalog-card__info__label"], [1, "miam-catalog-card__attributes__info", "recipe__difficulty", 3, "ngClass"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["primaryColor", "var(--m-catalog-card-details-color)", 3, "width", "height", "iconName"], ["class", "miam-catalog-card__info__label easy", 4, "ngIf", "ngIfElse"], ["difficultyEasyDefault", ""], [1, "miam-catalog-card__info__label", "easy"], i18n_14, ["class", "miam-catalog-card__info__label medium", 4, "ngIf", "ngIfElse"], ["difficultyMediumDefault", ""], [1, "miam-catalog-card__info__label", "medium"], i18n_16, ["class", "miam-catalog-card__info__label hard", 4, "ngIf", "ngIfElse"], ["difficultyHardDefault", ""], [1, "miam-catalog-card__info__label", "hard"], i18n_18, ["difficultyDefault", ""], i18n_20, [1, "miam-catalog-card__attributes__info", "recipe__price"], [3, "recipe", "serves", 4, "ngIf"], [3, "recipe", "serves"], [3, "close", "actionTriggered"]];
19539
+ return [[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"], ["class", "miam-catalog-recipe-card__ingredients__pictures", 4, "ngIf"], [3, "recipe", "cardType", "previewAllowed", "helpButtonAllowed", "displayGuests", "displayed", "clicked", 4, "ngIf"], ["class", "miam-catalog-recipe-card__actions", 4, "ngIf"], ["class", "m-button-primary reverse", 3, "click", 4, "ngIf"], [1, "miam-catalog-card__attributes__infos"], [1, "miam-catalog-card__attributes__infos", "recipe__time-and-difficulty"], ["class", "miam-catalog-card__attributes__info recipe__total__time", 4, "ngIf", "ngIfElse"], ["class", "miam-catalog-card__attributes__info recipe__difficulty", 3, "ngClass", 4, "ngIf"], ["class", "miam-catalog-card__attributes__info recipe__price", 4, "ngIf"], ["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"], ["class", "miam-catalog-card__picture__sponsor", 4, "ngIf"], ["class", "miam-catalog-card__picture__filigrane", 4, "ngIf"], ["class", "miam-catalog-recipe-card__picture__video", 4, "ngIf"], [4, "ngIf"], [4, "ngIf", "ngIfElse"], ["textSkeleton", ""], [1, "miam-catalog-recipe-card__picture__actions"], ["class", "miam-catalog-recipe-card__actions__icon m-button-primary reverse", 3, "click", 4, "ngIf", "ngIfElse"], ["like", ""], [1, "miam-catalog-card__picture__sponsor"], [3, "src"], [1, "miam-catalog-card__picture__filigrane"], [1, "miam-catalog-recipe-card__picture__video"], ["primaryColor", "black", 3, "iconName", "width", "height"], ["class", "miam-catalog-recipe-card__picture__tag", 4, "ngIf"], [1, "miam-catalog-recipe-card__picture__tag"], i18n_2, [1, "miam-catalog-recipe-card__attributes__title", 3, "click"], [3, "type"], [1, "miam-catalog-recipe-card__actions__icon", "m-button-primary", "reverse", 3, "click"], ["miamMoreActions", ""], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], ["width", "17", "height", "17", "class", "miam-catalog-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], ["width", "17", "height", "17", 1, "miam-catalog-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-catalog-recipe-card__ingredients__pictures"], [1, "miam-catalog-recipe-card__ingredients__picture"], ["class", "miam-catalog-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-catalog-recipe-card__ingredients__more"], [3, "recipe", "cardType", "previewAllowed", "helpButtonAllowed", "displayGuests", "displayed", "clicked"], ["cardCta", ""], [1, "miam-catalog-recipe-card__actions"], [1, "miam-catalog-recipe-card__actions__link", "replace", 3, "click"], i18n_4, [1, "miam-catalog-recipe-card__actions__link", "delete", 3, "click"], [1, "m-button-primary", "reverse", 3, "click"], i18n_6, [1, "miam-catalog-card__attributes__info", "recipe__total__time"], ["width", "18", "height", "18", "primaryColor", "var(--m-catalog-card-details-color)", 3, "iconName"], [1, "miam-catalog-card__info__label"], [1, "miam-catalog-card__attributes__info", "recipe__difficulty", 3, "ngClass"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["primaryColor", "var(--m-catalog-card-details-color)", 3, "width", "height", "iconName"], ["class", "miam-catalog-card__info__label easy", 4, "ngIf", "ngIfElse"], ["difficultyEasyDefault", ""], [1, "miam-catalog-card__info__label", "easy"], i18n_8, ["class", "miam-catalog-card__info__label medium", 4, "ngIf", "ngIfElse"], ["difficultyMediumDefault", ""], [1, "miam-catalog-card__info__label", "medium"], i18n_10, ["class", "miam-catalog-card__info__label hard", 4, "ngIf", "ngIfElse"], ["difficultyHardDefault", ""], [1, "miam-catalog-card__info__label", "hard"], i18n_12, ["difficultyDefault", ""], i18n_14, [1, "miam-catalog-card__attributes__info", "recipe__price"], [3, "recipe", "serves", 4, "ngIf"], [3, "recipe", "serves"], [3, "close", "actionTriggered"]];
19553
19540
  }, template: function CatalogRecipeCardComponent_Template(rf, ctx) {
19554
19541
  if (rf & 1) {
19555
19542
  i0.ɵɵelementStart(0, "div", 0);
@@ -19563,7 +19550,7 @@
19563
19550
  i0.ɵɵelementStart(7, "div", 4);
19564
19551
  i0.ɵɵelementStart(8, "div", 5);
19565
19552
  i0.ɵɵtemplate(9, CatalogRecipeCardComponent_div_9_Template, 6, 3, "div", 6);
19566
- i0.ɵɵtemplate(10, CatalogRecipeCardComponent_button_10_Template, 10, 14, "button", 7);
19553
+ i0.ɵɵtemplate(10, CatalogRecipeCardComponent_ng_miam_recipe_card_cta_10_Template, 2, 5, "ng-miam-recipe-card-cta", 7);
19567
19554
  i0.ɵɵtemplate(11, CatalogRecipeCardComponent_div_11_Template, 6, 1, "div", 8);
19568
19555
  i0.ɵɵtemplate(12, CatalogRecipeCardComponent_button_12_Template, 3, 0, "button", 9);
19569
19556
  i0.ɵɵelementEnd();
@@ -19604,7 +19591,7 @@
19604
19591
  i0.ɵɵadvance(3);
19605
19592
  i0.ɵɵproperty("ngIf", ctx.actionsOpened);
19606
19593
  }
19607
- }, directives: [i2$1.NgIf, IconComponent, SkeletonComponent, LikeButtonComponent, i2$1.NgClass, LoaderComponent, i2$1.NgSwitch, i2$1.NgSwitchCase, i2$1.NgSwitchDefault, RecipePricingComponent, ActionsPopinComponent, CORSOverlayComponent], pipes: [i2$1.AsyncPipe], styles: [".cal-month-view .cal-header{font-weight:bolder;text-align:center}.cal-month-view .cal-header .cal-cell{display:block;overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.cal-month-view .cal-days{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{flex:1;min-height:78px}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{align-items:stretch;display:flex;flex:1;flex-direction:column;float:left}.cal-month-view .cal-cell .cal-event{pointer-events:all!important}.cal-month-view .cal-day-cell{min-height:100px}@media (-ms-high-contrast:none){.cal-month-view .cal-day-cell{display:block}}.cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid}.cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid}.cal-month-view .cal-day-badge{border-radius:10px;display:inline-block;font-size:12px;font-weight:700;line-height:1;margin-left:10px;margin-top:18px;min-width:10px;padding:3px 7px;text-align:center;vertical-align:middle;white-space:nowrap}.cal-month-view .cal-day-number{float:right;font-size:1.2em;font-weight:400;margin-bottom:10px;margin-right:15px;margin-top:15px;opacity:.5}.cal-month-view .cal-events{align-items:flex-end;display:flex;flex:1;flex-wrap:wrap;line-height:10px;margin:3px}.cal-month-view .cal-event{border-radius:50%;display:inline-block;height:10px;margin:2px;width:10px}.cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer}.cal-month-view .cal-day-cell.cal-out-month .cal-day-number{cursor:default;opacity:.1}.cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em}.cal-month-view .cal-open-day-events{padding:15px}.cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px}.cal-month-view .cal-out-month .cal-day-badge,.cal-month-view .cal-out-month .cal-event{opacity:.3}.cal-month-view .cal-draggable{cursor:move}.cal-month-view .cal-drag-active *{pointer-events:none}.cal-month-view .cal-event-title{cursor:pointer}.cal-month-view .cal-event-title:hover{text-decoration:underline}.cal-month-view{background-color:#fff}.cal-month-view .cal-cell-row:hover{background-color:#fafafa}.cal-month-view .cal-cell-row .cal-cell:hover,.cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed}.cal-month-view .cal-days{border-color:#e1e1e1}.cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1}.cal-month-view .cal-days .cal-cell-row{border-bottom-color:#e1e1e1}.cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff}.cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff}.cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000}.cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7}.cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important}.cal-month-view .cal-open-day-events{background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5);color:#fff}.cal-week-view *{box-sizing:border-box}.cal-week-view .cal-day-headers{border:1px solid;display:flex;padding-left:70px}.cal-week-view .cal-day-headers .cal-header{flex:1;padding:5px;text-align:center}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid}.cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid}.cal-week-view .cal-day-headers span{font-weight:400;opacity:.5}.cal-week-view .cal-day-column{border-left:1px solid;flex-grow:1}.cal-week-view .cal-event{border:1px solid;font-size:12px}.cal-week-view .cal-time-label-column{height:100%;width:70px}.cal-week-view .cal-current-time-marker{height:2px;position:absolute;width:100%;z-index:2}.cal-week-view .cal-all-day-events{border-bottom:3px solid;border-left:1px solid;border-right:1px solid;border-top:0;padding-top:3px;position:relative}.cal-week-view .cal-all-day-events .cal-day-columns{display:flex;height:100%;position:absolute;top:0;width:100%;z-index:0}.cal-week-view .cal-all-day-events .cal-events-row{height:31px;margin-left:70px;position:relative}.cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute}.cal-week-view .cal-all-day-events .cal-event-container.resize-active{pointer-events:none;z-index:1}.cal-week-view .cal-all-day-events .cal-event{height:28px;line-height:28px;margin-left:2px;margin-right:2px;padding:0 5px}.cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-bottom-left-radius:5px;border-top-left-radius:5px}.cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-bottom-right-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-all-day-events .cal-time-label-column{align-items:center;display:flex;font-size:14px;justify-content:center}.cal-week-view .cal-all-day-events .cal-resize-handle{cursor:col-resize;height:100%;position:absolute;top:0;width:6px}.cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0}.cal-week-view .cal-event,.cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-week-view .cal-drag-active{pointer-events:none;z-index:1}.cal-week-view .cal-drag-active *{pointer-events:none}.cal-week-view .cal-time-events{border:1px solid;border-top:0;display:flex;position:relative}.cal-week-view .cal-time-events .cal-day-columns{display:flex;flex-grow:1}.cal-week-view .cal-time-events .cal-day-column,.cal-week-view .cal-time-events .cal-events-container{position:relative}.cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1}.cal-week-view .cal-time-events .cal-event{height:calc(100% - 2px);line-height:25px;margin:1px;padding:0 5px;width:calc(100% - 2px)}.cal-week-view .cal-time-events .cal-resize-handle{cursor:row-resize;height:4px;position:absolute;width:100%}.cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0}.cal-week-view .cal-hour-segment{position:relative}.cal-week-view .cal-hour-segment:after{content:\"\\00a0\"}.cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer}.cal-week-view .cal-draggable{cursor:move}.cal-week-view .cal-hour-segment,.cal-week-view mwl-calendar-week-view-hour-segment{display:block}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom:thin dashed}.cal-week-view .cal-time{font-weight:700;padding-top:5px;text-align:center;width:70px}.cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none}.cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.cal-week-view{background-color:#fff;border-top:1px solid #e1e1e1}.cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-drag-over,.cal-week-view .cal-day-headers .cal-header:hover{background-color:#ededed}.cal-week-view .cal-day-column{border-left-color:#e1e1e1}.cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff}.cal-week-view .cal-all-day-events{border-color:#e1e1e1}.cal-week-view .cal-header.cal-today{background-color:#e8fde7}.cal-week-view .cal-header.cal-weekend span{color:#8b0000}.cal-week-view .cal-time-events{border-color:#e1e1e1}.cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed}.cal-week-view .cal-hour-odd{background-color:#fafafa}.cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1}.cal-week-view .cal-current-time-marker{background-color:#ea4334}.cal-day-view mwl-calendar-week-view-header{display:none}.cal-day-view .cal-events-container{margin-left:70px}.cal-day-view .cal-day-column{border-left:0}.cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)}.cal-tooltip{display:block;font-size:11px;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;opacity:.9;position:absolute;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:break-word;z-index:1070}.cal-tooltip.cal-tooltip-top{margin-top:-3px;padding:5px 0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-width:5px 5px 0;bottom:0;left:50%;margin-left:-5px}.cal-tooltip.cal-tooltip-right{margin-left:3px;padding:0 5px}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-width:5px 5px 5px 0;left:0;margin-top:-5px;top:50%}.cal-tooltip.cal-tooltip-bottom{margin-top:3px;padding:5px 0}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-width:0 5px 5px;left:50%;margin-left:-5px;top:0}.cal-tooltip.cal-tooltip-left{margin-left:-3px;padding:0 5px}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-width:5px 0 5px 5px;margin-top:-5px;right:0;top:50%}.cal-tooltip-inner{border-radius:.25rem;max-width:200px;padding:3px 8px;text-align:center}.cal-tooltip-arrow{border-color:transparent;border-style:solid;height:0;position:absolute;width:0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000}.cal-tooltip-inner{background-color:#000;color:#fff}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{-moz-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;align-items:center;border-radius:var(--m-button-radius);cursor:pointer;display:flex;font-size:var(--m-button-text-size);font-weight:var(--m-button-text-weight);justify-content:center;line-height:var(--m-button-text-height);outline:0;padding:var(--m-button-padding);user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-primary:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-primary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-primary.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-primary.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-secondary{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-secondary:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-secondary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-secondary.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-secondary.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-grey{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-grey:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-grey.reverse{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-grey.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-grey.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-input{align-items:center;border:1px solid var(--m-color-grey06);border-radius:5px;display:flex;justify-content:space-between;margin-top:16px;max-width:320px;min-width:200px;outline:none;padding:8px 16px}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-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}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-gap:var(--miam-button-gap,10px);--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-height:var(--miam-button-text-height,calc(var(--m-button-text-size)*1.5));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-danger:var(--miam-color-danger,#fbc2aa);--m-color-danger-text:var(--miam-color-danger-text,#9f1628);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-white:var(--miam-color-white,#fafcfe);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-small:var(--miam-font-size-small,14px);--m-loader-size:var(--miam-loader-sizes,40px);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-progress-tracker-background-color:var(--miam-progress-tracker-background-color,var(--m-color-grey));--m-progress-tracker-color:var(--miam-progress-tracker-color,var(--m-color-primary));--m-progress-tracker-danger-color:var(--miam-progress-tracker-danger-color,var(--m-color-danger));--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0);--m-z-index-toaster:var(--miam-z-index-toaster,6002)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){color:var(--m-color-slate);font-family:Work Sans;font-size:var(--m-font-size-medium);font-style:normal;font-weight:500;line-height:24px}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-size:40px;font-weight:700;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{-webkit-animation:none!important;-webkit-transition:none!important;animation:none!important;transition:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}ng-miam-catalog-recipe-card{flex-grow:1;margin:calc(var(--m-catalog-cards-spacing)/2);max-width:calc(var(--m-catalog-card-minwidth)*1.1)}.miam-catalog-recipe-card{background-color:var(--m-catalog-card-bg-color);border:1px solid #ddd;border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);display:flex;flex-direction:column;height:var(--m-catalog-card-height);min-width:var(--m-catalog-card-minwidth);position:relative;width:100%}@media (min-width:1023px){.miam-catalog-recipe-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.05)}}.miam-catalog-recipe-card .miam-catalog-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:var(--m-catalog-card-picture-height);position:relative}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:calc(var(--m-catalog-card-picture-height) + 1px);left:-1px;overflow:hidden;position:absolute;top:-1px;width:calc(100% + 2px)}.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:100%;height:var(--m-catalog-card-picture-height);object-fit:cover;position:relative;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{align-items:flex-start;display:flex;height:48px;justify-content:flex-start;left:16px;order:2;position:absolute;top:16px;width:64px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor img{-o-object-fit:contain;height:auto;max-height:100%;max-width:100%;object-fit:contain;width:auto}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane{align-items:flex-end;bottom:16px;display:flex;height:48px;justify-content:flex-end;order:2;position:absolute;right:16px;width:72px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane img{-o-object-fit:contain;height:auto;max-height:100%;max-width:100%;object-fit:contain;width:auto}.miam-catalog-recipe-card .miam-catalog-card__attributes{align-items:center;flex:1 1;flex-direction:column-reverse;justify-content:flex-start;padding:12px 16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{display:flex;flex-direction:row;justify-content:space-around;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info{align-items:center;display:flex;flex-direction:column;padding:0 16px;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info:first-child{border-right:1px solid #ddd}.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-catalog-card-details-color);font-size:var(--m-catalog-card-details-size);line-height:var(--m-catalog-card-details-line-height);margin:2px 0 0;text-align:center;width:100%}.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}.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:rgba(0,0,0,.6);border-radius:5px;color:var(--m-color-white);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;color:var(--m-color-black);cursor:pointer;display:-webkit-box;font-size:var(--m-catalog-card-title-size);font-weight:700;left:0;letter-spacing:normal;line-height:var(--m-catalog-card-line-height);margin:12px 0;overflow:hidden;padding:0 16px;position:absolute;text-align:center;text-overflow:ellipsis;top:var(--m-catalog-card-picture-height);transition:var(--m-default-transition);width:100%}@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 div.miam-catalog-recipe-card__actions__icon{border:none;padding:8px}@media (min-width:1023px){.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions div.miam-catalog-recipe-card__actions__icon:hover{background-color:#ececec}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions div.miam-catalog-recipe-card__actions__icon:hover .icon-container svg path{fill:var(--m-color-primary)}}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control{align-items:center;display:flex;justify-content:center;margin-top:12px;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-recipe-card__ingredients__pictures{display:none}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__actions{align-items:center;display:flex;flex-direction:row;gap:16px;justify-content:space-between;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__actions .miam-catalog-recipe-card__actions__link{color:var(--m-color-primary);cursor:pointer;font-size:14px;line-height:22px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__actions .miam-catalog-recipe-card__actions__link:hover{text-decoration:underline}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control button.m-button-primary .miam-loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:16px;margin-left:8px;width:16px}"], encapsulation: 2, changeDetection: 0 });
19594
+ }, directives: [i2$1.NgIf, IconComponent, SkeletonComponent, LikeButtonComponent, RecipeCardCtaComponent, i2$1.NgClass, i2$1.NgSwitch, i2$1.NgSwitchCase, i2$1.NgSwitchDefault, RecipePricingComponent, ActionsPopinComponent, CORSOverlayComponent], pipes: [i2$1.AsyncPipe], styles: [".cal-month-view .cal-header{font-weight:bolder;text-align:center}.cal-month-view .cal-header .cal-cell{display:block;overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.cal-month-view .cal-days{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{flex:1;min-height:78px}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{align-items:stretch;display:flex;flex:1;flex-direction:column;float:left}.cal-month-view .cal-cell .cal-event{pointer-events:all!important}.cal-month-view .cal-day-cell{min-height:100px}@media (-ms-high-contrast:none){.cal-month-view .cal-day-cell{display:block}}.cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid}.cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid}.cal-month-view .cal-day-badge{border-radius:10px;display:inline-block;font-size:12px;font-weight:700;line-height:1;margin-left:10px;margin-top:18px;min-width:10px;padding:3px 7px;text-align:center;vertical-align:middle;white-space:nowrap}.cal-month-view .cal-day-number{float:right;font-size:1.2em;font-weight:400;margin-bottom:10px;margin-right:15px;margin-top:15px;opacity:.5}.cal-month-view .cal-events{align-items:flex-end;display:flex;flex:1;flex-wrap:wrap;line-height:10px;margin:3px}.cal-month-view .cal-event{border-radius:50%;display:inline-block;height:10px;margin:2px;width:10px}.cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer}.cal-month-view .cal-day-cell.cal-out-month .cal-day-number{cursor:default;opacity:.1}.cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em}.cal-month-view .cal-open-day-events{padding:15px}.cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px}.cal-month-view .cal-out-month .cal-day-badge,.cal-month-view .cal-out-month .cal-event{opacity:.3}.cal-month-view .cal-draggable{cursor:move}.cal-month-view .cal-drag-active *{pointer-events:none}.cal-month-view .cal-event-title{cursor:pointer}.cal-month-view .cal-event-title:hover{text-decoration:underline}.cal-month-view{background-color:#fff}.cal-month-view .cal-cell-row:hover{background-color:#fafafa}.cal-month-view .cal-cell-row .cal-cell:hover,.cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed}.cal-month-view .cal-days{border-color:#e1e1e1}.cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1}.cal-month-view .cal-days .cal-cell-row{border-bottom-color:#e1e1e1}.cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff}.cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff}.cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000}.cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7}.cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important}.cal-month-view .cal-open-day-events{background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5);color:#fff}.cal-week-view *{box-sizing:border-box}.cal-week-view .cal-day-headers{border:1px solid;display:flex;padding-left:70px}.cal-week-view .cal-day-headers .cal-header{flex:1;padding:5px;text-align:center}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid}.cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid}.cal-week-view .cal-day-headers span{font-weight:400;opacity:.5}.cal-week-view .cal-day-column{border-left:1px solid;flex-grow:1}.cal-week-view .cal-event{border:1px solid;font-size:12px}.cal-week-view .cal-time-label-column{height:100%;width:70px}.cal-week-view .cal-current-time-marker{height:2px;position:absolute;width:100%;z-index:2}.cal-week-view .cal-all-day-events{border-bottom:3px solid;border-left:1px solid;border-right:1px solid;border-top:0;padding-top:3px;position:relative}.cal-week-view .cal-all-day-events .cal-day-columns{display:flex;height:100%;position:absolute;top:0;width:100%;z-index:0}.cal-week-view .cal-all-day-events .cal-events-row{height:31px;margin-left:70px;position:relative}.cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute}.cal-week-view .cal-all-day-events .cal-event-container.resize-active{pointer-events:none;z-index:1}.cal-week-view .cal-all-day-events .cal-event{height:28px;line-height:28px;margin-left:2px;margin-right:2px;padding:0 5px}.cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-bottom-left-radius:5px;border-top-left-radius:5px}.cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-bottom-right-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-all-day-events .cal-time-label-column{align-items:center;display:flex;font-size:14px;justify-content:center}.cal-week-view .cal-all-day-events .cal-resize-handle{cursor:col-resize;height:100%;position:absolute;top:0;width:6px}.cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0}.cal-week-view .cal-event,.cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-week-view .cal-drag-active{pointer-events:none;z-index:1}.cal-week-view .cal-drag-active *{pointer-events:none}.cal-week-view .cal-time-events{border:1px solid;border-top:0;display:flex;position:relative}.cal-week-view .cal-time-events .cal-day-columns{display:flex;flex-grow:1}.cal-week-view .cal-time-events .cal-day-column,.cal-week-view .cal-time-events .cal-events-container{position:relative}.cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1}.cal-week-view .cal-time-events .cal-event{height:calc(100% - 2px);line-height:25px;margin:1px;padding:0 5px;width:calc(100% - 2px)}.cal-week-view .cal-time-events .cal-resize-handle{cursor:row-resize;height:4px;position:absolute;width:100%}.cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0}.cal-week-view .cal-hour-segment{position:relative}.cal-week-view .cal-hour-segment:after{content:\"\\00a0\"}.cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer}.cal-week-view .cal-draggable{cursor:move}.cal-week-view .cal-hour-segment,.cal-week-view mwl-calendar-week-view-hour-segment{display:block}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom:thin dashed}.cal-week-view .cal-time{font-weight:700;padding-top:5px;text-align:center;width:70px}.cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none}.cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.cal-week-view{background-color:#fff;border-top:1px solid #e1e1e1}.cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-drag-over,.cal-week-view .cal-day-headers .cal-header:hover{background-color:#ededed}.cal-week-view .cal-day-column{border-left-color:#e1e1e1}.cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff}.cal-week-view .cal-all-day-events{border-color:#e1e1e1}.cal-week-view .cal-header.cal-today{background-color:#e8fde7}.cal-week-view .cal-header.cal-weekend span{color:#8b0000}.cal-week-view .cal-time-events{border-color:#e1e1e1}.cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed}.cal-week-view .cal-hour-odd{background-color:#fafafa}.cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1}.cal-week-view .cal-current-time-marker{background-color:#ea4334}.cal-day-view mwl-calendar-week-view-header{display:none}.cal-day-view .cal-events-container{margin-left:70px}.cal-day-view .cal-day-column{border-left:0}.cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)}.cal-tooltip{display:block;font-size:11px;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;opacity:.9;position:absolute;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:break-word;z-index:1070}.cal-tooltip.cal-tooltip-top{margin-top:-3px;padding:5px 0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-width:5px 5px 0;bottom:0;left:50%;margin-left:-5px}.cal-tooltip.cal-tooltip-right{margin-left:3px;padding:0 5px}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-width:5px 5px 5px 0;left:0;margin-top:-5px;top:50%}.cal-tooltip.cal-tooltip-bottom{margin-top:3px;padding:5px 0}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-width:0 5px 5px;left:50%;margin-left:-5px;top:0}.cal-tooltip.cal-tooltip-left{margin-left:-3px;padding:0 5px}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-width:5px 0 5px 5px;margin-top:-5px;right:0;top:50%}.cal-tooltip-inner{border-radius:.25rem;max-width:200px;padding:3px 8px;text-align:center}.cal-tooltip-arrow{border-color:transparent;border-style:solid;height:0;position:absolute;width:0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000}.cal-tooltip-inner{background-color:#000;color:#fff}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{-moz-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;align-items:center;border-radius:var(--m-button-radius);cursor:pointer;display:flex;font-size:var(--m-button-text-size);font-weight:var(--m-button-text-weight);justify-content:center;line-height:var(--m-button-text-height);outline:0;padding:var(--m-button-padding);user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-primary:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-primary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-primary.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-primary.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-secondary{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-secondary:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-secondary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-secondary.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-secondary.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-grey{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-grey:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-button-grey.reverse{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-grey.reverse:disabled{background-color:var(--m-color-grey);color:var(--m-color-grey-text)}.m-button-grey.reverse:disabled ng-miam-icon svg path{fill:var(--m-color-grey-text)}.m-input{align-items:center;border:1px solid var(--m-color-grey06);border-radius:5px;display:flex;justify-content:space-between;margin-top:16px;max-width:320px;min-width:200px;outline:none;padding:8px 16px}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-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}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-gap:var(--miam-button-gap,10px);--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-height:var(--miam-button-text-height,calc(var(--m-button-text-size)*1.5));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-danger:var(--miam-color-danger,#fbc2aa);--m-color-danger-text:var(--miam-color-danger-text,#9f1628);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-white:var(--miam-color-white,#fafcfe);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-small:var(--miam-font-size-small,14px);--m-loader-size:var(--miam-loader-sizes,40px);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-progress-tracker-background-color:var(--miam-progress-tracker-background-color,var(--m-color-grey));--m-progress-tracker-color:var(--miam-progress-tracker-color,var(--m-color-primary));--m-progress-tracker-danger-color:var(--miam-progress-tracker-danger-color,var(--m-color-danger));--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0);--m-z-index-toaster:var(--miam-z-index-toaster,6002)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){color:var(--m-color-slate);font-family:Work Sans;font-size:var(--m-font-size-medium);font-style:normal;font-weight:500;line-height:24px}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-size:40px;font-weight:700;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{-webkit-animation:none!important;-webkit-transition:none!important;animation:none!important;transition:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}ng-miam-catalog-recipe-card{flex-grow:1;margin:calc(var(--m-catalog-cards-spacing)/2);max-width:calc(var(--m-catalog-card-minwidth)*1.1)}.miam-catalog-recipe-card{background-color:var(--m-catalog-card-bg-color);border:1px solid #ddd;border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);display:flex;flex-direction:column;height:var(--m-catalog-card-height);min-width:var(--m-catalog-card-minwidth);position:relative;width:100%}@media (min-width:1023px){.miam-catalog-recipe-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.05)}}.miam-catalog-recipe-card .miam-catalog-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:var(--m-catalog-card-picture-height);position:relative}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:calc(var(--m-catalog-card-picture-height) + 1px);left:-1px;overflow:hidden;position:absolute;top:-1px;width:calc(100% + 2px)}.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:100%;height:var(--m-catalog-card-picture-height);object-fit:cover;position:relative;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{align-items:flex-start;display:flex;height:48px;justify-content:flex-start;left:16px;order:2;position:absolute;top:16px;width:64px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor img{-o-object-fit:contain;height:auto;max-height:100%;max-width:100%;object-fit:contain;width:auto}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane{align-items:flex-end;bottom:16px;display:flex;height:48px;justify-content:flex-end;order:2;position:absolute;right:16px;width:72px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane img{-o-object-fit:contain;height:auto;max-height:100%;max-width:100%;object-fit:contain;width:auto}.miam-catalog-recipe-card .miam-catalog-card__attributes{align-items:center;flex:1 1;flex-direction:column-reverse;justify-content:flex-start;padding:12px 16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{display:flex;flex-direction:row;justify-content:space-around;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info{align-items:center;display:flex;flex-direction:column;padding:0 16px;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info:first-child{border-right:1px solid #ddd}.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-catalog-card-details-color);font-size:var(--m-catalog-card-details-size);line-height:var(--m-catalog-card-details-line-height);margin:2px 0 0;text-align:center;width:100%}.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}.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:rgba(0,0,0,.6);border-radius:5px;color:var(--m-color-white);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;color:var(--m-color-black);cursor:pointer;display:-webkit-box;font-size:var(--m-catalog-card-title-size);font-weight:700;left:0;letter-spacing:normal;line-height:var(--m-catalog-card-line-height);margin:12px 0;overflow:hidden;padding:0 16px;position:absolute;text-align:center;text-overflow:ellipsis;top:var(--m-catalog-card-picture-height);transition:var(--m-default-transition);width:100%}@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 div.miam-catalog-recipe-card__actions__icon{border:none;padding:8px}@media (min-width:1023px){.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions div.miam-catalog-recipe-card__actions__icon:hover{background-color:#ececec}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions div.miam-catalog-recipe-card__actions__icon:hover .icon-container svg path{fill:var(--m-color-primary)}}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control{align-items:center;display:flex;justify-content:center;margin-top:12px;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-recipe-card__ingredients__pictures{display:none}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__actions{align-items:center;display:flex;flex-direction:row;gap:16px;justify-content:space-between;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__actions .miam-catalog-recipe-card__actions__link{color:var(--m-color-primary);cursor:pointer;font-size:14px;line-height:22px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__actions .miam-catalog-recipe-card__actions__link:hover{text-decoration:underline}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-recipe-card-cta button.m-button-primary .icon-container,.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-recipe-card-cta button.m-button-primary .icon-container img{height:16px!important;width:16px!important}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-recipe-card-cta button.m-button-primary .miam-loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:16px;margin-left:8px;width:16px}"], encapsulation: 2, changeDetection: 0 });
19608
19595
  /*@__PURE__*/ (function () {
19609
19596
  i0.ɵsetClassMetadata(CatalogRecipeCardComponent, [{
19610
19597
  type: i0.Component,
@@ -19615,33 +19602,7 @@
19615
19602
  encapsulation: i0.ViewEncapsulation.None,
19616
19603
  changeDetection: i0.ChangeDetectionStrategy.OnPush
19617
19604
  }]
19618
- }], function () {
19619
- return [{ type: i0.ChangeDetectorRef, decorators: [{
19620
- type: i0.Inject,
19621
- args: [i0.ChangeDetectorRef]
19622
- }] }, { type: RecipesService, decorators: [{
19623
- type: i0.Inject,
19624
- args: [RecipesService]
19625
- }] }, { type: RecipeEventsService, decorators: [{
19626
- type: i0.Inject,
19627
- args: [RecipeEventsService]
19628
- }] }, { type: GroceriesListsService, decorators: [{
19629
- type: i0.Inject,
19630
- args: [GroceriesListsService]
19631
- }] }, { type: UserService, decorators: [{
19632
- type: i0.Inject,
19633
- args: [UserService]
19634
- }] }, { type: PointOfSalesService, decorators: [{
19635
- type: i0.Inject,
19636
- args: [PointOfSalesService]
19637
- }] }, { type: ContextService, decorators: [{
19638
- type: i0.Inject,
19639
- args: [ContextService]
19640
- }] }, { type: AnalyticsService, decorators: [{
19641
- type: i0.Inject,
19642
- args: [AnalyticsService]
19643
- }] }, { type: i0.ElementRef }, { type: ToasterService }];
19644
- }, { displayPricing: [{
19605
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: RecipesService }, { type: RecipeEventsService }, { type: GroceriesListsService }, { type: UserService }, { type: ContextService }, { type: AnalyticsService }, { type: i0.ElementRef }]; }, { displayPricing: [{
19645
19606
  type: i0.Input
19646
19607
  }], displayAddedOnPicture: [{
19647
19608
  type: i0.Input
@@ -19660,12 +19621,15 @@
19660
19621
  }], moreActions: [{
19661
19622
  type: i0.ViewChild,
19662
19623
  args: ['miamMoreActions']
19624
+ }], cta: [{
19625
+ type: i0.ViewChild,
19626
+ args: ['cardCta']
19663
19627
  }] });
19664
19628
  })();
19665
- var templateObject_1$t, templateObject_2$m, templateObject_3$h, templateObject_4$c, templateObject_5$8, templateObject_6$7, templateObject_7$6, templateObject_8$5, templateObject_9$5, templateObject_10$2;
19629
+ var templateObject_1$t, templateObject_2$m, templateObject_3$h, templateObject_4$c, templateObject_5$7, templateObject_6$6, templateObject_7$5;
19666
19630
 
19667
19631
  var _a;
19668
- var _c0$s = ["recipeCard"];
19632
+ var _c0$t = ["recipeCard"];
19669
19633
  function SuggestionCardComponent_ng_miam_recipe_card_0_Template(rf, ctx) {
19670
19634
  if (rf & 1) {
19671
19635
  var _r3_1 = i0.ɵɵgetCurrentView();
@@ -19697,12 +19661,15 @@
19697
19661
  */
19698
19662
  var SuggestionCardComponent = /** @class */ (function (_super) {
19699
19663
  __extends(SuggestionCardComponent, _super);
19700
- function SuggestionCardComponent(cdr, recipeService, groceriesListsService, userService, pointOfSalesService, contextService, analyticsService, recipeEventsService, element, toasterService) {
19701
- var _this = _super.call(this, cdr, recipeService, recipeEventsService, groceriesListsService, userService, pointOfSalesService, contextService, analyticsService, element, toasterService) || this;
19664
+ function SuggestionCardComponent(cdr, recipeService, groceriesListsService, contextService, analyticsService, recipeEventsService, element) {
19665
+ var _this = _super.call(this, cdr, recipeService, recipeEventsService, groceriesListsService, contextService, analyticsService, element) || this;
19666
+ _this.cdr = cdr;
19667
+ _this.recipeService = recipeService;
19668
+ _this.groceriesListsService = groceriesListsService;
19669
+ _this.contextService = contextService;
19702
19670
  _this.analyticsService = analyticsService;
19703
19671
  _this.recipeEventsService = recipeEventsService;
19704
19672
  _this.element = element;
19705
- _this.toasterService = toasterService;
19706
19673
  _this.isEmpty = false;
19707
19674
  _this.eventsGroupId = uuid.v4();
19708
19675
  // as the template creates a recipe card, the recipe card send the events
@@ -19710,7 +19677,7 @@
19710
19677
  return _this;
19711
19678
  }
19712
19679
  SuggestionCardComponent.prototype.ngOnChanges = function (simpleChanges) {
19713
- if ((simpleChanges.hasOwnProperty('productIds') && !this.randomModeEnable) || !this.recipe) {
19680
+ if ((simpleChanges.productIds && !this.randomModeEnable) || !this.recipe) {
19714
19681
  this.loadRecipe();
19715
19682
  }
19716
19683
  };
@@ -19722,11 +19689,12 @@
19722
19689
  // (display = false so that the recipe details don't show up)
19723
19690
  SuggestionCardComponent.prototype.guestsChanged = function () {
19724
19691
  var _this = this;
19725
- this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).subscribe(function (recipeIsInList) {
19692
+ this.subscriptions.push(this.groceriesListsService.recipeIsInList(this.recipe.id).pipe(operators.switchMap(function (recipeIsInList) {
19726
19693
  if (recipeIsInList) {
19727
- _this.addRecipe(false);
19694
+ return _this.groceriesListsService.appendRecipeToList(_this.recipe.id, _this.recipe.modifiedGuests, _this.eventTrace())
19695
+ .pipe(operators.take(1));
19728
19696
  }
19729
- }));
19697
+ })).subscribe(function () { return _this.cdr.detectChanges(); }));
19730
19698
  };
19731
19699
  SuggestionCardComponent.prototype.loadRecipe = function () {
19732
19700
  var _this = this;
@@ -19773,10 +19741,10 @@
19773
19741
  };
19774
19742
  return SuggestionCardComponent;
19775
19743
  }(AbstractRecipeCardComponent));
19776
- 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), i0.ɵɵdirectiveInject(ToasterService)); };
19744
+ SuggestionCardComponent.ɵfac = function SuggestionCardComponent_Factory(t) { return new (t || SuggestionCardComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(i0.ElementRef)); };
19777
19745
  SuggestionCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SuggestionCardComponent, selectors: [["ng-miam-suggestion-card"]], viewQuery: function SuggestionCardComponent_Query(rf, ctx) {
19778
19746
  if (rf & 1) {
19779
- i0.ɵɵviewQuery(_c0$s, true);
19747
+ i0.ɵɵviewQuery(_c0$t, true);
19780
19748
  }
19781
19749
  if (rf & 2) {
19782
19750
  var _t;
@@ -19800,27 +19768,7 @@
19800
19768
  encapsulation: i0.ViewEncapsulation.None,
19801
19769
  changeDetection: i0.ChangeDetectionStrategy.OnPush
19802
19770
  }]
19803
- }], function () {
19804
- return [{ type: i0.ChangeDetectorRef, decorators: [{
19805
- type: i0.Inject,
19806
- args: [i0.ChangeDetectorRef]
19807
- }] }, { type: RecipesService, decorators: [{
19808
- type: i0.Inject,
19809
- args: [RecipesService]
19810
- }] }, { type: GroceriesListsService, decorators: [{
19811
- type: i0.Inject,
19812
- args: [GroceriesListsService]
19813
- }] }, { type: UserService, decorators: [{
19814
- type: i0.Inject,
19815
- args: [UserService]
19816
- }] }, { type: PointOfSalesService, decorators: [{
19817
- type: i0.Inject,
19818
- args: [PointOfSalesService]
19819
- }] }, { type: ContextService, decorators: [{
19820
- type: i0.Inject,
19821
- args: [ContextService]
19822
- }] }, { type: AnalyticsService }, { type: RecipeEventsService }, { type: i0.ElementRef }, { type: ToasterService }];
19823
- }, { randomModeEnable: [{
19771
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: RecipesService }, { type: GroceriesListsService }, { type: ContextService }, { type: AnalyticsService }, { type: RecipeEventsService }, { type: i0.ElementRef }]; }, { randomModeEnable: [{
19824
19772
  type: i0.Input
19825
19773
  }], productIds: [{
19826
19774
  type: i0.Input
@@ -19898,6 +19846,7 @@
19898
19846
  'catalog-recipe-card': CatalogRecipeCardComponent,
19899
19847
  'recipe-card': RecipeCardComponent,
19900
19848
  'suggestion-card': SuggestionCardComponent,
19849
+ 'recipe-card-cta': RecipeCardCtaComponent,
19901
19850
  };
19902
19851
  Object.keys(webComponents).map(function (compName) {
19903
19852
  var name = "webc-miam-" + compName;
@@ -19922,7 +19871,8 @@
19922
19871
  (typeof ngJitMode === "undefined" || ngJitMode) && i0.ɵɵsetNgModuleScope(RecipeCardsModule, { declarations: [AddRecipeCardComponent,
19923
19872
  CatalogRecipeCardComponent,
19924
19873
  RecipeCardComponent,
19925
- SuggestionCardComponent], imports: [i2$1.CommonModule,
19874
+ SuggestionCardComponent,
19875
+ RecipeCardCtaComponent], imports: [i2$1.CommonModule,
19926
19876
  i3.FormsModule,
19927
19877
  UtilsModule,
19928
19878
  ComponentsModule], exports: [AddRecipeCardComponent,
@@ -19944,7 +19894,8 @@
19944
19894
  AddRecipeCardComponent,
19945
19895
  CatalogRecipeCardComponent,
19946
19896
  RecipeCardComponent,
19947
- SuggestionCardComponent
19897
+ SuggestionCardComponent,
19898
+ RecipeCardCtaComponent
19948
19899
  ],
19949
19900
  exports: [
19950
19901
  AddRecipeCardComponent,
@@ -20045,8 +19996,8 @@
20045
19996
  var templateObject_1$v;
20046
19997
 
20047
19998
  var _c;
20048
- var _c0$t = ["categoryContent"];
20049
- var _c1$c = ["categoryCards"];
19999
+ var _c0$u = ["categoryContent"];
20000
+ var _c1$d = ["categoryCards"];
20050
20001
  function CatalogCategoryComponent_div_0_div_15_Template(rf, ctx) {
20051
20002
  if (rf & 1) {
20052
20003
  i0.ɵɵelementStart(0, "div", 19);
@@ -20104,7 +20055,7 @@
20104
20055
  i0.ɵɵproperty("iconName", ctx_r7.icon.ChevronDown);
20105
20056
  }
20106
20057
  }
20107
- var _c6$3 = function (a0) { return { "transform": a0 }; };
20058
+ var _c6$4 = function (a0) { return { "transform": a0 }; };
20108
20059
  function CatalogCategoryComponent_div_0_Template(rf, ctx) {
20109
20060
  if (rf & 1) {
20110
20061
  var _r15_1 = i0.ɵɵgetCurrentView();
@@ -20150,7 +20101,7 @@
20150
20101
  i0.ɵɵadvance(4);
20151
20102
  i0.ɵɵproperty("iconName", ctx_r0.icon.ChevronDown);
20152
20103
  i0.ɵɵadvance(3);
20153
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(11, _c6$3, "translateX(-" + ctx_r0.xTranslation() + "px)"));
20104
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(11, _c6$4, "translateX(-" + ctx_r0.xTranslation() + "px)"));
20154
20105
  i0.ɵɵadvance(2);
20155
20106
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(16, 9, ctx_r0.loading));
20156
20107
  i0.ɵɵadvance(2);
@@ -20355,8 +20306,8 @@
20355
20306
  CatalogCategoryComponent.ɵfac = function CatalogCategoryComponent_Factory(t) { return new (t || CatalogCategoryComponent)(i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(ArticlesService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(AnalyticsService)); };
20356
20307
  CatalogCategoryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogCategoryComponent, selectors: [["ng-miam-catalog-category"]], viewQuery: function CatalogCategoryComponent_Query(rf, ctx) {
20357
20308
  if (rf & 1) {
20358
- i0.ɵɵviewQuery(_c0$t, true);
20359
- i0.ɵɵviewQuery(_c1$c, true);
20309
+ i0.ɵɵviewQuery(_c0$u, true);
20310
+ i0.ɵɵviewQuery(_c1$d, true);
20360
20311
  i0.ɵɵviewQuery(CatalogRecipeCardComponent, true);
20361
20312
  }
20362
20313
  if (rf & 2) {
@@ -20615,7 +20566,7 @@
20615
20566
  i0.ɵɵtextInterpolate1(" ", ctx_r28.filterBadgeCount, " ");
20616
20567
  }
20617
20568
  }
20618
- var _c14 = function (a0, a1) { return { reverse: a0, reduced: a1 }; };
20569
+ var _c14$1 = function (a0, a1) { return { reverse: a0, reduced: a1 }; };
20619
20570
  function CatalogHeaderComponent_button_15_Template(rf, ctx) {
20620
20571
  if (rf & 1) {
20621
20572
  var _r30_1 = i0.ɵɵgetCurrentView();
@@ -20628,7 +20579,7 @@
20628
20579
  }
20629
20580
  if (rf & 2) {
20630
20581
  var ctx_r6 = i0.ɵɵnextContext();
20631
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c14, !ctx_r6.reduced, ctx_r6.reduced));
20582
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(4, _c14$1, !ctx_r6.reduced, ctx_r6.reduced));
20632
20583
  i0.ɵɵadvance(1);
20633
20584
  i0.ɵɵproperty("iconName", ctx_r6.icon.Filter);
20634
20585
  i0.ɵɵadvance(1);
@@ -20779,7 +20730,7 @@
20779
20730
  i18n_8 = MSG_EXTERNAL_7387753154079259338$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_HEADER_CATALOG_HEADER_COMPONENT_TS___9;
20780
20731
  }
20781
20732
  else {
20782
- i18n_8 = $localize(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject([":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"], [":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"])));
20733
+ i18n_8 = $localize(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject([":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"], [":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"])));
20783
20734
  }
20784
20735
  var i18n_10;
20785
20736
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -20787,7 +20738,7 @@
20787
20738
  i18n_10 = MSG_EXTERNAL_8529048627562842272$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_HEADER_CATALOG_HEADER_COMPONENT_TS___11;
20788
20739
  }
20789
20740
  else {
20790
- i18n_10 = $localize(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject([":\u241Fc3f91aba0ecfc75cb49a3b7424823664075a1df8\u241F8529048627562842272:Id\u00E9es repas en 1 clic"], [":\u241Fc3f91aba0ecfc75cb49a3b7424823664075a1df8\u241F8529048627562842272:Id\u00E9es repas en 1 clic"])));
20741
+ i18n_10 = $localize(templateObject_6$7 || (templateObject_6$7 = __makeTemplateObject([":\u241Fc3f91aba0ecfc75cb49a3b7424823664075a1df8\u241F8529048627562842272:Id\u00E9es repas en 1 clic"], [":\u241Fc3f91aba0ecfc75cb49a3b7424823664075a1df8\u241F8529048627562842272:Id\u00E9es repas en 1 clic"])));
20791
20742
  }
20792
20743
  var i18n_12;
20793
20744
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -20795,7 +20746,7 @@
20795
20746
  i18n_12 = MSG_EXTERNAL_673430564078029527$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_HEADER_CATALOG_HEADER_COMPONENT_TS___13;
20796
20747
  }
20797
20748
  else {
20798
- i18n_12 = $localize(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject([":\u241F43a5be6775550e305fdcc873e3fe93fe756b2340\u241F673430564078029527:Filtrer"], [":\u241F43a5be6775550e305fdcc873e3fe93fe756b2340\u241F673430564078029527:Filtrer"])));
20749
+ i18n_12 = $localize(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject([":\u241F43a5be6775550e305fdcc873e3fe93fe756b2340\u241F673430564078029527:Filtrer"], [":\u241F43a5be6775550e305fdcc873e3fe93fe756b2340\u241F673430564078029527:Filtrer"])));
20799
20750
  }
20800
20751
  var i18n_15;
20801
20752
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -20803,7 +20754,7 @@
20803
20754
  i18n_15 = MSG_EXTERNAL_653878317708485206$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_HEADER_CATALOG_HEADER_COMPONENT_TS___16;
20804
20755
  }
20805
20756
  else {
20806
- i18n_15 = $localize(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject([":\u241F33624238e85288276ed3e2e8637c4a20d021de18\u241F653878317708485206:Mes id\u00E9es repas"], [":\u241F33624238e85288276ed3e2e8637c4a20d021de18\u241F653878317708485206:Mes id\u00E9es repas"])));
20757
+ i18n_15 = $localize(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject([":\u241F33624238e85288276ed3e2e8637c4a20d021de18\u241F653878317708485206:Mes id\u00E9es repas"], [":\u241F33624238e85288276ed3e2e8637c4a20d021de18\u241F653878317708485206:Mes id\u00E9es repas"])));
20807
20758
  }
20808
20759
  var i18n_18;
20809
20760
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -20811,7 +20762,7 @@
20811
20762
  i18n_18 = MSG_EXTERNAL_3472368054805241582$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_HEADER_CATALOG_HEADER_COMPONENT_TS___19;
20812
20763
  }
20813
20764
  else {
20814
- i18n_18 = $localize(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject([":\u241F8a1e056d8685c37c1de1b6bbcc961429bfd0e4ea\u241F3472368054805241582:Mon carnet perso"], [":\u241F8a1e056d8685c37c1de1b6bbcc961429bfd0e4ea\u241F3472368054805241582:Mon carnet perso"])));
20765
+ i18n_18 = $localize(templateObject_9$5 || (templateObject_9$5 = __makeTemplateObject([":\u241F8a1e056d8685c37c1de1b6bbcc961429bfd0e4ea\u241F3472368054805241582:Mon carnet perso"], [":\u241F8a1e056d8685c37c1de1b6bbcc961429bfd0e4ea\u241F3472368054805241582:Mon carnet perso"])));
20815
20766
  }
20816
20767
  return [[1, "miam-catalog-header", 3, "ngClass"], [1, "miam-catalog-header__left"], [1, "miam-catalog-header__nav"], ["href", "/"], ["width", "18", "height", "18", 3, "iconName", "primaryColor"], ["width", "24", "height", "24", 1, "chevron-right", 3, "iconName"], ["href", "javascript:void(0)", 3, "click", 4, "ngIf"], ["class", "chevron-right", "width", "24", "height", "24", 3, "iconName", 4, "ngIf"], ["href", "javascript:void(0)", 4, "ngIf"], [1, "miam-catalog-header__title-and-search"], ["class", "miam-catalog-header__title", 4, "ngIf"], [1, "miam-catalog-header__search-and-filters"], ["class", "miam-catalog-header__searchbar", 4, "ngIf"], [1, "miam-catalog-header__right"], ["class", "miam-catalog-header__controls__filter m-button-primary", 3, "ngClass", "click", 4, "ngIf"], ["class", "miam-catalog-header__controls__favorites", 3, "ngClass", "click", 4, "ngIf"], ["class", "miam-catalog-header__controls__personal", 3, "ngClass", "click", 4, "ngIf"], ["href", "javascript:void(0)", 3, "click"], i18n_0, ["href", "javascript:void(0)"], [4, "ngIf"], i18n_2, i18n_4, i18n_6, i18n_8, [1, "miam-catalog-header__title"], [4, "ngIf", "ngIfElse"], ["baseTitle", ""], i18n_10, [1, "miam-catalog-header__searchbar"], ["type", "text", "placeholder", "Chercher un ingr\u00E9dient ou un repas", 1, "miam-catalog-header__searchbar__input", 3, "ngModel", "ngModelChange", "keydown.enter", "blur"], [1, "miam-catalog-header__searchbar__button", "m-button-primary"], ["width", "20", "height", "20", 1, "miam-catalog-header__searchbar__icon", 3, "iconName", "click"], [1, "miam-catalog-header__controls__filter", "m-button-primary", 3, "ngClass", "click"], ["width", "18", "height", "18", 3, "iconName"], ["class", "miam-catalog-header__controls__filter-badge", 4, "ngIf"], i18n_12, [1, "miam-catalog-header__controls__filter-badge"], [1, "miam-catalog-header__controls__favorites", 3, "ngClass", "click"], i18n_15, [1, "miam-catalog-header__controls__personal", 3, "ngClass", "click"], i18n_18];
20817
20768
  }, template: function CatalogHeaderComponent_Template(rf, ctx) {
@@ -20914,7 +20865,7 @@
20914
20865
  type: i0.Output
20915
20866
  }] });
20916
20867
  })();
20917
- var templateObject_1$x, templateObject_2$o, templateObject_3$i, templateObject_4$d, templateObject_5$9, templateObject_6$8, templateObject_7$7, templateObject_8$6, templateObject_9$6;
20868
+ var templateObject_1$x, templateObject_2$o, templateObject_3$i, templateObject_4$d, templateObject_5$8, templateObject_6$7, templateObject_7$6, templateObject_8$5, templateObject_9$5;
20918
20869
 
20919
20870
  var RecipeFilters = /** @class */ (function () {
20920
20871
  function RecipeFilters(filters) {
@@ -21409,7 +21360,7 @@
21409
21360
  i18n_8 = MSG_EXTERNAL_4851375363781203983$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___9;
21410
21361
  }
21411
21362
  else {
21412
- i18n_8 = $localize(templateObject_5$a || (templateObject_5$a = __makeTemplateObject([":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."], [":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."])));
21363
+ i18n_8 = $localize(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject([":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."], [":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."])));
21413
21364
  }
21414
21365
  var i18n_10;
21415
21366
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -21417,7 +21368,7 @@
21417
21368
  i18n_10 = MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__11;
21418
21369
  }
21419
21370
  else {
21420
- i18n_10 = $localize(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
21371
+ i18n_10 = $localize(templateObject_6$8 || (templateObject_6$8 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
21421
21372
  }
21422
21373
  return [[1, "miam-catalog-list__cards"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__card", 3, "clicked", 4, "ngIf"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "helpButtonAllowed", "addToMealsPlanner", "actionTriggered", 4, "ngFor", "ngForOf"], [3, "article", 4, "ngFor", "ngForOf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["id", "miam-catalog-list__anchor"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "filtering"], i18n_0, ["class", "miam-catalog-list__notFound__searching", 4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, [1, "miam-catalog-list__notFound__searching"], i18n_4, [1, "miam-catalog-list__notFound__title1", "not-filtering"], i18n_6, [1, "miam-catalog-list__notFound__title1", "not-logged"], i18n_8, [1, "miam-catalog-list__card", 3, "clicked"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "helpButtonAllowed", "addToMealsPlanner", "actionTriggered"], [3, "article"], [1, "miam-catalog-list__loader"], i18n_10];
21423
21374
  }, template: function CatalogListComponent_Template(rf, ctx) {
@@ -21487,7 +21438,7 @@
21487
21438
  args: [CatalogRecipeCardComponent]
21488
21439
  }] });
21489
21440
  })();
21490
- var templateObject_1$y, templateObject_2$p, templateObject_3$j, templateObject_4$e, templateObject_5$a, templateObject_6$9;
21441
+ var templateObject_1$y, templateObject_2$p, templateObject_3$j, templateObject_4$e, templateObject_5$9, templateObject_6$8;
21491
21442
 
21492
21443
  function RecipeFormComponent_form_0_ng_template_3_Template(rf, ctx) {
21493
21444
  if (rf & 1) {
@@ -22021,7 +21972,7 @@
22021
21972
  i18n_8 = MSG_EXTERNAL_4142863621251590306$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_FORM_RECIPE_FORM_COMPONENT_TS___9;
22022
21973
  }
22023
21974
  else {
22024
- i18n_8 = $localize(templateObject_5$b || (templateObject_5$b = __makeTemplateObject([":\u241Ffb8b4b6668befda8fc42e047c9b246d4777a881b\u241F4142863621251590306:Ajouter une photo"], [":\u241Ffb8b4b6668befda8fc42e047c9b246d4777a881b\u241F4142863621251590306:Ajouter une photo"])));
21975
+ i18n_8 = $localize(templateObject_5$a || (templateObject_5$a = __makeTemplateObject([":\u241Ffb8b4b6668befda8fc42e047c9b246d4777a881b\u241F4142863621251590306:Ajouter une photo"], [":\u241Ffb8b4b6668befda8fc42e047c9b246d4777a881b\u241F4142863621251590306:Ajouter une photo"])));
22025
21976
  }
22026
21977
  var i18n_10;
22027
21978
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -22029,7 +21980,7 @@
22029
21980
  i18n_10 = MSG_EXTERNAL_3214154825659883361$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_FORM_RECIPE_FORM_COMPONENT_TS___11;
22030
21981
  }
22031
21982
  else {
22032
- i18n_10 = $localize(templateObject_6$a || (templateObject_6$a = __makeTemplateObject([":\u241F3129bf2c440a1692248509c7bcaab395e520f92c\u241F3214154825659883361:Choisir un type"], [":\u241F3129bf2c440a1692248509c7bcaab395e520f92c\u241F3214154825659883361:Choisir un type"])));
21983
+ i18n_10 = $localize(templateObject_6$9 || (templateObject_6$9 = __makeTemplateObject([":\u241F3129bf2c440a1692248509c7bcaab395e520f92c\u241F3214154825659883361:Choisir un type"], [":\u241F3129bf2c440a1692248509c7bcaab395e520f92c\u241F3214154825659883361:Choisir un type"])));
22033
21984
  }
22034
21985
  var i18n_12;
22035
21986
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -22037,7 +21988,7 @@
22037
21988
  i18n_12 = MSG_EXTERNAL_4572808970531890280$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_FORM_RECIPE_FORM_COMPONENT_TS____13;
22038
21989
  }
22039
21990
  else {
22040
- i18n_12 = $localize(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject([":\u241F1bf4b0fad491a1a0e696a667d19d9d3dc115e765\u241F4572808970531890280:Temps de pr\u00E9paration"], [":\u241F1bf4b0fad491a1a0e696a667d19d9d3dc115e765\u241F4572808970531890280:Temps de pr\u00E9paration"])));
21991
+ i18n_12 = $localize(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject([":\u241F1bf4b0fad491a1a0e696a667d19d9d3dc115e765\u241F4572808970531890280:Temps de pr\u00E9paration"], [":\u241F1bf4b0fad491a1a0e696a667d19d9d3dc115e765\u241F4572808970531890280:Temps de pr\u00E9paration"])));
22041
21992
  }
22042
21993
  var i18n_14;
22043
21994
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -22045,7 +21996,7 @@
22045
21996
  i18n_14 = MSG_EXTERNAL_2393638591256907077$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_FORM_RECIPE_FORM_COMPONENT_TS____15;
22046
21997
  }
22047
21998
  else {
22048
- i18n_14 = $localize(templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject([":\u241Fa07c8ead07ddd40255963068a22a49f100921fdc\u241F2393638591256907077:Temps de cuisson"], [":\u241Fa07c8ead07ddd40255963068a22a49f100921fdc\u241F2393638591256907077:Temps de cuisson"])));
21999
+ i18n_14 = $localize(templateObject_8$6 || (templateObject_8$6 = __makeTemplateObject([":\u241Fa07c8ead07ddd40255963068a22a49f100921fdc\u241F2393638591256907077:Temps de cuisson"], [":\u241Fa07c8ead07ddd40255963068a22a49f100921fdc\u241F2393638591256907077:Temps de cuisson"])));
22049
22000
  }
22050
22001
  var i18n_16;
22051
22002
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -22053,7 +22004,7 @@
22053
22004
  i18n_16 = MSG_EXTERNAL_6072926011312884563$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_FORM_RECIPE_FORM_COMPONENT_TS____17;
22054
22005
  }
22055
22006
  else {
22056
- i18n_16 = $localize(templateObject_9$7 || (templateObject_9$7 = __makeTemplateObject([":\u241Fe40e4ebcc3a18cd368968dc4398614113b47b366\u241F6072926011312884563:Temps de repos"], [":\u241Fe40e4ebcc3a18cd368968dc4398614113b47b366\u241F6072926011312884563:Temps de repos"])));
22007
+ i18n_16 = $localize(templateObject_9$6 || (templateObject_9$6 = __makeTemplateObject([":\u241Fe40e4ebcc3a18cd368968dc4398614113b47b366\u241F6072926011312884563:Temps de repos"], [":\u241Fe40e4ebcc3a18cd368968dc4398614113b47b366\u241F6072926011312884563:Temps de repos"])));
22057
22008
  }
22058
22009
  var i18n_18;
22059
22010
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -22061,7 +22012,7 @@
22061
22012
  i18n_18 = MSG_EXTERNAL_4124824446230222423$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_FORM_RECIPE_FORM_COMPONENT_TS____19;
22062
22013
  }
22063
22014
  else {
22064
- i18n_18 = $localize(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject([":\u241Ff959874631711aa56d6caaaa49ad684b4ba32ed0\u241F4124824446230222423:Temps de pr\u00E9chauffage"], [":\u241Ff959874631711aa56d6caaaa49ad684b4ba32ed0\u241F4124824446230222423:Temps de pr\u00E9chauffage"])));
22015
+ i18n_18 = $localize(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject([":\u241Ff959874631711aa56d6caaaa49ad684b4ba32ed0\u241F4124824446230222423:Temps de pr\u00E9chauffage"], [":\u241Ff959874631711aa56d6caaaa49ad684b4ba32ed0\u241F4124824446230222423:Temps de pr\u00E9chauffage"])));
22065
22016
  }
22066
22017
  return [["class", "form-container", 3, "formGroup", 4, "ngIf"], [1, "button-row"], [1, "m-button-secondary", 3, "click"], i18n_0, [1, "m-button-primary", 3, "disabled", "click"], i18n_2, [1, "form-container", 3, "formGroup"], [3, "formGroup"], ["ngDefaultControl", "", 1, "m-title-text-input", 3, "formControl"], ["placeholder", ""], [1, "row-container"], [1, "input-container"], ["ngDefaultControl", "", 3, "formControl", "imageUrl", "photoMode"], ["buttonText", ""], [1, "recipe-form__guests", "m-default-card"], [1, "recipe-form__guests__label"], i18n_4, ["ngDefaultControl", "", "formControlName", "number-of-guests", "counter", "4", "minRange", "0", "maxRange", "999", 3, "formControl"], [1, "recipe-form__attibutes"], ["ngDefaultControl", "", "labelPath", "attributes.name", 3, "options", "formControl"], [1, "recipe-form__attibutes__sliders"], [1, "recipe-form__attibutes__slider"], ["ngDefaultControl", "", 3, "steps", "formControl", "icons"], ["class", "recipe-form__attibutes__times", 4, "ngIf"], ["ngDefaultControl", "", "formArrayName", "ingredients", 3, "ingredientMode", "list", "deleteId"], ["ngDefaultControl", "", "formArrayName", "steps", 3, "list", "deleteId"], i18n_6, i18n_8, i18n_10, [1, "recipe-form__attibutes__times"], ["ngDefaultControl", "", 3, "formControl", "icon"], ["title", ""], i18n_12, i18n_14, i18n_16, i18n_18];
22067
22018
  }, template: function RecipeFormComponent_Template(rf, ctx) {
@@ -22110,7 +22061,7 @@
22110
22061
  type: i0.Output
22111
22062
  }] });
22112
22063
  })();
22113
- var templateObject_1$z, templateObject_2$q, templateObject_3$k, templateObject_4$f, templateObject_5$b, templateObject_6$a, templateObject_7$8, templateObject_8$7, templateObject_9$7, templateObject_10$3;
22064
+ var templateObject_1$z, templateObject_2$q, templateObject_3$k, templateObject_4$f, templateObject_5$a, templateObject_6$9, templateObject_7$7, templateObject_8$6, templateObject_9$6, templateObject_10$2;
22114
22065
 
22115
22066
  function TagsCreatorComponent_ng_miam_modal_0_Template(rf, ctx) {
22116
22067
  if (rf & 1) {
@@ -22261,7 +22212,7 @@
22261
22212
  i0.ɵɵproperty("iconName", ctx_r4.icon.Plus);
22262
22213
  }
22263
22214
  }
22264
- var _c14$1 = function (a0) { return { "active": a0 }; };
22215
+ var _c14$2 = function (a0) { return { "active": a0 }; };
22265
22216
  function TagsSelectorComponent_ng_miam_modal_0_Template(rf, ctx) {
22266
22217
  if (rf & 1) {
22267
22218
  var _r11_1 = i0.ɵɵgetCurrentView();
@@ -22298,13 +22249,13 @@
22298
22249
  var ctx_r0 = i0.ɵɵnextContext();
22299
22250
  i0.ɵɵproperty("isAngularComponent", true)("noHeaderMode", false)("expanded", true);
22300
22251
  i0.ɵɵadvance(4);
22301
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c14$1, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "meal_type"));
22252
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c14$2, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "meal_type"));
22302
22253
  i0.ɵɵadvance(2);
22303
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c14$1, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "ingredient_category"));
22254
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(11, _c14$2, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "ingredient_category"));
22304
22255
  i0.ɵɵadvance(2);
22305
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c14$1, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "equipment"));
22256
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(13, _c14$2, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "equipment"));
22306
22257
  i0.ɵɵadvance(2);
22307
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c14$1, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "diet"));
22258
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(15, _c14$2, (ctx_r0.selectedTabTags[0] == null ? null : ctx_r0.selectedTabTags[0].tagType) === "diet"));
22308
22259
  i0.ɵɵadvance(3);
22309
22260
  i0.ɵɵproperty("ngForOf", ctx_r0.selectedTabTags);
22310
22261
  i0.ɵɵadvance(1);
@@ -22476,7 +22427,7 @@
22476
22427
  i18n_8 = MSG_EXTERNAL_2575761888491507638$$LIB__WEB_COMPONENTS_RECIPE_CREATION_TAGS_SELECTOR_TAGS_SELECTOR_COMPONENT_TS__9;
22477
22428
  }
22478
22429
  else {
22479
- i18n_8 = $localize(templateObject_5$c || (templateObject_5$c = __makeTemplateObject([":\u241F13a158067c29e5c5211ea07d687c286c5ba99516\u241F2575761888491507638: Famille d'ingr\u00E9dients "], [":\u241F13a158067c29e5c5211ea07d687c286c5ba99516\u241F2575761888491507638: Famille d'ingr\u00E9dients "])));
22430
+ i18n_8 = $localize(templateObject_5$b || (templateObject_5$b = __makeTemplateObject([":\u241F13a158067c29e5c5211ea07d687c286c5ba99516\u241F2575761888491507638: Famille d'ingr\u00E9dients "], [":\u241F13a158067c29e5c5211ea07d687c286c5ba99516\u241F2575761888491507638: Famille d'ingr\u00E9dients "])));
22480
22431
  }
22481
22432
  var i18n_10;
22482
22433
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -22484,7 +22435,7 @@
22484
22435
  i18n_10 = MSG_EXTERNAL_562570764080840354$$LIB__WEB_COMPONENTS_RECIPE_CREATION_TAGS_SELECTOR_TAGS_SELECTOR_COMPONENT_TS__11;
22485
22436
  }
22486
22437
  else {
22487
- i18n_10 = $localize(templateObject_6$b || (templateObject_6$b = __makeTemplateObject([":\u241F94277b31f832a31dde2e1753c80b41b29ca0b80c\u241F562570764080840354: \u00C9quipements "], [":\u241F94277b31f832a31dde2e1753c80b41b29ca0b80c\u241F562570764080840354: \u00C9quipements "])));
22438
+ i18n_10 = $localize(templateObject_6$a || (templateObject_6$a = __makeTemplateObject([":\u241F94277b31f832a31dde2e1753c80b41b29ca0b80c\u241F562570764080840354: \u00C9quipements "], [":\u241F94277b31f832a31dde2e1753c80b41b29ca0b80c\u241F562570764080840354: \u00C9quipements "])));
22488
22439
  }
22489
22440
  var i18n_12;
22490
22441
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -22492,7 +22443,7 @@
22492
22443
  i18n_12 = MSG_EXTERNAL_4451987513851412958$$LIB__WEB_COMPONENTS_RECIPE_CREATION_TAGS_SELECTOR_TAGS_SELECTOR_COMPONENT_TS__13;
22493
22444
  }
22494
22445
  else {
22495
- i18n_12 = $localize(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject([":\u241Fd2b1f31f9c08d4d9ad0ac015b42eee66c7165a4e\u241F4451987513851412958: R\u00E9gimes alimentaires "], [":\u241Fd2b1f31f9c08d4d9ad0ac015b42eee66c7165a4e\u241F4451987513851412958: R\u00E9gimes alimentaires "])));
22446
+ i18n_12 = $localize(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject([":\u241Fd2b1f31f9c08d4d9ad0ac015b42eee66c7165a4e\u241F4451987513851412958: R\u00E9gimes alimentaires "], [":\u241Fd2b1f31f9c08d4d9ad0ac015b42eee66c7165a4e\u241F4451987513851412958: R\u00E9gimes alimentaires "])));
22496
22447
  }
22497
22448
  return [[3, "isAngularComponent", "noHeaderMode", "expanded", "close", "cancel", "confirm", 4, "ngIf", "ngIfElse", 6, "title", "cancelButtonText", "confirmButtonText"], ["tagsCreator", ""], [3, "isAngularComponent", "noHeaderMode", "expanded", "close", "cancel", "confirm", 6, "title", "cancelButtonText", "confirmButtonText"], ["title", i18n_0, "cancelButtonText", i18n_2, "confirmButtonText", i18n_4], [1, "tags-selector"], [1, "tags-selector__selectors"], [1, "tags-selector__selector", 3, "ngClass", "click"], i18n_6, i18n_8, i18n_10, i18n_12, [1, "tags-selector__tags"], ["class", "tags-selector__tag", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], ["class", "tags-selector__tag", 3, "click", 4, "ngIf"], [1, "tags-selector__tag", 3, "ngClass", "click"], [1, "tags-selector__tag", 3, "click"], [3, "iconName"], [3, "display", "currentRecipe", "currentTagType", "close", "submit", 4, "ngIf"], [3, "display", "currentRecipe", "currentTagType", "close", "submit"]];
22498
22449
  }, template: function TagsSelectorComponent_Template(rf, ctx) {
@@ -22527,10 +22478,10 @@
22527
22478
  type: i0.Output
22528
22479
  }] });
22529
22480
  })();
22530
- var templateObject_1$B, templateObject_2$s, templateObject_3$m, templateObject_4$h, templateObject_5$c, templateObject_6$b, templateObject_7$9;
22481
+ var templateObject_1$B, templateObject_2$s, templateObject_3$m, templateObject_4$h, templateObject_5$b, templateObject_6$a, templateObject_7$8;
22531
22482
 
22532
- var _c0$u = ["topAnchor"];
22533
- var _c1$d = ["stepperLinks"];
22483
+ var _c0$v = ["topAnchor"];
22484
+ var _c1$e = ["stepperLinks"];
22534
22485
  var _c2$5 = ["step"];
22535
22486
  function RecipeStepperComponent_ng_container_28_ng_template_7_Template(rf, ctx) {
22536
22487
  if (rf & 1) {
@@ -22997,8 +22948,8 @@
22997
22948
  RecipeStepperComponent.ɵfac = function RecipeStepperComponent_Factory(t) { return ɵRecipeStepperComponent_BaseFactory(t || RecipeStepperComponent); };
22998
22949
  RecipeStepperComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeStepperComponent, selectors: [["ng-miam-recipe-stepper"]], viewQuery: function RecipeStepperComponent_Query(rf, ctx) {
22999
22950
  if (rf & 1) {
23000
- i0.ɵɵviewQuery(_c0$u, true);
23001
- i0.ɵɵviewQuery(_c1$d, true);
22951
+ i0.ɵɵviewQuery(_c0$v, true);
22952
+ i0.ɵɵviewQuery(_c1$e, true);
23002
22953
  i0.ɵɵviewQuery(_c2$5, true);
23003
22954
  }
23004
22955
  if (rf & 2) {
@@ -23046,7 +22997,7 @@
23046
22997
  i18n_11 = MSG_EXTERNAL_3282727732933154012$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_STEPPER_RECIPE_STEPPER_COMPONENT_TS__12;
23047
22998
  }
23048
22999
  else {
23049
- i18n_11 = $localize(templateObject_5$d || (templateObject_5$d = __makeTemplateObject([":\u241F87c5e70b1624fcb3c2b2ccb937de1128495df83f\u241F3282727732933154012:* champs obligatoires"], [":\u241F87c5e70b1624fcb3c2b2ccb937de1128495df83f\u241F3282727732933154012:* champs obligatoires"])));
23000
+ i18n_11 = $localize(templateObject_5$c || (templateObject_5$c = __makeTemplateObject([":\u241F87c5e70b1624fcb3c2b2ccb937de1128495df83f\u241F3282727732933154012:* champs obligatoires"], [":\u241F87c5e70b1624fcb3c2b2ccb937de1128495df83f\u241F3282727732933154012:* champs obligatoires"])));
23050
23001
  }
23051
23002
  var i18n_13;
23052
23003
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -23054,7 +23005,7 @@
23054
23005
  i18n_13 = MSG_EXTERNAL_3196451212397199710$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_STEPPER_RECIPE_STEPPER_COMPONENT_TS__14;
23055
23006
  }
23056
23007
  else {
23057
- i18n_13 = $localize(templateObject_6$c || (templateObject_6$c = __makeTemplateObject([":\u241F69e064561c414aaa2bfb65a5d18a81afac86f282\u241F3196451212397199710:Ma recette est..."], [":\u241F69e064561c414aaa2bfb65a5d18a81afac86f282\u241F3196451212397199710:Ma recette est..."])));
23008
+ i18n_13 = $localize(templateObject_6$b || (templateObject_6$b = __makeTemplateObject([":\u241F69e064561c414aaa2bfb65a5d18a81afac86f282\u241F3196451212397199710:Ma recette est..."], [":\u241F69e064561c414aaa2bfb65a5d18a81afac86f282\u241F3196451212397199710:Ma recette est..."])));
23058
23009
  }
23059
23010
  var i18n_15;
23060
23011
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -23062,7 +23013,7 @@
23062
23013
  i18n_15 = MSG_EXTERNAL_71394326071133031$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_STEPPER_RECIPE_STEPPER_COMPONENT_TS__16;
23063
23014
  }
23064
23015
  else {
23065
- i18n_15 = $localize(templateObject_7$a || (templateObject_7$a = __makeTemplateObject([":\u241F9ea7d16d4d768d931934d11267eab0fa2465b9af\u241F71394326071133031:Nombre de convives"], [":\u241F9ea7d16d4d768d931934d11267eab0fa2465b9af\u241F71394326071133031:Nombre de convives"])));
23016
+ i18n_15 = $localize(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject([":\u241F9ea7d16d4d768d931934d11267eab0fa2465b9af\u241F71394326071133031:Nombre de convives"], [":\u241F9ea7d16d4d768d931934d11267eab0fa2465b9af\u241F71394326071133031:Nombre de convives"])));
23066
23017
  }
23067
23018
  var i18n_17;
23068
23019
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -23070,7 +23021,7 @@
23070
23021
  i18n_17 = MSG_EXTERNAL_3230183296193753148$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_STEPPER_RECIPE_STEPPER_COMPONENT_TS__18;
23071
23022
  }
23072
23023
  else {
23073
- i18n_17 = $localize(templateObject_8$8 || (templateObject_8$8 = __makeTemplateObject([":\u241F130eba530aa81474422b1e98d9709219e560f308\u241F3230183296193753148:Description de ma recette"], [":\u241F130eba530aa81474422b1e98d9709219e560f308\u241F3230183296193753148:Description de ma recette"])));
23024
+ i18n_17 = $localize(templateObject_8$7 || (templateObject_8$7 = __makeTemplateObject([":\u241F130eba530aa81474422b1e98d9709219e560f308\u241F3230183296193753148:Description de ma recette"], [":\u241F130eba530aa81474422b1e98d9709219e560f308\u241F3230183296193753148:Description de ma recette"])));
23074
23025
  }
23075
23026
  var i18n_19;
23076
23027
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -23078,7 +23029,7 @@
23078
23029
  i18n_19 = MSG_EXTERNAL_8796588647763794440$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_STEPPER_RECIPE_STEPPER_COMPONENT_TS__20;
23079
23030
  }
23080
23031
  else {
23081
- i18n_19 = $localize(templateObject_9$8 || (templateObject_9$8 = __makeTemplateObject([":\u241F493b33d1a738a86e7a76ef3f665b4663f9f34469\u241F8796588647763794440:Niveau de difficult\u00E9 de la recette"], [":\u241F493b33d1a738a86e7a76ef3f665b4663f9f34469\u241F8796588647763794440:Niveau de difficult\u00E9 de la recette"])));
23032
+ i18n_19 = $localize(templateObject_9$7 || (templateObject_9$7 = __makeTemplateObject([":\u241F493b33d1a738a86e7a76ef3f665b4663f9f34469\u241F8796588647763794440:Niveau de difficult\u00E9 de la recette"], [":\u241F493b33d1a738a86e7a76ef3f665b4663f9f34469\u241F8796588647763794440:Niveau de difficult\u00E9 de la recette"])));
23082
23033
  }
23083
23034
  var i18n_21;
23084
23035
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -23086,7 +23037,7 @@
23086
23037
  i18n_21 = MSG_EXTERNAL_2356701248526522547$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_STEPPER_RECIPE_STEPPER_COMPONENT_TS___22;
23087
23038
  }
23088
23039
  else {
23089
- i18n_21 = $localize(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject([":\u241F312a5f684a61a21bb47b38ff2975a5cb745bc3ec\u241F2356701248526522547:Titre de la recette"], [":\u241F312a5f684a61a21bb47b38ff2975a5cb745bc3ec\u241F2356701248526522547:Titre de la recette"])));
23040
+ i18n_21 = $localize(templateObject_10$3 || (templateObject_10$3 = __makeTemplateObject([":\u241F312a5f684a61a21bb47b38ff2975a5cb745bc3ec\u241F2356701248526522547:Titre de la recette"], [":\u241F312a5f684a61a21bb47b38ff2975a5cb745bc3ec\u241F2356701248526522547:Titre de la recette"])));
23090
23041
  }
23091
23042
  var i18n_23;
23092
23043
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -23306,9 +23257,9 @@
23306
23257
  args: ['step']
23307
23258
  }] });
23308
23259
  })();
23309
- var templateObject_1$C, templateObject_2$t, templateObject_3$n, templateObject_4$i, templateObject_5$d, templateObject_6$c, templateObject_7$a, templateObject_8$8, templateObject_9$8, templateObject_10$4, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21, templateObject_22, templateObject_23;
23260
+ var templateObject_1$C, templateObject_2$t, templateObject_3$n, templateObject_4$i, templateObject_5$c, templateObject_6$b, templateObject_7$9, templateObject_8$7, templateObject_9$7, templateObject_10$3, templateObject_11$2, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1, templateObject_20$1, templateObject_21, templateObject_22, templateObject_23;
23310
23261
 
23311
- var _c0$v = ["miamCatalogTopAnchor"];
23262
+ var _c0$w = ["miamCatalogTopAnchor"];
23312
23263
  function RecipeCatalogComponent_div_2_div_4_Template(rf, ctx) {
23313
23264
  if (rf & 1) {
23314
23265
  var _r9_1 = i0.ɵɵgetCurrentView();
@@ -23900,7 +23851,7 @@
23900
23851
  RecipeCatalogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCatalogComponent, selectors: [["ng-miam-recipe-catalog"]], viewQuery: function RecipeCatalogComponent_Query(rf, ctx) {
23901
23852
  if (rf & 1) {
23902
23853
  i0.ɵɵviewQuery(CatalogHeaderComponent, true);
23903
- i0.ɵɵviewQuery(_c0$v, true);
23854
+ i0.ɵɵviewQuery(_c0$w, true);
23904
23855
  i0.ɵɵviewQuery(CatalogCategoryComponent, true);
23905
23856
  }
23906
23857
  if (rf & 2) {
@@ -23948,7 +23899,7 @@
23948
23899
  i18n_9 = MSG_EXTERNAL_7387753154079259338$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_RECIPE_CATALOG_COMPONENT_TS____10;
23949
23900
  }
23950
23901
  else {
23951
- i18n_9 = $localize(templateObject_5$e || (templateObject_5$e = __makeTemplateObject([":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"], [":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"])));
23902
+ i18n_9 = $localize(templateObject_5$d || (templateObject_5$d = __makeTemplateObject([":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"], [":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"])));
23952
23903
  }
23953
23904
  var i18n_11;
23954
23905
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -23956,7 +23907,7 @@
23956
23907
  i18n_11 = MSG_EXTERNAL_1931799427977453728$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_RECIPE_CATALOG_COMPONENT_TS____12;
23957
23908
  }
23958
23909
  else {
23959
- i18n_11 = $localize(templateObject_6$d || (templateObject_6$d = __makeTemplateObject([":\u241F3b0b12b85604af610c07cfbd5d4f74662b9a881a\u241F1931799427977453728:Ajouter une id\u00E9e repas"], [":\u241F3b0b12b85604af610c07cfbd5d4f74662b9a881a\u241F1931799427977453728:Ajouter une id\u00E9e repas"])));
23910
+ i18n_11 = $localize(templateObject_6$c || (templateObject_6$c = __makeTemplateObject([":\u241F3b0b12b85604af610c07cfbd5d4f74662b9a881a\u241F1931799427977453728:Ajouter une id\u00E9e repas"], [":\u241F3b0b12b85604af610c07cfbd5d4f74662b9a881a\u241F1931799427977453728:Ajouter une id\u00E9e repas"])));
23960
23911
  }
23961
23912
  return [[1, "miam-catalog-anchor"], ["miamCatalogTopAnchor", ""], ["class", "miam-recipe-catalog", 4, "ngIf", "ngIfElse"], ["creationPage", ""], [1, "miam-recipe-catalog"], [1, "miam-recipe-catalog__content"], [3, "home", "searchTerm", "additionalFiltersTitle", "homeLabel", "pictureUrl", "catalogSetting", "favoritesButtonHidden", "personalButtonHidden", "filterBadgeCount", "returnButtonPressed", "filterButtonPressed", "searchStringChanged", "personalButtonPressed", "favoritesButtonPressed"], ["class", "miam-recipe-catalog__content__myMeal__button", 3, "click", 4, "ngIf"], ["class", "miam-recipe-catalog__list", 4, "ngIf", "ngIfElse"], [3, "filters", "isFilterCollapsed", "filterToRemove", "position", "originTrace", "filterChanged", "filterCollapsed", "preferencesChanged"], ["categoriesComponents", ""], [1, "miam-recipe-catalog__content__myMeal__button", 3, "click"], ["primaryColor", "var(--m-color-white)", 1, "miam-recipe-catalog__myMeal__first__icon", 3, "iconName"], [1, "miam-recipe-catalog__myMeal__button__text"], i18n_1, ["primaryColor", "var(--m-color-white)", 1, "miam-recipe-catalog__myMeal__second__icon", 3, "iconName"], [1, "miam-recipe-catalog__list"], [1, "miam-recipe-catalog__content__title"], ["width", "24", "height", "24", 3, "iconName", "click"], [4, "ngIf"], ["class", "miam-recipe-catalog__list__create___button", 3, "click", 4, "ngIf"], [3, "filters", "originTrace", "displayPricing", "filterRemoved", "recipeActionTriggered"], i18n_3, i18n_5, i18n_7, i18n_9, [1, "miam-recipe-catalog__list__create___button", 3, "click"], ["width", "24", "height", "24", "primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_11, ["class", "miam-recipe-catalog__categories", 4, "ngIf"], [1, "miam-recipe-catalog__categories"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["firstCategory", ""], [3, "title", "subtitle", "filters", "displayPricing", "originTrace", "displayList"], [1, "miam-recipe-catalog__first-category"], [1, "miam-recipe-catalog__explain_banner"], [3, "catalogSetting"], [3, "recipeToUpdate", "originTrace", "recipeChange", "canceled", 4, "ngIf"], [3, "recipeToUpdate", "originTrace", "recipeChange", "canceled"]];
23962
23913
  }, template: function RecipeCatalogComponent_Template(rf, ctx) {
@@ -24004,7 +23955,7 @@
24004
23955
  type: i0.Input
24005
23956
  }] });
24006
23957
  })();
24007
- var templateObject_1$D, templateObject_2$u, templateObject_3$o, templateObject_4$j, templateObject_5$e, templateObject_6$d;
23958
+ var templateObject_1$D, templateObject_2$u, templateObject_3$o, templateObject_4$j, templateObject_5$d, templateObject_6$c;
24008
23959
 
24009
23960
  var RecipeCreationModule = /** @class */ (function () {
24010
23961
  // Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
@@ -24726,7 +24677,7 @@
24726
24677
  i18n_8 = MSG_EXTERNAL_7013342739706915791$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__9;
24727
24678
  }
24728
24679
  else {
24729
- i18n_8 = $localize(templateObject_5$f || (templateObject_5$f = __makeTemplateObject([":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"], [":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"])));
24680
+ i18n_8 = $localize(templateObject_5$e || (templateObject_5$e = __makeTemplateObject([":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"], [":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"])));
24730
24681
  }
24731
24682
  var i18n_10;
24732
24683
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -24734,7 +24685,7 @@
24734
24685
  i18n_10 = MSG_EXTERNAL_4998616682175982835$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__11;
24735
24686
  }
24736
24687
  else {
24737
- i18n_10 = $localize(templateObject_6$e || (templateObject_6$e = __makeTemplateObject([":\u241F9c92a8d6a007a580ef48c6ac194741f76b83a512\u241F4998616682175982835:Unit\u00E9"], [":\u241F9c92a8d6a007a580ef48c6ac194741f76b83a512\u241F4998616682175982835:Unit\u00E9"])));
24688
+ i18n_10 = $localize(templateObject_6$d || (templateObject_6$d = __makeTemplateObject([":\u241F9c92a8d6a007a580ef48c6ac194741f76b83a512\u241F4998616682175982835:Unit\u00E9"], [":\u241F9c92a8d6a007a580ef48c6ac194741f76b83a512\u241F4998616682175982835:Unit\u00E9"])));
24738
24689
  }
24739
24690
  return [[1, "miam-list-scan__ingredients-list"], [1, "miam-list-scan__ingredients-list__header"], ["width", "24", "height", "24", 3, "iconName", "click"], [4, "ngIf"], [1, "miam-list-scan__ingredients-list__content"], ["class", "miam-list-scan__ingredients-list__entry", 4, "ngFor", "ngForOf"], [1, "miam-list-scan__ingredients-list__controls"], [1, "m-button-grey", 3, "click"], i18n_0, [1, "m-button-primary", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_2, i18n_4, [1, "miam-list-scan__ingredients-list__entry"], [1, "miam-list-scan__ingredients-list__entry__delete", 3, "click"], ["primaryColor", "var(--m-color-grey-text)", 3, "iconName"], [1, "miam-list-scan__ingredients-list__entry__name"], [1, "entry-label"], i18n_6, ["type", "text", 3, "ngModel", "ngModelChange"], [1, "miam-list-scan__ingredients-list__entry__quantity"], i18n_8, ["type", "number", 3, "ngModel", "ngModelChange"], [1, "miam-list-scan__ingredients-list__entry__unit"], i18n_10];
24740
24691
  }, template: function ListScanIngredientsListComponent_Template(rf, ctx) {
@@ -24802,7 +24753,7 @@
24802
24753
  type: i0.Output
24803
24754
  }] });
24804
24755
  })();
24805
- var templateObject_1$G, templateObject_2$w, templateObject_3$p, templateObject_4$k, templateObject_5$f, templateObject_6$e;
24756
+ var templateObject_1$G, templateObject_2$w, templateObject_3$p, templateObject_4$k, templateObject_5$e, templateObject_6$d;
24806
24757
 
24807
24758
  function ListScanBasketPreviewComponent_span_4_Template(rf, ctx) {
24808
24759
  if (rf & 1) {
@@ -25700,7 +25651,7 @@
25700
25651
  i0.ɵɵproperty("iconName", ctx_r10.icon.ChevronDown);
25701
25652
  }
25702
25653
  }
25703
- var _c23 = function (a0) { return { "reduced": a0 }; };
25654
+ var _c23$1 = function (a0) { return { "reduced": a0 }; };
25704
25655
  var MealsPlannerFormComponent = /** @class */ (function (_super) {
25705
25656
  __extends(MealsPlannerFormComponent, _super);
25706
25657
  function MealsPlannerFormComponent(cdr, context, userService, recipesService, posService, analyticsService) {
@@ -25832,7 +25783,7 @@
25832
25783
  i18n_8 = MSG_EXTERNAL_6105149763216124630$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS_9;
25833
25784
  }
25834
25785
  else {
25835
- i18n_8 = $localize(templateObject_5$g || (templateObject_5$g = __makeTemplateObject([":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"], [":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"])));
25786
+ i18n_8 = $localize(templateObject_5$f || (templateObject_5$f = __makeTemplateObject([":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"], [":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"])));
25836
25787
  }
25837
25788
  var i18n_10;
25838
25789
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -25840,7 +25791,7 @@
25840
25791
  i18n_10 = MSG_EXTERNAL_2058601653972871945$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS_11;
25841
25792
  }
25842
25793
  else {
25843
- i18n_10 = $localize(templateObject_6$f || (templateObject_6$f = __makeTemplateObject([":\u241F2a5bb5293ba76232497595ad82a270597096ae4c\u241F2058601653972871945:Changer les repas"], [":\u241F2a5bb5293ba76232497595ad82a270597096ae4c\u241F2058601653972871945:Changer les repas"])));
25794
+ i18n_10 = $localize(templateObject_6$e || (templateObject_6$e = __makeTemplateObject([":\u241F2a5bb5293ba76232497595ad82a270597096ae4c\u241F2058601653972871945:Changer les repas"], [":\u241F2a5bb5293ba76232497595ad82a270597096ae4c\u241F2058601653972871945:Changer les repas"])));
25844
25795
  }
25845
25796
  var i18n_13;
25846
25797
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -25848,7 +25799,7 @@
25848
25799
  i18n_13 = MSG_EXTERNAL_126587895083911997$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS__14;
25849
25800
  }
25850
25801
  else {
25851
- i18n_13 = $localize(templateObject_7$b || (templateObject_7$b = __makeTemplateObject([":\u241Fab855a6a5f5cc9e7a5cfb0cfc6e2fcc2242c8bff\u241F126587895083911997:Aucune id\u00E9e repas ne pourrait \u00EAtre planifi\u00E9e pour le budget demand\u00E9."], [":\u241Fab855a6a5f5cc9e7a5cfb0cfc6e2fcc2242c8bff\u241F126587895083911997:Aucune id\u00E9e repas ne pourrait \u00EAtre planifi\u00E9e pour le budget demand\u00E9."])));
25802
+ i18n_13 = $localize(templateObject_7$a || (templateObject_7$a = __makeTemplateObject([":\u241Fab855a6a5f5cc9e7a5cfb0cfc6e2fcc2242c8bff\u241F126587895083911997:Aucune id\u00E9e repas ne pourrait \u00EAtre planifi\u00E9e pour le budget demand\u00E9."], [":\u241Fab855a6a5f5cc9e7a5cfb0cfc6e2fcc2242c8bff\u241F126587895083911997:Aucune id\u00E9e repas ne pourrait \u00EAtre planifi\u00E9e pour le budget demand\u00E9."])));
25852
25803
  }
25853
25804
  var i18n_15;
25854
25805
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -25856,7 +25807,7 @@
25856
25807
  i18n_15 = MSG_EXTERNAL_6893194938999563957$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS__16;
25857
25808
  }
25858
25809
  else {
25859
- i18n_15 = $localize(templateObject_8$9 || (templateObject_8$9 = __makeTemplateObject([":\u241F50b3396becd6af8e717b75056a468fc7fe7efabc\u241F6893194938999563957:Nos id\u00E9es repas anti-inflation (prix par personne) "], [":\u241F50b3396becd6af8e717b75056a468fc7fe7efabc\u241F6893194938999563957:Nos id\u00E9es repas anti-inflation (prix par personne) "])));
25810
+ i18n_15 = $localize(templateObject_8$8 || (templateObject_8$8 = __makeTemplateObject([":\u241F50b3396becd6af8e717b75056a468fc7fe7efabc\u241F6893194938999563957:Nos id\u00E9es repas anti-inflation (prix par personne) "], [":\u241F50b3396becd6af8e717b75056a468fc7fe7efabc\u241F6893194938999563957:Nos id\u00E9es repas anti-inflation (prix par personne) "])));
25860
25811
  }
25861
25812
  var i18n_17;
25862
25813
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -25864,7 +25815,7 @@
25864
25815
  i18n_17 = MSG_EXTERNAL_4814452544539254182$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS__18;
25865
25816
  }
25866
25817
  else {
25867
- i18n_17 = $localize(templateObject_9$9 || (templateObject_9$9 = __makeTemplateObject([":\u241Faccc28b865e2129ac770d6de43f141e5416d01f1\u241F4814452544539254182:Recettes \u00E0 moins de 3 \u20AC"], [":\u241Faccc28b865e2129ac770d6de43f141e5416d01f1\u241F4814452544539254182:Recettes \u00E0 moins de 3 \u20AC"])));
25818
+ i18n_17 = $localize(templateObject_9$8 || (templateObject_9$8 = __makeTemplateObject([":\u241Faccc28b865e2129ac770d6de43f141e5416d01f1\u241F4814452544539254182:Recettes \u00E0 moins de 3 \u20AC"], [":\u241Faccc28b865e2129ac770d6de43f141e5416d01f1\u241F4814452544539254182:Recettes \u00E0 moins de 3 \u20AC"])));
25868
25819
  }
25869
25820
  var i18n_19;
25870
25821
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -25872,7 +25823,7 @@
25872
25823
  i18n_19 = MSG_EXTERNAL_613741958181449144$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS__20;
25873
25824
  }
25874
25825
  else {
25875
- i18n_19 = $localize(templateObject_10$5 || (templateObject_10$5 = __makeTemplateObject([":\u241F823229645f8c9028aa1dfdce03560009fb03fe04\u241F613741958181449144:Recettes \u00E0 moins de 5 \u20AC"], [":\u241F823229645f8c9028aa1dfdce03560009fb03fe04\u241F613741958181449144:Recettes \u00E0 moins de 5 \u20AC"])));
25826
+ i18n_19 = $localize(templateObject_10$4 || (templateObject_10$4 = __makeTemplateObject([":\u241F823229645f8c9028aa1dfdce03560009fb03fe04\u241F613741958181449144:Recettes \u00E0 moins de 5 \u20AC"], [":\u241F823229645f8c9028aa1dfdce03560009fb03fe04\u241F613741958181449144:Recettes \u00E0 moins de 5 \u20AC"])));
25876
25827
  }
25877
25828
  var i18n_21;
25878
25829
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -25981,7 +25932,7 @@
25981
25932
  var _r1 = i0.ɵɵreference(30);
25982
25933
  var _r4 = i0.ɵɵreference(41);
25983
25934
  var _r8 = i0.ɵɵreference(48);
25984
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c23, ctx.reduced));
25935
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(26, _c23$1, ctx.reduced));
25985
25936
  i0.ɵɵadvance(2);
25986
25937
  i0.ɵɵproperty("formGroup", ctx.form);
25987
25938
  i0.ɵɵadvance(2);
@@ -26032,7 +25983,7 @@
26032
25983
  type: i0.Output
26033
25984
  }] });
26034
25985
  })();
26035
- var templateObject_1$J, templateObject_2$z, templateObject_3$s, templateObject_4$m, templateObject_5$g, templateObject_6$f, templateObject_7$b, templateObject_8$9, templateObject_9$9, templateObject_10$5, templateObject_11$3;
25986
+ var templateObject_1$J, templateObject_2$z, templateObject_3$s, templateObject_4$m, templateObject_5$f, templateObject_6$e, templateObject_7$a, templateObject_8$8, templateObject_9$8, templateObject_10$4, templateObject_11$3;
26036
25987
 
26037
25988
  function MealsPlannerResultComponent_div_6_div_1_div_1_Template(rf, ctx) {
26038
25989
  if (rf & 1) {
@@ -26435,7 +26386,7 @@
26435
26386
  i18n_8 = MSG_EXTERNAL_3503734824800029552$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___9;
26436
26387
  }
26437
26388
  else {
26438
- i18n_8 = $localize(templateObject_5$h || (templateObject_5$h = __makeTemplateObject([":\u241F4f168d78d73759138d43c58ec329dc9a1cfcd316\u241F3503734824800029552:Finaliser"], [":\u241F4f168d78d73759138d43c58ec329dc9a1cfcd316\u241F3503734824800029552:Finaliser"])));
26389
+ i18n_8 = $localize(templateObject_5$g || (templateObject_5$g = __makeTemplateObject([":\u241F4f168d78d73759138d43c58ec329dc9a1cfcd316\u241F3503734824800029552:Finaliser"], [":\u241F4f168d78d73759138d43c58ec329dc9a1cfcd316\u241F3503734824800029552:Finaliser"])));
26439
26390
  }
26440
26391
  return [["class", "miam-meals-planner-basket-preview", 4, "ngIf"], [1, "miam-meals-planner-basket-preview"], [1, "miam-meals-planner-basket-preview__content"], [1, "miam-meals-planner-basket-preview__title"], i18n_0, ["class", "miam-meals-planner-basket-preview__ingredients-regrouped", 4, "ngIf"], [3, "originTrace", "recipesIds", "displayItemsUnitaryPrice", "loading"], [1, "miam-meals-planner-basket-preview__actions"], ["class", "miam-meals-planner-basket-preview__progress-bar", 3, "unit", "value", "max", 4, "ngIf"], ["class", "m-button-primary reverse", 3, "disabled", 4, "ngIf"], [1, "m-button-primary", 3, "disabled"], ["href", "/", 4, "ngIf", "ngIfElse"], ["antiInflation", ""], [1, "miam-meals-planner-basket-preview__ingredients-regrouped"], [1, "miam-meals-planner-basket-preview__ingredients-regrouped__title"], i18n_2, [1, "miam-meals-planner-basket-preview__progress-bar", 3, "unit", "value", "max"], [1, "m-button-primary", "reverse", 3, "disabled"], [3, "href"], [1, "miam-meals-planner-basket-preview__button-text"], i18n_4, ["href", "/"], i18n_6, [3, "click"], i18n_8];
26441
26392
  }, template: function MealsPlannerBasketPreviewComponent_Template(rf, ctx) {
@@ -26468,7 +26419,7 @@
26468
26419
  type: i0.Output
26469
26420
  }] });
26470
26421
  })();
26471
- var templateObject_1$L, templateObject_2$B, templateObject_3$t, templateObject_4$n, templateObject_5$h;
26422
+ var templateObject_1$L, templateObject_2$B, templateObject_3$t, templateObject_4$n, templateObject_5$g;
26472
26423
 
26473
26424
  function MealsPlannerCatalogComponent_div_14_Template(rf, ctx) {
26474
26425
  if (rf & 1) {
@@ -26778,7 +26729,7 @@
26778
26729
  var templateObject_1$N, templateObject_2$D, templateObject_3$u, templateObject_4$o;
26779
26730
 
26780
26731
  var _b$1;
26781
- var _c0$w = ["miamMealsPlannerTopAnchor"];
26732
+ var _c0$x = ["miamMealsPlannerTopAnchor"];
26782
26733
  function MealsPlannerComponent_ng_miam_icon_15_Template(rf, ctx) {
26783
26734
  if (rf & 1) {
26784
26735
  i0.ɵɵelement(0, "ng-miam-icon", 7);
@@ -27134,7 +27085,7 @@
27134
27085
  MealsPlannerComponent.ɵfac = function MealsPlannerComponent_Factory(t) { return new (t || MealsPlannerComponent)(i0.ɵɵdirectiveInject(i3.FormBuilder), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(PointOfSalesService)); };
27135
27086
  MealsPlannerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MealsPlannerComponent, selectors: [["ng-miam-meals-planner"]], viewQuery: function MealsPlannerComponent_Query(rf, ctx) {
27136
27087
  if (rf & 1) {
27137
- i0.ɵɵviewQuery(_c0$w, true);
27088
+ i0.ɵɵviewQuery(_c0$x, true);
27138
27089
  }
27139
27090
  if (rf & 2) {
27140
27091
  var _t;
@@ -27485,7 +27436,7 @@
27485
27436
  request = request.clone({
27486
27437
  setHeaders: {
27487
27438
  'miam-origin': context.origin,
27488
- 'miam-front-version': '6.3.12',
27439
+ 'miam-front-version': '6.4.1',
27489
27440
  'miam-front-type': 'web',
27490
27441
  'miam-api-version': '4.7.0'
27491
27442
  }
@@ -27714,6 +27665,7 @@
27714
27665
  exports.Recipe = Recipe;
27715
27666
  exports.RecipeAddonComponent = RecipeAddonComponent;
27716
27667
  exports.RecipeCardComponent = RecipeCardComponent;
27668
+ exports.RecipeCardCtaComponent = RecipeCardCtaComponent;
27717
27669
  exports.RecipeCardsModule = RecipeCardsModule;
27718
27670
  exports.RecipeCatalogComponent = RecipeCatalogComponent;
27719
27671
  exports.RecipeCatalogModule = RecipeCatalogModule;