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/fesm2015/ng-miam.js
CHANGED
|
@@ -904,7 +904,8 @@ class Recipe extends Resource {
|
|
|
904
904
|
return {
|
|
905
905
|
name: ingredient.attributes.name,
|
|
906
906
|
qty: (+ingredient.quantity) / (+this.guests || 1),
|
|
907
|
-
unit: ingredient.attributes.unit
|
|
907
|
+
unit: ingredient.attributes.unit,
|
|
908
|
+
picture: ingredient.picture
|
|
908
909
|
};
|
|
909
910
|
});
|
|
910
911
|
}
|
|
@@ -1216,14 +1217,15 @@ class Ingredient extends Resource {
|
|
|
1216
1217
|
constructor() {
|
|
1217
1218
|
super(...arguments);
|
|
1218
1219
|
this.attributes = {
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
'forced-eans': []
|
|
1220
|
+
name: '',
|
|
1221
|
+
quantity: '',
|
|
1222
|
+
unit: '',
|
|
1223
|
+
active: true,
|
|
1224
|
+
'forced-eans': [],
|
|
1225
|
+
picture: ''
|
|
1224
1226
|
};
|
|
1225
1227
|
this.relationships = {
|
|
1226
|
-
|
|
1228
|
+
recipe: new DocumentResource(),
|
|
1227
1229
|
'quantity-unit': new DocumentResource()
|
|
1228
1230
|
};
|
|
1229
1231
|
}
|
|
@@ -1236,6 +1238,9 @@ class Ingredient extends Resource {
|
|
|
1236
1238
|
return '1';
|
|
1237
1239
|
}
|
|
1238
1240
|
}
|
|
1241
|
+
get picture() {
|
|
1242
|
+
return this.attributes.picture;
|
|
1243
|
+
}
|
|
1239
1244
|
}
|
|
1240
1245
|
|
|
1241
1246
|
const MIAM_API_HOST = `${environment.miamAPI}/api/v1/`;
|
|
@@ -2239,7 +2244,7 @@ class ToastrService {
|
|
|
2239
2244
|
this.injectCss();
|
|
2240
2245
|
});
|
|
2241
2246
|
}
|
|
2242
|
-
info(message, title = null, options =
|
|
2247
|
+
info(message, title = null, options = {}) {
|
|
2243
2248
|
window['toastr'].info(message, title, options);
|
|
2244
2249
|
}
|
|
2245
2250
|
injectJquery() {
|
|
@@ -2247,8 +2252,8 @@ class ToastrService {
|
|
|
2247
2252
|
return;
|
|
2248
2253
|
}
|
|
2249
2254
|
const script = document.createElement('script');
|
|
2250
|
-
script.src = 'https://code.jquery.com/jquery-
|
|
2251
|
-
script.integrity = 'sha256
|
|
2255
|
+
script.src = 'https://code.jquery.com/jquery-3.6.0.min.js';
|
|
2256
|
+
script.integrity = 'sha256-/xUj+3OJU5yExlq6GSYGSHk7tPXikynS7ogEvDej/m4=';
|
|
2252
2257
|
script.crossOrigin = 'anonymous';
|
|
2253
2258
|
document.head.appendChild(script);
|
|
2254
2259
|
}
|
|
@@ -2455,6 +2460,7 @@ class ContextService {
|
|
|
2455
2460
|
this.breakpointObserver = breakpointObserver;
|
|
2456
2461
|
this.videoRecipesEnabled = false;
|
|
2457
2462
|
this.articlesInCatalogEnabled = false;
|
|
2463
|
+
this.defaultIngredientPicture = 'https://storage.googleapis.com/assets.miam.tech/generic/images/default-ingredient-picture.svg';
|
|
2458
2464
|
this.isSmallScreen$ = new BehaviorSubject(false);
|
|
2459
2465
|
this.miam = {
|
|
2460
2466
|
user: {
|
|
@@ -2523,6 +2529,9 @@ class ContextService {
|
|
|
2523
2529
|
hidden: this.recipesService.hidden,
|
|
2524
2530
|
search: (provider, query) => {
|
|
2525
2531
|
return this.recipesService.all({ remotefilter: { recipe_provider_id: provider, search: query } }).pipe(skipWhile(result => !result), map(response => response['data']));
|
|
2532
|
+
},
|
|
2533
|
+
setDefaultIngredientPicture: (url) => {
|
|
2534
|
+
this.defaultIngredientPicture = url;
|
|
2526
2535
|
}
|
|
2527
2536
|
},
|
|
2528
2537
|
analytics: {
|
|
@@ -4900,7 +4909,7 @@ CounterInputComponent.ɵcmp = ɵɵdefineComponent({ type: CounterInputComponent,
|
|
|
4900
4909
|
} if (rf & 2) {
|
|
4901
4910
|
var _t;
|
|
4902
4911
|
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.counterInput = _t.first);
|
|
4903
|
-
} }, inputs: { counter: "counter", minRange: "minRange", maxRange: "maxRange" }, outputs: { counterChange: "counterChange", selected: "selected" }, features: [ɵɵ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)
|
|
4912
|
+
} }, inputs: { counter: "counter", minRange: "minRange", maxRange: "maxRange" }, outputs: { counterChange: "counterChange", selected: "selected" }, features: [ɵɵ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) { if (rf & 1) {
|
|
4904
4913
|
ɵɵelementStart(0, "div", 0);
|
|
4905
4914
|
ɵɵelement(1, "ng-miam-icon", 1);
|
|
4906
4915
|
ɵɵelementStart(2, "span", 2);
|
|
@@ -4911,9 +4920,8 @@ CounterInputComponent.ɵcmp = ɵɵdefineComponent({ type: CounterInputComponent,
|
|
|
4911
4920
|
ɵɵ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(); });
|
|
4912
4921
|
ɵɵelementEnd();
|
|
4913
4922
|
ɵɵelementStart(6, "span", 6);
|
|
4914
|
-
|
|
4915
|
-
|
|
4916
|
-
ɵɵelementEnd();
|
|
4923
|
+
ɵɵlistener("click", function CounterInputComponent_Template_span_click_6_listener($event) { return ctx.increment($event); });
|
|
4924
|
+
ɵɵelement(7, "ng-miam-icon", 7);
|
|
4917
4925
|
ɵɵelementEnd();
|
|
4918
4926
|
ɵɵelementEnd();
|
|
4919
4927
|
} if (rf & 2) {
|
|
@@ -11884,493 +11892,506 @@ RecipeAddonComponent.ɵcmp = ɵɵdefineComponent({ type: RecipeAddonComponent, s
|
|
|
11884
11892
|
}] }); })();
|
|
11885
11893
|
|
|
11886
11894
|
const _c0$r = ["topContainerImg"];
|
|
11887
|
-
|
|
11888
|
-
|
|
11895
|
+
const _c1$b = ["mainContainer"];
|
|
11896
|
+
function RecipeDetailsComponent_div_0_img_6_Template(rf, ctx) { if (rf & 1) {
|
|
11897
|
+
ɵɵelement(0, "img", 40);
|
|
11889
11898
|
} if (rf & 2) {
|
|
11890
|
-
const
|
|
11891
|
-
ɵɵproperty("src",
|
|
11899
|
+
const ctx_r5 = ɵɵnextContext(2);
|
|
11900
|
+
ɵɵproperty("src", ctx_r5.recipe == null ? null : ctx_r5.recipe.attributes["media-url"], ɵɵsanitizeUrl);
|
|
11892
11901
|
} }
|
|
11893
|
-
function
|
|
11894
|
-
ɵɵelement(0, "div",
|
|
11902
|
+
function RecipeDetailsComponent_div_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
11903
|
+
ɵɵelement(0, "div", 41);
|
|
11895
11904
|
} }
|
|
11896
|
-
function
|
|
11897
|
-
ɵɵelement(0, "youtube-player",
|
|
11905
|
+
function RecipeDetailsComponent_div_0_youtube_player_8_Template(rf, ctx) { if (rf & 1) {
|
|
11906
|
+
ɵɵelement(0, "youtube-player", 42);
|
|
11898
11907
|
} if (rf & 2) {
|
|
11899
|
-
const
|
|
11900
|
-
ɵɵproperty("videoId",
|
|
11908
|
+
const ctx_r7 = ɵɵnextContext(2);
|
|
11909
|
+
ɵɵproperty("videoId", ctx_r7.recipe.videoId)("width", ctx_r7.playerWidth)("height", ctx_r7.playerHeight);
|
|
11901
11910
|
} }
|
|
11902
|
-
function
|
|
11903
|
-
ɵɵelementStart(0, "div",
|
|
11911
|
+
function RecipeDetailsComponent_div_0_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
11912
|
+
ɵɵelementStart(0, "div", 43);
|
|
11904
11913
|
ɵɵtext(1, "D\u00E9j\u00E0 ajout\u00E9e");
|
|
11905
11914
|
ɵɵelementEnd();
|
|
11906
11915
|
} }
|
|
11907
|
-
function
|
|
11908
|
-
ɵɵelement(0, "ng-miam-like-button",
|
|
11916
|
+
function RecipeDetailsComponent_div_0_ng_miam_like_button_12_Template(rf, ctx) { if (rf & 1) {
|
|
11917
|
+
ɵɵelement(0, "ng-miam-like-button", 44);
|
|
11909
11918
|
} if (rf & 2) {
|
|
11910
|
-
const
|
|
11911
|
-
ɵɵproperty("recipe",
|
|
11919
|
+
const ctx_r9 = ɵɵnextContext(2);
|
|
11920
|
+
ɵɵproperty("recipe", ctx_r9.recipe)("width", 26)("height", 26);
|
|
11912
11921
|
} }
|
|
11913
|
-
function
|
|
11914
|
-
ɵɵelement(0, "img",
|
|
11922
|
+
function RecipeDetailsComponent_div_0_img_16_Template(rf, ctx) { if (rf & 1) {
|
|
11923
|
+
ɵɵelement(0, "img", 45);
|
|
11915
11924
|
} if (rf & 2) {
|
|
11916
|
-
const
|
|
11917
|
-
ɵɵpropertyInterpolate("src",
|
|
11925
|
+
const ctx_r10 = ɵɵnextContext(2);
|
|
11926
|
+
ɵɵpropertyInterpolate("src", ctx_r10.recipe.filigraneLogoUrl, ɵɵsanitizeUrl);
|
|
11918
11927
|
} }
|
|
11919
|
-
function
|
|
11920
|
-
ɵɵelementStart(0, "div",
|
|
11928
|
+
function RecipeDetailsComponent_div_0_div_23_Template(rf, ctx) { if (rf & 1) {
|
|
11929
|
+
ɵɵelementStart(0, "div", 46);
|
|
11921
11930
|
ɵɵelementStart(1, "span");
|
|
11922
11931
|
ɵɵtext(2, "Pr\u00E9paration");
|
|
11923
11932
|
ɵɵelementEnd();
|
|
11924
|
-
ɵɵelementStart(3, "div",
|
|
11925
|
-
ɵɵelement(4, "ng-miam-icon",
|
|
11933
|
+
ɵɵelementStart(3, "div", 47);
|
|
11934
|
+
ɵɵelement(4, "ng-miam-icon", 48);
|
|
11926
11935
|
ɵɵelementStart(5, "span");
|
|
11927
11936
|
ɵɵtext(6);
|
|
11928
11937
|
ɵɵelementEnd();
|
|
11929
11938
|
ɵɵelementEnd();
|
|
11930
11939
|
ɵɵelementEnd();
|
|
11931
11940
|
} if (rf & 2) {
|
|
11932
|
-
const
|
|
11941
|
+
const ctx_r11 = ɵɵnextContext(2);
|
|
11933
11942
|
ɵɵadvance(4);
|
|
11934
|
-
ɵɵproperty("width", 24)("height", 24)("iconName",
|
|
11943
|
+
ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r11.icon.Preparation);
|
|
11935
11944
|
ɵɵadvance(2);
|
|
11936
|
-
ɵɵtextInterpolate(
|
|
11945
|
+
ɵɵtextInterpolate(ctx_r11.recipe == null ? null : ctx_r11.recipe.preparationTime);
|
|
11937
11946
|
} }
|
|
11938
|
-
function
|
|
11939
|
-
ɵɵelementStart(0, "div",
|
|
11947
|
+
function RecipeDetailsComponent_div_0_div_24_Template(rf, ctx) { if (rf & 1) {
|
|
11948
|
+
ɵɵelementStart(0, "div", 46);
|
|
11940
11949
|
ɵɵelementStart(1, "span");
|
|
11941
11950
|
ɵɵtext(2, "Cuisson");
|
|
11942
11951
|
ɵɵelementEnd();
|
|
11943
|
-
ɵɵelementStart(3, "div",
|
|
11944
|
-
ɵɵelement(4, "ng-miam-icon",
|
|
11952
|
+
ɵɵelementStart(3, "div", 47);
|
|
11953
|
+
ɵɵelement(4, "ng-miam-icon", 48);
|
|
11945
11954
|
ɵɵelementStart(5, "span");
|
|
11946
11955
|
ɵɵtext(6);
|
|
11947
11956
|
ɵɵelementEnd();
|
|
11948
11957
|
ɵɵelementEnd();
|
|
11949
11958
|
ɵɵelementEnd();
|
|
11950
11959
|
} if (rf & 2) {
|
|
11951
|
-
const
|
|
11960
|
+
const ctx_r12 = ɵɵnextContext(2);
|
|
11952
11961
|
ɵɵadvance(4);
|
|
11953
|
-
ɵɵproperty("width", 24)("height", 24)("iconName",
|
|
11962
|
+
ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r12.icon.Hot);
|
|
11954
11963
|
ɵɵadvance(2);
|
|
11955
|
-
ɵɵtextInterpolate(
|
|
11964
|
+
ɵɵtextInterpolate(ctx_r12.recipe == null ? null : ctx_r12.recipe.cookingTime);
|
|
11956
11965
|
} }
|
|
11957
|
-
function
|
|
11958
|
-
ɵɵelementStart(0, "div",
|
|
11966
|
+
function RecipeDetailsComponent_div_0_div_25_Template(rf, ctx) { if (rf & 1) {
|
|
11967
|
+
ɵɵelementStart(0, "div", 46);
|
|
11959
11968
|
ɵɵelementStart(1, "span");
|
|
11960
11969
|
ɵɵtext(2, "Repos");
|
|
11961
11970
|
ɵɵelementEnd();
|
|
11962
|
-
ɵɵelementStart(3, "div",
|
|
11963
|
-
ɵɵelement(4, "ng-miam-icon",
|
|
11971
|
+
ɵɵelementStart(3, "div", 47);
|
|
11972
|
+
ɵɵelement(4, "ng-miam-icon", 48);
|
|
11964
11973
|
ɵɵelementStart(5, "span");
|
|
11965
11974
|
ɵɵtext(6);
|
|
11966
11975
|
ɵɵelementEnd();
|
|
11967
11976
|
ɵɵelementEnd();
|
|
11968
11977
|
ɵɵelementEnd();
|
|
11969
11978
|
} if (rf & 2) {
|
|
11970
|
-
const
|
|
11979
|
+
const ctx_r13 = ɵɵnextContext(2);
|
|
11971
11980
|
ɵɵadvance(4);
|
|
11972
|
-
ɵɵproperty("width", 24)("height", 24)("iconName",
|
|
11981
|
+
ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r13.icon.Wait);
|
|
11973
11982
|
ɵɵadvance(2);
|
|
11974
|
-
ɵɵtextInterpolate(
|
|
11975
|
-
} }
|
|
11976
|
-
function RecipeDetailsComponent_div_0_ng_container_34_Template(rf, ctx) { if (rf & 1) {
|
|
11977
|
-
ɵɵelementContainerStart(0);
|
|
11978
|
-
ɵɵelement(1, "ng-miam-icon", 48);
|
|
11979
|
-
ɵɵelementContainerEnd();
|
|
11980
|
-
} if (rf & 2) {
|
|
11981
|
-
const ctx_r13 = ɵɵnextContext(2);
|
|
11982
|
-
ɵɵadvance(1);
|
|
11983
|
-
ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r13.icon.DifficultyLow);
|
|
11983
|
+
ɵɵtextInterpolate(ctx_r13.recipe == null ? null : ctx_r13.recipe.restingTime);
|
|
11984
11984
|
} }
|
|
11985
11985
|
function RecipeDetailsComponent_div_0_ng_container_35_Template(rf, ctx) { if (rf & 1) {
|
|
11986
11986
|
ɵɵelementContainerStart(0);
|
|
11987
|
-
ɵɵelement(1, "ng-miam-icon",
|
|
11987
|
+
ɵɵelement(1, "ng-miam-icon", 49);
|
|
11988
11988
|
ɵɵelementContainerEnd();
|
|
11989
11989
|
} if (rf & 2) {
|
|
11990
11990
|
const ctx_r14 = ɵɵnextContext(2);
|
|
11991
11991
|
ɵɵadvance(1);
|
|
11992
|
-
ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r14.icon.
|
|
11992
|
+
ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r14.icon.DifficultyLow);
|
|
11993
11993
|
} }
|
|
11994
11994
|
function RecipeDetailsComponent_div_0_ng_container_36_Template(rf, ctx) { if (rf & 1) {
|
|
11995
11995
|
ɵɵelementContainerStart(0);
|
|
11996
|
-
ɵɵelement(1, "ng-miam-icon",
|
|
11996
|
+
ɵɵelement(1, "ng-miam-icon", 49);
|
|
11997
11997
|
ɵɵelementContainerEnd();
|
|
11998
11998
|
} if (rf & 2) {
|
|
11999
11999
|
const ctx_r15 = ɵɵnextContext(2);
|
|
12000
12000
|
ɵɵadvance(1);
|
|
12001
|
-
ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r15.icon.
|
|
12001
|
+
ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r15.icon.DifficultyMedium);
|
|
12002
12002
|
} }
|
|
12003
12003
|
function RecipeDetailsComponent_div_0_ng_container_37_Template(rf, ctx) { if (rf & 1) {
|
|
12004
|
+
ɵɵelementContainerStart(0);
|
|
12005
|
+
ɵɵelement(1, "ng-miam-icon", 49);
|
|
12006
|
+
ɵɵelementContainerEnd();
|
|
12007
|
+
} if (rf & 2) {
|
|
12008
|
+
const ctx_r16 = ɵɵnextContext(2);
|
|
12009
|
+
ɵɵadvance(1);
|
|
12010
|
+
ɵɵproperty("width", 56)("height", 16)("iconName", ctx_r16.icon.DifficultyHight);
|
|
12011
|
+
} }
|
|
12012
|
+
function RecipeDetailsComponent_div_0_ng_container_38_Template(rf, ctx) { if (rf & 1) {
|
|
12004
12013
|
ɵɵelementContainer(0);
|
|
12005
12014
|
} }
|
|
12006
|
-
function
|
|
12007
|
-
const
|
|
12008
|
-
ɵɵelementStart(0, "button",
|
|
12009
|
-
ɵɵlistener("click", function
|
|
12015
|
+
function RecipeDetailsComponent_div_0_button_51_Template(rf, ctx) { if (rf & 1) {
|
|
12016
|
+
const _r25 = ɵɵgetCurrentView();
|
|
12017
|
+
ɵɵelementStart(0, "button", 50);
|
|
12018
|
+
ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_51_Template_button_click_0_listener() { ɵɵrestoreView(_r25); const ctx_r24 = ɵɵnextContext(2); return ctx_r24.addRecipe(); });
|
|
12010
12019
|
ɵɵelementStart(1, "span");
|
|
12011
12020
|
ɵɵtext(2);
|
|
12012
12021
|
ɵɵpipe(3, "async");
|
|
12013
12022
|
ɵɵelementEnd();
|
|
12014
|
-
ɵɵelement(4, "ng-miam-icon",
|
|
12023
|
+
ɵɵelement(4, "ng-miam-icon", 51);
|
|
12015
12024
|
ɵɵpipe(5, "async");
|
|
12016
12025
|
ɵɵelementEnd();
|
|
12017
12026
|
} if (rf & 2) {
|
|
12018
|
-
const
|
|
12027
|
+
const ctx_r18 = ɵɵnextContext(2);
|
|
12019
12028
|
var tmp_0_0 = null;
|
|
12020
12029
|
var tmp_3_0 = null;
|
|
12021
12030
|
ɵɵadvance(2);
|
|
12022
|
-
ɵɵtextInterpolate1(" ", ((tmp_0_0 = ɵɵpipeBind1(3, 4,
|
|
12031
|
+
ɵɵtextInterpolate1(" ", ((tmp_0_0 = ɵɵ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", " ");
|
|
12023
12032
|
ɵɵadvance(2);
|
|
12024
|
-
ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = ɵɵpipeBind1(5, 6,
|
|
12033
|
+
ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = ɵɵ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);
|
|
12025
12034
|
} }
|
|
12026
|
-
function
|
|
12027
|
-
const
|
|
12028
|
-
ɵɵelementStart(0, "ng-miam-addon-link",
|
|
12029
|
-
ɵɵlistener("showAddon", function
|
|
12035
|
+
function RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template(rf, ctx) { if (rf & 1) {
|
|
12036
|
+
const _r27 = ɵɵgetCurrentView();
|
|
12037
|
+
ɵɵelementStart(0, "ng-miam-addon-link", 52);
|
|
12038
|
+
ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template_ng_miam_addon_link_showAddon_0_listener() { ɵɵrestoreView(_r27); const ctx_r26 = ɵɵnextContext(2); return ctx_r26.toggleAddon(); });
|
|
12030
12039
|
ɵɵelementEnd();
|
|
12031
12040
|
} if (rf & 2) {
|
|
12032
|
-
const
|
|
12033
|
-
ɵɵproperty("recipe",
|
|
12041
|
+
const ctx_r19 = ɵɵnextContext(2);
|
|
12042
|
+
ɵɵproperty("recipe", ctx_r19.recipe);
|
|
12034
12043
|
} }
|
|
12035
|
-
|
|
12036
|
-
|
|
12037
|
-
|
|
12038
|
-
ɵɵelementStart(1, "div");
|
|
12039
|
-
ɵɵtext(2);
|
|
12040
|
-
ɵɵpipe(3, "capitalizeFirstLetter");
|
|
12044
|
+
function RecipeDetailsComponent_div_0_div_55_div_12_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
12045
|
+
ɵɵelementStart(0, "div");
|
|
12046
|
+
ɵɵelement(1, "img", 68);
|
|
12041
12047
|
ɵɵelementEnd();
|
|
12042
|
-
|
|
12043
|
-
|
|
12044
|
-
|
|
12048
|
+
} if (rf & 2) {
|
|
12049
|
+
const ingredient_r30 = ɵɵnextContext().$implicit;
|
|
12050
|
+
const ctx_r32 = ɵɵnextContext(3);
|
|
12051
|
+
ɵɵadvance(1);
|
|
12052
|
+
ɵɵproperty("src", ctx_r32.ingredientPicture(ingredient_r30), ɵɵsanitizeUrl);
|
|
12053
|
+
} }
|
|
12054
|
+
const _c2$3 = function (a0) { return { "checked": a0 }; };
|
|
12055
|
+
function RecipeDetailsComponent_div_0_div_55_div_12_Template(rf, ctx) { if (rf & 1) {
|
|
12056
|
+
ɵɵelementStart(0, "div", 66);
|
|
12057
|
+
ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_55_div_12_div_1_Template, 2, 1, "div", 67);
|
|
12058
|
+
ɵɵelementStart(2, "div");
|
|
12059
|
+
ɵɵtext(3);
|
|
12060
|
+
ɵɵpipe(4, "capitalizeFirstLetter");
|
|
12061
|
+
ɵɵelementEnd();
|
|
12062
|
+
ɵɵelementStart(5, "div", 60);
|
|
12063
|
+
ɵɵtext(6);
|
|
12064
|
+
ɵɵpipe(7, "readableFloatNumber");
|
|
12045
12065
|
ɵɵelementEnd();
|
|
12046
12066
|
ɵɵelementEnd();
|
|
12047
12067
|
} if (rf & 2) {
|
|
12048
|
-
const
|
|
12049
|
-
const
|
|
12050
|
-
const
|
|
12051
|
-
ɵɵproperty("ngClass", ɵɵpureFunction1(
|
|
12068
|
+
const ingredient_r30 = ctx.$implicit;
|
|
12069
|
+
const i_r31 = ctx.index;
|
|
12070
|
+
const ctx_r28 = ɵɵnextContext(3);
|
|
12071
|
+
ɵɵproperty("ngClass", ɵɵpureFunction1(9, _c2$3, ctx_r28.ingredientsChecked[i_r31]));
|
|
12072
|
+
ɵɵadvance(1);
|
|
12073
|
+
ɵɵproperty("ngIf", ctx_r28.ingredientsPictures);
|
|
12052
12074
|
ɵɵadvance(2);
|
|
12053
|
-
ɵɵtextInterpolate1(" ", ɵɵpipeBind1(
|
|
12075
|
+
ɵɵtextInterpolate1(" ", ɵɵpipeBind1(4, 4, ingredient_r30.name), "");
|
|
12054
12076
|
ɵɵadvance(3);
|
|
12055
|
-
ɵɵtextInterpolate1(" ", ɵɵpipeBind2(
|
|
12077
|
+
ɵɵtextInterpolate1(" ", ɵɵpipeBind2(7, 6, ingredient_r30.qty, ingredient_r30.unit), "");
|
|
12056
12078
|
} }
|
|
12057
|
-
function
|
|
12058
|
-
ɵɵelement(0, "ng-miam-icon",
|
|
12079
|
+
function RecipeDetailsComponent_div_0_div_55_div_17_ng_miam_icon_6_Template(rf, ctx) { if (rf & 1) {
|
|
12080
|
+
ɵɵelement(0, "ng-miam-icon", 73);
|
|
12059
12081
|
} if (rf & 2) {
|
|
12060
|
-
const
|
|
12061
|
-
ɵɵproperty("height", 16)("width", 16)("iconName",
|
|
12082
|
+
const ctx_r36 = ɵɵnextContext(4);
|
|
12083
|
+
ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r36.icon.CheckCircleFill);
|
|
12062
12084
|
} }
|
|
12063
|
-
function
|
|
12064
|
-
const
|
|
12065
|
-
ɵɵelementStart(0, "div",
|
|
12066
|
-
ɵɵlistener("click", function
|
|
12067
|
-
ɵɵelementStart(1, "div",
|
|
12085
|
+
function RecipeDetailsComponent_div_0_div_55_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
12086
|
+
const _r38 = ɵɵgetCurrentView();
|
|
12087
|
+
ɵɵelementStart(0, "div", 69);
|
|
12088
|
+
ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_55_div_17_Template_div_click_0_listener() { ɵɵrestoreView(_r38); const i_r35 = ctx.index; const ctx_r37 = ɵɵnextContext(3); return ctx_r37.changeActiveStep(i_r35); });
|
|
12089
|
+
ɵɵelementStart(1, "div", 70);
|
|
12068
12090
|
ɵɵelementStart(2, "strong");
|
|
12069
12091
|
ɵɵtext(3);
|
|
12070
12092
|
ɵɵelementEnd();
|
|
12071
12093
|
ɵɵelementEnd();
|
|
12072
|
-
ɵɵelementStart(4, "div",
|
|
12094
|
+
ɵɵelementStart(4, "div", 71);
|
|
12073
12095
|
ɵɵtext(5);
|
|
12074
12096
|
ɵɵelementEnd();
|
|
12075
|
-
ɵɵtemplate(6,
|
|
12097
|
+
ɵɵtemplate(6, RecipeDetailsComponent_div_0_div_55_div_17_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 72);
|
|
12076
12098
|
ɵɵelementEnd();
|
|
12077
12099
|
} if (rf & 2) {
|
|
12078
|
-
const
|
|
12079
|
-
const
|
|
12080
|
-
const
|
|
12081
|
-
ɵɵclassProp("active",
|
|
12100
|
+
const step_r34 = ctx.$implicit;
|
|
12101
|
+
const i_r35 = ctx.index;
|
|
12102
|
+
const ctx_r29 = ɵɵnextContext(3);
|
|
12103
|
+
ɵɵclassProp("active", i_r35 === ctx_r29.activeStep)("miam-recipe-details__panel__done", i_r35 < ctx_r29.activeStep);
|
|
12082
12104
|
ɵɵadvance(3);
|
|
12083
|
-
ɵɵtextInterpolate(
|
|
12105
|
+
ɵɵtextInterpolate(i_r35 + 1);
|
|
12084
12106
|
ɵɵadvance(2);
|
|
12085
|
-
ɵɵtextInterpolate(
|
|
12107
|
+
ɵɵtextInterpolate(step_r34 == null ? null : step_r34.attributes == null ? null : step_r34.attributes.description);
|
|
12086
12108
|
ɵɵadvance(1);
|
|
12087
|
-
ɵɵproperty("ngIf",
|
|
12109
|
+
ɵɵproperty("ngIf", i_r35 <= ctx_r29.activeStep);
|
|
12088
12110
|
} }
|
|
12089
|
-
function
|
|
12090
|
-
const
|
|
12091
|
-
ɵɵelementStart(0, "div",
|
|
12092
|
-
ɵɵelementStart(1, "div",
|
|
12093
|
-
ɵɵelementStart(2, "div",
|
|
12111
|
+
function RecipeDetailsComponent_div_0_div_55_Template(rf, ctx) { if (rf & 1) {
|
|
12112
|
+
const _r40 = ɵɵgetCurrentView();
|
|
12113
|
+
ɵɵelementStart(0, "div", 53);
|
|
12114
|
+
ɵɵelementStart(1, "div", 54);
|
|
12115
|
+
ɵɵelementStart(2, "div", 55);
|
|
12094
12116
|
ɵɵtext(3, " Ingr\u00E9dients ");
|
|
12095
12117
|
ɵɵelementEnd();
|
|
12096
|
-
ɵɵelementStart(4, "div",
|
|
12097
|
-
ɵɵelementStart(5, "div",
|
|
12098
|
-
ɵɵelementStart(6, "ng-miam-counter-input",
|
|
12099
|
-
ɵɵlistener("counterChange", function
|
|
12118
|
+
ɵɵelementStart(4, "div", 56);
|
|
12119
|
+
ɵɵelementStart(5, "div", 57);
|
|
12120
|
+
ɵɵelementStart(6, "ng-miam-counter-input", 58);
|
|
12121
|
+
ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_div_55_Template_ng_miam_counter_input_counterChange_6_listener($event) { ɵɵrestoreView(_r40); const ctx_r39 = ɵɵnextContext(2); return ctx_r39.updateGuests($event); });
|
|
12100
12122
|
ɵɵelementEnd();
|
|
12101
|
-
ɵɵelementStart(7, "span",
|
|
12123
|
+
ɵɵelementStart(7, "span", 59);
|
|
12102
12124
|
ɵɵtext(8);
|
|
12103
12125
|
ɵɵelementEnd();
|
|
12104
12126
|
ɵɵelementEnd();
|
|
12105
|
-
ɵɵelementStart(9, "span",
|
|
12127
|
+
ɵɵelementStart(9, "span", 60);
|
|
12106
12128
|
ɵɵtext(10, "Quantit\u00E9");
|
|
12107
12129
|
ɵɵelementEnd();
|
|
12108
12130
|
ɵɵelementEnd();
|
|
12109
|
-
ɵɵelementStart(11, "div",
|
|
12110
|
-
ɵɵtemplate(12,
|
|
12131
|
+
ɵɵelementStart(11, "div", 61);
|
|
12132
|
+
ɵɵtemplate(12, RecipeDetailsComponent_div_0_div_55_div_12_Template, 8, 11, "div", 62);
|
|
12111
12133
|
ɵɵelementEnd();
|
|
12112
12134
|
ɵɵelementEnd();
|
|
12113
|
-
ɵɵelementStart(13, "div",
|
|
12114
|
-
ɵɵelementStart(14, "div",
|
|
12135
|
+
ɵɵelementStart(13, "div", 63);
|
|
12136
|
+
ɵɵelementStart(14, "div", 55);
|
|
12115
12137
|
ɵɵtext(15, " Pr\u00E9paration ");
|
|
12116
12138
|
ɵɵelementEnd();
|
|
12117
|
-
ɵɵelementStart(16, "div",
|
|
12118
|
-
ɵɵtemplate(17,
|
|
12139
|
+
ɵɵelementStart(16, "div", 64);
|
|
12140
|
+
ɵɵtemplate(17, RecipeDetailsComponent_div_0_div_55_div_17_Template, 7, 7, "div", 65);
|
|
12119
12141
|
ɵɵelementEnd();
|
|
12120
12142
|
ɵɵelementEnd();
|
|
12121
12143
|
ɵɵelementEnd();
|
|
12122
12144
|
} if (rf & 2) {
|
|
12123
|
-
const
|
|
12145
|
+
const ctx_r20 = ɵɵnextContext(2);
|
|
12124
12146
|
ɵɵadvance(6);
|
|
12125
|
-
ɵɵproperty("counter", (
|
|
12147
|
+
ɵɵproperty("counter", (ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedGuests) || ctx_r20.recipe.guests);
|
|
12126
12148
|
ɵɵadvance(2);
|
|
12127
|
-
ɵɵtextInterpolate1("Pour ",
|
|
12149
|
+
ɵɵtextInterpolate1("Pour ", ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedGuests, " personnes");
|
|
12128
12150
|
ɵɵadvance(4);
|
|
12129
|
-
ɵɵproperty("ngForOf",
|
|
12151
|
+
ɵɵproperty("ngForOf", ctx_r20.recipe == null ? null : ctx_r20.recipe.modifiedIngredients);
|
|
12130
12152
|
ɵɵadvance(5);
|
|
12131
|
-
ɵɵproperty("ngForOf",
|
|
12153
|
+
ɵɵproperty("ngForOf", ctx_r20.steps);
|
|
12132
12154
|
} }
|
|
12133
|
-
function
|
|
12134
|
-
ɵɵelementStart(0, "div",
|
|
12155
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
12156
|
+
ɵɵelementStart(0, "div", 66);
|
|
12135
12157
|
ɵɵelementStart(1, "div");
|
|
12136
12158
|
ɵɵtext(2);
|
|
12137
12159
|
ɵɵpipe(3, "capitalizeFirstLetter");
|
|
12138
12160
|
ɵɵelementEnd();
|
|
12139
|
-
ɵɵelementStart(4, "div",
|
|
12161
|
+
ɵɵelementStart(4, "div", 60);
|
|
12140
12162
|
ɵɵtext(5);
|
|
12141
12163
|
ɵɵpipe(6, "readableFloatNumber");
|
|
12142
12164
|
ɵɵelementEnd();
|
|
12143
12165
|
ɵɵelementEnd();
|
|
12144
12166
|
} if (rf & 2) {
|
|
12145
|
-
const
|
|
12146
|
-
const
|
|
12147
|
-
const
|
|
12148
|
-
ɵɵproperty("ngClass", ɵɵpureFunction1(8,
|
|
12167
|
+
const ingredient_r46 = ctx.$implicit;
|
|
12168
|
+
const i_r47 = ctx.index;
|
|
12169
|
+
const ctx_r45 = ɵɵnextContext(4);
|
|
12170
|
+
ɵɵproperty("ngClass", ɵɵpureFunction1(8, _c2$3, ctx_r45.ingredientsChecked[i_r47]));
|
|
12149
12171
|
ɵɵadvance(2);
|
|
12150
|
-
ɵɵtextInterpolate1(" ", ɵɵpipeBind1(3, 3,
|
|
12172
|
+
ɵɵtextInterpolate1(" ", ɵɵpipeBind1(3, 3, ingredient_r46.name), "");
|
|
12151
12173
|
ɵɵadvance(3);
|
|
12152
|
-
ɵɵtextInterpolate1(" ", ɵɵpipeBind2(6, 5,
|
|
12174
|
+
ɵɵtextInterpolate1(" ", ɵɵpipeBind2(6, 5, ingredient_r46.qty, ingredient_r46.unit), "");
|
|
12153
12175
|
} }
|
|
12154
|
-
function
|
|
12155
|
-
const
|
|
12176
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template(rf, ctx) { if (rf & 1) {
|
|
12177
|
+
const _r49 = ɵɵgetCurrentView();
|
|
12156
12178
|
ɵɵelementContainerStart(0);
|
|
12157
|
-
ɵɵelementStart(1, "div",
|
|
12158
|
-
ɵɵelementStart(2, "div",
|
|
12159
|
-
ɵɵelementStart(3, "ng-miam-counter-input",
|
|
12160
|
-
ɵɵlistener("counterChange", function
|
|
12179
|
+
ɵɵelementStart(1, "div", 56);
|
|
12180
|
+
ɵɵelementStart(2, "div", 57);
|
|
12181
|
+
ɵɵelementStart(3, "ng-miam-counter-input", 58);
|
|
12182
|
+
ɵɵlistener("counterChange", function RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template_ng_miam_counter_input_counterChange_3_listener($event) { ɵɵrestoreView(_r49); const ctx_r48 = ɵɵnextContext(3); return ctx_r48.updateGuests($event); });
|
|
12161
12183
|
ɵɵelementEnd();
|
|
12162
|
-
ɵɵelementStart(4, "span",
|
|
12184
|
+
ɵɵelementStart(4, "span", 59);
|
|
12163
12185
|
ɵɵtext(5);
|
|
12164
12186
|
ɵɵelementEnd();
|
|
12165
12187
|
ɵɵelementEnd();
|
|
12166
|
-
ɵɵelementStart(6, "span",
|
|
12188
|
+
ɵɵelementStart(6, "span", 60);
|
|
12167
12189
|
ɵɵtext(7, "Quantit\u00E9");
|
|
12168
12190
|
ɵɵelementEnd();
|
|
12169
12191
|
ɵɵelementEnd();
|
|
12170
|
-
ɵɵelementStart(8, "div",
|
|
12171
|
-
ɵɵtemplate(9,
|
|
12192
|
+
ɵɵelementStart(8, "div", 61);
|
|
12193
|
+
ɵɵtemplate(9, RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_div_9_Template, 7, 10, "div", 62);
|
|
12172
12194
|
ɵɵelementEnd();
|
|
12173
12195
|
ɵɵelementContainerEnd();
|
|
12174
12196
|
} if (rf & 2) {
|
|
12175
|
-
const
|
|
12197
|
+
const ctx_r42 = ɵɵnextContext(3);
|
|
12176
12198
|
ɵɵadvance(3);
|
|
12177
|
-
ɵɵproperty("counter",
|
|
12199
|
+
ɵɵproperty("counter", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedGuests);
|
|
12178
12200
|
ɵɵadvance(2);
|
|
12179
|
-
ɵɵtextInterpolate1("Pour ",
|
|
12201
|
+
ɵɵtextInterpolate1("Pour ", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedGuests, " personnes");
|
|
12180
12202
|
ɵɵadvance(4);
|
|
12181
|
-
ɵɵproperty("ngForOf",
|
|
12203
|
+
ɵɵproperty("ngForOf", ctx_r42.recipe == null ? null : ctx_r42.recipe.modifiedIngredients);
|
|
12182
12204
|
} }
|
|
12183
|
-
function
|
|
12184
|
-
ɵɵelement(0, "ng-miam-icon",
|
|
12205
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_ng_miam_icon_6_Template(rf, ctx) { if (rf & 1) {
|
|
12206
|
+
ɵɵelement(0, "ng-miam-icon", 73);
|
|
12185
12207
|
} if (rf & 2) {
|
|
12186
|
-
const
|
|
12187
|
-
ɵɵproperty("height", 16)("width", 16)("iconName",
|
|
12208
|
+
const ctx_r53 = ɵɵnextContext(5);
|
|
12209
|
+
ɵɵproperty("height", 16)("width", 16)("iconName", ctx_r53.icon.CheckCircleFill);
|
|
12188
12210
|
} }
|
|
12189
|
-
function
|
|
12190
|
-
const
|
|
12191
|
-
ɵɵelementStart(0, "div",
|
|
12192
|
-
ɵɵlistener("click", function
|
|
12193
|
-
ɵɵelementStart(1, "div",
|
|
12211
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
12212
|
+
const _r55 = ɵɵgetCurrentView();
|
|
12213
|
+
ɵɵelementStart(0, "div", 69);
|
|
12214
|
+
ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template_div_click_0_listener() { ɵɵrestoreView(_r55); const i_r52 = ctx.index; const ctx_r54 = ɵɵnextContext(4); return ctx_r54.changeActiveStep(i_r52); });
|
|
12215
|
+
ɵɵelementStart(1, "div", 70);
|
|
12194
12216
|
ɵɵelementStart(2, "strong");
|
|
12195
12217
|
ɵɵtext(3);
|
|
12196
12218
|
ɵɵelementEnd();
|
|
12197
12219
|
ɵɵelementEnd();
|
|
12198
|
-
ɵɵelementStart(4, "div",
|
|
12220
|
+
ɵɵelementStart(4, "div", 71);
|
|
12199
12221
|
ɵɵtext(5);
|
|
12200
12222
|
ɵɵelementEnd();
|
|
12201
|
-
ɵɵtemplate(6,
|
|
12223
|
+
ɵɵtemplate(6, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_ng_miam_icon_6_Template, 1, 3, "ng-miam-icon", 72);
|
|
12202
12224
|
ɵɵelementEnd();
|
|
12203
12225
|
} if (rf & 2) {
|
|
12204
|
-
const
|
|
12205
|
-
const
|
|
12206
|
-
const
|
|
12207
|
-
ɵɵclassProp("active",
|
|
12226
|
+
const step_r51 = ctx.$implicit;
|
|
12227
|
+
const i_r52 = ctx.index;
|
|
12228
|
+
const ctx_r50 = ɵɵnextContext(4);
|
|
12229
|
+
ɵɵclassProp("active", i_r52 === ctx_r50.activeStep)("miam-recipe-details__panel__done", i_r52 < ctx_r50.activeStep);
|
|
12208
12230
|
ɵɵadvance(3);
|
|
12209
|
-
ɵɵtextInterpolate(
|
|
12231
|
+
ɵɵtextInterpolate(i_r52 + 1);
|
|
12210
12232
|
ɵɵadvance(2);
|
|
12211
|
-
ɵɵtextInterpolate(
|
|
12233
|
+
ɵɵtextInterpolate(step_r51 == null ? null : step_r51.attributes == null ? null : step_r51.attributes.description);
|
|
12212
12234
|
ɵɵadvance(1);
|
|
12213
|
-
ɵɵproperty("ngIf",
|
|
12235
|
+
ɵɵproperty("ngIf", i_r52 <= ctx_r50.activeStep);
|
|
12214
12236
|
} }
|
|
12215
|
-
function
|
|
12216
|
-
ɵɵelementStart(0, "div",
|
|
12217
|
-
ɵɵtemplate(1,
|
|
12237
|
+
function RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_Template(rf, ctx) { if (rf & 1) {
|
|
12238
|
+
ɵɵelementStart(0, "div", 64);
|
|
12239
|
+
ɵɵtemplate(1, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_div_1_Template, 7, 7, "div", 65);
|
|
12218
12240
|
ɵɵelementEnd();
|
|
12219
12241
|
} if (rf & 2) {
|
|
12220
|
-
const
|
|
12242
|
+
const ctx_r44 = ɵɵnextContext(3);
|
|
12221
12243
|
ɵɵadvance(1);
|
|
12222
|
-
ɵɵproperty("ngForOf",
|
|
12244
|
+
ɵɵproperty("ngForOf", ctx_r44.steps);
|
|
12223
12245
|
} }
|
|
12224
|
-
const
|
|
12225
|
-
function
|
|
12226
|
-
const
|
|
12227
|
-
ɵɵelementStart(0, "div",
|
|
12228
|
-
ɵɵelementStart(2, "div",
|
|
12229
|
-
ɵɵelementStart(3, "button",
|
|
12230
|
-
ɵɵlistener("click", function
|
|
12246
|
+
const _c3$2 = function (a0) { return { "active": a0 }; };
|
|
12247
|
+
function RecipeDetailsComponent_div_0_ng_template_56_Template(rf, ctx) { if (rf & 1) {
|
|
12248
|
+
const _r57 = ɵɵgetCurrentView();
|
|
12249
|
+
ɵɵelementStart(0, "div", 74, 75);
|
|
12250
|
+
ɵɵelementStart(2, "div", 76);
|
|
12251
|
+
ɵɵelementStart(3, "button", 77);
|
|
12252
|
+
ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_Template_button_click_3_listener() { ɵɵrestoreView(_r57); const _r41 = ɵɵreference(1); const ctx_r56 = ɵɵnextContext(2); ctx_r56.toggleShowIngredient(true); return _r41.scrollIntoView(); });
|
|
12231
12253
|
ɵɵtext(4, "Ingredients");
|
|
12232
12254
|
ɵɵelementEnd();
|
|
12233
|
-
ɵɵelementStart(5, "button",
|
|
12234
|
-
ɵɵlistener("click", function
|
|
12255
|
+
ɵɵelementStart(5, "button", 77);
|
|
12256
|
+
ɵɵlistener("click", function RecipeDetailsComponent_div_0_ng_template_56_Template_button_click_5_listener() { ɵɵrestoreView(_r57); const _r41 = ɵɵreference(1); const ctx_r58 = ɵɵnextContext(2); ctx_r58.toggleShowIngredient(false); return _r41.scrollIntoView(); });
|
|
12235
12257
|
ɵɵtext(6, "Pr\u00E9paration");
|
|
12236
12258
|
ɵɵelementEnd();
|
|
12237
12259
|
ɵɵelementEnd();
|
|
12238
|
-
ɵɵtemplate(7,
|
|
12239
|
-
ɵɵtemplate(8,
|
|
12260
|
+
ɵɵtemplate(7, RecipeDetailsComponent_div_0_ng_template_56_ng_container_7_Template, 10, 3, "ng-container", 78);
|
|
12261
|
+
ɵɵtemplate(8, RecipeDetailsComponent_div_0_ng_template_56_ng_template_8_Template, 2, 1, "ng-template", null, 79, ɵɵtemplateRefExtractor);
|
|
12240
12262
|
ɵɵelementEnd();
|
|
12241
12263
|
} if (rf & 2) {
|
|
12242
|
-
const
|
|
12243
|
-
const
|
|
12264
|
+
const _r43 = ɵɵreference(9);
|
|
12265
|
+
const ctx_r22 = ɵɵnextContext(2);
|
|
12244
12266
|
ɵɵadvance(3);
|
|
12245
|
-
ɵɵproperty("ngClass", ɵɵpureFunction1(4,
|
|
12267
|
+
ɵɵproperty("ngClass", ɵɵpureFunction1(4, _c3$2, ctx_r22.showIngredient));
|
|
12246
12268
|
ɵɵadvance(2);
|
|
12247
|
-
ɵɵproperty("ngClass", ɵɵpureFunction1(6,
|
|
12269
|
+
ɵɵproperty("ngClass", ɵɵpureFunction1(6, _c3$2, !ctx_r22.showIngredient));
|
|
12248
12270
|
ɵɵadvance(2);
|
|
12249
|
-
ɵɵproperty("ngIf",
|
|
12271
|
+
ɵɵproperty("ngIf", ctx_r22.showIngredient)("ngIfElse", _r43);
|
|
12250
12272
|
} }
|
|
12251
|
-
function
|
|
12252
|
-
const
|
|
12253
|
-
ɵɵelementStart(0, "button",
|
|
12254
|
-
ɵɵlistener("click", function
|
|
12273
|
+
function RecipeDetailsComponent_div_0_button_62_Template(rf, ctx) { if (rf & 1) {
|
|
12274
|
+
const _r60 = ɵɵgetCurrentView();
|
|
12275
|
+
ɵɵelementStart(0, "button", 50);
|
|
12276
|
+
ɵɵlistener("click", function RecipeDetailsComponent_div_0_button_62_Template_button_click_0_listener() { ɵɵrestoreView(_r60); const ctx_r59 = ɵɵnextContext(2); return ctx_r59.addRecipe(); });
|
|
12255
12277
|
ɵɵelementStart(1, "span");
|
|
12256
12278
|
ɵɵtext(2);
|
|
12257
12279
|
ɵɵpipe(3, "async");
|
|
12258
12280
|
ɵɵelementEnd();
|
|
12259
|
-
ɵɵelement(4, "ng-miam-icon",
|
|
12281
|
+
ɵɵelement(4, "ng-miam-icon", 51);
|
|
12260
12282
|
ɵɵpipe(5, "async");
|
|
12261
12283
|
ɵɵelementEnd();
|
|
12262
12284
|
} if (rf & 2) {
|
|
12263
|
-
const
|
|
12285
|
+
const ctx_r23 = ɵɵnextContext(2);
|
|
12264
12286
|
var tmp_0_0 = null;
|
|
12265
12287
|
var tmp_3_0 = null;
|
|
12266
12288
|
ɵɵadvance(2);
|
|
12267
|
-
ɵɵtextInterpolate1(" ", ((tmp_0_0 = ɵɵpipeBind1(3, 4,
|
|
12289
|
+
ɵɵtextInterpolate1(" ", ((tmp_0_0 = ɵɵ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", " ");
|
|
12268
12290
|
ɵɵadvance(2);
|
|
12269
|
-
ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = ɵɵpipeBind1(5, 6,
|
|
12291
|
+
ɵɵproperty("width", 24)("height", 24)("iconName", ((tmp_3_0 = ɵɵ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);
|
|
12270
12292
|
} }
|
|
12271
12293
|
function RecipeDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
12272
|
-
const
|
|
12273
|
-
ɵɵelementStart(0, "div", 2);
|
|
12274
|
-
ɵɵlistener("scroll", function RecipeDetailsComponent_div_0_Template_div_scroll_0_listener($event) { ɵɵrestoreView(_r59); const ctx_r58 = ɵɵnextContext(); return ctx_r58.onScroll($event); });
|
|
12275
|
-
ɵɵelementStart(1, "div", 3);
|
|
12294
|
+
const _r62 = ɵɵgetCurrentView();
|
|
12295
|
+
ɵɵelementStart(0, "div", 2, 3);
|
|
12276
12296
|
ɵɵelementStart(2, "div", 4);
|
|
12277
|
-
ɵɵelementStart(3, "div", 5
|
|
12278
|
-
|
|
12279
|
-
ɵɵtemplate(6,
|
|
12280
|
-
ɵɵtemplate(7,
|
|
12281
|
-
ɵɵtemplate(8,
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
ɵɵelement(14, "ng-miam-icon",
|
|
12297
|
+
ɵɵelementStart(3, "div", 5);
|
|
12298
|
+
ɵɵelementStart(4, "div", 6, 7);
|
|
12299
|
+
ɵɵtemplate(6, RecipeDetailsComponent_div_0_img_6_Template, 1, 1, "img", 8);
|
|
12300
|
+
ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_7_Template, 1, 0, "div", 9);
|
|
12301
|
+
ɵɵtemplate(8, RecipeDetailsComponent_div_0_youtube_player_8_Template, 1, 3, "youtube-player", 10);
|
|
12302
|
+
ɵɵtemplate(9, RecipeDetailsComponent_div_0_div_9_Template, 2, 0, "div", 11);
|
|
12303
|
+
ɵɵpipe(10, "async");
|
|
12304
|
+
ɵɵelementStart(11, "div", 12);
|
|
12305
|
+
ɵɵtemplate(12, RecipeDetailsComponent_div_0_ng_miam_like_button_12_Template, 1, 3, "ng-miam-like-button", 13);
|
|
12306
|
+
ɵɵpipe(13, "async");
|
|
12307
|
+
ɵɵelement(14, "ng-miam-icon", 14);
|
|
12308
|
+
ɵɵelement(15, "ng-miam-icon", 14);
|
|
12288
12309
|
ɵɵelementEnd();
|
|
12289
|
-
ɵɵtemplate(
|
|
12310
|
+
ɵɵtemplate(16, RecipeDetailsComponent_div_0_img_16_Template, 1, 1, "img", 15);
|
|
12290
12311
|
ɵɵelementEnd();
|
|
12291
|
-
ɵɵelementStart(16, "div", 15);
|
|
12292
12312
|
ɵɵelementStart(17, "div", 16);
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
|
|
12313
|
+
ɵɵelementStart(18, "div", 17);
|
|
12314
|
+
ɵɵelement(19, "ng-miam-icon", 18);
|
|
12315
|
+
ɵɵelementStart(20, "span");
|
|
12316
|
+
ɵɵtext(21);
|
|
12296
12317
|
ɵɵelementEnd();
|
|
12297
12318
|
ɵɵelementEnd();
|
|
12298
|
-
ɵɵelementStart(
|
|
12299
|
-
ɵɵtemplate(
|
|
12300
|
-
ɵɵtemplate(
|
|
12301
|
-
ɵɵtemplate(
|
|
12319
|
+
ɵɵelementStart(22, "div", 19);
|
|
12320
|
+
ɵɵtemplate(23, RecipeDetailsComponent_div_0_div_23_Template, 7, 4, "div", 20);
|
|
12321
|
+
ɵɵtemplate(24, RecipeDetailsComponent_div_0_div_24_Template, 7, 4, "div", 20);
|
|
12322
|
+
ɵɵtemplate(25, RecipeDetailsComponent_div_0_div_25_Template, 7, 4, "div", 20);
|
|
12302
12323
|
ɵɵelementEnd();
|
|
12303
12324
|
ɵɵelementEnd();
|
|
12304
12325
|
ɵɵelementEnd();
|
|
12305
|
-
ɵɵelementStart(25, "div", 20);
|
|
12306
12326
|
ɵɵelementStart(26, "div", 21);
|
|
12307
|
-
ɵɵelementStart(27, "
|
|
12308
|
-
|
|
12309
|
-
|
|
12310
|
-
|
|
12311
|
-
|
|
12312
|
-
|
|
12313
|
-
|
|
12314
|
-
|
|
12315
|
-
|
|
12316
|
-
|
|
12317
|
-
ɵɵtemplate(35, RecipeDetailsComponent_div_0_ng_container_35_Template, 2, 3, "ng-container",
|
|
12318
|
-
ɵɵtemplate(36, RecipeDetailsComponent_div_0_ng_container_36_Template, 2, 3, "ng-container",
|
|
12319
|
-
ɵɵtemplate(37, RecipeDetailsComponent_div_0_ng_container_37_Template,
|
|
12327
|
+
ɵɵelementStart(27, "div", 22);
|
|
12328
|
+
ɵɵelementStart(28, "span", 23);
|
|
12329
|
+
ɵɵtext(29);
|
|
12330
|
+
ɵɵpipe(30, "titlecase");
|
|
12331
|
+
ɵɵelementEnd();
|
|
12332
|
+
ɵɵelementStart(31, "span", 24);
|
|
12333
|
+
ɵɵtext(32);
|
|
12334
|
+
ɵɵelementEnd();
|
|
12335
|
+
ɵɵelementStart(33, "div", 25);
|
|
12336
|
+
ɵɵelementContainerStart(34, 26);
|
|
12337
|
+
ɵɵtemplate(35, RecipeDetailsComponent_div_0_ng_container_35_Template, 2, 3, "ng-container", 27);
|
|
12338
|
+
ɵɵtemplate(36, RecipeDetailsComponent_div_0_ng_container_36_Template, 2, 3, "ng-container", 27);
|
|
12339
|
+
ɵɵtemplate(37, RecipeDetailsComponent_div_0_ng_container_37_Template, 2, 3, "ng-container", 27);
|
|
12340
|
+
ɵɵtemplate(38, RecipeDetailsComponent_div_0_ng_container_38_Template, 1, 0, "ng-container", 28);
|
|
12320
12341
|
ɵɵelementContainerEnd();
|
|
12321
|
-
ɵɵelementStart(
|
|
12322
|
-
ɵɵtext(
|
|
12323
|
-
ɵɵpipe(
|
|
12342
|
+
ɵɵelementStart(39, "span");
|
|
12343
|
+
ɵɵtext(40);
|
|
12344
|
+
ɵɵpipe(41, "titlecase");
|
|
12324
12345
|
ɵɵelementEnd();
|
|
12325
12346
|
ɵɵelementEnd();
|
|
12326
|
-
ɵɵelementStart(
|
|
12327
|
-
ɵɵtext(
|
|
12328
|
-
ɵɵelementStart(
|
|
12329
|
-
ɵɵlistener("click", function
|
|
12330
|
-
ɵɵelement(
|
|
12331
|
-
ɵɵelementStart(
|
|
12332
|
-
ɵɵtext(
|
|
12347
|
+
ɵɵelementStart(42, "div", 29);
|
|
12348
|
+
ɵɵtext(43);
|
|
12349
|
+
ɵɵelementStart(44, "div", 30);
|
|
12350
|
+
ɵɵlistener("click", function RecipeDetailsComponent_div_0_Template_div_click_44_listener() { ɵɵrestoreView(_r62); const ctx_r61 = ɵɵnextContext(); return ctx_r61.print(); });
|
|
12351
|
+
ɵɵelement(45, "ng-miam-icon", 14);
|
|
12352
|
+
ɵɵelementStart(46, "span");
|
|
12353
|
+
ɵɵtext(47, " Imprimer la recette ");
|
|
12333
12354
|
ɵɵelementEnd();
|
|
12334
12355
|
ɵɵelementEnd();
|
|
12335
12356
|
ɵɵelementEnd();
|
|
12336
12357
|
ɵɵelementEnd();
|
|
12337
|
-
ɵɵelementStart(47, "div", 30);
|
|
12338
12358
|
ɵɵelementStart(48, "div", 31);
|
|
12339
|
-
|
|
12359
|
+
ɵɵelementStart(49, "div", 32);
|
|
12360
|
+
ɵɵelement(50, "ng-miam-recipe-pricing", 33);
|
|
12340
12361
|
ɵɵelementEnd();
|
|
12341
|
-
ɵɵtemplate(
|
|
12362
|
+
ɵɵtemplate(51, RecipeDetailsComponent_div_0_button_51_Template, 6, 8, "button", 34);
|
|
12342
12363
|
ɵɵelementEnd();
|
|
12343
12364
|
ɵɵelementEnd();
|
|
12344
12365
|
ɵɵelementEnd();
|
|
12345
|
-
ɵɵelement(
|
|
12346
|
-
ɵɵelementStart(
|
|
12347
|
-
ɵɵtemplate(
|
|
12366
|
+
ɵɵelement(52, "div", 35);
|
|
12367
|
+
ɵɵelementStart(53, "div");
|
|
12368
|
+
ɵɵtemplate(54, RecipeDetailsComponent_div_0_ng_miam_addon_link_54_Template, 1, 1, "ng-miam-addon-link", 36);
|
|
12348
12369
|
ɵɵelementEnd();
|
|
12349
|
-
ɵɵtemplate(
|
|
12350
|
-
ɵɵtemplate(
|
|
12351
|
-
ɵɵelementStart(
|
|
12352
|
-
ɵɵelementStart(58, "div", 30);
|
|
12370
|
+
ɵɵtemplate(55, RecipeDetailsComponent_div_0_div_55_Template, 18, 4, "div", 37);
|
|
12371
|
+
ɵɵtemplate(56, RecipeDetailsComponent_div_0_ng_template_56_Template, 10, 8, "ng-template", null, 38, ɵɵtemplateRefExtractor);
|
|
12372
|
+
ɵɵelementStart(58, "div", 39);
|
|
12353
12373
|
ɵɵelementStart(59, "div", 31);
|
|
12354
|
-
|
|
12374
|
+
ɵɵelementStart(60, "div", 32);
|
|
12375
|
+
ɵɵelement(61, "ng-miam-recipe-pricing", 33);
|
|
12355
12376
|
ɵɵelementEnd();
|
|
12356
|
-
ɵɵtemplate(
|
|
12377
|
+
ɵɵtemplate(62, RecipeDetailsComponent_div_0_button_62_Template, 6, 8, "button", 34);
|
|
12357
12378
|
ɵɵelementEnd();
|
|
12358
12379
|
ɵɵelementEnd();
|
|
12359
12380
|
ɵɵelementEnd();
|
|
12360
12381
|
} if (rf & 2) {
|
|
12361
|
-
const
|
|
12382
|
+
const _r21 = ɵɵreference(57);
|
|
12362
12383
|
const ctx_r0 = ɵɵnextContext();
|
|
12363
12384
|
var tmp_3_0 = null;
|
|
12364
|
-
ɵɵadvance(
|
|
12385
|
+
ɵɵadvance(6);
|
|
12365
12386
|
ɵɵproperty("ngIf", !ctx_r0.showVideo);
|
|
12366
12387
|
ɵɵadvance(1);
|
|
12367
12388
|
ɵɵproperty("ngIf", !ctx_r0.showVideo);
|
|
12368
12389
|
ɵɵadvance(1);
|
|
12369
12390
|
ɵɵproperty("ngIf", ctx_r0.showVideo && ctx_r0.playerWidth);
|
|
12370
12391
|
ɵɵadvance(1);
|
|
12371
|
-
ɵɵproperty("ngIf", (tmp_3_0 = ɵɵpipeBind1(
|
|
12392
|
+
ɵɵproperty("ngIf", (tmp_3_0 = ɵɵpipeBind1(10, 39, ctx_r0.groceriesListsService.list$)) == null ? null : tmp_3_0.hasRecipe(ctx_r0.recipe == null ? null : ctx_r0.recipe.id));
|
|
12372
12393
|
ɵɵadvance(3);
|
|
12373
|
-
ɵɵproperty("ngIf", ɵɵpipeBind1(
|
|
12394
|
+
ɵɵproperty("ngIf", ɵɵpipeBind1(13, 41, ctx_r0.userService.isLogged$));
|
|
12374
12395
|
ɵɵadvance(2);
|
|
12375
12396
|
ɵɵproperty("width", 26)("height", 26)("iconName", ctx_r0.icon.Calendar);
|
|
12376
12397
|
ɵɵadvance(1);
|
|
@@ -12388,7 +12409,7 @@ function RecipeDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
12388
12409
|
ɵɵadvance(1);
|
|
12389
12410
|
ɵɵproperty("ngIf", (ctx_r0.recipe == null ? null : ctx_r0.recipe.restingTime) !== "-");
|
|
12390
12411
|
ɵɵadvance(4);
|
|
12391
|
-
ɵɵtextInterpolate(ɵɵpipeBind1(
|
|
12412
|
+
ɵɵtextInterpolate(ɵɵ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));
|
|
12392
12413
|
ɵɵadvance(3);
|
|
12393
12414
|
ɵɵtextInterpolate(ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["title"]);
|
|
12394
12415
|
ɵɵadvance(2);
|
|
@@ -12400,7 +12421,7 @@ function RecipeDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
12400
12421
|
ɵɵadvance(1);
|
|
12401
12422
|
ɵɵproperty("ngSwitchCase", "difficile");
|
|
12402
12423
|
ɵɵadvance(3);
|
|
12403
|
-
ɵɵtextInterpolate(ɵɵpipeBind1(
|
|
12424
|
+
ɵɵtextInterpolate(ɵɵpipeBind1(41, 45, ctx_r0.recipe == null ? null : ctx_r0.recipe.difficultyLabel));
|
|
12404
12425
|
ɵɵadvance(3);
|
|
12405
12426
|
ɵɵtextInterpolate1(" ", ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["description"], " ");
|
|
12406
12427
|
ɵɵadvance(2);
|
|
@@ -12412,16 +12433,16 @@ function RecipeDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
12412
12433
|
ɵɵadvance(3);
|
|
12413
12434
|
ɵɵproperty("ngIf", (ctx_r0.recipe == null ? null : ctx_r0.recipe.sponsors == null ? null : ctx_r0.recipe.sponsors.length) > 0 || ctx_r0.recipe.informationalSentence);
|
|
12414
12435
|
ɵɵadvance(1);
|
|
12415
|
-
ɵɵproperty("ngIf", !ctx_r0.isMobile)("ngIfElse",
|
|
12436
|
+
ɵɵproperty("ngIf", !ctx_r0.isMobile)("ngIfElse", _r21);
|
|
12416
12437
|
ɵɵadvance(6);
|
|
12417
12438
|
ɵɵproperty("recipe", ctx_r0.recipe)("serves", ctx_r0.recipe == null ? null : ctx_r0.recipe.modifiedGuests);
|
|
12418
12439
|
ɵɵadvance(1);
|
|
12419
12440
|
ɵɵproperty("ngIf", ctx_r0.previewAllowed);
|
|
12420
12441
|
} }
|
|
12421
12442
|
function RecipeDetailsComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
12422
|
-
const
|
|
12423
|
-
ɵɵelementStart(0, "ng-miam-recipe-addon",
|
|
12424
|
-
ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_template_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { ɵɵrestoreView(
|
|
12443
|
+
const _r64 = ɵɵgetCurrentView();
|
|
12444
|
+
ɵɵelementStart(0, "ng-miam-recipe-addon", 80);
|
|
12445
|
+
ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_template_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { ɵɵrestoreView(_r64); const ctx_r63 = ɵɵnextContext(); return ctx_r63.toggleAddon(); });
|
|
12425
12446
|
ɵɵelementEnd();
|
|
12426
12447
|
} if (rf & 2) {
|
|
12427
12448
|
const ctx_r2 = ɵɵnextContext();
|
|
@@ -12436,8 +12457,8 @@ class RecipeDetailsComponent {
|
|
|
12436
12457
|
this.posService = posService;
|
|
12437
12458
|
this.recipeEventsService = recipeEventsService;
|
|
12438
12459
|
this.contextService = contextService;
|
|
12439
|
-
this.forceIngredientsStepstoggle = false;
|
|
12440
12460
|
this.previewAllowed = true;
|
|
12461
|
+
this.ingredientsPictures = false;
|
|
12441
12462
|
this.recipeAdded = new EventEmitter();
|
|
12442
12463
|
this.recipeChanged = new EventEmitter();
|
|
12443
12464
|
this.recipeError = new EventEmitter();
|
|
@@ -12450,17 +12471,19 @@ class RecipeDetailsComponent {
|
|
|
12450
12471
|
this.ingredientsChecked = {};
|
|
12451
12472
|
this.showIngredient = true;
|
|
12452
12473
|
this.closeIconhidden = new BehaviorSubject(false);
|
|
12474
|
+
this.scrollListenerInitialised = false;
|
|
12453
12475
|
this.subscriptions = [];
|
|
12454
12476
|
this.isMobile = this.mediaMatcher.matchMedia('(max-width: 1023px)').matches;
|
|
12455
12477
|
}
|
|
12456
|
-
onScroll($event) {
|
|
12457
|
-
if ($event.srcElement.scrollTop > 300 !== this.closeIconhidden.value) {
|
|
12458
|
-
this.closeIconhidden.next($event.srcElement.scrollTop > 300);
|
|
12459
|
-
}
|
|
12460
|
-
}
|
|
12461
12478
|
ngOnChanges() {
|
|
12462
12479
|
var _a;
|
|
12463
|
-
|
|
12480
|
+
// if forceIngredientsStepstoggle, use isMobile to toggle ingredients & steps in mobile mode, else
|
|
12481
|
+
// Use the value of forceIngredientsStepstoggle to force it to mobile (true) or desktop (false)
|
|
12482
|
+
if (this.forceIngredientsStepstoggle !== undefined) {
|
|
12483
|
+
this.isMobile = this.forceIngredientsStepstoggle;
|
|
12484
|
+
}
|
|
12485
|
+
this.showVideo = false; // force reload video player
|
|
12486
|
+
this.cdr.detectChanges();
|
|
12464
12487
|
this.showVideo = this.contextService.videoRecipesEnabled && ((_a = this.recipe) === null || _a === void 0 ? void 0 : _a.videoId);
|
|
12465
12488
|
if (this.recipe) {
|
|
12466
12489
|
this.steps = this.recipe.steps;
|
|
@@ -12472,6 +12495,26 @@ class RecipeDetailsComponent {
|
|
|
12472
12495
|
var _a, _b;
|
|
12473
12496
|
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);
|
|
12474
12497
|
this.playerHeight = this.playerWidth * 390 / 640;
|
|
12498
|
+
if (!this.scrollListenerInitialised) {
|
|
12499
|
+
this.initScrollListener();
|
|
12500
|
+
}
|
|
12501
|
+
}
|
|
12502
|
+
/**
|
|
12503
|
+
* Init the listener on scroll so the modal can hide the close icon
|
|
12504
|
+
*/
|
|
12505
|
+
initScrollListener() {
|
|
12506
|
+
if (this.mainContainer) {
|
|
12507
|
+
const intersectionObserver = new IntersectionObserver(([entry]) => {
|
|
12508
|
+
if (this.mainContainer.nativeElement.scrollTop > 300 !== this.closeIconhidden.value) {
|
|
12509
|
+
this.closeIconhidden.next(this.mainContainer.nativeElement.scrollTop > 300);
|
|
12510
|
+
}
|
|
12511
|
+
}, {
|
|
12512
|
+
threshold: [0, 0.33, 0.66, 1],
|
|
12513
|
+
root: this.mainContainer.nativeElement
|
|
12514
|
+
});
|
|
12515
|
+
intersectionObserver.observe(this.topContainerImg.nativeElement);
|
|
12516
|
+
this.scrollListenerInitialised = true;
|
|
12517
|
+
}
|
|
12475
12518
|
}
|
|
12476
12519
|
changeActiveStep(index) {
|
|
12477
12520
|
this.activeStep = index;
|
|
@@ -12526,22 +12569,25 @@ class RecipeDetailsComponent {
|
|
|
12526
12569
|
this.showIngredient = isShowed;
|
|
12527
12570
|
this.cdr.detectChanges();
|
|
12528
12571
|
}
|
|
12572
|
+
ingredientPicture(ingredient) {
|
|
12573
|
+
return ingredient.picture || this.contextService.defaultIngredientPicture;
|
|
12574
|
+
}
|
|
12529
12575
|
}
|
|
12530
12576
|
RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(ɵɵdirectiveInject(ChangeDetectorRef), ɵɵdirectiveInject(MediaMatcher), ɵɵdirectiveInject(GroceriesListsService), ɵɵdirectiveInject(UserService), ɵɵdirectiveInject(PointOfSalesService), ɵɵdirectiveInject(RecipeEventsService), ɵɵdirectiveInject(ContextService)); };
|
|
12531
12577
|
RecipeDetailsComponent.ɵcmp = ɵɵdefineComponent({ type: RecipeDetailsComponent, selectors: [["ng-miam-recipe-details"]], viewQuery: function RecipeDetailsComponent_Query(rf, ctx) { if (rf & 1) {
|
|
12532
12578
|
ɵɵviewQuery(_c0$r, true);
|
|
12579
|
+
ɵɵviewQuery(_c1$b, true);
|
|
12533
12580
|
} if (rf & 2) {
|
|
12534
12581
|
var _t;
|
|
12535
12582
|
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.topContainerImg = _t.first);
|
|
12536
|
-
|
|
12537
|
-
|
|
12538
|
-
|
|
12539
|
-
ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 62, 47, "div", 0);
|
|
12583
|
+
ɵɵqueryRefresh(_t = ɵɵloadQuery()) && (ctx.mainContainer = _t.first);
|
|
12584
|
+
} }, inputs: { recipe: "recipe", forceIngredientsStepstoggle: "forceIngredientsStepstoggle", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures" }, outputs: { recipeAdded: "recipeAdded", recipeChanged: "recipeChanged", recipeError: "recipeError" }, features: [ɵɵ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) { if (rf & 1) {
|
|
12585
|
+
ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 63, 47, "div", 0);
|
|
12540
12586
|
ɵɵtemplate(1, RecipeDetailsComponent_ng_template_1_Template, 1, 1, "ng-template", null, 1, ɵɵtemplateRefExtractor);
|
|
12541
12587
|
} if (rf & 2) {
|
|
12542
12588
|
const _r1 = ɵɵreference(2);
|
|
12543
12589
|
ɵɵproperty("ngIf", ctx.showDetail)("ngIfElse", _r1);
|
|
12544
|
-
} }, directives: [NgIf, IconComponent, NgSwitch, NgSwitchCase, NgSwitchDefault, RecipePricingComponent, YouTubePlayer, LikeButtonComponent, AddonLinkComponent, CounterInputComponent, NgForOf, NgClass, RecipeAddonComponent], pipes: [AsyncPipe, 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 });
|
|
12590
|
+
} }, directives: [NgIf, IconComponent, NgSwitch, NgSwitchCase, NgSwitchDefault, RecipePricingComponent, YouTubePlayer, LikeButtonComponent, AddonLinkComponent, CounterInputComponent, NgForOf, NgClass, RecipeAddonComponent], pipes: [AsyncPipe, 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 });
|
|
12545
12591
|
/*@__PURE__*/ (function () { ɵsetClassMetadata(RecipeDetailsComponent, [{
|
|
12546
12592
|
type: Component,
|
|
12547
12593
|
args: [{
|
|
@@ -12557,6 +12603,8 @@ RecipeDetailsComponent.ɵcmp = ɵɵdefineComponent({ type: RecipeDetailsComponen
|
|
|
12557
12603
|
type: Input
|
|
12558
12604
|
}], previewAllowed: [{
|
|
12559
12605
|
type: Input
|
|
12606
|
+
}], ingredientsPictures: [{
|
|
12607
|
+
type: Input
|
|
12560
12608
|
}], recipeAdded: [{
|
|
12561
12609
|
type: Output
|
|
12562
12610
|
}], recipeChanged: [{
|
|
@@ -12566,9 +12614,9 @@ RecipeDetailsComponent.ɵcmp = ɵɵdefineComponent({ type: RecipeDetailsComponen
|
|
|
12566
12614
|
}], topContainerImg: [{
|
|
12567
12615
|
type: ViewChild,
|
|
12568
12616
|
args: ['topContainerImg']
|
|
12569
|
-
}],
|
|
12570
|
-
type:
|
|
12571
|
-
args: ['
|
|
12617
|
+
}], mainContainer: [{
|
|
12618
|
+
type: ViewChild,
|
|
12619
|
+
args: ['mainContainer']
|
|
12572
12620
|
}] }); })();
|
|
12573
12621
|
|
|
12574
12622
|
function RecipeHelperComponent_ng_container_0_ng_miam_icon_4_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -12739,7 +12787,7 @@ function RecipeTagsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
12739
12787
|
} }
|
|
12740
12788
|
const _c1$c = function (a0) { return { "height.px": a0 }; };
|
|
12741
12789
|
const _c2$4 = function (a0) { return { "miam-recipe-tags__container__toggle__hidden": a0 }; };
|
|
12742
|
-
const _c3$
|
|
12790
|
+
const _c3$3 = function (a0) { return { "opacity": a0 }; };
|
|
12743
12791
|
function RecipeTagsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
12744
12792
|
const _r9 = ɵɵgetCurrentView();
|
|
12745
12793
|
ɵɵelementStart(0, "div", 1);
|
|
@@ -12768,7 +12816,7 @@ function RecipeTagsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
12768
12816
|
ɵɵadvance(2);
|
|
12769
12817
|
ɵɵtextInterpolate1(" ", ctx_r0.isListOpen ? " " : "+" + ctx_r0.wrappedItemsCount, "");
|
|
12770
12818
|
ɵɵadvance(2);
|
|
12771
|
-
ɵɵproperty("ngStyle", ɵɵpureFunction1(10, _c3$
|
|
12819
|
+
ɵɵproperty("ngStyle", ɵɵpureFunction1(10, _c3$3, ctx_r0.isListOpen ? 1 : 0));
|
|
12772
12820
|
ɵɵadvance(1);
|
|
12773
12821
|
ɵɵproperty("iconName", ctx_r0.icon.ChevronDown);
|
|
12774
12822
|
} }
|