ng-miam 8.0.5 → 8.0.7

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 (60) hide show
  1. package/bundles/ng-miam.umd.js +996 -720
  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/addon-link/addon-link.component.js +19 -16
  6. package/esm2015/lib/_components/modal/modal.component.js +23 -86
  7. package/esm2015/lib/_components/product-card/product-card.component.js +84 -71
  8. package/esm2015/lib/_components/products-picker/products-picker.component.js +46 -44
  9. package/esm2015/lib/_services/basket-actions.service.js +74 -0
  10. package/esm2015/lib/_services/baskets.service.js +17 -4
  11. package/esm2015/lib/_services/context.service.js +4 -2
  12. package/esm2015/lib/_services/interceptor.service.js +3 -3
  13. package/esm2015/lib/_services/recipe-details.service.js +177 -71
  14. package/esm2015/lib/_services/user.service.js +2 -2
  15. package/esm2015/lib/_types/builded/miam-interface.js +1 -1
  16. package/esm2015/lib/_utils/directives/index.js +2 -1
  17. package/esm2015/lib/_utils/directives/load-on-scroll.directive.js +47 -0
  18. package/esm2015/lib/_utils/utils.module.js +10 -6
  19. package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +180 -152
  20. package/esm2015/lib/_web-components/basket-preview/replace-item/replace-item.component.js +18 -12
  21. package/esm2015/lib/_web-components/meals-planner/meals-planner.component.js +22 -23
  22. package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +98 -82
  23. package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +145 -137
  24. package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +9 -5
  25. package/fesm2015/ng-miam.js +910 -660
  26. package/fesm2015/ng-miam.js.map +1 -1
  27. package/lib/_components/components.module.d.ts +2 -1
  28. package/lib/_components/components.module.d.ts.map +1 -1
  29. package/lib/_components/modal/modal.component.d.ts +7 -14
  30. package/lib/_components/modal/modal.component.d.ts.map +1 -1
  31. package/lib/_components/product-card/product-card.component.d.ts +10 -9
  32. package/lib/_components/product-card/product-card.component.d.ts.map +1 -1
  33. package/lib/_services/basket-actions.service.d.ts +51 -0
  34. package/lib/_services/basket-actions.service.d.ts.map +1 -0
  35. package/lib/_services/baskets.service.d.ts +6 -1
  36. package/lib/_services/baskets.service.d.ts.map +1 -1
  37. package/lib/_services/context.service.d.ts +1 -0
  38. package/lib/_services/context.service.d.ts.map +1 -1
  39. package/lib/_services/recipe-details.service.d.ts +29 -13
  40. package/lib/_services/recipe-details.service.d.ts.map +1 -1
  41. package/lib/_types/builded/miam-interface.d.ts +5 -0
  42. package/lib/_types/builded/miam-interface.d.ts.map +1 -1
  43. package/lib/_utils/directives/index.d.ts +1 -0
  44. package/lib/_utils/directives/index.d.ts.map +1 -1
  45. package/lib/_utils/directives/load-on-scroll.directive.d.ts +18 -0
  46. package/lib/_utils/directives/load-on-scroll.directive.d.ts.map +1 -0
  47. package/lib/_utils/utils.module.d.ts +2 -1
  48. package/lib/_utils/utils.module.d.ts.map +1 -1
  49. package/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.d.ts +2 -1
  50. package/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.d.ts.map +1 -1
  51. package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts +1 -2
  52. package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts.map +1 -1
  53. package/lib/_web-components/meals-planner/meals-planner.component.d.ts +6 -7
  54. package/lib/_web-components/meals-planner/meals-planner.component.d.ts.map +1 -1
  55. package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts +6 -14
  56. package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts.map +1 -1
  57. package/lib/_web-components/recipe-details/recipe-details.component.d.ts +4 -3
  58. package/lib/_web-components/recipe-details/recipe-details.component.d.ts.map +1 -1
  59. package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts.map +1 -1
  60. package/package.json +1 -1
@@ -2390,7 +2390,7 @@
2390
2390
  _this.initRoles();
2391
2391
  return rxjs.forkJoin([
2392
2392
  _this.initProvider(),
2393
- _this.initSupplier()
2393
+ _this.initSupplier(),
2394
2394
  ]);
2395
2395
  }));
2396
2396
  };
@@ -3589,6 +3589,18 @@
3589
3589
  enumerable: false,
3590
3590
  configurable: true
3591
3591
  });
3592
+ Object.defineProperty(BasketsService.prototype, "waitForBasketEntries", {
3593
+ /**
3594
+ * To use when needing to be sure that basket was fetched before doing an action that doesn't need to stay subscribed to basket$
3595
+ * This method is meant to be an equivalent of basket$.value but asynchronous
3596
+ */
3597
+ get: function () {
3598
+ var _this = this;
3599
+ return this._entries$.pipe(operators.skipWhile(function (b) { return !b || !_this.basketInitCalled; }), operators.take(1));
3600
+ },
3601
+ enumerable: false,
3602
+ configurable: true
3603
+ });
3592
3604
  /** ************************************** QUEUE UTILS TO LOCK MORE ACTIONS OR DISPLAY LOADERS ************************************** **/
3593
3605
  // Util method to avoid repeating too much for the next 6 methods
3594
3606
  BasketsService.prototype.subjectContainsRecipeId = function (subject, type, recipeId) {
@@ -3777,11 +3789,18 @@
3777
3789
  * Fetches the BasketEntry for an ingredient if it exists
3778
3790
  * Returns a fake BasketEntry with id = -1 if it doesn't exist
3779
3791
  */
3780
- BasketsService.prototype.basketEntryFromIngredient = function (ingredientId) {
3792
+ BasketsService.prototype.basketEntryFromIngredient = function (ingredientId, guests, onlyQuantity) {
3781
3793
  var _this = this;
3794
+ if (onlyQuantity === void 0) { onlyQuantity = false; }
3782
3795
  return this.waitForBasket.pipe(operators.switchMap(function (basket) {
3783
- var url = environment$1.miamAPI + "/api/v1/baskets/" + basket.id + "/basket-entries/from-ingredient?ingredient_id=" + ingredientId;
3784
- return _this.http.get(url, { params: { include: ['selected-item'] } });
3796
+ var url = environment$1.miamAPI + "/api/v1/baskets/" + basket.id + "/basket-entries/from-ingredient?ingredient_id=" + ingredientId + "&guests=" + guests;
3797
+ if (onlyQuantity) {
3798
+ url += "&fields[basket-entries]=quantity";
3799
+ }
3800
+ else {
3801
+ url += '&include=selected-item';
3802
+ }
3803
+ return _this.http.get(url);
3785
3804
  }), operators.skipWhile(function (result) { return result.is_loading || !result; }), operators.map(function (res) {
3786
3805
  var entry = _this.basketEntriesService.new();
3787
3806
  entry.fill(res);
@@ -4970,8 +4989,10 @@
4970
4989
  else {
4971
4990
  _this.icons.push({ icon: icon, url: url });
4972
4991
  }
4973
- }
4992
+ },
4993
+ setDefaultScrollElementGetter: function (callback) { return _this.defaultScrollElementGetter = callback; }
4974
4994
  };
4995
+ this.defaultScrollElementGetter = function () { return document.body; };
4975
4996
  this.isSmallScreen$.next(!this.mediaMatcher.matchMedia(SMALL_SCREEN_BP).matches);
4976
4997
  this.breakpointObserver.observe(SMALL_SCREEN_BP).subscribe(function (BPChange) { return _this.isSmallScreen$.next(!BPChange.matches); });
4977
4998
  this.icons = [];
@@ -6562,22 +6583,24 @@
6562
6583
  function AddonLinkComponent_ng_template_3_Template(rf, ctx) {
6563
6584
  if (rf & 1) {
6564
6585
  i0__namespace.ɵɵelementStart(0, "span");
6565
- i0__namespace.ɵɵi18n(1, 6);
6586
+ i0__namespace.ɵɵelementStart(1, "span");
6587
+ i0__namespace.ɵɵi18n(2, 6);
6588
+ i0__namespace.ɵɵelementEnd();
6589
+ i0__namespace.ɵɵelementStart(3, "span", 7);
6590
+ i0__namespace.ɵɵtext(4);
6566
6591
  i0__namespace.ɵɵelementEnd();
6567
- i0__namespace.ɵɵelementStart(2, "span");
6568
- i0__namespace.ɵɵtext(3);
6569
6592
  i0__namespace.ɵɵelementEnd();
6570
6593
  }
6571
6594
  if (rf & 2) {
6572
6595
  var ctx_r2 = i0__namespace.ɵɵnextContext();
6573
- i0__namespace.ɵɵadvance(3);
6574
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.recipe.sponsorName, " ");
6596
+ i0__namespace.ɵɵadvance(4);
6597
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.recipe.sponsorName, "");
6575
6598
  }
6576
6599
  }
6577
6600
  function AddonLinkComponent_span_5_Template(rf, ctx) {
6578
6601
  if (rf & 1) {
6579
6602
  var _r6_1 = i0__namespace.ɵɵgetCurrentView();
6580
- i0__namespace.ɵɵelementStart(0, "span", 7);
6603
+ i0__namespace.ɵɵelementStart(0, "span", 8);
6581
6604
  i0__namespace.ɵɵlistener("click", function AddonLinkComponent_span_5_Template_span_click_0_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.showAddon.emit(); });
6582
6605
  i0__namespace.ɵɵtext(1, " En savoir plus ");
6583
6606
  i0__namespace.ɵɵelementEnd();
@@ -6585,14 +6608,15 @@
6585
6608
  }
6586
6609
  function AddonLinkComponent_div_6_Template(rf, ctx) {
6587
6610
  if (rf & 1) {
6588
- i0__namespace.ɵɵelementStart(0, "div", 8);
6589
- i0__namespace.ɵɵelement(1, "img", 9);
6611
+ i0__namespace.ɵɵelementStart(0, "div", 9);
6612
+ i0__namespace.ɵɵelement(1, "img", 10);
6590
6613
  i0__namespace.ɵɵelementEnd();
6591
6614
  }
6592
6615
  if (rf & 2) {
6593
6616
  var ctx_r4 = i0__namespace.ɵɵnextContext();
6594
6617
  i0__namespace.ɵɵadvance(1);
6595
6618
  i0__namespace.ɵɵpropertyInterpolate("src", ctx_r4.recipe.sponsorLogoUrl, i0__namespace.ɵɵsanitizeUrl);
6619
+ i0__namespace.ɵɵproperty("alt", ctx_r4.recipe.sponsorName + " logo");
6596
6620
  }
6597
6621
  }
6598
6622
  var AddonLinkComponent = /** @class */ (function () {
@@ -6610,22 +6634,22 @@
6610
6634
  AddonLinkComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AddonLinkComponent, selectors: [["ng-miam-addon-link"]], inputs: { recipe: "recipe", hasStorytelling: "hasStorytelling" }, outputs: { showAddon: "showAddon" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 7, vars: 4, consts: function () {
6611
6635
  var i18n_0;
6612
6636
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
6613
- var MSG_EXTERNAL_5295446601874813054$$LIB__COMPONENTS_ADDON_LINK_ADDON_LINK_COMPONENT_TS__1 = goog.getMsg(" Cette recette vous est propos\u00E9e par notre partenaire ");
6614
- i18n_0 = MSG_EXTERNAL_5295446601874813054$$LIB__COMPONENTS_ADDON_LINK_ADDON_LINK_COMPONENT_TS__1;
6637
+ var MSG_EXTERNAL_346178670015862382$$LIB__COMPONENTS_ADDON_LINK_ADDON_LINK_COMPONENT_TS__1 = goog.getMsg("Cette recette vous est propos\u00E9e par notre partenaire");
6638
+ i18n_0 = MSG_EXTERNAL_346178670015862382$$LIB__COMPONENTS_ADDON_LINK_ADDON_LINK_COMPONENT_TS__1;
6615
6639
  }
6616
6640
  else {
6617
- i18n_0 = $localize(templateObject_1$H || (templateObject_1$H = __makeTemplateObject([":\u241F29296b7b48380304b23a1be69bc5a0cb7d30129b\u241F5295446601874813054: Cette recette vous est propos\u00E9e par notre partenaire "], [":\u241F29296b7b48380304b23a1be69bc5a0cb7d30129b\u241F5295446601874813054: Cette recette vous est propos\u00E9e par notre partenaire "])));
6641
+ i18n_0 = $localize(templateObject_1$H || (templateObject_1$H = __makeTemplateObject([":\u241F592a6ddb645d9971d03862cb6b8b323a3d9a0be2\u241F346178670015862382:Cette recette vous est propos\u00E9e par notre partenaire"], [":\u241F592a6ddb645d9971d03862cb6b8b323a3d9a0be2\u241F346178670015862382:Cette recette vous est propos\u00E9e par notre partenaire"])));
6618
6642
  }
6619
- return [[1, "miam-addon-link"], [1, "miam-addon-link__info"], [4, "ngIf", "ngIfElse"], ["sponsorsedLink", ""], ["class", "miam-addon-link__link", 3, "click", 4, "ngIf"], ["class", "miam-addon-link__logo", 4, "ngIf"], i18n_0, [1, "miam-addon-link__link", 3, "click"], [1, "miam-addon-link__logo"], [3, "src"]];
6643
+ return [[1, "miam-addon-link"], [1, "miam-addon-link__info"], [4, "ngIf", "ngIfElse"], ["sponsorsedLink", ""], ["class", "miam-addon-link__link", 3, "click", 4, "ngIf"], ["class", "miam-addon-link__logo", 4, "ngIf"], i18n_0, [1, "miam-addon-link__sponsor-name"], [1, "miam-addon-link__link", 3, "click"], [1, "miam-addon-link__logo"], [3, "src", "alt"]];
6620
6644
  }, template: function AddonLinkComponent_Template(rf, ctx) {
6621
6645
  if (rf & 1) {
6622
6646
  i0__namespace.ɵɵelementStart(0, "div", 0);
6623
6647
  i0__namespace.ɵɵelementStart(1, "div", 1);
6624
6648
  i0__namespace.ɵɵtemplate(2, AddonLinkComponent_span_2_Template, 2, 1, "span", 2);
6625
- i0__namespace.ɵɵtemplate(3, AddonLinkComponent_ng_template_3_Template, 4, 1, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
6649
+ i0__namespace.ɵɵtemplate(3, AddonLinkComponent_ng_template_3_Template, 5, 1, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
6626
6650
  i0__namespace.ɵɵtemplate(5, AddonLinkComponent_span_5_Template, 2, 0, "span", 4);
6627
6651
  i0__namespace.ɵɵelementEnd();
6628
- i0__namespace.ɵɵtemplate(6, AddonLinkComponent_div_6_Template, 2, 1, "div", 5);
6652
+ i0__namespace.ɵɵtemplate(6, AddonLinkComponent_div_6_Template, 2, 2, "div", 5);
6629
6653
  i0__namespace.ɵɵelementEnd();
6630
6654
  }
6631
6655
  if (rf & 2) {
@@ -6637,7 +6661,7 @@
6637
6661
  i0__namespace.ɵɵadvance(1);
6638
6662
  i0__namespace.ɵɵproperty("ngIf", ctx.recipe == null ? null : ctx.recipe.sponsorLogoUrl);
6639
6663
  }
6640
- }, directives: [i2__namespace$1.NgIf], styles: [".miam-addon-link{flex-direction:row;padding:12px 16px;font-size:16px}.miam-addon-link,.miam-addon-link .miam-addon-link__info{display:flex;align-items:center;justify-content:space-between}.miam-addon-link .miam-addon-link__info{flex-direction:row;flex:1}@media (max-width:1023px){.miam-addon-link .miam-addon-link__info{flex-direction:column;align-items:flex-start}}.miam-addon-link .miam-addon-link__info .miam-addon-link__link{color:var(--m-color-primary);cursor:pointer;-webkit-tap-highlight-color:transparent;white-space:nowrap;margin-left:16px}@media (max-width:1023px){.miam-addon-link .miam-addon-link__info .miam-addon-link__link{margin-left:unset;margin-top:8px}}.miam-addon-link .miam-addon-link__logo{width:auto;height:48px;justify-content:flex-end;display:flex;order:2;align-items:center;padding-left:16px}.miam-addon-link .miam-addon-link__logo img{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}"], encapsulation: 2, changeDetection: 0 });
6664
+ }, directives: [i2__namespace$1.NgIf], styles: [".miam-addon-link{flex-direction:row;padding:12px 16px;font-size:16px}.miam-addon-link,.miam-addon-link .miam-addon-link__info{display:flex;align-items:center;justify-content:space-between}.miam-addon-link .miam-addon-link__info{flex-direction:row;flex:1}.miam-addon-link .miam-addon-link__info .miam-addon-link__sponsor-name{white-space:nowrap}@media (max-width:1023px){.miam-addon-link .miam-addon-link__info{flex-direction:column;align-items:flex-start}}.miam-addon-link .miam-addon-link__info .miam-addon-link__link{color:var(--m-color-primary);cursor:pointer;-webkit-tap-highlight-color:transparent;white-space:nowrap;margin-left:16px}@media (max-width:1023px){.miam-addon-link .miam-addon-link__info .miam-addon-link__link{margin-left:unset;margin-top:8px}}.miam-addon-link .miam-addon-link__logo{width:auto;height:48px;justify-content:flex-end;display:flex;order:2;align-items:center;padding-left:16px}.miam-addon-link .miam-addon-link__logo img{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}"], encapsulation: 2, changeDetection: 0 });
6641
6665
  (function () {
6642
6666
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AddonLinkComponent, [{
6643
6667
  type: i0.Component,
@@ -7132,6 +7156,55 @@
7132
7156
  }] });
7133
7157
  })();
7134
7158
 
7159
+ var LoadOnScrollDirective = /** @class */ (function () {
7160
+ function LoadOnScrollDirective(el) {
7161
+ this.el = el;
7162
+ this.marginRoot = '0px'; // https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API#rootmargin
7163
+ this.threshold = 0; // 0 <= x < 1;
7164
+ this.isLoading = false;
7165
+ this.loadMore = new i0.EventEmitter();
7166
+ this.emitted = false;
7167
+ }
7168
+ LoadOnScrollDirective.prototype.ngOnInit = function () {
7169
+ this.intersectionObserver();
7170
+ };
7171
+ LoadOnScrollDirective.prototype.ngAfterViewInit = function () {
7172
+ this.observer.observe(this.el.nativeElement);
7173
+ };
7174
+ LoadOnScrollDirective.prototype.intersectionObserver = function () {
7175
+ var _this = this;
7176
+ var options = {
7177
+ root: null,
7178
+ rootMargin: this.marginRoot,
7179
+ threshold: this.threshold,
7180
+ };
7181
+ this.observer = new IntersectionObserver(function (entries) {
7182
+ if (entries[0].isIntersecting && !_this.isLoading) {
7183
+ _this.loadMore.emit();
7184
+ }
7185
+ }, options);
7186
+ };
7187
+ return LoadOnScrollDirective;
7188
+ }());
7189
+ LoadOnScrollDirective.ɵfac = function LoadOnScrollDirective_Factory(t) { return new (t || LoadOnScrollDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
7190
+ LoadOnScrollDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: LoadOnScrollDirective, selectors: [["", "ngMiamLoadOnScroll", ""]], inputs: { marginRoot: "marginRoot", threshold: "threshold", isLoading: "isLoading" }, outputs: { loadMore: "loadMore" } });
7191
+ (function () {
7192
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LoadOnScrollDirective, [{
7193
+ type: i0.Directive,
7194
+ args: [{
7195
+ selector: '[ngMiamLoadOnScroll]'
7196
+ }]
7197
+ }], function () { return [{ type: i0__namespace.ElementRef }]; }, { marginRoot: [{
7198
+ type: i0.Input
7199
+ }], threshold: [{
7200
+ type: i0.Input
7201
+ }], isLoading: [{
7202
+ type: i0.Input
7203
+ }], loadMore: [{
7204
+ type: i0.Output
7205
+ }] });
7206
+ })();
7207
+
7135
7208
  var _c0$s = ["counterInput"];
7136
7209
  function CounterInputComponent_img_3_Template(rf, ctx) {
7137
7210
  if (rf & 1) {
@@ -7344,7 +7417,7 @@
7344
7417
  i0__namespace.ɵɵelementEnd();
7345
7418
  }
7346
7419
  }
7347
- var _c4$6 = function (a0, a1) { return { "image-container-mode": a0, "dragover-mode": a1 }; };
7420
+ var _c4$5 = function (a0, a1) { return { "image-container-mode": a0, "dragover-mode": a1 }; };
7348
7421
  var DragDropInputComponent = /** @class */ (function () {
7349
7422
  function DragDropInputComponent(cdr) {
7350
7423
  this.cdr = cdr;
@@ -7472,7 +7545,7 @@
7472
7545
  }
7473
7546
  if (rf & 2) {
7474
7547
  var _r1 = i0__namespace.ɵɵreference(3);
7475
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(6, _c4$6, ctx.imageUrl, ctx.isDragover && !ctx.imageUrl));
7548
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(6, _c4$5, ctx.imageUrl, ctx.isDragover && !ctx.imageUrl));
7476
7549
  i0__namespace.ɵɵadvance(1);
7477
7550
  i0__namespace.ɵɵproperty("ngIf", !ctx.photoMode && !ctx.bigImageWarning)("ngIfElse", _r1);
7478
7551
  i0__namespace.ɵɵadvance(5);
@@ -7618,15 +7691,79 @@
7618
7691
  }], function () { return [{ type: i1__namespace.HttpClient }]; }, null);
7619
7692
  })();
7620
7693
 
7694
+ var BasketActionsService = /** @class */ (function () {
7695
+ function BasketActionsService(context, userService, posService, basketsService, recipesService) {
7696
+ this.context = context;
7697
+ this.userService = userService;
7698
+ this.posService = posService;
7699
+ this.basketsService = basketsService;
7700
+ this.recipesService = recipesService;
7701
+ this.shouldExecuteBasketAction = new rxjs.BehaviorSubject(undefined);
7702
+ this.subscriptions = new rxjs.Subscription();
7703
+ this.subscriptions.add(this.canExecuteStoredMethod().subscribe());
7704
+ }
7705
+ /**
7706
+ * Stores the method and its arguments if the user is not logged in or doesn't have a PoS Set
7707
+ */
7708
+ BasketActionsService.prototype.storeMethodIfCallbackNeeded = function (method) {
7709
+ var _this = this;
7710
+ return this.isLoggedAndHasPos().pipe(operators.take(1), operators.map(function (res) {
7711
+ if ((!res[0] || !res[1])) {
7712
+ localStorage.setItem('_miam/storeCallbackMethod', JSON.stringify(method));
7713
+ }
7714
+ return _this.context.hookCallback(res[0], res[1]);
7715
+ }));
7716
+ };
7717
+ /**
7718
+ * Executes a stored method if the user is logged in and has a PoS.
7719
+ */
7720
+ BasketActionsService.prototype.canExecuteStoredMethod = function () {
7721
+ var _this = this;
7722
+ return this.basketsService.waitForBasketEntries.pipe(operators.switchMap(function () { return _this.isLoggedAndHasPos().pipe(operators.skipWhile(function (res) { return !res[0] || !res[1]; }), operators.take(1), operators.map(function () { return _this.getStoredMethod(); })); }));
7723
+ };
7724
+ /**
7725
+ * Check if the user is logged in and has a point of sale.
7726
+ */
7727
+ BasketActionsService.prototype.isLoggedAndHasPos = function () {
7728
+ return rxjs.combineLatest([
7729
+ this.userService.isLogged$,
7730
+ this.posService.posWasInitialized()
7731
+ ]);
7732
+ };
7733
+ /**
7734
+ * Executes the stored method by retrieving the stored data from local storage,
7735
+ * parsing it, and iterating over each request. Depending on the method name,
7736
+ * either adds recipes to the basket or ingredients to the basket.
7737
+ */
7738
+ BasketActionsService.prototype.getStoredMethod = function () {
7739
+ if (localStorage.getItem('_miam/storeCallbackMethod')) {
7740
+ var parsedStoredData = JSON.parse(localStorage.getItem('_miam/storeCallbackMethod'));
7741
+ this.shouldExecuteBasketAction.next(parsedStoredData);
7742
+ this.recipesService.display(parsedStoredData.arguments.recipeId, { previewAllowed: true, previewMode: false }, { originPath: '', props: {} });
7743
+ localStorage.removeItem('_miam/storeCallbackMethod');
7744
+ }
7745
+ };
7746
+ return BasketActionsService;
7747
+ }());
7748
+ BasketActionsService.ɵfac = function BasketActionsService_Factory(t) { return new (t || BasketActionsService)(i0__namespace.ɵɵinject(ContextService), i0__namespace.ɵɵinject(UserService), i0__namespace.ɵɵinject(PointOfSalesService), i0__namespace.ɵɵinject(BasketsService), i0__namespace.ɵɵinject(RecipesService)); };
7749
+ BasketActionsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: BasketActionsService, factory: BasketActionsService.ɵfac, providedIn: 'root' });
7750
+ (function () {
7751
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BasketActionsService, [{
7752
+ type: i0.Injectable,
7753
+ args: [{
7754
+ providedIn: 'root'
7755
+ }]
7756
+ }], function () { return [{ type: ContextService }, { type: UserService }, { type: PointOfSalesService }, { type: BasketsService }, { type: RecipesService }]; }, null);
7757
+ })();
7758
+
7621
7759
  var RecipeDetailsService = /** @class */ (function () {
7622
- function RecipeDetailsService(basketsService, recipeService, analyticsService, posService, userService, ignoredBasketsService, contextService) {
7760
+ function RecipeDetailsService(basketsService, recipeService, analyticsService, ignoredBasketsService, basketActionsService, itemsService) {
7623
7761
  this.basketsService = basketsService;
7624
7762
  this.recipeService = recipeService;
7625
7763
  this.analyticsService = analyticsService;
7626
- this.posService = posService;
7627
- this.userService = userService;
7628
7764
  this.ignoredBasketsService = ignoredBasketsService;
7629
- this.contextService = contextService;
7765
+ this.basketActionsService = basketActionsService;
7766
+ this.itemsService = itemsService;
7630
7767
  this.productsByCategory = {
7631
7768
  toPickProducts: [],
7632
7769
  oftenIgnoredProducts: [],
@@ -7634,6 +7771,8 @@
7634
7771
  };
7635
7772
  this.products = [];
7636
7773
  this.allIngredientsToBasketLoading$ = new rxjs.BehaviorSubject(false);
7774
+ this.ingredientToBasketLoading$ = new rxjs.BehaviorSubject(false);
7775
+ this.updateIngredientFromBasketLoading$ = new rxjs.BehaviorSubject(false);
7637
7776
  this.productsLoading$ = new rxjs.BehaviorSubject(false);
7638
7777
  this.recipeLoading$ = new rxjs.BehaviorSubject(false);
7639
7778
  this.basketEntryToReplace$ = new rxjs.BehaviorSubject(null);
@@ -7642,9 +7781,12 @@
7642
7781
  this.onlyShowPreparation = false;
7643
7782
  this.productsByCategory$ = new rxjs.BehaviorSubject(this.productsByCategory);
7644
7783
  this.products$ = new rxjs.BehaviorSubject(this.products);
7784
+ this.recipePrice = { remaining: 0, inBasket: 0 };
7785
+ this.subscriptions = new rxjs.Subscription();
7645
7786
  this.initDefaultState();
7646
7787
  this.listenBasketPreview();
7647
7788
  this.resetOnHide();
7789
+ this.executeActionFromStorage();
7648
7790
  }
7649
7791
  Object.defineProperty(RecipeDetailsService.prototype, "remainingBasketEntries", {
7650
7792
  get: function () {
@@ -7698,6 +7840,13 @@
7698
7840
  enumerable: false,
7699
7841
  configurable: true
7700
7842
  });
7843
+ Object.defineProperty(RecipeDetailsService.prototype, "ingredientToBasketLoading", {
7844
+ set: function (isLoading) {
7845
+ this.ingredientToBasketLoading$.next(isLoading);
7846
+ },
7847
+ enumerable: false,
7848
+ configurable: true
7849
+ });
7701
7850
  Object.defineProperty(RecipeDetailsService.prototype, "allIngredientsToBasketLoading", {
7702
7851
  set: function (isLoading) {
7703
7852
  this.allIngredientsToBasketLoading$.next(isLoading);
@@ -7705,6 +7854,13 @@
7705
7854
  enumerable: false,
7706
7855
  configurable: true
7707
7856
  });
7857
+ Object.defineProperty(RecipeDetailsService.prototype, "updateIngredientFromBasketLoading", {
7858
+ set: function (isLoading) {
7859
+ this.updateIngredientFromBasketLoading$.next(isLoading);
7860
+ },
7861
+ enumerable: false,
7862
+ configurable: true
7863
+ });
7708
7864
  RecipeDetailsService.prototype.initDefaultState = function () {
7709
7865
  this.productsByCategory = {
7710
7866
  toPickProducts: [],
@@ -7712,23 +7868,38 @@
7712
7868
  unavailableProducts: []
7713
7869
  };
7714
7870
  this.products = [];
7871
+ this.recipePrice = {
7872
+ remaining: 0,
7873
+ inBasket: 0
7874
+ };
7715
7875
  this.totalProducts = 0;
7716
7876
  this.allIngredientsToBasketLoading$.next(false);
7877
+ this.ingredientToBasketLoading$.next(false);
7878
+ this.updateIngredientFromBasketLoading$.next(false);
7717
7879
  this.productsLoading$.next(false);
7718
7880
  this.recipeLoading$.next(false);
7719
7881
  this.basketEntryToReplace$.next(null);
7720
7882
  this.productsByCategory$.next(this.productsByCategory);
7721
7883
  this.products$.next(this.products);
7722
7884
  };
7885
+ RecipeDetailsService.prototype.executeActionFromStorage = function () {
7886
+ var _this = this;
7887
+ this.productsByCategory$.pipe(operators.skipWhile(function (products) { return products.toPickProducts.length === 0; }), operators.take(1), operators.switchMap(function () { return _this.basketActionsService.shouldExecuteBasketAction.pipe(operators.skipWhile(function (method) { return !method; })); })).subscribe(function (parsedMethod) {
7888
+ if (parsedMethod.method === 'addRecipeToBasket') {
7889
+ _this.recipe.modifiedGuests = parsedMethod.arguments.guests || _this.recipe.modifiedGuests;
7890
+ _this.addAllIngredientsToBasket(parsedMethod.arguments.eventTrace);
7891
+ }
7892
+ });
7893
+ };
7723
7894
  RecipeDetailsService.prototype.resetOnHide = function () {
7724
7895
  var _this = this;
7725
7896
  var previousRecipe = this.recipe;
7726
- this.recipeService.displayedRecipe$.subscribe(function (toDisplay) {
7897
+ this.subscriptions.add(this.recipeService.displayedRecipe$.subscribe(function (toDisplay) {
7727
7898
  if ((toDisplay === null || toDisplay === void 0 ? void 0 : toDisplay.recipe) && toDisplay.recipe.id !== (previousRecipe === null || previousRecipe === void 0 ? void 0 : previousRecipe.id)) {
7728
7899
  previousRecipe = toDisplay.recipe;
7729
7900
  _this.initDefaultState();
7730
7901
  }
7731
- });
7902
+ }));
7732
7903
  };
7733
7904
  /**
7734
7905
  * Sets the products by category.
@@ -7742,32 +7913,25 @@
7742
7913
  */
7743
7914
  RecipeDetailsService.prototype.setProductsByCategory = function () {
7744
7915
  var _this = this;
7745
- this.totalProducts = this.products.length;
7746
- this.productsByCategory = {
7747
- toPickProducts: [],
7748
- oftenIgnoredProducts: [],
7749
- unavailableProducts: []
7916
+ this.subscriptions.add(this.fetchProductPrices().subscribe(function (prices) {
7917
+ _this.totalProducts = _this.products.length;
7918
+ _this.productsByCategory = {
7919
+ toPickProducts: [],
7920
+ oftenIgnoredProducts: [],
7921
+ unavailableProducts: []
7922
+ };
7923
+ _this.recipePrice = {
7924
+ remaining: 0,
7925
+ inBasket: 0
7926
+ };
7927
+ _this.categorizeProducts(prices);
7928
+ }));
7929
+ };
7930
+ RecipeDetailsService.prototype.calculateProductPrice = function (product, price) {
7931
+ product.price = {
7932
+ unit: +price.toFixed(2),
7933
+ total: +(price * product.basketEntry.quantity).toFixed(2)
7750
7934
  };
7751
- // Iterate over each product in the entriesWithIngredients array
7752
- this.products.forEach(function (product) {
7753
- var basketEntry = product.basketEntry;
7754
- var id = basketEntry.id, selectedItem = basketEntry.selectedItem, status = basketEntry.status;
7755
- // Check if the product is ignored
7756
- _this.isIngredientIgnored(product);
7757
- // Check if the product is unavailable
7758
- if (id === '-1' && !selectedItem) {
7759
- _this.productsByCategory.unavailableProducts.push(product);
7760
- }
7761
- // Check if the product is often ignored based on groceriesEntryStatus
7762
- else if (status === 'often_deleted') {
7763
- _this.productsByCategory.oftenIgnoredProducts.push(product);
7764
- }
7765
- // Add the product to the toPickProducts category
7766
- else {
7767
- _this.productsByCategory.toPickProducts.push(product);
7768
- }
7769
- });
7770
- this.productsByCategory$.next(this.productsByCategory);
7771
7935
  };
7772
7936
  RecipeDetailsService.prototype.isProductsByCategorySet = function () {
7773
7937
  return this.productsByCategory.toPickProducts.length > 0 ||
@@ -7779,15 +7943,24 @@
7779
7943
  *
7780
7944
  * @return An observable that emits the products in the basket.
7781
7945
  */
7782
- RecipeDetailsService.prototype.getIngredientsBasketEntries = function () {
7946
+ RecipeDetailsService.prototype.getIngredientsBasketEntries = function (fromInit) {
7783
7947
  var _this = this;
7948
+ if (fromInit === void 0) { fromInit = false; }
7784
7949
  if (!this.recipe) {
7785
7950
  return rxjs.of([]);
7786
7951
  }
7787
- var basketEntries$ = this.recipe.ingredients.map(function (ingredient) { return _this.basketsService.basketEntryFromIngredient(ingredient.id).pipe(operators.map(function (basketEntry) { return ({ ingredient: ingredient, basketEntry: basketEntry }); })); });
7952
+ if (!fromInit) {
7953
+ this.ingredientToBasketLoading = true;
7954
+ }
7955
+ var basketEntries$ = this.recipe.ingredients.map(function (ingredient) { return _this.basketsService.basketEntryFromIngredient(ingredient.id, _this.recipe.modifiedGuests, !fromInit).pipe(operators.map(function (basketEntry) { return ({ ingredient: ingredient, basketEntry: basketEntry }); })); });
7788
7956
  return rxjs.forkJoin(basketEntries$).pipe(operators.tap(function (basketEntriesResult) {
7789
- _this.products = basketEntriesResult;
7790
- _this.setProductsByCategory();
7957
+ if (fromInit) {
7958
+ _this.products = basketEntriesResult;
7959
+ _this.setProductsByCategory();
7960
+ }
7961
+ else {
7962
+ _this.updatePriceOnGuestChange(basketEntriesResult);
7963
+ }
7791
7964
  }), operators.switchMap(function () { return rxjs.of(_this.products); }));
7792
7965
  };
7793
7966
  RecipeDetailsService.prototype.ingredientRemoved = function (ingredient, eventTrace) {
@@ -7807,8 +7980,18 @@
7807
7980
  };
7808
7981
  RecipeDetailsService.prototype.addAllIngredientsToBasket = function (eventTrace) {
7809
7982
  var _this = this;
7810
- this.allIngredientsToBasketLoading = true;
7811
- this.canAddProductToBasket(eventTrace).subscribe(function () { return _this.basketsService.addIngredientsToBasket(_this.recipe.id, _this.remainingProducts(), eventTrace); });
7983
+ this.subscriptions.add(this.canAddProductToBasket({
7984
+ method: 'addRecipeToBasket',
7985
+ arguments: {
7986
+ recipeId: this.recipe.id, guests: this.recipe.modifiedGuests,
7987
+ eventTrace: eventTrace
7988
+ }
7989
+ }, eventTrace).subscribe(function (passed) {
7990
+ if (passed) {
7991
+ _this.allIngredientsToBasketLoading = true;
7992
+ _this.basketsService.addIngredientsToBasket(_this.recipe.id, _this.remainingProducts(), eventTrace);
7993
+ }
7994
+ }));
7812
7995
  };
7813
7996
  // If the recipe is already in basket, update the number of guests (= append recipe to list again)
7814
7997
  RecipeDetailsService.prototype.updateGuests = function (eventTrace) {
@@ -7823,16 +8006,6 @@
7823
8006
  });
7824
8007
  this.recipeService.displayedRecipeChanged$.next();
7825
8008
  };
7826
- RecipeDetailsService.prototype.remainingProducts = function () {
7827
- var _this = this;
7828
- return this.remainingBasketEntries.reduce(function (result, be) {
7829
- var p = _this.products.find(function (product) { return product.basketEntry.name === be.name; });
7830
- if (p) {
7831
- result.push({ ingredientId: p.ingredient.id, entry: p.basketEntry });
7832
- }
7833
- return result;
7834
- }, []);
7835
- };
7836
8009
  RecipeDetailsService.prototype.replaceBasketEntry = function (basketEntry, ignoreSelected) {
7837
8010
  this.basketEntryToReplace = {
7838
8011
  ingredient: this.products[this.products.findIndex(function (p) { return p.basketEntry.name === basketEntry.name; })].ingredient,
@@ -7845,18 +8018,60 @@
7845
8018
  * @param eventTrace needed to add recipe to basket
7846
8019
  * @returns [islogged: boolean, posWasInitialized: boolean, recipeIsInBasket: boolean]
7847
8020
  */
7848
- RecipeDetailsService.prototype.canAddProductToBasket = function (eventTrace) {
8021
+ RecipeDetailsService.prototype.canAddProductToBasket = function (method, eventTrace) {
7849
8022
  var _this = this;
7850
- return rxjs.forkJoin([
7851
- this.userService.isLogged$.asObservable().pipe(operators.take(1)),
7852
- this.posService.posWasInitialized().pipe(operators.take(1)),
7853
- this.basketsService.recipeIsInBasket(this.recipe.id).pipe(operators.take(1))
7854
- ]).pipe(operators.tap(function (res) {
7855
- var isHookOk = _this.contextService.hookCallback(res[0], res[1]);
7856
- if (isHookOk && !res[2]) {
8023
+ return this.basketActionsService.storeMethodIfCallbackNeeded(method).pipe(operators.switchMap(function (canAdd) { return _this.basketsService.recipeIsInBasket(_this.recipe.id).pipe(operators.take(1), operators.map(function (isInBasket) {
8024
+ if (canAdd && !isInBasket) {
7857
8025
  _this.basketsService.addRecipesToBasket([_this.recipe.id], _this.recipe.modifiedGuests, eventTrace, false);
7858
8026
  }
7859
- }));
8027
+ return canAdd;
8028
+ })); }));
8029
+ };
8030
+ RecipeDetailsService.prototype.updateRecipePrice = function (product, ignore) {
8031
+ if (ignore === void 0) { ignore = false; }
8032
+ if (ignore) {
8033
+ this.recipePrice.remaining = this.recipePrice.remaining - product.price.total;
8034
+ }
8035
+ else {
8036
+ this.recipePrice = {
8037
+ remaining: this.recipePrice.remaining + (product.basketEntry.status === 'initial' && product.price.total),
8038
+ inBasket: this.recipePrice.inBasket + (product.basketEntry.status === 'active' && product.price.total)
8039
+ };
8040
+ }
8041
+ };
8042
+ RecipeDetailsService.prototype.unsubscribe = function () {
8043
+ this.subscriptions.unsubscribe();
8044
+ };
8045
+ RecipeDetailsService.prototype.remainingProducts = function () {
8046
+ var _this = this;
8047
+ return this.remainingBasketEntries.reduce(function (result, be) {
8048
+ var p = _this.products.find(function (product) { return product.basketEntry.name === be.name; });
8049
+ if (p) {
8050
+ result.push({ ingredientId: p.ingredient.id, entry: p.basketEntry });
8051
+ }
8052
+ return result;
8053
+ }, []);
8054
+ };
8055
+ RecipeDetailsService.prototype.updatePriceOnGuestChange = function (basketEntriesResult) {
8056
+ var _this = this;
8057
+ this.recipePrice = {
8058
+ remaining: 0,
8059
+ inBasket: 0
8060
+ };
8061
+ basketEntriesResult.forEach(function (product, index) {
8062
+ _this.products[index].basketEntry.quantity = product.basketEntry.quantity;
8063
+ _this.calculateProductPrice(_this.products[index], _this.products[index].price.unit);
8064
+ if (_this.products[index].basketEntry.status === 'initial' || _this.products[index].basketEntry.status === 'active') {
8065
+ _this.updateRecipePrice(_this.products[index]);
8066
+ }
8067
+ });
8068
+ // check if the recipe is in the basket, if not, stop the loading, if yes, loading is stopped on the basketPreview listener
8069
+ this.basketsService.recipeIsInBasket(this.recipe.id).pipe(operators.take(1)).subscribe(function (inBasket) {
8070
+ if (!inBasket) {
8071
+ _this.updateIngredientFromBasketLoading = false;
8072
+ _this.ingredientToBasketLoading = false;
8073
+ }
8074
+ });
7860
8075
  };
7861
8076
  RecipeDetailsService.prototype.basketEntryForIngredient = function (ingredient) {
7862
8077
  return this.products.find(function (p) { return p.ingredient.id === ingredient.id; }).basketEntry;
@@ -7866,11 +8081,11 @@
7866
8081
  */
7867
8082
  RecipeDetailsService.prototype.listenBasketPreview = function () {
7868
8083
  var _this = this;
7869
- this.basketsService._basketPreview$.subscribe(function (basketPreviewLines) {
7870
- var _a;
8084
+ this.subscriptions.add(this.basketsService._basketPreview$.subscribe(function (basketPreviewLines) {
8085
+ var _a, _b;
7871
8086
  if (basketPreviewLines) {
7872
8087
  var entriesForRecipe_1 = basketPreviewLines.find(function (basketPreviewLine) { var _a; return basketPreviewLine.id === ((_a = _this.recipe) === null || _a === void 0 ? void 0 : _a.id); });
7873
- if ((_a = entriesForRecipe_1 === null || entriesForRecipe_1 === void 0 ? void 0 : entriesForRecipe_1.entries) === null || _a === void 0 ? void 0 : _a.all) {
8088
+ if (((_b = (_a = entriesForRecipe_1 === null || entriesForRecipe_1 === void 0 ? void 0 : entriesForRecipe_1.entries) === null || _a === void 0 ? void 0 : _a.all) === null || _b === void 0 ? void 0 : _b.length) > 0) {
7874
8089
  _this.products.forEach(function (product) {
7875
8090
  var _a;
7876
8091
  product.basketEntry = (_a = entriesForRecipe_1.entries.all.find(function (basketEntry) { return basketEntry.name === product.basketEntry.name; })) !== null && _a !== void 0 ? _a : product.basketEntry;
@@ -7878,16 +8093,62 @@
7878
8093
  _this.setProductsByCategory();
7879
8094
  }
7880
8095
  }
7881
- });
8096
+ }));
7882
8097
  };
7883
8098
  RecipeDetailsService.prototype.isIngredientIgnored = function (product) {
7884
8099
  if (this.ignoredBasketsService.isIngredientIgnored(product.ingredient.id)) {
7885
8100
  product.basketEntry.status = 'ignored';
7886
8101
  }
7887
8102
  };
8103
+ RecipeDetailsService.prototype.fetchProductPrices = function () {
8104
+ var _this = this;
8105
+ return rxjs.forkJoin(this.products.map(function (product) { return product.basketEntry.selectedItem
8106
+ ? _this.itemsService.getPriceForItem(product.basketEntry.selectedItem.id)
8107
+ : rxjs.of({ price: '0' }); }));
8108
+ };
8109
+ RecipeDetailsService.prototype.categorizeProducts = function (prices) {
8110
+ var _this = this;
8111
+ // Iterate over each product in the entriesWithIngredients array
8112
+ this.products.forEach(function (product, index) {
8113
+ var basketEntry = product.basketEntry;
8114
+ var id = basketEntry.id, selectedItem = basketEntry.selectedItem, status = basketEntry.status;
8115
+ // Check if the product is ignored
8116
+ _this.isIngredientIgnored(product);
8117
+ _this.calculateProductPrice(product, +prices[index].price);
8118
+ _this.correctProductState(product);
8119
+ // Check if the product is unavailable
8120
+ if (id === '-1' && !selectedItem) {
8121
+ _this.productsByCategory.unavailableProducts.push(product);
8122
+ }
8123
+ // Check if the product is often ignored based on groceriesEntryStatus
8124
+ else if (status === 'often_deleted') {
8125
+ _this.productsByCategory.oftenIgnoredProducts.push(product);
8126
+ }
8127
+ // Add the product to the toPickProducts category
8128
+ else {
8129
+ _this.productsByCategory.toPickProducts.push(product);
8130
+ _this.updateRecipePrice(product);
8131
+ }
8132
+ });
8133
+ this.updateIngredientFromBasketLoading = false;
8134
+ this.ingredientToBasketLoading = false;
8135
+ this.productsByCategory$.next(this.productsByCategory);
8136
+ };
8137
+ RecipeDetailsService.prototype.correctProductState = function (product) {
8138
+ if (!['often_deleted', 'deleted', 'ignored'].includes(product.basketEntry.status)) {
8139
+ var _c = product.basketEntry, id = _c.id, selectedItem = _c.selectedItem, recipesIds = _c.recipesIds;
8140
+ if (id === '-1') {
8141
+ product.basketEntry.status = selectedItem ? 'initial' : 'unavailable';
8142
+ }
8143
+ else {
8144
+ var isRecipeActive = recipesIds.includes(+this.recipe.id);
8145
+ product.basketEntry.status = isRecipeActive ? 'active' : 'initial';
8146
+ }
8147
+ }
8148
+ };
7888
8149
  return RecipeDetailsService;
7889
8150
  }());
7890
- RecipeDetailsService.ɵfac = function RecipeDetailsService_Factory(t) { return new (t || RecipeDetailsService)(i0__namespace.ɵɵinject(BasketsService), i0__namespace.ɵɵinject(RecipesService), i0__namespace.ɵɵinject(AnalyticsService), i0__namespace.ɵɵinject(PointOfSalesService), i0__namespace.ɵɵinject(UserService), i0__namespace.ɵɵinject(IgnoredIngredientsService), i0__namespace.ɵɵinject(ContextService)); };
8151
+ RecipeDetailsService.ɵfac = function RecipeDetailsService_Factory(t) { return new (t || RecipeDetailsService)(i0__namespace.ɵɵinject(BasketsService), i0__namespace.ɵɵinject(RecipesService), i0__namespace.ɵɵinject(AnalyticsService), i0__namespace.ɵɵinject(IgnoredIngredientsService), i0__namespace.ɵɵinject(BasketActionsService), i0__namespace.ɵɵinject(ItemsService)); };
7891
8152
  RecipeDetailsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: RecipeDetailsService, factory: RecipeDetailsService.ɵfac, providedIn: 'root' });
7892
8153
  (function () {
7893
8154
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeDetailsService, [{
@@ -7895,7 +8156,7 @@
7895
8156
  args: [{
7896
8157
  providedIn: 'root'
7897
8158
  }]
7898
- }], function () { return [{ type: BasketsService }, { type: RecipesService }, { type: AnalyticsService }, { type: PointOfSalesService }, { type: UserService }, { type: IgnoredIngredientsService }, { type: ContextService }]; }, null);
8159
+ }], function () { return [{ type: BasketsService }, { type: RecipesService }, { type: AnalyticsService }, { type: IgnoredIngredientsService }, { type: BasketActionsService }, { type: ItemsService }]; }, null);
7899
8160
  })();
7900
8161
 
7901
8162
  var ScrollingService = /** @class */ (function () {
@@ -8010,7 +8271,7 @@
8010
8271
  };
8011
8272
  MiamInterceptor.prototype.setUserProfiling = function (request) {
8012
8273
  if (this.usersService.profilingForbidden()) {
8013
- request = request.clone({ params: new i1.HttpParams().set('profiling', 'off') });
8274
+ request = request.clone({ params: request.params.append('profiling', 'off') });
8014
8275
  }
8015
8276
  return request;
8016
8277
  };
@@ -8436,7 +8697,7 @@
8436
8697
  i0__namespace.ɵɵproperty("ngIf", ctx_r3.confirmButtonIsLoading);
8437
8698
  }
8438
8699
  }
8439
- var _c4$5 = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
8700
+ var _c4$4 = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
8440
8701
  function ModalComponent_ng_container_0_Template(rf, ctx) {
8441
8702
  if (rf & 1) {
8442
8703
  var _r14_1 = i0__namespace.ɵɵgetCurrentView();
@@ -8470,7 +8731,7 @@
8470
8731
  i0__namespace.ɵɵadvance(1);
8471
8732
  i0__namespace.ɵɵproperty("ngClass", ctx_r0.modalStyle);
8472
8733
  i0__namespace.ɵɵadvance(2);
8473
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(5, _c4$5, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
8734
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(5, _c4$4, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
8474
8735
  i0__namespace.ɵɵadvance(3);
8475
8736
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.title);
8476
8737
  i0__namespace.ɵɵadvance(1);
@@ -8479,87 +8740,38 @@
8479
8740
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.cancelButtonText || ctx_r0.confirmButtonText);
8480
8741
  }
8481
8742
  }
8482
- var _c5$1 = ["*"];
8743
+ var _c5 = ["*"];
8483
8744
  var ModalComponent = /** @class */ (function () {
8484
- function ModalComponent() {
8745
+ function ModalComponent(contextService) {
8746
+ this.contextService = contextService;
8485
8747
  this.modalStyle = 'center';
8486
8748
  this.close = new i0.EventEmitter();
8487
8749
  this.cancel = new i0.EventEmitter();
8488
8750
  this.confirm = new i0.EventEmitter();
8489
8751
  this.icon = exports.Icon;
8490
- /** Some keys are set to 0 to prevent `preventDefaultForScrollKeys` method from blocking input fields interactions */
8491
- this.scrollKeys = { ArrowUp: 0, ArrowRight: 0, ArrowDown: 0, ArrowLeft: 0, Space: 0, PageUp: 1, PageDown: 1, End: 0, Home: 0 };
8492
- this.pagePosition = { x: 0, y: 0 };
8493
8752
  }
8494
- ModalComponent.prototype.onScroll = function (event) {
8495
- if (event.ctrlKey) {
8496
- return;
8497
- }
8498
- if (this.display) {
8499
- event.preventDefault();
8500
- this.scrollFirstScrollableElement(event.target, event.deltaX, event.deltaY);
8501
- }
8502
- };
8503
- ModalComponent.prototype.onTouchStart = function (event) {
8504
- if (this.display) {
8505
- this.setPagePosition(event);
8506
- }
8507
- };
8508
- ModalComponent.prototype.onTouchMove = function (event) {
8509
- if (this.display) {
8510
- event.preventDefault();
8511
- var deltaX = this.pagePosition.x - event.touches[0].pageX;
8512
- var deltaY = this.pagePosition.y - event.touches[0].pageY;
8513
- this.scrollFirstScrollableElement(event.target, deltaX, deltaY);
8514
- this.setPagePosition(event);
8515
- }
8516
- };
8517
- ModalComponent.prototype.onKeyDown = function (event) {
8518
- if (this.display) {
8519
- this.preventDefaultForScrollKeys(event);
8520
- }
8521
- };
8753
+ Object.defineProperty(ModalComponent.prototype, "display", {
8754
+ get: function () {
8755
+ return this._display;
8756
+ },
8757
+ set: function (isDisplayed) {
8758
+ this._display = isDisplayed;
8759
+ var defaultScrollElement = this.contextService.defaultScrollElementGetter();
8760
+ if (isDisplayed) {
8761
+ defaultScrollElement === null || defaultScrollElement === void 0 ? void 0 : defaultScrollElement.classList.add('miam-no-scroll');
8762
+ }
8763
+ else {
8764
+ defaultScrollElement === null || defaultScrollElement === void 0 ? void 0 : defaultScrollElement.classList.remove('miam-no-scroll');
8765
+ }
8766
+ },
8767
+ enumerable: false,
8768
+ configurable: true
8769
+ });
8522
8770
  ModalComponent.prototype.onEscapeDown = function () {
8523
8771
  if (this.display) {
8524
8772
  this.onClose();
8525
8773
  }
8526
8774
  };
8527
- ModalComponent.prototype.isScrollableElement = function (element) {
8528
- var isCustomElement = element.tagName.includes('MIAM') || element.tagName.startsWith('APP-');
8529
- var isDisplayInline = /(inline)/g.test(window.getComputedStyle(element).display) && element.scrollHeight === 0;
8530
- return !isCustomElement && !isDisplayInline;
8531
- };
8532
- ModalComponent.prototype.isPositionFixedOrAbsolute = function (element) {
8533
- return /(fixed)|(absolute)/.test(window.getComputedStyle(element).position);
8534
- };
8535
- ModalComponent.prototype.scrollFirstScrollableElement = function (element, deltaX, deltaY) {
8536
- if (element.classList.contains('miam-modal__container')) {
8537
- return;
8538
- }
8539
- var heightScrollable = deltaY !== 0 && element.scrollHeight > element.parentElement.scrollHeight;
8540
- var widthScrollable = deltaX !== 0 && element.scrollWidth > element.parentElement.scrollWidth;
8541
- var hasRoomToScroll = !this.isPositionFixedOrAbsolute(element) && (heightScrollable || widthScrollable);
8542
- if (this.isScrollableElement(element.parentElement) && hasRoomToScroll) {
8543
- return element.scrollBy(deltaX, deltaY);
8544
- }
8545
- this.scrollFirstScrollableElement(element.parentElement, deltaX, deltaY);
8546
- };
8547
- ModalComponent.prototype.setPagePosition = function (event) {
8548
- this.pagePosition.x = event.touches[0].pageX;
8549
- this.pagePosition.y = event.touches[0].pageY;
8550
- };
8551
- ModalComponent.prototype.preventDefaultForScrollKeys = function (event) {
8552
- if (event.target.tagName === 'INPUT' || event.target.tagName === 'TEXTAREA') {
8553
- if (this.scrollKeys[event.code]) {
8554
- event.preventDefault();
8555
- }
8556
- }
8557
- else {
8558
- if (this.scrollKeys[event.code] === 1 || this.scrollKeys[event.code] === 0) {
8559
- event.preventDefault();
8560
- }
8561
- }
8562
- };
8563
8775
  ModalComponent.prototype.onClose = function () {
8564
8776
  this.close.emit();
8565
8777
  };
@@ -8571,12 +8783,12 @@
8571
8783
  };
8572
8784
  return ModalComponent;
8573
8785
  }());
8574
- ModalComponent.ɵfac = function ModalComponent_Factory(t) { return new (t || ModalComponent)(); };
8786
+ ModalComponent.ɵfac = function ModalComponent_Factory(t) { return new (t || ModalComponent)(i0__namespace.ɵɵdirectiveInject(ContextService)); };
8575
8787
  ModalComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ModalComponent, selectors: [["ng-miam-modal"]], hostBindings: function ModalComponent_HostBindings(rf, ctx) {
8576
8788
  if (rf & 1) {
8577
- i0__namespace.ɵɵlistener("wheel", function ModalComponent_wheel_HostBindingHandler($event) { return ctx.onScroll($event); })("touchstart", function ModalComponent_touchstart_HostBindingHandler($event) { return ctx.onTouchStart($event); })("touchmove", function ModalComponent_touchmove_HostBindingHandler($event) { return ctx.onTouchMove($event); })("keydown", function ModalComponent_keydown_HostBindingHandler($event) { return ctx.onKeyDown($event); }, false, i0__namespace.ɵɵresolveWindow)("keydown.escape", function ModalComponent_keydown_escape_HostBindingHandler() { return ctx.onEscapeDown(); }, false, i0__namespace.ɵɵresolveWindow);
8789
+ i0__namespace.ɵɵlistener("keydown.escape", function ModalComponent_keydown_escape_HostBindingHandler() { return ctx.onEscapeDown(); }, false, i0__namespace.ɵɵresolveWindow);
8578
8790
  }
8579
- }, inputs: { recipesCount: "recipesCount", display: "display", confirmButtonIsLoading: "confirmButtonIsLoading", cancelButtonIsLoading: "cancelButtonIsLoading", confirmButtonDisabled: "confirmButtonDisabled", cancelButtonDisabled: "cancelButtonDisabled", noHeaderMode: "noHeaderMode", containerElement: "containerElement", title: "title", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", modalStyle: "modalStyle" }, outputs: { close: "close", cancel: "cancel", confirm: "confirm" }, ngContentSelectors: _c5$1, decls: 1, vars: 1, consts: function () {
8791
+ }, inputs: { recipesCount: "recipesCount", confirmButtonIsLoading: "confirmButtonIsLoading", cancelButtonIsLoading: "cancelButtonIsLoading", confirmButtonDisabled: "confirmButtonDisabled", cancelButtonDisabled: "cancelButtonDisabled", noHeaderMode: "noHeaderMode", containerElement: "containerElement", title: "title", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", modalStyle: "modalStyle", display: "display" }, outputs: { close: "close", cancel: "cancel", confirm: "confirm" }, ngContentSelectors: _c5, decls: 1, vars: 1, consts: function () {
8580
8792
  var i18n_0;
8581
8793
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
8582
8794
  var MSG_EXTERNAL_3775647930168967606$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS___1 = goog.getMsg("Utilis\u00E9 dans ");
@@ -8602,7 +8814,7 @@
8602
8814
  if (rf & 2) {
8603
8815
  i0__namespace.ɵɵproperty("ngIf", ctx.display);
8604
8816
  }
8605
- }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgClass, LoaderComponent], styles: [".miam-modal__container .miam-shadow-overlay{position:fixed;background:var(--miam-ds-color-neutral-black);animation-name:show;animation-duration:.3s;opacity:.6;animation-timing-function:ease-in-out;z-index:var(--m-z-index-modal-overlay);top:0;left:0;width:100vw;height:100dvh;-webkit-tap-highlight-color:transparent}@keyframes show{0%{opacity:0}to{opacity:.6}}.miam-modal__container .miam-modal{z-index:var(--m-z-index-modal);position:fixed;overflow:hidden;background-color:var(--miam-ds-color-background-primary);display:flex;flex-direction:column}@media print{.miam-modal__container .miam-modal{overflow-y:unset!important;position:unset!important;height:unset!important}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__close-icon{display:none}}.miam-modal__container .miam-modal.with-header .miam-modal__content-container .miam-modal__content{margin-top:24px;margin-bottom:24px}.miam-modal__container .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__title{display:none}.miam-modal__container .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{position:absolute;top:0;right:0;z-index:var(--m-z-index-position-absolute-high)}.miam-modal__container .miam-modal .miam-modal__content-container{position:relative;height:100%;display:flex;flex-direction:column;overflow:hidden}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header{display:flex;flex-direction:row;justify-content:space-between}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header .miam-modal__title{font-weight:900;overflow:hidden;text-overflow:ellipsis;align-self:center}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:8px;padding:16px;background:50%/24px no-repeat url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg)}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content__scroll-protection{overflow:hidden;height:100%;display:flex}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content{width:100%;overflow-y:auto;overflow-x:hidden;scrollbar-color:var(--miam-ds-color-primary-100),var(--miam-ds-color-primary);scrollbar-width:thin}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__actions{display:flex;justify-content:flex-end;flex-direction:row}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__actions button+button{margin-left:12px}.miam-modal__container.center .miam-modal{height:auto;min-width:464px;width:600px;max-width:700px;max-height:96dvh;box-sizing:border-box;top:50%;left:50%;right:unset;transform:translate(-50%,-50%);border-radius:8px;background-color:var(--miam-ds-color-neutral-white);padding:24px}.miam-modal__container.right .miam-modal{right:0;animation-name:openRightDrawer}@keyframes openRightDrawer{0%{right:-1200px}to{right:0}}.miam-modal__container.left .miam-modal{left:0;animation-name:openLeftDrawer}@keyframes openLeftDrawer{0%{left:-1200px}to{left:0}}.miam-modal__container.left .miam-modal,.miam-modal__container.right .miam-modal{animation-duration:.5s;animation-timing-function:cubic-bezier(.75,0,.2,1);height:100%;width:1000px;top:0}@media (min-width:1023px) and (max-height:1000px){.miam-modal__container.left .miam-modal,.miam-modal__container.right .miam-modal{width:650px}}@media (min-width:1023px) and (max-height:800px){.miam-modal__container.left .miam-modal,.miam-modal__container.right .miam-modal{width:450px}}.miam-modal__container.left .miam-modal .miam-modal__content-container,.miam-modal__container.right .miam-modal .miam-modal__content-container{height:100%;box-sizing:border-box}.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__content,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__content{height:100%;box-sizing:border-box;margin:unset}.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions{padding:24px;border-top:1px solid var(--miam-ds-color-border)}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__header,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__header{border-bottom:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:unset}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__content,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__content{padding:24px}.miam-modal__container.left .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon,.miam-modal__container.right .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:24px}.miam-modal__container.left.small-width .miam-modal,.miam-modal__container.right.small-width .miam-modal{min-width:680px;max-width:680px}.miam-modal__container.left.tiny-width .miam-modal,.miam-modal__container.right.tiny-width .miam-modal{min-width:360px;max-width:360px}@media (max-width:1023px){.miam-modal__container.center .miam-modal{min-width:unset;transform:unset;border-radius:unset;padding:unset}.miam-modal__container.center .miam-modal.with-header .miam-modal__content-container .miam-modal__header{border-bottom:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.center .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:unset}.miam-modal__container.center .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:24px}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__content{box-sizing:border-box;height:100%;margin:unset;padding:24px}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions{border-top:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.center .miam-modal,.miam-modal__container.left .miam-modal,.miam-modal__container.left.small-width .miam-modal,.miam-modal__container.left.tiny-width .miam-modal,.miam-modal__container.right .miam-modal,.miam-modal__container.right.small-width .miam-modal,.miam-modal__container.right.tiny-width .miam-modal{max-width:100vw;max-height:100dvh;width:100vw;height:100dvh;top:0;bottom:0;right:0;animation-name:openBottomSheet;animation-duration:.5s;animation-timing-function:cubic-bezier(.075,.82,.165,1)}@keyframes openBottomSheet{0%{transform:translateY(100%)}to{transform:translateY(0)}}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions{flex-direction:column-reverse}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary{background-color:var(--miam-ds-color-primary)}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary{background-color:transparent}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button{margin-left:unset;margin-bottom:12px}}"], encapsulation: 2, changeDetection: 0 });
8817
+ }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgClass, LoaderComponent], styles: [".miam-no-scroll{overflow:hidden}.miam-modal__container .miam-shadow-overlay{position:fixed;background:var(--miam-ds-color-neutral-black);animation-name:show;animation-duration:.3s;opacity:.6;animation-timing-function:ease-in-out;z-index:var(--m-z-index-modal-overlay);top:0;left:0;width:100vw;height:100dvh;-webkit-tap-highlight-color:transparent}@keyframes show{0%{opacity:0}to{opacity:.6}}.miam-modal__container .miam-modal{z-index:var(--m-z-index-modal);position:fixed;overflow:hidden;background-color:var(--miam-ds-color-background-primary);display:flex;flex-direction:column}@media print{.miam-modal__container .miam-modal{overflow-y:unset!important;position:unset!important;height:unset!important}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__close-icon{display:none}}.miam-modal__container .miam-modal.with-header .miam-modal__content-container .miam-modal__content{margin-top:24px;margin-bottom:24px}.miam-modal__container .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__title{display:none}.miam-modal__container .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{position:absolute;top:0;right:0;z-index:var(--m-z-index-position-absolute-high)}.miam-modal__container .miam-modal .miam-modal__content-container{position:relative;height:100%;display:flex;flex-direction:column;overflow:hidden}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header{display:flex;flex-direction:row;justify-content:space-between}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header .miam-modal__title{font-weight:900;overflow:hidden;text-overflow:ellipsis;align-self:center}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:8px;padding:16px;background:50%/24px no-repeat url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg)}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content__scroll-protection{overflow:hidden;height:100%;display:flex}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content{width:100%;overflow-y:auto;overflow-x:hidden;scrollbar-color:var(--miam-ds-color-primary-100),var(--miam-ds-color-primary)}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__actions{display:flex;justify-content:flex-end;flex-direction:row}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__actions button+button{margin-left:12px}.miam-modal__container.center .miam-modal{height:auto;min-width:464px;width:600px;max-width:700px;max-height:96dvh;box-sizing:border-box;top:50%;left:50%;right:unset;transform:translate(-50%,-50%);border-radius:8px;background-color:var(--miam-ds-color-neutral-white);padding:24px}.miam-modal__container.right .miam-modal{right:0;animation-name:openRightDrawer}@keyframes openRightDrawer{0%{right:-1200px}to{right:0}}.miam-modal__container.left .miam-modal{left:0;animation-name:openLeftDrawer}@keyframes openLeftDrawer{0%{left:-1200px}to{left:0}}.miam-modal__container.left .miam-modal,.miam-modal__container.right .miam-modal{animation-duration:.5s;animation-timing-function:cubic-bezier(.75,0,.2,1);height:100%;width:1000px;top:0}.miam-modal__container.left .miam-modal .miam-modal__content-container,.miam-modal__container.right .miam-modal .miam-modal__content-container{height:100%;box-sizing:border-box}.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__content,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__content{height:100%;box-sizing:border-box;margin:unset}.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions{padding:24px;border-top:1px solid var(--miam-ds-color-border)}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__header,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__header{border-bottom:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:unset}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__content,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__content{padding:16px}.miam-modal__container.left .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon,.miam-modal__container.right .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:24px}.miam-modal__container.left.small-width .miam-modal,.miam-modal__container.right.small-width .miam-modal{min-width:680px;max-width:680px}.miam-modal__container.left.tiny-width .miam-modal,.miam-modal__container.right.tiny-width .miam-modal{min-width:360px;max-width:360px}@media (max-width:1023px){.miam-modal__container.center .miam-modal{min-width:unset;transform:unset;border-radius:unset;padding:unset}.miam-modal__container.center .miam-modal.with-header .miam-modal__content-container .miam-modal__header{border-bottom:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.center .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:unset}.miam-modal__container.center .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:24px}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__content{box-sizing:border-box;height:100%;margin:unset;padding:24px}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions{border-top:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.center .miam-modal,.miam-modal__container.left .miam-modal,.miam-modal__container.left.small-width .miam-modal,.miam-modal__container.left.tiny-width .miam-modal,.miam-modal__container.right .miam-modal,.miam-modal__container.right.small-width .miam-modal,.miam-modal__container.right.tiny-width .miam-modal{max-width:100vw;max-height:100dvh;width:100vw;height:100dvh;top:0;bottom:0;right:0;animation-name:openBottomSheet;animation-duration:.5s;animation-timing-function:cubic-bezier(.075,.82,.165,1)}@keyframes openBottomSheet{0%{transform:translateY(100%)}to{transform:translateY(0)}}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions{flex-direction:column-reverse}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary{background-color:var(--miam-ds-color-primary)}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary{background-color:transparent}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button{margin-left:unset;margin-bottom:12px}}"], encapsulation: 2, changeDetection: 0 });
8606
8818
  (function () {
8607
8819
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ModalComponent, [{
8608
8820
  type: i0.Component,
@@ -8613,9 +8825,7 @@
8613
8825
  encapsulation: i0.ViewEncapsulation.None,
8614
8826
  changeDetection: i0.ChangeDetectionStrategy.OnPush
8615
8827
  }]
8616
- }], null, { recipesCount: [{
8617
- type: i0.Input
8618
- }], display: [{
8828
+ }], function () { return [{ type: ContextService }]; }, { recipesCount: [{
8619
8829
  type: i0.Input
8620
8830
  }], confirmButtonIsLoading: [{
8621
8831
  type: i0.Input
@@ -8643,18 +8853,8 @@
8643
8853
  type: i0.Output
8644
8854
  }], confirm: [{
8645
8855
  type: i0.Output
8646
- }], onScroll: [{
8647
- type: i0.HostListener,
8648
- args: ['wheel', ['$event']]
8649
- }], onTouchStart: [{
8650
- type: i0.HostListener,
8651
- args: ['touchstart', ['$event']]
8652
- }], onTouchMove: [{
8653
- type: i0.HostListener,
8654
- args: ['touchmove', ['$event']]
8655
- }], onKeyDown: [{
8656
- type: i0.HostListener,
8657
- args: ['window:keydown', ['$event']]
8856
+ }], display: [{
8857
+ type: i0.Input
8658
8858
  }], onEscapeDown: [{
8659
8859
  type: i0.HostListener,
8660
8860
  args: ['window:keydown.escape']
@@ -8837,7 +9037,7 @@
8837
9037
  i0__namespace.ɵɵproperty("ngForOf", ctx_r30.getImportances());
8838
9038
  }
8839
9039
  }
8840
- var _c12$2 = function (a0) { return { clickable: a0 }; };
9040
+ var _c12$1 = function (a0) { return { clickable: a0 }; };
8841
9041
  function ListInputComponent_ul_4_ng_template_2_li_0_label_17_img_1_Template(rf, ctx) {
8842
9042
  if (rf & 1) {
8843
9043
  i0__namespace.ɵɵelement(0, "img", 54);
@@ -8845,7 +9045,7 @@
8845
9045
  if (rf & 2) {
8846
9046
  var row_r26 = i0__namespace.ɵɵnextContext(2).$implicit;
8847
9047
  var ctx_r49 = i0__namespace.ɵɵnextContext(3);
8848
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c12$2, ctx_r49.ingredientsPictures.editable))("src", row_r26.controls.attributes.controls["picture-url"].value, i0__namespace.ɵɵsanitizeUrl);
9048
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c12$1, ctx_r49.ingredientsPictures.editable))("src", row_r26.controls.attributes.controls["picture-url"].value, i0__namespace.ɵɵsanitizeUrl);
8849
9049
  }
8850
9050
  }
8851
9051
  function ListInputComponent_ul_4_ng_template_2_li_0_label_17_ng_miam_icon_2_Template(rf, ctx) {
@@ -9403,7 +9603,7 @@
9403
9603
  i18n_8 = MSG_EXTERNAL_5233517838396324976$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS__9;
9404
9604
  }
9405
9605
  else {
9406
- i18n_8 = $localize(templateObject_5$g || (templateObject_5$g = __makeTemplateObject([":\u241F94ad94596b2f40b07222d1e40355a44b6a1af29a\u241F5233517838396324976:Ingr\u00E9dients"], [":\u241F94ad94596b2f40b07222d1e40355a44b6a1af29a\u241F5233517838396324976:Ingr\u00E9dients"])));
9606
+ i18n_8 = $localize(templateObject_5$f || (templateObject_5$f = __makeTemplateObject([":\u241F94ad94596b2f40b07222d1e40355a44b6a1af29a\u241F5233517838396324976:Ingr\u00E9dients"], [":\u241F94ad94596b2f40b07222d1e40355a44b6a1af29a\u241F5233517838396324976:Ingr\u00E9dients"])));
9407
9607
  }
9408
9608
  var i18n_10;
9409
9609
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -9467,7 +9667,7 @@
9467
9667
  i18n_25 = MSG_EXTERNAL_8809298342961585850$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS__26;
9468
9668
  }
9469
9669
  else {
9470
- i18n_25 = $localize(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject([":\u241Fb4b270d65d094739a4c3233b238db0a8a536dc5e\u241F8809298342961585850:Une ligne correspond \u00E0 une \u00E9tape."], [":\u241Fb4b270d65d094739a4c3233b238db0a8a536dc5e\u241F8809298342961585850:Une ligne correspond \u00E0 une \u00E9tape."])));
9670
+ i18n_25 = $localize(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject([":\u241Fb4b270d65d094739a4c3233b238db0a8a536dc5e\u241F8809298342961585850:Une ligne correspond \u00E0 une \u00E9tape."], [":\u241Fb4b270d65d094739a4c3233b238db0a8a536dc5e\u241F8809298342961585850:Une ligne correspond \u00E0 une \u00E9tape."])));
9471
9671
  }
9472
9672
  var i18n_27;
9473
9673
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -9475,7 +9675,7 @@
9475
9675
  i18n_27 = MSG_EXTERNAL_2641984252780881638$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS__28;
9476
9676
  }
9477
9677
  else {
9478
- i18n_27 = $localize(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject([":\u241F0f9865a02f057092ee28211beb813f850707f3d5\u241F2641984252780881638:Votre image est trop lourde (la taille doit \u00EAtre inf\u00E9rieure \u00E0 500 Ko). Merci d\u2019en ajouter une plus l\u00E9g\u00E8re."], [":\u241F0f9865a02f057092ee28211beb813f850707f3d5\u241F2641984252780881638:Votre image est trop lourde (la taille doit \u00EAtre inf\u00E9rieure \u00E0 500 Ko). Merci d\u2019en ajouter une plus l\u00E9g\u00E8re."])));
9678
+ i18n_27 = $localize(templateObject_14$3 || (templateObject_14$3 = __makeTemplateObject([":\u241F0f9865a02f057092ee28211beb813f850707f3d5\u241F2641984252780881638:Votre image est trop lourde (la taille doit \u00EAtre inf\u00E9rieure \u00E0 500 Ko). Merci d\u2019en ajouter une plus l\u00E9g\u00E8re."], [":\u241F0f9865a02f057092ee28211beb813f850707f3d5\u241F2641984252780881638:Votre image est trop lourde (la taille doit \u00EAtre inf\u00E9rieure \u00E0 500 Ko). Merci d\u2019en ajouter une plus l\u00E9g\u00E8re."])));
9479
9679
  }
9480
9680
  return [[1, "miam-list-input"], [1, "miam-list-input__list", 3, "formGroup"], ["class", "miam-list-input__list__label", 4, "ngIf"], ["class", "miam-list-input__container m-default-card", "cdkDropList", "", 3, "cdkDropListDropped", 4, "ngIf", "ngIfElse"], ["hintPlaceholder", ""], [1, "miam-list-input__actions"], ["matInput", "", "class", "m-input", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", 3, "formControl", "keydown.enter", 4, "ngIf"], ["matInput", "", "class", "m-input", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", "placeholder", i18n_0, 3, "formControl", "keydown.enter", 4, "ngIf"], ["matInput", "", "class", "m-input", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", "placeholder", i18n_2, 3, "formControl", "keydown.enter", 4, "ngIf"], [1, "m-button-primary", 3, "mousedown", "mouseup"], i18n_4, [1, "miam-list-input__instructions__direction"], ["class", "miam-list-input__actions__instructions", 4, "ngIf"], ["title", i18n_6, "confirmButtonText", "Fermer", "modalStyle", "right", 3, "noHeaderMode", "display", "close", "confirm", 4, "ngIf"], [1, "miam-list-input__list__label"], i18n_8, i18n_10, ["cdkDropList", "", 1, "miam-list-input__container", "m-default-card", 3, "cdkDropListDropped"], [4, "ngIf", "ngIfElse"], ["ingredientRow", ""], ["cdkDrag", "", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["cdkDrag", ""], [3, "formGroup"], [1, "miam-list-input__container__row", "m-default-card"], ["primaryColor", "var(--m-color-grey05)", "cdkDragHandle", "", 1, "miam-list-input__row__grip", 3, "iconName"], ["cdkTextareaAutosize", "true", "cdkAutosizeMinRows", "1", "cdkAutosizeMaxRows", "50", "formControlName", "description", 1, "m-input", 3, "blur"], ["autosize", "cdkTextareaAutosize"], [1, "miam-list-input__row__trash", 3, "iconName", "click"], ["class", "miam-list-input__row__placeholder", 4, "cdkDragPlaceholder"], ["class", "miam-list-input__row__preview m-default-card", 4, "cdkDragPreview"], [1, "miam-list-input__row__placeholder"], [1, "miam-list-input__row__preview", "m-default-card"], ["primaryColor", "var(--m-color-grey05)", "cdkDragHandle", "", 3, "iconName"], [1, "miam-list-input__preview__text", "m-body-typo"], [1, "miam-list-input__container__row", "m-default-card", 3, "formGroupName"], [1, "miam-list-input__row__left"], [1, "miam-list-input__row__right"], [1, "m-input", 3, "ngClass", "ngModel", "formControl"], [3, "value", 4, "ngFor", "ngForOf"], ["maxSize", "4", "autoWidthInput", "", 1, "m-input", 3, "ngModel", "formControl", "ngModelChange"], ["maxSize", "8", "autoWidthInput", "", 1, "m-input", 3, "ngClass", "formControl"], ["class", "miam-list-input__importance", 4, "ngIf"], [1, "miam-list-input__row__controls"], [3, "for", 4, "ngIf"], ["type", "file", "accept", "image/jpeg, image/png, image/webp", 3, "id", "change", 4, "ngIf"], ["primaryColor", "var(--m-color-grey05)", 1, "miam-list-input__row__trash", 3, "iconName", "click"], [3, "value"], [1, "miam-list-input__importance"], ["class", "miam-list-input__importance__radio", 4, "ngFor", "ngForOf"], [1, "miam-list-input__importance__radio"], ["type", "radio", 3, "name", "id", "value", "formControl", "click"], [3, "for"], ["class", "miam-list-input__row__picture", 3, "ngClass", "src", 4, "ngIf"], ["class", "miam-list-input__row__trash", "primaryColor", "var(--m-color-grey05)", 3, "iconName", 4, "ngIf"], [1, "miam-list-input__row__picture", 3, "ngClass", "src"], ["primaryColor", "var(--m-color-grey05)", 1, "miam-list-input__row__trash", 3, "iconName"], ["type", "file", "accept", "image/jpeg, image/png, image/webp", 3, "id", "change"], ["primaryColor", "var(--m-color-grey-text-dark)", "cdkDragHandle", "", 3, "iconName"], [1, "m-body-typo"], [1, "miam-list-input__placeholder", "miam-list-input__container", "m-default-card"], ["primaryColor", "var(--m-color-grey-text-dark)", 3, "width", "height", "iconName"], [1, "miam-list-input__placeholder__hint", "m-body-typo"], i18n_13, [4, "ngIf"], i18n_15, i18n_17, ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", 1, "m-input", 3, "formControl", "keydown.enter"], ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", "placeholder", i18n_0, 1, "m-input", 3, "formControl", "keydown.enter"], ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", "placeholder", i18n_2, 1, "m-input", 3, "formControl", "keydown.enter"], [1, "miam-list-input__actions__instructions"], i18n_19, i18n_21, i18n_23, i18n_25, ["title", i18n_6, "confirmButtonText", "Fermer", "modalStyle", "right", 3, "noHeaderMode", "display", "close", "confirm"], [1, "miam-list-input__picture__warning"], i18n_27];
9481
9681
  }, template: function ListInputComponent_Template(rf, ctx) {
@@ -9560,7 +9760,7 @@
9560
9760
  type: i0.Output
9561
9761
  }] });
9562
9762
  })();
9563
- var templateObject_1$D, templateObject_2$x, templateObject_3$p, templateObject_4$j, templateObject_5$g, templateObject_6$c, templateObject_7$9, templateObject_8$7, templateObject_9$6, templateObject_10$4, templateObject_11$4, templateObject_12$3, templateObject_13$2, templateObject_14$2;
9763
+ var templateObject_1$D, templateObject_2$x, templateObject_3$p, templateObject_4$j, templateObject_5$f, templateObject_6$c, templateObject_7$9, templateObject_8$7, templateObject_9$6, templateObject_10$4, templateObject_11$4, templateObject_12$3, templateObject_13$3, templateObject_14$3;
9564
9764
 
9565
9765
  var MealsPlannerLinkComponent = /** @class */ (function () {
9566
9766
  function MealsPlannerLinkComponent(context) {
@@ -10312,7 +10512,7 @@
10312
10512
  i18n_8 = MSG_EXTERNAL_7733455880752157102$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS____9;
10313
10513
  }
10314
10514
  else {
10315
- i18n_8 = $localize(templateObject_5$f || (templateObject_5$f = __makeTemplateObject([":\u241Fccfd103e2bbd9a80c6d3a226332a77c93c88d871\u241F7733455880752157102:Chef interm\u00E9diaire"], [":\u241Fccfd103e2bbd9a80c6d3a226332a77c93c88d871\u241F7733455880752157102:Chef interm\u00E9diaire"])));
10515
+ i18n_8 = $localize(templateObject_5$e || (templateObject_5$e = __makeTemplateObject([":\u241Fccfd103e2bbd9a80c6d3a226332a77c93c88d871\u241F7733455880752157102:Chef interm\u00E9diaire"], [":\u241Fccfd103e2bbd9a80c6d3a226332a77c93c88d871\u241F7733455880752157102:Chef interm\u00E9diaire"])));
10316
10516
  }
10317
10517
  var i18n_10;
10318
10518
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10376,7 +10576,7 @@
10376
10576
  i18n_24 = MSG_EXTERNAL_2987005241567363499$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS____25;
10377
10577
  }
10378
10578
  else {
10379
- i18n_24 = $localize(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject([":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"], [":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"])));
10579
+ i18n_24 = $localize(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject([":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"], [":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"])));
10380
10580
  }
10381
10581
  var i18n_26;
10382
10582
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10384,7 +10584,7 @@
10384
10584
  i18n_26 = MSG_EXTERNAL_6215037527102325488$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS____27;
10385
10585
  }
10386
10586
  else {
10387
- i18n_26 = $localize(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject([":\u241F1621eb3798ceefdacca0efee8561de66c85229df\u241F6215037527102325488:Moins de 1 h"], [":\u241F1621eb3798ceefdacca0efee8561de66c85229df\u241F6215037527102325488:Moins de 1 h"])));
10587
+ i18n_26 = $localize(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject([":\u241F1621eb3798ceefdacca0efee8561de66c85229df\u241F6215037527102325488:Moins de 1 h"], [":\u241F1621eb3798ceefdacca0efee8561de66c85229df\u241F6215037527102325488:Moins de 1 h"])));
10388
10588
  }
10389
10589
  var i18n_28;
10390
10590
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10498,7 +10698,7 @@
10498
10698
  type: i0.Output
10499
10699
  }] });
10500
10700
  })();
10501
- var templateObject_1$B, templateObject_2$v, templateObject_3$n, templateObject_4$i, templateObject_5$f, templateObject_6$b, templateObject_7$8, templateObject_8$6, templateObject_9$5, templateObject_10$3, templateObject_11$3, templateObject_12$2, templateObject_13$1, templateObject_14$1, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1;
10701
+ var templateObject_1$B, templateObject_2$v, templateObject_3$n, templateObject_4$i, templateObject_5$e, templateObject_6$b, templateObject_7$8, templateObject_8$6, templateObject_9$5, templateObject_10$3, templateObject_11$3, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1;
10502
10702
 
10503
10703
  function RecipePricingComponent_div_0_div_10_span_1_Template(rf, ctx) {
10504
10704
  if (rf & 1) {
@@ -12117,7 +12317,7 @@
12117
12317
  if (rf & 2) {
12118
12318
  var ctx_r7 = i0__namespace.ɵɵnextContext(3);
12119
12319
  i0__namespace.ɵɵadvance(1);
12120
- i0__namespace.ɵɵproperty("value", ctx_r7.basketEntry.quantity)("minusLoading", ctx_r7.counterMinusLoading);
12320
+ i0__namespace.ɵɵproperty("value", ctx_r7.product.basketEntry.quantity)("minusLoading", ctx_r7.counterMinusLoading);
12121
12321
  }
12122
12322
  }
12123
12323
  function ProductCardComponent_div_0_ng_container_11_Template(rf, ctx) {
@@ -12143,7 +12343,7 @@
12143
12343
  i0__namespace.ɵɵtemplate(13, ProductCardComponent_div_0_ng_container_11_div_13_Template, 3, 0, "div", 17);
12144
12344
  i0__namespace.ɵɵelementEnd();
12145
12345
  i0__namespace.ɵɵelementStart(14, "button", 18);
12146
- i0__namespace.ɵɵlistener("click", function ProductCardComponent_div_0_ng_container_11_Template_button_click_14_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(2); return ctx_r16.replaceProduct(ctx_r16.basketEntry.status === "initial"); });
12346
+ i0__namespace.ɵɵlistener("click", function ProductCardComponent_div_0_ng_container_11_Template_button_click_14_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(2); return ctx_r16.replaceProduct(ctx_r16.product.basketEntry.status === "initial"); });
12147
12347
  i0__namespace.ɵɵelementStart(15, "span");
12148
12348
  i0__namespace.ɵɵtext(16, "Remplacer");
12149
12349
  i0__namespace.ɵɵelementEnd();
@@ -12165,21 +12365,21 @@
12165
12365
  if (rf & 2) {
12166
12366
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
12167
12367
  i0__namespace.ɵɵadvance(3);
12168
- i0__namespace.ɵɵproperty("src", ctx_r1.basketEntry.selectedItem.attributes.image, i0__namespace.ɵɵsanitizeUrl);
12368
+ i0__namespace.ɵɵproperty("src", ctx_r1.product.basketEntry.selectedItem.attributes.image, i0__namespace.ɵɵsanitizeUrl);
12169
12369
  i0__namespace.ɵɵadvance(3);
12170
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.basketEntry.selectedItem.attributes.brand, " ");
12370
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.product.basketEntry.selectedItem.attributes.brand, " ");
12171
12371
  i0__namespace.ɵɵadvance(2);
12172
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.basketEntry.selectedItem.attributes.name, " ");
12372
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.product.basketEntry.selectedItem.attributes.name, " ");
12173
12373
  i0__namespace.ɵɵadvance(3);
12174
- i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind2(12, 9, ctx_r1.basketEntry.selectedItem.capacityVolume, "1.0-2"), " ", ctx_r1.basketEntry.selectedItem.capacityUnit, " ");
12374
+ i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind2(12, 9, ctx_r1.product.basketEntry.selectedItem.capacityVolume, "1.0-2"), " ", ctx_r1.product.basketEntry.selectedItem.capacityUnit, " ");
12175
12375
  i0__namespace.ɵɵadvance(2);
12176
12376
  i0__namespace.ɵɵproperty("ngIf", ctx_r1.isSponsored);
12177
12377
  i0__namespace.ɵɵadvance(6);
12178
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(20, 12, ctx_r1.updatedPrice, ctx_r1.basketEntry.selectedItem.attributes.currency), " ");
12378
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(20, 12, ctx_r1.product.price.unit, ctx_r1.product.basketEntry.selectedItem.attributes.currency), " ");
12179
12379
  i0__namespace.ɵɵadvance(3);
12180
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.basketEntry.status === "initial");
12380
+ i0__namespace.ɵɵproperty("ngIf", ctx_r1.product.basketEntry.status === "initial");
12181
12381
  i0__namespace.ɵɵadvance(1);
12182
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.basketEntry.status === "active");
12382
+ i0__namespace.ɵɵproperty("ngIf", ctx_r1.product.basketEntry.status === "active");
12183
12383
  }
12184
12384
  }
12185
12385
  function ProductCardComponent_div_0_ng_template_12_ng_container_0_Template(rf, ctx) {
@@ -12214,9 +12414,9 @@
12214
12414
  }
12215
12415
  if (rf & 2) {
12216
12416
  var ctx_r3 = i0__namespace.ɵɵnextContext(2);
12217
- i0__namespace.ɵɵproperty("ngIf", ctx_r3.basketEntry.status === "ignored" || ctx_r3.basketEntry.status === "deleted" || ctx_r3.basketEntry.status === "often_deleted");
12417
+ i0__namespace.ɵɵproperty("ngIf", ctx_r3.product.basketEntry.status === "ignored" || ctx_r3.product.basketEntry.status === "deleted" || ctx_r3.product.basketEntry.status === "often_deleted");
12218
12418
  i0__namespace.ɵɵadvance(1);
12219
- i0__namespace.ɵɵproperty("ngIf", ctx_r3.basketEntry.status === "unavailable");
12419
+ i0__namespace.ɵɵproperty("ngIf", ctx_r3.product.basketEntry.status === "unavailable");
12220
12420
  }
12221
12421
  }
12222
12422
  function ProductCardComponent_div_0_div_14_Template(rf, ctx) {
@@ -12263,30 +12463,30 @@
12263
12463
  if (rf & 2) {
12264
12464
  var _r2 = i0__namespace.ɵɵreference(13);
12265
12465
  var ctx_r0 = i0__namespace.ɵɵnextContext();
12266
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(13, _c0$9, ctx_r0.basketEntry.status === "active", ctx_r0.basketEntry.status === "ignored" || ctx_r0.basketEntry.status === "deleted" || ctx_r0.basketEntry.status === "often_deleted" || ctx_r0.basketEntry.status === "unavailable"));
12466
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(13, _c0$9, ctx_r0.product.basketEntry.status === "active", ctx_r0.product.basketEntry.status === "ignored" || ctx_r0.product.basketEntry.status === "deleted" || ctx_r0.product.basketEntry.status === "often_deleted" || ctx_r0.product.basketEntry.status === "unavailable"));
12267
12467
  i0__namespace.ɵɵadvance(1);
12268
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(16, _c0$9, ctx_r0.basketEntry.status === "active", ctx_r0.basketEntry.status === "ignored" || ctx_r0.basketEntry.status === "deleted" || ctx_r0.basketEntry.status === "often_deleted" || ctx_r0.basketEntry.status === "unavailable"));
12468
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(16, _c0$9, ctx_r0.product.basketEntry.status === "active", ctx_r0.product.basketEntry.status === "ignored" || ctx_r0.product.basketEntry.status === "deleted" || ctx_r0.product.basketEntry.status === "often_deleted" || ctx_r0.product.basketEntry.status === "unavailable"));
12269
12469
  i0__namespace.ɵɵadvance(1);
12270
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(19, _c1$5, ctx_r0.basketEntry.status === "ignored" || ctx_r0.basketEntry.status === "deleted" || ctx_r0.basketEntry.status === "often_deleted" || ctx_r0.basketEntry.status === "unavailable"));
12470
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(19, _c1$5, ctx_r0.product.basketEntry.status === "ignored" || ctx_r0.product.basketEntry.status === "deleted" || ctx_r0.product.basketEntry.status === "often_deleted" || ctx_r0.product.basketEntry.status === "unavailable"));
12271
12471
  i0__namespace.ɵɵadvance(1);
12272
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 11, ctx_r0.basketEntry.name), " ");
12472
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 11, ctx_r0.product.basketEntry.name), " ");
12273
12473
  i0__namespace.ɵɵadvance(2);
12274
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(21, _c1$5, ctx_r0.basketEntry.status === "ignored" || ctx_r0.basketEntry.status === "deleted" || ctx_r0.basketEntry.status === "often_deleted" || ctx_r0.basketEntry.status === "unavailable"));
12474
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(21, _c1$5, ctx_r0.product.basketEntry.status === "ignored" || ctx_r0.product.basketEntry.status === "deleted" || ctx_r0.product.basketEntry.status === "often_deleted" || ctx_r0.product.basketEntry.status === "unavailable"));
12275
12475
  i0__namespace.ɵɵadvance(2);
12276
12476
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.modifiedIngQty, " ");
12277
12477
  i0__namespace.ɵɵadvance(2);
12278
- i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.ingredient.attributes.unit, " ");
12478
+ i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.product.ingredient.attributes.unit, " ");
12279
12479
  i0__namespace.ɵɵadvance(1);
12280
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(23, _c2$3, !(ctx_r0.basketEntry.status === "initial" || ctx_r0.basketEntry.status === "active")));
12480
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(23, _c2$3, !(ctx_r0.product.basketEntry.status === "initial" || ctx_r0.product.basketEntry.status === "active")));
12281
12481
  i0__namespace.ɵɵadvance(1);
12282
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.basketEntry.status === "initial" || ctx_r0.basketEntry.status === "active")("ngIfElse", _r2);
12482
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.product.basketEntry.status === "initial" || ctx_r0.product.basketEntry.status === "active")("ngIfElse", _r2);
12283
12483
  i0__namespace.ɵɵadvance(3);
12284
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.recipesIncludingIngredient > 1 && ctx_r0.basketEntry.status === "active");
12484
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.recipesIncludingIngredient > 1 && ctx_r0.product.basketEntry.status === "active");
12285
12485
  }
12286
12486
  }
12287
12487
  var ProductCardComponent = /** @class */ (function (_super) {
12288
12488
  __extends(ProductCardComponent, _super);
12289
- function ProductCardComponent(cdr, basketsService, recipeDetailsService, recipesService, analyticsService, itemsService, ignoredBasketsService, elementRef) {
12489
+ function ProductCardComponent(cdr, basketsService, recipeDetailsService, recipesService, analyticsService, itemsService, ignoredBasketsService, basketActionsService, elementRef) {
12290
12490
  var _this = _super.call(this, analyticsService) || this;
12291
12491
  _this.cdr = cdr;
12292
12492
  _this.basketsService = basketsService;
@@ -12295,6 +12495,7 @@
12295
12495
  _this.analyticsService = analyticsService;
12296
12496
  _this.itemsService = itemsService;
12297
12497
  _this.ignoredBasketsService = ignoredBasketsService;
12498
+ _this.basketActionsService = basketActionsService;
12298
12499
  _this.elementRef = elementRef;
12299
12500
  _this.subscriptions = [];
12300
12501
  _this.recipesIncludingIngredient = 0;
@@ -12302,21 +12503,20 @@
12302
12503
  _this.loadingAddToBasket = false;
12303
12504
  _this.counterMinusLoading = false;
12304
12505
  _this.disabled = false;
12305
- _this.updatedPrice = '';
12306
12506
  _this.isSponsored = false;
12507
+ // Both below are used only for stored actions
12508
+ _this.searchString = '';
12307
12509
  return _this;
12308
12510
  }
12309
12511
  ProductCardComponent.prototype.ngOnInit = function () {
12310
12512
  var _this = this;
12311
- this.subscriptions.push(this.recipeDetailsService.productsByCategory$.subscribe(function () { return _this.isProductSponsored(); }), this.loadOnRecipesActions(), this.loadOnIngredientsRemoval(), this.updateIngredientQuantityOnRecipeChange());
12513
+ this.subscriptions.push(this.recipeDetailsService.productsByCategory$.subscribe(function () { return _this.isProductSponsored(); }), this.executeActionFromStorage(), this.loadOnRecipesActions(), this.loadOnIngredientsRemoval(), this.updateIngredientQuantityOnRecipeChange());
12312
12514
  };
12313
12515
  ProductCardComponent.prototype.ngOnChanges = function (changes) {
12314
- this.updatePriceForItem();
12315
- this.getProductCardState();
12316
12516
  this.recipesIncludingIngredient = this.isInXRecipes();
12317
12517
  this.loadingAddToBasket = false;
12318
12518
  if (changes.ingredient) {
12319
- this.modifiedIngQty = +this.ingredient.quantity;
12519
+ this.modifiedIngQty = +this.product.ingredient.quantity;
12320
12520
  }
12321
12521
  this.cdr.detectChanges();
12322
12522
  };
@@ -12324,6 +12524,17 @@
12324
12524
  var _a;
12325
12525
  (_a = this.subscriptions) === null || _a === void 0 ? void 0 : _a.forEach(function (sub) { return sub.unsubscribe(); });
12326
12526
  };
12527
+ ProductCardComponent.prototype.executeActionFromStorage = function () {
12528
+ var _this = this;
12529
+ return this.recipeDetailsService.productsByCategory$.pipe(operators.skipWhile(function (products) { return products.toPickProducts.length === 0; }), operators.take(1), operators.switchMap(function () { return _this.basketActionsService.shouldExecuteBasketAction.pipe(operators.skipWhile(function (method) { return !method; })); })).subscribe(function (parsedMethod) {
12530
+ if (parsedMethod.method === 'addIngredientToBasket' &&
12531
+ parsedMethod.arguments.ingredientId === _this.product.ingredient.id &&
12532
+ _this.product.basketEntry.status === 'initial') {
12533
+ _this.replaceItemForStoredAction(parsedMethod);
12534
+ _this.addToBasket();
12535
+ }
12536
+ });
12537
+ };
12327
12538
  ProductCardComponent.prototype.updateIngredientQuantityOnRecipeChange = function () {
12328
12539
  var _this = this;
12329
12540
  return this.recipesService.displayedRecipeChanged$.subscribe(function () {
@@ -12332,63 +12543,53 @@
12332
12543
  _this.isProductSponsored();
12333
12544
  // If the recipe-details is displayed solo, recipesService.displayedRecipe$ has no value, so modifiedIngQty will be NaN
12334
12545
  if (recipe) {
12335
- _this.modifiedIngQty = +((_b = recipe.modifiedIngredients.find(function (i) { return i.name === _this.ingredient.attributes.name; })) === null || _b === void 0 ? void 0 : _b.qty.toFixed(2));
12546
+ _this.modifiedIngQty = +((_b = recipe.modifiedIngredients.find(function (i) { return i.name === _this.product.ingredient.attributes.name; })) === null || _b === void 0 ? void 0 : _b.qty.toFixed(2));
12336
12547
  }
12337
12548
  _this.cdr.detectChanges();
12338
12549
  });
12339
12550
  };
12340
- ProductCardComponent.prototype.updatePriceForItem = function () {
12341
- var _this = this;
12342
- if (this.basketEntry.selectedItem) {
12343
- this.subscriptions.push(this.itemsService.getPriceForItem(this.basketEntry.selectedItem.id).pipe(operators.tap(function (response) { return _this.updatedPrice = response.price; })).subscribe(function () {
12344
- _this.cdr.detectChanges();
12345
- }));
12346
- }
12347
- };
12348
- ProductCardComponent.prototype.getProductCardState = function () {
12349
- if (!['often_deleted', 'deleted', 'ignored'].includes(this.basketEntry.status)) {
12350
- var _c = this.basketEntry, id = _c.id, selectedItem = _c.selectedItem, recipesIds = _c.recipesIds;
12351
- if (id === '-1') {
12352
- this.basketEntry.status = selectedItem ? 'initial' : 'unavailable';
12353
- }
12354
- else {
12355
- var isRecipeActive = recipesIds.includes(+this.recipeDetailsService.recipe.id);
12356
- this.basketEntry.status = isRecipeActive ? 'active' : 'initial';
12357
- }
12358
- }
12359
- };
12360
12551
  ProductCardComponent.prototype.counterChanged = function (newCount) {
12361
12552
  if (newCount === 0) {
12362
- this.recipeDetailsService.ingredientRemoved(this.ingredient, this.eventTrace());
12553
+ this.recipeDetailsService.ingredientRemoved(this.product.ingredient, this.eventTrace());
12363
12554
  this.cdr.detectChanges();
12364
12555
  }
12365
12556
  else {
12366
- this.recipeDetailsService.updateProductQuantity(this.basketEntry, newCount, this.eventTrace());
12557
+ this.recipeDetailsService.updateProductQuantity(this.product.basketEntry, newCount, this.eventTrace());
12367
12558
  }
12559
+ this.recipeDetailsService.updateIngredientFromBasketLoading = true;
12368
12560
  };
12369
12561
  ProductCardComponent.prototype.addToBasket = function () {
12370
12562
  var _this = this;
12371
- this.loadingAddToBasket = true;
12372
12563
  var recipe = this.recipeDetailsService.recipe;
12373
- this.subscriptions.push(this.recipeDetailsService.canAddProductToBasket(this.eventTrace()).subscribe(function () {
12374
- _this.basketsService.addIngredientsToBasket(recipe.id, [{ ingredientId: _this.ingredient.id, entry: _this.basketEntry }], _this.eventTrace());
12564
+ this.subscriptions.push(this.recipeDetailsService.canAddProductToBasket({
12565
+ method: 'addIngredientToBasket',
12566
+ arguments: {
12567
+ recipeId: recipe.id, ingredientId: this.product.ingredient.id, entry: this.product.basketEntry, eventTrace: this.eventTrace()
12568
+ }
12569
+ }, this.eventTrace()).subscribe(function (res) {
12570
+ if (res) {
12571
+ _this.loadingAddToBasket = true;
12572
+ _this.recipeDetailsService.ingredientToBasketLoading = true;
12573
+ _this.basketsService.addIngredientsToBasket(recipe.id, [{ ingredientId: _this.product.ingredient.id, entry: _this.product.basketEntry }], _this.eventTrace(), _this.previousItem, _this.searchString);
12574
+ }
12375
12575
  }));
12376
12576
  };
12377
12577
  ProductCardComponent.prototype.ignoreProduct = function () {
12378
- this.basketEntry.status = 'ignored';
12379
- this.ignoredBasketsService.addIgnoredIngredients(this.ingredient.id);
12578
+ this.product.basketEntry.status = 'ignored';
12579
+ this.ignoredBasketsService.addIgnoredIngredients(this.product.ingredient.id);
12580
+ this.recipeDetailsService.updateRecipePrice(this.product, true);
12380
12581
  this.recipeDetailsService.updateFooterDisplay$.next();
12381
12582
  this.cdr.detectChanges();
12382
12583
  };
12383
12584
  ProductCardComponent.prototype.replaceProduct = function (ignoreSelected) {
12384
12585
  this.recipeDetailsService.scrollBackToElementId = this.elementRef.nativeElement.id;
12385
- this.recipeDetailsService.replaceBasketEntry(this.basketEntry, ignoreSelected);
12586
+ this.recipeDetailsService.replaceBasketEntry(this.product.basketEntry, ignoreSelected);
12386
12587
  };
12387
12588
  ProductCardComponent.prototype.isInXRecipes = function () {
12388
- if (this.basketEntry.status !== 'active') {
12589
+ if (this.product.basketEntry.status !== 'active') {
12389
12590
  return 1;
12390
12591
  }
12391
- return this.basketEntry.recipesIds.length;
12592
+ return this.product.basketEntry.recipesIds.length;
12392
12593
  };
12393
12594
  ProductCardComponent.prototype.currentPath = function () {
12394
12595
  return '';
@@ -12407,25 +12608,38 @@
12407
12608
  };
12408
12609
  ProductCardComponent.prototype.loadOnIngredientsRemoval = function () {
12409
12610
  var _this = this;
12410
- return this.basketsService.ingredientWillBeRemoved(this.ingredient.id).subscribe(function (isLoading) {
12611
+ return this.basketsService.ingredientWillBeRemoved(this.product.ingredient.id).subscribe(function (isLoading) {
12411
12612
  _this.counterMinusLoading = isLoading;
12412
12613
  _this.cdr.detectChanges();
12413
12614
  });
12414
12615
  };
12415
12616
  ProductCardComponent.prototype.isProductSponsored = function () {
12416
12617
  var _a;
12417
- this.isSponsored = this.recipeDetailsService.isSponsored && ((_a = this.ingredient.forcedEans) === null || _a === void 0 ? void 0 : _a.length) > 0;
12618
+ this.isSponsored = this.recipeDetailsService.isSponsored && ((_a = this.product.ingredient.forcedEans) === null || _a === void 0 ? void 0 : _a.length) > 0;
12418
12619
  this.cdr.detectChanges();
12419
12620
  };
12621
+ ProductCardComponent.prototype.replaceItemForStoredAction = function (parsedMethod) {
12622
+ if (parsedMethod.arguments.entry.relationships['selected-item'].data.id !== this.product.basketEntry.selectedItem.id) {
12623
+ if (this.product.basketEntry.status === 'ignored') {
12624
+ this.ignoredBasketsService.removeIngredientFromIgnored(this.product.ingredient.id);
12625
+ }
12626
+ this.previousItem = this.product.basketEntry.selectedItem;
12627
+ if (this.product.basketEntry.selectedItem) {
12628
+ this.product.basketEntry.removeRelationship('selected-item', this.product.basketEntry.selectedItem.id);
12629
+ }
12630
+ this.searchString = parsedMethod.arguments.searchString || '';
12631
+ this.product.basketEntry.addRelationship(parsedMethod.arguments.entry.relationships['selected-item'].data, 'selected-item');
12632
+ }
12633
+ };
12420
12634
  return ProductCardComponent;
12421
12635
  }(EventTracerComponent));
12422
- ProductCardComponent.ɵfac = function ProductCardComponent_Factory(t) { return new (t || ProductCardComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(ItemsService), i0__namespace.ɵɵdirectiveInject(IgnoredIngredientsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
12423
- ProductCardComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ProductCardComponent, selectors: [["ng-miam-product-card"]], inputs: { basketEntry: "basketEntry", ingredient: "ingredient" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "miam-product-card__container", 3, "ngClass", 4, "ngIf"], [1, "miam-product-card__container", 3, "ngClass"], [1, "miam-product-card__header", 3, "ngClass"], [1, "miam-product-card__header-name", "miam-ds-text", "size-l", "weight-xxl", 3, "ngClass"], [1, "miam-product-card__header-quantity", "miam-ds-text", "size-s", "weight-l", 3, "ngClass"], [1, "miam-product-card__content", 3, "ngClass"], [4, "ngIf", "ngIfElse"], ["disabledProduct", ""], ["class", "miam-product-card__footer", 4, "ngIf"], [1, "miam-product-card__selected-product"], [1, "miam-product-card__picture-column"], ["alt", "product picture", 1, "miam-product-card__picture", 3, "src"], [1, "miam-product-card__info-column"], [1, "miam-ds-text", "size-xs", "weight-xl", "miam-product-card__details", "product-brand"], [1, "miam-ds-text", "size-xs", "miam-product-card__details", "product-fullname"], [1, "miam-product-card__badges"], [1, "miam-ds-badge"], ["class", "miam-ds-badge outline", 4, "ngIf"], [1, "miam-ds-button", "ghost", 3, "click"], [1, "miam-product-card__lower-action"], [1, "miam-product-card__price", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-product-card__cta"], [4, "ngIf"], [1, "miam-ds-badge", "outline"], [1, "miam-ds-button", "miam-product-card__ignore-product", "ghost", "small", 3, "click"], [1, "miam-product-card__disabled-text"], ["class", "miam-ds-button miam-product-card__add-product square primary", 3, "disabled", "click", 4, "ngIf"], ["class", "miam-ds-button miam-product-card__loading-button square primary", 4, "ngIf"], [1, "miam-ds-button", "miam-product-card__add-product", "square", "primary", 3, "disabled", "click"], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], [1, "miam-ds-button", "miam-product-card__loading-button", "square", "primary"], [1, "miam-ds-loader"], ["minRange", "0", 3, "value", "minusLoading", "valueChange"], [1, "miam-ds-text", "miam-product-card__disabled-text"], [1, "miam-product-card__footer"], [1, "miam-ds-text", "size-xs", "weight-xl", "light-text"]], template: function ProductCardComponent_Template(rf, ctx) {
12636
+ ProductCardComponent.ɵfac = function ProductCardComponent_Factory(t) { return new (t || ProductCardComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(ItemsService), i0__namespace.ɵɵdirectiveInject(IgnoredIngredientsService), i0__namespace.ɵɵdirectiveInject(BasketActionsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
12637
+ ProductCardComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ProductCardComponent, selectors: [["ng-miam-product-card"]], inputs: { product: "product" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "miam-product-card__container", 3, "ngClass", 4, "ngIf"], [1, "miam-product-card__container", 3, "ngClass"], [1, "miam-product-card__header", 3, "ngClass"], [1, "miam-product-card__header-name", "miam-ds-text", "size-l", "weight-xxl", 3, "ngClass"], [1, "miam-product-card__header-quantity", "miam-ds-text", "size-s", "weight-l", 3, "ngClass"], [1, "miam-product-card__content", 3, "ngClass"], [4, "ngIf", "ngIfElse"], ["disabledProduct", ""], ["class", "miam-product-card__footer", 4, "ngIf"], [1, "miam-product-card__selected-product"], [1, "miam-product-card__picture-column"], ["alt", "product picture", 1, "miam-product-card__picture", 3, "src"], [1, "miam-product-card__info-column"], [1, "miam-ds-text", "size-xs", "weight-xl", "miam-product-card__details", "product-brand"], [1, "miam-ds-text", "size-xs", "miam-product-card__details", "product-fullname"], [1, "miam-product-card__badges"], [1, "miam-ds-badge"], ["class", "miam-ds-badge outline", 4, "ngIf"], [1, "miam-ds-button", "ghost", 3, "click"], [1, "miam-product-card__lower-action"], [1, "miam-product-card__price", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-product-card__cta"], [4, "ngIf"], [1, "miam-ds-badge", "outline"], [1, "miam-ds-button", "miam-product-card__ignore-product", "ghost", "small", 3, "click"], [1, "miam-product-card__disabled-text"], ["class", "miam-ds-button miam-product-card__add-product square primary", 3, "disabled", "click", 4, "ngIf"], ["class", "miam-ds-button miam-product-card__loading-button square primary", 4, "ngIf"], [1, "miam-ds-button", "miam-product-card__add-product", "square", "primary", 3, "disabled", "click"], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], [1, "miam-ds-button", "miam-product-card__loading-button", "square", "primary"], [1, "miam-ds-loader"], ["minRange", "0", 3, "value", "minusLoading", "valueChange"], [1, "miam-ds-text", "miam-product-card__disabled-text"], [1, "miam-product-card__footer"], [1, "miam-ds-text", "size-xs", "weight-xl", "light-text"]], template: function ProductCardComponent_Template(rf, ctx) {
12424
12638
  if (rf & 1) {
12425
12639
  i0__namespace.ɵɵtemplate(0, ProductCardComponent_div_0_Template, 15, 25, "div", 0);
12426
12640
  }
12427
12641
  if (rf & 2) {
12428
- i0__namespace.ɵɵproperty("ngIf", ctx.basketEntry);
12642
+ i0__namespace.ɵɵproperty("ngIf", ctx.product.basketEntry);
12429
12643
  }
12430
12644
  }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgClass, CounterInputComponent], pipes: [CapitalizeFirstLetterPipe, i2__namespace$1.DecimalPipe, i2__namespace$1.CurrencyPipe, i2__namespace$1.AsyncPipe], styles: [".miam-product-card__container{display:flex;flex-direction:column;box-sizing:border-box;height:100%;border-radius:8px;overflow:hidden;border:1px solid var(--miam-ds-color-primary-100,#e4eaec);background:var(--miam-ds-color-primary-text,#fff);transition:all .3s}.miam-product-card__container.added{border:1px solid var(--miam-ds-color-primary,#24748f);background:var(--miam-ds-color-primary-text,#fff)}.miam-product-card__container .miam-product-card__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:8px;color:var(--miam-ds-color-neutral-black,#1f3543);background:var(--miam-ds-color-primary-100,#e4eaec);transition:all .3s}.miam-product-card__container .miam-product-card__header.added{background:var(--miam-ds-color-primary,#24748f);color:var(--core-background-background-primary,#fff)}.miam-product-card__container .miam-product-card__header.disabled{background:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__header .miam-product-card__header-quantity{text-align:right}.miam-product-card__container .miam-product-card__content{padding:8px 12px;height:100%;display:flex;flex-direction:column;gap:12px;background-color:var(--miam-ds-color-neutral-white,#fff);transition:background-color .3s}.miam-product-card__container .miam-product-card__content.disabled{justify-content:center;align-items:center;gap:12px;padding:12px;text-align:center;background-color:var(--miam-ds-color-neutral-200,#d9dde1)}@media (max-width:1023px){.miam-product-card__container .miam-product-card__content{padding:12px}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content{padding:12px}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%}@media (max-width:1023px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:16px}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:16px}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__picture{height:72px;width:72px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{display:flex;flex-direction:column;align-items:center;justify-content:center}@media (max-width:1023px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{align-items:flex-start}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{align-items:flex-start}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details{font-size:12px!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-brand{text-transform:uppercase}@media screen{.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-fullname{height:36px}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__link{font-size:14px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__badges{display:flex;gap:8px;margin:8px 0}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__badges .miam-product-card__badge-text{color:var(--miam-ds-color-neutral-black,#1f3543);font-size:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action{display:flex;align-items:center;justify-content:space-between;gap:8px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta{display:flex;align-items:center;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.square{padding:8px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-product-card__loading-button{padding:14px}@media (max-width:1024px){.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__price{color:var(--miam-ds-color-primary,#24748f)}.miam-product-card__container .miam-product-card__disabled-text{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.65}.miam-product-card__container .miam-product-card__footer{display:flex;flex-direction:column;align-items:center;background:var(--miam-ds-color-primary-50,#f0f3f4);padding:8px}.miam-product-card__container .miam-product-card__footer .light-text{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.5}"], encapsulation: 2, changeDetection: 0 });
12431
12645
  (function () {
@@ -12438,9 +12652,7 @@
12438
12652
  encapsulation: i0.ViewEncapsulation.None,
12439
12653
  changeDetection: i0.ChangeDetectionStrategy.OnPush
12440
12654
  }]
12441
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: RecipesService }, { type: AnalyticsService }, { type: ItemsService }, { type: IgnoredIngredientsService }, { type: i0__namespace.ElementRef }]; }, { basketEntry: [{
12442
- type: i0.Input
12443
- }], ingredient: [{
12655
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: RecipesService }, { type: AnalyticsService }, { type: ItemsService }, { type: IgnoredIngredientsService }, { type: BasketActionsService }, { type: i0__namespace.ElementRef }]; }, { product: [{
12444
12656
  type: i0.Input
12445
12657
  }] });
12446
12658
  })();
@@ -12540,22 +12752,22 @@
12540
12752
 
12541
12753
  function ProductsPickerComponent_div_5_Template(rf, ctx) {
12542
12754
  if (rf & 1) {
12543
- i0__namespace.ɵɵelement(0, "div", 10);
12755
+ i0__namespace.ɵɵelement(0, "div", 11);
12544
12756
  }
12545
12757
  }
12546
12758
  function ProductsPickerComponent_div_7_ng_miam_product_card_1_Template(rf, ctx) {
12547
12759
  if (rf & 1) {
12548
- i0__namespace.ɵɵelement(0, "ng-miam-product-card", 13);
12760
+ i0__namespace.ɵɵelement(0, "ng-miam-product-card", 14);
12549
12761
  }
12550
12762
  if (rf & 2) {
12551
12763
  var product_r8 = ctx.$implicit;
12552
- i0__namespace.ɵɵproperty("id", "miam_" + product_r8.basketEntry.nameId + "_product_card")("basketEntry", product_r8.basketEntry)("ingredient", product_r8.ingredient);
12764
+ i0__namespace.ɵɵproperty("id", "miam_" + product_r8.basketEntry.nameId + "_product_card")("product", product_r8);
12553
12765
  }
12554
12766
  }
12555
12767
  function ProductsPickerComponent_div_7_Template(rf, ctx) {
12556
12768
  if (rf & 1) {
12557
- i0__namespace.ɵɵelementStart(0, "div", 11);
12558
- i0__namespace.ɵɵtemplate(1, ProductsPickerComponent_div_7_ng_miam_product_card_1_Template, 1, 3, "ng-miam-product-card", 12);
12769
+ i0__namespace.ɵɵelementStart(0, "div", 12);
12770
+ i0__namespace.ɵɵtemplate(1, ProductsPickerComponent_div_7_ng_miam_product_card_1_Template, 1, 2, "ng-miam-product-card", 13);
12559
12771
  i0__namespace.ɵɵelementEnd();
12560
12772
  }
12561
12773
  if (rf & 2) {
@@ -12564,33 +12776,33 @@
12564
12776
  i0__namespace.ɵɵproperty("ngForOf", ctx_r1.recipeDetailsService.productsByCategory.toPickProducts)("ngForTrackBy", ctx_r1.trackByFn);
12565
12777
  }
12566
12778
  }
12567
- function ProductsPickerComponent_div_9_ng_miam_product_card_7_Template(rf, ctx) {
12779
+ function ProductsPickerComponent_ng_container_10_ng_miam_product_card_7_Template(rf, ctx) {
12568
12780
  if (rf & 1) {
12569
- i0__namespace.ɵɵelement(0, "ng-miam-product-card", 13);
12781
+ i0__namespace.ɵɵelement(0, "ng-miam-product-card", 14);
12570
12782
  }
12571
12783
  if (rf & 2) {
12572
12784
  var product_r10 = ctx.$implicit;
12573
- i0__namespace.ɵɵproperty("id", "miam_" + product_r10.basketEntry.nameId + "_product_card")("basketEntry", product_r10.basketEntry)("ingredient", product_r10.ingredient);
12785
+ i0__namespace.ɵɵproperty("id", "miam_" + product_r10.basketEntry.nameId + "_product_card")("product", product_r10);
12574
12786
  }
12575
12787
  }
12576
- function ProductsPickerComponent_div_9_Template(rf, ctx) {
12788
+ function ProductsPickerComponent_ng_container_10_Template(rf, ctx) {
12577
12789
  if (rf & 1) {
12578
12790
  var _r12_1 = i0__namespace.ɵɵgetCurrentView();
12579
- i0__namespace.ɵɵelementStart(0, "div");
12580
- i0__namespace.ɵɵelementStart(1, "ng-miam-accordion", 14);
12581
- i0__namespace.ɵɵlistener("isCollapsedChange", function ProductsPickerComponent_div_9_Template_ng_miam_accordion_isCollapsedChange_1_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.cdr.detectChanges(); });
12791
+ i0__namespace.ɵɵelementContainerStart(0);
12792
+ i0__namespace.ɵɵelementStart(1, "ng-miam-accordion", 15);
12793
+ i0__namespace.ɵɵlistener("isCollapsedChange", function ProductsPickerComponent_ng_container_10_Template_ng_miam_accordion_isCollapsedChange_1_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.cdr.detectChanges(); });
12582
12794
  i0__namespace.ɵɵelementStart(2, "ng-miam-accordion-title");
12583
12795
  i0__namespace.ɵɵelementStart(3, "span", 2);
12584
12796
  i0__namespace.ɵɵtext(4, " D\u00E9j\u00E0 dans le placard ");
12585
12797
  i0__namespace.ɵɵelementEnd();
12586
12798
  i0__namespace.ɵɵelementEnd();
12587
12799
  i0__namespace.ɵɵelementStart(5, "ng-miam-accordion-content");
12588
- i0__namespace.ɵɵelementStart(6, "div", 11);
12589
- i0__namespace.ɵɵtemplate(7, ProductsPickerComponent_div_9_ng_miam_product_card_7_Template, 1, 3, "ng-miam-product-card", 12);
12590
- i0__namespace.ɵɵelementEnd();
12800
+ i0__namespace.ɵɵelementStart(6, "div", 12);
12801
+ i0__namespace.ɵɵtemplate(7, ProductsPickerComponent_ng_container_10_ng_miam_product_card_7_Template, 1, 2, "ng-miam-product-card", 13);
12591
12802
  i0__namespace.ɵɵelementEnd();
12592
12803
  i0__namespace.ɵɵelementEnd();
12593
12804
  i0__namespace.ɵɵelementEnd();
12805
+ i0__namespace.ɵɵelementContainerEnd();
12594
12806
  }
12595
12807
  if (rf & 2) {
12596
12808
  var ctx_r2 = i0__namespace.ɵɵnextContext();
@@ -12600,31 +12812,31 @@
12600
12812
  i0__namespace.ɵɵproperty("ngForOf", ctx_r2.recipeDetailsService.productsByCategory.oftenIgnoredProducts)("ngForTrackBy", ctx_r2.trackByFn);
12601
12813
  }
12602
12814
  }
12603
- function ProductsPickerComponent_div_10_ng_miam_product_card_6_Template(rf, ctx) {
12815
+ function ProductsPickerComponent_ng_container_11_ng_miam_product_card_6_Template(rf, ctx) {
12604
12816
  if (rf & 1) {
12605
- i0__namespace.ɵɵelement(0, "ng-miam-product-card", 13);
12817
+ i0__namespace.ɵɵelement(0, "ng-miam-product-card", 14);
12606
12818
  }
12607
12819
  if (rf & 2) {
12608
12820
  var product_r14 = ctx.$implicit;
12609
- i0__namespace.ɵɵproperty("id", "miam_" + product_r14.basketEntry.nameId + "_product_card")("basketEntry", product_r14.basketEntry)("ingredient", product_r14.ingredient);
12821
+ i0__namespace.ɵɵproperty("id", "miam_" + product_r14.basketEntry.nameId + "_product_card")("product", product_r14);
12610
12822
  }
12611
12823
  }
12612
- function ProductsPickerComponent_div_10_Template(rf, ctx) {
12824
+ function ProductsPickerComponent_ng_container_11_Template(rf, ctx) {
12613
12825
  if (rf & 1) {
12614
12826
  var _r16_1 = i0__namespace.ɵɵgetCurrentView();
12615
- i0__namespace.ɵɵelementStart(0, "div");
12616
- i0__namespace.ɵɵelementStart(1, "ng-miam-accordion", 14);
12617
- i0__namespace.ɵɵlistener("isCollapsedChange", function ProductsPickerComponent_div_10_Template_ng_miam_accordion_isCollapsedChange_1_listener() { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.cdr.detectChanges(); });
12827
+ i0__namespace.ɵɵelementContainerStart(0);
12828
+ i0__namespace.ɵɵelementStart(1, "ng-miam-accordion", 16);
12829
+ i0__namespace.ɵɵlistener("isCollapsedChange", function ProductsPickerComponent_ng_container_11_Template_ng_miam_accordion_isCollapsedChange_1_listener() { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.cdr.detectChanges(); });
12618
12830
  i0__namespace.ɵɵelementStart(2, "ng-miam-accordion-title");
12619
12831
  i0__namespace.ɵɵtext(3, " Articles indisponibles ");
12620
12832
  i0__namespace.ɵɵelementEnd();
12621
12833
  i0__namespace.ɵɵelementStart(4, "ng-miam-accordion-content");
12622
- i0__namespace.ɵɵelementStart(5, "div", 11);
12623
- i0__namespace.ɵɵtemplate(6, ProductsPickerComponent_div_10_ng_miam_product_card_6_Template, 1, 3, "ng-miam-product-card", 12);
12624
- i0__namespace.ɵɵelementEnd();
12834
+ i0__namespace.ɵɵelementStart(5, "div", 12);
12835
+ i0__namespace.ɵɵtemplate(6, ProductsPickerComponent_ng_container_11_ng_miam_product_card_6_Template, 1, 2, "ng-miam-product-card", 13);
12625
12836
  i0__namespace.ɵɵelementEnd();
12626
12837
  i0__namespace.ɵɵelementEnd();
12627
12838
  i0__namespace.ɵɵelementEnd();
12839
+ i0__namespace.ɵɵelementContainerEnd();
12628
12840
  }
12629
12841
  if (rf & 2) {
12630
12842
  var ctx_r3 = i0__namespace.ɵɵnextContext();
@@ -12634,12 +12846,12 @@
12634
12846
  i0__namespace.ɵɵproperty("ngForOf", ctx_r3.recipeDetailsService.productsByCategory.unavailableProducts)("ngForTrackBy", ctx_r3.trackByFn);
12635
12847
  }
12636
12848
  }
12637
- function ProductsPickerComponent_a_12_Template(rf, ctx) {
12849
+ function ProductsPickerComponent_a_13_Template(rf, ctx) {
12638
12850
  if (rf & 1) {
12639
- i0__namespace.ɵɵelementStart(0, "a", 15);
12640
- i0__namespace.ɵɵelementStart(1, "button", 16);
12851
+ i0__namespace.ɵɵelementStart(0, "a", 17);
12852
+ i0__namespace.ɵɵelementStart(1, "button", 18);
12641
12853
  i0__namespace.ɵɵelementStart(2, "span");
12642
- i0__namespace.ɵɵi18n(3, 17);
12854
+ i0__namespace.ɵɵi18n(3, 19);
12643
12855
  i0__namespace.ɵɵelementEnd();
12644
12856
  i0__namespace.ɵɵelementEnd();
12645
12857
  i0__namespace.ɵɵelementEnd();
@@ -12649,13 +12861,13 @@
12649
12861
  i0__namespace.ɵɵproperty("href", ctx_r4.contextService.catalogUrl, i0__namespace.ɵɵsanitizeUrl);
12650
12862
  }
12651
12863
  }
12652
- function ProductsPickerComponent_ng_template_13_Template(rf, ctx) {
12864
+ function ProductsPickerComponent_ng_template_14_Template(rf, ctx) {
12653
12865
  if (rf & 1) {
12654
12866
  var _r18_1 = i0__namespace.ɵɵgetCurrentView();
12655
- i0__namespace.ɵɵelementStart(0, "button", 18);
12656
- i0__namespace.ɵɵlistener("click", function ProductsPickerComponent_ng_template_13_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.closeRecipeModal(); });
12867
+ i0__namespace.ɵɵelementStart(0, "button", 20);
12868
+ i0__namespace.ɵɵlistener("click", function ProductsPickerComponent_ng_template_14_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.closeRecipeModal(); });
12657
12869
  i0__namespace.ɵɵelementStart(1, "span");
12658
- i0__namespace.ɵɵi18n(2, 19);
12870
+ i0__namespace.ɵɵi18n(2, 21);
12659
12871
  i0__namespace.ɵɵelementEnd();
12660
12872
  i0__namespace.ɵɵelementEnd();
12661
12873
  }
@@ -12713,7 +12925,7 @@
12713
12925
  return ProductsPickerComponent;
12714
12926
  }());
12715
12927
  ProductsPickerComponent.ɵfac = function ProductsPickerComponent_Factory(t) { return new (t || ProductsPickerComponent)(i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
12716
- ProductsPickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ProductsPickerComponent, selectors: [["ng-miam-products-picker"]], outputs: { closeModal: "closeModal" }, decls: 15, vars: 11, consts: function () {
12928
+ ProductsPickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ProductsPickerComponent, selectors: [["ng-miam-products-picker"]], outputs: { closeModal: "closeModal" }, decls: 16, vars: 11, consts: function () {
12717
12929
  var i18n_0;
12718
12930
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
12719
12931
  var MSG_EXTERNAL_7935172570546041466$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS__1 = goog.getMsg("Voir plus d'id\u00E9es repas");
@@ -12730,7 +12942,7 @@
12730
12942
  else {
12731
12943
  i18n_2 = $localize(templateObject_2$s || (templateObject_2$s = __makeTemplateObject([":\u241Fe98c28a19e26d5768391fd181582d011334dac18\u241F7935172570546041466:Voir plus d'id\u00E9es repas"], [":\u241Fe98c28a19e26d5768391fd181582d011334dac18\u241F7935172570546041466:Voir plus d'id\u00E9es repas"])));
12732
12944
  }
12733
- return [[1, "miam-products-picker__container"], [1, "miam-products-picker__header"], [1, "miam-ds-text", "weight-xxl"], [1, "miam-products-picker__header-text"], ["class", " miam-ds-loader miam-products-picker__loader", 4, "ngIf"], ["class", "miam-products-picker__list", 4, "ngIf"], [4, "ngIf"], [1, "miam-products-picker__more"], ["class", "miam-products-picker__more-anchor", 3, "href", 4, "ngIf", "ngIfElse"], ["noAnchor", ""], [1, "miam-ds-loader", "miam-products-picker__loader"], [1, "miam-products-picker__list"], ["class", "miam-products-picker__items", 3, "id", "basketEntry", "ingredient", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-products-picker__items", 3, "id", "basketEntry", "ingredient"], [3, "isCollapsed", "isCollapsedChange"], [1, "miam-products-picker__more-anchor", 3, "href"], [1, "miam-ds-button", "secondary"], i18n_0, [1, "miam-ds-button", "secondary", 3, "click"], i18n_2];
12945
+ return [[1, "miam-products-picker__container"], [1, "miam-products-picker__header"], [1, "miam-ds-text", "weight-xxl"], [1, "miam-products-picker__header-text"], ["class", " miam-ds-loader miam-products-picker__loader", 4, "ngIf"], ["class", "miam-products-picker__list", 4, "ngIf"], [1, "miam-products-picker__secondary-list"], [4, "ngIf"], [1, "miam-products-picker__more"], ["class", "miam-products-picker__more-anchor", 3, "href", 4, "ngIf", "ngIfElse"], ["noAnchor", ""], [1, "miam-ds-loader", "miam-products-picker__loader"], [1, "miam-products-picker__list"], ["class", "miam-products-picker__items", 3, "id", "product", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-products-picker__items", 3, "id", "product"], [1, "miam-products-picker__often-ignored-list", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-products-picker__unavailable-list", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-products-picker__more-anchor", 3, "href"], [1, "miam-ds-button", "secondary"], i18n_0, [1, "miam-ds-button", "secondary", 3, "click"], i18n_2];
12734
12946
  }, template: function ProductsPickerComponent_Template(rf, ctx) {
12735
12947
  if (rf & 1) {
12736
12948
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -12745,30 +12957,32 @@
12745
12957
  i0__namespace.ɵɵpipe(6, "async");
12746
12958
  i0__namespace.ɵɵtemplate(7, ProductsPickerComponent_div_7_Template, 2, 2, "div", 5);
12747
12959
  i0__namespace.ɵɵpipe(8, "async");
12748
- i0__namespace.ɵɵtemplate(9, ProductsPickerComponent_div_9_Template, 8, 3, "div", 6);
12749
- i0__namespace.ɵɵtemplate(10, ProductsPickerComponent_div_10_Template, 7, 3, "div", 6);
12750
- i0__namespace.ɵɵelementStart(11, "div", 7);
12751
- i0__namespace.ɵɵtemplate(12, ProductsPickerComponent_a_12_Template, 4, 1, "a", 8);
12752
- i0__namespace.ɵɵtemplate(13, ProductsPickerComponent_ng_template_13_Template, 3, 0, "ng-template", null, 9, i0__namespace.ɵɵtemplateRefExtractor);
12960
+ i0__namespace.ɵɵelementStart(9, "div", 6);
12961
+ i0__namespace.ɵɵtemplate(10, ProductsPickerComponent_ng_container_10_Template, 8, 3, "ng-container", 7);
12962
+ i0__namespace.ɵɵtemplate(11, ProductsPickerComponent_ng_container_11_Template, 7, 3, "ng-container", 7);
12963
+ i0__namespace.ɵɵelementEnd();
12964
+ i0__namespace.ɵɵelementStart(12, "div", 8);
12965
+ i0__namespace.ɵɵtemplate(13, ProductsPickerComponent_a_13_Template, 4, 1, "a", 9);
12966
+ i0__namespace.ɵɵtemplate(14, ProductsPickerComponent_ng_template_14_Template, 3, 0, "ng-template", null, 10, i0__namespace.ɵɵtemplateRefExtractor);
12753
12967
  i0__namespace.ɵɵelementEnd();
12754
12968
  i0__namespace.ɵɵelementEnd();
12755
12969
  }
12756
12970
  if (rf & 2) {
12757
- var _r5 = i0__namespace.ɵɵreference(14);
12971
+ var _r5 = i0__namespace.ɵɵreference(15);
12758
12972
  i0__namespace.ɵɵadvance(4);
12759
12973
  i0__namespace.ɵɵtextInterpolate1("", ctx.recipeDetailsService.totalProducts, " ingr\u00E9dients");
12760
12974
  i0__namespace.ɵɵadvance(1);
12761
12975
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(6, 7, ctx.recipeDetailsService.productsLoading$));
12762
12976
  i0__namespace.ɵɵadvance(2);
12763
12977
  i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(8, 9, ctx.recipeDetailsService.productsLoading$));
12764
- i0__namespace.ɵɵadvance(2);
12978
+ i0__namespace.ɵɵadvance(3);
12765
12979
  i0__namespace.ɵɵproperty("ngIf", ctx.recipeDetailsService.productsByCategory.oftenIgnoredProducts.length > 0);
12766
12980
  i0__namespace.ɵɵadvance(1);
12767
12981
  i0__namespace.ɵɵproperty("ngIf", ctx.recipeDetailsService.productsByCategory.unavailableProducts.length > 0);
12768
12982
  i0__namespace.ɵɵadvance(2);
12769
12983
  i0__namespace.ɵɵproperty("ngIf", !ctx.isAlreadyOnCatalogPage())("ngIfElse", _r5);
12770
12984
  }
12771
- }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, ProductCardComponent, AccordionComponent, AccordionTitleDirective, AccordionContentDirective], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-products-picker__container{display:flex;flex-direction:column;gap:16px;padding:16px}.miam-products-picker__container .miam-products-picker__loader{margin:0 auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-products-picker__container .miam-products-picker__header{display:flex;justify-content:space-between;align-items:center}.miam-products-picker__container .miam-products-picker__header .miam-products-picker__header-text{font-size:16px;line-height:150%;color:var(--miam-ds-color-neutral-black,#1f3543)}@media (min-width:1024px){.miam-products-picker__container .miam-products-picker__header .miam-products-picker__header-text{font-size:20px;line-height:120%}}.miam-products-picker__container .miam-products-picker__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(298px,1fr));grid-gap:16px}@media (max-width:640px){.miam-products-picker__container .miam-products-picker__list{grid-gap:8px}}.miam-products-picker__container .miam-products-picker__more{display:flex;justify-content:center}.miam-products-picker__container .miam-products-picker__more .miam-products-picker__more-anchor{text-decoration:inherit}"], encapsulation: 2, changeDetection: 0 });
12985
+ }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, ProductCardComponent, AccordionComponent, AccordionTitleDirective, AccordionContentDirective], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-products-picker__container{display:flex;flex-direction:column;gap:16px;padding:16px}.miam-products-picker__container .miam-products-picker__loader{margin:0 auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-products-picker__container .miam-products-picker__header{display:flex;justify-content:space-between;align-items:center}.miam-products-picker__container .miam-products-picker__header .miam-products-picker__header-text{font-size:16px;line-height:150%;color:var(--miam-ds-color-neutral-black,#1f3543)}@media (min-width:1024px){.miam-products-picker__container .miam-products-picker__header .miam-products-picker__header-text{font-size:20px;line-height:120%}}.miam-products-picker__container .miam-products-picker__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));grid-gap:16px}@media (max-width:640px){.miam-products-picker__container .miam-products-picker__list{grid-gap:8px}}.miam-products-picker__container .miam-products-picker__secondary-list{display:flex;flex-direction:column}.miam-products-picker__container .miam-products-picker__more{display:flex;justify-content:center}.miam-products-picker__container .miam-products-picker__more .miam-products-picker__more-anchor{text-decoration:inherit}"], encapsulation: 2, changeDetection: 0 });
12772
12986
  (function () {
12773
12987
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ProductsPickerComponent, [{
12774
12988
  type: i0.Component,
@@ -12801,14 +13015,16 @@
12801
13015
  AutowidthInputDirective,
12802
13016
  ExtendedDatePipe,
12803
13017
  ReachTopDirective,
12804
- InViewportDirective], exports: [ReadableFloatNumberPipe,
13018
+ InViewportDirective,
13019
+ LoadOnScrollDirective], exports: [ReadableFloatNumberPipe,
12805
13020
  EllipsisPipe,
12806
13021
  SafePipe,
12807
13022
  CapitalizeFirstLetterPipe,
12808
13023
  AutowidthInputDirective,
12809
13024
  ExtendedDatePipe,
12810
13025
  ReachTopDirective,
12811
- InViewportDirective] });
13026
+ InViewportDirective,
13027
+ LoadOnScrollDirective] });
12812
13028
  })();
12813
13029
  (function () {
12814
13030
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UtilsModule, [{
@@ -12823,7 +13039,8 @@
12823
13039
  AutowidthInputDirective,
12824
13040
  ExtendedDatePipe,
12825
13041
  ReachTopDirective,
12826
- InViewportDirective
13042
+ InViewportDirective,
13043
+ LoadOnScrollDirective
12827
13044
  ],
12828
13045
  exports: [
12829
13046
  ReadableFloatNumberPipe,
@@ -12833,7 +13050,8 @@
12833
13050
  AutowidthInputDirective,
12834
13051
  ExtendedDatePipe,
12835
13052
  ReachTopDirective,
12836
- InViewportDirective
13053
+ InViewportDirective,
13054
+ LoadOnScrollDirective
12837
13055
  ]
12838
13056
  }]
12839
13057
  }], null, null);
@@ -13046,7 +13264,7 @@
13046
13264
  i0__namespace.ɵɵelement(0, "ng-miam-loader");
13047
13265
  }
13048
13266
  }
13049
- var _c10 = function (a0) { return { loading: a0 }; };
13267
+ var _c10$2 = function (a0) { return { loading: a0 }; };
13050
13268
  function BasketPreviewDisabledComponent_div_10_div_1_button_4_Template(rf, ctx) {
13051
13269
  if (rf & 1) {
13052
13270
  var _r12_1 = i0__namespace.ɵɵgetCurrentView();
@@ -13061,7 +13279,7 @@
13061
13279
  if (rf & 2) {
13062
13280
  var entry_r5 = i0__namespace.ɵɵnextContext().$implicit;
13063
13281
  var ctx_r6 = i0__namespace.ɵɵnextContext(2);
13064
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c10, ctx_r6.loading[entry_r5.id]));
13282
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c10$2, ctx_r6.loading[entry_r5.id]));
13065
13283
  i0__namespace.ɵɵadvance(1);
13066
13284
  i0__namespace.ɵɵproperty("ngIf", !ctx_r6.loading[entry_r5.id]);
13067
13285
  i0__namespace.ɵɵadvance(2);
@@ -13102,7 +13320,7 @@
13102
13320
  i0__namespace.ɵɵproperty("ngForOf", ctx_r3.entries);
13103
13321
  }
13104
13322
  }
13105
- var _c11$1 = function (a0) { return { "miam-basket-preview-disabled__chevron__down": a0 }; };
13323
+ var _c11 = function (a0) { return { "miam-basket-preview-disabled__chevron__down": a0 }; };
13106
13324
  var MODES_CONFIG = {
13107
13325
  unavailable: { cssClass: 'unavailable' },
13108
13326
  removed: { cssClass: 'removed' },
@@ -13198,7 +13416,7 @@
13198
13416
  i18n_8 = MSG_EXTERNAL_7632520172633395699$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_DISABLED_BASKET_PREVIEW_DISABLED_COMPONENT_TS_____9;
13199
13417
  }
13200
13418
  else {
13201
- i18n_8 = $localize(templateObject_5$e || (templateObject_5$e = __makeTemplateObject([":\u241Fe31c09107c2be79ac21e40a68b0f4ab125f4ab8b\u241F7632520172633395699: au panier"], [":\u241Fe31c09107c2be79ac21e40a68b0f4ab125f4ab8b\u241F7632520172633395699: au panier"])));
13419
+ i18n_8 = $localize(templateObject_5$d || (templateObject_5$d = __makeTemplateObject([":\u241Fe31c09107c2be79ac21e40a68b0f4ab125f4ab8b\u241F7632520172633395699: au panier"], [":\u241Fe31c09107c2be79ac21e40a68b0f4ab125f4ab8b\u241F7632520172633395699: au panier"])));
13202
13420
  }
13203
13421
  return [[1, "miam-basket-preview-disabled"], [1, "miam-basket-preview-disabled__header", 3, "ngClass", "click"], [1, "miam-basket-preview-disabled__header__caption"], ["class", "miam-basket-preview-disabled__header__caption__text", 4, "ngIf"], [1, "miam-basket-preview-disabled__header__caption__number"], [1, "miam-basket-preview-disabled__header__chevron", 3, "ngClass"], ["height", "32", "width", "32", "primaryColor", "#fff", 3, "iconName"], [4, "ngIf"], [1, "miam-basket-preview-disabled__header__caption__text"], i18n_0, i18n_2, i18n_4, ["class", "miam-basket-preview-disabled__entry", 4, "ngFor", "ngForOf"], [1, "miam-basket-preview-disabled__entry"], [1, "text-muted"], ["class", "m-button-grey", 3, "ngClass", "click", 4, "ngIf"], [1, "m-button-grey", 3, "ngClass", "click"], i18n_6, i18n_8];
13204
13422
  }, template: function BasketPreviewDisabledComponent_Template(rf, ctx) {
@@ -13233,7 +13451,7 @@
13233
13451
  i0__namespace.ɵɵadvance(2);
13234
13452
  i0__namespace.ɵɵtextInterpolate1(" (", ctx.entries.length, ") ");
13235
13453
  i0__namespace.ɵɵadvance(1);
13236
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c11$1, !ctx.reduced));
13454
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c11, !ctx.reduced));
13237
13455
  i0__namespace.ɵɵadvance(1);
13238
13456
  i0__namespace.ɵɵproperty("iconName", ctx.icon.ChevronDown);
13239
13457
  i0__namespace.ɵɵadvance(1);
@@ -13264,19 +13482,19 @@
13264
13482
  args: ['window:resize', ['$event']]
13265
13483
  }] });
13266
13484
  })();
13267
- var templateObject_1$x, templateObject_2$r, templateObject_3$k, templateObject_4$h, templateObject_5$e;
13485
+ var templateObject_1$x, templateObject_2$r, templateObject_3$k, templateObject_4$h, templateObject_5$d;
13268
13486
 
13269
- function BasketPreviewLineComponent_ng_container_0_img_23_Template(rf, ctx) {
13487
+ function BasketPreviewLineComponent_ng_container_0_img_32_Template(rf, ctx) {
13270
13488
  if (rf & 1) {
13271
- i0__namespace.ɵɵelement(0, "img", 22);
13489
+ i0__namespace.ɵɵelement(0, "img", 25);
13272
13490
  }
13273
13491
  }
13274
- function BasketPreviewLineComponent_ng_container_0_ng_template_24_Template(rf, ctx) {
13492
+ function BasketPreviewLineComponent_ng_container_0_ng_template_33_Template(rf, ctx) {
13275
13493
  if (rf & 1) {
13276
- i0__namespace.ɵɵelement(0, "div", 23);
13494
+ i0__namespace.ɵɵelement(0, "div", 26);
13277
13495
  }
13278
13496
  }
13279
- var _c4$4 = function (a0) { return { "disabled": a0 }; };
13497
+ var _c8$2 = function (a0) { return { "disabled": a0 }; };
13280
13498
  function BasketPreviewLineComponent_ng_container_0_Template(rf, ctx) {
13281
13499
  if (rf & 1) {
13282
13500
  var _r7_1 = i0__namespace.ɵɵgetCurrentView();
@@ -13313,27 +13531,40 @@
13313
13531
  i0__namespace.ɵɵi18n(20, 14);
13314
13532
  i0__namespace.ɵɵelementEnd();
13315
13533
  i0__namespace.ɵɵelementEnd();
13316
- i0__namespace.ɵɵelement(21, "ng-miam-recipe-pricing", 15);
13534
+ i0__namespace.ɵɵelementStart(21, "span", 15);
13535
+ i0__namespace.ɵɵtext(22);
13536
+ i0__namespace.ɵɵpipe(23, "currency");
13537
+ i0__namespace.ɵɵelementEnd();
13538
+ i0__namespace.ɵɵelementStart(24, "div", 16);
13539
+ i0__namespace.ɵɵelementStart(25, "span");
13540
+ i0__namespace.ɵɵi18n(26, 17);
13541
+ i0__namespace.ɵɵelementEnd();
13542
+ i0__namespace.ɵɵtext(27);
13543
+ i0__namespace.ɵɵpipe(28, "currency");
13544
+ i0__namespace.ɵɵelementStart(29, "span");
13545
+ i0__namespace.ɵɵi18n(30, 18);
13546
+ i0__namespace.ɵɵelementEnd();
13317
13547
  i0__namespace.ɵɵelementEnd();
13318
- i0__namespace.ɵɵelementStart(22, "button", 16);
13319
- i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_0_Template_button_click_22_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r9 = i0__namespace.ɵɵnextContext(); return ctx_r9.removeLine($event); });
13320
- i0__namespace.ɵɵtemplate(23, BasketPreviewLineComponent_ng_container_0_img_23_Template, 1, 0, "img", 17);
13321
- i0__namespace.ɵɵtemplate(24, BasketPreviewLineComponent_ng_container_0_ng_template_24_Template, 1, 0, "ng-template", null, 18, i0__namespace.ɵɵtemplateRefExtractor);
13322
13548
  i0__namespace.ɵɵelementEnd();
13549
+ i0__namespace.ɵɵelementStart(31, "button", 19);
13550
+ i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_0_Template_button_click_31_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r9 = i0__namespace.ɵɵnextContext(); return ctx_r9.removeLine($event); });
13551
+ i0__namespace.ɵɵtemplate(32, BasketPreviewLineComponent_ng_container_0_img_32_Template, 1, 0, "img", 20);
13552
+ i0__namespace.ɵɵtemplate(33, BasketPreviewLineComponent_ng_container_0_ng_template_33_Template, 1, 0, "ng-template", null, 21, i0__namespace.ɵɵtemplateRefExtractor);
13323
13553
  i0__namespace.ɵɵelementEnd();
13324
- i0__namespace.ɵɵelementStart(26, "button", 19);
13325
- i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_0_Template_button_click_26_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.toggleRecipeDisplay($event); });
13326
- i0__namespace.ɵɵelementStart(27, "span");
13327
- i0__namespace.ɵɵi18n(28, 20);
13328
13554
  i0__namespace.ɵɵelementEnd();
13329
- i0__namespace.ɵɵelement(29, "img", 21);
13555
+ i0__namespace.ɵɵelementStart(35, "button", 22);
13556
+ i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_0_Template_button_click_35_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.toggleRecipeDisplay($event); });
13557
+ i0__namespace.ɵɵelementStart(36, "span");
13558
+ i0__namespace.ɵɵi18n(37, 23);
13559
+ i0__namespace.ɵɵelementEnd();
13560
+ i0__namespace.ɵɵelement(38, "img", 24);
13330
13561
  i0__namespace.ɵɵelementEnd();
13331
13562
  i0__namespace.ɵɵelementEnd();
13332
13563
  i0__namespace.ɵɵelementEnd();
13333
13564
  i0__namespace.ɵɵelementContainerEnd();
13334
13565
  }
13335
13566
  if (rf & 2) {
13336
- var _r4 = i0__namespace.ɵɵreference(25);
13567
+ var _r4 = i0__namespace.ɵɵreference(34);
13337
13568
  var ctx_r0 = i0__namespace.ɵɵnextContext();
13338
13569
  i0__namespace.ɵɵadvance(1);
13339
13570
  i0__namespace.ɵɵpropertyInterpolate("id", ctx_r0.line.id);
@@ -13345,17 +13576,19 @@
13345
13576
  i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(15, 10, ctx_r0.line.title));
13346
13577
  i0__namespace.ɵɵadvance(4);
13347
13578
  i0__namespace.ɵɵtextInterpolate(ctx_r0.countProducts);
13348
- i0__namespace.ɵɵadvance(3);
13349
- i0__namespace.ɵɵproperty("recipeId", ctx_r0.line.id)("serves", ctx_r0.line.count);
13350
- i0__namespace.ɵɵadvance(1);
13351
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(12, _c4$4, ctx_r0.disableRemove));
13579
+ i0__namespace.ɵɵadvance(4);
13580
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(23, 12, ctx_r0.line.price, ctx_r0.suppliersService.supplier$.value.currency));
13581
+ i0__namespace.ɵɵadvance(5);
13582
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(28, 15, +ctx_r0.line.price / +ctx_r0.line.count, ctx_r0.suppliersService.supplier$.value.currency));
13583
+ i0__namespace.ɵɵadvance(4);
13584
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(18, _c8$2, ctx_r0.disableRemove));
13352
13585
  i0__namespace.ɵɵadvance(1);
13353
13586
  i0__namespace.ɵɵproperty("ngIf", !ctx_r0.removing)("ngIfElse", _r4);
13354
13587
  }
13355
13588
  }
13356
13589
  function BasketPreviewLineComponent_ng_template_1_button_3_ng_miam_icon_1_Template(rf, ctx) {
13357
13590
  if (rf & 1) {
13358
- i0__namespace.ɵɵelement(0, "ng-miam-icon", 50);
13591
+ i0__namespace.ɵɵelement(0, "ng-miam-icon", 53);
13359
13592
  }
13360
13593
  if (rf & 2) {
13361
13594
  var ctx_r26 = i0__namespace.ɵɵnextContext(3);
@@ -13364,32 +13597,32 @@
13364
13597
  }
13365
13598
  function BasketPreviewLineComponent_ng_template_1_button_3_ng_template_2_Template(rf, ctx) {
13366
13599
  if (rf & 1) {
13367
- i0__namespace.ɵɵelement(0, "div", 23);
13600
+ i0__namespace.ɵɵelement(0, "div", 26);
13368
13601
  }
13369
13602
  }
13370
- var _c5 = function (a0, a1) { return { "disabled": a0, "loading": a1 }; };
13603
+ var _c9$1 = function (a0, a1) { return { "disabled": a0, "loading": a1 }; };
13371
13604
  function BasketPreviewLineComponent_ng_template_1_button_3_Template(rf, ctx) {
13372
13605
  if (rf & 1) {
13373
13606
  var _r30_1 = i0__namespace.ɵɵgetCurrentView();
13374
- i0__namespace.ɵɵelementStart(0, "button", 48);
13607
+ i0__namespace.ɵɵelementStart(0, "button", 51);
13375
13608
  i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_button_3_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r30_1); var ctx_r29 = i0__namespace.ɵɵnextContext(2); return ctx_r29.removeLine($event); });
13376
- i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_button_3_ng_miam_icon_1_Template, 1, 3, "ng-miam-icon", 49);
13377
- i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_button_3_ng_template_2_Template, 1, 0, "ng-template", null, 18, i0__namespace.ɵɵtemplateRefExtractor);
13609
+ i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_button_3_ng_miam_icon_1_Template, 1, 3, "ng-miam-icon", 52);
13610
+ i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_button_3_ng_template_2_Template, 1, 0, "ng-template", null, 21, i0__namespace.ɵɵtemplateRefExtractor);
13378
13611
  i0__namespace.ɵɵelementEnd();
13379
13612
  }
13380
13613
  if (rf & 2) {
13381
13614
  var _r27 = i0__namespace.ɵɵreference(3);
13382
13615
  var ctx_r11 = i0__namespace.ɵɵnextContext(2);
13383
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(3, _c5, ctx_r11.disableRemove, ctx_r11.removing));
13616
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(3, _c9$1, ctx_r11.disableRemove, ctx_r11.removing));
13384
13617
  i0__namespace.ɵɵadvance(1);
13385
13618
  i0__namespace.ɵɵproperty("ngIf", !ctx_r11.removing)("ngIfElse", _r27);
13386
13619
  }
13387
13620
  }
13388
13621
  function BasketPreviewLineComponent_ng_template_1_div_7_Template(rf, ctx) {
13389
13622
  if (rf & 1) {
13390
- i0__namespace.ɵɵelementStart(0, "div", 51);
13623
+ i0__namespace.ɵɵelementStart(0, "div", 54);
13391
13624
  i0__namespace.ɵɵelementStart(1, "span");
13392
- i0__namespace.ɵɵi18n(2, 52);
13625
+ i0__namespace.ɵɵi18n(2, 55);
13393
13626
  i0__namespace.ɵɵelementEnd();
13394
13627
  i0__namespace.ɵɵelementEnd();
13395
13628
  }
@@ -13408,7 +13641,7 @@
13408
13641
  }
13409
13642
  function BasketPreviewLineComponent_ng_template_1_div_14_span_1_Template(rf, ctx) {
13410
13643
  if (rf & 1) {
13411
- i0__namespace.ɵɵelementStart(0, "span", 55);
13644
+ i0__namespace.ɵɵelementStart(0, "span", 58);
13412
13645
  i0__namespace.ɵɵtext(1);
13413
13646
  i0__namespace.ɵɵelementEnd();
13414
13647
  }
@@ -13421,7 +13654,7 @@
13421
13654
  function BasketPreviewLineComponent_ng_template_1_div_14_Template(rf, ctx) {
13422
13655
  if (rf & 1) {
13423
13656
  i0__namespace.ɵɵelementStart(0, "div");
13424
- i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_14_span_1_Template, 2, 1, "span", 53);
13657
+ i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_14_span_1_Template, 2, 1, "span", 56);
13425
13658
  i0__namespace.ɵɵelementStart(2, "span");
13426
13659
  i0__namespace.ɵɵtext(3);
13427
13660
  i0__namespace.ɵɵpipe(4, "async");
@@ -13430,7 +13663,7 @@
13430
13663
  i0__namespace.ɵɵtext(6, " /");
13431
13664
  i0__namespace.ɵɵelementEnd();
13432
13665
  i0__namespace.ɵɵelementStart(7, "span");
13433
- i0__namespace.ɵɵi18n(8, 54);
13666
+ i0__namespace.ɵɵi18n(8, 57);
13434
13667
  i0__namespace.ɵɵelementEnd();
13435
13668
  i0__namespace.ɵɵelementEnd();
13436
13669
  }
@@ -13445,28 +13678,28 @@
13445
13678
  function BasketPreviewLineComponent_ng_template_1_div_16_span_1_Template(rf, ctx) {
13446
13679
  if (rf & 1) {
13447
13680
  i0__namespace.ɵɵelementStart(0, "span");
13448
- i0__namespace.ɵɵi18n(1, 57);
13681
+ i0__namespace.ɵɵi18n(1, 60);
13449
13682
  i0__namespace.ɵɵelementEnd();
13450
13683
  }
13451
13684
  }
13452
13685
  function BasketPreviewLineComponent_ng_template_1_div_16_span_2_Template(rf, ctx) {
13453
13686
  if (rf & 1) {
13454
13687
  i0__namespace.ɵɵelementStart(0, "span");
13455
- i0__namespace.ɵɵi18n(1, 58);
13688
+ i0__namespace.ɵɵi18n(1, 61);
13456
13689
  i0__namespace.ɵɵelementEnd();
13457
13690
  }
13458
13691
  }
13459
- var _c14$2 = function (a0) { return { "expanded": a0 }; };
13692
+ var _c18$1 = function (a0) { return { "expanded": a0 }; };
13460
13693
  function BasketPreviewLineComponent_ng_template_1_div_16_Template(rf, ctx) {
13461
13694
  if (rf & 1) {
13462
- i0__namespace.ɵɵelementStart(0, "div", 56);
13463
- i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_16_span_1_Template, 2, 0, "span", 33);
13464
- i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_16_span_2_Template, 2, 0, "span", 33);
13695
+ i0__namespace.ɵɵelementStart(0, "div", 59);
13696
+ i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_16_span_1_Template, 2, 0, "span", 36);
13697
+ i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_16_span_2_Template, 2, 0, "span", 36);
13465
13698
  i0__namespace.ɵɵelementEnd();
13466
13699
  }
13467
13700
  if (rf & 2) {
13468
13701
  var ctx_r15 = i0__namespace.ɵɵnextContext(2);
13469
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(3, _c14$2, ctx_r15.expanded));
13702
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(3, _c18$1, ctx_r15.expanded));
13470
13703
  i0__namespace.ɵɵadvance(1);
13471
13704
  i0__namespace.ɵɵproperty("ngIf", ctx_r15.expanded);
13472
13705
  i0__namespace.ɵɵadvance(1);
@@ -13475,26 +13708,26 @@
13475
13708
  }
13476
13709
  function BasketPreviewLineComponent_ng_template_1_div_17_Template(rf, ctx) {
13477
13710
  if (rf & 1) {
13478
- i0__namespace.ɵɵelementStart(0, "div", 59);
13479
- i0__namespace.ɵɵi18n(1, 60);
13711
+ i0__namespace.ɵɵelementStart(0, "div", 62);
13712
+ i0__namespace.ɵɵi18n(1, 63);
13480
13713
  i0__namespace.ɵɵelementEnd();
13481
13714
  }
13482
13715
  }
13483
- var _c19 = function (a0) { return { "disable": a0 }; };
13716
+ var _c23$1 = function (a0) { return { "disable": a0 }; };
13484
13717
  function BasketPreviewLineComponent_ng_template_1_div_18_Template(rf, ctx) {
13485
13718
  if (rf & 1) {
13486
13719
  var _r36_1 = i0__namespace.ɵɵgetCurrentView();
13487
- i0__namespace.ɵɵelementStart(0, "div", 61);
13720
+ i0__namespace.ɵɵelementStart(0, "div", 64);
13488
13721
  i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_div_18_Template_div_click_0_listener() { i0__namespace.ɵɵrestoreView(_r36_1); var ctx_r35 = i0__namespace.ɵɵnextContext(2); return ctx_r35.changeProduct(ctx_r35.line); });
13489
- i0__namespace.ɵɵelementStart(1, "a", 62);
13490
- i0__namespace.ɵɵi18n(2, 63);
13722
+ i0__namespace.ɵɵelementStart(1, "a", 65);
13723
+ i0__namespace.ɵɵi18n(2, 66);
13491
13724
  i0__namespace.ɵɵelementEnd();
13492
13725
  i0__namespace.ɵɵelementEnd();
13493
13726
  }
13494
13727
  if (rf & 2) {
13495
13728
  var ctx_r17 = i0__namespace.ɵɵnextContext(2);
13496
13729
  i0__namespace.ɵɵadvance(1);
13497
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(1, _c19, ctx_r17.disableItemSelector));
13730
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(1, _c23$1, ctx_r17.disableItemSelector));
13498
13731
  }
13499
13732
  }
13500
13733
  function BasketPreviewLineComponent_ng_template_1_div_19_span_2_Template(rf, ctx) {
@@ -13511,9 +13744,9 @@
13511
13744
  }
13512
13745
  function BasketPreviewLineComponent_ng_template_1_div_19_Template(rf, ctx) {
13513
13746
  if (rf & 1) {
13514
- i0__namespace.ɵɵelementStart(0, "div", 64);
13515
- i0__namespace.ɵɵelementStart(1, "div", 65);
13516
- i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_19_span_2_Template, 2, 1, "span", 66);
13747
+ i0__namespace.ɵɵelementStart(0, "div", 67);
13748
+ i0__namespace.ɵɵelementStart(1, "div", 68);
13749
+ i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_19_span_2_Template, 2, 1, "span", 69);
13517
13750
  i0__namespace.ɵɵelementEnd();
13518
13751
  i0__namespace.ɵɵelementEnd();
13519
13752
  }
@@ -13525,7 +13758,7 @@
13525
13758
  }
13526
13759
  function BasketPreviewLineComponent_ng_template_1_div_21_Template(rf, ctx) {
13527
13760
  if (rf & 1) {
13528
- i0__namespace.ɵɵelementStart(0, "div", 67);
13761
+ i0__namespace.ɵɵelementStart(0, "div", 70);
13529
13762
  i0__namespace.ɵɵelementStart(1, "span");
13530
13763
  i0__namespace.ɵɵtext(2);
13531
13764
  i0__namespace.ɵɵelementEnd();
@@ -13550,7 +13783,7 @@
13550
13783
  }
13551
13784
  function BasketPreviewLineComponent_ng_template_1_ng_template_22_Template(rf, ctx) {
13552
13785
  if (rf & 1) {
13553
- i0__namespace.ɵɵelement(0, "ng-miam-recipe-pricing", 15);
13786
+ i0__namespace.ɵɵelement(0, "ng-miam-recipe-pricing", 71);
13554
13787
  }
13555
13788
  if (rf & 2) {
13556
13789
  var ctx_r21 = i0__namespace.ɵɵnextContext(2);
@@ -13559,30 +13792,30 @@
13559
13792
  }
13560
13793
  function BasketPreviewLineComponent_ng_template_1_div_25_Template(rf, ctx) {
13561
13794
  if (rf & 1) {
13562
- i0__namespace.ɵɵelementStart(0, "div", 68);
13563
- i0__namespace.ɵɵi18n(1, 69);
13795
+ i0__namespace.ɵɵelementStart(0, "div", 72);
13796
+ i0__namespace.ɵɵi18n(1, 73);
13564
13797
  i0__namespace.ɵɵelementEnd();
13565
13798
  }
13566
13799
  }
13567
13800
  function BasketPreviewLineComponent_ng_template_1_div_27_span_1_Template(rf, ctx) {
13568
13801
  if (rf & 1) {
13569
13802
  i0__namespace.ɵɵelementStart(0, "span");
13570
- i0__namespace.ɵɵi18n(1, 71);
13803
+ i0__namespace.ɵɵi18n(1, 75);
13571
13804
  i0__namespace.ɵɵelementEnd();
13572
13805
  }
13573
13806
  }
13574
13807
  function BasketPreviewLineComponent_ng_template_1_div_27_span_2_Template(rf, ctx) {
13575
13808
  if (rf & 1) {
13576
13809
  i0__namespace.ɵɵelementStart(0, "span");
13577
- i0__namespace.ɵɵi18n(1, 72);
13810
+ i0__namespace.ɵɵi18n(1, 76);
13578
13811
  i0__namespace.ɵɵelementEnd();
13579
13812
  }
13580
13813
  }
13581
13814
  function BasketPreviewLineComponent_ng_template_1_div_27_Template(rf, ctx) {
13582
13815
  if (rf & 1) {
13583
- i0__namespace.ɵɵelementStart(0, "div", 70);
13584
- i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_27_span_1_Template, 2, 0, "span", 33);
13585
- i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_27_span_2_Template, 2, 0, "span", 33);
13816
+ i0__namespace.ɵɵelementStart(0, "div", 74);
13817
+ i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_27_span_1_Template, 2, 0, "span", 36);
13818
+ i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_27_span_2_Template, 2, 0, "span", 36);
13586
13819
  i0__namespace.ɵɵelementEnd();
13587
13820
  }
13588
13821
  if (rf & 2) {
@@ -13596,10 +13829,10 @@
13596
13829
  function BasketPreviewLineComponent_ng_template_1_div_28_Template(rf, ctx) {
13597
13830
  if (rf & 1) {
13598
13831
  var _r42_1 = i0__namespace.ɵɵgetCurrentView();
13599
- i0__namespace.ɵɵelementStart(0, "div", 73);
13600
- i0__namespace.ɵɵelementStart(1, "button", 74);
13832
+ i0__namespace.ɵɵelementStart(0, "div", 77);
13833
+ i0__namespace.ɵɵelementStart(1, "button", 78);
13601
13834
  i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_div_28_Template_button_click_1_listener($event) { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r41 = i0__namespace.ɵɵnextContext(2); return ctx_r41.toggleRecipeDisplay($event, true); });
13602
- i0__namespace.ɵɵelement(2, "ng-miam-icon", 75);
13835
+ i0__namespace.ɵɵelement(2, "ng-miam-icon", 79);
13603
13836
  i0__namespace.ɵɵelementEnd();
13604
13837
  i0__namespace.ɵɵelementEnd();
13605
13838
  }
@@ -13612,7 +13845,7 @@
13612
13845
  function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template(rf, ctx) {
13613
13846
  if (rf & 1) {
13614
13847
  var _r52_1 = i0__namespace.ɵɵgetCurrentView();
13615
- i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-line", 82);
13848
+ i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-line", 86);
13616
13849
  i0__namespace.ɵɵlistener("removed", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_removed_0_listener($event) { i0__namespace.ɵɵrestoreView(_r52_1); var ctx_r51 = i0__namespace.ɵɵnextContext(4); return ctx_r51.deleteEntry($event.record); })("replaceItem", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_replaceItem_0_listener() { i0__namespace.ɵɵrestoreView(_r52_1); var ctx_r53 = i0__namespace.ɵɵnextContext(4); return ctx_r53.replaceItem.emit(ctx_r53.line); });
13617
13850
  i0__namespace.ɵɵelementEnd();
13618
13851
  }
@@ -13624,7 +13857,7 @@
13624
13857
  }
13625
13858
  function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_3_Template(rf, ctx) {
13626
13859
  if (rf & 1) {
13627
- i0__namespace.ɵɵelement(0, "ng-miam-basket-preview-disabled", 83);
13860
+ i0__namespace.ɵɵelement(0, "ng-miam-basket-preview-disabled", 87);
13628
13861
  }
13629
13862
  if (rf & 2) {
13630
13863
  var ctx_r47 = i0__namespace.ɵɵnextContext(4);
@@ -13634,7 +13867,7 @@
13634
13867
  function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template(rf, ctx) {
13635
13868
  if (rf & 1) {
13636
13869
  var _r55_1 = i0__namespace.ɵɵgetCurrentView();
13637
- i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 84);
13870
+ i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 88);
13638
13871
  i0__namespace.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0__namespace.ɵɵrestoreView(_r55_1); var ctx_r54 = i0__namespace.ɵɵnextContext(4); return ctx_r54.addEntry($event); });
13639
13872
  i0__namespace.ɵɵelementEnd();
13640
13873
  }
@@ -13646,7 +13879,7 @@
13646
13879
  function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template(rf, ctx) {
13647
13880
  if (rf & 1) {
13648
13881
  var _r57_1 = i0__namespace.ɵɵgetCurrentView();
13649
- i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 85);
13882
+ i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 89);
13650
13883
  i0__namespace.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0__namespace.ɵɵrestoreView(_r57_1); var ctx_r56 = i0__namespace.ɵɵnextContext(4); return ctx_r56.addEntry($event); });
13651
13884
  i0__namespace.ɵɵelementEnd();
13652
13885
  }
@@ -13658,11 +13891,11 @@
13658
13891
  function BasketPreviewLineComponent_ng_template_1_div_29_div_1_Template(rf, ctx) {
13659
13892
  if (rf & 1) {
13660
13893
  i0__namespace.ɵɵelementStart(0, "div");
13661
- i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template, 1, 6, "ng-miam-basket-preview-line", 78);
13894
+ i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template, 1, 6, "ng-miam-basket-preview-line", 82);
13662
13895
  i0__namespace.ɵɵpipe(2, "async");
13663
- i0__namespace.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 2, "ng-miam-basket-preview-disabled", 79);
13664
- i0__namespace.ɵɵtemplate(4, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 2, "ng-miam-basket-preview-disabled", 80);
13665
- i0__namespace.ɵɵtemplate(5, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 3, "ng-miam-basket-preview-disabled", 81);
13896
+ i0__namespace.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 2, "ng-miam-basket-preview-disabled", 83);
13897
+ i0__namespace.ɵɵtemplate(4, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 2, "ng-miam-basket-preview-disabled", 84);
13898
+ i0__namespace.ɵɵtemplate(5, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 3, "ng-miam-basket-preview-disabled", 85);
13666
13899
  i0__namespace.ɵɵelementEnd();
13667
13900
  }
13668
13901
  if (rf & 2) {
@@ -13679,19 +13912,19 @@
13679
13912
  }
13680
13913
  function BasketPreviewLineComponent_ng_template_1_div_29_ng_template_2_Template(rf, ctx) {
13681
13914
  if (rf & 1) {
13682
- i0__namespace.ɵɵelementStart(0, "div", 86);
13915
+ i0__namespace.ɵɵelementStart(0, "div", 90);
13683
13916
  i0__namespace.ɵɵelement(1, "ng-miam-loader");
13684
13917
  i0__namespace.ɵɵelementStart(2, "div");
13685
- i0__namespace.ɵɵi18n(3, 87);
13918
+ i0__namespace.ɵɵi18n(3, 91);
13686
13919
  i0__namespace.ɵɵelementEnd();
13687
13920
  i0__namespace.ɵɵelementEnd();
13688
13921
  }
13689
13922
  }
13690
13923
  function BasketPreviewLineComponent_ng_template_1_div_29_Template(rf, ctx) {
13691
13924
  if (rf & 1) {
13692
- i0__namespace.ɵɵelementStart(0, "div", 76);
13925
+ i0__namespace.ɵɵelementStart(0, "div", 80);
13693
13926
  i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_29_div_1_Template, 6, 6, "div", 0);
13694
- i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_29_ng_template_2_Template, 4, 0, "ng-template", null, 77, i0__namespace.ɵɵtemplateRefExtractor);
13927
+ i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_29_ng_template_2_Template, 4, 0, "ng-template", null, 81, i0__namespace.ɵɵtemplateRefExtractor);
13695
13928
  i0__namespace.ɵɵelementEnd();
13696
13929
  }
13697
13930
  if (rf & 2) {
@@ -13701,69 +13934,69 @@
13701
13934
  i0__namespace.ɵɵproperty("ngIf", !ctx_r25.loading)("ngIfElse", _r44);
13702
13935
  }
13703
13936
  }
13704
- var _c28 = function (a0, a1, a2) { return { clickable: a0, expanded: a1, elevate: a2 }; };
13705
- var _c29 = function (a0) { return { "with-inline-tag": a0 }; };
13937
+ var _c32 = function (a0, a1, a2) { return { clickable: a0, expanded: a1, elevate: a2 }; };
13938
+ var _c33 = function (a0) { return { "with-inline-tag": a0 }; };
13706
13939
  function BasketPreviewLineComponent_ng_template_1_Template(rf, ctx) {
13707
13940
  if (rf & 1) {
13708
13941
  var _r59_1 = i0__namespace.ɵɵgetCurrentView();
13709
- i0__namespace.ɵɵelementStart(0, "div", 24);
13942
+ i0__namespace.ɵɵelementStart(0, "div", 27);
13710
13943
  i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_Template_div_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r59_1); var ctx_r58 = i0__namespace.ɵɵnextContext(); return ctx_r58.line.displayMode ? ctx_r58.toggleRecipeDisplay($event) : ctx_r58.toggleExpanded($event); });
13711
- i0__namespace.ɵɵelementStart(1, "div", 25);
13712
- i0__namespace.ɵɵelementStart(2, "div", 26);
13713
- i0__namespace.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_button_3_Template, 4, 6, "button", 27);
13714
- i0__namespace.ɵɵelementStart(4, "div", 28);
13944
+ i0__namespace.ɵɵelementStart(1, "div", 28);
13945
+ i0__namespace.ɵɵelementStart(2, "div", 29);
13946
+ i0__namespace.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_button_3_Template, 4, 6, "button", 30);
13947
+ i0__namespace.ɵɵelementStart(4, "div", 31);
13715
13948
  i0__namespace.ɵɵelementStart(5, "img", 5);
13716
13949
  i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_Template_img_click_5_listener($event) { i0__namespace.ɵɵrestoreView(_r59_1); var ctx_r60 = i0__namespace.ɵɵnextContext(); return ctx_r60.toggleRecipeDisplay($event); });
13717
13950
  i0__namespace.ɵɵelementEnd();
13718
13951
  i0__namespace.ɵɵelementEnd();
13719
- i0__namespace.ɵɵelementStart(6, "div", 29);
13720
- i0__namespace.ɵɵtemplate(7, BasketPreviewLineComponent_ng_template_1_div_7_Template, 3, 0, "div", 30);
13721
- i0__namespace.ɵɵelementStart(8, "div", 31);
13952
+ i0__namespace.ɵɵelementStart(6, "div", 32);
13953
+ i0__namespace.ɵɵtemplate(7, BasketPreviewLineComponent_ng_template_1_div_7_Template, 3, 0, "div", 33);
13954
+ i0__namespace.ɵɵelementStart(8, "div", 34);
13722
13955
  i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_Template_div_click_8_listener($event) { i0__namespace.ɵɵrestoreView(_r59_1); var ctx_r61 = i0__namespace.ɵɵnextContext(); return ctx_r61.toggleRecipeDisplay($event); });
13723
13956
  i0__namespace.ɵɵelementStart(9, "strong");
13724
13957
  i0__namespace.ɵɵtext(10);
13725
13958
  i0__namespace.ɵɵpipe(11, "capitalizeFirstLetter");
13726
13959
  i0__namespace.ɵɵelementEnd();
13727
13960
  i0__namespace.ɵɵelementEnd();
13728
- i0__namespace.ɵɵelementStart(12, "div", 32);
13729
- i0__namespace.ɵɵtemplate(13, BasketPreviewLineComponent_ng_template_1_div_13_Template, 2, 1, "div", 33);
13730
- i0__namespace.ɵɵtemplate(14, BasketPreviewLineComponent_ng_template_1_div_14_Template, 9, 4, "div", 33);
13961
+ i0__namespace.ɵɵelementStart(12, "div", 35);
13962
+ i0__namespace.ɵɵtemplate(13, BasketPreviewLineComponent_ng_template_1_div_13_Template, 2, 1, "div", 36);
13963
+ i0__namespace.ɵɵtemplate(14, BasketPreviewLineComponent_ng_template_1_div_14_Template, 9, 4, "div", 36);
13731
13964
  i0__namespace.ɵɵelementEnd();
13732
- i0__namespace.ɵɵelementStart(15, "div", 34);
13733
- i0__namespace.ɵɵtemplate(16, BasketPreviewLineComponent_ng_template_1_div_16_Template, 3, 5, "div", 35);
13734
- i0__namespace.ɵɵtemplate(17, BasketPreviewLineComponent_ng_template_1_div_17_Template, 2, 0, "div", 36);
13735
- i0__namespace.ɵɵtemplate(18, BasketPreviewLineComponent_ng_template_1_div_18_Template, 3, 3, "div", 37);
13736
- i0__namespace.ɵɵtemplate(19, BasketPreviewLineComponent_ng_template_1_div_19_Template, 3, 1, "div", 38);
13965
+ i0__namespace.ɵɵelementStart(15, "div", 37);
13966
+ i0__namespace.ɵɵtemplate(16, BasketPreviewLineComponent_ng_template_1_div_16_Template, 3, 5, "div", 38);
13967
+ i0__namespace.ɵɵtemplate(17, BasketPreviewLineComponent_ng_template_1_div_17_Template, 2, 0, "div", 39);
13968
+ i0__namespace.ɵɵtemplate(18, BasketPreviewLineComponent_ng_template_1_div_18_Template, 3, 3, "div", 40);
13969
+ i0__namespace.ɵɵtemplate(19, BasketPreviewLineComponent_ng_template_1_div_19_Template, 3, 1, "div", 41);
13737
13970
  i0__namespace.ɵɵelementEnd();
13738
13971
  i0__namespace.ɵɵelementEnd();
13739
13972
  i0__namespace.ɵɵelementEnd();
13740
- i0__namespace.ɵɵelementStart(20, "div", 39);
13741
- i0__namespace.ɵɵtemplate(21, BasketPreviewLineComponent_ng_template_1_div_21_Template, 8, 5, "div", 40);
13742
- i0__namespace.ɵɵtemplate(22, BasketPreviewLineComponent_ng_template_1_ng_template_22_Template, 1, 2, "ng-template", null, 41, i0__namespace.ɵɵtemplateRefExtractor);
13743
- i0__namespace.ɵɵelementStart(24, "div", 42);
13744
- i0__namespace.ɵɵtemplate(25, BasketPreviewLineComponent_ng_template_1_div_25_Template, 2, 0, "div", 43);
13745
- i0__namespace.ɵɵelementStart(26, "ng-miam-counter-input", 44);
13973
+ i0__namespace.ɵɵelementStart(20, "div", 42);
13974
+ i0__namespace.ɵɵtemplate(21, BasketPreviewLineComponent_ng_template_1_div_21_Template, 8, 5, "div", 43);
13975
+ i0__namespace.ɵɵtemplate(22, BasketPreviewLineComponent_ng_template_1_ng_template_22_Template, 1, 2, "ng-template", null, 44, i0__namespace.ɵɵtemplateRefExtractor);
13976
+ i0__namespace.ɵɵelementStart(24, "div", 45);
13977
+ i0__namespace.ɵɵtemplate(25, BasketPreviewLineComponent_ng_template_1_div_25_Template, 2, 0, "div", 46);
13978
+ i0__namespace.ɵɵelementStart(26, "ng-miam-counter-input", 47);
13746
13979
  i0__namespace.ɵɵlistener("valueChange", function BasketPreviewLineComponent_ng_template_1_Template_ng_miam_counter_input_valueChange_26_listener($event) { i0__namespace.ɵɵrestoreView(_r59_1); var ctx_r62 = i0__namespace.ɵɵnextContext(); return ctx_r62.changeCount($event); });
13747
13980
  i0__namespace.ɵɵelementEnd();
13748
- i0__namespace.ɵɵtemplate(27, BasketPreviewLineComponent_ng_template_1_div_27_Template, 3, 2, "div", 45);
13981
+ i0__namespace.ɵɵtemplate(27, BasketPreviewLineComponent_ng_template_1_div_27_Template, 3, 2, "div", 48);
13749
13982
  i0__namespace.ɵɵelementEnd();
13750
- i0__namespace.ɵɵtemplate(28, BasketPreviewLineComponent_ng_template_1_div_28_Template, 3, 3, "div", 46);
13983
+ i0__namespace.ɵɵtemplate(28, BasketPreviewLineComponent_ng_template_1_div_28_Template, 3, 3, "div", 49);
13751
13984
  i0__namespace.ɵɵelementEnd();
13752
13985
  i0__namespace.ɵɵelementEnd();
13753
13986
  i0__namespace.ɵɵelementEnd();
13754
- i0__namespace.ɵɵtemplate(29, BasketPreviewLineComponent_ng_template_1_div_29_Template, 4, 2, "div", 47);
13987
+ i0__namespace.ɵɵtemplate(29, BasketPreviewLineComponent_ng_template_1_div_29_Template, 4, 2, "div", 50);
13755
13988
  }
13756
13989
  if (rf & 2) {
13757
13990
  var _r20 = i0__namespace.ɵɵreference(23);
13758
13991
  var ctx_r2 = i0__namespace.ɵɵnextContext();
13759
13992
  i0__namespace.ɵɵpropertyInterpolate("id", ctx_r2.line.id);
13760
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction3(24, _c28, ctx_r2.line.hasEntries() || ctx_r2.line.displayMode, ctx_r2.expanded, ctx_r2.selectItem));
13993
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction3(24, _c32, ctx_r2.line.hasEntries() || ctx_r2.line.displayMode, ctx_r2.expanded, ctx_r2.selectItem));
13761
13994
  i0__namespace.ɵɵadvance(3);
13762
13995
  i0__namespace.ɵɵproperty("ngIf", !ctx_r2.uniqueLine && !ctx_r2.line.displayMode);
13763
13996
  i0__namespace.ɵɵadvance(2);
13764
13997
  i0__namespace.ɵɵproperty("src", ctx_r2.line.picture, i0__namespace.ɵɵsanitizeUrl);
13765
13998
  i0__namespace.ɵɵadvance(1);
13766
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(28, _c29, ctx_r2.line.inlineTag));
13999
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(28, _c33, ctx_r2.line.inlineTag));
13767
14000
  i0__namespace.ɵɵadvance(1);
13768
14001
  i0__namespace.ɵɵproperty("ngIf", ctx_r2.sponsorised);
13769
14002
  i0__namespace.ɵɵadvance(3);
@@ -13796,7 +14029,7 @@
13796
14029
  }
13797
14030
  var BasketPreviewLineComponent = /** @class */ (function (_super) {
13798
14031
  __extends(BasketPreviewLineComponent, _super);
13799
- function BasketPreviewLineComponent(cdr, recipesService, basketsService, analyticsService, posService, userService, contextService, elementRef, supplierService) {
14032
+ function BasketPreviewLineComponent(cdr, recipesService, basketsService, analyticsService, posService, userService, contextService, suppliersService, elementRef, supplierService) {
13800
14033
  var _this = _super.call(this, analyticsService) || this;
13801
14034
  _this.cdr = cdr;
13802
14035
  _this.recipesService = recipesService;
@@ -13805,6 +14038,7 @@
13805
14038
  _this.posService = posService;
13806
14039
  _this.userService = userService;
13807
14040
  _this.contextService = contextService;
14041
+ _this.suppliersService = suppliersService;
13808
14042
  _this.elementRef = elementRef;
13809
14043
  _this.supplierService = supplierService;
13810
14044
  _this.displayTotalPricing = true;
@@ -13861,7 +14095,7 @@
13861
14095
  fields: { recipe: ['number-of-guests'], ingredients: ['name', 'quantity', 'unit'] }
13862
14096
  }).pipe(operators.switchMap(function (recipe) {
13863
14097
  _this.legacyRecipe = recipe;
13864
- var requests = recipe.relationships.ingredients.data.map(function (ing) { return _this.basketsService.basketEntryFromIngredient(ing.id).pipe(operators.tap(function (entry) {
14098
+ var requests = recipe.relationships.ingredients.data.map(function (ing) { return _this.basketsService.basketEntryFromIngredient(ing.id, _this.line.count).pipe(operators.tap(function (entry) {
13865
14099
  if (_this.legacyIngredientsEntries === undefined) {
13866
14100
  _this.legacyIngredientsEntries = [];
13867
14101
  }
@@ -14072,7 +14306,7 @@
14072
14306
  };
14073
14307
  return BasketPreviewLineComponent;
14074
14308
  }(EventTracerComponent));
14075
- BasketPreviewLineComponent.ɵfac = function BasketPreviewLineComponent_Factory(t) { return new (t || BasketPreviewLineComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(SuppliersService)); };
14309
+ BasketPreviewLineComponent.ɵfac = function BasketPreviewLineComponent_Factory(t) { return new (t || BasketPreviewLineComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(SuppliersService)); };
14076
14310
  BasketPreviewLineComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BasketPreviewLineComponent, selectors: [["ng-miam-basket-preview-line"]], inputs: { line: "line", uniqueLine: "uniqueLine", blockStates: "blockStates", displayTotalPricing: "displayTotalPricing", recipesAlwaysExpanded: "recipesAlwaysExpanded", itemsAlwaysExpanded: "itemsAlwaysExpanded", displayItemsUnitaryPrice: "displayItemsUnitaryPrice", sponsorised: "sponsorised", legacyMode: "legacyMode" }, outputs: { removed: "removed", countChanged: "countChanged", replaceItem: "replaceItem", showRecipe: "showRecipe" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: function () {
14077
14311
  var i18n_0;
14078
14312
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -14084,103 +14318,119 @@
14084
14318
  }
14085
14319
  var i18n_2;
14086
14320
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14087
- var MSG_EXTERNAL_6749102764655247912$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__3 = goog.getMsg("Voir les produits");
14088
- i18n_2 = MSG_EXTERNAL_6749102764655247912$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__3;
14321
+ var MSG_EXTERNAL_2861269811387022272$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__3 = goog.getMsg("soit ");
14322
+ i18n_2 = MSG_EXTERNAL_2861269811387022272$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__3;
14089
14323
  }
14090
14324
  else {
14091
- i18n_2 = $localize(templateObject_2$q || (templateObject_2$q = __makeTemplateObject([":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"], [":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"])));
14325
+ i18n_2 = $localize(templateObject_2$q || (templateObject_2$q = __makeTemplateObject([":\u241F2706048545fce399fb75b672add0eb745e09ada5\u241F2861269811387022272:soit "], [":\u241F2706048545fce399fb75b672add0eb745e09ada5\u241F2861269811387022272:soit "])));
14092
14326
  }
14093
- var i18n_6;
14327
+ var i18n_4;
14094
14328
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14095
- var MSG_EXTERNAL_8545968125113919212$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___7 = goog.getMsg("Sponsoris\u00E9");
14096
- i18n_6 = MSG_EXTERNAL_8545968125113919212$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___7;
14329
+ var MSG_EXTERNAL_795612159703082771$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__5 = goog.getMsg("/pers");
14330
+ i18n_4 = MSG_EXTERNAL_795612159703082771$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__5;
14097
14331
  }
14098
14332
  else {
14099
- i18n_6 = $localize(templateObject_3$j || (templateObject_3$j = __makeTemplateObject([":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"], [":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"])));
14333
+ i18n_4 = $localize(templateObject_3$j || (templateObject_3$j = __makeTemplateObject([":\u241F1c70617413b748533642488f2e142c2f06296f8f\u241F795612159703082771:/pers"], [":\u241F1c70617413b748533642488f2e142c2f06296f8f\u241F795612159703082771:/pers"])));
14100
14334
  }
14101
- var i18n_8;
14335
+ var i18n_6;
14102
14336
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14103
- var MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___9 = goog.getMsg(" personne ");
14104
- i18n_8 = MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___9;
14337
+ var MSG_EXTERNAL_6749102764655247912$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__7 = goog.getMsg("Voir les produits");
14338
+ i18n_6 = MSG_EXTERNAL_6749102764655247912$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__7;
14105
14339
  }
14106
14340
  else {
14107
- i18n_8 = $localize(templateObject_4$g || (templateObject_4$g = __makeTemplateObject([":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "], [":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "])));
14341
+ i18n_6 = $localize(templateObject_4$g || (templateObject_4$g = __makeTemplateObject([":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"], [":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"])));
14108
14342
  }
14109
14343
  var i18n_10;
14110
14344
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14111
- var MSG_EXTERNAL_7216398619205393425$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____11 = goog.getMsg("Masquer le d\u00E9tail");
14112
- i18n_10 = MSG_EXTERNAL_7216398619205393425$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____11;
14345
+ var MSG_EXTERNAL_8545968125113919212$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___11 = goog.getMsg("Sponsoris\u00E9");
14346
+ i18n_10 = MSG_EXTERNAL_8545968125113919212$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___11;
14113
14347
  }
14114
14348
  else {
14115
- i18n_10 = $localize(templateObject_5$d || (templateObject_5$d = __makeTemplateObject([":\u241F4785d2ed6aa646690f46eb4fe02a1916a39cdbb8\u241F7216398619205393425:Masquer le d\u00E9tail"], [":\u241F4785d2ed6aa646690f46eb4fe02a1916a39cdbb8\u241F7216398619205393425:Masquer le d\u00E9tail"])));
14349
+ i18n_10 = $localize(templateObject_5$c || (templateObject_5$c = __makeTemplateObject([":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"], [":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"])));
14116
14350
  }
14117
14351
  var i18n_12;
14118
14352
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14119
- var MSG_EXTERNAL_1356308905753232069$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____13 = goog.getMsg("Voir le d\u00E9tail");
14120
- i18n_12 = MSG_EXTERNAL_1356308905753232069$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____13;
14353
+ var MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___13 = goog.getMsg(" personne ");
14354
+ i18n_12 = MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___13;
14121
14355
  }
14122
14356
  else {
14123
- i18n_12 = $localize(templateObject_6$a || (templateObject_6$a = __makeTemplateObject([":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"], [":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"])));
14357
+ i18n_12 = $localize(templateObject_6$a || (templateObject_6$a = __makeTemplateObject([":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "], [":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "])));
14124
14358
  }
14125
- var i18n_15;
14359
+ var i18n_14;
14126
14360
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14127
- var MSG_EXTERNAL_5882806197320246536$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___16 = goog.getMsg(" Voir la recette ");
14128
- i18n_15 = MSG_EXTERNAL_5882806197320246536$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___16;
14361
+ var MSG_EXTERNAL_7216398619205393425$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____15 = goog.getMsg("Masquer le d\u00E9tail");
14362
+ i18n_14 = MSG_EXTERNAL_7216398619205393425$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____15;
14129
14363
  }
14130
14364
  else {
14131
- i18n_15 = $localize(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject([":\u241Fb13efa64234089d6652cd83ff1b3dc829f22a13e\u241F5882806197320246536: Voir la recette "], [":\u241Fb13efa64234089d6652cd83ff1b3dc829f22a13e\u241F5882806197320246536: Voir la recette "])));
14365
+ i18n_14 = $localize(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject([":\u241F4785d2ed6aa646690f46eb4fe02a1916a39cdbb8\u241F7216398619205393425:Masquer le d\u00E9tail"], [":\u241F4785d2ed6aa646690f46eb4fe02a1916a39cdbb8\u241F7216398619205393425:Masquer le d\u00E9tail"])));
14132
14366
  }
14133
- var i18n_17;
14367
+ var i18n_16;
14134
14368
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14135
- var MSG_EXTERNAL_2014297263214357463$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___18 = goog.getMsg("Changer d'article");
14136
- i18n_17 = MSG_EXTERNAL_2014297263214357463$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___18;
14369
+ var MSG_EXTERNAL_1356308905753232069$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____17 = goog.getMsg("Voir le d\u00E9tail");
14370
+ i18n_16 = MSG_EXTERNAL_1356308905753232069$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____17;
14137
14371
  }
14138
14372
  else {
14139
- i18n_17 = $localize(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject([":\u241Fc0482d798065c40279036142ef812ebf3942d280\u241F2014297263214357463:Changer d'article"], [":\u241Fc0482d798065c40279036142ef812ebf3942d280\u241F2014297263214357463:Changer d'article"])));
14373
+ i18n_16 = $localize(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject([":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"], [":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"])));
14140
14374
  }
14141
- var i18n_20;
14375
+ var i18n_19;
14142
14376
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14143
- var MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___21 = goog.getMsg("pour");
14144
- i18n_20 = MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___21;
14377
+ var MSG_EXTERNAL_5882806197320246536$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___20 = goog.getMsg(" Voir la recette ");
14378
+ i18n_19 = MSG_EXTERNAL_5882806197320246536$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___20;
14145
14379
  }
14146
14380
  else {
14147
- i18n_20 = $localize(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject([":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"], [":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"])));
14381
+ i18n_19 = $localize(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject([":\u241Fb13efa64234089d6652cd83ff1b3dc829f22a13e\u241F5882806197320246536: Voir la recette "], [":\u241Fb13efa64234089d6652cd83ff1b3dc829f22a13e\u241F5882806197320246536: Voir la recette "])));
14148
14382
  }
14149
- var i18n_22;
14383
+ var i18n_21;
14150
14384
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14151
- var MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____23 = goog.getMsg("personnes");
14152
- i18n_22 = MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____23;
14385
+ var MSG_EXTERNAL_2014297263214357463$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___22 = goog.getMsg("Changer d'article");
14386
+ i18n_21 = MSG_EXTERNAL_2014297263214357463$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___22;
14153
14387
  }
14154
14388
  else {
14155
- i18n_22 = $localize(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject([":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"], [":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"])));
14389
+ i18n_21 = $localize(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject([":\u241Fc0482d798065c40279036142ef812ebf3942d280\u241F2014297263214357463:Changer d'article"], [":\u241Fc0482d798065c40279036142ef812ebf3942d280\u241F2014297263214357463:Changer d'article"])));
14156
14390
  }
14157
14391
  var i18n_24;
14158
14392
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14159
- var MSG_EXTERNAL_2884439310873584392$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____25 = goog.getMsg("personne");
14160
- i18n_24 = MSG_EXTERNAL_2884439310873584392$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____25;
14393
+ var MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___25 = goog.getMsg("pour");
14394
+ i18n_24 = MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___25;
14161
14395
  }
14162
14396
  else {
14163
- i18n_24 = $localize(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject([":\u241F1d52fd9a90536a68517dea0fee46df2e64971d3f\u241F2884439310873584392:personne"], [":\u241F1d52fd9a90536a68517dea0fee46df2e64971d3f\u241F2884439310873584392:personne"])));
14397
+ i18n_24 = $localize(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject([":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"], [":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"])));
14164
14398
  }
14165
14399
  var i18n_26;
14166
14400
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14167
- var MSG_EXTERNAL_8327069019640670106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____27 = goog.getMsg("Calcul des ingr\u00E9dients...");
14168
- i18n_26 = MSG_EXTERNAL_8327069019640670106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____27;
14401
+ var MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____27 = goog.getMsg("personnes");
14402
+ i18n_26 = MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____27;
14403
+ }
14404
+ else {
14405
+ i18n_26 = $localize(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject([":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"], [":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"])));
14406
+ }
14407
+ var i18n_28;
14408
+ if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14409
+ var MSG_EXTERNAL_2884439310873584392$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____29 = goog.getMsg("personne");
14410
+ i18n_28 = MSG_EXTERNAL_2884439310873584392$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____29;
14411
+ }
14412
+ else {
14413
+ i18n_28 = $localize(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject([":\u241F1d52fd9a90536a68517dea0fee46df2e64971d3f\u241F2884439310873584392:personne"], [":\u241F1d52fd9a90536a68517dea0fee46df2e64971d3f\u241F2884439310873584392:personne"])));
14414
+ }
14415
+ var i18n_30;
14416
+ if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
14417
+ var MSG_EXTERNAL_8327069019640670106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____31 = goog.getMsg("Calcul des ingr\u00E9dients...");
14418
+ i18n_30 = MSG_EXTERNAL_8327069019640670106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____31;
14169
14419
  }
14170
14420
  else {
14171
- i18n_26 = $localize(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject([":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."], [":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."])));
14421
+ i18n_30 = $localize(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject([":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."], [":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."])));
14172
14422
  }
14173
- return [[4, "ngIf", "ngIfElse"], ["legacyView", ""], [1, "miam-basket-preview-line", 3, "id"], [1, "miam-basket-preview-line__left"], [1, "miam-basket-preview-line__picture"], ["alt", "recipe picture", 3, "src", "click"], [1, "miam-basket-preview-line__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/recipe-counter.svg", "alt", "people"], [1, "miam-basket-preview-line__right"], [1, "miam-basket-preview-line__top"], [1, "miam-basket-preview-line__infos"], [1, "miam-basket-preview-line__title", "miam-ds-text", "weight-xxl", "size-m", 3, "click"], [1, "miam-basket-preview-line__product-count", "miam-ds-text", "weight-l", "size-s"], i18n_0, [3, "recipeId", "serves"], [1, "miam-basket-preview-line__remove", "miam-ds-button", "ghost", 3, "ngClass", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "remove recipe", 4, "ngIf", "ngIfElse"], ["removeLoader", ""], [1, "miam-basket-preview-line__link", "miam-ds-button", "ghost", 3, "click"], i18n_2, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", "alt", "arrow right"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "remove recipe"], [1, "miam-ds-loader"], [1, "miam-basket-preview-line", "legacy", 3, "id", "ngClass", "click"], [1, "miam-basket-preview-line__item"], [1, "miam-basket-preview-line__item__left"], ["class", "miam-ds-button ghost square miam-basket-preview-line__item__remove", 3, "ngClass", "click", 4, "ngIf"], [1, "miam-basket-preview-line__item__picture"], [1, "miam-basket-preview-line__item__details", 3, "ngClass"], ["class", "miam-basket-preview-line__item__sponsorised", 4, "ngIf"], [1, "miam-basket-preview-line__item__title", 3, "click"], [1, "miam-basket-preview-line__item__description"], [4, "ngIf"], [1, "miam-basket-preview-line__item__actions"], ["class", "miam-basket-preview-line__item__showDetails", 3, "ngClass", 4, "ngIf"], ["class", "miam-basket-preview-line__item__showDetails", 4, "ngIf"], ["class", "miam-basket-preview-line__item__change", 3, "click", 4, "ngIf"], ["class", "miam-basket-preview-line__item__inlineTag__container", 4, "ngIf"], [1, "miam-basket-preview-line__item__right"], ["class", "miam-basket-preview-line__item__price", 4, "ngIf", "ngIfElse"], ["pricePerguest", ""], [1, "miam-basket-preview-line__item__count"], ["class", "miam-basket-preview-line__item__count__for", 4, "ngIf"], [3, "value", "minRange", "disable", "valueChange"], ["class", "miam-basket-preview-line__item__count__people", 4, "ngIf"], ["class", "miam-basket-preview-line__add__button", 4, "ngIf"], ["class", "miam-basket-preview-lines", 4, "ngIf"], [1, "miam-ds-button", "ghost", "square", "miam-basket-preview-line__item__remove", 3, "ngClass", "click"], [3, "iconName", "height", "width", 4, "ngIf", "ngIfElse"], [3, "iconName", "height", "width"], [1, "miam-basket-preview-line__item__sponsorised"], i18n_6, ["class", "miam-basket-preview-line__item__description__part", 4, "ngFor", "ngForOf"], i18n_8, [1, "miam-basket-preview-line__item__description__part"], [1, "miam-basket-preview-line__item__showDetails", 3, "ngClass"], i18n_10, i18n_12, [1, "miam-basket-preview-line__item__showDetails"], i18n_15, [1, "miam-basket-preview-line__item__change", 3, "click"], [1, "miam-basket-preview-line__item__change__link", 3, "ngClass"], i18n_17, [1, "miam-basket-preview-line__item__inlineTag__container"], [1, "miam-basket-preview-line__item__inlineTag"], [4, "ngFor", "ngForOf"], [1, "miam-basket-preview-line__item__price"], [1, "miam-basket-preview-line__item__count__for"], i18n_20, [1, "miam-basket-preview-line__item__count__people"], i18n_22, i18n_24, [1, "miam-basket-preview-line__add__button"], [1, "m-button-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-basket-preview-lines"], ["loader", ""], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "legacyMode", "removed", "replaceItem", 4, "ngFor", "ngForOf"], ["mode", "unavailable", 3, "entries", "alwaysExpanded", 4, "ngIf"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded", 4, "ngIf"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded", 4, "ngIf"], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "legacyMode", "removed", "replaceItem"], ["mode", "unavailable", 3, "entries", "alwaysExpanded"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded"], [1, "miam-basket-preview-line__loader-container"], i18n_26];
14423
+ return [[4, "ngIf", "ngIfElse"], ["legacyView", ""], [1, "miam-basket-preview-line", 3, "id"], [1, "miam-basket-preview-line__left"], [1, "miam-basket-preview-line__picture"], ["alt", "recipe picture", 3, "src", "click"], [1, "miam-basket-preview-line__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/recipe-counter.svg", "alt", "people"], [1, "miam-basket-preview-line__right"], [1, "miam-basket-preview-line__top"], [1, "miam-basket-preview-line__infos"], [1, "miam-basket-preview-line__title", "miam-ds-text", "weight-xxl", "size-m", 3, "click"], [1, "miam-basket-preview-line__product-count", "miam-ds-text", "weight-l", "size-s"], i18n_0, [1, "miam-basket-preview-line__price-label", "miam-ds-text", "weight-xxl"], [1, "miam-basket-preview-line__price-per-person-label", "miam-ds-text", "weight-l", "size-xs"], i18n_2, i18n_4, [1, "miam-basket-preview-line__remove", "miam-ds-button", "ghost", 3, "ngClass", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "remove recipe", 4, "ngIf", "ngIfElse"], ["removeLoader", ""], [1, "miam-basket-preview-line__link", "miam-ds-button", "ghost", 3, "click"], i18n_6, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", "alt", "arrow right"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "remove recipe"], [1, "miam-ds-loader"], [1, "miam-basket-preview-line", "legacy", 3, "id", "ngClass", "click"], [1, "miam-basket-preview-line__item"], [1, "miam-basket-preview-line__item__left"], ["class", "miam-ds-button ghost square miam-basket-preview-line__item__remove", 3, "ngClass", "click", 4, "ngIf"], [1, "miam-basket-preview-line__item__picture"], [1, "miam-basket-preview-line__item__details", 3, "ngClass"], ["class", "miam-basket-preview-line__item__sponsorised", 4, "ngIf"], [1, "miam-basket-preview-line__item__title", 3, "click"], [1, "miam-basket-preview-line__item__description"], [4, "ngIf"], [1, "miam-basket-preview-line__item__actions"], ["class", "miam-basket-preview-line__item__showDetails", 3, "ngClass", 4, "ngIf"], ["class", "miam-basket-preview-line__item__showDetails", 4, "ngIf"], ["class", "miam-basket-preview-line__item__change", 3, "click", 4, "ngIf"], ["class", "miam-basket-preview-line__item__inlineTag__container", 4, "ngIf"], [1, "miam-basket-preview-line__item__right"], ["class", "miam-basket-preview-line__item__price", 4, "ngIf", "ngIfElse"], ["pricePerguest", ""], [1, "miam-basket-preview-line__item__count"], ["class", "miam-basket-preview-line__item__count__for", 4, "ngIf"], [3, "value", "minRange", "disable", "valueChange"], ["class", "miam-basket-preview-line__item__count__people", 4, "ngIf"], ["class", "miam-basket-preview-line__add__button", 4, "ngIf"], ["class", "miam-basket-preview-lines", 4, "ngIf"], [1, "miam-ds-button", "ghost", "square", "miam-basket-preview-line__item__remove", 3, "ngClass", "click"], [3, "iconName", "height", "width", 4, "ngIf", "ngIfElse"], [3, "iconName", "height", "width"], [1, "miam-basket-preview-line__item__sponsorised"], i18n_10, ["class", "miam-basket-preview-line__item__description__part", 4, "ngFor", "ngForOf"], i18n_12, [1, "miam-basket-preview-line__item__description__part"], [1, "miam-basket-preview-line__item__showDetails", 3, "ngClass"], i18n_14, i18n_16, [1, "miam-basket-preview-line__item__showDetails"], i18n_19, [1, "miam-basket-preview-line__item__change", 3, "click"], [1, "miam-basket-preview-line__item__change__link", 3, "ngClass"], i18n_21, [1, "miam-basket-preview-line__item__inlineTag__container"], [1, "miam-basket-preview-line__item__inlineTag"], [4, "ngFor", "ngForOf"], [1, "miam-basket-preview-line__item__price"], [3, "recipeId", "serves"], [1, "miam-basket-preview-line__item__count__for"], i18n_24, [1, "miam-basket-preview-line__item__count__people"], i18n_26, i18n_28, [1, "miam-basket-preview-line__add__button"], [1, "m-button-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-basket-preview-lines"], ["loader", ""], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "legacyMode", "removed", "replaceItem", 4, "ngFor", "ngForOf"], ["mode", "unavailable", 3, "entries", "alwaysExpanded", 4, "ngIf"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded", 4, "ngIf"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded", 4, "ngIf"], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "legacyMode", "removed", "replaceItem"], ["mode", "unavailable", 3, "entries", "alwaysExpanded"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded"], [1, "miam-basket-preview-line__loader-container"], i18n_30];
14174
14424
  }, template: function BasketPreviewLineComponent_Template(rf, ctx) {
14175
14425
  if (rf & 1) {
14176
- i0__namespace.ɵɵtemplate(0, BasketPreviewLineComponent_ng_container_0_Template, 30, 14, "ng-container", 0);
14426
+ i0__namespace.ɵɵtemplate(0, BasketPreviewLineComponent_ng_container_0_Template, 39, 20, "ng-container", 0);
14177
14427
  i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_Template, 30, 30, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
14178
14428
  }
14179
14429
  if (rf & 2) {
14180
14430
  var _r1 = i0__namespace.ɵɵreference(2);
14181
14431
  i0__namespace.ɵɵproperty("ngIf", !ctx.legacyMode)("ngIfElse", _r1);
14182
14432
  }
14183
- }, directives: [i2__namespace$1.NgIf, RecipePricingComponent, i2__namespace$1.NgClass, CounterInputComponent, IconComponent, i2__namespace$1.NgForOf, BasketPreviewLineComponent, BasketPreviewDisabledComponent, LoaderComponent], pipes: [CapitalizeFirstLetterPipe, i2__namespace$1.AsyncPipe], styles: [".miam-basket-preview-line:not(.legacy){display:flex;padding:12px;align-items:flex-start;gap:16px;align-self:stretch;border-radius:12px;border:1px solid var(--border-primary,#d6e1ec);background:var(--surface-primary,#fff)}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{position:relative;width:144px;height:144px}@media (max-width:360px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{width:112px;height:112px}}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture{height:100%;width:100%;border-radius:12px;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;border-radius:12px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter{position:absolute;right:8px;bottom:8px;display:flex;padding:4px 8px;align-items:center;gap:4px;border-radius:100px;background:var(--miam-ds-color-neutral-white,#fff);color:var(--miam-color-neutral-black);height:-moz-fit-content;height:fit-content}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter span{line-height:100%}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter img{width:16px;height:16px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top{display:flex;align-items:flex-start;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;color:var(--miam-ds-color-neutral-black,#02182b);text-overflow:ellipsis;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__product-count{display:flex;color:var(--text-subtle,rgba(31,53,67,.5));gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-recipe-pricing .miam-recipe-pricing__wrapper{gap:4px;align-items:flex-end;flex-wrap:nowrap}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:12px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove{flex-shrink:0}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove .miam-loader,.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove img{height:24px;width:24px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link{padding:4px 16px;gap:8px}@media (max-width:375px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link img{display:none}}:root{--price-color:var(--miam-price-color,green) ;--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line.legacy{overflow:hidden;padding-left:10px;-webkit-tap-highlight-color:transparent}.miam-basket-preview-line.legacy.clickable{cursor:pointer;border-radius:4px;margin-bottom:6px;border:1px solid var(--m-color-grey);box-shadow:none;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.legacy.expanded{position:relative;background:#fff;box-shadow:var(--m-shadow-small);border-color:var(--m-color-grey);margin-top:10px;margin-bottom:15px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left{gap:16px;display:flex;align-items:center;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{align-self:center}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove.disabled{filter:opacity(.3)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .miam-ds-loader{width:16px;height:16px;background-position-x:8px;background-size:8px 8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:130px;height:100px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__sponsorised{display:flex;justify-content:center;align-items:center;padding:4px 12px;border-radius:100px;background-color:var(--m-color-grey);font-size:14px;font-weight:500;line-height:150%;width:-moz-fit-content;width:fit-content;margin-bottom:8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--m-font-size-medium)}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-primary);text-decoration:underline}}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:first-letter{text-transform:capitalize}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description{font-size:var(--m-font-size-small);font-weight:400}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description .miam-basket-preview-line__item__description__part{margin-right:4px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{display:flex;flex-direction:row}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__showDetails{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;width:-moz-max-content;width:max-content;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link:hover{color:var(--m-color-primary)}}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link.disable{pointer-events:none;color:var(--m-color-grey-text)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{display:flex;align-items:center;height:22px;padding:1px 16px;font-size:var(--m-font-size-small);border-radius:100px;background-color:var(--tag-color)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag span:not(:last-child){margin-right:4px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right{max-width:330px;position:relative;display:flex;align-items:center;justify-content:flex-end;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 20px;font-size:var(--m-font-size-large);font-weight:700;white-space:nowrap;color:var(--price-color)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{text-align:center;font-size:var(--m-font-size-small)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{margin-bottom:2px;padding-left:20px;font-weight:700;color:var(--m-color-slate)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__add__button{margin:0 20px}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__left .miam-basket-preview-line__item__showDetails{color:var(--m-color-primary)}}.miam-basket-preview-lines{margin-bottom:20px;border-left:1px solid var(--m-color-grey);overflow:hidden;margin-left:20px}.miam-basket-preview-lines .miam-basket-preview-line{border-top:1px solid var(--m-color-grey)}.miam-basket-preview-lines .miam-basket-preview-line.expanded{border-top:1px solid var(--m-color-primary)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{border-top:none;padding:12px 0 15px}@media (min-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-black);text-decoration:none}}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{margin-right:15px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:50px;height:50px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{margin-top:-16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{font-size:16px;color:var(--m-color-grey-text)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count ng-miam-counter-input .miam-counter-input__icon{display:none}.miam-basket-preview-lines .miam-basket-preview-line__loader-container{padding:10px;display:flex;flex-direction:column;justify-content:center;align-items:center}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;position:relative;padding:0 0 52px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:92px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{position:absolute;right:18px;margin:0;bottom:58px;z-index:1}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:152px;width:33%;position:absolute;top:16px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{height:100%;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:8px 0 0 40%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{position:absolute;bottom:8px;left:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{height:auto;text-align:center;padding:1px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{justify-content:flex-start;padding-left:38%;flex-direction:column-reverse;align-items:flex-start}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{display:none}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:auto;position:relative;padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:auto}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{position:relative;right:unset;margin-right:15px;bottom:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:72px;width:72px;position:relative;top:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:72px;height:72px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions{position:relative;bottom:unset;flex-direction:column;gap:8px}}@media (max-width:1022px) and (min-width:1023px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container{width:100%}}@media (max-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container .miam-basket-preview-line__item__inlineTag{padding:4px 16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{flex-direction:row;margin:16px 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 16px 0 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:0}}"], encapsulation: 2, changeDetection: 0 });
14433
+ }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgClass, CounterInputComponent, IconComponent, i2__namespace$1.NgForOf, RecipePricingComponent, BasketPreviewLineComponent, BasketPreviewDisabledComponent, LoaderComponent], pipes: [CapitalizeFirstLetterPipe, i2__namespace$1.CurrencyPipe, i2__namespace$1.AsyncPipe], styles: [".miam-basket-preview-line:not(.legacy){display:flex;padding:12px;align-items:flex-start;gap:16px;align-self:stretch;border-radius:12px;border:1px solid var(--border-primary,#d6e1ec);background:var(--surface-primary,#fff)}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{position:relative;width:144px;height:144px}@media (max-width:360px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{width:112px;height:112px}}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture{height:100%;width:100%;border-radius:12px;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;border-radius:12px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter{position:absolute;right:8px;bottom:8px;display:flex;padding:4px 8px;align-items:center;gap:4px;border-radius:100px;background:var(--miam-ds-color-neutral-white,#fff);color:var(--miam-color-neutral-black);height:-moz-fit-content;height:fit-content}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter span{line-height:100%}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter img{width:16px;height:16px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top{display:flex;align-items:flex-start;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;color:var(--miam-ds-color-neutral-black,#02182b);text-overflow:ellipsis;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__product-count{display:flex;color:var(--text-subtle,rgba(31,53,67,.5));gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__price-label{color:var(--miam-ds-color-primary,#24748f)}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__price-per-person-label{color:var(--text-subtle,rgba(31,53,67,.5))}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove{flex-shrink:0}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove .miam-loader,.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove img{height:24px;width:24px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link{padding:4px 16px;gap:8px}@media (max-width:375px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link img{display:none}}:root{--price-color:var(--miam-price-color,green) ;--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line.legacy{overflow:hidden;padding-left:10px;-webkit-tap-highlight-color:transparent}.miam-basket-preview-line.legacy.clickable{cursor:pointer;border-radius:4px;margin-bottom:6px;border:1px solid var(--m-color-grey);box-shadow:none;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.legacy.expanded{position:relative;background:#fff;box-shadow:var(--m-shadow-small);border-color:var(--m-color-grey);margin-top:10px;margin-bottom:15px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left{gap:16px;display:flex;align-items:center;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{align-self:center}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove.disabled{filter:opacity(.3)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .miam-ds-loader{width:16px;height:16px;background-position-x:8px;background-size:8px 8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:130px;height:100px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__sponsorised{display:flex;justify-content:center;align-items:center;padding:4px 12px;border-radius:100px;background-color:var(--m-color-grey);font-size:14px;font-weight:500;line-height:150%;width:-moz-fit-content;width:fit-content;margin-bottom:8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--m-font-size-medium)}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-primary);text-decoration:underline}}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:first-letter{text-transform:capitalize}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description{font-size:var(--m-font-size-small);font-weight:400}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description .miam-basket-preview-line__item__description__part{margin-right:4px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{display:flex;flex-direction:row}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__showDetails{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;width:-moz-max-content;width:max-content;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link:hover{color:var(--m-color-primary)}}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link.disable{pointer-events:none;color:var(--m-color-grey-text)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{display:flex;align-items:center;height:22px;padding:1px 16px;font-size:var(--m-font-size-small);border-radius:100px;background-color:var(--tag-color)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag span:not(:last-child){margin-right:4px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right{max-width:330px;position:relative;display:flex;align-items:center;justify-content:flex-end;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 20px;font-size:var(--m-font-size-large);font-weight:700;white-space:nowrap;color:var(--price-color)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{text-align:center;font-size:var(--m-font-size-small)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{margin-bottom:2px;padding-left:20px;font-weight:700;color:var(--m-color-slate)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__add__button{margin:0 20px}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__left,.miam-basket-preview-line.legacy .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__showDetails{color:var(--m-color-primary)}}.miam-basket-preview-lines{margin-bottom:20px;border-left:1px solid var(--m-color-grey);overflow:hidden;margin-left:20px}.miam-basket-preview-lines .miam-basket-preview-line{border-top:1px solid var(--m-color-grey)}.miam-basket-preview-lines .miam-basket-preview-line.expanded{border-top:1px solid var(--m-color-primary)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{border-top:none;padding:12px 0 15px}@media (min-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details:hover,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__title:hover{color:var(--m-color-black);text-decoration:none}}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{margin-right:15px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:50px;height:50px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{margin-top:-16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{font-size:16px;color:var(--m-color-grey-text)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count ng-miam-counter-input .miam-counter-input__icon{display:none}.miam-basket-preview-lines .miam-basket-preview-line__loader-container{padding:10px;display:flex;flex-direction:column;justify-content:center;align-items:center}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;position:relative;padding:0 0 52px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:92px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{position:absolute;right:18px;margin:0;bottom:58px;z-index:1}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:152px;width:33%;position:absolute;top:16px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{height:100%;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:8px 0 0 40%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{position:absolute;bottom:8px;left:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{height:auto;text-align:center;padding:1px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{justify-content:flex-start;padding-left:38%;flex-direction:column-reverse;align-items:flex-start}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{display:none}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:auto;position:relative;padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:auto}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{position:relative;right:unset;margin-right:15px;bottom:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:72px;width:72px;position:relative;top:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:72px;height:72px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions{position:relative;bottom:unset;flex-direction:column;gap:8px}}@media (max-width:1022px) and (min-width:1023px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container{width:100%}}@media (max-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container .miam-basket-preview-line__item__inlineTag{padding:4px 16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{flex-direction:row;margin:16px 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 16px 0 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:0}}"], encapsulation: 2, changeDetection: 0 });
14184
14434
  (function () {
14185
14435
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BasketPreviewLineComponent, [{
14186
14436
  type: i0.Component,
@@ -14191,7 +14441,7 @@
14191
14441
  encapsulation: i0.ViewEncapsulation.None,
14192
14442
  changeDetection: i0.ChangeDetectionStrategy.OnPush
14193
14443
  }]
14194
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: RecipesService }, { type: BasketsService }, { type: AnalyticsService }, { type: PointOfSalesService }, { type: UserService }, { type: ContextService }, { type: i0__namespace.ElementRef }, { type: SuppliersService }]; }, { line: [{
14444
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: RecipesService }, { type: BasketsService }, { type: AnalyticsService }, { type: PointOfSalesService }, { type: UserService }, { type: ContextService }, { type: SuppliersService }, { type: i0__namespace.ElementRef }, { type: SuppliersService }]; }, { line: [{
14195
14445
  type: i0.Input
14196
14446
  }], uniqueLine: [{
14197
14447
  type: i0.Input
@@ -14219,7 +14469,7 @@
14219
14469
  type: i0.Output
14220
14470
  }] });
14221
14471
  })();
14222
- var templateObject_1$w, templateObject_2$q, templateObject_3$j, templateObject_4$g, templateObject_5$d, templateObject_6$a, templateObject_7$7, templateObject_8$5, templateObject_9$4, templateObject_10$2, templateObject_11$2, templateObject_12$1;
14472
+ var templateObject_1$w, templateObject_2$q, templateObject_3$j, templateObject_4$g, templateObject_5$c, templateObject_6$a, templateObject_7$7, templateObject_8$5, templateObject_9$4, templateObject_10$2, templateObject_11$2, templateObject_12$1, templateObject_13$1, templateObject_14$1;
14223
14473
 
14224
14474
  function ReplaceItemComponent_span_3_Template(rf, ctx) {
14225
14475
  if (rf & 1) {
@@ -14417,13 +14667,6 @@
14417
14667
  ReplaceItemComponent.prototype.currentProps = function () {
14418
14668
  return { entry_name: this.basketEntry.name };
14419
14669
  };
14420
- ReplaceItemComponent.prototype.onSearchKeydown = function (event) {
14421
- if (event.key === ' ') {
14422
- event.preventDefault();
14423
- this.searchString += ' ';
14424
- }
14425
- this.onSearchInputChange();
14426
- };
14427
14670
  ReplaceItemComponent.prototype.setupSearchObservable = function () {
14428
14671
  var _this = this;
14429
14672
  this.subscriptions.push(this.searchSubject.pipe(operators.debounceTime(200), operators.filter(function (search) { return search.length >= 3; }), operators.distinctUntilChanged(), operators.tap(function () {
@@ -14459,8 +14702,21 @@
14459
14702
  };
14460
14703
  ReplaceItemComponent.prototype.addToBasket = function () {
14461
14704
  var _this = this;
14462
- this.subscriptions.push(this.recipeDetailsService.canAddProductToBasket(this.eventTrace()).subscribe(function () {
14463
- _this.basketsService.addIngredientsToBasket(_this.recipe.id, [{ ingredientId: _this.ingredient.id, entry: _this.basketEntry }], _this.eventTrace(), _this.previousItem, _this.searchString);
14705
+ this.subscriptions.push(this.recipeDetailsService.canAddProductToBasket({
14706
+ method: 'addIngredientToBasket',
14707
+ arguments: {
14708
+ recipeId: this.recipe.id,
14709
+ ingredientId: this.ingredient.id,
14710
+ entry: this.basketEntry,
14711
+ eventTrace: this.eventTrace(),
14712
+ searchString: this.searchString
14713
+ }
14714
+ }, this.eventTrace()).subscribe(function (passed) {
14715
+ if (passed) {
14716
+ _this.recipeDetailsService.ingredientToBasketLoading = _this.basketEntry.status === 'initial';
14717
+ _this.recipeDetailsService.updateIngredientFromBasketLoading = _this.basketEntry.status !== 'initial';
14718
+ _this.basketsService.addIngredientsToBasket(_this.recipe.id, [{ ingredientId: _this.ingredient.id, entry: _this.basketEntry }], _this.eventTrace(), _this.previousItem, _this.searchString);
14719
+ }
14464
14720
  }));
14465
14721
  this.cdr.detectChanges();
14466
14722
  };
@@ -14551,9 +14807,9 @@
14551
14807
  i18n_9 = MSG_EXTERNAL_5308134879633194724$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS__10;
14552
14808
  }
14553
14809
  else {
14554
- i18n_9 = $localize(templateObject_5$c || (templateObject_5$c = __makeTemplateObject([":\u241F0b93781999a48f1d48c2780cb91b6f63b2583b51\u241F5308134879633194724:Essayez avec un autre mot-cl\u00E9s"], [":\u241F0b93781999a48f1d48c2780cb91b6f63b2583b51\u241F5308134879633194724:Essayez avec un autre mot-cl\u00E9s"])));
14810
+ i18n_9 = $localize(templateObject_5$b || (templateObject_5$b = __makeTemplateObject([":\u241F0b93781999a48f1d48c2780cb91b6f63b2583b51\u241F5308134879633194724:Essayez avec un autre mot-cl\u00E9s"], [":\u241F0b93781999a48f1d48c2780cb91b6f63b2583b51\u241F5308134879633194724:Essayez avec un autre mot-cl\u00E9s"])));
14555
14811
  }
14556
- return [[1, "miam-replace-item__header", "miam-ds-text", "weight-xxl"], [1, "miam-ds-button", "ghost", "square", 3, "click"], ["width", "24", "height", "24", "primaryColor", "var(--miam-ds-color-primary-500)", 3, "iconName"], [4, "ngIf", "ngIfElse"], ["addProduct", ""], [1, "miam-replace-item__top-container"], [1, "miam-replace-item__searchbar"], ["width", "20", "height", "20", 3, "iconName"], ["type", "text", "placeholder", "Rechercher un produit de substitution", 1, "miam-replace-item__searchbar__input", "miam-ds-text", "size-m", "weight-l", 3, "ngModel", "ngModelChange", "keydown"], [1, "miam-ds-loader"], [1, "miam-replace-item__product-banner"], [1, "miam-replace-item__banner-product-name", "miam-ds-text", "size-s"], [1, "miam-replace-item__banner-quantity", "miam-ds-text", "weight-xxl"], [1, "miam-replace-item__product-list"], ["class", "miam-replace-item__product-item", 3, "ngClass", 4, "ngFor", "ngForOf"], [4, "ngIf"], i18n_0, i18n_2, [1, "miam-replace-item__product-item", 3, "ngClass"], [1, "miam-replace-item__card-upper-section"], [1, "miam-replace-item__product-image-container"], ["alt", "product to replace", 1, "miam-replace-item__product-image", 3, "src"], [1, "miam-replace-item__product-info"], [1, "miam-replace-item__product-brand", "miam-ds-text", "size-xs", "weight-xl"], [1, "miam-replace-item__product-brand-text"], [1, "miam-replace-item__product-name", "miam-ds-text", "size-xs"], [1, "miam-replace-item__product-name-text"], [1, "miam-ds-badge"], [1, "miam-replace-item__product-quantity", "miam-ds-text", "size-xs"], [1, "miam-replace-item__card-lower-section"], [1, "miam-replace-item__product-price", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-replace-item__cta", "miam-ds-button", "small", "primary", 3, "disabled", "click"], ["class", "miam-ds-loader", 4, "ngIf", "ngIfElse"], ["defaultSelectButton", ""], [1, "miam-replace-item__error"], [1, "miam-replace-item__error-image-container", "small-img"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/product-issue.png", "alt", "issue with product", 1, "miam-replace-item__error-image"], [1, "miam-replace-item__issue-title"], i18n_5, [1, "miam-replace-item__error-image-container"], i18n_7, [1, "miam-replace-item__issue-description", "miam-ds-text", "weight-xxl"], i18n_9];
14812
+ return [[1, "miam-replace-item__header", "miam-ds-text", "weight-xxl"], [1, "miam-ds-button", "ghost", "square", 3, "click"], ["width", "24", "height", "24", "primaryColor", "var(--miam-ds-color-primary-500)", 3, "iconName"], [4, "ngIf", "ngIfElse"], ["addProduct", ""], [1, "miam-replace-item__top-container"], [1, "miam-replace-item__searchbar"], ["width", "20", "height", "20", 3, "iconName"], ["type", "text", "placeholder", "Rechercher un produit de substitution", 1, "miam-replace-item__searchbar__input", "miam-ds-text", "size-m", "weight-l", 3, "ngModel", "ngModelChange"], [1, "miam-ds-loader"], [1, "miam-replace-item__product-banner"], [1, "miam-replace-item__banner-product-name", "miam-ds-text", "size-s"], [1, "miam-replace-item__banner-quantity", "miam-ds-text", "weight-xxl"], [1, "miam-replace-item__product-list"], ["class", "miam-replace-item__product-item", 3, "ngClass", 4, "ngFor", "ngForOf"], [4, "ngIf"], i18n_0, i18n_2, [1, "miam-replace-item__product-item", 3, "ngClass"], [1, "miam-replace-item__card-upper-section"], [1, "miam-replace-item__product-image-container"], ["alt", "product to replace", 1, "miam-replace-item__product-image", 3, "src"], [1, "miam-replace-item__product-info"], [1, "miam-replace-item__product-brand", "miam-ds-text", "size-xs", "weight-xl"], [1, "miam-replace-item__product-brand-text"], [1, "miam-replace-item__product-name", "miam-ds-text", "size-xs"], [1, "miam-replace-item__product-name-text"], [1, "miam-ds-badge"], [1, "miam-replace-item__product-quantity", "miam-ds-text", "size-xs"], [1, "miam-replace-item__card-lower-section"], [1, "miam-replace-item__product-price", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-replace-item__cta", "miam-ds-button", "small", "primary", 3, "disabled", "click"], ["class", "miam-ds-loader", 4, "ngIf", "ngIfElse"], ["defaultSelectButton", ""], [1, "miam-replace-item__error"], [1, "miam-replace-item__error-image-container", "small-img"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/product-issue.png", "alt", "issue with product", 1, "miam-replace-item__error-image"], [1, "miam-replace-item__issue-title"], i18n_5, [1, "miam-replace-item__error-image-container"], i18n_7, [1, "miam-replace-item__issue-description", "miam-ds-text", "weight-xxl"], i18n_9];
14557
14813
  }, template: function ReplaceItemComponent_Template(rf, ctx) {
14558
14814
  if (rf & 1) {
14559
14815
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -14568,7 +14824,7 @@
14568
14824
  i0__namespace.ɵɵelementStart(7, "div", 6);
14569
14825
  i0__namespace.ɵɵelement(8, "ng-miam-icon", 7);
14570
14826
  i0__namespace.ɵɵelementStart(9, "input", 8);
14571
- i0__namespace.ɵɵlistener("ngModelChange", function ReplaceItemComponent_Template_input_ngModelChange_9_listener($event) { return ctx.searchString = $event; })("keydown", function ReplaceItemComponent_Template_input_keydown_9_listener($event) { return ctx.onSearchKeydown($event); });
14827
+ i0__namespace.ɵɵlistener("ngModelChange", function ReplaceItemComponent_Template_input_ngModelChange_9_listener($event) { return ctx.searchString = $event; })("ngModelChange", function ReplaceItemComponent_Template_input_ngModelChange_9_listener() { return ctx.onSearchInputChange(); });
14572
14828
  i0__namespace.ɵɵelementEnd();
14573
14829
  i0__namespace.ɵɵelement(10, "div", 9);
14574
14830
  i0__namespace.ɵɵelementEnd();
@@ -14670,7 +14926,7 @@
14670
14926
  args: ['@slide']
14671
14927
  }] });
14672
14928
  })();
14673
- var templateObject_1$v, templateObject_2$p, templateObject_3$i, templateObject_4$f, templateObject_5$c;
14929
+ var templateObject_1$v, templateObject_2$p, templateObject_3$i, templateObject_4$f, templateObject_5$b;
14674
14930
 
14675
14931
  function BasketPreviewBlockComponent_div_2_ng_container_1_div_1_Template(rf, ctx) {
14676
14932
  if (rf & 1) {
@@ -15056,7 +15312,7 @@
15056
15312
  i18n_9 = MSG_EXTERNAL_5143648071312042408$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS_____10;
15057
15313
  }
15058
15314
  else {
15059
- i18n_9 = $localize(templateObject_5$b || (templateObject_5$b = __makeTemplateObject([":\u241F523c6748d32ce2079498ff4de01387f2d6515c44\u241F5143648071312042408:Chargement du repas..."], [":\u241F523c6748d32ce2079498ff4de01387f2d6515c44\u241F5143648071312042408:Chargement du repas..."])));
15315
+ i18n_9 = $localize(templateObject_5$a || (templateObject_5$a = __makeTemplateObject([":\u241F523c6748d32ce2079498ff4de01387f2d6515c44\u241F5143648071312042408:Chargement du repas..."], [":\u241F523c6748d32ce2079498ff4de01387f2d6515c44\u241F5143648071312042408:Chargement du repas..."])));
15060
15316
  }
15061
15317
  var i18n_11;
15062
15318
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -15134,7 +15390,7 @@
15134
15390
  args: [BasketPreviewLineComponent]
15135
15391
  }] });
15136
15392
  })();
15137
- var templateObject_1$u, templateObject_2$o, templateObject_3$h, templateObject_4$e, templateObject_5$b, templateObject_6$9, templateObject_7$6, templateObject_8$4;
15393
+ var templateObject_1$u, templateObject_2$o, templateObject_3$h, templateObject_4$e, templateObject_5$a, templateObject_6$9, templateObject_7$6, templateObject_8$4;
15138
15394
 
15139
15395
  var BasketPreviewModule = /** @class */ (function () {
15140
15396
  // Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
@@ -15724,7 +15980,7 @@
15724
15980
  i18n_8 = MSG_EXTERNAL_7013342739706915791$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__9;
15725
15981
  }
15726
15982
  else {
15727
- i18n_8 = $localize(templateObject_5$a || (templateObject_5$a = __makeTemplateObject([":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"], [":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"])));
15983
+ i18n_8 = $localize(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject([":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"], [":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"])));
15728
15984
  }
15729
15985
  var i18n_10;
15730
15986
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -15800,7 +16056,7 @@
15800
16056
  type: i0.Output
15801
16057
  }] });
15802
16058
  })();
15803
- var templateObject_1$r, templateObject_2$m, templateObject_3$g, templateObject_4$d, templateObject_5$a, templateObject_6$8;
16059
+ var templateObject_1$r, templateObject_2$m, templateObject_3$g, templateObject_4$d, templateObject_5$9, templateObject_6$8;
15804
16060
 
15805
16061
  function ListScanBasketPreviewComponent_span_4_Template(rf, ctx) {
15806
16062
  if (rf & 1) {
@@ -16388,7 +16644,7 @@
16388
16644
  i0__namespace.ɵɵtextInterpolate(number_r14);
16389
16645
  }
16390
16646
  }
16391
- var _c12$1 = function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9]; };
16647
+ var _c12 = function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9]; };
16392
16648
  function MealsPlannerFormComponent_ng_template_29_Template(rf, ctx) {
16393
16649
  if (rf & 1) {
16394
16650
  var _r16_1 = i0__namespace.ɵɵgetCurrentView();
@@ -16407,7 +16663,7 @@
16407
16663
  i0__namespace.ɵɵadvance(1);
16408
16664
  i0__namespace.ɵɵtextInterpolate(ctx_r2.form.value.guestsCount);
16409
16665
  i0__namespace.ɵɵadvance(1);
16410
- i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpureFunction0(3, _c12$1));
16666
+ i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpureFunction0(3, _c12));
16411
16667
  }
16412
16668
  }
16413
16669
  function MealsPlannerFormComponent_ng_miam_counter_input_39_Template(rf, ctx) {
@@ -16657,7 +16913,7 @@
16657
16913
  i18n_8 = MSG_EXTERNAL_6105149763216124630$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS_9;
16658
16914
  }
16659
16915
  else {
16660
- i18n_8 = $localize(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject([":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"], [":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"])));
16916
+ i18n_8 = $localize(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject([":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"], [":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"])));
16661
16917
  }
16662
16918
  var i18n_10;
16663
16919
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -16857,7 +17113,7 @@
16857
17113
  type: i0.Output
16858
17114
  }] });
16859
17115
  })();
16860
- var templateObject_1$o, templateObject_2$j, templateObject_3$d, templateObject_4$b, templateObject_5$9, templateObject_6$7, templateObject_7$5, templateObject_8$3, templateObject_9$3, templateObject_10$1, templateObject_11$1;
17116
+ var templateObject_1$o, templateObject_2$j, templateObject_3$d, templateObject_4$b, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$3, templateObject_9$3, templateObject_10$1, templateObject_11$1;
16861
17117
 
16862
17118
  function RecipeCardCtaComponent_div_0_span_2_Template(rf, ctx) {
16863
17119
  if (rf & 1) {
@@ -18020,7 +18276,7 @@
18020
18276
  i18n_8 = MSG_EXTERNAL_3503734824800029552$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___9;
18021
18277
  }
18022
18278
  else {
18023
- i18n_8 = $localize(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject([":\u241F4f168d78d73759138d43c58ec329dc9a1cfcd316\u241F3503734824800029552:Finaliser"], [":\u241F4f168d78d73759138d43c58ec329dc9a1cfcd316\u241F3503734824800029552:Finaliser"])));
18279
+ i18n_8 = $localize(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject([":\u241F4f168d78d73759138d43c58ec329dc9a1cfcd316\u241F3503734824800029552:Finaliser"], [":\u241F4f168d78d73759138d43c58ec329dc9a1cfcd316\u241F3503734824800029552:Finaliser"])));
18024
18280
  }
18025
18281
  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", "legacyMode", "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];
18026
18282
  }, template: function MealsPlannerBasketPreviewComponent_Template(rf, ctx) {
@@ -18053,7 +18309,7 @@
18053
18309
  type: i0.Output
18054
18310
  }] });
18055
18311
  })();
18056
- var templateObject_1$k, templateObject_2$g, templateObject_3$c, templateObject_4$a, templateObject_5$8;
18312
+ var templateObject_1$k, templateObject_2$g, templateObject_3$c, templateObject_4$a, templateObject_5$7;
18057
18313
 
18058
18314
  var RecipeFilters = /** @class */ (function () {
18059
18315
  function RecipeFilters(filters) {
@@ -18282,9 +18538,9 @@
18282
18538
  i0__namespace.ɵɵelementEnd();
18283
18539
  }
18284
18540
  if (rf & 2) {
18285
- var ctx_r10 = i0__namespace.ɵɵnextContext(3);
18541
+ var ctx_r12 = i0__namespace.ɵɵnextContext(3);
18286
18542
  i0__namespace.ɵɵadvance(4);
18287
- i0__namespace.ɵɵtextInterpolate1("\"", ctx_r10.filters.search, "\"");
18543
+ i0__namespace.ɵɵtextInterpolate1("\"", ctx_r12.filters.search, "\"");
18288
18544
  }
18289
18545
  }
18290
18546
  function CatalogListComponent_div_1_div_2_Template(rf, ctx) {
@@ -18304,9 +18560,9 @@
18304
18560
  i0__namespace.ɵɵelementEnd();
18305
18561
  }
18306
18562
  if (rf & 2) {
18307
- var ctx_r5 = i0__namespace.ɵɵnextContext(2);
18563
+ var ctx_r7 = i0__namespace.ɵɵnextContext(2);
18308
18564
  i0__namespace.ɵɵadvance(4);
18309
- i0__namespace.ɵɵproperty("ngIf", ctx_r5.isSearching());
18565
+ i0__namespace.ɵɵproperty("ngIf", ctx_r7.isSearching());
18310
18566
  }
18311
18567
  }
18312
18568
  function CatalogListComponent_div_1_ng_template_3_div_0_Template(rf, ctx) {
@@ -18327,9 +18583,9 @@
18327
18583
  }
18328
18584
  if (rf & 2) {
18329
18585
  i0__namespace.ɵɵnextContext();
18330
- var _r8 = i0__namespace.ɵɵreference(6);
18331
- var ctx_r7 = i0__namespace.ɵɵnextContext();
18332
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 2, ctx_r7.userService.isLogged$))("ngIfElse", _r8);
18586
+ var _r10 = i0__namespace.ɵɵreference(6);
18587
+ var ctx_r9 = i0__namespace.ɵɵnextContext();
18588
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 2, ctx_r9.userService.isLogged$))("ngIfElse", _r10);
18333
18589
  }
18334
18590
  }
18335
18591
  function CatalogListComponent_div_1_ng_template_5_Template(rf, ctx) {
@@ -18351,50 +18607,98 @@
18351
18607
  i0__namespace.ɵɵelementEnd();
18352
18608
  }
18353
18609
  if (rf & 2) {
18354
- var _r6 = i0__namespace.ɵɵreference(4);
18610
+ var _r8 = i0__namespace.ɵɵreference(4);
18355
18611
  var ctx_r0 = i0__namespace.ɵɵnextContext();
18356
18612
  i0__namespace.ɵɵadvance(1);
18357
18613
  i0__namespace.ɵɵproperty("width", 279)("height", 243)("iconName", ctx_r0.icon.NoRecipeFound);
18358
18614
  i0__namespace.ɵɵadvance(1);
18359
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.isFiltering())("ngIfElse", _r6);
18615
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.isFiltering())("ngIfElse", _r8);
18360
18616
  }
18361
18617
  }
18362
18618
  function CatalogListComponent_ng_miam_card_create_recipe_3_Template(rf, ctx) {
18363
18619
  if (rf & 1) {
18364
- var _r13_1 = i0__namespace.ɵɵgetCurrentView();
18620
+ var _r15_1 = i0__namespace.ɵɵgetCurrentView();
18365
18621
  i0__namespace.ɵɵelementStart(0, "ng-miam-card-create-recipe", 23);
18366
- i0__namespace.ɵɵlistener("clicked", function CatalogListComponent_ng_miam_card_create_recipe_3_Template_ng_miam_card_create_recipe_clicked_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r12 = i0__namespace.ɵɵnextContext(); return ctx_r12.recipeActionTriggered.emit({ action: "CREATE", recipe: null }); });
18622
+ i0__namespace.ɵɵlistener("clicked", function CatalogListComponent_ng_miam_card_create_recipe_3_Template_ng_miam_card_create_recipe_clicked_0_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.recipeActionTriggered.emit({ action: "CREATE", recipe: null }); });
18367
18623
  i0__namespace.ɵɵelementEnd();
18368
18624
  }
18369
18625
  }
18370
- function CatalogListComponent_ng_miam_recipe_card_4_Template(rf, ctx) {
18626
+ function CatalogListComponent_ng_template_4_Template(rf, ctx) {
18371
18627
  if (rf & 1) {
18372
- var _r16_1 = i0__namespace.ɵɵgetCurrentView();
18628
+ var _r18_1 = i0__namespace.ɵɵgetCurrentView();
18373
18629
  i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card", 24);
18374
- i0__namespace.ɵɵlistener("addToMealsPlanner", function CatalogListComponent_ng_miam_recipe_card_4_Template_ng_miam_recipe_card_addToMealsPlanner_0_listener($event) { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.addToMealsPlanner.emit($event); })("actionTriggered", function CatalogListComponent_ng_miam_recipe_card_4_Template_ng_miam_recipe_card_actionTriggered_0_listener($event) { i0__namespace.ɵɵrestoreView(_r16_1); var recipe_r14 = ctx.$implicit; var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.recipeActionTriggered.emit({ action: $event, recipe: recipe_r14 }); });
18630
+ i0__namespace.ɵɵlistener("addToMealsPlanner", function CatalogListComponent_ng_template_4_Template_ng_miam_recipe_card_addToMealsPlanner_0_listener($event) { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.addToMealsPlanner.emit($event); })("actionTriggered", function CatalogListComponent_ng_template_4_Template_ng_miam_recipe_card_actionTriggered_0_listener($event) { i0__namespace.ɵɵrestoreView(_r18_1); var recipe_r16 = ctx.recipe; var ctx_r19 = i0__namespace.ɵɵnextContext(); return ctx_r19.recipeActionTriggered.emit({ action: $event, recipe: recipe_r16 }); });
18375
18631
  i0__namespace.ɵɵelementEnd();
18376
18632
  }
18377
18633
  if (rf & 2) {
18378
- var recipe_r14 = ctx.$implicit;
18379
- var ctx_r2 = i0__namespace.ɵɵnextContext();
18380
- i0__namespace.ɵɵproperty("recipe", recipe_r14)("originTrace", ctx_r2.eventTrace())("displayPricing", ctx_r2.displayPricing)("previewAllowed", !ctx_r2.addRecipeMode)("addRecipeMode", ctx_r2.addRecipeMode)("displayGuests", ctx_r2.displayGuests)("helpButtonAllowed", ctx_r2.helpButtonAllowed);
18634
+ var recipe_r16 = ctx.recipe;
18635
+ var ctx_r3 = i0__namespace.ɵɵnextContext();
18636
+ i0__namespace.ɵɵproperty("recipe", recipe_r16)("originTrace", ctx_r3.eventTrace())("displayPricing", ctx_r3.displayPricing)("previewAllowed", !ctx_r3.addRecipeMode)("addRecipeMode", ctx_r3.addRecipeMode)("displayGuests", ctx_r3.displayGuests)("helpButtonAllowed", ctx_r3.helpButtonAllowed);
18381
18637
  }
18382
18638
  }
18383
- function CatalogListComponent_ng_miam_catalog_article_card_5_Template(rf, ctx) {
18639
+ var _c10$1 = function (a0) { return { recipe: a0 }; };
18640
+ function CatalogListComponent_ng_container_6_ng_container_1_Template(rf, ctx) {
18384
18641
  if (rf & 1) {
18385
- i0__namespace.ɵɵelement(0, "ng-miam-catalog-article-card", 25);
18642
+ var _r25_1 = i0__namespace.ɵɵgetCurrentView();
18643
+ i0__namespace.ɵɵelementContainerStart(0);
18644
+ i0__namespace.ɵɵelementStart(1, "div", 27);
18645
+ i0__namespace.ɵɵlistener("loadMore", function CatalogListComponent_ng_container_6_ng_container_1_Template_div_loadMore_1_listener() { i0__namespace.ɵɵrestoreView(_r25_1); var ctx_r24 = i0__namespace.ɵɵnextContext(2); return ctx_r24.autoloadContentIfNecessary(); });
18646
+ i0__namespace.ɵɵpipe(2, "async");
18647
+ i0__namespace.ɵɵelementContainer(3, 28);
18648
+ i0__namespace.ɵɵelementEnd();
18649
+ i0__namespace.ɵɵelementContainerEnd();
18650
+ }
18651
+ if (rf & 2) {
18652
+ var recipe_r20 = i0__namespace.ɵɵnextContext().$implicit;
18653
+ var ctx_r22 = i0__namespace.ɵɵnextContext();
18654
+ var _r2 = i0__namespace.ɵɵreference(5);
18655
+ i0__namespace.ɵɵadvance(1);
18656
+ i0__namespace.ɵɵproperty("isLoading", i0__namespace.ɵɵpipeBind1(2, 3, ctx_r22.loading));
18657
+ i0__namespace.ɵɵadvance(2);
18658
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(5, _c10$1, recipe_r20));
18659
+ }
18660
+ }
18661
+ function CatalogListComponent_ng_container_6_ng_container_2_Template(rf, ctx) {
18662
+ if (rf & 1) {
18663
+ i0__namespace.ɵɵelementContainer(0, 28);
18386
18664
  }
18387
18665
  if (rf & 2) {
18388
- var article_r18 = ctx.$implicit;
18389
- i0__namespace.ɵɵproperty("article", article_r18);
18666
+ var recipe_r20 = i0__namespace.ɵɵnextContext().$implicit;
18667
+ i0__namespace.ɵɵnextContext();
18668
+ var _r2 = i0__namespace.ɵɵreference(5);
18669
+ i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c10$1, recipe_r20));
18390
18670
  }
18391
18671
  }
18392
- function CatalogListComponent_div_6_Template(rf, ctx) {
18672
+ function CatalogListComponent_ng_container_6_Template(rf, ctx) {
18393
18673
  if (rf & 1) {
18394
- i0__namespace.ɵɵelementStart(0, "div", 26);
18674
+ i0__namespace.ɵɵelementContainerStart(0);
18675
+ i0__namespace.ɵɵtemplate(1, CatalogListComponent_ng_container_6_ng_container_1_Template, 4, 7, "ng-container", 25);
18676
+ i0__namespace.ɵɵtemplate(2, CatalogListComponent_ng_container_6_ng_container_2_Template, 1, 4, "ng-container", 26);
18677
+ i0__namespace.ɵɵelementContainerEnd();
18678
+ }
18679
+ if (rf & 2) {
18680
+ var isLast_r21 = ctx.last;
18681
+ i0__namespace.ɵɵadvance(1);
18682
+ i0__namespace.ɵɵproperty("ngIf", isLast_r21);
18683
+ i0__namespace.ɵɵadvance(1);
18684
+ i0__namespace.ɵɵproperty("ngIf", !isLast_r21);
18685
+ }
18686
+ }
18687
+ function CatalogListComponent_ng_miam_catalog_article_card_7_Template(rf, ctx) {
18688
+ if (rf & 1) {
18689
+ i0__namespace.ɵɵelement(0, "ng-miam-catalog-article-card", 29);
18690
+ }
18691
+ if (rf & 2) {
18692
+ var article_r28 = ctx.$implicit;
18693
+ i0__namespace.ɵɵproperty("article", article_r28);
18694
+ }
18695
+ }
18696
+ function CatalogListComponent_div_8_Template(rf, ctx) {
18697
+ if (rf & 1) {
18698
+ i0__namespace.ɵɵelementStart(0, "div", 30);
18395
18699
  i0__namespace.ɵɵelement(1, "ng-miam-loader");
18396
18700
  i0__namespace.ɵɵelementStart(2, "div");
18397
- i0__namespace.ɵɵi18n(3, 27);
18701
+ i0__namespace.ɵɵi18n(3, 31);
18398
18702
  i0__namespace.ɵɵelementEnd();
18399
18703
  i0__namespace.ɵɵelementEnd();
18400
18704
  }
@@ -18409,10 +18713,9 @@
18409
18713
  _c$1);
18410
18714
  var CatalogListComponent = /** @class */ (function (_super) {
18411
18715
  __extends(CatalogListComponent, _super);
18412
- function CatalogListComponent(recipesService, recipeLikesService, articlesService, userService, context, cdr, analyticsService) {
18716
+ function CatalogListComponent(recipesService, articlesService, userService, context, cdr, analyticsService) {
18413
18717
  var _this = _super.call(this, analyticsService) || this;
18414
18718
  _this.recipesService = recipesService;
18415
- _this.recipeLikesService = recipeLikesService;
18416
18719
  _this.articlesService = articlesService;
18417
18720
  _this.userService = userService;
18418
18721
  _this.context = context;
@@ -18457,10 +18760,6 @@
18457
18760
  enumerable: false,
18458
18761
  configurable: true
18459
18762
  });
18460
- CatalogListComponent.prototype.ngOnInit = function () {
18461
- this.bottomAnchor = document.getElementById('miam-catalog-list__anchor');
18462
- this.initLoadOnScroll();
18463
- };
18464
18763
  CatalogListComponent.prototype.ngOnChanges = function (changes) {
18465
18764
  var changesKeys = Object.keys(changes);
18466
18765
  // Prevents reload loop in angular, because originTrace and excludedRecipesIds are passed as methods so they keep refreshing the DOM
@@ -18477,27 +18776,11 @@
18477
18776
  CatalogListComponent.prototype.currentPath = function () {
18478
18777
  return this.filters.eventPath();
18479
18778
  };
18480
- CatalogListComponent.prototype.initLoadOnScroll = function () {
18481
- var _this = this;
18482
- // Receive an event each time the anchor enters/leaves the viewport
18483
- this.intersectionObserver = new IntersectionObserver(function () { _this.autoloadContentIfNecessary(); }, {});
18484
- // Receive an event each time an attribute/child is added/deleted/updated in the parent div of the recipes
18485
- // i.e. will be triggered each time new recipes are displayed
18486
- this.mutationObserver = new MutationObserver(function () { _this.autoloadContentIfNecessary(); });
18487
- this.intersectionObserver.observe(this.bottomAnchor);
18488
- this.mutationObserver.observe(document.getElementsByClassName('miam-catalog-list__cards')[0], { attributes: true, childList: true, subtree: false } // subtree false => changes on children won't trigger the callback
18489
- );
18490
- };
18491
- CatalogListComponent.prototype.anchorIsOnScreen = function () {
18492
- var viewportHeight = window.innerHeight || document.documentElement.clientHeight;
18493
- var rect = this.bottomAnchor.getBoundingClientRect();
18494
- return (rect.top <= viewportHeight && rect.bottom >= 0);
18495
- };
18496
18779
  CatalogListComponent.prototype.autoloadContentIfNecessary = function () {
18497
18780
  var _this = this;
18498
18781
  this.subscriptions.push(this.loading.pipe(operators.take(1), operators.filter(function (loading) { return !loading; })).subscribe(function () {
18499
- if (_this.anchorIsOnScreen() && ((_this.currentRecipes.length > 0 && !_this.noMoreRecipes) ||
18500
- (_this.articles.length > 0 && !_this.noMoreArticles))) {
18782
+ if ((_this.currentRecipes.length > 0 && !_this.noMoreRecipes) ||
18783
+ (_this.articles.length > 0 && !_this.noMoreArticles)) {
18501
18784
  // At component initial load, 2 calls will be made for the first two recipes page
18502
18785
  // This is to avoid making the loader spin twice
18503
18786
  _this.loadMore(_this.lastPage > 2);
@@ -18508,6 +18791,7 @@
18508
18791
  if (loader === void 0) { loader = true; }
18509
18792
  if (loader) {
18510
18793
  this.loading.next(true);
18794
+ this.cdr.detectChanges();
18511
18795
  }
18512
18796
  this.lastPage++;
18513
18797
  this.loadContent();
@@ -18584,33 +18868,16 @@
18584
18868
  };
18585
18869
  CatalogListComponent.prototype.ngOnDestroy = function () {
18586
18870
  this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
18587
- this.intersectionObserver.disconnect();
18588
- this.mutationObserver.disconnect();
18589
18871
  };
18590
18872
  CatalogListComponent.prototype.isSearching = function () {
18591
18873
  return this.filters.search && this.filters.search !== '';
18592
18874
  };
18593
18875
  CatalogListComponent.prototype.isFieldEmpty = function (recipeFilter) {
18594
- var e_1, _c;
18595
18876
  if (!recipeFilter) {
18596
18877
  return true;
18597
18878
  }
18598
- try {
18599
- for (var recipeFilter_1 = __values(recipeFilter), recipeFilter_1_1 = recipeFilter_1.next(); !recipeFilter_1_1.done; recipeFilter_1_1 = recipeFilter_1.next()) {
18600
- var f = recipeFilter_1_1.value;
18601
- if (f.value) {
18602
- return false;
18603
- }
18604
- }
18605
- }
18606
- catch (e_1_1) { e_1 = { error: e_1_1 }; }
18607
- finally {
18608
- try {
18609
- if (recipeFilter_1_1 && !recipeFilter_1_1.done && (_c = recipeFilter_1.return)) _c.call(recipeFilter_1);
18610
- }
18611
- finally { if (e_1) throw e_1.error; }
18612
- }
18613
- return true;
18879
+ // if recipeFilter has at least one filter with value, return false
18880
+ return !recipeFilter.some(function (f) { return f.value; });
18614
18881
  };
18615
18882
  CatalogListComponent.prototype.isFiltering = function () {
18616
18883
  return this.isSearching() ||
@@ -18618,6 +18885,9 @@
18618
18885
  !this.isFieldEmpty(this.filters.cost) ||
18619
18886
  !this.isFieldEmpty(this.filters.time);
18620
18887
  };
18888
+ CatalogListComponent.prototype.trackByFn = function (index, recipe) {
18889
+ return recipe.id;
18890
+ };
18621
18891
  CatalogListComponent.prototype.props = function () {
18622
18892
  var _a, _b;
18623
18893
  if (!((_a = this.filters) === null || _a === void 0 ? void 0 : _a.search)) {
@@ -18653,7 +18923,7 @@
18653
18923
  };
18654
18924
  return CatalogListComponent;
18655
18925
  }(EventTracerComponent));
18656
- CatalogListComponent.ɵfac = function CatalogListComponent_Factory(t) { return new (t || CatalogListComponent)(i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(RecipeLikesService), i0__namespace.ɵɵdirectiveInject(ArticlesService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService)); };
18926
+ CatalogListComponent.ɵfac = function CatalogListComponent_Factory(t) { return new (t || CatalogListComponent)(i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(ArticlesService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService)); };
18657
18927
  CatalogListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CatalogListComponent, selectors: [["ng-miam-catalog-list"]], viewQuery: function CatalogListComponent_Query(rf, ctx) {
18658
18928
  if (rf & 1) {
18659
18929
  i0__namespace.ɵɵviewQuery(RecipeCardComponent, 1);
@@ -18662,7 +18932,7 @@
18662
18932
  var _t = void 0;
18663
18933
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.recipeCards = _t);
18664
18934
  }
18665
- }, inputs: { filters: "filters", insertCreateCard: "insertCreateCard", randomMode: "randomMode", modifiedGuests: "modifiedGuests", displayPricing: "displayPricing", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", addRecipeMode: "addRecipeMode", excludedRecipesIds: "excludedRecipesIds" }, outputs: { addToMealsPlanner: "addToMealsPlanner", filterRemoved: "filterRemoved", recipeActionTriggered: "recipeActionTriggered", loading: "loading" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 9, vars: 9, consts: function () {
18935
+ }, inputs: { filters: "filters", insertCreateCard: "insertCreateCard", randomMode: "randomMode", modifiedGuests: "modifiedGuests", displayPricing: "displayPricing", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", addRecipeMode: "addRecipeMode", excludedRecipesIds: "excludedRecipesIds" }, outputs: { addToMealsPlanner: "addToMealsPlanner", filterRemoved: "filterRemoved", recipeActionTriggered: "recipeActionTriggered", loading: "loading" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 10, vars: 10, consts: function () {
18666
18936
  var i18n_0;
18667
18937
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18668
18938
  var MSG_EXTERNAL_2565683500171826824$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___1 = goog.getMsg("D\u00E9sol\u00E9, aucune proposition trouv\u00E9e");
@@ -18701,43 +18971,43 @@
18701
18971
  i18n_8 = MSG_EXTERNAL_4851375363781203983$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___9;
18702
18972
  }
18703
18973
  else {
18704
- i18n_8 = $localize(templateObject_5$7 || (templateObject_5$7 = __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."])));
18974
+ i18n_8 = $localize(templateObject_5$6 || (templateObject_5$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."])));
18705
18975
  }
18706
- var i18n_10;
18976
+ var i18n_11;
18707
18977
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18708
- var MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__11 = goog.getMsg(" Chargement des r\u00E9sultats... ");
18709
- i18n_10 = MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__11;
18978
+ var MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__12 = goog.getMsg(" Chargement des r\u00E9sultats... ");
18979
+ i18n_11 = MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__12;
18710
18980
  }
18711
18981
  else {
18712
- i18n_10 = $localize(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
18982
+ i18n_11 = $localize(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
18713
18983
  }
18714
- return [[1, "miam-catalog-list__cards"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__card", 3, "clicked", 4, "ngIf"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "helpButtonAllowed", "addToMealsPlanner", "actionTriggered", 4, "ngFor", "ngForOf"], [3, "article", 4, "ngFor", "ngForOf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["id", "miam-catalog-list__anchor"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "filtering"], i18n_0, ["class", "miam-catalog-list__notFound__searching", 4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, [1, "miam-catalog-list__notFound__searching"], i18n_4, [1, "miam-catalog-list__notFound__title1", "not-filtering"], i18n_6, [1, "miam-catalog-list__notFound__title1", "not-logged"], i18n_8, [1, "miam-catalog-list__card", 3, "clicked"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "helpButtonAllowed", "addToMealsPlanner", "actionTriggered"], [3, "article"], [1, "miam-catalog-list__loader"], i18n_10];
18984
+ return [[1, "miam-catalog-list__cards"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__card", 3, "clicked", 4, "ngIf"], ["recipeCard", ""], [4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "article", 4, "ngFor", "ngForOf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "filtering"], i18n_0, ["class", "miam-catalog-list__notFound__searching", 4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, [1, "miam-catalog-list__notFound__searching"], i18n_4, [1, "miam-catalog-list__notFound__title1", "not-filtering"], i18n_6, [1, "miam-catalog-list__notFound__title1", "not-logged"], i18n_8, [1, "miam-catalog-list__card", 3, "clicked"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "helpButtonAllowed", "addToMealsPlanner", "actionTriggered"], [4, "ngIf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["ngMiamLoadOnScroll", "", "marginRoot", "600px", 3, "isLoading", "loadMore"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "article"], [1, "miam-catalog-list__loader"], i18n_11];
18715
18985
  }, template: function CatalogListComponent_Template(rf, ctx) {
18716
18986
  if (rf & 1) {
18717
18987
  i0__namespace.ɵɵelementStart(0, "div", 0);
18718
18988
  i0__namespace.ɵɵtemplate(1, CatalogListComponent_div_1_Template, 7, 5, "div", 1);
18719
18989
  i0__namespace.ɵɵpipe(2, "async");
18720
18990
  i0__namespace.ɵɵtemplate(3, CatalogListComponent_ng_miam_card_create_recipe_3_Template, 1, 0, "ng-miam-card-create-recipe", 2);
18721
- i0__namespace.ɵɵtemplate(4, CatalogListComponent_ng_miam_recipe_card_4_Template, 1, 7, "ng-miam-recipe-card", 3);
18722
- i0__namespace.ɵɵtemplate(5, CatalogListComponent_ng_miam_catalog_article_card_5_Template, 1, 1, "ng-miam-catalog-article-card", 4);
18723
- i0__namespace.ɵɵtemplate(6, CatalogListComponent_div_6_Template, 4, 0, "div", 5);
18724
- i0__namespace.ɵɵpipe(7, "async");
18725
- i0__namespace.ɵɵelement(8, "div", 6);
18991
+ i0__namespace.ɵɵtemplate(4, CatalogListComponent_ng_template_4_Template, 1, 7, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
18992
+ i0__namespace.ɵɵtemplate(6, CatalogListComponent_ng_container_6_Template, 3, 2, "ng-container", 4);
18993
+ i0__namespace.ɵɵtemplate(7, CatalogListComponent_ng_miam_catalog_article_card_7_Template, 1, 1, "ng-miam-catalog-article-card", 5);
18994
+ i0__namespace.ɵɵtemplate(8, CatalogListComponent_div_8_Template, 4, 0, "div", 6);
18995
+ i0__namespace.ɵɵpipe(9, "async");
18726
18996
  i0__namespace.ɵɵelementEnd();
18727
18997
  }
18728
18998
  if (rf & 2) {
18729
18999
  i0__namespace.ɵɵadvance(1);
18730
- i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(2, 5, ctx.loading) && ctx.currentRecipes.length === 0 && ctx.articles.length === 0);
19000
+ i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(2, 6, ctx.loading) && ctx.currentRecipes.length === 0 && ctx.articles.length === 0);
18731
19001
  i0__namespace.ɵɵadvance(2);
18732
19002
  i0__namespace.ɵɵproperty("ngIf", ctx.insertCreateCard && ctx.currentRecipes.length !== 0);
18733
- i0__namespace.ɵɵadvance(1);
18734
- i0__namespace.ɵɵproperty("ngForOf", ctx.currentRecipes);
19003
+ i0__namespace.ɵɵadvance(3);
19004
+ i0__namespace.ɵɵproperty("ngForOf", ctx.currentRecipes)("ngForTrackBy", ctx.trackByFn);
18735
19005
  i0__namespace.ɵɵadvance(1);
18736
19006
  i0__namespace.ɵɵproperty("ngForOf", ctx.articles);
18737
19007
  i0__namespace.ɵɵadvance(1);
18738
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(7, 7, ctx.loading));
19008
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(9, 8, ctx.loading));
18739
19009
  }
18740
- }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, IconComponent, CardCreateRecipeComponent, RecipeCardComponent, CatalogArticleCardComponent, LoaderComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-catalog-list__cards{display:grid;grid-template-columns:repeat(auto-fill,var(--m-catalog-card-width));justify-content:center;gap:16px;position:relative;width:100%;box-sizing:border-box}.miam-catalog-list__cards .miam-catalog-list__notFound{display:flex;flex-direction:column;width:100%;justify-content:center;text-align:center;padding:36px 0 0}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{margin-top:36px;font-size:24px;font-weight:700;color:var(--m-color-primary)}.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{font-size:22px;color:var(--m-color-grey-text)}.miam-catalog-list__cards .miam-catalog-list__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-list__cards .miam-catalog-list__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-catalog-list__cards #miam-catalog-list__anchor{position:relative;bottom:0;height:600px;margin-top:-600px}"], encapsulation: 2, changeDetection: 0 });
19010
+ }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, IconComponent, CardCreateRecipeComponent, RecipeCardComponent, LoadOnScrollDirective, i2__namespace$1.NgTemplateOutlet, CatalogArticleCardComponent, LoaderComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-catalog-list__cards{display:grid;grid-template-columns:repeat(auto-fill,var(--m-catalog-card-width));justify-content:center;gap:16px;position:relative;width:100%;box-sizing:border-box}.miam-catalog-list__cards .miam-catalog-list__notFound{display:flex;flex-direction:column;width:100%;justify-content:center;text-align:center;padding:36px 0 0}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{margin-top:36px;font-size:24px;font-weight:700;color:var(--m-color-primary)}.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{font-size:22px;color:var(--m-color-grey-text)}.miam-catalog-list__cards .miam-catalog-list__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-list__cards .miam-catalog-list__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-catalog-list__cards #miam-catalog-list__anchor{position:relative;bottom:0;height:600px;margin-top:-600px}"], encapsulation: 2, changeDetection: 0 });
18741
19011
  (function () {
18742
19012
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CatalogListComponent, [{
18743
19013
  type: i0.Component,
@@ -18748,7 +19018,7 @@
18748
19018
  encapsulation: i0.ViewEncapsulation.None,
18749
19019
  changeDetection: i0.ChangeDetectionStrategy.OnPush
18750
19020
  }]
18751
- }], function () { return [{ type: RecipesService }, { type: RecipeLikesService }, { type: ArticlesService }, { type: UserService }, { type: ContextService }, { type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }]; }, { filters: [{
19021
+ }], function () { return [{ type: RecipesService }, { type: ArticlesService }, { type: UserService }, { type: ContextService }, { type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }]; }, { filters: [{
18752
19022
  type: i0.Input
18753
19023
  }], insertCreateCard: [{
18754
19024
  type: i0.Input
@@ -18779,7 +19049,7 @@
18779
19049
  args: [RecipeCardComponent]
18780
19050
  }] });
18781
19051
  })();
18782
- var templateObject_1$i, templateObject_2$f, templateObject_3$b, templateObject_4$9, templateObject_5$7, templateObject_6$6;
19052
+ var templateObject_1$i, templateObject_2$f, templateObject_3$b, templateObject_4$9, templateObject_5$6, templateObject_6$6;
18783
19053
 
18784
19054
  function MealsPlannerCatalogComponent_div_14_Template(rf, ctx) {
18785
19055
  if (rf & 1) {
@@ -19324,7 +19594,9 @@
19324
19594
  this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
19325
19595
  this.recipeDetailsService.onlyShowPreparation = false;
19326
19596
  };
19327
- MealsPlannerComponent.prototype.currentPath = function () { return 'miam/recipes/meals-planner'; };
19597
+ MealsPlannerComponent.prototype.currentPath = function () {
19598
+ return 'miam/recipes/meals-planner';
19599
+ };
19328
19600
  // TODO: cut into more methods
19329
19601
  MealsPlannerComponent.prototype.addRecipes = function () {
19330
19602
  var _this = this;
@@ -20152,7 +20424,7 @@
20152
20424
  i18n_8 = MSG_EXTERNAL_7387753154079259338$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_HEADER_CATALOG_HEADER_COMPONENT_TS___9;
20153
20425
  }
20154
20426
  else {
20155
- i18n_8 = $localize(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject([":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"], [":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"])));
20427
+ i18n_8 = $localize(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject([":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"], [":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"])));
20156
20428
  }
20157
20429
  var i18n_10;
20158
20430
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -20287,7 +20559,7 @@
20287
20559
  type: i0.Output
20288
20560
  }] });
20289
20561
  })();
20290
- var templateObject_1$d, templateObject_2$a, templateObject_3$8, templateObject_4$7, templateObject_5$6, templateObject_6$5, templateObject_7$4, templateObject_8$2, templateObject_9$2;
20562
+ var templateObject_1$d, templateObject_2$a, templateObject_3$8, templateObject_4$7, templateObject_5$5, templateObject_6$5, templateObject_7$4, templateObject_8$2, templateObject_9$2;
20291
20563
 
20292
20564
  function RecipeFormComponent_form_0_ng_template_3_Template(rf, ctx) {
20293
20565
  if (rf & 1) {
@@ -20808,7 +21080,7 @@
20808
21080
  i18n_8 = MSG_EXTERNAL_4142863621251590306$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_FORM_RECIPE_FORM_COMPONENT_TS___9;
20809
21081
  }
20810
21082
  else {
20811
- i18n_8 = $localize(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject([":\u241Ffb8b4b6668befda8fc42e047c9b246d4777a881b\u241F4142863621251590306:Ajouter une photo"], [":\u241Ffb8b4b6668befda8fc42e047c9b246d4777a881b\u241F4142863621251590306:Ajouter une photo"])));
21083
+ i18n_8 = $localize(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject([":\u241Ffb8b4b6668befda8fc42e047c9b246d4777a881b\u241F4142863621251590306:Ajouter une photo"], [":\u241Ffb8b4b6668befda8fc42e047c9b246d4777a881b\u241F4142863621251590306:Ajouter une photo"])));
20812
21084
  }
20813
21085
  var i18n_10;
20814
21086
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -20889,7 +21161,7 @@
20889
21161
  type: i0.Output
20890
21162
  }] });
20891
21163
  })();
20892
- var templateObject_1$c, templateObject_2$9, templateObject_3$7, templateObject_4$6, templateObject_5$5, templateObject_6$4, templateObject_7$3, templateObject_8$1, templateObject_9$1;
21164
+ var templateObject_1$c, templateObject_2$9, templateObject_3$7, templateObject_4$6, templateObject_5$4, templateObject_6$4, templateObject_7$3, templateObject_8$1, templateObject_9$1;
20893
21165
 
20894
21166
  function TagsCreatorComponent_ng_miam_modal_0_Template(rf, ctx) {
20895
21167
  if (rf & 1) {
@@ -21253,7 +21525,7 @@
21253
21525
  i18n_8 = MSG_EXTERNAL_2575761888491507638$$LIB__WEB_COMPONENTS_RECIPE_CREATION_TAGS_SELECTOR_TAGS_SELECTOR_COMPONENT_TS__9;
21254
21526
  }
21255
21527
  else {
21256
- i18n_8 = $localize(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject([":\u241F13a158067c29e5c5211ea07d687c286c5ba99516\u241F2575761888491507638: Famille d'ingr\u00E9dients "], [":\u241F13a158067c29e5c5211ea07d687c286c5ba99516\u241F2575761888491507638: Famille d'ingr\u00E9dients "])));
21528
+ i18n_8 = $localize(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject([":\u241F13a158067c29e5c5211ea07d687c286c5ba99516\u241F2575761888491507638: Famille d'ingr\u00E9dients "], [":\u241F13a158067c29e5c5211ea07d687c286c5ba99516\u241F2575761888491507638: Famille d'ingr\u00E9dients "])));
21257
21529
  }
21258
21530
  var i18n_10;
21259
21531
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -21304,7 +21576,7 @@
21304
21576
  type: i0.Output
21305
21577
  }] });
21306
21578
  })();
21307
- var templateObject_1$a, templateObject_2$7, templateObject_3$5, templateObject_4$4, templateObject_5$4, templateObject_6$3, templateObject_7$2;
21579
+ var templateObject_1$a, templateObject_2$7, templateObject_3$5, templateObject_4$4, templateObject_5$3, templateObject_6$3, templateObject_7$2;
21308
21580
 
21309
21581
  var _c0$4 = ["topAnchor"];
21310
21582
  var _c1$2 = ["stepperLinks"];
@@ -21821,7 +22093,7 @@
21821
22093
  i18n_11 = MSG_EXTERNAL_4078662097036588656$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_STEPPER_RECIPE_STEPPER_COMPONENT_TS_12;
21822
22094
  }
21823
22095
  else {
21824
- i18n_11 = $localize(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject([":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"], [":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"])));
22096
+ i18n_11 = $localize(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject([":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"], [":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"])));
21825
22097
  }
21826
22098
  var i18n_13;
21827
22099
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -22081,7 +22353,7 @@
22081
22353
  args: ['step']
22082
22354
  }] });
22083
22355
  })();
22084
- var templateObject_1$9, templateObject_2$6, templateObject_3$4, templateObject_4$3, templateObject_5$3, templateObject_6$2, templateObject_7$1, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
22356
+ var templateObject_1$9, templateObject_2$6, templateObject_3$4, templateObject_4$3, templateObject_5$2, templateObject_6$2, templateObject_7$1, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
22085
22357
 
22086
22358
  var _c0$3 = ["miamCatalogTopAnchor"];
22087
22359
  function RecipeCatalogComponent_div_2_div_4_Template(rf, ctx) {
@@ -22705,7 +22977,7 @@
22705
22977
  i18n_9 = MSG_EXTERNAL_7387753154079259338$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_RECIPE_CATALOG_COMPONENT_TS____10;
22706
22978
  }
22707
22979
  else {
22708
- i18n_9 = $localize(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject([":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"], [":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"])));
22980
+ i18n_9 = $localize(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject([":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"], [":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"])));
22709
22981
  }
22710
22982
  var i18n_11;
22711
22983
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -22761,7 +23033,7 @@
22761
23033
  type: i0.Input
22762
23034
  }] });
22763
23035
  })();
22764
- var templateObject_1$8, templateObject_2$5, templateObject_3$3, templateObject_4$2, templateObject_5$2, templateObject_6$1;
23036
+ var templateObject_1$8, templateObject_2$5, templateObject_3$3, templateObject_4$2, templateObject_5$1, templateObject_6$1;
22765
23037
 
22766
23038
  var RecipeCreationModule = /** @class */ (function () {
22767
23039
  // Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
@@ -23549,7 +23821,7 @@
23549
23821
  }
23550
23822
  function RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_10_Template(rf, ctx) {
23551
23823
  if (rf & 1) {
23552
- i0__namespace.ɵɵelement(0, "ng-miam-like-button", 43);
23824
+ i0__namespace.ɵɵelement(0, "ng-miam-like-button", 45);
23553
23825
  }
23554
23826
  if (rf & 2) {
23555
23827
  var ctx_r6 = i0__namespace.ɵɵnextContext(3);
@@ -23558,7 +23830,7 @@
23558
23830
  }
23559
23831
  function RecipeDetailsComponent_div_0_div_3_img_14_Template(rf, ctx) {
23560
23832
  if (rf & 1) {
23561
- i0__namespace.ɵɵelement(0, "img", 44);
23833
+ i0__namespace.ɵɵelement(0, "img", 46);
23562
23834
  }
23563
23835
  if (rf & 2) {
23564
23836
  var ctx_r7 = i0__namespace.ɵɵnextContext(3);
@@ -23567,7 +23839,7 @@
23567
23839
  }
23568
23840
  function RecipeDetailsComponent_div_0_div_3_youtube_player_15_Template(rf, ctx) {
23569
23841
  if (rf & 1) {
23570
- i0__namespace.ɵɵelement(0, "youtube-player", 45);
23842
+ i0__namespace.ɵɵelement(0, "youtube-player", 47);
23571
23843
  }
23572
23844
  if (rf & 2) {
23573
23845
  var ctx_r8 = i0__namespace.ɵɵnextContext(3);
@@ -23576,8 +23848,8 @@
23576
23848
  }
23577
23849
  function RecipeDetailsComponent_div_0_div_3_div_16_Template(rf, ctx) {
23578
23850
  if (rf & 1) {
23579
- i0__namespace.ɵɵelementStart(0, "div", 46);
23580
- i0__namespace.ɵɵelement(1, "img", 47);
23851
+ i0__namespace.ɵɵelementStart(0, "div", 48);
23852
+ i0__namespace.ɵɵelement(1, "img", 49);
23581
23853
  i0__namespace.ɵɵelementEnd();
23582
23854
  }
23583
23855
  if (rf & 2) {
@@ -23588,9 +23860,9 @@
23588
23860
  }
23589
23861
  function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template(rf, ctx) {
23590
23862
  if (rf & 1) {
23591
- var _r17_1 = i0__namespace.ɵɵgetCurrentView();
23592
- i0__namespace.ɵɵelementStart(0, "ng-miam-addon-link", 48);
23593
- i0__namespace.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template_ng_miam_addon_link_showAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(3); return ctx_r16.toggleAddon(); });
23863
+ var _r19_1 = i0__namespace.ɵɵgetCurrentView();
23864
+ i0__namespace.ɵɵelementStart(0, "ng-miam-addon-link", 50);
23865
+ i0__namespace.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template_ng_miam_addon_link_showAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(3); return ctx_r18.toggleAddon(); });
23594
23866
  i0__namespace.ɵɵelementEnd();
23595
23867
  }
23596
23868
  if (rf & 2) {
@@ -23600,7 +23872,7 @@
23600
23872
  }
23601
23873
  function RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_27_Template(rf, ctx) {
23602
23874
  if (rf & 1) {
23603
- i0__namespace.ɵɵelement(0, "ng-miam-like-button", 49);
23875
+ i0__namespace.ɵɵelement(0, "ng-miam-like-button", 51);
23604
23876
  }
23605
23877
  if (rf & 2) {
23606
23878
  var ctx_r11 = i0__namespace.ɵɵnextContext(3);
@@ -23609,17 +23881,17 @@
23609
23881
  }
23610
23882
  function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template(rf, ctx) {
23611
23883
  if (rf & 1) {
23612
- var _r19_1 = i0__namespace.ɵɵgetCurrentView();
23613
- i0__namespace.ɵɵelementStart(0, "ng-miam-products-picker", 50);
23614
- i0__namespace.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template_ng_miam_products_picker_closeModal_0_listener() { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(3); return ctx_r18.onClose(); });
23884
+ var _r21_1 = i0__namespace.ɵɵgetCurrentView();
23885
+ i0__namespace.ɵɵelementStart(0, "ng-miam-products-picker", 52);
23886
+ i0__namespace.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template_ng_miam_products_picker_closeModal_0_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r20 = i0__namespace.ɵɵnextContext(3); return ctx_r20.onClose(); });
23615
23887
  i0__namespace.ɵɵelementEnd();
23616
23888
  }
23617
23889
  }
23618
23890
  function RecipeDetailsComponent_div_0_div_3_div_36_Template(rf, ctx) {
23619
23891
  if (rf & 1) {
23620
- i0__namespace.ɵɵelementStart(0, "div", 51);
23621
- i0__namespace.ɵɵelement(1, "ng-miam-recipe-details-ingredients", 52);
23622
- i0__namespace.ɵɵelement(2, "ng-miam-recipe-details-steps", 53);
23892
+ i0__namespace.ɵɵelementStart(0, "div", 53);
23893
+ i0__namespace.ɵɵelement(1, "ng-miam-recipe-details-ingredients", 54);
23894
+ i0__namespace.ɵɵelement(2, "ng-miam-recipe-details-steps", 55);
23623
23895
  i0__namespace.ɵɵelementEnd();
23624
23896
  }
23625
23897
  if (rf & 2) {
@@ -23630,135 +23902,130 @@
23630
23902
  i0__namespace.ɵɵproperty("recipe", ctx_r13.recipeDetailsService.recipe);
23631
23903
  }
23632
23904
  }
23633
- function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_div_2_Template(rf, ctx) {
23905
+ function RecipeDetailsComponent_div_0_div_3_button_39_span_7_Template(rf, ctx) {
23634
23906
  if (rf & 1) {
23635
- i0__namespace.ɵɵelementStart(0, "div", 61);
23636
- i0__namespace.ɵɵelementStart(1, "span");
23637
- i0__namespace.ɵɵi18n(2, 62);
23638
- i0__namespace.ɵɵelementEnd();
23907
+ i0__namespace.ɵɵelementStart(0, "span");
23908
+ i0__namespace.ɵɵi18n(1, 63);
23639
23909
  i0__namespace.ɵɵelementEnd();
23640
23910
  }
23641
23911
  }
23642
- function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_ng_template_3_span_5_Template(rf, ctx) {
23912
+ function RecipeDetailsComponent_div_0_div_3_button_39_span_8_Template(rf, ctx) {
23643
23913
  if (rf & 1) {
23644
23914
  i0__namespace.ɵɵelementStart(0, "span");
23645
23915
  i0__namespace.ɵɵi18n(1, 64);
23646
23916
  i0__namespace.ɵɵelementEnd();
23647
23917
  }
23648
23918
  }
23649
- function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_ng_template_3_span_6_Template(rf, ctx) {
23919
+ function RecipeDetailsComponent_div_0_div_3_button_39_Template(rf, ctx) {
23650
23920
  if (rf & 1) {
23651
- i0__namespace.ɵɵelementStart(0, "span");
23652
- i0__namespace.ɵɵi18n(1, 65);
23921
+ var _r25_1 = i0__namespace.ɵɵgetCurrentView();
23922
+ i0__namespace.ɵɵelementStart(0, "button", 56);
23923
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_button_39_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r25_1); var ctx_r24 = i0__namespace.ɵɵnextContext(3); return ctx_r24.recipeDetailsService.addAllIngredientsToBasket(ctx_r24.eventTrace()); });
23924
+ i0__namespace.ɵɵelement(1, "img", 57);
23925
+ i0__namespace.ɵɵelementStart(2, "div", 58);
23926
+ i0__namespace.ɵɵelementStart(3, "span");
23927
+ i0__namespace.ɵɵi18n(4, 59);
23653
23928
  i0__namespace.ɵɵelementEnd();
23654
- }
23655
- }
23656
- function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_ng_template_3_Template(rf, ctx) {
23657
- if (rf & 1) {
23658
- i0__namespace.ɵɵelementStart(0, "div", 61);
23659
- i0__namespace.ɵɵelementStart(1, "span");
23660
- i0__namespace.ɵɵi18n(2, 63);
23929
+ i0__namespace.ɵɵelementStart(5, "span");
23930
+ i0__namespace.ɵɵtext(6);
23931
+ i0__namespace.ɵɵelementEnd();
23932
+ i0__namespace.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_3_button_39_span_7_Template, 2, 0, "span", 60);
23933
+ i0__namespace.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_3_button_39_span_8_Template, 2, 0, "span", 60);
23934
+ i0__namespace.ɵɵelementStart(9, "div", 61);
23935
+ i0__namespace.ɵɵtext(10, " ( ");
23936
+ i0__namespace.ɵɵelementStart(11, "span");
23937
+ i0__namespace.ɵɵpipe(12, "async");
23938
+ i0__namespace.ɵɵtext(13);
23939
+ i0__namespace.ɵɵpipe(14, "currency");
23940
+ i0__namespace.ɵɵelementEnd();
23941
+ i0__namespace.ɵɵelement(15, "div", 62);
23942
+ i0__namespace.ɵɵpipe(16, "async");
23943
+ i0__namespace.ɵɵtext(17, " ) ");
23661
23944
  i0__namespace.ɵɵelementEnd();
23662
- i0__namespace.ɵɵelementStart(3, "span");
23663
- i0__namespace.ɵɵtext(4);
23664
23945
  i0__namespace.ɵɵelementEnd();
23665
- i0__namespace.ɵɵtemplate(5, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_ng_template_3_span_5_Template, 2, 0, "span", 41);
23666
- i0__namespace.ɵɵtemplate(6, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_ng_template_3_span_6_Template, 2, 0, "span", 41);
23667
23946
  i0__namespace.ɵɵelementEnd();
23668
23947
  }
23669
23948
  if (rf & 2) {
23670
- var ctx_r25 = i0__namespace.ɵɵnextContext(5);
23671
- i0__namespace.ɵɵadvance(4);
23672
- i0__namespace.ɵɵtextInterpolate(ctx_r25.recipeDetailsService.remainingBasketEntries.length);
23949
+ var ctx_r14 = i0__namespace.ɵɵnextContext(3);
23950
+ i0__namespace.ɵɵadvance(6);
23951
+ i0__namespace.ɵɵtextInterpolate(ctx_r14.recipeDetailsService.remainingBasketEntries.length);
23673
23952
  i0__namespace.ɵɵadvance(1);
23674
- i0__namespace.ɵɵproperty("ngIf", ctx_r25.recipeDetailsService.remainingBasketEntries.length <= 1);
23953
+ i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length <= 1);
23675
23954
  i0__namespace.ɵɵadvance(1);
23676
- i0__namespace.ɵɵproperty("ngIf", ctx_r25.recipeDetailsService.remainingBasketEntries.length > 1);
23677
- }
23678
- }
23679
- function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_Template(rf, ctx) {
23680
- if (rf & 1) {
23681
- var _r29_1 = i0__namespace.ɵɵgetCurrentView();
23682
- i0__namespace.ɵɵelementStart(0, "button", 57);
23683
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r28 = i0__namespace.ɵɵnextContext(4); return ctx_r28.recipeDetailsService.addAllIngredientsToBasket(ctx_r28.eventTrace()); });
23684
- i0__namespace.ɵɵelement(1, "img", 58);
23685
- i0__namespace.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_div_2_Template, 3, 0, "div", 59);
23686
- i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_ng_template_3_Template, 7, 3, "ng-template", null, 60, i0__namespace.ɵɵtemplateRefExtractor);
23687
- i0__namespace.ɵɵelementEnd();
23688
- }
23689
- if (rf & 2) {
23690
- var _r24 = i0__namespace.ɵɵreference(4);
23691
- var ctx_r20 = i0__namespace.ɵɵnextContext(4);
23955
+ i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length > 1);
23956
+ i0__namespace.ɵɵadvance(3);
23957
+ i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(12, 8, ctx_r14.recipeDetailsService.ingredientToBasketLoading$));
23692
23958
  i0__namespace.ɵɵadvance(2);
23693
- i0__namespace.ɵɵproperty("ngIf", !ctx_r20.recipeDetailsService.hasAddedAProduct)("ngIfElse", _r24);
23959
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(14, 10, ctx_r14.recipeDetailsService.recipePrice.remaining, ctx_r14.suppliersService.supplier$.value.currency), " ");
23960
+ i0__namespace.ɵɵadvance(2);
23961
+ i0__namespace.ɵɵclassProp("hidden", !i0__namespace.ɵɵpipeBind1(16, 13, ctx_r14.recipeDetailsService.ingredientToBasketLoading$));
23694
23962
  }
23695
23963
  }
23696
- function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_3_Template(rf, ctx) {
23964
+ function RecipeDetailsComponent_div_0_div_3_button_41_Template(rf, ctx) {
23697
23965
  if (rf & 1) {
23698
- i0__namespace.ɵɵelementStart(0, "button", 66);
23699
- i0__namespace.ɵɵelement(1, "div", 67);
23966
+ i0__namespace.ɵɵelementStart(0, "button", 65);
23967
+ i0__namespace.ɵɵelement(1, "div", 62);
23700
23968
  i0__namespace.ɵɵelementEnd();
23701
23969
  }
23702
23970
  }
23703
- function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_5_Template(rf, ctx) {
23971
+ function RecipeDetailsComponent_div_0_div_3_button_43_Template(rf, ctx) {
23704
23972
  if (rf & 1) {
23705
- var _r31_1 = i0__namespace.ɵɵgetCurrentView();
23706
- i0__namespace.ɵɵelementStart(0, "button", 68);
23707
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_5_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r30 = i0__namespace.ɵɵnextContext(4); return ctx_r30.onClose(); });
23708
- i0__namespace.ɵɵelementStart(1, "div", 61);
23973
+ var _r27_1 = i0__namespace.ɵɵgetCurrentView();
23974
+ i0__namespace.ɵɵelementStart(0, "button", 66);
23975
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_button_43_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r26 = i0__namespace.ɵɵnextContext(3); return ctx_r26.onClose(); });
23976
+ i0__namespace.ɵɵelementStart(1, "div", 58);
23709
23977
  i0__namespace.ɵɵelementStart(2, "span");
23710
- i0__namespace.ɵɵi18n(3, 69);
23978
+ i0__namespace.ɵɵi18n(3, 67);
23711
23979
  i0__namespace.ɵɵelementEnd();
23712
23980
  i0__namespace.ɵɵelementEnd();
23713
23981
  i0__namespace.ɵɵelementEnd();
23714
23982
  }
23715
23983
  }
23716
- function RecipeDetailsComponent_div_0_div_3_ng_container_38_Template(rf, ctx) {
23984
+ function RecipeDetailsComponent_div_0_div_3_div_44_Template(rf, ctx) {
23717
23985
  if (rf & 1) {
23718
- i0__namespace.ɵɵelementContainerStart(0);
23719
- i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_Template, 5, 2, "button", 54);
23720
- i0__namespace.ɵɵpipe(2, "async");
23721
- i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_3_Template, 2, 0, "button", 55);
23986
+ i0__namespace.ɵɵelementStart(0, "div", 68);
23987
+ i0__namespace.ɵɵelementStart(1, "div", 69);
23988
+ i0__namespace.ɵɵelementStart(2, "span");
23989
+ i0__namespace.ɵɵpipe(3, "async");
23722
23990
  i0__namespace.ɵɵpipe(4, "async");
23723
- i0__namespace.ɵɵtemplate(5, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_5_Template, 4, 0, "button", 56);
23724
- i0__namespace.ɵɵelementContainerEnd();
23991
+ i0__namespace.ɵɵtext(5);
23992
+ i0__namespace.ɵɵpipe(6, "currency");
23993
+ i0__namespace.ɵɵelementEnd();
23994
+ i0__namespace.ɵɵelement(7, "div", 70);
23995
+ i0__namespace.ɵɵpipe(8, "async");
23996
+ i0__namespace.ɵɵpipe(9, "async");
23997
+ i0__namespace.ɵɵelementEnd();
23998
+ i0__namespace.ɵɵelementStart(10, "span", 71);
23999
+ i0__namespace.ɵɵtext(11, "dans mon panier");
24000
+ i0__namespace.ɵɵelementEnd();
24001
+ i0__namespace.ɵɵelementEnd();
23725
24002
  }
23726
24003
  if (rf & 2) {
23727
- var ctx_r14 = i0__namespace.ɵɵnextContext(3);
23728
- i0__namespace.ɵɵadvance(1);
23729
- i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length > 0 && !i0__namespace.ɵɵpipeBind1(2, 3, ctx_r14.recipeDetailsService.allIngredientsToBasketLoading$));
24004
+ var ctx_r17 = i0__namespace.ɵɵnextContext(3);
23730
24005
  i0__namespace.ɵɵadvance(2);
23731
- i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length > 0 && i0__namespace.ɵɵpipeBind1(4, 5, ctx_r14.recipeDetailsService.allIngredientsToBasketLoading$));
24006
+ i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r17.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(4, 7, ctx_r17.recipeDetailsService.updateIngredientFromBasketLoading$));
24007
+ i0__namespace.ɵɵadvance(3);
24008
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(6, 9, ctx_r17.recipeDetailsService.recipePrice.inBasket, ctx_r17.suppliersService.supplier$.value.currency), " ");
23732
24009
  i0__namespace.ɵɵadvance(2);
23733
- i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length === 0);
23734
- }
23735
- }
23736
- function RecipeDetailsComponent_div_0_div_3_ng_miam_recipe_pricing_39_Template(rf, ctx) {
23737
- if (rf & 1) {
23738
- i0__namespace.ɵɵelement(0, "ng-miam-recipe-pricing", 70);
23739
- }
23740
- if (rf & 2) {
23741
- var ctx_r15 = i0__namespace.ɵɵnextContext(3);
23742
- i0__namespace.ɵɵproperty("fetchPricingOnScroll", false)("recipeId", ctx_r15.recipeDetailsService.recipe == null ? null : ctx_r15.recipeDetailsService.recipe.id)("serves", ctx_r15.recipeDetailsService.recipe == null ? null : ctx_r15.recipeDetailsService.recipe.modifiedGuests)("guestsText", ctx_r15.pricingGuestsText);
24010
+ i0__namespace.ɵɵclassProp("hidden", !(i0__namespace.ɵɵpipeBind1(8, 12, ctx_r17.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(9, 14, ctx_r17.recipeDetailsService.updateIngredientFromBasketLoading$)));
23743
24011
  }
23744
24012
  }
23745
- var _c11 = function (a0) { return { "hidden": a0 }; };
23746
- var _c12 = function () { return ["Je fais mes courses", "Je cuisine"]; };
23747
- var _c13 = function (a0, a1) { return { "center": a0, "hidden": a1 }; };
24013
+ var _c9 = function (a0) { return { "hidden": a0 }; };
24014
+ var _c10 = function () { return ["Je fais mes courses", "Je cuisine"]; };
23748
24015
  function RecipeDetailsComponent_div_0_div_3_Template(rf, ctx) {
23749
24016
  if (rf & 1) {
23750
- var _r33_1 = i0__namespace.ɵɵgetCurrentView();
24017
+ var _r29_1 = i0__namespace.ɵɵgetCurrentView();
23751
24018
  i0__namespace.ɵɵelementStart(0, "div", 7);
23752
24019
  i0__namespace.ɵɵelementStart(1, "div", 8, 9);
23753
24020
  i0__namespace.ɵɵelementStart(3, "div", 10);
23754
24021
  i0__namespace.ɵɵelementStart(4, "div", 11);
23755
24022
  i0__namespace.ɵɵelementStart(5, "button", 12);
23756
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(_r33_1); var ctx_r32 = i0__namespace.ɵɵnextContext(2); return ctx_r32.onClose(); });
24023
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r28 = i0__namespace.ɵɵnextContext(2); return ctx_r28.onClose(); });
23757
24024
  i0__namespace.ɵɵelement(6, "img", 13);
23758
24025
  i0__namespace.ɵɵelementEnd();
23759
24026
  i0__namespace.ɵɵelementStart(7, "div", 14);
23760
24027
  i0__namespace.ɵɵelementStart(8, "button", 15);
23761
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_8_listener() { i0__namespace.ɵɵrestoreView(_r33_1); var ctx_r34 = i0__namespace.ɵɵnextContext(2); return ctx_r34.onClose(); });
24028
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_8_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r30 = i0__namespace.ɵɵnextContext(2); return ctx_r30.onClose(); });
23762
24029
  i0__namespace.ɵɵelement(9, "img", 16);
23763
24030
  i0__namespace.ɵɵelementEnd();
23764
24031
  i0__namespace.ɵɵtemplate(10, RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_10_Template, 1, 3, "ng-miam-like-button", 17);
@@ -23766,7 +24033,7 @@
23766
24033
  i0__namespace.ɵɵelementEnd();
23767
24034
  i0__namespace.ɵɵelementEnd();
23768
24035
  i0__namespace.ɵɵelementStart(12, "ng-miam-counter-input", 18);
23769
- i0__namespace.ɵɵlistener("valueChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_counter_input_valueChange_12_listener($event) { i0__namespace.ɵɵrestoreView(_r33_1); var ctx_r35 = i0__namespace.ɵɵnextContext(2); return ctx_r35.updateGuests($event); });
24036
+ i0__namespace.ɵɵlistener("valueChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_counter_input_valueChange_12_listener($event) { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r31 = i0__namespace.ɵɵnextContext(2); return ctx_r31.updateGuests($event); });
23770
24037
  i0__namespace.ɵɵtext(13, " > ");
23771
24038
  i0__namespace.ɵɵelementEnd();
23772
24039
  i0__namespace.ɵɵelementEnd();
@@ -23781,7 +24048,7 @@
23781
24048
  i0__namespace.ɵɵelementStart(20, "div", 25);
23782
24049
  i0__namespace.ɵɵelementStart(21, "div", 26);
23783
24050
  i0__namespace.ɵɵelementStart(22, "button", 27);
23784
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_22_listener() { i0__namespace.ɵɵrestoreView(_r33_1); var ctx_r36 = i0__namespace.ɵɵnextContext(2); return ctx_r36.onClose(); });
24051
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_22_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r32 = i0__namespace.ɵɵnextContext(2); return ctx_r32.onClose(); });
23785
24052
  i0__namespace.ɵɵelement(23, "img", 28);
23786
24053
  i0__namespace.ɵɵelementEnd();
23787
24054
  i0__namespace.ɵɵelementEnd();
@@ -23793,7 +24060,7 @@
23793
24060
  i0__namespace.ɵɵpipe(28, "async");
23794
24061
  i0__namespace.ɵɵelementStart(29, "div", 32);
23795
24062
  i0__namespace.ɵɵelementStart(30, "button", 33);
23796
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_30_listener() { i0__namespace.ɵɵrestoreView(_r33_1); var ctx_r37 = i0__namespace.ɵɵnextContext(2); return ctx_r37.onClose(); });
24063
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_30_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r33 = i0__namespace.ɵɵnextContext(2); return ctx_r33.onClose(); });
23797
24064
  i0__namespace.ɵɵelement(31, "img", 34);
23798
24065
  i0__namespace.ɵɵelementEnd();
23799
24066
  i0__namespace.ɵɵelementEnd();
@@ -23802,21 +24069,27 @@
23802
24069
  i0__namespace.ɵɵelement(32, "ng-miam-recipe-details-infos", 35);
23803
24070
  i0__namespace.ɵɵelementStart(33, "div", 36);
23804
24071
  i0__namespace.ɵɵelementStart(34, "ng-miam-slider-tabs", 37);
23805
- i0__namespace.ɵɵlistener("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener($event) { i0__namespace.ɵɵrestoreView(_r33_1); var ctx_r38 = i0__namespace.ɵɵnextContext(2); return ctx_r38.activeTabIndex = $event; })("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener() { i0__namespace.ɵɵrestoreView(_r33_1); var ctx_r39 = i0__namespace.ɵɵnextContext(2); return ctx_r39.cdr.detectChanges(); });
24072
+ i0__namespace.ɵɵlistener("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener($event) { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r34 = i0__namespace.ɵɵnextContext(2); return ctx_r34.activeTabIndex = $event; })("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r35 = i0__namespace.ɵɵnextContext(2); return ctx_r35.cdr.detectChanges(); });
23806
24073
  i0__namespace.ɵɵelementEnd();
23807
24074
  i0__namespace.ɵɵelementEnd();
23808
24075
  i0__namespace.ɵɵtemplate(35, RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template, 1, 0, "ng-miam-products-picker", 38);
23809
24076
  i0__namespace.ɵɵtemplate(36, RecipeDetailsComponent_div_0_div_3_div_36_Template, 3, 2, "div", 39);
23810
24077
  i0__namespace.ɵɵelementStart(37, "div", 40);
23811
- i0__namespace.ɵɵtemplate(38, RecipeDetailsComponent_div_0_div_3_ng_container_38_Template, 6, 7, "ng-container", 41);
23812
- i0__namespace.ɵɵtemplate(39, RecipeDetailsComponent_div_0_div_3_ng_miam_recipe_pricing_39_Template, 1, 4, "ng-miam-recipe-pricing", 42);
24078
+ i0__namespace.ɵɵelementContainerStart(38);
24079
+ i0__namespace.ɵɵtemplate(39, RecipeDetailsComponent_div_0_div_3_button_39_Template, 18, 15, "button", 41);
24080
+ i0__namespace.ɵɵpipe(40, "async");
24081
+ i0__namespace.ɵɵtemplate(41, RecipeDetailsComponent_div_0_div_3_button_41_Template, 2, 0, "button", 42);
24082
+ i0__namespace.ɵɵpipe(42, "async");
24083
+ i0__namespace.ɵɵtemplate(43, RecipeDetailsComponent_div_0_div_3_button_43_Template, 4, 0, "button", 43);
24084
+ i0__namespace.ɵɵelementContainerEnd();
24085
+ i0__namespace.ɵɵtemplate(44, RecipeDetailsComponent_div_0_div_3_div_44_Template, 12, 16, "div", 44);
23813
24086
  i0__namespace.ɵɵelementEnd();
23814
24087
  i0__namespace.ɵɵelementEnd();
23815
24088
  }
23816
24089
  if (rf & 2) {
23817
24090
  var ctx_r4 = i0__namespace.ɵɵnextContext(2);
23818
24091
  i0__namespace.ɵɵadvance(10);
23819
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(11, 19, ctx_r4.userService.isLogged$));
24092
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(11, 20, ctx_r4.userService.isLogged$));
23820
24093
  i0__namespace.ɵɵadvance(2);
23821
24094
  i0__namespace.ɵɵproperty("floating", true)("value", ctx_r4.recipeDetailsService.recipe.modifiedGuests)("minRange", 1);
23822
24095
  i0__namespace.ɵɵadvance(2);
@@ -23830,21 +24103,23 @@
23830
24103
  i0__namespace.ɵɵadvance(7);
23831
24104
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.recipeDetailsService.recipe == null ? null : ctx_r4.recipeDetailsService.recipe.attributes["title"], " ");
23832
24105
  i0__namespace.ɵɵadvance(2);
23833
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(28, 21, ctx_r4.userService.isLogged$));
24106
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(28, 22, ctx_r4.userService.isLogged$));
23834
24107
  i0__namespace.ɵɵadvance(5);
23835
24108
  i0__namespace.ɵɵproperty("recipe", ctx_r4.recipeDetailsService.recipe);
23836
24109
  i0__namespace.ɵɵadvance(1);
23837
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(23, _c11, ctx_r4.recipeDetailsService.onlyShowPreparation));
24110
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(28, _c9, ctx_r4.recipeDetailsService.onlyShowPreparation));
23838
24111
  i0__namespace.ɵɵadvance(1);
23839
- i0__namespace.ɵɵproperty("tabs", i0__namespace.ɵɵpureFunction0(25, _c12))("selectedTabIndex", ctx_r4.activeTabIndex);
24112
+ i0__namespace.ɵɵproperty("tabs", i0__namespace.ɵɵpureFunction0(30, _c10))("selectedTabIndex", ctx_r4.activeTabIndex);
23840
24113
  i0__namespace.ɵɵadvance(1);
23841
24114
  i0__namespace.ɵɵproperty("ngIf", ctx_r4.activeTabIndex === 0);
23842
24115
  i0__namespace.ɵɵadvance(1);
23843
24116
  i0__namespace.ɵɵproperty("ngIf", ctx_r4.activeTabIndex === 1);
23844
- i0__namespace.ɵɵadvance(1);
23845
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(26, _c13, ctx_r4.activeTabIndex === 1, ctx_r4.activeTabIndex === 1 && !ctx_r4.showPrice()));
23846
- i0__namespace.ɵɵadvance(1);
23847
- i0__namespace.ɵɵproperty("ngIf", ctx_r4.activeTabIndex === 0);
24117
+ i0__namespace.ɵɵadvance(3);
24118
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.remainingBasketEntries.length > 0 && !i0__namespace.ɵɵpipeBind1(40, 24, ctx_r4.recipeDetailsService.allIngredientsToBasketLoading$));
24119
+ i0__namespace.ɵɵadvance(2);
24120
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.remainingBasketEntries.length > 0 && i0__namespace.ɵɵpipeBind1(42, 26, ctx_r4.recipeDetailsService.allIngredientsToBasketLoading$));
24121
+ i0__namespace.ɵɵadvance(2);
24122
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.remainingBasketEntries.length === 0);
23848
24123
  i0__namespace.ɵɵadvance(1);
23849
24124
  i0__namespace.ɵɵproperty("ngIf", ctx_r4.showPrice());
23850
24125
  }
@@ -23854,7 +24129,7 @@
23854
24129
  i0__namespace.ɵɵelementStart(0, "div", 3);
23855
24130
  i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_1_Template, 1, 0, "div", 4);
23856
24131
  i0__namespace.ɵɵpipe(2, "async");
23857
- i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_Template, 40, 29, "div", 5);
24132
+ i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_Template, 45, 31, "div", 5);
23858
24133
  i0__namespace.ɵɵpipe(4, "async");
23859
24134
  i0__namespace.ɵɵelementEnd();
23860
24135
  }
@@ -23868,9 +24143,9 @@
23868
24143
  }
23869
24144
  function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template(rf, ctx) {
23870
24145
  if (rf & 1) {
23871
- var _r41_1 = i0__namespace.ɵɵgetCurrentView();
23872
- i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-addon", 71);
23873
- i0__namespace.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r41_1); var ctx_r40 = i0__namespace.ɵɵnextContext(); return ctx_r40.toggleAddon(); });
24146
+ var _r37_1 = i0__namespace.ɵɵgetCurrentView();
24147
+ i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-addon", 72);
24148
+ i0__namespace.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r37_1); var ctx_r36 = i0__namespace.ɵɵnextContext(); return ctx_r36.toggleAddon(); });
23874
24149
  i0__namespace.ɵɵelementEnd();
23875
24150
  }
23876
24151
  if (rf & 2) {
@@ -23880,9 +24155,9 @@
23880
24155
  }
23881
24156
  function RecipeDetailsComponent_ng_miam_replace_item_3_Template(rf, ctx) {
23882
24157
  if (rf & 1) {
23883
- var _r43_1 = i0__namespace.ɵɵgetCurrentView();
23884
- i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item", 72);
23885
- i0__namespace.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_3_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(_r43_1); var ctx_r42 = i0__namespace.ɵɵnextContext(); return ctx_r42.recipeDetailsService.basketEntryToReplace = null; });
24158
+ var _r39_1 = i0__namespace.ɵɵgetCurrentView();
24159
+ i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item", 73);
24160
+ i0__namespace.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_3_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(_r39_1); var ctx_r38 = i0__namespace.ɵɵnextContext(); return ctx_r38.recipeDetailsService.basketEntryToReplace = null; });
23886
24161
  i0__namespace.ɵɵelementEnd();
23887
24162
  }
23888
24163
  if (rf & 2) {
@@ -23901,13 +24176,14 @@
23901
24176
  };
23902
24177
  var RecipeDetailsComponent = /** @class */ (function (_super) {
23903
24178
  __extends(RecipeDetailsComponent, _super);
23904
- function RecipeDetailsComponent(cdr, recipesService, basketsService, userService, posService, contextService, recipeDetailsService, sponsorBlocksService, analyticsService) {
24179
+ function RecipeDetailsComponent(cdr, recipesService, basketsService, userService, posService, suppliersService, contextService, recipeDetailsService, sponsorBlocksService, analyticsService) {
23905
24180
  var _this = _super.call(this, analyticsService) || this;
23906
24181
  _this.cdr = cdr;
23907
24182
  _this.recipesService = recipesService;
23908
24183
  _this.basketsService = basketsService;
23909
24184
  _this.userService = userService;
23910
24185
  _this.posService = posService;
24186
+ _this.suppliersService = suppliersService;
23911
24187
  _this.contextService = contextService;
23912
24188
  _this.recipeDetailsService = recipeDetailsService;
23913
24189
  _this.sponsorBlocksService = sponsorBlocksService;
@@ -23975,10 +24251,13 @@
23975
24251
  this.recipeDetailsService.displayEventWasSent = false;
23976
24252
  this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
23977
24253
  };
23978
- RecipeDetailsComponent.prototype.getProducts = function () {
24254
+ RecipeDetailsComponent.prototype.getProducts = function (fromInit) {
23979
24255
  var _this = this;
23980
- this.recipeDetailsService.productsLoading = true;
23981
- this.subscriptions.push(this.recipeDetailsService.getIngredientsBasketEntries().subscribe(function () {
24256
+ if (fromInit === void 0) { fromInit = false; }
24257
+ if (fromInit) {
24258
+ this.recipeDetailsService.productsLoading = true;
24259
+ }
24260
+ this.subscriptions.push(this.recipeDetailsService.getIngredientsBasketEntries(fromInit).subscribe(function () {
23982
24261
  _this.recipeDetailsService.productsLoading = false;
23983
24262
  _this.cdr.detectChanges();
23984
24263
  }));
@@ -23993,7 +24272,7 @@
23993
24272
  _this.recipeDetailsService.recipe = result;
23994
24273
  _this.recipeDetailsService.recipeLoading = false;
23995
24274
  _this.recipeDetailsService.recipe.modifiedGuests = +_this.guestNumber || +result.guests;
23996
- _this.getProducts();
24275
+ _this.getProducts(true);
23997
24276
  _this.sendDisplayRecipeEvent();
23998
24277
  _this.setupYoutubePlayer();
23999
24278
  setTimeout(function () {
@@ -24057,6 +24336,7 @@
24057
24336
  RecipeDetailsComponent.prototype.updateGuests = function (guests) {
24058
24337
  this.recipeDetailsService.recipe.modifiedGuests = guests;
24059
24338
  this.recipeDetailsService.updateGuests(this.eventTrace());
24339
+ this.getProducts(false);
24060
24340
  this.cdr.detectChanges();
24061
24341
  };
24062
24342
  RecipeDetailsComponent.prototype.toggleAddon = function () {
@@ -24103,7 +24383,7 @@
24103
24383
  };
24104
24384
  return RecipeDetailsComponent;
24105
24385
  }(EventTracerComponent));
24106
- RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(SponsorBlockService), i0__namespace.ɵɵdirectiveInject(AnalyticsService)); };
24386
+ RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(SponsorBlockService), i0__namespace.ɵɵdirectiveInject(AnalyticsService)); };
24107
24387
  RecipeDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeDetailsComponent, selectors: [["ng-miam-recipe-details"]], viewQuery: function RecipeDetailsComponent_Query(rf, ctx) {
24108
24388
  if (rf & 1) {
24109
24389
  i0__namespace.ɵɵviewQuery(_c0$1, 1);
@@ -24115,45 +24395,37 @@
24115
24395
  }, inputs: { recipeId: "recipeId", guestNumber: "guestNumber", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 5, vars: 7, consts: function () {
24116
24396
  var i18n_1;
24117
24397
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
24118
- var MSG_EXTERNAL_1980534847658558954$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______2 = goog.getMsg("Ajouter tous les produits");
24119
- i18n_1 = MSG_EXTERNAL_1980534847658558954$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______2;
24398
+ var MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____2 = goog.getMsg("Ajouter");
24399
+ i18n_1 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____2;
24120
24400
  }
24121
24401
  else {
24122
- i18n_1 = $localize(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject([":\u241Fc7c6add936bdeb9c0b38e45cc453fd3e55528fb4\u241F1980534847658558954:Ajouter tous les produits"], [":\u241Fc7c6add936bdeb9c0b38e45cc453fd3e55528fb4\u241F1980534847658558954:Ajouter tous les produits"])));
24402
+ i18n_1 = $localize(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
24123
24403
  }
24124
24404
  var i18n_3;
24125
24405
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
24126
- var MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______4 = goog.getMsg("Ajouter");
24127
- i18n_3 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______4;
24406
+ var MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____4 = goog.getMsg("produit");
24407
+ i18n_3 = MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____4;
24128
24408
  }
24129
24409
  else {
24130
- i18n_3 = $localize(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
24410
+ i18n_3 = $localize(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject([":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"], [":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"])));
24131
24411
  }
24132
24412
  var i18n_5;
24133
24413
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
24134
- var MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_______6 = goog.getMsg("produit");
24135
- i18n_5 = MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_______6;
24414
+ var MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____6 = goog.getMsg("produits");
24415
+ i18n_5 = MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____6;
24136
24416
  }
24137
24417
  else {
24138
- i18n_5 = $localize(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject([":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"], [":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"])));
24418
+ i18n_5 = $localize(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject([":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"], [":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"])));
24139
24419
  }
24140
24420
  var i18n_7;
24141
24421
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
24142
- var MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_______8 = goog.getMsg("produits");
24143
- i18n_7 = MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_______8;
24144
- }
24145
- else {
24146
- i18n_7 = $localize(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject([":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"], [":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"])));
24147
- }
24148
- var i18n_9;
24149
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
24150
- var MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____10 = goog.getMsg("Continuer mes courses");
24151
- i18n_9 = MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____10;
24422
+ var MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____8 = goog.getMsg("Continuer mes courses");
24423
+ i18n_7 = MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____8;
24152
24424
  }
24153
24425
  else {
24154
- i18n_9 = $localize(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject([":\u241F0e81a4e1efd31ae65483ef21f4fa59c2dce0e6f1\u241F2001694451572573558:Continuer mes courses"], [":\u241F0e81a4e1efd31ae65483ef21f4fa59c2dce0e6f1\u241F2001694451572573558:Continuer mes courses"])));
24426
+ i18n_7 = $localize(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject([":\u241F0e81a4e1efd31ae65483ef21f4fa59c2dce0e6f1\u241F2001694451572573558:Continuer mes courses"], [":\u241F0e81a4e1efd31ae65483ef21f4fa59c2dce0e6f1\u241F2001694451572573558:Continuer mes courses"])));
24155
24427
  }
24156
- return [["class", "miam-recipe-details", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected", 4, "ngIf"], [1, "miam-recipe-details"], ["class", "miam-ds-loader miam-recipe-details__loader", 4, "ngIf"], ["class", "miam-recipe-details__container", 4, "ngIf"], [1, "miam-ds-loader", "miam-recipe-details__loader"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__picture"], ["topContainerImg", ""], [1, "miam-recipe-details__banner_buttons"], [1, "miam-recipe-details__top-button-wrapper"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "modal close button", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__mobile-header-buttons"], [1, "miam-recipe-details__back-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal back button", 1, "miam-recipe-details__back-icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], ["alt", "recipe picture", "class", "miam-recipe-details__picture-img", 3, "src", 4, "ngIf"], [3, "videoId", "width", "height", "playerVars", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__sponsor"], [3, "hasStorytelling", "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__sponsor-separator"], ["ngMiamReachTop", "", 1, "miam-recipe-details__title-container"], [1, "miam-recipe-details__back-button-mobile-container"], [1, "miam-recipe-details__back-button", "miam-ds-button", "small", "square", "ghost", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal close button", 1, "miam-recipe-details__back-icon"], [1, "miam-recipe-details__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-recipe-details__actions__icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__hideable-actions"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "ghost", 3, "click"], ["alt", "modal close button", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], [3, "tabs", "selectedTabIndex", "selectedTabIndexChange"], [3, "closeModal", 4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], [1, "miam-recipe-details__footer", 3, "ngClass"], [4, "ngIf"], [3, "fetchPricingOnScroll", "recipeId", "serves", "guestsText", 4, "ngIf"], [1, "miam-recipe-details__like-button", 3, "recipe", "width", "height"], ["alt", "recipe picture", 1, "miam-recipe-details__picture-img", 3, "src"], [3, "videoId", "width", "height", "playerVars"], [1, "miam-recipe-details__picture__filigrane"], ["alt", "filigrane logo", 3, "src"], [3, "hasStorytelling", "recipe", "showAddon"], [1, "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height"], [3, "closeModal"], [1, "miam-recipe-details__preparation-tab"], [3, "ingredients"], [3, "recipe"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 3, "click", 4, "ngIf"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 4, "ngIf"], ["class", "miam-ds-button secondary", 3, "click", 4, "ngIf"], [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary", 3, "click"], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], ["class", "miam-recipe-details__add-to-basket-cta__text", 4, "ngIf", "ngIfElse"], ["addRemainingProducts", ""], [1, "miam-recipe-details__add-to-basket-cta__text"], i18n_1, i18n_3, i18n_5, i18n_7, [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary"], [1, "miam-ds-loader"], [1, "miam-ds-button", "secondary", 3, "click"], i18n_9, [3, "fetchPricingOnScroll", "recipeId", "serves", "guestsText"], [3, "recipe", "hideAddon"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected"]];
24428
+ return [["class", "miam-recipe-details", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected", 4, "ngIf"], [1, "miam-recipe-details"], ["class", "miam-ds-loader miam-recipe-details__loader", 4, "ngIf"], ["class", "miam-recipe-details__container", 4, "ngIf"], [1, "miam-ds-loader", "miam-recipe-details__loader"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__picture"], ["topContainerImg", ""], [1, "miam-recipe-details__banner_buttons"], [1, "miam-recipe-details__top-button-wrapper"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "modal close button", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__mobile-header-buttons"], [1, "miam-recipe-details__back-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal back button", 1, "miam-recipe-details__back-icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], ["alt", "recipe picture", "class", "miam-recipe-details__picture-img", 3, "src", 4, "ngIf"], [3, "videoId", "width", "height", "playerVars", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__sponsor"], [3, "hasStorytelling", "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__sponsor-separator"], ["ngMiamReachTop", "", 1, "miam-recipe-details__title-container"], [1, "miam-recipe-details__back-button-mobile-container"], [1, "miam-recipe-details__back-button", "miam-ds-button", "small", "square", "ghost", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal close button", 1, "miam-recipe-details__back-icon"], [1, "miam-recipe-details__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-recipe-details__actions__icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__hideable-actions"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "ghost", 3, "click"], ["alt", "modal close button", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], [3, "tabs", "selectedTabIndex", "selectedTabIndexChange"], [3, "closeModal", 4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], [1, "miam-recipe-details__footer"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 3, "click", 4, "ngIf"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 4, "ngIf"], ["class", "miam-ds-button secondary", 3, "click", 4, "ngIf"], ["class", "miam-recipe-details__price", 4, "ngIf"], [1, "miam-recipe-details__like-button", 3, "recipe", "width", "height"], ["alt", "recipe picture", 1, "miam-recipe-details__picture-img", 3, "src"], [3, "videoId", "width", "height", "playerVars"], [1, "miam-recipe-details__picture__filigrane"], ["alt", "filigrane logo", 3, "src"], [3, "hasStorytelling", "recipe", "showAddon"], [1, "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height"], [3, "closeModal"], [1, "miam-recipe-details__preparation-tab"], [3, "ingredients"], [3, "recipe"], [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary", 3, "click"], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], [1, "miam-recipe-details__add-to-basket-cta__text"], i18n_1, [4, "ngIf"], [1, "miam-recipe-details__add-to-basket-remaining-price"], [1, "miam-ds-loader"], i18n_3, i18n_5, [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary"], [1, "miam-ds-button", "secondary", 3, "click"], i18n_7, [1, "miam-recipe-details__price"], [1, "miam-recipe-details__price-label", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-ds-loader", "primary"], [1, "miam-recipe-details__price-in-basket-label", "miam-ds-text", "size-xs"], [3, "recipe", "hideAddon"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected"]];
24157
24429
  }, template: function RecipeDetailsComponent_Template(rf, ctx) {
24158
24430
  if (rf & 1) {
24159
24431
  i0__namespace.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 5, 6, "div", 0);
@@ -24169,7 +24441,7 @@
24169
24441
  i0__namespace.ɵɵadvance(1);
24170
24442
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(4, 5, ctx.recipeDetailsService.basketEntryToReplace$));
24171
24443
  }
24172
- }, directives: [i2__namespace$1.NgIf, CounterInputComponent, ReachTopDirective, RecipeDetailsInfosComponent, i2__namespace$1.NgClass, SliderTabsComponent, LikeButtonComponent, i8__namespace.YouTubePlayer, AddonLinkComponent, ProductsPickerComponent, RecipeDetailsIngredientsComponent, RecipeDetailsStepsComponent, RecipePricingComponent, RecipeAddonComponent, ReplaceItemComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-recipe-details{min-height:100dvh}.miam-recipe-details .miam-recipe-details__loader{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-recipe-details .miam-recipe-details__container{position:relative}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sponsor-separator{border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);margin:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{position:relative;max-height:600px;display:flex}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{position:absolute;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px;top:16px;right:16px;left:16px;bottom:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{flex:1;width:100%;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:flex;justify-content:space-between;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button{transform:rotate(90deg);border-radius:100%;height:40px;width:40px;position:sticky;top:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button .miam-recipe-details__back-icon{display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button:hover img.miam-recipe-details__back-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__like-button{position:absolute;top:0;right:0}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__guest-counter .miam-counter-input{padding:2px}}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{top:24px;right:24px;left:24px;bottom:24px;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{width:inherit}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:flex;position:sticky;top:24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button:hover img.miam-recipe-details__close-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__picture-img{width:100%;max-height:100%;-o-object-position:center;object-position:center;-o-object-fit:cover;object-fit:cover}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{z-index:2;display:flex;justify-content:space-between;align-items:center;position:sticky;top:-1px;padding:16px;overflow:hidden;background:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{width:100%;transition:font-size .3s;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{display:flex;position:absolute;right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__close-button{margin-left:16px;padding:8px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:12px 16px;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{position:relative;top:unset;right:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__like-button{margin-right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:64px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{justify-content:flex-start}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:flex;align-items:center;justify-content:center;max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-icon{transform:rotate(90deg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__hideable-actions{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:4px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container{overflow:visible;max-width:48px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-button{margin:8px 0;width:40px;height:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:14px;font-weight:500}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{max-width:40px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__infos{padding:8px 16px 16px;display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs{padding:8px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer{box-sizing:border-box;background:var(--miam-ds-color-neutral-white,#fff);border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px;position:sticky;bottom:0;display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;z-index:2;height:80px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.center{justify-content:center}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta{display:flex;gap:8px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta.miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text{display:flex;gap:4px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{align-items:flex-end}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{color:var(--miam-ds-color-primary-700);margin-right:4px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{flex-direction:column;align-items:flex-start}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__preparation-tab{padding:16px;display:flex;flex-direction:column;gap:24px}"], encapsulation: 2, changeDetection: 0 });
24444
+ }, directives: [i2__namespace$1.NgIf, CounterInputComponent, ReachTopDirective, RecipeDetailsInfosComponent, i2__namespace$1.NgClass, SliderTabsComponent, LikeButtonComponent, i8__namespace.YouTubePlayer, AddonLinkComponent, ProductsPickerComponent, RecipeDetailsIngredientsComponent, RecipeDetailsStepsComponent, RecipeAddonComponent, ReplaceItemComponent], pipes: [i2__namespace$1.AsyncPipe, i2__namespace$1.CurrencyPipe], styles: [".miam-recipe-details{min-height:100dvh}.miam-recipe-details .miam-recipe-details__loader{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-recipe-details .miam-recipe-details__container{position:relative}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sponsor-separator{border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);margin:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{position:relative;max-height:600px;display:flex}@media (min-width:1023px) and (max-height:1000px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:400px}}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:300px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{position:absolute;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px;top:16px;right:16px;left:16px;bottom:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{flex:1;width:100%;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:flex;justify-content:space-between;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button{transform:rotate(90deg);border-radius:100%;height:40px;width:40px;position:sticky;top:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button .miam-recipe-details__back-icon{display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button:hover img.miam-recipe-details__back-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__like-button{position:absolute;top:0;right:0}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__guest-counter .miam-counter-input{padding:2px}}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{top:24px;right:24px;left:24px;bottom:24px;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{width:inherit}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:flex;position:sticky;top:24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button:hover img.miam-recipe-details__close-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__picture-img{width:100%;max-height:100%;-o-object-position:center;object-position:center;-o-object-fit:cover;object-fit:cover}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{z-index:2;display:flex;justify-content:space-between;align-items:center;position:sticky;top:-1px;padding:16px;overflow:hidden;background:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{width:100%;transition:font-size .3s;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{display:flex;position:absolute;right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__close-button{margin-left:16px;padding:8px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:12px 16px;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{position:relative;top:unset;right:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__like-button{margin-right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:64px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{justify-content:flex-start}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:flex;align-items:center;justify-content:center;max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-icon{transform:rotate(90deg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__hideable-actions{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:4px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container{overflow:visible;max-width:48px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-button{margin:8px 0;width:40px;height:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:14px;font-weight:500}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{max-width:40px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__infos{padding:8px 16px 16px;display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs{padding:8px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer{box-sizing:border-box;background:var(--miam-ds-color-neutral-white,#fff);border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px 12px;position:sticky;bottom:0;display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;z-index:2;height:80px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.center{justify-content:center}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta{display:flex;gap:8px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta.miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text{display:flex;gap:4px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price{display:flex}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{align-items:flex-end}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{color:var(--miam-ds-color-primary-700);margin-right:4px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{flex-direction:column;align-items:flex-start}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price{display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label{color:var(--miam-ds-color-primary,#24748f)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-in-basket-label{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.65}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__preparation-tab{padding:16px;display:flex;flex-direction:column;gap:24px}"], encapsulation: 2, changeDetection: 0 });
24173
24445
  (function () {
24174
24446
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeDetailsComponent, [{
24175
24447
  type: i0.Component,
@@ -24180,7 +24452,7 @@
24180
24452
  encapsulation: i0.ViewEncapsulation.None,
24181
24453
  changeDetection: i0.ChangeDetectionStrategy.OnPush
24182
24454
  }]
24183
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: RecipesService }, { type: BasketsService }, { type: UserService }, { type: PointOfSalesService }, { type: ContextService }, { type: RecipeDetailsService }, { type: SponsorBlockService }, { type: AnalyticsService }]; }, { recipeId: [{
24455
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: RecipesService }, { type: BasketsService }, { type: UserService }, { type: PointOfSalesService }, { type: SuppliersService }, { type: ContextService }, { type: RecipeDetailsService }, { type: SponsorBlockService }, { type: AnalyticsService }]; }, { recipeId: [{
24184
24456
  type: i0.Input
24185
24457
  }], guestNumber: [{
24186
24458
  type: i0.Input
@@ -24215,7 +24487,7 @@
24215
24487
  args: ['topContainerImg']
24216
24488
  }] });
24217
24489
  })();
24218
- var templateObject_1$4, templateObject_2$2, templateObject_3$2, templateObject_4$1, templateObject_5$1;
24490
+ var templateObject_1$4, templateObject_2$2, templateObject_3$2, templateObject_4$1;
24219
24491
 
24220
24492
  var RecipeDetailsModule = /** @class */ (function () {
24221
24493
  // Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
@@ -25218,6 +25490,7 @@
25218
25490
  };
25219
25491
  RecipeModalComponent.prototype.ngOnDestroy = function () {
25220
25492
  this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
25493
+ this.recipeDetailsService.unsubscribe();
25221
25494
  };
25222
25495
  RecipeModalComponent.prototype.listenToRecipeDisplayed = function () {
25223
25496
  var _this = this;
@@ -25229,7 +25502,8 @@
25229
25502
  _this.previewMode.next(result.previewMode);
25230
25503
  _this.previewAllowed = result.previewAllowed;
25231
25504
  _this.show = true;
25232
- _this.printService.prepareForPrint(_this.elRef);
25505
+ // Put back if/when printing is reimplemented
25506
+ // this.printService.prepareForPrint(this.elRef);
25233
25507
  }
25234
25508
  else {
25235
25509
  _this.show = false;
@@ -25244,7 +25518,8 @@
25244
25518
  _this.displayGuestsInDetails = result.displayGuests;
25245
25519
  _this.helpButtonAllowedInDetails = result.helpButtonAllowed;
25246
25520
  _this.show = true;
25247
- _this.printService.prepareForPrint(_this.elRef);
25521
+ // Put back if/when printing is reimplemented
25522
+ // this.printService.prepareForPrint(this.elRef);
25248
25523
  (_a = _this.detailsComponent) === null || _a === void 0 ? void 0 : _a.cdr.markForCheck();
25249
25524
  if (_this.detailsComponent) {
25250
25525
  _this.detailsComponent.showDetail = true;
@@ -25268,7 +25543,8 @@
25268
25543
  this.recipe = null; // trigger again a change on recipe if we re-open the view
25269
25544
  this.previewMode.next(false);
25270
25545
  this.recipesService.hide();
25271
- this.printService.dismissPrinting();
25546
+ // Put back if/when printing is reimplemented
25547
+ // this.printService.dismissPrinting();
25272
25548
  this.hasChangesOnClose.emit(this.basketChangedSinceOpened);
25273
25549
  this.basketChangedSinceOpened = false;
25274
25550
  this.cdr.detectChanges();
@@ -25335,7 +25611,7 @@
25335
25611
  i0__namespace.ɵɵadvance(2);
25336
25612
  i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(3, 4, ctx.previewMode));
25337
25613
  }
25338
- }, directives: [i2__namespace$1.NgIf, ModalComponent, BasketPreviewBlockComponent, RecipeDetailsComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-modal.without-header .miam-modal__header .miam-modal__close-icon{display:none}.miam-recipe-modal__basket-preview-modal .miam-modal__container.right .miam-modal{width:480px}@media (max-width:600px){.miam-recipe-modal__basket-preview-modal .miam-modal__container.right .miam-modal{width:100%}}.miam-recipe-modal__basket-preview-modal .miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__content{padding:16px}"], encapsulation: 2, changeDetection: 0 });
25614
+ }, directives: [i2__namespace$1.NgIf, ModalComponent, BasketPreviewBlockComponent, RecipeDetailsComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-modal.without-header .miam-modal__header .miam-modal__close-icon{display:none}.miam-recipe-modal__basket-preview-modal .miam-modal__container.right .miam-modal{width:480px}@media (max-width:600px){.miam-recipe-modal__basket-preview-modal .miam-modal__container.right .miam-modal{width:100%}}.miam-recipe-modal__basket-preview-modal .miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__content{padding:16px}@media (min-width:1023px) and (max-height:1000px){ng-miam-recipe-modal .miam-modal__container.left .miam-modal,ng-miam-recipe-modal .miam-modal__container.right .miam-modal,webc-miam-recipe-modal .miam-modal__container.left .miam-modal,webc-miam-recipe-modal .miam-modal__container.right .miam-modal{width:650px}}@media (min-width:1023px) and (max-height:800px){ng-miam-recipe-modal .miam-modal__container.left .miam-modal,ng-miam-recipe-modal .miam-modal__container.right .miam-modal,webc-miam-recipe-modal .miam-modal__container.left .miam-modal,webc-miam-recipe-modal .miam-modal__container.right .miam-modal{width:450px}}"], encapsulation: 2, changeDetection: 0 });
25339
25615
  (function () {
25340
25616
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeModalComponent, [{
25341
25617
  type: i0.Component,