ng-miam 4.6.11 → 4.6.12
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 +159 -113
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +2 -2
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/abstracts/abstract-recipe-card.component.js +6 -1
- package/esm2015/lib/_services/context.service.js +3 -4
- package/esm2015/lib/_services/recipes.service.js +14 -1
- package/esm2015/lib/_web-components/catalog-recipe-card/catalog-recipe-card.component.js +128 -109
- package/esm2015/lib/_web-components/recipe-card/recipe-card.component.js +2 -2
- package/fesm2015/ng-miam.js +149 -113
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_services/recipes.service.d.ts +4 -0
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -3851,6 +3851,7 @@
|
|
|
3851
3851
|
_this.hidden = new i0.EventEmitter();
|
|
3852
3852
|
_this.suggestionsPrimaryButtonActions = { display: true, addToBasket: true };
|
|
3853
3853
|
_this.recipesPrimaryButtonActions = { display: true, addToBasket: true };
|
|
3854
|
+
_this.reloadRecipes$ = new rxjs.BehaviorSubject(false);
|
|
3854
3855
|
_this.difficultyLevels = [
|
|
3855
3856
|
{ value: 1, label: 'Chef débutant' },
|
|
3856
3857
|
{ value: 2, label: 'Chef intermédiaire' },
|
|
@@ -4045,6 +4046,19 @@
|
|
|
4045
4046
|
RecipesService.prototype.addTagToRecipe = function (recipe, tag) {
|
|
4046
4047
|
return this.http.post(MIAM_API_HOST$4 + ("recipes/" + recipe.id + "/tags/" + tag.id), {});
|
|
4047
4048
|
};
|
|
4049
|
+
RecipesService.prototype.setRecipesPrimaryButtonActions = function (display, addToBasket) {
|
|
4050
|
+
if (display === void 0) { display = true; }
|
|
4051
|
+
if (addToBasket === void 0) { addToBasket = true; }
|
|
4052
|
+
this.recipesPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4053
|
+
this.suggestionsPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4054
|
+
this.reloadAllRecipes();
|
|
4055
|
+
};
|
|
4056
|
+
RecipesService.prototype.setSuggestionsPrimaryButtonActions = function (display, addToBasket) {
|
|
4057
|
+
if (display === void 0) { display = true; }
|
|
4058
|
+
if (addToBasket === void 0) { addToBasket = true; }
|
|
4059
|
+
this.suggestionsPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4060
|
+
this.reloadAllRecipes();
|
|
4061
|
+
};
|
|
4048
4062
|
// DEPRECATED / use TTL instead
|
|
4049
4063
|
RecipesService.prototype.getOrFetch = function (recipeId) {
|
|
4050
4064
|
var recipe = this.recipes.find(function (r) { return r.id === recipeId; });
|
|
@@ -4090,6 +4104,9 @@
|
|
|
4090
4104
|
RecipesService.prototype.intRandomSeed = function () {
|
|
4091
4105
|
this.randomSeed = Date.now();
|
|
4092
4106
|
};
|
|
4107
|
+
RecipesService.prototype.reloadAllRecipes = function () {
|
|
4108
|
+
this.reloadRecipes$.next(true);
|
|
4109
|
+
};
|
|
4093
4110
|
return RecipesService;
|
|
4094
4111
|
}(i1.Service));
|
|
4095
4112
|
RecipesService.ɵfac = function RecipesService_Factory(t) { return new (t || RecipesService)(i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(RecipeProviderService), i0.ɵɵinject(RecipeStatusService), i0.ɵɵinject(RecipeTypeService), i0.ɵɵinject(SuppliersService), i0.ɵɵinject(PointOfSalesService), i0.ɵɵinject(GroceriesListsService), i0.ɵɵinject(IngredientsService), i0.ɵɵinject(RecipeStepsService), i0.ɵɵinject(RecipeEventsService), i0.ɵɵinject(SponsorService), i0.ɵɵinject(PackageService), i0.ɵɵinject(TagsService), i0.ɵɵinject(RecipeLikesService)); };
|
|
@@ -4494,13 +4511,12 @@
|
|
|
4494
4511
|
setRecipesPrimaryButtonActions: function (display, addToBasket) {
|
|
4495
4512
|
if (display === void 0) { display = true; }
|
|
4496
4513
|
if (addToBasket === void 0) { addToBasket = true; }
|
|
4497
|
-
_this.recipesService.
|
|
4498
|
-
_this.recipesService.suggestionsPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4514
|
+
_this.recipesService.setRecipesPrimaryButtonActions(display, addToBasket);
|
|
4499
4515
|
},
|
|
4500
4516
|
setSuggestionsPrimaryButtonActions: function (display, addToBasket) {
|
|
4501
4517
|
if (display === void 0) { display = true; }
|
|
4502
4518
|
if (addToBasket === void 0) { addToBasket = true; }
|
|
4503
|
-
_this.recipesService.
|
|
4519
|
+
_this.recipesService.setSuggestionsPrimaryButtonActions(display, addToBasket);
|
|
4504
4520
|
},
|
|
4505
4521
|
setDifficultyLevels: function (levels) {
|
|
4506
4522
|
_this.recipesService.difficultyLevels = levels;
|
|
@@ -10939,6 +10955,11 @@
|
|
|
10939
10955
|
this.sendShowEvent();
|
|
10940
10956
|
this.displayPrice();
|
|
10941
10957
|
this.subscriptions.push(this.groceriesListsService.list$.subscribe(function () { return _this.cdr.detectChanges(); }));
|
|
10958
|
+
this.subscriptions.push(this.recipeService.reloadRecipes$.subscribe(function (shouldReload) {
|
|
10959
|
+
if (shouldReload) {
|
|
10960
|
+
_this.cdr.detectChanges();
|
|
10961
|
+
}
|
|
10962
|
+
}));
|
|
10942
10963
|
};
|
|
10943
10964
|
AbstractRecipeCardComponent.prototype.ngOnDestroy = function () {
|
|
10944
10965
|
this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
@@ -11456,7 +11477,7 @@
|
|
|
11456
11477
|
i0.ɵɵadvance(2);
|
|
11457
11478
|
i0.ɵɵproperty("disabled", !ctx_r0.recipe)("ngClass", i0.ɵɵpureFunction2(25, _c1$5, i0.ɵɵpipeBind1(29, 23, ctx_r0.groceriesListsService.recipeIsInList(ctx_r0.recipe == null ? null : ctx_r0.recipe.id)), ctx_r0.addButtonLoading));
|
|
11458
11479
|
i0.ɵɵadvance(2);
|
|
11459
|
-
i0.ɵɵproperty("ngIf", ctx_r0.recipeService.recipesPrimaryButtonActions.display && !ctx_r0.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r20);
|
|
11480
|
+
i0.ɵɵproperty("ngIf", ctx_r0.recipeService.suggestionsPrimaryButtonActions.display && !ctx_r0.recipeService.suggestionsPrimaryButtonActions.addToBasket || ctx_r0.recipeService.recipesPrimaryButtonActions.display && !ctx_r0.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r20);
|
|
11460
11481
|
i0.ɵɵadvance(3);
|
|
11461
11482
|
i0.ɵɵproperty("ngIf", !ctx_r0.addButtonLoading)("ngIfElse", _r23);
|
|
11462
11483
|
}
|
|
@@ -11642,30 +11663,30 @@
|
|
|
11642
11663
|
function CatalogRecipeCardComponent_div_4_div_3_Template(rf, ctx) {
|
|
11643
11664
|
if (rf & 1) {
|
|
11644
11665
|
i0.ɵɵelementStart(0, "div");
|
|
11645
|
-
i0.ɵɵelement(1, "img",
|
|
11666
|
+
i0.ɵɵelement(1, "img", 30);
|
|
11646
11667
|
i0.ɵɵelementEnd();
|
|
11647
11668
|
}
|
|
11648
11669
|
if (rf & 2) {
|
|
11649
|
-
var
|
|
11670
|
+
var ctx_r18 = i0.ɵɵnextContext(2);
|
|
11650
11671
|
i0.ɵɵadvance(1);
|
|
11651
|
-
i0.ɵɵproperty("src",
|
|
11672
|
+
i0.ɵɵproperty("src", ctx_r18.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
|
|
11652
11673
|
}
|
|
11653
11674
|
}
|
|
11654
11675
|
function CatalogRecipeCardComponent_div_4_div_4_Template(rf, ctx) {
|
|
11655
11676
|
if (rf & 1) {
|
|
11656
|
-
i0.ɵɵelementStart(0, "div",
|
|
11657
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11677
|
+
i0.ɵɵelementStart(0, "div", 31);
|
|
11678
|
+
i0.ɵɵelement(1, "ng-miam-icon", 32);
|
|
11658
11679
|
i0.ɵɵelementEnd();
|
|
11659
11680
|
}
|
|
11660
11681
|
if (rf & 2) {
|
|
11661
|
-
var
|
|
11682
|
+
var ctx_r19 = i0.ɵɵnextContext(2);
|
|
11662
11683
|
i0.ɵɵadvance(1);
|
|
11663
|
-
i0.ɵɵproperty("iconName",
|
|
11684
|
+
i0.ɵɵproperty("iconName", ctx_r19.icon.Video)("width", 80)("height", 80);
|
|
11664
11685
|
}
|
|
11665
11686
|
}
|
|
11666
11687
|
function CatalogRecipeCardComponent_div_4_ng_container_5_div_1_Template(rf, ctx) {
|
|
11667
11688
|
if (rf & 1) {
|
|
11668
|
-
i0.ɵɵelementStart(0, "div",
|
|
11689
|
+
i0.ɵɵelementStart(0, "div", 34);
|
|
11669
11690
|
i0.ɵɵtext(1, " D\u00E9j\u00E0 ajout\u00E9e ");
|
|
11670
11691
|
i0.ɵɵelementEnd();
|
|
11671
11692
|
}
|
|
@@ -11673,75 +11694,75 @@
|
|
|
11673
11694
|
function CatalogRecipeCardComponent_div_4_ng_container_5_Template(rf, ctx) {
|
|
11674
11695
|
if (rf & 1) {
|
|
11675
11696
|
i0.ɵɵelementContainerStart(0);
|
|
11676
|
-
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_4_ng_container_5_div_1_Template, 2, 0, "div",
|
|
11697
|
+
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_4_ng_container_5_div_1_Template, 2, 0, "div", 33);
|
|
11677
11698
|
i0.ɵɵpipe(2, "async");
|
|
11678
11699
|
i0.ɵɵelementContainerEnd();
|
|
11679
11700
|
}
|
|
11680
11701
|
if (rf & 2) {
|
|
11681
|
-
var
|
|
11702
|
+
var ctx_r20 = i0.ɵɵnextContext(2);
|
|
11682
11703
|
i0.ɵɵadvance(1);
|
|
11683
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1,
|
|
11704
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1, ctx_r20.groceriesListsService.recipeIsInList(ctx_r20.recipe == null ? null : ctx_r20.recipe.id)));
|
|
11684
11705
|
}
|
|
11685
11706
|
}
|
|
11686
11707
|
function CatalogRecipeCardComponent_div_4_ng_container_6_Template(rf, ctx) {
|
|
11687
11708
|
if (rf & 1) {
|
|
11688
|
-
var
|
|
11709
|
+
var _r28_1 = i0.ɵɵgetCurrentView();
|
|
11689
11710
|
i0.ɵɵelementContainerStart(0);
|
|
11690
|
-
i0.ɵɵelementStart(1, "div",
|
|
11691
|
-
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_ng_container_6_Template_div_click_1_listener() { i0.ɵɵrestoreView(
|
|
11711
|
+
i0.ɵɵelementStart(1, "div", 35);
|
|
11712
|
+
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_ng_container_6_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r28_1); var ctx_r27 = i0.ɵɵnextContext(2); return ctx_r27.openRecipe(); });
|
|
11692
11713
|
i0.ɵɵtext(2);
|
|
11693
11714
|
i0.ɵɵelementEnd();
|
|
11694
11715
|
i0.ɵɵelementContainerEnd();
|
|
11695
11716
|
}
|
|
11696
11717
|
if (rf & 2) {
|
|
11697
|
-
var
|
|
11718
|
+
var ctx_r21 = i0.ɵɵnextContext(2);
|
|
11698
11719
|
i0.ɵɵadvance(2);
|
|
11699
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
11720
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r21.recipe == null ? null : ctx_r21.recipe.attributes["title"], " ");
|
|
11700
11721
|
}
|
|
11701
11722
|
}
|
|
11702
11723
|
function CatalogRecipeCardComponent_div_4_ng_template_7_Template(rf, ctx) {
|
|
11703
11724
|
if (rf & 1) {
|
|
11704
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
11725
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 36);
|
|
11705
11726
|
}
|
|
11706
11727
|
if (rf & 2) {
|
|
11707
|
-
var
|
|
11708
|
-
i0.ɵɵproperty("type",
|
|
11728
|
+
var ctx_r23 = i0.ɵɵnextContext(2);
|
|
11729
|
+
i0.ɵɵproperty("type", ctx_r23.skeleton.Text);
|
|
11709
11730
|
}
|
|
11710
11731
|
}
|
|
11711
11732
|
function CatalogRecipeCardComponent_div_4_ng_miam_like_button_10_Template(rf, ctx) {
|
|
11712
11733
|
if (rf & 1) {
|
|
11713
|
-
i0.ɵɵelement(0, "ng-miam-like-button",
|
|
11734
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 37);
|
|
11714
11735
|
}
|
|
11715
11736
|
if (rf & 2) {
|
|
11716
|
-
var
|
|
11717
|
-
i0.ɵɵproperty("recipe",
|
|
11737
|
+
var ctx_r24 = i0.ɵɵnextContext(2);
|
|
11738
|
+
i0.ɵɵproperty("recipe", ctx_r24.recipe)("originTrace", ctx_r24.eventTrace());
|
|
11718
11739
|
}
|
|
11719
11740
|
}
|
|
11720
11741
|
function CatalogRecipeCardComponent_div_4_Template(rf, ctx) {
|
|
11721
11742
|
if (rf & 1) {
|
|
11722
|
-
var
|
|
11723
|
-
i0.ɵɵelementStart(0, "div",
|
|
11724
|
-
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
11725
|
-
i0.ɵɵelementStart(1, "div",
|
|
11726
|
-
i0.ɵɵelement(2, "img",
|
|
11727
|
-
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_4_div_3_Template, 2, 1, "div",
|
|
11728
|
-
i0.ɵɵelementEnd();
|
|
11729
|
-
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_4_div_4_Template, 2, 3, "div",
|
|
11730
|
-
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_4_ng_container_5_Template, 3, 3, "ng-container",
|
|
11731
|
-
i0.ɵɵtemplate(6, CatalogRecipeCardComponent_div_4_ng_container_6_Template, 3, 1, "ng-container",
|
|
11732
|
-
i0.ɵɵtemplate(7, CatalogRecipeCardComponent_div_4_ng_template_7_Template, 1, 1, "ng-template", null,
|
|
11733
|
-
i0.ɵɵelementStart(9, "div",
|
|
11734
|
-
i0.ɵɵtemplate(10, CatalogRecipeCardComponent_div_4_ng_miam_like_button_10_Template, 1, 2, "ng-miam-like-button",
|
|
11743
|
+
var _r30_1 = i0.ɵɵgetCurrentView();
|
|
11744
|
+
i0.ɵɵelementStart(0, "div", 19);
|
|
11745
|
+
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r30_1); var ctx_r29 = i0.ɵɵnextContext(); return ctx_r29.openRecipe(); });
|
|
11746
|
+
i0.ɵɵelementStart(1, "div", 20);
|
|
11747
|
+
i0.ɵɵelement(2, "img", 21);
|
|
11748
|
+
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_4_div_3_Template, 2, 1, "div", 22);
|
|
11749
|
+
i0.ɵɵelementEnd();
|
|
11750
|
+
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_4_div_4_Template, 2, 3, "div", 23);
|
|
11751
|
+
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_4_ng_container_5_Template, 3, 3, "ng-container", 22);
|
|
11752
|
+
i0.ɵɵtemplate(6, CatalogRecipeCardComponent_div_4_ng_container_6_Template, 3, 1, "ng-container", 9);
|
|
11753
|
+
i0.ɵɵtemplate(7, CatalogRecipeCardComponent_div_4_ng_template_7_Template, 1, 1, "ng-template", null, 24, i0.ɵɵtemplateRefExtractor);
|
|
11754
|
+
i0.ɵɵelementStart(9, "div", 25);
|
|
11755
|
+
i0.ɵɵtemplate(10, CatalogRecipeCardComponent_div_4_ng_miam_like_button_10_Template, 1, 2, "ng-miam-like-button", 26);
|
|
11735
11756
|
i0.ɵɵpipe(11, "async");
|
|
11736
|
-
i0.ɵɵelementStart(12, "div",
|
|
11737
|
-
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_12_listener($event) { i0.ɵɵrestoreView(
|
|
11738
|
-
i0.ɵɵelement(14, "ng-miam-icon",
|
|
11757
|
+
i0.ɵɵelementStart(12, "div", 27, 28);
|
|
11758
|
+
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_12_listener($event) { i0.ɵɵrestoreView(_r30_1); var ctx_r31 = i0.ɵɵnextContext(); return ctx_r31.toggleMoreActions($event); });
|
|
11759
|
+
i0.ɵɵelement(14, "ng-miam-icon", 29);
|
|
11739
11760
|
i0.ɵɵelementEnd();
|
|
11740
11761
|
i0.ɵɵelementEnd();
|
|
11741
11762
|
i0.ɵɵelementEnd();
|
|
11742
11763
|
}
|
|
11743
11764
|
if (rf & 2) {
|
|
11744
|
-
var
|
|
11765
|
+
var _r22 = i0.ɵɵreference(8);
|
|
11745
11766
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
11746
11767
|
i0.ɵɵadvance(2);
|
|
11747
11768
|
i0.ɵɵproperty("src", ctx_r0.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
|
|
@@ -11752,7 +11773,7 @@
|
|
|
11752
11773
|
i0.ɵɵadvance(1);
|
|
11753
11774
|
i0.ɵɵproperty("ngIf", ctx_r0.recipe && ctx_r0.displayAddedOnPicture);
|
|
11754
11775
|
i0.ɵɵadvance(1);
|
|
11755
|
-
i0.ɵɵproperty("ngIf", ctx_r0.recipe)("ngIfElse",
|
|
11776
|
+
i0.ɵɵproperty("ngIf", ctx_r0.recipe)("ngIfElse", _r22);
|
|
11756
11777
|
i0.ɵɵadvance(4);
|
|
11757
11778
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(11, 8, ctx_r0.userService.isLogged$));
|
|
11758
11779
|
i0.ɵɵadvance(4);
|
|
@@ -11761,7 +11782,7 @@
|
|
|
11761
11782
|
}
|
|
11762
11783
|
function CatalogRecipeCardComponent_ng_template_5_Template(rf, ctx) {
|
|
11763
11784
|
if (rf & 1) {
|
|
11764
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
11785
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 36);
|
|
11765
11786
|
}
|
|
11766
11787
|
if (rf & 2) {
|
|
11767
11788
|
var ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -11770,26 +11791,26 @@
|
|
|
11770
11791
|
}
|
|
11771
11792
|
function CatalogRecipeCardComponent_div_9_div_5_Template(rf, ctx) {
|
|
11772
11793
|
if (rf & 1) {
|
|
11773
|
-
i0.ɵɵelementStart(0, "div",
|
|
11794
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
11774
11795
|
i0.ɵɵtext(1);
|
|
11775
11796
|
i0.ɵɵelementEnd();
|
|
11776
11797
|
}
|
|
11777
11798
|
if (rf & 2) {
|
|
11778
|
-
var
|
|
11799
|
+
var ctx_r32 = i0.ɵɵnextContext(2);
|
|
11779
11800
|
i0.ɵɵadvance(1);
|
|
11780
|
-
i0.ɵɵtextInterpolate1(" + ",
|
|
11801
|
+
i0.ɵɵtextInterpolate1(" + ", ctx_r32.recipe.modifiedIngredients.length - 2, " ");
|
|
11781
11802
|
}
|
|
11782
11803
|
}
|
|
11783
11804
|
function CatalogRecipeCardComponent_div_9_Template(rf, ctx) {
|
|
11784
11805
|
if (rf & 1) {
|
|
11785
|
-
i0.ɵɵelementStart(0, "div",
|
|
11786
|
-
i0.ɵɵelementStart(1, "div",
|
|
11787
|
-
i0.ɵɵelement(2, "img",
|
|
11806
|
+
i0.ɵɵelementStart(0, "div", 38);
|
|
11807
|
+
i0.ɵɵelementStart(1, "div", 39);
|
|
11808
|
+
i0.ɵɵelement(2, "img", 40);
|
|
11788
11809
|
i0.ɵɵelementEnd();
|
|
11789
|
-
i0.ɵɵelementStart(3, "div",
|
|
11790
|
-
i0.ɵɵelement(4, "img",
|
|
11810
|
+
i0.ɵɵelementStart(3, "div", 39);
|
|
11811
|
+
i0.ɵɵelement(4, "img", 40);
|
|
11791
11812
|
i0.ɵɵelementEnd();
|
|
11792
|
-
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_9_div_5_Template, 2, 1, "div",
|
|
11813
|
+
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_9_div_5_Template, 2, 1, "div", 41);
|
|
11793
11814
|
i0.ɵɵelementEnd();
|
|
11794
11815
|
}
|
|
11795
11816
|
if (rf & 2) {
|
|
@@ -11804,17 +11825,17 @@
|
|
|
11804
11825
|
}
|
|
11805
11826
|
function CatalogRecipeCardComponent_div_10_ng_miam_recipe_pricing_1_Template(rf, ctx) {
|
|
11806
11827
|
if (rf & 1) {
|
|
11807
|
-
i0.ɵɵelement(0, "ng-miam-recipe-pricing",
|
|
11828
|
+
i0.ɵɵelement(0, "ng-miam-recipe-pricing", 45);
|
|
11808
11829
|
}
|
|
11809
11830
|
if (rf & 2) {
|
|
11810
|
-
var
|
|
11811
|
-
i0.ɵɵproperty("recipe",
|
|
11831
|
+
var ctx_r33 = i0.ɵɵnextContext(2);
|
|
11832
|
+
i0.ɵɵproperty("recipe", ctx_r33.recipe)("serves", ctx_r33.recipe == null ? null : ctx_r33.recipe.modifiedGuests);
|
|
11812
11833
|
}
|
|
11813
11834
|
}
|
|
11814
11835
|
function CatalogRecipeCardComponent_div_10_Template(rf, ctx) {
|
|
11815
11836
|
if (rf & 1) {
|
|
11816
|
-
i0.ɵɵelementStart(0, "div",
|
|
11817
|
-
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_10_ng_miam_recipe_pricing_1_Template, 1, 2, "ng-miam-recipe-pricing",
|
|
11837
|
+
i0.ɵɵelementStart(0, "div", 43);
|
|
11838
|
+
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_10_ng_miam_recipe_pricing_1_Template, 1, 2, "ng-miam-recipe-pricing", 44);
|
|
11818
11839
|
i0.ɵɵelementEnd();
|
|
11819
11840
|
}
|
|
11820
11841
|
if (rf & 2) {
|
|
@@ -11823,14 +11844,40 @@
|
|
|
11823
11844
|
i0.ɵɵproperty("ngIf", ctx_r4.isPriceDisplayed);
|
|
11824
11845
|
}
|
|
11825
11846
|
}
|
|
11847
|
+
function CatalogRecipeCardComponent_span_13_Template(rf, ctx) {
|
|
11848
|
+
if (rf & 1) {
|
|
11849
|
+
i0.ɵɵelementStart(0, "span");
|
|
11850
|
+
i0.ɵɵtext(1);
|
|
11851
|
+
i0.ɵɵpipe(2, "async");
|
|
11852
|
+
i0.ɵɵelementEnd();
|
|
11853
|
+
}
|
|
11854
|
+
if (rf & 2) {
|
|
11855
|
+
var ctx_r5 = i0.ɵɵnextContext();
|
|
11856
|
+
i0.ɵɵadvance(1);
|
|
11857
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r5.groceriesListsService.recipeIsInList(ctx_r5.recipe == null ? null : ctx_r5.recipe.id)) ? "Voir le d\u00E9tail" : "D\u00E9couvrir l'id\u00E9e repas", " ");
|
|
11858
|
+
}
|
|
11859
|
+
}
|
|
11860
|
+
function CatalogRecipeCardComponent_ng_template_14_Template(rf, ctx) {
|
|
11861
|
+
if (rf & 1) {
|
|
11862
|
+
i0.ɵɵelementStart(0, "span");
|
|
11863
|
+
i0.ɵɵtext(1);
|
|
11864
|
+
i0.ɵɵpipe(2, "async");
|
|
11865
|
+
i0.ɵɵelementEnd();
|
|
11866
|
+
}
|
|
11867
|
+
if (rf & 2) {
|
|
11868
|
+
var ctx_r7 = i0.ɵɵnextContext();
|
|
11869
|
+
i0.ɵɵadvance(1);
|
|
11870
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r7.groceriesListsService.recipeIsInList(ctx_r7.recipe == null ? null : ctx_r7.recipe.id)) ? "Voir le d\u00E9tail" : "Ajouter les ingr\u00E9dients", " ");
|
|
11871
|
+
}
|
|
11872
|
+
}
|
|
11826
11873
|
function CatalogRecipeCardComponent_ng_miam_icon_16_Template(rf, ctx) {
|
|
11827
11874
|
if (rf & 1) {
|
|
11828
|
-
i0.ɵɵelement(0, "ng-miam-icon",
|
|
11875
|
+
i0.ɵɵelement(0, "ng-miam-icon", 46);
|
|
11829
11876
|
i0.ɵɵpipe(1, "async");
|
|
11830
11877
|
}
|
|
11831
11878
|
if (rf & 2) {
|
|
11832
|
-
var
|
|
11833
|
-
i0.ɵɵproperty("width", 16)("height", 16)("iconName", i0.ɵɵpipeBind1(1, 3,
|
|
11879
|
+
var ctx_r8 = i0.ɵɵnextContext();
|
|
11880
|
+
i0.ɵɵproperty("width", 16)("height", 16)("iconName", i0.ɵɵpipeBind1(1, 3, ctx_r8.groceriesListsService.recipeIsInList(ctx_r8.recipe == null ? null : ctx_r8.recipe.id)) ? ctx_r8.icon.CheckList : ctx_r8.icon.Cart);
|
|
11834
11881
|
}
|
|
11835
11882
|
}
|
|
11836
11883
|
function CatalogRecipeCardComponent_ng_template_17_Template(rf, ctx) {
|
|
@@ -11840,98 +11887,98 @@
|
|
|
11840
11887
|
}
|
|
11841
11888
|
function CatalogRecipeCardComponent_div_20_Template(rf, ctx) {
|
|
11842
11889
|
if (rf & 1) {
|
|
11843
|
-
i0.ɵɵelementStart(0, "div",
|
|
11844
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11845
|
-
i0.ɵɵelementStart(2, "span",
|
|
11890
|
+
i0.ɵɵelementStart(0, "div", 47);
|
|
11891
|
+
i0.ɵɵelement(1, "ng-miam-icon", 48);
|
|
11892
|
+
i0.ɵɵelementStart(2, "span", 49);
|
|
11846
11893
|
i0.ɵɵtext(3);
|
|
11847
11894
|
i0.ɵɵelementEnd();
|
|
11848
11895
|
i0.ɵɵelementEnd();
|
|
11849
11896
|
}
|
|
11850
11897
|
if (rf & 2) {
|
|
11851
|
-
var
|
|
11898
|
+
var ctx_r11 = i0.ɵɵnextContext();
|
|
11852
11899
|
i0.ɵɵadvance(1);
|
|
11853
|
-
i0.ɵɵproperty("iconName",
|
|
11900
|
+
i0.ɵɵproperty("iconName", ctx_r11.icon.Time);
|
|
11854
11901
|
i0.ɵɵadvance(2);
|
|
11855
|
-
i0.ɵɵtextInterpolate(
|
|
11902
|
+
i0.ɵɵtextInterpolate(ctx_r11.recipe == null ? null : ctx_r11.recipe.totalTime);
|
|
11856
11903
|
}
|
|
11857
11904
|
}
|
|
11858
11905
|
function CatalogRecipeCardComponent_div_21_ng_container_2_Template(rf, ctx) {
|
|
11859
11906
|
if (rf & 1) {
|
|
11860
11907
|
i0.ɵɵelementContainerStart(0);
|
|
11861
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11908
|
+
i0.ɵɵelement(1, "ng-miam-icon", 54);
|
|
11862
11909
|
i0.ɵɵelementContainerEnd();
|
|
11863
11910
|
}
|
|
11864
11911
|
if (rf & 2) {
|
|
11865
|
-
var
|
|
11912
|
+
var ctx_r34 = i0.ɵɵnextContext(2);
|
|
11866
11913
|
i0.ɵɵadvance(1);
|
|
11867
|
-
i0.ɵɵproperty("width", 39)("height", 18)("iconName",
|
|
11914
|
+
i0.ɵɵproperty("width", 39)("height", 18)("iconName", ctx_r34.icon.DifficultyMedium);
|
|
11868
11915
|
}
|
|
11869
11916
|
}
|
|
11870
11917
|
function CatalogRecipeCardComponent_div_21_ng_container_3_Template(rf, ctx) {
|
|
11871
11918
|
if (rf & 1) {
|
|
11872
11919
|
i0.ɵɵelementContainerStart(0);
|
|
11873
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11920
|
+
i0.ɵɵelement(1, "ng-miam-icon", 54);
|
|
11874
11921
|
i0.ɵɵelementContainerEnd();
|
|
11875
11922
|
}
|
|
11876
11923
|
if (rf & 2) {
|
|
11877
|
-
var
|
|
11924
|
+
var ctx_r35 = i0.ɵɵnextContext(2);
|
|
11878
11925
|
i0.ɵɵadvance(1);
|
|
11879
|
-
i0.ɵɵproperty("width", 60)("height", 18)("iconName",
|
|
11926
|
+
i0.ɵɵproperty("width", 60)("height", 18)("iconName", ctx_r35.icon.DifficultyHigh);
|
|
11880
11927
|
}
|
|
11881
11928
|
}
|
|
11882
11929
|
function CatalogRecipeCardComponent_div_21_ng_container_4_Template(rf, ctx) {
|
|
11883
11930
|
if (rf & 1) {
|
|
11884
11931
|
i0.ɵɵelementContainerStart(0);
|
|
11885
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11932
|
+
i0.ɵɵelement(1, "ng-miam-icon", 54);
|
|
11886
11933
|
i0.ɵɵelementContainerEnd();
|
|
11887
11934
|
}
|
|
11888
11935
|
if (rf & 2) {
|
|
11889
|
-
var
|
|
11936
|
+
var ctx_r36 = i0.ɵɵnextContext(2);
|
|
11890
11937
|
i0.ɵɵadvance(1);
|
|
11891
|
-
i0.ɵɵproperty("width", 18)("height", 18)("iconName",
|
|
11938
|
+
i0.ɵɵproperty("width", 18)("height", 18)("iconName", ctx_r36.icon.DifficultyLow);
|
|
11892
11939
|
}
|
|
11893
11940
|
}
|
|
11894
11941
|
var _c1$6 = function (a0, a1, a2) { return { "easy": a0, "medium": a1, "hard": a2 }; };
|
|
11895
11942
|
function CatalogRecipeCardComponent_div_21_Template(rf, ctx) {
|
|
11896
11943
|
if (rf & 1) {
|
|
11897
|
-
i0.ɵɵelementStart(0, "div",
|
|
11898
|
-
i0.ɵɵelementContainerStart(1,
|
|
11899
|
-
i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_21_ng_container_2_Template, 2, 3, "ng-container",
|
|
11900
|
-
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_21_ng_container_3_Template, 2, 3, "ng-container",
|
|
11901
|
-
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_21_ng_container_4_Template, 2, 3, "ng-container",
|
|
11944
|
+
i0.ɵɵelementStart(0, "div", 50);
|
|
11945
|
+
i0.ɵɵelementContainerStart(1, 51);
|
|
11946
|
+
i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_21_ng_container_2_Template, 2, 3, "ng-container", 52);
|
|
11947
|
+
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_21_ng_container_3_Template, 2, 3, "ng-container", 52);
|
|
11948
|
+
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_21_ng_container_4_Template, 2, 3, "ng-container", 53);
|
|
11902
11949
|
i0.ɵɵelementContainerEnd();
|
|
11903
|
-
i0.ɵɵelementStart(5, "span",
|
|
11950
|
+
i0.ɵɵelementStart(5, "span", 49);
|
|
11904
11951
|
i0.ɵɵtext(6);
|
|
11905
11952
|
i0.ɵɵelementEnd();
|
|
11906
11953
|
i0.ɵɵelementEnd();
|
|
11907
11954
|
}
|
|
11908
11955
|
if (rf & 2) {
|
|
11909
|
-
var
|
|
11910
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(5, _c1$6, (
|
|
11956
|
+
var ctx_r12 = i0.ɵɵnextContext();
|
|
11957
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(5, _c1$6, (ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty) === 1, (ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty) === 2, (ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty) === 3));
|
|
11911
11958
|
i0.ɵɵadvance(1);
|
|
11912
|
-
i0.ɵɵproperty("ngSwitch",
|
|
11959
|
+
i0.ɵɵproperty("ngSwitch", ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty);
|
|
11913
11960
|
i0.ɵɵadvance(1);
|
|
11914
11961
|
i0.ɵɵproperty("ngSwitchCase", 2);
|
|
11915
11962
|
i0.ɵɵadvance(1);
|
|
11916
11963
|
i0.ɵɵproperty("ngSwitchCase", 3);
|
|
11917
11964
|
i0.ɵɵadvance(3);
|
|
11918
|
-
i0.ɵɵtextInterpolate(
|
|
11965
|
+
i0.ɵɵtextInterpolate(ctx_r12.recipeService.difficultyLabel(ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty));
|
|
11919
11966
|
}
|
|
11920
11967
|
}
|
|
11921
11968
|
function CatalogRecipeCardComponent_ng_template_22_Template(rf, ctx) {
|
|
11922
11969
|
if (rf & 1) {
|
|
11923
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
11970
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 36);
|
|
11924
11971
|
}
|
|
11925
11972
|
if (rf & 2) {
|
|
11926
|
-
var
|
|
11927
|
-
i0.ɵɵproperty("type",
|
|
11973
|
+
var ctx_r14 = i0.ɵɵnextContext();
|
|
11974
|
+
i0.ɵɵproperty("type", ctx_r14.skeleton == null ? null : ctx_r14.skeleton.IconWithInfo);
|
|
11928
11975
|
}
|
|
11929
11976
|
}
|
|
11930
11977
|
function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template(rf, ctx) {
|
|
11931
11978
|
if (rf & 1) {
|
|
11932
|
-
var
|
|
11933
|
-
i0.ɵɵelementStart(0, "ng-miam-actions-popin",
|
|
11934
|
-
i0.ɵɵlistener("close", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_close_0_listener() { i0.ɵɵrestoreView(
|
|
11979
|
+
var _r38_1 = i0.ɵɵgetCurrentView();
|
|
11980
|
+
i0.ɵɵelementStart(0, "ng-miam-actions-popin", 55);
|
|
11981
|
+
i0.ɵɵlistener("close", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_close_0_listener() { i0.ɵɵrestoreView(_r38_1); var ctx_r37 = i0.ɵɵnextContext(); return ctx_r37.closeMoreActions(); })("actionTriggered", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_actionTriggered_0_listener($event) { i0.ɵɵrestoreView(_r38_1); var ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.actionTriggered.emit($event); });
|
|
11935
11982
|
i0.ɵɵelementEnd();
|
|
11936
11983
|
}
|
|
11937
11984
|
}
|
|
@@ -12042,7 +12089,7 @@
|
|
|
12042
12089
|
var _t;
|
|
12043
12090
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.moreActions = _t.first);
|
|
12044
12091
|
}
|
|
12045
|
-
}, inputs: { displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture" }, outputs: { actionTriggered: "actionTriggered" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 27, vars:
|
|
12092
|
+
}, inputs: { displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture" }, outputs: { actionTriggered: "actionTriggered" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 20, consts: [[1, "miam-catalog-recipe-card"], [1, "miam-catalog-recipe-card__header"], ["class", "miam-catalog-card__picture", 3, "click", 4, "ngIf", "ngIfElse"], ["pictSkeleton", ""], [1, "miam-catalog-card__attributes"], [1, "miam-catalog-recipe-card__attributes__control"], ["class", "miam-catalog-recipe-card__ingredients__pictures", 4, "ngIf"], ["class", "miam-catalog-recipe-card__right__col__price", 4, "ngIf"], [1, "m-button-primary", 3, "disabled", "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["originalCTA", ""], [3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-catalog-card__attributes__infos"], ["class", "miam-catalog-card__attributes__info recipe__total__time", 4, "ngIf", "ngIfElse"], ["class", "miam-catalog-card__attributes__info recipe__difficulty", 3, "ngClass", 4, "ngIf"], ["skeletonInfo", ""], [3, "close", "actionTriggered", 4, "ngIf"], ["cors", ""], [1, "miam-catalog-card__picture", 3, "click"], [1, "miam-catalog-card__picture__gradient"], ["loading", "lazy", 1, "miam-catalog-card__picture__img", 3, "src"], [4, "ngIf"], ["class", "miam-catalog-recipe-card__picture__video", 4, "ngIf"], ["textSkeleton", ""], [1, "miam-catalog-recipe-card__picture__actions"], ["width", "17", "height", "17", "class", "miam-catalog-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], [1, "miam-catalog-recipe-card__actions__icon", 3, "click"], ["miamMoreActions", ""], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-catalog-card__picture__sponsor", 3, "src"], [1, "miam-catalog-recipe-card__picture__video"], ["primaryColor", "black", 3, "iconName", "width", "height"], ["class", "miam-catalog-recipe-card__picture__tag", 4, "ngIf"], [1, "miam-catalog-recipe-card__picture__tag"], [1, "miam-catalog-recipe-card__attributes__title", 3, "click"], [3, "type"], ["width", "17", "height", "17", 1, "miam-catalog-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-catalog-recipe-card__ingredients__pictures"], [1, "miam-catalog-recipe-card__ingredients__picture"], [3, "src"], ["class", "miam-catalog-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-catalog-recipe-card__ingredients__more"], [1, "miam-catalog-recipe-card__right__col__price"], [3, "recipe", "serves", 4, "ngIf"], [3, "recipe", "serves"], [3, "width", "height", "iconName"], [1, "miam-catalog-card__attributes__info", "recipe__total__time"], ["width", "18", "height", "18", "primaryColor", "var(--m-catalog-card-details-color)", 3, "iconName"], [1, "miam-catalog-card__info__label"], [1, "miam-catalog-card__attributes__info", "recipe__difficulty", 3, "ngClass"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["primaryColor", "var(--m-catalog-card-details-color)", 3, "width", "height", "iconName"], [3, "close", "actionTriggered"]], template: function CatalogRecipeCardComponent_Template(rf, ctx) {
|
|
12046
12093
|
if (rf & 1) {
|
|
12047
12094
|
i0.ɵɵelementStart(0, "div", 0);
|
|
12048
12095
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -12059,28 +12106,27 @@
|
|
|
12059
12106
|
i0.ɵɵelementStart(11, "button", 8);
|
|
12060
12107
|
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_Template_button_click_11_listener() { return ctx.clickPrimary(); });
|
|
12061
12108
|
i0.ɵɵpipe(12, "async");
|
|
12062
|
-
i0.ɵɵ
|
|
12063
|
-
i0.ɵɵ
|
|
12064
|
-
i0.ɵɵ
|
|
12065
|
-
i0.ɵɵ
|
|
12066
|
-
i0.ɵɵtemplate(16, CatalogRecipeCardComponent_ng_miam_icon_16_Template, 2, 5, "ng-miam-icon", 9);
|
|
12067
|
-
i0.ɵɵtemplate(17, CatalogRecipeCardComponent_ng_template_17_Template, 1, 0, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
12109
|
+
i0.ɵɵtemplate(13, CatalogRecipeCardComponent_span_13_Template, 3, 3, "span", 9);
|
|
12110
|
+
i0.ɵɵtemplate(14, CatalogRecipeCardComponent_ng_template_14_Template, 3, 3, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
12111
|
+
i0.ɵɵtemplate(16, CatalogRecipeCardComponent_ng_miam_icon_16_Template, 2, 5, "ng-miam-icon", 11);
|
|
12112
|
+
i0.ɵɵtemplate(17, CatalogRecipeCardComponent_ng_template_17_Template, 1, 0, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor);
|
|
12068
12113
|
i0.ɵɵelementEnd();
|
|
12069
12114
|
i0.ɵɵelementEnd();
|
|
12070
|
-
i0.ɵɵelementStart(19, "div",
|
|
12071
|
-
i0.ɵɵtemplate(20, CatalogRecipeCardComponent_div_20_Template, 4, 2, "div",
|
|
12072
|
-
i0.ɵɵtemplate(21, CatalogRecipeCardComponent_div_21_Template, 7, 9, "div",
|
|
12073
|
-
i0.ɵɵtemplate(22, CatalogRecipeCardComponent_ng_template_22_Template, 1, 1, "ng-template", null,
|
|
12115
|
+
i0.ɵɵelementStart(19, "div", 13);
|
|
12116
|
+
i0.ɵɵtemplate(20, CatalogRecipeCardComponent_div_20_Template, 4, 2, "div", 14);
|
|
12117
|
+
i0.ɵɵtemplate(21, CatalogRecipeCardComponent_div_21_Template, 7, 9, "div", 15);
|
|
12118
|
+
i0.ɵɵtemplate(22, CatalogRecipeCardComponent_ng_template_22_Template, 1, 1, "ng-template", null, 16, i0.ɵɵtemplateRefExtractor);
|
|
12074
12119
|
i0.ɵɵelementEnd();
|
|
12075
12120
|
i0.ɵɵelementEnd();
|
|
12076
|
-
i0.ɵɵtemplate(24, CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template, 1, 0, "ng-miam-actions-popin",
|
|
12121
|
+
i0.ɵɵtemplate(24, CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template, 1, 0, "ng-miam-actions-popin", 17);
|
|
12077
12122
|
i0.ɵɵelementEnd();
|
|
12078
|
-
i0.ɵɵtemplate(25, CatalogRecipeCardComponent_ng_template_25_Template, 1, 0, "ng-template", null,
|
|
12123
|
+
i0.ɵɵtemplate(25, CatalogRecipeCardComponent_ng_template_25_Template, 1, 0, "ng-template", null, 18, i0.ɵɵtemplateRefExtractor);
|
|
12079
12124
|
}
|
|
12080
12125
|
if (rf & 2) {
|
|
12081
12126
|
var _r1 = i0.ɵɵreference(6);
|
|
12082
|
-
var _r6 = i0.ɵɵreference(
|
|
12083
|
-
var
|
|
12127
|
+
var _r6 = i0.ɵɵreference(15);
|
|
12128
|
+
var _r9 = i0.ɵɵreference(18);
|
|
12129
|
+
var _r13 = i0.ɵɵreference(23);
|
|
12084
12130
|
i0.ɵɵadvance(3);
|
|
12085
12131
|
i0.ɵɵtextInterpolate1(" ", ctx.headerText, "");
|
|
12086
12132
|
i0.ɵɵadvance(1);
|
|
@@ -12090,13 +12136,13 @@
|
|
|
12090
12136
|
i0.ɵɵadvance(1);
|
|
12091
12137
|
i0.ɵɵproperty("ngIf", ctx.recipe && ctx.displayPricing);
|
|
12092
12138
|
i0.ɵɵadvance(1);
|
|
12093
|
-
i0.ɵɵproperty("disabled", !ctx.recipe)("ngClass", i0.ɵɵpureFunction2(
|
|
12094
|
-
i0.ɵɵadvance(3);
|
|
12095
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 16, ctx.groceriesListsService.recipeIsInList(ctx.recipe == null ? null : ctx.recipe.id)) ? "Voir le d\u00E9tail" : "Ajouter les ingr\u00E9dients", " ");
|
|
12139
|
+
i0.ɵɵproperty("disabled", !ctx.recipe)("ngClass", i0.ɵɵpureFunction2(17, _c2$1, ctx.addButtonLoading, i0.ɵɵpipeBind1(12, 15, ctx.groceriesListsService.recipeIsInList(ctx.recipe == null ? null : ctx.recipe.id))));
|
|
12096
12140
|
i0.ɵɵadvance(2);
|
|
12097
|
-
i0.ɵɵproperty("ngIf", !ctx.
|
|
12141
|
+
i0.ɵɵproperty("ngIf", ctx.recipeService.recipesPrimaryButtonActions.display && !ctx.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r6);
|
|
12142
|
+
i0.ɵɵadvance(3);
|
|
12143
|
+
i0.ɵɵproperty("ngIf", !ctx.addButtonLoading)("ngIfElse", _r9);
|
|
12098
12144
|
i0.ɵɵadvance(4);
|
|
12099
|
-
i0.ɵɵproperty("ngIf", ctx.recipe)("ngIfElse",
|
|
12145
|
+
i0.ɵɵproperty("ngIf", ctx.recipe)("ngIfElse", _r13);
|
|
12100
12146
|
i0.ɵɵadvance(1);
|
|
12101
12147
|
i0.ɵɵproperty("ngIf", ctx.recipe);
|
|
12102
12148
|
i0.ɵɵadvance(3);
|