ng-miam 8.8.1 → 8.8.3
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 +252 -187
- 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/product-addition-card/product-addition-card.component.js +8 -8
- package/esm2015/lib/_components/product-card/product-card.component.js +9 -8
- package/esm2015/lib/_services/baskets-synchronizing/baskets-synchronizer.service.js +24 -7
- package/esm2015/lib/_services/baskets.service.js +4 -2
- package/esm2015/lib/_services/index.js +1 -2
- package/esm2015/lib/_services/interceptor.service.js +2 -2
- package/esm2015/lib/_services/product-replacement.service.js +13 -4
- package/esm2015/lib/_services/recipe-details.service.js +1 -1
- package/esm2015/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.js +12 -9
- package/esm2015/lib/_web-components/basket-preview/basket-preview-product/basket-preview-product.component.js +23 -4
- package/esm2015/lib/_web-components/basket-preview/replace-item/replace-item.component.js +10 -8
- package/esm2015/lib/_web-components/list-scan/basket-preview/basket-preview.component.js +2 -2
- package/esm2015/lib/_web-components/no-supplier-onboarding/no-supplier-onboarding.component.js +4 -4
- package/esm2015/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.js +22 -9
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +11 -12
- package/esm2015/lib/_web-components/warning-store-locator/warning-store-locator.component.js +27 -7
- package/fesm2015/ng-miam.js +151 -89
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_components/product-addition-card/product-addition-card.component.d.ts +3 -3
- package/lib/_components/product-addition-card/product-addition-card.component.d.ts.map +1 -1
- package/lib/_components/product-card/product-card.component.d.ts +3 -2
- package/lib/_components/product-card/product-card.component.d.ts.map +1 -1
- package/lib/_services/baskets-synchronizing/baskets-synchronizer.service.d.ts +6 -0
- package/lib/_services/baskets-synchronizing/baskets-synchronizer.service.d.ts.map +1 -1
- package/lib/_services/baskets.service.d.ts +1 -0
- package/lib/_services/baskets.service.d.ts.map +1 -1
- package/lib/_services/index.d.ts +0 -1
- package/lib/_services/index.d.ts.map +1 -1
- package/lib/_services/product-replacement.service.d.ts +7 -2
- package/lib/_services/product-replacement.service.d.ts.map +1 -1
- package/lib/_services/recipe-details.service.d.ts +0 -1
- package/lib/_services/recipe-details.service.d.ts.map +1 -1
- package/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.d.ts +2 -3
- package/lib/_web-components/basket-preview/basket-preview-block/basket-preview-block.component.d.ts.map +1 -1
- package/lib/_web-components/basket-preview/basket-preview-product/basket-preview-product.component.d.ts +1 -0
- package/lib/_web-components/basket-preview/basket-preview-product/basket-preview-product.component.d.ts.map +1 -1
- package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts +3 -3
- package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts +2 -1
- package/lib/_web-components/recipe-cards/recipe-card-cta/recipe-card-cta.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts +2 -3
- package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts.map +1 -1
- package/package.json +1 -1
- package/esm2015/lib/_services/product-addition.service.js +0 -25
- package/lib/_services/product-addition.service.d.ts +0 -12
- package/lib/_services/product-addition.service.d.ts.map +0 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -4131,6 +4131,7 @@
|
|
|
4131
4131
|
_this.basketIsFetching = false;
|
|
4132
4132
|
_this.basketPreviewIsCalculating = false;
|
|
4133
4133
|
_this.basketInitCalled = false;
|
|
4134
|
+
_this.confirming = new rxjs.BehaviorSubject(false);
|
|
4134
4135
|
_this.basketActionsQueue = new rxjs.BehaviorSubject([]);
|
|
4135
4136
|
_this._entries$ = new rxjs.BehaviorSubject([]);
|
|
4136
4137
|
_this.actionsBeingProcessed = new rxjs.BehaviorSubject([]);
|
|
@@ -4363,13 +4364,14 @@
|
|
|
4363
4364
|
*/
|
|
4364
4365
|
BasketsService.prototype.confirmPaymentAndBasket = function (totalPrice) {
|
|
4365
4366
|
var _this = this;
|
|
4367
|
+
this.confirming.next(true);
|
|
4366
4368
|
return this.waitForBasket.pipe(operators.switchMap(function (basket) {
|
|
4367
4369
|
if (+totalPrice > 0 && basket.totalPrice > 0) {
|
|
4368
4370
|
_this.analyticsService.sendEventWhenReady(_this.analyticsService.EVENT_PAYMENT_CONFIRMED, null, _this.eventProps(basket, totalPrice));
|
|
4369
4371
|
return _this.confirmBasket(basket, totalPrice);
|
|
4370
4372
|
}
|
|
4371
4373
|
return _this._basket$;
|
|
4372
|
-
}));
|
|
4374
|
+
}), operators.tap(function () { return _this.confirming.next(false); }));
|
|
4373
4375
|
};
|
|
4374
4376
|
/**
|
|
4375
4377
|
* Tries to confirm basket. Sends analytic event and refresh current basket on successfull confirmation
|
|
@@ -5340,6 +5342,7 @@
|
|
|
5340
5342
|
this.supplierService = supplierService;
|
|
5341
5343
|
this.ignoreUpdatesFromMiam = false;
|
|
5342
5344
|
this.firstMiamBasketProcess = true;
|
|
5345
|
+
this.lockWhileConfirming = new rxjs.BehaviorSubject(false);
|
|
5343
5346
|
/**
|
|
5344
5347
|
* This method needs to be passed to Miam by the retailer
|
|
5345
5348
|
*/
|
|
@@ -5349,6 +5352,7 @@
|
|
|
5349
5352
|
};
|
|
5350
5353
|
// Begin listening for miam's basket (will not fetch basket automatically)
|
|
5351
5354
|
this.supplierService.supplier$.pipe(operators.skipWhile(function (s) { return !s; }), operators.take(1), operators.tap(function () {
|
|
5355
|
+
_this.listenToConfirm();
|
|
5352
5356
|
_this.listenToMiam();
|
|
5353
5357
|
})).subscribe();
|
|
5354
5358
|
}
|
|
@@ -5368,6 +5372,19 @@
|
|
|
5368
5372
|
enumerable: false,
|
|
5369
5373
|
configurable: true
|
|
5370
5374
|
});
|
|
5375
|
+
/**
|
|
5376
|
+
* When basketsService.confirming's last emitted value was true and current emitted value is false,
|
|
5377
|
+
* Reset basket-sync
|
|
5378
|
+
*/
|
|
5379
|
+
BasketsSynchronizerService.prototype.listenToConfirm = function () {
|
|
5380
|
+
var _this = this;
|
|
5381
|
+
this.basketsService.confirming.pipe(operators.skipWhile(function (confirming) { return confirming === _this.lockWhileConfirming.value; })).subscribe(function (confirming) {
|
|
5382
|
+
if (!confirming && _this.lockWhileConfirming.value) {
|
|
5383
|
+
_this.resetMiam();
|
|
5384
|
+
}
|
|
5385
|
+
_this.lockWhileConfirming.next(confirming);
|
|
5386
|
+
});
|
|
5387
|
+
};
|
|
5371
5388
|
/**
|
|
5372
5389
|
* Start listening on Miam's basket
|
|
5373
5390
|
*/
|
|
@@ -5529,14 +5546,17 @@
|
|
|
5529
5546
|
* @param retailerBasket current basket of the retailer
|
|
5530
5547
|
*/
|
|
5531
5548
|
BasketsSynchronizerService.prototype.retailerBasketChanged = function (retailerBasket) {
|
|
5549
|
+
var _this = this;
|
|
5532
5550
|
// eslint-disable-next-line no-console
|
|
5533
5551
|
console.debug("[Miam] Update received from retailer\n - " + JSON.stringify(retailerBasket) + "\n - First retailer basket was : " + JSON.stringify(this.firstRetailerBasket));
|
|
5534
|
-
|
|
5535
|
-
|
|
5536
|
-
|
|
5537
|
-
|
|
5538
|
-
|
|
5539
|
-
|
|
5552
|
+
this.lockWhileConfirming.pipe(operators.skipWhile(function (locked) { return locked; }), operators.take(1)).subscribe(function () {
|
|
5553
|
+
if (!_this.isReady()) {
|
|
5554
|
+
return _this.initFirstRetailerBasket(retailerBasket);
|
|
5555
|
+
}
|
|
5556
|
+
_this.isProcessingRetailerEvent = true;
|
|
5557
|
+
var toRemoveFromMiam = _this.comparatorService.updateReceivedFromRetailer(retailerBasket);
|
|
5558
|
+
_this.sendUpdateToMiam(toRemoveFromMiam);
|
|
5559
|
+
});
|
|
5540
5560
|
};
|
|
5541
5561
|
/**
|
|
5542
5562
|
* Handle Payment and confirm Miam's basket before restarting the synchronization by resetting retailer's basket
|
|
@@ -8814,7 +8834,7 @@
|
|
|
8814
8834
|
MiamInterceptor.prototype.setMiamHeaders = function (request) {
|
|
8815
8835
|
var headersToAdd = {
|
|
8816
8836
|
'miam-origin': this.context.origin.value,
|
|
8817
|
-
'miam-front-version': '8.8.
|
|
8837
|
+
'miam-front-version': '8.8.2',
|
|
8818
8838
|
'miam-front-type': 'web',
|
|
8819
8839
|
'miam-api-version': '4.7.0'
|
|
8820
8840
|
};
|
|
@@ -8947,41 +8967,25 @@
|
|
|
8947
8967
|
}], function () { return [{ type: BasketsService }]; }, null);
|
|
8948
8968
|
})();
|
|
8949
8969
|
|
|
8950
|
-
var ProductAdditionService = /** @class */ (function () {
|
|
8951
|
-
function ProductAdditionService() {
|
|
8952
|
-
this.isModalOpen$ = new rxjs.BehaviorSubject(false);
|
|
8953
|
-
this.productAdded$ = new rxjs.BehaviorSubject(false);
|
|
8954
|
-
}
|
|
8955
|
-
ProductAdditionService.prototype.changeModalState = function (state) {
|
|
8956
|
-
this.isModalOpen$.next(state);
|
|
8957
|
-
};
|
|
8958
|
-
ProductAdditionService.prototype.showProductSection = function () {
|
|
8959
|
-
this.productAdded$.next(true);
|
|
8960
|
-
this.changeModalState(false);
|
|
8961
|
-
};
|
|
8962
|
-
return ProductAdditionService;
|
|
8963
|
-
}());
|
|
8964
|
-
ProductAdditionService.ɵfac = function ProductAdditionService_Factory(t) { return new (t || ProductAdditionService)(); };
|
|
8965
|
-
ProductAdditionService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: ProductAdditionService, factory: ProductAdditionService.ɵfac, providedIn: 'root' });
|
|
8966
|
-
(function () {
|
|
8967
|
-
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ProductAdditionService, [{
|
|
8968
|
-
type: i0.Injectable,
|
|
8969
|
-
args: [{
|
|
8970
|
-
providedIn: 'root'
|
|
8971
|
-
}]
|
|
8972
|
-
}], function () { return []; }, null);
|
|
8973
|
-
})();
|
|
8974
|
-
|
|
8975
8970
|
var ProductReplacementService = /** @class */ (function () {
|
|
8976
8971
|
function ProductReplacementService() {
|
|
8977
|
-
this.
|
|
8972
|
+
this.replaceModalOpen$ = new rxjs.BehaviorSubject(false);
|
|
8973
|
+
this.additionModalOpen$ = new rxjs.BehaviorSubject(false);
|
|
8974
|
+
this.productAdded$ = new rxjs.BehaviorSubject(false);
|
|
8978
8975
|
}
|
|
8979
|
-
ProductReplacementService.prototype.
|
|
8980
|
-
this.
|
|
8976
|
+
ProductReplacementService.prototype.changeReplaceModalState = function (state) {
|
|
8977
|
+
this.replaceModalOpen$.next(state);
|
|
8981
8978
|
};
|
|
8982
8979
|
ProductReplacementService.prototype.updateProductToReplace = function (product) {
|
|
8983
8980
|
this.productToReplace = product;
|
|
8984
8981
|
};
|
|
8982
|
+
ProductReplacementService.prototype.changeAdditionModalState = function (state) {
|
|
8983
|
+
this.additionModalOpen$.next(state);
|
|
8984
|
+
};
|
|
8985
|
+
ProductReplacementService.prototype.showProductSection = function () {
|
|
8986
|
+
this.productAdded$.next(true);
|
|
8987
|
+
this.changeAdditionModalState(false);
|
|
8988
|
+
};
|
|
8985
8989
|
return ProductReplacementService;
|
|
8986
8990
|
}());
|
|
8987
8991
|
ProductReplacementService.ɵfac = function ProductReplacementService_Factory(t) { return new (t || ProductReplacementService)(); };
|
|
@@ -9877,7 +9881,7 @@
|
|
|
9877
9881
|
i18n_4 = MSG_EXTERNAL_4122997114884311871$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS____5;
|
|
9878
9882
|
}
|
|
9879
9883
|
else {
|
|
9880
|
-
i18n_4 = $localize(templateObject_3$
|
|
9884
|
+
i18n_4 = $localize(templateObject_3$x || (templateObject_3$x = __makeTemplateObject([":\u241Fddc8d487566c6a50356eb269a281761ef8ccffa8\u241F4122997114884311871:dans mon panier"], [":\u241Fddc8d487566c6a50356eb269a281761ef8ccffa8\u241F4122997114884311871:dans mon panier"])));
|
|
9881
9885
|
}
|
|
9882
9886
|
var i18n_6;
|
|
9883
9887
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -9885,7 +9889,7 @@
|
|
|
9885
9889
|
i18n_6 = MSG_EXTERNAL_6395936232189121511$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS____7;
|
|
9886
9890
|
}
|
|
9887
9891
|
else {
|
|
9888
|
-
i18n_6 = $localize(templateObject_4$
|
|
9892
|
+
i18n_6 = $localize(templateObject_4$s || (templateObject_4$s = __makeTemplateObject([":\u241Fd3276a66cd37a042eef60b47ad3ac37a6935cb08\u241F6395936232189121511:Passer commande"], [":\u241Fd3276a66cd37a042eef60b47ad3ac37a6935cb08\u241F6395936232189121511:Passer commande"])));
|
|
9889
9893
|
}
|
|
9890
9894
|
return [[4, "ngIf"], [1, "miam-modal__container", 3, "ngClass"], [1, "miam-shadow-overlay", 3, "click"], [1, "miam-modal", "miam-ds-text", 3, "ngClass"], [1, "miam-modal__content-container"], [1, "miam-modal__header-container"], [1, "miam-modal__header"], ["class", "miam-modal__title miam-ds-text size-xl weight-xxl", 4, "ngIf"], ["class", "miam-modal__title miam-ds-text", 4, "ngIf"], [1, "miam-modal__close-icon", "miam-ds-button", "ghost", 3, "click"], [1, "miam-modal__content__scroll-protection"], [1, "miam-modal__content", "miam-ds-text"], ["class", "miam-modal__actions", 4, "ngIf"], [1, "miam-modal__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-modal__title", "miam-ds-text"], i18n_0, i18n_2, [1, "miam-modal__actions"], [1, "miam-modal__interactions"], ["class", "miam-ds-button secondary", 3, "disabled", "click", 4, "ngIf"], [1, "miam-ds-button", 3, "disabled", "ngClass", "click"], ["class", "miam-ds-loader", 4, "ngIf"], [1, "miam-ds-button", "secondary", 3, "disabled", "click"], [1, "miam-ds-loader"], [1, "miam-modal__place-order"], [1, "miam-modal__place-order-price"], [1, "miam-modal__total-price", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-modal__total-price-label", "miam-ds-text", "size-s"], i18n_4, [1, "miam-modal__place-order-cta", "miam-ds-button", 3, "ngClass", "click"], i18n_6];
|
|
9891
9895
|
}, template: function ModalComponent_Template(rf, ctx) {
|
|
@@ -9946,7 +9950,7 @@
|
|
|
9946
9950
|
args: ['window:keydown.escape']
|
|
9947
9951
|
}] });
|
|
9948
9952
|
})();
|
|
9949
|
-
var templateObject_1$P, templateObject_2$H, templateObject_3$
|
|
9953
|
+
var templateObject_1$P, templateObject_2$H, templateObject_3$x, templateObject_4$s;
|
|
9950
9954
|
|
|
9951
9955
|
function ListInputComponent_div_2_Template(rf, ctx) {
|
|
9952
9956
|
if (rf & 1) {
|
|
@@ -10673,7 +10677,7 @@
|
|
|
10673
10677
|
i18n_4 = MSG_EXTERNAL_5408671121354947038$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS_5;
|
|
10674
10678
|
}
|
|
10675
10679
|
else {
|
|
10676
|
-
i18n_4 = $localize(templateObject_3$
|
|
10680
|
+
i18n_4 = $localize(templateObject_3$w || (templateObject_3$w = __makeTemplateObject([":\u241F6f4549745b3359819ca94563488f5ccd66a5c7a7\u241F5408671121354947038:Ajouter "], [":\u241F6f4549745b3359819ca94563488f5ccd66a5c7a7\u241F5408671121354947038:Ajouter "])));
|
|
10677
10681
|
}
|
|
10678
10682
|
var i18n_6;
|
|
10679
10683
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -10681,7 +10685,7 @@
|
|
|
10681
10685
|
i18n_6 = MSG_EXTERNAL_4078662097036588656$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS_7;
|
|
10682
10686
|
}
|
|
10683
10687
|
else {
|
|
10684
|
-
i18n_6 = $localize(templateObject_4$
|
|
10688
|
+
i18n_6 = $localize(templateObject_4$r || (templateObject_4$r = __makeTemplateObject([":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"], [":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"])));
|
|
10685
10689
|
}
|
|
10686
10690
|
var i18n_8;
|
|
10687
10691
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -10870,7 +10874,7 @@
|
|
|
10870
10874
|
type: i0.Output
|
|
10871
10875
|
}] });
|
|
10872
10876
|
})();
|
|
10873
|
-
var templateObject_1$O, templateObject_2$G, templateObject_3$
|
|
10877
|
+
var templateObject_1$O, templateObject_2$G, templateObject_3$w, templateObject_4$r, templateObject_5$n, templateObject_6$j, templateObject_7$g, templateObject_8$c, templateObject_9$8, templateObject_10$6, templateObject_11$6, templateObject_12$5, templateObject_13$4, templateObject_14$3, templateObject_15$3, templateObject_16$2, templateObject_17$2;
|
|
10874
10878
|
|
|
10875
10879
|
var LoaderComponent = /** @class */ (function () {
|
|
10876
10880
|
function LoaderComponent() {
|
|
@@ -10930,7 +10934,7 @@
|
|
|
10930
10934
|
i18n_4 = MSG_EXTERNAL_6105149763216124630$$LIB__COMPONENTS_MEALS_PLANNER_LINK_MEALS_PLANNER_LINK_COMPONENT_TS_5;
|
|
10931
10935
|
}
|
|
10932
10936
|
else {
|
|
10933
|
-
i18n_4 = $localize(templateObject_3$
|
|
10937
|
+
i18n_4 = $localize(templateObject_3$v || (templateObject_3$v = __makeTemplateObject([":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"], [":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"])));
|
|
10934
10938
|
}
|
|
10935
10939
|
return [[1, "miam-meals-planner-link", 3, "click"], [1, "miam-meals-planner-link__gradient"], [1, "miam-meals-planner-link__content"], [1, "miam-meals-planner-link__title"], i18n_0, [1, "miam-meals-planner-link__description"], i18n_2, [1, "miam-meals-planner-link__cta"], [1, "miam-ds-button", "primary", "reverse"], i18n_4, ["width", "24", "height", "24", 3, "iconName"]];
|
|
10936
10940
|
}, template: function MealsPlannerLinkComponent_Template(rf, ctx) {
|
|
@@ -10976,7 +10980,7 @@
|
|
|
10976
10980
|
}]
|
|
10977
10981
|
}], function () { return [{ type: ContextService }]; }, null);
|
|
10978
10982
|
})();
|
|
10979
|
-
var templateObject_1$N, templateObject_2$F, templateObject_3$
|
|
10983
|
+
var templateObject_1$N, templateObject_2$F, templateObject_3$v;
|
|
10980
10984
|
|
|
10981
10985
|
var _c0$n = ["miamPrice"];
|
|
10982
10986
|
var PriceComponent = /** @class */ (function () {
|
|
@@ -11825,7 +11829,7 @@
|
|
|
11825
11829
|
i18n_4 = MSG_EXTERNAL_3088922289163197887$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_5;
|
|
11826
11830
|
}
|
|
11827
11831
|
else {
|
|
11828
|
-
i18n_4 = $localize(templateObject_3$
|
|
11832
|
+
i18n_4 = $localize(templateObject_3$u || (templateObject_3$u = __makeTemplateObject([":\u241F05233ae9fe87602db5d05c330c57200f3e63fad9\u241F3088922289163197887:Voir "], [":\u241F05233ae9fe87602db5d05c330c57200f3e63fad9\u241F3088922289163197887:Voir "])));
|
|
11829
11833
|
}
|
|
11830
11834
|
var i18n_6;
|
|
11831
11835
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -11833,7 +11837,7 @@
|
|
|
11833
11837
|
i18n_6 = MSG_EXTERNAL_3809820644785537818$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS_7;
|
|
11834
11838
|
}
|
|
11835
11839
|
else {
|
|
11836
|
-
i18n_6 = $localize(templateObject_4$
|
|
11840
|
+
i18n_6 = $localize(templateObject_4$q || (templateObject_4$q = __makeTemplateObject([":\u241F2b5c164efaa4ab2f43d98ed7cb742d3424135de9\u241F3809820644785537818:recettes"], [":\u241F2b5c164efaa4ab2f43d98ed7cb742d3424135de9\u241F3809820644785537818:recettes"])));
|
|
11837
11841
|
}
|
|
11838
11842
|
var i18n_8;
|
|
11839
11843
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -12036,7 +12040,7 @@
|
|
|
12036
12040
|
type: i0.Output
|
|
12037
12041
|
}] });
|
|
12038
12042
|
})();
|
|
12039
|
-
var templateObject_1$M, templateObject_2$E, templateObject_3$
|
|
12043
|
+
var templateObject_1$M, templateObject_2$E, templateObject_3$u, templateObject_4$q, templateObject_5$m, templateObject_6$i, templateObject_7$f, templateObject_8$b, templateObject_9$7, templateObject_10$5, templateObject_11$5, templateObject_12$4, templateObject_13$3, templateObject_14$2, templateObject_15$2, templateObject_16$1, templateObject_17$1, templateObject_18$1, templateObject_19$1;
|
|
12040
12044
|
|
|
12041
12045
|
var SelectPosButtonDirective = /** @class */ (function () {
|
|
12042
12046
|
function SelectPosButtonDirective(el, contextService, posService) {
|
|
@@ -12356,7 +12360,7 @@
|
|
|
12356
12360
|
i18n_4 = MSG_EXTERNAL_435913562251126057$$LIB__WEB_COMPONENTS_RECIPE_PRICING_RECIPE_PRICING_COMPONENT_TS_____5;
|
|
12357
12361
|
}
|
|
12358
12362
|
else {
|
|
12359
|
-
i18n_4 = $localize(templateObject_3$
|
|
12363
|
+
i18n_4 = $localize(templateObject_3$t || (templateObject_3$t = __makeTemplateObject([":\u241Fa42043c93efe6e7c1206218147891026d3496f33\u241F435913562251126057:/personne"], [":\u241Fa42043c93efe6e7c1206218147891026d3496f33\u241F435913562251126057:/personne"])));
|
|
12360
12364
|
}
|
|
12361
12365
|
var i18n_6;
|
|
12362
12366
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -12364,7 +12368,7 @@
|
|
|
12364
12368
|
i18n_6 = MSG_EXTERNAL_8969810584578915685$$LIB__WEB_COMPONENTS_RECIPE_PRICING_RECIPE_PRICING_COMPONENT_TS____7;
|
|
12365
12369
|
}
|
|
12366
12370
|
else {
|
|
12367
|
-
i18n_6 = $localize(templateObject_4$
|
|
12371
|
+
i18n_6 = $localize(templateObject_4$p || (templateObject_4$p = __makeTemplateObject([":\u241Fd1284fc0cb4f023efce4ec7e899c9ae8ab78d0d3\u241F8969810584578915685:/pers."], [":\u241Fd1284fc0cb4f023efce4ec7e899c9ae8ab78d0d3\u241F8969810584578915685:/pers."])));
|
|
12368
12372
|
}
|
|
12369
12373
|
return [["class", "miam-recipe-pricing", "ngMiamSelectPosButton", "", 4, "ngIf"], ["ngMiamSelectPosButton", "", 1, "miam-recipe-pricing"], ["class", "miam-recipe-pricing__with-pos", 4, "ngIf"], [1, "miam-recipe-pricing__without-pos"], [1, "miam-ds-button", "ghost", "miam-select-pos-button__open-store-selector-button", 3, "click"], i18n_0, [1, "miam-recipe-pricing__with-pos"], [1, "miam-recipe-pricing__wrapper"], [1, "miam-recipe-pricing__wrapper__price", "miam-ds-text", "size-l", "weight-xxl"], ["class", "miam-recipe-pricing__wrapper__subline miam-ds-text size-xs weight-m", 4, "ngIf", "ngIfElse"], ["defaultGuestsText", ""], [1, "miam-recipe-pricing__total"], i18n_2, [1, "miam-recipe-pricing__wrapper__subline", "miam-ds-text", "size-xs", "weight-m"], [4, "ngIf"], i18n_4, [1, "miam-recipe-pricing__wrapper__subline", "miam-ds-text", "size-m", "weight-m"], i18n_6];
|
|
12370
12374
|
}, template: function RecipePricingComponent_Template(rf, ctx) {
|
|
@@ -12399,7 +12403,7 @@
|
|
|
12399
12403
|
type: i0.Input
|
|
12400
12404
|
}] });
|
|
12401
12405
|
})();
|
|
12402
|
-
var templateObject_1$L, templateObject_2$D, templateObject_3$
|
|
12406
|
+
var templateObject_1$L, templateObject_2$D, templateObject_3$t, templateObject_4$p;
|
|
12403
12407
|
|
|
12404
12408
|
var _c6$1 = function (a0) { return { "font-weight": a0 }; };
|
|
12405
12409
|
var RecipeTypeChooserComponent = /** @class */ (function () {
|
|
@@ -12460,7 +12464,7 @@
|
|
|
12460
12464
|
i18n_4 = MSG_EXTERNAL_8322335486568562833$$LIB__COMPONENTS_RECIPE_TYPE_CHOOSER_RECIPE_TYPE_CHOOSER_COMPONENT_TS_5;
|
|
12461
12465
|
}
|
|
12462
12466
|
else {
|
|
12463
|
-
i18n_4 = $localize(templateObject_3$
|
|
12467
|
+
i18n_4 = $localize(templateObject_3$s || (templateObject_3$s = __makeTemplateObject([":\u241Ffebb2f4f5330f0c670f2ac0d004bdd19758f57e2\u241F8322335486568562833:Un dessert"], [":\u241Ffebb2f4f5330f0c670f2ac0d004bdd19758f57e2\u241F8322335486568562833:Un dessert"])));
|
|
12464
12468
|
}
|
|
12465
12469
|
return [[1, "recipe-type-chooser"], [1, "recipe-type-chooser__item"], [3, "height", "width", "iconName", "click"], [3, "ngStyle"], i18n_0, i18n_2, i18n_4];
|
|
12466
12470
|
}, template: function RecipeTypeChooserComponent_Template(rf, ctx) {
|
|
@@ -12521,7 +12525,7 @@
|
|
|
12521
12525
|
type: i0.Input
|
|
12522
12526
|
}] });
|
|
12523
12527
|
})();
|
|
12524
|
-
var templateObject_1$K, templateObject_2$C, templateObject_3$
|
|
12528
|
+
var templateObject_1$K, templateObject_2$C, templateObject_3$s;
|
|
12525
12529
|
|
|
12526
12530
|
var _c0$j = ["miamLeftOfSliderTrack"];
|
|
12527
12531
|
var _c1$b = ["miamSliderColored"];
|
|
@@ -13966,7 +13970,7 @@
|
|
|
13966
13970
|
}
|
|
13967
13971
|
var ProductCardComponent = /** @class */ (function (_super) {
|
|
13968
13972
|
__extends(ProductCardComponent, _super);
|
|
13969
|
-
function ProductCardComponent(cdr, basketsService, recipeDetailsService, recipesService, analyticsService, ignoredBasketsService, basketActionsService, elementRef, contextService) {
|
|
13973
|
+
function ProductCardComponent(cdr, basketsService, recipeDetailsService, recipesService, analyticsService, ignoredBasketsService, basketActionsService, elementRef, contextService, productReplacementService) {
|
|
13970
13974
|
var _this = _super.call(this, analyticsService) || this;
|
|
13971
13975
|
_this.cdr = cdr;
|
|
13972
13976
|
_this.basketsService = basketsService;
|
|
@@ -13977,6 +13981,7 @@
|
|
|
13977
13981
|
_this.basketActionsService = basketActionsService;
|
|
13978
13982
|
_this.elementRef = elementRef;
|
|
13979
13983
|
_this.contextService = contextService;
|
|
13984
|
+
_this.productReplacementService = productReplacementService;
|
|
13980
13985
|
_this.subscriptions = [];
|
|
13981
13986
|
_this.loading = false;
|
|
13982
13987
|
_this.loadingAddToBasket = false;
|
|
@@ -14069,7 +14074,7 @@
|
|
|
14069
14074
|
this.cdr.detectChanges();
|
|
14070
14075
|
};
|
|
14071
14076
|
ProductCardComponent.prototype.replaceProduct = function (ignoreSelected) {
|
|
14072
|
-
this.
|
|
14077
|
+
this.productReplacementService.scrollBackToBasketEntryId = this.product.basketEntry.id;
|
|
14073
14078
|
this.recipeDetailsService.replaceBasketEntry(this.product.basketEntry, ignoreSelected);
|
|
14074
14079
|
};
|
|
14075
14080
|
ProductCardComponent.prototype.isInXRecipes = function () {
|
|
@@ -14083,7 +14088,7 @@
|
|
|
14083
14088
|
};
|
|
14084
14089
|
ProductCardComponent.prototype.scrollBackToProductCard = function () {
|
|
14085
14090
|
var _this = this;
|
|
14086
|
-
if (this.
|
|
14091
|
+
if (this.productReplacementService.scrollBackToBasketEntryId === this.product.basketEntry.id) {
|
|
14087
14092
|
setTimeout(function () {
|
|
14088
14093
|
var elementId = _this.elementRef.nativeElement.id;
|
|
14089
14094
|
if (document.getElementById(elementId)) {
|
|
@@ -14093,7 +14098,7 @@
|
|
|
14093
14098
|
inline: 'center'
|
|
14094
14099
|
});
|
|
14095
14100
|
_this.cdr.detectChanges();
|
|
14096
|
-
_this.
|
|
14101
|
+
_this.productReplacementService.scrollBackToBasketEntryId = null;
|
|
14097
14102
|
_this.recipeDetailsService.hasReplaced = false;
|
|
14098
14103
|
}
|
|
14099
14104
|
}, 0);
|
|
@@ -14138,7 +14143,7 @@
|
|
|
14138
14143
|
};
|
|
14139
14144
|
return ProductCardComponent;
|
|
14140
14145
|
}(EventTracerComponent));
|
|
14141
|
-
ProductCardComponent.ɵfac = function ProductCardComponent_Factory(t) { return new (t || ProductCardComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(IgnoredIngredientsService), i0__namespace.ɵɵdirectiveInject(BasketActionsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(ContextService)); };
|
|
14146
|
+
ProductCardComponent.ɵfac = function ProductCardComponent_Factory(t) { return new (t || ProductCardComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(IgnoredIngredientsService), i0__namespace.ɵɵdirectiveInject(BasketActionsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(ProductReplacementService)); };
|
|
14142
14147
|
ProductCardComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ProductCardComponent, selectors: [["ng-miam-product-card"]], inputs: { product: "product" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: function () {
|
|
14143
14148
|
var i18n_0;
|
|
14144
14149
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14162,7 +14167,7 @@
|
|
|
14162
14167
|
i18n_4 = MSG_EXTERNAL_5442623736103363122$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS____5;
|
|
14163
14168
|
}
|
|
14164
14169
|
else {
|
|
14165
|
-
i18n_4 = $localize(templateObject_3$
|
|
14170
|
+
i18n_4 = $localize(templateObject_3$r || (templateObject_3$r = __makeTemplateObject([":\u241F2c8c419dc34f3be07156ad9249f03aeb31d34872\u241F5442623736103363122:Ignorer ce produit"], [":\u241F2c8c419dc34f3be07156ad9249f03aeb31d34872\u241F5442623736103363122:Ignorer ce produit"])));
|
|
14166
14171
|
}
|
|
14167
14172
|
var i18n_6;
|
|
14168
14173
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14170,7 +14175,7 @@
|
|
|
14170
14175
|
i18n_6 = MSG_EXTERNAL_4434991115235641711$$LIB__COMPONENTS_PRODUCT_CARD_PRODUCT_CARD_COMPONENT_TS____7;
|
|
14171
14176
|
}
|
|
14172
14177
|
else {
|
|
14173
|
-
i18n_6 = $localize(templateObject_4$
|
|
14178
|
+
i18n_6 = $localize(templateObject_4$o || (templateObject_4$o = __makeTemplateObject([":\u241F0b2d6b8f0c4150bdc5313f3dc99139dc482a9265\u241F4434991115235641711: Cet ingr\u00E9dient ne sera pas ajout\u00E9 \u00E0 votre panier "], [":\u241F0b2d6b8f0c4150bdc5313f3dc99139dc482a9265\u241F4434991115235641711: Cet ingr\u00E9dient ne sera pas ajout\u00E9 \u00E0 votre panier "])));
|
|
14174
14179
|
}
|
|
14175
14180
|
var i18n_8;
|
|
14176
14181
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14223,11 +14228,11 @@
|
|
|
14223
14228
|
encapsulation: i0.ViewEncapsulation.None,
|
|
14224
14229
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
14225
14230
|
}]
|
|
14226
|
-
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: RecipesService }, { type: AnalyticsService }, { type: IgnoredIngredientsService }, { type: BasketActionsService }, { type: i0__namespace.ElementRef }, { type: ContextService }]; }, { product: [{
|
|
14231
|
+
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: RecipesService }, { type: AnalyticsService }, { type: IgnoredIngredientsService }, { type: BasketActionsService }, { type: i0__namespace.ElementRef }, { type: ContextService }, { type: ProductReplacementService }]; }, { product: [{
|
|
14227
14232
|
type: i0.Input
|
|
14228
14233
|
}] });
|
|
14229
14234
|
})();
|
|
14230
|
-
var templateObject_1$I, templateObject_2$A, templateObject_3$
|
|
14235
|
+
var templateObject_1$I, templateObject_2$A, templateObject_3$r, templateObject_4$o, templateObject_5$l, templateObject_6$h, templateObject_7$e, templateObject_8$a;
|
|
14231
14236
|
|
|
14232
14237
|
function ProductsPickerComponent_ng_container_3_span_3_Template(rf, ctx) {
|
|
14233
14238
|
if (rf & 1) {
|
|
@@ -14506,7 +14511,7 @@
|
|
|
14506
14511
|
i18n_4 = MSG_EXTERNAL_2731668650375138999$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS__5;
|
|
14507
14512
|
}
|
|
14508
14513
|
else {
|
|
14509
|
-
i18n_4 = $localize(templateObject_3$
|
|
14514
|
+
i18n_4 = $localize(templateObject_3$q || (templateObject_3$q = __makeTemplateObject([":\u241Fe41275de6f81d16eaa6e8a189c3dc4667c046e6e\u241F2731668650375138999: D\u00E9j\u00E0 dans le placard "], [":\u241Fe41275de6f81d16eaa6e8a189c3dc4667c046e6e\u241F2731668650375138999: D\u00E9j\u00E0 dans le placard "])));
|
|
14510
14515
|
}
|
|
14511
14516
|
var i18n_6;
|
|
14512
14517
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14514,7 +14519,7 @@
|
|
|
14514
14519
|
i18n_6 = MSG_EXTERNAL_7578478170177927970$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS__7;
|
|
14515
14520
|
}
|
|
14516
14521
|
else {
|
|
14517
|
-
i18n_6 = $localize(templateObject_4$
|
|
14522
|
+
i18n_6 = $localize(templateObject_4$n || (templateObject_4$n = __makeTemplateObject([":\u241F197e633392ff553015c1931947781d9ebba476b9\u241F7578478170177927970:Articles indisponibles"], [":\u241F197e633392ff553015c1931947781d9ebba476b9\u241F7578478170177927970:Articles indisponibles"])));
|
|
14518
14523
|
}
|
|
14519
14524
|
var i18n_8;
|
|
14520
14525
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14609,7 +14614,7 @@
|
|
|
14609
14614
|
type: i0.Output
|
|
14610
14615
|
}] });
|
|
14611
14616
|
})();
|
|
14612
|
-
var templateObject_1$H, templateObject_2$z, templateObject_3$
|
|
14617
|
+
var templateObject_1$H, templateObject_2$z, templateObject_3$q, templateObject_4$n, templateObject_5$k, templateObject_6$g, templateObject_7$d, templateObject_8$9;
|
|
14613
14618
|
|
|
14614
14619
|
function NoPosSelectedComponent_ng_container_1_Template(rf, ctx) {
|
|
14615
14620
|
if (rf & 1) {
|
|
@@ -14674,7 +14679,7 @@
|
|
|
14674
14679
|
i18n_4 = MSG_EXTERNAL_2921598154093258344$$LIB__COMPONENTS_NO_POS_SELECTED_NO_POS_SELECTED_COMPONENT_TS__5;
|
|
14675
14680
|
}
|
|
14676
14681
|
else {
|
|
14677
|
-
i18n_4 = $localize(templateObject_3$
|
|
14682
|
+
i18n_4 = $localize(templateObject_3$p || (templateObject_3$p = __makeTemplateObject([":\u241Fd6ca42e0c08ef48759f6fde25c12964a02a6c502\u241F2921598154093258344: Vous pouvez s\u00E9lectionner un autre magasin ou consulter la fiche recette "], [":\u241Fd6ca42e0c08ef48759f6fde25c12964a02a6c502\u241F2921598154093258344: Vous pouvez s\u00E9lectionner un autre magasin ou consulter la fiche recette "])));
|
|
14678
14683
|
}
|
|
14679
14684
|
var i18n_6;
|
|
14680
14685
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14682,7 +14687,7 @@
|
|
|
14682
14687
|
i18n_6 = MSG_EXTERNAL_6530301909461759819$$LIB__COMPONENTS_NO_POS_SELECTED_NO_POS_SELECTED_COMPONENT_TS__7;
|
|
14683
14688
|
}
|
|
14684
14689
|
else {
|
|
14685
|
-
i18n_6 = $localize(templateObject_4$
|
|
14690
|
+
i18n_6 = $localize(templateObject_4$m || (templateObject_4$m = __makeTemplateObject([":\u241F0289bb85752fb91a75d87fa9e26df1d4647099ab\u241F6530301909461759819: Vous n\u2019avez pas s\u00E9lectionn\u00E9 de magasin "], [":\u241F0289bb85752fb91a75d87fa9e26df1d4647099ab\u241F6530301909461759819: Vous n\u2019avez pas s\u00E9lectionn\u00E9 de magasin "])));
|
|
14686
14691
|
}
|
|
14687
14692
|
var i18n_8;
|
|
14688
14693
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14728,15 +14733,15 @@
|
|
|
14728
14733
|
type: i0.Output
|
|
14729
14734
|
}] });
|
|
14730
14735
|
})();
|
|
14731
|
-
var templateObject_1$G, templateObject_2$y, templateObject_3$
|
|
14736
|
+
var templateObject_1$G, templateObject_2$y, templateObject_3$p, templateObject_4$m, templateObject_5$j;
|
|
14732
14737
|
|
|
14733
14738
|
var ProductAdditionCardComponent = /** @class */ (function () {
|
|
14734
|
-
function ProductAdditionCardComponent(
|
|
14735
|
-
this.
|
|
14739
|
+
function ProductAdditionCardComponent(productReplacementService) {
|
|
14740
|
+
this.productReplacementService = productReplacementService;
|
|
14736
14741
|
}
|
|
14737
14742
|
return ProductAdditionCardComponent;
|
|
14738
14743
|
}());
|
|
14739
|
-
ProductAdditionCardComponent.ɵfac = function ProductAdditionCardComponent_Factory(t) { return new (t || ProductAdditionCardComponent)(i0__namespace.ɵɵdirectiveInject(
|
|
14744
|
+
ProductAdditionCardComponent.ɵfac = function ProductAdditionCardComponent_Factory(t) { return new (t || ProductAdditionCardComponent)(i0__namespace.ɵɵdirectiveInject(ProductReplacementService)); };
|
|
14740
14745
|
ProductAdditionCardComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ProductAdditionCardComponent, selectors: [["ng-miam-product-addition-card"]], decls: 6, vars: 0, consts: function () {
|
|
14741
14746
|
var i18n_0;
|
|
14742
14747
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14762,7 +14767,7 @@
|
|
|
14762
14767
|
i0__namespace.ɵɵi18n(2, 2);
|
|
14763
14768
|
i0__namespace.ɵɵelementEnd();
|
|
14764
14769
|
i0__namespace.ɵɵelementStart(3, "button", 3);
|
|
14765
|
-
i0__namespace.ɵɵlistener("click", function ProductAdditionCardComponent_Template_button_click_3_listener() { return ctx.
|
|
14770
|
+
i0__namespace.ɵɵlistener("click", function ProductAdditionCardComponent_Template_button_click_3_listener() { return ctx.productReplacementService.changeAdditionModalState(true); });
|
|
14766
14771
|
i0__namespace.ɵɵelementStart(4, "span");
|
|
14767
14772
|
i0__namespace.ɵɵi18n(5, 4);
|
|
14768
14773
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -14780,7 +14785,7 @@
|
|
|
14780
14785
|
encapsulation: i0.ViewEncapsulation.None,
|
|
14781
14786
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
14782
14787
|
}]
|
|
14783
|
-
}], function () { return [{ type:
|
|
14788
|
+
}], function () { return [{ type: ProductReplacementService }]; }, null);
|
|
14784
14789
|
})();
|
|
14785
14790
|
var templateObject_1$F, templateObject_2$x;
|
|
14786
14791
|
|
|
@@ -15299,7 +15304,7 @@
|
|
|
15299
15304
|
i18n_4 = MSG_EXTERNAL_6646707544911031345$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_DISABLED_BASKET_PREVIEW_DISABLED_COMPONENT_TS__5;
|
|
15300
15305
|
}
|
|
15301
15306
|
else {
|
|
15302
|
-
i18n_4 = $localize(templateObject_3$
|
|
15307
|
+
i18n_4 = $localize(templateObject_3$o || (templateObject_3$o = __makeTemplateObject([":\u241F147ab826fc3478c8b4429cc972679cf659bb8100\u241F6646707544911031345: D\u00E9j\u00E0 dans vos placards ? "], [":\u241F147ab826fc3478c8b4429cc972679cf659bb8100\u241F6646707544911031345: D\u00E9j\u00E0 dans vos placards ? "])));
|
|
15303
15308
|
}
|
|
15304
15309
|
var i18n_6;
|
|
15305
15310
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -15307,7 +15312,7 @@
|
|
|
15307
15312
|
i18n_6 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_DISABLED_BASKET_PREVIEW_DISABLED_COMPONENT_TS_____7;
|
|
15308
15313
|
}
|
|
15309
15314
|
else {
|
|
15310
|
-
i18n_6 = $localize(templateObject_4$
|
|
15315
|
+
i18n_6 = $localize(templateObject_4$l || (templateObject_4$l = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
|
|
15311
15316
|
}
|
|
15312
15317
|
var i18n_8;
|
|
15313
15318
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -15381,7 +15386,7 @@
|
|
|
15381
15386
|
args: ['window:resize', ['$event']]
|
|
15382
15387
|
}] });
|
|
15383
15388
|
})();
|
|
15384
|
-
var templateObject_1$E, templateObject_2$w, templateObject_3$
|
|
15389
|
+
var templateObject_1$E, templateObject_2$w, templateObject_3$o, templateObject_4$l, templateObject_5$i;
|
|
15385
15390
|
|
|
15386
15391
|
function BasketPreviewLineComponent_ng_container_0_div_5_Template(rf, ctx) {
|
|
15387
15392
|
if (rf & 1) {
|
|
@@ -16290,7 +16295,7 @@
|
|
|
16290
16295
|
i18n_4 = MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___5;
|
|
16291
16296
|
}
|
|
16292
16297
|
else {
|
|
16293
|
-
i18n_4 = $localize(templateObject_3$
|
|
16298
|
+
i18n_4 = $localize(templateObject_3$n || (templateObject_3$n = __makeTemplateObject([":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"], [":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"])));
|
|
16294
16299
|
}
|
|
16295
16300
|
var i18n_6;
|
|
16296
16301
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -16298,7 +16303,7 @@
|
|
|
16298
16303
|
i18n_6 = MSG_EXTERNAL_2861269811387022272$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___7;
|
|
16299
16304
|
}
|
|
16300
16305
|
else {
|
|
16301
|
-
i18n_6 = $localize(templateObject_4$
|
|
16306
|
+
i18n_6 = $localize(templateObject_4$k || (templateObject_4$k = __makeTemplateObject([":\u241F2706048545fce399fb75b672add0eb745e09ada5\u241F2861269811387022272:soit "], [":\u241F2706048545fce399fb75b672add0eb745e09ada5\u241F2861269811387022272:soit "])));
|
|
16302
16307
|
}
|
|
16303
16308
|
var i18n_8;
|
|
16304
16309
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -16437,7 +16442,7 @@
|
|
|
16437
16442
|
type: i0.Output
|
|
16438
16443
|
}] });
|
|
16439
16444
|
})();
|
|
16440
|
-
var templateObject_1$D, templateObject_2$v, templateObject_3$
|
|
16445
|
+
var templateObject_1$D, templateObject_2$v, templateObject_3$n, templateObject_4$k, templateObject_5$h, templateObject_6$f, templateObject_7$c, templateObject_8$8, templateObject_9$6, templateObject_10$4, templateObject_11$4, templateObject_12$3, templateObject_13$2, templateObject_14$1, templateObject_15$1;
|
|
16441
16446
|
|
|
16442
16447
|
function BasketPreviewProductComponent_div_0_div_15_Template(rf, ctx) {
|
|
16443
16448
|
if (rf & 1) {
|
|
@@ -16578,6 +16583,7 @@
|
|
|
16578
16583
|
}
|
|
16579
16584
|
BasketPreviewProductComponent.prototype.ngOnInit = function () {
|
|
16580
16585
|
this.initListeners();
|
|
16586
|
+
this.scrollBackToProductCard();
|
|
16581
16587
|
};
|
|
16582
16588
|
BasketPreviewProductComponent.prototype.ngOnDestroy = function () {
|
|
16583
16589
|
this.subscriptions.unsubscribe();
|
|
@@ -16588,9 +16594,28 @@
|
|
|
16588
16594
|
};
|
|
16589
16595
|
BasketPreviewProductComponent.prototype.replaceProduct = function () {
|
|
16590
16596
|
var _this = this;
|
|
16591
|
-
this.
|
|
16597
|
+
this.productReplacementService.scrollBackToBasketEntryId = this.basketEntry.id;
|
|
16592
16598
|
this.replaceButtonClicked.emit();
|
|
16593
|
-
this.productReplacementService.
|
|
16599
|
+
this.productReplacementService.replaceModalOpen$.pipe(operators.skipWhile(function (isOpen) { return isOpen; }), operators.take(1)).subscribe(function () { return _this.fetchPrice(); });
|
|
16600
|
+
};
|
|
16601
|
+
BasketPreviewProductComponent.prototype.scrollBackToProductCard = function () {
|
|
16602
|
+
var _this = this;
|
|
16603
|
+
if (this.productReplacementService.scrollBackToBasketEntryId === this.basketEntry.id) {
|
|
16604
|
+
setTimeout(function () {
|
|
16605
|
+
var _a;
|
|
16606
|
+
var elementId = (_a = _this.elementRef.nativeElement.firstElementChild) === null || _a === void 0 ? void 0 : _a.id;
|
|
16607
|
+
if (document.getElementById(elementId)) {
|
|
16608
|
+
document.getElementById(elementId).scrollIntoView({
|
|
16609
|
+
behavior: _this.recipeDetailsService.hasReplaced ? 'smooth' : 'auto',
|
|
16610
|
+
block: 'center',
|
|
16611
|
+
inline: 'center'
|
|
16612
|
+
});
|
|
16613
|
+
_this.cdr.detectChanges();
|
|
16614
|
+
_this.productReplacementService.scrollBackToBasketEntryId = null;
|
|
16615
|
+
_this.recipeDetailsService.hasReplaced = false;
|
|
16616
|
+
}
|
|
16617
|
+
}, 0);
|
|
16618
|
+
}
|
|
16594
16619
|
};
|
|
16595
16620
|
BasketPreviewProductComponent.prototype.counterChanged = function (newCount) {
|
|
16596
16621
|
if (newCount === 0) {
|
|
@@ -16621,7 +16646,7 @@
|
|
|
16621
16646
|
this.basketsService.entryIsBeingUpdated(this.basketEntry.id),
|
|
16622
16647
|
this.basketsService.entryIsBeingRemoved(this.basketEntry.id),
|
|
16623
16648
|
this.basketsService.entryWillBeRemoved(this.basketEntry.id),
|
|
16624
|
-
this.productReplacementService.
|
|
16649
|
+
this.productReplacementService.replaceModalOpen$
|
|
16625
16650
|
]);
|
|
16626
16651
|
this.subscriptions.add(requests.subscribe(function (_b) {
|
|
16627
16652
|
var _c = __read(_b, 4), isUpdating = _c[0], isRemoving = _c[1], willBeRemoved = _c[2], isOpen = _c[3];
|
|
@@ -16943,7 +16968,7 @@
|
|
|
16943
16968
|
}
|
|
16944
16969
|
var ReplaceItemComponent = /** @class */ (function (_super) {
|
|
16945
16970
|
__extends(ReplaceItemComponent, _super);
|
|
16946
|
-
function ReplaceItemComponent(cdr, basketsService, basketEntriesService, analyticsService, supplierService, itemsService, ignoredBasketsService, recipeDetailsService,
|
|
16971
|
+
function ReplaceItemComponent(cdr, basketsService, basketEntriesService, analyticsService, supplierService, itemsService, ignoredBasketsService, recipeDetailsService, productReplacementService, contextService) {
|
|
16947
16972
|
var _this = _super.call(this, analyticsService) || this;
|
|
16948
16973
|
_this.cdr = cdr;
|
|
16949
16974
|
_this.basketsService = basketsService;
|
|
@@ -16953,7 +16978,7 @@
|
|
|
16953
16978
|
_this.itemsService = itemsService;
|
|
16954
16979
|
_this.ignoredBasketsService = ignoredBasketsService;
|
|
16955
16980
|
_this.recipeDetailsService = recipeDetailsService;
|
|
16956
|
-
_this.
|
|
16981
|
+
_this.productReplacementService = productReplacementService;
|
|
16957
16982
|
_this.contextService = contextService;
|
|
16958
16983
|
_this.basketEntry = new BasketEntry();
|
|
16959
16984
|
_this.ignoreSelected = false;
|
|
@@ -16974,7 +16999,9 @@
|
|
|
16974
16999
|
var _this = this;
|
|
16975
17000
|
var _a;
|
|
16976
17001
|
this.state = 'in';
|
|
16977
|
-
|
|
17002
|
+
if (this.recipe) {
|
|
17003
|
+
this.modifiedIngQty = +((_a = this.recipe.modifiedIngredients.find(function (i) { return i.name === _this.ingredient.attributes.name; })) === null || _a === void 0 ? void 0 : _a.qty.toFixed(2));
|
|
17004
|
+
}
|
|
16978
17005
|
this.pageview();
|
|
16979
17006
|
this.setupSearchObservable();
|
|
16980
17007
|
};
|
|
@@ -16991,7 +17018,7 @@
|
|
|
16991
17018
|
};
|
|
16992
17019
|
ReplaceItemComponent.prototype.onClose = function () {
|
|
16993
17020
|
if (this.addProductMode) {
|
|
16994
|
-
this.
|
|
17021
|
+
this.productReplacementService.changeAdditionModalState(false);
|
|
16995
17022
|
}
|
|
16996
17023
|
else {
|
|
16997
17024
|
this.selected.emit();
|
|
@@ -17139,7 +17166,7 @@
|
|
|
17139
17166
|
};
|
|
17140
17167
|
return ReplaceItemComponent;
|
|
17141
17168
|
}(EventTracerComponent));
|
|
17142
|
-
ReplaceItemComponent.ɵfac = function ReplaceItemComponent_Factory(t) { return new (t || ReplaceItemComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(BasketEntriesService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(ItemsService), i0__namespace.ɵɵdirectiveInject(IgnoredIngredientsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(
|
|
17169
|
+
ReplaceItemComponent.ɵfac = function ReplaceItemComponent_Factory(t) { return new (t || ReplaceItemComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(BasketEntriesService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(ItemsService), i0__namespace.ɵɵdirectiveInject(IgnoredIngredientsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(ProductReplacementService), i0__namespace.ɵɵdirectiveInject(ContextService)); };
|
|
17143
17170
|
ReplaceItemComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ReplaceItemComponent, selectors: [["ng-miam-replace-item"]], hostVars: 1, hostBindings: function ReplaceItemComponent_HostBindings(rf, ctx) {
|
|
17144
17171
|
if (rf & 2) {
|
|
17145
17172
|
i0__namespace.ɵɵsyntheticHostProperty("@slide", ctx.state);
|
|
@@ -17167,7 +17194,7 @@
|
|
|
17167
17194
|
i18n_4 = MSG_EXTERNAL_2371976043497937004$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS__5;
|
|
17168
17195
|
}
|
|
17169
17196
|
else {
|
|
17170
|
-
i18n_4 = $localize(templateObject_3$
|
|
17197
|
+
i18n_4 = $localize(templateObject_3$m || (templateObject_3$m = __makeTemplateObject([":\u241Fbcaa24028639b753617e2d3e0462eac9dc2ae4de\u241F2371976043497937004:Remplacer un produit"], [":\u241Fbcaa24028639b753617e2d3e0462eac9dc2ae4de\u241F2371976043497937004:Remplacer un produit"])));
|
|
17171
17198
|
}
|
|
17172
17199
|
var i18n_6;
|
|
17173
17200
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -17175,7 +17202,7 @@
|
|
|
17175
17202
|
i18n_6 = MSG_EXTERNAL_3600300940826652542$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS__7;
|
|
17176
17203
|
}
|
|
17177
17204
|
else {
|
|
17178
|
-
i18n_6 = $localize(templateObject_4$
|
|
17205
|
+
i18n_6 = $localize(templateObject_4$j || (templateObject_4$j = __makeTemplateObject([":\u241F02d62e50d45d9f9373ea25239767f0e2ae57e34d\u241F3600300940826652542:Ajouter un produit"], [":\u241F02d62e50d45d9f9373ea25239767f0e2ae57e34d\u241F3600300940826652542:Ajouter un produit"])));
|
|
17179
17206
|
}
|
|
17180
17207
|
var i18n_8;
|
|
17181
17208
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -17323,7 +17350,7 @@
|
|
|
17323
17350
|
])
|
|
17324
17351
|
]
|
|
17325
17352
|
}]
|
|
17326
|
-
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: BasketEntriesService }, { type: AnalyticsService }, { type: SuppliersService }, { type: ItemsService }, { type: IgnoredIngredientsService }, { type: RecipeDetailsService }, { type:
|
|
17353
|
+
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: BasketEntriesService }, { type: AnalyticsService }, { type: SuppliersService }, { type: ItemsService }, { type: IgnoredIngredientsService }, { type: RecipeDetailsService }, { type: ProductReplacementService }, { type: ContextService }]; }, { basketEntry: [{
|
|
17327
17354
|
type: i0.Input
|
|
17328
17355
|
}], recipe: [{
|
|
17329
17356
|
type: i0.Input
|
|
@@ -17344,7 +17371,7 @@
|
|
|
17344
17371
|
args: ['@slide']
|
|
17345
17372
|
}] });
|
|
17346
17373
|
})();
|
|
17347
|
-
var templateObject_1$B, templateObject_2$u, templateObject_3$
|
|
17374
|
+
var templateObject_1$B, templateObject_2$u, templateObject_3$m, templateObject_4$j, templateObject_5$g, templateObject_6$e, templateObject_7$b, templateObject_8$7, templateObject_9$5, templateObject_10$3, templateObject_11$3;
|
|
17348
17375
|
|
|
17349
17376
|
function BasketPreviewBlockComponent_div_2_ng_container_1_div_2_Template(rf, ctx) {
|
|
17350
17377
|
if (rf & 1) {
|
|
@@ -17595,14 +17622,13 @@
|
|
|
17595
17622
|
})(exports.BasketTab || (exports.BasketTab = {}));
|
|
17596
17623
|
var BasketPreviewBlockComponent = /** @class */ (function (_super) {
|
|
17597
17624
|
__extends(BasketPreviewBlockComponent, _super);
|
|
17598
|
-
function BasketPreviewBlockComponent(cdr, posService, contextService, basketsService, mediaMatcher,
|
|
17625
|
+
function BasketPreviewBlockComponent(cdr, posService, contextService, basketsService, mediaMatcher, analyticsService, productReplacementService) {
|
|
17599
17626
|
var _this = _super.call(this, analyticsService) || this;
|
|
17600
17627
|
_this.cdr = cdr;
|
|
17601
17628
|
_this.posService = posService;
|
|
17602
17629
|
_this.contextService = contextService;
|
|
17603
17630
|
_this.basketsService = basketsService;
|
|
17604
17631
|
_this.mediaMatcher = mediaMatcher;
|
|
17605
|
-
_this.productAdditionService = productAdditionService;
|
|
17606
17632
|
_this.analyticsService = analyticsService;
|
|
17607
17633
|
_this.productReplacementService = productReplacementService;
|
|
17608
17634
|
_this.showNotice = false;
|
|
@@ -17636,14 +17662,18 @@
|
|
|
17636
17662
|
_this.cdr.detectChanges();
|
|
17637
17663
|
}), this.blockStates.subscribe(function () { return _this.handleblockState(); }), this.basketsService.basketStats$.pipe(operators.skipWhile(function (stats) { return !stats; }), operators.tap(function (stats) { return _this.statsUpdated.emit(stats); })).subscribe(), this.posService.isPosValid().subscribe(function () {
|
|
17638
17664
|
_this.cdr.detectChanges();
|
|
17639
|
-
}), this.
|
|
17665
|
+
}), this.productReplacementService.productAdded$.subscribe(function (added) {
|
|
17640
17666
|
if (added) {
|
|
17641
17667
|
_this.activeBasketTab = exports.BasketTab.PRODUCTS;
|
|
17642
|
-
_this.
|
|
17668
|
+
_this.productReplacementService.productAdded$.next(false);
|
|
17643
17669
|
_this.shouldScrollToLastProduct = true;
|
|
17644
17670
|
_this.cdr.detectChanges();
|
|
17645
17671
|
}
|
|
17646
17672
|
}));
|
|
17673
|
+
if (this.productReplacementService.scrollBackToBasketEntryId) {
|
|
17674
|
+
this.activeBasketTab = exports.BasketTab.PRODUCTS;
|
|
17675
|
+
this.cdr.detectChanges();
|
|
17676
|
+
}
|
|
17647
17677
|
};
|
|
17648
17678
|
BasketPreviewBlockComponent.prototype.ngOnChanges = function (changes) {
|
|
17649
17679
|
if (Object.keys(changes).includes('recipeId')) {
|
|
@@ -17785,7 +17815,7 @@
|
|
|
17785
17815
|
};
|
|
17786
17816
|
BasketPreviewBlockComponent.prototype.handleReplaceButtonClick = function (product) {
|
|
17787
17817
|
this.productReplacementService.updateProductToReplace(product);
|
|
17788
|
-
this.productReplacementService.
|
|
17818
|
+
this.productReplacementService.changeReplaceModalState(true);
|
|
17789
17819
|
this.cdr.detectChanges();
|
|
17790
17820
|
};
|
|
17791
17821
|
BasketPreviewBlockComponent.prototype.findAndFocusCurrentRecipe = function (recipeRows) {
|
|
@@ -17800,7 +17830,7 @@
|
|
|
17800
17830
|
};
|
|
17801
17831
|
return BasketPreviewBlockComponent;
|
|
17802
17832
|
}(EventTracerComponent));
|
|
17803
|
-
BasketPreviewBlockComponent.ɵfac = function BasketPreviewBlockComponent_Factory(t) { return new (t || BasketPreviewBlockComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.MediaMatcher), i0__namespace.ɵɵdirectiveInject(
|
|
17833
|
+
BasketPreviewBlockComponent.ɵfac = function BasketPreviewBlockComponent_Factory(t) { return new (t || BasketPreviewBlockComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(i2__namespace$1.MediaMatcher), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(ProductReplacementService)); };
|
|
17804
17834
|
BasketPreviewBlockComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BasketPreviewBlockComponent, selectors: [["ng-miam-basket-preview-block"]], viewQuery: function BasketPreviewBlockComponent_Query(rf, ctx) {
|
|
17805
17835
|
if (rf & 1) {
|
|
17806
17836
|
i0__namespace.ɵɵviewQuery(BasketPreviewLineComponent, 1);
|
|
@@ -17836,7 +17866,7 @@
|
|
|
17836
17866
|
i18n_5 = MSG_EXTERNAL_288551008191807939$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS_____6;
|
|
17837
17867
|
}
|
|
17838
17868
|
else {
|
|
17839
|
-
i18n_5 = $localize(templateObject_3$
|
|
17869
|
+
i18n_5 = $localize(templateObject_3$l || (templateObject_3$l = __makeTemplateObject([":\u241F93545d51c80c9c31f09ed7ebf3bd9f3a7a8faac4\u241F288551008191807939:Vous n'avez pas encore s\u00E9lectionn\u00E9 de repas."], [":\u241F93545d51c80c9c31f09ed7ebf3bd9f3a7a8faac4\u241F288551008191807939:Vous n'avez pas encore s\u00E9lectionn\u00E9 de repas."])));
|
|
17840
17870
|
}
|
|
17841
17871
|
var i18n_7;
|
|
17842
17872
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -17844,7 +17874,7 @@
|
|
|
17844
17874
|
i18n_7 = MSG_EXTERNAL_4236077440019410708$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS______8;
|
|
17845
17875
|
}
|
|
17846
17876
|
else {
|
|
17847
|
-
i18n_7 = $localize(templateObject_4$
|
|
17877
|
+
i18n_7 = $localize(templateObject_4$i || (templateObject_4$i = __makeTemplateObject([":\u241Ff2dbdf98d72d476636f801e65966528b783d1688\u241F4236077440019410708:Naviguez vers la page d'une recette, puis cliquez sur \"Commander les ingr\u00E9dients\"."], [":\u241Ff2dbdf98d72d476636f801e65966528b783d1688\u241F4236077440019410708:Naviguez vers la page d'une recette, puis cliquez sur \"Commander les ingr\u00E9dients\"."])));
|
|
17848
17878
|
}
|
|
17849
17879
|
var i18n_9;
|
|
17850
17880
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -17902,7 +17932,7 @@
|
|
|
17902
17932
|
encapsulation: i0.ViewEncapsulation.None,
|
|
17903
17933
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
17904
17934
|
}]
|
|
17905
|
-
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PointOfSalesService }, { type: ContextService }, { type: BasketsService }, { type: i2__namespace$1.MediaMatcher }, { type:
|
|
17935
|
+
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: PointOfSalesService }, { type: ContextService }, { type: BasketsService }, { type: i2__namespace$1.MediaMatcher }, { type: AnalyticsService }, { type: ProductReplacementService }]; }, { recipeId: [{
|
|
17906
17936
|
type: i0.Input
|
|
17907
17937
|
}], showNotice: [{
|
|
17908
17938
|
type: i0.Input
|
|
@@ -17937,7 +17967,7 @@
|
|
|
17937
17967
|
args: [BasketPreviewProductComponent]
|
|
17938
17968
|
}] });
|
|
17939
17969
|
})();
|
|
17940
|
-
var templateObject_1$A, templateObject_2$t, templateObject_3$
|
|
17970
|
+
var templateObject_1$A, templateObject_2$t, templateObject_3$l, templateObject_4$i, templateObject_5$f, templateObject_6$d, templateObject_7$a, templateObject_8$6;
|
|
17941
17971
|
|
|
17942
17972
|
var BasketPreviewModule = /** @class */ (function () {
|
|
17943
17973
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -18098,7 +18128,7 @@
|
|
|
18098
18128
|
i18n_4 = MSG_EXTERNAL_541716919875697840$$LIB__WEB_COMPONENTS_BASKET_TRANSFER_MODAL_BASKET_TRANSFER_MODAL_COMPONENT_TS_5;
|
|
18099
18129
|
}
|
|
18100
18130
|
else {
|
|
18101
|
-
i18n_4 = $localize(templateObject_3$
|
|
18131
|
+
i18n_4 = $localize(templateObject_3$k || (templateObject_3$k = __makeTemplateObject([":\u241F69d78ec60dc2f2fa4583209c13f8c3f59a8626d9\u241F541716919875697840:Nous transf\u00E9rons votre panier vers"], [":\u241F69d78ec60dc2f2fa4583209c13f8c3f59a8626d9\u241F541716919875697840:Nous transf\u00E9rons votre panier vers"])));
|
|
18102
18132
|
}
|
|
18103
18133
|
var i18n_6;
|
|
18104
18134
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -18106,7 +18136,7 @@
|
|
|
18106
18136
|
i18n_6 = MSG_EXTERNAL_7845121959018697970$$LIB__WEB_COMPONENTS_BASKET_TRANSFER_MODAL_BASKET_TRANSFER_MODAL_COMPONENT_TS_7;
|
|
18107
18137
|
}
|
|
18108
18138
|
else {
|
|
18109
|
-
i18n_6 = $localize(templateObject_4$
|
|
18139
|
+
i18n_6 = $localize(templateObject_4$h || (templateObject_4$h = __makeTemplateObject([":\u241F4abb753a4e37ab5b459185f2e89e9e81c219a253\u241F7845121959018697970:Transfert du panier"], [":\u241F4abb753a4e37ab5b459185f2e89e9e81c219a253\u241F7845121959018697970:Transfert du panier"])));
|
|
18110
18140
|
}
|
|
18111
18141
|
var i18n_8;
|
|
18112
18142
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -18195,7 +18225,7 @@
|
|
|
18195
18225
|
}]
|
|
18196
18226
|
}], function () { return [{ type: BasketTransferService }, { type: BasketsService }, { type: PointOfSalesService }, { type: i0__namespace.ChangeDetectorRef }]; }, null);
|
|
18197
18227
|
})();
|
|
18198
|
-
var templateObject_1$z, templateObject_2$s, templateObject_3$
|
|
18228
|
+
var templateObject_1$z, templateObject_2$s, templateObject_3$k, templateObject_4$h, templateObject_5$e, templateObject_6$c, templateObject_7$9, templateObject_8$5;
|
|
18199
18229
|
|
|
18200
18230
|
function ListScanBasketPreviewComponent_ng_container_2_ng_miam_basket_preview_product_6_Template(rf, ctx) {
|
|
18201
18231
|
if (rf & 1) {
|
|
@@ -18286,7 +18316,7 @@
|
|
|
18286
18316
|
};
|
|
18287
18317
|
ListScanBasketPreviewComponent.prototype.handleReplaceButtonClick = function (product) {
|
|
18288
18318
|
this.productReplacementService.updateProductToReplace(product);
|
|
18289
|
-
this.productReplacementService.
|
|
18319
|
+
this.productReplacementService.changeReplaceModalState(true);
|
|
18290
18320
|
this.cdr.detectChanges();
|
|
18291
18321
|
};
|
|
18292
18322
|
return ListScanBasketPreviewComponent;
|
|
@@ -18585,7 +18615,7 @@
|
|
|
18585
18615
|
i18n_4 = MSG_EXTERNAL_6492937435856655320$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_5;
|
|
18586
18616
|
}
|
|
18587
18617
|
else {
|
|
18588
|
-
i18n_4 = $localize(templateObject_3$
|
|
18618
|
+
i18n_4 = $localize(templateObject_3$j || (templateObject_3$j = __makeTemplateObject([":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"], [":\u241Fcf955ad994f631ae1ff32197521404b7f0223157\u241F6492937435856655320:Ajouter au panier"])));
|
|
18589
18619
|
}
|
|
18590
18620
|
var i18n_6;
|
|
18591
18621
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -18593,7 +18623,7 @@
|
|
|
18593
18623
|
i18n_6 = MSG_EXTERNAL_5858088760260847694$$LIB__WEB_COMPONENTS_LIST_SCAN_LIST_SCAN_COMPONENT_TS_7;
|
|
18594
18624
|
}
|
|
18595
18625
|
else {
|
|
18596
|
-
i18n_6 = $localize(templateObject_4$
|
|
18626
|
+
i18n_6 = $localize(templateObject_4$g || (templateObject_4$g = __makeTemplateObject([":\u241F2702a2d27ee6aab74ad04132b4acf466f7589b2f\u241F5858088760260847694:Abandonner ma liste"], [":\u241F2702a2d27ee6aab74ad04132b4acf466f7589b2f\u241F5858088760260847694:Abandonner ma liste"])));
|
|
18597
18627
|
}
|
|
18598
18628
|
var i18n_8;
|
|
18599
18629
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -18665,7 +18695,7 @@
|
|
|
18665
18695
|
type: i0.Output
|
|
18666
18696
|
}] });
|
|
18667
18697
|
})();
|
|
18668
|
-
var templateObject_1$w, templateObject_2$p, templateObject_3$
|
|
18698
|
+
var templateObject_1$w, templateObject_2$p, templateObject_3$j, templateObject_4$g, templateObject_5$d, templateObject_6$b, templateObject_7$8;
|
|
18669
18699
|
|
|
18670
18700
|
var ListScanModule = /** @class */ (function () {
|
|
18671
18701
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -19003,7 +19033,7 @@
|
|
|
19003
19033
|
i18n_4 = MSG_EXTERNAL_7945563559620286178$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS_5;
|
|
19004
19034
|
}
|
|
19005
19035
|
else {
|
|
19006
|
-
i18n_4 = $localize(templateObject_3$
|
|
19036
|
+
i18n_4 = $localize(templateObject_3$i || (templateObject_3$i = __makeTemplateObject([":\u241Fe824dd6dbf067af3319961f1e9f3a05e00986fcd\u241F7945563559620286178:EUR"], [":\u241Fe824dd6dbf067af3319961f1e9f3a05e00986fcd\u241F7945563559620286178:EUR"])));
|
|
19007
19037
|
}
|
|
19008
19038
|
var i18n_6;
|
|
19009
19039
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -19011,7 +19041,7 @@
|
|
|
19011
19041
|
i18n_6 = MSG_EXTERNAL_980939234227251011$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS_7;
|
|
19012
19042
|
}
|
|
19013
19043
|
else {
|
|
19014
|
-
i18n_6 = $localize(templateObject_4$
|
|
19044
|
+
i18n_6 = $localize(templateObject_4$f || (templateObject_4$f = __makeTemplateObject([":\u241Fb5462e8e9bfa6bb68b925926189d10a75d115a6d\u241F980939234227251011:Nombre de personnes"], [":\u241Fb5462e8e9bfa6bb68b925926189d10a75d115a6d\u241F980939234227251011:Nombre de personnes"])));
|
|
19015
19045
|
}
|
|
19016
19046
|
var i18n_8;
|
|
19017
19047
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -19235,7 +19265,7 @@
|
|
|
19235
19265
|
type: i0.Output
|
|
19236
19266
|
}] });
|
|
19237
19267
|
})();
|
|
19238
|
-
var templateObject_1$v, templateObject_2$o, templateObject_3$
|
|
19268
|
+
var templateObject_1$v, templateObject_2$o, templateObject_3$i, templateObject_4$f, templateObject_5$c, templateObject_6$a, templateObject_7$7, templateObject_8$4, templateObject_9$4, templateObject_10$2, templateObject_11$2, templateObject_12$2, templateObject_13$1;
|
|
19239
19269
|
|
|
19240
19270
|
function RecipeCardCtaComponent_div_0_ng_container_2_Template(rf, ctx) {
|
|
19241
19271
|
if (rf & 1) {
|
|
@@ -19288,6 +19318,7 @@
|
|
|
19288
19318
|
_this.displayGuests = true;
|
|
19289
19319
|
_this.displayed = new i0.EventEmitter();
|
|
19290
19320
|
_this.clicked = new i0.EventEmitter();
|
|
19321
|
+
_this.hidden = new i0.EventEmitter();
|
|
19291
19322
|
_this.icon = exports.Icon;
|
|
19292
19323
|
_this.inBasket = false;
|
|
19293
19324
|
_this.subscriptions = [];
|
|
@@ -19309,18 +19340,28 @@
|
|
|
19309
19340
|
if (!this.recipe && ((_a = this.recipeName) === null || _a === void 0 ? void 0 : _a.length) > 0) {
|
|
19310
19341
|
this.subscriptions.push(this.searchRecipeByName().subscribe(function (result) {
|
|
19311
19342
|
_this.recipe = result;
|
|
19312
|
-
|
|
19313
|
-
|
|
19343
|
+
if (!result) {
|
|
19344
|
+
_this.hidden.emit();
|
|
19345
|
+
}
|
|
19346
|
+
else {
|
|
19347
|
+
_this.checkGuestsAndBasket();
|
|
19348
|
+
_this.cdr.detectChanges();
|
|
19349
|
+
}
|
|
19314
19350
|
}));
|
|
19315
19351
|
}
|
|
19316
19352
|
else if (!this.recipe && this.recipeExtId) {
|
|
19317
19353
|
this.subscriptions.push(this.searchRecipeByExtId().subscribe(function (result) {
|
|
19318
19354
|
_this.recipe = result;
|
|
19319
|
-
if (
|
|
19320
|
-
|
|
19321
|
-
|
|
19355
|
+
if (!result) {
|
|
19356
|
+
_this.hidden.emit();
|
|
19357
|
+
}
|
|
19358
|
+
else {
|
|
19359
|
+
if (_this.contextService.noSupplier) {
|
|
19360
|
+
// When noSupplier, we don't have a basket so we can't have the detectChanges in the basket subscription
|
|
19361
|
+
_this.cdr.detectChanges();
|
|
19362
|
+
}
|
|
19363
|
+
_this.checkGuestsAndBasket();
|
|
19322
19364
|
}
|
|
19323
|
-
_this.checkGuestsAndBasket();
|
|
19324
19365
|
}));
|
|
19325
19366
|
}
|
|
19326
19367
|
else {
|
|
@@ -19350,7 +19391,7 @@
|
|
|
19350
19391
|
RecipeCardCtaComponent.prototype.searchRecipeByName = function () {
|
|
19351
19392
|
var _this = this;
|
|
19352
19393
|
// Until supplier ids are the same as the provider ids we use the origin to determine the provider on which we filter
|
|
19353
|
-
return this.contextService.origin.pipe(operators.skipWhile(function (origin) { return !origin; }), operators.take(1), operators.switchMap(function (origin) { return _this.recipeService.all({ remotefilter: { recipe_provider_id: origin, search: _this.recipeName } }).pipe(operators.
|
|
19394
|
+
return this.contextService.origin.pipe(operators.skipWhile(function (origin) { return !origin; }), operators.take(1), operators.switchMap(function (origin) { return _this.recipeService.all({ remotefilter: { recipe_provider_id: origin, search: _this.recipeName } }).pipe(operators.map(function (response) { var _a; return ((_a = response.data[0]) === null || _a === void 0 ? void 0 : _a.attributes.title) === _this.recipeName ? response.data[0] : null; })); }));
|
|
19354
19395
|
};
|
|
19355
19396
|
RecipeCardCtaComponent.prototype.searchRecipeByExtId = function () {
|
|
19356
19397
|
var _this = this;
|
|
@@ -19376,7 +19417,7 @@
|
|
|
19376
19417
|
return RecipeCardCtaComponent;
|
|
19377
19418
|
}(EventTracerComponent));
|
|
19378
19419
|
RecipeCardCtaComponent.ɵfac = function RecipeCardCtaComponent_Factory(t) { return new (t || RecipeCardCtaComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(ToasterService)); };
|
|
19379
|
-
RecipeCardCtaComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeCardCtaComponent, selectors: [["ng-miam-recipe-card-cta"]], inputs: { recipeName: "recipeName", recipeExtId: "recipeExtId", recipe: "recipe", serves: "serves", previewAllowed: "previewAllowed", helpButtonAllowed: "helpButtonAllowed", displayGuests: "displayGuests" }, outputs: { displayed: "displayed", clicked: "clicked" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "miam-recipe-card-cta", 4, "ngIf"], [1, "miam-recipe-card-cta"], [1, "miam-ds-button", 3, "disabled", "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["seeIngredients", ""], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/InCart_primary.svg", "alt", "see ingredients"]], template: function RecipeCardCtaComponent_Template(rf, ctx) {
|
|
19420
|
+
RecipeCardCtaComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeCardCtaComponent, selectors: [["ng-miam-recipe-card-cta"]], inputs: { recipeName: "recipeName", recipeExtId: "recipeExtId", recipe: "recipe", serves: "serves", previewAllowed: "previewAllowed", helpButtonAllowed: "helpButtonAllowed", displayGuests: "displayGuests" }, outputs: { displayed: "displayed", clicked: "clicked", hidden: "hidden" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "miam-recipe-card-cta", 4, "ngIf"], [1, "miam-recipe-card-cta"], [1, "miam-ds-button", 3, "disabled", "ngClass", "click"], [4, "ngIf", "ngIfElse"], ["seeIngredients", ""], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/InCart_primary.svg", "alt", "see ingredients"]], template: function RecipeCardCtaComponent_Template(rf, ctx) {
|
|
19380
19421
|
if (rf & 1) {
|
|
19381
19422
|
i0__namespace.ɵɵtemplate(0, RecipeCardCtaComponent_div_0_Template, 6, 10, "div", 0);
|
|
19382
19423
|
}
|
|
@@ -19412,6 +19453,8 @@
|
|
|
19412
19453
|
type: i0.Output
|
|
19413
19454
|
}], clicked: [{
|
|
19414
19455
|
type: i0.Output
|
|
19456
|
+
}], hidden: [{
|
|
19457
|
+
type: i0.Output
|
|
19415
19458
|
}] });
|
|
19416
19459
|
})();
|
|
19417
19460
|
|
|
@@ -20476,7 +20519,7 @@
|
|
|
20476
20519
|
i18n_4 = MSG_EXTERNAL_2597486146640590065$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___5;
|
|
20477
20520
|
}
|
|
20478
20521
|
else {
|
|
20479
|
-
i18n_4 = $localize(templateObject_3$
|
|
20522
|
+
i18n_4 = $localize(templateObject_3$h || (templateObject_3$h = __makeTemplateObject([":\u241F36b57ca9ce912938699424cf85d5cac2a6bfa738\u241F2597486146640590065:Aller \u00E0 mon panier"], [":\u241F36b57ca9ce912938699424cf85d5cac2a6bfa738\u241F2597486146640590065:Aller \u00E0 mon panier"])));
|
|
20480
20523
|
}
|
|
20481
20524
|
var i18n_6;
|
|
20482
20525
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20484,7 +20527,7 @@
|
|
|
20484
20527
|
i18n_6 = MSG_EXTERNAL_4645762297074474087$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___7;
|
|
20485
20528
|
}
|
|
20486
20529
|
else {
|
|
20487
|
-
i18n_6 = $localize(templateObject_4$
|
|
20530
|
+
i18n_6 = $localize(templateObject_4$e || (templateObject_4$e = __makeTemplateObject([":\u241Fd8ccc910c8536280f86357456fb751e967f3041f\u241F4645762297074474087:Continuer mes achats"], [":\u241Fd8ccc910c8536280f86357456fb751e967f3041f\u241F4645762297074474087:Continuer mes achats"])));
|
|
20488
20531
|
}
|
|
20489
20532
|
var i18n_8;
|
|
20490
20533
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20527,7 +20570,7 @@
|
|
|
20527
20570
|
type: i0.Output
|
|
20528
20571
|
}] });
|
|
20529
20572
|
})();
|
|
20530
|
-
var templateObject_1$r, templateObject_2$l, templateObject_3$
|
|
20573
|
+
var templateObject_1$r, templateObject_2$l, templateObject_3$h, templateObject_4$e, templateObject_5$b;
|
|
20531
20574
|
|
|
20532
20575
|
var RecipeFilters = /** @class */ (function () {
|
|
20533
20576
|
function RecipeFilters(filters) {
|
|
@@ -21185,7 +21228,7 @@
|
|
|
21185
21228
|
i18n_4 = MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS____5;
|
|
21186
21229
|
}
|
|
21187
21230
|
else {
|
|
21188
|
-
i18n_4 = $localize(templateObject_3$
|
|
21231
|
+
i18n_4 = $localize(templateObject_3$g || (templateObject_3$g = __makeTemplateObject([":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"], [":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"])));
|
|
21189
21232
|
}
|
|
21190
21233
|
var i18n_6;
|
|
21191
21234
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -21193,7 +21236,7 @@
|
|
|
21193
21236
|
i18n_6 = MSG_EXTERNAL_2399216061429613805$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS____7;
|
|
21194
21237
|
}
|
|
21195
21238
|
else {
|
|
21196
|
-
i18n_6 = $localize(templateObject_4$
|
|
21239
|
+
i18n_6 = $localize(templateObject_4$d || (templateObject_4$d = __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"])));
|
|
21197
21240
|
}
|
|
21198
21241
|
var i18n_8;
|
|
21199
21242
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -21285,7 +21328,7 @@
|
|
|
21285
21328
|
args: [RecipeCardComponent]
|
|
21286
21329
|
}] });
|
|
21287
21330
|
})();
|
|
21288
|
-
var templateObject_1$p, templateObject_2$k, templateObject_3$
|
|
21331
|
+
var templateObject_1$p, templateObject_2$k, templateObject_3$g, templateObject_4$d, templateObject_5$a, templateObject_6$9;
|
|
21289
21332
|
|
|
21290
21333
|
function MealsPlannerCatalogComponent_div_14_Template(rf, ctx) {
|
|
21291
21334
|
if (rf & 1) {
|
|
@@ -21387,7 +21430,7 @@
|
|
|
21387
21430
|
i18n_4 = MSG_EXTERNAL_673430564078029527$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_CATALOG_MEALS_PLANNER_CATALOG_COMPONENT_TS_5;
|
|
21388
21431
|
}
|
|
21389
21432
|
else {
|
|
21390
|
-
i18n_4 = $localize(templateObject_3$
|
|
21433
|
+
i18n_4 = $localize(templateObject_3$f || (templateObject_3$f = __makeTemplateObject([":\u241F43a5be6775550e305fdcc873e3fe93fe756b2340\u241F673430564078029527:Filtrer"], [":\u241F43a5be6775550e305fdcc873e3fe93fe756b2340\u241F673430564078029527:Filtrer"])));
|
|
21391
21434
|
}
|
|
21392
21435
|
return [[1, "miam-meals-planner-catalog"], [1, "miam-meals-planner-catalog__title", 3, "click"], ["width", "24", "height", "24", 3, "iconName"], i18n_0, [1, "miam-meals-planner-catalog__search-and-filters"], [1, "miam-meals-planner-catalog__searchbar"], ["type", "text", "placeholder", i18n_2, 1, "miam-meals-planner-catalog__searchbar__input", 3, "ngModel", "ngModelChange", "keydown.enter", "blur"], [1, "miam-meals-planner-catalog__searchbar__button", "m-button-primary"], ["width", "20", "height", "20", 3, "iconName", "click"], [1, "miam-meals-planner-catalog__controls__filter", "m-button-primary", 3, "click"], ["width", "18", "height", "18", 3, "iconName"], i18n_4, ["class", "miam-meals-planner-catalog__controls__filter-badge", 4, "ngIf"], [3, "filters", "isFilterCollapsed", "modifiedGuests", "position", "excludedRecipesIds", "filterChanged", "filterCollapsed"], [3, "displayPricing", "addRecipeMode", "modifiedGuests", "originTrace", "filters", "displayGuests", "helpButtonAllowed", "excludedRecipesIds", "addToMealsPlanner"], [1, "miam-meals-planner-catalog__controls__filter-badge"]];
|
|
21393
21436
|
}, template: function MealsPlannerCatalogComponent_Template(rf, ctx) {
|
|
@@ -21469,7 +21512,7 @@
|
|
|
21469
21512
|
type: i0.Output
|
|
21470
21513
|
}] });
|
|
21471
21514
|
})();
|
|
21472
|
-
var templateObject_1$o, templateObject_2$j, templateObject_3$
|
|
21515
|
+
var templateObject_1$o, templateObject_2$j, templateObject_3$f;
|
|
21473
21516
|
|
|
21474
21517
|
var MealsPlannerBasketConfirmationComponent = /** @class */ (function (_super) {
|
|
21475
21518
|
__extends(MealsPlannerBasketConfirmationComponent, _super);
|
|
@@ -21519,7 +21562,7 @@
|
|
|
21519
21562
|
i18n_4 = MSG_EXTERNAL_4292207916107004711$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_CONFIRMATION_MEALS_PLANNER_BASKET_CONFIRMATION_COMPONENT_TS_5;
|
|
21520
21563
|
}
|
|
21521
21564
|
else {
|
|
21522
|
-
i18n_4 = $localize(templateObject_3$
|
|
21565
|
+
i18n_4 = $localize(templateObject_3$e || (templateObject_3$e = __makeTemplateObject([":\u241Fed84d683f4ccdd851df9aed7dcb8283a1e374245\u241F4292207916107004711:D\u00E9couvrez aussi :"], [":\u241Fed84d683f4ccdd851df9aed7dcb8283a1e374245\u241F4292207916107004711:D\u00E9couvrez aussi :"])));
|
|
21523
21566
|
}
|
|
21524
21567
|
var i18n_6;
|
|
21525
21568
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -21527,7 +21570,7 @@
|
|
|
21527
21570
|
i18n_6 = MSG_EXTERNAL_7677197880949375688$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_CONFIRMATION_MEALS_PLANNER_BASKET_CONFIRMATION_COMPONENT_TS_7;
|
|
21528
21571
|
}
|
|
21529
21572
|
else {
|
|
21530
|
-
i18n_6 = $localize(templateObject_4$
|
|
21573
|
+
i18n_6 = $localize(templateObject_4$c || (templateObject_4$c = __makeTemplateObject([":\u241F0b2493727f9ebd25d711a2206c44146a7b585828\u241F7677197880949375688:Nos promotions"], [":\u241F0b2493727f9ebd25d711a2206c44146a7b585828\u241F7677197880949375688:Nos promotions"])));
|
|
21531
21574
|
}
|
|
21532
21575
|
return [[1, "meals-planner-basket-confirmation"], [1, "meals-planner-basket-confirmation__content"], [1, "meals-planner-basket-confirmation__result"], [1, "meals-planner-basket-confirmation__title"], i18n_0, [1, "meals-planner-basket-confirmation__price"], [1, "meals-planner-basket-confirmation__meal-count"], i18n_2, [1, "meals-planner-basket-confirmation__price-value"], [1, "meals-planner-basket-confirmation__discover"], i18n_4, [1, "m-button-secondary"], [3, "href"], [1, "meals-planner-basket-confirmation__button-text"], i18n_6];
|
|
21533
21576
|
}, template: function MealsPlannerBasketConfirmationComponent_Template(rf, ctx) {
|
|
@@ -21600,7 +21643,7 @@
|
|
|
21600
21643
|
type: i0.Input
|
|
21601
21644
|
}] });
|
|
21602
21645
|
})();
|
|
21603
|
-
var templateObject_1$n, templateObject_2$i, templateObject_3$
|
|
21646
|
+
var templateObject_1$n, templateObject_2$i, templateObject_3$e, templateObject_4$c;
|
|
21604
21647
|
|
|
21605
21648
|
var _b;
|
|
21606
21649
|
var _c0$5 = ["miamMealsPlannerTopAnchor"];
|
|
@@ -22025,7 +22068,7 @@
|
|
|
22025
22068
|
i18n_5 = MSG_EXTERNAL_1931799427977453728$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_COMPONENT_TS___6;
|
|
22026
22069
|
}
|
|
22027
22070
|
else {
|
|
22028
|
-
i18n_5 = $localize(templateObject_3$
|
|
22071
|
+
i18n_5 = $localize(templateObject_3$d || (templateObject_3$d = __makeTemplateObject([":\u241F3b0b12b85604af610c07cfbd5d4f74662b9a881a\u241F1931799427977453728:Ajouter une id\u00E9e repas"], [":\u241F3b0b12b85604af610c07cfbd5d4f74662b9a881a\u241F1931799427977453728:Ajouter une id\u00E9e repas"])));
|
|
22029
22072
|
}
|
|
22030
22073
|
return [[1, "miam-meals-planner-anchor"], ["miamMealsPlannerTopAnchor", ""], ["class", "miam-meals-planner", 4, "ngIf"], [1, "miam-meals-planner"], [1, "miam-meals-planner__header"], [1, "miam-meals-planner__header__breadcrumb", 3, "ngClass"], ["href", "/"], ["width", "18", "height", "18", "primaryColor", "#0F191F", 3, "iconName"], ["width", "24", "height", "24", 1, "chevron-right", 3, "iconName"], [1, "inactive", 3, "href"], i18n_1, ["href", "javascript:void(0)", 1, "active"], i18n_3, ["class", "chevron-right", "width", "24", "height", "24", 3, "iconName", 4, "ngIf"], ["href", "javascript:void(0)", "class", "subCategory", 4, "ngIf"], ["class", "miam-meals-planner__content", 4, "ngIf"], ["href", "javascript:void(0)", 1, "subCategory"], i18n_5, [1, "miam-meals-planner__content"], [3, "originTrace", "reduced", "form", "loading", "ngClass", "submitted", 4, "ngIf"], [3, "originTrace", "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog", 4, "ngIf"], [3, "recipesIds", "usedBudget", "maxBudget", "ingredientsRegrouped", "originTrace", "ngClass", "closed", "usedBudgetChanged", 4, "ngIf"], [3, "modifiedGuests", "originTrace", "remainingBudget", "remainingRecipesNumber", "excludedRecipesIds", "editRecipe", "canceled", 4, "ngIf"], [3, "recipesIds", "originTrace", "budget", 4, "ngIf"], [3, "originTrace", "reduced", "form", "loading", "ngClass", "submitted"], [3, "originTrace", "recipes", "usedBudget", "maxBudget", "loading", "recipeRemoval", "confirmed", "openCatalog"], [3, "recipesIds", "usedBudget", "maxBudget", "ingredientsRegrouped", "originTrace", "ngClass", "closed", "usedBudgetChanged"], [3, "modifiedGuests", "originTrace", "remainingBudget", "remainingRecipesNumber", "excludedRecipesIds", "editRecipe", "canceled"], [3, "recipesIds", "originTrace", "budget"]];
|
|
22031
22074
|
}, template: function MealsPlannerComponent_Template(rf, ctx) {
|
|
@@ -22053,7 +22096,7 @@
|
|
|
22053
22096
|
args: ['miamMealsPlannerTopAnchor']
|
|
22054
22097
|
}] });
|
|
22055
22098
|
})();
|
|
22056
|
-
var templateObject_1$m, templateObject_2$h, templateObject_3$
|
|
22099
|
+
var templateObject_1$m, templateObject_2$h, templateObject_3$d;
|
|
22057
22100
|
|
|
22058
22101
|
var _c;
|
|
22059
22102
|
var _c0$4 = ["categoryContent"];
|
|
@@ -22533,7 +22576,7 @@
|
|
|
22533
22576
|
i18n_5 = MSG_EXTERNAL_588207140585847047$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_HEADER_CATALOG_HEADER_COMPONENT_TS___6;
|
|
22534
22577
|
}
|
|
22535
22578
|
else {
|
|
22536
|
-
i18n_5 = $localize(templateObject_3$
|
|
22579
|
+
i18n_5 = $localize(templateObject_3$c || (templateObject_3$c = __makeTemplateObject([":\u241F90857fa8dc61f44c68e5e16dae900b3eb88f2888\u241F588207140585847047:Favoris"], [":\u241F90857fa8dc61f44c68e5e16dae900b3eb88f2888\u241F588207140585847047:Favoris"])));
|
|
22537
22580
|
}
|
|
22538
22581
|
var i18n_7;
|
|
22539
22582
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -22541,7 +22584,7 @@
|
|
|
22541
22584
|
i18n_7 = MSG_EXTERNAL_3472368054805241582$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_HEADER_CATALOG_HEADER_COMPONENT_TS___8;
|
|
22542
22585
|
}
|
|
22543
22586
|
else {
|
|
22544
|
-
i18n_7 = $localize(templateObject_4$
|
|
22587
|
+
i18n_7 = $localize(templateObject_4$b || (templateObject_4$b = __makeTemplateObject([":\u241F8a1e056d8685c37c1de1b6bbcc961429bfd0e4ea\u241F3472368054805241582:Mon carnet perso"], [":\u241F8a1e056d8685c37c1de1b6bbcc961429bfd0e4ea\u241F3472368054805241582:Mon carnet perso"])));
|
|
22545
22588
|
}
|
|
22546
22589
|
var i18n_9;
|
|
22547
22590
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -22621,7 +22664,7 @@
|
|
|
22621
22664
|
type: i0.Output
|
|
22622
22665
|
}] });
|
|
22623
22666
|
})();
|
|
22624
|
-
var templateObject_1$k, templateObject_2$f, templateObject_3$
|
|
22667
|
+
var templateObject_1$k, templateObject_2$f, templateObject_3$c, templateObject_4$b, templateObject_5$9, templateObject_6$8;
|
|
22625
22668
|
|
|
22626
22669
|
function CatalogToolbarComponent_input_5_Template(rf, ctx) {
|
|
22627
22670
|
if (rf & 1) {
|
|
@@ -22830,7 +22873,7 @@
|
|
|
22830
22873
|
i18n_4 = MSG_EXTERNAL_7018050884147735331$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_TOOLBAR_CATALOG_TOOLBAR_COMPONENT_TS__5;
|
|
22831
22874
|
}
|
|
22832
22875
|
else {
|
|
22833
|
-
i18n_4 = $localize(templateObject_3$
|
|
22876
|
+
i18n_4 = $localize(templateObject_3$b || (templateObject_3$b = __makeTemplateObject([":\u241F9c1ee9470393e19cd9dc0dac8c351c7115e89332\u241F7018050884147735331:Pr\u00E9f\u00E9rences"], [":\u241F9c1ee9470393e19cd9dc0dac8c351c7115e89332\u241F7018050884147735331:Pr\u00E9f\u00E9rences"])));
|
|
22834
22877
|
}
|
|
22835
22878
|
var i18n_6;
|
|
22836
22879
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -22838,7 +22881,7 @@
|
|
|
22838
22881
|
i18n_6 = MSG_EXTERNAL_588207140585847047$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_TOOLBAR_CATALOG_TOOLBAR_COMPONENT_TS__7;
|
|
22839
22882
|
}
|
|
22840
22883
|
else {
|
|
22841
|
-
i18n_6 = $localize(templateObject_4$
|
|
22884
|
+
i18n_6 = $localize(templateObject_4$a || (templateObject_4$a = __makeTemplateObject([":\u241F90857fa8dc61f44c68e5e16dae900b3eb88f2888\u241F588207140585847047:Favoris"], [":\u241F90857fa8dc61f44c68e5e16dae900b3eb88f2888\u241F588207140585847047:Favoris"])));
|
|
22842
22885
|
}
|
|
22843
22886
|
var i18n_8;
|
|
22844
22887
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -22949,7 +22992,7 @@
|
|
|
22949
22992
|
type: i0.Output
|
|
22950
22993
|
}] });
|
|
22951
22994
|
})();
|
|
22952
|
-
var templateObject_1$j, templateObject_2$e, templateObject_3$
|
|
22995
|
+
var templateObject_1$j, templateObject_2$e, templateObject_3$b, templateObject_4$a, templateObject_5$8;
|
|
22953
22996
|
|
|
22954
22997
|
function PreferencesSearchComponent_button_6_Template(rf, ctx) {
|
|
22955
22998
|
if (rf & 1) {
|
|
@@ -23485,7 +23528,7 @@
|
|
|
23485
23528
|
i18n_4 = MSG_EXTERNAL_980939234227251011$$LIB__WEB_COMPONENTS_PREFERENCES_PREFERENCES_COMPONENT_TS__5;
|
|
23486
23529
|
}
|
|
23487
23530
|
else {
|
|
23488
|
-
i18n_4 = $localize(templateObject_3$
|
|
23531
|
+
i18n_4 = $localize(templateObject_3$a || (templateObject_3$a = __makeTemplateObject([":\u241Fb5462e8e9bfa6bb68b925926189d10a75d115a6d\u241F980939234227251011:Nombre de personnes"], [":\u241Fb5462e8e9bfa6bb68b925926189d10a75d115a6d\u241F980939234227251011:Nombre de personnes"])));
|
|
23489
23532
|
}
|
|
23490
23533
|
var i18n_6;
|
|
23491
23534
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -23493,7 +23536,7 @@
|
|
|
23493
23536
|
i18n_6 = MSG_EXTERNAL_6845852566956999721$$LIB__WEB_COMPONENTS_PREFERENCES_PREFERENCES_COMPONENT_TS__7;
|
|
23494
23537
|
}
|
|
23495
23538
|
else {
|
|
23496
|
-
i18n_6 = $localize(templateObject_4$
|
|
23539
|
+
i18n_6 = $localize(templateObject_4$9 || (templateObject_4$9 = __makeTemplateObject([":\u241F8529f4d811af3225e63076b81598965dd9927c29\u241F6845852566956999721: Avez-vous un r\u00E9gime particulier ? "], [":\u241F8529f4d811af3225e63076b81598965dd9927c29\u241F6845852566956999721: Avez-vous un r\u00E9gime particulier ? "])));
|
|
23497
23540
|
}
|
|
23498
23541
|
var i18n_8;
|
|
23499
23542
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -23582,7 +23625,7 @@
|
|
|
23582
23625
|
type: i0.Input
|
|
23583
23626
|
}] });
|
|
23584
23627
|
})();
|
|
23585
|
-
var templateObject_1$h, templateObject_2$c, templateObject_3$
|
|
23628
|
+
var templateObject_1$h, templateObject_2$c, templateObject_3$a, templateObject_4$9, templateObject_5$7, templateObject_6$7, templateObject_7$6, templateObject_8$3, templateObject_9$3;
|
|
23586
23629
|
|
|
23587
23630
|
function RecipeFormComponent_form_0_ng_template_3_Template(rf, ctx) {
|
|
23588
23631
|
if (rf & 1) {
|
|
@@ -24087,7 +24130,7 @@
|
|
|
24087
24130
|
i18n_4 = MSG_EXTERNAL_71394326071133031$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_FORM_RECIPE_FORM_COMPONENT_TS__5;
|
|
24088
24131
|
}
|
|
24089
24132
|
else {
|
|
24090
|
-
i18n_4 = $localize(templateObject_3$
|
|
24133
|
+
i18n_4 = $localize(templateObject_3$9 || (templateObject_3$9 = __makeTemplateObject([":\u241F9ea7d16d4d768d931934d11267eab0fa2465b9af\u241F71394326071133031:Nombre de convives"], [":\u241F9ea7d16d4d768d931934d11267eab0fa2465b9af\u241F71394326071133031:Nombre de convives"])));
|
|
24091
24134
|
}
|
|
24092
24135
|
var i18n_6;
|
|
24093
24136
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -24095,7 +24138,7 @@
|
|
|
24095
24138
|
i18n_6 = MSG_EXTERNAL_2356701248526522547$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_FORM_RECIPE_FORM_COMPONENT_TS___7;
|
|
24096
24139
|
}
|
|
24097
24140
|
else {
|
|
24098
|
-
i18n_6 = $localize(templateObject_4$
|
|
24141
|
+
i18n_6 = $localize(templateObject_4$8 || (templateObject_4$8 = __makeTemplateObject([":\u241F312a5f684a61a21bb47b38ff2975a5cb745bc3ec\u241F2356701248526522547:Titre de la recette"], [":\u241F312a5f684a61a21bb47b38ff2975a5cb745bc3ec\u241F2356701248526522547:Titre de la recette"])));
|
|
24099
24142
|
}
|
|
24100
24143
|
var i18n_8;
|
|
24101
24144
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -24184,7 +24227,7 @@
|
|
|
24184
24227
|
type: i0.Output
|
|
24185
24228
|
}] });
|
|
24186
24229
|
})();
|
|
24187
|
-
var templateObject_1$g, templateObject_2$b, templateObject_3$
|
|
24230
|
+
var templateObject_1$g, templateObject_2$b, templateObject_3$9, templateObject_4$8, templateObject_5$6, templateObject_6$6, templateObject_7$5, templateObject_8$2, templateObject_9$2;
|
|
24188
24231
|
|
|
24189
24232
|
function TagsCreatorComponent_ng_miam_modal_0_Template(rf, ctx) {
|
|
24190
24233
|
if (rf & 1) {
|
|
@@ -24261,7 +24304,7 @@
|
|
|
24261
24304
|
i18n_4 = MSG_EXTERNAL_9222330152375559662$$LIB__WEB_COMPONENTS_RECIPE_CREATION_TAGS_CREATOR_TAGS_CREATOR_COMPONENT_TS_5;
|
|
24262
24305
|
}
|
|
24263
24306
|
else {
|
|
24264
|
-
i18n_4 = $localize(templateObject_3$
|
|
24307
|
+
i18n_4 = $localize(templateObject_3$8 || (templateObject_3$8 = __makeTemplateObject([":\u241F30a34083240dc18e84ba37513fa6a1cf320f443c\u241F9222330152375559662:Cr\u00E9er"], [":\u241F30a34083240dc18e84ba37513fa6a1cf320f443c\u241F9222330152375559662:Cr\u00E9er"])));
|
|
24265
24308
|
}
|
|
24266
24309
|
var i18n_6;
|
|
24267
24310
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -24269,7 +24312,7 @@
|
|
|
24269
24312
|
i18n_6 = MSG_EXTERNAL_2085089061823165347$$LIB__WEB_COMPONENTS_RECIPE_CREATION_TAGS_CREATOR_TAGS_CREATOR_COMPONENT_TS__7;
|
|
24270
24313
|
}
|
|
24271
24314
|
else {
|
|
24272
|
-
i18n_6 = $localize(templateObject_4$
|
|
24315
|
+
i18n_6 = $localize(templateObject_4$7 || (templateObject_4$7 = __makeTemplateObject([":\u241F387f7490e7233f6df0794d40c96af50417d823d4\u241F2085089061823165347:Nom du tag"], [":\u241F387f7490e7233f6df0794d40c96af50417d823d4\u241F2085089061823165347:Nom du tag"])));
|
|
24273
24316
|
}
|
|
24274
24317
|
return [["title", i18n_0, "cancelButtonText", i18n_2, "confirmButtonText", i18n_4, "modalStyle", "right", 3, "noHeaderMode", "display", "confirmButtonIsLoading", "close", "cancel", "confirm", 4, "ngIf"], ["title", i18n_0, "cancelButtonText", i18n_2, "confirmButtonText", i18n_4, "modalStyle", "right", 3, "noHeaderMode", "display", "confirmButtonIsLoading", "close", "cancel", "confirm"], [1, "tags-creator"], ["for", "tag-name"], i18n_6, ["type", "text", "id", "tag-name", "name", "tag-name", 3, "ngModel", "ngModelChange"]];
|
|
24275
24318
|
}, template: function TagsCreatorComponent_Template(rf, ctx) {
|
|
@@ -24302,7 +24345,7 @@
|
|
|
24302
24345
|
type: i0.Output
|
|
24303
24346
|
}] });
|
|
24304
24347
|
})();
|
|
24305
|
-
var templateObject_1$f, templateObject_2$a, templateObject_3$
|
|
24348
|
+
var templateObject_1$f, templateObject_2$a, templateObject_3$8, templateObject_4$7;
|
|
24306
24349
|
|
|
24307
24350
|
function TagsSelectorComponent_ng_miam_modal_0_div_12_Template(rf, ctx) {
|
|
24308
24351
|
if (rf & 1) {
|
|
@@ -24532,7 +24575,7 @@
|
|
|
24532
24575
|
i18n_4 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_CREATION_TAGS_SELECTOR_TAGS_SELECTOR_COMPONENT_TS_5;
|
|
24533
24576
|
}
|
|
24534
24577
|
else {
|
|
24535
|
-
i18n_4 = $localize(templateObject_3$
|
|
24578
|
+
i18n_4 = $localize(templateObject_3$7 || (templateObject_3$7 = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
|
|
24536
24579
|
}
|
|
24537
24580
|
var i18n_6;
|
|
24538
24581
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -24540,7 +24583,7 @@
|
|
|
24540
24583
|
i18n_6 = MSG_EXTERNAL_3382889714979906141$$LIB__WEB_COMPONENTS_RECIPE_CREATION_TAGS_SELECTOR_TAGS_SELECTOR_COMPONENT_TS__7;
|
|
24541
24584
|
}
|
|
24542
24585
|
else {
|
|
24543
|
-
i18n_6 = $localize(templateObject_4$
|
|
24586
|
+
i18n_6 = $localize(templateObject_4$6 || (templateObject_4$6 = __makeTemplateObject([":\u241F1f162c229c7251bff76c426e1996ec2e8027a614\u241F3382889714979906141: Type de plat "], [":\u241F1f162c229c7251bff76c426e1996ec2e8027a614\u241F3382889714979906141: Type de plat "])));
|
|
24544
24587
|
}
|
|
24545
24588
|
var i18n_8;
|
|
24546
24589
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -24599,7 +24642,7 @@
|
|
|
24599
24642
|
type: i0.Output
|
|
24600
24643
|
}] });
|
|
24601
24644
|
})();
|
|
24602
|
-
var templateObject_1$e, templateObject_2$9, templateObject_3$
|
|
24645
|
+
var templateObject_1$e, templateObject_2$9, templateObject_3$7, templateObject_4$6, templateObject_5$5, templateObject_6$5, templateObject_7$4;
|
|
24603
24646
|
|
|
24604
24647
|
var _c0$3 = ["topAnchor"];
|
|
24605
24648
|
var _c1$2 = ["stepperLinks"];
|
|
@@ -25100,7 +25143,7 @@
|
|
|
25100
25143
|
i18n_7 = MSG_EXTERNAL_4902817035128594900$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_STEPPER_RECIPE_STEPPER_COMPONENT_TS_8;
|
|
25101
25144
|
}
|
|
25102
25145
|
else {
|
|
25103
|
-
i18n_7 = $localize(templateObject_3$
|
|
25146
|
+
i18n_7 = $localize(templateObject_3$6 || (templateObject_3$6 = __makeTemplateObject([":\u241Feec715de352a6b114713b30b640d319fa78207a0\u241F4902817035128594900:Description"], [":\u241Feec715de352a6b114713b30b640d319fa78207a0\u241F4902817035128594900:Description"])));
|
|
25104
25147
|
}
|
|
25105
25148
|
var i18n_9;
|
|
25106
25149
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -25108,7 +25151,7 @@
|
|
|
25108
25151
|
i18n_9 = MSG_EXTERNAL_113705676033818564$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_STEPPER_RECIPE_STEPPER_COMPONENT_TS_10;
|
|
25109
25152
|
}
|
|
25110
25153
|
else {
|
|
25111
|
-
i18n_9 = $localize(templateObject_4$
|
|
25154
|
+
i18n_9 = $localize(templateObject_4$5 || (templateObject_4$5 = __makeTemplateObject([":\u241Fab3acd9b11f096a99bcf748296bb5b4fb11048be\u241F113705676033818564:Ingr\u00E9dients & \u00C9tapes"], [":\u241Fab3acd9b11f096a99bcf748296bb5b4fb11048be\u241F113705676033818564:Ingr\u00E9dients & \u00C9tapes"])));
|
|
25112
25155
|
}
|
|
25113
25156
|
var i18n_11;
|
|
25114
25157
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -25376,7 +25419,7 @@
|
|
|
25376
25419
|
args: ['step']
|
|
25377
25420
|
}] });
|
|
25378
25421
|
})();
|
|
25379
|
-
var templateObject_1$d, templateObject_2$8, templateObject_3$
|
|
25422
|
+
var templateObject_1$d, templateObject_2$8, templateObject_3$6, templateObject_4$5, templateObject_5$4, templateObject_6$4, templateObject_7$3, templateObject_8$1, templateObject_9$1, templateObject_10$1, templateObject_11$1, templateObject_12$1, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
|
|
25380
25423
|
|
|
25381
25424
|
var _c0$2 = ["miamCatalogTopAnchor"];
|
|
25382
25425
|
var _c1$1 = ["returnHomeButton"];
|
|
@@ -26180,7 +26223,7 @@
|
|
|
26180
26223
|
i18n_6 = MSG_EXTERNAL_588207140585847047$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_RECIPE_CATALOG_COMPONENT_TS____7;
|
|
26181
26224
|
}
|
|
26182
26225
|
else {
|
|
26183
|
-
i18n_6 = $localize(templateObject_3$
|
|
26226
|
+
i18n_6 = $localize(templateObject_3$5 || (templateObject_3$5 = __makeTemplateObject([":\u241F90857fa8dc61f44c68e5e16dae900b3eb88f2888\u241F588207140585847047:Favoris"], [":\u241F90857fa8dc61f44c68e5e16dae900b3eb88f2888\u241F588207140585847047:Favoris"])));
|
|
26184
26227
|
}
|
|
26185
26228
|
var i18n_8;
|
|
26186
26229
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -26188,7 +26231,7 @@
|
|
|
26188
26231
|
i18n_8 = MSG_EXTERNAL_3472368054805241582$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_RECIPE_CATALOG_COMPONENT_TS____9;
|
|
26189
26232
|
}
|
|
26190
26233
|
else {
|
|
26191
|
-
i18n_8 = $localize(templateObject_4$
|
|
26234
|
+
i18n_8 = $localize(templateObject_4$4 || (templateObject_4$4 = __makeTemplateObject([":\u241F8a1e056d8685c37c1de1b6bbcc961429bfd0e4ea\u241F3472368054805241582:Mon carnet perso"], [":\u241F8a1e056d8685c37c1de1b6bbcc961429bfd0e4ea\u241F3472368054805241582:Mon carnet perso"])));
|
|
26192
26235
|
}
|
|
26193
26236
|
var i18n_10;
|
|
26194
26237
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -26264,7 +26307,7 @@
|
|
|
26264
26307
|
type: i0.Input
|
|
26265
26308
|
}] });
|
|
26266
26309
|
})();
|
|
26267
|
-
var templateObject_1$c, templateObject_2$7, templateObject_3$
|
|
26310
|
+
var templateObject_1$c, templateObject_2$7, templateObject_3$5, templateObject_4$4, templateObject_5$3, templateObject_6$3;
|
|
26268
26311
|
|
|
26269
26312
|
var RecipeCreationModule = /** @class */ (function () {
|
|
26270
26313
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -27976,7 +28019,7 @@
|
|
|
27976
28019
|
i18n_6 = MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_______7;
|
|
27977
28020
|
}
|
|
27978
28021
|
else {
|
|
27979
|
-
i18n_6 = $localize(templateObject_3$
|
|
28022
|
+
i18n_6 = $localize(templateObject_3$4 || (templateObject_3$4 = __makeTemplateObject([":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"], [":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"])));
|
|
27980
28023
|
}
|
|
27981
28024
|
var i18n_8;
|
|
27982
28025
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -27984,7 +28027,7 @@
|
|
|
27984
28027
|
i18n_8 = MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_______9;
|
|
27985
28028
|
}
|
|
27986
28029
|
else {
|
|
27987
|
-
i18n_8 = $localize(templateObject_4$
|
|
28030
|
+
i18n_8 = $localize(templateObject_4$3 || (templateObject_4$3 = __makeTemplateObject([":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"], [":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"])));
|
|
27988
28031
|
}
|
|
27989
28032
|
var i18n_10;
|
|
27990
28033
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -28074,7 +28117,7 @@
|
|
|
28074
28117
|
args: ['topContainerImg']
|
|
28075
28118
|
}] });
|
|
28076
28119
|
})();
|
|
28077
|
-
var templateObject_1$6, templateObject_2$4, templateObject_3$
|
|
28120
|
+
var templateObject_1$6, templateObject_2$4, templateObject_3$4, templateObject_4$3, templateObject_5$2, templateObject_6$2, templateObject_7$2;
|
|
28078
28121
|
|
|
28079
28122
|
var RecipeDetailsModule = /** @class */ (function () {
|
|
28080
28123
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -28314,7 +28357,7 @@
|
|
|
28314
28357
|
i18n_4 = MSG_EXTERNAL_373143433767250089$$LIB__WEB_COMPONENTS_RECIPE_HELPER_RECIPE_HELPER_COMPONENT_TS__5;
|
|
28315
28358
|
}
|
|
28316
28359
|
else {
|
|
28317
|
-
i18n_4 = $localize(templateObject_3$
|
|
28360
|
+
i18n_4 = $localize(templateObject_3$3 || (templateObject_3$3 = __makeTemplateObject([":\u241F6b3440183ef6e9a0959cf29ab136fc49d12f73c5\u241F373143433767250089:Comment \u00E7a marche ?"], [":\u241F6b3440183ef6e9a0959cf29ab136fc49d12f73c5\u241F373143433767250089:Comment \u00E7a marche ?"])));
|
|
28318
28361
|
}
|
|
28319
28362
|
var i18n_6;
|
|
28320
28363
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -28322,7 +28365,7 @@
|
|
|
28322
28365
|
i18n_6 = MSG_EXTERNAL_4201906510803171506$$LIB__WEB_COMPONENTS_RECIPE_HELPER_RECIPE_HELPER_COMPONENT_TS__7;
|
|
28323
28366
|
}
|
|
28324
28367
|
else {
|
|
28325
|
-
i18n_6 = $localize(templateObject_4$
|
|
28368
|
+
i18n_6 = $localize(templateObject_4$2 || (templateObject_4$2 = __makeTemplateObject([":\u241F9dbf18fe66bbecaa6af6687c2d2353c0d1a8f83f\u241F4201906510803171506:Retrouvez le d\u00E9tail de la recette en cliquant sur la carte."], [":\u241F9dbf18fe66bbecaa6af6687c2d2353c0d1a8f83f\u241F4201906510803171506:Retrouvez le d\u00E9tail de la recette en cliquant sur la carte."])));
|
|
28326
28369
|
}
|
|
28327
28370
|
var i18n_8;
|
|
28328
28371
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -28373,7 +28416,7 @@
|
|
|
28373
28416
|
type: i0.Output
|
|
28374
28417
|
}] });
|
|
28375
28418
|
})();
|
|
28376
|
-
var templateObject_1$5, templateObject_2$3, templateObject_3$
|
|
28419
|
+
var templateObject_1$5, templateObject_2$3, templateObject_3$3, templateObject_4$2, templateObject_5$1, templateObject_6$1, templateObject_7$1;
|
|
28377
28420
|
|
|
28378
28421
|
var _c0 = ["tag"];
|
|
28379
28422
|
function RecipeTagsComponent_ng_container_0_div_1_div_2_Template(rf, ctx) {
|
|
@@ -28894,7 +28937,7 @@
|
|
|
28894
28937
|
i18n_4 = MSG_EXTERNAL_6317414861786302811$$LIB__WEB_COMPONENTS_RECIPES_HISTORY_RECIPES_HISTORY_COMPONENT_TS__5;
|
|
28895
28938
|
}
|
|
28896
28939
|
else {
|
|
28897
|
-
i18n_4 = $localize(templateObject_3$
|
|
28940
|
+
i18n_4 = $localize(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject([":\u241Fc452e641faa925d3d1e85e984181d96173e96ccd\u241F6317414861786302811:Vous n'avez aucun repas dans votre historique."], [":\u241Fc452e641faa925d3d1e85e984181d96173e96ccd\u241F6317414861786302811:Vous n'avez aucun repas dans votre historique."])));
|
|
28898
28941
|
}
|
|
28899
28942
|
return [[1, "miam-recipes-history"], [1, "miam-recipes-history__title"], i18n_0, ["class", "miam-recipes-history__title__pagination", 4, "ngIf"], [4, "ngIf"], ["class", "miam-recipes-history__groups", 4, "ngFor", "ngForOf"], [1, "miam-recipes-history__title__pagination"], ["height", "24", "width", "24", "primaryColor", "grey", 1, "left", 3, "iconName", "click"], i18n_2, ["height", "24", "width", "24", "primaryColor", "grey", 1, "right", 3, "iconName", "click"], i18n_4, [1, "miam-recipes-history__groups"], [1, "miam-recipes-history__groups__header", 3, "click"], [1, "miam-recipes-history__groups__header__date"], [1, "miam-recipes-history__groups__header__chevron", 3, "ngClass"], ["height", "32", "width", "32", 3, "iconName"], [1, "miam-recipes-history__groups__recipes", 3, "ngClass"], [4, "ngFor", "ngForOf"], ["class", "miam-recipes-history__groups__recipes__line", 3, "displayTotalPricing", "line", "originTrace", 4, "ngIf"], [1, "miam-recipes-history__groups__recipes__line", 3, "displayTotalPricing", "line", "originTrace"]];
|
|
28900
28943
|
}, template: function RecipesHistoryComponent_Template(rf, ctx) {
|
|
@@ -28931,7 +28974,7 @@
|
|
|
28931
28974
|
}]
|
|
28932
28975
|
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: RecipesService }, { type: RecipeSelectionLogsService }, { type: BasketsService }, { type: AnalyticsService }]; }, null);
|
|
28933
28976
|
})();
|
|
28934
|
-
var templateObject_1$3, templateObject_2$2, templateObject_3$
|
|
28977
|
+
var templateObject_1$3, templateObject_2$2, templateObject_3$2;
|
|
28935
28978
|
|
|
28936
28979
|
/**
|
|
28937
28980
|
* this service is made to add class miam-not-printable to root DOM's elements
|
|
@@ -29083,7 +29126,7 @@
|
|
|
29083
29126
|
i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 13);
|
|
29084
29127
|
i0__namespace.ɵɵlistener("close", function RecipeModalComponent_ng_miam_modal_1_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.hide(); });
|
|
29085
29128
|
i0__namespace.ɵɵelementStart(1, "ng-miam-replace-item", 14);
|
|
29086
|
-
i0__namespace.ɵɵlistener("selected", function RecipeModalComponent_ng_miam_modal_1_Template_ng_miam_replace_item_selected_1_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r19 = i0__namespace.ɵɵnextContext(); return ctx_r19.
|
|
29129
|
+
i0__namespace.ɵɵlistener("selected", function RecipeModalComponent_ng_miam_modal_1_Template_ng_miam_replace_item_selected_1_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r19 = i0__namespace.ɵɵnextContext(); return ctx_r19.productReplacementService.showProductSection(); });
|
|
29087
29130
|
i0__namespace.ɵɵelementEnd();
|
|
29088
29131
|
i0__namespace.ɵɵelementEnd();
|
|
29089
29132
|
}
|
|
@@ -29100,7 +29143,7 @@
|
|
|
29100
29143
|
i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 13);
|
|
29101
29144
|
i0__namespace.ɵɵlistener("close", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r20 = i0__namespace.ɵɵnextContext(); return ctx_r20.hide(); });
|
|
29102
29145
|
i0__namespace.ɵɵelementStart(1, "ng-miam-replace-item", 15);
|
|
29103
|
-
i0__namespace.ɵɵlistener("selected", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_replace_item_selected_1_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r22 = i0__namespace.ɵɵnextContext(); return ctx_r22.productReplacementService.
|
|
29146
|
+
i0__namespace.ɵɵlistener("selected", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_replace_item_selected_1_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r22 = i0__namespace.ɵɵnextContext(); return ctx_r22.productReplacementService.changeReplaceModalState(false); });
|
|
29104
29147
|
i0__namespace.ɵɵelementEnd();
|
|
29105
29148
|
i0__namespace.ɵɵelementEnd();
|
|
29106
29149
|
}
|
|
@@ -29112,7 +29155,7 @@
|
|
|
29112
29155
|
}
|
|
29113
29156
|
}
|
|
29114
29157
|
var RecipeModalComponent = /** @class */ (function () {
|
|
29115
|
-
function RecipeModalComponent(cdr, analyticsService, recipesService, contextService, printService, basketTransferService, elRef, basketsService, recipeDetailsService,
|
|
29158
|
+
function RecipeModalComponent(cdr, analyticsService, recipesService, contextService, printService, basketTransferService, elRef, basketsService, recipeDetailsService, productReplacementService, posService, storeLocatorService, basketTransfer) {
|
|
29116
29159
|
this.cdr = cdr;
|
|
29117
29160
|
this.analyticsService = analyticsService;
|
|
29118
29161
|
this.recipesService = recipesService;
|
|
@@ -29122,7 +29165,6 @@
|
|
|
29122
29165
|
this.elRef = elRef;
|
|
29123
29166
|
this.basketsService = basketsService;
|
|
29124
29167
|
this.recipeDetailsService = recipeDetailsService;
|
|
29125
|
-
this.productAdditionService = productAdditionService;
|
|
29126
29168
|
this.productReplacementService = productReplacementService;
|
|
29127
29169
|
this.posService = posService;
|
|
29128
29170
|
this.storeLocatorService = storeLocatorService;
|
|
@@ -29172,10 +29214,10 @@
|
|
|
29172
29214
|
}
|
|
29173
29215
|
_this.cdr.detectChanges(); // hide does a detectChanges so we avoid a double change
|
|
29174
29216
|
}
|
|
29175
|
-
}), this.
|
|
29217
|
+
}), this.productReplacementService.additionModalOpen$.subscribe(function (isOpened) {
|
|
29176
29218
|
_this.productAdditionModalOpened = isOpened;
|
|
29177
29219
|
_this.cdr.detectChanges();
|
|
29178
|
-
}), this.productReplacementService.
|
|
29220
|
+
}), this.productReplacementService.replaceModalOpen$.subscribe(function (isOpened) {
|
|
29179
29221
|
_this.productReplacementModalOpened = isOpened;
|
|
29180
29222
|
_this.cdr.detectChanges();
|
|
29181
29223
|
}));
|
|
@@ -29251,8 +29293,8 @@
|
|
|
29251
29293
|
// Put back if/when printing is reimplemented
|
|
29252
29294
|
// this.printService.dismissPrinting();
|
|
29253
29295
|
this.hasChangesOnClose.emit(this.basketChangedSinceOpened);
|
|
29254
|
-
this.
|
|
29255
|
-
this.productReplacementService.
|
|
29296
|
+
this.productReplacementService.changeAdditionModalState(false);
|
|
29297
|
+
this.productReplacementService.changeReplaceModalState(false);
|
|
29256
29298
|
this.basketChangedSinceOpened = false;
|
|
29257
29299
|
this._storeLocatorInit = false;
|
|
29258
29300
|
this.storeLocatorService.closeStoreLocator();
|
|
@@ -29300,7 +29342,7 @@
|
|
|
29300
29342
|
};
|
|
29301
29343
|
return RecipeModalComponent;
|
|
29302
29344
|
}());
|
|
29303
|
-
RecipeModalComponent.ɵfac = function RecipeModalComponent_Factory(t) { return new (t || RecipeModalComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(PrintService), i0__namespace.ɵɵdirectiveInject(BasketTransferService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(
|
|
29345
|
+
RecipeModalComponent.ɵfac = function RecipeModalComponent_Factory(t) { return new (t || RecipeModalComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(PrintService), i0__namespace.ɵɵdirectiveInject(BasketTransferService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(ProductReplacementService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(StoreLocatorService), i0__namespace.ɵɵdirectiveInject(BasketTransferService)); };
|
|
29304
29346
|
RecipeModalComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeModalComponent, selectors: [["ng-miam-recipe-modal"]], inputs: { detailsStepsOnLeftSide: "detailsStepsOnLeftSide", detailsMoreRecipesImageURL: "detailsMoreRecipesImageURL", detailsPricingGuestsText: "detailsPricingGuestsText" }, outputs: { hasChangesOnClose: "hasChangesOnClose" }, decls: 3, vars: 3, consts: function () {
|
|
29305
29347
|
var i18n_0;
|
|
29306
29348
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -29335,7 +29377,7 @@
|
|
|
29335
29377
|
changeDetection: i0.ChangeDetectionStrategy.OnPush,
|
|
29336
29378
|
encapsulation: i0.ViewEncapsulation.None
|
|
29337
29379
|
}]
|
|
29338
|
-
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }, { type: RecipesService }, { type: ContextService }, { type: PrintService }, { type: BasketTransferService }, { type: i0__namespace.ElementRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type:
|
|
29380
|
+
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }, { type: RecipesService }, { type: ContextService }, { type: PrintService }, { type: BasketTransferService }, { type: i0__namespace.ElementRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: ProductReplacementService }, { type: PointOfSalesService }, { type: StoreLocatorService }, { type: BasketTransferService }]; }, { detailsStepsOnLeftSide: [{
|
|
29339
29381
|
type: i0.Input
|
|
29340
29382
|
}], detailsMoreRecipesImageURL: [{
|
|
29341
29383
|
type: i0.Input
|
|
@@ -29574,7 +29616,7 @@
|
|
|
29574
29616
|
i18n_4 = MSG_EXTERNAL_8029599185023712374$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__5;
|
|
29575
29617
|
}
|
|
29576
29618
|
else {
|
|
29577
|
-
i18n_4 = $localize(templateObject_3 || (templateObject_3 = __makeTemplateObject([":\u241F22f3d0c26b2d497c81e0194b076b5ad08e332219\u241F8029599185023712374: Les recettes sont commandables en ligne ! "], [":\u241F22f3d0c26b2d497c81e0194b076b5ad08e332219\u241F8029599185023712374: Les recettes sont commandables en ligne ! "])));
|
|
29619
|
+
i18n_4 = $localize(templateObject_3$1 || (templateObject_3$1 = __makeTemplateObject([":\u241F22f3d0c26b2d497c81e0194b076b5ad08e332219\u241F8029599185023712374: Les recettes sont commandables en ligne ! "], [":\u241F22f3d0c26b2d497c81e0194b076b5ad08e332219\u241F8029599185023712374: Les recettes sont commandables en ligne ! "])));
|
|
29578
29620
|
}
|
|
29579
29621
|
var i18n_6;
|
|
29580
29622
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -29582,7 +29624,7 @@
|
|
|
29582
29624
|
i18n_6 = MSG_EXTERNAL_5564097410576841229$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__7;
|
|
29583
29625
|
}
|
|
29584
29626
|
else {
|
|
29585
|
-
i18n_6 = $localize(templateObject_4 || (templateObject_4 = __makeTemplateObject([":\u241Fd0761c4c3712e219f2ff2fbeab7f37f7b95926bc\u241F5564097410576841229:Commandez"], [":\u241Fd0761c4c3712e219f2ff2fbeab7f37f7b95926bc\u241F5564097410576841229:Commandez"])));
|
|
29627
|
+
i18n_6 = $localize(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject([":\u241Fd0761c4c3712e219f2ff2fbeab7f37f7b95926bc\u241F5564097410576841229:Commandez"], [":\u241Fd0761c4c3712e219f2ff2fbeab7f37f7b95926bc\u241F5564097410576841229:Commandez"])));
|
|
29586
29628
|
}
|
|
29587
29629
|
var i18n_8;
|
|
29588
29630
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -29610,11 +29652,11 @@
|
|
|
29610
29652
|
}
|
|
29611
29653
|
var i18n_14;
|
|
29612
29654
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
29613
|
-
var
|
|
29614
|
-
i18n_14 =
|
|
29655
|
+
var MSG_EXTERNAL_3432872847350099115$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__15 = goog.getMsg(" S\u00E9lectionnez un magasin parmi les enseignes participantes et disponibles proches de vous ");
|
|
29656
|
+
i18n_14 = MSG_EXTERNAL_3432872847350099115$$LIB__WEB_COMPONENTS_NO_SUPPLIER_ONBOARDING_NO_SUPPLIER_ONBOARDING_COMPONENT_TS__15;
|
|
29615
29657
|
}
|
|
29616
29658
|
else {
|
|
29617
|
-
i18n_14 = $localize(templateObject_8 || (templateObject_8 = __makeTemplateObject([":\
|
|
29659
|
+
i18n_14 = $localize(templateObject_8 || (templateObject_8 = __makeTemplateObject([":\u241Fe32ee2c6756129fdb7a455f65f3ece06c8569a3a\u241F3432872847350099115: S\u00E9lectionnez un magasin parmi les enseignes participantes et disponibles proches de vous "], [":\u241Fe32ee2c6756129fdb7a455f65f3ece06c8569a3a\u241F3432872847350099115: S\u00E9lectionnez un magasin parmi les enseignes participantes et disponibles proches de vous "])));
|
|
29618
29660
|
}
|
|
29619
29661
|
var i18n_16;
|
|
29620
29662
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -29739,7 +29781,7 @@
|
|
|
29739
29781
|
}]
|
|
29740
29782
|
}], function () { return [{ type: StoreLocatorService }, { type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }]; }, null);
|
|
29741
29783
|
})();
|
|
29742
|
-
var templateObject_1$1, templateObject_2$1, templateObject_3, templateObject_4, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
|
|
29784
|
+
var templateObject_1$1, templateObject_2$1, templateObject_3$1, templateObject_4$1, templateObject_5, templateObject_6, templateObject_7, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12;
|
|
29743
29785
|
|
|
29744
29786
|
var WarningStoreLocatorComponent = /** @class */ (function () {
|
|
29745
29787
|
function WarningStoreLocatorComponent(storeLocatoreService, cdr) {
|
|
@@ -29765,7 +29807,7 @@
|
|
|
29765
29807
|
return WarningStoreLocatorComponent;
|
|
29766
29808
|
}());
|
|
29767
29809
|
WarningStoreLocatorComponent.ɵfac = function WarningStoreLocatorComponent_Factory(t) { return new (t || WarningStoreLocatorComponent)(i0__namespace.ɵɵdirectiveInject(StoreLocatorService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
|
|
29768
|
-
WarningStoreLocatorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WarningStoreLocatorComponent, selectors: [["ng-miam-warning-store-locator"]], decls:
|
|
29810
|
+
WarningStoreLocatorComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: WarningStoreLocatorComponent, selectors: [["ng-miam-warning-store-locator"]], decls: 8, vars: 2, consts: function () {
|
|
29769
29811
|
var i18n_0;
|
|
29770
29812
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
29771
29813
|
var MSG_EXTERNAL_3978328765105102624$$LIB__WEB_COMPONENTS_WARNING_STORE_LOCATOR_WARNING_STORE_LOCATOR_COMPONENT_TS_1 = goog.getMsg("Ok, compris !");
|
|
@@ -29776,19 +29818,43 @@
|
|
|
29776
29818
|
}
|
|
29777
29819
|
var i18n_2;
|
|
29778
29820
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
29779
|
-
var
|
|
29780
|
-
i18n_2 =
|
|
29821
|
+
var MSG_EXTERNAL_6787282648225625713$$LIB__WEB_COMPONENTS_WARNING_STORE_LOCATOR_WARNING_STORE_LOCATOR_COMPONENT_TS_3 = goog.getMsg(" Pour utiliser la fonctionnalit\u00E9 \"mise au panier des ingr\u00E9dients de vos recettes\", ");
|
|
29822
|
+
i18n_2 = MSG_EXTERNAL_6787282648225625713$$LIB__WEB_COMPONENTS_WARNING_STORE_LOCATOR_WARNING_STORE_LOCATOR_COMPONENT_TS_3;
|
|
29823
|
+
}
|
|
29824
|
+
else {
|
|
29825
|
+
i18n_2 = $localize(templateObject_2 || (templateObject_2 = __makeTemplateObject([":\u241F372da2aebc0e4bc5080170837bf3f9b7f832b8a6\u241F6787282648225625713: Pour utiliser la fonctionnalit\u00E9 \"mise au panier des ingr\u00E9dients de vos recettes\", "], [":\u241F372da2aebc0e4bc5080170837bf3f9b7f832b8a6\u241F6787282648225625713: Pour utiliser la fonctionnalit\u00E9 \"mise au panier des ingr\u00E9dients de vos recettes\", "])));
|
|
29826
|
+
}
|
|
29827
|
+
var i18n_4;
|
|
29828
|
+
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
29829
|
+
var MSG_EXTERNAL_7662279777808824504$$LIB__WEB_COMPONENTS_WARNING_STORE_LOCATOR_WARNING_STORE_LOCATOR_COMPONENT_TS_5 = goog.getMsg("nous vous recommandons de passer par le site internet Marmiton depuis un ordinateur,");
|
|
29830
|
+
i18n_4 = MSG_EXTERNAL_7662279777808824504$$LIB__WEB_COMPONENTS_WARNING_STORE_LOCATOR_WARNING_STORE_LOCATOR_COMPONENT_TS_5;
|
|
29831
|
+
}
|
|
29832
|
+
else {
|
|
29833
|
+
i18n_4 = $localize(templateObject_3 || (templateObject_3 = __makeTemplateObject([":\u241F0621031f6e71c95f20f5126188ada10a9af25c91\u241F7662279777808824504:nous vous recommandons de passer par le site internet Marmiton depuis un ordinateur,"], [":\u241F0621031f6e71c95f20f5126188ada10a9af25c91\u241F7662279777808824504:nous vous recommandons de passer par le site internet Marmiton depuis un ordinateur,"])));
|
|
29834
|
+
}
|
|
29835
|
+
var i18n_6;
|
|
29836
|
+
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
29837
|
+
var MSG_EXTERNAL_8406061925122776138$$LIB__WEB_COMPONENTS_WARNING_STORE_LOCATOR_WARNING_STORE_LOCATOR_COMPONENT_TS_7 = goog.getMsg(" si l'application Courses U est install\u00E9e sur votre t\u00E9l\u00E9phone. ");
|
|
29838
|
+
i18n_6 = MSG_EXTERNAL_8406061925122776138$$LIB__WEB_COMPONENTS_WARNING_STORE_LOCATOR_WARNING_STORE_LOCATOR_COMPONENT_TS_7;
|
|
29781
29839
|
}
|
|
29782
29840
|
else {
|
|
29783
|
-
|
|
29841
|
+
i18n_6 = $localize(templateObject_4 || (templateObject_4 = __makeTemplateObject([":\u241F3818ec65bee09f08bd8efc4719baa7c74bb1b42d\u241F8406061925122776138: si l'application Courses U est install\u00E9e sur votre t\u00E9l\u00E9phone. "], [":\u241F3818ec65bee09f08bd8efc4719baa7c74bb1b42d\u241F8406061925122776138: si l'application Courses U est install\u00E9e sur votre t\u00E9l\u00E9phone. "])));
|
|
29784
29842
|
}
|
|
29785
|
-
return [["modalStyle", "center", "confirmButtonText", i18n_0, 1, "miam-warning-store-locator", 3, "noHeaderMode", "display", "confirm", "close"], [1, "miam-warning-store-locator__content", "miam-ds-text", "size-s", "weight-m"], i18n_2];
|
|
29843
|
+
return [["modalStyle", "center", "confirmButtonText", i18n_0, 1, "miam-warning-store-locator", 3, "noHeaderMode", "display", "confirm", "close"], [1, "miam-warning-store-locator__content", "miam-ds-text", "size-s", "weight-m"], i18n_2, i18n_4, i18n_6];
|
|
29786
29844
|
}, template: function WarningStoreLocatorComponent_Template(rf, ctx) {
|
|
29787
29845
|
if (rf & 1) {
|
|
29788
29846
|
i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 0);
|
|
29789
29847
|
i0__namespace.ɵɵlistener("confirm", function WarningStoreLocatorComponent_Template_ng_miam_modal_confirm_0_listener() { return ctx.onConfirm(); })("close", function WarningStoreLocatorComponent_Template_ng_miam_modal_close_0_listener() { return ctx.onConfirm(); });
|
|
29790
29848
|
i0__namespace.ɵɵelementStart(1, "span", 1);
|
|
29791
|
-
i0__namespace.ɵɵ
|
|
29849
|
+
i0__namespace.ɵɵelementStart(2, "span");
|
|
29850
|
+
i0__namespace.ɵɵi18n(3, 2);
|
|
29851
|
+
i0__namespace.ɵɵelementEnd();
|
|
29852
|
+
i0__namespace.ɵɵelementStart(4, "b");
|
|
29853
|
+
i0__namespace.ɵɵi18n(5, 3);
|
|
29854
|
+
i0__namespace.ɵɵelementEnd();
|
|
29855
|
+
i0__namespace.ɵɵelementStart(6, "span");
|
|
29856
|
+
i0__namespace.ɵɵi18n(7, 4);
|
|
29857
|
+
i0__namespace.ɵɵelementEnd();
|
|
29792
29858
|
i0__namespace.ɵɵelementEnd();
|
|
29793
29859
|
i0__namespace.ɵɵelementEnd();
|
|
29794
29860
|
}
|
|
@@ -29808,7 +29874,7 @@
|
|
|
29808
29874
|
}]
|
|
29809
29875
|
}], function () { return [{ type: StoreLocatorService }, { type: i0__namespace.ChangeDetectorRef }]; }, null);
|
|
29810
29876
|
})();
|
|
29811
|
-
var templateObject_1, templateObject_2;
|
|
29877
|
+
var templateObject_1, templateObject_2, templateObject_3, templateObject_4;
|
|
29812
29878
|
|
|
29813
29879
|
var WEB_COMPONENTS = [
|
|
29814
29880
|
RecipeModalComponent,
|
|
@@ -30107,7 +30173,6 @@
|
|
|
30107
30173
|
exports.PreferencesService = PreferencesService;
|
|
30108
30174
|
exports.PriceComponent = PriceComponent;
|
|
30109
30175
|
exports.ProductAdditionCardComponent = ProductAdditionCardComponent;
|
|
30110
|
-
exports.ProductAdditionService = ProductAdditionService;
|
|
30111
30176
|
exports.ProductCardComponent = ProductCardComponent;
|
|
30112
30177
|
exports.ProductReplacementService = ProductReplacementService;
|
|
30113
30178
|
exports.ProductsPickerComponent = ProductsPickerComponent;
|