ng-miam 9.1.1 → 9.1.3

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 (44) hide show
  1. package/bundles/ng-miam.umd.js +115 -47
  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/counter-input/counter-input.component.js +11 -5
  6. package/esm2015/lib/_models/recipe-pricing.js +1 -1
  7. package/esm2015/lib/_services/baskets.service.js +5 -5
  8. package/esm2015/lib/_services/recipes.service.js +33 -6
  9. package/esm2015/lib/_services/store-locator.service.js +7 -2
  10. package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +2 -2
  11. package/esm2015/lib/_web-components/preferences/preferences-search/preferences-search.component.js +5 -4
  12. package/esm2015/lib/_web-components/preferences/preferences.component.js +17 -12
  13. package/esm2015/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.js +3 -6
  14. package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +4 -4
  15. package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +3 -3
  16. package/esm2015/lib/_web-components/recipe-details/store-locator-link/store-locator-link.component.js +28 -8
  17. package/esm2015/lib/_web-components/recipe-pricing/recipe-pricing.component.js +5 -6
  18. package/esm2015/lib/_web-components/warning-store-locator/warning-store-locator.component.js +4 -2
  19. package/esm2015/lib/environments/version.js +2 -2
  20. package/fesm2015/ng-miam.js +565 -503
  21. package/fesm2015/ng-miam.js.map +1 -1
  22. package/lib/_components/counter-input/counter-input.component.d.ts +4 -4
  23. package/lib/_components/counter-input/counter-input.component.d.ts.map +1 -1
  24. package/lib/_models/recipe-pricing.d.ts +1 -1
  25. package/lib/_models/recipe-pricing.d.ts.map +1 -1
  26. package/lib/_services/baskets.service.d.ts +1 -1
  27. package/lib/_services/baskets.service.d.ts.map +1 -1
  28. package/lib/_services/recipes.service.d.ts +15 -4
  29. package/lib/_services/recipes.service.d.ts.map +1 -1
  30. package/lib/_services/store-locator.service.d.ts +2 -0
  31. package/lib/_services/store-locator.service.d.ts.map +1 -1
  32. package/lib/_web-components/preferences/preferences-search/preferences-search.component.d.ts.map +1 -1
  33. package/lib/_web-components/preferences/preferences.component.d.ts.map +1 -1
  34. package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts +0 -1
  35. package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts.map +1 -1
  36. package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts +1 -1
  37. package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts.map +1 -1
  38. package/lib/_web-components/recipe-details/store-locator-link/store-locator-link.component.d.ts +3 -0
  39. package/lib/_web-components/recipe-details/store-locator-link/store-locator-link.component.d.ts.map +1 -1
  40. package/lib/_web-components/recipe-pricing/recipe-pricing.component.d.ts +1 -2
  41. package/lib/_web-components/recipe-pricing/recipe-pricing.component.d.ts.map +1 -1
  42. package/lib/_web-components/warning-store-locator/warning-store-locator.component.d.ts.map +1 -1
  43. package/lib/environments/version.d.ts +1 -1
  44. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/common/http'), require('@angular/common/locales/fr'), require('@angular/core'), require('@angular/platform-browser/animations'), require('miam-jsonapi'), require('rxjs'), require('@angular/platform-browser'), require('date-fns/endOfWeek'), require('date-fns/isWithinInterval'), require('date-fns/startOfWeek'), require('date-fns/subDays'), require('rxjs/operators'), require('duration-fns'), require('lodash-es'), require('mealz-shared-analytics'), require('lodash-es/pullAt'), require('@angular/cdk/layout'), require('uuid'), require('@angular/forms'), require('@angular/cdk/drag-drop'), require('@angular/cdk/text-field'), require('@angular/elements'), require('lodash-es/remove'), require('@angular/animations'), require('@angular/youtube-player'), require('lodash-es/groupBy')) :
3
- typeof define === 'function' && define.amd ? define('ng-miam', ['exports', '@angular/common', '@angular/common/http', '@angular/common/locales/fr', '@angular/core', '@angular/platform-browser/animations', 'miam-jsonapi', 'rxjs', '@angular/platform-browser', 'date-fns/endOfWeek', 'date-fns/isWithinInterval', 'date-fns/startOfWeek', 'date-fns/subDays', 'rxjs/operators', 'duration-fns', 'lodash-es', 'mealz-shared-analytics', 'lodash-es/pullAt', '@angular/cdk/layout', 'uuid', '@angular/forms', '@angular/cdk/drag-drop', '@angular/cdk/text-field', '@angular/elements', 'lodash-es/remove', '@angular/animations', '@angular/youtube-player', 'lodash-es/groupBy'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["ng-miam"] = {}, global.ng.common, global.ng.common.http, global.ng.common.locales.fr, global.ng.core, global.ng.platformBrowser.animations, global.i2$2, global.rxjs, global.ng.platformBrowser, global.endOfWeek, global.isWithinInterval, global.startOfWeek, global.subDays, global.rxjs.operators, global.duration, global.lodashEs, global.mealzSharedAnalytics, global.pullAt, global.ng.cdk.layout, global.uuid, global.ng.forms, global.ng.cdk.dragDrop, global.ng.cdk.textField, global.ng.elements, global.remove, global.ng.animations, global.ng.youtubePlayer, global.groupBy));
5
- })(this, (function (exports, i2, i1, localeFr, i0, animations$1, i2$2, rxjs, i2$1, endOfWeek, isWithinInterval, startOfWeek, subDays, operators, duration, lodashEs, mealzSharedAnalytics, pullAt, i7, uuid, i3, dragDrop, textField, elements, remove, animations, i9, groupBy) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/common/http'), require('@angular/common/locales/fr'), require('@angular/core'), require('@angular/platform-browser/animations'), require('miam-jsonapi'), require('rxjs'), require('rxjs/operators'), require('@angular/platform-browser'), require('date-fns/endOfWeek'), require('date-fns/isWithinInterval'), require('date-fns/startOfWeek'), require('date-fns/subDays'), require('duration-fns'), require('lodash-es'), require('mealz-shared-analytics'), require('lodash-es/pullAt'), require('@angular/cdk/layout'), require('uuid'), require('@angular/forms'), require('@angular/cdk/drag-drop'), require('@angular/cdk/text-field'), require('@angular/elements'), require('lodash-es/remove'), require('@angular/animations'), require('@angular/youtube-player'), require('lodash-es/groupBy')) :
3
+ typeof define === 'function' && define.amd ? define('ng-miam', ['exports', '@angular/common', '@angular/common/http', '@angular/common/locales/fr', '@angular/core', '@angular/platform-browser/animations', 'miam-jsonapi', 'rxjs', 'rxjs/operators', '@angular/platform-browser', 'date-fns/endOfWeek', 'date-fns/isWithinInterval', 'date-fns/startOfWeek', 'date-fns/subDays', 'duration-fns', 'lodash-es', 'mealz-shared-analytics', 'lodash-es/pullAt', '@angular/cdk/layout', 'uuid', '@angular/forms', '@angular/cdk/drag-drop', '@angular/cdk/text-field', '@angular/elements', 'lodash-es/remove', '@angular/animations', '@angular/youtube-player', 'lodash-es/groupBy'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global["ng-miam"] = {}, global.ng.common, global.ng.common.http, global.ng.common.locales.fr, global.ng.core, global.ng.platformBrowser.animations, global.i2$2, global.rxjs, global.rxjs.operators, global.ng.platformBrowser, global.endOfWeek, global.isWithinInterval, global.startOfWeek, global.subDays, global.duration, global.lodashEs, global.mealzSharedAnalytics, global.pullAt, global.ng.cdk.layout, global.uuid, global.ng.forms, global.ng.cdk.dragDrop, global.ng.cdk.textField, global.ng.elements, global.remove, global.ng.animations, global.ng.youtubePlayer, global.groupBy));
5
+ })(this, (function (exports, i2, i1, localeFr, i0, animations$1, i2$2, rxjs, operators, i2$1, endOfWeek, isWithinInterval, startOfWeek, subDays, duration, lodashEs, mealzSharedAnalytics, pullAt, i7, uuid, i3, dragDrop, textField, elements, remove, animations, i9, groupBy) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -1227,7 +1227,7 @@
1227
1227
  if (this.valueSubject) {
1228
1228
  return;
1229
1229
  }
1230
- this.valueSubject = new rxjs.Subject();
1230
+ this.valueSubject = new rxjs.BehaviorSubject(this.value);
1231
1231
  this.lastValue = this.value;
1232
1232
  this.subscriptions.push(this.valueSubject
1233
1233
  .pipe(operators.debounceTime(this.debounceTime))
@@ -1239,7 +1239,13 @@
1239
1239
  _this.lastValue = _this.value;
1240
1240
  }));
1241
1241
  };
1242
- CounterInputComponent.prototype.ngOnChanges = function () {
1242
+ CounterInputComponent.prototype.ngOnChanges = function (changes) {
1243
+ var _a;
1244
+ if (!((_a = changes.value) === null || _a === void 0 ? void 0 : _a.isFirstChange())) {
1245
+ if (this.value !== this.valueSubject.value) {
1246
+ this.valueSubject.next(this.value);
1247
+ }
1248
+ }
1243
1249
  this.cdr.detectChanges();
1244
1250
  };
1245
1251
  CounterInputComponent.prototype.ngOnDestroy = function () {
@@ -3496,7 +3502,7 @@
3496
3502
  return RecipeFilters;
3497
3503
  }());
3498
3504
 
3499
- var VERSION = '9.1.1'; // TODO: replace by ##VERSION## and update it in the CI/CD
3505
+ var VERSION = '9.1.3'; // TODO: replace by ##VERSION## and update it in the CI/CD
3500
3506
 
3501
3507
  /**
3502
3508
  * Analytics library cannot refer to "this." so we use a global variable
@@ -4866,6 +4872,7 @@
4866
4872
  this.closeModalOnSelected = false;
4867
4873
  this.showStoreLocatorWarning = new rxjs.BehaviorSubject(false);
4868
4874
  this.showNoSupplierOnboarding = new rxjs.BehaviorSubject(false);
4875
+ this.changePosAfterWarnConfirm = true;
4869
4876
  this.storeLocatorOpened$.subscribe(function (opened) {
4870
4877
  if (opened && _this.storeLocatorOpenedTimestamp !== 0) {
4871
4878
  _this.storeLocatorOpenedTimestamp = Date.now();
@@ -4882,7 +4889,8 @@
4882
4889
  this.selectedSupplierName = e.detail.supplierName;
4883
4890
  this.storeLocatorEventTrace = eventTrace;
4884
4891
  // The following check is supposed to be temporary TODO remove
4885
- if (/Mobi|Android|iPhone/i.test(navigator.userAgent) && e.detail.supplierId === '7') {
4892
+ if (this.isStoreLocatorWarningNeeded(e.detail.supplierId)) {
4893
+ this.changePosAfterWarnConfirm = true;
4886
4894
  // Current device is a mobile device and the chosen supplier has not deactivated deep links
4887
4895
  this.showStoreLocatorWarning.next(true);
4888
4896
  }
@@ -4890,6 +4898,9 @@
4890
4898
  this.changePos();
4891
4899
  }
4892
4900
  };
4901
+ StoreLocatorService.prototype.isStoreLocatorWarningNeeded = function (supplierId) {
4902
+ return /Mobi|Android|iPhone/i.test(navigator.userAgent) && supplierId === '7';
4903
+ };
4893
4904
  StoreLocatorService.prototype.changePos = function () {
4894
4905
  var _this = this;
4895
4906
  this.subscriptions.push(this.posService.loadPos(this.selectedPosId).pipe(operators.skipWhile(function (pos) { return !pos || pos.id !== _this.selectedPosId; }), operators.switchMap(function (pos) {
@@ -5197,6 +5208,19 @@
5197
5208
  return recipes.data;
5198
5209
  }));
5199
5210
  };
5211
+ RecipesService.prototype.searchRecipeByExtId = function (recipeExtId) {
5212
+ var _this = this;
5213
+ var url = MIAM_API_HOST$2 + "recipes/external/" + recipeExtId;
5214
+ return this.http.get(url).pipe(operators.map(function (response) {
5215
+ var _a;
5216
+ if (((_a = response.data) === null || _a === void 0 ? void 0 : _a.attributes['ext-id']) === recipeExtId) {
5217
+ var recipe = _this.new();
5218
+ recipe.fill(response);
5219
+ return recipe;
5220
+ }
5221
+ return null;
5222
+ }));
5223
+ };
5200
5224
  RecipesService.prototype.getPricing = function (recipeId, posId, pricebookKey, serves) {
5201
5225
  if (serves === void 0) { serves = null; }
5202
5226
  if (!recipeId) {
@@ -5318,6 +5342,22 @@
5318
5342
  };
5319
5343
  return this.get(recipeId, params);
5320
5344
  };
5345
+ RecipesService.prototype.search = function (name, filters, page, include, sort) {
5346
+ var _this = this;
5347
+ var url = MIAM_API_HOST$2 + ("recipes/search?name=" + name);
5348
+ url += "&page[size]=" + (page.size || 20) + "&page[number]=" + (page.number || 1) + "&partner=" + filters.partner;
5349
+ filters.statuses.forEach(function (status) { return url += "&recipe_status_ids[]=" + status; });
5350
+ url += filters.types.length ? "&filter[recipe_type_id]=" + filters.types.join(',') : '';
5351
+ url += filters.providers.length ? "&filter[recipe_provider_id]=" + filters.providers.join(',') : '';
5352
+ url += filters.packages.length ? "&filter[packages]=" + filters.packages.join(',') : '';
5353
+ url += include.length ? "&include=" + include.join(',') : '';
5354
+ url += sort ? "&sort=" + sort : '';
5355
+ return this.http.get(url, {}).pipe(operators.map(function (returnedRecipes) {
5356
+ var recipes = _this.newCollection();
5357
+ recipes.fill(returnedRecipes);
5358
+ return recipes;
5359
+ }));
5360
+ };
5321
5361
  // DEPRECATED / use TTL instead
5322
5362
  RecipesService.prototype.getOrFetch = function (recipeId) {
5323
5363
  var recipe = this.recipes.find(function (r) { return r.id === recipeId; });
@@ -5325,7 +5365,7 @@
5325
5365
  return rxjs.of(recipe);
5326
5366
  }
5327
5367
  else {
5328
- return this.get(recipeId, { fields: { recipe: ['number-of-guests'] } }).pipe(operators.skipWhile(function (r) { return r.is_loading; }));
5368
+ return this.get(recipeId, { fields: { recipes: ['number-of-guests', 'media-url'] } }).pipe(operators.skipWhile(function (r) { return r.is_loading; }));
5329
5369
  }
5330
5370
  };
5331
5371
  /**
@@ -12697,9 +12737,8 @@
12697
12737
  var _this = this;
12698
12738
  var _a, _b;
12699
12739
  if (!(((_a = this.recipeId) === null || _a === void 0 ? void 0 : _a.length) > 0) && ((_b = this.recipeExtId) === null || _b === void 0 ? void 0 : _b.length) > 0) {
12700
- return this.recipesService.all({ remotefilter: { 'ext-id': this.recipeExtId, active: 'true,false' } }).pipe(operators.tap(function (response) {
12701
- var _a;
12702
- _this.recipeId = ((_a = response.data[0]) === null || _a === void 0 ? void 0 : _a.attributes['ext-id']) === _this.recipeExtId ? response.data[0].id : null;
12740
+ return this.recipesService.searchRecipeByExtId(this.recipeExtId).pipe(operators.tap(function (response) {
12741
+ _this.recipeId = (response === null || response === void 0 ? void 0 : response.id) || null;
12703
12742
  _this.cdr.detectChanges();
12704
12743
  }));
12705
12744
  }
@@ -12770,7 +12809,7 @@
12770
12809
  this.pricing = new RecipePricing({
12771
12810
  price: parseFloat(recipeLine.price),
12772
12811
  serves: recipeLine.count,
12773
- price_per_serve: parseFloat(recipeLine.price) / recipeLine.count,
12812
+ 'price-per-serve': parseFloat(recipeLine.price) / recipeLine.count,
12774
12813
  'discounted-ingredients-count': fetchedPrice['discounted-ingredients-count']
12775
12814
  });
12776
12815
  this.format();
@@ -12780,7 +12819,7 @@
12780
12819
  return rxjs.of(this.pricing);
12781
12820
  };
12782
12821
  RecipePricingComponent.prototype.format = function () {
12783
- var values = this.pricing.price_per_serve.toFixed(2).toString().split('.');
12822
+ var values = this.pricing['price-per-serve'].toFixed(2).toString().split('.');
12784
12823
  this.integerPart = values[0];
12785
12824
  this.decimalPart = values.length === 2 ? values[1] : '00';
12786
12825
  this.total = this.pricing.price.toFixed(2);
@@ -16659,7 +16698,7 @@
16659
16698
  }
16660
16699
  return this.recipesService.get(this.line.id, {
16661
16700
  include: ['ingredients'],
16662
- fields: { recipe: ['number-of-guests'], ingredients: ['name', 'quantity', 'unit'] }
16701
+ fields: { recipes: ['number-of-guests'], ingredients: ['name', 'quantity', 'unit'] }
16663
16702
  }).pipe(operators.switchMap(function (recipe) {
16664
16703
  _this.legacyRecipe = recipe;
16665
16704
  var requests = recipe.relationships.ingredients.data.map(function (ing) { return _this.basketsService.basketEntryFromIngredient(ing.id, _this.line.count).pipe(operators.map(function (entry) {
@@ -20234,7 +20273,7 @@
20234
20273
  }));
20235
20274
  }
20236
20275
  else if (!this.recipe && this.recipeExtId) {
20237
- this.subscriptions.push(this.searchRecipeByExtId().subscribe(function (result) {
20276
+ this.subscriptions.push(this.recipeService.searchRecipeByExtId(this.recipeExtId).subscribe(function (result) {
20238
20277
  _this.recipe = result;
20239
20278
  if (!result) {
20240
20279
  _this.hidden.emit();
@@ -20277,10 +20316,6 @@
20277
20316
  // Until supplier ids are the same as the provider ids we use the origin to determine the provider on which we filter
20278
20317
  return this.contextService.origin.pipe(operators.skipWhile(function (origin) { return !origin; }), operators.take(1), operators.switchMap(function (origin) { return _this.recipeService.all({ remotefilter: { recipe_provider_id: origin, search: _this.recipeName } }).pipe(operators.map(function (response) { var _a; return ((_a = response.data[0]) === null || _a === void 0 ? void 0 : _a.attributes.title) === _this.recipeName ? response.data[0] : null; })); }));
20279
20318
  };
20280
- RecipeCardCtaComponent.prototype.searchRecipeByExtId = function () {
20281
- var _this = this;
20282
- return this.recipeService.all({ remotefilter: { 'ext-id': this.recipeExtId } }).pipe(operators.map(function (response) { var _a; return ((_a = response.data[0]) === null || _a === void 0 ? void 0 : _a.attributes['ext-id']) === _this.recipeExtId ? response.data[0] : null; }));
20283
- };
20284
20319
  RecipeCardCtaComponent.prototype.currentPath = function () {
20285
20320
  return '';
20286
20321
  };
@@ -20307,7 +20342,7 @@
20307
20342
  return RecipeCardCtaComponent;
20308
20343
  }(EventTracerComponent));
20309
20344
  RecipeCardCtaComponent.ɵfac = function RecipeCardCtaComponent_Factory(t) { return new (t || RecipeCardCtaComponent)(i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(ToasterService)); };
20310
- RecipeCardCtaComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeCardCtaComponent, selectors: [["ng-miam-recipe-card-cta"]], inputs: { recipeName: "recipeName", recipeExtId: "recipeExtId", recipe: "recipe", serves: "serves", previewAllowed: "previewAllowed", helpButtonAllowed: "helpButtonAllowed", displayGuests: "displayGuests" }, outputs: { displayed: "displayed", clicked: "clicked", hidden: "hidden" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "miam-recipe-card-cta", 4, "ngIf"], [1, "miam-recipe-card-cta"], [1, "miam-ds-button", 3, "disabled", "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["seeIngredients", ""], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/InCart_primary.svg", "alt", "see ingredients"]], template: function RecipeCardCtaComponent_Template(rf, ctx) {
20345
+ RecipeCardCtaComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeCardCtaComponent, selectors: [["ng-miam-recipe-card-cta"]], inputs: { recipeName: "recipeName", recipeExtId: "recipeExtId", recipe: "recipe", serves: "serves", previewAllowed: "previewAllowed", helpButtonAllowed: "helpButtonAllowed", displayGuests: "displayGuests" }, outputs: { displayed: "displayed", clicked: "clicked", hidden: "hidden" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "miam-recipe-card-cta", 4, "ngIf"], [1, "miam-recipe-card-cta"], [1, "miam-recipe-card-cta__button", "miam-ds-button", 3, "disabled", "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["seeIngredients", ""], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/InCart_primary.svg", "alt", "see ingredients"]], template: function RecipeCardCtaComponent_Template(rf, ctx) {
20311
20346
  if (rf & 1) {
20312
20347
  i0__namespace.ɵɵtemplate(0, RecipeCardCtaComponent_div_0_Template, 6, 10, "div", 0);
20313
20348
  }
@@ -23965,9 +24000,10 @@
23965
24000
  return rxjs.of([]);
23966
24001
  }
23967
24002
  })).subscribe(function (tags) {
23968
- var _a;
23969
- _this.suggestedTags = tags.data;
23970
- _this.notFound = ((_a = _this.suggestedTags) === null || _a === void 0 ? void 0 : _a.length) === 0;
24003
+ var _a, _b;
24004
+ _this.suggestedTags = (_a = tags === null || tags === void 0 ? void 0 : tags.data) === null || _a === void 0 ? void 0 : _a.filter(function (tag) { return tag.attributes['tag-type-id'] === 'ingredient_category' ||
24005
+ tag.attributes['tag-type-id'] === 'ingredientsdefinition'; });
24006
+ _this.notFound = ((_b = _this.suggestedTags) === null || _b === void 0 ? void 0 : _b.length) === 0;
23971
24007
  _this.cdr.detectChanges();
23972
24008
  }));
23973
24009
  };
@@ -24418,10 +24454,12 @@
24418
24454
  this.preferencesService.updatePreferences();
24419
24455
  this.preferencesChanged.emit();
24420
24456
  if (this.contextService.isPreferencesSSR) {
24421
- this.updateFiltersInCache();
24457
+ this.updateFiltersInCache(true);
24458
+ }
24459
+ else {
24460
+ this.contextService.preferencesChanged.emit();
24461
+ this.close();
24422
24462
  }
24423
- this.contextService.preferencesChanged.emit();
24424
- this.close();
24425
24463
  };
24426
24464
  PreferencesComponent.prototype.close = function () {
24427
24465
  this.isOpen = false;
@@ -24441,16 +24479,21 @@
24441
24479
  PreferencesComponent.prototype.whitelistedTags = function (tags) {
24442
24480
  return tags.filter(function (tag) { return environment$1.tagsWhitelist.includes(tag.id); });
24443
24481
  };
24444
- PreferencesComponent.prototype.updateFiltersInCache = function () {
24482
+ PreferencesComponent.prototype.updateFiltersInCache = function (closeModal) {
24483
+ var _this = this;
24484
+ if (closeModal === void 0) { closeModal = false; }
24445
24485
  var filters = new RecipeFilters();
24446
24486
  var allFilters = this.preferencesService.addPreferencesToRemoteFilters(filters, true);
24447
24487
  var filtersToAdd = Object.assign({ exclude_tags: allFilters.exclude_tags, include_tags: allFilters.include_tags }, (this.preferencesService.guests !== 4 && { guests: this.preferencesService.guests }));
24448
- if (filtersToAdd.exclude_tags || filtersToAdd.include_tags || filtersToAdd.guests) {
24449
- this.preferencesService.sendCacheRequest('set', 'preferences', filtersToAdd).subscribe();
24450
- }
24451
- else {
24452
- this.preferencesService.sendCacheRequest('remove', 'preferences').subscribe();
24453
- }
24488
+ var sendRequest = Object.keys(filtersToAdd).length > 0
24489
+ ? this.preferencesService.sendCacheRequest('set', 'preferences', filtersToAdd)
24490
+ : this.preferencesService.sendCacheRequest('remove', 'preferences');
24491
+ sendRequest.subscribe(function () {
24492
+ if (closeModal) {
24493
+ _this.contextService.preferencesChanged.emit();
24494
+ _this.close();
24495
+ }
24496
+ });
24454
24497
  };
24455
24498
  return PreferencesComponent;
24456
24499
  }(EventTracerComponent));
@@ -24528,7 +24571,7 @@
24528
24571
  else {
24529
24572
  i18n_16 = $localize(templateObject_9$3 || (templateObject_9$3 = __makeTemplateObject([":\u241Fd52eb7599c75829bf96401d33dfdad4f9857822b\u241F4160637687093543290:Appliquer"], [":\u241Fd52eb7599c75829bf96401d33dfdad4f9857822b\u241F4160637687093543290:Appliquer"])));
24530
24573
  }
24531
- return [["modalStyle", "right", 3, "noHeaderMode", "display", "close"], [1, "miam-preferences"], [1, "miam-preferences__header"], [4, "ngIf"], ["class", "miam-preferences_nav-and-title", 4, "ngIf"], [1, "miam-ds-button", "ghost", "square", "miam-preferences__back-button", 3, "click"], ["alt", "go back", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", 1, "miam-preferences__back-image"], [1, "miam-ds-text", "size-l", "weight-xxl", "miam-preferences__title"], i18n_0, [1, "miam-ds-button", "ghost", "square", "miam-preferences__close-button", 3, "click"], ["alt", "close modal", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-preferences__close-image"], [1, "miam-preferences_nav-and-title"], [1, "miam-ds-button", "ghost", "square", "miam-preferences__search-back-button", 3, "click"], i18n_2, [1, "miam-preferences__guests"], [1, "miam-ds-text", "miam-preferences_guest-label"], i18n_4, [1, "miam-preferences_guest-counter", 3, "value", "valueChange"], [1, "miam-preferences__diet-section", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-ds-text", "weight-xl"], i18n_6, [1, "miam-preferences__list"], ["class", "miam-preferences__list__item miam-ds-checkbox", 3, "click", 4, "ngFor", "ngForOf"], [1, "miam-preferences__dislikes-section", 3, "isCollapsed", "isCollapsedChange"], i18n_8, ["class", "miam-ds-badge miam-preferences__badge", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "miam-ds-badge", "miam-preferences__badge", 3, "click"], [1, "miam-preferences__badge_label"], i18n_10, ["alt", "add dislikes", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/plus-neutral-black.svg"], [1, "miam-preferences__equipments-section", 3, "isCollapsed", "isCollapsedChange"], i18n_12, [1, "miam-preferences__footer"], [1, "miam-ds-button", "secondary", "miam-preferences__footer__reset", 3, "click"], i18n_14, [1, "miam-ds-button", "primary", "miam-preferences__footer__recipes", 3, "click"], i18n_16, [1, "miam-preferences__list__item", "miam-ds-checkbox", 3, "click"], [1, "miam-ds-text", "miam-preferences__list__item__name"], ["type", "checkbox", 3, "checked"], [1, "miam-ds-badge", "miam-preferences__badge", 3, "ngClass", "click"], ["class", "miam-preferences__remove-tag", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg", 3, "alt", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg", 1, "miam-preferences__remove-tag", 3, "alt"], [1, "miam-preferences__list__item__name"], [3, "backAndReload"]];
24574
+ return [["modalStyle", "right", 1, "miam-preferences-modal", 3, "noHeaderMode", "display", "close"], [1, "miam-preferences"], [1, "miam-preferences__header"], [4, "ngIf"], ["class", "miam-preferences_nav-and-title", 4, "ngIf"], [1, "miam-ds-button", "ghost", "square", "miam-preferences__back-button", 3, "click"], ["alt", "go back", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", 1, "miam-preferences__back-image"], [1, "miam-ds-text", "size-l", "weight-xxl", "miam-preferences__title"], i18n_0, [1, "miam-ds-button", "ghost", "square", "miam-preferences__close-button", 3, "click"], ["alt", "close modal", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-preferences__close-image"], [1, "miam-preferences_nav-and-title"], [1, "miam-ds-button", "ghost", "square", "miam-preferences__search-back-button", 3, "click"], i18n_2, [1, "miam-preferences__guests"], [1, "miam-ds-text", "miam-preferences_guest-label"], i18n_4, [1, "miam-preferences_guest-counter", 3, "value", "valueChange"], [1, "miam-preferences__diet-section", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-ds-text", "weight-xl"], i18n_6, [1, "miam-preferences__list"], ["class", "miam-preferences__list__item miam-ds-checkbox", 3, "click", 4, "ngFor", "ngForOf"], [1, "miam-preferences__dislikes-section", 3, "isCollapsed", "isCollapsedChange"], i18n_8, ["class", "miam-ds-badge miam-preferences__badge", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], [1, "miam-ds-badge", "miam-preferences__badge", 3, "click"], [1, "miam-preferences__badge_label"], i18n_10, ["alt", "add dislikes", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/plus-neutral-black.svg"], [1, "miam-preferences__equipments-section", 3, "isCollapsed", "isCollapsedChange"], i18n_12, [1, "miam-preferences__footer"], [1, "miam-ds-button", "secondary", "miam-preferences__footer__reset", 3, "click"], i18n_14, [1, "miam-ds-button", "primary", "miam-preferences__footer__recipes", 3, "click"], i18n_16, [1, "miam-preferences__list__item", "miam-ds-checkbox", 3, "click"], [1, "miam-ds-text", "miam-preferences__list__item__name"], ["type", "checkbox", 3, "checked"], [1, "miam-ds-badge", "miam-preferences__badge", 3, "ngClass", "click"], ["class", "miam-preferences__remove-tag", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg", 3, "alt", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg", 1, "miam-preferences__remove-tag", 3, "alt"], [1, "miam-preferences__list__item__name"], [3, "backAndReload"]];
24532
24575
  }, template: function PreferencesComponent_Template(rf, ctx) {
24533
24576
  if (rf & 1) {
24534
24577
  i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 0);
@@ -24935,7 +24978,7 @@
24935
24978
  i0__namespace.ɵɵlistener("filterChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_filterChanged_8_listener($event) { i0__namespace.ɵɵrestoreView(_r61_1); var ctx_r62 = i0__namespace.ɵɵnextContext(); return ctx_r62.updateFilters($event); })("filterCollapsed", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_filterCollapsed_8_listener() { i0__namespace.ɵɵrestoreView(_r61_1); var ctx_r63 = i0__namespace.ɵɵnextContext(); return ctx_r63.onFilterCollapsed(); })("preferencesChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_preferencesChanged_8_listener() { i0__namespace.ɵɵrestoreView(_r61_1); var ctx_r64 = i0__namespace.ɵɵnextContext(); return ctx_r64.reloadPackages(); });
24936
24979
  i0__namespace.ɵɵelementEnd();
24937
24980
  i0__namespace.ɵɵelementStart(9, "ng-miam-preferences", 12);
24938
- i0__namespace.ɵɵlistener("isOpenChange", function RecipeCatalogComponent_div_2_Template_ng_miam_preferences_isOpenChange_9_listener($event) { i0__namespace.ɵɵrestoreView(_r61_1); var ctx_r65 = i0__namespace.ɵɵnextContext(); return ctx_r65.isPreferenceModalOpen = $event; })("preferencesChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_preferences_preferencesChanged_9_listener() { i0__namespace.ɵɵrestoreView(_r61_1); var ctx_r66 = i0__namespace.ɵɵnextContext(); ctx_r66.updateFilters(ctx_r66.filters); return ctx_r66.reloadPackages(); });
24981
+ i0__namespace.ɵɵlistener("isOpenChange", function RecipeCatalogComponent_div_2_Template_ng_miam_preferences_isOpenChange_9_listener($event) { i0__namespace.ɵɵrestoreView(_r61_1); var ctx_r65 = i0__namespace.ɵɵnextContext(); return ctx_r65.isPreferenceModalOpen = $event; })("preferencesChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_preferences_preferencesChanged_9_listener() { i0__namespace.ɵɵrestoreView(_r61_1); var ctx_r66 = i0__namespace.ɵɵnextContext(); ctx_r66.updateFilters(ctx_r66.filters, false); return ctx_r66.reloadPackages(); });
24939
24982
  i0__namespace.ɵɵelementEnd();
24940
24983
  i0__namespace.ɵɵtemplate(10, RecipeCatalogComponent_div_2_ng_template_10_Template, 1, 1, "ng-template", null, 13, i0__namespace.ɵɵtemplateRefExtractor);
24941
24984
  i0__namespace.ɵɵelementEnd();
@@ -25115,9 +25158,10 @@
25115
25158
  this.filters.search = '';
25116
25159
  this.filters.additionalFilters = null;
25117
25160
  };
25118
- RecipeCatalogComponent.prototype.updateFilters = function (filters) {
25161
+ RecipeCatalogComponent.prototype.updateFilters = function (filters, forceListView) {
25162
+ if (forceListView === void 0) { forceListView = true; }
25119
25163
  this.filters = filters.copy(); // necessary to trigger child component change
25120
- this.forceListView = true;
25164
+ this.forceListView = forceListView;
25121
25165
  this.filterToRemove = undefined;
25122
25166
  this.cdr.detectChanges();
25123
25167
  this.setStickyObserver();
@@ -26448,25 +26492,36 @@
26448
26492
  })();
26449
26493
  var templateObject_1$7, templateObject_2$5;
26450
26494
 
26495
+ function StoreLocatorLinkComponent_div_0_span_1_img_1_Template(rf, ctx) {
26496
+ if (rf & 1) {
26497
+ var _r4_1 = i0__namespace.ɵɵgetCurrentView();
26498
+ i0__namespace.ɵɵelementStart(0, "img", 8);
26499
+ i0__namespace.ɵɵlistener("click", function StoreLocatorLinkComponent_div_0_span_1_img_1_Template_img_click_0_listener() { i0__namespace.ɵɵrestoreView(_r4_1); var ctx_r3 = i0__namespace.ɵɵnextContext(3); return ctx_r3.showTooltip(); });
26500
+ i0__namespace.ɵɵelementEnd();
26501
+ }
26502
+ }
26451
26503
  function StoreLocatorLinkComponent_div_0_span_1_Template(rf, ctx) {
26452
26504
  if (rf & 1) {
26453
26505
  i0__namespace.ɵɵelementStart(0, "span", 6);
26454
- i0__namespace.ɵɵtext(1);
26506
+ i0__namespace.ɵɵtemplate(1, StoreLocatorLinkComponent_div_0_span_1_img_1_Template, 1, 0, "img", 7);
26507
+ i0__namespace.ɵɵtext(2);
26455
26508
  i0__namespace.ɵɵelementEnd();
26456
26509
  }
26457
26510
  if (rf & 2) {
26458
26511
  var ctx_r1 = i0__namespace.ɵɵnextContext(2);
26459
26512
  i0__namespace.ɵɵadvance(1);
26513
+ i0__namespace.ɵɵproperty("ngIf", ctx_r1.showIconTooltip);
26514
+ i0__namespace.ɵɵadvance(1);
26460
26515
  i0__namespace.ɵɵtextInterpolate2(" ", ctx_r1.currentPos.relationships.supplier.data.attributes.name, " - ", ctx_r1.currentPos.attributes.name, " ");
26461
26516
  }
26462
26517
  }
26463
26518
  function StoreLocatorLinkComponent_div_0_Template(rf, ctx) {
26464
26519
  if (rf & 1) {
26465
- var _r3_1 = i0__namespace.ɵɵgetCurrentView();
26520
+ var _r6_1 = i0__namespace.ɵɵgetCurrentView();
26466
26521
  i0__namespace.ɵɵelementStart(0, "div", 1);
26467
- i0__namespace.ɵɵtemplate(1, StoreLocatorLinkComponent_div_0_span_1_Template, 2, 2, "span", 2);
26522
+ i0__namespace.ɵɵtemplate(1, StoreLocatorLinkComponent_div_0_span_1_Template, 3, 3, "span", 2);
26468
26523
  i0__namespace.ɵɵelementStart(2, "button", 3);
26469
- i0__namespace.ɵɵlistener("click", function StoreLocatorLinkComponent_div_0_Template_button_click_2_listener() { i0__namespace.ɵɵrestoreView(_r3_1); var ctx_r2 = i0__namespace.ɵɵnextContext(); return ctx_r2.storeLocatorService.openStoreLocator(); });
26524
+ i0__namespace.ɵɵlistener("click", function StoreLocatorLinkComponent_div_0_Template_button_click_2_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.storeLocatorService.openStoreLocator(); });
26470
26525
  i0__namespace.ɵɵelement(3, "img", 4);
26471
26526
  i0__namespace.ɵɵelementStart(4, "span");
26472
26527
  i0__namespace.ɵɵi18n(5, 5);
@@ -26487,11 +26542,13 @@
26487
26542
  this.suppliersService = suppliersService;
26488
26543
  this.cdr = cdr;
26489
26544
  this.subscriptions = [];
26545
+ this.showIconTooltip = false;
26490
26546
  }
26491
26547
  StoreLocatorLinkComponent.prototype.ngOnInit = function () {
26492
26548
  var _this = this;
26493
26549
  this.subscriptions.push(this.posService.pos$.subscribe(function (pos) {
26494
26550
  _this.currentPos = pos;
26551
+ _this.setTooltipVisibility();
26495
26552
  _this.cdr.detectChanges();
26496
26553
  }));
26497
26554
  };
@@ -26499,6 +26556,15 @@
26499
26556
  this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
26500
26557
  this.storeLocatorService.unsubscribe();
26501
26558
  };
26559
+ StoreLocatorLinkComponent.prototype.setTooltipVisibility = function () {
26560
+ var _a;
26561
+ this.showIconTooltip = this.storeLocatorService.isStoreLocatorWarningNeeded((_a = this.currentPos) === null || _a === void 0 ? void 0 : _a.relationships.supplier.data.id);
26562
+ };
26563
+ StoreLocatorLinkComponent.prototype.showTooltip = function () {
26564
+ this.storeLocatorService.changePosAfterWarnConfirm = false;
26565
+ this.storeLocatorService.showStoreLocatorWarning.next(true);
26566
+ this.cdr.detectChanges();
26567
+ };
26502
26568
  return StoreLocatorLinkComponent;
26503
26569
  }());
26504
26570
  StoreLocatorLinkComponent.ɵfac = function StoreLocatorLinkComponent_Factory(t) { return new (t || StoreLocatorLinkComponent)(i0__namespace.ɵɵdirectiveInject(StoreLocatorService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
@@ -26511,7 +26577,7 @@
26511
26577
  else {
26512
26578
  i18n_0 = $localize(templateObject_1$6 || (templateObject_1$6 = __makeTemplateObject([":\u241Fc368921f313712ef19fa1f7d05697982582598ef\u241F9004334984468055592:Changer"], [":\u241Fc368921f313712ef19fa1f7d05697982582598ef\u241F9004334984468055592:Changer"])));
26513
26579
  }
26514
- return [["class", "miam-store-locator-link", 4, "ngIf"], [1, "miam-store-locator-link"], ["class", "miam-store-locator-link__store-name miam-ds-text weight-xl size-s", 4, "ngIf"], [1, "miam-store-locator-link__swap-pos-button", "miam-ds-button", "primary", "reverse", "small", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Swap.svg", "alt", "swap point of sale", 1, "miam-store-locator-link__swap-pos-icon"], i18n_0, [1, "miam-store-locator-link__store-name", "miam-ds-text", "weight-xl", "size-s"]];
26580
+ return [["class", "miam-store-locator-link", 4, "ngIf"], [1, "miam-store-locator-link"], ["class", "miam-store-locator-link__store-name miam-ds-text weight-xl size-s", 4, "ngIf"], [1, "miam-store-locator-link__swap-pos-button", "miam-ds-button", "primary", "reverse", "small", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Swap.svg", "alt", "swap point of sale", 1, "miam-store-locator-link__swap-pos-icon"], i18n_0, [1, "miam-store-locator-link__store-name", "miam-ds-text", "weight-xl", "size-s"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Infos_Primary.svg", "alt", "Info", 3, "click", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Infos_Primary.svg", "alt", "Info", 3, "click"]];
26515
26581
  }, template: function StoreLocatorLinkComponent_Template(rf, ctx) {
26516
26582
  if (rf & 1) {
26517
26583
  i0__namespace.ɵɵtemplate(0, StoreLocatorLinkComponent_div_0_Template, 6, 1, "div", 0);
@@ -26520,7 +26586,7 @@
26520
26586
  if (rf & 2) {
26521
26587
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 1, ctx.posService.waitForPos));
26522
26588
  }
26523
- }, directives: [i2__namespace.NgIf], pipes: [i2__namespace.AsyncPipe], styles: [".miam-store-locator-link{padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--miam-ds-color-primary-100)}.miam-store-locator-link .miam-store-locator-link__swap-pos-button{border-radius:16px;display:flex;gap:8px}.miam-store-locator-link .miam-store-locator-link__swap-pos-button.miam-ds-button.primary.reverse.small{padding:8px 12px}.miam-store-locator-link .miam-store-locator-link__swap-pos-button.miam-ds-button.primary.reverse.small:hover{background-color:var(--miam-ds-color-primary-text);color:var(--miam-ds-color-primary)}"], encapsulation: 2, changeDetection: 0 });
26589
+ }, directives: [i2__namespace.NgIf], pipes: [i2__namespace.AsyncPipe], styles: [".miam-store-locator-link{padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--miam-ds-color-primary-100)}.miam-store-locator-link .miam-store-locator-link__store-name{display:flex}.miam-store-locator-link .miam-store-locator-link__store-name img{margin-right:8px;cursor:pointer}.miam-store-locator-link .miam-store-locator-link__swap-pos-button{border-radius:16px;display:flex;gap:8px}.miam-store-locator-link .miam-store-locator-link__swap-pos-button.miam-ds-button.primary.reverse.small{padding:8px 12px}.miam-store-locator-link .miam-store-locator-link__swap-pos-button.miam-ds-button.primary.reverse.small:hover{background-color:var(--miam-ds-color-primary-text);color:var(--miam-ds-color-primary)}"], encapsulation: 2, changeDetection: 0 });
26524
26590
  (function () {
26525
26591
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(StoreLocatorLinkComponent, [{
26526
26592
  type: i0.Component,
@@ -26936,7 +27002,7 @@
26936
27002
  i0__namespace.ɵɵadvance(1);
26937
27003
  i0__namespace.ɵɵproperty("ngIf", ctx_r18.recipeDetailsService.onlyShowPreparation);
26938
27004
  i0__namespace.ɵɵadvance(1);
26939
- i0__namespace.ɵɵproperty("ngIf", ctx_r18.showPrice());
27005
+ i0__namespace.ɵɵproperty("ngIf", ctx_r18.showPrice() && ctx_r18.isNotLoadingAndNotPreparation);
26940
27006
  }
26941
27007
  }
26942
27008
  function RecipeDetailsComponent_div_0_div_2_Template(rf, ctx) {
@@ -27200,7 +27266,7 @@
27200
27266
  };
27201
27267
  RecipeDetailsComponent.prototype.ngOnChanges = function (changes) {
27202
27268
  var _a;
27203
- if (changes.recipeId && ((_a = this.recipeId) === null || _a === void 0 ? void 0 : _a.length) > 0) {
27269
+ if (changes.recipeId && ((_a = this.recipeId) === null || _a === void 0 ? void 0 : _a.length) > 0 && !(!this.posService.pos$.getValue() && this.contextService.noSupplier)) {
27204
27270
  this.recipeDetailsOpenTimestamp = Date.now();
27205
27271
  this.fetchRecipe(this.recipeId);
27206
27272
  this.cdr.detectChanges();
@@ -29242,7 +29308,9 @@
29242
29308
  this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
29243
29309
  };
29244
29310
  WarningStoreLocatorComponent.prototype.onConfirm = function () {
29245
- this.storeLocatoreService.changePos();
29311
+ if (this.storeLocatoreService.changePosAfterWarnConfirm) {
29312
+ this.storeLocatoreService.changePos();
29313
+ }
29246
29314
  this.storeLocatoreService.showStoreLocatorWarning.next(false);
29247
29315
  };
29248
29316
  return WarningStoreLocatorComponent;