ng-miam 9.3.17 → 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 +182 -98
- 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/promotion-badge/promotion-badge.component.js +30 -19
- package/esm2015/lib/_services/recipes.service.js +1 -1
- package/esm2015/lib/_types/recipe-filters.js +1 -1
- 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/version.js +2 -2
- package/fesm2015/ng-miam.js +154 -81
- 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/_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
|
@@ -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() {
|
|
@@ -12321,7 +12321,7 @@
|
|
|
12321
12321
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r3.placeOrderFooter && ctx_r3.redirectToCartFooter);
|
|
12322
12322
|
}
|
|
12323
12323
|
}
|
|
12324
|
-
var _c10$
|
|
12324
|
+
var _c10$2 = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
|
|
12325
12325
|
function ModalComponent_ng_container_0_Template(rf, ctx) {
|
|
12326
12326
|
if (rf & 1) {
|
|
12327
12327
|
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -12358,7 +12358,7 @@
|
|
|
12358
12358
|
i0__namespace.ɵɵadvance(1);
|
|
12359
12359
|
i0__namespace.ɵɵproperty("ngClass", ctx_r0.modalStyle);
|
|
12360
12360
|
i0__namespace.ɵɵadvance(2);
|
|
12361
|
-
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));
|
|
12362
12362
|
i0__namespace.ɵɵattribute("aria-labelledby", ctx_r0.title ? "modal-title" : ctx_r0.recipesCount ? "modal-recipe-count" : null);
|
|
12363
12363
|
i0__namespace.ɵɵadvance(4);
|
|
12364
12364
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.title);
|
|
@@ -12369,7 +12369,7 @@
|
|
|
12369
12369
|
}
|
|
12370
12370
|
}
|
|
12371
12371
|
var _c11$3 = [[["", "header", ""]], "*"];
|
|
12372
|
-
var _c12$
|
|
12372
|
+
var _c12$2 = ["[header]", "*"];
|
|
12373
12373
|
var ModalComponent = /** @class */ (function () {
|
|
12374
12374
|
function ModalComponent(contextService, basketTransferService, currencyService) {
|
|
12375
12375
|
this.contextService = contextService;
|
|
@@ -12445,7 +12445,7 @@
|
|
|
12445
12445
|
if (rf & 1) {
|
|
12446
12446
|
i0__namespace.ɵɵlistener("keydown.escape", function ModalComponent_keydown_escape_HostBindingHandler() { return ctx.onEscapeDown(); }, false, i0__namespace.ɵɵresolveWindow);
|
|
12447
12447
|
}
|
|
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$
|
|
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 () {
|
|
12449
12449
|
var i18n_0;
|
|
12450
12450
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
12451
12451
|
var MSG_EXTERNAL_3775647930168967606$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS___1 = goog.getMsg("Utilis\u00E9 dans ");
|
|
@@ -13513,7 +13513,7 @@
|
|
|
13513
13513
|
i18n_12 = MSG_EXTERNAL_2987005241567363499$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS____13;
|
|
13514
13514
|
}
|
|
13515
13515
|
else {
|
|
13516
|
-
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"])));
|
|
13517
13517
|
}
|
|
13518
13518
|
var i18n_14;
|
|
13519
13519
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -13692,7 +13692,7 @@
|
|
|
13692
13692
|
type: i0.Output
|
|
13693
13693
|
}] });
|
|
13694
13694
|
})();
|
|
13695
|
-
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;
|
|
13696
13696
|
|
|
13697
13697
|
var SelectPosButtonDirective = /** @class */ (function () {
|
|
13698
13698
|
function SelectPosButtonDirective(el, contextService, posService) {
|
|
@@ -15322,35 +15322,50 @@
|
|
|
15322
15322
|
})();
|
|
15323
15323
|
var templateObject_1$I;
|
|
15324
15324
|
|
|
15325
|
-
function
|
|
15325
|
+
function PromotionBadgeComponent_div_0_Template(rf, ctx) {
|
|
15326
15326
|
if (rf & 1) {
|
|
15327
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
15328
|
-
i0__namespace.ɵɵelementStart(1, "
|
|
15329
|
-
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);
|
|
15330
15334
|
i0__namespace.ɵɵelementEnd();
|
|
15331
|
-
i0__namespace.ɵɵelementStart(3, "span", 4);
|
|
15332
|
-
i0__namespace.ɵɵi18n(4, 5);
|
|
15333
15335
|
i0__namespace.ɵɵelementEnd();
|
|
15334
15336
|
i0__namespace.ɵɵelementEnd();
|
|
15335
15337
|
}
|
|
15336
15338
|
if (rf & 2) {
|
|
15337
15339
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
15338
|
-
i0__namespace.ɵɵadvance(
|
|
15340
|
+
i0__namespace.ɵɵadvance(3);
|
|
15339
15341
|
i0__namespace.ɵɵtextInterpolate2(" ", ctx_r0.priceData.discountAmount, "", ctx_r0.priceService.getPriceAmountSuffix(ctx_r0.priceData), " ");
|
|
15340
15342
|
}
|
|
15341
15343
|
}
|
|
15342
15344
|
var PromotionBadgeComponent = /** @class */ (function () {
|
|
15343
|
-
function PromotionBadgeComponent(cdr, priceService) {
|
|
15345
|
+
function PromotionBadgeComponent(cdr, priceService, posService) {
|
|
15344
15346
|
this.cdr = cdr;
|
|
15345
15347
|
this.priceService = priceService;
|
|
15348
|
+
this.posService = posService;
|
|
15349
|
+
this.hasSelectedPos = false;
|
|
15346
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
|
+
};
|
|
15347
15358
|
PromotionBadgeComponent.prototype.ngOnChanges = function () {
|
|
15348
15359
|
this.cdr.detectChanges();
|
|
15349
15360
|
};
|
|
15361
|
+
PromotionBadgeComponent.prototype.ngOnDestroy = function () {
|
|
15362
|
+
var _a;
|
|
15363
|
+
(_a = this.posValidSub) === null || _a === void 0 ? void 0 : _a.unsubscribe();
|
|
15364
|
+
};
|
|
15350
15365
|
return PromotionBadgeComponent;
|
|
15351
15366
|
}());
|
|
15352
|
-
PromotionBadgeComponent.ɵfac = function PromotionBadgeComponent_Factory(t) { return new (t || PromotionBadgeComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PriceService)); };
|
|
15353
|
-
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 () {
|
|
15354
15369
|
var i18n_0;
|
|
15355
15370
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
15356
15371
|
var MSG_EXTERNAL_2099073297842949197$$LIB__COMPONENTS_PROMOTION_BADGE_PROMOTION_BADGE_COMPONENT_TS__1 = goog.getMsg("de remise imm\u00E9diate");
|
|
@@ -15359,16 +15374,13 @@
|
|
|
15359
15374
|
else {
|
|
15360
15375
|
i18n_0 = $localize(templateObject_1$H || (templateObject_1$H = __makeTemplateObject([":\u241Fde07fe635ab87dfb62bd5898b01cfef95abf5356\u241F2099073297842949197:de remise imm\u00E9diate"], [":\u241Fde07fe635ab87dfb62bd5898b01cfef95abf5356\u241F2099073297842949197:de remise imm\u00E9diate"])));
|
|
15361
15376
|
}
|
|
15362
|
-
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];
|
|
15363
15378
|
}, template: function PromotionBadgeComponent_Template(rf, ctx) {
|
|
15364
15379
|
if (rf & 1) {
|
|
15365
|
-
i0__namespace.ɵɵ
|
|
15366
|
-
i0__namespace.ɵɵtemplate(1, PromotionBadgeComponent_div_1_Template, 5, 2, "div", 1);
|
|
15367
|
-
i0__namespace.ɵɵelementEnd();
|
|
15380
|
+
i0__namespace.ɵɵtemplate(0, PromotionBadgeComponent_div_0_Template, 6, 2, "div", 0);
|
|
15368
15381
|
}
|
|
15369
15382
|
if (rf & 2) {
|
|
15370
|
-
i0__namespace.ɵɵ
|
|
15371
|
-
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);
|
|
15372
15384
|
}
|
|
15373
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 });
|
|
15374
15386
|
(function () {
|
|
@@ -15381,7 +15393,7 @@
|
|
|
15381
15393
|
encapsulation: i0.ViewEncapsulation.None,
|
|
15382
15394
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
15383
15395
|
}]
|
|
15384
|
-
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PriceService }]; }, { priceData: [{
|
|
15396
|
+
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PriceService }, { type: PointOfSalesService }]; }, { priceData: [{
|
|
15385
15397
|
type: i0.Input
|
|
15386
15398
|
}] });
|
|
15387
15399
|
})();
|
|
@@ -15946,7 +15958,7 @@
|
|
|
15946
15958
|
i18n_12 = MSG_EXTERNAL_7389019358817586225$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS___13;
|
|
15947
15959
|
}
|
|
15948
15960
|
else {
|
|
15949
|
-
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 "])));
|
|
15950
15962
|
}
|
|
15951
15963
|
var i18n_14;
|
|
15952
15964
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -15979,7 +15991,7 @@
|
|
|
15979
15991
|
type: i0.Input
|
|
15980
15992
|
}] });
|
|
15981
15993
|
})();
|
|
15982
|
-
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;
|
|
15983
15995
|
|
|
15984
15996
|
function ProductsPickerComponent_ng_container_3_span_3_Template(rf, ctx) {
|
|
15985
15997
|
if (rf & 1) {
|
|
@@ -16302,7 +16314,7 @@
|
|
|
16302
16314
|
i18n_12 = MSG_EXTERNAL_2791054456946858131$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS__13;
|
|
16303
16315
|
}
|
|
16304
16316
|
else {
|
|
16305
|
-
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."])));
|
|
16306
16318
|
}
|
|
16307
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];
|
|
16308
16320
|
}, template: function ProductsPickerComponent_Template(rf, ctx) {
|
|
@@ -16362,7 +16374,7 @@
|
|
|
16362
16374
|
type: i0.Output
|
|
16363
16375
|
}] });
|
|
16364
16376
|
})();
|
|
16365
|
-
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;
|
|
16366
16378
|
|
|
16367
16379
|
function NoPosSelectedComponent_ng_container_1_Template(rf, ctx) {
|
|
16368
16380
|
if (rf & 1) {
|
|
@@ -16952,7 +16964,7 @@
|
|
|
16952
16964
|
i0__namespace.ɵɵelement(0, "ng-miam-loader");
|
|
16953
16965
|
}
|
|
16954
16966
|
}
|
|
16955
|
-
var _c10$
|
|
16967
|
+
var _c10$1 = function (a0) { return { loading: a0 }; };
|
|
16956
16968
|
function BasketPreviewDisabledComponent_div_10_div_1_button_4_Template(rf, ctx) {
|
|
16957
16969
|
if (rf & 1) {
|
|
16958
16970
|
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -16967,7 +16979,7 @@
|
|
|
16967
16979
|
if (rf & 2) {
|
|
16968
16980
|
var entry_r5 = i0__namespace.ɵɵnextContext().$implicit;
|
|
16969
16981
|
var ctx_r6 = i0__namespace.ɵɵnextContext(2);
|
|
16970
|
-
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]));
|
|
16971
16983
|
i0__namespace.ɵɵadvance(1);
|
|
16972
16984
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r6.loading[entry_r5.id]);
|
|
16973
16985
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -17252,7 +17264,7 @@
|
|
|
17252
17264
|
i0__namespace.ɵɵelement(0, "div", 34);
|
|
17253
17265
|
}
|
|
17254
17266
|
}
|
|
17255
|
-
var _c10
|
|
17267
|
+
var _c10 = function (a0) { return { "miam-basket-preview-line__left__big": a0 }; };
|
|
17256
17268
|
var _c11$1 = function (a0) { return { "disabled": a0 }; };
|
|
17257
17269
|
function BasketPreviewLineComponent_ng_container_0_Template(rf, ctx) {
|
|
17258
17270
|
if (rf & 1) {
|
|
@@ -17310,7 +17322,7 @@
|
|
|
17310
17322
|
i0__namespace.ɵɵadvance(1);
|
|
17311
17323
|
i0__namespace.ɵɵpropertyInterpolate("id", ctx_r0.line.id);
|
|
17312
17324
|
i0__namespace.ɵɵadvance(1);
|
|
17313
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(17, _c10
|
|
17325
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(17, _c10, ctx_r0.contextService.guestsInputOnMyMeals));
|
|
17314
17326
|
i0__namespace.ɵɵadvance(2);
|
|
17315
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);
|
|
17316
17328
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -17349,7 +17361,7 @@
|
|
|
17349
17361
|
i0__namespace.ɵɵelement(0, "div", 34);
|
|
17350
17362
|
}
|
|
17351
17363
|
}
|
|
17352
|
-
var _c12 = function (a0, a1) { return { "disabled": a0, "loading": a1 }; };
|
|
17364
|
+
var _c12$1 = function (a0, a1) { return { "disabled": a0, "loading": a1 }; };
|
|
17353
17365
|
function BasketPreviewLineComponent_ng_template_1_button_3_Template(rf, ctx) {
|
|
17354
17366
|
if (rf & 1) {
|
|
17355
17367
|
var _r38_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -17362,7 +17374,7 @@
|
|
|
17362
17374
|
if (rf & 2) {
|
|
17363
17375
|
var _r35 = i0__namespace.ɵɵreference(3);
|
|
17364
17376
|
var ctx_r19 = i0__namespace.ɵɵnextContext(2);
|
|
17365
|
-
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));
|
|
17366
17378
|
i0__namespace.ɵɵadvance(1);
|
|
17367
17379
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r19.removing)("ngIfElse", _r35);
|
|
17368
17380
|
}
|
|
@@ -18160,7 +18172,7 @@
|
|
|
18160
18172
|
i18n_15 = MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___16;
|
|
18161
18173
|
}
|
|
18162
18174
|
else {
|
|
18163
|
-
i18n_15 = $localize(templateObject_7$
|
|
18175
|
+
i18n_15 = $localize(templateObject_7$b || (templateObject_7$b = __makeTemplateObject([":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "], [":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "])));
|
|
18164
18176
|
}
|
|
18165
18177
|
var i18n_17;
|
|
18166
18178
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -18275,7 +18287,7 @@
|
|
|
18275
18287
|
type: i0.Output
|
|
18276
18288
|
}] });
|
|
18277
18289
|
})();
|
|
18278
|
-
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;
|
|
18279
18291
|
|
|
18280
18292
|
function BasketPreviewProductComponent_div_0_div_19_Template(rf, ctx) {
|
|
18281
18293
|
if (rf & 1) {
|
|
@@ -19212,7 +19224,7 @@
|
|
|
19212
19224
|
i18n_12 = MSG_EXTERNAL_6492937435856655320$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS_____13;
|
|
19213
19225
|
}
|
|
19214
19226
|
else {
|
|
19215
|
-
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"])));
|
|
19216
19228
|
}
|
|
19217
19229
|
var i18n_15;
|
|
19218
19230
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -19357,7 +19369,7 @@
|
|
|
19357
19369
|
args: ['@slide']
|
|
19358
19370
|
}] });
|
|
19359
19371
|
})();
|
|
19360
|
-
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;
|
|
19361
19373
|
|
|
19362
19374
|
function BasketPreviewBlockComponent_div_2_ng_container_1_div_2_Template(rf, ctx) {
|
|
19363
19375
|
if (rf & 1) {
|
|
@@ -19936,7 +19948,7 @@
|
|
|
19936
19948
|
i18n_13 = MSG_EXTERNAL_4182983336835891106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS__14;
|
|
19937
19949
|
}
|
|
19938
19950
|
else {
|
|
19939
|
-
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."])));
|
|
19940
19952
|
}
|
|
19941
19953
|
var i18n_15;
|
|
19942
19954
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20005,7 +20017,7 @@
|
|
|
20005
20017
|
args: [BasketPreviewProductComponent]
|
|
20006
20018
|
}] });
|
|
20007
20019
|
})();
|
|
20008
|
-
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;
|
|
20009
20021
|
|
|
20010
20022
|
var BasketPreviewModule = /** @class */ (function () {
|
|
20011
20023
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -20198,7 +20210,7 @@
|
|
|
20198
20210
|
i18n_12 = MSG_EXTERNAL_4869108346013323377$$LIB__WEB_COMPONENTS_BASKET_TRANSFER_BASKET_TRANSFER_MODAL_BASKET_TRANSFER_MODAL_COMPONENT_TS_13;
|
|
20199
20211
|
}
|
|
20200
20212
|
else {
|
|
20201
|
-
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"])));
|
|
20202
20214
|
}
|
|
20203
20215
|
var i18n_14;
|
|
20204
20216
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20263,7 +20275,7 @@
|
|
|
20263
20275
|
}]
|
|
20264
20276
|
}], function () { return [{ type: BasketTransferService }, { type: BasketsService }, { type: PointOfSalesService }, { type: i0__namespace.ChangeDetectorRef }]; }, null);
|
|
20265
20277
|
})();
|
|
20266
|
-
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;
|
|
20267
20279
|
|
|
20268
20280
|
function BasketTransferLoaderComponent_ng_container_0_Template(rf, ctx) {
|
|
20269
20281
|
if (rf & 1) {
|
|
@@ -20865,7 +20877,7 @@
|
|
|
20865
20877
|
i18n_12 = MSG_EXTERNAL_8748233983301350015$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_13;
|
|
20866
20878
|
}
|
|
20867
20879
|
else {
|
|
20868
|
-
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 ?"])));
|
|
20869
20881
|
}
|
|
20870
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];
|
|
20871
20883
|
}, template: function ListScanComponent_Template(rf, ctx) {
|
|
@@ -20913,7 +20925,7 @@
|
|
|
20913
20925
|
type: i0.Output
|
|
20914
20926
|
}] });
|
|
20915
20927
|
})();
|
|
20916
|
-
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;
|
|
20917
20929
|
|
|
20918
20930
|
var ListScanModule = /** @class */ (function () {
|
|
20919
20931
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -22484,42 +22496,64 @@
|
|
|
22484
22496
|
function CatalogListComponent_div_1_ng_template_3_div_0_Template(rf, ctx) {
|
|
22485
22497
|
if (rf & 1) {
|
|
22486
22498
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
22487
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
22499
|
+
i0__namespace.ɵɵelementStart(1, "div", 18);
|
|
22488
22500
|
i0__namespace.ɵɵelementStart(2, "span");
|
|
22489
|
-
i0__namespace.ɵɵi18n(3,
|
|
22501
|
+
i0__namespace.ɵɵi18n(3, 19);
|
|
22490
22502
|
i0__namespace.ɵɵelementEnd();
|
|
22491
22503
|
i0__namespace.ɵɵelementEnd();
|
|
22492
22504
|
i0__namespace.ɵɵelementEnd();
|
|
22493
22505
|
}
|
|
22494
22506
|
}
|
|
22495
|
-
function
|
|
22507
|
+
function CatalogListComponent_div_1_ng_template_3_ng_template_1_div_0_Template(rf, ctx) {
|
|
22496
22508
|
if (rf & 1) {
|
|
22497
|
-
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);
|
|
22498
22521
|
i0__namespace.ɵɵpipe(1, "async");
|
|
22499
22522
|
}
|
|
22500
22523
|
if (rf & 2) {
|
|
22501
|
-
i0__namespace.ɵɵnextContext();
|
|
22524
|
+
i0__namespace.ɵɵnextContext(2);
|
|
22502
22525
|
var _r8 = i0__namespace.ɵɵreference(6);
|
|
22503
|
-
var
|
|
22504
|
-
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);
|
|
22505
22539
|
}
|
|
22506
22540
|
}
|
|
22507
22541
|
function CatalogListComponent_div_1_ng_template_5_Template(rf, ctx) {
|
|
22508
22542
|
if (rf & 1) {
|
|
22509
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
22543
|
+
i0__namespace.ɵɵelementStart(0, "div", 22);
|
|
22510
22544
|
i0__namespace.ɵɵelementStart(1, "span");
|
|
22511
|
-
i0__namespace.ɵɵi18n(2,
|
|
22545
|
+
i0__namespace.ɵɵi18n(2, 23);
|
|
22512
22546
|
i0__namespace.ɵɵelementEnd();
|
|
22513
22547
|
i0__namespace.ɵɵelementEnd();
|
|
22514
22548
|
}
|
|
22515
22549
|
}
|
|
22516
|
-
var
|
|
22550
|
+
var _c12 = function (a0, a1) { return { "icon-filtering": a0, "icon-not-filtering": a1 }; };
|
|
22517
22551
|
function CatalogListComponent_div_1_Template(rf, ctx) {
|
|
22518
22552
|
if (rf & 1) {
|
|
22519
22553
|
i0__namespace.ɵɵelementStart(0, "div", 6);
|
|
22520
22554
|
i0__namespace.ɵɵelement(1, "ng-miam-icon", 7);
|
|
22521
22555
|
i0__namespace.ɵɵtemplate(2, CatalogListComponent_div_1_div_2_Template, 8, 1, "div", 8);
|
|
22522
|
-
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);
|
|
22523
22557
|
i0__namespace.ɵɵtemplate(5, CatalogListComponent_div_1_ng_template_5_Template, 3, 0, "ng-template", null, 10, i0__namespace.ɵɵtemplateRefExtractor);
|
|
22524
22558
|
i0__namespace.ɵɵelementEnd();
|
|
22525
22559
|
}
|
|
@@ -22527,80 +22561,80 @@
|
|
|
22527
22561
|
var _r6 = i0__namespace.ɵɵreference(4);
|
|
22528
22562
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
22529
22563
|
i0__namespace.ɵɵadvance(1);
|
|
22530
|
-
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()));
|
|
22531
22565
|
i0__namespace.ɵɵadvance(1);
|
|
22532
22566
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.isFiltering())("ngIfElse", _r6);
|
|
22533
22567
|
}
|
|
22534
22568
|
}
|
|
22535
22569
|
function CatalogListComponent_div_3_Template(rf, ctx) {
|
|
22536
22570
|
if (rf & 1) {
|
|
22537
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
22571
|
+
i0__namespace.ɵɵelementStart(0, "div", 24);
|
|
22538
22572
|
i0__namespace.ɵɵelement(1, "ng-miam-loader");
|
|
22539
22573
|
i0__namespace.ɵɵelementStart(2, "div");
|
|
22540
|
-
i0__namespace.ɵɵi18n(3,
|
|
22574
|
+
i0__namespace.ɵɵi18n(3, 25);
|
|
22541
22575
|
i0__namespace.ɵɵelementEnd();
|
|
22542
22576
|
i0__namespace.ɵɵelementEnd();
|
|
22543
22577
|
}
|
|
22544
22578
|
}
|
|
22545
22579
|
function CatalogListComponent_ng_template_6_Template(rf, ctx) {
|
|
22546
22580
|
if (rf & 1) {
|
|
22547
|
-
var
|
|
22548
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card",
|
|
22549
|
-
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); });
|
|
22550
22584
|
i0__namespace.ɵɵelementEnd();
|
|
22551
22585
|
}
|
|
22552
22586
|
if (rf & 2) {
|
|
22553
|
-
var
|
|
22587
|
+
var recipe_r15 = ctx.recipe;
|
|
22554
22588
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
22555
|
-
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);
|
|
22556
22590
|
}
|
|
22557
22591
|
}
|
|
22558
|
-
var
|
|
22592
|
+
var _c15 = function (a0) { return { recipe: a0 }; };
|
|
22559
22593
|
function CatalogListComponent_ng_container_8_ng_container_1_Template(rf, ctx) {
|
|
22560
22594
|
if (rf & 1) {
|
|
22561
|
-
var
|
|
22595
|
+
var _r23_1 = i0__namespace.ɵɵgetCurrentView();
|
|
22562
22596
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
22563
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
22564
|
-
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(); });
|
|
22565
22599
|
i0__namespace.ɵɵpipe(2, "async");
|
|
22566
|
-
i0__namespace.ɵɵelementContainer(3,
|
|
22600
|
+
i0__namespace.ɵɵelementContainer(3, 29);
|
|
22567
22601
|
i0__namespace.ɵɵelementEnd();
|
|
22568
22602
|
i0__namespace.ɵɵelementContainerEnd();
|
|
22569
22603
|
}
|
|
22570
22604
|
if (rf & 2) {
|
|
22571
|
-
var
|
|
22572
|
-
var
|
|
22605
|
+
var recipe_r18 = i0__namespace.ɵɵnextContext().$implicit;
|
|
22606
|
+
var ctx_r20 = i0__namespace.ɵɵnextContext();
|
|
22573
22607
|
var _r2 = i0__namespace.ɵɵreference(7);
|
|
22574
22608
|
i0__namespace.ɵɵadvance(1);
|
|
22575
|
-
i0__namespace.ɵɵproperty("isLoading", i0__namespace.ɵɵpipeBind1(2, 3,
|
|
22609
|
+
i0__namespace.ɵɵproperty("isLoading", i0__namespace.ɵɵpipeBind1(2, 3, ctx_r20.loading));
|
|
22576
22610
|
i0__namespace.ɵɵadvance(2);
|
|
22577
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(5,
|
|
22611
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(5, _c15, recipe_r18));
|
|
22578
22612
|
}
|
|
22579
22613
|
}
|
|
22580
22614
|
function CatalogListComponent_ng_container_8_ng_container_2_Template(rf, ctx) {
|
|
22581
22615
|
if (rf & 1) {
|
|
22582
|
-
i0__namespace.ɵɵelementContainer(0,
|
|
22616
|
+
i0__namespace.ɵɵelementContainer(0, 29);
|
|
22583
22617
|
}
|
|
22584
22618
|
if (rf & 2) {
|
|
22585
|
-
var
|
|
22619
|
+
var recipe_r18 = i0__namespace.ɵɵnextContext().$implicit;
|
|
22586
22620
|
i0__namespace.ɵɵnextContext();
|
|
22587
22621
|
var _r2 = i0__namespace.ɵɵreference(7);
|
|
22588
|
-
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2,
|
|
22622
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c15, recipe_r18));
|
|
22589
22623
|
}
|
|
22590
22624
|
}
|
|
22591
22625
|
function CatalogListComponent_ng_container_8_Template(rf, ctx) {
|
|
22592
22626
|
if (rf & 1) {
|
|
22593
22627
|
i0__namespace.ɵɵelementContainerStart(0);
|
|
22594
22628
|
i0__namespace.ɵɵtemplate(1, CatalogListComponent_ng_container_8_ng_container_1_Template, 4, 7, "ng-container", 13);
|
|
22595
|
-
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);
|
|
22596
22630
|
i0__namespace.ɵɵelementContainerEnd();
|
|
22597
22631
|
}
|
|
22598
22632
|
if (rf & 2) {
|
|
22599
|
-
var
|
|
22633
|
+
var isLast_r19 = ctx.last;
|
|
22600
22634
|
i0__namespace.ɵɵadvance(1);
|
|
22601
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
22635
|
+
i0__namespace.ɵɵproperty("ngIf", isLast_r19);
|
|
22602
22636
|
i0__namespace.ɵɵadvance(1);
|
|
22603
|
-
i0__namespace.ɵɵproperty("ngIf", !
|
|
22637
|
+
i0__namespace.ɵɵproperty("ngIf", !isLast_r19);
|
|
22604
22638
|
}
|
|
22605
22639
|
}
|
|
22606
22640
|
var recipeIncludes$2 = ['recipe-provider', 'sponsors', 'tags'];
|
|
@@ -22796,6 +22830,10 @@
|
|
|
22796
22830
|
!this.isFieldEmpty(this.filters.cost) ||
|
|
22797
22831
|
!this.isFieldEmpty(this.filters.time);
|
|
22798
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
|
+
};
|
|
22799
22837
|
CatalogListComponent.prototype.trackByFn = function (index, recipe) {
|
|
22800
22838
|
return recipe.id;
|
|
22801
22839
|
};
|
|
@@ -22863,29 +22901,37 @@
|
|
|
22863
22901
|
}
|
|
22864
22902
|
var i18n_6;
|
|
22865
22903
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
22866
|
-
var
|
|
22867
|
-
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;
|
|
22868
22906
|
}
|
|
22869
22907
|
else {
|
|
22870
|
-
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"])));
|
|
22871
22909
|
}
|
|
22872
22910
|
var i18n_8;
|
|
22873
22911
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
22874
|
-
var
|
|
22875
|
-
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;
|
|
22876
22914
|
}
|
|
22877
22915
|
else {
|
|
22878
|
-
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"])));
|
|
22879
22917
|
}
|
|
22880
|
-
var
|
|
22918
|
+
var i18n_10;
|
|
22881
22919
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
22882
|
-
var
|
|
22883
|
-
|
|
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;
|
|
22884
22922
|
}
|
|
22885
22923
|
else {
|
|
22886
|
-
|
|
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."])));
|
|
22887
22925
|
}
|
|
22888
|
-
|
|
22926
|
+
var i18n_13;
|
|
22927
|
+
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
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;
|
|
22930
|
+
}
|
|
22931
|
+
else {
|
|
22932
|
+
i18n_13 = $localize(templateObject_7$6 || (templateObject_7$6 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
|
|
22933
|
+
}
|
|
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"]];
|
|
22889
22935
|
}, template: function CatalogListComponent_Template(rf, ctx) {
|
|
22890
22936
|
if (rf & 1) {
|
|
22891
22937
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -22949,7 +22995,7 @@
|
|
|
22949
22995
|
args: [RecipeCardComponent]
|
|
22950
22996
|
}] });
|
|
22951
22997
|
})();
|
|
22952
|
-
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;
|
|
22953
22999
|
|
|
22954
23000
|
function MealsPlannerCatalogComponent_div_14_Template(rf, ctx) {
|
|
22955
23001
|
if (rf & 1) {
|
|
@@ -24618,11 +24664,13 @@
|
|
|
24618
24664
|
}
|
|
24619
24665
|
var _c11 = function (a0, a1) { return { "my-space": a0, "expanded": a1 }; };
|
|
24620
24666
|
var CatalogToolbarComponent = /** @class */ (function () {
|
|
24621
|
-
function CatalogToolbarComponent(cdr, preferencesService, context, userService) {
|
|
24667
|
+
function CatalogToolbarComponent(cdr, preferencesService, context, userService, posService, recipesService) {
|
|
24622
24668
|
this.cdr = cdr;
|
|
24623
24669
|
this.preferencesService = preferencesService;
|
|
24624
24670
|
this.context = context;
|
|
24625
24671
|
this.userService = userService;
|
|
24672
|
+
this.posService = posService;
|
|
24673
|
+
this.recipesService = recipesService;
|
|
24626
24674
|
this.filterBadgeCount = 0;
|
|
24627
24675
|
this.reduced = false;
|
|
24628
24676
|
this.filterButtonPressed = new i0.EventEmitter();
|
|
@@ -24635,14 +24683,45 @@
|
|
|
24635
24683
|
this.preferencesBadgeCount = 0;
|
|
24636
24684
|
this.searchExpanded = false;
|
|
24637
24685
|
this.preferencesActivated = false;
|
|
24686
|
+
this.canShowPromotions = false;
|
|
24638
24687
|
this.subscriptions = [];
|
|
24639
24688
|
}
|
|
24640
24689
|
CatalogToolbarComponent.prototype.ngOnInit = function () {
|
|
24641
24690
|
var _this = this;
|
|
24642
|
-
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;
|
|
24643
24723
|
_this.cdr.detectChanges();
|
|
24644
|
-
}), this.
|
|
24645
|
-
_this.preferencesBadgeCount = number;
|
|
24724
|
+
}), this.context.orderHistoryEnabled$.subscribe(function () {
|
|
24646
24725
|
_this.cdr.detectChanges();
|
|
24647
24726
|
}), this.userService.preferencesActivated$.subscribe(function (activated) {
|
|
24648
24727
|
_this.preferencesActivated = activated;
|
|
@@ -24712,9 +24791,14 @@
|
|
|
24712
24791
|
this.cdr.detectChanges();
|
|
24713
24792
|
}
|
|
24714
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
|
+
};
|
|
24715
24799
|
return CatalogToolbarComponent;
|
|
24716
24800
|
}());
|
|
24717
|
-
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)); };
|
|
24718
24802
|
CatalogToolbarComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CatalogToolbarComponent, selectors: [["ng-miam-catalog-toolbar"]], viewQuery: function CatalogToolbarComponent_Query(rf, ctx) {
|
|
24719
24803
|
if (rf & 1) {
|
|
24720
24804
|
i0__namespace.ɵɵviewQuery(_c0$4, 1);
|
|
@@ -24797,7 +24881,7 @@
|
|
|
24797
24881
|
i0__namespace.ɵɵadvance(3);
|
|
24798
24882
|
i0__namespace.ɵɵproperty("ngIf", ctx.searchExpanded || ctx.history || ctx.favorites);
|
|
24799
24883
|
i0__namespace.ɵɵadvance(1);
|
|
24800
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.home);
|
|
24884
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.home && ctx.canShowPromotions);
|
|
24801
24885
|
i0__namespace.ɵɵadvance(1);
|
|
24802
24886
|
i0__namespace.ɵɵproperty("ngIf", ctx.home);
|
|
24803
24887
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -24816,7 +24900,7 @@
|
|
|
24816
24900
|
encapsulation: i0.ViewEncapsulation.None,
|
|
24817
24901
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
24818
24902
|
}]
|
|
24819
|
-
}], 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: [{
|
|
24820
24904
|
type: i0.Input
|
|
24821
24905
|
}], history: [{
|
|
24822
24906
|
type: i0.Input
|