ng-miam 8.1.3 → 8.1.5

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.
Files changed (41) hide show
  1. package/bundles/ng-miam.umd.js +307 -112
  2. package/bundles/ng-miam.umd.js.map +1 -1
  3. package/bundles/ng-miam.umd.min.js +1 -1
  4. package/bundles/ng-miam.umd.min.js.map +1 -1
  5. package/esm2015/lib/_components/addon-link/addon-link.component.js +1 -1
  6. package/esm2015/lib/_components/modal/modal.component.js +2 -2
  7. package/esm2015/lib/_models/point-of-sale.js +9 -2
  8. package/esm2015/lib/_services/basket-transfer.service.js +119 -0
  9. package/esm2015/lib/_services/baskets-synchronizing/baskets-comparator.service.js +25 -7
  10. package/esm2015/lib/_services/baskets-synchronizing/baskets-synchronizer.service.js +11 -4
  11. package/esm2015/lib/_services/context.service.js +12 -1
  12. package/esm2015/lib/_services/index.js +2 -1
  13. package/esm2015/lib/_services/interceptor.service.js +2 -2
  14. package/esm2015/lib/_types/builded/miam-interface.js +1 -1
  15. package/esm2015/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.js +12 -13
  16. package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +1 -1
  17. package/esm2015/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.js +1 -1
  18. package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +119 -93
  19. package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +5 -5
  20. package/esm2015/lib/ng-miam.module.js +4 -2
  21. package/fesm2015/ng-miam.js +288 -113
  22. package/fesm2015/ng-miam.js.map +1 -1
  23. package/lib/_models/point-of-sale.d.ts +3 -0
  24. package/lib/_models/point-of-sale.d.ts.map +1 -1
  25. package/lib/_services/basket-transfer.service.d.ts +31 -0
  26. package/lib/_services/basket-transfer.service.d.ts.map +1 -0
  27. package/lib/_services/baskets-synchronizing/baskets-comparator.service.d.ts +1 -1
  28. package/lib/_services/baskets-synchronizing/baskets-comparator.service.d.ts.map +1 -1
  29. package/lib/_services/baskets-synchronizing/baskets-synchronizer.service.d.ts.map +1 -1
  30. package/lib/_services/context.service.d.ts +1 -0
  31. package/lib/_services/context.service.d.ts.map +1 -1
  32. package/lib/_services/index.d.ts +1 -0
  33. package/lib/_services/index.d.ts.map +1 -1
  34. package/lib/_types/builded/miam-interface.d.ts +1 -0
  35. package/lib/_types/builded/miam-interface.d.ts.map +1 -1
  36. package/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.d.ts +3 -3
  37. package/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.d.ts.map +1 -1
  38. package/lib/_web-components/recipe-details/recipe-details.component.d.ts +2 -1
  39. package/lib/_web-components/recipe-details/recipe-details.component.d.ts.map +1 -1
  40. package/lib/ng-miam.module.d.ts.map +1 -1
  41. package/package.json +1 -1
@@ -597,7 +597,8 @@
597
597
  distance: 0.0,
598
598
  address: '',
599
599
  latitude: '',
600
- longitude: ''
600
+ longitude: '',
601
+ 'ext-id': ''
601
602
  };
602
603
  _this.relationships = {
603
604
  supplier: new i2.DocumentResource(),
@@ -628,6 +629,16 @@
628
629
  enumerable: false,
629
630
  configurable: true
630
631
  });
632
+ Object.defineProperty(PointOfSale.prototype, "extId", {
633
+ get: function () {
634
+ return this.attributes['ext-id'];
635
+ },
636
+ set: function (id) {
637
+ this.attributes['ext-id'] = id;
638
+ },
639
+ enumerable: false,
640
+ configurable: true
641
+ });
631
642
  return PointOfSale;
632
643
  }(i2.Resource));
633
644
 
@@ -4488,12 +4499,17 @@
4488
4499
  * from Miam's basket, and create ItemsComparators for entries whose extId hasn't got an ItemsComparator yet.
4489
4500
  * Then check for items to remove from Miam's basket & send update event to Miam
4490
4501
  */
4491
- BasketsComparatorService.prototype.initBasketComparator = function (firstMiamBasket, firstRetailerBasket) {
4502
+ BasketsComparatorService.prototype.initBasketComparator = function (firstMiamBasket, firstRetailerBasket, fromRetailer) {
4492
4503
  this.extIdToItemsComparator = {};
4493
4504
  this.updateRetailerProducts(firstRetailerBasket);
4494
4505
  this.updateEntriesFromMiam(firstMiamBasket);
4495
4506
  this.addEntriesFromMiam(firstMiamBasket);
4496
- return this.resolveFromRetailer();
4507
+ if (fromRetailer) {
4508
+ return this.resolveFromRetailer();
4509
+ }
4510
+ else {
4511
+ return this.resolveFromMiam(firstMiamBasket);
4512
+ }
4497
4513
  };
4498
4514
  // -----------------------------------------------------------------------------------------------------------------------------
4499
4515
  // ------------------------------------------------------ Coming from Miam -----------------------------------------------------
@@ -4506,12 +4522,18 @@
4506
4522
  BasketsComparatorService.prototype.updateReceivedFromMiam = function (miamBasket) {
4507
4523
  var _this = this;
4508
4524
  // eslint-disable-next-line no-console
4509
- console.debug("[Miam] update received from Miam\n - " + JSON.stringify(miamBasket === null || miamBasket === void 0 ? void 0 : miamBasket.map(function (e) { var _a; return ({ id: e.id, extId: (_a = e.selectedItem) === null || _a === void 0 ? void 0 : _a.attributes['ext-id'], quantity: e.attributes.quantity }); })) + "\n - current comparison: " + JSON.stringify(Object.keys(this.extIdToItemsComparator).map(function (key) { return ({ id: key, MQ: _this.extIdToItemsComparator[key].miamQuantity, RQ: _this.extIdToItemsComparator[key].retailerQuantity }); })));
4525
+ console.debug("[Miam] update received from Miam\n - " + JSON.stringify(miamBasket === null || miamBasket === void 0 ? void 0 : miamBasket.map(function (e) {
4526
+ var _a;
4527
+ return ({
4528
+ id: e.id,
4529
+ extId: (_a = e.selectedItem) === null || _a === void 0 ? void 0 : _a.attributes['ext-id'],
4530
+ quantity: e.attributes.quantity
4531
+ });
4532
+ })) + "\n - current comparison: " + JSON.stringify(Object.keys(this.extIdToItemsComparator).map(function (key) { return ({ id: key, MQ: _this.extIdToItemsComparator[key].miamQuantity, RQ: _this.extIdToItemsComparator[key].retailerQuantity }); })));
4510
4533
  // Note: MQ means Miam Quantity and RQ means Retailer Quantity but this makes the logs more compact and thus readable
4511
4534
  this.updateEntriesFromMiam(miamBasket);
4512
4535
  this.addEntriesFromMiam(miamBasket);
4513
- var toPushToRetailer = this.resolveFromMiam(miamBasket);
4514
- return toPushToRetailer;
4536
+ return this.resolveFromMiam(miamBasket);
4515
4537
  };
4516
4538
  /**
4517
4539
  * For every entry in Miam's basket whose associated extId has an ItemsComparator, update the comparator with the entry
@@ -4555,7 +4577,14 @@
4555
4577
  BasketsComparatorService.prototype.resolveFromMiam = function (miamBasket) {
4556
4578
  var _this = this;
4557
4579
  // eslint-disable-next-line no-console
4558
- console.debug("[Miam] resolve from Miam basket\n - " + JSON.stringify(miamBasket === null || miamBasket === void 0 ? void 0 : miamBasket.map(function (e) { var _a; return ({ id: e.id, extId: (_a = e.selectedItem) === null || _a === void 0 ? void 0 : _a.attributes['ext-id'], quantity: e.attributes.quantity }); })) + "\n - current comparison: " + JSON.stringify(Object.keys(this.extIdToItemsComparator).map(function (key) { return ({ id: key, MQ: _this.extIdToItemsComparator[key].miamQuantity, RQ: _this.extIdToItemsComparator[key].retailerQuantity }); })));
4580
+ console.debug("[Miam] resolve from Miam basket\n - " + JSON.stringify(miamBasket === null || miamBasket === void 0 ? void 0 : miamBasket.map(function (e) {
4581
+ var _a;
4582
+ return ({
4583
+ id: e.id,
4584
+ extId: (_a = e.selectedItem) === null || _a === void 0 ? void 0 : _a.attributes['ext-id'],
4585
+ quantity: e.attributes.quantity
4586
+ });
4587
+ })) + "\n - current comparison: " + JSON.stringify(Object.keys(this.extIdToItemsComparator).map(function (key) { return ({ id: key, MQ: _this.extIdToItemsComparator[key].miamQuantity, RQ: _this.extIdToItemsComparator[key].retailerQuantity }); })));
4559
4588
  // Note: MQ means Miam Quantity and RQ means Retailer Quantity but this makes the logs more compact and thus readable
4560
4589
  var toPushToRetailer = [];
4561
4590
  Object.keys(this.extIdToItemsComparator).forEach(function (extId) {
@@ -4725,9 +4754,16 @@
4725
4754
  if (!this.isReady()) {
4726
4755
  return;
4727
4756
  }
4728
- this.isProcessingRetailerEvent = true;
4729
- var toRemoveFromMiam = this.comparatorService.initBasketComparator(this.firstMiamBasket, this.firstRetailerBasket);
4730
- this.sendUpdateToMiam(toRemoveFromMiam);
4757
+ if (sessionStorage.getItem('_miam/basketActionInterrupted') === 'true') {
4758
+ var itemsToPush = this.comparatorService.initBasketComparator(this.firstMiamBasket, this.firstRetailerBasket, false);
4759
+ this.sendUpdateToRetailer(itemsToPush);
4760
+ sessionStorage.removeItem('_miam/basketActionInterrupted');
4761
+ }
4762
+ else {
4763
+ this.isProcessingRetailerEvent = true;
4764
+ var toRemoveFromMiam = this.comparatorService.initBasketComparator(this.firstMiamBasket, this.firstRetailerBasket, true);
4765
+ this.sendUpdateToMiam(toRemoveFromMiam);
4766
+ }
4731
4767
  };
4732
4768
  /**
4733
4769
  * @returns true is first baskets have been received for Miam & retailer
@@ -4856,6 +4892,14 @@
4856
4892
  this.videoRecipesEnabled = false;
4857
4893
  this.articlesInCatalogEnabled = false;
4858
4894
  this.tagsOnRecipesEnabled = false;
4895
+ this.hookCallback = function (isLogged, isPosValid) {
4896
+ console.warn('[Miam] hookCallback (used to force user login) not set');
4897
+ return false;
4898
+ };
4899
+ this.forcePosCallback = function (posExtId) {
4900
+ console.warn('[Miam] forcePosCallback (used to force selected shop) not set');
4901
+ return false;
4902
+ };
4859
4903
  this.defaultIngredientPicture = 'https://storage.googleapis.com/assets.miam.tech/generic/images/default-ingredient-picture.svg';
4860
4904
  this.globalScrollableElement = document.body;
4861
4905
  this.isSmallScreen$ = new rxjs.BehaviorSubject(false);
@@ -4944,6 +4988,9 @@
4944
4988
  hook: {
4945
4989
  setHookCallback: function (callback) {
4946
4990
  _this.hookCallback = callback;
4991
+ },
4992
+ setForcePosCallback: function (callback) {
4993
+ _this.forcePosCallback = callback;
4947
4994
  }
4948
4995
  },
4949
4996
  pos: {
@@ -6731,7 +6778,7 @@
6731
6778
  i0__namespace.ɵɵadvance(1);
6732
6779
  i0__namespace.ɵɵproperty("ngIf", ctx.recipe == null ? null : ctx.recipe.sponsorLogoUrl);
6733
6780
  }
6734
- }, directives: [i2__namespace$1.NgIf], styles: [".miam-addon-link{flex-direction:row;padding:12px 16px;font-size:16px}.miam-addon-link,.miam-addon-link .miam-addon-link__info{display:flex;align-items:center;justify-content:space-between}.miam-addon-link .miam-addon-link__info{flex-direction:row;flex:1}.miam-addon-link .miam-addon-link__info .miam-addon-link__sponsor-name{white-space:nowrap}@media (max-width:1023px){.miam-addon-link .miam-addon-link__info{flex-direction:column;align-items:flex-start}}.miam-addon-link .miam-addon-link__info .miam-addon-link__link{color:var(--m-color-primary);cursor:pointer;-webkit-tap-highlight-color:transparent;white-space:nowrap;margin-left:16px}@media (max-width:1023px){.miam-addon-link .miam-addon-link__info .miam-addon-link__link{margin-left:unset;margin-top:8px}}.miam-addon-link .miam-addon-link__logo{width:auto;height:48px;justify-content:flex-end;display:flex;order:2;align-items:center;padding-left:16px}.miam-addon-link .miam-addon-link__logo img{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}"], encapsulation: 2, changeDetection: 0 });
6781
+ }, directives: [i2__namespace$1.NgIf], styles: [".miam-addon-link{display:flex;flex-direction:row;align-items:center;justify-content:space-between;padding:12px 16px;font-size:16px}.miam-addon-link .miam-addon-link__info{display:flex;flex-direction:column;flex:1;justify-content:space-between;align-items:flex-start}.miam-addon-link .miam-addon-link__info .miam-addon-link__sponsor-name{white-space:nowrap}.miam-addon-link .miam-addon-link__info .miam-addon-link__link{color:var(--m-color-primary);cursor:pointer;-webkit-tap-highlight-color:transparent;white-space:nowrap;margin-top:8px}.miam-addon-link .miam-addon-link__logo{width:auto;height:48px;justify-content:flex-end;display:flex;order:2;align-items:center;padding-left:16px}.miam-addon-link .miam-addon-link__logo img{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}"], encapsulation: 2, changeDetection: 0 });
6735
6782
  (function () {
6736
6783
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AddonLinkComponent, [{
6737
6784
  type: i0.Component,
@@ -8298,6 +8345,119 @@
8298
8345
  }], function () { return [{ type: SponsorBlockTypeService }]; }, null);
8299
8346
  })();
8300
8347
 
8348
+ var BasketTransferService = /** @class */ (function () {
8349
+ function BasketTransferService(basketsService, contextService, posService, http, userService) {
8350
+ this.basketsService = basketsService;
8351
+ this.contextService = contextService;
8352
+ this.posService = posService;
8353
+ this.http = http;
8354
+ this.userService = userService;
8355
+ this.handleBasketTransfer();
8356
+ }
8357
+ BasketTransferService.prototype.handleBasketTransfer = function () {
8358
+ var _this = this;
8359
+ var transferData = this.getTransferData();
8360
+ if (transferData) {
8361
+ this.basketsService.waitForBasket.pipe(operators.take(1), operators.switchMap(function () { return _this.applyBasketTransfer(transferData); }), operators.switchMap(function () { return _this.basketsService.reloadBasket(); })).subscribe();
8362
+ }
8363
+ };
8364
+ BasketTransferService.prototype.applyBasketTransfer = function (params) {
8365
+ var _this = this;
8366
+ this.setSessionData(params);
8367
+ return this.callHookbackIfNotLogged().pipe(operators.skipWhile(function (isLogged) { return !isLogged; }), operators.switchMap(function () { return _this.forcePosIfUnset(params.posExtId); }), operators.skipWhile(function (isPosSet) { return !isPosSet; }), operators.switchMap(function () {
8368
+ return _this.posService.pos$.pipe(operators.skipWhile(function (pos) { return !pos; }), operators.take(1), operators.switchMap(function (pos) {
8369
+ var posId = pos.id;
8370
+ var transferBasketUrl = environment$1.miamAPI + "/api/v1/baskets/transfer?point_of_sale_id=" + posId + "&transferred_basket_token=" + params.basketToken;
8371
+ _this.clearTransferSessionData();
8372
+ sessionStorage.setItem('_miam/basketActionInterrupted', 'true');
8373
+ return _this.http.patch(transferBasketUrl, {}).pipe(operators.switchMap(function () {
8374
+ var getCurrentBasketUrl = environment$1.miamAPI + "/api/v1/baskets/current?point_of_sale_id=" + posId;
8375
+ return _this.http.get(getCurrentBasketUrl, {}).pipe(operators.switchMap(function () {
8376
+ sessionStorage.removeItem('_miam/basketActionInterrupted');
8377
+ return rxjs.of(true);
8378
+ }));
8379
+ }));
8380
+ }));
8381
+ }));
8382
+ };
8383
+ BasketTransferService.prototype.setSessionData = function (params) {
8384
+ var basketTokenFromSession = sessionStorage.getItem('_miam/transferredBasketToken');
8385
+ var posExtIdFromSession = sessionStorage.getItem('_miam/pointOfSaleExtId');
8386
+ var isSessionDataMatching = basketTokenFromSession === params.basketToken && posExtIdFromSession === params.posExtId;
8387
+ if (!isSessionDataMatching) {
8388
+ sessionStorage.setItem('_miam/transferredBasketToken', params.basketToken);
8389
+ sessionStorage.setItem('_miam/posOfSaleExtId', params.posExtId);
8390
+ }
8391
+ };
8392
+ BasketTransferService.prototype.clearTransferSessionData = function () {
8393
+ sessionStorage.removeItem('_miam/transferredBasketToken');
8394
+ sessionStorage.removeItem('_miam/pointOfSaleExtId');
8395
+ };
8396
+ BasketTransferService.prototype.confirmBasket = function () {
8397
+ var _this = this;
8398
+ var posId;
8399
+ this.posService.pos$.asObservable().pipe(operators.skipWhile(function (pos) { return !pos; }), operators.take(1)).subscribe(function (pos) {
8400
+ posId = pos.id;
8401
+ var getCurrentBasketUrl = environment$1.miamAPI + "/api/v1/baskets/current?point_of_sale_id=" + posId;
8402
+ _this.http.get(getCurrentBasketUrl, {}).subscribe(function () {
8403
+ var startTransferUrl = environment$1.miamAPI + "/api/v1/baskets/start_transfer?point_of_sale_id=" + posId;
8404
+ _this.http.patch(startTransferUrl, {}).subscribe(function (transferResponse) {
8405
+ console.log('PATCH transfer:', transferResponse);
8406
+ _this.http.get(getCurrentBasketUrl, {}).subscribe(function () {
8407
+ var transferUrl = transferResponse['transfer_url'];
8408
+ window.open(transferUrl, '_blank');
8409
+ });
8410
+ });
8411
+ });
8412
+ });
8413
+ };
8414
+ BasketTransferService.prototype.callHookbackIfNotLogged = function () {
8415
+ var _this = this;
8416
+ return rxjs.combineLatest([
8417
+ this.userService.isLogged$,
8418
+ this.posService.posWasInitialized()
8419
+ ]).pipe(operators.take(1), operators.map(function (_a) {
8420
+ var _b = __read(_a, 2), isLogged = _b[0], isPosValid = _b[1];
8421
+ return _this.contextService.hookCallback(isLogged, isPosValid);
8422
+ }));
8423
+ };
8424
+ BasketTransferService.prototype.forcePosIfUnset = function (transferPosExtId) {
8425
+ var _this = this;
8426
+ return this.posService.pos$.pipe(operators.map(function (pos) {
8427
+ var posSet = pos && pos.extId === transferPosExtId;
8428
+ if (!posSet) {
8429
+ _this.contextService.forcePosCallback(transferPosExtId);
8430
+ }
8431
+ return posSet;
8432
+ }));
8433
+ };
8434
+ BasketTransferService.prototype.getTransferData = function () {
8435
+ var currentUrl = window.location.href;
8436
+ var urlParams = new URL(currentUrl).searchParams;
8437
+ var basketToken = urlParams.get('transferred_basket_token') || sessionStorage.getItem('_miam/transferredBasketToken');
8438
+ var posExtId = urlParams.get('point_of_sale_ext_id') || sessionStorage.getItem('_miam/posOfSaleExtId');
8439
+ var urlWithoutParams = currentUrl.split('?')[0];
8440
+ history.replaceState({}, document.title, urlWithoutParams);
8441
+ if (basketToken && posExtId) {
8442
+ return { basketToken: basketToken, posExtId: posExtId };
8443
+ }
8444
+ else {
8445
+ return null;
8446
+ }
8447
+ };
8448
+ return BasketTransferService;
8449
+ }());
8450
+ BasketTransferService.ɵfac = function BasketTransferService_Factory(t) { return new (t || BasketTransferService)(i0__namespace.ɵɵinject(BasketsService), i0__namespace.ɵɵinject(ContextService), i0__namespace.ɵɵinject(PointOfSalesService), i0__namespace.ɵɵinject(i1__namespace.HttpClient), i0__namespace.ɵɵinject(UserService)); };
8451
+ BasketTransferService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: BasketTransferService, factory: BasketTransferService.ɵfac, providedIn: 'root' });
8452
+ (function () {
8453
+ (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BasketTransferService, [{
8454
+ type: i0.Injectable,
8455
+ args: [{
8456
+ providedIn: 'root'
8457
+ }]
8458
+ }], function () { return [{ type: BasketsService }, { type: ContextService }, { type: PointOfSalesService }, { type: i1__namespace.HttpClient }, { type: UserService }]; }, null);
8459
+ })();
8460
+
8301
8461
  var environment = {
8302
8462
  env: 'prod',
8303
8463
  miamAPI: 'https://api.miam.tech',
@@ -8356,7 +8516,7 @@
8356
8516
  request = request.clone({
8357
8517
  setHeaders: {
8358
8518
  'miam-origin': this.context.origin.value,
8359
- 'miam-front-version': '8.1.2',
8519
+ 'miam-front-version': '8.1.5',
8360
8520
  'miam-front-type': 'web',
8361
8521
  'miam-api-version': '4.7.0'
8362
8522
  }
@@ -8905,7 +9065,7 @@
8905
9065
  var _this = this;
8906
9066
  this.currentPath = window.location.href;
8907
9067
  this.mutationObserver = new MutationObserver(function () {
8908
- if (_this.currentPath !== window.location.href) {
9068
+ if (_this.display && _this.currentPath !== window.location.href) {
8909
9069
  _this.onClose();
8910
9070
  }
8911
9071
  });
@@ -19154,7 +19314,7 @@
19154
19314
  i0__namespace.ɵɵadvance(1);
19155
19315
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(9, 8, ctx.loading));
19156
19316
  }
19157
- }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, IconComponent, CardCreateRecipeComponent, RecipeCardComponent, LoadOnScrollDirective, i2__namespace$1.NgTemplateOutlet, CatalogArticleCardComponent, LoaderComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-catalog-list__cards{display:grid;grid-template-columns:repeat(auto-fill,var(--m-catalog-card-width));justify-content:center;gap:16px;position:relative;width:100%;box-sizing:border-box}.miam-catalog-list__cards .miam-catalog-list__notFound{display:flex;flex-direction:column;width:100%;justify-content:center;text-align:center;padding:36px 0 0}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{margin-top:36px;font-size:24px;font-weight:700;color:var(--m-color-primary)}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering{display:flex;justify-content:center}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering .miam-catalog-list__notFound__searching span{margin-left:5px}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title2{font-size:22px;color:var(--m-color-grey-text)}.miam-catalog-list__cards .miam-catalog-list__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-list__cards .miam-catalog-list__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-catalog-list__cards #miam-catalog-list__anchor{position:relative;bottom:0;height:600px;margin-top:-600px}"], encapsulation: 2, changeDetection: 0 });
19317
+ }, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, IconComponent, CardCreateRecipeComponent, RecipeCardComponent, LoadOnScrollDirective, i2__namespace$1.NgTemplateOutlet, CatalogArticleCardComponent, LoaderComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-catalog-list__cards{display:grid;grid-template-columns:repeat(auto-fill,var(--m-catalog-card-width));justify-content:center;gap:16px;position:relative;width:100%;box-sizing:border-box}.miam-catalog-list__cards:not(:has(.miam-recipe-card)){grid-template-columns:unset}.miam-catalog-list__cards .miam-catalog-list__notFound{display:flex;flex-direction:column;width:100%;justify-content:center;text-align:center;padding:36px 0 0}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{margin-top:36px;font-size:24px;font-weight:700;color:var(--m-color-primary)}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering{display:flex;justify-content:center}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering .miam-catalog-list__notFound__searching span{margin-left:5px}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title2{font-size:22px;color:var(--m-color-grey-text)}.miam-catalog-list__cards .miam-catalog-list__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-list__cards .miam-catalog-list__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-catalog-list__cards #miam-catalog-list__anchor{position:relative;bottom:0;height:600px;margin-top:-600px}"], encapsulation: 2, changeDetection: 0 });
19158
19318
  (function () {
19159
19319
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CatalogListComponent, [{
19160
19320
  type: i0.Component,
@@ -20067,13 +20227,14 @@
20067
20227
  _c);
20068
20228
  var CatalogCategoryComponent = /** @class */ (function (_super) {
20069
20229
  __extends(CatalogCategoryComponent, _super);
20070
- function CatalogCategoryComponent(recipesService, articlesService, context, cdr, analyticsService) {
20230
+ function CatalogCategoryComponent(recipesService, articlesService, context, cdr, analyticsService, basketTransfer) {
20071
20231
  var _this = _super.call(this, analyticsService) || this;
20072
20232
  _this.recipesService = recipesService;
20073
20233
  _this.articlesService = articlesService;
20074
20234
  _this.context = context;
20075
20235
  _this.cdr = cdr;
20076
20236
  _this.analyticsService = analyticsService;
20237
+ _this.basketTransfer = basketTransfer;
20077
20238
  _this.title = '';
20078
20239
  _this.maxRecipeNumber = 20;
20079
20240
  _this.displayPricing = true;
@@ -20145,7 +20306,7 @@
20145
20306
  };
20146
20307
  return CatalogCategoryComponent;
20147
20308
  }(EventTracerComponent));
20148
- CatalogCategoryComponent.ɵfac = function CatalogCategoryComponent_Factory(t) { return new (t || CatalogCategoryComponent)(i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(ArticlesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService)); };
20309
+ CatalogCategoryComponent.ɵfac = function CatalogCategoryComponent_Factory(t) { return new (t || CatalogCategoryComponent)(i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(ArticlesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(BasketTransferService)); };
20149
20310
  CatalogCategoryComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CatalogCategoryComponent, selectors: [["ng-miam-catalog-category"]], viewQuery: function CatalogCategoryComponent_Query(rf, ctx) {
20150
20311
  if (rf & 1) {
20151
20312
  i0__namespace.ɵɵviewQuery(_c0$5, 1);
@@ -20194,7 +20355,7 @@
20194
20355
  encapsulation: i0.ViewEncapsulation.None,
20195
20356
  changeDetection: i0.ChangeDetectionStrategy.OnPush
20196
20357
  }]
20197
- }], function () { return [{ type: RecipesService }, { type: ArticlesService }, { type: ContextService }, { type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }]; }, { filters: [{
20358
+ }], function () { return [{ type: RecipesService }, { type: ArticlesService }, { type: ContextService }, { type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }, { type: BasketTransferService }]; }, { filters: [{
20198
20359
  type: i0.Input
20199
20360
  }], title: [{
20200
20361
  type: i0.Input
@@ -23563,7 +23724,7 @@
23563
23724
  var _r1 = i0__namespace.ɵɵreference(2);
23564
23725
  i0__namespace.ɵɵproperty("ngIf", !ctx.loading)("ngIfElse", _r1);
23565
23726
  }
23566
- }, directives: [i2__namespace$1.NgIf, IconComponent, SponsorStorytellingComponent, LoaderComponent], pipes: [SafePipe], styles: [".miam-recipe-addon{height:100%;width:100%;display:flex;flex-direction:column}.miam-recipe-addon .miam-recipe-addon__header{padding:26px 80px 26px 16px;width:100%;display:flex;justify-content:space-between;align-items:center;box-shadow:0 8px 28px rgba(0,0,0,.07)}@media (max-width:1023px){.miam-recipe-addon .miam-recipe-addon__header{padding:16px 80px 16px 16px}}.miam-recipe-addon .miam-recipe-addon__header button{max-width:150px;padding:0;color:var(--m-color-black);font-weight:700;font-size:19px;background-color:transparent;border:none}.miam-recipe-addon .miam-recipe-addon__header button ng-miam-icon{margin:0;height:16px;transform:rotate(90deg) scale(1.5)}.miam-recipe-addon .miam-recipe-addon__header button ng-miam-icon svg path{fill:var(--m-color-black)}.miam-recipe-addon .miam-recipe-addon__header button ng-miam-icon svg path:first-of-type{fill:transparent}.miam-recipe-addon .miam-recipe-addon__header button:hover{background-color:transparent;border:none}.miam-recipe-addon .miam-recipe-addon__header button:hover ng-miam-icon svg path{fill:var(--m-color-black)}.miam-recipe-addon .miam-recipe-addon__header button:hover ng-miam-icon svg path:first-of-type{fill:transparent}.miam-recipe-addon .miam-recipe-addon__header button span{margin-left:8px}.miam-recipe-addon .miam-recipe-addon__header img{height:25px}.miam-recipe-addon .miam-recipe-addon__content{flex:1 1;width:calc(100% - 8px);height:100%;padding-top:16px;overflow-x:hidden;overflow-y:auto;margin-right:8px;background-color:#fff}.miam-recipe-addon .miam-recipe-addon__content::-webkit-scrollbar-button{height:20px}.miam-recipe-addon .miam-recipe-addon__content::-webkit-scrollbar-track{background:var(--m-color-grey)}.miam-recipe-addon .miam-recipe-addon__content::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.miam-recipe-addon .miam-recipe-addon__content::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.miam-recipe-addon .miam-recipe-addon__content .miam-recipe-addon__content__iframe{height:calc(100dvh - 98px);width:100%}.miam-recipe-addon__loader{height:100%;width:100%;display:flex;justify-content:center;align-items:center}"], encapsulation: 2, changeDetection: 0 });
23727
+ }, directives: [i2__namespace$1.NgIf, IconComponent, SponsorStorytellingComponent, LoaderComponent], pipes: [SafePipe], styles: [".miam-recipe-addon{height:100%;width:100%;display:flex;flex-direction:column}.miam-recipe-addon .miam-recipe-addon__header{padding:16px;display:flex;justify-content:space-between;align-items:center;box-shadow:0 8px 28px rgba(0,0,0,.07)}.miam-recipe-addon .miam-recipe-addon__header button{max-width:150px;padding:0;color:var(--m-color-black);font-weight:700;font-size:19px;background-color:transparent;border:none}.miam-recipe-addon .miam-recipe-addon__header button ng-miam-icon{margin:0;height:16px;transform:rotate(90deg) scale(1.5)}.miam-recipe-addon .miam-recipe-addon__header button ng-miam-icon svg path{fill:var(--m-color-black)}.miam-recipe-addon .miam-recipe-addon__header button ng-miam-icon svg path:first-of-type{fill:transparent}.miam-recipe-addon .miam-recipe-addon__header button:hover{background-color:transparent;border:none}.miam-recipe-addon .miam-recipe-addon__header button:hover ng-miam-icon svg path{fill:var(--m-color-black)}.miam-recipe-addon .miam-recipe-addon__header button:hover ng-miam-icon svg path:first-of-type{fill:transparent}.miam-recipe-addon .miam-recipe-addon__header button span{margin-left:8px}.miam-recipe-addon .miam-recipe-addon__header img{height:25px}.miam-recipe-addon .miam-recipe-addon__content{background-color:#fff}.miam-recipe-addon .miam-recipe-addon__content .miam-recipe-addon__content__iframe{height:calc(100dvh - 98px);width:100%}.miam-recipe-addon__loader{height:100%;width:100%;display:flex;justify-content:center;align-items:center}"], encapsulation: 2, changeDetection: 0 });
23567
23728
  (function () {
23568
23729
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeAddonComponent, [{
23569
23730
  type: i0.Component,
@@ -23968,7 +24129,7 @@
23968
24129
  }
23969
24130
  function RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_10_Template(rf, ctx) {
23970
24131
  if (rf & 1) {
23971
- i0__namespace.ɵɵelement(0, "ng-miam-like-button", 45);
24132
+ i0__namespace.ɵɵelement(0, "ng-miam-like-button", 43);
23972
24133
  }
23973
24134
  if (rf & 2) {
23974
24135
  var ctx_r6 = i0__namespace.ɵɵnextContext(3);
@@ -23977,7 +24138,7 @@
23977
24138
  }
23978
24139
  function RecipeDetailsComponent_div_0_div_3_img_14_Template(rf, ctx) {
23979
24140
  if (rf & 1) {
23980
- i0__namespace.ɵɵelement(0, "img", 46);
24141
+ i0__namespace.ɵɵelement(0, "img", 44);
23981
24142
  }
23982
24143
  if (rf & 2) {
23983
24144
  var ctx_r7 = i0__namespace.ɵɵnextContext(3);
@@ -23986,7 +24147,7 @@
23986
24147
  }
23987
24148
  function RecipeDetailsComponent_div_0_div_3_youtube_player_15_Template(rf, ctx) {
23988
24149
  if (rf & 1) {
23989
- i0__namespace.ɵɵelement(0, "youtube-player", 47);
24150
+ i0__namespace.ɵɵelement(0, "youtube-player", 45);
23990
24151
  }
23991
24152
  if (rf & 2) {
23992
24153
  var ctx_r8 = i0__namespace.ɵɵnextContext(3);
@@ -23995,8 +24156,8 @@
23995
24156
  }
23996
24157
  function RecipeDetailsComponent_div_0_div_3_div_16_Template(rf, ctx) {
23997
24158
  if (rf & 1) {
23998
- i0__namespace.ɵɵelementStart(0, "div", 48);
23999
- i0__namespace.ɵɵelement(1, "img", 49);
24159
+ i0__namespace.ɵɵelementStart(0, "div", 46);
24160
+ i0__namespace.ɵɵelement(1, "img", 47);
24000
24161
  i0__namespace.ɵɵelementEnd();
24001
24162
  }
24002
24163
  if (rf & 2) {
@@ -24007,9 +24168,9 @@
24007
24168
  }
24008
24169
  function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template(rf, ctx) {
24009
24170
  if (rf & 1) {
24010
- var _r19_1 = i0__namespace.ɵɵgetCurrentView();
24011
- i0__namespace.ɵɵelementStart(0, "ng-miam-addon-link", 50);
24012
- i0__namespace.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template_ng_miam_addon_link_showAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(3); return ctx_r18.toggleAddon(); });
24171
+ var _r18_1 = i0__namespace.ɵɵgetCurrentView();
24172
+ i0__namespace.ɵɵelementStart(0, "ng-miam-addon-link", 48);
24173
+ i0__namespace.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template_ng_miam_addon_link_showAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(3); return ctx_r17.toggleAddon(); });
24013
24174
  i0__namespace.ɵɵelementEnd();
24014
24175
  }
24015
24176
  if (rf & 2) {
@@ -24019,7 +24180,7 @@
24019
24180
  }
24020
24181
  function RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_27_Template(rf, ctx) {
24021
24182
  if (rf & 1) {
24022
- i0__namespace.ɵɵelement(0, "ng-miam-like-button", 51);
24183
+ i0__namespace.ɵɵelement(0, "ng-miam-like-button", 49);
24023
24184
  }
24024
24185
  if (rf & 2) {
24025
24186
  var ctx_r11 = i0__namespace.ɵɵnextContext(3);
@@ -24028,17 +24189,17 @@
24028
24189
  }
24029
24190
  function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template(rf, ctx) {
24030
24191
  if (rf & 1) {
24031
- var _r21_1 = i0__namespace.ɵɵgetCurrentView();
24032
- i0__namespace.ɵɵelementStart(0, "ng-miam-products-picker", 52);
24033
- i0__namespace.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template_ng_miam_products_picker_closeModal_0_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r20 = i0__namespace.ɵɵnextContext(3); return ctx_r20.onClose(); });
24192
+ var _r20_1 = i0__namespace.ɵɵgetCurrentView();
24193
+ i0__namespace.ɵɵelementStart(0, "ng-miam-products-picker", 50);
24194
+ i0__namespace.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template_ng_miam_products_picker_closeModal_0_listener() { i0__namespace.ɵɵrestoreView(_r20_1); var ctx_r19 = i0__namespace.ɵɵnextContext(3); return ctx_r19.onClose(); });
24034
24195
  i0__namespace.ɵɵelementEnd();
24035
24196
  }
24036
24197
  }
24037
24198
  function RecipeDetailsComponent_div_0_div_3_div_36_Template(rf, ctx) {
24038
24199
  if (rf & 1) {
24039
- i0__namespace.ɵɵelementStart(0, "div", 53);
24040
- i0__namespace.ɵɵelement(1, "ng-miam-recipe-details-ingredients", 54);
24041
- i0__namespace.ɵɵelement(2, "ng-miam-recipe-details-steps", 55);
24200
+ i0__namespace.ɵɵelementStart(0, "div", 51);
24201
+ i0__namespace.ɵɵelement(1, "ng-miam-recipe-details-ingredients", 52);
24202
+ i0__namespace.ɵɵelement(2, "ng-miam-recipe-details-steps", 53);
24042
24203
  i0__namespace.ɵɵelementEnd();
24043
24204
  }
24044
24205
  if (rf & 2) {
@@ -24049,35 +24210,35 @@
24049
24210
  i0__namespace.ɵɵproperty("recipe", ctx_r13.recipeDetailsService.recipe);
24050
24211
  }
24051
24212
  }
24052
- function RecipeDetailsComponent_div_0_div_3_button_39_span_7_Template(rf, ctx) {
24213
+ function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_span_7_Template(rf, ctx) {
24053
24214
  if (rf & 1) {
24054
24215
  i0__namespace.ɵɵelementStart(0, "span");
24055
24216
  i0__namespace.ɵɵi18n(1, 63);
24056
24217
  i0__namespace.ɵɵelementEnd();
24057
24218
  }
24058
24219
  }
24059
- function RecipeDetailsComponent_div_0_div_3_button_39_span_8_Template(rf, ctx) {
24220
+ function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_span_8_Template(rf, ctx) {
24060
24221
  if (rf & 1) {
24061
24222
  i0__namespace.ɵɵelementStart(0, "span");
24062
24223
  i0__namespace.ɵɵi18n(1, 64);
24063
24224
  i0__namespace.ɵɵelementEnd();
24064
24225
  }
24065
24226
  }
24066
- function RecipeDetailsComponent_div_0_div_3_button_39_Template(rf, ctx) {
24227
+ function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_Template(rf, ctx) {
24067
24228
  if (rf & 1) {
24068
- var _r25_1 = i0__namespace.ɵɵgetCurrentView();
24069
- i0__namespace.ɵɵelementStart(0, "button", 56);
24070
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_button_39_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r25_1); var ctx_r24 = i0__namespace.ɵɵnextContext(3); return ctx_r24.recipeDetailsService.addAllIngredientsToBasket(ctx_r24.eventTrace()); });
24071
- i0__namespace.ɵɵelement(1, "img", 57);
24072
- i0__namespace.ɵɵelementStart(2, "div", 58);
24229
+ var _r27_1 = i0__namespace.ɵɵgetCurrentView();
24230
+ i0__namespace.ɵɵelementStart(0, "button", 57);
24231
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r26 = i0__namespace.ɵɵnextContext(4); return ctx_r26.recipeDetailsService.addAllIngredientsToBasket(ctx_r26.eventTrace()); });
24232
+ i0__namespace.ɵɵelement(1, "img", 58);
24233
+ i0__namespace.ɵɵelementStart(2, "div", 59);
24073
24234
  i0__namespace.ɵɵelementStart(3, "span");
24074
- i0__namespace.ɵɵi18n(4, 59);
24235
+ i0__namespace.ɵɵi18n(4, 60);
24075
24236
  i0__namespace.ɵɵelementEnd();
24076
24237
  i0__namespace.ɵɵelementStart(5, "span");
24077
24238
  i0__namespace.ɵɵtext(6);
24078
24239
  i0__namespace.ɵɵelementEnd();
24079
- i0__namespace.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_3_button_39_span_7_Template, 2, 0, "span", 60);
24080
- i0__namespace.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_3_button_39_span_8_Template, 2, 0, "span", 60);
24240
+ i0__namespace.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_span_7_Template, 2, 0, "span", 41);
24241
+ i0__namespace.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_span_8_Template, 2, 0, "span", 41);
24081
24242
  i0__namespace.ɵɵelementStart(9, "div", 61);
24082
24243
  i0__namespace.ɵɵtext(10, " ( ");
24083
24244
  i0__namespace.ɵɵelementStart(11, "span");
@@ -24093,34 +24254,34 @@
24093
24254
  i0__namespace.ɵɵelementEnd();
24094
24255
  }
24095
24256
  if (rf & 2) {
24096
- var ctx_r14 = i0__namespace.ɵɵnextContext(3);
24257
+ var ctx_r21 = i0__namespace.ɵɵnextContext(4);
24097
24258
  i0__namespace.ɵɵadvance(6);
24098
- i0__namespace.ɵɵtextInterpolate(ctx_r14.recipeDetailsService.remainingBasketEntries.length);
24259
+ i0__namespace.ɵɵtextInterpolate(ctx_r21.recipeDetailsService.remainingBasketEntries.length);
24099
24260
  i0__namespace.ɵɵadvance(1);
24100
- i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length <= 1);
24261
+ i0__namespace.ɵɵproperty("ngIf", ctx_r21.recipeDetailsService.remainingBasketEntries.length <= 1);
24101
24262
  i0__namespace.ɵɵadvance(1);
24102
- i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length > 1);
24263
+ i0__namespace.ɵɵproperty("ngIf", ctx_r21.recipeDetailsService.remainingBasketEntries.length > 1);
24103
24264
  i0__namespace.ɵɵadvance(3);
24104
- i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(12, 8, ctx_r14.recipeDetailsService.ingredientToBasketLoading$));
24265
+ i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(12, 8, ctx_r21.recipeDetailsService.ingredientToBasketLoading$));
24105
24266
  i0__namespace.ɵɵadvance(2);
24106
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(14, 10, ctx_r14.recipeDetailsService.recipePrice.remaining, ctx_r14.suppliersService.supplier$.value.currency), " ");
24267
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(14, 10, ctx_r21.recipeDetailsService.recipePrice.remaining, ctx_r21.suppliersService.supplier$.value.currency), " ");
24107
24268
  i0__namespace.ɵɵadvance(2);
24108
- i0__namespace.ɵɵclassProp("hidden", !i0__namespace.ɵɵpipeBind1(16, 13, ctx_r14.recipeDetailsService.ingredientToBasketLoading$));
24269
+ i0__namespace.ɵɵclassProp("hidden", !i0__namespace.ɵɵpipeBind1(16, 13, ctx_r21.recipeDetailsService.ingredientToBasketLoading$));
24109
24270
  }
24110
24271
  }
24111
- function RecipeDetailsComponent_div_0_div_3_button_41_Template(rf, ctx) {
24272
+ function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_3_Template(rf, ctx) {
24112
24273
  if (rf & 1) {
24113
24274
  i0__namespace.ɵɵelementStart(0, "button", 65);
24114
24275
  i0__namespace.ɵɵelement(1, "div", 62);
24115
24276
  i0__namespace.ɵɵelementEnd();
24116
24277
  }
24117
24278
  }
24118
- function RecipeDetailsComponent_div_0_div_3_button_43_Template(rf, ctx) {
24279
+ function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_5_Template(rf, ctx) {
24119
24280
  if (rf & 1) {
24120
- var _r27_1 = i0__namespace.ɵɵgetCurrentView();
24281
+ var _r29_1 = i0__namespace.ɵɵgetCurrentView();
24121
24282
  i0__namespace.ɵɵelementStart(0, "button", 66);
24122
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_button_43_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r26 = i0__namespace.ɵɵnextContext(3); return ctx_r26.onClose(); });
24123
- i0__namespace.ɵɵelementStart(1, "div", 58);
24283
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_5_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r28 = i0__namespace.ɵɵnextContext(4); return ctx_r28.onClose(); });
24284
+ i0__namespace.ɵɵelementStart(1, "div", 59);
24124
24285
  i0__namespace.ɵɵelementStart(2, "span");
24125
24286
  i0__namespace.ɵɵi18n(3, 67);
24126
24287
  i0__namespace.ɵɵelementEnd();
@@ -24128,51 +24289,83 @@
24128
24289
  i0__namespace.ɵɵelementEnd();
24129
24290
  }
24130
24291
  }
24131
- function RecipeDetailsComponent_div_0_div_3_div_44_Template(rf, ctx) {
24292
+ function RecipeDetailsComponent_div_0_div_3_ng_container_38_Template(rf, ctx) {
24132
24293
  if (rf & 1) {
24133
- i0__namespace.ɵɵelementStart(0, "div", 68);
24134
- i0__namespace.ɵɵelementStart(1, "div", 69);
24294
+ i0__namespace.ɵɵelementContainerStart(0);
24295
+ i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_Template, 18, 15, "button", 54);
24296
+ i0__namespace.ɵɵpipe(2, "async");
24297
+ i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_3_Template, 2, 0, "button", 55);
24298
+ i0__namespace.ɵɵpipe(4, "async");
24299
+ i0__namespace.ɵɵtemplate(5, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_5_Template, 4, 0, "button", 56);
24300
+ i0__namespace.ɵɵelementContainerEnd();
24301
+ }
24302
+ if (rf & 2) {
24303
+ var ctx_r14 = i0__namespace.ɵɵnextContext(3);
24304
+ i0__namespace.ɵɵadvance(1);
24305
+ i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length > 0 && !i0__namespace.ɵɵpipeBind1(2, 3, ctx_r14.recipeDetailsService.allIngredientsToBasketLoading$));
24306
+ i0__namespace.ɵɵadvance(2);
24307
+ i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length > 0 && i0__namespace.ɵɵpipeBind1(4, 5, ctx_r14.recipeDetailsService.allIngredientsToBasketLoading$));
24308
+ i0__namespace.ɵɵadvance(2);
24309
+ i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length === 0);
24310
+ }
24311
+ }
24312
+ function RecipeDetailsComponent_div_0_div_3_ng_container_39_Template(rf, ctx) {
24313
+ if (rf & 1) {
24314
+ i0__namespace.ɵɵelementContainerStart(0);
24315
+ i0__namespace.ɵɵelement(1, "ng-miam-recipe-pricing", 68);
24316
+ i0__namespace.ɵɵelementContainerEnd();
24317
+ }
24318
+ if (rf & 2) {
24319
+ var ctx_r15 = i0__namespace.ɵɵnextContext(3);
24320
+ i0__namespace.ɵɵadvance(1);
24321
+ i0__namespace.ɵɵproperty("recipeId", ctx_r15.recipeDetailsService.recipe.id)("serves", ctx_r15.recipeDetailsService.recipe.modifiedGuests)("fetchPricingOnScroll", false);
24322
+ }
24323
+ }
24324
+ function RecipeDetailsComponent_div_0_div_3_div_40_Template(rf, ctx) {
24325
+ if (rf & 1) {
24326
+ i0__namespace.ɵɵelementStart(0, "div", 69);
24327
+ i0__namespace.ɵɵelementStart(1, "div", 70);
24135
24328
  i0__namespace.ɵɵelementStart(2, "span");
24136
24329
  i0__namespace.ɵɵpipe(3, "async");
24137
24330
  i0__namespace.ɵɵpipe(4, "async");
24138
24331
  i0__namespace.ɵɵtext(5);
24139
24332
  i0__namespace.ɵɵpipe(6, "currency");
24140
24333
  i0__namespace.ɵɵelementEnd();
24141
- i0__namespace.ɵɵelement(7, "div", 70);
24334
+ i0__namespace.ɵɵelement(7, "div", 71);
24142
24335
  i0__namespace.ɵɵpipe(8, "async");
24143
24336
  i0__namespace.ɵɵpipe(9, "async");
24144
24337
  i0__namespace.ɵɵelementEnd();
24145
- i0__namespace.ɵɵelementStart(10, "span", 71);
24338
+ i0__namespace.ɵɵelementStart(10, "span", 72);
24146
24339
  i0__namespace.ɵɵtext(11, "dans mon panier");
24147
24340
  i0__namespace.ɵɵelementEnd();
24148
24341
  i0__namespace.ɵɵelementEnd();
24149
24342
  }
24150
24343
  if (rf & 2) {
24151
- var ctx_r17 = i0__namespace.ɵɵnextContext(3);
24344
+ var ctx_r16 = i0__namespace.ɵɵnextContext(3);
24152
24345
  i0__namespace.ɵɵadvance(2);
24153
- i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r17.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(4, 7, ctx_r17.recipeDetailsService.updateIngredientFromBasketLoading$));
24346
+ i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r16.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(4, 7, ctx_r16.recipeDetailsService.updateIngredientFromBasketLoading$));
24154
24347
  i0__namespace.ɵɵadvance(3);
24155
- i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(6, 9, ctx_r17.recipeDetailsService.recipePrice.inBasket, ctx_r17.suppliersService.supplier$.value.currency), " ");
24348
+ i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(6, 9, ctx_r16.recipeDetailsService.recipePrice.inBasket, ctx_r16.suppliersService.supplier$.value.currency), " ");
24156
24349
  i0__namespace.ɵɵadvance(2);
24157
- i0__namespace.ɵɵclassProp("hidden", !(i0__namespace.ɵɵpipeBind1(8, 12, ctx_r17.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(9, 14, ctx_r17.recipeDetailsService.updateIngredientFromBasketLoading$)));
24350
+ i0__namespace.ɵɵclassProp("hidden", !(i0__namespace.ɵɵpipeBind1(8, 12, ctx_r16.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(9, 14, ctx_r16.recipeDetailsService.updateIngredientFromBasketLoading$)));
24158
24351
  }
24159
24352
  }
24160
24353
  var _c9 = function (a0) { return { "hidden": a0 }; };
24161
24354
  var _c10 = function () { return ["Je fais mes courses", "Je cuisine"]; };
24162
24355
  function RecipeDetailsComponent_div_0_div_3_Template(rf, ctx) {
24163
24356
  if (rf & 1) {
24164
- var _r29_1 = i0__namespace.ɵɵgetCurrentView();
24357
+ var _r31_1 = i0__namespace.ɵɵgetCurrentView();
24165
24358
  i0__namespace.ɵɵelementStart(0, "div", 7);
24166
24359
  i0__namespace.ɵɵelementStart(1, "div", 8, 9);
24167
24360
  i0__namespace.ɵɵelementStart(3, "div", 10);
24168
24361
  i0__namespace.ɵɵelementStart(4, "div", 11);
24169
24362
  i0__namespace.ɵɵelementStart(5, "button", 12);
24170
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r28 = i0__namespace.ɵɵnextContext(2); return ctx_r28.onClose(); });
24363
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r30 = i0__namespace.ɵɵnextContext(2); return ctx_r30.onClose(); });
24171
24364
  i0__namespace.ɵɵelement(6, "img", 13);
24172
24365
  i0__namespace.ɵɵelementEnd();
24173
24366
  i0__namespace.ɵɵelementStart(7, "div", 14);
24174
24367
  i0__namespace.ɵɵelementStart(8, "button", 15);
24175
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_8_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r30 = i0__namespace.ɵɵnextContext(2); return ctx_r30.onClose(); });
24368
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_8_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r32 = i0__namespace.ɵɵnextContext(2); return ctx_r32.onClose(); });
24176
24369
  i0__namespace.ɵɵelement(9, "img", 16);
24177
24370
  i0__namespace.ɵɵelementEnd();
24178
24371
  i0__namespace.ɵɵtemplate(10, RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_10_Template, 1, 3, "ng-miam-like-button", 17);
@@ -24180,7 +24373,7 @@
24180
24373
  i0__namespace.ɵɵelementEnd();
24181
24374
  i0__namespace.ɵɵelementEnd();
24182
24375
  i0__namespace.ɵɵelementStart(12, "ng-miam-counter-input", 18);
24183
- i0__namespace.ɵɵlistener("valueChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_counter_input_valueChange_12_listener($event) { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r31 = i0__namespace.ɵɵnextContext(2); return ctx_r31.updateGuests($event); });
24376
+ i0__namespace.ɵɵlistener("valueChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_counter_input_valueChange_12_listener($event) { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r33 = i0__namespace.ɵɵnextContext(2); return ctx_r33.updateGuests($event); });
24184
24377
  i0__namespace.ɵɵtext(13, " > ");
24185
24378
  i0__namespace.ɵɵelementEnd();
24186
24379
  i0__namespace.ɵɵelementEnd();
@@ -24195,7 +24388,7 @@
24195
24388
  i0__namespace.ɵɵelementStart(20, "div", 25);
24196
24389
  i0__namespace.ɵɵelementStart(21, "div", 26);
24197
24390
  i0__namespace.ɵɵelementStart(22, "button", 27);
24198
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_22_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r32 = i0__namespace.ɵɵnextContext(2); return ctx_r32.onClose(); });
24391
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_22_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r34 = i0__namespace.ɵɵnextContext(2); return ctx_r34.onClose(); });
24199
24392
  i0__namespace.ɵɵelement(23, "img", 28);
24200
24393
  i0__namespace.ɵɵelementEnd();
24201
24394
  i0__namespace.ɵɵelementEnd();
@@ -24207,7 +24400,7 @@
24207
24400
  i0__namespace.ɵɵpipe(28, "async");
24208
24401
  i0__namespace.ɵɵelementStart(29, "div", 32);
24209
24402
  i0__namespace.ɵɵelementStart(30, "button", 33);
24210
- i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_30_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r33 = i0__namespace.ɵɵnextContext(2); return ctx_r33.onClose(); });
24403
+ i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_30_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r35 = i0__namespace.ɵɵnextContext(2); return ctx_r35.onClose(); });
24211
24404
  i0__namespace.ɵɵelement(31, "img", 34);
24212
24405
  i0__namespace.ɵɵelementEnd();
24213
24406
  i0__namespace.ɵɵelementEnd();
@@ -24216,27 +24409,22 @@
24216
24409
  i0__namespace.ɵɵelement(32, "ng-miam-recipe-details-infos", 35);
24217
24410
  i0__namespace.ɵɵelementStart(33, "div", 36);
24218
24411
  i0__namespace.ɵɵelementStart(34, "ng-miam-slider-tabs", 37);
24219
- i0__namespace.ɵɵlistener("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener($event) { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r34 = i0__namespace.ɵɵnextContext(2); return ctx_r34.activeTabIndex = $event; })("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r35 = i0__namespace.ɵɵnextContext(2); return ctx_r35.cdr.detectChanges(); });
24412
+ i0__namespace.ɵɵlistener("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener($event) { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r36 = i0__namespace.ɵɵnextContext(2); return ctx_r36.activeTabIndex = $event; })("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener() { i0__namespace.ɵɵrestoreView(_r31_1); var ctx_r37 = i0__namespace.ɵɵnextContext(2); return ctx_r37.cdr.detectChanges(); });
24220
24413
  i0__namespace.ɵɵelementEnd();
24221
24414
  i0__namespace.ɵɵelementEnd();
24222
24415
  i0__namespace.ɵɵtemplate(35, RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template, 1, 0, "ng-miam-products-picker", 38);
24223
24416
  i0__namespace.ɵɵtemplate(36, RecipeDetailsComponent_div_0_div_3_div_36_Template, 3, 2, "div", 39);
24224
24417
  i0__namespace.ɵɵelementStart(37, "div", 40);
24225
- i0__namespace.ɵɵelementContainerStart(38);
24226
- i0__namespace.ɵɵtemplate(39, RecipeDetailsComponent_div_0_div_3_button_39_Template, 18, 15, "button", 41);
24227
- i0__namespace.ɵɵpipe(40, "async");
24228
- i0__namespace.ɵɵtemplate(41, RecipeDetailsComponent_div_0_div_3_button_41_Template, 2, 0, "button", 42);
24229
- i0__namespace.ɵɵpipe(42, "async");
24230
- i0__namespace.ɵɵtemplate(43, RecipeDetailsComponent_div_0_div_3_button_43_Template, 4, 0, "button", 43);
24231
- i0__namespace.ɵɵelementContainerEnd();
24232
- i0__namespace.ɵɵtemplate(44, RecipeDetailsComponent_div_0_div_3_div_44_Template, 12, 16, "div", 44);
24418
+ i0__namespace.ɵɵtemplate(38, RecipeDetailsComponent_div_0_div_3_ng_container_38_Template, 6, 7, "ng-container", 41);
24419
+ i0__namespace.ɵɵtemplate(39, RecipeDetailsComponent_div_0_div_3_ng_container_39_Template, 2, 3, "ng-container", 41);
24420
+ i0__namespace.ɵɵtemplate(40, RecipeDetailsComponent_div_0_div_3_div_40_Template, 12, 16, "div", 42);
24233
24421
  i0__namespace.ɵɵelementEnd();
24234
24422
  i0__namespace.ɵɵelementEnd();
24235
24423
  }
24236
24424
  if (rf & 2) {
24237
24425
  var ctx_r4 = i0__namespace.ɵɵnextContext(2);
24238
24426
  i0__namespace.ɵɵadvance(10);
24239
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(11, 20, ctx_r4.userService.isLogged$));
24427
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(11, 21, ctx_r4.userService.isLogged$));
24240
24428
  i0__namespace.ɵɵadvance(2);
24241
24429
  i0__namespace.ɵɵproperty("floating", true)("value", ctx_r4.recipeDetailsService.recipe.modifiedGuests)("minRange", 1);
24242
24430
  i0__namespace.ɵɵadvance(2);
@@ -24250,23 +24438,23 @@
24250
24438
  i0__namespace.ɵɵadvance(7);
24251
24439
  i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.recipeDetailsService.recipe == null ? null : ctx_r4.recipeDetailsService.recipe.attributes["title"], " ");
24252
24440
  i0__namespace.ɵɵadvance(2);
24253
- i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(28, 22, ctx_r4.userService.isLogged$));
24441
+ i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(28, 23, ctx_r4.userService.isLogged$));
24254
24442
  i0__namespace.ɵɵadvance(5);
24255
24443
  i0__namespace.ɵɵproperty("recipe", ctx_r4.recipeDetailsService.recipe);
24256
24444
  i0__namespace.ɵɵadvance(1);
24257
- i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(28, _c9, ctx_r4.recipeDetailsService.onlyShowPreparation));
24445
+ i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(25, _c9, ctx_r4.recipeDetailsService.onlyShowPreparation));
24258
24446
  i0__namespace.ɵɵadvance(1);
24259
- i0__namespace.ɵɵproperty("tabs", i0__namespace.ɵɵpureFunction0(30, _c10))("selectedTabIndex", ctx_r4.activeTabIndex);
24447
+ i0__namespace.ɵɵproperty("tabs", i0__namespace.ɵɵpureFunction0(27, _c10))("selectedTabIndex", ctx_r4.activeTabIndex);
24260
24448
  i0__namespace.ɵɵadvance(1);
24261
24449
  i0__namespace.ɵɵproperty("ngIf", ctx_r4.activeTabIndex === 0);
24262
24450
  i0__namespace.ɵɵadvance(1);
24263
24451
  i0__namespace.ɵɵproperty("ngIf", ctx_r4.activeTabIndex === 1);
24264
- i0__namespace.ɵɵadvance(3);
24265
- i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.remainingBasketEntries.length > 0 && !i0__namespace.ɵɵpipeBind1(40, 24, ctx_r4.recipeDetailsService.allIngredientsToBasketLoading$));
24266
- i0__namespace.ɵɵadvance(2);
24267
- i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.remainingBasketEntries.length > 0 && i0__namespace.ɵɵpipeBind1(42, 26, ctx_r4.recipeDetailsService.allIngredientsToBasketLoading$));
24268
- i0__namespace.ɵɵadvance(2);
24269
- i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.remainingBasketEntries.length === 0);
24452
+ i0__namespace.ɵɵadvance(1);
24453
+ i0__namespace.ɵɵclassProp("center", ctx_r4.recipeDetailsService.onlyShowPreparation);
24454
+ i0__namespace.ɵɵadvance(1);
24455
+ i0__namespace.ɵɵproperty("ngIf", !ctx_r4.recipeDetailsService.onlyShowPreparation);
24456
+ i0__namespace.ɵɵadvance(1);
24457
+ i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.onlyShowPreparation);
24270
24458
  i0__namespace.ɵɵadvance(1);
24271
24459
  i0__namespace.ɵɵproperty("ngIf", ctx_r4.showPrice());
24272
24460
  }
@@ -24276,7 +24464,7 @@
24276
24464
  i0__namespace.ɵɵelementStart(0, "div", 3);
24277
24465
  i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_1_Template, 1, 0, "div", 4);
24278
24466
  i0__namespace.ɵɵpipe(2, "async");
24279
- i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_Template, 45, 31, "div", 5);
24467
+ i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_Template, 41, 28, "div", 5);
24280
24468
  i0__namespace.ɵɵpipe(4, "async");
24281
24469
  i0__namespace.ɵɵelementEnd();
24282
24470
  }
@@ -24290,9 +24478,9 @@
24290
24478
  }
24291
24479
  function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template(rf, ctx) {
24292
24480
  if (rf & 1) {
24293
- var _r37_1 = i0__namespace.ɵɵgetCurrentView();
24294
- i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-addon", 72);
24295
- i0__namespace.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r37_1); var ctx_r36 = i0__namespace.ɵɵnextContext(); return ctx_r36.toggleAddon(); });
24481
+ var _r39_1 = i0__namespace.ɵɵgetCurrentView();
24482
+ i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-addon", 73);
24483
+ i0__namespace.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r39_1); var ctx_r38 = i0__namespace.ɵɵnextContext(); return ctx_r38.toggleAddon(); });
24296
24484
  i0__namespace.ɵɵelementEnd();
24297
24485
  }
24298
24486
  if (rf & 2) {
@@ -24302,9 +24490,9 @@
24302
24490
  }
24303
24491
  function RecipeDetailsComponent_ng_miam_replace_item_3_Template(rf, ctx) {
24304
24492
  if (rf & 1) {
24305
- var _r39_1 = i0__namespace.ɵɵgetCurrentView();
24306
- i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item", 73);
24307
- i0__namespace.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_3_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(_r39_1); var ctx_r38 = i0__namespace.ɵɵnextContext(); return ctx_r38.recipeDetailsService.basketEntryToReplace = null; });
24493
+ var _r41_1 = i0__namespace.ɵɵgetCurrentView();
24494
+ i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item", 74);
24495
+ i0__namespace.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_3_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(_r41_1); var ctx_r40 = i0__namespace.ɵɵnextContext(); return ctx_r40.recipeDetailsService.basketEntryToReplace = null; });
24308
24496
  i0__namespace.ɵɵelementEnd();
24309
24497
  }
24310
24498
  if (rf & 2) {
@@ -24346,6 +24534,7 @@
24346
24534
  _this.pricingGuestsText = 'par-personne';
24347
24535
  _this.recipeAdded = new i0.EventEmitter();
24348
24536
  _this.recipeError = new i0.EventEmitter();
24537
+ _this.closeDetails = new i0.EventEmitter();
24349
24538
  _this.removedIngredients = [];
24350
24539
  _this.isMobile = false;
24351
24540
  _this.displayTags = false;
@@ -24501,6 +24690,7 @@
24501
24690
  RecipeDetailsComponent.prototype.onClose = function () {
24502
24691
  this.recipeDetailsService.displayEventWasSent = false;
24503
24692
  var originPath = this.eventTrace().originPath;
24693
+ this.closeDetails.emit();
24504
24694
  this.recipesService.hide();
24505
24695
  this.cdr.detectChanges();
24506
24696
  this.activeTabIndex = 0;
@@ -24539,40 +24729,40 @@
24539
24729
  var _t = void 0;
24540
24730
  i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.topContainerImg = _t.first);
24541
24731
  }
24542
- }, inputs: { recipeId: "recipeId", guestNumber: "guestNumber", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 5, vars: 7, consts: function () {
24732
+ }, inputs: { recipeId: "recipeId", guestNumber: "guestNumber", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError", closeDetails: "closeDetails" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 5, vars: 7, consts: function () {
24543
24733
  var i18n_1;
24544
24734
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
24545
- var MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____2 = goog.getMsg("Ajouter");
24546
- i18n_1 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____2;
24735
+ var MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____2 = goog.getMsg("Ajouter");
24736
+ i18n_1 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____2;
24547
24737
  }
24548
24738
  else {
24549
24739
  i18n_1 = $localize(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
24550
24740
  }
24551
24741
  var i18n_3;
24552
24742
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
24553
- var MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____4 = goog.getMsg("produit");
24554
- i18n_3 = MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____4;
24743
+ var MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______4 = goog.getMsg("produit");
24744
+ i18n_3 = MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______4;
24555
24745
  }
24556
24746
  else {
24557
24747
  i18n_3 = $localize(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject([":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"], [":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"])));
24558
24748
  }
24559
24749
  var i18n_5;
24560
24750
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
24561
- var MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____6 = goog.getMsg("produits");
24562
- i18n_5 = MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____6;
24751
+ var MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______6 = goog.getMsg("produits");
24752
+ i18n_5 = MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS______6;
24563
24753
  }
24564
24754
  else {
24565
24755
  i18n_5 = $localize(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject([":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"], [":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"])));
24566
24756
  }
24567
24757
  var i18n_7;
24568
24758
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
24569
- var MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____8 = goog.getMsg("Continuer mes courses");
24570
- i18n_7 = MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____8;
24759
+ var MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____8 = goog.getMsg("Continuer mes courses");
24760
+ i18n_7 = MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____8;
24571
24761
  }
24572
24762
  else {
24573
24763
  i18n_7 = $localize(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject([":\u241F0e81a4e1efd31ae65483ef21f4fa59c2dce0e6f1\u241F2001694451572573558:Continuer mes courses"], [":\u241F0e81a4e1efd31ae65483ef21f4fa59c2dce0e6f1\u241F2001694451572573558:Continuer mes courses"])));
24574
24764
  }
24575
- return [["class", "miam-recipe-details", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected", 4, "ngIf"], [1, "miam-recipe-details"], ["class", "miam-ds-loader miam-recipe-details__loader", 4, "ngIf"], ["class", "miam-recipe-details__container", 4, "ngIf"], [1, "miam-ds-loader", "miam-recipe-details__loader"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__picture"], ["topContainerImg", ""], [1, "miam-recipe-details__banner_buttons"], [1, "miam-recipe-details__top-button-wrapper"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "modal close button", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__mobile-header-buttons"], [1, "miam-recipe-details__back-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal back button", 1, "miam-recipe-details__back-icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], ["alt", "recipe picture", "class", "miam-recipe-details__picture-img", 3, "src", 4, "ngIf"], [3, "videoId", "width", "height", "playerVars", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__sponsor"], [3, "hasStorytelling", "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__sponsor-separator"], ["ngMiamReachTop", "", 1, "miam-recipe-details__title-container"], [1, "miam-recipe-details__back-button-mobile-container"], [1, "miam-recipe-details__back-button", "miam-ds-button", "small", "square", "ghost", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal close button", 1, "miam-recipe-details__back-icon"], [1, "miam-recipe-details__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-recipe-details__actions__icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__hideable-actions"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "ghost", 3, "click"], ["alt", "modal close button", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], [3, "tabs", "selectedTabIndex", "selectedTabIndexChange"], [3, "closeModal", 4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], [1, "miam-recipe-details__footer"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 3, "click", 4, "ngIf"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 4, "ngIf"], ["class", "miam-ds-button secondary", 3, "click", 4, "ngIf"], ["class", "miam-recipe-details__price", 4, "ngIf"], [1, "miam-recipe-details__like-button", 3, "recipe", "width", "height"], ["alt", "recipe picture", 1, "miam-recipe-details__picture-img", 3, "src"], [3, "videoId", "width", "height", "playerVars"], [1, "miam-recipe-details__picture__filigrane"], ["alt", "filigrane logo", 3, "src"], [3, "hasStorytelling", "recipe", "showAddon"], [1, "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height"], [3, "closeModal"], [1, "miam-recipe-details__preparation-tab"], [3, "ingredients"], [3, "recipe"], [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary", 3, "click"], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], [1, "miam-recipe-details__add-to-basket-cta__text"], i18n_1, [4, "ngIf"], [1, "miam-recipe-details__add-to-basket-remaining-price"], [1, "miam-ds-loader"], i18n_3, i18n_5, [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary"], [1, "miam-ds-button", "secondary", 3, "click"], i18n_7, [1, "miam-recipe-details__price"], [1, "miam-recipe-details__price-label", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-ds-loader", "primary"], [1, "miam-recipe-details__price-in-basket-label", "miam-ds-text", "size-xs"], [3, "recipe", "hideAddon"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected"]];
24765
+ return [["class", "miam-recipe-details", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected", 4, "ngIf"], [1, "miam-recipe-details"], ["class", "miam-ds-loader miam-recipe-details__loader", 4, "ngIf"], ["class", "miam-recipe-details__container", 4, "ngIf"], [1, "miam-ds-loader", "miam-recipe-details__loader"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__picture"], ["topContainerImg", ""], [1, "miam-recipe-details__banner_buttons"], [1, "miam-recipe-details__top-button-wrapper"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "modal close button", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__mobile-header-buttons"], [1, "miam-recipe-details__back-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal back button", 1, "miam-recipe-details__back-icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], ["alt", "recipe picture", "class", "miam-recipe-details__picture-img", 3, "src", 4, "ngIf"], [3, "videoId", "width", "height", "playerVars", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__sponsor"], [3, "hasStorytelling", "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__sponsor-separator"], ["ngMiamReachTop", "", 1, "miam-recipe-details__title-container"], [1, "miam-recipe-details__back-button-mobile-container"], [1, "miam-recipe-details__back-button", "miam-ds-button", "small", "square", "ghost", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal close button", 1, "miam-recipe-details__back-icon"], [1, "miam-recipe-details__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-recipe-details__actions__icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__hideable-actions"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "ghost", 3, "click"], ["alt", "modal close button", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], [3, "tabs", "selectedTabIndex", "selectedTabIndexChange"], [3, "closeModal", 4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], [1, "miam-recipe-details__footer"], [4, "ngIf"], ["class", "miam-recipe-details__price", 4, "ngIf"], [1, "miam-recipe-details__like-button", 3, "recipe", "width", "height"], ["alt", "recipe picture", 1, "miam-recipe-details__picture-img", 3, "src"], [3, "videoId", "width", "height", "playerVars"], [1, "miam-recipe-details__picture__filigrane"], ["alt", "filigrane logo", 3, "src"], [3, "hasStorytelling", "recipe", "showAddon"], [1, "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height"], [3, "closeModal"], [1, "miam-recipe-details__preparation-tab"], [3, "ingredients"], [3, "recipe"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 3, "click", 4, "ngIf"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 4, "ngIf"], ["class", "miam-ds-button secondary", 3, "click", 4, "ngIf"], [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary", 3, "click"], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], [1, "miam-recipe-details__add-to-basket-cta__text"], i18n_1, [1, "miam-recipe-details__add-to-basket-remaining-price"], [1, "miam-ds-loader"], i18n_3, i18n_5, [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary"], [1, "miam-ds-button", "secondary", 3, "click"], i18n_7, [3, "recipeId", "serves", "fetchPricingOnScroll"], [1, "miam-recipe-details__price"], [1, "miam-recipe-details__price-label", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-ds-loader", "primary"], [1, "miam-recipe-details__price-in-basket-label", "miam-ds-text", "size-xs"], [3, "recipe", "hideAddon"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected"]];
24576
24766
  }, template: function RecipeDetailsComponent_Template(rf, ctx) {
24577
24767
  if (rf & 1) {
24578
24768
  i0__namespace.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 5, 6, "div", 0);
@@ -24588,7 +24778,7 @@
24588
24778
  i0__namespace.ɵɵadvance(1);
24589
24779
  i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(4, 5, ctx.recipeDetailsService.basketEntryToReplace$));
24590
24780
  }
24591
- }, directives: [i2__namespace$1.NgIf, CounterInputComponent, ReachTopDirective, RecipeDetailsInfosComponent, i2__namespace$1.NgClass, SliderTabsComponent, LikeButtonComponent, i8__namespace.YouTubePlayer, AddonLinkComponent, ProductsPickerComponent, RecipeDetailsIngredientsComponent, RecipeDetailsStepsComponent, RecipeAddonComponent, ReplaceItemComponent], pipes: [i2__namespace$1.AsyncPipe, i2__namespace$1.CurrencyPipe], styles: [".miam-recipe-details{min-height:100dvh}.miam-recipe-details .miam-recipe-details__loader{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-recipe-details .miam-recipe-details__container{position:relative}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sponsor-separator{border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);margin:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{position:relative;max-height:600px;display:flex}@media (min-width:1023px) and (max-height:1000px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:400px}}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:300px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{position:absolute;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px;top:16px;right:16px;left:16px;bottom:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{flex:1;width:100%;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:flex;justify-content:space-between;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button{transform:rotate(90deg);border-radius:100%;height:40px;width:40px;position:sticky;top:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button .miam-recipe-details__back-icon{display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button:hover img.miam-recipe-details__back-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__like-button{position:absolute;top:0;right:0}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__guest-counter .miam-counter-input{padding:2px}}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{top:24px;right:24px;left:24px;bottom:24px;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{width:inherit}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:flex;position:sticky;top:24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button:hover img.miam-recipe-details__close-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__picture-img{width:100%;max-height:100%;-o-object-position:center;object-position:center;-o-object-fit:cover;object-fit:cover}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{z-index:2;display:flex;justify-content:space-between;align-items:center;position:sticky;top:-1px;padding:16px;overflow:hidden;background:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{width:100%;transition:font-size .3s;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{display:flex;position:absolute;right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__close-button{margin-left:16px;padding:8px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:12px 16px;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{position:relative;top:unset;right:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__like-button{margin-right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:64px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{justify-content:flex-start}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:flex;align-items:center;justify-content:center;max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-icon{transform:rotate(90deg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__hideable-actions{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:4px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container{overflow:visible;max-width:48px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-button{margin:8px 0;width:40px;height:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:14px;font-weight:500}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{max-width:40px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__infos{padding:8px 16px 16px;display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs{padding:8px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer{box-sizing:border-box;background:var(--miam-ds-color-neutral-white,#fff);border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px 12px;position:sticky;bottom:0;display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;z-index:2;height:80px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.center{justify-content:center}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta{display:flex;gap:8px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta.miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text{display:flex;gap:4px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price{display:flex}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{align-items:flex-end}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{color:var(--miam-ds-color-primary-700);margin-right:4px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{flex-direction:column;align-items:flex-start}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price{display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label{color:var(--miam-ds-color-primary,#24748f)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-in-basket-label{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.65}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__preparation-tab{padding:16px;display:flex;flex-direction:column;gap:24px}"], encapsulation: 2, changeDetection: 0 });
24781
+ }, directives: [i2__namespace$1.NgIf, CounterInputComponent, ReachTopDirective, RecipeDetailsInfosComponent, i2__namespace$1.NgClass, SliderTabsComponent, LikeButtonComponent, i8__namespace.YouTubePlayer, AddonLinkComponent, ProductsPickerComponent, RecipeDetailsIngredientsComponent, RecipeDetailsStepsComponent, RecipePricingComponent, RecipeAddonComponent, ReplaceItemComponent], pipes: [i2__namespace$1.AsyncPipe, i2__namespace$1.CurrencyPipe], styles: [".miam-recipe-details{min-height:100dvh}.miam-recipe-details .miam-recipe-details__loader{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-recipe-details .miam-recipe-details__container{position:relative}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sponsor-separator{border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);margin:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{position:relative;max-height:600px;display:flex}@media (min-width:1023px) and (max-height:1000px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:400px}}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:300px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{position:absolute;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px;top:16px;right:16px;left:16px;bottom:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{flex:1;width:100%;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:flex;justify-content:space-between;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button{transform:rotate(90deg);border-radius:100%;height:40px;width:40px;position:sticky;top:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button .miam-recipe-details__back-icon{display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button:hover img.miam-recipe-details__back-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__like-button{position:absolute;top:0;right:0}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__guest-counter .miam-counter-input{padding:2px}}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{top:24px;right:24px;left:24px;bottom:24px;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{width:inherit}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:flex;position:sticky;top:24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button:hover img.miam-recipe-details__close-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__picture-img{width:100%;max-height:100%;-o-object-position:center;object-position:center;-o-object-fit:cover;object-fit:cover}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{z-index:2;display:flex;justify-content:space-between;align-items:center;position:sticky;top:-1px;padding:16px;overflow:hidden;background:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{width:100%;transition:font-size .3s;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{display:flex;position:absolute;right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__close-button{margin-left:16px;padding:8px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:12px 16px;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{position:relative;top:unset;right:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__like-button{margin-right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:64px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{justify-content:flex-start}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:flex;align-items:center;justify-content:center;max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-icon{transform:rotate(90deg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__hideable-actions{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:4px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container{overflow:visible;max-width:48px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-button{margin:8px 0;width:40px;height:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:14px;font-weight:500}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{max-width:40px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__infos{padding:8px 16px 16px;display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs{padding:8px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer{box-sizing:border-box;background:var(--miam-ds-color-neutral-white,#fff);border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px 12px;position:sticky;bottom:0;display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;z-index:2;height:80px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.center{justify-content:center}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta{display:flex;gap:8px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta.miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text{display:flex;gap:4px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price{display:flex}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{align-items:flex-end}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{color:var(--miam-ds-color-primary-700);margin-right:4px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{flex-direction:column;align-items:flex-start}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price{display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label{color:var(--miam-ds-color-primary,#24748f)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-in-basket-label{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.65}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__preparation-tab{padding:16px;display:flex;flex-direction:column;gap:24px}"], encapsulation: 2, changeDetection: 0 });
24592
24782
  (function () {
24593
24783
  (typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeDetailsComponent, [{
24594
24784
  type: i0.Component,
@@ -24629,6 +24819,8 @@
24629
24819
  type: i0.Output
24630
24820
  }], recipeError: [{
24631
24821
  type: i0.Output
24822
+ }], closeDetails: [{
24823
+ type: i0.Output
24632
24824
  }], topContainerImg: [{
24633
24825
  type: i0.ViewChild,
24634
24826
  args: ['topContainerImg']
@@ -25580,7 +25772,7 @@
25580
25772
  if (rf & 1) {
25581
25773
  var _r10_1 = i0__namespace.ɵɵgetCurrentView();
25582
25774
  i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-details", 7, 8);
25583
- i0__namespace.ɵɵlistener("recipeAdded", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_recipeAdded_0_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.togglePreviewMode(); })("recipeError", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_recipeError_0_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.hide(); });
25775
+ i0__namespace.ɵɵlistener("recipeAdded", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_recipeAdded_0_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r9 = i0__namespace.ɵɵnextContext(2); return ctx_r9.togglePreviewMode(); })("recipeError", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_recipeError_0_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r11 = i0__namespace.ɵɵnextContext(2); return ctx_r11.hide(); })("closeDetails", function RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template_ng_miam_recipe_details_closeDetails_0_listener() { i0__namespace.ɵɵrestoreView(_r10_1); var ctx_r12 = i0__namespace.ɵɵnextContext(2); return ctx_r12.hide(); });
25584
25776
  i0__namespace.ɵɵelementEnd();
25585
25777
  }
25586
25778
  if (rf & 2) {
@@ -25590,9 +25782,9 @@
25590
25782
  }
25591
25783
  function RecipeModalComponent_ng_miam_modal_2_Template(rf, ctx) {
25592
25784
  if (rf & 1) {
25593
- var _r13_1 = i0__namespace.ɵɵgetCurrentView();
25785
+ var _r14_1 = i0__namespace.ɵɵgetCurrentView();
25594
25786
  i0__namespace.ɵɵelementStart(0, "ng-miam-modal", 5);
25595
- i0__namespace.ɵɵlistener("displayChange", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_displayChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r12 = i0__namespace.ɵɵnextContext(); return ctx_r12.show = $event; })("close", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.hide(); })("cancel", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_cancel_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.removeRecipe(); })("confirm", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_confirm_0_listener() { i0__namespace.ɵɵrestoreView(_r13_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.hide(); });
25787
+ i0__namespace.ɵɵlistener("displayChange", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_displayChange_0_listener($event) { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r13 = i0__namespace.ɵɵnextContext(); return ctx_r13.show = $event; })("close", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_close_0_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.hide(); })("cancel", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_cancel_0_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r16 = i0__namespace.ɵɵnextContext(); return ctx_r16.removeRecipe(); })("confirm", function RecipeModalComponent_ng_miam_modal_2_Template_ng_miam_modal_confirm_0_listener() { i0__namespace.ɵɵrestoreView(_r14_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.hide(); });
25596
25788
  i0__namespace.ɵɵtemplate(1, RecipeModalComponent_ng_miam_modal_2_ng_miam_recipe_details_1_Template, 2, 9, "ng-miam-recipe-details", 6);
25597
25789
  i0__namespace.ɵɵelementEnd();
25598
25790
  }
@@ -25745,7 +25937,7 @@
25745
25937
  else {
25746
25938
  i18n_0 = $localize(templateObject_1 || (templateObject_1 = __makeTemplateObject([":\u241Fd0309cdf7a6522949c4f145db5e71f70c9d9d66c\u241F171150506213829263:Mes repas"], [":\u241Fd0309cdf7a6522949c4f145db5e71f70c9d9d66c\u241F171150506213829263:Mes repas"])));
25747
25939
  }
25748
- return [["title", i18n_0, "modalStyle", "right", "class", "miam-recipe-modal__basket-preview-modal", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["title", i18n_0, "modalStyle", "right", 1, "miam-recipe-modal__basket-preview-modal", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm"], [1, "miam-wrapper-preview"], [3, "recipeId", "displayItemsUnitaryPrice", "originTrace"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError", 4, "ngIf"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError"], ["details", ""]];
25940
+ return [["title", i18n_0, "modalStyle", "right", "class", "miam-recipe-modal__basket-preview-modal", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm", 4, "ngIf"], ["title", i18n_0, "modalStyle", "right", 1, "miam-recipe-modal__basket-preview-modal", 3, "display", "noHeaderMode", "confirmButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm"], [1, "miam-wrapper-preview"], [3, "recipeId", "displayItemsUnitaryPrice", "originTrace"], ["modalStyle", "right", 3, "noHeaderMode", "display", "cancelButtonDisabled", "cancelButtonIsLoading", "displayChange", "close", "cancel", "confirm"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError", "closeDetails", 4, "ngIf"], [3, "recipeId", "guestNumber", "previewAllowed", "originTrace", "stepsOnLeftSide", "moreRecipesImageURL", "pricingGuestsText", "displayGuests", "helpButtonAllowed", "recipeAdded", "recipeError", "closeDetails"], ["details", ""]];
25749
25941
  }, template: function RecipeModalComponent_Template(rf, ctx) {
25750
25942
  if (rf & 1) {
25751
25943
  i0__namespace.ɵɵtemplate(0, RecipeModalComponent_ng_miam_modal_0_Template, 3, 7, "ng-miam-modal", 0);
@@ -25978,6 +26170,7 @@
25978
26170
  RecipesService,
25979
26171
  RecipeLikesService,
25980
26172
  RecipeDetailsService,
26173
+ BasketTransferService,
25981
26174
  BasketsService,
25982
26175
  BasketEntriesService,
25983
26176
  ItemsService,
@@ -26013,6 +26206,7 @@
26013
26206
  RecipesService,
26014
26207
  RecipeLikesService,
26015
26208
  RecipeDetailsService,
26209
+ BasketTransferService,
26016
26210
  BasketsService,
26017
26211
  BasketEntriesService,
26018
26212
  ItemsService,
@@ -26057,6 +26251,7 @@
26057
26251
  exports.BasketPreviewLine = BasketPreviewLine;
26058
26252
  exports.BasketPreviewLineComponent = BasketPreviewLineComponent;
26059
26253
  exports.BasketPreviewModule = BasketPreviewModule;
26254
+ exports.BasketTransferService = BasketTransferService;
26060
26255
  exports.BasketsComparatorService = BasketsComparatorService;
26061
26256
  exports.BasketsService = BasketsService;
26062
26257
  exports.BasketsSynchronizerService = BasketsSynchronizerService;