ng-miam 9.3.13 → 9.3.14
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 +148 -166
- 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/recipe-cards/recipe-card/recipe-card.component.js +146 -159
- package/esm2015/lib/environments/version.js +2 -2
- package/fesm2015/ng-miam.js +146 -159
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/environments/version.d.ts +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -3652,7 +3652,7 @@
|
|
|
3652
3652
|
EventJourney["EMPTY"] = "";
|
|
3653
3653
|
})(EventJourney || (EventJourney = {}));
|
|
3654
3654
|
|
|
3655
|
-
var VERSION = "9.3.
|
|
3655
|
+
var VERSION = "9.3.14"; // TODO: replace by ##VERSION## and update it in the CI/CD
|
|
3656
3656
|
|
|
3657
3657
|
var ContextRegistryService = /** @class */ (function () {
|
|
3658
3658
|
function ContextRegistryService() {
|
|
@@ -21648,17 +21648,17 @@
|
|
|
21648
21648
|
|
|
21649
21649
|
function RecipeCardComponent_div_1_div_7_ng_miam_like_button_1_Template(rf, ctx) {
|
|
21650
21650
|
if (rf & 1) {
|
|
21651
|
-
i0__namespace.ɵɵelement(0, "ng-miam-like-button",
|
|
21651
|
+
i0__namespace.ɵɵelement(0, "ng-miam-like-button", 33);
|
|
21652
21652
|
}
|
|
21653
21653
|
if (rf & 2) {
|
|
21654
|
-
var
|
|
21655
|
-
i0__namespace.ɵɵproperty("recipe",
|
|
21654
|
+
var ctx_r14 = i0__namespace.ɵɵnextContext(3);
|
|
21655
|
+
i0__namespace.ɵɵproperty("recipe", ctx_r14.recipe)("originTrace", ctx_r14.eventTrace);
|
|
21656
21656
|
}
|
|
21657
21657
|
}
|
|
21658
21658
|
function RecipeCardComponent_div_1_div_7_Template(rf, ctx) {
|
|
21659
21659
|
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",
|
|
21660
|
+
i0__namespace.ɵɵelementStart(0, "div", 32);
|
|
21661
|
+
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_7_ng_miam_like_button_1_Template, 1, 2, "ng-miam-like-button", 28);
|
|
21662
21662
|
i0__namespace.ɵɵpipe(2, "async");
|
|
21663
21663
|
i0__namespace.ɵɵelementEnd();
|
|
21664
21664
|
}
|
|
@@ -21668,285 +21668,265 @@
|
|
|
21668
21668
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r2.displayLikesBottom && i0__namespace.ɵɵpipeBind1(2, 1, ctx_r2.userService.isLogged$));
|
|
21669
21669
|
}
|
|
21670
21670
|
}
|
|
21671
|
-
function
|
|
21671
|
+
function RecipeCardComponent_div_1_div_9_img_1_Template(rf, ctx) {
|
|
21672
21672
|
if (rf & 1) {
|
|
21673
|
-
i0__namespace.ɵɵelement(0, "
|
|
21673
|
+
i0__namespace.ɵɵelement(0, "img", 37);
|
|
21674
21674
|
}
|
|
21675
21675
|
}
|
|
21676
|
-
function
|
|
21676
|
+
function RecipeCardComponent_div_1_div_9_img_2_Template(rf, ctx) {
|
|
21677
21677
|
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);
|
|
21678
|
+
i0__namespace.ɵɵelement(0, "img", 38);
|
|
21686
21679
|
}
|
|
21687
21680
|
}
|
|
21688
|
-
function
|
|
21681
|
+
function RecipeCardComponent_div_1_div_9_Template(rf, ctx) {
|
|
21689
21682
|
if (rf & 1) {
|
|
21690
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21691
|
-
i0__namespace.ɵɵtemplate(1,
|
|
21692
|
-
i0__namespace.ɵɵtemplate(2,
|
|
21683
|
+
i0__namespace.ɵɵelementStart(0, "div", 34);
|
|
21684
|
+
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_9_img_1_Template, 1, 0, "img", 35);
|
|
21685
|
+
i0__namespace.ɵɵtemplate(2, RecipeCardComponent_div_1_div_9_img_2_Template, 1, 0, "img", 36);
|
|
21693
21686
|
i0__namespace.ɵɵelementEnd();
|
|
21694
21687
|
}
|
|
21695
21688
|
if (rf & 2) {
|
|
21696
21689
|
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
21690
|
+
i0__namespace.ɵɵproperty("ngClass", ctx_r3.isDrink ? "drink" : "food");
|
|
21697
21691
|
i0__namespace.ɵɵadvance(1);
|
|
21698
|
-
i0__namespace.ɵɵproperty("ngIf", !ctx_r3.
|
|
21692
|
+
i0__namespace.ɵɵproperty("ngIf", !ctx_r3.isDrink);
|
|
21699
21693
|
i0__namespace.ɵɵadvance(1);
|
|
21700
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r3.
|
|
21694
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r3.isDrink);
|
|
21701
21695
|
}
|
|
21702
21696
|
}
|
|
21703
|
-
function
|
|
21697
|
+
function RecipeCardComponent_div_1_div_10_Template(rf, ctx) {
|
|
21704
21698
|
if (rf & 1) {
|
|
21705
|
-
i0__namespace.ɵɵ
|
|
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);
|
|
21716
|
-
}
|
|
21717
|
-
}
|
|
21718
|
-
function RecipeCardComponent_div_1_div_9_Template(rf, ctx) {
|
|
21719
|
-
if (rf & 1) {
|
|
21720
|
-
i0__namespace.ɵɵelementStart(0, "div", 37);
|
|
21721
|
-
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_9_ng_miam_recipe_promotion_badge_1_Template, 1, 0, "ng-miam-recipe-promotion-badge", 33);
|
|
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);
|
|
21699
|
+
i0__namespace.ɵɵelementStart(0, "div", 39);
|
|
21700
|
+
i0__namespace.ɵɵelement(1, "img", 40);
|
|
21724
21701
|
i0__namespace.ɵɵelementEnd();
|
|
21725
21702
|
}
|
|
21726
21703
|
if (rf & 2) {
|
|
21727
21704
|
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
21728
|
-
i0__namespace.ɵɵproperty("ngClass", ctx_r4.isDrink ? "drink" : "food");
|
|
21729
|
-
i0__namespace.ɵɵadvance(1);
|
|
21730
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r4.isInPromotion);
|
|
21731
21705
|
i0__namespace.ɵɵadvance(1);
|
|
21732
|
-
i0__namespace.ɵɵproperty("
|
|
21733
|
-
i0__namespace.ɵɵadvance(1);
|
|
21734
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r4.isDrink);
|
|
21706
|
+
i0__namespace.ɵɵproperty("src", ctx_r4.recipe.sponsorLogoUrl, i0__namespace.ɵɵsanitizeUrl)("alt", "Logo du sponsor " + ctx_r4.recipe.sponsorName);
|
|
21735
21707
|
}
|
|
21736
21708
|
}
|
|
21737
|
-
function
|
|
21709
|
+
function RecipeCardComponent_div_1_ng_miam_recipe_promotion_badge_11_Template(rf, ctx) {
|
|
21738
21710
|
if (rf & 1) {
|
|
21739
|
-
i0__namespace.ɵɵ
|
|
21711
|
+
i0__namespace.ɵɵelement(0, "ng-miam-recipe-promotion-badge");
|
|
21712
|
+
}
|
|
21713
|
+
}
|
|
21714
|
+
function RecipeCardComponent_div_1_div_21_div_5_Template(rf, ctx) {
|
|
21715
|
+
if (rf & 1) {
|
|
21716
|
+
i0__namespace.ɵɵelementStart(0, "div", 45);
|
|
21740
21717
|
i0__namespace.ɵɵtext(1);
|
|
21741
21718
|
i0__namespace.ɵɵelementEnd();
|
|
21742
21719
|
}
|
|
21743
21720
|
if (rf & 2) {
|
|
21744
|
-
var
|
|
21721
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(3);
|
|
21745
21722
|
i0__namespace.ɵɵadvance(1);
|
|
21746
|
-
i0__namespace.ɵɵtextInterpolate1(" + ",
|
|
21723
|
+
i0__namespace.ɵɵtextInterpolate1(" + ", ctx_r17.recipe.modifiedIngredients.length - 2, " ");
|
|
21747
21724
|
}
|
|
21748
21725
|
}
|
|
21749
|
-
function
|
|
21726
|
+
function RecipeCardComponent_div_1_div_21_Template(rf, ctx) {
|
|
21750
21727
|
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
|
|
21728
|
+
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21729
|
+
i0__namespace.ɵɵelementStart(0, "div", 41);
|
|
21730
|
+
i0__namespace.ɵɵelementStart(1, "div", 42);
|
|
21731
|
+
i0__namespace.ɵɵelementStart(2, "img", 43);
|
|
21732
|
+
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
21733
|
i0__namespace.ɵɵelementEnd();
|
|
21757
21734
|
i0__namespace.ɵɵelementEnd();
|
|
21758
|
-
i0__namespace.ɵɵelementStart(3, "div",
|
|
21759
|
-
i0__namespace.ɵɵelementStart(4, "img",
|
|
21760
|
-
i0__namespace.ɵɵlistener("error", function
|
|
21735
|
+
i0__namespace.ɵɵelementStart(3, "div", 42);
|
|
21736
|
+
i0__namespace.ɵɵelementStart(4, "img", 43);
|
|
21737
|
+
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
21738
|
i0__namespace.ɵɵelementEnd();
|
|
21762
21739
|
i0__namespace.ɵɵelementEnd();
|
|
21763
|
-
i0__namespace.ɵɵtemplate(5,
|
|
21740
|
+
i0__namespace.ɵɵtemplate(5, RecipeCardComponent_div_1_div_21_div_5_Template, 2, 1, "div", 44);
|
|
21764
21741
|
i0__namespace.ɵɵelementEnd();
|
|
21765
21742
|
}
|
|
21766
21743
|
if (rf & 2) {
|
|
21767
|
-
var
|
|
21768
|
-
i0__namespace.ɵɵattribute("aria-label",
|
|
21744
|
+
var ctx_r6 = i0__namespace.ɵɵnextContext(2);
|
|
21745
|
+
i0__namespace.ɵɵattribute("aria-label", ctx_r6.getIngredientsAriaLabel());
|
|
21769
21746
|
i0__namespace.ɵɵadvance(2);
|
|
21770
|
-
i0__namespace.ɵɵproperty("src",
|
|
21747
|
+
i0__namespace.ɵɵproperty("src", ctx_r6.ingredientPicture(ctx_r6.recipe.modifiedIngredients[0]), i0__namespace.ɵɵsanitizeUrl)("alt", "");
|
|
21771
21748
|
i0__namespace.ɵɵadvance(2);
|
|
21772
|
-
i0__namespace.ɵɵproperty("src",
|
|
21749
|
+
i0__namespace.ɵɵproperty("src", ctx_r6.ingredientPicture(ctx_r6.recipe.modifiedIngredients[1]), i0__namespace.ɵɵsanitizeUrl)("alt", "");
|
|
21773
21750
|
i0__namespace.ɵɵadvance(1);
|
|
21774
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
21751
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r6.recipe.modifiedIngredients.length > 2);
|
|
21775
21752
|
}
|
|
21776
21753
|
}
|
|
21777
|
-
function
|
|
21754
|
+
function RecipeCardComponent_div_1_div_24_div_1_Template(rf, ctx) {
|
|
21778
21755
|
if (rf & 1) {
|
|
21779
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21780
|
-
i0__namespace.ɵɵelement(1, "img",
|
|
21781
|
-
i0__namespace.ɵɵelementStart(2, "span",
|
|
21756
|
+
i0__namespace.ɵɵelementStart(0, "div", 49);
|
|
21757
|
+
i0__namespace.ɵɵelement(1, "img", 50);
|
|
21758
|
+
i0__namespace.ɵɵelementStart(2, "span", 51);
|
|
21782
21759
|
i0__namespace.ɵɵtext(3);
|
|
21783
21760
|
i0__namespace.ɵɵelementEnd();
|
|
21784
21761
|
i0__namespace.ɵɵelementEnd();
|
|
21785
21762
|
}
|
|
21786
21763
|
if (rf & 2) {
|
|
21787
|
-
var
|
|
21788
|
-
i0__namespace.ɵɵattribute("aria-label", "Difficult\u00E9: " +
|
|
21764
|
+
var ctx_r21 = i0__namespace.ɵɵnextContext(3);
|
|
21765
|
+
i0__namespace.ɵɵattribute("aria-label", "Difficult\u00E9: " + ctx_r21.recipeService.difficultyLevels[ctx_r21.recipe.difficulty - 1].label);
|
|
21789
21766
|
i0__namespace.ɵɵadvance(3);
|
|
21790
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
21767
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r21.recipeService.difficultyLevels[ctx_r21.recipe.difficulty - 1].label);
|
|
21791
21768
|
}
|
|
21792
21769
|
}
|
|
21793
|
-
function
|
|
21770
|
+
function RecipeCardComponent_div_1_div_24_div_2_Template(rf, ctx) {
|
|
21794
21771
|
if (rf & 1) {
|
|
21795
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21796
|
-
i0__namespace.ɵɵelement(1, "img",
|
|
21797
|
-
i0__namespace.ɵɵelementStart(2, "span",
|
|
21772
|
+
i0__namespace.ɵɵelementStart(0, "div", 52);
|
|
21773
|
+
i0__namespace.ɵɵelement(1, "img", 53);
|
|
21774
|
+
i0__namespace.ɵɵelementStart(2, "span", 51);
|
|
21798
21775
|
i0__namespace.ɵɵtext(3);
|
|
21799
21776
|
i0__namespace.ɵɵelementEnd();
|
|
21800
21777
|
i0__namespace.ɵɵelementEnd();
|
|
21801
21778
|
}
|
|
21802
21779
|
if (rf & 2) {
|
|
21803
|
-
var
|
|
21804
|
-
i0__namespace.ɵɵattribute("aria-label", "Temps de pr\u00E9paration: " +
|
|
21780
|
+
var ctx_r22 = i0__namespace.ɵɵnextContext(3);
|
|
21781
|
+
i0__namespace.ɵɵattribute("aria-label", "Temps de pr\u00E9paration: " + ctx_r22.recipe.totalTime);
|
|
21805
21782
|
i0__namespace.ɵɵadvance(3);
|
|
21806
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
21783
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r22.recipe.totalTime);
|
|
21807
21784
|
}
|
|
21808
21785
|
}
|
|
21809
|
-
function
|
|
21786
|
+
function RecipeCardComponent_div_1_div_24_Template(rf, ctx) {
|
|
21810
21787
|
if (rf & 1) {
|
|
21811
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21812
|
-
i0__namespace.ɵɵtemplate(1,
|
|
21813
|
-
i0__namespace.ɵɵtemplate(2,
|
|
21788
|
+
i0__namespace.ɵɵelementStart(0, "div", 46);
|
|
21789
|
+
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_div_24_div_1_Template, 4, 2, "div", 47);
|
|
21790
|
+
i0__namespace.ɵɵtemplate(2, RecipeCardComponent_div_1_div_24_div_2_Template, 4, 2, "div", 48);
|
|
21814
21791
|
i0__namespace.ɵɵelementEnd();
|
|
21815
21792
|
}
|
|
21816
21793
|
if (rf & 2) {
|
|
21817
|
-
var
|
|
21794
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
21818
21795
|
i0__namespace.ɵɵadvance(1);
|
|
21819
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
21796
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r7.recipe.difficulty);
|
|
21820
21797
|
i0__namespace.ɵɵadvance(1);
|
|
21821
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
21798
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r7.recipe.totalTime);
|
|
21822
21799
|
}
|
|
21823
21800
|
}
|
|
21824
|
-
function
|
|
21801
|
+
function RecipeCardComponent_div_1_ng_miam_recipe_promotion_badge_26_Template(rf, ctx) {
|
|
21825
21802
|
if (rf & 1) {
|
|
21826
|
-
i0__namespace.ɵɵelement(0, "ng-miam-recipe-promotion-badge",
|
|
21803
|
+
i0__namespace.ɵɵelement(0, "ng-miam-recipe-promotion-badge", 54);
|
|
21827
21804
|
}
|
|
21828
21805
|
}
|
|
21829
|
-
function
|
|
21806
|
+
function RecipeCardComponent_div_1_div_27_Template(rf, ctx) {
|
|
21830
21807
|
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
|
|
21808
|
+
var _r24_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21809
|
+
i0__namespace.ɵɵelementStart(0, "div", 55);
|
|
21810
|
+
i0__namespace.ɵɵelementStart(1, "ng-miam-recipe-pricing", 56);
|
|
21811
|
+
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
21812
|
i0__namespace.ɵɵelementEnd();
|
|
21836
21813
|
i0__namespace.ɵɵelementEnd();
|
|
21837
21814
|
}
|
|
21838
21815
|
if (rf & 2) {
|
|
21839
|
-
var
|
|
21816
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext(2);
|
|
21840
21817
|
i0__namespace.ɵɵadvance(1);
|
|
21841
|
-
i0__namespace.ɵɵproperty("recipeId",
|
|
21818
|
+
i0__namespace.ɵɵproperty("recipeId", ctx_r9.recipe.id)("serves", ctx_r9.recipe.modifiedGuests || +ctx_r9.recipe.guests)("inViewport", ctx_r9.inViewport);
|
|
21842
21819
|
}
|
|
21843
21820
|
}
|
|
21844
|
-
function
|
|
21821
|
+
function RecipeCardComponent_div_1_ng_miam_like_button_29_Template(rf, ctx) {
|
|
21845
21822
|
if (rf & 1) {
|
|
21846
|
-
i0__namespace.ɵɵelement(0, "ng-miam-like-button",
|
|
21823
|
+
i0__namespace.ɵɵelement(0, "ng-miam-like-button", 33);
|
|
21847
21824
|
}
|
|
21848
21825
|
if (rf & 2) {
|
|
21849
|
-
var
|
|
21850
|
-
i0__namespace.ɵɵproperty("recipe",
|
|
21826
|
+
var ctx_r10 = i0__namespace.ɵɵnextContext(2);
|
|
21827
|
+
i0__namespace.ɵɵproperty("recipe", ctx_r10.recipe)("originTrace", ctx_r10.eventTrace);
|
|
21851
21828
|
}
|
|
21852
21829
|
}
|
|
21853
|
-
function
|
|
21830
|
+
function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_31_Template(rf, ctx) {
|
|
21854
21831
|
if (rf & 1) {
|
|
21855
|
-
var
|
|
21856
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card-cta",
|
|
21857
|
-
i0__namespace.ɵɵlistener("displayed", function
|
|
21832
|
+
var _r26_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21833
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card-cta", 57);
|
|
21834
|
+
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
21835
|
i0__namespace.ɵɵelementEnd();
|
|
21859
21836
|
}
|
|
21860
21837
|
if (rf & 2) {
|
|
21861
|
-
var
|
|
21862
|
-
i0__namespace.ɵɵproperty("recipe",
|
|
21838
|
+
var ctx_r11 = i0__namespace.ɵɵnextContext(2);
|
|
21839
|
+
i0__namespace.ɵɵproperty("recipe", ctx_r11.recipe)("previewAllowed", ctx_r11.previewAllowed)("displayGuests", ctx_r11.displayGuests)("helpButtonAllowed", ctx_r11.helpButtonAllowed)("originTrace", ctx_r11.eventTrace);
|
|
21863
21840
|
}
|
|
21864
21841
|
}
|
|
21865
|
-
function
|
|
21842
|
+
function RecipeCardComponent_div_1_div_32_Template(rf, ctx) {
|
|
21866
21843
|
if (rf & 1) {
|
|
21867
|
-
var
|
|
21868
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
21869
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
21870
|
-
i0__namespace.ɵɵlistener("click", function
|
|
21844
|
+
var _r29_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21845
|
+
i0__namespace.ɵɵelementStart(0, "div", 58);
|
|
21846
|
+
i0__namespace.ɵɵelementStart(1, "button", 59);
|
|
21847
|
+
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
21848
|
i0__namespace.ɵɵelementStart(2, "span");
|
|
21872
|
-
i0__namespace.ɵɵi18n(3,
|
|
21849
|
+
i0__namespace.ɵɵi18n(3, 60);
|
|
21873
21850
|
i0__namespace.ɵɵelementEnd();
|
|
21874
21851
|
i0__namespace.ɵɵelementEnd();
|
|
21875
|
-
i0__namespace.ɵɵelementStart(4, "button",
|
|
21876
|
-
i0__namespace.ɵɵlistener("click", function
|
|
21877
|
-
i0__namespace.ɵɵelement(5, "ng-miam-icon",
|
|
21852
|
+
i0__namespace.ɵɵelementStart(4, "button", 61);
|
|
21853
|
+
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(); });
|
|
21854
|
+
i0__namespace.ɵɵelement(5, "ng-miam-icon", 62);
|
|
21878
21855
|
i0__namespace.ɵɵelementEnd();
|
|
21879
21856
|
i0__namespace.ɵɵelementEnd();
|
|
21880
21857
|
}
|
|
21881
21858
|
if (rf & 2) {
|
|
21882
|
-
var
|
|
21859
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(2);
|
|
21883
21860
|
i0__namespace.ɵɵadvance(5);
|
|
21884
|
-
i0__namespace.ɵɵproperty("iconName",
|
|
21861
|
+
i0__namespace.ɵɵproperty("iconName", ctx_r12.icon.Trash);
|
|
21885
21862
|
}
|
|
21886
21863
|
}
|
|
21887
|
-
function
|
|
21864
|
+
function RecipeCardComponent_div_1_button_33_Template(rf, ctx) {
|
|
21888
21865
|
if (rf & 1) {
|
|
21889
|
-
var
|
|
21890
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
21891
|
-
i0__namespace.ɵɵlistener("click", function
|
|
21866
|
+
var _r32_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21867
|
+
i0__namespace.ɵɵelementStart(0, "button", 59);
|
|
21868
|
+
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
21869
|
i0__namespace.ɵɵelementStart(1, "span");
|
|
21893
|
-
i0__namespace.ɵɵi18n(2,
|
|
21870
|
+
i0__namespace.ɵɵi18n(2, 63);
|
|
21894
21871
|
i0__namespace.ɵɵelementEnd();
|
|
21895
21872
|
i0__namespace.ɵɵelementEnd();
|
|
21896
21873
|
}
|
|
21897
21874
|
}
|
|
21898
21875
|
function RecipeCardComponent_div_1_Template(rf, ctx) {
|
|
21899
21876
|
if (rf & 1) {
|
|
21900
|
-
var
|
|
21877
|
+
var _r34_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21901
21878
|
i0__namespace.ɵɵelementStart(0, "div", 2);
|
|
21902
|
-
i0__namespace.ɵɵlistener("inViewport", function RecipeCardComponent_div_1_Template_div_inViewport_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
21879
|
+
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
21880
|
i0__namespace.ɵɵelementStart(1, "div", 3);
|
|
21904
|
-
i0__namespace.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_1_listener() { i0__namespace.ɵɵrestoreView(
|
|
21881
|
+
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
21882
|
i0__namespace.ɵɵelementStart(2, "div", 4);
|
|
21906
21883
|
i0__namespace.ɵɵelementStart(3, "img", 5);
|
|
21907
|
-
i0__namespace.ɵɵlistener("error", function RecipeCardComponent_div_1_Template_img_error_3_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
21884
|
+
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
21885
|
i0__namespace.ɵɵelementEnd();
|
|
21909
21886
|
i0__namespace.ɵɵelementEnd();
|
|
21910
21887
|
i0__namespace.ɵɵelement(4, "div", 6);
|
|
21911
21888
|
i0__namespace.ɵɵelementStart(5, "div", 7);
|
|
21912
21889
|
i0__namespace.ɵɵelementStart(6, "div", 8);
|
|
21913
21890
|
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,
|
|
21891
|
+
i0__namespace.ɵɵelementStart(8, "div", 10);
|
|
21892
|
+
i0__namespace.ɵɵtemplate(9, RecipeCardComponent_div_1_div_9_Template, 3, 3, "div", 11);
|
|
21893
|
+
i0__namespace.ɵɵtemplate(10, RecipeCardComponent_div_1_div_10_Template, 2, 2, "div", 12);
|
|
21894
|
+
i0__namespace.ɵɵtemplate(11, RecipeCardComponent_div_1_ng_miam_recipe_promotion_badge_11_Template, 1, 0, "ng-miam-recipe-promotion-badge", 13);
|
|
21916
21895
|
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
21896
|
i0__namespace.ɵɵelementEnd();
|
|
21897
|
+
i0__namespace.ɵɵelementStart(12, "div", 14);
|
|
21898
|
+
i0__namespace.ɵɵelementStart(13, "div", 15);
|
|
21899
|
+
i0__namespace.ɵɵelementStart(14, "span");
|
|
21900
|
+
i0__namespace.ɵɵtext(15);
|
|
21922
21901
|
i0__namespace.ɵɵelementEnd();
|
|
21923
|
-
i0__namespace.ɵɵelementStart(14, "div", 14);
|
|
21924
|
-
i0__namespace.ɵɵelementStart(15, "span", 15);
|
|
21925
|
-
i0__namespace.ɵɵtext(16);
|
|
21926
21902
|
i0__namespace.ɵɵelementEnd();
|
|
21927
|
-
i0__namespace.ɵɵ
|
|
21903
|
+
i0__namespace.ɵɵelementStart(16, "div", 16);
|
|
21904
|
+
i0__namespace.ɵɵelementStart(17, "span", 17);
|
|
21905
|
+
i0__namespace.ɵɵtext(18);
|
|
21906
|
+
i0__namespace.ɵɵelementEnd();
|
|
21907
|
+
i0__namespace.ɵɵelement(19, "img", 18);
|
|
21928
21908
|
i0__namespace.ɵɵelementEnd();
|
|
21929
21909
|
i0__namespace.ɵɵelementEnd();
|
|
21930
21910
|
i0__namespace.ɵɵelementEnd();
|
|
21931
21911
|
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
21912
|
i0__namespace.ɵɵelementStart(20, "div", 19);
|
|
21936
|
-
i0__namespace.ɵɵ
|
|
21937
|
-
i0__namespace.ɵɵtemplate(
|
|
21913
|
+
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(); });
|
|
21914
|
+
i0__namespace.ɵɵtemplate(21, RecipeCardComponent_div_1_div_21_Template, 6, 6, "div", 20);
|
|
21915
|
+
i0__namespace.ɵɵelementStart(22, "div", 21);
|
|
21938
21916
|
i0__namespace.ɵɵelementStart(23, "div", 22);
|
|
21939
|
-
i0__namespace.ɵɵtemplate(24,
|
|
21940
|
-
i0__namespace.ɵɵ
|
|
21917
|
+
i0__namespace.ɵɵtemplate(24, RecipeCardComponent_div_1_div_24_Template, 3, 2, "div", 23);
|
|
21918
|
+
i0__namespace.ɵɵelementStart(25, "div", 24);
|
|
21919
|
+
i0__namespace.ɵɵtemplate(26, RecipeCardComponent_div_1_ng_miam_recipe_promotion_badge_26_Template, 1, 0, "ng-miam-recipe-promotion-badge", 25);
|
|
21920
|
+
i0__namespace.ɵɵtemplate(27, RecipeCardComponent_div_1_div_27_Template, 2, 3, "div", 26);
|
|
21941
21921
|
i0__namespace.ɵɵelementEnd();
|
|
21942
21922
|
i0__namespace.ɵɵelementEnd();
|
|
21943
|
-
i0__namespace.ɵɵelementStart(
|
|
21944
|
-
i0__namespace.ɵɵtemplate(
|
|
21945
|
-
i0__namespace.ɵɵpipe(
|
|
21946
|
-
i0__namespace.ɵɵtemplate(
|
|
21923
|
+
i0__namespace.ɵɵelementStart(28, "div", 27);
|
|
21924
|
+
i0__namespace.ɵɵtemplate(29, RecipeCardComponent_div_1_ng_miam_like_button_29_Template, 1, 2, "ng-miam-like-button", 28);
|
|
21925
|
+
i0__namespace.ɵɵpipe(30, "async");
|
|
21926
|
+
i0__namespace.ɵɵtemplate(31, RecipeCardComponent_div_1_ng_miam_recipe_card_cta_31_Template, 1, 5, "ng-miam-recipe-card-cta", 29);
|
|
21947
21927
|
i0__namespace.ɵɵelementEnd();
|
|
21948
|
-
i0__namespace.ɵɵtemplate(
|
|
21949
|
-
i0__namespace.ɵɵtemplate(
|
|
21928
|
+
i0__namespace.ɵɵtemplate(32, RecipeCardComponent_div_1_div_32_Template, 6, 1, "div", 30);
|
|
21929
|
+
i0__namespace.ɵɵtemplate(33, RecipeCardComponent_div_1_button_33_Template, 3, 0, "button", 31);
|
|
21950
21930
|
i0__namespace.ɵɵelementEnd();
|
|
21951
21931
|
i0__namespace.ɵɵelementEnd();
|
|
21952
21932
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -21959,10 +21939,12 @@
|
|
|
21959
21939
|
i0__namespace.ɵɵattribute("aria-hidden", true);
|
|
21960
21940
|
i0__namespace.ɵɵadvance(4);
|
|
21961
21941
|
i0__namespace.ɵɵproperty("ngIf", !(ctx_r0.displayBadge && ctx_r0.recipe.sponsorLogoUrl));
|
|
21942
|
+
i0__namespace.ɵɵadvance(2);
|
|
21943
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.displayBadge);
|
|
21962
21944
|
i0__namespace.ɵɵadvance(1);
|
|
21963
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
21945
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.recipe.sponsorLogoUrl);
|
|
21964
21946
|
i0__namespace.ɵɵadvance(1);
|
|
21965
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.
|
|
21947
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.isInPromotion);
|
|
21966
21948
|
i0__namespace.ɵɵadvance(4);
|
|
21967
21949
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.recipe.attributes["title"]);
|
|
21968
21950
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -21978,7 +21960,7 @@
|
|
|
21978
21960
|
i0__namespace.ɵɵadvance(1);
|
|
21979
21961
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.recipe && ctx_r0.displayPricing);
|
|
21980
21962
|
i0__namespace.ɵɵadvance(2);
|
|
21981
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.displayLikesBottom && i0__namespace.ɵɵpipeBind1(
|
|
21963
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.displayLikesBottom && i0__namespace.ɵɵpipeBind1(30, 19, ctx_r0.userService.isLogged$));
|
|
21982
21964
|
i0__namespace.ɵɵadvance(2);
|
|
21983
21965
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.previewAllowed && !ctx_r0.addRecipeMode && !ctx_r0.replaceMode);
|
|
21984
21966
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -21989,20 +21971,20 @@
|
|
|
21989
21971
|
}
|
|
21990
21972
|
function RecipeCardComponent_div_2_Template(rf, ctx) {
|
|
21991
21973
|
if (rf & 1) {
|
|
21992
|
-
var
|
|
21974
|
+
var _r39_1 = i0__namespace.ɵɵgetCurrentView();
|
|
21993
21975
|
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",
|
|
21976
|
+
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(); });
|
|
21977
|
+
i0__namespace.ɵɵelementStart(1, "a", 64);
|
|
21978
|
+
i0__namespace.ɵɵelement(2, "img", 65);
|
|
21979
|
+
i0__namespace.ɵɵelementStart(3, "div", 66);
|
|
21980
|
+
i0__namespace.ɵɵelementStart(4, "div", 67);
|
|
21999
21981
|
i0__namespace.ɵɵelementStart(5, "span");
|
|
22000
|
-
i0__namespace.ɵɵi18n(6,
|
|
21982
|
+
i0__namespace.ɵɵi18n(6, 68);
|
|
22001
21983
|
i0__namespace.ɵɵelementEnd();
|
|
22002
21984
|
i0__namespace.ɵɵelementEnd();
|
|
22003
|
-
i0__namespace.ɵɵelementStart(7, "button",
|
|
21985
|
+
i0__namespace.ɵɵelementStart(7, "button", 69);
|
|
22004
21986
|
i0__namespace.ɵɵelementStart(8, "span");
|
|
22005
|
-
i0__namespace.ɵɵi18n(9,
|
|
21987
|
+
i0__namespace.ɵɵi18n(9, 70);
|
|
22006
21988
|
i0__namespace.ɵɵelementEnd();
|
|
22007
21989
|
i0__namespace.ɵɵelementEnd();
|
|
22008
21990
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -22293,12 +22275,12 @@
|
|
|
22293
22275
|
else {
|
|
22294
22276
|
i18n_6 = $localize(templateObject_4$c || (templateObject_4$c = __makeTemplateObject([":\u241Ff51693cf087a834d433fa3835d7b64905fdc57ee\u241F9008711340501624723:D\u00E9couvrez nos recettes"], [":\u241Ff51693cf087a834d433fa3835d7b64905fdc57ee\u241F9008711340501624723:D\u00E9couvrez nos recettes"])));
|
|
22295
22277
|
}
|
|
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-
|
|
22278
|
+
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
22279
|
}, template: function RecipeCardComponent_Template(rf, ctx) {
|
|
22298
22280
|
if (rf & 1) {
|
|
22299
22281
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
22300
22282
|
i0__namespace.ɵɵlistener("inViewport", function RecipeCardComponent_Template_div_inViewport_0_listener() { return ctx.sendShowEvent(); });
|
|
22301
|
-
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_Template,
|
|
22283
|
+
i0__namespace.ɵɵtemplate(1, RecipeCardComponent_div_1_Template, 34, 21, "div", 1);
|
|
22302
22284
|
i0__namespace.ɵɵtemplate(2, RecipeCardComponent_div_2_Template, 10, 3, "div", 1);
|
|
22303
22285
|
i0__namespace.ɵɵelementEnd();
|
|
22304
22286
|
}
|
|
@@ -22309,7 +22291,7 @@
|
|
|
22309
22291
|
i0__namespace.ɵɵadvance(1);
|
|
22310
22292
|
i0__namespace.ɵɵproperty("ngIf", ctx.isloaded && !ctx.recipe);
|
|
22311
22293
|
}
|
|
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;
|
|
22294
|
+
}, 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
22295
|
(function () {
|
|
22314
22296
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeCardComponent, [{
|
|
22315
22297
|
type: i0.Component,
|