ng-miam 9.3.12 → 9.3.13
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.
- package/bundles/ng-miam.umd.js +33 -41
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/meals-planner-link/meals-planner-link.component.js +1 -1
- package/esm2015/lib/_services/context.service.js +3 -5
- package/esm2015/lib/_services/pending-basket-methods.service.js +13 -1
- package/esm2015/lib/_services/planner-ssr.service.js +2 -14
- package/esm2015/lib/_web-components/meals-planner/meals-planner.component.js +3 -2
- package/esm2015/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-catalog/catalog-toolbar/catalog-toolbar.component.js +7 -5
- package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +10 -18
- package/esm2015/lib/environments/version.js +2 -2
- package/fesm2015/ng-miam.js +33 -40
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_services/context.service.d.ts +1 -1
- package/lib/_services/context.service.d.ts.map +1 -1
- package/lib/_services/pending-basket-methods.service.d.ts +2 -0
- package/lib/_services/pending-basket-methods.service.d.ts.map +1 -1
- package/lib/_services/planner-ssr.service.d.ts +0 -5
- package/lib/_services/planner-ssr.service.d.ts.map +1 -1
- package/lib/_web-components/meals-planner/meals-planner.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-catalog/catalog-toolbar/catalog-toolbar.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts +0 -2
- package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts.map +1 -1
- package/lib/environments/version.d.ts +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -3652,7 +3652,7 @@
|
|
|
3652
3652
|
EventJourney["EMPTY"] = "";
|
|
3653
3653
|
})(EventJourney || (EventJourney = {}));
|
|
3654
3654
|
|
|
3655
|
-
var VERSION = "9.3.
|
|
3655
|
+
var VERSION = "9.3.13"; // TODO: replace by ##VERSION## and update it in the CI/CD
|
|
3656
3656
|
|
|
3657
3657
|
var ContextRegistryService = /** @class */ (function () {
|
|
3658
3658
|
function ContextRegistryService() {
|
|
@@ -8247,7 +8247,6 @@
|
|
|
8247
8247
|
this.userService = userService;
|
|
8248
8248
|
this.posService = posService;
|
|
8249
8249
|
this.basketsService = basketsService;
|
|
8250
|
-
this.catalogPlannerLinkUrl = MEALZ_SSR_API + "/styles/planner-link";
|
|
8251
8250
|
this.plannerUrl = MEALZ_SSR_API + "/styles/planner";
|
|
8252
8251
|
this.allScriptLoaded$ = new rxjs.BehaviorSubject(false);
|
|
8253
8252
|
this.allStylesLoaded$ = new rxjs.BehaviorSubject(false);
|
|
@@ -8263,18 +8262,6 @@
|
|
|
8263
8262
|
PlannerSSRService.prototype.getPlannerStyles = function () {
|
|
8264
8263
|
return this.http.get(this.plannerUrl, {});
|
|
8265
8264
|
};
|
|
8266
|
-
PlannerSSRService.prototype.displayPlannerLink = function () {
|
|
8267
|
-
var _this = this;
|
|
8268
|
-
var plannerCardUrl = MEALZ_SSR_API + "/planner-card-link";
|
|
8269
|
-
var plannerBannerUrl = MEALZ_SSR_API + "/planner-banner-link";
|
|
8270
|
-
var headers = this.buildHeaders();
|
|
8271
|
-
this.loadStyles(this.catalogPlannerLinkUrl);
|
|
8272
|
-
this.fetchingHTMLLoader$.next(true);
|
|
8273
|
-
return rxjs.forkJoin({
|
|
8274
|
-
plannerCard: this.http.get(plannerCardUrl, { headers: headers, responseType: 'text' }),
|
|
8275
|
-
plannerBanner: this.http.get(plannerBannerUrl, { headers: headers, responseType: 'text' })
|
|
8276
|
-
}).pipe(operators.tap(function () { return _this.fetchingHTMLLoader$.next(false); }));
|
|
8277
|
-
};
|
|
8278
8265
|
PlannerSSRService.prototype.getPlannerDashboard = function () {
|
|
8279
8266
|
var _this = this;
|
|
8280
8267
|
this.fetchingHTMLLoader$.next(true);
|
|
@@ -8576,7 +8563,7 @@
|
|
|
8576
8563
|
this.noSupplier = false;
|
|
8577
8564
|
this.loggedOnSession = false;
|
|
8578
8565
|
this.isPreferencesSSR = false;
|
|
8579
|
-
this.orderHistoryEnabled = false;
|
|
8566
|
+
this.orderHistoryEnabled$ = new rxjs.BehaviorSubject(false);
|
|
8580
8567
|
this.enableMealsPlanner$ = new rxjs.BehaviorSubject(false);
|
|
8581
8568
|
this.addAllProductsWasClicked = new i0.EventEmitter();
|
|
8582
8569
|
this.guestsChanged = new i0.EventEmitter();
|
|
@@ -8776,9 +8763,7 @@
|
|
|
8776
8763
|
_this.mealz.supplier.setOrigin(parsedToken.origin);
|
|
8777
8764
|
_this.mealz.analytics.init(parsedToken.domain);
|
|
8778
8765
|
_this.contextRegistryService.disabledAnalytics = !!parsedToken.disableAnalytics;
|
|
8779
|
-
|
|
8780
|
-
_this.orderHistoryEnabled = parsedToken.orderHistory;
|
|
8781
|
-
}
|
|
8766
|
+
_this.orderHistoryEnabled$.next(!!parsedToken.orderHistory);
|
|
8782
8767
|
if (parsedToken.noSupplier) {
|
|
8783
8768
|
_this.loadStoreLocatorPackage();
|
|
8784
8769
|
_this.noSupplier = true;
|
|
@@ -11192,6 +11177,10 @@
|
|
|
11192
11177
|
* either adds recipes to the basket or ingredients to the basket.
|
|
11193
11178
|
*/
|
|
11194
11179
|
PendingBasketMethodsService.prototype.getStoredMethod = function () {
|
|
11180
|
+
this.basketMethods();
|
|
11181
|
+
this.navigateMethods();
|
|
11182
|
+
};
|
|
11183
|
+
PendingBasketMethodsService.prototype.basketMethods = function () {
|
|
11195
11184
|
var storedMethod = localStorage.getItem('_miam/storeCallbackMethod');
|
|
11196
11185
|
if (storedMethod && storedMethod !== 'setFavoritesFilter') {
|
|
11197
11186
|
var parsedStoredData = JSON.parse(localStorage.getItem('_miam/storeCallbackMethod'));
|
|
@@ -11200,6 +11189,14 @@
|
|
|
11200
11189
|
localStorage.removeItem('_miam/storeCallbackMethod');
|
|
11201
11190
|
}
|
|
11202
11191
|
};
|
|
11192
|
+
PendingBasketMethodsService.prototype.navigateMethods = function () {
|
|
11193
|
+
// _miam/cachedFinalizeMenuUrl stores the url to for the planner to navigate to after the user has finalized the menu
|
|
11194
|
+
var storedMethod = localStorage.getItem('_miam/cachedFinalizeMenuUrl');
|
|
11195
|
+
if (storedMethod && !window.location.href.includes(storedMethod)) {
|
|
11196
|
+
window.location.href = storedMethod;
|
|
11197
|
+
// We don't remove the item from localStorage because after navigation Mealz components needs it to finalize the menu
|
|
11198
|
+
}
|
|
11199
|
+
};
|
|
11203
11200
|
return PendingBasketMethodsService;
|
|
11204
11201
|
}());
|
|
11205
11202
|
PendingBasketMethodsService.ɵfac = function PendingBasketMethodsService_Factory(t) { return new (t || PendingBasketMethodsService)(i0__namespace.ɵɵinject(ContextService), i0__namespace.ɵɵinject(UserService), i0__namespace.ɵɵinject(PointOfSalesService), i0__namespace.ɵɵinject(BasketsService), i0__namespace.ɵɵinject(RecipesService)); };
|
|
@@ -21348,7 +21345,8 @@
|
|
|
21348
21345
|
};
|
|
21349
21346
|
MealsPlannerComponent.prototype.loadPlannerDashboardHTML = function () {
|
|
21350
21347
|
var _this = this;
|
|
21351
|
-
var
|
|
21348
|
+
var urlParams = new URLSearchParams(window.location.search);
|
|
21349
|
+
var skipDashboard = localStorage.getItem('_mealz/planner/from-entry') === 'true' || urlParams.get('fromFeatured') === 'true';
|
|
21352
21350
|
if (skipDashboard) {
|
|
21353
21351
|
return this.plannerSSRService.getCurrentMenu().pipe(operators.map(function (currentMenu) { return _this.sanitizer.bypassSecurityTrustHtml(currentMenu); }));
|
|
21354
21352
|
}
|
|
@@ -24410,7 +24408,7 @@
|
|
|
24410
24408
|
if (rf & 2) {
|
|
24411
24409
|
i0__namespace.ɵɵproperty("ngIf", !ctx.hide);
|
|
24412
24410
|
}
|
|
24413
|
-
}, directives: [i1__namespace.NgIf, InViewportDirective, i1__namespace.NgForOf, LoaderComponent, RecipeCardComponent], pipes: [i1__namespace.AsyncPipe], styles: [".miam-catalog-category{display:flex;flex-direction:column
|
|
24411
|
+
}, directives: [i1__namespace.NgIf, InViewportDirective, i1__namespace.NgForOf, LoaderComponent, RecipeCardComponent], pipes: [i1__namespace.AsyncPipe], styles: [".miam-catalog-category{display:flex;flex-direction:column}.miam-catalog-category .miam-catalog-category__header{display:flex;flex-direction:column;margin-bottom:16px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__title{width:-moz-fit-content;width:fit-content;margin-bottom:4px;font-size:24px;line-height:34px;font-weight:700;cursor:pointer}@media (min-width:1024px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__title:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom{display:flex;align-items:center;justify-content:space-between;width:100%}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom .miam-catalog-category__subtitle{color:var(--miam-ds-color-neutral-500)}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom .miam-catalog-category__link{background:none;border:none;display:flex;align-items:center;color:var(--miam-ds-color-primary);cursor:pointer;white-space:nowrap;margin-left:16px;margin-right:4px}@media (min-width:1024px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom .miam-catalog-category__link:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__content{position:relative;overflow:hidden;width:100%;height:var(--m-catalog-card-height);box-sizing:content-box}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{display:flex;flex-direction:row;flex-wrap:wrap;transition-duration:.5s;gap:16px}@media (min-width:1025px){.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards ng-miam-recipe-card{flex:1;min-width:240px;max-width:308px;display:flex}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards ng-miam-recipe-card .miam-recipe-card{flex:1}}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}@media (max-width:1023px){.miam-catalog-category .miam-catalog-category__header{flex-direction:column;align-items:flex-start;margin:0 24px 8px}.miam-catalog-category .miam-catalog-category__content{overflow-x:auto}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{flex-wrap:nowrap;padding:0 24px}}"], encapsulation: 2, changeDetection: 0 });
|
|
24414
24412
|
(function () {
|
|
24415
24413
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CatalogCategoryComponent, [{
|
|
24416
24414
|
type: i0.Component,
|
|
@@ -24591,9 +24589,9 @@
|
|
|
24591
24589
|
if (rf & 2) {
|
|
24592
24590
|
var ctx_r7 = i0__namespace.ɵɵnextContext();
|
|
24593
24591
|
i0__namespace.ɵɵadvance(1);
|
|
24594
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r7.context.orderHistoryEnabled);
|
|
24592
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r7.context.orderHistoryEnabled$.value);
|
|
24595
24593
|
i0__namespace.ɵɵadvance(1);
|
|
24596
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r7.context.orderHistoryEnabled);
|
|
24594
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r7.context.orderHistoryEnabled$.value);
|
|
24597
24595
|
}
|
|
24598
24596
|
}
|
|
24599
24597
|
var _c11 = function (a0) { return { "hidden-reduced": a0 }; };
|
|
@@ -24617,7 +24615,9 @@
|
|
|
24617
24615
|
}
|
|
24618
24616
|
CatalogToolbarComponent.prototype.ngOnInit = function () {
|
|
24619
24617
|
var _this = this;
|
|
24620
|
-
this.subscriptions.push(this.
|
|
24618
|
+
this.subscriptions.push(this.context.orderHistoryEnabled$.subscribe(function () {
|
|
24619
|
+
_this.cdr.detectChanges();
|
|
24620
|
+
}), this.preferencesService.currentPreferencesNumber.subscribe(function (number) {
|
|
24621
24621
|
_this.preferencesBadgeCount = number;
|
|
24622
24622
|
_this.cdr.detectChanges();
|
|
24623
24623
|
}));
|
|
@@ -24736,7 +24736,7 @@
|
|
|
24736
24736
|
i0__namespace.ɵɵproperty("ngIf", ctx.preferencesBadgeCount > 0);
|
|
24737
24737
|
i0__namespace.ɵɵadvance(1);
|
|
24738
24738
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction3(24, _c12, ctx.hideButtons, ctx.reduced, !ctx.reduced))("disabled", ctx.hideButtons);
|
|
24739
|
-
i0__namespace.ɵɵattribute("aria-label", ctx.context.orderHistoryEnabled ? "Mon carnet" : "Favoris");
|
|
24739
|
+
i0__namespace.ɵɵattribute("aria-label", ctx.context.orderHistoryEnabled$.value ? "Mon carnet" : "Favoris");
|
|
24740
24740
|
i0__namespace.ɵɵadvance(1);
|
|
24741
24741
|
i0__namespace.ɵɵproperty("src", ctx.hideButtons ? "https://storage.googleapis.com/assets.miam.tech/generic/icons/Heart_grey.svg" : "https://storage.googleapis.com/assets.miam.tech/generic/icons/Heart_Black.svg", i0__namespace.ɵɵsanitizeUrl);
|
|
24742
24742
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -25582,9 +25582,9 @@
|
|
|
25582
25582
|
if (rf & 2) {
|
|
25583
25583
|
var ctx_r24 = i0__namespace.ɵɵnextContext(2);
|
|
25584
25584
|
i0__namespace.ɵɵadvance(1);
|
|
25585
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r24.contextService.orderHistoryEnabled);
|
|
25585
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r24.contextService.orderHistoryEnabled$.value);
|
|
25586
25586
|
i0__namespace.ɵɵadvance(1);
|
|
25587
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r24.contextService.orderHistoryEnabled);
|
|
25587
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r24.contextService.orderHistoryEnabled$.value);
|
|
25588
25588
|
}
|
|
25589
25589
|
}
|
|
25590
25590
|
function RecipeCatalogComponent_div_9_span_6_Template(rf, ctx) {
|
|
@@ -25682,7 +25682,7 @@
|
|
|
25682
25682
|
if (rf & 2) {
|
|
25683
25683
|
var ctx_r31 = i0__namespace.ɵɵnextContext(2);
|
|
25684
25684
|
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction5(8, _c20, ctx_r31.isFavoritesPage(), ctx_r31.isSearchPage(), ctx_r31.isAllRecipesPage(), ctx_r31.isCategoryPage(), ctx_r31.isDefaultPage()))("filters", ctx_r31.filters)("originTrace", ctx_r31.eventTrace)("displayPricing", ctx_r31.displayPricing)("displayInfos", ctx_r31.displayInfos)("modifiedGuests", ctx_r31.guests)("displayRecipeVariant", ctx_r31.displayRecipeVariant);
|
|
25685
|
-
i0__namespace.ɵɵattribute("aria-labelledby", ctx_r31.isFavoritesPage() && ctx_r31.contextService.orderHistoryEnabled ? "favorites-tab" : null);
|
|
25685
|
+
i0__namespace.ɵɵattribute("aria-labelledby", ctx_r31.isFavoritesPage() && ctx_r31.contextService.orderHistoryEnabled$.value ? "favorites-tab" : null);
|
|
25686
25686
|
}
|
|
25687
25687
|
}
|
|
25688
25688
|
function RecipeCatalogComponent_div_9_div_16_div_1_Template(rf, ctx) {
|
|
@@ -25754,13 +25754,13 @@
|
|
|
25754
25754
|
i0__namespace.ɵɵadvance(1);
|
|
25755
25755
|
i0__namespace.ɵɵproperty("ngIf", ctx_r6.isDefaultPage());
|
|
25756
25756
|
i0__namespace.ɵɵadvance(2);
|
|
25757
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r6.isFavoritesPage() && ctx_r6.contextService.orderHistoryEnabled);
|
|
25757
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r6.isFavoritesPage() && ctx_r6.contextService.orderHistoryEnabled$.value);
|
|
25758
25758
|
i0__namespace.ɵɵadvance(3);
|
|
25759
25759
|
i0__namespace.ɵɵproperty("home", ctx_r6.displayHomePage())("history", ctx_r6.historyDisplayed)("searchTerm", ctx_r6.filters == null ? null : ctx_r6.filters.search)("additionalFiltersTitle", ctx_r6.filters == null ? null : ctx_r6.filters.additionalFilters == null ? null : ctx_r6.filters.additionalFilters.title)("hideButtons", ctx_r6.isFavoritesPage())("filterBadgeCount", ctx_r6.filters.selectableFiltersCount())("reduced", _r30.classList.contains("sticking"));
|
|
25760
25760
|
i0__namespace.ɵɵadvance(1);
|
|
25761
25761
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r6.historyDisplayed);
|
|
25762
25762
|
i0__namespace.ɵɵadvance(1);
|
|
25763
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r6.contextService.orderHistoryEnabled && ctx_r6.historyDisplayed);
|
|
25763
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r6.contextService.orderHistoryEnabled$.value && ctx_r6.historyDisplayed);
|
|
25764
25764
|
}
|
|
25765
25765
|
}
|
|
25766
25766
|
function RecipeCatalogComponent_ng_template_12_div_0_Template(rf, ctx) {
|
|
@@ -25922,7 +25922,9 @@
|
|
|
25922
25922
|
this.analyticsService.isMealzPage = true;
|
|
25923
25923
|
this.pageview();
|
|
25924
25924
|
this.initFilters();
|
|
25925
|
-
this.subscriptions.push(this.
|
|
25925
|
+
this.subscriptions.push(this.contextService.orderHistoryEnabled$.subscribe(function () {
|
|
25926
|
+
_this.cdr.detectChanges();
|
|
25927
|
+
}), this.supplierService.supplier$.asObservable().pipe(operators.skipWhile(function (supp) { return supp === undefined || supp == null; }), operators.take(1), operators.switchMap(function (supplier) {
|
|
25926
25928
|
_this.supplierId = supplier.id;
|
|
25927
25929
|
_this.initializeCatalogHeader();
|
|
25928
25930
|
_this.observeHighlightedCategoryClick();
|
|
@@ -26204,16 +26206,6 @@
|
|
|
26204
26206
|
};
|
|
26205
26207
|
RecipeCatalogComponent.prototype.loadPlannerLink = function () {
|
|
26206
26208
|
var _this = this;
|
|
26207
|
-
// CARD LINK VERSION FOR PLANNER
|
|
26208
|
-
// this.supplierService.supplier$.pipe(
|
|
26209
|
-
// skipWhile(supplier => !supplier), take(1),
|
|
26210
|
-
// switchMap(() => this.plannerSSRService.displayPlannerLink())
|
|
26211
|
-
// ).subscribe((plannerLinks: { plannerCard: string; plannerBanner: string; }) => {
|
|
26212
|
-
// // this.plannerCardLinkHTML = this.sanitizer.bypassSecurityTrustHtml(plannerLinks.plannerCard);
|
|
26213
|
-
// // this.plannerBannerLinkHTML = this.sanitizer.bypassSecurityTrustHtml(plannerLinks.plannerBanner);
|
|
26214
|
-
// this.cdr.detectChanges();
|
|
26215
|
-
// });
|
|
26216
|
-
// ENTRY VERSION FOR PLANNER
|
|
26217
26209
|
this.subscriptions.push(this.plannerSSRService.getEntry().subscribe(function (entryHTML) {
|
|
26218
26210
|
_this.plannerEntryHTML = _this.sanitizer.bypassSecurityTrustHtml(entryHTML);
|
|
26219
26211
|
_this.plannerEntryLoading = false;
|
|
@@ -26493,7 +26485,7 @@
|
|
|
26493
26485
|
i0__namespace.ɵɵadvance(1);
|
|
26494
26486
|
i0__namespace.ɵɵproperty("isOpen", ctx.isPreferenceModalOpen)("filters", ctx.filters);
|
|
26495
26487
|
}
|
|
26496
|
-
}, directives: [i1__namespace.NgIf, RecipeFiltersComponent, PreferencesComponent, CatalogToolbarComponent, PromotionsBannerComponent, CatalogListComponent, i1__namespace.NgClass, LoaderComponent, i1__namespace.NgForOf, CatalogCategoryComponent], 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 .mealz-planner-entry-container{min-height:300px}.miam-recipe-catalog .mealz-planner-entry-skeleton{width:100%;padding:24px 80px 16px;box-sizing:border-box}.miam-recipe-catalog .mealz-planner-entry-skeleton .mealz-planner-entry-skeleton__banner{width:100%;height:200px;border-radius:12px;background:linear-gradient(90deg,#f2f4f6 25%,#e7eaed 37%,#f2f4f6 63%);background-size:400px 100%;animation:mealz-planner-skeleton-shimmer 1.6s infinite}@media (max-width:1023px){.miam-recipe-catalog .mealz-planner-entry-skeleton{padding:16px 24px 8px}}@keyframes mealz-planner-skeleton-shimmer{0%{background-position:-200px 0}to{background-position:200px 0}}.miam-recipe-catalog .miam-recipe-catalog__content{width:100%;position:relative}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__header-skeleton{width:100%;height:124px;background-color:var(--miam-ds-color-neutral-100,#eff1f3)}@media (max-width:767px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__header-skeleton{height:168px}}.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-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 .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;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 });
|
|
26488
|
+
}, directives: [i1__namespace.NgIf, RecipeFiltersComponent, PreferencesComponent, CatalogToolbarComponent, PromotionsBannerComponent, CatalogListComponent, i1__namespace.NgClass, LoaderComponent, i1__namespace.NgForOf, CatalogCategoryComponent], 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 .mealz-planner-entry-skeleton{width:100%;padding:24px 80px 16px;box-sizing:border-box}.miam-recipe-catalog .mealz-planner-entry-skeleton .mealz-planner-entry-skeleton__banner{width:100%;height:200px;border-radius:12px;background:linear-gradient(90deg,#f2f4f6 25%,#e7eaed 37%,#f2f4f6 63%);background-size:400px 100%;animation:mealz-planner-skeleton-shimmer 1.6s infinite}@media (max-width:1023px){.miam-recipe-catalog .mealz-planner-entry-skeleton{padding:16px 24px 8px}}@keyframes mealz-planner-skeleton-shimmer{0%{background-position:-200px 0}to{background-position:200px 0}}.miam-recipe-catalog .miam-recipe-catalog__content{width:100%;position:relative}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__header-skeleton{width:100%;height:124px;background-color:var(--miam-ds-color-neutral-100,#eff1f3)}@media (max-width:767px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__header-skeleton{height:168px}}.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;gap:24px}.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;gap:16px}.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;display:block}.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;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 });
|
|
26497
26489
|
(function () {
|
|
26498
26490
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeCatalogComponent, [{
|
|
26499
26491
|
type: i0.Component,
|