ng-miam 6.3.2 → 6.3.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/bundles/ng-miam.umd.js +410 -273
  2. package/bundles/ng-miam.umd.js.map +1 -1
  3. package/bundles/ng-miam.umd.min.js +1 -1
  4. package/bundles/ng-miam.umd.min.js.map +1 -1
  5. package/esm2015/lib/_components/meals-planner-link/meals-planner-link.component.js +6 -19
  6. package/esm2015/lib/_services/analytics.service.js +2 -1
  7. package/esm2015/lib/_services/groceries-lists.service.js +2 -2
  8. package/esm2015/lib/_services/interceptor.service.js +2 -2
  9. package/esm2015/lib/_web-components/meals-planner/meals-planner-basket-confirmation/meals-planner-basket-confirmation.component.js +14 -7
  10. package/esm2015/lib/_web-components/meals-planner/meals-planner-basket-preview/meals-planner-basket-preview.component.js +83 -54
  11. package/esm2015/lib/_web-components/meals-planner/meals-planner-catalog/meals-planner-catalog.component.js +21 -10
  12. package/esm2015/lib/_web-components/meals-planner/meals-planner-form/meals-planner-form.component.js +84 -62
  13. package/esm2015/lib/_web-components/meals-planner/meals-planner-result/meals-planner-result.component.js +18 -10
  14. package/esm2015/lib/_web-components/meals-planner/meals-planner.component.js +77 -31
  15. package/esm2015/lib/_web-components/recipe-cards/suggestion-card/suggestion-card.component.js +5 -7
  16. package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +31 -19
  17. package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +3 -3
  18. package/fesm2015/ng-miam.js +322 -206
  19. package/fesm2015/ng-miam.js.map +1 -1
  20. package/lib/_components/meals-planner-link/meals-planner-link.component.d.ts +2 -4
  21. package/lib/_services/analytics.service.d.ts +7 -0
  22. package/lib/_web-components/meals-planner/meals-planner-basket-confirmation/meals-planner-basket-confirmation.component.d.ts +8 -4
  23. package/lib/_web-components/meals-planner/meals-planner-basket-preview/meals-planner-basket-preview.component.d.ts +12 -6
  24. package/lib/_web-components/meals-planner/meals-planner-catalog/meals-planner-catalog.component.d.ts +8 -4
  25. package/lib/_web-components/meals-planner/meals-planner-form/meals-planner-form.component.d.ts +8 -4
  26. package/lib/_web-components/meals-planner/meals-planner-result/meals-planner-result.component.d.ts +8 -4
  27. package/lib/_web-components/meals-planner/meals-planner.component.d.ts +9 -1
  28. package/lib/_web-components/recipe-cards/suggestion-card/suggestion-card.component.d.ts +1 -0
  29. package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts +2 -1
  30. package/package.json +1 -1
@@ -94,6 +94,7 @@ class AnalyticsService {
94
94
  this.EVENT_PAYMENT_STARTED = 'payment.started';
95
95
  this.EVENT_PAYMENT_CONFIRMED = 'payment.confirmed';
96
96
  this.EVENT_BASKET_CONFIRMED = 'basket.confirmed';
97
+ this.EVENT_MEALS_PLANNER_CONFIRMED = 'planner.confirmed';
97
98
  this.ready$ = new BehaviorSubject(false);
98
99
  this.eventEmitter = new EventEmitter();
99
100
  }
@@ -257,7 +258,7 @@ class GroceriesListsService extends Service {
257
258
  appendRecipesToList(recipes, eventTrace, openBasket = false) {
258
259
  return this.takeFirstList().pipe(switchMap(list => {
259
260
  recipes.forEach(recipe => {
260
- this.addOrUpdateRecipeInList(list, recipe, eventTrace);
261
+ this.addOrUpdateRecipeInList(list, recipe, { originPath: eventTrace.originPath, props: { recipe_id: recipe === null || recipe === void 0 ? void 0 : recipe.id } });
261
262
  });
262
263
  return this.saveList(list, openBasket);
263
264
  }));
@@ -10054,27 +10055,16 @@ DragDropInputComponent.ɵcmp = ɵɵdefineComponent({ type: DragDropInputComponen
10054
10055
  }] }); })();
10055
10056
 
10056
10057
  class MealsPlannerLink {
10057
- constructor(context, userService, posService) {
10058
+ constructor(context) {
10058
10059
  this.context = context;
10059
- this.userService = userService;
10060
- this.posService = posService;
10061
10060
  this.icon = Icon;
10062
10061
  this.subscriptions = [];
10063
10062
  }
10064
10063
  openMealsPlanner() {
10065
- this.subscriptions.push(forkJoin([
10066
- this.userService.isLogged$.asObservable().pipe(take(1)),
10067
- this.posService.isPosValid().pipe(take(1))
10068
- ])
10069
- .subscribe(res => {
10070
- const isHookOk = this.context.hookCallback(res[0], res[1]);
10071
- if (isHookOk) {
10072
- window.location.href = this.context.mealsPlannerUrl;
10073
- }
10074
- }));
10064
+ window.location.href = this.context.mealsPlannerUrl;
10075
10065
  }
10076
10066
  }
10077
- MealsPlannerLink.ɵfac = function MealsPlannerLink_Factory(t) { return new (t || MealsPlannerLink)(ɵɵdirectiveInject(ContextService), ɵɵdirectiveInject(UserService), ɵɵdirectiveInject(PointOfSalesService)); };
10067
+ MealsPlannerLink.ɵfac = function MealsPlannerLink_Factory(t) { return new (t || MealsPlannerLink)(ɵɵdirectiveInject(ContextService)); };
10078
10068
  MealsPlannerLink.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerLink, selectors: [["ng-miam-meals-planner-link"]], decls: 14, vars: 1, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
10079
10069
  const MSG_EXTERNAL_7941873496647081087$$LIB__COMPONENTS_MEALS_PLANNER_LINK_MEALS_PLANNER_LINK_COMPONENT_TS_1 = goog.getMsg("Je planifie mes repas");
10080
10070
  i18n_0 = MSG_EXTERNAL_7941873496647081087$$LIB__COMPONENTS_MEALS_PLANNER_LINK_MEALS_PLANNER_LINK_COMPONENT_TS_1;
@@ -10130,7 +10120,7 @@ MealsPlannerLink.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerLink, selectors
10130
10120
  encapsulation: ViewEncapsulation.None,
10131
10121
  styleUrls: ['./meals-planner-link.component.scss']
10132
10122
  }]
10133
- }], function () { return [{ type: ContextService }, { type: UserService }, { type: PointOfSalesService }]; }, null); })();
10123
+ }], function () { return [{ type: ContextService }]; }, null); })();
10134
10124
 
10135
10125
  const COMPONENTS = [
10136
10126
  IconComponent,
@@ -16391,6 +16381,10 @@ class SuggestionCardComponent extends AbstractRecipeCardComponent {
16391
16381
  this.loadRecipe();
16392
16382
  }
16393
16383
  }
16384
+ // Only send show event if the recipe has changed while the card was in viewport
16385
+ sendShowEvent() {
16386
+ return false;
16387
+ }
16394
16388
  // If recipe already in basket, update the number of guests so that the pricing gets updated as well
16395
16389
  // (display = false so that the recipe details don't show up)
16396
16390
  guestsChanged() {
@@ -16422,10 +16416,8 @@ class SuggestionCardComponent extends AbstractRecipeCardComponent {
16422
16416
  // If the recipe is in basket, will show number of guests as defined in the basket
16423
16417
  // Otherwise, will show default number of guests for the recipe
16424
16418
  processResults(recipes) {
16425
- var _a, _b;
16426
16419
  this.isEmpty = (!recipes || recipes.length === 0);
16427
16420
  if (!this.isEmpty) {
16428
- const recipeChanged = ((_a = this.recipe) === null || _a === void 0 ? void 0 : _a.id) !== ((_b = recipes[0]) === null || _b === void 0 ? void 0 : _b.id);
16429
16421
  // get the first recipe and shallow copy it to permit to send event and do not disturb any other component
16430
16422
  // if ressource is cached without copy another load will get the attributes
16431
16423
  this.recipe = recipes[0].shallowCopyWithEvents(this.recipeEventsService.ORIGIN_SUGGESTION, this.eventsGroupId);
@@ -16437,10 +16429,6 @@ class SuggestionCardComponent extends AbstractRecipeCardComponent {
16437
16429
  }
16438
16430
  }));
16439
16431
  this.recipeCard.cdr.markForCheck();
16440
- if (recipeChanged) {
16441
- this.analyticsEventSent = false;
16442
- this.sendShowEvent();
16443
- }
16444
16432
  }
16445
16433
  else {
16446
16434
  this.hide.emit();
@@ -17428,9 +17416,9 @@ CatalogHeaderComponent.ɵcmp = ɵɵdefineComponent({ type: CatalogHeaderComponen
17428
17416
  }] }); })();
17429
17417
 
17430
17418
  function CatalogListComponent_div_1_div_2_div_4_Template(rf, ctx) { if (rf & 1) {
17431
- ɵɵelementStart(0, "div");
17419
+ ɵɵelementStart(0, "div", 17);
17432
17420
  ɵɵelementStart(1, "span");
17433
- ɵɵi18n(2, 17);
17421
+ ɵɵi18n(2, 18);
17434
17422
  ɵɵelementEnd();
17435
17423
  ɵɵelementStart(3, "span");
17436
17424
  ɵɵtext(4);
@@ -17450,7 +17438,9 @@ function CatalogListComponent_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
17450
17438
  ɵɵtemplate(4, CatalogListComponent_div_1_div_2_div_4_Template, 5, 1, "div", 14);
17451
17439
  ɵɵelementEnd();
17452
17440
  ɵɵelementStart(5, "div", 15);
17453
- ɵɵi18n(6, 16);
17441
+ ɵɵelementStart(6, "span");
17442
+ ɵɵi18n(7, 16);
17443
+ ɵɵelementEnd();
17454
17444
  ɵɵelementEnd();
17455
17445
  ɵɵelementEnd();
17456
17446
  } if (rf & 2) {
@@ -17460,13 +17450,15 @@ function CatalogListComponent_div_1_div_2_Template(rf, ctx) { if (rf & 1) {
17460
17450
  } }
17461
17451
  function CatalogListComponent_div_1_ng_template_3_div_0_Template(rf, ctx) { if (rf & 1) {
17462
17452
  ɵɵelementStart(0, "div");
17463
- ɵɵelementStart(1, "span", 12);
17464
- ɵɵi18n(2, 18);
17453
+ ɵɵelementStart(1, "div", 19);
17454
+ ɵɵelementStart(2, "span");
17455
+ ɵɵi18n(3, 20);
17456
+ ɵɵelementEnd();
17465
17457
  ɵɵelementEnd();
17466
17458
  ɵɵelementEnd();
17467
17459
  } }
17468
17460
  function CatalogListComponent_div_1_ng_template_3_Template(rf, ctx) { if (rf & 1) {
17469
- ɵɵtemplate(0, CatalogListComponent_div_1_ng_template_3_div_0_Template, 3, 0, "div", 9);
17461
+ ɵɵtemplate(0, CatalogListComponent_div_1_ng_template_3_div_0_Template, 4, 0, "div", 9);
17470
17462
  ɵɵpipe(1, "async");
17471
17463
  } if (rf & 2) {
17472
17464
  ɵɵnextContext();
@@ -17475,16 +17467,18 @@ function CatalogListComponent_div_1_ng_template_3_Template(rf, ctx) { if (rf & 1
17475
17467
  ɵɵproperty("ngIf", ɵɵpipeBind1(1, 2, ctx_r7.userService.isLogged$))("ngIfElse", _r8);
17476
17468
  } }
17477
17469
  function CatalogListComponent_div_1_ng_template_5_Template(rf, ctx) { if (rf & 1) {
17478
- ɵɵelementStart(0, "span", 12);
17479
- ɵɵi18n(1, 19);
17470
+ ɵɵelementStart(0, "div", 21);
17471
+ ɵɵelementStart(1, "span");
17472
+ ɵɵi18n(2, 22);
17473
+ ɵɵelementEnd();
17480
17474
  ɵɵelementEnd();
17481
17475
  } }
17482
17476
  function CatalogListComponent_div_1_Template(rf, ctx) { if (rf & 1) {
17483
17477
  ɵɵelementStart(0, "div", 7);
17484
17478
  ɵɵelement(1, "ng-miam-icon", 8);
17485
- ɵɵtemplate(2, CatalogListComponent_div_1_div_2_Template, 7, 1, "div", 9);
17479
+ ɵɵtemplate(2, CatalogListComponent_div_1_div_2_Template, 8, 1, "div", 9);
17486
17480
  ɵɵtemplate(3, CatalogListComponent_div_1_ng_template_3_Template, 2, 4, "ng-template", null, 10, ɵɵtemplateRefExtractor);
17487
- ɵɵtemplate(5, CatalogListComponent_div_1_ng_template_5_Template, 2, 0, "ng-template", null, 11, ɵɵtemplateRefExtractor);
17481
+ ɵɵtemplate(5, CatalogListComponent_div_1_ng_template_5_Template, 3, 0, "ng-template", null, 11, ɵɵtemplateRefExtractor);
17488
17482
  ɵɵelementEnd();
17489
17483
  } if (rf & 2) {
17490
17484
  const _r6 = ɵɵreference(4);
@@ -17496,13 +17490,13 @@ function CatalogListComponent_div_1_Template(rf, ctx) { if (rf & 1) {
17496
17490
  } }
17497
17491
  function CatalogListComponent_ng_miam_card_create_recipe_3_Template(rf, ctx) { if (rf & 1) {
17498
17492
  const _r13 = ɵɵgetCurrentView();
17499
- ɵɵelementStart(0, "ng-miam-card-create-recipe", 20);
17493
+ ɵɵelementStart(0, "ng-miam-card-create-recipe", 23);
17500
17494
  ɵɵlistener("clicked", function CatalogListComponent_ng_miam_card_create_recipe_3_Template_ng_miam_card_create_recipe_clicked_0_listener() { ɵɵrestoreView(_r13); const ctx_r12 = ɵɵnextContext(); return ctx_r12.recipeActionTriggered.emit({ action: "CREATE", recipe: null }); });
17501
17495
  ɵɵelementEnd();
17502
17496
  } }
17503
17497
  function CatalogListComponent_ng_miam_catalog_recipe_card_4_Template(rf, ctx) { if (rf & 1) {
17504
17498
  const _r16 = ɵɵgetCurrentView();
17505
- ɵɵelementStart(0, "ng-miam-catalog-recipe-card", 21);
17499
+ ɵɵelementStart(0, "ng-miam-catalog-recipe-card", 24);
17506
17500
  ɵɵlistener("addToMealsPlanner", function CatalogListComponent_ng_miam_catalog_recipe_card_4_Template_ng_miam_catalog_recipe_card_addToMealsPlanner_0_listener($event) { ɵɵrestoreView(_r16); const ctx_r15 = ɵɵnextContext(); return ctx_r15.addToMealsPlanner.emit($event); })("actionTriggered", function CatalogListComponent_ng_miam_catalog_recipe_card_4_Template_ng_miam_catalog_recipe_card_actionTriggered_0_listener($event) { ɵɵrestoreView(_r16); const recipe_r14 = ctx.$implicit; const ctx_r17 = ɵɵnextContext(); return ctx_r17.recipeActionTriggered.emit({ action: $event, recipe: recipe_r14 }); });
17507
17501
  ɵɵelementEnd();
17508
17502
  } if (rf & 2) {
@@ -17511,16 +17505,16 @@ function CatalogListComponent_ng_miam_catalog_recipe_card_4_Template(rf, ctx) {
17511
17505
  ɵɵproperty("recipe", recipe_r14)("originTrace", ctx_r2.eventTrace())("displayPricing", ctx_r2.displayPricing)("previewAllowed", !ctx_r2.addRecipeMode)("addRecipeMode", ctx_r2.addRecipeMode)("displayGuests", ctx_r2.displayGuests);
17512
17506
  } }
17513
17507
  function CatalogListComponent_ng_miam_catalog_article_card_5_Template(rf, ctx) { if (rf & 1) {
17514
- ɵɵelement(0, "ng-miam-catalog-article-card", 22);
17508
+ ɵɵelement(0, "ng-miam-catalog-article-card", 25);
17515
17509
  } if (rf & 2) {
17516
17510
  const article_r18 = ctx.$implicit;
17517
17511
  ɵɵproperty("article", article_r18);
17518
17512
  } }
17519
17513
  function CatalogListComponent_div_6_Template(rf, ctx) { if (rf & 1) {
17520
- ɵɵelementStart(0, "div", 23);
17514
+ ɵɵelementStart(0, "div", 26);
17521
17515
  ɵɵelement(1, "ng-miam-loader");
17522
17516
  ɵɵelementStart(2, "div");
17523
- ɵɵi18n(3, 24);
17517
+ ɵɵi18n(3, 27);
17524
17518
  ɵɵelementEnd();
17525
17519
  ɵɵelementEnd();
17526
17520
  } }
@@ -17545,6 +17539,7 @@ class CatalogListComponent extends EventTracerComponent {
17545
17539
  this.randomMode = false;
17546
17540
  this.displayGuests = true;
17547
17541
  this.addRecipeMode = false;
17542
+ this.excludedRecipesIds = [];
17548
17543
  this.addToMealsPlanner = new EventEmitter();
17549
17544
  this.filterRemoved = new EventEmitter();
17550
17545
  this.recipeActionTriggered = new EventEmitter();
@@ -17634,6 +17629,9 @@ class CatalogListComponent extends EventTracerComponent {
17634
17629
  processResults(results, requestFilters, page) {
17635
17630
  // Because Filter is a type, attributes are always in the same order, so stringify won't be false for objects with same attributes
17636
17631
  if (JSON.stringify(requestFilters) === JSON.stringify(this.filters)) {
17632
+ if (this.excludedRecipesIds.length > 0) {
17633
+ results = results.filter(recipe => !this.excludedRecipesIds.includes(recipe.id));
17634
+ }
17637
17635
  // if you spam click on filters, multiple requests with page == 1 could be sent for the same filters -> only keep the last result
17638
17636
  this.currentRecipes = page === 1 ? results : [...this.currentRecipes, ...results];
17639
17637
  this.currentRecipes.forEach((r) => {
@@ -17745,7 +17743,7 @@ CatalogListComponent.ɵcmp = ɵɵdefineComponent({ type: CatalogListComponent, s
17745
17743
  } if (rf & 2) {
17746
17744
  var _t;
17747
17745
  ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.recipeCards = _t);
17748
- } }, inputs: { filters: "filters", insertCreateCard: "insertCreateCard", randomMode: "randomMode", modifiedGuests: "modifiedGuests", displayPricing: "displayPricing", displayGuests: "displayGuests", addRecipeMode: "addRecipeMode" }, outputs: { addToMealsPlanner: "addToMealsPlanner", filterRemoved: "filterRemoved", recipeActionTriggered: "recipeActionTriggered", loading: "loading" }, features: [ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature], decls: 9, vars: 9, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17746
+ } }, inputs: { filters: "filters", insertCreateCard: "insertCreateCard", randomMode: "randomMode", modifiedGuests: "modifiedGuests", displayPricing: "displayPricing", displayGuests: "displayGuests", addRecipeMode: "addRecipeMode", excludedRecipesIds: "excludedRecipesIds" }, outputs: { addToMealsPlanner: "addToMealsPlanner", filterRemoved: "filterRemoved", recipeActionTriggered: "recipeActionTriggered", loading: "loading" }, features: [ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature], decls: 9, vars: 9, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17749
17747
  const MSG_EXTERNAL_2565683500171826824$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___1 = goog.getMsg("D\u00E9sol\u00E9, aucune proposition trouv\u00E9e");
17750
17748
  i18n_0 = MSG_EXTERNAL_2565683500171826824$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___1;
17751
17749
  }
@@ -17781,7 +17779,7 @@ CatalogListComponent.ɵcmp = ɵɵdefineComponent({ type: CatalogListComponent, s
17781
17779
  }
17782
17780
  else {
17783
17781
  i18n_10 = $localize `:␟834498e5698b366d53cba7a7f98b06a12967862c␟1875448131572248295: Chargement des résultats... `;
17784
- } return [[1, "miam-catalog-list__cards"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__card", 3, "clicked", 4, "ngIf"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "addToMealsPlanner", "actionTriggered", 4, "ngFor", "ngForOf"], [3, "article", 4, "ngFor", "ngForOf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["id", "miam-catalog-list__anchor"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1"], i18n_0, [4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, i18n_4, i18n_6, i18n_8, [1, "miam-catalog-list__card", 3, "clicked"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "addToMealsPlanner", "actionTriggered"], [3, "article"], [1, "miam-catalog-list__loader"], i18n_10]; }, template: function CatalogListComponent_Template(rf, ctx) { if (rf & 1) {
17782
+ } return [[1, "miam-catalog-list__cards"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__card", 3, "clicked", 4, "ngIf"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "addToMealsPlanner", "actionTriggered", 4, "ngFor", "ngForOf"], [3, "article", 4, "ngFor", "ngForOf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["id", "miam-catalog-list__anchor"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "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", "addToMealsPlanner", "actionTriggered"], [3, "article"], [1, "miam-catalog-list__loader"], i18n_10]; }, template: function CatalogListComponent_Template(rf, ctx) { if (rf & 1) {
17785
17783
  ɵɵelementStart(0, "div", 0);
17786
17784
  ɵɵtemplate(1, CatalogListComponent_div_1_Template, 7, 5, "div", 1);
17787
17785
  ɵɵpipe(2, "async");
@@ -17803,7 +17801,7 @@ CatalogListComponent.ɵcmp = ɵɵdefineComponent({ type: CatalogListComponent, s
17803
17801
  ɵɵproperty("ngForOf", ctx.articles);
17804
17802
  ɵɵadvance(1);
17805
17803
  ɵɵproperty("ngIf", ɵɵpipeBind1(7, 7, ctx.loading));
17806
- } }, directives: [NgIf, NgForOf, IconComponent, CardCreateRecipeComponent, CatalogRecipeCardComponent, CatalogArticleCardComponent, LoaderComponent], pipes: [AsyncPipe], styles: [".miam-catalog-list__cards{display:flex;flex-flow:row wrap;justify-content:center;margin:calc(0px - var(--m-catalog-cards-spacing)/2);position:relative;right:0;top:0;width:calc(100% + var(--m-catalog-cards-spacing))}.miam-catalog-list__cards .miam-catalog-list__notFound{display:flex;flex-direction:column;justify-content:center;padding:36px 0 0;text-align:center;width:100%}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{color:var(--m-color-primary);font-size:24px;font-weight:700;margin-top:36px}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title2{color:var(--m-color-grey-text);font-size:22px}.miam-catalog-list__cards .miam-catalog-list__loader{color:var(--m-color-grey-text);font-size:20px;font-weight:700;text-align:center;width:100%}.miam-catalog-list__cards .miam-catalog-list__loader .miam-loader{height:80px;margin-bottom:16px;margin-left:calc(50% - 40px);margin-top:80px;width:80px}.miam-catalog-list__cards #miam-catalog-list__anchor{bottom:0;height:600px;margin-top:-600px;position:relative}"], encapsulation: 2, changeDetection: 0 });
17804
+ } }, directives: [NgIf, NgForOf, IconComponent, CardCreateRecipeComponent, CatalogRecipeCardComponent, CatalogArticleCardComponent, LoaderComponent], pipes: [AsyncPipe], styles: [".miam-catalog-list__cards{display:flex;flex-flow:row wrap;justify-content:center;margin:calc(0px - var(--m-catalog-cards-spacing)/2);position:relative;right:0;top:0;width:calc(100% + var(--m-catalog-cards-spacing))}.miam-catalog-list__cards .miam-catalog-list__notFound{display:flex;flex-direction:column;justify-content:center;padding:36px 0 0;text-align:center;width:100%}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{color:var(--m-color-primary);font-size:24px;font-weight:700;margin-top:36px}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering{display:flex;justify-content:center}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering .miam-catalog-list__notFound__searching span{margin-left:5px}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title2{color:var(--m-color-grey-text);font-size:22px}.miam-catalog-list__cards .miam-catalog-list__loader{color:var(--m-color-grey-text);font-size:20px;font-weight:700;text-align:center;width:100%}.miam-catalog-list__cards .miam-catalog-list__loader .miam-loader{height:80px;margin-bottom:16px;margin-left:calc(50% - 40px);margin-top:80px;width:80px}.miam-catalog-list__cards #miam-catalog-list__anchor{bottom:0;height:600px;margin-top:-600px;position:relative}"], encapsulation: 2, changeDetection: 0 });
17807
17805
  /*@__PURE__*/ (function () { ɵsetClassMetadata(CatalogListComponent, [{
17808
17806
  type: Component,
17809
17807
  args: [{
@@ -17827,6 +17825,8 @@ CatalogListComponent.ɵcmp = ɵɵdefineComponent({ type: CatalogListComponent, s
17827
17825
  type: Input
17828
17826
  }], addRecipeMode: [{
17829
17827
  type: Input
17828
+ }], excludedRecipesIds: [{
17829
+ type: Input
17830
17830
  }], addToMealsPlanner: [{
17831
17831
  type: Output
17832
17832
  }], filterRemoved: [{
@@ -19802,7 +19802,7 @@ class RecipeCatalogComponent extends EventTracerComponent {
19802
19802
  setPriceFilters(cost) {
19803
19803
  const filters = Object.assign(this.filters, {
19804
19804
  additionalFilters: {
19805
- filters: { computed_cost: cost[0] + ',gt,' + cost[1] + ',lt', recipe_type_id: '1' },
19805
+ filters: { computed_cost: cost[0] + ',gt,' + cost[1] + ',lt', recipe_type_id: 'main-dish' },
19806
19806
  title: `Recettes à moins de ${cost[1]}€`
19807
19807
  }
19808
19808
  });
@@ -20005,7 +20005,7 @@ RecipeCatalogComponent.ɵcmp = ɵɵdefineComponent({ type: RecipeCatalogComponen
20005
20005
  const _r2 = ɵɵreference(4);
20006
20006
  ɵɵadvance(2);
20007
20007
  ɵɵproperty("ngIf", !ctx.creatingRecipe && ctx.catalogSettingHasLoaded)("ngIfElse", _r2);
20008
- } }, directives: [NgIf, CatalogHeaderComponent, RecipeFiltersComponent, IconComponent, CatalogListComponent, NgForOf, CatalogCategoryComponent, ExplainBannerComponent, MealsPlannerLink, RecipeStepperComponent], pipes: [AsyncPipe], styles: [".miam-recipe-catalog{display:flex;justify-content:space-between}.miam-recipe-catalog,.miam-recipe-catalog .miam-recipe-catalog__content{position:relative;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{align-items:center;display:flex;font-size:24px;font-weight:700;line-height:34px;margin-bottom:24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title ng-miam-icon{cursor:pointer;margin-right:20px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title ng-miam-icon .icon-container{transform:rotate(90deg)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{display:flex;flex-direction:column;padding:48px 24px;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{align-items:flex-end;display:flex;flex-direction:row;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{margin:0 22px 40px 0}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{padding:48px 0 48px 24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{align-items:flex-start;flex-direction:column}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{margin:0 24px 24px 0;width:calc(100% - 24px)}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list{padding:24px;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__list__create___button{align-items:center;border:1px solid var(--miam-color-primary);border-radius:20px;color:var(--miam-color-primary);cursor:pointer;display:flex;padding:4px 8px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button{align-items:center;background:var(--m-color-primary);border-radius:0 0 20px 20px;cursor:pointer;display:flex;height:50px;justify-content:space-around;left:unset;position:absolute;right:50px;width:200px}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__button__text{color:var(--m-color-white);font-weight:700}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__second__icon{transform:rotate(-90deg)}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button{border-radius:20px 20px 0 0;bottom:0;left:8px;position:fixed;right:8px;width:auto;z-index:2}}"], encapsulation: 2, changeDetection: 0 });
20008
+ } }, directives: [NgIf, CatalogHeaderComponent, RecipeFiltersComponent, IconComponent, CatalogListComponent, NgForOf, CatalogCategoryComponent, ExplainBannerComponent, MealsPlannerLink, RecipeStepperComponent], pipes: [AsyncPipe], styles: [".miam-recipe-catalog{display:flex;justify-content:space-between}.miam-recipe-catalog,.miam-recipe-catalog .miam-recipe-catalog__content{position:relative;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{align-items:center;display:flex;font-size:24px;font-weight:700;line-height:34px;margin-bottom:24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title ng-miam-icon{cursor:pointer;margin-right:20px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title ng-miam-icon .icon-container{transform:rotate(90deg)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title span:last-child{margin-left:6px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{display:flex;flex-direction:column;padding:48px 24px;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{align-items:flex-end;display:flex;flex-direction:row;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{margin:0 22px 40px 0}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{padding:48px 0 48px 24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{align-items:flex-start;flex-direction:column}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{margin:0 24px 24px 0;width:calc(100% - 24px)}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list{padding:24px;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__list__create___button{align-items:center;border:1px solid var(--miam-color-primary);border-radius:20px;color:var(--miam-color-primary);cursor:pointer;display:flex;padding:4px 8px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button{align-items:center;background:var(--m-color-primary);border-radius:0 0 20px 20px;cursor:pointer;display:flex;height:50px;justify-content:space-around;left:unset;position:absolute;right:50px;width:200px}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__button__text{color:var(--m-color-white);font-weight:700}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__second__icon{transform:rotate(-90deg)}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button{border-radius:20px 20px 0 0;bottom:0;left:8px;position:fixed;right:8px;width:auto;z-index:2}}"], encapsulation: 2, changeDetection: 0 });
20009
20009
  /*@__PURE__*/ (function () { ɵsetClassMetadata(RecipeCatalogComponent, [{
20010
20010
  type: Component,
20011
20011
  args: [{
@@ -21353,33 +21353,33 @@ SponsorStorytellingComponent.ɵcmp = ɵɵdefineComponent({ type: SponsorStorytel
21353
21353
  }] }); })();
21354
21354
 
21355
21355
  function MealsPlannerFormComponent_ng_miam_counter_input_28_Template(rf, ctx) { if (rf & 1) {
21356
- const _r8 = ɵɵgetCurrentView();
21357
- ɵɵelementStart(0, "ng-miam-counter-input", 32);
21358
- ɵɵlistener("counterChange", function MealsPlannerFormComponent_ng_miam_counter_input_28_Template_ng_miam_counter_input_counterChange_0_listener($event) { ɵɵrestoreView(_r8); const ctx_r7 = ɵɵnextContext(); return ctx_r7.updateGuests($event); });
21356
+ const _r11 = ɵɵgetCurrentView();
21357
+ ɵɵelementStart(0, "ng-miam-counter-input", 34);
21358
+ ɵɵlistener("counterChange", function MealsPlannerFormComponent_ng_miam_counter_input_28_Template_ng_miam_counter_input_counterChange_0_listener($event) { ɵɵrestoreView(_r11); const ctx_r10 = ɵɵnextContext(); return ctx_r10.updateGuests($event); });
21359
21359
  ɵɵelementEnd();
21360
21360
  } if (rf & 2) {
21361
21361
  const ctx_r0 = ɵɵnextContext();
21362
21362
  ɵɵproperty("counter", ctx_r0.form.get("guestsCount").value)("minRange", 1)("maxRange", 8);
21363
21363
  } }
21364
21364
  function MealsPlannerFormComponent_ng_template_29_option_3_Template(rf, ctx) { if (rf & 1) {
21365
- ɵɵelementStart(0, "option", 36);
21365
+ ɵɵelementStart(0, "option", 38);
21366
21366
  ɵɵtext(1);
21367
21367
  ɵɵelementEnd();
21368
21368
  } if (rf & 2) {
21369
- const number_r10 = ctx.$implicit;
21370
- ɵɵproperty("ngValue", number_r10);
21369
+ const number_r13 = ctx.$implicit;
21370
+ ɵɵproperty("ngValue", number_r13);
21371
21371
  ɵɵadvance(1);
21372
- ɵɵtextInterpolate(number_r10);
21372
+ ɵɵtextInterpolate(number_r13);
21373
21373
  } }
21374
21374
  const _c12$1 = function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9]; };
21375
21375
  function MealsPlannerFormComponent_ng_template_29_Template(rf, ctx) { if (rf & 1) {
21376
- const _r12 = ɵɵgetCurrentView();
21377
- ɵɵelementStart(0, "select", 33);
21378
- ɵɵlistener("ngModelChange", function MealsPlannerFormComponent_ng_template_29_Template_select_ngModelChange_0_listener() { ɵɵrestoreView(_r12); const ctx_r11 = ɵɵnextContext(); return ctx_r11.updateView(); });
21379
- ɵɵelementStart(1, "option", 34);
21376
+ const _r15 = ɵɵgetCurrentView();
21377
+ ɵɵelementStart(0, "select", 35);
21378
+ ɵɵlistener("ngModelChange", function MealsPlannerFormComponent_ng_template_29_Template_select_ngModelChange_0_listener() { ɵɵrestoreView(_r15); const ctx_r14 = ɵɵnextContext(); return ctx_r14.updateView(); });
21379
+ ɵɵelementStart(1, "option", 36);
21380
21380
  ɵɵtext(2);
21381
21381
  ɵɵelementEnd();
21382
- ɵɵtemplate(3, MealsPlannerFormComponent_ng_template_29_option_3_Template, 2, 2, "option", 35);
21382
+ ɵɵtemplate(3, MealsPlannerFormComponent_ng_template_29_option_3_Template, 2, 2, "option", 37);
21383
21383
  ɵɵelementEnd();
21384
21384
  } if (rf & 2) {
21385
21385
  const ctx_r2 = ɵɵnextContext();
@@ -21391,32 +21391,32 @@ function MealsPlannerFormComponent_ng_template_29_Template(rf, ctx) { if (rf & 1
21391
21391
  ɵɵproperty("ngForOf", ɵɵpureFunction0(3, _c12$1));
21392
21392
  } }
21393
21393
  function MealsPlannerFormComponent_ng_miam_counter_input_39_Template(rf, ctx) { if (rf & 1) {
21394
- const _r14 = ɵɵgetCurrentView();
21395
- ɵɵelementStart(0, "ng-miam-counter-input", 32);
21396
- ɵɵlistener("counterChange", function MealsPlannerFormComponent_ng_miam_counter_input_39_Template_ng_miam_counter_input_counterChange_0_listener($event) { ɵɵrestoreView(_r14); const ctx_r13 = ɵɵnextContext(); return ctx_r13.updateRecipesCount($event); });
21394
+ const _r17 = ɵɵgetCurrentView();
21395
+ ɵɵelementStart(0, "ng-miam-counter-input", 34);
21396
+ ɵɵlistener("counterChange", function MealsPlannerFormComponent_ng_miam_counter_input_39_Template_ng_miam_counter_input_counterChange_0_listener($event) { ɵɵrestoreView(_r17); const ctx_r16 = ɵɵnextContext(); return ctx_r16.updateRecipesCount($event); });
21397
21397
  ɵɵelementEnd();
21398
21398
  } if (rf & 2) {
21399
21399
  const ctx_r3 = ɵɵnextContext();
21400
21400
  ɵɵproperty("counter", ctx_r3.form.get("recipesCount").value)("minRange", 1)("maxRange", 99);
21401
21401
  } }
21402
21402
  function MealsPlannerFormComponent_ng_template_40_option_3_Template(rf, ctx) { if (rf & 1) {
21403
- ɵɵelementStart(0, "option", 36);
21403
+ ɵɵelementStart(0, "option", 38);
21404
21404
  ɵɵtext(1);
21405
21405
  ɵɵelementEnd();
21406
21406
  } if (rf & 2) {
21407
- const option_r16 = ctx.$implicit;
21408
- ɵɵproperty("ngValue", option_r16);
21407
+ const option_r19 = ctx.$implicit;
21408
+ ɵɵproperty("ngValue", option_r19);
21409
21409
  ɵɵadvance(1);
21410
- ɵɵtextInterpolate(option_r16);
21410
+ ɵɵtextInterpolate(option_r19);
21411
21411
  } }
21412
21412
  function MealsPlannerFormComponent_ng_template_40_Template(rf, ctx) { if (rf & 1) {
21413
- const _r18 = ɵɵgetCurrentView();
21414
- ɵɵelementStart(0, "select", 37);
21415
- ɵɵlistener("ngModelChange", function MealsPlannerFormComponent_ng_template_40_Template_select_ngModelChange_0_listener() { ɵɵrestoreView(_r18); const ctx_r17 = ɵɵnextContext(); return ctx_r17.updateView(); });
21416
- ɵɵelementStart(1, "option", 38);
21413
+ const _r21 = ɵɵgetCurrentView();
21414
+ ɵɵelementStart(0, "select", 39);
21415
+ ɵɵlistener("ngModelChange", function MealsPlannerFormComponent_ng_template_40_Template_select_ngModelChange_0_listener() { ɵɵrestoreView(_r21); const ctx_r20 = ɵɵnextContext(); return ctx_r20.updateView(); });
21416
+ ɵɵelementStart(1, "option", 40);
21417
21417
  ɵɵtext(2, "S\u00E9lectionner");
21418
21418
  ɵɵelementEnd();
21419
- ɵɵtemplate(3, MealsPlannerFormComponent_ng_template_40_option_3_Template, 2, 2, "option", 35);
21419
+ ɵɵtemplate(3, MealsPlannerFormComponent_ng_template_40_option_3_Template, 2, 2, "option", 37);
21420
21420
  ɵɵelementEnd();
21421
21421
  } if (rf & 2) {
21422
21422
  const ctx_r5 = ɵɵnextContext();
@@ -21426,52 +21426,64 @@ function MealsPlannerFormComponent_ng_template_40_Template(rf, ctx) { if (rf & 1
21426
21426
  ɵɵadvance(2);
21427
21427
  ɵɵproperty("ngForOf", ctx_r5.recipesNumbers);
21428
21428
  } }
21429
- function MealsPlannerFormComponent_div_52_Template(rf, ctx) { if (rf & 1) {
21430
- ɵɵelementStart(0, "div", 39);
21431
- ɵɵelementStart(1, "div", 40);
21429
+ function MealsPlannerFormComponent_ng_miam_icon_44_Template(rf, ctx) { if (rf & 1) {
21430
+ ɵɵelement(0, "ng-miam-icon", 32);
21431
+ } if (rf & 2) {
21432
+ const ctx_r6 = ɵɵnextContext();
21433
+ ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r6.icon.Search);
21434
+ } }
21435
+ function MealsPlannerFormComponent_ng_template_45_Template(rf, ctx) { if (rf & 1) {
21436
+ ɵɵelement(0, "ng-miam-loader");
21437
+ } }
21438
+ function MealsPlannerFormComponent_div_55_Template(rf, ctx) { if (rf & 1) {
21439
+ ɵɵelementStart(0, "div", 41);
21440
+ ɵɵelementStart(1, "div", 42);
21432
21441
  ɵɵelementStart(2, "span");
21433
- ɵɵi18n(3, 41);
21442
+ ɵɵi18n(3, 43);
21434
21443
  ɵɵelementEnd();
21435
21444
  ɵɵelementEnd();
21436
- ɵɵelementStart(4, "div", 42);
21437
- ɵɵelementStart(5, "a", 43);
21445
+ ɵɵelementStart(4, "div", 44);
21446
+ ɵɵelementStart(5, "a", 45);
21438
21447
  ɵɵelementStart(6, "span");
21439
- ɵɵi18n(7, 44);
21448
+ ɵɵi18n(7, 46);
21440
21449
  ɵɵelementEnd();
21441
21450
  ɵɵelementEnd();
21442
- ɵɵelementStart(8, "a", 45);
21451
+ ɵɵelementStart(8, "a", 47);
21443
21452
  ɵɵelementStart(9, "span");
21444
- ɵɵi18n(10, 46);
21453
+ ɵɵi18n(10, 48);
21445
21454
  ɵɵelementEnd();
21446
21455
  ɵɵelementEnd();
21447
- ɵɵelementStart(11, "a", 47);
21456
+ ɵɵelementStart(11, "a", 49);
21448
21457
  ɵɵelementStart(12, "span");
21449
- ɵɵi18n(13, 48);
21458
+ ɵɵi18n(13, 50);
21450
21459
  ɵɵelementEnd();
21451
21460
  ɵɵelement(14, "ng-miam-icon", 4);
21452
21461
  ɵɵelementEnd();
21453
21462
  ɵɵelementEnd();
21454
21463
  ɵɵelementEnd();
21455
21464
  } if (rf & 2) {
21456
- const ctx_r6 = ɵɵnextContext();
21465
+ const ctx_r9 = ɵɵnextContext();
21457
21466
  ɵɵadvance(5);
21458
- ɵɵproperty("href", ctx_r6.context.catalogUrl + "?cost=0,3", ɵɵsanitizeUrl);
21467
+ ɵɵproperty("href", ctx_r9.context.catalogUrl + "?cost=0,3", ɵɵsanitizeUrl);
21459
21468
  ɵɵadvance(3);
21460
- ɵɵproperty("href", ctx_r6.context.catalogUrl + "?cost=0,5", ɵɵsanitizeUrl);
21469
+ ɵɵproperty("href", ctx_r9.context.catalogUrl + "?cost=0,5", ɵɵsanitizeUrl);
21461
21470
  ɵɵadvance(3);
21462
- ɵɵproperty("href", ctx_r6.context.catalogUrl, ɵɵsanitizeUrl);
21471
+ ɵɵproperty("href", ctx_r9.context.catalogUrl, ɵɵsanitizeUrl);
21463
21472
  ɵɵadvance(3);
21464
- ɵɵproperty("iconName", ctx_r6.icon.ChevronDown);
21473
+ ɵɵproperty("iconName", ctx_r9.icon.ChevronDown);
21465
21474
  } }
21466
21475
  const _c21 = function (a0) { return { "reduced": a0 }; };
21467
- class MealsPlannerFormComponent {
21468
- constructor(cdr, context, userService, recipesService, posService) {
21476
+ class MealsPlannerFormComponent extends EventTracerComponent {
21477
+ constructor(cdr, context, userService, recipesService, posService, analyticsService) {
21478
+ super(analyticsService);
21469
21479
  this.cdr = cdr;
21470
21480
  this.context = context;
21471
21481
  this.userService = userService;
21472
21482
  this.recipesService = recipesService;
21473
21483
  this.posService = posService;
21484
+ this.analyticsService = analyticsService;
21474
21485
  this.reduced = false;
21486
+ this.loading = false;
21475
21487
  this.submitted = new EventEmitter();
21476
21488
  this.icon = Icon;
21477
21489
  this.recipesNumbers = [];
@@ -21486,6 +21498,7 @@ class MealsPlannerFormComponent {
21486
21498
  ngOnDestroy() {
21487
21499
  this.subscriptions.forEach(s => s.unsubscribe());
21488
21500
  }
21501
+ currentPath() { return ''; }
21489
21502
  fetchRecipesNumbers() {
21490
21503
  if (!this.form.value.guestsCount || !this.form.value.budget) {
21491
21504
  return of(null);
@@ -21532,8 +21545,8 @@ class MealsPlannerFormComponent {
21532
21545
  window.history.back();
21533
21546
  }
21534
21547
  }
21535
- MealsPlannerFormComponent.ɵfac = function MealsPlannerFormComponent_Factory(t) { return new (t || MealsPlannerFormComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ContextService), ɵɵdirectiveInject(UserService), ɵɵdirectiveInject(RecipesService), ɵɵdirectiveInject(PointOfSalesService)); };
21536
- MealsPlannerFormComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerFormComponent, selectors: [["ng-miam-meals-planner-form"]], inputs: { form: "form", reduced: "reduced" }, outputs: { submitted: "submitted" }, features: [ɵɵNgOnChangesFeature], decls: 53, vars: 25, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
21548
+ MealsPlannerFormComponent.ɵfac = function MealsPlannerFormComponent_Factory(t) { return new (t || MealsPlannerFormComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ContextService), ɵɵdirectiveInject(UserService), ɵɵdirectiveInject(RecipesService), ɵɵdirectiveInject(PointOfSalesService), ɵɵdirectiveInject(AnalyticsService)); };
21549
+ MealsPlannerFormComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerFormComponent, selectors: [["ng-miam-meals-planner-form"]], inputs: { form: "form", reduced: "reduced", loading: "loading" }, outputs: { submitted: "submitted" }, features: [ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature], decls: 56, vars: 27, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
21537
21550
  const MSG_EXTERNAL_5479681205645032650$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS_1 = goog.getMsg("Je d\u00E9finis mes crit\u00E8res");
21538
21551
  i18n_0 = MSG_EXTERNAL_5479681205645032650$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS_1;
21539
21552
  }
@@ -21593,7 +21606,7 @@ MealsPlannerFormComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerFormCo
21593
21606
  }
21594
21607
  else {
21595
21608
  i18n_19 = $localize `:␟f05cda5fdcd3e6bcc1ddec3f588db62823e96504␟4881881106969851436:Voir plus`;
21596
- } return [[1, "miam-meals-planner-form", 3, "ngClass"], [1, "miam-meals-planner-form__left"], [1, "miam-meals-planner-form__right", 3, "formGroup"], [1, "miam-meals-planner-form__title", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_0, [1, "miam-meals-planner-form__form"], [1, "miam-meals-planner-form__inputs"], [1, "miam-meals-planner-form__input", "budget"], [1, "miam-meals-planner-form__input__label"], i18n_2, [1, "miam-meals-planner-form__input__label__mandatory"], [1, "miam-meals-planner-form__input__budget"], [1, "miam-meals-planner-form__input__small-label"], ["type", "number", "formControlName", "budget", 3, "min", "max", "placeholder", "ngModelChange"], [1, "miam-meals-planner-form__input", "guests"], i18n_4, ["primaryColor", "var(--m-color-grey06)", 3, "width", "height", "iconName"], ["class", "custom-counter-input", 3, "counter", "minRange", "maxRange", "counterChange", 4, "ngIf", "ngIfElse"], ["selectGuests", ""], [1, "miam-meals-planner-form__input", "meals"], i18n_6, ["selectMeals", ""], [1, "miam-meals-planner-form__cta"], [1, "m-button-primary", "plan", 3, "disabled", "click"], i18n_8, [1, "m-button-primary", "reverse", "swap", 3, "disabled", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Swap.svg"], i18n_10, [1, "m-button-primary", "validate", 3, "disabled", "click"], ["primaryColor", "var(--m-color-white)", 3, "width", "height", "iconName"], ["class", "miam-meals-planner-form__anti-inflation", 4, "ngIf"], [1, "custom-counter-input", 3, "counter", "minRange", "maxRange", "counterChange"], ["formControlName", "guestsCount", 3, "ngModelChange"], ["selected", "", "disabled", "", "hidden", "", 3, "value"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["formControlName", "recipesCount", 3, "ngModelChange"], ["value", "0", "disabled", "", 3, "selected"], [1, "miam-meals-planner-form__anti-inflation"], [1, "miam-meals-planner-form__anti-inflation__title"], i18n_13, [1, "miam-meals-planner-form__anti-inflation__links"], [1, "miam-meals-planner-form__anti-inflation__link", "cheaper", 3, "href"], i18n_15, [1, "miam-meals-planner-form__anti-inflation__link", "cheap", 3, "href"], i18n_17, [1, "miam-meals-planner-form__anti-inflation__link", "see-more", 3, "href"], i18n_19]; }, template: function MealsPlannerFormComponent_Template(rf, ctx) { if (rf & 1) {
21609
+ } return [[1, "miam-meals-planner-form", 3, "ngClass"], [1, "miam-meals-planner-form__left"], [1, "miam-meals-planner-form__right", 3, "formGroup"], [1, "miam-meals-planner-form__title", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_0, [1, "miam-meals-planner-form__form"], [1, "miam-meals-planner-form__inputs"], [1, "miam-meals-planner-form__input", "budget"], [1, "miam-meals-planner-form__input__label"], i18n_2, [1, "miam-meals-planner-form__input__label__mandatory"], [1, "miam-meals-planner-form__input__budget"], [1, "miam-meals-planner-form__input__small-label"], ["type", "number", "formControlName", "budget", 3, "min", "max", "placeholder", "ngModelChange"], [1, "miam-meals-planner-form__input", "guests"], i18n_4, ["primaryColor", "var(--m-color-grey06)", 3, "width", "height", "iconName"], ["class", "custom-counter-input", 3, "counter", "minRange", "maxRange", "counterChange", 4, "ngIf", "ngIfElse"], ["selectGuests", ""], [1, "miam-meals-planner-form__input", "meals"], i18n_6, ["selectMeals", ""], [1, "miam-meals-planner-form__cta"], [1, "m-button-primary", "plan", 3, "disabled", "click"], ["primaryColor", "var(--m-color-white)", 3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["isLoading", ""], i18n_8, [1, "m-button-primary", "reverse", "swap", 3, "disabled", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Swap.svg"], i18n_10, [1, "m-button-primary", "validate", 3, "disabled", "click"], ["primaryColor", "var(--m-color-white)", 3, "width", "height", "iconName"], ["class", "miam-meals-planner-form__anti-inflation", 4, "ngIf"], [1, "custom-counter-input", 3, "counter", "minRange", "maxRange", "counterChange"], ["formControlName", "guestsCount", 3, "ngModelChange"], ["selected", "", "disabled", "", "hidden", "", 3, "value"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["formControlName", "recipesCount", 3, "ngModelChange"], ["value", "0", "disabled", "", 3, "selected"], [1, "miam-meals-planner-form__anti-inflation"], [1, "miam-meals-planner-form__anti-inflation__title"], i18n_13, [1, "miam-meals-planner-form__anti-inflation__links"], [1, "miam-meals-planner-form__anti-inflation__link", "cheaper", 3, "href"], i18n_15, [1, "miam-meals-planner-form__anti-inflation__link", "cheap", 3, "href"], i18n_17, [1, "miam-meals-planner-form__anti-inflation__link", "see-more", 3, "href"], i18n_19]; }, template: function MealsPlannerFormComponent_Template(rf, ctx) { if (rf & 1) {
21597
21610
  ɵɵelementStart(0, "div", 0);
21598
21611
  ɵɵelement(1, "div", 1);
21599
21612
  ɵɵelementStart(2, "div", 2);
@@ -21660,30 +21673,33 @@ MealsPlannerFormComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerFormCo
21660
21673
  ɵɵelementStart(42, "div", 23);
21661
21674
  ɵɵelementStart(43, "button", 24);
21662
21675
  ɵɵlistener("click", function MealsPlannerFormComponent_Template_button_click_43_listener() { return ctx.submit(); });
21663
- ɵɵelementStart(44, "span");
21664
- ɵɵi18n(45, 25);
21676
+ ɵɵtemplate(44, MealsPlannerFormComponent_ng_miam_icon_44_Template, 1, 3, "ng-miam-icon", 25);
21677
+ ɵɵtemplate(45, MealsPlannerFormComponent_ng_template_45_Template, 1, 0, "ng-template", null, 26, ɵɵtemplateRefExtractor);
21678
+ ɵɵelementStart(47, "span");
21679
+ ɵɵi18n(48, 27);
21665
21680
  ɵɵelementEnd();
21666
21681
  ɵɵelementEnd();
21667
- ɵɵelementStart(46, "button", 26);
21668
- ɵɵlistener("click", function MealsPlannerFormComponent_Template_button_click_46_listener() { return ctx.submit(); });
21669
- ɵɵelement(47, "img", 27);
21670
- ɵɵelementStart(48, "span");
21671
- ɵɵi18n(49, 28);
21682
+ ɵɵelementStart(49, "button", 28);
21683
+ ɵɵlistener("click", function MealsPlannerFormComponent_Template_button_click_49_listener() { return ctx.submit(); });
21684
+ ɵɵelement(50, "img", 29);
21685
+ ɵɵelementStart(51, "span");
21686
+ ɵɵi18n(52, 30);
21672
21687
  ɵɵelementEnd();
21673
21688
  ɵɵelementEnd();
21674
- ɵɵelementStart(50, "button", 29);
21675
- ɵɵlistener("click", function MealsPlannerFormComponent_Template_button_click_50_listener() { return ctx.submit(); });
21676
- ɵɵelement(51, "ng-miam-icon", 30);
21689
+ ɵɵelementStart(53, "button", 31);
21690
+ ɵɵlistener("click", function MealsPlannerFormComponent_Template_button_click_53_listener() { return ctx.submit(); });
21691
+ ɵɵelement(54, "ng-miam-icon", 32);
21677
21692
  ɵɵelementEnd();
21678
21693
  ɵɵelementEnd();
21679
21694
  ɵɵelementEnd();
21680
- ɵɵtemplate(52, MealsPlannerFormComponent_div_52_Template, 15, 4, "div", 31);
21695
+ ɵɵtemplate(55, MealsPlannerFormComponent_div_55_Template, 15, 4, "div", 33);
21681
21696
  ɵɵelementEnd();
21682
21697
  ɵɵelementEnd();
21683
21698
  } if (rf & 2) {
21684
21699
  const _r1 = ɵɵreference(30);
21685
21700
  const _r4 = ɵɵreference(41);
21686
- ɵɵproperty("ngClass", ɵɵpureFunction1(23, _c21, ctx.reduced));
21701
+ const _r7 = ɵɵreference(46);
21702
+ ɵɵproperty("ngClass", ɵɵpureFunction1(25, _c21, ctx.reduced));
21687
21703
  ɵɵadvance(2);
21688
21704
  ɵɵproperty("formGroup", ctx.form);
21689
21705
  ɵɵadvance(2);
@@ -21700,7 +21716,9 @@ MealsPlannerFormComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerFormCo
21700
21716
  ɵɵproperty("ngIf", !ctx.context.antiInflation)("ngIfElse", _r4);
21701
21717
  ɵɵadvance(4);
21702
21718
  ɵɵproperty("disabled", ctx.form.invalid);
21703
- ɵɵadvance(3);
21719
+ ɵɵadvance(1);
21720
+ ɵɵproperty("ngIf", !ctx.loading)("ngIfElse", _r7);
21721
+ ɵɵadvance(5);
21704
21722
  ɵɵproperty("disabled", ctx.form.invalid);
21705
21723
  ɵɵadvance(4);
21706
21724
  ɵɵproperty("disabled", ctx.form.invalid);
@@ -21708,7 +21726,7 @@ MealsPlannerFormComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerFormCo
21708
21726
  ɵɵproperty("width", 24)("height", 24)("iconName", ctx.icon.Checkmark);
21709
21727
  ɵɵadvance(1);
21710
21728
  ɵɵproperty("ngIf", !ctx.reduced && ctx.context.antiInflation);
21711
- } }, directives: [NgClass, NgControlStatusGroup, FormGroupDirective, IconComponent, NumberValueAccessor, DefaultValueAccessor, NgControlStatus, FormControlName, NgIf, CounterInputComponent, SelectControlValueAccessor, NgSelectOption, ɵangular_packages_forms_forms_x, NgForOf], styles: [".miam-meals-planner-form{display:flex;min-height:90vh;width:100%}.miam-meals-planner-form .miam-meals-planner-form__left{background-image:url(https://storage.googleapis.com/assets.miam.tech/generic/meals-planner/background-meals-planner-link.jpeg);background-position:50%;background-size:cover;display:flex;flex:1}.miam-meals-planner-form .miam-meals-planner-form__right{display:flex;flex:1;flex-direction:column;padding:32px 16px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__title{display:flex;flex-direction:row;font-size:24px;font-weight:900;line-height:120%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__title ng-miam-icon{transform:rotate(90deg)}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__title ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-primary)}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__title span{margin-left:16px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form,.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs{display:flex;flex-direction:column;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input{display:flex;flex-direction:column;margin-top:24px;max-width:592px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__label{font-size:14px;font-weight:700;line-height:16px;margin-bottom:2px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__label .miam-meals-planner-form__input__label__mandatory{color:var(--m-color-danger);margin-left:2px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__small-label{border:1px solid var(--m-color-grey06);border-radius:6px 0 0 6px;border-right:unset;box-sizing:border-box;display:none;font-size:14px;line-height:24px;padding:12px 8px;text-align:center;width:48px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__budget{display:inline-flex;flex-direction:row;flex-wrap:nowrap;position:relative;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__budget .miam-meals-planner-form__input__small-label{display:initial}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__budget input[type=number]{border:1px solid var(--m-color-grey06);border-radius:0 6px 6px 0;box-sizing:border-box;display:block;font-size:16px;height:50px;line-height:24px;outline-color:var(--m-color-grey06);padding:12px 8px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input{border:1px solid var(--m-color-primary);border-radius:6px;justify-content:space-between;padding:12px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__icon{display:none}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__button.miam-counter-input__button__minus,.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__button.miam-counter-input__button__plus{background-color:transparent;border:none}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__button.miam-counter-input__button__minus ng-miam-icon .icon-container svg path,.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__button.miam-counter-input__button__plus ng-miam-icon .icon-container svg path{fill:var(--m-color-primary)}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__count{border:none!important;font-size:16px;font-weight:900;line-height:150%;outline:none!important;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input select{background-color:#fff;border:1px solid var(--m-color-primary);border-radius:6px;box-sizing:border-box;display:block;font-size:16px;height:50px;line-height:24px;outline-color:var(--m-color-primary);padding:12px 8px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta{align-items:center;display:flex;justify-content:center;margin-top:24px;max-width:592px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .swap,.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .validate{display:none}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta img{margin-right:8px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation{align-items:center;display:flex;flex-direction:column;justify-content:center;margin-top:60px;max-width:592px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__title{font-size:20px;font-weight:600;line-height:28px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links{align-items:center;display:flex;flex-flow:row wrap;justify-content:center}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link{color:var(--m-color-primary);font-size:16px;font-weight:400;line-height:24px;margin:10px 29px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link.cheap,.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link.cheaper{text-decoration:underline}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link.see-more{display:flex;text-decoration:none}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link.see-more span{margin-right:8px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link ng-miam-icon{transform:rotate(-90deg)}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-primary)}.miam-meals-planner-form.reduced .miam-meals-planner-form__left{display:none}.miam-meals-planner-form.reduced .miam-meals-planner-form__right{padding:0 16px 24px}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input.guests .miam-meals-planner-form__input__label,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input.meals .miam-meals-planner-form__input__label,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__title{display:none}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .swap{display:initial}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .plan{display:none}@media (max-width:1023px){.miam-meals-planner-form .miam-meals-planner-form__left{display:none}.miam-meals-planner-form .miam-meals-planner-form__right{padding:20px 16px}.miam-meals-planner-form.reduced{min-height:unset}.miam-meals-planner-form.reduced .miam-meals-planner-form__right{padding:24px 16px}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__title{display:flex}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input{flex-direction:row}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__label{display:none}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__small-label{display:initial}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input.guests{margin:24px 8px 0}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-counter-input,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input input,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input select{border:1px solid var(--m-color-grey06);border-bottom-left-radius:0;border-top-left-radius:0;outline-color:var(--m-color-grey06)}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-counter-input .miam-counter-input__button.miam-counter-input__button__minus,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-counter-input .miam-counter-input__button.miam-counter-input__button__plus{display:none}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta{margin-left:8px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .m-button-primary{border-radius:6px;padding:12px}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .m-button-primary.swap{display:none}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .m-button-primary.validate{display:initial}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .m-button-primary ng-miam-icon{margin:0}}@media (max-width:375px){.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input.guests{margin:24px 4px 0}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta{margin-left:4px}}"], encapsulation: 2, changeDetection: 0 });
21729
+ } }, directives: [NgClass, NgControlStatusGroup, FormGroupDirective, IconComponent, NumberValueAccessor, DefaultValueAccessor, NgControlStatus, FormControlName, NgIf, CounterInputComponent, SelectControlValueAccessor, NgSelectOption, ɵangular_packages_forms_forms_x, NgForOf, LoaderComponent], styles: [".miam-meals-planner-form{display:flex;min-height:90vh;width:100%}.miam-meals-planner-form .miam-meals-planner-form__left{background-image:url(https://storage.googleapis.com/assets.miam.tech/generic/meals-planner/background-meals-planner-link.jpeg);background-position:50%;background-size:cover;display:flex;flex:1}.miam-meals-planner-form .miam-meals-planner-form__right{display:flex;flex:1;flex-direction:column;padding:32px 16px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__title{display:flex;flex-direction:row;font-size:24px;font-weight:900;line-height:120%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__title ng-miam-icon{transform:rotate(90deg)}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__title ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-primary)}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__title span{margin-left:16px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form,.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs{display:flex;flex-direction:column;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input{display:flex;flex-direction:column;margin-top:24px;max-width:592px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__label{font-size:14px;font-weight:700;line-height:16px;margin-bottom:2px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__label .miam-meals-planner-form__input__label__mandatory{color:var(--m-color-danger);margin-left:2px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__small-label{border:1px solid var(--m-color-grey06);border-radius:6px 0 0 6px;border-right:unset;box-sizing:border-box;display:none;font-size:14px;line-height:24px;padding:12px 8px;text-align:center;width:48px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__budget{display:inline-flex;flex-direction:row;flex-wrap:nowrap;position:relative;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__budget .miam-meals-planner-form__input__small-label{display:initial}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__budget input[type=number]{border:1px solid var(--m-color-grey06);border-radius:0 6px 6px 0;box-sizing:border-box;display:block;font-size:16px;height:50px;line-height:24px;outline-color:var(--m-color-grey06);padding:12px 8px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input{border:1px solid var(--m-color-primary);border-radius:6px;justify-content:space-between;padding:12px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__icon{display:none}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__button.miam-counter-input__button__minus,.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__button.miam-counter-input__button__plus{background-color:transparent;border:none}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__button.miam-counter-input__button__minus ng-miam-icon .icon-container svg path,.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__button.miam-counter-input__button__plus ng-miam-icon .icon-container svg path{fill:var(--m-color-primary)}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-counter-input .miam-counter-input__count{border:none!important;font-size:16px;font-weight:900;line-height:150%;outline:none!important;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input select{background-color:#fff;border:1px solid var(--m-color-primary);border-radius:6px;box-sizing:border-box;display:block;font-size:16px;height:50px;line-height:24px;outline-color:var(--m-color-primary);padding:12px 8px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta{align-items:center;display:flex;justify-content:center;margin-top:24px;max-width:592px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .plan ng-miam-icon{display:none;margin-right:8px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .plan .miam-loader{border:4px solid var(--m-color-grey);border-top:4px solid var(--m-color-grey);border-top-color:var(--m-color-primary);height:28px;margin-right:8px;width:28px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .swap,.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .validate{display:none}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta img{margin-right:8px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation{align-items:center;display:flex;flex-direction:column;justify-content:center;margin-top:60px;max-width:592px;width:100%}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__title{font-size:20px;font-weight:600;line-height:28px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links{align-items:center;display:flex;flex-flow:row wrap;justify-content:center}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link{color:var(--m-color-primary);font-size:16px;font-weight:400;line-height:24px;margin:10px 29px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link.cheap,.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link.cheaper{text-decoration:underline}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link.see-more{display:flex;text-decoration:none}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link.see-more span{margin-right:8px}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link ng-miam-icon{transform:rotate(-90deg)}.miam-meals-planner-form .miam-meals-planner-form__right .miam-meals-planner-form__anti-inflation .miam-meals-planner-form__anti-inflation__links .miam-meals-planner-form__anti-inflation__link ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-primary)}.miam-meals-planner-form.reduced .miam-meals-planner-form__left{display:none}.miam-meals-planner-form.reduced .miam-meals-planner-form__right{padding:0 16px 24px}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input.guests .miam-meals-planner-form__input__label,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input.meals .miam-meals-planner-form__input__label,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__title{display:none}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .swap{display:initial}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .plan{display:none}@media (max-width:1023px){.miam-meals-planner-form .miam-meals-planner-form__left{display:none}.miam-meals-planner-form .miam-meals-planner-form__right{padding:20px 16px}.miam-meals-planner-form.reduced{min-height:unset}.miam-meals-planner-form.reduced .miam-meals-planner-form__right{padding:24px 16px}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__title{display:flex}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input{flex-direction:row}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__label{display:none}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input .miam-meals-planner-form__input__small-label{display:initial}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input.guests{margin:24px 8px 0}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-counter-input,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input input,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input select{border:1px solid var(--m-color-grey06);border-bottom-left-radius:0;border-top-left-radius:0;outline-color:var(--m-color-grey06)}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-counter-input .miam-counter-input__button.miam-counter-input__button__minus,.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-counter-input .miam-counter-input__button.miam-counter-input__button__plus{display:none}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta{margin-left:8px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .m-button-primary{border-radius:6px;padding:12px}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .m-button-primary.swap{display:none}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .m-button-primary.validate{display:initial}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta .m-button-primary ng-miam-icon{margin:0}}@media (max-width:375px){.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__inputs .miam-meals-planner-form__input.guests{margin:24px 4px 0}.miam-meals-planner-form.reduced .miam-meals-planner-form__right .miam-meals-planner-form__form .miam-meals-planner-form__cta{margin-left:4px}}"], encapsulation: 2, changeDetection: 0 });
21712
21730
  /*@__PURE__*/ (function () { ɵsetClassMetadata(MealsPlannerFormComponent, [{
21713
21731
  type: Component,
21714
21732
  args: [{
@@ -21718,10 +21736,12 @@ MealsPlannerFormComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerFormCo
21718
21736
  encapsulation: ViewEncapsulation.None,
21719
21737
  changeDetection: ChangeDetectionStrategy.OnPush
21720
21738
  }]
21721
- }], function () { return [{ type: ChangeDetectorRef }, { type: ContextService }, { type: UserService }, { type: RecipesService }, { type: PointOfSalesService }]; }, { form: [{
21739
+ }], function () { return [{ type: ChangeDetectorRef }, { type: ContextService }, { type: UserService }, { type: RecipesService }, { type: PointOfSalesService }, { type: AnalyticsService }]; }, { form: [{
21722
21740
  type: Input
21723
21741
  }], reduced: [{
21724
21742
  type: Input
21743
+ }], loading: [{
21744
+ type: Input
21725
21745
  }], submitted: [{
21726
21746
  type: Output
21727
21747
  }] }); })();
@@ -21735,8 +21755,9 @@ function MealsPlannerResultComponent_div_6_div_1_div_1_Template(rf, ctx) { if (r
21735
21755
  ɵɵelementEnd();
21736
21756
  } if (rf & 2) {
21737
21757
  const recipe_r8 = ɵɵnextContext().$implicit;
21758
+ const ctx_r10 = ɵɵnextContext(2);
21738
21759
  ɵɵadvance(1);
21739
- ɵɵproperty("recipe", recipe_r8)("displayPricing", true)("displayGuests", false)("previewAllowed", false)("replaceMode", true);
21760
+ ɵɵproperty("recipe", recipe_r8)("originTrace", ctx_r10.eventTrace())("displayPricing", true)("displayGuests", false)("previewAllowed", false)("replaceMode", true);
21740
21761
  } }
21741
21762
  function MealsPlannerResultComponent_div_6_div_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
21742
21763
  const _r21 = ɵɵgetCurrentView();
@@ -21746,7 +21767,7 @@ function MealsPlannerResultComponent_div_6_div_1_ng_template_2_Template(rf, ctx)
21746
21767
  } }
21747
21768
  function MealsPlannerResultComponent_div_6_div_1_Template(rf, ctx) { if (rf & 1) {
21748
21769
  ɵɵelementStart(0, "div", 12);
21749
- ɵɵtemplate(1, MealsPlannerResultComponent_div_6_div_1_div_1_Template, 2, 5, "div", 13);
21770
+ ɵɵtemplate(1, MealsPlannerResultComponent_div_6_div_1_div_1_Template, 2, 6, "div", 13);
21750
21771
  ɵɵtemplate(2, MealsPlannerResultComponent_div_6_div_1_ng_template_2_Template, 1, 0, "ng-template", null, 14, ɵɵtemplateRefExtractor);
21751
21772
  ɵɵelementEnd();
21752
21773
  } if (rf & 2) {
@@ -21782,12 +21803,14 @@ function MealsPlannerResultComponent_ng_miam_icon_12_Template(rf, ctx) { if (rf
21782
21803
  function MealsPlannerResultComponent_ng_template_13_Template(rf, ctx) { if (rf & 1) {
21783
21804
  ɵɵelement(0, "ng-miam-loader");
21784
21805
  } }
21785
- class MealsPlannerResultComponent {
21786
- constructor(cdr, context, userService, posService) {
21806
+ class MealsPlannerResultComponent extends EventTracerComponent {
21807
+ constructor(cdr, context, userService, posService, analyticsService) {
21808
+ super(analyticsService);
21787
21809
  this.cdr = cdr;
21788
21810
  this.context = context;
21789
21811
  this.userService = userService;
21790
21812
  this.posService = posService;
21813
+ this.analyticsService = analyticsService;
21791
21814
  this.recipes = [];
21792
21815
  this.usedBudget = 0;
21793
21816
  this.maxBudget = 0;
@@ -21810,20 +21833,24 @@ class MealsPlannerResultComponent {
21810
21833
  }
21811
21834
  }));
21812
21835
  }
21836
+ ngOnInit() {
21837
+ this.pageview();
21838
+ }
21813
21839
  ngOnChanges() {
21814
21840
  this.cdr.detectChanges();
21815
21841
  }
21816
21842
  ngOnDestroy() {
21817
21843
  this.subscriptions.forEach(s => s.unsubscribe());
21818
21844
  }
21845
+ currentPath() { return 'results'; }
21819
21846
  removeRecipe(index) {
21820
21847
  this.recipes[index] = undefined;
21821
21848
  this.recipeRemoval.emit(index);
21822
21849
  this.cdr.detectChanges();
21823
21850
  }
21824
21851
  }
21825
- MealsPlannerResultComponent.ɵfac = function MealsPlannerResultComponent_Factory(t) { return new (t || MealsPlannerResultComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ContextService), ɵɵdirectiveInject(UserService), ɵɵdirectiveInject(PointOfSalesService)); };
21826
- MealsPlannerResultComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerResultComponent, selectors: [["ng-miam-meals-planner-result"]], inputs: { recipes: "recipes", usedBudget: "usedBudget", maxBudget: "maxBudget", loading: "loading" }, outputs: { confirmed: "confirmed", recipeRemoval: "recipeRemoval", openCatalog: "openCatalog" }, features: [ɵɵNgOnChangesFeature], decls: 17, vars: 7, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
21852
+ MealsPlannerResultComponent.ɵfac = function MealsPlannerResultComponent_Factory(t) { return new (t || MealsPlannerResultComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ContextService), ɵɵdirectiveInject(UserService), ɵɵdirectiveInject(PointOfSalesService), ɵɵdirectiveInject(AnalyticsService)); };
21853
+ MealsPlannerResultComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerResultComponent, selectors: [["ng-miam-meals-planner-result"]], inputs: { recipes: "recipes", usedBudget: "usedBudget", maxBudget: "maxBudget", loading: "loading" }, outputs: { confirmed: "confirmed", recipeRemoval: "recipeRemoval", openCatalog: "openCatalog" }, features: [ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature], decls: 17, vars: 7, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
21827
21854
  const MSG_EXTERNAL_4657629567820612951$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_RESULT_MEALS_PLANNER_RESULT_COMPONENT_TS_1 = goog.getMsg(" id\u00E9es repas pour vous");
21828
21855
  i18n_0 = MSG_EXTERNAL_4657629567820612951$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_RESULT_MEALS_PLANNER_RESULT_COMPONENT_TS_1;
21829
21856
  }
@@ -21835,7 +21862,7 @@ MealsPlannerResultComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerResu
21835
21862
  }
21836
21863
  else {
21837
21864
  i18n_2 = $localize `:␟cbd8320aa840fa217e5711e1e1a23bbc04cddacb␟1290005437956785602:Ajouter tous les ingrédients`;
21838
- } return [[1, "miam-meals-planner-result"], [1, "miam-meals-planner-result__header"], i18n_0, ["class", "miam-meals-planner-result__recipes", 4, "ngIf", "ngIfElse"], ["isLoading", ""], [1, "miam-meals-planner-result__cta"], ["class", "miam-meals-planner-result__progress-bar", 3, "unit", "value", "max", 4, "ngIf"], [1, "m-button-primary", 3, "disabled", "click"], ["width", "24", "height", "24", 3, "iconName", 4, "ngIf", "ngIfElse"], i18n_2, [1, "miam-meals-planner-result__recipes"], ["class", "miam-meals-planner-result__recipe", 4, "ngFor", "ngForOf"], [1, "miam-meals-planner-result__recipe"], [4, "ngIf", "ngIfElse"], ["addRecipeTemplate", ""], [3, "recipe", "displayPricing", "displayGuests", "previewAllowed", "replaceMode", "openCatalog", "removeFromMealsPlanner"], [3, "addRecipe"], [1, "miam-meals-planner-result__progress-bar", 3, "unit", "value", "max"], ["width", "24", "height", "24", 3, "iconName"]]; }, template: function MealsPlannerResultComponent_Template(rf, ctx) { if (rf & 1) {
21865
+ } return [[1, "miam-meals-planner-result"], [1, "miam-meals-planner-result__header"], i18n_0, ["class", "miam-meals-planner-result__recipes", 4, "ngIf", "ngIfElse"], ["isLoading", ""], [1, "miam-meals-planner-result__cta"], ["class", "miam-meals-planner-result__progress-bar", 3, "unit", "value", "max", 4, "ngIf"], [1, "m-button-primary", 3, "disabled", "click"], ["width", "24", "height", "24", 3, "iconName", 4, "ngIf", "ngIfElse"], i18n_2, [1, "miam-meals-planner-result__recipes"], ["class", "miam-meals-planner-result__recipe", 4, "ngFor", "ngForOf"], [1, "miam-meals-planner-result__recipe"], [4, "ngIf", "ngIfElse"], ["addRecipeTemplate", ""], [3, "recipe", "originTrace", "displayPricing", "displayGuests", "previewAllowed", "replaceMode", "openCatalog", "removeFromMealsPlanner"], [3, "addRecipe"], [1, "miam-meals-planner-result__progress-bar", 3, "unit", "value", "max"], ["width", "24", "height", "24", 3, "iconName"]]; }, template: function MealsPlannerResultComponent_Template(rf, ctx) { if (rf & 1) {
21839
21866
  ɵɵelementStart(0, "div", 0);
21840
21867
  ɵɵelementStart(1, "div", 1);
21841
21868
  ɵɵelementStart(2, "span");
@@ -21881,7 +21908,7 @@ MealsPlannerResultComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerResu
21881
21908
  encapsulation: ViewEncapsulation.None,
21882
21909
  changeDetection: ChangeDetectionStrategy.OnPush
21883
21910
  }]
21884
- }], function () { return [{ type: ChangeDetectorRef }, { type: ContextService }, { type: UserService }, { type: PointOfSalesService }]; }, { recipes: [{
21911
+ }], function () { return [{ type: ChangeDetectorRef }, { type: ContextService }, { type: UserService }, { type: PointOfSalesService }, { type: AnalyticsService }]; }, { recipes: [{
21885
21912
  type: Input
21886
21913
  }], usedBudget: [{
21887
21914
  type: Input
@@ -21897,50 +21924,59 @@ MealsPlannerResultComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerResu
21897
21924
  type: Output
21898
21925
  }] }); })();
21899
21926
 
21900
- function MealsPlannerBasketPreviewComponent_div_0_ng_miam_progress_tracker_9_Template(rf, ctx) { if (rf & 1) {
21901
- ɵɵelement(0, "ng-miam-progress-tracker", 12);
21927
+ function MealsPlannerBasketPreviewComponent_div_0_div_7_Template(rf, ctx) { if (rf & 1) {
21928
+ ɵɵelementStart(0, "div", 13);
21929
+ ɵɵelementStart(1, "div", 14);
21930
+ ɵɵelementStart(2, "span");
21931
+ ɵɵi18n(3, 15);
21932
+ ɵɵelementEnd();
21933
+ ɵɵelementEnd();
21934
+ ɵɵelementEnd();
21935
+ } }
21936
+ function MealsPlannerBasketPreviewComponent_div_0_ng_miam_progress_tracker_10_Template(rf, ctx) { if (rf & 1) {
21937
+ ɵɵelement(0, "ng-miam-progress-tracker", 16);
21902
21938
  } if (rf & 2) {
21903
- const ctx_r1 = ɵɵnextContext(2);
21904
- ɵɵproperty("unit", "\u20AC")("value", ctx_r1.usedBudget)("max", ctx_r1.maxBudget);
21939
+ const ctx_r2 = ɵɵnextContext(2);
21940
+ ɵɵproperty("unit", "\u20AC")("value", ctx_r2.usedBudget)("max", ctx_r2.maxBudget);
21905
21941
  } }
21906
- function MealsPlannerBasketPreviewComponent_div_0_button_10_Template(rf, ctx) { if (rf & 1) {
21907
- ɵɵelementStart(0, "button", 13);
21908
- ɵɵelementStart(1, "a", 14);
21909
- ɵɵelementStart(2, "div", 15);
21942
+ function MealsPlannerBasketPreviewComponent_div_0_button_11_Template(rf, ctx) { if (rf & 1) {
21943
+ ɵɵelementStart(0, "button", 17);
21944
+ ɵɵelementStart(1, "a", 18);
21945
+ ɵɵelementStart(2, "div", 19);
21910
21946
  ɵɵelementStart(3, "span");
21911
- ɵɵi18n(4, 16);
21947
+ ɵɵi18n(4, 20);
21912
21948
  ɵɵelementEnd();
21913
21949
  ɵɵelementEnd();
21914
21950
  ɵɵelementEnd();
21915
21951
  ɵɵelementEnd();
21916
21952
  } if (rf & 2) {
21917
- const ctx_r2 = ɵɵnextContext(2);
21918
- ɵɵproperty("disabled", ctx_r2.ctasDisabled);
21953
+ const ctx_r3 = ɵɵnextContext(2);
21954
+ ɵɵproperty("disabled", ctx_r3.ctasDisabled);
21919
21955
  ɵɵadvance(1);
21920
- ɵɵproperty("href", ctx_r2.context.retailerCartUrl, ɵɵsanitizeUrl);
21956
+ ɵɵproperty("href", ctx_r3.context.retailerCartUrl, ɵɵsanitizeUrl);
21921
21957
  } }
21922
- function MealsPlannerBasketPreviewComponent_div_0_a_12_Template(rf, ctx) { if (rf & 1) {
21923
- ɵɵelementStart(0, "a", 17);
21924
- ɵɵelementStart(1, "div", 15);
21958
+ function MealsPlannerBasketPreviewComponent_div_0_a_13_Template(rf, ctx) { if (rf & 1) {
21959
+ ɵɵelementStart(0, "a", 21);
21960
+ ɵɵelementStart(1, "div", 19);
21925
21961
  ɵɵelementStart(2, "span");
21926
- ɵɵi18n(3, 18);
21962
+ ɵɵi18n(3, 22);
21927
21963
  ɵɵelementEnd();
21928
21964
  ɵɵelementEnd();
21929
21965
  ɵɵelementEnd();
21930
21966
  } }
21931
- function MealsPlannerBasketPreviewComponent_div_0_ng_template_13_Template(rf, ctx) { if (rf & 1) {
21932
- const _r7 = ɵɵgetCurrentView();
21933
- ɵɵelementStart(0, "a", 19);
21934
- ɵɵlistener("click", function MealsPlannerBasketPreviewComponent_div_0_ng_template_13_Template_a_click_0_listener() { ɵɵrestoreView(_r7); const ctx_r6 = ɵɵnextContext(2); return ctx_r6.ctasDisabled ? {} : ctx_r6.closed.emit(); });
21935
- ɵɵelementStart(1, "div", 15);
21967
+ function MealsPlannerBasketPreviewComponent_div_0_ng_template_14_Template(rf, ctx) { if (rf & 1) {
21968
+ const _r8 = ɵɵgetCurrentView();
21969
+ ɵɵelementStart(0, "a", 23);
21970
+ ɵɵlistener("click", function MealsPlannerBasketPreviewComponent_div_0_ng_template_14_Template_a_click_0_listener() { ɵɵrestoreView(_r8); const ctx_r7 = ɵɵnextContext(2); return ctx_r7.ctasDisabled ? {} : ctx_r7.closed.emit(); });
21971
+ ɵɵelementStart(1, "div", 19);
21936
21972
  ɵɵelementStart(2, "span");
21937
- ɵɵi18n(3, 20);
21973
+ ɵɵi18n(3, 24);
21938
21974
  ɵɵelementEnd();
21939
21975
  ɵɵelementEnd();
21940
21976
  ɵɵelementEnd();
21941
21977
  } }
21942
21978
  function MealsPlannerBasketPreviewComponent_div_0_Template(rf, ctx) { if (rf & 1) {
21943
- const _r9 = ɵɵgetCurrentView();
21979
+ const _r10 = ɵɵgetCurrentView();
21944
21980
  ɵɵelementStart(0, "div", 1);
21945
21981
  ɵɵelementStart(1, "div", 2);
21946
21982
  ɵɵelementStart(2, "div", 3);
@@ -21951,26 +21987,29 @@ function MealsPlannerBasketPreviewComponent_div_0_Template(rf, ctx) { if (rf & 1
21951
21987
  ɵɵi18n(6, 4);
21952
21988
  ɵɵelementEnd();
21953
21989
  ɵɵelementEnd();
21954
- ɵɵelementStart(7, "ng-miam-basket-preview-block", 5);
21955
- ɵɵlistener("loading", function MealsPlannerBasketPreviewComponent_div_0_Template_ng_miam_basket_preview_block_loading_7_listener($event) { ɵɵrestoreView(_r9); const ctx_r8 = ɵɵnextContext(); return ctx_r8.setCtasDisabled($event); });
21990
+ ɵɵtemplate(7, MealsPlannerBasketPreviewComponent_div_0_div_7_Template, 4, 0, "div", 5);
21991
+ ɵɵelementStart(8, "ng-miam-basket-preview-block", 6);
21992
+ ɵɵlistener("loading", function MealsPlannerBasketPreviewComponent_div_0_Template_ng_miam_basket_preview_block_loading_8_listener($event) { ɵɵrestoreView(_r10); const ctx_r9 = ɵɵnextContext(); return ctx_r9.setCtasDisabled($event); });
21956
21993
  ɵɵelementEnd();
21957
21994
  ɵɵelementEnd();
21958
- ɵɵelementStart(8, "div", 6);
21959
- ɵɵtemplate(9, MealsPlannerBasketPreviewComponent_div_0_ng_miam_progress_tracker_9_Template, 1, 3, "ng-miam-progress-tracker", 7);
21960
- ɵɵtemplate(10, MealsPlannerBasketPreviewComponent_div_0_button_10_Template, 5, 2, "button", 8);
21961
- ɵɵelementStart(11, "button", 9);
21962
- ɵɵtemplate(12, MealsPlannerBasketPreviewComponent_div_0_a_12_Template, 4, 0, "a", 10);
21963
- ɵɵtemplate(13, MealsPlannerBasketPreviewComponent_div_0_ng_template_13_Template, 4, 0, "ng-template", null, 11, ɵɵtemplateRefExtractor);
21995
+ ɵɵelementStart(9, "div", 7);
21996
+ ɵɵtemplate(10, MealsPlannerBasketPreviewComponent_div_0_ng_miam_progress_tracker_10_Template, 1, 3, "ng-miam-progress-tracker", 8);
21997
+ ɵɵtemplate(11, MealsPlannerBasketPreviewComponent_div_0_button_11_Template, 5, 2, "button", 9);
21998
+ ɵɵelementStart(12, "button", 10);
21999
+ ɵɵtemplate(13, MealsPlannerBasketPreviewComponent_div_0_a_13_Template, 4, 0, "a", 11);
22000
+ ɵɵtemplate(14, MealsPlannerBasketPreviewComponent_div_0_ng_template_14_Template, 4, 0, "ng-template", null, 12, ɵɵtemplateRefExtractor);
21964
22001
  ɵɵelementEnd();
21965
22002
  ɵɵelementEnd();
21966
22003
  ɵɵelementEnd();
21967
22004
  } if (rf & 2) {
21968
- const _r4 = ɵɵreference(14);
22005
+ const _r5 = ɵɵreference(15);
21969
22006
  const ctx_r0 = ɵɵnextContext();
21970
22007
  ɵɵadvance(4);
21971
22008
  ɵɵtextInterpolate(ctx_r0.recipesIds.length);
21972
22009
  ɵɵadvance(3);
21973
- ɵɵproperty("originTrace", ctx_r0.eventTrace)("recipesIds", ctx_r0.recipesIds)("displayItemsUnitaryPrice", true);
22010
+ ɵɵproperty("ngIf", ctx_r0.ingredientsRegrouped);
22011
+ ɵɵadvance(1);
22012
+ ɵɵproperty("originTrace", ctx_r0.eventTrace())("recipesIds", ctx_r0.recipesIds)("displayItemsUnitaryPrice", true);
21974
22013
  ɵɵadvance(2);
21975
22014
  ɵɵproperty("ngIf", ctx_r0.context.antiInflation);
21976
22015
  ɵɵadvance(1);
@@ -21978,26 +22017,33 @@ function MealsPlannerBasketPreviewComponent_div_0_Template(rf, ctx) { if (rf & 1
21978
22017
  ɵɵadvance(1);
21979
22018
  ɵɵproperty("disabled", ctx_r0.ctasDisabled);
21980
22019
  ɵɵadvance(1);
21981
- ɵɵproperty("ngIf", !ctx_r0.context.antiInflation)("ngIfElse", _r4);
22020
+ ɵɵproperty("ngIf", !ctx_r0.context.antiInflation)("ngIfElse", _r5);
21982
22021
  } }
21983
- class MealsPlannerBasketPreviewComponent {
21984
- constructor(cdr, context) {
22022
+ class MealsPlannerBasketPreviewComponent extends EventTracerComponent {
22023
+ constructor(cdr, context, analyticsService) {
22024
+ super(analyticsService);
21985
22025
  this.cdr = cdr;
21986
22026
  this.context = context;
22027
+ this.analyticsService = analyticsService;
21987
22028
  this.recipesIds = [];
21988
22029
  this.usedBudget = 0;
21989
22030
  this.maxBudget = 0;
22031
+ this.ingredientsRegrouped = false;
21990
22032
  this.closed = new EventEmitter();
22033
+ this.icon = Icon;
21991
22034
  this.ctasDisabled = true;
21992
- this.eventTrace = { originPath: '', props: {} };
21993
22035
  this.subscriptions = [];
21994
22036
  }
22037
+ ngOnInit() {
22038
+ this.pageview();
22039
+ }
21995
22040
  ngOnDestroy() {
21996
22041
  this.subscriptions.forEach(s => s.unsubscribe());
21997
22042
  }
21998
22043
  ngOnChanges() {
21999
22044
  this.cdr.detectChanges();
22000
22045
  }
22046
+ currentPath() { return 'basket-preview'; }
22001
22047
  /**
22002
22048
  * If the preview is opened and loading, block the user from closing the modal
22003
22049
  */
@@ -22006,36 +22052,42 @@ class MealsPlannerBasketPreviewComponent {
22006
22052
  this.cdr.detectChanges();
22007
22053
  }
22008
22054
  }
22009
- MealsPlannerBasketPreviewComponent.ɵfac = function MealsPlannerBasketPreviewComponent_Factory(t) { return new (t || MealsPlannerBasketPreviewComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ContextService)); };
22010
- MealsPlannerBasketPreviewComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerBasketPreviewComponent, selectors: [["ng-miam-meals-planner-basket-preview"]], inputs: { recipesIds: "recipesIds", usedBudget: "usedBudget", maxBudget: "maxBudget" }, outputs: { closed: "closed" }, features: [ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22055
+ MealsPlannerBasketPreviewComponent.ɵfac = function MealsPlannerBasketPreviewComponent_Factory(t) { return new (t || MealsPlannerBasketPreviewComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ContextService), ɵɵdirectiveInject(AnalyticsService)); };
22056
+ MealsPlannerBasketPreviewComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerBasketPreviewComponent, selectors: [["ng-miam-meals-planner-basket-preview"]], inputs: { recipesIds: "recipesIds", usedBudget: "usedBudget", maxBudget: "maxBudget", ingredientsRegrouped: "ingredientsRegrouped" }, outputs: { closed: "closed" }, features: [ɵɵInheritDefinitionFeature, ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22011
22057
  const MSG_EXTERNAL_2700281655709788634$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS__1 = goog.getMsg("repas ajout\u00E9s \u00E0 votre panier");
22012
22058
  i18n_0 = MSG_EXTERNAL_2700281655709788634$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS__1;
22013
22059
  }
22014
22060
  else {
22015
22061
  i18n_0 = $localize `:␟cf2dceac3301fce2fb063db095043efd636f8af9␟2700281655709788634:repas ajoutés à votre panier`;
22016
22062
  } var i18n_2; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22017
- const MSG_EXTERNAL_2597486146640590065$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___3 = goog.getMsg("Aller \u00E0 mon panier");
22018
- i18n_2 = MSG_EXTERNAL_2597486146640590065$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___3;
22063
+ const MSG_EXTERNAL_349368051595787077$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___3 = goog.getMsg("Les ingr\u00E9dients partageant plusieurs recettes ont \u00E9t\u00E9 regroup\u00E9s");
22064
+ i18n_2 = MSG_EXTERNAL_349368051595787077$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___3;
22019
22065
  }
22020
22066
  else {
22021
- i18n_2 = $localize `:␟36b57ca9ce912938699424cf85d5cac2a6bfa7382597486146640590065:Aller à mon panier`;
22067
+ i18n_2 = $localize `:␟a0d1fe7eaa09916660fc5082c77b25044a39a100349368051595787077:Les ingrédients partageant plusieurs recettes ont été regroupés`;
22022
22068
  } var i18n_4; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22023
- const MSG_EXTERNAL_4645762297074474087$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___5 = goog.getMsg("Continuer mes achats");
22024
- i18n_4 = MSG_EXTERNAL_4645762297074474087$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___5;
22069
+ const MSG_EXTERNAL_2597486146640590065$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___5 = goog.getMsg("Aller \u00E0 mon panier");
22070
+ i18n_4 = MSG_EXTERNAL_2597486146640590065$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___5;
22025
22071
  }
22026
22072
  else {
22027
- i18n_4 = $localize `:␟d8ccc910c8536280f86357456fb751e967f3041f4645762297074474087:Continuer mes achats`;
22073
+ i18n_4 = $localize `:␟36b57ca9ce912938699424cf85d5cac2a6bfa7382597486146640590065:Aller à mon panier`;
22028
22074
  } var i18n_6; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22029
- const MSG_EXTERNAL_3503734824800029552$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___7 = goog.getMsg("Finaliser");
22030
- i18n_6 = MSG_EXTERNAL_3503734824800029552$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___7;
22075
+ const MSG_EXTERNAL_4645762297074474087$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___7 = goog.getMsg("Continuer mes achats");
22076
+ i18n_6 = MSG_EXTERNAL_4645762297074474087$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___7;
22031
22077
  }
22032
22078
  else {
22033
- i18n_6 = $localize `:␟4f168d78d73759138d43c58ec329dc9a1cfcd3163503734824800029552:Finaliser`;
22034
- } 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, [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__progress-bar", 3, "unit", "value", "max"], [1, "m-button-primary", "reverse", 3, "disabled"], [3, "href"], [1, "miam-meals-planner-basket-preview__button-text"], i18n_2, ["href", "/"], i18n_4, [3, "click"], i18n_6]; }, template: function MealsPlannerBasketPreviewComponent_Template(rf, ctx) { if (rf & 1) {
22035
- ɵɵtemplate(0, MealsPlannerBasketPreviewComponent_div_0_Template, 15, 9, "div", 0);
22079
+ i18n_6 = $localize `:␟d8ccc910c8536280f86357456fb751e967f3041f4645762297074474087:Continuer mes achats`;
22080
+ } var i18n_8; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22081
+ const MSG_EXTERNAL_3503734824800029552$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___9 = goog.getMsg("Finaliser");
22082
+ i18n_8 = MSG_EXTERNAL_3503734824800029552$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___9;
22083
+ }
22084
+ else {
22085
+ i18n_8 = $localize `:␟4f168d78d73759138d43c58ec329dc9a1cfcd316␟3503734824800029552:Finaliser`;
22086
+ } 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]; }, template: function MealsPlannerBasketPreviewComponent_Template(rf, ctx) { if (rf & 1) {
22087
+ ɵɵtemplate(0, MealsPlannerBasketPreviewComponent_div_0_Template, 16, 10, "div", 0);
22036
22088
  } if (rf & 2) {
22037
22089
  ɵɵproperty("ngIf", ctx.recipesIds.length > 0);
22038
- } }, directives: [NgIf, BasketPreviewBlockComponent, ProgressTrackerComponent], styles: [".miam-meals-planner-basket-preview{display:flex;flex-direction:column;height:100%;min-height:90vh;width:100%}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__content{height:100%;padding:32px 340px;width:100%}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__content .miam-meals-planner-basket-preview__title{font-size:24px;font-style:normal;font-weight:900;line-height:120%;margin-bottom:24px;text-align:center}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__content .miam-meals-planner-basket-preview__title span:last-child{margin-left:8px}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions{align-items:center;background:#fff;border-top:1px solid #d9dde1;bottom:0;display:flex;justify-content:space-evenly;left:0;padding:16px;position:fixed;right:0;z-index:2}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .miam-meals-planner-basket-preview__progress-bar{max-width:300px;width:100%}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .m-button-primary{padding:unset}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .m-button-primary a{border-radius:var(--m-button-radius)}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .m-button-primary a .miam-meals-planner-basket-preview__button-text{border-radius:var(--m-button-radius);padding:var(--m-button-padding)}@media (max-width:1023px){.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__content{padding:16px 0}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions{flex-direction:column-reverse}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .m-button-primary{width:100%}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .m-button-primary.reverse{margin-left:0;margin-top:12px}}"], encapsulation: 2, changeDetection: 0 });
22090
+ } }, directives: [NgIf, BasketPreviewBlockComponent, ProgressTrackerComponent], styles: [".miam-meals-planner-basket-preview{display:flex;flex-direction:column;height:100%;min-height:90vh;width:100%}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__content{height:100%;padding:32px 340px;width:100%}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__content .miam-meals-planner-basket-preview__title{font-size:24px;font-style:normal;font-weight:900;line-height:120%;margin-bottom:24px;text-align:center}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__content .miam-meals-planner-basket-preview__title span:last-child{margin-left:8px}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__content .miam-meals-planner-basket-preview__ingredients-regrouped{align-items:center;background-color:var(--m-color-success);border-radius:4px;color:var(--m-color-success-text);display:flex;display:none;margin-bottom:6px;padding:12px}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__content .miam-meals-planner-basket-preview__ingredients-regrouped .miam-meals-planner-basket-preview__ingredients-regrouped__title{font-size:16px;line-height:24px}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions{align-items:center;background:#fff;border-top:1px solid #d9dde1;bottom:0;display:flex;justify-content:space-evenly;left:0;padding:16px;position:fixed;right:0;z-index:2}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .miam-meals-planner-basket-preview__progress-bar{max-width:300px;width:100%}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .m-button-primary{padding:unset}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .m-button-primary a{border-radius:var(--m-button-radius)}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .m-button-primary a .miam-meals-planner-basket-preview__button-text{border-radius:var(--m-button-radius);padding:var(--m-button-padding)}@media (max-width:1023px){.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__content{padding:16px 0}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions{flex-direction:column-reverse}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .m-button-primary{width:100%}.miam-meals-planner-basket-preview .miam-meals-planner-basket-preview__actions .m-button-primary.reverse{margin-left:0;margin-top:12px}}"], encapsulation: 2, changeDetection: 0 });
22039
22091
  /*@__PURE__*/ (function () { ɵsetClassMetadata(MealsPlannerBasketPreviewComponent, [{
22040
22092
  type: Component,
22041
22093
  args: [{
@@ -22045,12 +22097,14 @@ MealsPlannerBasketPreviewComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlan
22045
22097
  encapsulation: ViewEncapsulation.None,
22046
22098
  changeDetection: ChangeDetectionStrategy.OnPush
22047
22099
  }]
22048
- }], function () { return [{ type: ChangeDetectorRef }, { type: ContextService }]; }, { recipesIds: [{
22100
+ }], function () { return [{ type: ChangeDetectorRef }, { type: ContextService }, { type: AnalyticsService }]; }, { recipesIds: [{
22049
22101
  type: Input
22050
22102
  }], usedBudget: [{
22051
22103
  type: Input
22052
22104
  }], maxBudget: [{
22053
22105
  type: Input
22106
+ }], ingredientsRegrouped: [{
22107
+ type: Input
22054
22108
  }], closed: [{
22055
22109
  type: Output
22056
22110
  }] }); })();
@@ -22064,10 +22118,13 @@ function MealsPlannerCatalogComponent_div_14_Template(rf, ctx) { if (rf & 1) {
22064
22118
  ɵɵadvance(1);
22065
22119
  ɵɵtextInterpolate1(" ", ctx_r0.filterBadgeCount, " ");
22066
22120
  } }
22067
- class MealsPlannerCatalogComponent {
22068
- constructor(cdr, recipesService) {
22121
+ class MealsPlannerCatalogComponent extends EventTracerComponent {
22122
+ constructor(cdr, recipesService, analyticsService) {
22123
+ super(analyticsService);
22069
22124
  this.cdr = cdr;
22070
22125
  this.recipesService = recipesService;
22126
+ this.analyticsService = analyticsService;
22127
+ this.excludedRecipesIds = [];
22071
22128
  this.canceled = new EventEmitter();
22072
22129
  this.editRecipe = new EventEmitter();
22073
22130
  this.icon = Icon;
@@ -22077,7 +22134,9 @@ class MealsPlannerCatalogComponent {
22077
22134
  }
22078
22135
  ngOnInit() {
22079
22136
  this.initFilters();
22137
+ this.pageview();
22080
22138
  }
22139
+ currentPath() { return 'catalog'; }
22081
22140
  // Used on load to build the filters attribute, and on click on the link to reset the filters
22082
22141
  initFilters() {
22083
22142
  this.filters = new RecipeFilters({
@@ -22094,7 +22153,7 @@ class MealsPlannerCatalogComponent {
22094
22153
  this.filters.search = '';
22095
22154
  this.filters.additionalFilters = {
22096
22155
  filters: {
22097
- recipe_type_id: '1',
22156
+ recipe_type_id: 'main-dish',
22098
22157
  computed_cost: `0,gt,${this.maxCost},lt`
22099
22158
  },
22100
22159
  title: ''
@@ -22107,6 +22166,9 @@ class MealsPlannerCatalogComponent {
22107
22166
  this.cdr.detectChanges();
22108
22167
  }
22109
22168
  updateSearchString() {
22169
+ if (this.filters.search === this.searchString) {
22170
+ return;
22171
+ }
22110
22172
  this.filters.search = this.searchString;
22111
22173
  this.updateFilters(this.filters);
22112
22174
  }
@@ -22118,8 +22180,8 @@ class MealsPlannerCatalogComponent {
22118
22180
  return this.remainingBudget / (this.modifiedGuests * this.remainingRecipesNumber);
22119
22181
  }
22120
22182
  }
22121
- MealsPlannerCatalogComponent.ɵfac = function MealsPlannerCatalogComponent_Factory(t) { return new (t || MealsPlannerCatalogComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(RecipesService)); };
22122
- MealsPlannerCatalogComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerCatalogComponent, selectors: [["ng-miam-meals-planner-catalog"]], inputs: { modifiedGuests: "modifiedGuests", remainingBudget: "remainingBudget", remainingRecipesNumber: "remainingRecipesNumber" }, outputs: { canceled: "canceled", editRecipe: "editRecipe" }, decls: 17, vars: 13, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22183
+ MealsPlannerCatalogComponent.ɵfac = function MealsPlannerCatalogComponent_Factory(t) { return new (t || MealsPlannerCatalogComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(RecipesService), ɵɵdirectiveInject(AnalyticsService)); };
22184
+ MealsPlannerCatalogComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerCatalogComponent, selectors: [["ng-miam-meals-planner-catalog"]], inputs: { modifiedGuests: "modifiedGuests", remainingBudget: "remainingBudget", remainingRecipesNumber: "remainingRecipesNumber", excludedRecipesIds: "excludedRecipesIds" }, outputs: { canceled: "canceled", editRecipe: "editRecipe" }, features: [ɵɵInheritDefinitionFeature], decls: 17, vars: 15, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22123
22185
  const MSG_EXTERNAL_2741573127118604046$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_CATALOG_MEALS_PLANNER_CATALOG_COMPONENT_TS_1 = goog.getMsg("Notre catalogue");
22124
22186
  i18n_0 = MSG_EXTERNAL_2741573127118604046$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_CATALOG_MEALS_PLANNER_CATALOG_COMPONENT_TS_1;
22125
22187
  }
@@ -22131,7 +22193,7 @@ MealsPlannerCatalogComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerCat
22131
22193
  }
22132
22194
  else {
22133
22195
  i18n_2 = $localize `:␟43a5be6775550e305fdcc873e3fe93fe756b2340␟673430564078029527:Filtrer`;
22134
- } return [[1, "miam-meals-planner-catalog"], [1, "miam-meals-planner-catalog__title", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_0, [1, "miam-meals-planner-catalog__search-and-filters"], [1, "miam-meals-planner-catalog__searchbar"], ["type", "text", "placeholder", "Chercher un ingr\u00E9dient ou un repas", 1, "miam-meals-planner-catalog__searchbar__input", 3, "ngModel", "ngModelChange", "keydown.enter", "blur"], [1, "miam-meals-planner-catalog__searchbar__button", "m-button-primary"], ["width", "20", "height", "20", 3, "iconName", "click"], [1, "miam-meals-planner-catalog__controls__filter", "m-button-primary", 3, "click"], ["width", "18", "height", "18", 3, "iconName"], i18n_2, ["class", "miam-meals-planner-catalog__controls__filter-badge", 4, "ngIf"], [3, "filters", "isFilterCollapsed", "position", "filterChanged", "filterCollapsed"], [3, "displayPricing", "addRecipeMode", "modifiedGuests", "filters", "displayGuests", "addToMealsPlanner"], [1, "miam-meals-planner-catalog__controls__filter-badge"]]; }, template: function MealsPlannerCatalogComponent_Template(rf, ctx) { if (rf & 1) {
22196
+ } return [[1, "miam-meals-planner-catalog"], [1, "miam-meals-planner-catalog__title", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_0, [1, "miam-meals-planner-catalog__search-and-filters"], [1, "miam-meals-planner-catalog__searchbar"], ["type", "text", "placeholder", "Chercher un ingr\u00E9dient ou un repas", 1, "miam-meals-planner-catalog__searchbar__input", 3, "ngModel", "ngModelChange", "keydown.enter", "blur"], [1, "miam-meals-planner-catalog__searchbar__button", "m-button-primary"], ["width", "20", "height", "20", 3, "iconName", "click"], [1, "miam-meals-planner-catalog__controls__filter", "m-button-primary", 3, "click"], ["width", "18", "height", "18", 3, "iconName"], i18n_2, ["class", "miam-meals-planner-catalog__controls__filter-badge", 4, "ngIf"], [3, "filters", "isFilterCollapsed", "position", "filterChanged", "filterCollapsed"], [3, "displayPricing", "addRecipeMode", "modifiedGuests", "originTrace", "filters", "displayGuests", "excludedRecipesIds", "addToMealsPlanner"], [1, "miam-meals-planner-catalog__controls__filter-badge"]]; }, template: function MealsPlannerCatalogComponent_Template(rf, ctx) { if (rf & 1) {
22135
22197
  ɵɵelementStart(0, "div", 0);
22136
22198
  ɵɵelementStart(1, "div", 1);
22137
22199
  ɵɵlistener("click", function MealsPlannerCatalogComponent_Template_div_click_1_listener() { return ctx.canceled.emit(); });
@@ -22181,7 +22243,7 @@ MealsPlannerCatalogComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerCat
22181
22243
  ɵɵadvance(1);
22182
22244
  ɵɵproperty("filters", ctx.filters)("isFilterCollapsed", ctx.isFilterCollapsed)("position", "right");
22183
22245
  ɵɵadvance(1);
22184
- ɵɵproperty("displayPricing", true)("addRecipeMode", true)("modifiedGuests", ctx.modifiedGuests)("filters", ctx.filters)("displayGuests", false);
22246
+ ɵɵproperty("displayPricing", true)("addRecipeMode", true)("modifiedGuests", ctx.modifiedGuests)("originTrace", ctx.eventTrace())("filters", ctx.filters)("displayGuests", false)("excludedRecipesIds", ctx.excludedRecipesIds);
22185
22247
  } }, directives: [IconComponent, DefaultValueAccessor, NgControlStatus, NgModel, NgIf, RecipeFiltersComponent, CatalogListComponent], styles: [".miam-meals-planner-catalog .miam-meals-planner-catalog__title{display:flex;flex-direction:row;font-size:24px;font-weight:900;line-height:120%;margin-bottom:24px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.miam-meals-planner-catalog .miam-meals-planner-catalog__title ng-miam-icon{cursor:pointer;transform:rotate(90deg)}.miam-meals-planner-catalog .miam-meals-planner-catalog__title ng-miam-icon .icon-container svg path:last-child{fill:var(--m-color-primary)}.miam-meals-planner-catalog .miam-meals-planner-catalog__title span{cursor:pointer;margin-left:16px}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters{align-items:center;display:flex;justify-content:space-between;margin-bottom:24px;width:100%}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar{align-items:center;background:var(--m-color-white);border:1px solid #ddd;border-radius:var(--m-border-radius-pill);display:flex;font-size:14px;height:45px;margin-right:8px;padding:0 2px 0 20px;width:400px}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar .miam-meals-planner-catalog__searchbar__input{background:transparent;border:transparent;flex:1;outline:none!important}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar .miam-meals-planner-catalog__searchbar__button{padding:10px}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar .miam-meals-planner-catalog__searchbar__button:hover{border-color:transparent}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__controls__filter{border-color:transparent;font-weight:700;position:relative}.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__controls__filter .miam-meals-planner-catalog__controls__filter-badge{align-items:center;background-color:var(--m-catalog-redpoint-color);border-radius:var(--m-border-radius-circle);color:var(--m-catalog-redpoint-text-color);display:flex;font-size:12px;height:18px;justify-content:center;line-height:18px;position:absolute;right:-4px;top:-4px;width:18px}@media (max-width:1023px){.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters .miam-meals-planner-catalog__searchbar{width:300px}.miam-meals-planner-catalog .miam-meals-planner-catalog__controls__filter{border-radius:var(--m-border-radius-circle);padding:10px}.miam-meals-planner-catalog .miam-meals-planner-catalog__controls__filter span{display:none}.miam-meals-planner-catalog .miam-meals-planner-catalog__controls__filter ng-miam-icon{margin-right:0!important}}@media (max-width:607px){.miam-meals-planner-catalog .miam-meals-planner-catalog__search-and-filters{justify-content:center}}"], encapsulation: 2, changeDetection: 0 });
22186
22248
  /*@__PURE__*/ (function () { ɵsetClassMetadata(MealsPlannerCatalogComponent, [{
22187
22249
  type: Component,
@@ -22192,31 +22254,39 @@ MealsPlannerCatalogComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerCat
22192
22254
  encapsulation: ViewEncapsulation.None,
22193
22255
  changeDetection: ChangeDetectionStrategy.OnPush
22194
22256
  }]
22195
- }], function () { return [{ type: ChangeDetectorRef }, { type: RecipesService }]; }, { modifiedGuests: [{
22257
+ }], function () { return [{ type: ChangeDetectorRef }, { type: RecipesService }, { type: AnalyticsService }]; }, { modifiedGuests: [{
22196
22258
  type: Input
22197
22259
  }], remainingBudget: [{
22198
22260
  type: Input
22199
22261
  }], remainingRecipesNumber: [{
22200
22262
  type: Input
22263
+ }], excludedRecipesIds: [{
22264
+ type: Input
22201
22265
  }], canceled: [{
22202
22266
  type: Output
22203
22267
  }], editRecipe: [{
22204
22268
  type: Output
22205
22269
  }] }); })();
22206
22270
 
22207
- class MealsPlannerBasketConfirmationComponent {
22208
- constructor(cdr, context) {
22271
+ class MealsPlannerBasketConfirmationComponent extends EventTracerComponent {
22272
+ constructor(cdr, context, analyticsService) {
22273
+ super(analyticsService);
22209
22274
  this.cdr = cdr;
22210
22275
  this.context = context;
22276
+ this.analyticsService = analyticsService;
22211
22277
  this.recipesIds = [];
22212
22278
  this.budget = 0;
22213
22279
  }
22280
+ ngOnInit() {
22281
+ this.pageview();
22282
+ }
22283
+ currentPath() { return 'confirmation'; }
22214
22284
  get roundedBudget() {
22215
22285
  return (Math.round(this.budget * 100) / 100).toFixed(2).replace('.', ',');
22216
22286
  }
22217
22287
  }
22218
- MealsPlannerBasketConfirmationComponent.ɵfac = function MealsPlannerBasketConfirmationComponent_Factory(t) { return new (t || MealsPlannerBasketConfirmationComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ContextService)); };
22219
- MealsPlannerBasketConfirmationComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerBasketConfirmationComponent, selectors: [["ng-miam-meals-planner-basket-confirmation"]], inputs: { recipesIds: "recipesIds", budget: "budget" }, decls: 24, vars: 3, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22288
+ MealsPlannerBasketConfirmationComponent.ɵfac = function MealsPlannerBasketConfirmationComponent_Factory(t) { return new (t || MealsPlannerBasketConfirmationComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(ContextService), ɵɵdirectiveInject(AnalyticsService)); };
22289
+ MealsPlannerBasketConfirmationComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerBasketConfirmationComponent, selectors: [["ng-miam-meals-planner-basket-confirmation"]], inputs: { recipesIds: "recipesIds", budget: "budget" }, features: [ɵɵInheritDefinitionFeature], decls: 24, vars: 3, consts: function () { var i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22220
22290
  const MSG_EXTERNAL_978176854081714634$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_CONFIRMATION_MEALS_PLANNER_BASKET_CONFIRMATION_COMPONENT_TS_1 = goog.getMsg("Les produits associ\u00E9s ont bien \u00E9t\u00E9 ajout\u00E9s au panier.");
22221
22291
  i18n_0 = MSG_EXTERNAL_978176854081714634$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_CONFIRMATION_MEALS_PLANNER_BASKET_CONFIRMATION_COMPONENT_TS_1;
22222
22292
  }
@@ -22300,7 +22370,7 @@ MealsPlannerBasketConfirmationComponent.ɵcmp = ɵɵdefineComponent({ type: Meal
22300
22370
  encapsulation: ViewEncapsulation.None,
22301
22371
  changeDetection: ChangeDetectionStrategy.OnPush
22302
22372
  }]
22303
- }], function () { return [{ type: ChangeDetectorRef }, { type: ContextService }]; }, { recipesIds: [{
22373
+ }], function () { return [{ type: ChangeDetectorRef }, { type: ContextService }, { type: AnalyticsService }]; }, { recipesIds: [{
22304
22374
  type: Input
22305
22375
  }], budget: [{
22306
22376
  type: Input
@@ -22315,7 +22385,7 @@ function MealsPlannerComponent_div_15_ng_miam_meals_planner_form_1_Template(rf,
22315
22385
  ɵɵelementEnd();
22316
22386
  } if (rf & 2) {
22317
22387
  const ctx_r2 = ɵɵnextContext(2);
22318
- ɵɵproperty("reduced", ctx_r2.budgettedRecipes.length > 0)("form", ctx_r2.form)("ngClass", ɵɵpureFunction1(3, _c5$1, ctx_r2.budgettedRecipes.length > 0));
22388
+ ɵɵproperty("originTrace", ctx_r2.eventTrace())("reduced", ctx_r2.budgettedRecipes.length > 0)("form", ctx_r2.form)("loading", ctx_r2.loading)("ngClass", ɵɵpureFunction1(5, _c5$1, ctx_r2.budgettedRecipes.length > 0));
22319
22389
  } }
22320
22390
  function MealsPlannerComponent_div_15_ng_miam_meals_planner_result_2_Template(rf, ctx) { if (rf & 1) {
22321
22391
  const _r10 = ɵɵgetCurrentView();
@@ -22324,7 +22394,7 @@ function MealsPlannerComponent_div_15_ng_miam_meals_planner_result_2_Template(rf
22324
22394
  ɵɵelementEnd();
22325
22395
  } if (rf & 2) {
22326
22396
  const ctx_r3 = ɵɵnextContext(2);
22327
- ɵɵproperty("recipes", ctx_r3.budgettedRecipes)("usedBudget", ctx_r3.usedBudget)("maxBudget", ctx_r3.maxBudget)("loading", ctx_r3.loading);
22397
+ ɵɵproperty("originTrace", ctx_r3.eventTrace())("recipes", ctx_r3.budgettedRecipes)("usedBudget", ctx_r3.usedBudget)("maxBudget", ctx_r3.maxBudget)("loading", ctx_r3.loading);
22328
22398
  } }
22329
22399
  function MealsPlannerComponent_div_15_ng_miam_meals_planner_basket_preview_3_Template(rf, ctx) { if (rf & 1) {
22330
22400
  const _r14 = ɵɵgetCurrentView();
@@ -22333,7 +22403,7 @@ function MealsPlannerComponent_div_15_ng_miam_meals_planner_basket_preview_3_Tem
22333
22403
  ɵɵelementEnd();
22334
22404
  } if (rf & 2) {
22335
22405
  const ctx_r4 = ɵɵnextContext(2);
22336
- ɵɵproperty("recipesIds", ctx_r4.addedRecipesIds)("usedBudget", ctx_r4.usedBudget)("maxBudget", ctx_r4.maxBudget)("ngClass", ɵɵpureFunction1(4, _c5$1, ctx_r4.addedRecipesIds.length === 0 && !ctx_r4.catalogMode && !ctx_r4.basketConfirmed));
22406
+ ɵɵproperty("recipesIds", ctx_r4.addedRecipesIds)("usedBudget", ctx_r4.usedBudget)("maxBudget", ctx_r4.maxBudget)("ingredientsRegrouped", ctx_r4.ingredientsRegrouped)("originTrace", ctx_r4.eventTrace())("ngClass", ɵɵpureFunction1(6, _c5$1, ctx_r4.addedRecipesIds.length === 0 && !ctx_r4.catalogMode && !ctx_r4.basketConfirmed));
22337
22407
  } }
22338
22408
  function MealsPlannerComponent_div_15_ng_miam_meals_planner_catalog_4_Template(rf, ctx) { if (rf & 1) {
22339
22409
  const _r16 = ɵɵgetCurrentView();
@@ -22342,21 +22412,21 @@ function MealsPlannerComponent_div_15_ng_miam_meals_planner_catalog_4_Template(r
22342
22412
  ɵɵelementEnd();
22343
22413
  } if (rf & 2) {
22344
22414
  const ctx_r5 = ɵɵnextContext(2);
22345
- ɵɵproperty("modifiedGuests", ctx_r5.form.value.guestsCount)("remainingBudget", ctx_r5.remainingBudget)("remainingRecipesNumber", ctx_r5.remainingRecipesNumber);
22415
+ ɵɵproperty("modifiedGuests", ctx_r5.form.value.guestsCount)("originTrace", ctx_r5.eventTrace())("remainingBudget", ctx_r5.remainingBudget)("remainingRecipesNumber", ctx_r5.remainingRecipesNumber)("excludedRecipesIds", ctx_r5.excludedRecipesIds);
22346
22416
  } }
22347
22417
  function MealsPlannerComponent_div_15_ng_miam_meals_planner_basket_confirmation_5_Template(rf, ctx) { if (rf & 1) {
22348
22418
  ɵɵelement(0, "ng-miam-meals-planner-basket-confirmation", 23);
22349
22419
  } if (rf & 2) {
22350
22420
  const ctx_r6 = ɵɵnextContext(2);
22351
- ɵɵproperty("recipesIds", ctx_r6.addedRecipesIds)("budget", ctx_r6.usedBudget);
22421
+ ɵɵproperty("recipesIds", ctx_r6.addedRecipesIds)("originTrace", ctx_r6.eventTrace())("budget", ctx_r6.usedBudget);
22352
22422
  } }
22353
22423
  function MealsPlannerComponent_div_15_Template(rf, ctx) { if (rf & 1) {
22354
22424
  ɵɵelementStart(0, "div", 13);
22355
- ɵɵtemplate(1, MealsPlannerComponent_div_15_ng_miam_meals_planner_form_1_Template, 1, 5, "ng-miam-meals-planner-form", 14);
22356
- ɵɵtemplate(2, MealsPlannerComponent_div_15_ng_miam_meals_planner_result_2_Template, 1, 4, "ng-miam-meals-planner-result", 15);
22357
- ɵɵtemplate(3, MealsPlannerComponent_div_15_ng_miam_meals_planner_basket_preview_3_Template, 1, 6, "ng-miam-meals-planner-basket-preview", 16);
22358
- ɵɵtemplate(4, MealsPlannerComponent_div_15_ng_miam_meals_planner_catalog_4_Template, 1, 3, "ng-miam-meals-planner-catalog", 17);
22359
- ɵɵtemplate(5, MealsPlannerComponent_div_15_ng_miam_meals_planner_basket_confirmation_5_Template, 1, 2, "ng-miam-meals-planner-basket-confirmation", 18);
22425
+ ɵɵtemplate(1, MealsPlannerComponent_div_15_ng_miam_meals_planner_form_1_Template, 1, 7, "ng-miam-meals-planner-form", 14);
22426
+ ɵɵtemplate(2, MealsPlannerComponent_div_15_ng_miam_meals_planner_result_2_Template, 1, 5, "ng-miam-meals-planner-result", 15);
22427
+ ɵɵtemplate(3, MealsPlannerComponent_div_15_ng_miam_meals_planner_basket_preview_3_Template, 1, 8, "ng-miam-meals-planner-basket-preview", 16);
22428
+ ɵɵtemplate(4, MealsPlannerComponent_div_15_ng_miam_meals_planner_catalog_4_Template, 1, 5, "ng-miam-meals-planner-catalog", 17);
22429
+ ɵɵtemplate(5, MealsPlannerComponent_div_15_ng_miam_meals_planner_basket_confirmation_5_Template, 1, 3, "ng-miam-meals-planner-basket-confirmation", 18);
22360
22430
  ɵɵelementEnd();
22361
22431
  } if (rf & 2) {
22362
22432
  const ctx_r1 = ɵɵnextContext();
@@ -22365,7 +22435,7 @@ function MealsPlannerComponent_div_15_Template(rf, ctx) { if (rf & 1) {
22365
22435
  ɵɵadvance(1);
22366
22436
  ɵɵproperty("ngIf", ctx_r1.budgettedRecipes.length > 0 && ctx_r1.addedRecipesIds.length === 0 && !ctx_r1.catalogMode && !ctx_r1.basketConfirmed);
22367
22437
  ɵɵadvance(1);
22368
- ɵɵproperty("ngIf", !ctx_r1.basketConfirmed);
22438
+ ɵɵproperty("ngIf", ctx_r1.addedRecipesIds.length > 0 && !ctx_r1.catalogMode && !ctx_r1.basketConfirmed);
22369
22439
  ɵɵadvance(1);
22370
22440
  ɵɵproperty("ngIf", ctx_r1.catalogMode && !ctx_r1.basketConfirmed);
22371
22441
  ɵɵadvance(1);
@@ -22375,7 +22445,7 @@ const _c6$4 = function (a0) { return { "hidden": a0 }; };
22375
22445
  const recipeIncludes$5 = ['recipe-provider', 'sponsors'];
22376
22446
  const recipeSparseFields$5 = {
22377
22447
  recipes: ['title', 'number-of-guests', 'media-url', 'video-id', 'filigrane-logo-url', 'difficulty', 'preparation-time', 'cooking-time',
22378
- 'resting-time', 'computed-cost', ...recipeIncludes$5],
22448
+ 'resting-time', ...recipeIncludes$5],
22379
22449
  sponsors: ['logo-url'],
22380
22450
  ['recipe-provider']: ['name']
22381
22451
  };
@@ -22391,11 +22461,14 @@ class MealsPlannerComponent extends EventTracerComponent {
22391
22461
  this.basketsService = basketsService;
22392
22462
  this.posService = posService;
22393
22463
  this.budgettedRecipes = [];
22464
+ this.budgettedRecipesPrices = {};
22394
22465
  this.addedRecipesIds = [];
22395
22466
  this.icon = Icon;
22396
22467
  this.catalogMode = false;
22397
22468
  this.basketConfirmed = false;
22398
22469
  this.loading = false;
22470
+ this.ingredientsRegrouped = false;
22471
+ this.timeOnStart = Date.now();
22399
22472
  // Progress bar
22400
22473
  this.usedBudget = 0;
22401
22474
  this.maxBudget = 0;
@@ -22403,6 +22476,7 @@ class MealsPlannerComponent extends EventTracerComponent {
22403
22476
  }
22404
22477
  ngOnInit() {
22405
22478
  this.initForm();
22479
+ this.pageview();
22406
22480
  this.subscriptions.push(this.initRecipesPricing());
22407
22481
  }
22408
22482
  ngOnChanges() {
@@ -22427,7 +22501,10 @@ class MealsPlannerComponent extends EventTracerComponent {
22427
22501
  this.recipesService.plan(inputs.budget, inputs.guestsCount, inputs.recipesCount, recipeIncludes$5, recipeSparseFields$5).pipe(switchMap(recipes => {
22428
22502
  this.budgettedRecipes = []; // Refresh the result view
22429
22503
  this.cdr.detectChanges();
22430
- this.budgettedRecipes = recipes;
22504
+ this.budgettedRecipes = recipes.map(r => {
22505
+ r.modifiedGuests = inputs.guestsCount;
22506
+ return r;
22507
+ });
22431
22508
  this.loading = false;
22432
22509
  this.cdr.detectChanges();
22433
22510
  return this.fetchRecipesPricing();
@@ -22442,23 +22519,37 @@ class MealsPlannerComponent extends EventTracerComponent {
22442
22519
  ngOnDestroy() {
22443
22520
  this.subscriptions.forEach(s => s.unsubscribe());
22444
22521
  }
22445
- currentPath() { return 'miam/meals-planner'; }
22522
+ currentPath() { return 'miam/recipes/meals-planner'; }
22446
22523
  addRecipes() {
22447
22524
  this.loading = true;
22448
22525
  this.cdr.detectChanges();
22526
+ const previousUsedBudget = this.usedBudget;
22527
+ let basketInitialized = false;
22449
22528
  this.subscriptions.push(this.groceriesListsService.appendRecipesToList(this.budgettedRecipes.filter(r => r === null || r === void 0 ? void 0 : r.id).map(r => ({ id: r.id, guests: r.modifiedGuests })), // remove empty recipes
22450
22529
  this.eventTrace()).pipe(take(1), switchMap(() => {
22451
22530
  this.addedRecipesIds = this.budgettedRecipes.filter(r => r === null || r === void 0 ? void 0 : r.id).map(r => r.id);
22531
+ return this.basketsService.basketPreview$.pipe(take(2));
22532
+ }), switchMap(basketPreviewLines => {
22533
+ if (basketInitialized) {
22534
+ this.fetchBasketPreviewPricing(basketPreviewLines);
22535
+ this.ingredientsRegrouped = previousUsedBudget !== this.usedBudget;
22536
+ return this.basketsService.basketPreview$;
22537
+ }
22538
+ basketInitialized = true;
22539
+ return of(null);
22540
+ }), switchMap(basketPreviewLines => {
22541
+ if (basketPreviewLines !== null) {
22542
+ if (!this.containsSomeAddedRecipe(basketPreviewLines)) {
22543
+ return this.fetchBudgetValues();
22544
+ }
22545
+ return of(this.fetchBasketPreviewPricing(basketPreviewLines));
22546
+ }
22547
+ return of(null);
22548
+ })).subscribe(() => {
22452
22549
  this.scrollToTop();
22453
22550
  this.loading = false;
22454
22551
  this.cdr.detectChanges();
22455
- return this.basketsService.basketPreview$;
22456
- }), switchMap(basketPreviewLines => {
22457
- if (!this.containsSomeAddedRecipe(basketPreviewLines)) {
22458
- return this.fetchBudgetValues();
22459
- }
22460
- return of(this.fetchBasketPreviewPricing(basketPreviewLines));
22461
- })).subscribe());
22552
+ }));
22462
22553
  }
22463
22554
  containsSomeAddedRecipe(basketPreviewLines) {
22464
22555
  let containsSomeAddedRecipeId = false;
@@ -22477,6 +22568,7 @@ class MealsPlannerComponent extends EventTracerComponent {
22477
22568
  this.usedBudget += +basketPreviewLine.price;
22478
22569
  }
22479
22570
  });
22571
+ this.usedBudget = Math.round(this.usedBudget * 100) / 100;
22480
22572
  this.cdr.detectChanges();
22481
22573
  }
22482
22574
  initRecipesPricing() {
@@ -22490,9 +22582,10 @@ class MealsPlannerComponent extends EventTracerComponent {
22490
22582
  return of([]);
22491
22583
  }
22492
22584
  const requests = [];
22585
+ this.budgettedRecipesPrices = {};
22493
22586
  this.budgettedRecipes.forEach(recipe => {
22494
22587
  if (recipe) {
22495
- requests.push(this.recipesService.getPricing(recipe.id, this.pos.id, this.pricebookKey, this.form.value.guestsCount).pipe(skipWhile(result => !(result === null || result === void 0 ? void 0 : result.price))));
22588
+ requests.push(this.recipesService.getPricing(recipe.id, this.pos.id, this.pricebookKey, this.form.value.guestsCount).pipe(skipWhile(result => !(result === null || result === void 0 ? void 0 : result.price)), tap(pricing => this.budgettedRecipesPrices[recipe.id] = pricing.price)));
22496
22589
  }
22497
22590
  });
22498
22591
  return requests.length > 0 ? forkJoin(requests) : of([]);
@@ -22528,22 +22621,42 @@ class MealsPlannerComponent extends EventTracerComponent {
22528
22621
  openBasketConfirmation() {
22529
22622
  this.recipeToChangeIndex = null;
22530
22623
  this.basketConfirmed = true;
22624
+ this.sendConfirmationEvent();
22531
22625
  this.scrollToTop();
22532
22626
  this.cdr.detectChanges();
22533
22627
  }
22628
+ sendConfirmationEvent() {
22629
+ this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_MEALS_PLANNER_CONFIRMED, this.path(), {
22630
+ budget_user: this.form.get('budget').value,
22631
+ budget_planner: this.usedBudget,
22632
+ recipes_count: this.form.get('recipesCount').value,
22633
+ guests: this.form.get('guestsCount').value,
22634
+ uses_count: this.updateUsesCount(),
22635
+ time_passed: (Date.now() - this.timeOnStart) / 1000
22636
+ });
22637
+ }
22638
+ updateUsesCount() {
22639
+ const oldCount = parseInt(localStorage.getItem('miam-meals-planner-uses-count'));
22640
+ const newCount = Number.isNaN(oldCount) ? 1 : oldCount + 1;
22641
+ localStorage.setItem('miam-meals-planner-uses-count', newCount.toString());
22642
+ return newCount;
22643
+ }
22534
22644
  scrollToTop() {
22535
22645
  if (this.topAnchor) {
22536
22646
  this.topAnchor.nativeElement.scrollIntoView();
22537
22647
  }
22538
22648
  }
22539
22649
  get remainingBudget() {
22540
- return this.budgettedRecipes.reduce((acc, recipe, i) => {
22541
- // Don't count null recipes and currently replacing recipe
22542
- if (recipe && i !== this.recipeToChangeIndex) {
22543
- return acc - recipe.attributes['computed-cost'] * this.form.value.guestsCount;
22544
- }
22545
- return acc;
22546
- }, this.form.value.budget);
22650
+ var _a;
22651
+ const recipeToChangeId = (_a = this.budgettedRecipes[this.recipeToChangeIndex]) === null || _a === void 0 ? void 0 : _a.id;
22652
+ let remainingBudget = this.maxBudget - this.usedBudget;
22653
+ if (recipeToChangeId) {
22654
+ remainingBudget += this.budgettedRecipesPrices[recipeToChangeId];
22655
+ }
22656
+ if (remainingBudget > 0) {
22657
+ return remainingBudget;
22658
+ }
22659
+ return 0;
22547
22660
  }
22548
22661
  get remainingRecipesNumber() {
22549
22662
  return this.budgettedRecipes.reduce((acc, recipe, i) => {
@@ -22551,6 +22664,9 @@ class MealsPlannerComponent extends EventTracerComponent {
22551
22664
  return recipe && i !== this.recipeToChangeIndex ? acc : acc + 1;
22552
22665
  }, 0);
22553
22666
  }
22667
+ get excludedRecipesIds() {
22668
+ return this.budgettedRecipes.filter(recipe => recipe).map(recipe => recipe.id);
22669
+ }
22554
22670
  }
22555
22671
  MealsPlannerComponent.ɵfac = function MealsPlannerComponent_Factory(t) { return new (t || MealsPlannerComponent)(ɵɵdirectiveInject(FormBuilder), ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(AnalyticsService), ɵɵdirectiveInject(ContextService), ɵɵdirectiveInject(GroceriesListsService), ɵɵdirectiveInject(RecipesService), ɵɵdirectiveInject(BasketsService), ɵɵdirectiveInject(PointOfSalesService)); };
22556
22672
  MealsPlannerComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerComponent, selectors: [["ng-miam-meals-planner"]], viewQuery: function MealsPlannerComponent_Query(rf, ctx) { if (rf & 1) {
@@ -22570,7 +22686,7 @@ MealsPlannerComponent.ɵcmp = ɵɵdefineComponent({ type: MealsPlannerComponent,
22570
22686
  }
22571
22687
  else {
22572
22688
  i18n_3 = $localize `:␟1699ac3b921e6d286c72605705ac342f122b2652␟406825433402702343:Planifier mes repas`;
22573
- } return [[1, "miam-meals-planner-anchor"], ["miamMealsPlannerTopAnchor", ""], [1, "miam-meals-planner"], [1, "miam-meals-planner__header"], [1, "miam-meals-planner__header__breadcrumb", 3, "ngClass"], ["href", "/"], ["width", "18", "height", "18", "primaryColor", "#1F3543", 3, "iconName"], ["width", "24", "height", "24", 1, "chevron-right", 3, "iconName"], [1, "inactive", 3, "href"], i18n_1, ["href", "javascript:void(0)", 1, "active"], i18n_3, ["class", "miam-meals-planner__content", 4, "ngIf"], [1, "miam-meals-planner__content"], [3, "reduced", "form", "ngClass", "submitted", 4, "ngIf"], [3, "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog", 4, "ngIf"], [3, "recipesIds", "usedBudget", "maxBudget", "ngClass", "closed", 4, "ngIf"], [3, "modifiedGuests", "remainingBudget", "remainingRecipesNumber", "editRecipe", "canceled", 4, "ngIf"], [3, "recipesIds", "budget", 4, "ngIf"], [3, "reduced", "form", "ngClass", "submitted"], [3, "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog"], [3, "recipesIds", "usedBudget", "maxBudget", "ngClass", "closed"], [3, "modifiedGuests", "remainingBudget", "remainingRecipesNumber", "editRecipe", "canceled"], [3, "recipesIds", "budget"]]; }, template: function MealsPlannerComponent_Template(rf, ctx) { if (rf & 1) {
22689
+ } return [[1, "miam-meals-planner-anchor"], ["miamMealsPlannerTopAnchor", ""], [1, "miam-meals-planner"], [1, "miam-meals-planner__header"], [1, "miam-meals-planner__header__breadcrumb", 3, "ngClass"], ["href", "/"], ["width", "18", "height", "18", "primaryColor", "#1F3543", 3, "iconName"], ["width", "24", "height", "24", 1, "chevron-right", 3, "iconName"], [1, "inactive", 3, "href"], i18n_1, ["href", "javascript:void(0)", 1, "active"], i18n_3, ["class", "miam-meals-planner__content", 4, "ngIf"], [1, "miam-meals-planner__content"], [3, "originTrace", "reduced", "form", "loading", "ngClass", "submitted", 4, "ngIf"], [3, "originTrace", "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog", 4, "ngIf"], [3, "recipesIds", "usedBudget", "maxBudget", "ingredientsRegrouped", "originTrace", "ngClass", "closed", 4, "ngIf"], [3, "modifiedGuests", "originTrace", "remainingBudget", "remainingRecipesNumber", "excludedRecipesIds", "editRecipe", "canceled", 4, "ngIf"], [3, "recipesIds", "originTrace", "budget", 4, "ngIf"], [3, "originTrace", "reduced", "form", "loading", "ngClass", "submitted"], [3, "originTrace", "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog"], [3, "recipesIds", "usedBudget", "maxBudget", "ingredientsRegrouped", "originTrace", "ngClass", "closed"], [3, "modifiedGuests", "originTrace", "remainingBudget", "remainingRecipesNumber", "excludedRecipesIds", "editRecipe", "canceled"], [3, "recipesIds", "originTrace", "budget"]]; }, template: function MealsPlannerComponent_Template(rf, ctx) { if (rf & 1) {
22574
22690
  ɵɵelement(0, "div", 0, 1);
22575
22691
  ɵɵelementStart(2, "div", 2);
22576
22692
  ɵɵelementStart(3, "div", 3);
@@ -22864,7 +22980,7 @@ class MiamInterceptor {
22864
22980
  request = request.clone({
22865
22981
  setHeaders: {
22866
22982
  'miam-origin': context.origin,
22867
- 'miam-front-version': '6.3.1',
22983
+ 'miam-front-version': '6.3.4',
22868
22984
  'miam-front-type': 'web',
22869
22985
  'miam-api-version': '4.7.0'
22870
22986
  }