ng-miam 8.3.7 → 8.4.0

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 (113) hide show
  1. package/bundles/ng-miam.umd.js +829 -1335
  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/abstracts/event-tracer.component.js +7 -1
  6. package/esm2015/lib/_components/icon/icon.component.js +18 -42
  7. package/esm2015/lib/_components/like-button/like-button.component.js +2 -2
  8. package/esm2015/lib/_components/modal/modal.component.js +2 -4
  9. package/esm2015/lib/_components/price/price.component.js +11 -7
  10. package/esm2015/lib/_components/product-addition-card/product-addition-card.component.js +11 -9
  11. package/esm2015/lib/_components/product-card/product-card.component.js +34 -15
  12. package/esm2015/lib/_components/products-picker/products-picker.component.js +1 -21
  13. package/esm2015/lib/_components/store-locator/store-locator.component.js +13 -9
  14. package/esm2015/lib/_services/analytics.service.js +7 -6
  15. package/esm2015/lib/_services/basket-actions.service.js +3 -2
  16. package/esm2015/lib/_services/baskets-synchronizing/baskets-synchronizer.service.js +2 -4
  17. package/esm2015/lib/_services/baskets.service.js +60 -55
  18. package/esm2015/lib/_services/context.service.js +6 -2
  19. package/esm2015/lib/_services/index.js +2 -1
  20. package/esm2015/lib/_services/interceptor.service.js +11 -11
  21. package/esm2015/lib/_services/list-scan.service.js +86 -0
  22. package/esm2015/lib/_services/package.service.js +3 -2
  23. package/esm2015/lib/_services/point-of-sales.service.js +16 -3
  24. package/esm2015/lib/_services/preferences.service.js +2 -1
  25. package/esm2015/lib/_services/recipe-details.service.js +1 -1
  26. package/esm2015/lib/_services/suppliers.service.js +2 -1
  27. package/esm2015/lib/_services/user.service.js +2 -1
  28. package/esm2015/lib/_types/builded/miam-interface.js +1 -1
  29. package/esm2015/lib/_types/icon.enum.js +6 -8
  30. package/esm2015/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.js +2 -1
  31. package/esm2015/lib/_web-components/basket-preview/basket-preview-product/basket-preview-product.component.js +7 -4
  32. package/esm2015/lib/_web-components/basket-preview/replace-item/replace-item.component.js +5 -2
  33. package/esm2015/lib/_web-components/list-scan/basket-preview/basket-preview.component.js +65 -203
  34. package/esm2015/lib/_web-components/list-scan/files-inputs/files-inputs.component.js +57 -137
  35. package/esm2015/lib/_web-components/list-scan/list-scan.component.js +93 -136
  36. package/esm2015/lib/_web-components/list-scan/list-scan.module.js +11 -13
  37. package/esm2015/lib/_web-components/preferences/preferences-search/preferences-search.component.js +1 -1
  38. package/esm2015/lib/_web-components/preferences/preferences.component.js +3 -15
  39. package/esm2015/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.js +5 -6
  40. package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +41 -8
  41. package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +7 -4
  42. package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +89 -83
  43. package/esm2015/lib/_web-components/recipes-history/recipes-history.component.js +2 -2
  44. package/esm2015/lib/ng-miam.module.js +4 -2
  45. package/fesm2015/ng-miam.js +676 -1096
  46. package/fesm2015/ng-miam.js.map +1 -1
  47. package/lib/_components/abstracts/event-tracer.component.d.ts +1 -0
  48. package/lib/_components/abstracts/event-tracer.component.d.ts.map +1 -1
  49. package/lib/_components/components.module.d.ts +2 -1
  50. package/lib/_components/components.module.d.ts.map +1 -1
  51. package/lib/_components/modal/modal.component.d.ts +1 -2
  52. package/lib/_components/modal/modal.component.d.ts.map +1 -1
  53. package/lib/_components/price/price.component.d.ts +3 -1
  54. package/lib/_components/price/price.component.d.ts.map +1 -1
  55. package/lib/_components/product-addition-card/product-addition-card.component.d.ts.map +1 -1
  56. package/lib/_components/product-card/product-card.component.d.ts +4 -4
  57. package/lib/_components/product-card/product-card.component.d.ts.map +1 -1
  58. package/lib/_components/products-picker/products-picker.component.d.ts +0 -1
  59. package/lib/_components/products-picker/products-picker.component.d.ts.map +1 -1
  60. package/lib/_components/store-locator/store-locator.component.d.ts +7 -4
  61. package/lib/_components/store-locator/store-locator.component.d.ts.map +1 -1
  62. package/lib/_services/basket-actions.service.d.ts.map +1 -1
  63. package/lib/_services/baskets-synchronizing/baskets-synchronizer.service.d.ts.map +1 -1
  64. package/lib/_services/baskets.service.d.ts +7 -3
  65. package/lib/_services/baskets.service.d.ts.map +1 -1
  66. package/lib/_services/context.service.d.ts.map +1 -1
  67. package/lib/_services/index.d.ts +1 -0
  68. package/lib/_services/index.d.ts.map +1 -1
  69. package/lib/_services/interceptor.service.d.ts.map +1 -1
  70. package/lib/_services/list-scan.service.d.ts +26 -0
  71. package/lib/_services/list-scan.service.d.ts.map +1 -0
  72. package/lib/_services/package.service.d.ts +1 -1
  73. package/lib/_services/package.service.d.ts.map +1 -1
  74. package/lib/_services/point-of-sales.service.d.ts +1 -0
  75. package/lib/_services/point-of-sales.service.d.ts.map +1 -1
  76. package/lib/_services/preferences.service.d.ts.map +1 -1
  77. package/lib/_services/recipe-details.service.d.ts +1 -1
  78. package/lib/_services/recipe-details.service.d.ts.map +1 -1
  79. package/lib/_services/suppliers.service.d.ts.map +1 -1
  80. package/lib/_services/user.service.d.ts.map +1 -1
  81. package/lib/_types/builded/miam-interface.d.ts +1 -0
  82. package/lib/_types/builded/miam-interface.d.ts.map +1 -1
  83. package/lib/_types/icon.enum.d.ts +5 -7
  84. package/lib/_types/icon.enum.d.ts.map +1 -1
  85. package/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.d.ts.map +1 -1
  86. package/lib/_web-components/basket-preview/basket-preview-product/basket-preview-product.component.d.ts +2 -1
  87. package/lib/_web-components/basket-preview/basket-preview-product/basket-preview-product.component.d.ts.map +1 -1
  88. package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts.map +1 -1
  89. package/lib/_web-components/list-scan/basket-preview/basket-preview.component.d.ts +9 -18
  90. package/lib/_web-components/list-scan/basket-preview/basket-preview.component.d.ts.map +1 -1
  91. package/lib/_web-components/list-scan/files-inputs/files-inputs.component.d.ts +7 -13
  92. package/lib/_web-components/list-scan/files-inputs/files-inputs.component.d.ts.map +1 -1
  93. package/lib/_web-components/list-scan/list-scan.component.d.ts +15 -26
  94. package/lib/_web-components/list-scan/list-scan.component.d.ts.map +1 -1
  95. package/lib/_web-components/list-scan/list-scan.module.d.ts +8 -9
  96. package/lib/_web-components/list-scan/list-scan.module.d.ts.map +1 -1
  97. package/lib/_web-components/preferences/preferences.component.d.ts +1 -3
  98. package/lib/_web-components/preferences/preferences.component.d.ts.map +1 -1
  99. package/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.d.ts +2 -3
  100. package/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.d.ts.map +1 -1
  101. package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts +6 -0
  102. package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts.map +1 -1
  103. package/lib/_web-components/recipe-details/recipe-details.component.d.ts.map +1 -1
  104. package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts +4 -2
  105. package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts.map +1 -1
  106. package/lib/ng-miam.module.d.ts.map +1 -1
  107. package/package.json +1 -1
  108. package/esm2015/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.js +0 -201
  109. package/esm2015/lib/_web-components/list-scan/overlay-button/overlay-button.component.js +0 -122
  110. package/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.d.ts +0 -24
  111. package/lib/_web-components/list-scan/ingredients-list/ingredients-list.component.d.ts.map +0 -1
  112. package/lib/_web-components/list-scan/overlay-button/overlay-button.component.d.ts +0 -22
  113. package/lib/_web-components/list-scan/overlay-button/overlay-button.component.d.ts.map +0 -1
@@ -549,13 +549,11 @@
549
549
  Icon[Icon["Starter"] = 37] = "Starter";
550
550
  Icon[Icon["NotStarter"] = 38] = "NotStarter";
551
551
  Icon[Icon["Edit"] = 39] = "Edit";
552
- Icon[Icon["ListScanner"] = 40] = "ListScanner";
553
- Icon[Icon["Cross"] = 41] = "Cross";
554
- Icon[Icon["Upload"] = 42] = "Upload";
555
- Icon[Icon["Home"] = 43] = "Home";
556
- Icon[Icon["Filter"] = 44] = "Filter";
557
- Icon[Icon["Checkmark"] = 45] = "Checkmark";
558
- Icon[Icon["Alert"] = 46] = "Alert";
552
+ Icon[Icon["Cross"] = 40] = "Cross";
553
+ Icon[Icon["Home"] = 41] = "Home";
554
+ Icon[Icon["Filter"] = 42] = "Filter";
555
+ Icon[Icon["Checkmark"] = 43] = "Checkmark";
556
+ Icon[Icon["Alert"] = 44] = "Alert";
559
557
  })(exports.Icon || (exports.Icon = {}));
560
558
 
561
559
  var Ingredient = /** @class */ (function (_super) {
@@ -1985,6 +1983,7 @@
1985
1983
  }
1986
1984
  SuppliersService.prototype.loadSupplier = function (supplierId) {
1987
1985
  var _this = this;
1986
+ this.supplier$.next(null);
1988
1987
  if (!this.supplier$.value || this.supplier$.value.id !== supplierId) {
1989
1988
  return this.get(supplierId, { include: ['catalog-setting'] }).pipe(operators.skipWhile(function (supplier) { return supplier.is_loading; }), operators.tap(function (supplier) { return _this.supplier$.next(supplier); }));
1990
1989
  }
@@ -2056,7 +2055,13 @@
2056
2055
  'ext-id': extId,
2057
2056
  'supplier-id': supplier.id
2058
2057
  },
2059
- include: ['supplier']
2058
+ include: ['supplier'],
2059
+ fields: {
2060
+ 'point-of-sales': [
2061
+ 'name', 'settings', 'active-items-count', 'distance', 'address', 'latitude', 'longitude', 'ext-id', 'supplier'
2062
+ ],
2063
+ supplier: ['id']
2064
+ }
2060
2065
  }).pipe(operators.skipWhile(function (pos) { return pos.is_loading; }), operators.tap(function (pos) {
2061
2066
  if (pos.data.length > 0) {
2062
2067
  _this.pos$.next(pos.data[0]);
@@ -2083,6 +2088,14 @@
2083
2088
  }
2084
2089
  return this.http.get(url);
2085
2090
  };
2091
+ PointOfSalesService.prototype.getByCoordinates = function (latitude, longitude, radius, includeSupplier) {
2092
+ if (includeSupplier === void 0) { includeSupplier = true; }
2093
+ var url = environment$1.miamAPI + "/api/v1/point-of-sales/search?latitude=" + latitude + "&longitude=" + longitude + "&max_distance_km=" + radius + "&filter[affiliate]=true";
2094
+ if (includeSupplier) {
2095
+ url += '&include=supplier';
2096
+ }
2097
+ return this.http.get(url);
2098
+ };
2086
2099
  PointOfSalesService.prototype.emitBasketLoadedForNewPos = function () {
2087
2100
  this.basketLoadedForNewPos$.next();
2088
2101
  };
@@ -2403,6 +2416,7 @@
2403
2416
  this.isLogged$ = new rxjs.BehaviorSubject(false);
2404
2417
  this.preferencesActivated$ = new rxjs.BehaviorSubject(false);
2405
2418
  this.generatingAuthlessId$ = new rxjs.BehaviorSubject(false);
2419
+ this.userCoordinates$ = new rxjs.BehaviorSubject(undefined);
2406
2420
  this.userInfo$ = new rxjs.BehaviorSubject(undefined);
2407
2421
  this.userRoles$ = new rxjs.BehaviorSubject([]);
2408
2422
  this.userProvider$ = new rxjs.BehaviorSubject(undefined);
@@ -2824,8 +2838,11 @@
2824
2838
  _this.register();
2825
2839
  return _this;
2826
2840
  }
2827
- PackageService.prototype.categories_for = function (suppliersIds) {
2841
+ PackageService.prototype.categories_for = function (suppliersIds, pageSize, pageNumber) {
2842
+ if (pageSize === void 0) { pageSize = 30; }
2843
+ if (pageNumber === void 0) { pageNumber = 1; }
2828
2844
  return this.all({
2845
+ page: { size: pageSize, number: pageNumber },
2829
2846
  remotefilter: {
2830
2847
  category_for: suppliersIds.join(','),
2831
2848
  status: 'validated',
@@ -3017,7 +3034,7 @@
3017
3034
  script.defer = true;
3018
3035
  script.setAttribute('data-domain', domain);
3019
3036
  script.onload = function () {
3020
- console.log("[Miam] Analytics ready for domain: " + JSON.stringify(domain));
3037
+ console.debug("[Miam] Analytics ready for domain: " + JSON.stringify(domain));
3021
3038
  _this.ready$.next(true);
3022
3039
  };
3023
3040
  document.head.appendChild(script);
@@ -3030,7 +3047,7 @@
3030
3047
  }
3031
3048
  var script = document.createElement('script');
3032
3049
  script.src = "https://www.googleoptimize.com/optimize.js?id=" + key;
3033
- script.onload = function () { return console.log("[Miam] Optimize ready for key: " + JSON.stringify(key)); };
3050
+ script.onload = function () { return console.debug("[Miam] Optimize ready for key: " + JSON.stringify(key)); };
3034
3051
  document.head.appendChild(script);
3035
3052
  };
3036
3053
  /** ************************************************* SEND EVENT FOR BASKET ACTIONS ************************************************* **/
@@ -3085,12 +3102,13 @@
3085
3102
  AnalyticsService.prototype.sendRemoveProductsEvents = function (actions) {
3086
3103
  var _this = this;
3087
3104
  actions.forEach(function (action) {
3105
+ var _a, _b, _c;
3088
3106
  _this.sendEventWhenReady(_this.EVENT_ENTRY_DELETE, action.params.eventTrace.originPath, {
3089
3107
  recipe_id: action.params.recipeId,
3090
3108
  entry_name: action.params.basketEntry.name,
3091
- item_id: action.params.basketEntry.selectedItem.id,
3092
- ext_item_id: action.params.basketEntry.selectedItem.attributes['ext-id'],
3093
- item_ean: action.params.basketEntry.selectedItem.ean
3109
+ item_id: (_a = action.params.basketEntry.selectedItem) === null || _a === void 0 ? void 0 : _a.id,
3110
+ ext_item_id: (_b = action.params.basketEntry.selectedItem) === null || _b === void 0 ? void 0 : _b.attributes['ext-id'],
3111
+ item_ean: (_c = action.params.basketEntry.selectedItem) === null || _c === void 0 ? void 0 : _c.ean
3094
3112
  });
3095
3113
  });
3096
3114
  };
@@ -3320,6 +3338,7 @@
3320
3338
  PreferencesService.prototype.resetPreferences = function () {
3321
3339
  localStorage.setItem('_miam/preferences/guests', '4');
3322
3340
  localStorage.setItem('_miam/preferences', JSON.stringify({ with: [], without: [] }));
3341
+ this.guests$.next(+localStorage.getItem('_miam/preferences/guests') || 4);
3323
3342
  this.resetTagsActions();
3324
3343
  };
3325
3344
  PreferencesService.prototype.resetTagsActions = function () {
@@ -3867,6 +3886,7 @@
3867
3886
  _this._basket$ = new rxjs.BehaviorSubject(null);
3868
3887
  _this._basketPreview$ = new rxjs.BehaviorSubject(null);
3869
3888
  _this.basketStats$ = new rxjs.BehaviorSubject(null);
3889
+ _this.currentAndPreviewFetching = new rxjs.BehaviorSubject(false);
3870
3890
  _this.basketIsFetching = false;
3871
3891
  _this.basketPreviewIsCalculating = false;
3872
3892
  _this.basketInitCalled = false;
@@ -3880,15 +3900,6 @@
3880
3900
  _this.initToasterOnRecipeAdded();
3881
3901
  return _this;
3882
3902
  }
3883
- BasketsService.prototype.initQueueEmptying = function () {
3884
- var _this = this;
3885
- this.subscriptions.push(this.basketActionsQueue.pipe(operators.debounceTime(350), operators.skipWhile(function (actions) { return actions.length === 0 || _this.actionsBeingProcessed.value.length > 0; }), operators.tap(function () { return _this.emptyActionsQueue(); })).subscribe());
3886
- };
3887
- BasketsService.prototype.initToasterOnRecipeAdded = function () {
3888
- if (this.recipesService.confirmationToaster) {
3889
- this.showRecipeAddedToaster();
3890
- }
3891
- };
3892
3903
  Object.defineProperty(BasketsService.prototype, "basket$", {
3893
3904
  /** ************************************************************ GETTERS ************************************************************ **/
3894
3905
  /**
@@ -3939,11 +3950,21 @@
3939
3950
  */
3940
3951
  get: function () {
3941
3952
  var _this = this;
3942
- return this._entries$.pipe(operators.skipWhile(function (b) { return !b || !_this.basketInitCalled; }), operators.take(1));
3953
+ return this._entries$.pipe(operators.skipWhile(function (b) { return !b || !_this.basketInitCalled || _this.basketPreviewIsCalculating; }), operators.take(1));
3943
3954
  },
3944
3955
  enumerable: false,
3945
3956
  configurable: true
3946
3957
  });
3958
+ /** ************************************************************ INIT ************************************************************ **/
3959
+ BasketsService.prototype.initQueueEmptying = function () {
3960
+ var _this = this;
3961
+ this.subscriptions.push(this.basketActionsQueue.pipe(operators.debounceTime(350), operators.skipWhile(function (actions) { return actions.length === 0 || _this.actionsBeingProcessed.value.length > 0; }), operators.tap(function () { return _this.emptyActionsQueue(); })).subscribe());
3962
+ };
3963
+ BasketsService.prototype.initToasterOnRecipeAdded = function () {
3964
+ if (this.recipesService.confirmationToaster) {
3965
+ this.showRecipeAddedToaster();
3966
+ }
3967
+ };
3947
3968
  /** ************************************** QUEUE UTILS TO LOCK MORE ACTIONS OR DISPLAY LOADERS ************************************** **/
3948
3969
  // Util method to avoid repeating too much for the next 6 methods
3949
3970
  BasketsService.prototype.subjectContainsRecipeId = function (subject, type, recipeId) {
@@ -4008,6 +4029,12 @@
4008
4029
  BasketsService.prototype.productsWillBeAdded = function () {
4009
4030
  return this.basketActionsQueue.pipe(operators.map(function (queue) { return queue.filter(function (a) { return a.type === BasketActionType.ADD_PRODUCT; }).length; }));
4010
4031
  };
4032
+ BasketsService.prototype.productsWillBeRemoved = function () {
4033
+ return this.basketActionsQueue.pipe(operators.map(function (queue) { return queue.filter(function (a) { return a.type === BasketActionType.REMOVE_PRODUCT; }).length; }));
4034
+ };
4035
+ BasketsService.prototype.productsAreBeingRemoved = function () {
4036
+ return this.actionsBeingProcessed.pipe(operators.map(function (queue) { return queue.filter(function (a) { return a.type === BasketActionType.REMOVE_PRODUCT; }).length; }));
4037
+ };
4011
4038
  /** ************************************************************* UTILS ************************************************************* **/
4012
4039
  // Check if the recipeId is in the Basket's recipes-infos
4013
4040
  BasketsService.prototype.recipeIsInBasket = function (recipeId) {
@@ -4043,8 +4070,9 @@
4043
4070
  };
4044
4071
  BasketsService.prototype.refreshCurrentBasket = function () {
4045
4072
  var _this = this;
4073
+ this.currentAndPreviewFetching.next(true);
4046
4074
  return this.posService.pos$.pipe(operators.skipWhile(function (pos) { return !pos; }), operators.take(1), operators.switchMap(function (pos) {
4047
- console.log('[Miam] refreshing basket');
4075
+ console.debug('[Miam] refreshing basket');
4048
4076
  var authlessId = localStorage.getItem('_miam/authlessId');
4049
4077
  var userId = localStorage.getItem('_miam/userId');
4050
4078
  var cachedBasketId = localStorage.getItem('_miam/basketId');
@@ -4068,19 +4096,25 @@
4068
4096
  var confirmedBasket = _this.new();
4069
4097
  confirmedBasket.fill(response);
4070
4098
  return _this.updateLocalBasket(confirmedBasket);
4099
+ }), operators.catchError(function () {
4100
+ // If authless transfer returned an error, there might be something wrong with the basketId in localStorage, thus we fetchCurrent
4101
+ return _this.fetchCurrentBasket(posId, '');
4071
4102
  }));
4072
4103
  };
4073
4104
  BasketsService.prototype.fetchCurrentBasket = function (posId, cachedBasketId) {
4074
4105
  var _this = this;
4075
4106
  var baseRoute = 'current?point_of_sale_id=' + posId;
4076
- var endpoint = (((cachedBasketId === null || cachedBasketId === void 0 ? void 0 : cachedBasketId.toString().match(/^[0-9]+$/)) && this.usersService.isLogged$.getValue()) ? (baseRoute + '&merge_with=' + cachedBasketId) : baseRoute)
4077
- + ("&fields[baskets]=" + BASKET_SPARSE_FIELDS.baskets.join(','));
4107
+ var endpoint = baseRoute;
4108
+ if ((cachedBasketId === null || cachedBasketId === void 0 ? void 0 : cachedBasketId.toString().match(/^[0-9]+$/)) && this.usersService.isLogged$.getValue()) {
4109
+ endpoint += '&merge_with=' + cachedBasketId;
4110
+ }
4111
+ endpoint += "&fields[baskets]=" + BASKET_SPARSE_FIELDS.baskets.join(',');
4078
4112
  return this.get(endpoint).pipe(operators.skipWhile(function (basket) { return basket.is_loading; }), operators.switchMap(function (basket) { return _this.updateLocalBasket(basket); }), operators.tap(function () { return _this.posService.emitBasketLoadedForNewPos(); }));
4079
4113
  };
4080
4114
  BasketsService.prototype.resetBasket = function (eventTrace) {
4081
4115
  var _this = this;
4082
4116
  if (eventTrace === void 0) { eventTrace = { originPath: '', props: {} }; }
4083
- console.log('[Miam] resetting basket');
4117
+ console.debug('[Miam] resetting basket');
4084
4118
  this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_RECIPE_RESET, eventTrace.originPath, eventTrace.props);
4085
4119
  localStorage.removeItem('_miam/affiliate');
4086
4120
  this.ignoredBasketsService.resetIgnoredIngredients();
@@ -4091,19 +4125,19 @@
4091
4125
  BasketsService.prototype.confirmBasket = function (totalPrice) {
4092
4126
  var _this = this;
4093
4127
  var confirmedBasket;
4094
- console.log("[Miam] Confirm basket " + JSON.stringify(confirmedBasket));
4128
+ console.debug("[Miam] Confirm basket " + JSON.stringify(confirmedBasket));
4095
4129
  return this.waitForBasket.pipe(operators.tap(function (basket) {
4096
4130
  if (basket.totalPrice > 0) {
4097
4131
  _this.analyticsService.sendEventWhenReady(_this.analyticsService.EVENT_PAYMENT_CONFIRMED, null, _this.eventProps(basket, totalPrice));
4098
4132
  }
4099
4133
  }), operators.switchMap(function (basket) {
4100
- console.log('[Miam] Save basket with confirmed=true');
4134
+ console.debug('[Miam] Save basket with confirmed=true');
4101
4135
  basket.attributes.confirmed = true;
4102
4136
  return basket.save({ fields: { baskets: __spread(BASKET_SPARSE_FIELDS.baskets, ['token']) } });
4103
4137
  }), operators.switchMap(function (resp) {
4104
4138
  confirmedBasket = _this.new();
4105
4139
  confirmedBasket.fill(resp);
4106
- console.log("[Miam] send push analytics event if > 0: " + JSON.stringify(confirmedBasket.totalPrice) + " " + JSON.stringify(confirmedBasket));
4140
+ console.debug("[Miam] send push analytics event if > 0: " + JSON.stringify(confirmedBasket.totalPrice) + " " + JSON.stringify(confirmedBasket));
4107
4141
  if (confirmedBasket.totalPrice > 0 && confirmedBasket.token) {
4108
4142
  _this.analyticsService.sendEventWhenReady(_this.analyticsService.EVENT_BASKET_CONFIRMED, null, _this.eventProps(confirmedBasket, totalPrice));
4109
4143
  localStorage.removeItem('_miam/affiliate');
@@ -4198,15 +4232,12 @@
4198
4232
  var _this = this;
4199
4233
  return this.waitForBasket.pipe(operators.switchMap(function (basket) {
4200
4234
  if (basket.pricebookKey === pricebookName) {
4201
- console.log("[Miam] same pricebook " + JSON.stringify(pricebookName));
4235
+ console.debug("[Miam] same pricebook " + JSON.stringify(pricebookName));
4202
4236
  return rxjs.of(null);
4203
4237
  }
4204
- console.log("[Miam] update pricebook to " + JSON.stringify(pricebookName));
4238
+ console.debug("[Miam] update pricebook to " + JSON.stringify(pricebookName));
4205
4239
  basket.pricebookKey = pricebookName;
4206
- return basket.save({ fields: BASKET_SPARSE_FIELDS }).pipe(operators.switchMap(function (resp) {
4207
- _this.fillBasket(resp);
4208
- return _this.loadPreview();
4209
- }));
4240
+ return basket.save({ fields: BASKET_SPARSE_FIELDS }).pipe(operators.switchMap(function (resp) { return _this.fillBasket(resp); }));
4210
4241
  }));
4211
4242
  };
4212
4243
  /** ******************************************************** ADD FROM PICTURE ******************************************************** **/
@@ -4215,12 +4246,12 @@
4215
4246
  if (include === void 0) { include = []; }
4216
4247
  if (disableIngredientsMatching === void 0) { disableIngredientsMatching = false; }
4217
4248
  return this.waitForBasket.pipe(operators.switchMap(function (basket) {
4218
- var url = environment$1.miamAPI + "/api/v1/baskets/" + basket.id + "/add_entries_from_picture" +
4249
+ var url = environment$1.miamAPI + "/api/v1/baskets/" + basket.id + "/add-entries-from-picture" +
4219
4250
  ("?fields[baskets]=" + BASKET_SPARSE_FIELDS.baskets.join(',') + (disableIngredientsMatching ? '&disable_matching=true' : ''));
4220
4251
  var formData = new FormData();
4221
4252
  formData.append('picture', file);
4222
4253
  formData.append('include', include.join(','));
4223
- return _this.http.patch(url, formData).pipe(operators.map(function (response) { return _this.fillBasket(response); }));
4254
+ return _this.http.patch(url, formData).pipe(operators.switchMap(function (response) { return _this.fillBasket(response); }));
4224
4255
  }));
4225
4256
  };
4226
4257
  /** **************************************************** ADD ACTIONS TO THE QUEUE **************************************************** **/
@@ -4394,7 +4425,17 @@
4394
4425
  case BasketActionType.ADD_PRODUCT:
4395
4426
  return batch.findIndex(function (a) { return a.params.ingredientId === currentAction.params.ingredientId && a.params.recipeId === currentAction.params.recipeId; });
4396
4427
  case BasketActionType.REMOVE_PRODUCT:
4397
- return batch.findIndex(function (a) { return a.params.ingredientId === currentAction.params.ingredientId && a.params.recipeId === currentAction.params.recipeId; });
4428
+ return batch.findIndex(function (a) {
4429
+ var _a;
4430
+ var checkProduct;
4431
+ if ((_a = currentAction.params.basketEntry) === null || _a === void 0 ? void 0 : _a.id) {
4432
+ checkProduct = a.params.basketEntry.id === currentAction.params.basketEntry.id;
4433
+ }
4434
+ else {
4435
+ checkProduct = a.params.ingredientId === currentAction.params.ingredientId;
4436
+ }
4437
+ return checkProduct && a.params.recipeId === currentAction.params.recipeId;
4438
+ });
4398
4439
  case BasketActionType.UPDATE_PRODUCT:
4399
4440
  return batch.findIndex(function (a) { return a.params.basketEntry.id === currentAction.params.basketEntry.id; });
4400
4441
  case BasketActionType.UPDATE_RECIPE:
@@ -4447,14 +4488,7 @@
4447
4488
  ("?fields[baskets]=" + BASKET_SPARSE_FIELDS.baskets.join(',') + (withIngredients ? '' : '&light_mode=true'));
4448
4489
  var body = { data: recipesToAdd.map(function (r) { return ({ recipe_id: r.params.recipeId, guests: r.params.guests }); }) };
4449
4490
  _this.analyticsService.sendAddRecipesEvents(recipesToAdd);
4450
- return _this.http.post(url, body).pipe(operators.skipWhile(function (b) { return b.is_loading; }), operators.switchMap(function (b) {
4451
- var _a;
4452
- if ((_a = b.data) === null || _a === void 0 ? void 0 : _a.id) {
4453
- _this.fillBasket(b);
4454
- return _this.loadPreview();
4455
- }
4456
- return rxjs.of(null);
4457
- }));
4491
+ return _this.http.post(url, body).pipe(operators.skipWhile(function (b) { return b.is_loading; }), operators.switchMap(function (b) { var _a; return ((_a = b.data) === null || _a === void 0 ? void 0 : _a.id) ? _this.fillBasket(b) : rxjs.of(null); }));
4458
4492
  }));
4459
4493
  };
4460
4494
  BasketsService.prototype.addRecipesWithoutIngredients = function (recipesToAdd) {
@@ -4466,14 +4500,7 @@
4466
4500
  var url = environment$1.miamAPI + "/api/v1/baskets/" + basket.id + "/recipes?recipe_ids[]=" +
4467
4501
  recipesToRemove.map(function (r) { return r.params.recipeId; }).join('&recipe_ids[]=') + ("&fields[baskets]=" + BASKET_SPARSE_FIELDS.baskets.join(','));
4468
4502
  _this.analyticsService.sendRemoveRecipesEvents(recipesToRemove);
4469
- return _this.http.delete(url).pipe(operators.skipWhile(function (b) { return b.is_loading; }), operators.switchMap(function (b) {
4470
- var _a;
4471
- if ((_a = b.data) === null || _a === void 0 ? void 0 : _a.id) {
4472
- _this.fillBasket(b);
4473
- return _this.loadPreview();
4474
- }
4475
- return rxjs.of(null);
4476
- }));
4503
+ return _this.http.delete(url).pipe(operators.skipWhile(function (b) { return b.is_loading; }), operators.switchMap(function (b) { var _a; return ((_a = b.data) === null || _a === void 0 ? void 0 : _a.id) ? _this.fillBasket(b) : rxjs.of(null); }));
4477
4504
  }));
4478
4505
  };
4479
4506
  BasketsService.prototype.updateRecipesGuests = function (recipesToUpdate) {
@@ -4482,14 +4509,7 @@
4482
4509
  var url = environment$1.miamAPI + "/api/v1/baskets/" + basket.id + "/recipes_guests?guests=" + recipesToUpdate[0].params.guests + "&recipe_ids[]=" +
4483
4510
  recipesToUpdate.map(function (r) { return r.params.recipeId; }).join('&recipe_ids[]=') + ("&fields[baskets]=" + BASKET_SPARSE_FIELDS.baskets.join(','));
4484
4511
  _this.analyticsService.sendUpdateGuestsEvents(recipesToUpdate);
4485
- return _this.http.patch(url, {}).pipe(operators.skipWhile(function (b) { return !b || b.is_loading; }), operators.switchMap(function (b) {
4486
- var _a;
4487
- if ((_a = b.data) === null || _a === void 0 ? void 0 : _a.id) {
4488
- _this.fillBasket(b);
4489
- return _this.loadPreview();
4490
- }
4491
- return rxjs.of(null);
4492
- }));
4512
+ return _this.http.patch(url, {}).pipe(operators.skipWhile(function (b) { return !b || b.is_loading; }), operators.switchMap(function (b) { var _a; return ((_a = b.data) === null || _a === void 0 ? void 0 : _a.id) ? _this.fillBasket(b) : rxjs.of(null); }));
4493
4513
  }));
4494
4514
  };
4495
4515
  /**
@@ -4580,8 +4600,12 @@
4580
4600
  else {
4581
4601
  localStorage.setItem('_miam/basketId', basket.id);
4582
4602
  }
4603
+ this.basketPreviewIsCalculating = true;
4583
4604
  this._basket$.next(basket);
4584
- return this.loadPreview().pipe(operators.tap(function () { return _this.basketIsFetching = false; }));
4605
+ return this.loadPreview().pipe(operators.tap(function () {
4606
+ _this.basketIsFetching = false;
4607
+ _this.currentAndPreviewFetching.next(false);
4608
+ }));
4585
4609
  };
4586
4610
  /**
4587
4611
  * save() returns an object that isn't a resource so methods aren't attached, so we have to do a little trick
@@ -4591,8 +4615,9 @@
4591
4615
  BasketsService.prototype.fillBasket = function (res) {
4592
4616
  var basket = this.new();
4593
4617
  basket.fill(res);
4618
+ this.basketPreviewIsCalculating = true;
4594
4619
  this._basket$.next(basket);
4595
- return basket;
4620
+ return this.loadPreview();
4596
4621
  };
4597
4622
  /** ********************************************************** INITIAL LOAD ********************************************************** **/
4598
4623
  /**
@@ -4605,7 +4630,7 @@
4605
4630
  };
4606
4631
  BasketsService.prototype.loadPreview = function () {
4607
4632
  var _this = this;
4608
- return this.basket$.pipe(operators.skipWhile(function (b) { return !b; }), operators.take(1), operators.switchMap(function (basket) { return _this.recipesService.loadRecipes(basket.recipeInfos); }), operators.switchMap(function (recipes) {
4633
+ return this.waitForBasket.pipe(operators.switchMap(function (basket) { return _this.recipesService.loadRecipes(basket.recipeInfos); }), operators.switchMap(function (recipes) {
4609
4634
  var basket = _this._basket$.value;
4610
4635
  return _this.fetchBasketEntries(basket).pipe(operators.map(function (entries) {
4611
4636
  var lineEntries = _this.groupBasketEntries(recipes, entries);
@@ -5064,9 +5089,7 @@
5064
5089
  throw new Error('No method was passed to \'window.miam.basket.definePushProductsToBasket\'');
5065
5090
  };
5066
5091
  // Begin listening for miam's basket (will not fetch basket automatically)
5067
- this.supplierService.supplier$.pipe(operators.skipWhile(function (s) { return !s; }), operators.tap(function () {
5068
- // If supplier is changed during the experience, reset basket sync
5069
- _this.firstMiamBasket = undefined;
5092
+ this.supplierService.supplier$.pipe(operators.skipWhile(function (s) { return !s; }), operators.take(1), operators.tap(function () {
5070
5093
  _this.listenToMiam();
5071
5094
  })).subscribe();
5072
5095
  }
@@ -5295,7 +5318,7 @@
5295
5318
  this.addAllProductsWasClicked = new i0.EventEmitter();
5296
5319
  this.miam = {
5297
5320
  paymentStarted: function (totalPrice) {
5298
- console.log('[Miam] send paymentStarted event');
5321
+ console.debug('[Miam] send paymentStarted event');
5299
5322
  _this.onBasketAndPosSendEvent(_this.analyticsService.EVENT_PAYMENT_STARTED, totalPrice);
5300
5323
  },
5301
5324
  analytics: {
@@ -5387,6 +5410,7 @@
5387
5410
  }
5388
5411
  },
5389
5412
  getByAddress: this.posService.getByAddress.bind(this.posService),
5413
+ getByCoordinates: this.posService.getByCoordinates.bind(this.posService),
5390
5414
  },
5391
5415
  recipes: {
5392
5416
  hidden: this.recipesService.hidden,
@@ -5438,6 +5462,9 @@
5438
5462
  }
5439
5463
  },
5440
5464
  load: function (supplierId) {
5465
+ if (_this.suppliersService.supplier$.value) {
5466
+ _this.basketHandler.resetMiam();
5467
+ }
5441
5468
  if (_this.origin.value) {
5442
5469
  _this.suppliersService.loadSupplier(supplierId.toString()).subscribe();
5443
5470
  if (!_this.loggedOnSession) {
@@ -6485,28 +6512,21 @@
6485
6512
  function IconComponent_ng_template_1_ng_container_45_Template(rf, ctx) {
6486
6513
  if (rf & 1) {
6487
6514
  i0__namespace.ɵɵelementContainerStart(0);
6488
- i0__namespace.ɵɵelement(1, "img", 100);
6515
+ i0__namespace.ɵɵnamespaceSVG();
6516
+ i0__namespace.ɵɵelementStart(1, "svg", 100);
6517
+ i0__namespace.ɵɵelement(2, "path", 101);
6518
+ i0__namespace.ɵɵelementEnd();
6489
6519
  i0__namespace.ɵɵelementContainerEnd();
6490
6520
  }
6491
6521
  if (rf & 2) {
6492
6522
  var ctx_r46 = i0__namespace.ɵɵnextContext(2);
6493
6523
  i0__namespace.ɵɵadvance(1);
6494
- i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction1(1, _c1$j, ctx_r46.width + "px"));
6495
- }
6496
- }
6497
- function IconComponent_ng_template_1_ng_container_46_Template(rf, ctx) {
6498
- if (rf & 1) {
6499
- i0__namespace.ɵɵelementContainerStart(0);
6500
- i0__namespace.ɵɵelement(1, "img", 101);
6501
- i0__namespace.ɵɵelementContainerEnd();
6502
- }
6503
- if (rf & 2) {
6504
- var ctx_r47 = i0__namespace.ɵɵnextContext(2);
6524
+ i0__namespace.ɵɵattribute("width.px", ctx_r46.width)("height.px", ctx_r46.height);
6505
6525
  i0__namespace.ɵɵadvance(1);
6506
- i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction1(1, _c1$j, ctx_r47.width + "px"));
6526
+ i0__namespace.ɵɵattribute("fill", ctx_r46.primaryColor);
6507
6527
  }
6508
6528
  }
6509
- function IconComponent_ng_template_1_ng_container_47_Template(rf, ctx) {
6529
+ function IconComponent_ng_template_1_ng_container_46_Template(rf, ctx) {
6510
6530
  if (rf & 1) {
6511
6531
  i0__namespace.ɵɵelementContainerStart(0);
6512
6532
  i0__namespace.ɵɵnamespaceSVG();
@@ -6516,31 +6536,14 @@
6516
6536
  i0__namespace.ɵɵelementContainerEnd();
6517
6537
  }
6518
6538
  if (rf & 2) {
6519
- var ctx_r48 = i0__namespace.ɵɵnextContext(2);
6520
- i0__namespace.ɵɵadvance(1);
6521
- i0__namespace.ɵɵattribute("width.px", ctx_r48.width)("height.px", ctx_r48.height);
6522
- i0__namespace.ɵɵadvance(1);
6523
- i0__namespace.ɵɵattribute("fill", ctx_r48.primaryColor);
6524
- }
6525
- }
6526
- function IconComponent_ng_template_1_ng_container_48_Template(rf, ctx) {
6527
- if (rf & 1) {
6528
- i0__namespace.ɵɵelementContainerStart(0);
6529
- i0__namespace.ɵɵnamespaceSVG();
6530
- i0__namespace.ɵɵelementStart(1, "svg", 104);
6531
- i0__namespace.ɵɵelement(2, "path", 105);
6532
- i0__namespace.ɵɵelementEnd();
6533
- i0__namespace.ɵɵelementContainerEnd();
6534
- }
6535
- if (rf & 2) {
6536
- var ctx_r49 = i0__namespace.ɵɵnextContext(2);
6539
+ var ctx_r47 = i0__namespace.ɵɵnextContext(2);
6537
6540
  i0__namespace.ɵɵadvance(1);
6538
- i0__namespace.ɵɵattribute("width.px", ctx_r49.width)("height.px", ctx_r49.height);
6541
+ i0__namespace.ɵɵattribute("width.px", ctx_r47.width)("height.px", ctx_r47.height);
6539
6542
  i0__namespace.ɵɵadvance(1);
6540
- i0__namespace.ɵɵattribute("fill", ctx_r49.primaryColor);
6543
+ i0__namespace.ɵɵattribute("fill", ctx_r47.primaryColor);
6541
6544
  }
6542
6545
  }
6543
- function IconComponent_ng_template_1_ng_container_49_Template(rf, ctx) {
6546
+ function IconComponent_ng_template_1_ng_container_47_Template(rf, ctx) {
6544
6547
  if (rf & 1) {
6545
6548
  i0__namespace.ɵɵelementContainer(0);
6546
6549
  }
@@ -6592,11 +6595,9 @@
6592
6595
  i0__namespace.ɵɵtemplate(42, IconComponent_ng_template_1_ng_container_42_Template, 2, 3, "ng-container", 5);
6593
6596
  i0__namespace.ɵɵtemplate(43, IconComponent_ng_template_1_ng_container_43_Template, 2, 3, "ng-container", 5);
6594
6597
  i0__namespace.ɵɵtemplate(44, IconComponent_ng_template_1_ng_container_44_Template, 2, 3, "ng-container", 5);
6595
- i0__namespace.ɵɵtemplate(45, IconComponent_ng_template_1_ng_container_45_Template, 2, 3, "ng-container", 5);
6596
- i0__namespace.ɵɵtemplate(46, IconComponent_ng_template_1_ng_container_46_Template, 2, 3, "ng-container", 5);
6597
- i0__namespace.ɵɵtemplate(47, IconComponent_ng_template_1_ng_container_47_Template, 3, 3, "ng-container", 5);
6598
- i0__namespace.ɵɵtemplate(48, IconComponent_ng_template_1_ng_container_48_Template, 3, 3, "ng-container", 5);
6599
- i0__namespace.ɵɵtemplate(49, IconComponent_ng_template_1_ng_container_49_Template, 1, 0, "ng-container", 6);
6598
+ i0__namespace.ɵɵtemplate(45, IconComponent_ng_template_1_ng_container_45_Template, 3, 3, "ng-container", 5);
6599
+ i0__namespace.ɵɵtemplate(46, IconComponent_ng_template_1_ng_container_46_Template, 3, 3, "ng-container", 5);
6600
+ i0__namespace.ɵɵtemplate(47, IconComponent_ng_template_1_ng_container_47_Template, 1, 0, "ng-container", 6);
6600
6601
  i0__namespace.ɵɵelementEnd();
6601
6602
  i0__namespace.ɵɵelementContainerEnd();
6602
6603
  }
@@ -6604,7 +6605,7 @@
6604
6605
  var ctx_r2 = i0__namespace.ɵɵnextContext();
6605
6606
  i0__namespace.ɵɵproperty("ngSwitch", ctx_r2.iconName);
6606
6607
  i0__namespace.ɵɵadvance(1);
6607
- i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction2(49, _c0$s, ctx_r2.width + "px", ctx_r2.height + "px"));
6608
+ i0__namespace.ɵɵproperty("ngStyle", i0__namespace.ɵɵpureFunction2(47, _c0$s, ctx_r2.width + "px", ctx_r2.height + "px"));
6608
6609
  i0__namespace.ɵɵadvance(1);
6609
6610
  i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r2.icon.Checkmark);
6610
6611
  i0__namespace.ɵɵadvance(1);
@@ -6688,14 +6689,10 @@
6688
6689
  i0__namespace.ɵɵadvance(1);
6689
6690
  i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r2.icon.CircledPlus);
6690
6691
  i0__namespace.ɵɵadvance(1);
6691
- i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r2.icon.ListScanner);
6692
- i0__namespace.ɵɵadvance(1);
6693
6692
  i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r2.icon.CartPlus);
6694
6693
  i0__namespace.ɵɵadvance(1);
6695
6694
  i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r2.icon.Cross);
6696
6695
  i0__namespace.ɵɵadvance(1);
6697
- i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r2.icon.Upload);
6698
- i0__namespace.ɵɵadvance(1);
6699
6696
  i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r2.icon.Home);
6700
6697
  i0__namespace.ɵɵadvance(1);
6701
6698
  i0__namespace.ɵɵproperty("ngSwitchCase", ctx_r2.icon.Filter);
@@ -6718,10 +6715,10 @@
6718
6715
  return IconComponent;
6719
6716
  }());
6720
6717
  IconComponent.ɵfac = function IconComponent_Factory(t) { return new (t || IconComponent)(i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
6721
- IconComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: IconComponent, selectors: [["ng-miam-icon"]], inputs: { primaryColor: "primaryColor", secondaryColor: "secondaryColor", width: "width", height: "height", iconName: "iconName" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "icon-container", 3, "ngStyle", 4, "ngIf", "ngIfElse"], ["switchIcon", ""], [1, "icon-container", 3, "ngStyle"], [1, "icon-container__icon", 3, "src", "ngStyle"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Checkmark.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Alert_danger.svg", 1, "icon-container__icon", 3, "ngStyle"], ["viewBox", "0 0 16 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M12.5018 13.821H9.91582H9.21945H9.06906V10.3523H10.2035C10.4912 10.3523 10.6612 10.0253 10.4912 9.78995L8.28443 6.73642C8.14385 6.54026 7.85288 6.54026 7.7123 6.73642L5.50552 9.78995C5.33551 10.0253 5.50225 10.3523 5.79322 10.3523H6.92767V13.821H6.77728H6.08092H3.08296C1.36657 13.7262 0 12.121 0 10.3817C0 9.18186 0.650593 8.13568 1.61504 7.57009C1.52677 7.33143 1.481 7.07643 1.481 6.80834C1.481 5.58235 2.4716 4.59175 3.69759 4.59175C3.9624 4.59175 4.21741 4.63752 4.45607 4.72579C5.16551 3.22191 6.69555 2.179 8.47405 2.179C10.7756 2.18227 12.6718 3.94443 12.8876 6.19044C14.6563 6.49449 16 8.13241 16 9.98611C16 11.9673 14.4569 13.6837 12.5018 13.821Z"], ["viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M12.5 22C16.9183 22 20.5 18.4183 20.5 14C20.5 9.58172 16.9183 6 12.5 6C8.08172 6 4.5 9.58172 4.5 14C4.5 18.4183 8.08172 22 12.5 22Z", "stroke-width", "2"], ["d", "M14.5 2H10.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 2V6", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M18 8L19.5 6.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 14V11", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 14H9.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["viewBox", "0 0 16 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-x"], ["fill-rule", "evenodd", "d", "M11.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z"], ["fill-rule", "evenodd", "d", "M4.146 4.146a.5.5 0 0 0 0 .708l7 7a.5.5 0 0 0 .708-.708l-7-7a.5.5 0 0 0-.708 0z"], ["viewBox", "0 0 17 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-image"], ["fill-rule", "evenodd", "d", "M14.002 2h-12a1 1 0 0 0-1 1v9l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094L15.002 9.5V3a1 1 0 0 0-1-1zm-12-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm4 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"], ["viewBox", "0 0 64 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["clip-path", "url(#clip0)"], ["d", "M14.7613 14.2631C14.5819 13.8245 14.3992 13.386 14.1998 12.954C14.0237 12.5686 13.7978 12.4557 13.3759 12.552C12.8409 12.6749 12.316 12.8377 11.7811 12.9474C10.7478 13.1634 9.71117 13.1833 8.69117 12.861C7.41202 12.459 6.73091 11.532 6.31228 10.3359H9.78094C10.0534 10.3359 10.2727 10.1166 10.2727 9.8442V8.75111C10.2727 8.47866 10.0534 8.25938 9.78094 8.25938H5.98003C5.98003 7.95371 5.97671 7.66134 5.98003 7.36896H9.78094C10.0534 7.36896 10.2727 7.14968 10.2727 6.87723V5.78414C10.2727 5.5117 10.0534 5.29241 9.78094 5.29241H6.45847C6.45847 5.27912 6.45847 5.26583 6.46512 5.25919C6.86381 4.35215 7.44524 3.62453 8.39879 3.24577C9.5085 2.8072 10.6415 2.81717 11.7844 3.05307C12.326 3.16271 12.8576 3.32883 13.3991 3.45176C13.7945 3.54147 14.0237 3.42518 14.1932 3.05639C14.3892 2.63111 14.5686 2.19919 14.748 1.76395C14.9175 1.35528 14.8178 1.06623 14.4324 0.840299C14.3361 0.783817 14.2364 0.737303 14.1334 0.697433C12.532 0.072808 10.8807 -0.159765 9.17625 0.112678C7.97684 0.305381 6.85717 0.717368 5.89033 1.46825C4.67098 2.41183 3.88023 3.65776 3.42173 5.12297L3.36525 5.29241H1.6575C1.38505 5.29241 1.16577 5.5117 1.16577 5.78414V6.87723C1.16577 7.14968 1.38505 7.36896 1.6575 7.36896H3.0031C3.0031 7.66798 3.0031 7.95704 3.0031 8.25938H1.6575C1.38505 8.25938 1.16577 8.47866 1.16577 8.75111V9.8442C1.16577 10.1166 1.38505 10.3359 1.6575 10.3359H3.27886C3.4018 10.7346 3.50479 11.14 3.66095 11.522C4.4816 13.5022 5.8571 14.911 7.927 15.5821C9.63808 16.137 11.3624 16.1204 13.0868 15.6452C13.5353 15.5223 13.9805 15.3628 14.4058 15.1668C14.8178 14.9774 14.9241 14.6585 14.7613 14.2631Z"], ["clip-path", "url(#clip1)"], ["d", "M38.7613 14.2631C38.5819 13.8245 38.3992 13.386 38.1998 12.954C38.0237 12.5686 37.7978 12.4557 37.3759 12.552C36.8409 12.6749 36.316 12.8377 35.7811 12.9474C34.7478 13.1634 33.7112 13.1833 32.6912 12.861C31.412 12.459 30.7309 11.532 30.3123 10.3359H33.7809C34.0534 10.3359 34.2727 10.1166 34.2727 9.8442V8.75111C34.2727 8.47866 34.0534 8.25938 33.7809 8.25938H29.98C29.98 7.95371 29.9767 7.66134 29.98 7.36896H33.7809C34.0534 7.36896 34.2727 7.14968 34.2727 6.87723V5.78414C34.2727 5.5117 34.0534 5.29241 33.7809 5.29241H30.4585C30.4585 5.27912 30.4585 5.26583 30.4651 5.25919C30.8638 4.35215 31.4452 3.62453 32.3988 3.24577C33.5085 2.8072 34.6415 2.81717 35.7844 3.05307C36.326 3.16271 36.8576 3.32883 37.3991 3.45176C37.7945 3.54147 38.0237 3.42518 38.1932 3.05639C38.3892 2.63111 38.5686 2.19919 38.748 1.76395C38.9175 1.35528 38.8178 1.06623 38.4324 0.840299C38.3361 0.783817 38.2364 0.737303 38.1334 0.697433C36.532 0.072808 34.8807 -0.159765 33.1763 0.112678C31.9768 0.305381 30.8572 0.717368 29.8903 1.46825C28.671 2.41183 27.8802 3.65776 27.4217 5.12297L27.3652 5.29241H25.6575C25.3851 5.29241 25.1658 5.5117 25.1658 5.78414V6.87723C25.1658 7.14968 25.3851 7.36896 25.6575 7.36896H27.0031C27.0031 7.66798 27.0031 7.95704 27.0031 8.25938H25.6575C25.3851 8.25938 25.1658 8.47866 25.1658 8.75111V9.8442C25.1658 10.1166 25.3851 10.3359 25.6575 10.3359H27.2789C27.4018 10.7346 27.5048 11.14 27.6609 11.522C28.4816 13.5022 29.8571 14.911 31.927 15.5821C33.6381 16.137 35.3624 16.1204 37.0868 15.6452C37.5353 15.5223 37.9805 15.3628 38.4058 15.1668C38.8178 14.9774 38.9241 14.6585 38.7613 14.2631Z", "fill", "#8C8CA1"], ["clip-path", "url(#clip2)"], ["d", "M62.7613 14.2631C62.5819 13.8245 62.3992 13.386 62.1998 12.954C62.0237 12.5686 61.7978 12.4557 61.3759 12.552C60.8409 12.6749 60.316 12.8377 59.7811 12.9474C58.7478 13.1634 57.7112 13.1833 56.6912 12.861C55.412 12.459 54.7309 11.532 54.3123 10.3359H57.7809C58.0534 10.3359 58.2727 10.1166 58.2727 9.8442V8.75111C58.2727 8.47866 58.0534 8.25938 57.7809 8.25938H53.98C53.98 7.95371 53.9767 7.66134 53.98 7.36896H57.7809C58.0534 7.36896 58.2727 7.14968 58.2727 6.87723V5.78414C58.2727 5.5117 58.0534 5.29241 57.7809 5.29241H54.4585C54.4585 5.27912 54.4585 5.26583 54.4651 5.25919C54.8638 4.35215 55.4452 3.62453 56.3988 3.24577C57.5085 2.8072 58.6415 2.81717 59.7844 3.05307C60.326 3.16271 60.8576 3.32883 61.3991 3.45176C61.7945 3.54147 62.0237 3.42518 62.1932 3.05639C62.3892 2.63111 62.5686 2.19919 62.748 1.76395C62.9175 1.35528 62.8178 1.06623 62.4324 0.840299C62.3361 0.783817 62.2364 0.737303 62.1334 0.697433C60.532 0.072808 58.8807 -0.159765 57.1763 0.112678C55.9768 0.305381 54.8572 0.717368 53.8903 1.46825C52.671 2.41183 51.8802 3.65776 51.4217 5.12297L51.3652 5.29241H49.6575C49.3851 5.29241 49.1658 5.5117 49.1658 5.78414V6.87723C49.1658 7.14968 49.3851 7.36896 49.6575 7.36896H51.0031C51.0031 7.66798 51.0031 7.95704 51.0031 8.25938H49.6575C49.3851 8.25938 49.1658 8.47866 49.1658 8.75111V9.8442C49.1658 10.1166 49.3851 10.3359 49.6575 10.3359H51.2789C51.4018 10.7346 51.5048 11.14 51.6609 11.522C52.4816 13.5022 53.8571 14.911 55.927 15.5821C57.6381 16.137 59.3624 16.1204 61.0868 15.6452C61.5353 15.5223 61.9805 15.3628 62.4058 15.1668C62.8178 14.9774 62.9241 14.6585 62.7613 14.2631Z", "fill", "#8C8CA1"], ["id", "clip0"], ["width", "16", "height", "16", "fill", "white"], ["id", "clip1"], ["width", "16", "height", "16", "fill", "white", "transform", "translate(24)"], ["id", "clip2"], ["width", "16", "height", "16", "fill", "white", "transform", "translate(48)"], ["d", "M38.7613 14.2631C38.5819 13.8245 38.3992 13.386 38.1998 12.954C38.0237 12.5686 37.7978 12.4557 37.3759 12.552C36.8409 12.6749 36.316 12.8377 35.7811 12.9474C34.7478 13.1634 33.7112 13.1833 32.6912 12.861C31.412 12.459 30.7309 11.532 30.3123 10.3359H33.7809C34.0534 10.3359 34.2727 10.1166 34.2727 9.8442V8.75111C34.2727 8.47866 34.0534 8.25938 33.7809 8.25938H29.98C29.98 7.95371 29.9767 7.66134 29.98 7.36896H33.7809C34.0534 7.36896 34.2727 7.14968 34.2727 6.87723V5.78414C34.2727 5.5117 34.0534 5.29241 33.7809 5.29241H30.4585C30.4585 5.27912 30.4585 5.26583 30.4651 5.25919C30.8638 4.35215 31.4452 3.62453 32.3988 3.24577C33.5085 2.8072 34.6415 2.81717 35.7844 3.05307C36.326 3.16271 36.8576 3.32883 37.3991 3.45176C37.7945 3.54147 38.0237 3.42518 38.1932 3.05639C38.3892 2.63111 38.5686 2.19919 38.748 1.76395C38.9175 1.35528 38.8178 1.06623 38.4324 0.840299C38.3361 0.783817 38.2364 0.737303 38.1334 0.697433C36.532 0.072808 34.8807 -0.159765 33.1763 0.112678C31.9768 0.305381 30.8572 0.717368 29.8903 1.46825C28.671 2.41183 27.8802 3.65776 27.4217 5.12297L27.3652 5.29241H25.6575C25.3851 5.29241 25.1658 5.5117 25.1658 5.78414V6.87723C25.1658 7.14968 25.3851 7.36896 25.6575 7.36896H27.0031C27.0031 7.66798 27.0031 7.95704 27.0031 8.25938H25.6575C25.3851 8.25938 25.1658 8.47866 25.1658 8.75111V9.8442C25.1658 10.1166 25.3851 10.3359 25.6575 10.3359H27.2789C27.4018 10.7346 27.5048 11.14 27.6609 11.522C28.4816 13.5022 29.8571 14.911 31.927 15.5821C33.6381 16.137 35.3624 16.1204 37.0868 15.6452C37.5353 15.5223 37.9805 15.3628 38.4058 15.1668C38.8178 14.9774 38.9241 14.6585 38.7613 14.2631Z"], ["d", "M62.7613 14.2631C62.5819 13.8245 62.3992 13.386 62.1998 12.954C62.0237 12.5686 61.7978 12.4557 61.3759 12.552C60.8409 12.6749 60.316 12.8377 59.7811 12.9474C58.7478 13.1634 57.7112 13.1833 56.6912 12.861C55.412 12.459 54.7309 11.532 54.3123 10.3359H57.7809C58.0534 10.3359 58.2727 10.1166 58.2727 9.8442V8.75111C58.2727 8.47866 58.0534 8.25938 57.7809 8.25938H53.98C53.98 7.95371 53.9767 7.66134 53.98 7.36896H57.7809C58.0534 7.36896 58.2727 7.14968 58.2727 6.87723V5.78414C58.2727 5.5117 58.0534 5.29241 57.7809 5.29241H54.4585C54.4585 5.27912 54.4585 5.26583 54.4651 5.25919C54.8638 4.35215 55.4452 3.62453 56.3988 3.24577C57.5085 2.8072 58.6415 2.81717 59.7844 3.05307C60.326 3.16271 60.8576 3.32883 61.3991 3.45176C61.7945 3.54147 62.0237 3.42518 62.1932 3.05639C62.3892 2.63111 62.5686 2.19919 62.748 1.76395C62.9175 1.35528 62.8178 1.06623 62.4324 0.840299C62.3361 0.783817 62.2364 0.737303 62.1334 0.697433C60.532 0.072808 58.8807 -0.159765 57.1763 0.112678C55.9768 0.305381 54.8572 0.717368 53.8903 1.46825C52.671 2.41183 51.8802 3.65776 51.4217 5.12297L51.3652 5.29241H49.6575C49.3851 5.29241 49.1658 5.5117 49.1658 5.78414V6.87723C49.1658 7.14968 49.3851 7.36896 49.6575 7.36896H51.0031C51.0031 7.66798 51.0031 7.95704 51.0031 8.25938H49.6575C49.3851 8.25938 49.1658 8.47866 49.1658 8.75111V9.8442C49.1658 10.1166 49.3851 10.3359 49.6575 10.3359H51.2789C51.4018 10.7346 51.5048 11.14 51.6609 11.522C52.4816 13.5022 53.8571 14.911 55.927 15.5821C57.6381 16.137 59.3624 16.1204 61.0868 15.6452C61.5353 15.5223 61.9805 15.3628 62.4058 15.1668C62.8178 14.9774 62.9241 14.6585 62.7613 14.2631Z"], ["viewBox", "0 0 80 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M6.5 12.0623C4.50627 11.6792 3 9.9255 3 7.82C3 5.43415 4.93413 3.5 7.32 3.5C7.7033 3.5 8.0749 3.54991 8.4287 3.6436C9.2199 2.64246 10.4449 2 11.82 2C13.2352 2 14.4914 2.68049 15.2794 3.73211C15.7186 3.58166 16.1898 3.5 16.68 3.5C19.0659 3.5 21 5.43415 21 7.82C21 9.9255 19.4937 11.6792 17.5 12.0623V20C17.5 20.5523 17.0523 21 16.5 21H7.5C6.9477 21 6.5 20.5523 6.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M6.5 15.5H17.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M10 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M17.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M6.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["opacity", "0.4"], ["d", "M34.5 12.0623C32.5063 11.6792 31 9.9255 31 7.82C31 5.43415 32.9341 3.5 35.32 3.5C35.7033 3.5 36.0749 3.54991 36.4287 3.6436C37.2199 2.64246 38.4449 2 39.82 2C41.2352 2 42.4914 2.68049 43.2794 3.73211C43.7186 3.58166 44.1898 3.5 44.68 3.5C47.0659 3.5 49 5.43415 49 7.82C49 9.9255 47.4937 11.6792 45.5 12.0623V20C45.5 20.5523 45.0523 21 44.5 21H35.5C34.9477 21 34.5 20.5523 34.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M34.5 15.5H45.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M38 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M45.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M34.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 12.0623C60.5063 11.6792 59 9.9255 59 7.82C59 5.43415 60.9341 3.5 63.32 3.5C63.7033 3.5 64.0749 3.54991 64.4287 3.6436C65.2199 2.64246 66.4449 2 67.82 2C69.2352 2 70.4914 2.68049 71.2794 3.73211C71.7186 3.58166 72.1898 3.5 72.68 3.5C75.0659 3.5 77 5.43415 77 7.82C77 9.9255 75.4937 11.6792 73.5 12.0623V20C73.5 20.5523 73.0523 21 72.5 21H63.5C62.9477 21 62.5 20.5523 62.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 15.5H73.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M66 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M73.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["viewBox", "0 0 12 20", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M4.33333 3.6C4.33333 4.48366 3.58714 5.2 2.66667 5.2C1.74619 5.2 1 4.48366 1 3.6C1 2.71634 1.74619 2 2.66667 2C3.58714 2 4.33333 2.71634 4.33333 3.6Z"], ["d", "M4.33333 10C4.33333 10.8837 3.58714 11.6 2.66667 11.6C1.74619 11.6 1 10.8837 1 10C1 9.11634 1.74619 8.4 2.66667 8.4C3.58714 8.4 4.33333 9.11634 4.33333 10Z"], ["d", "M4.33333 16.4C4.33333 17.2837 3.58714 18 2.66667 18C1.74619 18 1 17.2837 1 16.4C1 15.5163 1.74619 14.8 2.66667 14.8C3.58714 14.8 4.33333 15.5163 4.33333 16.4Z"], ["d", "M11 3.6C11 4.48366 10.2538 5.2 9.33333 5.2C8.41286 5.2 7.66667 4.48366 7.66667 3.6C7.66667 2.71634 8.41286 2 9.33333 2C10.2538 2 11 2.71634 11 3.6Z"], ["d", "M11 10C11 10.8837 10.2538 11.6 9.33333 11.6C8.41286 11.6 7.66667 10.8837 7.66667 10C7.66667 9.11634 8.41286 8.4 9.33333 8.4C10.2538 8.4 11 9.11634 11 10Z"], ["d", "M11 16.4C11 17.2837 10.2538 18 9.33333 18C8.41286 18 7.66667 17.2837 7.66667 16.4C7.66667 15.5163 8.41286 14.8 9.33333 14.8C10.2538 14.8 11 15.5163 11 16.4Z"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 24 24"], ["d", "M0 0h24v24H0V0z", "fill", "none"], ["d", "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"], ["viewBox", "0 0 16 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-arrow-down"], ["fill-rule", "evenodd", "d", "M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 16 16"], ["d", "M12.5 13c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5.672-1.5 1.5-1.5zm-9 0c.828 0 1.5.672 1.5 1.5S4.328 16 3.5 16 2 15.328 2 14.5 2.672 13 3.5 13zM3 0l.591 2H15c.623 0 1.095.564.984 1.177C15.27 7.14 14.526 9 13 9H4.42c-.377.391-.67.729-.876 1H13c.552 0 1 .448 1 1s-.448 1-1 1H3c-1.28 0-2.11-.83-1.699-2.066.218-.654.813-1.44 1.807-2.454L1.433 2H0V0h3zm10.786 4H4.182l.887 3h7.737c.09-.124.2-.333.315-.621.224-.56.447-1.355.665-2.379z"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/People_grey06.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_danger.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_grey05.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_greyText.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_greyTextDark.svg", 1, "icon-container__icon", 3, "ngStyle"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M12.8889 4.88889C12.8889 4.39797 12.4909 4 12 4C11.5091 4 11.1111 4.39797 11.1111 4.88889V11.1111H4.88889C4.39797 11.1111 4 11.5091 4 12C4 12.4909 4.39797 12.8889 4.88889 12.8889H11.1111V19.1111C11.1111 19.602 11.5091 20 12 20C12.4909 20 12.8889 19.602 12.8889 19.1111V12.8889H19.1111C19.602 12.8889 20 12.4909 20 12C20 11.5091 19.602 11.1111 19.1111 11.1111H12.8889V4.88889Z"], ["d", "M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"], ["d", "M0 0h24v24H0z", "fill", "none"], ["d", "M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z"], ["d", "M4.41768 3.64119C4.18693 3.41025 3.81256 3.41025 3.58181 3.64119C2.72506 4.49794 2.30397 5.69144 2.42634 6.91587C2.45687 7.22091 2.71384 7.44828 3.01393 7.44828C3.03365 7.44828 3.05353 7.44728 3.07325 7.44531C3.39818 7.41281 3.63522 7.12294 3.60272 6.79822C3.51562 5.92806 3.81278 5.08197 4.41768 4.47703C4.64862 4.24631 4.64862 3.87191 4.41768 3.64119Z"], ["d", "M6.75863 0C3.03191 0 0 3.03191 0 6.75863C0 10.4853 3.03191 13.5173 6.75863 13.5173C10.4853 13.5173 13.5173 10.4853 13.5173 6.75863C13.5173 3.03191 10.4853 0 6.75863 0ZM6.75863 12.335C3.68375 12.335 1.18228 9.8335 1.18228 6.75863C1.18228 3.68375 3.68375 1.18228 6.75863 1.18228C9.83331 1.18228 12.335 3.68375 12.335 6.75863C12.335 9.8335 9.8335 12.335 6.75863 12.335Z"], ["d", "M15.8268 14.9909L11.5312 10.6954C11.3002 10.4644 10.9262 10.4644 10.6953 10.6954C10.4644 10.9261 10.4644 11.3005 10.6953 11.5312L14.9909 15.8268C15.1064 15.9423 15.2575 16 15.4088 16C15.5602 16 15.7113 15.9423 15.8268 15.8268C16.0577 15.5961 16.0577 15.2217 15.8268 14.9909Z"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/RecipeBook.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Meal.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Meal_grey06.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/HorizontalDots.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NoRecipeFound.svg", 1, "icon-container__icon", 3, "ngStyle"], ["d", "M15.0661 1.80645H13.0835C12.9121 0.772355 12.0038 -0.0160968 10.9185 0.000258065C9.73275 0.0180968 8.79029 1.00616 8.79029 2.19203V10.2383C8.79029 10.3707 8.73991 10.4986 8.64797 10.5939C8.06733 11.1957 7.74639 11.9984 7.75836 12.8526C7.78297 14.6074 9.24191 16.0241 10.9967 15.9997C13.7939 15.9608 15.1739 12.5853 13.2567 10.5954C13.1643 10.4995 13.1129 10.3715 13.1129 10.2383V9.29032H13.7758C14.0538 9.29032 14.2929 9.07658 14.3058 8.7989C14.3196 8.50248 14.0836 8.25806 13.7903 8.25806H13.1129V6.06452H14.421C14.699 6.06452 14.9381 5.85077 14.951 5.5731C14.9648 5.27668 14.7288 5.03226 14.4355 5.03226H13.1129V2.83871H15.0806C15.374 2.83871 15.61 2.59429 15.5962 2.29787C15.5832 2.02019 15.3441 1.80645 15.0661 1.80645ZM10.8655 13.997C9.78113 13.9205 9.35033 12.5256 10.2305 11.856C10.3592 11.758 10.4355 11.6063 10.4355 11.4445V5.27255C10.4355 4.99455 10.6492 4.75542 10.9269 4.74252C11.2233 4.72871 11.4677 4.96474 11.4677 5.25806V11.438C11.4677 11.6001 11.5402 11.7558 11.6695 11.8536C12.6164 12.569 12.0469 14.0803 10.8655 13.997ZM1.82255 2.83871C1.03991 2.83871 0.403198 2.202 0.403198 1.41935C0.403198 0.63671 1.03991 0 1.82255 0C2.6052 0 3.24191 0.63671 3.24191 1.41935C3.24191 2.202 2.6052 2.83871 1.82255 2.83871ZM1.82255 1.03226C1.6091 1.03226 1.43546 1.2059 1.43546 1.41935C1.43546 1.63281 1.6091 1.80645 1.82255 1.80645C2.036 1.80645 2.20965 1.63281 2.20965 1.41935C2.20965 1.2059 2.036 1.03226 1.82255 1.03226ZM5.41933 7.16129C4.20091 7.16129 3.20965 6.17003 3.20965 4.95161V3.43548C3.20965 2.21706 4.20088 1.22581 5.41933 1.22581C6.08117 1.22581 6.70255 1.51881 7.12423 2.02971C7.30568 2.24955 7.27455 2.57484 7.05471 2.75629C6.83491 2.93774 6.50959 2.90661 6.32813 2.68677C5.62807 1.83855 4.24191 2.33361 4.24191 3.43548V4.95161C4.24191 6.05432 5.62884 6.54794 6.32813 5.70026C6.50959 5.48039 6.83488 5.44919 7.05471 5.63061C7.27459 5.81203 7.30578 6.13732 7.12436 6.35719C6.70278 6.86819 6.0813 7.16129 5.41933 7.16129Z"], ["width", "16", "height", "16", "fill", "none"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Empty.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Starter.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotStarter.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Dessert.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotDessert.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/MainDish.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotMainDish.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Edit.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/CirclePlus.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ListScanner.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/CartPlus.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_neutralBlack.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Upload.svg", 1, "icon-container__icon", 3, "ngStyle"], ["viewBox", "0 0 18 18", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M16.244 6.79981L9.35632 2.34044C9.26608 2.28143 9.1606 2.25 9.05278 2.25C8.94496 2.25 8.83948 2.28143 8.74924 2.34044L6.14856 4.03425V3.22482C6.14856 3.07574 6.08934 2.93276 5.98393 2.82735C5.87851 2.72193 5.73554 2.66271 5.58646 2.66271H3.33803C3.18956 2.66465 3.04771 2.7245 2.94271 2.82949C2.83771 2.93449 2.77787 3.07634 2.77593 3.22482V6.22272L1.76414 6.90474C1.66004 6.96876 1.58001 7.06536 1.53646 7.17954C1.49292 7.29373 1.48831 7.4191 1.52334 7.53617C1.55838 7.65324 1.6311 7.75547 1.73021 7.82696C1.82932 7.89845 1.94927 7.93521 2.07142 7.93152C2.18072 7.93429 2.28815 7.90285 2.37871 7.84158L2.78342 7.57927V15.5537C2.78536 15.7022 2.84521 15.844 2.95021 15.949C3.0552 16.054 3.19705 16.1138 3.34553 16.1158H14.6626C14.8111 16.1138 14.9529 16.054 15.0579 15.949C15.1629 15.844 15.2228 15.7022 15.2247 15.5537V7.49682L15.6294 7.75914C15.6914 7.79949 15.7608 7.82724 15.8335 7.84079C15.9062 7.85434 15.9809 7.85344 16.0533 7.83813C16.1257 7.82282 16.1943 7.7934 16.2553 7.75155C16.3164 7.70971 16.3685 7.65626 16.4089 7.59425C16.4492 7.53225 16.477 7.4629 16.4905 7.39017C16.5041 7.31744 16.5032 7.24276 16.4879 7.17038C16.4726 7.098 16.4431 7.02935 16.4013 6.96834C16.3594 6.90732 16.306 6.85515 16.244 6.8148V6.79981ZM3.90763 3.78692H5.02435V4.76873L3.90763 5.51821V3.78692ZM10.0683 15.029H7.93981V12.4134H10.0683V15.029ZM14.1005 6.86726V14.9916H11.1925V11.8513C11.1925 11.7022 11.1333 11.5592 11.0279 11.4538C10.9225 11.3484 10.7795 11.2892 10.6304 11.2892H7.3777C7.22862 11.2892 7.08565 11.3484 6.98023 11.4538C6.87482 11.5592 6.8156 11.7022 6.8156 11.8513V14.9916H3.90763V6.84478L5.79631 5.61564C5.87449 5.5885 5.94602 5.54508 6.00616 5.48823L9.07152 3.47964L14.123 6.74735C14.1108 6.78631 14.1033 6.82655 14.1005 6.86726Z"], ["viewBox", "0 0 18 19", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M5.52217 3.5C4.46029 3.5 3.56734 4.28583 3.29895 5.33963H2.10141C1.94183 5.33891 1.78853 5.40683 1.6756 5.52804C1.56279 5.64939 1.49971 5.81396 1.50024 5.98542C1.50091 6.15617 1.56453 6.31945 1.67734 6.43964C1.79001 6.55984 1.94264 6.62705 2.10144 6.62633H3.29672C3.56323 7.68299 4.4583 8.47228 5.5222 8.47228C6.57538 8.47228 7.463 7.69836 7.73953 6.6578L15.9024 6.62635C16.0614 6.62606 16.2133 6.55785 16.3254 6.43707C16.4374 6.31615 16.5003 6.1523 16.5 5.98168C16.4996 5.8115 16.4366 5.64836 16.3246 5.52801C16.2125 5.40767 16.0608 5.33988 15.9023 5.3396L7.75581 5.37105C7.49785 4.30104 6.59486 3.5 5.52217 3.5ZM5.52217 4.78673C6.14605 4.78673 6.639 5.31521 6.639 5.98542C6.639 6.65577 6.14609 7.18543 5.52217 7.18543C4.89825 7.18543 4.40657 6.65581 4.40657 5.98542C4.40657 5.31503 4.89828 4.78673 5.52217 4.78673ZM10.1544 10.4675C9.07485 10.4675 8.1664 11.2673 7.89842 12.3397H2.10117C1.94212 12.3392 1.78935 12.4065 1.67669 12.5269C1.56389 12.6473 1.5004 12.8111 1.5 12.982C1.49973 13.1531 1.56295 13.3176 1.67589 13.4385C1.78869 13.5596 1.94173 13.6272 2.10119 13.6265H7.89947C8.16824 14.6987 9.07562 15.5 10.1542 15.5C11.2328 15.5 12.1402 14.6987 12.4089 13.6265H15.902C16.0609 13.6262 16.213 13.5581 16.3251 13.4372C16.4371 13.3163 16.4999 13.1526 16.4997 12.982C16.4993 12.8118 16.4363 12.6486 16.3243 12.5283C16.2122 12.4079 16.0605 12.3402 15.902 12.3397H12.4099C12.142 11.2673 11.2339 10.4675 10.1544 10.4675ZM10.1544 11.7542C10.7943 11.7542 11.3005 12.2943 11.3005 12.982C11.3005 13.6696 10.7943 14.2134 10.1544 14.2134C9.51445 14.2134 9.0083 13.6696 9.0083 12.982C9.0083 12.2944 9.51445 11.7542 10.1544 11.7542Z"]], template: function IconComponent_Template(rf, ctx) {
6718
+ IconComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: IconComponent, selectors: [["ng-miam-icon"]], inputs: { primaryColor: "primaryColor", secondaryColor: "secondaryColor", width: "width", height: "height", iconName: "iconName" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "icon-container", 3, "ngStyle", 4, "ngIf", "ngIfElse"], ["switchIcon", ""], [1, "icon-container", 3, "ngStyle"], [1, "icon-container__icon", 3, "src", "ngStyle"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Checkmark.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Alert_danger.svg", 1, "icon-container__icon", 3, "ngStyle"], ["viewBox", "0 0 16 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M12.5018 13.821H9.91582H9.21945H9.06906V10.3523H10.2035C10.4912 10.3523 10.6612 10.0253 10.4912 9.78995L8.28443 6.73642C8.14385 6.54026 7.85288 6.54026 7.7123 6.73642L5.50552 9.78995C5.33551 10.0253 5.50225 10.3523 5.79322 10.3523H6.92767V13.821H6.77728H6.08092H3.08296C1.36657 13.7262 0 12.121 0 10.3817C0 9.18186 0.650593 8.13568 1.61504 7.57009C1.52677 7.33143 1.481 7.07643 1.481 6.80834C1.481 5.58235 2.4716 4.59175 3.69759 4.59175C3.9624 4.59175 4.21741 4.63752 4.45607 4.72579C5.16551 3.22191 6.69555 2.179 8.47405 2.179C10.7756 2.18227 12.6718 3.94443 12.8876 6.19044C14.6563 6.49449 16 8.13241 16 9.98611C16 11.9673 14.4569 13.6837 12.5018 13.821Z"], ["viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M12.5 22C16.9183 22 20.5 18.4183 20.5 14C20.5 9.58172 16.9183 6 12.5 6C8.08172 6 4.5 9.58172 4.5 14C4.5 18.4183 8.08172 22 12.5 22Z", "stroke-width", "2"], ["d", "M14.5 2H10.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 2V6", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M18 8L19.5 6.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 14V11", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 14H9.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["viewBox", "0 0 16 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-x"], ["fill-rule", "evenodd", "d", "M11.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z"], ["fill-rule", "evenodd", "d", "M4.146 4.146a.5.5 0 0 0 0 .708l7 7a.5.5 0 0 0 .708-.708l-7-7a.5.5 0 0 0-.708 0z"], ["viewBox", "0 0 17 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-image"], ["fill-rule", "evenodd", "d", "M14.002 2h-12a1 1 0 0 0-1 1v9l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094L15.002 9.5V3a1 1 0 0 0-1-1zm-12-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm4 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"], ["viewBox", "0 0 64 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["clip-path", "url(#clip0)"], ["d", "M14.7613 14.2631C14.5819 13.8245 14.3992 13.386 14.1998 12.954C14.0237 12.5686 13.7978 12.4557 13.3759 12.552C12.8409 12.6749 12.316 12.8377 11.7811 12.9474C10.7478 13.1634 9.71117 13.1833 8.69117 12.861C7.41202 12.459 6.73091 11.532 6.31228 10.3359H9.78094C10.0534 10.3359 10.2727 10.1166 10.2727 9.8442V8.75111C10.2727 8.47866 10.0534 8.25938 9.78094 8.25938H5.98003C5.98003 7.95371 5.97671 7.66134 5.98003 7.36896H9.78094C10.0534 7.36896 10.2727 7.14968 10.2727 6.87723V5.78414C10.2727 5.5117 10.0534 5.29241 9.78094 5.29241H6.45847C6.45847 5.27912 6.45847 5.26583 6.46512 5.25919C6.86381 4.35215 7.44524 3.62453 8.39879 3.24577C9.5085 2.8072 10.6415 2.81717 11.7844 3.05307C12.326 3.16271 12.8576 3.32883 13.3991 3.45176C13.7945 3.54147 14.0237 3.42518 14.1932 3.05639C14.3892 2.63111 14.5686 2.19919 14.748 1.76395C14.9175 1.35528 14.8178 1.06623 14.4324 0.840299C14.3361 0.783817 14.2364 0.737303 14.1334 0.697433C12.532 0.072808 10.8807 -0.159765 9.17625 0.112678C7.97684 0.305381 6.85717 0.717368 5.89033 1.46825C4.67098 2.41183 3.88023 3.65776 3.42173 5.12297L3.36525 5.29241H1.6575C1.38505 5.29241 1.16577 5.5117 1.16577 5.78414V6.87723C1.16577 7.14968 1.38505 7.36896 1.6575 7.36896H3.0031C3.0031 7.66798 3.0031 7.95704 3.0031 8.25938H1.6575C1.38505 8.25938 1.16577 8.47866 1.16577 8.75111V9.8442C1.16577 10.1166 1.38505 10.3359 1.6575 10.3359H3.27886C3.4018 10.7346 3.50479 11.14 3.66095 11.522C4.4816 13.5022 5.8571 14.911 7.927 15.5821C9.63808 16.137 11.3624 16.1204 13.0868 15.6452C13.5353 15.5223 13.9805 15.3628 14.4058 15.1668C14.8178 14.9774 14.9241 14.6585 14.7613 14.2631Z"], ["clip-path", "url(#clip1)"], ["d", "M38.7613 14.2631C38.5819 13.8245 38.3992 13.386 38.1998 12.954C38.0237 12.5686 37.7978 12.4557 37.3759 12.552C36.8409 12.6749 36.316 12.8377 35.7811 12.9474C34.7478 13.1634 33.7112 13.1833 32.6912 12.861C31.412 12.459 30.7309 11.532 30.3123 10.3359H33.7809C34.0534 10.3359 34.2727 10.1166 34.2727 9.8442V8.75111C34.2727 8.47866 34.0534 8.25938 33.7809 8.25938H29.98C29.98 7.95371 29.9767 7.66134 29.98 7.36896H33.7809C34.0534 7.36896 34.2727 7.14968 34.2727 6.87723V5.78414C34.2727 5.5117 34.0534 5.29241 33.7809 5.29241H30.4585C30.4585 5.27912 30.4585 5.26583 30.4651 5.25919C30.8638 4.35215 31.4452 3.62453 32.3988 3.24577C33.5085 2.8072 34.6415 2.81717 35.7844 3.05307C36.326 3.16271 36.8576 3.32883 37.3991 3.45176C37.7945 3.54147 38.0237 3.42518 38.1932 3.05639C38.3892 2.63111 38.5686 2.19919 38.748 1.76395C38.9175 1.35528 38.8178 1.06623 38.4324 0.840299C38.3361 0.783817 38.2364 0.737303 38.1334 0.697433C36.532 0.072808 34.8807 -0.159765 33.1763 0.112678C31.9768 0.305381 30.8572 0.717368 29.8903 1.46825C28.671 2.41183 27.8802 3.65776 27.4217 5.12297L27.3652 5.29241H25.6575C25.3851 5.29241 25.1658 5.5117 25.1658 5.78414V6.87723C25.1658 7.14968 25.3851 7.36896 25.6575 7.36896H27.0031C27.0031 7.66798 27.0031 7.95704 27.0031 8.25938H25.6575C25.3851 8.25938 25.1658 8.47866 25.1658 8.75111V9.8442C25.1658 10.1166 25.3851 10.3359 25.6575 10.3359H27.2789C27.4018 10.7346 27.5048 11.14 27.6609 11.522C28.4816 13.5022 29.8571 14.911 31.927 15.5821C33.6381 16.137 35.3624 16.1204 37.0868 15.6452C37.5353 15.5223 37.9805 15.3628 38.4058 15.1668C38.8178 14.9774 38.9241 14.6585 38.7613 14.2631Z", "fill", "#8C8CA1"], ["clip-path", "url(#clip2)"], ["d", "M62.7613 14.2631C62.5819 13.8245 62.3992 13.386 62.1998 12.954C62.0237 12.5686 61.7978 12.4557 61.3759 12.552C60.8409 12.6749 60.316 12.8377 59.7811 12.9474C58.7478 13.1634 57.7112 13.1833 56.6912 12.861C55.412 12.459 54.7309 11.532 54.3123 10.3359H57.7809C58.0534 10.3359 58.2727 10.1166 58.2727 9.8442V8.75111C58.2727 8.47866 58.0534 8.25938 57.7809 8.25938H53.98C53.98 7.95371 53.9767 7.66134 53.98 7.36896H57.7809C58.0534 7.36896 58.2727 7.14968 58.2727 6.87723V5.78414C58.2727 5.5117 58.0534 5.29241 57.7809 5.29241H54.4585C54.4585 5.27912 54.4585 5.26583 54.4651 5.25919C54.8638 4.35215 55.4452 3.62453 56.3988 3.24577C57.5085 2.8072 58.6415 2.81717 59.7844 3.05307C60.326 3.16271 60.8576 3.32883 61.3991 3.45176C61.7945 3.54147 62.0237 3.42518 62.1932 3.05639C62.3892 2.63111 62.5686 2.19919 62.748 1.76395C62.9175 1.35528 62.8178 1.06623 62.4324 0.840299C62.3361 0.783817 62.2364 0.737303 62.1334 0.697433C60.532 0.072808 58.8807 -0.159765 57.1763 0.112678C55.9768 0.305381 54.8572 0.717368 53.8903 1.46825C52.671 2.41183 51.8802 3.65776 51.4217 5.12297L51.3652 5.29241H49.6575C49.3851 5.29241 49.1658 5.5117 49.1658 5.78414V6.87723C49.1658 7.14968 49.3851 7.36896 49.6575 7.36896H51.0031C51.0031 7.66798 51.0031 7.95704 51.0031 8.25938H49.6575C49.3851 8.25938 49.1658 8.47866 49.1658 8.75111V9.8442C49.1658 10.1166 49.3851 10.3359 49.6575 10.3359H51.2789C51.4018 10.7346 51.5048 11.14 51.6609 11.522C52.4816 13.5022 53.8571 14.911 55.927 15.5821C57.6381 16.137 59.3624 16.1204 61.0868 15.6452C61.5353 15.5223 61.9805 15.3628 62.4058 15.1668C62.8178 14.9774 62.9241 14.6585 62.7613 14.2631Z", "fill", "#8C8CA1"], ["id", "clip0"], ["width", "16", "height", "16", "fill", "white"], ["id", "clip1"], ["width", "16", "height", "16", "fill", "white", "transform", "translate(24)"], ["id", "clip2"], ["width", "16", "height", "16", "fill", "white", "transform", "translate(48)"], ["d", "M38.7613 14.2631C38.5819 13.8245 38.3992 13.386 38.1998 12.954C38.0237 12.5686 37.7978 12.4557 37.3759 12.552C36.8409 12.6749 36.316 12.8377 35.7811 12.9474C34.7478 13.1634 33.7112 13.1833 32.6912 12.861C31.412 12.459 30.7309 11.532 30.3123 10.3359H33.7809C34.0534 10.3359 34.2727 10.1166 34.2727 9.8442V8.75111C34.2727 8.47866 34.0534 8.25938 33.7809 8.25938H29.98C29.98 7.95371 29.9767 7.66134 29.98 7.36896H33.7809C34.0534 7.36896 34.2727 7.14968 34.2727 6.87723V5.78414C34.2727 5.5117 34.0534 5.29241 33.7809 5.29241H30.4585C30.4585 5.27912 30.4585 5.26583 30.4651 5.25919C30.8638 4.35215 31.4452 3.62453 32.3988 3.24577C33.5085 2.8072 34.6415 2.81717 35.7844 3.05307C36.326 3.16271 36.8576 3.32883 37.3991 3.45176C37.7945 3.54147 38.0237 3.42518 38.1932 3.05639C38.3892 2.63111 38.5686 2.19919 38.748 1.76395C38.9175 1.35528 38.8178 1.06623 38.4324 0.840299C38.3361 0.783817 38.2364 0.737303 38.1334 0.697433C36.532 0.072808 34.8807 -0.159765 33.1763 0.112678C31.9768 0.305381 30.8572 0.717368 29.8903 1.46825C28.671 2.41183 27.8802 3.65776 27.4217 5.12297L27.3652 5.29241H25.6575C25.3851 5.29241 25.1658 5.5117 25.1658 5.78414V6.87723C25.1658 7.14968 25.3851 7.36896 25.6575 7.36896H27.0031C27.0031 7.66798 27.0031 7.95704 27.0031 8.25938H25.6575C25.3851 8.25938 25.1658 8.47866 25.1658 8.75111V9.8442C25.1658 10.1166 25.3851 10.3359 25.6575 10.3359H27.2789C27.4018 10.7346 27.5048 11.14 27.6609 11.522C28.4816 13.5022 29.8571 14.911 31.927 15.5821C33.6381 16.137 35.3624 16.1204 37.0868 15.6452C37.5353 15.5223 37.9805 15.3628 38.4058 15.1668C38.8178 14.9774 38.9241 14.6585 38.7613 14.2631Z"], ["d", "M62.7613 14.2631C62.5819 13.8245 62.3992 13.386 62.1998 12.954C62.0237 12.5686 61.7978 12.4557 61.3759 12.552C60.8409 12.6749 60.316 12.8377 59.7811 12.9474C58.7478 13.1634 57.7112 13.1833 56.6912 12.861C55.412 12.459 54.7309 11.532 54.3123 10.3359H57.7809C58.0534 10.3359 58.2727 10.1166 58.2727 9.8442V8.75111C58.2727 8.47866 58.0534 8.25938 57.7809 8.25938H53.98C53.98 7.95371 53.9767 7.66134 53.98 7.36896H57.7809C58.0534 7.36896 58.2727 7.14968 58.2727 6.87723V5.78414C58.2727 5.5117 58.0534 5.29241 57.7809 5.29241H54.4585C54.4585 5.27912 54.4585 5.26583 54.4651 5.25919C54.8638 4.35215 55.4452 3.62453 56.3988 3.24577C57.5085 2.8072 58.6415 2.81717 59.7844 3.05307C60.326 3.16271 60.8576 3.32883 61.3991 3.45176C61.7945 3.54147 62.0237 3.42518 62.1932 3.05639C62.3892 2.63111 62.5686 2.19919 62.748 1.76395C62.9175 1.35528 62.8178 1.06623 62.4324 0.840299C62.3361 0.783817 62.2364 0.737303 62.1334 0.697433C60.532 0.072808 58.8807 -0.159765 57.1763 0.112678C55.9768 0.305381 54.8572 0.717368 53.8903 1.46825C52.671 2.41183 51.8802 3.65776 51.4217 5.12297L51.3652 5.29241H49.6575C49.3851 5.29241 49.1658 5.5117 49.1658 5.78414V6.87723C49.1658 7.14968 49.3851 7.36896 49.6575 7.36896H51.0031C51.0031 7.66798 51.0031 7.95704 51.0031 8.25938H49.6575C49.3851 8.25938 49.1658 8.47866 49.1658 8.75111V9.8442C49.1658 10.1166 49.3851 10.3359 49.6575 10.3359H51.2789C51.4018 10.7346 51.5048 11.14 51.6609 11.522C52.4816 13.5022 53.8571 14.911 55.927 15.5821C57.6381 16.137 59.3624 16.1204 61.0868 15.6452C61.5353 15.5223 61.9805 15.3628 62.4058 15.1668C62.8178 14.9774 62.9241 14.6585 62.7613 14.2631Z"], ["viewBox", "0 0 80 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M6.5 12.0623C4.50627 11.6792 3 9.9255 3 7.82C3 5.43415 4.93413 3.5 7.32 3.5C7.7033 3.5 8.0749 3.54991 8.4287 3.6436C9.2199 2.64246 10.4449 2 11.82 2C13.2352 2 14.4914 2.68049 15.2794 3.73211C15.7186 3.58166 16.1898 3.5 16.68 3.5C19.0659 3.5 21 5.43415 21 7.82C21 9.9255 19.4937 11.6792 17.5 12.0623V20C17.5 20.5523 17.0523 21 16.5 21H7.5C6.9477 21 6.5 20.5523 6.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M6.5 15.5H17.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M10 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M17.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M6.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["opacity", "0.4"], ["d", "M34.5 12.0623C32.5063 11.6792 31 9.9255 31 7.82C31 5.43415 32.9341 3.5 35.32 3.5C35.7033 3.5 36.0749 3.54991 36.4287 3.6436C37.2199 2.64246 38.4449 2 39.82 2C41.2352 2 42.4914 2.68049 43.2794 3.73211C43.7186 3.58166 44.1898 3.5 44.68 3.5C47.0659 3.5 49 5.43415 49 7.82C49 9.9255 47.4937 11.6792 45.5 12.0623V20C45.5 20.5523 45.0523 21 44.5 21H35.5C34.9477 21 34.5 20.5523 34.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M34.5 15.5H45.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M38 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M45.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M34.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 12.0623C60.5063 11.6792 59 9.9255 59 7.82C59 5.43415 60.9341 3.5 63.32 3.5C63.7033 3.5 64.0749 3.54991 64.4287 3.6436C65.2199 2.64246 66.4449 2 67.82 2C69.2352 2 70.4914 2.68049 71.2794 3.73211C71.7186 3.58166 72.1898 3.5 72.68 3.5C75.0659 3.5 77 5.43415 77 7.82C77 9.9255 75.4937 11.6792 73.5 12.0623V20C73.5 20.5523 73.0523 21 72.5 21H63.5C62.9477 21 62.5 20.5523 62.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 15.5H73.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M66 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M73.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["viewBox", "0 0 12 20", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M4.33333 3.6C4.33333 4.48366 3.58714 5.2 2.66667 5.2C1.74619 5.2 1 4.48366 1 3.6C1 2.71634 1.74619 2 2.66667 2C3.58714 2 4.33333 2.71634 4.33333 3.6Z"], ["d", "M4.33333 10C4.33333 10.8837 3.58714 11.6 2.66667 11.6C1.74619 11.6 1 10.8837 1 10C1 9.11634 1.74619 8.4 2.66667 8.4C3.58714 8.4 4.33333 9.11634 4.33333 10Z"], ["d", "M4.33333 16.4C4.33333 17.2837 3.58714 18 2.66667 18C1.74619 18 1 17.2837 1 16.4C1 15.5163 1.74619 14.8 2.66667 14.8C3.58714 14.8 4.33333 15.5163 4.33333 16.4Z"], ["d", "M11 3.6C11 4.48366 10.2538 5.2 9.33333 5.2C8.41286 5.2 7.66667 4.48366 7.66667 3.6C7.66667 2.71634 8.41286 2 9.33333 2C10.2538 2 11 2.71634 11 3.6Z"], ["d", "M11 10C11 10.8837 10.2538 11.6 9.33333 11.6C8.41286 11.6 7.66667 10.8837 7.66667 10C7.66667 9.11634 8.41286 8.4 9.33333 8.4C10.2538 8.4 11 9.11634 11 10Z"], ["d", "M11 16.4C11 17.2837 10.2538 18 9.33333 18C8.41286 18 7.66667 17.2837 7.66667 16.4C7.66667 15.5163 8.41286 14.8 9.33333 14.8C10.2538 14.8 11 15.5163 11 16.4Z"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 24 24"], ["d", "M0 0h24v24H0V0z", "fill", "none"], ["d", "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"], ["viewBox", "0 0 16 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-arrow-down"], ["fill-rule", "evenodd", "d", "M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 16 16"], ["d", "M12.5 13c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5.672-1.5 1.5-1.5zm-9 0c.828 0 1.5.672 1.5 1.5S4.328 16 3.5 16 2 15.328 2 14.5 2.672 13 3.5 13zM3 0l.591 2H15c.623 0 1.095.564.984 1.177C15.27 7.14 14.526 9 13 9H4.42c-.377.391-.67.729-.876 1H13c.552 0 1 .448 1 1s-.448 1-1 1H3c-1.28 0-2.11-.83-1.699-2.066.218-.654.813-1.44 1.807-2.454L1.433 2H0V0h3zm10.786 4H4.182l.887 3h7.737c.09-.124.2-.333.315-.621.224-.56.447-1.355.665-2.379z"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/People_grey06.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_danger.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_grey05.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_greyText.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_greyTextDark.svg", 1, "icon-container__icon", 3, "ngStyle"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M12.8889 4.88889C12.8889 4.39797 12.4909 4 12 4C11.5091 4 11.1111 4.39797 11.1111 4.88889V11.1111H4.88889C4.39797 11.1111 4 11.5091 4 12C4 12.4909 4.39797 12.8889 4.88889 12.8889H11.1111V19.1111C11.1111 19.602 11.5091 20 12 20C12.4909 20 12.8889 19.602 12.8889 19.1111V12.8889H19.1111C19.602 12.8889 20 12.4909 20 12C20 11.5091 19.602 11.1111 19.1111 11.1111H12.8889V4.88889Z"], ["d", "M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"], ["d", "M0 0h24v24H0z", "fill", "none"], ["d", "M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z"], ["d", "M4.41768 3.64119C4.18693 3.41025 3.81256 3.41025 3.58181 3.64119C2.72506 4.49794 2.30397 5.69144 2.42634 6.91587C2.45687 7.22091 2.71384 7.44828 3.01393 7.44828C3.03365 7.44828 3.05353 7.44728 3.07325 7.44531C3.39818 7.41281 3.63522 7.12294 3.60272 6.79822C3.51562 5.92806 3.81278 5.08197 4.41768 4.47703C4.64862 4.24631 4.64862 3.87191 4.41768 3.64119Z"], ["d", "M6.75863 0C3.03191 0 0 3.03191 0 6.75863C0 10.4853 3.03191 13.5173 6.75863 13.5173C10.4853 13.5173 13.5173 10.4853 13.5173 6.75863C13.5173 3.03191 10.4853 0 6.75863 0ZM6.75863 12.335C3.68375 12.335 1.18228 9.8335 1.18228 6.75863C1.18228 3.68375 3.68375 1.18228 6.75863 1.18228C9.83331 1.18228 12.335 3.68375 12.335 6.75863C12.335 9.8335 9.8335 12.335 6.75863 12.335Z"], ["d", "M15.8268 14.9909L11.5312 10.6954C11.3002 10.4644 10.9262 10.4644 10.6953 10.6954C10.4644 10.9261 10.4644 11.3005 10.6953 11.5312L14.9909 15.8268C15.1064 15.9423 15.2575 16 15.4088 16C15.5602 16 15.7113 15.9423 15.8268 15.8268C16.0577 15.5961 16.0577 15.2217 15.8268 14.9909Z"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/RecipeBook.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Meal.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Meal_grey06.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/HorizontalDots.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NoRecipeFound.svg", 1, "icon-container__icon", 3, "ngStyle"], ["d", "M15.0661 1.80645H13.0835C12.9121 0.772355 12.0038 -0.0160968 10.9185 0.000258065C9.73275 0.0180968 8.79029 1.00616 8.79029 2.19203V10.2383C8.79029 10.3707 8.73991 10.4986 8.64797 10.5939C8.06733 11.1957 7.74639 11.9984 7.75836 12.8526C7.78297 14.6074 9.24191 16.0241 10.9967 15.9997C13.7939 15.9608 15.1739 12.5853 13.2567 10.5954C13.1643 10.4995 13.1129 10.3715 13.1129 10.2383V9.29032H13.7758C14.0538 9.29032 14.2929 9.07658 14.3058 8.7989C14.3196 8.50248 14.0836 8.25806 13.7903 8.25806H13.1129V6.06452H14.421C14.699 6.06452 14.9381 5.85077 14.951 5.5731C14.9648 5.27668 14.7288 5.03226 14.4355 5.03226H13.1129V2.83871H15.0806C15.374 2.83871 15.61 2.59429 15.5962 2.29787C15.5832 2.02019 15.3441 1.80645 15.0661 1.80645ZM10.8655 13.997C9.78113 13.9205 9.35033 12.5256 10.2305 11.856C10.3592 11.758 10.4355 11.6063 10.4355 11.4445V5.27255C10.4355 4.99455 10.6492 4.75542 10.9269 4.74252C11.2233 4.72871 11.4677 4.96474 11.4677 5.25806V11.438C11.4677 11.6001 11.5402 11.7558 11.6695 11.8536C12.6164 12.569 12.0469 14.0803 10.8655 13.997ZM1.82255 2.83871C1.03991 2.83871 0.403198 2.202 0.403198 1.41935C0.403198 0.63671 1.03991 0 1.82255 0C2.6052 0 3.24191 0.63671 3.24191 1.41935C3.24191 2.202 2.6052 2.83871 1.82255 2.83871ZM1.82255 1.03226C1.6091 1.03226 1.43546 1.2059 1.43546 1.41935C1.43546 1.63281 1.6091 1.80645 1.82255 1.80645C2.036 1.80645 2.20965 1.63281 2.20965 1.41935C2.20965 1.2059 2.036 1.03226 1.82255 1.03226ZM5.41933 7.16129C4.20091 7.16129 3.20965 6.17003 3.20965 4.95161V3.43548C3.20965 2.21706 4.20088 1.22581 5.41933 1.22581C6.08117 1.22581 6.70255 1.51881 7.12423 2.02971C7.30568 2.24955 7.27455 2.57484 7.05471 2.75629C6.83491 2.93774 6.50959 2.90661 6.32813 2.68677C5.62807 1.83855 4.24191 2.33361 4.24191 3.43548V4.95161C4.24191 6.05432 5.62884 6.54794 6.32813 5.70026C6.50959 5.48039 6.83488 5.44919 7.05471 5.63061C7.27459 5.81203 7.30578 6.13732 7.12436 6.35719C6.70278 6.86819 6.0813 7.16129 5.41933 7.16129Z"], ["width", "16", "height", "16", "fill", "none"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Empty.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Starter.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotStarter.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Dessert.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotDessert.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/MainDish.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotMainDish.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Edit.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/CirclePlus.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/CartPlus.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_neutralBlack.svg", 1, "icon-container__icon", 3, "ngStyle"], ["viewBox", "0 0 18 18", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M16.244 6.79981L9.35632 2.34044C9.26608 2.28143 9.1606 2.25 9.05278 2.25C8.94496 2.25 8.83948 2.28143 8.74924 2.34044L6.14856 4.03425V3.22482C6.14856 3.07574 6.08934 2.93276 5.98393 2.82735C5.87851 2.72193 5.73554 2.66271 5.58646 2.66271H3.33803C3.18956 2.66465 3.04771 2.7245 2.94271 2.82949C2.83771 2.93449 2.77787 3.07634 2.77593 3.22482V6.22272L1.76414 6.90474C1.66004 6.96876 1.58001 7.06536 1.53646 7.17954C1.49292 7.29373 1.48831 7.4191 1.52334 7.53617C1.55838 7.65324 1.6311 7.75547 1.73021 7.82696C1.82932 7.89845 1.94927 7.93521 2.07142 7.93152C2.18072 7.93429 2.28815 7.90285 2.37871 7.84158L2.78342 7.57927V15.5537C2.78536 15.7022 2.84521 15.844 2.95021 15.949C3.0552 16.054 3.19705 16.1138 3.34553 16.1158H14.6626C14.8111 16.1138 14.9529 16.054 15.0579 15.949C15.1629 15.844 15.2228 15.7022 15.2247 15.5537V7.49682L15.6294 7.75914C15.6914 7.79949 15.7608 7.82724 15.8335 7.84079C15.9062 7.85434 15.9809 7.85344 16.0533 7.83813C16.1257 7.82282 16.1943 7.7934 16.2553 7.75155C16.3164 7.70971 16.3685 7.65626 16.4089 7.59425C16.4492 7.53225 16.477 7.4629 16.4905 7.39017C16.5041 7.31744 16.5032 7.24276 16.4879 7.17038C16.4726 7.098 16.4431 7.02935 16.4013 6.96834C16.3594 6.90732 16.306 6.85515 16.244 6.8148V6.79981ZM3.90763 3.78692H5.02435V4.76873L3.90763 5.51821V3.78692ZM10.0683 15.029H7.93981V12.4134H10.0683V15.029ZM14.1005 6.86726V14.9916H11.1925V11.8513C11.1925 11.7022 11.1333 11.5592 11.0279 11.4538C10.9225 11.3484 10.7795 11.2892 10.6304 11.2892H7.3777C7.22862 11.2892 7.08565 11.3484 6.98023 11.4538C6.87482 11.5592 6.8156 11.7022 6.8156 11.8513V14.9916H3.90763V6.84478L5.79631 5.61564C5.87449 5.5885 5.94602 5.54508 6.00616 5.48823L9.07152 3.47964L14.123 6.74735C14.1108 6.78631 14.1033 6.82655 14.1005 6.86726Z"], ["viewBox", "0 0 18 19", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M5.52217 3.5C4.46029 3.5 3.56734 4.28583 3.29895 5.33963H2.10141C1.94183 5.33891 1.78853 5.40683 1.6756 5.52804C1.56279 5.64939 1.49971 5.81396 1.50024 5.98542C1.50091 6.15617 1.56453 6.31945 1.67734 6.43964C1.79001 6.55984 1.94264 6.62705 2.10144 6.62633H3.29672C3.56323 7.68299 4.4583 8.47228 5.5222 8.47228C6.57538 8.47228 7.463 7.69836 7.73953 6.6578L15.9024 6.62635C16.0614 6.62606 16.2133 6.55785 16.3254 6.43707C16.4374 6.31615 16.5003 6.1523 16.5 5.98168C16.4996 5.8115 16.4366 5.64836 16.3246 5.52801C16.2125 5.40767 16.0608 5.33988 15.9023 5.3396L7.75581 5.37105C7.49785 4.30104 6.59486 3.5 5.52217 3.5ZM5.52217 4.78673C6.14605 4.78673 6.639 5.31521 6.639 5.98542C6.639 6.65577 6.14609 7.18543 5.52217 7.18543C4.89825 7.18543 4.40657 6.65581 4.40657 5.98542C4.40657 5.31503 4.89828 4.78673 5.52217 4.78673ZM10.1544 10.4675C9.07485 10.4675 8.1664 11.2673 7.89842 12.3397H2.10117C1.94212 12.3392 1.78935 12.4065 1.67669 12.5269C1.56389 12.6473 1.5004 12.8111 1.5 12.982C1.49973 13.1531 1.56295 13.3176 1.67589 13.4385C1.78869 13.5596 1.94173 13.6272 2.10119 13.6265H7.89947C8.16824 14.6987 9.07562 15.5 10.1542 15.5C11.2328 15.5 12.1402 14.6987 12.4089 13.6265H15.902C16.0609 13.6262 16.213 13.5581 16.3251 13.4372C16.4371 13.3163 16.4999 13.1526 16.4997 12.982C16.4993 12.8118 16.4363 12.6486 16.3243 12.5283C16.2122 12.4079 16.0605 12.3402 15.902 12.3397H12.4099C12.142 11.2673 11.2339 10.4675 10.1544 10.4675ZM10.1544 11.7542C10.7943 11.7542 11.3005 12.2943 11.3005 12.982C11.3005 13.6696 10.7943 14.2134 10.1544 14.2134C9.51445 14.2134 9.0083 13.6696 9.0083 12.982C9.0083 12.2944 9.51445 11.7542 10.1544 11.7542Z"]], template: function IconComponent_Template(rf, ctx) {
6722
6719
  if (rf & 1) {
6723
6720
  i0__namespace.ɵɵtemplate(0, IconComponent_div_0_Template, 2, 8, "div", 0);
6724
- i0__namespace.ɵɵtemplate(1, IconComponent_ng_template_1_Template, 50, 52, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
6721
+ i0__namespace.ɵɵtemplate(1, IconComponent_ng_template_1_Template, 48, 50, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
6725
6722
  }
6726
6723
  if (rf & 2) {
6727
6724
  var _r1 = i0__namespace.ɵɵreference(2);
@@ -6781,7 +6778,7 @@
6781
6778
  i18n_0 = MSG_EXTERNAL_292185335888732433$$LIB__COMPONENTS_ACTIONS_POPIN_ACTIONS_POPIN_COMPONENT_TS_1;
6782
6779
  }
6783
6780
  else {
6784
- i18n_0 = $localize(templateObject_1$R || (templateObject_1$R = __makeTemplateObject([":\u241F5f51b68aa17dd3a5265302cfb7674b502820d761\u241F292185335888732433:\u00C9diter"], [":\u241F5f51b68aa17dd3a5265302cfb7674b502820d761\u241F292185335888732433:\u00C9diter"])));
6781
+ i18n_0 = $localize(templateObject_1$P || (templateObject_1$P = __makeTemplateObject([":\u241F5f51b68aa17dd3a5265302cfb7674b502820d761\u241F292185335888732433:\u00C9diter"], [":\u241F5f51b68aa17dd3a5265302cfb7674b502820d761\u241F292185335888732433:\u00C9diter"])));
6785
6782
  }
6786
6783
  var i18n_2;
6787
6784
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -6789,7 +6786,7 @@
6789
6786
  i18n_2 = MSG_EXTERNAL_180879386399550529$$LIB__COMPONENTS_ACTIONS_POPIN_ACTIONS_POPIN_COMPONENT_TS_3;
6790
6787
  }
6791
6788
  else {
6792
- i18n_2 = $localize(templateObject_2$G || (templateObject_2$G = __makeTemplateObject([":\u241Fe32da846622c2c2eb7a59b745110dbbdb05407b7\u241F180879386399550529:Supprimer"], [":\u241Fe32da846622c2c2eb7a59b745110dbbdb05407b7\u241F180879386399550529:Supprimer"])));
6789
+ i18n_2 = $localize(templateObject_2$F || (templateObject_2$F = __makeTemplateObject([":\u241Fe32da846622c2c2eb7a59b745110dbbdb05407b7\u241F180879386399550529:Supprimer"], [":\u241Fe32da846622c2c2eb7a59b745110dbbdb05407b7\u241F180879386399550529:Supprimer"])));
6793
6790
  }
6794
6791
  return [[1, "miam-actions-popin"], [1, "miam-actions-popin__actions"], [1, "miam-actions-popin__action", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_0, [3, "iconName"], i18n_2];
6795
6792
  }, template: function ActionsPopinComponent_Template(rf, ctx) {
@@ -6839,7 +6836,7 @@
6839
6836
  args: ['document:click', ['$event']]
6840
6837
  }] });
6841
6838
  })();
6842
- var templateObject_1$R, templateObject_2$G;
6839
+ var templateObject_1$P, templateObject_2$F;
6843
6840
 
6844
6841
  function AddonLinkComponent_span_2_Template(rf, ctx) {
6845
6842
  if (rf & 1) {
@@ -6911,7 +6908,7 @@
6911
6908
  i18n_0 = MSG_EXTERNAL_346178670015862382$$LIB__COMPONENTS_ADDON_LINK_ADDON_LINK_COMPONENT_TS__1;
6912
6909
  }
6913
6910
  else {
6914
- i18n_0 = $localize(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject([":\u241F592a6ddb645d9971d03862cb6b8b323a3d9a0be2\u241F346178670015862382:Cette recette vous est propos\u00E9e par notre partenaire"], [":\u241F592a6ddb645d9971d03862cb6b8b323a3d9a0be2\u241F346178670015862382:Cette recette vous est propos\u00E9e par notre partenaire"])));
6911
+ i18n_0 = $localize(templateObject_1$O || (templateObject_1$O = __makeTemplateObject([":\u241F592a6ddb645d9971d03862cb6b8b323a3d9a0be2\u241F346178670015862382:Cette recette vous est propos\u00E9e par notre partenaire"], [":\u241F592a6ddb645d9971d03862cb6b8b323a3d9a0be2\u241F346178670015862382:Cette recette vous est propos\u00E9e par notre partenaire"])));
6915
6912
  }
6916
6913
  var i18n_2;
6917
6914
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -6919,7 +6916,7 @@
6919
6916
  i18n_2 = MSG_EXTERNAL_6125042438179034490$$LIB__COMPONENTS_ADDON_LINK_ADDON_LINK_COMPONENT_TS__3;
6920
6917
  }
6921
6918
  else {
6922
- i18n_2 = $localize(templateObject_2$F || (templateObject_2$F = __makeTemplateObject([":\u241F21743cbace12f161ebbf8c79731b476336c1fe7a\u241F6125042438179034490: En savoir plus "], [":\u241F21743cbace12f161ebbf8c79731b476336c1fe7a\u241F6125042438179034490: En savoir plus "])));
6919
+ i18n_2 = $localize(templateObject_2$E || (templateObject_2$E = __makeTemplateObject([":\u241F21743cbace12f161ebbf8c79731b476336c1fe7a\u241F6125042438179034490: En savoir plus "], [":\u241F21743cbace12f161ebbf8c79731b476336c1fe7a\u241F6125042438179034490: En savoir plus "])));
6923
6920
  }
6924
6921
  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"], i18n_2, [1, "miam-addon-link__logo"], [3, "src", "alt"]];
6925
6922
  }, template: function AddonLinkComponent_Template(rf, ctx) {
@@ -6961,7 +6958,7 @@
6961
6958
  type: i0.Output
6962
6959
  }] });
6963
6960
  })();
6964
- var templateObject_1$Q, templateObject_2$F;
6961
+ var templateObject_1$O, templateObject_2$E;
6965
6962
 
6966
6963
  var CardCreateRecipeComponent = /** @class */ (function () {
6967
6964
  function CardCreateRecipeComponent() {
@@ -6978,7 +6975,7 @@
6978
6975
  i18n_0 = MSG_EXTERNAL_632875815727209694$$LIB__COMPONENTS_CARD_CREATE_RECIPE_CARD_CREATE_RECIPE_COMPONENT_TS_1;
6979
6976
  }
6980
6977
  else {
6981
- i18n_0 = $localize(templateObject_1$P || (templateObject_1$P = __makeTemplateObject([":\u241Fda95ac9568ebaa0d417c7960d25b42ca166467b2\u241F632875815727209694:Nouvelle recette"], [":\u241Fda95ac9568ebaa0d417c7960d25b42ca166467b2\u241F632875815727209694:Nouvelle recette"])));
6978
+ i18n_0 = $localize(templateObject_1$N || (templateObject_1$N = __makeTemplateObject([":\u241Fda95ac9568ebaa0d417c7960d25b42ca166467b2\u241F632875815727209694:Nouvelle recette"], [":\u241Fda95ac9568ebaa0d417c7960d25b42ca166467b2\u241F632875815727209694:Nouvelle recette"])));
6982
6979
  }
6983
6980
  return [[1, "card-create-recipe"], [1, "card-create-recipe__icon"], ["primaryColor", "var(--m-color-primary)", 3, "width", "height", "iconName"], [1, "card-create-recipe__button", "m-button-primary", 3, "click"], i18n_0, ["primaryColor", "var(--m-color-white)", 3, "width", "height", "iconName"]];
6984
6981
  }, template: function CardCreateRecipeComponent_Template(rf, ctx) {
@@ -7017,7 +7014,7 @@
7017
7014
  type: i0.Output
7018
7015
  }] });
7019
7016
  })();
7020
- var templateObject_1$P;
7017
+ var templateObject_1$N;
7021
7018
 
7022
7019
  var CORSOverlayComponent = /** @class */ (function () {
7023
7020
  function CORSOverlayComponent() {
@@ -7815,7 +7812,7 @@
7815
7812
  i18n_2 = MSG_EXTERNAL_4137288559015719180$$LIB__COMPONENTS_DRAG_DROP_INPUT_DRAG_DROP_INPUT_COMPONENT_TS__3;
7816
7813
  }
7817
7814
  else {
7818
- i18n_2 = $localize(templateObject_1$O || (templateObject_1$O = __makeTemplateObject([":\u241F16215e9534430da4b0c376e733eb20a53bd56326\u241F4137288559015719180: Si vous ne changez pas la photo, celle par d\u00E9faut sera appliqu\u00E9e "], [":\u241F16215e9534430da4b0c376e733eb20a53bd56326\u241F4137288559015719180: Si vous ne changez pas la photo, celle par d\u00E9faut sera appliqu\u00E9e "])));
7815
+ i18n_2 = $localize(templateObject_1$M || (templateObject_1$M = __makeTemplateObject([":\u241F16215e9534430da4b0c376e733eb20a53bd56326\u241F4137288559015719180: Si vous ne changez pas la photo, celle par d\u00E9faut sera appliqu\u00E9e "], [":\u241F16215e9534430da4b0c376e733eb20a53bd56326\u241F4137288559015719180: Si vous ne changez pas la photo, celle par d\u00E9faut sera appliqu\u00E9e "])));
7819
7816
  }
7820
7817
  return [[1, "miam-uploader", 3, "ngClass"], ["multiple", "multiple", "type", "file", 3, "change", 4, "ngIf", "ngIfElse"], ["photoInput", ""], [1, "m-button-secondary", 3, "click"], [4, "ngTemplateOutlet"], ["primaryColor", "var(--m-color-white)", 3, "iconName"], ["class", "miam-uploader__default__photo", 3, "click", 4, "ngIf"], [1, "miam-uploader__drop__overlay", 3, "dragover", "dragleave", "drop", "click"], ["multiple", "multiple", "type", "file", 3, "change"], ["fileInput", ""], ["accept", "image/jpeg, image/png, image/webp", "type", "file", 3, "change", 4, "ngIf"], [3, "src"], ["accept", "image/jpeg, image/png, image/webp", "type", "file", 3, "change"], [1, "miam-uploader__default__photo", 3, "click"], i18n_2];
7821
7818
  }, template: function DragDropInputComponent_Template(rf, ctx) {
@@ -7881,7 +7878,7 @@
7881
7878
  args: ['buttonText', { static: false }]
7882
7879
  }] });
7883
7880
  })();
7884
- var templateObject_1$O;
7881
+ var templateObject_1$M;
7885
7882
 
7886
7883
  function GuestsDropdownComponent_div_7_div_2_Template(rf, ctx) {
7887
7884
  if (rf & 1) {
@@ -8015,6 +8012,12 @@
8015
8012
  }
8016
8013
  return this.originTrace.originPath;
8017
8014
  };
8015
+ EventTracerComponent.prototype.removeFromOriginPath = function (partToReplace) {
8016
+ var _a;
8017
+ if ((_a = this.originTrace.originPath) === null || _a === void 0 ? void 0 : _a.includes(partToReplace)) {
8018
+ this.originTrace.originPath = this.originTrace.originPath.replace(partToReplace, '');
8019
+ }
8020
+ };
8018
8021
  EventTracerComponent.prototype.sendEvent = function (eventType) {
8019
8022
  this.analyticsService.sendEventWhenReady(eventType, this.path(), this.props());
8020
8023
  };
@@ -8084,7 +8087,7 @@
8084
8087
  return LikeButtonComponent;
8085
8088
  }(EventTracerComponent));
8086
8089
  LikeButtonComponent.ɵfac = function LikeButtonComponent_Factory(t) { return new (t || LikeButtonComponent)(i0__namespace.ɵɵdirectiveInject(RecipeLikesService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
8087
- LikeButtonComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: LikeButtonComponent, selectors: [["ng-miam-like-button"]], inputs: { primaryColor: "primaryColor", recipe: "recipe" }, outputs: { wasToggled: "wasToggled" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [[1, "miam-like-button", "miam-ds-button", "primary", "reverse", "square", "small", 3, "click"], [1, "miam-like-button__icon", 3, "ngClass"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Heart.svg", "alt", "Heart", 3, "ngClass"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/HeartFill.svg", "alt", "Filled heart", 3, "ngClass"]], template: function LikeButtonComponent_Template(rf, ctx) {
8090
+ LikeButtonComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: LikeButtonComponent, selectors: [["ng-miam-like-button"]], inputs: { primaryColor: "primaryColor", recipe: "recipe" }, outputs: { wasToggled: "wasToggled" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 4, vars: 9, consts: [[1, "miam-like-button", "miam-ds-button", "primary", "reverse", "square", "small", 3, "click"], [1, "miam-like-button__icon", 3, "ngClass"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Heart.svg", "alt", "Heart", 1, "miam-like-button__icon__empty", 3, "ngClass"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/HeartFill.svg", "alt", "Filled heart", 1, "miam-like-button__icon__full", 3, "ngClass"]], template: function LikeButtonComponent_Template(rf, ctx) {
8088
8091
  if (rf & 1) {
8089
8092
  i0__namespace.ɵɵelementStart(0, "button", 0);
8090
8093
  i0__namespace.ɵɵlistener("click", function LikeButtonComponent_Template_button_click_0_listener($event) { return ctx.toggleLike($event); });
@@ -8447,16 +8450,16 @@
8447
8450
  return request;
8448
8451
  };
8449
8452
  MiamInterceptor.prototype.setMiamHeaders = function (request) {
8450
- request = request.clone({
8451
- setHeaders: {
8452
- 'miam-origin': this.context.origin.value,
8453
- 'miam-front-version': '8.3.7',
8454
- 'miam-front-type': 'web',
8455
- 'miam-api-version': '4.7.0',
8456
- 'language-id': environment$1.lang
8457
- }
8458
- });
8459
- return request;
8453
+ var headersToAdd = {
8454
+ 'miam-origin': this.context.origin.value,
8455
+ 'miam-front-version': '8.4.0',
8456
+ 'miam-front-type': 'web',
8457
+ 'miam-api-version': '4.7.0'
8458
+ };
8459
+ if (!request.headers.has('language-id')) {
8460
+ headersToAdd['language-id'] = environment$1.lang;
8461
+ }
8462
+ return request.clone({ setHeaders: headersToAdd });
8460
8463
  };
8461
8464
  MiamInterceptor.prototype.addPagesInfos = function (event) {
8462
8465
  var links = event.body.links;
@@ -8495,6 +8498,93 @@
8495
8498
  }], function () { return [{ type: ContextService }, { type: UserService }]; }, null);
8496
8499
  })();
8497
8500
 
8501
+ var ListScanService = /** @class */ (function () {
8502
+ function ListScanService(basketsService) {
8503
+ this.basketsService = basketsService;
8504
+ this.sendingFile = new rxjs.BehaviorSubject(false);
8505
+ this.currentBasketEntries = new rxjs.BehaviorSubject([]);
8506
+ this.cancelling = new rxjs.BehaviorSubject(false);
8507
+ this.entriesToIgnore = [];
8508
+ this.subscriptions = [];
8509
+ }
8510
+ ListScanService.prototype.unsubscribeService = function () {
8511
+ this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
8512
+ };
8513
+ ListScanService.prototype.sendFile = function (event) {
8514
+ var _this = this;
8515
+ var target = event.target;
8516
+ var file = target.files.item(0);
8517
+ if (!file) {
8518
+ return;
8519
+ }
8520
+ this.sendingFile.next(true);
8521
+ this.subscriptions.push(this.basketsService.currentAndPreviewFetching.pipe(operators.skipWhile(function (fetching) { return fetching; }), operators.take(1), operators.switchMap(function () { return _this.basketsService.waitForBasketEntries; })).subscribe(function (currentEntries) {
8522
+ _this.entriesToIgnore = currentEntries;
8523
+ _this.basketsService.addEntriesFromPicture(file, ['basket-entries'], !!_this.disableIngredientsMatching).pipe(operators.switchMap(function () { return _this.basketsService.waitForBasketEntries; })).subscribe(function (entries) {
8524
+ var addedEntries = _this.filterOldEntries(entries);
8525
+ _this.listenForBasketChanges();
8526
+ _this.sendingFile.next(false);
8527
+ _this.currentBasketEntries.next(addedEntries);
8528
+ });
8529
+ target.value = null;
8530
+ }));
8531
+ };
8532
+ /**
8533
+ * Cancel scan by removing all entries from basket & close modal
8534
+ */
8535
+ ListScanService.prototype.cancelAndRemove = function (eventTrace) {
8536
+ var _this = this;
8537
+ this.cancelling.next(true);
8538
+ if (this.currentBasketEntries.value.length === 0) {
8539
+ this.cancelling.next(false);
8540
+ return;
8541
+ }
8542
+ this.currentBasketEntries.value.forEach(function (entry) { return _this.basketsService.removeProduct(entry, eventTrace); });
8543
+ this.subscriptions.push(rxjs.combineLatest([
8544
+ this.basketsService.productsWillBeRemoved(),
8545
+ this.basketsService.productsAreBeingRemoved()
8546
+ ]).pipe(operators.skipWhile(function (products) { return products[0] > 0 || products[1] > 0; }), operators.take(1), operators.switchMap(function () { return _this.basketsService.reloadBasket(); })).subscribe(function () {
8547
+ _this.currentBasketEntries.next([]);
8548
+ _this.cancelling.next(false);
8549
+ }));
8550
+ };
8551
+ ListScanService.prototype.listenForBasketChanges = function () {
8552
+ var _this = this;
8553
+ this.subscriptions.push(this.basketsService.basketEntries().subscribe(function (entries) {
8554
+ // Remove entries that were from before sendFile from the new basketEntries array
8555
+ var newEntries = _this.filterOldEntries(entries);
8556
+ // Update entries to their new state and filter the ones that were removed
8557
+ var currentEntries = _this.currentBasketEntries.value.map(function (entry) { return newEntries.find(function (e) { return e.id === entry.id; }) || entry; }).filter(function (entry) { return newEntries.find(function (e) { return e.id === entry.id; }); });
8558
+ // Add any new entries to the list
8559
+ newEntries.filter(function (entry) { return !currentEntries.find(function (e) { return e.id === entry.id; }); }).forEach(function (entry) { return currentEntries.push(entry); });
8560
+ _this.currentBasketEntries.next(currentEntries);
8561
+ }));
8562
+ };
8563
+ ListScanService.prototype.filterOldEntries = function (entries) {
8564
+ var _this = this;
8565
+ // Remove entries that were already present in the same quantities before && remove previous quantity if any
8566
+ return entries.filter(function (entry) {
8567
+ var entryToIgnore = _this.entriesToIgnore.find(function (e) { return e.id === entry.id; });
8568
+ return !(entryToIgnore && entryToIgnore.quantity === entry.quantity);
8569
+ }).map(function (entry) {
8570
+ var entryToIgnore = _this.entriesToIgnore.find(function (e) { return e.id === entry.id; });
8571
+ entry.quantity -= (entryToIgnore === null || entryToIgnore === void 0 ? void 0 : entryToIgnore.quantity) || 0;
8572
+ return entry;
8573
+ });
8574
+ };
8575
+ return ListScanService;
8576
+ }());
8577
+ ListScanService.ɵfac = function ListScanService_Factory(t) { return new (t || ListScanService)(i0__namespace.ɵɵinject(BasketsService)); };
8578
+ ListScanService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ListScanService, factory: ListScanService.ɵfac, providedIn: 'root' });
8579
+ (function () {
8580
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ListScanService, [{
8581
+ type: i0.Injectable,
8582
+ args: [{
8583
+ providedIn: 'root'
8584
+ }]
8585
+ }], function () { return [{ type: BasketsService }]; }, null);
8586
+ })();
8587
+
8498
8588
  var ProductAdditionService = /** @class */ (function () {
8499
8589
  function ProductAdditionService() {
8500
8590
  this.isModalOpen$ = new rxjs.BehaviorSubject(false);
@@ -8593,7 +8683,8 @@
8593
8683
  * either adds recipes to the basket or ingredients to the basket.
8594
8684
  */
8595
8685
  BasketActionsService.prototype.getStoredMethod = function () {
8596
- if (localStorage.getItem('_miam/storeCallbackMethod')) {
8686
+ var storedMethod = localStorage.getItem('_miam/storeCallbackMethod');
8687
+ if (storedMethod && storedMethod !== 'setFavoritesFilter') {
8597
8688
  var parsedStoredData = JSON.parse(localStorage.getItem('_miam/storeCallbackMethod'));
8598
8689
  this.shouldExecuteBasketAction.next(parsedStoredData);
8599
8690
  this.recipesService.display(parsedStoredData.arguments.recipeId, { previewAllowed: true, previewMode: false }, { originPath: '', props: {} });
@@ -9280,7 +9371,7 @@
9280
9371
  i0__namespace.ɵɵproperty("ngIf", ctx_r3.placeOrderFooter);
9281
9372
  }
9282
9373
  }
9283
- var _c8$2 = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
9374
+ var _c8$1 = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
9284
9375
  function ModalComponent_ng_container_0_Template(rf, ctx) {
9285
9376
  if (rf & 1) {
9286
9377
  var _r18_1 = i0__namespace.ɵɵgetCurrentView();
@@ -9317,7 +9408,7 @@
9317
9408
  i0__namespace.ɵɵadvance(1);
9318
9409
  i0__namespace.ɵɵproperty("ngClass", ctx_r0.modalStyle);
9319
9410
  i0__namespace.ɵɵadvance(2);
9320
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(5, _c8$2, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
9411
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(5, _c8$1, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
9321
9412
  i0__namespace.ɵɵadvance(4);
9322
9413
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.title);
9323
9414
  i0__namespace.ɵɵadvance(1);
@@ -9403,14 +9494,14 @@
9403
9494
  if (rf & 1) {
9404
9495
  i0__namespace.ɵɵlistener("keydown.escape", function ModalComponent_keydown_escape_HostBindingHandler() { return ctx.onEscapeDown(); }, false, i0__namespace.ɵɵresolveWindow);
9405
9496
  }
9406
- }, inputs: { recipesCount: "recipesCount", confirmButtonIsLoading: "confirmButtonIsLoading", cancelButtonIsLoading: "cancelButtonIsLoading", confirmButtonDisabled: "confirmButtonDisabled", cancelButtonDisabled: "cancelButtonDisabled", placeOrderFooter: "placeOrderFooter", noHeaderMode: "noHeaderMode", containerElement: "containerElement", totalPrice: "totalPrice", title: "title", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", modalStyle: "modalStyle", ctaColor: "ctaColor", display: "display" }, outputs: { close: "close", cancel: "cancel", confirm: "confirm" }, ngContentSelectors: _c10$4, decls: 1, vars: 1, consts: function () {
9497
+ }, inputs: { recipesCount: "recipesCount", confirmButtonIsLoading: "confirmButtonIsLoading", cancelButtonIsLoading: "cancelButtonIsLoading", confirmButtonDisabled: "confirmButtonDisabled", cancelButtonDisabled: "cancelButtonDisabled", placeOrderFooter: "placeOrderFooter", noHeaderMode: "noHeaderMode", totalPrice: "totalPrice", title: "title", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", modalStyle: "modalStyle", ctaColor: "ctaColor", display: "display" }, outputs: { close: "close", cancel: "cancel", confirm: "confirm" }, ngContentSelectors: _c10$4, decls: 1, vars: 1, consts: function () {
9407
9498
  var i18n_0;
9408
9499
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
9409
9500
  var MSG_EXTERNAL_3775647930168967606$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS___1 = goog.getMsg("Utilis\u00E9 dans ");
9410
9501
  i18n_0 = MSG_EXTERNAL_3775647930168967606$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS___1;
9411
9502
  }
9412
9503
  else {
9413
- i18n_0 = $localize(templateObject_1$N || (templateObject_1$N = __makeTemplateObject([":\u241F77ab0a692c428421d89ca45e8f244219959d2913\u241F3775647930168967606:Utilis\u00E9 dans "], [":\u241F77ab0a692c428421d89ca45e8f244219959d2913\u241F3775647930168967606:Utilis\u00E9 dans "])));
9504
+ i18n_0 = $localize(templateObject_1$L || (templateObject_1$L = __makeTemplateObject([":\u241F77ab0a692c428421d89ca45e8f244219959d2913\u241F3775647930168967606:Utilis\u00E9 dans "], [":\u241F77ab0a692c428421d89ca45e8f244219959d2913\u241F3775647930168967606:Utilis\u00E9 dans "])));
9414
9505
  }
9415
9506
  var i18n_2;
9416
9507
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -9418,7 +9509,7 @@
9418
9509
  i18n_2 = MSG_EXTERNAL_8253051398336962047$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS___3;
9419
9510
  }
9420
9511
  else {
9421
- i18n_2 = $localize(templateObject_2$E || (templateObject_2$E = __makeTemplateObject([":\u241Ff0ee2f84e20252199737bc9757b04e75979cb9fe\u241F8253051398336962047: repas"], [":\u241Ff0ee2f84e20252199737bc9757b04e75979cb9fe\u241F8253051398336962047: repas"])));
9512
+ i18n_2 = $localize(templateObject_2$D || (templateObject_2$D = __makeTemplateObject([":\u241Ff0ee2f84e20252199737bc9757b04e75979cb9fe\u241F8253051398336962047: repas"], [":\u241Ff0ee2f84e20252199737bc9757b04e75979cb9fe\u241F8253051398336962047: repas"])));
9422
9513
  }
9423
9514
  var i18n_4;
9424
9515
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -9426,7 +9517,7 @@
9426
9517
  i18n_4 = MSG_EXTERNAL_4122997114884311871$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS____5;
9427
9518
  }
9428
9519
  else {
9429
- i18n_4 = $localize(templateObject_3$v || (templateObject_3$v = __makeTemplateObject([":\u241Fddc8d487566c6a50356eb269a281761ef8ccffa8\u241F4122997114884311871:dans mon panier"], [":\u241Fddc8d487566c6a50356eb269a281761ef8ccffa8\u241F4122997114884311871:dans mon panier"])));
9520
+ i18n_4 = $localize(templateObject_3$t || (templateObject_3$t = __makeTemplateObject([":\u241Fddc8d487566c6a50356eb269a281761ef8ccffa8\u241F4122997114884311871:dans mon panier"], [":\u241Fddc8d487566c6a50356eb269a281761ef8ccffa8\u241F4122997114884311871:dans mon panier"])));
9430
9521
  }
9431
9522
  var i18n_6;
9432
9523
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -9434,7 +9525,7 @@
9434
9525
  i18n_6 = MSG_EXTERNAL_6395936232189121511$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS____7;
9435
9526
  }
9436
9527
  else {
9437
- i18n_6 = $localize(templateObject_4$p || (templateObject_4$p = __makeTemplateObject([":\u241Fd3276a66cd37a042eef60b47ad3ac37a6935cb08\u241F6395936232189121511:Passer commande"], [":\u241Fd3276a66cd37a042eef60b47ad3ac37a6935cb08\u241F6395936232189121511:Passer commande"])));
9528
+ i18n_6 = $localize(templateObject_4$o || (templateObject_4$o = __makeTemplateObject([":\u241Fd3276a66cd37a042eef60b47ad3ac37a6935cb08\u241F6395936232189121511:Passer commande"], [":\u241Fd3276a66cd37a042eef60b47ad3ac37a6935cb08\u241F6395936232189121511:Passer commande"])));
9438
9529
  }
9439
9530
  return [[4, "ngIf"], [1, "miam-modal__container", 3, "ngClass"], [1, "miam-shadow-overlay", 3, "click"], [1, "miam-modal", "miam-ds-text", 3, "ngClass"], [1, "miam-modal__content-container"], [1, "miam-modal__header-container"], [1, "miam-modal__header"], ["class", "miam-modal__title miam-ds-text size-xl weight-xxl", 4, "ngIf"], ["class", "miam-modal__title miam-ds-text", 4, "ngIf"], [1, "miam-modal__close-icon", "miam-ds-button", "ghost", 3, "click"], [1, "miam-modal__content__scroll-protection"], [1, "miam-modal__content", "miam-ds-text"], ["class", "miam-modal__actions", 4, "ngIf"], [1, "miam-modal__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-modal__title", "miam-ds-text"], i18n_0, i18n_2, [1, "miam-modal__actions"], [1, "miam-modal__interactions"], ["class", "miam-ds-button secondary", 3, "disabled", "click", 4, "ngIf"], [1, "miam-ds-button", 3, "disabled", "ngClass", "click"], [1, "miam-ds-button", "secondary", 3, "disabled", "click"], [1, "miam-modal__place-order"], [1, "miam-modal__place-order-price"], [1, "miam-modal__total-price", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-modal__total-price-label", "miam-ds-text", "size-s"], i18n_4, [1, "miam-modal__place-order-cta", "miam-ds-button", 3, "ngClass", "click"], i18n_6];
9440
9531
  }, template: function ModalComponent_Template(rf, ctx) {
@@ -9470,8 +9561,6 @@
9470
9561
  type: i0.Input
9471
9562
  }], noHeaderMode: [{
9472
9563
  type: i0.Input
9473
- }], containerElement: [{
9474
- type: i0.Input
9475
9564
  }], totalPrice: [{
9476
9565
  type: i0.Input
9477
9566
  }], title: [{
@@ -9497,7 +9586,7 @@
9497
9586
  args: ['window:keydown.escape']
9498
9587
  }] });
9499
9588
  })();
9500
- var templateObject_1$N, templateObject_2$E, templateObject_3$v, templateObject_4$p;
9589
+ var templateObject_1$L, templateObject_2$D, templateObject_3$t, templateObject_4$o;
9501
9590
 
9502
9591
  function ListInputComponent_div_2_Template(rf, ctx) {
9503
9592
  if (rf & 1) {
@@ -10208,7 +10297,7 @@
10208
10297
  i18n_0 = MSG_EXTERNAL_6695434073227826027$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS_1;
10209
10298
  }
10210
10299
  else {
10211
- i18n_0 = $localize(templateObject_1$M || (templateObject_1$M = __makeTemplateObject([":\u241F168aaaefb82a049ba50e371f90edc3cf717dbe18\u241F6695434073227826027:Exemple :\\n500g de farine\\n250g de beurre\\nhuile d\\'olive\\n4 tranches de jambon"], [":\u241F168aaaefb82a049ba50e371f90edc3cf717dbe18\u241F6695434073227826027:Exemple :\\\\n500g de farine\\\\n250g de beurre\\\\nhuile d\\\\'olive\\\\n4 tranches de jambon"])));
10300
+ i18n_0 = $localize(templateObject_1$K || (templateObject_1$K = __makeTemplateObject([":\u241F168aaaefb82a049ba50e371f90edc3cf717dbe18\u241F6695434073227826027:Exemple :\\n500g de farine\\n250g de beurre\\nhuile d\\'olive\\n4 tranches de jambon"], [":\u241F168aaaefb82a049ba50e371f90edc3cf717dbe18\u241F6695434073227826027:Exemple :\\\\n500g de farine\\\\n250g de beurre\\\\nhuile d\\\\'olive\\\\n4 tranches de jambon"])));
10212
10301
  }
10213
10302
  var i18n_2;
10214
10303
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10216,7 +10305,7 @@
10216
10305
  i18n_2 = MSG_EXTERNAL_2018023587834470484$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS_3;
10217
10306
  }
10218
10307
  else {
10219
- i18n_2 = $localize(templateObject_2$D || (templateObject_2$D = __makeTemplateObject([":\u241F3877c3dcbb65966da0eec0fc397768e4b8cb4c0a\u241F2018023587834470484:Exemple :\\nHacher grossi\u00E8rement le c\u00E9leri et l'oignon.\\nCouper le chou-fleur en petits bouquets."], [":\u241F3877c3dcbb65966da0eec0fc397768e4b8cb4c0a\u241F2018023587834470484:Exemple :\\\\nHacher grossi\u00E8rement le c\u00E9leri et l'oignon.\\\\nCouper le chou-fleur en petits bouquets."])));
10308
+ i18n_2 = $localize(templateObject_2$C || (templateObject_2$C = __makeTemplateObject([":\u241F3877c3dcbb65966da0eec0fc397768e4b8cb4c0a\u241F2018023587834470484:Exemple :\\nHacher grossi\u00E8rement le c\u00E9leri et l'oignon.\\nCouper le chou-fleur en petits bouquets."], [":\u241F3877c3dcbb65966da0eec0fc397768e4b8cb4c0a\u241F2018023587834470484:Exemple :\\\\nHacher grossi\u00E8rement le c\u00E9leri et l'oignon.\\\\nCouper le chou-fleur en petits bouquets."])));
10220
10309
  }
10221
10310
  var i18n_4;
10222
10311
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10224,7 +10313,7 @@
10224
10313
  i18n_4 = MSG_EXTERNAL_5408671121354947038$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS_5;
10225
10314
  }
10226
10315
  else {
10227
- i18n_4 = $localize(templateObject_3$u || (templateObject_3$u = __makeTemplateObject([":\u241F6f4549745b3359819ca94563488f5ccd66a5c7a7\u241F5408671121354947038:Ajouter "], [":\u241F6f4549745b3359819ca94563488f5ccd66a5c7a7\u241F5408671121354947038:Ajouter "])));
10316
+ i18n_4 = $localize(templateObject_3$s || (templateObject_3$s = __makeTemplateObject([":\u241F6f4549745b3359819ca94563488f5ccd66a5c7a7\u241F5408671121354947038:Ajouter "], [":\u241F6f4549745b3359819ca94563488f5ccd66a5c7a7\u241F5408671121354947038:Ajouter "])));
10228
10317
  }
10229
10318
  var i18n_6;
10230
10319
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10232,7 +10321,7 @@
10232
10321
  i18n_6 = MSG_EXTERNAL_4078662097036588656$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS_7;
10233
10322
  }
10234
10323
  else {
10235
- i18n_6 = $localize(templateObject_4$o || (templateObject_4$o = __makeTemplateObject([":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"], [":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"])));
10324
+ i18n_6 = $localize(templateObject_4$n || (templateObject_4$n = __makeTemplateObject([":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"], [":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"])));
10236
10325
  }
10237
10326
  var i18n_8;
10238
10327
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10256,7 +10345,7 @@
10256
10345
  i18n_12 = MSG_EXTERNAL_6937054015625775665$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS_______13;
10257
10346
  }
10258
10347
  else {
10259
- i18n_12 = $localize(templateObject_7$c || (templateObject_7$c = __makeTemplateObject([":\u241Fe336f56ee5c65fc7405818982e6700e092a7baa2\u241F6937054015625775665:Primordial"], [":\u241Fe336f56ee5c65fc7405818982e6700e092a7baa2\u241F6937054015625775665:Primordial"])));
10348
+ i18n_12 = $localize(templateObject_7$d || (templateObject_7$d = __makeTemplateObject([":\u241Fe336f56ee5c65fc7405818982e6700e092a7baa2\u241F6937054015625775665:Primordial"], [":\u241Fe336f56ee5c65fc7405818982e6700e092a7baa2\u241F6937054015625775665:Primordial"])));
10260
10349
  }
10261
10350
  var i18n_14;
10262
10351
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10421,7 +10510,7 @@
10421
10510
  type: i0.Output
10422
10511
  }] });
10423
10512
  })();
10424
- var templateObject_1$M, templateObject_2$D, templateObject_3$u, templateObject_4$o, templateObject_5$k, templateObject_6$h, templateObject_7$c, templateObject_8$9, templateObject_9$7, templateObject_10$5, templateObject_11$5, templateObject_12$4, templateObject_13$4, templateObject_14$3, templateObject_15$3, templateObject_16$2, templateObject_17$2;
10513
+ var templateObject_1$K, templateObject_2$C, templateObject_3$s, templateObject_4$n, templateObject_5$k, templateObject_6$h, templateObject_7$d, templateObject_8$9, templateObject_9$7, templateObject_10$5, templateObject_11$5, templateObject_12$4, templateObject_13$4, templateObject_14$3, templateObject_15$3, templateObject_16$2, templateObject_17$2;
10425
10514
 
10426
10515
  var MealsPlannerLinkComponent = /** @class */ (function () {
10427
10516
  function MealsPlannerLinkComponent(context) {
@@ -10442,7 +10531,7 @@
10442
10531
  i18n_0 = MSG_EXTERNAL_7941873496647081087$$LIB__COMPONENTS_MEALS_PLANNER_LINK_MEALS_PLANNER_LINK_COMPONENT_TS_1;
10443
10532
  }
10444
10533
  else {
10445
- i18n_0 = $localize(templateObject_1$L || (templateObject_1$L = __makeTemplateObject([":\u241F31447cf300f37b6f8ae96281c427b49242c801e5\u241F7941873496647081087:Je planifie mes repas"], [":\u241F31447cf300f37b6f8ae96281c427b49242c801e5\u241F7941873496647081087:Je planifie mes repas"])));
10534
+ i18n_0 = $localize(templateObject_1$J || (templateObject_1$J = __makeTemplateObject([":\u241F31447cf300f37b6f8ae96281c427b49242c801e5\u241F7941873496647081087:Je planifie mes repas"], [":\u241F31447cf300f37b6f8ae96281c427b49242c801e5\u241F7941873496647081087:Je planifie mes repas"])));
10446
10535
  }
10447
10536
  var i18n_2;
10448
10537
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10450,7 +10539,7 @@
10450
10539
  i18n_2 = MSG_EXTERNAL_5328674089466195959$$LIB__COMPONENTS_MEALS_PLANNER_LINK_MEALS_PLANNER_LINK_COMPONENT_TS_3;
10451
10540
  }
10452
10541
  else {
10453
- i18n_2 = $localize(templateObject_2$C || (templateObject_2$C = __makeTemplateObject([":\u241Fb1c4690366792b0d9b9034d6b35d974cdfaf2eea\u241F5328674089466195959:Je renseigne mon budget, le nombre de convives et de repas, et j'obtiens des id\u00E9es repas"], [":\u241Fb1c4690366792b0d9b9034d6b35d974cdfaf2eea\u241F5328674089466195959:Je renseigne mon budget, le nombre de convives et de repas, et j'obtiens des id\u00E9es repas"])));
10542
+ i18n_2 = $localize(templateObject_2$B || (templateObject_2$B = __makeTemplateObject([":\u241Fb1c4690366792b0d9b9034d6b35d974cdfaf2eea\u241F5328674089466195959:Je renseigne mon budget, le nombre de convives et de repas, et j'obtiens des id\u00E9es repas"], [":\u241Fb1c4690366792b0d9b9034d6b35d974cdfaf2eea\u241F5328674089466195959:Je renseigne mon budget, le nombre de convives et de repas, et j'obtiens des id\u00E9es repas"])));
10454
10543
  }
10455
10544
  var i18n_4;
10456
10545
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -10458,7 +10547,7 @@
10458
10547
  i18n_4 = MSG_EXTERNAL_6105149763216124630$$LIB__COMPONENTS_MEALS_PLANNER_LINK_MEALS_PLANNER_LINK_COMPONENT_TS_5;
10459
10548
  }
10460
10549
  else {
10461
- i18n_4 = $localize(templateObject_3$t || (templateObject_3$t = __makeTemplateObject([":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"], [":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"])));
10550
+ i18n_4 = $localize(templateObject_3$r || (templateObject_3$r = __makeTemplateObject([":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"], [":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"])));
10462
10551
  }
10463
10552
  return [[1, "miam-meals-planner-link", 3, "click"], [1, "miam-meals-planner-link__gradient"], [1, "miam-meals-planner-link__content"], [1, "miam-meals-planner-link__title"], i18n_0, [1, "miam-meals-planner-link__description"], i18n_2, [1, "miam-meals-planner-link__cta"], [1, "miam-ds-button", "primary", "reverse"], i18n_4, ["width", "24", "height", "24", 3, "iconName"]];
10464
10553
  }, template: function MealsPlannerLinkComponent_Template(rf, ctx) {
@@ -10504,11 +10593,12 @@
10504
10593
  }]
10505
10594
  }], function () { return [{ type: ContextService }]; }, null);
10506
10595
  })();
10507
- var templateObject_1$L, templateObject_2$C, templateObject_3$t;
10596
+ var templateObject_1$J, templateObject_2$B, templateObject_3$r;
10508
10597
 
10509
10598
  var _c0$n = ["miamPrice"];
10510
10599
  var PriceComponent = /** @class */ (function () {
10511
- function PriceComponent() {
10600
+ function PriceComponent(cdr) {
10601
+ this.cdr = cdr;
10512
10602
  this.price = '';
10513
10603
  }
10514
10604
  PriceComponent.prototype.ngAfterViewInit = function () {
@@ -10524,6 +10614,7 @@
10524
10614
  else {
10525
10615
  this.priceElement.nativeElement.innerHTML = '';
10526
10616
  }
10617
+ this.cdr.detectChanges();
10527
10618
  };
10528
10619
  PriceComponent.prototype.addChildren = function () {
10529
10620
  var _this = this;
@@ -10555,7 +10646,7 @@
10555
10646
  };
10556
10647
  return PriceComponent;
10557
10648
  }());
10558
- PriceComponent.ɵfac = function PriceComponent_Factory(t) { return new (t || PriceComponent)(); };
10649
+ PriceComponent.ɵfac = function PriceComponent_Factory(t) { return new (t || PriceComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
10559
10650
  PriceComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: PriceComponent, selectors: [["ng-miam-price"]], viewQuery: function PriceComponent_Query(rf, ctx) {
10560
10651
  if (rf & 1) {
10561
10652
  i0__namespace.ɵɵviewQuery(_c0$n, 1);
@@ -10568,16 +10659,18 @@
10568
10659
  if (rf & 1) {
10569
10660
  i0__namespace.ɵɵelement(0, "span", 0, 1);
10570
10661
  }
10571
- }, styles: [".miam-price[_ngcontent-%COMP%]{display:inline-flex;gap:4px}"] });
10662
+ }, styles: [".miam-price{display:inline-flex;gap:4px}"], encapsulation: 2, changeDetection: 0 });
10572
10663
  (function () {
10573
10664
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PriceComponent, [{
10574
10665
  type: i0.Component,
10575
10666
  args: [{
10576
10667
  selector: 'ng-miam-price',
10577
10668
  templateUrl: './price.component.html',
10578
- styleUrls: ['./price.component.scss']
10669
+ styleUrls: ['./price.component.scss'],
10670
+ encapsulation: i0.ViewEncapsulation.None,
10671
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
10579
10672
  }]
10580
- }], null, { price: [{
10673
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, { price: [{
10581
10674
  type: i0.Input
10582
10675
  }], priceElement: [{
10583
10676
  type: i0.ViewChild,
@@ -10705,7 +10798,7 @@
10705
10798
  }
10706
10799
  }
10707
10800
  var _c1$d = function (a0) { return { full: a0 }; };
10708
- var _c2$8 = function (a0) { return { "danger": a0 }; };
10801
+ var _c2$7 = function (a0) { return { "danger": a0 }; };
10709
10802
  var ProgressTrackerComponent = /** @class */ (function () {
10710
10803
  function ProgressTrackerComponent() {
10711
10804
  }
@@ -10761,7 +10854,7 @@
10761
10854
  i0__namespace.ɵɵadvance(1);
10762
10855
  i0__namespace.ɵɵproperty("ngIf", ctx.value > ctx.max);
10763
10856
  i0__namespace.ɵɵadvance(1);
10764
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c2$8, ctx.value > ctx.max));
10857
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c2$7, ctx.value > ctx.max));
10765
10858
  i0__namespace.ɵɵadvance(1);
10766
10859
  i0__namespace.ɵɵtextInterpolate2("", ctx.roundedValue, " ", ctx.unit, "");
10767
10860
  }
@@ -11333,7 +11426,7 @@
11333
11426
  i18n_0 = MSG_EXTERNAL_5491081266313732174$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_1;
11334
11427
  }
11335
11428
  else {
11336
- i18n_0 = $localize(templateObject_1$K || (templateObject_1$K = __makeTemplateObject([":\u241F47e7dbf996c20e48f8f5f7235432acbe1ddb8441\u241F5491081266313732174:Filtres"], [":\u241F47e7dbf996c20e48f8f5f7235432acbe1ddb8441\u241F5491081266313732174:Filtres"])));
11429
+ i18n_0 = $localize(templateObject_1$I || (templateObject_1$I = __makeTemplateObject([":\u241F47e7dbf996c20e48f8f5f7235432acbe1ddb8441\u241F5491081266313732174:Filtres"], [":\u241F47e7dbf996c20e48f8f5f7235432acbe1ddb8441\u241F5491081266313732174:Filtres"])));
11337
11430
  }
11338
11431
  var i18n_2;
11339
11432
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -11341,7 +11434,7 @@
11341
11434
  i18n_2 = MSG_EXTERNAL_4359053901144852078$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_3;
11342
11435
  }
11343
11436
  else {
11344
- i18n_2 = $localize(templateObject_2$B || (templateObject_2$B = __makeTemplateObject([":\u241F515812e22dc3f7668cb6ad93e54740e5c1a140b0\u241F4359053901144852078:R\u00E9initialiser"], [":\u241F515812e22dc3f7668cb6ad93e54740e5c1a140b0\u241F4359053901144852078:R\u00E9initialiser"])));
11437
+ i18n_2 = $localize(templateObject_2$A || (templateObject_2$A = __makeTemplateObject([":\u241F515812e22dc3f7668cb6ad93e54740e5c1a140b0\u241F4359053901144852078:R\u00E9initialiser"], [":\u241F515812e22dc3f7668cb6ad93e54740e5c1a140b0\u241F4359053901144852078:R\u00E9initialiser"])));
11345
11438
  }
11346
11439
  var i18n_4;
11347
11440
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -11349,7 +11442,7 @@
11349
11442
  i18n_4 = MSG_EXTERNAL_3088922289163197887$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_5;
11350
11443
  }
11351
11444
  else {
11352
- i18n_4 = $localize(templateObject_3$s || (templateObject_3$s = __makeTemplateObject([":\u241F05233ae9fe87602db5d05c330c57200f3e63fad9\u241F3088922289163197887:Voir "], [":\u241F05233ae9fe87602db5d05c330c57200f3e63fad9\u241F3088922289163197887:Voir "])));
11445
+ i18n_4 = $localize(templateObject_3$q || (templateObject_3$q = __makeTemplateObject([":\u241F05233ae9fe87602db5d05c330c57200f3e63fad9\u241F3088922289163197887:Voir "], [":\u241F05233ae9fe87602db5d05c330c57200f3e63fad9\u241F3088922289163197887:Voir "])));
11353
11446
  }
11354
11447
  var i18n_6;
11355
11448
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -11357,7 +11450,7 @@
11357
11450
  i18n_6 = MSG_EXTERNAL_3809820644785537818$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_7;
11358
11451
  }
11359
11452
  else {
11360
- i18n_6 = $localize(templateObject_4$n || (templateObject_4$n = __makeTemplateObject([":\u241F2b5c164efaa4ab2f43d98ed7cb742d3424135de9\u241F3809820644785537818:recettes"], [":\u241F2b5c164efaa4ab2f43d98ed7cb742d3424135de9\u241F3809820644785537818:recettes"])));
11453
+ i18n_6 = $localize(templateObject_4$m || (templateObject_4$m = __makeTemplateObject([":\u241F2b5c164efaa4ab2f43d98ed7cb742d3424135de9\u241F3809820644785537818:recettes"], [":\u241F2b5c164efaa4ab2f43d98ed7cb742d3424135de9\u241F3809820644785537818:recettes"])));
11361
11454
  }
11362
11455
  var i18n_8;
11363
11456
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -11381,7 +11474,7 @@
11381
11474
  i18n_12 = MSG_EXTERNAL_2987005241567363499$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS____13;
11382
11475
  }
11383
11476
  else {
11384
- i18n_12 = $localize(templateObject_7$b || (templateObject_7$b = __makeTemplateObject([":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"], [":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"])));
11477
+ i18n_12 = $localize(templateObject_7$c || (templateObject_7$c = __makeTemplateObject([":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"], [":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"])));
11385
11478
  }
11386
11479
  var i18n_14;
11387
11480
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -11560,7 +11653,7 @@
11560
11653
  type: i0.Output
11561
11654
  }] });
11562
11655
  })();
11563
- var templateObject_1$K, templateObject_2$B, templateObject_3$s, templateObject_4$n, templateObject_5$j, templateObject_6$g, templateObject_7$b, templateObject_8$8, templateObject_9$6, templateObject_10$4, templateObject_11$4, templateObject_12$3, templateObject_13$3, templateObject_14$2, templateObject_15$2, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1;
11656
+ var templateObject_1$I, templateObject_2$A, templateObject_3$q, templateObject_4$m, templateObject_5$j, templateObject_6$g, templateObject_7$c, templateObject_8$8, templateObject_9$6, templateObject_10$4, templateObject_11$4, templateObject_12$3, templateObject_13$3, templateObject_14$2, templateObject_15$2, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1;
11564
11657
 
11565
11658
  var SelectPosButtonDirective = /** @class */ (function () {
11566
11659
  function SelectPosButtonDirective(el, contextService, posService) {
@@ -11863,7 +11956,7 @@
11863
11956
  i18n_0 = MSG_EXTERNAL_2218803795065127471$$LIB__WEB_COMPONENTS_RECIPE_PRICING_RECIPE_PRICING_COMPONENT_TS__1;
11864
11957
  }
11865
11958
  else {
11866
- i18n_0 = $localize(templateObject_1$J || (templateObject_1$J = __makeTemplateObject([":\u241F6cbbde0e661ae9f5f19f865ba802214c7432be8f\u241F2218803795065127471:Afficher le prix"], [":\u241F6cbbde0e661ae9f5f19f865ba802214c7432be8f\u241F2218803795065127471:Afficher le prix"])));
11959
+ i18n_0 = $localize(templateObject_1$H || (templateObject_1$H = __makeTemplateObject([":\u241F6cbbde0e661ae9f5f19f865ba802214c7432be8f\u241F2218803795065127471:Afficher le prix"], [":\u241F6cbbde0e661ae9f5f19f865ba802214c7432be8f\u241F2218803795065127471:Afficher le prix"])));
11867
11960
  }
11868
11961
  var i18n_2;
11869
11962
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -11871,7 +11964,7 @@
11871
11964
  i18n_2 = MSG_EXTERNAL_8418532136889699301$$LIB__WEB_COMPONENTS_RECIPE_PRICING_RECIPE_PRICING_COMPONENT_TS___3;
11872
11965
  }
11873
11966
  else {
11874
- i18n_2 = $localize(templateObject_2$A || (templateObject_2$A = __makeTemplateObject([":\u241Fa46e2443e6b0e54d02427631e80b76a326ee6fb3\u241F8418532136889699301:Soit"], [":\u241Fa46e2443e6b0e54d02427631e80b76a326ee6fb3\u241F8418532136889699301:Soit"])));
11967
+ i18n_2 = $localize(templateObject_2$z || (templateObject_2$z = __makeTemplateObject([":\u241Fa46e2443e6b0e54d02427631e80b76a326ee6fb3\u241F8418532136889699301:Soit"], [":\u241Fa46e2443e6b0e54d02427631e80b76a326ee6fb3\u241F8418532136889699301:Soit"])));
11875
11968
  }
11876
11969
  var i18n_4;
11877
11970
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -11879,7 +11972,7 @@
11879
11972
  i18n_4 = MSG_EXTERNAL_435913562251126057$$LIB__WEB_COMPONENTS_RECIPE_PRICING_RECIPE_PRICING_COMPONENT_TS_____5;
11880
11973
  }
11881
11974
  else {
11882
- i18n_4 = $localize(templateObject_3$r || (templateObject_3$r = __makeTemplateObject([":\u241Fa42043c93efe6e7c1206218147891026d3496f33\u241F435913562251126057:/personne"], [":\u241Fa42043c93efe6e7c1206218147891026d3496f33\u241F435913562251126057:/personne"])));
11975
+ i18n_4 = $localize(templateObject_3$p || (templateObject_3$p = __makeTemplateObject([":\u241Fa42043c93efe6e7c1206218147891026d3496f33\u241F435913562251126057:/personne"], [":\u241Fa42043c93efe6e7c1206218147891026d3496f33\u241F435913562251126057:/personne"])));
11883
11976
  }
11884
11977
  var i18n_6;
11885
11978
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -11887,7 +11980,7 @@
11887
11980
  i18n_6 = MSG_EXTERNAL_8969810584578915685$$LIB__WEB_COMPONENTS_RECIPE_PRICING_RECIPE_PRICING_COMPONENT_TS____7;
11888
11981
  }
11889
11982
  else {
11890
- i18n_6 = $localize(templateObject_4$m || (templateObject_4$m = __makeTemplateObject([":\u241Fd1284fc0cb4f023efce4ec7e899c9ae8ab78d0d3\u241F8969810584578915685:/pers."], [":\u241Fd1284fc0cb4f023efce4ec7e899c9ae8ab78d0d3\u241F8969810584578915685:/pers."])));
11983
+ i18n_6 = $localize(templateObject_4$l || (templateObject_4$l = __makeTemplateObject([":\u241Fd1284fc0cb4f023efce4ec7e899c9ae8ab78d0d3\u241F8969810584578915685:/pers."], [":\u241Fd1284fc0cb4f023efce4ec7e899c9ae8ab78d0d3\u241F8969810584578915685:/pers."])));
11891
11984
  }
11892
11985
  return [["class", "miam-recipe-pricing", "ngMiamSelectPosButton", "", 4, "ngIf"], ["ngMiamSelectPosButton", "", 1, "miam-recipe-pricing"], ["class", "miam-recipe-pricing__with-pos", 4, "ngIf"], [1, "miam-recipe-pricing__without-pos"], [1, "miam-ds-button", "ghost", "miam-select-pos-button__open-store-selector-button", 3, "click"], i18n_0, [1, "miam-recipe-pricing__with-pos"], [1, "miam-recipe-pricing__wrapper"], [1, "miam-recipe-pricing__wrapper__price", "miam-ds-text", "size-l", "weight-xxl"], ["class", "miam-recipe-pricing__wrapper__subline miam-ds-text size-xs weight-m", 4, "ngIf", "ngIfElse"], ["defaultGuestsText", ""], [1, "miam-recipe-pricing__total"], i18n_2, [1, "miam-recipe-pricing__wrapper__subline", "miam-ds-text", "size-xs", "weight-m"], [4, "ngIf"], i18n_4, [1, "miam-recipe-pricing__wrapper__subline", "miam-ds-text", "size-m", "weight-m"], i18n_6];
11893
11986
  }, template: function RecipePricingComponent_Template(rf, ctx) {
@@ -11922,7 +12015,7 @@
11922
12015
  type: i0.Input
11923
12016
  }] });
11924
12017
  })();
11925
- var templateObject_1$J, templateObject_2$A, templateObject_3$r, templateObject_4$m;
12018
+ var templateObject_1$H, templateObject_2$z, templateObject_3$p, templateObject_4$l;
11926
12019
 
11927
12020
  var _c6$1 = function (a0) { return { "font-weight": a0 }; };
11928
12021
  var RecipeTypeChooserComponent = /** @class */ (function () {
@@ -11967,7 +12060,7 @@
11967
12060
  i18n_0 = MSG_EXTERNAL_591007413954103680$$LIB__COMPONENTS_RECIPE_TYPE_CHOOSER_RECIPE_TYPE_CHOOSER_COMPONENT_TS_1;
11968
12061
  }
11969
12062
  else {
11970
- i18n_0 = $localize(templateObject_1$I || (templateObject_1$I = __makeTemplateObject([":\u241Fad5651a8fed9db2d35ebfb77175c87ed1f148410\u241F591007413954103680:Une entr\u00E9e"], [":\u241Fad5651a8fed9db2d35ebfb77175c87ed1f148410\u241F591007413954103680:Une entr\u00E9e"])));
12063
+ i18n_0 = $localize(templateObject_1$G || (templateObject_1$G = __makeTemplateObject([":\u241Fad5651a8fed9db2d35ebfb77175c87ed1f148410\u241F591007413954103680:Une entr\u00E9e"], [":\u241Fad5651a8fed9db2d35ebfb77175c87ed1f148410\u241F591007413954103680:Une entr\u00E9e"])));
11971
12064
  }
11972
12065
  var i18n_2;
11973
12066
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -11975,7 +12068,7 @@
11975
12068
  i18n_2 = MSG_EXTERNAL_2940644147071008715$$LIB__COMPONENTS_RECIPE_TYPE_CHOOSER_RECIPE_TYPE_CHOOSER_COMPONENT_TS_3;
11976
12069
  }
11977
12070
  else {
11978
- i18n_2 = $localize(templateObject_2$z || (templateObject_2$z = __makeTemplateObject([":\u241Fad33d88eafaca2ef5d4a71c9caea22d8f0ee581c\u241F2940644147071008715:Un plat principal"], [":\u241Fad33d88eafaca2ef5d4a71c9caea22d8f0ee581c\u241F2940644147071008715:Un plat principal"])));
12071
+ i18n_2 = $localize(templateObject_2$y || (templateObject_2$y = __makeTemplateObject([":\u241Fad33d88eafaca2ef5d4a71c9caea22d8f0ee581c\u241F2940644147071008715:Un plat principal"], [":\u241Fad33d88eafaca2ef5d4a71c9caea22d8f0ee581c\u241F2940644147071008715:Un plat principal"])));
11979
12072
  }
11980
12073
  var i18n_4;
11981
12074
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -11983,7 +12076,7 @@
11983
12076
  i18n_4 = MSG_EXTERNAL_8322335486568562833$$LIB__COMPONENTS_RECIPE_TYPE_CHOOSER_RECIPE_TYPE_CHOOSER_COMPONENT_TS_5;
11984
12077
  }
11985
12078
  else {
11986
- i18n_4 = $localize(templateObject_3$q || (templateObject_3$q = __makeTemplateObject([":\u241Ffebb2f4f5330f0c670f2ac0d004bdd19758f57e2\u241F8322335486568562833:Un dessert"], [":\u241Ffebb2f4f5330f0c670f2ac0d004bdd19758f57e2\u241F8322335486568562833:Un dessert"])));
12079
+ i18n_4 = $localize(templateObject_3$o || (templateObject_3$o = __makeTemplateObject([":\u241Ffebb2f4f5330f0c670f2ac0d004bdd19758f57e2\u241F8322335486568562833:Un dessert"], [":\u241Ffebb2f4f5330f0c670f2ac0d004bdd19758f57e2\u241F8322335486568562833:Un dessert"])));
11987
12080
  }
11988
12081
  return [[1, "recipe-type-chooser"], [1, "recipe-type-chooser__item"], [3, "height", "width", "iconName", "click"], [3, "ngStyle"], i18n_0, i18n_2, i18n_4];
11989
12082
  }, template: function RecipeTypeChooserComponent_Template(rf, ctx) {
@@ -12044,11 +12137,11 @@
12044
12137
  type: i0.Input
12045
12138
  }] });
12046
12139
  })();
12047
- var templateObject_1$I, templateObject_2$z, templateObject_3$q;
12140
+ var templateObject_1$G, templateObject_2$y, templateObject_3$o;
12048
12141
 
12049
12142
  var _c0$j = ["miamLeftOfSliderTrack"];
12050
12143
  var _c1$b = ["miamSliderColored"];
12051
- var _c2$7 = ["miamSliderHandle"];
12144
+ var _c2$6 = ["miamSliderHandle"];
12052
12145
  function SliderComponent_ng_miam_icon_2_Template(rf, ctx) {
12053
12146
  if (rf & 1) {
12054
12147
  i0__namespace.ɵɵelement(0, "ng-miam-icon", 10);
@@ -12093,7 +12186,7 @@
12093
12186
  i0__namespace.ɵɵproperty("ngIf", i_r7 == ctx_r3.selectedIndex);
12094
12187
  }
12095
12188
  }
12096
- var _c3$4 = function (a0) { return { "selected": a0 }; };
12189
+ var _c3$3 = function (a0) { return { "selected": a0 }; };
12097
12190
  function SliderComponent_span_10_Template(rf, ctx) {
12098
12191
  if (rf & 1) {
12099
12192
  i0__namespace.ɵɵelementStart(0, "span", 19);
@@ -12104,7 +12197,7 @@
12104
12197
  var step_r17 = ctx.$implicit;
12105
12198
  var i_r18 = ctx.index;
12106
12199
  var ctx_r4 = i0__namespace.ɵɵnextContext();
12107
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c3$4, i_r18 === ctx_r4.selectedIndex));
12200
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c3$3, i_r18 === ctx_r4.selectedIndex));
12108
12201
  i0__namespace.ɵɵadvance(1);
12109
12202
  i0__namespace.ɵɵtextInterpolate(step_r17);
12110
12203
  }
@@ -12158,7 +12251,7 @@
12158
12251
  if (rf & 1) {
12159
12252
  i0__namespace.ɵɵviewQuery(_c0$j, 1);
12160
12253
  i0__namespace.ɵɵviewQuery(_c1$b, 1);
12161
- i0__namespace.ɵɵviewQuery(_c2$7, 1);
12254
+ i0__namespace.ɵɵviewQuery(_c2$6, 1);
12162
12255
  }
12163
12256
  if (rf & 2) {
12164
12257
  var _t = void 0;
@@ -12565,7 +12658,7 @@
12565
12658
  i18n_1 = MSG_EXTERNAL_8398233202919865612$$LIB__COMPONENTS_TIME_PICKER_TIME_PICKER_COMPONENT_TS_2;
12566
12659
  }
12567
12660
  else {
12568
- i18n_1 = $localize(templateObject_1$H || (templateObject_1$H = __makeTemplateObject([":\u241Fdb0ffbb13aa0ec193b8664c627359e86274d15fa\u241F8398233202919865612:h"], [":\u241Fdb0ffbb13aa0ec193b8664c627359e86274d15fa\u241F8398233202919865612:h"])));
12661
+ i18n_1 = $localize(templateObject_1$F || (templateObject_1$F = __makeTemplateObject([":\u241Fdb0ffbb13aa0ec193b8664c627359e86274d15fa\u241F8398233202919865612:h"], [":\u241Fdb0ffbb13aa0ec193b8664c627359e86274d15fa\u241F8398233202919865612:h"])));
12569
12662
  }
12570
12663
  var i18n_3;
12571
12664
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -12573,7 +12666,7 @@
12573
12666
  i18n_3 = MSG_EXTERNAL_3901733599428143571$$LIB__COMPONENTS_TIME_PICKER_TIME_PICKER_COMPONENT_TS_4;
12574
12667
  }
12575
12668
  else {
12576
- i18n_3 = $localize(templateObject_2$y || (templateObject_2$y = __makeTemplateObject([":\u241F7b4524d65d87a53c32b788d68b49e9b83e3b42b2\u241F3901733599428143571:min"], [":\u241F7b4524d65d87a53c32b788d68b49e9b83e3b42b2\u241F3901733599428143571:min"])));
12669
+ i18n_3 = $localize(templateObject_2$x || (templateObject_2$x = __makeTemplateObject([":\u241F7b4524d65d87a53c32b788d68b49e9b83e3b42b2\u241F3901733599428143571:min"], [":\u241F7b4524d65d87a53c32b788d68b49e9b83e3b42b2\u241F3901733599428143571:min"])));
12577
12670
  }
12578
12671
  return [[1, "miam-time-picker", "m-default-card", "m-small-typo"], [1, "miam-time-picker__label"], [4, "ngTemplateOutlet"], [1, "miam-time-picker__container", 3, "formGroup"], ["primaryColor", "var( --m-color-light-slate)", 3, "iconName"], ["formControlName", "hours", "onClick", "this.select();", 1, "miam-time-picker__container__input", 3, "maxLength", "blur"], [1, "miam-time-picker__container__label"], i18n_1, ["formControlName", "minutes", "onClick", "this.select();", 1, "miam-time-picker__container__input", 3, "maxLength", "blur"], i18n_3];
12579
12672
  }, template: function TimePickerComponent_Template(rf, ctx) {
@@ -12633,7 +12726,7 @@
12633
12726
  args: ['title', { static: false }]
12634
12727
  }] });
12635
12728
  })();
12636
- var templateObject_1$H, templateObject_2$y;
12729
+ var templateObject_1$F, templateObject_2$x;
12637
12730
 
12638
12731
  function ToasterComponent_div_2_Template(rf, ctx) {
12639
12732
  if (rf & 1) {
@@ -13433,7 +13526,7 @@
13433
13526
  if (rf & 2) {
13434
13527
  var ctx_r4 = i0__namespace.ɵɵnextContext(2);
13435
13528
  i0__namespace.ɵɵadvance(5);
13436
- i0__namespace.ɵɵtextInterpolate(ctx_r4.recipesIncludingIngredient);
13529
+ i0__namespace.ɵɵtextInterpolate(ctx_r4.isInXRecipes());
13437
13530
  }
13438
13531
  }
13439
13532
  var _c16 = function (a0, a1) { return { "added": a0, "disabled": a1 }; };
@@ -13484,25 +13577,23 @@
13484
13577
  i0__namespace.ɵɵadvance(1);
13485
13578
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.product.basketEntry.status === "initial" || ctx_r0.product.basketEntry.status === "active")("ngIfElse", _r2);
13486
13579
  i0__namespace.ɵɵadvance(3);
13487
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.recipesIncludingIngredient > 1 && ctx_r0.product.basketEntry.status === "active");
13580
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.isInXRecipes() > 1 && ctx_r0.product.basketEntry.status === "active");
13488
13581
  }
13489
13582
  }
13490
13583
  var ProductCardComponent = /** @class */ (function (_super) {
13491
13584
  __extends(ProductCardComponent, _super);
13492
- function ProductCardComponent(cdr, basketsService, recipeDetailsService, recipesService, analyticsService, itemsService, ignoredBasketsService, basketActionsService, elementRef, contextService) {
13585
+ function ProductCardComponent(cdr, basketsService, recipeDetailsService, recipesService, analyticsService, ignoredBasketsService, basketActionsService, elementRef, contextService) {
13493
13586
  var _this = _super.call(this, analyticsService) || this;
13494
13587
  _this.cdr = cdr;
13495
13588
  _this.basketsService = basketsService;
13496
13589
  _this.recipeDetailsService = recipeDetailsService;
13497
13590
  _this.recipesService = recipesService;
13498
13591
  _this.analyticsService = analyticsService;
13499
- _this.itemsService = itemsService;
13500
13592
  _this.ignoredBasketsService = ignoredBasketsService;
13501
13593
  _this.basketActionsService = basketActionsService;
13502
13594
  _this.elementRef = elementRef;
13503
13595
  _this.contextService = contextService;
13504
13596
  _this.subscriptions = [];
13505
- _this.recipesIncludingIngredient = 0;
13506
13597
  _this.loading = false;
13507
13598
  _this.loadingAddToBasket = false;
13508
13599
  _this.counterMinusLoading = false;
@@ -13514,13 +13605,9 @@
13514
13605
  }
13515
13606
  ProductCardComponent.prototype.ngOnInit = function () {
13516
13607
  var _this = this;
13517
- this.subscriptions.push(this.recipeDetailsService.productsByCategory$.subscribe(function () { return _this.isProductSponsored(); }), this.executeActionFromStorage(), this.loadOnRecipesActions(), this.loadOnIngredientsRemoval(), this.updateIngredientQuantityOnRecipeChange());
13608
+ this.subscriptions.push(this.recipeDetailsService.productsByCategory$.subscribe(function () { return _this.isProductSponsored(); }), this.executeActionFromStorage(), this.loadOnRecipesActions(), this.loadOnIngredientsRemoval(), this.updateIngredientQuantityOnRecipeChange(), this.scrollBackOnProductReplaced());
13518
13609
  };
13519
13610
  ProductCardComponent.prototype.ngOnChanges = function (changes) {
13520
- if (changes.originTrace) {
13521
- return;
13522
- }
13523
- this.recipesIncludingIngredient = this.isInXRecipes();
13524
13611
  this.loadingAddToBasket = false;
13525
13612
  if (changes.ingredient) {
13526
13613
  this.modifiedIngQty = +this.product.ingredient.quantity;
@@ -13531,6 +13618,15 @@
13531
13618
  var _a;
13532
13619
  (_a = this.subscriptions) === null || _a === void 0 ? void 0 : _a.forEach(function (sub) { return sub.unsubscribe(); });
13533
13620
  };
13621
+ ProductCardComponent.prototype.scrollBackOnProductReplaced = function () {
13622
+ var _this = this;
13623
+ return this.recipeDetailsService.productsLoading$.subscribe(function (isLoading) {
13624
+ _this.cdr.detectChanges();
13625
+ if (!isLoading && _this.recipeDetailsService.isProductsByCategorySet()) {
13626
+ _this.scrollBackToProductCard();
13627
+ }
13628
+ });
13629
+ };
13534
13630
  ProductCardComponent.prototype.executeActionFromStorage = function () {
13535
13631
  var _this = this;
13536
13632
  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) {
@@ -13589,7 +13685,7 @@
13589
13685
  this.cdr.detectChanges();
13590
13686
  };
13591
13687
  ProductCardComponent.prototype.replaceProduct = function (ignoreSelected) {
13592
- this.recipeDetailsService.scrollBackToElementId = this.elementRef.nativeElement.id;
13688
+ this.recipeDetailsService.scrollBackToBasketEntryId = this.product.basketEntry.id;
13593
13689
  this.recipeDetailsService.replaceBasketEntry(this.product.basketEntry, ignoreSelected);
13594
13690
  };
13595
13691
  ProductCardComponent.prototype.isInXRecipes = function () {
@@ -13601,6 +13697,24 @@
13601
13697
  ProductCardComponent.prototype.currentPath = function () {
13602
13698
  return '';
13603
13699
  };
13700
+ ProductCardComponent.prototype.scrollBackToProductCard = function () {
13701
+ var _this = this;
13702
+ if (this.recipeDetailsService.scrollBackToBasketEntryId === this.product.basketEntry.id) {
13703
+ setTimeout(function () {
13704
+ var elementId = _this.elementRef.nativeElement.id;
13705
+ if (document.getElementById(elementId)) {
13706
+ document.getElementById(elementId).scrollIntoView({
13707
+ behavior: _this.recipeDetailsService.hasReplaced ? 'smooth' : 'auto',
13708
+ block: 'center',
13709
+ inline: 'center'
13710
+ });
13711
+ _this.cdr.detectChanges();
13712
+ _this.recipeDetailsService.scrollBackToBasketEntryId = null;
13713
+ _this.recipeDetailsService.hasReplaced = false;
13714
+ }
13715
+ }, 0);
13716
+ }
13717
+ };
13604
13718
  ProductCardComponent.prototype.loadOnRecipesActions = function () {
13605
13719
  var _this = this;
13606
13720
  return rxjs.combineLatest([
@@ -13640,7 +13754,7 @@
13640
13754
  };
13641
13755
  return ProductCardComponent;
13642
13756
  }(EventTracerComponent));
13643
- 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), i0__namespace.ɵɵdirectiveInject(ContextService)); };
13757
+ 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(IgnoredIngredientsService), i0__namespace.ɵɵdirectiveInject(BasketActionsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(ContextService)); };
13644
13758
  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: function () {
13645
13759
  var i18n_0;
13646
13760
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -13648,7 +13762,7 @@
13648
13762
  i18n_0 = MSG_EXTERNAL_4705093661060921903$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS___1;
13649
13763
  }
13650
13764
  else {
13651
- i18n_0 = $localize(templateObject_1$G || (templateObject_1$G = __makeTemplateObject([":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"], [":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"])));
13765
+ i18n_0 = $localize(templateObject_1$E || (templateObject_1$E = __makeTemplateObject([":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"], [":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"])));
13652
13766
  }
13653
13767
  var i18n_2;
13654
13768
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -13656,7 +13770,7 @@
13656
13770
  i18n_2 = MSG_EXTERNAL_8545968125113919212$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS____3;
13657
13771
  }
13658
13772
  else {
13659
- i18n_2 = $localize(templateObject_2$x || (templateObject_2$x = __makeTemplateObject([":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"], [":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"])));
13773
+ i18n_2 = $localize(templateObject_2$w || (templateObject_2$w = __makeTemplateObject([":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"], [":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"])));
13660
13774
  }
13661
13775
  var i18n_4;
13662
13776
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -13664,7 +13778,7 @@
13664
13778
  i18n_4 = MSG_EXTERNAL_5442623736103363122$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS____5;
13665
13779
  }
13666
13780
  else {
13667
- i18n_4 = $localize(templateObject_3$p || (templateObject_3$p = __makeTemplateObject([":\u241F2c8c419dc34f3be07156ad9249f03aeb31d34872\u241F5442623736103363122:Ignorer ce produit"], [":\u241F2c8c419dc34f3be07156ad9249f03aeb31d34872\u241F5442623736103363122:Ignorer ce produit"])));
13781
+ i18n_4 = $localize(templateObject_3$n || (templateObject_3$n = __makeTemplateObject([":\u241F2c8c419dc34f3be07156ad9249f03aeb31d34872\u241F5442623736103363122:Ignorer ce produit"], [":\u241F2c8c419dc34f3be07156ad9249f03aeb31d34872\u241F5442623736103363122:Ignorer ce produit"])));
13668
13782
  }
13669
13783
  var i18n_6;
13670
13784
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -13672,7 +13786,7 @@
13672
13786
  i18n_6 = MSG_EXTERNAL_4434991115235641711$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS____7;
13673
13787
  }
13674
13788
  else {
13675
- i18n_6 = $localize(templateObject_4$l || (templateObject_4$l = __makeTemplateObject([":\u241F0b2d6b8f0c4150bdc5313f3dc99139dc482a9265\u241F4434991115235641711: Cet ingr\u00E9dient ne sera pas ajout\u00E9 \u00E0 votre panier "], [":\u241F0b2d6b8f0c4150bdc5313f3dc99139dc482a9265\u241F4434991115235641711: Cet ingr\u00E9dient ne sera pas ajout\u00E9 \u00E0 votre panier "])));
13789
+ i18n_6 = $localize(templateObject_4$k || (templateObject_4$k = __makeTemplateObject([":\u241F0b2d6b8f0c4150bdc5313f3dc99139dc482a9265\u241F4434991115235641711: Cet ingr\u00E9dient ne sera pas ajout\u00E9 \u00E0 votre panier "], [":\u241F0b2d6b8f0c4150bdc5313f3dc99139dc482a9265\u241F4434991115235641711: Cet ingr\u00E9dient ne sera pas ajout\u00E9 \u00E0 votre panier "])));
13676
13790
  }
13677
13791
  var i18n_8;
13678
13792
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -13696,7 +13810,7 @@
13696
13810
  i18n_12 = MSG_EXTERNAL_7389019358817586225$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS___13;
13697
13811
  }
13698
13812
  else {
13699
- i18n_12 = $localize(templateObject_7$a || (templateObject_7$a = __makeTemplateObject([":\u241Fb4469d81103a2a9875dcf6e019a952b9bca3c117\u241F7389019358817586225:Calcul\u00E9 pour "], [":\u241Fb4469d81103a2a9875dcf6e019a952b9bca3c117\u241F7389019358817586225:Calcul\u00E9 pour "])));
13813
+ i18n_12 = $localize(templateObject_7$b || (templateObject_7$b = __makeTemplateObject([":\u241Fb4469d81103a2a9875dcf6e019a952b9bca3c117\u241F7389019358817586225:Calcul\u00E9 pour "], [":\u241Fb4469d81103a2a9875dcf6e019a952b9bca3c117\u241F7389019358817586225:Calcul\u00E9 pour "])));
13700
13814
  }
13701
13815
  var i18n_14;
13702
13816
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -13725,11 +13839,11 @@
13725
13839
  encapsulation: i0.ViewEncapsulation.None,
13726
13840
  changeDetection: i0.ChangeDetectionStrategy.OnPush
13727
13841
  }]
13728
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: RecipesService }, { type: AnalyticsService }, { type: ItemsService }, { type: IgnoredIngredientsService }, { type: BasketActionsService }, { type: i0__namespace.ElementRef }, { type: ContextService }]; }, { product: [{
13842
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: RecipesService }, { type: AnalyticsService }, { type: IgnoredIngredientsService }, { type: BasketActionsService }, { type: i0__namespace.ElementRef }, { type: ContextService }]; }, { product: [{
13729
13843
  type: i0.Input
13730
13844
  }] });
13731
13845
  })();
13732
- var templateObject_1$G, templateObject_2$x, templateObject_3$p, templateObject_4$l, templateObject_5$i, templateObject_6$f, templateObject_7$a, templateObject_8$7;
13846
+ var templateObject_1$E, templateObject_2$w, templateObject_3$n, templateObject_4$k, templateObject_5$i, templateObject_6$f, templateObject_7$b, templateObject_8$7;
13733
13847
 
13734
13848
  function ProductsPickerComponent_ng_container_3_span_3_Template(rf, ctx) {
13735
13849
  if (rf & 1) {
@@ -13919,15 +14033,8 @@
13919
14033
  return _this;
13920
14034
  }
13921
14035
  ProductsPickerComponent.prototype.ngOnInit = function () {
13922
- var _this = this;
13923
14036
  this.listenToProducts();
13924
14037
  this.listenToTotalProducts();
13925
- this.subscriptions.push(this.recipeDetailsService.productsLoading$.subscribe(function (isLoading) {
13926
- _this.cdr.detectChanges();
13927
- if (!isLoading && _this.recipeDetailsService.isProductsByCategorySet()) {
13928
- _this.scrollBackToProductCard();
13929
- }
13930
- }));
13931
14038
  };
13932
14039
  ProductsPickerComponent.prototype.ngOnDestroy = function () {
13933
14040
  var _a;
@@ -13936,21 +14043,6 @@
13936
14043
  ProductsPickerComponent.prototype.trackByFn = function (index, item) {
13937
14044
  return item.basketEntry.name;
13938
14045
  };
13939
- ProductsPickerComponent.prototype.scrollBackToProductCard = function () {
13940
- var _this = this;
13941
- if (this.recipeDetailsService.scrollBackToElementId) {
13942
- setTimeout(function () {
13943
- document.getElementById(_this.recipeDetailsService.scrollBackToElementId).scrollIntoView({
13944
- behavior: _this.recipeDetailsService.hasReplaced ? 'smooth' : 'auto',
13945
- block: 'center',
13946
- inline: 'center'
13947
- });
13948
- _this.cdr.detectChanges();
13949
- _this.recipeDetailsService.scrollBackToElementId = null;
13950
- _this.recipeDetailsService.hasReplaced = false;
13951
- }, 0);
13952
- }
13953
- };
13954
14046
  ProductsPickerComponent.prototype.listenToProducts = function () {
13955
14047
  var _this = this;
13956
14048
  this.subscriptions.push(this.recipeDetailsService.productsByCategory$.subscribe(function () { return _this.cdr.detectChanges(); }));
@@ -13981,7 +14073,7 @@
13981
14073
  i18n_0 = MSG_EXTERNAL_605370619355451874$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS___1;
13982
14074
  }
13983
14075
  else {
13984
- i18n_0 = $localize(templateObject_1$F || (templateObject_1$F = __makeTemplateObject([":\u241Ff2568064e2473c7c3d8d97951a6972d1ff930a96\u241F605370619355451874: ingr\u00E9dients"], [":\u241Ff2568064e2473c7c3d8d97951a6972d1ff930a96\u241F605370619355451874: ingr\u00E9dients"])));
14076
+ i18n_0 = $localize(templateObject_1$D || (templateObject_1$D = __makeTemplateObject([":\u241Ff2568064e2473c7c3d8d97951a6972d1ff930a96\u241F605370619355451874: ingr\u00E9dients"], [":\u241Ff2568064e2473c7c3d8d97951a6972d1ff930a96\u241F605370619355451874: ingr\u00E9dients"])));
13985
14077
  }
13986
14078
  var i18n_2;
13987
14079
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -13989,7 +14081,7 @@
13989
14081
  i18n_2 = MSG_EXTERNAL_2503766562931300230$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS___3;
13990
14082
  }
13991
14083
  else {
13992
- i18n_2 = $localize(templateObject_2$w || (templateObject_2$w = __makeTemplateObject([":\u241Fe75af30c885be857c622a937ed16d2420bb56573\u241F2503766562931300230: ingr\u00E9dient"], [":\u241Fe75af30c885be857c622a937ed16d2420bb56573\u241F2503766562931300230: ingr\u00E9dient"])));
14084
+ i18n_2 = $localize(templateObject_2$v || (templateObject_2$v = __makeTemplateObject([":\u241Fe75af30c885be857c622a937ed16d2420bb56573\u241F2503766562931300230: ingr\u00E9dient"], [":\u241Fe75af30c885be857c622a937ed16d2420bb56573\u241F2503766562931300230: ingr\u00E9dient"])));
13993
14085
  }
13994
14086
  var i18n_4;
13995
14087
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -13997,7 +14089,7 @@
13997
14089
  i18n_4 = MSG_EXTERNAL_2731668650375138999$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS__5;
13998
14090
  }
13999
14091
  else {
14000
- i18n_4 = $localize(templateObject_3$o || (templateObject_3$o = __makeTemplateObject([":\u241Fe41275de6f81d16eaa6e8a189c3dc4667c046e6e\u241F2731668650375138999: D\u00E9j\u00E0 dans le placard "], [":\u241Fe41275de6f81d16eaa6e8a189c3dc4667c046e6e\u241F2731668650375138999: D\u00E9j\u00E0 dans le placard "])));
14092
+ i18n_4 = $localize(templateObject_3$m || (templateObject_3$m = __makeTemplateObject([":\u241Fe41275de6f81d16eaa6e8a189c3dc4667c046e6e\u241F2731668650375138999: D\u00E9j\u00E0 dans le placard "], [":\u241Fe41275de6f81d16eaa6e8a189c3dc4667c046e6e\u241F2731668650375138999: D\u00E9j\u00E0 dans le placard "])));
14001
14093
  }
14002
14094
  var i18n_6;
14003
14095
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -14005,7 +14097,7 @@
14005
14097
  i18n_6 = MSG_EXTERNAL_7578478170177927970$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS__7;
14006
14098
  }
14007
14099
  else {
14008
- i18n_6 = $localize(templateObject_4$k || (templateObject_4$k = __makeTemplateObject([":\u241F197e633392ff553015c1931947781d9ebba476b9\u241F7578478170177927970:Articles indisponibles"], [":\u241F197e633392ff553015c1931947781d9ebba476b9\u241F7578478170177927970:Articles indisponibles"])));
14100
+ i18n_6 = $localize(templateObject_4$j || (templateObject_4$j = __makeTemplateObject([":\u241F197e633392ff553015c1931947781d9ebba476b9\u241F7578478170177927970:Articles indisponibles"], [":\u241F197e633392ff553015c1931947781d9ebba476b9\u241F7578478170177927970:Articles indisponibles"])));
14009
14101
  }
14010
14102
  var i18n_8;
14011
14103
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -14081,7 +14173,7 @@
14081
14173
  type: i0.Output
14082
14174
  }] });
14083
14175
  })();
14084
- var templateObject_1$F, templateObject_2$w, templateObject_3$o, templateObject_4$k, templateObject_5$h, templateObject_6$e;
14176
+ var templateObject_1$D, templateObject_2$v, templateObject_3$m, templateObject_4$j, templateObject_5$h, templateObject_6$e;
14085
14177
 
14086
14178
  var ProductAdditionCardComponent = /** @class */ (function () {
14087
14179
  function ProductAdditionCardComponent(productAdditionService) {
@@ -14097,7 +14189,7 @@
14097
14189
  i18n_0 = MSG_EXTERNAL_1525113191484251425$$LIB__COMPONENTS_PRODUCT_ADDITION_CARD_PRODUCT_ADDITION_CARD_COMPONENT_TS_1;
14098
14190
  }
14099
14191
  else {
14100
- i18n_0 = $localize(templateObject_1$E || (templateObject_1$E = __makeTemplateObject([":\u241Ff6a73fdf0e43fb78d2badaca50e79f1f5f496258\u241F1525113191484251425:Besoin de quelque chose en particulier ?"], [":\u241Ff6a73fdf0e43fb78d2badaca50e79f1f5f496258\u241F1525113191484251425:Besoin de quelque chose en particulier ?"])));
14192
+ i18n_0 = $localize(templateObject_1$C || (templateObject_1$C = __makeTemplateObject([":\u241Ff6a73fdf0e43fb78d2badaca50e79f1f5f496258\u241F1525113191484251425:Besoin de quelque chose en particulier ?"], [":\u241Ff6a73fdf0e43fb78d2badaca50e79f1f5f496258\u241F1525113191484251425:Besoin de quelque chose en particulier ?"])));
14101
14193
  }
14102
14194
  var i18n_2;
14103
14195
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -14105,43 +14197,46 @@
14105
14197
  i18n_2 = MSG_EXTERNAL_3600300940826652542$$LIB__COMPONENTS_PRODUCT_ADDITION_CARD_PRODUCT_ADDITION_CARD_COMPONENT_TS_3;
14106
14198
  }
14107
14199
  else {
14108
- i18n_2 = $localize(templateObject_2$v || (templateObject_2$v = __makeTemplateObject([":\u241F02d62e50d45d9f9373ea25239767f0e2ae57e34d\u241F3600300940826652542:Ajouter un produit"], [":\u241F02d62e50d45d9f9373ea25239767f0e2ae57e34d\u241F3600300940826652542:Ajouter un produit"])));
14200
+ i18n_2 = $localize(templateObject_2$u || (templateObject_2$u = __makeTemplateObject([":\u241F02d62e50d45d9f9373ea25239767f0e2ae57e34d\u241F3600300940826652542:Ajouter un produit"], [":\u241F02d62e50d45d9f9373ea25239767f0e2ae57e34d\u241F3600300940826652542:Ajouter un produit"])));
14109
14201
  }
14110
- return [[1, "miam-product-addition-card"], i18n_0, [1, "miam-product-addition-card__button", "miam-ds-button", "secondary", "small", 3, "click"], i18n_2];
14202
+ return [[1, "miam-product-addition-card"], [1, "miam-product-addition-card__title"], i18n_0, [1, "miam-product-addition-card__button", "miam-ds-button", "secondary", "small", 3, "click"], i18n_2];
14111
14203
  }, template: function ProductAdditionCardComponent_Template(rf, ctx) {
14112
14204
  if (rf & 1) {
14113
14205
  i0__namespace.ɵɵelementStart(0, "div", 0);
14114
- i0__namespace.ɵɵelementStart(1, "span");
14115
- i0__namespace.ɵɵi18n(2, 1);
14206
+ i0__namespace.ɵɵelementStart(1, "span", 1);
14207
+ i0__namespace.ɵɵi18n(2, 2);
14116
14208
  i0__namespace.ɵɵelementEnd();
14117
- i0__namespace.ɵɵelementStart(3, "button", 2);
14209
+ i0__namespace.ɵɵelementStart(3, "button", 3);
14118
14210
  i0__namespace.ɵɵlistener("click", function ProductAdditionCardComponent_Template_button_click_3_listener() { return ctx.productAdditionService.changeModalState(true); });
14119
14211
  i0__namespace.ɵɵelementStart(4, "span");
14120
- i0__namespace.ɵɵi18n(5, 3);
14212
+ i0__namespace.ɵɵi18n(5, 4);
14121
14213
  i0__namespace.ɵɵelementEnd();
14122
14214
  i0__namespace.ɵɵelementEnd();
14123
14215
  i0__namespace.ɵɵelementEnd();
14124
14216
  }
14125
- }, styles: [".miam-product-addition-card[_ngcontent-%COMP%]{padding:24px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:var(--miam-ds-color-neutral-50)}.miam-product-addition-card[_ngcontent-%COMP%] .miam-product-addition-card__button[_ngcontent-%COMP%]{border-radius:32px}"] });
14217
+ }, styles: [".miam-product-addition-card{padding:24px 16px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:16px;background:var(--miam-ds-color-neutral-50)}.miam-product-addition-card .miam-product-addition-card__button{border-radius:32px}"], encapsulation: 2, changeDetection: 0 });
14126
14218
  (function () {
14127
14219
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ProductAdditionCardComponent, [{
14128
14220
  type: i0.Component,
14129
14221
  args: [{
14130
14222
  selector: 'ng-miam-product-addition-card',
14131
14223
  templateUrl: './product-addition-card.component.html',
14132
- styleUrls: ['./product-addition-card.component.scss']
14224
+ styleUrls: ['./product-addition-card.component.scss'],
14225
+ encapsulation: i0.ViewEncapsulation.None,
14226
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
14133
14227
  }]
14134
14228
  }], function () { return [{ type: ProductAdditionService }]; }, null);
14135
14229
  })();
14136
- var templateObject_1$E, templateObject_2$v;
14230
+ var templateObject_1$C, templateObject_2$u;
14137
14231
 
14138
14232
  var StoreLocatorComponent = /** @class */ (function (_super) {
14139
14233
  __extends(StoreLocatorComponent, _super);
14140
- function StoreLocatorComponent(analyticsService, contextService, storeLocatorService) {
14234
+ function StoreLocatorComponent(analyticsService, storeLocatorService, userService, cdr) {
14141
14235
  var _this = _super.call(this, analyticsService) || this;
14142
14236
  _this.analyticsService = analyticsService;
14143
- _this.contextService = contextService;
14144
14237
  _this.storeLocatorService = storeLocatorService;
14238
+ _this.userService = userService;
14239
+ _this.cdr = cdr;
14145
14240
  _this.subscriptions = [];
14146
14241
  return _this;
14147
14242
  }
@@ -14151,6 +14246,9 @@
14151
14246
  if (isOpen) {
14152
14247
  _this.pageview();
14153
14248
  }
14249
+ }), this.userService.userCoordinates$.subscribe(function (coords) {
14250
+ _this.hostCoordinates = coords;
14251
+ _this.cdr.detectChanges();
14154
14252
  }));
14155
14253
  };
14156
14254
  StoreLocatorComponent.prototype.ngOnDestroy = function () {
@@ -14161,8 +14259,8 @@
14161
14259
  };
14162
14260
  return StoreLocatorComponent;
14163
14261
  }(EventTracerComponent));
14164
- StoreLocatorComponent.ɵfac = function StoreLocatorComponent_Factory(t) { return new (t || StoreLocatorComponent)(i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(StoreLocatorService)); };
14165
- StoreLocatorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: StoreLocatorComponent, selectors: [["ng-miam-store-locator"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 3, consts: [[3, "show", "posIdChange", "showChange"]], template: function StoreLocatorComponent_Template(rf, ctx) {
14262
+ StoreLocatorComponent.ɵfac = function StoreLocatorComponent_Factory(t) { return new (t || StoreLocatorComponent)(i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(StoreLocatorService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
14263
+ StoreLocatorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: StoreLocatorComponent, selectors: [["ng-miam-store-locator"]], features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 2, vars: 4, consts: [[3, "show", "geolocationCoordinates", "posIdChange", "showChange"]], template: function StoreLocatorComponent_Template(rf, ctx) {
14166
14264
  if (rf & 1) {
14167
14265
  i0__namespace.ɵɵelementStart(0, "mealz-store-locator", 0);
14168
14266
  i0__namespace.ɵɵlistener("posIdChange", function StoreLocatorComponent_Template_mealz_store_locator_posIdChange_0_listener($event) { return ctx.storeLocatorService.changePosAndSupplier($event, ctx.eventTrace()); })("showChange", function StoreLocatorComponent_Template_mealz_store_locator_showChange_0_listener($event) { return ctx.storeLocatorService.showChange($event); });
@@ -14170,7 +14268,7 @@
14170
14268
  i0__namespace.ɵɵelementEnd();
14171
14269
  }
14172
14270
  if (rf & 2) {
14173
- i0__namespace.ɵɵproperty("show", i0__namespace.ɵɵpipeBind1(1, 1, ctx.storeLocatorService.storeLocatorOpened$));
14271
+ i0__namespace.ɵɵproperty("show", i0__namespace.ɵɵpipeBind1(1, 2, ctx.storeLocatorService.storeLocatorOpened$))("geolocationCoordinates", ctx.hostCoordinates);
14174
14272
  }
14175
14273
  }, pipes: [i2__namespace$1.AsyncPipe], styles: [""], encapsulation: 2, changeDetection: 0 });
14176
14274
  (function () {
@@ -14183,7 +14281,7 @@
14183
14281
  encapsulation: i0.ViewEncapsulation.None,
14184
14282
  changeDetection: i0.ChangeDetectionStrategy.OnPush
14185
14283
  }]
14186
- }], function () { return [{ type: AnalyticsService }, { type: ContextService }, { type: StoreLocatorService }]; }, null);
14284
+ }], function () { return [{ type: AnalyticsService }, { type: StoreLocatorService }, { type: UserService }, { type: i0__namespace.ChangeDetectorRef }]; }, null);
14187
14285
  })();
14188
14286
 
14189
14287
  var UtilsModule = /** @class */ (function () {
@@ -14627,7 +14725,7 @@
14627
14725
  i18n_0 = MSG_EXTERNAL_5279571682523834027$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_DISABLED_BASKET_PREVIEW_DISABLED_COMPONENT_TS__1;
14628
14726
  }
14629
14727
  else {
14630
- i18n_0 = $localize(templateObject_1$D || (templateObject_1$D = __makeTemplateObject([":\u241Fcf4f536e5a68ceab8fbe420ae968c0c7d0f63e0e\u241F5279571682523834027: Article(s) indisponible(s) "], [":\u241Fcf4f536e5a68ceab8fbe420ae968c0c7d0f63e0e\u241F5279571682523834027: Article(s) indisponible(s) "])));
14728
+ i18n_0 = $localize(templateObject_1$B || (templateObject_1$B = __makeTemplateObject([":\u241Fcf4f536e5a68ceab8fbe420ae968c0c7d0f63e0e\u241F5279571682523834027: Article(s) indisponible(s) "], [":\u241Fcf4f536e5a68ceab8fbe420ae968c0c7d0f63e0e\u241F5279571682523834027: Article(s) indisponible(s) "])));
14631
14729
  }
14632
14730
  var i18n_2;
14633
14731
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -14635,7 +14733,7 @@
14635
14733
  i18n_2 = MSG_EXTERNAL_7543346336065618825$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_DISABLED_BASKET_PREVIEW_DISABLED_COMPONENT_TS__3;
14636
14734
  }
14637
14735
  else {
14638
- i18n_2 = $localize(templateObject_2$u || (templateObject_2$u = __makeTemplateObject([":\u241Fe9c0f99c9b8cf81911ed3f238e2203c6ce78b89b\u241F7543346336065618825: Article(s) retir\u00E9(s) du panier "], [":\u241Fe9c0f99c9b8cf81911ed3f238e2203c6ce78b89b\u241F7543346336065618825: Article(s) retir\u00E9(s) du panier "])));
14736
+ i18n_2 = $localize(templateObject_2$t || (templateObject_2$t = __makeTemplateObject([":\u241Fe9c0f99c9b8cf81911ed3f238e2203c6ce78b89b\u241F7543346336065618825: Article(s) retir\u00E9(s) du panier "], [":\u241Fe9c0f99c9b8cf81911ed3f238e2203c6ce78b89b\u241F7543346336065618825: Article(s) retir\u00E9(s) du panier "])));
14639
14737
  }
14640
14738
  var i18n_4;
14641
14739
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -14643,7 +14741,7 @@
14643
14741
  i18n_4 = MSG_EXTERNAL_6646707544911031345$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_DISABLED_BASKET_PREVIEW_DISABLED_COMPONENT_TS__5;
14644
14742
  }
14645
14743
  else {
14646
- i18n_4 = $localize(templateObject_3$n || (templateObject_3$n = __makeTemplateObject([":\u241F147ab826fc3478c8b4429cc972679cf659bb8100\u241F6646707544911031345: D\u00E9j\u00E0 dans vos placards ? "], [":\u241F147ab826fc3478c8b4429cc972679cf659bb8100\u241F6646707544911031345: D\u00E9j\u00E0 dans vos placards ? "])));
14744
+ i18n_4 = $localize(templateObject_3$l || (templateObject_3$l = __makeTemplateObject([":\u241F147ab826fc3478c8b4429cc972679cf659bb8100\u241F6646707544911031345: D\u00E9j\u00E0 dans vos placards ? "], [":\u241F147ab826fc3478c8b4429cc972679cf659bb8100\u241F6646707544911031345: D\u00E9j\u00E0 dans vos placards ? "])));
14647
14745
  }
14648
14746
  var i18n_6;
14649
14747
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -14651,7 +14749,7 @@
14651
14749
  i18n_6 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_DISABLED_BASKET_PREVIEW_DISABLED_COMPONENT_TS_____7;
14652
14750
  }
14653
14751
  else {
14654
- i18n_6 = $localize(templateObject_4$j || (templateObject_4$j = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
14752
+ i18n_6 = $localize(templateObject_4$i || (templateObject_4$i = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
14655
14753
  }
14656
14754
  var i18n_8;
14657
14755
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -14725,7 +14823,7 @@
14725
14823
  args: ['window:resize', ['$event']]
14726
14824
  }] });
14727
14825
  })();
14728
- var templateObject_1$D, templateObject_2$u, templateObject_3$n, templateObject_4$j, templateObject_5$g;
14826
+ var templateObject_1$B, templateObject_2$t, templateObject_3$l, templateObject_4$i, templateObject_5$g;
14729
14827
 
14730
14828
  function BasketPreviewLineComponent_ng_container_0_div_5_Template(rf, ctx) {
14731
14829
  if (rf & 1) {
@@ -15611,7 +15709,7 @@
15611
15709
  i18n_0 = MSG_EXTERNAL_6749102764655247912$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__1;
15612
15710
  }
15613
15711
  else {
15614
- i18n_0 = $localize(templateObject_1$C || (templateObject_1$C = __makeTemplateObject([":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"], [":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"])));
15712
+ i18n_0 = $localize(templateObject_1$A || (templateObject_1$A = __makeTemplateObject([":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"], [":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"])));
15615
15713
  }
15616
15714
  var i18n_2;
15617
15715
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -15619,7 +15717,7 @@
15619
15717
  i18n_2 = MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___3;
15620
15718
  }
15621
15719
  else {
15622
- i18n_2 = $localize(templateObject_2$t || (templateObject_2$t = __makeTemplateObject([":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"], [":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"])));
15720
+ i18n_2 = $localize(templateObject_2$s || (templateObject_2$s = __makeTemplateObject([":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"], [":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"])));
15623
15721
  }
15624
15722
  var i18n_4;
15625
15723
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -15627,7 +15725,7 @@
15627
15725
  i18n_4 = MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___5;
15628
15726
  }
15629
15727
  else {
15630
- i18n_4 = $localize(templateObject_3$m || (templateObject_3$m = __makeTemplateObject([":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"], [":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"])));
15728
+ i18n_4 = $localize(templateObject_3$k || (templateObject_3$k = __makeTemplateObject([":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"], [":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"])));
15631
15729
  }
15632
15730
  var i18n_6;
15633
15731
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -15635,7 +15733,7 @@
15635
15733
  i18n_6 = MSG_EXTERNAL_2861269811387022272$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___7;
15636
15734
  }
15637
15735
  else {
15638
- i18n_6 = $localize(templateObject_4$i || (templateObject_4$i = __makeTemplateObject([":\u241F2706048545fce399fb75b672add0eb745e09ada5\u241F2861269811387022272:soit "], [":\u241F2706048545fce399fb75b672add0eb745e09ada5\u241F2861269811387022272:soit "])));
15736
+ i18n_6 = $localize(templateObject_4$h || (templateObject_4$h = __makeTemplateObject([":\u241F2706048545fce399fb75b672add0eb745e09ada5\u241F2861269811387022272:soit "], [":\u241F2706048545fce399fb75b672add0eb745e09ada5\u241F2861269811387022272:soit "])));
15639
15737
  }
15640
15738
  var i18n_8;
15641
15739
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -15659,7 +15757,7 @@
15659
15757
  i18n_15 = MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___16;
15660
15758
  }
15661
15759
  else {
15662
- i18n_15 = $localize(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject([":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "], [":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "])));
15760
+ i18n_15 = $localize(templateObject_7$a || (templateObject_7$a = __makeTemplateObject([":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "], [":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "])));
15663
15761
  }
15664
15762
  var i18n_17;
15665
15763
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -15774,7 +15872,7 @@
15774
15872
  type: i0.Output
15775
15873
  }] });
15776
15874
  })();
15777
- var templateObject_1$C, templateObject_2$t, templateObject_3$m, templateObject_4$i, templateObject_5$f, templateObject_6$d, templateObject_7$9, templateObject_8$6, templateObject_9$5, templateObject_10$3, templateObject_11$3, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1;
15875
+ var templateObject_1$A, templateObject_2$s, templateObject_3$k, templateObject_4$h, templateObject_5$f, templateObject_6$d, templateObject_7$a, templateObject_8$6, templateObject_9$5, templateObject_10$3, templateObject_11$3, templateObject_12$2, templateObject_13$2, templateObject_14$1, templateObject_15$1;
15778
15876
 
15779
15877
  function BasketPreviewProductComponent_div_0_div_15_Template(rf, ctx) {
15780
15878
  if (rf & 1) {
@@ -15810,7 +15908,7 @@
15810
15908
  i0__namespace.ɵɵelement(0, "img", 23);
15811
15909
  }
15812
15910
  }
15813
- var _c2$6 = function (a0) { return { loading: a0 }; };
15911
+ var _c2$5 = function (a0) { return { loading: a0 }; };
15814
15912
  function BasketPreviewProductComponent_div_0_Template(rf, ctx) {
15815
15913
  if (rf & 1) {
15816
15914
  var _r8_1 = i0__namespace.ɵɵgetCurrentView();
@@ -15871,9 +15969,9 @@
15871
15969
  i0__namespace.ɵɵadvance(2);
15872
15970
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.basketEntry.selectedItem.attributes.promoted);
15873
15971
  i0__namespace.ɵɵadvance(1);
15874
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.basketEntry.recipesIds.length != 0);
15972
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.basketEntry.recipesIds.length != 0 || ctx_r0.displayReplace);
15875
15973
  i0__namespace.ɵɵadvance(1);
15876
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(24, _c2$6, ctx_r0.loading));
15974
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(24, _c2$5, ctx_r0.loading));
15877
15975
  i0__namespace.ɵɵadvance(1);
15878
15976
  i0__namespace.ɵɵproperty("ngIf", ctx_r0.loading);
15879
15977
  i0__namespace.ɵɵadvance(1);
@@ -15901,6 +15999,7 @@
15901
15999
  _this.itemsService = itemsService;
15902
16000
  _this.elementRef = elementRef;
15903
16001
  _this.contextService = contextService;
16002
+ _this.displayReplace = false;
15904
16003
  _this.replaceButtonClicked = new i0.EventEmitter();
15905
16004
  _this.removed = new i0.EventEmitter();
15906
16005
  _this.countChanged = new i0.EventEmitter();
@@ -15924,7 +16023,7 @@
15924
16023
  };
15925
16024
  BasketPreviewProductComponent.prototype.replaceProduct = function () {
15926
16025
  var _this = this;
15927
- this.recipeDetailsService.scrollBackToElementId = this.elementRef.nativeElement.id;
16026
+ this.recipeDetailsService.scrollBackToBasketEntryId = this.basketEntry.id;
15928
16027
  this.replaceButtonClicked.emit();
15929
16028
  this.productReplacementService.isModalOpen$.pipe(operators.skipWhile(function (isOpen) { return isOpen; }), operators.take(1)).subscribe(function () { return _this.fetchPrice(); });
15930
16029
  };
@@ -15971,14 +16070,14 @@
15971
16070
  return BasketPreviewProductComponent;
15972
16071
  }(EventTracerComponent));
15973
16072
  BasketPreviewProductComponent.ɵfac = function BasketPreviewProductComponent_Factory(t) { return new (t || BasketPreviewProductComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(ProductReplacementService), i0__namespace.ɵɵdirectiveInject(ItemsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(ContextService)); };
15974
- BasketPreviewProductComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BasketPreviewProductComponent, selectors: [["ng-miam-basket-preview-product"]], inputs: { basketEntry: "basketEntry" }, outputs: { replaceButtonClicked: "replaceButtonClicked", removed: "removed", countChanged: "countChanged" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: function () {
16073
+ BasketPreviewProductComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BasketPreviewProductComponent, selectors: [["ng-miam-basket-preview-product"]], inputs: { basketEntry: "basketEntry", displayReplace: "displayReplace" }, outputs: { replaceButtonClicked: "replaceButtonClicked", removed: "removed", countChanged: "countChanged" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: function () {
15975
16074
  var i18n_0;
15976
16075
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
15977
16076
  var MSG_EXTERNAL_4705093661060921903$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_PRODUCT_BASKET_PREVIEW_PRODUCT_COMPONENT_TS___1 = goog.getMsg("Remplacer");
15978
16077
  i18n_0 = MSG_EXTERNAL_4705093661060921903$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_PRODUCT_BASKET_PREVIEW_PRODUCT_COMPONENT_TS___1;
15979
16078
  }
15980
16079
  else {
15981
- i18n_0 = $localize(templateObject_1$B || (templateObject_1$B = __makeTemplateObject([":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"], [":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"])));
16080
+ i18n_0 = $localize(templateObject_1$z || (templateObject_1$z = __makeTemplateObject([":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"], [":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"])));
15982
16081
  }
15983
16082
  return [["class", "miam-basket-preview-product", 3, "id", 4, "ngIf"], [1, "miam-basket-preview-product", 3, "id"], [1, "miam-basket-preview-product__infos-container"], [1, "miam-basket-preview-product__picture-container"], [1, "miam-basket-preview-product__picture"], ["alt", "product picture", 3, "src", "error"], [1, "miam-basket-preview-product__infos-and-actions"], [1, "miam-basket-preview-product__infos"], [1, "miam-basket-preview-product__title", "miam-ds-text", "weight-l", "size-s"], [1, "miam-product-card__badges"], [1, "miam-basket-preview-product__capacity", "miam-ds-badge"], ["class", "miam-basket-preview-product__sponsorised miam-ds-badge", 4, "ngIf"], ["class", "miam-basket-preview-product__replace-button miam-ds-button ghost", 3, "disabled", "click", 4, "ngIf"], [1, "miam-basket-preview-line__remove", "miam-ds-button", "ghost", 3, "ngClass", "click"], ["class", "miam-ds-loader", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "remove recipe", 4, "ngIf"], [1, "miam-basket-preview-product__price-and-action"], ["ngMiamInViewport", "", 1, "miam-basket-preview-product__price", "miam-ds-text", "size-l", "weight-xl", 3, "threshold", "debounceTime", "inViewport"], ["minRange", "0", 3, "value", "minusLoading", "disable", "valueChange"], [1, "miam-basket-preview-product__sponsorised", "miam-ds-badge"], [1, "miam-basket-preview-product__replace-button", "miam-ds-button", "ghost", 3, "disabled", "click"], i18n_0, [1, "miam-ds-loader"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "remove recipe"]];
15984
16083
  }, template: function BasketPreviewProductComponent_Template(rf, ctx) {
@@ -16001,6 +16100,8 @@
16001
16100
  }]
16002
16101
  }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: RecipeDetailsService }, { type: RecipesService }, { type: AnalyticsService }, { type: PointOfSalesService }, { type: UserService }, { type: BasketsService }, { type: ProductReplacementService }, { type: ItemsService }, { type: i0__namespace.ElementRef }, { type: ContextService }]; }, { basketEntry: [{
16003
16102
  type: i0.Input
16103
+ }], displayReplace: [{
16104
+ type: i0.Input
16004
16105
  }], replaceButtonClicked: [{
16005
16106
  type: i0.Output
16006
16107
  }], removed: [{
@@ -16009,7 +16110,7 @@
16009
16110
  type: i0.Output
16010
16111
  }] });
16011
16112
  })();
16012
- var templateObject_1$B;
16113
+ var templateObject_1$z;
16013
16114
 
16014
16115
  function ReplaceItemComponent_span_3_Template(rf, ctx) {
16015
16116
  if (rf & 1) {
@@ -16446,7 +16547,10 @@
16446
16547
  items.fill(response);
16447
16548
  return items.data.filter(function (item) { return item.id !== _this.basketEntry.selectedItem.id; });
16448
16549
  })).subscribe(function (items) {
16449
- _this.itemsList = __spread([_this.basketEntry.selectedItem], items);
16550
+ if (_this.basketEntry.selectedItem) {
16551
+ _this.itemsList.push(_this.basketEntry.selectedItem);
16552
+ }
16553
+ _this.itemsList = __spread(_this.itemsList, items);
16450
16554
  _this.isLoading = false;
16451
16555
  _this.cdr.detectChanges();
16452
16556
  }));
@@ -16479,7 +16583,7 @@
16479
16583
  i18n_0 = MSG_EXTERNAL_6950029358283595645$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS_1;
16480
16584
  }
16481
16585
  else {
16482
- i18n_0 = $localize(templateObject_1$A || (templateObject_1$A = __makeTemplateObject([":\u241Ff077b7f13b9ff18b98843b6451b95b52e2e0416b\u241F6950029358283595645:Rechercher un produit de substitution"], [":\u241Ff077b7f13b9ff18b98843b6451b95b52e2e0416b\u241F6950029358283595645:Rechercher un produit de substitution"])));
16586
+ i18n_0 = $localize(templateObject_1$y || (templateObject_1$y = __makeTemplateObject([":\u241Ff077b7f13b9ff18b98843b6451b95b52e2e0416b\u241F6950029358283595645:Rechercher un produit de substitution"], [":\u241Ff077b7f13b9ff18b98843b6451b95b52e2e0416b\u241F6950029358283595645:Rechercher un produit de substitution"])));
16483
16587
  }
16484
16588
  var i18n_2;
16485
16589
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -16487,7 +16591,7 @@
16487
16591
  i18n_2 = MSG_EXTERNAL_7424968407033822919$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS_3;
16488
16592
  }
16489
16593
  else {
16490
- i18n_2 = $localize(templateObject_2$s || (templateObject_2$s = __makeTemplateObject([":\u241F4348f48d35623f4d4d03de11b852c5da5a5daff9\u241F7424968407033822919:Je cherche un produit"], [":\u241F4348f48d35623f4d4d03de11b852c5da5a5daff9\u241F7424968407033822919:Je cherche un produit"])));
16594
+ i18n_2 = $localize(templateObject_2$r || (templateObject_2$r = __makeTemplateObject([":\u241F4348f48d35623f4d4d03de11b852c5da5a5daff9\u241F7424968407033822919:Je cherche un produit"], [":\u241F4348f48d35623f4d4d03de11b852c5da5a5daff9\u241F7424968407033822919:Je cherche un produit"])));
16491
16595
  }
16492
16596
  var i18n_4;
16493
16597
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -16495,7 +16599,7 @@
16495
16599
  i18n_4 = MSG_EXTERNAL_2371976043497937004$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS__5;
16496
16600
  }
16497
16601
  else {
16498
- i18n_4 = $localize(templateObject_3$l || (templateObject_3$l = __makeTemplateObject([":\u241Fbcaa24028639b753617e2d3e0462eac9dc2ae4de\u241F2371976043497937004:Remplacer un produit"], [":\u241Fbcaa24028639b753617e2d3e0462eac9dc2ae4de\u241F2371976043497937004:Remplacer un produit"])));
16602
+ i18n_4 = $localize(templateObject_3$j || (templateObject_3$j = __makeTemplateObject([":\u241Fbcaa24028639b753617e2d3e0462eac9dc2ae4de\u241F2371976043497937004:Remplacer un produit"], [":\u241Fbcaa24028639b753617e2d3e0462eac9dc2ae4de\u241F2371976043497937004:Remplacer un produit"])));
16499
16603
  }
16500
16604
  var i18n_6;
16501
16605
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -16503,7 +16607,7 @@
16503
16607
  i18n_6 = MSG_EXTERNAL_3600300940826652542$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS__7;
16504
16608
  }
16505
16609
  else {
16506
- i18n_6 = $localize(templateObject_4$h || (templateObject_4$h = __makeTemplateObject([":\u241F02d62e50d45d9f9373ea25239767f0e2ae57e34d\u241F3600300940826652542:Ajouter un produit"], [":\u241F02d62e50d45d9f9373ea25239767f0e2ae57e34d\u241F3600300940826652542:Ajouter un produit"])));
16610
+ i18n_6 = $localize(templateObject_4$g || (templateObject_4$g = __makeTemplateObject([":\u241F02d62e50d45d9f9373ea25239767f0e2ae57e34d\u241F3600300940826652542:Ajouter un produit"], [":\u241F02d62e50d45d9f9373ea25239767f0e2ae57e34d\u241F3600300940826652542:Ajouter un produit"])));
16507
16611
  }
16508
16612
  var i18n_8;
16509
16613
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -16527,7 +16631,7 @@
16527
16631
  i18n_12 = MSG_EXTERNAL_6492937435856655320$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS_____13;
16528
16632
  }
16529
16633
  else {
16530
- i18n_12 = $localize(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject([":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"], [":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"])));
16634
+ i18n_12 = $localize(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject([":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"], [":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"])));
16531
16635
  }
16532
16636
  var i18n_15;
16533
16637
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -16672,7 +16776,7 @@
16672
16776
  args: ['@slide']
16673
16777
  }] });
16674
16778
  })();
16675
- var templateObject_1$A, templateObject_2$s, templateObject_3$l, templateObject_4$h, templateObject_5$e, templateObject_6$c, templateObject_7$8, templateObject_8$5, templateObject_9$4, templateObject_10$2, templateObject_11$2;
16779
+ var templateObject_1$y, templateObject_2$r, templateObject_3$j, templateObject_4$g, templateObject_5$e, templateObject_6$c, templateObject_7$9, templateObject_8$5, templateObject_9$4, templateObject_10$2, templateObject_11$2;
16676
16780
 
16677
16781
  function BasketPreviewBlockComponent_div_2_ng_container_1_div_2_Template(rf, ctx) {
16678
16782
  if (rf & 1) {
@@ -16976,6 +17080,7 @@
16976
17080
  this.loading.next(true);
16977
17081
  }
16978
17082
  this.pageview();
17083
+ this.removeFromOriginPath('/basket-preview/detail');
16979
17084
  };
16980
17085
  BasketPreviewBlockComponent.prototype.ngAfterViewInit = function () {
16981
17086
  var _this = this;
@@ -17141,7 +17246,7 @@
17141
17246
  i18n_0 = MSG_EXTERNAL_8629591622298910251$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS___1;
17142
17247
  }
17143
17248
  else {
17144
- i18n_0 = $localize(templateObject_1$z || (templateObject_1$z = __makeTemplateObject([":\u241Fe5550a57e3cc37b6956342b99fb7e0ab9534db7a\u241F8629591622298910251:Recettes, Produits"], [":\u241Fe5550a57e3cc37b6956342b99fb7e0ab9534db7a\u241F8629591622298910251:Recettes, Produits"])));
17249
+ i18n_0 = $localize(templateObject_1$x || (templateObject_1$x = __makeTemplateObject([":\u241Fe5550a57e3cc37b6956342b99fb7e0ab9534db7a\u241F8629591622298910251:Recettes, Produits"], [":\u241Fe5550a57e3cc37b6956342b99fb7e0ab9534db7a\u241F8629591622298910251:Recettes, Produits"])));
17145
17250
  }
17146
17251
  var i18n_2;
17147
17252
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -17149,7 +17254,7 @@
17149
17254
  i18n_2 = MSG_EXTERNAL_9113580200567550319$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS____3;
17150
17255
  }
17151
17256
  else {
17152
- i18n_2 = $localize(templateObject_2$r || (templateObject_2$r = __makeTemplateObject([":\u241Fb925ed1ff7370deb1c9d7c752727b9b3b9d032d2\u241F9113580200567550319:repas dans votre panier"], [":\u241Fb925ed1ff7370deb1c9d7c752727b9b3b9d032d2\u241F9113580200567550319:repas dans votre panier"])));
17257
+ i18n_2 = $localize(templateObject_2$q || (templateObject_2$q = __makeTemplateObject([":\u241Fb925ed1ff7370deb1c9d7c752727b9b3b9d032d2\u241F9113580200567550319:repas dans votre panier"], [":\u241Fb925ed1ff7370deb1c9d7c752727b9b3b9d032d2\u241F9113580200567550319:repas dans votre panier"])));
17153
17258
  }
17154
17259
  var i18n_5;
17155
17260
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -17157,7 +17262,7 @@
17157
17262
  i18n_5 = MSG_EXTERNAL_288551008191807939$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS_____6;
17158
17263
  }
17159
17264
  else {
17160
- i18n_5 = $localize(templateObject_3$k || (templateObject_3$k = __makeTemplateObject([":\u241F93545d51c80c9c31f09ed7ebf3bd9f3a7a8faac4\u241F288551008191807939:Vous n'avez pas encore s\u00E9lectionn\u00E9 de repas."], [":\u241F93545d51c80c9c31f09ed7ebf3bd9f3a7a8faac4\u241F288551008191807939:Vous n'avez pas encore s\u00E9lectionn\u00E9 de repas."])));
17265
+ i18n_5 = $localize(templateObject_3$i || (templateObject_3$i = __makeTemplateObject([":\u241F93545d51c80c9c31f09ed7ebf3bd9f3a7a8faac4\u241F288551008191807939:Vous n'avez pas encore s\u00E9lectionn\u00E9 de repas."], [":\u241F93545d51c80c9c31f09ed7ebf3bd9f3a7a8faac4\u241F288551008191807939:Vous n'avez pas encore s\u00E9lectionn\u00E9 de repas."])));
17161
17266
  }
17162
17267
  var i18n_7;
17163
17268
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -17165,7 +17270,7 @@
17165
17270
  i18n_7 = MSG_EXTERNAL_4236077440019410708$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS______8;
17166
17271
  }
17167
17272
  else {
17168
- i18n_7 = $localize(templateObject_4$g || (templateObject_4$g = __makeTemplateObject([":\u241Ff2dbdf98d72d476636f801e65966528b783d1688\u241F4236077440019410708:Naviguez vers la page d'une recette, puis cliquez sur \"Commander les ingr\u00E9dients\"."], [":\u241Ff2dbdf98d72d476636f801e65966528b783d1688\u241F4236077440019410708:Naviguez vers la page d'une recette, puis cliquez sur \"Commander les ingr\u00E9dients\"."])));
17273
+ i18n_7 = $localize(templateObject_4$f || (templateObject_4$f = __makeTemplateObject([":\u241Ff2dbdf98d72d476636f801e65966528b783d1688\u241F4236077440019410708:Naviguez vers la page d'une recette, puis cliquez sur \"Commander les ingr\u00E9dients\"."], [":\u241Ff2dbdf98d72d476636f801e65966528b783d1688\u241F4236077440019410708:Naviguez vers la page d'une recette, puis cliquez sur \"Commander les ingr\u00E9dients\"."])));
17169
17274
  }
17170
17275
  var i18n_9;
17171
17276
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -17189,7 +17294,7 @@
17189
17294
  i18n_13 = MSG_EXTERNAL_4182983336835891106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS__14;
17190
17295
  }
17191
17296
  else {
17192
- i18n_13 = $localize(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject([":\u241Fdf6602bf298f29976aa1fc43e12e25e9a677a51d\u241F4182983336835891106:D\u00E9sol\u00E9, ce magasin ne permet pas de s\u00E9lectionner des repas."], [":\u241Fdf6602bf298f29976aa1fc43e12e25e9a677a51d\u241F4182983336835891106:D\u00E9sol\u00E9, ce magasin ne permet pas de s\u00E9lectionner des repas."])));
17297
+ i18n_13 = $localize(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject([":\u241Fdf6602bf298f29976aa1fc43e12e25e9a677a51d\u241F4182983336835891106:D\u00E9sol\u00E9, ce magasin ne permet pas de s\u00E9lectionner des repas."], [":\u241Fdf6602bf298f29976aa1fc43e12e25e9a677a51d\u241F4182983336835891106:D\u00E9sol\u00E9, ce magasin ne permet pas de s\u00E9lectionner des repas."])));
17193
17298
  }
17194
17299
  var i18n_15;
17195
17300
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
@@ -17254,7 +17359,7 @@
17254
17359
  args: [BasketPreviewProductComponent]
17255
17360
  }] });
17256
17361
  })();
17257
- var templateObject_1$z, templateObject_2$r, templateObject_3$k, templateObject_4$g, templateObject_5$d, templateObject_6$b, templateObject_7$7, templateObject_8$4;
17362
+ var templateObject_1$x, templateObject_2$q, templateObject_3$i, templateObject_4$f, templateObject_5$d, templateObject_6$b, templateObject_7$8, templateObject_8$4;
17258
17363
 
17259
17364
  var BasketPreviewModule = /** @class */ (function () {
17260
17365
  // Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
@@ -17335,873 +17440,131 @@
17335
17440
  }], function () { return [{ type: i0__namespace.Injector }]; }, null);
17336
17441
  })();
17337
17442
 
17338
- function ListScanFilesInputsComponent_div_1_ng_miam_icon_3_Template(rf, ctx) {
17339
- if (rf & 1) {
17340
- i0__namespace.ɵɵelement(0, "ng-miam-icon", 8);
17341
- }
17342
- if (rf & 2) {
17343
- var ctx_r3 = i0__namespace.ɵɵnextContext(2);
17344
- i0__namespace.ɵɵproperty("iconName", ctx_r3.icon.ListScanner);
17345
- }
17346
- }
17347
- function ListScanFilesInputsComponent_div_1_div_4_span_1_Template(rf, ctx) {
17443
+ function ListScanBasketPreviewComponent_ng_container_2_ng_miam_basket_preview_product_6_Template(rf, ctx) {
17348
17444
  if (rf & 1) {
17349
- i0__namespace.ɵɵelementStart(0, "span");
17350
- i0__namespace.ɵɵtext(1);
17445
+ var _r8_1 = i0__namespace.ɵɵgetCurrentView();
17446
+ i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-product", 7);
17447
+ i0__namespace.ɵɵlistener("replaceButtonClicked", function ListScanBasketPreviewComponent_ng_container_2_ng_miam_basket_preview_product_6_Template_ng_miam_basket_preview_product_replaceButtonClicked_0_listener() { i0__namespace.ɵɵrestoreView(_r8_1); var entry_r1 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r6 = i0__namespace.ɵɵnextContext(); return ctx_r6.handleReplaceButtonClick(entry_r1); });
17351
17448
  i0__namespace.ɵɵelementEnd();
17352
17449
  }
17353
17450
  if (rf & 2) {
17354
- var ctx_r6 = i0__namespace.ɵɵnextContext(3);
17355
- i0__namespace.ɵɵadvance(1);
17356
- i0__namespace.ɵɵtextInterpolate(ctx_r6.mobileText);
17451
+ var entry_r1 = i0__namespace.ɵɵnextContext().$implicit;
17452
+ i0__namespace.ɵɵproperty("basketEntry", entry_r1)("displayReplace", true);
17357
17453
  }
17358
17454
  }
17359
- function ListScanFilesInputsComponent_div_1_div_4_span_2_Template(rf, ctx) {
17455
+ function ListScanBasketPreviewComponent_ng_container_2_ng_template_7_Template(rf, ctx) {
17360
17456
  if (rf & 1) {
17361
- i0__namespace.ɵɵelementStart(0, "span");
17362
- i0__namespace.ɵɵi18n(1, 10);
17363
- i0__namespace.ɵɵelementEnd();
17364
- }
17365
- }
17366
- function ListScanFilesInputsComponent_div_1_div_4_Template(rf, ctx) {
17367
- if (rf & 1) {
17368
- i0__namespace.ɵɵelementStart(0, "div", 9);
17369
- i0__namespace.ɵɵtemplate(1, ListScanFilesInputsComponent_div_1_div_4_span_1_Template, 2, 1, "span", 7);
17370
- i0__namespace.ɵɵtemplate(2, ListScanFilesInputsComponent_div_1_div_4_span_2_Template, 2, 0, "span", 7);
17457
+ var _r12_1 = i0__namespace.ɵɵgetCurrentView();
17458
+ i0__namespace.ɵɵelementStart(0, "div", 8);
17459
+ i0__namespace.ɵɵelementStart(1, "span", 9);
17460
+ i0__namespace.ɵɵi18n(2, 10);
17371
17461
  i0__namespace.ɵɵelementEnd();
17372
- }
17373
- if (rf & 2) {
17374
- var ctx_r4 = i0__namespace.ɵɵnextContext(2);
17375
- i0__namespace.ɵɵadvance(1);
17376
- i0__namespace.ɵɵproperty("ngIf", ctx_r4.mobileText);
17377
- i0__namespace.ɵɵadvance(1);
17378
- i0__namespace.ɵɵproperty("ngIf", !ctx_r4.mobileText);
17379
- }
17380
- }
17381
- function ListScanFilesInputsComponent_div_1_ng_miam_loader_5_Template(rf, ctx) {
17382
- if (rf & 1) {
17383
- i0__namespace.ɵɵelement(0, "ng-miam-loader");
17384
- }
17385
- }
17386
- function ListScanFilesInputsComponent_div_1_Template(rf, ctx) {
17387
- if (rf & 1) {
17388
- var _r9_1 = i0__namespace.ɵɵgetCurrentView();
17389
- i0__namespace.ɵɵelementStart(0, "div");
17390
- i0__namespace.ɵɵelementStart(1, "input", 3);
17391
- i0__namespace.ɵɵlistener("change", function ListScanFilesInputsComponent_div_1_Template_input_change_1_listener($event) { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.sendFile($event); });
17462
+ i0__namespace.ɵɵelementStart(3, "button", 11);
17463
+ i0__namespace.ɵɵlistener("click", function ListScanBasketPreviewComponent_ng_container_2_ng_template_7_Template_button_click_3_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var entry_r1 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.handleReplaceButtonClick(entry_r1); });
17464
+ i0__namespace.ɵɵelementStart(4, "span");
17465
+ i0__namespace.ɵɵi18n(5, 12);
17392
17466
  i0__namespace.ɵɵelementEnd();
17393
- i0__namespace.ɵɵelementStart(2, "label", 4);
17394
- i0__namespace.ɵɵtemplate(3, ListScanFilesInputsComponent_div_1_ng_miam_icon_3_Template, 1, 1, "ng-miam-icon", 5);
17395
- i0__namespace.ɵɵtemplate(4, ListScanFilesInputsComponent_div_1_div_4_Template, 3, 2, "div", 6);
17396
- i0__namespace.ɵɵtemplate(5, ListScanFilesInputsComponent_div_1_ng_miam_loader_5_Template, 1, 0, "ng-miam-loader", 7);
17397
17467
  i0__namespace.ɵɵelementEnd();
17398
17468
  i0__namespace.ɵɵelementEnd();
17399
17469
  }
17400
- if (rf & 2) {
17401
- var ctx_r0 = i0__namespace.ɵɵnextContext();
17402
- i0__namespace.ɵɵadvance(1);
17403
- i0__namespace.ɵɵproperty("disabled", ctx_r0.loading);
17404
- i0__namespace.ɵɵadvance(2);
17405
- i0__namespace.ɵɵproperty("ngIf", !ctx_r0.loading);
17406
- i0__namespace.ɵɵadvance(1);
17407
- i0__namespace.ɵɵproperty("ngIf", !ctx_r0.loading);
17408
- i0__namespace.ɵɵadvance(1);
17409
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.loading);
17410
- }
17411
- }
17412
- function ListScanFilesInputsComponent_ng_template_2_ng_miam_icon_2_Template(rf, ctx) {
17413
- if (rf & 1) {
17414
- i0__namespace.ɵɵelement(0, "ng-miam-icon", 8);
17415
- }
17416
- if (rf & 2) {
17417
- var ctx_r10 = i0__namespace.ɵɵnextContext(2);
17418
- i0__namespace.ɵɵproperty("iconName", ctx_r10.icon.Upload);
17419
- }
17420
17470
  }
17421
- function ListScanFilesInputsComponent_ng_template_2_div_3_span_1_Template(rf, ctx) {
17471
+ function ListScanBasketPreviewComponent_ng_container_2_Template(rf, ctx) {
17422
17472
  if (rf & 1) {
17423
- i0__namespace.ɵɵelementStart(0, "span");
17424
- i0__namespace.ɵɵtext(1);
17473
+ i0__namespace.ɵɵelementContainerStart(0);
17474
+ i0__namespace.ɵɵelementStart(1, "div", 2);
17475
+ i0__namespace.ɵɵelementStart(2, "div", 3);
17476
+ i0__namespace.ɵɵelementStart(3, "span", 4);
17477
+ i0__namespace.ɵɵtext(4);
17478
+ i0__namespace.ɵɵpipe(5, "capitalizeFirstLetter");
17425
17479
  i0__namespace.ɵɵelementEnd();
17426
- }
17427
- if (rf & 2) {
17428
- var ctx_r13 = i0__namespace.ɵɵnextContext(3);
17429
- i0__namespace.ɵɵadvance(1);
17430
- i0__namespace.ɵɵtextInterpolate(ctx_r13.desktopText);
17431
- }
17432
- }
17433
- function ListScanFilesInputsComponent_ng_template_2_div_3_span_2_Template(rf, ctx) {
17434
- if (rf & 1) {
17435
- i0__namespace.ɵɵelementStart(0, "span");
17436
- i0__namespace.ɵɵi18n(1, 13);
17437
17480
  i0__namespace.ɵɵelementEnd();
17438
- }
17439
- }
17440
- function ListScanFilesInputsComponent_ng_template_2_div_3_Template(rf, ctx) {
17441
- if (rf & 1) {
17442
- i0__namespace.ɵɵelementStart(0, "div", 9);
17443
- i0__namespace.ɵɵtemplate(1, ListScanFilesInputsComponent_ng_template_2_div_3_span_1_Template, 2, 1, "span", 7);
17444
- i0__namespace.ɵɵtemplate(2, ListScanFilesInputsComponent_ng_template_2_div_3_span_2_Template, 2, 0, "span", 7);
17481
+ i0__namespace.ɵɵtemplate(6, ListScanBasketPreviewComponent_ng_container_2_ng_miam_basket_preview_product_6_Template, 1, 2, "ng-miam-basket-preview-product", 5);
17482
+ i0__namespace.ɵɵtemplate(7, ListScanBasketPreviewComponent_ng_container_2_ng_template_7_Template, 6, 0, "ng-template", null, 6, i0__namespace.ɵɵtemplateRefExtractor);
17445
17483
  i0__namespace.ɵɵelementEnd();
17484
+ i0__namespace.ɵɵelementContainerEnd();
17446
17485
  }
17447
17486
  if (rf & 2) {
17448
- var ctx_r11 = i0__namespace.ɵɵnextContext(2);
17449
- i0__namespace.ɵɵadvance(1);
17450
- i0__namespace.ɵɵproperty("ngIf", ctx_r11.desktopText);
17451
- i0__namespace.ɵɵadvance(1);
17452
- i0__namespace.ɵɵproperty("ngIf", !ctx_r11.desktopText);
17453
- }
17454
- }
17455
- function ListScanFilesInputsComponent_ng_template_2_ng_miam_loader_4_Template(rf, ctx) {
17456
- if (rf & 1) {
17457
- i0__namespace.ɵɵelement(0, "ng-miam-loader");
17487
+ var entry_r1 = ctx.$implicit;
17488
+ var _r4 = i0__namespace.ɵɵreference(8);
17489
+ i0__namespace.ɵɵadvance(4);
17490
+ i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(5, 3, entry_r1.name));
17491
+ i0__namespace.ɵɵadvance(2);
17492
+ i0__namespace.ɵɵproperty("ngIf", entry_r1.selectedItem)("ngIfElse", _r4);
17458
17493
  }
17459
17494
  }
17460
- function ListScanFilesInputsComponent_ng_template_2_Template(rf, ctx) {
17461
- if (rf & 1) {
17462
- var _r16_1 = i0__namespace.ɵɵgetCurrentView();
17463
- i0__namespace.ɵɵelementStart(0, "input", 11);
17464
- i0__namespace.ɵɵlistener("change", function ListScanFilesInputsComponent_ng_template_2_Template_input_change_0_listener($event) { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.sendFile($event); });
17465
- i0__namespace.ɵɵelementEnd();
17466
- i0__namespace.ɵɵelementStart(1, "label", 12);
17467
- i0__namespace.ɵɵtemplate(2, ListScanFilesInputsComponent_ng_template_2_ng_miam_icon_2_Template, 1, 1, "ng-miam-icon", 5);
17468
- i0__namespace.ɵɵtemplate(3, ListScanFilesInputsComponent_ng_template_2_div_3_Template, 3, 2, "div", 6);
17469
- i0__namespace.ɵɵtemplate(4, ListScanFilesInputsComponent_ng_template_2_ng_miam_loader_4_Template, 1, 0, "ng-miam-loader", 7);
17470
- i0__namespace.ɵɵelementEnd();
17471
- }
17472
- if (rf & 2) {
17473
- var ctx_r2 = i0__namespace.ɵɵnextContext();
17474
- i0__namespace.ɵɵproperty("disabled", ctx_r2.loading);
17475
- i0__namespace.ɵɵadvance(2);
17476
- i0__namespace.ɵɵproperty("ngIf", !ctx_r2.loading);
17477
- i0__namespace.ɵɵadvance(1);
17478
- i0__namespace.ɵɵproperty("ngIf", !ctx_r2.loading);
17479
- i0__namespace.ɵɵadvance(1);
17480
- i0__namespace.ɵɵproperty("ngIf", ctx_r2.loading);
17481
- }
17482
- }
17483
- var _c4$2 = function (a0) { return { overlay: a0 }; };
17484
- var ListScanFilesInputsComponent = /** @class */ (function () {
17485
- function ListScanFilesInputsComponent(cdr, mediaMatcher, basketsService, basketEntriesService) {
17486
- this.cdr = cdr;
17487
- this.mediaMatcher = mediaMatcher;
17488
- this.basketsService = basketsService;
17489
- this.basketEntriesService = basketEntriesService;
17490
- this.disableIngredientsMatching = false;
17491
- this.entriesAdded = new i0.EventEmitter();
17492
- this.icon = exports.Icon;
17493
- this.loading = false;
17494
- this.isMobile = false;
17495
- this.isMobile = this.mediaMatcher.matchMedia('(max-width: 1023px)').matches;
17496
- }
17497
- // Pushes a picture file and refreshes list
17498
- // Finally, triggers entries added event, returning all entries not related to any recipe
17499
- ListScanFilesInputsComponent.prototype.sendFile = function (event) {
17500
- var _this = this;
17501
- var file = event.target.files.item(0);
17502
- if (!file) {
17503
- return;
17504
- }
17505
- this.loading = true;
17506
- this.cdr.detectChanges();
17507
- this.basketsService.waitForBasket.subscribe(function (currentBasket) {
17508
- var precedentEntries = currentBasket.entries;
17509
- _this.basketsService.addEntriesFromPicture(file, ['basket-entries'], _this.disableIngredientsMatching).pipe(operators.switchMap(function (basket) { return _this.basketEntriesService.all({ remotefilter: { id: basket.entries.map(function (e) { return e.id; }) } }); })).subscribe(function (entries) {
17510
- // Remove entries that were already present in the same quantities before
17511
- var addedEntries = entries.data.filter(function (entry) { return -1 === precedentEntries.findIndex(function (e) { return e.id === entry.id; }); });
17512
- _this.loading = false;
17513
- _this.entriesAdded.emit(addedEntries);
17514
- _this.cdr.detectChanges();
17515
- });
17516
- event.target.value = null;
17517
- _this.cdr.detectChanges();
17518
- });
17519
- };
17520
- return ListScanFilesInputsComponent;
17521
- }());
17522
- ListScanFilesInputsComponent.ɵfac = function ListScanFilesInputsComponent_Factory(t) { return new (t || ListScanFilesInputsComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i2__namespace.MediaMatcher), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(BasketEntriesService)); };
17523
- ListScanFilesInputsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ListScanFilesInputsComponent, selectors: [["ng-miam-list-scan-files-inputs"]], inputs: { overlay: "overlay", disableIngredientsMatching: "disableIngredientsMatching", desktopText: "desktopText", mobileText: "mobileText" }, outputs: { entriesAdded: "entriesAdded" }, decls: 4, vars: 5, consts: function () {
17524
- var i18n_0;
17525
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17526
- var MSG_EXTERNAL_3102383292942643907$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS____1 = goog.getMsg("Scanner ma liste");
17527
- i18n_0 = MSG_EXTERNAL_3102383292942643907$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS____1;
17528
- }
17529
- else {
17530
- i18n_0 = $localize(templateObject_1$y || (templateObject_1$y = __makeTemplateObject([":\u241F0d34d321e3c6aa810d833ba95ed446bcdd84903a\u241F3102383292942643907:Scanner ma liste"], [":\u241F0d34d321e3c6aa810d833ba95ed446bcdd84903a\u241F3102383292942643907:Scanner ma liste"])));
17531
- }
17532
- var i18n_2;
17533
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17534
- var MSG_EXTERNAL_8936498507024821269$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS____3 = goog.getMsg("Importer ma liste");
17535
- i18n_2 = MSG_EXTERNAL_8936498507024821269$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS____3;
17536
- }
17537
- else {
17538
- i18n_2 = $localize(templateObject_2$q || (templateObject_2$q = __makeTemplateObject([":\u241Ff609f2fd28615425afab0e9ac43aca8d99c16d47\u241F8936498507024821269:Importer ma liste"], [":\u241Ff609f2fd28615425afab0e9ac43aca8d99c16d47\u241F8936498507024821269:Importer ma liste"])));
17539
- }
17540
- return [[1, "miam-list-scan__files-inputs", 3, "ngClass"], [4, "ngIf", "ngIfElse"], ["desktop", ""], ["type", "file", "name", "photo", "id", "photo", "accept", "image/*", "capture", "environment", 1, "inputfile", 3, "disabled", "change"], ["for", "photo", 1, "m-button", "m-button-primary", "miam-list-scan__files-inputs__label__photo"], ["width", "16", "height", "16", 3, "iconName", 4, "ngIf"], ["class", "button-label", 4, "ngIf"], [4, "ngIf"], ["width", "16", "height", "16", 3, "iconName"], [1, "button-label"], i18n_0, ["type", "file", "name", "file", "id", "file", "accept", "image/*,application/pdf", 1, "inputfile", 3, "disabled", "change"], ["for", "file", 1, "m-button", "m-button-secondary", "miam-list-scan__files-inputs__label__file"], i18n_2];
17541
- }, template: function ListScanFilesInputsComponent_Template(rf, ctx) {
17542
- if (rf & 1) {
17543
- i0__namespace.ɵɵelementStart(0, "div", 0);
17544
- i0__namespace.ɵɵtemplate(1, ListScanFilesInputsComponent_div_1_Template, 6, 4, "div", 1);
17545
- i0__namespace.ɵɵtemplate(2, ListScanFilesInputsComponent_ng_template_2_Template, 5, 4, "ng-template", null, 2, i0__namespace.ɵɵtemplateRefExtractor);
17546
- i0__namespace.ɵɵelementEnd();
17547
- }
17548
- if (rf & 2) {
17549
- var _r1 = i0__namespace.ɵɵreference(3);
17550
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(3, _c4$2, ctx.overlay));
17551
- i0__namespace.ɵɵadvance(1);
17552
- i0__namespace.ɵɵproperty("ngIf", ctx.isMobile == true)("ngIfElse", _r1);
17553
- }
17554
- }, directives: [i2__namespace$1.NgClass, i2__namespace$1.NgIf, IconComponent, LoaderComponent], styles: [".miam-list-scan__files-inputs{position:relative;display:inline-block}.miam-list-scan__files-inputs.overlay{position:fixed;bottom:20px;right:20px}.miam-list-scan__files-inputs .inputfile{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__file,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__photo{min-width:0;max-height:50px;font-style:normal;font-weight:600;font-size:14px;line-height:16px}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__file ng-miam-icon,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__photo ng-miam-icon,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label ng-miam-icon{margin:0}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label .button-label,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__file .button-label,.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__photo .button-label{margin-left:10px}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__photo .miam-loader{border-top-color:var(--m-color-primary)}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__file{background-color:var(--m-color-white);color:var(--m-color-black)}.miam-list-scan__files-inputs .miam-list-scan__files-inputs__label__file ng-miam-icon svg path{fill:var(--m-color-black)}"], encapsulation: 2, changeDetection: 0 });
17555
- (function () {
17556
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ListScanFilesInputsComponent, [{
17557
- type: i0.Component,
17558
- args: [{
17559
- selector: 'ng-miam-list-scan-files-inputs',
17560
- templateUrl: './files-inputs.component.html',
17561
- styleUrls: ['./files-inputs.component.scss'],
17562
- encapsulation: i0.ViewEncapsulation.None,
17563
- changeDetection: i0.ChangeDetectionStrategy.OnPush
17564
- }]
17565
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.MediaMatcher }, { type: BasketsService }, { type: BasketEntriesService }]; }, { overlay: [{
17566
- type: i0.Input
17567
- }], disableIngredientsMatching: [{
17568
- type: i0.Input
17569
- }], desktopText: [{
17570
- type: i0.Input
17571
- }], mobileText: [{
17572
- type: i0.Input
17573
- }], entriesAdded: [{
17574
- type: i0.Output
17575
- }] });
17576
- })();
17577
- var templateObject_1$y, templateObject_2$q;
17578
-
17579
- function ListScanOverlayButtonComponent_ng_miam_icon_3_Template(rf, ctx) {
17580
- if (rf & 1) {
17581
- i0__namespace.ɵɵelement(0, "ng-miam-icon", 9);
17582
- }
17583
- if (rf & 2) {
17584
- var ctx_r0 = i0__namespace.ɵɵnextContext();
17585
- i0__namespace.ɵɵproperty("iconName", ctx_r0.icon.ListScanner);
17586
- }
17587
- }
17588
- var _c2$5 = function (a0) { return { reduced: a0 }; };
17589
- function ListScanOverlayButtonComponent_div_4_Template(rf, ctx) {
17590
- if (rf & 1) {
17591
- i0__namespace.ɵɵelementStart(0, "div", 10);
17592
- i0__namespace.ɵɵi18n(1, 11);
17593
- i0__namespace.ɵɵelementEnd();
17594
- }
17595
- if (rf & 2) {
17596
- var ctx_r1 = i0__namespace.ɵɵnextContext();
17597
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(1, _c2$5, ctx_r1.reduced == "true"));
17598
- }
17599
- }
17600
- function ListScanOverlayButtonComponent_ng_miam_loader_5_Template(rf, ctx) {
17601
- if (rf & 1) {
17602
- i0__namespace.ɵɵelement(0, "ng-miam-loader");
17603
- }
17604
- }
17605
- var _c3$3 = function (a0) { return { overlay: a0 }; };
17606
- var ListScanOverlayButtonComponent = /** @class */ (function () {
17607
- function ListScanOverlayButtonComponent(cdr, basketsService, basketEntriesService) {
17608
- this.cdr = cdr;
17609
- this.basketsService = basketsService;
17610
- this.basketEntriesService = basketEntriesService;
17611
- this.disableIngredientsMatching = false;
17612
- this.entriesAdded = new i0.EventEmitter();
17613
- this.icon = exports.Icon;
17614
- this.reduced = localStorage.getItem('_miam/listScanner/button-reduced') || 'false';
17615
- this.loading = false;
17616
- }
17617
- ListScanOverlayButtonComponent.prototype.toggleReduce = function (value) {
17618
- this.reduced = value;
17619
- localStorage.setItem('_miam/listScanner/button-reduced', this.reduced);
17620
- this.cdr.detectChanges();
17621
- };
17622
- // Pushes a picture file and refreshes list
17623
- // Finally, triggers entries added event, returning all entries not related to any recipe
17624
- ListScanOverlayButtonComponent.prototype.sendFile = function (event) {
17625
- var _this = this;
17626
- var file = event.target.files.item(0);
17627
- if (!file) {
17628
- return;
17629
- }
17630
- this.loading = true;
17631
- this.cdr.detectChanges();
17632
- this.basketsService.waitForBasket.subscribe(function (currentBasket) {
17633
- var precedentEntries = currentBasket.entries;
17634
- _this.basketsService.addEntriesFromPicture(file, ['basket-entries'], _this.disableIngredientsMatching).pipe(operators.switchMap(function (basket) { return _this.basketEntriesService.all({ remotefilter: { id: basket.entries.map(function (e) { return e.id; }) } }); })).subscribe(function (entries) {
17635
- // Remove entries that were already present in the same quantities before
17636
- var addedEntries = entries.data.filter(function (entry) { return -1 === precedentEntries.findIndex(function (e) { return e.id === entry.id; }); });
17637
- _this.loading = false;
17638
- _this.entriesAdded.emit(addedEntries);
17639
- _this.cdr.detectChanges();
17640
- });
17641
- event.target.value = null;
17642
- _this.cdr.detectChanges();
17643
- });
17644
- };
17645
- return ListScanOverlayButtonComponent;
17646
- }());
17647
- ListScanOverlayButtonComponent.ɵfac = function ListScanOverlayButtonComponent_Factory(t) { return new (t || ListScanOverlayButtonComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(BasketEntriesService)); };
17648
- ListScanOverlayButtonComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ListScanOverlayButtonComponent, selectors: [["ng-miam-list-scan-overlay-button"]], inputs: { overlay: "overlay", disableIngredientsMatching: "disableIngredientsMatching" }, outputs: { entriesAdded: "entriesAdded" }, decls: 9, vars: 10, consts: function () {
17649
- var i18n_0;
17650
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17651
- var MSG_EXTERNAL_9000606311700990605$$LIB__WEB_COMPONENTS_LIST_SCAN_OVERLAY_BUTTON_OVERLAY_BUTTON_COMPONENT_TS__1 = goog.getMsg("Scanner ma liste de courses");
17652
- i18n_0 = MSG_EXTERNAL_9000606311700990605$$LIB__WEB_COMPONENTS_LIST_SCAN_OVERLAY_BUTTON_OVERLAY_BUTTON_COMPONENT_TS__1;
17653
- }
17654
- else {
17655
- i18n_0 = $localize(templateObject_1$x || (templateObject_1$x = __makeTemplateObject([":\u241F31747b17286ea322be11364117493239fa83093e\u241F9000606311700990605:Scanner ma liste de courses"], [":\u241F31747b17286ea322be11364117493239fa83093e\u241F9000606311700990605:Scanner ma liste de courses"])));
17656
- }
17657
- return [[1, "miam-list-scan__overlay-button", 3, "ngClass"], ["type", "file", "name", "file", "id", "file", "accept", "image/*", "capture", "environment", 1, "inputfile", 3, "disabled", "change"], ["for", "file", 1, "m-button", "m-button-primary", "miam-list-scan__overlay-button__label", 3, "click"], ["width", "24", 3, "iconName", 4, "ngIf"], ["class", "button-label", 3, "ngClass", 4, "ngIf"], [4, "ngIf"], [1, "miam-list-scan__overlay-button__reduce", 3, "ngClass", "click"], ["width", "24", "height", "24", "viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M9.91957 12L5.95977 8.0402L7.93967 6.0603L11.8995 10.0201L15.8593 6.0603L17.8392 8.0402L13.8794 12L17.8392 15.9598L15.8593 17.9397L11.8995 13.9799L7.93967 17.9397L5.95977 15.9598L9.91957 12Z", "fill", "#676767"], ["width", "24", 3, "iconName"], [1, "button-label", 3, "ngClass"], i18n_0];
17658
- }, template: function ListScanOverlayButtonComponent_Template(rf, ctx) {
17659
- if (rf & 1) {
17660
- i0__namespace.ɵɵelementStart(0, "div", 0);
17661
- i0__namespace.ɵɵelementStart(1, "input", 1);
17662
- i0__namespace.ɵɵlistener("change", function ListScanOverlayButtonComponent_Template_input_change_1_listener($event) { return ctx.sendFile($event); });
17663
- i0__namespace.ɵɵelementEnd();
17664
- i0__namespace.ɵɵelementStart(2, "label", 2);
17665
- i0__namespace.ɵɵlistener("click", function ListScanOverlayButtonComponent_Template_label_click_2_listener() { return ctx.toggleReduce("false"); });
17666
- i0__namespace.ɵɵtemplate(3, ListScanOverlayButtonComponent_ng_miam_icon_3_Template, 1, 1, "ng-miam-icon", 3);
17667
- i0__namespace.ɵɵtemplate(4, ListScanOverlayButtonComponent_div_4_Template, 2, 3, "div", 4);
17668
- i0__namespace.ɵɵtemplate(5, ListScanOverlayButtonComponent_ng_miam_loader_5_Template, 1, 0, "ng-miam-loader", 5);
17669
- i0__namespace.ɵɵelementEnd();
17670
- i0__namespace.ɵɵelementStart(6, "div", 6);
17671
- i0__namespace.ɵɵlistener("click", function ListScanOverlayButtonComponent_Template_div_click_6_listener() { return ctx.toggleReduce("true"); });
17672
- i0__namespace.ɵɵnamespaceSVG();
17673
- i0__namespace.ɵɵelementStart(7, "svg", 7);
17674
- i0__namespace.ɵɵelement(8, "path", 8);
17675
- i0__namespace.ɵɵelementEnd();
17676
- i0__namespace.ɵɵelementEnd();
17677
- i0__namespace.ɵɵelementEnd();
17678
- }
17679
- if (rf & 2) {
17680
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(6, _c3$3, ctx.overlay));
17681
- i0__namespace.ɵɵadvance(1);
17682
- i0__namespace.ɵɵproperty("disabled", ctx.loading);
17683
- i0__namespace.ɵɵadvance(2);
17684
- i0__namespace.ɵɵproperty("ngIf", !ctx.loading);
17685
- i0__namespace.ɵɵadvance(1);
17686
- i0__namespace.ɵɵproperty("ngIf", !ctx.loading);
17687
- i0__namespace.ɵɵadvance(1);
17688
- i0__namespace.ɵɵproperty("ngIf", ctx.loading);
17689
- i0__namespace.ɵɵadvance(1);
17690
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c2$5, ctx.reduced == "true"));
17691
- }
17692
- }, directives: [i2__namespace$1.NgClass, i2__namespace$1.NgIf, IconComponent, LoaderComponent], styles: [".miam-list-scan__overlay-button[_ngcontent-%COMP%]{position:relative;display:inline-block}.miam-list-scan__overlay-button.overlay[_ngcontent-%COMP%]{position:fixed;bottom:20px;right:20px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .inputfile[_ngcontent-%COMP%]{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%]{min-width:0;max-height:50px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] ng-miam-icon[_ngcontent-%COMP%]{margin:0}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] .button-label[_ngcontent-%COMP%]{margin-left:10px}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__label[_ngcontent-%COMP%] .button-label.reduced[_ngcontent-%COMP%]{display:none}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__reduce[_ngcontent-%COMP%]{position:absolute;top:-9px;right:-8px;width:24px;height:24px;display:flex;justify-content:center;align-items:center;font-size:16px;border-radius:12px;background-color:#fff;font-weight:700;box-shadow:0 2px 5px rgba(0,0,0,.25);cursor:pointer}.miam-list-scan__overlay-button[_ngcontent-%COMP%] .miam-list-scan__overlay-button__reduce.reduced[_ngcontent-%COMP%]{display:none}"], changeDetection: 0 });
17693
- (function () {
17694
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ListScanOverlayButtonComponent, [{
17695
- type: i0.Component,
17696
- args: [{
17697
- selector: 'ng-miam-list-scan-overlay-button',
17698
- templateUrl: './overlay-button.component.html',
17699
- styleUrls: ['./overlay-button.component.scss'],
17700
- changeDetection: i0.ChangeDetectionStrategy.OnPush
17701
- }]
17702
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: BasketEntriesService }]; }, { overlay: [{
17703
- type: i0.Input
17704
- }], disableIngredientsMatching: [{
17705
- type: i0.Input
17706
- }], entriesAdded: [{
17707
- type: i0.Output
17708
- }] });
17709
- })();
17710
- var templateObject_1$x;
17711
-
17712
- function ListScanIngredientsListComponent_span_4_Template(rf, ctx) {
17713
- if (rf & 1) {
17714
- i0__namespace.ɵɵelementStart(0, "span");
17715
- i0__namespace.ɵɵtext(1);
17716
- i0__namespace.ɵɵelementEnd();
17717
- }
17718
- if (rf & 2) {
17719
- var ctx_r0 = i0__namespace.ɵɵnextContext();
17720
- i0__namespace.ɵɵadvance(1);
17721
- i0__namespace.ɵɵtextInterpolate(ctx_r0.title);
17722
- }
17723
- }
17724
- function ListScanIngredientsListComponent_span_5_Template(rf, ctx) {
17725
- if (rf & 1) {
17726
- i0__namespace.ɵɵelementStart(0, "span");
17727
- i0__namespace.ɵɵi18n(1, 12);
17728
- i0__namespace.ɵɵelementEnd();
17729
- }
17730
- }
17731
- function ListScanIngredientsListComponent_div_7_Template(rf, ctx) {
17732
- if (rf & 1) {
17733
- var _r5_1 = i0__namespace.ɵɵgetCurrentView();
17734
- i0__namespace.ɵɵelementStart(0, "div", 13);
17735
- i0__namespace.ɵɵelementStart(1, "div", 14);
17736
- i0__namespace.ɵɵlistener("click", function ListScanIngredientsListComponent_div_7_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r5_1); var e_r3 = ctx.$implicit; var ctx_r4 = i0__namespace.ɵɵnextContext(); return ctx_r4.deleteEntry(e_r3); });
17737
- i0__namespace.ɵɵelement(2, "ng-miam-icon", 15);
17738
- i0__namespace.ɵɵelementEnd();
17739
- i0__namespace.ɵɵelementStart(3, "div", 16);
17740
- i0__namespace.ɵɵelementStart(4, "div", 17);
17741
- i0__namespace.ɵɵelementStart(5, "span");
17742
- i0__namespace.ɵɵi18n(6, 18);
17743
- i0__namespace.ɵɵelementEnd();
17744
- i0__namespace.ɵɵelementEnd();
17745
- i0__namespace.ɵɵelementStart(7, "input", 19);
17746
- i0__namespace.ɵɵlistener("ngModelChange", function ListScanIngredientsListComponent_div_7_Template_input_ngModelChange_7_listener($event) { var e_r3 = ctx.$implicit; return e_r3.name = $event; });
17747
- i0__namespace.ɵɵelementEnd();
17748
- i0__namespace.ɵɵelementEnd();
17749
- i0__namespace.ɵɵelementStart(8, "div", 20);
17750
- i0__namespace.ɵɵelementStart(9, "div", 17);
17751
- i0__namespace.ɵɵi18n(10, 21);
17752
- i0__namespace.ɵɵelementEnd();
17753
- i0__namespace.ɵɵelementStart(11, "input", 22);
17754
- i0__namespace.ɵɵlistener("ngModelChange", function ListScanIngredientsListComponent_div_7_Template_input_ngModelChange_11_listener($event) { var e_r3 = ctx.$implicit; return e_r3.ingredientsQuantity = $event; });
17755
- i0__namespace.ɵɵelementEnd();
17756
- i0__namespace.ɵɵelementEnd();
17757
- i0__namespace.ɵɵelementStart(12, "div", 23);
17758
- i0__namespace.ɵɵelementStart(13, "div", 17);
17759
- i0__namespace.ɵɵi18n(14, 24);
17760
- i0__namespace.ɵɵelementEnd();
17761
- i0__namespace.ɵɵelementStart(15, "input", 19);
17762
- i0__namespace.ɵɵlistener("ngModelChange", function ListScanIngredientsListComponent_div_7_Template_input_ngModelChange_15_listener($event) { var e_r3 = ctx.$implicit; return e_r3.ingredientsUnit = $event; });
17763
- i0__namespace.ɵɵelementEnd();
17764
- i0__namespace.ɵɵelementEnd();
17765
- i0__namespace.ɵɵelementEnd();
17766
- }
17767
- if (rf & 2) {
17768
- var e_r3 = ctx.$implicit;
17769
- var ctx_r2 = i0__namespace.ɵɵnextContext();
17770
- i0__namespace.ɵɵadvance(2);
17771
- i0__namespace.ɵɵproperty("iconName", ctx_r2.icon.Trash_greyText);
17772
- i0__namespace.ɵɵadvance(5);
17773
- i0__namespace.ɵɵproperty("ngModel", e_r3.name);
17774
- i0__namespace.ɵɵadvance(4);
17775
- i0__namespace.ɵɵproperty("ngModel", e_r3.ingredientsQuantity);
17776
- i0__namespace.ɵɵadvance(4);
17777
- i0__namespace.ɵɵproperty("ngModel", e_r3.ingredientsUnit);
17778
- }
17779
- }
17780
- var ListScanIngredientsListComponent = /** @class */ (function () {
17781
- function ListScanIngredientsListComponent(cdr, basketsService) {
17782
- this.cdr = cdr;
17783
- this.basketsService = basketsService;
17784
- this.entries = [];
17785
- this.closed = new i0.EventEmitter();
17786
- this.cancelled = new i0.EventEmitter();
17787
- this.confirmed = new i0.EventEmitter();
17788
- this.icon = exports.Icon;
17789
- this.subscriptions = [];
17790
- }
17791
- ListScanIngredientsListComponent.prototype.ngOnDestroy = function () {
17792
- this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
17793
- };
17794
- ListScanIngredientsListComponent.prototype.deleteEntry = function (e) {
17795
- this.entries.splice(this.entries.indexOf(e), 1);
17796
- this.cdr.detectChanges();
17797
- e.delete();
17798
- };
17799
- ListScanIngredientsListComponent.prototype.cancel = function () {
17800
- this.cancelled.emit();
17801
- };
17802
- // Save modified entries, reload basket, and move to next step
17803
- ListScanIngredientsListComponent.prototype.confirm = function () {
17804
- var _this = this;
17805
- if (this.entries.length === 0) {
17806
- return this.closed.emit();
17807
- }
17808
- this.subscriptions.push(rxjs.forkJoin(this.entries.map(function (e) {
17809
- e.status = 'active'; // force reactivation of entry in case the name has changed (and was unavailable before)
17810
- return e.save();
17811
- })).pipe(operators.switchMap(function () { return _this.basketsService.reloadBasket(); })).subscribe(function () { return _this.confirmed.emit(); }));
17812
- };
17813
- return ListScanIngredientsListComponent;
17814
- }());
17815
- ListScanIngredientsListComponent.ɵfac = function ListScanIngredientsListComponent_Factory(t) { return new (t || ListScanIngredientsListComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService)); };
17816
- ListScanIngredientsListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ListScanIngredientsListComponent, selectors: [["ng-miam-list-scan-ingredients-list"]], inputs: { entries: "entries", title: "title" }, outputs: { closed: "closed", cancelled: "cancelled", confirmed: "confirmed" }, decls: 15, vars: 5, consts: function () {
17817
- var i18n_0;
17818
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17819
- var MSG_EXTERNAL_1711750570766225138$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS_1 = goog.getMsg("Annuler");
17820
- i18n_0 = MSG_EXTERNAL_1711750570766225138$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS_1;
17821
- }
17822
- else {
17823
- i18n_0 = $localize(templateObject_1$w || (templateObject_1$w = __makeTemplateObject([":\u241F12380235948088ddf227ad226ce8a2ae63878fe5\u241F1711750570766225138:Annuler"], [":\u241F12380235948088ddf227ad226ce8a2ae63878fe5\u241F1711750570766225138:Annuler"])));
17824
- }
17825
- var i18n_2;
17826
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17827
- var MSG_EXTERNAL_2442594023338429261$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS_3 = goog.getMsg("Mettre au panier");
17828
- i18n_2 = MSG_EXTERNAL_2442594023338429261$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS_3;
17829
- }
17830
- else {
17831
- i18n_2 = $localize(templateObject_2$p || (templateObject_2$p = __makeTemplateObject([":\u241F40e07a12607b68ae1683523654d84a60f5649cd6\u241F2442594023338429261:Mettre au panier"], [":\u241F40e07a12607b68ae1683523654d84a60f5649cd6\u241F2442594023338429261:Mettre au panier"])));
17832
- }
17833
- var i18n_4;
17834
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17835
- var MSG_EXTERNAL_5297120705760700563$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__5 = goog.getMsg("R\u00E9sultats du scan");
17836
- i18n_4 = MSG_EXTERNAL_5297120705760700563$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__5;
17837
- }
17838
- else {
17839
- i18n_4 = $localize(templateObject_3$j || (templateObject_3$j = __makeTemplateObject([":\u241F17692d2c45b05468a905b395384330d62cb92cbc\u241F5297120705760700563:R\u00E9sultats du scan"], [":\u241F17692d2c45b05468a905b395384330d62cb92cbc\u241F5297120705760700563:R\u00E9sultats du scan"])));
17840
- }
17841
- var i18n_6;
17842
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17843
- var MSG_EXTERNAL_5363451304863092478$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__7 = goog.getMsg("Nom");
17844
- i18n_6 = MSG_EXTERNAL_5363451304863092478$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__7;
17845
- }
17846
- else {
17847
- i18n_6 = $localize(templateObject_4$f || (templateObject_4$f = __makeTemplateObject([":\u241F01afa66a69c6cf5671972200a4e4e2720815b344\u241F5363451304863092478:Nom"], [":\u241F01afa66a69c6cf5671972200a4e4e2720815b344\u241F5363451304863092478:Nom"])));
17848
- }
17849
- var i18n_8;
17850
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17851
- var MSG_EXTERNAL_7013342739706915791$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__9 = goog.getMsg("Quantit\u00E9");
17852
- i18n_8 = MSG_EXTERNAL_7013342739706915791$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__9;
17853
- }
17854
- else {
17855
- i18n_8 = $localize(templateObject_5$c || (templateObject_5$c = __makeTemplateObject([":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"], [":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"])));
17856
- }
17857
- var i18n_10;
17858
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17859
- var MSG_EXTERNAL_4998616682175982835$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__11 = goog.getMsg("Unit\u00E9");
17860
- i18n_10 = MSG_EXTERNAL_4998616682175982835$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__11;
17861
- }
17862
- else {
17863
- i18n_10 = $localize(templateObject_6$a || (templateObject_6$a = __makeTemplateObject([":\u241F9c92a8d6a007a580ef48c6ac194741f76b83a512\u241F4998616682175982835:Unit\u00E9"], [":\u241F9c92a8d6a007a580ef48c6ac194741f76b83a512\u241F4998616682175982835:Unit\u00E9"])));
17864
- }
17865
- return [[1, "miam-list-scan__ingredients-list"], [1, "miam-list-scan__ingredients-list__header"], ["width", "24", "height", "24", 3, "iconName", "click"], [4, "ngIf"], [1, "miam-list-scan__ingredients-list__content"], ["class", "miam-list-scan__ingredients-list__entry", 4, "ngFor", "ngForOf"], [1, "miam-list-scan__ingredients-list__controls"], [1, "m-button-grey", 3, "click"], i18n_0, [1, "m-button-primary", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_2, i18n_4, [1, "miam-list-scan__ingredients-list__entry"], [1, "miam-list-scan__ingredients-list__entry__delete", 3, "click"], [3, "iconName"], [1, "miam-list-scan__ingredients-list__entry__name"], [1, "entry-label"], i18n_6, ["type", "text", 3, "ngModel", "ngModelChange"], [1, "miam-list-scan__ingredients-list__entry__quantity"], i18n_8, ["type", "number", 3, "ngModel", "ngModelChange"], [1, "miam-list-scan__ingredients-list__entry__unit"], i18n_10];
17866
- }, template: function ListScanIngredientsListComponent_Template(rf, ctx) {
17867
- if (rf & 1) {
17868
- i0__namespace.ɵɵelementStart(0, "div", 0);
17869
- i0__namespace.ɵɵelementStart(1, "div", 1);
17870
- i0__namespace.ɵɵelementStart(2, "ng-miam-icon", 2);
17871
- i0__namespace.ɵɵlistener("click", function ListScanIngredientsListComponent_Template_ng_miam_icon_click_2_listener() { return ctx.cancel(); });
17872
- i0__namespace.ɵɵelementEnd();
17873
- i0__namespace.ɵɵelementStart(3, "h3");
17874
- i0__namespace.ɵɵtemplate(4, ListScanIngredientsListComponent_span_4_Template, 2, 1, "span", 3);
17875
- i0__namespace.ɵɵtemplate(5, ListScanIngredientsListComponent_span_5_Template, 2, 0, "span", 3);
17876
- i0__namespace.ɵɵelementEnd();
17877
- i0__namespace.ɵɵelementEnd();
17878
- i0__namespace.ɵɵelementStart(6, "div", 4);
17879
- i0__namespace.ɵɵtemplate(7, ListScanIngredientsListComponent_div_7_Template, 16, 4, "div", 5);
17880
- i0__namespace.ɵɵelementEnd();
17881
- i0__namespace.ɵɵelementStart(8, "div", 6);
17882
- i0__namespace.ɵɵelementStart(9, "button", 7);
17883
- i0__namespace.ɵɵlistener("click", function ListScanIngredientsListComponent_Template_button_click_9_listener() { return ctx.cancel(); });
17884
- i0__namespace.ɵɵi18n(10, 8);
17885
- i0__namespace.ɵɵelementEnd();
17886
- i0__namespace.ɵɵelementStart(11, "button", 9);
17887
- i0__namespace.ɵɵlistener("click", function ListScanIngredientsListComponent_Template_button_click_11_listener() { return ctx.confirm(); });
17888
- i0__namespace.ɵɵelement(12, "ng-miam-icon", 10);
17889
- i0__namespace.ɵɵelementStart(13, "span");
17890
- i0__namespace.ɵɵi18n(14, 11);
17891
- i0__namespace.ɵɵelementEnd();
17892
- i0__namespace.ɵɵelementEnd();
17893
- i0__namespace.ɵɵelementEnd();
17894
- i0__namespace.ɵɵelementEnd();
17895
- }
17896
- if (rf & 2) {
17897
- i0__namespace.ɵɵadvance(2);
17898
- i0__namespace.ɵɵproperty("iconName", ctx.icon.ArrowDown);
17899
- i0__namespace.ɵɵadvance(2);
17900
- i0__namespace.ɵɵproperty("ngIf", ctx.title);
17901
- i0__namespace.ɵɵadvance(1);
17902
- i0__namespace.ɵɵproperty("ngIf", !ctx.title);
17903
- i0__namespace.ɵɵadvance(2);
17904
- i0__namespace.ɵɵproperty("ngForOf", ctx.entries);
17905
- i0__namespace.ɵɵadvance(5);
17906
- i0__namespace.ɵɵproperty("iconName", ctx.icon.CartPlus);
17907
- }
17908
- }, directives: [IconComponent, i2__namespace$1.NgIf, i2__namespace$1.NgForOf, i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.NgModel, i3__namespace.NumberValueAccessor], styles: [".miam-list-scan__ingredients-list{position:relative;display:flex;flex-direction:column;width:100%;height:100%;border-top-left-radius:35px;border-top-right-radius:35px}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__header{position:sticky;top:0;left:0;right:0;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:24px 16px;border-bottom:1px solid #d6d6d6;background-color:var(--m-color-white)}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__header h3{margin:0}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__header ng-miam-icon{transform:rotate(90deg);margin-right:16px;cursor:pointer}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content{width:100%;flex:1;overflow-y:auto}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry{margin-bottom:8px;display:flex;width:100%;padding:16px;border-bottom:1px solid #d6d6d6}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry:last-child{border-bottom:unset}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>*{display:flex;flex-direction:column;flex:1}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>:first-child{display:flex;justify-content:center;padding-top:12px;cursor:pointer}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>:nth-child(2){flex:6;margin-right:8px}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>:last-child{flex:2;margin-left:8px}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>* .entry-label{font-size:11px}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry>* input{width:100%;border:1px solid #d3d3d3;border-radius:4px;padding:8px;color:var(--m-color-grey-text-dark)}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__content .miam-list-scan__ingredients-list__entry.overlay>:first-child{align-items:flex-start}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__controls{position:sticky;bottom:0;left:0;right:0;display:flex;width:100%}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__controls>button{flex:1;height:50px;padding:13px 8px;border:none;border-radius:0}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__controls>button:first-child{border-top:1px solid #d3d3d3}.miam-list-scan__ingredients-list .miam-list-scan__ingredients-list__controls ng-miam-icon{margin-left:0;margin-right:6px}"], encapsulation: 2, changeDetection: 0 });
17909
- (function () {
17910
- (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ListScanIngredientsListComponent, [{
17911
- type: i0.Component,
17912
- args: [{
17913
- selector: 'ng-miam-list-scan-ingredients-list',
17914
- templateUrl: './ingredients-list.component.html',
17915
- styleUrls: ['./ingredients-list.component.scss'],
17916
- encapsulation: i0.ViewEncapsulation.None,
17917
- changeDetection: i0.ChangeDetectionStrategy.OnPush
17918
- }]
17919
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }]; }, { entries: [{
17920
- type: i0.Input
17921
- }], title: [{
17922
- type: i0.Input
17923
- }], closed: [{
17924
- type: i0.Output
17925
- }], cancelled: [{
17926
- type: i0.Output
17927
- }], confirmed: [{
17928
- type: i0.Output
17929
- }] });
17930
- })();
17931
- var templateObject_1$w, templateObject_2$p, templateObject_3$j, templateObject_4$f, templateObject_5$c, templateObject_6$a;
17932
-
17933
- function ListScanBasketPreviewComponent_span_4_Template(rf, ctx) {
17934
- if (rf & 1) {
17935
- i0__namespace.ɵɵelementStart(0, "span");
17936
- i0__namespace.ɵɵtext(1);
17937
- i0__namespace.ɵɵelementEnd();
17938
- }
17939
- if (rf & 2) {
17940
- var ctx_r0 = i0__namespace.ɵɵnextContext();
17941
- i0__namespace.ɵɵadvance(1);
17942
- i0__namespace.ɵɵtextInterpolate(ctx_r0.replaceItemTitle);
17943
- }
17944
- }
17945
- function ListScanBasketPreviewComponent_span_5_Template(rf, ctx) {
17946
- if (rf & 1) {
17947
- i0__namespace.ɵɵelementStart(0, "span");
17948
- i0__namespace.ɵɵi18n(1, 12);
17949
- i0__namespace.ɵɵelementEnd();
17950
- }
17951
- }
17952
- function ListScanBasketPreviewComponent_span_6_Template(rf, ctx) {
17953
- if (rf & 1) {
17954
- i0__namespace.ɵɵelementStart(0, "span");
17955
- i0__namespace.ɵɵtext(1);
17956
- i0__namespace.ɵɵelementEnd();
17957
- }
17958
- if (rf & 2) {
17959
- var ctx_r2 = i0__namespace.ɵɵnextContext();
17960
- i0__namespace.ɵɵadvance(1);
17961
- i0__namespace.ɵɵtextInterpolate(ctx_r2.title);
17962
- }
17963
- }
17964
- function ListScanBasketPreviewComponent_span_7_Template(rf, ctx) {
17965
- if (rf & 1) {
17966
- i0__namespace.ɵɵelementStart(0, "span");
17967
- i0__namespace.ɵɵi18n(1, 13);
17968
- i0__namespace.ɵɵelementEnd();
17969
- }
17970
- }
17971
- function ListScanBasketPreviewComponent_div_9_ng_miam_basket_preview_line_1_Template(rf, ctx) {
17972
- if (rf & 1) {
17973
- var _r12_1 = i0__namespace.ɵɵgetCurrentView();
17974
- i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-line", 16);
17975
- i0__namespace.ɵɵlistener("removed", function ListScanBasketPreviewComponent_div_9_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_removed_0_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.deleteEntry($event); })("replaceItem", function ListScanBasketPreviewComponent_div_9_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_replaceItem_0_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var line_r8 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r13 = i0__namespace.ɵɵnextContext(); return ctx_r13.toggleReplacing(line_r8); });
17976
- i0__namespace.ɵɵelementEnd();
17977
- }
17978
- if (rf & 2) {
17979
- var line_r8 = i0__namespace.ɵɵnextContext().$implicit;
17980
- var ctx_r9 = i0__namespace.ɵɵnextContext();
17981
- i0__namespace.ɵɵproperty("line", line_r8)("originTrace", ctx_r9.eventTrace());
17982
- }
17983
- }
17984
- function ListScanBasketPreviewComponent_div_9_ng_miam_replace_item_2_Template(rf, ctx) {
17985
- if (rf & 1) {
17986
- var _r18_1 = i0__namespace.ɵɵgetCurrentView();
17987
- i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item", 17);
17988
- i0__namespace.ɵɵlistener("selected", function ListScanBasketPreviewComponent_div_9_ng_miam_replace_item_2_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var line_r8 = i0__namespace.ɵɵnextContext().$implicit; var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.toggleReplacing(line_r8); });
17989
- i0__namespace.ɵɵelementEnd();
17990
- }
17991
- if (rf & 2) {
17992
- var line_r8 = i0__namespace.ɵɵnextContext().$implicit;
17993
- var ctx_r10 = i0__namespace.ɵɵnextContext();
17994
- i0__namespace.ɵɵproperty("basketEntry", line_r8.record)("originTrace", ctx_r10.eventTrace());
17995
- }
17996
- }
17997
- function ListScanBasketPreviewComponent_div_9_Template(rf, ctx) {
17998
- if (rf & 1) {
17999
- i0__namespace.ɵɵelementStart(0, "div");
18000
- i0__namespace.ɵɵtemplate(1, ListScanBasketPreviewComponent_div_9_ng_miam_basket_preview_line_1_Template, 1, 2, "ng-miam-basket-preview-line", 14);
18001
- i0__namespace.ɵɵtemplate(2, ListScanBasketPreviewComponent_div_9_ng_miam_replace_item_2_Template, 1, 2, "ng-miam-replace-item", 15);
18002
- i0__namespace.ɵɵelementEnd();
18003
- }
18004
- if (rf & 2) {
18005
- var line_r8 = ctx.$implicit;
18006
- i0__namespace.ɵɵadvance(1);
18007
- i0__namespace.ɵɵproperty("ngIf", !line_r8["replacing"]);
18008
- i0__namespace.ɵɵadvance(1);
18009
- i0__namespace.ɵɵproperty("ngIf", line_r8["replacing"]);
18010
- }
18011
- }
18012
- function ListScanBasketPreviewComponent_ng_miam_basket_preview_disabled_10_Template(rf, ctx) {
18013
- if (rf & 1) {
18014
- i0__namespace.ɵɵelement(0, "ng-miam-basket-preview-disabled", 18);
18015
- }
18016
- if (rf & 2) {
18017
- var ctx_r5 = i0__namespace.ɵɵnextContext();
18018
- i0__namespace.ɵɵproperty("entries", ctx_r5.unavailable);
18019
- }
18020
- }
18021
- function ListScanBasketPreviewComponent_ng_miam_loader_13_Template(rf, ctx) {
18022
- if (rf & 1) {
18023
- i0__namespace.ɵɵelement(0, "ng-miam-loader");
18024
- }
18025
- }
18026
- function ListScanBasketPreviewComponent_span_14_Template(rf, ctx) {
18027
- if (rf & 1) {
18028
- i0__namespace.ɵɵelementStart(0, "span");
18029
- i0__namespace.ɵɵi18n(1, 19);
18030
- i0__namespace.ɵɵelementEnd();
18031
- }
18032
- }
18033
- var _c8$1 = function (a0) { return { "replacing": a0 }; };
18034
17495
  var ListScanBasketPreviewComponent = /** @class */ (function (_super) {
18035
17496
  __extends(ListScanBasketPreviewComponent, _super);
18036
- function ListScanBasketPreviewComponent(cdr, basketsService, analyticsService, recipesService) {
17497
+ function ListScanBasketPreviewComponent(cdr, analyticsService, listScanService, productReplacementService) {
18037
17498
  var _this = _super.call(this, analyticsService) || this;
18038
17499
  _this.cdr = cdr;
18039
- _this.basketsService = basketsService;
18040
17500
  _this.analyticsService = analyticsService;
18041
- _this.recipesService = recipesService;
18042
- _this.entries = [];
17501
+ _this.listScanService = listScanService;
17502
+ _this.productReplacementService = productReplacementService;
18043
17503
  _this.closed = new i0.EventEmitter();
18044
17504
  _this.cancelled = new i0.EventEmitter();
18045
- _this.removedEntries = new i0.EventEmitter();
18046
17505
  _this.icon = exports.Icon;
18047
- _this.lines = [];
18048
- _this.unavailable = [];
18049
- _this.replaceItemCurrentLine = undefined;
18050
- _this.removeEntriesLoading = false;
17506
+ _this.entries = [];
18051
17507
  _this.subscriptions = [];
18052
17508
  return _this;
18053
17509
  }
18054
17510
  ListScanBasketPreviewComponent.prototype.ngOnInit = function () {
18055
17511
  var _this = this;
18056
- var entriesIds = this.entries.map(function (e) { return e.id.toString(); });
18057
- this.subscriptions.push(this.basketsService.basketPreview$.pipe(operators.skipWhile(function (preview) { return !preview; }), operators.switchMap(function () { return _this.basketsService.basketEntries(); })).subscribe(function (basketEntries) {
18058
- // this.recipesService.loadRecipes([this.{id: this.line.id, guests: this.line.count.toString()}]).pipe(
18059
- // take(1),
18060
- // map((recipe) => {
18061
- _this.lines = basketEntries
18062
- .filter(function (be) { return entriesIds.includes(be.id) && be.status === 'active' && be.selectedItem; })
18063
- .map(function (be) { return BasketPreviewLine.fromBasketEntry(be); });
18064
- // }));
18065
- _this.unavailable = basketEntries
18066
- .filter(function (be) { return entriesIds.includes(be.id) && (be.status !== 'active' || !be.selectedItem); });
17512
+ this.subscriptions.push(this.listScanService.currentBasketEntries.subscribe(function (currentEntries) {
17513
+ _this.entries = currentEntries;
18067
17514
  _this.cdr.detectChanges();
18068
17515
  }));
18069
17516
  };
18070
17517
  ListScanBasketPreviewComponent.prototype.ngOnDestroy = function () {
18071
17518
  this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
18072
17519
  };
18073
- ListScanBasketPreviewComponent.prototype.currentPath = function () { return 'list-scan'; };
17520
+ ListScanBasketPreviewComponent.prototype.currentPath = function () { return ''; };
18074
17521
  ListScanBasketPreviewComponent.prototype.close = function () {
18075
17522
  this.closed.emit();
18076
17523
  };
18077
17524
  ListScanBasketPreviewComponent.prototype.cancel = function () {
18078
17525
  this.cancelled.emit();
18079
17526
  };
18080
- ListScanBasketPreviewComponent.prototype.removeEntries = function () {
18081
- var _this = this;
18082
- this.removeEntriesLoading = true;
18083
- this.cdr.detectChanges();
18084
- if (this.entries.length === 0) {
18085
- this.removeEntriesLoading = false;
18086
- return this.removedEntries.emit();
18087
- }
18088
- this.subscriptions.push(rxjs.forkJoin(this.entries.map(function (e) { return e.delete(); })).pipe(
18089
- // Reload the basket to make sure the injector receives the update
18090
- operators.switchMap(function () { return _this.basketsService.reloadBasket(); })).subscribe(function () {
18091
- _this.removeEntriesLoading = false;
18092
- _this.removedEntries.emit();
18093
- }));
17527
+ ListScanBasketPreviewComponent.prototype.trackByEntryFn = function (index, entry) {
17528
+ return entry.id;
18094
17529
  };
18095
- // Remove groceries entry from entries array, and line from lines array
18096
- ListScanBasketPreviewComponent.prototype.deleteEntry = function (line) {
18097
- var _this = this;
18098
- this.lines.splice(this.lines.indexOf(line), 1);
18099
- this.cdr.detectChanges();
18100
- this.entries.splice(this.entries.indexOf(line.record), 1);
18101
- this.subscriptions.push(line.record.delete().pipe(operators.switchMap(function () { return _this.basketsService.reloadBasket(); })).subscribe());
18102
- };
18103
- ListScanBasketPreviewComponent.prototype.toggleReplacing = function (line) {
18104
- // Recalculate basket entry price to avoid JS errors...
18105
- line['replacing'] = !line['replacing'];
18106
- this.replaceItemCurrentLine = line['replacing'] ? line : undefined;
17530
+ ListScanBasketPreviewComponent.prototype.handleReplaceButtonClick = function (product) {
17531
+ this.productReplacementService.updateProductToReplace(product);
17532
+ this.productReplacementService.changeModalState(true);
18107
17533
  this.cdr.detectChanges();
18108
17534
  };
18109
17535
  return ListScanBasketPreviewComponent;
18110
17536
  }(EventTracerComponent));
18111
- ListScanBasketPreviewComponent.ɵfac = function ListScanBasketPreviewComponent_Factory(t) { return new (t || ListScanBasketPreviewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(RecipesService)); };
18112
- ListScanBasketPreviewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ListScanBasketPreviewComponent, selectors: [["ng-miam-list-scan-basket-preview"]], inputs: { entries: "entries", title: "title", replaceItemTitle: "replaceItemTitle" }, outputs: { closed: "closed", cancelled: "cancelled", removedEntries: "removedEntries" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 19, vars: 13, consts: function () {
17537
+ ListScanBasketPreviewComponent.ɵfac = function ListScanBasketPreviewComponent_Factory(t) { return new (t || ListScanBasketPreviewComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(ListScanService), i0__namespace.ɵɵdirectiveInject(ProductReplacementService)); };
17538
+ ListScanBasketPreviewComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ListScanBasketPreviewComponent, selectors: [["ng-miam-list-scan-basket-preview"]], outputs: { closed: "closed", cancelled: "cancelled" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: function () {
18113
17539
  var i18n_0;
18114
17540
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18115
- var MSG_EXTERNAL_6492937435856655320$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS_1 = goog.getMsg("Ajouter au panier");
18116
- i18n_0 = MSG_EXTERNAL_6492937435856655320$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS_1;
17541
+ var MSG_EXTERNAL_4239310127006405587$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS___1 = goog.getMsg("Le produit est indisponible.");
17542
+ i18n_0 = MSG_EXTERNAL_4239310127006405587$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS___1;
18117
17543
  }
18118
17544
  else {
18119
- i18n_0 = $localize(templateObject_1$v || (templateObject_1$v = __makeTemplateObject([":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"], [":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"])));
17545
+ i18n_0 = $localize(templateObject_1$w || (templateObject_1$w = __makeTemplateObject([":\u241F0a58fc3a6ac920982fd6c8f172549f6166609cda\u241F4239310127006405587:Le produit est indisponible."], [":\u241F0a58fc3a6ac920982fd6c8f172549f6166609cda\u241F4239310127006405587:Le produit est indisponible."])));
18120
17546
  }
18121
17547
  var i18n_2;
18122
17548
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18123
- var MSG_EXTERNAL_1510596953357992619$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS__3 = goog.getMsg("Remplacer le produit");
18124
- i18n_2 = MSG_EXTERNAL_1510596953357992619$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS__3;
17549
+ var MSG_EXTERNAL_4705093661060921903$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS___3 = goog.getMsg("Remplacer");
17550
+ i18n_2 = MSG_EXTERNAL_4705093661060921903$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS___3;
18125
17551
  }
18126
17552
  else {
18127
- i18n_2 = $localize(templateObject_2$o || (templateObject_2$o = __makeTemplateObject([":\u241Facf066b76f933bfa13756df07747ccf5585fa796\u241F1510596953357992619:Remplacer le produit"], [":\u241Facf066b76f933bfa13756df07747ccf5585fa796\u241F1510596953357992619:Remplacer le produit"])));
17553
+ i18n_2 = $localize(templateObject_2$p || (templateObject_2$p = __makeTemplateObject([":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"], [":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"])));
18128
17554
  }
18129
- var i18n_4;
18130
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18131
- var MSG_EXTERNAL_1383155588141366144$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS__5 = goog.getMsg("Produits ajout\u00E9s");
18132
- i18n_4 = MSG_EXTERNAL_1383155588141366144$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS__5;
18133
- }
18134
- else {
18135
- i18n_4 = $localize(templateObject_3$i || (templateObject_3$i = __makeTemplateObject([":\u241F618ddb6ee5f9831bb6db1742e8a16d52457f3582\u241F1383155588141366144:Produits ajout\u00E9s"], [":\u241F618ddb6ee5f9831bb6db1742e8a16d52457f3582\u241F1383155588141366144:Produits ajout\u00E9s"])));
18136
- }
18137
- var i18n_6;
18138
- if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18139
- var MSG_EXTERNAL_2301331841798252546$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS__7 = goog.getMsg("Abandonner");
18140
- i18n_6 = MSG_EXTERNAL_2301331841798252546$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS__7;
18141
- }
18142
- else {
18143
- i18n_6 = $localize(templateObject_4$e || (templateObject_4$e = __makeTemplateObject([":\u241F3c82243384cd7c24acaf9799b0b8e684e6e6f3ef\u241F2301331841798252546:Abandonner"], [":\u241F3c82243384cd7c24acaf9799b0b8e684e6e6f3ef\u241F2301331841798252546:Abandonner"])));
18144
- }
18145
- return [[1, "miam-list-scan__basket-preview"], [1, "miam-list-scan__basket-preview__header"], ["width", "24", "height", "24", 3, "iconName", "click"], [4, "ngIf"], [1, "miam-list-scan__basket-preview__content", 3, "ngClass"], [4, "ngFor", "ngForOf"], [3, "entries", 4, "ngIf"], [1, "miam-list-scan__basket-preview__controls"], [1, "m-button-secondary", 3, "click"], [1, "m-button-primary", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_0, i18n_2, i18n_4, [3, "line", "originTrace", "removed", "replaceItem", 4, "ngIf"], [3, "basketEntry", "originTrace", "selected", 4, "ngIf"], [3, "line", "originTrace", "removed", "replaceItem"], [3, "basketEntry", "originTrace", "selected"], [3, "entries"], i18n_6];
17555
+ return [[1, "miam-list-scan__basket-preview"], [4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-list-scan__basket-preview__product"], [1, "miam-list-scan__basket-preview__product__name"], [1, "miam-ds-text", "size-s", "weight-xl"], [3, "basketEntry", "displayReplace", "replaceButtonClicked", 4, "ngIf", "ngIfElse"], ["noItem", ""], [3, "basketEntry", "displayReplace", "replaceButtonClicked"], [1, "miam-list-scan__basket-preview__product__no-item"], [1, "miam-ds-text", "size-s", "weight-m"], i18n_0, [1, "miam-basket-preview-product__replace-button", "miam-ds-button", "ghost", 3, "click"], i18n_2];
18146
17556
  }, template: function ListScanBasketPreviewComponent_Template(rf, ctx) {
18147
17557
  if (rf & 1) {
18148
17558
  i0__namespace.ɵɵelementStart(0, "div", 0);
18149
- i0__namespace.ɵɵelementStart(1, "div", 1);
18150
- i0__namespace.ɵɵelementStart(2, "ng-miam-icon", 2);
18151
- i0__namespace.ɵɵlistener("click", function ListScanBasketPreviewComponent_Template_ng_miam_icon_click_2_listener() { return ctx.replaceItemCurrentLine ? ctx.toggleReplacing(ctx.replaceItemCurrentLine) : ctx.cancel(); });
18152
- i0__namespace.ɵɵelementEnd();
18153
- i0__namespace.ɵɵelementStart(3, "h3");
18154
- i0__namespace.ɵɵtemplate(4, ListScanBasketPreviewComponent_span_4_Template, 2, 1, "span", 3);
18155
- i0__namespace.ɵɵtemplate(5, ListScanBasketPreviewComponent_span_5_Template, 2, 0, "span", 3);
18156
- i0__namespace.ɵɵtemplate(6, ListScanBasketPreviewComponent_span_6_Template, 2, 1, "span", 3);
18157
- i0__namespace.ɵɵtemplate(7, ListScanBasketPreviewComponent_span_7_Template, 2, 0, "span", 3);
18158
- i0__namespace.ɵɵelementEnd();
18159
- i0__namespace.ɵɵelementEnd();
18160
- i0__namespace.ɵɵelementStart(8, "div", 4);
18161
- i0__namespace.ɵɵtemplate(9, ListScanBasketPreviewComponent_div_9_Template, 3, 2, "div", 5);
18162
- i0__namespace.ɵɵtemplate(10, ListScanBasketPreviewComponent_ng_miam_basket_preview_disabled_10_Template, 1, 1, "ng-miam-basket-preview-disabled", 6);
18163
- i0__namespace.ɵɵelementEnd();
18164
- i0__namespace.ɵɵelementStart(11, "div", 7);
18165
- i0__namespace.ɵɵelementStart(12, "button", 8);
18166
- i0__namespace.ɵɵlistener("click", function ListScanBasketPreviewComponent_Template_button_click_12_listener() { return ctx.removeEntries(); });
18167
- i0__namespace.ɵɵtemplate(13, ListScanBasketPreviewComponent_ng_miam_loader_13_Template, 1, 0, "ng-miam-loader", 3);
18168
- i0__namespace.ɵɵtemplate(14, ListScanBasketPreviewComponent_span_14_Template, 2, 0, "span", 3);
18169
- i0__namespace.ɵɵelementEnd();
18170
- i0__namespace.ɵɵelementStart(15, "button", 9);
18171
- i0__namespace.ɵɵlistener("click", function ListScanBasketPreviewComponent_Template_button_click_15_listener() { return ctx.close(); });
18172
- i0__namespace.ɵɵelement(16, "ng-miam-icon", 10);
18173
- i0__namespace.ɵɵelementStart(17, "span");
18174
- i0__namespace.ɵɵi18n(18, 11);
18175
- i0__namespace.ɵɵelementEnd();
18176
- i0__namespace.ɵɵelementEnd();
18177
- i0__namespace.ɵɵelementEnd();
17559
+ i0__namespace.ɵɵelement(1, "ng-miam-product-addition-card");
17560
+ i0__namespace.ɵɵtemplate(2, ListScanBasketPreviewComponent_ng_container_2_Template, 9, 5, "ng-container", 1);
18178
17561
  i0__namespace.ɵɵelementEnd();
18179
17562
  }
18180
17563
  if (rf & 2) {
18181
17564
  i0__namespace.ɵɵadvance(2);
18182
- i0__namespace.ɵɵproperty("iconName", ctx.icon.ArrowDown);
18183
- i0__namespace.ɵɵadvance(2);
18184
- i0__namespace.ɵɵproperty("ngIf", ctx.replaceItemCurrentLine && ctx.replaceItemTitle);
18185
- i0__namespace.ɵɵadvance(1);
18186
- i0__namespace.ɵɵproperty("ngIf", ctx.replaceItemCurrentLine && !ctx.replaceItemTitle);
18187
- i0__namespace.ɵɵadvance(1);
18188
- i0__namespace.ɵɵproperty("ngIf", !ctx.replaceItemCurrentLine && ctx.title);
18189
- i0__namespace.ɵɵadvance(1);
18190
- i0__namespace.ɵɵproperty("ngIf", !ctx.replaceItemCurrentLine && !ctx.title);
18191
- i0__namespace.ɵɵadvance(1);
18192
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(11, _c8$1, ctx.replaceItemCurrentLine));
18193
- i0__namespace.ɵɵadvance(1);
18194
- i0__namespace.ɵɵproperty("ngForOf", ctx.lines);
18195
- i0__namespace.ɵɵadvance(1);
18196
- i0__namespace.ɵɵproperty("ngIf", ctx.unavailable.length > 0);
18197
- i0__namespace.ɵɵadvance(3);
18198
- i0__namespace.ɵɵproperty("ngIf", ctx.removeEntriesLoading);
18199
- i0__namespace.ɵɵadvance(1);
18200
- i0__namespace.ɵɵproperty("ngIf", !ctx.removeEntriesLoading);
18201
- i0__namespace.ɵɵadvance(2);
18202
- i0__namespace.ɵɵproperty("iconName", ctx.icon.Cart);
17565
+ i0__namespace.ɵɵproperty("ngForOf", ctx.entries)("ngForTrackBy", ctx.trackByEntryFn);
18203
17566
  }
18204
- }, directives: [IconComponent, i2__namespace$1.NgIf, i2__namespace$1.NgClass, i2__namespace$1.NgForOf, BasketPreviewLineComponent, ReplaceItemComponent, BasketPreviewDisabledComponent, LoaderComponent], styles: [".miam-list-scan__basket-preview{position:relative;display:flex;flex-direction:column;width:100%;height:100%;border-top-left-radius:35px;border-top-right-radius:35px}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__header{position:sticky;top:0;left:0;right:0;display:flex;flex-direction:row;justify-content:flex-start;align-items:center;padding:24px 16px;border-bottom:1px solid #d6d6d6;background-color:var(--m-color-white)}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__header h3{margin:0}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__header ng-miam-icon{transform:rotate(90deg);margin-right:16px;cursor:pointer}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__content{width:100%;flex:1;overflow-y:auto}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__controls{position:sticky;bottom:0;left:0;right:0;display:flex;width:100%}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__controls>button{flex:1;height:50px;padding:13px 8px;border:none;border-radius:0}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__controls>button:first-child{border-top:1px solid #d3d3d3}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__controls ng-miam-icon{margin-left:0;margin-right:6px}"], encapsulation: 2, changeDetection: 0 });
17567
+ }, directives: [ProductAdditionCardComponent, i2__namespace$1.NgForOf, i2__namespace$1.NgIf, BasketPreviewProductComponent], pipes: [CapitalizeFirstLetterPipe], styles: [".miam-list-scan__basket-preview ng-miam-product-addition-card{margin-bottom:4px}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__product{border-radius:4px;border:1px solid var(--miam-ds-color-border);background:var(--miam-ds-color-page-background);margin:4px 0}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__product .miam-list-scan__basket-preview__product__name{padding:8px;border-bottom:1px solid var(--miam-ds-color-background-secondary);background:#e6e6e6}.miam-list-scan__basket-preview .miam-list-scan__basket-preview__product .miam-list-scan__basket-preview__product__no-item{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:8px}"], encapsulation: 2, changeDetection: 0 });
18205
17568
  (function () {
18206
17569
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ListScanBasketPreviewComponent, [{
18207
17570
  type: i0.Component,
@@ -18210,117 +17573,216 @@
18210
17573
  templateUrl: './basket-preview.component.html',
18211
17574
  styleUrls: ['./basket-preview.component.scss'],
18212
17575
  encapsulation: i0.ViewEncapsulation.None,
18213
- changeDetection: i0.ChangeDetectionStrategy.OnPush
18214
- }]
18215
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: AnalyticsService }, { type: RecipesService }]; }, { entries: [{
18216
- type: i0.Input
18217
- }], title: [{
18218
- type: i0.Input
18219
- }], replaceItemTitle: [{
18220
- type: i0.Input
18221
- }], closed: [{
17576
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
17577
+ }]
17578
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }, { type: ListScanService }, { type: ProductReplacementService }]; }, { closed: [{
18222
17579
  type: i0.Output
18223
17580
  }], cancelled: [{
18224
17581
  type: i0.Output
18225
- }], removedEntries: [{
18226
- type: i0.Output
18227
17582
  }] });
18228
17583
  })();
18229
- var templateObject_1$v, templateObject_2$o, templateObject_3$i, templateObject_4$e;
17584
+ var templateObject_1$w, templateObject_2$p;
18230
17585
 
18231
- function ListScanComponent_ng_miam_list_scan_files_inputs_1_Template(rf, ctx) {
17586
+ function ListScanFilesInputsComponent_div_1_ng_container_4_Template(rf, ctx) {
18232
17587
  if (rf & 1) {
18233
- var _r5_1 = i0__namespace.ɵɵgetCurrentView();
18234
- i0__namespace.ɵɵelementStart(0, "ng-miam-list-scan-files-inputs", 7);
18235
- i0__namespace.ɵɵlistener("entriesAdded", function ListScanComponent_ng_miam_list_scan_files_inputs_1_Template_ng_miam_list_scan_files_inputs_entriesAdded_0_listener($event) { i0__namespace.ɵɵrestoreView(_r5_1); var ctx_r4 = i0__namespace.ɵɵnextContext(); return ctx_r4.showIngredients($event); });
17588
+ i0__namespace.ɵɵelementContainerStart(0);
17589
+ i0__namespace.ɵɵelement(1, "img", 7);
17590
+ i0__namespace.ɵɵelementStart(2, "div", 8);
17591
+ i0__namespace.ɵɵelementStart(3, "span");
17592
+ i0__namespace.ɵɵi18n(4, 9);
18236
17593
  i0__namespace.ɵɵelementEnd();
18237
- }
18238
- if (rf & 2) {
18239
- var ctx_r0 = i0__namespace.ɵɵnextContext();
18240
- i0__namespace.ɵɵproperty("disableIngredientsMatching", ctx_r0.disableIngredientsMatching)("desktopText", ctx_r0.ctaDesktopText)("mobileText", ctx_r0.ctaMobileText);
17594
+ i0__namespace.ɵɵelementEnd();
17595
+ i0__namespace.ɵɵelementContainerEnd();
18241
17596
  }
18242
17597
  }
18243
- function ListScanComponent_ng_miam_list_scan_overlay_button_2_Template(rf, ctx) {
17598
+ function ListScanFilesInputsComponent_div_1_Template(rf, ctx) {
18244
17599
  if (rf & 1) {
18245
17600
  var _r7_1 = i0__namespace.ɵɵgetCurrentView();
18246
- i0__namespace.ɵɵelementStart(0, "ng-miam-list-scan-overlay-button", 8);
18247
- i0__namespace.ɵɵlistener("entriesAdded", function ListScanComponent_ng_miam_list_scan_overlay_button_2_Template_ng_miam_list_scan_overlay_button_entriesAdded_0_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); return ctx_r6.showIngredients($event); });
17601
+ i0__namespace.ɵɵelementStart(0, "div");
17602
+ i0__namespace.ɵɵelementStart(1, "input", 4);
17603
+ i0__namespace.ɵɵlistener("change", function ListScanFilesInputsComponent_div_1_Template_input_change_1_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); return ctx_r6.listScanService.sendFile($event); });
17604
+ i0__namespace.ɵɵelementEnd();
17605
+ i0__namespace.ɵɵelementStart(2, "label", 5);
17606
+ i0__namespace.ɵɵelementStart(3, "button", 6);
17607
+ i0__namespace.ɵɵtemplate(4, ListScanFilesInputsComponent_div_1_ng_container_4_Template, 5, 0, "ng-container", 1);
17608
+ i0__namespace.ɵɵelementEnd();
17609
+ i0__namespace.ɵɵelementEnd();
18248
17610
  i0__namespace.ɵɵelementEnd();
18249
17611
  }
18250
17612
  if (rf & 2) {
18251
- var ctx_r1 = i0__namespace.ɵɵnextContext();
18252
- i0__namespace.ɵɵproperty("disableIngredientsMatching", ctx_r1.disableIngredientsMatching)("overlay", ctx_r1.overlay);
17613
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
17614
+ var _r3 = i0__namespace.ɵɵreference(5);
17615
+ i0__namespace.ɵɵadvance(1);
17616
+ i0__namespace.ɵɵproperty("disabled", ctx_r0.loading);
17617
+ i0__namespace.ɵɵadvance(2);
17618
+ i0__namespace.ɵɵproperty("disabled", ctx_r0.loading);
17619
+ i0__namespace.ɵɵadvance(1);
17620
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r0.loading)("ngIfElse", _r3);
18253
17621
  }
18254
17622
  }
18255
- function ListScanComponent_ng_miam_list_scan_ingredients_list_4_Template(rf, ctx) {
17623
+ function ListScanFilesInputsComponent_ng_template_2_ng_container_3_Template(rf, ctx) {
18256
17624
  if (rf & 1) {
18257
- var _r9_1 = i0__namespace.ɵɵgetCurrentView();
18258
- i0__namespace.ɵɵelementStart(0, "ng-miam-list-scan-ingredients-list", 9);
18259
- i0__namespace.ɵɵlistener("closed", function ListScanComponent_ng_miam_list_scan_ingredients_list_4_Template_ng_miam_list_scan_ingredients_list_closed_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.hideIngredients(); })("cancelled", function ListScanComponent_ng_miam_list_scan_ingredients_list_4_Template_ng_miam_list_scan_ingredients_list_cancelled_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.cancel(); })("confirmed", function ListScanComponent_ng_miam_list_scan_ingredients_list_4_Template_ng_miam_list_scan_ingredients_list_confirmed_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.showBasketPreview(); });
17625
+ i0__namespace.ɵɵelementContainerStart(0);
17626
+ i0__namespace.ɵɵelement(1, "img", 13);
17627
+ i0__namespace.ɵɵelementStart(2, "span", 8);
17628
+ i0__namespace.ɵɵi18n(3, 14);
18260
17629
  i0__namespace.ɵɵelementEnd();
18261
- }
18262
- if (rf & 2) {
18263
- var ctx_r2 = i0__namespace.ɵɵnextContext();
18264
- i0__namespace.ɵɵproperty("entries", ctx_r2.entries)("title", ctx_r2.scanResultsTitle);
17630
+ i0__namespace.ɵɵelementContainerEnd();
18265
17631
  }
18266
17632
  }
18267
- function ListScanComponent_ng_miam_list_scan_basket_preview_5_Template(rf, ctx) {
17633
+ var _c4$2 = function (a0) { return { "disabled": a0 }; };
17634
+ function ListScanFilesInputsComponent_ng_template_2_Template(rf, ctx) {
18268
17635
  if (rf & 1) {
18269
- var _r13_1 = i0__namespace.ɵɵgetCurrentView();
18270
- i0__namespace.ɵɵelementStart(0, "ng-miam-list-scan-basket-preview", 10);
18271
- i0__namespace.ɵɵlistener("closed", function ListScanComponent_ng_miam_list_scan_basket_preview_5_Template_ng_miam_list_scan_basket_preview_closed_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r12 = i0__namespace.ɵɵnextContext(); return ctx_r12.hideBasketPreview(true); })("cancelled", function ListScanComponent_ng_miam_list_scan_basket_preview_5_Template_ng_miam_list_scan_basket_preview_cancelled_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.returnToIngredients(); })("removedEntries", function ListScanComponent_ng_miam_list_scan_basket_preview_5_Template_ng_miam_list_scan_basket_preview_removedEntries_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.hideBasketPreview(false); });
17636
+ var _r10_1 = i0__namespace.ɵɵgetCurrentView();
17637
+ i0__namespace.ɵɵelementStart(0, "input", 10);
17638
+ i0__namespace.ɵɵlistener("change", function ListScanFilesInputsComponent_ng_template_2_Template_input_change_0_listener($event) { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(); return ctx_r9.listScanService.sendFile($event); });
17639
+ i0__namespace.ɵɵelementEnd();
17640
+ i0__namespace.ɵɵelementStart(1, "label", 11);
17641
+ i0__namespace.ɵɵelementStart(2, "div", 12);
17642
+ i0__namespace.ɵɵtemplate(3, ListScanFilesInputsComponent_ng_template_2_ng_container_3_Template, 4, 0, "ng-container", 1);
17643
+ i0__namespace.ɵɵelementEnd();
18272
17644
  i0__namespace.ɵɵelementEnd();
18273
17645
  }
18274
17646
  if (rf & 2) {
18275
- var ctx_r3 = i0__namespace.ɵɵnextContext();
18276
- i0__namespace.ɵɵproperty("entries", ctx_r3.entries)("title", ctx_r3.productMatchingTitle)("replaceItemTitle", ctx_r3.replaceItemTitle);
17647
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
17648
+ var _r3 = i0__namespace.ɵɵreference(5);
17649
+ i0__namespace.ɵɵproperty("disabled", ctx_r2.loading);
17650
+ i0__namespace.ɵɵadvance(2);
17651
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c4$2, ctx_r2.loading));
17652
+ i0__namespace.ɵɵadvance(1);
17653
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r2.loading)("ngIfElse", _r3);
17654
+ }
17655
+ }
17656
+ function ListScanFilesInputsComponent_ng_template_4_Template(rf, ctx) {
17657
+ if (rf & 1) {
17658
+ i0__namespace.ɵɵelement(0, "div", 15);
18277
17659
  }
18278
17660
  }
18279
- var ListScanComponent = /** @class */ (function () {
18280
- function ListScanComponent(cdr, basketsService) {
17661
+ var ListScanFilesInputsComponent = /** @class */ (function () {
17662
+ function ListScanFilesInputsComponent(cdr, mediaMatcher, listScanService) {
18281
17663
  this.cdr = cdr;
18282
- this.basketsService = basketsService;
18283
- this.floatingButton = false;
18284
- this.overlay = true;
17664
+ this.mediaMatcher = mediaMatcher;
17665
+ this.listScanService = listScanService;
18285
17666
  this.disableIngredientsMatching = false;
18286
- this.confirmed = new i0.EventEmitter();
18287
- this.entries = [];
18288
- this.ingredientsShown = false;
18289
- this.basketPreviewShown = false;
18290
- this.cancelConfirmationShown = false;
18291
- this.subscriptions = [];
17667
+ this.icon = exports.Icon;
17668
+ this.loading = false;
17669
+ this.isMobile = false;
17670
+ this.isMobile = this.mediaMatcher.matchMedia('(max-width: 1023px)').matches;
17671
+ }
17672
+ ListScanFilesInputsComponent.prototype.ngOnInit = function () {
17673
+ var _this = this;
17674
+ this.listScanService.sendingFile.subscribe(function (isSending) {
17675
+ _this.loading = isSending;
17676
+ _this.cdr.detectChanges();
17677
+ });
17678
+ };
17679
+ return ListScanFilesInputsComponent;
17680
+ }());
17681
+ ListScanFilesInputsComponent.ɵfac = function ListScanFilesInputsComponent_Factory(t) { return new (t || ListScanFilesInputsComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(i2__namespace.MediaMatcher), i0__namespace.ɵɵdirectiveInject(ListScanService)); };
17682
+ ListScanFilesInputsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ListScanFilesInputsComponent, selectors: [["ng-miam-list-scan-files-inputs"]], inputs: { disableIngredientsMatching: "disableIngredientsMatching" }, decls: 6, vars: 2, consts: function () {
17683
+ var i18n_0;
17684
+ if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17685
+ var MSG_EXTERNAL_3102383292942643907$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS___1 = goog.getMsg("Scanner ma liste");
17686
+ i18n_0 = MSG_EXTERNAL_3102383292942643907$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS___1;
17687
+ }
17688
+ else {
17689
+ i18n_0 = $localize(templateObject_1$v || (templateObject_1$v = __makeTemplateObject([":\u241F0d34d321e3c6aa810d833ba95ed446bcdd84903a\u241F3102383292942643907:Scanner ma liste"], [":\u241F0d34d321e3c6aa810d833ba95ed446bcdd84903a\u241F3102383292942643907:Scanner ma liste"])));
17690
+ }
17691
+ var i18n_2;
17692
+ if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17693
+ var MSG_EXTERNAL_8936498507024821269$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS___3 = goog.getMsg("Importer ma liste");
17694
+ i18n_2 = MSG_EXTERNAL_8936498507024821269$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS___3;
17695
+ }
17696
+ else {
17697
+ i18n_2 = $localize(templateObject_2$o || (templateObject_2$o = __makeTemplateObject([":\u241Ff609f2fd28615425afab0e9ac43aca8d99c16d47\u241F8936498507024821269:Importer ma liste"], [":\u241Ff609f2fd28615425afab0e9ac43aca8d99c16d47\u241F8936498507024821269:Importer ma liste"])));
17698
+ }
17699
+ return [[1, "miam-files-inputs"], [4, "ngIf", "ngIfElse"], ["desktop", ""], ["loader", ""], ["type", "file", "name", "photo", "id", "photo", "accept", "image/*", "capture", "environment", 1, "miam-files-inputs__inputfile", 3, "disabled", "change"], ["for", "photo"], [1, "miam-ds-button", "primary", 3, "disabled"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ListScanner.svg", "alt", "take a photo"], [1, "miam-ds-text", "size-m", "weight-xl"], i18n_0, ["type", "file", "name", "file", "id", "file", "accept", "image/*,application/pdf", 1, "miam-files-inputs__inputfile", 3, "disabled", "change"], ["for", "file"], [1, "miam-ds-button", "secondary", 3, "ngClass"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Upload.svg", "alt", "upload"], i18n_2, [1, "miam-ds-loader"]];
17700
+ }, template: function ListScanFilesInputsComponent_Template(rf, ctx) {
17701
+ if (rf & 1) {
17702
+ i0__namespace.ɵɵelementStart(0, "div", 0);
17703
+ i0__namespace.ɵɵtemplate(1, ListScanFilesInputsComponent_div_1_Template, 5, 4, "div", 1);
17704
+ i0__namespace.ɵɵtemplate(2, ListScanFilesInputsComponent_ng_template_2_Template, 4, 6, "ng-template", null, 2, i0__namespace.ɵɵtemplateRefExtractor);
17705
+ i0__namespace.ɵɵtemplate(4, ListScanFilesInputsComponent_ng_template_4_Template, 1, 0, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
17706
+ i0__namespace.ɵɵelementEnd();
17707
+ }
17708
+ if (rf & 2) {
17709
+ var _r1 = i0__namespace.ɵɵreference(3);
17710
+ i0__namespace.ɵɵadvance(1);
17711
+ i0__namespace.ɵɵproperty("ngIf", ctx.isMobile == true)("ngIfElse", _r1);
17712
+ }
17713
+ }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgClass], styles: [".miam-files-inputs{position:relative;display:inline-block}.miam-files-inputs input{width:.1px;height:.1px;opacity:0;overflow:hidden;position:absolute;z-index:-1}"], encapsulation: 2, changeDetection: 0 });
17714
+ (function () {
17715
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ListScanFilesInputsComponent, [{
17716
+ type: i0.Component,
17717
+ args: [{
17718
+ selector: 'ng-miam-list-scan-files-inputs',
17719
+ templateUrl: './files-inputs.component.html',
17720
+ styleUrls: ['./files-inputs.component.scss'],
17721
+ encapsulation: i0.ViewEncapsulation.None,
17722
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
17723
+ }]
17724
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i2__namespace.MediaMatcher }, { type: ListScanService }]; }, { disableIngredientsMatching: [{
17725
+ type: i0.Input
17726
+ }] });
17727
+ })();
17728
+ var templateObject_1$v, templateObject_2$o;
17729
+
17730
+ var ListScanComponent = /** @class */ (function (_super) {
17731
+ __extends(ListScanComponent, _super);
17732
+ function ListScanComponent(cdr, analyticsService, listScanService) {
17733
+ var _this = _super.call(this, analyticsService) || this;
17734
+ _this.cdr = cdr;
17735
+ _this.analyticsService = analyticsService;
17736
+ _this.listScanService = listScanService;
17737
+ _this.disableIngredientsMatching = false;
17738
+ _this.confirmed = new i0.EventEmitter();
17739
+ _this.basketPreviewShown = false;
17740
+ _this.cancelConfirmationShown = false;
17741
+ _this.cancelling = false;
17742
+ _this.subscriptions = [];
17743
+ return _this;
18292
17744
  }
17745
+ ListScanComponent.prototype.ngOnInit = function () {
17746
+ this.listenEntries();
17747
+ this.listenCancelling();
17748
+ };
17749
+ ListScanComponent.prototype.ngOnChanges = function (changes) {
17750
+ if (changes.disableIngredientsMatching) {
17751
+ this.listScanService.disableIngredientsMatching = this.disableIngredientsMatching;
17752
+ }
17753
+ };
18293
17754
  ListScanComponent.prototype.ngOnDestroy = function () {
18294
17755
  this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
17756
+ this.listScanService.unsubscribeService();
18295
17757
  };
18296
- ListScanComponent.prototype.showIngredients = function (newEntries) {
18297
- this.entries = newEntries;
18298
- this.ingredientsShown = true;
18299
- this.cdr.detectChanges();
18300
- };
18301
- ListScanComponent.prototype.hideIngredients = function () {
18302
- this.ingredientsShown = false;
18303
- this.cdr.detectChanges();
17758
+ ListScanComponent.prototype.currentPath = function () {
17759
+ return 'list-scan';
18304
17760
  };
18305
- ListScanComponent.prototype.returnToIngredients = function () {
18306
- this.basketPreviewShown = false;
18307
- this.ingredientsShown = true;
18308
- this.cdr.detectChanges();
17761
+ ListScanComponent.prototype.listenEntries = function () {
17762
+ var _this = this;
17763
+ this.subscriptions.push(this.listScanService.currentBasketEntries.pipe().subscribe(function (entries) {
17764
+ _this.basketPreviewShown = entries.length > 0;
17765
+ _this.cdr.detectChanges();
17766
+ }));
18309
17767
  };
18310
- ListScanComponent.prototype.showBasketPreview = function () {
18311
- this.basketPreviewShown = true;
18312
- this.hideIngredients();
17768
+ ListScanComponent.prototype.listenCancelling = function () {
17769
+ var _this = this;
17770
+ var previousValue;
17771
+ this.subscriptions.push(this.listScanService.cancelling.pipe().subscribe(function (isCancelling) {
17772
+ _this.cancelling = isCancelling;
17773
+ if (!_this.cancelling && previousValue) {
17774
+ _this.cancelConfirmationShown = false;
17775
+ }
17776
+ previousValue = isCancelling;
17777
+ _this.cdr.detectChanges();
17778
+ }));
18313
17779
  };
18314
- ListScanComponent.prototype.hideBasketPreview = function (shouldEmit) {
18315
- if (shouldEmit === void 0) { shouldEmit = true; }
17780
+ ListScanComponent.prototype.confirm = function () {
18316
17781
  this.basketPreviewShown = false;
18317
17782
  this.cdr.detectChanges();
18318
- if (shouldEmit) {
18319
- this.confirmed.emit();
18320
- }
17783
+ this.confirmed.emit();
18321
17784
  };
18322
17785
  ListScanComponent.prototype.cancel = function () {
18323
- this.elementToStopScrolling = document.getElementsByClassName('miam-list-scan__content')[0];
18324
17786
  this.cancelConfirmationShown = true;
18325
17787
  this.cdr.detectChanges();
18326
17788
  };
@@ -18328,84 +17790,94 @@
18328
17790
  this.cancelConfirmationShown = false;
18329
17791
  this.cdr.detectChanges();
18330
17792
  };
18331
- /**
18332
- * Cancel scan by removing all entries from basket & close modal
18333
- */
18334
- ListScanComponent.prototype.cancelAndRemove = function () {
18335
- var _this = this;
18336
- if (this.entries.length === 0) {
18337
- this.ingredientsShown = false;
18338
- this.basketPreviewShown = false;
18339
- this.cdr.detectChanges();
18340
- return;
18341
- }
18342
- this.subscriptions.push(rxjs.forkJoin(this.entries.map(function (e) { return e.delete(); })).pipe(
18343
- // Reload the basket to make sure the injector receives the update
18344
- operators.switchMap(function () { return _this.basketsService.reloadBasket(); })).subscribe(function () {
18345
- _this.ingredientsShown = false;
18346
- _this.basketPreviewShown = false;
18347
- _this.cdr.detectChanges();
18348
- }));
18349
- };
18350
17793
  return ListScanComponent;
18351
- }());
18352
- ListScanComponent.ɵfac = function ListScanComponent_Factory(t) { return new (t || ListScanComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService)); };
18353
- ListScanComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ListScanComponent, selectors: [["ng-miam-list-scan"]], inputs: { floatingButton: "floatingButton", overlay: "overlay", disableIngredientsMatching: "disableIngredientsMatching", productMatchingTitle: "productMatchingTitle", replaceItemTitle: "replaceItemTitle", ctaDesktopText: "ctaDesktopText", ctaMobileText: "ctaMobileText", scanResultsTitle: "scanResultsTitle" }, outputs: { confirmed: "confirmed" }, decls: 7, vars: 10, consts: function () {
17794
+ }(EventTracerComponent));
17795
+ ListScanComponent.ɵfac = function ListScanComponent_Factory(t) { return new (t || ListScanComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(ListScanService)); };
17796
+ ListScanComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ListScanComponent, selectors: [["ng-miam-list-scan"]], inputs: { disableIngredientsMatching: "disableIngredientsMatching" }, outputs: { confirmed: "confirmed" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 7, vars: 8, consts: function () {
18354
17797
  var i18n_0;
18355
17798
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18356
- var MSG_EXTERNAL_8748233983301350015$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_1 = goog.getMsg("Souhaitez-vous vraiment abandonner votre liste ?");
18357
- i18n_0 = MSG_EXTERNAL_8748233983301350015$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_1;
17799
+ var MSG_EXTERNAL_5810732921987905942$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_1 = goog.getMsg("Nous avons trouv\u00E9 pour vous");
17800
+ i18n_0 = MSG_EXTERNAL_5810732921987905942$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_1;
18358
17801
  }
18359
17802
  else {
18360
- i18n_0 = $localize(templateObject_1$u || (templateObject_1$u = __makeTemplateObject([":\u241Fa9903fc890d9d8680ad01355e929d4ba7e54ef15\u241F8748233983301350015:Souhaitez-vous vraiment abandonner votre liste ?"], [":\u241Fa9903fc890d9d8680ad01355e929d4ba7e54ef15\u241F8748233983301350015:Souhaitez-vous vraiment abandonner votre liste ?"])));
17803
+ i18n_0 = $localize(templateObject_1$u || (templateObject_1$u = __makeTemplateObject([":\u241F6e111f99537e44fa87a07a5d0c1cf5c4ed092aa6\u241F5810732921987905942:Nous avons trouv\u00E9 pour vous"], [":\u241F6e111f99537e44fa87a07a5d0c1cf5c4ed092aa6\u241F5810732921987905942:Nous avons trouv\u00E9 pour vous"])));
18361
17804
  }
18362
17805
  var i18n_2;
18363
17806
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18364
- var MSG_EXTERNAL_1711750570766225138$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_3 = goog.getMsg("Annuler");
18365
- i18n_2 = MSG_EXTERNAL_1711750570766225138$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_3;
17807
+ var MSG_EXTERNAL_5858088760260847694$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_3 = goog.getMsg("Abandonner ma liste");
17808
+ i18n_2 = MSG_EXTERNAL_5858088760260847694$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_3;
18366
17809
  }
18367
17810
  else {
18368
- i18n_2 = $localize(templateObject_2$n || (templateObject_2$n = __makeTemplateObject([":\u241F12380235948088ddf227ad226ce8a2ae63878fe5\u241F1711750570766225138:Annuler"], [":\u241F12380235948088ddf227ad226ce8a2ae63878fe5\u241F1711750570766225138:Annuler"])));
17811
+ i18n_2 = $localize(templateObject_2$n || (templateObject_2$n = __makeTemplateObject([":\u241F2702a2d27ee6aab74ad04132b4acf466f7589b2f\u241F5858088760260847694:Abandonner ma liste"], [":\u241F2702a2d27ee6aab74ad04132b4acf466f7589b2f\u241F5858088760260847694:Abandonner ma liste"])));
18369
17812
  }
18370
17813
  var i18n_4;
18371
17814
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
18372
- var MSG_EXTERNAL_2301331841798252546$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_5 = goog.getMsg("Abandonner");
18373
- i18n_4 = MSG_EXTERNAL_2301331841798252546$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_5;
17815
+ var MSG_EXTERNAL_6492937435856655320$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_5 = goog.getMsg("Ajouter au panier");
17816
+ i18n_4 = MSG_EXTERNAL_6492937435856655320$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_5;
17817
+ }
17818
+ else {
17819
+ i18n_4 = $localize(templateObject_3$h || (templateObject_3$h = __makeTemplateObject([":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"], [":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"])));
17820
+ }
17821
+ var i18n_6;
17822
+ if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17823
+ var MSG_EXTERNAL_5858088760260847694$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_7 = goog.getMsg("Abandonner ma liste");
17824
+ i18n_6 = MSG_EXTERNAL_5858088760260847694$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_7;
17825
+ }
17826
+ else {
17827
+ i18n_6 = $localize(templateObject_4$e || (templateObject_4$e = __makeTemplateObject([":\u241F2702a2d27ee6aab74ad04132b4acf466f7589b2f\u241F5858088760260847694:Abandonner ma liste"], [":\u241F2702a2d27ee6aab74ad04132b4acf466f7589b2f\u241F5858088760260847694:Abandonner ma liste"])));
17828
+ }
17829
+ var i18n_8;
17830
+ if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17831
+ var MSG_EXTERNAL_1711750570766225138$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_9 = goog.getMsg("Annuler");
17832
+ i18n_8 = MSG_EXTERNAL_1711750570766225138$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_9;
17833
+ }
17834
+ else {
17835
+ i18n_8 = $localize(templateObject_5$c || (templateObject_5$c = __makeTemplateObject([":\u241F12380235948088ddf227ad226ce8a2ae63878fe5\u241F1711750570766225138:Annuler"], [":\u241F12380235948088ddf227ad226ce8a2ae63878fe5\u241F1711750570766225138:Annuler"])));
17836
+ }
17837
+ var i18n_10;
17838
+ if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17839
+ var MSG_EXTERNAL_2301331841798252546$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_11 = goog.getMsg("Abandonner");
17840
+ i18n_10 = MSG_EXTERNAL_2301331841798252546$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_11;
17841
+ }
17842
+ else {
17843
+ i18n_10 = $localize(templateObject_6$a || (templateObject_6$a = __makeTemplateObject([":\u241F3c82243384cd7c24acaf9799b0b8e684e6e6f3ef\u241F2301331841798252546:Abandonner"], [":\u241F3c82243384cd7c24acaf9799b0b8e684e6e6f3ef\u241F2301331841798252546:Abandonner"])));
17844
+ }
17845
+ var i18n_12;
17846
+ if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
17847
+ var MSG_EXTERNAL_8748233983301350015$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_13 = goog.getMsg("Souhaitez-vous vraiment abandonner votre liste ?");
17848
+ i18n_12 = MSG_EXTERNAL_8748233983301350015$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_13;
18374
17849
  }
18375
17850
  else {
18376
- i18n_4 = $localize(templateObject_3$h || (templateObject_3$h = __makeTemplateObject([":\u241F3c82243384cd7c24acaf9799b0b8e684e6e6f3ef\u241F2301331841798252546:Abandonner"], [":\u241F3c82243384cd7c24acaf9799b0b8e684e6e6f3ef\u241F2301331841798252546:Abandonner"])));
17851
+ i18n_12 = $localize(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject([":\u241Fa9903fc890d9d8680ad01355e929d4ba7e54ef15\u241F8748233983301350015:Souhaitez-vous vraiment abandonner votre liste ?"], [":\u241Fa9903fc890d9d8680ad01355e929d4ba7e54ef15\u241F8748233983301350015:Souhaitez-vous vraiment abandonner votre liste ?"])));
18377
17852
  }
18378
- return [[1, "miam-list-scan"], [3, "disableIngredientsMatching", "desktopText", "mobileText", "entriesAdded", 4, "ngIf"], [3, "disableIngredientsMatching", "overlay", "entriesAdded", 4, "ngIf"], [1, "miam-list-scan__result", 3, "noHeaderMode", "display", "displayChange", "close"], ["class", "miam-list-scan__content", 3, "entries", "title", "closed", "cancelled", "confirmed", 4, "ngIf"], ["class", "miam-list-scan__content", 3, "entries", "title", "replaceItemTitle", "closed", "cancelled", "removedEntries", 4, "ngIf"], ["title", i18n_0, "cancelButtonText", i18n_2, "confirmButtonText", i18n_4, "modalStyle", "right", 1, "miam-list-scan__confirmation", 3, "display", "noHeaderMode", "containerElement", "displayChange", "close", "cancel", "confirm"], [3, "disableIngredientsMatching", "desktopText", "mobileText", "entriesAdded"], [3, "disableIngredientsMatching", "overlay", "entriesAdded"], [1, "miam-list-scan__content", 3, "entries", "title", "closed", "cancelled", "confirmed"], [1, "miam-list-scan__content", 3, "entries", "title", "replaceItemTitle", "closed", "cancelled", "removedEntries"]];
17853
+ return [[1, "miam-list-scan"], [3, "disableIngredientsMatching"], ["title", i18n_0, "cancelButtonText", i18n_2, "confirmButtonText", i18n_4, "modalStyle", "right", 1, "miam-list-scan__result", 3, "noHeaderMode", "display", "cancel", "close", "confirm"], [1, "miam-list-scan__content", 3, "closed", "cancelled"], ["title", i18n_6, "cancelButtonText", i18n_8, "confirmButtonText", i18n_10, 1, "miam-list-scan__confirmation", 3, "display", "noHeaderMode", "confirmButtonDisabled", "confirmButtonIsLoading", "cancelButtonDisabled", "displayChange", "close", "cancel", "confirm"], [1, "miam-ds-text", "size-m", "weight-m"], i18n_12];
18379
17854
  }, template: function ListScanComponent_Template(rf, ctx) {
18380
17855
  if (rf & 1) {
18381
17856
  i0__namespace.ɵɵelementStart(0, "div", 0);
18382
- i0__namespace.ɵɵtemplate(1, ListScanComponent_ng_miam_list_scan_files_inputs_1_Template, 1, 3, "ng-miam-list-scan-files-inputs", 1);
18383
- i0__namespace.ɵɵtemplate(2, ListScanComponent_ng_miam_list_scan_overlay_button_2_Template, 1, 2, "ng-miam-list-scan-overlay-button", 2);
18384
- i0__namespace.ɵɵelementStart(3, "ng-miam-modal", 3);
18385
- i0__namespace.ɵɵlistener("displayChange", function ListScanComponent_Template_ng_miam_modal_displayChange_3_listener($event) { return ctx.ingredientsShown || (ctx.basketPreviewShown = $event); })("close", function ListScanComponent_Template_ng_miam_modal_close_3_listener() { return ctx.cancel(); });
18386
- i0__namespace.ɵɵtemplate(4, ListScanComponent_ng_miam_list_scan_ingredients_list_4_Template, 1, 2, "ng-miam-list-scan-ingredients-list", 4);
18387
- i0__namespace.ɵɵtemplate(5, ListScanComponent_ng_miam_list_scan_basket_preview_5_Template, 1, 3, "ng-miam-list-scan-basket-preview", 5);
17857
+ i0__namespace.ɵɵelement(1, "ng-miam-list-scan-files-inputs", 1);
17858
+ i0__namespace.ɵɵelementStart(2, "ng-miam-modal", 2);
17859
+ i0__namespace.ɵɵlistener("cancel", function ListScanComponent_Template_ng_miam_modal_cancel_2_listener() { return ctx.cancel(); })("close", function ListScanComponent_Template_ng_miam_modal_close_2_listener() { return ctx.cancel(); })("confirm", function ListScanComponent_Template_ng_miam_modal_confirm_2_listener() { return ctx.confirm(); });
17860
+ i0__namespace.ɵɵelementStart(3, "ng-miam-list-scan-basket-preview", 3);
17861
+ i0__namespace.ɵɵlistener("closed", function ListScanComponent_Template_ng_miam_list_scan_basket_preview_closed_3_listener() { return ctx.confirm(); })("cancelled", function ListScanComponent_Template_ng_miam_list_scan_basket_preview_cancelled_3_listener() { return ctx.cancel(); });
17862
+ i0__namespace.ɵɵelementEnd();
17863
+ i0__namespace.ɵɵelementEnd();
17864
+ i0__namespace.ɵɵelementStart(4, "ng-miam-modal", 4);
17865
+ i0__namespace.ɵɵlistener("displayChange", function ListScanComponent_Template_ng_miam_modal_displayChange_4_listener($event) { return ctx.cancelConfirmationShown = $event; })("close", function ListScanComponent_Template_ng_miam_modal_close_4_listener() { return ctx.closeCancelConfirmationModal(); })("cancel", function ListScanComponent_Template_ng_miam_modal_cancel_4_listener() { return ctx.closeCancelConfirmationModal(); })("confirm", function ListScanComponent_Template_ng_miam_modal_confirm_4_listener() { return ctx.listScanService.cancelAndRemove(ctx.eventTrace()); });
17866
+ i0__namespace.ɵɵelementStart(5, "span", 5);
17867
+ i0__namespace.ɵɵi18n(6, 6);
18388
17868
  i0__namespace.ɵɵelementEnd();
18389
- i0__namespace.ɵɵelementStart(6, "ng-miam-modal", 6);
18390
- i0__namespace.ɵɵlistener("displayChange", function ListScanComponent_Template_ng_miam_modal_displayChange_6_listener($event) { return ctx.cancelConfirmationShown = $event; })("close", function ListScanComponent_Template_ng_miam_modal_close_6_listener() { return ctx.closeCancelConfirmationModal(); })("cancel", function ListScanComponent_Template_ng_miam_modal_cancel_6_listener() { return ctx.closeCancelConfirmationModal(); })("confirm", function ListScanComponent_Template_ng_miam_modal_confirm_6_listener() { return ctx.cancelAndRemove(); });
18391
17869
  i0__namespace.ɵɵelementEnd();
18392
17870
  i0__namespace.ɵɵelementEnd();
18393
17871
  }
18394
17872
  if (rf & 2) {
18395
17873
  i0__namespace.ɵɵadvance(1);
18396
- i0__namespace.ɵɵproperty("ngIf", !ctx.floatingButton);
18397
- i0__namespace.ɵɵadvance(1);
18398
- i0__namespace.ɵɵproperty("ngIf", ctx.floatingButton);
18399
- i0__namespace.ɵɵadvance(1);
18400
- i0__namespace.ɵɵproperty("noHeaderMode", true)("display", ctx.ingredientsShown || ctx.basketPreviewShown)("noHeaderMode", true);
18401
- i0__namespace.ɵɵadvance(1);
18402
- i0__namespace.ɵɵproperty("ngIf", ctx.ingredientsShown);
17874
+ i0__namespace.ɵɵproperty("disableIngredientsMatching", ctx.disableIngredientsMatching);
18403
17875
  i0__namespace.ɵɵadvance(1);
18404
- i0__namespace.ɵɵproperty("ngIf", ctx.basketPreviewShown);
18405
- i0__namespace.ɵɵadvance(1);
18406
- i0__namespace.ɵɵproperty("display", ctx.cancelConfirmationShown)("noHeaderMode", false)("containerElement", ctx.elementToStopScrolling);
17876
+ i0__namespace.ɵɵproperty("noHeaderMode", false)("display", ctx.basketPreviewShown);
17877
+ i0__namespace.ɵɵadvance(2);
17878
+ i0__namespace.ɵɵproperty("display", ctx.cancelConfirmationShown)("noHeaderMode", false)("confirmButtonDisabled", ctx.cancelling)("confirmButtonIsLoading", ctx.cancelling)("cancelButtonDisabled", ctx.cancelling);
18407
17879
  }
18408
- }, directives: [i2__namespace$1.NgIf, ModalComponent, ListScanFilesInputsComponent, ListScanOverlayButtonComponent, ListScanIngredientsListComponent, ListScanBasketPreviewComponent], styles: [".miam-list-scan .miam-list-scan__content{height:100%}.miam-list-scan__result .miam-modal{max-width:600px}.miam-list-scan__result .miam-modal .miam-modal__container .miam-modal__actions{display:none}.miam-list-scan__confirmation .miam-shadow-overlay{z-index:var(--m-z-index-modal)}.miam-list-scan__confirmation .miam-modal{height:auto;width:auto;top:50%;right:50%;transform:translateX(50%) translateY(-50%);animation-name:unset}.miam-list-scan__confirmation .miam-modal .miam-modal__title{color:var(--m-color-black)}@media (max-width:1023px){.miam-list-scan__confirmation .miam-modal{height:132px;width:100%;transform:translateY(-50%);animation-name:unset}}"], encapsulation: 2, changeDetection: 0 });
17880
+ }, directives: [ListScanFilesInputsComponent, ModalComponent, ListScanBasketPreviewComponent], styles: [".miam-list-scan .miam-list-scan__content{height:100%}"], encapsulation: 2, changeDetection: 0 });
18409
17881
  (function () {
18410
17882
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ListScanComponent, [{
18411
17883
  type: i0.Component,
@@ -18416,27 +17888,13 @@
18416
17888
  encapsulation: i0.ViewEncapsulation.None,
18417
17889
  changeDetection: i0.ChangeDetectionStrategy.OnPush
18418
17890
  }]
18419
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }]; }, { floatingButton: [{
18420
- type: i0.Input
18421
- }], overlay: [{
18422
- type: i0.Input
18423
- }], disableIngredientsMatching: [{
18424
- type: i0.Input
18425
- }], productMatchingTitle: [{
18426
- type: i0.Input
18427
- }], replaceItemTitle: [{
18428
- type: i0.Input
18429
- }], ctaDesktopText: [{
18430
- type: i0.Input
18431
- }], ctaMobileText: [{
18432
- type: i0.Input
18433
- }], scanResultsTitle: [{
17891
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }, { type: ListScanService }]; }, { disableIngredientsMatching: [{
18434
17892
  type: i0.Input
18435
17893
  }], confirmed: [{
18436
17894
  type: i0.Output
18437
17895
  }] });
18438
17896
  })();
18439
- var templateObject_1$u, templateObject_2$n, templateObject_3$h;
17897
+ var templateObject_1$u, templateObject_2$n, templateObject_3$h, templateObject_4$e, templateObject_5$c, templateObject_6$a, templateObject_7$7;
18440
17898
 
18441
17899
  var ListScanModule = /** @class */ (function () {
18442
17900
  // Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
@@ -18455,17 +17913,17 @@
18455
17913
  i2$2.CommonModule,
18456
17914
  i3.FormsModule,
18457
17915
  ComponentsModule,
18458
- BasketPreviewModule
17916
+ BasketPreviewModule,
17917
+ UtilsModule
18459
17918
  ]] });
18460
17919
  (function () {
18461
17920
  (typeof ngJitMode === "undefined" || ngJitMode) && i0__namespace.ɵɵsetNgModuleScope(ListScanModule, { declarations: [ListScanComponent,
18462
- ListScanOverlayButtonComponent,
18463
- ListScanIngredientsListComponent,
18464
17921
  ListScanBasketPreviewComponent,
18465
17922
  ListScanFilesInputsComponent], imports: [i2$2.CommonModule,
18466
17923
  i3.FormsModule,
18467
17924
  ComponentsModule,
18468
- BasketPreviewModule], exports: [ListScanComponent] });
17925
+ BasketPreviewModule,
17926
+ UtilsModule], exports: [ListScanComponent] });
18469
17927
  })();
18470
17928
  (function () {
18471
17929
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ListScanModule, [{
@@ -18475,12 +17933,11 @@
18475
17933
  i2$2.CommonModule,
18476
17934
  i3.FormsModule,
18477
17935
  ComponentsModule,
18478
- BasketPreviewModule
17936
+ BasketPreviewModule,
17937
+ UtilsModule
18479
17938
  ],
18480
17939
  declarations: [
18481
17940
  ListScanComponent,
18482
- ListScanOverlayButtonComponent,
18483
- ListScanIngredientsListComponent,
18484
17941
  ListScanBasketPreviewComponent,
18485
17942
  ListScanFilesInputsComponent
18486
17943
  ],
@@ -21923,14 +21380,13 @@
21923
21380
  _c);
21924
21381
  var CatalogCategoryComponent = /** @class */ (function (_super) {
21925
21382
  __extends(CatalogCategoryComponent, _super);
21926
- function CatalogCategoryComponent(recipesService, articlesService, context, cdr, analyticsService, basketTransfer) {
21383
+ function CatalogCategoryComponent(recipesService, articlesService, context, cdr, analyticsService) {
21927
21384
  var _this = _super.call(this, analyticsService) || this;
21928
21385
  _this.recipesService = recipesService;
21929
21386
  _this.articlesService = articlesService;
21930
21387
  _this.context = context;
21931
21388
  _this.cdr = cdr;
21932
21389
  _this.analyticsService = analyticsService;
21933
- _this.basketTransfer = basketTransfer;
21934
21390
  _this.title = '';
21935
21391
  _this.maxRecipeNumber = 20;
21936
21392
  _this.displayInfos = false;
@@ -22007,7 +21463,7 @@
22007
21463
  };
22008
21464
  return CatalogCategoryComponent;
22009
21465
  }(EventTracerComponent));
22010
- CatalogCategoryComponent.ɵfac = function CatalogCategoryComponent_Factory(t) { return new (t || CatalogCategoryComponent)(i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(ArticlesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(BasketTransferService)); };
21466
+ CatalogCategoryComponent.ɵfac = function CatalogCategoryComponent_Factory(t) { return new (t || CatalogCategoryComponent)(i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(ArticlesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService)); };
22011
21467
  CatalogCategoryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CatalogCategoryComponent, selectors: [["ng-miam-catalog-category"]], viewQuery: function CatalogCategoryComponent_Query(rf, ctx) {
22012
21468
  if (rf & 1) {
22013
21469
  i0__namespace.ɵɵviewQuery(_c0$4, 1);
@@ -22056,7 +21512,7 @@
22056
21512
  encapsulation: i0.ViewEncapsulation.None,
22057
21513
  changeDetection: i0.ChangeDetectionStrategy.OnPush
22058
21514
  }]
22059
- }], function () { return [{ type: RecipesService }, { type: ArticlesService }, { type: ContextService }, { type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }, { type: BasketTransferService }]; }, { filters: [{
21515
+ }], function () { return [{ type: RecipesService }, { type: ArticlesService }, { type: ContextService }, { type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }]; }, { filters: [{
22060
21516
  type: i0.Input
22061
21517
  }], title: [{
22062
21518
  type: i0.Input
@@ -22837,7 +22293,7 @@
22837
22293
  i0__namespace.ɵɵadvance(1);
22838
22294
  i0__namespace.ɵɵproperty("ngIf", ctx.notFound);
22839
22295
  }
22840
- }, directives: [i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.NgModel, i2__namespace$1.NgForOf, i2__namespace$1.NgIf], styles: [".preferences__search .preferences__search-bar{margin:0 16px 24px;position:relative}.preferences__search .preferences__search-bar .preferences__clear-input-img,.preferences__search .preferences__search-bar .preferences__search-img{height:24px;width:24px}.preferences__search .preferences__search-bar .preferences__clear-input-img.hidden,.preferences__search .preferences__search-bar .preferences__search-img.hidden{display:none}.preferences__search .preferences__search-bar .preferences__search-img{position:absolute;top:8px;left:8px}.preferences__search .preferences__search-bar .preferences__clear-input-button{position:absolute;top:1px;right:1px}.preferences__search .preferences__search-bar .preferences__search-bar-input{padding:12px 8px 12px 40px;border-radius:6px;border:1px solid var(--miam-ds-color-neutral-200,#d9dde1);width:-webkit-fill-available;width:-moz-available;width:fill-available}.preferences__search .preferences__suggested__tag{background:none;border:none;font:inherit;cursor:pointer;width:100%;text-align:start;padding:12px 16px;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1);color:var(--miam-ds-color-neutral-black)}.preferences__search .preferences__not-found{padding:12px 16px}"], encapsulation: 2, changeDetection: 0 });
22296
+ }, directives: [i3__namespace.DefaultValueAccessor, i3__namespace.NgControlStatus, i3__namespace.NgModel, i2__namespace$1.NgForOf, i2__namespace$1.NgIf], styles: [".preferences__search .preferences__search-bar{margin:0 16px 24px;position:relative;display:flex}.preferences__search .preferences__search-bar .preferences__clear-input-img,.preferences__search .preferences__search-bar .preferences__search-img{height:24px;width:24px}.preferences__search .preferences__search-bar .preferences__clear-input-img.hidden,.preferences__search .preferences__search-bar .preferences__search-img.hidden{display:none}.preferences__search .preferences__search-bar .preferences__search-img{position:absolute;top:8px;left:8px}.preferences__search .preferences__search-bar .preferences__clear-input-button{position:absolute;top:1px;right:1px}.preferences__search .preferences__search-bar .preferences__search-bar-input{padding:12px 8px 12px 40px;border-radius:6px;border:1px solid var(--miam-ds-color-neutral-200,#d9dde1);flex:1}.preferences__search .preferences__suggested__tag{background:none;border:none;font:inherit;cursor:pointer;width:100%;text-align:start;padding:12px 16px;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1);color:var(--miam-ds-color-neutral-black)}.preferences__search .preferences__not-found{padding:12px 16px}"], encapsulation: 2, changeDetection: 0 });
22841
22297
  (function () {
22842
22298
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PreferencesSearchComponent, [{
22843
22299
  type: i0.Component,
@@ -23083,7 +22539,6 @@
23083
22539
  this.diets = [];
23084
22540
  this.ingredients = [];
23085
22541
  this.equipments = [];
23086
- this.recipesFound = 0;
23087
22542
  this.displayType = PreferenceView.DEFAULT;
23088
22543
  this.preferenceViewEnum = PreferenceView;
23089
22544
  this.subscriptions = [];
@@ -23119,7 +22574,7 @@
23119
22574
  });
23120
22575
  PreferencesComponent.prototype.ngOnInit = function () {
23121
22576
  var _this = this;
23122
- this.preferencesService.guests$.subscribe(function () { return _this.cdr.detectChanges(); });
22577
+ this.subscriptions.push(this.preferencesService.guests$.subscribe(function () { return _this.cdr.detectChanges(); }));
23123
22578
  this.fetchTags();
23124
22579
  };
23125
22580
  PreferencesComponent.prototype.ngAfterViewInit = function () {
@@ -23137,9 +22592,6 @@
23137
22592
  without: false
23138
22593
  }); });
23139
22594
  _this.cdr.detectChanges();
23140
- // this.route.fragment.subscribe(fragment => {
23141
- // setTimeout(() => document.getElementById(fragment)?.scrollIntoView());
23142
- // });
23143
22595
  }), this.tagsService.all({ remotefilter: { tag_type: 'equipment' } }).pipe(operators.skipWhile(function (res) { return res.is_loading; })).subscribe(function (res) {
23144
22596
  _this.equipments = _this.whitelistedTags(res.data).map(function (e) { return ({
23145
22597
  tag: e,
@@ -23149,7 +22601,6 @@
23149
22601
  _this.cdr.detectChanges();
23150
22602
  }));
23151
22603
  this.initIngredientTags();
23152
- this.updateRecipesCount();
23153
22604
  };
23154
22605
  PreferencesComponent.prototype.reset = function () {
23155
22606
  this.preferencesService.resetPreferences();
@@ -23212,14 +22663,7 @@
23212
22663
  this.ingredients.splice(this.ingredients.findIndex(function (i) { return i.tag.id === tag.tag.id; }), 1);
23213
22664
  }
23214
22665
  }
23215
- this.updateRecipesCount();
23216
- };
23217
- PreferencesComponent.prototype.updateRecipesCount = function () {
23218
- var _this = this;
23219
- this.subscriptions.push(this.recipesService.filterCount(this.filters, this.preferencesService.guests$.value, [], true).pipe().subscribe(function (result) {
23220
- _this.recipesFound = result;
23221
- _this.cdr.detectChanges();
23222
- }));
22666
+ this.cdr.detectChanges();
23223
22667
  };
23224
22668
  PreferencesComponent.prototype.updateAndBack = function () {
23225
22669
  this.preferencesService.updatePreferences();
@@ -25172,7 +24616,7 @@
25172
24616
  var _r12_1 = i0__namespace.ɵɵgetCurrentView();
25173
24617
  i0__namespace.ɵɵelementStart(0, "div", 15, 16);
25174
24618
  i0__namespace.ɵɵelementStart(2, "ng-miam-catalog-toolbar", 17);
25175
- i0__namespace.ɵɵlistener("filterButtonPressed", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_filterButtonPressed_2_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.onFilterCollapsed(); })("preferencesButtonPressed", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_preferencesButtonPressed_2_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ctx_r13.isPreferenceModalOpen = !ctx_r13.isPreferenceModalOpen; })("searchStringChanged", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_searchStringChanged_2_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r14 = i0__namespace.ɵɵnextContext(2); return ctx_r14.updateSearch($event); })("personalButtonPressed", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_personalButtonPressed_2_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ctx_r15.setPersonalFilter(); })("favoritesButtonPressed", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_favoritesButtonPressed_2_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r16 = i0__namespace.ɵɵnextContext(2); return ctx_r16.setFavoritesFilter(); })("returnHomePressed", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_returnHomePressed_2_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ctx_r17.returnToHomePage(); });
24619
+ i0__namespace.ɵɵlistener("filterButtonPressed", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_filterButtonPressed_2_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.onFilterCollapsed(); })("preferencesButtonPressed", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_preferencesButtonPressed_2_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ctx_r13.isPreferenceModalOpen = !ctx_r13.isPreferenceModalOpen; })("searchStringChanged", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_searchStringChanged_2_listener($event) { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r14 = i0__namespace.ɵɵnextContext(2); return ctx_r14.updateSearch($event); })("personalButtonPressed", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_personalButtonPressed_2_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ctx_r15.setPersonalFilter(); })("favoritesButtonPressed", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_favoritesButtonPressed_2_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r16 = i0__namespace.ɵɵnextContext(2); return ctx_r16.checkAndSetFavoritesFilter(); })("returnHomePressed", function RecipeCatalogComponent_div_2_div_4_Template_ng_miam_catalog_toolbar_returnHomePressed_2_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ctx_r17.returnToHomePage(); });
25176
24620
  i0__namespace.ɵɵpipe(3, "async");
25177
24621
  i0__namespace.ɵɵelementEnd();
25178
24622
  i0__namespace.ɵɵelementEnd();
@@ -25310,7 +24754,7 @@
25310
24754
  i0__namespace.ɵɵelement(9, "div", 14);
25311
24755
  i0__namespace.ɵɵelementStart(10, "div", 15, 32);
25312
24756
  i0__namespace.ɵɵelementStart(12, "ng-miam-catalog-toolbar", 17);
25313
- i0__namespace.ɵɵlistener("filterButtonPressed", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_filterButtonPressed_12_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r32 = i0__namespace.ɵɵnextContext(2); return ctx_r32.onFilterCollapsed(); })("preferencesButtonPressed", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_preferencesButtonPressed_12_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r33 = i0__namespace.ɵɵnextContext(2); return ctx_r33.isPreferenceModalOpen = !ctx_r33.isPreferenceModalOpen; })("searchStringChanged", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_searchStringChanged_12_listener($event) { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r34 = i0__namespace.ɵɵnextContext(2); return ctx_r34.updateSearch($event); })("personalButtonPressed", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_personalButtonPressed_12_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r35 = i0__namespace.ɵɵnextContext(2); return ctx_r35.setPersonalFilter(); })("favoritesButtonPressed", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_favoritesButtonPressed_12_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r36 = i0__namespace.ɵɵnextContext(2); return ctx_r36.setFavoritesFilter(); })("returnHomePressed", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_returnHomePressed_12_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r37 = i0__namespace.ɵɵnextContext(2); return ctx_r37.returnToHomePage(); });
24757
+ i0__namespace.ɵɵlistener("filterButtonPressed", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_filterButtonPressed_12_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r32 = i0__namespace.ɵɵnextContext(2); return ctx_r32.onFilterCollapsed(); })("preferencesButtonPressed", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_preferencesButtonPressed_12_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r33 = i0__namespace.ɵɵnextContext(2); return ctx_r33.isPreferenceModalOpen = !ctx_r33.isPreferenceModalOpen; })("searchStringChanged", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_searchStringChanged_12_listener($event) { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r34 = i0__namespace.ɵɵnextContext(2); return ctx_r34.updateSearch($event); })("personalButtonPressed", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_personalButtonPressed_12_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r35 = i0__namespace.ɵɵnextContext(2); return ctx_r35.setPersonalFilter(); })("favoritesButtonPressed", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_favoritesButtonPressed_12_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r36 = i0__namespace.ɵɵnextContext(2); return ctx_r36.checkAndSetFavoritesFilter(); })("returnHomePressed", function RecipeCatalogComponent_div_2_div_6_Template_ng_miam_catalog_toolbar_returnHomePressed_12_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r37 = i0__namespace.ɵɵnextContext(2); return ctx_r37.returnToHomePage(); });
25314
24758
  i0__namespace.ɵɵpipe(13, "async");
25315
24759
  i0__namespace.ɵɵelementEnd();
25316
24760
  i0__namespace.ɵɵelementEnd();
@@ -25516,6 +24960,7 @@
25516
24960
  _this.headerHeightSubscription = new rxjs.Subscription();
25517
24961
  _this.isMobile = mediaMatcher.matchMedia('(max-width: 1022px)').matches;
25518
24962
  return _this;
24963
+ // this.subscriptions.push();
25519
24964
  }
25520
24965
  Object.defineProperty(RecipeCatalogComponent.prototype, "isPreferenceModalOpen", {
25521
24966
  get: function () {
@@ -25540,7 +24985,7 @@
25540
24985
  _this.recipeCount = bs.recipesCount;
25541
24986
  _this.totalPrice = bs.totalPrice;
25542
24987
  _this.cdr.detectChanges();
25543
- }), this.assessShowUserFeedback());
24988
+ }), this.assessShowUserFeedback(), this.executeStoredMethodIfLoggedIn().subscribe());
25544
24989
  this.setDirectAccess();
25545
24990
  };
25546
24991
  RecipeCatalogComponent.prototype.ngAfterViewInit = function () {
@@ -25588,8 +25033,12 @@
25588
25033
  })).subscribe());
25589
25034
  }
25590
25035
  };
25036
+ RecipeCatalogComponent.prototype.deepCloneAndResetValues = function (filters) {
25037
+ return filters.map(function (filter) { return (Object.assign(Object.assign({}, filter), { value: false })); });
25038
+ };
25591
25039
  // Used on load to build the filters attribute, and on click on the link to reset the filters
25592
25040
  RecipeCatalogComponent.prototype.initFilters = function () {
25041
+ var _this = this;
25593
25042
  this.filters = new RecipeFilters({
25594
25043
  difficulty: this.recipesService.difficultyLevels.map(function (f) { return ({ name: f.value.toString(), text: f.label, value: false }); }),
25595
25044
  cost: [
@@ -25606,7 +25055,9 @@
25606
25055
  ]
25607
25056
  });
25608
25057
  if (this.customFilters) {
25609
- Object.assign(this.filters, this.customFilters);
25058
+ Object.keys(this.customFilters).forEach(function (key) {
25059
+ _this.filters[key] = _this.deepCloneAndResetValues(_this.customFilters[key]);
25060
+ });
25610
25061
  }
25611
25062
  if (this.catalogToolbar) {
25612
25063
  this.catalogToolbar.resetSearchString();
@@ -25633,6 +25084,13 @@
25633
25084
  });
25634
25085
  this.updateFilters(filters);
25635
25086
  };
25087
+ RecipeCatalogComponent.prototype.checkAndSetFavoritesFilter = function () {
25088
+ var _this = this;
25089
+ this.storeMethodIfCallbackNeeded('setFavoritesFilter').pipe(operators.switchMap(function () {
25090
+ _this.setFavoritesFilter();
25091
+ return rxjs.of(null);
25092
+ })).subscribe();
25093
+ };
25636
25094
  RecipeCatalogComponent.prototype.setFavoritesFilter = function () {
25637
25095
  this.initFilters();
25638
25096
  var filters = Object.assign(this.filters, {
@@ -25643,6 +25101,29 @@
25643
25101
  });
25644
25102
  this.updateFilters(filters);
25645
25103
  };
25104
+ RecipeCatalogComponent.prototype.storeMethodIfCallbackNeeded = function (method) {
25105
+ var _this = this;
25106
+ return this.isUserLoggedIn().pipe(operators.take(1), operators.map(function (isLoggedIn) {
25107
+ if (!isLoggedIn) {
25108
+ localStorage.setItem('_miam/storeCallbackMethod', method);
25109
+ }
25110
+ return _this.contextService.hookCallback(isLoggedIn, true);
25111
+ }));
25112
+ };
25113
+ RecipeCatalogComponent.prototype.isUserLoggedIn = function () {
25114
+ return this.usersService.isLogged$;
25115
+ };
25116
+ RecipeCatalogComponent.prototype.executeStoredMethodIfLoggedIn = function () {
25117
+ var _this = this;
25118
+ return this.isUserLoggedIn().pipe(operators.skipWhile(function (isLoggedIn) { return !isLoggedIn; }), operators.take(1), operators.map(function () { return _this.getStoredMethod(); }));
25119
+ };
25120
+ RecipeCatalogComponent.prototype.getStoredMethod = function () {
25121
+ var method = localStorage.getItem('_miam/storeCallbackMethod');
25122
+ if (method === 'setFavoritesFilter') {
25123
+ this.setFavoritesFilter();
25124
+ localStorage.removeItem('_miam/storeCallbackMethod');
25125
+ }
25126
+ };
25646
25127
  RecipeCatalogComponent.prototype.setPersonalFilter = function () {
25647
25128
  var filters = Object.assign(this.filters, {
25648
25129
  additionalFilters: {
@@ -25775,7 +25256,7 @@
25775
25256
  RecipeCatalogComponent.prototype.selectCategoryFromUrl = function () {
25776
25257
  var paramsArray = new URLSearchParams(window.location.search);
25777
25258
  if (paramsArray.get('catalogCategory') === 'favorites') {
25778
- return this.setFavoritesFilter();
25259
+ return this.checkAndSetFavoritesFilter();
25779
25260
  }
25780
25261
  var selectedCategory = this.categories.find(function (cat) { return cat.key === paramsArray.get('catalogCategory'); });
25781
25262
  if (selectedCategory) {
@@ -25811,7 +25292,7 @@
25811
25292
  this.setPersonalFilter();
25812
25293
  break;
25813
25294
  case 'recettes-favorites':
25814
- this.setFavoritesFilter();
25295
+ this.checkAndSetFavoritesFilter();
25815
25296
  break;
25816
25297
  }
25817
25298
  }
@@ -27325,7 +26806,7 @@
27325
26806
  i0__namespace.ɵɵadvance(1);
27326
26807
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(2, 4, ctx_r0.recipeDetailsService.recipeLoading$));
27327
26808
  i0__namespace.ɵɵadvance(2);
27328
- i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(4, 6, ctx_r0.recipeDetailsService.recipeLoading$));
26809
+ i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(4, 6, ctx_r0.recipeDetailsService.recipeLoading$) && ctx_r0.recipeDetailsService.recipe);
27329
26810
  }
27330
26811
  }
27331
26812
  function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template(rf, ctx) {
@@ -27567,15 +27048,18 @@
27567
27048
  RecipeDetailsComponent.prototype.onClose = function (openBasket) {
27568
27049
  if (openBasket === void 0) { openBasket = false; }
27569
27050
  this.recipeDetailsService.displayEventWasSent = false;
27051
+ this.removeFromOriginPath('/detail/basket-preview');
27570
27052
  var originPath = this.eventTrace().originPath;
27571
27053
  this.storeLocatorService.storeLocatorOpened$.next(false);
27572
27054
  this.closeDetails.emit();
27573
- this.recipesService.hide();
27574
27055
  this.cdr.detectChanges();
27575
27056
  this.activeTabIndex = 0;
27576
- if (originPath === '/miam/recipes/basket-preview/detail' || originPath === '/detail/basket-preview/detail' || openBasket) {
27057
+ if (originPath.includes('/basket-preview/detail') || openBasket) {
27577
27058
  this.recipesService.openBasket(this.eventTrace());
27578
27059
  }
27060
+ else {
27061
+ this.recipesService.hide();
27062
+ }
27579
27063
  };
27580
27064
  RecipeDetailsComponent.prototype.print = function () {
27581
27065
  this.sendEvent(this.analyticsService.EVENT_RECIPE_PRINT);
@@ -28495,7 +27979,7 @@
28495
27979
  var _this = this;
28496
27980
  return this.recipeSelectionLogsService.all({ sort: ['-date'], page: { number: this.pageNumber } }).pipe(operators.catchError(function (result) {
28497
27981
  if (!result.errors || result.errors.includes('User not authenticated')) {
28498
- console.log('[Miam] hiding recipes selection history (no user logged in)');
27982
+ console.debug('[Miam] hiding recipes selection history (no user logged in)');
28499
27983
  return rxjs.of({ is_loading: false, data: [] });
28500
27984
  }
28501
27985
  }), operators.skipWhile(function (result) { return result.is_loading; }), operators.tap(function (result) {
@@ -28670,109 +28154,113 @@
28670
28154
  }], function () { return []; }, null);
28671
28155
  })();
28672
28156
 
28673
- function RecipeModalComponent_ng_miam_modal_0_ng_miam_store_locator_link_1_Template(rf, ctx) {
28157
+ function RecipeModalComponent_ng_miam_modal_0_ng_miam_store_locator_link_4_Template(rf, ctx) {
28674
28158
  if (rf & 1) {
28675
- i0__namespace.ɵɵelement(0, "ng-miam-store-locator-link", 8);
28159
+ i0__namespace.ɵɵelement(0, "ng-miam-store-locator-link", 7);
28676
28160
  }
28677
28161
  }
28678
- function RecipeModalComponent_ng_miam_modal_0_ng_miam_store_locator_4_Template(rf, ctx) {
28162
+ function RecipeModalComponent_ng_miam_modal_0_div_6_Template(rf, ctx) {
28679
28163
  if (rf & 1) {
28680
- i0__namespace.ɵɵelement(0, "ng-miam-store-locator", 9);
28164
+ i0__namespace.ɵɵelementStart(0, "div", 8);
28165
+ i0__namespace.ɵɵelement(1, "ng-miam-basket-preview-block", 9);
28166
+ i0__namespace.ɵɵelementEnd();
28681
28167
  }
28682
28168
  if (rf & 2) {
28683
- var ctx_r5 = i0__namespace.ɵɵnextContext(2);
28684
- i0__namespace.ɵɵproperty("originTrace", ctx_r5.eventTrace);
28169
+ var ctx_r4 = i0__namespace.ɵɵnextContext(2);
28170
+ i0__namespace.ɵɵclassProp("hidden", ctx_r4.showStoreLocator);
28171
+ i0__namespace.ɵɵadvance(1);
28172
+ i0__namespace.ɵɵproperty("recipeId", ctx_r4.recipe == null ? null : ctx_r4.recipe.id)("displayItemsUnitaryPrice", true)("originTrace", ctx_r4.eventTrace);
28685
28173
  }
28686
28174
  }
28687
- var _c2 = function (a0) { return { "store-locator": a0 }; };
28688
- function RecipeModalComponent_ng_miam_modal_0_Template(rf, ctx) {
28175
+ function RecipeModalComponent_ng_miam_modal_0_ng_miam_recipe_details_8_Template(rf, ctx) {
28689
28176
  if (rf & 1) {
28690
- var _r7_1 = i0__namespace.ɵɵgetCurrentView();
28691
- i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 3);
28692
- i0__namespace.ɵɵlistener("displayChange", function RecipeModalComponent_ng_miam_modal_0_Template_ng_miam_modal_displayChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r6 = i0__namespace.ɵɵnextContext(); return ctx_r6.show = $event; })("close", function RecipeModalComponent_ng_miam_modal_0_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r8 = i0__namespace.ɵɵnextContext(); return ctx_r8.hide(); })("cancel", function RecipeModalComponent_ng_miam_modal_0_Template_ng_miam_modal_cancel_0_listener() { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r9 = i0__namespace.ɵɵnextContext(); return ctx_r9.removeRecipe(); })("confirm", function RecipeModalComponent_ng_miam_modal_0_Template_ng_miam_modal_confirm_0_listener() { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.hide(); });
28693
- i0__namespace.ɵɵtemplate(1, RecipeModalComponent_ng_miam_modal_0_ng_miam_store_locator_link_1_Template, 1, 0, "ng-miam-store-locator-link", 4);
28694
- i0__namespace.ɵɵelementStart(2, "div", 5);
28695
- i0__namespace.ɵɵelement(3, "ng-miam-basket-preview-block", 6);
28696
- i0__namespace.ɵɵelementEnd();
28697
- i0__namespace.ɵɵtemplate(4, RecipeModalComponent_ng_miam_modal_0_ng_miam_store_locator_4_Template, 1, 1, "ng-miam-store-locator", 7);
28177
+ var _r9_1 = i0__namespace.ɵɵgetCurrentView();
28178
+ i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-details", 10, 11);
28179
+ i0__namespace.ɵɵlistener("recipeAdded", function RecipeModalComponent_ng_miam_modal_0_ng_miam_recipe_details_8_Template_ng_miam_recipe_details_recipeAdded_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.togglePreviewMode(); })("recipeError", function RecipeModalComponent_ng_miam_modal_0_ng_miam_recipe_details_8_Template_ng_miam_recipe_details_recipeError_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.hide(true); })("closeDetails", function RecipeModalComponent_ng_miam_modal_0_ng_miam_recipe_details_8_Template_ng_miam_recipe_details_closeDetails_0_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.hide(true); });
28698
28180
  i0__namespace.ɵɵelementEnd();
28699
28181
  }
28700
28182
  if (rf & 2) {
28701
- var ctx_r0 = i0__namespace.ɵɵnextContext();
28702
- i0__namespace.ɵɵproperty("display", ctx_r0.show)("noHeaderMode", ctx_r0.showStoreLocator)("confirmButtonDisabled", !ctx_r0.canCloseModal)("cancelButtonIsLoading", ctx_r0.removeIsLoading)("placeOrderFooter", ctx_r0.showPlaceOrderFooter)("totalPrice", ctx_r0.totalPrice)("ngClass", i0__namespace.ɵɵpureFunction1(14, _c2, ctx_r0.showStoreLocator));
28703
- i0__namespace.ɵɵadvance(1);
28704
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.contextService.noSupplier && !ctx_r0.showStoreLocator);
28705
- i0__namespace.ɵɵadvance(1);
28706
- i0__namespace.ɵɵclassProp("hidden", ctx_r0.showStoreLocator);
28707
- i0__namespace.ɵɵadvance(1);
28708
- i0__namespace.ɵɵproperty("recipeId", ctx_r0.recipe == null ? null : ctx_r0.recipe.id)("displayItemsUnitaryPrice", true)("originTrace", ctx_r0.eventTrace);
28709
- i0__namespace.ɵɵadvance(1);
28710
- i0__namespace.ɵɵproperty("ngIf", ctx_r0.contextService.noSupplier && ctx_r0.showStoreLocator);
28183
+ var ctx_r5 = i0__namespace.ɵɵnextContext(2);
28184
+ i0__namespace.ɵɵproperty("recipeId", ctx_r5.recipe.id)("guestNumber", ctx_r5.recipe.modifiedGuests)("previewAllowed", ctx_r5.previewAllowed)("originTrace", ctx_r5.eventTrace)("stepsOnLeftSide", ctx_r5.detailsStepsOnLeftSide)("moreRecipesImageURL", ctx_r5.detailsMoreRecipesImageURL)("pricingGuestsText", ctx_r5.detailsPricingGuestsText)("displayGuests", ctx_r5.displayGuestsInDetails)("helpButtonAllowed", ctx_r5.helpButtonAllowedInDetails);
28711
28185
  }
28712
28186
  }
28713
- function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template(rf, ctx) {
28187
+ function RecipeModalComponent_ng_miam_modal_0_ng_miam_store_locator_10_Template(rf, ctx) {
28714
28188
  if (rf & 1) {
28715
- var _r14_1 = i0__namespace.ɵɵgetCurrentView();
28716
- i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-details", 12, 13);
28717
- i0__namespace.ɵɵlistener("recipeAdded", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_recipeAdded_0_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ctx_r13.togglePreviewMode(); })("recipeError", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_recipeError_0_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ctx_r15.hide(); })("closeDetails", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_closeDetails_0_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r16 = i0__namespace.ɵɵnextContext(2); return ctx_r16.hide(); });
28718
- i0__namespace.ɵɵelementEnd();
28189
+ i0__namespace.ɵɵelement(0, "ng-miam-store-locator", 12);
28719
28190
  }
28720
28191
  if (rf & 2) {
28721
- var ctx_r11 = i0__namespace.ɵɵnextContext(2);
28722
- i0__namespace.ɵɵproperty("recipeId", ctx_r11.recipe.id)("guestNumber", ctx_r11.recipe.modifiedGuests)("previewAllowed", ctx_r11.previewAllowed)("originTrace", ctx_r11.eventTrace)("stepsOnLeftSide", ctx_r11.detailsStepsOnLeftSide)("moreRecipesImageURL", ctx_r11.detailsMoreRecipesImageURL)("pricingGuestsText", ctx_r11.detailsPricingGuestsText)("displayGuests", ctx_r11.displayGuestsInDetails)("helpButtonAllowed", ctx_r11.helpButtonAllowedInDetails);
28192
+ var ctx_r6 = i0__namespace.ɵɵnextContext(2);
28193
+ i0__namespace.ɵɵproperty("originTrace", ctx_r6.eventTrace);
28723
28194
  }
28724
28195
  }
28725
- function RecipeModalComponent_ng_miam_modal_2_Template(rf, ctx) {
28196
+ var _c2 = function (a0) { return { "store-locator": a0 }; };
28197
+ function RecipeModalComponent_ng_miam_modal_0_Template(rf, ctx) {
28726
28198
  if (rf & 1) {
28727
- var _r18_1 = i0__namespace.ɵɵgetCurrentView();
28728
- i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 10);
28729
- i0__namespace.ɵɵlistener("displayChange", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_displayChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.show = $event; })("close", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r19 = i0__namespace.ɵɵnextContext(); return ctx_r19.hide(); })("cancel", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_cancel_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r20 = i0__namespace.ɵɵnextContext(); return ctx_r20.removeRecipe(); })("confirm", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_confirm_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r21 = i0__namespace.ɵɵnextContext(); return ctx_r21.hide(); });
28730
- i0__namespace.ɵɵtemplate(1, RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template, 2, 9, "ng-miam-recipe-details", 11);
28199
+ var _r13_1 = i0__namespace.ɵɵgetCurrentView();
28200
+ i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 2);
28201
+ i0__namespace.ɵɵlistener("displayChange", function RecipeModalComponent_ng_miam_modal_0_Template_ng_miam_modal_displayChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r12 = i0__namespace.ɵɵnextContext(); return ctx_r12.show = $event; })("close", function RecipeModalComponent_ng_miam_modal_0_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.hide(); })("cancel", function RecipeModalComponent_ng_miam_modal_0_Template_ng_miam_modal_cancel_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.removeRecipe(); })("confirm", function RecipeModalComponent_ng_miam_modal_0_Template_ng_miam_modal_confirm_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.hide(); });
28202
+ i0__namespace.ɵɵpipe(1, "async");
28203
+ i0__namespace.ɵɵpipe(2, "async");
28204
+ i0__namespace.ɵɵpipe(3, "async");
28205
+ i0__namespace.ɵɵtemplate(4, RecipeModalComponent_ng_miam_modal_0_ng_miam_store_locator_link_4_Template, 1, 0, "ng-miam-store-locator-link", 3);
28206
+ i0__namespace.ɵɵpipe(5, "async");
28207
+ i0__namespace.ɵɵtemplate(6, RecipeModalComponent_ng_miam_modal_0_div_6_Template, 2, 5, "div", 4);
28208
+ i0__namespace.ɵɵpipe(7, "async");
28209
+ i0__namespace.ɵɵtemplate(8, RecipeModalComponent_ng_miam_modal_0_ng_miam_recipe_details_8_Template, 2, 9, "ng-miam-recipe-details", 5);
28210
+ i0__namespace.ɵɵpipe(9, "async");
28211
+ i0__namespace.ɵɵtemplate(10, RecipeModalComponent_ng_miam_modal_0_ng_miam_store_locator_10_Template, 1, 1, "ng-miam-store-locator", 6);
28731
28212
  i0__namespace.ɵɵelementEnd();
28732
28213
  }
28733
28214
  if (rf & 2) {
28734
- var ctx_r1 = i0__namespace.ɵɵnextContext();
28735
- i0__namespace.ɵɵproperty("noHeaderMode", true)("display", ctx_r1.show)("cancelButtonDisabled", !ctx_r1.canCloseModal)("cancelButtonIsLoading", ctx_r1.removeIsLoading);
28736
- i0__namespace.ɵɵadvance(1);
28737
- i0__namespace.ɵɵproperty("ngIf", ctx_r1.recipe);
28215
+ var ctx_r0 = i0__namespace.ɵɵnextContext();
28216
+ i0__namespace.ɵɵclassProp("miam-recipe-modal__basket-preview-modal", i0__namespace.ɵɵpipeBind1(1, 14, ctx_r0.previewMode));
28217
+ i0__namespace.ɵɵproperty("display", ctx_r0.show)("noHeaderMode", !i0__namespace.ɵɵpipeBind1(2, 16, ctx_r0.previewMode) || ctx_r0.showStoreLocator)("confirmButtonDisabled", !ctx_r0.canCloseModal)("cancelButtonDisabled", !ctx_r0.canCloseModal)("cancelButtonIsLoading", ctx_r0.removeIsLoading)("placeOrderFooter", i0__namespace.ɵɵpipeBind1(3, 18, ctx_r0.previewMode) && ctx_r0.showPlaceOrderFooter)("totalPrice", ctx_r0.totalPrice)("ngClass", i0__namespace.ɵɵpureFunction1(26, _c2, ctx_r0.showStoreLocator));
28218
+ i0__namespace.ɵɵadvance(4);
28219
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(5, 20, ctx_r0.previewMode) && ctx_r0.contextService.noSupplier && !ctx_r0.showStoreLocator);
28220
+ i0__namespace.ɵɵadvance(2);
28221
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(7, 22, ctx_r0.previewMode));
28222
+ i0__namespace.ɵɵadvance(2);
28223
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.recipe && !i0__namespace.ɵɵpipeBind1(9, 24, ctx_r0.previewMode));
28224
+ i0__namespace.ɵɵadvance(2);
28225
+ i0__namespace.ɵɵproperty("ngIf", ctx_r0.contextService.noSupplier && ctx_r0.showStoreLocator);
28738
28226
  }
28739
28227
  }
28740
- function RecipeModalComponent_ng_miam_modal_4_Template(rf, ctx) {
28228
+ function RecipeModalComponent_ng_miam_modal_1_Template(rf, ctx) {
28741
28229
  if (rf & 1) {
28742
- var _r23_1 = i0__namespace.ɵɵgetCurrentView();
28743
- i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 14);
28744
- i0__namespace.ɵɵlistener("displayChange", function RecipeModalComponent_ng_miam_modal_4_Template_ng_miam_modal_displayChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r23_1); var ctx_r22 = i0__namespace.ɵɵnextContext(); return ctx_r22.show = $event; })("close", function RecipeModalComponent_ng_miam_modal_4_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r23_1); var ctx_r24 = i0__namespace.ɵɵnextContext(); return ctx_r24.hide(); });
28745
- i0__namespace.ɵɵelementStart(1, "ng-miam-replace-item", 15);
28746
- i0__namespace.ɵɵlistener("selected", function RecipeModalComponent_ng_miam_modal_4_Template_ng_miam_replace_item_selected_1_listener() { i0__namespace.ɵɵrestoreView(_r23_1); var ctx_r25 = i0__namespace.ɵɵnextContext(); return ctx_r25.productAdditionService.showProductSection(); });
28230
+ var _r18_1 = i0__namespace.ɵɵgetCurrentView();
28231
+ i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 13);
28232
+ i0__namespace.ɵɵlistener("close", function RecipeModalComponent_ng_miam_modal_1_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.hide(); });
28233
+ i0__namespace.ɵɵelementStart(1, "ng-miam-replace-item", 14);
28234
+ i0__namespace.ɵɵlistener("selected", function RecipeModalComponent_ng_miam_modal_1_Template_ng_miam_replace_item_selected_1_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r19 = i0__namespace.ɵɵnextContext(); return ctx_r19.productAdditionService.showProductSection(); });
28747
28235
  i0__namespace.ɵɵelementEnd();
28748
28236
  i0__namespace.ɵɵelementEnd();
28749
28237
  }
28750
28238
  if (rf & 2) {
28751
- var ctx_r2 = i0__namespace.ɵɵnextContext();
28752
- i0__namespace.ɵɵproperty("noHeaderMode", true)("display", ctx_r2.show)("cancelButtonDisabled", !ctx_r2.canCloseModal)("cancelButtonIsLoading", ctx_r2.removeIsLoading);
28239
+ var ctx_r1 = i0__namespace.ɵɵnextContext();
28240
+ i0__namespace.ɵɵproperty("noHeaderMode", true)("display", true)("cancelButtonDisabled", !ctx_r1.canCloseModal)("cancelButtonIsLoading", ctx_r1.removeIsLoading);
28753
28241
  i0__namespace.ɵɵadvance(1);
28754
- i0__namespace.ɵɵproperty("addProductMode", true)("originTrace", ctx_r2.eventTrace);
28242
+ i0__namespace.ɵɵproperty("addProductMode", true)("originTrace", ctx_r1.eventTrace);
28755
28243
  }
28756
28244
  }
28757
- function RecipeModalComponent_ng_miam_modal_5_Template(rf, ctx) {
28245
+ function RecipeModalComponent_ng_miam_modal_2_Template(rf, ctx) {
28758
28246
  if (rf & 1) {
28759
- var _r27_1 = i0__namespace.ɵɵgetCurrentView();
28760
- i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 14);
28761
- i0__namespace.ɵɵlistener("displayChange", function RecipeModalComponent_ng_miam_modal_5_Template_ng_miam_modal_displayChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r26 = i0__namespace.ɵɵnextContext(); return ctx_r26.show = $event; })("close", function RecipeModalComponent_ng_miam_modal_5_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r28 = i0__namespace.ɵɵnextContext(); return ctx_r28.hide(); });
28762
- i0__namespace.ɵɵelementStart(1, "ng-miam-replace-item", 16);
28763
- i0__namespace.ɵɵlistener("selected", function RecipeModalComponent_ng_miam_modal_5_Template_ng_miam_replace_item_selected_1_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r29 = i0__namespace.ɵɵnextContext(); return ctx_r29.productReplacementService.changeModalState(false); });
28247
+ var _r21_1 = i0__namespace.ɵɵgetCurrentView();
28248
+ i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 13);
28249
+ i0__namespace.ɵɵlistener("close", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r20 = i0__namespace.ɵɵnextContext(); return ctx_r20.hide(); });
28250
+ i0__namespace.ɵɵelementStart(1, "ng-miam-replace-item", 15);
28251
+ i0__namespace.ɵɵlistener("selected", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_replace_item_selected_1_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r22 = i0__namespace.ɵɵnextContext(); return ctx_r22.productReplacementService.changeModalState(false); });
28764
28252
  i0__namespace.ɵɵelementEnd();
28765
28253
  i0__namespace.ɵɵelementEnd();
28766
28254
  }
28767
28255
  if (rf & 2) {
28768
- var ctx_r3 = i0__namespace.ɵɵnextContext();
28769
- i0__namespace.ɵɵproperty("noHeaderMode", true)("display", ctx_r3.show)("cancelButtonDisabled", !ctx_r3.canCloseModal)("cancelButtonIsLoading", ctx_r3.removeIsLoading);
28256
+ var ctx_r2 = i0__namespace.ɵɵnextContext();
28257
+ i0__namespace.ɵɵproperty("noHeaderMode", true)("display", true)("cancelButtonDisabled", !ctx_r2.canCloseModal)("cancelButtonIsLoading", ctx_r2.removeIsLoading);
28770
28258
  i0__namespace.ɵɵadvance(1);
28771
- i0__namespace.ɵɵproperty("basketEntry", ctx_r3.productReplacementService.productToReplace)("loadOnSelect", true)("originTrace", ctx_r3.eventTrace);
28259
+ i0__namespace.ɵɵproperty("basketEntry", ctx_r2.productReplacementService.productToReplace)("loadOnSelect", true)("originTrace", ctx_r2.eventTrace);
28772
28260
  }
28773
28261
  }
28774
28262
  var RecipeModalComponent = /** @class */ (function () {
28775
- function RecipeModalComponent(cdr, analyticsService, recipesService, contextService, printService, basketTransferService, elRef, basketsService, recipeDetailsService, productAdditionService, productReplacementService, posService, storeLocatorService) {
28263
+ function RecipeModalComponent(cdr, analyticsService, recipesService, contextService, printService, basketTransferService, elRef, basketsService, recipeDetailsService, productAdditionService, productReplacementService, posService, storeLocatorService, basketTransfer) {
28776
28264
  this.cdr = cdr;
28777
28265
  this.analyticsService = analyticsService;
28778
28266
  this.recipesService = recipesService;
@@ -28786,6 +28274,7 @@
28786
28274
  this.productReplacementService = productReplacementService;
28787
28275
  this.posService = posService;
28788
28276
  this.storeLocatorService = storeLocatorService;
28277
+ this.basketTransfer = basketTransfer;
28789
28278
  this.show = false;
28790
28279
  this.previewMode = new rxjs.BehaviorSubject(false);
28791
28280
  this.displayGuestsInDetails = true;
@@ -28816,10 +28305,11 @@
28816
28305
  }
28817
28306
  }), this.basketsService.basket$.pipe(operators.filter(function (basket) { return basket !== null; }), operators.map(function (basket) { return basket.totalPrice; })).subscribe(function (totalPrice) {
28818
28307
  _this.totalPrice = totalPrice;
28819
- _this.showPlaceOrderFooter = _this.contextService.noSupplier && !_this.showStoreLocator && _this.totalPrice > 0;
28308
+ _this.updateShowPlaceOrderFooter();
28820
28309
  _this.cdr.detectChanges();
28821
28310
  }), this.storeLocatorService.storeLocatorOpened$.subscribe(function (show) {
28822
28311
  _this.showStoreLocator = show;
28312
+ _this.updateShowPlaceOrderFooter();
28823
28313
  if (_this.show && !_this.showStoreLocator && _this.storeLocatorService.closeModalOnSelected) {
28824
28314
  _this.storeLocatorService.closeModalOnSelected = false;
28825
28315
  _this.hide();
@@ -28884,13 +28374,16 @@
28884
28374
  this.eventTrace = { originPath: '', props: {} };
28885
28375
  }
28886
28376
  };
28887
- RecipeModalComponent.prototype.hide = function () {
28377
+ RecipeModalComponent.prototype.hide = function (isDetail) {
28378
+ if (isDetail === void 0) { isDetail = false; }
28888
28379
  if (this.canCloseModal) {
28889
28380
  this.recipeDetailsService.displayEventWasSent = false;
28890
- this.show = false;
28891
28381
  this.recipe = null; // trigger again a change on recipe if we re-open the view
28892
- this.previewMode.next(false);
28893
- this.recipesService.hide();
28382
+ this.previewMode.next(isDetail);
28383
+ if (!isDetail) {
28384
+ this.show = false;
28385
+ this.recipesService.hide();
28386
+ }
28894
28387
  // Put back if/when printing is reimplemented
28895
28388
  // this.printService.dismissPrinting();
28896
28389
  this.hasChangesOnClose.emit(this.basketChangedSinceOpened);
@@ -28938,10 +28431,13 @@
28938
28431
  _this.cdr.detectChanges();
28939
28432
  }));
28940
28433
  };
28434
+ RecipeModalComponent.prototype.updateShowPlaceOrderFooter = function () {
28435
+ this.showPlaceOrderFooter = this.contextService.noSupplier && !this.showStoreLocator && this.totalPrice > 0;
28436
+ };
28941
28437
  return RecipeModalComponent;
28942
28438
  }());
28943
- RecipeModalComponent.ɵfac = function RecipeModalComponent_Factory(t) { return new (t || RecipeModalComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(PrintService), i0__namespace.ɵɵdirectiveInject(BasketTransferService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(ProductAdditionService), i0__namespace.ɵɵdirectiveInject(ProductReplacementService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(StoreLocatorService)); };
28944
- RecipeModalComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeModalComponent, selectors: [["ng-miam-recipe-modal"]], inputs: { detailsStepsOnLeftSide: "detailsStepsOnLeftSide", detailsMoreRecipesImageURL: "detailsMoreRecipesImageURL", detailsPricingGuestsText: "detailsPricingGuestsText" }, outputs: { hasChangesOnClose: "hasChangesOnClose" }, decls: 6, vars: 8, consts: function () {
28439
+ RecipeModalComponent.ɵfac = function RecipeModalComponent_Factory(t) { return new (t || RecipeModalComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(PrintService), i0__namespace.ɵɵdirectiveInject(BasketTransferService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(ProductAdditionService), i0__namespace.ɵɵdirectiveInject(ProductReplacementService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(StoreLocatorService), i0__namespace.ɵɵdirectiveInject(BasketTransferService)); };
28440
+ RecipeModalComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeModalComponent, selectors: [["ng-miam-recipe-modal"]], inputs: { detailsStepsOnLeftSide: "detailsStepsOnLeftSide", detailsMoreRecipesImageURL: "detailsMoreRecipesImageURL", detailsPricingGuestsText: "detailsPricingGuestsText" }, outputs: { hasChangesOnClose: "hasChangesOnClose" }, decls: 3, vars: 3, consts: function () {
28945
28441
  var i18n_0;
28946
28442
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
28947
28443
  var MSG_EXTERNAL_171150506213829263$$LIB__WEB_COMPONENTS_RECIPE_MODAL_RECIPE_MODAL_COMPONENT_TS_1 = goog.getMsg("Mes repas");
@@ -28950,26 +28446,21 @@
28950
28446
  else {
28951
28447
  i18n_0 = $localize(templateObject_1 || (templateObject_1 = __makeTemplateObject([":\u241Fd0309cdf7a6522949c4f145db5e71f70c9d9d66c\u241F171150506213829263:Mes repas"], [":\u241Fd0309cdf7a6522949c4f145db5e71f70c9d9d66c\u241F171150506213829263:Mes repas"])));
28952
28448
  }
28953
- return [["title", i18n_0, "modalStyle", "right", "class", "miam-recipe-modal__basket-preview-modal", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonIsLoading", "placeOrderFooter", "totalPrice", "ngClass", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", 4, "ngIf"], ["title", i18n_0, "modalStyle", "right", 1, "miam-recipe-modal__basket-preview-modal", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonIsLoading", "placeOrderFooter", "totalPrice", "ngClass", "displayChange", "close", "cancel", "confirm"], ["header", "", 4, "ngIf"], [1, "miam-wrapper-preview"], [3, "recipeId", "displayItemsUnitaryPrice", "originTrace"], [3, "originTrace", 4, "ngIf"], ["header", ""], [3, "originTrace"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError", "closeDetails", 4, "ngIf"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError", "closeDetails"], ["details", ""], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close"], [3, "addProductMode", "originTrace", "selected"], [3, "basketEntry", "loadOnSelect", "originTrace", "selected"]];
28449
+ return [["title", i18n_0, "modalStyle", "right", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonDisabled", "cancelButtonIsLoading", "placeOrderFooter", "totalPrice", "miam-recipe-modal__basket-preview-modal", "ngClass", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "close", 4, "ngIf"], ["title", i18n_0, "modalStyle", "right", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonDisabled", "cancelButtonIsLoading", "placeOrderFooter", "totalPrice", "ngClass", "displayChange", "close", "cancel", "confirm"], ["header", "", 4, "ngIf"], ["class", "miam-wrapper-preview", 3, "hidden", 4, "ngIf"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError", "closeDetails", 4, "ngIf"], [3, "originTrace", 4, "ngIf"], ["header", ""], [1, "miam-wrapper-preview"], [3, "recipeId", "displayItemsUnitaryPrice", "originTrace"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError", "closeDetails"], ["details", ""], [3, "originTrace"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "close"], [3, "addProductMode", "originTrace", "selected"], [3, "basketEntry", "loadOnSelect", "originTrace", "selected"]];
28954
28450
  }, template: function RecipeModalComponent_Template(rf, ctx) {
28955
28451
  if (rf & 1) {
28956
- i0__namespace.ɵɵtemplate(0, RecipeModalComponent_ng_miam_modal_0_Template, 5, 16, "ng-miam-modal", 0);
28957
- i0__namespace.ɵɵpipe(1, "async");
28958
- i0__namespace.ɵɵtemplate(2, RecipeModalComponent_ng_miam_modal_2_Template, 2, 5, "ng-miam-modal", 1);
28959
- i0__namespace.ɵɵpipe(3, "async");
28960
- i0__namespace.ɵɵtemplate(4, RecipeModalComponent_ng_miam_modal_4_Template, 2, 6, "ng-miam-modal", 2);
28961
- i0__namespace.ɵɵtemplate(5, RecipeModalComponent_ng_miam_modal_5_Template, 2, 7, "ng-miam-modal", 2);
28452
+ i0__namespace.ɵɵtemplate(0, RecipeModalComponent_ng_miam_modal_0_Template, 11, 28, "ng-miam-modal", 0);
28453
+ i0__namespace.ɵɵtemplate(1, RecipeModalComponent_ng_miam_modal_1_Template, 2, 6, "ng-miam-modal", 1);
28454
+ i0__namespace.ɵɵtemplate(2, RecipeModalComponent_ng_miam_modal_2_Template, 2, 7, "ng-miam-modal", 1);
28962
28455
  }
28963
28456
  if (rf & 2) {
28964
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 4, ctx.previewMode) && !ctx.productAdditionModalOpened);
28965
- i0__namespace.ɵɵadvance(2);
28966
- i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(3, 6, ctx.previewMode) && !ctx.productAdditionModalOpened);
28967
- i0__namespace.ɵɵadvance(2);
28457
+ i0__namespace.ɵɵproperty("ngIf", !ctx.productReplacementModalOpened && !ctx.productAdditionModalOpened);
28458
+ i0__namespace.ɵɵadvance(1);
28968
28459
  i0__namespace.ɵɵproperty("ngIf", ctx.productAdditionModalOpened);
28969
28460
  i0__namespace.ɵɵadvance(1);
28970
28461
  i0__namespace.ɵɵproperty("ngIf", ctx.productReplacementModalOpened);
28971
28462
  }
28972
- }, directives: [i2__namespace$1.NgIf, ModalComponent, i2__namespace$1.NgClass, BasketPreviewBlockComponent, StoreLocatorLinkComponent, StoreLocatorComponent, RecipeDetailsComponent, ReplaceItemComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-modal.without-header .miam-modal__header .miam-modal__close-icon,.miam-recipe-modal__basket-preview-modal .miam-wrapper-preview.hidden{display:none}@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}.miam-recipe-modal__basket-preview-modal.store-locator .miam-modal__container.right .miam-modal{width:1000px}.miam-recipe-modal__basket-preview-modal.store-locator .miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__content{padding:0}@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 });
28463
+ }, directives: [i2__namespace$1.NgIf, ModalComponent, i2__namespace$1.NgClass, StoreLocatorLinkComponent, BasketPreviewBlockComponent, RecipeDetailsComponent, StoreLocatorComponent, ReplaceItemComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-modal.without-header .miam-modal__header .miam-modal__close-icon,.miam-recipe-modal__basket-preview-modal .miam-wrapper-preview.hidden{display:none}@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}.miam-recipe-modal__basket-preview-modal.store-locator .miam-modal__container.right .miam-modal{width:1000px}.miam-recipe-modal__basket-preview-modal.store-locator .miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__content{padding:0}@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-list-scan .miam-modal__container.left .miam-modal,webc-miam-list-scan .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-list-scan .miam-modal__container.left .miam-modal,webc-miam-list-scan .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 });
28973
28464
  (function () {
28974
28465
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeModalComponent, [{
28975
28466
  type: i0.Component,
@@ -28980,7 +28471,7 @@
28980
28471
  changeDetection: i0.ChangeDetectionStrategy.OnPush,
28981
28472
  encapsulation: i0.ViewEncapsulation.None
28982
28473
  }]
28983
- }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }, { type: RecipesService }, { type: ContextService }, { type: PrintService }, { type: BasketTransferService }, { type: i0__namespace.ElementRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: ProductAdditionService }, { type: ProductReplacementService }, { type: PointOfSalesService }, { type: StoreLocatorService }]; }, { detailsStepsOnLeftSide: [{
28474
+ }], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }, { type: RecipesService }, { type: ContextService }, { type: PrintService }, { type: BasketTransferService }, { type: i0__namespace.ElementRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: ProductAdditionService }, { type: ProductReplacementService }, { type: PointOfSalesService }, { type: StoreLocatorService }, { type: BasketTransferService }]; }, { detailsStepsOnLeftSide: [{
28984
28475
  type: i0.Input
28985
28476
  }], detailsMoreRecipesImageURL: [{
28986
28477
  type: i0.Input
@@ -29204,6 +28695,7 @@
29204
28695
  BasketEntriesService,
29205
28696
  ItemsService,
29206
28697
  CatalogSettingsService,
28698
+ ListScanService,
29207
28699
  PreferencesService,
29208
28700
  { provide: i1.HTTP_INTERCEPTORS, useClass: MiamInterceptor, multi: true },
29209
28701
  AnalyticsService,
@@ -29243,6 +28735,7 @@
29243
28735
  BasketEntriesService,
29244
28736
  ItemsService,
29245
28737
  CatalogSettingsService,
28738
+ ListScanService,
29246
28739
  PreferencesService,
29247
28740
  { provide: i1.HTTP_INTERCEPTORS, useClass: MiamInterceptor, multi: true },
29248
28741
  AnalyticsService,
@@ -29319,6 +28812,7 @@
29319
28812
  exports.ListInputComponent = ListInputComponent;
29320
28813
  exports.ListScanComponent = ListScanComponent;
29321
28814
  exports.ListScanModule = ListScanModule;
28815
+ exports.ListScanService = ListScanService;
29322
28816
  exports.LoaderComponent = LoaderComponent;
29323
28817
  exports.MealsPlannerComponent = MealsPlannerComponent;
29324
28818
  exports.MealsPlannerFormComponent = MealsPlannerFormComponent;