ng-miam 8.6.2 → 8.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ng-miam.umd.js +133 -113
- 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/_services/baskets-synchronizing/baskets-synchronizer.service.js +2 -2
- package/esm2015/lib/_services/baskets.service.js +28 -21
- package/esm2015/lib/_services/interceptor.service.js +2 -2
- package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +7 -4
- package/esm2015/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.js +5 -5
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +90 -84
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +3 -3
- package/fesm2015/ng-miam.js +129 -113
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_services/baskets.service.d.ts +10 -1
- package/lib/_services/baskets.service.d.ts.map +1 -1
- package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts +1 -0
- package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts.map +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -4343,30 +4343,38 @@
|
|
|
4343
4343
|
return this.posService.waitForPos.pipe(operators.take(1), operators.switchMap(function (pos) { return _this.waitForBasket.pipe(operators.tap(function (basket) { return _this.analyticsService.sendEventsOfResetBasket(basket, eventTrace); }), operators.switchMap(function () { return _this.get("reset?point_of_sale_id=" + pos.id + "&fields[baskets]=" + BASKET_SPARSE_FIELDS.baskets.join(',')).pipe(operators.skipWhile(function (basket) { return basket.is_loading; }), operators.switchMap(function (basket) { return _this.updateLocalBasket(basket); })); })); }));
|
|
4344
4344
|
};
|
|
4345
4345
|
/** ********************************************************* CONFIRM BASKET ********************************************************* **/
|
|
4346
|
-
|
|
4347
|
-
|
|
4346
|
+
/**
|
|
4347
|
+
* Sends payment.confirm event then confirm basket if retailer's cart price and Mealz basket price are both non-zero
|
|
4348
|
+
* @param totalPrice The price of retailer's basket
|
|
4349
|
+
* @returns the current basket
|
|
4350
|
+
*/
|
|
4351
|
+
BasketsService.prototype.confirmPaymentAndBasket = function (totalPrice) {
|
|
4348
4352
|
var _this = this;
|
|
4349
|
-
|
|
4350
|
-
|
|
4351
|
-
return this.waitForBasket.pipe(operators.tap(function (basket) {
|
|
4352
|
-
if (basket.totalPrice > 0) {
|
|
4353
|
+
return this.waitForBasket.pipe(operators.switchMap(function (basket) {
|
|
4354
|
+
if (+totalPrice > 0 && basket.totalPrice > 0) {
|
|
4353
4355
|
_this.analyticsService.sendEventWhenReady(_this.analyticsService.EVENT_PAYMENT_CONFIRMED, null, _this.eventProps(basket, totalPrice));
|
|
4356
|
+
return _this.confirmBasket(basket, totalPrice);
|
|
4354
4357
|
}
|
|
4355
|
-
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4361
|
-
|
|
4362
|
-
|
|
4363
|
-
|
|
4364
|
-
|
|
4365
|
-
|
|
4358
|
+
return _this._basket$;
|
|
4359
|
+
}));
|
|
4360
|
+
};
|
|
4361
|
+
/**
|
|
4362
|
+
* Tries to confirm basket. Sends analytic event and refresh current basket on successfull confirmation
|
|
4363
|
+
*/
|
|
4364
|
+
BasketsService.prototype.confirmBasket = function (basket, totalPrice) {
|
|
4365
|
+
var _this = this;
|
|
4366
|
+
console.debug('[Miam] Confirm Mealz basket');
|
|
4367
|
+
return this.posService.waitForPos.pipe(operators.take(1), operators.switchMap(function (pos) {
|
|
4368
|
+
var url = environment$1.miamAPI + "/api/v1/baskets/confirm?point_of_sale_id=" + pos.id;
|
|
4369
|
+
return _this.http.patch(url, {});
|
|
4370
|
+
}), operators.catchError(function () { return rxjs.of(null); }), operators.switchMap(function (result) {
|
|
4371
|
+
if (!result) {
|
|
4372
|
+
return rxjs.of(null);
|
|
4366
4373
|
}
|
|
4367
|
-
|
|
4368
|
-
|
|
4369
|
-
|
|
4374
|
+
localStorage.removeItem('_miam/affiliate');
|
|
4375
|
+
_this.analyticsService.sendEventWhenReady(_this.analyticsService.EVENT_BASKET_CONFIRMED, null, _this.eventProps(basket, totalPrice));
|
|
4376
|
+
return _this.refreshCurrentBasket();
|
|
4377
|
+
}), operators.take(1));
|
|
4370
4378
|
};
|
|
4371
4379
|
BasketsService.prototype.eventProps = function (basket, totalPrice) {
|
|
4372
4380
|
return {
|
|
@@ -5527,7 +5535,7 @@
|
|
|
5527
5535
|
BasketsSynchronizerService.prototype.handlePayment = function (total) {
|
|
5528
5536
|
var _this = this;
|
|
5529
5537
|
if (total) {
|
|
5530
|
-
this.basketsService.
|
|
5538
|
+
this.basketsService.confirmPaymentAndBasket(total).subscribe(function () {
|
|
5531
5539
|
_this.firstRetailerBasket = [];
|
|
5532
5540
|
});
|
|
5533
5541
|
}
|
|
@@ -8766,7 +8774,7 @@
|
|
|
8766
8774
|
MiamInterceptor.prototype.setMiamHeaders = function (request) {
|
|
8767
8775
|
var headersToAdd = {
|
|
8768
8776
|
'miam-origin': this.context.origin.value,
|
|
8769
|
-
'miam-front-version': '8.6.
|
|
8777
|
+
'miam-front-version': '8.6.3',
|
|
8770
8778
|
'miam-front-type': 'web',
|
|
8771
8779
|
'miam-api-version': '4.7.0'
|
|
8772
8780
|
};
|
|
@@ -25598,7 +25606,7 @@
|
|
|
25598
25606
|
i0__namespace.ɵɵadvance(1);
|
|
25599
25607
|
i0__namespace.ɵɵproperty("ngIf", ctx_r1.recipeCount > 0);
|
|
25600
25608
|
i0__namespace.ɵɵadvance(1);
|
|
25601
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r1.displayHomePage())("ngIfElse", _r8);
|
|
25609
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r1.displayHomePage() || ctx_r1.forceListView)("ngIfElse", _r8);
|
|
25602
25610
|
i0__namespace.ɵɵadvance(1);
|
|
25603
25611
|
i0__namespace.ɵɵproperty("filters", ctx_r1.filters)("isFilterCollapsed", ctx_r1.isFilterCollapsed)("filterToRemove", ctx_r1.filterToRemove)("position", ctx_r1.filtersPosition)("originTrace", ctx_r1.eventTrace());
|
|
25604
25612
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -25660,6 +25668,7 @@
|
|
|
25660
25668
|
_this.isMyMealClose = true;
|
|
25661
25669
|
_this.catalogSettingHasLoaded = false;
|
|
25662
25670
|
_this.guests = +localStorage.getItem('_miam/preferences/guests');
|
|
25671
|
+
_this.forceListView = false;
|
|
25663
25672
|
_this.subscriptions = [];
|
|
25664
25673
|
_this.headerHeightSubscription = new rxjs.Subscription();
|
|
25665
25674
|
_this.isMobile = mediaMatcher.matchMedia('(max-width: 1022px)').matches;
|
|
@@ -25721,7 +25730,7 @@
|
|
|
25721
25730
|
}
|
|
25722
25731
|
};
|
|
25723
25732
|
RecipeCatalogComponent.prototype.displayHomePage = function () {
|
|
25724
|
-
return this.filters.isEmpty();
|
|
25733
|
+
return this.filters.isEmpty() && !this.forceListView;
|
|
25725
25734
|
};
|
|
25726
25735
|
// init the value of the image and the text for the catalog header, using the catalog setting of the supplier
|
|
25727
25736
|
RecipeCatalogComponent.prototype.initCatalogHeader = function (supplier) {
|
|
@@ -25749,6 +25758,7 @@
|
|
|
25749
25758
|
// Used on load to build the filters attribute, and on click on the link to reset the filters
|
|
25750
25759
|
RecipeCatalogComponent.prototype.initFilters = function () {
|
|
25751
25760
|
var _this = this;
|
|
25761
|
+
this.forceListView = false;
|
|
25752
25762
|
this.filters = new RecipeFilters({
|
|
25753
25763
|
difficulty: this.recipesService.difficultyLevels.map(function (f) { return ({ name: f.value.toString(), text: f.label, value: false }); }),
|
|
25754
25764
|
cost: [
|
|
@@ -25777,6 +25787,7 @@
|
|
|
25777
25787
|
};
|
|
25778
25788
|
RecipeCatalogComponent.prototype.updateFilters = function (filters) {
|
|
25779
25789
|
this.filters = filters.copy(); // necessary to trigger child component change
|
|
25790
|
+
this.forceListView = true;
|
|
25780
25791
|
this.filterToRemove = undefined;
|
|
25781
25792
|
this.cdr.detectChanges();
|
|
25782
25793
|
this.setStickyObserver();
|
|
@@ -26143,7 +26154,7 @@
|
|
|
26143
26154
|
i0__namespace.ɵɵadvance(2);
|
|
26144
26155
|
i0__namespace.ɵɵproperty("ngIf", !ctx.creatingRecipe && ctx.catalogSettingHasLoaded)("ngIfElse", _r2);
|
|
26145
26156
|
}
|
|
26146
|
-
}, directives: [i2__namespace$2.NgIf, CatalogHeaderComponent, RecipeFiltersComponent, PreferencesComponent, CatalogToolbarComponent, CatalogListComponent, i2__namespace$2.NgClass, IconComponent, i2__namespace$2.NgForOf, CatalogCategoryComponent, MealsPlannerLinkComponent, RecipeStepperComponent], pipes: [i2__namespace$2.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{width:-webkit-fill-available;padding:33px 80px 0;box-sizing:border-box;z-index:10;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;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,#1f3543);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__categories{display:flex;flex-direction:column;width:100%;padding:24px 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 56px 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{flex:1}@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__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__list__create___button{display:flex;align-items:center;border:1px solid var(--miam-color-primary);border-radius:20px;padding:4px 8px;width:-moz-fit-content;width:fit-content;cursor:pointer;color:var(--miam-color-primary);margin-bottom:24px}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button{cursor:pointer;width:400px;position:fixed;left:50%;bottom:16px;transform:translate(-50%);z-index:1;display:inline-flex;min-height:48px;padding:0 16px;justify-content:space-between;align-items:center;gap:12px;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__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__myMeal__button .miam-recipe-catalog__myMeal__second__icon{transform:rotate(-90deg)}@media (max-width:607px){.miam-recipe-catalog .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 });
|
|
26157
|
+
}, directives: [i2__namespace$2.NgIf, CatalogHeaderComponent, RecipeFiltersComponent, PreferencesComponent, CatalogToolbarComponent, CatalogListComponent, i2__namespace$2.NgClass, IconComponent, i2__namespace$2.NgForOf, CatalogCategoryComponent, MealsPlannerLinkComponent, RecipeStepperComponent], pipes: [i2__namespace$2.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:-webkit-fill-available;padding:33px 80px 0;box-sizing:border-box;z-index:10;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;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,#1f3543);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__categories{display:flex;flex-direction:column;width:100%;padding:24px 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 56px 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{flex:1}@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__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__list__create___button{display:flex;align-items:center;border:1px solid var(--miam-color-primary);border-radius:20px;padding:4px 8px;width:-moz-fit-content;width:fit-content;cursor:pointer;color:var(--miam-color-primary);margin-bottom:24px}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button{cursor:pointer;width:400px;position:fixed;left:50%;bottom:16px;transform:translate(-50%);z-index:1;display:inline-flex;min-height:48px;padding:0 16px;justify-content:space-between;align-items:center;gap:12px;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__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__myMeal__button .miam-recipe-catalog__myMeal__second__icon{transform:rotate(-90deg)}@media (max-width:607px){.miam-recipe-catalog .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 });
|
|
26147
26158
|
(function () {
|
|
26148
26159
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeCatalogComponent, [{
|
|
26149
26160
|
type: i0.Component,
|
|
@@ -26691,7 +26702,7 @@
|
|
|
26691
26702
|
i0__namespace.ɵɵtextInterpolate1("", ctx_r9.recipesService.difficultyLevels[ctx_r9.recipe.difficulty - 1].label, " ");
|
|
26692
26703
|
}
|
|
26693
26704
|
}
|
|
26694
|
-
var _c2$2 = function (a0, a1, a2) { return { "easy": a0, "medium": a1, "hard": a2 }; };
|
|
26705
|
+
var _c2$2 = function (a0, a1, a2, a3) { return { "easy": a0, "medium": a1, "hard": a2, "no-difficulty-defined": a3 }; };
|
|
26695
26706
|
function RecipeDetailsInfosComponent_div_11_Template(rf, ctx) {
|
|
26696
26707
|
if (rf & 1) {
|
|
26697
26708
|
i0__namespace.ɵɵelementStart(0, "div", 14);
|
|
@@ -26702,7 +26713,7 @@
|
|
|
26702
26713
|
if (rf & 2) {
|
|
26703
26714
|
var ctx_r6 = i0__namespace.ɵɵnextContext();
|
|
26704
26715
|
var _r2 = i0__namespace.ɵɵreference(3);
|
|
26705
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵ
|
|
26716
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction4(3, _c2$2, ctx_r6.recipe.difficulty === 1, ctx_r6.recipe.difficulty === 2, ctx_r6.recipe.difficulty === 3, !ctx_r6.recipe.difficulty));
|
|
26706
26717
|
i0__namespace.ɵɵadvance(2);
|
|
26707
26718
|
i0__namespace.ɵɵproperty("ngIf", ctx_r6.recipe.difficulty)("ngIfElse", _r2);
|
|
26708
26719
|
}
|
|
@@ -26769,7 +26780,7 @@
|
|
|
26769
26780
|
i0__namespace.ɵɵelement(9, "img", 7);
|
|
26770
26781
|
i0__namespace.ɵɵtemplate(10, RecipeDetailsInfosComponent_span_10_Template, 2, 1, "span", 5);
|
|
26771
26782
|
i0__namespace.ɵɵelementEnd();
|
|
26772
|
-
i0__namespace.ɵɵtemplate(11, RecipeDetailsInfosComponent_div_11_Template, 3,
|
|
26783
|
+
i0__namespace.ɵɵtemplate(11, RecipeDetailsInfosComponent_div_11_Template, 3, 8, "div", 8);
|
|
26773
26784
|
i0__namespace.ɵɵtemplate(12, RecipeDetailsInfosComponent_div_12_Template, 2, 0, "div", 9);
|
|
26774
26785
|
i0__namespace.ɵɵtemplate(13, RecipeDetailsInfosComponent_div_13_Template, 3, 1, "div", 10);
|
|
26775
26786
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -26793,7 +26804,7 @@
|
|
|
26793
26804
|
i0__namespace.ɵɵadvance(1);
|
|
26794
26805
|
i0__namespace.ɵɵproperty("ngForOf", ctx.recipe.relationships.tags.data);
|
|
26795
26806
|
}
|
|
26796
|
-
}, directives: [i2__namespace$2.NgClass, i2__namespace$2.NgIf, i2__namespace$2.NgForOf], styles: [".miam-recipe-details-infos__container{display:flex;flex-wrap:wrap;gap:8px}.miam-recipe-details-infos__container.tags-displayed .miam-recipe-details-infos__badge.more-info{display:none}.miam-recipe-details-infos__container.tags-displayed .miam-recipe-details-infos__badge.tag{display:flex}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge{display:flex;gap:8px;align-items:center;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge.tag{display:none}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge.more-info{cursor:pointer}"], encapsulation: 2, changeDetection: 0 });
|
|
26807
|
+
}, directives: [i2__namespace$2.NgClass, i2__namespace$2.NgIf, i2__namespace$2.NgForOf], styles: [".miam-recipe-details-infos__container{display:flex;flex-wrap:wrap;gap:8px}.miam-recipe-details-infos__container.tags-displayed .miam-recipe-details-infos__badge.more-info{display:none}.miam-recipe-details-infos__container.tags-displayed .miam-recipe-details-infos__badge.tag{display:flex}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge{display:flex;gap:8px;align-items:center;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge.tag{display:none}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge.more-info{cursor:pointer}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge__cooking-time.no-cooking-time-defined,.miam-recipe-details-infos__container .miam-recipe-details-infos__badge__difficulty.no-difficulty-defined,.miam-recipe-details-infos__container .miam-recipe-details-infos__badge__preparation-time.no-preparation-time-defined{display:none}"], encapsulation: 2, changeDetection: 0 });
|
|
26797
26808
|
(function () {
|
|
26798
26809
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeDetailsInfosComponent, [{
|
|
26799
26810
|
type: i0.Component,
|
|
@@ -27220,41 +27231,50 @@
|
|
|
27220
27231
|
i0__namespace.ɵɵproperty("selectedTabIndex", ctx_r13.activeTabIndex);
|
|
27221
27232
|
}
|
|
27222
27233
|
}
|
|
27223
|
-
function
|
|
27234
|
+
function RecipeDetailsComponent_div_0_div_3_ng_container_35_ng_miam_products_picker_1_Template(rf, ctx) {
|
|
27224
27235
|
if (rf & 1) {
|
|
27225
|
-
var
|
|
27226
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-
|
|
27227
|
-
i0__namespace.ɵɵlistener("
|
|
27236
|
+
var _r27_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27237
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-products-picker", 49);
|
|
27238
|
+
i0__namespace.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_3_ng_container_35_ng_miam_products_picker_1_Template_ng_miam_products_picker_closeModal_0_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r26 = i0__namespace.ɵɵnextContext(4); return ctx_r26.onClose(); })("guestsChange", function RecipeDetailsComponent_div_0_div_3_ng_container_35_ng_miam_products_picker_1_Template_ng_miam_products_picker_guestsChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r28 = i0__namespace.ɵɵnextContext(4); return ctx_r28.updateGuests($event); });
|
|
27228
27239
|
i0__namespace.ɵɵelementEnd();
|
|
27229
27240
|
}
|
|
27230
27241
|
if (rf & 2) {
|
|
27231
27242
|
var ctx_r24 = i0__namespace.ɵɵnextContext(4);
|
|
27232
|
-
i0__namespace.ɵɵproperty("
|
|
27243
|
+
i0__namespace.ɵɵproperty("originTrace", ctx_r24.eventTrace());
|
|
27244
|
+
}
|
|
27245
|
+
}
|
|
27246
|
+
function RecipeDetailsComponent_div_0_div_3_ng_container_35_ng_miam_no_pos_selected_2_Template(rf, ctx) {
|
|
27247
|
+
if (rf & 1) {
|
|
27248
|
+
var _r30_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27249
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-no-pos-selected", 50);
|
|
27250
|
+
i0__namespace.ɵɵlistener("posSelected", function RecipeDetailsComponent_div_0_div_3_ng_container_35_ng_miam_no_pos_selected_2_Template_ng_miam_no_pos_selected_posSelected_0_listener() { i0__namespace.ɵɵrestoreView(_r30_1); var ctx_r29 = i0__namespace.ɵɵnextContext(4); return ctx_r29.checkPos(); });
|
|
27251
|
+
i0__namespace.ɵɵelementEnd();
|
|
27252
|
+
}
|
|
27253
|
+
if (rf & 2) {
|
|
27254
|
+
var ctx_r25 = i0__namespace.ɵɵnextContext(4);
|
|
27255
|
+
i0__namespace.ɵɵproperty("invalidPos", ctx_r25.recipeDetailsService.invalidPosDisplay);
|
|
27233
27256
|
}
|
|
27234
27257
|
}
|
|
27235
27258
|
function RecipeDetailsComponent_div_0_div_3_ng_container_35_Template(rf, ctx) {
|
|
27236
27259
|
if (rf & 1) {
|
|
27237
|
-
var _r28_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27238
27260
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
27239
|
-
i0__namespace.ɵɵ
|
|
27240
|
-
i0__namespace.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_3_ng_container_35_Template_ng_miam_products_picker_closeModal_1_listener() { i0__namespace.ɵɵrestoreView(_r28_1); var ctx_r27 = i0__namespace.ɵɵnextContext(3); return ctx_r27.onClose(); })("guestsChange", function RecipeDetailsComponent_div_0_div_3_ng_container_35_Template_ng_miam_products_picker_guestsChange_1_listener($event) { i0__namespace.ɵɵrestoreView(_r28_1); var ctx_r29 = i0__namespace.ɵɵnextContext(3); return ctx_r29.updateGuests($event); });
|
|
27241
|
-
i0__namespace.ɵɵelementEnd();
|
|
27261
|
+
i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_3_ng_container_35_ng_miam_products_picker_1_Template, 1, 1, "ng-miam-products-picker", 47);
|
|
27242
27262
|
i0__namespace.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_3_ng_container_35_ng_miam_no_pos_selected_2_Template, 1, 1, "ng-miam-no-pos-selected", 48);
|
|
27243
27263
|
i0__namespace.ɵɵelementContainerEnd();
|
|
27244
27264
|
}
|
|
27245
27265
|
if (rf & 2) {
|
|
27246
27266
|
var ctx_r14 = i0__namespace.ɵɵnextContext(3);
|
|
27247
27267
|
i0__namespace.ɵɵadvance(1);
|
|
27248
|
-
i0__namespace.ɵɵproperty("
|
|
27268
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r14.recipeDetailsService.noPosDisplay && !ctx_r14.recipeDetailsService.invalidPosDisplay);
|
|
27249
27269
|
i0__namespace.ɵɵadvance(1);
|
|
27250
27270
|
i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.noPosDisplay || ctx_r14.recipeDetailsService.invalidPosDisplay);
|
|
27251
27271
|
}
|
|
27252
27272
|
}
|
|
27253
27273
|
function RecipeDetailsComponent_div_0_div_3_div_36_Template(rf, ctx) {
|
|
27254
27274
|
if (rf & 1) {
|
|
27255
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
27256
|
-
i0__namespace.ɵɵelement(1, "ng-miam-recipe-details-ingredients",
|
|
27257
|
-
i0__namespace.ɵɵelement(2, "ng-miam-recipe-details-steps",
|
|
27275
|
+
i0__namespace.ɵɵelementStart(0, "div", 51);
|
|
27276
|
+
i0__namespace.ɵɵelement(1, "ng-miam-recipe-details-ingredients", 52);
|
|
27277
|
+
i0__namespace.ɵɵelement(2, "ng-miam-recipe-details-steps", 53);
|
|
27258
27278
|
i0__namespace.ɵɵelementEnd();
|
|
27259
27279
|
}
|
|
27260
27280
|
if (rf & 2) {
|
|
@@ -27268,40 +27288,40 @@
|
|
|
27268
27288
|
function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_1_span_7_Template(rf, ctx) {
|
|
27269
27289
|
if (rf & 1) {
|
|
27270
27290
|
i0__namespace.ɵɵelementStart(0, "span");
|
|
27271
|
-
i0__namespace.ɵɵi18n(1,
|
|
27291
|
+
i0__namespace.ɵɵi18n(1, 65);
|
|
27272
27292
|
i0__namespace.ɵɵelementEnd();
|
|
27273
27293
|
}
|
|
27274
27294
|
}
|
|
27275
27295
|
function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_1_span_8_Template(rf, ctx) {
|
|
27276
27296
|
if (rf & 1) {
|
|
27277
27297
|
i0__namespace.ɵɵelementStart(0, "span");
|
|
27278
|
-
i0__namespace.ɵɵi18n(1,
|
|
27298
|
+
i0__namespace.ɵɵi18n(1, 66);
|
|
27279
27299
|
i0__namespace.ɵɵelementEnd();
|
|
27280
27300
|
}
|
|
27281
27301
|
}
|
|
27282
27302
|
function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_1_Template(rf, ctx) {
|
|
27283
27303
|
if (rf & 1) {
|
|
27284
|
-
var
|
|
27285
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
27286
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
27287
|
-
i0__namespace.ɵɵelement(1, "img",
|
|
27288
|
-
i0__namespace.ɵɵelementStart(2, "div",
|
|
27304
|
+
var _r40_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27305
|
+
i0__namespace.ɵɵelementStart(0, "button", 59);
|
|
27306
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r39 = i0__namespace.ɵɵnextContext(5); return ctx_r39.recipeDetailsService.addAllIngredientsToBasket(ctx_r39.eventTrace()); });
|
|
27307
|
+
i0__namespace.ɵɵelement(1, "img", 60);
|
|
27308
|
+
i0__namespace.ɵɵelementStart(2, "div", 61);
|
|
27289
27309
|
i0__namespace.ɵɵelementStart(3, "span");
|
|
27290
|
-
i0__namespace.ɵɵi18n(4,
|
|
27310
|
+
i0__namespace.ɵɵi18n(4, 62);
|
|
27291
27311
|
i0__namespace.ɵɵelementEnd();
|
|
27292
27312
|
i0__namespace.ɵɵelementStart(5, "span");
|
|
27293
27313
|
i0__namespace.ɵɵtext(6);
|
|
27294
27314
|
i0__namespace.ɵɵelementEnd();
|
|
27295
27315
|
i0__namespace.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_1_span_7_Template, 2, 0, "span", 35);
|
|
27296
27316
|
i0__namespace.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_1_span_8_Template, 2, 0, "span", 35);
|
|
27297
|
-
i0__namespace.ɵɵelementStart(9, "div",
|
|
27317
|
+
i0__namespace.ɵɵelementStart(9, "div", 63);
|
|
27298
27318
|
i0__namespace.ɵɵtext(10, " ( ");
|
|
27299
27319
|
i0__namespace.ɵɵelementStart(11, "span");
|
|
27300
27320
|
i0__namespace.ɵɵpipe(12, "async");
|
|
27301
27321
|
i0__namespace.ɵɵtext(13);
|
|
27302
27322
|
i0__namespace.ɵɵpipe(14, "currency");
|
|
27303
27323
|
i0__namespace.ɵɵelementEnd();
|
|
27304
|
-
i0__namespace.ɵɵelement(15, "div",
|
|
27324
|
+
i0__namespace.ɵɵelement(15, "div", 64);
|
|
27305
27325
|
i0__namespace.ɵɵpipe(16, "async");
|
|
27306
27326
|
i0__namespace.ɵɵtext(17, " ) ");
|
|
27307
27327
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -27309,126 +27329,126 @@
|
|
|
27309
27329
|
i0__namespace.ɵɵelementEnd();
|
|
27310
27330
|
}
|
|
27311
27331
|
if (rf & 2) {
|
|
27312
|
-
var
|
|
27332
|
+
var ctx_r34 = i0__namespace.ɵɵnextContext(5);
|
|
27313
27333
|
i0__namespace.ɵɵadvance(6);
|
|
27314
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
27334
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r34.recipeDetailsService.remainingBasketEntries.length);
|
|
27315
27335
|
i0__namespace.ɵɵadvance(1);
|
|
27316
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
27336
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r34.recipeDetailsService.remainingBasketEntries.length <= 1);
|
|
27317
27337
|
i0__namespace.ɵɵadvance(1);
|
|
27318
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
27338
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r34.recipeDetailsService.remainingBasketEntries.length > 1);
|
|
27319
27339
|
i0__namespace.ɵɵadvance(3);
|
|
27320
|
-
i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(12, 8,
|
|
27340
|
+
i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(12, 8, ctx_r34.recipeDetailsService.ingredientToBasketLoading$));
|
|
27321
27341
|
i0__namespace.ɵɵadvance(2);
|
|
27322
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(14, 10,
|
|
27342
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(14, 10, ctx_r34.recipeDetailsService.recipePrice.remaining, ctx_r34.currencyService.code), " ");
|
|
27323
27343
|
i0__namespace.ɵɵadvance(2);
|
|
27324
|
-
i0__namespace.ɵɵclassProp("hidden", !i0__namespace.ɵɵpipeBind1(16, 13,
|
|
27344
|
+
i0__namespace.ɵɵclassProp("hidden", !i0__namespace.ɵɵpipeBind1(16, 13, ctx_r34.recipeDetailsService.ingredientToBasketLoading$));
|
|
27325
27345
|
}
|
|
27326
27346
|
}
|
|
27327
27347
|
function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_3_Template(rf, ctx) {
|
|
27328
27348
|
if (rf & 1) {
|
|
27329
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
27330
|
-
i0__namespace.ɵɵelement(1, "div",
|
|
27349
|
+
i0__namespace.ɵɵelementStart(0, "button", 67);
|
|
27350
|
+
i0__namespace.ɵɵelement(1, "div", 64);
|
|
27331
27351
|
i0__namespace.ɵɵelementEnd();
|
|
27332
27352
|
}
|
|
27333
27353
|
}
|
|
27334
27354
|
function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_div_5_button_4_Template(rf, ctx) {
|
|
27335
27355
|
if (rf & 1) {
|
|
27336
|
-
var
|
|
27337
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
27338
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_div_5_button_4_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
27339
|
-
i0__namespace.ɵɵelementStart(1, "span",
|
|
27340
|
-
i0__namespace.ɵɵi18n(2,
|
|
27356
|
+
var _r43_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27357
|
+
i0__namespace.ɵɵelementStart(0, "button", 72);
|
|
27358
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_div_5_button_4_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r43_1); var ctx_r42 = i0__namespace.ɵɵnextContext(6); return ctx_r42.onClose(true); });
|
|
27359
|
+
i0__namespace.ɵɵelementStart(1, "span", 73);
|
|
27360
|
+
i0__namespace.ɵɵi18n(2, 74);
|
|
27341
27361
|
i0__namespace.ɵɵelementEnd();
|
|
27342
|
-
i0__namespace.ɵɵelement(3, "img",
|
|
27362
|
+
i0__namespace.ɵɵelement(3, "img", 60);
|
|
27343
27363
|
i0__namespace.ɵɵelementEnd();
|
|
27344
27364
|
}
|
|
27345
27365
|
}
|
|
27346
27366
|
function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_div_5_Template(rf, ctx) {
|
|
27347
27367
|
if (rf & 1) {
|
|
27348
|
-
var
|
|
27349
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
27350
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
27351
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_div_5_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(
|
|
27352
|
-
i0__namespace.ɵɵelementStart(2, "span",
|
|
27353
|
-
i0__namespace.ɵɵi18n(3,
|
|
27368
|
+
var _r45_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27369
|
+
i0__namespace.ɵɵelementStart(0, "div", 68);
|
|
27370
|
+
i0__namespace.ɵɵelementStart(1, "button", 69);
|
|
27371
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_div_5_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r45_1); var ctx_r44 = i0__namespace.ɵɵnextContext(5); return ctx_r44.onClose(); });
|
|
27372
|
+
i0__namespace.ɵɵelementStart(2, "span", 61);
|
|
27373
|
+
i0__namespace.ɵɵi18n(3, 70);
|
|
27354
27374
|
i0__namespace.ɵɵelementEnd();
|
|
27355
27375
|
i0__namespace.ɵɵelementEnd();
|
|
27356
|
-
i0__namespace.ɵɵtemplate(4, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_div_5_button_4_Template, 4, 0, "button",
|
|
27376
|
+
i0__namespace.ɵɵtemplate(4, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_div_5_button_4_Template, 4, 0, "button", 71);
|
|
27357
27377
|
i0__namespace.ɵɵelementEnd();
|
|
27358
27378
|
}
|
|
27359
27379
|
if (rf & 2) {
|
|
27360
|
-
var
|
|
27380
|
+
var ctx_r36 = i0__namespace.ɵɵnextContext(5);
|
|
27361
27381
|
i0__namespace.ɵɵadvance(1);
|
|
27362
|
-
i0__namespace.ɵɵclassProp("mobile-hidden",
|
|
27382
|
+
i0__namespace.ɵɵclassProp("mobile-hidden", ctx_r36.contextService.noSupplier);
|
|
27363
27383
|
i0__namespace.ɵɵadvance(3);
|
|
27364
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
27384
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r36.contextService.noSupplier);
|
|
27365
27385
|
}
|
|
27366
27386
|
}
|
|
27367
27387
|
function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_Template(rf, ctx) {
|
|
27368
27388
|
if (rf & 1) {
|
|
27369
27389
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
27370
|
-
i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_1_Template, 18, 15, "button",
|
|
27390
|
+
i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_1_Template, 18, 15, "button", 56);
|
|
27371
27391
|
i0__namespace.ɵɵpipe(2, "async");
|
|
27372
|
-
i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_3_Template, 2, 0, "button",
|
|
27392
|
+
i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_button_3_Template, 2, 0, "button", 57);
|
|
27373
27393
|
i0__namespace.ɵɵpipe(4, "async");
|
|
27374
|
-
i0__namespace.ɵɵtemplate(5, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_div_5_Template, 5, 3, "div",
|
|
27394
|
+
i0__namespace.ɵɵtemplate(5, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_div_5_Template, 5, 3, "div", 58);
|
|
27375
27395
|
i0__namespace.ɵɵelementContainerEnd();
|
|
27376
27396
|
}
|
|
27377
27397
|
if (rf & 2) {
|
|
27378
|
-
var
|
|
27398
|
+
var ctx_r31 = i0__namespace.ɵɵnextContext(4);
|
|
27379
27399
|
i0__namespace.ɵɵadvance(1);
|
|
27380
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
27400
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r31.recipeDetailsService.remainingBasketEntries.length > 0 && !i0__namespace.ɵɵpipeBind1(2, 3, ctx_r31.recipeDetailsService.allIngredientsToBasketLoading$));
|
|
27381
27401
|
i0__namespace.ɵɵadvance(2);
|
|
27382
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
27402
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r31.recipeDetailsService.remainingBasketEntries.length > 0 && i0__namespace.ɵɵpipeBind1(4, 5, ctx_r31.recipeDetailsService.allIngredientsToBasketLoading$));
|
|
27383
27403
|
i0__namespace.ɵɵadvance(2);
|
|
27384
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
27404
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r31.recipeDetailsService.remainingBasketEntries.length === 0);
|
|
27385
27405
|
}
|
|
27386
27406
|
}
|
|
27387
27407
|
function RecipeDetailsComponent_div_0_div_3_div_37_ng_container_3_Template(rf, ctx) {
|
|
27388
27408
|
if (rf & 1) {
|
|
27389
27409
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
27390
|
-
i0__namespace.ɵɵelement(1, "ng-miam-recipe-pricing",
|
|
27410
|
+
i0__namespace.ɵɵelement(1, "ng-miam-recipe-pricing", 75);
|
|
27391
27411
|
i0__namespace.ɵɵelementContainerEnd();
|
|
27392
27412
|
}
|
|
27393
27413
|
if (rf & 2) {
|
|
27394
|
-
var
|
|
27414
|
+
var ctx_r32 = i0__namespace.ɵɵnextContext(4);
|
|
27395
27415
|
i0__namespace.ɵɵadvance(1);
|
|
27396
|
-
i0__namespace.ɵɵproperty("recipeId",
|
|
27416
|
+
i0__namespace.ɵɵproperty("recipeId", ctx_r32.recipeDetailsService.recipe.id)("serves", ctx_r32.recipeDetailsService.recipe.modifiedGuests)("fetchPricingOnScroll", false);
|
|
27397
27417
|
}
|
|
27398
27418
|
}
|
|
27399
27419
|
function RecipeDetailsComponent_div_0_div_3_div_37_div_4_Template(rf, ctx) {
|
|
27400
27420
|
if (rf & 1) {
|
|
27401
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
27402
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
27403
|
-
i0__namespace.ɵɵelement(2, "ng-miam-price",
|
|
27421
|
+
i0__namespace.ɵɵelementStart(0, "div", 76);
|
|
27422
|
+
i0__namespace.ɵɵelementStart(1, "div", 77);
|
|
27423
|
+
i0__namespace.ɵɵelement(2, "ng-miam-price", 78);
|
|
27404
27424
|
i0__namespace.ɵɵpipe(3, "async");
|
|
27405
27425
|
i0__namespace.ɵɵpipe(4, "async");
|
|
27406
27426
|
i0__namespace.ɵɵpipe(5, "currency");
|
|
27407
|
-
i0__namespace.ɵɵelement(6, "div",
|
|
27427
|
+
i0__namespace.ɵɵelement(6, "div", 79);
|
|
27408
27428
|
i0__namespace.ɵɵpipe(7, "async");
|
|
27409
27429
|
i0__namespace.ɵɵpipe(8, "async");
|
|
27410
27430
|
i0__namespace.ɵɵelementEnd();
|
|
27411
|
-
i0__namespace.ɵɵelementStart(9, "span",
|
|
27412
|
-
i0__namespace.ɵɵi18n(10,
|
|
27431
|
+
i0__namespace.ɵɵelementStart(9, "span", 80);
|
|
27432
|
+
i0__namespace.ɵɵi18n(10, 81);
|
|
27413
27433
|
i0__namespace.ɵɵelementEnd();
|
|
27414
27434
|
i0__namespace.ɵɵelementEnd();
|
|
27415
27435
|
}
|
|
27416
27436
|
if (rf & 2) {
|
|
27417
|
-
var
|
|
27437
|
+
var ctx_r33 = i0__namespace.ɵɵnextContext(4);
|
|
27418
27438
|
i0__namespace.ɵɵadvance(2);
|
|
27419
|
-
i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(3, 5,
|
|
27420
|
-
i0__namespace.ɵɵproperty("price", i0__namespace.ɵɵpipeBind2(5, 9,
|
|
27439
|
+
i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r33.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(4, 7, ctx_r33.recipeDetailsService.updateIngredientFromBasketLoading$));
|
|
27440
|
+
i0__namespace.ɵɵproperty("price", i0__namespace.ɵɵpipeBind2(5, 9, ctx_r33.recipeDetailsService.recipePrice.inBasket, ctx_r33.currencyService.code));
|
|
27421
27441
|
i0__namespace.ɵɵadvance(4);
|
|
27422
|
-
i0__namespace.ɵɵclassProp("hidden", !(i0__namespace.ɵɵpipeBind1(7, 12,
|
|
27442
|
+
i0__namespace.ɵɵclassProp("hidden", !(i0__namespace.ɵɵpipeBind1(7, 12, ctx_r33.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(8, 14, ctx_r33.recipeDetailsService.updateIngredientFromBasketLoading$)));
|
|
27423
27443
|
}
|
|
27424
27444
|
}
|
|
27425
27445
|
function RecipeDetailsComponent_div_0_div_3_div_37_Template(rf, ctx) {
|
|
27426
27446
|
if (rf & 1) {
|
|
27427
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
27447
|
+
i0__namespace.ɵɵelementStart(0, "div", 54);
|
|
27428
27448
|
i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_1_Template, 6, 7, "ng-container", 35);
|
|
27429
27449
|
i0__namespace.ɵɵpipe(2, "async");
|
|
27430
27450
|
i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_div_37_ng_container_3_Template, 2, 3, "ng-container", 35);
|
|
27431
|
-
i0__namespace.ɵɵtemplate(4, RecipeDetailsComponent_div_0_div_3_div_37_div_4_Template, 11, 16, "div",
|
|
27451
|
+
i0__namespace.ɵɵtemplate(4, RecipeDetailsComponent_div_0_div_3_div_37_div_4_Template, 11, 16, "div", 55);
|
|
27432
27452
|
i0__namespace.ɵɵelementEnd();
|
|
27433
27453
|
}
|
|
27434
27454
|
if (rf & 2) {
|
|
@@ -27444,18 +27464,18 @@
|
|
|
27444
27464
|
}
|
|
27445
27465
|
function RecipeDetailsComponent_div_0_div_3_Template(rf, ctx) {
|
|
27446
27466
|
if (rf & 1) {
|
|
27447
|
-
var
|
|
27467
|
+
var _r47_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27448
27468
|
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
27449
27469
|
i0__namespace.ɵɵelementStart(1, "div", 8, 9);
|
|
27450
27470
|
i0__namespace.ɵɵelementStart(3, "div", 10);
|
|
27451
27471
|
i0__namespace.ɵɵelementStart(4, "div", 11);
|
|
27452
27472
|
i0__namespace.ɵɵelementStart(5, "button", 12);
|
|
27453
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(
|
|
27473
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(_r47_1); var ctx_r46 = i0__namespace.ɵɵnextContext(2); return ctx_r46.onClose(); });
|
|
27454
27474
|
i0__namespace.ɵɵelement(6, "img", 13);
|
|
27455
27475
|
i0__namespace.ɵɵelementEnd();
|
|
27456
27476
|
i0__namespace.ɵɵelementStart(7, "div", 14);
|
|
27457
27477
|
i0__namespace.ɵɵelementStart(8, "button", 15);
|
|
27458
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_8_listener() { i0__namespace.ɵɵrestoreView(
|
|
27478
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_8_listener() { i0__namespace.ɵɵrestoreView(_r47_1); var ctx_r48 = i0__namespace.ɵɵnextContext(2); return ctx_r48.onClose(); });
|
|
27459
27479
|
i0__namespace.ɵɵelement(9, "img", 16);
|
|
27460
27480
|
i0__namespace.ɵɵelementEnd();
|
|
27461
27481
|
i0__namespace.ɵɵtemplate(10, RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_10_Template, 1, 2, "ng-miam-like-button", 17);
|
|
@@ -27463,7 +27483,7 @@
|
|
|
27463
27483
|
i0__namespace.ɵɵelementEnd();
|
|
27464
27484
|
i0__namespace.ɵɵelementEnd();
|
|
27465
27485
|
i0__namespace.ɵɵelementStart(12, "ng-miam-counter-input", 18);
|
|
27466
|
-
i0__namespace.ɵɵlistener("valueChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_counter_input_valueChange_12_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
27486
|
+
i0__namespace.ɵɵlistener("valueChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_counter_input_valueChange_12_listener($event) { i0__namespace.ɵɵrestoreView(_r47_1); var ctx_r49 = i0__namespace.ɵɵnextContext(2); return ctx_r49.updateGuests($event); });
|
|
27467
27487
|
i0__namespace.ɵɵtext(13, " > ");
|
|
27468
27488
|
i0__namespace.ɵɵelementEnd();
|
|
27469
27489
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -27479,7 +27499,7 @@
|
|
|
27479
27499
|
i0__namespace.ɵɵelementStart(21, "div", 26);
|
|
27480
27500
|
i0__namespace.ɵɵelementStart(22, "div", 27);
|
|
27481
27501
|
i0__namespace.ɵɵelementStart(23, "button", 28);
|
|
27482
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_23_listener() { i0__namespace.ɵɵrestoreView(
|
|
27502
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_23_listener() { i0__namespace.ɵɵrestoreView(_r47_1); var ctx_r50 = i0__namespace.ɵɵnextContext(2); return ctx_r50.onClose(); });
|
|
27483
27503
|
i0__namespace.ɵɵelement(24, "img", 29);
|
|
27484
27504
|
i0__namespace.ɵɵelementEnd();
|
|
27485
27505
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -27491,7 +27511,7 @@
|
|
|
27491
27511
|
i0__namespace.ɵɵpipe(29, "async");
|
|
27492
27512
|
i0__namespace.ɵɵelementStart(30, "div", 32);
|
|
27493
27513
|
i0__namespace.ɵɵelementStart(31, "button", 33);
|
|
27494
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_31_listener() { i0__namespace.ɵɵrestoreView(
|
|
27514
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_31_listener() { i0__namespace.ɵɵrestoreView(_r47_1); var ctx_r51 = i0__namespace.ɵɵnextContext(2); return ctx_r51.onClose(); });
|
|
27495
27515
|
i0__namespace.ɵɵelement(32, "img", 34);
|
|
27496
27516
|
i0__namespace.ɵɵelementEnd();
|
|
27497
27517
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -27559,9 +27579,9 @@
|
|
|
27559
27579
|
}
|
|
27560
27580
|
function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template(rf, ctx) {
|
|
27561
27581
|
if (rf & 1) {
|
|
27562
|
-
var
|
|
27563
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-addon",
|
|
27564
|
-
i0__namespace.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
27582
|
+
var _r53_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27583
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-addon", 82);
|
|
27584
|
+
i0__namespace.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r53_1); var ctx_r52 = i0__namespace.ɵɵnextContext(); return ctx_r52.toggleAddon(); });
|
|
27565
27585
|
i0__namespace.ɵɵelementEnd();
|
|
27566
27586
|
}
|
|
27567
27587
|
if (rf & 2) {
|
|
@@ -27571,9 +27591,9 @@
|
|
|
27571
27591
|
}
|
|
27572
27592
|
function RecipeDetailsComponent_ng_miam_replace_item_3_Template(rf, ctx) {
|
|
27573
27593
|
if (rf & 1) {
|
|
27574
|
-
var
|
|
27575
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item",
|
|
27576
|
-
i0__namespace.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_3_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
27594
|
+
var _r55_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27595
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item", 83);
|
|
27596
|
+
i0__namespace.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_3_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(_r55_1); var ctx_r54 = i0__namespace.ɵɵnextContext(); return ctx_r54.recipeDetailsService.basketEntryToReplace = null; });
|
|
27577
27597
|
i0__namespace.ɵɵelementEnd();
|
|
27578
27598
|
}
|
|
27579
27599
|
if (rf & 2) {
|
|
@@ -27906,7 +27926,7 @@
|
|
|
27906
27926
|
else {
|
|
27907
27927
|
i18n_14 = $localize(templateObject_7$1 || (templateObject_7$1 = __makeTemplateObject([":\u241Fddc8d487566c6a50356eb269a281761ef8ccffa8\u241F4122997114884311871:dans mon panier"], [":\u241Fddc8d487566c6a50356eb269a281761ef8ccffa8\u241F4122997114884311871:dans mon panier"])));
|
|
27908
27928
|
}
|
|
27909
|
-
return [["class", "miam-recipe-details", 3, "hidden", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "originTrace", "selected", 4, "ngIf"], [1, "miam-recipe-details"], ["class", "miam-ds-loader miam-recipe-details__loader", 4, "ngIf"], ["class", "miam-recipe-details__container", 4, "ngIf"], [1, "miam-ds-loader", "miam-recipe-details__loader"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__picture"], ["topContainerImg", ""], [1, "miam-recipe-details__banner_buttons"], [1, "miam-recipe-details__top-button-wrapper"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "modal close button", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__mobile-header-buttons"], [1, "miam-recipe-details__back-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal back button", 1, "miam-recipe-details__back-icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], ["alt", "recipe picture", "class", "miam-recipe-details__picture-img", 3, "src", "error", 4, "ngIf"], [3, "videoId", "width", "height", "playerVars", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__sponsor"], [3, "hasStorytelling", "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__sponsor-separator"], [1, "miam-recipe-details__sticky-header"], ["ngMiamReachTop", "", 1, "miam-recipe-details__title-container", 3, "stickyByDefault"], [1, "miam-recipe-details__back-button-mobile-container"], [1, "miam-recipe-details__back-button", "miam-ds-button", "small", "square", "ghost", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal close button", 1, "miam-recipe-details__back-icon"], [1, "miam-recipe-details__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-recipe-details__actions__icon"], [1, "miam-recipe-details__hideable-actions"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "ghost", 3, "click"], ["alt", "modal close button", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-recipe-details__close-icon"], [4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], ["class", "miam-recipe-details__footer", 3, "center", 4, "ngIf"], [1, "miam-recipe-details__like-button", 3, "recipe", "originTrace"], ["alt", "recipe picture", 1, "miam-recipe-details__picture-img", 3, "src", "error"], [3, "videoId", "width", "height", "playerVars"], [1, "miam-recipe-details__picture__filigrane"], ["alt", "filigrane logo", 3, "src"], [3, "hasStorytelling", "recipe", "showAddon"], [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], ["tabs", i18n_1, 3, "selectedTabIndex", "selectedTabIndexChange"], [
|
|
27929
|
+
return [["class", "miam-recipe-details", 3, "hidden", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "originTrace", "selected", 4, "ngIf"], [1, "miam-recipe-details"], ["class", "miam-ds-loader miam-recipe-details__loader", 4, "ngIf"], ["class", "miam-recipe-details__container", 4, "ngIf"], [1, "miam-ds-loader", "miam-recipe-details__loader"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__picture"], ["topContainerImg", ""], [1, "miam-recipe-details__banner_buttons"], [1, "miam-recipe-details__top-button-wrapper"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "modal close button", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__mobile-header-buttons"], [1, "miam-recipe-details__back-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal back button", 1, "miam-recipe-details__back-icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], ["alt", "recipe picture", "class", "miam-recipe-details__picture-img", 3, "src", "error", 4, "ngIf"], [3, "videoId", "width", "height", "playerVars", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__sponsor"], [3, "hasStorytelling", "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__sponsor-separator"], [1, "miam-recipe-details__sticky-header"], ["ngMiamReachTop", "", 1, "miam-recipe-details__title-container", 3, "stickyByDefault"], [1, "miam-recipe-details__back-button-mobile-container"], [1, "miam-recipe-details__back-button", "miam-ds-button", "small", "square", "ghost", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal close button", 1, "miam-recipe-details__back-icon"], [1, "miam-recipe-details__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-recipe-details__actions__icon"], [1, "miam-recipe-details__hideable-actions"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "ghost", 3, "click"], ["alt", "modal close button", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-recipe-details__close-icon"], [4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], ["class", "miam-recipe-details__footer", 3, "center", 4, "ngIf"], [1, "miam-recipe-details__like-button", 3, "recipe", "originTrace"], ["alt", "recipe picture", 1, "miam-recipe-details__picture-img", 3, "src", "error"], [3, "videoId", "width", "height", "playerVars"], [1, "miam-recipe-details__picture__filigrane"], ["alt", "filigrane logo", 3, "src"], [3, "hasStorytelling", "recipe", "showAddon"], [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], ["tabs", i18n_1, 3, "selectedTabIndex", "selectedTabIndexChange"], ["class", "miam-recipe-details__products-picker", 3, "originTrace", "closeModal", "guestsChange", 4, "ngIf"], [3, "invalidPos", "posSelected", 4, "ngIf"], [1, "miam-recipe-details__products-picker", 3, "originTrace", "closeModal", "guestsChange"], [3, "invalidPos", "posSelected"], [1, "miam-recipe-details__preparation-tab"], [3, "ingredients"], [3, "recipe"], [1, "miam-recipe-details__footer"], ["class", "miam-recipe-details__price", 4, "ngIf"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 3, "click", 4, "ngIf"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 4, "ngIf"], ["class", "miam-recipe-details__recipe-is-in-basket-cta-container", 4, "ngIf"], [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary", 3, "click"], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], [1, "miam-recipe-details__add-to-basket-cta__text"], i18n_4, [1, "miam-recipe-details__add-to-basket-remaining-price"], [1, "miam-ds-loader"], i18n_6, i18n_8, [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary"], [1, "miam-recipe-details__recipe-is-in-basket-cta-container"], [1, "miam-ds-button", "secondary", "miam-recipe-details__continue-shopping-cta", 3, "click"], i18n_10, ["class", "miam-ds-button primary miam-recipe-details__see-basket-cta", 3, "click", 4, "ngIf"], [1, "miam-ds-button", "primary", "miam-recipe-details__see-basket-cta", 3, "click"], [1, "miam-recipe-details__see-basket__text"], i18n_12, [3, "recipeId", "serves", "fetchPricingOnScroll"], [1, "miam-recipe-details__price"], [1, "miam-recipe-details__price-label", "miam-ds-text", "size-l", "weight-xxl"], [3, "price"], [1, "miam-ds-loader", "primary"], [1, "miam-recipe-details__price-in-basket-label", "miam-ds-text", "size-xs"], i18n_14, [3, "recipe", "hideAddon"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "originTrace", "selected"]];
|
|
27910
27930
|
}, template: function RecipeDetailsComponent_Template(rf, ctx) {
|
|
27911
27931
|
if (rf & 1) {
|
|
27912
27932
|
i0__namespace.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 5, 8, "div", 0);
|
|
@@ -29051,7 +29071,7 @@
|
|
|
29051
29071
|
_this.basketChangedSinceOpened = true;
|
|
29052
29072
|
_this.cdr.detectChanges();
|
|
29053
29073
|
}
|
|
29054
|
-
}), this.basketsService.basket$.pipe(operators.
|
|
29074
|
+
}), this.basketsService.basket$.pipe(operators.skipWhile(function (basket) { return !basket; }), operators.map(function (basket) { return basket.totalPrice; })).subscribe(function (totalPrice) {
|
|
29055
29075
|
_this.totalPrice = totalPrice;
|
|
29056
29076
|
_this.updateShowPlaceOrderFooter();
|
|
29057
29077
|
_this.cdr.detectChanges();
|