ng-miam 9.3.17 → 9.3.19

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 (24) hide show
  1. package/bundles/ng-miam.umd.js +190 -99
  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/promotion-badge/promotion-badge.component.js +30 -19
  6. package/esm2015/lib/_services/analytics.service.js +9 -2
  7. package/esm2015/lib/_services/recipes.service.js +1 -1
  8. package/esm2015/lib/_types/recipe-filters.js +1 -1
  9. package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +74 -47
  10. package/esm2015/lib/_web-components/recipe-catalog/catalog-toolbar/catalog-toolbar.component.js +47 -9
  11. package/esm2015/lib/environments/version.js +2 -2
  12. package/fesm2015/ng-miam.js +162 -82
  13. package/fesm2015/ng-miam.js.map +1 -1
  14. package/lib/_components/promotion-badge/promotion-badge.component.d.ts +9 -4
  15. package/lib/_components/promotion-badge/promotion-badge.component.d.ts.map +1 -1
  16. package/lib/_services/analytics.service.d.ts.map +1 -1
  17. package/lib/_types/recipe-filters.d.ts +1 -0
  18. package/lib/_types/recipe-filters.d.ts.map +1 -1
  19. package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts +1 -0
  20. package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts.map +1 -1
  21. package/lib/_web-components/recipe-catalog/catalog-toolbar/catalog-toolbar.component.d.ts +6 -2
  22. package/lib/_web-components/recipe-catalog/catalog-toolbar/catalog-toolbar.component.d.ts.map +1 -1
  23. package/lib/environments/version.d.ts +1 -1
  24. package/package.json +1 -1
@@ -3652,7 +3652,7 @@
3652
3652
  EventJourney["EMPTY"] = "";
3653
3653
  })(EventJourney || (EventJourney = {}));
3654
3654
 
3655
- var VERSION = "9.3.17"; // TODO: replace by ##VERSION## and update it in the CI/CD
3655
+ var VERSION = "9.3.19"; // TODO: replace by ##VERSION## and update it in the CI/CD
3656
3656
 
3657
3657
  var ContextRegistryService = /** @class */ (function () {
3658
3658
  function ContextRegistryService() {
@@ -3757,7 +3757,14 @@
3757
3757
  }
3758
3758
  // Use provided journey or determine from context
3759
3759
  var eventJourney = journey || (this.isMealzPage ? EventJourney.MEALZ : EventJourney.EMPTY);
3760
- this.callMethodOrAddToQueue(function () { return mealzSharedAnalytics.sendEvent(name, url(path), eventJourney, props); });
3760
+ this.callMethodOrAddToQueue(function () {
3761
+ try {
3762
+ mealzSharedAnalytics.sendEvent(name, url(path), eventJourney, props);
3763
+ }
3764
+ catch (error) {
3765
+ mealzError('[Mealz] Error sending analytics event', error);
3766
+ }
3767
+ });
3761
3768
  };
3762
3769
  /** ************************************************* SEND EVENT FOR BASKET ACTIONS ************************************************* **/
3763
3770
  AnalyticsService.prototype.sendRemoveRecipesEvents = function (actions, journey) {
@@ -12321,7 +12328,7 @@
12321
12328
  i0__namespace.ɵɵproperty("ngIf", !ctx_r3.placeOrderFooter && ctx_r3.redirectToCartFooter);
12322
12329
  }
12323
12330
  }
12324
- var _c10$3 = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
12331
+ var _c10$2 = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
12325
12332
  function ModalComponent_ng_container_0_Template(rf, ctx) {
12326
12333
  if (rf & 1) {
12327
12334
  var _r19_1 = i0__namespace.ɵɵgetCurrentView();
@@ -12358,7 +12365,7 @@
12358
12365
  i0__namespace.ɵɵadvance(1);
12359
12366
  i0__namespace.ɵɵproperty("ngClass", ctx_r0.modalStyle);
12360
12367
  i0__namespace.ɵɵadvance(2);
12361
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(6, _c10$3, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
12368
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(6, _c10$2, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
12362
12369
  i0__namespace.ɵɵattribute("aria-labelledby", ctx_r0.title ? "modal-title" : ctx_r0.recipesCount ? "modal-recipe-count" : null);
12363
12370
  i0__namespace.ɵɵadvance(4);
12364
12371
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.title);
@@ -12369,7 +12376,7 @@
12369
12376
  }
12370
12377
  }
12371
12378
  var _c11$3 = [[["", "header", ""]], "*"];
12372
- var _c12$1 = ["[header]", "*"];
12379
+ var _c12$2 = ["[header]", "*"];
12373
12380
  var ModalComponent = /** @class */ (function () {
12374
12381
  function ModalComponent(contextService, basketTransferService, currencyService) {
12375
12382
  this.contextService = contextService;
@@ -12445,7 +12452,7 @@
12445
12452
  if (rf & 1) {
12446
12453
  i0__namespace.ɵɵlistener("keydown.escape", function ModalComponent_keydown_escape_HostBindingHandler() { return ctx.onEscapeDown(); }, false, i0__namespace.ɵɵresolveWindow);
12447
12454
  }
12448
- }, inputs: { recipesCount: "recipesCount", confirmButtonIsLoading: "confirmButtonIsLoading", cancelButtonIsLoading: "cancelButtonIsLoading", confirmButtonDisabled: "confirmButtonDisabled", cancelButtonDisabled: "cancelButtonDisabled", placeOrderFooter: "placeOrderFooter", redirectToCartFooter: "redirectToCartFooter", noHeaderMode: "noHeaderMode", totalPrice: "totalPrice", title: "title", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", modalStyle: "modalStyle", ctaColor: "ctaColor", display: "display" }, outputs: { close: "close", cancel: "cancel", confirm: "confirm" }, ngContentSelectors: _c12$1, decls: 1, vars: 1, consts: function () {
12455
+ }, inputs: { recipesCount: "recipesCount", confirmButtonIsLoading: "confirmButtonIsLoading", cancelButtonIsLoading: "cancelButtonIsLoading", confirmButtonDisabled: "confirmButtonDisabled", cancelButtonDisabled: "cancelButtonDisabled", placeOrderFooter: "placeOrderFooter", redirectToCartFooter: "redirectToCartFooter", noHeaderMode: "noHeaderMode", totalPrice: "totalPrice", title: "title", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", modalStyle: "modalStyle", ctaColor: "ctaColor", display: "display" }, outputs: { close: "close", cancel: "cancel", confirm: "confirm" }, ngContentSelectors: _c12$2, decls: 1, vars: 1, consts: function () {
12449
12456
  var i18n_0;
12450
12457
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
12451
12458
  var MSG_EXTERNAL_3775647930168967606$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS___1 = goog.getMsg("Utilis\u00E9 dans ");
@@ -13513,7 +13520,7 @@
13513
13520
  i18n_12 = MSG_EXTERNAL_2987005241567363499$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS____13;
13514
13521
  }
13515
13522
  else {
13516
- i18n_12 = $localize(templateObject_7$d || (templateObject_7$d = __makeTemplateObject([":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"], [":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"])));
13523
+ i18n_12 = $localize(templateObject_7$e || (templateObject_7$e = __makeTemplateObject([":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"], [":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"])));
13517
13524
  }
13518
13525
  var i18n_14;
13519
13526
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -13692,7 +13699,7 @@
13692
13699
  type: i0.Output
13693
13700
  }] });
13694
13701
  })();
13695
- var templateObject_1$M, templateObject_2$A, templateObject_3$r, templateObject_4$o, templateObject_5$i, templateObject_6$e, templateObject_7$d, templateObject_8$a, templateObject_9$7, templateObject_10$6, templateObject_11$6, templateObject_12$3, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
13702
+ var templateObject_1$M, templateObject_2$A, templateObject_3$r, templateObject_4$o, templateObject_5$i, templateObject_6$e, templateObject_7$e, templateObject_8$a, templateObject_9$7, templateObject_10$6, templateObject_11$6, templateObject_12$3, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
13696
13703
 
13697
13704
  var SelectPosButtonDirective = /** @class */ (function () {
13698
13705
  function SelectPosButtonDirective(el, contextService, posService) {
@@ -15322,35 +15329,50 @@
15322
15329
  })();
15323
15330
  var templateObject_1$I;
15324
15331
 
15325
- function PromotionBadgeComponent_div_1_Template(rf, ctx) {
15332
+ function PromotionBadgeComponent_div_0_Template(rf, ctx) {
15326
15333
  if (rf & 1) {
15327
- i0__namespace.ɵɵelementStart(0, "div", 2);
15328
- i0__namespace.ɵɵelementStart(1, "span", 3);
15329
- i0__namespace.ɵɵtext(2);
15334
+ i0__namespace.ɵɵelementStart(0, "div", 1);
15335
+ i0__namespace.ɵɵelementStart(1, "div", 2);
15336
+ i0__namespace.ɵɵelementStart(2, "span", 3);
15337
+ i0__namespace.ɵɵtext(3);
15338
+ i0__namespace.ɵɵelementEnd();
15339
+ i0__namespace.ɵɵelementStart(4, "span", 4);
15340
+ i0__namespace.ɵɵi18n(5, 5);
15330
15341
  i0__namespace.ɵɵelementEnd();
15331
- i0__namespace.ɵɵelementStart(3, "span", 4);
15332
- i0__namespace.ɵɵi18n(4, 5);
15333
15342
  i0__namespace.ɵɵelementEnd();
15334
15343
  i0__namespace.ɵɵelementEnd();
15335
15344
  }
15336
15345
  if (rf & 2) {
15337
15346
  var ctx_r0 = i0__namespace.ɵɵnextContext();
15338
- i0__namespace.ɵɵadvance(2);
15347
+ i0__namespace.ɵɵadvance(3);
15339
15348
  i0__namespace.ɵɵtextInterpolate2(" ", ctx_r0.priceData.discountAmount, "", ctx_r0.priceService.getPriceAmountSuffix(ctx_r0.priceData), " ");
15340
15349
  }
15341
15350
  }
15342
15351
  var PromotionBadgeComponent = /** @class */ (function () {
15343
- function PromotionBadgeComponent(cdr, priceService) {
15352
+ function PromotionBadgeComponent(cdr, priceService, posService) {
15344
15353
  this.cdr = cdr;
15345
15354
  this.priceService = priceService;
15355
+ this.posService = posService;
15356
+ this.hasSelectedPos = false;
15346
15357
  }
15358
+ PromotionBadgeComponent.prototype.ngOnInit = function () {
15359
+ var _this = this;
15360
+ this.posValidSub = this.posService.isPosValid().subscribe(function (valid) {
15361
+ _this.hasSelectedPos = valid;
15362
+ _this.cdr.detectChanges();
15363
+ });
15364
+ };
15347
15365
  PromotionBadgeComponent.prototype.ngOnChanges = function () {
15348
15366
  this.cdr.detectChanges();
15349
15367
  };
15368
+ PromotionBadgeComponent.prototype.ngOnDestroy = function () {
15369
+ var _a;
15370
+ (_a = this.posValidSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
15371
+ };
15350
15372
  return PromotionBadgeComponent;
15351
15373
  }());
15352
- PromotionBadgeComponent.ɵfac = function PromotionBadgeComponent_Factory(t) { return new (t || PromotionBadgeComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PriceService)); };
15353
- PromotionBadgeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: PromotionBadgeComponent, selectors: [["ng-miam-promotion-badge"]], inputs: { priceData: "priceData" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 2, vars: 1, consts: function () {
15374
+ PromotionBadgeComponent.ɵfac = function PromotionBadgeComponent_Factory(t) { return new (t || PromotionBadgeComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PriceService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService)); };
15375
+ PromotionBadgeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: PromotionBadgeComponent, selectors: [["ng-miam-promotion-badge"]], inputs: { priceData: "priceData" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: function () {
15354
15376
  var i18n_0;
15355
15377
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
15356
15378
  var MSG_EXTERNAL_2099073297842949197$$LIB__COMPONENTS_PROMOTION_BADGE_PROMOTION_BADGE_COMPONENT_TS__1 = goog.getMsg("de remise imm\u00E9diate");
@@ -15359,16 +15381,13 @@
15359
15381
  else {
15360
15382
  i18n_0 = $localize(templateObject_1$H || (templateObject_1$H = __makeTemplateObject([":\u241Fde07fe635ab87dfb62bd5898b01cfef95abf5356\u241F2099073297842949197:de remise imm\u00E9diate"], [":\u241Fde07fe635ab87dfb62bd5898b01cfef95abf5356\u241F2099073297842949197:de remise imm\u00E9diate"])));
15361
15383
  }
15362
- return [[1, "miam-product-card__promotion__container"], ["class", "miam-ds-badge miam-product-card__promotion", 4, "ngIf"], [1, "miam-ds-badge", "miam-product-card__promotion"], [1, "miam-product-card__promotion-value", "miam-ds-text", "size-s", "weight-l"], [1, "miam-product-card__promotion-text", "miam-ds-text", "size-s", "weight-l"], i18n_0];
15384
+ return [["class", "miam-product-card__promotion__container", 4, "ngIf"], [1, "miam-product-card__promotion__container"], [1, "miam-ds-badge", "miam-product-card__promotion"], [1, "miam-product-card__promotion-value", "miam-ds-text", "size-s", "weight-l"], [1, "miam-product-card__promotion-text", "miam-ds-text", "size-s", "weight-l"], i18n_0];
15363
15385
  }, template: function PromotionBadgeComponent_Template(rf, ctx) {
15364
15386
  if (rf & 1) {
15365
- i0__namespace.ɵɵelementStart(0, "div", 0);
15366
- i0__namespace.ɵɵtemplate(1, PromotionBadgeComponent_div_1_Template, 5, 2, "div", 1);
15367
- i0__namespace.ɵɵelementEnd();
15387
+ i0__namespace.ɵɵtemplate(0, PromotionBadgeComponent_div_0_Template, 6, 2, "div", 0);
15368
15388
  }
15369
15389
  if (rf & 2) {
15370
- i0__namespace.ɵɵadvance(1);
15371
- i0__namespace.ɵɵproperty("ngIf", (ctx.priceData == null ? null : ctx.priceData.discountAmount) > 0);
15390
+ i0__namespace.ɵɵproperty("ngIf", ctx.hasSelectedPos && (ctx.priceData == null ? null : ctx.priceData.discountAmount) > 0);
15372
15391
  }
15373
15392
  }, directives: [i1__namespace.NgIf], styles: [".miam-product-card__promotion__container{width:auto;height:24px;flex-shrink:0}.miam-product-card__promotion__container .miam-product-card__promotion{display:flex;align-items:center;justify-content:center;background:#ffe7e0;color:#e02d2d}.miam-product-card__promotion__container .miam-product-card__promotion>:not(:last-child){margin-right:4px}"], encapsulation: 2, changeDetection: 0 });
15374
15393
  (function () {
@@ -15381,7 +15400,7 @@
15381
15400
  encapsulation: i0.ViewEncapsulation.None,
15382
15401
  changeDetection: i0.ChangeDetectionStrategy.OnPush
15383
15402
  }]
15384
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PriceService }]; }, { priceData: [{
15403
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PriceService }, { type: PointOfSalesService }]; }, { priceData: [{
15385
15404
  type: i0.Input
15386
15405
  }] });
15387
15406
  })();
@@ -15946,7 +15965,7 @@
15946
15965
  i18n_12 = MSG_EXTERNAL_7389019358817586225$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS___13;
15947
15966
  }
15948
15967
  else {
15949
- i18n_12 = $localize(templateObject_7$c || (templateObject_7$c = __makeTemplateObject([":\u241Fb4469d81103a2a9875dcf6e019a952b9bca3c117\u241F7389019358817586225:Calcul\u00E9 pour "], [":\u241Fb4469d81103a2a9875dcf6e019a952b9bca3c117\u241F7389019358817586225:Calcul\u00E9 pour "])));
15968
+ i18n_12 = $localize(templateObject_7$d || (templateObject_7$d = __makeTemplateObject([":\u241Fb4469d81103a2a9875dcf6e019a952b9bca3c117\u241F7389019358817586225:Calcul\u00E9 pour "], [":\u241Fb4469d81103a2a9875dcf6e019a952b9bca3c117\u241F7389019358817586225:Calcul\u00E9 pour "])));
15950
15969
  }
15951
15970
  var i18n_14;
15952
15971
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -15979,7 +15998,7 @@
15979
15998
  type: i0.Input
15980
15999
  }] });
15981
16000
  })();
15982
- var templateObject_1$G, templateObject_2$w, templateObject_3$o, templateObject_4$m, templateObject_5$h, templateObject_6$d, templateObject_7$c, templateObject_8$9;
16001
+ var templateObject_1$G, templateObject_2$w, templateObject_3$o, templateObject_4$m, templateObject_5$h, templateObject_6$d, templateObject_7$d, templateObject_8$9;
15983
16002
 
15984
16003
  function ProductsPickerComponent_ng_container_3_span_3_Template(rf, ctx) {
15985
16004
  if (rf & 1) {
@@ -16302,7 +16321,7 @@
16302
16321
  i18n_12 = MSG_EXTERNAL_2791054456946858131$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS__13;
16303
16322
  }
16304
16323
  else {
16305
- i18n_12 = $localize(templateObject_7$b || (templateObject_7$b = __makeTemplateObject([":\u241Ff363139a8ec757d4ac80573845002c3e462c4bca\u241F2791054456946858131:L'abus d'alcool est dangereux pour la sant\u00E9. A consommer avec mod\u00E9ration. Vente interdite aux mineurs."], [":\u241Ff363139a8ec757d4ac80573845002c3e462c4bca\u241F2791054456946858131:L'abus d'alcool est dangereux pour la sant\u00E9. A consommer avec mod\u00E9ration. Vente interdite aux mineurs."])));
16324
+ i18n_12 = $localize(templateObject_7$c || (templateObject_7$c = __makeTemplateObject([":\u241Ff363139a8ec757d4ac80573845002c3e462c4bca\u241F2791054456946858131:L'abus d'alcool est dangereux pour la sant\u00E9. A consommer avec mod\u00E9ration. Vente interdite aux mineurs."], [":\u241Ff363139a8ec757d4ac80573845002c3e462c4bca\u241F2791054456946858131:L'abus d'alcool est dangereux pour la sant\u00E9. A consommer avec mod\u00E9ration. Vente interdite aux mineurs."])));
16306
16325
  }
16307
16326
  return [[1, "miam-products-picker__container"], [1, "miam-products-picker__header"], [1, "miam-products-picker__header-text", "miam-ds-text", "weight-xxl"], [4, "ngIf"], ["class", "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "debounceTime", "valueChange", 4, "ngIf"], ["class", "miam-products-picker__list", 4, "ngIf"], [1, "miam-products-picker__secondary-list"], [1, "miam-products-picker__more"], ["class", "miam-products-picker__more-anchor", 3, "href", "click", 4, "ngIf", "ngIfElse"], ["noAnchor", ""], ["class", "miam-products-picker__legal-notices", 4, "ngIf"], [3, "numberUnavailable", "clicked", 4, "ngIf"], i18n_0, i18n_2, [3, "numberUnavailable", "clicked"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "debounceTime", "valueChange"], [1, "miam-products-picker__list"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "miam-products-picker__items", 3, "id", "product", "originTrace", 4, "ngIf"], [1, "miam-products-picker__items", 3, "id", "product", "originTrace"], [1, "miam-products-picker__often-ignored-list", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-ds-text", "weight-xxl"], i18n_4, ["class", "miam-products-picker__items", 3, "id", "product", "originTrace", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-products-picker__more-anchor", 3, "href", "click"], [1, "miam-products-picker__go-to-catalog-button", "miam-ds-button", "secondary"], i18n_6, [1, "miam-products-picker__close-modal-button", "miam-ds-button", "secondary", 3, "click"], i18n_8, [1, "miam-products-picker__legal-notices"], [1, "miam-ds-text", "weight-xxl", "miam-products-picker__legal-notices-header"], i18n_10, [1, "miam-products-picker__legal-notices-content"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-legal-notices.svg", "alt", "", "aria-hidden", "true"], i18n_12];
16308
16327
  }, template: function ProductsPickerComponent_Template(rf, ctx) {
@@ -16362,7 +16381,7 @@
16362
16381
  type: i0.Output
16363
16382
  }] });
16364
16383
  })();
16365
- var templateObject_1$F, templateObject_2$v, templateObject_3$n, templateObject_4$l, templateObject_5$g, templateObject_6$c, templateObject_7$b;
16384
+ var templateObject_1$F, templateObject_2$v, templateObject_3$n, templateObject_4$l, templateObject_5$g, templateObject_6$c, templateObject_7$c;
16366
16385
 
16367
16386
  function NoPosSelectedComponent_ng_container_1_Template(rf, ctx) {
16368
16387
  if (rf & 1) {
@@ -16952,7 +16971,7 @@
16952
16971
  i0__namespace.ɵɵelement(0, "ng-miam-loader");
16953
16972
  }
16954
16973
  }
16955
- var _c10$2 = function (a0) { return { loading: a0 }; };
16974
+ var _c10$1 = function (a0) { return { loading: a0 }; };
16956
16975
  function BasketPreviewDisabledComponent_div_10_div_1_button_4_Template(rf, ctx) {
16957
16976
  if (rf & 1) {
16958
16977
  var _r12_1 = i0__namespace.ɵɵgetCurrentView();
@@ -16967,7 +16986,7 @@
16967
16986
  if (rf & 2) {
16968
16987
  var entry_r5 = i0__namespace.ɵɵnextContext().$implicit;
16969
16988
  var ctx_r6 = i0__namespace.ɵɵnextContext(2);
16970
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c10$2, ctx_r6.loading[entry_r5.id]));
16989
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c10$1, ctx_r6.loading[entry_r5.id]));
16971
16990
  i0__namespace.ɵɵadvance(1);
16972
16991
  i0__namespace.ɵɵproperty("ngIf", !ctx_r6.loading[entry_r5.id]);
16973
16992
  i0__namespace.ɵɵadvance(2);
@@ -17252,7 +17271,7 @@
17252
17271
  i0__namespace.ɵɵelement(0, "div", 34);
17253
17272
  }
17254
17273
  }
17255
- var _c10$1 = function (a0) { return { "miam-basket-preview-line__left__big": a0 }; };
17274
+ var _c10 = function (a0) { return { "miam-basket-preview-line__left__big": a0 }; };
17256
17275
  var _c11$1 = function (a0) { return { "disabled": a0 }; };
17257
17276
  function BasketPreviewLineComponent_ng_container_0_Template(rf, ctx) {
17258
17277
  if (rf & 1) {
@@ -17310,7 +17329,7 @@
17310
17329
  i0__namespace.ɵɵadvance(1);
17311
17330
  i0__namespace.ɵɵpropertyInterpolate("id", ctx_r0.line.id);
17312
17331
  i0__namespace.ɵɵadvance(1);
17313
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(17, _c10$1, ctx_r0.contextService.guestsInputOnMyMeals));
17332
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(17, _c10, ctx_r0.contextService.guestsInputOnMyMeals));
17314
17333
  i0__namespace.ɵɵadvance(2);
17315
17334
  i0__namespace.ɵɵproperty("alt", ctx_r0.line.title || (ctx_r0.line.isRecipe ? "Image de recette" : "Image de produit"))("src", ctx_r0.line.picture, i0__namespace.ɵɵsanitizeUrl);
17316
17335
  i0__namespace.ɵɵadvance(1);
@@ -17349,7 +17368,7 @@
17349
17368
  i0__namespace.ɵɵelement(0, "div", 34);
17350
17369
  }
17351
17370
  }
17352
- var _c12 = function (a0, a1) { return { "disabled": a0, "loading": a1 }; };
17371
+ var _c12$1 = function (a0, a1) { return { "disabled": a0, "loading": a1 }; };
17353
17372
  function BasketPreviewLineComponent_ng_template_1_button_3_Template(rf, ctx) {
17354
17373
  if (rf & 1) {
17355
17374
  var _r38_1 = i0__namespace.ɵɵgetCurrentView();
@@ -17362,7 +17381,7 @@
17362
17381
  if (rf & 2) {
17363
17382
  var _r35 = i0__namespace.ɵɵreference(3);
17364
17383
  var ctx_r19 = i0__namespace.ɵɵnextContext(2);
17365
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(3, _c12, ctx_r19.disableRemove, ctx_r19.removing));
17384
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(3, _c12$1, ctx_r19.disableRemove, ctx_r19.removing));
17366
17385
  i0__namespace.ɵɵadvance(1);
17367
17386
  i0__namespace.ɵɵproperty("ngIf", !ctx_r19.removing)("ngIfElse", _r35);
17368
17387
  }
@@ -18160,7 +18179,7 @@
18160
18179
  i18n_15 = MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___16;
18161
18180
  }
18162
18181
  else {
18163
- i18n_15 = $localize(templateObject_7$a || (templateObject_7$a = __makeTemplateObject([":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "], [":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "])));
18182
+ i18n_15 = $localize(templateObject_7$b || (templateObject_7$b = __makeTemplateObject([":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "], [":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "])));
18164
18183
  }
18165
18184
  var i18n_17;
18166
18185
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -18275,7 +18294,7 @@
18275
18294
  type: i0.Output
18276
18295
  }] });
18277
18296
  })();
18278
- var templateObject_1$A, templateObject_2$r, templateObject_3$k, templateObject_4$i, templateObject_5$d, templateObject_6$b, templateObject_7$a, templateObject_8$8, templateObject_9$6, templateObject_10$5, templateObject_11$5, templateObject_12$2, templateObject_13$1, templateObject_14, templateObject_15;
18297
+ var templateObject_1$A, templateObject_2$r, templateObject_3$k, templateObject_4$i, templateObject_5$d, templateObject_6$b, templateObject_7$b, templateObject_8$8, templateObject_9$6, templateObject_10$5, templateObject_11$5, templateObject_12$2, templateObject_13$1, templateObject_14, templateObject_15;
18279
18298
 
18280
18299
  function BasketPreviewProductComponent_div_0_div_19_Template(rf, ctx) {
18281
18300
  if (rf & 1) {
@@ -19212,7 +19231,7 @@
19212
19231
  i18n_12 = MSG_EXTERNAL_6492937435856655320$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS_____13;
19213
19232
  }
19214
19233
  else {
19215
- i18n_12 = $localize(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject([":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"], [":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"])));
19234
+ i18n_12 = $localize(templateObject_7$a || (templateObject_7$a = __makeTemplateObject([":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"], [":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"])));
19216
19235
  }
19217
19236
  var i18n_15;
19218
19237
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -19357,7 +19376,7 @@
19357
19376
  args: ['@slide']
19358
19377
  }] });
19359
19378
  })();
19360
- var templateObject_1$y, templateObject_2$q, templateObject_3$j, templateObject_4$h, templateObject_5$c, templateObject_6$a, templateObject_7$9, templateObject_8$7, templateObject_9$5, templateObject_10$4, templateObject_11$4;
19379
+ var templateObject_1$y, templateObject_2$q, templateObject_3$j, templateObject_4$h, templateObject_5$c, templateObject_6$a, templateObject_7$a, templateObject_8$7, templateObject_9$5, templateObject_10$4, templateObject_11$4;
19361
19380
 
19362
19381
  function BasketPreviewBlockComponent_div_2_ng_container_1_div_2_Template(rf, ctx) {
19363
19382
  if (rf & 1) {
@@ -19936,7 +19955,7 @@
19936
19955
  i18n_13 = MSG_EXTERNAL_4182983336835891106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS__14;
19937
19956
  }
19938
19957
  else {
19939
- i18n_13 = $localize(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject([":\u241Fdf6602bf298f29976aa1fc43e12e25e9a677a51d\u241F4182983336835891106:D\u00E9sol\u00E9, ce magasin ne permet pas de s\u00E9lectionner des repas."], [":\u241Fdf6602bf298f29976aa1fc43e12e25e9a677a51d\u241F4182983336835891106:D\u00E9sol\u00E9, ce magasin ne permet pas de s\u00E9lectionner des repas."])));
19958
+ i18n_13 = $localize(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject([":\u241Fdf6602bf298f29976aa1fc43e12e25e9a677a51d\u241F4182983336835891106:D\u00E9sol\u00E9, ce magasin ne permet pas de s\u00E9lectionner des repas."], [":\u241Fdf6602bf298f29976aa1fc43e12e25e9a677a51d\u241F4182983336835891106:D\u00E9sol\u00E9, ce magasin ne permet pas de s\u00E9lectionner des repas."])));
19940
19959
  }
19941
19960
  var i18n_15;
19942
19961
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -20005,7 +20024,7 @@
20005
20024
  args: [BasketPreviewProductComponent]
20006
20025
  }] });
20007
20026
  })();
20008
- var templateObject_1$x, templateObject_2$p, templateObject_3$i, templateObject_4$g, templateObject_5$b, templateObject_6$9, templateObject_7$8, templateObject_8$6;
20027
+ var templateObject_1$x, templateObject_2$p, templateObject_3$i, templateObject_4$g, templateObject_5$b, templateObject_6$9, templateObject_7$9, templateObject_8$6;
20009
20028
 
20010
20029
  var BasketPreviewModule = /** @class */ (function () {
20011
20030
  // Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
@@ -20198,7 +20217,7 @@
20198
20217
  i18n_12 = MSG_EXTERNAL_4869108346013323377$$LIB__WEB_COMPONENTS_BASKET_TRANSFER_BASKET_TRANSFER_MODAL_BASKET_TRANSFER_MODAL_COMPONENT_TS_13;
20199
20218
  }
20200
20219
  else {
20201
- i18n_12 = $localize(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject([":\u241F3fabb86327f68f35a0dd322581980d71eab9664f\u241F4869108346013323377:Votre panier est toujours en cours de transfert vers"], [":\u241F3fabb86327f68f35a0dd322581980d71eab9664f\u241F4869108346013323377:Votre panier est toujours en cours de transfert vers"])));
20220
+ i18n_12 = $localize(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject([":\u241F3fabb86327f68f35a0dd322581980d71eab9664f\u241F4869108346013323377:Votre panier est toujours en cours de transfert vers"], [":\u241F3fabb86327f68f35a0dd322581980d71eab9664f\u241F4869108346013323377:Votre panier est toujours en cours de transfert vers"])));
20202
20221
  }
20203
20222
  var i18n_14;
20204
20223
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -20263,7 +20282,7 @@
20263
20282
  }]
20264
20283
  }], function () { return [{ type: BasketTransferService }, { type: BasketsService }, { type: PointOfSalesService }, { type: i0__namespace.ChangeDetectorRef }]; }, null);
20265
20284
  })();
20266
- var templateObject_1$w, templateObject_2$o, templateObject_3$h, templateObject_4$f, templateObject_5$a, templateObject_6$8, templateObject_7$7, templateObject_8$5;
20285
+ var templateObject_1$w, templateObject_2$o, templateObject_3$h, templateObject_4$f, templateObject_5$a, templateObject_6$8, templateObject_7$8, templateObject_8$5;
20267
20286
 
20268
20287
  function BasketTransferLoaderComponent_ng_container_0_Template(rf, ctx) {
20269
20288
  if (rf & 1) {
@@ -20865,7 +20884,7 @@
20865
20884
  i18n_12 = MSG_EXTERNAL_8748233983301350015$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_13;
20866
20885
  }
20867
20886
  else {
20868
- i18n_12 = $localize(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject([":\u241Fa9903fc890d9d8680ad01355e929d4ba7e54ef15\u241F8748233983301350015:Souhaitez-vous vraiment abandonner votre liste ?"], [":\u241Fa9903fc890d9d8680ad01355e929d4ba7e54ef15\u241F8748233983301350015:Souhaitez-vous vraiment abandonner votre liste ?"])));
20887
+ i18n_12 = $localize(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject([":\u241Fa9903fc890d9d8680ad01355e929d4ba7e54ef15\u241F8748233983301350015:Souhaitez-vous vraiment abandonner votre liste ?"], [":\u241Fa9903fc890d9d8680ad01355e929d4ba7e54ef15\u241F8748233983301350015:Souhaitez-vous vraiment abandonner votre liste ?"])));
20869
20888
  }
20870
20889
  return [[1, "miam-list-scan"], [3, "isSchoolList"], ["title", i18n_0, "cancelButtonText", i18n_2, "confirmButtonText", i18n_4, "modalStyle", "right", 1, "miam-list-scan__result", 3, "noHeaderMode", "display", "cancel", "close", "confirm"], [1, "miam-list-scan__content", 3, "closed", "cancelled"], ["title", i18n_6, "cancelButtonText", i18n_8, "confirmButtonText", i18n_10, 1, "miam-list-scan__confirmation", 3, "display", "noHeaderMode", "confirmButtonDisabled", "confirmButtonIsLoading", "cancelButtonDisabled", "displayChange", "close", "cancel", "confirm"], [1, "miam-ds-text", "size-m", "weight-m"], i18n_12];
20871
20890
  }, template: function ListScanComponent_Template(rf, ctx) {
@@ -20913,7 +20932,7 @@
20913
20932
  type: i0.Output
20914
20933
  }] });
20915
20934
  })();
20916
- var templateObject_1$r, templateObject_2$k, templateObject_3$f, templateObject_4$d, templateObject_5$9, templateObject_6$7, templateObject_7$6;
20935
+ var templateObject_1$r, templateObject_2$k, templateObject_3$f, templateObject_4$d, templateObject_5$9, templateObject_6$7, templateObject_7$7;
20917
20936
 
20918
20937
  var ListScanModule = /** @class */ (function () {
20919
20938
  // Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
@@ -22484,42 +22503,64 @@
22484
22503
  function CatalogListComponent_div_1_ng_template_3_div_0_Template(rf, ctx) {
22485
22504
  if (rf & 1) {
22486
22505
  i0__namespace.ɵɵelementStart(0, "div");
22487
- i0__namespace.ɵɵelementStart(1, "div", 17);
22506
+ i0__namespace.ɵɵelementStart(1, "div", 18);
22488
22507
  i0__namespace.ɵɵelementStart(2, "span");
22489
- i0__namespace.ɵɵi18n(3, 18);
22508
+ i0__namespace.ɵɵi18n(3, 19);
22490
22509
  i0__namespace.ɵɵelementEnd();
22491
22510
  i0__namespace.ɵɵelementEnd();
22492
22511
  i0__namespace.ɵɵelementEnd();
22493
22512
  }
22494
22513
  }
22495
- function CatalogListComponent_div_1_ng_template_3_Template(rf, ctx) {
22514
+ function CatalogListComponent_div_1_ng_template_3_ng_template_1_div_0_Template(rf, ctx) {
22496
22515
  if (rf & 1) {
22497
- i0__namespace.ɵɵtemplate(0, CatalogListComponent_div_1_ng_template_3_div_0_Template, 4, 0, "div", 8);
22516
+ i0__namespace.ɵɵelementStart(0, "div");
22517
+ i0__namespace.ɵɵelementStart(1, "div", 20);
22518
+ i0__namespace.ɵɵelementStart(2, "span");
22519
+ i0__namespace.ɵɵi18n(3, 21);
22520
+ i0__namespace.ɵɵelementEnd();
22521
+ i0__namespace.ɵɵelementEnd();
22522
+ i0__namespace.ɵɵelementEnd();
22523
+ }
22524
+ }
22525
+ function CatalogListComponent_div_1_ng_template_3_ng_template_1_Template(rf, ctx) {
22526
+ if (rf & 1) {
22527
+ i0__namespace.ɵɵtemplate(0, CatalogListComponent_div_1_ng_template_3_ng_template_1_div_0_Template, 4, 0, "div", 8);
22498
22528
  i0__namespace.ɵɵpipe(1, "async");
22499
22529
  }
22500
22530
  if (rf & 2) {
22501
- i0__namespace.ɵɵnextContext();
22531
+ i0__namespace.ɵɵnextContext(2);
22502
22532
  var _r8 = i0__namespace.ɵɵreference(6);
22503
- var ctx_r7 = i0__namespace.ɵɵnextContext();
22504
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 2, ctx_r7.userService.isLogged$))("ngIfElse", _r8);
22533
+ var ctx_r13 = i0__namespace.ɵɵnextContext();
22534
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 2, ctx_r13.userService.isLogged$))("ngIfElse", _r8);
22535
+ }
22536
+ }
22537
+ function CatalogListComponent_div_1_ng_template_3_Template(rf, ctx) {
22538
+ if (rf & 1) {
22539
+ i0__namespace.ɵɵtemplate(0, CatalogListComponent_div_1_ng_template_3_div_0_Template, 4, 0, "div", 8);
22540
+ i0__namespace.ɵɵtemplate(1, CatalogListComponent_div_1_ng_template_3_ng_template_1_Template, 2, 4, "ng-template", null, 17, i0__namespace.ɵɵtemplateRefExtractor);
22541
+ }
22542
+ if (rf & 2) {
22543
+ var _r12 = i0__namespace.ɵɵreference(2);
22544
+ var ctx_r7 = i0__namespace.ɵɵnextContext(2);
22545
+ i0__namespace.ɵɵproperty("ngIf", ctx_r7.isPromotionsPage())("ngIfElse", _r12);
22505
22546
  }
22506
22547
  }
22507
22548
  function CatalogListComponent_div_1_ng_template_5_Template(rf, ctx) {
22508
22549
  if (rf & 1) {
22509
- i0__namespace.ɵɵelementStart(0, "div", 19);
22550
+ i0__namespace.ɵɵelementStart(0, "div", 22);
22510
22551
  i0__namespace.ɵɵelementStart(1, "span");
22511
- i0__namespace.ɵɵi18n(2, 20);
22552
+ i0__namespace.ɵɵi18n(2, 23);
22512
22553
  i0__namespace.ɵɵelementEnd();
22513
22554
  i0__namespace.ɵɵelementEnd();
22514
22555
  }
22515
22556
  }
22516
- var _c10 = function (a0, a1) { return { "icon-filtering": a0, "icon-not-filtering": a1 }; };
22557
+ var _c12 = function (a0, a1) { return { "icon-filtering": a0, "icon-not-filtering": a1 }; };
22517
22558
  function CatalogListComponent_div_1_Template(rf, ctx) {
22518
22559
  if (rf & 1) {
22519
22560
  i0__namespace.ɵɵelementStart(0, "div", 6);
22520
22561
  i0__namespace.ɵɵelement(1, "ng-miam-icon", 7);
22521
22562
  i0__namespace.ɵɵtemplate(2, CatalogListComponent_div_1_div_2_Template, 8, 1, "div", 8);
22522
- i0__namespace.ɵɵtemplate(3, CatalogListComponent_div_1_ng_template_3_Template, 2, 4, "ng-template", null, 9, i0__namespace.ɵɵtemplateRefExtractor);
22563
+ i0__namespace.ɵɵtemplate(3, CatalogListComponent_div_1_ng_template_3_Template, 3, 2, "ng-template", null, 9, i0__namespace.ɵɵtemplateRefExtractor);
22523
22564
  i0__namespace.ɵɵtemplate(5, CatalogListComponent_div_1_ng_template_5_Template, 3, 0, "ng-template", null, 10, i0__namespace.ɵɵtemplateRefExtractor);
22524
22565
  i0__namespace.ɵɵelementEnd();
22525
22566
  }
@@ -22527,80 +22568,80 @@
22527
22568
  var _r6 = i0__namespace.ɵɵreference(4);
22528
22569
  var ctx_r0 = i0__namespace.ɵɵnextContext();
22529
22570
  i0__namespace.ɵɵadvance(1);
22530
- i0__namespace.ɵɵproperty("width", 279)("height", 243)("iconName", ctx_r0.icon.NoRecipeFound)("ngClass", i0__namespace.ɵɵpureFunction2(6, _c10, ctx_r0.isFiltering(), !ctx_r0.isFiltering()));
22571
+ i0__namespace.ɵɵproperty("width", 279)("height", 243)("iconName", ctx_r0.icon.NoRecipeFound)("ngClass", i0__namespace.ɵɵpureFunction2(6, _c12, ctx_r0.isFiltering(), !ctx_r0.isFiltering()));
22531
22572
  i0__namespace.ɵɵadvance(1);
22532
22573
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.isFiltering())("ngIfElse", _r6);
22533
22574
  }
22534
22575
  }
22535
22576
  function CatalogListComponent_div_3_Template(rf, ctx) {
22536
22577
  if (rf & 1) {
22537
- i0__namespace.ɵɵelementStart(0, "div", 21);
22578
+ i0__namespace.ɵɵelementStart(0, "div", 24);
22538
22579
  i0__namespace.ɵɵelement(1, "ng-miam-loader");
22539
22580
  i0__namespace.ɵɵelementStart(2, "div");
22540
- i0__namespace.ɵɵi18n(3, 22);
22581
+ i0__namespace.ɵɵi18n(3, 25);
22541
22582
  i0__namespace.ɵɵelementEnd();
22542
22583
  i0__namespace.ɵɵelementEnd();
22543
22584
  }
22544
22585
  }
22545
22586
  function CatalogListComponent_ng_template_6_Template(rf, ctx) {
22546
22587
  if (rf & 1) {
22547
- var _r14_1 = i0__namespace.ɵɵgetCurrentView();
22548
- i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card", 23);
22549
- i0__namespace.ɵɵlistener("addToMealsPlanner", function CatalogListComponent_ng_template_6_Template_ng_miam_recipe_card_addToMealsPlanner_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(); return ctx_r13.addToMealsPlanner.emit($event); });
22588
+ var _r17_1 = i0__namespace.ɵɵgetCurrentView();
22589
+ i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card", 26);
22590
+ i0__namespace.ɵɵlistener("addToMealsPlanner", function CatalogListComponent_ng_template_6_Template_ng_miam_recipe_card_addToMealsPlanner_0_listener($event) { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.addToMealsPlanner.emit($event); });
22550
22591
  i0__namespace.ɵɵelementEnd();
22551
22592
  }
22552
22593
  if (rf & 2) {
22553
- var recipe_r12 = ctx.recipe;
22594
+ var recipe_r15 = ctx.recipe;
22554
22595
  var ctx_r3 = i0__namespace.ɵɵnextContext();
22555
- i0__namespace.ɵɵproperty("recipe", recipe_r12)("originTrace", ctx_r3.eventTrace)("displayPricing", ctx_r3.displayPricing)("previewAllowed", !ctx_r3.addRecipeMode)("addRecipeMode", ctx_r3.addRecipeMode)("displayGuests", ctx_r3.displayGuests)("displayVariant", ctx_r3.displayRecipeVariant)("helpButtonAllowed", ctx_r3.helpButtonAllowed);
22596
+ i0__namespace.ɵɵproperty("recipe", recipe_r15)("originTrace", ctx_r3.eventTrace)("displayPricing", ctx_r3.displayPricing)("previewAllowed", !ctx_r3.addRecipeMode)("addRecipeMode", ctx_r3.addRecipeMode)("displayGuests", ctx_r3.displayGuests)("displayVariant", ctx_r3.displayRecipeVariant)("helpButtonAllowed", ctx_r3.helpButtonAllowed);
22556
22597
  }
22557
22598
  }
22558
- var _c13 = function (a0) { return { recipe: a0 }; };
22599
+ var _c15 = function (a0) { return { recipe: a0 }; };
22559
22600
  function CatalogListComponent_ng_container_8_ng_container_1_Template(rf, ctx) {
22560
22601
  if (rf & 1) {
22561
- var _r20_1 = i0__namespace.ɵɵgetCurrentView();
22602
+ var _r23_1 = i0__namespace.ɵɵgetCurrentView();
22562
22603
  i0__namespace.ɵɵelementContainerStart(0);
22563
- i0__namespace.ɵɵelementStart(1, "div", 25);
22564
- i0__namespace.ɵɵlistener("loadMore", function CatalogListComponent_ng_container_8_ng_container_1_Template_div_loadMore_1_listener() { i0__namespace.ɵɵrestoreView(_r20_1); var ctx_r19 = i0__namespace.ɵɵnextContext(2); return ctx_r19.autoloadContentIfNecessary(); });
22604
+ i0__namespace.ɵɵelementStart(1, "div", 28);
22605
+ i0__namespace.ɵɵlistener("loadMore", function CatalogListComponent_ng_container_8_ng_container_1_Template_div_loadMore_1_listener() { i0__namespace.ɵɵrestoreView(_r23_1); var ctx_r22 = i0__namespace.ɵɵnextContext(2); return ctx_r22.autoloadContentIfNecessary(); });
22565
22606
  i0__namespace.ɵɵpipe(2, "async");
22566
- i0__namespace.ɵɵelementContainer(3, 26);
22607
+ i0__namespace.ɵɵelementContainer(3, 29);
22567
22608
  i0__namespace.ɵɵelementEnd();
22568
22609
  i0__namespace.ɵɵelementContainerEnd();
22569
22610
  }
22570
22611
  if (rf & 2) {
22571
- var recipe_r15 = i0__namespace.ɵɵnextContext().$implicit;
22572
- var ctx_r17 = i0__namespace.ɵɵnextContext();
22612
+ var recipe_r18 = i0__namespace.ɵɵnextContext().$implicit;
22613
+ var ctx_r20 = i0__namespace.ɵɵnextContext();
22573
22614
  var _r2 = i0__namespace.ɵɵreference(7);
22574
22615
  i0__namespace.ɵɵadvance(1);
22575
- i0__namespace.ɵɵproperty("isLoading", i0__namespace.ɵɵpipeBind1(2, 3, ctx_r17.loading));
22616
+ i0__namespace.ɵɵproperty("isLoading", i0__namespace.ɵɵpipeBind1(2, 3, ctx_r20.loading));
22576
22617
  i0__namespace.ɵɵadvance(2);
22577
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(5, _c13, recipe_r15));
22618
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(5, _c15, recipe_r18));
22578
22619
  }
22579
22620
  }
22580
22621
  function CatalogListComponent_ng_container_8_ng_container_2_Template(rf, ctx) {
22581
22622
  if (rf & 1) {
22582
- i0__namespace.ɵɵelementContainer(0, 26);
22623
+ i0__namespace.ɵɵelementContainer(0, 29);
22583
22624
  }
22584
22625
  if (rf & 2) {
22585
- var recipe_r15 = i0__namespace.ɵɵnextContext().$implicit;
22626
+ var recipe_r18 = i0__namespace.ɵɵnextContext().$implicit;
22586
22627
  i0__namespace.ɵɵnextContext();
22587
22628
  var _r2 = i0__namespace.ɵɵreference(7);
22588
- i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c13, recipe_r15));
22629
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c15, recipe_r18));
22589
22630
  }
22590
22631
  }
22591
22632
  function CatalogListComponent_ng_container_8_Template(rf, ctx) {
22592
22633
  if (rf & 1) {
22593
22634
  i0__namespace.ɵɵelementContainerStart(0);
22594
22635
  i0__namespace.ɵɵtemplate(1, CatalogListComponent_ng_container_8_ng_container_1_Template, 4, 7, "ng-container", 13);
22595
- i0__namespace.ɵɵtemplate(2, CatalogListComponent_ng_container_8_ng_container_2_Template, 1, 4, "ng-container", 24);
22636
+ i0__namespace.ɵɵtemplate(2, CatalogListComponent_ng_container_8_ng_container_2_Template, 1, 4, "ng-container", 27);
22596
22637
  i0__namespace.ɵɵelementContainerEnd();
22597
22638
  }
22598
22639
  if (rf & 2) {
22599
- var isLast_r16 = ctx.last;
22640
+ var isLast_r19 = ctx.last;
22600
22641
  i0__namespace.ɵɵadvance(1);
22601
- i0__namespace.ɵɵproperty("ngIf", isLast_r16);
22642
+ i0__namespace.ɵɵproperty("ngIf", isLast_r19);
22602
22643
  i0__namespace.ɵɵadvance(1);
22603
- i0__namespace.ɵɵproperty("ngIf", !isLast_r16);
22644
+ i0__namespace.ɵɵproperty("ngIf", !isLast_r19);
22604
22645
  }
22605
22646
  }
22606
22647
  var recipeIncludes$2 = ['recipe-provider', 'sponsors', 'tags'];
@@ -22796,6 +22837,10 @@
22796
22837
  !this.isFieldEmpty(this.filters.cost) ||
22797
22838
  !this.isFieldEmpty(this.filters.time);
22798
22839
  };
22840
+ CatalogListComponent.prototype.isPromotionsPage = function () {
22841
+ var _a, _b;
22842
+ return ((_b = (_a = this.filters) === null || _a === void 0 ? void 0 : _a.additionalFilters) === null || _b === void 0 ? void 0 : _b.title) === 'Promos';
22843
+ };
22799
22844
  CatalogListComponent.prototype.trackByFn = function (index, recipe) {
22800
22845
  return recipe.id;
22801
22846
  };
@@ -22863,29 +22908,37 @@
22863
22908
  }
22864
22909
  var i18n_6;
22865
22910
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22866
- var MSG_EXTERNAL_2399216061429613805$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS____7 = goog.getMsg("D\u00E9sol\u00E9, vous n'avez pas encore d'id\u00E9es repas sauvegard\u00E9es");
22867
- i18n_6 = MSG_EXTERNAL_2399216061429613805$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS____7;
22911
+ var MSG_EXTERNAL_5552531898207278682$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS____7 = goog.getMsg("D\u00E9sol\u00E9 nous n'avons pas trouv\u00E9 d'id\u00E9es repas en promotion");
22912
+ i18n_6 = MSG_EXTERNAL_5552531898207278682$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS____7;
22868
22913
  }
22869
22914
  else {
22870
- i18n_6 = $localize(templateObject_4$b || (templateObject_4$b = __makeTemplateObject([":\u241Fdb458c8ad589c2c8f67365423c366fba69c29b72\u241F2399216061429613805:D\u00E9sol\u00E9, vous n'avez pas encore d'id\u00E9es repas sauvegard\u00E9es"], [":\u241Fdb458c8ad589c2c8f67365423c366fba69c29b72\u241F2399216061429613805:D\u00E9sol\u00E9, vous n'avez pas encore d'id\u00E9es repas sauvegard\u00E9es"])));
22915
+ i18n_6 = $localize(templateObject_4$b || (templateObject_4$b = __makeTemplateObject([":\u241F5857dddffb2b695e1d3d9d640ec3a2f784eacee4\u241F5552531898207278682:D\u00E9sol\u00E9 nous n'avons pas trouv\u00E9 d'id\u00E9es repas en promotion"], [":\u241F5857dddffb2b695e1d3d9d640ec3a2f784eacee4\u241F5552531898207278682:D\u00E9sol\u00E9 nous n'avons pas trouv\u00E9 d'id\u00E9es repas en promotion"])));
22871
22916
  }
22872
22917
  var i18n_8;
22873
22918
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22874
- var MSG_EXTERNAL_4851375363781203983$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___9 = goog.getMsg("D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page.");
22875
- i18n_8 = MSG_EXTERNAL_4851375363781203983$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___9;
22919
+ var MSG_EXTERNAL_2399216061429613805$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS_____9 = goog.getMsg("D\u00E9sol\u00E9, vous n'avez pas encore d'id\u00E9es repas sauvegard\u00E9es");
22920
+ i18n_8 = MSG_EXTERNAL_2399216061429613805$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS_____9;
22876
22921
  }
22877
22922
  else {
22878
- i18n_8 = $localize(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject([":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."], [":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."])));
22923
+ i18n_8 = $localize(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject([":\u241Fdb458c8ad589c2c8f67365423c366fba69c29b72\u241F2399216061429613805:D\u00E9sol\u00E9, vous n'avez pas encore d'id\u00E9es repas sauvegard\u00E9es"], [":\u241Fdb458c8ad589c2c8f67365423c366fba69c29b72\u241F2399216061429613805:D\u00E9sol\u00E9, vous n'avez pas encore d'id\u00E9es repas sauvegard\u00E9es"])));
22879
22924
  }
22880
- var i18n_11;
22925
+ var i18n_10;
22926
+ if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22927
+ var MSG_EXTERNAL_4851375363781203983$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___11 = goog.getMsg("D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page.");
22928
+ i18n_10 = MSG_EXTERNAL_4851375363781203983$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___11;
22929
+ }
22930
+ else {
22931
+ i18n_10 = $localize(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject([":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."], [":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."])));
22932
+ }
22933
+ var i18n_13;
22881
22934
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
22882
- var MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__12 = goog.getMsg(" Chargement des r\u00E9sultats... ");
22883
- i18n_11 = MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__12;
22935
+ var MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__14 = goog.getMsg(" Chargement des r\u00E9sultats... ");
22936
+ i18n_13 = MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__14;
22884
22937
  }
22885
22938
  else {
22886
- i18n_11 = $localize(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
22939
+ i18n_13 = $localize(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
22887
22940
  }
22888
- return [[1, "miam-catalog-list"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["role", "list", 1, "miam-catalog-list__cards"], ["recipeCard", ""], [4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName", "ngClass"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "filtering"], i18n_0, [4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, 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__loader"], i18n_11, ["role", "listitem", 3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "displayVariant", "helpButtonAllowed", "addToMealsPlanner"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["ngMiamLoadOnScroll", "", "marginRoot", "600px", 3, "isLoading", "loadMore"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]];
22941
+ return [[1, "miam-catalog-list"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["role", "list", 1, "miam-catalog-list__cards"], ["recipeCard", ""], [4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName", "ngClass"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "filtering"], i18n_0, [4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, i18n_4, ["notFilteringAndNotPromotions", ""], [1, "miam-catalog-list__notFound__title1", "promotions"], i18n_6, [1, "miam-catalog-list__notFound__title1", "not-filtering"], i18n_8, [1, "miam-catalog-list__notFound__title1", "not-logged"], i18n_10, [1, "miam-catalog-list__loader"], i18n_13, ["role", "listitem", 3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "displayVariant", "helpButtonAllowed", "addToMealsPlanner"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["ngMiamLoadOnScroll", "", "marginRoot", "600px", 3, "isLoading", "loadMore"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]];
22889
22942
  }, template: function CatalogListComponent_Template(rf, ctx) {
22890
22943
  if (rf & 1) {
22891
22944
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -22949,7 +23002,7 @@
22949
23002
  args: [RecipeCardComponent]
22950
23003
  }] });
22951
23004
  })();
22952
- var templateObject_1$n, templateObject_2$i, templateObject_3$d, templateObject_4$b, templateObject_5$8, templateObject_6$6;
23005
+ var templateObject_1$n, templateObject_2$i, templateObject_3$d, templateObject_4$b, templateObject_5$8, templateObject_6$6, templateObject_7$6;
22953
23006
 
22954
23007
  function MealsPlannerCatalogComponent_div_14_Template(rf, ctx) {
22955
23008
  if (rf & 1) {
@@ -24618,11 +24671,13 @@
24618
24671
  }
24619
24672
  var _c11 = function (a0, a1) { return { "my-space": a0, "expanded": a1 }; };
24620
24673
  var CatalogToolbarComponent = /** @class */ (function () {
24621
- function CatalogToolbarComponent(cdr, preferencesService, context, userService) {
24674
+ function CatalogToolbarComponent(cdr, preferencesService, context, userService, posService, recipesService) {
24622
24675
  this.cdr = cdr;
24623
24676
  this.preferencesService = preferencesService;
24624
24677
  this.context = context;
24625
24678
  this.userService = userService;
24679
+ this.posService = posService;
24680
+ this.recipesService = recipesService;
24626
24681
  this.filterBadgeCount = 0;
24627
24682
  this.reduced = false;
24628
24683
  this.filterButtonPressed = new i0.EventEmitter();
@@ -24635,14 +24690,45 @@
24635
24690
  this.preferencesBadgeCount = 0;
24636
24691
  this.searchExpanded = false;
24637
24692
  this.preferencesActivated = false;
24693
+ this.canShowPromotions = false;
24638
24694
  this.subscriptions = [];
24639
24695
  }
24640
24696
  CatalogToolbarComponent.prototype.ngOnInit = function () {
24641
24697
  var _this = this;
24642
- this.subscriptions.push(this.context.orderHistoryEnabled$.subscribe(function () {
24698
+ this.subscriptions.push(rxjs.combineLatest([
24699
+ this.posService.pos$,
24700
+ this.preferencesService.currentPreferencesNumber
24701
+ ]).pipe(operators.tap(function (_e) {
24702
+ var _f = __read(_e, 2), prefCount = _f[1];
24703
+ _this.preferencesBadgeCount = prefCount;
24704
+ }), operators.map(function (_e) {
24705
+ var _f = __read(_e, 2), pos = _f[0], prefCount = _f[1];
24706
+ var _a, _b, _c, _d;
24707
+ return ({
24708
+ posId: (_a = pos === null || pos === void 0 ? void 0 : pos.id) !== null && _a !== void 0 ? _a : '',
24709
+ posValid: !!(((_d = (_c = (_b = pos === null || pos === void 0 ? void 0 : pos.relationships) === null || _b === void 0 ? void 0 : _b.supplier) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.id) && (pos === null || pos === void 0 ? void 0 : pos.id)),
24710
+ prefCount: prefCount
24711
+ });
24712
+ }), operators.distinctUntilChanged(function (a, b) { return a.posValid === b.posValid && a.posId === b.posId && a.prefCount === b.prefCount; }), operators.switchMap(function (_e) {
24713
+ var posValid = _e.posValid, posId = _e.posId;
24714
+ if (!posValid || !posId) {
24715
+ return rxjs.of(false);
24716
+ }
24717
+ var guests = _this.readStoredGuestsOrDefault();
24718
+ return _this.recipesService.filterCount(new RecipeFilters({
24719
+ additionalFilters: {
24720
+ title: '',
24721
+ filters: {
24722
+ discounted_ingredients_count: 1,
24723
+ point_of_sale_id: posId,
24724
+ guests: String(guests)
24725
+ }
24726
+ }
24727
+ }), guests).pipe(operators.map(function (count) { return count > 0; }), operators.catchError(function () { return rxjs.of(false); }));
24728
+ })).subscribe(function (canShow) {
24729
+ _this.canShowPromotions = canShow;
24643
24730
  _this.cdr.detectChanges();
24644
- }), this.preferencesService.currentPreferencesNumber.subscribe(function (number) {
24645
- _this.preferencesBadgeCount = number;
24731
+ }), this.context.orderHistoryEnabled$.subscribe(function () {
24646
24732
  _this.cdr.detectChanges();
24647
24733
  }), this.userService.preferencesActivated$.subscribe(function (activated) {
24648
24734
  _this.preferencesActivated = activated;
@@ -24712,9 +24798,14 @@
24712
24798
  this.cdr.detectChanges();
24713
24799
  }
24714
24800
  };
24801
+ CatalogToolbarComponent.prototype.readStoredGuestsOrDefault = function () {
24802
+ var raw = localStorage.getItem('_miam/preferences/guests');
24803
+ var n = raw != null ? Number(raw) : NaN;
24804
+ return Number.isFinite(n) && n > 0 ? n : 4;
24805
+ };
24715
24806
  return CatalogToolbarComponent;
24716
24807
  }());
24717
- CatalogToolbarComponent.ɵfac = function CatalogToolbarComponent_Factory(t) { return new (t || CatalogToolbarComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PreferencesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(UserService)); };
24808
+ CatalogToolbarComponent.ɵfac = function CatalogToolbarComponent_Factory(t) { return new (t || CatalogToolbarComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PreferencesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(RecipesService)); };
24718
24809
  CatalogToolbarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CatalogToolbarComponent, selectors: [["ng-miam-catalog-toolbar"]], viewQuery: function CatalogToolbarComponent_Query(rf, ctx) {
24719
24810
  if (rf & 1) {
24720
24811
  i0__namespace.ɵɵviewQuery(_c0$4, 1);
@@ -24797,7 +24888,7 @@
24797
24888
  i0__namespace.ɵɵadvance(3);
24798
24889
  i0__namespace.ɵɵproperty("ngIf", ctx.searchExpanded || ctx.history || ctx.favorites);
24799
24890
  i0__namespace.ɵɵadvance(1);
24800
- i0__namespace.ɵɵproperty("ngIf", ctx.home);
24891
+ i0__namespace.ɵɵproperty("ngIf", ctx.home && ctx.canShowPromotions);
24801
24892
  i0__namespace.ɵɵadvance(1);
24802
24893
  i0__namespace.ɵɵproperty("ngIf", ctx.home);
24803
24894
  i0__namespace.ɵɵadvance(1);
@@ -24816,7 +24907,7 @@
24816
24907
  encapsulation: i0.ViewEncapsulation.None,
24817
24908
  changeDetection: i0.ChangeDetectionStrategy.OnPush
24818
24909
  }]
24819
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PreferencesService }, { type: ContextService }, { type: UserService }]; }, { favorites: [{
24910
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PreferencesService }, { type: ContextService }, { type: UserService }, { type: PointOfSalesService }, { type: RecipesService }]; }, { favorites: [{
24820
24911
  type: i0.Input
24821
24912
  }], history: [{
24822
24913
  type: i0.Input