ng-miam 9.2.0 → 9.2.2
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 +927 -634
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/accordion/accordion.component.js +2 -2
- package/esm2015/lib/_components/addon-link/addon-link.component.js +3 -3
- package/esm2015/lib/_components/counter-input/counter-input.component.js +14 -12
- package/esm2015/lib/_components/guests-dropdown/guests-dropdown.component.js +8 -5
- package/esm2015/lib/_components/icon/icon.component.js +2 -2
- package/esm2015/lib/_components/like-button/like-button.component.js +6 -5
- package/esm2015/lib/_components/modal/modal.component.js +39 -36
- package/esm2015/lib/_components/no-pos-selected/no-pos-selected.component.js +2 -2
- package/esm2015/lib/_components/product-card/out-of-stock-overlay/out-of-stock-overlay.component.js +15 -6
- package/esm2015/lib/_components/product-card/product-card-skeleton/product-card-skeleton.component.js +1 -1
- package/esm2015/lib/_components/product-card/product-card.component.js +25 -7
- package/esm2015/lib/_components/products-picker/products-picker.component.js +2 -2
- package/esm2015/lib/_components/recipe-promotion-badge/recipe-promotion-badge.component.js +2 -2
- package/esm2015/lib/_components/sponsor-blocks/sponsor-image-and-text-block/sponsor-image-and-text-block.component.js +4 -4
- package/esm2015/lib/_components/sponsor-blocks/sponsor-logo-block/sponsor-logo-block.component.js +4 -4
- package/esm2015/lib/_components/sponsor-blocks/sponsor-picture-block/sponsor-picture-block.component.js +3 -3
- package/esm2015/lib/_components/sponsor-blocks/sponsor-small-picture-block/sponsor-small-picture-block.component.js +3 -3
- package/esm2015/lib/_components/sponsor-blocks/sponsor-text-and-image-block/sponsor-text-and-image-block.component.js +4 -4
- package/esm2015/lib/_models/basket-actions/basket-action.js +2 -2
- package/esm2015/lib/_services/basket-recipe-cleanup.service.js +62 -0
- package/esm2015/lib/_services/basket-transfer.service.js +3 -2
- package/esm2015/lib/_services/baskets-synchronizing/baskets-synchronizer.service.js +9 -3
- package/esm2015/lib/_services/context.service.js +17 -13
- package/esm2015/lib/_services/interceptor.service.js +10 -3
- package/esm2015/lib/_services/recipe-details.service.js +22 -7
- package/esm2015/lib/_services/recipes.service.js +5 -5
- package/esm2015/lib/_services/store-locator.service.js +10 -3
- package/esm2015/lib/_services/store-out-of-stock.service.js +57 -0
- package/esm2015/lib/_services/user.service.js +3 -3
- package/esm2015/lib/_types/builded/mealz-interface.js +1 -1
- package/esm2015/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.js +3 -2
- package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +130 -122
- package/esm2015/lib/_web-components/basket-preview/basket-preview-product/basket-preview-product.component.js +44 -34
- package/esm2015/lib/_web-components/basket-preview/replace-item/replace-item.component.js +14 -7
- package/esm2015/lib/_web-components/list-scan/files-inputs/files-inputs.component.js +2 -2
- package/esm2015/lib/_web-components/meals-planner/meals-planner-form/meals-planner-form.component.js +13 -13
- package/esm2015/lib/_web-components/no-supplier-onboarding/no-supplier-onboarding.component.js +8 -12
- package/esm2015/lib/_web-components/preferences/preferences-search/preferences-search.component.js +2 -2
- package/esm2015/lib/_web-components/preferences/preferences.component.js +28 -28
- package/esm2015/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.js +118 -97
- package/esm2015/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.js +21 -14
- package/esm2015/lib/_web-components/recipe-catalog/catalog-article-card/catalog-article-card.component.js +9 -8
- package/esm2015/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.js +10 -8
- package/esm2015/lib/_web-components/recipe-catalog/catalog-header/catalog-header.component.js +3 -3
- package/esm2015/lib/_web-components/recipe-catalog/catalog-toolbar/catalog-toolbar.component.js +14 -10
- package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +42 -37
- package/esm2015/lib/_web-components/recipe-details/last-order-modal/last-order-modal.component.js +2 -2
- package/esm2015/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.js +4 -3
- package/esm2015/lib/_web-components/recipe-details/recipe-details-infos/recipe-details-infos.component.js +16 -13
- package/esm2015/lib/_web-components/recipe-details/recipe-details-ingredients/recipe-details-ingredients.component.js +4 -3
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +98 -103
- package/esm2015/lib/_web-components/recipe-details/store-locator-link/store-locator-link.component.js +8 -7
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +7 -2
- package/esm2015/lib/environments/environment.js +2 -2
- package/esm2015/lib/environments/environment.prod.js +2 -2
- package/esm2015/lib/environments/version.js +2 -2
- package/esm2015/lib/ng-miam.module.js +4 -1
- package/fesm2015/ng-miam.js +882 -627
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_components/components.module.d.ts +2 -1
- package/lib/_components/components.module.d.ts.map +1 -1
- package/lib/_components/product-card/out-of-stock-overlay/out-of-stock-overlay.component.d.ts +7 -3
- package/lib/_components/product-card/out-of-stock-overlay/out-of-stock-overlay.component.d.ts.map +1 -1
- package/lib/_components/product-card/product-card.component.d.ts +2 -0
- package/lib/_components/product-card/product-card.component.d.ts.map +1 -1
- package/lib/_models/basket-actions/basket-action.d.ts.map +1 -1
- package/lib/_services/basket-recipe-cleanup.service.d.ts +21 -0
- package/lib/_services/basket-recipe-cleanup.service.d.ts.map +1 -0
- package/lib/_services/basket-transfer.service.d.ts.map +1 -1
- package/lib/_services/baskets-synchronizing/baskets-synchronizer.service.d.ts +1 -1
- package/lib/_services/baskets-synchronizing/baskets-synchronizer.service.d.ts.map +1 -1
- package/lib/_services/context.service.d.ts +3 -1
- package/lib/_services/context.service.d.ts.map +1 -1
- package/lib/_services/interceptor.service.d.ts +1 -0
- package/lib/_services/interceptor.service.d.ts.map +1 -1
- package/lib/_services/recipe-details.service.d.ts +8 -2
- package/lib/_services/recipe-details.service.d.ts.map +1 -1
- package/lib/_services/recipes.service.d.ts +2 -6
- package/lib/_services/recipes.service.d.ts.map +1 -1
- package/lib/_services/store-locator.service.d.ts +1 -0
- package/lib/_services/store-locator.service.d.ts.map +1 -1
- package/lib/_services/store-out-of-stock.service.d.ts +13 -0
- package/lib/_services/store-out-of-stock.service.d.ts.map +1 -0
- package/lib/_services/user.service.d.ts +2 -2
- package/lib/_services/user.service.d.ts.map +1 -1
- package/lib/_types/builded/mealz-interface.d.ts +4 -0
- package/lib/_types/builded/mealz-interface.d.ts.map +1 -1
- package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts +1 -0
- package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.d.ts +1 -0
- package/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts +1 -1
- package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts +1 -1
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts.map +1 -1
- package/lib/environments/version.d.ts +1 -1
- package/lib/ng-miam.module.d.ts.map +1 -1
- package/miam-style.css +1 -1
- package/package.json +1 -1
package/fesm2015/ng-miam.js
CHANGED
|
@@ -17,7 +17,7 @@ import endOfWeek from 'date-fns/endOfWeek';
|
|
|
17
17
|
import isWithinInterval from 'date-fns/isWithinInterval';
|
|
18
18
|
import startOfWeek from 'date-fns/startOfWeek';
|
|
19
19
|
import subDays from 'date-fns/subDays';
|
|
20
|
-
import * as
|
|
20
|
+
import * as i8 from '@angular/cdk/layout';
|
|
21
21
|
import { setABTestKey, initSharedAnalytics, setAffiliate, sendEvent } from 'mealz-shared-analytics';
|
|
22
22
|
import { flatten, unionBy } from 'lodash-es';
|
|
23
23
|
import pullAt from 'lodash-es/pullAt';
|
|
@@ -849,7 +849,7 @@ const environment$1 = {
|
|
|
849
849
|
env: 'prod',
|
|
850
850
|
miamAPI: 'https://api.miam.tech',
|
|
851
851
|
miamWeb: 'https://miam.tech',
|
|
852
|
-
mealzComponents: 'https://
|
|
852
|
+
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@1.2/dist',
|
|
853
853
|
mealzSsrApi: 'https://ssr-api.mealz.ai',
|
|
854
854
|
lang: 'fr'
|
|
855
855
|
};
|
|
@@ -1066,7 +1066,7 @@ function AddonLinkComponent_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
1066
1066
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
1067
1067
|
i0.ɵɵadvance(1);
|
|
1068
1068
|
i0.ɵɵpropertyInterpolate("src", ctx_r4.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl);
|
|
1069
|
-
i0.ɵɵ
|
|
1069
|
+
i0.ɵɵattribute("alt", "Logo " + ctx_r4.recipe.sponsorName);
|
|
1070
1070
|
} }
|
|
1071
1071
|
class AddonLinkComponent {
|
|
1072
1072
|
constructor(cdr) {
|
|
@@ -1091,7 +1091,7 @@ AddonLinkComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AddonLinkComponent, se
|
|
|
1091
1091
|
}
|
|
1092
1092
|
else {
|
|
1093
1093
|
i18n_2 = $localize `:␟21743cbace12f161ebbf8c79731b476336c1fe7a␟6125042438179034490: En savoir plus `;
|
|
1094
|
-
} return [[1, "miam-addon-link"], [1, "miam-addon-link__info"], [4, "ngIf", "ngIfElse"], ["sponsorsedLink", ""], ["class", "miam-addon-link__link", 3, "click", 4, "ngIf"], ["class", "miam-addon-link__logo", 4, "ngIf"], i18n_0, [1, "miam-addon-link__sponsor-name"], [1, "miam-addon-link__link", 3, "click"], i18n_2, [1, "miam-addon-link__logo"], [3, "src"
|
|
1094
|
+
} return [[1, "miam-addon-link"], [1, "miam-addon-link__info"], [4, "ngIf", "ngIfElse"], ["sponsorsedLink", ""], ["class", "miam-addon-link__link", 3, "click", 4, "ngIf"], ["class", "miam-addon-link__logo", 4, "ngIf"], i18n_0, [1, "miam-addon-link__sponsor-name"], [1, "miam-addon-link__link", 3, "click"], i18n_2, [1, "miam-addon-link__logo"], [3, "src"]]; }, template: function AddonLinkComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1095
1095
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1096
1096
|
i0.ɵɵelementStart(1, "div", 1);
|
|
1097
1097
|
i0.ɵɵtemplate(2, AddonLinkComponent_span_2_Template, 2, 1, "span", 2);
|
|
@@ -1609,27 +1609,27 @@ LoadOnScrollDirective.ɵdir = i0.ɵɵdefineDirective({ type: LoadOnScrollDirecti
|
|
|
1609
1609
|
|
|
1610
1610
|
const _c0$r = ["counterInput"];
|
|
1611
1611
|
function CounterInputComponent_img_3_Template(rf, ctx) { if (rf & 1) {
|
|
1612
|
-
i0.ɵɵelement(0, "img",
|
|
1612
|
+
i0.ɵɵelement(0, "img", 9);
|
|
1613
1613
|
} if (rf & 2) {
|
|
1614
1614
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
1615
1615
|
i0.ɵɵproperty("src", ctx_r0.disable && ctx_r0.biColor ? ctx_r0.icons.minus_white : ctx_r0.icons.minus, i0.ɵɵsanitizeUrl);
|
|
1616
1616
|
} }
|
|
1617
1617
|
function CounterInputComponent_div_4_Template(rf, ctx) { if (rf & 1) {
|
|
1618
|
-
i0.ɵɵelement(0, "div",
|
|
1618
|
+
i0.ɵɵelement(0, "div", 10);
|
|
1619
1619
|
} }
|
|
1620
1620
|
function CounterInputComponent_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
1621
|
-
i0.ɵɵelementStart(0, "div",
|
|
1622
|
-
i0.ɵɵelement(1, "img",
|
|
1621
|
+
i0.ɵɵelementStart(0, "div", 11);
|
|
1622
|
+
i0.ɵɵelement(1, "img", 12);
|
|
1623
1623
|
i0.ɵɵelementEnd();
|
|
1624
1624
|
} }
|
|
1625
1625
|
function CounterInputComponent_img_10_Template(rf, ctx) { if (rf & 1) {
|
|
1626
|
-
i0.ɵɵelement(0, "img",
|
|
1626
|
+
i0.ɵɵelement(0, "img", 9);
|
|
1627
1627
|
} if (rf & 2) {
|
|
1628
1628
|
const ctx_r3 = i0.ɵɵnextContext();
|
|
1629
1629
|
i0.ɵɵproperty("src", ctx_r3.icons.plus, i0.ɵɵsanitizeUrl);
|
|
1630
1630
|
} }
|
|
1631
1631
|
function CounterInputComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
1632
|
-
i0.ɵɵelement(0, "div",
|
|
1632
|
+
i0.ɵɵelement(0, "div", 10);
|
|
1633
1633
|
} }
|
|
1634
1634
|
const _c1$h = function (a0, a1, a2) { return { "disabled": a0, "miam-counter-input__minus__remove": a1, "ghost small": a2 }; };
|
|
1635
1635
|
const _c2$7 = function (a0, a1, a2) { return { "disabled": a0, "ghost small": a1, "primary": a2 }; };
|
|
@@ -1710,7 +1710,7 @@ CounterInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CounterInputCompone
|
|
|
1710
1710
|
} if (rf & 2) {
|
|
1711
1711
|
let _t;
|
|
1712
1712
|
i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.counterInput = _t.first);
|
|
1713
|
-
} }, inputs: { floating: "floating", biColor: "biColor", value: "value", minRange: "minRange", maxRange: "maxRange", disable: "disable", minusLoading: "minusLoading", plusLoading: "plusLoading", debounceTime: "debounceTime" }, outputs: { valueChange: "valueChange" }, features: [i0.ɵɵNgOnChangesFeature], decls: 12, vars:
|
|
1713
|
+
} }, inputs: { floating: "floating", biColor: "biColor", value: "value", minRange: "minRange", maxRange: "maxRange", disable: "disable", minusLoading: "minusLoading", plusLoading: "plusLoading", debounceTime: "debounceTime" }, outputs: { valueChange: "valueChange" }, features: [i0.ɵɵNgOnChangesFeature], decls: 12, vars: 25, consts: [[1, "miam-counter-input"], [1, "miam-counter-input__counter"], ["aria-label", "Diminuer la quantit\u00E9", 1, "miam-counter-input__minus", "miam-ds-button", "square", 3, "disabled", "ngClass", "click"], ["alt", "", "aria-hidden", "true", 3, "src", 4, "ngIf"], ["class", "miam-ds-loader", "role", "status", "aria-label", "Chargement en cours", 4, "ngIf"], [1, "miam-counter-input__value-container"], [1, "miam-counter-input__value-text", "miam-ds-text", "weight-xxl"], ["class", "miam-counter-input__people-button", 4, "ngIf"], ["aria-label", "Augmenter la quantit\u00E9", 1, "miam-counter-input__plus", "miam-ds-button", "square", 3, "disabled", "ngClass", "click"], ["alt", "", "aria-hidden", "true", 3, "src"], ["role", "status", "aria-label", "Chargement en cours", 1, "miam-ds-loader"], [1, "miam-counter-input__people-button"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/people-primary.svg", "alt", "", "aria-hidden", "true", 1, "miam-counter-input__people-icon"]], template: function CounterInputComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1714
1714
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1715
1715
|
i0.ɵɵelementStart(1, "div", 1);
|
|
1716
1716
|
i0.ɵɵelementStart(2, "button", 2);
|
|
@@ -1726,7 +1726,7 @@ CounterInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CounterInputCompone
|
|
|
1726
1726
|
i0.ɵɵelementEnd();
|
|
1727
1727
|
i0.ɵɵelementStart(9, "button", 8);
|
|
1728
1728
|
i0.ɵɵlistener("click", function CounterInputComponent_Template_button_click_9_listener($event) { return ctx.increment($event); });
|
|
1729
|
-
i0.ɵɵtemplate(10, CounterInputComponent_img_10_Template, 1, 1, "img",
|
|
1729
|
+
i0.ɵɵtemplate(10, CounterInputComponent_img_10_Template, 1, 1, "img", 3);
|
|
1730
1730
|
i0.ɵɵtemplate(11, CounterInputComponent_div_11_Template, 1, 0, "div", 4);
|
|
1731
1731
|
i0.ɵɵelementEnd();
|
|
1732
1732
|
i0.ɵɵelementEnd();
|
|
@@ -1734,17 +1734,19 @@ CounterInputComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CounterInputCompone
|
|
|
1734
1734
|
} if (rf & 2) {
|
|
1735
1735
|
i0.ɵɵclassProp("disabled", ctx.disable)("floating", ctx.floating)("bi-color", ctx.biColor);
|
|
1736
1736
|
i0.ɵɵadvance(2);
|
|
1737
|
-
i0.ɵɵproperty("disabled", ctx.disable)("ngClass", i0.ɵɵpureFunction3(
|
|
1737
|
+
i0.ɵɵproperty("disabled", ctx.disable)("ngClass", i0.ɵɵpureFunction3(17, _c1$h, ctx.disable, ctx.value == 1, !ctx.biColor));
|
|
1738
1738
|
i0.ɵɵadvance(1);
|
|
1739
1739
|
i0.ɵɵproperty("ngIf", !ctx.minusLoading);
|
|
1740
1740
|
i0.ɵɵadvance(1);
|
|
1741
1741
|
i0.ɵɵproperty("ngIf", ctx.minusLoading);
|
|
1742
|
-
i0.ɵɵadvance(
|
|
1742
|
+
i0.ɵɵadvance(1);
|
|
1743
|
+
i0.ɵɵattribute("aria-label", ctx.value + " " + (ctx.value > 1 ? "personnes" : "personne"));
|
|
1744
|
+
i0.ɵɵadvance(2);
|
|
1743
1745
|
i0.ɵɵtextInterpolate(ctx.value);
|
|
1744
1746
|
i0.ɵɵadvance(1);
|
|
1745
1747
|
i0.ɵɵproperty("ngIf", ctx.floating);
|
|
1746
1748
|
i0.ɵɵadvance(1);
|
|
1747
|
-
i0.ɵɵproperty("disabled", ctx.disable)("ngClass", i0.ɵɵpureFunction3(
|
|
1749
|
+
i0.ɵɵproperty("disabled", ctx.disable)("ngClass", i0.ɵɵpureFunction3(21, _c2$7, ctx.disable, !ctx.biColor, ctx.biColor));
|
|
1748
1750
|
i0.ɵɵadvance(1);
|
|
1749
1751
|
i0.ɵɵproperty("ngIf", !ctx.plusLoading);
|
|
1750
1752
|
i0.ɵɵadvance(1);
|
|
@@ -1792,13 +1794,15 @@ function GuestsDropdownComponent_div_7_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
1792
1794
|
i0.ɵɵelementEnd();
|
|
1793
1795
|
} if (rf & 2) {
|
|
1794
1796
|
const option_r2 = ctx.$implicit;
|
|
1797
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
1798
|
+
i0.ɵɵattribute("aria-selected", ctx_r1.selectedOption === option_r2);
|
|
1795
1799
|
i0.ɵɵadvance(1);
|
|
1796
1800
|
i0.ɵɵtextInterpolate1(" ", option_r2, " ");
|
|
1797
1801
|
} }
|
|
1798
1802
|
function GuestsDropdownComponent_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
1799
1803
|
i0.ɵɵelementStart(0, "div", 7);
|
|
1800
1804
|
i0.ɵɵelementStart(1, "div", 8);
|
|
1801
|
-
i0.ɵɵtemplate(2, GuestsDropdownComponent_div_7_div_2_Template, 2,
|
|
1805
|
+
i0.ɵɵtemplate(2, GuestsDropdownComponent_div_7_div_2_Template, 2, 2, "div", 9);
|
|
1802
1806
|
i0.ɵɵelementEnd();
|
|
1803
1807
|
i0.ɵɵelementEnd();
|
|
1804
1808
|
} if (rf & 2) {
|
|
@@ -1839,7 +1843,7 @@ class GuestsDropdownComponent {
|
|
|
1839
1843
|
GuestsDropdownComponent.ɵfac = function GuestsDropdownComponent_Factory(t) { return new (t || GuestsDropdownComponent)(i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
1840
1844
|
GuestsDropdownComponent.ɵcmp = i0.ɵɵdefineComponent({ type: GuestsDropdownComponent, selectors: [["ng-miam-guests-dropdown"]], hostBindings: function GuestsDropdownComponent_HostBindings(rf, ctx) { if (rf & 1) {
|
|
1841
1845
|
i0.ɵɵlistener("click", function GuestsDropdownComponent_click_HostBindingHandler($event) { return ctx.onclick($event); }, false, i0.ɵɵresolveDocument);
|
|
1842
|
-
} }, inputs: { options: "options", selectedOption: "selectedOption", disabled: "disabled" }, outputs: { optionSelected: "optionSelected" }, decls: 8, vars:
|
|
1846
|
+
} }, inputs: { options: "options", selectedOption: "selectedOption", disabled: "disabled" }, outputs: { optionSelected: "optionSelected" }, decls: 8, vars: 9, consts: [[1, "guests-dropdown", 3, "ngClass"], ["role", "button", "tabindex", "0", "aria-haspopup", "listbox", "aria-label", "S\u00E9lectionner le nombre de convives", 1, "guests-dropdown__button", 3, "ngClass", "click"], [1, "miam-ds-text", "size-m", "weight-xl"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/recipe-counter.svg", "alt", "", "aria-hidden", "true", 1, "guests-dropdown__guests-icon"], [1, "guests-dropdown__icon"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Caret.svg", "alt", "", "aria-hidden", "true"], ["class", "guests-dropdown__dropdown", "role", "listbox", "aria-label", "Options de nombre de convives", 4, "ngIf"], ["role", "listbox", "aria-label", "Options de nombre de convives", 1, "guests-dropdown__dropdown"], [1, "guests-dropdown__options"], ["class", "guests-dropdown__option", "role", "option", "tabindex", "0", 3, "click", 4, "ngFor", "ngForOf"], ["role", "option", "tabindex", "0", 1, "guests-dropdown__option", 3, "click"]], template: function GuestsDropdownComponent_Template(rf, ctx) { if (rf & 1) {
|
|
1843
1847
|
i0.ɵɵelementStart(0, "div", 0);
|
|
1844
1848
|
i0.ɵɵelementStart(1, "div", 1);
|
|
1845
1849
|
i0.ɵɵlistener("click", function GuestsDropdownComponent_Template_div_click_1_listener() { return ctx.toggleOptions(); });
|
|
@@ -1854,9 +1858,10 @@ GuestsDropdownComponent.ɵcmp = i0.ɵɵdefineComponent({ type: GuestsDropdownCom
|
|
|
1854
1858
|
i0.ɵɵtemplate(7, GuestsDropdownComponent_div_7_Template, 3, 1, "div", 6);
|
|
1855
1859
|
i0.ɵɵelementEnd();
|
|
1856
1860
|
} if (rf & 2) {
|
|
1857
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
1861
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(5, _c0$q, ctx.disabled));
|
|
1858
1862
|
i0.ɵɵadvance(1);
|
|
1859
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
1863
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c1$g, ctx.optionsShown));
|
|
1864
|
+
i0.ɵɵattribute("aria-expanded", ctx.optionsShown);
|
|
1860
1865
|
i0.ɵɵadvance(2);
|
|
1861
1866
|
i0.ɵɵtextInterpolate(ctx.selectedOption);
|
|
1862
1867
|
i0.ɵɵadvance(4);
|
|
@@ -2032,7 +2037,7 @@ class BasketAction {
|
|
|
2032
2037
|
}
|
|
2033
2038
|
getDifferenceFromBasketEntry(toCompare) {
|
|
2034
2039
|
return this.basketsService.waitForBasketEntries.pipe(map(basket => {
|
|
2035
|
-
const entryFromBasket = basket.find(
|
|
2040
|
+
const entryFromBasket = basket.filter(be => be.status === 'active').find(be => be.id === toCompare.basketEntry.id && be.selectedItem.extId === toCompare.id);
|
|
2036
2041
|
return toCompare.quantity - ((entryFromBasket === null || entryFromBasket === void 0 ? void 0 : entryFromBasket.quantity) || 0);
|
|
2037
2042
|
}));
|
|
2038
2043
|
}
|
|
@@ -2062,7 +2067,7 @@ var EventJourney;
|
|
|
2062
2067
|
EventJourney["EMPTY"] = "";
|
|
2063
2068
|
})(EventJourney || (EventJourney = {}));
|
|
2064
2069
|
|
|
2065
|
-
const VERSION = '9.2.
|
|
2070
|
+
const VERSION = '9.2.2'; // TODO: replace by ##VERSION## and update it in the CI/CD
|
|
2066
2071
|
|
|
2067
2072
|
class ContextRegistryService {
|
|
2068
2073
|
constructor() {
|
|
@@ -2699,7 +2704,7 @@ class UserService {
|
|
|
2699
2704
|
this.ignoredBasketsService.resetIgnoredIngredients();
|
|
2700
2705
|
}
|
|
2701
2706
|
this.initRoles();
|
|
2702
|
-
return combineLatest([this.initProvider(), this.initSupplier()]);
|
|
2707
|
+
return combineLatest([this.initProvider(), this.initSupplier()]);
|
|
2703
2708
|
}), skipWhile(res => res[0] === undefined || res[1] === undefined), take(1));
|
|
2704
2709
|
}
|
|
2705
2710
|
resetUserInfo() {
|
|
@@ -3616,6 +3621,7 @@ class StoreLocatorService {
|
|
|
3616
3621
|
this.storeLocatorOpened$ = new BehaviorSubject(false);
|
|
3617
3622
|
this.newStoreSelected$ = new Subject();
|
|
3618
3623
|
this.closeModalOnSelected = false;
|
|
3624
|
+
this.closeModalOnCancel = false;
|
|
3619
3625
|
this.showStoreLocatorWarning = new BehaviorSubject(false);
|
|
3620
3626
|
this.showNoSupplierOnboarding = new BehaviorSubject(false);
|
|
3621
3627
|
this.changePosAfterWarnConfirm = true;
|
|
@@ -3645,7 +3651,8 @@ class StoreLocatorService {
|
|
|
3645
3651
|
}
|
|
3646
3652
|
}
|
|
3647
3653
|
isStoreLocatorWarningNeeded(supplierId) {
|
|
3648
|
-
return /Mobi|Android|iPhone/i.test(navigator.userAgent) && supplierId === '7';
|
|
3654
|
+
// return /Mobi|Android|iPhone/i.test(navigator.userAgent) && supplierId === '7';
|
|
3655
|
+
return false; // deactivated for now
|
|
3649
3656
|
}
|
|
3650
3657
|
changePos() {
|
|
3651
3658
|
this.subscriptions.push(this.posService.loadPos(this.selectedPosId).pipe(skipWhile(pos => !pos || pos.id !== this.selectedPosId), switchMap((pos) => {
|
|
@@ -3669,7 +3676,12 @@ class StoreLocatorService {
|
|
|
3669
3676
|
}
|
|
3670
3677
|
closeStoreLocator() {
|
|
3671
3678
|
if (this.storeLocatorOpened$.value) {
|
|
3672
|
-
|
|
3679
|
+
if (this.storeLocatorEventTrace) {
|
|
3680
|
+
this.analyticsService.sendEvent('locator.close', `${this.storeLocatorEventTrace.originPath}/locator`, {});
|
|
3681
|
+
}
|
|
3682
|
+
else {
|
|
3683
|
+
this.closeModalOnCancel = true;
|
|
3684
|
+
}
|
|
3673
3685
|
this.storeLocatorOpenedTimestamp = 0;
|
|
3674
3686
|
}
|
|
3675
3687
|
this.storeLocatorOpened$.next(false);
|
|
@@ -3748,7 +3760,7 @@ class RecipesService extends Service {
|
|
|
3748
3760
|
this.displayedRecipe$ = new BehaviorSubject(null);
|
|
3749
3761
|
this.displayHelper$ = new BehaviorSubject(false);
|
|
3750
3762
|
this.displayedRecipeChanged$ = new BehaviorSubject(null);
|
|
3751
|
-
this.
|
|
3763
|
+
this.recipeDetailsTabIndex$ = new BehaviorSubject(null);
|
|
3752
3764
|
this.hidden = new EventEmitter();
|
|
3753
3765
|
this.suggestionsPrimaryButtonActions = { display: true, addToBasket: true };
|
|
3754
3766
|
this.recipesPrimaryButtonActions = { display: true, addToBasket: true };
|
|
@@ -3988,8 +4000,8 @@ class RecipesService extends Service {
|
|
|
3988
4000
|
this.analyticsService.sendEvent('basket.display', analyticsPath, {});
|
|
3989
4001
|
}
|
|
3990
4002
|
openRecipeDetails(recipeId, guests, initialTabIndex, path = '', categoryId = null) {
|
|
3991
|
-
this.
|
|
3992
|
-
this.
|
|
4003
|
+
this.display(recipeId, { previewAllowed: true, previewMode: false, guests });
|
|
4004
|
+
this.recipeDetailsTabIndex$.next(initialTabIndex);
|
|
3993
4005
|
this.analyticsService.sendEvent('recipe.display', path, { recipe_id: recipeId, category_id: categoryId });
|
|
3994
4006
|
}
|
|
3995
4007
|
openStoreLocator() {
|
|
@@ -5655,8 +5667,11 @@ class BasketsSynchronizerService {
|
|
|
5655
5667
|
this.subscriptions.push(this.mealzActionList.pipe(map((actions) => actions.filter(action => action.status === ActionStatus.INITIAL_STATE)), filter((actions) => actions.length > 0), switchMap((actions) => this.createActionsForRetailer(actions))).subscribe((actionsForRetailer) => {
|
|
5656
5668
|
if (actionsForRetailer.length > 0) {
|
|
5657
5669
|
mealzDebug('[Mealz] Pushing products to retailer cart', actionsForRetailer);
|
|
5658
|
-
this.checkActionsToSkip(actionsForRetailer);
|
|
5659
|
-
|
|
5670
|
+
const skipped = this.checkActionsToSkip(actionsForRetailer);
|
|
5671
|
+
const actionsToCommunicate = actionsForRetailer.filter(action => !skipped.some(a => a.id === action.id));
|
|
5672
|
+
if (actionsToCommunicate.length > 0) {
|
|
5673
|
+
this.sendActionsToRetailerCart(actionsForRetailer.filter(action => actionsToCommunicate.includes(action)));
|
|
5674
|
+
}
|
|
5660
5675
|
}
|
|
5661
5676
|
else {
|
|
5662
5677
|
this.syncMealzBasketWithRetailerCart(this.supplierService.lastSupplierCart);
|
|
@@ -5879,12 +5894,15 @@ class BasketsSynchronizerService {
|
|
|
5879
5894
|
});
|
|
5880
5895
|
}
|
|
5881
5896
|
checkActionsToSkip(retailerActions) {
|
|
5897
|
+
const actionsToSkip = [];
|
|
5882
5898
|
retailerActions.forEach((retailerAction) => {
|
|
5883
5899
|
// If the quantity is 0, skip the update from retailer
|
|
5884
5900
|
if (retailerAction.quantity === 0) {
|
|
5901
|
+
actionsToSkip.push(retailerAction);
|
|
5885
5902
|
this.skipRetailerUpdateForAction(this.mealzActionList.value.find(action => action.id === retailerAction.id));
|
|
5886
5903
|
}
|
|
5887
5904
|
});
|
|
5905
|
+
return actionsToSkip;
|
|
5888
5906
|
}
|
|
5889
5907
|
skipRetailerUpdateForAction(action) {
|
|
5890
5908
|
mealzDebug('[Mealz] Skipping retailer update for action', action.loggable);
|
|
@@ -6180,9 +6198,67 @@ HistoryService.ɵprov = i0.ɵɵdefineInjectable({ token: HistoryService, factory
|
|
|
6180
6198
|
}]
|
|
6181
6199
|
}], function () { return [{ type: i1.HttpClient }, { type: PointOfSalesService }, { type: SuppliersService }, { type: UserService }]; }, null); })();
|
|
6182
6200
|
|
|
6201
|
+
class BasketRecipeCleanupService {
|
|
6202
|
+
constructor(basketsService) {
|
|
6203
|
+
this.basketsService = basketsService;
|
|
6204
|
+
this.listenBasketEntriesChange();
|
|
6205
|
+
}
|
|
6206
|
+
listenBasketEntriesChange() {
|
|
6207
|
+
this.basketsService.basketEntries()
|
|
6208
|
+
.subscribe((entries) => this.cleanupRecipesWithDeletedEntries(entries));
|
|
6209
|
+
}
|
|
6210
|
+
/**
|
|
6211
|
+
* Cleans up recipes from the basket if all their basket entries have status 'deleted'.
|
|
6212
|
+
* @param basketEntries Array of basket entry objects (as received from API)
|
|
6213
|
+
*/
|
|
6214
|
+
cleanupRecipesWithDeletedEntries(basketEntries) {
|
|
6215
|
+
// Map recipeId to all associated basket entries
|
|
6216
|
+
const recipeEntryMap = new Map();
|
|
6217
|
+
const recipesIdToRemove = [];
|
|
6218
|
+
for (const entry of basketEntries) {
|
|
6219
|
+
const recipeIds = entry.recipesIds || [];
|
|
6220
|
+
for (const recipeId of recipeIds) {
|
|
6221
|
+
if (!recipeEntryMap.has(+recipeId)) {
|
|
6222
|
+
recipeEntryMap.set(+recipeId, []);
|
|
6223
|
+
}
|
|
6224
|
+
recipeEntryMap.get(+recipeId).push(entry);
|
|
6225
|
+
}
|
|
6226
|
+
}
|
|
6227
|
+
for (const [recipeId, entries] of recipeEntryMap.entries()) {
|
|
6228
|
+
const allDeleted = entries.every(e => e.attributes.status === 'deleted');
|
|
6229
|
+
// Filter: only consider recipes still in the basket
|
|
6230
|
+
if (allDeleted && this.basketsService.recipeIsInBasket(recipeId.toString())) {
|
|
6231
|
+
recipesIdToRemove.push(recipeId.toString());
|
|
6232
|
+
}
|
|
6233
|
+
}
|
|
6234
|
+
if (recipesIdToRemove.length > 0) {
|
|
6235
|
+
this.removeRecipesFromBasket(recipesIdToRemove);
|
|
6236
|
+
}
|
|
6237
|
+
}
|
|
6238
|
+
/**
|
|
6239
|
+
* Placeholder for actual removal logic (API call, state update, etc.)
|
|
6240
|
+
* @param recipeIds
|
|
6241
|
+
*/
|
|
6242
|
+
removeRecipesFromBasket(recipeIds) {
|
|
6243
|
+
const eventTrace = {
|
|
6244
|
+
originPath: '',
|
|
6245
|
+
props: {}
|
|
6246
|
+
};
|
|
6247
|
+
this.basketsService.removeRecipesFromBasket(recipeIds, eventTrace, false);
|
|
6248
|
+
}
|
|
6249
|
+
}
|
|
6250
|
+
BasketRecipeCleanupService.ɵfac = function BasketRecipeCleanupService_Factory(t) { return new (t || BasketRecipeCleanupService)(i0.ɵɵinject(BasketsService)); };
|
|
6251
|
+
BasketRecipeCleanupService.ɵprov = i0.ɵɵdefineInjectable({ token: BasketRecipeCleanupService, factory: BasketRecipeCleanupService.ɵfac, providedIn: 'root' });
|
|
6252
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BasketRecipeCleanupService, [{
|
|
6253
|
+
type: Injectable,
|
|
6254
|
+
args: [{
|
|
6255
|
+
providedIn: 'root'
|
|
6256
|
+
}]
|
|
6257
|
+
}], function () { return [{ type: BasketsService }]; }, null); })();
|
|
6258
|
+
|
|
6183
6259
|
const SMALL_SCREEN_BP = '(min-width: 1023px)';
|
|
6184
6260
|
class ContextService {
|
|
6185
|
-
constructor(posService, basketsService, userService, preferencesService, analyticsService, recipesService, mediaMatcher, suppliersService, breakpointObserver,
|
|
6261
|
+
constructor(posService, basketsService, userService, preferencesService, analyticsService, recipesService, basketRecipeCleanupService, mediaMatcher, suppliersService, breakpointObserver,
|
|
6186
6262
|
// private basketHandler: LegacyBasketsSynchronizerService,
|
|
6187
6263
|
basketHandler, storeLocatorService, recipeLikesService, fakeCartService, historyService, contextRegistryService) {
|
|
6188
6264
|
this.posService = posService;
|
|
@@ -6191,6 +6267,7 @@ class ContextService {
|
|
|
6191
6267
|
this.preferencesService = preferencesService;
|
|
6192
6268
|
this.analyticsService = analyticsService;
|
|
6193
6269
|
this.recipesService = recipesService;
|
|
6270
|
+
this.basketRecipeCleanupService = basketRecipeCleanupService;
|
|
6194
6271
|
this.mediaMatcher = mediaMatcher;
|
|
6195
6272
|
this.suppliersService = suppliersService;
|
|
6196
6273
|
this.breakpointObserver = breakpointObserver;
|
|
@@ -6344,7 +6421,8 @@ class ContextService {
|
|
|
6344
6421
|
}
|
|
6345
6422
|
},
|
|
6346
6423
|
getByAddress: this.posService.getByAddress.bind(this.posService),
|
|
6347
|
-
getByCoordinates: this.posService.getByCoordinates.bind(this.posService)
|
|
6424
|
+
getByCoordinates: this.posService.getByCoordinates.bind(this.posService),
|
|
6425
|
+
openNoSupplierOnboarding: () => this.storeLocatorService.showNoSupplierOnboarding.next(true)
|
|
6348
6426
|
},
|
|
6349
6427
|
recipes: {
|
|
6350
6428
|
hidden: this.recipesService.hidden,
|
|
@@ -6667,14 +6745,14 @@ class ContextService {
|
|
|
6667
6745
|
});
|
|
6668
6746
|
}
|
|
6669
6747
|
}
|
|
6670
|
-
ContextService.ɵfac = function ContextService_Factory(t) { return new (t || ContextService)(i0.ɵɵinject(PointOfSalesService), i0.ɵɵinject(BasketsService), i0.ɵɵinject(UserService), i0.ɵɵinject(PreferencesService), i0.ɵɵinject(AnalyticsService), i0.ɵɵinject(RecipesService), i0.ɵɵinject(
|
|
6748
|
+
ContextService.ɵfac = function ContextService_Factory(t) { return new (t || ContextService)(i0.ɵɵinject(PointOfSalesService), i0.ɵɵinject(BasketsService), i0.ɵɵinject(UserService), i0.ɵɵinject(PreferencesService), i0.ɵɵinject(AnalyticsService), i0.ɵɵinject(RecipesService), i0.ɵɵinject(BasketRecipeCleanupService), i0.ɵɵinject(i8.MediaMatcher), i0.ɵɵinject(SuppliersService), i0.ɵɵinject(i8.BreakpointObserver), i0.ɵɵinject(BasketsSynchronizerService), i0.ɵɵinject(StoreLocatorService), i0.ɵɵinject(RecipeLikesService), i0.ɵɵinject(FakeRetailerCartService), i0.ɵɵinject(HistoryService), i0.ɵɵinject(ContextRegistryService)); };
|
|
6671
6749
|
ContextService.ɵprov = i0.ɵɵdefineInjectable({ token: ContextService, factory: ContextService.ɵfac, providedIn: 'root' });
|
|
6672
6750
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ContextService, [{
|
|
6673
6751
|
type: Injectable,
|
|
6674
6752
|
args: [{
|
|
6675
6753
|
providedIn: 'root'
|
|
6676
6754
|
}]
|
|
6677
|
-
}], function () { return [{ type: PointOfSalesService }, { type: BasketsService }, { type: UserService }, { type: PreferencesService }, { type: AnalyticsService }, { type: RecipesService }, { type:
|
|
6755
|
+
}], function () { return [{ type: PointOfSalesService }, { type: BasketsService }, { type: UserService }, { type: PreferencesService }, { type: AnalyticsService }, { type: RecipesService }, { type: BasketRecipeCleanupService }, { type: i8.MediaMatcher }, { type: SuppliersService }, { type: i8.BreakpointObserver }, { type: BasketsSynchronizerService }, { type: StoreLocatorService }, { type: RecipeLikesService }, { type: FakeRetailerCartService }, { type: HistoryService }, { type: ContextRegistryService }]; }, null); })();
|
|
6678
6756
|
|
|
6679
6757
|
const _c0$p = function (a0, a1) { return { "width": a0, "height": a1 }; };
|
|
6680
6758
|
const _c1$f = function (a0) { return { "width": a0 }; };
|
|
@@ -7596,7 +7674,7 @@ class IconComponent {
|
|
|
7596
7674
|
}
|
|
7597
7675
|
}
|
|
7598
7676
|
IconComponent.ɵfac = function IconComponent_Factory(t) { return new (t || IconComponent)(i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
7599
|
-
IconComponent.ɵcmp = i0.ɵɵdefineComponent({ type: IconComponent, selectors: [["ng-miam-icon"]], inputs: { primaryColor: "primaryColor", secondaryColor: "secondaryColor", width: "width", height: "height", iconName: "iconName" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "icon-container", 3, "ngStyle", 4, "ngIf", "ngIfElse"], ["switchIcon", ""], [1, "icon-container", 3, "ngStyle"], [1, "icon-container__icon", 3, "src", "ngStyle"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Checkmark.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Alert_danger.svg", 1, "icon-container__icon", 3, "ngStyle"], ["viewBox", "0 0 16 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M12.5018 13.821H9.91582H9.21945H9.06906V10.3523H10.2035C10.4912 10.3523 10.6612 10.0253 10.4912 9.78995L8.28443 6.73642C8.14385 6.54026 7.85288 6.54026 7.7123 6.73642L5.50552 9.78995C5.33551 10.0253 5.50225 10.3523 5.79322 10.3523H6.92767V13.821H6.77728H6.08092H3.08296C1.36657 13.7262 0 12.121 0 10.3817C0 9.18186 0.650593 8.13568 1.61504 7.57009C1.52677 7.33143 1.481 7.07643 1.481 6.80834C1.481 5.58235 2.4716 4.59175 3.69759 4.59175C3.9624 4.59175 4.21741 4.63752 4.45607 4.72579C5.16551 3.22191 6.69555 2.179 8.47405 2.179C10.7756 2.18227 12.6718 3.94443 12.8876 6.19044C14.6563 6.49449 16 8.13241 16 9.98611C16 11.9673 14.4569 13.6837 12.5018 13.821Z"], ["viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M12.5 22C16.9183 22 20.5 18.4183 20.5 14C20.5 9.58172 16.9183 6 12.5 6C8.08172 6 4.5 9.58172 4.5 14C4.5 18.4183 8.08172 22 12.5 22Z", "stroke-width", "2"], ["d", "M14.5 2H10.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 2V6", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M18 8L19.5 6.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 14V11", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 14H9.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["viewBox", "0 0 16 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-x"], ["fill-rule", "evenodd", "d", "M11.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z"], ["fill-rule", "evenodd", "d", "M4.146 4.146a.5.5 0 0 0 0 .708l7 7a.5.5 0 0 0 .708-.708l-7-7a.5.5 0 0 0-.708 0z"], ["viewBox", "0 0 17 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-image"], ["fill-rule", "evenodd", "d", "M14.002 2h-12a1 1 0 0 0-1 1v9l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094L15.002 9.5V3a1 1 0 0 0-1-1zm-12-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm4 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"], ["viewBox", "0 0 64 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["clip-path", "url(#clip0)"], ["d", "M14.7613 14.2631C14.5819 13.8245 14.3992 13.386 14.1998 12.954C14.0237 12.5686 13.7978 12.4557 13.3759 12.552C12.8409 12.6749 12.316 12.8377 11.7811 12.9474C10.7478 13.1634 9.71117 13.1833 8.69117 12.861C7.41202 12.459 6.73091 11.532 6.31228 10.3359H9.78094C10.0534 10.3359 10.2727 10.1166 10.2727 9.8442V8.75111C10.2727 8.47866 10.0534 8.25938 9.78094 8.25938H5.98003C5.98003 7.95371 5.97671 7.66134 5.98003 7.36896H9.78094C10.0534 7.36896 10.2727 7.14968 10.2727 6.87723V5.78414C10.2727 5.5117 10.0534 5.29241 9.78094 5.29241H6.45847C6.45847 5.27912 6.45847 5.26583 6.46512 5.25919C6.86381 4.35215 7.44524 3.62453 8.39879 3.24577C9.5085 2.8072 10.6415 2.81717 11.7844 3.05307C12.326 3.16271 12.8576 3.32883 13.3991 3.45176C13.7945 3.54147 14.0237 3.42518 14.1932 3.05639C14.3892 2.63111 14.5686 2.19919 14.748 1.76395C14.9175 1.35528 14.8178 1.06623 14.4324 0.840299C14.3361 0.783817 14.2364 0.737303 14.1334 0.697433C12.532 0.072808 10.8807 -0.159765 9.17625 0.112678C7.97684 0.305381 6.85717 0.717368 5.89033 1.46825C4.67098 2.41183 3.88023 3.65776 3.42173 5.12297L3.36525 5.29241H1.6575C1.38505 5.29241 1.16577 5.5117 1.16577 5.78414V6.87723C1.16577 7.14968 1.38505 7.36896 1.6575 7.36896H3.0031C3.0031 7.66798 3.0031 7.95704 3.0031 8.25938H1.6575C1.38505 8.25938 1.16577 8.47866 1.16577 8.75111V9.8442C1.16577 10.1166 1.38505 10.3359 1.6575 10.3359H3.27886C3.4018 10.7346 3.50479 11.14 3.66095 11.522C4.4816 13.5022 5.8571 14.911 7.927 15.5821C9.63808 16.137 11.3624 16.1204 13.0868 15.6452C13.5353 15.5223 13.9805 15.3628 14.4058 15.1668C14.8178 14.9774 14.9241 14.6585 14.7613 14.2631Z"], ["clip-path", "url(#clip1)"], ["d", "M38.7613 14.2631C38.5819 13.8245 38.3992 13.386 38.1998 12.954C38.0237 12.5686 37.7978 12.4557 37.3759 12.552C36.8409 12.6749 36.316 12.8377 35.7811 12.9474C34.7478 13.1634 33.7112 13.1833 32.6912 12.861C31.412 12.459 30.7309 11.532 30.3123 10.3359H33.7809C34.0534 10.3359 34.2727 10.1166 34.2727 9.8442V8.75111C34.2727 8.47866 34.0534 8.25938 33.7809 8.25938H29.98C29.98 7.95371 29.9767 7.66134 29.98 7.36896H33.7809C34.0534 7.36896 34.2727 7.14968 34.2727 6.87723V5.78414C34.2727 5.5117 34.0534 5.29241 33.7809 5.29241H30.4585C30.4585 5.27912 30.4585 5.26583 30.4651 5.25919C30.8638 4.35215 31.4452 3.62453 32.3988 3.24577C33.5085 2.8072 34.6415 2.81717 35.7844 3.05307C36.326 3.16271 36.8576 3.32883 37.3991 3.45176C37.7945 3.54147 38.0237 3.42518 38.1932 3.05639C38.3892 2.63111 38.5686 2.19919 38.748 1.76395C38.9175 1.35528 38.8178 1.06623 38.4324 0.840299C38.3361 0.783817 38.2364 0.737303 38.1334 0.697433C36.532 0.072808 34.8807 -0.159765 33.1763 0.112678C31.9768 0.305381 30.8572 0.717368 29.8903 1.46825C28.671 2.41183 27.8802 3.65776 27.4217 5.12297L27.3652 5.29241H25.6575C25.3851 5.29241 25.1658 5.5117 25.1658 5.78414V6.87723C25.1658 7.14968 25.3851 7.36896 25.6575 7.36896H27.0031C27.0031 7.66798 27.0031 7.95704 27.0031 8.25938H25.6575C25.3851 8.25938 25.1658 8.47866 25.1658 8.75111V9.8442C25.1658 10.1166 25.3851 10.3359 25.6575 10.3359H27.2789C27.4018 10.7346 27.5048 11.14 27.6609 11.522C28.4816 13.5022 29.8571 14.911 31.927 15.5821C33.6381 16.137 35.3624 16.1204 37.0868 15.6452C37.5353 15.5223 37.9805 15.3628 38.4058 15.1668C38.8178 14.9774 38.9241 14.6585 38.7613 14.2631Z", "fill", "#8C8CA1"], ["clip-path", "url(#clip2)"], ["d", "M62.7613 14.2631C62.5819 13.8245 62.3992 13.386 62.1998 12.954C62.0237 12.5686 61.7978 12.4557 61.3759 12.552C60.8409 12.6749 60.316 12.8377 59.7811 12.9474C58.7478 13.1634 57.7112 13.1833 56.6912 12.861C55.412 12.459 54.7309 11.532 54.3123 10.3359H57.7809C58.0534 10.3359 58.2727 10.1166 58.2727 9.8442V8.75111C58.2727 8.47866 58.0534 8.25938 57.7809 8.25938H53.98C53.98 7.95371 53.9767 7.66134 53.98 7.36896H57.7809C58.0534 7.36896 58.2727 7.14968 58.2727 6.87723V5.78414C58.2727 5.5117 58.0534 5.29241 57.7809 5.29241H54.4585C54.4585 5.27912 54.4585 5.26583 54.4651 5.25919C54.8638 4.35215 55.4452 3.62453 56.3988 3.24577C57.5085 2.8072 58.6415 2.81717 59.7844 3.05307C60.326 3.16271 60.8576 3.32883 61.3991 3.45176C61.7945 3.54147 62.0237 3.42518 62.1932 3.05639C62.3892 2.63111 62.5686 2.19919 62.748 1.76395C62.9175 1.35528 62.8178 1.06623 62.4324 0.840299C62.3361 0.783817 62.2364 0.737303 62.1334 0.697433C60.532 0.072808 58.8807 -0.159765 57.1763 0.112678C55.9768 0.305381 54.8572 0.717368 53.8903 1.46825C52.671 2.41183 51.8802 3.65776 51.4217 5.12297L51.3652 5.29241H49.6575C49.3851 5.29241 49.1658 5.5117 49.1658 5.78414V6.87723C49.1658 7.14968 49.3851 7.36896 49.6575 7.36896H51.0031C51.0031 7.66798 51.0031 7.95704 51.0031 8.25938H49.6575C49.3851 8.25938 49.1658 8.47866 49.1658 8.75111V9.8442C49.1658 10.1166 49.3851 10.3359 49.6575 10.3359H51.2789C51.4018 10.7346 51.5048 11.14 51.6609 11.522C52.4816 13.5022 53.8571 14.911 55.927 15.5821C57.6381 16.137 59.3624 16.1204 61.0868 15.6452C61.5353 15.5223 61.9805 15.3628 62.4058 15.1668C62.8178 14.9774 62.9241 14.6585 62.7613 14.2631Z", "fill", "#8C8CA1"], ["id", "clip0"], ["width", "16", "height", "16", "fill", "white"], ["id", "clip1"], ["width", "16", "height", "16", "fill", "white", "transform", "translate(24)"], ["id", "clip2"], ["width", "16", "height", "16", "fill", "white", "transform", "translate(48)"], ["d", "M38.7613 14.2631C38.5819 13.8245 38.3992 13.386 38.1998 12.954C38.0237 12.5686 37.7978 12.4557 37.3759 12.552C36.8409 12.6749 36.316 12.8377 35.7811 12.9474C34.7478 13.1634 33.7112 13.1833 32.6912 12.861C31.412 12.459 30.7309 11.532 30.3123 10.3359H33.7809C34.0534 10.3359 34.2727 10.1166 34.2727 9.8442V8.75111C34.2727 8.47866 34.0534 8.25938 33.7809 8.25938H29.98C29.98 7.95371 29.9767 7.66134 29.98 7.36896H33.7809C34.0534 7.36896 34.2727 7.14968 34.2727 6.87723V5.78414C34.2727 5.5117 34.0534 5.29241 33.7809 5.29241H30.4585C30.4585 5.27912 30.4585 5.26583 30.4651 5.25919C30.8638 4.35215 31.4452 3.62453 32.3988 3.24577C33.5085 2.8072 34.6415 2.81717 35.7844 3.05307C36.326 3.16271 36.8576 3.32883 37.3991 3.45176C37.7945 3.54147 38.0237 3.42518 38.1932 3.05639C38.3892 2.63111 38.5686 2.19919 38.748 1.76395C38.9175 1.35528 38.8178 1.06623 38.4324 0.840299C38.3361 0.783817 38.2364 0.737303 38.1334 0.697433C36.532 0.072808 34.8807 -0.159765 33.1763 0.112678C31.9768 0.305381 30.8572 0.717368 29.8903 1.46825C28.671 2.41183 27.8802 3.65776 27.4217 5.12297L27.3652 5.29241H25.6575C25.3851 5.29241 25.1658 5.5117 25.1658 5.78414V6.87723C25.1658 7.14968 25.3851 7.36896 25.6575 7.36896H27.0031C27.0031 7.66798 27.0031 7.95704 27.0031 8.25938H25.6575C25.3851 8.25938 25.1658 8.47866 25.1658 8.75111V9.8442C25.1658 10.1166 25.3851 10.3359 25.6575 10.3359H27.2789C27.4018 10.7346 27.5048 11.14 27.6609 11.522C28.4816 13.5022 29.8571 14.911 31.927 15.5821C33.6381 16.137 35.3624 16.1204 37.0868 15.6452C37.5353 15.5223 37.9805 15.3628 38.4058 15.1668C38.8178 14.9774 38.9241 14.6585 38.7613 14.2631Z"], ["d", "M62.7613 14.2631C62.5819 13.8245 62.3992 13.386 62.1998 12.954C62.0237 12.5686 61.7978 12.4557 61.3759 12.552C60.8409 12.6749 60.316 12.8377 59.7811 12.9474C58.7478 13.1634 57.7112 13.1833 56.6912 12.861C55.412 12.459 54.7309 11.532 54.3123 10.3359H57.7809C58.0534 10.3359 58.2727 10.1166 58.2727 9.8442V8.75111C58.2727 8.47866 58.0534 8.25938 57.7809 8.25938H53.98C53.98 7.95371 53.9767 7.66134 53.98 7.36896H57.7809C58.0534 7.36896 58.2727 7.14968 58.2727 6.87723V5.78414C58.2727 5.5117 58.0534 5.29241 57.7809 5.29241H54.4585C54.4585 5.27912 54.4585 5.26583 54.4651 5.25919C54.8638 4.35215 55.4452 3.62453 56.3988 3.24577C57.5085 2.8072 58.6415 2.81717 59.7844 3.05307C60.326 3.16271 60.8576 3.32883 61.3991 3.45176C61.7945 3.54147 62.0237 3.42518 62.1932 3.05639C62.3892 2.63111 62.5686 2.19919 62.748 1.76395C62.9175 1.35528 62.8178 1.06623 62.4324 0.840299C62.3361 0.783817 62.2364 0.737303 62.1334 0.697433C60.532 0.072808 58.8807 -0.159765 57.1763 0.112678C55.9768 0.305381 54.8572 0.717368 53.8903 1.46825C52.671 2.41183 51.8802 3.65776 51.4217 5.12297L51.3652 5.29241H49.6575C49.3851 5.29241 49.1658 5.5117 49.1658 5.78414V6.87723C49.1658 7.14968 49.3851 7.36896 49.6575 7.36896H51.0031C51.0031 7.66798 51.0031 7.95704 51.0031 8.25938H49.6575C49.3851 8.25938 49.1658 8.47866 49.1658 8.75111V9.8442C49.1658 10.1166 49.3851 10.3359 49.6575 10.3359H51.2789C51.4018 10.7346 51.5048 11.14 51.6609 11.522C52.4816 13.5022 53.8571 14.911 55.927 15.5821C57.6381 16.137 59.3624 16.1204 61.0868 15.6452C61.5353 15.5223 61.9805 15.3628 62.4058 15.1668C62.8178 14.9774 62.9241 14.6585 62.7613 14.2631Z"], ["viewBox", "0 0 80 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M6.5 12.0623C4.50627 11.6792 3 9.9255 3 7.82C3 5.43415 4.93413 3.5 7.32 3.5C7.7033 3.5 8.0749 3.54991 8.4287 3.6436C9.2199 2.64246 10.4449 2 11.82 2C13.2352 2 14.4914 2.68049 15.2794 3.73211C15.7186 3.58166 16.1898 3.5 16.68 3.5C19.0659 3.5 21 5.43415 21 7.82C21 9.9255 19.4937 11.6792 17.5 12.0623V20C17.5 20.5523 17.0523 21 16.5 21H7.5C6.9477 21 6.5 20.5523 6.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M6.5 15.5H17.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M10 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M17.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M6.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["opacity", "0.4"], ["d", "M34.5 12.0623C32.5063 11.6792 31 9.9255 31 7.82C31 5.43415 32.9341 3.5 35.32 3.5C35.7033 3.5 36.0749 3.54991 36.4287 3.6436C37.2199 2.64246 38.4449 2 39.82 2C41.2352 2 42.4914 2.68049 43.2794 3.73211C43.7186 3.58166 44.1898 3.5 44.68 3.5C47.0659 3.5 49 5.43415 49 7.82C49 9.9255 47.4937 11.6792 45.5 12.0623V20C45.5 20.5523 45.0523 21 44.5 21H35.5C34.9477 21 34.5 20.5523 34.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M34.5 15.5H45.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M38 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M45.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M34.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 12.0623C60.5063 11.6792 59 9.9255 59 7.82C59 5.43415 60.9341 3.5 63.32 3.5C63.7033 3.5 64.0749 3.54991 64.4287 3.6436C65.2199 2.64246 66.4449 2 67.82 2C69.2352 2 70.4914 2.68049 71.2794 3.73211C71.7186 3.58166 72.1898 3.5 72.68 3.5C75.0659 3.5 77 5.43415 77 7.82C77 9.9255 75.4937 11.6792 73.5 12.0623V20C73.5 20.5523 73.0523 21 72.5 21H63.5C62.9477 21 62.5 20.5523 62.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 15.5H73.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M66 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M73.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["viewBox", "0 0 12 20", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M4.33333 3.6C4.33333 4.48366 3.58714 5.2 2.66667 5.2C1.74619 5.2 1 4.48366 1 3.6C1 2.71634 1.74619 2 2.66667 2C3.58714 2 4.33333 2.71634 4.33333 3.6Z"], ["d", "M4.33333 10C4.33333 10.8837 3.58714 11.6 2.66667 11.6C1.74619 11.6 1 10.8837 1 10C1 9.11634 1.74619 8.4 2.66667 8.4C3.58714 8.4 4.33333 9.11634 4.33333 10Z"], ["d", "M4.33333 16.4C4.33333 17.2837 3.58714 18 2.66667 18C1.74619 18 1 17.2837 1 16.4C1 15.5163 1.74619 14.8 2.66667 14.8C3.58714 14.8 4.33333 15.5163 4.33333 16.4Z"], ["d", "M11 3.6C11 4.48366 10.2538 5.2 9.33333 5.2C8.41286 5.2 7.66667 4.48366 7.66667 3.6C7.66667 2.71634 8.41286 2 9.33333 2C10.2538 2 11 2.71634 11 3.6Z"], ["d", "M11 10C11 10.8837 10.2538 11.6 9.33333 11.6C8.41286 11.6 7.66667 10.8837 7.66667 10C7.66667 9.11634 8.41286 8.4 9.33333 8.4C10.2538 8.4 11 9.11634 11 10Z"], ["d", "M11 16.4C11 17.2837 10.2538 18 9.33333 18C8.41286 18 7.66667 17.2837 7.66667 16.4C7.66667 15.5163 8.41286 14.8 9.33333 14.8C10.2538 14.8 11 15.5163 11 16.4Z"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 24 24"], ["d", "M0 0h24v24H0V0z", "fill", "none"], ["d", "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"], ["viewBox", "0 0 16 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-arrow-down"], ["fill-rule", "evenodd", "d", "M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 16 16"], ["d", "M12.5 13c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5.672-1.5 1.5-1.5zm-9 0c.828 0 1.5.672 1.5 1.5S4.328 16 3.5 16 2 15.328 2 14.5 2.672 13 3.5 13zM3 0l.591 2H15c.623 0 1.095.564.984 1.177C15.27 7.14 14.526 9 13 9H4.42c-.377.391-.67.729-.876 1H13c.552 0 1 .448 1 1s-.448 1-1 1H3c-1.28 0-2.11-.83-1.699-2.066.218-.654.813-1.44 1.807-2.454L1.433 2H0V0h3zm10.786 4H4.182l.887 3h7.737c.09-.124.2-.333.315-.621.224-.56.447-1.355.665-2.379z"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/People_grey06.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_danger.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_grey05.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_greyText.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_greyTextDark.svg", 1, "icon-container__icon", 3, "ngStyle"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M12.8889 4.88889C12.8889 4.39797 12.4909 4 12 4C11.5091 4 11.1111 4.39797 11.1111 4.88889V11.1111H4.88889C4.39797 11.1111 4 11.5091 4 12C4 12.4909 4.39797 12.8889 4.88889 12.8889H11.1111V19.1111C11.1111 19.602 11.5091 20 12 20C12.4909 20 12.8889 19.602 12.8889 19.1111V12.8889H19.1111C19.602 12.8889 20 12.4909 20 12C20 11.5091 19.602 11.1111 19.1111 11.1111H12.8889V4.88889Z"], ["d", "M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"], ["d", "M0 0h24v24H0z", "fill", "none"], ["d", "M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z"], ["d", "M4.41768 3.64119C4.18693 3.41025 3.81256 3.41025 3.58181 3.64119C2.72506 4.49794 2.30397 5.69144 2.42634 6.91587C2.45687 7.22091 2.71384 7.44828 3.01393 7.44828C3.03365 7.44828 3.05353 7.44728 3.07325 7.44531C3.39818 7.41281 3.63522 7.12294 3.60272 6.79822C3.51562 5.92806 3.81278 5.08197 4.41768 4.47703C4.64862 4.24631 4.64862 3.87191 4.41768 3.64119Z"], ["d", "M6.75863 0C3.03191 0 0 3.03191 0 6.75863C0 10.4853 3.03191 13.5173 6.75863 13.5173C10.4853 13.5173 13.5173 10.4853 13.5173 6.75863C13.5173 3.03191 10.4853 0 6.75863 0ZM6.75863 12.335C3.68375 12.335 1.18228 9.8335 1.18228 6.75863C1.18228 3.68375 3.68375 1.18228 6.75863 1.18228C9.83331 1.18228 12.335 3.68375 12.335 6.75863C12.335 9.8335 9.8335 12.335 6.75863 12.335Z"], ["d", "M15.8268 14.9909L11.5312 10.6954C11.3002 10.4644 10.9262 10.4644 10.6953 10.6954C10.4644 10.9261 10.4644 11.3005 10.6953 11.5312L14.9909 15.8268C15.1064 15.9423 15.2575 16 15.4088 16C15.5602 16 15.7113 15.9423 15.8268 15.8268C16.0577 15.5961 16.0577 15.2217 15.8268 14.9909Z"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/RecipeBook.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Meal.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Meal_grey06.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/HorizontalDots.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NoRecipeFound.svg", 1, "icon-container__icon", 3, "ngStyle"], ["d", "M15.0661 1.80645H13.0835C12.9121 0.772355 12.0038 -0.0160968 10.9185 0.000258065C9.73275 0.0180968 8.79029 1.00616 8.79029 2.19203V10.2383C8.79029 10.3707 8.73991 10.4986 8.64797 10.5939C8.06733 11.1957 7.74639 11.9984 7.75836 12.8526C7.78297 14.6074 9.24191 16.0241 10.9967 15.9997C13.7939 15.9608 15.1739 12.5853 13.2567 10.5954C13.1643 10.4995 13.1129 10.3715 13.1129 10.2383V9.29032H13.7758C14.0538 9.29032 14.2929 9.07658 14.3058 8.7989C14.3196 8.50248 14.0836 8.25806 13.7903 8.25806H13.1129V6.06452H14.421C14.699 6.06452 14.9381 5.85077 14.951 5.5731C14.9648 5.27668 14.7288 5.03226 14.4355 5.03226H13.1129V2.83871H15.0806C15.374 2.83871 15.61 2.59429 15.5962 2.29787C15.5832 2.02019 15.3441 1.80645 15.0661 1.80645ZM10.8655 13.997C9.78113 13.9205 9.35033 12.5256 10.2305 11.856C10.3592 11.758 10.4355 11.6063 10.4355 11.4445V5.27255C10.4355 4.99455 10.6492 4.75542 10.9269 4.74252C11.2233 4.72871 11.4677 4.96474 11.4677 5.25806V11.438C11.4677 11.6001 11.5402 11.7558 11.6695 11.8536C12.6164 12.569 12.0469 14.0803 10.8655 13.997ZM1.82255 2.83871C1.03991 2.83871 0.403198 2.202 0.403198 1.41935C0.403198 0.63671 1.03991 0 1.82255 0C2.6052 0 3.24191 0.63671 3.24191 1.41935C3.24191 2.202 2.6052 2.83871 1.82255 2.83871ZM1.82255 1.03226C1.6091 1.03226 1.43546 1.2059 1.43546 1.41935C1.43546 1.63281 1.6091 1.80645 1.82255 1.80645C2.036 1.80645 2.20965 1.63281 2.20965 1.41935C2.20965 1.2059 2.036 1.03226 1.82255 1.03226ZM5.41933 7.16129C4.20091 7.16129 3.20965 6.17003 3.20965 4.95161V3.43548C3.20965 2.21706 4.20088 1.22581 5.41933 1.22581C6.08117 1.22581 6.70255 1.51881 7.12423 2.02971C7.30568 2.24955 7.27455 2.57484 7.05471 2.75629C6.83491 2.93774 6.50959 2.90661 6.32813 2.68677C5.62807 1.83855 4.24191 2.33361 4.24191 3.43548V4.95161C4.24191 6.05432 5.62884 6.54794 6.32813 5.70026C6.50959 5.48039 6.83488 5.44919 7.05471 5.63061C7.27459 5.81203 7.30578 6.13732 7.12436 6.35719C6.70278 6.86819 6.0813 7.16129 5.41933 7.16129Z"], ["width", "16", "height", "16", "fill", "none"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Empty.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Starter.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotStarter.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Dessert.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotDessert.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/MainDish.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotMainDish.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Edit.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/CirclePlus.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/CartPlus.svg", 1, "icon-container__icon", 3, "ngStyle"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_neutralBlack.svg", 1, "icon-container__icon", 3, "ngStyle"], ["viewBox", "0 0 18 18", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M16.244 6.79981L9.35632 2.34044C9.26608 2.28143 9.1606 2.25 9.05278 2.25C8.94496 2.25 8.83948 2.28143 8.74924 2.34044L6.14856 4.03425V3.22482C6.14856 3.07574 6.08934 2.93276 5.98393 2.82735C5.87851 2.72193 5.73554 2.66271 5.58646 2.66271H3.33803C3.18956 2.66465 3.04771 2.7245 2.94271 2.82949C2.83771 2.93449 2.77787 3.07634 2.77593 3.22482V6.22272L1.76414 6.90474C1.66004 6.96876 1.58001 7.06536 1.53646 7.17954C1.49292 7.29373 1.48831 7.4191 1.52334 7.53617C1.55838 7.65324 1.6311 7.75547 1.73021 7.82696C1.82932 7.89845 1.94927 7.93521 2.07142 7.93152C2.18072 7.93429 2.28815 7.90285 2.37871 7.84158L2.78342 7.57927V15.5537C2.78536 15.7022 2.84521 15.844 2.95021 15.949C3.0552 16.054 3.19705 16.1138 3.34553 16.1158H14.6626C14.8111 16.1138 14.9529 16.054 15.0579 15.949C15.1629 15.844 15.2228 15.7022 15.2247 15.5537V7.49682L15.6294 7.75914C15.6914 7.79949 15.7608 7.82724 15.8335 7.84079C15.9062 7.85434 15.9809 7.85344 16.0533 7.83813C16.1257 7.82282 16.1943 7.7934 16.2553 7.75155C16.3164 7.70971 16.3685 7.65626 16.4089 7.59425C16.4492 7.53225 16.477 7.4629 16.4905 7.39017C16.5041 7.31744 16.5032 7.24276 16.4879 7.17038C16.4726 7.098 16.4431 7.02935 16.4013 6.96834C16.3594 6.90732 16.306 6.85515 16.244 6.8148V6.79981ZM3.90763 3.78692H5.02435V4.76873L3.90763 5.51821V3.78692ZM10.0683 15.029H7.93981V12.4134H10.0683V15.029ZM14.1005 6.86726V14.9916H11.1925V11.8513C11.1925 11.7022 11.1333 11.5592 11.0279 11.4538C10.9225 11.3484 10.7795 11.2892 10.6304 11.2892H7.3777C7.22862 11.2892 7.08565 11.3484 6.98023 11.4538C6.87482 11.5592 6.8156 11.7022 6.8156 11.8513V14.9916H3.90763V6.84478L5.79631 5.61564C5.87449 5.5885 5.94602 5.54508 6.00616 5.48823L9.07152 3.47964L14.123 6.74735C14.1108 6.78631 14.1033 6.82655 14.1005 6.86726Z"], ["viewBox", "0 0 18 19", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M5.52217 3.5C4.46029 3.5 3.56734 4.28583 3.29895 5.33963H2.10141C1.94183 5.33891 1.78853 5.40683 1.6756 5.52804C1.56279 5.64939 1.49971 5.81396 1.50024 5.98542C1.50091 6.15617 1.56453 6.31945 1.67734 6.43964C1.79001 6.55984 1.94264 6.62705 2.10144 6.62633H3.29672C3.56323 7.68299 4.4583 8.47228 5.5222 8.47228C6.57538 8.47228 7.463 7.69836 7.73953 6.6578L15.9024 6.62635C16.0614 6.62606 16.2133 6.55785 16.3254 6.43707C16.4374 6.31615 16.5003 6.1523 16.5 5.98168C16.4996 5.8115 16.4366 5.64836 16.3246 5.52801C16.2125 5.40767 16.0608 5.33988 15.9023 5.3396L7.75581 5.37105C7.49785 4.30104 6.59486 3.5 5.52217 3.5ZM5.52217 4.78673C6.14605 4.78673 6.639 5.31521 6.639 5.98542C6.639 6.65577 6.14609 7.18543 5.52217 7.18543C4.89825 7.18543 4.40657 6.65581 4.40657 5.98542C4.40657 5.31503 4.89828 4.78673 5.52217 4.78673ZM10.1544 10.4675C9.07485 10.4675 8.1664 11.2673 7.89842 12.3397H2.10117C1.94212 12.3392 1.78935 12.4065 1.67669 12.5269C1.56389 12.6473 1.5004 12.8111 1.5 12.982C1.49973 13.1531 1.56295 13.3176 1.67589 13.4385C1.78869 13.5596 1.94173 13.6272 2.10119 13.6265H7.89947C8.16824 14.6987 9.07562 15.5 10.1542 15.5C11.2328 15.5 12.1402 14.6987 12.4089 13.6265H15.902C16.0609 13.6262 16.213 13.5581 16.3251 13.4372C16.4371 13.3163 16.4999 13.1526 16.4997 12.982C16.4993 12.8118 16.4363 12.6486 16.3243 12.5283C16.2122 12.4079 16.0605 12.3402 15.902 12.3397H12.4099C12.142 11.2673 11.2339 10.4675 10.1544 10.4675ZM10.1544 11.7542C10.7943 11.7542 11.3005 12.2943 11.3005 12.982C11.3005 13.6696 10.7943 14.2134 10.1544 14.2134C9.51445 14.2134 9.0083 13.6696 9.0083 12.982C9.0083 12.2944 9.51445 11.7542 10.1544 11.7542Z"]], template: function IconComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7677
|
+
IconComponent.ɵcmp = i0.ɵɵdefineComponent({ type: IconComponent, selectors: [["ng-miam-icon"]], inputs: { primaryColor: "primaryColor", secondaryColor: "secondaryColor", width: "width", height: "height", iconName: "iconName" }, features: [i0.ɵɵNgOnChangesFeature], decls: 3, vars: 2, consts: [["class", "icon-container", 3, "ngStyle", 4, "ngIf", "ngIfElse"], ["switchIcon", ""], [1, "icon-container", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", 1, "icon-container__icon", 3, "src", "ngStyle"], [3, "ngSwitch"], [4, "ngSwitchCase"], [4, "ngSwitchDefault"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Checkmark.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Alert_danger.svg", 1, "icon-container__icon", 3, "ngStyle"], ["viewBox", "0 0 16 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M12.5018 13.821H9.91582H9.21945H9.06906V10.3523H10.2035C10.4912 10.3523 10.6612 10.0253 10.4912 9.78995L8.28443 6.73642C8.14385 6.54026 7.85288 6.54026 7.7123 6.73642L5.50552 9.78995C5.33551 10.0253 5.50225 10.3523 5.79322 10.3523H6.92767V13.821H6.77728H6.08092H3.08296C1.36657 13.7262 0 12.121 0 10.3817C0 9.18186 0.650593 8.13568 1.61504 7.57009C1.52677 7.33143 1.481 7.07643 1.481 6.80834C1.481 5.58235 2.4716 4.59175 3.69759 4.59175C3.9624 4.59175 4.21741 4.63752 4.45607 4.72579C5.16551 3.22191 6.69555 2.179 8.47405 2.179C10.7756 2.18227 12.6718 3.94443 12.8876 6.19044C14.6563 6.49449 16 8.13241 16 9.98611C16 11.9673 14.4569 13.6837 12.5018 13.821Z"], ["viewBox", "0 0 24 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M12.5 22C16.9183 22 20.5 18.4183 20.5 14C20.5 9.58172 16.9183 6 12.5 6C8.08172 6 4.5 9.58172 4.5 14C4.5 18.4183 8.08172 22 12.5 22Z", "stroke-width", "2"], ["d", "M14.5 2H10.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 2V6", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M18 8L19.5 6.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 14V11", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M12.5 14H9.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["viewBox", "0 0 16 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-x"], ["fill-rule", "evenodd", "d", "M11.854 4.146a.5.5 0 0 1 0 .708l-7 7a.5.5 0 0 1-.708-.708l7-7a.5.5 0 0 1 .708 0z"], ["fill-rule", "evenodd", "d", "M4.146 4.146a.5.5 0 0 0 0 .708l7 7a.5.5 0 0 0 .708-.708l-7-7a.5.5 0 0 0-.708 0z"], ["viewBox", "0 0 17 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-image"], ["fill-rule", "evenodd", "d", "M14.002 2h-12a1 1 0 0 0-1 1v9l2.646-2.354a.5.5 0 0 1 .63-.062l2.66 1.773 3.71-3.71a.5.5 0 0 1 .577-.094L15.002 9.5V3a1 1 0 0 0-1-1zm-12-1a2 2 0 0 0-2 2v10a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V3a2 2 0 0 0-2-2h-12zm4 4.5a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0z"], ["viewBox", "0 0 64 16", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["clip-path", "url(#clip0)"], ["d", "M14.7613 14.2631C14.5819 13.8245 14.3992 13.386 14.1998 12.954C14.0237 12.5686 13.7978 12.4557 13.3759 12.552C12.8409 12.6749 12.316 12.8377 11.7811 12.9474C10.7478 13.1634 9.71117 13.1833 8.69117 12.861C7.41202 12.459 6.73091 11.532 6.31228 10.3359H9.78094C10.0534 10.3359 10.2727 10.1166 10.2727 9.8442V8.75111C10.2727 8.47866 10.0534 8.25938 9.78094 8.25938H5.98003C5.98003 7.95371 5.97671 7.66134 5.98003 7.36896H9.78094C10.0534 7.36896 10.2727 7.14968 10.2727 6.87723V5.78414C10.2727 5.5117 10.0534 5.29241 9.78094 5.29241H6.45847C6.45847 5.27912 6.45847 5.26583 6.46512 5.25919C6.86381 4.35215 7.44524 3.62453 8.39879 3.24577C9.5085 2.8072 10.6415 2.81717 11.7844 3.05307C12.326 3.16271 12.8576 3.32883 13.3991 3.45176C13.7945 3.54147 14.0237 3.42518 14.1932 3.05639C14.3892 2.63111 14.5686 2.19919 14.748 1.76395C14.9175 1.35528 14.8178 1.06623 14.4324 0.840299C14.3361 0.783817 14.2364 0.737303 14.1334 0.697433C12.532 0.072808 10.8807 -0.159765 9.17625 0.112678C7.97684 0.305381 6.85717 0.717368 5.89033 1.46825C4.67098 2.41183 3.88023 3.65776 3.42173 5.12297L3.36525 5.29241H1.6575C1.38505 5.29241 1.16577 5.5117 1.16577 5.78414V6.87723C1.16577 7.14968 1.38505 7.36896 1.6575 7.36896H3.0031C3.0031 7.66798 3.0031 7.95704 3.0031 8.25938H1.6575C1.38505 8.25938 1.16577 8.47866 1.16577 8.75111V9.8442C1.16577 10.1166 1.38505 10.3359 1.6575 10.3359H3.27886C3.4018 10.7346 3.50479 11.14 3.66095 11.522C4.4816 13.5022 5.8571 14.911 7.927 15.5821C9.63808 16.137 11.3624 16.1204 13.0868 15.6452C13.5353 15.5223 13.9805 15.3628 14.4058 15.1668C14.8178 14.9774 14.9241 14.6585 14.7613 14.2631Z"], ["clip-path", "url(#clip1)"], ["d", "M38.7613 14.2631C38.5819 13.8245 38.3992 13.386 38.1998 12.954C38.0237 12.5686 37.7978 12.4557 37.3759 12.552C36.8409 12.6749 36.316 12.8377 35.7811 12.9474C34.7478 13.1634 33.7112 13.1833 32.6912 12.861C31.412 12.459 30.7309 11.532 30.3123 10.3359H33.7809C34.0534 10.3359 34.2727 10.1166 34.2727 9.8442V8.75111C34.2727 8.47866 34.0534 8.25938 33.7809 8.25938H29.98C29.98 7.95371 29.9767 7.66134 29.98 7.36896H33.7809C34.0534 7.36896 34.2727 7.14968 34.2727 6.87723V5.78414C34.2727 5.5117 34.0534 5.29241 33.7809 5.29241H30.4585C30.4585 5.27912 30.4585 5.26583 30.4651 5.25919C30.8638 4.35215 31.4452 3.62453 32.3988 3.24577C33.5085 2.8072 34.6415 2.81717 35.7844 3.05307C36.326 3.16271 36.8576 3.32883 37.3991 3.45176C37.7945 3.54147 38.0237 3.42518 38.1932 3.05639C38.3892 2.63111 38.5686 2.19919 38.748 1.76395C38.9175 1.35528 38.8178 1.06623 38.4324 0.840299C38.3361 0.783817 38.2364 0.737303 38.1334 0.697433C36.532 0.072808 34.8807 -0.159765 33.1763 0.112678C31.9768 0.305381 30.8572 0.717368 29.8903 1.46825C28.671 2.41183 27.8802 3.65776 27.4217 5.12297L27.3652 5.29241H25.6575C25.3851 5.29241 25.1658 5.5117 25.1658 5.78414V6.87723C25.1658 7.14968 25.3851 7.36896 25.6575 7.36896H27.0031C27.0031 7.66798 27.0031 7.95704 27.0031 8.25938H25.6575C25.3851 8.25938 25.1658 8.47866 25.1658 8.75111V9.8442C25.1658 10.1166 25.3851 10.3359 25.6575 10.3359H27.2789C27.4018 10.7346 27.5048 11.14 27.6609 11.522C28.4816 13.5022 29.8571 14.911 31.927 15.5821C33.6381 16.137 35.3624 16.1204 37.0868 15.6452C37.5353 15.5223 37.9805 15.3628 38.4058 15.1668C38.8178 14.9774 38.9241 14.6585 38.7613 14.2631Z", "fill", "#8C8CA1"], ["clip-path", "url(#clip2)"], ["d", "M62.7613 14.2631C62.5819 13.8245 62.3992 13.386 62.1998 12.954C62.0237 12.5686 61.7978 12.4557 61.3759 12.552C60.8409 12.6749 60.316 12.8377 59.7811 12.9474C58.7478 13.1634 57.7112 13.1833 56.6912 12.861C55.412 12.459 54.7309 11.532 54.3123 10.3359H57.7809C58.0534 10.3359 58.2727 10.1166 58.2727 9.8442V8.75111C58.2727 8.47866 58.0534 8.25938 57.7809 8.25938H53.98C53.98 7.95371 53.9767 7.66134 53.98 7.36896H57.7809C58.0534 7.36896 58.2727 7.14968 58.2727 6.87723V5.78414C58.2727 5.5117 58.0534 5.29241 57.7809 5.29241H54.4585C54.4585 5.27912 54.4585 5.26583 54.4651 5.25919C54.8638 4.35215 55.4452 3.62453 56.3988 3.24577C57.5085 2.8072 58.6415 2.81717 59.7844 3.05307C60.326 3.16271 60.8576 3.32883 61.3991 3.45176C61.7945 3.54147 62.0237 3.42518 62.1932 3.05639C62.3892 2.63111 62.5686 2.19919 62.748 1.76395C62.9175 1.35528 62.8178 1.06623 62.4324 0.840299C62.3361 0.783817 62.2364 0.737303 62.1334 0.697433C60.532 0.072808 58.8807 -0.159765 57.1763 0.112678C55.9768 0.305381 54.8572 0.717368 53.8903 1.46825C52.671 2.41183 51.8802 3.65776 51.4217 5.12297L51.3652 5.29241H49.6575C49.3851 5.29241 49.1658 5.5117 49.1658 5.78414V6.87723C49.1658 7.14968 49.3851 7.36896 49.6575 7.36896H51.0031C51.0031 7.66798 51.0031 7.95704 51.0031 8.25938H49.6575C49.3851 8.25938 49.1658 8.47866 49.1658 8.75111V9.8442C49.1658 10.1166 49.3851 10.3359 49.6575 10.3359H51.2789C51.4018 10.7346 51.5048 11.14 51.6609 11.522C52.4816 13.5022 53.8571 14.911 55.927 15.5821C57.6381 16.137 59.3624 16.1204 61.0868 15.6452C61.5353 15.5223 61.9805 15.3628 62.4058 15.1668C62.8178 14.9774 62.9241 14.6585 62.7613 14.2631Z", "fill", "#8C8CA1"], ["id", "clip0"], ["width", "16", "height", "16", "fill", "white"], ["id", "clip1"], ["width", "16", "height", "16", "fill", "white", "transform", "translate(24)"], ["id", "clip2"], ["width", "16", "height", "16", "fill", "white", "transform", "translate(48)"], ["d", "M38.7613 14.2631C38.5819 13.8245 38.3992 13.386 38.1998 12.954C38.0237 12.5686 37.7978 12.4557 37.3759 12.552C36.8409 12.6749 36.316 12.8377 35.7811 12.9474C34.7478 13.1634 33.7112 13.1833 32.6912 12.861C31.412 12.459 30.7309 11.532 30.3123 10.3359H33.7809C34.0534 10.3359 34.2727 10.1166 34.2727 9.8442V8.75111C34.2727 8.47866 34.0534 8.25938 33.7809 8.25938H29.98C29.98 7.95371 29.9767 7.66134 29.98 7.36896H33.7809C34.0534 7.36896 34.2727 7.14968 34.2727 6.87723V5.78414C34.2727 5.5117 34.0534 5.29241 33.7809 5.29241H30.4585C30.4585 5.27912 30.4585 5.26583 30.4651 5.25919C30.8638 4.35215 31.4452 3.62453 32.3988 3.24577C33.5085 2.8072 34.6415 2.81717 35.7844 3.05307C36.326 3.16271 36.8576 3.32883 37.3991 3.45176C37.7945 3.54147 38.0237 3.42518 38.1932 3.05639C38.3892 2.63111 38.5686 2.19919 38.748 1.76395C38.9175 1.35528 38.8178 1.06623 38.4324 0.840299C38.3361 0.783817 38.2364 0.737303 38.1334 0.697433C36.532 0.072808 34.8807 -0.159765 33.1763 0.112678C31.9768 0.305381 30.8572 0.717368 29.8903 1.46825C28.671 2.41183 27.8802 3.65776 27.4217 5.12297L27.3652 5.29241H25.6575C25.3851 5.29241 25.1658 5.5117 25.1658 5.78414V6.87723C25.1658 7.14968 25.3851 7.36896 25.6575 7.36896H27.0031C27.0031 7.66798 27.0031 7.95704 27.0031 8.25938H25.6575C25.3851 8.25938 25.1658 8.47866 25.1658 8.75111V9.8442C25.1658 10.1166 25.3851 10.3359 25.6575 10.3359H27.2789C27.4018 10.7346 27.5048 11.14 27.6609 11.522C28.4816 13.5022 29.8571 14.911 31.927 15.5821C33.6381 16.137 35.3624 16.1204 37.0868 15.6452C37.5353 15.5223 37.9805 15.3628 38.4058 15.1668C38.8178 14.9774 38.9241 14.6585 38.7613 14.2631Z"], ["d", "M62.7613 14.2631C62.5819 13.8245 62.3992 13.386 62.1998 12.954C62.0237 12.5686 61.7978 12.4557 61.3759 12.552C60.8409 12.6749 60.316 12.8377 59.7811 12.9474C58.7478 13.1634 57.7112 13.1833 56.6912 12.861C55.412 12.459 54.7309 11.532 54.3123 10.3359H57.7809C58.0534 10.3359 58.2727 10.1166 58.2727 9.8442V8.75111C58.2727 8.47866 58.0534 8.25938 57.7809 8.25938H53.98C53.98 7.95371 53.9767 7.66134 53.98 7.36896H57.7809C58.0534 7.36896 58.2727 7.14968 58.2727 6.87723V5.78414C58.2727 5.5117 58.0534 5.29241 57.7809 5.29241H54.4585C54.4585 5.27912 54.4585 5.26583 54.4651 5.25919C54.8638 4.35215 55.4452 3.62453 56.3988 3.24577C57.5085 2.8072 58.6415 2.81717 59.7844 3.05307C60.326 3.16271 60.8576 3.32883 61.3991 3.45176C61.7945 3.54147 62.0237 3.42518 62.1932 3.05639C62.3892 2.63111 62.5686 2.19919 62.748 1.76395C62.9175 1.35528 62.8178 1.06623 62.4324 0.840299C62.3361 0.783817 62.2364 0.737303 62.1334 0.697433C60.532 0.072808 58.8807 -0.159765 57.1763 0.112678C55.9768 0.305381 54.8572 0.717368 53.8903 1.46825C52.671 2.41183 51.8802 3.65776 51.4217 5.12297L51.3652 5.29241H49.6575C49.3851 5.29241 49.1658 5.5117 49.1658 5.78414V6.87723C49.1658 7.14968 49.3851 7.36896 49.6575 7.36896H51.0031C51.0031 7.66798 51.0031 7.95704 51.0031 8.25938H49.6575C49.3851 8.25938 49.1658 8.47866 49.1658 8.75111V9.8442C49.1658 10.1166 49.3851 10.3359 49.6575 10.3359H51.2789C51.4018 10.7346 51.5048 11.14 51.6609 11.522C52.4816 13.5022 53.8571 14.911 55.927 15.5821C57.6381 16.137 59.3624 16.1204 61.0868 15.6452C61.5353 15.5223 61.9805 15.3628 62.4058 15.1668C62.8178 14.9774 62.9241 14.6585 62.7613 14.2631Z"], ["viewBox", "0 0 80 24", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M6.5 12.0623C4.50627 11.6792 3 9.9255 3 7.82C3 5.43415 4.93413 3.5 7.32 3.5C7.7033 3.5 8.0749 3.54991 8.4287 3.6436C9.2199 2.64246 10.4449 2 11.82 2C13.2352 2 14.4914 2.68049 15.2794 3.73211C15.7186 3.58166 16.1898 3.5 16.68 3.5C19.0659 3.5 21 5.43415 21 7.82C21 9.9255 19.4937 11.6792 17.5 12.0623V20C17.5 20.5523 17.0523 21 16.5 21H7.5C6.9477 21 6.5 20.5523 6.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M6.5 15.5H17.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M10 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M17.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M6.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["opacity", "0.4"], ["d", "M34.5 12.0623C32.5063 11.6792 31 9.9255 31 7.82C31 5.43415 32.9341 3.5 35.32 3.5C35.7033 3.5 36.0749 3.54991 36.4287 3.6436C37.2199 2.64246 38.4449 2 39.82 2C41.2352 2 42.4914 2.68049 43.2794 3.73211C43.7186 3.58166 44.1898 3.5 44.68 3.5C47.0659 3.5 49 5.43415 49 7.82C49 9.9255 47.4937 11.6792 45.5 12.0623V20C45.5 20.5523 45.0523 21 44.5 21H35.5C34.9477 21 34.5 20.5523 34.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M34.5 15.5H45.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M38 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M45.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M34.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 12.0623C60.5063 11.6792 59 9.9255 59 7.82C59 5.43415 60.9341 3.5 63.32 3.5C63.7033 3.5 64.0749 3.54991 64.4287 3.6436C65.2199 2.64246 66.4449 2 67.82 2C69.2352 2 70.4914 2.68049 71.2794 3.73211C71.7186 3.58166 72.1898 3.5 72.68 3.5C75.0659 3.5 77 5.43415 77 7.82C77 9.9255 75.4937 11.6792 73.5 12.0623V20C73.5 20.5523 73.0523 21 72.5 21H63.5C62.9477 21 62.5 20.5523 62.5 20V12.0623Z", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 15.5H73.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M66 12.5V15.5", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M73.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["d", "M62.5 14V17", "stroke-width", "2", "stroke-linecap", "round", "stroke-linejoin", "round"], ["viewBox", "0 0 12 20", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M4.33333 3.6C4.33333 4.48366 3.58714 5.2 2.66667 5.2C1.74619 5.2 1 4.48366 1 3.6C1 2.71634 1.74619 2 2.66667 2C3.58714 2 4.33333 2.71634 4.33333 3.6Z"], ["d", "M4.33333 10C4.33333 10.8837 3.58714 11.6 2.66667 11.6C1.74619 11.6 1 10.8837 1 10C1 9.11634 1.74619 8.4 2.66667 8.4C3.58714 8.4 4.33333 9.11634 4.33333 10Z"], ["d", "M4.33333 16.4C4.33333 17.2837 3.58714 18 2.66667 18C1.74619 18 1 17.2837 1 16.4C1 15.5163 1.74619 14.8 2.66667 14.8C3.58714 14.8 4.33333 15.5163 4.33333 16.4Z"], ["d", "M11 3.6C11 4.48366 10.2538 5.2 9.33333 5.2C8.41286 5.2 7.66667 4.48366 7.66667 3.6C7.66667 2.71634 8.41286 2 9.33333 2C10.2538 2 11 2.71634 11 3.6Z"], ["d", "M11 10C11 10.8837 10.2538 11.6 9.33333 11.6C8.41286 11.6 7.66667 10.8837 7.66667 10C7.66667 9.11634 8.41286 8.4 9.33333 8.4C10.2538 8.4 11 9.11634 11 10Z"], ["d", "M11 16.4C11 17.2837 10.2538 18 9.33333 18C8.41286 18 7.66667 17.2837 7.66667 16.4C7.66667 15.5163 8.41286 14.8 9.33333 14.8C10.2538 14.8 11 15.5163 11 16.4Z"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 24 24"], ["d", "M0 0h24v24H0V0z", "fill", "none"], ["d", "M7.41 8.59L12 13.17l4.59-4.58L18 10l-6 6-6-6 1.41-1.41z"], ["viewBox", "0 0 16 16", "xmlns", "http://www.w3.org/2000/svg", 1, "bi", "bi-arrow-down"], ["fill-rule", "evenodd", "d", "M8 1a.5.5 0 0 1 .5.5v11.793l3.146-3.147a.5.5 0 0 1 .708.708l-4 4a.5.5 0 0 1-.708 0l-4-4a.5.5 0 0 1 .708-.708L7.5 13.293V1.5A.5.5 0 0 1 8 1z"], ["xmlns", "http://www.w3.org/2000/svg", "viewBox", "0 0 16 16"], ["d", "M12.5 13c.828 0 1.5.672 1.5 1.5s-.672 1.5-1.5 1.5-1.5-.672-1.5-1.5.672-1.5 1.5-1.5zm-9 0c.828 0 1.5.672 1.5 1.5S4.328 16 3.5 16 2 15.328 2 14.5 2.672 13 3.5 13zM3 0l.591 2H15c.623 0 1.095.564.984 1.177C15.27 7.14 14.526 9 13 9H4.42c-.377.391-.67.729-.876 1H13c.552 0 1 .448 1 1s-.448 1-1 1H3c-1.28 0-2.11-.83-1.699-2.066.218-.654.813-1.44 1.807-2.454L1.433 2H0V0h3zm10.786 4H4.182l.887 3h7.737c.09-.124.2-.333.315-.621.224-.56.447-1.355.665-2.379z"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/People_grey06.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_danger.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_grey05.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_greyText.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Trash_greyTextDark.svg", 1, "icon-container__icon", 3, "ngStyle"], ["fill-rule", "evenodd", "clip-rule", "evenodd", "d", "M12.8889 4.88889C12.8889 4.39797 12.4909 4 12 4C11.5091 4 11.1111 4.39797 11.1111 4.88889V11.1111H4.88889C4.39797 11.1111 4 11.5091 4 12C4 12.4909 4.39797 12.8889 4.88889 12.8889H11.1111V19.1111C11.1111 19.602 11.5091 20 12 20C12.4909 20 12.8889 19.602 12.8889 19.1111V12.8889H19.1111C19.602 12.8889 20 12.4909 20 12C20 11.5091 19.602 11.1111 19.1111 11.1111H12.8889V4.88889Z"], ["d", "M6 2v6h.01L6 8.01 10 12l-4 4 .01.01H6V22h12v-5.99h-.01L18 16l-4-4 4-3.99-.01-.01H18V2H6zm10 14.5V20H8v-3.5l4-4 4 4zm-4-5l-4-4V4h8v3.5l-4 4z"], ["d", "M0 0h24v24H0z", "fill", "none"], ["d", "M13.5.67s.74 2.65.74 4.8c0 2.06-1.35 3.73-3.41 3.73-2.07 0-3.63-1.67-3.63-3.73l.03-.36C5.21 7.51 4 10.62 4 14c0 4.42 3.58 8 8 8s8-3.58 8-8C20 8.61 17.41 3.8 13.5.67zM11.71 19c-1.78 0-3.22-1.4-3.22-3.14 0-1.62 1.05-2.76 2.81-3.12 1.77-.36 3.6-1.21 4.62-2.58.39 1.29.59 2.65.59 4.04 0 2.65-2.15 4.8-4.8 4.8z"], ["d", "M4.41768 3.64119C4.18693 3.41025 3.81256 3.41025 3.58181 3.64119C2.72506 4.49794 2.30397 5.69144 2.42634 6.91587C2.45687 7.22091 2.71384 7.44828 3.01393 7.44828C3.03365 7.44828 3.05353 7.44728 3.07325 7.44531C3.39818 7.41281 3.63522 7.12294 3.60272 6.79822C3.51562 5.92806 3.81278 5.08197 4.41768 4.47703C4.64862 4.24631 4.64862 3.87191 4.41768 3.64119Z"], ["d", "M6.75863 0C3.03191 0 0 3.03191 0 6.75863C0 10.4853 3.03191 13.5173 6.75863 13.5173C10.4853 13.5173 13.5173 10.4853 13.5173 6.75863C13.5173 3.03191 10.4853 0 6.75863 0ZM6.75863 12.335C3.68375 12.335 1.18228 9.8335 1.18228 6.75863C1.18228 3.68375 3.68375 1.18228 6.75863 1.18228C9.83331 1.18228 12.335 3.68375 12.335 6.75863C12.335 9.8335 9.8335 12.335 6.75863 12.335Z"], ["d", "M15.8268 14.9909L11.5312 10.6954C11.3002 10.4644 10.9262 10.4644 10.6953 10.6954C10.4644 10.9261 10.4644 11.3005 10.6953 11.5312L14.9909 15.8268C15.1064 15.9423 15.2575 16 15.4088 16C15.5602 16 15.7113 15.9423 15.8268 15.8268C16.0577 15.5961 16.0577 15.2217 15.8268 14.9909Z"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/RecipeBook.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Meal.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Meal_grey06.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/HorizontalDots.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NoRecipeFound.svg", 1, "icon-container__icon", 3, "ngStyle"], ["d", "M15.0661 1.80645H13.0835C12.9121 0.772355 12.0038 -0.0160968 10.9185 0.000258065C9.73275 0.0180968 8.79029 1.00616 8.79029 2.19203V10.2383C8.79029 10.3707 8.73991 10.4986 8.64797 10.5939C8.06733 11.1957 7.74639 11.9984 7.75836 12.8526C7.78297 14.6074 9.24191 16.0241 10.9967 15.9997C13.7939 15.9608 15.1739 12.5853 13.2567 10.5954C13.1643 10.4995 13.1129 10.3715 13.1129 10.2383V9.29032H13.7758C14.0538 9.29032 14.2929 9.07658 14.3058 8.7989C14.3196 8.50248 14.0836 8.25806 13.7903 8.25806H13.1129V6.06452H14.421C14.699 6.06452 14.9381 5.85077 14.951 5.5731C14.9648 5.27668 14.7288 5.03226 14.4355 5.03226H13.1129V2.83871H15.0806C15.374 2.83871 15.61 2.59429 15.5962 2.29787C15.5832 2.02019 15.3441 1.80645 15.0661 1.80645ZM10.8655 13.997C9.78113 13.9205 9.35033 12.5256 10.2305 11.856C10.3592 11.758 10.4355 11.6063 10.4355 11.4445V5.27255C10.4355 4.99455 10.6492 4.75542 10.9269 4.74252C11.2233 4.72871 11.4677 4.96474 11.4677 5.25806V11.438C11.4677 11.6001 11.5402 11.7558 11.6695 11.8536C12.6164 12.569 12.0469 14.0803 10.8655 13.997ZM1.82255 2.83871C1.03991 2.83871 0.403198 2.202 0.403198 1.41935C0.403198 0.63671 1.03991 0 1.82255 0C2.6052 0 3.24191 0.63671 3.24191 1.41935C3.24191 2.202 2.6052 2.83871 1.82255 2.83871ZM1.82255 1.03226C1.6091 1.03226 1.43546 1.2059 1.43546 1.41935C1.43546 1.63281 1.6091 1.80645 1.82255 1.80645C2.036 1.80645 2.20965 1.63281 2.20965 1.41935C2.20965 1.2059 2.036 1.03226 1.82255 1.03226ZM5.41933 7.16129C4.20091 7.16129 3.20965 6.17003 3.20965 4.95161V3.43548C3.20965 2.21706 4.20088 1.22581 5.41933 1.22581C6.08117 1.22581 6.70255 1.51881 7.12423 2.02971C7.30568 2.24955 7.27455 2.57484 7.05471 2.75629C6.83491 2.93774 6.50959 2.90661 6.32813 2.68677C5.62807 1.83855 4.24191 2.33361 4.24191 3.43548V4.95161C4.24191 6.05432 5.62884 6.54794 6.32813 5.70026C6.50959 5.48039 6.83488 5.44919 7.05471 5.63061C7.27459 5.81203 7.30578 6.13732 7.12436 6.35719C6.70278 6.86819 6.0813 7.16129 5.41933 7.16129Z"], ["width", "16", "height", "16", "fill", "none"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Empty.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Starter.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotStarter.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Dessert.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotDessert.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/MainDish.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/NotMainDish.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Edit.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/CirclePlus.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/CartPlus.svg", 1, "icon-container__icon", 3, "ngStyle"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_neutralBlack.svg", 1, "icon-container__icon", 3, "ngStyle"], ["viewBox", "0 0 18 18", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M16.244 6.79981L9.35632 2.34044C9.26608 2.28143 9.1606 2.25 9.05278 2.25C8.94496 2.25 8.83948 2.28143 8.74924 2.34044L6.14856 4.03425V3.22482C6.14856 3.07574 6.08934 2.93276 5.98393 2.82735C5.87851 2.72193 5.73554 2.66271 5.58646 2.66271H3.33803C3.18956 2.66465 3.04771 2.7245 2.94271 2.82949C2.83771 2.93449 2.77787 3.07634 2.77593 3.22482V6.22272L1.76414 6.90474C1.66004 6.96876 1.58001 7.06536 1.53646 7.17954C1.49292 7.29373 1.48831 7.4191 1.52334 7.53617C1.55838 7.65324 1.6311 7.75547 1.73021 7.82696C1.82932 7.89845 1.94927 7.93521 2.07142 7.93152C2.18072 7.93429 2.28815 7.90285 2.37871 7.84158L2.78342 7.57927V15.5537C2.78536 15.7022 2.84521 15.844 2.95021 15.949C3.0552 16.054 3.19705 16.1138 3.34553 16.1158H14.6626C14.8111 16.1138 14.9529 16.054 15.0579 15.949C15.1629 15.844 15.2228 15.7022 15.2247 15.5537V7.49682L15.6294 7.75914C15.6914 7.79949 15.7608 7.82724 15.8335 7.84079C15.9062 7.85434 15.9809 7.85344 16.0533 7.83813C16.1257 7.82282 16.1943 7.7934 16.2553 7.75155C16.3164 7.70971 16.3685 7.65626 16.4089 7.59425C16.4492 7.53225 16.477 7.4629 16.4905 7.39017C16.5041 7.31744 16.5032 7.24276 16.4879 7.17038C16.4726 7.098 16.4431 7.02935 16.4013 6.96834C16.3594 6.90732 16.306 6.85515 16.244 6.8148V6.79981ZM3.90763 3.78692H5.02435V4.76873L3.90763 5.51821V3.78692ZM10.0683 15.029H7.93981V12.4134H10.0683V15.029ZM14.1005 6.86726V14.9916H11.1925V11.8513C11.1925 11.7022 11.1333 11.5592 11.0279 11.4538C10.9225 11.3484 10.7795 11.2892 10.6304 11.2892H7.3777C7.22862 11.2892 7.08565 11.3484 6.98023 11.4538C6.87482 11.5592 6.8156 11.7022 6.8156 11.8513V14.9916H3.90763V6.84478L5.79631 5.61564C5.87449 5.5885 5.94602 5.54508 6.00616 5.48823L9.07152 3.47964L14.123 6.74735C14.1108 6.78631 14.1033 6.82655 14.1005 6.86726Z"], ["viewBox", "0 0 18 19", "fill", "none", "xmlns", "http://www.w3.org/2000/svg"], ["d", "M5.52217 3.5C4.46029 3.5 3.56734 4.28583 3.29895 5.33963H2.10141C1.94183 5.33891 1.78853 5.40683 1.6756 5.52804C1.56279 5.64939 1.49971 5.81396 1.50024 5.98542C1.50091 6.15617 1.56453 6.31945 1.67734 6.43964C1.79001 6.55984 1.94264 6.62705 2.10144 6.62633H3.29672C3.56323 7.68299 4.4583 8.47228 5.5222 8.47228C6.57538 8.47228 7.463 7.69836 7.73953 6.6578L15.9024 6.62635C16.0614 6.62606 16.2133 6.55785 16.3254 6.43707C16.4374 6.31615 16.5003 6.1523 16.5 5.98168C16.4996 5.8115 16.4366 5.64836 16.3246 5.52801C16.2125 5.40767 16.0608 5.33988 15.9023 5.3396L7.75581 5.37105C7.49785 4.30104 6.59486 3.5 5.52217 3.5ZM5.52217 4.78673C6.14605 4.78673 6.639 5.31521 6.639 5.98542C6.639 6.65577 6.14609 7.18543 5.52217 7.18543C4.89825 7.18543 4.40657 6.65581 4.40657 5.98542C4.40657 5.31503 4.89828 4.78673 5.52217 4.78673ZM10.1544 10.4675C9.07485 10.4675 8.1664 11.2673 7.89842 12.3397H2.10117C1.94212 12.3392 1.78935 12.4065 1.67669 12.5269C1.56389 12.6473 1.5004 12.8111 1.5 12.982C1.49973 13.1531 1.56295 13.3176 1.67589 13.4385C1.78869 13.5596 1.94173 13.6272 2.10119 13.6265H7.89947C8.16824 14.6987 9.07562 15.5 10.1542 15.5C11.2328 15.5 12.1402 14.6987 12.4089 13.6265H15.902C16.0609 13.6262 16.213 13.5581 16.3251 13.4372C16.4371 13.3163 16.4999 13.1526 16.4997 12.982C16.4993 12.8118 16.4363 12.6486 16.3243 12.5283C16.2122 12.4079 16.0605 12.3402 15.902 12.3397H12.4099C12.142 11.2673 11.2339 10.4675 10.1544 10.4675ZM10.1544 11.7542C10.7943 11.7542 11.3005 12.2943 11.3005 12.982C11.3005 13.6696 10.7943 14.2134 10.1544 14.2134C9.51445 14.2134 9.0083 13.6696 9.0083 12.982C9.0083 12.2944 9.51445 11.7542 10.1544 11.7542Z"]], template: function IconComponent_Template(rf, ctx) { if (rf & 1) {
|
|
7600
7678
|
i0.ɵɵtemplate(0, IconComponent_div_0_Template, 2, 8, "div", 0);
|
|
7601
7679
|
i0.ɵɵtemplate(1, IconComponent_ng_template_1_Template, 48, 50, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
7602
7680
|
} if (rf & 2) {
|
|
@@ -7742,7 +7820,8 @@ class BasketTransferService {
|
|
|
7742
7820
|
navigateToTransferUrl() {
|
|
7743
7821
|
const transferUrl = sessionStorage.getItem('_miam/transferUrl');
|
|
7744
7822
|
if (transferUrl) {
|
|
7745
|
-
window.open(
|
|
7823
|
+
// Apparently Safari blocks window.open(..., "_blank") if called in an async function and setTimeout makes it run on the main thread
|
|
7824
|
+
setTimeout(() => window.open(transferUrl, '_blank'));
|
|
7746
7825
|
}
|
|
7747
7826
|
}
|
|
7748
7827
|
abortTransfer() {
|
|
@@ -7969,7 +8048,7 @@ const environment = {
|
|
|
7969
8048
|
env: 'prod',
|
|
7970
8049
|
miamAPI: 'https://api.miam.tech',
|
|
7971
8050
|
miamWeb: 'https://miam.tech',
|
|
7972
|
-
mealzComponents: 'https://
|
|
8051
|
+
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@1.2/dist',
|
|
7973
8052
|
mealzSsrApi: 'https://ssr-api.mealz.ai',
|
|
7974
8053
|
lang: 'fr'
|
|
7975
8054
|
};
|
|
@@ -7987,7 +8066,7 @@ class MiamInterceptor {
|
|
|
7987
8066
|
request = request.clone({ withCredentials: true });
|
|
7988
8067
|
request = this.setUserProfiling(request);
|
|
7989
8068
|
request = this.setSessionId(request);
|
|
7990
|
-
return this.context.origin.pipe(skipWhile(origin => !origin), take(1), switchMap(() => {
|
|
8069
|
+
return this.context.origin.pipe(skipWhile(origin => !origin), switchMap(() => combineLatest([this.usersService.userInfo$, this.usersService.generatingAuthlessId$])), skipWhile(() => this.shouldWaitForAuthentication(request)), take(1), switchMap(() => {
|
|
7991
8070
|
request = this.setMiamHeaders(request);
|
|
7992
8071
|
return next.handle(request).pipe(map((event) => {
|
|
7993
8072
|
var _a;
|
|
@@ -8076,6 +8155,13 @@ class MiamInterceptor {
|
|
|
8076
8155
|
this.context.setCORSIssueState(true);
|
|
8077
8156
|
}
|
|
8078
8157
|
}
|
|
8158
|
+
shouldWaitForAuthentication(request) {
|
|
8159
|
+
// Skip all requests except the ones which sets the user / authless until we have a user / authless
|
|
8160
|
+
if (request.url.includes('user_info') || request.url.includes('users/authless')) {
|
|
8161
|
+
return false;
|
|
8162
|
+
}
|
|
8163
|
+
return !localStorage.getItem('_miam/userId') && !localStorage.getItem('_miam/authlessId');
|
|
8164
|
+
}
|
|
8079
8165
|
}
|
|
8080
8166
|
MiamInterceptor.ɵfac = function MiamInterceptor_Factory(t) { return new (t || MiamInterceptor)(i0.ɵɵinject(ContextService), i0.ɵɵinject(UserService)); };
|
|
8081
8167
|
MiamInterceptor.ɵprov = i0.ɵɵdefineInjectable({ token: MiamInterceptor, factory: MiamInterceptor.ɵfac });
|
|
@@ -8316,8 +8402,63 @@ PendingBasketMethodsService.ɵprov = i0.ɵɵdefineInjectable({ token: PendingBas
|
|
|
8316
8402
|
}]
|
|
8317
8403
|
}], function () { return [{ type: ContextService }, { type: UserService }, { type: PointOfSalesService }, { type: BasketsService }, { type: RecipesService }]; }, null); })();
|
|
8318
8404
|
|
|
8405
|
+
class StoreOutOfStockService {
|
|
8406
|
+
constructor() {
|
|
8407
|
+
this.outOfStockEntries = [];
|
|
8408
|
+
this.fetchCurrentOutOfStocks();
|
|
8409
|
+
}
|
|
8410
|
+
fetchCurrentOutOfStocks() {
|
|
8411
|
+
const existingEntriesStr = sessionStorage.getItem('_miam/outOfStockEntry') || '[]';
|
|
8412
|
+
try {
|
|
8413
|
+
this.outOfStockEntries = JSON.parse(existingEntriesStr);
|
|
8414
|
+
if (!Array.isArray(this.outOfStockEntries)) {
|
|
8415
|
+
this.outOfStockEntries = [existingEntriesStr];
|
|
8416
|
+
}
|
|
8417
|
+
}
|
|
8418
|
+
catch (e) {
|
|
8419
|
+
this.outOfStockEntries = [];
|
|
8420
|
+
}
|
|
8421
|
+
}
|
|
8422
|
+
isOutOfStockFromStorage(entry) {
|
|
8423
|
+
var _a;
|
|
8424
|
+
if (entry.status === 'active') {
|
|
8425
|
+
this.removeEntryFromStorage(entry);
|
|
8426
|
+
return;
|
|
8427
|
+
}
|
|
8428
|
+
if ((_a = entry === null || entry === void 0 ? void 0 : entry.selectedItem) === null || _a === void 0 ? void 0 : _a.id) {
|
|
8429
|
+
return this.outOfStockEntries.includes(entry.selectedItem.id.toString());
|
|
8430
|
+
}
|
|
8431
|
+
return false;
|
|
8432
|
+
}
|
|
8433
|
+
removeEntryFromStorage(entry) {
|
|
8434
|
+
var _a;
|
|
8435
|
+
if ((_a = entry === null || entry === void 0 ? void 0 : entry.selectedItem) === null || _a === void 0 ? void 0 : _a.id) {
|
|
8436
|
+
this.outOfStockEntries = this.outOfStockEntries.filter(id => id !== entry.selectedItem.id);
|
|
8437
|
+
sessionStorage.setItem('_miam/outOfStockEntry', JSON.stringify(this.outOfStockEntries));
|
|
8438
|
+
}
|
|
8439
|
+
}
|
|
8440
|
+
addEntryToStorage(entry) {
|
|
8441
|
+
var _a;
|
|
8442
|
+
if ((_a = entry.selectedItem) === null || _a === void 0 ? void 0 : _a.id) {
|
|
8443
|
+
this.fetchCurrentOutOfStocks();
|
|
8444
|
+
if (!this.outOfStockEntries.includes(entry.selectedItem.id)) {
|
|
8445
|
+
this.outOfStockEntries.push(entry.selectedItem.id);
|
|
8446
|
+
}
|
|
8447
|
+
sessionStorage.setItem('_miam/outOfStockEntry', JSON.stringify(this.outOfStockEntries));
|
|
8448
|
+
}
|
|
8449
|
+
}
|
|
8450
|
+
}
|
|
8451
|
+
StoreOutOfStockService.ɵfac = function StoreOutOfStockService_Factory(t) { return new (t || StoreOutOfStockService)(); };
|
|
8452
|
+
StoreOutOfStockService.ɵprov = i0.ɵɵdefineInjectable({ token: StoreOutOfStockService, factory: StoreOutOfStockService.ɵfac, providedIn: 'root' });
|
|
8453
|
+
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StoreOutOfStockService, [{
|
|
8454
|
+
type: Injectable,
|
|
8455
|
+
args: [{
|
|
8456
|
+
providedIn: 'root'
|
|
8457
|
+
}]
|
|
8458
|
+
}], function () { return []; }, null); })();
|
|
8459
|
+
|
|
8319
8460
|
class RecipeDetailsService {
|
|
8320
|
-
constructor(analyticsService, basketsService, recipeService, ignoredBasketsService, pendingBasketMethodsService, contextService, posService, itemsService, basketSynchroService, priceService, locale) {
|
|
8461
|
+
constructor(analyticsService, basketsService, recipeService, ignoredBasketsService, pendingBasketMethodsService, contextService, posService, itemsService, basketSynchroService, priceService, storeOutOfStockService, locale) {
|
|
8321
8462
|
this.analyticsService = analyticsService;
|
|
8322
8463
|
this.basketsService = basketsService;
|
|
8323
8464
|
this.recipeService = recipeService;
|
|
@@ -8328,6 +8469,7 @@ class RecipeDetailsService {
|
|
|
8328
8469
|
this.itemsService = itemsService;
|
|
8329
8470
|
this.basketSynchroService = basketSynchroService;
|
|
8330
8471
|
this.priceService = priceService;
|
|
8472
|
+
this.storeOutOfStockService = storeOutOfStockService;
|
|
8331
8473
|
this.locale = locale;
|
|
8332
8474
|
this.productsByCategory = {
|
|
8333
8475
|
toPickProducts: [],
|
|
@@ -8342,7 +8484,7 @@ class RecipeDetailsService {
|
|
|
8342
8484
|
this.recipeLoading$ = new BehaviorSubject(false);
|
|
8343
8485
|
this.basketEntryToReplace$ = new BehaviorSubject(null);
|
|
8344
8486
|
this.updateFooterDisplay$ = new Subject();
|
|
8345
|
-
this.
|
|
8487
|
+
this.pageviewEventWasSent = false;
|
|
8346
8488
|
this.onlyShowPreparation = false;
|
|
8347
8489
|
this.noPosDisplay = false;
|
|
8348
8490
|
this.invalidPosDisplay = false;
|
|
@@ -8589,6 +8731,7 @@ class RecipeDetailsService {
|
|
|
8589
8731
|
merge(...onTimeouts, ...onErrors)
|
|
8590
8732
|
.pipe(take(1))
|
|
8591
8733
|
.subscribe(() => {
|
|
8734
|
+
this.setProductOutOfStockInSession(this.remainingProducts());
|
|
8592
8735
|
this.allIngredientsToBasketLoading = false;
|
|
8593
8736
|
});
|
|
8594
8737
|
const productsToEmit = { ingredientsAdded: productsToAdd.length, ingredientsTotal: this.recipe.ingredients.length };
|
|
@@ -8606,7 +8749,9 @@ class RecipeDetailsService {
|
|
|
8606
8749
|
this.getIngredientsBasketEntries(false).pipe(take(1)).subscribe((products) => {
|
|
8607
8750
|
if (inBasket) {
|
|
8608
8751
|
const updateActions = products
|
|
8609
|
-
.filter(({ basketEntry }) => basketEntry.
|
|
8752
|
+
.filter(({ basketEntry }) => basketEntry.status === 'active' &&
|
|
8753
|
+
basketEntry.id !== '-1' &&
|
|
8754
|
+
basketEntry.recipesIds.includes(+this.recipe.id))
|
|
8610
8755
|
.map(({ basketEntry }) => {
|
|
8611
8756
|
const newBasketEntry = deepCloneWithClass(basketEntry); // Clone for immutability
|
|
8612
8757
|
return new UpdateRecipeFromGuestAction(newBasketEntry, {
|
|
@@ -8753,6 +8898,9 @@ class RecipeDetailsService {
|
|
|
8753
8898
|
const { status } = basketEntry;
|
|
8754
8899
|
// Check if the product is ignored
|
|
8755
8900
|
this.isIngredientIgnored(product);
|
|
8901
|
+
if (this.storeOutOfStockService.isOutOfStockFromStorage(basketEntry)) {
|
|
8902
|
+
product.basketEntry.status = 'out_of_stock';
|
|
8903
|
+
}
|
|
8756
8904
|
this.calculateProductPrice(product, this.priceService.getPriceFromBasketEntry(basketEntry));
|
|
8757
8905
|
this.correctProductState(product);
|
|
8758
8906
|
// Check if the product is often ignored based on basketEntryStatus
|
|
@@ -8771,7 +8919,7 @@ class RecipeDetailsService {
|
|
|
8771
8919
|
this.productsByCategory$.next(this.productsByCategory);
|
|
8772
8920
|
}
|
|
8773
8921
|
correctProductState(product) {
|
|
8774
|
-
if (!['often_deleted', 'deleted', 'ignored'].includes(product.basketEntry.status)) {
|
|
8922
|
+
if (!['often_deleted', 'deleted', 'ignored', 'out_of_stock'].includes(product.basketEntry.status)) {
|
|
8775
8923
|
const { id, selectedItem, recipesIds } = product.basketEntry;
|
|
8776
8924
|
if (id === '-1') {
|
|
8777
8925
|
product.basketEntry.status = selectedItem ? 'initial' : 'unavailable';
|
|
@@ -8782,15 +8930,21 @@ class RecipeDetailsService {
|
|
|
8782
8930
|
}
|
|
8783
8931
|
}
|
|
8784
8932
|
}
|
|
8933
|
+
setProductOutOfStockInSession(products) {
|
|
8934
|
+
products.forEach(({ entry }) => {
|
|
8935
|
+
entry.status = 'out_of_stock';
|
|
8936
|
+
this.storeOutOfStockService.addEntryToStorage(entry);
|
|
8937
|
+
});
|
|
8938
|
+
}
|
|
8785
8939
|
}
|
|
8786
|
-
RecipeDetailsService.ɵfac = function RecipeDetailsService_Factory(t) { return new (t || RecipeDetailsService)(i0.ɵɵinject(AnalyticsService), i0.ɵɵinject(BasketsService), i0.ɵɵinject(RecipesService), i0.ɵɵinject(IgnoredIngredientsService), i0.ɵɵinject(PendingBasketMethodsService), i0.ɵɵinject(ContextService), i0.ɵɵinject(PointOfSalesService), i0.ɵɵinject(ItemsService), i0.ɵɵinject(BasketsSynchronizerService), i0.ɵɵinject(PriceService), i0.ɵɵinject(LOCALE_ID)); };
|
|
8940
|
+
RecipeDetailsService.ɵfac = function RecipeDetailsService_Factory(t) { return new (t || RecipeDetailsService)(i0.ɵɵinject(AnalyticsService), i0.ɵɵinject(BasketsService), i0.ɵɵinject(RecipesService), i0.ɵɵinject(IgnoredIngredientsService), i0.ɵɵinject(PendingBasketMethodsService), i0.ɵɵinject(ContextService), i0.ɵɵinject(PointOfSalesService), i0.ɵɵinject(ItemsService), i0.ɵɵinject(BasketsSynchronizerService), i0.ɵɵinject(PriceService), i0.ɵɵinject(StoreOutOfStockService), i0.ɵɵinject(LOCALE_ID)); };
|
|
8787
8941
|
RecipeDetailsService.ɵprov = i0.ɵɵdefineInjectable({ token: RecipeDetailsService, factory: RecipeDetailsService.ɵfac, providedIn: 'root' });
|
|
8788
8942
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RecipeDetailsService, [{
|
|
8789
8943
|
type: Injectable,
|
|
8790
8944
|
args: [{
|
|
8791
8945
|
providedIn: 'root'
|
|
8792
8946
|
}]
|
|
8793
|
-
}], function () { return [{ type: AnalyticsService }, { type: BasketsService }, { type: RecipesService }, { type: IgnoredIngredientsService }, { type: PendingBasketMethodsService }, { type: ContextService }, { type: PointOfSalesService }, { type: ItemsService }, { type: BasketsSynchronizerService }, { type: PriceService }, { type: undefined, decorators: [{
|
|
8947
|
+
}], function () { return [{ type: AnalyticsService }, { type: BasketsService }, { type: RecipesService }, { type: IgnoredIngredientsService }, { type: PendingBasketMethodsService }, { type: ContextService }, { type: PointOfSalesService }, { type: ItemsService }, { type: BasketsSynchronizerService }, { type: PriceService }, { type: StoreOutOfStockService }, { type: undefined, decorators: [{
|
|
8794
8948
|
type: Inject,
|
|
8795
8949
|
args: [LOCALE_ID]
|
|
8796
8950
|
}] }]; }, null); })();
|
|
@@ -8912,7 +9066,7 @@ class LikeButtonComponent extends EventTracerComponent {
|
|
|
8912
9066
|
}
|
|
8913
9067
|
}
|
|
8914
9068
|
LikeButtonComponent.ɵfac = function LikeButtonComponent_Factory(t) { return new (t || LikeButtonComponent)(i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(RecipeLikesService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
8915
|
-
LikeButtonComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LikeButtonComponent, selectors: [["ng-miam-like-button"]], inputs: { primaryColor: "primaryColor", recipe: "recipe" }, outputs: { wasToggled: "wasToggled" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars:
|
|
9069
|
+
LikeButtonComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LikeButtonComponent, selectors: [["ng-miam-like-button"]], inputs: { primaryColor: "primaryColor", recipe: "recipe" }, outputs: { wasToggled: "wasToggled" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 4, vars: 10, consts: [[1, "miam-like-button", "miam-ds-button", "primary", "reverse", "square", "small", 3, "click"], [1, "miam-like-button__icon", 3, "ngClass"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Heart.svg", "alt", "", "aria-hidden", "true", 1, "miam-like-button__icon__empty", 3, "ngClass"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/HeartFill.svg", "alt", "", "aria-hidden", "true", 1, "miam-like-button__icon__full", 3, "ngClass"]], template: function LikeButtonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
8916
9070
|
i0.ɵɵelementStart(0, "button", 0);
|
|
8917
9071
|
i0.ɵɵlistener("click", function LikeButtonComponent_Template_button_click_0_listener($event) { return ctx.toggleLike($event); });
|
|
8918
9072
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -8921,12 +9075,13 @@ LikeButtonComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LikeButtonComponent,
|
|
|
8921
9075
|
i0.ɵɵelementEnd();
|
|
8922
9076
|
i0.ɵɵelementEnd();
|
|
8923
9077
|
} if (rf & 2) {
|
|
9078
|
+
i0.ɵɵattribute("aria-label", ctx.recipeLike.isPast === false ? "Retirer des favoris" : "Ajouter aux favoris");
|
|
8924
9079
|
i0.ɵɵadvance(1);
|
|
8925
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
9080
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c0$o, ctx.recipeLike.isPast == false));
|
|
8926
9081
|
i0.ɵɵadvance(1);
|
|
8927
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
9082
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c1$e, ctx.recipeLike.isPast !== false));
|
|
8928
9083
|
i0.ɵɵadvance(1);
|
|
8929
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
9084
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(8, _c1$e, ctx.recipeLike.isPast == false));
|
|
8930
9085
|
} }, directives: [i2.NgClass], styles: [".miam-like-button{padding:8px;border:none;position:relative}.miam-like-button.miam-ds-button.primary.reverse.square.small{background-color:var(--miam-ds-color-background-primary)}.miam-like-button.miam-ds-button.primary.reverse.square.small:hover:not(.loading):not(.disabled):not([disabled]){background-color:var(--miam-ds-color-background-primary-hover)}.miam-like-button.miam-ds-button.primary.reverse.square.small .miam-like-button__icon{position:relative;height:24px;width:24px}.miam-like-button.miam-ds-button.primary.reverse.square.small .miam-like-button__icon img{position:absolute;top:0;right:0;height:100%;width:100%;opacity:0;transition:opacity .3s ease-in-out}.miam-like-button.miam-ds-button.primary.reverse.square.small .miam-like-button__icon img.active{opacity:1}"], encapsulation: 2, changeDetection: 0 });
|
|
8931
9086
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(LikeButtonComponent, [{
|
|
8932
9087
|
type: Component,
|
|
@@ -9032,7 +9187,7 @@ MealsPlannerLinkComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MealsPlannerLin
|
|
|
9032
9187
|
|
|
9033
9188
|
function ModalComponent_ng_container_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
9034
9189
|
i0.ɵɵelementStart(0, "div", 13);
|
|
9035
|
-
i0.ɵɵelementStart(1, "span");
|
|
9190
|
+
i0.ɵɵelementStart(1, "span", 14);
|
|
9036
9191
|
i0.ɵɵtext(2);
|
|
9037
9192
|
i0.ɵɵelementEnd();
|
|
9038
9193
|
i0.ɵɵelementEnd();
|
|
@@ -9042,20 +9197,22 @@ function ModalComponent_ng_container_0_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
9042
9197
|
i0.ɵɵtextInterpolate(ctx_r1.title);
|
|
9043
9198
|
} }
|
|
9044
9199
|
function ModalComponent_ng_container_0_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
9045
|
-
i0.ɵɵelementStart(0, "div",
|
|
9046
|
-
i0.ɵɵelementStart(1, "span");
|
|
9047
|
-
i0.ɵɵ
|
|
9200
|
+
i0.ɵɵelementStart(0, "div", 15);
|
|
9201
|
+
i0.ɵɵelementStart(1, "span", 16);
|
|
9202
|
+
i0.ɵɵelementStart(2, "span");
|
|
9203
|
+
i0.ɵɵi18n(3, 17);
|
|
9048
9204
|
i0.ɵɵelementEnd();
|
|
9049
|
-
i0.ɵɵelementStart(
|
|
9050
|
-
i0.ɵɵtext(
|
|
9205
|
+
i0.ɵɵelementStart(4, "span");
|
|
9206
|
+
i0.ɵɵtext(5);
|
|
9207
|
+
i0.ɵɵelementEnd();
|
|
9208
|
+
i0.ɵɵelementStart(6, "span");
|
|
9209
|
+
i0.ɵɵi18n(7, 18);
|
|
9051
9210
|
i0.ɵɵelementEnd();
|
|
9052
|
-
i0.ɵɵelementStart(5, "span");
|
|
9053
|
-
i0.ɵɵi18n(6, 16);
|
|
9054
9211
|
i0.ɵɵelementEnd();
|
|
9055
9212
|
i0.ɵɵelementEnd();
|
|
9056
9213
|
} if (rf & 2) {
|
|
9057
9214
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
9058
|
-
i0.ɵɵadvance(
|
|
9215
|
+
i0.ɵɵadvance(5);
|
|
9059
9216
|
i0.ɵɵtextInterpolate(ctx_r2.recipesCount);
|
|
9060
9217
|
} }
|
|
9061
9218
|
function ModalComponent_ng_container_0_div_14_ng_container_1_button_2_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -9068,14 +9225,14 @@ function ModalComponent_ng_container_0_div_14_ng_container_1_button_2_span_1_Tem
|
|
|
9068
9225
|
i0.ɵɵtextInterpolate(ctx_r10.cancelButtonText);
|
|
9069
9226
|
} }
|
|
9070
9227
|
function ModalComponent_ng_container_0_div_14_ng_container_1_button_2_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
9071
|
-
i0.ɵɵelement(0, "div",
|
|
9228
|
+
i0.ɵɵelement(0, "div", 25);
|
|
9072
9229
|
} }
|
|
9073
9230
|
function ModalComponent_ng_container_0_div_14_ng_container_1_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
9074
9231
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
9075
|
-
i0.ɵɵelementStart(0, "button",
|
|
9232
|
+
i0.ɵɵelementStart(0, "button", 24);
|
|
9076
9233
|
i0.ɵɵlistener("click", function ModalComponent_ng_container_0_div_14_ng_container_1_button_2_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(4); return ctx_r12.onCancel(); });
|
|
9077
9234
|
i0.ɵɵtemplate(1, ModalComponent_ng_container_0_div_14_ng_container_1_button_2_span_1_Template, 2, 1, "span", 0);
|
|
9078
|
-
i0.ɵɵtemplate(2, ModalComponent_ng_container_0_div_14_ng_container_1_button_2_div_2_Template, 1, 0, "div",
|
|
9235
|
+
i0.ɵɵtemplate(2, ModalComponent_ng_container_0_div_14_ng_container_1_button_2_div_2_Template, 1, 0, "div", 23);
|
|
9079
9236
|
i0.ɵɵelementEnd();
|
|
9080
9237
|
} if (rf & 2) {
|
|
9081
9238
|
const ctx_r7 = i0.ɵɵnextContext(4);
|
|
@@ -9095,17 +9252,17 @@ function ModalComponent_ng_container_0_div_14_ng_container_1_span_4_Template(rf,
|
|
|
9095
9252
|
i0.ɵɵtextInterpolate(ctx_r8.confirmButtonText);
|
|
9096
9253
|
} }
|
|
9097
9254
|
function ModalComponent_ng_container_0_div_14_ng_container_1_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
9098
|
-
i0.ɵɵelement(0, "div",
|
|
9255
|
+
i0.ɵɵelement(0, "div", 25);
|
|
9099
9256
|
} }
|
|
9100
9257
|
function ModalComponent_ng_container_0_div_14_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
9101
9258
|
const _r15 = i0.ɵɵgetCurrentView();
|
|
9102
9259
|
i0.ɵɵelementContainerStart(0);
|
|
9103
|
-
i0.ɵɵelementStart(1, "div",
|
|
9104
|
-
i0.ɵɵtemplate(2, ModalComponent_ng_container_0_div_14_ng_container_1_button_2_Template, 3, 3, "button",
|
|
9105
|
-
i0.ɵɵelementStart(3, "button",
|
|
9260
|
+
i0.ɵɵelementStart(1, "div", 20);
|
|
9261
|
+
i0.ɵɵtemplate(2, ModalComponent_ng_container_0_div_14_ng_container_1_button_2_Template, 3, 3, "button", 21);
|
|
9262
|
+
i0.ɵɵelementStart(3, "button", 22);
|
|
9106
9263
|
i0.ɵɵlistener("click", function ModalComponent_ng_container_0_div_14_ng_container_1_Template_button_click_3_listener() { i0.ɵɵrestoreView(_r15); const ctx_r14 = i0.ɵɵnextContext(3); return ctx_r14.onConfirm(); });
|
|
9107
9264
|
i0.ɵɵtemplate(4, ModalComponent_ng_container_0_div_14_ng_container_1_span_4_Template, 2, 1, "span", 0);
|
|
9108
|
-
i0.ɵɵtemplate(5, ModalComponent_ng_container_0_div_14_ng_container_1_div_5_Template, 1, 0, "div",
|
|
9265
|
+
i0.ɵɵtemplate(5, ModalComponent_ng_container_0_div_14_ng_container_1_div_5_Template, 1, 0, "div", 23);
|
|
9109
9266
|
i0.ɵɵelementEnd();
|
|
9110
9267
|
i0.ɵɵelementEnd();
|
|
9111
9268
|
i0.ɵɵelementContainerEnd();
|
|
@@ -9123,22 +9280,22 @@ function ModalComponent_ng_container_0_div_14_ng_container_1_Template(rf, ctx) {
|
|
|
9123
9280
|
function ModalComponent_ng_container_0_div_14_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
9124
9281
|
const _r17 = i0.ɵɵgetCurrentView();
|
|
9125
9282
|
i0.ɵɵelementContainerStart(0);
|
|
9126
|
-
i0.ɵɵelementStart(1, "div",
|
|
9127
|
-
i0.ɵɵelementStart(2, "div",
|
|
9128
|
-
i0.ɵɵelementStart(3, "div",
|
|
9283
|
+
i0.ɵɵelementStart(1, "div", 26);
|
|
9284
|
+
i0.ɵɵelementStart(2, "div", 27);
|
|
9285
|
+
i0.ɵɵelementStart(3, "div", 28);
|
|
9129
9286
|
i0.ɵɵelementStart(4, "span");
|
|
9130
9287
|
i0.ɵɵtext(5);
|
|
9131
9288
|
i0.ɵɵpipe(6, "currency");
|
|
9132
9289
|
i0.ɵɵelementEnd();
|
|
9133
9290
|
i0.ɵɵelementEnd();
|
|
9134
|
-
i0.ɵɵelementStart(7, "span",
|
|
9135
|
-
i0.ɵɵi18n(8,
|
|
9291
|
+
i0.ɵɵelementStart(7, "span", 29);
|
|
9292
|
+
i0.ɵɵi18n(8, 30);
|
|
9136
9293
|
i0.ɵɵelementEnd();
|
|
9137
9294
|
i0.ɵɵelementEnd();
|
|
9138
|
-
i0.ɵɵelementStart(9, "button",
|
|
9295
|
+
i0.ɵɵelementStart(9, "button", 31);
|
|
9139
9296
|
i0.ɵɵlistener("click", function ModalComponent_ng_container_0_div_14_ng_container_2_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r17); const ctx_r16 = i0.ɵɵnextContext(3); return ctx_r16.basketTransferService.confirmBasket(); });
|
|
9140
9297
|
i0.ɵɵelementStart(10, "span");
|
|
9141
|
-
i0.ɵɵi18n(11,
|
|
9298
|
+
i0.ɵɵi18n(11, 32);
|
|
9142
9299
|
i0.ɵɵelementEnd();
|
|
9143
9300
|
i0.ɵɵelementEnd();
|
|
9144
9301
|
i0.ɵɵelementEnd();
|
|
@@ -9152,11 +9309,11 @@ function ModalComponent_ng_container_0_div_14_ng_container_2_Template(rf, ctx) {
|
|
|
9152
9309
|
} }
|
|
9153
9310
|
function ModalComponent_ng_container_0_div_14_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
9154
9311
|
i0.ɵɵelementContainerStart(0);
|
|
9155
|
-
i0.ɵɵelementStart(1, "div",
|
|
9156
|
-
i0.ɵɵelementStart(2, "a",
|
|
9157
|
-
i0.ɵɵelementStart(3, "button",
|
|
9312
|
+
i0.ɵɵelementStart(1, "div", 33);
|
|
9313
|
+
i0.ɵɵelementStart(2, "a", 34);
|
|
9314
|
+
i0.ɵɵelementStart(3, "button", 35);
|
|
9158
9315
|
i0.ɵɵelementStart(4, "span");
|
|
9159
|
-
i0.ɵɵi18n(5,
|
|
9316
|
+
i0.ɵɵi18n(5, 36);
|
|
9160
9317
|
i0.ɵɵelementEnd();
|
|
9161
9318
|
i0.ɵɵelementEnd();
|
|
9162
9319
|
i0.ɵɵelementEnd();
|
|
@@ -9170,7 +9327,7 @@ function ModalComponent_ng_container_0_div_14_ng_container_3_Template(rf, ctx) {
|
|
|
9170
9327
|
i0.ɵɵproperty("ngClass", ctx_r6.ctaColor);
|
|
9171
9328
|
} }
|
|
9172
9329
|
function ModalComponent_ng_container_0_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
9173
|
-
i0.ɵɵelementStart(0, "div",
|
|
9330
|
+
i0.ɵɵelementStart(0, "div", 19);
|
|
9174
9331
|
i0.ɵɵtemplate(1, ModalComponent_ng_container_0_div_14_ng_container_1_Template, 6, 5, "ng-container", 0);
|
|
9175
9332
|
i0.ɵɵtemplate(2, ModalComponent_ng_container_0_div_14_ng_container_2_Template, 12, 5, "ng-container", 0);
|
|
9176
9333
|
i0.ɵɵtemplate(3, ModalComponent_ng_container_0_div_14_ng_container_3_Template, 6, 2, "ng-container", 0);
|
|
@@ -9197,9 +9354,9 @@ function ModalComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
9197
9354
|
i0.ɵɵelementStart(5, "div", 5);
|
|
9198
9355
|
i0.ɵɵelementStart(6, "div", 6);
|
|
9199
9356
|
i0.ɵɵtemplate(7, ModalComponent_ng_container_0_div_7_Template, 3, 1, "div", 7);
|
|
9200
|
-
i0.ɵɵtemplate(8, ModalComponent_ng_container_0_div_8_Template,
|
|
9201
|
-
i0.ɵɵelementStart(9, "
|
|
9202
|
-
i0.ɵɵlistener("click", function
|
|
9357
|
+
i0.ɵɵtemplate(8, ModalComponent_ng_container_0_div_8_Template, 8, 1, "div", 8);
|
|
9358
|
+
i0.ɵɵelementStart(9, "button", 9);
|
|
9359
|
+
i0.ɵɵlistener("click", function ModalComponent_ng_container_0_Template_button_click_9_listener() { i0.ɵɵrestoreView(_r19); const ctx_r20 = i0.ɵɵnextContext(); return ctx_r20.onClose(); });
|
|
9203
9360
|
i0.ɵɵelementEnd();
|
|
9204
9361
|
i0.ɵɵelementEnd();
|
|
9205
9362
|
i0.ɵɵprojection(10);
|
|
@@ -9219,7 +9376,8 @@ function ModalComponent_ng_container_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
9219
9376
|
i0.ɵɵadvance(1);
|
|
9220
9377
|
i0.ɵɵproperty("ngClass", ctx_r0.modalStyle);
|
|
9221
9378
|
i0.ɵɵadvance(2);
|
|
9222
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(
|
|
9379
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction2(6, _c10$3, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
|
|
9380
|
+
i0.ɵɵattribute("aria-labelledby", ctx_r0.title ? "modal-title" : ctx_r0.recipesCount ? "modal-recipe-count" : null);
|
|
9223
9381
|
i0.ɵɵadvance(4);
|
|
9224
9382
|
i0.ɵɵproperty("ngIf", ctx_r0.title);
|
|
9225
9383
|
i0.ɵɵadvance(1);
|
|
@@ -9326,9 +9484,9 @@ ModalComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ModalComponent, selectors:
|
|
|
9326
9484
|
}
|
|
9327
9485
|
else {
|
|
9328
9486
|
i18n_8 = $localize `:␟49b179ff87bcc0859d15e5cfbb9b2b0d96a60333␟2171691468124282297:Voir mon panier`;
|
|
9329
|
-
} return [[4, "ngIf"], [1, "miam-modal__container", 3, "ngClass"], [1, "miam-shadow-overlay", 3, "click"], [1, "miam-modal", "miam-ds-text", 3, "ngClass"], [1, "miam-modal__content-container"], [1, "miam-modal__header-container"], [1, "miam-modal__header"], ["class", "miam-modal__title miam-ds-text size-xl weight-xxl", 4, "ngIf"], ["class", "miam-modal__title miam-ds-text", 4, "ngIf"], [1, "miam-modal__close-icon", "miam-ds-button", "ghost", 3, "click"], [1, "miam-modal__content__scroll-protection"], [1, "miam-modal__content", "miam-ds-text"], ["class", "miam-modal__actions", 4, "ngIf"], [1, "miam-modal__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-modal__title", "miam-ds-text"], i18n_0, i18n_2, [1, "miam-modal__actions"], [1, "miam-modal__interactions"], ["class", "miam-ds-button secondary", 3, "disabled", "click", 4, "ngIf"], [1, "miam-ds-button", 3, "disabled", "ngClass", "click"], ["class", "miam-ds-loader", 4, "ngIf"], [1, "miam-ds-button", "secondary", 3, "disabled", "click"], [1, "miam-ds-loader"], [1, "miam-modal__place-order"], [1, "miam-modal__place-order-price"], [1, "miam-modal__total-price", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-modal__total-price-label", "miam-ds-text", "size-s"], i18n_4, [1, "miam-modal__place-order-cta", "miam-ds-button", 3, "ngClass", "click"], i18n_6, [1, "miam-modal__redirect-to-cart"], [3, "href"], [1, "miam-modal__redirect-to-cart-cta", "miam-ds-button", 3, "ngClass"], i18n_8]; }, template: function ModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9487
|
+
} return [[4, "ngIf"], [1, "miam-modal__container", 3, "ngClass"], [1, "miam-shadow-overlay", 3, "click"], ["role", "dialog", "aria-modal", "true", 1, "miam-modal", "miam-ds-text", 3, "ngClass"], [1, "miam-modal__content-container"], [1, "miam-modal__header-container"], [1, "miam-modal__header"], ["class", "miam-modal__title miam-ds-text size-xl weight-xxl", 4, "ngIf"], ["class", "miam-modal__title miam-ds-text", 4, "ngIf"], ["aria-label", "Fermer", 1, "miam-modal__close-icon", "miam-ds-button", "ghost", 3, "click"], [1, "miam-modal__content__scroll-protection"], [1, "miam-modal__content", "miam-ds-text"], ["class", "miam-modal__actions", 4, "ngIf"], [1, "miam-modal__title", "miam-ds-text", "size-xl", "weight-xxl"], ["id", "modal-title"], [1, "miam-modal__title", "miam-ds-text"], ["id", "modal-recipe-count"], i18n_0, i18n_2, [1, "miam-modal__actions"], [1, "miam-modal__interactions"], ["class", "miam-ds-button secondary", 3, "disabled", "click", 4, "ngIf"], [1, "miam-ds-button", 3, "disabled", "ngClass", "click"], ["class", "miam-ds-loader", "role", "status", "aria-label", "Chargement en cours", 4, "ngIf"], [1, "miam-ds-button", "secondary", 3, "disabled", "click"], ["role", "status", "aria-label", "Chargement en cours", 1, "miam-ds-loader"], [1, "miam-modal__place-order"], [1, "miam-modal__place-order-price"], ["role", "status", 1, "miam-modal__total-price", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-modal__total-price-label", "miam-ds-text", "size-s"], i18n_4, [1, "miam-modal__place-order-cta", "miam-ds-button", 3, "ngClass", "click"], i18n_6, [1, "miam-modal__redirect-to-cart"], [3, "href"], [1, "miam-modal__redirect-to-cart-cta", "miam-ds-button", 3, "ngClass"], i18n_8]; }, template: function ModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9330
9488
|
i0.ɵɵprojectionDef(_c11$3);
|
|
9331
|
-
i0.ɵɵtemplate(0, ModalComponent_ng_container_0_Template, 15,
|
|
9489
|
+
i0.ɵɵtemplate(0, ModalComponent_ng_container_0_Template, 15, 9, "ng-container", 0);
|
|
9332
9490
|
} if (rf & 2) {
|
|
9333
9491
|
i0.ɵɵproperty("ngIf", ctx.display);
|
|
9334
9492
|
} }, directives: [i2.NgIf, i2.NgClass], pipes: [i2.CurrencyPipe], styles: [".miam-no-scroll{overflow:hidden}.miam-modal__container .miam-shadow-overlay{position:fixed;background:var(--miam-ds-color-neutral-black);animation-name:show;animation-duration:.3s;opacity:.6;animation-timing-function:ease-in-out;z-index:var(--m-z-index-modal-overlay);top:0;left:0;width:100vw;height:100dvh;-webkit-tap-highlight-color:transparent}@keyframes show{0%{opacity:0}to{opacity:.6}}.miam-modal__container .miam-modal{z-index:var(--m-z-index-modal);position:fixed;overflow:hidden;background-color:var(--miam-ds-color-background-primary);display:flex;flex-direction:column}@media print{.miam-modal__container .miam-modal{overflow-y:unset!important;position:unset!important;height:unset!important}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__close-icon{display:none}}.miam-modal__container .miam-modal.with-header .miam-modal__content-container .miam-modal__content{margin-top:24px;margin-bottom:24px}.miam-modal__container .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__title{display:none}.miam-modal__container .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{position:absolute;top:0;right:0;z-index:var(--m-z-index-position-absolute-high)}.miam-modal__container .miam-modal .miam-modal__content-container{position:relative;height:100%;display:flex;flex-direction:column;overflow:hidden}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header{display:flex;flex-direction:row;justify-content:space-between}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header .miam-modal__title{font-weight:900;overflow:hidden;text-overflow:ellipsis;align-self:center}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:8px;padding:16px;background:50%/24px no-repeat url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg)}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content__scroll-protection{overflow:hidden;height:100%;display:flex}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content{width:100%;overflow-y:auto;overflow-x:hidden;scrollbar-color:var(--miam-ds-color-primary-100),var(--miam-ds-color-primary)}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__interactions{display:flex;justify-content:flex-end;flex-direction:row}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__interactions button+button{margin-left:12px}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__place-order{display:flex;justify-content:space-between;align-items:center}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__place-order .miam-modal__place-order-price{display:flex;flex-direction:column}.miam-modal__container.center .miam-modal{height:auto;min-width:464px;width:600px;max-width:700px;max-height:96dvh;box-sizing:border-box;top:50%;left:50%;right:unset;transform:translate(-50%,-50%);border-radius:8px;background-color:var(--miam-ds-color-neutral-white);padding:24px}.miam-modal__container.right>.miam-modal{right:0;animation-name:openRightDrawer}@keyframes openRightDrawer{0%{right:-1200px}to{right:0}}.miam-modal__container.left>.miam-modal{left:0;animation-name:openLeftDrawer}@keyframes openLeftDrawer{0%{left:-1200px}to{left:0}}.miam-modal__container.left>.miam-modal,.miam-modal__container.right>.miam-modal{animation-duration:.5s;animation-timing-function:cubic-bezier(.75,0,.2,1);height:100%;width:1000px;top:0}.miam-modal__container.left>.miam-modal>.miam-modal__content-container,.miam-modal__container.right>.miam-modal>.miam-modal__content-container{height:100%;box-sizing:border-box}.miam-modal__container.left>.miam-modal>.miam-modal__content-container .miam-modal__content,.miam-modal__container.right>.miam-modal>.miam-modal__content-container .miam-modal__content{height:100%;box-sizing:border-box;margin:unset}.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions{border-top:1px solid var(--miam-ds-color-border)}.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__interactions,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__interactions{padding:24px}.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__place-order,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__place-order{padding:18px}.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__place-order .miam-modal__total-price,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__place-order .miam-modal__total-price{color:var(--miam-ds-color-primary,#24748f)}.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__place-order .miam-modal__total-price-label,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__place-order .miam-modal__total-price-label{color:var(--miam-ds-color-neutral-400,#8c96a2)}.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__redirect-to-cart,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__redirect-to-cart{padding:12px 16px;display:flex;flex-direction:row;justify-content:center}.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__redirect-to-cart a,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__redirect-to-cart a{color:var(--miam-ds-color-neutral-white,#fff);text-decoration:none}@media (max-width:1023px){.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__redirect-to-cart a,.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__redirect-to-cart a .miam-ds-button,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__redirect-to-cart a,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__redirect-to-cart a .miam-ds-button{width:100%}}.miam-modal__container.left>.miam-modal.with-header .miam-modal__content-container .miam-modal__header,.miam-modal__container.right>.miam-modal.with-header .miam-modal__content-container .miam-modal__header{border-bottom:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.left>.miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon,.miam-modal__container.right>.miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:unset}.miam-modal__container.left>.miam-modal.with-header .miam-modal__content-container .miam-modal__content,.miam-modal__container.right>.miam-modal.with-header .miam-modal__content-container .miam-modal__content{padding:16px}.miam-modal__container.left>.miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon,.miam-modal__container.right>.miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:24px}.miam-modal__container.left.small-width .miam-modal,.miam-modal__container.right.small-width .miam-modal{min-width:680px;max-width:680px}.miam-modal__container.left.tiny-width .miam-modal,.miam-modal__container.right.tiny-width .miam-modal{min-width:360px;max-width:360px}@media (max-width:1023px){.miam-modal__container.center .miam-modal{min-width:60vw;padding:unset;max-width:calc(100vw - 48px)}.miam-modal__container.center .miam-modal.with-header .miam-modal__content-container .miam-modal__header{border-bottom:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.center .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:unset}.miam-modal__container.center .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:24px}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__content{box-sizing:border-box;height:100%;margin:unset;padding:24px}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions{border-top:1px solid var(--miam-ds-color-border)}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-modal__interactions{justify-content:center;padding:16px 8px}.miam-modal__container.left.small-width>.miam-modal,.miam-modal__container.left.tiny-width>.miam-modal,.miam-modal__container.left>.miam-modal,.miam-modal__container.right.small-width>.miam-modal,.miam-modal__container.right.tiny-width>.miam-modal,.miam-modal__container.right>.miam-modal{max-width:100vw;max-height:100dvh;width:100vw;height:100dvh;top:0;bottom:0;right:0;animation-name:openBottomSheet;animation-duration:.5s;animation-timing-function:cubic-bezier(.075,.82,.165,1)}@keyframes openBottomSheet{0%{transform:translateY(100%)}to{transform:translateY(0)}}.miam-modal__container.left.small-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions,.miam-modal__container.left.tiny-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions,.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions,.miam-modal__container.right.small-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions,.miam-modal__container.right.tiny-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions{flex-direction:column-reverse}.miam-modal__container.left.small-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__interactions,.miam-modal__container.left.tiny-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__interactions,.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__interactions,.miam-modal__container.right.small-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__interactions,.miam-modal__container.right.tiny-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__interactions,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-modal__interactions{justify-content:center;padding:24px 8px}.miam-modal__container.left.small-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left.tiny-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right.small-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right.tiny-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.primary{background-color:var(--miam-ds-color-primary)}.miam-modal__container.left.small-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left.tiny-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right.small-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right.tiny-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button:hover.secondary{background-color:transparent}.miam-modal__container.left.small-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button+button,.miam-modal__container.left.tiny-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button+button,.miam-modal__container.left>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button+button,.miam-modal__container.right.small-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button+button,.miam-modal__container.right.tiny-width>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button+button,.miam-modal__container.right>.miam-modal>.miam-modal__content-container>.miam-modal__actions .miam-ds-button+button{margin-left:unset;margin-bottom:12px}}"], encapsulation: 2, changeDetection: 0 });
|
|
@@ -9741,7 +9899,7 @@ class AccordionComponent {
|
|
|
9741
9899
|
AccordionComponent.ɵfac = function AccordionComponent_Factory(t) { return new (t || AccordionComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
9742
9900
|
AccordionComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AccordionComponent, selectors: [["ng-miam-accordion"]], hostVars: 2, hostBindings: function AccordionComponent_HostBindings(rf, ctx) { if (rf & 2) {
|
|
9743
9901
|
i0.ɵɵclassProp("opened", ctx.opened);
|
|
9744
|
-
} }, inputs: { isCollapsed: "isCollapsed" }, outputs: { isCollapsedChange: "isCollapsedChange" }, ngContentSelectors: _c1$a, decls: 6, vars: 0, consts: [[1, "miam-accordion__header", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "
|
|
9902
|
+
} }, inputs: { isCollapsed: "isCollapsed" }, outputs: { isCollapsedChange: "isCollapsedChange" }, ngContentSelectors: _c1$a, decls: 6, vars: 0, consts: [[1, "miam-accordion__header", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "", "aria-hidden", "true", 1, "miam-accordion__icon"], [1, "miam-accordion__collapsable-container"], [1, "miam-accordion__collapsable-content"]], template: function AccordionComponent_Template(rf, ctx) { if (rf & 1) {
|
|
9745
9903
|
i0.ɵɵprojectionDef(_c0$k);
|
|
9746
9904
|
i0.ɵɵelementStart(0, "div", 0);
|
|
9747
9905
|
i0.ɵɵlistener("click", function AccordionComponent_Template_div_click_0_listener() { return ctx.swapState(); });
|
|
@@ -10143,7 +10301,7 @@ class RecipeFiltersComponent {
|
|
|
10143
10301
|
})).subscribe());
|
|
10144
10302
|
}
|
|
10145
10303
|
}
|
|
10146
|
-
RecipeFiltersComponent.ɵfac = function RecipeFiltersComponent_Factory(t) { return new (t || RecipeFiltersComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(
|
|
10304
|
+
RecipeFiltersComponent.ɵfac = function RecipeFiltersComponent_Factory(t) { return new (t || RecipeFiltersComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i8.MediaMatcher), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(RecipesService)); };
|
|
10147
10305
|
RecipeFiltersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeFiltersComponent, selectors: [["ng-miam-recipe-filters"]], inputs: { filters: "filters", filterToRemove: "filterToRemove", isFilterCollapsed: "isFilterCollapsed", position: "position", modifiedGuests: "modifiedGuests", excludedRecipesIds: "excludedRecipesIds" }, outputs: { filterChanged: "filterChanged", filterCollapsed: "filterCollapsed", preferencesChanged: "preferencesChanged" }, features: [i0.ɵɵNgOnChangesFeature], decls: 19, vars: 12, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
10148
10306
|
const MSG_EXTERNAL_5491081266313732174$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_1 = goog.getMsg("Filtres");
|
|
10149
10307
|
i18n_0 = MSG_EXTERNAL_5491081266313732174$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_1;
|
|
@@ -10314,7 +10472,7 @@ RecipeFiltersComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeFiltersCompo
|
|
|
10314
10472
|
encapsulation: ViewEncapsulation.None,
|
|
10315
10473
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
10316
10474
|
}]
|
|
10317
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }, { type:
|
|
10475
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i8.MediaMatcher }, { type: UserService }, { type: ContextService }, { type: RecipesService }]; }, { filters: [{
|
|
10318
10476
|
type: Input
|
|
10319
10477
|
}], filterToRemove: [{
|
|
10320
10478
|
type: Input
|
|
@@ -11152,13 +11310,13 @@ class SponsorPictureBlockComponent {
|
|
|
11152
11310
|
constructor() { }
|
|
11153
11311
|
}
|
|
11154
11312
|
SponsorPictureBlockComponent.ɵfac = function SponsorPictureBlockComponent_Factory(t) { return new (t || SponsorPictureBlockComponent)(); };
|
|
11155
|
-
SponsorPictureBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorPictureBlockComponent, selectors: [["ng-miam-sponsor-picture-block"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 2, vars:
|
|
11313
|
+
SponsorPictureBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorPictureBlockComponent, selectors: [["ng-miam-sponsor-picture-block"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 2, vars: 2, consts: [[1, "sponsor-picture-block"], [1, "sponsor-picture-block__picture", 3, "src", "alt"]], template: function SponsorPictureBlockComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11156
11314
|
i0.ɵɵelementStart(0, "div", 0);
|
|
11157
11315
|
i0.ɵɵelement(1, "img", 1);
|
|
11158
11316
|
i0.ɵɵelementEnd();
|
|
11159
11317
|
} if (rf & 2) {
|
|
11160
11318
|
i0.ɵɵadvance(1);
|
|
11161
|
-
i0.ɵɵproperty("src", ctx.sponsorBlock.pictureUrl, i0.ɵɵsanitizeUrl);
|
|
11319
|
+
i0.ɵɵproperty("src", ctx.sponsorBlock.pictureUrl, i0.ɵɵsanitizeUrl)("alt", ctx.sponsorBlock.content || "Image sponsor");
|
|
11162
11320
|
} }, styles: [".sponsor-picture-block[_ngcontent-%COMP%]{width:100%;aspect-ratio:16/9}.sponsor-picture-block[_ngcontent-%COMP%] .sponsor-picture-block__picture[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}"] });
|
|
11163
11321
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SponsorPictureBlockComponent, [{
|
|
11164
11322
|
type: Component,
|
|
@@ -11175,13 +11333,13 @@ class SponsorSmallPictureBlockComponent {
|
|
|
11175
11333
|
constructor() { }
|
|
11176
11334
|
}
|
|
11177
11335
|
SponsorSmallPictureBlockComponent.ɵfac = function SponsorSmallPictureBlockComponent_Factory(t) { return new (t || SponsorSmallPictureBlockComponent)(); };
|
|
11178
|
-
SponsorSmallPictureBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorSmallPictureBlockComponent, selectors: [["ng-miam-sponsor-small-picture-block"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 2, vars:
|
|
11336
|
+
SponsorSmallPictureBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorSmallPictureBlockComponent, selectors: [["ng-miam-sponsor-small-picture-block"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 2, vars: 2, consts: [[1, "sponsor-small-picture-block"], [1, "sponsor-small-picture-block__picture", 3, "src", "alt"]], template: function SponsorSmallPictureBlockComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11179
11337
|
i0.ɵɵelementStart(0, "div", 0);
|
|
11180
11338
|
i0.ɵɵelement(1, "img", 1);
|
|
11181
11339
|
i0.ɵɵelementEnd();
|
|
11182
11340
|
} if (rf & 2) {
|
|
11183
11341
|
i0.ɵɵadvance(1);
|
|
11184
|
-
i0.ɵɵproperty("src", ctx.sponsorBlock.pictureUrl, i0.ɵɵsanitizeUrl);
|
|
11342
|
+
i0.ɵɵproperty("src", ctx.sponsorBlock.pictureUrl, i0.ɵɵsanitizeUrl)("alt", ctx.sponsorBlock.content || "Image sponsor");
|
|
11185
11343
|
} }, styles: [".sponsor-small-picture-block[_ngcontent-%COMP%]{width:100%;aspect-ratio:16/9}.sponsor-small-picture-block[_ngcontent-%COMP%] .sponsor-small-picture-block__picture[_ngcontent-%COMP%]{width:100%;height:100%;-o-object-fit:cover;object-fit:cover;display:block}"] });
|
|
11186
11344
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SponsorSmallPictureBlockComponent, [{
|
|
11187
11345
|
type: Component,
|
|
@@ -11229,7 +11387,7 @@ class SponsorImageAndTextBlockComponent {
|
|
|
11229
11387
|
constructor() { }
|
|
11230
11388
|
}
|
|
11231
11389
|
SponsorImageAndTextBlockComponent.ɵfac = function SponsorImageAndTextBlockComponent_Factory(t) { return new (t || SponsorImageAndTextBlockComponent)(); };
|
|
11232
|
-
SponsorImageAndTextBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorImageAndTextBlockComponent, selectors: [["ng-miam-sponsor-image-and-text-block"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 4, vars:
|
|
11390
|
+
SponsorImageAndTextBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorImageAndTextBlockComponent, selectors: [["ng-miam-sponsor-image-and-text-block"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 4, vars: 8, consts: [[1, "sponsor-image-and-text-block"], [1, "sponsor-image-and-text-block__image", 3, "src", "alt"], [1, "sponsor-image-and-text-block__text", 3, "ngStyle"]], template: function SponsorImageAndTextBlockComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11233
11391
|
i0.ɵɵelementStart(0, "div", 0);
|
|
11234
11392
|
i0.ɵɵelement(1, "img", 1);
|
|
11235
11393
|
i0.ɵɵelementStart(2, "span", 2);
|
|
@@ -11238,9 +11396,9 @@ SponsorImageAndTextBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Sponsor
|
|
|
11238
11396
|
i0.ɵɵelementEnd();
|
|
11239
11397
|
} if (rf & 2) {
|
|
11240
11398
|
i0.ɵɵadvance(1);
|
|
11241
|
-
i0.ɵɵproperty("src", ctx.sponsorBlock.pictureUrl, i0.ɵɵsanitizeUrl);
|
|
11399
|
+
i0.ɵɵproperty("src", ctx.sponsorBlock.pictureUrl, i0.ɵɵsanitizeUrl)("alt", ctx.sponsorBlock.content || "Image sponsor");
|
|
11242
11400
|
i0.ɵɵadvance(1);
|
|
11243
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(
|
|
11401
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(4, _c0$c, ctx.sponsorBlock.backgroundColor || "#FFFFFF", ctx.sponsorBlock.fontSize || 16, ctx.sponsorBlock.fontColor || "#000000"));
|
|
11244
11402
|
i0.ɵɵadvance(1);
|
|
11245
11403
|
i0.ɵɵtextInterpolate1(" ", ctx.sponsorBlock.content, " ");
|
|
11246
11404
|
} }, directives: [i2.NgStyle], styles: [".sponsor-image-and-text-block[_ngcontent-%COMP%]{width:100%;aspect-ratio:21/9;display:flex;justify-content:center;align-items:center}.sponsor-image-and-text-block[_ngcontent-%COMP%] .sponsor-image-and-text-block__image[_ngcontent-%COMP%]{width:60%;height:100%;-o-object-fit:cover;object-fit:cover}.sponsor-image-and-text-block[_ngcontent-%COMP%] .sponsor-image-and-text-block__text[_ngcontent-%COMP%]{margin-left:-10%;right:0;width:50%;max-width:50%;max-height:75%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;background-color:#fff;padding:12px;text-align:center;font-size:16px;line-height:150%}@media (max-width:1023px){.sponsor-image-and-text-block[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content;display:flex;flex-direction:column;align-items:center}.sponsor-image-and-text-block[_ngcontent-%COMP%] .sponsor-image-and-text-block__image[_ngcontent-%COMP%]{width:100%;aspect-ratio:4/3;-o-object-fit:cover;object-fit:cover}.sponsor-image-and-text-block[_ngcontent-%COMP%] .sponsor-image-and-text-block__text[_ngcontent-%COMP%]{width:100%;max-width:100%;max-height:unset;padding:12px;text-align:justify;font-size:16px;line-height:150%;margin-left:unset}}"] });
|
|
@@ -11260,7 +11418,7 @@ class SponsorTextAndImageBlockComponent {
|
|
|
11260
11418
|
constructor() { }
|
|
11261
11419
|
}
|
|
11262
11420
|
SponsorTextAndImageBlockComponent.ɵfac = function SponsorTextAndImageBlockComponent_Factory(t) { return new (t || SponsorTextAndImageBlockComponent)(); };
|
|
11263
|
-
SponsorTextAndImageBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorTextAndImageBlockComponent, selectors: [["ng-miam-sponsor-text-and-image-block"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 4, vars:
|
|
11421
|
+
SponsorTextAndImageBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorTextAndImageBlockComponent, selectors: [["ng-miam-sponsor-text-and-image-block"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 4, vars: 8, consts: [[1, "sponsor-text-and-image-block"], [1, "sponsor-text-and-image-block__text", 3, "ngStyle"], [1, "sponsor-text-and-image-block__image", 3, "src", "alt"]], template: function SponsorTextAndImageBlockComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11264
11422
|
i0.ɵɵelementStart(0, "div", 0);
|
|
11265
11423
|
i0.ɵɵelementStart(1, "span", 1);
|
|
11266
11424
|
i0.ɵɵtext(2);
|
|
@@ -11269,11 +11427,11 @@ SponsorTextAndImageBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: Sponsor
|
|
|
11269
11427
|
i0.ɵɵelementEnd();
|
|
11270
11428
|
} if (rf & 2) {
|
|
11271
11429
|
i0.ɵɵadvance(1);
|
|
11272
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(
|
|
11430
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction3(4, _c0$b, ctx.sponsorBlock.backgroundColor || "#FFFFFF", ctx.sponsorBlock.fontSize || 16, ctx.sponsorBlock.fontColor || "#000000"));
|
|
11273
11431
|
i0.ɵɵadvance(1);
|
|
11274
11432
|
i0.ɵɵtextInterpolate1(" ", ctx.sponsorBlock.content, " ");
|
|
11275
11433
|
i0.ɵɵadvance(1);
|
|
11276
|
-
i0.ɵɵproperty("src", ctx.sponsorBlock.pictureUrl, i0.ɵɵsanitizeUrl);
|
|
11434
|
+
i0.ɵɵproperty("src", ctx.sponsorBlock.pictureUrl, i0.ɵɵsanitizeUrl)("alt", ctx.sponsorBlock.content || "Image sponsor");
|
|
11277
11435
|
} }, directives: [i2.NgStyle], styles: [".sponsor-text-and-image-block[_ngcontent-%COMP%]{width:100%;aspect-ratio:21/9;display:flex;justify-content:center;align-items:center}.sponsor-text-and-image-block[_ngcontent-%COMP%] .sponsor-text-and-image-block__text[_ngcontent-%COMP%]{right:0;width:50%;max-width:50%;max-height:75%;box-sizing:border-box;overflow:hidden;text-overflow:ellipsis;background-color:#fff;padding:12px;text-align:center;font-size:16px;line-height:150%;z-index:2}.sponsor-text-and-image-block[_ngcontent-%COMP%] .sponsor-text-and-image-block__image[_ngcontent-%COMP%]{margin-left:-10%;width:60%;height:100%;-o-object-fit:cover;object-fit:cover;z-index:1}@media (max-width:1023px){.sponsor-text-and-image-block[_ngcontent-%COMP%]{width:100%;height:-moz-fit-content;height:fit-content;display:flex;flex-direction:column;align-items:center}.sponsor-text-and-image-block[_ngcontent-%COMP%] .sponsor-text-and-image-block__text[_ngcontent-%COMP%]{width:100%;max-width:100%;padding:12px;text-align:justify;font-size:16px;line-height:150%}.sponsor-text-and-image-block[_ngcontent-%COMP%] .sponsor-text-and-image-block__image[_ngcontent-%COMP%]{width:100%;aspect-ratio:4/3;-o-object-fit:cover;object-fit:cover;margin-left:unset}}"] });
|
|
11278
11436
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SponsorTextAndImageBlockComponent, [{
|
|
11279
11437
|
type: Component,
|
|
@@ -11291,14 +11449,14 @@ class SponsorLogoBlockComponent {
|
|
|
11291
11449
|
constructor() { }
|
|
11292
11450
|
}
|
|
11293
11451
|
SponsorLogoBlockComponent.ɵfac = function SponsorLogoBlockComponent_Factory(t) { return new (t || SponsorLogoBlockComponent)(); };
|
|
11294
|
-
SponsorLogoBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorLogoBlockComponent, selectors: [["ng-miam-sponsor-logo-block"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 2, vars:
|
|
11452
|
+
SponsorLogoBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorLogoBlockComponent, selectors: [["ng-miam-sponsor-logo-block"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 2, vars: 5, consts: [[1, "sponsor-logo-block", 3, "ngStyle"], [1, "sponsor-logo-block__logo", 3, "src", "alt"]], template: function SponsorLogoBlockComponent_Template(rf, ctx) { if (rf & 1) {
|
|
11295
11453
|
i0.ɵɵelementStart(0, "div", 0);
|
|
11296
11454
|
i0.ɵɵelement(1, "img", 1);
|
|
11297
11455
|
i0.ɵɵelementEnd();
|
|
11298
11456
|
} if (rf & 2) {
|
|
11299
|
-
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(
|
|
11457
|
+
i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(3, _c0$a, ctx.sponsorBlock.backgroundColor || "#FFFFFF"));
|
|
11300
11458
|
i0.ɵɵadvance(1);
|
|
11301
|
-
i0.ɵɵproperty("src", ctx.sponsorBlock.pictureUrl, i0.ɵɵsanitizeUrl);
|
|
11459
|
+
i0.ɵɵproperty("src", ctx.sponsorBlock.pictureUrl, i0.ɵɵsanitizeUrl)("alt", ctx.sponsorBlock.content || "Logo sponsor");
|
|
11302
11460
|
} }, directives: [i2.NgStyle], styles: [".sponsor-logo-block[_ngcontent-%COMP%]{width:100%;aspect-ratio:10/1;display:flex;align-items:center;justify-content:center}.sponsor-logo-block[_ngcontent-%COMP%] .sponsor-logo-block__logo[_ngcontent-%COMP%]{width:100%;height:100%;box-sizing:border-box;padding:4px;-o-object-fit:contain;object-fit:contain}"] });
|
|
11303
11461
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(SponsorLogoBlockComponent, [{
|
|
11304
11462
|
type: Component,
|
|
@@ -11634,7 +11792,7 @@ ProductCardSkeletonComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ProductCardS
|
|
|
11634
11792
|
i0.ɵɵproperty("theme", i0.ɵɵpureFunction0(14, _c5$2));
|
|
11635
11793
|
i0.ɵɵadvance(1);
|
|
11636
11794
|
i0.ɵɵproperty("theme", i0.ɵɵpureFunction0(15, _c5$2));
|
|
11637
|
-
} }, directives: [SkeletonComponent], styles: [".miam-product-card__container{display:flex;flex-direction:column;box-sizing:border-box;height:100%;border-radius:8px;overflow:hidden;border:1px solid var(--miam-ds-color-primary-100,#e4eaec);background:var(--miam-ds-color-primary-text,#fff);transition:all .3s;position:relative}.miam-product-card__container.added{border:1px solid var(--miam-ds-color-primary,#24748f);background:var(--miam-ds-color-primary-text,#fff)}.miam-product-card__container .miam-product-card__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:8px;color:var(--miam-ds-color-neutral-black,#0f191f);background:var(--miam-ds-color-primary-100,#e4eaec);transition:all .3s}.miam-product-card__container .miam-product-card__header.added{background:var(--miam-ds-color-primary,#24748f);color:var(--core-background-background-primary,#fff)}.miam-product-card__container .miam-product-card__header.disabled{background:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__header.unavailable{background-color:var(--miam-ds-color-neutral-50,#f7f8f9)}.miam-product-card__container .miam-product-card__header .miam-product-card__header-quantity{text-align:right}.miam-product-card__container .miam-product-card__content{padding:12px;height:100%;display:flex;gap:8px;flex-direction:column;background-color:var(--miam-ds-color-neutral-white,#fff);transition:background-color .3s}.miam-product-card__container .miam-product-card__content.disabled,.miam-product-card__container .miam-product-card__content.unavailable{justify-content:center;align-items:center;padding:12px;text-align:center}.miam-product-card__container .miam-product-card__content.disabled{background-color:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__content.unavailable{background-color:var(--miam-ds-color-neutral-50,#f7f8f9)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;height:100%;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__picture{height:120px;width:120px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details{font-size:14px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-brand{text-transform:uppercase;line-height:24px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-price-per-unit{font-size:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__link{font-size:14px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action{display:flex;align-items:center;justify-content:space-between;gap:8px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta{display:flex;align-items:center;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.square{padding:8px;height:40px;width:40px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-product-card__loading-button{padding:14px}@media (max-width:1024px){.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.primary:hover:not(:disabled){background-color:var(--miam-ds-color-primary)}}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__price{color:var(--miam-ds-color-neutral-black,#0f191f);line-height:0}.miam-product-card__container .miam-product-card__content .miam-product-card__footer__actions{display:flex;align-items:center;justify-content:center;gap:28px}.miam-product-card__container .miam-product-card__content .miam-ds-avatar{height:64px;width:64px}.miam-product-card__container .miam-product-card__content .miam-ds-badge.warning{display:inline-flex}.miam-product-card__container .miam-product-card__content .miam-ds-badge.warning img{margin-right:4px}.miam-product-card__container .miam-product-card__disabled-text{color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-product-card__container .miam-product-card__footer{display:flex;flex-direction:column;align-items:center;background:var(--miam-ds-color-primary-50,#f0f3f4);padding:8px}.miam-product-card__container .miam-product-card__footer .light-text{color:var(--miam-ds-color-neutral-black,#0f191f);opacity:.5}", ".miam-skeleton-loader{box-sizing:border-box;overflow:hidden;position:relative;background:var(--miam-color-skeleton,#f7f7f7) no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.miam-skeleton-loader:after,.miam-skeleton-loader:before{box-sizing:border-box}.miam-skeleton-loader.circle{width:40px;height:40px;border-radius:50%}.miam-skeleton-loader.pulse{animation:pulse 1.5s cubic-bezier(.6,0,.4,1) infinite;animation-delay:.5s}@media (min-width:1023px){.miam-skeleton-loader{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:wait}}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.miam-product-card__container.skeleton .miam-product-card__header{background:var(--miam-color-skeleton,#f7f7f7);height:auto}.miam-product-card__container.skeleton .miam-product-card__header .miam-product-card__header-name:before{content:\"\";display:inline-block}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product{display:flex}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product>*{margin-right:12px}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{flex:1}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details{height:auto}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-fullname,.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-price-per-unit{width:100%}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__lower-action{display:flex;justify-content:space-between;align-items:center}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__lower-action .miam-skeleton-loader.pulse{margin-bottom:0}"], encapsulation: 2, changeDetection: 0 });
|
|
11795
|
+
} }, directives: [SkeletonComponent], styles: [".miam-product-card__container{display:flex;flex-direction:column;box-sizing:border-box;height:100%;border-radius:8px;overflow:hidden;border:1px solid var(--miam-ds-color-primary-100,#e4eaec);background:var(--miam-ds-color-primary-text,#fff);transition:all .3s;position:relative}.miam-product-card__container.added{border:1px solid var(--miam-ds-color-primary,#24748f);background:var(--miam-ds-color-primary-text,#fff)}.miam-product-card__container .miam-product-card__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:8px;color:var(--miam-ds-color-neutral-black,#0f191f);background:var(--miam-ds-color-primary-100,#e4eaec);transition:all .3s}.miam-product-card__container .miam-product-card__header.added{background:var(--miam-ds-color-primary,#24748f);color:var(--core-background-background-primary,#fff)}.miam-product-card__container .miam-product-card__header.disabled{background:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__header.unavailable{background-color:var(--miam-ds-color-neutral-50,#f7f8f9)}.miam-product-card__container .miam-product-card__header .miam-product-card__header-quantity{text-align:right}.miam-product-card__container .miam-product-card__content{padding:12px;height:100%;display:flex;gap:8px;flex-direction:column;background-color:var(--miam-ds-color-neutral-white,#fff);transition:background-color .3s}.miam-product-card__container .miam-product-card__content.disabled,.miam-product-card__container .miam-product-card__content.unavailable{justify-content:center;align-items:center;padding:12px;text-align:center}.miam-product-card__container .miam-product-card__content.disabled{background-color:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__content.unavailable{background-color:var(--miam-ds-color-neutral-50,#f7f8f9)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;height:100%;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__picture{height:120px;width:120px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details{font-size:14px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-brand{text-transform:uppercase;line-height:24px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-price-per-unit{font-size:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__link{font-size:14px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta{display:flex;align-items:center;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.square{padding:8px;height:40px;width:40px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-product-card__loading-button{padding:14px}@media (max-width:1024px){.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.primary:hover:not(:disabled){background-color:var(--miam-ds-color-primary)}}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__price{color:var(--miam-ds-color-neutral-black,#0f191f);line-height:0}.miam-product-card__container .miam-product-card__content .miam-product-card__footer__actions{display:flex;align-items:center;justify-content:center;gap:28px}.miam-product-card__container .miam-product-card__content .miam-ds-avatar{height:64px;width:64px}.miam-product-card__container .miam-product-card__content .miam-ds-badge.warning{display:inline-flex}.miam-product-card__container .miam-product-card__content .miam-ds-badge.warning img{margin-right:4px}.miam-product-card__container .miam-product-card__disabled-text{color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-product-card__container .miam-product-card__footer{display:flex;flex-direction:column;align-items:center;background:var(--miam-ds-color-primary-50,#f0f3f4);padding:8px}.miam-product-card__container .miam-product-card__footer .light-text{color:var(--miam-ds-color-neutral-black,#0f191f);opacity:.5}", ".miam-skeleton-loader{box-sizing:border-box;overflow:hidden;position:relative;background:var(--miam-color-skeleton,#f7f7f7) no-repeat;border-radius:4px;width:100%;height:20px;display:inline-block;margin-bottom:10px;will-change:transform}.miam-skeleton-loader:after,.miam-skeleton-loader:before{box-sizing:border-box}.miam-skeleton-loader.circle{width:40px;height:40px;border-radius:50%}.miam-skeleton-loader.pulse{animation:pulse 1.5s cubic-bezier(.6,0,.4,1) infinite;animation-delay:.5s}@media (min-width:1023px){.miam-skeleton-loader{-webkit-user-select:none;-moz-user-select:none;user-select:none;cursor:wait}}@keyframes pulse{0%{opacity:1}50%{opacity:.4}to{opacity:1}}.miam-product-card__container.skeleton .miam-product-card__header{background:var(--miam-color-skeleton,#f7f7f7);height:auto}.miam-product-card__container.skeleton .miam-product-card__header .miam-product-card__header-name:before{content:\"\";display:inline-block}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product{display:flex}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product>*{margin-right:12px}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{flex:1}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details{height:auto}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-fullname,.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-price-per-unit{width:100%}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__lower-action{display:flex;justify-content:space-between;align-items:center;width:100%}.miam-product-card__container.skeleton .miam-product-card__content .miam-product-card__lower-action .miam-skeleton-loader.pulse{margin-bottom:0}"], encapsulation: 2, changeDetection: 0 });
|
|
11638
11796
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProductCardSkeletonComponent, [{
|
|
11639
11797
|
type: Component,
|
|
11640
11798
|
args: [{
|
|
@@ -11665,12 +11823,19 @@ class AddIngredientAction extends BasketAction {
|
|
|
11665
11823
|
}
|
|
11666
11824
|
|
|
11667
11825
|
class OutOfStockOverlayComponent {
|
|
11668
|
-
constructor() {
|
|
11826
|
+
constructor(elementRef) {
|
|
11827
|
+
this.elementRef = elementRef;
|
|
11669
11828
|
this.replacedClicked = new EventEmitter();
|
|
11670
11829
|
}
|
|
11830
|
+
ngOnChanges() {
|
|
11831
|
+
const element = this.elementRef.nativeElement.children[0];
|
|
11832
|
+
if (element) {
|
|
11833
|
+
element.style.top = this.headerHeight + 'px';
|
|
11834
|
+
}
|
|
11835
|
+
}
|
|
11671
11836
|
}
|
|
11672
|
-
OutOfStockOverlayComponent.ɵfac = function OutOfStockOverlayComponent_Factory(t) { return new (t || OutOfStockOverlayComponent)(); };
|
|
11673
|
-
OutOfStockOverlayComponent.ɵcmp = i0.ɵɵdefineComponent({ type: OutOfStockOverlayComponent, selectors: [["ng-miam-out-of-stock-overlay"]], outputs: { replacedClicked: "replacedClicked" }, decls: 6, vars: 0, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
11837
|
+
OutOfStockOverlayComponent.ɵfac = function OutOfStockOverlayComponent_Factory(t) { return new (t || OutOfStockOverlayComponent)(i0.ɵɵdirectiveInject(i0.ElementRef)); };
|
|
11838
|
+
OutOfStockOverlayComponent.ɵcmp = i0.ɵɵdefineComponent({ type: OutOfStockOverlayComponent, selectors: [["ng-miam-out-of-stock-overlay"]], inputs: { headerHeight: "headerHeight" }, outputs: { replacedClicked: "replacedClicked" }, features: [i0.ɵɵNgOnChangesFeature], decls: 6, vars: 0, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
11674
11839
|
const MSG_EXTERNAL_4705093661060921903$$LIB__COMPONENTS_PRODUCT_CARD_OUT_OF_STOCK_OVERLAY_OUT_OF_STOCK_OVERLAY_COMPONENT_TS_1 = goog.getMsg("Remplacer");
|
|
11675
11840
|
i18n_0 = MSG_EXTERNAL_4705093661060921903$$LIB__COMPONENTS_PRODUCT_CARD_OUT_OF_STOCK_OVERLAY_OUT_OF_STOCK_OVERLAY_COMPONENT_TS_1;
|
|
11676
11841
|
}
|
|
@@ -11697,7 +11862,9 @@ OutOfStockOverlayComponent.ɵcmp = i0.ɵɵdefineComponent({ type: OutOfStockOver
|
|
|
11697
11862
|
encapsulation: ViewEncapsulation.None,
|
|
11698
11863
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
11699
11864
|
}]
|
|
11700
|
-
}],
|
|
11865
|
+
}], function () { return [{ type: i0.ElementRef }]; }, { headerHeight: [{
|
|
11866
|
+
type: Input
|
|
11867
|
+
}], replacedClicked: [{
|
|
11701
11868
|
type: Output
|
|
11702
11869
|
}] }); })();
|
|
11703
11870
|
|
|
@@ -11757,6 +11924,9 @@ function ProductCardComponent_div_0_ng_miam_out_of_stock_overlay_1_Template(rf,
|
|
|
11757
11924
|
i0.ɵɵelementStart(0, "ng-miam-out-of-stock-overlay", 10);
|
|
11758
11925
|
i0.ɵɵlistener("replacedClicked", function ProductCardComponent_div_0_ng_miam_out_of_stock_overlay_1_Template_ng_miam_out_of_stock_overlay_replacedClicked_0_listener() { i0.ɵɵrestoreView(_r7); const ctx_r6 = i0.ɵɵnextContext(2); return ctx_r6.replaceProduct(true); });
|
|
11759
11926
|
i0.ɵɵelementEnd();
|
|
11927
|
+
} if (rf & 2) {
|
|
11928
|
+
const ctx_r1 = i0.ɵɵnextContext(2);
|
|
11929
|
+
i0.ɵɵproperty("headerHeight", ctx_r1.headerHeight);
|
|
11760
11930
|
} }
|
|
11761
11931
|
function ProductCardComponent_div_0_ng_container_12_ng_container_16_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
11762
11932
|
const _r14 = i0.ɵɵgetCurrentView();
|
|
@@ -11853,6 +12023,7 @@ function ProductCardComponent_div_0_ng_container_12_Template(rf, ctx) { if (rf &
|
|
|
11853
12023
|
i0.ɵɵadvance(1);
|
|
11854
12024
|
i0.ɵɵproperty("priceData", ctx_r2.product.price);
|
|
11855
12025
|
i0.ɵɵadvance(3);
|
|
12026
|
+
i0.ɵɵpropertyInterpolate("alt", ctx_r2.product.basketEntry.selectedItem.attributes.name);
|
|
11856
12027
|
i0.ɵɵproperty("src", ctx_r2.product.basketEntry.selectedItem.attributes.image, i0.ɵɵsanitizeUrl);
|
|
11857
12028
|
i0.ɵɵadvance(3);
|
|
11858
12029
|
i0.ɵɵtextInterpolate1(" ", ctx_r2.product.basketEntry.selectedItem.attributes.brand, " ");
|
|
@@ -11861,7 +12032,7 @@ function ProductCardComponent_div_0_ng_container_12_Template(rf, ctx) { if (rf &
|
|
|
11861
12032
|
i0.ɵɵadvance(1);
|
|
11862
12033
|
i0.ɵɵproperty("isSponsored", ctx_r2.isSponsored)("item", ctx_r2.product.basketEntry.selectedItem)("price", ctx_r2.product.price);
|
|
11863
12034
|
i0.ɵɵadvance(2);
|
|
11864
|
-
i0.ɵɵproperty("oldPrice", i0.ɵɵpipeBind2(13,
|
|
12035
|
+
i0.ɵɵproperty("oldPrice", i0.ɵɵpipeBind2(13, 13, ctx_r2.priceService.getOldPrice(ctx_r2.product.price), ctx_r2.product.basketEntry.selectedItem.attributes.currency))("price", i0.ɵɵpipeBind2(14, 16, ctx_r2.priceService.getCurrentPrice(ctx_r2.product.price), ctx_r2.product.basketEntry.selectedItem.attributes.currency));
|
|
11865
12036
|
i0.ɵɵadvance(4);
|
|
11866
12037
|
i0.ɵɵproperty("ngIf", ctx_r2.product.basketEntry.status === "initial" || ctx_r2.product.basketEntry.status === "out_of_stock");
|
|
11867
12038
|
i0.ɵɵadvance(1);
|
|
@@ -11939,7 +12110,7 @@ const _c18$1 = function (a0) { return { "miam-product-card__disabled-text": a0 }
|
|
|
11939
12110
|
const _c19 = function (a0, a1) { return { "disabled": a0, "unavailable": a1 }; };
|
|
11940
12111
|
function ProductCardComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
11941
12112
|
i0.ɵɵelementStart(0, "div", 1);
|
|
11942
|
-
i0.ɵɵtemplate(1, ProductCardComponent_div_0_ng_miam_out_of_stock_overlay_1_Template, 1,
|
|
12113
|
+
i0.ɵɵtemplate(1, ProductCardComponent_div_0_ng_miam_out_of_stock_overlay_1_Template, 1, 1, "ng-miam-out-of-stock-overlay", 2);
|
|
11943
12114
|
i0.ɵɵelementStart(2, "div", 3);
|
|
11944
12115
|
i0.ɵɵelementStart(3, "span", 4);
|
|
11945
12116
|
i0.ɵɵtext(4);
|
|
@@ -11955,7 +12126,7 @@ function ProductCardComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
11955
12126
|
i0.ɵɵelementEnd();
|
|
11956
12127
|
i0.ɵɵelementEnd();
|
|
11957
12128
|
i0.ɵɵelementStart(11, "div", 6);
|
|
11958
|
-
i0.ɵɵtemplate(12, ProductCardComponent_div_0_ng_container_12_Template, 23,
|
|
12129
|
+
i0.ɵɵtemplate(12, ProductCardComponent_div_0_ng_container_12_Template, 23, 19, "ng-container", 7);
|
|
11959
12130
|
i0.ɵɵelementEnd();
|
|
11960
12131
|
i0.ɵɵtemplate(13, ProductCardComponent_div_0_ng_template_13_Template, 2, 2, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor);
|
|
11961
12132
|
i0.ɵɵtemplate(15, ProductCardComponent_div_0_div_15_Template, 8, 1, "div", 9);
|
|
@@ -12022,6 +12193,7 @@ class ProductCardComponent extends EventTracerComponent {
|
|
|
12022
12193
|
}
|
|
12023
12194
|
ngOnInit() {
|
|
12024
12195
|
this.subscriptions.push(this.recipeDetailsService.productsByCategory$.subscribe(() => this.isProductSponsored()), this.executeActionFromStorage(), this.loadOnRecipesActions(), this.loadOnIngredientsUpdate(), this.updateIngredientQuantityOnRecipeChange(), this.productIsBeingAdded(), this.scrollBackOnProductReplaced());
|
|
12196
|
+
this.getHeaderHeight();
|
|
12025
12197
|
}
|
|
12026
12198
|
ngOnDestroy() {
|
|
12027
12199
|
var _a;
|
|
@@ -12096,7 +12268,13 @@ class ProductCardComponent extends EventTracerComponent {
|
|
|
12096
12268
|
searchString: this.searchString
|
|
12097
12269
|
}, this.basketsService);
|
|
12098
12270
|
this.subscriptions.push(merge(addIngredient.onError, addIngredient.onTimeout)
|
|
12099
|
-
.subscribe(() =>
|
|
12271
|
+
.subscribe(() => {
|
|
12272
|
+
this.recipeDetailsService.setProductOutOfStockInSession([{
|
|
12273
|
+
ingredientId: this.product.ingredient.id,
|
|
12274
|
+
entry: this.product.basketEntry
|
|
12275
|
+
}]);
|
|
12276
|
+
this.recipeDetailsService.ingredientToBasketLoading = false;
|
|
12277
|
+
}));
|
|
12100
12278
|
this.basketSynchroService.addToActionList([addIngredient]);
|
|
12101
12279
|
}
|
|
12102
12280
|
}));
|
|
@@ -12177,6 +12355,13 @@ class ProductCardComponent extends EventTracerComponent {
|
|
|
12177
12355
|
this.product.basketEntry.addRelationship(parsedMethod.arguments.entry.relationships['selected-item'].data, 'selected-item');
|
|
12178
12356
|
}
|
|
12179
12357
|
}
|
|
12358
|
+
getHeaderHeight() {
|
|
12359
|
+
const headerElement = this.elementRef.nativeElement.querySelectorAll('.miam-product-card__header');
|
|
12360
|
+
if (headerElement.length === 1) {
|
|
12361
|
+
this.headerHeight = headerElement[0].offsetHeight;
|
|
12362
|
+
this.cdr.detectChanges();
|
|
12363
|
+
}
|
|
12364
|
+
}
|
|
12180
12365
|
}
|
|
12181
12366
|
ProductCardComponent.ɵfac = function ProductCardComponent_Factory(t) { return new (t || ProductCardComponent)(i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(RecipeDetailsService), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(IgnoredIngredientsService), i0.ɵɵdirectiveInject(PendingBasketMethodsService), i0.ɵɵdirectiveInject(i0.ElementRef), i0.ɵɵdirectiveInject(BasketsSynchronizerService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(ProductReplacementService), i0.ɵɵdirectiveInject(PriceService)); };
|
|
12182
12367
|
ProductCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ProductCardComponent, selectors: [["ng-miam-product-card"]], inputs: { product: "product" }, features: [i0.ɵɵInheritDefinitionFeature], decls: 1, vars: 1, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -12227,11 +12412,11 @@ ProductCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ProductCardComponent
|
|
|
12227
12412
|
}
|
|
12228
12413
|
else {
|
|
12229
12414
|
i18n_14 = $localize `:␟f0ee2f84e20252199737bc9757b04e75979cb9fe␟8253051398336962047: repas`;
|
|
12230
|
-
} return [["class", "miam-product-card__container", 3, "ngClass", 4, "ngIf"], [1, "miam-product-card__container", 3, "ngClass"], [3, "replacedClicked", 4, "ngIf"], [1, "miam-product-card__header", 3, "ngClass"], [1, "miam-product-card__header-name", "miam-ds-text", "size-l", "weight-xxl", 3, "ngClass"], [1, "miam-product-card__header-quantity", "miam-ds-text", "size-s", "weight-l", 3, "ngClass"], [1, "miam-product-card__content", 3, "ngClass"], [4, "ngIf", "ngIfElse"], ["disabledProduct", ""], ["class", "miam-product-card__footer", 4, "ngIf"], [3, "replacedClicked"], [3, "priceData"], [1, "miam-product-card__selected-product"], [1, "miam-product-card__picture-column"], [
|
|
12415
|
+
} return [["class", "miam-product-card__container", 3, "ngClass", 4, "ngIf"], [1, "miam-product-card__container", 3, "ngClass"], [3, "headerHeight", "replacedClicked", 4, "ngIf"], [1, "miam-product-card__header", 3, "ngClass"], [1, "miam-product-card__header-name", "miam-ds-text", "size-l", "weight-xxl", 3, "ngClass"], [1, "miam-product-card__header-quantity", "miam-ds-text", "size-s", "weight-l", 3, "ngClass"], [1, "miam-product-card__content", 3, "ngClass"], [4, "ngIf", "ngIfElse"], ["disabledProduct", ""], ["class", "miam-product-card__footer", 4, "ngIf"], [3, "headerHeight", "replacedClicked"], [3, "priceData"], [1, "miam-product-card__selected-product"], [1, "miam-product-card__picture-column"], [1, "miam-product-card__picture", 3, "alt", "src", "error"], [1, "miam-product-card__info-column"], [1, "miam-ds-text", "size-xs", "weight-xl", "miam-product-card__details", "product-brand"], [1, "miam-ds-text", "size-xs", "miam-product-card__details", "product-fullname"], [3, "isSponsored", "item", "price"], [1, "miam-product-card__lower-action"], [1, "miam-product-card__price", "miam-ds-text", "size-m", "weight-xxl", 3, "oldPrice", "price"], [1, "miam-product-card__cta"], [4, "ngIf"], [1, "miam-product-card__footer__actions"], ["class", "miam-ds-button miam-product-card__ignore-product ghost small", 3, "click", 4, "ngIf"], [1, "miam-product-card__replace-product", "miam-ds-button", "ghost", 3, "click"], i18n_0, ["class", "miam-ds-button miam-product-card__add-product square primary", "aria-label", "Ajouter au panier", 3, "disabled", "click", 4, "ngIf"], ["class", "miam-ds-button miam-product-card__loading-button square primary", "aria-label", "Chargement", 4, "ngIf"], ["aria-label", "Ajouter au panier", 1, "miam-ds-button", "miam-product-card__add-product", "square", "primary", 3, "disabled", "click"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], ["aria-label", "Chargement", 1, "miam-ds-button", "miam-product-card__loading-button", "square", "primary"], [1, "miam-ds-loader"], ["minRange", "0", 3, "biColor", "value", "minusLoading", "disable", "debounceTime", "valueChange"], [1, "miam-ds-button", "miam-product-card__ignore-product", "ghost", "small", 3, "click"], [1, "miam-product-card__disabled-text"], i18n_2, [1, "miam-ds-text", "miam-product-card__disabled-text"], i18n_4, [1, "miam-product-card__select-product", "miam-ds-button", "ghost", 3, "click"], i18n_6, ["alt", "Image de l'ingr\u00E9dient", 1, "miam-ds-avatar", 3, "src"], [1, "miam-ds-badge", "warning"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/WarningFill.svg", "alt", "", "aria-hidden", "true"], [1, "miam-ds-text", "size-xs", "weight-l"], i18n_8, [1, "miam-product-card__select-product", "miam-ds-button", "primary", "reverse", "small", 3, "click"], i18n_10, [1, "miam-product-card__footer"], [1, "miam-ds-text", "size-xs", "weight-xl", "light-text"], i18n_12, i18n_14]; }, template: function ProductCardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12231
12416
|
i0.ɵɵtemplate(0, ProductCardComponent_div_0_Template, 16, 30, "div", 0);
|
|
12232
12417
|
} if (rf & 2) {
|
|
12233
12418
|
i0.ɵɵproperty("ngIf", ctx.product.basketEntry);
|
|
12234
|
-
} }, directives: [i2.NgIf, i2.NgClass, OutOfStockOverlayComponent, PromotionBadgeComponent, ProductBadgesComponent, PriceComponent, CounterInputComponent], pipes: [CapitalizeFirstLetterPipe, i2.CurrencyPipe, i2.AsyncPipe], styles: [".miam-product-card__container{display:flex;flex-direction:column;box-sizing:border-box;height:100%;border-radius:8px;overflow:hidden;border:1px solid var(--miam-ds-color-primary-100,#e4eaec);background:var(--miam-ds-color-primary-text,#fff);transition:all .3s;position:relative}.miam-product-card__container.added{border:1px solid var(--miam-ds-color-primary,#24748f);background:var(--miam-ds-color-primary-text,#fff)}.miam-product-card__container .miam-product-card__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:8px;color:var(--miam-ds-color-neutral-black,#0f191f);background:var(--miam-ds-color-primary-100,#e4eaec);transition:all .3s}.miam-product-card__container .miam-product-card__header.added{background:var(--miam-ds-color-primary,#24748f);color:var(--core-background-background-primary,#fff)}.miam-product-card__container .miam-product-card__header.disabled{background:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__header.unavailable{background-color:var(--miam-ds-color-neutral-50,#f7f8f9)}.miam-product-card__container .miam-product-card__header .miam-product-card__header-quantity{text-align:right}.miam-product-card__container .miam-product-card__content{padding:12px;height:100%;display:flex;gap:8px;flex-direction:column;background-color:var(--miam-ds-color-neutral-white,#fff);transition:background-color .3s}.miam-product-card__container .miam-product-card__content.disabled,.miam-product-card__container .miam-product-card__content.unavailable{justify-content:center;align-items:center;padding:12px;text-align:center}.miam-product-card__container .miam-product-card__content.disabled{background-color:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__content.unavailable{background-color:var(--miam-ds-color-neutral-50,#f7f8f9)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;height:100%;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__picture{height:120px;width:120px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details{font-size:14px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-brand{text-transform:uppercase;line-height:24px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-price-per-unit{font-size:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__link{font-size:14px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action{display:flex;align-items:center;justify-content:space-between;gap:8px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta{display:flex;align-items:center;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.square{padding:8px;height:40px;width:40px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-product-card__loading-button{padding:14px}@media (max-width:1024px){.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.primary:hover:not(:disabled){background-color:var(--miam-ds-color-primary)}}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__price{color:var(--miam-ds-color-neutral-black,#0f191f);line-height:0}.miam-product-card__container .miam-product-card__content .miam-product-card__footer__actions{display:flex;align-items:center;justify-content:center;gap:28px}.miam-product-card__container .miam-product-card__content .miam-ds-avatar{height:64px;width:64px}.miam-product-card__container .miam-product-card__content .miam-ds-badge.warning{display:inline-flex}.miam-product-card__container .miam-product-card__content .miam-ds-badge.warning img{margin-right:4px}.miam-product-card__container .miam-product-card__disabled-text{color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-product-card__container .miam-product-card__footer{display:flex;flex-direction:column;align-items:center;background:var(--miam-ds-color-primary-50,#f0f3f4);padding:8px}.miam-product-card__container .miam-product-card__footer .light-text{color:var(--miam-ds-color-neutral-black,#0f191f);opacity:.5}"], encapsulation: 2, changeDetection: 0 });
|
|
12419
|
+
} }, directives: [i2.NgIf, i2.NgClass, OutOfStockOverlayComponent, PromotionBadgeComponent, ProductBadgesComponent, PriceComponent, CounterInputComponent], pipes: [CapitalizeFirstLetterPipe, i2.CurrencyPipe, i2.AsyncPipe], styles: [".miam-product-card__container{display:flex;flex-direction:column;box-sizing:border-box;height:100%;border-radius:8px;overflow:hidden;border:1px solid var(--miam-ds-color-primary-100,#e4eaec);background:var(--miam-ds-color-primary-text,#fff);transition:all .3s;position:relative}.miam-product-card__container.added{border:1px solid var(--miam-ds-color-primary,#24748f);background:var(--miam-ds-color-primary-text,#fff)}.miam-product-card__container .miam-product-card__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:8px;color:var(--miam-ds-color-neutral-black,#0f191f);background:var(--miam-ds-color-primary-100,#e4eaec);transition:all .3s}.miam-product-card__container .miam-product-card__header.added{background:var(--miam-ds-color-primary,#24748f);color:var(--core-background-background-primary,#fff)}.miam-product-card__container .miam-product-card__header.disabled{background:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__header.unavailable{background-color:var(--miam-ds-color-neutral-50,#f7f8f9)}.miam-product-card__container .miam-product-card__header .miam-product-card__header-quantity{text-align:right}.miam-product-card__container .miam-product-card__content{padding:12px;height:100%;display:flex;gap:8px;flex-direction:column;background-color:var(--miam-ds-color-neutral-white,#fff);transition:background-color .3s}.miam-product-card__container .miam-product-card__content.disabled,.miam-product-card__container .miam-product-card__content.unavailable{justify-content:center;align-items:center;padding:12px;text-align:center}.miam-product-card__container .miam-product-card__content.disabled{background-color:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__content.unavailable{background-color:var(--miam-ds-color-neutral-50,#f7f8f9)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{display:flex;flex-direction:row;justify-content:flex-start;align-items:center;height:100%;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__picture{height:120px;width:120px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details{font-size:14px;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-brand{text-transform:uppercase;line-height:24px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-price-per-unit{font-size:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__link{font-size:14px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta{display:flex;align-items:center;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.square{padding:8px;height:40px;width:40px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-product-card__loading-button{padding:14px}@media (max-width:1024px){.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.primary:hover:not(:disabled){background-color:var(--miam-ds-color-primary)}}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__price{color:var(--miam-ds-color-neutral-black,#0f191f);line-height:0}.miam-product-card__container .miam-product-card__content .miam-product-card__footer__actions{display:flex;align-items:center;justify-content:center;gap:28px}.miam-product-card__container .miam-product-card__content .miam-ds-avatar{height:64px;width:64px}.miam-product-card__container .miam-product-card__content .miam-ds-badge.warning{display:inline-flex}.miam-product-card__container .miam-product-card__content .miam-ds-badge.warning img{margin-right:4px}.miam-product-card__container .miam-product-card__disabled-text{color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-product-card__container .miam-product-card__footer{display:flex;flex-direction:column;align-items:center;background:var(--miam-ds-color-primary-50,#f0f3f4);padding:8px}.miam-product-card__container .miam-product-card__footer .light-text{color:var(--miam-ds-color-neutral-black,#0f191f);opacity:.5}"], encapsulation: 2, changeDetection: 0 });
|
|
12235
12420
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(ProductCardComponent, [{
|
|
12236
12421
|
type: Component,
|
|
12237
12422
|
args: [{
|
|
@@ -12509,7 +12694,7 @@ ProductsPickerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ProductsPickerCom
|
|
|
12509
12694
|
}
|
|
12510
12695
|
else {
|
|
12511
12696
|
i18n_12 = $localize `:␟f363139a8ec757d4ac80573845002c3e462c4bca␟2791054456946858131:L'abus d'alcool est dangereux pour la santé. A consommer avec modération. Vente interdite aux mineurs.`;
|
|
12512
|
-
} return [[1, "miam-products-picker__container"], [1, "miam-products-picker__header"], [1, "miam-products-picker__header-text", "miam-ds-text", "weight-xxl"], [4, "ngIf"], ["class", "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "debounceTime", "valueChange", 4, "ngIf"], ["class", "miam-products-picker__list", 4, "ngIf"], [1, "miam-products-picker__secondary-list"], [1, "miam-products-picker__more"], ["class", "miam-products-picker__more-anchor", 3, "href", "click", 4, "ngIf", "ngIfElse"], ["noAnchor", ""], ["class", "miam-products-picker__legal-notices", 4, "ngIf"], [3, "numberUnavailable", "clicked", 4, "ngIf"], i18n_0, i18n_2, [3, "numberUnavailable", "clicked"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "debounceTime", "valueChange"], [1, "miam-products-picker__list"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "miam-products-picker__items", 3, "id", "product", "originTrace", 4, "ngIf"], [1, "miam-products-picker__items", 3, "id", "product", "originTrace"], [1, "miam-products-picker__often-ignored-list", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-ds-text", "weight-xxl"], i18n_4, ["class", "miam-products-picker__items", 3, "id", "product", "originTrace", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-products-picker__more-anchor", 3, "href", "click"], [1, "miam-products-picker__go-to-catalog-button", "miam-ds-button", "secondary"], i18n_6, [1, "miam-products-picker__close-modal-button", "miam-ds-button", "secondary", 3, "click"], i18n_8, [1, "miam-products-picker__legal-notices"], [1, "miam-ds-text", "weight-xxl", "miam-products-picker__legal-notices-header"], i18n_10, [1, "miam-products-picker__legal-notices-content"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-legal-notices.svg"], i18n_12]; }, template: function ProductsPickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12697
|
+
} return [[1, "miam-products-picker__container"], [1, "miam-products-picker__header"], [1, "miam-products-picker__header-text", "miam-ds-text", "weight-xxl"], [4, "ngIf"], ["class", "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "debounceTime", "valueChange", 4, "ngIf"], ["class", "miam-products-picker__list", 4, "ngIf"], [1, "miam-products-picker__secondary-list"], [1, "miam-products-picker__more"], ["class", "miam-products-picker__more-anchor", 3, "href", "click", 4, "ngIf", "ngIfElse"], ["noAnchor", ""], ["class", "miam-products-picker__legal-notices", 4, "ngIf"], [3, "numberUnavailable", "clicked", 4, "ngIf"], i18n_0, i18n_2, [3, "numberUnavailable", "clicked"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "debounceTime", "valueChange"], [1, "miam-products-picker__list"], [4, "ngFor", "ngForOf", "ngForTrackBy"], ["class", "miam-products-picker__items", 3, "id", "product", "originTrace", 4, "ngIf"], [1, "miam-products-picker__items", 3, "id", "product", "originTrace"], [1, "miam-products-picker__often-ignored-list", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-ds-text", "weight-xxl"], i18n_4, ["class", "miam-products-picker__items", 3, "id", "product", "originTrace", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-products-picker__more-anchor", 3, "href", "click"], [1, "miam-products-picker__go-to-catalog-button", "miam-ds-button", "secondary"], i18n_6, [1, "miam-products-picker__close-modal-button", "miam-ds-button", "secondary", 3, "click"], i18n_8, [1, "miam-products-picker__legal-notices"], [1, "miam-ds-text", "weight-xxl", "miam-products-picker__legal-notices-header"], i18n_10, [1, "miam-products-picker__legal-notices-content"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-legal-notices.svg", "alt", "", "aria-hidden", "true"], i18n_12]; }, template: function ProductsPickerComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12513
12698
|
i0.ɵɵelementStart(0, "div", 0);
|
|
12514
12699
|
i0.ɵɵelementStart(1, "div", 1);
|
|
12515
12700
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -12627,7 +12812,7 @@ NoPosSelectedComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NoPosSelectedCompo
|
|
|
12627
12812
|
}
|
|
12628
12813
|
else {
|
|
12629
12814
|
i18n_8 = $localize `:␟88974623a3e9dc18bb91128257de4e5f0c5c2303␟1950335304622346416: Vous devez sélectionner un magasin pour visualiser les produits de cette recette `;
|
|
12630
|
-
} return [[1, "miam-no-pos-selected"], [4, "ngIf", "ngIfElse"], ["noPos", ""], [1, "miam-ds-button", "miam-no-pos-selected__select-pos-button", "primary", 3, "click"], i18n_0, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/product-issue.png", "alt", "
|
|
12815
|
+
} return [[1, "miam-no-pos-selected"], [4, "ngIf", "ngIfElse"], ["noPos", ""], [1, "miam-ds-button", "miam-no-pos-selected__select-pos-button", "primary", 3, "click"], i18n_0, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/product-issue.png", "alt", "Probl\u00E8me de magasin", 1, "miam-no-pos-selected__picture"], [1, "miam-ds-text", "miam-no-pos-selected__title", "size-l", "weight-xl"], i18n_2, [1, "miam-ds-text", "miam-no-pos-selected__description"], i18n_4, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/pos.svg", "alt", "Aucun magasin s\u00E9lectionn\u00E9", 1, "miam-no-pos-selected__picture"], i18n_6, i18n_8]; }, template: function NoPosSelectedComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12631
12816
|
i0.ɵɵelementStart(0, "div", 0);
|
|
12632
12817
|
i0.ɵɵtemplate(1, NoPosSelectedComponent_ng_container_1_Template, 6, 0, "ng-container", 1);
|
|
12633
12818
|
i0.ɵɵtemplate(2, NoPosSelectedComponent_ng_template_2_Template, 5, 0, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
@@ -12709,7 +12894,7 @@ RecipePromotionBadgeComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipePromo
|
|
|
12709
12894
|
}
|
|
12710
12895
|
else {
|
|
12711
12896
|
i18n_0 = $localize `:␟a95b83d06c5cde80a506c7e649b862c065ebc393␟7879917059977078945:Promo'`;
|
|
12712
|
-
} return [[1, "miam-recipe-promotion-badge"], ["alt", "
|
|
12897
|
+
} 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]; }, template: function RecipePromotionBadgeComponent_Template(rf, ctx) { if (rf & 1) {
|
|
12713
12898
|
i0.ɵɵelementStart(0, "div", 0);
|
|
12714
12899
|
i0.ɵɵelement(1, "img", 1);
|
|
12715
12900
|
i0.ɵɵelementStart(2, "span", 2);
|
|
@@ -13300,52 +13485,56 @@ BasketPreviewDisabledComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BasketPrev
|
|
|
13300
13485
|
}] }); })();
|
|
13301
13486
|
|
|
13302
13487
|
function BasketPreviewLineComponent_ng_container_0_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
13303
|
-
i0.ɵɵelementStart(0, "div",
|
|
13304
|
-
i0.ɵɵelementStart(1, "span",
|
|
13488
|
+
i0.ɵɵelementStart(0, "div", 22);
|
|
13489
|
+
i0.ɵɵelementStart(1, "span", 23);
|
|
13305
13490
|
i0.ɵɵtext(2);
|
|
13306
13491
|
i0.ɵɵelementEnd();
|
|
13307
|
-
i0.ɵɵelement(3, "img",
|
|
13492
|
+
i0.ɵɵelement(3, "img", 24);
|
|
13308
13493
|
i0.ɵɵelementEnd();
|
|
13309
13494
|
} if (rf & 2) {
|
|
13310
13495
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
13496
|
+
i0.ɵɵattribute("aria-label", "Pour " + ctx_r3.line.count + " personnes");
|
|
13311
13497
|
i0.ɵɵadvance(2);
|
|
13312
13498
|
i0.ɵɵtextInterpolate(ctx_r3.line.count);
|
|
13313
13499
|
} }
|
|
13314
13500
|
function BasketPreviewLineComponent_ng_container_0_span_16_Template(rf, ctx) { if (rf & 1) {
|
|
13315
|
-
i0.ɵɵelementStart(0, "span");
|
|
13316
|
-
i0.ɵɵi18n(1,
|
|
13501
|
+
i0.ɵɵelementStart(0, "span", 12);
|
|
13502
|
+
i0.ɵɵi18n(1, 25);
|
|
13317
13503
|
i0.ɵɵelementEnd();
|
|
13318
13504
|
} }
|
|
13319
13505
|
function BasketPreviewLineComponent_ng_container_0_span_17_Template(rf, ctx) { if (rf & 1) {
|
|
13320
|
-
i0.ɵɵelementStart(0, "span");
|
|
13321
|
-
i0.ɵɵi18n(1,
|
|
13506
|
+
i0.ɵɵelementStart(0, "span", 12);
|
|
13507
|
+
i0.ɵɵi18n(1, 26);
|
|
13322
13508
|
i0.ɵɵelementEnd();
|
|
13323
13509
|
} }
|
|
13324
13510
|
function BasketPreviewLineComponent_ng_container_0_ng_container_18_Template(rf, ctx) { if (rf & 1) {
|
|
13325
13511
|
i0.ɵɵelementContainerStart(0);
|
|
13326
|
-
i0.ɵɵelement(1, "ng-miam-price",
|
|
13512
|
+
i0.ɵɵelement(1, "ng-miam-price", 27);
|
|
13327
13513
|
i0.ɵɵpipe(2, "currency");
|
|
13328
|
-
i0.ɵɵelementStart(3, "div",
|
|
13329
|
-
i0.ɵɵ
|
|
13330
|
-
i0.ɵɵ
|
|
13514
|
+
i0.ɵɵelementStart(3, "div", 28);
|
|
13515
|
+
i0.ɵɵpipe(4, "currency");
|
|
13516
|
+
i0.ɵɵelementStart(5, "span", 12);
|
|
13517
|
+
i0.ɵɵi18n(6, 29);
|
|
13331
13518
|
i0.ɵɵelementEnd();
|
|
13332
|
-
i0.ɵɵelement(
|
|
13333
|
-
i0.ɵɵpipe(
|
|
13334
|
-
i0.ɵɵelementStart(
|
|
13335
|
-
i0.ɵɵi18n(
|
|
13519
|
+
i0.ɵɵelement(7, "ng-miam-price", 30);
|
|
13520
|
+
i0.ɵɵpipe(8, "currency");
|
|
13521
|
+
i0.ɵɵelementStart(9, "span", 12);
|
|
13522
|
+
i0.ɵɵi18n(10, 31);
|
|
13336
13523
|
i0.ɵɵelementEnd();
|
|
13337
13524
|
i0.ɵɵelementEnd();
|
|
13338
13525
|
i0.ɵɵelementContainerEnd();
|
|
13339
13526
|
} if (rf & 2) {
|
|
13340
13527
|
const ctx_r6 = i0.ɵɵnextContext(2);
|
|
13341
13528
|
i0.ɵɵadvance(1);
|
|
13342
|
-
i0.ɵɵproperty("price", i0.ɵɵpipeBind2(2,
|
|
13343
|
-
i0.ɵɵadvance(
|
|
13344
|
-
i0.ɵɵ
|
|
13529
|
+
i0.ɵɵproperty("price", i0.ɵɵpipeBind2(2, 3, ctx_r6.line.price, ctx_r6.currencyService.code));
|
|
13530
|
+
i0.ɵɵadvance(2);
|
|
13531
|
+
i0.ɵɵattribute("aria-label", "soit " + i0.ɵɵpipeBind2(4, 6, +ctx_r6.line.price / +ctx_r6.line.count, ctx_r6.currencyService.code) + " par personne");
|
|
13532
|
+
i0.ɵɵadvance(4);
|
|
13533
|
+
i0.ɵɵproperty("price", i0.ɵɵpipeBind2(8, 9, +ctx_r6.line.price / +ctx_r6.line.count, ctx_r6.currencyService.code));
|
|
13345
13534
|
} }
|
|
13346
13535
|
function BasketPreviewLineComponent_ng_container_0_ng_miam_guests_dropdown_19_Template(rf, ctx) { if (rf & 1) {
|
|
13347
13536
|
const _r12 = i0.ɵɵgetCurrentView();
|
|
13348
|
-
i0.ɵɵelementStart(0, "ng-miam-guests-dropdown",
|
|
13537
|
+
i0.ɵɵelementStart(0, "ng-miam-guests-dropdown", 32);
|
|
13349
13538
|
i0.ɵɵlistener("optionSelected", function BasketPreviewLineComponent_ng_container_0_ng_miam_guests_dropdown_19_Template_ng_miam_guests_dropdown_optionSelected_0_listener($event) { i0.ɵɵrestoreView(_r12); const ctx_r11 = i0.ɵɵnextContext(2); return ctx_r11.changeCount($event); });
|
|
13350
13539
|
i0.ɵɵelementEnd();
|
|
13351
13540
|
} if (rf & 2) {
|
|
@@ -13353,10 +13542,10 @@ function BasketPreviewLineComponent_ng_container_0_ng_miam_guests_dropdown_19_Te
|
|
|
13353
13542
|
i0.ɵɵproperty("selectedOption", ctx_r7.line.count)("options", ctx_r7.guestsOptions);
|
|
13354
13543
|
} }
|
|
13355
13544
|
function BasketPreviewLineComponent_ng_container_0_img_21_Template(rf, ctx) { if (rf & 1) {
|
|
13356
|
-
i0.ɵɵelement(0, "img",
|
|
13545
|
+
i0.ɵɵelement(0, "img", 33);
|
|
13357
13546
|
} }
|
|
13358
13547
|
function BasketPreviewLineComponent_ng_container_0_ng_template_22_Template(rf, ctx) { if (rf & 1) {
|
|
13359
|
-
i0.ɵɵelement(0, "div",
|
|
13548
|
+
i0.ɵɵelement(0, "div", 34);
|
|
13360
13549
|
} }
|
|
13361
13550
|
const _c10$1 = function (a0) { return { "miam-basket-preview-line__left__big": a0 }; };
|
|
13362
13551
|
const _c11$1 = function (a0) { return { "disabled": a0 }; };
|
|
@@ -13370,7 +13559,7 @@ function BasketPreviewLineComponent_ng_container_0_Template(rf, ctx) { if (rf &
|
|
|
13370
13559
|
i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_0_Template_img_click_4_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r13 = i0.ɵɵnextContext(); return ctx_r13.toggleRecipeDisplay($event); })("error", function BasketPreviewLineComponent_ng_container_0_Template_img_error_4_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r15 = i0.ɵɵnextContext(); return ($event.target["src"] = ctx_r15.line.isRecipe ? ctx_r15.contextService.defaultRecipePicture : ctx_r15.contextService.defaultIngredientPicture); });
|
|
13371
13560
|
i0.ɵɵelementEnd();
|
|
13372
13561
|
i0.ɵɵelementEnd();
|
|
13373
|
-
i0.ɵɵtemplate(5, BasketPreviewLineComponent_ng_container_0_div_5_Template, 4,
|
|
13562
|
+
i0.ɵɵtemplate(5, BasketPreviewLineComponent_ng_container_0_div_5_Template, 4, 2, "div", 6);
|
|
13374
13563
|
i0.ɵɵelementEnd();
|
|
13375
13564
|
i0.ɵɵelementStart(6, "div", 7);
|
|
13376
13565
|
i0.ɵɵelementStart(7, "div", 8);
|
|
@@ -13383,27 +13572,27 @@ function BasketPreviewLineComponent_ng_container_0_Template(rf, ctx) { if (rf &
|
|
|
13383
13572
|
i0.ɵɵelementEnd();
|
|
13384
13573
|
i0.ɵɵelementEnd();
|
|
13385
13574
|
i0.ɵɵelementStart(13, "div", 11);
|
|
13386
|
-
i0.ɵɵelementStart(14, "span");
|
|
13575
|
+
i0.ɵɵelementStart(14, "span", 12);
|
|
13387
13576
|
i0.ɵɵtext(15);
|
|
13388
13577
|
i0.ɵɵelementEnd();
|
|
13389
|
-
i0.ɵɵtemplate(16, BasketPreviewLineComponent_ng_container_0_span_16_Template, 2, 0, "span",
|
|
13390
|
-
i0.ɵɵtemplate(17, BasketPreviewLineComponent_ng_container_0_span_17_Template, 2, 0, "span",
|
|
13578
|
+
i0.ɵɵtemplate(16, BasketPreviewLineComponent_ng_container_0_span_16_Template, 2, 0, "span", 13);
|
|
13579
|
+
i0.ɵɵtemplate(17, BasketPreviewLineComponent_ng_container_0_span_17_Template, 2, 0, "span", 13);
|
|
13391
13580
|
i0.ɵɵelementEnd();
|
|
13392
|
-
i0.ɵɵtemplate(18, BasketPreviewLineComponent_ng_container_0_ng_container_18_Template,
|
|
13393
|
-
i0.ɵɵtemplate(19, BasketPreviewLineComponent_ng_container_0_ng_miam_guests_dropdown_19_Template, 1, 2, "ng-miam-guests-dropdown",
|
|
13581
|
+
i0.ɵɵtemplate(18, BasketPreviewLineComponent_ng_container_0_ng_container_18_Template, 11, 12, "ng-container", 14);
|
|
13582
|
+
i0.ɵɵtemplate(19, BasketPreviewLineComponent_ng_container_0_ng_miam_guests_dropdown_19_Template, 1, 2, "ng-miam-guests-dropdown", 15);
|
|
13394
13583
|
i0.ɵɵelementEnd();
|
|
13395
|
-
i0.ɵɵelementStart(20, "button",
|
|
13584
|
+
i0.ɵɵelementStart(20, "button", 16);
|
|
13396
13585
|
i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_0_Template_button_click_20_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r17 = i0.ɵɵnextContext(); return !ctx_r17.removing && ctx_r17.removeLine($event); });
|
|
13397
|
-
i0.ɵɵtemplate(21, BasketPreviewLineComponent_ng_container_0_img_21_Template, 1, 0, "img",
|
|
13398
|
-
i0.ɵɵtemplate(22, BasketPreviewLineComponent_ng_container_0_ng_template_22_Template, 1, 0, "ng-template", null,
|
|
13586
|
+
i0.ɵɵtemplate(21, BasketPreviewLineComponent_ng_container_0_img_21_Template, 1, 0, "img", 17);
|
|
13587
|
+
i0.ɵɵtemplate(22, BasketPreviewLineComponent_ng_container_0_ng_template_22_Template, 1, 0, "ng-template", null, 18, i0.ɵɵtemplateRefExtractor);
|
|
13399
13588
|
i0.ɵɵelementEnd();
|
|
13400
13589
|
i0.ɵɵelementEnd();
|
|
13401
|
-
i0.ɵɵelementStart(24, "button",
|
|
13590
|
+
i0.ɵɵelementStart(24, "button", 19);
|
|
13402
13591
|
i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_0_Template_button_click_24_listener($event) { i0.ɵɵrestoreView(_r14); const ctx_r18 = i0.ɵɵnextContext(); return ctx_r18.toggleRecipeDisplay($event); });
|
|
13403
13592
|
i0.ɵɵelementStart(25, "span");
|
|
13404
|
-
i0.ɵɵi18n(26,
|
|
13593
|
+
i0.ɵɵi18n(26, 20);
|
|
13405
13594
|
i0.ɵɵelementEnd();
|
|
13406
|
-
i0.ɵɵelement(27, "img",
|
|
13595
|
+
i0.ɵɵelement(27, "img", 21);
|
|
13407
13596
|
i0.ɵɵelementEnd();
|
|
13408
13597
|
i0.ɵɵelementEnd();
|
|
13409
13598
|
i0.ɵɵelementEnd();
|
|
@@ -13414,14 +13603,16 @@ function BasketPreviewLineComponent_ng_container_0_Template(rf, ctx) { if (rf &
|
|
|
13414
13603
|
i0.ɵɵadvance(1);
|
|
13415
13604
|
i0.ɵɵpropertyInterpolate("id", ctx_r0.line.id);
|
|
13416
13605
|
i0.ɵɵadvance(1);
|
|
13417
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
13606
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(17, _c10$1, ctx_r0.contextService.guestsInputOnMyMeals));
|
|
13418
13607
|
i0.ɵɵadvance(2);
|
|
13419
|
-
i0.ɵɵproperty("alt", (ctx_r0.line.isRecipe ? "
|
|
13608
|
+
i0.ɵɵproperty("alt", ctx_r0.line.title || (ctx_r0.line.isRecipe ? "Image de recette" : "Image de produit"))("src", ctx_r0.line.picture, i0.ɵɵsanitizeUrl);
|
|
13420
13609
|
i0.ɵɵadvance(1);
|
|
13421
13610
|
i0.ɵɵproperty("ngIf", !ctx_r0.contextService.guestsInputOnMyMeals);
|
|
13422
13611
|
i0.ɵɵadvance(6);
|
|
13423
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12,
|
|
13424
|
-
i0.ɵɵadvance(
|
|
13612
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(12, 15, ctx_r0.line.title));
|
|
13613
|
+
i0.ɵɵadvance(2);
|
|
13614
|
+
i0.ɵɵattribute("aria-label", ctx_r0.countProducts + " " + (ctx_r0.countProducts <= 1 ? "produit" : "produits"));
|
|
13615
|
+
i0.ɵɵadvance(2);
|
|
13425
13616
|
i0.ɵɵtextInterpolate(ctx_r0.countProducts);
|
|
13426
13617
|
i0.ɵɵadvance(1);
|
|
13427
13618
|
i0.ɵɵproperty("ngIf", ctx_r0.countProducts <= 1);
|
|
@@ -13432,26 +13623,26 @@ function BasketPreviewLineComponent_ng_container_0_Template(rf, ctx) { if (rf &
|
|
|
13432
13623
|
i0.ɵɵadvance(1);
|
|
13433
13624
|
i0.ɵɵproperty("ngIf", ctx_r0.contextService.guestsInputOnMyMeals);
|
|
13434
13625
|
i0.ɵɵadvance(1);
|
|
13435
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
13626
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(19, _c11$1, ctx_r0.disableRemove));
|
|
13436
13627
|
i0.ɵɵadvance(1);
|
|
13437
13628
|
i0.ɵɵproperty("ngIf", !ctx_r0.removing)("ngIfElse", _r9);
|
|
13438
13629
|
} }
|
|
13439
13630
|
function BasketPreviewLineComponent_ng_template_1_button_3_ng_miam_icon_1_Template(rf, ctx) { if (rf & 1) {
|
|
13440
|
-
i0.ɵɵelement(0, "ng-miam-icon",
|
|
13631
|
+
i0.ɵɵelement(0, "ng-miam-icon", 60);
|
|
13441
13632
|
} if (rf & 2) {
|
|
13442
13633
|
const ctx_r34 = i0.ɵɵnextContext(3);
|
|
13443
13634
|
i0.ɵɵproperty("iconName", ctx_r34.icon.Trash_greyTextDark)("height", 16)("width", 16);
|
|
13444
13635
|
} }
|
|
13445
13636
|
function BasketPreviewLineComponent_ng_template_1_button_3_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
13446
|
-
i0.ɵɵelement(0, "div",
|
|
13637
|
+
i0.ɵɵelement(0, "div", 34);
|
|
13447
13638
|
} }
|
|
13448
13639
|
const _c12$1 = function (a0, a1) { return { "disabled": a0, "loading": a1 }; };
|
|
13449
13640
|
function BasketPreviewLineComponent_ng_template_1_button_3_Template(rf, ctx) { if (rf & 1) {
|
|
13450
13641
|
const _r38 = i0.ɵɵgetCurrentView();
|
|
13451
|
-
i0.ɵɵelementStart(0, "button",
|
|
13642
|
+
i0.ɵɵelementStart(0, "button", 58);
|
|
13452
13643
|
i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_button_3_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r38); const ctx_r37 = i0.ɵɵnextContext(2); return ctx_r37.removeLine($event); });
|
|
13453
|
-
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_button_3_ng_miam_icon_1_Template, 1, 3, "ng-miam-icon",
|
|
13454
|
-
i0.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_button_3_ng_template_2_Template, 1, 0, "ng-template", null,
|
|
13644
|
+
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_button_3_ng_miam_icon_1_Template, 1, 3, "ng-miam-icon", 59);
|
|
13645
|
+
i0.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_button_3_ng_template_2_Template, 1, 0, "ng-template", null, 18, i0.ɵɵtemplateRefExtractor);
|
|
13455
13646
|
i0.ɵɵelementEnd();
|
|
13456
13647
|
} if (rf & 2) {
|
|
13457
13648
|
const _r35 = i0.ɵɵreference(3);
|
|
@@ -13461,9 +13652,9 @@ function BasketPreviewLineComponent_ng_template_1_button_3_Template(rf, ctx) { i
|
|
|
13461
13652
|
i0.ɵɵproperty("ngIf", !ctx_r19.removing)("ngIfElse", _r35);
|
|
13462
13653
|
} }
|
|
13463
13654
|
function BasketPreviewLineComponent_ng_template_1_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
13464
|
-
i0.ɵɵelementStart(0, "div",
|
|
13655
|
+
i0.ɵɵelementStart(0, "div", 61);
|
|
13465
13656
|
i0.ɵɵelementStart(1, "span");
|
|
13466
|
-
i0.ɵɵi18n(2,
|
|
13657
|
+
i0.ɵɵi18n(2, 62);
|
|
13467
13658
|
i0.ɵɵelementEnd();
|
|
13468
13659
|
i0.ɵɵelementEnd();
|
|
13469
13660
|
} }
|
|
@@ -13477,7 +13668,7 @@ function BasketPreviewLineComponent_ng_template_1_div_13_Template(rf, ctx) { if
|
|
|
13477
13668
|
i0.ɵɵtextInterpolate(ctx_r21.line.description[0]);
|
|
13478
13669
|
} }
|
|
13479
13670
|
function BasketPreviewLineComponent_ng_template_1_div_14_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
13480
|
-
i0.ɵɵelementStart(0, "span",
|
|
13671
|
+
i0.ɵɵelementStart(0, "span", 65);
|
|
13481
13672
|
i0.ɵɵtext(1);
|
|
13482
13673
|
i0.ɵɵelementEnd();
|
|
13483
13674
|
} if (rf & 2) {
|
|
@@ -13487,7 +13678,7 @@ function BasketPreviewLineComponent_ng_template_1_div_14_span_1_Template(rf, ctx
|
|
|
13487
13678
|
} }
|
|
13488
13679
|
function BasketPreviewLineComponent_ng_template_1_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
13489
13680
|
i0.ɵɵelementStart(0, "div");
|
|
13490
|
-
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_14_span_1_Template, 2, 1, "span",
|
|
13681
|
+
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_14_span_1_Template, 2, 1, "span", 63);
|
|
13491
13682
|
i0.ɵɵelementStart(2, "span");
|
|
13492
13683
|
i0.ɵɵtext(3);
|
|
13493
13684
|
i0.ɵɵelementEnd();
|
|
@@ -13495,7 +13686,7 @@ function BasketPreviewLineComponent_ng_template_1_div_14_Template(rf, ctx) { if
|
|
|
13495
13686
|
i0.ɵɵtext(5, " /");
|
|
13496
13687
|
i0.ɵɵelementEnd();
|
|
13497
13688
|
i0.ɵɵelementStart(6, "span");
|
|
13498
|
-
i0.ɵɵi18n(7,
|
|
13689
|
+
i0.ɵɵi18n(7, 64);
|
|
13499
13690
|
i0.ɵɵelementEnd();
|
|
13500
13691
|
i0.ɵɵelementEnd();
|
|
13501
13692
|
} if (rf & 2) {
|
|
@@ -13507,19 +13698,19 @@ function BasketPreviewLineComponent_ng_template_1_div_14_Template(rf, ctx) { if
|
|
|
13507
13698
|
} }
|
|
13508
13699
|
function BasketPreviewLineComponent_ng_template_1_div_16_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
13509
13700
|
i0.ɵɵelementStart(0, "span");
|
|
13510
|
-
i0.ɵɵi18n(1,
|
|
13701
|
+
i0.ɵɵi18n(1, 67);
|
|
13511
13702
|
i0.ɵɵelementEnd();
|
|
13512
13703
|
} }
|
|
13513
13704
|
function BasketPreviewLineComponent_ng_template_1_div_16_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
13514
13705
|
i0.ɵɵelementStart(0, "span");
|
|
13515
|
-
i0.ɵɵi18n(1,
|
|
13706
|
+
i0.ɵɵi18n(1, 68);
|
|
13516
13707
|
i0.ɵɵelementEnd();
|
|
13517
13708
|
} }
|
|
13518
13709
|
const _c21 = function (a0) { return { "expanded": a0 }; };
|
|
13519
13710
|
function BasketPreviewLineComponent_ng_template_1_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
13520
|
-
i0.ɵɵelementStart(0, "div",
|
|
13521
|
-
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_16_span_1_Template, 2, 0, "span",
|
|
13522
|
-
i0.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_16_span_2_Template, 2, 0, "span",
|
|
13711
|
+
i0.ɵɵelementStart(0, "div", 66);
|
|
13712
|
+
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_16_span_1_Template, 2, 0, "span", 14);
|
|
13713
|
+
i0.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_16_span_2_Template, 2, 0, "span", 14);
|
|
13523
13714
|
i0.ɵɵelementEnd();
|
|
13524
13715
|
} if (rf & 2) {
|
|
13525
13716
|
const ctx_r23 = i0.ɵɵnextContext(2);
|
|
@@ -13530,17 +13721,17 @@ function BasketPreviewLineComponent_ng_template_1_div_16_Template(rf, ctx) { if
|
|
|
13530
13721
|
i0.ɵɵproperty("ngIf", !ctx_r23.expanded);
|
|
13531
13722
|
} }
|
|
13532
13723
|
function BasketPreviewLineComponent_ng_template_1_div_17_Template(rf, ctx) { if (rf & 1) {
|
|
13533
|
-
i0.ɵɵelementStart(0, "div",
|
|
13534
|
-
i0.ɵɵi18n(1,
|
|
13724
|
+
i0.ɵɵelementStart(0, "div", 69);
|
|
13725
|
+
i0.ɵɵi18n(1, 70);
|
|
13535
13726
|
i0.ɵɵelementEnd();
|
|
13536
13727
|
} }
|
|
13537
13728
|
const _c26 = function (a0) { return { "disable": a0 }; };
|
|
13538
13729
|
function BasketPreviewLineComponent_ng_template_1_div_18_Template(rf, ctx) { if (rf & 1) {
|
|
13539
13730
|
const _r44 = i0.ɵɵgetCurrentView();
|
|
13540
|
-
i0.ɵɵelementStart(0, "div",
|
|
13731
|
+
i0.ɵɵelementStart(0, "div", 71);
|
|
13541
13732
|
i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_div_18_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r44); const ctx_r43 = i0.ɵɵnextContext(2); return ctx_r43.changeProduct(ctx_r43.line); });
|
|
13542
|
-
i0.ɵɵelementStart(1, "a",
|
|
13543
|
-
i0.ɵɵi18n(2,
|
|
13733
|
+
i0.ɵɵelementStart(1, "a", 72);
|
|
13734
|
+
i0.ɵɵi18n(2, 73);
|
|
13544
13735
|
i0.ɵɵelementEnd();
|
|
13545
13736
|
i0.ɵɵelementEnd();
|
|
13546
13737
|
} if (rf & 2) {
|
|
@@ -13558,9 +13749,9 @@ function BasketPreviewLineComponent_ng_template_1_div_19_span_2_Template(rf, ctx
|
|
|
13558
13749
|
i0.ɵɵtextInterpolate(word_r46);
|
|
13559
13750
|
} }
|
|
13560
13751
|
function BasketPreviewLineComponent_ng_template_1_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
13561
|
-
i0.ɵɵelementStart(0, "div",
|
|
13562
|
-
i0.ɵɵelementStart(1, "div",
|
|
13563
|
-
i0.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_19_span_2_Template, 2, 1, "span",
|
|
13752
|
+
i0.ɵɵelementStart(0, "div", 74);
|
|
13753
|
+
i0.ɵɵelementStart(1, "div", 75);
|
|
13754
|
+
i0.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_19_span_2_Template, 2, 1, "span", 76);
|
|
13564
13755
|
i0.ɵɵelementEnd();
|
|
13565
13756
|
i0.ɵɵelementEnd();
|
|
13566
13757
|
} if (rf & 2) {
|
|
@@ -13569,7 +13760,7 @@ function BasketPreviewLineComponent_ng_template_1_div_19_Template(rf, ctx) { if
|
|
|
13569
13760
|
i0.ɵɵproperty("ngForOf", ctx_r26.line.inlineTag.split(" "));
|
|
13570
13761
|
} }
|
|
13571
13762
|
function BasketPreviewLineComponent_ng_template_1_div_21_Template(rf, ctx) { if (rf & 1) {
|
|
13572
|
-
i0.ɵɵelementStart(0, "div",
|
|
13763
|
+
i0.ɵɵelementStart(0, "div", 77);
|
|
13573
13764
|
i0.ɵɵelementStart(1, "span");
|
|
13574
13765
|
i0.ɵɵtext(2);
|
|
13575
13766
|
i0.ɵɵelementEnd();
|
|
@@ -13590,30 +13781,30 @@ function BasketPreviewLineComponent_ng_template_1_div_21_Template(rf, ctx) { if
|
|
|
13590
13781
|
i0.ɵɵtextInterpolate1(" ", ctx_r27.currencyService.symbol, "");
|
|
13591
13782
|
} }
|
|
13592
13783
|
function BasketPreviewLineComponent_ng_template_1_ng_template_22_Template(rf, ctx) { if (rf & 1) {
|
|
13593
|
-
i0.ɵɵelement(0, "ng-miam-recipe-pricing",
|
|
13784
|
+
i0.ɵɵelement(0, "ng-miam-recipe-pricing", 78);
|
|
13594
13785
|
} if (rf & 2) {
|
|
13595
13786
|
const ctx_r29 = i0.ɵɵnextContext(2);
|
|
13596
13787
|
i0.ɵɵproperty("recipeId", ctx_r29.line.id)("serves", ctx_r29.line.count);
|
|
13597
13788
|
} }
|
|
13598
13789
|
function BasketPreviewLineComponent_ng_template_1_div_25_Template(rf, ctx) { if (rf & 1) {
|
|
13599
|
-
i0.ɵɵelementStart(0, "div",
|
|
13600
|
-
i0.ɵɵi18n(1,
|
|
13790
|
+
i0.ɵɵelementStart(0, "div", 79);
|
|
13791
|
+
i0.ɵɵi18n(1, 80);
|
|
13601
13792
|
i0.ɵɵelementEnd();
|
|
13602
13793
|
} }
|
|
13603
13794
|
function BasketPreviewLineComponent_ng_template_1_div_27_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
13604
|
-
i0.ɵɵelementStart(0, "span");
|
|
13605
|
-
i0.ɵɵi18n(1,
|
|
13795
|
+
i0.ɵɵelementStart(0, "span", 12);
|
|
13796
|
+
i0.ɵɵi18n(1, 82);
|
|
13606
13797
|
i0.ɵɵelementEnd();
|
|
13607
13798
|
} }
|
|
13608
13799
|
function BasketPreviewLineComponent_ng_template_1_div_27_span_2_Template(rf, ctx) { if (rf & 1) {
|
|
13609
|
-
i0.ɵɵelementStart(0, "span");
|
|
13610
|
-
i0.ɵɵi18n(1,
|
|
13800
|
+
i0.ɵɵelementStart(0, "span", 12);
|
|
13801
|
+
i0.ɵɵi18n(1, 83);
|
|
13611
13802
|
i0.ɵɵelementEnd();
|
|
13612
13803
|
} }
|
|
13613
13804
|
function BasketPreviewLineComponent_ng_template_1_div_27_Template(rf, ctx) { if (rf & 1) {
|
|
13614
|
-
i0.ɵɵelementStart(0, "div",
|
|
13615
|
-
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_27_span_1_Template, 2, 0, "span",
|
|
13616
|
-
i0.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_27_span_2_Template, 2, 0, "span",
|
|
13805
|
+
i0.ɵɵelementStart(0, "div", 81);
|
|
13806
|
+
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_27_span_1_Template, 2, 0, "span", 13);
|
|
13807
|
+
i0.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_27_span_2_Template, 2, 0, "span", 13);
|
|
13617
13808
|
i0.ɵɵelementEnd();
|
|
13618
13809
|
} if (rf & 2) {
|
|
13619
13810
|
const ctx_r31 = i0.ɵɵnextContext(2);
|
|
@@ -13624,10 +13815,10 @@ function BasketPreviewLineComponent_ng_template_1_div_27_Template(rf, ctx) { if
|
|
|
13624
13815
|
} }
|
|
13625
13816
|
function BasketPreviewLineComponent_ng_template_1_div_28_Template(rf, ctx) { if (rf & 1) {
|
|
13626
13817
|
const _r50 = i0.ɵɵgetCurrentView();
|
|
13627
|
-
i0.ɵɵelementStart(0, "div",
|
|
13628
|
-
i0.ɵɵelementStart(1, "button",
|
|
13818
|
+
i0.ɵɵelementStart(0, "div", 84);
|
|
13819
|
+
i0.ɵɵelementStart(1, "button", 85);
|
|
13629
13820
|
i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_div_28_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r50); const ctx_r49 = i0.ɵɵnextContext(2); return ctx_r49.toggleRecipeDisplay($event, true); });
|
|
13630
|
-
i0.ɵɵelement(2, "ng-miam-icon",
|
|
13821
|
+
i0.ɵɵelement(2, "ng-miam-icon", 86);
|
|
13631
13822
|
i0.ɵɵelementEnd();
|
|
13632
13823
|
i0.ɵɵelementEnd();
|
|
13633
13824
|
} if (rf & 2) {
|
|
@@ -13637,7 +13828,7 @@ function BasketPreviewLineComponent_ng_template_1_div_28_Template(rf, ctx) { if
|
|
|
13637
13828
|
} }
|
|
13638
13829
|
function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template(rf, ctx) { if (rf & 1) {
|
|
13639
13830
|
const _r60 = i0.ɵɵgetCurrentView();
|
|
13640
|
-
i0.ɵɵelementStart(0, "ng-miam-basket-preview-line",
|
|
13831
|
+
i0.ɵɵelementStart(0, "ng-miam-basket-preview-line", 93);
|
|
13641
13832
|
i0.ɵɵlistener("removed", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_removed_0_listener($event) { i0.ɵɵrestoreView(_r60); const ctx_r59 = i0.ɵɵnextContext(4); return ctx_r59.deleteEntry($event); })("replaceItem", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_replaceItem_0_listener() { i0.ɵɵrestoreView(_r60); const ctx_r61 = i0.ɵɵnextContext(4); return ctx_r61.replaceItem.emit(ctx_r61.line); });
|
|
13642
13833
|
i0.ɵɵelementEnd();
|
|
13643
13834
|
} if (rf & 2) {
|
|
@@ -13646,14 +13837,14 @@ function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_pr
|
|
|
13646
13837
|
i0.ɵɵproperty("line", entryLine_r58)("sponsorised", ctx_r54.isEntrySponsorised[entryLine_r58.id])("displayItemsUnitaryPrice", ctx_r54.displayItemsUnitaryPrice)("originTrace", ctx_r54.eventTrace)("blockStates", ctx_r54.blockStates)("legacyMode", ctx_r54.legacyMode);
|
|
13647
13838
|
} }
|
|
13648
13839
|
function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_3_Template(rf, ctx) { if (rf & 1) {
|
|
13649
|
-
i0.ɵɵelement(0, "ng-miam-basket-preview-disabled",
|
|
13840
|
+
i0.ɵɵelement(0, "ng-miam-basket-preview-disabled", 94);
|
|
13650
13841
|
} if (rf & 2) {
|
|
13651
13842
|
const ctx_r55 = i0.ɵɵnextContext(4);
|
|
13652
13843
|
i0.ɵɵproperty("entries", ctx_r55.line.entries.notFound)("alwaysExpanded", ctx_r55.itemsAlwaysExpanded);
|
|
13653
13844
|
} }
|
|
13654
13845
|
function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template(rf, ctx) { if (rf & 1) {
|
|
13655
13846
|
const _r63 = i0.ɵɵgetCurrentView();
|
|
13656
|
-
i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled",
|
|
13847
|
+
i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 95);
|
|
13657
13848
|
i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r63); const ctx_r62 = i0.ɵɵnextContext(4); return ctx_r62.addEntry($event); });
|
|
13658
13849
|
i0.ɵɵelementEnd();
|
|
13659
13850
|
} if (rf & 2) {
|
|
@@ -13662,7 +13853,7 @@ function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_pr
|
|
|
13662
13853
|
} }
|
|
13663
13854
|
function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template(rf, ctx) { if (rf & 1) {
|
|
13664
13855
|
const _r65 = i0.ɵɵgetCurrentView();
|
|
13665
|
-
i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled",
|
|
13856
|
+
i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 96);
|
|
13666
13857
|
i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r65); const ctx_r64 = i0.ɵɵnextContext(4); return ctx_r64.addEntry($event); });
|
|
13667
13858
|
i0.ɵɵelementEnd();
|
|
13668
13859
|
} if (rf & 2) {
|
|
@@ -13671,11 +13862,11 @@ function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_pr
|
|
|
13671
13862
|
} }
|
|
13672
13863
|
function BasketPreviewLineComponent_ng_template_1_div_29_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
13673
13864
|
i0.ɵɵelementStart(0, "div");
|
|
13674
|
-
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template, 1, 6, "ng-miam-basket-preview-line",
|
|
13865
|
+
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template, 1, 6, "ng-miam-basket-preview-line", 89);
|
|
13675
13866
|
i0.ɵɵpipe(2, "async");
|
|
13676
|
-
i0.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 2, "ng-miam-basket-preview-disabled",
|
|
13677
|
-
i0.ɵɵtemplate(4, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 2, "ng-miam-basket-preview-disabled",
|
|
13678
|
-
i0.ɵɵtemplate(5, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 3, "ng-miam-basket-preview-disabled",
|
|
13867
|
+
i0.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 2, "ng-miam-basket-preview-disabled", 90);
|
|
13868
|
+
i0.ɵɵtemplate(4, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 2, "ng-miam-basket-preview-disabled", 91);
|
|
13869
|
+
i0.ɵɵtemplate(5, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 3, "ng-miam-basket-preview-disabled", 92);
|
|
13679
13870
|
i0.ɵɵelementEnd();
|
|
13680
13871
|
} if (rf & 2) {
|
|
13681
13872
|
const ctx_r51 = i0.ɵɵnextContext(3);
|
|
@@ -13689,17 +13880,17 @@ function BasketPreviewLineComponent_ng_template_1_div_29_div_1_Template(rf, ctx)
|
|
|
13689
13880
|
i0.ɵɵproperty("ngIf", ctx_r51.line.entries.removed.length > 0);
|
|
13690
13881
|
} }
|
|
13691
13882
|
function BasketPreviewLineComponent_ng_template_1_div_29_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
13692
|
-
i0.ɵɵelementStart(0, "div",
|
|
13883
|
+
i0.ɵɵelementStart(0, "div", 97);
|
|
13693
13884
|
i0.ɵɵelement(1, "ng-miam-loader");
|
|
13694
13885
|
i0.ɵɵelementStart(2, "div");
|
|
13695
|
-
i0.ɵɵi18n(3,
|
|
13886
|
+
i0.ɵɵi18n(3, 98);
|
|
13696
13887
|
i0.ɵɵelementEnd();
|
|
13697
13888
|
i0.ɵɵelementEnd();
|
|
13698
13889
|
} }
|
|
13699
13890
|
function BasketPreviewLineComponent_ng_template_1_div_29_Template(rf, ctx) { if (rf & 1) {
|
|
13700
|
-
i0.ɵɵelementStart(0, "div",
|
|
13891
|
+
i0.ɵɵelementStart(0, "div", 87);
|
|
13701
13892
|
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_29_div_1_Template, 6, 6, "div", 0);
|
|
13702
|
-
i0.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_29_ng_template_2_Template, 4, 0, "ng-template", null,
|
|
13893
|
+
i0.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_29_ng_template_2_Template, 4, 0, "ng-template", null, 88, i0.ɵɵtemplateRefExtractor);
|
|
13703
13894
|
i0.ɵɵelementEnd();
|
|
13704
13895
|
} if (rf & 2) {
|
|
13705
13896
|
const _r52 = i0.ɵɵreference(3);
|
|
@@ -13711,67 +13902,67 @@ const _c35 = function (a0, a1, a2) { return { clickable: a0, expanded: a1, eleva
|
|
|
13711
13902
|
const _c36 = function (a0) { return { "with-inline-tag": a0 }; };
|
|
13712
13903
|
function BasketPreviewLineComponent_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
13713
13904
|
const _r67 = i0.ɵɵgetCurrentView();
|
|
13714
|
-
i0.ɵɵelementStart(0, "div",
|
|
13905
|
+
i0.ɵɵelementStart(0, "div", 35);
|
|
13715
13906
|
i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r67); const ctx_r66 = i0.ɵɵnextContext(); return ctx_r66.line.displayMode ? ctx_r66.toggleRecipeDisplay($event) : ctx_r66.toggleExpanded($event); });
|
|
13716
|
-
i0.ɵɵelementStart(1, "div",
|
|
13717
|
-
i0.ɵɵelementStart(2, "div",
|
|
13718
|
-
i0.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_button_3_Template, 4, 6, "button",
|
|
13719
|
-
i0.ɵɵelementStart(4, "div",
|
|
13907
|
+
i0.ɵɵelementStart(1, "div", 36);
|
|
13908
|
+
i0.ɵɵelementStart(2, "div", 37);
|
|
13909
|
+
i0.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_button_3_Template, 4, 6, "button", 38);
|
|
13910
|
+
i0.ɵɵelementStart(4, "div", 39);
|
|
13720
13911
|
i0.ɵɵelementStart(5, "img", 5);
|
|
13721
13912
|
i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_Template_img_click_5_listener($event) { i0.ɵɵrestoreView(_r67); const ctx_r68 = i0.ɵɵnextContext(); return ctx_r68.toggleRecipeDisplay($event); })("error", function BasketPreviewLineComponent_ng_template_1_Template_img_error_5_listener($event) { i0.ɵɵrestoreView(_r67); const ctx_r69 = i0.ɵɵnextContext(); return ($event.target["src"] = ctx_r69.line.isRecipe ? ctx_r69.contextService.defaultRecipePicture : ctx_r69.contextService.defaultIngredientPicture); });
|
|
13722
13913
|
i0.ɵɵelementEnd();
|
|
13723
13914
|
i0.ɵɵelementEnd();
|
|
13724
|
-
i0.ɵɵelementStart(6, "div",
|
|
13725
|
-
i0.ɵɵtemplate(7, BasketPreviewLineComponent_ng_template_1_div_7_Template, 3, 0, "div",
|
|
13726
|
-
i0.ɵɵelementStart(8, "div",
|
|
13915
|
+
i0.ɵɵelementStart(6, "div", 40);
|
|
13916
|
+
i0.ɵɵtemplate(7, BasketPreviewLineComponent_ng_template_1_div_7_Template, 3, 0, "div", 41);
|
|
13917
|
+
i0.ɵɵelementStart(8, "div", 42);
|
|
13727
13918
|
i0.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_Template_div_click_8_listener($event) { i0.ɵɵrestoreView(_r67); const ctx_r70 = i0.ɵɵnextContext(); return ctx_r70.toggleRecipeDisplay($event); });
|
|
13728
13919
|
i0.ɵɵelementStart(9, "strong");
|
|
13729
13920
|
i0.ɵɵtext(10);
|
|
13730
13921
|
i0.ɵɵpipe(11, "capitalizeFirstLetter");
|
|
13731
13922
|
i0.ɵɵelementEnd();
|
|
13732
13923
|
i0.ɵɵelementEnd();
|
|
13733
|
-
i0.ɵɵelementStart(12, "div",
|
|
13734
|
-
i0.ɵɵtemplate(13, BasketPreviewLineComponent_ng_template_1_div_13_Template, 2, 1, "div",
|
|
13735
|
-
i0.ɵɵtemplate(14, BasketPreviewLineComponent_ng_template_1_div_14_Template, 8, 2, "div",
|
|
13924
|
+
i0.ɵɵelementStart(12, "div", 43);
|
|
13925
|
+
i0.ɵɵtemplate(13, BasketPreviewLineComponent_ng_template_1_div_13_Template, 2, 1, "div", 14);
|
|
13926
|
+
i0.ɵɵtemplate(14, BasketPreviewLineComponent_ng_template_1_div_14_Template, 8, 2, "div", 14);
|
|
13736
13927
|
i0.ɵɵelementEnd();
|
|
13737
|
-
i0.ɵɵelementStart(15, "div",
|
|
13738
|
-
i0.ɵɵtemplate(16, BasketPreviewLineComponent_ng_template_1_div_16_Template, 3, 5, "div",
|
|
13739
|
-
i0.ɵɵtemplate(17, BasketPreviewLineComponent_ng_template_1_div_17_Template, 2, 0, "div",
|
|
13740
|
-
i0.ɵɵtemplate(18, BasketPreviewLineComponent_ng_template_1_div_18_Template, 3, 3, "div",
|
|
13741
|
-
i0.ɵɵtemplate(19, BasketPreviewLineComponent_ng_template_1_div_19_Template, 3, 1, "div",
|
|
13928
|
+
i0.ɵɵelementStart(15, "div", 44);
|
|
13929
|
+
i0.ɵɵtemplate(16, BasketPreviewLineComponent_ng_template_1_div_16_Template, 3, 5, "div", 45);
|
|
13930
|
+
i0.ɵɵtemplate(17, BasketPreviewLineComponent_ng_template_1_div_17_Template, 2, 0, "div", 46);
|
|
13931
|
+
i0.ɵɵtemplate(18, BasketPreviewLineComponent_ng_template_1_div_18_Template, 3, 3, "div", 47);
|
|
13932
|
+
i0.ɵɵtemplate(19, BasketPreviewLineComponent_ng_template_1_div_19_Template, 3, 1, "div", 48);
|
|
13742
13933
|
i0.ɵɵelementEnd();
|
|
13743
13934
|
i0.ɵɵelementEnd();
|
|
13744
13935
|
i0.ɵɵelementEnd();
|
|
13745
|
-
i0.ɵɵelementStart(20, "div",
|
|
13746
|
-
i0.ɵɵtemplate(21, BasketPreviewLineComponent_ng_template_1_div_21_Template, 7, 3, "div",
|
|
13747
|
-
i0.ɵɵtemplate(22, BasketPreviewLineComponent_ng_template_1_ng_template_22_Template, 1, 2, "ng-template", null,
|
|
13748
|
-
i0.ɵɵelementStart(24, "div",
|
|
13749
|
-
i0.ɵɵtemplate(25, BasketPreviewLineComponent_ng_template_1_div_25_Template, 2, 0, "div",
|
|
13750
|
-
i0.ɵɵelementStart(26, "ng-miam-counter-input",
|
|
13936
|
+
i0.ɵɵelementStart(20, "div", 49);
|
|
13937
|
+
i0.ɵɵtemplate(21, BasketPreviewLineComponent_ng_template_1_div_21_Template, 7, 3, "div", 50);
|
|
13938
|
+
i0.ɵɵtemplate(22, BasketPreviewLineComponent_ng_template_1_ng_template_22_Template, 1, 2, "ng-template", null, 51, i0.ɵɵtemplateRefExtractor);
|
|
13939
|
+
i0.ɵɵelementStart(24, "div", 52);
|
|
13940
|
+
i0.ɵɵtemplate(25, BasketPreviewLineComponent_ng_template_1_div_25_Template, 2, 0, "div", 53);
|
|
13941
|
+
i0.ɵɵelementStart(26, "ng-miam-counter-input", 54);
|
|
13751
13942
|
i0.ɵɵlistener("valueChange", function BasketPreviewLineComponent_ng_template_1_Template_ng_miam_counter_input_valueChange_26_listener($event) { i0.ɵɵrestoreView(_r67); const ctx_r71 = i0.ɵɵnextContext(); return ctx_r71.changeCount($event); });
|
|
13752
13943
|
i0.ɵɵelementEnd();
|
|
13753
|
-
i0.ɵɵtemplate(27, BasketPreviewLineComponent_ng_template_1_div_27_Template, 3, 2, "div",
|
|
13944
|
+
i0.ɵɵtemplate(27, BasketPreviewLineComponent_ng_template_1_div_27_Template, 3, 2, "div", 55);
|
|
13754
13945
|
i0.ɵɵelementEnd();
|
|
13755
|
-
i0.ɵɵtemplate(28, BasketPreviewLineComponent_ng_template_1_div_28_Template, 3, 3, "div",
|
|
13946
|
+
i0.ɵɵtemplate(28, BasketPreviewLineComponent_ng_template_1_div_28_Template, 3, 3, "div", 56);
|
|
13756
13947
|
i0.ɵɵelementEnd();
|
|
13757
13948
|
i0.ɵɵelementEnd();
|
|
13758
13949
|
i0.ɵɵelementEnd();
|
|
13759
|
-
i0.ɵɵtemplate(29, BasketPreviewLineComponent_ng_template_1_div_29_Template, 4, 2, "div",
|
|
13950
|
+
i0.ɵɵtemplate(29, BasketPreviewLineComponent_ng_template_1_div_29_Template, 4, 2, "div", 57);
|
|
13760
13951
|
} if (rf & 2) {
|
|
13761
13952
|
const _r28 = i0.ɵɵreference(23);
|
|
13762
13953
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
13763
13954
|
i0.ɵɵpropertyInterpolate("id", ctx_r2.line.id);
|
|
13764
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(
|
|
13955
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(27, _c35, ctx_r2.line.hasEntries() || ctx_r2.line.displayMode, ctx_r2.expanded, ctx_r2.selectItem));
|
|
13765
13956
|
i0.ɵɵadvance(3);
|
|
13766
13957
|
i0.ɵɵproperty("ngIf", !ctx_r2.uniqueLine && !ctx_r2.line.displayMode);
|
|
13767
13958
|
i0.ɵɵadvance(2);
|
|
13768
|
-
i0.ɵɵproperty("alt", (ctx_r2.line.isRecipe ? "
|
|
13959
|
+
i0.ɵɵproperty("alt", ctx_r2.line.title || (ctx_r2.line.isRecipe ? "Image de recette" : "Image de produit"))("src", ctx_r2.line.picture, i0.ɵɵsanitizeUrl);
|
|
13769
13960
|
i0.ɵɵadvance(1);
|
|
13770
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
13961
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(31, _c36, ctx_r2.line.inlineTag));
|
|
13771
13962
|
i0.ɵɵadvance(1);
|
|
13772
13963
|
i0.ɵɵproperty("ngIf", ctx_r2.sponsorised);
|
|
13773
13964
|
i0.ɵɵadvance(3);
|
|
13774
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11,
|
|
13965
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(11, 25, ctx_r2.line.title));
|
|
13775
13966
|
i0.ɵɵadvance(3);
|
|
13776
13967
|
i0.ɵɵproperty("ngIf", ctx_r2.line.description.length > 0);
|
|
13777
13968
|
i0.ɵɵadvance(1);
|
|
@@ -13786,7 +13977,9 @@ function BasketPreviewLineComponent_ng_template_1_Template(rf, ctx) { if (rf & 1
|
|
|
13786
13977
|
i0.ɵɵproperty("ngIf", ctx_r2.line.inlineTag);
|
|
13787
13978
|
i0.ɵɵadvance(2);
|
|
13788
13979
|
i0.ɵɵproperty("ngIf", ctx_r2.displayTotalPricing || !ctx_r2.line.isRecipe)("ngIfElse", _r28);
|
|
13789
|
-
i0.ɵɵadvance(
|
|
13980
|
+
i0.ɵɵadvance(3);
|
|
13981
|
+
i0.ɵɵattribute("aria-label", ctx_r2.line.isRecipe ? "pour " + ctx_r2.line.count + " " + (ctx_r2.line.count > 1 ? "personnes" : "personne") : "");
|
|
13982
|
+
i0.ɵɵadvance(1);
|
|
13790
13983
|
i0.ɵɵproperty("ngIf", ctx_r2.line.isRecipe);
|
|
13791
13984
|
i0.ɵɵadvance(1);
|
|
13792
13985
|
i0.ɵɵproperty("debounceTime", 300)("value", ctx_r2.line.count)("minRange", ctx_r2.line.isRecipe ? 1 : 0)("disable", ctx_r2.disableCounter);
|
|
@@ -14205,13 +14398,13 @@ BasketPreviewLineComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BasketPreviewL
|
|
|
14205
14398
|
}
|
|
14206
14399
|
else {
|
|
14207
14400
|
i18n_33 = $localize `:␟1eacd4f46056d28691469ea02279e20c0642e699␟8327069019640670106:Calcul des ingrédients...`;
|
|
14208
|
-
} return [[4, "ngIf", "ngIfElse"], ["legacyView", ""], [1, "miam-basket-preview-line", 3, "id"], [1, "miam-basket-preview-line__left", 3, "ngClass"], [1, "miam-basket-preview-line__picture"], [3, "alt", "src", "click", "error"], ["class", "miam-basket-preview-line__counter", 4, "ngIf"], [1, "miam-basket-preview-line__right"], [1, "miam-basket-preview-line__top"], [1, "miam-basket-preview-line__infos"], [1, "miam-basket-preview-line__title", "miam-ds-text", "weight-xxl", "size-m", 3, "click"], [1, "miam-basket-preview-line__product-count", "miam-ds-text", "weight-l", "size-s"], [4, "ngIf"], [3, "selectedOption", "options", "optionSelected", 4, "ngIf"], [1, "miam-basket-preview-line__remove", "miam-ds-button", "ghost", 3, "ngClass", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "
|
|
14209
|
-
i0.ɵɵtemplate(0, BasketPreviewLineComponent_ng_container_0_Template, 28,
|
|
14210
|
-
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_Template, 30,
|
|
14401
|
+
} return [[4, "ngIf", "ngIfElse"], ["legacyView", ""], [1, "miam-basket-preview-line", 3, "id"], [1, "miam-basket-preview-line__left", 3, "ngClass"], [1, "miam-basket-preview-line__picture"], [3, "alt", "src", "click", "error"], ["class", "miam-basket-preview-line__counter", 4, "ngIf"], [1, "miam-basket-preview-line__right"], [1, "miam-basket-preview-line__top"], [1, "miam-basket-preview-line__infos"], [1, "miam-basket-preview-line__title", "miam-ds-text", "weight-xxl", "size-m", 3, "click"], [1, "miam-basket-preview-line__product-count", "miam-ds-text", "weight-l", "size-s"], ["aria-hidden", "true"], ["aria-hidden", "true", 4, "ngIf"], [4, "ngIf"], [3, "selectedOption", "options", "optionSelected", 4, "ngIf"], ["aria-label", "Supprimer", 1, "miam-basket-preview-line__remove", "miam-ds-button", "ghost", 3, "ngClass", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "", "aria-hidden", "true", 4, "ngIf", "ngIfElse"], ["removeLoader", ""], [1, "miam-basket-preview-line__link", "miam-ds-button", "ghost", 3, "click"], i18n_0, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", "alt", "", "aria-hidden", "true"], [1, "miam-basket-preview-line__counter"], ["aria-hidden", "true", 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"], i18n_2, i18n_4, [1, "miam-basket-preview-line__price-label", "miam-ds-text", "weight-xxl", 3, "price"], [1, "miam-basket-preview-line__price-per-person-label", "miam-ds-text", "weight-l", "size-xs"], i18n_6, ["aria-hidden", "true", 3, "price"], i18n_8, [3, "selectedOption", "options", "optionSelected"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "", "aria-hidden", "true"], [1, "miam-ds-loader"], [1, "miam-basket-preview-line", "legacy", 3, "id", "ngClass", "click"], [1, "miam-basket-preview-line__item"], [1, "miam-basket-preview-line__item__left"], ["class", "miam-ds-button ghost square miam-basket-preview-line__item__remove", "aria-label", "Supprimer", 3, "ngClass", "click", 4, "ngIf"], [1, "miam-basket-preview-line__item__picture"], [1, "miam-basket-preview-line__item__details", 3, "ngClass"], ["class", "miam-basket-preview-line__item__sponsorised", 4, "ngIf"], [1, "miam-basket-preview-line__item__title", 3, "click"], [1, "miam-basket-preview-line__item__description"], [1, "miam-basket-preview-line__item__actions"], ["class", "miam-basket-preview-line__item__showDetails", 3, "ngClass", 4, "ngIf"], ["class", "miam-basket-preview-line__item__showDetails", 4, "ngIf"], ["class", "miam-basket-preview-line__item__change", 3, "click", 4, "ngIf"], ["class", "miam-basket-preview-line__item__inlineTag__container", 4, "ngIf"], [1, "miam-basket-preview-line__item__right"], ["class", "miam-basket-preview-line__item__price", 4, "ngIf", "ngIfElse"], ["pricePerguest", ""], [1, "miam-basket-preview-line__item__count"], ["class", "miam-basket-preview-line__item__count__for", "aria-hidden", "true", 4, "ngIf"], [3, "debounceTime", "value", "minRange", "disable", "valueChange"], ["class", "miam-basket-preview-line__item__count__people", "aria-hidden", "true", 4, "ngIf"], ["class", "miam-basket-preview-line__add__button", 4, "ngIf"], ["class", "miam-basket-preview-lines", 4, "ngIf"], ["aria-label", "Supprimer", 1, "miam-ds-button", "ghost", "square", "miam-basket-preview-line__item__remove", 3, "ngClass", "click"], [3, "iconName", "height", "width", 4, "ngIf", "ngIfElse"], [3, "iconName", "height", "width"], [1, "miam-basket-preview-line__item__sponsorised"], i18n_13, ["class", "miam-basket-preview-line__item__description__part", 4, "ngFor", "ngForOf"], i18n_15, [1, "miam-basket-preview-line__item__description__part"], [1, "miam-basket-preview-line__item__showDetails", 3, "ngClass"], i18n_17, i18n_19, [1, "miam-basket-preview-line__item__showDetails"], i18n_22, [1, "miam-basket-preview-line__item__change", 3, "click"], [1, "miam-basket-preview-line__item__change__link", 3, "ngClass"], i18n_24, [1, "miam-basket-preview-line__item__inlineTag__container"], [1, "miam-basket-preview-line__item__inlineTag"], [4, "ngFor", "ngForOf"], [1, "miam-basket-preview-line__item__price"], [3, "recipeId", "serves"], ["aria-hidden", "true", 1, "miam-basket-preview-line__item__count__for"], i18n_27, ["aria-hidden", "true", 1, "miam-basket-preview-line__item__count__people"], i18n_29, i18n_31, [1, "miam-basket-preview-line__add__button"], ["aria-label", "Ajouter au panier", 1, "m-button-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-basket-preview-lines"], ["loader", ""], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "legacyMode", "removed", "replaceItem", 4, "ngFor", "ngForOf"], ["mode", "unavailable", 3, "entries", "alwaysExpanded", 4, "ngIf"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded", 4, "ngIf"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded", 4, "ngIf"], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "legacyMode", "removed", "replaceItem"], ["mode", "unavailable", 3, "entries", "alwaysExpanded"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded"], [1, "miam-basket-preview-line__loader-container"], i18n_33]; }, template: function BasketPreviewLineComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14402
|
+
i0.ɵɵtemplate(0, BasketPreviewLineComponent_ng_container_0_Template, 28, 21, "ng-container", 0);
|
|
14403
|
+
i0.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_Template, 30, 33, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
14211
14404
|
} if (rf & 2) {
|
|
14212
14405
|
const _r1 = i0.ɵɵreference(2);
|
|
14213
14406
|
i0.ɵɵproperty("ngIf", !ctx.legacyMode)("ngIfElse", _r1);
|
|
14214
|
-
} }, directives: [i2.NgIf, i2.NgClass, PriceComponent, GuestsDropdownComponent, CounterInputComponent, IconComponent, i2.NgForOf, RecipePricingComponent, BasketPreviewLineComponent, BasketPreviewDisabledComponent, LoaderComponent], pipes: [CapitalizeFirstLetterPipe, i2.CurrencyPipe, i2.AsyncPipe], styles: [".miam-basket-preview-line:not(.legacy){display:flex;padding:12px;align-items:flex-start;gap:16px;align-self:stretch;border-radius:12px;border:1px solid var(--miam-ds-color-border,#d6e1ec);background:var(--miam-ds-color-background-primary,#fff)}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{position:relative;width:144px;height:144px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left__big{height:unset;min-height:144px;align-self:stretch}@media (max-width:360px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{width:112px;height:112px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left__big{height:unset;min-height:112px;align-self:stretch}}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture{height:100%;width:100%;border-radius:12px;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;border-radius:12px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter{position:absolute;right:8px;bottom:8px;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}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter span{line-height:100%}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter img{width:16px;height:16px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top{display:flex;align-items:flex-start;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;color:var(--miam-ds-color-neutral-black,#02182b);text-overflow:ellipsis;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__product-count{display:flex;color:var(--text-subtle,rgba(31,53,67,.5));gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__price-label{line-height:0;color:var(--miam-ds-color-primary,#24748f)}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__price-per-person-label{color:var(--text-subtle,rgba(31,53,67,.5))}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove{flex-shrink:0}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove .miam-loader,.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove img{height:24px;width:24px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link{padding:4px 16px;gap:8px}@media (max-width:375px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link img{display:none}}:root{--price-color:var(--miam-price-color,green) ;--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line.legacy{overflow:hidden;padding-left:10px;-webkit-tap-highlight-color:transparent}.miam-basket-preview-line.legacy.clickable{cursor:pointer;border-radius:4px;margin-bottom:6px;border:1px solid var(--m-color-grey);box-shadow:none;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.legacy.expanded{position:relative;background:#fff;box-shadow:var(--m-shadow-small);border-color:var(--m-color-grey);margin-top:10px;margin-bottom:15px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left{gap:16px;display:flex;align-items:center;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{align-self:center}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove.disabled{filter:opacity(.3)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .miam-ds-loader{width:16px;height:16px;background-position-x:8px;background-size:8px 8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:130px;height:100px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__sponsorised{display:flex;justify-content:center;align-items:center;padding:4px 12px;border-radius:100px;background-color:var(--m-color-grey);font-size:14px;font-weight:500;line-height:150%;width:-moz-fit-content;width:fit-content;margin-bottom:8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--m-font-size-medium)}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-primary);text-decoration:underline}}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:first-letter{text-transform:capitalize}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description{font-size:var(--m-font-size-small);font-weight:400}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description .miam-basket-preview-line__item__description__part{margin-right:4px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{display:flex;flex-direction:row}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__showDetails{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;width:-moz-max-content;width:max-content;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link:hover{color:var(--m-color-primary)}}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link.disable{pointer-events:none;color:var(--m-color-grey-text)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{display:flex;align-items:center;height:22px;padding:1px 16px;font-size:var(--m-font-size-small);border-radius:100px;background-color:var(--tag-color)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag span:not(:last-child){margin-right:4px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right{max-width:330px;position:relative;display:flex;align-items:center;justify-content:flex-end;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 20px;font-size:var(--m-font-size-large);font-weight:700;white-space:nowrap;color:var(--price-color)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{text-align:center;font-size:var(--m-font-size-small)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{margin-bottom:2px;padding-left:20px;font-weight:700;color:var(--m-color-slate)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__add__button{margin:0 20px}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__left,.miam-basket-preview-line.legacy .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__showDetails{color:var(--m-color-primary)}}.miam-basket-preview-lines{margin-bottom:20px;border-left:1px solid var(--m-color-grey);overflow:hidden;margin-left:20px}.miam-basket-preview-lines .miam-basket-preview-line{border-top:1px solid var(--m-color-grey)}.miam-basket-preview-lines .miam-basket-preview-line.expanded{border-top:1px solid var(--m-color-primary)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{border-top:none;padding:12px 0 15px}@media (min-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details:hover,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__title:hover{color:var(--m-color-black);text-decoration:none}}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{margin-right:15px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:50px;height:50px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{margin-top:-16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{font-size:16px;color:var(--m-color-grey-text)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count ng-miam-counter-input .miam-counter-input__icon{display:none}.miam-basket-preview-lines .miam-basket-preview-line__loader-container{padding:10px;display:flex;flex-direction:column;justify-content:center;align-items:center}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;position:relative;padding:0 0 52px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:92px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{position:absolute;right:18px;margin:0;bottom:58px;z-index:1}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:152px;width:33%;position:absolute;top:16px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{height:100%;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:8px 0 0 40%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{position:absolute;bottom:8px;left:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{height:auto;text-align:center;padding:1px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{justify-content:flex-start;padding-left:38%;flex-direction:column-reverse;align-items:flex-start}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{display:none}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:auto;position:relative;padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:auto}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{position:relative;right:unset;margin-right:15px;bottom:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:72px;width:72px;position:relative;top:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:72px;height:72px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions{position:relative;bottom:unset;flex-direction:column;gap:8px}}@media (max-width:1022px) and (min-width:1023px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container{width:100%}}@media (max-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container .miam-basket-preview-line__item__inlineTag{padding:4px 16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{flex-direction:row;margin:16px 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 16px 0 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:0}}"], encapsulation: 2, changeDetection: 0 });
|
|
14407
|
+
} }, directives: [i2.NgIf, i2.NgClass, PriceComponent, GuestsDropdownComponent, CounterInputComponent, IconComponent, i2.NgForOf, RecipePricingComponent, BasketPreviewLineComponent, BasketPreviewDisabledComponent, LoaderComponent], pipes: [CapitalizeFirstLetterPipe, i2.CurrencyPipe, i2.AsyncPipe], styles: [".miam-basket-preview-line:not(.legacy){display:flex;padding:12px;align-items:flex-start;gap:16px;align-self:stretch;border-radius:12px;border:1px solid var(--miam-ds-color-border,#d6e1ec);background:var(--miam-ds-color-background-primary,#fff)}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{position:relative;width:144px;height:144px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left__big{height:unset;min-height:144px;align-self:stretch}@media (max-width:360px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{width:112px;height:112px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left__big{height:unset;min-height:112px;align-self:stretch}}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture{height:100%;width:100%;border-radius:12px;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;border-radius:12px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter{position:absolute;right:8px;bottom:8px;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}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter span{line-height:100%}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter img{width:16px;height:16px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top{display:flex;align-items:flex-start;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;color:var(--miam-ds-color-neutral-black,#02182b);text-overflow:ellipsis;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__product-count{display:flex;color:var(--text-subtle,rgba(31,53,67,.5));gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__price-label{line-height:0;color:var(--miam-ds-color-primary,#24748f)}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__price-per-person-label{color:var(--text-subtle,rgba(31,53,67,.5));display:inline-flex}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__price-per-person-label ng-miam-price{margin:0 0 0 4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove{flex-shrink:0}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove .miam-loader,.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove img{height:24px;width:24px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link{padding:4px 16px;gap:8px}@media (max-width:375px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link img{display:none}}:root{--price-color:var(--miam-price-color,green) ;--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line.legacy{overflow:hidden;padding-left:10px;-webkit-tap-highlight-color:transparent}.miam-basket-preview-line.legacy.clickable{cursor:pointer;border-radius:4px;margin-bottom:6px;border:1px solid var(--m-color-grey);box-shadow:none;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.legacy.expanded{position:relative;background:#fff;box-shadow:var(--m-shadow-small);border-color:var(--m-color-grey);margin-top:10px;margin-bottom:15px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left{gap:16px;display:flex;align-items:center;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{align-self:center}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove.disabled{filter:opacity(.3)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .miam-ds-loader{width:16px;height:16px;background-position-x:8px;background-size:8px 8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:130px;height:100px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__sponsorised{display:flex;justify-content:center;align-items:center;padding:4px 12px;border-radius:100px;background-color:var(--m-color-grey);font-size:14px;font-weight:500;line-height:150%;width:-moz-fit-content;width:fit-content;margin-bottom:8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--m-font-size-medium)}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-primary);text-decoration:underline}}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:first-letter{text-transform:capitalize}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description{font-size:var(--m-font-size-small);font-weight:400}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description .miam-basket-preview-line__item__description__part{margin-right:4px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{display:flex;flex-direction:row}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__showDetails{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;width:-moz-max-content;width:max-content;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link:hover{color:var(--m-color-primary)}}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link.disable{pointer-events:none;color:var(--m-color-grey-text)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{display:flex;align-items:center;height:22px;padding:1px 16px;font-size:var(--m-font-size-small);border-radius:100px;background-color:var(--tag-color)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag span:not(:last-child){margin-right:4px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right{max-width:330px;position:relative;display:flex;align-items:center;justify-content:flex-end;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 20px;font-size:var(--m-font-size-large);font-weight:700;white-space:nowrap;color:var(--price-color)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{text-align:center;font-size:var(--m-font-size-small)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{margin-bottom:2px;padding-left:20px;font-weight:700;color:var(--m-color-slate)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__add__button{margin:0 20px}@media (min-width:1022px){.miam-basket-preview-line.legacy .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__left,.miam-basket-preview-line.legacy .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__showDetails{color:var(--m-color-primary)}}.miam-basket-preview-lines{margin-bottom:20px;border-left:1px solid var(--m-color-grey);overflow:hidden;margin-left:20px}.miam-basket-preview-lines .miam-basket-preview-line{border-top:1px solid var(--m-color-grey)}.miam-basket-preview-lines .miam-basket-preview-line.expanded{border-top:1px solid var(--m-color-primary)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{border-top:none;padding:12px 0 15px}@media (min-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details:hover,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__title:hover{color:var(--m-color-black);text-decoration:none}}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{margin-right:15px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:50px;height:50px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{margin-top:-16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{font-size:16px;color:var(--m-color-grey-text)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count ng-miam-counter-input .miam-counter-input__icon{display:none}.miam-basket-preview-lines .miam-basket-preview-line__loader-container{padding:10px;display:flex;flex-direction:column;justify-content:center;align-items:center}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;position:relative;padding:0 0 52px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:92px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{position:absolute;right:18px;margin:0;bottom:58px;z-index:1}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:152px;width:33%;position:absolute;top:16px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{height:100%;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:8px 0 0 40%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{position:absolute;bottom:8px;left:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{height:auto;text-align:center;padding:1px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{justify-content:flex-start;padding-left:38%;flex-direction:column-reverse;align-items:flex-start}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{display:none}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:auto;position:relative;padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:auto}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{position:relative;right:unset;margin-right:15px;bottom:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:72px;width:72px;position:relative;top:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:72px;height:72px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions{position:relative;bottom:unset;flex-direction:column;gap:8px}}@media (max-width:1022px) and (min-width:1023px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container{width:100%}}@media (max-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container .miam-basket-preview-line__item__inlineTag{padding:4px 16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{flex-direction:row;margin:16px 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 16px 0 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:0}}"], encapsulation: 2, changeDetection: 0 });
|
|
14215
14408
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(BasketPreviewLineComponent, [{
|
|
14216
14409
|
type: Component,
|
|
14217
14410
|
args: [{
|
|
@@ -14249,30 +14442,30 @@ BasketPreviewLineComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BasketPreviewL
|
|
|
14249
14442
|
type: Output
|
|
14250
14443
|
}] }); })();
|
|
14251
14444
|
|
|
14252
|
-
function
|
|
14253
|
-
i0.ɵɵelementStart(0, "div",
|
|
14445
|
+
function BasketPreviewProductComponent_div_0_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
14446
|
+
i0.ɵɵelementStart(0, "div", 20);
|
|
14254
14447
|
i0.ɵɵelementStart(1, "span");
|
|
14255
14448
|
i0.ɵɵtext(2, "Sponsoris\u00E9");
|
|
14256
14449
|
i0.ɵɵelementEnd();
|
|
14257
14450
|
i0.ɵɵelementEnd();
|
|
14258
14451
|
} }
|
|
14259
|
-
function
|
|
14452
|
+
function BasketPreviewProductComponent_div_0_button_20_Template(rf, ctx) { if (rf & 1) {
|
|
14260
14453
|
const _r6 = i0.ɵɵgetCurrentView();
|
|
14261
|
-
i0.ɵɵelementStart(0, "button",
|
|
14262
|
-
i0.ɵɵlistener("click", function
|
|
14454
|
+
i0.ɵɵelementStart(0, "button", 21);
|
|
14455
|
+
i0.ɵɵlistener("click", function BasketPreviewProductComponent_div_0_button_20_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r6); const ctx_r5 = i0.ɵɵnextContext(2); return ctx_r5.replaceProduct(); });
|
|
14263
14456
|
i0.ɵɵelementStart(1, "span");
|
|
14264
|
-
i0.ɵɵi18n(2,
|
|
14457
|
+
i0.ɵɵi18n(2, 22);
|
|
14265
14458
|
i0.ɵɵelementEnd();
|
|
14266
14459
|
i0.ɵɵelementEnd();
|
|
14267
14460
|
} if (rf & 2) {
|
|
14268
14461
|
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
14269
14462
|
i0.ɵɵproperty("disabled", ctx_r2.loading);
|
|
14270
14463
|
} }
|
|
14271
|
-
function
|
|
14272
|
-
i0.ɵɵelement(0, "div",
|
|
14464
|
+
function BasketPreviewProductComponent_div_0_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
14465
|
+
i0.ɵɵelement(0, "div", 23);
|
|
14273
14466
|
} }
|
|
14274
|
-
function
|
|
14275
|
-
i0.ɵɵelement(0, "img",
|
|
14467
|
+
function BasketPreviewProductComponent_div_0_img_23_Template(rf, ctx) { if (rf & 1) {
|
|
14468
|
+
i0.ɵɵelement(0, "img", 24);
|
|
14276
14469
|
} }
|
|
14277
14470
|
const _c2$4 = function (a0) { return { loading: a0 }; };
|
|
14278
14471
|
function BasketPreviewProductComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
@@ -14296,27 +14489,33 @@ function BasketPreviewProductComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
14296
14489
|
i0.ɵɵelementEnd();
|
|
14297
14490
|
i0.ɵɵelementStart(11, "div", 9);
|
|
14298
14491
|
i0.ɵɵelementStart(12, "div", 10);
|
|
14299
|
-
i0.ɵɵ
|
|
14300
|
-
i0.ɵɵ
|
|
14492
|
+
i0.ɵɵpipe(13, "number");
|
|
14493
|
+
i0.ɵɵelementStart(14, "span", 11);
|
|
14494
|
+
i0.ɵɵtext(15);
|
|
14495
|
+
i0.ɵɵpipe(16, "number");
|
|
14301
14496
|
i0.ɵɵelementEnd();
|
|
14497
|
+
i0.ɵɵelementStart(17, "span", 11);
|
|
14498
|
+
i0.ɵɵtext(18);
|
|
14302
14499
|
i0.ɵɵelementEnd();
|
|
14303
|
-
i0.ɵɵtemplate(15, BasketPreviewProductComponent_div_0_div_15_Template, 3, 0, "div", 11);
|
|
14304
|
-
i0.ɵɵtemplate(16, BasketPreviewProductComponent_div_0_button_16_Template, 3, 1, "button", 12);
|
|
14305
14500
|
i0.ɵɵelementEnd();
|
|
14306
|
-
i0.ɵɵelementStart(17, "button", 13);
|
|
14307
|
-
i0.ɵɵlistener("click", function BasketPreviewProductComponent_div_0_Template_button_click_17_listener() { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.removeProduct(); });
|
|
14308
|
-
i0.ɵɵtemplate(18, BasketPreviewProductComponent_div_0_div_18_Template, 1, 0, "div", 14);
|
|
14309
|
-
i0.ɵɵtemplate(19, BasketPreviewProductComponent_div_0_img_19_Template, 1, 0, "img", 15);
|
|
14310
14501
|
i0.ɵɵelementEnd();
|
|
14502
|
+
i0.ɵɵtemplate(19, BasketPreviewProductComponent_div_0_div_19_Template, 3, 0, "div", 12);
|
|
14503
|
+
i0.ɵɵtemplate(20, BasketPreviewProductComponent_div_0_button_20_Template, 3, 1, "button", 13);
|
|
14311
14504
|
i0.ɵɵelementEnd();
|
|
14505
|
+
i0.ɵɵelementStart(21, "button", 14);
|
|
14506
|
+
i0.ɵɵlistener("click", function BasketPreviewProductComponent_div_0_Template_button_click_21_listener() { i0.ɵɵrestoreView(_r8); const ctx_r9 = i0.ɵɵnextContext(); return ctx_r9.removeProduct(); });
|
|
14507
|
+
i0.ɵɵtemplate(22, BasketPreviewProductComponent_div_0_div_22_Template, 1, 0, "div", 15);
|
|
14508
|
+
i0.ɵɵtemplate(23, BasketPreviewProductComponent_div_0_img_23_Template, 1, 0, "img", 16);
|
|
14312
14509
|
i0.ɵɵelementEnd();
|
|
14313
|
-
i0.ɵɵelementStart(20, "div", 16);
|
|
14314
|
-
i0.ɵɵelementStart(21, "span", 17);
|
|
14315
|
-
i0.ɵɵtext(22);
|
|
14316
|
-
i0.ɵɵpipe(23, "currency");
|
|
14317
14510
|
i0.ɵɵelementEnd();
|
|
14318
|
-
i0.ɵɵ
|
|
14319
|
-
i0.ɵɵ
|
|
14511
|
+
i0.ɵɵelementEnd();
|
|
14512
|
+
i0.ɵɵelementStart(24, "div", 17);
|
|
14513
|
+
i0.ɵɵelementStart(25, "span", 18);
|
|
14514
|
+
i0.ɵɵtext(26);
|
|
14515
|
+
i0.ɵɵpipe(27, "currency");
|
|
14516
|
+
i0.ɵɵelementEnd();
|
|
14517
|
+
i0.ɵɵelementStart(28, "ng-miam-counter-input", 19);
|
|
14518
|
+
i0.ɵɵlistener("valueChange", function BasketPreviewProductComponent_div_0_Template_ng_miam_counter_input_valueChange_28_listener($event) { i0.ɵɵrestoreView(_r8); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.counterChanged($event); });
|
|
14320
14519
|
i0.ɵɵelementEnd();
|
|
14321
14520
|
i0.ɵɵelementEnd();
|
|
14322
14521
|
i0.ɵɵelementEnd();
|
|
@@ -14324,23 +14523,27 @@ function BasketPreviewProductComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
14324
14523
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
14325
14524
|
i0.ɵɵpropertyInterpolate("id", ctx_r0.basketEntry.id);
|
|
14326
14525
|
i0.ɵɵadvance(4);
|
|
14327
|
-
i0.ɵɵproperty("src", ctx_r0.basketEntry.selectedItem.attributes.image, i0.ɵɵsanitizeUrl);
|
|
14526
|
+
i0.ɵɵproperty("alt", ctx_r0.basketEntry.selectedItem.attributes.name || "Image du produit")("src", ctx_r0.basketEntry.selectedItem.attributes.image, i0.ɵɵsanitizeUrl);
|
|
14328
14527
|
i0.ɵɵadvance(5);
|
|
14329
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10,
|
|
14330
|
-
i0.ɵɵadvance(
|
|
14331
|
-
i0.ɵɵ
|
|
14332
|
-
i0.ɵɵadvance(
|
|
14528
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(10, 16, ctx_r0.basketEntry.selectedItem.attributes.name));
|
|
14529
|
+
i0.ɵɵadvance(3);
|
|
14530
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind2(13, 18, ctx_r0.basketEntry.selectedItem.capacityVolume, "1.0-2") + " " + ctx_r0.basketEntry.selectedItem.capacityUnit);
|
|
14531
|
+
i0.ɵɵadvance(3);
|
|
14532
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(16, 21, ctx_r0.basketEntry.selectedItem.capacityVolume, "1.0-2"));
|
|
14533
|
+
i0.ɵɵadvance(3);
|
|
14534
|
+
i0.ɵɵtextInterpolate(ctx_r0.basketEntry.selectedItem.capacityUnit);
|
|
14535
|
+
i0.ɵɵadvance(1);
|
|
14333
14536
|
i0.ɵɵproperty("ngIf", ctx_r0.basketEntry.selectedItem.attributes.promoted);
|
|
14334
14537
|
i0.ɵɵadvance(1);
|
|
14335
14538
|
i0.ɵɵproperty("ngIf", ctx_r0.basketEntry.recipesIds.length != 0 || ctx_r0.displayReplace);
|
|
14336
14539
|
i0.ɵɵadvance(1);
|
|
14337
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
14540
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(27, _c2$4, ctx_r0.loading));
|
|
14338
14541
|
i0.ɵɵadvance(1);
|
|
14339
14542
|
i0.ɵɵproperty("ngIf", ctx_r0.loading);
|
|
14340
14543
|
i0.ɵɵadvance(1);
|
|
14341
14544
|
i0.ɵɵproperty("ngIf", !ctx_r0.loading);
|
|
14342
14545
|
i0.ɵɵadvance(3);
|
|
14343
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(
|
|
14546
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind2(27, 24, ctx_r0.basketEntry.price, ctx_r0.basketEntry.selectedItem.attributes.currency), " ");
|
|
14344
14547
|
i0.ɵɵadvance(2);
|
|
14345
14548
|
i0.ɵɵproperty("value", ctx_r0.basketEntry.quantity)("minusLoading", ctx_r0.minusLoading)("disable", ctx_r0.loading);
|
|
14346
14549
|
} }
|
|
@@ -14439,8 +14642,8 @@ BasketPreviewProductComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BasketPrevi
|
|
|
14439
14642
|
}
|
|
14440
14643
|
else {
|
|
14441
14644
|
i18n_0 = $localize `:␟8e4fa20cb8b77c41c980ba077b80bc8ea128239a␟4705093661060921903:Remplacer`;
|
|
14442
|
-
} 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"], [
|
|
14443
|
-
i0.ɵɵtemplate(0, BasketPreviewProductComponent_div_0_Template,
|
|
14645
|
+
} 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"]]; }, template: function BasketPreviewProductComponent_Template(rf, ctx) { if (rf & 1) {
|
|
14646
|
+
i0.ɵɵtemplate(0, BasketPreviewProductComponent_div_0_Template, 29, 29, "div", 0);
|
|
14444
14647
|
} if (rf & 2) {
|
|
14445
14648
|
i0.ɵɵproperty("ngIf", ctx.basketEntry.selectedItem);
|
|
14446
14649
|
} }, directives: [i2.NgIf, i2.NgClass, CounterInputComponent], pipes: [CapitalizeFirstLetterPipe, i2.DecimalPipe, i2.CurrencyPipe], styles: [".miam-basket-preview-product{display:flex;padding:12px;flex-direction:column;align-items:flex-start;align-self:stretch;background:var(--miam-ds-color-background-primary,#fff)}.miam-basket-preview-product .miam-basket-preview-product__infos-container{display:flex;flex-direction:row;align-items:flex-start;width:100%}.miam-basket-preview-product .miam-basket-preview-product__infos-container .miam-basket-preview-product__picture-container{position:relative;margin-right:12px;margin-bottom:12px}.miam-basket-preview-product .miam-basket-preview-product__infos-container .miam-basket-preview-product__picture-container .miam-basket-preview-product__picture{height:100px;width:100px;border-radius:8px;cursor:pointer}.miam-basket-preview-product .miam-basket-preview-product__infos-container .miam-basket-preview-product__picture-container .miam-basket-preview-product__picture img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;border-radius:8px}.miam-basket-preview-product .miam-basket-preview-product__infos-container .miam-basket-preview-product__infos-and-actions{display:flex;align-items:flex-start;gap:8px;flex:1 0 0}.miam-basket-preview-product .miam-basket-preview-product__infos-container .miam-basket-preview-product__infos-and-actions .miam-basket-preview-product__infos{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;gap:4px}.miam-basket-preview-product .miam-basket-preview-product__infos-container .miam-basket-preview-product__infos-and-actions .miam-basket-preview-product__infos .miam-basket-preview-product__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-product-clamp:2;align-self:stretch;overflow:hidden;color:var(--miam-ds-color-neutral-black,#02182b);text-overflow:ellipsis;cursor:pointer}.miam-basket-preview-product .miam-basket-preview-product__price-and-action{display:flex;flex-direction:row;justify-content:space-between;align-items:center;align-self:stretch}"], encapsulation: 2, changeDetection: 0 });
|
|
@@ -14657,11 +14860,11 @@ function ReplaceItemComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
14657
14860
|
const i_r17 = ctx.index;
|
|
14658
14861
|
const _r19 = i0.ɵɵreference(20);
|
|
14659
14862
|
const ctx_r6 = i0.ɵɵnextContext();
|
|
14660
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
14863
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(20, _c14$1, ctx_r6.isProductDisabled(itemWithPrice_r16.item.id, i_r17)));
|
|
14661
14864
|
i0.ɵɵadvance(1);
|
|
14662
14865
|
i0.ɵɵproperty("priceData", itemWithPrice_r16.price);
|
|
14663
14866
|
i0.ɵɵadvance(3);
|
|
14664
|
-
i0.ɵɵproperty("src", itemWithPrice_r16.item.attributes.image, i0.ɵɵsanitizeUrl);
|
|
14867
|
+
i0.ɵɵproperty("alt", itemWithPrice_r16.item.attributes.name || "Image du produit")("src", itemWithPrice_r16.item.attributes.image, i0.ɵɵsanitizeUrl);
|
|
14665
14868
|
i0.ɵɵadvance(4);
|
|
14666
14869
|
i0.ɵɵtextInterpolate(itemWithPrice_r16.item.attributes.brand);
|
|
14667
14870
|
i0.ɵɵadvance(3);
|
|
@@ -14669,9 +14872,9 @@ function ReplaceItemComponent_div_14_Template(rf, ctx) { if (rf & 1) {
|
|
|
14669
14872
|
i0.ɵɵadvance(1);
|
|
14670
14873
|
i0.ɵɵproperty("isSponsored", itemWithPrice_r16.item.attributes.sponsored)("item", itemWithPrice_r16.item)("price", itemWithPrice_r16.price);
|
|
14671
14874
|
i0.ɵɵadvance(2);
|
|
14672
|
-
i0.ɵɵproperty("oldPrice", i0.ɵɵpipeBind2(15,
|
|
14875
|
+
i0.ɵɵproperty("oldPrice", i0.ɵɵpipeBind2(15, 14, ctx_r6.priceService.getOldPrice(itemWithPrice_r16.price), itemWithPrice_r16.item.attributes.currency))("price", i0.ɵɵpipeBind2(16, 17, ctx_r6.priceService.getCurrentPrice(itemWithPrice_r16.price), itemWithPrice_r16.item.attributes.currency));
|
|
14673
14876
|
i0.ɵɵadvance(3);
|
|
14674
|
-
i0.ɵɵproperty("disabled",
|
|
14877
|
+
i0.ɵɵproperty("disabled", ctx_r6.isProductDisabled(itemWithPrice_r16.item.id, i_r17));
|
|
14675
14878
|
i0.ɵɵadvance(1);
|
|
14676
14879
|
i0.ɵɵproperty("ngIf", ctx_r6.replaceItemLoading && ctx_r6.replaceItemLoading === itemWithPrice_r16.item)("ngIfElse", _r19);
|
|
14677
14880
|
} }
|
|
@@ -14875,6 +15078,12 @@ class ReplaceItemComponent extends EventTracerComponent {
|
|
|
14875
15078
|
this.subscriptions.push(this.recipeDetailsService.canAddProductToBasket(this.getAddIngredientMethod(), this.eventTrace).pipe(filter(passed => passed), switchMap(() => this.basketsService.basketEntryFromIngredient(this.ingredient.id, +this.recipe.modifiedGuests, true, item.id))).subscribe((newEntry) => this.handleAddToBasketResponse(newEntry)));
|
|
14876
15079
|
this.cdr.detectChanges();
|
|
14877
15080
|
}
|
|
15081
|
+
isProductDisabled(id, index) {
|
|
15082
|
+
var _a;
|
|
15083
|
+
return ((!this.ignoreSelected && ((_a = this.basketEntry.selectedItem) === null || _a === void 0 ? void 0 : _a.id) === id)
|
|
15084
|
+
|| this.basketEntry.status === 'out_of_stock')
|
|
15085
|
+
&& index === 0;
|
|
15086
|
+
}
|
|
14878
15087
|
getAddIngredientMethod() {
|
|
14879
15088
|
return {
|
|
14880
15089
|
method: 'addIngredientToBasket',
|
|
@@ -14995,6 +15204,7 @@ class ReplaceItemComponent extends EventTracerComponent {
|
|
|
14995
15204
|
this.replaceItemLoading = undefined;
|
|
14996
15205
|
this.basketEntry.relationships['selected-item'].data = this.previousItem;
|
|
14997
15206
|
this.cdr.detectChanges();
|
|
15207
|
+
this.onClose();
|
|
14998
15208
|
}
|
|
14999
15209
|
}
|
|
15000
15210
|
ReplaceItemComponent.ɵfac = function ReplaceItemComponent_Factory(t) { return new (t || ReplaceItemComponent)(i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(BasketEntriesService), i0.ɵɵdirectiveInject(ItemsService), i0.ɵɵdirectiveInject(IgnoredIngredientsService), i0.ɵɵdirectiveInject(RecipeDetailsService), i0.ɵɵdirectiveInject(BasketsSynchronizerService), i0.ɵɵdirectiveInject(ProductReplacementService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(PriceService)); };
|
|
@@ -15066,7 +15276,7 @@ ReplaceItemComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReplaceItemComponent
|
|
|
15066
15276
|
}
|
|
15067
15277
|
else {
|
|
15068
15278
|
i18n_21 = $localize `:␟796be7ef70e6714417dffe1ff46622824ce81a03␟3094902783246996897:Trouver une liste de produit en effectuant votre recherche`;
|
|
15069
|
-
} return [[1, "miam-replace-item__header", "miam-ds-text", "weight-xxl"], [1, "miam-ds-button", "ghost", "square", 3, "click"], ["width", "24", "height", "24", "primaryColor", "var(--miam-ds-color-primary-500)", 3, "iconName"], [4, "ngIf", "ngIfElse"], ["addProduct", ""], [1, "miam-replace-item__top-container"], [1, "miam-replace-item__searchbar"], ["width", "20", "height", "20", 3, "iconName"], ["type", "text", "placeholder", i18n_0, "class", "miam-replace-item__searchbar__input miam-ds-text size-m weight-l", 3, "ngModel", "ngModelChange", 4, "ngIf"], ["type", "text", "placeholder", i18n_2, "class", "miam-replace-item__searchbar__input miam-ds-text size-m weight-l", 3, "ngModel", "ngModelChange", 4, "ngIf"], [1, "miam-ds-loader"], ["class", "miam-replace-item__product-banner", 4, "ngIf"], [1, "miam-replace-item__product-list"], ["class", "miam-replace-item__product-item", 3, "ngClass", 4, "ngFor", "ngForOf"], [4, "ngIf"], i18n_4, i18n_6, ["type", "text", "placeholder", i18n_0, 1, "miam-replace-item__searchbar__input", "miam-ds-text", "size-m", "weight-l", 3, "ngModel", "ngModelChange"], ["type", "text", "placeholder", i18n_2, 1, "miam-replace-item__searchbar__input", "miam-ds-text", "size-m", "weight-l", 3, "ngModel", "ngModelChange"], [1, "miam-replace-item__product-banner"], [1, "miam-replace-item__banner-product-name", "miam-ds-text", "size-s"], [1, "miam-replace-item__banner-quantity", "miam-ds-text", "weight-xxl"], [1, "miam-replace-item__product-item", 3, "ngClass"], [1, "miam-replace-item__promotions", 3, "priceData"], [1, "miam-replace-item__card-upper-section"], [1, "miam-replace-item__product-image-container"], [
|
|
15279
|
+
} return [[1, "miam-replace-item__header", "miam-ds-text", "weight-xxl"], ["aria-label", "Fermer", 1, "miam-ds-button", "ghost", "square", 3, "click"], ["width", "24", "height", "24", "primaryColor", "var(--miam-ds-color-primary-500)", 3, "iconName"], [4, "ngIf", "ngIfElse"], ["addProduct", ""], [1, "miam-replace-item__top-container"], [1, "miam-replace-item__searchbar"], ["width", "20", "height", "20", "aria-hidden", "true", 3, "iconName"], ["type", "text", "placeholder", i18n_0, "class", "miam-replace-item__searchbar__input miam-ds-text size-m weight-l", "aria-label", "Rechercher un produit de substitution", 3, "ngModel", "ngModelChange", 4, "ngIf"], ["type", "text", "placeholder", i18n_2, "class", "miam-replace-item__searchbar__input miam-ds-text size-m weight-l", "aria-label", "Je cherche un produit", 3, "ngModel", "ngModelChange", 4, "ngIf"], [1, "miam-ds-loader"], ["class", "miam-replace-item__product-banner", 4, "ngIf"], [1, "miam-replace-item__product-list"], ["class", "miam-replace-item__product-item", 3, "ngClass", 4, "ngFor", "ngForOf"], [4, "ngIf"], i18n_4, i18n_6, ["type", "text", "placeholder", i18n_0, "aria-label", "Rechercher un produit de substitution", 1, "miam-replace-item__searchbar__input", "miam-ds-text", "size-m", "weight-l", 3, "ngModel", "ngModelChange"], ["type", "text", "placeholder", i18n_2, "aria-label", "Je cherche un produit", 1, "miam-replace-item__searchbar__input", "miam-ds-text", "size-m", "weight-l", 3, "ngModel", "ngModelChange"], [1, "miam-replace-item__product-banner"], [1, "miam-replace-item__banner-product-name", "miam-ds-text", "size-s"], [1, "miam-replace-item__banner-quantity", "miam-ds-text", "weight-xxl"], [1, "miam-replace-item__product-item", 3, "ngClass"], [1, "miam-replace-item__promotions", 3, "priceData"], [1, "miam-replace-item__card-upper-section"], [1, "miam-replace-item__product-image-container"], [1, "miam-replace-item__product-image", 3, "alt", "src", "error"], [1, "miam-replace-item__product-info"], [1, "miam-replace-item__product-brand", "miam-ds-text", "size-xs", "weight-xl"], [1, "miam-replace-item__product-brand-text"], [1, "miam-replace-item__product-name", "miam-ds-text", "size-xs"], [1, "miam-replace-item__product-name-text"], [3, "isSponsored", "item", "price"], [1, "miam-replace-item__card-lower-section"], [1, "miam-replace-item__product-price", "miam-ds-text", "size-m", "weight-xxl", 3, "oldPrice", "price"], [1, "miam-replace-item__cta", "miam-ds-button", "small", "primary", 3, "disabled", "click"], ["class", "miam-ds-loader", 4, "ngIf", "ngIfElse"], ["defaultSelectButton", ""], ["withSupplier", ""], i18n_8, i18n_10, i18n_12, [1, "miam-replace-item__error"], [1, "miam-replace-item__error-image-container", "small-img"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/product-issue.png", "alt", "Probl\u00E8me de produit", 1, "miam-replace-item__error-image"], [1, "miam-replace-item__issue-entry-name"], [1, "miam-replace-item__issue-title", "miam-replace-item__issue-title__no-substitution"], i18n_15, [1, "miam-replace-item__error-image-container"], [1, "miam-replace-item__issue-search-string"], [1, "miam-replace-item__issue-title", "miam-replace-item__issue-title__not-found"], i18n_17, [1, "miam-replace-item__issue-description", "miam-ds-text", "weight-xxl"], i18n_19, [1, "miam-replace-item__add-product-default"], [1, "miam-replace-item__add-product-image-container"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Search.svg", "alt", "", "aria-hidden", "true", 1, "miam-replace-item__add-product-image"], [1, "miam-replace-item__add-product-title"], i18n_21]; }, template: function ReplaceItemComponent_Template(rf, ctx) { if (rf & 1) {
|
|
15070
15280
|
i0.ɵɵelementStart(0, "div", 0);
|
|
15071
15281
|
i0.ɵɵelementStart(1, "button", 1);
|
|
15072
15282
|
i0.ɵɵlistener("click", function ReplaceItemComponent_Template_button_click_1_listener() { return ctx.onClose(); });
|
|
@@ -15085,7 +15295,7 @@ ReplaceItemComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ReplaceItemComponent
|
|
|
15085
15295
|
i0.ɵɵtemplate(12, ReplaceItemComponent_div_12_Template, 7, 5, "div", 11);
|
|
15086
15296
|
i0.ɵɵelementEnd();
|
|
15087
15297
|
i0.ɵɵelementStart(13, "div", 12);
|
|
15088
|
-
i0.ɵɵtemplate(14, ReplaceItemComponent_div_14_Template, 21,
|
|
15298
|
+
i0.ɵɵtemplate(14, ReplaceItemComponent_div_14_Template, 21, 22, "div", 13);
|
|
15089
15299
|
i0.ɵɵtemplate(15, ReplaceItemComponent_ng_container_15_Template, 9, 1, "ng-container", 14);
|
|
15090
15300
|
i0.ɵɵtemplate(16, ReplaceItemComponent_ng_container_16_Template, 12, 1, "ng-container", 14);
|
|
15091
15301
|
i0.ɵɵtemplate(17, ReplaceItemComponent_ng_container_17_Template, 6, 0, "ng-container", 14);
|
|
@@ -15424,12 +15634,13 @@ class BasketPreviewBlockComponent extends EventTracerComponent {
|
|
|
15424
15634
|
}
|
|
15425
15635
|
}
|
|
15426
15636
|
ngOnChanges(changes) {
|
|
15637
|
+
var _a;
|
|
15427
15638
|
if (Object.keys(changes).includes('recipeId')) {
|
|
15428
15639
|
this.loading.next(true);
|
|
15429
15640
|
}
|
|
15430
15641
|
if (changes.isStoreLocatorDisplayed &&
|
|
15431
15642
|
changes.isStoreLocatorDisplayed.previousValue !== changes.isStoreLocatorDisplayed.currentValue &&
|
|
15432
|
-
!this.isStoreLocatorDisplayed) {
|
|
15643
|
+
!this.isStoreLocatorDisplayed && ((_a = this.recipeService.displayedRecipe$.value) === null || _a === void 0 ? void 0 : _a.previewMode)) {
|
|
15433
15644
|
this.pageview();
|
|
15434
15645
|
}
|
|
15435
15646
|
}
|
|
@@ -15618,7 +15829,7 @@ class BasketPreviewBlockComponent extends EventTracerComponent {
|
|
|
15618
15829
|
}
|
|
15619
15830
|
}
|
|
15620
15831
|
}
|
|
15621
|
-
BasketPreviewBlockComponent.ɵfac = function BasketPreviewBlockComponent_Factory(t) { return new (t || BasketPreviewBlockComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(
|
|
15832
|
+
BasketPreviewBlockComponent.ɵfac = function BasketPreviewBlockComponent_Factory(t) { return new (t || BasketPreviewBlockComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(i8.MediaMatcher), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(ProductReplacementService), i0.ɵɵdirectiveInject(BasketsSynchronizerService), i0.ɵɵdirectiveInject(RecipesService)); };
|
|
15622
15833
|
BasketPreviewBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BasketPreviewBlockComponent, selectors: [["ng-miam-basket-preview-block"]], viewQuery: function BasketPreviewBlockComponent_Query(rf, ctx) { if (rf & 1) {
|
|
15623
15834
|
i0.ɵɵviewQuery(BasketPreviewLineComponent, 1);
|
|
15624
15835
|
i0.ɵɵviewQuery(BasketPreviewLineComponent, 1);
|
|
@@ -15695,7 +15906,7 @@ BasketPreviewBlockComponent.ɵcmp = i0.ɵɵdefineComponent({ type: BasketPreview
|
|
|
15695
15906
|
encapsulation: ViewEncapsulation.None,
|
|
15696
15907
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
15697
15908
|
}]
|
|
15698
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: PointOfSalesService }, { type: ContextService }, { type: BasketsService }, { type:
|
|
15909
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: PointOfSalesService }, { type: ContextService }, { type: BasketsService }, { type: i8.MediaMatcher }, { type: AnalyticsService }, { type: ProductReplacementService }, { type: BasketsSynchronizerService }, { type: RecipesService }]; }, { recipeId: [{
|
|
15699
15910
|
type: Input
|
|
15700
15911
|
}], showNotice: [{
|
|
15701
15912
|
type: Input
|
|
@@ -16155,7 +16366,7 @@ class ListScanFilesInputsComponent {
|
|
|
16155
16366
|
});
|
|
16156
16367
|
}
|
|
16157
16368
|
}
|
|
16158
|
-
ListScanFilesInputsComponent.ɵfac = function ListScanFilesInputsComponent_Factory(t) { return new (t || ListScanFilesInputsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(
|
|
16369
|
+
ListScanFilesInputsComponent.ɵfac = function ListScanFilesInputsComponent_Factory(t) { return new (t || ListScanFilesInputsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(i8.MediaMatcher), i0.ɵɵdirectiveInject(ListScanService)); };
|
|
16159
16370
|
ListScanFilesInputsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ListScanFilesInputsComponent, selectors: [["ng-miam-list-scan-files-inputs"]], inputs: { isSchoolList: "isSchoolList" }, decls: 6, vars: 2, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
16160
16371
|
const MSG_EXTERNAL_3102383292942643907$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS___1 = goog.getMsg("Scanner ma liste");
|
|
16161
16372
|
i18n_0 = MSG_EXTERNAL_3102383292942643907$$LIB__WEB_COMPONENTS_LIST_SCAN_FILES_INPUTS_FILES_INPUTS_COMPONENT_TS___1;
|
|
@@ -16168,7 +16379,7 @@ ListScanFilesInputsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ListScanFile
|
|
|
16168
16379
|
}
|
|
16169
16380
|
else {
|
|
16170
16381
|
i18n_3 = $localize `:␟f609f2fd28615425afab0e9ac43aca8d99c16d47␟8936498507024821269:Importer ma liste`;
|
|
16171
|
-
} return [[1, "miam-files-inputs"], [4, "ngIf", "ngIfElse"], ["desktop", ""], ["loader", ""], ["type", "file", "name", "photo", "id", "photo", "accept", "image/*", "capture", "environment", 1, "miam-files-inputs__inputfile", 3, "disabled", "change"], ["for", "photo"], [1, "miam-ds-button", "primary", 3, "ngClass"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ListScanner.svg", "alt", "
|
|
16382
|
+
} return [[1, "miam-files-inputs"], [4, "ngIf", "ngIfElse"], ["desktop", ""], ["loader", ""], ["type", "file", "name", "photo", "id", "photo", "accept", "image/*", "capture", "environment", "aria-label", "Scanner ma liste de courses", 1, "miam-files-inputs__inputfile", 3, "disabled", "change"], ["for", "photo"], [1, "miam-ds-button", "primary", 3, "ngClass"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ListScanner.svg", "alt", "", "aria-hidden", "true"], [1, "miam-ds-text", "size-m", "weight-xl"], i18n_0, ["type", "file", "name", "file", "id", "file", "accept", "image/*,application/pdf", "aria-label", "Importer ma liste de courses", 1, "miam-files-inputs__inputfile", 3, "disabled", "change"], ["for", "file"], [1, "miam-ds-button", "secondary", 3, "ngClass"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Upload.svg", "alt", "", "aria-hidden", "true"], i18n_3, ["aria-label", "Chargement en cours", 1, "miam-ds-loader"]]; }, template: function ListScanFilesInputsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16172
16383
|
i0.ɵɵelementStart(0, "div", 0);
|
|
16173
16384
|
i0.ɵɵtemplate(1, ListScanFilesInputsComponent_div_1_Template, 5, 6, "div", 1);
|
|
16174
16385
|
i0.ɵɵtemplate(2, ListScanFilesInputsComponent_ng_template_2_Template, 4, 6, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
|
|
@@ -16188,7 +16399,7 @@ ListScanFilesInputsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: ListScanFile
|
|
|
16188
16399
|
encapsulation: ViewEncapsulation.None,
|
|
16189
16400
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
16190
16401
|
}]
|
|
16191
|
-
}], function () { return [{ type: i0.ChangeDetectorRef }, { type:
|
|
16402
|
+
}], function () { return [{ type: i0.ChangeDetectorRef }, { type: i8.MediaMatcher }, { type: ListScanService }]; }, { isSchoolList: [{
|
|
16192
16403
|
type: Input
|
|
16193
16404
|
}] }); })();
|
|
16194
16405
|
|
|
@@ -16518,29 +16729,29 @@ function MealsPlannerFormComponent_ng_miam_icon_46_Template(rf, ctx) { if (rf &
|
|
|
16518
16729
|
i0.ɵɵproperty("width", 24)("height", 24)("iconName", ctx_r7.icon.Search);
|
|
16519
16730
|
} }
|
|
16520
16731
|
function MealsPlannerFormComponent_ng_template_47_Template(rf, ctx) { if (rf & 1) {
|
|
16521
|
-
i0.ɵɵelement(0, "ng-miam-loader");
|
|
16732
|
+
i0.ɵɵelement(0, "ng-miam-loader", 50);
|
|
16522
16733
|
} }
|
|
16523
16734
|
function MealsPlannerFormComponent_div_57_Template(rf, ctx) { if (rf & 1) {
|
|
16524
|
-
i0.ɵɵelementStart(0, "div",
|
|
16525
|
-
i0.ɵɵelementStart(1, "div",
|
|
16735
|
+
i0.ɵɵelementStart(0, "div", 51);
|
|
16736
|
+
i0.ɵɵelementStart(1, "div", 52);
|
|
16526
16737
|
i0.ɵɵelementStart(2, "span");
|
|
16527
|
-
i0.ɵɵi18n(3,
|
|
16738
|
+
i0.ɵɵi18n(3, 53);
|
|
16528
16739
|
i0.ɵɵelementEnd();
|
|
16529
16740
|
i0.ɵɵelementEnd();
|
|
16530
|
-
i0.ɵɵelementStart(4, "div",
|
|
16531
|
-
i0.ɵɵelementStart(5, "a",
|
|
16741
|
+
i0.ɵɵelementStart(4, "div", 54);
|
|
16742
|
+
i0.ɵɵelementStart(5, "a", 55);
|
|
16532
16743
|
i0.ɵɵelementStart(6, "span");
|
|
16533
|
-
i0.ɵɵi18n(7,
|
|
16744
|
+
i0.ɵɵi18n(7, 56);
|
|
16534
16745
|
i0.ɵɵelementEnd();
|
|
16535
16746
|
i0.ɵɵelementEnd();
|
|
16536
|
-
i0.ɵɵelementStart(8, "a",
|
|
16747
|
+
i0.ɵɵelementStart(8, "a", 57);
|
|
16537
16748
|
i0.ɵɵelementStart(9, "span");
|
|
16538
|
-
i0.ɵɵi18n(10,
|
|
16749
|
+
i0.ɵɵi18n(10, 58);
|
|
16539
16750
|
i0.ɵɵelementEnd();
|
|
16540
16751
|
i0.ɵɵelementEnd();
|
|
16541
|
-
i0.ɵɵelementStart(11, "a",
|
|
16752
|
+
i0.ɵɵelementStart(11, "a", 59);
|
|
16542
16753
|
i0.ɵɵelementStart(12, "span");
|
|
16543
|
-
i0.ɵɵi18n(13,
|
|
16754
|
+
i0.ɵɵi18n(13, 60);
|
|
16544
16755
|
i0.ɵɵelementEnd();
|
|
16545
16756
|
i0.ɵɵelement(14, "ng-miam-icon", 4);
|
|
16546
16757
|
i0.ɵɵelementEnd();
|
|
@@ -16732,7 +16943,7 @@ MealsPlannerFormComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MealsPlannerFor
|
|
|
16732
16943
|
}
|
|
16733
16944
|
else {
|
|
16734
16945
|
i18n_25 = $localize `:␟f05cda5fdcd3e6bcc1ddec3f588db62823e96504␟4881881106969851436:Voir plus`;
|
|
16735
|
-
} return [[1, "miam-meals-planner-form", 3, "ngClass"], [1, "miam-meals-planner-form__left"], [1, "miam-meals-planner-form__right", 3, "formGroup"], [1, "miam-meals-planner-form__title", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_0, [1, "miam-meals-planner-form__form"], [1, "miam-meals-planner-form__inputs"], [1, "miam-meals-planner-form__input", "budget"], [1, "miam-meals-planner-form__input__label"], i18n_2, [1, "miam-meals-planner-form__input__label__mandatory"], [1, "miam-meals-planner-form__input__budget"], [1, "miam-meals-planner-form__input__small-label"], i18n_4, ["type", "number", "formControlName", "budget", 3, "min", "max", "placeholder", "ngModelChange"], [1, "miam-meals-planner-form__input", "guests"], i18n_6, ["primaryColor", "var(--m-color-grey06)", 3, "width", "height", "iconName"], ["class", "custom-counter-input", 3, "value", "minRange", "maxRange", "valueChange", 4, "ngIf", "ngIfElse"], ["selectGuests", ""], [1, "miam-meals-planner-form__input", "meals"], i18n_8, [3, "width", "height", "iconName"], ["selectMeals", ""], [1, "meals-planner-form__alert-and-cta"], ["class", "miam-meals-planner-form__budget-alert", 4, "ngIf"], [1, "miam-meals-planner-form__cta"], [1, "m-button-primary", "plan", 3, "disabled", "click"], ["primaryColor", "var(--m-color-white)", 3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["isLoading", ""], i18n_10, [1, "m-button-primary", "reverse", "swap", 3, "disabled", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Swap.svg"], i18n_12, [1, "m-button-primary", "validate", 3, "disabled", "click"], ["primaryColor", "var(--m-color-white)", 3, "width", "height", "iconName"], ["class", "miam-meals-planner-form__anti-inflation", 4, "ngIf"], [1, "custom-counter-input", 3, "value", "minRange", "maxRange", "valueChange"], ["formControlName", "guestsCount", 3, "ngModelChange"], ["selected", "", "disabled", "", "hidden", "", 3, "value"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["formControlName", "recipesCount", 3, "ngModelChange"], ["value", "0", "disabled", "", 3, "selected"], i18n_15, [1, "miam-meals-planner-form__budget-alert"], ["primaryColor", "var(--m-color-danger-text)", 3, "width", "height", "iconName"], [1, "miam-meals-planner-form__budget-alert__title"], i18n_17, [1, "miam-meals-planner-form__anti-inflation"], [1, "miam-meals-planner-form__anti-inflation__title"], i18n_19, [1, "miam-meals-planner-form__anti-inflation__links"], [1, "miam-meals-planner-form__anti-inflation__link", "cheaper", 3, "href"], i18n_21, [1, "miam-meals-planner-form__anti-inflation__link", "cheap", 3, "href"], i18n_23, [1, "miam-meals-planner-form__anti-inflation__link", "see-more", 3, "href"], i18n_25]; }, template: function MealsPlannerFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16946
|
+
} return [[1, "miam-meals-planner-form", 3, "ngClass"], [1, "miam-meals-planner-form__left"], [1, "miam-meals-planner-form__right", 3, "formGroup"], [1, "miam-meals-planner-form__title", 3, "click"], ["width", "24", "height", "24", "aria-hidden", "true", 3, "iconName"], i18n_0, [1, "miam-meals-planner-form__form"], [1, "miam-meals-planner-form__inputs"], [1, "miam-meals-planner-form__input", "budget"], [1, "miam-meals-planner-form__input__label"], i18n_2, [1, "miam-meals-planner-form__input__label__mandatory"], [1, "miam-meals-planner-form__input__budget"], [1, "miam-meals-planner-form__input__small-label"], i18n_4, ["type", "number", "formControlName", "budget", "aria-label", "Budget total en euros", 3, "min", "max", "placeholder", "ngModelChange"], [1, "miam-meals-planner-form__input", "guests"], i18n_6, ["primaryColor", "var(--m-color-grey06)", "aria-hidden", "true", 3, "width", "height", "iconName"], ["class", "custom-counter-input", 3, "value", "minRange", "maxRange", "valueChange", 4, "ngIf", "ngIfElse"], ["selectGuests", ""], [1, "miam-meals-planner-form__input", "meals"], i18n_8, ["aria-hidden", "true", 3, "width", "height", "iconName"], ["selectMeals", ""], [1, "meals-planner-form__alert-and-cta"], ["class", "miam-meals-planner-form__budget-alert", 4, "ngIf"], [1, "miam-meals-planner-form__cta"], [1, "m-button-primary", "plan", 3, "disabled", "click"], ["primaryColor", "var(--m-color-white)", "aria-hidden", "true", 3, "width", "height", "iconName", 4, "ngIf", "ngIfElse"], ["isLoading", ""], i18n_10, [1, "m-button-primary", "reverse", "swap", 3, "disabled", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Swap.svg", "alt", "", "aria-hidden", "true"], i18n_12, ["aria-label", "Valider", 1, "m-button-primary", "validate", 3, "disabled", "click"], ["primaryColor", "var(--m-color-white)", "aria-hidden", "true", 3, "width", "height", "iconName"], ["class", "miam-meals-planner-form__anti-inflation", 4, "ngIf"], [1, "custom-counter-input", 3, "value", "minRange", "maxRange", "valueChange"], ["formControlName", "guestsCount", "aria-label", "S\u00E9lectionner le nombre de personnes", 3, "ngModelChange"], ["selected", "", "disabled", "", "hidden", "", 3, "value"], [3, "ngValue", 4, "ngFor", "ngForOf"], [3, "ngValue"], ["formControlName", "recipesCount", "aria-label", "S\u00E9lectionner le nombre de repas", 3, "ngModelChange"], ["value", "0", "disabled", "", 3, "selected"], i18n_15, [1, "miam-meals-planner-form__budget-alert"], ["primaryColor", "var(--m-color-danger-text)", "aria-hidden", "true", 3, "width", "height", "iconName"], [1, "miam-meals-planner-form__budget-alert__title"], i18n_17, ["aria-label", "Chargement en cours"], [1, "miam-meals-planner-form__anti-inflation"], [1, "miam-meals-planner-form__anti-inflation__title"], i18n_19, [1, "miam-meals-planner-form__anti-inflation__links"], [1, "miam-meals-planner-form__anti-inflation__link", "cheaper", 3, "href"], i18n_21, [1, "miam-meals-planner-form__anti-inflation__link", "cheap", 3, "href"], i18n_23, [1, "miam-meals-planner-form__anti-inflation__link", "see-more", 3, "href"], i18n_25]; }, template: function MealsPlannerFormComponent_Template(rf, ctx) { if (rf & 1) {
|
|
16736
16947
|
i0.ɵɵelementStart(0, "div", 0);
|
|
16737
16948
|
i0.ɵɵelement(1, "div", 1);
|
|
16738
16949
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -16877,12 +17088,12 @@ MealsPlannerFormComponent.ɵcmp = i0.ɵɵdefineComponent({ type: MealsPlannerFor
|
|
|
16877
17088
|
type: Output
|
|
16878
17089
|
}] }); })();
|
|
16879
17090
|
|
|
16880
|
-
function
|
|
17091
|
+
function RecipeCardCtaComponent_div_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
|
|
16881
17092
|
i0.ɵɵelementContainerStart(0);
|
|
16882
17093
|
i0.ɵɵelement(1, "img", 5);
|
|
16883
17094
|
i0.ɵɵelementContainerEnd();
|
|
16884
17095
|
} }
|
|
16885
|
-
function
|
|
17096
|
+
function RecipeCardCtaComponent_div_0_ng_template_5_Template(rf, ctx) { if (rf & 1) {
|
|
16886
17097
|
i0.ɵɵelement(0, "img", 6);
|
|
16887
17098
|
} }
|
|
16888
17099
|
const _c0$6 = function (a0, a1, a2) { return { "in-basket": a0, "primary": a1, "secondary": a2 }; };
|
|
@@ -16890,19 +17101,21 @@ function RecipeCardCtaComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
16890
17101
|
const _r5 = i0.ɵɵgetCurrentView();
|
|
16891
17102
|
i0.ɵɵelementStart(0, "div", 1);
|
|
16892
17103
|
i0.ɵɵelementStart(1, "button", 2);
|
|
16893
|
-
i0.ɵɵlistener("click", function RecipeCardCtaComponent_div_0_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.openRecipe(); });
|
|
16894
|
-
i0.ɵɵ
|
|
16895
|
-
i0.ɵɵ
|
|
16896
|
-
i0.ɵɵ
|
|
17104
|
+
i0.ɵɵlistener("click", function RecipeCardCtaComponent_div_0_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r5); const ctx_r4 = i0.ɵɵnextContext(); return ctx_r4.openRecipe($event); });
|
|
17105
|
+
i0.ɵɵpipe(2, "async");
|
|
17106
|
+
i0.ɵɵtemplate(3, RecipeCardCtaComponent_div_0_ng_container_3_Template, 2, 0, "ng-container", 3);
|
|
17107
|
+
i0.ɵɵpipe(4, "async");
|
|
17108
|
+
i0.ɵɵtemplate(5, RecipeCardCtaComponent_div_0_ng_template_5_Template, 1, 0, "ng-template", null, 4, i0.ɵɵtemplateRefExtractor);
|
|
16897
17109
|
i0.ɵɵelementEnd();
|
|
16898
17110
|
i0.ɵɵelementEnd();
|
|
16899
17111
|
} if (rf & 2) {
|
|
16900
|
-
const _r2 = i0.ɵɵreference(
|
|
17112
|
+
const _r2 = i0.ɵɵreference(6);
|
|
16901
17113
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
16902
17114
|
i0.ɵɵadvance(1);
|
|
16903
|
-
i0.ɵɵproperty("disabled", !ctx_r0.recipe)("ngClass", i0.ɵɵpureFunction3(
|
|
16904
|
-
i0.ɵɵ
|
|
16905
|
-
i0.ɵɵ
|
|
17115
|
+
i0.ɵɵproperty("disabled", !ctx_r0.recipe)("ngClass", i0.ɵɵpureFunction3(9, _c0$6, ctx_r0.inBasket, !ctx_r0.inBasket, ctx_r0.inBasket));
|
|
17116
|
+
i0.ɵɵattribute("aria-label", i0.ɵɵpipeBind1(2, 5, ctx_r0.basketsService.recipeIsInBasket(ctx_r0.recipe.id)) ? "Voir les ingr\u00E9dients" : "Ajouter au panier");
|
|
17117
|
+
i0.ɵɵadvance(2);
|
|
17118
|
+
i0.ɵɵproperty("ngIf", !i0.ɵɵpipeBind1(4, 7, ctx_r0.basketsService.recipeIsInBasket(ctx_r0.recipe.id)))("ngIfElse", _r2);
|
|
16906
17119
|
} }
|
|
16907
17120
|
class RecipeCardCtaComponent extends EventTracerComponent {
|
|
16908
17121
|
constructor(analyticsService, cdr, recipeService, basketsService, userService, pointOfSalesService, contextService, toasterService) {
|
|
@@ -16993,8 +17206,9 @@ class RecipeCardCtaComponent extends EventTracerComponent {
|
|
|
16993
17206
|
currentPath() {
|
|
16994
17207
|
return '';
|
|
16995
17208
|
}
|
|
16996
|
-
openRecipe() {
|
|
17209
|
+
openRecipe(event) {
|
|
16997
17210
|
// const videoEvent = this.contextService.videoRecipesEnabled && this.recipe.videoId;
|
|
17211
|
+
event.stopPropagation();
|
|
16998
17212
|
this.clicked.emit();
|
|
16999
17213
|
this.recipeService.displayObject(this.recipe, {
|
|
17000
17214
|
previewAllowed: this.previewAllowed,
|
|
@@ -17002,6 +17216,10 @@ class RecipeCardCtaComponent extends EventTracerComponent {
|
|
|
17002
17216
|
displayGuests: this.displayGuests,
|
|
17003
17217
|
helpButtonAllowed: this.helpButtonAllowed
|
|
17004
17218
|
});
|
|
17219
|
+
this.analyticsService.sendEvent('recipe.display', this.path, {
|
|
17220
|
+
recipe_id: this.recipe.id,
|
|
17221
|
+
category_id: this.originTrace.props.category_id
|
|
17222
|
+
});
|
|
17005
17223
|
this.displayed.emit();
|
|
17006
17224
|
}
|
|
17007
17225
|
sendShowEvent() {
|
|
@@ -17015,8 +17233,8 @@ class RecipeCardCtaComponent extends EventTracerComponent {
|
|
|
17015
17233
|
}
|
|
17016
17234
|
}
|
|
17017
17235
|
RecipeCardCtaComponent.ɵfac = function RecipeCardCtaComponent_Factory(t) { return new (t || RecipeCardCtaComponent)(i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(ToasterService)); };
|
|
17018
|
-
RecipeCardCtaComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardCtaComponent, selectors: [["ng-miam-recipe-card-cta"]], inputs: { recipeName: "recipeName", recipeExtId: "recipeExtId", recipe: "recipe", serves: "serves", previewAllowed: "previewAllowed", helpButtonAllowed: "helpButtonAllowed", displayGuests: "displayGuests" }, outputs: { displayed: "displayed", clicked: "clicked", hidden: "hidden" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "miam-recipe-card-cta", 4, "ngIf"], [1, "miam-recipe-card-cta"], [1, "miam-recipe-card-cta__button", "miam-ds-button", 3, "disabled", "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["seeIngredients", ""], ["alt", "
|
|
17019
|
-
i0.ɵɵtemplate(0, RecipeCardCtaComponent_div_0_Template,
|
|
17236
|
+
RecipeCardCtaComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardCtaComponent, selectors: [["ng-miam-recipe-card-cta"]], inputs: { recipeName: "recipeName", recipeExtId: "recipeExtId", recipe: "recipe", serves: "serves", previewAllowed: "previewAllowed", helpButtonAllowed: "helpButtonAllowed", displayGuests: "displayGuests" }, outputs: { displayed: "displayed", clicked: "clicked", hidden: "hidden" }, features: [i0.ɵɵInheritDefinitionFeature, i0.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "miam-recipe-card-cta", 4, "ngIf"], [1, "miam-recipe-card-cta"], [1, "miam-recipe-card-cta__button", "miam-ds-button", 3, "disabled", "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["seeIngredients", ""], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/InCart_primary.svg", "alt", "", "aria-hidden", "true"]], template: function RecipeCardCtaComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17237
|
+
i0.ɵɵtemplate(0, RecipeCardCtaComponent_div_0_Template, 7, 13, "div", 0);
|
|
17020
17238
|
} if (rf & 2) {
|
|
17021
17239
|
i0.ɵɵproperty("ngIf", ctx.recipe);
|
|
17022
17240
|
} }, directives: [i2.NgIf, i2.NgClass], pipes: [i2.AsyncPipe], styles: [".miam-recipe-card-cta{display:flex;justify-content:center;width:-moz-max-content;width:max-content}.miam-recipe-card-cta button{padding:12px 16px}.miam-recipe-card-cta button .miam-ds-loader{width:20px;height:20px}.miam-recipe-card-cta button.miam-ds-button.secondary.in-basket:hover:not(.loading):not(.disabled):not([disabled]){background-color:inherit;color:inherit}"], encapsulation: 2, changeDetection: 0 });
|
|
@@ -17051,40 +17269,38 @@ RecipeCardCtaComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardCtaCompo
|
|
|
17051
17269
|
type: Output
|
|
17052
17270
|
}] }); })();
|
|
17053
17271
|
|
|
17054
|
-
function
|
|
17055
|
-
i0.ɵɵelement(0, "ng-miam-like-button",
|
|
17272
|
+
function RecipeCardComponent_div_1_div_7_ng_miam_like_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
17273
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 31);
|
|
17056
17274
|
} if (rf & 2) {
|
|
17057
|
-
const
|
|
17058
|
-
i0.ɵɵproperty("recipe",
|
|
17059
|
-
} }
|
|
17060
|
-
function RecipeCardComponent_div_1_div_7_ng_template_1_Template(rf, ctx) { if (rf & 1) {
|
|
17061
|
-
i0.ɵɵtemplate(0, RecipeCardComponent_div_1_div_7_ng_template_1_ng_miam_like_button_0_Template, 1, 2, "ng-miam-like-button", 26);
|
|
17062
|
-
i0.ɵɵpipe(1, "async");
|
|
17063
|
-
} if (rf & 2) {
|
|
17064
|
-
const ctx_r14 = i0.ɵɵnextContext(3);
|
|
17065
|
-
i0.ɵɵproperty("ngIf", !ctx_r14.displayLikesBottom && i0.ɵɵpipeBind1(1, 1, ctx_r14.userService.isLogged$));
|
|
17275
|
+
const ctx_r13 = i0.ɵɵnextContext(3);
|
|
17276
|
+
i0.ɵɵproperty("recipe", ctx_r13.recipe)("originTrace", ctx_r13.eventTrace);
|
|
17066
17277
|
} }
|
|
17067
17278
|
function RecipeCardComponent_div_1_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
17068
17279
|
i0.ɵɵelementStart(0, "div", 30);
|
|
17069
|
-
i0.ɵɵtemplate(1,
|
|
17280
|
+
i0.ɵɵtemplate(1, RecipeCardComponent_div_1_div_7_ng_miam_like_button_1_Template, 1, 2, "ng-miam-like-button", 26);
|
|
17281
|
+
i0.ɵɵpipe(2, "async");
|
|
17070
17282
|
i0.ɵɵelementEnd();
|
|
17283
|
+
} if (rf & 2) {
|
|
17284
|
+
const ctx_r2 = i0.ɵɵnextContext(2);
|
|
17285
|
+
i0.ɵɵadvance(1);
|
|
17286
|
+
i0.ɵɵproperty("ngIf", !ctx_r2.displayLikesBottom && i0.ɵɵpipeBind1(2, 1, ctx_r2.userService.isLogged$));
|
|
17071
17287
|
} }
|
|
17072
17288
|
function RecipeCardComponent_div_1_div_8_ng_miam_recipe_promotion_badge_1_Template(rf, ctx) { if (rf & 1) {
|
|
17073
17289
|
i0.ɵɵelement(0, "ng-miam-recipe-promotion-badge");
|
|
17074
17290
|
} }
|
|
17075
17291
|
function RecipeCardComponent_div_1_div_8_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
17076
|
-
i0.ɵɵelementStart(0, "div",
|
|
17077
|
-
i0.ɵɵelement(1, "img",
|
|
17292
|
+
i0.ɵɵelementStart(0, "div", 35);
|
|
17293
|
+
i0.ɵɵelement(1, "img", 36);
|
|
17078
17294
|
i0.ɵɵelementEnd();
|
|
17079
17295
|
} if (rf & 2) {
|
|
17080
|
-
const
|
|
17296
|
+
const ctx_r15 = i0.ɵɵnextContext(3);
|
|
17081
17297
|
i0.ɵɵadvance(1);
|
|
17082
|
-
i0.ɵɵproperty("src",
|
|
17298
|
+
i0.ɵɵproperty("src", ctx_r15.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl)("alt", "Logo du sponsor " + ctx_r15.recipe.sponsorName);
|
|
17083
17299
|
} }
|
|
17084
17300
|
function RecipeCardComponent_div_1_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
17085
|
-
i0.ɵɵelementStart(0, "div",
|
|
17086
|
-
i0.ɵɵtemplate(1, RecipeCardComponent_div_1_div_8_ng_miam_recipe_promotion_badge_1_Template, 1, 0, "ng-miam-recipe-promotion-badge",
|
|
17087
|
-
i0.ɵɵtemplate(2, RecipeCardComponent_div_1_div_8_div_2_Template, 2,
|
|
17301
|
+
i0.ɵɵelementStart(0, "div", 32);
|
|
17302
|
+
i0.ɵɵtemplate(1, RecipeCardComponent_div_1_div_8_ng_miam_recipe_promotion_badge_1_Template, 1, 0, "ng-miam-recipe-promotion-badge", 33);
|
|
17303
|
+
i0.ɵɵtemplate(2, RecipeCardComponent_div_1_div_8_div_2_Template, 2, 2, "div", 34);
|
|
17088
17304
|
i0.ɵɵelementEnd();
|
|
17089
17305
|
} if (rf & 2) {
|
|
17090
17306
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
@@ -17097,16 +17313,16 @@ function RecipeCardComponent_div_1_div_9_ng_miam_recipe_promotion_badge_1_Templa
|
|
|
17097
17313
|
i0.ɵɵelement(0, "ng-miam-recipe-promotion-badge");
|
|
17098
17314
|
} }
|
|
17099
17315
|
function RecipeCardComponent_div_1_div_9_img_2_Template(rf, ctx) { if (rf & 1) {
|
|
17100
|
-
i0.ɵɵelement(0, "img",
|
|
17316
|
+
i0.ɵɵelement(0, "img", 40);
|
|
17101
17317
|
} }
|
|
17102
17318
|
function RecipeCardComponent_div_1_div_9_img_3_Template(rf, ctx) { if (rf & 1) {
|
|
17103
|
-
i0.ɵɵelement(0, "img",
|
|
17319
|
+
i0.ɵɵelement(0, "img", 41);
|
|
17104
17320
|
} }
|
|
17105
17321
|
function RecipeCardComponent_div_1_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
17106
|
-
i0.ɵɵelementStart(0, "div",
|
|
17107
|
-
i0.ɵɵtemplate(1, RecipeCardComponent_div_1_div_9_ng_miam_recipe_promotion_badge_1_Template, 1, 0, "ng-miam-recipe-promotion-badge",
|
|
17108
|
-
i0.ɵɵtemplate(2, RecipeCardComponent_div_1_div_9_img_2_Template, 1, 0, "img",
|
|
17109
|
-
i0.ɵɵtemplate(3, RecipeCardComponent_div_1_div_9_img_3_Template, 1, 0, "img",
|
|
17322
|
+
i0.ɵɵelementStart(0, "div", 37);
|
|
17323
|
+
i0.ɵɵtemplate(1, RecipeCardComponent_div_1_div_9_ng_miam_recipe_promotion_badge_1_Template, 1, 0, "ng-miam-recipe-promotion-badge", 33);
|
|
17324
|
+
i0.ɵɵtemplate(2, RecipeCardComponent_div_1_div_9_img_2_Template, 1, 0, "img", 38);
|
|
17325
|
+
i0.ɵɵtemplate(3, RecipeCardComponent_div_1_div_9_img_3_Template, 1, 0, "img", 39);
|
|
17110
17326
|
i0.ɵɵelementEnd();
|
|
17111
17327
|
} if (rf & 2) {
|
|
17112
17328
|
const ctx_r4 = i0.ɵɵnextContext(2);
|
|
@@ -17119,66 +17335,69 @@ function RecipeCardComponent_div_1_div_9_Template(rf, ctx) { if (rf & 1) {
|
|
|
17119
17335
|
i0.ɵɵproperty("ngIf", ctx_r4.isDrink);
|
|
17120
17336
|
} }
|
|
17121
17337
|
function RecipeCardComponent_div_1_div_19_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
17122
|
-
i0.ɵɵelementStart(0, "div",
|
|
17338
|
+
i0.ɵɵelementStart(0, "div", 46);
|
|
17123
17339
|
i0.ɵɵtext(1);
|
|
17124
17340
|
i0.ɵɵelementEnd();
|
|
17125
17341
|
} if (rf & 2) {
|
|
17126
|
-
const
|
|
17342
|
+
const ctx_r19 = i0.ɵɵnextContext(3);
|
|
17127
17343
|
i0.ɵɵadvance(1);
|
|
17128
|
-
i0.ɵɵtextInterpolate1(" + ",
|
|
17344
|
+
i0.ɵɵtextInterpolate1(" + ", ctx_r19.recipe.modifiedIngredients.length - 2, " ");
|
|
17129
17345
|
} }
|
|
17130
17346
|
function RecipeCardComponent_div_1_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
17131
|
-
const
|
|
17132
|
-
i0.ɵɵelementStart(0, "div",
|
|
17133
|
-
i0.ɵɵelementStart(1, "div",
|
|
17134
|
-
i0.ɵɵelementStart(2, "img",
|
|
17135
|
-
i0.ɵɵlistener("error", function RecipeCardComponent_div_1_div_19_Template_img_error_2_listener($event) { i0.ɵɵrestoreView(
|
|
17347
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
17348
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
17349
|
+
i0.ɵɵelementStart(1, "div", 43);
|
|
17350
|
+
i0.ɵɵelementStart(2, "img", 44);
|
|
17351
|
+
i0.ɵɵlistener("error", function RecipeCardComponent_div_1_div_19_Template_img_error_2_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r20 = i0.ɵɵnextContext(2); return ($event.target["src"] = ctx_r20.contextService.defaultIngredientPicture); });
|
|
17136
17352
|
i0.ɵɵelementEnd();
|
|
17137
17353
|
i0.ɵɵelementEnd();
|
|
17138
|
-
i0.ɵɵelementStart(3, "div",
|
|
17139
|
-
i0.ɵɵelementStart(4, "img",
|
|
17140
|
-
i0.ɵɵlistener("error", function RecipeCardComponent_div_1_div_19_Template_img_error_4_listener($event) { i0.ɵɵrestoreView(
|
|
17354
|
+
i0.ɵɵelementStart(3, "div", 43);
|
|
17355
|
+
i0.ɵɵelementStart(4, "img", 44);
|
|
17356
|
+
i0.ɵɵlistener("error", function RecipeCardComponent_div_1_div_19_Template_img_error_4_listener($event) { i0.ɵɵrestoreView(_r21); const ctx_r22 = i0.ɵɵnextContext(2); return ($event.target["src"] = ctx_r22.contextService.defaultIngredientPicture); });
|
|
17141
17357
|
i0.ɵɵelementEnd();
|
|
17142
17358
|
i0.ɵɵelementEnd();
|
|
17143
|
-
i0.ɵɵtemplate(5, RecipeCardComponent_div_1_div_19_div_5_Template, 2, 1, "div",
|
|
17359
|
+
i0.ɵɵtemplate(5, RecipeCardComponent_div_1_div_19_div_5_Template, 2, 1, "div", 45);
|
|
17144
17360
|
i0.ɵɵelementEnd();
|
|
17145
17361
|
} if (rf & 2) {
|
|
17146
17362
|
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
17363
|
+
i0.ɵɵattribute("aria-label", ctx_r5.getIngredientsAriaLabel());
|
|
17147
17364
|
i0.ɵɵadvance(2);
|
|
17148
|
-
i0.ɵɵproperty("src", ctx_r5.ingredientPicture(ctx_r5.recipe.modifiedIngredients[0]), i0.ɵɵsanitizeUrl);
|
|
17365
|
+
i0.ɵɵproperty("src", ctx_r5.ingredientPicture(ctx_r5.recipe.modifiedIngredients[0]), i0.ɵɵsanitizeUrl)("alt", "");
|
|
17149
17366
|
i0.ɵɵadvance(2);
|
|
17150
|
-
i0.ɵɵproperty("src", ctx_r5.ingredientPicture(ctx_r5.recipe.modifiedIngredients[1]), i0.ɵɵsanitizeUrl);
|
|
17367
|
+
i0.ɵɵproperty("src", ctx_r5.ingredientPicture(ctx_r5.recipe.modifiedIngredients[1]), i0.ɵɵsanitizeUrl)("alt", "");
|
|
17151
17368
|
i0.ɵɵadvance(1);
|
|
17152
17369
|
i0.ɵɵproperty("ngIf", ctx_r5.recipe.modifiedIngredients.length > 2);
|
|
17153
17370
|
} }
|
|
17154
17371
|
function RecipeCardComponent_div_1_div_22_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
17155
|
-
i0.ɵɵelementStart(0, "div",
|
|
17156
|
-
i0.ɵɵelement(1, "img",
|
|
17157
|
-
i0.ɵɵelementStart(2, "span",
|
|
17372
|
+
i0.ɵɵelementStart(0, "div", 50);
|
|
17373
|
+
i0.ɵɵelement(1, "img", 51);
|
|
17374
|
+
i0.ɵɵelementStart(2, "span", 52);
|
|
17158
17375
|
i0.ɵɵtext(3);
|
|
17159
17376
|
i0.ɵɵelementEnd();
|
|
17160
17377
|
i0.ɵɵelementEnd();
|
|
17161
17378
|
} if (rf & 2) {
|
|
17162
|
-
const
|
|
17379
|
+
const ctx_r23 = i0.ɵɵnextContext(3);
|
|
17380
|
+
i0.ɵɵattribute("aria-label", "Difficult\u00E9: " + ctx_r23.recipeService.difficultyLevels[ctx_r23.recipe.difficulty - 1].label);
|
|
17163
17381
|
i0.ɵɵadvance(3);
|
|
17164
|
-
i0.ɵɵtextInterpolate(
|
|
17382
|
+
i0.ɵɵtextInterpolate(ctx_r23.recipeService.difficultyLevels[ctx_r23.recipe.difficulty - 1].label);
|
|
17165
17383
|
} }
|
|
17166
17384
|
function RecipeCardComponent_div_1_div_22_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
17167
|
-
i0.ɵɵelementStart(0, "div",
|
|
17168
|
-
i0.ɵɵelement(1, "img",
|
|
17169
|
-
i0.ɵɵelementStart(2, "span",
|
|
17385
|
+
i0.ɵɵelementStart(0, "div", 53);
|
|
17386
|
+
i0.ɵɵelement(1, "img", 54);
|
|
17387
|
+
i0.ɵɵelementStart(2, "span", 52);
|
|
17170
17388
|
i0.ɵɵtext(3);
|
|
17171
17389
|
i0.ɵɵelementEnd();
|
|
17172
17390
|
i0.ɵɵelementEnd();
|
|
17173
17391
|
} if (rf & 2) {
|
|
17174
|
-
const
|
|
17392
|
+
const ctx_r24 = i0.ɵɵnextContext(3);
|
|
17393
|
+
i0.ɵɵattribute("aria-label", "Temps de pr\u00E9paration: " + ctx_r24.recipe.totalTime);
|
|
17175
17394
|
i0.ɵɵadvance(3);
|
|
17176
|
-
i0.ɵɵtextInterpolate(
|
|
17395
|
+
i0.ɵɵtextInterpolate(ctx_r24.recipe.totalTime);
|
|
17177
17396
|
} }
|
|
17178
17397
|
function RecipeCardComponent_div_1_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
17179
|
-
i0.ɵɵelementStart(0, "div",
|
|
17180
|
-
i0.ɵɵtemplate(1, RecipeCardComponent_div_1_div_22_div_1_Template, 4,
|
|
17181
|
-
i0.ɵɵtemplate(2, RecipeCardComponent_div_1_div_22_div_2_Template, 4,
|
|
17398
|
+
i0.ɵɵelementStart(0, "div", 47);
|
|
17399
|
+
i0.ɵɵtemplate(1, RecipeCardComponent_div_1_div_22_div_1_Template, 4, 2, "div", 48);
|
|
17400
|
+
i0.ɵɵtemplate(2, RecipeCardComponent_div_1_div_22_div_2_Template, 4, 2, "div", 49);
|
|
17182
17401
|
i0.ɵɵelementEnd();
|
|
17183
17402
|
} if (rf & 2) {
|
|
17184
17403
|
const ctx_r6 = i0.ɵɵnextContext(2);
|
|
@@ -17188,13 +17407,13 @@ function RecipeCardComponent_div_1_div_22_Template(rf, ctx) { if (rf & 1) {
|
|
|
17188
17407
|
i0.ɵɵproperty("ngIf", ctx_r6.recipe.totalTime);
|
|
17189
17408
|
} }
|
|
17190
17409
|
function RecipeCardComponent_div_1_ng_miam_recipe_promotion_badge_24_Template(rf, ctx) { if (rf & 1) {
|
|
17191
|
-
i0.ɵɵelement(0, "ng-miam-recipe-promotion-badge",
|
|
17410
|
+
i0.ɵɵelement(0, "ng-miam-recipe-promotion-badge", 55);
|
|
17192
17411
|
} }
|
|
17193
17412
|
function RecipeCardComponent_div_1_div_25_Template(rf, ctx) { if (rf & 1) {
|
|
17194
|
-
const
|
|
17195
|
-
i0.ɵɵelementStart(0, "div",
|
|
17196
|
-
i0.ɵɵelementStart(1, "ng-miam-recipe-pricing",
|
|
17197
|
-
i0.ɵɵlistener("priceSet", function RecipeCardComponent_div_1_div_25_Template_ng_miam_recipe_pricing_priceSet_1_listener($event) { i0.ɵɵrestoreView(
|
|
17413
|
+
const _r26 = i0.ɵɵgetCurrentView();
|
|
17414
|
+
i0.ɵɵelementStart(0, "div", 56);
|
|
17415
|
+
i0.ɵɵelementStart(1, "ng-miam-recipe-pricing", 57);
|
|
17416
|
+
i0.ɵɵlistener("priceSet", function RecipeCardComponent_div_1_div_25_Template_ng_miam_recipe_pricing_priceSet_1_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r25 = i0.ɵɵnextContext(2); return ctx_r25.updateIsInPromotion($event); });
|
|
17198
17417
|
i0.ɵɵelementEnd();
|
|
17199
17418
|
i0.ɵɵelementEnd();
|
|
17200
17419
|
} if (rf & 2) {
|
|
@@ -17203,32 +17422,32 @@ function RecipeCardComponent_div_1_div_25_Template(rf, ctx) { if (rf & 1) {
|
|
|
17203
17422
|
i0.ɵɵproperty("recipeId", ctx_r8.recipe.id)("serves", ctx_r8.recipe.modifiedGuests || +ctx_r8.recipe.guests)("inViewport", ctx_r8.inViewport);
|
|
17204
17423
|
} }
|
|
17205
17424
|
function RecipeCardComponent_div_1_ng_miam_like_button_27_Template(rf, ctx) { if (rf & 1) {
|
|
17206
|
-
i0.ɵɵelement(0, "ng-miam-like-button",
|
|
17425
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 31);
|
|
17207
17426
|
} if (rf & 2) {
|
|
17208
17427
|
const ctx_r9 = i0.ɵɵnextContext(2);
|
|
17209
17428
|
i0.ɵɵproperty("recipe", ctx_r9.recipe)("originTrace", ctx_r9.eventTrace);
|
|
17210
17429
|
} }
|
|
17211
17430
|
function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_29_Template(rf, ctx) { if (rf & 1) {
|
|
17212
|
-
const
|
|
17213
|
-
i0.ɵɵelementStart(0, "ng-miam-recipe-card-cta",
|
|
17214
|
-
i0.ɵɵlistener("displayed", function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_29_Template_ng_miam_recipe_card_cta_displayed_0_listener() { i0.ɵɵrestoreView(
|
|
17431
|
+
const _r28 = i0.ɵɵgetCurrentView();
|
|
17432
|
+
i0.ɵɵelementStart(0, "ng-miam-recipe-card-cta", 58);
|
|
17433
|
+
i0.ɵɵlistener("displayed", function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_29_Template_ng_miam_recipe_card_cta_displayed_0_listener() { i0.ɵɵrestoreView(_r28); const ctx_r27 = i0.ɵɵnextContext(2); return ctx_r27.displayed.emit(); })("clicked", function RecipeCardComponent_div_1_ng_miam_recipe_card_cta_29_Template_ng_miam_recipe_card_cta_clicked_0_listener($event) { i0.ɵɵrestoreView(_r28); const ctx_r29 = i0.ɵɵnextContext(2); return ctx_r29.primaryButtonClicked$.emit($event); });
|
|
17215
17434
|
i0.ɵɵelementEnd();
|
|
17216
17435
|
} if (rf & 2) {
|
|
17217
17436
|
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
17218
17437
|
i0.ɵɵproperty("recipe", ctx_r10.recipe)("previewAllowed", ctx_r10.previewAllowed)("displayGuests", ctx_r10.displayGuests)("helpButtonAllowed", ctx_r10.helpButtonAllowed)("originTrace", ctx_r10.eventTrace);
|
|
17219
17438
|
} }
|
|
17220
17439
|
function RecipeCardComponent_div_1_div_30_Template(rf, ctx) { if (rf & 1) {
|
|
17221
|
-
const
|
|
17222
|
-
i0.ɵɵelementStart(0, "div",
|
|
17223
|
-
i0.ɵɵelementStart(1, "button",
|
|
17224
|
-
i0.ɵɵlistener("click", function RecipeCardComponent_div_1_div_30_Template_button_click_1_listener() { i0.ɵɵrestoreView(
|
|
17440
|
+
const _r31 = i0.ɵɵgetCurrentView();
|
|
17441
|
+
i0.ɵɵelementStart(0, "div", 59);
|
|
17442
|
+
i0.ɵɵelementStart(1, "button", 60);
|
|
17443
|
+
i0.ɵɵlistener("click", function RecipeCardComponent_div_1_div_30_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r31); const ctx_r30 = i0.ɵɵnextContext(2); return ctx_r30.openCatalog.emit(); });
|
|
17225
17444
|
i0.ɵɵelementStart(2, "span");
|
|
17226
|
-
i0.ɵɵi18n(3,
|
|
17445
|
+
i0.ɵɵi18n(3, 61);
|
|
17227
17446
|
i0.ɵɵelementEnd();
|
|
17228
17447
|
i0.ɵɵelementEnd();
|
|
17229
|
-
i0.ɵɵelementStart(4, "button",
|
|
17230
|
-
i0.ɵɵlistener("click", function RecipeCardComponent_div_1_div_30_Template_button_click_4_listener() { i0.ɵɵrestoreView(
|
|
17231
|
-
i0.ɵɵelement(5, "ng-miam-icon",
|
|
17448
|
+
i0.ɵɵelementStart(4, "button", 62);
|
|
17449
|
+
i0.ɵɵlistener("click", function RecipeCardComponent_div_1_div_30_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r31); const ctx_r32 = i0.ɵɵnextContext(2); return ctx_r32.removeFromMealsPlanner.emit(); });
|
|
17450
|
+
i0.ɵɵelement(5, "ng-miam-icon", 63);
|
|
17232
17451
|
i0.ɵɵelementEnd();
|
|
17233
17452
|
i0.ɵɵelementEnd();
|
|
17234
17453
|
} if (rf & 2) {
|
|
@@ -17237,29 +17456,29 @@ function RecipeCardComponent_div_1_div_30_Template(rf, ctx) { if (rf & 1) {
|
|
|
17237
17456
|
i0.ɵɵproperty("iconName", ctx_r11.icon.Trash);
|
|
17238
17457
|
} }
|
|
17239
17458
|
function RecipeCardComponent_div_1_button_31_Template(rf, ctx) { if (rf & 1) {
|
|
17240
|
-
const
|
|
17241
|
-
i0.ɵɵelementStart(0, "button",
|
|
17242
|
-
i0.ɵɵlistener("click", function RecipeCardComponent_div_1_button_31_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
17459
|
+
const _r34 = i0.ɵɵgetCurrentView();
|
|
17460
|
+
i0.ɵɵelementStart(0, "button", 60);
|
|
17461
|
+
i0.ɵɵlistener("click", function RecipeCardComponent_div_1_button_31_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r34); const ctx_r33 = i0.ɵɵnextContext(2); return ctx_r33.addToMealsPlanner.emit(ctx_r33.recipe); });
|
|
17243
17462
|
i0.ɵɵelementStart(1, "span");
|
|
17244
|
-
i0.ɵɵi18n(2,
|
|
17463
|
+
i0.ɵɵi18n(2, 64);
|
|
17245
17464
|
i0.ɵɵelementEnd();
|
|
17246
17465
|
i0.ɵɵelementEnd();
|
|
17247
17466
|
} }
|
|
17248
17467
|
function RecipeCardComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
17249
|
-
const
|
|
17468
|
+
const _r36 = i0.ɵɵgetCurrentView();
|
|
17250
17469
|
i0.ɵɵelementStart(0, "div", 2);
|
|
17251
|
-
i0.ɵɵlistener("inViewport", function RecipeCardComponent_div_1_Template_div_inViewport_0_listener() { i0.ɵɵrestoreView(
|
|
17470
|
+
i0.ɵɵlistener("inViewport", function RecipeCardComponent_div_1_Template_div_inViewport_0_listener() { i0.ɵɵrestoreView(_r36); const ctx_r35 = i0.ɵɵnextContext(); return ctx_r35.cardInViewport(); });
|
|
17252
17471
|
i0.ɵɵelementStart(1, "div", 3);
|
|
17253
|
-
i0.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_1_listener() { i0.ɵɵrestoreView(
|
|
17472
|
+
i0.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_1_listener() { i0.ɵɵrestoreView(_r36); const ctx_r37 = i0.ɵɵnextContext(); return ctx_r37.openRecipe(); });
|
|
17254
17473
|
i0.ɵɵelementStart(2, "div", 4);
|
|
17255
17474
|
i0.ɵɵelementStart(3, "img", 5);
|
|
17256
|
-
i0.ɵɵlistener("error", function RecipeCardComponent_div_1_Template_img_error_3_listener($event) { i0.ɵɵrestoreView(
|
|
17475
|
+
i0.ɵɵlistener("error", function RecipeCardComponent_div_1_Template_img_error_3_listener($event) { i0.ɵɵrestoreView(_r36); const ctx_r38 = i0.ɵɵnextContext(); return ($event.target["src"] = ctx_r38.contextService.defaultRecipePicture); });
|
|
17257
17476
|
i0.ɵɵelementEnd();
|
|
17258
17477
|
i0.ɵɵelementEnd();
|
|
17259
17478
|
i0.ɵɵelement(4, "div", 6);
|
|
17260
17479
|
i0.ɵɵelementStart(5, "div", 7);
|
|
17261
17480
|
i0.ɵɵelementStart(6, "div", 8);
|
|
17262
|
-
i0.ɵɵtemplate(7, RecipeCardComponent_div_1_div_7_Template, 3,
|
|
17481
|
+
i0.ɵɵtemplate(7, RecipeCardComponent_div_1_div_7_Template, 3, 3, "div", 9);
|
|
17263
17482
|
i0.ɵɵtemplate(8, RecipeCardComponent_div_1_div_8_Template, 3, 2, "div", 10);
|
|
17264
17483
|
i0.ɵɵtemplate(9, RecipeCardComponent_div_1_div_9_Template, 4, 4, "div", 11);
|
|
17265
17484
|
i0.ɵɵelementEnd();
|
|
@@ -17279,8 +17498,8 @@ function RecipeCardComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
17279
17498
|
i0.ɵɵelementEnd();
|
|
17280
17499
|
i0.ɵɵelementEnd();
|
|
17281
17500
|
i0.ɵɵelementStart(18, "div", 17);
|
|
17282
|
-
i0.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_18_listener() { i0.ɵɵrestoreView(
|
|
17283
|
-
i0.ɵɵtemplate(19, RecipeCardComponent_div_1_div_19_Template, 6,
|
|
17501
|
+
i0.ɵɵlistener("click", function RecipeCardComponent_div_1_Template_div_click_18_listener() { i0.ɵɵrestoreView(_r36); const ctx_r39 = i0.ɵɵnextContext(); return ctx_r39.openRecipe(); });
|
|
17502
|
+
i0.ɵɵtemplate(19, RecipeCardComponent_div_1_div_19_Template, 6, 6, "div", 18);
|
|
17284
17503
|
i0.ɵɵelementStart(20, "div", 19);
|
|
17285
17504
|
i0.ɵɵelementStart(21, "div", 20);
|
|
17286
17505
|
i0.ɵɵtemplate(22, RecipeCardComponent_div_1_div_22_Template, 3, 2, "div", 21);
|
|
@@ -17303,7 +17522,7 @@ function RecipeCardComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
17303
17522
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
17304
17523
|
i0.ɵɵproperty("threshold", 0)("debounceTime", 0);
|
|
17305
17524
|
i0.ɵɵadvance(3);
|
|
17306
|
-
i0.ɵɵproperty("src", ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl)("alt", (ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes.title)
|
|
17525
|
+
i0.ɵɵproperty("src", ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl)("alt", "Photo de la recette " + (ctx_r0.recipe == null ? null : ctx_r0.recipe.attributes.title));
|
|
17307
17526
|
i0.ɵɵadvance(4);
|
|
17308
17527
|
i0.ɵɵproperty("ngIf", !(ctx_r0.displayBadge && ctx_r0.recipe.sponsorLogoUrl));
|
|
17309
17528
|
i0.ɵɵadvance(1);
|
|
@@ -17312,7 +17531,9 @@ function RecipeCardComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
17312
17531
|
i0.ɵɵproperty("ngIf", ctx_r0.displayBadge);
|
|
17313
17532
|
i0.ɵɵadvance(4);
|
|
17314
17533
|
i0.ɵɵtextInterpolate(ctx_r0.recipe.attributes["title"]);
|
|
17315
|
-
i0.ɵɵadvance(
|
|
17534
|
+
i0.ɵɵadvance(1);
|
|
17535
|
+
i0.ɵɵattribute("aria-label", "Pour " + (ctx_r0.recipe.modifiedGuests || ctx_r0.recipe.guests) + " personnes");
|
|
17536
|
+
i0.ɵɵadvance(2);
|
|
17316
17537
|
i0.ɵɵtextInterpolate(ctx_r0.recipe.modifiedGuests || ctx_r0.recipe.guests);
|
|
17317
17538
|
i0.ɵɵadvance(3);
|
|
17318
17539
|
i0.ɵɵproperty("ngIf", ctx_r0.contextService.displayIngredientPicturesOnRecipeCards && (ctx_r0.recipe == null ? null : ctx_r0.recipe.modifiedIngredients == null ? null : ctx_r0.recipe.modifiedIngredients.length) > 1);
|
|
@@ -17323,7 +17544,7 @@ function RecipeCardComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
17323
17544
|
i0.ɵɵadvance(1);
|
|
17324
17545
|
i0.ɵɵproperty("ngIf", ctx_r0.recipe && ctx_r0.displayPricing);
|
|
17325
17546
|
i0.ɵɵadvance(2);
|
|
17326
|
-
i0.ɵɵproperty("ngIf", ctx_r0.displayLikesBottom && i0.ɵɵpipeBind1(28,
|
|
17547
|
+
i0.ɵɵproperty("ngIf", ctx_r0.displayLikesBottom && i0.ɵɵpipeBind1(28, 18, ctx_r0.userService.isLogged$));
|
|
17327
17548
|
i0.ɵɵadvance(2);
|
|
17328
17549
|
i0.ɵɵproperty("ngIf", ctx_r0.previewAllowed && !ctx_r0.addRecipeMode && !ctx_r0.replaceMode);
|
|
17329
17550
|
i0.ɵɵadvance(1);
|
|
@@ -17332,27 +17553,30 @@ function RecipeCardComponent_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
17332
17553
|
i0.ɵɵproperty("ngIf", ctx_r0.addRecipeMode);
|
|
17333
17554
|
} }
|
|
17334
17555
|
function RecipeCardComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
17335
|
-
const
|
|
17556
|
+
const _r41 = i0.ɵɵgetCurrentView();
|
|
17336
17557
|
i0.ɵɵelementStart(0, "div", 2);
|
|
17337
|
-
i0.ɵɵlistener("inViewport", function RecipeCardComponent_div_2_Template_div_inViewport_0_listener() { i0.ɵɵrestoreView(
|
|
17338
|
-
i0.ɵɵelementStart(1, "
|
|
17339
|
-
i0.ɵɵelement(2, "img",
|
|
17340
|
-
i0.ɵɵelementStart(3, "div",
|
|
17341
|
-
i0.ɵɵelementStart(4, "div",
|
|
17558
|
+
i0.ɵɵlistener("inViewport", function RecipeCardComponent_div_2_Template_div_inViewport_0_listener() { i0.ɵɵrestoreView(_r41); const ctx_r40 = i0.ɵɵnextContext(); return ctx_r40.cardInViewport(); });
|
|
17559
|
+
i0.ɵɵelementStart(1, "a", 65);
|
|
17560
|
+
i0.ɵɵelement(2, "img", 66);
|
|
17561
|
+
i0.ɵɵelementStart(3, "div", 67);
|
|
17562
|
+
i0.ɵɵelementStart(4, "div", 68);
|
|
17342
17563
|
i0.ɵɵelementStart(5, "span");
|
|
17343
|
-
i0.ɵɵi18n(6,
|
|
17564
|
+
i0.ɵɵi18n(6, 69);
|
|
17344
17565
|
i0.ɵɵelementEnd();
|
|
17345
17566
|
i0.ɵɵelementEnd();
|
|
17346
|
-
i0.ɵɵelementStart(7, "button",
|
|
17567
|
+
i0.ɵɵelementStart(7, "button", 70);
|
|
17347
17568
|
i0.ɵɵelementStart(8, "span");
|
|
17348
|
-
i0.ɵɵi18n(9,
|
|
17569
|
+
i0.ɵɵi18n(9, 71);
|
|
17349
17570
|
i0.ɵɵelementEnd();
|
|
17350
17571
|
i0.ɵɵelementEnd();
|
|
17351
17572
|
i0.ɵɵelementEnd();
|
|
17352
17573
|
i0.ɵɵelementEnd();
|
|
17353
17574
|
i0.ɵɵelementEnd();
|
|
17354
17575
|
} if (rf & 2) {
|
|
17576
|
+
const ctx_r1 = i0.ɵɵnextContext();
|
|
17355
17577
|
i0.ɵɵproperty("threshold", 0)("debounceTime", 0);
|
|
17578
|
+
i0.ɵɵadvance(1);
|
|
17579
|
+
i0.ɵɵproperty("href", ctx_r1.contextService.catalogUrl, i0.ɵɵsanitizeUrl);
|
|
17356
17580
|
} }
|
|
17357
17581
|
const _c8$2 = function (a0, a1, a2, a3, a4) { return { "variant-1": a0, "variant-2": a1, "variant-3": a2, "in-basket": a3, "redirect-card": a4 }; };
|
|
17358
17582
|
const recipeIncludes$4 = ['recipe-provider', 'sponsors', 'tags'];
|
|
@@ -17472,6 +17696,21 @@ class RecipeCardComponent extends EventTracerComponent {
|
|
|
17472
17696
|
ingredientPicture(ingredient) {
|
|
17473
17697
|
return ingredient.picture || this.contextService.defaultIngredientPicture;
|
|
17474
17698
|
}
|
|
17699
|
+
// Helper method for accessibility
|
|
17700
|
+
getIngredientsAriaLabel() {
|
|
17701
|
+
var _a;
|
|
17702
|
+
if (!((_a = this.recipe) === null || _a === void 0 ? void 0 : _a.modifiedIngredients) || this.recipe.modifiedIngredients.length === 0) {
|
|
17703
|
+
return '';
|
|
17704
|
+
}
|
|
17705
|
+
const firstTwo = this.recipe.modifiedIngredients.slice(0, 2).map(i => i.name).join(', ');
|
|
17706
|
+
if (this.recipe.modifiedIngredients.length <= 2) {
|
|
17707
|
+
return 'Ingrédients principaux: ' + firstTwo;
|
|
17708
|
+
}
|
|
17709
|
+
else {
|
|
17710
|
+
const othersCount = this.recipe.modifiedIngredients.length - 2;
|
|
17711
|
+
return 'Ingrédients principaux: ' + firstTwo + ' et ' + othersCount + ' autres';
|
|
17712
|
+
}
|
|
17713
|
+
}
|
|
17475
17714
|
// //////////////////////////////////////// SHOW EVENT //////////////////////////////////////// //
|
|
17476
17715
|
sendShowEvent() {
|
|
17477
17716
|
this.analyticsService.sendEvent('recipe.show', this.path, {
|
|
@@ -17588,11 +17827,11 @@ RecipeCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardComponent,
|
|
|
17588
17827
|
}
|
|
17589
17828
|
else {
|
|
17590
17829
|
i18n_6 = $localize `:␟f51693cf087a834d433fa3835d7b64905fdc57ee␟9008711340501624723:Découvrez nos recettes`;
|
|
17591
|
-
} 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", "
|
|
17830
|
+
} 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-card_sponso_and_promo_badge", 4, "ngIf"], ["class", "miam-recipe-card__badge-container", 3, "ngClass", 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_sponso_and_promo_badge"], [4, "ngIf"], ["class", "miam-recipe-card__sponsor-container", 4, "ngIf"], [1, "miam-recipe-card__sponsor-container"], [1, "miam-recipe-card__sponsor-picture", 3, "src", "alt"], [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", "", "aria-hidden", "true", 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", "", "aria-hidden", "true", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-card__badge"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/9.0/recipe-card-badge-drinks.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-card__badge"], [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]; }, template: function RecipeCardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
17592
17831
|
i0.ɵɵelementStart(0, "div", 0);
|
|
17593
17832
|
i0.ɵɵlistener("inViewport", function RecipeCardComponent_Template_div_inViewport_0_listener() { return ctx.sendShowEvent(); });
|
|
17594
|
-
i0.ɵɵtemplate(1, RecipeCardComponent_div_1_Template, 32,
|
|
17595
|
-
i0.ɵɵtemplate(2, RecipeCardComponent_div_2_Template, 10,
|
|
17833
|
+
i0.ɵɵtemplate(1, RecipeCardComponent_div_1_Template, 32, 20, "div", 1);
|
|
17834
|
+
i0.ɵɵtemplate(2, RecipeCardComponent_div_2_Template, 10, 3, "div", 1);
|
|
17596
17835
|
i0.ɵɵelementEnd();
|
|
17597
17836
|
} if (rf & 2) {
|
|
17598
17837
|
i0.ɵɵproperty("condition", !!ctx.recipe)("ngClass", i0.ɵɵpureFunction5(4, _c8$2, ctx.displayVariant !== 2 && ctx.displayVariant !== 3, ctx.displayVariant === 2, ctx.displayVariant === 3, ctx.inBasket, ctx.isloaded && !ctx.recipe));
|
|
@@ -17600,7 +17839,7 @@ RecipeCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCardComponent,
|
|
|
17600
17839
|
i0.ɵɵproperty("ngIf", ctx.recipe);
|
|
17601
17840
|
i0.ɵɵadvance(1);
|
|
17602
17841
|
i0.ɵɵproperty("ngIf", ctx.isloaded && !ctx.recipe);
|
|
17603
|
-
} }, directives: [InViewportDirective, i2.NgClass, i2.NgIf, LikeButtonComponent, RecipePromotionBadgeComponent, RecipePricingComponent, RecipeCardCtaComponent, IconComponent], pipes: [i2.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;flex-direction:row-reverse;justify-content:space-between;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_sponso_and_promo_badge{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_sponso_and_promo_badge>: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}.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 });
|
|
17842
|
+
} }, directives: [InViewportDirective, i2.NgClass, i2.NgIf, LikeButtonComponent, RecipePromotionBadgeComponent, RecipePricingComponent, RecipeCardCtaComponent, IconComponent], pipes: [i2.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;flex-direction:row-reverse;justify-content:space-between;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_sponso_and_promo_badge{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_sponso_and_promo_badge>: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 });
|
|
17604
17843
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RecipeCardComponent, [{
|
|
17605
17844
|
type: Component,
|
|
17606
17845
|
args: [{
|
|
@@ -18141,7 +18380,7 @@ function CatalogArticleCardComponent_img_4_Template(rf, ctx) { if (rf & 1) {
|
|
|
18141
18380
|
i0.ɵɵelement(0, "img", 12);
|
|
18142
18381
|
} if (rf & 2) {
|
|
18143
18382
|
const ctx_r0 = i0.ɵɵnextContext();
|
|
18144
|
-
i0.ɵɵproperty("src", ctx_r0.article.logo, i0.ɵɵsanitizeUrl);
|
|
18383
|
+
i0.ɵɵproperty("src", ctx_r0.article.logo, i0.ɵɵsanitizeUrl)("alt", "Logo du sponsor de l'article");
|
|
18145
18384
|
} }
|
|
18146
18385
|
class CatalogArticleCardComponent {
|
|
18147
18386
|
showArticle() {
|
|
@@ -18149,19 +18388,19 @@ class CatalogArticleCardComponent {
|
|
|
18149
18388
|
}
|
|
18150
18389
|
}
|
|
18151
18390
|
CatalogArticleCardComponent.ɵfac = function CatalogArticleCardComponent_Factory(t) { return new (t || CatalogArticleCardComponent)(); };
|
|
18152
|
-
CatalogArticleCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogArticleCardComponent, selectors: [["ng-miam-catalog-article-card"]], inputs: { article: "article" }, decls: 17, vars:
|
|
18391
|
+
CatalogArticleCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogArticleCardComponent, selectors: [["ng-miam-catalog-article-card"]], inputs: { article: "article" }, decls: 17, vars: 12, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
18153
18392
|
const MSG_EXTERNAL_211763042876194117$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_ARTICLE_CARD_CATALOG_ARTICLE_CARD_COMPONENT_TS_1 = goog.getMsg("Voir l'article");
|
|
18154
18393
|
i18n_0 = MSG_EXTERNAL_211763042876194117$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_ARTICLE_CARD_CATALOG_ARTICLE_CARD_COMPONENT_TS_1;
|
|
18155
18394
|
}
|
|
18156
18395
|
else {
|
|
18157
18396
|
i18n_0 = $localize `:␟1100513985b01c08c9ecd4ea99055b73af000d3b␟211763042876194117:Voir l'article`;
|
|
18158
|
-
} return [[1, "miam-catalog-article-card", 3, "click"], [1, "miam-catalog-card__picture"], [1, "miam-catalog-card__picture__gradient"], ["loading", "lazy", 1, "miam-catalog-card__picture__img", 3, "src"], ["class", "miam-catalog-card__picture__sponsor", 3, "src", 4, "ngIf"], [1, "miam-catalog-card__attributes"], [1, "miam-catalog-article-card__attributes__title"], [1, "miam-catalog-card__attributes__infos"], [1, "miam-catalog-card__attributes__info"], [1, "miam-catalog-card__info__label"], ["target", "_blank", 3, "href"], i18n_0, [1, "miam-catalog-card__picture__sponsor", 3, "src"]]; }, template: function CatalogArticleCardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18397
|
+
} return [[1, "miam-catalog-article-card", 3, "click"], [1, "miam-catalog-card__picture"], ["aria-hidden", "true", 1, "miam-catalog-card__picture__gradient"], ["loading", "lazy", 1, "miam-catalog-card__picture__img", 3, "src", "alt"], ["class", "miam-catalog-card__picture__sponsor", 3, "src", "alt", 4, "ngIf"], [1, "miam-catalog-card__attributes"], [1, "miam-catalog-article-card__attributes__title"], [1, "miam-catalog-card__attributes__infos"], [1, "miam-catalog-card__attributes__info"], [1, "miam-catalog-card__info__label"], ["target", "_blank", 3, "href"], i18n_0, [1, "miam-catalog-card__picture__sponsor", 3, "src", "alt"]]; }, template: function CatalogArticleCardComponent_Template(rf, ctx) { if (rf & 1) {
|
|
18159
18398
|
i0.ɵɵelementStart(0, "div", 0);
|
|
18160
18399
|
i0.ɵɵlistener("click", function CatalogArticleCardComponent_Template_div_click_0_listener() { return ctx.showArticle(); });
|
|
18161
18400
|
i0.ɵɵelementStart(1, "div", 1);
|
|
18162
18401
|
i0.ɵɵelementStart(2, "div", 2);
|
|
18163
18402
|
i0.ɵɵelement(3, "img", 3);
|
|
18164
|
-
i0.ɵɵtemplate(4, CatalogArticleCardComponent_img_4_Template, 1,
|
|
18403
|
+
i0.ɵɵtemplate(4, CatalogArticleCardComponent_img_4_Template, 1, 2, "img", 4);
|
|
18165
18404
|
i0.ɵɵelementEnd();
|
|
18166
18405
|
i0.ɵɵelementEnd();
|
|
18167
18406
|
i0.ɵɵelementStart(5, "div", 5);
|
|
@@ -18186,15 +18425,16 @@ CatalogArticleCardComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogArticl
|
|
|
18186
18425
|
i0.ɵɵelementEnd();
|
|
18187
18426
|
} if (rf & 2) {
|
|
18188
18427
|
i0.ɵɵadvance(3);
|
|
18189
|
-
i0.ɵɵproperty("src", ctx.article.image, i0.ɵɵsanitizeUrl);
|
|
18428
|
+
i0.ɵɵproperty("src", ctx.article.image, i0.ɵɵsanitizeUrl)("alt", "Image de l'article: " + ctx.article.title);
|
|
18190
18429
|
i0.ɵɵadvance(1);
|
|
18191
18430
|
i0.ɵɵproperty("ngIf", ctx.article.logo);
|
|
18192
18431
|
i0.ɵɵadvance(3);
|
|
18193
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8,
|
|
18432
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind2(8, 7, ctx.article.title || "", 12));
|
|
18194
18433
|
i0.ɵɵadvance(5);
|
|
18195
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13,
|
|
18434
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(13, 10, ctx.article.date || ""));
|
|
18196
18435
|
i0.ɵɵadvance(3);
|
|
18197
18436
|
i0.ɵɵproperty("href", ctx.article.url, i0.ɵɵsanitizeUrl);
|
|
18437
|
+
i0.ɵɵattribute("aria-label", "Voir l'article " + ctx.article.title);
|
|
18198
18438
|
} }, directives: [i2.NgIf], pipes: [EllipsisPipe, i2.DatePipe], styles: [".miam-catalog-article-card{cursor:pointer}.miam-catalog-article-card:hover .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transform:scale(1.1)}.miam-catalog-article-card:hover .miam-catalog-card__attributes .miam-catalog-card__attributes__info a,.miam-catalog-article-card:hover .miam-catalog-card__attributes h4.miam-catalog-article-card__attributes__title{color:var(--m-color-primary)}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient{overflow:hidden}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient:after{display:none}.miam-catalog-article-card .miam-catalog-card__picture .miam-catalog-card__picture__gradient .miam-catalog-card__picture__img{transition:all .3s ease;position:relative}.miam-catalog-article-card .miam-catalog-card__attributes{align-items:center}.miam-catalog-article-card .miam-catalog-card__attributes h4.miam-catalog-article-card__attributes__title{text-align:center;font-weight:700;line-height:1.3;margin:0;max-height:50px;overflow:hidden;transition:all .3s ease}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos{justify-content:space-between;width:100%}.miam-catalog-article-card .miam-catalog-card__attributes .miam-catalog-card__attributes__infos .miam-catalog-card__attributes__info a{transition:all .3s ease}"], encapsulation: 2, changeDetection: 0 });
|
|
18199
18439
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogArticleCardComponent, [{
|
|
18200
18440
|
type: Component,
|
|
@@ -19399,8 +19639,8 @@ function CatalogCategoryComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
19399
19639
|
i0.ɵɵelementStart(5, "div", 5);
|
|
19400
19640
|
i0.ɵɵtext(6);
|
|
19401
19641
|
i0.ɵɵelementEnd();
|
|
19402
|
-
i0.ɵɵelementStart(7, "
|
|
19403
|
-
i0.ɵɵlistener("click", function
|
|
19642
|
+
i0.ɵɵelementStart(7, "button", 6);
|
|
19643
|
+
i0.ɵɵlistener("click", function CatalogCategoryComponent_div_0_Template_button_click_7_listener() { i0.ɵɵrestoreView(_r9); const ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.displayListMode(); });
|
|
19404
19644
|
i0.ɵɵelementStart(8, "span");
|
|
19405
19645
|
i0.ɵɵi18n(9, 7);
|
|
19406
19646
|
i0.ɵɵelementEnd();
|
|
@@ -19424,8 +19664,10 @@ function CatalogCategoryComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
19424
19664
|
i0.ɵɵtextInterpolate(ctx_r0.title);
|
|
19425
19665
|
i0.ɵɵadvance(3);
|
|
19426
19666
|
i0.ɵɵtextInterpolate(ctx_r0.subtitle);
|
|
19427
|
-
i0.ɵɵadvance(
|
|
19428
|
-
i0.ɵɵ
|
|
19667
|
+
i0.ɵɵadvance(1);
|
|
19668
|
+
i0.ɵɵattribute("aria-label", "Voir toutes les recettes de " + ctx_r0.title);
|
|
19669
|
+
i0.ɵɵadvance(8);
|
|
19670
|
+
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(16, 8, ctx_r0.loading));
|
|
19429
19671
|
i0.ɵɵadvance(2);
|
|
19430
19672
|
i0.ɵɵproperty("ngForOf", ctx_r0.recipes)("ngForTrackBy", ctx_r0.trackByFn);
|
|
19431
19673
|
i0.ɵɵadvance(1);
|
|
@@ -19557,11 +19799,11 @@ CatalogCategoryComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogCategoryC
|
|
|
19557
19799
|
}
|
|
19558
19800
|
else {
|
|
19559
19801
|
i18n_4 = $localize `:␟8f2c8f66fed7cbda7649b4ba2320375ff7526dbb␟5011068305185462335: Chargement des résultats... `;
|
|
19560
|
-
} return [["class", "miam-catalog-category", "ngMiamInViewport", "", 3, "condition", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-catalog-category", 3, "condition", "inViewport"], [1, "miam-catalog-category__header"], [1, "miam-catalog-category__title", 3, "click"], [1, "miam-catalog-category__header__bottom"], [1, "miam-catalog-category__subtitle", "miam-ds-text", "size-s", "weight-l"], [1, "miam-catalog-category__link", "miam-ds-text", "size-s", "weight-xl", 3, "click"], i18n_2, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", "alt", "
|
|
19561
|
-
i0.ɵɵtemplate(0, CatalogCategoryComponent_div_0_Template, 19,
|
|
19802
|
+
} return [["class", "miam-catalog-category", "ngMiamInViewport", "", 3, "condition", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-catalog-category", 3, "condition", "inViewport"], [1, "miam-catalog-category__header"], ["role", "heading", "aria-level", "2", 1, "miam-catalog-category__title", 3, "click"], [1, "miam-catalog-category__header__bottom"], [1, "miam-catalog-category__subtitle", "miam-ds-text", "size-s", "weight-l"], [1, "miam-catalog-category__link", "miam-ds-text", "size-s", "weight-xl", 3, "click"], i18n_2, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", "alt", "", "aria-hidden", "true"], [1, "miam-catalog-category__content"], ["categoryContent", ""], [1, "miam-catalog-category__cards"], ["categoryCards", ""], ["class", "miam-catalog-category__loader", 4, "ngIf"], [3, "recipe", "displayInfos", "displayPricing", "displayVariant", "originTrace", 4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "article", 4, "ngFor", "ngForOf"], [1, "miam-catalog-category__loader"], i18n_4, [3, "recipe", "displayInfos", "displayPricing", "displayVariant", "originTrace"], [3, "article"]]; }, template: function CatalogCategoryComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19803
|
+
i0.ɵɵtemplate(0, CatalogCategoryComponent_div_0_Template, 19, 10, "div", 0);
|
|
19562
19804
|
} if (rf & 2) {
|
|
19563
19805
|
i0.ɵɵproperty("ngIf", !ctx.hide);
|
|
19564
|
-
} }, directives: [i2.NgIf, InViewportDirective, i2.NgForOf, LoaderComponent, RecipeCardComponent, CatalogArticleCardComponent], pipes: [i2.AsyncPipe], styles: [".miam-catalog-category{display:flex;flex-direction:column;margin:20px 0}.miam-catalog-category .miam-catalog-category__header{display:flex;flex-direction:column;margin-bottom:16px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__title{width:-moz-fit-content;width:fit-content;margin-bottom:4px;font-size:24px;line-height:34px;font-weight:700;cursor:pointer}@media (min-width:1024px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__title:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom{display:flex;align-items:center;justify-content:space-between;width:100%}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom .miam-catalog-category__subtitle{color:var(--miam-ds-color-neutral-500)}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom .miam-catalog-category__link{display:flex;align-items:center;color:var(--miam-ds-color-primary);cursor:pointer;white-space:nowrap;margin-left:16px;margin-right:4px}@media (min-width:1024px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom .miam-catalog-category__link:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__content{position:relative;overflow:hidden;padding:16px 0;width:100%;height:var(--m-catalog-card-height);box-sizing:content-box}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{display:flex;flex-direction:row;flex-wrap:wrap;transition-duration:.5s;gap:16px}@media (min-width:1025px){.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards ng-miam-recipe-card{flex:1;min-width:240px;max-width:308px;display:flex}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards ng-miam-recipe-card .miam-recipe-card{flex:1}}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}@media (max-width:1023px){.miam-catalog-category .miam-catalog-category__header{flex-direction:column;align-items:flex-start;margin:0 24px 8px}.miam-catalog-category .miam-catalog-category__content{overflow-x:auto;margin:16px 0}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{flex-wrap:nowrap;padding:0 24px}}"], encapsulation: 2, changeDetection: 0 });
|
|
19806
|
+
} }, directives: [i2.NgIf, InViewportDirective, i2.NgForOf, LoaderComponent, RecipeCardComponent, CatalogArticleCardComponent], pipes: [i2.AsyncPipe], styles: [".miam-catalog-category{display:flex;flex-direction:column;margin:20px 0}.miam-catalog-category .miam-catalog-category__header{display:flex;flex-direction:column;margin-bottom:16px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__title{width:-moz-fit-content;width:fit-content;margin-bottom:4px;font-size:24px;line-height:34px;font-weight:700;cursor:pointer}@media (min-width:1024px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__title:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom{display:flex;align-items:center;justify-content:space-between;width:100%}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom .miam-catalog-category__subtitle{color:var(--miam-ds-color-neutral-500)}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom .miam-catalog-category__link{background:none;border:none;display:flex;align-items:center;color:var(--miam-ds-color-primary);cursor:pointer;white-space:nowrap;margin-left:16px;margin-right:4px}@media (min-width:1024px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__header__bottom .miam-catalog-category__link:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__content{position:relative;overflow:hidden;padding:16px 0;width:100%;height:var(--m-catalog-card-height);box-sizing:content-box}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{display:flex;flex-direction:row;flex-wrap:wrap;transition-duration:.5s;gap:16px}@media (min-width:1025px){.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards ng-miam-recipe-card{flex:1;min-width:240px;max-width:308px;display:flex}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards ng-miam-recipe-card .miam-recipe-card{flex:1}}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}@media (max-width:1023px){.miam-catalog-category .miam-catalog-category__header{flex-direction:column;align-items:flex-start;margin:0 24px 8px}.miam-catalog-category .miam-catalog-category__content{overflow-x:auto;margin:16px 0}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{flex-wrap:nowrap;padding:0 24px}}"], encapsulation: 2, changeDetection: 0 });
|
|
19565
19807
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(CatalogCategoryComponent, [{
|
|
19566
19808
|
type: Component,
|
|
19567
19809
|
args: [{
|
|
@@ -19823,10 +20065,10 @@ CatalogHeaderComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogHeaderCompo
|
|
|
19823
20065
|
}
|
|
19824
20066
|
else {
|
|
19825
20067
|
i18n_13 = $localize `:␟c3f91aba0ecfc75cb49a3b7424823664075a1df8␟8529048627562842272:Idées repas en 1 clic`;
|
|
19826
|
-
} return [[1, "miam-catalog-header", 3, "ngClass"], [1, "miam-catalog-header__left"], [1, "miam-catalog-header__nav"], ["href", "/"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Home.svg", "alt", "
|
|
20068
|
+
} return [[1, "miam-catalog-header", 3, "ngClass"], [1, "miam-catalog-header__left"], ["aria-label", "Navigation du catalogue", 1, "miam-catalog-header__nav"], ["href", "/", "aria-label", "Accueil"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Home.svg", "alt", "", "aria-hidden", "true"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Caret.svg", "alt", "", "aria-hidden", "true"], ["href", "javascript:void(0)", "class", "miam-ds-text size-s weight-l", 3, "ngClass", "click", 4, "ngIf"], ["href", "javascript:void(0)", 3, "ngClass", "click", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Caret.svg", "alt", "", "aria-hidden", "true", 4, "ngIf"], ["href", "javascript:void(0)", "class", "miam-ds-text size-s weight-xxl", 3, "ngClass", 4, "ngIf"], ["class", "miam-catalog-header__title-container", 4, "ngIf"], ["class", "miam-catalog-header__right", "aria-hidden", "true", 3, "background-image", 4, "ngIf"], ["href", "javascript:void(0)", 1, "miam-ds-text", "size-s", "weight-l", 3, "ngClass", "click"], i18n_0, ["href", "javascript:void(0)", 3, "ngClass", "click"], ["href", "javascript:void(0)", 1, "miam-ds-text", "size-s", "weight-xxl", 3, "ngClass"], ["class", "miam-catalog-header__search-label", 4, "ngIf"], [4, "ngIf"], ["class", "miam-catalog-header__favorites-label", 4, "ngIf"], ["class", "miam-catalog-header__all-recipes-label", 4, "ngIf"], ["class", "miam-catalog-header__category-label", 4, "ngIf"], ["class", "miam-catalog-header__default-label", 4, "ngIf"], [1, "miam-catalog-header__search-label"], i18n_3, [1, "miam-catalog-header__favorites-label"], i18n_5, i18n_7, [1, "miam-catalog-header__all-recipes-label"], i18n_9, [1, "miam-catalog-header__category-label"], [1, "miam-catalog-header__default-label"], i18n_11, [1, "miam-catalog-header__title-container"], ["role", "heading", "aria-level", "1", 1, "miam-catalog-header__title"], [4, "ngIf", "ngIfElse"], ["baseTitle", ""], i18n_13, ["aria-hidden", "true", 1, "miam-catalog-header__right"]]; }, template: function CatalogHeaderComponent_Template(rf, ctx) { if (rf & 1) {
|
|
19827
20069
|
i0.ɵɵelementStart(0, "div", 0);
|
|
19828
20070
|
i0.ɵɵelementStart(1, "div", 1);
|
|
19829
|
-
i0.ɵɵelementStart(2, "
|
|
20071
|
+
i0.ɵɵelementStart(2, "nav", 2);
|
|
19830
20072
|
i0.ɵɵelementStart(3, "a", 3);
|
|
19831
20073
|
i0.ɵɵelement(4, "img", 4);
|
|
19832
20074
|
i0.ɵɵelementEnd();
|
|
@@ -19919,7 +20161,8 @@ function CatalogToolbarComponent_button_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
19919
20161
|
i0.ɵɵelementEnd();
|
|
19920
20162
|
} if (rf & 2) {
|
|
19921
20163
|
const ctx_r2 = i0.ɵɵnextContext();
|
|
19922
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
20164
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c4$1, ctx_r2.hideButtons))("disabled", ctx_r2.hideButtons);
|
|
20165
|
+
i0.ɵɵattribute("aria-pressed", ctx_r2.filterBadgeCount && ctx_r2.filterBadgeCount > 0 ? "true" : "false");
|
|
19923
20166
|
i0.ɵɵadvance(2);
|
|
19924
20167
|
i0.ɵɵproperty("ngIf", ctx_r2.filterBadgeCount && ctx_r2.filterBadgeCount > 0);
|
|
19925
20168
|
} }
|
|
@@ -19948,7 +20191,8 @@ function CatalogToolbarComponent_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
|
19948
20191
|
i0.ɵɵelementEnd();
|
|
19949
20192
|
} if (rf & 2) {
|
|
19950
20193
|
const ctx_r4 = i0.ɵɵnextContext();
|
|
19951
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
20194
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(4, _c4$1, ctx_r4.hideButtons))("disabled", ctx_r4.hideButtons);
|
|
20195
|
+
i0.ɵɵattribute("aria-pressed", ctx_r4.filterBadgeCount > 0 ? "true" : "false");
|
|
19952
20196
|
i0.ɵɵadvance(2);
|
|
19953
20197
|
i0.ɵɵproperty("ngIf", ctx_r4.filterBadgeCount > 0);
|
|
19954
20198
|
} }
|
|
@@ -20030,7 +20274,7 @@ class CatalogToolbarComponent {
|
|
|
20030
20274
|
}
|
|
20031
20275
|
}
|
|
20032
20276
|
CatalogToolbarComponent.ɵfac = function CatalogToolbarComponent_Factory(t) { return new (t || CatalogToolbarComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(PreferencesService), i0.ɵɵdirectiveInject(ContextService)); };
|
|
20033
|
-
CatalogToolbarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogToolbarComponent, selectors: [["ng-miam-catalog-toolbar"]], inputs: { home: "home", history: "history", searchTerm: "searchTerm", additionalFiltersTitle: "additionalFiltersTitle", hideButtons: "hideButtons", filterBadgeCount: "filterBadgeCount", reduced: "reduced" }, outputs: { filterButtonPressed: "filterButtonPressed", favoritesButtonPressed: "favoritesButtonPressed", preferencesButtonPressed: "preferencesButtonPressed", searchStringChanged: "searchStringChanged", returnHomePressed: "returnHomePressed" }, features: [i0.ɵɵNgOnChangesFeature], decls: 18, vars:
|
|
20277
|
+
CatalogToolbarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogToolbarComponent, selectors: [["ng-miam-catalog-toolbar"]], inputs: { home: "home", history: "history", searchTerm: "searchTerm", additionalFiltersTitle: "additionalFiltersTitle", hideButtons: "hideButtons", filterBadgeCount: "filterBadgeCount", reduced: "reduced" }, outputs: { filterButtonPressed: "filterButtonPressed", favoritesButtonPressed: "favoritesButtonPressed", preferencesButtonPressed: "preferencesButtonPressed", searchStringChanged: "searchStringChanged", returnHomePressed: "returnHomePressed" }, features: [i0.ɵɵNgOnChangesFeature], decls: 18, vars: 28, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
20034
20278
|
const MSG_EXTERNAL_9174301238530403624$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_TOOLBAR_CATALOG_TOOLBAR_COMPONENT_TS_1 = goog.getMsg("Je cherche mon repas pr\u00E9f\u00E9r\u00E9");
|
|
20035
20279
|
i18n_0 = MSG_EXTERNAL_9174301238530403624$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_TOOLBAR_CATALOG_TOOLBAR_COMPONENT_TS_1;
|
|
20036
20280
|
}
|
|
@@ -20060,7 +20304,7 @@ CatalogToolbarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogToolbarCom
|
|
|
20060
20304
|
}
|
|
20061
20305
|
else {
|
|
20062
20306
|
i18n_9 = $localize `:␟90857fa8dc61f44c68e5e16dae900b3eb88f2888␟588207140585847047:Favoris`;
|
|
20063
|
-
} return [[1, "miam-catalog-toolbar"], [1, "miam-catalog-toolbar__searchbar-container"], [1, "miam-catalog-toolbar__searchbar", 3, "ngClass"], [1, "miam-ds-button", "ghost", "small", "square", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Search.svg", "alt", "
|
|
20307
|
+
} return [["role", "toolbar", "aria-label", "Catalogue de recettes", 1, "miam-catalog-toolbar"], [1, "miam-catalog-toolbar__searchbar-container"], [1, "miam-catalog-toolbar__searchbar", 3, "ngClass"], ["aria-label", "Rechercher", 1, "miam-ds-button", "ghost", "small", "square", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Search.svg", "alt", "", "aria-hidden", "true"], ["type", "text", "placeholder", i18n_0, "class", "miam-ds-text size-s weight-l", "aria-label", "Rechercher mon repas pr\u00E9f\u00E9r\u00E9", 3, "ngModel", "ngModelChange", "keydown.enter", "blur", 4, "ngIf"], ["type", "text", "placeholder", i18n_2, "class", "miam-ds-text size-s weight-l", "aria-label", "Rechercher un ingr\u00E9dient ou un repas", 3, "ngModel", "ngModelChange", "keydown.enter", "blur", 4, "ngIf"], ["class", "miam-catalog-toolbar__controls__filter miam-ds-button ghost square", "aria-label", "Filtres", 3, "ngClass", "disabled", "click", 4, "ngIf"], ["class", "miam-recipe-toolbar__return-button miam-ds-button ghost square", "aria-label", "Retour", 3, "click", 4, "ngIf"], [1, "miam-catalog-toolbar__buttons-container"], ["aria-label", "Pr\u00E9f\u00E9rences", 1, "miam-ds-button", "miam-catalog-toolbar__controls__preferences", 3, "ngClass", "disabled", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/cog_neutral.svg", "alt", "", "aria-hidden", "true"], ["class", "miam-catalog-toolbar__controls__preferences-label", 4, "ngIf"], ["class", "miam-catalog-toolbar__controls__filter-badge", "aria-hidden", "true", 4, "ngIf"], [1, "miam-ds-button", "miam-catalog-toolbar__controls__favorites", 3, "ngClass", "disabled", "click"], ["alt", "", "aria-hidden", "true", 3, "src"], ["class", "miam-catalog-toolbar__controls__favorites-label", 4, "ngIf"], ["type", "text", "placeholder", i18n_0, "aria-label", "Rechercher mon repas pr\u00E9f\u00E9r\u00E9", 1, "miam-ds-text", "size-s", "weight-l", 3, "ngModel", "ngModelChange", "keydown.enter", "blur"], ["type", "text", "placeholder", i18n_2, "aria-label", "Rechercher un ingr\u00E9dient ou un repas", 1, "miam-ds-text", "size-s", "weight-l", 3, "ngModel", "ngModelChange", "keydown.enter", "blur"], ["aria-label", "Filtres", 1, "miam-catalog-toolbar__controls__filter", "miam-ds-button", "ghost", "square", 3, "ngClass", "disabled", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Filters.svg", "alt", "", "aria-hidden", "true"], ["aria-hidden", "true", 1, "miam-catalog-toolbar__controls__filter-badge"], ["aria-label", "Retour", 1, "miam-recipe-toolbar__return-button", "miam-ds-button", "ghost", "square", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ArrowLeft_dark.svg", "alt", "", "aria-hidden", "true"], [1, "miam-catalog-toolbar__controls__preferences-label"], i18n_5, [1, "miam-catalog-toolbar__controls__favorites-label"], [4, "ngIf"], i18n_7, i18n_9]; }, template: function CatalogToolbarComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20064
20308
|
i0.ɵɵelementStart(0, "div", 0);
|
|
20065
20309
|
i0.ɵɵelementStart(1, "div", 1);
|
|
20066
20310
|
i0.ɵɵelementStart(2, "div", 2);
|
|
@@ -20071,11 +20315,11 @@ CatalogToolbarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogToolbarCom
|
|
|
20071
20315
|
i0.ɵɵtemplate(5, CatalogToolbarComponent_input_5_Template, 1, 1, "input", 5);
|
|
20072
20316
|
i0.ɵɵtemplate(6, CatalogToolbarComponent_input_6_Template, 1, 1, "input", 6);
|
|
20073
20317
|
i0.ɵɵelementEnd();
|
|
20074
|
-
i0.ɵɵtemplate(7, CatalogToolbarComponent_button_7_Template, 3,
|
|
20318
|
+
i0.ɵɵtemplate(7, CatalogToolbarComponent_button_7_Template, 3, 6, "button", 7);
|
|
20075
20319
|
i0.ɵɵtemplate(8, CatalogToolbarComponent_button_8_Template, 2, 0, "button", 8);
|
|
20076
20320
|
i0.ɵɵelementEnd();
|
|
20077
20321
|
i0.ɵɵelementStart(9, "div", 9);
|
|
20078
|
-
i0.ɵɵtemplate(10, CatalogToolbarComponent_button_10_Template, 3,
|
|
20322
|
+
i0.ɵɵtemplate(10, CatalogToolbarComponent_button_10_Template, 3, 6, "button", 7);
|
|
20079
20323
|
i0.ɵɵelementStart(11, "button", 10);
|
|
20080
20324
|
i0.ɵɵlistener("click", function CatalogToolbarComponent_Template_button_click_11_listener() { return ctx.preferencesButtonPressed.emit(); });
|
|
20081
20325
|
i0.ɵɵelement(12, "img", 11);
|
|
@@ -20092,7 +20336,7 @@ CatalogToolbarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogToolbarCom
|
|
|
20092
20336
|
} if (rf & 2) {
|
|
20093
20337
|
i0.ɵɵclassProp("reduced", ctx.reduced);
|
|
20094
20338
|
i0.ɵɵadvance(2);
|
|
20095
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
20339
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(18, _c11, !ctx.home));
|
|
20096
20340
|
i0.ɵɵadvance(3);
|
|
20097
20341
|
i0.ɵɵproperty("ngIf", ctx.hideButtons && !ctx.history);
|
|
20098
20342
|
i0.ɵɵadvance(1);
|
|
@@ -20104,13 +20348,15 @@ CatalogToolbarComponent.ɵcmp = i0.ɵɵdefineComponent({ type: CatalogToolbarCom
|
|
|
20104
20348
|
i0.ɵɵadvance(2);
|
|
20105
20349
|
i0.ɵɵproperty("ngIf", ctx.reduced);
|
|
20106
20350
|
i0.ɵɵadvance(1);
|
|
20107
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(
|
|
20351
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(20, _c12, ctx.hideButtons, ctx.reduced, !ctx.reduced))("disabled", ctx.hideButtons);
|
|
20352
|
+
i0.ɵɵattribute("aria-pressed", ctx.preferencesBadgeCount > 0 ? "true" : "false");
|
|
20108
20353
|
i0.ɵɵadvance(2);
|
|
20109
20354
|
i0.ɵɵproperty("ngIf", !ctx.reduced);
|
|
20110
20355
|
i0.ɵɵadvance(1);
|
|
20111
20356
|
i0.ɵɵproperty("ngIf", ctx.preferencesBadgeCount > 0);
|
|
20112
20357
|
i0.ɵɵadvance(1);
|
|
20113
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(
|
|
20358
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction3(24, _c12, ctx.hideButtons, ctx.reduced, !ctx.reduced))("disabled", ctx.hideButtons);
|
|
20359
|
+
i0.ɵɵattribute("aria-label", ctx.context.orderHistoryEnabled ? "Mon carnet" : "Favoris");
|
|
20114
20360
|
i0.ɵɵadvance(1);
|
|
20115
20361
|
i0.ɵɵproperty("src", ctx.hideButtons ? "https://storage.googleapis.com/assets.miam.tech/generic/icons/Heart_grey.svg" : "https://storage.googleapis.com/assets.miam.tech/generic/icons/Heart_Black.svg", i0.ɵɵsanitizeUrl);
|
|
20116
20362
|
i0.ɵɵadvance(1);
|
|
@@ -20227,7 +20473,7 @@ PreferencesSearchComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PreferencesSea
|
|
|
20227
20473
|
}
|
|
20228
20474
|
else {
|
|
20229
20475
|
i18n_2 = $localize `:␟38065386474cc9d4fe2e88d29c68a73a845e1aaf␟9128422682433667832:Pas de panique, nous ne trouvons pas cet ingrédient. Aucun risque de le retrouver dans votre assiette.`;
|
|
20230
|
-
} return [[1, "preferences__search"], [1, "preferences__search-bar"], ["
|
|
20476
|
+
} return [[1, "preferences__search"], [1, "preferences__search-bar"], ["aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Search.svg", "alt", "", 1, "preferences__search-img"], ["type", "text", "placeholder", i18n_0, "aria-label", "Rechercher des ingr\u00E9dients \u00E0 exclure", 1, "preferences__search-bar-input", 3, "ngModel", "keyup"], ["aria-label", "Effacer la recherche", 1, "miam-ds-button", "ghost", "small", "square", "preferences__clear-input-button", 3, "click"], ["alt", "", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_neutralBlack.svg", "aria-hidden", "true", 1, "preferences__clear-input-img"], ["class", "preferences__suggested__tag", 3, "click", 4, "ngFor", "ngForOf"], ["class", "preferences__not-found", "role", "alert", 4, "ngIf"], [1, "preferences__suggested__tag", 3, "click"], ["role", "alert", 1, "preferences__not-found"], i18n_2]; }, template: function PreferencesSearchComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20231
20477
|
i0.ɵɵelementStart(0, "div", 0);
|
|
20232
20478
|
i0.ɵɵelementStart(1, "div", 1);
|
|
20233
20479
|
i0.ɵɵelement(2, "img", 2);
|
|
@@ -20312,39 +20558,38 @@ function PreferencesComponent_ng_container_5_div_11_Template(rf, ctx) { if (rf &
|
|
|
20312
20558
|
i0.ɵɵtextInterpolate1(" ", diet_r12.tag.name, " ");
|
|
20313
20559
|
i0.ɵɵadvance(1);
|
|
20314
20560
|
i0.ɵɵproperty("checked", diet_r12.checked);
|
|
20561
|
+
i0.ɵɵattribute("aria-label", "S\u00E9lectionner " + diet_r12.tag.name);
|
|
20315
20562
|
} }
|
|
20316
20563
|
function PreferencesComponent_ng_container_5_button_17_img_5_Template(rf, ctx) { if (rf & 1) {
|
|
20317
20564
|
i0.ɵɵelement(0, "img", 42);
|
|
20318
|
-
} if (rf & 2) {
|
|
20319
|
-
const ingredient_r15 = i0.ɵɵnextContext().$implicit;
|
|
20320
|
-
i0.ɵɵproperty("alt", "remove " + ingredient_r15.tag.attributes.name);
|
|
20321
20565
|
} }
|
|
20322
20566
|
const _c18 = function (a0) { return { "checked": a0 }; };
|
|
20323
20567
|
function PreferencesComponent_ng_container_5_button_17_Template(rf, ctx) { if (rf & 1) {
|
|
20324
|
-
const
|
|
20568
|
+
const _r18 = i0.ɵɵgetCurrentView();
|
|
20325
20569
|
i0.ɵɵelementStart(0, "button", 40);
|
|
20326
|
-
i0.ɵɵlistener("click", function PreferencesComponent_ng_container_5_button_17_Template_button_click_0_listener() { i0.ɵɵrestoreView(
|
|
20570
|
+
i0.ɵɵlistener("click", function PreferencesComponent_ng_container_5_button_17_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r18); const ingredient_r15 = ctx.$implicit; const ctx_r17 = i0.ɵɵnextContext(2); return ctx_r17.toggleTag(ingredient_r15); });
|
|
20327
20571
|
i0.ɵɵelementStart(1, "div", 27);
|
|
20328
20572
|
i0.ɵɵelementStart(2, "span");
|
|
20329
20573
|
i0.ɵɵtext(3);
|
|
20330
20574
|
i0.ɵɵpipe(4, "titlecase");
|
|
20331
20575
|
i0.ɵɵelementEnd();
|
|
20332
|
-
i0.ɵɵtemplate(5, PreferencesComponent_ng_container_5_button_17_img_5_Template, 1,
|
|
20576
|
+
i0.ɵɵtemplate(5, PreferencesComponent_ng_container_5_button_17_img_5_Template, 1, 0, "img", 41);
|
|
20333
20577
|
i0.ɵɵelementEnd();
|
|
20334
20578
|
i0.ɵɵelementEnd();
|
|
20335
20579
|
} if (rf & 2) {
|
|
20336
20580
|
const ingredient_r15 = ctx.$implicit;
|
|
20337
20581
|
const ctx_r10 = i0.ɵɵnextContext(2);
|
|
20338
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
20582
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(6, _c18, ingredient_r15.checked));
|
|
20583
|
+
i0.ɵɵattribute("aria-pressed", ingredient_r15.checked);
|
|
20339
20584
|
i0.ɵɵadvance(3);
|
|
20340
|
-
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4,
|
|
20585
|
+
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 4, ingredient_r15.tag.attributes.name));
|
|
20341
20586
|
i0.ɵɵadvance(2);
|
|
20342
20587
|
i0.ɵɵproperty("ngIf", ctx_r10.isAdditionalIngredient(ingredient_r15));
|
|
20343
20588
|
} }
|
|
20344
20589
|
function PreferencesComponent_ng_container_5_div_30_Template(rf, ctx) { if (rf & 1) {
|
|
20345
|
-
const
|
|
20590
|
+
const _r21 = i0.ɵɵgetCurrentView();
|
|
20346
20591
|
i0.ɵɵelementStart(0, "div", 37);
|
|
20347
|
-
i0.ɵɵlistener("click", function PreferencesComponent_ng_container_5_div_30_Template_div_click_0_listener() { i0.ɵɵrestoreView(
|
|
20592
|
+
i0.ɵɵlistener("click", function PreferencesComponent_ng_container_5_div_30_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r21); const equipment_r19 = ctx.$implicit; const ctx_r20 = i0.ɵɵnextContext(2); return ctx_r20.toggleTag(equipment_r19); });
|
|
20348
20593
|
i0.ɵɵelementStart(1, "div", 43);
|
|
20349
20594
|
i0.ɵɵtext(2);
|
|
20350
20595
|
i0.ɵɵpipe(3, "titlecase");
|
|
@@ -20352,25 +20597,26 @@ function PreferencesComponent_ng_container_5_div_30_Template(rf, ctx) { if (rf &
|
|
|
20352
20597
|
i0.ɵɵelement(4, "input", 39);
|
|
20353
20598
|
i0.ɵɵelementEnd();
|
|
20354
20599
|
} if (rf & 2) {
|
|
20355
|
-
const
|
|
20600
|
+
const equipment_r19 = ctx.$implicit;
|
|
20356
20601
|
i0.ɵɵadvance(2);
|
|
20357
|
-
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3,
|
|
20602
|
+
i0.ɵɵtextInterpolate1(" ", i0.ɵɵpipeBind1(3, 3, equipment_r19.tag.name), " ");
|
|
20358
20603
|
i0.ɵɵadvance(2);
|
|
20359
|
-
i0.ɵɵproperty("checked",
|
|
20604
|
+
i0.ɵɵproperty("checked", equipment_r19.checked);
|
|
20605
|
+
i0.ɵɵattribute("aria-label", "S\u00E9lectionner " + equipment_r19.tag.name);
|
|
20360
20606
|
} }
|
|
20361
20607
|
function PreferencesComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
20362
|
-
const
|
|
20608
|
+
const _r23 = i0.ɵɵgetCurrentView();
|
|
20363
20609
|
i0.ɵɵelementContainerStart(0);
|
|
20364
20610
|
i0.ɵɵelementStart(1, "div", 14);
|
|
20365
20611
|
i0.ɵɵelementStart(2, "span", 15);
|
|
20366
20612
|
i0.ɵɵi18n(3, 16);
|
|
20367
20613
|
i0.ɵɵelementEnd();
|
|
20368
20614
|
i0.ɵɵelementStart(4, "ng-miam-counter-input", 17);
|
|
20369
|
-
i0.ɵɵlistener("valueChange", function PreferencesComponent_ng_container_5_Template_ng_miam_counter_input_valueChange_4_listener($event) { i0.ɵɵrestoreView(
|
|
20615
|
+
i0.ɵɵlistener("valueChange", function PreferencesComponent_ng_container_5_Template_ng_miam_counter_input_valueChange_4_listener($event) { i0.ɵɵrestoreView(_r23); const ctx_r22 = i0.ɵɵnextContext(); return ctx_r22.preferencesService.guests = $event; });
|
|
20370
20616
|
i0.ɵɵelementEnd();
|
|
20371
20617
|
i0.ɵɵelementEnd();
|
|
20372
20618
|
i0.ɵɵelementStart(5, "ng-miam-accordion", 18);
|
|
20373
|
-
i0.ɵɵlistener("isCollapsedChange", function PreferencesComponent_ng_container_5_Template_ng_miam_accordion_isCollapsedChange_5_listener() { i0.ɵɵrestoreView(
|
|
20619
|
+
i0.ɵɵlistener("isCollapsedChange", function PreferencesComponent_ng_container_5_Template_ng_miam_accordion_isCollapsedChange_5_listener() { i0.ɵɵrestoreView(_r23); const ctx_r24 = i0.ɵɵnextContext(); return ctx_r24.cdr.detectChanges(); });
|
|
20374
20620
|
i0.ɵɵelementStart(6, "ng-miam-accordion-title");
|
|
20375
20621
|
i0.ɵɵelementStart(7, "span", 19);
|
|
20376
20622
|
i0.ɵɵi18n(8, 20);
|
|
@@ -20378,21 +20624,21 @@ function PreferencesComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
20378
20624
|
i0.ɵɵelementEnd();
|
|
20379
20625
|
i0.ɵɵelementStart(9, "ng-miam-accordion-content");
|
|
20380
20626
|
i0.ɵɵelementStart(10, "div", 21);
|
|
20381
|
-
i0.ɵɵtemplate(11, PreferencesComponent_ng_container_5_div_11_Template, 4,
|
|
20627
|
+
i0.ɵɵtemplate(11, PreferencesComponent_ng_container_5_div_11_Template, 4, 3, "div", 22);
|
|
20382
20628
|
i0.ɵɵelementEnd();
|
|
20383
20629
|
i0.ɵɵelementEnd();
|
|
20384
20630
|
i0.ɵɵelementEnd();
|
|
20385
20631
|
i0.ɵɵelementStart(12, "ng-miam-accordion", 23);
|
|
20386
|
-
i0.ɵɵlistener("isCollapsedChange", function PreferencesComponent_ng_container_5_Template_ng_miam_accordion_isCollapsedChange_12_listener() { i0.ɵɵrestoreView(
|
|
20632
|
+
i0.ɵɵlistener("isCollapsedChange", function PreferencesComponent_ng_container_5_Template_ng_miam_accordion_isCollapsedChange_12_listener() { i0.ɵɵrestoreView(_r23); const ctx_r25 = i0.ɵɵnextContext(); return ctx_r25.cdr.detectChanges(); });
|
|
20387
20633
|
i0.ɵɵelementStart(13, "ng-miam-accordion-title");
|
|
20388
20634
|
i0.ɵɵelementStart(14, "span", 19);
|
|
20389
20635
|
i0.ɵɵi18n(15, 24);
|
|
20390
20636
|
i0.ɵɵelementEnd();
|
|
20391
20637
|
i0.ɵɵelementEnd();
|
|
20392
20638
|
i0.ɵɵelementStart(16, "ng-miam-accordion-content");
|
|
20393
|
-
i0.ɵɵtemplate(17, PreferencesComponent_ng_container_5_button_17_Template, 6,
|
|
20639
|
+
i0.ɵɵtemplate(17, PreferencesComponent_ng_container_5_button_17_Template, 6, 8, "button", 25);
|
|
20394
20640
|
i0.ɵɵelementStart(18, "button", 26);
|
|
20395
|
-
i0.ɵɵlistener("click", function PreferencesComponent_ng_container_5_Template_button_click_18_listener() { i0.ɵɵrestoreView(
|
|
20641
|
+
i0.ɵɵlistener("click", function PreferencesComponent_ng_container_5_Template_button_click_18_listener() { i0.ɵɵrestoreView(_r23); const ctx_r26 = i0.ɵɵnextContext(); return ctx_r26.goToSearchView(); });
|
|
20396
20642
|
i0.ɵɵelementStart(19, "div", 27);
|
|
20397
20643
|
i0.ɵɵelementStart(20, "span");
|
|
20398
20644
|
i0.ɵɵi18n(21, 28);
|
|
@@ -20403,7 +20649,7 @@ function PreferencesComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
20403
20649
|
i0.ɵɵelementEnd();
|
|
20404
20650
|
i0.ɵɵelementEnd();
|
|
20405
20651
|
i0.ɵɵelementStart(23, "ng-miam-accordion", 30);
|
|
20406
|
-
i0.ɵɵlistener("isCollapsedChange", function PreferencesComponent_ng_container_5_Template_ng_miam_accordion_isCollapsedChange_23_listener() { i0.ɵɵrestoreView(
|
|
20652
|
+
i0.ɵɵlistener("isCollapsedChange", function PreferencesComponent_ng_container_5_Template_ng_miam_accordion_isCollapsedChange_23_listener() { i0.ɵɵrestoreView(_r23); const ctx_r27 = i0.ɵɵnextContext(); return ctx_r27.cdr.detectChanges(); });
|
|
20407
20653
|
i0.ɵɵelementStart(24, "ng-miam-accordion-title");
|
|
20408
20654
|
i0.ɵɵelementStart(25, "span", 19);
|
|
20409
20655
|
i0.ɵɵi18n(26, 31);
|
|
@@ -20412,20 +20658,20 @@ function PreferencesComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
20412
20658
|
i0.ɵɵelementStart(27, "ng-miam-accordion-content");
|
|
20413
20659
|
i0.ɵɵelementStart(28, "ng-miam-accordion-content");
|
|
20414
20660
|
i0.ɵɵelementStart(29, "div", 21);
|
|
20415
|
-
i0.ɵɵtemplate(30, PreferencesComponent_ng_container_5_div_30_Template, 5,
|
|
20661
|
+
i0.ɵɵtemplate(30, PreferencesComponent_ng_container_5_div_30_Template, 5, 5, "div", 22);
|
|
20416
20662
|
i0.ɵɵelementEnd();
|
|
20417
20663
|
i0.ɵɵelementEnd();
|
|
20418
20664
|
i0.ɵɵelementEnd();
|
|
20419
20665
|
i0.ɵɵelementEnd();
|
|
20420
20666
|
i0.ɵɵelementStart(31, "div", 32);
|
|
20421
20667
|
i0.ɵɵelementStart(32, "button", 33);
|
|
20422
|
-
i0.ɵɵlistener("click", function PreferencesComponent_ng_container_5_Template_button_click_32_listener() { i0.ɵɵrestoreView(
|
|
20668
|
+
i0.ɵɵlistener("click", function PreferencesComponent_ng_container_5_Template_button_click_32_listener() { i0.ɵɵrestoreView(_r23); const ctx_r28 = i0.ɵɵnextContext(); return ctx_r28.reset(); });
|
|
20423
20669
|
i0.ɵɵelementStart(33, "span");
|
|
20424
20670
|
i0.ɵɵi18n(34, 34);
|
|
20425
20671
|
i0.ɵɵelementEnd();
|
|
20426
20672
|
i0.ɵɵelementEnd();
|
|
20427
20673
|
i0.ɵɵelementStart(35, "button", 35);
|
|
20428
|
-
i0.ɵɵlistener("click", function PreferencesComponent_ng_container_5_Template_button_click_35_listener() { i0.ɵɵrestoreView(
|
|
20674
|
+
i0.ɵɵlistener("click", function PreferencesComponent_ng_container_5_Template_button_click_35_listener() { i0.ɵɵrestoreView(_r23); const ctx_r29 = i0.ɵɵnextContext(); return ctx_r29.updateAndBack(); });
|
|
20429
20675
|
i0.ɵɵelementStart(36, "span");
|
|
20430
20676
|
i0.ɵɵi18n(37, 36);
|
|
20431
20677
|
i0.ɵɵelementEnd();
|
|
@@ -20450,10 +20696,10 @@ function PreferencesComponent_ng_container_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
20450
20696
|
i0.ɵɵproperty("ngForOf", ctx_r2.equipments);
|
|
20451
20697
|
} }
|
|
20452
20698
|
function PreferencesComponent_ng_container_6_Template(rf, ctx) { if (rf & 1) {
|
|
20453
|
-
const
|
|
20699
|
+
const _r31 = i0.ɵɵgetCurrentView();
|
|
20454
20700
|
i0.ɵɵelementContainerStart(0);
|
|
20455
20701
|
i0.ɵɵelementStart(1, "ng-miam-preferences-search", 44);
|
|
20456
|
-
i0.ɵɵlistener("backAndReload", function PreferencesComponent_ng_container_6_Template_ng_miam_preferences_search_backAndReload_1_listener() { i0.ɵɵrestoreView(
|
|
20702
|
+
i0.ɵɵlistener("backAndReload", function PreferencesComponent_ng_container_6_Template_ng_miam_preferences_search_backAndReload_1_listener() { i0.ɵɵrestoreView(_r31); const ctx_r30 = i0.ɵɵnextContext(); ctx_r30.fetchTags(); return ctx_r30.goToDefaultView(); });
|
|
20457
20703
|
i0.ɵɵelementEnd();
|
|
20458
20704
|
i0.ɵɵelementContainerEnd();
|
|
20459
20705
|
} }
|
|
@@ -20708,7 +20954,7 @@ PreferencesComponent.ɵcmp = i0.ɵɵdefineComponent({ type: PreferencesComponent
|
|
|
20708
20954
|
}
|
|
20709
20955
|
else {
|
|
20710
20956
|
i18n_16 = $localize `:␟d52eb7599c75829bf96401d33dfdad4f9857822b␟4160637687093543290:Appliquer`;
|
|
20711
|
-
} return [["modalStyle", "right", 1, "miam-preferences-modal", 3, "noHeaderMode", "display", "close"], [1, "miam-preferences"], [1, "miam-preferences__header"], [4, "ngIf"], ["class", "miam-preferences_nav-and-title", 4, "ngIf"], [1, "miam-ds-button", "ghost", "square", "miam-preferences__back-button", 3, "click"], ["alt", "
|
|
20957
|
+
} return [["modalStyle", "right", 1, "miam-preferences-modal", 3, "noHeaderMode", "display", "close"], [1, "miam-preferences"], [1, "miam-preferences__header"], [4, "ngIf"], ["class", "miam-preferences_nav-and-title", 4, "ngIf"], ["aria-label", "Retour", 1, "miam-ds-button", "ghost", "square", "miam-preferences__back-button", 3, "click"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", 1, "miam-preferences__back-image"], [1, "miam-ds-text", "size-l", "weight-xxl", "miam-preferences__title"], i18n_0, ["aria-label", "Fermer", 1, "miam-ds-button", "ghost", "square", "miam-preferences__close-button", 3, "click"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-preferences__close-image"], [1, "miam-preferences_nav-and-title"], ["aria-label", "Retour", 1, "miam-ds-button", "ghost", "square", "miam-preferences__search-back-button", 3, "click"], i18n_2, [1, "miam-preferences__guests"], [1, "miam-ds-text", "miam-preferences_guest-label"], i18n_4, [1, "miam-preferences_guest-counter", 3, "value", "valueChange"], [1, "miam-preferences__diet-section", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-ds-text", "weight-xl"], i18n_6, [1, "miam-preferences__list"], ["class", "miam-preferences__list__item miam-ds-checkbox", 3, "click", 4, "ngFor", "ngForOf"], [1, "miam-preferences__dislikes-section", 3, "isCollapsed", "isCollapsedChange"], i18n_8, ["class", "miam-ds-badge miam-preferences__badge", 3, "ngClass", "click", 4, "ngFor", "ngForOf"], ["aria-label", "Ajouter un ingr\u00E9dient \u00E0 exclure", 1, "miam-ds-badge", "miam-preferences__badge", 3, "click"], [1, "miam-preferences__badge_label"], i18n_10, ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/plus-neutral-black.svg"], [1, "miam-preferences__equipments-section", 3, "isCollapsed", "isCollapsedChange"], i18n_12, [1, "miam-preferences__footer"], [1, "miam-ds-button", "secondary", "miam-preferences__footer__reset", 3, "click"], i18n_14, [1, "miam-ds-button", "primary", "miam-preferences__footer__recipes", 3, "click"], i18n_16, [1, "miam-preferences__list__item", "miam-ds-checkbox", 3, "click"], [1, "miam-ds-text", "miam-preferences__list__item__name"], ["type", "checkbox", 3, "checked"], [1, "miam-ds-badge", "miam-preferences__badge", 3, "ngClass", "click"], ["alt", "", "aria-hidden", "true", "class", "miam-preferences__remove-tag", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg", 4, "ngIf"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg", 1, "miam-preferences__remove-tag"], [1, "miam-preferences__list__item__name"], [3, "backAndReload"]]; }, template: function PreferencesComponent_Template(rf, ctx) { if (rf & 1) {
|
|
20712
20958
|
i0.ɵɵelementStart(0, "ng-miam-modal", 0);
|
|
20713
20959
|
i0.ɵɵlistener("close", function PreferencesComponent_Template_ng_miam_modal_close_0_listener() { return ctx.close(); });
|
|
20714
20960
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -20776,10 +21022,10 @@ function RecipeCatalogComponent_div_2_div_5_Template(rf, ctx) { if (rf & 1) {
|
|
|
20776
21022
|
i0.ɵɵelementEnd();
|
|
20777
21023
|
i0.ɵɵelementEnd();
|
|
20778
21024
|
} }
|
|
20779
|
-
function
|
|
21025
|
+
function RecipeCatalogComponent_div_2_button_6_Template(rf, ctx) { if (rf & 1) {
|
|
20780
21026
|
const _r19 = i0.ɵɵgetCurrentView();
|
|
20781
|
-
i0.ɵɵelementStart(0, "
|
|
20782
|
-
i0.ɵɵlistener("click", function
|
|
21027
|
+
i0.ɵɵelementStart(0, "button", 20);
|
|
21028
|
+
i0.ɵɵlistener("click", function RecipeCatalogComponent_div_2_button_6_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r19); const ctx_r18 = i0.ɵɵnextContext(2); return ctx_r18.toggleMyMealDrawer(); });
|
|
20783
21029
|
i0.ɵɵelement(1, "img", 21);
|
|
20784
21030
|
i0.ɵɵelementStart(2, "span", 22);
|
|
20785
21031
|
i0.ɵɵelementStart(3, "span");
|
|
@@ -20793,6 +21039,7 @@ function RecipeCatalogComponent_div_2_div_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
20793
21039
|
i0.ɵɵelementEnd();
|
|
20794
21040
|
} if (rf & 2) {
|
|
20795
21041
|
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
21042
|
+
i0.ɵɵattribute("aria-label", "Voir votre panier avec " + ctx_r5.recipeCount + " repas");
|
|
20796
21043
|
i0.ɵɵadvance(4);
|
|
20797
21044
|
i0.ɵɵtextInterpolate(ctx_r5.recipeCount);
|
|
20798
21045
|
} }
|
|
@@ -20873,18 +21120,18 @@ function RecipeCatalogComponent_div_2_div_7_span_9_Template(rf, ctx) { if (rf &
|
|
|
20873
21120
|
function RecipeCatalogComponent_div_2_div_7_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
20874
21121
|
const _r34 = i0.ɵɵgetCurrentView();
|
|
20875
21122
|
i0.ɵɵelementStart(0, "div", 55);
|
|
20876
|
-
i0.ɵɵelementStart(1, "
|
|
20877
|
-
i0.ɵɵlistener("click", function
|
|
21123
|
+
i0.ɵɵelementStart(1, "button", 56);
|
|
21124
|
+
i0.ɵɵlistener("click", function RecipeCatalogComponent_div_2_div_7_div_11_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r34); const ctx_r33 = i0.ɵɵnextContext(3); return ctx_r33.toggleHistory(false); });
|
|
20878
21125
|
i0.ɵɵelement(2, "img", 57);
|
|
20879
21126
|
i0.ɵɵelementStart(3, "span");
|
|
20880
21127
|
i0.ɵɵi18n(4, 58);
|
|
20881
21128
|
i0.ɵɵelementEnd();
|
|
20882
21129
|
i0.ɵɵelementEnd();
|
|
20883
|
-
i0.ɵɵelementStart(5, "
|
|
20884
|
-
i0.ɵɵlistener("click", function
|
|
20885
|
-
i0.ɵɵelement(6, "img",
|
|
21130
|
+
i0.ɵɵelementStart(5, "button", 59);
|
|
21131
|
+
i0.ɵɵlistener("click", function RecipeCatalogComponent_div_2_div_7_div_11_Template_button_click_5_listener() { i0.ɵɵrestoreView(_r34); const ctx_r35 = i0.ɵɵnextContext(3); return ctx_r35.toggleHistory(true); });
|
|
21132
|
+
i0.ɵɵelement(6, "img", 57);
|
|
20886
21133
|
i0.ɵɵelementStart(7, "span");
|
|
20887
|
-
i0.ɵɵi18n(8,
|
|
21134
|
+
i0.ɵɵi18n(8, 60);
|
|
20888
21135
|
i0.ɵɵelementEnd();
|
|
20889
21136
|
i0.ɵɵelementEnd();
|
|
20890
21137
|
i0.ɵɵelementEnd();
|
|
@@ -20892,38 +21139,42 @@ function RecipeCatalogComponent_div_2_div_7_div_11_Template(rf, ctx) { if (rf &
|
|
|
20892
21139
|
const ctx_r26 = i0.ɵɵnextContext(3);
|
|
20893
21140
|
i0.ɵɵadvance(1);
|
|
20894
21141
|
i0.ɵɵclassProp("active", !ctx_r26.historyDisplayed)("inactive", ctx_r26.historyDisplayed);
|
|
21142
|
+
i0.ɵɵattribute("aria-selected", !ctx_r26.historyDisplayed);
|
|
20895
21143
|
i0.ɵɵadvance(1);
|
|
20896
21144
|
i0.ɵɵproperty("src", !ctx_r26.historyDisplayed ? "https://storage.googleapis.com/assets.miam.tech/generic/icons/Heart.svg" : "https://storage.googleapis.com/assets.miam.tech/generic/icons/Heart_Grey.svg", i0.ɵɵsanitizeUrl);
|
|
20897
21145
|
i0.ɵɵadvance(3);
|
|
20898
21146
|
i0.ɵɵclassProp("active", ctx_r26.historyDisplayed)("inactive", !ctx_r26.historyDisplayed);
|
|
21147
|
+
i0.ɵɵattribute("aria-selected", ctx_r26.historyDisplayed);
|
|
20899
21148
|
i0.ɵɵadvance(1);
|
|
20900
21149
|
i0.ɵɵproperty("src", ctx_r26.historyDisplayed ? "https://storage.googleapis.com/assets.miam.tech/generic/icons/History.svg" : "https://storage.googleapis.com/assets.miam.tech/generic/icons/History_Grey.svg", i0.ɵɵsanitizeUrl);
|
|
20901
21150
|
} }
|
|
20902
21151
|
const _c20 = function (a0, a1, a2, a3, a4) { return { "miam-recipe-catalog__favorites-list": a0, "miam-recipe-catalog__search-list": a1, "miam-recipe-catalog__all-recipes-list": a2, "miam-recipe-catalog__category-list": a3, "miam-recipe-catalog__default-list": a4 }; };
|
|
20903
21152
|
function RecipeCatalogComponent_div_2_div_7_ng_miam_catalog_list_15_Template(rf, ctx) { if (rf & 1) {
|
|
20904
21153
|
const _r37 = i0.ɵɵgetCurrentView();
|
|
20905
|
-
i0.ɵɵelementStart(0, "ng-miam-catalog-list",
|
|
21154
|
+
i0.ɵɵelementStart(0, "ng-miam-catalog-list", 61);
|
|
20906
21155
|
i0.ɵɵlistener("filterRemoved", function RecipeCatalogComponent_div_2_div_7_ng_miam_catalog_list_15_Template_ng_miam_catalog_list_filterRemoved_0_listener($event) { i0.ɵɵrestoreView(_r37); const ctx_r36 = i0.ɵɵnextContext(3); return ctx_r36.removeFilter($event); });
|
|
20907
21156
|
i0.ɵɵelementEnd();
|
|
20908
21157
|
} if (rf & 2) {
|
|
20909
21158
|
const ctx_r28 = i0.ɵɵnextContext(3);
|
|
20910
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction5(
|
|
21159
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction5(8, _c20, ctx_r28.isFavoritesPage(), ctx_r28.isSearchPage(), ctx_r28.isAllRecipesPage(), ctx_r28.isCategoryPage(), ctx_r28.isDefaultPage()))("filters", ctx_r28.filters)("originTrace", ctx_r28.eventTrace)("displayPricing", ctx_r28.displayPricing)("displayInfos", ctx_r28.displayInfos)("modifiedGuests", ctx_r28.guests)("displayRecipeVariant", ctx_r28.displayRecipeVariant);
|
|
21160
|
+
i0.ɵɵattribute("aria-labelledby", ctx_r28.isFavoritesPage() && ctx_r28.contextService.orderHistoryEnabled ? "favorites-tab" : null);
|
|
20911
21161
|
} }
|
|
20912
21162
|
function RecipeCatalogComponent_div_2_div_7_div_16_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
20913
|
-
i0.ɵɵelementStart(0, "div",
|
|
21163
|
+
i0.ɵɵelementStart(0, "div", 65);
|
|
20914
21164
|
i0.ɵɵelement(1, "ng-miam-loader");
|
|
20915
21165
|
i0.ɵɵelementStart(2, "span");
|
|
20916
|
-
i0.ɵɵi18n(3,
|
|
21166
|
+
i0.ɵɵi18n(3, 66);
|
|
20917
21167
|
i0.ɵɵelementEnd();
|
|
20918
21168
|
i0.ɵɵelementEnd();
|
|
20919
21169
|
} }
|
|
20920
21170
|
function RecipeCatalogComponent_div_2_div_7_div_16_Template(rf, ctx) { if (rf & 1) {
|
|
20921
|
-
i0.ɵɵelementStart(0, "div",
|
|
20922
|
-
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_div_7_div_16_div_1_Template, 4, 0, "div",
|
|
20923
|
-
i0.ɵɵelement(2, "div",
|
|
21171
|
+
i0.ɵɵelementStart(0, "div", 62);
|
|
21172
|
+
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_div_7_div_16_div_1_Template, 4, 0, "div", 63);
|
|
21173
|
+
i0.ɵɵelement(2, "div", 64);
|
|
20924
21174
|
i0.ɵɵelementEnd();
|
|
20925
21175
|
} if (rf & 2) {
|
|
20926
21176
|
const ctx_r29 = i0.ɵɵnextContext(3);
|
|
21177
|
+
i0.ɵɵattribute("aria-labelledby", "history-tab");
|
|
20927
21178
|
i0.ɵɵadvance(1);
|
|
20928
21179
|
i0.ɵɵproperty("ngIf", ctx_r29.historyService.fetchingHTMLLoader$.value);
|
|
20929
21180
|
i0.ɵɵadvance(1);
|
|
@@ -20945,14 +21196,14 @@ function RecipeCatalogComponent_div_2_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
20945
21196
|
i0.ɵɵtemplate(9, RecipeCatalogComponent_div_2_div_7_span_9_Template, 2, 0, "span", 34);
|
|
20946
21197
|
i0.ɵɵelementEnd();
|
|
20947
21198
|
i0.ɵɵelement(10, "div", 14);
|
|
20948
|
-
i0.ɵɵtemplate(11, RecipeCatalogComponent_div_2_div_7_div_11_Template, 9,
|
|
21199
|
+
i0.ɵɵtemplate(11, RecipeCatalogComponent_div_2_div_7_div_11_Template, 9, 12, "div", 35);
|
|
20949
21200
|
i0.ɵɵelementStart(12, "div", 15, 36);
|
|
20950
21201
|
i0.ɵɵelementStart(14, "ng-miam-catalog-toolbar", 17);
|
|
20951
21202
|
i0.ɵɵlistener("filterButtonPressed", function RecipeCatalogComponent_div_2_div_7_Template_ng_miam_catalog_toolbar_filterButtonPressed_14_listener() { i0.ɵɵrestoreView(_r40); const ctx_r41 = i0.ɵɵnextContext(2); return ctx_r41.onFilterCollapsed(); })("preferencesButtonPressed", function RecipeCatalogComponent_div_2_div_7_Template_ng_miam_catalog_toolbar_preferencesButtonPressed_14_listener() { i0.ɵɵrestoreView(_r40); const ctx_r42 = i0.ɵɵnextContext(2); return ctx_r42.isPreferenceModalOpen = !ctx_r42.isPreferenceModalOpen; })("searchStringChanged", function RecipeCatalogComponent_div_2_div_7_Template_ng_miam_catalog_toolbar_searchStringChanged_14_listener($event) { i0.ɵɵrestoreView(_r40); const ctx_r43 = i0.ɵɵnextContext(2); return ctx_r43.updateSearch($event); })("favoritesButtonPressed", function RecipeCatalogComponent_div_2_div_7_Template_ng_miam_catalog_toolbar_favoritesButtonPressed_14_listener() { i0.ɵɵrestoreView(_r40); const ctx_r44 = i0.ɵɵnextContext(2); return ctx_r44.checkAndSetFavoritesFilter(); })("returnHomePressed", function RecipeCatalogComponent_div_2_div_7_Template_ng_miam_catalog_toolbar_returnHomePressed_14_listener() { i0.ɵɵrestoreView(_r40); const ctx_r45 = i0.ɵɵnextContext(2); return ctx_r45.returnToHomePage(); });
|
|
20952
21203
|
i0.ɵɵelementEnd();
|
|
20953
21204
|
i0.ɵɵelementEnd();
|
|
20954
|
-
i0.ɵɵtemplate(15, RecipeCatalogComponent_div_2_div_7_ng_miam_catalog_list_15_Template, 1,
|
|
20955
|
-
i0.ɵɵtemplate(16, RecipeCatalogComponent_div_2_div_7_div_16_Template, 3,
|
|
21205
|
+
i0.ɵɵtemplate(15, RecipeCatalogComponent_div_2_div_7_ng_miam_catalog_list_15_Template, 1, 14, "ng-miam-catalog-list", 37);
|
|
21206
|
+
i0.ɵɵtemplate(16, RecipeCatalogComponent_div_2_div_7_div_16_Template, 3, 3, "div", 38);
|
|
20956
21207
|
i0.ɵɵelementEnd();
|
|
20957
21208
|
} if (rf & 2) {
|
|
20958
21209
|
const _r27 = i0.ɵɵreference(13);
|
|
@@ -20981,7 +21232,7 @@ function RecipeCatalogComponent_div_2_div_7_Template(rf, ctx) { if (rf & 1) {
|
|
|
20981
21232
|
function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
20982
21233
|
const _r54 = i0.ɵɵgetCurrentView();
|
|
20983
21234
|
i0.ɵɵelementContainerStart(0);
|
|
20984
|
-
i0.ɵɵelementStart(1, "ng-miam-catalog-category",
|
|
21235
|
+
i0.ɵɵelementStart(1, "ng-miam-catalog-category", 72);
|
|
20985
21236
|
i0.ɵɵlistener("displayList", function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_container_1_Template_ng_miam_catalog_category_displayList_1_listener($event) { i0.ɵɵrestoreView(_r54); const ctx_r53 = i0.ɵɵnextContext(5); return ctx_r53.categoryTitleClicked($event); });
|
|
20986
21237
|
i0.ɵɵelementEnd();
|
|
20987
21238
|
i0.ɵɵelementContainerEnd();
|
|
@@ -20996,20 +21247,20 @@ function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_tem
|
|
|
20996
21247
|
} }
|
|
20997
21248
|
function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template(rf, ctx) { if (rf & 1) {
|
|
20998
21249
|
const _r58 = i0.ɵɵgetCurrentView();
|
|
20999
|
-
i0.ɵɵelementStart(0, "div",
|
|
21250
|
+
i0.ɵɵelementStart(0, "div", 73);
|
|
21000
21251
|
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_ng_miam_meals_planner_link_1_Template, 1, 0, "ng-miam-meals-planner-link", 42);
|
|
21001
21252
|
i0.ɵɵpipe(2, "async");
|
|
21002
|
-
i0.ɵɵelementStart(3, "ng-miam-catalog-category",
|
|
21253
|
+
i0.ɵɵelementStart(3, "ng-miam-catalog-category", 74);
|
|
21003
21254
|
i0.ɵɵlistener("displayList", function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template_ng_miam_catalog_category_displayList_3_listener($event) { i0.ɵɵrestoreView(_r58); const ctx_r57 = i0.ɵɵnextContext(5); return ctx_r57.categoryTitleClicked($event); })("isHidden", function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template_ng_miam_catalog_category_isHidden_3_listener($event) { i0.ɵɵrestoreView(_r58); const ctx_r59 = i0.ɵɵnextContext(5); return ctx_r59.categoryHidden($event); });
|
|
21004
21255
|
i0.ɵɵelementEnd();
|
|
21005
21256
|
i0.ɵɵelementEnd();
|
|
21006
|
-
i0.ɵɵelementStart(4, "
|
|
21007
|
-
i0.ɵɵlistener("click", function
|
|
21008
|
-
i0.ɵɵelementStart(5, "div",
|
|
21009
|
-
i0.ɵɵi18n(6,
|
|
21257
|
+
i0.ɵɵelementStart(4, "button", 75);
|
|
21258
|
+
i0.ɵɵlistener("click", function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template_button_click_4_listener() { i0.ɵɵrestoreView(_r58); const ctx_r60 = i0.ɵɵnextContext(5); return ctx_r60.seeAllRecipes(); });
|
|
21259
|
+
i0.ɵɵelementStart(5, "div", 76);
|
|
21260
|
+
i0.ɵɵi18n(6, 77);
|
|
21010
21261
|
i0.ɵɵelementEnd();
|
|
21011
|
-
i0.ɵɵelementStart(7, "div",
|
|
21012
|
-
i0.ɵɵelement(8, "img",
|
|
21262
|
+
i0.ɵɵelementStart(7, "div", 78);
|
|
21263
|
+
i0.ɵɵelement(8, "img", 79);
|
|
21013
21264
|
i0.ɵɵelementEnd();
|
|
21014
21265
|
i0.ɵɵelementEnd();
|
|
21015
21266
|
} if (rf & 2) {
|
|
@@ -21022,8 +21273,8 @@ function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_tem
|
|
|
21022
21273
|
} }
|
|
21023
21274
|
function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
21024
21275
|
i0.ɵɵelementContainerStart(0);
|
|
21025
|
-
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_container_1_Template, 2, 9, "ng-container",
|
|
21026
|
-
i0.ɵɵtemplate(2, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template, 9, 12, "ng-template", null,
|
|
21276
|
+
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_container_1_Template, 2, 9, "ng-container", 70);
|
|
21277
|
+
i0.ɵɵtemplate(2, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_ng_template_2_Template, 9, 12, "ng-template", null, 71, i0.ɵɵtemplateRefExtractor);
|
|
21027
21278
|
i0.ɵɵelementContainerEnd();
|
|
21028
21279
|
} if (rf & 2) {
|
|
21029
21280
|
const i_r49 = ctx.index;
|
|
@@ -21032,8 +21283,8 @@ function RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_Templa
|
|
|
21032
21283
|
i0.ɵɵproperty("ngIf", i_r49 !== 0)("ngIfElse", _r51);
|
|
21033
21284
|
} }
|
|
21034
21285
|
function RecipeCatalogComponent_div_2_ng_template_10_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
21035
|
-
i0.ɵɵelementStart(0, "div",
|
|
21036
|
-
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_Template, 4, 2, "ng-container",
|
|
21286
|
+
i0.ɵɵelementStart(0, "div", 68);
|
|
21287
|
+
i0.ɵɵtemplate(1, RecipeCatalogComponent_div_2_ng_template_10_div_0_ng_container_1_Template, 4, 2, "ng-container", 69);
|
|
21037
21288
|
i0.ɵɵelementEnd();
|
|
21038
21289
|
} if (rf & 2) {
|
|
21039
21290
|
const ctx_r46 = i0.ɵɵnextContext(3);
|
|
@@ -21041,7 +21292,7 @@ function RecipeCatalogComponent_div_2_ng_template_10_div_0_Template(rf, ctx) { i
|
|
|
21041
21292
|
i0.ɵɵproperty("ngForOf", ctx_r46.categories);
|
|
21042
21293
|
} }
|
|
21043
21294
|
function RecipeCatalogComponent_div_2_ng_template_10_Template(rf, ctx) { if (rf & 1) {
|
|
21044
|
-
i0.ɵɵtemplate(0, RecipeCatalogComponent_div_2_ng_template_10_div_0_Template, 2, 1, "div",
|
|
21295
|
+
i0.ɵɵtemplate(0, RecipeCatalogComponent_div_2_ng_template_10_div_0_Template, 2, 1, "div", 67);
|
|
21045
21296
|
} if (rf & 2) {
|
|
21046
21297
|
const ctx_r8 = i0.ɵɵnextContext(2);
|
|
21047
21298
|
i0.ɵɵproperty("ngIf", ctx_r8.categories.length > 0);
|
|
@@ -21056,7 +21307,7 @@ function RecipeCatalogComponent_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
21056
21307
|
i0.ɵɵtemplate(3, RecipeCatalogComponent_div_2_div_3_Template, 1, 0, "div", 6);
|
|
21057
21308
|
i0.ɵɵtemplate(4, RecipeCatalogComponent_div_2_div_4_Template, 3, 7, "div", 7);
|
|
21058
21309
|
i0.ɵɵtemplate(5, RecipeCatalogComponent_div_2_div_5_Template, 2, 0, "div", 8);
|
|
21059
|
-
i0.ɵɵtemplate(6,
|
|
21310
|
+
i0.ɵɵtemplate(6, RecipeCatalogComponent_div_2_button_6_Template, 8, 2, "button", 9);
|
|
21060
21311
|
i0.ɵɵtemplate(7, RecipeCatalogComponent_div_2_div_7_Template, 17, 16, "div", 10);
|
|
21061
21312
|
i0.ɵɵelementEnd();
|
|
21062
21313
|
i0.ɵɵelementStart(8, "ng-miam-recipe-filters", 11);
|
|
@@ -21515,7 +21766,7 @@ class RecipeCatalogComponent extends EventTracerComponent {
|
|
|
21515
21766
|
this.cdr.detectChanges();
|
|
21516
21767
|
}
|
|
21517
21768
|
}
|
|
21518
|
-
RecipeCatalogComponent.ɵfac = function RecipeCatalogComponent_Factory(t) { return new (t || RecipeCatalogComponent)(i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SponsorService), i0.ɵɵdirectiveInject(SuppliersService), i0.ɵɵdirectiveInject(PackageService), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(
|
|
21769
|
+
RecipeCatalogComponent.ɵfac = function RecipeCatalogComponent_Factory(t) { return new (t || RecipeCatalogComponent)(i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(SponsorService), i0.ɵɵdirectiveInject(SuppliersService), i0.ɵɵdirectiveInject(PackageService), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(i8.MediaMatcher), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(CatalogSettingsService), i0.ɵɵdirectiveInject(BasketsService), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(HistoryService), i0.ɵɵdirectiveInject(i2$1.DomSanitizer)); };
|
|
21519
21770
|
RecipeCatalogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCatalogComponent, selectors: [["ng-miam-recipe-catalog"]], viewQuery: function RecipeCatalogComponent_Query(rf, ctx) { if (rf & 1) {
|
|
21520
21771
|
i0.ɵɵviewQuery(CatalogHeaderComponent, 1);
|
|
21521
21772
|
i0.ɵɵviewQuery(CatalogToolbarComponent, 1);
|
|
@@ -21595,13 +21846,13 @@ RecipeCatalogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCatalogCompo
|
|
|
21595
21846
|
}
|
|
21596
21847
|
else {
|
|
21597
21848
|
i18n_23 = $localize `:␟6a492aeb2aa6401461c8cc248fff941988ab5dda␟371620413575748610:Toutes nos recettes`;
|
|
21598
|
-
} return [[1, "miam-catalog-anchor"], ["miamCatalogTopAnchor", ""], ["class", "miam-recipe-catalog", 4, "ngIf"], [1, "miam-recipe-catalog"], [1, "miam-recipe-catalog__content"], [3, "home", "history", "searchTerm", "additionalFiltersTitle", "homeLabel", "pictureUrl", "catalogSetting", "returnButtonPressed"], ["class", "miam-recipe-catalog__toolbar-container-anchor", 4, "ngIf"], ["class", "miam-recipe-catalog__toolbar-container", 4, "ngIf"], ["class", "miam-recipe-catalog__promotions-banner", 4, "ngIf"], ["class", "miam-recipe-catalog__content__myMeal__button", 3, "click", 4, "ngIf"], ["class", "miam-recipe-catalog__list", 4, "ngIf", "ngIfElse"], [3, "filters", "isFilterCollapsed", "filterToRemove", "position", "filterChanged", "filterCollapsed", "preferencesChanged"], [3, "isOpen", "filters", "isOpenChange", "preferencesChanged"], ["categoriesComponents", ""], [1, "miam-recipe-catalog__toolbar-container-anchor"], [1, "miam-recipe-catalog__toolbar-container"], ["stickyToolbar", ""], [3, "home", "history", "searchTerm", "additionalFiltersTitle", "hideButtons", "filterBadgeCount", "reduced", "filterButtonPressed", "preferencesButtonPressed", "searchStringChanged", "favoritesButtonPressed", "returnHomePressed"], [1, "miam-recipe-catalog__promotions-banner"], [3, "clicked"], [1, "miam-recipe-catalog__content__myMeal__button", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/cutlery-white.svg", "alt", "
|
|
21849
|
+
} return [[1, "miam-catalog-anchor"], ["miamCatalogTopAnchor", ""], ["class", "miam-recipe-catalog", 4, "ngIf"], [1, "miam-recipe-catalog"], [1, "miam-recipe-catalog__content"], [3, "home", "history", "searchTerm", "additionalFiltersTitle", "homeLabel", "pictureUrl", "catalogSetting", "returnButtonPressed"], ["class", "miam-recipe-catalog__toolbar-container-anchor", 4, "ngIf"], ["class", "miam-recipe-catalog__toolbar-container", 4, "ngIf"], ["class", "miam-recipe-catalog__promotions-banner", 4, "ngIf"], ["class", "miam-recipe-catalog__content__myMeal__button", 3, "click", 4, "ngIf"], ["class", "miam-recipe-catalog__list", 4, "ngIf", "ngIfElse"], [3, "filters", "isFilterCollapsed", "filterToRemove", "position", "filterChanged", "filterCollapsed", "preferencesChanged"], [3, "isOpen", "filters", "isOpenChange", "preferencesChanged"], ["categoriesComponents", ""], [1, "miam-recipe-catalog__toolbar-container-anchor"], [1, "miam-recipe-catalog__toolbar-container"], ["stickyToolbar", ""], [3, "home", "history", "searchTerm", "additionalFiltersTitle", "hideButtons", "filterBadgeCount", "reduced", "filterButtonPressed", "preferencesButtonPressed", "searchStringChanged", "favoritesButtonPressed", "returnHomePressed"], [1, "miam-recipe-catalog__promotions-banner"], [3, "clicked"], [1, "miam-recipe-catalog__content__myMeal__button", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/cutlery-white.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-catalog__myMeal__first__icon"], [1, "miam-recipe-catalog__myMeal__button__text", "miam-ds-text", "weight-xl"], i18n_2, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-catalog__myMeal__second__icon"], [1, "miam-recipe-catalog__list"], [1, "miam-recipe-catalog__content__title"], ["aria-label", "Retour \u00E0 la page d'accueil", 1, "miam-recipe-catalog__content__title-icon", "miam-ds-button", "primary", "square", 3, "click"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ArrowLeft_white.svg"], ["class", "miam-recipe-catalog__content__title__search__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__favorites__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__promotions__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__all-recipes__text", 4, "ngIf"], ["class", "miam-recipe-catalog__content__title__category", 4, "ngIf"], ["class", "miam-recipe-catalog__content__default__text", 4, "ngIf"], ["class", "miam-catalog-tabs miam-ds-tabs", "role", "tablist", "aria-label", "Options de favoris", 4, "ngIf"], ["stickyToolbarCollection", ""], ["id", "favorites-panel", 3, "ngClass", "filters", "originTrace", "displayPricing", "displayInfos", "modifiedGuests", "displayRecipeVariant", "filterRemoved", 4, "ngIf"], ["class", "miam-recipe-catalog__history-container", "id", "history-panel", 4, "ngIf"], [1, "miam-recipe-catalog__content__title__search__text"], i18n_4, [1, "miam-recipe-catalog__content__title__favorites__text"], [4, "ngIf"], i18n_6, i18n_8, [1, "miam-recipe-catalog__content__title__promotions__text"], i18n_10, [1, "miam-recipe-catalog__content__title__all-recipes__text"], i18n_12, [1, "miam-recipe-catalog__content__title__category"], [1, "miam-ds-text", "size-l", "weight-xxl"], ["class", "miam-ds-text size-s weight-l", 4, "ngIf"], [1, "miam-ds-text", "size-s", "weight-l"], [1, "miam-recipe-catalog__content__default__text"], i18n_14, ["role", "tablist", "aria-label", "Options de favoris", 1, "miam-catalog-tabs", "miam-ds-tabs"], ["role", "tab", "id", "favorites-tab", "aria-controls", "favorites-panel", 1, "miam-catalog-tabs__item", "miam-ds-tab-item", "miam-ds-text", 3, "click"], ["alt", "", "aria-hidden", "true", 3, "src"], i18n_16, ["role", "tab", "id", "history-tab", "aria-controls", "history-panel", 1, "miam-catalog-tabs__item", "miam-ds-tab-item", "miam-ds-text", 3, "click"], i18n_18, ["id", "favorites-panel", 3, "ngClass", "filters", "originTrace", "displayPricing", "displayInfos", "modifiedGuests", "displayRecipeVariant", "filterRemoved"], ["id", "history-panel", 1, "miam-recipe-catalog__history-container"], ["class", "miam-recipe-catalog__history-loader", "aria-live", "polite", 4, "ngIf"], [3, "innerHTML"], ["aria-live", "polite", 1, "miam-recipe-catalog__history-loader"], i18n_21, ["class", "miam-recipe-catalog__categories", 4, "ngIf"], [1, "miam-recipe-catalog__categories"], [4, "ngFor", "ngForOf"], [4, "ngIf", "ngIfElse"], ["firstCategory", ""], [3, "title", "subtitle", "filters", "maxRecipeNumber", "displayInfos", "displayPricing", "originTrace", "modifiedGuests", "displayRecipeVariant", "displayList"], [1, "miam-recipe-catalog__first-category"], [3, "title", "subtitle", "filters", "displayInfos", "displayPricing", "maxRecipeNumber", "modifiedGuests", "displayRecipeVariant", "originTrace", "displayList", "isHidden"], [1, "miam-recipe-catalog__all-banner", 3, "click"], [1, "miam-recipe-catalog__all-banner__text", "miam-ds-text", "size-m", "weight-xl"], i18n_23, [1, "miam-recipe-catalog__all-banner__icon"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ArrowLeft_black.svg", "alt", "", "aria-hidden", "true"]]; }, template: function RecipeCatalogComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21599
21850
|
i0.ɵɵelement(0, "div", 0, 1);
|
|
21600
21851
|
i0.ɵɵtemplate(2, RecipeCatalogComponent_div_2_Template, 12, 19, "div", 2);
|
|
21601
21852
|
} if (rf & 2) {
|
|
21602
21853
|
i0.ɵɵadvance(2);
|
|
21603
21854
|
i0.ɵɵproperty("ngIf", ctx.catalogSettingHasLoaded);
|
|
21604
|
-
} }, directives: [i2.NgIf, CatalogHeaderComponent, RecipeFiltersComponent, PreferencesComponent, CatalogToolbarComponent, PromotionsBannerComponent, CatalogListComponent, i2.NgClass, LoaderComponent, i2.NgForOf, CatalogCategoryComponent, MealsPlannerLinkComponent], pipes: [i2.AsyncPipe], styles: [".miam-recipe-catalog{display:flex;justify-content:space-between;width:100%;position:relative;background-color:var(--miam-ds-color-neutral-white)}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container-anchor{width:100%}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container{width:-moz-available;width:-webkit-fill-available;width:fill-available;padding:33px 80px 0;box-sizing:border-box;background-color:var(--miam-ds-color-neutral-white);transition:padding .3s ease}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container.sticking{position:fixed;top:0;z-index:10;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px 40px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__toolbar-container{padding:24px 16px 0}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container.sticking{padding:8px}}.miam-recipe-catalog .miam-recipe-catalog__content{width:100%;position:relative}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{width:100%;padding:0 80px;font-size:20px;line-height:34px;font-weight:900;display:flex;align-items:center;gap:16px;color:var(--miam-ds-color-neutral-black,#0f191f);box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__search__text{display:flex;flex-wrap:wrap;gap:6px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title-icon{width:32px;height:32px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title-icon img{cursor:pointer;width:13px;height:13px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__category{display:flex;flex-direction:column;gap:4px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__category .size-s{color:var(--miam-ds-color-neutral-500)}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{width:100%;padding:0 24px;box-sizing:border-box}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__promotions-banner{display:none;justify-content:center;margin-top:36px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{display:flex;flex-direction:column;width:100%;padding:4px 80px 48px;box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{display:flex;flex-direction:row;width:100%;align-items:flex-end}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{margin:0 16px 36px 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{flex:1}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner{display:flex;padding:24px 0;justify-content:center;align-items:center;gap:8px;align-self:stretch;border-radius:8px;background:var(--miam-ds-color-neutral-100,#eff1f3);cursor:pointer}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner .miam-recipe-catalog__all-banner__text{color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner .miam-recipe-catalog__all-banner__icon{transform:rotate(-180deg);height:24px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{padding:24px 0 48px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{flex-direction:column;align-items:flex-start}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{width:100%;padding:0 24px 24px;box-sizing:border-box;margin:unset}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner{margin:0 24px}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list{width:100%;padding:24px 0;box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container:not(.sticking){padding-bottom:24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container.sticking{padding:8px 24px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container .sticking{padding:8px}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__history-container .miam-recipe-catalog__history-loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__history-container .miam-recipe-catalog__history-loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{position:relative;display:flex;box-sizing:border-box;width:100%;padding:24px 80px 0;background-color:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s ease}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs .miam-catalog-tabs__item{display:flex;align-items:center;gap:4px;text-decoration:none}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs .miam-catalog-tabs__item.inactive span{color:var(--miam-ds-color-neutral-black,#0f191f);opacity:.7}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{padding:24px 24px 0}}@media (max-width:700px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{padding:24px 0 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs .miam-catalog-tabs__item{width:100%;justify-content:center;display:flex}}.miam-recipe-catalog .miam-recipe-
|
|
21855
|
+
} }, directives: [i2.NgIf, CatalogHeaderComponent, RecipeFiltersComponent, PreferencesComponent, CatalogToolbarComponent, PromotionsBannerComponent, CatalogListComponent, i2.NgClass, LoaderComponent, i2.NgForOf, CatalogCategoryComponent, MealsPlannerLinkComponent], pipes: [i2.AsyncPipe], styles: [".miam-recipe-catalog{display:flex;justify-content:space-between;width:100%;position:relative;background-color:var(--miam-ds-color-neutral-white)}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container-anchor{width:100%}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container{width:-moz-available;width:-webkit-fill-available;width:fill-available;padding:33px 80px 0;box-sizing:border-box;background-color:var(--miam-ds-color-neutral-white);transition:padding .3s ease}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container.sticking{position:fixed;top:0;z-index:10;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px 40px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__toolbar-container{padding:24px 16px 0}.miam-recipe-catalog .miam-recipe-catalog__toolbar-container.sticking{padding:8px}}.miam-recipe-catalog .miam-recipe-catalog__content{width:100%;position:relative}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{width:100%;padding:0 80px;font-size:20px;line-height:34px;font-weight:900;display:flex;align-items:center;gap:16px;color:var(--miam-ds-color-neutral-black,#0f191f);box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__search__text{display:flex;flex-wrap:wrap;gap:6px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title-icon{width:32px;height:32px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title-icon img{cursor:pointer;width:13px;height:13px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__category{display:flex;flex-direction:column;gap:4px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title .miam-recipe-catalog__content__title__category .size-s{color:var(--miam-ds-color-neutral-500)}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__title{width:100%;padding:0 24px;box-sizing:border-box}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__promotions-banner{display:none;justify-content:center;margin-top:36px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{display:flex;flex-direction:column;width:100%;padding:4px 80px 48px;box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{display:flex;flex-direction:row;width:100%;align-items:flex-end}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{margin:0 16px 36px 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{flex:1}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner{border:none;display:flex;padding:24px 0;justify-content:center;align-items:center;gap:8px;align-self:stretch;border-radius:8px;background:var(--miam-ds-color-neutral-100,#eff1f3);cursor:pointer}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner .miam-recipe-catalog__all-banner__text{color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner .miam-recipe-catalog__all-banner__icon{transform:rotate(-180deg);height:24px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories{padding:24px 0 48px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category{flex-direction:column;align-items:flex-start}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-catalog-category{width:100%}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__first-category ng-miam-meals-planner-link{width:100%;padding:0 24px 24px;box-sizing:border-box;margin:unset}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__categories .miam-recipe-catalog__all-banner{margin:0 24px}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list{width:100%;padding:24px 0;box-sizing:border-box}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container:not(.sticking){padding-bottom:24px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container.sticking{padding:8px 24px}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__toolbar-container .sticking{padding:8px}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__history-container .miam-recipe-catalog__history-loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__list .miam-recipe-catalog__history-container .miam-recipe-catalog__history-loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{position:relative;display:flex;box-sizing:border-box;width:100%;padding:24px 80px 0;background-color:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s ease}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs button.miam-catalog-tabs__item{background:none;border:none;border-bottom:2px solid var(--miam-ds-color-border);display:flex;align-items:center;gap:4px;text-decoration:none}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs button.miam-catalog-tabs__item.active{border-bottom:2px solid var(--miam-ds-color-primary)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs button.miam-catalog-tabs__item.inactive span{color:var(--miam-ds-color-neutral-black,#0f191f);opacity:.7}@media (max-width:1023px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{padding:24px 24px 0}}@media (max-width:700px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs{padding:24px 0 0}.miam-recipe-catalog .miam-recipe-catalog__content .miam-catalog-tabs .miam-catalog-tabs__item{width:100%;justify-content:center;display:flex}}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__all-banner{background:none;border:none;padding:0;margin:0;width:100%;text-align:left;cursor:pointer;font-family:inherit;font-size:inherit;outline:none}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button{border:none;display:flex;align-items:center;justify-content:space-between;width:400px;position:fixed;left:50%;bottom:16px;transform:translate(-50%);z-index:1;min-height:48px;padding:0 16px;border-radius:1000px;background:var(--miam-color-primary-900,#10323f);box-shadow:0 8px 16px 0 rgba(0,0,0,.2)}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button>:not(:last-child){margin-right:12px}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__button__text{font-weight:700;color:var(--miam-ds-color-neutral-white,#fff);white-space:nowrap}.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button .miam-recipe-catalog__myMeal__second__icon{transform:rotate(-90deg)}@media (max-width:607px){.miam-recipe-catalog .miam-recipe-catalog__content .miam-recipe-catalog__content__myMeal__button{width:auto;z-index:2}}.miam-recipe-catalog ng-miam-recipe-card .miam-recipe-card{height:var(--m-catalog-card-height);width:var(--m-catalog-card-width)}"], encapsulation: 2, changeDetection: 0 });
|
|
21605
21856
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RecipeCatalogComponent, [{
|
|
21606
21857
|
type: Component,
|
|
21607
21858
|
args: [{
|
|
@@ -21611,7 +21862,7 @@ RecipeCatalogComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeCatalogCompo
|
|
|
21611
21862
|
encapsulation: ViewEncapsulation.None,
|
|
21612
21863
|
changeDetection: ChangeDetectionStrategy.OnPush
|
|
21613
21864
|
}]
|
|
21614
|
-
}], function () { return [{ type: AnalyticsService }, { type: i0.ChangeDetectorRef }, { type: SponsorService }, { type: SuppliersService }, { type: PackageService }, { type: RecipesService }, { type:
|
|
21865
|
+
}], function () { return [{ type: AnalyticsService }, { type: i0.ChangeDetectorRef }, { type: SponsorService }, { type: SuppliersService }, { type: PackageService }, { type: RecipesService }, { type: i8.MediaMatcher }, { type: UserService }, { type: CatalogSettingsService }, { type: BasketsService }, { type: ContextService }, { type: HistoryService }, { type: i2$1.DomSanitizer }]; }, { catalogHeader: [{
|
|
21615
21866
|
type: ViewChild,
|
|
21616
21867
|
args: [CatalogHeaderComponent]
|
|
21617
21868
|
}], catalogToolbar: [{
|
|
@@ -21897,7 +22148,7 @@ LastOrderModalComponent.ɵcmp = i0.ɵɵdefineComponent({ type: LastOrderModalCom
|
|
|
21897
22148
|
}
|
|
21898
22149
|
else {
|
|
21899
22150
|
i18n_6 = $localize `:␟c805e4c20401b4716cf03c7211bbd88ed1591412␟3741454895200843171: Vous avez déjà ajouté cette recette à votre panier. `;
|
|
21900
|
-
} return [["modalStyle", "center", "confirmButtonText", i18n_0, 1, "miam-last-order-modal", 3, "noHeaderMode", "display", "ngClass", "confirm", "close"], [1, "miam-last-order-modal__nav-and-title"], [1, "miam-ds-text", "size-m", "weight-xxl"], i18n_2, [1, "miam-ds-button", "miam-last-order-modal__close-button", 3, "click"], ["alt", "
|
|
22151
|
+
} return [["modalStyle", "center", "confirmButtonText", i18n_0, "role", "dialog", "aria-labelledby", "last-order-modal-title", 1, "miam-last-order-modal", 3, "noHeaderMode", "display", "ngClass", "confirm", "close"], [1, "miam-last-order-modal__nav-and-title"], ["id", "last-order-modal-title", 1, "miam-ds-text", "size-m", "weight-xxl"], i18n_2, ["aria-label", "Fermer", 1, "miam-ds-button", "miam-last-order-modal__close-button", 3, "click"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_Black.svg", 1, "miam-last-order-modal__close-image"], ["class", "miam-ds-text size-m", 4, "ngIf"], [1, "miam-ds-text", "size-m"], i18n_4, i18n_6]; }, template: function LastOrderModalComponent_Template(rf, ctx) { if (rf & 1) {
|
|
21901
22152
|
i0.ɵɵelementStart(0, "ng-miam-modal", 0);
|
|
21902
22153
|
i0.ɵɵlistener("confirm", function LastOrderModalComponent_Template_ng_miam_modal_confirm_0_listener() { return ctx.orderAgain(); })("close", function LastOrderModalComponent_Template_ng_miam_modal_close_0_listener() { return ctx.closeModal(); });
|
|
21903
22154
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -21985,6 +22236,7 @@ function RecipeAddonComponent_div_0_img_6_Template(rf, ctx) { if (rf & 1) {
|
|
|
21985
22236
|
} if (rf & 2) {
|
|
21986
22237
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
21987
22238
|
i0.ɵɵpropertyInterpolate("src", ctx_r3.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl);
|
|
22239
|
+
i0.ɵɵproperty("alt", "Logo " + ((ctx_r3.recipe == null ? null : ctx_r3.recipe.sponsorName) || "du sponsor"));
|
|
21988
22240
|
} }
|
|
21989
22241
|
function RecipeAddonComponent_div_0_iframe_8_Template(rf, ctx) { if (rf & 1) {
|
|
21990
22242
|
i0.ɵɵelement(0, "iframe", 12);
|
|
@@ -22010,7 +22262,7 @@ function RecipeAddonComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
22010
22262
|
i0.ɵɵi18n(5, 6);
|
|
22011
22263
|
i0.ɵɵelementEnd();
|
|
22012
22264
|
i0.ɵɵelementEnd();
|
|
22013
|
-
i0.ɵɵtemplate(6, RecipeAddonComponent_div_0_img_6_Template, 1,
|
|
22265
|
+
i0.ɵɵtemplate(6, RecipeAddonComponent_div_0_img_6_Template, 1, 2, "img", 7);
|
|
22014
22266
|
i0.ɵɵelementEnd();
|
|
22015
22267
|
i0.ɵɵelementStart(7, "div", 8);
|
|
22016
22268
|
i0.ɵɵtemplate(8, RecipeAddonComponent_div_0_iframe_8_Template, 2, 3, "iframe", 9);
|
|
@@ -22069,7 +22321,7 @@ RecipeAddonComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeAddonComponent
|
|
|
22069
22321
|
}
|
|
22070
22322
|
else {
|
|
22071
22323
|
i18n_0 = $localize `:␟7582755e46cff3b0d29465ce750a51c9b841ae9f␟8168765646794661881:Retour`;
|
|
22072
|
-
} return [["class", "miam-recipe-addon", 4, "ngIf", "ngIfElse"], ["isLoading", ""], [1, "miam-recipe-addon"], [1, "miam-recipe-addon__header"], [1, "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_0, [3, "src", 4, "ngIf"], [1, "miam-recipe-addon__content"], ["class", "miam-recipe-addon__content__iframe", "frameBorder", "0", 3, "src", 4, "ngIf", "ngIfElse"], ["storytelling", ""], [3, "src"], ["frameBorder", "0", 1, "miam-recipe-addon__content__iframe", 3, "src"], [3, "sponsorBlocks"], [1, "miam-recipe-addon__loader"]]; }, template: function RecipeAddonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22324
|
+
} return [["class", "miam-recipe-addon", 4, "ngIf", "ngIfElse"], ["isLoading", ""], [1, "miam-recipe-addon"], [1, "miam-recipe-addon__header"], [1, "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_0, ["class", "miam-recipe-addon__sponsor-logo", 3, "src", "alt", 4, "ngIf"], [1, "miam-recipe-addon__content"], ["class", "miam-recipe-addon__content__iframe", "frameBorder", "0", "title", "Contenu additionnel de la recette", 3, "src", 4, "ngIf", "ngIfElse"], ["storytelling", ""], [1, "miam-recipe-addon__sponsor-logo", 3, "src", "alt"], ["frameBorder", "0", "title", "Contenu additionnel de la recette", 1, "miam-recipe-addon__content__iframe", 3, "src"], [3, "sponsorBlocks"], ["role", "status", "aria-label", "Chargement en cours", 1, "miam-recipe-addon__loader"]]; }, template: function RecipeAddonComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22073
22325
|
i0.ɵɵtemplate(0, RecipeAddonComponent_div_0_Template, 11, 4, "div", 0);
|
|
22074
22326
|
i0.ɵɵtemplate(1, RecipeAddonComponent_ng_template_1_Template, 2, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
22075
22327
|
} if (rf & 2) {
|
|
@@ -22137,14 +22389,15 @@ function RecipeDetailsInfosComponent_div_11_Template(rf, ctx) { if (rf & 1) {
|
|
|
22137
22389
|
} if (rf & 2) {
|
|
22138
22390
|
const ctx_r6 = i0.ɵɵnextContext();
|
|
22139
22391
|
const _r2 = i0.ɵɵreference(3);
|
|
22140
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(
|
|
22392
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction4(4, _c2$1, ctx_r6.recipe.difficulty === 1, ctx_r6.recipe.difficulty === 2, ctx_r6.recipe.difficulty === 3, !ctx_r6.recipe.difficulty));
|
|
22393
|
+
i0.ɵɵattribute("aria-label", "Difficult\u00E9: " + (ctx_r6.recipe.difficulty ? ctx_r6.recipesService.difficultyLevels[ctx_r6.recipe.difficulty - 1].label : "-"));
|
|
22141
22394
|
i0.ɵɵadvance(2);
|
|
22142
22395
|
i0.ɵɵproperty("ngIf", ctx_r6.recipe.difficulty)("ngIfElse", _r2);
|
|
22143
22396
|
} }
|
|
22144
|
-
function
|
|
22397
|
+
function RecipeDetailsInfosComponent_button_12_Template(rf, ctx) { if (rf & 1) {
|
|
22145
22398
|
const _r11 = i0.ɵɵgetCurrentView();
|
|
22146
|
-
i0.ɵɵelementStart(0, "
|
|
22147
|
-
i0.ɵɵlistener("click", function
|
|
22399
|
+
i0.ɵɵelementStart(0, "button", 16);
|
|
22400
|
+
i0.ɵɵlistener("click", function RecipeDetailsInfosComponent_button_12_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r11); const ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.displayTags(); });
|
|
22148
22401
|
i0.ɵɵelement(1, "img", 17);
|
|
22149
22402
|
i0.ɵɵelementEnd();
|
|
22150
22403
|
} }
|
|
@@ -22174,13 +22427,13 @@ class RecipeDetailsInfosComponent {
|
|
|
22174
22427
|
}
|
|
22175
22428
|
}
|
|
22176
22429
|
RecipeDetailsInfosComponent.ɵfac = function RecipeDetailsInfosComponent_Factory(t) { return new (t || RecipeDetailsInfosComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService)); };
|
|
22177
|
-
RecipeDetailsInfosComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsInfosComponent, selectors: [["ng-miam-recipe-details-infos"]], inputs: { recipe: "recipe" }, decls: 14, vars:
|
|
22430
|
+
RecipeDetailsInfosComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsInfosComponent, selectors: [["ng-miam-recipe-details-infos"]], inputs: { recipe: "recipe" }, decls: 14, vars: 18, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
22178
22431
|
const MSG_EXTERNAL_195336627705819465$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INFOS_RECIPE_DETAILS_INFOS_COMPONENT_TS__1 = goog.getMsg("0 min");
|
|
22179
22432
|
i18n_0 = MSG_EXTERNAL_195336627705819465$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_INFOS_RECIPE_DETAILS_INFOS_COMPONENT_TS__1;
|
|
22180
22433
|
}
|
|
22181
22434
|
else {
|
|
22182
22435
|
i18n_0 = $localize `:␟84e98d87dff8af8336d3f5bd9e175e30ff76592b␟195336627705819465:0 min`;
|
|
22183
|
-
} return [["defaultTime", ""], ["defaultText", ""], [1, "miam-recipe-details-infos__container", 3, "ngClass"], [1, "miam-ds-badge", "size-l", "miam-recipe-details-infos__badge", "miam-recipe-details-infos__badge__preparation-time", 3, "ngClass"], ["alt", "
|
|
22436
|
+
} return [["defaultTime", ""], ["defaultText", ""], [1, "miam-recipe-details-infos__container", 3, "ngClass"], [1, "miam-ds-badge", "size-l", "miam-recipe-details-infos__badge", "miam-recipe-details-infos__badge__preparation-time", 3, "ngClass"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/knife-primary.svg"], [4, "ngIf", "ngIfElse"], [1, "miam-ds-badge", "size-l", "miam-recipe-details-infos__badge", "miam-recipe-details-infos__badge__cooking-time", 3, "ngClass"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/pan-primary.svg"], ["class", "miam-ds-badge size-l miam-recipe-details-infos__badge miam-recipe-details-infos__badge__difficulty", 3, "ngClass", 4, "ngIf"], ["class", "miam-ds-badge size-l miam-recipe-details-infos__badge more-info", "aria-label", "Afficher plus d'informations", 3, "click", 4, "ngIf"], ["class", "miam-ds-badge size-l miam-recipe-details-infos__badge tag", "role", "status", 4, "ngFor", "ngForOf"], [1, "miam-recipe-details-infos__no-time-placeholder"], i18n_0, [1, "miam-recipe-details-infos__no-data-placeholder"], [1, "miam-ds-badge", "size-l", "miam-recipe-details-infos__badge", "miam-recipe-details-infos__badge__difficulty", 3, "ngClass"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chef-hat-primary.svg"], ["aria-label", "Afficher plus d'informations", 1, "miam-ds-badge", "size-l", "miam-recipe-details-infos__badge", "more-info", 3, "click"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/meatball-primary.svg"], ["role", "status", 1, "miam-ds-badge", "size-l", "miam-recipe-details-infos__badge", "tag"]]; }, template: function RecipeDetailsInfosComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22184
22437
|
i0.ɵɵtemplate(0, RecipeDetailsInfosComponent_ng_template_0_Template, 2, 0, "ng-template", null, 0, i0.ɵɵtemplateRefExtractor);
|
|
22185
22438
|
i0.ɵɵtemplate(2, RecipeDetailsInfosComponent_ng_template_2_Template, 2, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
|
|
22186
22439
|
i0.ɵɵelementStart(4, "div", 2);
|
|
@@ -22192,20 +22445,22 @@ RecipeDetailsInfosComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetails
|
|
|
22192
22445
|
i0.ɵɵelement(9, "img", 7);
|
|
22193
22446
|
i0.ɵɵtemplate(10, RecipeDetailsInfosComponent_span_10_Template, 2, 1, "span", 5);
|
|
22194
22447
|
i0.ɵɵelementEnd();
|
|
22195
|
-
i0.ɵɵtemplate(11, RecipeDetailsInfosComponent_div_11_Template, 3,
|
|
22196
|
-
i0.ɵɵtemplate(12,
|
|
22448
|
+
i0.ɵɵtemplate(11, RecipeDetailsInfosComponent_div_11_Template, 3, 9, "div", 8);
|
|
22449
|
+
i0.ɵɵtemplate(12, RecipeDetailsInfosComponent_button_12_Template, 2, 0, "button", 9);
|
|
22197
22450
|
i0.ɵɵtemplate(13, RecipeDetailsInfosComponent_div_13_Template, 3, 1, "div", 10);
|
|
22198
22451
|
i0.ɵɵelementEnd();
|
|
22199
22452
|
} if (rf & 2) {
|
|
22200
22453
|
const _r0 = i0.ɵɵreference(1);
|
|
22201
22454
|
i0.ɵɵadvance(4);
|
|
22202
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
22455
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(12, _c3$1, ctx.tagsDisplayed));
|
|
22203
22456
|
i0.ɵɵadvance(1);
|
|
22204
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
22457
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(14, _c4, ctx.recipe.preparationTime === "-"));
|
|
22458
|
+
i0.ɵɵattribute("aria-label", "Temps de pr\u00E9paration: " + (ctx.recipe.preparationTime || "0 min"));
|
|
22205
22459
|
i0.ɵɵadvance(2);
|
|
22206
22460
|
i0.ɵɵproperty("ngIf", ctx.recipe.preparationTime)("ngIfElse", _r0);
|
|
22207
22461
|
i0.ɵɵadvance(1);
|
|
22208
|
-
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(
|
|
22462
|
+
i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(16, _c5$1, ctx.recipe.cookingTime === "-"));
|
|
22463
|
+
i0.ɵɵattribute("aria-label", "Temps de cuisson: " + (ctx.recipe.cookingTime || "0 min"));
|
|
22209
22464
|
i0.ɵɵadvance(2);
|
|
22210
22465
|
i0.ɵɵproperty("ngIf", ctx.recipe.cookingTime)("ngIfElse", _r0);
|
|
22211
22466
|
i0.ɵɵadvance(1);
|
|
@@ -22214,7 +22469,7 @@ RecipeDetailsInfosComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetails
|
|
|
22214
22469
|
i0.ɵɵproperty("ngIf", ctx.recipe.relationships.tags.data.length > 0);
|
|
22215
22470
|
i0.ɵɵadvance(1);
|
|
22216
22471
|
i0.ɵɵproperty("ngForOf", ctx.recipe.relationships.tags.data);
|
|
22217
|
-
} }, directives: [i2.NgClass, i2.NgIf, i2.NgForOf], styles: [".miam-recipe-details-infos__container{display:flex;flex-wrap:wrap;gap:8px}.miam-recipe-details-infos__container.tags-displayed .miam-recipe-details-infos__badge.more-info{display:none}.miam-recipe-details-infos__container.tags-displayed .miam-recipe-details-infos__badge.tag{display:flex}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge{display:flex;gap:8px;align-items:center;color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge.tag{display:none}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge.more-info{cursor:pointer}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge__cooking-time.no-cooking-time-defined,.miam-recipe-details-infos__container .miam-recipe-details-infos__badge__difficulty.no-difficulty-defined,.miam-recipe-details-infos__container .miam-recipe-details-infos__badge__preparation-time.no-preparation-time-defined{display:none}"], encapsulation: 2, changeDetection: 0 });
|
|
22472
|
+
} }, directives: [i2.NgClass, i2.NgIf, i2.NgForOf], styles: [".miam-recipe-details-infos__container{display:flex;flex-wrap:wrap;gap:8px}.miam-recipe-details-infos__container.tags-displayed .miam-recipe-details-infos__badge.more-info{display:none}.miam-recipe-details-infos__container.tags-displayed .miam-recipe-details-infos__badge.tag{display:flex}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge{border:none;display:flex;gap:8px;align-items:center;color:var(--miam-ds-color-neutral-black,#0f191f)}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge.tag{display:none}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge.more-info{cursor:pointer}.miam-recipe-details-infos__container .miam-recipe-details-infos__badge__cooking-time.no-cooking-time-defined,.miam-recipe-details-infos__container .miam-recipe-details-infos__badge__difficulty.no-difficulty-defined,.miam-recipe-details-infos__container .miam-recipe-details-infos__badge__preparation-time.no-preparation-time-defined{display:none}"], encapsulation: 2, changeDetection: 0 });
|
|
22218
22473
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(RecipeDetailsInfosComponent, [{
|
|
22219
22474
|
type: Component,
|
|
22220
22475
|
args: [{
|
|
@@ -22256,7 +22511,8 @@ function RecipeDetailsIngredientsComponent_div_0_div_8_Template(rf, ctx) { if (r
|
|
|
22256
22511
|
const ingredient_r4 = ctx.$implicit;
|
|
22257
22512
|
const ctx_r3 = i0.ɵɵnextContext(2);
|
|
22258
22513
|
i0.ɵɵadvance(2);
|
|
22259
|
-
i0.ɵɵproperty("src", ctx_r3.ingredientPicture(ingredient_r4), i0.ɵɵsanitizeUrl)
|
|
22514
|
+
i0.ɵɵproperty("src", ctx_r3.ingredientPicture(ingredient_r4), i0.ɵɵsanitizeUrl);
|
|
22515
|
+
i0.ɵɵattribute("alt", "Image de " + ingredient_r4.name);
|
|
22260
22516
|
i0.ɵɵadvance(2);
|
|
22261
22517
|
i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(5, 4, ingredient_r4.name));
|
|
22262
22518
|
i0.ɵɵadvance(3);
|
|
@@ -22310,7 +22566,7 @@ RecipeDetailsIngredientsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeD
|
|
|
22310
22566
|
}
|
|
22311
22567
|
else {
|
|
22312
22568
|
i18n_2 = $localize `:␟50bd24ece9d857e744e5647b7bfb3a637b6f2a44␟6517018329453008605:ingrédient`;
|
|
22313
|
-
} return [["class", "miam-recipe-details-ingredients", 4, "ngIf"], [1, "miam-recipe-details-ingredients"], [1, "miam-ds-text", "weight-xxl", "miam-recipe-details-ingredients__header"], [4, "ngIf"], [1, "miam-recipe-details-ingredients__list"], ["class", "miam-recipe-details-ingredients__item", 4, "ngFor", "ngForOf"], i18n_0, i18n_2, [1, "miam-recipe-details-ingredients__item"], [1, "miam-recipe-details-ingredients__picture_container"], [1, "miam-recipe-details-ingredients__picture", 3, "src"
|
|
22569
|
+
} return [["class", "miam-recipe-details-ingredients", 4, "ngIf"], [1, "miam-recipe-details-ingredients"], ["role", "heading", "aria-level", "2", 1, "miam-ds-text", "weight-xxl", "miam-recipe-details-ingredients__header"], [4, "ngIf"], ["role", "list", 1, "miam-recipe-details-ingredients__list"], ["class", "miam-recipe-details-ingredients__item", "role", "listitem", 4, "ngFor", "ngForOf"], i18n_0, i18n_2, ["role", "listitem", 1, "miam-recipe-details-ingredients__item"], [1, "miam-recipe-details-ingredients__picture_container"], [1, "miam-recipe-details-ingredients__picture", 3, "src"], [1, "miam-ds-text", "size-s", "weight-xxl", "miam-recipe-details-ingredients__name"], [1, "miam-ds-text", "size-s", "weight-l", "miam-recipe-details-ingredients__row__qty"]]; }, template: function RecipeDetailsIngredientsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22314
22570
|
i0.ɵɵtemplate(0, RecipeDetailsIngredientsComponent_div_0_Template, 9, 4, "div", 0);
|
|
22315
22571
|
i0.ɵɵpipe(1, "async");
|
|
22316
22572
|
} if (rf & 2) {
|
|
@@ -22409,15 +22665,16 @@ RecipeDetailsStepsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetails
|
|
|
22409
22665
|
type: Input
|
|
22410
22666
|
}] }); })();
|
|
22411
22667
|
|
|
22412
|
-
function
|
|
22668
|
+
function StoreLocatorLinkComponent_div_0_span_1_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
22413
22669
|
const _r4 = i0.ɵɵgetCurrentView();
|
|
22414
|
-
i0.ɵɵelementStart(0, "
|
|
22415
|
-
i0.ɵɵlistener("click", function
|
|
22670
|
+
i0.ɵɵelementStart(0, "button", 8);
|
|
22671
|
+
i0.ɵɵlistener("click", function StoreLocatorLinkComponent_div_0_span_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r3 = i0.ɵɵnextContext(3); return ctx_r3.showTooltip(); });
|
|
22672
|
+
i0.ɵɵelement(1, "img", 9);
|
|
22416
22673
|
i0.ɵɵelementEnd();
|
|
22417
22674
|
} }
|
|
22418
22675
|
function StoreLocatorLinkComponent_div_0_span_1_Template(rf, ctx) { if (rf & 1) {
|
|
22419
22676
|
i0.ɵɵelementStart(0, "span", 6);
|
|
22420
|
-
i0.ɵɵtemplate(1,
|
|
22677
|
+
i0.ɵɵtemplate(1, StoreLocatorLinkComponent_div_0_span_1_button_1_Template, 2, 0, "button", 7);
|
|
22421
22678
|
i0.ɵɵtext(2);
|
|
22422
22679
|
i0.ɵɵelementEnd();
|
|
22423
22680
|
} if (rf & 2) {
|
|
@@ -22481,12 +22738,12 @@ StoreLocatorLinkComponent.ɵcmp = i0.ɵɵdefineComponent({ type: StoreLocatorLin
|
|
|
22481
22738
|
}
|
|
22482
22739
|
else {
|
|
22483
22740
|
i18n_0 = $localize `:␟c368921f313712ef19fa1f7d05697982582598ef␟9004334984468055592:Changer`;
|
|
22484
|
-
} return [["class", "miam-store-locator-link", 4, "ngIf"], [1, "miam-store-locator-link"], ["class", "miam-store-locator-link__store-name miam-ds-text weight-xl size-s", 4, "ngIf"], [1, "miam-store-locator-link__swap-pos-button", "miam-ds-button", "primary", "reverse", "small", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Swap.svg", "alt", "
|
|
22741
|
+
} return [["class", "miam-store-locator-link", 4, "ngIf"], [1, "miam-store-locator-link"], ["class", "miam-store-locator-link__store-name miam-ds-text weight-xl size-s", 4, "ngIf"], ["aria-label", "Changer de magasin", 1, "miam-store-locator-link__swap-pos-button", "miam-ds-button", "primary", "reverse", "small", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Swap.svg", "alt", "", "aria-hidden", "true", 1, "miam-store-locator-link__swap-pos-icon"], i18n_0, [1, "miam-store-locator-link__store-name", "miam-ds-text", "weight-xl", "size-s"], ["class", "miam-store-locator-link__info-button", "aria-label", "Afficher plus d'informations sur le s\u00E9lectionneur de magasin", 3, "click", 4, "ngIf"], ["aria-label", "Afficher plus d'informations sur le s\u00E9lectionneur de magasin", 1, "miam-store-locator-link__info-button", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Infos_Primary.svg", "alt", "", "aria-hidden", "true"]]; }, template: function StoreLocatorLinkComponent_Template(rf, ctx) { if (rf & 1) {
|
|
22485
22742
|
i0.ɵɵtemplate(0, StoreLocatorLinkComponent_div_0_Template, 6, 1, "div", 0);
|
|
22486
22743
|
i0.ɵɵpipe(1, "async");
|
|
22487
22744
|
} if (rf & 2) {
|
|
22488
22745
|
i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(1, 1, ctx.posService.waitForPos));
|
|
22489
|
-
} }, directives: [i2.NgIf], pipes: [i2.AsyncPipe], styles: [".miam-store-locator-link{padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--miam-ds-color-primary-100)}.miam-store-locator-link .miam-store-locator-link__store-name{display:flex}.miam-store-locator-link .miam-store-locator-link__store-name img{margin-right:8px;cursor:pointer}.miam-store-locator-link .miam-store-locator-link__swap-pos-button{border-radius:16px;display:flex;gap:8px}.miam-store-locator-link .miam-store-locator-link__swap-pos-button.miam-ds-button.primary.reverse.small{padding:8px 12px}.miam-store-locator-link .miam-store-locator-link__swap-pos-button.miam-ds-button.primary.reverse.small:hover{background-color:var(--miam-ds-color-primary-text);color:var(--miam-ds-color-primary)}"], encapsulation: 2, changeDetection: 0 });
|
|
22746
|
+
} }, directives: [i2.NgIf], pipes: [i2.AsyncPipe], styles: [".miam-store-locator-link{padding:8px 16px;display:flex;align-items:center;justify-content:space-between;background:var(--miam-ds-color-primary-100)}.miam-store-locator-link .miam-store-locator-link__store-name{display:flex}.miam-store-locator-link .miam-store-locator-link__store-name .miam-store-locator-link__info-button{border:none}.miam-store-locator-link .miam-store-locator-link__store-name .miam-store-locator-link__info-button img{margin-right:8px;cursor:pointer}.miam-store-locator-link .miam-store-locator-link__swap-pos-button{border-radius:16px;display:flex;gap:8px}.miam-store-locator-link .miam-store-locator-link__swap-pos-button.miam-ds-button.primary.reverse.small{padding:8px 12px}.miam-store-locator-link .miam-store-locator-link__swap-pos-button.miam-ds-button.primary.reverse.small:hover{background-color:var(--miam-ds-color-primary-text);color:var(--miam-ds-color-primary)}"], encapsulation: 2, changeDetection: 0 });
|
|
22490
22747
|
(function () { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassMetadata(StoreLocatorLinkComponent, [{
|
|
22491
22748
|
type: Component,
|
|
22492
22749
|
args: [{
|
|
@@ -22503,29 +22760,30 @@ function RecipeDetailsComponent_div_0_div_1_Template(rf, ctx) { if (rf & 1) {
|
|
|
22503
22760
|
i0.ɵɵelement(0, "div", 7);
|
|
22504
22761
|
} }
|
|
22505
22762
|
function RecipeDetailsComponent_div_0_div_2_ng_miam_like_button_10_Template(rf, ctx) { if (rf & 1) {
|
|
22506
|
-
i0.ɵɵelement(0, "ng-miam-like-button",
|
|
22763
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 39);
|
|
22507
22764
|
} if (rf & 2) {
|
|
22508
22765
|
const ctx_r7 = i0.ɵɵnextContext(3);
|
|
22509
22766
|
i0.ɵɵproperty("recipe", ctx_r7.recipeDetailsService.recipe)("originTrace", ctx_r7.eventTrace);
|
|
22510
22767
|
} }
|
|
22511
22768
|
function RecipeDetailsComponent_div_0_div_2_img_13_Template(rf, ctx) { if (rf & 1) {
|
|
22512
22769
|
const _r20 = i0.ɵɵgetCurrentView();
|
|
22513
|
-
i0.ɵɵelementStart(0, "img",
|
|
22770
|
+
i0.ɵɵelementStart(0, "img", 40);
|
|
22514
22771
|
i0.ɵɵlistener("error", function RecipeDetailsComponent_div_0_div_2_img_13_Template_img_error_0_listener($event) { i0.ɵɵrestoreView(_r20); const ctx_r19 = i0.ɵɵnextContext(3); return ($event.target["src"] = ctx_r19.contextService.defaultRecipePicture); });
|
|
22515
22772
|
i0.ɵɵelementEnd();
|
|
22516
22773
|
} if (rf & 2) {
|
|
22517
22774
|
const ctx_r8 = i0.ɵɵnextContext(3);
|
|
22518
22775
|
i0.ɵɵproperty("src", ctx_r8.recipeDetailsService.recipe == null ? null : ctx_r8.recipeDetailsService.recipe.attributes["media-url"], i0.ɵɵsanitizeUrl);
|
|
22776
|
+
i0.ɵɵattribute("alt", "Photo de la recette " + (ctx_r8.recipeDetailsService.recipe == null ? null : ctx_r8.recipeDetailsService.recipe.attributes["title"]));
|
|
22519
22777
|
} }
|
|
22520
22778
|
function RecipeDetailsComponent_div_0_div_2_youtube_player_14_Template(rf, ctx) { if (rf & 1) {
|
|
22521
|
-
i0.ɵɵelement(0, "youtube-player",
|
|
22779
|
+
i0.ɵɵelement(0, "youtube-player", 41);
|
|
22522
22780
|
} if (rf & 2) {
|
|
22523
22781
|
const ctx_r9 = i0.ɵɵnextContext(3);
|
|
22524
22782
|
i0.ɵɵproperty("videoId", ctx_r9.recipeDetailsService.recipe.videoId)("width", ctx_r9.playerWidth)("height", ctx_r9.playerHeight)("playerVars", ctx_r9.playerVars);
|
|
22525
22783
|
} }
|
|
22526
22784
|
function RecipeDetailsComponent_div_0_div_2_div_15_Template(rf, ctx) { if (rf & 1) {
|
|
22527
|
-
i0.ɵɵelementStart(0, "div",
|
|
22528
|
-
i0.ɵɵelement(1, "img",
|
|
22785
|
+
i0.ɵɵelementStart(0, "div", 42);
|
|
22786
|
+
i0.ɵɵelement(1, "img", 43);
|
|
22529
22787
|
i0.ɵɵelementEnd();
|
|
22530
22788
|
} if (rf & 2) {
|
|
22531
22789
|
const ctx_r10 = i0.ɵɵnextContext(3);
|
|
@@ -22534,7 +22792,7 @@ function RecipeDetailsComponent_div_0_div_2_div_15_Template(rf, ctx) { if (rf &
|
|
|
22534
22792
|
} }
|
|
22535
22793
|
function RecipeDetailsComponent_div_0_div_2_ng_miam_addon_link_17_Template(rf, ctx) { if (rf & 1) {
|
|
22536
22794
|
const _r22 = i0.ɵɵgetCurrentView();
|
|
22537
|
-
i0.ɵɵelementStart(0, "ng-miam-addon-link",
|
|
22795
|
+
i0.ɵɵelementStart(0, "ng-miam-addon-link", 44);
|
|
22538
22796
|
i0.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_div_2_ng_miam_addon_link_17_Template_ng_miam_addon_link_showAddon_0_listener() { i0.ɵɵrestoreView(_r22); const ctx_r21 = i0.ɵɵnextContext(3); return ctx_r21.toggleAddon(); });
|
|
22539
22797
|
i0.ɵɵelementEnd();
|
|
22540
22798
|
} if (rf & 2) {
|
|
@@ -22543,14 +22801,14 @@ function RecipeDetailsComponent_div_0_div_2_ng_miam_addon_link_17_Template(rf, c
|
|
|
22543
22801
|
} }
|
|
22544
22802
|
function RecipeDetailsComponent_div_0_div_2_div_19_Template(rf, ctx) { if (rf & 1) {
|
|
22545
22803
|
const _r24 = i0.ɵɵgetCurrentView();
|
|
22546
|
-
i0.ɵɵelementStart(0, "div",
|
|
22804
|
+
i0.ɵɵelementStart(0, "div", 45);
|
|
22547
22805
|
i0.ɵɵpipe(1, "async");
|
|
22548
|
-
i0.ɵɵelementStart(2, "button",
|
|
22806
|
+
i0.ɵɵelementStart(2, "button", 46);
|
|
22549
22807
|
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_2_div_19_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r24); const ctx_r23 = i0.ɵɵnextContext(3); return ctx_r23.toggleLastOrderModal(); });
|
|
22550
|
-
i0.ɵɵelement(3, "img",
|
|
22551
|
-
i0.ɵɵelementStart(4, "div",
|
|
22808
|
+
i0.ɵɵelement(3, "img", 47);
|
|
22809
|
+
i0.ɵɵelementStart(4, "div", 48);
|
|
22552
22810
|
i0.ɵɵelementStart(5, "span");
|
|
22553
|
-
i0.ɵɵi18n(6,
|
|
22811
|
+
i0.ɵɵi18n(6, 49);
|
|
22554
22812
|
i0.ɵɵelementEnd();
|
|
22555
22813
|
i0.ɵɵelementStart(7, "span");
|
|
22556
22814
|
i0.ɵɵtext(8);
|
|
@@ -22565,7 +22823,7 @@ function RecipeDetailsComponent_div_0_div_2_div_19_Template(rf, ctx) { if (rf &
|
|
|
22565
22823
|
i0.ɵɵtextInterpolate(ctx_r12.recipeDetailsService.orderHistoryDate);
|
|
22566
22824
|
} }
|
|
22567
22825
|
function RecipeDetailsComponent_div_0_div_2_ng_miam_like_button_28_Template(rf, ctx) { if (rf & 1) {
|
|
22568
|
-
i0.ɵɵelement(0, "ng-miam-like-button",
|
|
22826
|
+
i0.ɵɵelement(0, "ng-miam-like-button", 39);
|
|
22569
22827
|
} if (rf & 2) {
|
|
22570
22828
|
const ctx_r13 = i0.ɵɵnextContext(3);
|
|
22571
22829
|
i0.ɵɵproperty("recipe", ctx_r13.recipeDetailsService.recipe)("originTrace", ctx_r13.eventTrace);
|
|
@@ -22577,9 +22835,9 @@ const _c5 = function (a0) { return { "hidden": a0 }; };
|
|
|
22577
22835
|
function RecipeDetailsComponent_div_0_div_2_ng_container_33_Template(rf, ctx) { if (rf & 1) {
|
|
22578
22836
|
const _r26 = i0.ɵɵgetCurrentView();
|
|
22579
22837
|
i0.ɵɵelementContainerStart(0);
|
|
22580
|
-
i0.ɵɵelement(1, "ng-miam-recipe-details-infos",
|
|
22581
|
-
i0.ɵɵelementStart(2, "div",
|
|
22582
|
-
i0.ɵɵelementStart(3, "ng-miam-slider-tabs",
|
|
22838
|
+
i0.ɵɵelement(1, "ng-miam-recipe-details-infos", 50);
|
|
22839
|
+
i0.ɵɵelementStart(2, "div", 51);
|
|
22840
|
+
i0.ɵɵelementStart(3, "ng-miam-slider-tabs", 52);
|
|
22583
22841
|
i0.ɵɵlistener("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_2_ng_container_33_Template_ng_miam_slider_tabs_selectedTabIndexChange_3_listener($event) { i0.ɵɵrestoreView(_r26); const ctx_r25 = i0.ɵɵnextContext(3); return ctx_r25.selectTab($event); });
|
|
22584
22842
|
i0.ɵɵelementEnd();
|
|
22585
22843
|
i0.ɵɵelementEnd();
|
|
@@ -22595,7 +22853,7 @@ function RecipeDetailsComponent_div_0_div_2_ng_container_33_Template(rf, ctx) {
|
|
|
22595
22853
|
} }
|
|
22596
22854
|
function RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_products_picker_1_Template(rf, ctx) { if (rf & 1) {
|
|
22597
22855
|
const _r30 = i0.ɵɵgetCurrentView();
|
|
22598
|
-
i0.ɵɵelementStart(0, "ng-miam-products-picker",
|
|
22856
|
+
i0.ɵɵelementStart(0, "ng-miam-products-picker", 55);
|
|
22599
22857
|
i0.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_products_picker_1_Template_ng_miam_products_picker_closeModal_0_listener() { i0.ɵɵrestoreView(_r30); const ctx_r29 = i0.ɵɵnextContext(4); return ctx_r29.close(); })("guestsChange", function RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_products_picker_1_Template_ng_miam_products_picker_guestsChange_0_listener($event) { i0.ɵɵrestoreView(_r30); const ctx_r31 = i0.ɵɵnextContext(4); return ctx_r31.updateGuests($event); });
|
|
22600
22858
|
i0.ɵɵelementEnd();
|
|
22601
22859
|
} if (rf & 2) {
|
|
@@ -22604,7 +22862,7 @@ function RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_products_pic
|
|
|
22604
22862
|
} }
|
|
22605
22863
|
function RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_no_pos_selected_2_Template(rf, ctx) { if (rf & 1) {
|
|
22606
22864
|
const _r33 = i0.ɵɵgetCurrentView();
|
|
22607
|
-
i0.ɵɵelementStart(0, "ng-miam-no-pos-selected",
|
|
22865
|
+
i0.ɵɵelementStart(0, "ng-miam-no-pos-selected", 56);
|
|
22608
22866
|
i0.ɵɵlistener("posSelected", function RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_no_pos_selected_2_Template_ng_miam_no_pos_selected_posSelected_0_listener() { i0.ɵɵrestoreView(_r33); const ctx_r32 = i0.ɵɵnextContext(4); return ctx_r32.checkPos(); });
|
|
22609
22867
|
i0.ɵɵelementEnd();
|
|
22610
22868
|
} if (rf & 2) {
|
|
@@ -22613,8 +22871,8 @@ function RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_no_pos_selec
|
|
|
22613
22871
|
} }
|
|
22614
22872
|
function RecipeDetailsComponent_div_0_div_2_ng_container_34_Template(rf, ctx) { if (rf & 1) {
|
|
22615
22873
|
i0.ɵɵelementContainerStart(0);
|
|
22616
|
-
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_products_picker_1_Template, 1, 1, "ng-miam-products-picker",
|
|
22617
|
-
i0.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_no_pos_selected_2_Template, 1, 1, "ng-miam-no-pos-selected",
|
|
22874
|
+
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_products_picker_1_Template, 1, 1, "ng-miam-products-picker", 53);
|
|
22875
|
+
i0.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_2_ng_container_34_ng_miam_no_pos_selected_2_Template, 1, 1, "ng-miam-no-pos-selected", 54);
|
|
22618
22876
|
i0.ɵɵelementContainerEnd();
|
|
22619
22877
|
} if (rf & 2) {
|
|
22620
22878
|
const ctx_r16 = i0.ɵɵnextContext(3);
|
|
@@ -22624,31 +22882,31 @@ function RecipeDetailsComponent_div_0_div_2_ng_container_34_Template(rf, ctx) {
|
|
|
22624
22882
|
i0.ɵɵproperty("ngIf", ctx_r16.recipeDetailsService.noPosDisplay || ctx_r16.recipeDetailsService.invalidPosDisplay);
|
|
22625
22883
|
} }
|
|
22626
22884
|
function RecipeDetailsComponent_div_0_div_2_div_35_div_3_div_8_Template(rf, ctx) { if (rf & 1) {
|
|
22627
|
-
i0.ɵɵelement(0, "div",
|
|
22885
|
+
i0.ɵɵelement(0, "div", 71);
|
|
22628
22886
|
} }
|
|
22629
22887
|
function RecipeDetailsComponent_div_0_div_2_div_35_div_3_ng_template_11_Template(rf, ctx) { if (rf & 1) {
|
|
22630
|
-
i0.ɵɵelement(0, "img",
|
|
22888
|
+
i0.ɵɵelement(0, "img", 72);
|
|
22631
22889
|
} }
|
|
22632
22890
|
function RecipeDetailsComponent_div_0_div_2_div_35_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
22633
22891
|
const _r39 = i0.ɵɵgetCurrentView();
|
|
22634
|
-
i0.ɵɵelementStart(0, "div",
|
|
22635
|
-
i0.ɵɵelementStart(1, "div",
|
|
22636
|
-
i0.ɵɵelementStart(2, "span",
|
|
22637
|
-
i0.ɵɵi18n(3,
|
|
22892
|
+
i0.ɵɵelementStart(0, "div", 61);
|
|
22893
|
+
i0.ɵɵelementStart(1, "div", 62);
|
|
22894
|
+
i0.ɵɵelementStart(2, "span", 63);
|
|
22895
|
+
i0.ɵɵi18n(3, 64);
|
|
22638
22896
|
i0.ɵɵelementEnd();
|
|
22639
|
-
i0.ɵɵelementStart(4, "span",
|
|
22640
|
-
i0.ɵɵi18n(5,
|
|
22897
|
+
i0.ɵɵelementStart(4, "span", 65);
|
|
22898
|
+
i0.ɵɵi18n(5, 66);
|
|
22641
22899
|
i0.ɵɵelementEnd();
|
|
22642
22900
|
i0.ɵɵelementEnd();
|
|
22643
|
-
i0.ɵɵelementStart(6, "button",
|
|
22901
|
+
i0.ɵɵelementStart(6, "button", 67);
|
|
22644
22902
|
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_2_div_35_div_3_Template_button_click_6_listener() { i0.ɵɵrestoreView(_r39); const ctx_r38 = i0.ɵɵnextContext(4); return ctx_r38.orderAgain(ctx_r38.eventTrace); });
|
|
22645
22903
|
i0.ɵɵpipe(7, "async");
|
|
22646
|
-
i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_2_div_35_div_3_div_8_Template, 1, 0, "div",
|
|
22904
|
+
i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_2_div_35_div_3_div_8_Template, 1, 0, "div", 68);
|
|
22647
22905
|
i0.ɵɵpipe(9, "async");
|
|
22648
22906
|
i0.ɵɵpipe(10, "async");
|
|
22649
|
-
i0.ɵɵtemplate(11, RecipeDetailsComponent_div_0_div_2_div_35_div_3_ng_template_11_Template, 1, 0, "ng-template", null,
|
|
22907
|
+
i0.ɵɵtemplate(11, RecipeDetailsComponent_div_0_div_2_div_35_div_3_ng_template_11_Template, 1, 0, "ng-template", null, 69, i0.ɵɵtemplateRefExtractor);
|
|
22650
22908
|
i0.ɵɵelementStart(13, "span");
|
|
22651
|
-
i0.ɵɵi18n(14,
|
|
22909
|
+
i0.ɵɵi18n(14, 70);
|
|
22652
22910
|
i0.ɵɵelementEnd();
|
|
22653
22911
|
i0.ɵɵelementEnd();
|
|
22654
22912
|
i0.ɵɵelementEnd();
|
|
@@ -22661,10 +22919,10 @@ function RecipeDetailsComponent_div_0_div_2_div_35_div_3_Template(rf, ctx) { if
|
|
|
22661
22919
|
i0.ɵɵproperty("ngIf", ctx_r34.recipeDetailsService.ingredientToBasketLoading$.value || i0.ɵɵpipeBind1(9, 5, ctx_r34.recipeDetailsService.updateIngredientFromBasketLoading$) || i0.ɵɵpipeBind1(10, 7, ctx_r34.basketSynchroService.hasPendingActions()))("ngIfElse", _r36);
|
|
22662
22920
|
} }
|
|
22663
22921
|
function RecipeDetailsComponent_div_0_div_2_div_35_Template(rf, ctx) { if (rf & 1) {
|
|
22664
|
-
i0.ɵɵelementStart(0, "div",
|
|
22665
|
-
i0.ɵɵelement(1, "ng-miam-recipe-details-ingredients",
|
|
22666
|
-
i0.ɵɵelement(2, "ng-miam-recipe-details-steps",
|
|
22667
|
-
i0.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_2_div_35_div_3_Template, 15, 9, "div",
|
|
22922
|
+
i0.ɵɵelementStart(0, "div", 57);
|
|
22923
|
+
i0.ɵɵelement(1, "ng-miam-recipe-details-ingredients", 58);
|
|
22924
|
+
i0.ɵɵelement(2, "ng-miam-recipe-details-steps", 59);
|
|
22925
|
+
i0.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_2_div_35_div_3_Template, 15, 9, "div", 60);
|
|
22668
22926
|
i0.ɵɵelementEnd();
|
|
22669
22927
|
} if (rf & 2) {
|
|
22670
22928
|
const ctx_r17 = i0.ɵɵnextContext(3);
|
|
@@ -22677,35 +22935,35 @@ function RecipeDetailsComponent_div_0_div_2_div_35_Template(rf, ctx) { if (rf &
|
|
|
22677
22935
|
} }
|
|
22678
22936
|
function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_1_span_7_Template(rf, ctx) { if (rf & 1) {
|
|
22679
22937
|
i0.ɵɵelementStart(0, "span");
|
|
22680
|
-
i0.ɵɵi18n(1,
|
|
22938
|
+
i0.ɵɵi18n(1, 84);
|
|
22681
22939
|
i0.ɵɵelementEnd();
|
|
22682
22940
|
} }
|
|
22683
22941
|
function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_1_span_8_Template(rf, ctx) { if (rf & 1) {
|
|
22684
22942
|
i0.ɵɵelementStart(0, "span");
|
|
22685
|
-
i0.ɵɵi18n(1,
|
|
22943
|
+
i0.ɵɵi18n(1, 85);
|
|
22686
22944
|
i0.ɵɵelementEnd();
|
|
22687
22945
|
} }
|
|
22688
22946
|
function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_1_Template(rf, ctx) { if (rf & 1) {
|
|
22689
22947
|
const _r50 = i0.ɵɵgetCurrentView();
|
|
22690
|
-
i0.ɵɵelementStart(0, "button",
|
|
22948
|
+
i0.ɵɵelementStart(0, "button", 78);
|
|
22691
22949
|
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_1_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r50); const ctx_r49 = i0.ɵɵnextContext(6); return ctx_r49.recipeDetailsService.addAllIngredientsToBasket(ctx_r49.eventTrace); });
|
|
22692
|
-
i0.ɵɵelement(1, "img",
|
|
22693
|
-
i0.ɵɵelementStart(2, "div",
|
|
22950
|
+
i0.ɵɵelement(1, "img", 79);
|
|
22951
|
+
i0.ɵɵelementStart(2, "div", 80);
|
|
22694
22952
|
i0.ɵɵelementStart(3, "span");
|
|
22695
|
-
i0.ɵɵi18n(4,
|
|
22953
|
+
i0.ɵɵi18n(4, 81);
|
|
22696
22954
|
i0.ɵɵelementEnd();
|
|
22697
22955
|
i0.ɵɵelementStart(5, "span");
|
|
22698
22956
|
i0.ɵɵtext(6);
|
|
22699
22957
|
i0.ɵɵelementEnd();
|
|
22700
|
-
i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_1_span_7_Template, 2, 0, "span",
|
|
22701
|
-
i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_1_span_8_Template, 2, 0, "span",
|
|
22702
|
-
i0.ɵɵelementStart(9, "div",
|
|
22958
|
+
i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_1_span_7_Template, 2, 0, "span", 36);
|
|
22959
|
+
i0.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_1_span_8_Template, 2, 0, "span", 36);
|
|
22960
|
+
i0.ɵɵelementStart(9, "div", 82);
|
|
22703
22961
|
i0.ɵɵtext(10, " ( ");
|
|
22704
22962
|
i0.ɵɵelementStart(11, "span");
|
|
22705
22963
|
i0.ɵɵtext(12);
|
|
22706
22964
|
i0.ɵɵpipe(13, "currency");
|
|
22707
22965
|
i0.ɵɵelementEnd();
|
|
22708
|
-
i0.ɵɵelement(14, "div",
|
|
22966
|
+
i0.ɵɵelement(14, "div", 83);
|
|
22709
22967
|
i0.ɵɵtext(15, " ) ");
|
|
22710
22968
|
i0.ɵɵelementEnd();
|
|
22711
22969
|
i0.ɵɵelementEnd();
|
|
@@ -22726,14 +22984,14 @@ function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1
|
|
|
22726
22984
|
i0.ɵɵclassProp("hidden", !ctx_r45.recipeDetailsService.ingredientToBasketLoading$.value);
|
|
22727
22985
|
} }
|
|
22728
22986
|
function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_2_Template(rf, ctx) { if (rf & 1) {
|
|
22729
|
-
i0.ɵɵelementStart(0, "button",
|
|
22730
|
-
i0.ɵɵelement(1, "div",
|
|
22987
|
+
i0.ɵɵelementStart(0, "button", 86);
|
|
22988
|
+
i0.ɵɵelement(1, "div", 83);
|
|
22731
22989
|
i0.ɵɵelementEnd();
|
|
22732
22990
|
} }
|
|
22733
22991
|
function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
22734
22992
|
i0.ɵɵelementContainerStart(0);
|
|
22735
|
-
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_1_Template, 16, 11, "button",
|
|
22736
|
-
i0.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_2_Template, 2, 0, "button",
|
|
22993
|
+
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_1_Template, 16, 11, "button", 76);
|
|
22994
|
+
i0.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_button_2_Template, 2, 0, "button", 77);
|
|
22737
22995
|
i0.ɵɵelementContainerEnd();
|
|
22738
22996
|
} if (rf & 2) {
|
|
22739
22997
|
const ctx_r43 = i0.ɵɵnextContext(5);
|
|
@@ -22744,24 +23002,24 @@ function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1
|
|
|
22744
23002
|
} }
|
|
22745
23003
|
function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_div_2_button_4_Template(rf, ctx) { if (rf & 1) {
|
|
22746
23004
|
const _r53 = i0.ɵɵgetCurrentView();
|
|
22747
|
-
i0.ɵɵelementStart(0, "button",
|
|
23005
|
+
i0.ɵɵelementStart(0, "button", 91);
|
|
22748
23006
|
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_div_2_button_4_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r53); const ctx_r52 = i0.ɵɵnextContext(6); return ctx_r52.close(true); });
|
|
22749
|
-
i0.ɵɵelementStart(1, "span",
|
|
22750
|
-
i0.ɵɵi18n(2,
|
|
23007
|
+
i0.ɵɵelementStart(1, "span", 92);
|
|
23008
|
+
i0.ɵɵi18n(2, 93);
|
|
22751
23009
|
i0.ɵɵelementEnd();
|
|
22752
|
-
i0.ɵɵelement(3, "img",
|
|
23010
|
+
i0.ɵɵelement(3, "img", 79);
|
|
22753
23011
|
i0.ɵɵelementEnd();
|
|
22754
23012
|
} }
|
|
22755
23013
|
function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
22756
23014
|
const _r55 = i0.ɵɵgetCurrentView();
|
|
22757
|
-
i0.ɵɵelementStart(0, "div",
|
|
22758
|
-
i0.ɵɵelementStart(1, "button",
|
|
23015
|
+
i0.ɵɵelementStart(0, "div", 87);
|
|
23016
|
+
i0.ɵɵelementStart(1, "button", 88);
|
|
22759
23017
|
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_div_2_Template_button_click_1_listener() { i0.ɵɵrestoreView(_r55); const ctx_r54 = i0.ɵɵnextContext(5); return ctx_r54.confirm(); });
|
|
22760
|
-
i0.ɵɵelementStart(2, "span",
|
|
22761
|
-
i0.ɵɵi18n(3,
|
|
23018
|
+
i0.ɵɵelementStart(2, "span", 80);
|
|
23019
|
+
i0.ɵɵi18n(3, 89);
|
|
22762
23020
|
i0.ɵɵelementEnd();
|
|
22763
23021
|
i0.ɵɵelementEnd();
|
|
22764
|
-
i0.ɵɵtemplate(4, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_div_2_button_4_Template, 4, 0, "button",
|
|
23022
|
+
i0.ɵɵtemplate(4, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_div_2_button_4_Template, 4, 0, "button", 90);
|
|
22765
23023
|
i0.ɵɵelementEnd();
|
|
22766
23024
|
} if (rf & 2) {
|
|
22767
23025
|
const ctx_r44 = i0.ɵɵnextContext(5);
|
|
@@ -22772,8 +23030,8 @@ function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_div_2_Template
|
|
|
22772
23030
|
} }
|
|
22773
23031
|
function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_Template(rf, ctx) { if (rf & 1) {
|
|
22774
23032
|
i0.ɵɵelementContainerStart(0);
|
|
22775
|
-
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_Template, 3, 2, "ng-container",
|
|
22776
|
-
i0.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_div_2_Template, 5, 3, "div",
|
|
23033
|
+
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_ng_container_1_Template, 3, 2, "ng-container", 36);
|
|
23034
|
+
i0.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_div_2_Template, 5, 3, "div", 75);
|
|
22777
23035
|
i0.ɵɵelementContainerEnd();
|
|
22778
23036
|
} if (rf & 2) {
|
|
22779
23037
|
const ctx_r40 = i0.ɵɵnextContext(4);
|
|
@@ -22784,7 +23042,7 @@ function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_Template(rf, c
|
|
|
22784
23042
|
} }
|
|
22785
23043
|
function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_2_Template(rf, ctx) { if (rf & 1) {
|
|
22786
23044
|
i0.ɵɵelementContainerStart(0);
|
|
22787
|
-
i0.ɵɵelement(1, "ng-miam-recipe-pricing",
|
|
23045
|
+
i0.ɵɵelement(1, "ng-miam-recipe-pricing", 94);
|
|
22788
23046
|
i0.ɵɵelementContainerEnd();
|
|
22789
23047
|
} if (rf & 2) {
|
|
22790
23048
|
const ctx_r41 = i0.ɵɵnextContext(4);
|
|
@@ -22792,14 +23050,14 @@ function RecipeDetailsComponent_div_0_div_2_div_36_ng_container_2_Template(rf, c
|
|
|
22792
23050
|
i0.ɵɵproperty("recipeId", ctx_r41.recipeDetailsService.recipe.id)("serves", ctx_r41.recipeDetailsService.recipe.modifiedGuests)("fetchPricingOnScroll", false);
|
|
22793
23051
|
} }
|
|
22794
23052
|
function RecipeDetailsComponent_div_0_div_2_div_36_div_3_Template(rf, ctx) { if (rf & 1) {
|
|
22795
|
-
i0.ɵɵelementStart(0, "div",
|
|
22796
|
-
i0.ɵɵelementStart(1, "div",
|
|
22797
|
-
i0.ɵɵelement(2, "ng-miam-price",
|
|
23053
|
+
i0.ɵɵelementStart(0, "div", 95);
|
|
23054
|
+
i0.ɵɵelementStart(1, "div", 96);
|
|
23055
|
+
i0.ɵɵelement(2, "ng-miam-price", 97);
|
|
22798
23056
|
i0.ɵɵpipe(3, "currency");
|
|
22799
|
-
i0.ɵɵelement(4, "div",
|
|
23057
|
+
i0.ɵɵelement(4, "div", 71);
|
|
22800
23058
|
i0.ɵɵelementEnd();
|
|
22801
|
-
i0.ɵɵelementStart(5, "span",
|
|
22802
|
-
i0.ɵɵi18n(6,
|
|
23059
|
+
i0.ɵɵelementStart(5, "span", 98);
|
|
23060
|
+
i0.ɵɵi18n(6, 99);
|
|
22803
23061
|
i0.ɵɵelementEnd();
|
|
22804
23062
|
i0.ɵɵelementEnd();
|
|
22805
23063
|
} if (rf & 2) {
|
|
@@ -22811,10 +23069,10 @@ function RecipeDetailsComponent_div_0_div_2_div_36_div_3_Template(rf, ctx) { if
|
|
|
22811
23069
|
i0.ɵɵclassProp("hidden", !(ctx_r42.recipeDetailsService.ingredientToBasketLoading$.value || ctx_r42.recipeDetailsService.updateIngredientFromBasketLoading$.value || ctx_r42.basketSynchroHasPendigActions));
|
|
22812
23070
|
} }
|
|
22813
23071
|
function RecipeDetailsComponent_div_0_div_2_div_36_Template(rf, ctx) { if (rf & 1) {
|
|
22814
|
-
i0.ɵɵelementStart(0, "div",
|
|
22815
|
-
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_Template, 3, 2, "ng-container",
|
|
22816
|
-
i0.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_2_Template, 2, 3, "ng-container",
|
|
22817
|
-
i0.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_2_div_36_div_3_Template, 7, 8, "div",
|
|
23072
|
+
i0.ɵɵelementStart(0, "div", 73);
|
|
23073
|
+
i0.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_1_Template, 3, 2, "ng-container", 36);
|
|
23074
|
+
i0.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_2_div_36_ng_container_2_Template, 2, 3, "ng-container", 36);
|
|
23075
|
+
i0.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_2_div_36_div_3_Template, 7, 8, "div", 74);
|
|
22818
23076
|
i0.ɵɵelementEnd();
|
|
22819
23077
|
} if (rf & 2) {
|
|
22820
23078
|
const ctx_r18 = i0.ɵɵnextContext(3);
|
|
@@ -22849,7 +23107,7 @@ function RecipeDetailsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
22849
23107
|
i0.ɵɵtext(12, " > ");
|
|
22850
23108
|
i0.ɵɵelementEnd();
|
|
22851
23109
|
i0.ɵɵelementEnd();
|
|
22852
|
-
i0.ɵɵtemplate(13, RecipeDetailsComponent_div_0_div_2_img_13_Template, 1,
|
|
23110
|
+
i0.ɵɵtemplate(13, RecipeDetailsComponent_div_0_div_2_img_13_Template, 1, 2, "img", 20);
|
|
22853
23111
|
i0.ɵɵtemplate(14, RecipeDetailsComponent_div_0_div_2_youtube_player_14_Template, 1, 4, "youtube-player", 21);
|
|
22854
23112
|
i0.ɵɵtemplate(15, RecipeDetailsComponent_div_0_div_2_div_15_Template, 2, 1, "div", 22);
|
|
22855
23113
|
i0.ɵɵelementEnd();
|
|
@@ -22863,28 +23121,28 @@ function RecipeDetailsComponent_div_0_div_2_Template(rf, ctx) { if (rf & 1) {
|
|
|
22863
23121
|
i0.ɵɵelementStart(22, "div", 29);
|
|
22864
23122
|
i0.ɵɵelementStart(23, "button", 30);
|
|
22865
23123
|
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_2_Template_button_click_23_listener() { i0.ɵɵrestoreView(_r57); const ctx_r60 = i0.ɵɵnextContext(2); return ctx_r60.close(); });
|
|
22866
|
-
i0.ɵɵelement(24, "img",
|
|
23124
|
+
i0.ɵɵelement(24, "img", 17);
|
|
22867
23125
|
i0.ɵɵelementEnd();
|
|
22868
23126
|
i0.ɵɵelementEnd();
|
|
22869
|
-
i0.ɵɵelementStart(25, "span",
|
|
23127
|
+
i0.ɵɵelementStart(25, "span", 31);
|
|
22870
23128
|
i0.ɵɵtext(26);
|
|
22871
23129
|
i0.ɵɵelementEnd();
|
|
22872
|
-
i0.ɵɵelementStart(27, "div",
|
|
23130
|
+
i0.ɵɵelementStart(27, "div", 32);
|
|
22873
23131
|
i0.ɵɵtemplate(28, RecipeDetailsComponent_div_0_div_2_ng_miam_like_button_28_Template, 1, 2, "ng-miam-like-button", 18);
|
|
22874
|
-
i0.ɵɵelementStart(29, "div",
|
|
22875
|
-
i0.ɵɵelementStart(30, "button",
|
|
23132
|
+
i0.ɵɵelementStart(29, "div", 33);
|
|
23133
|
+
i0.ɵɵelementStart(30, "button", 34);
|
|
22876
23134
|
i0.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_2_Template_button_click_30_listener() { i0.ɵɵrestoreView(_r57); const ctx_r61 = i0.ɵɵnextContext(2); return ctx_r61.close(); });
|
|
22877
|
-
i0.ɵɵelement(31, "img",
|
|
23135
|
+
i0.ɵɵelement(31, "img", 35);
|
|
22878
23136
|
i0.ɵɵelementEnd();
|
|
22879
23137
|
i0.ɵɵelementEnd();
|
|
22880
23138
|
i0.ɵɵelementEnd();
|
|
22881
23139
|
i0.ɵɵelementEnd();
|
|
22882
|
-
i0.ɵɵtemplate(32, RecipeDetailsComponent_div_0_div_2_ng_miam_store_locator_link_32_Template, 1, 0, "ng-miam-store-locator-link",
|
|
23140
|
+
i0.ɵɵtemplate(32, RecipeDetailsComponent_div_0_div_2_ng_miam_store_locator_link_32_Template, 1, 0, "ng-miam-store-locator-link", 36);
|
|
22883
23141
|
i0.ɵɵelementEnd();
|
|
22884
|
-
i0.ɵɵtemplate(33, RecipeDetailsComponent_div_0_div_2_ng_container_33_Template, 4, 5, "ng-container",
|
|
22885
|
-
i0.ɵɵtemplate(34, RecipeDetailsComponent_div_0_div_2_ng_container_34_Template, 3, 2, "ng-container",
|
|
22886
|
-
i0.ɵɵtemplate(35, RecipeDetailsComponent_div_0_div_2_div_35_Template, 4, 3, "div",
|
|
22887
|
-
i0.ɵɵtemplate(36, RecipeDetailsComponent_div_0_div_2_div_36_Template, 4, 5, "div",
|
|
23142
|
+
i0.ɵɵtemplate(33, RecipeDetailsComponent_div_0_div_2_ng_container_33_Template, 4, 5, "ng-container", 36);
|
|
23143
|
+
i0.ɵɵtemplate(34, RecipeDetailsComponent_div_0_div_2_ng_container_34_Template, 3, 2, "ng-container", 36);
|
|
23144
|
+
i0.ɵɵtemplate(35, RecipeDetailsComponent_div_0_div_2_div_35_Template, 4, 3, "div", 37);
|
|
23145
|
+
i0.ɵɵtemplate(36, RecipeDetailsComponent_div_0_div_2_div_36_Template, 4, 5, "div", 38);
|
|
22888
23146
|
i0.ɵɵelementEnd();
|
|
22889
23147
|
} if (rf & 2) {
|
|
22890
23148
|
const ctx_r5 = i0.ɵɵnextContext(2);
|
|
@@ -22936,7 +23194,7 @@ function RecipeDetailsComponent_div_0_Template(rf, ctx) { if (rf & 1) {
|
|
|
22936
23194
|
} }
|
|
22937
23195
|
function RecipeDetailsComponent_ng_miam_recipe_addon_1_Template(rf, ctx) { if (rf & 1) {
|
|
22938
23196
|
const _r63 = i0.ɵɵgetCurrentView();
|
|
22939
|
-
i0.ɵɵelementStart(0, "ng-miam-recipe-addon",
|
|
23197
|
+
i0.ɵɵelementStart(0, "ng-miam-recipe-addon", 100);
|
|
22940
23198
|
i0.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_1_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0.ɵɵrestoreView(_r63); const ctx_r62 = i0.ɵɵnextContext(); return ctx_r62.toggleAddon(); });
|
|
22941
23199
|
i0.ɵɵelementEnd();
|
|
22942
23200
|
} if (rf & 2) {
|
|
@@ -22945,7 +23203,7 @@ function RecipeDetailsComponent_ng_miam_recipe_addon_1_Template(rf, ctx) { if (r
|
|
|
22945
23203
|
} }
|
|
22946
23204
|
function RecipeDetailsComponent_ng_miam_replace_item_2_Template(rf, ctx) { if (rf & 1) {
|
|
22947
23205
|
const _r65 = i0.ɵɵgetCurrentView();
|
|
22948
|
-
i0.ɵɵelementStart(0, "ng-miam-replace-item",
|
|
23206
|
+
i0.ɵɵelementStart(0, "ng-miam-replace-item", 101);
|
|
22949
23207
|
i0.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_2_Template_ng_miam_replace_item_selected_0_listener() { i0.ɵɵrestoreView(_r65); const ctx_r64 = i0.ɵɵnextContext(); return ctx_r64.recipeDetailsService.basketEntryToReplace = null; });
|
|
22950
23208
|
i0.ɵɵelementEnd();
|
|
22951
23209
|
} if (rf & 2) {
|
|
@@ -22954,7 +23212,7 @@ function RecipeDetailsComponent_ng_miam_replace_item_2_Template(rf, ctx) { if (r
|
|
|
22954
23212
|
} }
|
|
22955
23213
|
function RecipeDetailsComponent_ng_miam_last_order_modal_3_Template(rf, ctx) { if (rf & 1) {
|
|
22956
23214
|
const _r67 = i0.ɵɵgetCurrentView();
|
|
22957
|
-
i0.ɵɵelementStart(0, "ng-miam-last-order-modal",
|
|
23215
|
+
i0.ɵɵelementStart(0, "ng-miam-last-order-modal", 102);
|
|
22958
23216
|
i0.ɵɵlistener("close", function RecipeDetailsComponent_ng_miam_last_order_modal_3_Template_ng_miam_last_order_modal_close_0_listener() { i0.ɵɵrestoreView(_r67); const ctx_r66 = i0.ɵɵnextContext(); return ctx_r66.toggleLastOrderModal(); })("submit", function RecipeDetailsComponent_ng_miam_last_order_modal_3_Template_ng_miam_last_order_modal_submit_0_listener() { i0.ɵɵrestoreView(_r67); const ctx_r68 = i0.ɵɵnextContext(); return ctx_r68.closeLastOrderModal(ctx_r68.eventTrace); });
|
|
22959
23217
|
i0.ɵɵelementEnd();
|
|
22960
23218
|
} if (rf & 2) {
|
|
@@ -23027,9 +23285,6 @@ class RecipeDetailsComponent extends EventTracerComponent {
|
|
|
23027
23285
|
this.initialTabIndex = 1;
|
|
23028
23286
|
}
|
|
23029
23287
|
this.subscriptions.push(this.storeLocatorService.storeLocatorOpened$.subscribe(storeLocatorOpened => {
|
|
23030
|
-
if (this.showStoreSelector !== storeLocatorOpened && !storeLocatorOpened && this.isRecipeFetched) {
|
|
23031
|
-
this.sendPageViewEvent();
|
|
23032
|
-
}
|
|
23033
23288
|
this.showStoreSelector = storeLocatorOpened;
|
|
23034
23289
|
this.cdr.detectChanges();
|
|
23035
23290
|
}), this.recipeDetailsService.productsLoading$.pipe(map((productsLoading) => !productsLoading && !this.recipeDetailsService.onlyShowPreparation)).subscribe((show) => {
|
|
@@ -23042,12 +23297,9 @@ class RecipeDetailsComponent extends EventTracerComponent {
|
|
|
23042
23297
|
}), this.contextService.isSmallScreen$.subscribe(isSmall => {
|
|
23043
23298
|
this.isMobile = isSmall;
|
|
23044
23299
|
this.cdr.detectChanges();
|
|
23045
|
-
}), this.recipesService.
|
|
23046
|
-
this.
|
|
23047
|
-
this.
|
|
23048
|
-
this.initialTabIndex = result.initialTabIndex;
|
|
23049
|
-
this.fetchRecipe(result.recipeId);
|
|
23050
|
-
this.recipeDetailsService.initDefaultState(true);
|
|
23300
|
+
}), this.recipesService.recipeDetailsTabIndex$.pipe(skipWhile(result => result === null || result === undefined)).subscribe(result => {
|
|
23301
|
+
this.activeTabIndex = result;
|
|
23302
|
+
this.initialTabIndex = result;
|
|
23051
23303
|
this.cdr.detectChanges();
|
|
23052
23304
|
}), merge(this.recipeDetailsService.recipeLoading$, this.recipeDetailsService.basketEntryToReplace$, this.recipeDetailsService.updateFooterDisplay$, this.recipeDetailsService.productsByCategory$, this.recipeDetailsService.productsLoading$, this.recipeDetailsService.allIngredientsToBasketLoading$, this.recipeDetailsService.ingredientToBasketLoading$, this.posService.pos$).subscribe(() => {
|
|
23053
23305
|
this.cdr.detectChanges();
|
|
@@ -23086,7 +23338,7 @@ class RecipeDetailsComponent extends EventTracerComponent {
|
|
|
23086
23338
|
this.recipeDetailsService.allIngredientsToBasketLoading = false;
|
|
23087
23339
|
}
|
|
23088
23340
|
ngOnDestroy() {
|
|
23089
|
-
this.recipeDetailsService.
|
|
23341
|
+
this.recipeDetailsService.pageviewEventWasSent = false;
|
|
23090
23342
|
this.subscriptions.forEach(sub => sub === null || sub === void 0 ? void 0 : sub.unsubscribe());
|
|
23091
23343
|
if (this.contextService.seoEnabled) {
|
|
23092
23344
|
this.seoService.removeSEOData();
|
|
@@ -23106,7 +23358,7 @@ class RecipeDetailsComponent extends EventTracerComponent {
|
|
|
23106
23358
|
}
|
|
23107
23359
|
this.recipeDetailsService.recipe.modifiedGuests = +this.guestNumber || +result.guests;
|
|
23108
23360
|
this.recipeDetailsService.getProducts(true);
|
|
23109
|
-
this.
|
|
23361
|
+
this.sendPageviewEvent();
|
|
23110
23362
|
this.setupYoutubePlayer();
|
|
23111
23363
|
setTimeout(() => {
|
|
23112
23364
|
this.initScrollListenerOnTitle();
|
|
@@ -23222,7 +23474,7 @@ class RecipeDetailsComponent extends EventTracerComponent {
|
|
|
23222
23474
|
this.onClose(openBasket);
|
|
23223
23475
|
}
|
|
23224
23476
|
onClose(openBasket = false) {
|
|
23225
|
-
this.recipeDetailsService.
|
|
23477
|
+
this.recipeDetailsService.pageviewEventWasSent = false;
|
|
23226
23478
|
this.storeLocatorService.closeStoreLocator();
|
|
23227
23479
|
this.activeTabIndex = this.initialTabIndex;
|
|
23228
23480
|
if (openBasket) {
|
|
@@ -23237,9 +23489,9 @@ class RecipeDetailsComponent extends EventTracerComponent {
|
|
|
23237
23489
|
print() {
|
|
23238
23490
|
window.print();
|
|
23239
23491
|
}
|
|
23240
|
-
|
|
23241
|
-
if (!this.recipeDetailsService.
|
|
23242
|
-
this.recipeDetailsService.
|
|
23492
|
+
sendPageviewEvent() {
|
|
23493
|
+
if (!this.recipeDetailsService.pageviewEventWasSent) {
|
|
23494
|
+
this.recipeDetailsService.pageviewEventWasSent = true;
|
|
23243
23495
|
this.pageview();
|
|
23244
23496
|
}
|
|
23245
23497
|
}
|
|
@@ -23338,7 +23590,7 @@ RecipeDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsCompo
|
|
|
23338
23590
|
}
|
|
23339
23591
|
else {
|
|
23340
23592
|
i18n_22 = $localize `:␟ddc8d487566c6a50356eb269a281761ef8ccffa8␟4122997114884311871:dans mon panier`;
|
|
23341
|
-
} return [["class", "miam-recipe-details", 3, "hidden", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "originTrace", "selected", 4, "ngIf"], [3, "display", "inBasket", "orderHistoryDate", "close", "submit", 4, "ngIf"], [1, "miam-recipe-details"], ["class", "miam-ds-loader miam-recipe-details__loader", 4, "ngIf"], ["class", "miam-recipe-details__container", 4, "ngIf"], [1, "miam-ds-loader", "miam-recipe-details__loader"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__picture"], ["topContainerImg", ""], [1, "miam-recipe-details__banner_buttons"], [1, "miam-recipe-details__top-button-wrapper"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "
|
|
23593
|
+
} return [["class", "miam-recipe-details", 3, "hidden", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "originTrace", "selected", 4, "ngIf"], [3, "display", "inBasket", "orderHistoryDate", "close", "submit", 4, "ngIf"], [1, "miam-recipe-details"], ["class", "miam-ds-loader miam-recipe-details__loader", "role", "status", "aria-label", "Chargement en cours", 4, "ngIf"], ["class", "miam-recipe-details__container", 4, "ngIf"], ["role", "status", "aria-label", "Chargement en cours", 1, "miam-ds-loader", "miam-recipe-details__loader"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__picture"], ["topContainerImg", ""], [1, "miam-recipe-details__banner_buttons"], [1, "miam-recipe-details__top-button-wrapper"], ["aria-label", "Fermer", 1, "miam-recipe-details__close-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__mobile-header-buttons"], ["aria-label", "Retour", 1, "miam-recipe-details__back-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "", "aria-hidden", "true", 1, "miam-recipe-details__back-icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "debounceTime", "disable", "valueChange"], ["class", "miam-recipe-details__picture-img", 3, "src", "error", 4, "ngIf"], ["title", "Vid\u00E9o de la recette", 3, "videoId", "width", "height", "playerVars", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__sponsor"], [3, "hasStorytelling", "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__sponsor-separator"], ["class", "miam-recipe-details__last-order", 3, "disabled", 4, "ngIf"], [1, "miam-recipe-details__sticky-header"], ["ngMiamReachTop", "", 1, "miam-recipe-details__title-container", 3, "stickyByDefault"], [1, "miam-recipe-details__back-button-mobile-container"], ["aria-label", "Retour", 1, "miam-recipe-details__back-button", "miam-ds-button", "small", "square", "ghost", 3, "click"], ["role", "heading", "aria-level", "1", 1, "miam-recipe-details__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-recipe-details__actions__icon"], [1, "miam-recipe-details__hideable-actions"], ["aria-label", "Fermer", 1, "miam-recipe-details__close-button", "miam-ds-button", "square", "ghost", 3, "click"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-recipe-details__close-icon"], [4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], ["class", "miam-recipe-details__footer", 3, "center", 4, "ngIf"], [1, "miam-recipe-details__like-button", 3, "recipe", "originTrace"], [1, "miam-recipe-details__picture-img", 3, "src", "error"], ["title", "Vid\u00E9o de la recette", 3, "videoId", "width", "height", "playerVars"], [1, "miam-recipe-details__picture__filigrane"], ["alt", "", "aria-hidden", "true", 3, "src"], [3, "hasStorytelling", "recipe", "showAddon"], [1, "miam-recipe-details__last-order"], ["aria-label", "Afficher les d\u00E9tails de la commande pr\u00E9c\u00E9dente", 1, "miam-recipe-details__last-order-badge", "miam-ds-badge", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Infos_Blue.svg", "alt", "", "aria-hidden", "true"], [1, "miam-recipe-details__last-order-badge-texts"], i18n_1, [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], ["tabs", i18n_3, 3, "selectedTabIndex", "selectedTabIndexChange"], ["class", "miam-recipe-details__products-picker", 3, "originTrace", "closeModal", "guestsChange", 4, "ngIf"], [3, "invalidPos", "posSelected", 4, "ngIf"], [1, "miam-recipe-details__products-picker", 3, "originTrace", "closeModal", "guestsChange"], [3, "invalidPos", "posSelected"], [1, "miam-recipe-details__preparation-tab"], [3, "ingredients"], [3, "recipe"], ["class", "miam-recipe-details__order-again", 4, "ngIf"], [1, "miam-recipe-details__order-again"], [1, "miam-recipe-details__order-again-texts"], [1, "miam-ds-text", "size-l", "weight-xxl"], i18n_6, [1, "miam-recipe-details__order-again-text", "miam-ds-text", "size-m"], i18n_8, [1, "miam-recipe-details__order-again-cta", "miam-ds-button", "secondary", 3, "disabled", "click"], ["class", "miam-ds-loader primary", "role", "status", "aria-label", "Chargement en cours", 4, "ngIf", "ngIfElse"], ["showIcon", ""], i18n_10, ["role", "status", "aria-label", "Chargement en cours", 1, "miam-ds-loader", "primary"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket_Blue.svg"], [1, "miam-recipe-details__footer"], ["class", "miam-recipe-details__price", 4, "ngIf"], ["class", "miam-recipe-details__recipe-is-in-basket-cta-container", 4, "ngIf"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", "aria-label", "Ajouter tous les ingr\u00E9dients au panier", 3, "click", 4, "ngIf"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", "aria-label", "Ajout en cours", 4, "ngIf"], ["aria-label", "Ajouter tous les ingr\u00E9dients au panier", 1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary", 3, "click"], ["alt", "", "aria-hidden", "true", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], [1, "miam-recipe-details__add-to-basket-cta__text"], i18n_12, [1, "miam-recipe-details__add-to-basket-remaining-price"], ["role", "status", "aria-label", "Chargement en cours", 1, "miam-ds-loader"], i18n_14, i18n_16, ["aria-label", "Ajout en cours", 1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary"], [1, "miam-recipe-details__recipe-is-in-basket-cta-container"], [1, "miam-ds-button", "secondary", "miam-recipe-details__continue-shopping-cta", 3, "click"], i18n_18, ["class", "miam-ds-button primary miam-recipe-details__see-basket-cta", 3, "click", 4, "ngIf"], [1, "miam-ds-button", "primary", "miam-recipe-details__see-basket-cta", 3, "click"], [1, "miam-recipe-details__see-basket__text"], i18n_20, [3, "recipeId", "serves", "fetchPricingOnScroll"], [1, "miam-recipe-details__price"], [1, "miam-recipe-details__price-label", "miam-ds-text", "size-l", "weight-xxl"], [3, "price"], [1, "miam-recipe-details__price-in-basket-label", "miam-ds-text", "size-xs"], i18n_22, [3, "recipe", "hideAddon"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "originTrace", "selected"], [3, "display", "inBasket", "orderHistoryDate", "close", "submit"]]; }, template: function RecipeDetailsComponent_Template(rf, ctx) { if (rf & 1) {
|
|
23342
23594
|
i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 3, 4, "div", 0);
|
|
23343
23595
|
i0.ɵɵtemplate(1, RecipeDetailsComponent_ng_miam_recipe_addon_1_Template, 1, 1, "ng-miam-recipe-addon", 1);
|
|
23344
23596
|
i0.ɵɵtemplate(2, RecipeDetailsComponent_ng_miam_replace_item_2_Template, 1, 6, "ng-miam-replace-item", 2);
|
|
@@ -24348,6 +24600,11 @@ class RecipeModalComponent {
|
|
|
24348
24600
|
else {
|
|
24349
24601
|
if (!this.showStoreLocator) {
|
|
24350
24602
|
this.storeLocatorService.closeModalOnSelected = false; // reset variable even if storeLocator was closed early
|
|
24603
|
+
// If the user closes the store locator without selecting a POS, close the modal
|
|
24604
|
+
if (this.storeLocatorService.closeModalOnCancel) {
|
|
24605
|
+
this.storeLocatorService.closeModalOnCancel = false;
|
|
24606
|
+
this.hide();
|
|
24607
|
+
}
|
|
24351
24608
|
}
|
|
24352
24609
|
this.cdr.detectChanges(); // hide does a detectChanges so we avoid a double change
|
|
24353
24610
|
}
|
|
@@ -24418,7 +24675,7 @@ class RecipeModalComponent {
|
|
|
24418
24675
|
}
|
|
24419
24676
|
hide(isDetail = false) {
|
|
24420
24677
|
if (this.canCloseModal) {
|
|
24421
|
-
this.recipeDetailsService.
|
|
24678
|
+
this.recipeDetailsService.pageviewEventWasSent = false;
|
|
24422
24679
|
this.recipe = null; // trigger again a change on recipe if we re-open the view
|
|
24423
24680
|
if (!isDetail) {
|
|
24424
24681
|
this.show = false;
|
|
@@ -24616,7 +24873,7 @@ function NoSupplierOnboardingComponent_button_24_Template(rf, ctx) { if (rf & 1)
|
|
|
24616
24873
|
const _r13 = i0.ɵɵgetCurrentView();
|
|
24617
24874
|
i0.ɵɵelementStart(0, "button", 33);
|
|
24618
24875
|
i0.ɵɵlistener("click", function NoSupplierOnboardingComponent_button_24_Template_button_click_0_listener() { i0.ɵɵrestoreView(_r13); const ctx_r12 = i0.ɵɵnextContext(); return ctx_r12.nextStep(); });
|
|
24619
|
-
i0.ɵɵelement(1, "img",
|
|
24876
|
+
i0.ɵɵelement(1, "img", 32);
|
|
24620
24877
|
i0.ɵɵelementEnd();
|
|
24621
24878
|
} }
|
|
24622
24879
|
class NoSupplierOnboardingComponent extends EventTracerComponent {
|
|
@@ -24675,7 +24932,7 @@ class NoSupplierOnboardingComponent extends EventTracerComponent {
|
|
|
24675
24932
|
}
|
|
24676
24933
|
}
|
|
24677
24934
|
NoSupplierOnboardingComponent.ɵfac = function NoSupplierOnboardingComponent_Factory(t) { return new (t || NoSupplierOnboardingComponent)(i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(StoreLocatorService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
|
|
24678
|
-
NoSupplierOnboardingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NoSupplierOnboardingComponent, selectors: [["ng-miam-no-supplier-onboarding"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 25, vars:
|
|
24935
|
+
NoSupplierOnboardingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NoSupplierOnboardingComponent, selectors: [["ng-miam-no-supplier-onboarding"]], features: [i0.ɵɵInheritDefinitionFeature], decls: 25, vars: 24, consts: function () { let i18n_0; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
24679
24936
|
const MSG_EXTERNAL_173493510918998202$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS_1 = goog.getMsg("Je choisis mon magasin ou mon drive");
|
|
24680
24937
|
i18n_0 = MSG_EXTERNAL_173493510918998202$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS_1;
|
|
24681
24938
|
}
|
|
@@ -24706,11 +24963,11 @@ NoSupplierOnboardingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NoSupplierO
|
|
|
24706
24963
|
else {
|
|
24707
24964
|
i18n_8 = $localize `:␟abd5f3eb24ee0eed0664560d152c9a0368cdb2ff␟8193169679336413146:dès à présent les ingrédients de vos recettes en cliquant sur le bouton`;
|
|
24708
24965
|
} let i18n_10; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
24709
|
-
const
|
|
24710
|
-
i18n_10 =
|
|
24966
|
+
const MSG_EXTERNAL_4989457896049213714$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__11 = goog.getMsg("\u201CAjouter au panier\u201D");
|
|
24967
|
+
i18n_10 = MSG_EXTERNAL_4989457896049213714$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__11;
|
|
24711
24968
|
}
|
|
24712
24969
|
else {
|
|
24713
|
-
i18n_10 = $localize `:␟
|
|
24970
|
+
i18n_10 = $localize `:␟44ab3c897b11ad9bb47769e66a067cbe3d2439bd␟4989457896049213714:“Ajouter au panier”`;
|
|
24714
24971
|
} let i18n_12; if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
24715
24972
|
const MSG_EXTERNAL_6132488159725428336$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__13 = goog.getMsg(" Choisissez votre drive ");
|
|
24716
24973
|
i18n_12 = MSG_EXTERNAL_6132488159725428336$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__13;
|
|
@@ -24747,7 +25004,7 @@ NoSupplierOnboardingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NoSupplierO
|
|
|
24747
25004
|
}
|
|
24748
25005
|
else {
|
|
24749
25006
|
i18n_22 = $localize `:␟21f106b52a056618e02cbe6e46f923033841b836␟3034721524441098149: Accédez à votre panier et passez votre commande dans le magasin sélectionné. `;
|
|
24750
|
-
} return [["modalStyle", "center", "confirmButtonText", i18n_0, 1, "miam-no-supplier-onboarding-modal", 3, "noHeaderMode", "display", "confirm", "close"], [1, "miam-no-supplier-onboarding"], [1, "miam-no-supplier-onboarding__header"], [1, "miam-no-supplier-onboarding__badge", "miam-ds-badge", "size-l"], i18n_2, [1, "miam-no-supplier-onboarding__close", "miam-ds-button", "square", "ghost", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "
|
|
25007
|
+
} return [["modalStyle", "center", "confirmButtonText", i18n_0, 1, "miam-no-supplier-onboarding-modal", 3, "noHeaderMode", "display", "confirm", "close"], [1, "miam-no-supplier-onboarding"], [1, "miam-no-supplier-onboarding__header"], [1, "miam-no-supplier-onboarding__badge", "miam-ds-badge", "size-l"], i18n_2, ["aria-label", "Fermer", 1, "miam-no-supplier-onboarding__close", "miam-ds-button", "square", "ghost", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "", "aria-hidden", "true"], [1, "miam-no-supplier-onboarding__body"], ["class", "miam-no-supplier-onboarding__title miam-ds-text size-xl weight-xl", 4, "ngIf"], ["class", "miam-no-supplier-onboarding__text miam-ds-text size-s weight-m", 4, "ngIf"], [1, "miam-no-supplier-onboarding__img", 3, "src", "alt"], ["role", "tablist", "aria-label", "\u00C9tapes d'onboarding", 1, "miam-no-supplier-onboarding__track"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/8.7/BulletPoint.svg", "alt", "", "aria-hidden", "true", 1, "step1"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/8.7/BulletPoint.svg", "alt", "", "aria-hidden", "true", 1, "step2"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/8.7/BulletPoint.svg", "alt", "", "aria-hidden", "true", 1, "step3"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/8.7/BulletPoint.svg", "alt", "", "aria-hidden", "true", 1, "step4"], ["class", "miam-ds-button primary ghost square miam-no-supplier-onboarding__previous", "aria-label", "\u00C9tape pr\u00E9c\u00E9dente", 3, "click", 4, "ngIf"], ["class", "miam-ds-button primary ghost square miam-no-supplier-onboarding__next", "aria-label", "\u00C9tape suivante", 3, "click", 4, "ngIf"], [1, "miam-no-supplier-onboarding__title", "miam-ds-text", "size-xl", "weight-xl"], i18n_4, [1, "miam-no-supplier-onboarding__text", "miam-ds-text", "size-s", "weight-m"], [1, "miam-no-supplier-onboarding__bold"], i18n_6, i18n_8, i18n_10, i18n_12, i18n_14, i18n_16, i18n_18, i18n_20, i18n_22, ["aria-label", "\u00C9tape pr\u00E9c\u00E9dente", 1, "miam-ds-button", "primary", "ghost", "square", "miam-no-supplier-onboarding__previous", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ArrowLeft_dark.svg", "alt", "", "aria-hidden", "true"], ["aria-label", "\u00C9tape suivante", 1, "miam-ds-button", "primary", "ghost", "square", "miam-no-supplier-onboarding__next", 3, "click"]]; }, template: function NoSupplierOnboardingComponent_Template(rf, ctx) { if (rf & 1) {
|
|
24751
25008
|
i0.ɵɵelementStart(0, "ng-miam-modal", 0);
|
|
24752
25009
|
i0.ɵɵlistener("confirm", function NoSupplierOnboardingComponent_Template_ng_miam_modal_confirm_0_listener() { return ctx.onConfirm(); })("close", function NoSupplierOnboardingComponent_Template_ng_miam_modal_close_0_listener() { return ctx.onClose(); });
|
|
24753
25010
|
i0.ɵɵelementStart(1, "div", 1);
|
|
@@ -24804,19 +25061,15 @@ NoSupplierOnboardingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: NoSupplierO
|
|
|
24804
25061
|
i0.ɵɵadvance(1);
|
|
24805
25062
|
i0.ɵɵproperty("ngIf", ctx.step === 4);
|
|
24806
25063
|
i0.ɵɵadvance(1);
|
|
24807
|
-
i0.ɵɵproperty("src", ctx.pictures[ctx.step - 1], i0.ɵɵsanitizeUrl);
|
|
25064
|
+
i0.ɵɵproperty("src", ctx.pictures[ctx.step - 1], i0.ɵɵsanitizeUrl)("alt", "Illustration \u00E9tape " + ctx.step);
|
|
24808
25065
|
i0.ɵɵadvance(2);
|
|
24809
25066
|
i0.ɵɵclassMap(ctx.step === 1 ? "active" : "");
|
|
24810
|
-
i0.ɵɵproperty("alt", ctx.step === 1 ? "step 1" : "");
|
|
24811
25067
|
i0.ɵɵadvance(1);
|
|
24812
25068
|
i0.ɵɵclassMap(ctx.step === 2 ? "active" : "");
|
|
24813
|
-
i0.ɵɵproperty("alt", ctx.step === 2 ? "step 2" : "");
|
|
24814
25069
|
i0.ɵɵadvance(1);
|
|
24815
25070
|
i0.ɵɵclassMap(ctx.step === 3 ? "active" : "");
|
|
24816
|
-
i0.ɵɵproperty("alt", ctx.step === 3 ? "step 3" : "");
|
|
24817
25071
|
i0.ɵɵadvance(1);
|
|
24818
25072
|
i0.ɵɵclassMap(ctx.step === 4 ? "active" : "");
|
|
24819
|
-
i0.ɵɵproperty("alt", ctx.step === 4 ? "step 4" : "");
|
|
24820
25073
|
i0.ɵɵadvance(1);
|
|
24821
25074
|
i0.ɵɵproperty("ngIf", ctx.step > 1);
|
|
24822
25075
|
i0.ɵɵadvance(1);
|
|
@@ -25057,6 +25310,7 @@ NgMiamModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
25057
25310
|
BasketsService,
|
|
25058
25311
|
BasketEntriesService,
|
|
25059
25312
|
ItemsService,
|
|
25313
|
+
BasketRecipeCleanupService,
|
|
25060
25314
|
CatalogSettingsService,
|
|
25061
25315
|
ListScanService,
|
|
25062
25316
|
PreferencesService,
|
|
@@ -25096,6 +25350,7 @@ NgMiamModule.ɵinj = i0.ɵɵdefineInjector({ providers: [
|
|
|
25096
25350
|
BasketsService,
|
|
25097
25351
|
BasketEntriesService,
|
|
25098
25352
|
ItemsService,
|
|
25353
|
+
BasketRecipeCleanupService,
|
|
25099
25354
|
CatalogSettingsService,
|
|
25100
25355
|
ListScanService,
|
|
25101
25356
|
PreferencesService,
|