ng-miam 9.3.13 → 9.3.15
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 +301 -261
- 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/_web-components/meals-planner/meals-planner.component.js +65 -7
- package/esm2015/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.js +146 -159
- package/esm2015/lib/_web-components/recipe-tags/recipe-tags.component.js +21 -32
- package/esm2015/lib/environments/environment.js +3 -3
- package/esm2015/lib/environments/environment.prod.js +3 -3
- package/esm2015/lib/environments/version.js +2 -2
- package/fesm2015/ng-miam.js +233 -200
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_web-components/meals-planner/meals-planner.component.d.ts +1 -0
- package/lib/_web-components/meals-planner/meals-planner.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-tags/recipe-tags.component.d.ts +0 -1
- package/lib/_web-components/recipe-tags/recipe-tags.component.d.ts.map +1 -1
- package/lib/environments/version.d.ts +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -576,7 +576,7 @@
|
|
|
576
576
|
i18n_0 = MSG_EXTERNAL_346178670015862382$$LIB__COMPONENTS_ADDON_LINK_ADDON_LINK_COMPONENT_TS__1;
|
|
577
577
|
}
|
|
578
578
|
else {
|
|
579
|
-
i18n_0 = $localize(templateObject_1$
|
|
579
|
+
i18n_0 = $localize(templateObject_1$R || (templateObject_1$R = __makeTemplateObject([":\u241F592a6ddb645d9971d03862cb6b8b323a3d9a0be2\u241F346178670015862382:Cette recette vous est propos\u00E9e par notre partenaire"], [":\u241F592a6ddb645d9971d03862cb6b8b323a3d9a0be2\u241F346178670015862382:Cette recette vous est propos\u00E9e par notre partenaire"])));
|
|
580
580
|
}
|
|
581
581
|
var i18n_2;
|
|
582
582
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -626,7 +626,7 @@
|
|
|
626
626
|
type: i0.Output
|
|
627
627
|
}] });
|
|
628
628
|
})();
|
|
629
|
-
var templateObject_1$
|
|
629
|
+
var templateObject_1$R, templateObject_2$E;
|
|
630
630
|
|
|
631
631
|
var CORSOverlayComponent = /** @class */ (function () {
|
|
632
632
|
function CORSOverlayComponent() {
|
|
@@ -1832,9 +1832,9 @@
|
|
|
1832
1832
|
env: 'prod',
|
|
1833
1833
|
miamAPI: 'https://api.miam.tech',
|
|
1834
1834
|
miamWeb: 'https://miam.tech',
|
|
1835
|
-
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.
|
|
1835
|
+
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.7/dist',
|
|
1836
1836
|
mealzSsrApi: 'https://ssr-api.mealz.ai',
|
|
1837
|
-
mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10.
|
|
1837
|
+
mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10.4',
|
|
1838
1838
|
lang: 'fr',
|
|
1839
1839
|
analyticsEnabled: true // Only used in DEV mode
|
|
1840
1840
|
};
|
|
@@ -3652,7 +3652,7 @@
|
|
|
3652
3652
|
EventJourney["EMPTY"] = "";
|
|
3653
3653
|
})(EventJourney || (EventJourney = {}));
|
|
3654
3654
|
|
|
3655
|
-
var VERSION = "9.3.
|
|
3655
|
+
var VERSION = "9.3.15"; // TODO: replace by ##VERSION## and update it in the CI/CD
|
|
3656
3656
|
|
|
3657
3657
|
var ContextRegistryService = /** @class */ (function () {
|
|
3658
3658
|
function ContextRegistryService() {
|
|
@@ -10786,9 +10786,9 @@
|
|
|
10786
10786
|
env: 'prod',
|
|
10787
10787
|
miamAPI: 'https://api.miam.tech',
|
|
10788
10788
|
miamWeb: 'https://miam.tech',
|
|
10789
|
-
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.
|
|
10789
|
+
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.7/dist',
|
|
10790
10790
|
mealzSsrApi: 'https://ssr-api.mealz.ai',
|
|
10791
|
-
mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10.
|
|
10791
|
+
mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10.4',
|
|
10792
10792
|
lang: 'fr',
|
|
10793
10793
|
analyticsEnabled: true // Only used in DEV mode
|
|
10794
10794
|
};
|
|
@@ -12049,7 +12049,7 @@
|
|
|
12049
12049
|
i18n_0 = MSG_EXTERNAL_7941873496647081087$$LIB__COMPONENTS_MEALS_PLANNER_LINK_MEALS_PLANNER_LINK_COMPONENT_TS_1;
|
|
12050
12050
|
}
|
|
12051
12051
|
else {
|
|
12052
|
-
i18n_0 = $localize(templateObject_1$
|
|
12052
|
+
i18n_0 = $localize(templateObject_1$Q || (templateObject_1$Q = __makeTemplateObject([":\u241F31447cf300f37b6f8ae96281c427b49242c801e5\u241F7941873496647081087:Je planifie mes repas"], [":\u241F31447cf300f37b6f8ae96281c427b49242c801e5\u241F7941873496647081087:Je planifie mes repas"])));
|
|
12053
12053
|
}
|
|
12054
12054
|
var i18n_2;
|
|
12055
12055
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -12111,7 +12111,7 @@
|
|
|
12111
12111
|
}]
|
|
12112
12112
|
}], function () { return [{ type: ContextService }]; }, null);
|
|
12113
12113
|
})();
|
|
12114
|
-
var templateObject_1$
|
|
12114
|
+
var templateObject_1$Q, templateObject_2$D, templateObject_3$t;
|
|
12115
12115
|
|
|
12116
12116
|
function ModalComponent_ng_container_0_div_7_Template(rf, ctx) {
|
|
12117
12117
|
if (rf & 1) {
|
|
@@ -12431,7 +12431,7 @@
|
|
|
12431
12431
|
i18n_0 = MSG_EXTERNAL_3775647930168967606$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS___1;
|
|
12432
12432
|
}
|
|
12433
12433
|
else {
|
|
12434
|
-
i18n_0 = $localize(templateObject_1$
|
|
12434
|
+
i18n_0 = $localize(templateObject_1$P || (templateObject_1$P = __makeTemplateObject([":\u241F77ab0a692c428421d89ca45e8f244219959d2913\u241F3775647930168967606:Utilis\u00E9 dans "], [":\u241F77ab0a692c428421d89ca45e8f244219959d2913\u241F3775647930168967606:Utilis\u00E9 dans "])));
|
|
12435
12435
|
}
|
|
12436
12436
|
var i18n_2;
|
|
12437
12437
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -12526,7 +12526,7 @@
|
|
|
12526
12526
|
args: ['window:keydown.escape']
|
|
12527
12527
|
}] });
|
|
12528
12528
|
})();
|
|
12529
|
-
var templateObject_1$
|
|
12529
|
+
var templateObject_1$P, templateObject_2$C, templateObject_3$s, templateObject_4$p, templateObject_5$j;
|
|
12530
12530
|
|
|
12531
12531
|
var _c0$n = ["mealzPrice"];
|
|
12532
12532
|
var _c1$d = ["mealzOldPrice"];
|
|
@@ -12660,7 +12660,7 @@
|
|
|
12660
12660
|
i18n_0 = MSG_EXTERNAL_8545968125113919212$$LIB__COMPONENTS_PRODUCT_BADGES_PRODUCT_BADGES_COMPONENT_TS__1;
|
|
12661
12661
|
}
|
|
12662
12662
|
else {
|
|
12663
|
-
i18n_0 = $localize(templateObject_1$
|
|
12663
|
+
i18n_0 = $localize(templateObject_1$O || (templateObject_1$O = __makeTemplateObject([":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"], [":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"])));
|
|
12664
12664
|
}
|
|
12665
12665
|
return [[1, "miam-product-card__badges"], ["class", "miam-ds-badge miam-ds-text size-xs weight-l", 4, "ngIf"], [1, "miam-ds-badge", "miam-ds-text", "size-xs", "weight-l", "outline"], [1, "miam-ds-text", "size-xs", "miam-product-card__details", "product-price-per-unit"], [1, "miam-ds-badge", "miam-ds-text", "size-xs", "weight-l"], i18n_0];
|
|
12666
12666
|
}, template: function ProductBadgesComponent_Template(rf, ctx) {
|
|
@@ -12704,7 +12704,7 @@
|
|
|
12704
12704
|
type: i0.Input
|
|
12705
12705
|
}] });
|
|
12706
12706
|
})();
|
|
12707
|
-
var templateObject_1$
|
|
12707
|
+
var templateObject_1$O;
|
|
12708
12708
|
|
|
12709
12709
|
function TooltipableContentComponent_div_2_span_1_Template(rf, ctx) {
|
|
12710
12710
|
if (rf & 1) {
|
|
@@ -13444,7 +13444,7 @@
|
|
|
13444
13444
|
i18n_0 = MSG_EXTERNAL_5491081266313732174$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_1;
|
|
13445
13445
|
}
|
|
13446
13446
|
else {
|
|
13447
|
-
i18n_0 = $localize(templateObject_1$
|
|
13447
|
+
i18n_0 = $localize(templateObject_1$N || (templateObject_1$N = __makeTemplateObject([":\u241F47e7dbf996c20e48f8f5f7235432acbe1ddb8441\u241F5491081266313732174:Filtres"], [":\u241F47e7dbf996c20e48f8f5f7235432acbe1ddb8441\u241F5491081266313732174:Filtres"])));
|
|
13448
13448
|
}
|
|
13449
13449
|
var i18n_2;
|
|
13450
13450
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -13671,7 +13671,7 @@
|
|
|
13671
13671
|
type: i0.Output
|
|
13672
13672
|
}] });
|
|
13673
13673
|
})();
|
|
13674
|
-
var templateObject_1$
|
|
13674
|
+
var templateObject_1$N, templateObject_2$B, templateObject_3$r, templateObject_4$o, templateObject_5$i, templateObject_6$e, templateObject_7$d, templateObject_8$a, templateObject_9$7, templateObject_10$6, templateObject_11$6, templateObject_12$3, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
|
|
13675
13675
|
|
|
13676
13676
|
var SelectPosButtonDirective = /** @class */ (function () {
|
|
13677
13677
|
function SelectPosButtonDirective(el, contextService, posService) {
|
|
@@ -13974,7 +13974,7 @@
|
|
|
13974
13974
|
i18n_0 = MSG_EXTERNAL_2218803795065127471$$LIB__WEB_COMPONENTS_RECIPE_PRICING_RECIPE_PRICING_COMPONENT_TS__1;
|
|
13975
13975
|
}
|
|
13976
13976
|
else {
|
|
13977
|
-
i18n_0 = $localize(templateObject_1$
|
|
13977
|
+
i18n_0 = $localize(templateObject_1$M || (templateObject_1$M = __makeTemplateObject([":\u241F6cbbde0e661ae9f5f19f865ba802214c7432be8f\u241F2218803795065127471:Afficher le prix"], [":\u241F6cbbde0e661ae9f5f19f865ba802214c7432be8f\u241F2218803795065127471:Afficher le prix"])));
|
|
13978
13978
|
}
|
|
13979
13979
|
var i18n_2;
|
|
13980
13980
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14035,7 +14035,7 @@
|
|
|
14035
14035
|
type: i0.Output
|
|
14036
14036
|
}] });
|
|
14037
14037
|
})();
|
|
14038
|
-
var templateObject_1$
|
|
14038
|
+
var templateObject_1$M, templateObject_2$A, templateObject_3$q, templateObject_4$n;
|
|
14039
14039
|
|
|
14040
14040
|
var _c0$j = ["background"];
|
|
14041
14041
|
var _c1$9 = function (a0) { return { "active": a0 }; };
|
|
@@ -14309,7 +14309,7 @@
|
|
|
14309
14309
|
i18n_1 = MSG_EXTERNAL_8398233202919865612$$LIB__COMPONENTS_TIME_PICKER_TIME_PICKER_COMPONENT_TS_2;
|
|
14310
14310
|
}
|
|
14311
14311
|
else {
|
|
14312
|
-
i18n_1 = $localize(templateObject_1$
|
|
14312
|
+
i18n_1 = $localize(templateObject_1$L || (templateObject_1$L = __makeTemplateObject([":\u241Fdb0ffbb13aa0ec193b8664c627359e86274d15fa\u241F8398233202919865612:h"], [":\u241Fdb0ffbb13aa0ec193b8664c627359e86274d15fa\u241F8398233202919865612:h"])));
|
|
14313
14313
|
}
|
|
14314
14314
|
var i18n_3;
|
|
14315
14315
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14377,7 +14377,7 @@
|
|
|
14377
14377
|
args: ['title', { static: false }]
|
|
14378
14378
|
}] });
|
|
14379
14379
|
})();
|
|
14380
|
-
var templateObject_1$
|
|
14380
|
+
var templateObject_1$L, templateObject_2$z;
|
|
14381
14381
|
|
|
14382
14382
|
function ToasterComponent_div_2_Template(rf, ctx) {
|
|
14383
14383
|
if (rf & 1) {
|
|
@@ -15039,7 +15039,7 @@
|
|
|
15039
15039
|
i18n_0 = MSG_EXTERNAL_3835013333520355539$$LIB__COMPONENTS_UNAVAILABLE_BADGE_UNAVAILABLE_BADGE_COMPONENT_TS__1;
|
|
15040
15040
|
}
|
|
15041
15041
|
else {
|
|
15042
|
-
i18n_0 = $localize(templateObject_1$
|
|
15042
|
+
i18n_0 = $localize(templateObject_1$K || (templateObject_1$K = __makeTemplateObject([":\u241Fdcc9842895cc489369d88a8cccb8f35fb8e0b0f2\u241F3835013333520355539:Indisponible"], [":\u241Fdcc9842895cc489369d88a8cccb8f35fb8e0b0f2\u241F3835013333520355539:Indisponible"])));
|
|
15043
15043
|
}
|
|
15044
15044
|
var i18n_2;
|
|
15045
15045
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -15100,7 +15100,7 @@
|
|
|
15100
15100
|
type: i0.Output
|
|
15101
15101
|
}] });
|
|
15102
15102
|
})();
|
|
15103
|
-
var templateObject_1$
|
|
15103
|
+
var templateObject_1$K, templateObject_2$y, templateObject_3$p;
|
|
15104
15104
|
|
|
15105
15105
|
var _c0$8 = function (a0) { return { circle: a0 }; };
|
|
15106
15106
|
var SkeletonComponent = /** @class */ (function () {
|
|
@@ -15266,7 +15266,7 @@
|
|
|
15266
15266
|
i18n_0 = MSG_EXTERNAL_4705093661060921903$$LIB__COMPONENTS_PRODUCT_CARD_OUT_OF_STOCK_OVERLAY_OUT_OF_STOCK_OVERLAY_COMPONENT_TS_1;
|
|
15267
15267
|
}
|
|
15268
15268
|
else {
|
|
15269
|
-
i18n_0 = $localize(templateObject_1$
|
|
15269
|
+
i18n_0 = $localize(templateObject_1$J || (templateObject_1$J = __makeTemplateObject([":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"], [":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"])));
|
|
15270
15270
|
}
|
|
15271
15271
|
return [[1, "miam-out-of-stock-overlay"], [1, "miam-out-of-stock-overlay__container"], [1, "miam-out-of-stock-overlay__footer"], [1, "miam-ds-button", "small", "primary", "reverse", 3, "click"], i18n_0];
|
|
15272
15272
|
}, template: function OutOfStockOverlayComponent_Template(rf, ctx) {
|
|
@@ -15299,7 +15299,7 @@
|
|
|
15299
15299
|
type: i0.Output
|
|
15300
15300
|
}] });
|
|
15301
15301
|
})();
|
|
15302
|
-
var templateObject_1$
|
|
15302
|
+
var templateObject_1$J;
|
|
15303
15303
|
|
|
15304
15304
|
function PromotionBadgeComponent_div_1_Template(rf, ctx) {
|
|
15305
15305
|
if (rf & 1) {
|
|
@@ -15336,7 +15336,7 @@
|
|
|
15336
15336
|
i18n_0 = MSG_EXTERNAL_2099073297842949197$$LIB__COMPONENTS_PROMOTION_BADGE_PROMOTION_BADGE_COMPONENT_TS__1;
|
|
15337
15337
|
}
|
|
15338
15338
|
else {
|
|
15339
|
-
i18n_0 = $localize(templateObject_1$
|
|
15339
|
+
i18n_0 = $localize(templateObject_1$I || (templateObject_1$I = __makeTemplateObject([":\u241Fde07fe635ab87dfb62bd5898b01cfef95abf5356\u241F2099073297842949197:de remise imm\u00E9diate"], [":\u241Fde07fe635ab87dfb62bd5898b01cfef95abf5356\u241F2099073297842949197:de remise imm\u00E9diate"])));
|
|
15340
15340
|
}
|
|
15341
15341
|
return [[1, "miam-product-card__promotion__container"], ["class", "miam-ds-badge miam-product-card__promotion", 4, "ngIf"], [1, "miam-ds-badge", "miam-product-card__promotion"], [1, "miam-product-card__promotion-value", "miam-ds-text", "size-s", "weight-l"], [1, "miam-product-card__promotion-text", "miam-ds-text", "size-s", "weight-l"], i18n_0];
|
|
15342
15342
|
}, template: function PromotionBadgeComponent_Template(rf, ctx) {
|
|
@@ -15364,7 +15364,7 @@
|
|
|
15364
15364
|
type: i0.Input
|
|
15365
15365
|
}] });
|
|
15366
15366
|
})();
|
|
15367
|
-
var templateObject_1$
|
|
15367
|
+
var templateObject_1$I;
|
|
15368
15368
|
|
|
15369
15369
|
function ProductCardComponent_div_0_ng_miam_out_of_stock_overlay_1_Template(rf, ctx) {
|
|
15370
15370
|
if (rf & 1) {
|
|
@@ -15877,7 +15877,7 @@
|
|
|
15877
15877
|
i18n_0 = MSG_EXTERNAL_4705093661060921903$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS___1;
|
|
15878
15878
|
}
|
|
15879
15879
|
else {
|
|
15880
|
-
i18n_0 = $localize(templateObject_1$
|
|
15880
|
+
i18n_0 = $localize(templateObject_1$H || (templateObject_1$H = __makeTemplateObject([":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"], [":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"])));
|
|
15881
15881
|
}
|
|
15882
15882
|
var i18n_2;
|
|
15883
15883
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -15958,7 +15958,7 @@
|
|
|
15958
15958
|
type: i0.Input
|
|
15959
15959
|
}] });
|
|
15960
15960
|
})();
|
|
15961
|
-
var templateObject_1$
|
|
15961
|
+
var templateObject_1$H, templateObject_2$x, templateObject_3$o, templateObject_4$m, templateObject_5$h, templateObject_6$d, templateObject_7$c, templateObject_8$9;
|
|
15962
15962
|
|
|
15963
15963
|
function ProductsPickerComponent_ng_container_3_span_3_Template(rf, ctx) {
|
|
15964
15964
|
if (rf & 1) {
|
|
@@ -16233,7 +16233,7 @@
|
|
|
16233
16233
|
i18n_0 = MSG_EXTERNAL_605370619355451874$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS___1;
|
|
16234
16234
|
}
|
|
16235
16235
|
else {
|
|
16236
|
-
i18n_0 = $localize(templateObject_1$
|
|
16236
|
+
i18n_0 = $localize(templateObject_1$G || (templateObject_1$G = __makeTemplateObject([":\u241Ff2568064e2473c7c3d8d97951a6972d1ff930a96\u241F605370619355451874: ingr\u00E9dients"], [":\u241Ff2568064e2473c7c3d8d97951a6972d1ff930a96\u241F605370619355451874: ingr\u00E9dients"])));
|
|
16237
16237
|
}
|
|
16238
16238
|
var i18n_2;
|
|
16239
16239
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -16341,7 +16341,7 @@
|
|
|
16341
16341
|
type: i0.Output
|
|
16342
16342
|
}] });
|
|
16343
16343
|
})();
|
|
16344
|
-
var templateObject_1$
|
|
16344
|
+
var templateObject_1$G, templateObject_2$w, templateObject_3$n, templateObject_4$l, templateObject_5$g, templateObject_6$c, templateObject_7$b;
|
|
16345
16345
|
|
|
16346
16346
|
function NoPosSelectedComponent_ng_container_1_Template(rf, ctx) {
|
|
16347
16347
|
if (rf & 1) {
|
|
@@ -16390,7 +16390,7 @@
|
|
|
16390
16390
|
i18n_0 = MSG_EXTERNAL_951171230257254217$$LIB__COMPONENTS_NO_POS_SELECTED_NO_POS_SELECTED_COMPONENT_TS_1;
|
|
16391
16391
|
}
|
|
16392
16392
|
else {
|
|
16393
|
-
i18n_0 = $localize(templateObject_1$
|
|
16393
|
+
i18n_0 = $localize(templateObject_1$F || (templateObject_1$F = __makeTemplateObject([":\u241Fc8f80d9888c20c5fefa1a4273529366bdb421476\u241F951171230257254217:S\u00E9lectionner un magasin"], [":\u241Fc8f80d9888c20c5fefa1a4273529366bdb421476\u241F951171230257254217:S\u00E9lectionner un magasin"])));
|
|
16394
16394
|
}
|
|
16395
16395
|
var i18n_2;
|
|
16396
16396
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -16460,7 +16460,7 @@
|
|
|
16460
16460
|
type: i0.Output
|
|
16461
16461
|
}] });
|
|
16462
16462
|
})();
|
|
16463
|
-
var templateObject_1$
|
|
16463
|
+
var templateObject_1$F, templateObject_2$v, templateObject_3$m, templateObject_4$k, templateObject_5$f;
|
|
16464
16464
|
|
|
16465
16465
|
var ProductAdditionCardComponent = /** @class */ (function () {
|
|
16466
16466
|
function ProductAdditionCardComponent(productReplacementService) {
|
|
@@ -16476,7 +16476,7 @@
|
|
|
16476
16476
|
i18n_0 = MSG_EXTERNAL_1525113191484251425$$LIB__COMPONENTS_PRODUCT_ADDITION_CARD_PRODUCT_ADDITION_CARD_COMPONENT_TS_1;
|
|
16477
16477
|
}
|
|
16478
16478
|
else {
|
|
16479
|
-
i18n_0 = $localize(templateObject_1$
|
|
16479
|
+
i18n_0 = $localize(templateObject_1$E || (templateObject_1$E = __makeTemplateObject([":\u241Ff6a73fdf0e43fb78d2badaca50e79f1f5f496258\u241F1525113191484251425:Besoin de quelque chose en particulier ?"], [":\u241Ff6a73fdf0e43fb78d2badaca50e79f1f5f496258\u241F1525113191484251425:Besoin de quelque chose en particulier ?"])));
|
|
16480
16480
|
}
|
|
16481
16481
|
var i18n_2;
|
|
16482
16482
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -16514,7 +16514,7 @@
|
|
|
16514
16514
|
}]
|
|
16515
16515
|
}], function () { return [{ type: ProductReplacementService }]; }, null);
|
|
16516
16516
|
})();
|
|
16517
|
-
var templateObject_1$
|
|
16517
|
+
var templateObject_1$E, templateObject_2$u;
|
|
16518
16518
|
|
|
16519
16519
|
var RecipePromotionBadgeComponent = /** @class */ (function () {
|
|
16520
16520
|
function RecipePromotionBadgeComponent() {
|
|
@@ -16529,7 +16529,7 @@
|
|
|
16529
16529
|
i18n_0 = MSG_EXTERNAL_7879917059977078945$$LIB__COMPONENTS_RECIPE_PROMOTION_BADGE_RECIPE_PROMOTION_BADGE_COMPONENT_TS_1;
|
|
16530
16530
|
}
|
|
16531
16531
|
else {
|
|
16532
|
-
i18n_0 = $localize(templateObject_1$
|
|
16532
|
+
i18n_0 = $localize(templateObject_1$D || (templateObject_1$D = __makeTemplateObject([":\u241Fa95b83d06c5cde80a506c7e649b862c065ebc393\u241F7879917059977078945:Promo'"], [":\u241Fa95b83d06c5cde80a506c7e649b862c065ebc393\u241F7879917059977078945:Promo'"])));
|
|
16533
16533
|
}
|
|
16534
16534
|
return [[1, "miam-recipe-promotion-badge"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/9.0/recipe_discount.svg", 1, "miam-recipe-promotion-badge__icon"], [1, "miam-ds-text", "weight-xl"], i18n_0];
|
|
16535
16535
|
}, template: function RecipePromotionBadgeComponent_Template(rf, ctx) {
|
|
@@ -16554,7 +16554,7 @@
|
|
|
16554
16554
|
}]
|
|
16555
16555
|
}], null, null);
|
|
16556
16556
|
})();
|
|
16557
|
-
var templateObject_1$
|
|
16557
|
+
var templateObject_1$D;
|
|
16558
16558
|
|
|
16559
16559
|
var PromotionsBannerComponent = /** @class */ (function () {
|
|
16560
16560
|
function PromotionsBannerComponent() {
|
|
@@ -16570,7 +16570,7 @@
|
|
|
16570
16570
|
i18n_0 = MSG_EXTERNAL_4019422797206036470$$LIB__COMPONENTS_PROMOTIONS_BANNER_PROMOTIONS_BANNER_COMPONENT_TS_1;
|
|
16571
16571
|
}
|
|
16572
16572
|
else {
|
|
16573
|
-
i18n_0 = $localize(templateObject_1$
|
|
16573
|
+
i18n_0 = $localize(templateObject_1$C || (templateObject_1$C = __makeTemplateObject([":\u241Faee24ecdebdace141b39819a7034cd1a2d2cfb55\u241F4019422797206036470:Nouveau"], [":\u241Faee24ecdebdace141b39819a7034cd1a2d2cfb55\u241F4019422797206036470:Nouveau"])));
|
|
16574
16574
|
}
|
|
16575
16575
|
var i18n_2;
|
|
16576
16576
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -16610,7 +16610,7 @@
|
|
|
16610
16610
|
type: i0.Output
|
|
16611
16611
|
}] });
|
|
16612
16612
|
})();
|
|
16613
|
-
var templateObject_1$
|
|
16613
|
+
var templateObject_1$C, templateObject_2$t;
|
|
16614
16614
|
|
|
16615
16615
|
var StoreLocatorComponent = /** @class */ (function (_super) {
|
|
16616
16616
|
__extends(StoreLocatorComponent, _super);
|
|
@@ -17110,7 +17110,7 @@
|
|
|
17110
17110
|
i18n_0 = MSG_EXTERNAL_5279571682523834027$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_DISABLED_BASKET_PREVIEW_DISABLED_COMPONENT_TS__1;
|
|
17111
17111
|
}
|
|
17112
17112
|
else {
|
|
17113
|
-
i18n_0 = $localize(templateObject_1$
|
|
17113
|
+
i18n_0 = $localize(templateObject_1$B || (templateObject_1$B = __makeTemplateObject([":\u241Fcf4f536e5a68ceab8fbe420ae968c0c7d0f63e0e\u241F5279571682523834027: Article(s) indisponible(s) "], [":\u241Fcf4f536e5a68ceab8fbe420ae968c0c7d0f63e0e\u241F5279571682523834027: Article(s) indisponible(s) "])));
|
|
17114
17114
|
}
|
|
17115
17115
|
var i18n_2;
|
|
17116
17116
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -17208,7 +17208,7 @@
|
|
|
17208
17208
|
args: ['window:resize', ['$event']]
|
|
17209
17209
|
}] });
|
|
17210
17210
|
})();
|
|
17211
|
-
var templateObject_1$
|
|
17211
|
+
var templateObject_1$B, templateObject_2$s, templateObject_3$l, templateObject_4$j, templateObject_5$e;
|
|
17212
17212
|
|
|
17213
17213
|
function BasketPreviewLineComponent_ng_container_0_div_5_Template(rf, ctx) {
|
|
17214
17214
|
if (rf & 1) {
|
|
@@ -18150,7 +18150,7 @@
|
|
|
18150
18150
|
i18n_0 = MSG_EXTERNAL_6749102764655247912$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__1;
|
|
18151
18151
|
}
|
|
18152
18152
|
else {
|
|
18153
|
-
i18n_0 = $localize(templateObject_1$
|
|
18153
|
+
i18n_0 = $localize(templateObject_1$A || (templateObject_1$A = __makeTemplateObject([":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"], [":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"])));
|
|
18154
18154
|
}
|
|
18155
18155
|
var i18n_2;
|
|
18156
18156
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -18313,7 +18313,7 @@
|
|
|
18313
18313
|
type: i0.Output
|
|
18314
18314
|
}] });
|
|
18315
18315
|
})();
|
|
18316
|
-
var templateObject_1$
|
|
18316
|
+
var templateObject_1$A, templateObject_2$r, templateObject_3$k, templateObject_4$i, templateObject_5$d, templateObject_6$b, templateObject_7$a, templateObject_8$8, templateObject_9$6, templateObject_10$5, templateObject_11$5, templateObject_12$2, templateObject_13$1, templateObject_14, templateObject_15;
|
|
18317
18317
|
|
|
18318
18318
|
function BasketPreviewProductComponent_div_0_div_19_Template(rf, ctx) {
|
|
18319
18319
|
if (rf & 1) {
|
|
@@ -18534,7 +18534,7 @@
|
|
|
18534
18534
|
i18n_0 = MSG_EXTERNAL_4705093661060921903$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_PRODUCT_BASKET_PREVIEW_PRODUCT_COMPONENT_TS___1;
|
|
18535
18535
|
}
|
|
18536
18536
|
else {
|
|
18537
|
-
i18n_0 = $localize(templateObject_1$
|
|
18537
|
+
i18n_0 = $localize(templateObject_1$z || (templateObject_1$z = __makeTemplateObject([":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"], [":\u241F8e4fa20cb8b77c41c980ba077b80bc8ea128239a\u241F4705093661060921903:Remplacer"])));
|
|
18538
18538
|
}
|
|
18539
18539
|
return [["class", "miam-basket-preview-product", 3, "id", 4, "ngIf"], [1, "miam-basket-preview-product", 3, "id"], [1, "miam-basket-preview-product__infos-container"], [1, "miam-basket-preview-product__picture-container"], [1, "miam-basket-preview-product__picture"], [3, "alt", "src", "error"], [1, "miam-basket-preview-product__infos-and-actions"], [1, "miam-basket-preview-product__infos"], [1, "miam-basket-preview-product__title", "miam-ds-text", "weight-l", "size-s"], [1, "miam-product-card__badges"], [1, "miam-basket-preview-product__capacity", "miam-ds-badge"], ["aria-hidden", "true"], ["class", "miam-basket-preview-product__sponsorised miam-ds-badge", 4, "ngIf"], ["class", "miam-basket-preview-product__replace-button miam-ds-button ghost", 3, "disabled", "click", 4, "ngIf"], ["aria-label", "Supprimer", 1, "miam-basket-preview-line__remove", "miam-ds-button", "ghost", 3, "ngClass", "click"], ["class", "miam-ds-loader", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "", "aria-hidden", "true", 4, "ngIf"], [1, "miam-basket-preview-product__price-and-action"], [1, "miam-basket-preview-product__price", "miam-ds-text", "size-l", "weight-xl"], ["minRange", "0", 3, "value", "minusLoading", "disable", "valueChange"], [1, "miam-basket-preview-product__sponsorised", "miam-ds-badge"], [1, "miam-basket-preview-product__replace-button", "miam-ds-button", "ghost", 3, "disabled", "click"], i18n_0, [1, "miam-ds-loader"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "", "aria-hidden", "true"]];
|
|
18540
18540
|
}, template: function BasketPreviewProductComponent_Template(rf, ctx) {
|
|
@@ -18567,7 +18567,7 @@
|
|
|
18567
18567
|
type: i0.Output
|
|
18568
18568
|
}] });
|
|
18569
18569
|
})();
|
|
18570
|
-
var templateObject_1$
|
|
18570
|
+
var templateObject_1$z;
|
|
18571
18571
|
|
|
18572
18572
|
var RemoveRecipeAction = /** @class */ (function (_super) {
|
|
18573
18573
|
__extends(RemoveRecipeAction, _super);
|
|
@@ -19202,7 +19202,7 @@
|
|
|
19202
19202
|
i18n_0 = MSG_EXTERNAL_6950029358283595645$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS_1;
|
|
19203
19203
|
}
|
|
19204
19204
|
else {
|
|
19205
|
-
i18n_0 = $localize(templateObject_1$
|
|
19205
|
+
i18n_0 = $localize(templateObject_1$y || (templateObject_1$y = __makeTemplateObject([":\u241Ff077b7f13b9ff18b98843b6451b95b52e2e0416b\u241F6950029358283595645:Rechercher un produit de substitution"], [":\u241Ff077b7f13b9ff18b98843b6451b95b52e2e0416b\u241F6950029358283595645:Rechercher un produit de substitution"])));
|
|
19206
19206
|
}
|
|
19207
19207
|
var i18n_2;
|
|
19208
19208
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -19395,7 +19395,7 @@
|
|
|
19395
19395
|
args: ['@slide']
|
|
19396
19396
|
}] });
|
|
19397
19397
|
})();
|
|
19398
|
-
var templateObject_1$
|
|
19398
|
+
var templateObject_1$y, templateObject_2$q, templateObject_3$j, templateObject_4$h, templateObject_5$c, templateObject_6$a, templateObject_7$9, templateObject_8$7, templateObject_9$5, templateObject_10$4, templateObject_11$4;
|
|
19399
19399
|
|
|
19400
19400
|
function BasketPreviewBlockComponent_div_2_ng_container_1_div_2_Template(rf, ctx) {
|
|
19401
19401
|
if (rf & 1) {
|
|
@@ -19926,7 +19926,7 @@
|
|
|
19926
19926
|
i18n_0 = MSG_EXTERNAL_8629591622298910251$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS___1;
|
|
19927
19927
|
}
|
|
19928
19928
|
else {
|
|
19929
|
-
i18n_0 = $localize(templateObject_1$
|
|
19929
|
+
i18n_0 = $localize(templateObject_1$x || (templateObject_1$x = __makeTemplateObject([":\u241Fe5550a57e3cc37b6956342b99fb7e0ab9534db7a\u241F8629591622298910251:Recettes, Produits"], [":\u241Fe5550a57e3cc37b6956342b99fb7e0ab9534db7a\u241F8629591622298910251:Recettes, Produits"])));
|
|
19930
19930
|
}
|
|
19931
19931
|
var i18n_2;
|
|
19932
19932
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20043,7 +20043,7 @@
|
|
|
20043
20043
|
args: [BasketPreviewProductComponent]
|
|
20044
20044
|
}] });
|
|
20045
20045
|
})();
|
|
20046
|
-
var templateObject_1$
|
|
20046
|
+
var templateObject_1$x, templateObject_2$p, templateObject_3$i, templateObject_4$g, templateObject_5$b, templateObject_6$9, templateObject_7$8, templateObject_8$6;
|
|
20047
20047
|
|
|
20048
20048
|
var BasketPreviewModule = /** @class */ (function () {
|
|
20049
20049
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -20188,7 +20188,7 @@
|
|
|
20188
20188
|
i18n_0 = MSG_EXTERNAL_7845121959018697970$$LIB__WEB_COMPONENTS_BASKET_TRANSFER_BASKET_TRANSFER_MODAL_BASKET_TRANSFER_MODAL_COMPONENT_TS_1;
|
|
20189
20189
|
}
|
|
20190
20190
|
else {
|
|
20191
|
-
i18n_0 = $localize(templateObject_1$
|
|
20191
|
+
i18n_0 = $localize(templateObject_1$w || (templateObject_1$w = __makeTemplateObject([":\u241F4abb753a4e37ab5b459185f2e89e9e81c219a253\u241F7845121959018697970:Transfert du panier"], [":\u241F4abb753a4e37ab5b459185f2e89e9e81c219a253\u241F7845121959018697970:Transfert du panier"])));
|
|
20192
20192
|
}
|
|
20193
20193
|
var i18n_2;
|
|
20194
20194
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20301,7 +20301,7 @@
|
|
|
20301
20301
|
}]
|
|
20302
20302
|
}], function () { return [{ type: BasketTransferService }, { type: BasketsService }, { type: PointOfSalesService }, { type: i0__namespace.ChangeDetectorRef }]; }, null);
|
|
20303
20303
|
})();
|
|
20304
|
-
var templateObject_1$
|
|
20304
|
+
var templateObject_1$w, templateObject_2$o, templateObject_3$h, templateObject_4$f, templateObject_5$a, templateObject_6$8, templateObject_7$7, templateObject_8$5;
|
|
20305
20305
|
|
|
20306
20306
|
function BasketTransferLoaderComponent_ng_container_0_Template(rf, ctx) {
|
|
20307
20307
|
if (rf & 1) {
|
|
@@ -20345,7 +20345,7 @@
|
|
|
20345
20345
|
i18n_0 = MSG_EXTERNAL_5759781015293253997$$LIB__WEB_COMPONENTS_BASKET_TRANSFER_BASKET_TRANSFER_LOADER_BASKET_TRANSFER_LOADER_COMPONENT_TS__1;
|
|
20346
20346
|
}
|
|
20347
20347
|
else {
|
|
20348
|
-
i18n_0 = $localize(templateObject_1$
|
|
20348
|
+
i18n_0 = $localize(templateObject_1$v || (templateObject_1$v = __makeTemplateObject([":\u241Fb8c68d9e9ed9ce2143d907baf2a5bef770418bf6\u241F5759781015293253997: Vous allez \u00EAtre automatiquement redirig\u00E9 vers votre panier dans quelques secondes. "], [":\u241Fb8c68d9e9ed9ce2143d907baf2a5bef770418bf6\u241F5759781015293253997: Vous allez \u00EAtre automatiquement redirig\u00E9 vers votre panier dans quelques secondes. "])));
|
|
20349
20349
|
}
|
|
20350
20350
|
return [[4, "ngIf"], [1, "miam-basket-transfer-loader"], [1, "miam-shadow-overlay"], [1, "miam-basket-transfer-loader__content"], [1, "miam-ds-text"], i18n_0];
|
|
20351
20351
|
}, template: function BasketTransferLoaderComponent_Template(rf, ctx) {
|
|
@@ -20368,7 +20368,7 @@
|
|
|
20368
20368
|
}]
|
|
20369
20369
|
}], function () { return [{ type: BasketTransferService }, { type: i0__namespace.ChangeDetectorRef }]; }, null);
|
|
20370
20370
|
})();
|
|
20371
|
-
var templateObject_1$
|
|
20371
|
+
var templateObject_1$v;
|
|
20372
20372
|
|
|
20373
20373
|
var BasketTransferErrorModalComponent = /** @class */ (function () {
|
|
20374
20374
|
function BasketTransferErrorModalComponent(basketTransferService, cdr) {
|
|
@@ -20419,7 +20419,7 @@
|
|
|
20419
20419
|
i18n_0 = MSG_EXTERNAL_9059155436017318544$$LIB__WEB_COMPONENTS_BASKET_TRANSFER_BASKET_TRANSFER_ERROR_MODAL_BASKET_TRANSFER_ERROR_MODAL_COMPONENT_TS_1;
|
|
20420
20420
|
}
|
|
20421
20421
|
else {
|
|
20422
|
-
i18n_0 = $localize(templateObject_1$
|
|
20422
|
+
i18n_0 = $localize(templateObject_1$u || (templateObject_1$u = __makeTemplateObject([":\u241F1a7391c494239efe2ad440cff51f17e9a03bc6b0\u241F9059155436017318544:Fermer"], [":\u241F1a7391c494239efe2ad440cff51f17e9a03bc6b0\u241F9059155436017318544:Fermer"])));
|
|
20423
20423
|
}
|
|
20424
20424
|
var i18n_2;
|
|
20425
20425
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20483,7 +20483,7 @@
|
|
|
20483
20483
|
}]
|
|
20484
20484
|
}], function () { return [{ type: BasketTransferService }, { type: i0__namespace.ChangeDetectorRef }]; }, null);
|
|
20485
20485
|
})();
|
|
20486
|
-
var templateObject_1$
|
|
20486
|
+
var templateObject_1$u, templateObject_2$n, templateObject_3$g, templateObject_4$e;
|
|
20487
20487
|
|
|
20488
20488
|
function ListScanBasketPreviewComponent_ng_container_2_ng_miam_basket_preview_product_6_Template(rf, ctx) {
|
|
20489
20489
|
if (rf & 1) {
|
|
@@ -20586,7 +20586,7 @@
|
|
|
20586
20586
|
i18n_0 = MSG_EXTERNAL_4239310127006405587$$LIB__WEB_COMPONENTS_LIST_SCAN_BASKET_PREVIEW_BASKET_PREVIEW_COMPONENT_TS___1;
|
|
20587
20587
|
}
|
|
20588
20588
|
else {
|
|
20589
|
-
i18n_0 = $localize(templateObject_1$
|
|
20589
|
+
i18n_0 = $localize(templateObject_1$t || (templateObject_1$t = __makeTemplateObject([":\u241F0a58fc3a6ac920982fd6c8f172549f6166609cda\u241F4239310127006405587:Le produit est indisponible."], [":\u241F0a58fc3a6ac920982fd6c8f172549f6166609cda\u241F4239310127006405587:Le produit est indisponible."])));
|
|
20590
20590
|
}
|
|
20591
20591
|
var i18n_2;
|
|
20592
20592
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20625,7 +20625,7 @@
|
|
|
20625
20625
|
type: i0.Output
|
|
20626
20626
|
}] });
|
|
20627
20627
|
})();
|
|
20628
|
-
var templateObject_1$
|
|
20628
|
+
var templateObject_1$t, templateObject_2$m;
|
|
20629
20629
|
|
|
20630
20630
|
function ListScanFilesInputsComponent_div_1_ng_container_4_Template(rf, ctx) {
|
|
20631
20631
|
if (rf & 1) {
|
|
@@ -20730,7 +20730,7 @@
|
|
|
20730
20730
|
i18n_0 = MSG_EXTERNAL_3102383292942643907$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS___1;
|
|
20731
20731
|
}
|
|
20732
20732
|
else {
|
|
20733
|
-
i18n_0 = $localize(templateObject_1$
|
|
20733
|
+
i18n_0 = $localize(templateObject_1$s || (templateObject_1$s = __makeTemplateObject([":\u241F0d34d321e3c6aa810d833ba95ed446bcdd84903a\u241F3102383292942643907:Scanner ma liste"], [":\u241F0d34d321e3c6aa810d833ba95ed446bcdd84903a\u241F3102383292942643907:Scanner ma liste"])));
|
|
20734
20734
|
}
|
|
20735
20735
|
var i18n_3;
|
|
20736
20736
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20769,7 +20769,7 @@
|
|
|
20769
20769
|
type: i0.Input
|
|
20770
20770
|
}] });
|
|
20771
20771
|
})();
|
|
20772
|
-
var templateObject_1$
|
|
20772
|
+
var templateObject_1$s, templateObject_2$l;
|
|
20773
20773
|
|
|
20774
20774
|
var ListScanComponent = /** @class */ (function (_super) {
|
|
20775
20775
|
__extends(ListScanComponent, _super);
|
|
@@ -20855,7 +20855,7 @@
|
|
|
20855
20855
|
i18n_0 = MSG_EXTERNAL_5810732921987905942$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_1;
|
|
20856
20856
|
}
|
|
20857
20857
|
else {
|
|
20858
|
-
i18n_0 = $localize(templateObject_1$
|
|
20858
|
+
i18n_0 = $localize(templateObject_1$r || (templateObject_1$r = __makeTemplateObject([":\u241F6e111f99537e44fa87a07a5d0c1cf5c4ed092aa6\u241F5810732921987905942:Nous avons trouv\u00E9 pour vous"], [":\u241F6e111f99537e44fa87a07a5d0c1cf5c4ed092aa6\u241F5810732921987905942:Nous avons trouv\u00E9 pour vous"])));
|
|
20859
20859
|
}
|
|
20860
20860
|
var i18n_2;
|
|
20861
20861
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20951,7 +20951,7 @@
|
|
|
20951
20951
|
type: i0.Output
|
|
20952
20952
|
}] });
|
|
20953
20953
|
})();
|
|
20954
|
-
var templateObject_1$
|
|
20954
|
+
var templateObject_1$r, templateObject_2$k, templateObject_3$f, templateObject_4$d, templateObject_5$9, templateObject_6$7, templateObject_7$6;
|
|
20955
20955
|
|
|
20956
20956
|
var ListScanModule = /** @class */ (function () {
|
|
20957
20957
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -21046,6 +21046,47 @@
|
|
|
21046
21046
|
}(BasketAction));
|
|
21047
21047
|
|
|
21048
21048
|
var _c0$6 = ["miamMealsPlannerTopAnchor"];
|
|
21049
|
+
function MealsPlannerComponent_ng_template_0_Template(rf, ctx) {
|
|
21050
|
+
if (rf & 1) {
|
|
21051
|
+
i0__namespace.ɵɵelementStart(0, "div", 4);
|
|
21052
|
+
i0__namespace.ɵɵelementStart(1, "span", 5);
|
|
21053
|
+
i0__namespace.ɵɵtext(2, "Chargement");
|
|
21054
|
+
i0__namespace.ɵɵelementEnd();
|
|
21055
|
+
i0__namespace.ɵɵnamespaceSVG();
|
|
21056
|
+
i0__namespace.ɵɵelementStart(3, "svg", 6);
|
|
21057
|
+
i0__namespace.ɵɵelement(4, "path", 7);
|
|
21058
|
+
i0__namespace.ɵɵelement(5, "path", 8);
|
|
21059
|
+
i0__namespace.ɵɵelement(6, "path", 9);
|
|
21060
|
+
i0__namespace.ɵɵelement(7, "path", 10);
|
|
21061
|
+
i0__namespace.ɵɵelement(8, "path", 11);
|
|
21062
|
+
i0__namespace.ɵɵelement(9, "path", 12);
|
|
21063
|
+
i0__namespace.ɵɵelement(10, "path", 13);
|
|
21064
|
+
i0__namespace.ɵɵelement(11, "path", 14);
|
|
21065
|
+
i0__namespace.ɵɵelementEnd();
|
|
21066
|
+
i0__namespace.ɵɵelementEnd();
|
|
21067
|
+
}
|
|
21068
|
+
}
|
|
21069
|
+
function MealsPlannerComponent_div_3_ng_container_1_Template(rf, ctx) {
|
|
21070
|
+
if (rf & 1) {
|
|
21071
|
+
i0__namespace.ɵɵelementContainer(0);
|
|
21072
|
+
}
|
|
21073
|
+
}
|
|
21074
|
+
function MealsPlannerComponent_div_3_Template(rf, ctx) {
|
|
21075
|
+
if (rf & 1) {
|
|
21076
|
+
i0__namespace.ɵɵelementStart(0, "div", 15);
|
|
21077
|
+
i0__namespace.ɵɵtemplate(1, MealsPlannerComponent_div_3_ng_container_1_Template, 1, 0, "ng-container", 16);
|
|
21078
|
+
i0__namespace.ɵɵelementStart(2, "span", 17);
|
|
21079
|
+
i0__namespace.ɵɵi18n(3, 18);
|
|
21080
|
+
i0__namespace.ɵɵelementEnd();
|
|
21081
|
+
i0__namespace.ɵɵelementEnd();
|
|
21082
|
+
}
|
|
21083
|
+
if (rf & 2) {
|
|
21084
|
+
i0__namespace.ɵɵnextContext();
|
|
21085
|
+
var _r0 = i0__namespace.ɵɵreference(1);
|
|
21086
|
+
i0__namespace.ɵɵadvance(1);
|
|
21087
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r0);
|
|
21088
|
+
}
|
|
21089
|
+
}
|
|
21049
21090
|
var recipeIncludes$4 = ['recipe-provider', 'sponsors', 'tags'];
|
|
21050
21091
|
var recipeSparseFields$4 = {
|
|
21051
21092
|
recipes: __spread(['title', 'number-of-guests', 'media-url', 'video-id', 'filigrane-logo-url', 'difficulty', 'preparation-time', 'cooking-time',
|
|
@@ -21080,6 +21121,7 @@
|
|
|
21080
21121
|
_this.timeOnStart = Date.now();
|
|
21081
21122
|
_this.featureIsAuthorized = false;
|
|
21082
21123
|
_this.previousBasketEntries = [];
|
|
21124
|
+
_this.plannerDashboardLoading = false;
|
|
21083
21125
|
// Progress bar
|
|
21084
21126
|
_this.usedBudget = 0;
|
|
21085
21127
|
_this.maxBudget = 0;
|
|
@@ -21130,9 +21172,18 @@
|
|
|
21130
21172
|
_this.initForm();
|
|
21131
21173
|
_this.pageview();
|
|
21132
21174
|
_this.subscriptions.push(_this.initRecipesPricing());
|
|
21133
|
-
_this.
|
|
21134
|
-
|
|
21135
|
-
|
|
21175
|
+
_this.plannerDashboardLoading = true;
|
|
21176
|
+
_this.cdr.detectChanges();
|
|
21177
|
+
_this.subscriptions.push(_this.loadPlannerDashboardHTML().subscribe({
|
|
21178
|
+
next: function (plannerDashboardHTML) {
|
|
21179
|
+
_this.plannerDashboardHTML = plannerDashboardHTML;
|
|
21180
|
+
_this.plannerDashboardLoading = false;
|
|
21181
|
+
_this.cdr.detectChanges();
|
|
21182
|
+
},
|
|
21183
|
+
error: function () {
|
|
21184
|
+
_this.plannerDashboardLoading = false;
|
|
21185
|
+
_this.cdr.detectChanges();
|
|
21186
|
+
}
|
|
21136
21187
|
}));
|
|
21137
21188
|
}));
|
|
21138
21189
|
};
|
|
@@ -21363,14 +21414,31 @@
|
|
|
21363
21414
|
var _t = void 0;
|
|
21364
21415
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.topAnchor = _t.first);
|
|
21365
21416
|
}
|
|
21366
|
-
}, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls:
|
|
21417
|
+
}, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 5, vars: 2, consts: function () {
|
|
21418
|
+
var i18n_1;
|
|
21419
|
+
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
21420
|
+
var MSG_EXTERNAL_7273104079436475690$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_COMPONENT_TS__2 = goog.getMsg(" Nous pr\u00E9parons vos recettes... ");
|
|
21421
|
+
i18n_1 = MSG_EXTERNAL_7273104079436475690$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_COMPONENT_TS__2;
|
|
21422
|
+
}
|
|
21423
|
+
else {
|
|
21424
|
+
i18n_1 = $localize(templateObject_1$q || (templateObject_1$q = __makeTemplateObject([":\u241F5ad4fd8232f99c98138cc45a650f52787ffd9271\u241F7273104079436475690: Nous pr\u00E9parons vos recettes... "], [":\u241F5ad4fd8232f99c98138cc45a650f52787ffd9271\u241F7273104079436475690: Nous pr\u00E9parons vos recettes... "])));
|
|
21425
|
+
}
|
|
21426
|
+
return [["plannerDashboardLoader", ""], [1, "mealz-planner-dashboard__wrapper"], ["class", "mealz-planner-dashboard__loader-container", 4, "ngIf"], [1, "mealz-planner-dashboard__container", 3, "innerHTML"], ["role", "status", "aria-live", "polite", 1, "mealz-planner-dashboard__loader"], [1, "mealz-planner-dashboard__loader__label"], ["viewBox", "0 0 80 80", "aria-hidden", "true", "focusable", "false", 1, "mealz-planner-dashboard__loader__icon"], ["d", "M43.75 20V10C43.75 9.00544 43.3549 8.05161 42.6516 7.34835C41.9484 6.64509 40.9946 6.25 40 6.25C39.0054 6.25 38.0516 6.64509 37.3483 7.34835C36.6451 8.05161 36.25 9.00544 36.25 10V20C36.25 20.9946 36.6451 21.9484 37.3483 22.6516C38.0516 23.3549 39.0054 23.75 40 23.75C40.9946 23.75 41.9484 23.3549 42.6516 22.6516C43.3549 21.9484 43.75 20.9946 43.75 20Z", 1, "mealz-planner-dashboard__loader__segment", 2, "animation-delay", "0s"], ["d", "M55.5765 29.3234C55.1213 29.5122 54.6333 29.6094 54.1405 29.6094C53.3986 29.6093 52.6734 29.3893 52.0567 28.977C51.4399 28.5648 50.9593 27.9789 50.6756 27.2934C50.392 26.6079 50.318 25.8537 50.463 25.1262C50.608 24.3987 50.9656 23.7305 51.4905 23.2063L58.5529 16.125C59.2574 15.4205 60.2129 15.0247 61.2092 15.0247C62.2055 15.0247 63.161 15.4205 63.8654 16.125C64.5699 16.8295 64.9657 17.785 64.9657 18.7813C64.9657 19.7775 64.5699 20.733 63.8654 21.4375L56.7936 28.5094C56.4453 28.8581 56.0317 29.1347 55.5765 29.3234Z", 1, "mealz-planner-dashboard__loader__segment", 2, "animation-delay", "0.15s"], ["d", "M60 36.25H70C70.9946 36.25 71.9484 36.6451 72.6516 37.3484C73.3549 38.0516 73.75 39.0054 73.75 40C73.75 40.9946 73.3549 41.9484 72.6516 42.6516C71.9484 43.3549 70.9946 43.75 70 43.75H60C59.0054 43.75 58.0516 43.3549 57.3484 42.6516C56.6451 41.9484 56.25 40.9946 56.25 40C56.25 39.0054 56.6451 38.0516 57.3484 37.3484C58.0516 36.6451 59.0054 36.25 60 36.25Z", 1, "mealz-planner-dashboard__loader__segment", 2, "animation-delay", "0.3s"], ["d", "M55.5749 50.6763C56.0307 50.8651 56.4448 51.1418 56.7936 51.4906L63.8655 58.5625C64.57 59.267 64.9657 60.2225 64.9657 61.2188C64.9657 62.215 64.57 63.1705 63.8655 63.875C63.161 64.5795 62.2055 64.9753 61.2092 64.9753C60.213 64.9753 59.2575 64.5795 58.553 63.875L51.4811 56.8031C51.1323 56.4543 50.8556 56.0402 50.6668 55.5844C50.478 55.1287 50.3809 54.6402 50.3809 54.1469C50.3809 53.6536 50.478 53.1651 50.6668 52.7093C50.8556 52.2536 51.1323 51.8395 51.4811 51.4906C51.8299 51.1418 52.2441 50.8651 52.6998 50.6763C53.1556 50.4875 53.6441 50.3904 54.1374 50.3904C54.6307 50.3904 55.1192 50.4875 55.5749 50.6763Z", 1, "mealz-planner-dashboard__loader__segment", 2, "animation-delay", "0.45s"], ["d", "M37.3483 57.3484C38.0516 56.6451 39.0054 56.25 40 56.25C40.9946 56.25 41.9484 56.6451 42.6516 57.3484C43.3549 58.0516 43.75 59.0054 43.75 60V70C43.75 70.9946 43.3549 71.9484 42.6516 72.6516C41.9484 73.3549 40.9946 73.75 40 73.75C39.0054 73.75 38.0516 73.3549 37.3483 72.6516C36.6451 71.9484 36.25 70.9946 36.25 70V60C36.25 59.0054 36.6451 58.0516 37.3483 57.3484Z", 1, "mealz-planner-dashboard__loader__segment", 2, "animation-delay", "0.6s"], ["d", "M16.1344 58.5625L23.2063 51.4906C23.9108 50.7862 24.8663 50.3904 25.8626 50.3904C26.8588 50.3904 27.8143 50.7862 28.5188 51.4906C29.2233 52.1951 29.6191 53.1506 29.6191 54.1469C29.6191 55.1432 29.2233 56.0987 28.5188 56.8031L21.4469 63.875C20.7425 64.5795 19.787 64.9753 18.7907 64.9753C17.7944 64.9753 16.8389 64.5795 16.1344 63.875C15.43 63.1705 15.0342 62.215 15.0342 61.2188C15.0342 60.2225 15.43 59.267 16.1344 58.5625Z", 1, "mealz-planner-dashboard__loader__segment", 2, "animation-delay", "0.75s"], ["d", "M23.75 40C23.75 39.0054 23.3549 38.0516 22.6516 37.3484C21.9484 36.6451 20.9946 36.25 20 36.25H10C9.00544 36.25 8.05161 36.6451 7.34835 37.3484C6.64509 38.0516 6.25 39.0054 6.25 40C6.25 40.9946 6.64509 41.9484 7.34835 42.6516C8.05161 43.3549 9.00544 43.75 10 43.75H20C20.9946 43.75 21.9484 43.3549 22.6516 42.6516C23.3549 41.9484 23.75 40.9946 23.75 40Z", 1, "mealz-planner-dashboard__loader__segment", 2, "animation-delay", "0.9s"], ["d", "M18.7809 15.0341C19.7772 15.0341 20.7327 15.4299 21.4372 16.1344L28.5184 23.1969C29.2229 23.9014 29.6187 24.8568 29.6187 25.8531C29.6187 26.8494 29.2229 27.8049 28.5184 28.5094C27.8139 29.2139 26.8585 29.6096 25.8622 29.6096C24.8659 29.6096 23.9104 29.2139 23.2059 28.5094L16.1247 21.4469C15.4202 20.7424 15.0244 19.7869 15.0244 18.7906C15.0244 17.7943 15.4202 16.8389 16.1247 16.1344C16.8291 15.4299 17.7846 15.0341 18.7809 15.0341Z", 1, "mealz-planner-dashboard__loader__segment", 2, "animation-delay", "1.05s"], [1, "mealz-planner-dashboard__loader-container"], [4, "ngTemplateOutlet"], [1, "miam-ds-text", "size-xs", "weight-l"], i18n_1];
|
|
21427
|
+
}, template: function MealsPlannerComponent_Template(rf, ctx) {
|
|
21367
21428
|
if (rf & 1) {
|
|
21368
|
-
i0__namespace.ɵɵ
|
|
21429
|
+
i0__namespace.ɵɵtemplate(0, MealsPlannerComponent_ng_template_0_Template, 12, 0, "ng-template", null, 0, i0__namespace.ɵɵtemplateRefExtractor);
|
|
21430
|
+
i0__namespace.ɵɵelementStart(2, "div", 1);
|
|
21431
|
+
i0__namespace.ɵɵtemplate(3, MealsPlannerComponent_div_3_Template, 4, 1, "div", 2);
|
|
21432
|
+
i0__namespace.ɵɵelement(4, "div", 3);
|
|
21433
|
+
i0__namespace.ɵɵelementEnd();
|
|
21369
21434
|
}
|
|
21370
21435
|
if (rf & 2) {
|
|
21436
|
+
i0__namespace.ɵɵadvance(3);
|
|
21437
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.plannerDashboardLoading);
|
|
21438
|
+
i0__namespace.ɵɵadvance(1);
|
|
21371
21439
|
i0__namespace.ɵɵproperty("innerHTML", ctx.plannerDashboardHTML, i0__namespace.ɵɵsanitizeHtml);
|
|
21372
21440
|
}
|
|
21373
|
-
}, styles: [".miam-meals-planner{display:flex;flex-direction:column;width:100%;height:100%;border-bottom:1px solid #d9dde1}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb{display:flex;align-items:center;padding:24px;background:#fff;border-bottom:1px solid #d9dde1}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb.hidden{display:none}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb a{margin:0 4px;font-weight:500;font-size:14px;line-height:150%}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb a.inactive{color:#0f191f}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb a.active{font-weight:900;color:var(--m-color-primary)}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb .chevron-right{transform:rotate(-90deg)}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb .chevron-right .icon-container svg path:last-child{fill:#0f191f}.miam-meals-planner .miam-meals-planner__content{display:flex;height:100%;width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form.reduced{max-width:300px;border-right:1px solid #d9dde1}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-preview,.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-result{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-preview.reduced{width:0}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-catalog{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-confirmation{width:100%;padding:0 80px}@media (max-width:1023px){.miam-meals-planner .miam-meals-planner__header{display:none}.miam-meals-planner .miam-meals-planner__content{flex-direction:column}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form.reduced{max-width:unset;border-right:unset}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-confirmation{padding:0 15px}}.miam-meals-planner .miam-meals-planner__catalog{padding:16px}.miam-meals-planner ng-miam-recipe-card .miam-recipe-card{height:var(--m-catalog-card-height);width:var(--m-catalog-card-width)}"], encapsulation: 2, changeDetection: 0 });
|
|
21441
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgTemplateOutlet], styles: [".mealz-planner-dashboard__wrapper .mealz-planner-dashboard__loader-container{overflow:hidden;background-color:#fff;animation:planner-loader-expand .25s ease-in-out forwards;width:100%;display:flex;justify-content:center;align-items:center;flex-direction:column;gap:8px}.mealz-planner-dashboard__wrapper .mealz-planner-dashboard__loader-container .mealz-planner-dashboard__loader{width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.mealz-planner-dashboard__wrapper .mealz-planner-dashboard__container{position:relative}@keyframes planner-loader-expand{0%{height:0}to{height:90dvh}}.mealz-planner-dashboard__loader{display:flex;align-items:center;justify-content:center;color:var(--m-color-primary,#24748f)}.mealz-planner-dashboard__loader .mealz-planner-dashboard__loader__icon{width:80px;height:80px}.mealz-planner-dashboard__loader .mealz-planner-dashboard__loader__segment{fill:#e4edf1;animation:loader-pulse 1.2s linear infinite}.mealz-planner-dashboard__loader .mealz-planner-dashboard__loader__label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;white-space:nowrap;border:0;clip:rect(0,0,0,0)}@keyframes loader-pulse{0%,to{fill:#e4edf1}15%,85%{fill:currentColor}}@media (prefers-reduced-motion:reduce){.loader .loader__segment{animation:none;fill:currentColor;opacity:.6}}.miam-meals-planner{display:flex;flex-direction:column;width:100%;height:100%;border-bottom:1px solid #d9dde1}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb{display:flex;align-items:center;padding:24px;background:#fff;border-bottom:1px solid #d9dde1}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb.hidden{display:none}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb a{margin:0 4px;font-weight:500;font-size:14px;line-height:150%}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb a.inactive{color:#0f191f}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb a.active{font-weight:900;color:var(--m-color-primary)}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb .chevron-right{transform:rotate(-90deg)}.miam-meals-planner .miam-meals-planner__header .miam-meals-planner__header__breadcrumb .chevron-right .icon-container svg path:last-child{fill:#0f191f}.miam-meals-planner .miam-meals-planner__content{display:flex;height:100%;width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form.reduced{max-width:300px;border-right:1px solid #d9dde1}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-preview,.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-result{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-preview.reduced{width:0}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-catalog{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-confirmation{width:100%;padding:0 80px}@media (max-width:1023px){.miam-meals-planner .miam-meals-planner__header{display:none}.miam-meals-planner .miam-meals-planner__content{flex-direction:column}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form{width:100%}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-form.reduced{max-width:unset;border-right:unset}.miam-meals-planner .miam-meals-planner__content ng-miam-meals-planner-basket-confirmation{padding:0 15px}}.miam-meals-planner .miam-meals-planner__catalog{padding:16px}.miam-meals-planner ng-miam-recipe-card .miam-recipe-card{height:var(--m-catalog-card-height);width:var(--m-catalog-card-width)}"], encapsulation: 2, changeDetection: 0 });
|
|
21374
21442
|
(function () {
|
|
21375
21443
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(MealsPlannerComponent, [{
|
|
21376
21444
|
type: i0.Component,
|
|
@@ -21386,6 +21454,7 @@
|
|
|
21386
21454
|
args: ['miamMealsPlannerTopAnchor']
|
|
21387
21455
|
}] });
|
|
21388
21456
|
})();
|
|
21457
|
+
var templateObject_1$q;
|
|
21389
21458
|
|
|
21390
21459
|
/**
|
|
21391
21460
|
* This is an angular component design to be a web component
|
|
@@ -21648,17 +21717,17 @@
|
|
|
21648
21717
|
|
|
21649
21718
|
function RecipeCardComponent_div_1_div_7_ng_miam_like_button_1_Template(rf, ctx) {
|
|
21650
21719
|
if (rf & 1) {
|
|
21651
|
-
i0__namespace.ɵɵelement(0, "ng-miam-like-button",
|
|
21720
|
+
i0__namespace.ɵɵelement(0, "ng-miam-like-button", 33);
|
|
21652
21721
|
}
|
|
21653
21722
|
if (rf & 2) {
|
|
21654
|
-
var
|
|
21655
|
-
i0__namespace.ɵɵproperty("recipe",
|
|
21723
|
+
var ctx_r14 = i0__namespace.ɵɵnextContext(3);
|
|
21724
|
+
i0__namespace.ɵɵproperty("recipe", ctx_r14.recipe)("originTrace", ctx_r14.eventTrace);
|
|
21656
21725
|
}
|
|
21657
21726
|
}
|
|
21658
21727
|
function RecipeCardComponent_div_1_div_7_Template(rf, ctx) {
|
|
21659
21728
|
if (rf & 1) {
|
|
21660
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21661
|
-
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_7_ng_miam_like_button_1_Template, 1, 2, "ng-miam-like-button",
|
|
21729
|
+
i0__namespace.ɵɵelementStart(0, "div", 32);
|
|
21730
|
+
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_7_ng_miam_like_button_1_Template, 1, 2, "ng-miam-like-button", 28);
|
|
21662
21731
|
i0__namespace.ɵɵpipe(2, "async");
|
|
21663
21732
|
i0__namespace.ɵɵelementEnd();
|
|
21664
21733
|
}
|
|
@@ -21668,285 +21737,265 @@
|
|
|
21668
21737
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r2.displayLikesBottom && i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.userService.isLogged$));
|
|
21669
21738
|
}
|
|
21670
21739
|
}
|
|
21671
|
-
function
|
|
21740
|
+
function RecipeCardComponent_div_1_div_9_img_1_Template(rf, ctx) {
|
|
21672
21741
|
if (rf & 1) {
|
|
21673
|
-
i0__namespace.ɵɵelement(0, "
|
|
21742
|
+
i0__namespace.ɵɵelement(0, "img", 37);
|
|
21674
21743
|
}
|
|
21675
21744
|
}
|
|
21676
|
-
function
|
|
21745
|
+
function RecipeCardComponent_div_1_div_9_img_2_Template(rf, ctx) {
|
|
21677
21746
|
if (rf & 1) {
|
|
21678
|
-
i0__namespace.ɵɵ
|
|
21679
|
-
i0__namespace.ɵɵelement(1, "img", 36);
|
|
21680
|
-
i0__namespace.ɵɵelementEnd();
|
|
21681
|
-
}
|
|
21682
|
-
if (rf & 2) {
|
|
21683
|
-
var ctx_r15 = i0__namespace.ɵɵnextContext(3);
|
|
21684
|
-
i0__namespace.ɵɵadvance(1);
|
|
21685
|
-
i0__namespace.ɵɵproperty("src", ctx_r15.recipe.sponsorLogoUrl, i0__namespace.ɵɵsanitizeUrl)("alt", "Logo du sponsor " + ctx_r15.recipe.sponsorName);
|
|
21747
|
+
i0__namespace.ɵɵelement(0, "img", 38);
|
|
21686
21748
|
}
|
|
21687
21749
|
}
|
|
21688
|
-
function
|
|
21750
|
+
function RecipeCardComponent_div_1_div_9_Template(rf, ctx) {
|
|
21689
21751
|
if (rf & 1) {
|
|
21690
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21691
|
-
i0__namespace.ɵɵtemplate(1,
|
|
21692
|
-
i0__namespace.ɵɵtemplate(2,
|
|
21752
|
+
i0__namespace.ɵɵelementStart(0, "div", 34);
|
|
21753
|
+
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_9_img_1_Template, 1, 0, "img", 35);
|
|
21754
|
+
i0__namespace.ɵɵtemplate(2, RecipeCardComponent_div_1_div_9_img_2_Template, 1, 0, "img", 36);
|
|
21693
21755
|
i0__namespace.ɵɵelementEnd();
|
|
21694
21756
|
}
|
|
21695
21757
|
if (rf & 2) {
|
|
21696
21758
|
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
21759
|
+
i0__namespace.ɵɵproperty("ngClass", ctx_r3.isDrink ? "drink" : "food");
|
|
21697
21760
|
i0__namespace.ɵɵadvance(1);
|
|
21698
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r3.
|
|
21761
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r3.isDrink);
|
|
21699
21762
|
i0__namespace.ɵɵadvance(1);
|
|
21700
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r3.
|
|
21701
|
-
}
|
|
21702
|
-
}
|
|
21703
|
-
function RecipeCardComponent_div_1_div_9_ng_miam_recipe_promotion_badge_1_Template(rf, ctx) {
|
|
21704
|
-
if (rf & 1) {
|
|
21705
|
-
i0__namespace.ɵɵelement(0, "ng-miam-recipe-promotion-badge");
|
|
21706
|
-
}
|
|
21707
|
-
}
|
|
21708
|
-
function RecipeCardComponent_div_1_div_9_img_2_Template(rf, ctx) {
|
|
21709
|
-
if (rf & 1) {
|
|
21710
|
-
i0__namespace.ɵɵelement(0, "img", 40);
|
|
21711
|
-
}
|
|
21712
|
-
}
|
|
21713
|
-
function RecipeCardComponent_div_1_div_9_img_3_Template(rf, ctx) {
|
|
21714
|
-
if (rf & 1) {
|
|
21715
|
-
i0__namespace.ɵɵelement(0, "img", 41);
|
|
21763
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r3.isDrink);
|
|
21716
21764
|
}
|
|
21717
21765
|
}
|
|
21718
|
-
function
|
|
21766
|
+
function RecipeCardComponent_div_1_div_10_Template(rf, ctx) {
|
|
21719
21767
|
if (rf & 1) {
|
|
21720
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21721
|
-
i0__namespace.ɵɵ
|
|
21722
|
-
i0__namespace.ɵɵtemplate(2, RecipeCardComponent_div_1_div_9_img_2_Template, 1, 0, "img", 38);
|
|
21723
|
-
i0__namespace.ɵɵtemplate(3, RecipeCardComponent_div_1_div_9_img_3_Template, 1, 0, "img", 39);
|
|
21768
|
+
i0__namespace.ɵɵelementStart(0, "div", 39);
|
|
21769
|
+
i0__namespace.ɵɵelement(1, "img", 40);
|
|
21724
21770
|
i0__namespace.ɵɵelementEnd();
|
|
21725
21771
|
}
|
|
21726
21772
|
if (rf & 2) {
|
|
21727
21773
|
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
21728
|
-
i0__namespace.ɵɵproperty("ngClass", ctx_r4.isDrink ? "drink" : "food");
|
|
21729
21774
|
i0__namespace.ɵɵadvance(1);
|
|
21730
|
-
i0__namespace.ɵɵproperty("
|
|
21731
|
-
i0__namespace.ɵɵadvance(1);
|
|
21732
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r4.isDrink);
|
|
21733
|
-
i0__namespace.ɵɵadvance(1);
|
|
21734
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r4.isDrink);
|
|
21775
|
+
i0__namespace.ɵɵproperty("src", ctx_r4.recipe.sponsorLogoUrl, i0__namespace.ɵɵsanitizeUrl)("alt", "Logo du sponsor " + ctx_r4.recipe.sponsorName);
|
|
21735
21776
|
}
|
|
21736
21777
|
}
|
|
21737
|
-
function
|
|
21778
|
+
function RecipeCardComponent_div_1_ng_miam_recipe_promotion_badge_11_Template(rf, ctx) {
|
|
21738
21779
|
if (rf & 1) {
|
|
21739
|
-
i0__namespace.ɵɵ
|
|
21780
|
+
i0__namespace.ɵɵelement(0, "ng-miam-recipe-promotion-badge");
|
|
21781
|
+
}
|
|
21782
|
+
}
|
|
21783
|
+
function RecipeCardComponent_div_1_div_21_div_5_Template(rf, ctx) {
|
|
21784
|
+
if (rf & 1) {
|
|
21785
|
+
i0__namespace.ɵɵelementStart(0, "div", 45);
|
|
21740
21786
|
i0__namespace.ɵɵtext(1);
|
|
21741
21787
|
i0__namespace.ɵɵelementEnd();
|
|
21742
21788
|
}
|
|
21743
21789
|
if (rf & 2) {
|
|
21744
|
-
var
|
|
21790
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(3);
|
|
21745
21791
|
i0__namespace.ɵɵadvance(1);
|
|
21746
|
-
i0__namespace.ɵɵtextInterpolate1(" + ",
|
|
21792
|
+
i0__namespace.ɵɵtextInterpolate1(" + ", ctx_r17.recipe.modifiedIngredients.length - 2, " ");
|
|
21747
21793
|
}
|
|
21748
21794
|
}
|
|
21749
|
-
function
|
|
21795
|
+
function RecipeCardComponent_div_1_div_21_Template(rf, ctx) {
|
|
21750
21796
|
if (rf & 1) {
|
|
21751
|
-
var
|
|
21752
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21753
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
21754
|
-
i0__namespace.ɵɵelementStart(2, "img",
|
|
21755
|
-
i0__namespace.ɵɵlistener("error", function
|
|
21797
|
+
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21798
|
+
i0__namespace.ɵɵelementStart(0, "div", 41);
|
|
21799
|
+
i0__namespace.ɵɵelementStart(1, "div", 42);
|
|
21800
|
+
i0__namespace.ɵɵelementStart(2, "img", 43);
|
|
21801
|
+
i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_div_21_Template_img_error_2_listener($event) { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(2); return ($event.target["src"] = ctx_r18.contextService.defaultIngredientPicture); });
|
|
21756
21802
|
i0__namespace.ɵɵelementEnd();
|
|
21757
21803
|
i0__namespace.ɵɵelementEnd();
|
|
21758
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
21759
|
-
i0__namespace.ɵɵelementStart(4, "img",
|
|
21760
|
-
i0__namespace.ɵɵlistener("error", function
|
|
21804
|
+
i0__namespace.ɵɵelementStart(3, "div", 42);
|
|
21805
|
+
i0__namespace.ɵɵelementStart(4, "img", 43);
|
|
21806
|
+
i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_div_21_Template_img_error_4_listener($event) { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r20 = i0__namespace.ɵɵnextContext(2); return ($event.target["src"] = ctx_r20.contextService.defaultIngredientPicture); });
|
|
21761
21807
|
i0__namespace.ɵɵelementEnd();
|
|
21762
21808
|
i0__namespace.ɵɵelementEnd();
|
|
21763
|
-
i0__namespace.ɵɵtemplate(5,
|
|
21809
|
+
i0__namespace.ɵɵtemplate(5, RecipeCardComponent_div_1_div_21_div_5_Template, 2, 1, "div", 44);
|
|
21764
21810
|
i0__namespace.ɵɵelementEnd();
|
|
21765
21811
|
}
|
|
21766
21812
|
if (rf & 2) {
|
|
21767
|
-
var
|
|
21768
|
-
i0__namespace.ɵɵattribute("aria-label",
|
|
21813
|
+
var ctx_r6 = i0__namespace.ɵɵnextContext(2);
|
|
21814
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r6.getIngredientsAriaLabel());
|
|
21769
21815
|
i0__namespace.ɵɵadvance(2);
|
|
21770
|
-
i0__namespace.ɵɵproperty("src",
|
|
21816
|
+
i0__namespace.ɵɵproperty("src", ctx_r6.ingredientPicture(ctx_r6.recipe.modifiedIngredients[0]), i0__namespace.ɵɵsanitizeUrl)("alt", "");
|
|
21771
21817
|
i0__namespace.ɵɵadvance(2);
|
|
21772
|
-
i0__namespace.ɵɵproperty("src",
|
|
21818
|
+
i0__namespace.ɵɵproperty("src", ctx_r6.ingredientPicture(ctx_r6.recipe.modifiedIngredients[1]), i0__namespace.ɵɵsanitizeUrl)("alt", "");
|
|
21773
21819
|
i0__namespace.ɵɵadvance(1);
|
|
21774
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
21820
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r6.recipe.modifiedIngredients.length > 2);
|
|
21775
21821
|
}
|
|
21776
21822
|
}
|
|
21777
|
-
function
|
|
21823
|
+
function RecipeCardComponent_div_1_div_24_div_1_Template(rf, ctx) {
|
|
21778
21824
|
if (rf & 1) {
|
|
21779
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21780
|
-
i0__namespace.ɵɵelement(1, "img",
|
|
21781
|
-
i0__namespace.ɵɵelementStart(2, "span",
|
|
21825
|
+
i0__namespace.ɵɵelementStart(0, "div", 49);
|
|
21826
|
+
i0__namespace.ɵɵelement(1, "img", 50);
|
|
21827
|
+
i0__namespace.ɵɵelementStart(2, "span", 51);
|
|
21782
21828
|
i0__namespace.ɵɵtext(3);
|
|
21783
21829
|
i0__namespace.ɵɵelementEnd();
|
|
21784
21830
|
i0__namespace.ɵɵelementEnd();
|
|
21785
21831
|
}
|
|
21786
21832
|
if (rf & 2) {
|
|
21787
|
-
var
|
|
21788
|
-
i0__namespace.ɵɵattribute("aria-label", "Difficult\u00E9: " +
|
|
21833
|
+
var ctx_r21 = i0__namespace.ɵɵnextContext(3);
|
|
21834
|
+
i0__namespace.ɵɵattribute("aria-label", "Difficult\u00E9: " + ctx_r21.recipeService.difficultyLevels[ctx_r21.recipe.difficulty - 1].label);
|
|
21789
21835
|
i0__namespace.ɵɵadvance(3);
|
|
21790
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
21836
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r21.recipeService.difficultyLevels[ctx_r21.recipe.difficulty - 1].label);
|
|
21791
21837
|
}
|
|
21792
21838
|
}
|
|
21793
|
-
function
|
|
21839
|
+
function RecipeCardComponent_div_1_div_24_div_2_Template(rf, ctx) {
|
|
21794
21840
|
if (rf & 1) {
|
|
21795
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21796
|
-
i0__namespace.ɵɵelement(1, "img",
|
|
21797
|
-
i0__namespace.ɵɵelementStart(2, "span",
|
|
21841
|
+
i0__namespace.ɵɵelementStart(0, "div", 52);
|
|
21842
|
+
i0__namespace.ɵɵelement(1, "img", 53);
|
|
21843
|
+
i0__namespace.ɵɵelementStart(2, "span", 51);
|
|
21798
21844
|
i0__namespace.ɵɵtext(3);
|
|
21799
21845
|
i0__namespace.ɵɵelementEnd();
|
|
21800
21846
|
i0__namespace.ɵɵelementEnd();
|
|
21801
21847
|
}
|
|
21802
21848
|
if (rf & 2) {
|
|
21803
|
-
var
|
|
21804
|
-
i0__namespace.ɵɵattribute("aria-label", "Temps de pr\u00E9paration: " +
|
|
21849
|
+
var ctx_r22 = i0__namespace.ɵɵnextContext(3);
|
|
21850
|
+
i0__namespace.ɵɵattribute("aria-label", "Temps de pr\u00E9paration: " + ctx_r22.recipe.totalTime);
|
|
21805
21851
|
i0__namespace.ɵɵadvance(3);
|
|
21806
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
21852
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r22.recipe.totalTime);
|
|
21807
21853
|
}
|
|
21808
21854
|
}
|
|
21809
|
-
function
|
|
21855
|
+
function RecipeCardComponent_div_1_div_24_Template(rf, ctx) {
|
|
21810
21856
|
if (rf & 1) {
|
|
21811
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21812
|
-
i0__namespace.ɵɵtemplate(1,
|
|
21813
|
-
i0__namespace.ɵɵtemplate(2,
|
|
21857
|
+
i0__namespace.ɵɵelementStart(0, "div", 46);
|
|
21858
|
+
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_24_div_1_Template, 4, 2, "div", 47);
|
|
21859
|
+
i0__namespace.ɵɵtemplate(2, RecipeCardComponent_div_1_div_24_div_2_Template, 4, 2, "div", 48);
|
|
21814
21860
|
i0__namespace.ɵɵelementEnd();
|
|
21815
21861
|
}
|
|
21816
21862
|
if (rf & 2) {
|
|
21817
|
-
var
|
|
21863
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
21818
21864
|
i0__namespace.ɵɵadvance(1);
|
|
21819
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
21865
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r7.recipe.difficulty);
|
|
21820
21866
|
i0__namespace.ɵɵadvance(1);
|
|
21821
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
21867
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r7.recipe.totalTime);
|
|
21822
21868
|
}
|
|
21823
21869
|
}
|
|
21824
|
-
function
|
|
21870
|
+
function RecipeCardComponent_div_1_ng_miam_recipe_promotion_badge_26_Template(rf, ctx) {
|
|
21825
21871
|
if (rf & 1) {
|
|
21826
|
-
i0__namespace.ɵɵelement(0, "ng-miam-recipe-promotion-badge",
|
|
21872
|
+
i0__namespace.ɵɵelement(0, "ng-miam-recipe-promotion-badge", 54);
|
|
21827
21873
|
}
|
|
21828
21874
|
}
|
|
21829
|
-
function
|
|
21875
|
+
function RecipeCardComponent_div_1_div_27_Template(rf, ctx) {
|
|
21830
21876
|
if (rf & 1) {
|
|
21831
|
-
var
|
|
21832
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21833
|
-
i0__namespace.ɵɵelementStart(1, "ng-miam-recipe-pricing",
|
|
21834
|
-
i0__namespace.ɵɵlistener("priceSet", function
|
|
21877
|
+
var _r24_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21878
|
+
i0__namespace.ɵɵelementStart(0, "div", 55);
|
|
21879
|
+
i0__namespace.ɵɵelementStart(1, "ng-miam-recipe-pricing", 56);
|
|
21880
|
+
i0__namespace.ɵɵlistener("priceSet", function RecipeCardComponent_div_1_div_27_Template_ng_miam_recipe_pricing_priceSet_1_listener($event) { i0__namespace.ɵɵrestoreView(_r24_1); var ctx_r23 = i0__namespace.ɵɵnextContext(2); return ctx_r23.updateIsInPromotion($event); });
|
|
21835
21881
|
i0__namespace.ɵɵelementEnd();
|
|
21836
21882
|
i0__namespace.ɵɵelementEnd();
|
|
21837
21883
|
}
|
|
21838
21884
|
if (rf & 2) {
|
|
21839
|
-
var
|
|
21885
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
21840
21886
|
i0__namespace.ɵɵadvance(1);
|
|
21841
|
-
i0__namespace.ɵɵproperty("recipeId",
|
|
21887
|
+
i0__namespace.ɵɵproperty("recipeId", ctx_r9.recipe.id)("serves", ctx_r9.recipe.modifiedGuests || +ctx_r9.recipe.guests)("inViewport", ctx_r9.inViewport);
|
|
21842
21888
|
}
|
|
21843
21889
|
}
|
|
21844
|
-
function
|
|
21890
|
+
function RecipeCardComponent_div_1_ng_miam_like_button_29_Template(rf, ctx) {
|
|
21845
21891
|
if (rf & 1) {
|
|
21846
|
-
i0__namespace.ɵɵelement(0, "ng-miam-like-button",
|
|
21892
|
+
i0__namespace.ɵɵelement(0, "ng-miam-like-button", 33);
|
|
21847
21893
|
}
|
|
21848
21894
|
if (rf & 2) {
|
|
21849
|
-
var
|
|
21850
|
-
i0__namespace.ɵɵproperty("recipe",
|
|
21895
|
+
var ctx_r10 = i0__namespace.ɵɵnextContext(2);
|
|
21896
|
+
i0__namespace.ɵɵproperty("recipe", ctx_r10.recipe)("originTrace", ctx_r10.eventTrace);
|
|
21851
21897
|
}
|
|
21852
21898
|
}
|
|
21853
|
-
function
|
|
21899
|
+
function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_31_Template(rf, ctx) {
|
|
21854
21900
|
if (rf & 1) {
|
|
21855
|
-
var
|
|
21856
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card-cta",
|
|
21857
|
-
i0__namespace.ɵɵlistener("displayed", function
|
|
21901
|
+
var _r26_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21902
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card-cta", 57);
|
|
21903
|
+
i0__namespace.ɵɵlistener("displayed", function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_31_Template_ng_miam_recipe_card_cta_displayed_0_listener() { i0__namespace.ɵɵrestoreView(_r26_1); var ctx_r25 = i0__namespace.ɵɵnextContext(2); return ctx_r25.displayed.emit(); })("clicked", function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_31_Template_ng_miam_recipe_card_cta_clicked_0_listener($event) { i0__namespace.ɵɵrestoreView(_r26_1); var ctx_r27 = i0__namespace.ɵɵnextContext(2); return ctx_r27.primaryButtonClicked$.emit($event); });
|
|
21858
21904
|
i0__namespace.ɵɵelementEnd();
|
|
21859
21905
|
}
|
|
21860
21906
|
if (rf & 2) {
|
|
21861
|
-
var
|
|
21862
|
-
i0__namespace.ɵɵproperty("recipe",
|
|
21907
|
+
var ctx_r11 = i0__namespace.ɵɵnextContext(2);
|
|
21908
|
+
i0__namespace.ɵɵproperty("recipe", ctx_r11.recipe)("previewAllowed", ctx_r11.previewAllowed)("displayGuests", ctx_r11.displayGuests)("helpButtonAllowed", ctx_r11.helpButtonAllowed)("originTrace", ctx_r11.eventTrace);
|
|
21863
21909
|
}
|
|
21864
21910
|
}
|
|
21865
|
-
function
|
|
21911
|
+
function RecipeCardComponent_div_1_div_32_Template(rf, ctx) {
|
|
21866
21912
|
if (rf & 1) {
|
|
21867
|
-
var
|
|
21868
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21869
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
21870
|
-
i0__namespace.ɵɵlistener("click", function
|
|
21913
|
+
var _r29_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21914
|
+
i0__namespace.ɵɵelementStart(0, "div", 58);
|
|
21915
|
+
i0__namespace.ɵɵelementStart(1, "button", 59);
|
|
21916
|
+
i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_div_32_Template_button_click_1_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r28 = i0__namespace.ɵɵnextContext(2); return ctx_r28.openCatalog.emit(); });
|
|
21871
21917
|
i0__namespace.ɵɵelementStart(2, "span");
|
|
21872
|
-
i0__namespace.ɵɵi18n(3,
|
|
21918
|
+
i0__namespace.ɵɵi18n(3, 60);
|
|
21873
21919
|
i0__namespace.ɵɵelementEnd();
|
|
21874
21920
|
i0__namespace.ɵɵelementEnd();
|
|
21875
|
-
i0__namespace.ɵɵelementStart(4, "button",
|
|
21876
|
-
i0__namespace.ɵɵlistener("click", function
|
|
21877
|
-
i0__namespace.ɵɵelement(5, "ng-miam-icon",
|
|
21921
|
+
i0__namespace.ɵɵelementStart(4, "button", 61);
|
|
21922
|
+
i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_div_32_Template_button_click_4_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r30 = i0__namespace.ɵɵnextContext(2); return ctx_r30.removeFromMealsPlanner.emit(); });
|
|
21923
|
+
i0__namespace.ɵɵelement(5, "ng-miam-icon", 62);
|
|
21878
21924
|
i0__namespace.ɵɵelementEnd();
|
|
21879
21925
|
i0__namespace.ɵɵelementEnd();
|
|
21880
21926
|
}
|
|
21881
21927
|
if (rf & 2) {
|
|
21882
|
-
var
|
|
21928
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(2);
|
|
21883
21929
|
i0__namespace.ɵɵadvance(5);
|
|
21884
|
-
i0__namespace.ɵɵproperty("iconName",
|
|
21930
|
+
i0__namespace.ɵɵproperty("iconName", ctx_r12.icon.Trash);
|
|
21885
21931
|
}
|
|
21886
21932
|
}
|
|
21887
|
-
function
|
|
21933
|
+
function RecipeCardComponent_div_1_button_33_Template(rf, ctx) {
|
|
21888
21934
|
if (rf & 1) {
|
|
21889
|
-
var
|
|
21890
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
21891
|
-
i0__namespace.ɵɵlistener("click", function
|
|
21935
|
+
var _r32_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21936
|
+
i0__namespace.ɵɵelementStart(0, "button", 59);
|
|
21937
|
+
i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_button_33_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r32_1); var ctx_r31 = i0__namespace.ɵɵnextContext(2); return ctx_r31.addToMealsPlanner.emit(ctx_r31.recipe); });
|
|
21892
21938
|
i0__namespace.ɵɵelementStart(1, "span");
|
|
21893
|
-
i0__namespace.ɵɵi18n(2,
|
|
21939
|
+
i0__namespace.ɵɵi18n(2, 63);
|
|
21894
21940
|
i0__namespace.ɵɵelementEnd();
|
|
21895
21941
|
i0__namespace.ɵɵelementEnd();
|
|
21896
21942
|
}
|
|
21897
21943
|
}
|
|
21898
21944
|
function RecipeCardComponent_div_1_Template(rf, ctx) {
|
|
21899
21945
|
if (rf & 1) {
|
|
21900
|
-
var
|
|
21946
|
+
var _r34_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21901
21947
|
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
21902
|
-
i0__namespace.ɵɵlistener("inViewport", function RecipeCardComponent_div_1_Template_div_inViewport_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
21948
|
+
i0__namespace.ɵɵlistener("inViewport", function RecipeCardComponent_div_1_Template_div_inViewport_0_listener() { i0__namespace.ɵɵrestoreView(_r34_1); var ctx_r33 = i0__namespace.ɵɵnextContext(); return ctx_r33.cardInViewport(); });
|
|
21903
21949
|
i0__namespace.ɵɵelementStart(1, "div", 3);
|
|
21904
|
-
i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(
|
|
21950
|
+
i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(_r34_1); var ctx_r35 = i0__namespace.ɵɵnextContext(); return ctx_r35.openRecipe(); });
|
|
21905
21951
|
i0__namespace.ɵɵelementStart(2, "div", 4);
|
|
21906
21952
|
i0__namespace.ɵɵelementStart(3, "img", 5);
|
|
21907
|
-
i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_Template_img_error_3_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
21953
|
+
i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_Template_img_error_3_listener($event) { i0__namespace.ɵɵrestoreView(_r34_1); var ctx_r36 = i0__namespace.ɵɵnextContext(); return ($event.target["src"] = ctx_r36.contextService.defaultRecipePicture); });
|
|
21908
21954
|
i0__namespace.ɵɵelementEnd();
|
|
21909
21955
|
i0__namespace.ɵɵelementEnd();
|
|
21910
21956
|
i0__namespace.ɵɵelement(4, "div", 6);
|
|
21911
21957
|
i0__namespace.ɵɵelementStart(5, "div", 7);
|
|
21912
21958
|
i0__namespace.ɵɵelementStart(6, "div", 8);
|
|
21913
21959
|
i0__namespace.ɵɵtemplate(7, RecipeCardComponent_div_1_div_7_Template, 3, 3, "div", 9);
|
|
21914
|
-
i0__namespace.ɵɵ
|
|
21915
|
-
i0__namespace.ɵɵtemplate(9, RecipeCardComponent_div_1_div_9_Template,
|
|
21960
|
+
i0__namespace.ɵɵelementStart(8, "div", 10);
|
|
21961
|
+
i0__namespace.ɵɵtemplate(9, RecipeCardComponent_div_1_div_9_Template, 3, 3, "div", 11);
|
|
21962
|
+
i0__namespace.ɵɵtemplate(10, RecipeCardComponent_div_1_div_10_Template, 2, 2, "div", 12);
|
|
21963
|
+
i0__namespace.ɵɵtemplate(11, RecipeCardComponent_div_1_ng_miam_recipe_promotion_badge_11_Template, 1, 0, "ng-miam-recipe-promotion-badge", 13);
|
|
21916
21964
|
i0__namespace.ɵɵelementEnd();
|
|
21917
|
-
i0__namespace.ɵɵelementStart(10, "div", 12);
|
|
21918
|
-
i0__namespace.ɵɵelementStart(11, "div", 13);
|
|
21919
|
-
i0__namespace.ɵɵelementStart(12, "span");
|
|
21920
|
-
i0__namespace.ɵɵtext(13);
|
|
21921
21965
|
i0__namespace.ɵɵelementEnd();
|
|
21966
|
+
i0__namespace.ɵɵelementStart(12, "div", 14);
|
|
21967
|
+
i0__namespace.ɵɵelementStart(13, "div", 15);
|
|
21968
|
+
i0__namespace.ɵɵelementStart(14, "span");
|
|
21969
|
+
i0__namespace.ɵɵtext(15);
|
|
21922
21970
|
i0__namespace.ɵɵelementEnd();
|
|
21923
|
-
i0__namespace.ɵɵelementStart(14, "div", 14);
|
|
21924
|
-
i0__namespace.ɵɵelementStart(15, "span", 15);
|
|
21925
|
-
i0__namespace.ɵɵtext(16);
|
|
21926
21971
|
i0__namespace.ɵɵelementEnd();
|
|
21927
|
-
i0__namespace.ɵɵ
|
|
21972
|
+
i0__namespace.ɵɵelementStart(16, "div", 16);
|
|
21973
|
+
i0__namespace.ɵɵelementStart(17, "span", 17);
|
|
21974
|
+
i0__namespace.ɵɵtext(18);
|
|
21975
|
+
i0__namespace.ɵɵelementEnd();
|
|
21976
|
+
i0__namespace.ɵɵelement(19, "img", 18);
|
|
21928
21977
|
i0__namespace.ɵɵelementEnd();
|
|
21929
21978
|
i0__namespace.ɵɵelementEnd();
|
|
21930
21979
|
i0__namespace.ɵɵelementEnd();
|
|
21931
21980
|
i0__namespace.ɵɵelementEnd();
|
|
21932
|
-
i0__namespace.ɵɵelementStart(18, "div", 17);
|
|
21933
|
-
i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_18_listener() { i0__namespace.ɵɵrestoreView(_r36_1); var ctx_r39 = i0__namespace.ɵɵnextContext(); return ctx_r39.openRecipe(); });
|
|
21934
|
-
i0__namespace.ɵɵtemplate(19, RecipeCardComponent_div_1_div_19_Template, 6, 6, "div", 18);
|
|
21935
21981
|
i0__namespace.ɵɵelementStart(20, "div", 19);
|
|
21936
|
-
i0__namespace.ɵɵ
|
|
21937
|
-
i0__namespace.ɵɵtemplate(
|
|
21982
|
+
i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_20_listener() { i0__namespace.ɵɵrestoreView(_r34_1); var ctx_r37 = i0__namespace.ɵɵnextContext(); return ctx_r37.openRecipe(); });
|
|
21983
|
+
i0__namespace.ɵɵtemplate(21, RecipeCardComponent_div_1_div_21_Template, 6, 6, "div", 20);
|
|
21984
|
+
i0__namespace.ɵɵelementStart(22, "div", 21);
|
|
21938
21985
|
i0__namespace.ɵɵelementStart(23, "div", 22);
|
|
21939
|
-
i0__namespace.ɵɵtemplate(24,
|
|
21940
|
-
i0__namespace.ɵɵ
|
|
21986
|
+
i0__namespace.ɵɵtemplate(24, RecipeCardComponent_div_1_div_24_Template, 3, 2, "div", 23);
|
|
21987
|
+
i0__namespace.ɵɵelementStart(25, "div", 24);
|
|
21988
|
+
i0__namespace.ɵɵtemplate(26, RecipeCardComponent_div_1_ng_miam_recipe_promotion_badge_26_Template, 1, 0, "ng-miam-recipe-promotion-badge", 25);
|
|
21989
|
+
i0__namespace.ɵɵtemplate(27, RecipeCardComponent_div_1_div_27_Template, 2, 3, "div", 26);
|
|
21941
21990
|
i0__namespace.ɵɵelementEnd();
|
|
21942
21991
|
i0__namespace.ɵɵelementEnd();
|
|
21943
|
-
i0__namespace.ɵɵelementStart(
|
|
21944
|
-
i0__namespace.ɵɵtemplate(
|
|
21945
|
-
i0__namespace.ɵɵpipe(
|
|
21946
|
-
i0__namespace.ɵɵtemplate(
|
|
21992
|
+
i0__namespace.ɵɵelementStart(28, "div", 27);
|
|
21993
|
+
i0__namespace.ɵɵtemplate(29, RecipeCardComponent_div_1_ng_miam_like_button_29_Template, 1, 2, "ng-miam-like-button", 28);
|
|
21994
|
+
i0__namespace.ɵɵpipe(30, "async");
|
|
21995
|
+
i0__namespace.ɵɵtemplate(31, RecipeCardComponent_div_1_ng_miam_recipe_card_cta_31_Template, 1, 5, "ng-miam-recipe-card-cta", 29);
|
|
21947
21996
|
i0__namespace.ɵɵelementEnd();
|
|
21948
|
-
i0__namespace.ɵɵtemplate(
|
|
21949
|
-
i0__namespace.ɵɵtemplate(
|
|
21997
|
+
i0__namespace.ɵɵtemplate(32, RecipeCardComponent_div_1_div_32_Template, 6, 1, "div", 30);
|
|
21998
|
+
i0__namespace.ɵɵtemplate(33, RecipeCardComponent_div_1_button_33_Template, 3, 0, "button", 31);
|
|
21950
21999
|
i0__namespace.ɵɵelementEnd();
|
|
21951
22000
|
i0__namespace.ɵɵelementEnd();
|
|
21952
22001
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -21959,10 +22008,12 @@
|
|
|
21959
22008
|
i0__namespace.ɵɵattribute("aria-hidden", true);
|
|
21960
22009
|
i0__namespace.ɵɵadvance(4);
|
|
21961
22010
|
i0__namespace.ɵɵproperty("ngIf", !(ctx_r0.displayBadge && ctx_r0.recipe.sponsorLogoUrl));
|
|
22011
|
+
i0__namespace.ɵɵadvance(2);
|
|
22012
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.displayBadge);
|
|
21962
22013
|
i0__namespace.ɵɵadvance(1);
|
|
21963
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
22014
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.recipe.sponsorLogoUrl);
|
|
21964
22015
|
i0__namespace.ɵɵadvance(1);
|
|
21965
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.
|
|
22016
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.isInPromotion);
|
|
21966
22017
|
i0__namespace.ɵɵadvance(4);
|
|
21967
22018
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.recipe.attributes["title"]);
|
|
21968
22019
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -21978,7 +22029,7 @@
|
|
|
21978
22029
|
i0__namespace.ɵɵadvance(1);
|
|
21979
22030
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.recipe && ctx_r0.displayPricing);
|
|
21980
22031
|
i0__namespace.ɵɵadvance(2);
|
|
21981
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.displayLikesBottom && i0__namespace.ɵɵpipeBind1(
|
|
22032
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.displayLikesBottom && i0__namespace.ɵɵpipeBind1(30, 19, ctx_r0.userService.isLogged$));
|
|
21982
22033
|
i0__namespace.ɵɵadvance(2);
|
|
21983
22034
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.previewAllowed && !ctx_r0.addRecipeMode && !ctx_r0.replaceMode);
|
|
21984
22035
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -21989,20 +22040,20 @@
|
|
|
21989
22040
|
}
|
|
21990
22041
|
function RecipeCardComponent_div_2_Template(rf, ctx) {
|
|
21991
22042
|
if (rf & 1) {
|
|
21992
|
-
var
|
|
22043
|
+
var _r39_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21993
22044
|
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
21994
|
-
i0__namespace.ɵɵlistener("inViewport", function RecipeCardComponent_div_2_Template_div_inViewport_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
21995
|
-
i0__namespace.ɵɵelementStart(1, "a",
|
|
21996
|
-
i0__namespace.ɵɵelement(2, "img",
|
|
21997
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
21998
|
-
i0__namespace.ɵɵelementStart(4, "div",
|
|
22045
|
+
i0__namespace.ɵɵlistener("inViewport", function RecipeCardComponent_div_2_Template_div_inViewport_0_listener() { i0__namespace.ɵɵrestoreView(_r39_1); var ctx_r38 = i0__namespace.ɵɵnextContext(); return ctx_r38.cardInViewport(); });
|
|
22046
|
+
i0__namespace.ɵɵelementStart(1, "a", 64);
|
|
22047
|
+
i0__namespace.ɵɵelement(2, "img", 65);
|
|
22048
|
+
i0__namespace.ɵɵelementStart(3, "div", 66);
|
|
22049
|
+
i0__namespace.ɵɵelementStart(4, "div", 67);
|
|
21999
22050
|
i0__namespace.ɵɵelementStart(5, "span");
|
|
22000
|
-
i0__namespace.ɵɵi18n(6,
|
|
22051
|
+
i0__namespace.ɵɵi18n(6, 68);
|
|
22001
22052
|
i0__namespace.ɵɵelementEnd();
|
|
22002
22053
|
i0__namespace.ɵɵelementEnd();
|
|
22003
|
-
i0__namespace.ɵɵelementStart(7, "button",
|
|
22054
|
+
i0__namespace.ɵɵelementStart(7, "button", 69);
|
|
22004
22055
|
i0__namespace.ɵɵelementStart(8, "span");
|
|
22005
|
-
i0__namespace.ɵɵi18n(9,
|
|
22056
|
+
i0__namespace.ɵɵi18n(9, 70);
|
|
22006
22057
|
i0__namespace.ɵɵelementEnd();
|
|
22007
22058
|
i0__namespace.ɵɵelementEnd();
|
|
22008
22059
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22293,12 +22344,12 @@
|
|
|
22293
22344
|
else {
|
|
22294
22345
|
i18n_6 = $localize(templateObject_4$c || (templateObject_4$c = __makeTemplateObject([":\u241Ff51693cf087a834d433fa3835d7b64905fdc57ee\u241F9008711340501624723:D\u00E9couvrez nos recettes"], [":\u241Ff51693cf087a834d433fa3835d7b64905fdc57ee\u241F9008711340501624723:D\u00E9couvrez nos recettes"])));
|
|
22295
22346
|
}
|
|
22296
|
-
return [["ngMiamInViewport", "", 1, "miam-recipe-card", 3, "condition", "ngClass", "inViewport"], ["class", "miam-recipe-card__container", "ngMiamInViewport", "", 3, "threshold", "debounceTime", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-recipe-card__container", 3, "threshold", "debounceTime", "inViewport"], [1, "miam-recipe-card__top", 3, "click"], [1, "miam-recipe-card__picture"], ["loading", "lazy", 3, "src", "alt", "error"], ["aria-hidden", "true", 1, "miam-recipe-card__gradient"], [1, "miam-recipe-card__content"], [1, "miam-recipe-card__top-container"], ["class", "miam-recipe-card__like", 4, "ngIf"], ["class", "miam-recipe-
|
|
22347
|
+
return [["ngMiamInViewport", "", 1, "miam-recipe-card", 3, "condition", "ngClass", "inViewport"], ["class", "miam-recipe-card__container", "ngMiamInViewport", "", 3, "threshold", "debounceTime", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-recipe-card__container", 3, "threshold", "debounceTime", "inViewport"], [1, "miam-recipe-card__top", 3, "click"], [1, "miam-recipe-card__picture"], ["loading", "lazy", 3, "src", "alt", "error"], ["aria-hidden", "true", 1, "miam-recipe-card__gradient"], [1, "miam-recipe-card__content"], [1, "miam-recipe-card__top-container"], ["class", "miam-recipe-card__like", 4, "ngIf"], [1, "miam-recipe-card__badges-container"], ["class", "miam-recipe-card__badge-container", 3, "ngClass", 4, "ngIf"], ["class", "miam-recipe-card__sponsor-container", 4, "ngIf"], [4, "ngIf"], [1, "miam-recipe-card__picture__bottom"], [1, "miam-recipe-card__title", "miam-ds-text", "weight-xxl", "size-m"], [1, "miam-recipe-card__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/recipe-counter.svg", "alt", "", "aria-hidden", "true"], [1, "miam-recipe-card__bottom", 3, "click"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], [1, "miam-recipe-card__actions"], [1, "miam-recipe-card__infos"], ["class", "miam-recipe-card__difficulty-and-time", 4, "ngIf"], [1, "miam-recipe-card__price-and-promotion"], ["class", "miam-recipe-card__bottom-promotion", 4, "ngIf"], ["class", "miam-recipe-card__price", 4, "ngIf"], [1, "miam-recipe-card__cta"], ["class", "miam-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked", 4, "ngIf"], ["class", "miam-recipe-card__actions__replace", 4, "ngIf"], ["class", "miam-ds-button ghost", 3, "click", 4, "ngIf"], [1, "miam-recipe-card__like"], [1, "miam-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-recipe-card__badge-container", 3, "ngClass"], ["class", "miam-recipe-card__badge", "src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "Id\u00E9e repas", 4, "ngIf"], ["class", "miam-recipe-card__badge", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/9.0/recipe-card-badge-drinks.svg", "alt", "Id\u00E9e boisson", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "Id\u00E9e repas", 1, "miam-recipe-card__badge"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/9.0/recipe-card-badge-drinks.svg", "alt", "Id\u00E9e boisson", 1, "miam-recipe-card__badge"], [1, "miam-recipe-card__sponsor-container"], [1, "miam-recipe-card__sponsor-picture", 3, "src", "alt"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], ["aria-hidden", "true", 3, "src", "alt", "error"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__difficulty-and-time"], ["class", "miam-recipe-card__difficulty", 4, "ngIf"], ["class", "miam-recipe-card__time", 4, "ngIf"], [1, "miam-recipe-card__difficulty"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ChefHat.svg", "alt", "", "aria-hidden", "true"], [1, "miam-ds-text", "size-s", "weight-m"], [1, "miam-recipe-card__time"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Clock.svg", "alt", "", "aria-hidden", "true"], [1, "miam-recipe-card__bottom-promotion"], [1, "miam-recipe-card__price"], [1, "miam-ds-text", "weight-xxl", 3, "recipeId", "serves", "inViewport", "priceSet"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked"], [1, "miam-recipe-card__actions__replace"], [1, "miam-ds-button", "ghost", 3, "click"], i18n_0, ["aria-label", "Supprimer la recette", 1, "miam-ds-button", "ghost", "square", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_2, [1, "miam-recipe-card__redirect", 3, "href"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/Suggestion_Redirect_Background.png", "alt", "D\u00E9couvrez nos recettes"], [1, "miam-recipe-card__redirect__footer"], [1, "miam-recipe-card__redirect__title", "miam-ds-text", "size-l", "weight-xxl"], i18n_4, [1, "miam-recipe-card__redirect__button", "miam-ds-button", "primary"], i18n_6];
|
|
22297
22348
|
}, template: function RecipeCardComponent_Template(rf, ctx) {
|
|
22298
22349
|
if (rf & 1) {
|
|
22299
22350
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
22300
22351
|
i0__namespace.ɵɵlistener("inViewport", function RecipeCardComponent_Template_div_inViewport_0_listener() { return ctx.sendShowEvent(); });
|
|
22301
|
-
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_Template,
|
|
22352
|
+
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_Template, 34, 21, "div", 1);
|
|
22302
22353
|
i0__namespace.ɵɵtemplate(2, RecipeCardComponent_div_2_Template, 10, 3, "div", 1);
|
|
22303
22354
|
i0__namespace.ɵɵelementEnd();
|
|
22304
22355
|
}
|
|
@@ -22309,7 +22360,7 @@
|
|
|
22309
22360
|
i0__namespace.ɵɵadvance(1);
|
|
22310
22361
|
i0__namespace.ɵɵproperty("ngIf", ctx.isloaded && !ctx.recipe);
|
|
22311
22362
|
}
|
|
22312
|
-
}, directives: [InViewportDirective, i1__namespace.NgClass, i1__namespace.NgIf, LikeButtonComponent, RecipePromotionBadgeComponent, RecipePricingComponent, RecipeCardCtaComponent, IconComponent], pipes: [i1__namespace.AsyncPipe], styles: [".miam-recipe-card{position:relative;display:flex;width:var(--m-catalog-card-width,308px);height:500px;flex-direction:column;align-items:flex-start;flex-shrink:0;border-radius:8px;overflow:hidden;cursor:pointer}.miam-recipe-card .miam-recipe-card__container{display:flex;flex-direction:column;height:100%;width:100%;flex-shrink:0;align-self:stretch}.miam-recipe-card .miam-recipe-card__container:hover .miam-recipe-card__top .miam-recipe-card__picture img{transform:scale(1.1)}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top{position:relative;flex:1;height:calc(100% - 72px)}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__picture{width:100%;height:100%;overflow:hidden}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__picture img{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .2s}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__gradient{position:absolute;width:100%;height:100%;top:0;left:0;background:linear-gradient(180deg,transparent 43.67%,rgba(0,0,0,.4) 91.33%)}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content{position:absolute;width:100%;height:100%;top:0;left:0;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__picture__bottom{width:100%;display:flex;justify-content:space-between;align-items:flex-end;padding:12px;box-sizing:border-box}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__picture__bottom .miam-recipe-card__title{color:var(--miam-ds-color-neutral-white,#fff);text-shadow:0 2px 8px rgba(0,0,0,.15);text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__picture__bottom .miam-recipe-card__counter{display:flex;padding:4px 8px;align-items:center;gap:4px;border-radius:100px;background:var(--miam-ds-color-neutral-white,#fff);color:var(--miam-color-neutral-black);height:-moz-fit-content;height:fit-content;flex-shrink:0}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__picture__bottom .miam-recipe-card__counter span{line-height:100%}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__picture__bottom .miam-recipe-card__counter img{width:16px;height:16px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__top-container{display:flex;
|
|
22363
|
+
}, directives: [InViewportDirective, i1__namespace.NgClass, i1__namespace.NgIf, LikeButtonComponent, RecipePromotionBadgeComponent, RecipePricingComponent, RecipeCardCtaComponent, IconComponent], pipes: [i1__namespace.AsyncPipe], styles: [".miam-recipe-card{position:relative;display:flex;width:var(--m-catalog-card-width,308px);height:500px;flex-direction:column;align-items:flex-start;flex-shrink:0;border-radius:8px;overflow:hidden;cursor:pointer}.miam-recipe-card .miam-recipe-card__container{display:flex;flex-direction:column;height:100%;width:100%;flex-shrink:0;align-self:stretch}.miam-recipe-card .miam-recipe-card__container:hover .miam-recipe-card__top .miam-recipe-card__picture img{transform:scale(1.1)}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top{position:relative;flex:1;height:calc(100% - 72px)}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__picture{width:100%;height:100%;overflow:hidden}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__picture img{display:block;width:100%;height:100%;-o-object-fit:cover;object-fit:cover;transition:transform .2s}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__gradient{position:absolute;width:100%;height:100%;top:0;left:0;background:linear-gradient(180deg,transparent 43.67%,rgba(0,0,0,.4) 91.33%)}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content{position:absolute;width:100%;height:100%;top:0;left:0;display:flex;flex-direction:column;justify-content:space-between;align-items:stretch}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__picture__bottom{width:100%;display:flex;justify-content:space-between;align-items:flex-end;padding:12px;box-sizing:border-box}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__picture__bottom .miam-recipe-card__title{color:var(--miam-ds-color-neutral-white,#fff);text-shadow:0 2px 8px rgba(0,0,0,.15);text-overflow:ellipsis;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__picture__bottom .miam-recipe-card__counter{display:flex;padding:4px 8px;align-items:center;gap:4px;border-radius:100px;background:var(--miam-ds-color-neutral-white,#fff);color:var(--miam-color-neutral-black);height:-moz-fit-content;height:fit-content;flex-shrink:0}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__picture__bottom .miam-recipe-card__counter span{line-height:100%}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__picture__bottom .miam-recipe-card__counter img{width:16px;height:16px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__top-container{display:flex;margin:12px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__top-container .miam-recipe-card__sponsor-container{display:flex;padding:8px 12px;background-color:#fff;border-radius:100px;width:auto;height:auto;box-sizing:border-box}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__top-container .miam-recipe-card__sponsor-container .miam-recipe-card__sponsor-picture{width:auto;height:auto;max-width:80px;max-height:40px;-o-object-fit:contain;object-fit:contain}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__top-container .miam-recipe-card__badge-container,.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__top-container .miam-recipe-card__badges-container{display:flex;flex-direction:column;align-items:flex-start}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__top-container .miam-recipe-card__badge-container>:not(:last-child),.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__top-container .miam-recipe-card__badges-container>:not(:last-child){margin-bottom:4px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__top-container .miam-recipe-card__like .miam-like-button{border-radius:48px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__top .miam-recipe-card__content .miam-recipe-card__top-container .miam-recipe-card__like .miam-like-button.miam-ds-button.primary.reverse.square.small .miam-like-button__icon{height:16px;width:16px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom{display:flex;width:100%;height:72px;flex-direction:column;align-items:flex-start;justify-content:center;box-sizing:border-box;padding:12px;border-radius:0 0 8px 8px;background-color:var(--miam-ds-color-neutral-white,#fff);border-right:1px solid var(--m-color-neutral-200,#d9dde1);border-bottom:1px solid var(--m-color-neutral-200,#d9dde1);border-left:1px solid var(--m-color-neutral-200,#d9dde1)}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions{display:flex;gap:8px;justify-content:space-between;align-items:center;align-self:stretch}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__infos{display:flex;flex-direction:column;align-items:flex-start}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__infos .miam-recipe-card__price-and-promotion .miam-recipe-card__bottom-promotion{display:none}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__cta{display:flex;flex-direction:row;gap:16px;align-items:center}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__difficulty-and-time{display:flex;flex-direction:row;color:var(--miam-ds-color-text-disabled);gap:12px;margin-bottom:4px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__difficulty-and-time .miam-recipe-card__difficulty,.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__difficulty-and-time .miam-recipe-card__time{display:flex}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__difficulty-and-time .miam-recipe-card__difficulty img,.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__difficulty-and-time .miam-recipe-card__time img{margin-right:4px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__price{color:var(--miam-ds-color-primary);line-height:100%;margin-right:4px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__price .miam-recipe-pricing{max-width:70px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__price .miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{color:rgba(31,53,67,.5);font-weight:500;line-height:100%}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__bottom .miam-recipe-card__actions .miam-recipe-card__actions__replace{display:flex;flex:1;justify-content:space-between;align-items:center}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__redirect{display:flex;flex-direction:column;justify-content:flex-end;flex:1;border-radius:8px;border:1px solid var(--m-color-neutral-200,#d9dde1);box-sizing:border-box;text-decoration:unset}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__redirect img{height:100%;-o-object-fit:cover;object-fit:cover}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__redirect .miam-recipe-card__redirect__footer{display:flex;flex-direction:column;justify-content:center;align-items:center;padding:16px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__redirect .miam-recipe-card__redirect__footer .miam-recipe-card__redirect__button{margin-top:16px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__redirect .miam-recipe-card__redirect__footer .miam-recipe-card__redirect__button span{font-size:14px;font-weight:700;line-height:16px}@media (max-width:1023px){.miam-recipe-card.redirect-card{width:80vw;height:188px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__redirect{flex-direction:row;height:100%}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__redirect img{content:url(https://storage.googleapis.com/assets.miam.tech/generic/images/Suggestion_Redirect_Background_Mobile.png);height:136%;margin:-22px -16px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__redirect .miam-recipe-card__redirect__footer{min-width:156px}.miam-recipe-card .miam-recipe-card__container .miam-recipe-card__redirect .miam-recipe-card__redirect__footer .miam-recipe-card__redirect__title{font-size:16px}}"], encapsulation: 2, changeDetection: 0 });
|
|
22313
22364
|
(function () {
|
|
22314
22365
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeCardComponent, [{
|
|
22315
22366
|
type: i0.Component,
|
|
@@ -29017,13 +29068,9 @@
|
|
|
29017
29068
|
var _c0$1 = ["tag"];
|
|
29018
29069
|
function RecipeTagsComponent_ng_container_0_div_1_div_2_Template(rf, ctx) {
|
|
29019
29070
|
if (rf & 1) {
|
|
29020
|
-
var _r9_1 = i0__namespace.ɵɵgetCurrentView();
|
|
29021
29071
|
i0__namespace.ɵɵelementStart(0, "div", 11, 12);
|
|
29022
|
-
i0__namespace.ɵɵ
|
|
29023
|
-
i0__namespace.ɵɵlistener("click", function RecipeTagsComponent_ng_container_0_div_1_div_2_Template_ng_miam_icon_click_2_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var recipeLine_r5 = ctx.$implicit; var ctx_r8 = i0__namespace.ɵɵnextContext(3); return ctx_r8.toggleRecipe(recipeLine_r5.id); });
|
|
29024
|
-
i0__namespace.ɵɵelementEnd();
|
|
29072
|
+
i0__namespace.ɵɵelement(2, "ng-miam-icon", 13);
|
|
29025
29073
|
i0__namespace.ɵɵelementStart(3, "span", 14);
|
|
29026
|
-
i0__namespace.ɵɵlistener("click", function RecipeTagsComponent_ng_container_0_div_1_div_2_Template_span_click_3_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var recipeLine_r5 = ctx.$implicit; var ctx_r10 = i0__namespace.ɵɵnextContext(3); return ctx_r10.toggleRecipe(recipeLine_r5.id); });
|
|
29027
29074
|
i0__namespace.ɵɵtext(4);
|
|
29028
29075
|
i0__namespace.ɵɵpipe(5, "ellipsis");
|
|
29029
29076
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -29043,19 +29090,19 @@
|
|
|
29043
29090
|
var _c3 = function (a0) { return { "opacity": a0 }; };
|
|
29044
29091
|
function RecipeTagsComponent_ng_container_0_div_1_Template(rf, ctx) {
|
|
29045
29092
|
if (rf & 1) {
|
|
29046
|
-
var
|
|
29093
|
+
var _r9_1 = i0__namespace.ɵɵgetCurrentView();
|
|
29047
29094
|
i0__namespace.ɵɵelementStart(0, "div", 3);
|
|
29048
29095
|
i0__namespace.ɵɵelementStart(1, "div", 4);
|
|
29049
29096
|
i0__namespace.ɵɵtemplate(2, RecipeTagsComponent_ng_container_0_div_1_div_2_Template, 6, 5, "div", 5);
|
|
29050
29097
|
i0__namespace.ɵɵelementEnd();
|
|
29051
29098
|
i0__namespace.ɵɵelementStart(3, "div", 6);
|
|
29052
29099
|
i0__namespace.ɵɵelementStart(4, "span", 7);
|
|
29053
|
-
i0__namespace.ɵɵlistener("click", function RecipeTagsComponent_ng_container_0_div_1_Template_span_click_4_listener() { i0__namespace.ɵɵrestoreView(
|
|
29100
|
+
i0__namespace.ɵɵlistener("click", function RecipeTagsComponent_ng_container_0_div_1_Template_span_click_4_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r8 = i0__namespace.ɵɵnextContext(2); return ctx_r8.toggleList(); });
|
|
29054
29101
|
i0__namespace.ɵɵtext(5);
|
|
29055
29102
|
i0__namespace.ɵɵelementEnd();
|
|
29056
29103
|
i0__namespace.ɵɵelement(6, "div", 8);
|
|
29057
29104
|
i0__namespace.ɵɵelementStart(7, "span", 9);
|
|
29058
|
-
i0__namespace.ɵɵlistener("click", function RecipeTagsComponent_ng_container_0_div_1_Template_span_click_7_listener() { i0__namespace.ɵɵrestoreView(
|
|
29105
|
+
i0__namespace.ɵɵlistener("click", function RecipeTagsComponent_ng_container_0_div_1_Template_span_click_7_listener() { i0__namespace.ɵɵrestoreView(_r9_1); var ctx_r10 = i0__namespace.ɵɵnextContext(2); return ctx_r10.toggleList(); });
|
|
29059
29106
|
i0__namespace.ɵɵelement(8, "ng-miam-icon", 10);
|
|
29060
29107
|
i0__namespace.ɵɵelementEnd();
|
|
29061
29108
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -29090,9 +29137,9 @@
|
|
|
29090
29137
|
}
|
|
29091
29138
|
function RecipeTagsComponent_ng_template_1_div_0_Template(rf, ctx) {
|
|
29092
29139
|
if (rf & 1) {
|
|
29093
|
-
var
|
|
29140
|
+
var _r14_1 = i0__namespace.ɵɵgetCurrentView();
|
|
29094
29141
|
i0__namespace.ɵɵelementStart(0, "div", 17);
|
|
29095
|
-
i0__namespace.ɵɵlistener("click", function RecipeTagsComponent_ng_template_1_div_0_Template_div_click_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
29142
|
+
i0__namespace.ɵɵlistener("click", function RecipeTagsComponent_ng_template_1_div_0_Template_div_click_0_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(2); return ctx_r13.toggleModal(); });
|
|
29096
29143
|
i0__namespace.ɵɵelementStart(1, "span", 18);
|
|
29097
29144
|
i0__namespace.ɵɵtext(2);
|
|
29098
29145
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -29102,48 +29149,44 @@
|
|
|
29102
29149
|
i0__namespace.ɵɵelementEnd();
|
|
29103
29150
|
}
|
|
29104
29151
|
if (rf & 2) {
|
|
29105
|
-
var
|
|
29152
|
+
var ctx_r11 = i0__namespace.ɵɵnextContext(2);
|
|
29106
29153
|
i0__namespace.ɵɵadvance(2);
|
|
29107
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
29154
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r11.recipePreviewLines.length);
|
|
29108
29155
|
}
|
|
29109
29156
|
}
|
|
29110
29157
|
function RecipeTagsComponent_ng_template_1_ng_miam_modal_1_div_2_Template(rf, ctx) {
|
|
29111
29158
|
if (rf & 1) {
|
|
29112
|
-
var _r23_1 = i0__namespace.ɵɵgetCurrentView();
|
|
29113
29159
|
i0__namespace.ɵɵelementStart(0, "div", 11, 12);
|
|
29114
|
-
i0__namespace.ɵɵ
|
|
29115
|
-
i0__namespace.ɵɵlistener("click", function RecipeTagsComponent_ng_template_1_ng_miam_modal_1_div_2_Template_ng_miam_icon_click_2_listener() { i0__namespace.ɵɵrestoreView(_r23_1); var recipeLine_r19 = ctx.$implicit; var ctx_r22 = i0__namespace.ɵɵnextContext(3); return ctx_r22.toggleRecipe(recipeLine_r19.id); });
|
|
29116
|
-
i0__namespace.ɵɵelementEnd();
|
|
29160
|
+
i0__namespace.ɵɵelement(2, "ng-miam-icon", 13);
|
|
29117
29161
|
i0__namespace.ɵɵelementStart(3, "span", 14);
|
|
29118
|
-
i0__namespace.ɵɵlistener("click", function RecipeTagsComponent_ng_template_1_ng_miam_modal_1_div_2_Template_span_click_3_listener() { i0__namespace.ɵɵrestoreView(_r23_1); var recipeLine_r19 = ctx.$implicit; var ctx_r24 = i0__namespace.ɵɵnextContext(3); return ctx_r24.toggleRecipe(recipeLine_r19.id); });
|
|
29119
29162
|
i0__namespace.ɵɵtext(4);
|
|
29120
29163
|
i0__namespace.ɵɵelementEnd();
|
|
29121
29164
|
i0__namespace.ɵɵelementEnd();
|
|
29122
29165
|
}
|
|
29123
29166
|
if (rf & 2) {
|
|
29124
|
-
var
|
|
29125
|
-
var
|
|
29167
|
+
var recipeLine_r16 = ctx.$implicit;
|
|
29168
|
+
var ctx_r15 = i0__namespace.ɵɵnextContext(3);
|
|
29126
29169
|
i0__namespace.ɵɵadvance(2);
|
|
29127
|
-
i0__namespace.ɵɵproperty("iconName",
|
|
29170
|
+
i0__namespace.ɵɵproperty("iconName", ctx_r15.icon.Meal);
|
|
29128
29171
|
i0__namespace.ɵɵadvance(2);
|
|
29129
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
29172
|
+
i0__namespace.ɵɵtextInterpolate(recipeLine_r16.title);
|
|
29130
29173
|
}
|
|
29131
29174
|
}
|
|
29132
29175
|
function RecipeTagsComponent_ng_template_1_ng_miam_modal_1_Template(rf, ctx) {
|
|
29133
29176
|
if (rf & 1) {
|
|
29134
|
-
var
|
|
29177
|
+
var _r20_1 = i0__namespace.ɵɵgetCurrentView();
|
|
29135
29178
|
i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 20);
|
|
29136
|
-
i0__namespace.ɵɵlistener("close", function RecipeTagsComponent_ng_template_1_ng_miam_modal_1_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
29179
|
+
i0__namespace.ɵɵlistener("close", function RecipeTagsComponent_ng_template_1_ng_miam_modal_1_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r20_1); var ctx_r19 = i0__namespace.ɵɵnextContext(2); return ctx_r19.toggleModal(); });
|
|
29137
29180
|
i0__namespace.ɵɵelementStart(1, "div", 4);
|
|
29138
29181
|
i0__namespace.ɵɵtemplate(2, RecipeTagsComponent_ng_template_1_ng_miam_modal_1_div_2_Template, 5, 2, "div", 5);
|
|
29139
29182
|
i0__namespace.ɵɵelementEnd();
|
|
29140
29183
|
i0__namespace.ɵɵelementEnd();
|
|
29141
29184
|
}
|
|
29142
29185
|
if (rf & 2) {
|
|
29143
|
-
var
|
|
29144
|
-
i0__namespace.ɵɵproperty("display",
|
|
29186
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(2);
|
|
29187
|
+
i0__namespace.ɵɵproperty("display", ctx_r12.modalIsOpened)("noHeaderMode", false)("recipesCount", ctx_r12.recipePreviewLines.length);
|
|
29145
29188
|
i0__namespace.ɵɵadvance(2);
|
|
29146
|
-
i0__namespace.ɵɵproperty("ngForOf",
|
|
29189
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx_r12.recipePreviewLines);
|
|
29147
29190
|
}
|
|
29148
29191
|
}
|
|
29149
29192
|
function RecipeTagsComponent_ng_template_1_Template(rf, ctx) {
|
|
@@ -29219,9 +29262,6 @@
|
|
|
29219
29262
|
this.wrappedItemsCount = tags.toArray().length - (this.lastItemIndexOfFirstRow + 1);
|
|
29220
29263
|
this.cdr.detectChanges();
|
|
29221
29264
|
};
|
|
29222
|
-
RecipeTagsComponent.prototype.toggleRecipe = function (id) {
|
|
29223
|
-
this.recipesService.display(id, { previewAllowed: this.recipeDetailPreviewAllowed, previewMode: false });
|
|
29224
|
-
};
|
|
29225
29265
|
RecipeTagsComponent.prototype.toggleList = function () {
|
|
29226
29266
|
this.isListOpen = !this.isListOpen;
|
|
29227
29267
|
this.cdr.detectChanges();
|
|
@@ -29250,7 +29290,7 @@
|
|
|
29250
29290
|
else {
|
|
29251
29291
|
i18n_4 = $localize(templateObject_1$3 || (templateObject_1$3 = __makeTemplateObject([":\u241F3c5bb82ed6e0c7ec470e7e044e3d12f9642d5356\u241F8273924711540568207:repas"], [":\u241F3c5bb82ed6e0c7ec470e7e044e3d12f9642d5356\u241F8273924711540568207:repas"])));
|
|
29252
29292
|
}
|
|
29253
|
-
return [[4, "ngIf", "ngIfElse"], ["reduced", ""], ["class", "miam-recipe-tags__container", 3, "ngStyle", 4, "ngIf"], [1, "miam-recipe-tags__container", 3, "ngStyle"], [1, "miam-recipe-tags__container__list"], ["class", "miam-recipe-tags__list__badge", 4, "ngFor", "ngForOf"], [1, "miam-recipe-tags__container__toggle", 3, "ngClass"], [1, "miam-recipe-tags__toggle__open", 3, "click"], [1, "miam-recipe-tags__toggle__ligne"], [1, "miam-recipe-tags__toggle__close", 3, "ngStyle", "click"], ["width", "24", "height", "24", "primaryColor", "var(--m-color-white)", 3, "iconName"], [1, "miam-recipe-tags__list__badge"], ["tag", ""], ["primaryColor", "var(--m-color-white)", 1, "miam-recipe-tags__badge__icon", 3, "iconName"
|
|
29293
|
+
return [[4, "ngIf", "ngIfElse"], ["reduced", ""], ["class", "miam-recipe-tags__container", 3, "ngStyle", 4, "ngIf"], [1, "miam-recipe-tags__container", 3, "ngStyle"], [1, "miam-recipe-tags__container__list"], ["class", "miam-recipe-tags__list__badge", 4, "ngFor", "ngForOf"], [1, "miam-recipe-tags__container__toggle", 3, "ngClass"], [1, "miam-recipe-tags__toggle__open", 3, "click"], [1, "miam-recipe-tags__toggle__ligne"], [1, "miam-recipe-tags__toggle__close", 3, "ngStyle", "click"], ["width", "24", "height", "24", "primaryColor", "var(--m-color-white)", 3, "iconName"], [1, "miam-recipe-tags__list__badge"], ["tag", ""], ["primaryColor", "var(--m-color-white)", 1, "miam-recipe-tags__badge__icon", 3, "iconName"], [1, "miam-recipe-tag__badge__text"], ["class", "miam-recipe-tags__recipes", 3, "click", 4, "ngIf"], ["class", "miam-recipe-tags__modal", 3, "display", "noHeaderMode", "recipesCount", "close", 4, "ngIf"], [1, "miam-recipe-tags__recipes", 3, "click"], [1, "miam-recipe-tags__recipes__count"], i18n_4, [1, "miam-recipe-tags__modal", 3, "display", "noHeaderMode", "recipesCount", "close"]];
|
|
29254
29294
|
}, template: function RecipeTagsComponent_Template(rf, ctx) {
|
|
29255
29295
|
if (rf & 1) {
|
|
29256
29296
|
i0__namespace.ɵɵtemplate(0, RecipeTagsComponent_ng_container_0_Template, 2, 1, "ng-container", 0);
|
|
@@ -29260,7 +29300,7 @@
|
|
|
29260
29300
|
var _r1 = i0__namespace.ɵɵreference(2);
|
|
29261
29301
|
i0__namespace.ɵɵproperty("ngIf", !ctx.reduce)("ngIfElse", _r1);
|
|
29262
29302
|
}
|
|
29263
|
-
}, directives: [i1__namespace.NgIf, i1__namespace.NgStyle, i1__namespace.NgForOf, i1__namespace.NgClass, IconComponent, ModalComponent], pipes: [EllipsisPipe], styles: [".miam-recipe-tags__container__list{display:flex;flex-wrap:wrap;gap:8px;flex:1 1}.miam-recipe-tags__container__list .miam-recipe-tags__list__badge{display:flex;align-items:center;padding:0 8px 0 0;height:24px;border:1px solid #e9e9e9;box-sizing:border-box;border-radius:100px;
|
|
29303
|
+
}, directives: [i1__namespace.NgIf, i1__namespace.NgStyle, i1__namespace.NgForOf, i1__namespace.NgClass, IconComponent, ModalComponent], pipes: [EllipsisPipe], styles: [".miam-recipe-tags__container__list{display:flex;flex-wrap:wrap;gap:8px;flex:1 1}.miam-recipe-tags__container__list .miam-recipe-tags__list__badge{display:flex;align-items:center;padding:0 8px 0 0;height:24px;border:1px solid #e9e9e9;box-sizing:border-box;border-radius:100px;position:relative;max-width:50vw}.miam-recipe-tags__container__list .miam-recipe-tags__list__badge .miam-recipe-tags__badge__icon{padding:4px 8px;background:var(--m-color-primary);border-radius:100px 0 0 100px;flex:none;order:0;flex-grow:0}.miam-recipe-tags__container__list .miam-recipe-tags__list__badge .miam-recipe-tag__badge__text{font-size:12px;line-height:16px;color:#676767;margin:0 8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;flex:1;min-width:0}.miam-recipe-tags__container{display:flex;transition:height .25s cubic-bezier(0,0,.2,1);overflow:hidden;padding:0 8px;margin-top:16px}.miam-recipe-tags__container .miam-recipe-tags__container__toggle{display:flex;flex-direction:column;align-items:center;width:80px;visibility:visible}.miam-recipe-tags__container .miam-recipe-tags__container__toggle.miam-recipe-tags__container__toggle__hidden{visibility:hidden}.miam-recipe-tags__container .miam-recipe-tags__container__toggle .miam-recipe-tags__toggle__open{display:flex;justify-content:center;padding:4px 8px;height:24px;background:#f6f6f6;min-width:40px;border-radius:100px;cursor:pointer;line-height:100%}.miam-recipe-tags__container .miam-recipe-tags__container__toggle .miam-recipe-tags__toggle__ligne{width:2px;flex:1;background-color:var(--m-color-grey);transform:height 1s linear}.miam-recipe-tags__container .miam-recipe-tags__container__toggle .miam-recipe-tags__toggle__close{background:var(--m-color-primary);min-width:40px;cursor:pointer;border-radius:100px;transition:opacity .2s linear}.miam-recipe-tags__container .miam-recipe-tags__container__toggle .miam-recipe-tags__toggle__close ng-miam-icon .icon-container{transform:rotate(180deg)}.miam-recipe-tags__recipes{display:flex;align-items:center;padding:0 8px 0 0;height:24px;border:1px solid #e9e9e9;box-sizing:border-box;border-radius:100px;cursor:pointer;position:relative;max-width:50vw}.miam-recipe-tags__recipes .miam-recipe-tags__recipes__count{margin-right:4px}.miam-recipe-tags__modal .miam-modal{top:50%;right:50%;transform:translate3d(50%,-50%,0);height:auto;animation-name:none}.miam-recipe-tags__modal .miam-modal .miam-modal__container .miam-recipe-tags__container__list{display:flex;flex-flow:row wrap;max-width:480px;padding:24px}@media (max-width:1023px){.miam-recipe-tags__modal .miam-modal .miam-modal__container .miam-recipe-tags__container__list{flex-flow:column}}"], encapsulation: 2, changeDetection: 0 });
|
|
29264
29304
|
(function () {
|
|
29265
29305
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeTagsComponent, [{
|
|
29266
29306
|
type: i0.Component,
|