ng-miam 9.3.16 → 9.3.18
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 +214 -109
- 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/counter-input/counter-input.component.js +2 -2
- package/esm2015/lib/_components/guests-dropdown/guests-dropdown.component.js +2 -2
- package/esm2015/lib/_components/promotion-badge/promotion-badge.component.js +30 -19
- package/esm2015/lib/_services/planner-ssr.service.js +23 -4
- package/esm2015/lib/_services/recipes.service.js +1 -1
- package/esm2015/lib/_types/recipe-filters.js +1 -1
- package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +2 -2
- package/esm2015/lib/_web-components/recipe-cards/recipe-card/recipe-card.component.js +2 -2
- package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +74 -47
- package/esm2015/lib/_web-components/recipe-catalog/catalog-toolbar/catalog-toolbar.component.js +47 -9
- package/esm2015/lib/environments/environment.js +3 -3
- package/esm2015/lib/environments/environment.prod.js +3 -3
- package/esm2015/lib/environments/version.js +2 -2
- package/fesm2015/ng-miam.js +184 -92
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_components/promotion-badge/promotion-badge.component.d.ts +9 -4
- package/lib/_components/promotion-badge/promotion-badge.component.d.ts.map +1 -1
- package/lib/_services/planner-ssr.service.d.ts +1 -0
- package/lib/_services/planner-ssr.service.d.ts.map +1 -1
- package/lib/_types/recipe-filters.d.ts +1 -0
- package/lib/_types/recipe-filters.d.ts.map +1 -1
- package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts +1 -0
- package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-catalog/catalog-toolbar/catalog-toolbar.component.d.ts +6 -2
- package/lib/_web-components/recipe-catalog/catalog-toolbar/catalog-toolbar.component.d.ts.map +1 -1
- package/lib/environments/version.d.ts +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -1427,7 +1427,7 @@
|
|
|
1427
1427
|
var _t = void 0;
|
|
1428
1428
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.counterInput = _t.first);
|
|
1429
1429
|
}
|
|
1430
|
-
}, inputs: { floating: "floating", biColor: "biColor", value: "value", minRange: "minRange", maxRange: "maxRange", disable: "disable", minusLoading: "minusLoading", plusLoading: "plusLoading", debounceTime: "debounceTime" }, outputs: { valueChange: "valueChange" }, features: [i0__namespace.ɵɵ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/
|
|
1430
|
+
}, inputs: { floating: "floating", biColor: "biColor", value: "value", minRange: "minRange", maxRange: "maxRange", disable: "disable", minusLoading: "minusLoading", plusLoading: "plusLoading", debounceTime: "debounceTime" }, outputs: { valueChange: "valueChange" }, features: [i0__namespace.ɵɵ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/single-user.svg", "alt", "", "aria-hidden", "true", 1, "miam-counter-input__people-icon"]], template: function CounterInputComponent_Template(rf, ctx) {
|
|
1431
1431
|
if (rf & 1) {
|
|
1432
1432
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
1433
1433
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
@@ -1574,7 +1574,7 @@
|
|
|
1574
1574
|
if (rf & 1) {
|
|
1575
1575
|
i0__namespace.ɵɵlistener("click", function GuestsDropdownComponent_click_HostBindingHandler($event) { return ctx.onclick($event); }, false, i0__namespace.ɵɵresolveDocument);
|
|
1576
1576
|
}
|
|
1577
|
-
}, 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/
|
|
1577
|
+
}, 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/single-user.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) {
|
|
1578
1578
|
if (rf & 1) {
|
|
1579
1579
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
1580
1580
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
@@ -1832,9 +1832,9 @@
|
|
|
1832
1832
|
env: 'prod',
|
|
1833
1833
|
miamAPI: 'https://api.miam.tech',
|
|
1834
1834
|
miamWeb: 'https://miam.tech',
|
|
1835
|
-
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.
|
|
1835
|
+
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.8/dist',
|
|
1836
1836
|
mealzSsrApi: 'https://ssr-api.mealz.ai',
|
|
1837
|
-
mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10.
|
|
1837
|
+
mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10.5',
|
|
1838
1838
|
lang: 'fr',
|
|
1839
1839
|
analyticsEnabled: true // Only used in DEV mode
|
|
1840
1840
|
};
|
|
@@ -3652,7 +3652,7 @@
|
|
|
3652
3652
|
EventJourney["EMPTY"] = "";
|
|
3653
3653
|
})(EventJourney || (EventJourney = {}));
|
|
3654
3654
|
|
|
3655
|
-
var VERSION = "9.3.
|
|
3655
|
+
var VERSION = "9.3.18"; // TODO: replace by ##VERSION## and update it in the CI/CD
|
|
3656
3656
|
|
|
3657
3657
|
var ContextRegistryService = /** @class */ (function () {
|
|
3658
3658
|
function ContextRegistryService() {
|
|
@@ -8240,6 +8240,7 @@
|
|
|
8240
8240
|
})();
|
|
8241
8241
|
|
|
8242
8242
|
var MEALZ_SSR_API = environment$1.mealzSsrApi + "/v2";
|
|
8243
|
+
var PLANNER_ENTRY_AB_STORAGE_KEY = '_miam/ab/planner-entry';
|
|
8243
8244
|
var PlannerSSRService = /** @class */ (function () {
|
|
8244
8245
|
function PlannerSSRService(http, suppliersService, userService, posService, basketsService) {
|
|
8245
8246
|
this.http = http;
|
|
@@ -8320,7 +8321,8 @@
|
|
|
8320
8321
|
var _this = this;
|
|
8321
8322
|
this.fetchingHTMLLoader$.next(true);
|
|
8322
8323
|
this.resetLoadingStates();
|
|
8323
|
-
|
|
8324
|
+
var variant = this.getPlannerEntryVariant();
|
|
8325
|
+
return this.makeSSRRequest('planner/entry', { variant: variant }).pipe(operators.switchMap(function (html) {
|
|
8324
8326
|
_this.extractAndLoadAssets(html);
|
|
8325
8327
|
return _this.loadStyles(_this.plannerUrl).pipe(operators.switchMap(function () { return _this.waitForAssetsLoaded(); }), operators.map(function () { return html; }));
|
|
8326
8328
|
}), operators.tap(function () { return _this.fetchingHTMLLoader$.next(false); }));
|
|
@@ -8491,12 +8493,31 @@
|
|
|
8491
8493
|
PlannerSSRService.prototype.isNotAuthenticated = function () {
|
|
8492
8494
|
return !localStorage.getItem('_miam/userId') && !localStorage.getItem('_miam/authlessId');
|
|
8493
8495
|
};
|
|
8494
|
-
PlannerSSRService.prototype.
|
|
8496
|
+
PlannerSSRService.prototype.getPlannerEntryVariant = function () {
|
|
8497
|
+
var variant = localStorage.getItem(PLANNER_ENTRY_AB_STORAGE_KEY);
|
|
8498
|
+
if (variant === '2' || variant === '3') {
|
|
8499
|
+
return variant;
|
|
8500
|
+
}
|
|
8501
|
+
return '1';
|
|
8502
|
+
};
|
|
8503
|
+
PlannerSSRService.prototype.makeSSRRequest = function (endpoint, queryParams) {
|
|
8495
8504
|
var _this = this;
|
|
8505
|
+
if (queryParams === void 0) { queryParams = {}; }
|
|
8496
8506
|
return rxjs.combineLatest([this.userService.userInfo$, this.userService.generatingAuthlessId$]).pipe(operators.skipWhile(function () { return _this.isNotAuthenticated(); }), operators.take(1), operators.switchMap(function () { return _this.posService.posWasInitialized().pipe(operators.skipWhile(function (wasInitialized) { return !wasInitialized; }), operators.switchMap(function () { return _this.posService.pos$; }), operators.take(1), operators.switchMap(function (pos) {
|
|
8497
8507
|
var url = MEALZ_SSR_API + "/" + endpoint;
|
|
8508
|
+
var queryParts = [];
|
|
8498
8509
|
if (pos === null || pos === void 0 ? void 0 : pos.extId) {
|
|
8499
|
-
|
|
8510
|
+
queryParts.push("store_id=" + encodeURIComponent(pos.extId));
|
|
8511
|
+
}
|
|
8512
|
+
Object.entries(queryParams).forEach(function (_a) {
|
|
8513
|
+
var _b = __read(_a, 2), key = _b[0], value = _b[1];
|
|
8514
|
+
if (!value) {
|
|
8515
|
+
return;
|
|
8516
|
+
}
|
|
8517
|
+
queryParts.push(encodeURIComponent(key) + "=" + encodeURIComponent(value));
|
|
8518
|
+
});
|
|
8519
|
+
if (queryParts.length > 0) {
|
|
8520
|
+
url += "?" + queryParts.join('&');
|
|
8500
8521
|
}
|
|
8501
8522
|
return _this.http.get(url, {
|
|
8502
8523
|
headers: _this.buildHeaders(),
|
|
@@ -10786,9 +10807,9 @@
|
|
|
10786
10807
|
env: 'prod',
|
|
10787
10808
|
miamAPI: 'https://api.miam.tech',
|
|
10788
10809
|
miamWeb: 'https://miam.tech',
|
|
10789
|
-
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.
|
|
10810
|
+
mealzComponents: 'https://cdn.jsdelivr.net/npm/mealz-components@2.8/dist',
|
|
10790
10811
|
mealzSsrApi: 'https://ssr-api.mealz.ai',
|
|
10791
|
-
mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10.
|
|
10812
|
+
mealzSdkV10: 'https://cdn.jsdelivr.net/npm/webc-miam@10.5',
|
|
10792
10813
|
lang: 'fr',
|
|
10793
10814
|
analyticsEnabled: true // Only used in DEV mode
|
|
10794
10815
|
};
|
|
@@ -12300,7 +12321,7 @@
|
|
|
12300
12321
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r3.placeOrderFooter && ctx_r3.redirectToCartFooter);
|
|
12301
12322
|
}
|
|
12302
12323
|
}
|
|
12303
|
-
var _c10$
|
|
12324
|
+
var _c10$2 = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
|
|
12304
12325
|
function ModalComponent_ng_container_0_Template(rf, ctx) {
|
|
12305
12326
|
if (rf & 1) {
|
|
12306
12327
|
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -12337,7 +12358,7 @@
|
|
|
12337
12358
|
i0__namespace.ɵɵadvance(1);
|
|
12338
12359
|
i0__namespace.ɵɵproperty("ngClass", ctx_r0.modalStyle);
|
|
12339
12360
|
i0__namespace.ɵɵadvance(2);
|
|
12340
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(6, _c10$
|
|
12361
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(6, _c10$2, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
|
|
12341
12362
|
i0__namespace.ɵɵattribute("aria-labelledby", ctx_r0.title ? "modal-title" : ctx_r0.recipesCount ? "modal-recipe-count" : null);
|
|
12342
12363
|
i0__namespace.ɵɵadvance(4);
|
|
12343
12364
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.title);
|
|
@@ -12348,7 +12369,7 @@
|
|
|
12348
12369
|
}
|
|
12349
12370
|
}
|
|
12350
12371
|
var _c11$3 = [[["", "header", ""]], "*"];
|
|
12351
|
-
var _c12$
|
|
12372
|
+
var _c12$2 = ["[header]", "*"];
|
|
12352
12373
|
var ModalComponent = /** @class */ (function () {
|
|
12353
12374
|
function ModalComponent(contextService, basketTransferService, currencyService) {
|
|
12354
12375
|
this.contextService = contextService;
|
|
@@ -12424,7 +12445,7 @@
|
|
|
12424
12445
|
if (rf & 1) {
|
|
12425
12446
|
i0__namespace.ɵɵlistener("keydown.escape", function ModalComponent_keydown_escape_HostBindingHandler() { return ctx.onEscapeDown(); }, false, i0__namespace.ɵɵresolveWindow);
|
|
12426
12447
|
}
|
|
12427
|
-
}, inputs: { recipesCount: "recipesCount", confirmButtonIsLoading: "confirmButtonIsLoading", cancelButtonIsLoading: "cancelButtonIsLoading", confirmButtonDisabled: "confirmButtonDisabled", cancelButtonDisabled: "cancelButtonDisabled", placeOrderFooter: "placeOrderFooter", redirectToCartFooter: "redirectToCartFooter", noHeaderMode: "noHeaderMode", totalPrice: "totalPrice", title: "title", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", modalStyle: "modalStyle", ctaColor: "ctaColor", display: "display" }, outputs: { close: "close", cancel: "cancel", confirm: "confirm" }, ngContentSelectors: _c12$
|
|
12448
|
+
}, inputs: { recipesCount: "recipesCount", confirmButtonIsLoading: "confirmButtonIsLoading", cancelButtonIsLoading: "cancelButtonIsLoading", confirmButtonDisabled: "confirmButtonDisabled", cancelButtonDisabled: "cancelButtonDisabled", placeOrderFooter: "placeOrderFooter", redirectToCartFooter: "redirectToCartFooter", noHeaderMode: "noHeaderMode", totalPrice: "totalPrice", title: "title", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", modalStyle: "modalStyle", ctaColor: "ctaColor", display: "display" }, outputs: { close: "close", cancel: "cancel", confirm: "confirm" }, ngContentSelectors: _c12$2, decls: 1, vars: 1, consts: function () {
|
|
12428
12449
|
var i18n_0;
|
|
12429
12450
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
12430
12451
|
var MSG_EXTERNAL_3775647930168967606$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS___1 = goog.getMsg("Utilis\u00E9 dans ");
|
|
@@ -13492,7 +13513,7 @@
|
|
|
13492
13513
|
i18n_12 = MSG_EXTERNAL_2987005241567363499$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS____13;
|
|
13493
13514
|
}
|
|
13494
13515
|
else {
|
|
13495
|
-
i18n_12 = $localize(templateObject_7$
|
|
13516
|
+
i18n_12 = $localize(templateObject_7$e || (templateObject_7$e = __makeTemplateObject([":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"], [":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"])));
|
|
13496
13517
|
}
|
|
13497
13518
|
var i18n_14;
|
|
13498
13519
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -13671,7 +13692,7 @@
|
|
|
13671
13692
|
type: i0.Output
|
|
13672
13693
|
}] });
|
|
13673
13694
|
})();
|
|
13674
|
-
var templateObject_1$M, templateObject_2$A, templateObject_3$r, templateObject_4$o, templateObject_5$i, templateObject_6$e, templateObject_7$
|
|
13695
|
+
var templateObject_1$M, templateObject_2$A, templateObject_3$r, templateObject_4$o, templateObject_5$i, templateObject_6$e, templateObject_7$e, templateObject_8$a, templateObject_9$7, templateObject_10$6, templateObject_11$6, templateObject_12$3, templateObject_13$2, templateObject_14$1, templateObject_15$1, templateObject_16, templateObject_17, templateObject_18, templateObject_19;
|
|
13675
13696
|
|
|
13676
13697
|
var SelectPosButtonDirective = /** @class */ (function () {
|
|
13677
13698
|
function SelectPosButtonDirective(el, contextService, posService) {
|
|
@@ -15301,35 +15322,50 @@
|
|
|
15301
15322
|
})();
|
|
15302
15323
|
var templateObject_1$I;
|
|
15303
15324
|
|
|
15304
|
-
function
|
|
15325
|
+
function PromotionBadgeComponent_div_0_Template(rf, ctx) {
|
|
15305
15326
|
if (rf & 1) {
|
|
15306
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
15307
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
15308
|
-
i0__namespace.ɵɵ
|
|
15327
|
+
i0__namespace.ɵɵelementStart(0, "div", 1);
|
|
15328
|
+
i0__namespace.ɵɵelementStart(1, "div", 2);
|
|
15329
|
+
i0__namespace.ɵɵelementStart(2, "span", 3);
|
|
15330
|
+
i0__namespace.ɵɵtext(3);
|
|
15331
|
+
i0__namespace.ɵɵelementEnd();
|
|
15332
|
+
i0__namespace.ɵɵelementStart(4, "span", 4);
|
|
15333
|
+
i0__namespace.ɵɵi18n(5, 5);
|
|
15309
15334
|
i0__namespace.ɵɵelementEnd();
|
|
15310
|
-
i0__namespace.ɵɵelementStart(3, "span", 4);
|
|
15311
|
-
i0__namespace.ɵɵi18n(4, 5);
|
|
15312
15335
|
i0__namespace.ɵɵelementEnd();
|
|
15313
15336
|
i0__namespace.ɵɵelementEnd();
|
|
15314
15337
|
}
|
|
15315
15338
|
if (rf & 2) {
|
|
15316
15339
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
15317
|
-
i0__namespace.ɵɵadvance(
|
|
15340
|
+
i0__namespace.ɵɵadvance(3);
|
|
15318
15341
|
i0__namespace.ɵɵtextInterpolate2(" ", ctx_r0.priceData.discountAmount, "", ctx_r0.priceService.getPriceAmountSuffix(ctx_r0.priceData), " ");
|
|
15319
15342
|
}
|
|
15320
15343
|
}
|
|
15321
15344
|
var PromotionBadgeComponent = /** @class */ (function () {
|
|
15322
|
-
function PromotionBadgeComponent(cdr, priceService) {
|
|
15345
|
+
function PromotionBadgeComponent(cdr, priceService, posService) {
|
|
15323
15346
|
this.cdr = cdr;
|
|
15324
15347
|
this.priceService = priceService;
|
|
15348
|
+
this.posService = posService;
|
|
15349
|
+
this.hasSelectedPos = false;
|
|
15325
15350
|
}
|
|
15351
|
+
PromotionBadgeComponent.prototype.ngOnInit = function () {
|
|
15352
|
+
var _this = this;
|
|
15353
|
+
this.posValidSub = this.posService.isPosValid().subscribe(function (valid) {
|
|
15354
|
+
_this.hasSelectedPos = valid;
|
|
15355
|
+
_this.cdr.detectChanges();
|
|
15356
|
+
});
|
|
15357
|
+
};
|
|
15326
15358
|
PromotionBadgeComponent.prototype.ngOnChanges = function () {
|
|
15327
15359
|
this.cdr.detectChanges();
|
|
15328
15360
|
};
|
|
15361
|
+
PromotionBadgeComponent.prototype.ngOnDestroy = function () {
|
|
15362
|
+
var _a;
|
|
15363
|
+
(_a = this.posValidSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
15364
|
+
};
|
|
15329
15365
|
return PromotionBadgeComponent;
|
|
15330
15366
|
}());
|
|
15331
|
-
PromotionBadgeComponent.ɵfac = function PromotionBadgeComponent_Factory(t) { return new (t || PromotionBadgeComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PriceService)); };
|
|
15332
|
-
PromotionBadgeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: PromotionBadgeComponent, selectors: [["ng-miam-promotion-badge"]], inputs: { priceData: "priceData" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls:
|
|
15367
|
+
PromotionBadgeComponent.ɵfac = function PromotionBadgeComponent_Factory(t) { return new (t || PromotionBadgeComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PriceService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService)); };
|
|
15368
|
+
PromotionBadgeComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: PromotionBadgeComponent, selectors: [["ng-miam-promotion-badge"]], inputs: { priceData: "priceData" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: function () {
|
|
15333
15369
|
var i18n_0;
|
|
15334
15370
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
15335
15371
|
var MSG_EXTERNAL_2099073297842949197$$LIB__COMPONENTS_PROMOTION_BADGE_PROMOTION_BADGE_COMPONENT_TS__1 = goog.getMsg("de remise imm\u00E9diate");
|
|
@@ -15338,16 +15374,13 @@
|
|
|
15338
15374
|
else {
|
|
15339
15375
|
i18n_0 = $localize(templateObject_1$H || (templateObject_1$H = __makeTemplateObject([":\u241Fde07fe635ab87dfb62bd5898b01cfef95abf5356\u241F2099073297842949197:de remise imm\u00E9diate"], [":\u241Fde07fe635ab87dfb62bd5898b01cfef95abf5356\u241F2099073297842949197:de remise imm\u00E9diate"])));
|
|
15340
15376
|
}
|
|
15341
|
-
return [[
|
|
15377
|
+
return [["class", "miam-product-card__promotion__container", 4, "ngIf"], [1, "miam-product-card__promotion__container"], [1, "miam-ds-badge", "miam-product-card__promotion"], [1, "miam-product-card__promotion-value", "miam-ds-text", "size-s", "weight-l"], [1, "miam-product-card__promotion-text", "miam-ds-text", "size-s", "weight-l"], i18n_0];
|
|
15342
15378
|
}, template: function PromotionBadgeComponent_Template(rf, ctx) {
|
|
15343
15379
|
if (rf & 1) {
|
|
15344
|
-
i0__namespace.ɵɵ
|
|
15345
|
-
i0__namespace.ɵɵtemplate(1, PromotionBadgeComponent_div_1_Template, 5, 2, "div", 1);
|
|
15346
|
-
i0__namespace.ɵɵelementEnd();
|
|
15380
|
+
i0__namespace.ɵɵtemplate(0, PromotionBadgeComponent_div_0_Template, 6, 2, "div", 0);
|
|
15347
15381
|
}
|
|
15348
15382
|
if (rf & 2) {
|
|
15349
|
-
i0__namespace.ɵɵ
|
|
15350
|
-
i0__namespace.ɵɵproperty("ngIf", (ctx.priceData == null ? null : ctx.priceData.discountAmount) > 0);
|
|
15383
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.hasSelectedPos && (ctx.priceData == null ? null : ctx.priceData.discountAmount) > 0);
|
|
15351
15384
|
}
|
|
15352
15385
|
}, directives: [i1__namespace.NgIf], styles: [".miam-product-card__promotion__container{width:auto;height:24px;flex-shrink:0}.miam-product-card__promotion__container .miam-product-card__promotion{display:flex;align-items:center;justify-content:center;background:#ffe7e0;color:#e02d2d}.miam-product-card__promotion__container .miam-product-card__promotion>:not(:last-child){margin-right:4px}"], encapsulation: 2, changeDetection: 0 });
|
|
15353
15386
|
(function () {
|
|
@@ -15360,7 +15393,7 @@
|
|
|
15360
15393
|
encapsulation: i0.ViewEncapsulation.None,
|
|
15361
15394
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
15362
15395
|
}]
|
|
15363
|
-
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PriceService }]; }, { priceData: [{
|
|
15396
|
+
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PriceService }, { type: PointOfSalesService }]; }, { priceData: [{
|
|
15364
15397
|
type: i0.Input
|
|
15365
15398
|
}] });
|
|
15366
15399
|
})();
|
|
@@ -15925,7 +15958,7 @@
|
|
|
15925
15958
|
i18n_12 = MSG_EXTERNAL_7389019358817586225$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS___13;
|
|
15926
15959
|
}
|
|
15927
15960
|
else {
|
|
15928
|
-
i18n_12 = $localize(templateObject_7$
|
|
15961
|
+
i18n_12 = $localize(templateObject_7$d || (templateObject_7$d = __makeTemplateObject([":\u241Fb4469d81103a2a9875dcf6e019a952b9bca3c117\u241F7389019358817586225:Calcul\u00E9 pour "], [":\u241Fb4469d81103a2a9875dcf6e019a952b9bca3c117\u241F7389019358817586225:Calcul\u00E9 pour "])));
|
|
15929
15962
|
}
|
|
15930
15963
|
var i18n_14;
|
|
15931
15964
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -15958,7 +15991,7 @@
|
|
|
15958
15991
|
type: i0.Input
|
|
15959
15992
|
}] });
|
|
15960
15993
|
})();
|
|
15961
|
-
var templateObject_1$G, templateObject_2$w, templateObject_3$o, templateObject_4$m, templateObject_5$h, templateObject_6$d, templateObject_7$
|
|
15994
|
+
var templateObject_1$G, templateObject_2$w, templateObject_3$o, templateObject_4$m, templateObject_5$h, templateObject_6$d, templateObject_7$d, templateObject_8$9;
|
|
15962
15995
|
|
|
15963
15996
|
function ProductsPickerComponent_ng_container_3_span_3_Template(rf, ctx) {
|
|
15964
15997
|
if (rf & 1) {
|
|
@@ -16281,7 +16314,7 @@
|
|
|
16281
16314
|
i18n_12 = MSG_EXTERNAL_2791054456946858131$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS__13;
|
|
16282
16315
|
}
|
|
16283
16316
|
else {
|
|
16284
|
-
i18n_12 = $localize(templateObject_7$
|
|
16317
|
+
i18n_12 = $localize(templateObject_7$c || (templateObject_7$c = __makeTemplateObject([":\u241Ff363139a8ec757d4ac80573845002c3e462c4bca\u241F2791054456946858131:L'abus d'alcool est dangereux pour la sant\u00E9. A consommer avec mod\u00E9ration. Vente interdite aux mineurs."], [":\u241Ff363139a8ec757d4ac80573845002c3e462c4bca\u241F2791054456946858131:L'abus d'alcool est dangereux pour la sant\u00E9. A consommer avec mod\u00E9ration. Vente interdite aux mineurs."])));
|
|
16285
16318
|
}
|
|
16286
16319
|
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];
|
|
16287
16320
|
}, template: function ProductsPickerComponent_Template(rf, ctx) {
|
|
@@ -16341,7 +16374,7 @@
|
|
|
16341
16374
|
type: i0.Output
|
|
16342
16375
|
}] });
|
|
16343
16376
|
})();
|
|
16344
|
-
var templateObject_1$F, templateObject_2$v, templateObject_3$n, templateObject_4$l, templateObject_5$g, templateObject_6$c, templateObject_7$
|
|
16377
|
+
var templateObject_1$F, templateObject_2$v, templateObject_3$n, templateObject_4$l, templateObject_5$g, templateObject_6$c, templateObject_7$c;
|
|
16345
16378
|
|
|
16346
16379
|
function NoPosSelectedComponent_ng_container_1_Template(rf, ctx) {
|
|
16347
16380
|
if (rf & 1) {
|
|
@@ -16931,7 +16964,7 @@
|
|
|
16931
16964
|
i0__namespace.ɵɵelement(0, "ng-miam-loader");
|
|
16932
16965
|
}
|
|
16933
16966
|
}
|
|
16934
|
-
var _c10$
|
|
16967
|
+
var _c10$1 = function (a0) { return { loading: a0 }; };
|
|
16935
16968
|
function BasketPreviewDisabledComponent_div_10_div_1_button_4_Template(rf, ctx) {
|
|
16936
16969
|
if (rf & 1) {
|
|
16937
16970
|
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -16946,7 +16979,7 @@
|
|
|
16946
16979
|
if (rf & 2) {
|
|
16947
16980
|
var entry_r5 = i0__namespace.ɵɵnextContext().$implicit;
|
|
16948
16981
|
var ctx_r6 = i0__namespace.ɵɵnextContext(2);
|
|
16949
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c10$
|
|
16982
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c10$1, ctx_r6.loading[entry_r5.id]));
|
|
16950
16983
|
i0__namespace.ɵɵadvance(1);
|
|
16951
16984
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r6.loading[entry_r5.id]);
|
|
16952
16985
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -17231,7 +17264,7 @@
|
|
|
17231
17264
|
i0__namespace.ɵɵelement(0, "div", 34);
|
|
17232
17265
|
}
|
|
17233
17266
|
}
|
|
17234
|
-
var _c10
|
|
17267
|
+
var _c10 = function (a0) { return { "miam-basket-preview-line__left__big": a0 }; };
|
|
17235
17268
|
var _c11$1 = function (a0) { return { "disabled": a0 }; };
|
|
17236
17269
|
function BasketPreviewLineComponent_ng_container_0_Template(rf, ctx) {
|
|
17237
17270
|
if (rf & 1) {
|
|
@@ -17289,7 +17322,7 @@
|
|
|
17289
17322
|
i0__namespace.ɵɵadvance(1);
|
|
17290
17323
|
i0__namespace.ɵɵpropertyInterpolate("id", ctx_r0.line.id);
|
|
17291
17324
|
i0__namespace.ɵɵadvance(1);
|
|
17292
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(17, _c10
|
|
17325
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(17, _c10, ctx_r0.contextService.guestsInputOnMyMeals));
|
|
17293
17326
|
i0__namespace.ɵɵadvance(2);
|
|
17294
17327
|
i0__namespace.ɵɵproperty("alt", ctx_r0.line.title || (ctx_r0.line.isRecipe ? "Image de recette" : "Image de produit"))("src", ctx_r0.line.picture, i0__namespace.ɵɵsanitizeUrl);
|
|
17295
17328
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -17328,7 +17361,7 @@
|
|
|
17328
17361
|
i0__namespace.ɵɵelement(0, "div", 34);
|
|
17329
17362
|
}
|
|
17330
17363
|
}
|
|
17331
|
-
var _c12 = function (a0, a1) { return { "disabled": a0, "loading": a1 }; };
|
|
17364
|
+
var _c12$1 = function (a0, a1) { return { "disabled": a0, "loading": a1 }; };
|
|
17332
17365
|
function BasketPreviewLineComponent_ng_template_1_button_3_Template(rf, ctx) {
|
|
17333
17366
|
if (rf & 1) {
|
|
17334
17367
|
var _r38_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -17341,7 +17374,7 @@
|
|
|
17341
17374
|
if (rf & 2) {
|
|
17342
17375
|
var _r35 = i0__namespace.ɵɵreference(3);
|
|
17343
17376
|
var ctx_r19 = i0__namespace.ɵɵnextContext(2);
|
|
17344
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(3, _c12, ctx_r19.disableRemove, ctx_r19.removing));
|
|
17377
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(3, _c12$1, ctx_r19.disableRemove, ctx_r19.removing));
|
|
17345
17378
|
i0__namespace.ɵɵadvance(1);
|
|
17346
17379
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r19.removing)("ngIfElse", _r35);
|
|
17347
17380
|
}
|
|
@@ -18139,7 +18172,7 @@
|
|
|
18139
18172
|
i18n_15 = MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___16;
|
|
18140
18173
|
}
|
|
18141
18174
|
else {
|
|
18142
|
-
i18n_15 = $localize(templateObject_7$
|
|
18175
|
+
i18n_15 = $localize(templateObject_7$b || (templateObject_7$b = __makeTemplateObject([":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "], [":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "])));
|
|
18143
18176
|
}
|
|
18144
18177
|
var i18n_17;
|
|
18145
18178
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -18205,7 +18238,7 @@
|
|
|
18205
18238
|
else {
|
|
18206
18239
|
i18n_33 = $localize(templateObject_15 || (templateObject_15 = __makeTemplateObject([":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."], [":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."])));
|
|
18207
18240
|
}
|
|
18208
|
-
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/
|
|
18241
|
+
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/single-user.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];
|
|
18209
18242
|
}, template: function BasketPreviewLineComponent_Template(rf, ctx) {
|
|
18210
18243
|
if (rf & 1) {
|
|
18211
18244
|
i0__namespace.ɵɵtemplate(0, BasketPreviewLineComponent_ng_container_0_Template, 28, 21, "ng-container", 0);
|
|
@@ -18254,7 +18287,7 @@
|
|
|
18254
18287
|
type: i0.Output
|
|
18255
18288
|
}] });
|
|
18256
18289
|
})();
|
|
18257
|
-
var templateObject_1$A, templateObject_2$r, templateObject_3$k, templateObject_4$i, templateObject_5$d, templateObject_6$b, templateObject_7$
|
|
18290
|
+
var templateObject_1$A, templateObject_2$r, templateObject_3$k, templateObject_4$i, templateObject_5$d, templateObject_6$b, templateObject_7$b, templateObject_8$8, templateObject_9$6, templateObject_10$5, templateObject_11$5, templateObject_12$2, templateObject_13$1, templateObject_14, templateObject_15;
|
|
18258
18291
|
|
|
18259
18292
|
function BasketPreviewProductComponent_div_0_div_19_Template(rf, ctx) {
|
|
18260
18293
|
if (rf & 1) {
|
|
@@ -19191,7 +19224,7 @@
|
|
|
19191
19224
|
i18n_12 = MSG_EXTERNAL_6492937435856655320$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS_____13;
|
|
19192
19225
|
}
|
|
19193
19226
|
else {
|
|
19194
|
-
i18n_12 = $localize(templateObject_7$
|
|
19227
|
+
i18n_12 = $localize(templateObject_7$a || (templateObject_7$a = __makeTemplateObject([":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"], [":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"])));
|
|
19195
19228
|
}
|
|
19196
19229
|
var i18n_15;
|
|
19197
19230
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -19336,7 +19369,7 @@
|
|
|
19336
19369
|
args: ['@slide']
|
|
19337
19370
|
}] });
|
|
19338
19371
|
})();
|
|
19339
|
-
var templateObject_1$y, templateObject_2$q, templateObject_3$j, templateObject_4$h, templateObject_5$c, templateObject_6$a, templateObject_7$
|
|
19372
|
+
var templateObject_1$y, templateObject_2$q, templateObject_3$j, templateObject_4$h, templateObject_5$c, templateObject_6$a, templateObject_7$a, templateObject_8$7, templateObject_9$5, templateObject_10$4, templateObject_11$4;
|
|
19340
19373
|
|
|
19341
19374
|
function BasketPreviewBlockComponent_div_2_ng_container_1_div_2_Template(rf, ctx) {
|
|
19342
19375
|
if (rf & 1) {
|
|
@@ -19915,7 +19948,7 @@
|
|
|
19915
19948
|
i18n_13 = MSG_EXTERNAL_4182983336835891106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS__14;
|
|
19916
19949
|
}
|
|
19917
19950
|
else {
|
|
19918
|
-
i18n_13 = $localize(templateObject_7$
|
|
19951
|
+
i18n_13 = $localize(templateObject_7$9 || (templateObject_7$9 = __makeTemplateObject([":\u241Fdf6602bf298f29976aa1fc43e12e25e9a677a51d\u241F4182983336835891106:D\u00E9sol\u00E9, ce magasin ne permet pas de s\u00E9lectionner des repas."], [":\u241Fdf6602bf298f29976aa1fc43e12e25e9a677a51d\u241F4182983336835891106:D\u00E9sol\u00E9, ce magasin ne permet pas de s\u00E9lectionner des repas."])));
|
|
19919
19952
|
}
|
|
19920
19953
|
var i18n_15;
|
|
19921
19954
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -19984,7 +20017,7 @@
|
|
|
19984
20017
|
args: [BasketPreviewProductComponent]
|
|
19985
20018
|
}] });
|
|
19986
20019
|
})();
|
|
19987
|
-
var templateObject_1$x, templateObject_2$p, templateObject_3$i, templateObject_4$g, templateObject_5$b, templateObject_6$9, templateObject_7$
|
|
20020
|
+
var templateObject_1$x, templateObject_2$p, templateObject_3$i, templateObject_4$g, templateObject_5$b, templateObject_6$9, templateObject_7$9, templateObject_8$6;
|
|
19988
20021
|
|
|
19989
20022
|
var BasketPreviewModule = /** @class */ (function () {
|
|
19990
20023
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -20177,7 +20210,7 @@
|
|
|
20177
20210
|
i18n_12 = MSG_EXTERNAL_4869108346013323377$$LIB__WEB_COMPONENTS_BASKET_TRANSFER_BASKET_TRANSFER_MODAL_BASKET_TRANSFER_MODAL_COMPONENT_TS_13;
|
|
20178
20211
|
}
|
|
20179
20212
|
else {
|
|
20180
|
-
i18n_12 = $localize(templateObject_7$
|
|
20213
|
+
i18n_12 = $localize(templateObject_7$8 || (templateObject_7$8 = __makeTemplateObject([":\u241F3fabb86327f68f35a0dd322581980d71eab9664f\u241F4869108346013323377:Votre panier est toujours en cours de transfert vers"], [":\u241F3fabb86327f68f35a0dd322581980d71eab9664f\u241F4869108346013323377:Votre panier est toujours en cours de transfert vers"])));
|
|
20181
20214
|
}
|
|
20182
20215
|
var i18n_14;
|
|
20183
20216
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20242,7 +20275,7 @@
|
|
|
20242
20275
|
}]
|
|
20243
20276
|
}], function () { return [{ type: BasketTransferService }, { type: BasketsService }, { type: PointOfSalesService }, { type: i0__namespace.ChangeDetectorRef }]; }, null);
|
|
20244
20277
|
})();
|
|
20245
|
-
var templateObject_1$w, templateObject_2$o, templateObject_3$h, templateObject_4$f, templateObject_5$a, templateObject_6$8, templateObject_7$
|
|
20278
|
+
var templateObject_1$w, templateObject_2$o, templateObject_3$h, templateObject_4$f, templateObject_5$a, templateObject_6$8, templateObject_7$8, templateObject_8$5;
|
|
20246
20279
|
|
|
20247
20280
|
function BasketTransferLoaderComponent_ng_container_0_Template(rf, ctx) {
|
|
20248
20281
|
if (rf & 1) {
|
|
@@ -20844,7 +20877,7 @@
|
|
|
20844
20877
|
i18n_12 = MSG_EXTERNAL_8748233983301350015$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_13;
|
|
20845
20878
|
}
|
|
20846
20879
|
else {
|
|
20847
|
-
i18n_12 = $localize(templateObject_7$
|
|
20880
|
+
i18n_12 = $localize(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject([":\u241Fa9903fc890d9d8680ad01355e929d4ba7e54ef15\u241F8748233983301350015:Souhaitez-vous vraiment abandonner votre liste ?"], [":\u241Fa9903fc890d9d8680ad01355e929d4ba7e54ef15\u241F8748233983301350015:Souhaitez-vous vraiment abandonner votre liste ?"])));
|
|
20848
20881
|
}
|
|
20849
20882
|
return [[1, "miam-list-scan"], [3, "isSchoolList"], ["title", i18n_0, "cancelButtonText", i18n_2, "confirmButtonText", i18n_4, "modalStyle", "right", 1, "miam-list-scan__result", 3, "noHeaderMode", "display", "cancel", "close", "confirm"], [1, "miam-list-scan__content", 3, "closed", "cancelled"], ["title", i18n_6, "cancelButtonText", i18n_8, "confirmButtonText", i18n_10, 1, "miam-list-scan__confirmation", 3, "display", "noHeaderMode", "confirmButtonDisabled", "confirmButtonIsLoading", "cancelButtonDisabled", "displayChange", "close", "cancel", "confirm"], [1, "miam-ds-text", "size-m", "weight-m"], i18n_12];
|
|
20850
20883
|
}, template: function ListScanComponent_Template(rf, ctx) {
|
|
@@ -20892,7 +20925,7 @@
|
|
|
20892
20925
|
type: i0.Output
|
|
20893
20926
|
}] });
|
|
20894
20927
|
})();
|
|
20895
|
-
var templateObject_1$r, templateObject_2$k, templateObject_3$f, templateObject_4$d, templateObject_5$9, templateObject_6$7, templateObject_7$
|
|
20928
|
+
var templateObject_1$r, templateObject_2$k, templateObject_3$f, templateObject_4$d, templateObject_5$9, templateObject_6$7, templateObject_7$7;
|
|
20896
20929
|
|
|
20897
20930
|
var ListScanModule = /** @class */ (function () {
|
|
20898
20931
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -22285,7 +22318,7 @@
|
|
|
22285
22318
|
else {
|
|
22286
22319
|
i18n_6 = $localize(templateObject_4$c || (templateObject_4$c = __makeTemplateObject([":\u241Ff51693cf087a834d433fa3835d7b64905fdc57ee\u241F9008711340501624723:D\u00E9couvrez nos recettes"], [":\u241Ff51693cf087a834d433fa3835d7b64905fdc57ee\u241F9008711340501624723:D\u00E9couvrez nos recettes"])));
|
|
22287
22320
|
}
|
|
22288
|
-
return [["ngMiamInViewport", "", 1, "miam-recipe-card", 3, "condition", "ngClass", "inViewport"], ["class", "miam-recipe-card__container", "ngMiamInViewport", "", 3, "threshold", "debounceTime", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-recipe-card__container", 3, "threshold", "debounceTime", "inViewport"], [1, "miam-recipe-card__top", 3, "click"], [1, "miam-recipe-card__picture"], ["loading", "lazy", 3, "src", "alt", "error"], ["aria-hidden", "true", 1, "miam-recipe-card__gradient"], [1, "miam-recipe-card__content"], [1, "miam-recipe-card__top-container"], ["class", "miam-recipe-card__like", 4, "ngIf"], [1, "miam-recipe-card__badges-container"], ["class", "miam-recipe-card__badge-container", 3, "ngClass", 4, "ngIf"], ["class", "miam-recipe-card__sponsor-container", 4, "ngIf"], [4, "ngIf"], [1, "miam-recipe-card__picture__bottom"], [1, "miam-recipe-card__title", "miam-ds-text", "weight-xxl", "size-m"], [1, "miam-recipe-card__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/
|
|
22321
|
+
return [["ngMiamInViewport", "", 1, "miam-recipe-card", 3, "condition", "ngClass", "inViewport"], ["class", "miam-recipe-card__container", "ngMiamInViewport", "", 3, "threshold", "debounceTime", "inViewport", 4, "ngIf"], ["ngMiamInViewport", "", 1, "miam-recipe-card__container", 3, "threshold", "debounceTime", "inViewport"], [1, "miam-recipe-card__top", 3, "click"], [1, "miam-recipe-card__picture"], ["loading", "lazy", 3, "src", "alt", "error"], ["aria-hidden", "true", 1, "miam-recipe-card__gradient"], [1, "miam-recipe-card__content"], [1, "miam-recipe-card__top-container"], ["class", "miam-recipe-card__like", 4, "ngIf"], [1, "miam-recipe-card__badges-container"], ["class", "miam-recipe-card__badge-container", 3, "ngClass", 4, "ngIf"], ["class", "miam-recipe-card__sponsor-container", 4, "ngIf"], [4, "ngIf"], [1, "miam-recipe-card__picture__bottom"], [1, "miam-recipe-card__title", "miam-ds-text", "weight-xxl", "size-m"], [1, "miam-recipe-card__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/single-user.svg", "alt", "", "aria-hidden", "true"], [1, "miam-recipe-card__bottom", 3, "click"], ["class", "miam-recipe-card__ingredients__pictures", 4, "ngIf"], [1, "miam-recipe-card__actions"], [1, "miam-recipe-card__infos"], ["class", "miam-recipe-card__difficulty-and-time", 4, "ngIf"], [1, "miam-recipe-card__price-and-promotion"], ["class", "miam-recipe-card__bottom-promotion", 4, "ngIf"], ["class", "miam-recipe-card__price", 4, "ngIf"], [1, "miam-recipe-card__cta"], ["class", "miam-recipe-card__actions__icon", 3, "recipe", "originTrace", 4, "ngIf"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked", 4, "ngIf"], ["class", "miam-recipe-card__actions__replace", 4, "ngIf"], ["class", "miam-ds-button ghost", 3, "click", 4, "ngIf"], [1, "miam-recipe-card__like"], [1, "miam-recipe-card__actions__icon", 3, "recipe", "originTrace"], [1, "miam-recipe-card__badge-container", 3, "ngClass"], ["class", "miam-recipe-card__badge", "src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "Id\u00E9e repas", 4, "ngIf"], ["class", "miam-recipe-card__badge", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/9.0/recipe-card-badge-drinks.svg", "alt", "Id\u00E9e boisson", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/recipe_card-badge.svg", "alt", "Id\u00E9e repas", 1, "miam-recipe-card__badge"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/9.0/recipe-card-badge-drinks.svg", "alt", "Id\u00E9e boisson", 1, "miam-recipe-card__badge"], [1, "miam-recipe-card__sponsor-container"], [1, "miam-recipe-card__sponsor-picture", 3, "src", "alt"], [1, "miam-recipe-card__ingredients__pictures"], [1, "miam-recipe-card__ingredients__picture"], ["aria-hidden", "true", 3, "src", "alt", "error"], ["class", "miam-recipe-card__ingredients__more", 4, "ngIf"], [1, "miam-recipe-card__ingredients__more"], [1, "miam-recipe-card__difficulty-and-time"], ["class", "miam-recipe-card__difficulty", 4, "ngIf"], ["class", "miam-recipe-card__time", 4, "ngIf"], [1, "miam-recipe-card__difficulty"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/ChefHat.svg", "alt", "", "aria-hidden", "true"], [1, "miam-ds-text", "size-s", "weight-m"], [1, "miam-recipe-card__time"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Clock.svg", "alt", "", "aria-hidden", "true"], [1, "miam-recipe-card__bottom-promotion"], [1, "miam-recipe-card__price"], [1, "miam-ds-text", "weight-xxl", 3, "recipeId", "serves", "inViewport", "priceSet"], [3, "recipe", "previewAllowed", "displayGuests", "helpButtonAllowed", "originTrace", "displayed", "clicked"], [1, "miam-recipe-card__actions__replace"], [1, "miam-ds-button", "ghost", 3, "click"], i18n_0, ["aria-label", "Supprimer la recette", 1, "miam-ds-button", "ghost", "square", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_2, [1, "miam-recipe-card__redirect", 3, "href"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/Suggestion_Redirect_Background.png", "alt", "D\u00E9couvrez nos recettes"], [1, "miam-recipe-card__redirect__footer"], [1, "miam-recipe-card__redirect__title", "miam-ds-text", "size-l", "weight-xxl"], i18n_4, [1, "miam-recipe-card__redirect__button", "miam-ds-button", "primary"], i18n_6];
|
|
22289
22322
|
}, template: function RecipeCardComponent_Template(rf, ctx) {
|
|
22290
22323
|
if (rf & 1) {
|
|
22291
22324
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -22463,42 +22496,64 @@
|
|
|
22463
22496
|
function CatalogListComponent_div_1_ng_template_3_div_0_Template(rf, ctx) {
|
|
22464
22497
|
if (rf & 1) {
|
|
22465
22498
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
22466
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
22499
|
+
i0__namespace.ɵɵelementStart(1, "div", 18);
|
|
22467
22500
|
i0__namespace.ɵɵelementStart(2, "span");
|
|
22468
|
-
i0__namespace.ɵɵi18n(3,
|
|
22501
|
+
i0__namespace.ɵɵi18n(3, 19);
|
|
22469
22502
|
i0__namespace.ɵɵelementEnd();
|
|
22470
22503
|
i0__namespace.ɵɵelementEnd();
|
|
22471
22504
|
i0__namespace.ɵɵelementEnd();
|
|
22472
22505
|
}
|
|
22473
22506
|
}
|
|
22474
|
-
function
|
|
22507
|
+
function CatalogListComponent_div_1_ng_template_3_ng_template_1_div_0_Template(rf, ctx) {
|
|
22475
22508
|
if (rf & 1) {
|
|
22476
|
-
i0__namespace.ɵɵ
|
|
22509
|
+
i0__namespace.ɵɵelementStart(0, "div");
|
|
22510
|
+
i0__namespace.ɵɵelementStart(1, "div", 20);
|
|
22511
|
+
i0__namespace.ɵɵelementStart(2, "span");
|
|
22512
|
+
i0__namespace.ɵɵi18n(3, 21);
|
|
22513
|
+
i0__namespace.ɵɵelementEnd();
|
|
22514
|
+
i0__namespace.ɵɵelementEnd();
|
|
22515
|
+
i0__namespace.ɵɵelementEnd();
|
|
22516
|
+
}
|
|
22517
|
+
}
|
|
22518
|
+
function CatalogListComponent_div_1_ng_template_3_ng_template_1_Template(rf, ctx) {
|
|
22519
|
+
if (rf & 1) {
|
|
22520
|
+
i0__namespace.ɵɵtemplate(0, CatalogListComponent_div_1_ng_template_3_ng_template_1_div_0_Template, 4, 0, "div", 8);
|
|
22477
22521
|
i0__namespace.ɵɵpipe(1, "async");
|
|
22478
22522
|
}
|
|
22479
22523
|
if (rf & 2) {
|
|
22480
|
-
i0__namespace.ɵɵnextContext();
|
|
22524
|
+
i0__namespace.ɵɵnextContext(2);
|
|
22481
22525
|
var _r8 = i0__namespace.ɵɵreference(6);
|
|
22482
|
-
var
|
|
22483
|
-
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 2,
|
|
22526
|
+
var ctx_r13 = i0__namespace.ɵɵnextContext();
|
|
22527
|
+
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 2, ctx_r13.userService.isLogged$))("ngIfElse", _r8);
|
|
22528
|
+
}
|
|
22529
|
+
}
|
|
22530
|
+
function CatalogListComponent_div_1_ng_template_3_Template(rf, ctx) {
|
|
22531
|
+
if (rf & 1) {
|
|
22532
|
+
i0__namespace.ɵɵtemplate(0, CatalogListComponent_div_1_ng_template_3_div_0_Template, 4, 0, "div", 8);
|
|
22533
|
+
i0__namespace.ɵɵtemplate(1, CatalogListComponent_div_1_ng_template_3_ng_template_1_Template, 2, 4, "ng-template", null, 17, i0__namespace.ɵɵtemplateRefExtractor);
|
|
22534
|
+
}
|
|
22535
|
+
if (rf & 2) {
|
|
22536
|
+
var _r12 = i0__namespace.ɵɵreference(2);
|
|
22537
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
22538
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r7.isPromotionsPage())("ngIfElse", _r12);
|
|
22484
22539
|
}
|
|
22485
22540
|
}
|
|
22486
22541
|
function CatalogListComponent_div_1_ng_template_5_Template(rf, ctx) {
|
|
22487
22542
|
if (rf & 1) {
|
|
22488
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
22543
|
+
i0__namespace.ɵɵelementStart(0, "div", 22);
|
|
22489
22544
|
i0__namespace.ɵɵelementStart(1, "span");
|
|
22490
|
-
i0__namespace.ɵɵi18n(2,
|
|
22545
|
+
i0__namespace.ɵɵi18n(2, 23);
|
|
22491
22546
|
i0__namespace.ɵɵelementEnd();
|
|
22492
22547
|
i0__namespace.ɵɵelementEnd();
|
|
22493
22548
|
}
|
|
22494
22549
|
}
|
|
22495
|
-
var
|
|
22550
|
+
var _c12 = function (a0, a1) { return { "icon-filtering": a0, "icon-not-filtering": a1 }; };
|
|
22496
22551
|
function CatalogListComponent_div_1_Template(rf, ctx) {
|
|
22497
22552
|
if (rf & 1) {
|
|
22498
22553
|
i0__namespace.ɵɵelementStart(0, "div", 6);
|
|
22499
22554
|
i0__namespace.ɵɵelement(1, "ng-miam-icon", 7);
|
|
22500
22555
|
i0__namespace.ɵɵtemplate(2, CatalogListComponent_div_1_div_2_Template, 8, 1, "div", 8);
|
|
22501
|
-
i0__namespace.ɵɵtemplate(3, CatalogListComponent_div_1_ng_template_3_Template,
|
|
22556
|
+
i0__namespace.ɵɵtemplate(3, CatalogListComponent_div_1_ng_template_3_Template, 3, 2, "ng-template", null, 9, i0__namespace.ɵɵtemplateRefExtractor);
|
|
22502
22557
|
i0__namespace.ɵɵtemplate(5, CatalogListComponent_div_1_ng_template_5_Template, 3, 0, "ng-template", null, 10, i0__namespace.ɵɵtemplateRefExtractor);
|
|
22503
22558
|
i0__namespace.ɵɵelementEnd();
|
|
22504
22559
|
}
|
|
@@ -22506,80 +22561,80 @@
|
|
|
22506
22561
|
var _r6 = i0__namespace.ɵɵreference(4);
|
|
22507
22562
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
22508
22563
|
i0__namespace.ɵɵadvance(1);
|
|
22509
|
-
i0__namespace.ɵɵproperty("width", 279)("height", 243)("iconName", ctx_r0.icon.NoRecipeFound)("ngClass", i0__namespace.ɵɵpureFunction2(6,
|
|
22564
|
+
i0__namespace.ɵɵproperty("width", 279)("height", 243)("iconName", ctx_r0.icon.NoRecipeFound)("ngClass", i0__namespace.ɵɵpureFunction2(6, _c12, ctx_r0.isFiltering(), !ctx_r0.isFiltering()));
|
|
22510
22565
|
i0__namespace.ɵɵadvance(1);
|
|
22511
22566
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.isFiltering())("ngIfElse", _r6);
|
|
22512
22567
|
}
|
|
22513
22568
|
}
|
|
22514
22569
|
function CatalogListComponent_div_3_Template(rf, ctx) {
|
|
22515
22570
|
if (rf & 1) {
|
|
22516
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
22571
|
+
i0__namespace.ɵɵelementStart(0, "div", 24);
|
|
22517
22572
|
i0__namespace.ɵɵelement(1, "ng-miam-loader");
|
|
22518
22573
|
i0__namespace.ɵɵelementStart(2, "div");
|
|
22519
|
-
i0__namespace.ɵɵi18n(3,
|
|
22574
|
+
i0__namespace.ɵɵi18n(3, 25);
|
|
22520
22575
|
i0__namespace.ɵɵelementEnd();
|
|
22521
22576
|
i0__namespace.ɵɵelementEnd();
|
|
22522
22577
|
}
|
|
22523
22578
|
}
|
|
22524
22579
|
function CatalogListComponent_ng_template_6_Template(rf, ctx) {
|
|
22525
22580
|
if (rf & 1) {
|
|
22526
|
-
var
|
|
22527
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card",
|
|
22528
|
-
i0__namespace.ɵɵlistener("addToMealsPlanner", function CatalogListComponent_ng_template_6_Template_ng_miam_recipe_card_addToMealsPlanner_0_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
22581
|
+
var _r17_1 = i0__namespace.ɵɵgetCurrentView();
|
|
22582
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card", 26);
|
|
22583
|
+
i0__namespace.ɵɵlistener("addToMealsPlanner", function CatalogListComponent_ng_template_6_Template_ng_miam_recipe_card_addToMealsPlanner_0_listener($event) { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.addToMealsPlanner.emit($event); });
|
|
22529
22584
|
i0__namespace.ɵɵelementEnd();
|
|
22530
22585
|
}
|
|
22531
22586
|
if (rf & 2) {
|
|
22532
|
-
var
|
|
22587
|
+
var recipe_r15 = ctx.recipe;
|
|
22533
22588
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
22534
|
-
i0__namespace.ɵɵproperty("recipe",
|
|
22589
|
+
i0__namespace.ɵɵproperty("recipe", recipe_r15)("originTrace", ctx_r3.eventTrace)("displayPricing", ctx_r3.displayPricing)("previewAllowed", !ctx_r3.addRecipeMode)("addRecipeMode", ctx_r3.addRecipeMode)("displayGuests", ctx_r3.displayGuests)("displayVariant", ctx_r3.displayRecipeVariant)("helpButtonAllowed", ctx_r3.helpButtonAllowed);
|
|
22535
22590
|
}
|
|
22536
22591
|
}
|
|
22537
|
-
var
|
|
22592
|
+
var _c15 = function (a0) { return { recipe: a0 }; };
|
|
22538
22593
|
function CatalogListComponent_ng_container_8_ng_container_1_Template(rf, ctx) {
|
|
22539
22594
|
if (rf & 1) {
|
|
22540
|
-
var
|
|
22595
|
+
var _r23_1 = i0__namespace.ɵɵgetCurrentView();
|
|
22541
22596
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
22542
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
22543
|
-
i0__namespace.ɵɵlistener("loadMore", function CatalogListComponent_ng_container_8_ng_container_1_Template_div_loadMore_1_listener() { i0__namespace.ɵɵrestoreView(
|
|
22597
|
+
i0__namespace.ɵɵelementStart(1, "div", 28);
|
|
22598
|
+
i0__namespace.ɵɵlistener("loadMore", function CatalogListComponent_ng_container_8_ng_container_1_Template_div_loadMore_1_listener() { i0__namespace.ɵɵrestoreView(_r23_1); var ctx_r22 = i0__namespace.ɵɵnextContext(2); return ctx_r22.autoloadContentIfNecessary(); });
|
|
22544
22599
|
i0__namespace.ɵɵpipe(2, "async");
|
|
22545
|
-
i0__namespace.ɵɵelementContainer(3,
|
|
22600
|
+
i0__namespace.ɵɵelementContainer(3, 29);
|
|
22546
22601
|
i0__namespace.ɵɵelementEnd();
|
|
22547
22602
|
i0__namespace.ɵɵelementContainerEnd();
|
|
22548
22603
|
}
|
|
22549
22604
|
if (rf & 2) {
|
|
22550
|
-
var
|
|
22551
|
-
var
|
|
22605
|
+
var recipe_r18 = i0__namespace.ɵɵnextContext().$implicit;
|
|
22606
|
+
var ctx_r20 = i0__namespace.ɵɵnextContext();
|
|
22552
22607
|
var _r2 = i0__namespace.ɵɵreference(7);
|
|
22553
22608
|
i0__namespace.ɵɵadvance(1);
|
|
22554
|
-
i0__namespace.ɵɵproperty("isLoading", i0__namespace.ɵɵpipeBind1(2, 3,
|
|
22609
|
+
i0__namespace.ɵɵproperty("isLoading", i0__namespace.ɵɵpipeBind1(2, 3, ctx_r20.loading));
|
|
22555
22610
|
i0__namespace.ɵɵadvance(2);
|
|
22556
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(5,
|
|
22611
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(5, _c15, recipe_r18));
|
|
22557
22612
|
}
|
|
22558
22613
|
}
|
|
22559
22614
|
function CatalogListComponent_ng_container_8_ng_container_2_Template(rf, ctx) {
|
|
22560
22615
|
if (rf & 1) {
|
|
22561
|
-
i0__namespace.ɵɵelementContainer(0,
|
|
22616
|
+
i0__namespace.ɵɵelementContainer(0, 29);
|
|
22562
22617
|
}
|
|
22563
22618
|
if (rf & 2) {
|
|
22564
|
-
var
|
|
22619
|
+
var recipe_r18 = i0__namespace.ɵɵnextContext().$implicit;
|
|
22565
22620
|
i0__namespace.ɵɵnextContext();
|
|
22566
22621
|
var _r2 = i0__namespace.ɵɵreference(7);
|
|
22567
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2,
|
|
22622
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c15, recipe_r18));
|
|
22568
22623
|
}
|
|
22569
22624
|
}
|
|
22570
22625
|
function CatalogListComponent_ng_container_8_Template(rf, ctx) {
|
|
22571
22626
|
if (rf & 1) {
|
|
22572
22627
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
22573
22628
|
i0__namespace.ɵɵtemplate(1, CatalogListComponent_ng_container_8_ng_container_1_Template, 4, 7, "ng-container", 13);
|
|
22574
|
-
i0__namespace.ɵɵtemplate(2, CatalogListComponent_ng_container_8_ng_container_2_Template, 1, 4, "ng-container",
|
|
22629
|
+
i0__namespace.ɵɵtemplate(2, CatalogListComponent_ng_container_8_ng_container_2_Template, 1, 4, "ng-container", 27);
|
|
22575
22630
|
i0__namespace.ɵɵelementContainerEnd();
|
|
22576
22631
|
}
|
|
22577
22632
|
if (rf & 2) {
|
|
22578
|
-
var
|
|
22633
|
+
var isLast_r19 = ctx.last;
|
|
22579
22634
|
i0__namespace.ɵɵadvance(1);
|
|
22580
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
22635
|
+
i0__namespace.ɵɵproperty("ngIf", isLast_r19);
|
|
22581
22636
|
i0__namespace.ɵɵadvance(1);
|
|
22582
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
22637
|
+
i0__namespace.ɵɵproperty("ngIf", !isLast_r19);
|
|
22583
22638
|
}
|
|
22584
22639
|
}
|
|
22585
22640
|
var recipeIncludes$2 = ['recipe-provider', 'sponsors', 'tags'];
|
|
@@ -22775,6 +22830,10 @@
|
|
|
22775
22830
|
!this.isFieldEmpty(this.filters.cost) ||
|
|
22776
22831
|
!this.isFieldEmpty(this.filters.time);
|
|
22777
22832
|
};
|
|
22833
|
+
CatalogListComponent.prototype.isPromotionsPage = function () {
|
|
22834
|
+
var _a, _b;
|
|
22835
|
+
return ((_b = (_a = this.filters) === null || _a === void 0 ? void 0 : _a.additionalFilters) === null || _b === void 0 ? void 0 : _b.title) === 'Promos';
|
|
22836
|
+
};
|
|
22778
22837
|
CatalogListComponent.prototype.trackByFn = function (index, recipe) {
|
|
22779
22838
|
return recipe.id;
|
|
22780
22839
|
};
|
|
@@ -22842,29 +22901,37 @@
|
|
|
22842
22901
|
}
|
|
22843
22902
|
var i18n_6;
|
|
22844
22903
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
22845
|
-
var
|
|
22846
|
-
i18n_6 =
|
|
22904
|
+
var MSG_EXTERNAL_5552531898207278682$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS____7 = goog.getMsg("D\u00E9sol\u00E9 nous n'avons pas trouv\u00E9 d'id\u00E9es repas en promotion");
|
|
22905
|
+
i18n_6 = MSG_EXTERNAL_5552531898207278682$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS____7;
|
|
22847
22906
|
}
|
|
22848
22907
|
else {
|
|
22849
|
-
i18n_6 = $localize(templateObject_4$b || (templateObject_4$b = __makeTemplateObject([":\
|
|
22908
|
+
i18n_6 = $localize(templateObject_4$b || (templateObject_4$b = __makeTemplateObject([":\u241F5857dddffb2b695e1d3d9d640ec3a2f784eacee4\u241F5552531898207278682:D\u00E9sol\u00E9 nous n'avons pas trouv\u00E9 d'id\u00E9es repas en promotion"], [":\u241F5857dddffb2b695e1d3d9d640ec3a2f784eacee4\u241F5552531898207278682:D\u00E9sol\u00E9 nous n'avons pas trouv\u00E9 d'id\u00E9es repas en promotion"])));
|
|
22850
22909
|
}
|
|
22851
22910
|
var i18n_8;
|
|
22852
22911
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
22853
|
-
var
|
|
22854
|
-
i18n_8 =
|
|
22912
|
+
var MSG_EXTERNAL_2399216061429613805$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS_____9 = goog.getMsg("D\u00E9sol\u00E9, vous n'avez pas encore d'id\u00E9es repas sauvegard\u00E9es");
|
|
22913
|
+
i18n_8 = MSG_EXTERNAL_2399216061429613805$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS_____9;
|
|
22855
22914
|
}
|
|
22856
22915
|
else {
|
|
22857
|
-
i18n_8 = $localize(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject([":\
|
|
22916
|
+
i18n_8 = $localize(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject([":\u241Fdb458c8ad589c2c8f67365423c366fba69c29b72\u241F2399216061429613805:D\u00E9sol\u00E9, vous n'avez pas encore d'id\u00E9es repas sauvegard\u00E9es"], [":\u241Fdb458c8ad589c2c8f67365423c366fba69c29b72\u241F2399216061429613805:D\u00E9sol\u00E9, vous n'avez pas encore d'id\u00E9es repas sauvegard\u00E9es"])));
|
|
22858
22917
|
}
|
|
22859
|
-
var
|
|
22918
|
+
var i18n_10;
|
|
22919
|
+
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
22920
|
+
var MSG_EXTERNAL_4851375363781203983$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___11 = goog.getMsg("D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page.");
|
|
22921
|
+
i18n_10 = MSG_EXTERNAL_4851375363781203983$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___11;
|
|
22922
|
+
}
|
|
22923
|
+
else {
|
|
22924
|
+
i18n_10 = $localize(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject([":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."], [":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."])));
|
|
22925
|
+
}
|
|
22926
|
+
var i18n_13;
|
|
22860
22927
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
22861
|
-
var MSG_EXTERNAL_1875448131572248295$$
|
|
22862
|
-
|
|
22928
|
+
var MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__14 = goog.getMsg(" Chargement des r\u00E9sultats... ");
|
|
22929
|
+
i18n_13 = MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__14;
|
|
22863
22930
|
}
|
|
22864
22931
|
else {
|
|
22865
|
-
|
|
22932
|
+
i18n_13 = $localize(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
|
|
22866
22933
|
}
|
|
22867
|
-
return [[1, "miam-catalog-list"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["role", "list", 1, "miam-catalog-list__cards"], ["recipeCard", ""], [4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName", "ngClass"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "filtering"], i18n_0, [4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, i18n_4, [1, "miam-catalog-list__notFound__title1", "not-filtering"],
|
|
22934
|
+
return [[1, "miam-catalog-list"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], ["role", "list", 1, "miam-catalog-list__cards"], ["recipeCard", ""], [4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName", "ngClass"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "filtering"], i18n_0, [4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, i18n_4, ["notFilteringAndNotPromotions", ""], [1, "miam-catalog-list__notFound__title1", "promotions"], i18n_6, [1, "miam-catalog-list__notFound__title1", "not-filtering"], i18n_8, [1, "miam-catalog-list__notFound__title1", "not-logged"], i18n_10, [1, "miam-catalog-list__loader"], i18n_13, ["role", "listitem", 3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "displayVariant", "helpButtonAllowed", "addToMealsPlanner"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["ngMiamLoadOnScroll", "", "marginRoot", "600px", 3, "isLoading", "loadMore"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"]];
|
|
22868
22935
|
}, template: function CatalogListComponent_Template(rf, ctx) {
|
|
22869
22936
|
if (rf & 1) {
|
|
22870
22937
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -22928,7 +22995,7 @@
|
|
|
22928
22995
|
args: [RecipeCardComponent]
|
|
22929
22996
|
}] });
|
|
22930
22997
|
})();
|
|
22931
|
-
var templateObject_1$n, templateObject_2$i, templateObject_3$d, templateObject_4$b, templateObject_5$8, templateObject_6$6;
|
|
22998
|
+
var templateObject_1$n, templateObject_2$i, templateObject_3$d, templateObject_4$b, templateObject_5$8, templateObject_6$6, templateObject_7$6;
|
|
22932
22999
|
|
|
22933
23000
|
function MealsPlannerCatalogComponent_div_14_Template(rf, ctx) {
|
|
22934
23001
|
if (rf & 1) {
|
|
@@ -24597,11 +24664,13 @@
|
|
|
24597
24664
|
}
|
|
24598
24665
|
var _c11 = function (a0, a1) { return { "my-space": a0, "expanded": a1 }; };
|
|
24599
24666
|
var CatalogToolbarComponent = /** @class */ (function () {
|
|
24600
|
-
function CatalogToolbarComponent(cdr, preferencesService, context, userService) {
|
|
24667
|
+
function CatalogToolbarComponent(cdr, preferencesService, context, userService, posService, recipesService) {
|
|
24601
24668
|
this.cdr = cdr;
|
|
24602
24669
|
this.preferencesService = preferencesService;
|
|
24603
24670
|
this.context = context;
|
|
24604
24671
|
this.userService = userService;
|
|
24672
|
+
this.posService = posService;
|
|
24673
|
+
this.recipesService = recipesService;
|
|
24605
24674
|
this.filterBadgeCount = 0;
|
|
24606
24675
|
this.reduced = false;
|
|
24607
24676
|
this.filterButtonPressed = new i0.EventEmitter();
|
|
@@ -24614,14 +24683,45 @@
|
|
|
24614
24683
|
this.preferencesBadgeCount = 0;
|
|
24615
24684
|
this.searchExpanded = false;
|
|
24616
24685
|
this.preferencesActivated = false;
|
|
24686
|
+
this.canShowPromotions = false;
|
|
24617
24687
|
this.subscriptions = [];
|
|
24618
24688
|
}
|
|
24619
24689
|
CatalogToolbarComponent.prototype.ngOnInit = function () {
|
|
24620
24690
|
var _this = this;
|
|
24621
|
-
this.subscriptions.push(
|
|
24691
|
+
this.subscriptions.push(rxjs.combineLatest([
|
|
24692
|
+
this.posService.pos$,
|
|
24693
|
+
this.preferencesService.currentPreferencesNumber
|
|
24694
|
+
]).pipe(operators.tap(function (_e) {
|
|
24695
|
+
var _f = __read(_e, 2), prefCount = _f[1];
|
|
24696
|
+
_this.preferencesBadgeCount = prefCount;
|
|
24697
|
+
}), operators.map(function (_e) {
|
|
24698
|
+
var _f = __read(_e, 2), pos = _f[0], prefCount = _f[1];
|
|
24699
|
+
var _a, _b, _c, _d;
|
|
24700
|
+
return ({
|
|
24701
|
+
posId: (_a = pos === null || pos === void 0 ? void 0 : pos.id) !== null && _a !== void 0 ? _a : '',
|
|
24702
|
+
posValid: !!(((_d = (_c = (_b = pos === null || pos === void 0 ? void 0 : pos.relationships) === null || _b === void 0 ? void 0 : _b.supplier) === null || _c === void 0 ? void 0 : _c.data) === null || _d === void 0 ? void 0 : _d.id) && (pos === null || pos === void 0 ? void 0 : pos.id)),
|
|
24703
|
+
prefCount: prefCount
|
|
24704
|
+
});
|
|
24705
|
+
}), operators.distinctUntilChanged(function (a, b) { return a.posValid === b.posValid && a.posId === b.posId && a.prefCount === b.prefCount; }), operators.switchMap(function (_e) {
|
|
24706
|
+
var posValid = _e.posValid, posId = _e.posId;
|
|
24707
|
+
if (!posValid || !posId) {
|
|
24708
|
+
return rxjs.of(false);
|
|
24709
|
+
}
|
|
24710
|
+
var guests = _this.readStoredGuestsOrDefault();
|
|
24711
|
+
return _this.recipesService.filterCount(new RecipeFilters({
|
|
24712
|
+
additionalFilters: {
|
|
24713
|
+
title: '',
|
|
24714
|
+
filters: {
|
|
24715
|
+
discounted_ingredients_count: 1,
|
|
24716
|
+
point_of_sale_id: posId,
|
|
24717
|
+
guests: String(guests)
|
|
24718
|
+
}
|
|
24719
|
+
}
|
|
24720
|
+
}), guests).pipe(operators.map(function (count) { return count > 0; }), operators.catchError(function () { return rxjs.of(false); }));
|
|
24721
|
+
})).subscribe(function (canShow) {
|
|
24722
|
+
_this.canShowPromotions = canShow;
|
|
24622
24723
|
_this.cdr.detectChanges();
|
|
24623
|
-
}), this.
|
|
24624
|
-
_this.preferencesBadgeCount = number;
|
|
24724
|
+
}), this.context.orderHistoryEnabled$.subscribe(function () {
|
|
24625
24725
|
_this.cdr.detectChanges();
|
|
24626
24726
|
}), this.userService.preferencesActivated$.subscribe(function (activated) {
|
|
24627
24727
|
_this.preferencesActivated = activated;
|
|
@@ -24691,9 +24791,14 @@
|
|
|
24691
24791
|
this.cdr.detectChanges();
|
|
24692
24792
|
}
|
|
24693
24793
|
};
|
|
24794
|
+
CatalogToolbarComponent.prototype.readStoredGuestsOrDefault = function () {
|
|
24795
|
+
var raw = localStorage.getItem('_miam/preferences/guests');
|
|
24796
|
+
var n = raw != null ? Number(raw) : NaN;
|
|
24797
|
+
return Number.isFinite(n) && n > 0 ? n : 4;
|
|
24798
|
+
};
|
|
24694
24799
|
return CatalogToolbarComponent;
|
|
24695
24800
|
}());
|
|
24696
|
-
CatalogToolbarComponent.ɵfac = function CatalogToolbarComponent_Factory(t) { return new (t || CatalogToolbarComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PreferencesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(UserService)); };
|
|
24801
|
+
CatalogToolbarComponent.ɵfac = function CatalogToolbarComponent_Factory(t) { return new (t || CatalogToolbarComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PreferencesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(RecipesService)); };
|
|
24697
24802
|
CatalogToolbarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CatalogToolbarComponent, selectors: [["ng-miam-catalog-toolbar"]], viewQuery: function CatalogToolbarComponent_Query(rf, ctx) {
|
|
24698
24803
|
if (rf & 1) {
|
|
24699
24804
|
i0__namespace.ɵɵviewQuery(_c0$4, 1);
|
|
@@ -24776,7 +24881,7 @@
|
|
|
24776
24881
|
i0__namespace.ɵɵadvance(3);
|
|
24777
24882
|
i0__namespace.ɵɵproperty("ngIf", ctx.searchExpanded || ctx.history || ctx.favorites);
|
|
24778
24883
|
i0__namespace.ɵɵadvance(1);
|
|
24779
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.home);
|
|
24884
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.home && ctx.canShowPromotions);
|
|
24780
24885
|
i0__namespace.ɵɵadvance(1);
|
|
24781
24886
|
i0__namespace.ɵɵproperty("ngIf", ctx.home);
|
|
24782
24887
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -24795,7 +24900,7 @@
|
|
|
24795
24900
|
encapsulation: i0.ViewEncapsulation.None,
|
|
24796
24901
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
24797
24902
|
}]
|
|
24798
|
-
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PreferencesService }, { type: ContextService }, { type: UserService }]; }, { favorites: [{
|
|
24903
|
+
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PreferencesService }, { type: ContextService }, { type: UserService }, { type: PointOfSalesService }, { type: RecipesService }]; }, { favorites: [{
|
|
24799
24904
|
type: i0.Input
|
|
24800
24905
|
}], history: [{
|
|
24801
24906
|
type: i0.Input
|