ng-miam 9.2.2 → 9.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (37) hide show
  1. package/bundles/ng-miam.umd.js +20 -60
  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/_models/basket.js +2 -9
  6. package/esm2015/lib/_services/baskets.service.js +2 -22
  7. package/esm2015/lib/_services/context.service.js +3 -4
  8. package/esm2015/lib/_services/items.service.js +2 -2
  9. package/esm2015/lib/_services/recipes.service.js +3 -3
  10. package/esm2015/lib/_types/builded/mealz-interface.js +1 -1
  11. package/esm2015/lib/_types/builded/mealz-internal-interface.js +1 -1
  12. package/esm2015/lib/_web-components/meals-planner/meals-planner.component.js +2 -3
  13. package/esm2015/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.js +4 -3
  14. package/esm2015/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.js +2 -2
  15. package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +2 -2
  16. package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +2 -2
  17. package/esm2015/lib/_web-components/recipe-pricing/recipe-pricing.component.js +6 -12
  18. package/esm2015/lib/environments/version.js +2 -2
  19. package/fesm2015/ng-miam.js +20 -54
  20. package/fesm2015/ng-miam.js.map +1 -1
  21. package/lib/_models/basket.d.ts +0 -3
  22. package/lib/_models/basket.d.ts.map +1 -1
  23. package/lib/_services/baskets.service.d.ts +0 -2
  24. package/lib/_services/baskets.service.d.ts.map +1 -1
  25. package/lib/_services/context.service.d.ts.map +1 -1
  26. package/lib/_services/recipes.service.d.ts +1 -1
  27. package/lib/_services/recipes.service.d.ts.map +1 -1
  28. package/lib/_types/builded/mealz-interface.d.ts +0 -6
  29. package/lib/_types/builded/mealz-interface.d.ts.map +1 -1
  30. package/lib/_types/builded/mealz-internal-interface.d.ts +1 -1
  31. package/lib/_types/builded/mealz-internal-interface.d.ts.map +1 -1
  32. package/lib/_web-components/meals-planner/meals-planner.component.d.ts +0 -1
  33. package/lib/_web-components/meals-planner/meals-planner.component.d.ts.map +1 -1
  34. package/lib/_web-components/recipe-pricing/recipe-pricing.component.d.ts +0 -1
  35. package/lib/_web-components/recipe-pricing/recipe-pricing.component.d.ts.map +1 -1
  36. package/lib/environments/version.d.ts +1 -1
  37. package/package.json +1 -1
@@ -2511,8 +2511,7 @@
2511
2511
  completion: { total: 0, found: 0 },
2512
2512
  'recipes-infos': [],
2513
2513
  'total-price': 0,
2514
- token: null,
2515
- 'pricebook-key': 'DEFAULT' // Will tell api which pricebook to use, will affect how api will get prices for items
2514
+ token: null // token exposed only on basket confirmation (PATCH confirmed=true)
2516
2515
  };
2517
2516
  _this.relationships = {
2518
2517
  'basket-entries': new i2$2.DocumentCollection()
@@ -2554,16 +2553,6 @@
2554
2553
  enumerable: false,
2555
2554
  configurable: true
2556
2555
  });
2557
- Object.defineProperty(Basket.prototype, "pricebookKey", {
2558
- get: function () {
2559
- return this.attributes['pricebook-key'];
2560
- },
2561
- set: function (key) {
2562
- this.attributes['pricebook-key'] = key;
2563
- },
2564
- enumerable: false,
2565
- configurable: true
2566
- });
2567
2556
  Basket.prototype.hasRecipe = function (recipeId) {
2568
2557
  var _a;
2569
2558
  return (_a = this.recipeInfos) === null || _a === void 0 ? void 0 : _a.some(function (info) { return info.id === recipeId; });
@@ -3512,7 +3501,7 @@
3512
3501
  EventJourney["EMPTY"] = "";
3513
3502
  })(EventJourney || (EventJourney = {}));
3514
3503
 
3515
- var VERSION = '9.2.2'; // TODO: replace by ##VERSION## and update it in the CI/CD
3504
+ var VERSION = '9.2.4'; // TODO: replace by ##VERSION## and update it in the CI/CD
3516
3505
 
3517
3506
  var ContextRegistryService = /** @class */ (function () {
3518
3507
  function ContextRegistryService() {
@@ -5288,12 +5277,12 @@
5288
5277
  return null;
5289
5278
  }));
5290
5279
  };
5291
- RecipesService.prototype.getPricing = function (recipeId, posId, pricebookKey, serves) {
5280
+ RecipesService.prototype.getPricing = function (recipeId, posId, serves) {
5292
5281
  if (serves === void 0) { serves = null; }
5293
5282
  if (!recipeId) {
5294
5283
  return rxjs.of(null);
5295
5284
  }
5296
- var url = MIAM_API_HOST$2 + ("recipes/" + recipeId + "/pricing?point_of_sale_id=" + posId + "&pricebook_key=" + pricebookKey);
5285
+ var url = MIAM_API_HOST$2 + ("recipes/" + recipeId + "/pricing?point_of_sale_id=" + posId);
5297
5286
  if (serves) {
5298
5287
  url += "&serves=" + serves;
5299
5288
  }
@@ -5586,7 +5575,7 @@
5586
5575
  })();
5587
5576
 
5588
5577
  var BASKET_SPARSE_FIELDS = {
5589
- baskets: ['total-price', 'pricebook-key', 'recipes-infos', 'completion', 'status']
5578
+ baskets: ['total-price', 'recipes-infos', 'completion', 'status']
5590
5579
  };
5591
5580
  var BasketsService = /** @class */ (function (_super) {
5592
5581
  __extends(BasketsService, _super);
@@ -6008,27 +5997,6 @@
6008
5997
  return entry;
6009
5998
  }));
6010
5999
  };
6011
- /** *********************************************************** PRICEBOOK *********************************************************** **/
6012
- // will patch basket with given pricebookName
6013
- // Api will look for prices (pos items) corresponding to this pricebook key
6014
- // fall case to a default pricebook
6015
- BasketsService.prototype.updatePricebook = function (pricebookName) {
6016
- var _this = this;
6017
- if (!pricebookName) {
6018
- mealzDebug('[Miam] empty pricebook name');
6019
- return rxjs.of(null);
6020
- }
6021
- return this.waitForBasket.pipe(operators.switchMap(function (basket) {
6022
- if (basket.pricebookKey === pricebookName) {
6023
- mealzDebug("[Mealz] same pricebook " + JSON.stringify(pricebookName));
6024
- return rxjs.of(null);
6025
- }
6026
- mealzDebug("[Mealz] update pricebook to " + JSON.stringify(pricebookName));
6027
- var patchUrl = environment$1.miamAPI + "/api/v1/baskets/update_pricebook?" +
6028
- ("point_of_sale_id=" + _this.posService.pos$.value.id + "&pricebook_key=" + pricebookName);
6029
- return _this.http.patch(patchUrl, {}).pipe(operators.switchMap(function (resp) { return _this.fillBasket(resp); }));
6030
- }));
6031
- };
6032
6000
  /** ******************************************************** ADD FROM PICTURE ******************************************************** **/
6033
6001
  /**
6034
6002
  * Add entries to basket from a picture or file
@@ -7956,7 +7924,6 @@
7956
7924
  reset: function () {
7957
7925
  _this.resetBasket();
7958
7926
  },
7959
- updatePricebook: function (pricebookName) { return _this.basketsService.updatePricebook(pricebookName); },
7960
7927
  recipeCount: function () { return _this.basketsService.waitForBasket.pipe(operators.switchMap(function () { return _this.basketsService.basketStats$; }), operators.skipWhile(function (bs) { return !bs; }), operators.map(function (bs) { return bs.recipesCount; }), operators.distinctUntilChanged()); },
7961
7928
  openPreview: function (analyticsPath) {
7962
7929
  if (analyticsPath === void 0) { analyticsPath = ''; }
@@ -8261,11 +8228,11 @@
8261
8228
  recipeLikeUpdated: function () { return _this.recipeLikesService.recipeLikeUpdated$; },
8262
8229
  guestsUpdated: function () { return _this.guestsChanged; },
8263
8230
  recipePriceUpdated: function () { return _this.recipePriceChanged; },
8264
- fetchPricing: function (recipeId, posId, pricebookKey, serves) {
8231
+ fetchPricing: function (recipeId, posId, serves) {
8265
8232
  if (!recipeId || !posId || !serves) {
8266
8233
  return rxjs.of(null);
8267
8234
  }
8268
- return _this.recipesService.getPricing(recipeId, posId, pricebookKey, serves).pipe(operators.skipWhile(function (result) { return result.price === 0; }));
8235
+ return _this.recipesService.getPricing(recipeId, posId, serves).pipe(operators.skipWhile(function (result) { return result.price === 0; }));
8269
8236
  }
8270
8237
  },
8271
8238
  supplier: {
@@ -9922,7 +9889,7 @@
9922
9889
  ItemsService.prototype.getPriceForItem = function (selectedItemId) {
9923
9890
  var _this = this;
9924
9891
  return this.posService.waitForPos.pipe(operators.take(1), operators.switchMap(function (pos) {
9925
- var url = environment$1.miamAPI + "/api/v1/items/" + selectedItemId + "/price?pricebook_key=DEFAULT&point_of_sale_id=" + pos.id;
9892
+ var url = environment$1.miamAPI + "/api/v1/items/" + selectedItemId + "/price?point_of_sale_id=" + pos.id;
9926
9893
  return _this.http.get(url);
9927
9894
  }), operators.map(function (price) { return ({
9928
9895
  unit: price.price,
@@ -12945,19 +12912,13 @@
12945
12912
  this.inViewport = true;
12946
12913
  this.priceSet = new i0.EventEmitter();
12947
12914
  this.loading = true;
12948
- this.pricebookKey = new rxjs.BehaviorSubject('');
12949
12915
  this.subscriptions = [];
12950
12916
  this.guests$ = new rxjs.BehaviorSubject(0);
12951
12917
  this.isInView$ = new rxjs.BehaviorSubject(false);
12952
12918
  }
12953
12919
  RecipePricingComponent.prototype.ngOnInit = function () {
12954
- var _this = this;
12955
12920
  this.isInView$.next(this.inViewport);
12956
- this.subscriptions.push(this.basketsService.basket$.pipe(operators.skipWhile(function (b) { return !b; })).subscribe(function (b) {
12957
- if (b.pricebookKey !== _this.pricebookKey.value) {
12958
- _this.pricebookKey.next(b.pricebookKey);
12959
- }
12960
- }));
12921
+ this.subscriptions.push(this.basketsService.basket$.pipe(operators.skipWhile(function (b) { return !b; })).subscribe());
12961
12922
  };
12962
12923
  RecipePricingComponent.prototype.ngOnChanges = function (changes) {
12963
12924
  if (changes.serves) {
@@ -13018,12 +12979,11 @@
13018
12979
  this.posService.waitForPos,
13019
12980
  this.isInView$,
13020
12981
  this.guests$,
13021
- this.pricebookKey,
13022
12982
  this.basketsService.recipeIsInBasket(this.recipeId)
13023
12983
  ]).pipe(operators.skipWhile(function (results) { return !results[1] || !results[3]; })).subscribe(function (results) {
13024
12984
  _this.pos = results[0];
13025
12985
  // fetch the price if the recipe isn't in the basket and if it was last time we check or on startup
13026
- if (!results[4] && wasInBasketBefore !== false && _this.inViewport) {
12986
+ if (!results[3] && wasInBasketBefore !== false && _this.inViewport) {
13027
12987
  _this.loading = true;
13028
12988
  _this.cdr.detectChanges();
13029
12989
  if (_this.onChangesSubscription) {
@@ -13031,7 +12991,7 @@
13031
12991
  }
13032
12992
  _this.onChangesSubscription = _this.fetchPricing().subscribe();
13033
12993
  }
13034
- wasInBasketBefore = results[4];
12994
+ wasInBasketBefore = results[3];
13035
12995
  });
13036
12996
  };
13037
12997
  RecipePricingComponent.prototype.initPricingFromBasketChanges = function () {
@@ -13042,7 +13002,7 @@
13042
13002
  _this.pos = results[0];
13043
13003
  var recipeLine = results[1].find(function (l) { var _a, _b; return l.isRecipe && ((_a = l.id) === null || _a === void 0 ? void 0 : _a.toString()) === ((_b = _this.recipeId) === null || _b === void 0 ? void 0 : _b.toString()); });
13044
13004
  if (!!recipeLine) {
13045
- return _this.recipesService.getPricing(_this.recipeId, _this.pos.id, _this.pricebookKey.value, _this.serves).pipe(operators.switchMap(function (pricing) {
13005
+ return _this.recipesService.getPricing(_this.recipeId, _this.pos.id, _this.serves).pipe(operators.switchMap(function (pricing) {
13046
13006
  return _this.extractPricing(recipeLine, pricing);
13047
13007
  }));
13048
13008
  }
@@ -13054,7 +13014,7 @@
13054
13014
  if (!this.recipeId || !this.pos || !this.serves) {
13055
13015
  return rxjs.of(null);
13056
13016
  }
13057
- return this.recipesService.getPricing(this.recipeId, this.pos.id, this.pricebookKey.value, this.serves).pipe(operators.skipWhile(function (result) { return result.price === 0; }), operators.tap(function (result) {
13017
+ return this.recipesService.getPricing(this.recipeId, this.pos.id, this.serves).pipe(operators.skipWhile(function (result) { return result.price === 0; }), operators.tap(function (result) {
13058
13018
  _this.pricing = result;
13059
13019
  _this.format();
13060
13020
  _this.loading = false;
@@ -21003,7 +20963,8 @@
21003
20963
  var ctx_r0 = i0__namespace.ɵɵnextContext();
21004
20964
  i0__namespace.ɵɵproperty("threshold", 0)("debounceTime", 0);
21005
20965
  i0__namespace.ɵɵadvance(3);
21006
- i0__namespace.ɵɵproperty("src", ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["media-url"], i0__namespace.ɵɵsanitizeUrl)("alt", "Photo de la recette " + (ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes.title));
20966
+ i0__namespace.ɵɵproperty("src", ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["media-url"], i0__namespace.ɵɵsanitizeUrl);
20967
+ i0__namespace.ɵɵattribute("aria-hidden", true);
21007
20968
  i0__namespace.ɵɵadvance(4);
21008
20969
  i0__namespace.ɵɵproperty("ngIf", !(ctx_r0.displayBadge && ctx_r0.recipe.sponsorLogoUrl));
21009
20970
  i0__namespace.ɵɵadvance(1);
@@ -21330,7 +21291,7 @@
21330
21291
  else {
21331
21292
  i18n_6 = $localize(templateObject_4$c || (templateObject_4$c = __makeTemplateObject([":\u241Ff51693cf087a834d433fa3835d7b64905fdc57ee\u241F9008711340501624723:D\u00E9couvrez nos recettes"], [":\u241Ff51693cf087a834d433fa3835d7b64905fdc57ee\u241F9008711340501624723:D\u00E9couvrez nos recettes"])));
21332
21293
  }
21333
- return [["ngMiamInViewport", "", 1, "miam-recipe-card", 3, "condition", "ngClass", "inViewport"], ["class", "miam-recipe-card__container", "ngMiamInViewport", "", 3, "threshold", "debounceTime", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-recipe-card__container", 3, "threshold", "debounceTime", "inViewport"], [1, "miam-recipe-card__top", 3, "click"], [1, "miam-recipe-card__picture"], ["loading", "lazy", 3, "src", "alt", "error"], ["aria-hidden", "true", 1, "miam-recipe-card__gradient"], [1, "miam-recipe-card__content"], [1, "miam-recipe-card__top-container"], ["class", "miam-recipe-card__like", 4, "ngIf"], ["class", "miam-recipe-card_sponso_and_promo_badge", 4, "ngIf"], ["class", "miam-recipe-card__badge-container", 3, "ngClass", 4, "ngIf"], [1, "miam-recipe-card__picture__bottom"], [1, "miam-recipe-card__title", "miam-ds-text", "weight-xxl", "size-m"], [1, "miam-recipe-card__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/recipe-counter.svg", "alt", "", "aria-hidden", "true"], [1, "miam-recipe-card__bottom", 3, "click"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], [1, "miam-recipe-card__actions"], [1, "miam-recipe-card__infos"], ["class", "miam-recipe-card__difficulty-and-time", 4, "ngIf"], [1, "miam-recipe-card__price-and-promotion"], ["class", "miam-recipe-card__bottom-promotion", 4, "ngIf"], ["class", "miam-recipe-card__price", 4, "ngIf"], [1, "miam-recipe-card__cta"], ["class", "miam-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked", 4, "ngIf"], ["class", "miam-recipe-card__actions__replace", 4, "ngIf"], ["class", "miam-ds-button ghost", 3, "click", 4, "ngIf"], [1, "miam-recipe-card__like"], [1, "miam-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-recipe-card_sponso_and_promo_badge"], [4, "ngIf"], ["class", "miam-recipe-card__sponsor-container", 4, "ngIf"], [1, "miam-recipe-card__sponsor-container"], [1, "miam-recipe-card__sponsor-picture", 3, "src", "alt"], [1, "miam-recipe-card__badge-container", 3, "ngClass"], ["class", "miam-recipe-card__badge", "src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "", "aria-hidden", "true", 4, "ngIf"], ["class", "miam-recipe-card__badge", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/9.0/recipe-card-badge-drinks.svg", "alt", "", "aria-hidden", "true", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-card__badge"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/9.0/recipe-card-badge-drinks.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-card__badge"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], ["aria-hidden", "true", 3, "src", "alt", "error"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__difficulty-and-time"], ["class", "miam-recipe-card__difficulty", 4, "ngIf"], ["class", "miam-recipe-card__time", 4, "ngIf"], [1, "miam-recipe-card__difficulty"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ChefHat.svg", "alt", "", "aria-hidden", "true"], [1, "miam-ds-text", "size-s", "weight-m"], [1, "miam-recipe-card__time"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Clock.svg", "alt", "", "aria-hidden", "true"], [1, "miam-recipe-card__bottom-promotion"], [1, "miam-recipe-card__price"], [1, "miam-ds-text", "weight-xxl", 3, "recipeId", "serves", "inViewport", "priceSet"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked"], [1, "miam-recipe-card__actions__replace"], [1, "miam-ds-button", "ghost", 3, "click"], i18n_0, ["aria-label", "Supprimer la recette", 1, "miam-ds-button", "ghost", "square", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_2, [1, "miam-recipe-card__redirect", 3, "href"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/Suggestion_Redirect_Background.png", "alt", "D\u00E9couvrez nos recettes"], [1, "miam-recipe-card__redirect__footer"], [1, "miam-recipe-card__redirect__title", "miam-ds-text", "size-l", "weight-xxl"], i18n_4, [1, "miam-recipe-card__redirect__button", "miam-ds-button", "primary"], i18n_6];
21294
+ return [["ngMiamInViewport", "", 1, "miam-recipe-card", 3, "condition", "ngClass", "inViewport"], ["class", "miam-recipe-card__container", "ngMiamInViewport", "", 3, "threshold", "debounceTime", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-recipe-card__container", 3, "threshold", "debounceTime", "inViewport"], [1, "miam-recipe-card__top", 3, "click"], [1, "miam-recipe-card__picture"], ["loading", "lazy", 3, "src", "alt", "error"], ["aria-hidden", "true", 1, "miam-recipe-card__gradient"], [1, "miam-recipe-card__content"], [1, "miam-recipe-card__top-container"], ["class", "miam-recipe-card__like", 4, "ngIf"], ["class", "miam-recipe-card_sponso_and_promo_badge", 4, "ngIf"], ["class", "miam-recipe-card__badge-container", 3, "ngClass", 4, "ngIf"], [1, "miam-recipe-card__picture__bottom"], [1, "miam-recipe-card__title", "miam-ds-text", "weight-xxl", "size-m"], [1, "miam-recipe-card__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/recipe-counter.svg", "alt", "", "aria-hidden", "true"], [1, "miam-recipe-card__bottom", 3, "click"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], [1, "miam-recipe-card__actions"], [1, "miam-recipe-card__infos"], ["class", "miam-recipe-card__difficulty-and-time", 4, "ngIf"], [1, "miam-recipe-card__price-and-promotion"], ["class", "miam-recipe-card__bottom-promotion", 4, "ngIf"], ["class", "miam-recipe-card__price", 4, "ngIf"], [1, "miam-recipe-card__cta"], ["class", "miam-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked", 4, "ngIf"], ["class", "miam-recipe-card__actions__replace", 4, "ngIf"], ["class", "miam-ds-button ghost", 3, "click", 4, "ngIf"], [1, "miam-recipe-card__like"], [1, "miam-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-recipe-card_sponso_and_promo_badge"], [4, "ngIf"], ["class", "miam-recipe-card__sponsor-container", 4, "ngIf"], [1, "miam-recipe-card__sponsor-container"], [1, "miam-recipe-card__sponsor-picture", 3, "src", "alt"], [1, "miam-recipe-card__badge-container", 3, "ngClass"], ["class", "miam-recipe-card__badge", "src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "Id\u00E9e repas", 4, "ngIf"], ["class", "miam-recipe-card__badge", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/9.0/recipe-card-badge-drinks.svg", "alt", "Id\u00E9e boisson", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "Id\u00E9e repas", 1, "miam-recipe-card__badge"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/9.0/recipe-card-badge-drinks.svg", "alt", "Id\u00E9e boisson", 1, "miam-recipe-card__badge"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], ["aria-hidden", "true", 3, "src", "alt", "error"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__difficulty-and-time"], ["class", "miam-recipe-card__difficulty", 4, "ngIf"], ["class", "miam-recipe-card__time", 4, "ngIf"], [1, "miam-recipe-card__difficulty"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ChefHat.svg", "alt", "", "aria-hidden", "true"], [1, "miam-ds-text", "size-s", "weight-m"], [1, "miam-recipe-card__time"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Clock.svg", "alt", "", "aria-hidden", "true"], [1, "miam-recipe-card__bottom-promotion"], [1, "miam-recipe-card__price"], [1, "miam-ds-text", "weight-xxl", 3, "recipeId", "serves", "inViewport", "priceSet"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked"], [1, "miam-recipe-card__actions__replace"], [1, "miam-ds-button", "ghost", 3, "click"], i18n_0, ["aria-label", "Supprimer la recette", 1, "miam-ds-button", "ghost", "square", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_2, [1, "miam-recipe-card__redirect", 3, "href"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/Suggestion_Redirect_Background.png", "alt", "D\u00E9couvrez nos recettes"], [1, "miam-recipe-card__redirect__footer"], [1, "miam-recipe-card__redirect__title", "miam-ds-text", "size-l", "weight-xxl"], i18n_4, [1, "miam-recipe-card__redirect__button", "miam-ds-button", "primary"], i18n_6];
21334
21295
  }, template: function RecipeCardComponent_Template(rf, ctx) {
21335
21296
  if (rf & 1) {
21336
21297
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -22516,7 +22477,7 @@
22516
22477
  else {
22517
22478
  i18n_11 = $localize(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
22518
22479
  }
22519
- return [[1, "miam-catalog-list"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], [1, "miam-catalog-list__cards"], ["recipeCard", ""], [4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "article", 4, "ngFor", "ngForOf"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName", "ngClass"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "filtering"], i18n_0, [4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, i18n_4, [1, "miam-catalog-list__notFound__title1", "not-filtering"], i18n_6, [1, "miam-catalog-list__notFound__title1", "not-logged"], i18n_8, [1, "miam-catalog-list__loader"], i18n_11, [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "displayVariant", "helpButtonAllowed", "addToMealsPlanner"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["ngMiamLoadOnScroll", "", "marginRoot", "600px", 3, "isLoading", "loadMore"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "article"]];
22480
+ return [[1, "miam-catalog-list"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["role", "list", 1, "miam-catalog-list__cards"], ["recipeCard", ""], [4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "article", 4, "ngFor", "ngForOf"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName", "ngClass"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "filtering"], i18n_0, [4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, i18n_4, [1, "miam-catalog-list__notFound__title1", "not-filtering"], i18n_6, [1, "miam-catalog-list__notFound__title1", "not-logged"], i18n_8, [1, "miam-catalog-list__loader"], i18n_11, ["role", "listitem", 3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "displayVariant", "helpButtonAllowed", "addToMealsPlanner"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["ngMiamLoadOnScroll", "", "marginRoot", "600px", 3, "isLoading", "loadMore"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "article"]];
22520
22481
  }, template: function CatalogListComponent_Template(rf, ctx) {
22521
22482
  if (rf & 1) {
22522
22483
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -23258,7 +23219,6 @@
23258
23219
  var _this = this;
23259
23220
  return rxjs.combineLatest([this.posService.waitForPos, this.basketsService.basket$]).pipe(operators.skipWhile(function (result) { return !result[1]; })).subscribe(function (result) {
23260
23221
  _this.pos = result[0];
23261
- _this.pricebookKey = result[1].pricebookKey;
23262
23222
  });
23263
23223
  };
23264
23224
  MealsPlannerComponent.prototype.fetchRecipesPricing = function () {
@@ -23270,7 +23230,7 @@
23270
23230
  this.budgettedRecipesPrices = {};
23271
23231
  this.budgettedRecipes.forEach(function (recipe) {
23272
23232
  if (recipe) {
23273
- requests.push(_this.recipesService.getPricing(recipe.id, _this.pos.id, _this.pricebookKey, _this.form.value.guestsCount).pipe(operators.skipWhile(function (result) { return !(result === null || result === void 0 ? void 0 : result.price); }), operators.tap(function (pricing) { return _this.budgettedRecipesPrices[recipe.id] = pricing.price; })));
23233
+ requests.push(_this.recipesService.getPricing(recipe.id, _this.pos.id, _this.form.value.guestsCount).pipe(operators.skipWhile(function (result) { return !(result === null || result === void 0 ? void 0 : result.price); }), operators.tap(function (pricing) { return _this.budgettedRecipesPrices[recipe.id] = pricing.price; })));
23274
23234
  }
23275
23235
  });
23276
23236
  return requests.length > 0 ? rxjs.forkJoin(requests) : rxjs.of([]);
@@ -23629,7 +23589,7 @@
23629
23589
  else {
23630
23590
  i18n_4 = $localize(templateObject_2$d || (templateObject_2$d = __makeTemplateObject([":\u241F8f2c8f66fed7cbda7649b4ba2320375ff7526dbb\u241F5011068305185462335: Chargement des r\u00E9sultats... "], [":\u241F8f2c8f66fed7cbda7649b4ba2320375ff7526dbb\u241F5011068305185462335: Chargement des r\u00E9sultats... "])));
23631
23591
  }
23632
- return [["class", "miam-catalog-category", "ngMiamInViewport", "", 3, "condition", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-catalog-category", 3, "condition", "inViewport"], [1, "miam-catalog-category__header"], ["role", "heading", "aria-level", "2", 1, "miam-catalog-category__title", 3, "click"], [1, "miam-catalog-category__header__bottom"], [1, "miam-catalog-category__subtitle", "miam-ds-text", "size-s", "weight-l"], [1, "miam-catalog-category__link", "miam-ds-text", "size-s", "weight-xl", 3, "click"], i18n_2, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", "alt", "", "aria-hidden", "true"], [1, "miam-catalog-category__content"], ["categoryContent", ""], [1, "miam-catalog-category__cards"], ["categoryCards", ""], ["class", "miam-catalog-category__loader", 4, "ngIf"], [3, "recipe", "displayInfos", "displayPricing", "displayVariant", "originTrace", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "article", 4, "ngFor", "ngForOf"], [1, "miam-catalog-category__loader"], i18n_4, [3, "recipe", "displayInfos", "displayPricing", "displayVariant", "originTrace"], [3, "article"]];
23592
+ return [["class", "miam-catalog-category", "ngMiamInViewport", "", 3, "condition", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-catalog-category", 3, "condition", "inViewport"], [1, "miam-catalog-category__header"], ["role", "heading", "aria-level", "2", 1, "miam-catalog-category__title", 3, "click"], [1, "miam-catalog-category__header__bottom"], [1, "miam-catalog-category__subtitle", "miam-ds-text", "size-s", "weight-l"], [1, "miam-catalog-category__link", "miam-ds-text", "size-s", "weight-xl", 3, "click"], i18n_2, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", "alt", "", "aria-hidden", "true"], [1, "miam-catalog-category__content"], ["categoryContent", ""], ["role", "list", 1, "miam-catalog-category__cards"], ["categoryCards", ""], ["class", "miam-catalog-category__loader", 4, "ngIf"], ["role", "listitem", 3, "recipe", "displayInfos", "displayPricing", "displayVariant", "originTrace", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "article", 4, "ngFor", "ngForOf"], [1, "miam-catalog-category__loader"], i18n_4, ["role", "listitem", 3, "recipe", "displayInfos", "displayPricing", "displayVariant", "originTrace"], [3, "article"]];
23633
23593
  }, template: function CatalogCategoryComponent_Template(rf, ctx) {
23634
23594
  if (rf & 1) {
23635
23595
  i0__namespace.ɵɵtemplate(0, CatalogCategoryComponent_div_0_Template, 19, 10, "div", 0);
@@ -27098,7 +27058,7 @@
27098
27058
  if (rf & 2) {
27099
27059
  var ctx_r8 = i0__namespace.ɵɵnextContext(3);
27100
27060
  i0__namespace.ɵɵproperty("src", ctx_r8.recipeDetailsService.recipe == null ? null : ctx_r8.recipeDetailsService.recipe.attributes["media-url"], i0__namespace.ɵɵsanitizeUrl);
27101
- i0__namespace.ɵɵattribute("alt", "Photo de la recette " + (ctx_r8.recipeDetailsService.recipe == null ? null : ctx_r8.recipeDetailsService.recipe.attributes["title"]));
27061
+ i0__namespace.ɵɵattribute("aria-hidden", true);
27102
27062
  }
27103
27063
  }
27104
27064
  function RecipeDetailsComponent_div_0_div_2_youtube_player_14_Template(rf, ctx) {