ng-miam 9.2.9 → 9.3.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 (39) hide show
  1. package/bundles/ng-miam.umd.js +286 -81
  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/_services/analytics.service.js +8 -1
  6. package/esm2015/lib/_services/context.service.js +19 -4
  7. package/esm2015/lib/_services/history.service.js +2 -2
  8. package/esm2015/lib/_services/planner-ssr.service.js +157 -0
  9. package/esm2015/lib/_services/preferences.service.js +11 -4
  10. package/esm2015/lib/_types/builded/mealz-internal-interface.js +1 -1
  11. package/esm2015/lib/_web-components/meals-planner/meals-planner.component.js +58 -42
  12. package/esm2015/lib/_web-components/preferences/preferences.component.js +3 -5
  13. package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +52 -39
  14. package/esm2015/lib/environments/environment.js +3 -2
  15. package/esm2015/lib/environments/environment.prod.js +3 -2
  16. package/esm2015/lib/environments/version.js +2 -2
  17. package/fesm2015/ng-miam.js +271 -79
  18. package/fesm2015/ng-miam.js.map +1 -1
  19. package/lib/_services/analytics.service.d.ts.map +1 -1
  20. package/lib/_services/context.service.d.ts +3 -1
  21. package/lib/_services/context.service.d.ts.map +1 -1
  22. package/lib/_services/planner-ssr.service.d.ts +37 -0
  23. package/lib/_services/planner-ssr.service.d.ts.map +1 -0
  24. package/lib/_services/preferences.service.d.ts +3 -1
  25. package/lib/_services/preferences.service.d.ts.map +1 -1
  26. package/lib/_types/builded/mealz-internal-interface.d.ts +10 -0
  27. package/lib/_types/builded/mealz-internal-interface.d.ts.map +1 -1
  28. package/lib/_web-components/meals-planner/meals-planner.component.d.ts +7 -1
  29. package/lib/_web-components/meals-planner/meals-planner.component.d.ts.map +1 -1
  30. package/lib/_web-components/preferences/preferences.component.d.ts.map +1 -1
  31. package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts +7 -1
  32. package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts.map +1 -1
  33. package/lib/environments/environment.d.ts +1 -0
  34. package/lib/environments/environment.d.ts.map +1 -1
  35. package/lib/environments/environment.prod.d.ts +1 -0
  36. package/lib/environments/environment.prod.d.ts.map +1 -1
  37. package/lib/environments/version.d.ts +1 -1
  38. package/miam-style.css +1 -1
  39. package/package.json +1 -1
@@ -1683,8 +1683,9 @@
1683
1683
  env: 'prod',
1684
1684
  miamAPI: 'https://api.miam.tech',
1685
1685
  miamWeb: 'https://miam.tech',
1686
- mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@1.2/dist',
1686
+ mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2/dist',
1687
1687
  mealzSsrApi: 'https://ssr-api.mealz.ai',
1688
+ mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10',
1688
1689
  lang: 'fr',
1689
1690
  analyticsEnabled: true // Only used in DEV mode
1690
1691
  };
@@ -3502,7 +3503,7 @@
3502
3503
  EventJourney["EMPTY"] = "";
3503
3504
  })(EventJourney || (EventJourney = {}));
3504
3505
 
3505
- var VERSION = '9.2.8'; // TODO: replace by ##VERSION## and update it in the CI/CD
3506
+ var VERSION = "9.3.0"; // TODO: replace by ##VERSION## and update it in the CI/CD
3506
3507
 
3507
3508
  var ContextRegistryService = /** @class */ (function () {
3508
3509
  function ContextRegistryService() {
@@ -3585,6 +3586,13 @@
3585
3586
  }
3586
3587
  var analyticsEnvironment = getAnalyticsEnvironment();
3587
3588
  mealzSharedAnalytics.initSharedAnalytics(domain, VERSION, _onEmit, analyticsEnvironment);
3589
+ // Ensure AB test key is set before any queued events are flushed
3590
+ // so the first events (like initial pageview) carry the key.
3591
+ var abTestKey = localStorage.getItem('_miam/ab');
3592
+ if (abTestKey && abTestKey.length > 0) {
3593
+ // Call underlying setter directly to avoid queueing before initialization flag is set
3594
+ mealzSharedAnalytics.setABTestKey(abTestKey);
3595
+ }
3588
3596
  if (((_a = localStorage.getItem('_miam/affiliate')) === null || _a === void 0 ? void 0 : _a.length) > 0) {
3589
3597
  mealzSharedAnalytics.setAffiliate(localStorage.getItem('_miam/affiliate'));
3590
3598
  }
@@ -4727,10 +4735,11 @@
4727
4735
  }, null);
4728
4736
  })();
4729
4737
 
4730
- var MEALZ_SSR_API$1 = environment$1.mealzSsrApi + "/v1";
4738
+ var MEALZ_SSR_API$2 = environment$1.mealzSsrApi + "/v1";
4731
4739
  var PreferencesService = /** @class */ (function () {
4732
- function PreferencesService(http) {
4740
+ function PreferencesService(http, userService) {
4733
4741
  this.http = http;
4742
+ this.userService = userService;
4734
4743
  this.tagsToAdd = [];
4735
4744
  this.tagsToRemove = [];
4736
4745
  this.isOpened$ = new rxjs.BehaviorSubject(false);
@@ -4794,12 +4803,16 @@
4794
4803
  PreferencesService.prototype.sendCacheRequest = function (action, key, value) {
4795
4804
  var userId = localStorage.getItem('_miam/userId') || localStorage.getItem('_miam/authlessId');
4796
4805
  var body = Object.assign({ userId: userId, key: key }, (value !== undefined ? { value: value } : {}));
4797
- return this.http.post(MEALZ_SSR_API$1 + "/cache/" + action, body, { headers: { 'Content-Type': 'application/json' } });
4806
+ return this.http.post(MEALZ_SSR_API$2 + "/cache/" + action, body, { headers: { 'Content-Type': 'application/json' } });
4798
4807
  };
4799
4808
  PreferencesService.prototype.addPreferencesToRemoteFilters = function (filters, fromPreference) {
4800
4809
  var _this = this;
4801
4810
  if (filters === void 0) { filters = {}; }
4802
4811
  if (fromPreference === void 0) { fromPreference = false; }
4812
+ // TODO: When migrating to SSR, ensure preferences are still applied in the meals planner
4813
+ if (!this.userService.preferencesActivated$.value) {
4814
+ return filters;
4815
+ }
4803
4816
  var preferences = this.getPreferences();
4804
4817
  if (preferences.with.length === 0 && preferences.without.length === 0) {
4805
4818
  if (this.tagsToAdd.length === 0) {
@@ -4909,7 +4922,7 @@
4909
4922
  };
4910
4923
  return PreferencesService;
4911
4924
  }());
4912
- PreferencesService.ɵfac = function PreferencesService_Factory(t) { return new (t || PreferencesService)(i0__namespace.ɵɵinject(i1__namespace.HttpClient)); };
4925
+ PreferencesService.ɵfac = function PreferencesService_Factory(t) { return new (t || PreferencesService)(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(UserService)); };
4913
4926
  PreferencesService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: PreferencesService, factory: PreferencesService.ɵfac, providedIn: 'root' });
4914
4927
  (function () {
4915
4928
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PreferencesService, [{
@@ -4917,7 +4930,7 @@
4917
4930
  args: [{
4918
4931
  providedIn: 'root'
4919
4932
  }]
4920
- }], function () { return [{ type: i1__namespace.HttpClient }]; }, null);
4933
+ }], function () { return [{ type: i1__namespace.HttpClient }, { type: UserService }]; }, null);
4921
4934
  })();
4922
4935
 
4923
4936
  var StoreLocatorService = /** @class */ (function () {
@@ -7829,18 +7842,18 @@
7829
7842
  }], function () { return [{ type: BasketsService }]; }, null);
7830
7843
  })();
7831
7844
 
7832
- var MEALZ_SSR_API = environment$1.mealzSsrApi + "/v1";
7845
+ var MEALZ_SSR_API$1 = environment$1.mealzSsrApi + "/v1";
7833
7846
  var HistoryService = /** @class */ (function () {
7834
7847
  function HistoryService(http, posService, suppliersService, userService) {
7835
7848
  this.http = http;
7836
7849
  this.posService = posService;
7837
7850
  this.suppliersService = suppliersService;
7838
7851
  this.userService = userService;
7839
- this.catalogHistoryUrl = MEALZ_SSR_API + "/styles/catalog/catalog-history";
7852
+ this.catalogHistoryUrl = MEALZ_SSR_API$1 + "/styles/catalog/catalog-history";
7840
7853
  this.scriptsPaths = [
7841
7854
  environment$1.mealzComponents + "/catalog/catalog-history/catalog-history.min.js",
7842
7855
  environment$1.mealzComponents + "/history-order/history-order.min.js",
7843
- environment$1.mealzComponents + "/recipe-card/recipe-card.min.js",
7856
+ environment$1.mealzComponents + "/recipe-card/recipe-card.min.js"
7844
7857
  ];
7845
7858
  this.allScriptLoaded$ = new rxjs.BehaviorSubject(false);
7846
7859
  this.scriptLoaded = 0;
@@ -7852,7 +7865,7 @@
7852
7865
  HistoryService.prototype.displayHistory = function (search) {
7853
7866
  var _this = this;
7854
7867
  var posId = this.posService.pos$.getValue().id;
7855
- var url = MEALZ_SSR_API + "/catalog/my-space/history?store_id=" + posId + "&search=" + search;
7868
+ var url = MEALZ_SSR_API$1 + "/catalog/my-space/history?store_id=" + posId + "&search=" + search;
7856
7869
  var headers = this.buildHeaders();
7857
7870
  this.loadStyles();
7858
7871
  this.fetchingHTMLLoader$.next(true);
@@ -7879,7 +7892,7 @@
7879
7892
  drawer = drawerElement;
7880
7893
  }
7881
7894
  drawer.openDrawer();
7882
- var drawerDataURL = MEALZ_SSR_API + "/catalog/my-space/drawer";
7895
+ var drawerDataURL = MEALZ_SSR_API$1 + "/catalog/my-space/drawer";
7883
7896
  var sessionId = sessionStorage.getItem('_miam/sessionId');
7884
7897
  drawer.loadDrawerData(drawerDataURL, orderId, sessionId, pos.id);
7885
7898
  });
@@ -7946,11 +7959,168 @@
7946
7959
  }], function () { return [{ type: i1__namespace.HttpClient }, { type: PointOfSalesService }, { type: SuppliersService }, { type: UserService }]; }, null);
7947
7960
  })();
7948
7961
 
7962
+ var MEALZ_SSR_API = environment$1.mealzSsrApi + "/v2";
7963
+ var PlannerSSRService = /** @class */ (function () {
7964
+ function PlannerSSRService(http, suppliersService, userService, posService) {
7965
+ this.http = http;
7966
+ this.suppliersService = suppliersService;
7967
+ this.userService = userService;
7968
+ this.posService = posService;
7969
+ this.catalogPlannerLinkUrl = MEALZ_SSR_API + "/styles/planner-link";
7970
+ this.plannerUrl = MEALZ_SSR_API + "/styles/planner";
7971
+ this.scriptsPaths = [
7972
+ environment$1.mealzSdkV10 + "/webc-miam-fr.js",
7973
+ environment$1.mealzComponents + "/planner/planner-dashboard/planner-dashboard.min.js",
7974
+ environment$1.mealzComponents + "/planner/planner-abandon-modal/planner-abandon-modal.min.js",
7975
+ environment$1.mealzComponents + "/planner/planner-catalog/planner-catalog.min.js",
7976
+ environment$1.mealzComponents + "/planner/planner-open-catalog-modal/planner-open-catalog-modal.min.js",
7977
+ environment$1.mealzComponents + "/planner/planner-recipe-card/planner-recipe-card.min.js",
7978
+ environment$1.mealzComponents + "/planner/planner-current-menu-modal/planner-current-menu-modal.min.js",
7979
+ environment$1.mealzComponents + "/planner/planner-recipe-list/planner-recipe-list.min.js",
7980
+ environment$1.mealzComponents + "/planner/planner-budget-gauge/planner-budget-gauge.min.js",
7981
+ environment$1.mealzComponents + "/planner/to-basket-loader/to-basket-loader.min.js",
7982
+ environment$1.mealzComponents + "/replace-item-planner/replace-item-card-planner/replace-item-card-planner.min.js",
7983
+ environment$1.mealzComponents + "/replace-item-planner/replace-item-planner.min.js",
7984
+ environment$1.mealzComponents + "/planner/planner-menu-option/planner-menu-option.min.js",
7985
+ environment$1.mealzComponents + "/planner/planner-form/planner-form.min.js",
7986
+ environment$1.mealzComponents + "/planner/planner-recipe-suggestion/planner-recipe-suggestion.min.js",
7987
+ environment$1.mealzComponents + "/planner/planner-current-menu/planner-current-menu.min.js",
7988
+ environment$1.mealzComponents + "/catalog/catalog-list/catalog-list.min.js",
7989
+ environment$1.mealzComponents + "/catalog/my-meals-button/my-meals-button.min.js",
7990
+ environment$1.mealzComponents + "/catalog/catalog-toolbar/catalog-toolbar.min.js",
7991
+ environment$1.mealzComponents + "/like-button/like-button.min.js",
7992
+ environment$1.mealzComponents + "/recipe-card/recipe-card.min.js",
7993
+ environment$1.mealzComponents + "/recipe-pricing/recipe-pricing.min.js",
7994
+ environment$1.mealzComponents + "/recipe-card-cta/recipe-card-cta.min.js",
7995
+ environment$1.mealzComponents + "/preferences/preferences.min.js"
7996
+ ];
7997
+ this.allScriptLoaded$ = new rxjs.BehaviorSubject(false);
7998
+ this.scriptLoaded = 0;
7999
+ this.fetchingHTMLLoader$ = new rxjs.BehaviorSubject(false);
8000
+ }
8001
+ PlannerSSRService.prototype.getPlannerLinkStyles = function (url) {
8002
+ return this.http.get(url, {});
8003
+ };
8004
+ PlannerSSRService.prototype.getPlannerStyles = function () {
8005
+ return this.http.get(this.plannerUrl, {});
8006
+ };
8007
+ PlannerSSRService.prototype.displayPlannerLink = function () {
8008
+ var _this = this;
8009
+ var plannerCardUrl = MEALZ_SSR_API + "/planner-card-link";
8010
+ var plannerBannerUrl = MEALZ_SSR_API + "/planner-banner-link";
8011
+ var headers = this.buildHeaders();
8012
+ this.loadStyles(this.catalogPlannerLinkUrl);
8013
+ this.fetchingHTMLLoader$.next(true);
8014
+ return rxjs.forkJoin({
8015
+ plannerCard: this.http.get(plannerCardUrl, { headers: headers, responseType: 'text' }),
8016
+ plannerBanner: this.http.get(plannerBannerUrl, { headers: headers, responseType: 'text' })
8017
+ }).pipe(operators.tap(function () { return _this.fetchingHTMLLoader$.next(false); }));
8018
+ };
8019
+ PlannerSSRService.prototype.getPlannerDashboard = function () {
8020
+ var _this = this;
8021
+ this.loadPlannerScripts();
8022
+ this.loadStyles(this.plannerUrl);
8023
+ this.fetchingHTMLLoader$.next(true);
8024
+ return this.makeSSRRequest('planner').pipe(operators.tap(function () { return _this.fetchingHTMLLoader$.next(false); }));
8025
+ };
8026
+ // getCurrentMenu is called after the planner is loaded so styles and scripts are already loaded
8027
+ PlannerSSRService.prototype.getCurrentMenu = function () {
8028
+ var _this = this;
8029
+ this.fetchingHTMLLoader$.next(true);
8030
+ return this.makeSSRRequest('planner/current-menu').pipe(operators.tap(function () { return _this.fetchingHTMLLoader$.next(false); }));
8031
+ };
8032
+ PlannerSSRService.prototype.buildHeaders = function () {
8033
+ var userId = localStorage.getItem('_miam/userId') || localStorage.getItem('_miam/authlessId') || '';
8034
+ var sessionId = sessionStorage.getItem('_miam/sessionId') || '';
8035
+ var supplierToken = this.suppliersService.token || '';
8036
+ var languageId = this.userService.language || '';
8037
+ var headers = {};
8038
+ if (userId) {
8039
+ headers.Authorization = "user_id " + userId;
8040
+ }
8041
+ if (supplierToken) {
8042
+ headers['supplier-token'] = supplierToken;
8043
+ }
8044
+ if (languageId) {
8045
+ headers['language-id'] = languageId;
8046
+ }
8047
+ if (sessionId) {
8048
+ headers['session-id'] = sessionId;
8049
+ }
8050
+ return new i1.HttpHeaders(headers);
8051
+ };
8052
+ PlannerSSRService.prototype.loadPlannerScripts = function () {
8053
+ var _this = this;
8054
+ var _a;
8055
+ (_a = this.scriptsPaths) === null || _a === void 0 ? void 0 : _a.forEach(function (script) { return _this.appendElementToHead('script', { type: 'module', src: script }); });
8056
+ };
8057
+ PlannerSSRService.prototype.loadStyles = function (url) {
8058
+ var _this = this;
8059
+ this.getPlannerLinkStyles(url).subscribe(function (styles) {
8060
+ var _a;
8061
+ (_a = styles === null || styles === void 0 ? void 0 : styles.links) === null || _a === void 0 ? void 0 : _a.forEach(function (link) {
8062
+ _this.appendElementToHead('link', { rel: 'stylesheet', href: link });
8063
+ });
8064
+ });
8065
+ };
8066
+ PlannerSSRService.prototype.replaceNoPlannerLinkRedirection = function (catalogUrl) {
8067
+ var anchor = document.querySelector('.mealz-catalog-planner-link__empty__button');
8068
+ if (anchor) {
8069
+ anchor.href = catalogUrl;
8070
+ }
8071
+ };
8072
+ PlannerSSRService.prototype.appendElementToHead = function (tag, attributes) {
8073
+ var _this = this;
8074
+ var element = document.createElement(tag);
8075
+ Object.entries(attributes).forEach(function (_b) {
8076
+ var _c = __read(_b, 2), key = _c[0], value = _c[1];
8077
+ return element.setAttribute(key, value);
8078
+ });
8079
+ var scriptsLoaded = function () {
8080
+ _this.scriptLoaded += 1;
8081
+ if (_this.scriptLoaded === _this.scriptsPaths.length) {
8082
+ _this.allScriptLoaded$.next(true);
8083
+ }
8084
+ };
8085
+ // Add error handling
8086
+ element.onerror = scriptsLoaded;
8087
+ element.onload = scriptsLoaded;
8088
+ document.head.appendChild(element);
8089
+ };
8090
+ PlannerSSRService.prototype.isNotAuthenticated = function () {
8091
+ return !localStorage.getItem('_miam/userId') && !localStorage.getItem('_miam/authlessId');
8092
+ };
8093
+ PlannerSSRService.prototype.makeSSRRequest = function (endpoint) {
8094
+ var _this = this;
8095
+ return rxjs.combineLatest([this.userService.userInfo$, this.userService.generatingAuthlessId$]).pipe(operators.skipWhile(function () { return _this.isNotAuthenticated(); }), operators.take(1), operators.switchMap(function () { return _this.posService.posWasInitialized().pipe(operators.skipWhile(function (wasInitialized) { return !wasInitialized; }), operators.switchMap(function () { return _this.posService.pos$; }), operators.take(1), operators.switchMap(function (pos) {
8096
+ var url = MEALZ_SSR_API + "/" + endpoint;
8097
+ if (pos === null || pos === void 0 ? void 0 : pos.extId) {
8098
+ url += "?store_id=" + pos.extId;
8099
+ }
8100
+ return _this.http.get(url, {
8101
+ headers: _this.buildHeaders(),
8102
+ responseType: 'text'
8103
+ });
8104
+ })); }));
8105
+ };
8106
+ return PlannerSSRService;
8107
+ }());
8108
+ PlannerSSRService.ɵfac = function PlannerSSRService_Factory(t) { return new (t || PlannerSSRService)(i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(SuppliersService), i0__namespace.ɵɵinject(UserService), i0__namespace.ɵɵinject(PointOfSalesService)); };
8109
+ PlannerSSRService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: PlannerSSRService, factory: PlannerSSRService.ɵfac, providedIn: 'root' });
8110
+ (function () {
8111
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(PlannerSSRService, [{
8112
+ type: i0.Injectable,
8113
+ args: [{
8114
+ providedIn: 'root'
8115
+ }]
8116
+ }], function () { return [{ type: i1__namespace.HttpClient }, { type: SuppliersService }, { type: UserService }, { type: PointOfSalesService }]; }, null);
8117
+ })();
8118
+
7949
8119
  var SMALL_SCREEN_BP = '(min-width: 1023px)';
7950
8120
  var ContextService = /** @class */ (function () {
7951
8121
  function ContextService(posService, basketsService, userService, preferencesService, analyticsService, recipesService, basketRecipeCleanupService, mediaMatcher, suppliersService, breakpointObserver,
7952
8122
  // private basketHandler: LegacyBasketsSynchronizerService,
7953
- basketHandler, storeLocatorService, recipeLikesService, fakeCartService, historyService, contextRegistryService) {
8123
+ basketHandler, storeLocatorService, recipeLikesService, fakeCartService, historyService, contextRegistryService, plannerSSRService) {
7954
8124
  var _this = this;
7955
8125
  this.posService = posService;
7956
8126
  this.basketsService = basketsService;
@@ -7968,6 +8138,7 @@
7968
8138
  this.fakeCartService = fakeCartService;
7969
8139
  this.historyService = historyService;
7970
8140
  this.contextRegistryService = contextRegistryService;
8141
+ this.plannerSSRService = plannerSSRService;
7971
8142
  this.videoRecipesEnabled = false;
7972
8143
  this.articlesInCatalogEnabled = false;
7973
8144
  this.tagsOnRecipesEnabled = false;
@@ -8308,6 +8479,14 @@
8308
8479
  preferencesCount: function () { return _this.preferencesService.currentPreferencesNumber; },
8309
8480
  loadMoreRecipes: function (packageId, page, pageSize, guests) { return _this.recipesService.loadRecipesFromPackageId(packageId, page, pageSize, guests); }
8310
8481
  },
8482
+ preferences: {
8483
+ resetPreferences: function () {
8484
+ _this.preferencesService.resetPreferences();
8485
+ if (_this.isPreferencesSSR) {
8486
+ _this.preferencesService.sendCacheRequest('remove', 'preferences').subscribe();
8487
+ }
8488
+ }
8489
+ },
8311
8490
  config: {
8312
8491
  logLevel: this.logLevel$
8313
8492
  },
@@ -8344,6 +8523,10 @@
8344
8523
  sessionStorage.setItem('_miam/sessionId', sessionId);
8345
8524
  }
8346
8525
  },
8526
+ planner: {
8527
+ getDashboardHTML: function () { return _this.plannerSSRService.getPlannerDashboard(); },
8528
+ getCurrentMenuHTML: function () { return _this.plannerSSRService.getCurrentMenu(); },
8529
+ },
8347
8530
  getStickyHeaderHeight: function () { return _this.supplierHeaderHeight$; }
8348
8531
  };
8349
8532
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
@@ -8458,7 +8641,7 @@
8458
8641
  };
8459
8642
  return ContextService;
8460
8643
  }());
8461
- ContextService.ɵfac = function ContextService_Factory(t) { return new (t || ContextService)(i0__namespace.ɵɵinject(PointOfSalesService), i0__namespace.ɵɵinject(BasketsService), i0__namespace.ɵɵinject(UserService), i0__namespace.ɵɵinject(PreferencesService), i0__namespace.ɵɵinject(AnalyticsService), i0__namespace.ɵɵinject(RecipesService), i0__namespace.ɵɵinject(BasketRecipeCleanupService), i0__namespace.ɵɵinject(i8__namespace.MediaMatcher), i0__namespace.ɵɵinject(SuppliersService), i0__namespace.ɵɵinject(i8__namespace.BreakpointObserver), i0__namespace.ɵɵinject(BasketsSynchronizerService), i0__namespace.ɵɵinject(StoreLocatorService), i0__namespace.ɵɵinject(RecipeLikesService), i0__namespace.ɵɵinject(FakeRetailerCartService), i0__namespace.ɵɵinject(HistoryService), i0__namespace.ɵɵinject(ContextRegistryService)); };
8644
+ ContextService.ɵfac = function ContextService_Factory(t) { return new (t || ContextService)(i0__namespace.ɵɵinject(PointOfSalesService), i0__namespace.ɵɵinject(BasketsService), i0__namespace.ɵɵinject(UserService), i0__namespace.ɵɵinject(PreferencesService), i0__namespace.ɵɵinject(AnalyticsService), i0__namespace.ɵɵinject(RecipesService), i0__namespace.ɵɵinject(BasketRecipeCleanupService), i0__namespace.ɵɵinject(i8__namespace.MediaMatcher), i0__namespace.ɵɵinject(SuppliersService), i0__namespace.ɵɵinject(i8__namespace.BreakpointObserver), i0__namespace.ɵɵinject(BasketsSynchronizerService), i0__namespace.ɵɵinject(StoreLocatorService), i0__namespace.ɵɵinject(RecipeLikesService), i0__namespace.ɵɵinject(FakeRetailerCartService), i0__namespace.ɵɵinject(HistoryService), i0__namespace.ɵɵinject(ContextRegistryService), i0__namespace.ɵɵinject(PlannerSSRService)); };
8462
8645
  ContextService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ContextService, factory: ContextService.ɵfac, providedIn: 'root' });
8463
8646
  (function () {
8464
8647
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ContextService, [{
@@ -8466,7 +8649,7 @@
8466
8649
  args: [{
8467
8650
  providedIn: 'root'
8468
8651
  }]
8469
- }], function () { return [{ type: PointOfSalesService }, { type: BasketsService }, { type: UserService }, { type: PreferencesService }, { type: AnalyticsService }, { type: RecipesService }, { type: BasketRecipeCleanupService }, { type: i8__namespace.MediaMatcher }, { type: SuppliersService }, { type: i8__namespace.BreakpointObserver }, { type: BasketsSynchronizerService }, { type: StoreLocatorService }, { type: RecipeLikesService }, { type: FakeRetailerCartService }, { type: HistoryService }, { type: ContextRegistryService }]; }, null);
8652
+ }], function () { return [{ type: PointOfSalesService }, { type: BasketsService }, { type: UserService }, { type: PreferencesService }, { type: AnalyticsService }, { type: RecipesService }, { type: BasketRecipeCleanupService }, { type: i8__namespace.MediaMatcher }, { type: SuppliersService }, { type: i8__namespace.BreakpointObserver }, { type: BasketsSynchronizerService }, { type: StoreLocatorService }, { type: RecipeLikesService }, { type: FakeRetailerCartService }, { type: HistoryService }, { type: ContextRegistryService }, { type: PlannerSSRService }]; }, null);
8470
8653
  })();
8471
8654
 
8472
8655
  var _c0$p = function (a0, a1) { return { "width": a0, "height": a1 }; };
@@ -10128,8 +10311,9 @@
10128
10311
  env: 'prod',
10129
10312
  miamAPI: 'https://api.miam.tech',
10130
10313
  miamWeb: 'https://miam.tech',
10131
- mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@1.2/dist',
10314
+ mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2/dist',
10132
10315
  mealzSsrApi: 'https://ssr-api.mealz.ai',
10316
+ mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10',
10133
10317
  lang: 'fr',
10134
10318
  analyticsEnabled: true // Only used in DEV mode
10135
10319
  };
@@ -23121,7 +23305,7 @@
23121
23305
  var _c0$5 = ["miamMealsPlannerTopAnchor"];
23122
23306
  function MealsPlannerComponent_div_2_ng_miam_icon_13_Template(rf, ctx) {
23123
23307
  if (rf & 1) {
23124
- i0__namespace.ɵɵelement(0, "ng-miam-icon", 8);
23308
+ i0__namespace.ɵɵelement(0, "ng-miam-icon", 9);
23125
23309
  }
23126
23310
  if (rf & 2) {
23127
23311
  var ctx_r2 = i0__namespace.ɵɵnextContext(2);
@@ -23130,9 +23314,9 @@
23130
23314
  }
23131
23315
  function MealsPlannerComponent_div_2_a_14_Template(rf, ctx) {
23132
23316
  if (rf & 1) {
23133
- i0__namespace.ɵɵelementStart(0, "a", 16);
23317
+ i0__namespace.ɵɵelementStart(0, "a", 17);
23134
23318
  i0__namespace.ɵɵelementStart(1, "span");
23135
- i0__namespace.ɵɵi18n(2, 17);
23319
+ i0__namespace.ɵɵi18n(2, 18);
23136
23320
  i0__namespace.ɵɵelementEnd();
23137
23321
  i0__namespace.ɵɵelementEnd();
23138
23322
  }
@@ -23141,7 +23325,7 @@
23141
23325
  function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_form_1_Template(rf, ctx) {
23142
23326
  if (rf & 1) {
23143
23327
  var _r11_1 = i0__namespace.ɵɵgetCurrentView();
23144
- i0__namespace.ɵɵelementStart(0, "ng-miam-meals-planner-form", 24);
23328
+ i0__namespace.ɵɵelementStart(0, "ng-miam-meals-planner-form", 25);
23145
23329
  i0__namespace.ɵɵlistener("submitted", function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_form_1_Template_ng_miam_meals_planner_form_submitted_0_listener($event) { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(3); return ctx_r10.fetchRecipes($event); });
23146
23330
  i0__namespace.ɵɵelementEnd();
23147
23331
  }
@@ -23153,7 +23337,7 @@
23153
23337
  function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_result_2_Template(rf, ctx) {
23154
23338
  if (rf & 1) {
23155
23339
  var _r13_1 = i0__namespace.ɵɵgetCurrentView();
23156
- i0__namespace.ɵɵelementStart(0, "ng-miam-meals-planner-result", 25);
23340
+ i0__namespace.ɵɵelementStart(0, "ng-miam-meals-planner-result", 26);
23157
23341
  i0__namespace.ɵɵlistener("recipeRemoval", function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_result_2_Template_ng_miam_meals_planner_result_recipeRemoval_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r12 = i0__namespace.ɵɵnextContext(3); return ctx_r12.updateBudgetValues(); })("confirmed", function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_result_2_Template_ng_miam_meals_planner_result_confirmed_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r14 = i0__namespace.ɵɵnextContext(3); return ctx_r14.addRecipes(); })("openCatalog", function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_result_2_Template_ng_miam_meals_planner_result_openCatalog_0_listener($event) { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r15 = i0__namespace.ɵɵnextContext(3); return ctx_r15.openCatalog($event); });
23158
23342
  i0__namespace.ɵɵelementEnd();
23159
23343
  }
@@ -23165,7 +23349,7 @@
23165
23349
  function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_basket_preview_3_Template(rf, ctx) {
23166
23350
  if (rf & 1) {
23167
23351
  var _r17_1 = i0__namespace.ɵɵgetCurrentView();
23168
- i0__namespace.ɵɵelementStart(0, "ng-miam-meals-planner-basket-preview", 26);
23352
+ i0__namespace.ɵɵelementStart(0, "ng-miam-meals-planner-basket-preview", 27);
23169
23353
  i0__namespace.ɵɵlistener("closed", function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_basket_preview_3_Template_ng_miam_meals_planner_basket_preview_closed_0_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(3); return ctx_r16.openBasketConfirmation(); })("usedBudgetChanged", function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_basket_preview_3_Template_ng_miam_meals_planner_basket_preview_usedBudgetChanged_0_listener($event) { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r18 = i0__namespace.ɵɵnextContext(3); return ctx_r18.updateUsedBudget($event); });
23170
23354
  i0__namespace.ɵɵelementEnd();
23171
23355
  }
@@ -23177,7 +23361,7 @@
23177
23361
  function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_catalog_4_Template(rf, ctx) {
23178
23362
  if (rf & 1) {
23179
23363
  var _r20_1 = i0__namespace.ɵɵgetCurrentView();
23180
- i0__namespace.ɵɵelementStart(0, "ng-miam-meals-planner-catalog", 27);
23364
+ i0__namespace.ɵɵelementStart(0, "ng-miam-meals-planner-catalog", 28);
23181
23365
  i0__namespace.ɵɵlistener("editRecipe", function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_catalog_4_Template_ng_miam_meals_planner_catalog_editRecipe_0_listener($event) { i0__namespace.ɵɵrestoreView(_r20_1); var ctx_r19 = i0__namespace.ɵɵnextContext(3); return ctx_r19.editRecipe($event); })("canceled", function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_catalog_4_Template_ng_miam_meals_planner_catalog_canceled_0_listener() { i0__namespace.ɵɵrestoreView(_r20_1); var ctx_r21 = i0__namespace.ɵɵnextContext(3); return ctx_r21.closeCatalog(); });
23182
23366
  i0__namespace.ɵɵelementEnd();
23183
23367
  }
@@ -23188,7 +23372,7 @@
23188
23372
  }
23189
23373
  function MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_basket_confirmation_5_Template(rf, ctx) {
23190
23374
  if (rf & 1) {
23191
- i0__namespace.ɵɵelement(0, "ng-miam-meals-planner-basket-confirmation", 28);
23375
+ i0__namespace.ɵɵelement(0, "ng-miam-meals-planner-basket-confirmation", 29);
23192
23376
  }
23193
23377
  if (rf & 2) {
23194
23378
  var ctx_r9 = i0__namespace.ɵɵnextContext(3);
@@ -23197,12 +23381,12 @@
23197
23381
  }
23198
23382
  function MealsPlannerComponent_div_2_div_15_Template(rf, ctx) {
23199
23383
  if (rf & 1) {
23200
- i0__namespace.ɵɵelementStart(0, "div", 18);
23201
- i0__namespace.ɵɵtemplate(1, MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_form_1_Template, 1, 7, "ng-miam-meals-planner-form", 19);
23202
- i0__namespace.ɵɵtemplate(2, MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_result_2_Template, 1, 5, "ng-miam-meals-planner-result", 20);
23203
- i0__namespace.ɵɵtemplate(3, MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_basket_preview_3_Template, 1, 9, "ng-miam-meals-planner-basket-preview", 21);
23204
- i0__namespace.ɵɵtemplate(4, MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_catalog_4_Template, 1, 5, "ng-miam-meals-planner-catalog", 22);
23205
- i0__namespace.ɵɵtemplate(5, MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_basket_confirmation_5_Template, 1, 3, "ng-miam-meals-planner-basket-confirmation", 23);
23384
+ i0__namespace.ɵɵelementStart(0, "div", 19);
23385
+ i0__namespace.ɵɵtemplate(1, MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_form_1_Template, 1, 7, "ng-miam-meals-planner-form", 20);
23386
+ i0__namespace.ɵɵtemplate(2, MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_result_2_Template, 1, 5, "ng-miam-meals-planner-result", 21);
23387
+ i0__namespace.ɵɵtemplate(3, MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_basket_preview_3_Template, 1, 9, "ng-miam-meals-planner-basket-preview", 22);
23388
+ i0__namespace.ɵɵtemplate(4, MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_catalog_4_Template, 1, 5, "ng-miam-meals-planner-catalog", 23);
23389
+ i0__namespace.ɵɵtemplate(5, MealsPlannerComponent_div_2_div_15_ng_miam_meals_planner_basket_confirmation_5_Template, 1, 3, "ng-miam-meals-planner-basket-confirmation", 24);
23206
23390
  i0__namespace.ɵɵelementEnd();
23207
23391
  }
23208
23392
  if (rf & 2) {
@@ -23222,29 +23406,29 @@
23222
23406
  var _c8$1 = function (a0) { return { "hidden": a0 }; };
23223
23407
  function MealsPlannerComponent_div_2_Template(rf, ctx) {
23224
23408
  if (rf & 1) {
23225
- i0__namespace.ɵɵelementStart(0, "div", 3);
23226
- i0__namespace.ɵɵelementStart(1, "div", 4);
23227
- i0__namespace.ɵɵelementStart(2, "div", 5);
23228
- i0__namespace.ɵɵelementStart(3, "a", 6);
23229
- i0__namespace.ɵɵelement(4, "ng-miam-icon", 7);
23409
+ i0__namespace.ɵɵelementStart(0, "div", 4);
23410
+ i0__namespace.ɵɵelementStart(1, "div", 5);
23411
+ i0__namespace.ɵɵelementStart(2, "div", 6);
23412
+ i0__namespace.ɵɵelementStart(3, "a", 7);
23413
+ i0__namespace.ɵɵelement(4, "ng-miam-icon", 8);
23230
23414
  i0__namespace.ɵɵelementEnd();
23231
- i0__namespace.ɵɵelement(5, "ng-miam-icon", 8);
23232
- i0__namespace.ɵɵelementStart(6, "a", 9);
23415
+ i0__namespace.ɵɵelement(5, "ng-miam-icon", 9);
23416
+ i0__namespace.ɵɵelementStart(6, "a", 10);
23233
23417
  i0__namespace.ɵɵelementStart(7, "span");
23234
- i0__namespace.ɵɵi18n(8, 10);
23418
+ i0__namespace.ɵɵi18n(8, 11);
23235
23419
  i0__namespace.ɵɵelementEnd();
23236
23420
  i0__namespace.ɵɵelementEnd();
23237
- i0__namespace.ɵɵelement(9, "ng-miam-icon", 8);
23238
- i0__namespace.ɵɵelementStart(10, "a", 11);
23421
+ i0__namespace.ɵɵelement(9, "ng-miam-icon", 9);
23422
+ i0__namespace.ɵɵelementStart(10, "a", 12);
23239
23423
  i0__namespace.ɵɵelementStart(11, "span");
23240
- i0__namespace.ɵɵi18n(12, 12);
23424
+ i0__namespace.ɵɵi18n(12, 13);
23241
23425
  i0__namespace.ɵɵelementEnd();
23242
23426
  i0__namespace.ɵɵelementEnd();
23243
- i0__namespace.ɵɵtemplate(13, MealsPlannerComponent_div_2_ng_miam_icon_13_Template, 1, 1, "ng-miam-icon", 13);
23244
- i0__namespace.ɵɵtemplate(14, MealsPlannerComponent_div_2_a_14_Template, 3, 0, "a", 14);
23427
+ i0__namespace.ɵɵtemplate(13, MealsPlannerComponent_div_2_ng_miam_icon_13_Template, 1, 1, "ng-miam-icon", 14);
23428
+ i0__namespace.ɵɵtemplate(14, MealsPlannerComponent_div_2_a_14_Template, 3, 0, "a", 15);
23245
23429
  i0__namespace.ɵɵelementEnd();
23246
23430
  i0__namespace.ɵɵelementEnd();
23247
- i0__namespace.ɵɵtemplate(15, MealsPlannerComponent_div_2_div_15_Template, 6, 5, "div", 15);
23431
+ i0__namespace.ɵɵtemplate(15, MealsPlannerComponent_div_2_div_15_Template, 6, 5, "div", 16);
23248
23432
  i0__namespace.ɵɵelementEnd();
23249
23433
  }
23250
23434
  if (rf & 2) {
@@ -23277,7 +23461,7 @@
23277
23461
  };
23278
23462
  var MealsPlannerComponent = /** @class */ (function (_super) {
23279
23463
  __extends(MealsPlannerComponent, _super);
23280
- function MealsPlannerComponent(analyticsService, fb, cdr, contextService, recipesService, basketsService, posService, recipeDetailsService, suppliersService, basketSynchroService) {
23464
+ function MealsPlannerComponent(analyticsService, fb, cdr, contextService, recipesService, basketsService, posService, recipeDetailsService, suppliersService, basketSynchroService, plannerSSRService, sanitizer) {
23281
23465
  var _this = _super.call(this, analyticsService) || this;
23282
23466
  _this.fb = fb;
23283
23467
  _this.cdr = cdr;
@@ -23288,6 +23472,8 @@
23288
23472
  _this.recipeDetailsService = recipeDetailsService;
23289
23473
  _this.suppliersService = suppliersService;
23290
23474
  _this.basketSynchroService = basketSynchroService;
23475
+ _this.plannerSSRService = plannerSSRService;
23476
+ _this.sanitizer = sanitizer;
23291
23477
  _this.budgettedRecipes = [];
23292
23478
  _this.budgettedRecipesPrices = {};
23293
23479
  _this.addedRecipesIds = [];
@@ -23349,6 +23535,10 @@
23349
23535
  _this.initForm();
23350
23536
  _this.pageview();
23351
23537
  _this.subscriptions.push(_this.initRecipesPricing());
23538
+ _this.subscriptions.push(_this.loadPlannerDashboardHTML().subscribe(function (plannerDashboardHTML) {
23539
+ _this.plannerDashboardHTML = plannerDashboardHTML;
23540
+ _this.cdr.detectChanges();
23541
+ }));
23352
23542
  }));
23353
23543
  };
23354
23544
  MealsPlannerComponent.prototype.ngOnChanges = function () {
@@ -23558,9 +23748,13 @@
23558
23748
  this.usedBudget = usedBudget;
23559
23749
  this.cdr.detectChanges();
23560
23750
  };
23751
+ MealsPlannerComponent.prototype.loadPlannerDashboardHTML = function () {
23752
+ var _this = this;
23753
+ return this.plannerSSRService.getPlannerDashboard().pipe(operators.map(function (dashboard) { return _this.sanitizer.bypassSecurityTrustHtml(dashboard); }));
23754
+ };
23561
23755
  return MealsPlannerComponent;
23562
23756
  }(EventTracerComponent));
23563
- MealsPlannerComponent.ɵfac = function MealsPlannerComponent_Factory(t) { return new (t || MealsPlannerComponent)(i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(i3__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(BasketsSynchronizerService)); };
23757
+ MealsPlannerComponent.ɵfac = function MealsPlannerComponent_Factory(t) { return new (t || MealsPlannerComponent)(i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(i3__namespace.FormBuilder), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(BasketsSynchronizerService), i0__namespace.ɵɵdirectiveInject(PlannerSSRService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.DomSanitizer)); };
23564
23758
  MealsPlannerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: MealsPlannerComponent, selectors: [["ng-miam-meals-planner"]], viewQuery: function MealsPlannerComponent_Query(rf, ctx) {
23565
23759
  if (rf & 1) {
23566
23760
  i0__namespace.ɵɵviewQuery(_c0$5, 1);
@@ -23569,7 +23763,7 @@
23569
23763
  var _t = void 0;
23570
23764
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.topAnchor = _t.first);
23571
23765
  }
23572
- }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars: 1, consts: function () {
23766
+ }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 4, vars: 2, consts: function () {
23573
23767
  var i18n_1;
23574
23768
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
23575
23769
  var MSG_EXTERNAL_8408582562313036652$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_COMPONENT_TS__2 = goog.getMsg("Id\u00E9es repas");
@@ -23594,15 +23788,18 @@
23594
23788
  else {
23595
23789
  i18n_5 = $localize(templateObject_3$a || (templateObject_3$a = __makeTemplateObject([":\u241F3b0b12b85604af610c07cfbd5d4f74662b9a881a\u241F1931799427977453728:Ajouter une id\u00E9e repas"], [":\u241F3b0b12b85604af610c07cfbd5d4f74662b9a881a\u241F1931799427977453728:Ajouter une id\u00E9e repas"])));
23596
23790
  }
23597
- return [[1, "miam-meals-planner-anchor"], ["miamMealsPlannerTopAnchor", ""], ["class", "miam-meals-planner", 4, "ngIf"], [1, "miam-meals-planner"], [1, "miam-meals-planner__header"], [1, "miam-meals-planner__header__breadcrumb", 3, "ngClass"], ["href", "/"], ["width", "18", "height", "18", "primaryColor", "#0F191F", 3, "iconName"], ["width", "24", "height", "24", 1, "chevron-right", 3, "iconName"], [1, "inactive", 3, "href"], i18n_1, ["href", "javascript:void(0)", 1, "active"], i18n_3, ["class", "chevron-right", "width", "24", "height", "24", 3, "iconName", 4, "ngIf"], ["href", "javascript:void(0)", "class", "subCategory", 4, "ngIf"], ["class", "miam-meals-planner__content", 4, "ngIf"], ["href", "javascript:void(0)", 1, "subCategory"], i18n_5, [1, "miam-meals-planner__content"], [3, "originTrace", "reduced", "form", "loading", "ngClass", "submitted", 4, "ngIf"], [3, "originTrace", "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog", 4, "ngIf"], [3, "recipesIds", "usedBudget", "maxBudget", "guests", "ingredientsRegrouped", "originTrace", "ngClass", "closed", "usedBudgetChanged", 4, "ngIf"], [3, "modifiedGuests", "originTrace", "remainingBudget", "remainingRecipesNumber", "excludedRecipesIds", "editRecipe", "canceled", 4, "ngIf"], [3, "recipesIds", "originTrace", "budget", 4, "ngIf"], [3, "originTrace", "reduced", "form", "loading", "ngClass", "submitted"], [3, "originTrace", "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog"], [3, "recipesIds", "usedBudget", "maxBudget", "guests", "ingredientsRegrouped", "originTrace", "ngClass", "closed", "usedBudgetChanged"], [3, "modifiedGuests", "originTrace", "remainingBudget", "remainingRecipesNumber", "excludedRecipesIds", "editRecipe", "canceled"], [3, "recipesIds", "originTrace", "budget"]];
23791
+ return [[1, "miam-meals-planner-anchor"], ["miamMealsPlannerTopAnchor", ""], ["class", "miam-meals-planner", 4, "ngIf"], [1, "mealz-planner-dashboard-container", 3, "innerHTML"], [1, "miam-meals-planner"], [1, "miam-meals-planner__header"], [1, "miam-meals-planner__header__breadcrumb", 3, "ngClass"], ["href", "/"], ["width", "18", "height", "18", "primaryColor", "#0F191F", 3, "iconName"], ["width", "24", "height", "24", 1, "chevron-right", 3, "iconName"], [1, "inactive", 3, "href"], i18n_1, ["href", "javascript:void(0)", 1, "active"], i18n_3, ["class", "chevron-right", "width", "24", "height", "24", 3, "iconName", 4, "ngIf"], ["href", "javascript:void(0)", "class", "subCategory", 4, "ngIf"], ["class", "miam-meals-planner__content", 4, "ngIf"], ["href", "javascript:void(0)", 1, "subCategory"], i18n_5, [1, "miam-meals-planner__content"], [3, "originTrace", "reduced", "form", "loading", "ngClass", "submitted", 4, "ngIf"], [3, "originTrace", "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog", 4, "ngIf"], [3, "recipesIds", "usedBudget", "maxBudget", "guests", "ingredientsRegrouped", "originTrace", "ngClass", "closed", "usedBudgetChanged", 4, "ngIf"], [3, "modifiedGuests", "originTrace", "remainingBudget", "remainingRecipesNumber", "excludedRecipesIds", "editRecipe", "canceled", 4, "ngIf"], [3, "recipesIds", "originTrace", "budget", 4, "ngIf"], [3, "originTrace", "reduced", "form", "loading", "ngClass", "submitted"], [3, "originTrace", "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog"], [3, "recipesIds", "usedBudget", "maxBudget", "guests", "ingredientsRegrouped", "originTrace", "ngClass", "closed", "usedBudgetChanged"], [3, "modifiedGuests", "originTrace", "remainingBudget", "remainingRecipesNumber", "excludedRecipesIds", "editRecipe", "canceled"], [3, "recipesIds", "originTrace", "budget"]];
23598
23792
  }, template: function MealsPlannerComponent_Template(rf, ctx) {
23599
23793
  if (rf & 1) {
23600
23794
  i0__namespace.ɵɵelement(0, "div", 0, 1);
23601
23795
  i0__namespace.ɵɵtemplate(2, MealsPlannerComponent_div_2_Template, 16, 10, "div", 2);
23796
+ i0__namespace.ɵɵelement(3, "div", 3);
23602
23797
  }
23603
23798
  if (rf & 2) {
23604
23799
  i0__namespace.ɵɵadvance(2);
23605
23800
  i0__namespace.ɵɵproperty("ngIf", ctx.featureIsAuthorized);
23801
+ i0__namespace.ɵɵadvance(1);
23802
+ i0__namespace.ɵɵproperty("innerHTML", ctx.plannerDashboardHTML, i0__namespace.ɵɵsanitizeHtml);
23606
23803
  }
23607
23804
  }, directives: [i2__namespace.NgIf, i2__namespace.NgClass, IconComponent, MealsPlannerFormComponent, MealsPlannerResultComponent, MealsPlannerBasketPreviewComponent, MealsPlannerCatalogComponent, MealsPlannerBasketConfirmationComponent], styles: [".miam-meals-planner{display:flex;flex-direction:column;width:100%;height:100%;border-bottom:1px solid #d9dde1}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb{display:flex;align-items:center;padding:24px;background:#fff;border-bottom:1px solid #d9dde1}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb.hidden{display:none}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb a{margin:0 4px;font-weight:500;font-size:14px;line-height:150%}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb a.inactive{color:#0f191f}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb a.active{font-weight:900;color:var(--m-color-primary)}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb .chevron-right{transform:rotate(-90deg)}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb .chevron-right .icon-container svg path:last-child{fill:#0f191f}.miam-meals-planner .miam-meals-planner__content{display:flex;height:100%;width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form.reduced{max-width:300px;border-right:1px solid #d9dde1}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-preview,.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-result{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-preview.reduced{width:0}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-catalog{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-confirmation{width:100%;padding:0 80px}@media (max-width:1023px){.miam-meals-planner .miam-meals-planner__header{display:none}.miam-meals-planner .miam-meals-planner__content{flex-direction:column}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form.reduced{max-width:unset;border-right:unset}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-confirmation{padding:0 15px}}.miam-meals-planner .miam-meals-planner__catalog{padding:16px}.miam-meals-planner ng-miam-recipe-card .miam-recipe-card{height:var(--m-catalog-card-height);width:var(--m-catalog-card-width)}"], encapsulation: 2, changeDetection: 0 });
23608
23805
  (function () {
@@ -23615,7 +23812,7 @@
23615
23812
  encapsulation: i0.ViewEncapsulation.None,
23616
23813
  changeDetection: i0.ChangeDetectionStrategy.OnPush
23617
23814
  }]
23618
- }], function () { return [{ type: AnalyticsService }, { type: i3__namespace.FormBuilder }, { type: i0__namespace.ChangeDetectorRef }, { type: ContextService }, { type: RecipesService }, { type: BasketsService }, { type: PointOfSalesService }, { type: RecipeDetailsService }, { type: SuppliersService }, { type: BasketsSynchronizerService }]; }, { topAnchor: [{
23815
+ }], function () { return [{ type: AnalyticsService }, { type: i3__namespace.FormBuilder }, { type: i0__namespace.ChangeDetectorRef }, { type: ContextService }, { type: RecipesService }, { type: BasketsService }, { type: PointOfSalesService }, { type: RecipeDetailsService }, { type: SuppliersService }, { type: BasketsSynchronizerService }, { type: PlannerSSRService }, { type: i2__namespace$1.DomSanitizer }]; }, { topAnchor: [{
23619
23816
  type: i0.ViewChild,
23620
23817
  args: ['miamMealsPlannerTopAnchor']
23621
23818
  }] });
@@ -25009,10 +25206,8 @@
25009
25206
  this.initIngredientTags();
25010
25207
  };
25011
25208
  PreferencesComponent.prototype.reset = function () {
25012
- this.preferencesService.resetPreferences();
25013
- if (this.contextService.isPreferencesSSR) {
25014
- this.preferencesService.sendCacheRequest('remove', 'preferences').subscribe();
25015
- }
25209
+ var _a;
25210
+ (_a = this.contextService.mealzInternal.preferences) === null || _a === void 0 ? void 0 : _a.resetPreferences();
25016
25211
  this.fetchTags();
25017
25212
  };
25018
25213
  PreferencesComponent.prototype.initIngredientTags = function () {
@@ -25540,37 +25735,35 @@
25540
25735
  i0__namespace.ɵɵproperty("title", category_r48.title)("subtitle", category_r48.subtitle)("filters", category_r48.filters)("maxRecipeNumber", ctx_r50.maxRecipesPerCategory)("displayInfos", ctx_r50.displayInfos)("displayPricing", ctx_r50.displayPricing)("originTrace", ctx_r50.eventTrace)("modifiedGuests", ctx_r50.guests)("displayRecipeVariant", ctx_r50.displayRecipeVariant);
25541
25736
  }
25542
25737
  }
25543
- function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_ng_miam_meals_planner_link_1_Template(rf, ctx) {
25544
- if (rf & 1) {
25545
- i0__namespace.ɵɵelement(0, "ng-miam-meals-planner-link");
25546
- }
25547
- }
25548
25738
  function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template(rf, ctx) {
25549
25739
  if (rf & 1) {
25550
- var _r58_1 = i0__namespace.ɵɵgetCurrentView();
25740
+ var _r57_1 = i0__namespace.ɵɵgetCurrentView();
25551
25741
  i0__namespace.ɵɵelementStart(0, "div", 73);
25552
- i0__namespace.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_ng_miam_meals_planner_link_1_Template, 1, 0, "ng-miam-meals-planner-link", 42);
25553
- i0__namespace.ɵɵpipe(2, "async");
25554
- i0__namespace.ɵɵelementStart(3, "ng-miam-catalog-category", 74);
25555
- i0__namespace.ɵɵlistener("displayList", function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template_ng_miam_catalog_category_displayList_3_listener($event) { i0__namespace.ɵɵrestoreView(_r58_1); var ctx_r57 = i0__namespace.ɵɵnextContext(5); return ctx_r57.categoryTitleClicked($event); })("isHidden", function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template_ng_miam_catalog_category_isHidden_3_listener($event) { i0__namespace.ɵɵrestoreView(_r58_1); var ctx_r59 = i0__namespace.ɵɵnextContext(5); return ctx_r59.categoryHidden($event); });
25742
+ i0__namespace.ɵɵelement(1, "ng-miam-meals-planner-link");
25743
+ i0__namespace.ɵɵelement(2, "div", 74);
25744
+ i0__namespace.ɵɵelement(3, "div", 75);
25745
+ i0__namespace.ɵɵelementStart(4, "ng-miam-catalog-category", 76);
25746
+ i0__namespace.ɵɵlistener("displayList", function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template_ng_miam_catalog_category_displayList_4_listener($event) { i0__namespace.ɵɵrestoreView(_r57_1); var ctx_r56 = i0__namespace.ɵɵnextContext(5); return ctx_r56.categoryTitleClicked($event); })("isHidden", function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template_ng_miam_catalog_category_isHidden_4_listener($event) { i0__namespace.ɵɵrestoreView(_r57_1); var ctx_r58 = i0__namespace.ɵɵnextContext(5); return ctx_r58.categoryHidden($event); });
25556
25747
  i0__namespace.ɵɵelementEnd();
25557
25748
  i0__namespace.ɵɵelementEnd();
25558
- i0__namespace.ɵɵelementStart(4, "button", 75);
25559
- i0__namespace.ɵɵlistener("click", function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template_button_click_4_listener() { i0__namespace.ɵɵrestoreView(_r58_1); var ctx_r60 = i0__namespace.ɵɵnextContext(5); return ctx_r60.seeAllRecipes(); });
25560
- i0__namespace.ɵɵelementStart(5, "div", 76);
25561
- i0__namespace.ɵɵi18n(6, 77);
25749
+ i0__namespace.ɵɵelementStart(5, "button", 77);
25750
+ i0__namespace.ɵɵlistener("click", function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(_r57_1); var ctx_r59 = i0__namespace.ɵɵnextContext(5); return ctx_r59.seeAllRecipes(); });
25751
+ i0__namespace.ɵɵelementStart(6, "div", 78);
25752
+ i0__namespace.ɵɵi18n(7, 79);
25562
25753
  i0__namespace.ɵɵelementEnd();
25563
- i0__namespace.ɵɵelementStart(7, "div", 78);
25564
- i0__namespace.ɵɵelement(8, "img", 79);
25754
+ i0__namespace.ɵɵelementStart(8, "div", 80);
25755
+ i0__namespace.ɵɵelement(9, "img", 81);
25565
25756
  i0__namespace.ɵɵelementEnd();
25566
25757
  i0__namespace.ɵɵelementEnd();
25567
25758
  }
25568
25759
  if (rf & 2) {
25569
25760
  var category_r48 = i0__namespace.ɵɵnextContext().$implicit;
25570
25761
  var ctx_r52 = i0__namespace.ɵɵnextContext(4);
25571
- i0__namespace.ɵɵadvance(1);
25572
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(2, 10, ctx_r52.contextService.enableMealsPlanner$));
25573
25762
  i0__namespace.ɵɵadvance(2);
25763
+ i0__namespace.ɵɵproperty("innerHTML", ctx_r52.plannerCardLinkHTML, i0__namespace.ɵɵsanitizeHtml);
25764
+ i0__namespace.ɵɵadvance(1);
25765
+ i0__namespace.ɵɵproperty("innerHTML", ctx_r52.plannerBannerLinkHTML, i0__namespace.ɵɵsanitizeHtml);
25766
+ i0__namespace.ɵɵadvance(1);
25574
25767
  i0__namespace.ɵɵproperty("title", category_r48.title)("subtitle", category_r48.subtitle)("filters", category_r48.filters)("displayInfos", ctx_r52.displayInfos)("displayPricing", ctx_r52.displayPricing)("maxRecipeNumber", ctx_r52.maxRecipesPerCategory)("modifiedGuests", ctx_r52.guests)("displayRecipeVariant", ctx_r52.displayRecipeVariant)("originTrace", ctx_r52.eventTrace);
25575
25768
  }
25576
25769
  }
@@ -25578,7 +25771,7 @@
25578
25771
  if (rf & 1) {
25579
25772
  i0__namespace.ɵɵelementContainerStart(0);
25580
25773
  i0__namespace.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_container_1_Template, 2, 9, "ng-container", 70);
25581
- i0__namespace.ɵɵtemplate(2, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template, 9, 12, "ng-template", null, 71, i0__namespace.ɵɵtemplateRefExtractor);
25774
+ i0__namespace.ɵɵtemplate(2, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template, 10, 11, "ng-template", null, 71, i0__namespace.ɵɵtemplateRefExtractor);
25582
25775
  i0__namespace.ɵɵelementContainerEnd();
25583
25776
  }
25584
25777
  if (rf & 2) {
@@ -25611,11 +25804,11 @@
25611
25804
  }
25612
25805
  function RecipeCatalogComponent_div_2_Template(rf, ctx) {
25613
25806
  if (rf & 1) {
25614
- var _r63_1 = i0__namespace.ɵɵgetCurrentView();
25807
+ var _r62_1 = i0__namespace.ɵɵgetCurrentView();
25615
25808
  i0__namespace.ɵɵelementStart(0, "div", 3);
25616
25809
  i0__namespace.ɵɵelementStart(1, "div", 4);
25617
25810
  i0__namespace.ɵɵelementStart(2, "ng-miam-catalog-header", 5);
25618
- i0__namespace.ɵɵlistener("returnButtonPressed", function RecipeCatalogComponent_div_2_Template_ng_miam_catalog_header_returnButtonPressed_2_listener() { i0__namespace.ɵɵrestoreView(_r63_1); var ctx_r62 = i0__namespace.ɵɵnextContext(); return ctx_r62.returnToHomePage(); });
25811
+ i0__namespace.ɵɵlistener("returnButtonPressed", function RecipeCatalogComponent_div_2_Template_ng_miam_catalog_header_returnButtonPressed_2_listener() { i0__namespace.ɵɵrestoreView(_r62_1); var ctx_r61 = i0__namespace.ɵɵnextContext(); return ctx_r61.returnToHomePage(); });
25619
25812
  i0__namespace.ɵɵelementEnd();
25620
25813
  i0__namespace.ɵɵtemplate(3, RecipeCatalogComponent_div_2_div_3_Template, 1, 0, "div", 6);
25621
25814
  i0__namespace.ɵɵtemplate(4, RecipeCatalogComponent_div_2_div_4_Template, 3, 7, "div", 7);
@@ -25624,10 +25817,10 @@
25624
25817
  i0__namespace.ɵɵtemplate(7, RecipeCatalogComponent_div_2_div_7_Template, 17, 16, "div", 10);
25625
25818
  i0__namespace.ɵɵelementEnd();
25626
25819
  i0__namespace.ɵɵelementStart(8, "ng-miam-recipe-filters", 11);
25627
- i0__namespace.ɵɵlistener("filterChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_filterChanged_8_listener($event) { i0__namespace.ɵɵrestoreView(_r63_1); var ctx_r64 = i0__namespace.ɵɵnextContext(); return ctx_r64.updateFilters($event); })("filterCollapsed", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_filterCollapsed_8_listener() { i0__namespace.ɵɵrestoreView(_r63_1); var ctx_r65 = i0__namespace.ɵɵnextContext(); return ctx_r65.onFilterCollapsed(); })("preferencesChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_preferencesChanged_8_listener() { i0__namespace.ɵɵrestoreView(_r63_1); var ctx_r66 = i0__namespace.ɵɵnextContext(); return ctx_r66.reloadPackages(); });
25820
+ i0__namespace.ɵɵlistener("filterChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_filterChanged_8_listener($event) { i0__namespace.ɵɵrestoreView(_r62_1); var ctx_r63 = i0__namespace.ɵɵnextContext(); return ctx_r63.updateFilters($event); })("filterCollapsed", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_filterCollapsed_8_listener() { i0__namespace.ɵɵrestoreView(_r62_1); var ctx_r64 = i0__namespace.ɵɵnextContext(); return ctx_r64.onFilterCollapsed(); })("preferencesChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_preferencesChanged_8_listener() { i0__namespace.ɵɵrestoreView(_r62_1); var ctx_r65 = i0__namespace.ɵɵnextContext(); return ctx_r65.reloadPackages(); });
25628
25821
  i0__namespace.ɵɵelementEnd();
25629
25822
  i0__namespace.ɵɵelementStart(9, "ng-miam-preferences", 12);
25630
- i0__namespace.ɵɵlistener("isOpenChange", function RecipeCatalogComponent_div_2_Template_ng_miam_preferences_isOpenChange_9_listener($event) { i0__namespace.ɵɵrestoreView(_r63_1); var ctx_r67 = i0__namespace.ɵɵnextContext(); return ctx_r67.isPreferenceModalOpen = $event; })("preferencesChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_preferences_preferencesChanged_9_listener() { i0__namespace.ɵɵrestoreView(_r63_1); var ctx_r68 = i0__namespace.ɵɵnextContext(); ctx_r68.updateFilters(ctx_r68.filters, false); return ctx_r68.reloadPackages(); });
25823
+ i0__namespace.ɵɵlistener("isOpenChange", function RecipeCatalogComponent_div_2_Template_ng_miam_preferences_isOpenChange_9_listener($event) { i0__namespace.ɵɵrestoreView(_r62_1); var ctx_r66 = i0__namespace.ɵɵnextContext(); return ctx_r66.isPreferenceModalOpen = $event; })("preferencesChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_preferences_preferencesChanged_9_listener() { i0__namespace.ɵɵrestoreView(_r62_1); var ctx_r67 = i0__namespace.ɵɵnextContext(); ctx_r67.updateFilters(ctx_r67.filters, false); return ctx_r67.reloadPackages(); });
25631
25824
  i0__namespace.ɵɵelementEnd();
25632
25825
  i0__namespace.ɵɵtemplate(10, RecipeCatalogComponent_div_2_ng_template_10_Template, 1, 1, "ng-template", null, 13, i0__namespace.ɵɵtemplateRefExtractor);
25633
25826
  i0__namespace.ɵɵelementEnd();
@@ -25655,13 +25848,14 @@
25655
25848
  }
25656
25849
  var RecipeCatalogComponent = /** @class */ (function (_super) {
25657
25850
  __extends(RecipeCatalogComponent, _super);
25658
- function RecipeCatalogComponent(analyticsService, cdr, sponsorService, supplierService, packageService, recipesService, mediaMatcher, usersService, catalogSettingService, basketsService, contextService, historyService, sanitizer) {
25851
+ function RecipeCatalogComponent(analyticsService, cdr, sponsorService, supplierService, packageService, recipesService, plannerSSRService, mediaMatcher, usersService, catalogSettingService, basketsService, contextService, historyService, sanitizer) {
25659
25852
  var _this = _super.call(this, analyticsService) || this;
25660
25853
  _this.cdr = cdr;
25661
25854
  _this.sponsorService = sponsorService;
25662
25855
  _this.supplierService = supplierService;
25663
25856
  _this.packageService = packageService;
25664
25857
  _this.recipesService = recipesService;
25858
+ _this.plannerSSRService = plannerSSRService;
25665
25859
  _this.mediaMatcher = mediaMatcher;
25666
25860
  _this.usersService = usersService;
25667
25861
  _this.catalogSettingService = catalogSettingService;
@@ -25692,6 +25886,7 @@
25692
25886
  _this.headerHeightSubscription = new rxjs.Subscription();
25693
25887
  _this.isMobile = mediaMatcher.matchMedia('(max-width: 1022px)').matches;
25694
25888
  _this.historyService.loadHistoryScripts();
25889
+ _this.loadPlannerLink();
25695
25890
  return _this;
25696
25891
  }
25697
25892
  Object.defineProperty(RecipeCatalogComponent.prototype, "isPreferenceModalOpen", {
@@ -25720,6 +25915,8 @@
25720
25915
  _this.cdr.detectChanges();
25721
25916
  }), this.historyService.fetchingHTMLLoader$.subscribe(function () {
25722
25917
  _this.cdr.detectChanges();
25918
+ }), this.plannerSSRService.fetchingHTMLLoader$.subscribe(function () {
25919
+ _this.cdr.detectChanges();
25723
25920
  }), this.assessShowUserFeedback(), this.executeStoredMethodIfLoggedIn().subscribe());
25724
25921
  this.setDirectAccess();
25725
25922
  };
@@ -25999,6 +26196,14 @@
25999
26196
  _this.historyService.replaceNoHistoryRedirection(_this.contextService.catalogUrl);
26000
26197
  }));
26001
26198
  };
26199
+ RecipeCatalogComponent.prototype.loadPlannerLink = function () {
26200
+ var _this = this;
26201
+ this.supplierService.supplier$.pipe(operators.skipWhile(function (supplier) { return !supplier; }), operators.take(1), operators.switchMap(function () { return _this.plannerSSRService.displayPlannerLink(); })).subscribe(function (plannerLinks) {
26202
+ _this.plannerCardLinkHTML = _this.sanitizer.bypassSecurityTrustHtml(plannerLinks.plannerCard);
26203
+ _this.plannerBannerLinkHTML = _this.sanitizer.bypassSecurityTrustHtml(plannerLinks.plannerBanner);
26204
+ _this.cdr.detectChanges();
26205
+ });
26206
+ };
26002
26207
  RecipeCatalogComponent.prototype.initCategories = function (packages) {
26003
26208
  this.categories = packages.data.map(function (categoryPackage) { return ({
26004
26209
  key: categoryPackage.title.trim().toLowerCase().replace(/[^a-zA-Z0-9 -]/, '').replace(/\s/g, '-'),
@@ -26101,7 +26306,7 @@
26101
26306
  };
26102
26307
  return RecipeCatalogComponent;
26103
26308
  }(EventTracerComponent));
26104
- RecipeCatalogComponent.ɵfac = function RecipeCatalogComponent_Factory(t) { return new (t || RecipeCatalogComponent)(i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SponsorService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(PackageService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(i8__namespace.MediaMatcher), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(CatalogSettingsService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(HistoryService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.DomSanitizer)); };
26309
+ RecipeCatalogComponent.ɵfac = function RecipeCatalogComponent_Factory(t) { return new (t || RecipeCatalogComponent)(i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(SponsorService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(PackageService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(PlannerSSRService), i0__namespace.ɵɵdirectiveInject(i8__namespace.MediaMatcher), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(CatalogSettingsService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(HistoryService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.DomSanitizer)); };
26105
26310
  RecipeCatalogComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeCatalogComponent, selectors: [["ng-miam-recipe-catalog"]], viewQuery: function RecipeCatalogComponent_Query(rf, ctx) {
26106
26311
  if (rf & 1) {
26107
26312
  i0__namespace.ɵɵviewQuery(CatalogHeaderComponent, 1);
@@ -26207,7 +26412,7 @@
26207
26412
  else {
26208
26413
  i18n_23 = $localize(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject([":\u241F6a492aeb2aa6401461c8cc248fff941988ab5dda\u241F371620413575748610:Toutes nos recettes"], [":\u241F6a492aeb2aa6401461c8cc248fff941988ab5dda\u241F371620413575748610:Toutes nos recettes"])));
26209
26414
  }
26210
- return [[1, "miam-catalog-anchor"], ["miamCatalogTopAnchor", ""], ["class", "miam-recipe-catalog", 4, "ngIf"], [1, "miam-recipe-catalog"], [1, "miam-recipe-catalog__content"], [3, "home", "history", "searchTerm", "additionalFiltersTitle", "homeLabel", "pictureUrl", "catalogSetting", "returnButtonPressed"], ["class", "miam-recipe-catalog__toolbar-container-anchor", 4, "ngIf"], ["class", "miam-recipe-catalog__toolbar-container", 4, "ngIf"], ["class", "miam-recipe-catalog__promotions-banner", 4, "ngIf"], ["class", "miam-recipe-catalog__content__myMeal__button", 3, "click", 4, "ngIf"], ["class", "miam-recipe-catalog__list", 4, "ngIf", "ngIfElse"], [3, "filters", "isFilterCollapsed", "filterToRemove", "position", "filterChanged", "filterCollapsed", "preferencesChanged"], [3, "isOpen", "filters", "isOpenChange", "preferencesChanged"], ["categoriesComponents", ""], [1, "miam-recipe-catalog__toolbar-container-anchor"], [1, "miam-recipe-catalog__toolbar-container"], ["stickyToolbar", ""], [3, "home", "history", "searchTerm", "additionalFiltersTitle", "hideButtons", "filterBadgeCount", "reduced", "filterButtonPressed", "preferencesButtonPressed", "searchStringChanged", "favoritesButtonPressed", "returnHomePressed"], [1, "miam-recipe-catalog__promotions-banner"], [3, "clicked"], [1, "miam-recipe-catalog__content__myMeal__button", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/cutlery-white.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-catalog__myMeal__first__icon"], [1, "miam-recipe-catalog__myMeal__button__text", "miam-ds-text", "weight-xl"], i18n_2, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-catalog__myMeal__second__icon"], [1, "miam-recipe-catalog__list"], [1, "miam-recipe-catalog__content__title"], ["aria-label", "Retour \u00E0 la page d'accueil", 1, "miam-recipe-catalog__content__title-icon", "miam-ds-button", "primary", "square", 3, "click"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ArrowLeft_white.svg"], ["class", "miam-recipe-catalog__content__title__search__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__favorites__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__promotions__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__all-recipes__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__category", 4, "ngIf"], ["class", "miam-recipe-catalog__content__default__text", 4, "ngIf"], ["class", "miam-catalog-tabs miam-ds-tabs", "role", "tablist", "aria-label", "Options de favoris", 4, "ngIf"], ["stickyToolbarCollection", ""], ["id", "favorites-panel", 3, "ngClass", "filters", "originTrace", "displayPricing", "displayInfos", "modifiedGuests", "displayRecipeVariant", "filterRemoved", 4, "ngIf"], ["class", "miam-recipe-catalog__history-container", "id", "history-panel", 4, "ngIf"], [1, "miam-recipe-catalog__content__title__search__text"], i18n_4, [1, "miam-recipe-catalog__content__title__favorites__text"], [4, "ngIf"], i18n_6, i18n_8, [1, "miam-recipe-catalog__content__title__promotions__text"], i18n_10, [1, "miam-recipe-catalog__content__title__all-recipes__text"], i18n_12, [1, "miam-recipe-catalog__content__title__category"], [1, "miam-ds-text", "size-l", "weight-xxl"], ["class", "miam-ds-text size-s weight-l", 4, "ngIf"], [1, "miam-ds-text", "size-s", "weight-l"], [1, "miam-recipe-catalog__content__default__text"], i18n_14, ["role", "tablist", "aria-label", "Options de favoris", 1, "miam-catalog-tabs", "miam-ds-tabs"], ["role", "tab", "id", "favorites-tab", "aria-controls", "favorites-panel", 1, "miam-catalog-tabs__item", "miam-ds-tab-item", "miam-ds-text", 3, "click"], ["alt", "", "aria-hidden", "true", 3, "src"], i18n_16, ["role", "tab", "id", "history-tab", "aria-controls", "history-panel", 1, "miam-catalog-tabs__item", "miam-ds-tab-item", "miam-ds-text", 3, "click"], i18n_18, ["id", "favorites-panel", 3, "ngClass", "filters", "originTrace", "displayPricing", "displayInfos", "modifiedGuests", "displayRecipeVariant", "filterRemoved"], ["id", "history-panel", 1, "miam-recipe-catalog__history-container"], ["class", "miam-recipe-catalog__history-loader", "aria-live", "polite", 4, "ngIf"], [3, "innerHTML"], ["aria-live", "polite", 1, "miam-recipe-catalog__history-loader"], i18n_21, ["class", "miam-recipe-catalog__categories", 4, "ngIf"], [1, "miam-recipe-catalog__categories"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["firstCategory", ""], [3, "title", "subtitle", "filters", "maxRecipeNumber", "displayInfos", "displayPricing", "originTrace", "modifiedGuests", "displayRecipeVariant", "displayList"], [1, "miam-recipe-catalog__first-category"], [3, "title", "subtitle", "filters", "displayInfos", "displayPricing", "maxRecipeNumber", "modifiedGuests", "displayRecipeVariant", "originTrace", "displayList", "isHidden"], [1, "miam-recipe-catalog__all-banner", 3, "click"], [1, "miam-recipe-catalog__all-banner__text", "miam-ds-text", "size-m", "weight-xl"], i18n_23, [1, "miam-recipe-catalog__all-banner__icon"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ArrowLeft_black.svg", "alt", "", "aria-hidden", "true"]];
26415
+ return [[1, "miam-catalog-anchor"], ["miamCatalogTopAnchor", ""], ["class", "miam-recipe-catalog", 4, "ngIf"], [1, "miam-recipe-catalog"], [1, "miam-recipe-catalog__content"], [3, "home", "history", "searchTerm", "additionalFiltersTitle", "homeLabel", "pictureUrl", "catalogSetting", "returnButtonPressed"], ["class", "miam-recipe-catalog__toolbar-container-anchor", 4, "ngIf"], ["class", "miam-recipe-catalog__toolbar-container", 4, "ngIf"], ["class", "miam-recipe-catalog__promotions-banner", 4, "ngIf"], ["class", "miam-recipe-catalog__content__myMeal__button", 3, "click", 4, "ngIf"], ["class", "miam-recipe-catalog__list", 4, "ngIf", "ngIfElse"], [3, "filters", "isFilterCollapsed", "filterToRemove", "position", "filterChanged", "filterCollapsed", "preferencesChanged"], [3, "isOpen", "filters", "isOpenChange", "preferencesChanged"], ["categoriesComponents", ""], [1, "miam-recipe-catalog__toolbar-container-anchor"], [1, "miam-recipe-catalog__toolbar-container"], ["stickyToolbar", ""], [3, "home", "history", "searchTerm", "additionalFiltersTitle", "hideButtons", "filterBadgeCount", "reduced", "filterButtonPressed", "preferencesButtonPressed", "searchStringChanged", "favoritesButtonPressed", "returnHomePressed"], [1, "miam-recipe-catalog__promotions-banner"], [3, "clicked"], [1, "miam-recipe-catalog__content__myMeal__button", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/cutlery-white.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-catalog__myMeal__first__icon"], [1, "miam-recipe-catalog__myMeal__button__text", "miam-ds-text", "weight-xl"], i18n_2, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-catalog__myMeal__second__icon"], [1, "miam-recipe-catalog__list"], [1, "miam-recipe-catalog__content__title"], ["aria-label", "Retour \u00E0 la page d'accueil", 1, "miam-recipe-catalog__content__title-icon", "miam-ds-button", "primary", "square", 3, "click"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ArrowLeft_white.svg"], ["class", "miam-recipe-catalog__content__title__search__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__favorites__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__promotions__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__all-recipes__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__category", 4, "ngIf"], ["class", "miam-recipe-catalog__content__default__text", 4, "ngIf"], ["class", "miam-catalog-tabs miam-ds-tabs", "role", "tablist", "aria-label", "Options de favoris", 4, "ngIf"], ["stickyToolbarCollection", ""], ["id", "favorites-panel", 3, "ngClass", "filters", "originTrace", "displayPricing", "displayInfos", "modifiedGuests", "displayRecipeVariant", "filterRemoved", 4, "ngIf"], ["class", "miam-recipe-catalog__history-container", "id", "history-panel", 4, "ngIf"], [1, "miam-recipe-catalog__content__title__search__text"], i18n_4, [1, "miam-recipe-catalog__content__title__favorites__text"], [4, "ngIf"], i18n_6, i18n_8, [1, "miam-recipe-catalog__content__title__promotions__text"], i18n_10, [1, "miam-recipe-catalog__content__title__all-recipes__text"], i18n_12, [1, "miam-recipe-catalog__content__title__category"], [1, "miam-ds-text", "size-l", "weight-xxl"], ["class", "miam-ds-text size-s weight-l", 4, "ngIf"], [1, "miam-ds-text", "size-s", "weight-l"], [1, "miam-recipe-catalog__content__default__text"], i18n_14, ["role", "tablist", "aria-label", "Options de favoris", 1, "miam-catalog-tabs", "miam-ds-tabs"], ["role", "tab", "id", "favorites-tab", "aria-controls", "favorites-panel", 1, "miam-catalog-tabs__item", "miam-ds-tab-item", "miam-ds-text", 3, "click"], ["alt", "", "aria-hidden", "true", 3, "src"], i18n_16, ["role", "tab", "id", "history-tab", "aria-controls", "history-panel", 1, "miam-catalog-tabs__item", "miam-ds-tab-item", "miam-ds-text", 3, "click"], i18n_18, ["id", "favorites-panel", 3, "ngClass", "filters", "originTrace", "displayPricing", "displayInfos", "modifiedGuests", "displayRecipeVariant", "filterRemoved"], ["id", "history-panel", 1, "miam-recipe-catalog__history-container"], ["class", "miam-recipe-catalog__history-loader", "aria-live", "polite", 4, "ngIf"], [3, "innerHTML"], ["aria-live", "polite", 1, "miam-recipe-catalog__history-loader"], i18n_21, ["class", "miam-recipe-catalog__categories", 4, "ngIf"], [1, "miam-recipe-catalog__categories"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["firstCategory", ""], [3, "title", "subtitle", "filters", "maxRecipeNumber", "displayInfos", "displayPricing", "originTrace", "modifiedGuests", "displayRecipeVariant", "displayList"], [1, "miam-recipe-catalog__first-category"], [1, "mealz-planner-card-link-container", 3, "innerHTML"], [1, "mealz-planner-banner-link-container", 3, "innerHTML"], [3, "title", "subtitle", "filters", "displayInfos", "displayPricing", "maxRecipeNumber", "modifiedGuests", "displayRecipeVariant", "originTrace", "displayList", "isHidden"], [1, "miam-recipe-catalog__all-banner", 3, "click"], [1, "miam-recipe-catalog__all-banner__text", "miam-ds-text", "size-m", "weight-xl"], i18n_23, [1, "miam-recipe-catalog__all-banner__icon"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ArrowLeft_black.svg", "alt", "", "aria-hidden", "true"]];
26211
26416
  }, template: function RecipeCatalogComponent_Template(rf, ctx) {
26212
26417
  if (rf & 1) {
26213
26418
  i0__namespace.ɵɵelement(0, "div", 0, 1);
@@ -26217,7 +26422,7 @@
26217
26422
  i0__namespace.ɵɵadvance(2);
26218
26423
  i0__namespace.ɵɵproperty("ngIf", ctx.catalogSettingHasLoaded);
26219
26424
  }
26220
- }, directives: [i2__namespace.NgIf, CatalogHeaderComponent, RecipeFiltersComponent, PreferencesComponent, CatalogToolbarComponent, PromotionsBannerComponent, CatalogListComponent, i2__namespace.NgClass, LoaderComponent, i2__namespace.NgForOf, CatalogCategoryComponent, MealsPlannerLinkComponent], pipes: [i2__namespace.AsyncPipe], styles: [".miam-recipe-catalog{display:flex;justify-content:space-between;width:100%;position:relative;background-color:var(--miam-ds-color-neutral-white)}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container-anchor{width:100%}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container{width:-moz-available;width:-webkit-fill-available;width:fill-available;padding:33px 80px 0;box-sizing:border-box;background-color:var(--miam-ds-color-neutral-white);transition:padding .3s ease}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container.sticking{position:fixed;top:0;z-index:10;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px 40px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__toolbar-container{padding:24px 16px 0}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container.sticking{padding:8px}}.miam-recipe-catalog .miam-recipe-catalog__content{width:100%;position:relative}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{width:100%;padding:0 80px;font-size:20px;line-height:34px;font-weight:900;display:flex;align-items:center;gap:16px;color:var(--miam-ds-color-neutral-black,#0f191f);box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__search__text{display:flex;flex-wrap:wrap;gap:6px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title-icon{width:32px;height:32px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title-icon img{cursor:pointer;width:13px;height:13px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__category{display:flex;flex-direction:column;gap:4px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__category .size-s{color:var(--miam-ds-color-neutral-500)}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{width:100%;padding:0 24px;box-sizing:border-box}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__promotions-banner{display:none;justify-content:center;margin-top:36px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{display:flex;flex-direction:column;width:100%;padding:4px 80px 48px;box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{display:flex;flex-direction:row;width:100%;align-items:flex-end}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{margin:0 16px 36px 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{flex:1}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner{border:none;display:flex;padding:24px 0;justify-content:center;align-items:center;gap:8px;align-self:stretch;border-radius:8px;background:var(--miam-ds-color-neutral-100,#eff1f3);cursor:pointer}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner .miam-recipe-catalog__all-banner__text{color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner .miam-recipe-catalog__all-banner__icon{transform:rotate(-180deg);height:24px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{padding:24px 0 48px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{flex-direction:column;align-items:flex-start}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{width:100%;padding:0 24px 24px;box-sizing:border-box;margin:unset}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner{margin:0 24px}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list{width:100%;padding:24px 0;box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container:not(.sticking){padding-bottom:24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container.sticking{padding:8px 24px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container .sticking{padding:8px}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__history-container .miam-recipe-catalog__history-loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__history-container .miam-recipe-catalog__history-loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{position:relative;display:flex;box-sizing:border-box;width:100%;padding:24px 80px 0;background-color:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s ease}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs button.miam-catalog-tabs__item{background:none;border:none;border-bottom:2px solid var(--miam-ds-color-border);display:flex;align-items:center;gap:4px;text-decoration:none}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs button.miam-catalog-tabs__item.active{border-bottom:2px solid var(--miam-ds-color-primary)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs button.miam-catalog-tabs__item.inactive span{color:var(--miam-ds-color-neutral-black,#0f191f);opacity:.7}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{padding:24px 24px 0}}@media (max-width:700px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{padding:24px 0 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs .miam-catalog-tabs__item{width:100%;justify-content:center;display:flex}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__all-banner{background:none;border:none;padding:0;margin:0;width:100%;text-align:left;cursor:pointer;font-family:inherit;font-size:inherit;outline:none}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button{border:none;display:flex;align-items:center;justify-content:space-between;width:400px;position:fixed;left:50%;bottom:16px;transform:translate(-50%);z-index:1;min-height:48px;padding:0 16px;border-radius:1000px;background:var(--miam-color-primary-900,#10323f);box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button>:not(:last-child){margin-right:12px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__button__text{font-weight:700;color:var(--miam-ds-color-neutral-white,#fff);white-space:nowrap}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__second__icon{transform:rotate(-90deg)}@media (max-width:607px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button{width:auto;z-index:2}}.miam-recipe-catalog ng-miam-recipe-card .miam-recipe-card{height:var(--m-catalog-card-height);width:var(--m-catalog-card-width)}"], encapsulation: 2, changeDetection: 0 });
26425
+ }, directives: [i2__namespace.NgIf, CatalogHeaderComponent, RecipeFiltersComponent, PreferencesComponent, CatalogToolbarComponent, PromotionsBannerComponent, CatalogListComponent, i2__namespace.NgClass, LoaderComponent, i2__namespace.NgForOf, CatalogCategoryComponent, MealsPlannerLinkComponent], styles: [".miam-recipe-catalog{display:flex;justify-content:space-between;width:100%;position:relative;background-color:var(--miam-ds-color-neutral-white)}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container-anchor{width:100%}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container{width:-moz-available;width:-webkit-fill-available;width:fill-available;padding:33px 80px 0;box-sizing:border-box;background-color:var(--miam-ds-color-neutral-white);transition:padding .3s ease}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container.sticking{position:fixed;top:0;z-index:10;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px 40px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__toolbar-container{padding:24px 16px 0}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container.sticking{padding:8px}}.miam-recipe-catalog .miam-recipe-catalog__content{width:100%;position:relative}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{width:100%;padding:0 80px;font-size:20px;line-height:34px;font-weight:900;display:flex;align-items:center;gap:16px;color:var(--miam-ds-color-neutral-black,#0f191f);box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__search__text{display:flex;flex-wrap:wrap;gap:6px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title-icon{width:32px;height:32px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title-icon img{cursor:pointer;width:13px;height:13px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__category{display:flex;flex-direction:column;gap:4px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__category .size-s{color:var(--miam-ds-color-neutral-500)}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{width:100%;padding:0 24px;box-sizing:border-box}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__promotions-banner{display:none;justify-content:center;margin-top:36px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{display:flex;flex-direction:column;width:100%;padding:4px 80px 48px;box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{display:flex;flex-direction:row;width:100%;align-items:flex-end}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category .mealz-planner-banner-link-container,.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category .mealz-planner-card-link-container,.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{margin:0 16px 36px 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category .mealz-planner-banner-link-container{display:none}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category mealz-planner-card-link .mealz-planner-card-link{display:flex;position:relative;height:var(--m-catalog-card-height);width:var(--m-catalog-card-width);flex-grow:1;background-position:50%;background-size:cover;border-radius:8px;cursor:pointer}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{flex:1}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner{border:none;display:flex;padding:24px 0;justify-content:center;align-items:center;gap:8px;align-self:stretch;border-radius:8px;background:var(--miam-ds-color-neutral-100,#eff1f3);cursor:pointer}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner .miam-recipe-catalog__all-banner__text{color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner .miam-recipe-catalog__all-banner__icon{transform:rotate(-180deg);height:24px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{padding:24px 0 48px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{flex-direction:column;align-items:flex-start}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category .mealz-planner-banner-link-container,.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category .mealz-planner-card-link-container,.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{width:100%;padding:0 24px 24px;box-sizing:border-box;margin:unset;display:block}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category .mealz-planner-banner-link-container{padding:0 0 0 24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category .mealz-planner-card-link-container{display:none}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category mealz-planner-card-link .mealz-planner-card-link{height:144px;width:100%;max-width:unset;margin:0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner{margin:0 24px}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list{width:100%;padding:24px 0;box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container:not(.sticking){padding-bottom:24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container.sticking{padding:8px 24px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container .sticking{padding:8px}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__history-container .miam-recipe-catalog__history-loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__history-container .miam-recipe-catalog__history-loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{position:relative;display:flex;box-sizing:border-box;width:100%;padding:24px 80px 0;background-color:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s ease}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs button.miam-catalog-tabs__item{background:none;border:none;border-bottom:2px solid var(--miam-ds-color-border);display:flex;align-items:center;gap:4px;text-decoration:none}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs button.miam-catalog-tabs__item.active{border-bottom:2px solid var(--miam-ds-color-primary)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs button.miam-catalog-tabs__item.inactive span{color:var(--miam-ds-color-neutral-black,#0f191f);opacity:.7}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{padding:24px 24px 0}}@media (max-width:700px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{padding:24px 0 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs .miam-catalog-tabs__item{width:100%;justify-content:center;display:flex}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__all-banner{background:none;border:none;padding:0;margin:0;width:100%;text-align:left;cursor:pointer;font-family:inherit;font-size:inherit;outline:none}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button{border:none;display:flex;align-items:center;justify-content:space-between;width:400px;position:fixed;left:50%;bottom:16px;transform:translate(-50%);z-index:1;min-height:48px;padding:0 16px;border-radius:1000px;background:var(--miam-color-primary-900,#10323f);box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button>:not(:last-child){margin-right:12px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__button__text{font-weight:700;color:var(--miam-ds-color-neutral-white,#fff);white-space:nowrap}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__second__icon{transform:rotate(-90deg)}@media (max-width:607px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button{width:auto;z-index:2}}.miam-recipe-catalog ng-miam-recipe-card .miam-recipe-card{height:var(--m-catalog-card-height);width:var(--m-catalog-card-width)}"], encapsulation: 2, changeDetection: 0 });
26221
26426
  (function () {
26222
26427
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeCatalogComponent, [{
26223
26428
  type: i0.Component,
@@ -26228,7 +26433,7 @@
26228
26433
  encapsulation: i0.ViewEncapsulation.None,
26229
26434
  changeDetection: i0.ChangeDetectionStrategy.OnPush
26230
26435
  }]
26231
- }], function () { return [{ type: AnalyticsService }, { type: i0__namespace.ChangeDetectorRef }, { type: SponsorService }, { type: SuppliersService }, { type: PackageService }, { type: RecipesService }, { type: i8__namespace.MediaMatcher }, { type: UserService }, { type: CatalogSettingsService }, { type: BasketsService }, { type: ContextService }, { type: HistoryService }, { type: i2__namespace$1.DomSanitizer }]; }, { catalogHeader: [{
26436
+ }], function () { return [{ type: AnalyticsService }, { type: i0__namespace.ChangeDetectorRef }, { type: SponsorService }, { type: SuppliersService }, { type: PackageService }, { type: RecipesService }, { type: PlannerSSRService }, { type: i8__namespace.MediaMatcher }, { type: UserService }, { type: CatalogSettingsService }, { type: BasketsService }, { type: ContextService }, { type: HistoryService }, { type: i2__namespace$1.DomSanitizer }]; }, { catalogHeader: [{
26232
26437
  type: i0.ViewChild,
26233
26438
  args: [CatalogHeaderComponent]
26234
26439
  }], catalogToolbar: [{