ng-miam 4.8.0 → 4.8.1
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 +505 -367
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +2 -2
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/abstracts/abstract-recipe-card.component.js +6 -1
- package/esm2015/lib/_components/addon-link/addon-link.component.js +3 -3
- package/esm2015/lib/_components/list-input/list-input.component.js +3 -3
- package/esm2015/lib/_models/recipe.js +6 -3
- package/esm2015/lib/_services/context.service.js +3 -4
- package/esm2015/lib/_services/recipes.service.js +14 -1
- package/esm2015/lib/_web-components/catalog-article-card/catalog-article-card.component.js +1 -1
- package/esm2015/lib/_web-components/catalog-recipe-card/catalog-recipe-card.component.js +150 -119
- package/esm2015/lib/_web-components/drag-drop-input/drag-drop-input.component.js +8 -3
- package/esm2015/lib/_web-components/recipe-card/recipe-card.component.js +77 -62
- package/esm2015/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.js +3 -3
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +100 -88
- package/esm2015/lib/_web-components/recipe-form/recipe-form.component.js +9 -1
- package/esm2015/lib/_web-components/recipe-stepper/recipe-stepper.component.js +109 -88
- package/fesm2015/ng-miam.js +480 -368
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_models/recipe.d.ts +3 -2
- package/lib/_services/recipes.service.d.ts +4 -0
- package/lib/_web-components/recipe-form/recipe-form.component.d.ts +2 -0
- package/lib/_web-components/recipe-stepper/recipe-stepper.component.d.ts +1 -0
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -2169,6 +2169,13 @@
|
|
|
2169
2169
|
if (this.attributes['filigrane-logo-url']) {
|
|
2170
2170
|
return this.attributes['filigrane-logo-url'];
|
|
2171
2171
|
}
|
|
2172
|
+
return null;
|
|
2173
|
+
},
|
|
2174
|
+
enumerable: false,
|
|
2175
|
+
configurable: true
|
|
2176
|
+
});
|
|
2177
|
+
Object.defineProperty(Recipe.prototype, "sponsorLogoUrl", {
|
|
2178
|
+
get: function () {
|
|
2172
2179
|
if (this.sponsors.length > 0) {
|
|
2173
2180
|
return this.sponsors[0].attributes['logo-url'];
|
|
2174
2181
|
}
|
|
@@ -2250,7 +2257,7 @@
|
|
|
2250
2257
|
configurable: true
|
|
2251
2258
|
});
|
|
2252
2259
|
Object.defineProperty(Recipe.prototype, "ingredients", {
|
|
2253
|
-
// Returns ingredients, putting the sponsored ones first
|
|
2260
|
+
// Returns ingredients, putting the sponsored ones first
|
|
2254
2261
|
get: function () {
|
|
2255
2262
|
return this.relationships.ingredients.data
|
|
2256
2263
|
.filter(function (i) { return i.attributes.active; })
|
|
@@ -3850,6 +3857,7 @@
|
|
|
3850
3857
|
_this.hidden = new i0.EventEmitter();
|
|
3851
3858
|
_this.suggestionsPrimaryButtonActions = { display: true, addToBasket: true };
|
|
3852
3859
|
_this.recipesPrimaryButtonActions = { display: true, addToBasket: true };
|
|
3860
|
+
_this.reloadRecipes$ = new rxjs.BehaviorSubject(false);
|
|
3853
3861
|
_this.difficultyLevels = [
|
|
3854
3862
|
{ value: 1, label: 'Chef débutant' },
|
|
3855
3863
|
{ value: 2, label: 'Chef intermédiaire' },
|
|
@@ -4044,6 +4052,19 @@
|
|
|
4044
4052
|
RecipesService.prototype.addTagToRecipe = function (recipe, tag) {
|
|
4045
4053
|
return this.http.post(MIAM_API_HOST$4 + ("recipes/" + recipe.id + "/tags/" + tag.id), {});
|
|
4046
4054
|
};
|
|
4055
|
+
RecipesService.prototype.setRecipesPrimaryButtonActions = function (display, addToBasket) {
|
|
4056
|
+
if (display === void 0) { display = true; }
|
|
4057
|
+
if (addToBasket === void 0) { addToBasket = true; }
|
|
4058
|
+
this.recipesPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4059
|
+
this.suggestionsPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4060
|
+
this.reloadAllRecipes();
|
|
4061
|
+
};
|
|
4062
|
+
RecipesService.prototype.setSuggestionsPrimaryButtonActions = function (display, addToBasket) {
|
|
4063
|
+
if (display === void 0) { display = true; }
|
|
4064
|
+
if (addToBasket === void 0) { addToBasket = true; }
|
|
4065
|
+
this.suggestionsPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4066
|
+
this.reloadAllRecipes();
|
|
4067
|
+
};
|
|
4047
4068
|
// DEPRECATED / use TTL instead
|
|
4048
4069
|
RecipesService.prototype.getOrFetch = function (recipeId) {
|
|
4049
4070
|
var recipe = this.recipes.find(function (r) { return r.id === recipeId; });
|
|
@@ -4089,6 +4110,9 @@
|
|
|
4089
4110
|
RecipesService.prototype.intRandomSeed = function () {
|
|
4090
4111
|
this.randomSeed = Date.now();
|
|
4091
4112
|
};
|
|
4113
|
+
RecipesService.prototype.reloadAllRecipes = function () {
|
|
4114
|
+
this.reloadRecipes$.next(true);
|
|
4115
|
+
};
|
|
4092
4116
|
return RecipesService;
|
|
4093
4117
|
}(i1.Service));
|
|
4094
4118
|
RecipesService.ɵfac = function RecipesService_Factory(t) { return new (t || RecipesService)(i0.ɵɵinject(i1$1.HttpClient), i0.ɵɵinject(RecipeProviderService), i0.ɵɵinject(RecipeStatusService), i0.ɵɵinject(RecipeTypeService), i0.ɵɵinject(SuppliersService), i0.ɵɵinject(PointOfSalesService), i0.ɵɵinject(GroceriesListsService), i0.ɵɵinject(IngredientsService), i0.ɵɵinject(RecipeStepsService), i0.ɵɵinject(RecipeEventsService), i0.ɵɵinject(SponsorService), i0.ɵɵinject(PackageService), i0.ɵɵinject(TagsService), i0.ɵɵinject(RecipeLikesService)); };
|
|
@@ -4496,13 +4520,12 @@
|
|
|
4496
4520
|
setRecipesPrimaryButtonActions: function (display, addToBasket) {
|
|
4497
4521
|
if (display === void 0) { display = true; }
|
|
4498
4522
|
if (addToBasket === void 0) { addToBasket = true; }
|
|
4499
|
-
_this.recipesService.
|
|
4500
|
-
_this.recipesService.suggestionsPrimaryButtonActions = { display: display, addToBasket: addToBasket };
|
|
4523
|
+
_this.recipesService.setRecipesPrimaryButtonActions(display, addToBasket);
|
|
4501
4524
|
},
|
|
4502
4525
|
setSuggestionsPrimaryButtonActions: function (display, addToBasket) {
|
|
4503
4526
|
if (display === void 0) { display = true; }
|
|
4504
4527
|
if (addToBasket === void 0) { addToBasket = true; }
|
|
4505
|
-
_this.recipesService.
|
|
4528
|
+
_this.recipesService.setSuggestionsPrimaryButtonActions(display, addToBasket);
|
|
4506
4529
|
},
|
|
4507
4530
|
setDifficultyLevels: function (levels) {
|
|
4508
4531
|
_this.recipesService.difficultyLevels = levels;
|
|
@@ -7296,7 +7319,7 @@
|
|
|
7296
7319
|
if (rf & 1) {
|
|
7297
7320
|
var _r57_1 = i0.ɵɵgetCurrentView();
|
|
7298
7321
|
i0.ɵɵelementStart(0, "ng-miam-modal", 56);
|
|
7299
|
-
i0.ɵɵlistener("close", function ListInputComponent_ng_miam_modal_14_Template_ng_miam_modal_close_0_listener() { i0.ɵɵrestoreView(_r57_1); var ctx_r56 = i0.ɵɵnextContext(); return ctx_r56.closeBigImageErrorModal(); })("
|
|
7322
|
+
i0.ɵɵlistener("close", function ListInputComponent_ng_miam_modal_14_Template_ng_miam_modal_close_0_listener() { i0.ɵɵrestoreView(_r57_1); var ctx_r56 = i0.ɵɵnextContext(); return ctx_r56.closeBigImageErrorModal(); })("confirm", function ListInputComponent_ng_miam_modal_14_Template_ng_miam_modal_confirm_0_listener() { i0.ɵɵrestoreView(_r57_1); var ctx_r58 = i0.ɵɵnextContext(); return ctx_r58.closeBigImageErrorModal(); });
|
|
7300
7323
|
i0.ɵɵelementStart(1, "span", 57);
|
|
7301
7324
|
i0.ɵɵtext(2, "Votre image est trop lourde (la taille doit \u00EAtre inf\u00E9rieure \u00E0 500 Ko). Merci d\u2019en ajouter une plus l\u00E9g\u00E8re.");
|
|
7302
7325
|
i0.ɵɵelementEnd();
|
|
@@ -7515,7 +7538,7 @@
|
|
|
7515
7538
|
return ListInputComponent;
|
|
7516
7539
|
}());
|
|
7517
7540
|
ListInputComponent.ɵfac = function ListInputComponent_Factory(t) { return new (t || ListInputComponent)(i0.ɵɵdirectiveInject(IngredientsService), i0.ɵɵdirectiveInject(i13.FormBuilder), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
7518
|
-
ListInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ListInputComponent, selectors: [["ng-miam-list-input"]], inputs: { hint: "hint", placeholder: "placeholder", label: "label", instructions: "instructions", ingredientMode: "ingredientMode", isPersonal: "isPersonal", list: "list", ingredientsPictures: "ingredientsPictures" }, outputs: { deleteId: "deleteId", orderHasChanged: "orderHasChanged" }, decls: 15, vars: 8, consts: [[1, "miam-list-input"], [1, "miam-list-input__list", 3, "formGroup"], [1, "miam-list-input__list__label"], ["class", "miam-list-input__container m-default-card", "cdkDropList", "", 3, "cdkDropListDropped", 4, "ngIf", "ngIfElse"], ["hintPlaceholder", ""], [1, "miam-list-input__actions"], ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", 1, "m-input", 3, "formControl", "keydown.enter"], [1, "m-button-primary", 3, "mousedown", "mouseup"], [1, "miam-list-input__instructions__direction"], ["class", "miam-list-input__actions__instructions", 4, "ngIf"], ["title", "Image trop volumineuse", "
|
|
7541
|
+
ListInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ListInputComponent, selectors: [["ng-miam-list-input"]], inputs: { hint: "hint", placeholder: "placeholder", label: "label", instructions: "instructions", ingredientMode: "ingredientMode", isPersonal: "isPersonal", list: "list", ingredientsPictures: "ingredientsPictures" }, outputs: { deleteId: "deleteId", orderHasChanged: "orderHasChanged" }, decls: 15, vars: 8, consts: [[1, "miam-list-input"], [1, "miam-list-input__list", 3, "formGroup"], [1, "miam-list-input__list__label"], ["class", "miam-list-input__container m-default-card", "cdkDropList", "", 3, "cdkDropListDropped", 4, "ngIf", "ngIfElse"], ["hintPlaceholder", ""], [1, "miam-list-input__actions"], ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", 1, "m-input", 3, "formControl", "keydown.enter"], [1, "m-button-primary", 3, "mousedown", "mouseup"], [1, "miam-list-input__instructions__direction"], ["class", "miam-list-input__actions__instructions", 4, "ngIf"], ["title", "Image trop volumineuse", "confirmButtonText", "Fermer", 3, "isAngularComponent", "noHeaderMode", "expanded", "close", "confirm", 4, "ngIf"], ["cdkDropList", "", 1, "miam-list-input__container", "m-default-card", 3, "cdkDropListDropped"], [4, "ngIf", "ngIfElse"], ["ingredientRow", ""], ["cdkDrag", "", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["cdkDrag", ""], [3, "formGroup"], [1, "miam-list-input__container__row", "m-default-card"], ["primaryColor", "var(--m-color-grey05)", "cdkDragHandle", "", 1, "miam-list-input__row__grip", 3, "iconName"], ["cdkTextareaAutosize", "true", "cdkAutosizeMinRows", "1", "cdkAutosizeMaxRows", "50", "formControlName", "description", 1, "m-input", 3, "blur"], ["autosize", "cdkTextareaAutosize"], ["primaryColor", "var(--m-color-grey05)", 1, "miam-list-input__row__trash", 3, "iconName", "click"], ["class", "miam-list-input__row__placeholder", 4, "cdkDragPlaceholder"], ["class", "miam-list-input__row__preview m-default-card", 4, "cdkDragPreview"], [1, "miam-list-input__row__placeholder"], [1, "miam-list-input__row__preview", "m-default-card"], ["primaryColor", "var(--m-color-grey05)", "cdkDragHandle", "", 3, "iconName"], [1, "miam-list-input__preview__text", "m-body-typo"], [1, "miam-list-input__container__row", "m-default-card", 3, "formGroupName"], [1, "miam-list-input__row__left"], [1, "miam-list-input__row__right"], [1, "m-input", 3, "ngClass", "ngModel", "formControl"], [3, "value", 4, "ngFor", "ngForOf"], ["maxSize", "4", "autoWidthInput", "", 1, "m-input", 3, "ngModel", "formControl", "ngModelChange"], ["maxSize", "8", "autoWidthInput", "", 1, "m-input", 3, "ngClass", "formControl"], ["class", "miam-list-input__importance", 4, "ngIf"], [1, "miam-list-input__row__controls"], [3, "for", 4, "ngIf"], ["type", "file", "accept", "image/jpeg, image/png, image/webp", 3, "id", "change", 4, "ngIf"], [3, "value"], [1, "miam-list-input__importance"], ["class", "miam-list-input__importance__radio", 4, "ngFor", "ngForOf"], [1, "miam-list-input__importance__radio"], ["type", "radio", 3, "name", "id", "value", "formControl", "click"], [3, "for"], ["class", "miam-list-input__row__picture", 3, "ngClass", "src", 4, "ngIf"], ["class", "miam-list-input__row__trash", "primaryColor", "var(--m-color-grey05)", 3, "iconName", 4, "ngIf"], [1, "miam-list-input__row__picture", 3, "ngClass", "src"], ["primaryColor", "var(--m-color-grey05)", 1, "miam-list-input__row__trash", 3, "iconName"], ["type", "file", "accept", "image/jpeg, image/png, image/webp", 3, "id", "change"], ["primaryColor", "var(--m-color-grey-text-dark)", "cdkDragHandle", "", 3, "iconName"], [1, "m-body-typo"], [1, "miam-list-input__placeholder", "miam-list-input__container", "m-default-card"], ["primaryColor", "var(--m-color-grey-text-dark)", 3, "width", "height", "iconName"], [1, "miam-list-input__placeholder__hint", "m-body-typo"], [1, "miam-list-input__actions__instructions"], ["title", "Image trop volumineuse", "confirmButtonText", "Fermer", 3, "isAngularComponent", "noHeaderMode", "expanded", "close", "confirm"], [1, "miam-list-input__picture__warning"]], template: function ListInputComponent_Template(rf, ctx) {
|
|
7519
7542
|
if (rf & 1) {
|
|
7520
7543
|
i0.ɵɵelementStart(0, "div", 0);
|
|
7521
7544
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -8925,7 +8948,7 @@
|
|
|
8925
8948
|
if (rf & 2) {
|
|
8926
8949
|
var ctx_r4 = i0.ɵɵnextContext();
|
|
8927
8950
|
i0.ɵɵadvance(1);
|
|
8928
|
-
i0.ɵɵpropertyInterpolate("src", ctx_r4.recipe.
|
|
8951
|
+
i0.ɵɵpropertyInterpolate("src", ctx_r4.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl);
|
|
8929
8952
|
}
|
|
8930
8953
|
}
|
|
8931
8954
|
var AddonLinkComponent = /** @class */ (function () {
|
|
@@ -8953,7 +8976,7 @@
|
|
|
8953
8976
|
i0.ɵɵadvance(3);
|
|
8954
8977
|
i0.ɵɵproperty("ngIf", ctx.recipe.attributes["informational-page-html"]);
|
|
8955
8978
|
i0.ɵɵadvance(1);
|
|
8956
|
-
i0.ɵɵproperty("ngIf", ctx.recipe == null ? null : ctx.recipe.
|
|
8979
|
+
i0.ɵɵproperty("ngIf", ctx.recipe == null ? null : ctx.recipe.sponsorLogoUrl);
|
|
8957
8980
|
}
|
|
8958
8981
|
}, directives: [i4.NgIf], styles: [".miam-addon-link[_ngcontent-%COMP%]{align-items:center;background-color:var(--m-color-white);display:flex;flex-direction:row;font-size:16px;justify-content:space-between;margin-left:96px;padding:12px 16px}@media (max-width:1023px){.miam-addon-link[_ngcontent-%COMP%]{margin-left:unset}}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__logo[_ngcontent-%COMP%]{align-items:center;display:flex;height:64px;justify-content:center;order:2;padding:0 16px;width:168px}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-o-object-fit:contain;max-height:100%;max-width:100%;object-fit:contain}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-right:8px}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__info[_ngcontent-%COMP%] .miam-addon-link__link[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent;color:var(--m-color-primary);cursor:pointer;margin-top:8px}"] });
|
|
8959
8982
|
/*@__PURE__*/ (function () {
|
|
@@ -11274,7 +11297,7 @@
|
|
|
11274
11297
|
i0.ɵɵadvance(3);
|
|
11275
11298
|
i0.ɵɵproperty("href", ctx.article.url, i0.ɵɵsanitizeUrl);
|
|
11276
11299
|
}
|
|
11277
|
-
}, directives: [i4.NgIf], pipes: [EllipsisPipe, i4.DatePipe], styles: [".cal-month-view .cal-header{font-weight:bolder;text-align:center}.cal-month-view .cal-header .cal-cell{display:block;overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.cal-month-view .cal-days{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{flex:1;min-height:78px}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{align-items:stretch;display:flex;flex:1;flex-direction:column;float:left}.cal-month-view .cal-cell .cal-event{pointer-events:all!important}.cal-month-view .cal-day-cell{min-height:100px}@media (-ms-high-contrast:none){.cal-month-view .cal-day-cell{display:block}}.cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid}.cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid}.cal-month-view .cal-day-badge{border-radius:10px;display:inline-block;font-size:12px;font-weight:700;line-height:1;margin-left:10px;margin-top:18px;min-width:10px;padding:3px 7px;text-align:center;vertical-align:middle;white-space:nowrap}.cal-month-view .cal-day-number{float:right;font-size:1.2em;font-weight:400;margin-bottom:10px;margin-right:15px;margin-top:15px;opacity:.5}.cal-month-view .cal-events{align-items:flex-end;display:flex;flex:1;flex-wrap:wrap;line-height:10px;margin:3px}.cal-month-view .cal-event{border-radius:50%;display:inline-block;height:10px;margin:2px;width:10px}.cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer}.cal-month-view .cal-day-cell.cal-out-month .cal-day-number{cursor:default;opacity:.1}.cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em}.cal-month-view .cal-open-day-events{padding:15px}.cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px}.cal-month-view .cal-out-month .cal-day-badge,.cal-month-view .cal-out-month .cal-event{opacity:.3}.cal-month-view .cal-draggable{cursor:move}.cal-month-view .cal-drag-active *{pointer-events:none}.cal-month-view .cal-event-title{cursor:pointer}.cal-month-view .cal-event-title:hover{text-decoration:underline}.cal-month-view{background-color:#fff}.cal-month-view .cal-cell-row:hover{background-color:#fafafa}.cal-month-view .cal-cell-row .cal-cell:hover,.cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed}.cal-month-view .cal-days{border-color:#e1e1e1}.cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1}.cal-month-view .cal-days .cal-cell-row{border-bottom-color:#e1e1e1}.cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff}.cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff}.cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000}.cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7}.cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important}.cal-month-view .cal-open-day-events{background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5);color:#fff}.cal-week-view *{box-sizing:border-box}.cal-week-view .cal-day-headers{border:1px solid;display:flex;padding-left:70px}.cal-week-view .cal-day-headers .cal-header{flex:1;padding:5px;text-align:center}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid}.cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid}.cal-week-view .cal-day-headers span{font-weight:400;opacity:.5}.cal-week-view .cal-day-column{border-left:1px solid;flex-grow:1}.cal-week-view .cal-event{border:1px solid;font-size:12px}.cal-week-view .cal-time-label-column{height:100%;width:70px}.cal-week-view .cal-current-time-marker{height:2px;position:absolute;width:100%;z-index:2}.cal-week-view .cal-all-day-events{border-bottom:3px solid;border-left:1px solid;border-right:1px solid;border-top:0;padding-top:3px;position:relative}.cal-week-view .cal-all-day-events .cal-day-columns{display:flex;height:100%;position:absolute;top:0;width:100%;z-index:0}.cal-week-view .cal-all-day-events .cal-events-row{height:31px;margin-left:70px;position:relative}.cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute}.cal-week-view .cal-all-day-events .cal-event-container.resize-active{pointer-events:none;z-index:1}.cal-week-view .cal-all-day-events .cal-event{height:28px;line-height:28px;margin-left:2px;margin-right:2px;padding:0 5px}.cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-bottom-left-radius:5px;border-top-left-radius:5px}.cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-bottom-right-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-all-day-events .cal-time-label-column{align-items:center;display:flex;font-size:14px;justify-content:center}.cal-week-view .cal-all-day-events .cal-resize-handle{cursor:col-resize;height:100%;position:absolute;top:0;width:6px}.cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0}.cal-week-view .cal-event,.cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-week-view .cal-drag-active{pointer-events:none;z-index:1}.cal-week-view .cal-drag-active *{pointer-events:none}.cal-week-view .cal-time-events{border:1px solid;border-top:0;display:flex;position:relative}.cal-week-view .cal-time-events .cal-day-columns{display:flex;flex-grow:1}.cal-week-view .cal-time-events .cal-day-column,.cal-week-view .cal-time-events .cal-events-container{position:relative}.cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1}.cal-week-view .cal-time-events .cal-event{height:calc(100% - 2px);line-height:25px;margin:1px;padding:0 5px;width:calc(100% - 2px)}.cal-week-view .cal-time-events .cal-resize-handle{cursor:row-resize;height:4px;position:absolute;width:100%}.cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0}.cal-week-view .cal-hour-segment{position:relative}.cal-week-view .cal-hour-segment:after{content:\"\\00a0\"}.cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer}.cal-week-view .cal-draggable{cursor:move}.cal-week-view .cal-hour-segment,.cal-week-view mwl-calendar-week-view-hour-segment{display:block}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom:thin dashed}.cal-week-view .cal-time{font-weight:700;padding-top:5px;text-align:center;width:70px}.cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none}.cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.cal-week-view{background-color:#fff;border-top:1px solid #e1e1e1}.cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-drag-over,.cal-week-view .cal-day-headers .cal-header:hover{background-color:#ededed}.cal-week-view .cal-day-column{border-left-color:#e1e1e1}.cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff}.cal-week-view .cal-all-day-events{border-color:#e1e1e1}.cal-week-view .cal-header.cal-today{background-color:#e8fde7}.cal-week-view .cal-header.cal-weekend span{color:#8b0000}.cal-week-view .cal-time-events{border-color:#e1e1e1}.cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed}.cal-week-view .cal-hour-odd{background-color:#fafafa}.cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1}.cal-week-view .cal-current-time-marker{background-color:#ea4334}.cal-day-view mwl-calendar-week-view-header{display:none}.cal-day-view .cal-events-container{margin-left:70px}.cal-day-view .cal-day-column{border-left:0}.cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)}.cal-tooltip{display:block;font-size:11px;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;opacity:.9;position:absolute;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:break-word;z-index:1070}.cal-tooltip.cal-tooltip-top{margin-top:-3px;padding:5px 0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-width:5px 5px 0;bottom:0;left:50%;margin-left:-5px}.cal-tooltip.cal-tooltip-right{margin-left:3px;padding:0 5px}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-width:5px 5px 5px 0;left:0;margin-top:-5px;top:50%}.cal-tooltip.cal-tooltip-bottom{margin-top:3px;padding:5px 0}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-width:0 5px 5px;left:50%;margin-left:-5px;top:0}.cal-tooltip.cal-tooltip-left{margin-left:-3px;padding:0 5px}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-width:5px 0 5px 5px;margin-top:-5px;right:0;top:50%}.cal-tooltip-inner{border-radius:.25rem;max-width:200px;padding:3px 8px;text-align:center}.cal-tooltip-arrow{border-color:transparent;border-style:solid;height:0;position:absolute;width:0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000}.cal-tooltip-inner{background-color:#000;color:#fff}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{-moz-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;align-items:center;border-radius:var(--m-button-radius);cursor:pointer;display:flex;font-size:var(--m-button-text-size);font-weight:var(--m-button-text-weight);justify-content:center;line-height:var(--m-button-text-height);outline:0;padding:var(--m-button-padding);user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-secondary{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-grey{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey.reverse{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-input{align-items:center;border:1px solid var(--m-color-grey06);border-radius:5px;display:flex;justify-content:space-between;margin-top:16px;max-width:320px;min-width:200px;outline:none;padding:8px 16px}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-catalog-article-card .miam-catalog-card__attributes,.miam-flex-column{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin:auto}.m-default-card{background-color:var(--m-color-unpure-white);border-radius:8px;box-shadow:var(--m-shadow-small);padding:16px}@media (max-width:1023px){.m-default-card{margin-bottom:8px;padding:8px}}#toast-container>div{opacity:.95!important}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-gap:var(--miam-button-gap,10px);--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-height:var(--miam-button-text-height,calc(var(--m-button-text-size)*1.5));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-white:var(--miam-color-white,#fafcfe);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-small:var(--miam-font-size-small,14px);--m-loader-size:var(--miam-loader-sizes,40px);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){color:var(--m-color-slate);font-family:Work Sans;font-size:var(--m-font-size-medium);font-style:normal;font-weight:500;line-height:24px}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-size:40px;font-weight:700;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{-webkit-animation:none!important;-webkit-transition:none!important;animation:none!important;transition:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}.miam-catalog-article-card{background-color:var(--m-catalog-card-bg-color);border:1px solid #ddd;border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);cursor:pointer;display:flex;flex-direction:column;height:var(--m-catalog-card-height);min-width:var(--m-catalog-card-minwidth);position:relative;width:100%}@media (min-width:1023px){.miam-catalog-article-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.05)}}.miam-catalog-article-card .miam-catalog-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:var(--m-catalog-card-picture-height);position:relative}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:calc(var(--m-catalog-card-picture-height) + 1px);left:-1px;position:absolute;top:-1px;width:calc(100% + 2px)}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{-o-object-fit:cover;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:100%;height:var(--m-catalog-card-picture-height);object-fit:cover;transition:var(--m-default-transition);width:100%;z-index:var(--m-z-index-position-absolute-low)}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor{-o-object-fit:contain;height:auto;left:16px;max-height:48px;max-width:64px;object-fit:contain;position:absolute;top:16px;transform:none;width:auto;z-index:var(--m-z-index-position-absolute-low)}.miam-catalog-article-card .miam-catalog-card__attributes{flex:1 1;flex-direction:column-reverse;justify-content:flex-start;padding:12px 16px}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{display:flex;flex-direction:row;justify-content:space-around}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info{align-items:center;display:flex;flex-direction:column;padding:0 16px;width:100%}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info:first-child{border-right:1px solid #ddd}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label{color:var(--m-catalog-card-details-color);font-size:var(--m-catalog-card-details-size);line-height:var(--m-catalog-card-details-line-height);margin:2px 0 0;text-align:center;width:100%}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label:first-letter{text-transform:capitalize}.miam-catalog-article-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.1)}.miam-catalog-article-card:hover .miam-catalog-card__attributes .miam-catalog-card__attributes__info a,.miam-catalog-article-card:hover .miam-catalog-card__attributes h4.miam-catalog-article-card__attributes__title{color:var(--m-color-primary)}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{overflow:hidden}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient:after{display:none}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{position:relative;transition:all .3s ease}.miam-catalog-article-card .miam-catalog-card__attributes{align-items:center}.miam-catalog-article-card .miam-catalog-card__attributes h4.miam-catalog-article-card__attributes__title{font-weight:700;line-height:1.3;margin:0;max-height:50px;overflow:hidden;text-align:center;transition:all .3s ease}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{justify-content:space-between;width:100%}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info a{transition:all .3s ease}"], encapsulation: 2, changeDetection: 0 });
|
|
11300
|
+
}, directives: [i4.NgIf], pipes: [EllipsisPipe, i4.DatePipe], styles: [".cal-month-view .cal-header{font-weight:bolder;text-align:center}.cal-month-view .cal-header .cal-cell{display:block;overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.cal-month-view .cal-days{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{flex:1;min-height:78px}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{align-items:stretch;display:flex;flex:1;flex-direction:column;float:left}.cal-month-view .cal-cell .cal-event{pointer-events:all!important}.cal-month-view .cal-day-cell{min-height:100px}@media (-ms-high-contrast:none){.cal-month-view .cal-day-cell{display:block}}.cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid}.cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid}.cal-month-view .cal-day-badge{border-radius:10px;display:inline-block;font-size:12px;font-weight:700;line-height:1;margin-left:10px;margin-top:18px;min-width:10px;padding:3px 7px;text-align:center;vertical-align:middle;white-space:nowrap}.cal-month-view .cal-day-number{float:right;font-size:1.2em;font-weight:400;margin-bottom:10px;margin-right:15px;margin-top:15px;opacity:.5}.cal-month-view .cal-events{align-items:flex-end;display:flex;flex:1;flex-wrap:wrap;line-height:10px;margin:3px}.cal-month-view .cal-event{border-radius:50%;display:inline-block;height:10px;margin:2px;width:10px}.cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer}.cal-month-view .cal-day-cell.cal-out-month .cal-day-number{cursor:default;opacity:.1}.cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em}.cal-month-view .cal-open-day-events{padding:15px}.cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px}.cal-month-view .cal-out-month .cal-day-badge,.cal-month-view .cal-out-month .cal-event{opacity:.3}.cal-month-view .cal-draggable{cursor:move}.cal-month-view .cal-drag-active *{pointer-events:none}.cal-month-view .cal-event-title{cursor:pointer}.cal-month-view .cal-event-title:hover{text-decoration:underline}.cal-month-view{background-color:#fff}.cal-month-view .cal-cell-row:hover{background-color:#fafafa}.cal-month-view .cal-cell-row .cal-cell:hover,.cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed}.cal-month-view .cal-days{border-color:#e1e1e1}.cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1}.cal-month-view .cal-days .cal-cell-row{border-bottom-color:#e1e1e1}.cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff}.cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff}.cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000}.cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7}.cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important}.cal-month-view .cal-open-day-events{background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5);color:#fff}.cal-week-view *{box-sizing:border-box}.cal-week-view .cal-day-headers{border:1px solid;display:flex;padding-left:70px}.cal-week-view .cal-day-headers .cal-header{flex:1;padding:5px;text-align:center}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid}.cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid}.cal-week-view .cal-day-headers span{font-weight:400;opacity:.5}.cal-week-view .cal-day-column{border-left:1px solid;flex-grow:1}.cal-week-view .cal-event{border:1px solid;font-size:12px}.cal-week-view .cal-time-label-column{height:100%;width:70px}.cal-week-view .cal-current-time-marker{height:2px;position:absolute;width:100%;z-index:2}.cal-week-view .cal-all-day-events{border-bottom:3px solid;border-left:1px solid;border-right:1px solid;border-top:0;padding-top:3px;position:relative}.cal-week-view .cal-all-day-events .cal-day-columns{display:flex;height:100%;position:absolute;top:0;width:100%;z-index:0}.cal-week-view .cal-all-day-events .cal-events-row{height:31px;margin-left:70px;position:relative}.cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute}.cal-week-view .cal-all-day-events .cal-event-container.resize-active{pointer-events:none;z-index:1}.cal-week-view .cal-all-day-events .cal-event{height:28px;line-height:28px;margin-left:2px;margin-right:2px;padding:0 5px}.cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-bottom-left-radius:5px;border-top-left-radius:5px}.cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-bottom-right-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-all-day-events .cal-time-label-column{align-items:center;display:flex;font-size:14px;justify-content:center}.cal-week-view .cal-all-day-events .cal-resize-handle{cursor:col-resize;height:100%;position:absolute;top:0;width:6px}.cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0}.cal-week-view .cal-event,.cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-week-view .cal-drag-active{pointer-events:none;z-index:1}.cal-week-view .cal-drag-active *{pointer-events:none}.cal-week-view .cal-time-events{border:1px solid;border-top:0;display:flex;position:relative}.cal-week-view .cal-time-events .cal-day-columns{display:flex;flex-grow:1}.cal-week-view .cal-time-events .cal-day-column,.cal-week-view .cal-time-events .cal-events-container{position:relative}.cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1}.cal-week-view .cal-time-events .cal-event{height:calc(100% - 2px);line-height:25px;margin:1px;padding:0 5px;width:calc(100% - 2px)}.cal-week-view .cal-time-events .cal-resize-handle{cursor:row-resize;height:4px;position:absolute;width:100%}.cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0}.cal-week-view .cal-hour-segment{position:relative}.cal-week-view .cal-hour-segment:after{content:\"\\00a0\"}.cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer}.cal-week-view .cal-draggable{cursor:move}.cal-week-view .cal-hour-segment,.cal-week-view mwl-calendar-week-view-hour-segment{display:block}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom:thin dashed}.cal-week-view .cal-time{font-weight:700;padding-top:5px;text-align:center;width:70px}.cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none}.cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.cal-week-view{background-color:#fff;border-top:1px solid #e1e1e1}.cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-drag-over,.cal-week-view .cal-day-headers .cal-header:hover{background-color:#ededed}.cal-week-view .cal-day-column{border-left-color:#e1e1e1}.cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff}.cal-week-view .cal-all-day-events{border-color:#e1e1e1}.cal-week-view .cal-header.cal-today{background-color:#e8fde7}.cal-week-view .cal-header.cal-weekend span{color:#8b0000}.cal-week-view .cal-time-events{border-color:#e1e1e1}.cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed}.cal-week-view .cal-hour-odd{background-color:#fafafa}.cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1}.cal-week-view .cal-current-time-marker{background-color:#ea4334}.cal-day-view mwl-calendar-week-view-header{display:none}.cal-day-view .cal-events-container{margin-left:70px}.cal-day-view .cal-day-column{border-left:0}.cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)}.cal-tooltip{display:block;font-size:11px;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;opacity:.9;position:absolute;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:break-word;z-index:1070}.cal-tooltip.cal-tooltip-top{margin-top:-3px;padding:5px 0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-width:5px 5px 0;bottom:0;left:50%;margin-left:-5px}.cal-tooltip.cal-tooltip-right{margin-left:3px;padding:0 5px}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-width:5px 5px 5px 0;left:0;margin-top:-5px;top:50%}.cal-tooltip.cal-tooltip-bottom{margin-top:3px;padding:5px 0}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-width:0 5px 5px;left:50%;margin-left:-5px;top:0}.cal-tooltip.cal-tooltip-left{margin-left:-3px;padding:0 5px}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-width:5px 0 5px 5px;margin-top:-5px;right:0;top:50%}.cal-tooltip-inner{border-radius:.25rem;max-width:200px;padding:3px 8px;text-align:center}.cal-tooltip-arrow{border-color:transparent;border-style:solid;height:0;position:absolute;width:0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000}.cal-tooltip-inner{background-color:#000;color:#fff}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{-moz-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;align-items:center;border-radius:var(--m-button-radius);cursor:pointer;display:flex;font-size:var(--m-button-text-size);font-weight:var(--m-button-text-weight);justify-content:center;line-height:var(--m-button-text-height);outline:0;padding:var(--m-button-padding);user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-secondary{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-grey{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey.reverse{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-input{align-items:center;border:1px solid var(--m-color-grey06);border-radius:5px;display:flex;justify-content:space-between;margin-top:16px;max-width:320px;min-width:200px;outline:none;padding:8px 16px}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-catalog-article-card .miam-catalog-card__attributes,.miam-flex-column{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin:auto}.m-default-card{background-color:var(--m-color-unpure-white);border-radius:8px;box-shadow:var(--m-shadow-small);padding:16px}@media (max-width:1023px){.m-default-card{margin-bottom:8px;padding:8px}}#toast-container>div{opacity:.95!important}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-gap:var(--miam-button-gap,10px);--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-height:var(--miam-button-text-height,calc(var(--m-button-text-size)*1.5));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-white:var(--miam-color-white,#fafcfe);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-small:var(--miam-font-size-small,14px);--m-loader-size:var(--miam-loader-sizes,40px);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){color:var(--m-color-slate);font-family:Work Sans;font-size:var(--m-font-size-medium);font-style:normal;font-weight:500;line-height:24px}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-size:40px;font-weight:700;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{-webkit-animation:none!important;-webkit-transition:none!important;animation:none!important;transition:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}.miam-catalog-article-card{background-color:var(--m-catalog-card-bg-color);border:1px solid #ddd;border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);cursor:pointer;display:flex;flex-direction:column;height:var(--m-catalog-card-height);min-width:var(--m-catalog-card-minwidth);position:relative;width:100%}@media (min-width:1023px){.miam-catalog-article-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.05)}}.miam-catalog-article-card .miam-catalog-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:var(--m-catalog-card-picture-height);position:relative}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:calc(var(--m-catalog-card-picture-height) + 1px);left:-1px;position:absolute;top:-1px;width:calc(100% + 2px)}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{-o-object-fit:cover;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:100%;height:var(--m-catalog-card-picture-height);object-fit:cover;transition:var(--m-default-transition);width:100%;z-index:var(--m-z-index-position-absolute-low)}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor{align-items:flex-start;display:flex;height:48px;justify-content:flex-start;left:16px;order:2;position:absolute;top:16px;width:64px}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor img{-o-object-fit:contain;height:auto;max-height:100%;max-width:100%;object-fit:contain;width:auto}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane{align-items:flex-end;bottom:16px;display:flex;height:48px;justify-content:flex-end;order:2;position:absolute;right:16px;width:72px}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane img{-o-object-fit:contain;height:auto;max-height:100%;max-width:100%;object-fit:contain;width:auto}.miam-catalog-article-card .miam-catalog-card__attributes{flex:1 1;flex-direction:column-reverse;justify-content:flex-start;padding:12px 16px}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{display:flex;flex-direction:row;justify-content:space-around}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info{align-items:center;display:flex;flex-direction:column;padding:0 16px;width:100%}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info:first-child{border-right:1px solid #ddd}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label{color:var(--m-catalog-card-details-color);font-size:var(--m-catalog-card-details-size);line-height:var(--m-catalog-card-details-line-height);margin:2px 0 0;text-align:center;width:100%}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label:first-letter{text-transform:capitalize}.miam-catalog-article-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.1)}.miam-catalog-article-card:hover .miam-catalog-card__attributes .miam-catalog-card__attributes__info a,.miam-catalog-article-card:hover .miam-catalog-card__attributes h4.miam-catalog-article-card__attributes__title{color:var(--m-color-primary)}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{overflow:hidden}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient:after{display:none}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{position:relative;transition:all .3s ease}.miam-catalog-article-card .miam-catalog-card__attributes{align-items:center}.miam-catalog-article-card .miam-catalog-card__attributes h4.miam-catalog-article-card__attributes__title{font-weight:700;line-height:1.3;margin:0;max-height:50px;overflow:hidden;text-align:center;transition:all .3s ease}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{justify-content:space-between;width:100%}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info a{transition:all .3s ease}"], encapsulation: 2, changeDetection: 0 });
|
|
11278
11301
|
/*@__PURE__*/ (function () {
|
|
11279
11302
|
i0.ɵsetClassMetadata(CatalogArticleCardComponent, [{
|
|
11280
11303
|
type: i0.Component,
|
|
@@ -11336,6 +11359,11 @@
|
|
|
11336
11359
|
this.sendShowEvent();
|
|
11337
11360
|
this.displayPrice();
|
|
11338
11361
|
this.subscriptions.push(this.groceriesListsService.list$.subscribe(function () { return _this.cdr.detectChanges(); }));
|
|
11362
|
+
this.subscriptions.push(this.recipeService.reloadRecipes$.subscribe(function (shouldReload) {
|
|
11363
|
+
if (shouldReload) {
|
|
11364
|
+
_this.cdr.detectChanges();
|
|
11365
|
+
}
|
|
11366
|
+
}));
|
|
11339
11367
|
};
|
|
11340
11368
|
AbstractRecipeCardComponent.prototype.ngOnDestroy = function () {
|
|
11341
11369
|
this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
@@ -11471,8 +11499,8 @@
|
|
|
11471
11499
|
|
|
11472
11500
|
function RecipeCardComponent_div_0_div_3_div_2_Template(rf, ctx) {
|
|
11473
11501
|
if (rf & 1) {
|
|
11474
|
-
i0.ɵɵelementStart(0, "div",
|
|
11475
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11502
|
+
i0.ɵɵelementStart(0, "div", 37);
|
|
11503
|
+
i0.ɵɵelement(1, "ng-miam-icon", 38);
|
|
11476
11504
|
i0.ɵɵelementEnd();
|
|
11477
11505
|
}
|
|
11478
11506
|
if (rf & 2) {
|
|
@@ -11483,34 +11511,50 @@
|
|
|
11483
11511
|
}
|
|
11484
11512
|
function RecipeCardComponent_div_0_div_3_ng_miam_like_button_4_Template(rf, ctx) {
|
|
11485
11513
|
if (rf & 1) {
|
|
11486
|
-
i0.ɵɵelement(0, "ng-miam-like-button",
|
|
11514
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 39);
|
|
11487
11515
|
}
|
|
11488
11516
|
if (rf & 2) {
|
|
11489
11517
|
var ctx_r26 = i0.ɵɵnextContext(3);
|
|
11490
11518
|
i0.ɵɵproperty("recipe", ctx_r26.recipe)("originTrace", ctx_r26.eventTrace());
|
|
11491
11519
|
}
|
|
11492
11520
|
}
|
|
11493
|
-
function
|
|
11521
|
+
function RecipeCardComponent_div_0_div_3_div_6_Template(rf, ctx) {
|
|
11494
11522
|
if (rf & 1) {
|
|
11495
|
-
i0.ɵɵ
|
|
11523
|
+
i0.ɵɵelementStart(0, "div", 40);
|
|
11524
|
+
i0.ɵɵelement(1, "img", 41);
|
|
11525
|
+
i0.ɵɵelementEnd();
|
|
11496
11526
|
}
|
|
11497
11527
|
if (rf & 2) {
|
|
11498
11528
|
var ctx_r27 = i0.ɵɵnextContext(3);
|
|
11499
|
-
i0.ɵɵ
|
|
11529
|
+
i0.ɵɵadvance(1);
|
|
11530
|
+
i0.ɵɵproperty("src", ctx_r27.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl);
|
|
11531
|
+
}
|
|
11532
|
+
}
|
|
11533
|
+
function RecipeCardComponent_div_0_div_3_div_7_Template(rf, ctx) {
|
|
11534
|
+
if (rf & 1) {
|
|
11535
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
11536
|
+
i0.ɵɵelement(1, "img", 41);
|
|
11537
|
+
i0.ɵɵelementEnd();
|
|
11538
|
+
}
|
|
11539
|
+
if (rf & 2) {
|
|
11540
|
+
var ctx_r28 = i0.ɵɵnextContext(3);
|
|
11541
|
+
i0.ɵɵadvance(1);
|
|
11542
|
+
i0.ɵɵproperty("src", ctx_r28.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
|
|
11500
11543
|
}
|
|
11501
11544
|
}
|
|
11502
11545
|
function RecipeCardComponent_div_0_div_3_Template(rf, ctx) {
|
|
11503
11546
|
if (rf & 1) {
|
|
11504
|
-
var
|
|
11547
|
+
var _r30_1 = i0.ɵɵgetCurrentView();
|
|
11505
11548
|
i0.ɵɵelementStart(0, "div", 30);
|
|
11506
|
-
i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_3_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
11549
|
+
i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_3_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r30_1); var ctx_r29 = i0.ɵɵnextContext(2); return ctx_r29.openRecipe(); });
|
|
11507
11550
|
i0.ɵɵelement(1, "img", 31);
|
|
11508
11551
|
i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_3_div_2_Template, 2, 3, "div", 32);
|
|
11509
11552
|
i0.ɵɵelementStart(3, "div", 33);
|
|
11510
11553
|
i0.ɵɵtemplate(4, RecipeCardComponent_div_0_div_3_ng_miam_like_button_4_Template, 1, 2, "ng-miam-like-button", 34);
|
|
11511
11554
|
i0.ɵɵpipe(5, "async");
|
|
11512
11555
|
i0.ɵɵelementEnd();
|
|
11513
|
-
i0.ɵɵtemplate(6,
|
|
11556
|
+
i0.ɵɵtemplate(6, RecipeCardComponent_div_0_div_3_div_6_Template, 2, 1, "div", 35);
|
|
11557
|
+
i0.ɵɵtemplate(7, RecipeCardComponent_div_0_div_3_div_7_Template, 2, 1, "div", 36);
|
|
11514
11558
|
i0.ɵɵelementEnd();
|
|
11515
11559
|
}
|
|
11516
11560
|
if (rf & 2) {
|
|
@@ -11520,14 +11564,16 @@
|
|
|
11520
11564
|
i0.ɵɵadvance(1);
|
|
11521
11565
|
i0.ɵɵproperty("ngIf", ctx_r3.contextService.videoRecipesEnabled && (ctx_r3.recipe == null ? null : ctx_r3.recipe.videoId));
|
|
11522
11566
|
i0.ɵɵadvance(2);
|
|
11523
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5,
|
|
11567
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(5, 5, ctx_r3.userService.isLogged$));
|
|
11524
11568
|
i0.ɵɵadvance(2);
|
|
11569
|
+
i0.ɵɵproperty("ngIf", ctx_r3.recipe.sponsorLogoUrl);
|
|
11570
|
+
i0.ɵɵadvance(1);
|
|
11525
11571
|
i0.ɵɵproperty("ngIf", ctx_r3.recipe.filigraneLogoUrl);
|
|
11526
11572
|
}
|
|
11527
11573
|
}
|
|
11528
11574
|
function RecipeCardComponent_div_0_ng_template_4_Template(rf, ctx) {
|
|
11529
11575
|
if (rf & 1) {
|
|
11530
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
11576
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 43);
|
|
11531
11577
|
}
|
|
11532
11578
|
if (rf & 2) {
|
|
11533
11579
|
var ctx_r5 = i0.ɵɵnextContext(2);
|
|
@@ -11536,10 +11582,10 @@
|
|
|
11536
11582
|
}
|
|
11537
11583
|
function RecipeCardComponent_div_0_div_7_Template(rf, ctx) {
|
|
11538
11584
|
if (rf & 1) {
|
|
11539
|
-
var
|
|
11585
|
+
var _r32_1 = i0.ɵɵgetCurrentView();
|
|
11540
11586
|
i0.ɵɵelementStart(0, "div");
|
|
11541
|
-
i0.ɵɵelementStart(1, "div",
|
|
11542
|
-
i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_7_Template_div_click_1_listener() { i0.ɵɵrestoreView(
|
|
11587
|
+
i0.ɵɵelementStart(1, "div", 44);
|
|
11588
|
+
i0.ɵɵlistener("click", function RecipeCardComponent_div_0_div_7_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r32_1); var ctx_r31 = i0.ɵɵnextContext(2); return ctx_r31.openRecipe(); });
|
|
11543
11589
|
i0.ɵɵtext(2);
|
|
11544
11590
|
i0.ɵɵelementEnd();
|
|
11545
11591
|
i0.ɵɵelementEnd();
|
|
@@ -11552,7 +11598,7 @@
|
|
|
11552
11598
|
}
|
|
11553
11599
|
function RecipeCardComponent_div_0_ng_template_8_Template(rf, ctx) {
|
|
11554
11600
|
if (rf & 1) {
|
|
11555
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
11601
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 43);
|
|
11556
11602
|
}
|
|
11557
11603
|
if (rf & 2) {
|
|
11558
11604
|
var ctx_r8 = i0.ɵɵnextContext(2);
|
|
@@ -11561,9 +11607,9 @@
|
|
|
11561
11607
|
}
|
|
11562
11608
|
function RecipeCardComponent_div_0_div_11_Template(rf, ctx) {
|
|
11563
11609
|
if (rf & 1) {
|
|
11564
|
-
i0.ɵɵelementStart(0, "div",
|
|
11565
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11566
|
-
i0.ɵɵelementStart(2, "span",
|
|
11610
|
+
i0.ɵɵelementStart(0, "div", 45);
|
|
11611
|
+
i0.ɵɵelement(1, "ng-miam-icon", 46);
|
|
11612
|
+
i0.ɵɵelementStart(2, "span", 47);
|
|
11567
11613
|
i0.ɵɵtext(3);
|
|
11568
11614
|
i0.ɵɵelementEnd();
|
|
11569
11615
|
i0.ɵɵelementEnd();
|
|
@@ -11579,49 +11625,49 @@
|
|
|
11579
11625
|
function RecipeCardComponent_div_0_div_12_ng_container_2_Template(rf, ctx) {
|
|
11580
11626
|
if (rf & 1) {
|
|
11581
11627
|
i0.ɵɵelementContainerStart(0);
|
|
11582
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11628
|
+
i0.ɵɵelement(1, "ng-miam-icon", 52);
|
|
11583
11629
|
i0.ɵɵelementContainerEnd();
|
|
11584
11630
|
}
|
|
11585
11631
|
if (rf & 2) {
|
|
11586
|
-
var
|
|
11632
|
+
var ctx_r33 = i0.ɵɵnextContext(3);
|
|
11587
11633
|
i0.ɵɵadvance(1);
|
|
11588
|
-
i0.ɵɵproperty("width", 44)("height", 20)("iconName",
|
|
11634
|
+
i0.ɵɵproperty("width", 44)("height", 20)("iconName", ctx_r33.icon.DifficultyMedium);
|
|
11589
11635
|
}
|
|
11590
11636
|
}
|
|
11591
11637
|
function RecipeCardComponent_div_0_div_12_ng_container_3_Template(rf, ctx) {
|
|
11592
11638
|
if (rf & 1) {
|
|
11593
11639
|
i0.ɵɵelementContainerStart(0);
|
|
11594
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11640
|
+
i0.ɵɵelement(1, "ng-miam-icon", 52);
|
|
11595
11641
|
i0.ɵɵelementContainerEnd();
|
|
11596
11642
|
}
|
|
11597
11643
|
if (rf & 2) {
|
|
11598
|
-
var
|
|
11644
|
+
var ctx_r34 = i0.ɵɵnextContext(3);
|
|
11599
11645
|
i0.ɵɵadvance(1);
|
|
11600
|
-
i0.ɵɵproperty("width", 67)("height", 20)("iconName",
|
|
11646
|
+
i0.ɵɵproperty("width", 67)("height", 20)("iconName", ctx_r34.icon.DifficultyHigh);
|
|
11601
11647
|
}
|
|
11602
11648
|
}
|
|
11603
11649
|
function RecipeCardComponent_div_0_div_12_ng_container_4_Template(rf, ctx) {
|
|
11604
11650
|
if (rf & 1) {
|
|
11605
11651
|
i0.ɵɵelementContainerStart(0);
|
|
11606
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11652
|
+
i0.ɵɵelement(1, "ng-miam-icon", 52);
|
|
11607
11653
|
i0.ɵɵelementContainerEnd();
|
|
11608
11654
|
}
|
|
11609
11655
|
if (rf & 2) {
|
|
11610
|
-
var
|
|
11656
|
+
var ctx_r35 = i0.ɵɵnextContext(3);
|
|
11611
11657
|
i0.ɵɵadvance(1);
|
|
11612
|
-
i0.ɵɵproperty("width", 20)("height", 20)("iconName",
|
|
11658
|
+
i0.ɵɵproperty("width", 20)("height", 20)("iconName", ctx_r35.icon.DifficultyLow);
|
|
11613
11659
|
}
|
|
11614
11660
|
}
|
|
11615
11661
|
var _c0$f = function (a0, a1, a2) { return { "easy": a0, "medium": a1, "hard": a2 }; };
|
|
11616
11662
|
function RecipeCardComponent_div_0_div_12_Template(rf, ctx) {
|
|
11617
11663
|
if (rf & 1) {
|
|
11618
|
-
i0.ɵɵelementStart(0, "div",
|
|
11619
|
-
i0.ɵɵelementContainerStart(1,
|
|
11620
|
-
i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_2_Template, 2, 3, "ng-container",
|
|
11621
|
-
i0.ɵɵtemplate(3, RecipeCardComponent_div_0_div_12_ng_container_3_Template, 2, 3, "ng-container",
|
|
11622
|
-
i0.ɵɵtemplate(4, RecipeCardComponent_div_0_div_12_ng_container_4_Template, 2, 3, "ng-container",
|
|
11664
|
+
i0.ɵɵelementStart(0, "div", 48);
|
|
11665
|
+
i0.ɵɵelementContainerStart(1, 49);
|
|
11666
|
+
i0.ɵɵtemplate(2, RecipeCardComponent_div_0_div_12_ng_container_2_Template, 2, 3, "ng-container", 50);
|
|
11667
|
+
i0.ɵɵtemplate(3, RecipeCardComponent_div_0_div_12_ng_container_3_Template, 2, 3, "ng-container", 50);
|
|
11668
|
+
i0.ɵɵtemplate(4, RecipeCardComponent_div_0_div_12_ng_container_4_Template, 2, 3, "ng-container", 51);
|
|
11623
11669
|
i0.ɵɵelementContainerEnd();
|
|
11624
|
-
i0.ɵɵelementStart(5, "span",
|
|
11670
|
+
i0.ɵɵelementStart(5, "span", 47);
|
|
11625
11671
|
i0.ɵɵtext(6);
|
|
11626
11672
|
i0.ɵɵelementEnd();
|
|
11627
11673
|
i0.ɵɵelementEnd();
|
|
@@ -11641,9 +11687,9 @@
|
|
|
11641
11687
|
}
|
|
11642
11688
|
function RecipeCardComponent_div_0_div_13_Template(rf, ctx) {
|
|
11643
11689
|
if (rf & 1) {
|
|
11644
|
-
i0.ɵɵelementStart(0, "div",
|
|
11645
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
11646
|
-
i0.ɵɵelementStart(2, "span",
|
|
11690
|
+
i0.ɵɵelementStart(0, "div", 53);
|
|
11691
|
+
i0.ɵɵelement(1, "ng-miam-icon", 54);
|
|
11692
|
+
i0.ɵɵelementStart(2, "span", 47);
|
|
11647
11693
|
i0.ɵɵtext(3);
|
|
11648
11694
|
i0.ɵɵelementEnd();
|
|
11649
11695
|
i0.ɵɵelementEnd();
|
|
@@ -11658,7 +11704,7 @@
|
|
|
11658
11704
|
}
|
|
11659
11705
|
function RecipeCardComponent_div_0_ng_template_14_Template(rf, ctx) {
|
|
11660
11706
|
if (rf & 1) {
|
|
11661
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
11707
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 43);
|
|
11662
11708
|
}
|
|
11663
11709
|
if (rf & 2) {
|
|
11664
11710
|
var ctx_r13 = i0.ɵɵnextContext(2);
|
|
@@ -11667,26 +11713,26 @@
|
|
|
11667
11713
|
}
|
|
11668
11714
|
function RecipeCardComponent_div_0_div_21_div_5_Template(rf, ctx) {
|
|
11669
11715
|
if (rf & 1) {
|
|
11670
|
-
i0.ɵɵelementStart(0, "div",
|
|
11716
|
+
i0.ɵɵelementStart(0, "div", 58);
|
|
11671
11717
|
i0.ɵɵtext(1);
|
|
11672
11718
|
i0.ɵɵelementEnd();
|
|
11673
11719
|
}
|
|
11674
11720
|
if (rf & 2) {
|
|
11675
|
-
var
|
|
11721
|
+
var ctx_r36 = i0.ɵɵnextContext(3);
|
|
11676
11722
|
i0.ɵɵadvance(1);
|
|
11677
|
-
i0.ɵɵtextInterpolate1(" + ",
|
|
11723
|
+
i0.ɵɵtextInterpolate1(" + ", ctx_r36.recipe.modifiedIngredients.length - 2, " ");
|
|
11678
11724
|
}
|
|
11679
11725
|
}
|
|
11680
11726
|
function RecipeCardComponent_div_0_div_21_Template(rf, ctx) {
|
|
11681
11727
|
if (rf & 1) {
|
|
11682
|
-
i0.ɵɵelementStart(0, "div",
|
|
11683
|
-
i0.ɵɵelementStart(1, "div",
|
|
11684
|
-
i0.ɵɵelement(2, "img",
|
|
11728
|
+
i0.ɵɵelementStart(0, "div", 55);
|
|
11729
|
+
i0.ɵɵelementStart(1, "div", 56);
|
|
11730
|
+
i0.ɵɵelement(2, "img", 41);
|
|
11685
11731
|
i0.ɵɵelementEnd();
|
|
11686
|
-
i0.ɵɵelementStart(3, "div",
|
|
11687
|
-
i0.ɵɵelement(4, "img",
|
|
11732
|
+
i0.ɵɵelementStart(3, "div", 56);
|
|
11733
|
+
i0.ɵɵelement(4, "img", 41);
|
|
11688
11734
|
i0.ɵɵelementEnd();
|
|
11689
|
-
i0.ɵɵtemplate(5, RecipeCardComponent_div_0_div_21_div_5_Template, 2, 1, "div",
|
|
11735
|
+
i0.ɵɵtemplate(5, RecipeCardComponent_div_0_div_21_div_5_Template, 2, 1, "div", 57);
|
|
11690
11736
|
i0.ɵɵelementEnd();
|
|
11691
11737
|
}
|
|
11692
11738
|
if (rf & 2) {
|
|
@@ -11701,10 +11747,10 @@
|
|
|
11701
11747
|
}
|
|
11702
11748
|
function RecipeCardComponent_div_0_div_22_Template(rf, ctx) {
|
|
11703
11749
|
if (rf & 1) {
|
|
11704
|
-
var
|
|
11705
|
-
i0.ɵɵelementStart(0, "div",
|
|
11706
|
-
i0.ɵɵelementStart(1, "ng-miam-counter-input",
|
|
11707
|
-
i0.ɵɵlistener("counterChange", function RecipeCardComponent_div_0_div_22_Template_ng_miam_counter_input_counterChange_1_listener($event) { i0.ɵɵrestoreView(
|
|
11750
|
+
var _r38_1 = i0.ɵɵgetCurrentView();
|
|
11751
|
+
i0.ɵɵelementStart(0, "div", 59);
|
|
11752
|
+
i0.ɵɵelementStart(1, "ng-miam-counter-input", 60);
|
|
11753
|
+
i0.ɵɵlistener("counterChange", function RecipeCardComponent_div_0_div_22_Template_ng_miam_counter_input_counterChange_1_listener($event) { i0.ɵɵrestoreView(_r38_1); var ctx_r37 = i0.ɵɵnextContext(2); return ctx_r37.updateGuests($event); });
|
|
11708
11754
|
i0.ɵɵelementEnd();
|
|
11709
11755
|
i0.ɵɵelementEnd();
|
|
11710
11756
|
}
|
|
@@ -11716,7 +11762,7 @@
|
|
|
11716
11762
|
}
|
|
11717
11763
|
function RecipeCardComponent_div_0_ng_template_23_Template(rf, ctx) {
|
|
11718
11764
|
if (rf & 1) {
|
|
11719
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
11765
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 43);
|
|
11720
11766
|
}
|
|
11721
11767
|
if (rf & 2) {
|
|
11722
11768
|
var ctx_r17 = i0.ɵɵnextContext(2);
|
|
@@ -11725,8 +11771,8 @@
|
|
|
11725
11771
|
}
|
|
11726
11772
|
function RecipeCardComponent_div_0_div_26_Template(rf, ctx) {
|
|
11727
11773
|
if (rf & 1) {
|
|
11728
|
-
i0.ɵɵelementStart(0, "div",
|
|
11729
|
-
i0.ɵɵelement(1, "ng-miam-recipe-pricing",
|
|
11774
|
+
i0.ɵɵelementStart(0, "div", 61);
|
|
11775
|
+
i0.ɵɵelement(1, "ng-miam-recipe-pricing", 62);
|
|
11730
11776
|
i0.ɵɵelementEnd();
|
|
11731
11777
|
}
|
|
11732
11778
|
if (rf & 2) {
|
|
@@ -11763,7 +11809,7 @@
|
|
|
11763
11809
|
}
|
|
11764
11810
|
function RecipeCardComponent_div_0_ng_miam_icon_33_Template(rf, ctx) {
|
|
11765
11811
|
if (rf & 1) {
|
|
11766
|
-
i0.ɵɵelement(0, "ng-miam-icon",
|
|
11812
|
+
i0.ɵɵelement(0, "ng-miam-icon", 63);
|
|
11767
11813
|
i0.ɵɵpipe(1, "async");
|
|
11768
11814
|
}
|
|
11769
11815
|
if (rf & 2) {
|
|
@@ -11779,12 +11825,12 @@
|
|
|
11779
11825
|
var _c1$6 = function (a0, a1) { return { "in-basket": a0, "loading": a1 }; };
|
|
11780
11826
|
function RecipeCardComponent_div_0_Template(rf, ctx) {
|
|
11781
11827
|
if (rf & 1) {
|
|
11782
|
-
var
|
|
11828
|
+
var _r40_1 = i0.ɵɵgetCurrentView();
|
|
11783
11829
|
i0.ɵɵelementStart(0, "div", 2);
|
|
11784
11830
|
i0.ɵɵelementStart(1, "div", 3);
|
|
11785
11831
|
i0.ɵɵelement(2, "img", 4);
|
|
11786
11832
|
i0.ɵɵelementEnd();
|
|
11787
|
-
i0.ɵɵtemplate(3, RecipeCardComponent_div_0_div_3_Template,
|
|
11833
|
+
i0.ɵɵtemplate(3, RecipeCardComponent_div_0_div_3_Template, 8, 7, "div", 5);
|
|
11788
11834
|
i0.ɵɵtemplate(4, RecipeCardComponent_div_0_ng_template_4_Template, 1, 1, "ng-template", null, 6, i0.ɵɵtemplateRefExtractor);
|
|
11789
11835
|
i0.ɵɵelementStart(6, "div", 7);
|
|
11790
11836
|
i0.ɵɵtemplate(7, RecipeCardComponent_div_0_div_7_Template, 3, 1, "div", 8);
|
|
@@ -11799,7 +11845,7 @@
|
|
|
11799
11845
|
i0.ɵɵelementStart(17, "div", 16);
|
|
11800
11846
|
i0.ɵɵelementStart(18, "div", 17);
|
|
11801
11847
|
i0.ɵɵelementStart(19, "div", 18);
|
|
11802
|
-
i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_div_click_19_listener() { i0.ɵɵrestoreView(
|
|
11848
|
+
i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_div_click_19_listener() { i0.ɵɵrestoreView(_r40_1); var ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.toggleHelper(); });
|
|
11803
11849
|
i0.ɵɵelement(20, "ng-miam-icon", 19);
|
|
11804
11850
|
i0.ɵɵelementEnd();
|
|
11805
11851
|
i0.ɵɵtemplate(21, RecipeCardComponent_div_0_div_21_Template, 6, 3, "div", 20);
|
|
@@ -11813,7 +11859,7 @@
|
|
|
11813
11859
|
i0.ɵɵelementEnd();
|
|
11814
11860
|
i0.ɵɵelementStart(27, "div", 25);
|
|
11815
11861
|
i0.ɵɵelementStart(28, "button", 26);
|
|
11816
|
-
i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_button_click_28_listener() { i0.ɵɵrestoreView(
|
|
11862
|
+
i0.ɵɵlistener("click", function RecipeCardComponent_div_0_Template_button_click_28_listener() { i0.ɵɵrestoreView(_r40_1); var ctx_r41 = i0.ɵɵnextContext(); return ctx_r41.clickPrimary(); });
|
|
11817
11863
|
i0.ɵɵpipe(29, "async");
|
|
11818
11864
|
i0.ɵɵtemplate(30, RecipeCardComponent_div_0_span_30_Template, 3, 3, "span", 8);
|
|
11819
11865
|
i0.ɵɵtemplate(31, RecipeCardComponent_div_0_ng_template_31_Template, 3, 3, "ng-template", null, 27, i0.ɵɵtemplateRefExtractor);
|
|
@@ -11853,7 +11899,7 @@
|
|
|
11853
11899
|
i0.ɵɵadvance(2);
|
|
11854
11900
|
i0.ɵɵproperty("disabled", !ctx_r0.recipe)("ngClass", i0.ɵɵpureFunction2(25, _c1$6, i0.ɵɵpipeBind1(29, 23, ctx_r0.groceriesListsService.recipeIsInList(ctx_r0.recipe == null ? null : ctx_r0.recipe.id)), ctx_r0.addButtonLoading));
|
|
11855
11901
|
i0.ɵɵadvance(2);
|
|
11856
|
-
i0.ɵɵproperty("ngIf", ctx_r0.recipeService.recipesPrimaryButtonActions.display && !ctx_r0.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r20);
|
|
11902
|
+
i0.ɵɵproperty("ngIf", ctx_r0.recipeService.suggestionsPrimaryButtonActions.display && !ctx_r0.recipeService.suggestionsPrimaryButtonActions.addToBasket || ctx_r0.recipeService.recipesPrimaryButtonActions.display && !ctx_r0.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r20);
|
|
11857
11903
|
i0.ɵɵadvance(3);
|
|
11858
11904
|
i0.ɵɵproperty("ngIf", !ctx_r0.addButtonLoading)("ngIfElse", _r23);
|
|
11859
11905
|
}
|
|
@@ -11980,7 +12026,7 @@
|
|
|
11980
12026
|
return RecipeCardComponent;
|
|
11981
12027
|
}(AbstractRecipeCardComponent));
|
|
11982
12028
|
RecipeCardComponent.ɵfac = function RecipeCardComponent_Factory(t) { return new (t || RecipeCardComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(ToastrService)); };
|
|
11983
|
-
RecipeCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardComponent, selectors: [["ng-miam-recipe-card"]], inputs: { recipeId: "recipeId", recipe: "recipe" }, outputs: { removedFromFavorite: "removedFromFavorite", displayed: "displayed", guestsChanged: "guestsChanged" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 1, consts: [["class", "miam-recipe-card", 4, "ngIf"], ["cors", ""], [1, "miam-recipe-card"], [1, "miam-recipe-card__bookmark"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-card/Bookmark.svg", "alt", "Id\u00E9es repas"], ["class", "miam-recipe-card__picture", 3, "click", 4, "ngIf", "ngIfElse"], ["pictSkeleton", ""], [1, "miam-recipe-card__attributes"], [4, "ngIf", "ngIfElse"], ["textSkeleton", ""], [1, "miam-recipe-card__attributes__infos"], ["class", "miam-recipe-card__attributes__info recipe__total__time", 4, "ngIf", "ngIfElse"], ["class", "miam-recipe-card__attributes__info recipe__difficulty", 3, "ngClass", 4, "ngIf", "ngIfElse"], ["class", "miam-recipe-card__attributes__info recipe__ingredients", 4, "ngIf", "ngIfElse"], ["skeletonInfo", ""], [1, "miam-recipe-card__attributes__control"], [1, "miam-recipe-card__control__left__col"], [1, "miam-recipe-card__left__col__custom"], [1, "miam-recipe-card__help", 3, "click"], ["primaryColor", "var(--m-color-grey02)", "secondaryColor", "var(--m-color-grey07)", 3, "width", "height", "iconName"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], ["class", "miam-recipe-card__left__col__counter", 4, "ngIf", "ngIfElse"], ["skeletoncounter", ""], [1, "miam-recipe-card__control__right__col"], ["class", "miam-recipe-card__right__col__price", 4, "ngIf"], [1, "miam-recipe-card__cta"], [1, "m-button-primary", 3, "disabled", "ngClass", "click"], ["originalCTA", ""], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-recipe-card__picture", 3, "click"], ["loading", "lazy", 3, "src"], ["class", "miam-recipe-card__picture__video", 4, "ngIf"], [1, "miam-recipe-card__picture__actions"], ["class", "miam-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], ["class", "miam-recipe-card__picture__sponsor",
|
|
12029
|
+
RecipeCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardComponent, selectors: [["ng-miam-recipe-card"]], inputs: { recipeId: "recipeId", recipe: "recipe" }, outputs: { removedFromFavorite: "removedFromFavorite", displayed: "displayed", guestsChanged: "guestsChanged" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 1, consts: [["class", "miam-recipe-card", 4, "ngIf"], ["cors", ""], [1, "miam-recipe-card"], [1, "miam-recipe-card__bookmark"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-card/Bookmark.svg", "alt", "Id\u00E9es repas"], ["class", "miam-recipe-card__picture", 3, "click", 4, "ngIf", "ngIfElse"], ["pictSkeleton", ""], [1, "miam-recipe-card__attributes"], [4, "ngIf", "ngIfElse"], ["textSkeleton", ""], [1, "miam-recipe-card__attributes__infos"], ["class", "miam-recipe-card__attributes__info recipe__total__time", 4, "ngIf", "ngIfElse"], ["class", "miam-recipe-card__attributes__info recipe__difficulty", 3, "ngClass", 4, "ngIf", "ngIfElse"], ["class", "miam-recipe-card__attributes__info recipe__ingredients", 4, "ngIf", "ngIfElse"], ["skeletonInfo", ""], [1, "miam-recipe-card__attributes__control"], [1, "miam-recipe-card__control__left__col"], [1, "miam-recipe-card__left__col__custom"], [1, "miam-recipe-card__help", 3, "click"], ["primaryColor", "var(--m-color-grey02)", "secondaryColor", "var(--m-color-grey07)", 3, "width", "height", "iconName"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], ["class", "miam-recipe-card__left__col__counter", 4, "ngIf", "ngIfElse"], ["skeletoncounter", ""], [1, "miam-recipe-card__control__right__col"], ["class", "miam-recipe-card__right__col__price", 4, "ngIf"], [1, "miam-recipe-card__cta"], [1, "m-button-primary", 3, "disabled", "ngClass", "click"], ["originalCTA", ""], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-recipe-card__picture", 3, "click"], ["loading", "lazy", 3, "src"], ["class", "miam-recipe-card__picture__video", 4, "ngIf"], [1, "miam-recipe-card__picture__actions"], ["class", "miam-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], ["class", "miam-recipe-card__picture__sponsor", 4, "ngIf"], ["class", "miam-recipe-card__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-card__picture__video"], ["primaryColor", "black", 3, "iconName", "width", "height"], [1, "miam-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-recipe-card__picture__sponsor"], [3, "src"], [1, "miam-recipe-card__picture__filigrane"], [3, "type"], [1, "miam-recipe-card__attributes__title", 3, "click"], [1, "miam-recipe-card__attributes__info", "recipe__total__time"], [3, "width", "height", "iconName"], [1, "miam-recipe-card__info__label"], [1, "miam-recipe-card__attributes__info", "recipe__difficulty", 3, "ngClass"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["primaryColor", "var(--m-color-black)", 3, "width", "height", "iconName"], [1, "miam-recipe-card__attributes__info", "recipe__ingredients"], [3, "iconName"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__left__col__counter"], [3, "counter", "counterChange"], [1, "miam-recipe-card__right__col__price"], [3, "recipe", "serves"], ["primaryColor", "#fff", 3, "width", "height", "iconName"]], template: function RecipeCardComponent_Template(rf, ctx) {
|
|
11984
12030
|
if (rf & 1) {
|
|
11985
12031
|
i0.ɵɵtemplate(0, RecipeCardComponent_div_0_Template, 36, 28, "div", 0);
|
|
11986
12032
|
i0.ɵɵtemplate(1, RecipeCardComponent_ng_template_1_Template, 1, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
@@ -11988,7 +12034,7 @@
|
|
|
11988
12034
|
if (rf & 2) {
|
|
11989
12035
|
i0.ɵɵproperty("ngIf", ctx.isloaded);
|
|
11990
12036
|
}
|
|
11991
|
-
}, directives: [i4.NgIf, IconComponent, i4.NgClass, LikeButtonComponent, SkeletonComponent, i4.NgSwitch, i4.NgSwitchCase, i4.NgSwitchDefault, CounterInputComponent, RecipePricingComponent, LoaderComponent, CORSOverlayComponent], pipes: [i4.AsyncPipe], styles: [".miam-recipe-card{background-color:var(--m-color-white);border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);display:flex;flex-direction:column;height:100%;min-height:440px;position:relative;width:320px}.miam-recipe-card .miam-recipe-card__bookmark{filter:drop-shadow(0 6px 8px rgba(0,0,0,.1));left:0;position:absolute;top:10px;z-index:1}.miam-recipe-card .miam-recipe-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:60%;position:relative}.miam-recipe-card .miam-recipe-card__picture img{-o-object-fit:cover;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:100%;object-fit:cover;position:absolute;transition:var(--m-default-transition);width:100%;z-index:var(--m-z-index-position-absolute-low)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__video{left:calc(50% - 50px);position:absolute;top:calc(50% - 50px)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions{display:flex;position:absolute;right:16px;top:20px;z-index:var(--m-z-index-position-absolute-high)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions ng-miam-like-button.miam-recipe-card__actions__icon{-o-object-fit:contain;background-color:var(--m-color-white);border-radius:var(--m-border-radius-circle);filter:drop-shadow(0 6px 8px rgba(0,0,0,.1));margin:0 0 16px;object-fit:contain;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor{-o-object-fit:contain;
|
|
12037
|
+
}, directives: [i4.NgIf, IconComponent, i4.NgClass, LikeButtonComponent, SkeletonComponent, i4.NgSwitch, i4.NgSwitchCase, i4.NgSwitchDefault, CounterInputComponent, RecipePricingComponent, LoaderComponent, CORSOverlayComponent], pipes: [i4.AsyncPipe], styles: [".miam-recipe-card{background-color:var(--m-color-white);border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);display:flex;flex-direction:column;height:100%;min-height:440px;position:relative;width:320px}.miam-recipe-card .miam-recipe-card__bookmark{filter:drop-shadow(0 6px 8px rgba(0,0,0,.1));left:0;position:absolute;top:10px;z-index:1}.miam-recipe-card .miam-recipe-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:60%;position:relative}.miam-recipe-card .miam-recipe-card__picture img{-o-object-fit:cover;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:100%;object-fit:cover;position:absolute;transition:var(--m-default-transition);width:100%;z-index:var(--m-z-index-position-absolute-low)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__video{left:calc(50% - 50px);position:absolute;top:calc(50% - 50px)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions{display:flex;position:absolute;right:16px;top:20px;z-index:var(--m-z-index-position-absolute-high)}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__actions ng-miam-like-button.miam-recipe-card__actions__icon{-o-object-fit:contain;background-color:var(--m-color-white);border-radius:var(--m-border-radius-circle);filter:drop-shadow(0 6px 8px rgba(0,0,0,.1));margin:0 0 16px;object-fit:contain;width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor{align-items:flex-start;display:flex;height:48px;justify-content:flex-start;left:16px;order:2;position:absolute;top:16px;width:64px}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__sponsor img{-o-object-fit:contain;border-radius:0;height:auto;max-height:100%;max-width:100%;object-fit:contain;position:unset;transition:unset;width:auto;z-index:unset}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__filigrane{align-items:flex-end;bottom:16px;display:flex;height:48px;justify-content:flex-end;order:2;position:absolute;right:16px;width:72px}.miam-recipe-card .miam-recipe-card__picture .miam-recipe-card__picture__filigrane img{-o-object-fit:contain;border-radius:0;height:auto;max-height:100%;max-width:100%;object-fit:contain;position:unset;transition:unset;width:auto;z-index:unset}.miam-recipe-card .miam-recipe-card__attributes{display:flex;flex:1 1;flex-direction:column;justify-content:space-around;justify-content:space-between;padding:8px 16px 16px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;-webkit-tap-highlight-color:transparent;color:var(--m-color-slate);cursor:pointer;display:-webkit-box;font-size:20px;font-weight:700;font-weight:500;letter-spacing:normal;line-height:30;line-height:1.5;overflow:hidden;text-align:center;text-overflow:ellipsis;transition:var(--m-default-transition)}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__title:hover{color:var(--m-color-primary);text-decoration:underline}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos{display:flex;flex-direction:row;justify-content:space-around;padding:8px 0}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info{align-items:center;display:flex;flex-direction:column;width:100%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info.recipe__total__time{border-right:1px solid #e9e9e9}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info.recipe__ingredients{border-left:1px solid #e9e9e9;display:none}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__infos .miam-recipe-card__attributes__info .miam-recipe-card__info__label{font-size:14px;margin-top:10px;text-transform:capitalize}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control{align-items:center;display:flex;justify-content:space-between}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col{display:flex;flex-direction:column-reverse}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__counter{align-items:center;display:none}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__counter ng-miam-counter-input .miam-counter-input__icon{margin-right:8px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom{align-items:flex-end;display:flex;justify-content:flex-start}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom .icon-container{cursor:pointer}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom .miam-recipe-card__help,.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__left__col .miam-recipe-card__left__col__custom .miam-recipe-card__ingredients__pictures{display:none}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col{align-items:center;display:flex;flex-direction:column;min-width:60px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__attributes__control .miam-recipe-card__control__right__col .miam-recipe-card__right__col__price{display:none;height:48px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__cta{display:flex;justify-content:center;width:100%}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__cta button{padding:12px 16px}.miam-recipe-card .miam-recipe-card__attributes .miam-recipe-card__cta button .miam-loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:24px;width:24px}@media (max-width:1023px){.miam-recipe-card{height:440px}.miam-recipe-card .miam-recipe-card__picture{height:55%}}"], encapsulation: 2, changeDetection: 0 });
|
|
11992
12038
|
/*@__PURE__*/ (function () {
|
|
11993
12039
|
i0.ɵsetClassMetadata(RecipeCardComponent, [{
|
|
11994
12040
|
type: i0.Component,
|
|
@@ -12038,127 +12084,142 @@
|
|
|
12038
12084
|
var _c0$g = ["miamMoreActions"];
|
|
12039
12085
|
function CatalogRecipeCardComponent_div_4_div_3_Template(rf, ctx) {
|
|
12040
12086
|
if (rf & 1) {
|
|
12041
|
-
i0.ɵɵelementStart(0, "div");
|
|
12042
|
-
i0.ɵɵelement(1, "img",
|
|
12087
|
+
i0.ɵɵelementStart(0, "div", 32);
|
|
12088
|
+
i0.ɵɵelement(1, "img", 33);
|
|
12043
12089
|
i0.ɵɵelementEnd();
|
|
12044
12090
|
}
|
|
12045
12091
|
if (rf & 2) {
|
|
12046
|
-
var
|
|
12092
|
+
var ctx_r18 = i0.ɵɵnextContext(2);
|
|
12047
12093
|
i0.ɵɵadvance(1);
|
|
12048
|
-
i0.ɵɵproperty("src",
|
|
12094
|
+
i0.ɵɵproperty("src", ctx_r18.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl);
|
|
12049
12095
|
}
|
|
12050
12096
|
}
|
|
12051
12097
|
function CatalogRecipeCardComponent_div_4_div_4_Template(rf, ctx) {
|
|
12052
12098
|
if (rf & 1) {
|
|
12053
|
-
i0.ɵɵelementStart(0, "div",
|
|
12054
|
-
i0.ɵɵelement(1, "
|
|
12099
|
+
i0.ɵɵelementStart(0, "div", 34);
|
|
12100
|
+
i0.ɵɵelement(1, "img", 33);
|
|
12055
12101
|
i0.ɵɵelementEnd();
|
|
12056
12102
|
}
|
|
12057
12103
|
if (rf & 2) {
|
|
12058
|
-
var
|
|
12104
|
+
var ctx_r19 = i0.ɵɵnextContext(2);
|
|
12059
12105
|
i0.ɵɵadvance(1);
|
|
12060
|
-
i0.ɵɵproperty("
|
|
12106
|
+
i0.ɵɵproperty("src", ctx_r19.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
|
|
12061
12107
|
}
|
|
12062
12108
|
}
|
|
12063
|
-
function
|
|
12109
|
+
function CatalogRecipeCardComponent_div_4_div_5_Template(rf, ctx) {
|
|
12064
12110
|
if (rf & 1) {
|
|
12065
|
-
i0.ɵɵelementStart(0, "div",
|
|
12111
|
+
i0.ɵɵelementStart(0, "div", 35);
|
|
12112
|
+
i0.ɵɵelement(1, "ng-miam-icon", 36);
|
|
12113
|
+
i0.ɵɵelementEnd();
|
|
12114
|
+
}
|
|
12115
|
+
if (rf & 2) {
|
|
12116
|
+
var ctx_r20 = i0.ɵɵnextContext(2);
|
|
12117
|
+
i0.ɵɵadvance(1);
|
|
12118
|
+
i0.ɵɵproperty("iconName", ctx_r20.icon.Video)("width", 80)("height", 80);
|
|
12119
|
+
}
|
|
12120
|
+
}
|
|
12121
|
+
function CatalogRecipeCardComponent_div_4_ng_container_6_div_1_Template(rf, ctx) {
|
|
12122
|
+
if (rf & 1) {
|
|
12123
|
+
i0.ɵɵelementStart(0, "div", 38);
|
|
12066
12124
|
i0.ɵɵtext(1, " D\u00E9j\u00E0 ajout\u00E9e ");
|
|
12067
12125
|
i0.ɵɵelementEnd();
|
|
12068
12126
|
}
|
|
12069
12127
|
}
|
|
12070
|
-
function
|
|
12128
|
+
function CatalogRecipeCardComponent_div_4_ng_container_6_Template(rf, ctx) {
|
|
12071
12129
|
if (rf & 1) {
|
|
12072
12130
|
i0.ɵɵelementContainerStart(0);
|
|
12073
|
-
i0.ɵɵtemplate(1,
|
|
12131
|
+
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_4_ng_container_6_div_1_Template, 2, 0, "div", 37);
|
|
12074
12132
|
i0.ɵɵpipe(2, "async");
|
|
12075
12133
|
i0.ɵɵelementContainerEnd();
|
|
12076
12134
|
}
|
|
12077
12135
|
if (rf & 2) {
|
|
12078
|
-
var
|
|
12136
|
+
var ctx_r21 = i0.ɵɵnextContext(2);
|
|
12079
12137
|
i0.ɵɵadvance(1);
|
|
12080
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1,
|
|
12138
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1, ctx_r21.groceriesListsService.recipeIsInList(ctx_r21.recipe == null ? null : ctx_r21.recipe.id)));
|
|
12081
12139
|
}
|
|
12082
12140
|
}
|
|
12083
|
-
function
|
|
12141
|
+
function CatalogRecipeCardComponent_div_4_ng_container_7_Template(rf, ctx) {
|
|
12084
12142
|
if (rf & 1) {
|
|
12085
|
-
var
|
|
12143
|
+
var _r29_1 = i0.ɵɵgetCurrentView();
|
|
12086
12144
|
i0.ɵɵelementContainerStart(0);
|
|
12087
|
-
i0.ɵɵelementStart(1, "div",
|
|
12088
|
-
i0.ɵɵlistener("click", function
|
|
12145
|
+
i0.ɵɵelementStart(1, "div", 39);
|
|
12146
|
+
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_ng_container_7_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r29_1); var ctx_r28 = i0.ɵɵnextContext(2); return ctx_r28.openRecipe(); });
|
|
12089
12147
|
i0.ɵɵtext(2);
|
|
12090
12148
|
i0.ɵɵelementEnd();
|
|
12091
12149
|
i0.ɵɵelementContainerEnd();
|
|
12092
12150
|
}
|
|
12093
12151
|
if (rf & 2) {
|
|
12094
|
-
var
|
|
12152
|
+
var ctx_r22 = i0.ɵɵnextContext(2);
|
|
12095
12153
|
i0.ɵɵadvance(2);
|
|
12096
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
12154
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r22.recipe == null ? null : ctx_r22.recipe.attributes["title"], " ");
|
|
12097
12155
|
}
|
|
12098
12156
|
}
|
|
12099
|
-
function
|
|
12157
|
+
function CatalogRecipeCardComponent_div_4_ng_template_8_Template(rf, ctx) {
|
|
12100
12158
|
if (rf & 1) {
|
|
12101
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
12159
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 40);
|
|
12102
12160
|
}
|
|
12103
12161
|
if (rf & 2) {
|
|
12104
|
-
var
|
|
12105
|
-
i0.ɵɵproperty("type",
|
|
12162
|
+
var ctx_r24 = i0.ɵɵnextContext(2);
|
|
12163
|
+
i0.ɵɵproperty("type", ctx_r24.skeleton.Text);
|
|
12106
12164
|
}
|
|
12107
12165
|
}
|
|
12108
|
-
function
|
|
12166
|
+
function CatalogRecipeCardComponent_div_4_ng_miam_like_button_11_Template(rf, ctx) {
|
|
12109
12167
|
if (rf & 1) {
|
|
12110
|
-
i0.ɵɵelement(0, "ng-miam-like-button",
|
|
12168
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 41);
|
|
12111
12169
|
}
|
|
12112
12170
|
if (rf & 2) {
|
|
12113
|
-
var
|
|
12114
|
-
i0.ɵɵproperty("recipe",
|
|
12171
|
+
var ctx_r25 = i0.ɵɵnextContext(2);
|
|
12172
|
+
i0.ɵɵproperty("recipe", ctx_r25.recipe)("originTrace", ctx_r25.eventTrace());
|
|
12115
12173
|
}
|
|
12116
12174
|
}
|
|
12117
12175
|
function CatalogRecipeCardComponent_div_4_Template(rf, ctx) {
|
|
12118
12176
|
if (rf & 1) {
|
|
12119
|
-
var
|
|
12120
|
-
i0.ɵɵelementStart(0, "div",
|
|
12121
|
-
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
12122
|
-
i0.ɵɵelementStart(1, "div",
|
|
12123
|
-
i0.ɵɵelement(2, "img",
|
|
12124
|
-
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_4_div_3_Template, 2, 1, "div",
|
|
12125
|
-
i0.ɵɵ
|
|
12126
|
-
i0.ɵɵ
|
|
12127
|
-
i0.ɵɵtemplate(5,
|
|
12128
|
-
i0.ɵɵtemplate(6, CatalogRecipeCardComponent_div_4_ng_container_6_Template, 3,
|
|
12129
|
-
i0.ɵɵtemplate(7,
|
|
12130
|
-
i0.ɵɵ
|
|
12131
|
-
i0.ɵɵ
|
|
12132
|
-
i0.ɵɵ
|
|
12133
|
-
i0.ɵɵ
|
|
12134
|
-
i0.ɵɵ
|
|
12135
|
-
i0.ɵɵ
|
|
12177
|
+
var _r31_1 = i0.ɵɵgetCurrentView();
|
|
12178
|
+
i0.ɵɵelementStart(0, "div", 19);
|
|
12179
|
+
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r31_1); var ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.openRecipe(); });
|
|
12180
|
+
i0.ɵɵelementStart(1, "div", 20);
|
|
12181
|
+
i0.ɵɵelement(2, "img", 21);
|
|
12182
|
+
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_4_div_3_Template, 2, 1, "div", 22);
|
|
12183
|
+
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_4_div_4_Template, 2, 1, "div", 23);
|
|
12184
|
+
i0.ɵɵelementEnd();
|
|
12185
|
+
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_4_div_5_Template, 2, 3, "div", 24);
|
|
12186
|
+
i0.ɵɵtemplate(6, CatalogRecipeCardComponent_div_4_ng_container_6_Template, 3, 3, "ng-container", 25);
|
|
12187
|
+
i0.ɵɵtemplate(7, CatalogRecipeCardComponent_div_4_ng_container_7_Template, 3, 1, "ng-container", 9);
|
|
12188
|
+
i0.ɵɵtemplate(8, CatalogRecipeCardComponent_div_4_ng_template_8_Template, 1, 1, "ng-template", null, 26, i0.ɵɵtemplateRefExtractor);
|
|
12189
|
+
i0.ɵɵelementStart(10, "div", 27);
|
|
12190
|
+
i0.ɵɵtemplate(11, CatalogRecipeCardComponent_div_4_ng_miam_like_button_11_Template, 1, 2, "ng-miam-like-button", 28);
|
|
12191
|
+
i0.ɵɵpipe(12, "async");
|
|
12192
|
+
i0.ɵɵelementStart(13, "div", 29, 30);
|
|
12193
|
+
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_div_4_Template_div_click_13_listener($event) { i0.ɵɵrestoreView(_r31_1); var ctx_r32 = i0.ɵɵnextContext(); return ctx_r32.toggleMoreActions($event); });
|
|
12194
|
+
i0.ɵɵelement(15, "ng-miam-icon", 31);
|
|
12136
12195
|
i0.ɵɵelementEnd();
|
|
12137
12196
|
i0.ɵɵelementEnd();
|
|
12138
12197
|
i0.ɵɵelementEnd();
|
|
12139
12198
|
}
|
|
12140
12199
|
if (rf & 2) {
|
|
12141
|
-
var
|
|
12200
|
+
var _r23 = i0.ɵɵreference(9);
|
|
12142
12201
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
12143
12202
|
i0.ɵɵadvance(2);
|
|
12144
12203
|
i0.ɵɵproperty("src", ctx_r0.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
|
|
12145
12204
|
i0.ɵɵadvance(1);
|
|
12205
|
+
i0.ɵɵproperty("ngIf", ctx_r0.recipe.sponsorLogoUrl);
|
|
12206
|
+
i0.ɵɵadvance(1);
|
|
12146
12207
|
i0.ɵɵproperty("ngIf", ctx_r0.recipe.filigraneLogoUrl);
|
|
12147
12208
|
i0.ɵɵadvance(1);
|
|
12148
12209
|
i0.ɵɵproperty("ngIf", ctx_r0.contextService.videoRecipesEnabled && (ctx_r0.recipe == null ? null : ctx_r0.recipe.videoId));
|
|
12149
12210
|
i0.ɵɵadvance(1);
|
|
12150
12211
|
i0.ɵɵproperty("ngIf", ctx_r0.recipe && ctx_r0.displayAddedOnPicture);
|
|
12151
12212
|
i0.ɵɵadvance(1);
|
|
12152
|
-
i0.ɵɵproperty("ngIf", ctx_r0.recipe)("ngIfElse",
|
|
12213
|
+
i0.ɵɵproperty("ngIf", ctx_r0.recipe)("ngIfElse", _r23);
|
|
12153
12214
|
i0.ɵɵadvance(4);
|
|
12154
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
12215
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(12, 9, ctx_r0.userService.isLogged$));
|
|
12155
12216
|
i0.ɵɵadvance(4);
|
|
12156
12217
|
i0.ɵɵproperty("iconName", ctx_r0.actionsOpened ? ctx_r0.icon.Clear : ctx_r0.icon.HorizontalDots);
|
|
12157
12218
|
}
|
|
12158
12219
|
}
|
|
12159
12220
|
function CatalogRecipeCardComponent_ng_template_5_Template(rf, ctx) {
|
|
12160
12221
|
if (rf & 1) {
|
|
12161
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
12222
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 40);
|
|
12162
12223
|
}
|
|
12163
12224
|
if (rf & 2) {
|
|
12164
12225
|
var ctx_r2 = i0.ɵɵnextContext();
|
|
@@ -12167,26 +12228,26 @@
|
|
|
12167
12228
|
}
|
|
12168
12229
|
function CatalogRecipeCardComponent_div_9_div_5_Template(rf, ctx) {
|
|
12169
12230
|
if (rf & 1) {
|
|
12170
|
-
i0.ɵɵelementStart(0, "div",
|
|
12231
|
+
i0.ɵɵelementStart(0, "div", 45);
|
|
12171
12232
|
i0.ɵɵtext(1);
|
|
12172
12233
|
i0.ɵɵelementEnd();
|
|
12173
12234
|
}
|
|
12174
12235
|
if (rf & 2) {
|
|
12175
|
-
var
|
|
12236
|
+
var ctx_r33 = i0.ɵɵnextContext(2);
|
|
12176
12237
|
i0.ɵɵadvance(1);
|
|
12177
|
-
i0.ɵɵtextInterpolate1(" + ",
|
|
12238
|
+
i0.ɵɵtextInterpolate1(" + ", ctx_r33.recipe.modifiedIngredients.length - 2, " ");
|
|
12178
12239
|
}
|
|
12179
12240
|
}
|
|
12180
12241
|
function CatalogRecipeCardComponent_div_9_Template(rf, ctx) {
|
|
12181
12242
|
if (rf & 1) {
|
|
12182
|
-
i0.ɵɵelementStart(0, "div",
|
|
12183
|
-
i0.ɵɵelementStart(1, "div",
|
|
12184
|
-
i0.ɵɵelement(2, "img",
|
|
12243
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
12244
|
+
i0.ɵɵelementStart(1, "div", 43);
|
|
12245
|
+
i0.ɵɵelement(2, "img", 33);
|
|
12185
12246
|
i0.ɵɵelementEnd();
|
|
12186
|
-
i0.ɵɵelementStart(3, "div",
|
|
12187
|
-
i0.ɵɵelement(4, "img",
|
|
12247
|
+
i0.ɵɵelementStart(3, "div", 43);
|
|
12248
|
+
i0.ɵɵelement(4, "img", 33);
|
|
12188
12249
|
i0.ɵɵelementEnd();
|
|
12189
|
-
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_9_div_5_Template, 2, 1, "div",
|
|
12250
|
+
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_div_9_div_5_Template, 2, 1, "div", 44);
|
|
12190
12251
|
i0.ɵɵelementEnd();
|
|
12191
12252
|
}
|
|
12192
12253
|
if (rf & 2) {
|
|
@@ -12201,17 +12262,17 @@
|
|
|
12201
12262
|
}
|
|
12202
12263
|
function CatalogRecipeCardComponent_div_10_ng_miam_recipe_pricing_1_Template(rf, ctx) {
|
|
12203
12264
|
if (rf & 1) {
|
|
12204
|
-
i0.ɵɵelement(0, "ng-miam-recipe-pricing",
|
|
12265
|
+
i0.ɵɵelement(0, "ng-miam-recipe-pricing", 48);
|
|
12205
12266
|
}
|
|
12206
12267
|
if (rf & 2) {
|
|
12207
|
-
var
|
|
12208
|
-
i0.ɵɵproperty("recipe",
|
|
12268
|
+
var ctx_r34 = i0.ɵɵnextContext(2);
|
|
12269
|
+
i0.ɵɵproperty("recipe", ctx_r34.recipe)("serves", ctx_r34.recipe == null ? null : ctx_r34.recipe.modifiedGuests);
|
|
12209
12270
|
}
|
|
12210
12271
|
}
|
|
12211
12272
|
function CatalogRecipeCardComponent_div_10_Template(rf, ctx) {
|
|
12212
12273
|
if (rf & 1) {
|
|
12213
|
-
i0.ɵɵelementStart(0, "div",
|
|
12214
|
-
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_10_ng_miam_recipe_pricing_1_Template, 1, 2, "ng-miam-recipe-pricing",
|
|
12274
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
12275
|
+
i0.ɵɵtemplate(1, CatalogRecipeCardComponent_div_10_ng_miam_recipe_pricing_1_Template, 1, 2, "ng-miam-recipe-pricing", 47);
|
|
12215
12276
|
i0.ɵɵelementEnd();
|
|
12216
12277
|
}
|
|
12217
12278
|
if (rf & 2) {
|
|
@@ -12220,14 +12281,40 @@
|
|
|
12220
12281
|
i0.ɵɵproperty("ngIf", ctx_r4.isPriceDisplayed);
|
|
12221
12282
|
}
|
|
12222
12283
|
}
|
|
12284
|
+
function CatalogRecipeCardComponent_span_13_Template(rf, ctx) {
|
|
12285
|
+
if (rf & 1) {
|
|
12286
|
+
i0.ɵɵelementStart(0, "span");
|
|
12287
|
+
i0.ɵɵtext(1);
|
|
12288
|
+
i0.ɵɵpipe(2, "async");
|
|
12289
|
+
i0.ɵɵelementEnd();
|
|
12290
|
+
}
|
|
12291
|
+
if (rf & 2) {
|
|
12292
|
+
var ctx_r5 = i0.ɵɵnextContext();
|
|
12293
|
+
i0.ɵɵadvance(1);
|
|
12294
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r5.groceriesListsService.recipeIsInList(ctx_r5.recipe == null ? null : ctx_r5.recipe.id)) ? "Voir le d\u00E9tail" : "D\u00E9couvrir l'id\u00E9e repas", " ");
|
|
12295
|
+
}
|
|
12296
|
+
}
|
|
12297
|
+
function CatalogRecipeCardComponent_ng_template_14_Template(rf, ctx) {
|
|
12298
|
+
if (rf & 1) {
|
|
12299
|
+
i0.ɵɵelementStart(0, "span");
|
|
12300
|
+
i0.ɵɵtext(1);
|
|
12301
|
+
i0.ɵɵpipe(2, "async");
|
|
12302
|
+
i0.ɵɵelementEnd();
|
|
12303
|
+
}
|
|
12304
|
+
if (rf & 2) {
|
|
12305
|
+
var ctx_r7 = i0.ɵɵnextContext();
|
|
12306
|
+
i0.ɵɵadvance(1);
|
|
12307
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(2, 1, ctx_r7.groceriesListsService.recipeIsInList(ctx_r7.recipe == null ? null : ctx_r7.recipe.id)) ? "Voir le d\u00E9tail" : "Ajouter les ingr\u00E9dients", " ");
|
|
12308
|
+
}
|
|
12309
|
+
}
|
|
12223
12310
|
function CatalogRecipeCardComponent_ng_miam_icon_16_Template(rf, ctx) {
|
|
12224
12311
|
if (rf & 1) {
|
|
12225
|
-
i0.ɵɵelement(0, "ng-miam-icon",
|
|
12312
|
+
i0.ɵɵelement(0, "ng-miam-icon", 49);
|
|
12226
12313
|
i0.ɵɵpipe(1, "async");
|
|
12227
12314
|
}
|
|
12228
12315
|
if (rf & 2) {
|
|
12229
|
-
var
|
|
12230
|
-
i0.ɵɵproperty("width", 16)("height", 16)("iconName", i0.ɵɵpipeBind1(1, 3,
|
|
12316
|
+
var ctx_r8 = i0.ɵɵnextContext();
|
|
12317
|
+
i0.ɵɵproperty("width", 16)("height", 16)("iconName", i0.ɵɵpipeBind1(1, 3, ctx_r8.groceriesListsService.recipeIsInList(ctx_r8.recipe == null ? null : ctx_r8.recipe.id)) ? ctx_r8.icon.CheckList : ctx_r8.icon.Cart);
|
|
12231
12318
|
}
|
|
12232
12319
|
}
|
|
12233
12320
|
function CatalogRecipeCardComponent_ng_template_17_Template(rf, ctx) {
|
|
@@ -12237,98 +12324,98 @@
|
|
|
12237
12324
|
}
|
|
12238
12325
|
function CatalogRecipeCardComponent_div_20_Template(rf, ctx) {
|
|
12239
12326
|
if (rf & 1) {
|
|
12240
|
-
i0.ɵɵelementStart(0, "div",
|
|
12241
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
12242
|
-
i0.ɵɵelementStart(2, "span",
|
|
12327
|
+
i0.ɵɵelementStart(0, "div", 50);
|
|
12328
|
+
i0.ɵɵelement(1, "ng-miam-icon", 51);
|
|
12329
|
+
i0.ɵɵelementStart(2, "span", 52);
|
|
12243
12330
|
i0.ɵɵtext(3);
|
|
12244
12331
|
i0.ɵɵelementEnd();
|
|
12245
12332
|
i0.ɵɵelementEnd();
|
|
12246
12333
|
}
|
|
12247
12334
|
if (rf & 2) {
|
|
12248
|
-
var
|
|
12335
|
+
var ctx_r11 = i0.ɵɵnextContext();
|
|
12249
12336
|
i0.ɵɵadvance(1);
|
|
12250
|
-
i0.ɵɵproperty("iconName",
|
|
12337
|
+
i0.ɵɵproperty("iconName", ctx_r11.icon.Time);
|
|
12251
12338
|
i0.ɵɵadvance(2);
|
|
12252
|
-
i0.ɵɵtextInterpolate(
|
|
12339
|
+
i0.ɵɵtextInterpolate(ctx_r11.recipe == null ? null : ctx_r11.recipe.totalTime);
|
|
12253
12340
|
}
|
|
12254
12341
|
}
|
|
12255
12342
|
function CatalogRecipeCardComponent_div_21_ng_container_2_Template(rf, ctx) {
|
|
12256
12343
|
if (rf & 1) {
|
|
12257
12344
|
i0.ɵɵelementContainerStart(0);
|
|
12258
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
12345
|
+
i0.ɵɵelement(1, "ng-miam-icon", 57);
|
|
12259
12346
|
i0.ɵɵelementContainerEnd();
|
|
12260
12347
|
}
|
|
12261
12348
|
if (rf & 2) {
|
|
12262
|
-
var
|
|
12349
|
+
var ctx_r35 = i0.ɵɵnextContext(2);
|
|
12263
12350
|
i0.ɵɵadvance(1);
|
|
12264
|
-
i0.ɵɵproperty("width", 39)("height", 18)("iconName",
|
|
12351
|
+
i0.ɵɵproperty("width", 39)("height", 18)("iconName", ctx_r35.icon.DifficultyMedium);
|
|
12265
12352
|
}
|
|
12266
12353
|
}
|
|
12267
12354
|
function CatalogRecipeCardComponent_div_21_ng_container_3_Template(rf, ctx) {
|
|
12268
12355
|
if (rf & 1) {
|
|
12269
12356
|
i0.ɵɵelementContainerStart(0);
|
|
12270
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
12357
|
+
i0.ɵɵelement(1, "ng-miam-icon", 57);
|
|
12271
12358
|
i0.ɵɵelementContainerEnd();
|
|
12272
12359
|
}
|
|
12273
12360
|
if (rf & 2) {
|
|
12274
|
-
var
|
|
12361
|
+
var ctx_r36 = i0.ɵɵnextContext(2);
|
|
12275
12362
|
i0.ɵɵadvance(1);
|
|
12276
|
-
i0.ɵɵproperty("width", 60)("height", 18)("iconName",
|
|
12363
|
+
i0.ɵɵproperty("width", 60)("height", 18)("iconName", ctx_r36.icon.DifficultyHigh);
|
|
12277
12364
|
}
|
|
12278
12365
|
}
|
|
12279
12366
|
function CatalogRecipeCardComponent_div_21_ng_container_4_Template(rf, ctx) {
|
|
12280
12367
|
if (rf & 1) {
|
|
12281
12368
|
i0.ɵɵelementContainerStart(0);
|
|
12282
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
12369
|
+
i0.ɵɵelement(1, "ng-miam-icon", 57);
|
|
12283
12370
|
i0.ɵɵelementContainerEnd();
|
|
12284
12371
|
}
|
|
12285
12372
|
if (rf & 2) {
|
|
12286
|
-
var
|
|
12373
|
+
var ctx_r37 = i0.ɵɵnextContext(2);
|
|
12287
12374
|
i0.ɵɵadvance(1);
|
|
12288
|
-
i0.ɵɵproperty("width", 18)("height", 18)("iconName",
|
|
12375
|
+
i0.ɵɵproperty("width", 18)("height", 18)("iconName", ctx_r37.icon.DifficultyLow);
|
|
12289
12376
|
}
|
|
12290
12377
|
}
|
|
12291
12378
|
var _c1$7 = function (a0, a1, a2) { return { "easy": a0, "medium": a1, "hard": a2 }; };
|
|
12292
12379
|
function CatalogRecipeCardComponent_div_21_Template(rf, ctx) {
|
|
12293
12380
|
if (rf & 1) {
|
|
12294
|
-
i0.ɵɵelementStart(0, "div",
|
|
12295
|
-
i0.ɵɵelementContainerStart(1,
|
|
12296
|
-
i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_21_ng_container_2_Template, 2, 3, "ng-container",
|
|
12297
|
-
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_21_ng_container_3_Template, 2, 3, "ng-container",
|
|
12298
|
-
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_21_ng_container_4_Template, 2, 3, "ng-container",
|
|
12381
|
+
i0.ɵɵelementStart(0, "div", 53);
|
|
12382
|
+
i0.ɵɵelementContainerStart(1, 54);
|
|
12383
|
+
i0.ɵɵtemplate(2, CatalogRecipeCardComponent_div_21_ng_container_2_Template, 2, 3, "ng-container", 55);
|
|
12384
|
+
i0.ɵɵtemplate(3, CatalogRecipeCardComponent_div_21_ng_container_3_Template, 2, 3, "ng-container", 55);
|
|
12385
|
+
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_21_ng_container_4_Template, 2, 3, "ng-container", 56);
|
|
12299
12386
|
i0.ɵɵelementContainerEnd();
|
|
12300
|
-
i0.ɵɵelementStart(5, "span",
|
|
12387
|
+
i0.ɵɵelementStart(5, "span", 52);
|
|
12301
12388
|
i0.ɵɵtext(6);
|
|
12302
12389
|
i0.ɵɵelementEnd();
|
|
12303
12390
|
i0.ɵɵelementEnd();
|
|
12304
12391
|
}
|
|
12305
12392
|
if (rf & 2) {
|
|
12306
|
-
var
|
|
12307
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(5, _c1$7, (
|
|
12393
|
+
var ctx_r12 = i0.ɵɵnextContext();
|
|
12394
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(5, _c1$7, (ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty) === 1, (ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty) === 2, (ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty) === 3));
|
|
12308
12395
|
i0.ɵɵadvance(1);
|
|
12309
|
-
i0.ɵɵproperty("ngSwitch",
|
|
12396
|
+
i0.ɵɵproperty("ngSwitch", ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty);
|
|
12310
12397
|
i0.ɵɵadvance(1);
|
|
12311
12398
|
i0.ɵɵproperty("ngSwitchCase", 2);
|
|
12312
12399
|
i0.ɵɵadvance(1);
|
|
12313
12400
|
i0.ɵɵproperty("ngSwitchCase", 3);
|
|
12314
12401
|
i0.ɵɵadvance(3);
|
|
12315
|
-
i0.ɵɵtextInterpolate(
|
|
12402
|
+
i0.ɵɵtextInterpolate(ctx_r12.recipeService.difficultyLabel(ctx_r12.recipe == null ? null : ctx_r12.recipe.difficulty));
|
|
12316
12403
|
}
|
|
12317
12404
|
}
|
|
12318
12405
|
function CatalogRecipeCardComponent_ng_template_22_Template(rf, ctx) {
|
|
12319
12406
|
if (rf & 1) {
|
|
12320
|
-
i0.ɵɵelement(0, "ng-miam-skeleton",
|
|
12407
|
+
i0.ɵɵelement(0, "ng-miam-skeleton", 40);
|
|
12321
12408
|
}
|
|
12322
12409
|
if (rf & 2) {
|
|
12323
|
-
var
|
|
12324
|
-
i0.ɵɵproperty("type",
|
|
12410
|
+
var ctx_r14 = i0.ɵɵnextContext();
|
|
12411
|
+
i0.ɵɵproperty("type", ctx_r14.skeleton == null ? null : ctx_r14.skeleton.IconWithInfo);
|
|
12325
12412
|
}
|
|
12326
12413
|
}
|
|
12327
12414
|
function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template(rf, ctx) {
|
|
12328
12415
|
if (rf & 1) {
|
|
12329
|
-
var
|
|
12330
|
-
i0.ɵɵelementStart(0, "ng-miam-actions-popin",
|
|
12331
|
-
i0.ɵɵlistener("close", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_close_0_listener() { i0.ɵɵrestoreView(
|
|
12416
|
+
var _r39_1 = i0.ɵɵgetCurrentView();
|
|
12417
|
+
i0.ɵɵelementStart(0, "ng-miam-actions-popin", 58);
|
|
12418
|
+
i0.ɵɵlistener("close", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_close_0_listener() { i0.ɵɵrestoreView(_r39_1); var ctx_r38 = i0.ɵɵnextContext(); return ctx_r38.closeMoreActions(); })("actionTriggered", function CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template_ng_miam_actions_popin_actionTriggered_0_listener($event) { i0.ɵɵrestoreView(_r39_1); var ctx_r40 = i0.ɵɵnextContext(); return ctx_r40.actionTriggered.emit($event); });
|
|
12332
12419
|
i0.ɵɵelementEnd();
|
|
12333
12420
|
}
|
|
12334
12421
|
}
|
|
@@ -12439,7 +12526,7 @@
|
|
|
12439
12526
|
var _t;
|
|
12440
12527
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.moreActions = _t.first);
|
|
12441
12528
|
}
|
|
12442
|
-
}, inputs: { displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture" }, outputs: { actionTriggered: "actionTriggered" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 27, vars:
|
|
12529
|
+
}, inputs: { displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture" }, outputs: { actionTriggered: "actionTriggered" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 27, vars: 20, consts: [[1, "miam-catalog-recipe-card"], [1, "miam-catalog-recipe-card__header"], ["class", "miam-catalog-card__picture", 3, "click", 4, "ngIf", "ngIfElse"], ["pictSkeleton", ""], [1, "miam-catalog-card__attributes"], [1, "miam-catalog-recipe-card__attributes__control"], ["class", "miam-catalog-recipe-card__ingredients__pictures", 4, "ngIf"], ["class", "miam-catalog-recipe-card__right__col__price", 4, "ngIf"], [1, "m-button-primary", 3, "disabled", "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["originalCTA", ""], [3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-catalog-card__attributes__infos"], ["class", "miam-catalog-card__attributes__info recipe__total__time", 4, "ngIf", "ngIfElse"], ["class", "miam-catalog-card__attributes__info recipe__difficulty", 3, "ngClass", 4, "ngIf"], ["skeletonInfo", ""], [3, "close", "actionTriggered", 4, "ngIf"], ["cors", ""], [1, "miam-catalog-card__picture", 3, "click"], [1, "miam-catalog-card__picture__gradient"], ["loading", "lazy", 1, "miam-catalog-card__picture__img", 3, "src"], ["class", "miam-catalog-card__picture__sponsor", 4, "ngIf"], ["class", "miam-catalog-card__picture__filigrane", 4, "ngIf"], ["class", "miam-catalog-recipe-card__picture__video", 4, "ngIf"], [4, "ngIf"], ["textSkeleton", ""], [1, "miam-catalog-recipe-card__picture__actions"], ["width", "17", "height", "17", "class", "miam-catalog-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], [1, "miam-catalog-recipe-card__actions__icon", 3, "click"], ["miamMoreActions", ""], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-catalog-card__picture__sponsor"], [3, "src"], [1, "miam-catalog-card__picture__filigrane"], [1, "miam-catalog-recipe-card__picture__video"], ["primaryColor", "black", 3, "iconName", "width", "height"], ["class", "miam-catalog-recipe-card__picture__tag", 4, "ngIf"], [1, "miam-catalog-recipe-card__picture__tag"], [1, "miam-catalog-recipe-card__attributes__title", 3, "click"], [3, "type"], ["width", "17", "height", "17", 1, "miam-catalog-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-catalog-recipe-card__ingredients__pictures"], [1, "miam-catalog-recipe-card__ingredients__picture"], ["class", "miam-catalog-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-catalog-recipe-card__ingredients__more"], [1, "miam-catalog-recipe-card__right__col__price"], [3, "recipe", "serves", 4, "ngIf"], [3, "recipe", "serves"], [3, "width", "height", "iconName"], [1, "miam-catalog-card__attributes__info", "recipe__total__time"], ["width", "18", "height", "18", "primaryColor", "var(--m-catalog-card-details-color)", 3, "iconName"], [1, "miam-catalog-card__info__label"], [1, "miam-catalog-card__attributes__info", "recipe__difficulty", 3, "ngClass"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["primaryColor", "var(--m-catalog-card-details-color)", 3, "width", "height", "iconName"], [3, "close", "actionTriggered"]], template: function CatalogRecipeCardComponent_Template(rf, ctx) {
|
|
12443
12530
|
if (rf & 1) {
|
|
12444
12531
|
i0.ɵɵelementStart(0, "div", 0);
|
|
12445
12532
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -12447,7 +12534,7 @@
|
|
|
12447
12534
|
i0.ɵɵtext(3);
|
|
12448
12535
|
i0.ɵɵelementEnd();
|
|
12449
12536
|
i0.ɵɵelementEnd();
|
|
12450
|
-
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_4_Template,
|
|
12537
|
+
i0.ɵɵtemplate(4, CatalogRecipeCardComponent_div_4_Template, 16, 11, "div", 2);
|
|
12451
12538
|
i0.ɵɵtemplate(5, CatalogRecipeCardComponent_ng_template_5_Template, 1, 1, "ng-template", null, 3, i0.ɵɵtemplateRefExtractor);
|
|
12452
12539
|
i0.ɵɵelementStart(7, "div", 4);
|
|
12453
12540
|
i0.ɵɵelementStart(8, "div", 5);
|
|
@@ -12456,28 +12543,27 @@
|
|
|
12456
12543
|
i0.ɵɵelementStart(11, "button", 8);
|
|
12457
12544
|
i0.ɵɵlistener("click", function CatalogRecipeCardComponent_Template_button_click_11_listener() { return ctx.clickPrimary(); });
|
|
12458
12545
|
i0.ɵɵpipe(12, "async");
|
|
12459
|
-
i0.ɵɵ
|
|
12460
|
-
i0.ɵɵ
|
|
12461
|
-
i0.ɵɵ
|
|
12462
|
-
i0.ɵɵ
|
|
12463
|
-
i0.ɵɵtemplate(16, CatalogRecipeCardComponent_ng_miam_icon_16_Template, 2, 5, "ng-miam-icon", 9);
|
|
12464
|
-
i0.ɵɵtemplate(17, CatalogRecipeCardComponent_ng_template_17_Template, 1, 0, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
12546
|
+
i0.ɵɵtemplate(13, CatalogRecipeCardComponent_span_13_Template, 3, 3, "span", 9);
|
|
12547
|
+
i0.ɵɵtemplate(14, CatalogRecipeCardComponent_ng_template_14_Template, 3, 3, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
12548
|
+
i0.ɵɵtemplate(16, CatalogRecipeCardComponent_ng_miam_icon_16_Template, 2, 5, "ng-miam-icon", 11);
|
|
12549
|
+
i0.ɵɵtemplate(17, CatalogRecipeCardComponent_ng_template_17_Template, 1, 0, "ng-template", null, 12, i0.ɵɵtemplateRefExtractor);
|
|
12465
12550
|
i0.ɵɵelementEnd();
|
|
12466
12551
|
i0.ɵɵelementEnd();
|
|
12467
|
-
i0.ɵɵelementStart(19, "div",
|
|
12468
|
-
i0.ɵɵtemplate(20, CatalogRecipeCardComponent_div_20_Template, 4, 2, "div",
|
|
12469
|
-
i0.ɵɵtemplate(21, CatalogRecipeCardComponent_div_21_Template, 7, 9, "div",
|
|
12470
|
-
i0.ɵɵtemplate(22, CatalogRecipeCardComponent_ng_template_22_Template, 1, 1, "ng-template", null,
|
|
12552
|
+
i0.ɵɵelementStart(19, "div", 13);
|
|
12553
|
+
i0.ɵɵtemplate(20, CatalogRecipeCardComponent_div_20_Template, 4, 2, "div", 14);
|
|
12554
|
+
i0.ɵɵtemplate(21, CatalogRecipeCardComponent_div_21_Template, 7, 9, "div", 15);
|
|
12555
|
+
i0.ɵɵtemplate(22, CatalogRecipeCardComponent_ng_template_22_Template, 1, 1, "ng-template", null, 16, i0.ɵɵtemplateRefExtractor);
|
|
12471
12556
|
i0.ɵɵelementEnd();
|
|
12472
12557
|
i0.ɵɵelementEnd();
|
|
12473
|
-
i0.ɵɵtemplate(24, CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template, 1, 0, "ng-miam-actions-popin",
|
|
12558
|
+
i0.ɵɵtemplate(24, CatalogRecipeCardComponent_ng_miam_actions_popin_24_Template, 1, 0, "ng-miam-actions-popin", 17);
|
|
12474
12559
|
i0.ɵɵelementEnd();
|
|
12475
|
-
i0.ɵɵtemplate(25, CatalogRecipeCardComponent_ng_template_25_Template, 1, 0, "ng-template", null,
|
|
12560
|
+
i0.ɵɵtemplate(25, CatalogRecipeCardComponent_ng_template_25_Template, 1, 0, "ng-template", null, 18, i0.ɵɵtemplateRefExtractor);
|
|
12476
12561
|
}
|
|
12477
12562
|
if (rf & 2) {
|
|
12478
12563
|
var _r1 = i0.ɵɵreference(6);
|
|
12479
|
-
var _r6 = i0.ɵɵreference(
|
|
12480
|
-
var
|
|
12564
|
+
var _r6 = i0.ɵɵreference(15);
|
|
12565
|
+
var _r9 = i0.ɵɵreference(18);
|
|
12566
|
+
var _r13 = i0.ɵɵreference(23);
|
|
12481
12567
|
i0.ɵɵadvance(3);
|
|
12482
12568
|
i0.ɵɵtextInterpolate1(" ", ctx.headerText, "");
|
|
12483
12569
|
i0.ɵɵadvance(1);
|
|
@@ -12487,19 +12573,19 @@
|
|
|
12487
12573
|
i0.ɵɵadvance(1);
|
|
12488
12574
|
i0.ɵɵproperty("ngIf", ctx.recipe && ctx.displayPricing);
|
|
12489
12575
|
i0.ɵɵadvance(1);
|
|
12490
|
-
i0.ɵɵproperty("disabled", !ctx.recipe)("ngClass", i0.ɵɵpureFunction2(
|
|
12491
|
-
i0.ɵɵadvance(3);
|
|
12492
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(15, 16, ctx.groceriesListsService.recipeIsInList(ctx.recipe == null ? null : ctx.recipe.id)) ? "Voir le d\u00E9tail" : "Ajouter les ingr\u00E9dients", " ");
|
|
12576
|
+
i0.ɵɵproperty("disabled", !ctx.recipe)("ngClass", i0.ɵɵpureFunction2(17, _c2$1, ctx.addButtonLoading, i0.ɵɵpipeBind1(12, 15, ctx.groceriesListsService.recipeIsInList(ctx.recipe == null ? null : ctx.recipe.id))));
|
|
12493
12577
|
i0.ɵɵadvance(2);
|
|
12494
|
-
i0.ɵɵproperty("ngIf", !ctx.
|
|
12578
|
+
i0.ɵɵproperty("ngIf", ctx.recipeService.recipesPrimaryButtonActions.display && !ctx.recipeService.recipesPrimaryButtonActions.addToBasket)("ngIfElse", _r6);
|
|
12579
|
+
i0.ɵɵadvance(3);
|
|
12580
|
+
i0.ɵɵproperty("ngIf", !ctx.addButtonLoading)("ngIfElse", _r9);
|
|
12495
12581
|
i0.ɵɵadvance(4);
|
|
12496
|
-
i0.ɵɵproperty("ngIf", ctx.recipe)("ngIfElse",
|
|
12582
|
+
i0.ɵɵproperty("ngIf", ctx.recipe)("ngIfElse", _r13);
|
|
12497
12583
|
i0.ɵɵadvance(1);
|
|
12498
12584
|
i0.ɵɵproperty("ngIf", ctx.recipe);
|
|
12499
12585
|
i0.ɵɵadvance(3);
|
|
12500
12586
|
i0.ɵɵproperty("ngIf", ctx.actionsOpened);
|
|
12501
12587
|
}
|
|
12502
|
-
}, directives: [i4.NgIf, i4.NgClass, IconComponent, SkeletonComponent, LikeButtonComponent, RecipePricingComponent, LoaderComponent, i4.NgSwitch, i4.NgSwitchCase, i4.NgSwitchDefault, ActionsPopinComponent, CORSOverlayComponent], pipes: [i4.AsyncPipe], styles: [".cal-month-view .cal-header{font-weight:bolder;text-align:center}.cal-month-view .cal-header .cal-cell{display:block;overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.cal-month-view .cal-days{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{flex:1;min-height:78px}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{align-items:stretch;display:flex;flex:1;flex-direction:column;float:left}.cal-month-view .cal-cell .cal-event{pointer-events:all!important}.cal-month-view .cal-day-cell{min-height:100px}@media (-ms-high-contrast:none){.cal-month-view .cal-day-cell{display:block}}.cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid}.cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid}.cal-month-view .cal-day-badge{border-radius:10px;display:inline-block;font-size:12px;font-weight:700;line-height:1;margin-left:10px;margin-top:18px;min-width:10px;padding:3px 7px;text-align:center;vertical-align:middle;white-space:nowrap}.cal-month-view .cal-day-number{float:right;font-size:1.2em;font-weight:400;margin-bottom:10px;margin-right:15px;margin-top:15px;opacity:.5}.cal-month-view .cal-events{align-items:flex-end;display:flex;flex:1;flex-wrap:wrap;line-height:10px;margin:3px}.cal-month-view .cal-event{border-radius:50%;display:inline-block;height:10px;margin:2px;width:10px}.cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer}.cal-month-view .cal-day-cell.cal-out-month .cal-day-number{cursor:default;opacity:.1}.cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em}.cal-month-view .cal-open-day-events{padding:15px}.cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px}.cal-month-view .cal-out-month .cal-day-badge,.cal-month-view .cal-out-month .cal-event{opacity:.3}.cal-month-view .cal-draggable{cursor:move}.cal-month-view .cal-drag-active *{pointer-events:none}.cal-month-view .cal-event-title{cursor:pointer}.cal-month-view .cal-event-title:hover{text-decoration:underline}.cal-month-view{background-color:#fff}.cal-month-view .cal-cell-row:hover{background-color:#fafafa}.cal-month-view .cal-cell-row .cal-cell:hover,.cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed}.cal-month-view .cal-days{border-color:#e1e1e1}.cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1}.cal-month-view .cal-days .cal-cell-row{border-bottom-color:#e1e1e1}.cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff}.cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff}.cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000}.cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7}.cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important}.cal-month-view .cal-open-day-events{background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5);color:#fff}.cal-week-view *{box-sizing:border-box}.cal-week-view .cal-day-headers{border:1px solid;display:flex;padding-left:70px}.cal-week-view .cal-day-headers .cal-header{flex:1;padding:5px;text-align:center}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid}.cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid}.cal-week-view .cal-day-headers span{font-weight:400;opacity:.5}.cal-week-view .cal-day-column{border-left:1px solid;flex-grow:1}.cal-week-view .cal-event{border:1px solid;font-size:12px}.cal-week-view .cal-time-label-column{height:100%;width:70px}.cal-week-view .cal-current-time-marker{height:2px;position:absolute;width:100%;z-index:2}.cal-week-view .cal-all-day-events{border-bottom:3px solid;border-left:1px solid;border-right:1px solid;border-top:0;padding-top:3px;position:relative}.cal-week-view .cal-all-day-events .cal-day-columns{display:flex;height:100%;position:absolute;top:0;width:100%;z-index:0}.cal-week-view .cal-all-day-events .cal-events-row{height:31px;margin-left:70px;position:relative}.cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute}.cal-week-view .cal-all-day-events .cal-event-container.resize-active{pointer-events:none;z-index:1}.cal-week-view .cal-all-day-events .cal-event{height:28px;line-height:28px;margin-left:2px;margin-right:2px;padding:0 5px}.cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-bottom-left-radius:5px;border-top-left-radius:5px}.cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-bottom-right-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-all-day-events .cal-time-label-column{align-items:center;display:flex;font-size:14px;justify-content:center}.cal-week-view .cal-all-day-events .cal-resize-handle{cursor:col-resize;height:100%;position:absolute;top:0;width:6px}.cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0}.cal-week-view .cal-event,.cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-week-view .cal-drag-active{pointer-events:none;z-index:1}.cal-week-view .cal-drag-active *{pointer-events:none}.cal-week-view .cal-time-events{border:1px solid;border-top:0;display:flex;position:relative}.cal-week-view .cal-time-events .cal-day-columns{display:flex;flex-grow:1}.cal-week-view .cal-time-events .cal-day-column,.cal-week-view .cal-time-events .cal-events-container{position:relative}.cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1}.cal-week-view .cal-time-events .cal-event{height:calc(100% - 2px);line-height:25px;margin:1px;padding:0 5px;width:calc(100% - 2px)}.cal-week-view .cal-time-events .cal-resize-handle{cursor:row-resize;height:4px;position:absolute;width:100%}.cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0}.cal-week-view .cal-hour-segment{position:relative}.cal-week-view .cal-hour-segment:after{content:\"\\00a0\"}.cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer}.cal-week-view .cal-draggable{cursor:move}.cal-week-view .cal-hour-segment,.cal-week-view mwl-calendar-week-view-hour-segment{display:block}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom:thin dashed}.cal-week-view .cal-time{font-weight:700;padding-top:5px;text-align:center;width:70px}.cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none}.cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.cal-week-view{background-color:#fff;border-top:1px solid #e1e1e1}.cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-drag-over,.cal-week-view .cal-day-headers .cal-header:hover{background-color:#ededed}.cal-week-view .cal-day-column{border-left-color:#e1e1e1}.cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff}.cal-week-view .cal-all-day-events{border-color:#e1e1e1}.cal-week-view .cal-header.cal-today{background-color:#e8fde7}.cal-week-view .cal-header.cal-weekend span{color:#8b0000}.cal-week-view .cal-time-events{border-color:#e1e1e1}.cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed}.cal-week-view .cal-hour-odd{background-color:#fafafa}.cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1}.cal-week-view .cal-current-time-marker{background-color:#ea4334}.cal-day-view mwl-calendar-week-view-header{display:none}.cal-day-view .cal-events-container{margin-left:70px}.cal-day-view .cal-day-column{border-left:0}.cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)}.cal-tooltip{display:block;font-size:11px;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;opacity:.9;position:absolute;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:break-word;z-index:1070}.cal-tooltip.cal-tooltip-top{margin-top:-3px;padding:5px 0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-width:5px 5px 0;bottom:0;left:50%;margin-left:-5px}.cal-tooltip.cal-tooltip-right{margin-left:3px;padding:0 5px}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-width:5px 5px 5px 0;left:0;margin-top:-5px;top:50%}.cal-tooltip.cal-tooltip-bottom{margin-top:3px;padding:5px 0}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-width:0 5px 5px;left:50%;margin-left:-5px;top:0}.cal-tooltip.cal-tooltip-left{margin-left:-3px;padding:0 5px}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-width:5px 0 5px 5px;margin-top:-5px;right:0;top:50%}.cal-tooltip-inner{border-radius:.25rem;max-width:200px;padding:3px 8px;text-align:center}.cal-tooltip-arrow{border-color:transparent;border-style:solid;height:0;position:absolute;width:0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000}.cal-tooltip-inner{background-color:#000;color:#fff}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{-moz-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;align-items:center;border-radius:var(--m-button-radius);cursor:pointer;display:flex;font-size:var(--m-button-text-size);font-weight:var(--m-button-text-weight);justify-content:center;line-height:var(--m-button-text-height);outline:0;padding:var(--m-button-padding);user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-secondary{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-grey{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey.reverse{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-input{align-items:center;border:1px solid var(--m-color-grey06);border-radius:5px;display:flex;justify-content:space-between;margin-top:16px;max-width:320px;min-width:200px;outline:none;padding:8px 16px}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-catalog-recipe-card .miam-catalog-card__attributes,.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions,.miam-flex-column{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin:auto}.m-default-card{background-color:var(--m-color-unpure-white);border-radius:8px;box-shadow:var(--m-shadow-small);padding:16px}@media (max-width:1023px){.m-default-card{margin-bottom:8px;padding:8px}}#toast-container>div{opacity:.95!important}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-gap:var(--miam-button-gap,10px);--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-height:var(--miam-button-text-height,calc(var(--m-button-text-size)*1.5));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-white:var(--miam-color-white,#fafcfe);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-small:var(--miam-font-size-small,14px);--m-loader-size:var(--miam-loader-sizes,40px);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){color:var(--m-color-slate);font-family:Work Sans;font-size:var(--m-font-size-medium);font-style:normal;font-weight:500;line-height:24px}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-size:40px;font-weight:700;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{-webkit-animation:none!important;-webkit-transition:none!important;animation:none!important;transition:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}ng-miam-catalog-recipe-card{flex-grow:1;margin:calc(var(--m-catalog-cards-spacing)/2);max-width:calc(var(--m-catalog-card-minwidth)*1.1)}.miam-catalog-recipe-card{background-color:var(--m-catalog-card-bg-color);border:1px solid #ddd;border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);display:flex;flex-direction:column;height:var(--m-catalog-card-height);min-width:var(--m-catalog-card-minwidth);position:relative;width:100%}@media (min-width:1023px){.miam-catalog-recipe-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.05)}}.miam-catalog-recipe-card .miam-catalog-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:var(--m-catalog-card-picture-height);position:relative}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:calc(var(--m-catalog-card-picture-height) + 1px);left:-1px;overflow:hidden;position:absolute;top:-1px;width:calc(100% + 2px)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{-o-object-fit:cover;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:100%;height:var(--m-catalog-card-picture-height);object-fit:cover;position:relative;transition:var(--m-default-transition);width:100%;z-index:var(--m-z-index-position-absolute-low)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor{-o-object-fit:contain;height:auto;left:16px;max-height:48px;max-width:64px;object-fit:contain;position:absolute;top:16px;transform:none;width:auto;z-index:var(--m-z-index-position-absolute-low)}.miam-catalog-recipe-card .miam-catalog-card__attributes{align-items:center;flex:1 1;flex-direction:column-reverse;justify-content:flex-start;padding:12px 16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{display:flex;flex-direction:row;justify-content:space-around;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info{align-items:center;display:flex;flex-direction:column;padding:0 16px;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info:first-child{border-right:1px solid #ddd}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label{color:var(--m-catalog-card-details-color);font-size:var(--m-catalog-card-details-size);line-height:var(--m-catalog-card-details-line-height);margin:2px 0 0;text-align:center;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label:first-letter{text-transform:capitalize}.miam-catalog-recipe-card .miam-catalog-recipe-card__header{display:none}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__video{left:calc(50% - 40px);position:absolute;top:calc(50% - 50px)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__tag{background-color:rgba(0,0,0,.6);border-radius:5px;color:var(--m-color-white);font-weight:500;left:16px;padding:8px;position:absolute;text-transform:uppercase;top:16px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__attributes__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;-webkit-tap-highlight-color:transparent;color:var(--m-color-black);cursor:pointer;display:-webkit-box;font-size:var(--m-catalog-card-title-size);font-weight:700;left:0;letter-spacing:normal;line-height:var(--m-catalog-card-line-height);margin:12px 0;overflow:hidden;padding:0 16px;position:absolute;text-align:center;text-overflow:ellipsis;top:var(--m-catalog-card-picture-height);transition:var(--m-default-transition);width:100%}@media (min-width:1022px){.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__attributes__title:hover{text-decoration:underline}}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions{position:absolute;right:16px;top:16px;z-index:var(--m-z-index-position-absolute-high)}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control{align-items:center;display:flex;justify-content:center;margin-top:12px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-recipe-card__ingredients__pictures{display:none}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__right__col__price{margin-right:16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__right__col__price .miam-recipe-pricing__wrapper__price{line-height:20px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control button.m-button-primary .miam-loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:16px;margin-left:8px;width:16px}"], encapsulation: 2, changeDetection: 0 });
|
|
12588
|
+
}, directives: [i4.NgIf, i4.NgClass, IconComponent, SkeletonComponent, LikeButtonComponent, RecipePricingComponent, LoaderComponent, i4.NgSwitch, i4.NgSwitchCase, i4.NgSwitchDefault, ActionsPopinComponent, CORSOverlayComponent], pipes: [i4.AsyncPipe], styles: [".cal-month-view .cal-header{font-weight:bolder;text-align:center}.cal-month-view .cal-header .cal-cell{display:block;overflow:hidden;padding:5px 0;text-overflow:ellipsis;white-space:nowrap}.cal-month-view .cal-days{border:1px solid;border-bottom:0}.cal-month-view .cal-cell-top{flex:1;min-height:78px}.cal-month-view .cal-cell-row{display:flex}.cal-month-view .cal-cell{align-items:stretch;display:flex;flex:1;flex-direction:column;float:left}.cal-month-view .cal-cell .cal-event{pointer-events:all!important}.cal-month-view .cal-day-cell{min-height:100px}@media (-ms-high-contrast:none){.cal-month-view .cal-day-cell{display:block}}.cal-month-view .cal-day-cell:not(:last-child){border-right:1px solid}.cal-month-view .cal-days .cal-cell-row{border-bottom:1px solid}.cal-month-view .cal-day-badge{border-radius:10px;display:inline-block;font-size:12px;font-weight:700;line-height:1;margin-left:10px;margin-top:18px;min-width:10px;padding:3px 7px;text-align:center;vertical-align:middle;white-space:nowrap}.cal-month-view .cal-day-number{float:right;font-size:1.2em;font-weight:400;margin-bottom:10px;margin-right:15px;margin-top:15px;opacity:.5}.cal-month-view .cal-events{align-items:flex-end;display:flex;flex:1;flex-wrap:wrap;line-height:10px;margin:3px}.cal-month-view .cal-event{border-radius:50%;display:inline-block;height:10px;margin:2px;width:10px}.cal-month-view .cal-day-cell.cal-in-month.cal-has-events{cursor:pointer}.cal-month-view .cal-day-cell.cal-out-month .cal-day-number{cursor:default;opacity:.1}.cal-month-view .cal-day-cell.cal-today .cal-day-number{font-size:1.9em}.cal-month-view .cal-open-day-events{padding:15px}.cal-month-view .cal-open-day-events .cal-event{position:relative;top:2px}.cal-month-view .cal-out-month .cal-day-badge,.cal-month-view .cal-out-month .cal-event{opacity:.3}.cal-month-view .cal-draggable{cursor:move}.cal-month-view .cal-drag-active *{pointer-events:none}.cal-month-view .cal-event-title{cursor:pointer}.cal-month-view .cal-event-title:hover{text-decoration:underline}.cal-month-view{background-color:#fff}.cal-month-view .cal-cell-row:hover{background-color:#fafafa}.cal-month-view .cal-cell-row .cal-cell:hover,.cal-month-view .cal-cell.cal-has-events.cal-open{background-color:#ededed}.cal-month-view .cal-days{border-color:#e1e1e1}.cal-month-view .cal-day-cell:not(:last-child){border-right-color:#e1e1e1}.cal-month-view .cal-days .cal-cell-row{border-bottom-color:#e1e1e1}.cal-month-view .cal-day-badge{background-color:#b94a48;color:#fff}.cal-month-view .cal-event{background-color:#1e90ff;border-color:#d1e8ff;color:#fff}.cal-month-view .cal-day-cell.cal-weekend .cal-day-number{color:#8b0000}.cal-month-view .cal-day-cell.cal-today{background-color:#e8fde7}.cal-month-view .cal-day-cell.cal-drag-over{background-color:#e0e0e0!important}.cal-month-view .cal-open-day-events{background-color:#555;box-shadow:inset 0 0 15px 0 rgba(0,0,0,.5);color:#fff}.cal-week-view *{box-sizing:border-box}.cal-week-view .cal-day-headers{border:1px solid;display:flex;padding-left:70px}.cal-week-view .cal-day-headers .cal-header{flex:1;padding:5px;text-align:center}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right:1px solid}.cal-week-view .cal-day-headers .cal-header:first-child{border-left:1px solid}.cal-week-view .cal-day-headers span{font-weight:400;opacity:.5}.cal-week-view .cal-day-column{border-left:1px solid;flex-grow:1}.cal-week-view .cal-event{border:1px solid;font-size:12px}.cal-week-view .cal-time-label-column{height:100%;width:70px}.cal-week-view .cal-current-time-marker{height:2px;position:absolute;width:100%;z-index:2}.cal-week-view .cal-all-day-events{border-bottom:3px solid;border-left:1px solid;border-right:1px solid;border-top:0;padding-top:3px;position:relative}.cal-week-view .cal-all-day-events .cal-day-columns{display:flex;height:100%;position:absolute;top:0;width:100%;z-index:0}.cal-week-view .cal-all-day-events .cal-events-row{height:31px;margin-left:70px;position:relative}.cal-week-view .cal-all-day-events .cal-event-container{display:inline-block;position:absolute}.cal-week-view .cal-all-day-events .cal-event-container.resize-active{pointer-events:none;z-index:1}.cal-week-view .cal-all-day-events .cal-event{height:28px;line-height:28px;margin-left:2px;margin-right:2px;padding:0 5px}.cal-week-view .cal-all-day-events .cal-starts-within-week .cal-event{border-bottom-left-radius:5px;border-top-left-radius:5px}.cal-week-view .cal-all-day-events .cal-ends-within-week .cal-event{border-bottom-right-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-all-day-events .cal-time-label-column{align-items:center;display:flex;font-size:14px;justify-content:center}.cal-week-view .cal-all-day-events .cal-resize-handle{cursor:col-resize;height:100%;position:absolute;top:0;width:6px}.cal-week-view .cal-all-day-events .cal-resize-handle.cal-resize-handle-after-end{right:0}.cal-week-view .cal-event,.cal-week-view .cal-header{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.cal-week-view .cal-drag-active{pointer-events:none;z-index:1}.cal-week-view .cal-drag-active *{pointer-events:none}.cal-week-view .cal-time-events{border:1px solid;border-top:0;display:flex;position:relative}.cal-week-view .cal-time-events .cal-day-columns{display:flex;flex-grow:1}.cal-week-view .cal-time-events .cal-day-column,.cal-week-view .cal-time-events .cal-events-container{position:relative}.cal-week-view .cal-time-events .cal-event-container{position:absolute;z-index:1}.cal-week-view .cal-time-events .cal-event{height:calc(100% - 2px);line-height:25px;margin:1px;padding:0 5px;width:calc(100% - 2px)}.cal-week-view .cal-time-events .cal-resize-handle{cursor:row-resize;height:4px;position:absolute;width:100%}.cal-week-view .cal-time-events .cal-resize-handle.cal-resize-handle-after-end{bottom:0}.cal-week-view .cal-hour-segment{position:relative}.cal-week-view .cal-hour-segment:after{content:\"\\00a0\"}.cal-week-view .cal-event-container:not(.cal-draggable){cursor:pointer}.cal-week-view .cal-draggable{cursor:move}.cal-week-view .cal-hour-segment,.cal-week-view mwl-calendar-week-view-hour-segment{display:block}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom:thin dashed}.cal-week-view .cal-time{font-weight:700;padding-top:5px;text-align:center;width:70px}.cal-week-view .cal-hour-segment.cal-after-hour-start .cal-time{display:none}.cal-week-view .cal-starts-within-day .cal-event{border-top-left-radius:5px;border-top-right-radius:5px}.cal-week-view .cal-ends-within-day .cal-event{border-bottom-left-radius:5px;border-bottom-right-radius:5px}.cal-week-view{background-color:#fff;border-top:1px solid #e1e1e1}.cal-week-view .cal-day-headers{border-color:#e1e1e1;border-top:0}.cal-week-view .cal-day-headers .cal-header:not(:last-child){border-right-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-header:first-child{border-left-color:#e1e1e1}.cal-week-view .cal-day-headers .cal-drag-over,.cal-week-view .cal-day-headers .cal-header:hover{background-color:#ededed}.cal-week-view .cal-day-column{border-left-color:#e1e1e1}.cal-week-view .cal-event{background-color:#d1e8ff;border-color:#1e90ff;color:#1e90ff}.cal-week-view .cal-all-day-events{border-color:#e1e1e1}.cal-week-view .cal-header.cal-today{background-color:#e8fde7}.cal-week-view .cal-header.cal-weekend span{color:#8b0000}.cal-week-view .cal-time-events{border-color:#e1e1e1}.cal-week-view .cal-time-events .cal-day-columns:not(.cal-resize-active) .cal-hour-segment:hover{background-color:#ededed}.cal-week-view .cal-hour-odd{background-color:#fafafa}.cal-week-view .cal-drag-over .cal-hour-segment{background-color:#ededed}.cal-week-view .cal-hour:last-child :not(:last-child) .cal-hour-segment,.cal-week-view .cal-hour:not(:last-child) .cal-hour-segment{border-bottom-color:#e1e1e1}.cal-week-view .cal-current-time-marker{background-color:#ea4334}.cal-day-view mwl-calendar-week-view-header{display:none}.cal-day-view .cal-events-container{margin-left:70px}.cal-day-view .cal-day-column{border-left:0}.cal-day-view .cal-current-time-marker{margin-left:70px;width:calc(100% - 70px)}.cal-tooltip{display:block;font-size:11px;font-style:normal;font-weight:400;letter-spacing:normal;line-break:auto;line-height:1.5;opacity:.9;position:absolute;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;white-space:normal;word-break:normal;word-spacing:normal;word-wrap:break-word;z-index:1070}.cal-tooltip.cal-tooltip-top{margin-top:-3px;padding:5px 0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-width:5px 5px 0;bottom:0;left:50%;margin-left:-5px}.cal-tooltip.cal-tooltip-right{margin-left:3px;padding:0 5px}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-width:5px 5px 5px 0;left:0;margin-top:-5px;top:50%}.cal-tooltip.cal-tooltip-bottom{margin-top:3px;padding:5px 0}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-width:0 5px 5px;left:50%;margin-left:-5px;top:0}.cal-tooltip.cal-tooltip-left{margin-left:-3px;padding:0 5px}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-width:5px 0 5px 5px;margin-top:-5px;right:0;top:50%}.cal-tooltip-inner{border-radius:.25rem;max-width:200px;padding:3px 8px;text-align:center}.cal-tooltip-arrow{border-color:transparent;border-style:solid;height:0;position:absolute;width:0}.cal-tooltip.cal-tooltip-top .cal-tooltip-arrow{border-top-color:#000}.cal-tooltip.cal-tooltip-right .cal-tooltip-arrow{border-right-color:#000}.cal-tooltip.cal-tooltip-bottom .cal-tooltip-arrow{border-bottom-color:#000}.cal-tooltip.cal-tooltip-left .cal-tooltip-arrow{border-left-color:#000}.cal-tooltip-inner{background-color:#000;color:#fff}.m-button,.m-button-grey,.m-button-grey.reverse,.m-button-primary,.m-button-primary.reverse,.m-button-secondary,.m-button-secondary.reverse{-moz-user-select:none;-webkit-tap-highlight-color:transparent;-webkit-user-select:none;align-items:center;border-radius:var(--m-button-radius);cursor:pointer;display:flex;font-size:var(--m-button-text-size);font-weight:var(--m-button-text-weight);justify-content:center;line-height:var(--m-button-text-height);outline:0;padding:var(--m-button-padding);user-select:none}.m-button-grey.reverse ng-miam-icon,.m-button-grey ng-miam-icon,.m-button-primary.reverse ng-miam-icon,.m-button-primary ng-miam-icon,.m-button-secondary.reverse ng-miam-icon,.m-button-secondary ng-miam-icon,.m-button ng-miam-icon{padding:0}.m-button-grey ng-miam-icon:last-child,.m-button-primary ng-miam-icon:last-child,.m-button-secondary ng-miam-icon:last-child,.m-button ng-miam-icon:last-child{margin-left:var(--m-button-gap)}.m-button-grey ng-miam-icon:first-child,.m-button-primary ng-miam-icon:first-child,.m-button-secondary ng-miam-icon:first-child,.m-button ng-miam-icon:first-child{margin-right:var(--m-button-gap)}.m-button-grey ng-miam-icon:last-child:first-child,.m-button-primary ng-miam-icon:last-child:first-child,.m-button-secondary ng-miam-icon:last-child:first-child,.m-button ng-miam-icon:last-child:first-child{margin:0}.m-button-primary{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-primary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary:hover ng-miam-icon svg path{fill:var(--m-color-primary)}}.m-button-primary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-primary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-primary);color:var(--m-color-primary)}@media (min-width:1023px){.m-button-primary.reverse:hover{background-color:var(--m-color-primary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-primary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-primary.reverse ng-miam-icon svg path{fill:var(--m-color-primary)}.m-button-secondary{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-secondary:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary:hover ng-miam-icon svg path{fill:var(--m-color-secondary)}}.m-button-secondary ng-miam-icon svg path{fill:var(--m-color-white)}.m-button-secondary.reverse{background-color:var(--m-color-white);border:1px solid var(--m-color-secondary);color:var(--m-color-secondary)}@media (min-width:1023px){.m-button-secondary.reverse:hover{background-color:var(--m-color-secondary);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-secondary.reverse:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-secondary.reverse ng-miam-icon svg path{fill:var(--m-color-secondary)}.m-button-grey{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03)}@media (min-width:1023px){.m-button-grey:hover{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey:hover ng-miam-icon svg path{fill:var(--m-color-white)}}.m-button-grey ng-miam-icon svg path{fill:var(--m-color-grey03)}.m-button-grey.reverse{background-color:var(--m-color-grey03);border:1px solid var(--m-color-white);color:var(--m-color-white)}@media (min-width:1023px){.m-button-grey.reverse:hover{background-color:var(--m-color-white);border:1px solid var(--m-color-grey03);color:var(--m-color-grey03);transition:color .3s ease-in-out,background-color .3s ease-in-out,border-color .3s ease-in-out,fill .3s ease-in-out}.m-button-grey.reverse:hover ng-miam-icon svg path{fill:var(--m-color-grey03)}}.m-button-grey.reverse ng-miam-icon svg path{fill:var(--m-color-white)}.m-input{align-items:center;border:1px solid var(--m-color-grey06);border-radius:5px;display:flex;justify-content:space-between;margin-top:16px;max-width:320px;min-width:200px;outline:none;padding:8px 16px}.m-input:focus-within{border:1px solid var(--m-color-primary)}@media (max-width:1023px){.m-input{padding:8px}}.m-title-text-input .miam-text-input{max-width:565px}.miam-catalog-recipe-card .miam-catalog-card__attributes,.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions,.miam-flex-column{display:flex;flex-direction:column;justify-content:space-around}.miam-flex-row{align-items:center;display:flex;flex-direction:row;justify-content:space-between;margin:auto}.m-default-card{background-color:var(--m-color-unpure-white);border-radius:8px;box-shadow:var(--m-shadow-small);padding:16px}@media (max-width:1023px){.m-default-card{margin-bottom:8px;padding:8px}}#toast-container>div{opacity:.95!important}@media (min-width:1023px){#toast-container>div:hover{opacity:1!important}}@-webkit-keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}@keyframes jiggle{0%{transform:none}25%{transform:rotate(5deg)}75%{transform:rotate(-5deg)}to{transform:none}}:root{--m-border-radius:var(--miam-border-radius,8px);--m-border-radius-circle:50%;--m-border-radius-pill:25px;--m-button-gap:var(--miam-button-gap,10px);--m-button-padding:var(--miam-button-padding,9px 20px);--m-button-radius:var(--miam-button-padding,var(--m-border-radius-pill));--m-button-text-height:var(--miam-button-text-height,calc(var(--m-button-text-size)*1.5));--m-button-text-size:var(--miam-button-text-size,14px);--m-button-text-weight:var(--miam-button-text-weight,normal);--m-catalog-alt-button-color:var(--miam-catalog-alt-button-color,rgba(0,0,0,0.3));--m-catalog-alt-button-text-color:var(--miam-catalog-alt-button-text-color,var(--m-color-white));--m-catalog-alt-button-text-color-reverse:var(--miam-catalog-alt-button-text-color-reverse,var(--m-color-black));--m-catalog-card-bg-color:var(--miam-catalog-card-bg-color,var(--m-color-white));--m-catalog-card-details-color:var(--miam-catalog-card-details-color,#575756);--m-catalog-card-details-line-height:var(--miam-catalog-card-details-color,15px);--m-catalog-card-details-size:var(--miam-catalog-card-details-color,11px);--m-catalog-card-height:var(--miam-catalog-card-height,400px);--m-catalog-card-minwidth:var(--miam-catalog-card-minwidth,250px);--m-catalog-card-picture-height:var(--miam-catalog-card-picture-height,240px);--m-catalog-card-title-line-height:var(--miam-catalog-card-title-line-height 16px);--m-catalog-card-title-size:var(--miam-catalog-card-title-size,13px);--m-catalog-cards-spacing:var(--miam-catalog-cards-spacing,16px);--m-catalog-header-reduced-bg-color:var(--miam-catalog-header-reduced-bg-color,var(--m-color-primary));--m-catalog-header-reduced-text-color:var(--miam-catalog-header-reduced-text-color,var(--m-color-white));--m-catalog-header-text-color:var(--miam-catalog-header-text-color,var(--m-color-white));--m-catalog-redpoint-color:var(--miam-catalog-redpoint-color,#dd1219);--m-catalog-redpoint-text-color:var(--miam-catalog-redpoint-color,var(--m-color-white));--m-color-black:var(--miam-color-black,#0e0e2c);--m-color-card-shadow:var(--miam-color-card-shadow,#eaf2fb);--m-color-danger:var(--miam-color-danger,#f97d7d);--m-color-danger-text:var(--miam-color-danger-text,#700505);--m-color-grey:var(--miam-color-grey,#f5f5f5);--m-color-grey-text:var(--miam-color-grey-text,#acb0b9);--m-color-grey-text-dark:var(--miam-color-grey-text-dark,#757575);--m-color-grey01:var(--miam-color-grey01,#505062);--m-color-grey02:var(--miam-color-grey02,#67677e);--m-color-grey03:var(--miam-color-grey03,#818198);--m-color-grey04:var(--miam-color-grey04,#9d9daf);--m-color-grey05:var(--miam-color-grey05,#b9b9c6);--m-color-grey06:var(--miam-color-grey06,#d5d5dd);--m-color-grey07:var(--miam-color-grey07,#e3e3e8);--m-color-hairlines:var(--miam-color-hairlines,#ecf1f4);--m-color-info:var(--miam-color-info,#8cd4eb);--m-color-info-text:var(--miam-color-info-text,#125368);--m-color-light-slate:var(--miam-color-light-slate,#8c8ca1);--m-color-onyx:var(--miam-color-onyx,#0e0e2c);--m-color-primary:var(--miam-color-primary,#006574);--m-color-primary-dark:var(--miam-color-primary-dark,darken(#006574,10%));--m-color-primary-light:var(--miam-color-primary-light,lighten(#006574,10%));--m-color-primary-text:var(--miam-color-primary-text,#fff);--m-color-secondary:var(--miam-color-secondary,#ef760f);--m-color-secondary-dark:var(--miam-color-secondary-dark,#ef7711);--m-color-secondary-light:var(--miam-color-secondary-light,#faebd7);--m-color-secondary-text:var(--miam-color-secondary-text,#fff);--m-color-slate:var(--miam-color-slate,#4a4a68);--m-color-success:var(--miam-color-success,#44d6b3);--m-color-success-text:var(--miam-color-success-text,#135344);--m-color-tag-diet:var(--miam-color-tag-diet,#d3f8dd);--m-color-tag-equipment:var(--miam-color-tag-equipment,#e6e5e5);--m-color-tag-ingredient-category:var(--miam-color-tag-ingredient-category,#d3f5f8);--m-color-tag-meal-type:var(--miam-color-meal-type,#fbe8d0);--m-color-ternary:var(--miam-color-ternary,#1accf8);--m-color-ternary-dark:var(--miam-color-ternary-dark,#057894);--m-color-ternary-light:var(--miam-color-ternary-light,#cef4fd);--m-color-ternary-text:var(--miam-color-ternary-text,#fff);--m-color-unpure-white:var(--miam-color-unpure-white,#fefefe);--m-color-warning:var(--miam-color-warning,#ffdaa3);--m-color-warning-text:var(--miam-color-warning-text,#f90);--m-color-white:var(--miam-color-white,#fafcfe);--m-default-transition:var(--miam-default-transition,all 0.3s ease-in-out);--m-font-size-Xlarge:var(--miam-font-size-Xlarge,24px);--m-font-size-large:var(--miam-font-size-large,20px);--m-font-size-medium:var(--miam-font-size-medium,16px);--m-font-size-small:var(--miam-font-size-small,14px);--m-loader-size:var(--miam-loader-sizes,40px);--m-loader-thickness:var(--miam-loader-thickness,5px);--m-shadow-small:var(--miam-shadow-small,0px 3px 4px var(--m-color-card-shadow));--m-z-index-drawer-container:var(--miam-z-index-drawer-container,5000002);--m-z-index-drawer-overlay:var(--miam-z-index-drawer-overlay,5000001);--m-z-index-loader:var(--miam-z-index-loader,2);--m-z-index-modal:var(--miam-z-index-modal,6001);--m-z-index-modal-overlay:var(--miam-z-index-modal-overlay,6000);--m-z-index-position-absolute-high:var(--miam-z-index-position-absolute-high,1);--m-z-index-position-absolute-low:var(--miam-z-index-position-absolute-low,0)}.m-title-text-input:focus-within :root .miam-text-input__label,.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-body-typo,:root .m-h1-typo,:root .m-input,:root .m-input>*,:root .m-small-typo,:root .m-title-text-input:focus-within .miam-text-input__label,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){color:var(--m-color-slate);font-family:Work Sans;font-size:var(--m-font-size-medium);font-style:normal;font-weight:500;line-height:24px}.m-title-text-input :root input,.m-title-text-input :root label:not(.miam-text-input__label__top),:root .m-h1-typo,:root .m-title-text-input input,:root .m-title-text-input label:not(.miam-text-input__label__top){font-size:40px;font-weight:700;line-height:48px}:root .m-small-typo{font-size:var(--m-font-size-small);line-height:16px}@media print{:root *{-webkit-animation:none!important;-webkit-transition:none!important;animation:none!important;transition:none!important}:root .miam-not-printable{display:none}:root:last-child{page-break-after:auto}}:root .miam-print-only{display:none}@media print{:root .miam-print-only{display:block}}ng-miam-catalog-recipe-card{flex-grow:1;margin:calc(var(--m-catalog-cards-spacing)/2);max-width:calc(var(--m-catalog-card-minwidth)*1.1)}.miam-catalog-recipe-card{background-color:var(--m-catalog-card-bg-color);border:1px solid #ddd;border-radius:var(--m-border-radius);box-shadow:var(--m-shadow-small);display:flex;flex-direction:column;height:var(--m-catalog-card-height);min-width:var(--m-catalog-card-minwidth);position:relative;width:100%}@media (min-width:1023px){.miam-catalog-recipe-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.05)}}.miam-catalog-recipe-card .miam-catalog-card__picture{-webkit-tap-highlight-color:transparent;cursor:pointer;height:var(--m-catalog-card-picture-height);position:relative}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:calc(var(--m-catalog-card-picture-height) + 1px);left:-1px;overflow:hidden;position:absolute;top:-1px;width:calc(100% + 2px)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{-o-object-fit:cover;border-top-left-radius:var(--m-border-radius);border-top-right-radius:var(--m-border-radius);height:100%;height:var(--m-catalog-card-picture-height);object-fit:cover;position:relative;transition:var(--m-default-transition);width:100%;z-index:var(--m-z-index-position-absolute-low)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor{align-items:flex-start;display:flex;height:48px;justify-content:flex-start;left:16px;order:2;position:absolute;top:16px;width:64px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__sponsor img{-o-object-fit:contain;height:auto;max-height:100%;max-width:100%;object-fit:contain;width:auto}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane{align-items:flex-end;bottom:16px;display:flex;height:48px;justify-content:flex-end;order:2;position:absolute;right:16px;width:72px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__filigrane img{-o-object-fit:contain;height:auto;max-height:100%;max-width:100%;object-fit:contain;width:auto}.miam-catalog-recipe-card .miam-catalog-card__attributes{align-items:center;flex:1 1;flex-direction:column-reverse;justify-content:flex-start;padding:12px 16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{display:flex;flex-direction:row;justify-content:space-around;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info{align-items:center;display:flex;flex-direction:column;padding:0 16px;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info:first-child{border-right:1px solid #ddd}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label{color:var(--m-catalog-card-details-color);font-size:var(--m-catalog-card-details-size);line-height:var(--m-catalog-card-details-line-height);margin:2px 0 0;text-align:center;width:100%}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info .miam-catalog-card__info__label:first-letter{text-transform:capitalize}.miam-catalog-recipe-card .miam-catalog-recipe-card__header{display:none}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__video{left:calc(50% - 40px);position:absolute;top:calc(50% - 50px)}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__tag{background-color:rgba(0,0,0,.6);border-radius:5px;color:var(--m-color-white);font-weight:500;left:16px;padding:8px;position:absolute;text-transform:uppercase;top:16px}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__attributes__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;-webkit-tap-highlight-color:transparent;color:var(--m-color-black);cursor:pointer;display:-webkit-box;font-size:var(--m-catalog-card-title-size);font-weight:700;left:0;letter-spacing:normal;line-height:var(--m-catalog-card-line-height);margin:12px 0;overflow:hidden;padding:0 16px;position:absolute;text-align:center;text-overflow:ellipsis;top:var(--m-catalog-card-picture-height);transition:var(--m-default-transition);width:100%}@media (min-width:1022px){.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__attributes__title:hover{text-decoration:underline}}.miam-catalog-recipe-card .miam-catalog-card__picture .miam-catalog-recipe-card__picture__actions{position:absolute;right:16px;top:16px;z-index:var(--m-z-index-position-absolute-high)}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control{align-items:center;display:flex;justify-content:center;margin-top:12px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-recipe-card__ingredients__pictures{display:none}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__right__col__price{margin-right:16px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control .miam-catalog-recipe-card__right__col__price .miam-recipe-pricing__wrapper__price{line-height:20px}.miam-catalog-recipe-card .miam-catalog-card__attributes .miam-catalog-recipe-card__attributes__control button.m-button-primary .miam-loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:16px;margin-left:8px;width:16px}"], encapsulation: 2, changeDetection: 0 });
|
|
12503
12589
|
/*@__PURE__*/ (function () {
|
|
12504
12590
|
i0.ɵsetClassMetadata(CatalogRecipeCardComponent, [{
|
|
12505
12591
|
type: i0.Component,
|
|
@@ -13715,6 +13801,8 @@
|
|
|
13715
13801
|
}
|
|
13716
13802
|
if (this.imageUrl === '') {
|
|
13717
13803
|
this.imageUrl = this.previousImageUrl;
|
|
13804
|
+
this.formControl.patchValue(this.imageUrl);
|
|
13805
|
+
this.onFileDropped.emit();
|
|
13718
13806
|
}
|
|
13719
13807
|
this.cdr.detectChanges();
|
|
13720
13808
|
};
|
|
@@ -13744,17 +13832,16 @@
|
|
|
13744
13832
|
DragDropInputComponent.prototype.uploadFile = function (files) {
|
|
13745
13833
|
var _this = this;
|
|
13746
13834
|
if (!this.imageSizeCheck(files)) {
|
|
13747
|
-
this.bigFileDropped.emit();
|
|
13748
13835
|
// At creation no imageURl is passed so the first onChanges hasn't been called before modification
|
|
13749
13836
|
// But at first modification onChanges is called with the new value
|
|
13750
13837
|
// in this case previousImageUrl === imageUrl so we pass it to null.
|
|
13751
13838
|
this.imageUrl = this.previousImageUrl === this.imageUrl ? null : this.previousImageUrl;
|
|
13752
13839
|
this.formControl.patchValue(this.imageUrl);
|
|
13753
13840
|
this.previousImageUrl = this.imageUrl;
|
|
13841
|
+
this.bigFileDropped.emit();
|
|
13754
13842
|
return;
|
|
13755
13843
|
}
|
|
13756
13844
|
if (files[0]) {
|
|
13757
|
-
this.onFileDropped.emit(files);
|
|
13758
13845
|
if (this.photoMode) {
|
|
13759
13846
|
var reader_1 = new FileReader();
|
|
13760
13847
|
reader_1.readAsDataURL(files[0]);
|
|
@@ -13762,9 +13849,13 @@
|
|
|
13762
13849
|
_this.imageUrl = reader_1.result;
|
|
13763
13850
|
_this.previousImageUrl = _this.imageUrl;
|
|
13764
13851
|
_this.formControl.patchValue(_this.imageUrl);
|
|
13852
|
+
_this.onFileDropped.emit(files);
|
|
13765
13853
|
_this.cdr.detectChanges();
|
|
13766
13854
|
};
|
|
13767
13855
|
}
|
|
13856
|
+
else {
|
|
13857
|
+
this.onFileDropped.emit(files);
|
|
13858
|
+
}
|
|
13768
13859
|
}
|
|
13769
13860
|
};
|
|
13770
13861
|
DragDropInputComponent.prototype.imageSizeCheck = function (files) {
|
|
@@ -16343,7 +16434,7 @@
|
|
|
16343
16434
|
}
|
|
16344
16435
|
if (rf & 2) {
|
|
16345
16436
|
var ctx_r0 = i0.ɵɵnextContext();
|
|
16346
|
-
i0.ɵɵpropertyInterpolate("src", ctx_r0.recipe.
|
|
16437
|
+
i0.ɵɵpropertyInterpolate("src", ctx_r0.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl);
|
|
16347
16438
|
}
|
|
16348
16439
|
}
|
|
16349
16440
|
var RecipeAddonComponent = /** @class */ (function () {
|
|
@@ -16377,7 +16468,7 @@
|
|
|
16377
16468
|
i0.ɵɵadvance(3);
|
|
16378
16469
|
i0.ɵɵproperty("iconName", ctx.icon.ChevronDown);
|
|
16379
16470
|
i0.ɵɵadvance(3);
|
|
16380
|
-
i0.ɵɵproperty("ngIf", ctx.recipe == null ? null : ctx.recipe.
|
|
16471
|
+
i0.ɵɵproperty("ngIf", ctx.recipe == null ? null : ctx.recipe.sponsorLogoUrl);
|
|
16381
16472
|
i0.ɵɵadvance(2);
|
|
16382
16473
|
i0.ɵɵproperty("src", i0.ɵɵpipeBind1(9, 3, ctx.recipe == null ? null : ctx.recipe.attributes["informational-page-html"]), i0.ɵɵsanitizeResourceUrl);
|
|
16383
16474
|
}
|
|
@@ -16915,12 +17006,12 @@
|
|
|
16915
17006
|
var _c0$t = ["topContainerImg"];
|
|
16916
17007
|
function RecipeDetailsComponent_div_0_img_4_Template(rf, ctx) {
|
|
16917
17008
|
if (rf & 1) {
|
|
16918
|
-
i0.ɵɵelement(0, "img",
|
|
17009
|
+
i0.ɵɵelement(0, "img", 38);
|
|
16919
17010
|
}
|
|
16920
17011
|
}
|
|
16921
17012
|
function RecipeDetailsComponent_div_0_ng_template_5_Template(rf, ctx) {
|
|
16922
17013
|
if (rf & 1) {
|
|
16923
|
-
i0.ɵɵelement(0, "img",
|
|
17014
|
+
i0.ɵɵelement(0, "img", 39);
|
|
16924
17015
|
}
|
|
16925
17016
|
}
|
|
16926
17017
|
function RecipeDetailsComponent_div_0_span_8_Template(rf, ctx) {
|
|
@@ -16937,9 +17028,9 @@
|
|
|
16937
17028
|
}
|
|
16938
17029
|
function RecipeDetailsComponent_div_0_ng_miam_addon_link_16_Template(rf, ctx) {
|
|
16939
17030
|
if (rf & 1) {
|
|
16940
|
-
var
|
|
16941
|
-
i0.ɵɵelementStart(0, "ng-miam-addon-link",
|
|
16942
|
-
i0.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_ng_miam_addon_link_16_Template_ng_miam_addon_link_showAddon_0_listener() { i0.ɵɵrestoreView(
|
|
17031
|
+
var _r23_1 = i0.ɵɵgetCurrentView();
|
|
17032
|
+
i0.ɵɵelementStart(0, "ng-miam-addon-link", 40);
|
|
17033
|
+
i0.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_ng_miam_addon_link_16_Template_ng_miam_addon_link_showAddon_0_listener() { i0.ɵɵrestoreView(_r23_1); var ctx_r22 = i0.ɵɵnextContext(2); return ctx_r22.toggleAddon(); });
|
|
16943
17034
|
i0.ɵɵelementEnd();
|
|
16944
17035
|
}
|
|
16945
17036
|
if (rf & 2) {
|
|
@@ -16950,7 +17041,7 @@
|
|
|
16950
17041
|
var _c1$d = function (a0, a1) { return { "sponsor": a0, "tags": a1 }; };
|
|
16951
17042
|
function RecipeDetailsComponent_div_0_img_18_Template(rf, ctx) {
|
|
16952
17043
|
if (rf & 1) {
|
|
16953
|
-
i0.ɵɵelement(0, "img",
|
|
17044
|
+
i0.ɵɵelement(0, "img", 41);
|
|
16954
17045
|
}
|
|
16955
17046
|
if (rf & 2) {
|
|
16956
17047
|
var ctx_r10 = i0.ɵɵnextContext(2);
|
|
@@ -16959,146 +17050,158 @@
|
|
|
16959
17050
|
}
|
|
16960
17051
|
function RecipeDetailsComponent_div_0_youtube_player_19_Template(rf, ctx) {
|
|
16961
17052
|
if (rf & 1) {
|
|
16962
|
-
i0.ɵɵelement(0, "youtube-player",
|
|
17053
|
+
i0.ɵɵelement(0, "youtube-player", 42);
|
|
16963
17054
|
}
|
|
16964
17055
|
if (rf & 2) {
|
|
16965
17056
|
var ctx_r11 = i0.ɵɵnextContext(2);
|
|
16966
17057
|
i0.ɵɵproperty("videoId", ctx_r11.recipe.videoId)("width", ctx_r11.playerWidth)("height", ctx_r11.playerHeight);
|
|
16967
17058
|
}
|
|
16968
17059
|
}
|
|
16969
|
-
function
|
|
17060
|
+
function RecipeDetailsComponent_div_0_div_20_Template(rf, ctx) {
|
|
16970
17061
|
if (rf & 1) {
|
|
16971
|
-
i0.ɵɵ
|
|
17062
|
+
i0.ɵɵelementStart(0, "div", 43);
|
|
17063
|
+
i0.ɵɵelement(1, "img", 37);
|
|
17064
|
+
i0.ɵɵelementEnd();
|
|
16972
17065
|
}
|
|
16973
17066
|
if (rf & 2) {
|
|
16974
17067
|
var ctx_r12 = i0.ɵɵnextContext(2);
|
|
16975
|
-
i0.ɵɵ
|
|
17068
|
+
i0.ɵɵadvance(1);
|
|
17069
|
+
i0.ɵɵproperty("src", ctx_r12.recipe.filigraneLogoUrl, i0.ɵɵsanitizeUrl);
|
|
16976
17070
|
}
|
|
16977
17071
|
}
|
|
16978
|
-
function
|
|
17072
|
+
function RecipeDetailsComponent_div_0_ng_miam_like_button_23_Template(rf, ctx) {
|
|
16979
17073
|
if (rf & 1) {
|
|
16980
|
-
i0.ɵɵelement(0, "ng-miam-
|
|
17074
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 44);
|
|
16981
17075
|
}
|
|
16982
17076
|
if (rf & 2) {
|
|
16983
17077
|
var ctx_r13 = i0.ɵɵnextContext(2);
|
|
16984
|
-
i0.ɵɵproperty("recipe", ctx_r13.recipe)("
|
|
17078
|
+
i0.ɵɵproperty("recipe", ctx_r13.recipe)("originTrace", ctx_r13.eventTrace())("width", 24)("height", 24);
|
|
16985
17079
|
}
|
|
16986
17080
|
}
|
|
16987
|
-
function
|
|
17081
|
+
function RecipeDetailsComponent_div_0_ng_miam_recipe_details_infos_28_Template(rf, ctx) {
|
|
16988
17082
|
if (rf & 1) {
|
|
16989
|
-
i0.ɵɵelement(0, "ng-miam-recipe-details-
|
|
17083
|
+
i0.ɵɵelement(0, "ng-miam-recipe-details-infos", 45);
|
|
16990
17084
|
}
|
|
16991
17085
|
if (rf & 2) {
|
|
16992
17086
|
var ctx_r14 = i0.ɵɵnextContext(2);
|
|
16993
|
-
i0.ɵɵproperty("recipe", ctx_r14.recipe);
|
|
17087
|
+
i0.ɵɵproperty("recipe", ctx_r14.recipe)("displayTags", ctx_r14.displayTags)("displayTagsIcons", ctx_r14.displayTagsIcons)("reduced", ctx_r14.cookingTimeAsPrimaryInfo);
|
|
16994
17088
|
}
|
|
16995
17089
|
}
|
|
16996
|
-
function
|
|
17090
|
+
function RecipeDetailsComponent_div_0_ng_miam_recipe_details_steps_29_Template(rf, ctx) {
|
|
16997
17091
|
if (rf & 1) {
|
|
16998
|
-
i0.ɵɵelement(0, "ng-miam-recipe-
|
|
17092
|
+
i0.ɵɵelement(0, "ng-miam-recipe-details-steps", 46);
|
|
16999
17093
|
}
|
|
17000
17094
|
if (rf & 2) {
|
|
17001
17095
|
var ctx_r15 = i0.ɵɵnextContext(2);
|
|
17002
|
-
i0.ɵɵproperty("recipe", ctx_r15.recipe)
|
|
17096
|
+
i0.ɵɵproperty("recipe", ctx_r15.recipe);
|
|
17003
17097
|
}
|
|
17004
17098
|
}
|
|
17005
|
-
function
|
|
17099
|
+
function RecipeDetailsComponent_div_0_ng_miam_recipe_pricing_32_Template(rf, ctx) {
|
|
17006
17100
|
if (rf & 1) {
|
|
17007
|
-
i0.ɵɵelement(0, "ng-miam-
|
|
17101
|
+
i0.ɵɵelement(0, "ng-miam-recipe-pricing", 47);
|
|
17008
17102
|
}
|
|
17009
17103
|
if (rf & 2) {
|
|
17010
|
-
var
|
|
17011
|
-
i0.ɵɵproperty("
|
|
17104
|
+
var ctx_r16 = i0.ɵɵnextContext(2);
|
|
17105
|
+
i0.ɵɵproperty("recipe", ctx_r16.recipe)("serves", ctx_r16.recipe == null ? null : ctx_r16.recipe.modifiedGuests)("guestsText", ctx_r16.pricingGuestsText);
|
|
17012
17106
|
}
|
|
17013
17107
|
}
|
|
17014
|
-
function
|
|
17108
|
+
function RecipeDetailsComponent_div_0_div_33_div_2_ng_miam_icon_4_Template(rf, ctx) {
|
|
17015
17109
|
if (rf & 1) {
|
|
17016
|
-
i0.ɵɵ
|
|
17110
|
+
i0.ɵɵelement(0, "ng-miam-icon", 53);
|
|
17111
|
+
}
|
|
17112
|
+
if (rf & 2) {
|
|
17113
|
+
var ctx_r27 = i0.ɵɵnextContext(4);
|
|
17114
|
+
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r27.icon.Cart);
|
|
17115
|
+
}
|
|
17116
|
+
}
|
|
17117
|
+
function RecipeDetailsComponent_div_0_div_33_div_2_Template(rf, ctx) {
|
|
17118
|
+
if (rf & 1) {
|
|
17119
|
+
i0.ɵɵelementStart(0, "div", 51);
|
|
17017
17120
|
i0.ɵɵelementStart(1, "span");
|
|
17018
17121
|
i0.ɵɵtext(2);
|
|
17019
17122
|
i0.ɵɵpipe(3, "async");
|
|
17020
17123
|
i0.ɵɵelementEnd();
|
|
17021
|
-
i0.ɵɵtemplate(4,
|
|
17124
|
+
i0.ɵɵtemplate(4, RecipeDetailsComponent_div_0_div_33_div_2_ng_miam_icon_4_Template, 1, 3, "ng-miam-icon", 52);
|
|
17022
17125
|
i0.ɵɵpipe(5, "async");
|
|
17023
17126
|
i0.ɵɵelementEnd();
|
|
17024
17127
|
}
|
|
17025
17128
|
if (rf & 2) {
|
|
17026
|
-
var
|
|
17129
|
+
var ctx_r24 = i0.ɵɵnextContext(3);
|
|
17027
17130
|
i0.ɵɵadvance(2);
|
|
17028
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2,
|
|
17131
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 2, ctx_r24.groceriesListsService.recipeIsInList(ctx_r24.recipe == null ? null : ctx_r24.recipe.id)) ? "Voir les produits" : "Ajouter les ingr\u00E9dients", " ");
|
|
17029
17132
|
i0.ɵɵadvance(2);
|
|
17030
|
-
i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(5, 4,
|
|
17133
|
+
i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(5, 4, ctx_r24.groceriesListsService.recipeIsInList(ctx_r24.recipe == null ? null : ctx_r24.recipe.id)));
|
|
17031
17134
|
}
|
|
17032
17135
|
}
|
|
17033
|
-
function
|
|
17136
|
+
function RecipeDetailsComponent_div_0_div_33_ng_template_3_Template(rf, ctx) {
|
|
17034
17137
|
if (rf & 1) {
|
|
17035
17138
|
i0.ɵɵelement(0, "ng-miam-loader");
|
|
17036
17139
|
}
|
|
17037
17140
|
}
|
|
17038
17141
|
var _c2$4 = function (a0, a1) { return { "in-basket": a0, "loading": a1 }; };
|
|
17039
|
-
function
|
|
17142
|
+
function RecipeDetailsComponent_div_0_div_33_Template(rf, ctx) {
|
|
17040
17143
|
if (rf & 1) {
|
|
17041
|
-
var
|
|
17042
|
-
i0.ɵɵelementStart(0, "div",
|
|
17043
|
-
i0.ɵɵlistener("click", function
|
|
17144
|
+
var _r29_1 = i0.ɵɵgetCurrentView();
|
|
17145
|
+
i0.ɵɵelementStart(0, "div", 48);
|
|
17146
|
+
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_33_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r29_1); var ctx_r28 = i0.ɵɵnextContext(2); return ctx_r28.clickPrimary(); });
|
|
17044
17147
|
i0.ɵɵpipe(1, "async");
|
|
17045
|
-
i0.ɵɵtemplate(2,
|
|
17046
|
-
i0.ɵɵtemplate(3,
|
|
17148
|
+
i0.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_33_div_2_Template, 6, 6, "div", 49);
|
|
17149
|
+
i0.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_33_ng_template_3_Template, 1, 0, "ng-template", null, 50, i0.ɵɵtemplateRefExtractor);
|
|
17047
17150
|
i0.ɵɵelementEnd();
|
|
17048
17151
|
}
|
|
17049
17152
|
if (rf & 2) {
|
|
17050
|
-
var
|
|
17051
|
-
var
|
|
17052
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(5, _c2$4, i0.ɵɵpipeBind1(1, 3,
|
|
17153
|
+
var _r25 = i0.ɵɵreference(4);
|
|
17154
|
+
var ctx_r17 = i0.ɵɵnextContext(2);
|
|
17155
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(5, _c2$4, i0.ɵɵpipeBind1(1, 3, ctx_r17.groceriesListsService.recipeIsInList(ctx_r17.recipe == null ? null : ctx_r17.recipe.id)), ctx_r17.addButtonLoading));
|
|
17053
17156
|
i0.ɵɵadvance(2);
|
|
17054
|
-
i0.ɵɵproperty("ngIf", !
|
|
17157
|
+
i0.ɵɵproperty("ngIf", !ctx_r17.addButtonLoading)("ngIfElse", _r25);
|
|
17055
17158
|
}
|
|
17056
17159
|
}
|
|
17057
|
-
function
|
|
17160
|
+
function RecipeDetailsComponent_div_0_div_36_Template(rf, ctx) {
|
|
17058
17161
|
if (rf & 1) {
|
|
17059
|
-
i0.ɵɵelementStart(0, "div",
|
|
17162
|
+
i0.ɵɵelementStart(0, "div", 54);
|
|
17060
17163
|
i0.ɵɵtext(1);
|
|
17061
17164
|
i0.ɵɵelementEnd();
|
|
17062
17165
|
}
|
|
17063
17166
|
if (rf & 2) {
|
|
17064
|
-
var
|
|
17167
|
+
var ctx_r18 = i0.ɵɵnextContext(2);
|
|
17065
17168
|
i0.ɵɵadvance(1);
|
|
17066
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17169
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r18.recipe == null ? null : ctx_r18.recipe.attributes["title"], " ");
|
|
17067
17170
|
}
|
|
17068
17171
|
}
|
|
17069
|
-
function
|
|
17172
|
+
function RecipeDetailsComponent_div_0_div_37_Template(rf, ctx) {
|
|
17070
17173
|
if (rf & 1) {
|
|
17071
|
-
i0.ɵɵelementStart(0, "div",
|
|
17174
|
+
i0.ɵɵelementStart(0, "div", 55);
|
|
17072
17175
|
i0.ɵɵtext(1);
|
|
17073
17176
|
i0.ɵɵelementEnd();
|
|
17074
17177
|
}
|
|
17075
17178
|
if (rf & 2) {
|
|
17076
|
-
var
|
|
17179
|
+
var ctx_r19 = i0.ɵɵnextContext(2);
|
|
17077
17180
|
i0.ɵɵadvance(1);
|
|
17078
|
-
i0.ɵɵtextInterpolate1(" ",
|
|
17181
|
+
i0.ɵɵtextInterpolate1(" ", ctx_r19.recipe == null ? null : ctx_r19.recipe.attributes.description, " ");
|
|
17079
17182
|
}
|
|
17080
17183
|
}
|
|
17081
|
-
function
|
|
17184
|
+
function RecipeDetailsComponent_div_0_ng_miam_recipe_details_infos_38_Template(rf, ctx) {
|
|
17082
17185
|
if (rf & 1) {
|
|
17083
|
-
i0.ɵɵelement(0, "ng-miam-recipe-details-infos",
|
|
17186
|
+
i0.ɵɵelement(0, "ng-miam-recipe-details-infos", 45);
|
|
17084
17187
|
}
|
|
17085
17188
|
if (rf & 2) {
|
|
17086
|
-
var
|
|
17087
|
-
i0.ɵɵproperty("recipe",
|
|
17189
|
+
var ctx_r20 = i0.ɵɵnextContext(2);
|
|
17190
|
+
i0.ɵɵproperty("recipe", ctx_r20.recipe)("displayTags", ctx_r20.displayTags)("displayTagsIcons", ctx_r20.displayTagsIcons)("reduced", ctx_r20.cookingTimeAsPrimaryInfo);
|
|
17088
17191
|
}
|
|
17089
17192
|
}
|
|
17090
|
-
function
|
|
17193
|
+
function RecipeDetailsComponent_div_0_ng_miam_recipe_details_steps_40_Template(rf, ctx) {
|
|
17091
17194
|
if (rf & 1) {
|
|
17092
|
-
i0.ɵɵelement(0, "ng-miam-recipe-details-steps",
|
|
17195
|
+
i0.ɵɵelement(0, "ng-miam-recipe-details-steps", 46);
|
|
17093
17196
|
}
|
|
17094
17197
|
if (rf & 2) {
|
|
17095
|
-
var
|
|
17096
|
-
i0.ɵɵproperty("recipe",
|
|
17198
|
+
var ctx_r21 = i0.ɵɵnextContext(2);
|
|
17199
|
+
i0.ɵɵproperty("recipe", ctx_r21.recipe);
|
|
17097
17200
|
}
|
|
17098
17201
|
}
|
|
17099
17202
|
function RecipeDetailsComponent_div_0_Template(rf, ctx) {
|
|
17100
17203
|
if (rf & 1) {
|
|
17101
|
-
var
|
|
17204
|
+
var _r31_1 = i0.ɵɵgetCurrentView();
|
|
17102
17205
|
i0.ɵɵelementStart(0, "div", 2, 3);
|
|
17103
17206
|
i0.ɵɵelementStart(2, "div", 4);
|
|
17104
17207
|
i0.ɵɵelementStart(3, "div", 5);
|
|
@@ -17121,43 +17224,44 @@
|
|
|
17121
17224
|
i0.ɵɵelementStart(17, "div", 17);
|
|
17122
17225
|
i0.ɵɵtemplate(18, RecipeDetailsComponent_div_0_img_18_Template, 1, 5, "img", 18);
|
|
17123
17226
|
i0.ɵɵtemplate(19, RecipeDetailsComponent_div_0_youtube_player_19_Template, 1, 3, "youtube-player", 19);
|
|
17227
|
+
i0.ɵɵtemplate(20, RecipeDetailsComponent_div_0_div_20_Template, 2, 1, "div", 20);
|
|
17124
17228
|
i0.ɵɵelementEnd();
|
|
17125
|
-
i0.ɵɵelementStart(20, "div", 20);
|
|
17126
17229
|
i0.ɵɵelementStart(21, "div", 21);
|
|
17127
|
-
i0.ɵɵ
|
|
17128
|
-
i0.ɵɵ
|
|
17129
|
-
i0.ɵɵ
|
|
17130
|
-
i0.ɵɵ
|
|
17230
|
+
i0.ɵɵelementStart(22, "div", 22);
|
|
17231
|
+
i0.ɵɵtemplate(23, RecipeDetailsComponent_div_0_ng_miam_like_button_23_Template, 1, 4, "ng-miam-like-button", 23);
|
|
17232
|
+
i0.ɵɵpipe(24, "async");
|
|
17233
|
+
i0.ɵɵelementStart(25, "ng-miam-icon", 24);
|
|
17234
|
+
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_Template_ng_miam_icon_click_25_listener() { i0.ɵɵrestoreView(_r31_1); var ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.print(); });
|
|
17131
17235
|
i0.ɵɵelementEnd();
|
|
17132
17236
|
i0.ɵɵelementEnd();
|
|
17133
|
-
i0.ɵɵelementStart(
|
|
17134
|
-
i0.ɵɵelementStart(
|
|
17135
|
-
i0.ɵɵlistener("click", function
|
|
17237
|
+
i0.ɵɵelementStart(26, "div", 22);
|
|
17238
|
+
i0.ɵɵelementStart(27, "ng-miam-icon", 25);
|
|
17239
|
+
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_Template_ng_miam_icon_click_27_listener() { i0.ɵɵrestoreView(_r31_1); var ctx_r32 = i0.ɵɵnextContext(); return ctx_r32.toggleHelper(); });
|
|
17136
17240
|
i0.ɵɵelementEnd();
|
|
17137
17241
|
i0.ɵɵelementEnd();
|
|
17138
17242
|
i0.ɵɵelementEnd();
|
|
17139
|
-
i0.ɵɵtemplate(
|
|
17140
|
-
i0.ɵɵtemplate(
|
|
17141
|
-
i0.ɵɵelementStart(29, "div", 27);
|
|
17243
|
+
i0.ɵɵtemplate(28, RecipeDetailsComponent_div_0_ng_miam_recipe_details_infos_28_Template, 1, 4, "ng-miam-recipe-details-infos", 26);
|
|
17244
|
+
i0.ɵɵtemplate(29, RecipeDetailsComponent_div_0_ng_miam_recipe_details_steps_29_Template, 1, 1, "ng-miam-recipe-details-steps", 27);
|
|
17142
17245
|
i0.ɵɵelementStart(30, "div", 28);
|
|
17143
|
-
i0.ɵɵ
|
|
17144
|
-
i0.ɵɵ
|
|
17145
|
-
i0.ɵɵtemplate(32, RecipeDetailsComponent_div_0_div_32_Template, 5, 8, "div", 30);
|
|
17246
|
+
i0.ɵɵelementStart(31, "div", 29);
|
|
17247
|
+
i0.ɵɵtemplate(32, RecipeDetailsComponent_div_0_ng_miam_recipe_pricing_32_Template, 1, 3, "ng-miam-recipe-pricing", 30);
|
|
17146
17248
|
i0.ɵɵelementEnd();
|
|
17249
|
+
i0.ɵɵtemplate(33, RecipeDetailsComponent_div_0_div_33_Template, 5, 8, "div", 31);
|
|
17147
17250
|
i0.ɵɵelementEnd();
|
|
17148
17251
|
i0.ɵɵelementEnd();
|
|
17149
|
-
i0.ɵɵelementStart(33, "div", 31);
|
|
17150
|
-
i0.ɵɵelementStart(34, "div");
|
|
17151
|
-
i0.ɵɵtemplate(35, RecipeDetailsComponent_div_0_div_35_Template, 2, 1, "div", 32);
|
|
17152
17252
|
i0.ɵɵelementEnd();
|
|
17253
|
+
i0.ɵɵelementStart(34, "div", 32);
|
|
17254
|
+
i0.ɵɵelementStart(35, "div");
|
|
17153
17255
|
i0.ɵɵtemplate(36, RecipeDetailsComponent_div_0_div_36_Template, 2, 1, "div", 33);
|
|
17154
|
-
i0.ɵɵtemplate(37, RecipeDetailsComponent_div_0_ng_miam_recipe_details_infos_37_Template, 1, 4, "ng-miam-recipe-details-infos", 25);
|
|
17155
|
-
i0.ɵɵelementStart(38, "ng-miam-recipe-details-ingredients", 34);
|
|
17156
|
-
i0.ɵɵlistener("guestsUpdated", function RecipeDetailsComponent_div_0_Template_ng_miam_recipe_details_ingredients_guestsUpdated_38_listener() { i0.ɵɵrestoreView(_r30_1); var ctx_r32 = i0.ɵɵnextContext(); return ctx_r32.updateGuests(); });
|
|
17157
17256
|
i0.ɵɵelementEnd();
|
|
17158
|
-
i0.ɵɵtemplate(
|
|
17159
|
-
i0.ɵɵ
|
|
17160
|
-
i0.ɵɵ
|
|
17257
|
+
i0.ɵɵtemplate(37, RecipeDetailsComponent_div_0_div_37_Template, 2, 1, "div", 34);
|
|
17258
|
+
i0.ɵɵtemplate(38, RecipeDetailsComponent_div_0_ng_miam_recipe_details_infos_38_Template, 1, 4, "ng-miam-recipe-details-infos", 26);
|
|
17259
|
+
i0.ɵɵelementStart(39, "ng-miam-recipe-details-ingredients", 35);
|
|
17260
|
+
i0.ɵɵlistener("guestsUpdated", function RecipeDetailsComponent_div_0_Template_ng_miam_recipe_details_ingredients_guestsUpdated_39_listener() { i0.ɵɵrestoreView(_r31_1); var ctx_r33 = i0.ɵɵnextContext(); return ctx_r33.updateGuests(); });
|
|
17261
|
+
i0.ɵɵelementEnd();
|
|
17262
|
+
i0.ɵɵtemplate(40, RecipeDetailsComponent_div_0_ng_miam_recipe_details_steps_40_Template, 1, 1, "ng-miam-recipe-details-steps", 27);
|
|
17263
|
+
i0.ɵɵelementStart(41, "a", 36);
|
|
17264
|
+
i0.ɵɵelement(42, "img", 37);
|
|
17161
17265
|
i0.ɵɵelementEnd();
|
|
17162
17266
|
i0.ɵɵelementEnd();
|
|
17163
17267
|
i0.ɵɵelementEnd();
|
|
@@ -17178,8 +17282,10 @@
|
|
|
17178
17282
|
i0.ɵɵproperty("ngIf", !ctx_r0.showVideo);
|
|
17179
17283
|
i0.ɵɵadvance(1);
|
|
17180
17284
|
i0.ɵɵproperty("ngIf", ctx_r0.showVideo && ctx_r0.playerWidth);
|
|
17285
|
+
i0.ɵɵadvance(1);
|
|
17286
|
+
i0.ɵɵproperty("ngIf", ctx_r0.recipe.filigraneLogoUrl);
|
|
17181
17287
|
i0.ɵɵadvance(3);
|
|
17182
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
17288
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(24, 27, ctx_r0.userService.isLogged$));
|
|
17183
17289
|
i0.ɵɵadvance(2);
|
|
17184
17290
|
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r0.icon.Print);
|
|
17185
17291
|
i0.ɵɵadvance(2);
|
|
@@ -17210,9 +17316,9 @@
|
|
|
17210
17316
|
}
|
|
17211
17317
|
function RecipeDetailsComponent_ng_template_1_Template(rf, ctx) {
|
|
17212
17318
|
if (rf & 1) {
|
|
17213
|
-
var
|
|
17214
|
-
i0.ɵɵelementStart(0, "ng-miam-recipe-addon",
|
|
17215
|
-
i0.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_template_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0.ɵɵrestoreView(
|
|
17319
|
+
var _r35_1 = i0.ɵɵgetCurrentView();
|
|
17320
|
+
i0.ɵɵelementStart(0, "ng-miam-recipe-addon", 56);
|
|
17321
|
+
i0.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_template_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0.ɵɵrestoreView(_r35_1); var ctx_r34 = i0.ɵɵnextContext(); return ctx_r34.toggleAddon(); });
|
|
17216
17322
|
i0.ɵɵelementEnd();
|
|
17217
17323
|
}
|
|
17218
17324
|
if (rf & 2) {
|
|
@@ -17427,16 +17533,16 @@
|
|
|
17427
17533
|
var _t;
|
|
17428
17534
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.topContainerImg = _t.first);
|
|
17429
17535
|
}
|
|
17430
|
-
}, inputs: { recipe: "recipe", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText", recipeAddedToastText: "recipeAddedToastText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "miam-recipe-details", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details"], ["mainContainer", ""], [1, "miam-recipe-details__header"], [1, "miam-recipe-details__bookmark"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg", 4, "ngIf", "ngIfElse"], ["stamp", ""], [1, "miam-recipe-details__title"], [4, "ngIf"], [1, "miam-recipe-details__header__link", 3, "href"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__summary"], ["topContainerImg", ""], [1, "miam-recipe-details__summary__container"], [1, "miam-recipe-details__sponsor"], [3, "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__picture"], [3, "src", "ngClass", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__actionbar"], [1, "miam-recipe-details__actionbar__group"], ["class", "miam-recipe-details__actions__icon like", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", "print", 3, "width", "height", "iconName", "click"], ["primaryColor", "var(--m-color-grey02)", "secondaryColor", "var(--m-color-grey07)", 1, "miam-recipe-details__actions__icon", "help", 3, "width", "height", "iconName", "click"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced", 4, "ngIf"], [3, "recipe", 4, "ngIf"], [1, "miam-recipe-details__action__container"], [1, "miam-recipe-details__price"], [3, "recipe", "serves", "guestsText", 4, "ngIf"], ["class", "miam-recipe-details__addbasket", 3, "ngClass", "click", 4, "ngIf"], ["id", "miam-recipe-details__content", 1, "miam-recipe-details__content"], ["class", "miam-recipe-details__title", "id", "miam-recipe-details__title", 4, "ngIf"], ["class", "miam-recipe-details__content__description", 4, "ngIf"], [3, "recipe", "ingredientsPictures", "guestsUpdated"], [1, "miam-recipe-details__content__image", 3, "href"], [3, "src"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-stamp.svg"], [3, "recipe", "showAddon"], [3, "src", "ngClass"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__actions__icon", "like", 3, "recipe", "originTrace", "width", "height"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced"], [3, "recipe"], [3, "recipe", "serves", "guestsText"], [1, "miam-recipe-details__addbasket", 3, "ngClass", "click"], ["class", "miam-recipe-details__addbasket__cta", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-recipe-details__addbasket__cta"], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], ["id", "miam-recipe-details__title", 1, "miam-recipe-details__title"], [1, "miam-recipe-details__content__description"], [3, "recipe", "hideAddon"]], template: function RecipeDetailsComponent_Template(rf, ctx) {
|
|
17536
|
+
}, inputs: { recipe: "recipe", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayAddedOnPicture: "displayAddedOnPicture", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText", recipeAddedToastText: "recipeAddedToastText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "miam-recipe-details", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details"], ["mainContainer", ""], [1, "miam-recipe-details__header"], [1, "miam-recipe-details__bookmark"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg", 4, "ngIf", "ngIfElse"], ["stamp", ""], [1, "miam-recipe-details__title"], [4, "ngIf"], [1, "miam-recipe-details__header__link", 3, "href"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__summary"], ["topContainerImg", ""], [1, "miam-recipe-details__summary__container"], [1, "miam-recipe-details__sponsor"], [3, "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__picture"], [3, "src", "ngClass", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__actionbar"], [1, "miam-recipe-details__actionbar__group"], ["class", "miam-recipe-details__actions__icon like", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", "print", 3, "width", "height", "iconName", "click"], ["primaryColor", "var(--m-color-grey02)", "secondaryColor", "var(--m-color-grey07)", 1, "miam-recipe-details__actions__icon", "help", 3, "width", "height", "iconName", "click"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced", 4, "ngIf"], [3, "recipe", 4, "ngIf"], [1, "miam-recipe-details__action__container"], [1, "miam-recipe-details__price"], [3, "recipe", "serves", "guestsText", 4, "ngIf"], ["class", "miam-recipe-details__addbasket", 3, "ngClass", "click", 4, "ngIf"], ["id", "miam-recipe-details__content", 1, "miam-recipe-details__content"], ["class", "miam-recipe-details__title", "id", "miam-recipe-details__title", 4, "ngIf"], ["class", "miam-recipe-details__content__description", 4, "ngIf"], [3, "recipe", "ingredientsPictures", "guestsUpdated"], [1, "miam-recipe-details__content__image", 3, "href"], [3, "src"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-stamp.svg"], [3, "recipe", "showAddon"], [3, "src", "ngClass"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__filigrane"], [1, "miam-recipe-details__actions__icon", "like", 3, "recipe", "originTrace", "width", "height"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced"], [3, "recipe"], [3, "recipe", "serves", "guestsText"], [1, "miam-recipe-details__addbasket", 3, "ngClass", "click"], ["class", "miam-recipe-details__addbasket__cta", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-recipe-details__addbasket__cta"], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], ["id", "miam-recipe-details__title", 1, "miam-recipe-details__title"], [1, "miam-recipe-details__content__description"], [3, "recipe", "hideAddon"]], template: function RecipeDetailsComponent_Template(rf, ctx) {
|
|
17431
17537
|
if (rf & 1) {
|
|
17432
|
-
i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template,
|
|
17538
|
+
i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 43, 29, "div", 0);
|
|
17433
17539
|
i0.ɵɵtemplate(1, RecipeDetailsComponent_ng_template_1_Template, 1, 1, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
17434
17540
|
}
|
|
17435
17541
|
if (rf & 2) {
|
|
17436
17542
|
var _r1 = i0.ɵɵreference(2);
|
|
17437
17543
|
i0.ɵɵproperty("ngIf", ctx.showDetail)("ngIfElse", _r1);
|
|
17438
17544
|
}
|
|
17439
|
-
}, directives: [i4.NgIf, IconComponent, RecipeDetailsIngredientsComponent, AddonLinkComponent, i4.NgClass, i8.YouTubePlayer, LikeButtonComponent, RecipeDetailsInfosComponent, RecipeDetailsStepsComponent, RecipePricingComponent, LoaderComponent, RecipeAddonComponent], pipes: [i4.AsyncPipe], styles: [".miam-recipe-details{display:flex;flex-direction:column;height:100vh;width:100%}.miam-recipe-details .miam-recipe-details__title{font-size:32px;font-weight:700;line-height:40px;margin-left:112px;max-width:calc(100% - 352px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.miam-recipe-details .miam-recipe-details__header{align-items:center;background-color:var(--m-color-white);box-shadow:0 1px 0 #e9e9e9;display:flex;flex-direction:row;height:80px;justify-content:space-between;position:relative;width:100%}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__bookmark{height:126px;left:20px;position:absolute;top:0;width:72px;z-index:1}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__bookmark img{height:100%}}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__header__link{cursor:pointer;font-size:14px;line-height:20px;margin-right:64px}.miam-recipe-details .miam-recipe-details__container{display:flex;flex-direction:row;height:calc(100% - 80px);width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary{border-right:1px solid #e9e9e9;display:flex;margin-bottom:80px;width:60%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container{display:flex;flex-direction:column;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture{height:auto;max-height:48vh;position:relative;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img{-o-object-fit:cover;height:100%;object-fit:cover;width:100%}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img{max-height:calc(100vh - 396px)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.sponsor{max-height:calc(100vh - 504px)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.tags{max-height:calc(100vh - 476px)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.sponsor.tags{max-height:calc(100vh - 584px)}}@media (min-width:1023px) and (max-height:816px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.sponsor.tags{max-height:232px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar{background-color:var(--m-color-white);display:flex;filter:drop-shadow(0 8px 28px rgba(0,0,0,.07));flex-direction:row;justify-content:space-between}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar{display:none}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar .miam-recipe-details__actionbar__group{display:flex;flex-direction:row}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar .miam-recipe-details__actionbar__group .miam-recipe-details__actions__icon{-webkit-tap-highlight-color:transparent;align-items:center;cursor:pointer;display:flex;height:40px;justify-content:center;margin:8px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container{background-color:var(--m-color-white);bottom:0;box-shadow:0 -1px 0 #e9e9e9,0 1px 0 #e9e9e9;display:flex;flex-direction:row;height:80px;left:0;position:absolute;right:40%}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container{display:none}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;position:relative;width:34%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper{color:var(--m-color-primary);flex-direction:row}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper{display:flex;flex-direction:column}}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:14px;margin-left:12px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket{align-items:center;background-color:var(--m-color-secondary);color:var(--m-color-white);cursor:pointer;display:flex;font-size:19px;font-weight:700;justify-content:center;width:66%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket .miam-recipe-details__addbasket__cta{display:flex;flex-direction:row}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket{display:none}}@media (min-width:1022px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket:hover{background-color:var(--m-color-secondary-dark)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket ng-miam-icon{margin-left:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket .miam-loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:24px;width:24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content{background-color:var(--m-color-white);display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:24px 24px 0;width:40%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__description{color:var(--m-color-grey-text-dark);display:flex;flex-direction:column;font-size:16px;line-height:20px;margin-bottom:40px;text-align:left;word-break:break-word}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content ng-miam-recipe-details-ingredients{margin-bottom:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__image,.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__image img{width:100%}@media print{.miam-recipe-details{height:unset!important}}@media (max-width:1023px){.miam-recipe-details .miam-recipe-details__header{height:48px}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__bookmark{left:16px;top:4px}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__title{font-size:16px;font-weight:900;line-height:20px;margin-left:64px;max-width:calc(100% - 200px)}}@media print and (max-width:1023px){.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__title{margin-left:112px}}@media (max-width:1023px){.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__header__link{display:none}.miam-recipe-details .miam-recipe-details__container{flex-direction:column;overflow-y:auto}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary{height:100%;margin-bottom:8px;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar{filter:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container{position:fixed;right:0;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content{height:100%;overflow-y:unset;padding:0 24px;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;font-size:24px;line-height:28px;margin:0;max-width:unset;overflow:hidden;text-overflow:ellipsis;white-space:unset;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__description{margin:16px 0 0}}"], encapsulation: 2, changeDetection: 0 });
|
|
17545
|
+
}, directives: [i4.NgIf, IconComponent, RecipeDetailsIngredientsComponent, AddonLinkComponent, i4.NgClass, i8.YouTubePlayer, LikeButtonComponent, RecipeDetailsInfosComponent, RecipeDetailsStepsComponent, RecipePricingComponent, LoaderComponent, RecipeAddonComponent], pipes: [i4.AsyncPipe], styles: [".miam-recipe-details{display:flex;flex-direction:column;height:100vh;width:100%}.miam-recipe-details .miam-recipe-details__title{font-size:32px;font-weight:700;line-height:40px;margin-left:112px;max-width:calc(100% - 352px);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.miam-recipe-details .miam-recipe-details__header{align-items:center;background-color:var(--m-color-white);box-shadow:0 1px 0 #e9e9e9;display:flex;flex-direction:row;height:80px;justify-content:space-between;position:relative;width:100%}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__bookmark{height:126px;left:20px;position:absolute;top:0;width:72px;z-index:1}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__bookmark img{height:100%}}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__header__link{cursor:pointer;font-size:14px;line-height:20px;margin-right:64px}.miam-recipe-details .miam-recipe-details__container{display:flex;flex-direction:row;height:calc(100% - 80px);width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary{border-right:1px solid #e9e9e9;display:flex;margin-bottom:80px;width:60%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container{display:flex;flex-direction:column;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture{height:auto;max-height:48vh;position:relative;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img{-o-object-fit:cover;height:100%;object-fit:cover;width:100%}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img{max-height:calc(100vh - 396px)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.sponsor{max-height:calc(100vh - 504px)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.tags{max-height:calc(100vh - 476px)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.sponsor.tags{max-height:calc(100vh - 584px)}}@media (min-width:1023px) and (max-height:816px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture img.sponsor.tags{max-height:232px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture .miam-recipe-details__picture__filigrane{align-items:flex-end;bottom:16px;display:flex;height:64px;justify-content:flex-end;order:2;position:absolute;right:16px;width:124px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__picture .miam-recipe-details__picture__filigrane img{-o-object-fit:contain;height:auto;max-height:100%;max-width:100%;object-fit:contain;width:auto}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar{background-color:var(--m-color-white);display:flex;filter:drop-shadow(0 8px 28px rgba(0,0,0,.07));flex-direction:row;justify-content:space-between}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar{display:none}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar .miam-recipe-details__actionbar__group{display:flex;flex-direction:row}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar .miam-recipe-details__actionbar__group .miam-recipe-details__actions__icon{-webkit-tap-highlight-color:transparent;align-items:center;cursor:pointer;display:flex;height:40px;justify-content:center;margin:8px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container{background-color:var(--m-color-white);bottom:0;box-shadow:0 -1px 0 #e9e9e9,0 1px 0 #e9e9e9;display:flex;flex-direction:row;height:80px;left:0;position:absolute;right:40%}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container{display:none}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price{align-items:center;display:flex;flex-direction:column;height:100%;justify-content:center;position:relative;width:34%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper{color:var(--m-color-primary);flex-direction:row}@media (max-width:1022px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper{display:flex;flex-direction:column}}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper{display:none}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__price .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:14px;margin-left:12px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket{align-items:center;background-color:var(--m-color-secondary);color:var(--m-color-white);cursor:pointer;display:flex;font-size:19px;font-weight:700;justify-content:center;width:66%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket .miam-recipe-details__addbasket__cta{display:flex;flex-direction:row}@media print{.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket{display:none}}@media (min-width:1022px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket:hover{background-color:var(--m-color-secondary-dark)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket ng-miam-icon{margin-left:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container .miam-recipe-details__addbasket .miam-loader{border:var(--m-loader-thickness) solid transparent;border-top:var(--m-loader-thickness) solid var(--m-color-white);height:24px;width:24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content{background-color:var(--m-color-white);display:flex;flex-direction:column;height:100%;overflow-y:auto;padding:24px 24px 0;width:40%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__description{color:var(--m-color-grey-text-dark);display:flex;flex-direction:column;font-size:16px;line-height:20px;margin-bottom:40px;text-align:left;word-break:break-word}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content ng-miam-recipe-details-ingredients{margin-bottom:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__image,.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__image img{width:100%}@media print{.miam-recipe-details{height:unset!important}}@media (max-width:1023px){.miam-recipe-details .miam-recipe-details__header{height:48px}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__bookmark{left:16px;top:4px}.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__title{font-size:16px;font-weight:900;line-height:20px;margin-left:64px;max-width:calc(100% - 200px)}}@media print and (max-width:1023px){.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__title{margin-left:112px}}@media (max-width:1023px){.miam-recipe-details .miam-recipe-details__header .miam-recipe-details__header__link{display:none}.miam-recipe-details .miam-recipe-details__container{flex-direction:column;overflow-y:auto}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary{height:100%;margin-bottom:8px;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__actionbar{filter:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__summary .miam-recipe-details__summary__container .miam-recipe-details__action__container{position:fixed;right:0;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content{height:100%;overflow-y:unset;padding:0 24px;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;font-size:24px;line-height:28px;margin:0;max-width:unset;overflow:hidden;text-overflow:ellipsis;white-space:unset;width:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__content .miam-recipe-details__content__description{margin:16px 0 0}}"], encapsulation: 2, changeDetection: 0 });
|
|
17440
17546
|
/*@__PURE__*/ (function () {
|
|
17441
17547
|
i0.ɵsetClassMetadata(RecipeDetailsComponent, [{
|
|
17442
17548
|
type: i0.Component,
|
|
@@ -17694,6 +17800,7 @@
|
|
|
17694
17800
|
_this.primaryActionText = 'Enregistrer la recette';
|
|
17695
17801
|
_this.secondaryButtonDisable = false; // If true, disable the secondaryButton while there are no changes in the form
|
|
17696
17802
|
_this.customSubmitCallback = false; // If true, emit recipeChange to let the parent handle recipe saving
|
|
17803
|
+
_this.isLocalImage = false;
|
|
17697
17804
|
_this.icon = exports.Icon;
|
|
17698
17805
|
_this.dificulties = ['facile', 'moyen', 'difficile'];
|
|
17699
17806
|
_this.iconsDificulties = [_this.icon.DifficultyLow, _this.icon.DifficultyMedium, _this.icon.DifficultyHigh];
|
|
@@ -17834,6 +17941,7 @@
|
|
|
17834
17941
|
ingredients: this.initIngredientFormArray(recipe),
|
|
17835
17942
|
steps: this.initStepFormArray(recipe)
|
|
17836
17943
|
});
|
|
17944
|
+
this.initIsLocalImage();
|
|
17837
17945
|
this.formSubscription = this.recipeForm.valueChanges.subscribe(function () {
|
|
17838
17946
|
_this.cdr.detectChanges();
|
|
17839
17947
|
});
|
|
@@ -18005,6 +18113,12 @@
|
|
|
18005
18113
|
formMedia.patchValue('https://storage.googleapis.com/assets.miam.tech/generic/personal-recipes/default_img_personal_recipe.jpg');
|
|
18006
18114
|
}
|
|
18007
18115
|
};
|
|
18116
|
+
RecipeFormComponent.prototype.initIsLocalImage = function () {
|
|
18117
|
+
var _a, _b, _c, _d;
|
|
18118
|
+
if (((_b = (_a = this.recipeForm) === null || _a === void 0 ? void 0 : _a.get('attributes')) === null || _b === void 0 ? void 0 : _b.get('media-url').value) != null) {
|
|
18119
|
+
this.isLocalImage = (_d = (_c = this.recipeForm) === null || _c === void 0 ? void 0 : _c.get('attributes')) === null || _d === void 0 ? void 0 : _d.get('media-url').value.startsWith("data:image");
|
|
18120
|
+
}
|
|
18121
|
+
};
|
|
18008
18122
|
return RecipeFormComponent;
|
|
18009
18123
|
}(EventTracerComponent));
|
|
18010
18124
|
RecipeFormComponent.ɵfac = function RecipeFormComponent_Factory(t) { return new (t || RecipeFormComponent)(i0.ɵɵdirectiveInject(i13.FormBuilder), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipeProviderService), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(RecipeTypeService), i0.ɵɵdirectiveInject(IngredientsService), i0.ɵɵdirectiveInject(RecipeStepsService), i0.ɵɵdirectiveInject(i1$2.MediaMatcher), i0.ɵɵdirectiveInject(RecipeStatusService), i0.ɵɵdirectiveInject(AnalyticsService)); };
|
|
@@ -18541,39 +18655,39 @@
|
|
|
18541
18655
|
var _c2$5 = ["step"];
|
|
18542
18656
|
function RecipeStepperComponent_ng_container_28_div_16_div_4_Template(rf, ctx) {
|
|
18543
18657
|
if (rf & 1) {
|
|
18544
|
-
var
|
|
18545
|
-
i0.ɵɵelementStart(0, "div",
|
|
18546
|
-
i0.ɵɵelementStart(1, "span",
|
|
18658
|
+
var _r19_1 = i0.ɵɵgetCurrentView();
|
|
18659
|
+
i0.ɵɵelementStart(0, "div", 49);
|
|
18660
|
+
i0.ɵɵelementStart(1, "span", 50);
|
|
18547
18661
|
i0.ɵɵtext(2);
|
|
18548
18662
|
i0.ɵɵelementEnd();
|
|
18549
|
-
i0.ɵɵelementStart(3, "ng-miam-icon",
|
|
18550
|
-
i0.ɵɵlistener("click", function RecipeStepperComponent_ng_container_28_div_16_div_4_Template_ng_miam_icon_click_3_listener() { i0.ɵɵrestoreView(
|
|
18663
|
+
i0.ɵɵelementStart(3, "ng-miam-icon", 51);
|
|
18664
|
+
i0.ɵɵlistener("click", function RecipeStepperComponent_ng_container_28_div_16_div_4_Template_ng_miam_icon_click_3_listener() { i0.ɵɵrestoreView(_r19_1); var tag_r17 = ctx.$implicit; var ctx_r18 = i0.ɵɵnextContext(3); return ctx_r18.removeTag(tag_r17); });
|
|
18551
18665
|
i0.ɵɵelementEnd();
|
|
18552
18666
|
i0.ɵɵelementEnd();
|
|
18553
18667
|
}
|
|
18554
18668
|
if (rf & 2) {
|
|
18555
|
-
var
|
|
18556
|
-
var
|
|
18557
|
-
i0.ɵɵproperty("ngClass",
|
|
18669
|
+
var tag_r17 = ctx.$implicit;
|
|
18670
|
+
var ctx_r16 = i0.ɵɵnextContext(3);
|
|
18671
|
+
i0.ɵɵproperty("ngClass", ctx_r16.tagClass(tag_r17));
|
|
18558
18672
|
i0.ɵɵadvance(2);
|
|
18559
|
-
i0.ɵɵtextInterpolate(
|
|
18673
|
+
i0.ɵɵtextInterpolate(tag_r17.attributes.name);
|
|
18560
18674
|
i0.ɵɵadvance(1);
|
|
18561
|
-
i0.ɵɵproperty("iconName",
|
|
18675
|
+
i0.ɵɵproperty("iconName", ctx_r16.icon.Clear);
|
|
18562
18676
|
}
|
|
18563
18677
|
}
|
|
18564
18678
|
function RecipeStepperComponent_ng_container_28_div_16_Template(rf, ctx) {
|
|
18565
18679
|
if (rf & 1) {
|
|
18566
|
-
var
|
|
18567
|
-
i0.ɵɵelementStart(0, "div",
|
|
18568
|
-
i0.ɵɵelementStart(1, "span",
|
|
18680
|
+
var _r21_1 = i0.ɵɵgetCurrentView();
|
|
18681
|
+
i0.ɵɵelementStart(0, "div", 44);
|
|
18682
|
+
i0.ɵɵelementStart(1, "span", 45);
|
|
18569
18683
|
i0.ɵɵtext(2, "Tags");
|
|
18570
18684
|
i0.ɵɵelementEnd();
|
|
18571
|
-
i0.ɵɵelementStart(3, "div",
|
|
18572
|
-
i0.ɵɵtemplate(4, RecipeStepperComponent_ng_container_28_div_16_div_4_Template, 4, 3, "div",
|
|
18685
|
+
i0.ɵɵelementStart(3, "div", 46);
|
|
18686
|
+
i0.ɵɵtemplate(4, RecipeStepperComponent_ng_container_28_div_16_div_4_Template, 4, 3, "div", 47);
|
|
18573
18687
|
i0.ɵɵelementEnd();
|
|
18574
18688
|
i0.ɵɵelementStart(5, "button", 4);
|
|
18575
|
-
i0.ɵɵlistener("click", function RecipeStepperComponent_ng_container_28_div_16_Template_button_click_5_listener() { i0.ɵɵrestoreView(
|
|
18576
|
-
i0.ɵɵelement(6, "ng-miam-icon",
|
|
18689
|
+
i0.ɵɵlistener("click", function RecipeStepperComponent_ng_container_28_div_16_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r21_1); var ctx_r20 = i0.ɵɵnextContext(2); return ctx_r20.displayTagsSelector(true); });
|
|
18690
|
+
i0.ɵɵelement(6, "ng-miam-icon", 48);
|
|
18577
18691
|
i0.ɵɵelementStart(7, "span");
|
|
18578
18692
|
i0.ɵɵtext(8, "Ajouter");
|
|
18579
18693
|
i0.ɵɵelementEnd();
|
|
@@ -18588,77 +18702,90 @@
|
|
|
18588
18702
|
i0.ɵɵproperty("iconName", ctx_r8.icon.Plus);
|
|
18589
18703
|
}
|
|
18590
18704
|
}
|
|
18591
|
-
function
|
|
18705
|
+
function RecipeStepperComponent_ng_container_28_input_22_Template(rf, ctx) {
|
|
18592
18706
|
if (rf & 1) {
|
|
18593
|
-
i0.ɵɵ
|
|
18594
|
-
i0.ɵɵ
|
|
18595
|
-
i0.ɵɵ
|
|
18596
|
-
i0.ɵɵelement(3, "ng-miam-time-picker", 54);
|
|
18707
|
+
var _r23_1 = i0.ɵɵgetCurrentView();
|
|
18708
|
+
i0.ɵɵelementStart(0, "input", 52);
|
|
18709
|
+
i0.ɵɵlistener("input", function RecipeStepperComponent_ng_container_28_input_22_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r23_1); var ctx_r22 = i0.ɵɵnextContext(2); return ctx_r22.updateImage($event); });
|
|
18597
18710
|
i0.ɵɵelementEnd();
|
|
18598
18711
|
}
|
|
18599
18712
|
if (rf & 2) {
|
|
18600
18713
|
var ctx_r10 = i0.ɵɵnextContext(2);
|
|
18601
18714
|
var tmp_0_0 = null;
|
|
18715
|
+
i0.ɵɵproperty("value", ctx_r10.isLocalImage ? "" : ctx_r10.recipeForm == null ? null : (tmp_0_0 = ctx_r10.recipeForm.get("attributes")) == null ? null : tmp_0_0.get("media-url").value);
|
|
18716
|
+
}
|
|
18717
|
+
}
|
|
18718
|
+
function RecipeStepperComponent_ng_container_28_div_33_Template(rf, ctx) {
|
|
18719
|
+
if (rf & 1) {
|
|
18720
|
+
i0.ɵɵelementStart(0, "div", 53);
|
|
18721
|
+
i0.ɵɵelement(1, "ng-miam-time-picker", 54);
|
|
18722
|
+
i0.ɵɵelement(2, "ng-miam-time-picker", 55);
|
|
18723
|
+
i0.ɵɵelement(3, "ng-miam-time-picker", 56);
|
|
18724
|
+
i0.ɵɵelementEnd();
|
|
18725
|
+
}
|
|
18726
|
+
if (rf & 2) {
|
|
18727
|
+
var ctx_r11 = i0.ɵɵnextContext(2);
|
|
18728
|
+
var tmp_0_0 = null;
|
|
18602
18729
|
var tmp_2_0 = null;
|
|
18603
18730
|
var tmp_4_0 = null;
|
|
18604
18731
|
i0.ɵɵadvance(1);
|
|
18605
|
-
i0.ɵɵproperty("formControl",
|
|
18732
|
+
i0.ɵɵproperty("formControl", ctx_r11.recipeForm == null ? null : (tmp_0_0 = ctx_r11.recipeForm.get("attributes")) == null ? null : tmp_0_0.get("preparation-time"))("icon", ctx_r11.icon.Time);
|
|
18606
18733
|
i0.ɵɵadvance(1);
|
|
18607
|
-
i0.ɵɵproperty("formControl",
|
|
18734
|
+
i0.ɵɵproperty("formControl", ctx_r11.recipeForm == null ? null : (tmp_2_0 = ctx_r11.recipeForm.get("attributes")) == null ? null : tmp_2_0.get("cooking-time"))("icon", ctx_r11.icon.Hot);
|
|
18608
18735
|
i0.ɵɵadvance(1);
|
|
18609
|
-
i0.ɵɵproperty("formControl",
|
|
18736
|
+
i0.ɵɵproperty("formControl", ctx_r11.recipeForm == null ? null : (tmp_4_0 = ctx_r11.recipeForm.get("attributes")) == null ? null : tmp_4_0.get("resting-time"))("icon", ctx_r11.icon.Wait);
|
|
18610
18737
|
}
|
|
18611
18738
|
}
|
|
18612
18739
|
var _c3$2 = function (a0) { return { "active": a0 }; };
|
|
18613
|
-
function
|
|
18740
|
+
function RecipeStepperComponent_ng_container_28_div_40_Template(rf, ctx) {
|
|
18614
18741
|
if (rf & 1) {
|
|
18615
|
-
var
|
|
18616
|
-
i0.ɵɵelementStart(0, "div",
|
|
18617
|
-
i0.ɵɵelementStart(1, "button",
|
|
18618
|
-
i0.ɵɵlistener("click", function
|
|
18742
|
+
var _r25_1 = i0.ɵɵgetCurrentView();
|
|
18743
|
+
i0.ɵɵelementStart(0, "div", 57);
|
|
18744
|
+
i0.ɵɵelementStart(1, "button", 58);
|
|
18745
|
+
i0.ɵɵlistener("click", function RecipeStepperComponent_ng_container_28_div_40_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r25_1); var ctx_r24 = i0.ɵɵnextContext(2); return ctx_r24.toggleShowIngredient(true); });
|
|
18619
18746
|
i0.ɵɵtext(2, "Ingredients");
|
|
18620
18747
|
i0.ɵɵelementEnd();
|
|
18621
|
-
i0.ɵɵelementStart(3, "button",
|
|
18622
|
-
i0.ɵɵlistener("click", function
|
|
18748
|
+
i0.ɵɵelementStart(3, "button", 58);
|
|
18749
|
+
i0.ɵɵlistener("click", function RecipeStepperComponent_ng_container_28_div_40_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r25_1); var ctx_r26 = i0.ɵɵnextContext(2); return ctx_r26.toggleShowIngredient(false); });
|
|
18623
18750
|
i0.ɵɵtext(4, "Pr\u00E9paration");
|
|
18624
18751
|
i0.ɵɵelementEnd();
|
|
18625
18752
|
i0.ɵɵelementEnd();
|
|
18626
18753
|
}
|
|
18627
18754
|
if (rf & 2) {
|
|
18628
|
-
var
|
|
18755
|
+
var ctx_r13 = i0.ɵɵnextContext(2);
|
|
18629
18756
|
i0.ɵɵadvance(1);
|
|
18630
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c3$2,
|
|
18757
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(2, _c3$2, ctx_r13.showIngredient));
|
|
18631
18758
|
i0.ɵɵadvance(2);
|
|
18632
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c3$2, !
|
|
18759
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c3$2, !ctx_r13.showIngredient));
|
|
18633
18760
|
}
|
|
18634
18761
|
}
|
|
18635
|
-
function
|
|
18762
|
+
function RecipeStepperComponent_ng_container_28_ng_miam_list_input_41_Template(rf, ctx) {
|
|
18636
18763
|
if (rf & 1) {
|
|
18637
|
-
var
|
|
18638
|
-
i0.ɵɵelementStart(0, "ng-miam-list-input",
|
|
18639
|
-
i0.ɵɵlistener("deleteId", function
|
|
18764
|
+
var _r28_1 = i0.ɵɵgetCurrentView();
|
|
18765
|
+
i0.ɵɵelementStart(0, "ng-miam-list-input", 59);
|
|
18766
|
+
i0.ɵɵlistener("deleteId", function RecipeStepperComponent_ng_container_28_ng_miam_list_input_41_Template_ng_miam_list_input_deleteId_0_listener($event) { i0.ɵɵrestoreView(_r28_1); var ctx_r27 = i0.ɵɵnextContext(2); return ctx_r27.addToDeleteIngredientsList($event); })("orderHasChanged", function RecipeStepperComponent_ng_container_28_ng_miam_list_input_41_Template_ng_miam_list_input_orderHasChanged_0_listener() { i0.ɵɵrestoreView(_r28_1); var ctx_r29 = i0.ɵɵnextContext(2); return ctx_r29.cdr.detectChanges(); });
|
|
18640
18767
|
i0.ɵɵelementEnd();
|
|
18641
18768
|
}
|
|
18642
18769
|
if (rf & 2) {
|
|
18643
|
-
var
|
|
18644
|
-
i0.ɵɵproperty("isPersonal", (
|
|
18770
|
+
var ctx_r14 = i0.ɵɵnextContext(2);
|
|
18771
|
+
i0.ɵɵproperty("isPersonal", (ctx_r14.recipe.relationships["recipe-provider"] == null ? null : ctx_r14.recipe.relationships["recipe-provider"].data == null ? null : ctx_r14.recipe.relationships["recipe-provider"].data.id) === "personal")("placeholder", ctx_r14.INGREDIENT_PLACEHOLDER)("instructions", ctx_r14.INGREDIENT_INSTRUCTIONS)("list", ctx_r14.recipeForm.get("ingredients"))("ingredientMode", true)("ingredientsPictures", ctx_r14.ingredientsPictures);
|
|
18645
18772
|
}
|
|
18646
18773
|
}
|
|
18647
|
-
function
|
|
18774
|
+
function RecipeStepperComponent_ng_container_28_ng_miam_list_input_42_Template(rf, ctx) {
|
|
18648
18775
|
if (rf & 1) {
|
|
18649
|
-
var
|
|
18650
|
-
i0.ɵɵelementStart(0, "ng-miam-list-input",
|
|
18651
|
-
i0.ɵɵlistener("deleteId", function
|
|
18776
|
+
var _r31_1 = i0.ɵɵgetCurrentView();
|
|
18777
|
+
i0.ɵɵelementStart(0, "ng-miam-list-input", 60);
|
|
18778
|
+
i0.ɵɵlistener("deleteId", function RecipeStepperComponent_ng_container_28_ng_miam_list_input_42_Template_ng_miam_list_input_deleteId_0_listener($event) { i0.ɵɵrestoreView(_r31_1); var ctx_r30 = i0.ɵɵnextContext(2); return ctx_r30.addToDeleteStepsList($event); })("orderHasChanged", function RecipeStepperComponent_ng_container_28_ng_miam_list_input_42_Template_ng_miam_list_input_orderHasChanged_0_listener() { i0.ɵɵrestoreView(_r31_1); var ctx_r32 = i0.ɵɵnextContext(2); return ctx_r32.cdr.detectChanges(); });
|
|
18652
18779
|
i0.ɵɵelementEnd();
|
|
18653
18780
|
}
|
|
18654
18781
|
if (rf & 2) {
|
|
18655
|
-
var
|
|
18656
|
-
i0.ɵɵproperty("placeholder",
|
|
18782
|
+
var ctx_r15 = i0.ɵɵnextContext(2);
|
|
18783
|
+
i0.ɵɵproperty("placeholder", ctx_r15.STEP_PLACEHOLDER)("list", ctx_r15.recipeForm == null ? null : ctx_r15.recipeForm.get("steps"))("instructions", ctx_r15.STEP_INSTRUCTIONS);
|
|
18657
18784
|
}
|
|
18658
18785
|
}
|
|
18659
18786
|
function RecipeStepperComponent_ng_container_28_Template(rf, ctx) {
|
|
18660
18787
|
if (rf & 1) {
|
|
18661
|
-
var
|
|
18788
|
+
var _r34_1 = i0.ɵɵgetCurrentView();
|
|
18662
18789
|
i0.ɵɵelementContainerStart(0, 19);
|
|
18663
18790
|
i0.ɵɵelementContainerStart(1, 19);
|
|
18664
18791
|
i0.ɵɵelementStart(2, "div", 20, 21);
|
|
@@ -18678,7 +18805,7 @@
|
|
|
18678
18805
|
i0.ɵɵtext(14, "Nombre de convives");
|
|
18679
18806
|
i0.ɵɵelementEnd();
|
|
18680
18807
|
i0.ɵɵelementStart(15, "ng-miam-counter-input", 28);
|
|
18681
|
-
i0.ɵɵlistener("counterChange", function RecipeStepperComponent_ng_container_28_Template_ng_miam_counter_input_counterChange_15_listener($event) { i0.ɵɵrestoreView(
|
|
18808
|
+
i0.ɵɵlistener("counterChange", function RecipeStepperComponent_ng_container_28_Template_ng_miam_counter_input_counterChange_15_listener($event) { i0.ɵɵrestoreView(_r34_1); var ctx_r33 = i0.ɵɵnextContext(); return ctx_r33.changeGuest($event); });
|
|
18682
18809
|
i0.ɵɵelementEnd();
|
|
18683
18810
|
i0.ɵɵelementEnd();
|
|
18684
18811
|
i0.ɵɵtemplate(16, RecipeStepperComponent_ng_container_28_div_16_Template, 9, 2, "div", 29);
|
|
@@ -18687,38 +18814,39 @@
|
|
|
18687
18814
|
i0.ɵɵelementStart(19, "div", 30);
|
|
18688
18815
|
i0.ɵɵelementStart(20, "div", 31);
|
|
18689
18816
|
i0.ɵɵelementStart(21, "ng-miam-drag-drop-input", 32);
|
|
18690
|
-
i0.ɵɵlistener("bigFileDropped", function RecipeStepperComponent_ng_container_28_Template_ng_miam_drag_drop_input_bigFileDropped_21_listener() { i0.ɵɵrestoreView(
|
|
18817
|
+
i0.ɵɵlistener("bigFileDropped", function RecipeStepperComponent_ng_container_28_Template_ng_miam_drag_drop_input_bigFileDropped_21_listener() { i0.ɵɵrestoreView(_r34_1); var ctx_r35 = i0.ɵɵnextContext(); return ctx_r35.displayBigFileWarning(true); })("onFileDropped", function RecipeStepperComponent_ng_container_28_Template_ng_miam_drag_drop_input_onFileDropped_21_listener() { i0.ɵɵrestoreView(_r34_1); var ctx_r36 = i0.ɵɵnextContext(); return ctx_r36.displayBigFileWarning(false); });
|
|
18691
18818
|
i0.ɵɵelementEnd();
|
|
18819
|
+
i0.ɵɵtemplate(22, RecipeStepperComponent_ng_container_28_input_22_Template, 1, 1, "input", 33);
|
|
18692
18820
|
i0.ɵɵelementEnd();
|
|
18693
|
-
i0.ɵɵelementStart(
|
|
18694
|
-
i0.ɵɵelementStart(
|
|
18695
|
-
i0.ɵɵtext(
|
|
18821
|
+
i0.ɵɵelementStart(23, "div", 34);
|
|
18822
|
+
i0.ɵɵelementStart(24, "h1", 35);
|
|
18823
|
+
i0.ɵɵtext(25);
|
|
18696
18824
|
i0.ɵɵelementEnd();
|
|
18697
|
-
i0.ɵɵelementStart(
|
|
18698
|
-
i0.ɵɵtext(
|
|
18825
|
+
i0.ɵɵelementStart(26, "label");
|
|
18826
|
+
i0.ɵɵtext(27, "Description de ma recette");
|
|
18699
18827
|
i0.ɵɵelementEnd();
|
|
18700
|
-
i0.ɵɵelement(
|
|
18701
|
-
i0.ɵɵelementStart(
|
|
18702
|
-
i0.ɵɵtext(
|
|
18703
|
-
i0.ɵɵelementStart(
|
|
18704
|
-
i0.ɵɵtext(
|
|
18828
|
+
i0.ɵɵelement(28, "textarea", 36);
|
|
18829
|
+
i0.ɵɵelementStart(29, "div", 37);
|
|
18830
|
+
i0.ɵɵtext(30);
|
|
18831
|
+
i0.ɵɵelementStart(31, "span");
|
|
18832
|
+
i0.ɵɵtext(32, "/ 250");
|
|
18705
18833
|
i0.ɵɵelementEnd();
|
|
18706
18834
|
i0.ɵɵelementEnd();
|
|
18707
18835
|
i0.ɵɵelementEnd();
|
|
18708
18836
|
i0.ɵɵelementEnd();
|
|
18709
|
-
i0.ɵɵtemplate(
|
|
18710
|
-
i0.ɵɵelementStart(
|
|
18711
|
-
i0.ɵɵelementStart(
|
|
18712
|
-
i0.ɵɵtext(
|
|
18837
|
+
i0.ɵɵtemplate(33, RecipeStepperComponent_ng_container_28_div_33_Template, 4, 6, "div", 38);
|
|
18838
|
+
i0.ɵɵelementStart(34, "div", 39);
|
|
18839
|
+
i0.ɵɵelementStart(35, "label");
|
|
18840
|
+
i0.ɵɵtext(36, "Niveau de difficult\u00E9 de la recette");
|
|
18713
18841
|
i0.ɵɵelementEnd();
|
|
18714
|
-
i0.ɵɵelement(
|
|
18842
|
+
i0.ɵɵelement(37, "ng-miam-slider", 40);
|
|
18715
18843
|
i0.ɵɵelementEnd();
|
|
18716
18844
|
i0.ɵɵelementEnd();
|
|
18717
18845
|
i0.ɵɵelementContainerEnd();
|
|
18718
|
-
i0.ɵɵelementStart(
|
|
18719
|
-
i0.ɵɵtemplate(
|
|
18720
|
-
i0.ɵɵtemplate(
|
|
18721
|
-
i0.ɵɵtemplate(
|
|
18846
|
+
i0.ɵɵelementStart(38, "div", 20, 21);
|
|
18847
|
+
i0.ɵɵtemplate(40, RecipeStepperComponent_ng_container_28_div_40_Template, 5, 6, "div", 41);
|
|
18848
|
+
i0.ɵɵtemplate(41, RecipeStepperComponent_ng_container_28_ng_miam_list_input_41_Template, 1, 6, "ng-miam-list-input", 42);
|
|
18849
|
+
i0.ɵɵtemplate(42, RecipeStepperComponent_ng_container_28_ng_miam_list_input_42_Template, 1, 3, "ng-miam-list-input", 43);
|
|
18722
18850
|
i0.ɵɵelementEnd();
|
|
18723
18851
|
i0.ɵɵelementContainerEnd();
|
|
18724
18852
|
}
|
|
@@ -18731,12 +18859,12 @@
|
|
|
18731
18859
|
var tmp_7_0 = null;
|
|
18732
18860
|
var tmp_8_0 = null;
|
|
18733
18861
|
var tmp_8_1 = null;
|
|
18734
|
-
var tmp_11_0 = null;
|
|
18735
|
-
var tmp_11_1 = null;
|
|
18736
18862
|
var tmp_12_0 = null;
|
|
18863
|
+
var tmp_12_1 = null;
|
|
18737
18864
|
var tmp_13_0 = null;
|
|
18738
|
-
var
|
|
18739
|
-
var
|
|
18865
|
+
var tmp_14_0 = null;
|
|
18866
|
+
var tmp_14_1 = null;
|
|
18867
|
+
var tmp_17_0 = null;
|
|
18740
18868
|
i0.ɵɵproperty("formGroup", ctx_r2.recipeForm);
|
|
18741
18869
|
i0.ɵɵadvance(1);
|
|
18742
18870
|
i0.ɵɵproperty("formGroup", ctx_r2.recipeForm == null ? null : ctx_r2.recipeForm.get("attributes"));
|
|
@@ -18750,16 +18878,18 @@
|
|
|
18750
18878
|
i0.ɵɵproperty("ngIf", ctx_r2.displayTags);
|
|
18751
18879
|
i0.ɵɵadvance(5);
|
|
18752
18880
|
i0.ɵɵproperty("buttonText", (ctx_r2.recipeForm == null ? null : (tmp_6_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : (tmp_6_1 = tmp_6_0.get("media-url")) == null ? null : tmp_6_1.value == null ? null : tmp_6_1.value.length) > 0 ? "Modifier la photo (2MB max)" : "Ajouter une photo (2MB max)")("formControl", ctx_r2.recipeForm == null ? null : (tmp_7_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : tmp_7_0.get("media-url"))("imageUrl", ctx_r2.recipeForm == null ? null : (tmp_8_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : (tmp_8_1 = tmp_8_0.get("media-url")) == null ? null : tmp_8_1.value)("photoMode", true)("bigImageWarning", ctx_r2.bigImageWarning);
|
|
18881
|
+
i0.ɵɵadvance(1);
|
|
18882
|
+
i0.ɵɵproperty("ngIf", ctx_r2.isAdmin);
|
|
18753
18883
|
i0.ɵɵadvance(3);
|
|
18754
|
-
i0.ɵɵtextInterpolate(ctx_r2.recipeForm == null ? null : (
|
|
18884
|
+
i0.ɵɵtextInterpolate(ctx_r2.recipeForm == null ? null : (tmp_12_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : (tmp_12_1 = tmp_12_0.get("title")) == null ? null : tmp_12_1.value);
|
|
18755
18885
|
i0.ɵɵadvance(3);
|
|
18756
|
-
i0.ɵɵproperty("formControl", ctx_r2.recipeForm == null ? null : (
|
|
18886
|
+
i0.ɵɵproperty("formControl", ctx_r2.recipeForm == null ? null : (tmp_13_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : tmp_13_0.get("description"));
|
|
18757
18887
|
i0.ɵɵadvance(2);
|
|
18758
|
-
i0.ɵɵtextInterpolate1("", (ctx_r2.recipeForm == null ? null : (
|
|
18888
|
+
i0.ɵɵtextInterpolate1("", (ctx_r2.recipeForm == null ? null : (tmp_14_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : (tmp_14_1 = tmp_14_0.get("description")) == null ? null : tmp_14_1.value == null ? null : tmp_14_1.value.length) || 0, " ");
|
|
18759
18889
|
i0.ɵɵadvance(3);
|
|
18760
18890
|
i0.ɵɵproperty("ngIf", ctx_r2.recipeForm);
|
|
18761
18891
|
i0.ɵɵadvance(4);
|
|
18762
|
-
i0.ɵɵproperty("steps", ctx_r2.dificulties)("formControl", ctx_r2.recipeForm == null ? null : (
|
|
18892
|
+
i0.ɵɵproperty("steps", ctx_r2.dificulties)("formControl", ctx_r2.recipeForm == null ? null : (tmp_17_0 = ctx_r2.recipeForm.get("attributes")) == null ? null : tmp_17_0.get("difficulty"))("icons", ctx_r2.iconsDificulties);
|
|
18763
18893
|
i0.ɵɵadvance(3);
|
|
18764
18894
|
i0.ɵɵproperty("ngIf", ctx_r2.isMobile);
|
|
18765
18895
|
i0.ɵɵadvance(1);
|
|
@@ -18775,9 +18905,9 @@
|
|
|
18775
18905
|
}
|
|
18776
18906
|
function RecipeStepperComponent_ng_miam_tags_selector_36_Template(rf, ctx) {
|
|
18777
18907
|
if (rf & 1) {
|
|
18778
|
-
var
|
|
18779
|
-
i0.ɵɵelementStart(0, "ng-miam-tags-selector",
|
|
18780
|
-
i0.ɵɵlistener("close", function RecipeStepperComponent_ng_miam_tags_selector_36_Template_ng_miam_tags_selector_close_0_listener() { i0.ɵɵrestoreView(
|
|
18908
|
+
var _r38_1 = i0.ɵɵgetCurrentView();
|
|
18909
|
+
i0.ɵɵelementStart(0, "ng-miam-tags-selector", 61);
|
|
18910
|
+
i0.ɵɵlistener("close", function RecipeStepperComponent_ng_miam_tags_selector_36_Template_ng_miam_tags_selector_close_0_listener() { i0.ɵɵrestoreView(_r38_1); var ctx_r37 = i0.ɵɵnextContext(); return ctx_r37.displayTagsSelector(false); })("savedTags", function RecipeStepperComponent_ng_miam_tags_selector_36_Template_ng_miam_tags_selector_savedTags_0_listener($event) { i0.ɵɵrestoreView(_r38_1); var ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.addTags($event); });
|
|
18781
18911
|
i0.ɵɵelementEnd();
|
|
18782
18912
|
}
|
|
18783
18913
|
if (rf & 2) {
|
|
@@ -18787,10 +18917,10 @@
|
|
|
18787
18917
|
}
|
|
18788
18918
|
function RecipeStepperComponent_ng_miam_modal_37_Template(rf, ctx) {
|
|
18789
18919
|
if (rf & 1) {
|
|
18790
|
-
var
|
|
18791
|
-
i0.ɵɵelementStart(0, "ng-miam-modal",
|
|
18792
|
-
i0.ɵɵlistener("close", function RecipeStepperComponent_ng_miam_modal_37_Template_ng_miam_modal_close_0_listener() { i0.ɵɵrestoreView(
|
|
18793
|
-
i0.ɵɵelementStart(1, "span",
|
|
18920
|
+
var _r41_1 = i0.ɵɵgetCurrentView();
|
|
18921
|
+
i0.ɵɵelementStart(0, "ng-miam-modal", 62);
|
|
18922
|
+
i0.ɵɵlistener("close", function RecipeStepperComponent_ng_miam_modal_37_Template_ng_miam_modal_close_0_listener() { i0.ɵɵrestoreView(_r41_1); var ctx_r40 = i0.ɵɵnextContext(); return ctx_r40.displayBigFileWarning(false); })("confirm", function RecipeStepperComponent_ng_miam_modal_37_Template_ng_miam_modal_confirm_0_listener() { i0.ɵɵrestoreView(_r41_1); var ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.displayBigFileWarning(false); });
|
|
18923
|
+
i0.ɵɵelementStart(1, "span", 63);
|
|
18794
18924
|
i0.ɵɵtext(2, "Votre image est trop lourde (la taille doit \u00EAtre inf\u00E9rieure \u00E0 2 Mo). Merci d\u2019en ajouter une plus l\u00E9g\u00E8re.");
|
|
18795
18925
|
i0.ɵɵelementEnd();
|
|
18796
18926
|
i0.ɵɵelementEnd();
|
|
@@ -18898,6 +19028,7 @@
|
|
|
18898
19028
|
};
|
|
18899
19029
|
RecipeStepperComponent.prototype.displayBigFileWarning = function (display) {
|
|
18900
19030
|
this.bigImageWarning = display;
|
|
19031
|
+
this.initIsLocalImage();
|
|
18901
19032
|
this.cdr.detectChanges();
|
|
18902
19033
|
};
|
|
18903
19034
|
RecipeStepperComponent.prototype.displayTagsSelector = function (display) {
|
|
@@ -18908,6 +19039,13 @@
|
|
|
18908
19039
|
this.showIngredient = isShow;
|
|
18909
19040
|
this.cdr.detectChanges();
|
|
18910
19041
|
};
|
|
19042
|
+
RecipeStepperComponent.prototype.updateImage = function (event) {
|
|
19043
|
+
var _a, _b;
|
|
19044
|
+
this.initIsLocalImage();
|
|
19045
|
+
(_b = (_a = this.recipeForm) === null || _a === void 0 ? void 0 : _a.get('attributes')) === null || _b === void 0 ? void 0 : _b.get('media-url').setValue(event.target.value);
|
|
19046
|
+
this.recipeForm.markAsDirty();
|
|
19047
|
+
this.cdr.detectChanges();
|
|
19048
|
+
};
|
|
18911
19049
|
return RecipeStepperComponent;
|
|
18912
19050
|
}(RecipeFormComponent));
|
|
18913
19051
|
RecipeStepperComponent.ɵfac = function RecipeStepperComponent_Factory(t) { return ɵRecipeStepperComponent_BaseFactory(t || RecipeStepperComponent); };
|
|
@@ -18923,7 +19061,7 @@
|
|
|
18923
19061
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.stepperLinks = _t.first);
|
|
18924
19062
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.steps = _t);
|
|
18925
19063
|
}
|
|
18926
|
-
}, inputs: { displayTags: "displayTags", ingredientsPictures: "ingredientsPictures" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 38, vars: 18, consts: [[1, "miam-recipe-stepper__anchor"], ["topAnchor", ""], [1, "miam-recipe-stepper"], [1, "miam-recipe-stepper__padding"], [1, "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-recipe-stepper__links"], ["stepperLinks", ""], [1, "miam-recipe-stepper__link", 3, "ngClass", "click"], [1, "miam-recipe-stepper__link__number"], [1, "m-body-typo", "miam-recipe-stepper__link__name"], [1, "miam-recipe-stepper__link__divider"], [3, "formGroup", 4, "ngIf", "ngIfElse"], ["loading", ""], [1, "miam-recipe-stepper__footer"], [1, "m-button-secondary", 3, "disabled", "click"], [1, "m-button-primary", 3, "disabled", "click"], [3, "display", "currentRecipe", "currentTags", "close", "savedTags", 4, "ngIf"], ["title", "Image trop volumineuse", "
|
|
19064
|
+
}, inputs: { displayTags: "displayTags", ingredientsPictures: "ingredientsPictures" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 38, vars: 18, consts: [[1, "miam-recipe-stepper__anchor"], ["topAnchor", ""], [1, "miam-recipe-stepper"], [1, "miam-recipe-stepper__padding"], [1, "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], [1, "miam-recipe-stepper__links"], ["stepperLinks", ""], [1, "miam-recipe-stepper__link", 3, "ngClass", "click"], [1, "miam-recipe-stepper__link__number"], [1, "m-body-typo", "miam-recipe-stepper__link__name"], [1, "miam-recipe-stepper__link__divider"], [3, "formGroup", 4, "ngIf", "ngIfElse"], ["loading", ""], [1, "miam-recipe-stepper__footer"], [1, "m-button-secondary", 3, "disabled", "click"], [1, "m-button-primary", 3, "disabled", "click"], [3, "display", "currentRecipe", "currentTags", "close", "savedTags", 4, "ngIf"], ["title", "Image trop volumineuse", "confirmButtonText", "Fermer", 3, "isAngularComponent", "noHeaderMode", "expanded", "close", "confirm", 4, "ngIf"], [3, "formGroup"], [1, "miam-recipe-stepper__section"], ["step", ""], [1, "miam-recipe-stepper__mandatory"], ["ngDefaultControl", "", "placeholder", "Titre de la recette", 1, "m-title-text-input", 3, "formControl"], [1, "miam-recipe-stepper__type__label"], ["ngDefaultControl", "", 3, "formControl"], [1, "miam-recipe-stepper__section__guests", "m-default-card"], [1, "miam-recipe-stepper__guests__label"], ["ngDefaultControl", "", "formControlName", "number-of-guests", "minRange", "1", "maxRange", "999", 3, "counter", "counterChange"], ["class", "miam-recipe-stepper__tags", 4, "ngIf"], [1, "miam-recipe-stepper__section__row"], [1, "miam-recipe-stepper__picture"], ["ngDefaultControl", "", 3, "buttonText", "formControl", "imageUrl", "photoMode", "bigImageWarning", "bigFileDropped", "onFileDropped"], ["placeholder", "L'image ne dispose d'aucun lien", "class", "m-input", 3, "value", "input", 4, "ngIf"], [1, "miam-recipe-stepper__row__description"], [1, "m-h1-typo"], ["cdkTextareaAutosize", "", "cdkAutosizeMinRows", "20", "cdkAutosizeMaxRows", "50", "maxlength", "250", 1, "m-input", 3, "formControl"], [1, "miam-recipe-stepper__description__counter"], ["class", "miam-recipe-stepper__section__times", 4, "ngIf"], [1, "miam-recipe-stepper__attibutes__slider"], ["ngDefaultControl", "", 3, "steps", "formControl", "icons"], ["class", "miam-recipe-stepper__mobile__buttons", 4, "ngIf"], ["ngDefaultControl", "", "label", "Ingr\u00E9dients", "hint", "ingr\u00E9dients", "formArrayName", "ingredients", 3, "isPersonal", "placeholder", "instructions", "list", "ingredientMode", "ingredientsPictures", "deleteId", "orderHasChanged", 4, "ngIf"], ["ngDefaultControl", "", "label", "\u00C9tapes", "formArrayName", "steps", "hint", "\u00E9tapes", 3, "placeholder", "list", "instructions", "deleteId", "orderHasChanged", 4, "ngIf"], [1, "miam-recipe-stepper__tags"], [1, "miam-recipe-stepper__tags__title"], [1, "miam-recipe-stepper__tags__recap"], ["class", "miam-recipe-stepper__tag", 3, "ngClass", 4, "ngFor", "ngForOf"], ["primaryColor", "var(--m-color-onyx)", 3, "iconName"], [1, "miam-recipe-stepper__tag", 3, "ngClass"], [1, "miam-recipe-stepper__tag__name"], ["primaryColor", "var(--m-color-grey01)", 1, "miam-recipe-stepper__tag__icon", 3, "iconName", "click"], ["placeholder", "L'image ne dispose d'aucun lien", 1, "m-input", 3, "value", "input"], [1, "miam-recipe-stepper__section__times"], ["ngDefaultControl", "", "title", "Temps de pr\u00E9paration", 3, "formControl", "icon"], ["ngDefaultControl", "", "title", "Temps de cuisson", 3, "formControl", "icon"], ["ngDefaultControl", "", "title", "Temps de repos", 3, "formControl", "icon"], [1, "miam-recipe-stepper__mobile__buttons"], [1, "m-button-secondary", 3, "ngClass", "click"], ["ngDefaultControl", "", "label", "Ingr\u00E9dients", "hint", "ingr\u00E9dients", "formArrayName", "ingredients", 3, "isPersonal", "placeholder", "instructions", "list", "ingredientMode", "ingredientsPictures", "deleteId", "orderHasChanged"], ["ngDefaultControl", "", "label", "\u00C9tapes", "formArrayName", "steps", "hint", "\u00E9tapes", 3, "placeholder", "list", "instructions", "deleteId", "orderHasChanged"], [3, "display", "currentRecipe", "currentTags", "close", "savedTags"], ["title", "Image trop volumineuse", "confirmButtonText", "Fermer", 3, "isAngularComponent", "noHeaderMode", "expanded", "close", "confirm"], [1, "miam-recipe-stepper__picture__warning"]], template: function RecipeStepperComponent_Template(rf, ctx) {
|
|
18927
19065
|
if (rf & 1) {
|
|
18928
19066
|
i0.ɵɵelement(0, "div", 0, 1);
|
|
18929
19067
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -18968,7 +19106,7 @@
|
|
|
18968
19106
|
i0.ɵɵelementEnd();
|
|
18969
19107
|
i0.ɵɵelementEnd();
|
|
18970
19108
|
i0.ɵɵelement(27, "div", 3);
|
|
18971
|
-
i0.ɵɵtemplate(28, RecipeStepperComponent_ng_container_28_Template,
|
|
19109
|
+
i0.ɵɵtemplate(28, RecipeStepperComponent_ng_container_28_Template, 43, 22, "ng-container", 12);
|
|
18972
19110
|
i0.ɵɵtemplate(29, RecipeStepperComponent_ng_template_29_Template, 1, 0, "ng-template", null, 13, i0.ɵɵtemplateRefExtractor);
|
|
18973
19111
|
i0.ɵɵelementStart(31, "div", 14);
|
|
18974
19112
|
i0.ɵɵelementStart(32, "button", 15);
|
|
@@ -19009,7 +19147,7 @@
|
|
|
19009
19147
|
i0.ɵɵadvance(1);
|
|
19010
19148
|
i0.ɵɵproperty("ngIf", ctx.bigImageWarning);
|
|
19011
19149
|
}
|
|
19012
|
-
}, directives: [IconComponent, i4.NgClass, i4.NgIf, i13.NgControlStatusGroup, i13.FormGroupDirective, TextInputComponent, i13.DefaultValueAccessor, i13.NgControlStatus, i13.FormControlDirective, RecipeTypeChooserComponent, CounterInputComponent, i13.FormControlName, DragDropInputComponent, i13.MaxLengthValidator, SliderComponent, i4.NgForOf, TimePickerComponent, ListInputComponent, i13.FormArrayName, LoaderComponent, TagsSelectorComponent, ModalComponent], styles: ["@charset \"UTF-8\";.miam-recipe-stepper__anchor{bottom:0;height:250px;margin-top:-250px;position:relative}.miam-recipe-stepper{display:flex;flex-direction:column;width:100%}.miam-recipe-stepper label{font-size:19px;line-height:24px}.miam-recipe-stepper label span{color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__padding{background-color:var(--m-color-unpure-white);height:32px;position:relative;width:100%}.miam-recipe-stepper .miam-recipe-stepper__padding button{left:40px;padding:8px 16px;position:absolute;z-index:3}.miam-recipe-stepper .miam-recipe-stepper__padding button ng-miam-icon{height:16px;margin-left:0;padding-top:20px;transform:rotate(90deg)}.miam-recipe-stepper .miam-recipe-stepper__padding button ng-miam-icon svg path:first-of-type{fill:none}.miam-recipe-stepper .miam-recipe-stepper__links{align-items:center;background-color:var(--m-color-unpure-white);display:flex;justify-content:space-evenly;padding:16px 0;position:-webkit-sticky;position:sticky;top:0;width:100%;z-index:3}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links{align-items:baseline;justify-content:center;width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link{align-items:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__number{align-items:center;border:1px solid;border-radius:64px;color:var(--m-color-grey02);display:flex;font-size:32px;font-style:normal;font-weight:700;height:64px;justify-content:center;line-height:44px;width:64px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__number{font-size:22px;height:40px;line-height:32px;width:40px}}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__name{color:var(--m-color-grey02);padding-top:8px}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link.active .miam-recipe-stepper__link__number{background-color:var(--m-color-secondary);border-color:var(--m-color-secondary);color:var(--m-color-unpure-white)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link.active .miam-recipe-stepper__link__name{color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link__divider{background-color:var(--m-color-slate);height:1px;width:64px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link__divider{width:40px}}.miam-recipe-stepper .miam-recipe-stepper__section{align-items:center;display:flex;flex-direction:column;gap:64px;justify-content:center;padding:84px 0;position:relative;scroll-margin-top:175px;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section{gap:0;justify-content:flex-start;padding:24px 36px;width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mandatory{bottom:0;color:var(--m-color-danger);position:absolute;right:32px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mandatory{right:16px}}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .m-input{align-items:flex-start;background-color:transparent;border:none;display:flex;flex-direction:column-reverse;justify-content:flex-start;max-width:unset;min-width:unset}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__input{border:1px solid var(--m-color-light-slate);border-radius:4px;max-width:90vw;min-width:90vw}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label.input__label__top,.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label:not(.input__label__top){background-color:transparent;color:var(--m-color-black);font-size:24px;font-weight:700;padding-bottom:16px;position:static;transform:none}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label:after{color:var(--m-color-warning-text);content:\"*\"}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__type__label{color:var(--m-color-black);font-size:24px;font-weight:700;padding-bottom:16px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__type__label{padding:16px 0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section:nth-child(2n){background-color:var(--m-color-primary-light)}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-text-input .miam-text-input{background-color:var(--m-color-unpure-white)}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-select-input .miam-select{background-color:var(--m-color-unpure-white);width:330px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__guests{display:flex;gap:16px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__guests{align-items:center;flex-direction:column;justify-content:center;margin:16px 0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags{align-items:center;display:flex;flex-direction:column}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__title{font-size:16px;font-weight:700}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap{align-items:center;display:flex;flex-flow:row wrap;margin:10px 8px;max-width:80vw}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag{align-items:center;background-color:var(--m-color-primary-light);border-radius:4px;display:flex;margin:6px;padding:8px 12px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.meal_type{background-color:var(--m-color-tag-meal-type)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.ingredient_category{background-color:var(--m-color-tag-ingredient-category)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.equipment{background-color:var(--m-color-tag-equipment)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.diet{background-color:var(--m-color-tag-diet)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag .miam-recipe-stepper__tag__name{color:var(--m-color-grey01)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag .miam-recipe-stepper__tag__icon .icon-container{-webkit-tap-highlight-color:transparent;cursor:pointer;margin:0 0 0 16px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .m-button-secondary ng-miam-icon{margin:0 16px 0 0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row{display:flex;flex-wrap:wrap;gap:64px;justify-content:center;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row{gap:0;width:100vw}}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description label{margin-top:16px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description textarea.m-input{height:150px;max-width:700px;resize:none;width:700px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description textarea.m-input{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description .miam-recipe-stepper__description__counter{color:var(--m-color-light-slate);margin:8px;text-align:end}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture{display:flex;flex-direction:column;gap:8px;width:330px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .miam-uploader{margin-bottom:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__times{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-evenly}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__times .miam-time-picker{align-items:center;flex-direction:column;justify-content:center;margin-bottom:16px;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider{width:560px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider label{text-align:center;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider{width:90vw}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider label{width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input{display:flex;flex-direction:row-reverse;gap:32px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input{flex-direction:column;gap:0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions{margin-top:50px;position:relative}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions{margin-top:0}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions textarea{height:300px!important;max-height:300px!important;max-width:calc(98vw - 776px);min-height:300px!important;width:400px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions textarea{height:unset!important;max-width:unset!important;min-height:110px!important;width:unset!important}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions button{margin-top:16px}@media (min-width:1024px){.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-list-input{width:calc(100% - 16px)}}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-list-input:first-of-type .miam-list-input__actions .miam-list-input__actions__instructions:before{content:\"Merci d'indiquer la quantit\u00E9 en premier comme indiqu\u00E9 dans les exemples.\\a\\a\";font-weight:700}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons{display:grid;gap:8px;grid-template-columns:repeat(2,1fr)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons button{margin-right:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons button.active{background-color:var(--m-color-primary);color:var(--m-color-white)}.miam-recipe-stepper ng-miam-loader{display:flex;justify-content:center;padding:50vh;width:100%}.miam-recipe-stepper .miam-recipe-stepper__footer{display:flex;gap:64px;justify-content:center;padding:64px 0}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__footer{display:grid;gap:8px;grid-template-columns:repeat(2,1fr);padding:16px 8px}}.miam-recipe-stepper__picture__warning{font-size:var(--m-font-size-medium);padding:10px;text-align:center}"], encapsulation: 2, changeDetection: 0 });
|
|
19150
|
+
}, directives: [IconComponent, i4.NgClass, i4.NgIf, i13.NgControlStatusGroup, i13.FormGroupDirective, TextInputComponent, i13.DefaultValueAccessor, i13.NgControlStatus, i13.FormControlDirective, RecipeTypeChooserComponent, CounterInputComponent, i13.FormControlName, DragDropInputComponent, i13.MaxLengthValidator, SliderComponent, i4.NgForOf, TimePickerComponent, ListInputComponent, i13.FormArrayName, LoaderComponent, TagsSelectorComponent, ModalComponent], styles: ["@charset \"UTF-8\";.miam-recipe-stepper__anchor{bottom:0;height:250px;margin-top:-250px;position:relative}.miam-recipe-stepper{display:flex;flex-direction:column;width:100%}.miam-recipe-stepper label{font-size:19px;line-height:24px}.miam-recipe-stepper label span{color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__padding{background-color:var(--m-color-unpure-white);height:32px;position:relative;width:100%}.miam-recipe-stepper .miam-recipe-stepper__padding button{left:40px;padding:8px 16px;position:absolute;z-index:3}.miam-recipe-stepper .miam-recipe-stepper__padding button ng-miam-icon{height:16px;margin-left:0;padding-top:20px;transform:rotate(90deg)}.miam-recipe-stepper .miam-recipe-stepper__padding button ng-miam-icon svg path:first-of-type{fill:none}.miam-recipe-stepper .miam-recipe-stepper__links{align-items:center;background-color:var(--m-color-unpure-white);display:flex;justify-content:space-evenly;padding:16px 0;position:-webkit-sticky;position:sticky;top:0;width:100%;z-index:3}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links{align-items:baseline;justify-content:center;width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link{align-items:center;cursor:pointer;display:flex;flex-direction:column;justify-content:center}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__number{align-items:center;border:1px solid;border-radius:64px;color:var(--m-color-grey02);display:flex;font-size:32px;font-style:normal;font-weight:700;height:64px;justify-content:center;line-height:44px;width:64px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__number{font-size:22px;height:40px;line-height:32px;width:40px}}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link .miam-recipe-stepper__link__name{color:var(--m-color-grey02);padding-top:8px}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link.active .miam-recipe-stepper__link__number{background-color:var(--m-color-secondary);border-color:var(--m-color-secondary);color:var(--m-color-unpure-white)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link.active .miam-recipe-stepper__link__name{color:var(--m-color-secondary)}.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link__divider{background-color:var(--m-color-slate);height:1px;width:64px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__links .miam-recipe-stepper__link__divider{width:40px}}.miam-recipe-stepper .miam-recipe-stepper__section{align-items:center;display:flex;flex-direction:column;gap:64px;justify-content:center;padding:84px 0;position:relative;scroll-margin-top:175px;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section{gap:0;justify-content:flex-start;padding:24px 36px;width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mandatory{bottom:0;color:var(--m-color-danger);position:absolute;right:32px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mandatory{right:16px}}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .m-input{align-items:flex-start;background-color:transparent;border:none;display:flex;flex-direction:column-reverse;justify-content:flex-start;max-width:unset;min-width:unset}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__input{border:1px solid var(--m-color-light-slate);border-radius:4px;max-width:90vw;min-width:90vw}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label.input__label__top,.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label:not(.input__label__top){background-color:transparent;color:var(--m-color-black);font-size:24px;font-weight:700;padding-bottom:16px;position:static;transform:none}.miam-recipe-stepper .miam-recipe-stepper__section .m-title-text-input .miam-text-input__label:after{color:var(--m-color-warning-text);content:\"*\"}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__type__label{color:var(--m-color-black);font-size:24px;font-weight:700;padding-bottom:16px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__type__label{padding:16px 0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section:nth-child(2n){background-color:var(--m-color-primary-light)}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-text-input .miam-text-input{background-color:var(--m-color-unpure-white)}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-select-input .miam-select{background-color:var(--m-color-unpure-white);width:330px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__guests{display:flex;gap:16px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__guests{align-items:center;flex-direction:column;justify-content:center;margin:16px 0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags{align-items:center;display:flex;flex-direction:column}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__title{font-size:16px;font-weight:700}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap{align-items:center;display:flex;flex-flow:row wrap;margin:10px 8px;max-width:80vw}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag{align-items:center;background-color:var(--m-color-primary-light);border-radius:4px;display:flex;margin:6px;padding:8px 12px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.meal_type{background-color:var(--m-color-tag-meal-type)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.ingredient_category{background-color:var(--m-color-tag-ingredient-category)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.equipment{background-color:var(--m-color-tag-equipment)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag.diet{background-color:var(--m-color-tag-diet)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag .miam-recipe-stepper__tag__name{color:var(--m-color-grey01)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .miam-recipe-stepper__tags__recap .miam-recipe-stepper__tag .miam-recipe-stepper__tag__icon .icon-container{-webkit-tap-highlight-color:transparent;cursor:pointer;margin:0 0 0 16px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__tags .m-button-secondary ng-miam-icon{margin:0 16px 0 0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row{display:flex;flex-wrap:wrap;gap:64px;justify-content:center;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row{gap:0;width:100vw}}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description label{margin-top:16px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description textarea.m-input{height:150px;max-width:700px;resize:none;width:700px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description textarea.m-input{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__row__description .miam-recipe-stepper__description__counter{color:var(--m-color-light-slate);margin:8px;text-align:end}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture{display:flex;flex-direction:column;gap:8px;width:330px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture{width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .miam-uploader{margin-bottom:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__row .miam-recipe-stepper__picture .m-input{margin-top:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__times{display:flex;flex-wrap:wrap;gap:32px;justify-content:space-evenly}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__section__times .miam-time-picker{align-items:center;flex-direction:column;justify-content:center;margin-bottom:16px;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider{width:560px}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider label{text-align:center;width:100%}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider{width:90vw}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__attibutes__slider label{width:100vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input{display:flex;flex-direction:row-reverse;gap:32px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input{flex-direction:column;gap:0;width:90vw}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions{margin-top:50px;position:relative}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions{margin-top:0}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions textarea{height:300px!important;max-height:300px!important;max-width:calc(98vw - 776px);min-height:300px!important;width:400px}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions textarea{height:unset!important;max-width:unset!important;min-height:110px!important;width:unset!important}}.miam-recipe-stepper .miam-recipe-stepper__section .miam-list-input .miam-list-input__actions button{margin-top:16px}@media (min-width:1024px){.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-list-input{width:calc(100% - 16px)}}.miam-recipe-stepper .miam-recipe-stepper__section ng-miam-list-input:first-of-type .miam-list-input__actions .miam-list-input__actions__instructions:before{content:\"Merci d'indiquer la quantit\u00E9 en premier comme indiqu\u00E9 dans les exemples.\\a\\a\";font-weight:700}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons{display:grid;gap:8px;grid-template-columns:repeat(2,1fr)}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons button{margin-right:0}.miam-recipe-stepper .miam-recipe-stepper__section .miam-recipe-stepper__mobile__buttons button.active{background-color:var(--m-color-primary);color:var(--m-color-white)}.miam-recipe-stepper ng-miam-loader{display:flex;justify-content:center;padding:50vh;width:100%}.miam-recipe-stepper .miam-recipe-stepper__footer{display:flex;gap:64px;justify-content:center;padding:64px 0}@media (max-width:1023px){.miam-recipe-stepper .miam-recipe-stepper__footer{display:grid;gap:8px;grid-template-columns:repeat(2,1fr);padding:16px 8px}}.miam-recipe-stepper__picture__warning{font-size:var(--m-font-size-medium);padding:10px;text-align:center}"], encapsulation: 2, changeDetection: 0 });
|
|
19013
19151
|
var ɵRecipeStepperComponent_BaseFactory = /*@__PURE__*/ i0.ɵɵgetInheritedFactory(RecipeStepperComponent);
|
|
19014
19152
|
/*@__PURE__*/ (function () {
|
|
19015
19153
|
i0.ɵsetClassMetadata(RecipeStepperComponent, [{
|