ng-miam 8.8.7 → 8.8.9

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.
@@ -4533,6 +4533,7 @@
4533
4533
  this.storeLocatorOpened$ = new rxjs.BehaviorSubject(false);
4534
4534
  this.newStoreSelected$ = new rxjs.Subject();
4535
4535
  this.closeModalOnSelected = false;
4536
+ this.closeModalOnCancel = false;
4536
4537
  this.showStoreLocatorWarning = new rxjs.BehaviorSubject(false);
4537
4538
  this.showNoSupplierOnboarding = new rxjs.BehaviorSubject(false);
4538
4539
  this.changePosAfterWarnConfirm = true;
@@ -4585,7 +4586,12 @@
4585
4586
  };
4586
4587
  StoreLocatorService.prototype.closeStoreLocator = function () {
4587
4588
  if (this.storeLocatorOpened$.value) {
4588
- this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_LOCATOR_CLOSE, '/locator', { time_passed: (Date.now() - this.storeLocatorOpenedTimestamp) / 1000 });
4589
+ if (this.storeLocatorEventTrace) {
4590
+ this.analyticsService.sendEventWhenReady(this.analyticsService.EVENT_LOCATOR_CLOSE, '/locator', { time_passed: (Date.now() - this.storeLocatorOpenedTimestamp) / 1000 });
4591
+ }
4592
+ else {
4593
+ this.closeModalOnCancel = true;
4594
+ }
4589
4595
  this.storeLocatorOpenedTimestamp = 0;
4590
4596
  }
4591
4597
  this.storeLocatorOpened$.next(false);
@@ -6665,6 +6671,7 @@
6665
6671
  },
6666
6672
  getByAddress: this.posService.getByAddress.bind(this.posService),
6667
6673
  getByCoordinates: this.posService.getByCoordinates.bind(this.posService),
6674
+ openNoSupplierOnboarding: function () { return _this.storeLocatorService.showNoSupplierOnboarding.next(true); }
6668
6675
  },
6669
6676
  recipes: {
6670
6677
  hidden: this.recipesService.hidden,
@@ -8234,7 +8241,8 @@
8234
8241
  BasketTransferService.prototype.navigateTotranferUrl = function () {
8235
8242
  var transferUrl = sessionStorage.getItem('_miam/transferUrl');
8236
8243
  if (transferUrl) {
8237
- window.open(transferUrl, '_blank');
8244
+ // Apparently Safari blocks window.open(..., "_blank") if called in an async function and setTimeout makes it run on the main thread
8245
+ setTimeout(function () { return window.open(transferUrl, '_blank'); });
8238
8246
  }
8239
8247
  };
8240
8248
  BasketTransferService.prototype.abortTransfer = function () {
@@ -17805,36 +17813,32 @@
17805
17813
  }] });
17806
17814
  })();
17807
17815
 
17808
- function RecipeCardComponent_div_1_div_7_ng_template_1_ng_miam_like_button_0_Template(rf, ctx) {
17809
- if (rf & 1) {
17810
- i0__namespace.ɵɵelement(0, "ng-miam-like-button", 30);
17811
- }
17812
- if (rf & 2) {
17813
- var ctx_r13 = i0__namespace.ɵɵnextContext(4);
17814
- i0__namespace.ɵɵproperty("recipe", ctx_r13.recipe)("originTrace", ctx_r13.eventTrace());
17815
- }
17816
- }
17817
- function RecipeCardComponent_div_1_div_7_ng_template_1_Template(rf, ctx) {
17816
+ function RecipeCardComponent_div_1_div_7_ng_miam_like_button_1_Template(rf, ctx) {
17818
17817
  if (rf & 1) {
17819
- i0__namespace.ɵɵtemplate(0, RecipeCardComponent_div_1_div_7_ng_template_1_ng_miam_like_button_0_Template, 1, 2, "ng-miam-like-button", 24);
17820
- i0__namespace.ɵɵpipe(1, "async");
17818
+ i0__namespace.ɵɵelement(0, "ng-miam-like-button", 29);
17821
17819
  }
17822
17820
  if (rf & 2) {
17823
- var ctx_r12 = i0__namespace.ɵɵnextContext(3);
17824
- i0__namespace.ɵɵproperty("ngIf", !ctx_r12.displayLikesBottom && i0__namespace.ɵɵpipeBind1(1, 1, ctx_r12.userService.isLogged$));
17821
+ var ctx_r11 = i0__namespace.ɵɵnextContext(3);
17822
+ i0__namespace.ɵɵproperty("recipe", ctx_r11.recipe)("originTrace", ctx_r11.eventTrace());
17825
17823
  }
17826
17824
  }
17827
17825
  function RecipeCardComponent_div_1_div_7_Template(rf, ctx) {
17828
17826
  if (rf & 1) {
17829
17827
  i0__namespace.ɵɵelementStart(0, "div", 28);
17830
- i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_7_ng_template_1_Template, 2, 3, "ng-template", null, 29, i0__namespace.ɵɵtemplateRefExtractor);
17828
+ i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_7_ng_miam_like_button_1_Template, 1, 2, "ng-miam-like-button", 24);
17829
+ i0__namespace.ɵɵpipe(2, "async");
17831
17830
  i0__namespace.ɵɵelementEnd();
17832
17831
  }
17832
+ if (rf & 2) {
17833
+ var ctx_r1 = i0__namespace.ɵɵnextContext(2);
17834
+ i0__namespace.ɵɵadvance(1);
17835
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r1.displayLikesBottom && i0__namespace.ɵɵpipeBind1(2, 1, ctx_r1.userService.isLogged$));
17836
+ }
17833
17837
  }
17834
17838
  function RecipeCardComponent_div_1_div_8_Template(rf, ctx) {
17835
17839
  if (rf & 1) {
17836
- i0__namespace.ɵɵelementStart(0, "div", 31);
17837
- i0__namespace.ɵɵelement(1, "img", 32);
17840
+ i0__namespace.ɵɵelementStart(0, "div", 30);
17841
+ i0__namespace.ɵɵelement(1, "img", 31);
17838
17842
  i0__namespace.ɵɵelementEnd();
17839
17843
  }
17840
17844
  if (rf & 2) {
@@ -17845,38 +17849,38 @@
17845
17849
  }
17846
17850
  function RecipeCardComponent_div_1_div_9_Template(rf, ctx) {
17847
17851
  if (rf & 1) {
17848
- i0__namespace.ɵɵelementStart(0, "div", 33);
17849
- i0__namespace.ɵɵelement(1, "img", 34);
17852
+ i0__namespace.ɵɵelementStart(0, "div", 32);
17853
+ i0__namespace.ɵɵelement(1, "img", 33);
17850
17854
  i0__namespace.ɵɵelementEnd();
17851
17855
  }
17852
17856
  }
17853
17857
  function RecipeCardComponent_div_1_div_19_div_5_Template(rf, ctx) {
17854
17858
  if (rf & 1) {
17855
- i0__namespace.ɵɵelementStart(0, "div", 40);
17859
+ i0__namespace.ɵɵelementStart(0, "div", 39);
17856
17860
  i0__namespace.ɵɵtext(1);
17857
17861
  i0__namespace.ɵɵelementEnd();
17858
17862
  }
17859
17863
  if (rf & 2) {
17860
- var ctx_r14 = i0__namespace.ɵɵnextContext(3);
17864
+ var ctx_r12 = i0__namespace.ɵɵnextContext(3);
17861
17865
  i0__namespace.ɵɵadvance(1);
17862
- i0__namespace.ɵɵtextInterpolate1(" + ", ctx_r14.recipe.modifiedIngredients.length - 2, " ");
17866
+ i0__namespace.ɵɵtextInterpolate1(" + ", ctx_r12.recipe.modifiedIngredients.length - 2, " ");
17863
17867
  }
17864
17868
  }
17865
17869
  function RecipeCardComponent_div_1_div_19_Template(rf, ctx) {
17866
17870
  if (rf & 1) {
17867
- var _r16_1 = i0__namespace.ɵɵgetCurrentView();
17868
- i0__namespace.ɵɵelementStart(0, "div", 35);
17869
- i0__namespace.ɵɵelementStart(1, "div", 36);
17870
- i0__namespace.ɵɵelementStart(2, "img", 37);
17871
- i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_div_19_Template_img_error_2_listener($event) { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ($event.target["src"] = ctx_r15.contextService.defaultIngredientPicture); });
17871
+ var _r14_1 = i0__namespace.ɵɵgetCurrentView();
17872
+ i0__namespace.ɵɵelementStart(0, "div", 34);
17873
+ i0__namespace.ɵɵelementStart(1, "div", 35);
17874
+ i0__namespace.ɵɵelementStart(2, "img", 36);
17875
+ i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_div_19_Template_img_error_2_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ($event.target["src"] = ctx_r13.contextService.defaultIngredientPicture); });
17872
17876
  i0__namespace.ɵɵelementEnd();
17873
17877
  i0__namespace.ɵɵelementEnd();
17874
- i0__namespace.ɵɵelementStart(3, "div", 36);
17875
- i0__namespace.ɵɵelementStart(4, "img", 38);
17876
- i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_div_19_Template_img_error_4_listener($event) { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r17 = i0__namespace.ɵɵnextContext(2); return ($event.target["src"] = ctx_r17.contextService.defaultIngredientPicture); });
17878
+ i0__namespace.ɵɵelementStart(3, "div", 35);
17879
+ i0__namespace.ɵɵelementStart(4, "img", 37);
17880
+ i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_div_19_Template_img_error_4_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r15 = i0__namespace.ɵɵnextContext(2); return ($event.target["src"] = ctx_r15.contextService.defaultIngredientPicture); });
17877
17881
  i0__namespace.ɵɵelementEnd();
17878
17882
  i0__namespace.ɵɵelementEnd();
17879
- i0__namespace.ɵɵtemplate(5, RecipeCardComponent_div_1_div_19_div_5_Template, 2, 1, "div", 39);
17883
+ i0__namespace.ɵɵtemplate(5, RecipeCardComponent_div_1_div_19_div_5_Template, 2, 1, "div", 38);
17880
17884
  i0__namespace.ɵɵelementEnd();
17881
17885
  }
17882
17886
  if (rf & 2) {
@@ -17891,39 +17895,39 @@
17891
17895
  }
17892
17896
  function RecipeCardComponent_div_1_div_22_div_1_Template(rf, ctx) {
17893
17897
  if (rf & 1) {
17894
- i0__namespace.ɵɵelementStart(0, "div", 44);
17895
- i0__namespace.ɵɵelement(1, "img", 45);
17896
- i0__namespace.ɵɵelementStart(2, "span", 46);
17898
+ i0__namespace.ɵɵelementStart(0, "div", 43);
17899
+ i0__namespace.ɵɵelement(1, "img", 44);
17900
+ i0__namespace.ɵɵelementStart(2, "span", 45);
17897
17901
  i0__namespace.ɵɵtext(3);
17898
17902
  i0__namespace.ɵɵelementEnd();
17899
17903
  i0__namespace.ɵɵelementEnd();
17900
17904
  }
17901
17905
  if (rf & 2) {
17902
- var ctx_r18 = i0__namespace.ɵɵnextContext(3);
17906
+ var ctx_r16 = i0__namespace.ɵɵnextContext(3);
17903
17907
  i0__namespace.ɵɵadvance(3);
17904
- i0__namespace.ɵɵtextInterpolate(ctx_r18.recipeService.difficultyLevels[ctx_r18.recipe.difficulty - 1].label);
17908
+ i0__namespace.ɵɵtextInterpolate(ctx_r16.recipeService.difficultyLevels[ctx_r16.recipe.difficulty - 1].label);
17905
17909
  }
17906
17910
  }
17907
17911
  function RecipeCardComponent_div_1_div_22_div_2_Template(rf, ctx) {
17908
17912
  if (rf & 1) {
17909
- i0__namespace.ɵɵelementStart(0, "div", 47);
17910
- i0__namespace.ɵɵelement(1, "img", 48);
17911
- i0__namespace.ɵɵelementStart(2, "span", 46);
17913
+ i0__namespace.ɵɵelementStart(0, "div", 46);
17914
+ i0__namespace.ɵɵelement(1, "img", 47);
17915
+ i0__namespace.ɵɵelementStart(2, "span", 45);
17912
17916
  i0__namespace.ɵɵtext(3);
17913
17917
  i0__namespace.ɵɵelementEnd();
17914
17918
  i0__namespace.ɵɵelementEnd();
17915
17919
  }
17916
17920
  if (rf & 2) {
17917
- var ctx_r19 = i0__namespace.ɵɵnextContext(3);
17921
+ var ctx_r17 = i0__namespace.ɵɵnextContext(3);
17918
17922
  i0__namespace.ɵɵadvance(3);
17919
- i0__namespace.ɵɵtextInterpolate(ctx_r19.recipe.totalTime);
17923
+ i0__namespace.ɵɵtextInterpolate(ctx_r17.recipe.totalTime);
17920
17924
  }
17921
17925
  }
17922
17926
  function RecipeCardComponent_div_1_div_22_Template(rf, ctx) {
17923
17927
  if (rf & 1) {
17924
- i0__namespace.ɵɵelementStart(0, "div", 41);
17925
- i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_22_div_1_Template, 4, 1, "div", 42);
17926
- i0__namespace.ɵɵtemplate(2, RecipeCardComponent_div_1_div_22_div_2_Template, 4, 1, "div", 43);
17928
+ i0__namespace.ɵɵelementStart(0, "div", 40);
17929
+ i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_22_div_1_Template, 4, 1, "div", 41);
17930
+ i0__namespace.ɵɵtemplate(2, RecipeCardComponent_div_1_div_22_div_2_Template, 4, 1, "div", 42);
17927
17931
  i0__namespace.ɵɵelementEnd();
17928
17932
  }
17929
17933
  if (rf & 2) {
@@ -17936,8 +17940,8 @@
17936
17940
  }
17937
17941
  function RecipeCardComponent_div_1_div_23_Template(rf, ctx) {
17938
17942
  if (rf & 1) {
17939
- i0__namespace.ɵɵelementStart(0, "div", 49);
17940
- i0__namespace.ɵɵelement(1, "ng-miam-recipe-pricing", 50);
17943
+ i0__namespace.ɵɵelementStart(0, "div", 48);
17944
+ i0__namespace.ɵɵelement(1, "ng-miam-recipe-pricing", 49);
17941
17945
  i0__namespace.ɵɵelementEnd();
17942
17946
  }
17943
17947
  if (rf & 2) {
@@ -17948,7 +17952,7 @@
17948
17952
  }
17949
17953
  function RecipeCardComponent_div_1_ng_miam_like_button_25_Template(rf, ctx) {
17950
17954
  if (rf & 1) {
17951
- i0__namespace.ɵɵelement(0, "ng-miam-like-button", 30);
17955
+ i0__namespace.ɵɵelement(0, "ng-miam-like-button", 29);
17952
17956
  }
17953
17957
  if (rf & 2) {
17954
17958
  var ctx_r7 = i0__namespace.ɵɵnextContext(2);
@@ -17957,9 +17961,9 @@
17957
17961
  }
17958
17962
  function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_27_Template(rf, ctx) {
17959
17963
  if (rf & 1) {
17960
- var _r21_1 = i0__namespace.ɵɵgetCurrentView();
17961
- i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card-cta", 51);
17962
- i0__namespace.ɵɵlistener("displayed", function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_27_Template_ng_miam_recipe_card_cta_displayed_0_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r20 = i0__namespace.ɵɵnextContext(2); return ctx_r20.displayed.emit(); })("clicked", function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_27_Template_ng_miam_recipe_card_cta_clicked_0_listener($event) { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r22 = i0__namespace.ɵɵnextContext(2); return ctx_r22.primaryButtonClicked$.emit($event); });
17964
+ var _r19_1 = i0__namespace.ɵɵgetCurrentView();
17965
+ i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card-cta", 50);
17966
+ i0__namespace.ɵɵlistener("displayed", function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_27_Template_ng_miam_recipe_card_cta_displayed_0_listener() { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(2); return ctx_r18.displayed.emit(); })("clicked", function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_27_Template_ng_miam_recipe_card_cta_clicked_0_listener($event) { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r20 = i0__namespace.ɵɵnextContext(2); return ctx_r20.primaryButtonClicked$.emit($event); });
17963
17967
  i0__namespace.ɵɵelementEnd();
17964
17968
  }
17965
17969
  if (rf & 2) {
@@ -17969,17 +17973,17 @@
17969
17973
  }
17970
17974
  function RecipeCardComponent_div_1_div_28_Template(rf, ctx) {
17971
17975
  if (rf & 1) {
17972
- var _r24_1 = i0__namespace.ɵɵgetCurrentView();
17973
- i0__namespace.ɵɵelementStart(0, "div", 52);
17974
- i0__namespace.ɵɵelementStart(1, "button", 53);
17975
- i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_div_28_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r24_1); var ctx_r23 = i0__namespace.ɵɵnextContext(2); return ctx_r23.openCatalog.emit(); });
17976
+ var _r22_1 = i0__namespace.ɵɵgetCurrentView();
17977
+ i0__namespace.ɵɵelementStart(0, "div", 51);
17978
+ i0__namespace.ɵɵelementStart(1, "button", 52);
17979
+ i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_div_28_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var ctx_r21 = i0__namespace.ɵɵnextContext(2); return ctx_r21.openCatalog.emit(); });
17976
17980
  i0__namespace.ɵɵelementStart(2, "span");
17977
- i0__namespace.ɵɵi18n(3, 54);
17981
+ i0__namespace.ɵɵi18n(3, 53);
17978
17982
  i0__namespace.ɵɵelementEnd();
17979
17983
  i0__namespace.ɵɵelementEnd();
17980
- i0__namespace.ɵɵelementStart(4, "button", 55);
17981
- i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_div_28_Template_button_click_4_listener() { i0__namespace.ɵɵrestoreView(_r24_1); var ctx_r25 = i0__namespace.ɵɵnextContext(2); return ctx_r25.removeFromMealsPlanner.emit(); });
17982
- i0__namespace.ɵɵelement(5, "ng-miam-icon", 56);
17984
+ i0__namespace.ɵɵelementStart(4, "button", 54);
17985
+ i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_div_28_Template_button_click_4_listener() { i0__namespace.ɵɵrestoreView(_r22_1); var ctx_r23 = i0__namespace.ɵɵnextContext(2); return ctx_r23.removeFromMealsPlanner.emit(); });
17986
+ i0__namespace.ɵɵelement(5, "ng-miam-icon", 55);
17983
17987
  i0__namespace.ɵɵelementEnd();
17984
17988
  i0__namespace.ɵɵelementEnd();
17985
17989
  }
@@ -17991,31 +17995,31 @@
17991
17995
  }
17992
17996
  function RecipeCardComponent_div_1_button_29_Template(rf, ctx) {
17993
17997
  if (rf & 1) {
17994
- var _r27_1 = i0__namespace.ɵɵgetCurrentView();
17995
- i0__namespace.ɵɵelementStart(0, "button", 53);
17996
- i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_button_29_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r26 = i0__namespace.ɵɵnextContext(2); return ctx_r26.addToMealsPlanner.emit(ctx_r26.recipe); });
17998
+ var _r25_1 = i0__namespace.ɵɵgetCurrentView();
17999
+ i0__namespace.ɵɵelementStart(0, "button", 52);
18000
+ i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_button_29_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r25_1); var ctx_r24 = i0__namespace.ɵɵnextContext(2); return ctx_r24.addToMealsPlanner.emit(ctx_r24.recipe); });
17997
18001
  i0__namespace.ɵɵelementStart(1, "span");
17998
- i0__namespace.ɵɵi18n(2, 57);
18002
+ i0__namespace.ɵɵi18n(2, 56);
17999
18003
  i0__namespace.ɵɵelementEnd();
18000
18004
  i0__namespace.ɵɵelementEnd();
18001
18005
  }
18002
18006
  }
18003
18007
  function RecipeCardComponent_div_1_Template(rf, ctx) {
18004
18008
  if (rf & 1) {
18005
- var _r29_1 = i0__namespace.ɵɵgetCurrentView();
18009
+ var _r27_1 = i0__namespace.ɵɵgetCurrentView();
18006
18010
  i0__namespace.ɵɵelementStart(0, "div", 2);
18007
- i0__namespace.ɵɵlistener("inViewport", function RecipeCardComponent_div_1_Template_div_inViewport_0_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r28 = i0__namespace.ɵɵnextContext(); return ctx_r28.cardInViewport(); });
18011
+ i0__namespace.ɵɵlistener("inViewport", function RecipeCardComponent_div_1_Template_div_inViewport_0_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r26 = i0__namespace.ɵɵnextContext(); return ctx_r26.cardInViewport(); });
18008
18012
  i0__namespace.ɵɵelementStart(1, "div", 3);
18009
- i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r30 = i0__namespace.ɵɵnextContext(); return ctx_r30.openRecipe(); });
18013
+ i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r28 = i0__namespace.ɵɵnextContext(); return ctx_r28.openRecipe(); });
18010
18014
  i0__namespace.ɵɵelementStart(2, "div", 4);
18011
18015
  i0__namespace.ɵɵelementStart(3, "img", 5);
18012
- i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_Template_img_error_3_listener($event) { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r31 = i0__namespace.ɵɵnextContext(); return ($event.target["src"] = ctx_r31.contextService.defaultRecipePicture); });
18016
+ i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_Template_img_error_3_listener($event) { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r29 = i0__namespace.ɵɵnextContext(); return ($event.target["src"] = ctx_r29.contextService.defaultRecipePicture); });
18013
18017
  i0__namespace.ɵɵelementEnd();
18014
18018
  i0__namespace.ɵɵelementEnd();
18015
18019
  i0__namespace.ɵɵelement(4, "div", 6);
18016
18020
  i0__namespace.ɵɵelementStart(5, "div", 7);
18017
18021
  i0__namespace.ɵɵelementStart(6, "div", 8);
18018
- i0__namespace.ɵɵtemplate(7, RecipeCardComponent_div_1_div_7_Template, 3, 0, "div", 9);
18022
+ i0__namespace.ɵɵtemplate(7, RecipeCardComponent_div_1_div_7_Template, 3, 3, "div", 9);
18019
18023
  i0__namespace.ɵɵtemplate(8, RecipeCardComponent_div_1_div_8_Template, 2, 1, "div", 10);
18020
18024
  i0__namespace.ɵɵtemplate(9, RecipeCardComponent_div_1_div_9_Template, 2, 0, "div", 11);
18021
18025
  i0__namespace.ɵɵelementEnd();
@@ -18035,7 +18039,7 @@
18035
18039
  i0__namespace.ɵɵelementEnd();
18036
18040
  i0__namespace.ɵɵelementEnd();
18037
18041
  i0__namespace.ɵɵelementStart(18, "div", 17);
18038
- i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_18_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r32 = i0__namespace.ɵɵnextContext(); return ctx_r32.openRecipe(); });
18042
+ i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_18_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r30 = i0__namespace.ɵɵnextContext(); return ctx_r30.openRecipe(); });
18039
18043
  i0__namespace.ɵɵtemplate(19, RecipeCardComponent_div_1_div_19_Template, 6, 3, "div", 18);
18040
18044
  i0__namespace.ɵɵelementStart(20, "div", 19);
18041
18045
  i0__namespace.ɵɵelementStart(21, "div", 20);
@@ -18306,7 +18310,7 @@
18306
18310
  else {
18307
18311
  i18n_2 = $localize(templateObject_2$j || (templateObject_2$j = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
18308
18312
  }
18309
- return [["ngMiamInViewport", "", 1, "miam-recipe-card", 3, "condition", "ngClass", "inViewport"], ["class", "miam-recipe-card__container", "ngMiamInViewport", "", 3, "threshold", "debounceTime", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-recipe-card__container", 3, "threshold", "debounceTime", "inViewport"], [1, "miam-recipe-card__top", 3, "click"], [1, "miam-recipe-card__picture"], ["loading", "lazy", 3, "src", "alt", "error"], [1, "miam-recipe-card__gradient"], [1, "miam-recipe-card__content"], [1, "miam-recipe-card__top-container"], ["class", "miam-recipe-card__like", 4, "ngIf"], ["class", "miam-recipe-card__sponsor-container", 4, "ngIf"], ["class", "miam-recipe-card__badge-container", 4, "ngIf"], [1, "miam-recipe-card__picture__bottom"], [1, "miam-recipe-card__title", "miam-ds-text", "weight-xxl", "size-m"], [1, "miam-recipe-card__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/recipe-counter.svg", "alt", "people"], [1, "miam-recipe-card__bottom", 3, "click"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], [1, "miam-recipe-card__actions"], [1, "miam-recipe-card__infos"], ["class", "miam-recipe-card__difficulty-and-time", 4, "ngIf"], ["class", "miam-recipe-card__price", 4, "ngIf"], [1, "miam-recipe-card__cta"], ["class", "miam-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked", 4, "ngIf"], ["class", "miam-recipe-card__actions__replace", 4, "ngIf"], ["class", "miam-ds-button ghost", 3, "click", 4, "ngIf"], [1, "miam-recipe-card__like"], ["like", ""], [1, "miam-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-recipe-card__sponsor-container"], ["alt", "sponsor picture", 1, "miam-recipe-card__sponsor-picture", 3, "src"], [1, "miam-recipe-card__badge-container"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "recipe badge", 1, "miam-recipe-card__badge"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], ["alt", "first ingredient picture", 3, "src", "error"], ["alt", "second ingredient picture", 3, "src", "error"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__difficulty-and-time"], ["class", "miam-recipe-card__difficulty", 4, "ngIf"], ["class", "miam-recipe-card__time", 4, "ngIf"], [1, "miam-recipe-card__difficulty"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ChefHat.svg", "alt", "difficulty"], [1, "miam-ds-text", "size-s", "weight-m"], [1, "miam-recipe-card__time"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Clock.svg", "alt", "time"], [1, "miam-recipe-card__price"], [1, "miam-ds-text", "weight-xxl", 3, "recipeId", "serves", "inViewport"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked"], [1, "miam-recipe-card__actions__replace"], [1, "miam-ds-button", "ghost", 3, "click"], i18n_0, [1, "miam-ds-button", "ghost", "square", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_2];
18313
+ return [["ngMiamInViewport", "", 1, "miam-recipe-card", 3, "condition", "ngClass", "inViewport"], ["class", "miam-recipe-card__container", "ngMiamInViewport", "", 3, "threshold", "debounceTime", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-recipe-card__container", 3, "threshold", "debounceTime", "inViewport"], [1, "miam-recipe-card__top", 3, "click"], [1, "miam-recipe-card__picture"], ["loading", "lazy", 3, "src", "alt", "error"], [1, "miam-recipe-card__gradient"], [1, "miam-recipe-card__content"], [1, "miam-recipe-card__top-container"], ["class", "miam-recipe-card__like", 4, "ngIf"], ["class", "miam-recipe-card__sponsor-container", 4, "ngIf"], ["class", "miam-recipe-card__badge-container", 4, "ngIf"], [1, "miam-recipe-card__picture__bottom"], [1, "miam-recipe-card__title", "miam-ds-text", "weight-xxl", "size-m"], [1, "miam-recipe-card__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/recipe-counter.svg", "alt", "people"], [1, "miam-recipe-card__bottom", 3, "click"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], [1, "miam-recipe-card__actions"], [1, "miam-recipe-card__infos"], ["class", "miam-recipe-card__difficulty-and-time", 4, "ngIf"], ["class", "miam-recipe-card__price", 4, "ngIf"], [1, "miam-recipe-card__cta"], ["class", "miam-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked", 4, "ngIf"], ["class", "miam-recipe-card__actions__replace", 4, "ngIf"], ["class", "miam-ds-button ghost", 3, "click", 4, "ngIf"], [1, "miam-recipe-card__like"], [1, "miam-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-recipe-card__sponsor-container"], ["alt", "sponsor picture", 1, "miam-recipe-card__sponsor-picture", 3, "src"], [1, "miam-recipe-card__badge-container"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "recipe badge", 1, "miam-recipe-card__badge"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], ["alt", "first ingredient picture", 3, "src", "error"], ["alt", "second ingredient picture", 3, "src", "error"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__difficulty-and-time"], ["class", "miam-recipe-card__difficulty", 4, "ngIf"], ["class", "miam-recipe-card__time", 4, "ngIf"], [1, "miam-recipe-card__difficulty"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ChefHat.svg", "alt", "difficulty"], [1, "miam-ds-text", "size-s", "weight-m"], [1, "miam-recipe-card__time"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Clock.svg", "alt", "time"], [1, "miam-recipe-card__price"], [1, "miam-ds-text", "weight-xxl", 3, "recipeId", "serves", "inViewport"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked"], [1, "miam-recipe-card__actions__replace"], [1, "miam-ds-button", "ghost", 3, "click"], i18n_0, [1, "miam-ds-button", "ghost", "square", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_2];
18310
18314
  }, template: function RecipeCardComponent_Template(rf, ctx) {
18311
18315
  if (rf & 1) {
18312
18316
  i0__namespace.ɵɵelementStart(0, "div", 0);
@@ -25443,6 +25447,11 @@
25443
25447
  else {
25444
25448
  if (!_this.showStoreLocator) {
25445
25449
  _this.storeLocatorService.closeModalOnSelected = false; // reset variable even if storeLocator was closed early
25450
+ // If the user closes the store locator without selecting a POS, close the modal
25451
+ if (_this.storeLocatorService.closeModalOnCancel) {
25452
+ _this.storeLocatorService.closeModalOnCancel = false;
25453
+ _this.hide();
25454
+ }
25446
25455
  }
25447
25456
  _this.cdr.detectChanges(); // hide does a detectChanges so we avoid a double change
25448
25457
  }
@@ -25868,11 +25877,11 @@
25868
25877
  }
25869
25878
  var i18n_10;
25870
25879
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
25871
- var MSG_EXTERNAL_2810787844840265356$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__11 = goog.getMsg("\u201CMes courses\u201D");
25872
- i18n_10 = MSG_EXTERNAL_2810787844840265356$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__11;
25880
+ var MSG_EXTERNAL_4989457896049213714$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__11 = goog.getMsg("\u201CAjouter au panier\u201D");
25881
+ i18n_10 = MSG_EXTERNAL_4989457896049213714$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__11;
25873
25882
  }
25874
25883
  else {
25875
- i18n_10 = $localize(templateObject_6 || (templateObject_6 = __makeTemplateObject([":\u241F5439dd52739003fa2f45e44996164896666b1c44\u241F2810787844840265356:\u201CMes courses\u201D"], [":\u241F5439dd52739003fa2f45e44996164896666b1c44\u241F2810787844840265356:\u201CMes courses\u201D"])));
25884
+ i18n_10 = $localize(templateObject_6 || (templateObject_6 = __makeTemplateObject([":\u241F44ab3c897b11ad9bb47769e66a067cbe3d2439bd\u241F4989457896049213714:\u201CAjouter au panier\u201D"], [":\u241F44ab3c897b11ad9bb47769e66a067cbe3d2439bd\u241F4989457896049213714:\u201CAjouter au panier\u201D"])));
25876
25885
  }
25877
25886
  var i18n_12;
25878
25887
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {