ng-miam 6.4.8 → 6.4.10
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 +83 -88
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/explain-banner/explain-banner-step/explain-banner-step.component.js +1 -1
- package/esm2015/lib/_services/baskets-synchronizing/baskets-synchronizer.service.js +3 -3
- package/esm2015/lib/_services/interceptor.service.js +2 -2
- package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +79 -82
- package/fesm2015/ng-miam.js +82 -85
- package/fesm2015/ng-miam.js.map +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -4330,8 +4330,8 @@
|
|
|
4330
4330
|
var _this = this;
|
|
4331
4331
|
this.basketsService.basketEntries().pipe(operators.take(1)).subscribe(function (entries) {
|
|
4332
4332
|
_this.pushBasketEntriesToBasket(itemsToAdd.map(function (i) {
|
|
4333
|
-
var entry = entries.find(function (e) { return e.selectedItem.attributes['ext-id'] === i.id; }) ?
|
|
4334
|
-
entries.find(function (e) { return e.selectedItem.attributes['ext-id'] === i.id; }) :
|
|
4333
|
+
var entry = entries.find(function (e) { var _a; return ((_a = e.selectedItem) === null || _a === void 0 ? void 0 : _a.attributes['ext-id']) === i.id; }) ?
|
|
4334
|
+
entries.find(function (e) { var _a; return ((_a = e.selectedItem) === null || _a === void 0 ? void 0 : _a.attributes['ext-id']) === i.id; }) :
|
|
4335
4335
|
undefined;
|
|
4336
4336
|
if (entry) {
|
|
4337
4337
|
var bei = entry.attributes['basket-entries-items'].find(function (b) { return String(b.item_id) === entry.selectedItem.id; }) ||
|
|
@@ -7858,7 +7858,7 @@
|
|
|
7858
7858
|
i0.ɵɵadvance(1);
|
|
7859
7859
|
i0.ɵɵtextInterpolate1(" ", ctx.label, " ");
|
|
7860
7860
|
}
|
|
7861
|
-
}, directives: [i2.NgStyle], styles: [".miam-explain-banner-step{align-items:center;display:flex;flex:1 1 0px;gap:28px;justify-content:center;max-width:322px}.miam-explain-banner-step .miam-explain-banner-step-label{font-size:20px;font-weight:900;line-height:28px;text-align:left}.miam-explain-banner-step .miam-explain-banner-step-image img{-o-object-fit:cover;height:
|
|
7861
|
+
}, directives: [i2.NgStyle], styles: [".miam-explain-banner-step{align-items:center;display:flex;flex:1 1 0px;gap:28px;justify-content:center;max-width:322px}.miam-explain-banner-step .miam-explain-banner-step-label{font-size:20px;font-weight:900;line-height:28px;text-align:left}.miam-explain-banner-step .miam-explain-banner-step-image img{-o-object-fit:cover;max-height:144px;max-width:144px;object-fit:cover}"], encapsulation: 2, changeDetection: 0 });
|
|
7862
7862
|
/*@__PURE__*/ (function () {
|
|
7863
7863
|
i0.ɵsetClassMetadata(ExplainBannerStepComponent, [{
|
|
7864
7864
|
type: i0.Component,
|
|
@@ -12194,7 +12194,7 @@
|
|
|
12194
12194
|
request = request.clone({
|
|
12195
12195
|
setHeaders: {
|
|
12196
12196
|
'miam-origin': context.origin.value,
|
|
12197
|
-
'miam-front-version': '6.4.
|
|
12197
|
+
'miam-front-version': '6.4.10',
|
|
12198
12198
|
'miam-front-type': 'web',
|
|
12199
12199
|
'miam-api-version': '4.7.0'
|
|
12200
12200
|
}
|
|
@@ -22982,94 +22982,91 @@
|
|
|
22982
22982
|
i0.ɵɵproperty("iconName", ctx_r4.icon.ChevronDown);
|
|
22983
22983
|
}
|
|
22984
22984
|
}
|
|
22985
|
-
function
|
|
22985
|
+
function RecipeCatalogComponent_div_2_div_5_div_3_Template(rf, ctx) {
|
|
22986
22986
|
if (rf & 1) {
|
|
22987
|
-
i0.ɵɵelementStart(0, "
|
|
22988
|
-
i0.ɵɵ
|
|
22987
|
+
i0.ɵɵelementStart(0, "div", 23);
|
|
22988
|
+
i0.ɵɵelementStart(1, "span");
|
|
22989
|
+
i0.ɵɵi18n(2, 24);
|
|
22990
|
+
i0.ɵɵelementEnd();
|
|
22991
|
+
i0.ɵɵelementStart(3, "span");
|
|
22992
|
+
i0.ɵɵtext(4);
|
|
22989
22993
|
i0.ɵɵelementEnd();
|
|
22990
|
-
}
|
|
22991
|
-
}
|
|
22992
|
-
function RecipeCatalogComponent_div_2_div_5_span_4_Template(rf, ctx) {
|
|
22993
|
-
if (rf & 1) {
|
|
22994
|
-
i0.ɵɵelementStart(0, "span");
|
|
22995
|
-
i0.ɵɵtext(1);
|
|
22996
22994
|
i0.ɵɵelementEnd();
|
|
22997
22995
|
}
|
|
22998
22996
|
if (rf & 2) {
|
|
22999
|
-
var
|
|
23000
|
-
i0.ɵɵadvance(
|
|
23001
|
-
i0.ɵɵtextInterpolate(
|
|
22997
|
+
var ctx_r10 = i0.ɵɵnextContext(3);
|
|
22998
|
+
i0.ɵɵadvance(4);
|
|
22999
|
+
i0.ɵɵtextInterpolate(ctx_r10.filters.search);
|
|
23002
23000
|
}
|
|
23003
23001
|
}
|
|
23004
|
-
function
|
|
23002
|
+
function RecipeCatalogComponent_div_2_div_5_span_4_Template(rf, ctx) {
|
|
23005
23003
|
if (rf & 1) {
|
|
23006
23004
|
i0.ɵɵelementStart(0, "span");
|
|
23007
|
-
i0.ɵɵi18n(1,
|
|
23005
|
+
i0.ɵɵi18n(1, 25);
|
|
23008
23006
|
i0.ɵɵelementEnd();
|
|
23009
23007
|
}
|
|
23010
23008
|
}
|
|
23011
|
-
function
|
|
23009
|
+
function RecipeCatalogComponent_div_2_div_5_span_5_Template(rf, ctx) {
|
|
23012
23010
|
if (rf & 1) {
|
|
23013
23011
|
i0.ɵɵelementStart(0, "span");
|
|
23014
|
-
i0.ɵɵi18n(1,
|
|
23012
|
+
i0.ɵɵi18n(1, 26);
|
|
23015
23013
|
i0.ɵɵelementEnd();
|
|
23016
23014
|
}
|
|
23017
23015
|
}
|
|
23018
|
-
function
|
|
23016
|
+
function RecipeCatalogComponent_div_2_div_5_span_6_Template(rf, ctx) {
|
|
23019
23017
|
if (rf & 1) {
|
|
23020
23018
|
i0.ɵɵelementStart(0, "span");
|
|
23021
23019
|
i0.ɵɵtext(1);
|
|
23022
23020
|
i0.ɵɵelementEnd();
|
|
23023
23021
|
}
|
|
23024
23022
|
if (rf & 2) {
|
|
23025
|
-
var
|
|
23023
|
+
var ctx_r13 = i0.ɵɵnextContext(3);
|
|
23026
23024
|
i0.ɵɵadvance(1);
|
|
23027
|
-
i0.ɵɵtextInterpolate(
|
|
23025
|
+
i0.ɵɵtextInterpolate(ctx_r13.filters.additionalFilters.title);
|
|
23028
23026
|
}
|
|
23029
23027
|
}
|
|
23030
|
-
function
|
|
23028
|
+
function RecipeCatalogComponent_div_2_div_5_span_7_Template(rf, ctx) {
|
|
23031
23029
|
if (rf & 1) {
|
|
23032
23030
|
i0.ɵɵelementStart(0, "span");
|
|
23033
|
-
i0.ɵɵi18n(1,
|
|
23031
|
+
i0.ɵɵi18n(1, 27);
|
|
23034
23032
|
i0.ɵɵelementEnd();
|
|
23035
23033
|
}
|
|
23036
23034
|
}
|
|
23037
|
-
function
|
|
23035
|
+
function RecipeCatalogComponent_div_2_div_5_div_8_Template(rf, ctx) {
|
|
23038
23036
|
if (rf & 1) {
|
|
23039
|
-
var
|
|
23040
|
-
i0.ɵɵelementStart(0, "div",
|
|
23041
|
-
i0.ɵɵlistener("click", function
|
|
23042
|
-
i0.ɵɵelement(1, "ng-miam-icon",
|
|
23037
|
+
var _r17_1 = i0.ɵɵgetCurrentView();
|
|
23038
|
+
i0.ɵɵelementStart(0, "div", 28);
|
|
23039
|
+
i0.ɵɵlistener("click", function RecipeCatalogComponent_div_2_div_5_div_8_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r17_1); var ctx_r16 = i0.ɵɵnextContext(3); return ctx_r16.manageRecipeAction({ action: "CREATE", recipe: null }); });
|
|
23040
|
+
i0.ɵɵelement(1, "ng-miam-icon", 29);
|
|
23043
23041
|
i0.ɵɵelementStart(2, "span");
|
|
23044
|
-
i0.ɵɵi18n(3,
|
|
23042
|
+
i0.ɵɵi18n(3, 30);
|
|
23045
23043
|
i0.ɵɵelementEnd();
|
|
23046
23044
|
i0.ɵɵelementEnd();
|
|
23047
23045
|
}
|
|
23048
23046
|
if (rf & 2) {
|
|
23049
|
-
var
|
|
23047
|
+
var ctx_r15 = i0.ɵɵnextContext(3);
|
|
23050
23048
|
i0.ɵɵadvance(1);
|
|
23051
|
-
i0.ɵɵproperty("iconName",
|
|
23049
|
+
i0.ɵɵproperty("iconName", ctx_r15.icon.Plus);
|
|
23052
23050
|
}
|
|
23053
23051
|
}
|
|
23054
23052
|
function RecipeCatalogComponent_div_2_div_5_Template(rf, ctx) {
|
|
23055
23053
|
if (rf & 1) {
|
|
23056
|
-
var
|
|
23054
|
+
var _r19_1 = i0.ɵɵgetCurrentView();
|
|
23057
23055
|
i0.ɵɵelementStart(0, "div", 16);
|
|
23058
23056
|
i0.ɵɵelementStart(1, "div", 17);
|
|
23059
23057
|
i0.ɵɵelementStart(2, "ng-miam-icon", 18);
|
|
23060
|
-
i0.ɵɵlistener("click", function RecipeCatalogComponent_div_2_div_5_Template_ng_miam_icon_click_2_listener() { i0.ɵɵrestoreView(
|
|
23058
|
+
i0.ɵɵlistener("click", function RecipeCatalogComponent_div_2_div_5_Template_ng_miam_icon_click_2_listener() { i0.ɵɵrestoreView(_r19_1); var ctx_r18 = i0.ɵɵnextContext(2); return ctx_r18.returnToHomePage(); });
|
|
23061
23059
|
i0.ɵɵelementEnd();
|
|
23062
|
-
i0.ɵɵtemplate(3,
|
|
23063
|
-
i0.ɵɵtemplate(4, RecipeCatalogComponent_div_2_div_5_span_4_Template, 2,
|
|
23064
|
-
i0.ɵɵtemplate(5, RecipeCatalogComponent_div_2_div_5_span_5_Template, 2, 0, "span",
|
|
23065
|
-
i0.ɵɵtemplate(6, RecipeCatalogComponent_div_2_div_5_span_6_Template, 2,
|
|
23066
|
-
i0.ɵɵtemplate(7, RecipeCatalogComponent_div_2_div_5_span_7_Template, 2,
|
|
23067
|
-
i0.ɵɵtemplate(8, RecipeCatalogComponent_div_2_div_5_span_8_Template, 2, 0, "span", 19);
|
|
23060
|
+
i0.ɵɵtemplate(3, RecipeCatalogComponent_div_2_div_5_div_3_Template, 5, 1, "div", 19);
|
|
23061
|
+
i0.ɵɵtemplate(4, RecipeCatalogComponent_div_2_div_5_span_4_Template, 2, 0, "span", 20);
|
|
23062
|
+
i0.ɵɵtemplate(5, RecipeCatalogComponent_div_2_div_5_span_5_Template, 2, 0, "span", 20);
|
|
23063
|
+
i0.ɵɵtemplate(6, RecipeCatalogComponent_div_2_div_5_span_6_Template, 2, 1, "span", 20);
|
|
23064
|
+
i0.ɵɵtemplate(7, RecipeCatalogComponent_div_2_div_5_span_7_Template, 2, 0, "span", 20);
|
|
23068
23065
|
i0.ɵɵelementEnd();
|
|
23069
|
-
i0.ɵɵtemplate(
|
|
23070
|
-
i0.ɵɵpipe(
|
|
23071
|
-
i0.ɵɵelementStart(
|
|
23072
|
-
i0.ɵɵlistener("filterRemoved", function
|
|
23066
|
+
i0.ɵɵtemplate(8, RecipeCatalogComponent_div_2_div_5_div_8_Template, 4, 1, "div", 21);
|
|
23067
|
+
i0.ɵɵpipe(9, "async");
|
|
23068
|
+
i0.ɵɵelementStart(10, "ng-miam-catalog-list", 22);
|
|
23069
|
+
i0.ɵɵlistener("filterRemoved", function RecipeCatalogComponent_div_2_div_5_Template_ng_miam_catalog_list_filterRemoved_10_listener($event) { i0.ɵɵrestoreView(_r19_1); var ctx_r20 = i0.ɵɵnextContext(2); return ctx_r20.removeFilter($event); })("recipeActionTriggered", function RecipeCatalogComponent_div_2_div_5_Template_ng_miam_catalog_list_recipeActionTriggered_10_listener($event) { i0.ɵɵrestoreView(_r19_1); var ctx_r21 = i0.ɵɵnextContext(2); return ctx_r21.manageRecipeAction($event); });
|
|
23073
23070
|
i0.ɵɵelementEnd();
|
|
23074
23071
|
i0.ɵɵelementEnd();
|
|
23075
23072
|
}
|
|
@@ -23080,8 +23077,6 @@
|
|
|
23080
23077
|
i0.ɵɵadvance(1);
|
|
23081
23078
|
i0.ɵɵproperty("ngIf", ctx_r5.isSearchPage());
|
|
23082
23079
|
i0.ɵɵadvance(1);
|
|
23083
|
-
i0.ɵɵproperty("ngIf", ctx_r5.isSearchPage());
|
|
23084
|
-
i0.ɵɵadvance(1);
|
|
23085
23080
|
i0.ɵɵproperty("ngIf", ctx_r5.isFavoritesPage());
|
|
23086
23081
|
i0.ɵɵadvance(1);
|
|
23087
23082
|
i0.ɵɵproperty("ngIf", ctx_r5.isPersonalPage());
|
|
@@ -23090,25 +23085,25 @@
|
|
|
23090
23085
|
i0.ɵɵadvance(1);
|
|
23091
23086
|
i0.ɵɵproperty("ngIf", ctx_r5.isDefaultPage());
|
|
23092
23087
|
i0.ɵɵadvance(1);
|
|
23093
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(
|
|
23088
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(9, 10, ctx_r5.canDisplayCreationButton()));
|
|
23094
23089
|
i0.ɵɵadvance(2);
|
|
23095
23090
|
i0.ɵɵproperty("filters", ctx_r5.filters)("originTrace", ctx_r5.eventTrace())("displayPricing", ctx_r5.displayPricing);
|
|
23096
23091
|
}
|
|
23097
23092
|
}
|
|
23098
23093
|
function RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_container_1_Template(rf, ctx) {
|
|
23099
23094
|
if (rf & 1) {
|
|
23100
|
-
var
|
|
23095
|
+
var _r30_1 = i0.ɵɵgetCurrentView();
|
|
23101
23096
|
i0.ɵɵelementContainerStart(0);
|
|
23102
|
-
i0.ɵɵelementStart(1, "ng-miam-catalog-category",
|
|
23103
|
-
i0.ɵɵlistener("displayList", function RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_container_1_Template_ng_miam_catalog_category_displayList_1_listener($event) { i0.ɵɵrestoreView(
|
|
23097
|
+
i0.ɵɵelementStart(1, "ng-miam-catalog-category", 36);
|
|
23098
|
+
i0.ɵɵlistener("displayList", function RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_container_1_Template_ng_miam_catalog_category_displayList_1_listener($event) { i0.ɵɵrestoreView(_r30_1); var ctx_r29 = i0.ɵɵnextContext(5); return ctx_r29.categoryTitleClicked($event); });
|
|
23104
23099
|
i0.ɵɵelementEnd();
|
|
23105
23100
|
i0.ɵɵelementContainerEnd();
|
|
23106
23101
|
}
|
|
23107
23102
|
if (rf & 2) {
|
|
23108
|
-
var
|
|
23109
|
-
var
|
|
23103
|
+
var category_r24 = i0.ɵɵnextContext().$implicit;
|
|
23104
|
+
var ctx_r26 = i0.ɵɵnextContext(4);
|
|
23110
23105
|
i0.ɵɵadvance(1);
|
|
23111
|
-
i0.ɵɵproperty("title",
|
|
23106
|
+
i0.ɵɵproperty("title", category_r24.title)("subtitle", category_r24.subtitle)("filters", category_r24.filters)("displayPricing", ctx_r26.displayPricing)("originTrace", ctx_r26.eventTrace());
|
|
23112
23107
|
}
|
|
23113
23108
|
}
|
|
23114
23109
|
function RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_template_2_ng_miam_meals_planner_link_1_Template(rf, ctx) {
|
|
@@ -23118,58 +23113,58 @@
|
|
|
23118
23113
|
}
|
|
23119
23114
|
function RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_template_2_Template(rf, ctx) {
|
|
23120
23115
|
if (rf & 1) {
|
|
23121
|
-
var
|
|
23122
|
-
i0.ɵɵelementStart(0, "div",
|
|
23123
|
-
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_template_2_ng_miam_meals_planner_link_1_Template, 1, 0, "ng-miam-meals-planner-link",
|
|
23116
|
+
var _r34_1 = i0.ɵɵgetCurrentView();
|
|
23117
|
+
i0.ɵɵelementStart(0, "div", 37);
|
|
23118
|
+
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_template_2_ng_miam_meals_planner_link_1_Template, 1, 0, "ng-miam-meals-planner-link", 20);
|
|
23124
23119
|
i0.ɵɵpipe(2, "async");
|
|
23125
|
-
i0.ɵɵelementStart(3, "ng-miam-catalog-category",
|
|
23126
|
-
i0.ɵɵlistener("displayList", function RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_template_2_Template_ng_miam_catalog_category_displayList_3_listener($event) { i0.ɵɵrestoreView(
|
|
23120
|
+
i0.ɵɵelementStart(3, "ng-miam-catalog-category", 36);
|
|
23121
|
+
i0.ɵɵlistener("displayList", function RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_template_2_Template_ng_miam_catalog_category_displayList_3_listener($event) { i0.ɵɵrestoreView(_r34_1); var ctx_r33 = i0.ɵɵnextContext(5); return ctx_r33.categoryTitleClicked($event); });
|
|
23127
23122
|
i0.ɵɵelementEnd();
|
|
23128
23123
|
i0.ɵɵelementEnd();
|
|
23129
|
-
i0.ɵɵelementStart(4, "div",
|
|
23130
|
-
i0.ɵɵelement(5, "ng-miam-explain-banner",
|
|
23124
|
+
i0.ɵɵelementStart(4, "div", 38);
|
|
23125
|
+
i0.ɵɵelement(5, "ng-miam-explain-banner", 39);
|
|
23131
23126
|
i0.ɵɵelementEnd();
|
|
23132
23127
|
}
|
|
23133
23128
|
if (rf & 2) {
|
|
23134
|
-
var
|
|
23135
|
-
var
|
|
23129
|
+
var category_r24 = i0.ɵɵnextContext().$implicit;
|
|
23130
|
+
var ctx_r28 = i0.ɵɵnextContext(4);
|
|
23136
23131
|
i0.ɵɵadvance(1);
|
|
23137
|
-
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 7,
|
|
23132
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 7, ctx_r28.contextService.enableMealsPlanner$));
|
|
23138
23133
|
i0.ɵɵadvance(2);
|
|
23139
|
-
i0.ɵɵproperty("title",
|
|
23134
|
+
i0.ɵɵproperty("title", category_r24.title)("subtitle", category_r24.subtitle)("filters", category_r24.filters)("displayPricing", ctx_r28.displayPricing)("originTrace", ctx_r28.eventTrace());
|
|
23140
23135
|
i0.ɵɵadvance(2);
|
|
23141
|
-
i0.ɵɵproperty("catalogSetting",
|
|
23136
|
+
i0.ɵɵproperty("catalogSetting", ctx_r28.catalogSetting);
|
|
23142
23137
|
}
|
|
23143
23138
|
}
|
|
23144
23139
|
function RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_Template(rf, ctx) {
|
|
23145
23140
|
if (rf & 1) {
|
|
23146
23141
|
i0.ɵɵelementContainerStart(0);
|
|
23147
|
-
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_container_1_Template, 2, 5, "ng-container",
|
|
23148
|
-
i0.ɵɵtemplate(2, RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_template_2_Template, 6, 9, "ng-template", null,
|
|
23142
|
+
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_container_1_Template, 2, 5, "ng-container", 34);
|
|
23143
|
+
i0.ɵɵtemplate(2, RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_ng_template_2_Template, 6, 9, "ng-template", null, 35, i0.ɵɵtemplateRefExtractor);
|
|
23149
23144
|
i0.ɵɵelementContainerEnd();
|
|
23150
23145
|
}
|
|
23151
23146
|
if (rf & 2) {
|
|
23152
|
-
var
|
|
23153
|
-
var
|
|
23147
|
+
var i_r25 = ctx.index;
|
|
23148
|
+
var _r27 = i0.ɵɵreference(3);
|
|
23154
23149
|
i0.ɵɵadvance(1);
|
|
23155
|
-
i0.ɵɵproperty("ngIf",
|
|
23150
|
+
i0.ɵɵproperty("ngIf", i_r25 !== 0)("ngIfElse", _r27);
|
|
23156
23151
|
}
|
|
23157
23152
|
}
|
|
23158
23153
|
function RecipeCatalogComponent_div_2_ng_template_7_div_0_Template(rf, ctx) {
|
|
23159
23154
|
if (rf & 1) {
|
|
23160
|
-
i0.ɵɵelementStart(0, "div",
|
|
23161
|
-
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_Template, 4, 2, "ng-container",
|
|
23155
|
+
i0.ɵɵelementStart(0, "div", 32);
|
|
23156
|
+
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_7_div_0_ng_container_1_Template, 4, 2, "ng-container", 33);
|
|
23162
23157
|
i0.ɵɵelementEnd();
|
|
23163
23158
|
}
|
|
23164
23159
|
if (rf & 2) {
|
|
23165
|
-
var
|
|
23160
|
+
var ctx_r22 = i0.ɵɵnextContext(3);
|
|
23166
23161
|
i0.ɵɵadvance(1);
|
|
23167
|
-
i0.ɵɵproperty("ngForOf",
|
|
23162
|
+
i0.ɵɵproperty("ngForOf", ctx_r22.categories);
|
|
23168
23163
|
}
|
|
23169
23164
|
}
|
|
23170
23165
|
function RecipeCatalogComponent_div_2_ng_template_7_Template(rf, ctx) {
|
|
23171
23166
|
if (rf & 1) {
|
|
23172
|
-
i0.ɵɵtemplate(0, RecipeCatalogComponent_div_2_ng_template_7_div_0_Template, 2, 1, "div",
|
|
23167
|
+
i0.ɵɵtemplate(0, RecipeCatalogComponent_div_2_ng_template_7_div_0_Template, 2, 1, "div", 31);
|
|
23173
23168
|
}
|
|
23174
23169
|
if (rf & 2) {
|
|
23175
23170
|
var ctx_r7 = i0.ɵɵnextContext(2);
|
|
@@ -23178,18 +23173,18 @@
|
|
|
23178
23173
|
}
|
|
23179
23174
|
function RecipeCatalogComponent_div_2_Template(rf, ctx) {
|
|
23180
23175
|
if (rf & 1) {
|
|
23181
|
-
var
|
|
23176
|
+
var _r37_1 = i0.ɵɵgetCurrentView();
|
|
23182
23177
|
i0.ɵɵelementStart(0, "div", 4);
|
|
23183
23178
|
i0.ɵɵelementStart(1, "div", 5);
|
|
23184
23179
|
i0.ɵɵelementStart(2, "ng-miam-catalog-header", 6);
|
|
23185
|
-
i0.ɵɵlistener("returnButtonPressed", function RecipeCatalogComponent_div_2_Template_ng_miam_catalog_header_returnButtonPressed_2_listener() { i0.ɵɵrestoreView(
|
|
23180
|
+
i0.ɵɵlistener("returnButtonPressed", function RecipeCatalogComponent_div_2_Template_ng_miam_catalog_header_returnButtonPressed_2_listener() { i0.ɵɵrestoreView(_r37_1); var ctx_r36 = i0.ɵɵnextContext(); return ctx_r36.returnToHomePage(); })("filterButtonPressed", function RecipeCatalogComponent_div_2_Template_ng_miam_catalog_header_filterButtonPressed_2_listener() { i0.ɵɵrestoreView(_r37_1); var ctx_r38 = i0.ɵɵnextContext(); return ctx_r38.onFilterCollapsed(); })("searchStringChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_catalog_header_searchStringChanged_2_listener($event) { i0.ɵɵrestoreView(_r37_1); var ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.updateSearch($event); })("personalButtonPressed", function RecipeCatalogComponent_div_2_Template_ng_miam_catalog_header_personalButtonPressed_2_listener() { i0.ɵɵrestoreView(_r37_1); var ctx_r40 = i0.ɵɵnextContext(); return ctx_r40.setPersonalFilter(); })("favoritesButtonPressed", function RecipeCatalogComponent_div_2_Template_ng_miam_catalog_header_favoritesButtonPressed_2_listener() { i0.ɵɵrestoreView(_r37_1); var ctx_r41 = i0.ɵɵnextContext(); return ctx_r41.setFavoritesFilter(); });
|
|
23186
23181
|
i0.ɵɵpipe(3, "async");
|
|
23187
23182
|
i0.ɵɵelementEnd();
|
|
23188
23183
|
i0.ɵɵtemplate(4, RecipeCatalogComponent_div_2_div_4_Template, 8, 3, "div", 7);
|
|
23189
|
-
i0.ɵɵtemplate(5, RecipeCatalogComponent_div_2_div_5_Template,
|
|
23184
|
+
i0.ɵɵtemplate(5, RecipeCatalogComponent_div_2_div_5_Template, 11, 12, "div", 8);
|
|
23190
23185
|
i0.ɵɵelementEnd();
|
|
23191
23186
|
i0.ɵɵelementStart(6, "ng-miam-recipe-filters", 9);
|
|
23192
|
-
i0.ɵɵlistener("filterChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_filterChanged_6_listener($event) { i0.ɵɵrestoreView(
|
|
23187
|
+
i0.ɵɵlistener("filterChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_filterChanged_6_listener($event) { i0.ɵɵrestoreView(_r37_1); var ctx_r42 = i0.ɵɵnextContext(); return ctx_r42.updateFilters($event); })("filterCollapsed", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_filterCollapsed_6_listener() { i0.ɵɵrestoreView(_r37_1); var ctx_r43 = i0.ɵɵnextContext(); return ctx_r43.onFilterCollapsed(); })("preferencesChanged", function RecipeCatalogComponent_div_2_Template_ng_miam_recipe_filters_preferencesChanged_6_listener() { i0.ɵɵrestoreView(_r37_1); var ctx_r44 = i0.ɵɵnextContext(); return ctx_r44.reloadPackages(); });
|
|
23193
23188
|
i0.ɵɵelementEnd();
|
|
23194
23189
|
i0.ɵɵtemplate(7, RecipeCatalogComponent_div_2_ng_template_7_Template, 1, 1, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
|
|
23195
23190
|
i0.ɵɵelementEnd();
|
|
@@ -23209,19 +23204,19 @@
|
|
|
23209
23204
|
}
|
|
23210
23205
|
function RecipeCatalogComponent_ng_template_3_ng_miam_recipe_stepper_0_Template(rf, ctx) {
|
|
23211
23206
|
if (rf & 1) {
|
|
23212
|
-
var
|
|
23213
|
-
i0.ɵɵelementStart(0, "ng-miam-recipe-stepper",
|
|
23214
|
-
i0.ɵɵlistener("recipeChange", function RecipeCatalogComponent_ng_template_3_ng_miam_recipe_stepper_0_Template_ng_miam_recipe_stepper_recipeChange_0_listener() { i0.ɵɵrestoreView(
|
|
23207
|
+
var _r47_1 = i0.ɵɵgetCurrentView();
|
|
23208
|
+
i0.ɵɵelementStart(0, "ng-miam-recipe-stepper", 41);
|
|
23209
|
+
i0.ɵɵlistener("recipeChange", function RecipeCatalogComponent_ng_template_3_ng_miam_recipe_stepper_0_Template_ng_miam_recipe_stepper_recipeChange_0_listener() { i0.ɵɵrestoreView(_r47_1); var ctx_r46 = i0.ɵɵnextContext(2); return ctx_r46.leaveCreatePage(); })("canceled", function RecipeCatalogComponent_ng_template_3_ng_miam_recipe_stepper_0_Template_ng_miam_recipe_stepper_canceled_0_listener() { i0.ɵɵrestoreView(_r47_1); var ctx_r48 = i0.ɵɵnextContext(2); return ctx_r48.leaveCreatePage(); });
|
|
23215
23210
|
i0.ɵɵelementEnd();
|
|
23216
23211
|
}
|
|
23217
23212
|
if (rf & 2) {
|
|
23218
|
-
var
|
|
23219
|
-
i0.ɵɵproperty("recipeToUpdate",
|
|
23213
|
+
var ctx_r45 = i0.ɵɵnextContext(2);
|
|
23214
|
+
i0.ɵɵproperty("recipeToUpdate", ctx_r45.recipeToUpdate)("originTrace", ctx_r45.eventTrace());
|
|
23220
23215
|
}
|
|
23221
23216
|
}
|
|
23222
23217
|
function RecipeCatalogComponent_ng_template_3_Template(rf, ctx) {
|
|
23223
23218
|
if (rf & 1) {
|
|
23224
|
-
i0.ɵɵtemplate(0, RecipeCatalogComponent_ng_template_3_ng_miam_recipe_stepper_0_Template, 1, 2, "ng-miam-recipe-stepper",
|
|
23219
|
+
i0.ɵɵtemplate(0, RecipeCatalogComponent_ng_template_3_ng_miam_recipe_stepper_0_Template, 1, 2, "ng-miam-recipe-stepper", 40);
|
|
23225
23220
|
}
|
|
23226
23221
|
if (rf & 2) {
|
|
23227
23222
|
var ctx_r3 = i0.ɵɵnextContext();
|
|
@@ -23596,7 +23591,7 @@
|
|
|
23596
23591
|
else {
|
|
23597
23592
|
i18n_11 = $localize(templateObject_6$c || (templateObject_6$c = __makeTemplateObject([":\u241F3b0b12b85604af610c07cfbd5d4f74662b9a881a\u241F1931799427977453728:Ajouter une id\u00E9e repas"], [":\u241F3b0b12b85604af610c07cfbd5d4f74662b9a881a\u241F1931799427977453728:Ajouter une id\u00E9e repas"])));
|
|
23598
23593
|
}
|
|
23599
|
-
return [[1, "miam-catalog-anchor"], ["miamCatalogTopAnchor", ""], ["class", "miam-recipe-catalog", 4, "ngIf", "ngIfElse"], ["creationPage", ""], [1, "miam-recipe-catalog"], [1, "miam-recipe-catalog__content"], [3, "home", "searchTerm", "additionalFiltersTitle", "homeLabel", "pictureUrl", "catalogSetting", "favoritesButtonHidden", "personalButtonHidden", "filterBadgeCount", "returnButtonPressed", "filterButtonPressed", "searchStringChanged", "personalButtonPressed", "favoritesButtonPressed"], ["class", "miam-recipe-catalog__content__myMeal__button", 3, "click", 4, "ngIf"], ["class", "miam-recipe-catalog__list", 4, "ngIf", "ngIfElse"], [3, "filters", "isFilterCollapsed", "filterToRemove", "position", "originTrace", "filterChanged", "filterCollapsed", "preferencesChanged"], ["categoriesComponents", ""], [1, "miam-recipe-catalog__content__myMeal__button", 3, "click"], ["primaryColor", "var(--m-color-white)", 1, "miam-recipe-catalog__myMeal__first__icon", 3, "iconName"], [1, "miam-recipe-catalog__myMeal__button__text"], i18n_1, ["primaryColor", "var(--m-color-white)", 1, "miam-recipe-catalog__myMeal__second__icon", 3, "iconName"], [1, "miam-recipe-catalog__list"], [1, "miam-recipe-catalog__content__title"], ["width", "24", "height", "24", 3, "iconName", "click"], [4, "ngIf"], ["class", "miam-recipe-catalog__list__create___button", 3, "click", 4, "ngIf"], [3, "filters", "originTrace", "displayPricing", "filterRemoved", "recipeActionTriggered"], i18n_3, i18n_5, i18n_7, i18n_9, [1, "miam-recipe-catalog__list__create___button", 3, "click"], ["width", "24", "height", "24", "primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_11, ["class", "miam-recipe-catalog__categories", 4, "ngIf"], [1, "miam-recipe-catalog__categories"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["firstCategory", ""], [3, "title", "subtitle", "filters", "displayPricing", "originTrace", "displayList"], [1, "miam-recipe-catalog__first-category"], [1, "miam-recipe-catalog__explain_banner"], [3, "catalogSetting"], [3, "recipeToUpdate", "originTrace", "recipeChange", "canceled", 4, "ngIf"], [3, "recipeToUpdate", "originTrace", "recipeChange", "canceled"]];
|
|
23594
|
+
return [[1, "miam-catalog-anchor"], ["miamCatalogTopAnchor", ""], ["class", "miam-recipe-catalog", 4, "ngIf", "ngIfElse"], ["creationPage", ""], [1, "miam-recipe-catalog"], [1, "miam-recipe-catalog__content"], [3, "home", "searchTerm", "additionalFiltersTitle", "homeLabel", "pictureUrl", "catalogSetting", "favoritesButtonHidden", "personalButtonHidden", "filterBadgeCount", "returnButtonPressed", "filterButtonPressed", "searchStringChanged", "personalButtonPressed", "favoritesButtonPressed"], ["class", "miam-recipe-catalog__content__myMeal__button", 3, "click", 4, "ngIf"], ["class", "miam-recipe-catalog__list", 4, "ngIf", "ngIfElse"], [3, "filters", "isFilterCollapsed", "filterToRemove", "position", "originTrace", "filterChanged", "filterCollapsed", "preferencesChanged"], ["categoriesComponents", ""], [1, "miam-recipe-catalog__content__myMeal__button", 3, "click"], ["primaryColor", "var(--m-color-white)", 1, "miam-recipe-catalog__myMeal__first__icon", 3, "iconName"], [1, "miam-recipe-catalog__myMeal__button__text"], i18n_1, ["primaryColor", "var(--m-color-white)", 1, "miam-recipe-catalog__myMeal__second__icon", 3, "iconName"], [1, "miam-recipe-catalog__list"], [1, "miam-recipe-catalog__content__title"], ["width", "24", "height", "24", 3, "iconName", "click"], ["class", "miam-recipe-catalog__content__title__search__text", 4, "ngIf"], [4, "ngIf"], ["class", "miam-recipe-catalog__list__create___button", 3, "click", 4, "ngIf"], [3, "filters", "originTrace", "displayPricing", "filterRemoved", "recipeActionTriggered"], [1, "miam-recipe-catalog__content__title__search__text"], i18n_3, i18n_5, i18n_7, i18n_9, [1, "miam-recipe-catalog__list__create___button", 3, "click"], ["width", "24", "height", "24", "primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_11, ["class", "miam-recipe-catalog__categories", 4, "ngIf"], [1, "miam-recipe-catalog__categories"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["firstCategory", ""], [3, "title", "subtitle", "filters", "displayPricing", "originTrace", "displayList"], [1, "miam-recipe-catalog__first-category"], [1, "miam-recipe-catalog__explain_banner"], [3, "catalogSetting"], [3, "recipeToUpdate", "originTrace", "recipeChange", "canceled", 4, "ngIf"], [3, "recipeToUpdate", "originTrace", "recipeChange", "canceled"]];
|
|
23600
23595
|
}, template: function RecipeCatalogComponent_Template(rf, ctx) {
|
|
23601
23596
|
if (rf & 1) {
|
|
23602
23597
|
i0.ɵɵelement(0, "div", 0, 1);
|
|
@@ -23608,7 +23603,7 @@
|
|
|
23608
23603
|
i0.ɵɵadvance(2);
|
|
23609
23604
|
i0.ɵɵproperty("ngIf", !ctx.creatingRecipe && ctx.catalogSettingHasLoaded)("ngIfElse", _r2);
|
|
23610
23605
|
}
|
|
23611
|
-
}, directives: [i2.NgIf, CatalogHeaderComponent, RecipeFiltersComponent, IconComponent, CatalogListComponent, i2.NgForOf, CatalogCategoryComponent, ExplainBannerComponent, MealsPlannerLinkComponent, RecipeStepperComponent], pipes: [i2.AsyncPipe], styles: [".miam-recipe-catalog{display:flex;justify-content:space-between}.miam-recipe-catalog,.miam-recipe-catalog .miam-recipe-catalog__content{position:relative;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{align-items:center;display:flex;font-size:24px;font-weight:700;line-height:34px;margin-bottom:24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title
|
|
23606
|
+
}, directives: [i2.NgIf, CatalogHeaderComponent, RecipeFiltersComponent, IconComponent, CatalogListComponent, i2.NgForOf, CatalogCategoryComponent, ExplainBannerComponent, MealsPlannerLinkComponent, RecipeStepperComponent], pipes: [i2.AsyncPipe], styles: [".miam-recipe-catalog{display:flex;justify-content:space-between}.miam-recipe-catalog,.miam-recipe-catalog .miam-recipe-catalog__content{position:relative;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{align-items:center;display:flex;font-size:24px;font-weight:700;gap:6px;line-height:34px;margin-bottom:24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__search__text{display:flex;flex-wrap:wrap;gap:6px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title ng-miam-icon{cursor:pointer;margin-right:14px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title ng-miam-icon .icon-container{transform:rotate(90deg)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{display:flex;flex-direction:column;padding:48px 24px;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{align-items:flex-end;display:flex;flex-direction:row;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{margin:0 22px 40px 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__explain_banner{margin-bottom:40px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{padding:48px 0 48px 24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{align-items:flex-start;flex-direction:column}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{margin:0 24px 24px 0;width:calc(100% - 24px)}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list{padding:24px;width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__list__create___button{align-items:center;border:1px solid var(--miam-color-primary);border-radius:20px;color:var(--miam-color-primary);cursor:pointer;display:flex;margin-bottom:24px;padding:4px 8px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button{align-items:center;background:var(--m-color-primary);border-radius:0 0 20px 20px;cursor:pointer;display:flex;height:50px;justify-content:space-around;left:unset;position:absolute;right:50px;width:200px}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__button__text{color:var(--m-color-white);font-weight:700}.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__second__icon{transform:rotate(-90deg)}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content__myMeal__button{border-radius:20px 20px 0 0;bottom:0;left:8px;position:fixed;right:8px;width:auto;z-index:2}}"], encapsulation: 2, changeDetection: 0 });
|
|
23612
23607
|
/*@__PURE__*/ (function () {
|
|
23613
23608
|
i0.ɵsetClassMetadata(RecipeCatalogComponent, [{
|
|
23614
23609
|
type: i0.Component,
|