ng-miam 3.4.0 → 3.4.4
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 +351 -296
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/counter-input/counter-input.component.js +4 -5
- 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/_services/toastr.service.js +4 -4
- package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +1 -1
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +322 -282
- package/fesm2015/ng-miam.js +342 -294
- 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/_services/toastr.service.d.ts +1 -1
- package/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.d.ts +1 -1
- 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
|
|
|
@@ -3120,7 +3129,7 @@
|
|
|
3120
3129
|
}
|
|
3121
3130
|
ToastrService.prototype.info = function (message, title, options) {
|
|
3122
3131
|
if (title === void 0) { title = null; }
|
|
3123
|
-
if (options === void 0) { options =
|
|
3132
|
+
if (options === void 0) { options = {}; }
|
|
3124
3133
|
window['toastr'].info(message, title, options);
|
|
3125
3134
|
};
|
|
3126
3135
|
ToastrService.prototype.injectJquery = function () {
|
|
@@ -3128,8 +3137,8 @@
|
|
|
3128
3137
|
return;
|
|
3129
3138
|
}
|
|
3130
3139
|
var script = document.createElement('script');
|
|
3131
|
-
script.src = 'https://code.jquery.com/jquery-
|
|
3132
|
-
script.integrity = 'sha256
|
|
3140
|
+
script.src = 'https://code.jquery.com/jquery-3.6.0.min.js';
|
|
3141
|
+
script.integrity = 'sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=';
|
|
3133
3142
|
script.crossOrigin = 'anonymous';
|
|
3134
3143
|
document.head.appendChild(script);
|
|
3135
3144
|
};
|
|
@@ -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: {
|
|
@@ -6056,7 +6069,7 @@
|
|
|
6056
6069
|
var _t;
|
|
6057
6070
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.counterInput = _t.first);
|
|
6058
6071
|
}
|
|
6059
|
-
}, inputs: { counter: "counter", minRange: "minRange", maxRange: "maxRange" }, outputs: { counterChange: "counterChange", selected: "selected" }, features: [i0.ɵɵNgOnChangesFeature], decls: 8, vars: 9, consts: [[1, "miam-counter-input"], ["primaryColor", "var(--m-color-light-slate)", 1, "miam-counter-input__icon", 3, "width", "height", "iconName"], [1, "miam-counter-input__button", "miam-counter-input__button__minus", 3, "click"], ["primaryColor", "var(--m-color-secondary)", 3, "width", "height", "iconName"], [1, "miam-counter-input__count", "m-small-typo", 3, "ngModel", "maxLength", "ngModelChange", "click", "focus"], ["counterInput", ""], [1, "miam-counter-input__button", "miam-counter-input__button__plus"], ["primaryColor", "var(--m-color-light-slate)
|
|
6072
|
+
}, inputs: { counter: "counter", minRange: "minRange", maxRange: "maxRange" }, outputs: { counterChange: "counterChange", selected: "selected" }, features: [i0.ɵɵNgOnChangesFeature], decls: 8, vars: 9, consts: [[1, "miam-counter-input"], ["primaryColor", "var(--m-color-light-slate)", 1, "miam-counter-input__icon", 3, "width", "height", "iconName"], [1, "miam-counter-input__button", "miam-counter-input__button__minus", 3, "click"], ["primaryColor", "var(--m-color-secondary)", 3, "width", "height", "iconName"], [1, "miam-counter-input__count", "m-small-typo", 3, "ngModel", "maxLength", "ngModelChange", "click", "focus"], ["counterInput", ""], [1, "miam-counter-input__button", "miam-counter-input__button__plus", 3, "click"], ["primaryColor", "var(--m-color-light-slate)", 3, "iconName"]], template: function CounterInputComponent_Template(rf, ctx) {
|
|
6060
6073
|
if (rf & 1) {
|
|
6061
6074
|
i0.ɵɵelementStart(0, "div", 0);
|
|
6062
6075
|
i0.ɵɵelement(1, "ng-miam-icon", 1);
|
|
@@ -6068,9 +6081,8 @@
|
|
|
6068
6081
|
i0.ɵɵlistener("ngModelChange", function CounterInputComponent_Template_input_ngModelChange_4_listener($event) { return ctx.counter = $event; })("click", function CounterInputComponent_Template_input_click_4_listener($event) { return ctx.prevent($event); })("focus", function CounterInputComponent_Template_input_focus_4_listener() { return ctx.selected.emit(true); })("ngModelChange", function CounterInputComponent_Template_input_ngModelChange_4_listener() { return ctx.updateValue(); });
|
|
6069
6082
|
i0.ɵɵelementEnd();
|
|
6070
6083
|
i0.ɵɵelementStart(6, "span", 6);
|
|
6071
|
-
i0.ɵɵ
|
|
6072
|
-
i0.ɵɵ
|
|
6073
|
-
i0.ɵɵelementEnd();
|
|
6084
|
+
i0.ɵɵlistener("click", function CounterInputComponent_Template_span_click_6_listener($event) { return ctx.increment($event); });
|
|
6085
|
+
i0.ɵɵelement(7, "ng-miam-icon", 7);
|
|
6074
6086
|
i0.ɵɵelementEnd();
|
|
6075
6087
|
i0.ɵɵelementEnd();
|
|
6076
6088
|
}
|
|
@@ -13975,62 +13987,63 @@
|
|
|
13975
13987
|
})();
|
|
13976
13988
|
|
|
13977
13989
|
var _c0$r = ["topContainerImg"];
|
|
13978
|
-
|
|
13990
|
+
var _c1$b = ["mainContainer"];
|
|
13991
|
+
function RecipeDetailsComponent_div_0_img_6_Template(rf, ctx) {
|
|
13979
13992
|
if (rf & 1) {
|
|
13980
|
-
i0.ɵɵelement(0, "img",
|
|
13993
|
+
i0.ɵɵelement(0, "img", 40);
|
|
13981
13994
|
}
|
|
13982
13995
|
if (rf & 2) {
|
|
13983
|
-
var
|
|
13984
|
-
i0.ɵɵproperty("src",
|
|
13996
|
+
var ctx_r5 = i0.ɵɵnextContext(2);
|
|
13997
|
+
i0.ɵɵproperty("src", ctx_r5.recipe == null ? null : ctx_r5.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
|
|
13985
13998
|
}
|
|
13986
13999
|
}
|
|
13987
|
-
function
|
|
14000
|
+
function RecipeDetailsComponent_div_0_div_7_Template(rf, ctx) {
|
|
13988
14001
|
if (rf & 1) {
|
|
13989
|
-
i0.ɵɵelement(0, "div",
|
|
14002
|
+
i0.ɵɵelement(0, "div", 41);
|
|
13990
14003
|
}
|
|
13991
14004
|
}
|
|
13992
|
-
function
|
|
14005
|
+
function RecipeDetailsComponent_div_0_youtube_player_8_Template(rf, ctx) {
|
|
13993
14006
|
if (rf & 1) {
|
|
13994
|
-
i0.ɵɵelement(0, "youtube-player",
|
|
14007
|
+
i0.ɵɵelement(0, "youtube-player", 42);
|
|
13995
14008
|
}
|
|
13996
14009
|
if (rf & 2) {
|
|
13997
|
-
var
|
|
13998
|
-
i0.ɵɵproperty("videoId",
|
|
14010
|
+
var ctx_r7 = i0.ɵɵnextContext(2);
|
|
14011
|
+
i0.ɵɵproperty("videoId", ctx_r7.recipe.videoId)("width", ctx_r7.playerWidth)("height", ctx_r7.playerHeight);
|
|
13999
14012
|
}
|
|
14000
14013
|
}
|
|
14001
|
-
function
|
|
14014
|
+
function RecipeDetailsComponent_div_0_div_9_Template(rf, ctx) {
|
|
14002
14015
|
if (rf & 1) {
|
|
14003
|
-
i0.ɵɵelementStart(0, "div",
|
|
14016
|
+
i0.ɵɵelementStart(0, "div", 43);
|
|
14004
14017
|
i0.ɵɵtext(1, "D\u00E9j\u00E0 ajout\u00E9e");
|
|
14005
14018
|
i0.ɵɵelementEnd();
|
|
14006
14019
|
}
|
|
14007
14020
|
}
|
|
14008
|
-
function
|
|
14021
|
+
function RecipeDetailsComponent_div_0_ng_miam_like_button_12_Template(rf, ctx) {
|
|
14009
14022
|
if (rf & 1) {
|
|
14010
|
-
i0.ɵɵelement(0, "ng-miam-like-button",
|
|
14023
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 44);
|
|
14011
14024
|
}
|
|
14012
14025
|
if (rf & 2) {
|
|
14013
|
-
var
|
|
14014
|
-
i0.ɵɵproperty("recipe",
|
|
14026
|
+
var ctx_r9 = i0.ɵɵnextContext(2);
|
|
14027
|
+
i0.ɵɵproperty("recipe", ctx_r9.recipe)("width", 26)("height", 26);
|
|
14015
14028
|
}
|
|
14016
14029
|
}
|
|
14017
|
-
function
|
|
14030
|
+
function RecipeDetailsComponent_div_0_img_16_Template(rf, ctx) {
|
|
14018
14031
|
if (rf & 1) {
|
|
14019
|
-
i0.ɵɵelement(0, "img",
|
|
14032
|
+
i0.ɵɵelement(0, "img", 45);
|
|
14020
14033
|
}
|
|
14021
14034
|
if (rf & 2) {
|
|
14022
|
-
var
|
|
14023
|
-
i0.ɵɵpropertyInterpolate("src",
|
|
14035
|
+
var ctx_r10 = i0.ɵɵnextContext(2);
|
|
14036
|
+
i0.ɵɵpropertyInterpolate("src", ctx_r10.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
|
|
14024
14037
|
}
|
|
14025
14038
|
}
|
|
14026
|
-
function
|
|
14039
|
+
function RecipeDetailsComponent_div_0_div_23_Template(rf, ctx) {
|
|
14027
14040
|
if (rf & 1) {
|
|
14028
|
-
i0.ɵɵelementStart(0, "div",
|
|
14041
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
14029
14042
|
i0.ɵɵelementStart(1, "span");
|
|
14030
14043
|
i0.ɵɵtext(2, "Pr\u00E9paration");
|
|
14031
14044
|
i0.ɵɵelementEnd();
|
|
14032
|
-
i0.ɵɵelementStart(3, "div",
|
|
14033
|
-
i0.ɵɵelement(4, "ng-miam-icon",
|
|
14045
|
+
i0.ɵɵelementStart(3, "div", 47);
|
|
14046
|
+
i0.ɵɵelement(4, "ng-miam-icon", 48);
|
|
14034
14047
|
i0.ɵɵelementStart(5, "span");
|
|
14035
14048
|
i0.ɵɵtext(6);
|
|
14036
14049
|
i0.ɵɵelementEnd();
|
|
@@ -14038,21 +14051,21 @@
|
|
|
14038
14051
|
i0.ɵɵelementEnd();
|
|
14039
14052
|
}
|
|
14040
14053
|
if (rf & 2) {
|
|
14041
|
-
var
|
|
14054
|
+
var ctx_r11 = i0.ɵɵnextContext(2);
|
|
14042
14055
|
i0.ɵɵadvance(4);
|
|
14043
|
-
i0.ɵɵproperty("width", 24)("height", 24)("iconName",
|
|
14056
|
+
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r11.icon.Preparation);
|
|
14044
14057
|
i0.ɵɵadvance(2);
|
|
14045
|
-
i0.ɵɵtextInterpolate(
|
|
14058
|
+
i0.ɵɵtextInterpolate(ctx_r11.recipe == null ? null : ctx_r11.recipe.preparationTime);
|
|
14046
14059
|
}
|
|
14047
14060
|
}
|
|
14048
|
-
function
|
|
14061
|
+
function RecipeDetailsComponent_div_0_div_24_Template(rf, ctx) {
|
|
14049
14062
|
if (rf & 1) {
|
|
14050
|
-
i0.ɵɵelementStart(0, "div",
|
|
14063
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
14051
14064
|
i0.ɵɵelementStart(1, "span");
|
|
14052
14065
|
i0.ɵɵtext(2, "Cuisson");
|
|
14053
14066
|
i0.ɵɵelementEnd();
|
|
14054
|
-
i0.ɵɵelementStart(3, "div",
|
|
14055
|
-
i0.ɵɵelement(4, "ng-miam-icon",
|
|
14067
|
+
i0.ɵɵelementStart(3, "div", 47);
|
|
14068
|
+
i0.ɵɵelement(4, "ng-miam-icon", 48);
|
|
14056
14069
|
i0.ɵɵelementStart(5, "span");
|
|
14057
14070
|
i0.ɵɵtext(6);
|
|
14058
14071
|
i0.ɵɵelementEnd();
|
|
@@ -14060,21 +14073,21 @@
|
|
|
14060
14073
|
i0.ɵɵelementEnd();
|
|
14061
14074
|
}
|
|
14062
14075
|
if (rf & 2) {
|
|
14063
|
-
var
|
|
14076
|
+
var ctx_r12 = i0.ɵɵnextContext(2);
|
|
14064
14077
|
i0.ɵɵadvance(4);
|
|
14065
|
-
i0.ɵɵproperty("width", 24)("height", 24)("iconName",
|
|
14078
|
+
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r12.icon.Hot);
|
|
14066
14079
|
i0.ɵɵadvance(2);
|
|
14067
|
-
i0.ɵɵtextInterpolate(
|
|
14080
|
+
i0.ɵɵtextInterpolate(ctx_r12.recipe == null ? null : ctx_r12.recipe.cookingTime);
|
|
14068
14081
|
}
|
|
14069
14082
|
}
|
|
14070
|
-
function
|
|
14083
|
+
function RecipeDetailsComponent_div_0_div_25_Template(rf, ctx) {
|
|
14071
14084
|
if (rf & 1) {
|
|
14072
|
-
i0.ɵɵelementStart(0, "div",
|
|
14085
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
14073
14086
|
i0.ɵɵelementStart(1, "span");
|
|
14074
14087
|
i0.ɵɵtext(2, "Repos");
|
|
14075
14088
|
i0.ɵɵelementEnd();
|
|
14076
|
-
i0.ɵɵelementStart(3, "div",
|
|
14077
|
-
i0.ɵɵelement(4, "ng-miam-icon",
|
|
14089
|
+
i0.ɵɵelementStart(3, "div", 47);
|
|
14090
|
+
i0.ɵɵelement(4, "ng-miam-icon", 48);
|
|
14078
14091
|
i0.ɵɵelementStart(5, "span");
|
|
14079
14092
|
i0.ɵɵtext(6);
|
|
14080
14093
|
i0.ɵɵelementEnd();
|
|
@@ -14082,463 +14095,478 @@
|
|
|
14082
14095
|
i0.ɵɵelementEnd();
|
|
14083
14096
|
}
|
|
14084
14097
|
if (rf & 2) {
|
|
14085
|
-
var
|
|
14098
|
+
var ctx_r13 = i0.ɵɵnextContext(2);
|
|
14086
14099
|
i0.ɵɵadvance(4);
|
|
14087
|
-
i0.ɵɵproperty("width", 24)("height", 24)("iconName",
|
|
14100
|
+
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r13.icon.Wait);
|
|
14088
14101
|
i0.ɵɵadvance(2);
|
|
14089
|
-
i0.ɵɵtextInterpolate(
|
|
14102
|
+
i0.ɵɵtextInterpolate(ctx_r13.recipe == null ? null : ctx_r13.recipe.restingTime);
|
|
14090
14103
|
}
|
|
14091
14104
|
}
|
|
14092
|
-
function
|
|
14105
|
+
function RecipeDetailsComponent_div_0_ng_container_35_Template(rf, ctx) {
|
|
14093
14106
|
if (rf & 1) {
|
|
14094
14107
|
i0.ɵɵelementContainerStart(0);
|
|
14095
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
14108
|
+
i0.ɵɵelement(1, "ng-miam-icon", 49);
|
|
14096
14109
|
i0.ɵɵelementContainerEnd();
|
|
14097
14110
|
}
|
|
14098
14111
|
if (rf & 2) {
|
|
14099
|
-
var
|
|
14112
|
+
var ctx_r14 = i0.ɵɵnextContext(2);
|
|
14100
14113
|
i0.ɵɵadvance(1);
|
|
14101
|
-
i0.ɵɵproperty("width", 56)("height", 16)("iconName",
|
|
14114
|
+
i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r14.icon.DifficultyLow);
|
|
14102
14115
|
}
|
|
14103
14116
|
}
|
|
14104
|
-
function
|
|
14117
|
+
function RecipeDetailsComponent_div_0_ng_container_36_Template(rf, ctx) {
|
|
14105
14118
|
if (rf & 1) {
|
|
14106
14119
|
i0.ɵɵelementContainerStart(0);
|
|
14107
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
14120
|
+
i0.ɵɵelement(1, "ng-miam-icon", 49);
|
|
14108
14121
|
i0.ɵɵelementContainerEnd();
|
|
14109
14122
|
}
|
|
14110
14123
|
if (rf & 2) {
|
|
14111
|
-
var
|
|
14124
|
+
var ctx_r15 = i0.ɵɵnextContext(2);
|
|
14112
14125
|
i0.ɵɵadvance(1);
|
|
14113
|
-
i0.ɵɵproperty("width", 56)("height", 16)("iconName",
|
|
14126
|
+
i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r15.icon.DifficultyMedium);
|
|
14114
14127
|
}
|
|
14115
14128
|
}
|
|
14116
|
-
function
|
|
14129
|
+
function RecipeDetailsComponent_div_0_ng_container_37_Template(rf, ctx) {
|
|
14117
14130
|
if (rf & 1) {
|
|
14118
14131
|
i0.ɵɵelementContainerStart(0);
|
|
14119
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
14132
|
+
i0.ɵɵelement(1, "ng-miam-icon", 49);
|
|
14120
14133
|
i0.ɵɵelementContainerEnd();
|
|
14121
14134
|
}
|
|
14122
14135
|
if (rf & 2) {
|
|
14123
|
-
var
|
|
14136
|
+
var ctx_r16 = i0.ɵɵnextContext(2);
|
|
14124
14137
|
i0.ɵɵadvance(1);
|
|
14125
|
-
i0.ɵɵproperty("width", 56)("height", 16)("iconName",
|
|
14138
|
+
i0.ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r16.icon.DifficultyHight);
|
|
14126
14139
|
}
|
|
14127
14140
|
}
|
|
14128
|
-
function
|
|
14141
|
+
function RecipeDetailsComponent_div_0_ng_container_38_Template(rf, ctx) {
|
|
14129
14142
|
if (rf & 1) {
|
|
14130
14143
|
i0.ɵɵelementContainer(0);
|
|
14131
14144
|
}
|
|
14132
14145
|
}
|
|
14133
|
-
function
|
|
14146
|
+
function RecipeDetailsComponent_div_0_button_51_Template(rf, ctx) {
|
|
14134
14147
|
if (rf & 1) {
|
|
14135
|
-
var
|
|
14136
|
-
i0.ɵɵelementStart(0, "button",
|
|
14137
|
-
i0.ɵɵlistener("click", function
|
|
14148
|
+
var _r25_1 = i0.ɵɵgetCurrentView();
|
|
14149
|
+
i0.ɵɵelementStart(0, "button", 50);
|
|
14150
|
+
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
14151
|
i0.ɵɵelementStart(1, "span");
|
|
14139
14152
|
i0.ɵɵtext(2);
|
|
14140
14153
|
i0.ɵɵpipe(3, "async");
|
|
14141
14154
|
i0.ɵɵelementEnd();
|
|
14142
|
-
i0.ɵɵelement(4, "ng-miam-icon",
|
|
14155
|
+
i0.ɵɵelement(4, "ng-miam-icon", 51);
|
|
14143
14156
|
i0.ɵɵpipe(5, "async");
|
|
14144
14157
|
i0.ɵɵelementEnd();
|
|
14145
14158
|
}
|
|
14146
14159
|
if (rf & 2) {
|
|
14147
|
-
var
|
|
14160
|
+
var ctx_r18 = i0.ɵɵnextContext(2);
|
|
14148
14161
|
var tmp_0_0 = null;
|
|
14149
14162
|
var tmp_3_0 = null;
|
|
14150
14163
|
i0.ɵɵadvance(2);
|
|
14151
|
-
i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4,
|
|
14164
|
+
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
14165
|
i0.ɵɵadvance(2);
|
|
14153
|
-
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6,
|
|
14166
|
+
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
14167
|
}
|
|
14155
14168
|
}
|
|
14156
|
-
function
|
|
14169
|
+
function RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template(rf, ctx) {
|
|
14157
14170
|
if (rf & 1) {
|
|
14158
|
-
var
|
|
14159
|
-
i0.ɵɵelementStart(0, "ng-miam-addon-link",
|
|
14160
|
-
i0.ɵɵlistener("showAddon", function
|
|
14171
|
+
var _r27_1 = i0.ɵɵgetCurrentView();
|
|
14172
|
+
i0.ɵɵelementStart(0, "ng-miam-addon-link", 52);
|
|
14173
|
+
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
14174
|
i0.ɵɵelementEnd();
|
|
14162
14175
|
}
|
|
14163
14176
|
if (rf & 2) {
|
|
14164
|
-
var
|
|
14165
|
-
i0.ɵɵproperty("recipe",
|
|
14177
|
+
var ctx_r19 = i0.ɵɵnextContext(2);
|
|
14178
|
+
i0.ɵɵproperty("recipe", ctx_r19.recipe);
|
|
14166
14179
|
}
|
|
14167
14180
|
}
|
|
14168
|
-
|
|
14169
|
-
function RecipeDetailsComponent_div_0_div_54_div_12_Template(rf, ctx) {
|
|
14181
|
+
function RecipeDetailsComponent_div_0_div_55_div_12_div_1_Template(rf, ctx) {
|
|
14170
14182
|
if (rf & 1) {
|
|
14171
|
-
i0.ɵɵelementStart(0, "div"
|
|
14172
|
-
i0.ɵɵ
|
|
14173
|
-
i0.ɵɵtext(2);
|
|
14174
|
-
i0.ɵɵpipe(3, "capitalizeFirstLetter");
|
|
14183
|
+
i0.ɵɵelementStart(0, "div");
|
|
14184
|
+
i0.ɵɵelement(1, "img", 68);
|
|
14175
14185
|
i0.ɵɵelementEnd();
|
|
14176
|
-
|
|
14177
|
-
|
|
14178
|
-
i0.ɵɵ
|
|
14186
|
+
}
|
|
14187
|
+
if (rf & 2) {
|
|
14188
|
+
var ingredient_r30 = i0.ɵɵnextContext().$implicit;
|
|
14189
|
+
var ctx_r32 = i0.ɵɵnextContext(3);
|
|
14190
|
+
i0.ɵɵadvance(1);
|
|
14191
|
+
i0.ɵɵproperty("src", ctx_r32.ingredientPicture(ingredient_r30), i0.ɵɵsanitizeUrl);
|
|
14192
|
+
}
|
|
14193
|
+
}
|
|
14194
|
+
var _c2$3 = function (a0) { return { "checked": a0 }; };
|
|
14195
|
+
function RecipeDetailsComponent_div_0_div_55_div_12_Template(rf, ctx) {
|
|
14196
|
+
if (rf & 1) {
|
|
14197
|
+
i0.ɵɵelementStart(0, "div", 66);
|
|
14198
|
+
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_55_div_12_div_1_Template, 2, 1, "div", 67);
|
|
14199
|
+
i0.ɵɵelementStart(2, "div");
|
|
14200
|
+
i0.ɵɵtext(3);
|
|
14201
|
+
i0.ɵɵpipe(4, "capitalizeFirstLetter");
|
|
14202
|
+
i0.ɵɵelementEnd();
|
|
14203
|
+
i0.ɵɵelementStart(5, "div", 60);
|
|
14204
|
+
i0.ɵɵtext(6);
|
|
14205
|
+
i0.ɵɵpipe(7, "readableFloatNumber");
|
|
14179
14206
|
i0.ɵɵelementEnd();
|
|
14180
14207
|
i0.ɵɵelementEnd();
|
|
14181
14208
|
}
|
|
14182
14209
|
if (rf & 2) {
|
|
14183
|
-
var
|
|
14184
|
-
var
|
|
14185
|
-
var
|
|
14186
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
14210
|
+
var ingredient_r30 = ctx.$implicit;
|
|
14211
|
+
var i_r31 = ctx.index;
|
|
14212
|
+
var ctx_r28 = i0.ɵɵnextContext(3);
|
|
14213
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(9, _c2$3, ctx_r28.ingredientsChecked[i_r31]));
|
|
14214
|
+
i0.ɵɵadvance(1);
|
|
14215
|
+
i0.ɵɵproperty("ngIf", ctx_r28.ingredientsPictures);
|
|
14187
14216
|
i0.ɵɵadvance(2);
|
|
14188
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(
|
|
14217
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(4, 4, ingredient_r30.name), "");
|
|
14189
14218
|
i0.ɵɵadvance(3);
|
|
14190
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(
|
|
14219
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(7, 6, ingredient_r30.qty, ingredient_r30.unit), "");
|
|
14191
14220
|
}
|
|
14192
14221
|
}
|
|
14193
|
-
function
|
|
14222
|
+
function RecipeDetailsComponent_div_0_div_55_div_17_ng_miam_icon_6_Template(rf, ctx) {
|
|
14194
14223
|
if (rf & 1) {
|
|
14195
|
-
i0.ɵɵelement(0, "ng-miam-icon",
|
|
14224
|
+
i0.ɵɵelement(0, "ng-miam-icon", 73);
|
|
14196
14225
|
}
|
|
14197
14226
|
if (rf & 2) {
|
|
14198
|
-
var
|
|
14199
|
-
i0.ɵɵproperty("height", 16)("width", 16)("iconName",
|
|
14227
|
+
var ctx_r36 = i0.ɵɵnextContext(4);
|
|
14228
|
+
i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r36.icon.CheckCircleFill);
|
|
14200
14229
|
}
|
|
14201
14230
|
}
|
|
14202
|
-
function
|
|
14231
|
+
function RecipeDetailsComponent_div_0_div_55_div_17_Template(rf, ctx) {
|
|
14203
14232
|
if (rf & 1) {
|
|
14204
|
-
var
|
|
14205
|
-
i0.ɵɵelementStart(0, "div",
|
|
14206
|
-
i0.ɵɵlistener("click", function
|
|
14207
|
-
i0.ɵɵelementStart(1, "div",
|
|
14233
|
+
var _r38_1 = i0.ɵɵgetCurrentView();
|
|
14234
|
+
i0.ɵɵelementStart(0, "div", 69);
|
|
14235
|
+
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); });
|
|
14236
|
+
i0.ɵɵelementStart(1, "div", 70);
|
|
14208
14237
|
i0.ɵɵelementStart(2, "strong");
|
|
14209
14238
|
i0.ɵɵtext(3);
|
|
14210
14239
|
i0.ɵɵelementEnd();
|
|
14211
14240
|
i0.ɵɵelementEnd();
|
|
14212
|
-
i0.ɵɵelementStart(4, "div",
|
|
14241
|
+
i0.ɵɵelementStart(4, "div", 71);
|
|
14213
14242
|
i0.ɵɵtext(5);
|
|
14214
14243
|
i0.ɵɵelementEnd();
|
|
14215
|
-
i0.ɵɵtemplate(6,
|
|
14244
|
+
i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_div_55_div_17_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 72);
|
|
14216
14245
|
i0.ɵɵelementEnd();
|
|
14217
14246
|
}
|
|
14218
14247
|
if (rf & 2) {
|
|
14219
|
-
var
|
|
14220
|
-
var
|
|
14221
|
-
var
|
|
14222
|
-
i0.ɵɵclassProp("active",
|
|
14248
|
+
var step_r34 = ctx.$implicit;
|
|
14249
|
+
var i_r35 = ctx.index;
|
|
14250
|
+
var ctx_r29 = i0.ɵɵnextContext(3);
|
|
14251
|
+
i0.ɵɵclassProp("active", i_r35 === ctx_r29.activeStep)("miam-recipe-details__panel__done", i_r35 < ctx_r29.activeStep);
|
|
14223
14252
|
i0.ɵɵadvance(3);
|
|
14224
|
-
i0.ɵɵtextInterpolate(
|
|
14253
|
+
i0.ɵɵtextInterpolate(i_r35 + 1);
|
|
14225
14254
|
i0.ɵɵadvance(2);
|
|
14226
|
-
i0.ɵɵtextInterpolate(
|
|
14255
|
+
i0.ɵɵtextInterpolate(step_r34 == null ? null : step_r34.attributes == null ? null : step_r34.attributes.description);
|
|
14227
14256
|
i0.ɵɵadvance(1);
|
|
14228
|
-
i0.ɵɵproperty("ngIf",
|
|
14257
|
+
i0.ɵɵproperty("ngIf", i_r35 <= ctx_r29.activeStep);
|
|
14229
14258
|
}
|
|
14230
14259
|
}
|
|
14231
|
-
function
|
|
14260
|
+
function RecipeDetailsComponent_div_0_div_55_Template(rf, ctx) {
|
|
14232
14261
|
if (rf & 1) {
|
|
14233
|
-
var
|
|
14234
|
-
i0.ɵɵelementStart(0, "div",
|
|
14235
|
-
i0.ɵɵelementStart(1, "div",
|
|
14236
|
-
i0.ɵɵelementStart(2, "div",
|
|
14262
|
+
var _r40_1 = i0.ɵɵgetCurrentView();
|
|
14263
|
+
i0.ɵɵelementStart(0, "div", 53);
|
|
14264
|
+
i0.ɵɵelementStart(1, "div", 54);
|
|
14265
|
+
i0.ɵɵelementStart(2, "div", 55);
|
|
14237
14266
|
i0.ɵɵtext(3, " Ingr\u00E9dients ");
|
|
14238
14267
|
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
|
|
14268
|
+
i0.ɵɵelementStart(4, "div", 56);
|
|
14269
|
+
i0.ɵɵelementStart(5, "div", 57);
|
|
14270
|
+
i0.ɵɵelementStart(6, "ng-miam-counter-input", 58);
|
|
14271
|
+
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
14272
|
i0.ɵɵelementEnd();
|
|
14244
|
-
i0.ɵɵelementStart(7, "span",
|
|
14273
|
+
i0.ɵɵelementStart(7, "span", 59);
|
|
14245
14274
|
i0.ɵɵtext(8);
|
|
14246
14275
|
i0.ɵɵelementEnd();
|
|
14247
14276
|
i0.ɵɵelementEnd();
|
|
14248
|
-
i0.ɵɵelementStart(9, "span",
|
|
14277
|
+
i0.ɵɵelementStart(9, "span", 60);
|
|
14249
14278
|
i0.ɵɵtext(10, "Quantit\u00E9");
|
|
14250
14279
|
i0.ɵɵelementEnd();
|
|
14251
14280
|
i0.ɵɵelementEnd();
|
|
14252
|
-
i0.ɵɵelementStart(11, "div",
|
|
14253
|
-
i0.ɵɵtemplate(12,
|
|
14281
|
+
i0.ɵɵelementStart(11, "div", 61);
|
|
14282
|
+
i0.ɵɵtemplate(12, RecipeDetailsComponent_div_0_div_55_div_12_Template, 8, 11, "div", 62);
|
|
14254
14283
|
i0.ɵɵelementEnd();
|
|
14255
14284
|
i0.ɵɵelementEnd();
|
|
14256
|
-
i0.ɵɵelementStart(13, "div",
|
|
14257
|
-
i0.ɵɵelementStart(14, "div",
|
|
14285
|
+
i0.ɵɵelementStart(13, "div", 63);
|
|
14286
|
+
i0.ɵɵelementStart(14, "div", 55);
|
|
14258
14287
|
i0.ɵɵtext(15, " Pr\u00E9paration ");
|
|
14259
14288
|
i0.ɵɵelementEnd();
|
|
14260
|
-
i0.ɵɵelementStart(16, "div",
|
|
14261
|
-
i0.ɵɵtemplate(17,
|
|
14289
|
+
i0.ɵɵelementStart(16, "div", 64);
|
|
14290
|
+
i0.ɵɵtemplate(17, RecipeDetailsComponent_div_0_div_55_div_17_Template, 7, 7, "div", 65);
|
|
14262
14291
|
i0.ɵɵelementEnd();
|
|
14263
14292
|
i0.ɵɵelementEnd();
|
|
14264
14293
|
i0.ɵɵelementEnd();
|
|
14265
14294
|
}
|
|
14266
14295
|
if (rf & 2) {
|
|
14267
|
-
var
|
|
14296
|
+
var ctx_r20 = i0.ɵɵnextContext(2);
|
|
14268
14297
|
i0.ɵɵadvance(6);
|
|
14269
|
-
i0.ɵɵproperty("counter", (
|
|
14298
|
+
i0.ɵɵproperty("counter", (ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedGuests) || ctx_r20.recipe.guests);
|
|
14270
14299
|
i0.ɵɵadvance(2);
|
|
14271
|
-
i0.ɵɵtextInterpolate1("Pour ",
|
|
14300
|
+
i0.ɵɵtextInterpolate1("Pour ", ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedGuests, " personnes");
|
|
14272
14301
|
i0.ɵɵadvance(4);
|
|
14273
|
-
i0.ɵɵproperty("ngForOf",
|
|
14302
|
+
i0.ɵɵproperty("ngForOf", ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedIngredients);
|
|
14274
14303
|
i0.ɵɵadvance(5);
|
|
14275
|
-
i0.ɵɵproperty("ngForOf",
|
|
14304
|
+
i0.ɵɵproperty("ngForOf", ctx_r20.steps);
|
|
14276
14305
|
}
|
|
14277
14306
|
}
|
|
14278
|
-
function
|
|
14307
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_div_9_Template(rf, ctx) {
|
|
14279
14308
|
if (rf & 1) {
|
|
14280
|
-
i0.ɵɵelementStart(0, "div",
|
|
14309
|
+
i0.ɵɵelementStart(0, "div", 66);
|
|
14281
14310
|
i0.ɵɵelementStart(1, "div");
|
|
14282
14311
|
i0.ɵɵtext(2);
|
|
14283
14312
|
i0.ɵɵpipe(3, "capitalizeFirstLetter");
|
|
14284
14313
|
i0.ɵɵelementEnd();
|
|
14285
|
-
i0.ɵɵelementStart(4, "div",
|
|
14314
|
+
i0.ɵɵelementStart(4, "div", 60);
|
|
14286
14315
|
i0.ɵɵtext(5);
|
|
14287
14316
|
i0.ɵɵpipe(6, "readableFloatNumber");
|
|
14288
14317
|
i0.ɵɵelementEnd();
|
|
14289
14318
|
i0.ɵɵelementEnd();
|
|
14290
14319
|
}
|
|
14291
14320
|
if (rf & 2) {
|
|
14292
|
-
var
|
|
14293
|
-
var
|
|
14294
|
-
var
|
|
14295
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8,
|
|
14321
|
+
var ingredient_r46 = ctx.$implicit;
|
|
14322
|
+
var i_r47 = ctx.index;
|
|
14323
|
+
var ctx_r45 = i0.ɵɵnextContext(4);
|
|
14324
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c2$3, ctx_r45.ingredientsChecked[i_r47]));
|
|
14296
14325
|
i0.ɵɵadvance(2);
|
|
14297
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3,
|
|
14326
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, ingredient_r46.name), "");
|
|
14298
14327
|
i0.ɵɵadvance(3);
|
|
14299
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(6, 5,
|
|
14328
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(6, 5, ingredient_r46.qty, ingredient_r46.unit), "");
|
|
14300
14329
|
}
|
|
14301
14330
|
}
|
|
14302
|
-
function
|
|
14331
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template(rf, ctx) {
|
|
14303
14332
|
if (rf & 1) {
|
|
14304
|
-
var
|
|
14333
|
+
var _r49_1 = i0.ɵɵgetCurrentView();
|
|
14305
14334
|
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
|
|
14335
|
+
i0.ɵɵelementStart(1, "div", 56);
|
|
14336
|
+
i0.ɵɵelementStart(2, "div", 57);
|
|
14337
|
+
i0.ɵɵelementStart(3, "ng-miam-counter-input", 58);
|
|
14338
|
+
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
14339
|
i0.ɵɵelementEnd();
|
|
14311
|
-
i0.ɵɵelementStart(4, "span",
|
|
14340
|
+
i0.ɵɵelementStart(4, "span", 59);
|
|
14312
14341
|
i0.ɵɵtext(5);
|
|
14313
14342
|
i0.ɵɵelementEnd();
|
|
14314
14343
|
i0.ɵɵelementEnd();
|
|
14315
|
-
i0.ɵɵelementStart(6, "span",
|
|
14344
|
+
i0.ɵɵelementStart(6, "span", 60);
|
|
14316
14345
|
i0.ɵɵtext(7, "Quantit\u00E9");
|
|
14317
14346
|
i0.ɵɵelementEnd();
|
|
14318
14347
|
i0.ɵɵelementEnd();
|
|
14319
|
-
i0.ɵɵelementStart(8, "div",
|
|
14320
|
-
i0.ɵɵtemplate(9,
|
|
14348
|
+
i0.ɵɵelementStart(8, "div", 61);
|
|
14349
|
+
i0.ɵɵtemplate(9, RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_div_9_Template, 7, 10, "div", 62);
|
|
14321
14350
|
i0.ɵɵelementEnd();
|
|
14322
14351
|
i0.ɵɵelementContainerEnd();
|
|
14323
14352
|
}
|
|
14324
14353
|
if (rf & 2) {
|
|
14325
|
-
var
|
|
14354
|
+
var ctx_r42 = i0.ɵɵnextContext(3);
|
|
14326
14355
|
i0.ɵɵadvance(3);
|
|
14327
|
-
i0.ɵɵproperty("counter",
|
|
14356
|
+
i0.ɵɵproperty("counter", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedGuests);
|
|
14328
14357
|
i0.ɵɵadvance(2);
|
|
14329
|
-
i0.ɵɵtextInterpolate1("Pour ",
|
|
14358
|
+
i0.ɵɵtextInterpolate1("Pour ", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedGuests, " personnes");
|
|
14330
14359
|
i0.ɵɵadvance(4);
|
|
14331
|
-
i0.ɵɵproperty("ngForOf",
|
|
14360
|
+
i0.ɵɵproperty("ngForOf", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedIngredients);
|
|
14332
14361
|
}
|
|
14333
14362
|
}
|
|
14334
|
-
function
|
|
14363
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_ng_miam_icon_6_Template(rf, ctx) {
|
|
14335
14364
|
if (rf & 1) {
|
|
14336
|
-
i0.ɵɵelement(0, "ng-miam-icon",
|
|
14365
|
+
i0.ɵɵelement(0, "ng-miam-icon", 73);
|
|
14337
14366
|
}
|
|
14338
14367
|
if (rf & 2) {
|
|
14339
|
-
var
|
|
14340
|
-
i0.ɵɵproperty("height", 16)("width", 16)("iconName",
|
|
14368
|
+
var ctx_r53 = i0.ɵɵnextContext(5);
|
|
14369
|
+
i0.ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r53.icon.CheckCircleFill);
|
|
14341
14370
|
}
|
|
14342
14371
|
}
|
|
14343
|
-
function
|
|
14372
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template(rf, ctx) {
|
|
14344
14373
|
if (rf & 1) {
|
|
14345
|
-
var
|
|
14346
|
-
i0.ɵɵelementStart(0, "div",
|
|
14347
|
-
i0.ɵɵlistener("click", function
|
|
14348
|
-
i0.ɵɵelementStart(1, "div",
|
|
14374
|
+
var _r55_1 = i0.ɵɵgetCurrentView();
|
|
14375
|
+
i0.ɵɵelementStart(0, "div", 69);
|
|
14376
|
+
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); });
|
|
14377
|
+
i0.ɵɵelementStart(1, "div", 70);
|
|
14349
14378
|
i0.ɵɵelementStart(2, "strong");
|
|
14350
14379
|
i0.ɵɵtext(3);
|
|
14351
14380
|
i0.ɵɵelementEnd();
|
|
14352
14381
|
i0.ɵɵelementEnd();
|
|
14353
|
-
i0.ɵɵelementStart(4, "div",
|
|
14382
|
+
i0.ɵɵelementStart(4, "div", 71);
|
|
14354
14383
|
i0.ɵɵtext(5);
|
|
14355
14384
|
i0.ɵɵelementEnd();
|
|
14356
|
-
i0.ɵɵtemplate(6,
|
|
14385
|
+
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
14386
|
i0.ɵɵelementEnd();
|
|
14358
14387
|
}
|
|
14359
14388
|
if (rf & 2) {
|
|
14360
|
-
var
|
|
14361
|
-
var
|
|
14362
|
-
var
|
|
14363
|
-
i0.ɵɵclassProp("active",
|
|
14389
|
+
var step_r51 = ctx.$implicit;
|
|
14390
|
+
var i_r52 = ctx.index;
|
|
14391
|
+
var ctx_r50 = i0.ɵɵnextContext(4);
|
|
14392
|
+
i0.ɵɵclassProp("active", i_r52 === ctx_r50.activeStep)("miam-recipe-details__panel__done", i_r52 < ctx_r50.activeStep);
|
|
14364
14393
|
i0.ɵɵadvance(3);
|
|
14365
|
-
i0.ɵɵtextInterpolate(
|
|
14394
|
+
i0.ɵɵtextInterpolate(i_r52 + 1);
|
|
14366
14395
|
i0.ɵɵadvance(2);
|
|
14367
|
-
i0.ɵɵtextInterpolate(
|
|
14396
|
+
i0.ɵɵtextInterpolate(step_r51 == null ? null : step_r51.attributes == null ? null : step_r51.attributes.description);
|
|
14368
14397
|
i0.ɵɵadvance(1);
|
|
14369
|
-
i0.ɵɵproperty("ngIf",
|
|
14398
|
+
i0.ɵɵproperty("ngIf", i_r52 <= ctx_r50.activeStep);
|
|
14370
14399
|
}
|
|
14371
14400
|
}
|
|
14372
|
-
function
|
|
14401
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_Template(rf, ctx) {
|
|
14373
14402
|
if (rf & 1) {
|
|
14374
|
-
i0.ɵɵelementStart(0, "div",
|
|
14375
|
-
i0.ɵɵtemplate(1,
|
|
14403
|
+
i0.ɵɵelementStart(0, "div", 64);
|
|
14404
|
+
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template, 7, 7, "div", 65);
|
|
14376
14405
|
i0.ɵɵelementEnd();
|
|
14377
14406
|
}
|
|
14378
14407
|
if (rf & 2) {
|
|
14379
|
-
var
|
|
14408
|
+
var ctx_r44 = i0.ɵɵnextContext(3);
|
|
14380
14409
|
i0.ɵɵadvance(1);
|
|
14381
|
-
i0.ɵɵproperty("ngForOf",
|
|
14410
|
+
i0.ɵɵproperty("ngForOf", ctx_r44.steps);
|
|
14382
14411
|
}
|
|
14383
14412
|
}
|
|
14384
|
-
var
|
|
14385
|
-
function
|
|
14413
|
+
var _c3$2 = function (a0) { return { "active": a0 }; };
|
|
14414
|
+
function RecipeDetailsComponent_div_0_ng_template_56_Template(rf, ctx) {
|
|
14386
14415
|
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
|
|
14416
|
+
var _r57_1 = i0.ɵɵgetCurrentView();
|
|
14417
|
+
i0.ɵɵelementStart(0, "div", 74, 75);
|
|
14418
|
+
i0.ɵɵelementStart(2, "div", 76);
|
|
14419
|
+
i0.ɵɵelementStart(3, "button", 77);
|
|
14420
|
+
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
14421
|
i0.ɵɵtext(4, "Ingredients");
|
|
14393
14422
|
i0.ɵɵelementEnd();
|
|
14394
|
-
i0.ɵɵelementStart(5, "button",
|
|
14395
|
-
i0.ɵɵlistener("click", function
|
|
14423
|
+
i0.ɵɵelementStart(5, "button", 77);
|
|
14424
|
+
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
14425
|
i0.ɵɵtext(6, "Pr\u00E9paration");
|
|
14397
14426
|
i0.ɵɵelementEnd();
|
|
14398
14427
|
i0.ɵɵelementEnd();
|
|
14399
|
-
i0.ɵɵtemplate(7,
|
|
14400
|
-
i0.ɵɵtemplate(8,
|
|
14428
|
+
i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template, 10, 3, "ng-container", 78);
|
|
14429
|
+
i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_Template, 2, 1, "ng-template", null, 79, i0.ɵɵtemplateRefExtractor);
|
|
14401
14430
|
i0.ɵɵelementEnd();
|
|
14402
14431
|
}
|
|
14403
14432
|
if (rf & 2) {
|
|
14404
|
-
var
|
|
14405
|
-
var
|
|
14433
|
+
var _r43 = i0.ɵɵreference(9);
|
|
14434
|
+
var ctx_r22 = i0.ɵɵnextContext(2);
|
|
14406
14435
|
i0.ɵɵadvance(3);
|
|
14407
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4,
|
|
14436
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c3$2, ctx_r22.showIngredient));
|
|
14408
14437
|
i0.ɵɵadvance(2);
|
|
14409
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6,
|
|
14438
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c3$2, !ctx_r22.showIngredient));
|
|
14410
14439
|
i0.ɵɵadvance(2);
|
|
14411
|
-
i0.ɵɵproperty("ngIf",
|
|
14440
|
+
i0.ɵɵproperty("ngIf", ctx_r22.showIngredient)("ngIfElse", _r43);
|
|
14412
14441
|
}
|
|
14413
14442
|
}
|
|
14414
|
-
function
|
|
14443
|
+
function RecipeDetailsComponent_div_0_button_62_Template(rf, ctx) {
|
|
14415
14444
|
if (rf & 1) {
|
|
14416
|
-
var
|
|
14417
|
-
i0.ɵɵelementStart(0, "button",
|
|
14418
|
-
i0.ɵɵlistener("click", function
|
|
14445
|
+
var _r60_1 = i0.ɵɵgetCurrentView();
|
|
14446
|
+
i0.ɵɵelementStart(0, "button", 50);
|
|
14447
|
+
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
14448
|
i0.ɵɵelementStart(1, "span");
|
|
14420
14449
|
i0.ɵɵtext(2);
|
|
14421
14450
|
i0.ɵɵpipe(3, "async");
|
|
14422
14451
|
i0.ɵɵelementEnd();
|
|
14423
|
-
i0.ɵɵelement(4, "ng-miam-icon",
|
|
14452
|
+
i0.ɵɵelement(4, "ng-miam-icon", 51);
|
|
14424
14453
|
i0.ɵɵpipe(5, "async");
|
|
14425
14454
|
i0.ɵɵelementEnd();
|
|
14426
14455
|
}
|
|
14427
14456
|
if (rf & 2) {
|
|
14428
|
-
var
|
|
14457
|
+
var ctx_r23 = i0.ɵɵnextContext(2);
|
|
14429
14458
|
var tmp_0_0 = null;
|
|
14430
14459
|
var tmp_3_0 = null;
|
|
14431
14460
|
i0.ɵɵadvance(2);
|
|
14432
|
-
i0.ɵɵtextInterpolate1(" ", ((tmp_0_0 = i0.ɵɵpipeBind1(3, 4,
|
|
14461
|
+
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
14462
|
i0.ɵɵadvance(2);
|
|
14434
|
-
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = i0.ɵɵpipeBind1(5, 6,
|
|
14463
|
+
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
14464
|
}
|
|
14436
14465
|
}
|
|
14437
14466
|
function RecipeDetailsComponent_div_0_Template(rf, ctx) {
|
|
14438
14467
|
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);
|
|
14468
|
+
var _r62_1 = i0.ɵɵgetCurrentView();
|
|
14469
|
+
i0.ɵɵelementStart(0, "div", 2, 3);
|
|
14443
14470
|
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",
|
|
14471
|
+
i0.ɵɵelementStart(3, "div", 5);
|
|
14472
|
+
i0.ɵɵelementStart(4, "div", 6, 7);
|
|
14473
|
+
i0.ɵɵtemplate(6, RecipeDetailsComponent_div_0_img_6_Template, 1, 1, "img", 8);
|
|
14474
|
+
i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_7_Template, 1, 0, "div", 9);
|
|
14475
|
+
i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_youtube_player_8_Template, 1, 3, "youtube-player", 10);
|
|
14476
|
+
i0.ɵɵtemplate(9, RecipeDetailsComponent_div_0_div_9_Template, 2, 0, "div", 11);
|
|
14477
|
+
i0.ɵɵpipe(10, "async");
|
|
14478
|
+
i0.ɵɵelementStart(11, "div", 12);
|
|
14479
|
+
i0.ɵɵtemplate(12, RecipeDetailsComponent_div_0_ng_miam_like_button_12_Template, 1, 3, "ng-miam-like-button", 13);
|
|
14480
|
+
i0.ɵɵpipe(13, "async");
|
|
14481
|
+
i0.ɵɵelement(14, "ng-miam-icon", 14);
|
|
14482
|
+
i0.ɵɵelement(15, "ng-miam-icon", 14);
|
|
14455
14483
|
i0.ɵɵelementEnd();
|
|
14456
|
-
i0.ɵɵtemplate(
|
|
14484
|
+
i0.ɵɵtemplate(16, RecipeDetailsComponent_div_0_img_16_Template, 1, 1, "img", 15);
|
|
14457
14485
|
i0.ɵɵelementEnd();
|
|
14458
|
-
i0.ɵɵelementStart(16, "div", 15);
|
|
14459
14486
|
i0.ɵɵelementStart(17, "div", 16);
|
|
14460
|
-
i0.ɵɵ
|
|
14461
|
-
i0.ɵɵ
|
|
14462
|
-
i0.ɵɵ
|
|
14487
|
+
i0.ɵɵelementStart(18, "div", 17);
|
|
14488
|
+
i0.ɵɵelement(19, "ng-miam-icon", 18);
|
|
14489
|
+
i0.ɵɵelementStart(20, "span");
|
|
14490
|
+
i0.ɵɵtext(21);
|
|
14463
14491
|
i0.ɵɵelementEnd();
|
|
14464
14492
|
i0.ɵɵelementEnd();
|
|
14465
|
-
i0.ɵɵelementStart(
|
|
14466
|
-
i0.ɵɵtemplate(
|
|
14467
|
-
i0.ɵɵtemplate(
|
|
14468
|
-
i0.ɵɵtemplate(
|
|
14493
|
+
i0.ɵɵelementStart(22, "div", 19);
|
|
14494
|
+
i0.ɵɵtemplate(23, RecipeDetailsComponent_div_0_div_23_Template, 7, 4, "div", 20);
|
|
14495
|
+
i0.ɵɵtemplate(24, RecipeDetailsComponent_div_0_div_24_Template, 7, 4, "div", 20);
|
|
14496
|
+
i0.ɵɵtemplate(25, RecipeDetailsComponent_div_0_div_25_Template, 7, 4, "div", 20);
|
|
14469
14497
|
i0.ɵɵelementEnd();
|
|
14470
14498
|
i0.ɵɵelementEnd();
|
|
14471
14499
|
i0.ɵɵelementEnd();
|
|
14472
|
-
i0.ɵɵelementStart(25, "div", 20);
|
|
14473
14500
|
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,
|
|
14501
|
+
i0.ɵɵelementStart(27, "div", 22);
|
|
14502
|
+
i0.ɵɵelementStart(28, "span", 23);
|
|
14503
|
+
i0.ɵɵtext(29);
|
|
14504
|
+
i0.ɵɵpipe(30, "titlecase");
|
|
14505
|
+
i0.ɵɵelementEnd();
|
|
14506
|
+
i0.ɵɵelementStart(31, "span", 24);
|
|
14507
|
+
i0.ɵɵtext(32);
|
|
14508
|
+
i0.ɵɵelementEnd();
|
|
14509
|
+
i0.ɵɵelementStart(33, "div", 25);
|
|
14510
|
+
i0.ɵɵelementContainerStart(34, 26);
|
|
14511
|
+
i0.ɵɵtemplate(35, RecipeDetailsComponent_div_0_ng_container_35_Template, 2, 3, "ng-container", 27);
|
|
14512
|
+
i0.ɵɵtemplate(36, RecipeDetailsComponent_div_0_ng_container_36_Template, 2, 3, "ng-container", 27);
|
|
14513
|
+
i0.ɵɵtemplate(37, RecipeDetailsComponent_div_0_ng_container_37_Template, 2, 3, "ng-container", 27);
|
|
14514
|
+
i0.ɵɵtemplate(38, RecipeDetailsComponent_div_0_ng_container_38_Template, 1, 0, "ng-container", 28);
|
|
14487
14515
|
i0.ɵɵelementContainerEnd();
|
|
14488
|
-
i0.ɵɵelementStart(
|
|
14489
|
-
i0.ɵɵtext(
|
|
14490
|
-
i0.ɵɵpipe(
|
|
14516
|
+
i0.ɵɵelementStart(39, "span");
|
|
14517
|
+
i0.ɵɵtext(40);
|
|
14518
|
+
i0.ɵɵpipe(41, "titlecase");
|
|
14491
14519
|
i0.ɵɵelementEnd();
|
|
14492
14520
|
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(
|
|
14521
|
+
i0.ɵɵelementStart(42, "div", 29);
|
|
14522
|
+
i0.ɵɵtext(43);
|
|
14523
|
+
i0.ɵɵelementStart(44, "div", 30);
|
|
14524
|
+
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(); });
|
|
14525
|
+
i0.ɵɵelement(45, "ng-miam-icon", 14);
|
|
14526
|
+
i0.ɵɵelementStart(46, "span");
|
|
14527
|
+
i0.ɵɵtext(47, " Imprimer la recette ");
|
|
14500
14528
|
i0.ɵɵelementEnd();
|
|
14501
14529
|
i0.ɵɵelementEnd();
|
|
14502
14530
|
i0.ɵɵelementEnd();
|
|
14503
14531
|
i0.ɵɵelementEnd();
|
|
14504
|
-
i0.ɵɵelementStart(47, "div", 30);
|
|
14505
14532
|
i0.ɵɵelementStart(48, "div", 31);
|
|
14506
|
-
i0.ɵɵ
|
|
14533
|
+
i0.ɵɵelementStart(49, "div", 32);
|
|
14534
|
+
i0.ɵɵelement(50, "ng-miam-recipe-pricing", 33);
|
|
14507
14535
|
i0.ɵɵelementEnd();
|
|
14508
|
-
i0.ɵɵtemplate(
|
|
14536
|
+
i0.ɵɵtemplate(51, RecipeDetailsComponent_div_0_button_51_Template, 6, 8, "button", 34);
|
|
14509
14537
|
i0.ɵɵelementEnd();
|
|
14510
14538
|
i0.ɵɵelementEnd();
|
|
14511
14539
|
i0.ɵɵelementEnd();
|
|
14512
|
-
i0.ɵɵelement(
|
|
14513
|
-
i0.ɵɵelementStart(
|
|
14514
|
-
i0.ɵɵtemplate(
|
|
14540
|
+
i0.ɵɵelement(52, "div", 35);
|
|
14541
|
+
i0.ɵɵelementStart(53, "div");
|
|
14542
|
+
i0.ɵɵtemplate(54, RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template, 1, 1, "ng-miam-addon-link", 36);
|
|
14515
14543
|
i0.ɵɵelementEnd();
|
|
14516
|
-
i0.ɵɵtemplate(
|
|
14517
|
-
i0.ɵɵtemplate(
|
|
14518
|
-
i0.ɵɵelementStart(
|
|
14519
|
-
i0.ɵɵelementStart(58, "div", 30);
|
|
14544
|
+
i0.ɵɵtemplate(55, RecipeDetailsComponent_div_0_div_55_Template, 18, 4, "div", 37);
|
|
14545
|
+
i0.ɵɵtemplate(56, RecipeDetailsComponent_div_0_ng_template_56_Template, 10, 8, "ng-template", null, 38, i0.ɵɵtemplateRefExtractor);
|
|
14546
|
+
i0.ɵɵelementStart(58, "div", 39);
|
|
14520
14547
|
i0.ɵɵelementStart(59, "div", 31);
|
|
14521
|
-
i0.ɵɵ
|
|
14548
|
+
i0.ɵɵelementStart(60, "div", 32);
|
|
14549
|
+
i0.ɵɵelement(61, "ng-miam-recipe-pricing", 33);
|
|
14522
14550
|
i0.ɵɵelementEnd();
|
|
14523
|
-
i0.ɵɵtemplate(
|
|
14551
|
+
i0.ɵɵtemplate(62, RecipeDetailsComponent_div_0_button_62_Template, 6, 8, "button", 34);
|
|
14524
14552
|
i0.ɵɵelementEnd();
|
|
14525
14553
|
i0.ɵɵelementEnd();
|
|
14526
14554
|
i0.ɵɵelementEnd();
|
|
14527
14555
|
}
|
|
14528
14556
|
if (rf & 2) {
|
|
14529
|
-
var
|
|
14557
|
+
var _r21 = i0.ɵɵreference(57);
|
|
14530
14558
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
14531
14559
|
var tmp_3_0 = null;
|
|
14532
|
-
i0.ɵɵadvance(
|
|
14560
|
+
i0.ɵɵadvance(6);
|
|
14533
14561
|
i0.ɵɵproperty("ngIf", !ctx_r0.showVideo);
|
|
14534
14562
|
i0.ɵɵadvance(1);
|
|
14535
14563
|
i0.ɵɵproperty("ngIf", !ctx_r0.showVideo);
|
|
14536
14564
|
i0.ɵɵadvance(1);
|
|
14537
14565
|
i0.ɵɵproperty("ngIf", ctx_r0.showVideo && ctx_r0.playerWidth);
|
|
14538
14566
|
i0.ɵɵadvance(1);
|
|
14539
|
-
i0.ɵɵproperty("ngIf", (tmp_3_0 = i0.ɵɵpipeBind1(
|
|
14567
|
+
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
14568
|
i0.ɵɵadvance(3);
|
|
14541
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
14569
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(13, 41, ctx_r0.userService.isLogged$));
|
|
14542
14570
|
i0.ɵɵadvance(2);
|
|
14543
14571
|
i0.ɵɵproperty("width", 26)("height", 26)("iconName", ctx_r0.icon.Calendar);
|
|
14544
14572
|
i0.ɵɵadvance(1);
|
|
@@ -14556,7 +14584,7 @@
|
|
|
14556
14584
|
i0.ɵɵadvance(1);
|
|
14557
14585
|
i0.ɵɵproperty("ngIf", (ctx_r0.recipe == null ? null : ctx_r0.recipe.restingTime) !== "-");
|
|
14558
14586
|
i0.ɵɵadvance(4);
|
|
14559
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
14587
|
+
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
14588
|
i0.ɵɵadvance(3);
|
|
14561
14589
|
i0.ɵɵtextInterpolate(ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["title"]);
|
|
14562
14590
|
i0.ɵɵadvance(2);
|
|
@@ -14568,7 +14596,7 @@
|
|
|
14568
14596
|
i0.ɵɵadvance(1);
|
|
14569
14597
|
i0.ɵɵproperty("ngSwitchCase", "difficile");
|
|
14570
14598
|
i0.ɵɵadvance(3);
|
|
14571
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(
|
|
14599
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(41, 45, ctx_r0.recipe == null ? null : ctx_r0.recipe.difficultyLabel));
|
|
14572
14600
|
i0.ɵɵadvance(3);
|
|
14573
14601
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["description"], " ");
|
|
14574
14602
|
i0.ɵɵadvance(2);
|
|
@@ -14580,7 +14608,7 @@
|
|
|
14580
14608
|
i0.ɵɵadvance(3);
|
|
14581
14609
|
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
14610
|
i0.ɵɵadvance(1);
|
|
14583
|
-
i0.ɵɵproperty("ngIf", !ctx_r0.isMobile)("ngIfElse",
|
|
14611
|
+
i0.ɵɵproperty("ngIf", !ctx_r0.isMobile)("ngIfElse", _r21);
|
|
14584
14612
|
i0.ɵɵadvance(6);
|
|
14585
14613
|
i0.ɵɵproperty("recipe", ctx_r0.recipe)("serves", ctx_r0.recipe == null ? null : ctx_r0.recipe.modifiedGuests);
|
|
14586
14614
|
i0.ɵɵadvance(1);
|
|
@@ -14589,9 +14617,9 @@
|
|
|
14589
14617
|
}
|
|
14590
14618
|
function RecipeDetailsComponent_ng_template_1_Template(rf, ctx) {
|
|
14591
14619
|
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(
|
|
14620
|
+
var _r64_1 = i0.ɵɵgetCurrentView();
|
|
14621
|
+
i0.ɵɵelementStart(0, "ng-miam-recipe-addon", 80);
|
|
14622
|
+
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
14623
|
i0.ɵɵelementEnd();
|
|
14596
14624
|
}
|
|
14597
14625
|
if (rf & 2) {
|
|
@@ -14608,8 +14636,8 @@
|
|
|
14608
14636
|
this.posService = posService;
|
|
14609
14637
|
this.recipeEventsService = recipeEventsService;
|
|
14610
14638
|
this.contextService = contextService;
|
|
14611
|
-
this.forceIngredientsStepstoggle = false;
|
|
14612
14639
|
this.previewAllowed = true;
|
|
14640
|
+
this.ingredientsPictures = false;
|
|
14613
14641
|
this.recipeAdded = new i0.EventEmitter();
|
|
14614
14642
|
this.recipeChanged = new i0.EventEmitter();
|
|
14615
14643
|
this.recipeError = new i0.EventEmitter();
|
|
@@ -14622,17 +14650,19 @@
|
|
|
14622
14650
|
this.ingredientsChecked = {};
|
|
14623
14651
|
this.showIngredient = true;
|
|
14624
14652
|
this.closeIconhidden = new rxjs.BehaviorSubject(false);
|
|
14653
|
+
this.scrollListenerInitialised = false;
|
|
14625
14654
|
this.subscriptions = [];
|
|
14626
14655
|
this.isMobile = this.mediaMatcher.matchMedia('(max-width: 1023px)').matches;
|
|
14627
14656
|
}
|
|
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
14657
|
RecipeDetailsComponent.prototype.ngOnChanges = function () {
|
|
14634
14658
|
var _a;
|
|
14635
|
-
|
|
14659
|
+
// if forceIngredientsStepstoggle, use isMobile to toggle ingredients & steps in mobile mode, else
|
|
14660
|
+
// Use the value of forceIngredientsStepstoggle to force it to mobile (true) or desktop (false)
|
|
14661
|
+
if (this.forceIngredientsStepstoggle !== undefined) {
|
|
14662
|
+
this.isMobile = this.forceIngredientsStepstoggle;
|
|
14663
|
+
}
|
|
14664
|
+
this.showVideo = false; // force reload video player
|
|
14665
|
+
this.cdr.detectChanges();
|
|
14636
14666
|
this.showVideo = this.contextService.videoRecipesEnabled && ((_a = this.recipe) === null || _a === void 0 ? void 0 : _a.videoId);
|
|
14637
14667
|
if (this.recipe) {
|
|
14638
14668
|
this.steps = this.recipe.steps;
|
|
@@ -14644,6 +14674,28 @@
|
|
|
14644
14674
|
var _a, _b;
|
|
14645
14675
|
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);
|
|
14646
14676
|
this.playerHeight = this.playerWidth * 390 / 640;
|
|
14677
|
+
if (!this.scrollListenerInitialised) {
|
|
14678
|
+
this.initScrollListener();
|
|
14679
|
+
}
|
|
14680
|
+
};
|
|
14681
|
+
/**
|
|
14682
|
+
* Init the listener on scroll so the modal can hide the close icon
|
|
14683
|
+
*/
|
|
14684
|
+
RecipeDetailsComponent.prototype.initScrollListener = function () {
|
|
14685
|
+
var _this = this;
|
|
14686
|
+
if (this.mainContainer) {
|
|
14687
|
+
var intersectionObserver = new IntersectionObserver(function (_c) {
|
|
14688
|
+
var _d = __read(_c, 1), entry = _d[0];
|
|
14689
|
+
if (_this.mainContainer.nativeElement.scrollTop > 300 !== _this.closeIconhidden.value) {
|
|
14690
|
+
_this.closeIconhidden.next(_this.mainContainer.nativeElement.scrollTop > 300);
|
|
14691
|
+
}
|
|
14692
|
+
}, {
|
|
14693
|
+
threshold: [0, 0.33, 0.66, 1],
|
|
14694
|
+
root: this.mainContainer.nativeElement
|
|
14695
|
+
});
|
|
14696
|
+
intersectionObserver.observe(this.topContainerImg.nativeElement);
|
|
14697
|
+
this.scrollListenerInitialised = true;
|
|
14698
|
+
}
|
|
14647
14699
|
};
|
|
14648
14700
|
RecipeDetailsComponent.prototype.changeActiveStep = function (index) {
|
|
14649
14701
|
this.activeStep = index;
|
|
@@ -14699,31 +14751,32 @@
|
|
|
14699
14751
|
this.showIngredient = isShowed;
|
|
14700
14752
|
this.cdr.detectChanges();
|
|
14701
14753
|
};
|
|
14754
|
+
RecipeDetailsComponent.prototype.ingredientPicture = function (ingredient) {
|
|
14755
|
+
return ingredient.picture || this.contextService.defaultIngredientPicture;
|
|
14756
|
+
};
|
|
14702
14757
|
return RecipeDetailsComponent;
|
|
14703
14758
|
}());
|
|
14704
14759
|
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)); };
|
|
14705
14760
|
RecipeDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsComponent, selectors: [["ng-miam-recipe-details"]], viewQuery: function RecipeDetailsComponent_Query(rf, ctx) {
|
|
14706
14761
|
if (rf & 1) {
|
|
14707
14762
|
i0.ɵɵviewQuery(_c0$r, true);
|
|
14763
|
+
i0.ɵɵviewQuery(_c1$b, true);
|
|
14708
14764
|
}
|
|
14709
14765
|
if (rf & 2) {
|
|
14710
14766
|
var _t;
|
|
14711
14767
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.topContainerImg = _t.first);
|
|
14768
|
+
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.mainContainer = _t.first);
|
|
14712
14769
|
}
|
|
14713
|
-
},
|
|
14714
|
-
if (rf & 1) {
|
|
14715
|
-
i0.ɵɵlistener("scroll", function RecipeDetailsComponent_scroll_HostBindingHandler($event) { return ctx.onScroll($event); });
|
|
14716
|
-
}
|
|
14717
|
-
}, 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) {
|
|
14770
|
+
}, 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) {
|
|
14718
14771
|
if (rf & 1) {
|
|
14719
|
-
i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template,
|
|
14772
|
+
i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 63, 47, "div", 0);
|
|
14720
14773
|
i0.ɵɵtemplate(1, RecipeDetailsComponent_ng_template_1_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
14721
14774
|
}
|
|
14722
14775
|
if (rf & 2) {
|
|
14723
14776
|
var _r1 = i0.ɵɵreference(2);
|
|
14724
14777
|
i0.ɵɵproperty("ngIf", ctx.showDetail)("ngIfElse", _r1);
|
|
14725
14778
|
}
|
|
14726
|
-
}, directives: [i3.NgIf, IconComponent, i3.NgSwitch, i3.NgSwitchCase, i3.NgSwitchDefault, RecipePricingComponent, i6.YouTubePlayer, LikeButtonComponent, AddonLinkComponent, CounterInputComponent, i3.NgForOf, i3.NgClass, RecipeAddonComponent], pipes: [i3.AsyncPipe, i3.TitleCasePipe, CapitalizeFirstLetterPipe, ReadableFloatNumberPipe], styles: [".miam-recipe-details{border-radius:var(--m-border-radius);display:inline-flex;flex-direction:row;flex-wrap:wrap;height:calc(80vh - 80px);margin:40px 8px;min-width:calc(100% - 32px);padding:0 16px}.miam-recipe-details::-webkit-scrollbar-button{height:20px}.miam-recipe-details::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__top__container{display:flex;justify-content:space-evenly}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img{align-items:center;border-radius:var(--m-border-radius);display:flex;height:400px;overflow:hidden;position:relative;width:370px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img img{-o-object-fit:cover;-webkit-print-color-adjust:exact;display:block;height:100%;object-fit:cover;transform:translateX(-25%)}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__gradient{background:linear-gradient(180deg,transparent 57.92%,rgba(0,0,0,.75) 100%,rgba(0,0,0,.75) 0);border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);display:block;height:100%;position:absolute;top:0;width:100%}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__gradient{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{background-color:var(--m-color-primary-light);border-radius:5px;bottom:16px;color:var(--m-color-primary);font-weight:500;left:16px;padding:8px;position:absolute;text-transform:uppercase}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{display:flex;flex-direction:column;justify-content:space-evenly;position:absolute;right:16px;top:16px;z-index:var(--m-z-index-position-absolute-hight)}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon{-o-object-fit:contain;background-color:#fff;border-radius:var(--m-border-radius-circle);box-shadow:var(--m-shadow-small);margin:0 0 16px;object-fit:contain;padding:8px;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon.miam-noPadding{padding:0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__sponsor{-o-object-fit:contain;bottom:16px;height:auto;max-height:72px;max-width:96px;object-fit:contain;position:absolute;right:16px;transform:none;width:auto}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos{display:flex;flex:1 1;flex-direction:column;justify-content:space-between;margin-left:40px;padding:16px;position:relative}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__infos__price__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top{display:flex;flex-direction:column;position:relative}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__type{color:var(--m-color-black);font-size:14px;line-height:1.14;padding-bottom:16px;text-align:left}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__title{color:var(--m-color-secondary);font-size:32px;font-weight:700;line-height:1.1;text-align:left}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__difficulty{display:flex;padding:16px 0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__difficulty ng-miam-icon{margin-right:8px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics{align-items:center;display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics span{color:var(--m-color-black);font-size:14px;margin-left:12px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics .miam-recipe-details__metrics__row{display:flex}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description{color:var(--m-color-grey-text-dark);display:flex;flex:1;flex-direction:column;font-size:17px;line-height:1.62;margin-bottom:24px;overflow-y:auto;text-align:left;word-break:break-word}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{align-items:center;display:flex;margin-top:16px}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action>*{cursor:pointer}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action>:hover{color:var(--m-color-primary);text-decoration:underline}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action ng-miam-icon{margin-right:10px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper{align-items:flex-end;display:flex;flex-direction:column;height:100%;justify-content:flex-start;max-height:225px;padding-left:16px;position:relative}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price{margin-bottom:4px;padding:4px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{color:var(--m-color-primary);flex-direction:row}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{display:flex;flex-direction:column}}@media print{.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{font-size:20px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:14px;margin-left:12px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{border-radius:20px;color:var(--m-color-white);font-size:16px;padding:8px 20px}@media print{.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{display:none}}@media (min-width:1022px){.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action:hover{color:var(--m-color-primary)}}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action ng-miam-icon{margin-left:16px}.miam-recipe-details .miam-recipe-details__top__container__info{align-items:center;display:flex;flex-direction:column;gap:24px;justify-content:center;padding:16px 0;width:370px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__metrics{align-items:center;display:flex;justify-content:center}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__metrics span{color:var(--m-color-primary);font-size:19px;font-weight:700;margin-left:12px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times{align-items:center;display:flex;justify-content:space-evenly}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics{flex-direction:column;margin-right:24px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics span{color:var(--m-color-black);font-size:13px;font-weight:400;line-height:16px;margin-left:4px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics .miam-recipe-details__metrics__row{align-items:center;display:flex}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics .miam-recipe-details__metrics__row span{font-size:19px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics{align-items:center;display:flex;justify-content:center;z-index:0}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics ng-miam-icon{display:flex;justify-content:center;margin-right:4px;min-height:32px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics span{font-size:15px}.miam-recipe-details .miam-recipe-details__mid__container{border-bottom:1px dashed var(--m-color-primary);display:flex;padding-bottom:16px;width:100%}.miam-recipe-details .miam-recipe-details__bottom__container{display:flex;width:100%}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__header{border-bottom:1px solid var(--m-color-grey-text);color:var(--m-color-primary);display:block;font-size:20px;font-size:17px;font-weight:700;margin:24px 0;padding:16px 0 8px;position:relative}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter{align-items:center;display:flex}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:16px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:none}@media print{.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter ng-miam-counter-input{display:none}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:block}}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list{flex:1 1;overflow-y:auto;padding-bottom:40px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__row{color:var(--m-color-black);display:flex;font-size:14px;font-weight:700;height:40px;justify-content:space-between;padding-bottom:16px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__row .miam-recipe-details__ingredients__row__qty{color:var(--m-color-grey-text-dark);font-size:14px;font-weight:500;padding-right:10px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__ingredients{display:flex;flex:1;flex-direction:column;padding:0 40px 0 0}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps{display:flex;flex:1;flex-direction:column}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list{flex:1 1;overflow-y:auto;padding-bottom:40px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel{-webkit-tap-highlight-color:transparent;align-items:center;background-color:var(--m-color-primary-text);border-radius:var(--m-border-radius);cursor:pointer;display:flex;flex-direction:row;margin:0 16px 8px 0;text-align:left;transition:var(--m-default-transition)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__idx{color:var(--m-color-secondary);flex:0 0 auto;font-size:20px;margin-right:20px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__text{font-size:14px;word-break:break-word}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__checkIcon{flex:0 0 auto}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel.miam-recipe-details__panel__done{background-color:var(--m-color-secondary-light)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel div{flex:1;margin:10px}@media print{.miam-recipe-details{height:unset}}@media (max-width:1022px){.miam-recipe-details{height:80vh;margin:0;min-width:100vw;overflow-y:auto;padding:0 0 80px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper{align-items:center;background-color:var(--m-color-white);bottom:0;flex-direction:row;height:unset;justify-content:space-between;left:0;padding:4px 16px;position:fixed;right:0}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-pricing__wrapper{flex-direction:column}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:10px;margin-left:0}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{padding:8px 10px}.miam-recipe-details .miam-recipe-details__top__container{flex-wrap:wrap}.miam-recipe-details .miam-recipe-details__top__container div .miam-recipe-details__top__left{position:-webkit-sticky;position:sticky;top:0;z-index:3}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__info__times{position:-webkit-sticky;position:sticky;top:0;z-index:1}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img{height:220px;position:-webkit-sticky;position:sticky;top:-5vh;width:100vw;z-index:3}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img img{height:unset;transform:none;width:100%}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{bottom:unset;left:16px;top:16px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{bottom:0;flex-direction:unset;left:8px;right:unset;top:unset}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:rgba(0,0,0,.65);background-color:unset;box-shadow:none;margin:0 4px 8px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos{flex:unset;margin-left:unset;padding:0 16px;width:100vw;z-index:0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__type{display:none}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__title{font-size:24px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description{margin-bottom:16px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{display:none}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__info{background-color:var(--m-color-white);width:unset;z-index:1}.miam-recipe-details .miam-recipe-details__mobile__container{display:flex;flex-direction:column;min-height:80vh;padding-bottom:50px;position:relative;width:100vw}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header{background-color:var(--m-color-white);border-radius:32px 32px 0 0;display:flex;justify-content:space-evenly;padding:16px 0;position:-webkit-sticky;position:sticky;top:0;z-index:1}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header button{margin-right:0}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header button.active{background-color:var(--m-color-primary);color:var(--m-color-white)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row{align-items:center;color:var(--m-color-black);display:flex;font-size:14px;font-weight:700;justify-content:space-between;padding-bottom:16px;padding-right:16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row div{width:100%}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row .miam-recipe-details__ingredients__row__qty{color:var(--m-color-grey-text-dark);font-size:14px;font-weight:500;margin-right:16px;padding-right:10px;text-align:end}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__counter{display:flex;justify-content:space-between;padding:16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:none}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__list{display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__list .miam-recipe-details__ingredients__row{display:flex;font-size:16px;justify-content:space-between;padding:0 16px 16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel{-webkit-tap-highlight-color:transparent;align-items:center;align-items:flex-start;background-color:transparent;border-radius:var(--m-border-radius);cursor:pointer;display:flex;flex-direction:row;margin:0 8px 32px;padding:0;position:relative;text-align:left;transition:var(--m-default-transition)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel:not(:last-child):before{background-color:var(--m-color-grey);content:\"\";height:50%;left:29px;position:absolute;top:60px;width:1px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel.miam-recipe-details__panel__done{background-color:var(--miam-color-primary-light)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__idx{align-items:center;background-color:var(--m-color-primary);border-radius:40px;color:#fff;display:flex;flex:0 0 auto;font-size:17px;font-weight:700;height:40px;justify-content:center;margin-right:20px;width:40px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__text{font-size:14px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__checkIcon{flex:0 0 auto}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel div{flex:1;margin:10px}.miam-recipe-details .miam-recipe-details__bottom__container__action{background:var(--m-color-white);bottom:0;left:0;padding:0 16px;position:fixed;right:0;width:100vw;z-index:4}}"], encapsulation: 2, changeDetection: 0 });
|
|
14779
|
+
}, directives: [i3.NgIf, IconComponent, i3.NgSwitch, i3.NgSwitchCase, i3.NgSwitchDefault, RecipePricingComponent, i6.YouTubePlayer, LikeButtonComponent, AddonLinkComponent, CounterInputComponent, i3.NgForOf, i3.NgClass, RecipeAddonComponent], pipes: [i3.AsyncPipe, i3.TitleCasePipe, CapitalizeFirstLetterPipe, ReadableFloatNumberPipe], styles: [".miam-recipe-details{border-radius:var(--m-border-radius);display:inline-flex;flex-direction:row;flex-wrap:wrap;height:calc(80vh - 80px);margin:40px 8px;min-width:calc(100% - 32px);padding:0 16px}.miam-recipe-details::-webkit-scrollbar-button{height:20px}.miam-recipe-details::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__top__container{display:flex;justify-content:space-evenly}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img{align-items:center;border-radius:var(--m-border-radius);display:flex;height:400px;overflow:hidden;position:relative;width:370px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img img{-o-object-fit:cover;-webkit-print-color-adjust:exact;display:block;height:100%;object-fit:cover;transform:translateX(-25%)}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__gradient{background:linear-gradient(180deg,transparent 57.92%,rgba(0,0,0,.75) 100%,rgba(0,0,0,.75) 0);border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);display:block;height:100%;position:absolute;top:0;width:100%}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__gradient{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{background-color:var(--m-color-primary-light);border-radius:5px;bottom:16px;color:var(--m-color-primary);font-weight:500;left:16px;padding:8px;position:absolute;text-transform:uppercase}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{display:flex;flex-direction:column;justify-content:space-evenly;position:absolute;right:16px;top:16px;z-index:var(--m-z-index-position-absolute-hight)}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon{-o-object-fit:contain;background-color:#fff;border-radius:var(--m-border-radius-circle);box-shadow:var(--m-shadow-small);margin:0 0 16px;object-fit:contain;padding:8px;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon.miam-noPadding{padding:0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__sponsor{-o-object-fit:contain;bottom:16px;height:auto;max-height:72px;max-width:96px;object-fit:contain;position:absolute;right:16px;transform:none;width:auto}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos{display:flex;flex:1 1;flex-direction:column;justify-content:space-between;margin-left:40px;padding:16px;position:relative}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__infos__price__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top{display:flex;flex-direction:column;position:relative}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__type{color:var(--m-color-black);font-size:14px;line-height:1.14;padding-bottom:16px;text-align:left}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__title{color:var(--m-color-secondary);font-size:32px;font-weight:700;line-height:1.1;text-align:left}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__difficulty{display:flex;padding:16px 0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__difficulty ng-miam-icon{margin-right:8px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics{align-items:center;display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics span{color:var(--m-color-black);font-size:14px;margin-left:12px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__metrics .miam-recipe-details__metrics__row{display:flex}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description{color:var(--m-color-grey-text-dark);display:flex;flex:1;flex-direction:column;font-size:17px;line-height:1.62;margin-bottom:24px;overflow-y:auto;text-align:left;word-break:break-word}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{align-items:center;display:flex;margin-top:16px}@media print{.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{display:none}}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action>*{cursor:pointer}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action>:hover{color:var(--m-color-primary);text-decoration:underline}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action ng-miam-icon{margin-right:10px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper{align-items:flex-end;display:flex;flex-direction:column;height:100%;justify-content:flex-start;max-height:225px;padding-left:16px;position:relative}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price{margin-bottom:4px;padding:4px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{color:var(--m-color-primary);flex-direction:row}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{display:flex;flex-direction:column}}@media print{.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{font-size:20px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:14px;margin-left:12px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{border-radius:20px;color:var(--m-color-white);font-size:16px;padding:8px 20px}@media print{.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{display:none}}@media (min-width:1022px){.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action:hover{color:var(--m-color-primary)}}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action ng-miam-icon{margin-left:16px}.miam-recipe-details .miam-recipe-details__top__container__info{align-items:center;display:flex;flex-direction:column;gap:24px;justify-content:center;padding:16px 0;width:370px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__metrics{align-items:center;display:flex;justify-content:center}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__metrics span{color:var(--m-color-primary);font-size:19px;font-weight:700;margin-left:12px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times{align-items:center;display:flex;justify-content:space-evenly}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics{flex-direction:column;margin-right:24px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics span{color:var(--m-color-black);font-size:13px;font-weight:400;line-height:16px;margin-left:4px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics .miam-recipe-details__metrics__row{align-items:center;display:flex}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics .miam-recipe-details__metrics__row span{font-size:19px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics{align-items:center;display:flex;justify-content:center;z-index:0}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics ng-miam-icon{display:flex;justify-content:center;margin-right:4px;min-height:32px}.miam-recipe-details .miam-recipe-details__top__container__info .miam-recipe-details__info__times .miam-recipe-details__info__metrics span{font-size:15px}.miam-recipe-details .miam-recipe-details__mid__container{border-bottom:1px dashed var(--m-color-primary);display:flex;padding-bottom:16px;width:100%}.miam-recipe-details .miam-recipe-details__bottom__container{display:flex;width:100%}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__header{border-bottom:1px solid var(--m-color-grey-text);color:var(--m-color-primary);display:block;font-size:20px;font-size:17px;font-weight:700;margin:24px 0;padding:16px 0 8px;position:relative}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter{align-items:center;display:flex}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:16px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:none}@media print{.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter ng-miam-counter-input{display:none}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:block}}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list{flex:1 1;overflow-y:auto;padding-bottom:40px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__list::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__row{color:var(--m-color-black);display:flex;font-size:14px;font-weight:700;height:40px;justify-content:space-between;padding-bottom:16px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__ingredients__row .miam-recipe-details__ingredients__row__qty{color:var(--m-color-grey-text-dark);font-size:14px;font-weight:500;padding-right:10px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__ingredients{display:flex;flex:1;flex-direction:column;padding:0 40px 0 0}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps{display:flex;flex:1;flex-direction:column}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list{flex:1 1;overflow-y:auto;padding-bottom:40px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel{-webkit-tap-highlight-color:transparent;align-items:center;background-color:var(--m-color-primary-text);border-radius:var(--m-border-radius);cursor:pointer;display:flex;flex-direction:row;margin:0 16px 8px 0;text-align:left;transition:var(--m-default-transition)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__idx{color:var(--m-color-secondary);flex:0 0 auto;font-size:20px;margin-right:20px}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__text{font-size:14px;word-break:break-word}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__checkIcon{flex:0 0 auto}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel.miam-recipe-details__panel__done{background-color:var(--m-color-secondary-light)}.miam-recipe-details .miam-recipe-details__bottom__container .miam-recipe-details__bottom__container__steps .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel div{flex:1;margin:10px}.miam-recipe-details .miam-recipe-details__bottom__container__action{width:100%}@media print{.miam-recipe-details{height:unset}}@media (max-width:1022px){.miam-recipe-details{height:80vh;margin:0;min-width:100vw;overflow-y:auto;padding:0 0 80px}.miam-recipe-details .miam-recipe-details__infos__price__wrapper{align-items:center;background-color:var(--m-color-white);bottom:0;flex-direction:row;height:unset;justify-content:space-between;left:0;padding:4px 16px;position:fixed;right:0}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-pricing__wrapper{flex-direction:column}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:10px;margin-left:0}.miam-recipe-details .miam-recipe-details__infos__price__wrapper .miam-recipe-details__infos__action{padding:8px 10px}.miam-recipe-details .miam-recipe-details__top__container{flex-wrap:wrap}.miam-recipe-details .miam-recipe-details__top__container div .miam-recipe-details__top__left{position:-webkit-sticky;position:sticky;top:0;z-index:3}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__info__times{position:-webkit-sticky;position:sticky;top:0;z-index:1}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img{height:220px;position:-webkit-sticky;position:sticky;top:-5vh;width:100vw;z-index:3}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img img{height:unset;transform:none;width:100%}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__picture__tag{bottom:unset;left:16px;top:16px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions{bottom:0;flex-direction:unset;left:8px;right:unset;top:unset}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__img .miam-recipe-details__img__actions .miam-recipe-details__actions__icon{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);background:rgba(0,0,0,.65);background-color:unset;box-shadow:none;margin:0 4px 8px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos{flex:unset;margin-left:unset;padding:0 16px;width:100vw;z-index:0}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__type{display:none}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__title{font-size:24px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description{margin-bottom:16px}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__infos .miam-recipe-details__top__container__infos__top .miam-recipe-details__infos__description .miam-recipe-details__description__action{display:none}.miam-recipe-details .miam-recipe-details__top__container .miam-recipe-details__top__container__info{background-color:var(--m-color-white);width:unset;z-index:1}.miam-recipe-details .miam-recipe-details__mobile__container{display:flex;flex-direction:column;min-height:80vh;padding-bottom:50px;position:relative;width:100vw}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header{background-color:var(--m-color-white);border-radius:32px 32px 0 0;display:flex;justify-content:space-evenly;padding:16px 0;position:-webkit-sticky;position:sticky;top:0;z-index:1}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header button{margin-right:0}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__mobile__header button.active{background-color:var(--m-color-primary);color:var(--m-color-white)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row{align-items:center;color:var(--m-color-black);display:flex;font-size:14px;font-weight:700;justify-content:space-between;padding-bottom:16px;padding-right:16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row div{width:100%}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__row .miam-recipe-details__ingredients__row__qty{color:var(--m-color-grey-text-dark);font-size:14px;font-weight:500;margin-right:16px;padding-right:10px;text-align:end}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__counter{display:flex;justify-content:space-between;padding:16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__counter .miam-recipe-details__ingredients__counter__print{display:none}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__list{display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__ingredients__list .miam-recipe-details__ingredients__row{display:flex;font-size:16px;justify-content:space-between;padding:0 16px 16px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel{-webkit-tap-highlight-color:transparent;align-items:center;align-items:flex-start;background-color:transparent;border-radius:var(--m-border-radius);cursor:pointer;display:flex;flex-direction:row;margin:0 8px 32px;padding:0;position:relative;text-align:left;transition:var(--m-default-transition)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel:not(:last-child):before{background-color:var(--m-color-grey);content:\"\";height:50%;left:29px;position:absolute;top:60px;width:1px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel.miam-recipe-details__panel__done{background-color:var(--miam-color-primary-light)}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__idx{align-items:center;background-color:var(--m-color-primary);border-radius:40px;color:#fff;display:flex;flex:0 0 auto;font-size:17px;font-weight:700;height:40px;justify-content:center;margin-right:20px;width:40px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__text{font-size:14px}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel .miam-recipe-details__panel__checkIcon{flex:0 0 auto}.miam-recipe-details .miam-recipe-details__mobile__container .miam-recipe-details__steps__list .miam-recipe-details__steps__list__panel div{flex:1;margin:10px}.miam-recipe-details .miam-recipe-details__bottom__container__action{background:var(--m-color-white);bottom:0;left:0;padding:0 16px;position:fixed;right:0;width:100vw;z-index:4}}"], encapsulation: 2, changeDetection: 0 });
|
|
14727
14780
|
/*@__PURE__*/ (function () {
|
|
14728
14781
|
i0.ɵsetClassMetadata(RecipeDetailsComponent, [{
|
|
14729
14782
|
type: i0.Component,
|
|
@@ -14740,6 +14793,8 @@
|
|
|
14740
14793
|
type: i0.Input
|
|
14741
14794
|
}], previewAllowed: [{
|
|
14742
14795
|
type: i0.Input
|
|
14796
|
+
}], ingredientsPictures: [{
|
|
14797
|
+
type: i0.Input
|
|
14743
14798
|
}], recipeAdded: [{
|
|
14744
14799
|
type: i0.Output
|
|
14745
14800
|
}], recipeChanged: [{
|
|
@@ -14749,9 +14804,9 @@
|
|
|
14749
14804
|
}], topContainerImg: [{
|
|
14750
14805
|
type: i0.ViewChild,
|
|
14751
14806
|
args: ['topContainerImg']
|
|
14752
|
-
}],
|
|
14753
|
-
type: i0.
|
|
14754
|
-
args: ['
|
|
14807
|
+
}], mainContainer: [{
|
|
14808
|
+
type: i0.ViewChild,
|
|
14809
|
+
args: ['mainContainer']
|
|
14755
14810
|
}] });
|
|
14756
14811
|
})();
|
|
14757
14812
|
|
|
@@ -14942,7 +14997,7 @@
|
|
|
14942
14997
|
}
|
|
14943
14998
|
var _c1$c = function (a0) { return { "height.px": a0 }; };
|
|
14944
14999
|
var _c2$4 = function (a0) { return { "miam-recipe-tags__container__toggle__hidden": a0 }; };
|
|
14945
|
-
var _c3$
|
|
15000
|
+
var _c3$3 = function (a0) { return { "opacity": a0 }; };
|
|
14946
15001
|
function RecipeTagsComponent_div_0_Template(rf, ctx) {
|
|
14947
15002
|
if (rf & 1) {
|
|
14948
15003
|
var _r9_1 = i0.ɵɵgetCurrentView();
|
|
@@ -14973,7 +15028,7 @@
|
|
|
14973
15028
|
i0.ɵɵadvance(2);
|
|
14974
15029
|
i0.ɵɵtextInterpolate1(" ", ctx_r0.isListOpen ? " " : "+" + ctx_r0.wrappedItemsCount, "");
|
|
14975
15030
|
i0.ɵɵadvance(2);
|
|
14976
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(10, _c3$
|
|
15031
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(10, _c3$3, ctx_r0.isListOpen ? 1 : 0));
|
|
14977
15032
|
i0.ɵɵadvance(1);
|
|
14978
15033
|
i0.ɵɵproperty("iconName", ctx_r0.icon.ChevronDown);
|
|
14979
15034
|
}
|