ng-miam 3.4.1 → 3.4.2
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 +342 -288
- 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/_models/ingredient.js +11 -7
- package/esm2015/lib/_models/recipe.js +3 -2
- package/esm2015/lib/_services/context.service.js +5 -1
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +319 -281
- package/fesm2015/ng-miam.js +333 -286
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_models/ingredient.d.ts +2 -0
- package/lib/_models/recipe.d.ts +1 -0
- package/lib/_services/context.service.d.ts +2 -0
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts +11 -3
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -1574,7 +1574,8 @@
|
|
|
1574
1574
|
return {
|
|
1575
1575
|
name: ingredient.attributes.name,
|
|
1576
1576
|
qty: (+ingredient.quantity) / (+_this.guests || 1),
|
|
1577
|
-
unit: ingredient.attributes.unit
|
|
1577
|
+
unit: ingredient.attributes.unit,
|
|
1578
|
+
picture: ingredient.picture
|
|
1578
1579
|
};
|
|
1579
1580
|
});
|
|
1580
1581
|
}
|
|
@@ -1941,14 +1942,15 @@
|
|
|
1941
1942
|
function Ingredient() {
|
|
1942
1943
|
var _this = _super.apply(this, __spread(arguments)) || this;
|
|
1943
1944
|
_this.attributes = {
|
|
1944
|
-
|
|
1945
|
-
|
|
1946
|
-
|
|
1947
|
-
|
|
1948
|
-
'forced-eans': []
|
|
1945
|
+
name: '',
|
|
1946
|
+
quantity: '',
|
|
1947
|
+
unit: '',
|
|
1948
|
+
active: true,
|
|
1949
|
+
'forced-eans': [],
|
|
1950
|
+
picture: ''
|
|
1949
1951
|
};
|
|
1950
1952
|
_this.relationships = {
|
|
1951
|
-
|
|
1953
|
+
recipe: new i1.DocumentResource(),
|
|
1952
1954
|
'quantity-unit': new i1.DocumentResource()
|
|
1953
1955
|
};
|
|
1954
1956
|
return _this;
|
|
@@ -1966,6 +1968,13 @@
|
|
|
1966
1968
|
enumerable: false,
|
|
1967
1969
|
configurable: true
|
|
1968
1970
|
});
|
|
1971
|
+
Object.defineProperty(Ingredient.prototype, "picture", {
|
|
1972
|
+
get: function () {
|
|
1973
|
+
return this.attributes.picture;
|
|
1974
|
+
},
|
|
1975
|
+
enumerable: false,
|
|
1976
|
+
configurable: true
|
|
1977
|
+
});
|
|
1969
1978
|
return Ingredient;
|
|
1970
1979
|
}(i1.Resource));
|
|
1971
1980
|
|
|
@@ -3301,6 +3310,7 @@
|
|
|
3301
3310
|
this.breakpointObserver = breakpointObserver;
|
|
3302
3311
|
this.videoRecipesEnabled = false;
|
|
3303
3312
|
this.articlesInCatalogEnabled = false;
|
|
3313
|
+
this.defaultIngredientPicture = 'https://storage.googleapis.com/assets.miam.tech/generic/images/default-ingredient-picture.svg';
|
|
3304
3314
|
this.isSmallScreen$ = new rxjs.BehaviorSubject(false);
|
|
3305
3315
|
this.miam = {
|
|
3306
3316
|
user: {
|
|
@@ -3377,6 +3387,9 @@
|
|
|
3377
3387
|
hidden: this.recipesService.hidden,
|
|
3378
3388
|
search: function (provider, query) {
|
|
3379
3389
|
return _this.recipesService.all({ remotefilter: { recipe_provider_id: provider, search: query } }).pipe(operators.skipWhile(function (result) { return !result; }), operators.map(function (response) { return response['data']; }));
|
|
3390
|
+
},
|
|
3391
|
+
setDefaultIngredientPicture: function (url) {
|
|
3392
|
+
_this.defaultIngredientPicture = url;
|
|
3380
3393
|
}
|
|
3381
3394
|
},
|
|
3382
3395
|
analytics: {
|
|
@@ -13975,62 +13988,63 @@
|
|
|
13975
13988
|
})();
|
|
13976
13989
|
|
|
13977
13990
|
var _c0$r = ["topContainerImg"];
|
|
13978
|
-
|
|
13991
|
+
var _c1$b = ["mainContainer"];
|
|
13992
|
+
function RecipeDetailsComponent_div_0_img_6_Template(rf, ctx) {
|
|
13979
13993
|
if (rf & 1) {
|
|
13980
|
-
i0.ɵɵelement(0, "img",
|
|
13994
|
+
i0.ɵɵelement(0, "img", 40);
|
|
13981
13995
|
}
|
|
13982
13996
|
if (rf & 2) {
|
|
13983
|
-
var
|
|
13984
|
-
i0.ɵɵproperty("src",
|
|
13997
|
+
var ctx_r5 = i0.ɵɵnextContext(2);
|
|
13998
|
+
i0.ɵɵproperty("src", ctx_r5.recipe == null ? null : ctx_r5.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
|
|
13985
13999
|
}
|
|
13986
14000
|
}
|
|
13987
|
-
function
|
|
14001
|
+
function RecipeDetailsComponent_div_0_div_7_Template(rf, ctx) {
|
|
13988
14002
|
if (rf & 1) {
|
|
13989
|
-
i0.ɵɵelement(0, "div",
|
|
14003
|
+
i0.ɵɵelement(0, "div", 41);
|
|
13990
14004
|
}
|
|
13991
14005
|
}
|
|
13992
|
-
function
|
|
14006
|
+
function RecipeDetailsComponent_div_0_youtube_player_8_Template(rf, ctx) {
|
|
13993
14007
|
if (rf & 1) {
|
|
13994
|
-
i0.ɵɵelement(0, "youtube-player",
|
|
14008
|
+
i0.ɵɵelement(0, "youtube-player", 42);
|
|
13995
14009
|
}
|
|
13996
14010
|
if (rf & 2) {
|
|
13997
|
-
var
|
|
13998
|
-
i0.ɵɵproperty("videoId",
|
|
14011
|
+
var ctx_r7 = i0.ɵɵnextContext(2);
|
|
14012
|
+
i0.ɵɵproperty("videoId", ctx_r7.recipe.videoId)("width", ctx_r7.playerWidth)("height", ctx_r7.playerHeight);
|
|
13999
14013
|
}
|
|
14000
14014
|
}
|
|
14001
|
-
function
|
|
14015
|
+
function RecipeDetailsComponent_div_0_div_9_Template(rf, ctx) {
|
|
14002
14016
|
if (rf & 1) {
|
|
14003
|
-
i0.ɵɵelementStart(0, "div",
|
|
14017
|
+
i0.ɵɵelementStart(0, "div", 43);
|
|
14004
14018
|
i0.ɵɵtext(1, "D\u00E9j\u00E0 ajout\u00E9e");
|
|
14005
14019
|
i0.ɵɵelementEnd();
|
|
14006
14020
|
}
|
|
14007
14021
|
}
|
|
14008
|
-
function
|
|
14022
|
+
function RecipeDetailsComponent_div_0_ng_miam_like_button_12_Template(rf, ctx) {
|
|
14009
14023
|
if (rf & 1) {
|
|
14010
|
-
i0.ɵɵelement(0, "ng-miam-like-button",
|
|
14024
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 44);
|
|
14011
14025
|
}
|
|
14012
14026
|
if (rf & 2) {
|
|
14013
|
-
var
|
|
14014
|
-
i0.ɵɵproperty("recipe",
|
|
14027
|
+
var ctx_r9 = i0.ɵɵnextContext(2);
|
|
14028
|
+
i0.ɵɵproperty("recipe", ctx_r9.recipe)("width", 26)("height", 26);
|
|
14015
14029
|
}
|
|
14016
14030
|
}
|
|
14017
|
-
function
|
|
14031
|
+
function RecipeDetailsComponent_div_0_img_16_Template(rf, ctx) {
|
|
14018
14032
|
if (rf & 1) {
|
|
14019
|
-
i0.ɵɵelement(0, "img",
|
|
14033
|
+
i0.ɵɵelement(0, "img", 45);
|
|
14020
14034
|
}
|
|
14021
14035
|
if (rf & 2) {
|
|
14022
|
-
var
|
|
14023
|
-
i0.ɵɵpropertyInterpolate("src",
|
|
14036
|
+
var ctx_r10 = i0.ɵɵnextContext(2);
|
|
14037
|
+
i0.ɵɵpropertyInterpolate("src", ctx_r10.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
|
|
14024
14038
|
}
|
|
14025
14039
|
}
|
|
14026
|
-
function
|
|
14040
|
+
function RecipeDetailsComponent_div_0_div_23_Template(rf, ctx) {
|
|
14027
14041
|
if (rf & 1) {
|
|
14028
|
-
i0.ɵɵelementStart(0, "div",
|
|
14042
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
14029
14043
|
i0.ɵɵelementStart(1, "span");
|
|
14030
14044
|
i0.ɵɵtext(2, "Pr\u00E9paration");
|
|
14031
14045
|
i0.ɵɵelementEnd();
|
|
14032
|
-
i0.ɵɵelementStart(3, "div",
|
|
14033
|
-
i0.ɵɵelement(4, "ng-miam-icon",
|
|
14046
|
+
i0.ɵɵelementStart(3, "div", 47);
|
|
14047
|
+
i0.ɵɵelement(4, "ng-miam-icon", 48);
|
|
14034
14048
|
i0.ɵɵelementStart(5, "span");
|
|
14035
14049
|
i0.ɵɵtext(6);
|
|
14036
14050
|
i0.ɵɵelementEnd();
|
|
@@ -14038,21 +14052,21 @@
|
|
|
14038
14052
|
i0.ɵɵelementEnd();
|
|
14039
14053
|
}
|
|
14040
14054
|
if (rf & 2) {
|
|
14041
|
-
var
|
|
14055
|
+
var ctx_r11 = i0.ɵɵnextContext(2);
|
|
14042
14056
|
i0.ɵɵadvance(4);
|
|
14043
|
-
i0.ɵɵproperty("width", 24)("height", 24)("iconName",
|
|
14057
|
+
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r11.icon.Preparation);
|
|
14044
14058
|
i0.ɵɵadvance(2);
|
|
14045
|
-
i0.ɵɵtextInterpolate(
|
|
14059
|
+
i0.ɵɵtextInterpolate(ctx_r11.recipe == null ? null : ctx_r11.recipe.preparationTime);
|
|
14046
14060
|
}
|
|
14047
14061
|
}
|
|
14048
|
-
function
|
|
14062
|
+
function RecipeDetailsComponent_div_0_div_24_Template(rf, ctx) {
|
|
14049
14063
|
if (rf & 1) {
|
|
14050
|
-
i0.ɵɵelementStart(0, "div",
|
|
14064
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
14051
14065
|
i0.ɵɵelementStart(1, "span");
|
|
14052
14066
|
i0.ɵɵtext(2, "Cuisson");
|
|
14053
14067
|
i0.ɵɵelementEnd();
|
|
14054
|
-
i0.ɵɵelementStart(3, "div",
|
|
14055
|
-
i0.ɵɵelement(4, "ng-miam-icon",
|
|
14068
|
+
i0.ɵɵelementStart(3, "div", 47);
|
|
14069
|
+
i0.ɵɵelement(4, "ng-miam-icon", 48);
|
|
14056
14070
|
i0.ɵɵelementStart(5, "span");
|
|
14057
14071
|
i0.ɵɵtext(6);
|
|
14058
14072
|
i0.ɵɵelementEnd();
|
|
@@ -14060,21 +14074,21 @@
|
|
|
14060
14074
|
i0.ɵɵelementEnd();
|
|
14061
14075
|
}
|
|
14062
14076
|
if (rf & 2) {
|
|
14063
|
-
var
|
|
14077
|
+
var ctx_r12 = i0.ɵɵnextContext(2);
|
|
14064
14078
|
i0.ɵɵadvance(4);
|
|
14065
|
-
i0.ɵɵproperty("width", 24)("height", 24)("iconName",
|
|
14079
|
+
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r12.icon.Hot);
|
|
14066
14080
|
i0.ɵɵadvance(2);
|
|
14067
|
-
i0.ɵɵtextInterpolate(
|
|
14081
|
+
i0.ɵɵtextInterpolate(ctx_r12.recipe == null ? null : ctx_r12.recipe.cookingTime);
|
|
14068
14082
|
}
|
|
14069
14083
|
}
|
|
14070
|
-
function
|
|
14084
|
+
function RecipeDetailsComponent_div_0_div_25_Template(rf, ctx) {
|
|
14071
14085
|
if (rf & 1) {
|
|
14072
|
-
i0.ɵɵelementStart(0, "div",
|
|
14086
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
14073
14087
|
i0.ɵɵelementStart(1, "span");
|
|
14074
14088
|
i0.ɵɵtext(2, "Repos");
|
|
14075
14089
|
i0.ɵɵelementEnd();
|
|
14076
|
-
i0.ɵɵelementStart(3, "div",
|
|
14077
|
-
i0.ɵɵelement(4, "ng-miam-icon",
|
|
14090
|
+
i0.ɵɵelementStart(3, "div", 47);
|
|
14091
|
+
i0.ɵɵelement(4, "ng-miam-icon", 48);
|
|
14078
14092
|
i0.ɵɵelementStart(5, "span");
|
|
14079
14093
|
i0.ɵɵtext(6);
|
|
14080
14094
|
i0.ɵɵelementEnd();
|
|
@@ -14082,463 +14096,478 @@
|
|
|
14082
14096
|
i0.ɵɵelementEnd();
|
|
14083
14097
|
}
|
|
14084
14098
|
if (rf & 2) {
|
|
14085
|
-
var
|
|
14099
|
+
var ctx_r13 = i0.ɵɵnextContext(2);
|
|
14086
14100
|
i0.ɵɵadvance(4);
|
|
14087
|
-
i0.ɵɵproperty("width", 24)("height", 24)("iconName",
|
|
14101
|
+
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r13.icon.Wait);
|
|
14088
14102
|
i0.ɵɵadvance(2);
|
|
14089
|
-
i0.ɵɵtextInterpolate(
|
|
14103
|
+
i0.ɵɵtextInterpolate(ctx_r13.recipe == null ? null : ctx_r13.recipe.restingTime);
|
|
14090
14104
|
}
|
|
14091
14105
|
}
|
|
14092
|
-
function
|
|
14106
|
+
function RecipeDetailsComponent_div_0_ng_container_35_Template(rf, ctx) {
|
|
14093
14107
|
if (rf & 1) {
|
|
14094
14108
|
i0.ɵɵelementContainerStart(0);
|
|
14095
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
14109
|
+
i0.ɵɵelement(1, "ng-miam-icon", 49);
|
|
14096
14110
|
i0.ɵɵelementContainerEnd();
|
|
14097
14111
|
}
|
|
14098
14112
|
if (rf & 2) {
|
|
14099
|
-
var
|
|
14113
|
+
var ctx_r14 = i0.ɵɵnextContext(2);
|
|
14100
14114
|
i0.ɵɵadvance(1);
|
|
14101
|
-
i0.ɵɵproperty("width", 56)("height", 16)("iconName",
|
|
14115
|
+
i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r14.icon.DifficultyLow);
|
|
14102
14116
|
}
|
|
14103
14117
|
}
|
|
14104
|
-
function
|
|
14118
|
+
function RecipeDetailsComponent_div_0_ng_container_36_Template(rf, ctx) {
|
|
14105
14119
|
if (rf & 1) {
|
|
14106
14120
|
i0.ɵɵelementContainerStart(0);
|
|
14107
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
14121
|
+
i0.ɵɵelement(1, "ng-miam-icon", 49);
|
|
14108
14122
|
i0.ɵɵelementContainerEnd();
|
|
14109
14123
|
}
|
|
14110
14124
|
if (rf & 2) {
|
|
14111
|
-
var
|
|
14125
|
+
var ctx_r15 = i0.ɵɵnextContext(2);
|
|
14112
14126
|
i0.ɵɵadvance(1);
|
|
14113
|
-
i0.ɵɵproperty("width", 56)("height", 16)("iconName",
|
|
14127
|
+
i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r15.icon.DifficultyMedium);
|
|
14114
14128
|
}
|
|
14115
14129
|
}
|
|
14116
|
-
function
|
|
14130
|
+
function RecipeDetailsComponent_div_0_ng_container_37_Template(rf, ctx) {
|
|
14117
14131
|
if (rf & 1) {
|
|
14118
14132
|
i0.ɵɵelementContainerStart(0);
|
|
14119
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
14133
|
+
i0.ɵɵelement(1, "ng-miam-icon", 49);
|
|
14120
14134
|
i0.ɵɵelementContainerEnd();
|
|
14121
14135
|
}
|
|
14122
14136
|
if (rf & 2) {
|
|
14123
|
-
var
|
|
14137
|
+
var ctx_r16 = i0.ɵɵnextContext(2);
|
|
14124
14138
|
i0.ɵɵadvance(1);
|
|
14125
|
-
i0.ɵɵproperty("width", 56)("height", 16)("iconName",
|
|
14139
|
+
i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r16.icon.DifficultyHight);
|
|
14126
14140
|
}
|
|
14127
14141
|
}
|
|
14128
|
-
function
|
|
14142
|
+
function RecipeDetailsComponent_div_0_ng_container_38_Template(rf, ctx) {
|
|
14129
14143
|
if (rf & 1) {
|
|
14130
14144
|
i0.ɵɵelementContainer(0);
|
|
14131
14145
|
}
|
|
14132
14146
|
}
|
|
14133
|
-
function
|
|
14147
|
+
function RecipeDetailsComponent_div_0_button_51_Template(rf, ctx) {
|
|
14134
14148
|
if (rf & 1) {
|
|
14135
|
-
var
|
|
14136
|
-
i0.ɵɵelementStart(0, "button",
|
|
14137
|
-
i0.ɵɵlistener("click", function
|
|
14149
|
+
var _r25_1 = i0.ɵɵgetCurrentView();
|
|
14150
|
+
i0.ɵɵelementStart(0, "button", 50);
|
|
14151
|
+
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_51_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r25_1); var ctx_r24 = i0.ɵɵnextContext(2); return ctx_r24.addRecipe(); });
|
|
14138
14152
|
i0.ɵɵelementStart(1, "span");
|
|
14139
14153
|
i0.ɵɵtext(2);
|
|
14140
14154
|
i0.ɵɵpipe(3, "async");
|
|
14141
14155
|
i0.ɵɵelementEnd();
|
|
14142
|
-
i0.ɵɵelement(4, "ng-miam-icon",
|
|
14156
|
+
i0.ɵɵelement(4, "ng-miam-icon", 51);
|
|
14143
14157
|
i0.ɵɵpipe(5, "async");
|
|
14144
14158
|
i0.ɵɵelementEnd();
|
|
14145
14159
|
}
|
|
14146
14160
|
if (rf & 2) {
|
|
14147
|
-
var
|
|
14161
|
+
var ctx_r18 = i0.ɵɵnextContext(2);
|
|
14148
14162
|
var tmp_0_0 = null;
|
|
14149
14163
|
var tmp_3_0 = null;
|
|
14150
14164
|
i0.ɵɵadvance(2);
|
|
14151
|
-
i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4,
|
|
14165
|
+
i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4, ctx_r18.groceriesListsService.list$)) == null ? null : tmp_0_0.hasRecipe(ctx_r18.recipe == null ? null : ctx_r18.recipe.id)) ? "Voir le d\u00E9tail" : "S\u00E9lectionner ce repas", " ");
|
|
14152
14166
|
i0.ɵɵadvance(2);
|
|
14153
|
-
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6,
|
|
14167
|
+
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6, ctx_r18.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r18.recipe == null ? null : ctx_r18.recipe.id)) ? ctx_r18.icon.CheckList : ctx_r18.icon.Cart);
|
|
14154
14168
|
}
|
|
14155
14169
|
}
|
|
14156
|
-
function
|
|
14170
|
+
function RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template(rf, ctx) {
|
|
14157
14171
|
if (rf & 1) {
|
|
14158
|
-
var
|
|
14159
|
-
i0.ɵɵelementStart(0, "ng-miam-addon-link",
|
|
14160
|
-
i0.ɵɵlistener("showAddon", function
|
|
14172
|
+
var _r27_1 = i0.ɵɵgetCurrentView();
|
|
14173
|
+
i0.ɵɵelementStart(0, "ng-miam-addon-link", 52);
|
|
14174
|
+
i0.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template_ng_miam_addon_link_showAddon_0_listener() { i0.ɵɵrestoreView(_r27_1); var ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.toggleAddon(); });
|
|
14161
14175
|
i0.ɵɵelementEnd();
|
|
14162
14176
|
}
|
|
14163
14177
|
if (rf & 2) {
|
|
14164
|
-
var
|
|
14165
|
-
i0.ɵɵproperty("recipe",
|
|
14178
|
+
var ctx_r19 = i0.ɵɵnextContext(2);
|
|
14179
|
+
i0.ɵɵproperty("recipe", ctx_r19.recipe);
|
|
14166
14180
|
}
|
|
14167
14181
|
}
|
|
14168
|
-
|
|
14169
|
-
function RecipeDetailsComponent_div_0_div_54_div_12_Template(rf, ctx) {
|
|
14182
|
+
function RecipeDetailsComponent_div_0_div_55_div_12_div_1_Template(rf, ctx) {
|
|
14170
14183
|
if (rf & 1) {
|
|
14171
|
-
i0.ɵɵelementStart(0, "div"
|
|
14172
|
-
i0.ɵɵ
|
|
14173
|
-
i0.ɵɵtext(2);
|
|
14174
|
-
i0.ɵɵpipe(3, "capitalizeFirstLetter");
|
|
14184
|
+
i0.ɵɵelementStart(0, "div");
|
|
14185
|
+
i0.ɵɵelement(1, "img", 68);
|
|
14175
14186
|
i0.ɵɵelementEnd();
|
|
14176
|
-
|
|
14177
|
-
|
|
14178
|
-
i0.ɵɵ
|
|
14187
|
+
}
|
|
14188
|
+
if (rf & 2) {
|
|
14189
|
+
var ingredient_r30 = i0.ɵɵnextContext().$implicit;
|
|
14190
|
+
var ctx_r32 = i0.ɵɵnextContext(3);
|
|
14191
|
+
i0.ɵɵadvance(1);
|
|
14192
|
+
i0.ɵɵproperty("src", ctx_r32.ingredientPicture(ingredient_r30), i0.ɵɵsanitizeUrl);
|
|
14193
|
+
}
|
|
14194
|
+
}
|
|
14195
|
+
var _c2$3 = function (a0) { return { "checked": a0 }; };
|
|
14196
|
+
function RecipeDetailsComponent_div_0_div_55_div_12_Template(rf, ctx) {
|
|
14197
|
+
if (rf & 1) {
|
|
14198
|
+
i0.ɵɵelementStart(0, "div", 66);
|
|
14199
|
+
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_55_div_12_div_1_Template, 2, 1, "div", 67);
|
|
14200
|
+
i0.ɵɵelementStart(2, "div");
|
|
14201
|
+
i0.ɵɵtext(3);
|
|
14202
|
+
i0.ɵɵpipe(4, "capitalizeFirstLetter");
|
|
14203
|
+
i0.ɵɵelementEnd();
|
|
14204
|
+
i0.ɵɵelementStart(5, "div", 60);
|
|
14205
|
+
i0.ɵɵtext(6);
|
|
14206
|
+
i0.ɵɵpipe(7, "readableFloatNumber");
|
|
14179
14207
|
i0.ɵɵelementEnd();
|
|
14180
14208
|
i0.ɵɵelementEnd();
|
|
14181
14209
|
}
|
|
14182
14210
|
if (rf & 2) {
|
|
14183
|
-
var
|
|
14184
|
-
var
|
|
14185
|
-
var
|
|
14186
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
14211
|
+
var ingredient_r30 = ctx.$implicit;
|
|
14212
|
+
var i_r31 = ctx.index;
|
|
14213
|
+
var ctx_r28 = i0.ɵɵnextContext(3);
|
|
14214
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2$3, ctx_r28.ingredientsChecked[i_r31]));
|
|
14215
|
+
i0.ɵɵadvance(1);
|
|
14216
|
+
i0.ɵɵproperty("ngIf", ctx_r28.ingredientsPictures);
|
|
14187
14217
|
i0.ɵɵadvance(2);
|
|
14188
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
14218
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ingredient_r30.name), "");
|
|
14189
14219
|
i0.ɵɵadvance(3);
|
|
14190
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(
|
|
14220
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(7, 6, ingredient_r30.qty, ingredient_r30.unit), "");
|
|
14191
14221
|
}
|
|
14192
14222
|
}
|
|
14193
|
-
function
|
|
14223
|
+
function RecipeDetailsComponent_div_0_div_55_div_17_ng_miam_icon_6_Template(rf, ctx) {
|
|
14194
14224
|
if (rf & 1) {
|
|
14195
|
-
i0.ɵɵelement(0, "ng-miam-icon",
|
|
14225
|
+
i0.ɵɵelement(0, "ng-miam-icon", 73);
|
|
14196
14226
|
}
|
|
14197
14227
|
if (rf & 2) {
|
|
14198
|
-
var
|
|
14199
|
-
i0.ɵɵproperty("height", 16)("width", 16)("iconName",
|
|
14228
|
+
var ctx_r36 = i0.ɵɵnextContext(4);
|
|
14229
|
+
i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r36.icon.CheckCircleFill);
|
|
14200
14230
|
}
|
|
14201
14231
|
}
|
|
14202
|
-
function
|
|
14232
|
+
function RecipeDetailsComponent_div_0_div_55_div_17_Template(rf, ctx) {
|
|
14203
14233
|
if (rf & 1) {
|
|
14204
|
-
var
|
|
14205
|
-
i0.ɵɵelementStart(0, "div",
|
|
14206
|
-
i0.ɵɵlistener("click", function
|
|
14207
|
-
i0.ɵɵelementStart(1, "div",
|
|
14234
|
+
var _r38_1 = i0.ɵɵgetCurrentView();
|
|
14235
|
+
i0.ɵɵelementStart(0, "div", 69);
|
|
14236
|
+
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_55_div_17_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r38_1); var i_r35 = ctx.index; var ctx_r37 = i0.ɵɵnextContext(3); return ctx_r37.changeActiveStep(i_r35); });
|
|
14237
|
+
i0.ɵɵelementStart(1, "div", 70);
|
|
14208
14238
|
i0.ɵɵelementStart(2, "strong");
|
|
14209
14239
|
i0.ɵɵtext(3);
|
|
14210
14240
|
i0.ɵɵelementEnd();
|
|
14211
14241
|
i0.ɵɵelementEnd();
|
|
14212
|
-
i0.ɵɵelementStart(4, "div",
|
|
14242
|
+
i0.ɵɵelementStart(4, "div", 71);
|
|
14213
14243
|
i0.ɵɵtext(5);
|
|
14214
14244
|
i0.ɵɵelementEnd();
|
|
14215
|
-
i0.ɵɵtemplate(6,
|
|
14245
|
+
i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_div_55_div_17_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 72);
|
|
14216
14246
|
i0.ɵɵelementEnd();
|
|
14217
14247
|
}
|
|
14218
14248
|
if (rf & 2) {
|
|
14219
|
-
var
|
|
14220
|
-
var
|
|
14221
|
-
var
|
|
14222
|
-
i0.ɵɵclassProp("active",
|
|
14249
|
+
var step_r34 = ctx.$implicit;
|
|
14250
|
+
var i_r35 = ctx.index;
|
|
14251
|
+
var ctx_r29 = i0.ɵɵnextContext(3);
|
|
14252
|
+
i0.ɵɵclassProp("active", i_r35 === ctx_r29.activeStep)("miam-recipe-details__panel__done", i_r35 < ctx_r29.activeStep);
|
|
14223
14253
|
i0.ɵɵadvance(3);
|
|
14224
|
-
i0.ɵɵtextInterpolate(
|
|
14254
|
+
i0.ɵɵtextInterpolate(i_r35 + 1);
|
|
14225
14255
|
i0.ɵɵadvance(2);
|
|
14226
|
-
i0.ɵɵtextInterpolate(
|
|
14256
|
+
i0.ɵɵtextInterpolate(step_r34 == null ? null : step_r34.attributes == null ? null : step_r34.attributes.description);
|
|
14227
14257
|
i0.ɵɵadvance(1);
|
|
14228
|
-
i0.ɵɵproperty("ngIf",
|
|
14258
|
+
i0.ɵɵproperty("ngIf", i_r35 <= ctx_r29.activeStep);
|
|
14229
14259
|
}
|
|
14230
14260
|
}
|
|
14231
|
-
function
|
|
14261
|
+
function RecipeDetailsComponent_div_0_div_55_Template(rf, ctx) {
|
|
14232
14262
|
if (rf & 1) {
|
|
14233
|
-
var
|
|
14234
|
-
i0.ɵɵelementStart(0, "div",
|
|
14235
|
-
i0.ɵɵelementStart(1, "div",
|
|
14236
|
-
i0.ɵɵelementStart(2, "div",
|
|
14263
|
+
var _r40_1 = i0.ɵɵgetCurrentView();
|
|
14264
|
+
i0.ɵɵelementStart(0, "div", 53);
|
|
14265
|
+
i0.ɵɵelementStart(1, "div", 54);
|
|
14266
|
+
i0.ɵɵelementStart(2, "div", 55);
|
|
14237
14267
|
i0.ɵɵtext(3, " Ingr\u00E9dients ");
|
|
14238
14268
|
i0.ɵɵelementEnd();
|
|
14239
|
-
i0.ɵɵelementStart(4, "div",
|
|
14240
|
-
i0.ɵɵelementStart(5, "div",
|
|
14241
|
-
i0.ɵɵelementStart(6, "ng-miam-counter-input",
|
|
14242
|
-
i0.ɵɵlistener("counterChange", function
|
|
14269
|
+
i0.ɵɵelementStart(4, "div", 56);
|
|
14270
|
+
i0.ɵɵelementStart(5, "div", 57);
|
|
14271
|
+
i0.ɵɵelementStart(6, "ng-miam-counter-input", 58);
|
|
14272
|
+
i0.ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_div_55_Template_ng_miam_counter_input_counterChange_6_listener($event) { i0.ɵɵrestoreView(_r40_1); var ctx_r39 = i0.ɵɵnextContext(2); return ctx_r39.updateGuests($event); });
|
|
14243
14273
|
i0.ɵɵelementEnd();
|
|
14244
|
-
i0.ɵɵelementStart(7, "span",
|
|
14274
|
+
i0.ɵɵelementStart(7, "span", 59);
|
|
14245
14275
|
i0.ɵɵtext(8);
|
|
14246
14276
|
i0.ɵɵelementEnd();
|
|
14247
14277
|
i0.ɵɵelementEnd();
|
|
14248
|
-
i0.ɵɵelementStart(9, "span",
|
|
14278
|
+
i0.ɵɵelementStart(9, "span", 60);
|
|
14249
14279
|
i0.ɵɵtext(10, "Quantit\u00E9");
|
|
14250
14280
|
i0.ɵɵelementEnd();
|
|
14251
14281
|
i0.ɵɵelementEnd();
|
|
14252
|
-
i0.ɵɵelementStart(11, "div",
|
|
14253
|
-
i0.ɵɵtemplate(12,
|
|
14282
|
+
i0.ɵɵelementStart(11, "div", 61);
|
|
14283
|
+
i0.ɵɵtemplate(12, RecipeDetailsComponent_div_0_div_55_div_12_Template, 8, 11, "div", 62);
|
|
14254
14284
|
i0.ɵɵelementEnd();
|
|
14255
14285
|
i0.ɵɵelementEnd();
|
|
14256
|
-
i0.ɵɵelementStart(13, "div",
|
|
14257
|
-
i0.ɵɵelementStart(14, "div",
|
|
14286
|
+
i0.ɵɵelementStart(13, "div", 63);
|
|
14287
|
+
i0.ɵɵelementStart(14, "div", 55);
|
|
14258
14288
|
i0.ɵɵtext(15, " Pr\u00E9paration ");
|
|
14259
14289
|
i0.ɵɵelementEnd();
|
|
14260
|
-
i0.ɵɵelementStart(16, "div",
|
|
14261
|
-
i0.ɵɵtemplate(17,
|
|
14290
|
+
i0.ɵɵelementStart(16, "div", 64);
|
|
14291
|
+
i0.ɵɵtemplate(17, RecipeDetailsComponent_div_0_div_55_div_17_Template, 7, 7, "div", 65);
|
|
14262
14292
|
i0.ɵɵelementEnd();
|
|
14263
14293
|
i0.ɵɵelementEnd();
|
|
14264
14294
|
i0.ɵɵelementEnd();
|
|
14265
14295
|
}
|
|
14266
14296
|
if (rf & 2) {
|
|
14267
|
-
var
|
|
14297
|
+
var ctx_r20 = i0.ɵɵnextContext(2);
|
|
14268
14298
|
i0.ɵɵadvance(6);
|
|
14269
|
-
i0.ɵɵproperty("counter", (
|
|
14299
|
+
i0.ɵɵproperty("counter", (ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedGuests) || ctx_r20.recipe.guests);
|
|
14270
14300
|
i0.ɵɵadvance(2);
|
|
14271
|
-
i0.ɵɵtextInterpolate1("Pour ",
|
|
14301
|
+
i0.ɵɵtextInterpolate1("Pour ", ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedGuests, " personnes");
|
|
14272
14302
|
i0.ɵɵadvance(4);
|
|
14273
|
-
i0.ɵɵproperty("ngForOf",
|
|
14303
|
+
i0.ɵɵproperty("ngForOf", ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedIngredients);
|
|
14274
14304
|
i0.ɵɵadvance(5);
|
|
14275
|
-
i0.ɵɵproperty("ngForOf",
|
|
14305
|
+
i0.ɵɵproperty("ngForOf", ctx_r20.steps);
|
|
14276
14306
|
}
|
|
14277
14307
|
}
|
|
14278
|
-
function
|
|
14308
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_div_9_Template(rf, ctx) {
|
|
14279
14309
|
if (rf & 1) {
|
|
14280
|
-
i0.ɵɵelementStart(0, "div",
|
|
14310
|
+
i0.ɵɵelementStart(0, "div", 66);
|
|
14281
14311
|
i0.ɵɵelementStart(1, "div");
|
|
14282
14312
|
i0.ɵɵtext(2);
|
|
14283
14313
|
i0.ɵɵpipe(3, "capitalizeFirstLetter");
|
|
14284
14314
|
i0.ɵɵelementEnd();
|
|
14285
|
-
i0.ɵɵelementStart(4, "div",
|
|
14315
|
+
i0.ɵɵelementStart(4, "div", 60);
|
|
14286
14316
|
i0.ɵɵtext(5);
|
|
14287
14317
|
i0.ɵɵpipe(6, "readableFloatNumber");
|
|
14288
14318
|
i0.ɵɵelementEnd();
|
|
14289
14319
|
i0.ɵɵelementEnd();
|
|
14290
14320
|
}
|
|
14291
14321
|
if (rf & 2) {
|
|
14292
|
-
var
|
|
14293
|
-
var
|
|
14294
|
-
var
|
|
14295
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8,
|
|
14322
|
+
var ingredient_r46 = ctx.$implicit;
|
|
14323
|
+
var i_r47 = ctx.index;
|
|
14324
|
+
var ctx_r45 = i0.ɵɵnextContext(4);
|
|
14325
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$3, ctx_r45.ingredientsChecked[i_r47]));
|
|
14296
14326
|
i0.ɵɵadvance(2);
|
|
14297
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3,
|
|
14327
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, ingredient_r46.name), "");
|
|
14298
14328
|
i0.ɵɵadvance(3);
|
|
14299
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(6, 5,
|
|
14329
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(6, 5, ingredient_r46.qty, ingredient_r46.unit), "");
|
|
14300
14330
|
}
|
|
14301
14331
|
}
|
|
14302
|
-
function
|
|
14332
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template(rf, ctx) {
|
|
14303
14333
|
if (rf & 1) {
|
|
14304
|
-
var
|
|
14334
|
+
var _r49_1 = i0.ɵɵgetCurrentView();
|
|
14305
14335
|
i0.ɵɵelementContainerStart(0);
|
|
14306
|
-
i0.ɵɵelementStart(1, "div",
|
|
14307
|
-
i0.ɵɵelementStart(2, "div",
|
|
14308
|
-
i0.ɵɵelementStart(3, "ng-miam-counter-input",
|
|
14309
|
-
i0.ɵɵlistener("counterChange", function
|
|
14336
|
+
i0.ɵɵelementStart(1, "div", 56);
|
|
14337
|
+
i0.ɵɵelementStart(2, "div", 57);
|
|
14338
|
+
i0.ɵɵelementStart(3, "ng-miam-counter-input", 58);
|
|
14339
|
+
i0.ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template_ng_miam_counter_input_counterChange_3_listener($event) { i0.ɵɵrestoreView(_r49_1); var ctx_r48 = i0.ɵɵnextContext(3); return ctx_r48.updateGuests($event); });
|
|
14310
14340
|
i0.ɵɵelementEnd();
|
|
14311
|
-
i0.ɵɵelementStart(4, "span",
|
|
14341
|
+
i0.ɵɵelementStart(4, "span", 59);
|
|
14312
14342
|
i0.ɵɵtext(5);
|
|
14313
14343
|
i0.ɵɵelementEnd();
|
|
14314
14344
|
i0.ɵɵelementEnd();
|
|
14315
|
-
i0.ɵɵelementStart(6, "span",
|
|
14345
|
+
i0.ɵɵelementStart(6, "span", 60);
|
|
14316
14346
|
i0.ɵɵtext(7, "Quantit\u00E9");
|
|
14317
14347
|
i0.ɵɵelementEnd();
|
|
14318
14348
|
i0.ɵɵelementEnd();
|
|
14319
|
-
i0.ɵɵelementStart(8, "div",
|
|
14320
|
-
i0.ɵɵtemplate(9,
|
|
14349
|
+
i0.ɵɵelementStart(8, "div", 61);
|
|
14350
|
+
i0.ɵɵtemplate(9, RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_div_9_Template, 7, 10, "div", 62);
|
|
14321
14351
|
i0.ɵɵelementEnd();
|
|
14322
14352
|
i0.ɵɵelementContainerEnd();
|
|
14323
14353
|
}
|
|
14324
14354
|
if (rf & 2) {
|
|
14325
|
-
var
|
|
14355
|
+
var ctx_r42 = i0.ɵɵnextContext(3);
|
|
14326
14356
|
i0.ɵɵadvance(3);
|
|
14327
|
-
i0.ɵɵproperty("counter",
|
|
14357
|
+
i0.ɵɵproperty("counter", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedGuests);
|
|
14328
14358
|
i0.ɵɵadvance(2);
|
|
14329
|
-
i0.ɵɵtextInterpolate1("Pour ",
|
|
14359
|
+
i0.ɵɵtextInterpolate1("Pour ", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedGuests, " personnes");
|
|
14330
14360
|
i0.ɵɵadvance(4);
|
|
14331
|
-
i0.ɵɵproperty("ngForOf",
|
|
14361
|
+
i0.ɵɵproperty("ngForOf", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedIngredients);
|
|
14332
14362
|
}
|
|
14333
14363
|
}
|
|
14334
|
-
function
|
|
14364
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_ng_miam_icon_6_Template(rf, ctx) {
|
|
14335
14365
|
if (rf & 1) {
|
|
14336
|
-
i0.ɵɵelement(0, "ng-miam-icon",
|
|
14366
|
+
i0.ɵɵelement(0, "ng-miam-icon", 73);
|
|
14337
14367
|
}
|
|
14338
14368
|
if (rf & 2) {
|
|
14339
|
-
var
|
|
14340
|
-
i0.ɵɵproperty("height", 16)("width", 16)("iconName",
|
|
14369
|
+
var ctx_r53 = i0.ɵɵnextContext(5);
|
|
14370
|
+
i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r53.icon.CheckCircleFill);
|
|
14341
14371
|
}
|
|
14342
14372
|
}
|
|
14343
|
-
function
|
|
14373
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template(rf, ctx) {
|
|
14344
14374
|
if (rf & 1) {
|
|
14345
|
-
var
|
|
14346
|
-
i0.ɵɵelementStart(0, "div",
|
|
14347
|
-
i0.ɵɵlistener("click", function
|
|
14348
|
-
i0.ɵɵelementStart(1, "div",
|
|
14375
|
+
var _r55_1 = i0.ɵɵgetCurrentView();
|
|
14376
|
+
i0.ɵɵelementStart(0, "div", 69);
|
|
14377
|
+
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r55_1); var i_r52 = ctx.index; var ctx_r54 = i0.ɵɵnextContext(4); return ctx_r54.changeActiveStep(i_r52); });
|
|
14378
|
+
i0.ɵɵelementStart(1, "div", 70);
|
|
14349
14379
|
i0.ɵɵelementStart(2, "strong");
|
|
14350
14380
|
i0.ɵɵtext(3);
|
|
14351
14381
|
i0.ɵɵelementEnd();
|
|
14352
14382
|
i0.ɵɵelementEnd();
|
|
14353
|
-
i0.ɵɵelementStart(4, "div",
|
|
14383
|
+
i0.ɵɵelementStart(4, "div", 71);
|
|
14354
14384
|
i0.ɵɵtext(5);
|
|
14355
14385
|
i0.ɵɵelementEnd();
|
|
14356
|
-
i0.ɵɵtemplate(6,
|
|
14386
|
+
i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 72);
|
|
14357
14387
|
i0.ɵɵelementEnd();
|
|
14358
14388
|
}
|
|
14359
14389
|
if (rf & 2) {
|
|
14360
|
-
var
|
|
14361
|
-
var
|
|
14362
|
-
var
|
|
14363
|
-
i0.ɵɵclassProp("active",
|
|
14390
|
+
var step_r51 = ctx.$implicit;
|
|
14391
|
+
var i_r52 = ctx.index;
|
|
14392
|
+
var ctx_r50 = i0.ɵɵnextContext(4);
|
|
14393
|
+
i0.ɵɵclassProp("active", i_r52 === ctx_r50.activeStep)("miam-recipe-details__panel__done", i_r52 < ctx_r50.activeStep);
|
|
14364
14394
|
i0.ɵɵadvance(3);
|
|
14365
|
-
i0.ɵɵtextInterpolate(
|
|
14395
|
+
i0.ɵɵtextInterpolate(i_r52 + 1);
|
|
14366
14396
|
i0.ɵɵadvance(2);
|
|
14367
|
-
i0.ɵɵtextInterpolate(
|
|
14397
|
+
i0.ɵɵtextInterpolate(step_r51 == null ? null : step_r51.attributes == null ? null : step_r51.attributes.description);
|
|
14368
14398
|
i0.ɵɵadvance(1);
|
|
14369
|
-
i0.ɵɵproperty("ngIf",
|
|
14399
|
+
i0.ɵɵproperty("ngIf", i_r52 <= ctx_r50.activeStep);
|
|
14370
14400
|
}
|
|
14371
14401
|
}
|
|
14372
|
-
function
|
|
14402
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_Template(rf, ctx) {
|
|
14373
14403
|
if (rf & 1) {
|
|
14374
|
-
i0.ɵɵelementStart(0, "div",
|
|
14375
|
-
i0.ɵɵtemplate(1,
|
|
14404
|
+
i0.ɵɵelementStart(0, "div", 64);
|
|
14405
|
+
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template, 7, 7, "div", 65);
|
|
14376
14406
|
i0.ɵɵelementEnd();
|
|
14377
14407
|
}
|
|
14378
14408
|
if (rf & 2) {
|
|
14379
|
-
var
|
|
14409
|
+
var ctx_r44 = i0.ɵɵnextContext(3);
|
|
14380
14410
|
i0.ɵɵadvance(1);
|
|
14381
|
-
i0.ɵɵproperty("ngForOf",
|
|
14411
|
+
i0.ɵɵproperty("ngForOf", ctx_r44.steps);
|
|
14382
14412
|
}
|
|
14383
14413
|
}
|
|
14384
|
-
var
|
|
14385
|
-
function
|
|
14414
|
+
var _c3$2 = function (a0) { return { "active": a0 }; };
|
|
14415
|
+
function RecipeDetailsComponent_div_0_ng_template_56_Template(rf, ctx) {
|
|
14386
14416
|
if (rf & 1) {
|
|
14387
|
-
var
|
|
14388
|
-
i0.ɵɵelementStart(0, "div",
|
|
14389
|
-
i0.ɵɵelementStart(2, "div",
|
|
14390
|
-
i0.ɵɵelementStart(3, "button",
|
|
14391
|
-
i0.ɵɵlistener("click", function
|
|
14417
|
+
var _r57_1 = i0.ɵɵgetCurrentView();
|
|
14418
|
+
i0.ɵɵelementStart(0, "div", 74, 75);
|
|
14419
|
+
i0.ɵɵelementStart(2, "div", 76);
|
|
14420
|
+
i0.ɵɵelementStart(3, "button", 77);
|
|
14421
|
+
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r57_1); var _r41 = i0.ɵɵreference(1); var ctx_r56 = i0.ɵɵnextContext(2); ctx_r56.toggleShowIngredient(true); return _r41.scrollIntoView(); });
|
|
14392
14422
|
i0.ɵɵtext(4, "Ingredients");
|
|
14393
14423
|
i0.ɵɵelementEnd();
|
|
14394
|
-
i0.ɵɵelementStart(5, "button",
|
|
14395
|
-
i0.ɵɵlistener("click", function
|
|
14424
|
+
i0.ɵɵelementStart(5, "button", 77);
|
|
14425
|
+
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r57_1); var _r41 = i0.ɵɵreference(1); var ctx_r58 = i0.ɵɵnextContext(2); ctx_r58.toggleShowIngredient(false); return _r41.scrollIntoView(); });
|
|
14396
14426
|
i0.ɵɵtext(6, "Pr\u00E9paration");
|
|
14397
14427
|
i0.ɵɵelementEnd();
|
|
14398
14428
|
i0.ɵɵelementEnd();
|
|
14399
|
-
i0.ɵɵtemplate(7,
|
|
14400
|
-
i0.ɵɵtemplate(8,
|
|
14429
|
+
i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template, 10, 3, "ng-container", 78);
|
|
14430
|
+
i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_Template, 2, 1, "ng-template", null, 79, i0.ɵɵtemplateRefExtractor);
|
|
14401
14431
|
i0.ɵɵelementEnd();
|
|
14402
14432
|
}
|
|
14403
14433
|
if (rf & 2) {
|
|
14404
|
-
var
|
|
14405
|
-
var
|
|
14434
|
+
var _r43 = i0.ɵɵreference(9);
|
|
14435
|
+
var ctx_r22 = i0.ɵɵnextContext(2);
|
|
14406
14436
|
i0.ɵɵadvance(3);
|
|
14407
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4,
|
|
14437
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c3$2, ctx_r22.showIngredient));
|
|
14408
14438
|
i0.ɵɵadvance(2);
|
|
14409
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6,
|
|
14439
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c3$2, !ctx_r22.showIngredient));
|
|
14410
14440
|
i0.ɵɵadvance(2);
|
|
14411
|
-
i0.ɵɵproperty("ngIf",
|
|
14441
|
+
i0.ɵɵproperty("ngIf", ctx_r22.showIngredient)("ngIfElse", _r43);
|
|
14412
14442
|
}
|
|
14413
14443
|
}
|
|
14414
|
-
function
|
|
14444
|
+
function RecipeDetailsComponent_div_0_button_62_Template(rf, ctx) {
|
|
14415
14445
|
if (rf & 1) {
|
|
14416
|
-
var
|
|
14417
|
-
i0.ɵɵelementStart(0, "button",
|
|
14418
|
-
i0.ɵɵlistener("click", function
|
|
14446
|
+
var _r60_1 = i0.ɵɵgetCurrentView();
|
|
14447
|
+
i0.ɵɵelementStart(0, "button", 50);
|
|
14448
|
+
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_62_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r60_1); var ctx_r59 = i0.ɵɵnextContext(2); return ctx_r59.addRecipe(); });
|
|
14419
14449
|
i0.ɵɵelementStart(1, "span");
|
|
14420
14450
|
i0.ɵɵtext(2);
|
|
14421
14451
|
i0.ɵɵpipe(3, "async");
|
|
14422
14452
|
i0.ɵɵelementEnd();
|
|
14423
|
-
i0.ɵɵelement(4, "ng-miam-icon",
|
|
14453
|
+
i0.ɵɵelement(4, "ng-miam-icon", 51);
|
|
14424
14454
|
i0.ɵɵpipe(5, "async");
|
|
14425
14455
|
i0.ɵɵelementEnd();
|
|
14426
14456
|
}
|
|
14427
14457
|
if (rf & 2) {
|
|
14428
|
-
var
|
|
14458
|
+
var ctx_r23 = i0.ɵɵnextContext(2);
|
|
14429
14459
|
var tmp_0_0 = null;
|
|
14430
14460
|
var tmp_3_0 = null;
|
|
14431
14461
|
i0.ɵɵadvance(2);
|
|
14432
|
-
i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4,
|
|
14462
|
+
i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4, ctx_r23.groceriesListsService.list$)) == null ? null : tmp_0_0.hasRecipe(ctx_r23.recipe == null ? null : ctx_r23.recipe.id)) ? "Voir le d\u00E9tail" : "S\u00E9lectionner ce repas", " ");
|
|
14433
14463
|
i0.ɵɵadvance(2);
|
|
14434
|
-
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6,
|
|
14464
|
+
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6, ctx_r23.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r23.recipe == null ? null : ctx_r23.recipe.id)) ? ctx_r23.icon.CheckList : ctx_r23.icon.Cart);
|
|
14435
14465
|
}
|
|
14436
14466
|
}
|
|
14437
14467
|
function RecipeDetailsComponent_div_0_Template(rf, ctx) {
|
|
14438
14468
|
if (rf & 1) {
|
|
14439
|
-
var
|
|
14440
|
-
i0.ɵɵelementStart(0, "div", 2);
|
|
14441
|
-
i0.ɵɵlistener("scroll", function RecipeDetailsComponent_div_0_Template_div_scroll_0_listener($event) { i0.ɵɵrestoreView(_r59_1); var ctx_r58 = i0.ɵɵnextContext(); return ctx_r58.onScroll($event); });
|
|
14442
|
-
i0.ɵɵelementStart(1, "div", 3);
|
|
14469
|
+
var _r62_1 = i0.ɵɵgetCurrentView();
|
|
14470
|
+
i0.ɵɵelementStart(0, "div", 2, 3);
|
|
14443
14471
|
i0.ɵɵelementStart(2, "div", 4);
|
|
14444
|
-
i0.ɵɵelementStart(3, "div", 5
|
|
14445
|
-
i0.ɵɵ
|
|
14446
|
-
i0.ɵɵtemplate(6,
|
|
14447
|
-
i0.ɵɵtemplate(7,
|
|
14448
|
-
i0.ɵɵtemplate(8,
|
|
14449
|
-
i0.ɵɵ
|
|
14450
|
-
i0.ɵɵ
|
|
14451
|
-
i0.ɵɵ
|
|
14452
|
-
i0.ɵɵ
|
|
14453
|
-
i0.ɵɵ
|
|
14454
|
-
i0.ɵɵelement(14, "ng-miam-icon",
|
|
14472
|
+
i0.ɵɵelementStart(3, "div", 5);
|
|
14473
|
+
i0.ɵɵelementStart(4, "div", 6, 7);
|
|
14474
|
+
i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_img_6_Template, 1, 1, "img", 8);
|
|
14475
|
+
i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_7_Template, 1, 0, "div", 9);
|
|
14476
|
+
i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_youtube_player_8_Template, 1, 3, "youtube-player", 10);
|
|
14477
|
+
i0.ɵɵtemplate(9, RecipeDetailsComponent_div_0_div_9_Template, 2, 0, "div", 11);
|
|
14478
|
+
i0.ɵɵpipe(10, "async");
|
|
14479
|
+
i0.ɵɵelementStart(11, "div", 12);
|
|
14480
|
+
i0.ɵɵtemplate(12, RecipeDetailsComponent_div_0_ng_miam_like_button_12_Template, 1, 3, "ng-miam-like-button", 13);
|
|
14481
|
+
i0.ɵɵpipe(13, "async");
|
|
14482
|
+
i0.ɵɵelement(14, "ng-miam-icon", 14);
|
|
14483
|
+
i0.ɵɵelement(15, "ng-miam-icon", 14);
|
|
14455
14484
|
i0.ɵɵelementEnd();
|
|
14456
|
-
i0.ɵɵtemplate(
|
|
14485
|
+
i0.ɵɵtemplate(16, RecipeDetailsComponent_div_0_img_16_Template, 1, 1, "img", 15);
|
|
14457
14486
|
i0.ɵɵelementEnd();
|
|
14458
|
-
i0.ɵɵelementStart(16, "div", 15);
|
|
14459
14487
|
i0.ɵɵelementStart(17, "div", 16);
|
|
14460
|
-
i0.ɵɵ
|
|
14461
|
-
i0.ɵɵ
|
|
14462
|
-
i0.ɵɵ
|
|
14488
|
+
i0.ɵɵelementStart(18, "div", 17);
|
|
14489
|
+
i0.ɵɵelement(19, "ng-miam-icon", 18);
|
|
14490
|
+
i0.ɵɵelementStart(20, "span");
|
|
14491
|
+
i0.ɵɵtext(21);
|
|
14463
14492
|
i0.ɵɵelementEnd();
|
|
14464
14493
|
i0.ɵɵelementEnd();
|
|
14465
|
-
i0.ɵɵelementStart(
|
|
14466
|
-
i0.ɵɵtemplate(
|
|
14467
|
-
i0.ɵɵtemplate(
|
|
14468
|
-
i0.ɵɵtemplate(
|
|
14494
|
+
i0.ɵɵelementStart(22, "div", 19);
|
|
14495
|
+
i0.ɵɵtemplate(23, RecipeDetailsComponent_div_0_div_23_Template, 7, 4, "div", 20);
|
|
14496
|
+
i0.ɵɵtemplate(24, RecipeDetailsComponent_div_0_div_24_Template, 7, 4, "div", 20);
|
|
14497
|
+
i0.ɵɵtemplate(25, RecipeDetailsComponent_div_0_div_25_Template, 7, 4, "div", 20);
|
|
14469
14498
|
i0.ɵɵelementEnd();
|
|
14470
14499
|
i0.ɵɵelementEnd();
|
|
14471
14500
|
i0.ɵɵelementEnd();
|
|
14472
|
-
i0.ɵɵelementStart(25, "div", 20);
|
|
14473
14501
|
i0.ɵɵelementStart(26, "div", 21);
|
|
14474
|
-
i0.ɵɵelementStart(27, "
|
|
14475
|
-
i0.ɵɵ
|
|
14476
|
-
i0.ɵɵ
|
|
14477
|
-
i0.ɵɵ
|
|
14478
|
-
i0.ɵɵ
|
|
14479
|
-
i0.ɵɵ
|
|
14480
|
-
i0.ɵɵ
|
|
14481
|
-
i0.ɵɵ
|
|
14482
|
-
i0.ɵɵ
|
|
14483
|
-
i0.ɵɵ
|
|
14484
|
-
i0.ɵɵtemplate(35, RecipeDetailsComponent_div_0_ng_container_35_Template, 2, 3, "ng-container",
|
|
14485
|
-
i0.ɵɵtemplate(36, RecipeDetailsComponent_div_0_ng_container_36_Template, 2, 3, "ng-container",
|
|
14486
|
-
i0.ɵɵtemplate(37, RecipeDetailsComponent_div_0_ng_container_37_Template,
|
|
14502
|
+
i0.ɵɵelementStart(27, "div", 22);
|
|
14503
|
+
i0.ɵɵelementStart(28, "span", 23);
|
|
14504
|
+
i0.ɵɵtext(29);
|
|
14505
|
+
i0.ɵɵpipe(30, "titlecase");
|
|
14506
|
+
i0.ɵɵelementEnd();
|
|
14507
|
+
i0.ɵɵelementStart(31, "span", 24);
|
|
14508
|
+
i0.ɵɵtext(32);
|
|
14509
|
+
i0.ɵɵelementEnd();
|
|
14510
|
+
i0.ɵɵelementStart(33, "div", 25);
|
|
14511
|
+
i0.ɵɵelementContainerStart(34, 26);
|
|
14512
|
+
i0.ɵɵtemplate(35, RecipeDetailsComponent_div_0_ng_container_35_Template, 2, 3, "ng-container", 27);
|
|
14513
|
+
i0.ɵɵtemplate(36, RecipeDetailsComponent_div_0_ng_container_36_Template, 2, 3, "ng-container", 27);
|
|
14514
|
+
i0.ɵɵtemplate(37, RecipeDetailsComponent_div_0_ng_container_37_Template, 2, 3, "ng-container", 27);
|
|
14515
|
+
i0.ɵɵtemplate(38, RecipeDetailsComponent_div_0_ng_container_38_Template, 1, 0, "ng-container", 28);
|
|
14487
14516
|
i0.ɵɵelementContainerEnd();
|
|
14488
|
-
i0.ɵɵelementStart(
|
|
14489
|
-
i0.ɵɵtext(
|
|
14490
|
-
i0.ɵɵpipe(
|
|
14517
|
+
i0.ɵɵelementStart(39, "span");
|
|
14518
|
+
i0.ɵɵtext(40);
|
|
14519
|
+
i0.ɵɵpipe(41, "titlecase");
|
|
14491
14520
|
i0.ɵɵelementEnd();
|
|
14492
14521
|
i0.ɵɵelementEnd();
|
|
14493
|
-
i0.ɵɵelementStart(
|
|
14494
|
-
i0.ɵɵtext(
|
|
14495
|
-
i0.ɵɵelementStart(
|
|
14496
|
-
i0.ɵɵlistener("click", function
|
|
14497
|
-
i0.ɵɵelement(
|
|
14498
|
-
i0.ɵɵelementStart(
|
|
14499
|
-
i0.ɵɵtext(
|
|
14522
|
+
i0.ɵɵelementStart(42, "div", 29);
|
|
14523
|
+
i0.ɵɵtext(43);
|
|
14524
|
+
i0.ɵɵelementStart(44, "div", 30);
|
|
14525
|
+
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_Template_div_click_44_listener() { i0.ɵɵrestoreView(_r62_1); var ctx_r61 = i0.ɵɵnextContext(); return ctx_r61.print(); });
|
|
14526
|
+
i0.ɵɵelement(45, "ng-miam-icon", 14);
|
|
14527
|
+
i0.ɵɵelementStart(46, "span");
|
|
14528
|
+
i0.ɵɵtext(47, " Imprimer la recette ");
|
|
14500
14529
|
i0.ɵɵelementEnd();
|
|
14501
14530
|
i0.ɵɵelementEnd();
|
|
14502
14531
|
i0.ɵɵelementEnd();
|
|
14503
14532
|
i0.ɵɵelementEnd();
|
|
14504
|
-
i0.ɵɵelementStart(47, "div", 30);
|
|
14505
14533
|
i0.ɵɵelementStart(48, "div", 31);
|
|
14506
|
-
i0.ɵɵ
|
|
14534
|
+
i0.ɵɵelementStart(49, "div", 32);
|
|
14535
|
+
i0.ɵɵelement(50, "ng-miam-recipe-pricing", 33);
|
|
14507
14536
|
i0.ɵɵelementEnd();
|
|
14508
|
-
i0.ɵɵtemplate(
|
|
14537
|
+
i0.ɵɵtemplate(51, RecipeDetailsComponent_div_0_button_51_Template, 6, 8, "button", 34);
|
|
14509
14538
|
i0.ɵɵelementEnd();
|
|
14510
14539
|
i0.ɵɵelementEnd();
|
|
14511
14540
|
i0.ɵɵelementEnd();
|
|
14512
|
-
i0.ɵɵelement(
|
|
14513
|
-
i0.ɵɵelementStart(
|
|
14514
|
-
i0.ɵɵtemplate(
|
|
14541
|
+
i0.ɵɵelement(52, "div", 35);
|
|
14542
|
+
i0.ɵɵelementStart(53, "div");
|
|
14543
|
+
i0.ɵɵtemplate(54, RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template, 1, 1, "ng-miam-addon-link", 36);
|
|
14515
14544
|
i0.ɵɵelementEnd();
|
|
14516
|
-
i0.ɵɵtemplate(
|
|
14517
|
-
i0.ɵɵtemplate(
|
|
14518
|
-
i0.ɵɵelementStart(
|
|
14519
|
-
i0.ɵɵelementStart(58, "div", 30);
|
|
14545
|
+
i0.ɵɵtemplate(55, RecipeDetailsComponent_div_0_div_55_Template, 18, 4, "div", 37);
|
|
14546
|
+
i0.ɵɵtemplate(56, RecipeDetailsComponent_div_0_ng_template_56_Template, 10, 8, "ng-template", null, 38, i0.ɵɵtemplateRefExtractor);
|
|
14547
|
+
i0.ɵɵelementStart(58, "div", 39);
|
|
14520
14548
|
i0.ɵɵelementStart(59, "div", 31);
|
|
14521
|
-
i0.ɵɵ
|
|
14549
|
+
i0.ɵɵelementStart(60, "div", 32);
|
|
14550
|
+
i0.ɵɵelement(61, "ng-miam-recipe-pricing", 33);
|
|
14522
14551
|
i0.ɵɵelementEnd();
|
|
14523
|
-
i0.ɵɵtemplate(
|
|
14552
|
+
i0.ɵɵtemplate(62, RecipeDetailsComponent_div_0_button_62_Template, 6, 8, "button", 34);
|
|
14524
14553
|
i0.ɵɵelementEnd();
|
|
14525
14554
|
i0.ɵɵelementEnd();
|
|
14526
14555
|
i0.ɵɵelementEnd();
|
|
14527
14556
|
}
|
|
14528
14557
|
if (rf & 2) {
|
|
14529
|
-
var
|
|
14558
|
+
var _r21 = i0.ɵɵreference(57);
|
|
14530
14559
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
14531
14560
|
var tmp_3_0 = null;
|
|
14532
|
-
i0.ɵɵadvance(
|
|
14561
|
+
i0.ɵɵadvance(6);
|
|
14533
14562
|
i0.ɵɵproperty("ngIf", !ctx_r0.showVideo);
|
|
14534
14563
|
i0.ɵɵadvance(1);
|
|
14535
14564
|
i0.ɵɵproperty("ngIf", !ctx_r0.showVideo);
|
|
14536
14565
|
i0.ɵɵadvance(1);
|
|
14537
14566
|
i0.ɵɵproperty("ngIf", ctx_r0.showVideo && ctx_r0.playerWidth);
|
|
14538
14567
|
i0.ɵɵadvance(1);
|
|
14539
|
-
i0.ɵɵproperty("ngIf", (tmp_3_0 = i0.ɵɵpipeBind1(
|
|
14568
|
+
i0.ɵɵproperty("ngIf", (tmp_3_0 = i0.ɵɵpipeBind1(10, 39, ctx_r0.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r0.recipe == null ? null : ctx_r0.recipe.id));
|
|
14540
14569
|
i0.ɵɵadvance(3);
|
|
14541
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
14570
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 41, ctx_r0.userService.isLogged$));
|
|
14542
14571
|
i0.ɵɵadvance(2);
|
|
14543
14572
|
i0.ɵɵproperty("width", 26)("height", 26)("iconName", ctx_r0.icon.Calendar);
|
|
14544
14573
|
i0.ɵɵadvance(1);
|
|
@@ -14556,7 +14585,7 @@
|
|
|
14556
14585
|
i0.ɵɵadvance(1);
|
|
14557
14586
|
i0.ɵɵproperty("ngIf", (ctx_r0.recipe == null ? null : ctx_r0.recipe.restingTime) !== "-");
|
|
14558
14587
|
i0.ɵɵadvance(4);
|
|
14559
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
14588
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(30, 43, ctx_r0.recipe == null ? null : ctx_r0.recipe.recipeType == null ? null : ctx_r0.recipe.recipeType.attributes == null ? null : ctx_r0.recipe.recipeType.attributes.name));
|
|
14560
14589
|
i0.ɵɵadvance(3);
|
|
14561
14590
|
i0.ɵɵtextInterpolate(ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["title"]);
|
|
14562
14591
|
i0.ɵɵadvance(2);
|
|
@@ -14568,7 +14597,7 @@
|
|
|
14568
14597
|
i0.ɵɵadvance(1);
|
|
14569
14598
|
i0.ɵɵproperty("ngSwitchCase", "difficile");
|
|
14570
14599
|
i0.ɵɵadvance(3);
|
|
14571
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
14600
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(41, 45, ctx_r0.recipe == null ? null : ctx_r0.recipe.difficultyLabel));
|
|
14572
14601
|
i0.ɵɵadvance(3);
|
|
14573
14602
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["description"], " ");
|
|
14574
14603
|
i0.ɵɵadvance(2);
|
|
@@ -14580,7 +14609,7 @@
|
|
|
14580
14609
|
i0.ɵɵadvance(3);
|
|
14581
14610
|
i0.ɵɵproperty("ngIf", (ctx_r0.recipe == null ? null : ctx_r0.recipe.sponsors == null ? null : ctx_r0.recipe.sponsors.length) > 0 || ctx_r0.recipe.informationalSentence);
|
|
14582
14611
|
i0.ɵɵadvance(1);
|
|
14583
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.isMobile)("ngIfElse",
|
|
14612
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.isMobile)("ngIfElse", _r21);
|
|
14584
14613
|
i0.ɵɵadvance(6);
|
|
14585
14614
|
i0.ɵɵproperty("recipe", ctx_r0.recipe)("serves", ctx_r0.recipe == null ? null : ctx_r0.recipe.modifiedGuests);
|
|
14586
14615
|
i0.ɵɵadvance(1);
|
|
@@ -14589,9 +14618,9 @@
|
|
|
14589
14618
|
}
|
|
14590
14619
|
function RecipeDetailsComponent_ng_template_1_Template(rf, ctx) {
|
|
14591
14620
|
if (rf & 1) {
|
|
14592
|
-
var
|
|
14593
|
-
i0.ɵɵelementStart(0, "ng-miam-recipe-addon",
|
|
14594
|
-
i0.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_template_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0.ɵɵrestoreView(
|
|
14621
|
+
var _r64_1 = i0.ɵɵgetCurrentView();
|
|
14622
|
+
i0.ɵɵelementStart(0, "ng-miam-recipe-addon", 80);
|
|
14623
|
+
i0.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_template_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0.ɵɵrestoreView(_r64_1); var ctx_r63 = i0.ɵɵnextContext(); return ctx_r63.toggleAddon(); });
|
|
14595
14624
|
i0.ɵɵelementEnd();
|
|
14596
14625
|
}
|
|
14597
14626
|
if (rf & 2) {
|
|
@@ -14608,8 +14637,8 @@
|
|
|
14608
14637
|
this.posService = posService;
|
|
14609
14638
|
this.recipeEventsService = recipeEventsService;
|
|
14610
14639
|
this.contextService = contextService;
|
|
14611
|
-
this.forceIngredientsStepstoggle = false;
|
|
14612
14640
|
this.previewAllowed = true;
|
|
14641
|
+
this.ingredientsPictures = false;
|
|
14613
14642
|
this.recipeAdded = new i0.EventEmitter();
|
|
14614
14643
|
this.recipeChanged = new i0.EventEmitter();
|
|
14615
14644
|
this.recipeError = new i0.EventEmitter();
|
|
@@ -14622,19 +14651,19 @@
|
|
|
14622
14651
|
this.ingredientsChecked = {};
|
|
14623
14652
|
this.showIngredient = true;
|
|
14624
14653
|
this.closeIconhidden = new rxjs.BehaviorSubject(false);
|
|
14654
|
+
this.scrollListenerInitialised = false;
|
|
14625
14655
|
this.subscriptions = [];
|
|
14626
14656
|
this.isMobile = this.mediaMatcher.matchMedia('(max-width: 1023px)').matches;
|
|
14627
14657
|
}
|
|
14628
|
-
RecipeDetailsComponent.prototype.onScroll = function ($event) {
|
|
14629
|
-
if ($event.srcElement.scrollTop > 300 !== this.closeIconhidden.value) {
|
|
14630
|
-
this.closeIconhidden.next($event.srcElement.scrollTop > 300);
|
|
14631
|
-
}
|
|
14632
|
-
};
|
|
14633
14658
|
RecipeDetailsComponent.prototype.ngOnChanges = function () {
|
|
14634
14659
|
var _a;
|
|
14660
|
+
// if forceIngredientsStepstoggle, use isMobile to toggle ingredients & steps in mobile mode, else
|
|
14661
|
+
// Use the value of forceIngredientsStepstoggle to force it to mobile (true) or desktop (false)
|
|
14662
|
+
if (this.forceIngredientsStepstoggle !== undefined) {
|
|
14663
|
+
this.isMobile = this.forceIngredientsStepstoggle;
|
|
14664
|
+
}
|
|
14635
14665
|
this.showVideo = false; // force reload video player
|
|
14636
14666
|
this.cdr.detectChanges();
|
|
14637
|
-
this.isMobile = this.forceIngredientsStepstoggle ? true : this.isMobile;
|
|
14638
14667
|
this.showVideo = this.contextService.videoRecipesEnabled && ((_a = this.recipe) === null || _a === void 0 ? void 0 : _a.videoId);
|
|
14639
14668
|
if (this.recipe) {
|
|
14640
14669
|
this.steps = this.recipe.steps;
|
|
@@ -14646,6 +14675,28 @@
|
|
|
14646
14675
|
var _a, _b;
|
|
14647
14676
|
this.playerWidth = Math.min(640, (_b = (_a = this.topContainerImg) === null || _a === void 0 ? void 0 : _a.nativeElement) === null || _b === void 0 ? void 0 : _b.offsetWidth);
|
|
14648
14677
|
this.playerHeight = this.playerWidth * 390 / 640;
|
|
14678
|
+
if (!this.scrollListenerInitialised) {
|
|
14679
|
+
this.initScrollListener();
|
|
14680
|
+
}
|
|
14681
|
+
};
|
|
14682
|
+
/**
|
|
14683
|
+
* Init the listener on scroll so the modal can hide the close icon
|
|
14684
|
+
*/
|
|
14685
|
+
RecipeDetailsComponent.prototype.initScrollListener = function () {
|
|
14686
|
+
var _this = this;
|
|
14687
|
+
if (this.mainContainer) {
|
|
14688
|
+
var intersectionObserver = new IntersectionObserver(function (_c) {
|
|
14689
|
+
var _d = __read(_c, 1), entry = _d[0];
|
|
14690
|
+
if (_this.mainContainer.nativeElement.scrollTop > 300 !== _this.closeIconhidden.value) {
|
|
14691
|
+
_this.closeIconhidden.next(_this.mainContainer.nativeElement.scrollTop > 300);
|
|
14692
|
+
}
|
|
14693
|
+
}, {
|
|
14694
|
+
threshold: [0, 0.33, 0.66, 1],
|
|
14695
|
+
root: this.mainContainer.nativeElement
|
|
14696
|
+
});
|
|
14697
|
+
intersectionObserver.observe(this.topContainerImg.nativeElement);
|
|
14698
|
+
this.scrollListenerInitialised = true;
|
|
14699
|
+
}
|
|
14649
14700
|
};
|
|
14650
14701
|
RecipeDetailsComponent.prototype.changeActiveStep = function (index) {
|
|
14651
14702
|
this.activeStep = index;
|
|
@@ -14701,24 +14752,25 @@
|
|
|
14701
14752
|
this.showIngredient = isShowed;
|
|
14702
14753
|
this.cdr.detectChanges();
|
|
14703
14754
|
};
|
|
14755
|
+
RecipeDetailsComponent.prototype.ingredientPicture = function (ingredient) {
|
|
14756
|
+
return ingredient.picture || this.contextService.defaultIngredientPicture;
|
|
14757
|
+
};
|
|
14704
14758
|
return RecipeDetailsComponent;
|
|
14705
14759
|
}());
|
|
14706
14760
|
RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i1$2.MediaMatcher), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(ContextService)); };
|
|
14707
14761
|
RecipeDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsComponent, selectors: [["ng-miam-recipe-details"]], viewQuery: function RecipeDetailsComponent_Query(rf, ctx) {
|
|
14708
14762
|
if (rf & 1) {
|
|
14709
14763
|
i0.ɵɵviewQuery(_c0$r, true);
|
|
14764
|
+
i0.ɵɵviewQuery(_c1$b, true);
|
|
14710
14765
|
}
|
|
14711
14766
|
if (rf & 2) {
|
|
14712
14767
|
var _t;
|
|
14713
14768
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.topContainerImg = _t.first);
|
|
14769
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mainContainer = _t.first);
|
|
14714
14770
|
}
|
|
14715
|
-
},
|
|
14716
|
-
if (rf & 1) {
|
|
14717
|
-
i0.ɵɵlistener("scroll", function RecipeDetailsComponent_scroll_HostBindingHandler($event) { return ctx.onScroll($event); });
|
|
14718
|
-
}
|
|
14719
|
-
}, inputs: { recipe: "recipe", forceIngredientsStepstoggle: "forceIngredientsStepstoggle", previewAllowed: "previewAllowed" }, outputs: { recipeAdded: "recipeAdded", recipeChanged: "recipeChanged", recipeError: "recipeError" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "miam-recipe-details", 3, "scroll", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details", 3, "scroll"], [1, "miam-recipe-details__top__container"], [1, "miam-recipe-details__top__left"], [1, "miam-recipe-details__top__container__img"], ["topContainerImg", ""], [3, "src", 4, "ngIf"], ["class", "miam-recipe-details__picture__gradient", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__tag", 4, "ngIf"], [1, "miam-recipe-details__img__actions"], ["class", "miam-recipe-details__actions__icon miam-noPadding", 3, "recipe", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", 3, "width", "height", "iconName"], ["class", "miam-recipe-details__picture__sponsor", 3, "src", 4, "ngIf"], [1, "miam-recipe-details__top__container__info"], [1, "miam-recipe-details__info__metrics", "miam-recipe-details__info__metrics__total"], ["primaryColor", "var(--m-color-primary)", 3, "width", "height", "iconName"], [1, "miam-recipe-details__info__times"], ["class", "miam-recipe-details__info__metrics", 4, "ngIf"], [1, "miam-recipe-details__top__container__infos"], [1, "miam-recipe-details__top__container__infos__top"], [1, "miam-recipe-details__infos__type"], [1, "miam-recipe-details__infos__title"], [1, "miam-recipe-details__infos__difficulty"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [1, "miam-recipe-details__infos__description"], [1, "miam-recipe-details__description__action", 3, "click"], [1, "miam-recipe-details__infos__price__wrapper"], [1, "miam-recipe-details__infos__price"], [3, "recipe", "serves"], ["class", "miam-recipe-details__infos__action m-button-fab-primary", 3, "click", 4, "ngIf"], [1, "miam-recipe-details__mid__container"], [3, "recipe", "showAddon", 4, "ngIf"], ["class", "miam-recipe-details__bottom__container", 4, "ngIf", "ngIfElse"], ["mobileContainer", ""], [1, "miam-recipe-details__bottom__container__action"], [3, "src"], [1, "miam-recipe-details__picture__gradient"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__tag"], [1, "miam-recipe-details__actions__icon", "miam-noPadding", 3, "recipe", "width", "height"], [1, "miam-recipe-details__picture__sponsor", 3, "src"], [1, "miam-recipe-details__info__metrics"], [1, "miam-recipe-details__metrics__row"], ["primaryColor", "var(--m-color-slate)", 3, "width", "height", "iconName"], [3, "width", "height", "iconName"], [1, "miam-recipe-details__infos__action", "m-button-fab-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [3, "recipe", "showAddon"], [1, "miam-recipe-details__bottom__container"], [1, "miam-recipe-details__bottom__container__ingredients"], [1, "miam-recipe-details__bottom__container__header"], [1, "miam-recipe-details__ingredients__row"], [1, "miam-recipe-details__ingredients__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-details__ingredients__counter__print"], [1, "miam-recipe-details__ingredients__row__qty"], [1, "miam-recipe-details__ingredients__list"], ["class", "miam-recipe-details__ingredients__row", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__bottom__container__steps"], [1, "miam-recipe-details__steps__list"], ["class", "miam-recipe-details__steps__list__panel", 3, "active", "miam-recipe-details__panel__done", "click", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__ingredients__row", 3, "ngClass"], [1, "miam-recipe-details__steps__list__panel", 3, "click"], [1, "miam-recipe-details__panel__idx"], [1, "miam-recipe-details__panel__text"], ["class", "miam-recipe-details__panel__checkIcon", "primaryColor", "var(--m-color-secondary)", 3, "height", "width", "iconName", 4, "ngIf"], ["primaryColor", "var(--m-color-secondary)", 1, "miam-recipe-details__panel__checkIcon", 3, "height", "width", "iconName"], [1, "miam-recipe-details__mobile__container"], ["mobileContainerTop", ""], [1, "miam-recipe-details__mobile__header"], [1, "m-button-secondary", 3, "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["stepsContainer", ""], [3, "recipe", "hideAddon"]], template: function RecipeDetailsComponent_Template(rf, ctx) {
|
|
14771
|
+
}, inputs: { recipe: "recipe", forceIngredientsStepstoggle: "forceIngredientsStepstoggle", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures" }, outputs: { recipeAdded: "recipeAdded", recipeChanged: "recipeChanged", recipeError: "recipeError" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "miam-recipe-details", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details"], ["mainContainer", ""], [1, "miam-recipe-details__top__container"], [1, "miam-recipe-details__top__left"], [1, "miam-recipe-details__top__container__img"], ["topContainerImg", ""], [3, "src", 4, "ngIf"], ["class", "miam-recipe-details__picture__gradient", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__tag", 4, "ngIf"], [1, "miam-recipe-details__img__actions"], ["class", "miam-recipe-details__actions__icon miam-noPadding", 3, "recipe", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", 3, "width", "height", "iconName"], ["class", "miam-recipe-details__picture__sponsor", 3, "src", 4, "ngIf"], [1, "miam-recipe-details__top__container__info"], [1, "miam-recipe-details__info__metrics", "miam-recipe-details__info__metrics__total"], ["primaryColor", "var(--m-color-primary)", 3, "width", "height", "iconName"], [1, "miam-recipe-details__info__times"], ["class", "miam-recipe-details__info__metrics", 4, "ngIf"], [1, "miam-recipe-details__top__container__infos"], [1, "miam-recipe-details__top__container__infos__top"], [1, "miam-recipe-details__infos__type"], [1, "miam-recipe-details__infos__title"], [1, "miam-recipe-details__infos__difficulty"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], [1, "miam-recipe-details__infos__description"], [1, "miam-recipe-details__description__action", 3, "click"], [1, "miam-recipe-details__infos__price__wrapper"], [1, "miam-recipe-details__infos__price"], [3, "recipe", "serves"], ["class", "miam-recipe-details__infos__action m-button-fab-primary", 3, "click", 4, "ngIf"], [1, "miam-recipe-details__mid__container"], [3, "recipe", "showAddon", 4, "ngIf"], ["class", "miam-recipe-details__bottom__container", 4, "ngIf", "ngIfElse"], ["mobileContainer", ""], [1, "miam-recipe-details__bottom__container__action"], [3, "src"], [1, "miam-recipe-details__picture__gradient"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__tag"], [1, "miam-recipe-details__actions__icon", "miam-noPadding", 3, "recipe", "width", "height"], [1, "miam-recipe-details__picture__sponsor", 3, "src"], [1, "miam-recipe-details__info__metrics"], [1, "miam-recipe-details__metrics__row"], ["primaryColor", "var(--m-color-slate)", 3, "width", "height", "iconName"], [3, "width", "height", "iconName"], [1, "miam-recipe-details__infos__action", "m-button-fab-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [3, "recipe", "showAddon"], [1, "miam-recipe-details__bottom__container"], [1, "miam-recipe-details__bottom__container__ingredients"], [1, "miam-recipe-details__bottom__container__header"], [1, "miam-recipe-details__ingredients__row"], [1, "miam-recipe-details__ingredients__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-details__ingredients__counter__print"], [1, "miam-recipe-details__ingredients__row__qty"], [1, "miam-recipe-details__ingredients__list"], ["class", "miam-recipe-details__ingredients__row", 3, "ngClass", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__bottom__container__steps"], [1, "miam-recipe-details__steps__list"], ["class", "miam-recipe-details__steps__list__panel", 3, "active", "miam-recipe-details__panel__done", "click", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details__ingredients__row", 3, "ngClass"], [4, "ngIf"], [1, "miam-recipe-details__ingredients__row__picture", 3, "src"], [1, "miam-recipe-details__steps__list__panel", 3, "click"], [1, "miam-recipe-details__panel__idx"], [1, "miam-recipe-details__panel__text"], ["class", "miam-recipe-details__panel__checkIcon", "primaryColor", "var(--m-color-secondary)", 3, "height", "width", "iconName", 4, "ngIf"], ["primaryColor", "var(--m-color-secondary)", 1, "miam-recipe-details__panel__checkIcon", 3, "height", "width", "iconName"], [1, "miam-recipe-details__mobile__container"], ["mobileContainerTop", ""], [1, "miam-recipe-details__mobile__header"], [1, "m-button-secondary", 3, "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["stepsContainer", ""], [3, "recipe", "hideAddon"]], template: function RecipeDetailsComponent_Template(rf, ctx) {
|
|
14720
14772
|
if (rf & 1) {
|
|
14721
|
-
i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template,
|
|
14773
|
+
i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 63, 47, "div", 0);
|
|
14722
14774
|
i0.ɵɵtemplate(1, RecipeDetailsComponent_ng_template_1_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
14723
14775
|
}
|
|
14724
14776
|
if (rf & 2) {
|
|
@@ -14742,6 +14794,8 @@
|
|
|
14742
14794
|
type: i0.Input
|
|
14743
14795
|
}], previewAllowed: [{
|
|
14744
14796
|
type: i0.Input
|
|
14797
|
+
}], ingredientsPictures: [{
|
|
14798
|
+
type: i0.Input
|
|
14745
14799
|
}], recipeAdded: [{
|
|
14746
14800
|
type: i0.Output
|
|
14747
14801
|
}], recipeChanged: [{
|
|
@@ -14751,9 +14805,9 @@
|
|
|
14751
14805
|
}], topContainerImg: [{
|
|
14752
14806
|
type: i0.ViewChild,
|
|
14753
14807
|
args: ['topContainerImg']
|
|
14754
|
-
}],
|
|
14755
|
-
type: i0.
|
|
14756
|
-
args: ['
|
|
14808
|
+
}], mainContainer: [{
|
|
14809
|
+
type: i0.ViewChild,
|
|
14810
|
+
args: ['mainContainer']
|
|
14757
14811
|
}] });
|
|
14758
14812
|
})();
|
|
14759
14813
|
|
|
@@ -14944,7 +14998,7 @@
|
|
|
14944
14998
|
}
|
|
14945
14999
|
var _c1$c = function (a0) { return { "height.px": a0 }; };
|
|
14946
15000
|
var _c2$4 = function (a0) { return { "miam-recipe-tags__container__toggle__hidden": a0 }; };
|
|
14947
|
-
var _c3$
|
|
15001
|
+
var _c3$3 = function (a0) { return { "opacity": a0 }; };
|
|
14948
15002
|
function RecipeTagsComponent_div_0_Template(rf, ctx) {
|
|
14949
15003
|
if (rf & 1) {
|
|
14950
15004
|
var _r9_1 = i0.ɵɵgetCurrentView();
|
|
@@ -14975,7 +15029,7 @@
|
|
|
14975
15029
|
i0.ɵɵadvance(2);
|
|
14976
15030
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.isListOpen ? " " : "+" + ctx_r0.wrappedItemsCount, "");
|
|
14977
15031
|
i0.ɵɵadvance(2);
|
|
14978
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(10, _c3$
|
|
15032
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(10, _c3$3, ctx_r0.isListOpen ? 1 : 0));
|
|
14979
15033
|
i0.ɵɵadvance(1);
|
|
14980
15034
|
i0.ɵɵproperty("iconName", ctx_r0.icon.ChevronDown);
|
|
14981
15035
|
}
|