ng-miam 8.2.2 → 8.2.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 +145 -99
- 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/modal/modal.component.js +6 -3
- package/esm2015/lib/_services/interceptor.service.js +2 -2
- package/esm2015/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.js +17 -4
- package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +3 -5
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +113 -87
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +5 -5
- package/fesm2015/ng-miam.js +138 -99
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_components/modal/modal.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.d.ts +3 -0
- package/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-catalog/recipe-catalog.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts +2 -1
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts.map +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -8666,7 +8666,7 @@
|
|
|
8666
8666
|
request = request.clone({
|
|
8667
8667
|
setHeaders: {
|
|
8668
8668
|
'miam-origin': this.context.origin.value,
|
|
8669
|
-
'miam-front-version': '8.2.
|
|
8669
|
+
'miam-front-version': '8.2.3',
|
|
8670
8670
|
'miam-front-type': 'web',
|
|
8671
8671
|
'miam-api-version': '4.7.0',
|
|
8672
8672
|
'language-id': environment$1.lang
|
|
@@ -8952,8 +8952,11 @@
|
|
|
8952
8952
|
var _this = this;
|
|
8953
8953
|
this.currentPath = window.location.href;
|
|
8954
8954
|
this.mutationObserver = new MutationObserver(function () {
|
|
8955
|
-
if (_this.
|
|
8956
|
-
_this.
|
|
8955
|
+
if (_this.currentPath !== window.location.href) {
|
|
8956
|
+
_this.currentPath = window.location.href;
|
|
8957
|
+
if (_this.display) {
|
|
8958
|
+
_this.onClose();
|
|
8959
|
+
}
|
|
8957
8960
|
}
|
|
8958
8961
|
});
|
|
8959
8962
|
this.mutationObserver.observe(document.body, { childList: true });
|
|
@@ -18154,7 +18157,7 @@
|
|
|
18154
18157
|
i0__namespace.ɵɵelementEnd();
|
|
18155
18158
|
}
|
|
18156
18159
|
}
|
|
18157
|
-
var _c4 = function (a0, a1, a2) { return { "variant-1": a0, "variant-2": a1, "variant-3": a2 }; };
|
|
18160
|
+
var _c4 = function (a0, a1, a2, a3) { return { "variant-1": a0, "variant-2": a1, "variant-3": a2, "in-basket": a3 }; };
|
|
18158
18161
|
var recipeIncludes$4 = ['recipe-provider', 'sponsors'];
|
|
18159
18162
|
var recipeSparseFields$4 = (_b$1 = {
|
|
18160
18163
|
recipes: __spread(['title', 'number-of-guests', 'media-url', 'video-id', 'filigrane-logo-url', 'difficulty', 'preparation-time', 'cooking-time',
|
|
@@ -18201,6 +18204,7 @@
|
|
|
18201
18204
|
_this.icon = exports.Icon;
|
|
18202
18205
|
_this.actionsOpened = false;
|
|
18203
18206
|
_this.isloaded = false;
|
|
18207
|
+
_this.inBasket = false;
|
|
18204
18208
|
_this.displayLikesBottom = false;
|
|
18205
18209
|
_this.displayBadge = false;
|
|
18206
18210
|
_this.primaryButtonClicked$ = new i0.EventEmitter();
|
|
@@ -18222,6 +18226,7 @@
|
|
|
18222
18226
|
this.updateDisplayVariant();
|
|
18223
18227
|
if (this.recipe) {
|
|
18224
18228
|
this.updateGuestsIfNecessary();
|
|
18229
|
+
this.checkRecipeInBasket();
|
|
18225
18230
|
this.isloaded = true;
|
|
18226
18231
|
}
|
|
18227
18232
|
else if (this.recipeId) {
|
|
@@ -18305,6 +18310,7 @@
|
|
|
18305
18310
|
})).subscribe(function (result) {
|
|
18306
18311
|
_this.recipe = result;
|
|
18307
18312
|
_this.updateGuestsIfNecessary();
|
|
18313
|
+
_this.checkRecipeInBasket();
|
|
18308
18314
|
_this.isloaded = true;
|
|
18309
18315
|
_this.cdr.detectChanges();
|
|
18310
18316
|
}));
|
|
@@ -18321,6 +18327,7 @@
|
|
|
18321
18327
|
if ((results === null || results === void 0 ? void 0 : results.length) > 0) {
|
|
18322
18328
|
_this.recipe = results[0];
|
|
18323
18329
|
_this.updateGuestsIfNecessary();
|
|
18330
|
+
_this.checkRecipeInBasket();
|
|
18324
18331
|
_this.isloaded = true;
|
|
18325
18332
|
}
|
|
18326
18333
|
else {
|
|
@@ -18352,10 +18359,20 @@
|
|
|
18352
18359
|
_this.cdr.detectChanges();
|
|
18353
18360
|
}));
|
|
18354
18361
|
};
|
|
18362
|
+
RecipeCardComponent.prototype.checkRecipeInBasket = function () {
|
|
18363
|
+
var _this = this;
|
|
18364
|
+
if (!this.basketSubscription && this.recipe) {
|
|
18365
|
+
this.basketSubscription = this.basketsService.recipeIsInBasket(this.recipe.id).subscribe(function (inBasket) {
|
|
18366
|
+
_this.inBasket = inBasket;
|
|
18367
|
+
_this.cdr.detectChanges();
|
|
18368
|
+
});
|
|
18369
|
+
this.subscriptions.push(this.basketSubscription);
|
|
18370
|
+
}
|
|
18371
|
+
};
|
|
18355
18372
|
return RecipeCardComponent;
|
|
18356
18373
|
}(EventTracerComponent));
|
|
18357
18374
|
RecipeCardComponent.ɵfac = function RecipeCardComponent_Factory(t) { return new (t || RecipeCardComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
|
|
18358
|
-
RecipeCardComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeCardComponent, selectors: [["ng-miam-recipe-card"]], inputs: { recipeId: "recipeId", recipe: "recipe", randomModeEnable: "randomModeEnable", productIds: "productIds", previewAllowed: "previewAllowed", helpButtonAllowed: "helpButtonAllowed", displayInfos: "displayInfos", displayPricing: "displayPricing", displayGuests: "displayGuests", addRecipeMode: "addRecipeMode", replaceMode: "replaceMode", displayVariant: "displayVariant" }, outputs: { removedFromFavorite: "removedFromFavorite", displayed: "displayed", actionTriggered: "actionTriggered", removeFromMealsPlanner: "removeFromMealsPlanner", addToMealsPlanner: "addToMealsPlanner", openCatalog: "openCatalog", hide: "hide" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars:
|
|
18375
|
+
RecipeCardComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeCardComponent, selectors: [["ng-miam-recipe-card"]], inputs: { recipeId: "recipeId", recipe: "recipe", randomModeEnable: "randomModeEnable", productIds: "productIds", previewAllowed: "previewAllowed", helpButtonAllowed: "helpButtonAllowed", displayInfos: "displayInfos", displayPricing: "displayPricing", displayGuests: "displayGuests", addRecipeMode: "addRecipeMode", replaceMode: "replaceMode", displayVariant: "displayVariant" }, outputs: { removedFromFavorite: "removedFromFavorite", displayed: "displayed", actionTriggered: "actionTriggered", removeFromMealsPlanner: "removeFromMealsPlanner", addToMealsPlanner: "addToMealsPlanner", openCatalog: "openCatalog", hide: "hide" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 3, vars: 9, consts: function () {
|
|
18359
18376
|
var i18n_0;
|
|
18360
18377
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
18361
18378
|
var MSG_EXTERNAL_9004334984468055592$$LIB__WEB_COMPONENTS_RECIPE_CARDS_RECIPE_CARD_RECIPE_CARD_COMPONENT_TS___1 = goog.getMsg("Changer");
|
|
@@ -18382,7 +18399,7 @@
|
|
|
18382
18399
|
i0__namespace.ɵɵelementEnd();
|
|
18383
18400
|
}
|
|
18384
18401
|
if (rf & 2) {
|
|
18385
|
-
i0__namespace.ɵɵproperty("condition", !!ctx.recipe)("ngClass", i0__namespace.ɵɵ
|
|
18402
|
+
i0__namespace.ɵɵproperty("condition", !!ctx.recipe)("ngClass", i0__namespace.ɵɵpureFunction4(4, _c4, ctx.displayVariant !== 2 && ctx.displayVariant !== 3, ctx.displayVariant === 2, ctx.displayVariant === 3, ctx.inBasket));
|
|
18386
18403
|
i0__namespace.ɵɵadvance(1);
|
|
18387
18404
|
i0__namespace.ɵɵproperty("ngIf", ctx.recipe);
|
|
18388
18405
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -19639,7 +19656,7 @@
|
|
|
19639
19656
|
i0__namespace.ɵɵadvance(1);
|
|
19640
19657
|
i0__namespace.ɵɵproperty("ngForOf", ctx.articles);
|
|
19641
19658
|
}
|
|
19642
|
-
}, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, IconComponent, i2__namespace$1.NgClass, LoaderComponent, CardCreateRecipeComponent, RecipeCardComponent, LoadOnScrollDirective, i2__namespace$1.NgTemplateOutlet, CatalogArticleCardComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-catalog-list{width:100%;padding:0 80px;box-sizing:border-box}.miam-catalog-list .miam-catalog-list__notFound{display:flex;flex-direction:column;width:100%;justify-content:center;text-align:center;padding:36px 0 0}.miam-catalog-list .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{margin-top:36px;margin-bottom:8px;font-size:24px;font-weight:700;color:var(--m-color-primary)}.miam-catalog-list .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering span{display:inline}.miam-catalog-list .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering span+span{margin-left:5px}.miam-catalog-list .miam-catalog-list__notFound .miam-catalog-list__notFound__title2{font-size:22px;color:var(--m-color-grey-text)}.miam-catalog-list .miam-catalog-list__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-list .miam-catalog-list__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-catalog-list .miam-catalog-list__cards{display:grid;grid-template-columns:repeat(auto-fill,var(--m-catalog-card-width));justify-content:center;gap:16px;position:relative;width:100%;box-sizing:border-box}@media (max-width:1024px){.miam-catalog-list{padding:0 32px}}@media (max-width:700px){.miam-catalog-list{padding:0 20px}}"], encapsulation: 2, changeDetection: 0 });
|
|
19659
|
+
}, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, IconComponent, i2__namespace$1.NgClass, LoaderComponent, CardCreateRecipeComponent, RecipeCardComponent, LoadOnScrollDirective, i2__namespace$1.NgTemplateOutlet, CatalogArticleCardComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-catalog-list{width:100%;padding:0 80px;box-sizing:border-box}.miam-catalog-list .miam-catalog-list__notFound{display:flex;flex-direction:column;width:100%;justify-content:center;text-align:center;padding:36px 0 0}.miam-catalog-list .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{margin-top:36px;margin-bottom:8px;font-size:24px;font-weight:700;color:var(--m-color-primary)}.miam-catalog-list .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering span{display:inline}.miam-catalog-list .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering span+span{margin-left:5px}.miam-catalog-list .miam-catalog-list__notFound .miam-catalog-list__notFound__title2{font-size:22px;color:var(--m-color-grey-text)}.miam-catalog-list .miam-catalog-list__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-list .miam-catalog-list__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-catalog-list .miam-catalog-list__cards{display:grid;grid-template-columns:repeat(auto-fill,var(--m-catalog-card-width));justify-content:center;gap:16px;position:relative;width:100%;box-sizing:border-box}.miam-catalog-list .miam-catalog-list__cards:not(:has(.miam-recipe-card)){grid-template-columns:unset}@media (max-width:1024px){.miam-catalog-list{padding:0 32px}}@media (max-width:700px){.miam-catalog-list{padding:0 20px}}"], encapsulation: 2, changeDetection: 0 });
|
|
19643
19660
|
(function () {
|
|
19644
19661
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CatalogListComponent, [{
|
|
19645
19662
|
type: i0.Component,
|
|
@@ -24181,12 +24198,10 @@
|
|
|
24181
24198
|
this.cdr.detectChanges();
|
|
24182
24199
|
};
|
|
24183
24200
|
RecipeCatalogComponent.prototype.ngOnDestroy = function () {
|
|
24184
|
-
var _a;
|
|
24201
|
+
var _a, _b;
|
|
24185
24202
|
this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
24186
24203
|
(_a = this.headerHeightSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
24187
|
-
|
|
24188
|
-
this.stickyToolbarObserver.unobserve(document.querySelector('.miam-recipe-catalog__toolbar-container'));
|
|
24189
|
-
}
|
|
24204
|
+
(_b = this.stickyToolbarObserver) === null || _b === void 0 ? void 0 : _b.disconnect();
|
|
24190
24205
|
};
|
|
24191
24206
|
RecipeCatalogComponent.prototype.currentPath = function () {
|
|
24192
24207
|
return 'miam/recipes';
|
|
@@ -25524,7 +25539,7 @@
|
|
|
25524
25539
|
}
|
|
25525
25540
|
function RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_10_Template(rf, ctx) {
|
|
25526
25541
|
if (rf & 1) {
|
|
25527
|
-
i0__namespace.ɵɵelement(0, "ng-miam-like-button",
|
|
25542
|
+
i0__namespace.ɵɵelement(0, "ng-miam-like-button", 44);
|
|
25528
25543
|
}
|
|
25529
25544
|
if (rf & 2) {
|
|
25530
25545
|
var ctx_r6 = i0__namespace.ɵɵnextContext(3);
|
|
@@ -25533,7 +25548,7 @@
|
|
|
25533
25548
|
}
|
|
25534
25549
|
function RecipeDetailsComponent_div_0_div_3_img_14_Template(rf, ctx) {
|
|
25535
25550
|
if (rf & 1) {
|
|
25536
|
-
i0__namespace.ɵɵelement(0, "img",
|
|
25551
|
+
i0__namespace.ɵɵelement(0, "img", 45);
|
|
25537
25552
|
}
|
|
25538
25553
|
if (rf & 2) {
|
|
25539
25554
|
var ctx_r7 = i0__namespace.ɵɵnextContext(3);
|
|
@@ -25542,7 +25557,7 @@
|
|
|
25542
25557
|
}
|
|
25543
25558
|
function RecipeDetailsComponent_div_0_div_3_youtube_player_15_Template(rf, ctx) {
|
|
25544
25559
|
if (rf & 1) {
|
|
25545
|
-
i0__namespace.ɵɵelement(0, "youtube-player",
|
|
25560
|
+
i0__namespace.ɵɵelement(0, "youtube-player", 46);
|
|
25546
25561
|
}
|
|
25547
25562
|
if (rf & 2) {
|
|
25548
25563
|
var ctx_r8 = i0__namespace.ɵɵnextContext(3);
|
|
@@ -25551,8 +25566,8 @@
|
|
|
25551
25566
|
}
|
|
25552
25567
|
function RecipeDetailsComponent_div_0_div_3_div_16_Template(rf, ctx) {
|
|
25553
25568
|
if (rf & 1) {
|
|
25554
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
25555
|
-
i0__namespace.ɵɵelement(1, "img",
|
|
25569
|
+
i0__namespace.ɵɵelementStart(0, "div", 47);
|
|
25570
|
+
i0__namespace.ɵɵelement(1, "img", 48);
|
|
25556
25571
|
i0__namespace.ɵɵelementEnd();
|
|
25557
25572
|
}
|
|
25558
25573
|
if (rf & 2) {
|
|
@@ -25563,9 +25578,9 @@
|
|
|
25563
25578
|
}
|
|
25564
25579
|
function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template(rf, ctx) {
|
|
25565
25580
|
if (rf & 1) {
|
|
25566
|
-
var
|
|
25567
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-addon-link",
|
|
25568
|
-
i0__namespace.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template_ng_miam_addon_link_showAddon_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
25581
|
+
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
25582
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-addon-link", 49);
|
|
25583
|
+
i0__namespace.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template_ng_miam_addon_link_showAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(3); return ctx_r18.toggleAddon(); });
|
|
25569
25584
|
i0__namespace.ɵɵelementEnd();
|
|
25570
25585
|
}
|
|
25571
25586
|
if (rf & 2) {
|
|
@@ -25575,7 +25590,7 @@
|
|
|
25575
25590
|
}
|
|
25576
25591
|
function RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_28_Template(rf, ctx) {
|
|
25577
25592
|
if (rf & 1) {
|
|
25578
|
-
i0__namespace.ɵɵelement(0, "ng-miam-like-button",
|
|
25593
|
+
i0__namespace.ɵɵelement(0, "ng-miam-like-button", 50);
|
|
25579
25594
|
}
|
|
25580
25595
|
if (rf & 2) {
|
|
25581
25596
|
var ctx_r11 = i0__namespace.ɵɵnextContext(3);
|
|
@@ -25589,17 +25604,17 @@
|
|
|
25589
25604
|
}
|
|
25590
25605
|
function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_37_Template(rf, ctx) {
|
|
25591
25606
|
if (rf & 1) {
|
|
25592
|
-
var
|
|
25593
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-products-picker",
|
|
25594
|
-
i0__namespace.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_37_Template_ng_miam_products_picker_closeModal_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
25607
|
+
var _r21_1 = i0__namespace.ɵɵgetCurrentView();
|
|
25608
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-products-picker", 51);
|
|
25609
|
+
i0__namespace.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_37_Template_ng_miam_products_picker_closeModal_0_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r20 = i0__namespace.ɵɵnextContext(3); return ctx_r20.onClose(); });
|
|
25595
25610
|
i0__namespace.ɵɵelementEnd();
|
|
25596
25611
|
}
|
|
25597
25612
|
}
|
|
25598
25613
|
function RecipeDetailsComponent_div_0_div_3_div_38_Template(rf, ctx) {
|
|
25599
25614
|
if (rf & 1) {
|
|
25600
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
25601
|
-
i0__namespace.ɵɵelement(1, "ng-miam-recipe-details-ingredients",
|
|
25602
|
-
i0__namespace.ɵɵelement(2, "ng-miam-recipe-details-steps",
|
|
25615
|
+
i0__namespace.ɵɵelementStart(0, "div", 52);
|
|
25616
|
+
i0__namespace.ɵɵelement(1, "ng-miam-recipe-details-ingredients", 53);
|
|
25617
|
+
i0__namespace.ɵɵelement(2, "ng-miam-recipe-details-steps", 54);
|
|
25603
25618
|
i0__namespace.ɵɵelementEnd();
|
|
25604
25619
|
}
|
|
25605
25620
|
if (rf & 2) {
|
|
@@ -25610,25 +25625,25 @@
|
|
|
25610
25625
|
i0__namespace.ɵɵproperty("recipe", ctx_r14.recipeDetailsService.recipe);
|
|
25611
25626
|
}
|
|
25612
25627
|
}
|
|
25613
|
-
function
|
|
25628
|
+
function RecipeDetailsComponent_div_0_div_3_ng_container_40_button_1_span_7_Template(rf, ctx) {
|
|
25614
25629
|
if (rf & 1) {
|
|
25615
25630
|
i0__namespace.ɵɵelementStart(0, "span");
|
|
25616
25631
|
i0__namespace.ɵɵi18n(1, 64);
|
|
25617
25632
|
i0__namespace.ɵɵelementEnd();
|
|
25618
25633
|
}
|
|
25619
25634
|
}
|
|
25620
|
-
function
|
|
25635
|
+
function RecipeDetailsComponent_div_0_div_3_ng_container_40_button_1_span_8_Template(rf, ctx) {
|
|
25621
25636
|
if (rf & 1) {
|
|
25622
25637
|
i0__namespace.ɵɵelementStart(0, "span");
|
|
25623
25638
|
i0__namespace.ɵɵi18n(1, 65);
|
|
25624
25639
|
i0__namespace.ɵɵelementEnd();
|
|
25625
25640
|
}
|
|
25626
25641
|
}
|
|
25627
|
-
function
|
|
25642
|
+
function RecipeDetailsComponent_div_0_div_3_ng_container_40_button_1_Template(rf, ctx) {
|
|
25628
25643
|
if (rf & 1) {
|
|
25629
|
-
var
|
|
25644
|
+
var _r28_1 = i0__namespace.ɵɵgetCurrentView();
|
|
25630
25645
|
i0__namespace.ɵɵelementStart(0, "button", 58);
|
|
25631
|
-
i0__namespace.ɵɵlistener("click", function
|
|
25646
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_ng_container_40_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r28_1); var ctx_r27 = i0__namespace.ɵɵnextContext(4); return ctx_r27.recipeDetailsService.addAllIngredientsToBasket(ctx_r27.eventTrace()); });
|
|
25632
25647
|
i0__namespace.ɵɵelement(1, "img", 59);
|
|
25633
25648
|
i0__namespace.ɵɵelementStart(2, "div", 60);
|
|
25634
25649
|
i0__namespace.ɵɵelementStart(3, "span");
|
|
@@ -25637,8 +25652,8 @@
|
|
|
25637
25652
|
i0__namespace.ɵɵelementStart(5, "span");
|
|
25638
25653
|
i0__namespace.ɵɵtext(6);
|
|
25639
25654
|
i0__namespace.ɵɵelementEnd();
|
|
25640
|
-
i0__namespace.ɵɵtemplate(7,
|
|
25641
|
-
i0__namespace.ɵɵtemplate(8,
|
|
25655
|
+
i0__namespace.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_3_ng_container_40_button_1_span_7_Template, 2, 0, "span", 36);
|
|
25656
|
+
i0__namespace.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_3_ng_container_40_button_1_span_8_Template, 2, 0, "span", 36);
|
|
25642
25657
|
i0__namespace.ɵɵelementStart(9, "div", 62);
|
|
25643
25658
|
i0__namespace.ɵɵtext(10, " ( ");
|
|
25644
25659
|
i0__namespace.ɵɵelementStart(11, "span");
|
|
@@ -25654,33 +25669,33 @@
|
|
|
25654
25669
|
i0__namespace.ɵɵelementEnd();
|
|
25655
25670
|
}
|
|
25656
25671
|
if (rf & 2) {
|
|
25657
|
-
var
|
|
25672
|
+
var ctx_r22 = i0__namespace.ɵɵnextContext(4);
|
|
25658
25673
|
i0__namespace.ɵɵadvance(6);
|
|
25659
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
25674
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r22.recipeDetailsService.remainingBasketEntries.length);
|
|
25660
25675
|
i0__namespace.ɵɵadvance(1);
|
|
25661
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
25676
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r22.recipeDetailsService.remainingBasketEntries.length <= 1);
|
|
25662
25677
|
i0__namespace.ɵɵadvance(1);
|
|
25663
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
25678
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r22.recipeDetailsService.remainingBasketEntries.length > 1);
|
|
25664
25679
|
i0__namespace.ɵɵadvance(3);
|
|
25665
|
-
i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(12, 8,
|
|
25680
|
+
i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(12, 8, ctx_r22.recipeDetailsService.ingredientToBasketLoading$));
|
|
25666
25681
|
i0__namespace.ɵɵadvance(2);
|
|
25667
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(14, 10,
|
|
25682
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(14, 10, ctx_r22.recipeDetailsService.recipePrice.remaining, ctx_r22.suppliersService.supplier$.value.currency), " ");
|
|
25668
25683
|
i0__namespace.ɵɵadvance(2);
|
|
25669
|
-
i0__namespace.ɵɵclassProp("hidden", !i0__namespace.ɵɵpipeBind1(16, 13,
|
|
25684
|
+
i0__namespace.ɵɵclassProp("hidden", !i0__namespace.ɵɵpipeBind1(16, 13, ctx_r22.recipeDetailsService.ingredientToBasketLoading$));
|
|
25670
25685
|
}
|
|
25671
25686
|
}
|
|
25672
|
-
function
|
|
25687
|
+
function RecipeDetailsComponent_div_0_div_3_ng_container_40_button_3_Template(rf, ctx) {
|
|
25673
25688
|
if (rf & 1) {
|
|
25674
25689
|
i0__namespace.ɵɵelementStart(0, "button", 66);
|
|
25675
25690
|
i0__namespace.ɵɵelement(1, "div", 63);
|
|
25676
25691
|
i0__namespace.ɵɵelementEnd();
|
|
25677
25692
|
}
|
|
25678
25693
|
}
|
|
25679
|
-
function
|
|
25694
|
+
function RecipeDetailsComponent_div_0_div_3_ng_container_40_button_5_Template(rf, ctx) {
|
|
25680
25695
|
if (rf & 1) {
|
|
25681
|
-
var
|
|
25696
|
+
var _r30_1 = i0__namespace.ɵɵgetCurrentView();
|
|
25682
25697
|
i0__namespace.ɵɵelementStart(0, "button", 67);
|
|
25683
|
-
i0__namespace.ɵɵlistener("click", function
|
|
25698
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_ng_container_40_button_5_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r30_1); var ctx_r29 = i0__namespace.ɵɵnextContext(4); return ctx_r29.onClose(); });
|
|
25684
25699
|
i0__namespace.ɵɵelementStart(1, "div", 60);
|
|
25685
25700
|
i0__namespace.ɵɵelementStart(2, "span");
|
|
25686
25701
|
i0__namespace.ɵɵi18n(3, 68);
|
|
@@ -25689,50 +25704,82 @@
|
|
|
25689
25704
|
i0__namespace.ɵɵelementEnd();
|
|
25690
25705
|
}
|
|
25691
25706
|
}
|
|
25692
|
-
function
|
|
25707
|
+
function RecipeDetailsComponent_div_0_div_3_ng_container_40_Template(rf, ctx) {
|
|
25693
25708
|
if (rf & 1) {
|
|
25694
|
-
i0__namespace.ɵɵ
|
|
25695
|
-
i0__namespace.ɵɵ
|
|
25709
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
25710
|
+
i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_3_ng_container_40_button_1_Template, 18, 15, "button", 55);
|
|
25711
|
+
i0__namespace.ɵɵpipe(2, "async");
|
|
25712
|
+
i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_ng_container_40_button_3_Template, 2, 0, "button", 56);
|
|
25713
|
+
i0__namespace.ɵɵpipe(4, "async");
|
|
25714
|
+
i0__namespace.ɵɵtemplate(5, RecipeDetailsComponent_div_0_div_3_ng_container_40_button_5_Template, 4, 0, "button", 57);
|
|
25715
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
25716
|
+
}
|
|
25717
|
+
if (rf & 2) {
|
|
25718
|
+
var ctx_r15 = i0__namespace.ɵɵnextContext(3);
|
|
25719
|
+
i0__namespace.ɵɵadvance(1);
|
|
25720
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r15.recipeDetailsService.remainingBasketEntries.length > 0 && !i0__namespace.ɵɵpipeBind1(2, 3, ctx_r15.recipeDetailsService.allIngredientsToBasketLoading$));
|
|
25721
|
+
i0__namespace.ɵɵadvance(2);
|
|
25722
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r15.recipeDetailsService.remainingBasketEntries.length > 0 && i0__namespace.ɵɵpipeBind1(4, 5, ctx_r15.recipeDetailsService.allIngredientsToBasketLoading$));
|
|
25723
|
+
i0__namespace.ɵɵadvance(2);
|
|
25724
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r15.recipeDetailsService.remainingBasketEntries.length === 0);
|
|
25725
|
+
}
|
|
25726
|
+
}
|
|
25727
|
+
function RecipeDetailsComponent_div_0_div_3_ng_container_41_Template(rf, ctx) {
|
|
25728
|
+
if (rf & 1) {
|
|
25729
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
25730
|
+
i0__namespace.ɵɵelement(1, "ng-miam-recipe-pricing", 69);
|
|
25731
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
25732
|
+
}
|
|
25733
|
+
if (rf & 2) {
|
|
25734
|
+
var ctx_r16 = i0__namespace.ɵɵnextContext(3);
|
|
25735
|
+
i0__namespace.ɵɵadvance(1);
|
|
25736
|
+
i0__namespace.ɵɵproperty("recipeId", ctx_r16.recipeDetailsService.recipe.id)("serves", ctx_r16.recipeDetailsService.recipe.modifiedGuests)("fetchPricingOnScroll", false);
|
|
25737
|
+
}
|
|
25738
|
+
}
|
|
25739
|
+
function RecipeDetailsComponent_div_0_div_3_div_42_Template(rf, ctx) {
|
|
25740
|
+
if (rf & 1) {
|
|
25741
|
+
i0__namespace.ɵɵelementStart(0, "div", 70);
|
|
25742
|
+
i0__namespace.ɵɵelementStart(1, "div", 71);
|
|
25696
25743
|
i0__namespace.ɵɵelementStart(2, "span");
|
|
25697
25744
|
i0__namespace.ɵɵpipe(3, "async");
|
|
25698
25745
|
i0__namespace.ɵɵpipe(4, "async");
|
|
25699
25746
|
i0__namespace.ɵɵtext(5);
|
|
25700
25747
|
i0__namespace.ɵɵpipe(6, "currency");
|
|
25701
25748
|
i0__namespace.ɵɵelementEnd();
|
|
25702
|
-
i0__namespace.ɵɵelement(7, "div",
|
|
25749
|
+
i0__namespace.ɵɵelement(7, "div", 72);
|
|
25703
25750
|
i0__namespace.ɵɵpipe(8, "async");
|
|
25704
25751
|
i0__namespace.ɵɵpipe(9, "async");
|
|
25705
25752
|
i0__namespace.ɵɵelementEnd();
|
|
25706
|
-
i0__namespace.ɵɵelementStart(10, "span",
|
|
25753
|
+
i0__namespace.ɵɵelementStart(10, "span", 73);
|
|
25707
25754
|
i0__namespace.ɵɵtext(11, "dans mon panier");
|
|
25708
25755
|
i0__namespace.ɵɵelementEnd();
|
|
25709
25756
|
i0__namespace.ɵɵelementEnd();
|
|
25710
25757
|
}
|
|
25711
25758
|
if (rf & 2) {
|
|
25712
|
-
var
|
|
25759
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(3);
|
|
25713
25760
|
i0__namespace.ɵɵadvance(2);
|
|
25714
|
-
i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(3, 5,
|
|
25761
|
+
i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r17.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(4, 7, ctx_r17.recipeDetailsService.updateIngredientFromBasketLoading$));
|
|
25715
25762
|
i0__namespace.ɵɵadvance(3);
|
|
25716
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(6, 9,
|
|
25763
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(6, 9, ctx_r17.recipeDetailsService.recipePrice.inBasket, ctx_r17.suppliersService.supplier$.value.currency), " ");
|
|
25717
25764
|
i0__namespace.ɵɵadvance(2);
|
|
25718
|
-
i0__namespace.ɵɵclassProp("hidden", !(i0__namespace.ɵɵpipeBind1(8, 12,
|
|
25765
|
+
i0__namespace.ɵɵclassProp("hidden", !(i0__namespace.ɵɵpipeBind1(8, 12, ctx_r17.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(9, 14, ctx_r17.recipeDetailsService.updateIngredientFromBasketLoading$)));
|
|
25719
25766
|
}
|
|
25720
25767
|
}
|
|
25721
25768
|
var _c11 = function (a0) { return { "hidden": a0 }; };
|
|
25722
25769
|
function RecipeDetailsComponent_div_0_div_3_Template(rf, ctx) {
|
|
25723
25770
|
if (rf & 1) {
|
|
25724
|
-
var
|
|
25771
|
+
var _r32_1 = i0__namespace.ɵɵgetCurrentView();
|
|
25725
25772
|
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
25726
25773
|
i0__namespace.ɵɵelementStart(1, "div", 8, 9);
|
|
25727
25774
|
i0__namespace.ɵɵelementStart(3, "div", 10);
|
|
25728
25775
|
i0__namespace.ɵɵelementStart(4, "div", 11);
|
|
25729
25776
|
i0__namespace.ɵɵelementStart(5, "button", 12);
|
|
25730
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(
|
|
25777
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(_r32_1); var ctx_r31 = i0__namespace.ɵɵnextContext(2); return ctx_r31.onClose(); });
|
|
25731
25778
|
i0__namespace.ɵɵelement(6, "img", 13);
|
|
25732
25779
|
i0__namespace.ɵɵelementEnd();
|
|
25733
25780
|
i0__namespace.ɵɵelementStart(7, "div", 14);
|
|
25734
25781
|
i0__namespace.ɵɵelementStart(8, "button", 15);
|
|
25735
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_8_listener() { i0__namespace.ɵɵrestoreView(
|
|
25782
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_8_listener() { i0__namespace.ɵɵrestoreView(_r32_1); var ctx_r33 = i0__namespace.ɵɵnextContext(2); return ctx_r33.onClose(); });
|
|
25736
25783
|
i0__namespace.ɵɵelement(9, "img", 16);
|
|
25737
25784
|
i0__namespace.ɵɵelementEnd();
|
|
25738
25785
|
i0__namespace.ɵɵtemplate(10, RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_10_Template, 1, 1, "ng-miam-like-button", 17);
|
|
@@ -25740,7 +25787,7 @@
|
|
|
25740
25787
|
i0__namespace.ɵɵelementEnd();
|
|
25741
25788
|
i0__namespace.ɵɵelementEnd();
|
|
25742
25789
|
i0__namespace.ɵɵelementStart(12, "ng-miam-counter-input", 18);
|
|
25743
|
-
i0__namespace.ɵɵlistener("valueChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_counter_input_valueChange_12_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
25790
|
+
i0__namespace.ɵɵlistener("valueChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_counter_input_valueChange_12_listener($event) { i0__namespace.ɵɵrestoreView(_r32_1); var ctx_r34 = i0__namespace.ɵɵnextContext(2); return ctx_r34.updateGuests($event); });
|
|
25744
25791
|
i0__namespace.ɵɵtext(13, " > ");
|
|
25745
25792
|
i0__namespace.ɵɵelementEnd();
|
|
25746
25793
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -25756,7 +25803,7 @@
|
|
|
25756
25803
|
i0__namespace.ɵɵelementStart(21, "div", 26);
|
|
25757
25804
|
i0__namespace.ɵɵelementStart(22, "div", 27);
|
|
25758
25805
|
i0__namespace.ɵɵelementStart(23, "button", 28);
|
|
25759
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_23_listener() { i0__namespace.ɵɵrestoreView(
|
|
25806
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_23_listener() { i0__namespace.ɵɵrestoreView(_r32_1); var ctx_r35 = i0__namespace.ɵɵnextContext(2); return ctx_r35.onClose(); });
|
|
25760
25807
|
i0__namespace.ɵɵelement(24, "img", 29);
|
|
25761
25808
|
i0__namespace.ɵɵelementEnd();
|
|
25762
25809
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -25768,7 +25815,7 @@
|
|
|
25768
25815
|
i0__namespace.ɵɵpipe(29, "async");
|
|
25769
25816
|
i0__namespace.ɵɵelementStart(30, "div", 33);
|
|
25770
25817
|
i0__namespace.ɵɵelementStart(31, "button", 34);
|
|
25771
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_31_listener() { i0__namespace.ɵɵrestoreView(
|
|
25818
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_31_listener() { i0__namespace.ɵɵrestoreView(_r32_1); var ctx_r36 = i0__namespace.ɵɵnextContext(2); return ctx_r36.onClose(); });
|
|
25772
25819
|
i0__namespace.ɵɵelement(32, "img", 35);
|
|
25773
25820
|
i0__namespace.ɵɵelementEnd();
|
|
25774
25821
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -25779,27 +25826,22 @@
|
|
|
25779
25826
|
i0__namespace.ɵɵelement(34, "ng-miam-recipe-details-infos", 37);
|
|
25780
25827
|
i0__namespace.ɵɵelementStart(35, "div", 38);
|
|
25781
25828
|
i0__namespace.ɵɵelementStart(36, "ng-miam-slider-tabs", 39);
|
|
25782
|
-
i0__namespace.ɵɵlistener("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_36_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
25829
|
+
i0__namespace.ɵɵlistener("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_36_listener($event) { i0__namespace.ɵɵrestoreView(_r32_1); var ctx_r37 = i0__namespace.ɵɵnextContext(2); return ctx_r37.activeTabIndex = $event; })("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_36_listener() { i0__namespace.ɵɵrestoreView(_r32_1); var ctx_r38 = i0__namespace.ɵɵnextContext(2); return ctx_r38.cdr.detectChanges(); });
|
|
25783
25830
|
i0__namespace.ɵɵelementEnd();
|
|
25784
25831
|
i0__namespace.ɵɵelementEnd();
|
|
25785
25832
|
i0__namespace.ɵɵtemplate(37, RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_37_Template, 1, 0, "ng-miam-products-picker", 40);
|
|
25786
25833
|
i0__namespace.ɵɵtemplate(38, RecipeDetailsComponent_div_0_div_3_div_38_Template, 3, 2, "div", 41);
|
|
25787
25834
|
i0__namespace.ɵɵelementStart(39, "div", 42);
|
|
25788
|
-
i0__namespace.ɵɵ
|
|
25789
|
-
i0__namespace.ɵɵtemplate(41,
|
|
25790
|
-
i0__namespace.ɵɵ
|
|
25791
|
-
i0__namespace.ɵɵtemplate(43, RecipeDetailsComponent_div_0_div_3_button_43_Template, 2, 0, "button", 44);
|
|
25792
|
-
i0__namespace.ɵɵpipe(44, "async");
|
|
25793
|
-
i0__namespace.ɵɵtemplate(45, RecipeDetailsComponent_div_0_div_3_button_45_Template, 4, 0, "button", 45);
|
|
25794
|
-
i0__namespace.ɵɵelementContainerEnd();
|
|
25795
|
-
i0__namespace.ɵɵtemplate(46, RecipeDetailsComponent_div_0_div_3_div_46_Template, 12, 16, "div", 46);
|
|
25835
|
+
i0__namespace.ɵɵtemplate(40, RecipeDetailsComponent_div_0_div_3_ng_container_40_Template, 6, 7, "ng-container", 36);
|
|
25836
|
+
i0__namespace.ɵɵtemplate(41, RecipeDetailsComponent_div_0_div_3_ng_container_41_Template, 2, 3, "ng-container", 36);
|
|
25837
|
+
i0__namespace.ɵɵtemplate(42, RecipeDetailsComponent_div_0_div_3_div_42_Template, 12, 16, "div", 43);
|
|
25796
25838
|
i0__namespace.ɵɵelementEnd();
|
|
25797
25839
|
i0__namespace.ɵɵelementEnd();
|
|
25798
25840
|
}
|
|
25799
25841
|
if (rf & 2) {
|
|
25800
25842
|
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
25801
25843
|
i0__namespace.ɵɵadvance(10);
|
|
25802
|
-
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(11,
|
|
25844
|
+
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(11, 21, ctx_r4.userService.isLogged$));
|
|
25803
25845
|
i0__namespace.ɵɵadvance(2);
|
|
25804
25846
|
i0__namespace.ɵɵproperty("floating", true)("value", ctx_r4.recipeDetailsService.recipe.modifiedGuests)("minRange", 1);
|
|
25805
25847
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -25813,25 +25855,25 @@
|
|
|
25813
25855
|
i0__namespace.ɵɵadvance(8);
|
|
25814
25856
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.recipeDetailsService.recipe == null ? null : ctx_r4.recipeDetailsService.recipe.attributes["title"], " ");
|
|
25815
25857
|
i0__namespace.ɵɵadvance(2);
|
|
25816
|
-
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(29,
|
|
25858
|
+
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(29, 23, ctx_r4.userService.isLogged$));
|
|
25817
25859
|
i0__namespace.ɵɵadvance(5);
|
|
25818
25860
|
i0__namespace.ɵɵproperty("ngIf", ctx_r4.contextService.noSupplier);
|
|
25819
25861
|
i0__namespace.ɵɵadvance(1);
|
|
25820
25862
|
i0__namespace.ɵɵproperty("recipe", ctx_r4.recipeDetailsService.recipe);
|
|
25821
25863
|
i0__namespace.ɵɵadvance(1);
|
|
25822
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
25864
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(25, _c11, ctx_r4.recipeDetailsService.onlyShowPreparation));
|
|
25823
25865
|
i0__namespace.ɵɵadvance(1);
|
|
25824
25866
|
i0__namespace.ɵɵproperty("selectedTabIndex", ctx_r4.activeTabIndex);
|
|
25825
25867
|
i0__namespace.ɵɵadvance(1);
|
|
25826
25868
|
i0__namespace.ɵɵproperty("ngIf", ctx_r4.activeTabIndex === 0);
|
|
25827
25869
|
i0__namespace.ɵɵadvance(1);
|
|
25828
25870
|
i0__namespace.ɵɵproperty("ngIf", ctx_r4.activeTabIndex === 1);
|
|
25829
|
-
i0__namespace.ɵɵadvance(
|
|
25830
|
-
i0__namespace.ɵɵ
|
|
25831
|
-
i0__namespace.ɵɵadvance(
|
|
25832
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.
|
|
25833
|
-
i0__namespace.ɵɵadvance(
|
|
25834
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.
|
|
25871
|
+
i0__namespace.ɵɵadvance(1);
|
|
25872
|
+
i0__namespace.ɵɵclassProp("center", ctx_r4.recipeDetailsService.onlyShowPreparation);
|
|
25873
|
+
i0__namespace.ɵɵadvance(1);
|
|
25874
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r4.recipeDetailsService.onlyShowPreparation);
|
|
25875
|
+
i0__namespace.ɵɵadvance(1);
|
|
25876
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.onlyShowPreparation);
|
|
25835
25877
|
i0__namespace.ɵɵadvance(1);
|
|
25836
25878
|
i0__namespace.ɵɵproperty("ngIf", ctx_r4.showPrice());
|
|
25837
25879
|
}
|
|
@@ -25841,7 +25883,7 @@
|
|
|
25841
25883
|
i0__namespace.ɵɵelementStart(0, "div", 3);
|
|
25842
25884
|
i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_1_Template, 1, 0, "div", 4);
|
|
25843
25885
|
i0__namespace.ɵɵpipe(2, "async");
|
|
25844
|
-
i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_Template,
|
|
25886
|
+
i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_Template, 43, 27, "div", 5);
|
|
25845
25887
|
i0__namespace.ɵɵpipe(4, "async");
|
|
25846
25888
|
i0__namespace.ɵɵelementEnd();
|
|
25847
25889
|
}
|
|
@@ -25855,9 +25897,9 @@
|
|
|
25855
25897
|
}
|
|
25856
25898
|
function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template(rf, ctx) {
|
|
25857
25899
|
if (rf & 1) {
|
|
25858
|
-
var
|
|
25859
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-addon",
|
|
25860
|
-
i0__namespace.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
25900
|
+
var _r40_1 = i0__namespace.ɵɵgetCurrentView();
|
|
25901
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-addon", 74);
|
|
25902
|
+
i0__namespace.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r40_1); var ctx_r39 = i0__namespace.ɵɵnextContext(); return ctx_r39.toggleAddon(); });
|
|
25861
25903
|
i0__namespace.ɵɵelementEnd();
|
|
25862
25904
|
}
|
|
25863
25905
|
if (rf & 2) {
|
|
@@ -25867,9 +25909,9 @@
|
|
|
25867
25909
|
}
|
|
25868
25910
|
function RecipeDetailsComponent_ng_miam_replace_item_3_Template(rf, ctx) {
|
|
25869
25911
|
if (rf & 1) {
|
|
25870
|
-
var
|
|
25871
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item",
|
|
25872
|
-
i0__namespace.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_3_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
25912
|
+
var _r42_1 = i0__namespace.ɵɵgetCurrentView();
|
|
25913
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item", 75);
|
|
25914
|
+
i0__namespace.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_3_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r41 = i0__namespace.ɵɵnextContext(); return ctx_r41.recipeDetailsService.basketEntryToReplace = null; });
|
|
25873
25915
|
i0__namespace.ɵɵelementEnd();
|
|
25874
25916
|
}
|
|
25875
25917
|
if (rf & 2) {
|
|
@@ -25911,6 +25953,7 @@
|
|
|
25911
25953
|
_this.pricingGuestsText = 'par-personne';
|
|
25912
25954
|
_this.recipeAdded = new i0.EventEmitter();
|
|
25913
25955
|
_this.recipeError = new i0.EventEmitter();
|
|
25956
|
+
_this.closeDetails = new i0.EventEmitter();
|
|
25914
25957
|
_this.removedIngredients = [];
|
|
25915
25958
|
_this.isMobile = false;
|
|
25916
25959
|
_this.displayTags = false;
|
|
@@ -26066,6 +26109,7 @@
|
|
|
26066
26109
|
RecipeDetailsComponent.prototype.onClose = function () {
|
|
26067
26110
|
this.recipeDetailsService.displayEventWasSent = false;
|
|
26068
26111
|
var originPath = this.eventTrace().originPath;
|
|
26112
|
+
this.closeDetails.emit();
|
|
26069
26113
|
this.recipesService.hide();
|
|
26070
26114
|
this.cdr.detectChanges();
|
|
26071
26115
|
this.activeTabIndex = 0;
|
|
@@ -26104,7 +26148,7 @@
|
|
|
26104
26148
|
var _t = void 0;
|
|
26105
26149
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.topContainerImg = _t.first);
|
|
26106
26150
|
}
|
|
26107
|
-
}, inputs: { recipeId: "recipeId", guestNumber: "guestNumber", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 5, vars: 7, consts: function () {
|
|
26151
|
+
}, inputs: { recipeId: "recipeId", guestNumber: "guestNumber", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError", closeDetails: "closeDetails" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 5, vars: 7, consts: function () {
|
|
26108
26152
|
var i18n_1;
|
|
26109
26153
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
26110
26154
|
var MSG_EXTERNAL_7351539410416117833$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS___2 = goog.getMsg("Je fais mes courses, Je cuisine");
|
|
@@ -26115,37 +26159,37 @@
|
|
|
26115
26159
|
}
|
|
26116
26160
|
var i18n_3;
|
|
26117
26161
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
26118
|
-
var MSG_EXTERNAL_70397346439942337$$
|
|
26119
|
-
i18n_3 = MSG_EXTERNAL_70397346439942337$$
|
|
26162
|
+
var MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____4 = goog.getMsg("Ajouter");
|
|
26163
|
+
i18n_3 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____4;
|
|
26120
26164
|
}
|
|
26121
26165
|
else {
|
|
26122
26166
|
i18n_3 = $localize(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
|
|
26123
26167
|
}
|
|
26124
26168
|
var i18n_5;
|
|
26125
26169
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
26126
|
-
var MSG_EXTERNAL_5144484951400113194$$
|
|
26127
|
-
i18n_5 = MSG_EXTERNAL_5144484951400113194$$
|
|
26170
|
+
var MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______6 = goog.getMsg("produit");
|
|
26171
|
+
i18n_5 = MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______6;
|
|
26128
26172
|
}
|
|
26129
26173
|
else {
|
|
26130
26174
|
i18n_5 = $localize(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject([":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"], [":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"])));
|
|
26131
26175
|
}
|
|
26132
26176
|
var i18n_7;
|
|
26133
26177
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
26134
|
-
var MSG_EXTERNAL_1112144680738962826$$
|
|
26135
|
-
i18n_7 = MSG_EXTERNAL_1112144680738962826$$
|
|
26178
|
+
var MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______8 = goog.getMsg("produits");
|
|
26179
|
+
i18n_7 = MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______8;
|
|
26136
26180
|
}
|
|
26137
26181
|
else {
|
|
26138
26182
|
i18n_7 = $localize(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject([":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"], [":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"])));
|
|
26139
26183
|
}
|
|
26140
26184
|
var i18n_9;
|
|
26141
26185
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
26142
|
-
var MSG_EXTERNAL_2001694451572573558$$
|
|
26143
|
-
i18n_9 = MSG_EXTERNAL_2001694451572573558$$
|
|
26186
|
+
var MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____10 = goog.getMsg("Continuer mes courses");
|
|
26187
|
+
i18n_9 = MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____10;
|
|
26144
26188
|
}
|
|
26145
26189
|
else {
|
|
26146
26190
|
i18n_9 = $localize(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject([":\u241F0e81a4e1efd31ae65483ef21f4fa59c2dce0e6f1\u241F2001694451572573558:Continuer mes courses"], [":\u241F0e81a4e1efd31ae65483ef21f4fa59c2dce0e6f1\u241F2001694451572573558:Continuer mes courses"])));
|
|
26147
26191
|
}
|
|
26148
|
-
return [["class", "miam-recipe-details", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "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", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], ["alt", "recipe picture", "class", "miam-recipe-details__picture-img", 3, "src", 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"], [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"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", 4, "ngIf"], [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"], [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], ["tabs", i18n_1, 3, "selectedTabIndex", "selectedTabIndexChange"], [3, "closeModal", 4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], [1, "miam-recipe-details__footer"], ["class", "miam-recipe-
|
|
26192
|
+
return [["class", "miam-recipe-details", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "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", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], ["alt", "recipe picture", "class", "miam-recipe-details__picture-img", 3, "src", 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"], [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"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", 4, "ngIf"], [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"], [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], ["tabs", i18n_1, 3, "selectedTabIndex", "selectedTabIndexChange"], [3, "closeModal", 4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], [1, "miam-recipe-details__footer"], ["class", "miam-recipe-details__price", 4, "ngIf"], [1, "miam-recipe-details__like-button", 3, "recipe"], ["alt", "recipe picture", 1, "miam-recipe-details__picture-img", 3, "src"], [3, "videoId", "width", "height", "playerVars"], [1, "miam-recipe-details__picture__filigrane"], ["alt", "filigrane logo", 3, "src"], [3, "hasStorytelling", "recipe", "showAddon"], [1, "miam-recipe-details__like-button", 3, "recipe", "originTrace"], [3, "closeModal"], [1, "miam-recipe-details__preparation-tab"], [3, "ingredients"], [3, "recipe"], ["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-ds-button secondary", 3, "click", 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_3, [1, "miam-recipe-details__add-to-basket-remaining-price"], [1, "miam-ds-loader"], i18n_5, i18n_7, [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary"], [1, "miam-ds-button", "secondary", 3, "click"], i18n_9, [3, "recipeId", "serves", "fetchPricingOnScroll"], [1, "miam-recipe-details__price"], [1, "miam-recipe-details__price-label", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-ds-loader", "primary"], [1, "miam-recipe-details__price-in-basket-label", "miam-ds-text", "size-xs"], [3, "recipe", "hideAddon"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected"]];
|
|
26149
26193
|
}, template: function RecipeDetailsComponent_Template(rf, ctx) {
|
|
26150
26194
|
if (rf & 1) {
|
|
26151
26195
|
i0__namespace.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 5, 6, "div", 0);
|
|
@@ -26161,7 +26205,7 @@
|
|
|
26161
26205
|
i0__namespace.ɵɵadvance(1);
|
|
26162
26206
|
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(4, 5, ctx.recipeDetailsService.basketEntryToReplace$));
|
|
26163
26207
|
}
|
|
26164
|
-
}, directives: [i2__namespace$1.NgIf, CounterInputComponent, ReachTopDirective, RecipeDetailsInfosComponent, i2__namespace$1.NgClass, SliderTabsComponent, LikeButtonComponent, i8__namespace.YouTubePlayer, AddonLinkComponent, StoreLocatorLinkComponent, ProductsPickerComponent, RecipeDetailsIngredientsComponent, RecipeDetailsStepsComponent, RecipeAddonComponent, ReplaceItemComponent], pipes: [i2__namespace$1.AsyncPipe, i2__namespace$1.CurrencyPipe], styles: [".miam-recipe-details{min-height:100dvh}.miam-recipe-details .miam-recipe-details__loader{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-recipe-details .miam-recipe-details__container{position:relative}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sponsor-separator{border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);margin:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{position:relative;max-height:600px;display:flex}@media (min-width:1023px) and (max-height:1000px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:400px}}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:300px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{position:absolute;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px;top:16px;right:16px;left:16px;bottom:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{flex:1;width:100%;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:flex;justify-content:space-between;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button{transform:rotate(90deg);border-radius:100%;height:40px;width:40px;position:sticky;top:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button .miam-recipe-details__back-icon{display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button:hover img.miam-recipe-details__back-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__like-button{position:absolute;top:0;right:0}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__guest-counter .miam-counter-input{padding:2px}}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{top:24px;right:24px;left:24px;bottom:24px;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{width:inherit}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:flex;position:sticky;top:24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button:hover img.miam-recipe-details__close-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__picture-img{width:100%;max-height:100%;-o-object-position:center;object-position:center;-o-object-fit:cover;object-fit:cover}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header{z-index:2;position:sticky;top:-1px;overflow:hidden}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container{display:flex;justify-content:space-between;align-items:center;padding:16px;background:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__title{width:100%;transition:font-size .3s;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__actions__icon{display:flex;position:absolute;right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__close-button{margin-left:16px;padding:8px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned{padding:12px 16px;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{position:relative;top:unset;right:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__like-button{margin-right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:64px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container{justify-content:flex-start}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:flex;align-items:center;justify-content:center;max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-icon{transform:rotate(90deg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__actions__icon{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__hideable-actions{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned{padding:4px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container{overflow:visible;max-width:48px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-button{margin:8px 0;width:40px;height:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:14px;font-weight:500}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{max-width:40px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__infos{padding:8px 16px 16px;display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs{padding:8px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer{box-sizing:border-box;background:var(--miam-ds-color-neutral-white,#fff);border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px 12px;position:sticky;bottom:0;display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;z-index:2;height:80px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.center{justify-content:center}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta{display:flex;gap:8px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta.miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text{display:flex;gap:4px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price{display:flex}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{align-items:flex-end}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{color:var(--miam-ds-color-primary-700);margin-right:4px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{flex-direction:column;align-items:flex-start}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price{display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label{color:var(--miam-ds-color-primary,#24748f)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-in-basket-label{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.65}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__preparation-tab{padding:16px;display:flex;flex-direction:column;gap:24px}"], encapsulation: 2, changeDetection: 0 });
|
|
26208
|
+
}, directives: [i2__namespace$1.NgIf, CounterInputComponent, ReachTopDirective, RecipeDetailsInfosComponent, i2__namespace$1.NgClass, SliderTabsComponent, LikeButtonComponent, i8__namespace.YouTubePlayer, AddonLinkComponent, StoreLocatorLinkComponent, ProductsPickerComponent, RecipeDetailsIngredientsComponent, RecipeDetailsStepsComponent, RecipePricingComponent, RecipeAddonComponent, ReplaceItemComponent], pipes: [i2__namespace$1.AsyncPipe, i2__namespace$1.CurrencyPipe], styles: [".miam-recipe-details{min-height:100dvh}.miam-recipe-details .miam-recipe-details__loader{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-recipe-details .miam-recipe-details__container{position:relative}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sponsor-separator{border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);margin:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{position:relative;max-height:600px;display:flex}@media (min-width:1023px) and (max-height:1000px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:400px}}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:300px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{position:absolute;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px;top:16px;right:16px;left:16px;bottom:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{flex:1;width:100%;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:flex;justify-content:space-between;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button{transform:rotate(90deg);border-radius:100%;height:40px;width:40px;position:sticky;top:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button .miam-recipe-details__back-icon{display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button:hover img.miam-recipe-details__back-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__like-button{position:absolute;top:0;right:0}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__guest-counter .miam-counter-input{padding:2px}}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{top:24px;right:24px;left:24px;bottom:24px;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{width:inherit}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:flex;position:sticky;top:24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button:hover img.miam-recipe-details__close-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__picture-img{width:100%;max-height:100%;-o-object-position:center;object-position:center;-o-object-fit:cover;object-fit:cover}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header{z-index:2;position:sticky;top:-1px;overflow:hidden}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container{display:flex;justify-content:space-between;align-items:center;padding:16px;background:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__title{width:100%;transition:font-size .3s;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__actions__icon{display:flex;position:absolute;right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__close-button{margin-left:16px;padding:8px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned{padding:12px 16px;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{position:relative;top:unset;right:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__like-button{margin-right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:64px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container{justify-content:flex-start}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:flex;align-items:center;justify-content:center;max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-icon{transform:rotate(90deg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__actions__icon{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container .miam-recipe-details__hideable-actions{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned{padding:4px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container{overflow:visible;max-width:48px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-button{margin:8px 0;width:40px;height:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:14px;font-weight:500}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sticky-header .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{max-width:40px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__infos{padding:8px 16px 16px;display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs{padding:8px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer{box-sizing:border-box;background:var(--miam-ds-color-neutral-white,#fff);border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px 12px;position:sticky;bottom:0;display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;z-index:2;height:80px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.center{justify-content:center}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta{display:flex;gap:8px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta.miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text{display:flex;gap:4px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price{display:flex}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{align-items:flex-end}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{color:var(--miam-ds-color-primary-700);margin-right:4px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{flex-direction:column;align-items:flex-start}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price{display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label{color:var(--miam-ds-color-primary,#24748f)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-in-basket-label{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.65}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__preparation-tab{padding:16px;display:flex;flex-direction:column;gap:24px}"], encapsulation: 2, changeDetection: 0 });
|
|
26165
26209
|
(function () {
|
|
26166
26210
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeDetailsComponent, [{
|
|
26167
26211
|
type: i0.Component,
|
|
@@ -26202,6 +26246,8 @@
|
|
|
26202
26246
|
type: i0.Output
|
|
26203
26247
|
}], recipeError: [{
|
|
26204
26248
|
type: i0.Output
|
|
26249
|
+
}], closeDetails: [{
|
|
26250
|
+
type: i0.Output
|
|
26205
26251
|
}], topContainerImg: [{
|
|
26206
26252
|
type: i0.ViewChild,
|
|
26207
26253
|
args: ['topContainerImg']
|
|
@@ -27167,7 +27213,7 @@
|
|
|
27167
27213
|
if (rf & 1) {
|
|
27168
27214
|
var _r11_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27169
27215
|
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-details", 9, 10);
|
|
27170
|
-
i0__namespace.ɵɵlistener("recipeAdded", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_recipeAdded_0_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.togglePreviewMode(); })("recipeError", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_recipeError_0_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r12 = i0__namespace.ɵɵnextContext(2); return ctx_r12.hide(); });
|
|
27216
|
+
i0__namespace.ɵɵlistener("recipeAdded", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_recipeAdded_0_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.togglePreviewMode(); })("recipeError", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_recipeError_0_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r12 = i0__namespace.ɵɵnextContext(2); return ctx_r12.hide(); })("closeDetails", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_closeDetails_0_listener() { i0__namespace.ɵɵrestoreView(_r11_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ctx_r13.hide(); });
|
|
27171
27217
|
i0__namespace.ɵɵelementEnd();
|
|
27172
27218
|
}
|
|
27173
27219
|
if (rf & 2) {
|
|
@@ -27177,9 +27223,9 @@
|
|
|
27177
27223
|
}
|
|
27178
27224
|
function RecipeModalComponent_ng_miam_modal_2_Template(rf, ctx) {
|
|
27179
27225
|
if (rf & 1) {
|
|
27180
|
-
var
|
|
27226
|
+
var _r15_1 = i0__namespace.ɵɵgetCurrentView();
|
|
27181
27227
|
i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 7);
|
|
27182
|
-
i0__namespace.ɵɵlistener("displayChange", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_displayChange_0_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
27228
|
+
i0__namespace.ɵɵlistener("displayChange", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_displayChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.show = $event; })("close", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.hide(); })("cancel", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_cancel_0_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.removeRecipe(); })("confirm", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_confirm_0_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r18 = i0__namespace.ɵɵnextContext(); return ctx_r18.hide(); });
|
|
27183
27229
|
i0__namespace.ɵɵtemplate(1, RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template, 2, 9, "ng-miam-recipe-details", 8);
|
|
27184
27230
|
i0__namespace.ɵɵelementEnd();
|
|
27185
27231
|
}
|
|
@@ -27333,7 +27379,7 @@
|
|
|
27333
27379
|
else {
|
|
27334
27380
|
i18n_0 = $localize(templateObject_1 || (templateObject_1 = __makeTemplateObject([":\u241Fd0309cdf7a6522949c4f145db5e71f70c9d9d66c\u241F171150506213829263:Mes repas"], [":\u241Fd0309cdf7a6522949c4f145db5e71f70c9d9d66c\u241F171150506213829263:Mes repas"])));
|
|
27335
27381
|
}
|
|
27336
|
-
return [["title", i18n_0, "modalStyle", "right", "class", "miam-recipe-modal__basket-preview-modal", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["title", i18n_0, "modalStyle", "right", 1, "miam-recipe-modal__basket-preview-modal", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm"], ["header", "", 4, "ngIf"], [1, "miam-wrapper-preview"], [3, "recipeId", "displayItemsUnitaryPrice", "originTrace"], ["header", ""], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError", 4, "ngIf"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError"], ["details", ""]];
|
|
27382
|
+
return [["title", i18n_0, "modalStyle", "right", "class", "miam-recipe-modal__basket-preview-modal", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["title", i18n_0, "modalStyle", "right", 1, "miam-recipe-modal__basket-preview-modal", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm"], ["header", "", 4, "ngIf"], [1, "miam-wrapper-preview"], [3, "recipeId", "displayItemsUnitaryPrice", "originTrace"], ["header", ""], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError", "closeDetails", 4, "ngIf"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError", "closeDetails"], ["details", ""]];
|
|
27337
27383
|
}, template: function RecipeModalComponent_Template(rf, ctx) {
|
|
27338
27384
|
if (rf & 1) {
|
|
27339
27385
|
i0__namespace.ɵɵtemplate(0, RecipeModalComponent_ng_miam_modal_0_Template, 4, 8, "ng-miam-modal", 0);
|