ng-miam 6.4.2 → 6.4.4

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 (40) hide show
  1. package/bundles/ng-miam.umd.js +319 -366
  2. package/bundles/ng-miam.umd.js.map +1 -1
  3. package/bundles/ng-miam.umd.min.js +2 -2
  4. package/bundles/ng-miam.umd.min.js.map +1 -1
  5. package/esm2015/lib/_components/addon-link/addon-link.component.js +18 -9
  6. package/esm2015/lib/_components/sponsor-block-container/sponsor-block-container.component.js +15 -8
  7. package/esm2015/lib/_services/baskets-synchronizing/baskets-comparator.service.js +7 -5
  8. package/esm2015/lib/_services/baskets-synchronizing/baskets-synchronizer.service.js +6 -4
  9. package/esm2015/lib/_services/interceptor.service.js +2 -2
  10. package/esm2015/lib/_services/sponsor-block.service.js +7 -4
  11. package/esm2015/lib/_types/items-comparator.js +2 -1
  12. package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +77 -68
  13. package/esm2015/lib/_web-components/index.js +1 -2
  14. package/esm2015/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.js +26 -159
  15. package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +4 -7
  16. package/esm2015/lib/_web-components/recipe-catalog/recipe-catalog.component.js +1 -5
  17. package/esm2015/lib/_web-components/recipe-details/index.js +2 -1
  18. package/esm2015/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.js +92 -39
  19. package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +16 -12
  20. package/esm2015/lib/_web-components/recipe-details/recipe-details.module.js +14 -6
  21. package/esm2015/lib/_web-components/{sponsor-storytelling → recipe-details/sponsor-storytelling}/sponsor-storytelling.component.js +2 -2
  22. package/esm2015/lib/_web-components/toaster-stack/toaster-stack.component.js +1 -1
  23. package/esm2015/lib/_web-components/web-components.module.js +21 -24
  24. package/fesm2015/ng-miam.js +296 -349
  25. package/fesm2015/ng-miam.js.map +1 -1
  26. package/lib/_components/addon-link/addon-link.component.d.ts +7 -4
  27. package/lib/_components/components.module.d.ts +3 -1
  28. package/lib/_components/sponsor-block-container/sponsor-block-container.component.d.ts +5 -2
  29. package/lib/_services/sponsor-block.service.d.ts +3 -1
  30. package/lib/_web-components/index.d.ts +0 -1
  31. package/lib/_web-components/recipe-catalog/catalog-category/catalog-category.component.d.ts +6 -21
  32. package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts +4 -4
  33. package/lib/_web-components/recipe-details/index.d.ts +1 -0
  34. package/lib/_web-components/recipe-details/recipe-addon/recipe-addon.component.d.ts +11 -4
  35. package/lib/_web-components/recipe-details/recipe-details.component.d.ts +4 -2
  36. package/lib/_web-components/recipe-details/recipe-details.module.d.ts +7 -6
  37. package/lib/_web-components/{sponsor-storytelling → recipe-details/sponsor-storytelling}/sponsor-storytelling.component.d.ts +1 -1
  38. package/lib/_web-components/toaster-stack/toaster-stack.component.d.ts +1 -1
  39. package/lib/_web-components/web-components.module.d.ts +19 -21
  40. package/package.json +1 -1
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/common/http'), require('@angular/common/locales/fr'), require('@angular/core'), require('@angular/platform-browser/animations'), require('ngx-jsonapi'), require('@angular/cdk/drag-drop'), require('@angular/cdk/text-field'), require('@angular/forms'), require('uuid'), require('rxjs'), require('rxjs/operators'), require('lodash-es'), require('duration-fns'), require('lodash-es/pullAt'), require('@angular/cdk/layout'), require('@angular/platform-browser'), require('date-fns/endOfWeek'), require('date-fns/isWithinInterval'), require('date-fns/startOfWeek'), require('date-fns/subDays'), require('@angular/elements'), require('lodash-es/remove'), require('lodash-es/pick'), require('angular-draggable-droppable'), require('angular-calendar'), require('@angular/youtube-player'), require('lodash-es/groupBy'), require('angular-calendar/date-adapters/date-fns')) :
3
- typeof define === 'function' && define.amd ? define('ng-miam', ['exports', '@angular/common', '@angular/common/http', '@angular/common/locales/fr', '@angular/core', '@angular/platform-browser/animations', 'ngx-jsonapi', '@angular/cdk/drag-drop', '@angular/cdk/text-field', '@angular/forms', 'uuid', 'rxjs', 'rxjs/operators', 'lodash-es', 'duration-fns', 'lodash-es/pullAt', '@angular/cdk/layout', '@angular/platform-browser', 'date-fns/endOfWeek', 'date-fns/isWithinInterval', 'date-fns/startOfWeek', 'date-fns/subDays', '@angular/elements', 'lodash-es/remove', 'lodash-es/pick', 'angular-draggable-droppable', 'angular-calendar', '@angular/youtube-player', 'lodash-es/groupBy', 'angular-calendar/date-adapters/date-fns'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ng-miam'] = {}, global.ng.common, global.ng.common.http, global.ng.common.locales.fr, global.ng.core, global.ng.platformBrowser.animations, global['ngx-jsonapi'], global.ng.cdk.dragDrop, global.ng.cdk.textField, global.ng.forms, global.uuid, global.rxjs, global.rxjs.operators, global.lodashEs, global.durationFns, global.pullAt, global.ng.cdk.layout, global.ng.platformBrowser, global.endOfWeek, global.isWithinInterval, global.startOfWeek, global.subDays, global.ng.elements, global.remove, global.pick, global.i8, global.i3$1, global.ng.youtubePlayer, global.groupBy, global.dateFns));
5
- }(this, (function (exports, i2, i1$1, localeFr, i0, animations, i1, i4, i6, i3, uuid, rxjs, operators, lodashEs, durationFns, pullAt, i1$2, i1$3, endOfWeek, isWithinInterval, startOfWeek, subDays, elements, remove, pick, i8, i3$1, i9, groupBy, dateFns) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/common'), require('@angular/common/http'), require('@angular/common/locales/fr'), require('@angular/core'), require('@angular/platform-browser/animations'), require('ngx-jsonapi'), require('@angular/cdk/drag-drop'), require('@angular/cdk/text-field'), require('@angular/forms'), require('uuid'), require('rxjs'), require('rxjs/operators'), require('lodash-es'), require('duration-fns'), require('lodash-es/pullAt'), require('@angular/cdk/layout'), require('@angular/platform-browser'), require('date-fns/endOfWeek'), require('date-fns/isWithinInterval'), require('date-fns/startOfWeek'), require('date-fns/subDays'), require('@angular/elements'), require('lodash-es/remove'), require('angular-draggable-droppable'), require('angular-calendar'), require('@angular/youtube-player'), require('lodash-es/groupBy'), require('angular-calendar/date-adapters/date-fns')) :
3
+ typeof define === 'function' && define.amd ? define('ng-miam', ['exports', '@angular/common', '@angular/common/http', '@angular/common/locales/fr', '@angular/core', '@angular/platform-browser/animations', 'ngx-jsonapi', '@angular/cdk/drag-drop', '@angular/cdk/text-field', '@angular/forms', 'uuid', 'rxjs', 'rxjs/operators', 'lodash-es', 'duration-fns', 'lodash-es/pullAt', '@angular/cdk/layout', '@angular/platform-browser', 'date-fns/endOfWeek', 'date-fns/isWithinInterval', 'date-fns/startOfWeek', 'date-fns/subDays', '@angular/elements', 'lodash-es/remove', 'angular-draggable-droppable', 'angular-calendar', '@angular/youtube-player', 'lodash-es/groupBy', 'angular-calendar/date-adapters/date-fns'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global['ng-miam'] = {}, global.ng.common, global.ng.common.http, global.ng.common.locales.fr, global.ng.core, global.ng.platformBrowser.animations, global['ngx-jsonapi'], global.ng.cdk.dragDrop, global.ng.cdk.textField, global.ng.forms, global.uuid, global.rxjs, global.rxjs.operators, global.lodashEs, global.durationFns, global.pullAt, global.ng.cdk.layout, global.ng.platformBrowser, global.endOfWeek, global.isWithinInterval, global.startOfWeek, global.subDays, global.ng.elements, global.remove, global.i8, global.i3$1, global.ng.youtubePlayer, global.groupBy, global.dateFns));
5
+ }(this, (function (exports, i2, i1$1, localeFr, i0, animations, i1, i4, i6, i3, uuid, rxjs, operators, lodashEs, durationFns, pullAt, i1$2, i1$3, endOfWeek, isWithinInterval, startOfWeek, subDays, elements, remove, i8, i3$1, i9, groupBy, dateFns) { 'use strict';
6
6
 
7
7
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
8
8
 
@@ -13,7 +13,6 @@
13
13
  var startOfWeek__default = /*#__PURE__*/_interopDefaultLegacy(startOfWeek);
14
14
  var subDays__default = /*#__PURE__*/_interopDefaultLegacy(subDays);
15
15
  var remove__default = /*#__PURE__*/_interopDefaultLegacy(remove);
16
- var pick__default = /*#__PURE__*/_interopDefaultLegacy(pick);
17
16
  var groupBy__default = /*#__PURE__*/_interopDefaultLegacy(groupBy);
18
17
 
19
18
  (function (Icon) {
@@ -3987,6 +3986,7 @@
3987
3986
  var quantityRemoved = Math.min(entry.quantity, quantityToRemove);
3988
3987
  quantityToRemove -= quantityRemoved;
3989
3988
  entriesToRemove.push({ id: entry.id, quantity: quantityRemoved });
3989
+ entry.quantity -= quantityRemoved;
3990
3990
  _this.previousMiamQuantity -= quantityRemoved;
3991
3991
  }
3992
3992
  });
@@ -4068,8 +4068,10 @@
4068
4068
  * Then check for items to push to/remove from retailer's basket and return them
4069
4069
  */
4070
4070
  BasketsComparatorService.prototype.updateReceivedFromMiam = function (miamBasket) {
4071
+ var _this = this;
4071
4072
  // eslint-disable-next-line no-console
4072
- console.debug("[Miam] update received from Miam\n " + JSON.stringify(miamBasket === null || miamBasket === void 0 ? void 0 : miamBasket.map(function (e) { return ({ id: e.id, quantity: e.attributes.quantity }); })) + "\n " + JSON.stringify(this.extIdToItemsComparator));
4073
+ 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 }); })));
4074
+ // Note: MQ means Miam Quantity and RQ means Retailer Quantity but this makes the logs more compact and thus readable
4073
4075
  this.updateEntriesFromMiam(miamBasket);
4074
4076
  this.addEntriesFromMiam(miamBasket);
4075
4077
  var toPushToRetailer = this.resolveFromMiam(miamBasket);
@@ -4117,7 +4119,8 @@
4117
4119
  BasketsComparatorService.prototype.resolveFromMiam = function (miamBasket) {
4118
4120
  var _this = this;
4119
4121
  // eslint-disable-next-line no-console
4120
- console.debug("[Miam] resolve from Miam basket\n " + JSON.stringify(miamBasket === null || miamBasket === void 0 ? void 0 : miamBasket.map(function (e) { return ({ id: e.id, quantity: e.attributes.quantity }); })) + "\n " + JSON.stringify(this.extIdToItemsComparator));
4122
+ 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 }); })));
4123
+ // Note: MQ means Miam Quantity and RQ means Retailer Quantity but this makes the logs more compact and thus readable
4121
4124
  var toPushToRetailer = [];
4122
4125
  Object.keys(this.extIdToItemsComparator).forEach(function (extId) {
4123
4126
  var itemsComparator = _this.extIdToItemsComparator[extId];
@@ -4239,7 +4242,7 @@
4239
4242
  this.basketsService.activeBasketEntries().subscribe(function (miamBasket) {
4240
4243
  var _a;
4241
4244
  // eslint-disable-next-line no-console
4242
- console.debug("[Miam] Miam basket received\n " + JSON.stringify(miamBasket === null || miamBasket === void 0 ? void 0 : miamBasket.map(function (e) { return ({ id: e.id, quantity: e.attributes.quantity }); })) + "\n " + JSON.stringify((_a = _this.firstMiamBasket) === null || _a === void 0 ? void 0 : _a.map(function (e) { return ({ id: e.id, quantity: e.attributes.quantity }); })));
4245
+ console.debug("[Miam] Miam basket received\n - " + JSON.stringify(miamBasket === null || miamBasket === void 0 ? void 0 : miamBasket.map(function (e) { return ({ id: e.id, quantity: e.attributes.quantity }); })) + "\n - First Miam basket was: " + JSON.stringify((_a = _this.firstMiamBasket) === null || _a === void 0 ? void 0 : _a.map(function (e) { return ({ id: e.id, quantity: e.attributes.quantity }); })));
4243
4246
  if (!_this.firstMiamBasket && miamBasket.length === 0 && isFirstSubscribe) {
4244
4247
  // Skip first empty arrays received
4245
4248
  isFirstSubscribe = false;
@@ -4367,7 +4370,7 @@
4367
4370
  */
4368
4371
  BasketsSynchronizerService.prototype.retailerBasketChanged = function (retailerBasket) {
4369
4372
  // eslint-disable-next-line no-console
4370
- console.debug("[Miam] Update received from retailer " + JSON.stringify(retailerBasket) + " " + JSON.stringify(this.firstRetailerBasket));
4373
+ console.debug("[Miam] Update received from retailer\n - " + JSON.stringify(retailerBasket) + "\n - First retailer basket was : " + JSON.stringify(this.firstRetailerBasket));
4371
4374
  if (!this.isReady()) {
4372
4375
  return this.initFirstRetailerBasket(retailerBasket);
4373
4376
  }
@@ -7130,13 +7133,18 @@
7130
7133
  }
7131
7134
  }
7132
7135
  var AddonLinkComponent = /** @class */ (function () {
7133
- function AddonLinkComponent() {
7136
+ function AddonLinkComponent(cdr) {
7137
+ this.cdr = cdr;
7138
+ this.hasStorytelling = false;
7134
7139
  this.showAddon = new i0.EventEmitter();
7135
7140
  }
7141
+ AddonLinkComponent.prototype.ngOnChanges = function () {
7142
+ this.cdr.detectChanges();
7143
+ };
7136
7144
  return AddonLinkComponent;
7137
7145
  }());
7138
- AddonLinkComponent.ɵfac = function AddonLinkComponent_Factory(t) { return new (t || AddonLinkComponent)(); };
7139
- AddonLinkComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AddonLinkComponent, selectors: [["ng-miam-addon-link"]], inputs: { recipe: "recipe" }, outputs: { showAddon: "showAddon" }, decls: 7, vars: 4, consts: function () {
7146
+ AddonLinkComponent.ɵfac = function AddonLinkComponent_Factory(t) { return new (t || AddonLinkComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
7147
+ AddonLinkComponent.ɵcmp = i0.ɵɵdefineComponent({ type: AddonLinkComponent, selectors: [["ng-miam-addon-link"]], inputs: { recipe: "recipe", hasStorytelling: "hasStorytelling" }, outputs: { showAddon: "showAddon" }, features: [i0.ɵɵNgOnChangesFeature], decls: 7, vars: 4, consts: function () {
7140
7148
  var i18n_0;
7141
7149
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
7142
7150
  var MSG_EXTERNAL_5295446601874813054$$LIB__COMPONENTS_ADDON_LINK_ADDON_LINK_COMPONENT_TS__1 = goog.getMsg(" Cette recette vous est propos\u00E9e par notre partenaire ");
@@ -7162,20 +7170,24 @@
7162
7170
  i0.ɵɵadvance(2);
7163
7171
  i0.ɵɵproperty("ngIf", ctx.recipe.informationalSentence)("ngIfElse", _r1);
7164
7172
  i0.ɵɵadvance(3);
7165
- i0.ɵɵproperty("ngIf", ctx.recipe.attributes["informational-page-html"]);
7173
+ i0.ɵɵproperty("ngIf", ctx.recipe.attributes["informational-page-html"] || ctx.hasStorytelling);
7166
7174
  i0.ɵɵadvance(1);
7167
7175
  i0.ɵɵproperty("ngIf", ctx.recipe == null ? null : ctx.recipe.sponsorLogoUrl);
7168
7176
  }
7169
- }, directives: [i2.NgIf], styles: [".miam-addon-link[_ngcontent-%COMP%]{align-items:center;background-color:var(--m-color-white);display:flex;flex-direction:row;font-size:16px;justify-content:space-between;margin-left:96px;padding:12px 16px}@media (max-width:1023px){.miam-addon-link[_ngcontent-%COMP%]{margin-left:unset}}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__logo[_ngcontent-%COMP%]{align-items:center;display:flex;height:64px;justify-content:center;order:2;padding:0 16px;width:168px}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__logo[_ngcontent-%COMP%] img[_ngcontent-%COMP%]{-o-object-fit:contain;max-height:100%;max-width:100%;object-fit:contain}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__info[_ngcontent-%COMP%]{display:flex;flex-direction:column;padding-right:8px}.miam-addon-link[_ngcontent-%COMP%] .miam-addon-link__info[_ngcontent-%COMP%] .miam-addon-link__link[_ngcontent-%COMP%]{-webkit-tap-highlight-color:transparent;color:var(--m-color-primary);cursor:pointer;margin-top:8px}"] });
7177
+ }, directives: [i2.NgIf], styles: [".miam-addon-link{align-items:center;background-color:var(--m-color-white);display:flex;flex-direction:row;font-size:16px;justify-content:space-between;margin-left:96px;padding:12px 16px}@media (max-width:1023px){.miam-addon-link{margin-left:unset}}.miam-addon-link .miam-addon-link__logo{align-items:center;display:flex;height:64px;justify-content:center;order:2;padding:0 16px;width:168px}.miam-addon-link .miam-addon-link__logo img{-o-object-fit:contain;max-height:100%;max-width:100%;object-fit:contain}.miam-addon-link .miam-addon-link__info{display:flex;flex-direction:column;padding-right:8px}.miam-addon-link .miam-addon-link__info .miam-addon-link__link{-webkit-tap-highlight-color:transparent;color:var(--m-color-primary);cursor:pointer;margin-top:8px}"], encapsulation: 2, changeDetection: 0 });
7170
7178
  /*@__PURE__*/ (function () {
7171
7179
  i0.ɵsetClassMetadata(AddonLinkComponent, [{
7172
7180
  type: i0.Component,
7173
7181
  args: [{
7174
7182
  selector: 'ng-miam-addon-link',
7175
7183
  templateUrl: './addon-link.component.html',
7176
- styleUrls: ['./addon-link.component.scss']
7184
+ styleUrls: ['./addon-link.component.scss'],
7185
+ encapsulation: i0.ViewEncapsulation.None,
7186
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
7177
7187
  }]
7178
- }], function () { return []; }, { recipe: [{
7188
+ }], function () { return [{ type: i0.ChangeDetectorRef }]; }, { recipe: [{
7189
+ type: i0.Input
7190
+ }], hasStorytelling: [{
7179
7191
  type: i0.Input
7180
7192
  }], showAddon: [{
7181
7193
  type: i0.Output
@@ -7792,8 +7804,9 @@
7792
7804
 
7793
7805
  var SponsorBlockService = /** @class */ (function (_super) {
7794
7806
  __extends(SponsorBlockService, _super);
7795
- function SponsorBlockService() {
7807
+ function SponsorBlockService(blockTypesService) {
7796
7808
  var _this = _super.call(this) || this;
7809
+ _this.blockTypesService = blockTypesService;
7797
7810
  _this.resource = SponsorBlock;
7798
7811
  _this.type = 'sponsor-blocks';
7799
7812
  _this.register();
@@ -7801,7 +7814,7 @@
7801
7814
  }
7802
7815
  return SponsorBlockService;
7803
7816
  }(i1.Service));
7804
- SponsorBlockService.ɵfac = function SponsorBlockService_Factory(t) { return new (t || SponsorBlockService)(); };
7817
+ SponsorBlockService.ɵfac = function SponsorBlockService_Factory(t) { return new (t || SponsorBlockService)(i0.ɵɵinject(SponsorBlockTypeService)); };
7805
7818
  SponsorBlockService.ɵprov = i0.ɵɵdefineInjectable({ token: SponsorBlockService, factory: SponsorBlockService.ɵfac, providedIn: 'root' });
7806
7819
  /*@__PURE__*/ (function () {
7807
7820
  i0.ɵsetClassMetadata(SponsorBlockService, [{
@@ -7809,7 +7822,7 @@
7809
7822
  args: [{
7810
7823
  providedIn: 'root'
7811
7824
  }]
7812
- }], function () { return []; }, null);
7825
+ }], function () { return [{ type: SponsorBlockTypeService }]; }, null);
7813
7826
  })();
7814
7827
 
7815
7828
  var _c0$4 = function (a0) { return { "color": a0 }; };
@@ -11348,12 +11361,16 @@
11348
11361
  }
11349
11362
  }
11350
11363
  var SponsorBlockContainerComponent = /** @class */ (function () {
11351
- function SponsorBlockContainerComponent() {
11364
+ function SponsorBlockContainerComponent(cdr) {
11365
+ this.cdr = cdr;
11352
11366
  }
11367
+ SponsorBlockContainerComponent.prototype.ngOnChanges = function () {
11368
+ this.cdr.detectChanges();
11369
+ };
11353
11370
  return SponsorBlockContainerComponent;
11354
11371
  }());
11355
- SponsorBlockContainerComponent.ɵfac = function SponsorBlockContainerComponent_Factory(t) { return new (t || SponsorBlockContainerComponent)(); };
11356
- SponsorBlockContainerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorBlockContainerComponent, selectors: [["ng-miam-sponsor-block-container"]], inputs: { sponsorBlock: "sponsorBlock" }, decls: 11, vars: 10, consts: [[1, "sponsor-block-container", 3, "ngSwitch"], [3, "sponsorBlock", 4, "ngSwitchCase"], [3, "sponsorBlock", 4, "ngSwitchDefault"], [3, "sponsorBlock"]], template: function SponsorBlockContainerComponent_Template(rf, ctx) {
11372
+ SponsorBlockContainerComponent.ɵfac = function SponsorBlockContainerComponent_Factory(t) { return new (t || SponsorBlockContainerComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
11373
+ SponsorBlockContainerComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorBlockContainerComponent, selectors: [["ng-miam-sponsor-block-container"]], inputs: { sponsorBlock: "sponsorBlock" }, features: [i0.ɵɵNgOnChangesFeature], decls: 11, vars: 10, consts: [[1, "sponsor-block-container", 3, "ngSwitch"], [3, "sponsorBlock", 4, "ngSwitchCase"], [3, "sponsorBlock", 4, "ngSwitchDefault"], [3, "sponsorBlock"]], template: function SponsorBlockContainerComponent_Template(rf, ctx) {
11357
11374
  if (rf & 1) {
11358
11375
  i0.ɵɵelementStart(0, "div", 0);
11359
11376
  i0.ɵɵtemplate(1, SponsorBlockContainerComponent_ng_miam_sponsor_title_block_1_Template, 1, 1, "ng-miam-sponsor-title-block", 1);
@@ -11389,16 +11406,18 @@
11389
11406
  i0.ɵɵadvance(1);
11390
11407
  i0.ɵɵproperty("ngSwitchCase", "LOGO");
11391
11408
  }
11392
- }, directives: [i2.NgSwitch, i2.NgSwitchCase, i2.NgSwitchDefault, SponsorTitleBlockComponent, SponsorSmallTitleBlockComponent, SponsorSmallTextBlockComponent, SponsorPictureBlockComponent, SponsorSmallPictureBlockComponent, SponsorImageWithTextBlockComponent, SponsorImageAndTextBlockComponent, SponsorTextAndImageBlockComponent, SponsorLogoBlockComponent, SponsorTextBlockComponent], styles: [".sponsor-block-container[_ngcontent-%COMP%]{height:auto;width:100%}"] });
11409
+ }, directives: [i2.NgSwitch, i2.NgSwitchCase, i2.NgSwitchDefault, SponsorTitleBlockComponent, SponsorSmallTitleBlockComponent, SponsorSmallTextBlockComponent, SponsorPictureBlockComponent, SponsorSmallPictureBlockComponent, SponsorImageWithTextBlockComponent, SponsorImageAndTextBlockComponent, SponsorTextAndImageBlockComponent, SponsorLogoBlockComponent, SponsorTextBlockComponent], styles: [".sponsor-block-container{height:auto;width:100%}"], encapsulation: 2, changeDetection: 0 });
11393
11410
  /*@__PURE__*/ (function () {
11394
11411
  i0.ɵsetClassMetadata(SponsorBlockContainerComponent, [{
11395
11412
  type: i0.Component,
11396
11413
  args: [{
11397
11414
  selector: 'ng-miam-sponsor-block-container',
11398
11415
  templateUrl: './sponsor-block-container.component.html',
11399
- styleUrls: ['./sponsor-block-container.component.scss']
11416
+ styleUrls: ['./sponsor-block-container.component.scss'],
11417
+ encapsulation: i0.ViewEncapsulation.None,
11418
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
11400
11419
  }]
11401
- }], function () { return []; }, { sponsorBlock: [{
11420
+ }], function () { return [{ type: i0.ChangeDetectorRef }]; }, { sponsorBlock: [{
11402
11421
  type: i0.Input
11403
11422
  }] });
11404
11423
  })();
@@ -12169,7 +12188,7 @@
12169
12188
  request = request.clone({
12170
12189
  setHeaders: {
12171
12190
  'miam-origin': context.origin.value,
12172
- 'miam-front-version': '6.4.2',
12191
+ 'miam-front-version': '6.4.4',
12173
12192
  'miam-front-type': 'web',
12174
12193
  'miam-api-version': '4.7.0'
12175
12194
  }
@@ -12528,10 +12547,22 @@
12528
12547
  i0.ɵɵtextInterpolate(ctx_r2.line.description[0]);
12529
12548
  }
12530
12549
  }
12550
+ function BasketPreviewLineComponent_div_14_span_1_Template(rf, ctx) {
12551
+ if (rf & 1) {
12552
+ i0.ɵɵelementStart(0, "span", 34);
12553
+ i0.ɵɵtext(1);
12554
+ i0.ɵɵelementEnd();
12555
+ }
12556
+ if (rf & 2) {
12557
+ var d_r21 = ctx.$implicit;
12558
+ i0.ɵɵadvance(1);
12559
+ i0.ɵɵtextInterpolate(d_r21);
12560
+ }
12561
+ }
12531
12562
  function BasketPreviewLineComponent_div_14_Template(rf, ctx) {
12532
12563
  if (rf & 1) {
12533
12564
  i0.ɵɵelementStart(0, "div");
12534
- i0.ɵɵtext(1);
12565
+ i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_14_span_1_Template, 2, 1, "span", 32);
12535
12566
  i0.ɵɵelementStart(2, "span");
12536
12567
  i0.ɵɵtext(3);
12537
12568
  i0.ɵɵpipe(4, "async");
@@ -12540,14 +12571,14 @@
12540
12571
  i0.ɵɵtext(6, " /");
12541
12572
  i0.ɵɵelementEnd();
12542
12573
  i0.ɵɵelementStart(7, "span");
12543
- i0.ɵɵi18n(8, 32);
12574
+ i0.ɵɵi18n(8, 33);
12544
12575
  i0.ɵɵelementEnd();
12545
12576
  i0.ɵɵelementEnd();
12546
12577
  }
12547
12578
  if (rf & 2) {
12548
12579
  var ctx_r3 = i0.ɵɵnextContext();
12549
12580
  i0.ɵɵadvance(1);
12550
- i0.ɵɵtextInterpolate1("", ctx_r3.line.description[1], " ");
12581
+ i0.ɵɵproperty("ngForOf", ctx_r3.line.description.slice(1, ctx_r3.line.description.length));
12551
12582
  i0.ɵɵadvance(2);
12552
12583
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 2, ctx_r3.currency));
12553
12584
  }
@@ -12555,21 +12586,21 @@
12555
12586
  function BasketPreviewLineComponent_div_16_span_1_Template(rf, ctx) {
12556
12587
  if (rf & 1) {
12557
12588
  i0.ɵɵelementStart(0, "span");
12558
- i0.ɵɵi18n(1, 34);
12589
+ i0.ɵɵi18n(1, 36);
12559
12590
  i0.ɵɵelementEnd();
12560
12591
  }
12561
12592
  }
12562
12593
  function BasketPreviewLineComponent_div_16_span_2_Template(rf, ctx) {
12563
12594
  if (rf & 1) {
12564
12595
  i0.ɵɵelementStart(0, "span");
12565
- i0.ɵɵi18n(1, 35);
12596
+ i0.ɵɵi18n(1, 37);
12566
12597
  i0.ɵɵelementEnd();
12567
12598
  }
12568
12599
  }
12569
12600
  var _c8 = function (a0) { return { "expanded": a0 }; };
12570
12601
  function BasketPreviewLineComponent_div_16_Template(rf, ctx) {
12571
12602
  if (rf & 1) {
12572
- i0.ɵɵelementStart(0, "div", 33);
12603
+ i0.ɵɵelementStart(0, "div", 35);
12573
12604
  i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_16_span_1_Template, 2, 0, "span", 10);
12574
12605
  i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_16_span_2_Template, 2, 0, "span", 10);
12575
12606
  i0.ɵɵelementEnd();
@@ -12585,19 +12616,19 @@
12585
12616
  }
12586
12617
  function BasketPreviewLineComponent_div_17_Template(rf, ctx) {
12587
12618
  if (rf & 1) {
12588
- i0.ɵɵelementStart(0, "div", 36);
12589
- i0.ɵɵi18n(1, 37);
12619
+ i0.ɵɵelementStart(0, "div", 38);
12620
+ i0.ɵɵi18n(1, 39);
12590
12621
  i0.ɵɵelementEnd();
12591
12622
  }
12592
12623
  }
12593
12624
  var _c13 = function (a0) { return { "disable": a0 }; };
12594
12625
  function BasketPreviewLineComponent_div_18_Template(rf, ctx) {
12595
12626
  if (rf & 1) {
12596
- var _r23_1 = i0.ɵɵgetCurrentView();
12597
- i0.ɵɵelementStart(0, "div", 38);
12598
- i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_18_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r23_1); var ctx_r22 = i0.ɵɵnextContext(); return ctx_r22.changeProduct(ctx_r22.line); });
12599
- i0.ɵɵelementStart(1, "a", 39);
12600
- i0.ɵɵi18n(2, 40);
12627
+ var _r25_1 = i0.ɵɵgetCurrentView();
12628
+ i0.ɵɵelementStart(0, "div", 40);
12629
+ i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_18_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r25_1); var ctx_r24 = i0.ɵɵnextContext(); return ctx_r24.changeProduct(ctx_r24.line); });
12630
+ i0.ɵɵelementStart(1, "a", 41);
12631
+ i0.ɵɵi18n(2, 42);
12601
12632
  i0.ɵɵelementEnd();
12602
12633
  i0.ɵɵelementEnd();
12603
12634
  }
@@ -12614,16 +12645,16 @@
12614
12645
  i0.ɵɵelementEnd();
12615
12646
  }
12616
12647
  if (rf & 2) {
12617
- var word_r25 = ctx.$implicit;
12648
+ var word_r27 = ctx.$implicit;
12618
12649
  i0.ɵɵadvance(1);
12619
- i0.ɵɵtextInterpolate(word_r25);
12650
+ i0.ɵɵtextInterpolate(word_r27);
12620
12651
  }
12621
12652
  }
12622
12653
  function BasketPreviewLineComponent_div_19_Template(rf, ctx) {
12623
12654
  if (rf & 1) {
12624
- i0.ɵɵelementStart(0, "div", 41);
12625
- i0.ɵɵelementStart(1, "div", 42);
12626
- i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_19_span_2_Template, 2, 1, "span", 43);
12655
+ i0.ɵɵelementStart(0, "div", 43);
12656
+ i0.ɵɵelementStart(1, "div", 44);
12657
+ i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_19_span_2_Template, 2, 1, "span", 45);
12627
12658
  i0.ɵɵelementEnd();
12628
12659
  i0.ɵɵelementEnd();
12629
12660
  }
@@ -12635,7 +12666,7 @@
12635
12666
  }
12636
12667
  function BasketPreviewLineComponent_div_21_Template(rf, ctx) {
12637
12668
  if (rf & 1) {
12638
- i0.ɵɵelementStart(0, "div", 44);
12669
+ i0.ɵɵelementStart(0, "div", 46);
12639
12670
  i0.ɵɵelementStart(1, "span");
12640
12671
  i0.ɵɵtext(2);
12641
12672
  i0.ɵɵelementEnd();
@@ -12663,7 +12694,7 @@
12663
12694
  var _c16 = function (a0) { return { fields: a0 }; };
12664
12695
  function BasketPreviewLineComponent_ng_template_22_Template(rf, ctx) {
12665
12696
  if (rf & 1) {
12666
- i0.ɵɵelement(0, "ng-miam-recipe-pricing", 45);
12697
+ i0.ɵɵelement(0, "ng-miam-recipe-pricing", 47);
12667
12698
  i0.ɵɵpipe(1, "async");
12668
12699
  }
12669
12700
  if (rf & 2) {
@@ -12673,28 +12704,28 @@
12673
12704
  }
12674
12705
  function BasketPreviewLineComponent_div_25_Template(rf, ctx) {
12675
12706
  if (rf & 1) {
12676
- i0.ɵɵelementStart(0, "div", 46);
12677
- i0.ɵɵi18n(1, 47);
12707
+ i0.ɵɵelementStart(0, "div", 48);
12708
+ i0.ɵɵi18n(1, 49);
12678
12709
  i0.ɵɵelementEnd();
12679
12710
  }
12680
12711
  }
12681
12712
  function BasketPreviewLineComponent_div_27_span_1_Template(rf, ctx) {
12682
12713
  if (rf & 1) {
12683
12714
  i0.ɵɵelementStart(0, "span");
12684
- i0.ɵɵi18n(1, 49);
12715
+ i0.ɵɵi18n(1, 51);
12685
12716
  i0.ɵɵelementEnd();
12686
12717
  }
12687
12718
  }
12688
12719
  function BasketPreviewLineComponent_div_27_span_2_Template(rf, ctx) {
12689
12720
  if (rf & 1) {
12690
12721
  i0.ɵɵelementStart(0, "span");
12691
- i0.ɵɵi18n(1, 50);
12722
+ i0.ɵɵi18n(1, 52);
12692
12723
  i0.ɵɵelementEnd();
12693
12724
  }
12694
12725
  }
12695
12726
  function BasketPreviewLineComponent_div_27_Template(rf, ctx) {
12696
12727
  if (rf & 1) {
12697
- i0.ɵɵelementStart(0, "div", 48);
12728
+ i0.ɵɵelementStart(0, "div", 50);
12698
12729
  i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_27_span_1_Template, 2, 0, "span", 10);
12699
12730
  i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_27_span_2_Template, 2, 0, "span", 10);
12700
12731
  i0.ɵɵelementEnd();
@@ -12709,11 +12740,11 @@
12709
12740
  }
12710
12741
  function BasketPreviewLineComponent_div_28_Template(rf, ctx) {
12711
12742
  if (rf & 1) {
12712
- var _r29_1 = i0.ɵɵgetCurrentView();
12713
- i0.ɵɵelementStart(0, "div", 51);
12714
- i0.ɵɵelementStart(1, "button", 52);
12715
- i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_28_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r29_1); var ctx_r28 = i0.ɵɵnextContext(); return ctx_r28.toggleRecipeDisplay($event, true); });
12716
- i0.ɵɵelement(2, "ng-miam-icon", 53);
12743
+ var _r31_1 = i0.ɵɵgetCurrentView();
12744
+ i0.ɵɵelementStart(0, "div", 53);
12745
+ i0.ɵɵelementStart(1, "button", 54);
12746
+ i0.ɵɵlistener("click", function BasketPreviewLineComponent_div_28_Template_button_click_1_listener($event) { i0.ɵɵrestoreView(_r31_1); var ctx_r30 = i0.ɵɵnextContext(); return ctx_r30.toggleRecipeDisplay($event, true); });
12747
+ i0.ɵɵelement(2, "ng-miam-icon", 55);
12717
12748
  i0.ɵɵelementEnd();
12718
12749
  i0.ɵɵelementEnd();
12719
12750
  }
@@ -12725,94 +12756,94 @@
12725
12756
  }
12726
12757
  function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_line_1_Template(rf, ctx) {
12727
12758
  if (rf & 1) {
12728
- var _r39_1 = i0.ɵɵgetCurrentView();
12729
- i0.ɵɵelementStart(0, "ng-miam-basket-preview-line", 61);
12730
- i0.ɵɵlistener("removed", function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_removed_0_listener($event) { i0.ɵɵrestoreView(_r39_1); var ctx_r38 = i0.ɵɵnextContext(3); return ctx_r38.deleteEntry($event.record); })("replaceItem", function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_replaceItem_0_listener() { i0.ɵɵrestoreView(_r39_1); var ctx_r40 = i0.ɵɵnextContext(3); return ctx_r40.replaceItem.emit(ctx_r40.line); });
12759
+ var _r41_1 = i0.ɵɵgetCurrentView();
12760
+ i0.ɵɵelementStart(0, "ng-miam-basket-preview-line", 63);
12761
+ i0.ɵɵlistener("removed", function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_removed_0_listener($event) { i0.ɵɵrestoreView(_r41_1); var ctx_r40 = i0.ɵɵnextContext(3); return ctx_r40.deleteEntry($event.record); })("replaceItem", function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_replaceItem_0_listener() { i0.ɵɵrestoreView(_r41_1); var ctx_r42 = i0.ɵɵnextContext(3); return ctx_r42.replaceItem.emit(ctx_r42.line); });
12731
12762
  i0.ɵɵelementEnd();
12732
12763
  }
12733
12764
  if (rf & 2) {
12734
- var entryLine_r37 = ctx.$implicit;
12735
- var ctx_r33 = i0.ɵɵnextContext(3);
12736
- i0.ɵɵproperty("line", entryLine_r37)("sponsorised", ctx_r33.isEntrySponsorised[entryLine_r37.id])("displayItemsUnitaryPrice", ctx_r33.displayItemsUnitaryPrice)("originTrace", ctx_r33.eventTrace())("blockStates", ctx_r33.blockStates);
12765
+ var entryLine_r39 = ctx.$implicit;
12766
+ var ctx_r35 = i0.ɵɵnextContext(3);
12767
+ i0.ɵɵproperty("line", entryLine_r39)("sponsorised", ctx_r35.isEntrySponsorised[entryLine_r39.id])("displayItemsUnitaryPrice", ctx_r35.displayItemsUnitaryPrice)("originTrace", ctx_r35.eventTrace())("blockStates", ctx_r35.blockStates);
12737
12768
  }
12738
12769
  }
12739
12770
  function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_3_Template(rf, ctx) {
12740
12771
  if (rf & 1) {
12741
- i0.ɵɵelement(0, "ng-miam-basket-preview-disabled", 62);
12772
+ i0.ɵɵelement(0, "ng-miam-basket-preview-disabled", 64);
12742
12773
  }
12743
12774
  if (rf & 2) {
12744
- var ctx_r34 = i0.ɵɵnextContext(3);
12745
- i0.ɵɵproperty("entries", ctx_r34.line.entries.notFound)("alwaysExpanded", ctx_r34.itemsAlwaysExpanded);
12775
+ var ctx_r36 = i0.ɵɵnextContext(3);
12776
+ i0.ɵɵproperty("entries", ctx_r36.line.entries.notFound)("alwaysExpanded", ctx_r36.itemsAlwaysExpanded);
12746
12777
  }
12747
12778
  }
12748
12779
  function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_4_Template(rf, ctx) {
12749
12780
  if (rf & 1) {
12750
- var _r42_1 = i0.ɵɵgetCurrentView();
12751
- i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 63);
12752
- i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_4_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r42_1); var ctx_r41 = i0.ɵɵnextContext(3); return ctx_r41.addEntry($event); });
12781
+ var _r44_1 = i0.ɵɵgetCurrentView();
12782
+ i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 65);
12783
+ i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_4_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r44_1); var ctx_r43 = i0.ɵɵnextContext(3); return ctx_r43.addEntry($event); });
12753
12784
  i0.ɵɵelementEnd();
12754
12785
  }
12755
12786
  if (rf & 2) {
12756
- var ctx_r35 = i0.ɵɵnextContext(3);
12757
- i0.ɵɵproperty("entries", ctx_r35.line.entries.oftenDeleted)("alwaysExpanded", ctx_r35.itemsAlwaysExpanded);
12787
+ var ctx_r37 = i0.ɵɵnextContext(3);
12788
+ i0.ɵɵproperty("entries", ctx_r37.line.entries.oftenDeleted)("alwaysExpanded", ctx_r37.itemsAlwaysExpanded);
12758
12789
  }
12759
12790
  }
12760
12791
  function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_5_Template(rf, ctx) {
12761
12792
  if (rf & 1) {
12762
- var _r44_1 = i0.ɵɵgetCurrentView();
12763
- i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 64);
12764
- i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_5_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r44_1); var ctx_r43 = i0.ɵɵnextContext(3); return ctx_r43.addEntry($event); });
12793
+ var _r46_1 = i0.ɵɵgetCurrentView();
12794
+ i0.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 66);
12795
+ i0.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_5_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0.ɵɵrestoreView(_r46_1); var ctx_r45 = i0.ɵɵnextContext(3); return ctx_r45.addEntry($event); });
12765
12796
  i0.ɵɵelementEnd();
12766
12797
  }
12767
12798
  if (rf & 2) {
12768
- var ctx_r36 = i0.ɵɵnextContext(3);
12769
- i0.ɵɵproperty("entries", ctx_r36.line.entries.removed)("alwaysExpanded", ctx_r36.itemsAlwaysExpanded)("reduced", true);
12799
+ var ctx_r38 = i0.ɵɵnextContext(3);
12800
+ i0.ɵɵproperty("entries", ctx_r38.line.entries.removed)("alwaysExpanded", ctx_r38.itemsAlwaysExpanded)("reduced", true);
12770
12801
  }
12771
12802
  }
12772
12803
  function BasketPreviewLineComponent_div_29_div_1_Template(rf, ctx) {
12773
12804
  if (rf & 1) {
12774
12805
  i0.ɵɵelementStart(0, "div");
12775
- i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_line_1_Template, 1, 5, "ng-miam-basket-preview-line", 57);
12806
+ i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_line_1_Template, 1, 5, "ng-miam-basket-preview-line", 59);
12776
12807
  i0.ɵɵpipe(2, "async");
12777
- i0.ɵɵtemplate(3, BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 2, "ng-miam-basket-preview-disabled", 58);
12778
- i0.ɵɵtemplate(4, BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 2, "ng-miam-basket-preview-disabled", 59);
12779
- i0.ɵɵtemplate(5, BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 3, "ng-miam-basket-preview-disabled", 60);
12808
+ i0.ɵɵtemplate(3, BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 2, "ng-miam-basket-preview-disabled", 60);
12809
+ i0.ɵɵtemplate(4, BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 2, "ng-miam-basket-preview-disabled", 61);
12810
+ i0.ɵɵtemplate(5, BasketPreviewLineComponent_div_29_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 3, "ng-miam-basket-preview-disabled", 62);
12780
12811
  i0.ɵɵelementEnd();
12781
12812
  }
12782
12813
  if (rf & 2) {
12783
- var ctx_r30 = i0.ɵɵnextContext(2);
12814
+ var ctx_r32 = i0.ɵɵnextContext(2);
12784
12815
  i0.ɵɵadvance(1);
12785
- i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 4, ctx_r30.entriesLines$));
12816
+ i0.ɵɵproperty("ngForOf", i0.ɵɵpipeBind1(2, 4, ctx_r32.entriesLines$));
12786
12817
  i0.ɵɵadvance(2);
12787
- i0.ɵɵproperty("ngIf", ctx_r30.line.entries.notFound.length > 0);
12818
+ i0.ɵɵproperty("ngIf", ctx_r32.line.entries.notFound.length > 0);
12788
12819
  i0.ɵɵadvance(1);
12789
- i0.ɵɵproperty("ngIf", ctx_r30.line.entries.oftenDeleted.length > 0);
12820
+ i0.ɵɵproperty("ngIf", ctx_r32.line.entries.oftenDeleted.length > 0);
12790
12821
  i0.ɵɵadvance(1);
12791
- i0.ɵɵproperty("ngIf", ctx_r30.line.entries.removed.length > 0);
12822
+ i0.ɵɵproperty("ngIf", ctx_r32.line.entries.removed.length > 0);
12792
12823
  }
12793
12824
  }
12794
12825
  function BasketPreviewLineComponent_div_29_ng_template_2_Template(rf, ctx) {
12795
12826
  if (rf & 1) {
12796
- i0.ɵɵelementStart(0, "div", 65);
12827
+ i0.ɵɵelementStart(0, "div", 67);
12797
12828
  i0.ɵɵelement(1, "ng-miam-loader");
12798
12829
  i0.ɵɵelementStart(2, "div");
12799
- i0.ɵɵi18n(3, 66);
12830
+ i0.ɵɵi18n(3, 68);
12800
12831
  i0.ɵɵelementEnd();
12801
12832
  i0.ɵɵelementEnd();
12802
12833
  }
12803
12834
  }
12804
12835
  function BasketPreviewLineComponent_div_29_Template(rf, ctx) {
12805
12836
  if (rf & 1) {
12806
- i0.ɵɵelementStart(0, "div", 54);
12807
- i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_29_div_1_Template, 6, 6, "div", 55);
12808
- i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_29_ng_template_2_Template, 4, 0, "ng-template", null, 56, i0.ɵɵtemplateRefExtractor);
12837
+ i0.ɵɵelementStart(0, "div", 56);
12838
+ i0.ɵɵtemplate(1, BasketPreviewLineComponent_div_29_div_1_Template, 6, 6, "div", 57);
12839
+ i0.ɵɵtemplate(2, BasketPreviewLineComponent_div_29_ng_template_2_Template, 4, 0, "ng-template", null, 58, i0.ɵɵtemplateRefExtractor);
12809
12840
  i0.ɵɵelementEnd();
12810
12841
  }
12811
12842
  if (rf & 2) {
12812
- var _r31 = i0.ɵɵreference(3);
12843
+ var _r33 = i0.ɵɵreference(3);
12813
12844
  var ctx_r14 = i0.ɵɵnextContext();
12814
12845
  i0.ɵɵadvance(1);
12815
- i0.ɵɵproperty("ngIf", !ctx_r14.loading)("ngIfElse", _r31);
12846
+ i0.ɵɵproperty("ngIf", !ctx_r14.loading)("ngIfElse", _r33);
12816
12847
  }
12817
12848
  }
12818
12849
  var _c25 = function (a0, a1, a2) { return { clickable: a0, expanded: a1, elevate: a2 }; };
@@ -13118,7 +13149,7 @@
13118
13149
  else {
13119
13150
  i18n_23 = $localize(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject([":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."], [":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."])));
13120
13151
  }
13121
- return [[1, "miam-basket-preview-line", 3, "id", "ngClass", "click"], [1, "miam-basket-preview-line__item"], [1, "miam-basket-preview-line__item__left"], ["class", "miam-basket-preview-line__item__remove", 3, "click", 4, "ngIf"], [1, "miam-basket-preview-line__item__picture"], [3, "src", "click"], [1, "miam-basket-preview-line__item__details", 3, "ngClass"], ["class", "miam-basket-preview-line__item__sponsorised", 4, "ngIf"], [1, "miam-basket-preview-line__item__title", 3, "click"], [1, "miam-basket-preview-line__item__description"], [4, "ngIf"], [1, "miam-basket-preview-line__item__actions"], ["class", "miam-basket-preview-line__item__showDetails", 3, "ngClass", 4, "ngIf"], ["class", "miam-basket-preview-line__item__showDetails", 4, "ngIf"], ["class", "miam-basket-preview-line__item__change", 3, "click", 4, "ngIf"], ["class", "miam-basket-preview-line__item__inlineTag__container", 4, "ngIf"], [1, "miam-basket-preview-line__item__right"], ["class", "miam-basket-preview-line__item__price", 4, "ngIf", "ngIfElse"], ["pricePerguest", ""], [1, "miam-basket-preview-line__item__count"], ["class", "miam-basket-preview-line__item__count__for", 4, "ngIf"], [3, "counter", "minRange", "counterChange"], ["class", "miam-basket-preview-line__item__count__people", 4, "ngIf"], ["class", "miam-basket-preview-line__add__button", 4, "ngIf"], ["class", "miam-basket-preview-lines", 4, "ngIf"], [1, "miam-basket-preview-line__item__remove", 3, "click"], ["height", "24", "width", "24", "primaryColor", "var(--m-color-grey-text-dark)", 3, "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], ["height", "24", "width", "24", "primaryColor", "var(--m-color-grey-text-dark)", 3, "iconName"], [1, "icon-container"], [1, "miam-basket-preview-line__item__sponsorised"], i18n_0, i18n_2, [1, "miam-basket-preview-line__item__showDetails", 3, "ngClass"], i18n_4, i18n_6, [1, "miam-basket-preview-line__item__showDetails"], i18n_9, [1, "miam-basket-preview-line__item__change", 3, "click"], [1, "miam-basket-preview-line__item__change__link", 3, "ngClass"], i18n_11, [1, "miam-basket-preview-line__item__inlineTag__container"], [1, "miam-basket-preview-line__item__inlineTag"], [4, "ngFor", "ngForOf"], [1, "miam-basket-preview-line__item__price"], [3, "recipe", "serves"], [1, "miam-basket-preview-line__item__count__for"], i18n_17, [1, "miam-basket-preview-line__item__count__people"], i18n_19, i18n_21, [1, "miam-basket-preview-line__add__button"], [1, "m-button-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-basket-preview-lines"], [4, "ngIf", "ngIfElse"], ["loader", ""], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "removed", "replaceItem", 4, "ngFor", "ngForOf"], ["mode", "unavailable", 3, "entries", "alwaysExpanded", 4, "ngIf"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded", 4, "ngIf"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded", 4, "ngIf"], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "removed", "replaceItem"], ["mode", "unavailable", 3, "entries", "alwaysExpanded"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded"], [1, "miam-basket-preview-line__loader-container"], i18n_23];
13152
+ return [[1, "miam-basket-preview-line", 3, "id", "ngClass", "click"], [1, "miam-basket-preview-line__item"], [1, "miam-basket-preview-line__item__left"], ["class", "miam-basket-preview-line__item__remove", 3, "click", 4, "ngIf"], [1, "miam-basket-preview-line__item__picture"], [3, "src", "click"], [1, "miam-basket-preview-line__item__details", 3, "ngClass"], ["class", "miam-basket-preview-line__item__sponsorised", 4, "ngIf"], [1, "miam-basket-preview-line__item__title", 3, "click"], [1, "miam-basket-preview-line__item__description"], [4, "ngIf"], [1, "miam-basket-preview-line__item__actions"], ["class", "miam-basket-preview-line__item__showDetails", 3, "ngClass", 4, "ngIf"], ["class", "miam-basket-preview-line__item__showDetails", 4, "ngIf"], ["class", "miam-basket-preview-line__item__change", 3, "click", 4, "ngIf"], ["class", "miam-basket-preview-line__item__inlineTag__container", 4, "ngIf"], [1, "miam-basket-preview-line__item__right"], ["class", "miam-basket-preview-line__item__price", 4, "ngIf", "ngIfElse"], ["pricePerguest", ""], [1, "miam-basket-preview-line__item__count"], ["class", "miam-basket-preview-line__item__count__for", 4, "ngIf"], [3, "counter", "minRange", "counterChange"], ["class", "miam-basket-preview-line__item__count__people", 4, "ngIf"], ["class", "miam-basket-preview-line__add__button", 4, "ngIf"], ["class", "miam-basket-preview-lines", 4, "ngIf"], [1, "miam-basket-preview-line__item__remove", 3, "click"], ["height", "24", "width", "24", "primaryColor", "var(--m-color-grey-text-dark)", 3, "iconName", 4, "ngIf", "ngIfElse"], ["addLoader", ""], ["height", "24", "width", "24", "primaryColor", "var(--m-color-grey-text-dark)", 3, "iconName"], [1, "icon-container"], [1, "miam-basket-preview-line__item__sponsorised"], i18n_0, ["class", "miam-basket-preview-line__item__description__part", 4, "ngFor", "ngForOf"], i18n_2, [1, "miam-basket-preview-line__item__description__part"], [1, "miam-basket-preview-line__item__showDetails", 3, "ngClass"], i18n_4, i18n_6, [1, "miam-basket-preview-line__item__showDetails"], i18n_9, [1, "miam-basket-preview-line__item__change", 3, "click"], [1, "miam-basket-preview-line__item__change__link", 3, "ngClass"], i18n_11, [1, "miam-basket-preview-line__item__inlineTag__container"], [1, "miam-basket-preview-line__item__inlineTag"], [4, "ngFor", "ngForOf"], [1, "miam-basket-preview-line__item__price"], [3, "recipe", "serves"], [1, "miam-basket-preview-line__item__count__for"], i18n_17, [1, "miam-basket-preview-line__item__count__people"], i18n_19, i18n_21, [1, "miam-basket-preview-line__add__button"], [1, "m-button-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-basket-preview-lines"], [4, "ngIf", "ngIfElse"], ["loader", ""], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "removed", "replaceItem", 4, "ngFor", "ngForOf"], ["mode", "unavailable", 3, "entries", "alwaysExpanded", 4, "ngIf"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded", 4, "ngIf"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded", 4, "ngIf"], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "removed", "replaceItem"], ["mode", "unavailable", 3, "entries", "alwaysExpanded"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded"], [1, "miam-basket-preview-line__loader-container"], i18n_23];
13122
13153
  }, template: function BasketPreviewLineComponent_Template(rf, ctx) {
13123
13154
  if (rf & 1) {
13124
13155
  i0.ɵɵelementStart(0, "div", 0);
@@ -13207,7 +13238,7 @@
13207
13238
  i0.ɵɵadvance(1);
13208
13239
  i0.ɵɵproperty("ngIf", ctx.expanded);
13209
13240
  }
13210
- }, directives: [i2.NgClass, i2.NgIf, CounterInputComponent, IconComponent, LoaderComponent, i2.NgForOf, RecipePricingComponent, BasketPreviewLineComponent, BasketPreviewDisabledComponent], pipes: [CapitalizeFirstLetterPipe, i2.AsyncPipe], styles: [":root{--price-color:var(--miam-price-color,green);--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line{-webkit-tap-highlight-color:transparent;overflow:hidden;padding-left:10px}.miam-basket-preview-line.clickable{border:1px solid var(--m-color-grey);border-radius:4px;box-shadow:none;cursor:pointer;margin-bottom:6px;transition:var(--m-default-transition)}.miam-basket-preview-line.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.expanded{background:#fff;border-color:var(--m-color-grey);box-shadow:var(--m-shadow-small);margin-bottom:15px;margin-top:10px;position:relative}.miam-basket-preview-line .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{align-items:center;display:flex;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{align-self:center;margin:0 30px 0 15px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container{background-color:var(--m-color-grey);border-radius:12.5px;height:25px!important;padding:6px;width:25px!important}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container .miam-loader,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container svg{border-top-color:var(--m-color-grey-text);color:var(--m-color-grey-text);cursor:pointer;height:13px;width:13px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{margin-right:25px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:100px;object-fit:cover;width:130px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__sponsorised{align-items:center;background-color:var(--m-color-grey);border-radius:100px;display:flex;font-size:14px;font-weight:500;justify-content:center;line-height:150%;margin-bottom:8px;padding:4px 12px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{display:inline-block;font-size:var(--m-font-size-medium)}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-primary);text-decoration:underline}}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:first-letter{text-transform:capitalize}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description{font-size:var(--m-font-size-small);font-weight:400}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{display:flex;flex-direction:row}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__showDetails{color:var(--m-color-grey-text);cursor:pointer;margin:2px 30px 0 0;text-decoration:underline;transition:var(--m-default-transition);width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link{color:var(--m-color-grey-text);cursor:pointer;margin:2px 30px 0 0;text-decoration:underline;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link:hover{color:var(--m-color-primary)}}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link.disable{color:var(--m-color-grey-text);pointer-events:none}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{align-items:center;background-color:var(--tag-color);border-radius:100px;display:flex;font-size:var(--m-font-size-small);height:22px;padding:1px 16px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag span:not(:last-child){margin-right:4px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{align-items:center;display:flex;justify-content:flex-end;max-width:330px;position:relative;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{color:var(--price-color);font-size:var(--m-font-size-large);font-weight:700;margin:0 20px;white-space:nowrap}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{font-size:var(--m-font-size-small);text-align:center}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{color:var(--m-color-slate);font-weight:700;margin-bottom:2px;padding-left:20px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__add__button{margin:0 20px}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__left .miam-basket-preview-line__item__showDetails{color:var(--m-color-primary)}}.miam-basket-preview-lines{border-left:1px solid var(--m-color-grey);margin-bottom:20px;margin-left:20px;overflow:hidden}.miam-basket-preview-lines .miam-basket-preview-line{border-top:1px solid var(--m-color-grey)}.miam-basket-preview-lines .miam-basket-preview-line.expanded{border-top:1px solid var(--m-color-primary)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{border-top:none;padding:12px 0 15px}@media (min-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-black);text-decoration:none}}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{margin-right:15px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:50px;object-fit:cover;width:50px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{margin-top:-16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{color:var(--m-color-grey-text);font-size:16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count ng-miam-counter-input .miam-counter-input__icon{display:none}.miam-basket-preview-lines .miam-basket-preview-line__loader-container{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:10px}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;padding:0 0 52px;position:relative}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:92px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{bottom:58px;margin:0;position:absolute;right:18px;z-index:1}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:152px;position:absolute;top:16px;width:33%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{height:100%;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:8px 0 0 40%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{bottom:8px;left:0;position:absolute}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{height:auto;padding:1px;text-align:center}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{align-items:flex-start;flex-direction:column-reverse;justify-content:flex-start;padding-left:38%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{display:none}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:auto;padding:0;position:relative}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:auto}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{bottom:unset;margin-right:15px;position:relative;right:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:72px;position:relative;top:unset;width:72px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:72px;object-fit:cover;width:72px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions{bottom:unset;flex-direction:column;gap:8px;position:relative}}@media (max-width:1022px) and (min-width:1023px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container{width:100%}}@media (max-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container .miam-basket-preview-line__item__inlineTag{padding:4px 16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{flex-direction:row;margin:16px 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 16px 0 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:0}}"], encapsulation: 2, changeDetection: 0 });
13241
+ }, directives: [i2.NgClass, i2.NgIf, CounterInputComponent, IconComponent, LoaderComponent, i2.NgForOf, RecipePricingComponent, BasketPreviewLineComponent, BasketPreviewDisabledComponent], pipes: [CapitalizeFirstLetterPipe, i2.AsyncPipe], styles: [":root{--price-color:var(--miam-price-color,green);--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line{-webkit-tap-highlight-color:transparent;overflow:hidden;padding-left:10px}.miam-basket-preview-line.clickable{border:1px solid var(--m-color-grey);border-radius:4px;box-shadow:none;cursor:pointer;margin-bottom:6px;transition:var(--m-default-transition)}.miam-basket-preview-line.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.expanded{background:#fff;border-color:var(--m-color-grey);box-shadow:var(--m-shadow-small);margin-bottom:15px;margin-top:10px;position:relative}.miam-basket-preview-line .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{align-items:center;display:flex;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{align-self:center;margin:0 30px 0 15px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container{background-color:var(--m-color-grey);border-radius:12.5px;height:25px!important;padding:6px;width:25px!important}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container .miam-loader,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .icon-container svg{border-top-color:var(--m-color-grey-text);color:var(--m-color-grey-text);cursor:pointer;height:13px;width:13px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{margin-right:25px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:100px;object-fit:cover;width:130px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__sponsorised{align-items:center;background-color:var(--m-color-grey);border-radius:100px;display:flex;font-size:14px;font-weight:500;justify-content:center;line-height:150%;margin-bottom:8px;padding:4px 12px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{display:inline-block;font-size:var(--m-font-size-medium)}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-primary);text-decoration:underline}}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:first-letter{text-transform:capitalize}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description{font-size:var(--m-font-size-small);font-weight:400}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__description .miam-basket-preview-line__item__description__part{margin-right:4px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{display:flex;flex-direction:row}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__showDetails{color:var(--m-color-grey-text);cursor:pointer;margin:2px 30px 0 0;text-decoration:underline;transition:var(--m-default-transition);width:-webkit-max-content;width:-moz-max-content;width:max-content}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link{color:var(--m-color-grey-text);cursor:pointer;margin:2px 30px 0 0;text-decoration:underline;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link:hover{color:var(--m-color-primary)}}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__change .miam-basket-preview-line__item__change__link.disable{color:var(--m-color-grey-text);pointer-events:none}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{align-items:center;background-color:var(--tag-color);border-radius:100px;display:flex;font-size:var(--m-font-size-small);height:22px;padding:1px 16px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag span:not(:last-child){margin-right:4px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{align-items:center;display:flex;justify-content:flex-end;max-width:330px;position:relative;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{color:var(--price-color);font-size:var(--m-font-size-large);font-weight:700;margin:0 20px;white-space:nowrap}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{font-size:var(--m-font-size-small);text-align:center}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{color:var(--m-color-slate);font-weight:700;margin-bottom:2px;padding-left:20px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__add__button{margin:0 20px}@media (min-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__left .miam-basket-preview-line__item__showDetails{color:var(--m-color-primary)}}.miam-basket-preview-lines{border-left:1px solid var(--m-color-grey);margin-bottom:20px;margin-left:20px;overflow:hidden}.miam-basket-preview-lines .miam-basket-preview-line{border-top:1px solid var(--m-color-grey)}.miam-basket-preview-lines .miam-basket-preview-line.expanded{border-top:1px solid var(--m-color-primary)}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{border-top:none;padding:12px 0 15px}@media (min-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title:hover{color:var(--m-color-black);text-decoration:none}}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{margin-right:15px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:50px;object-fit:cover;width:50px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{margin-top:-16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{color:var(--m-color-grey-text);font-size:16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count ng-miam-counter-input .miam-counter-input__icon{display:none}.miam-basket-preview-lines .miam-basket-preview-line__loader-container{align-items:center;display:flex;flex-direction:column;justify-content:center;padding:10px}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;padding:0 0 52px;position:relative}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:92px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{bottom:58px;margin:0;position:absolute;right:18px;z-index:1}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:152px;position:absolute;top:16px;width:33%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{height:100%;width:100%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:8px 0 0 40%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{-webkit-box-orient:vertical;-webkit-line-clamp:2;display:-webkit-box;overflow:hidden;text-overflow:ellipsis}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions{bottom:8px;left:0;position:absolute}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag{height:auto;padding:1px;text-align:center}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{align-items:flex-start;flex-direction:column-reverse;justify-content:flex-start;padding-left:38%}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:16px 0}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__for,.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{display:none}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:auto;padding:0;position:relative}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left{height:auto}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{bottom:unset;margin-right:15px;position:relative;right:unset}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture{height:72px;position:relative;top:unset;width:72px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{-o-object-fit:cover;border-radius:var(--m-border-radius);height:72px;object-fit:cover;width:72px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{padding:0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions{bottom:unset;flex-direction:column;gap:8px;position:relative}}@media (max-width:1022px) and (min-width:1023px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container{width:100%}}@media (max-width:1022px){.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__actions .miam-basket-preview-line__item__inlineTag__container .miam-basket-preview-line__item__inlineTag{padding:4px 16px}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{flex-direction:row;margin:16px 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 16px 0 0}.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{margin:0}}"], encapsulation: 2, changeDetection: 0 });
13211
13242
  /*@__PURE__*/ (function () {
13212
13243
  i0.ɵsetClassMetadata(BasketPreviewLineComponent, [{
13213
13244
  type: i0.Component,
@@ -19239,10 +19270,8 @@
19239
19270
  if (!this.context.articlesInCatalogEnabled || this.noMoreArticles || !this.filters.additionalFilters.filters.packages) {
19240
19271
  return rxjs.of([]);
19241
19272
  }
19242
- // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment, @typescript-eslint/no-unsafe-call
19243
- var requestFilters = pick__default['default'](this.filters, 'packages', 'search');
19244
19273
  return this.articlesService.all({
19245
- remotefilter: requestFilters,
19274
+ remotefilter: Object.assign({ packages: this.filters.additionalFilters.filters.packages }, this.filters.search ? { search: this.filters.search } : {}),
19246
19275
  page: { size: 20, number: page },
19247
19276
  sort: ['-date']
19248
19277
  }).pipe(operators.map(function (result) {
@@ -20388,70 +20417,41 @@
20388
20417
  var _c1$c = ["categoryCards"];
20389
20418
  function CatalogCategoryComponent_div_0_div_15_Template(rf, ctx) {
20390
20419
  if (rf & 1) {
20391
- i0.ɵɵelementStart(0, "div", 19);
20420
+ i0.ɵɵelementStart(0, "div", 17);
20392
20421
  i0.ɵɵelement(1, "ng-miam-loader");
20393
20422
  i0.ɵɵelementStart(2, "div");
20394
- i0.ɵɵi18n(3, 20);
20423
+ i0.ɵɵi18n(3, 18);
20395
20424
  i0.ɵɵelementEnd();
20396
20425
  i0.ɵɵelementEnd();
20397
20426
  }
20398
20427
  }
20399
20428
  function CatalogCategoryComponent_div_0_ng_miam_catalog_recipe_card_17_Template(rf, ctx) {
20400
20429
  if (rf & 1) {
20401
- i0.ɵɵelement(0, "ng-miam-catalog-recipe-card", 21);
20430
+ i0.ɵɵelement(0, "ng-miam-catalog-recipe-card", 19);
20402
20431
  }
20403
20432
  if (rf & 2) {
20404
- var recipe_r8 = ctx.$implicit;
20433
+ var recipe_r6 = ctx.$implicit;
20405
20434
  var ctx_r4 = i0.ɵɵnextContext(2);
20406
- i0.ɵɵproperty("recipe", recipe_r8)("displayPricing", ctx_r4.displayPricing)("originTrace", ctx_r4.eventTrace());
20435
+ i0.ɵɵproperty("recipe", recipe_r6)("displayPricing", ctx_r4.displayPricing)("originTrace", ctx_r4.eventTrace());
20407
20436
  }
20408
20437
  }
20409
20438
  function CatalogCategoryComponent_div_0_ng_miam_catalog_article_card_18_Template(rf, ctx) {
20410
20439
  if (rf & 1) {
20411
- i0.ɵɵelement(0, "ng-miam-catalog-article-card", 22);
20412
- }
20413
- if (rf & 2) {
20414
- var article_r9 = ctx.$implicit;
20415
- i0.ɵɵproperty("article", article_r9);
20416
- }
20417
- }
20418
- function CatalogCategoryComponent_div_0_div_19_Template(rf, ctx) {
20419
- if (rf & 1) {
20420
- var _r11_1 = i0.ɵɵgetCurrentView();
20421
- i0.ɵɵelementStart(0, "div", 23);
20422
- i0.ɵɵlistener("click", function CatalogCategoryComponent_div_0_div_19_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r11_1); var ctx_r10 = i0.ɵɵnextContext(2); return ctx_r10.slideLeft(); });
20423
- i0.ɵɵelement(1, "ng-miam-icon", 24);
20424
- i0.ɵɵelementEnd();
20425
- }
20426
- if (rf & 2) {
20427
- var ctx_r6 = i0.ɵɵnextContext(2);
20428
- i0.ɵɵadvance(1);
20429
- i0.ɵɵproperty("iconName", ctx_r6.icon.ChevronDown);
20430
- }
20431
- }
20432
- function CatalogCategoryComponent_div_0_div_20_Template(rf, ctx) {
20433
- if (rf & 1) {
20434
- var _r13_1 = i0.ɵɵgetCurrentView();
20435
- i0.ɵɵelementStart(0, "div", 25);
20436
- i0.ɵɵlistener("click", function CatalogCategoryComponent_div_0_div_20_Template_div_click_0_listener() { i0.ɵɵrestoreView(_r13_1); var ctx_r12 = i0.ɵɵnextContext(2); return ctx_r12.slideRight(); });
20437
- i0.ɵɵelement(1, "ng-miam-icon", 24);
20438
- i0.ɵɵelementEnd();
20440
+ i0.ɵɵelement(0, "ng-miam-catalog-article-card", 20);
20439
20441
  }
20440
20442
  if (rf & 2) {
20441
- var ctx_r7 = i0.ɵɵnextContext(2);
20442
- i0.ɵɵadvance(1);
20443
- i0.ɵɵproperty("iconName", ctx_r7.icon.ChevronDown);
20443
+ var article_r7 = ctx.$implicit;
20444
+ i0.ɵɵproperty("article", article_r7);
20444
20445
  }
20445
20446
  }
20446
- var _c6$2 = function (a0) { return { "transform": a0 }; };
20447
20447
  function CatalogCategoryComponent_div_0_Template(rf, ctx) {
20448
20448
  if (rf & 1) {
20449
- var _r15_1 = i0.ɵɵgetCurrentView();
20449
+ var _r9_1 = i0.ɵɵgetCurrentView();
20450
20450
  i0.ɵɵelementStart(0, "div", 1);
20451
20451
  i0.ɵɵelementStart(1, "div", 2);
20452
20452
  i0.ɵɵelementStart(2, "div", 3);
20453
20453
  i0.ɵɵelementStart(3, "div", 4);
20454
- i0.ɵɵlistener("click", function CatalogCategoryComponent_div_0_Template_div_click_3_listener() { i0.ɵɵrestoreView(_r15_1); var ctx_r14 = i0.ɵɵnextContext(); return ctx_r14.displayListMode(); });
20454
+ i0.ɵɵlistener("click", function CatalogCategoryComponent_div_0_Template_div_click_3_listener() { i0.ɵɵrestoreView(_r9_1); var ctx_r8 = i0.ɵɵnextContext(); return ctx_r8.displayListMode(); });
20455
20455
  i0.ɵɵtext(4);
20456
20456
  i0.ɵɵelementEnd();
20457
20457
  i0.ɵɵelementStart(5, "div", 5);
@@ -20460,11 +20460,11 @@
20460
20460
  i0.ɵɵelementEnd();
20461
20461
  i0.ɵɵelementStart(7, "div", 6);
20462
20462
  i0.ɵɵelementStart(8, "div", 7);
20463
- i0.ɵɵlistener("click", function CatalogCategoryComponent_div_0_Template_div_click_8_listener() { i0.ɵɵrestoreView(_r15_1); var ctx_r16 = i0.ɵɵnextContext(); return ctx_r16.displayListMode(); });
20463
+ i0.ɵɵlistener("click", function CatalogCategoryComponent_div_0_Template_div_click_8_listener() { i0.ɵɵrestoreView(_r9_1); var ctx_r10 = i0.ɵɵnextContext(); return ctx_r10.displayListMode(); });
20464
20464
  i0.ɵɵi18n(9, 8);
20465
20465
  i0.ɵɵelementEnd();
20466
20466
  i0.ɵɵelementStart(10, "ng-miam-icon", 9);
20467
- i0.ɵɵlistener("click", function CatalogCategoryComponent_div_0_Template_ng_miam_icon_click_10_listener() { i0.ɵɵrestoreView(_r15_1); var ctx_r17 = i0.ɵɵnextContext(); return ctx_r17.displayListMode(); });
20467
+ i0.ɵɵlistener("click", function CatalogCategoryComponent_div_0_Template_ng_miam_icon_click_10_listener() { i0.ɵɵrestoreView(_r9_1); var ctx_r11 = i0.ɵɵnextContext(); return ctx_r11.displayListMode(); });
20468
20468
  i0.ɵɵelementEnd();
20469
20469
  i0.ɵɵelementEnd();
20470
20470
  i0.ɵɵelementEnd();
@@ -20475,8 +20475,6 @@
20475
20475
  i0.ɵɵtemplate(17, CatalogCategoryComponent_div_0_ng_miam_catalog_recipe_card_17_Template, 1, 3, "ng-miam-catalog-recipe-card", 15);
20476
20476
  i0.ɵɵtemplate(18, CatalogCategoryComponent_div_0_ng_miam_catalog_article_card_18_Template, 1, 1, "ng-miam-catalog-article-card", 16);
20477
20477
  i0.ɵɵelementEnd();
20478
- i0.ɵɵtemplate(19, CatalogCategoryComponent_div_0_div_19_Template, 2, 1, "div", 17);
20479
- i0.ɵɵtemplate(20, CatalogCategoryComponent_div_0_div_20_Template, 2, 1, "div", 18);
20480
20478
  i0.ɵɵelementEnd();
20481
20479
  i0.ɵɵelementEnd();
20482
20480
  }
@@ -20488,25 +20486,14 @@
20488
20486
  i0.ɵɵtextInterpolate(ctx_r0.subtitle);
20489
20487
  i0.ɵɵadvance(4);
20490
20488
  i0.ɵɵproperty("iconName", ctx_r0.icon.ChevronDown);
20491
- i0.ɵɵadvance(3);
20492
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(11, _c6$2, "translateX(-" + ctx_r0.xTranslation() + "px)"));
20493
- i0.ɵɵadvance(2);
20494
- i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(16, 9, ctx_r0.loading));
20489
+ i0.ɵɵadvance(5);
20490
+ i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(16, 6, ctx_r0.loading));
20495
20491
  i0.ɵɵadvance(2);
20496
20492
  i0.ɵɵproperty("ngForOf", ctx_r0.recipes);
20497
20493
  i0.ɵɵadvance(1);
20498
20494
  i0.ɵɵproperty("ngForOf", ctx_r0.articles);
20499
- i0.ɵɵadvance(1);
20500
- i0.ɵɵproperty("ngIf", ctx_r0.numberOfSections > 1 && ctx_r0.currentSection != 0);
20501
- i0.ɵɵadvance(1);
20502
- i0.ɵɵproperty("ngIf", ctx_r0.numberOfSections > 1 && ctx_r0.currentSection != ctx_r0.numberOfSections - 1);
20503
20495
  }
20504
20496
  }
20505
- // miam-catalog-recipe-card : width = 330px + miam-catalog-category__card : margin : 16px
20506
- // we include a margin in the card to get a space this is the card width + the margin
20507
- var CARD_WIDTH = 346;
20508
- var SPACE_BETWEEN_CARD = 16;
20509
- var SLIDER_WIDTH = 48;
20510
20497
  var recipeIncludes$4 = ['recipe-provider', 'sponsors'];
20511
20498
  var recipeSparseFields$4 = (_c$1 = {
20512
20499
  recipes: __spread(['title', 'number-of-guests', 'media-url', 'video-id', 'filigrane-logo-url', 'difficulty', 'preparation-time', 'cooking-time',
@@ -20531,12 +20518,6 @@
20531
20518
  _this.articles = [];
20532
20519
  _this.hide = false;
20533
20520
  _this.icon = exports.Icon;
20534
- _this.cardsTotalSize = 0; // native size of the card contain including overflow
20535
- _this.numberOfSections = 1; // number of card group that fit in cardsTotalSize
20536
- _this.currentSection = 0; // index of the section show on screen
20537
- _this.nbCardsInAnExtremeSection = 0; // nb of card that can fit in screen with one scroll button
20538
- _this.nbCardsInAMiddleSection = 0; // nb of card that can fit in screen with two scroll buttons
20539
- _this.categoryBandWidth = 0; // native size of visible card container scroll button
20540
20521
  _this.displayList = new i0.EventEmitter();
20541
20522
  _this.subscriptions = [];
20542
20523
  _this.recipes = [];
@@ -20545,7 +20526,7 @@
20545
20526
  CatalogCategoryComponent.prototype.ngOnInit = function () {
20546
20527
  this.sendEvent(this.analyticsService.EVENT_CATEGORY_SHOW);
20547
20528
  };
20548
- CatalogCategoryComponent.prototype.ngOnChanges = function (changes) {
20529
+ CatalogCategoryComponent.prototype.ngOnChanges = function () {
20549
20530
  var _this = this;
20550
20531
  this.subscriptions.push(rxjs.forkJoin([this.loadRecipes(), this.loadArticles()]).pipe(operators.finalize(function () {
20551
20532
  if (_this.recipes.length === 0 && _this.articles.length === 0) {
@@ -20553,7 +20534,6 @@
20553
20534
  }
20554
20535
  else {
20555
20536
  _this.hide = false;
20556
- _this.createSections();
20557
20537
  }
20558
20538
  _this.loading.emit(false);
20559
20539
  _this.cdr.detectChanges();
@@ -20579,110 +20559,18 @@
20579
20559
  };
20580
20560
  CatalogCategoryComponent.prototype.loadArticles = function () {
20581
20561
  var _this = this;
20582
- var _a;
20583
20562
  // TODO: all contents (recipes, articles...) should be related to packages, to which filters could be attached
20584
- if (!((_a = this.filters) === null || _a === void 0 ? void 0 : _a.packages) || !this.context.articlesInCatalogEnabled) {
20563
+ if (!this.filters.additionalFilters.filters.packages || !this.context.articlesInCatalogEnabled) {
20585
20564
  return rxjs.of([]);
20586
20565
  }
20587
- return this.articlesService.all({ remotefilter: this.filters, sort: ['-date'] }).pipe(operators.map(function (result) {
20566
+ return this.articlesService.all({
20567
+ remotefilter: { packages: this.filters.additionalFilters.filters.packages },
20568
+ sort: ['-date']
20569
+ }).pipe(operators.map(function (result) {
20588
20570
  _this.articles = result.data;
20589
20571
  return _this.articles;
20590
20572
  }));
20591
20573
  };
20592
- // TODO: deprecated?
20593
- CatalogCategoryComponent.prototype.createSections = function () {
20594
- this.cdr.detectChanges();
20595
- this.cardsTotalSize = this.categoryCards.nativeElement.scrollWidth; // approx number of recipes * CARD_WIDTH
20596
- this.recalculateSections();
20597
- this.cdr.detectChanges();
20598
- };
20599
- // TODO: deprecated?
20600
- CatalogCategoryComponent.prototype.recalculateSections = function () {
20601
- // the size of the window in which we put recipes and sliders
20602
- this.categoryBandWidth = this.categoryContent.nativeElement.clientWidth;
20603
- // at start we have only one slider, two in the midle so we may not be able to fit same number of cards
20604
- this.nbCardsInAnExtremeSection = Math.floor((this.categoryBandWidth - SLIDER_WIDTH) / CARD_WIDTH);
20605
- this.nbCardsInAMiddleSection = Math.floor((this.categoryBandWidth - 2 * SLIDER_WIDTH) / CARD_WIDTH);
20606
- var totalWidthOfCardsInAnExtremeSection = this.nbCardsInAnExtremeSection * CARD_WIDTH;
20607
- var totalWidthOfCardsmiddleSection = this.nbCardsInAMiddleSection * CARD_WIDTH;
20608
- var onlyOneSection = this.categoryBandWidth >= this.cardsTotalSize;
20609
- var twoSections = totalWidthOfCardsInAnExtremeSection * 2 >= this.cardsTotalSize;
20610
- if (onlyOneSection) {
20611
- this.numberOfSections = 1;
20612
- }
20613
- else if (twoSections) {
20614
- this.numberOfSections = 2;
20615
- }
20616
- else {
20617
- // in the case we have at least the starting section the ending section and one or more middle section
20618
- // 2 * cardsInAnExtremSections => nb cards in extrem section
20619
- // this.cardsTotalSize - 2 * cardsInAnExtremSections => nb card in middle section
20620
- this.numberOfSections = 2 + (this.cardsTotalSize - 2 * totalWidthOfCardsInAnExtremeSection) / totalWidthOfCardsmiddleSection;
20621
- }
20622
- };
20623
- // TODO: deprecated?
20624
- CatalogCategoryComponent.prototype.xTranslation = function () {
20625
- if (this.currentSection === 0) {
20626
- return 0;
20627
- }
20628
- else if (this.currentSection === (this.numberOfSections - 1)) {
20629
- // the card contain a space of SPACE_BETWEEN_CARD on the LEFT, we a a space at the end for display purpose
20630
- return this.cardsTotalSize - this.categoryBandWidth + SPACE_BETWEEN_CARD;
20631
- }
20632
- // we are in the middle
20633
- var firstexternSectionWidth = this.nbCardsInAnExtremeSection * CARD_WIDTH;
20634
- var middleSectionWidth = (this.currentSection - 1) * this.nbCardsInAMiddleSection * CARD_WIDTH;
20635
- return firstexternSectionWidth + middleSectionWidth - SLIDER_WIDTH;
20636
- };
20637
- // TODO: deprecated?
20638
- CatalogCategoryComponent.prototype.slideLeft = function () {
20639
- // current section can be a float if screen is resized
20640
- this.currentSection = Math.max(this.currentSection - 1, 0);
20641
- this.cdr.detectChanges();
20642
- this.sendEvents();
20643
- };
20644
- // TODO: deprecated?
20645
- CatalogCategoryComponent.prototype.slideRight = function () {
20646
- // current section can be a float if screen is resized
20647
- this.currentSection = Math.min(this.currentSection + 1, this.numberOfSections - 1);
20648
- this.cdr.detectChanges();
20649
- this.sendEvents();
20650
- };
20651
- // TODO: deprecated?
20652
- CatalogCategoryComponent.prototype.sendEvents = function () {
20653
- var _this = this;
20654
- // set a debounce to let the view update and recipe to be in viewport
20655
- setTimeout(function () {
20656
- // the send show event check if card is in view
20657
- _this.recipeCards.forEach(function (recipeCard) {
20658
- recipeCard.sendShowEvent();
20659
- recipeCard.displayPrice();
20660
- });
20661
- }, 1000);
20662
- };
20663
- /**
20664
- * to call when component resized
20665
- */
20666
- CatalogCategoryComponent.prototype.updateWidth = function () {
20667
- var oldNbOfCardsInAnExtremSection = this.nbCardsInAnExtremeSection;
20668
- var oldNbCardsInAMiddleSection = this.nbCardsInAMiddleSection;
20669
- var currentSectionWasFirst = this.currentSection === 0;
20670
- var currentSectionWasLast = this.currentSection === this.numberOfSections - 1;
20671
- this.recalculateSections();
20672
- if (currentSectionWasFirst) {
20673
- this.currentSection = 0;
20674
- }
20675
- else if (currentSectionWasLast) {
20676
- this.currentSection = this.numberOfSections - 1;
20677
- }
20678
- else {
20679
- // we want oldCardsForFirstSection + oldCardsBySection * currentSection = cardsForFirstSection + cardsBtSection * new_currentSection
20680
- // our goal is to keep the same card at the start of our visible div
20681
- var firstSectionDelta = oldNbOfCardsInAnExtremSection - this.nbCardsInAnExtremeSection;
20682
- this.currentSection = (firstSectionDelta + this.currentSection * oldNbCardsInAMiddleSection) / this.nbCardsInAMiddleSection;
20683
- }
20684
- this.cdr.detectChanges();
20685
- };
20686
20574
  CatalogCategoryComponent.prototype.displayListMode = function () {
20687
20575
  this.displayList.emit({ title: this.title, filters: this.filters.additionalFilters.filters });
20688
20576
  };
@@ -20721,15 +20609,15 @@
20721
20609
  else {
20722
20610
  i18n_4 = $localize(templateObject_2$s || (templateObject_2$s = __makeTemplateObject([":\u241F8f2c8f66fed7cbda7649b4ba2320375ff7526dbb\u241F5011068305185462335: Chargement des r\u00E9sultats... "], [":\u241F8f2c8f66fed7cbda7649b4ba2320375ff7526dbb\u241F5011068305185462335: Chargement des r\u00E9sultats... "])));
20723
20611
  }
20724
- return [["class", "miam-catalog-category", 4, "ngIf"], [1, "miam-catalog-category"], [1, "miam-catalog-category__header"], [1, "miam-catalog-category__left"], [1, "miam-catalog-category__title", 3, "click"], [1, "miam-catalog-category__subtitle"], [1, "miam-catalog-category__right"], [1, "miam-catalog-category__link", 3, "click"], i18n_2, ["height", "20", "width", "20", "primaryColor", "var(--m-color-primary)", 3, "iconName", "click"], [1, "miam-catalog-category__content"], ["categoryContent", ""], [1, "miam-catalog-category__cards", 3, "ngStyle"], ["categoryCards", ""], ["class", "miam-catalog-category__loader", 4, "ngIf"], [3, "recipe", "displayPricing", "originTrace", 4, "ngFor", "ngForOf"], [3, "article", 4, "ngFor", "ngForOf"], ["class", "miam-catalog-category__slider__left", 3, "click", 4, "ngIf"], ["class", "miam-catalog-category__slider__right", 3, "click", 4, "ngIf"], [1, "miam-catalog-category__loader"], i18n_4, [3, "recipe", "displayPricing", "originTrace"], [3, "article"], [1, "miam-catalog-category__slider__left", 3, "click"], ["height", "56", "width", "56", "primaryColor", "var(--m-color-white)", 3, "iconName"], [1, "miam-catalog-category__slider__right", 3, "click"]];
20612
+ return [["class", "miam-catalog-category", 4, "ngIf"], [1, "miam-catalog-category"], [1, "miam-catalog-category__header"], [1, "miam-catalog-category__left"], [1, "miam-catalog-category__title", 3, "click"], [1, "miam-catalog-category__subtitle"], [1, "miam-catalog-category__right"], [1, "miam-catalog-category__link", 3, "click"], i18n_2, ["height", "20", "width", "20", "primaryColor", "var(--m-color-primary)", 3, "iconName", "click"], [1, "miam-catalog-category__content"], ["categoryContent", ""], [1, "miam-catalog-category__cards"], ["categoryCards", ""], ["class", "miam-catalog-category__loader", 4, "ngIf"], [3, "recipe", "displayPricing", "originTrace", 4, "ngFor", "ngForOf"], [3, "article", 4, "ngFor", "ngForOf"], [1, "miam-catalog-category__loader"], i18n_4, [3, "recipe", "displayPricing", "originTrace"], [3, "article"]];
20725
20613
  }, template: function CatalogCategoryComponent_Template(rf, ctx) {
20726
20614
  if (rf & 1) {
20727
- i0.ɵɵtemplate(0, CatalogCategoryComponent_div_0_Template, 21, 13, "div", 0);
20615
+ i0.ɵɵtemplate(0, CatalogCategoryComponent_div_0_Template, 19, 8, "div", 0);
20728
20616
  }
20729
20617
  if (rf & 2) {
20730
20618
  i0.ɵɵproperty("ngIf", !ctx.hide);
20731
20619
  }
20732
- }, directives: [i2.NgIf, IconComponent, i2.NgStyle, i2.NgForOf, LoaderComponent, CatalogRecipeCardComponent, CatalogArticleCardComponent], pipes: [i2.AsyncPipe], styles: [".miam-catalog-category__slider{-webkit-backdrop-filter:blur(12px);align-items:center;backdrop-filter:blur(12px);background-color:rgba(32,32,32,.3);cursor:pointer;display:flex;height:calc(100% - 28px);justify-content:center;margin:12px 0 16px;position:absolute;top:0;width:48px}@media (max-width:1022px){.miam-catalog-category__slider{display:none}}.miam-catalog-category{display:flex;flex-direction:column;margin-bottom:40px}.miam-catalog-category .miam-catalog-category__header{align-items:flex-end;display:flex;flex-direction:row;margin-bottom:16px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left{flex:1}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__title{-webkit-tap-highlight-color:transparent;color:var(--m-color-black);cursor:pointer;font-size:24px;font-weight:700;line-height:34px;margin-bottom:4px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media (min-width:1022px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__title:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__subtitle{color:var(--m-color-black);font-size:14px;line-height:22px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right{align-items:center;display:flex}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right .miam-catalog-category__link{-webkit-tap-highlight-color:transparent;color:var(--m-color-primary);cursor:pointer;font-size:16px;line-height:24px}@media (min-width:1022px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right .miam-catalog-category__link:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right ng-miam-icon{margin-top:3px}.miam-catalog-category .miam-catalog-category__header .icon-container{cursor:pointer;margin-bottom:3px;transform:rotate(-90deg)}.miam-catalog-category .miam-catalog-category__content{height:calc(var(--m-catalog-card-height) + var(--m-catalog-cards-spacing));margin:calc(0px - var(--m-catalog-cards-spacing)/2);overflow:hidden;padding:0;position:relative;width:calc(100% + var(--m-catalog-cards-spacing))}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{display:flex;flex-direction:row;flex-wrap:wrap;transition-duration:.5s}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader{color:var(--m-color-grey-text);font-size:20px;font-weight:700;text-align:center;width:100%}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader .miam-loader{height:80px;margin-bottom:16px;margin-left:calc(50% - 40px);margin-top:80px;width:80px}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__slider__left,.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__slider__right{display:none}@media (max-width:1095px){.miam-catalog-category .miam-catalog-category__content{overflow-x:auto}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{flex-wrap:nowrap}}@media (max-width:607px){.miam-catalog-category .miam-catalog-category__header{align-items:flex-start;flex-direction:column;margin-bottom:8px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left{margin-bottom:4px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__title{margin-bottom:0}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right{align-self:flex-end}}"], encapsulation: 2, changeDetection: 0 });
20620
+ }, directives: [i2.NgIf, IconComponent, i2.NgForOf, LoaderComponent, CatalogRecipeCardComponent, CatalogArticleCardComponent], pipes: [i2.AsyncPipe], styles: [".miam-catalog-category__slider{-webkit-backdrop-filter:blur(12px);align-items:center;backdrop-filter:blur(12px);background-color:rgba(32,32,32,.3);cursor:pointer;display:flex;height:calc(100% - 28px);justify-content:center;margin:12px 0 16px;position:absolute;top:0;width:48px}@media (max-width:1022px){.miam-catalog-category__slider{display:none}}.miam-catalog-category{display:flex;flex-direction:column;margin-bottom:40px}.miam-catalog-category .miam-catalog-category__header{align-items:flex-end;display:flex;flex-direction:row;margin-bottom:16px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left{flex:1}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__title{-webkit-tap-highlight-color:transparent;color:var(--m-color-black);cursor:pointer;font-size:24px;font-weight:700;line-height:34px;margin-bottom:4px;width:-webkit-fit-content;width:-moz-fit-content;width:fit-content}@media (min-width:1022px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__title:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__subtitle{color:var(--m-color-black);font-size:14px;line-height:22px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right{align-items:center;display:flex}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right .miam-catalog-category__link{-webkit-tap-highlight-color:transparent;color:var(--m-color-primary);cursor:pointer;font-size:16px;line-height:24px}@media (min-width:1022px){.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right .miam-catalog-category__link:hover{text-decoration:underline}}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right ng-miam-icon{margin-top:3px}.miam-catalog-category .miam-catalog-category__header .icon-container{cursor:pointer;margin-bottom:3px;transform:rotate(-90deg)}.miam-catalog-category .miam-catalog-category__content{height:calc(var(--m-catalog-card-height) + var(--m-catalog-cards-spacing));margin:calc(0px - var(--m-catalog-cards-spacing)/2);overflow:hidden;padding:0;position:relative;width:calc(100% + var(--m-catalog-cards-spacing))}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{display:flex;flex-direction:row;flex-wrap:wrap;transition-duration:.5s}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader{color:var(--m-color-grey-text);font-size:20px;font-weight:700;text-align:center;width:100%}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards .miam-catalog-category__loader .miam-loader{height:80px;margin-bottom:16px;margin-left:calc(50% - 40px);margin-top:80px;width:80px}@media (max-width:1095px){.miam-catalog-category .miam-catalog-category__content{overflow-x:auto}.miam-catalog-category .miam-catalog-category__content .miam-catalog-category__cards{flex-wrap:nowrap}}@media (max-width:607px){.miam-catalog-category .miam-catalog-category__header{align-items:flex-start;flex-direction:column;margin-bottom:8px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left{margin-bottom:4px}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__left .miam-catalog-category__title{margin-bottom:0}.miam-catalog-category .miam-catalog-category__header .miam-catalog-category__right{align-self:flex-end}}"], encapsulation: 2, changeDetection: 0 });
20733
20621
  /*@__PURE__*/ (function () {
20734
20622
  i0.ɵsetClassMetadata(CatalogCategoryComponent, [{
20735
20623
  type: i0.Component,
@@ -23509,10 +23397,6 @@
23509
23397
  RecipeCatalogComponent.prototype.onFilterCollapsed = function () {
23510
23398
  this.isFilterCollapsed = !this.isFilterCollapsed;
23511
23399
  this.cdr.detectChanges();
23512
- // to trigger after the detectChanges because we need to alread have the display change to update cards
23513
- this.categoriesComp.forEach(function (cat) {
23514
- cat.updateWidth();
23515
- });
23516
23400
  };
23517
23401
  RecipeCatalogComponent.prototype.goToCreatePage = function (recipe) {
23518
23402
  if (recipe === void 0) { recipe = null; }
@@ -24229,61 +24113,163 @@
24229
24113
  }], function () { return []; }, null);
24230
24114
  })();
24231
24115
 
24232
- function RecipeAddonComponent_img_6_Template(rf, ctx) {
24116
+ function SponsorStorytellingComponent_ng_miam_sponsor_block_container_1_Template(rf, ctx) {
24233
24117
  if (rf & 1) {
24234
- i0.ɵɵelement(0, "img", 8);
24118
+ i0.ɵɵelement(0, "ng-miam-sponsor-block-container", 2);
24235
24119
  }
24236
24120
  if (rf & 2) {
24121
+ var block_r1 = ctx.$implicit;
24122
+ i0.ɵɵproperty("sponsorBlock", block_r1)("ngStyle", block_r1 == null ? null : block_r1.style);
24123
+ }
24124
+ }
24125
+ var SponsorStorytellingComponent = /** @class */ (function () {
24126
+ function SponsorStorytellingComponent(cdr) {
24127
+ this.cdr = cdr;
24128
+ }
24129
+ return SponsorStorytellingComponent;
24130
+ }());
24131
+ SponsorStorytellingComponent.ɵfac = function SponsorStorytellingComponent_Factory(t) { return new (t || SponsorStorytellingComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
24132
+ SponsorStorytellingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorStorytellingComponent, selectors: [["ng-miam-sponsor-storytelling"]], inputs: { sponsorBlocks: "sponsorBlocks" }, decls: 2, vars: 1, consts: [[1, "sponsor-storytelling"], [3, "sponsorBlock", "ngStyle", 4, "ngFor", "ngForOf"], [3, "sponsorBlock", "ngStyle"]], template: function SponsorStorytellingComponent_Template(rf, ctx) {
24133
+ if (rf & 1) {
24134
+ i0.ɵɵelementStart(0, "div", 0);
24135
+ i0.ɵɵtemplate(1, SponsorStorytellingComponent_ng_miam_sponsor_block_container_1_Template, 1, 2, "ng-miam-sponsor-block-container", 1);
24136
+ i0.ɵɵelementEnd();
24137
+ }
24138
+ if (rf & 2) {
24139
+ i0.ɵɵadvance(1);
24140
+ i0.ɵɵproperty("ngForOf", ctx.sponsorBlocks);
24141
+ }
24142
+ }, directives: [i2.NgForOf, SponsorBlockContainerComponent, i2.NgStyle], styles: [".sponsor-storytelling{border-radius:8px;display:grid;gap:24px;grid-template-columns:repeat(10,1fr);grid-template-rows:auto;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%}"], encapsulation: 2, changeDetection: 0 });
24143
+ /*@__PURE__*/ (function () {
24144
+ i0.ɵsetClassMetadata(SponsorStorytellingComponent, [{
24145
+ type: i0.Component,
24146
+ args: [{
24147
+ selector: 'ng-miam-sponsor-storytelling',
24148
+ templateUrl: './sponsor-storytelling.component.html',
24149
+ styleUrls: ['./sponsor-storytelling.component.scss'],
24150
+ encapsulation: i0.ViewEncapsulation.None,
24151
+ changeDetection: i0.ChangeDetectionStrategy.OnPush
24152
+ }]
24153
+ }], function () { return [{ type: i0.ChangeDetectorRef }]; }, { sponsorBlocks: [{
24154
+ type: i0.Input
24155
+ }] });
24156
+ })();
24157
+
24158
+ function RecipeAddonComponent_div_0_img_6_Template(rf, ctx) {
24159
+ if (rf & 1) {
24160
+ i0.ɵɵelement(0, "img", 11);
24161
+ }
24162
+ if (rf & 2) {
24163
+ var ctx_r3 = i0.ɵɵnextContext(2);
24164
+ i0.ɵɵpropertyInterpolate("src", ctx_r3.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl);
24165
+ }
24166
+ }
24167
+ function RecipeAddonComponent_div_0_iframe_8_Template(rf, ctx) {
24168
+ if (rf & 1) {
24169
+ i0.ɵɵelement(0, "iframe", 12);
24170
+ i0.ɵɵpipe(1, "safe");
24171
+ }
24172
+ if (rf & 2) {
24173
+ var ctx_r4 = i0.ɵɵnextContext(2);
24174
+ i0.ɵɵproperty("src", i0.ɵɵpipeBind1(1, 1, ctx_r4.recipe == null ? null : ctx_r4.recipe.attributes["informational-page-html"]), i0.ɵɵsanitizeResourceUrl);
24175
+ }
24176
+ }
24177
+ function RecipeAddonComponent_div_0_ng_template_9_Template(rf, ctx) {
24178
+ if (rf & 1) {
24179
+ i0.ɵɵelement(0, "ng-miam-sponsor-storytelling", 13);
24180
+ }
24181
+ if (rf & 2) {
24182
+ var ctx_r6 = i0.ɵɵnextContext(2);
24183
+ i0.ɵɵproperty("sponsorBlocks", ctx_r6.sponsorBlocks);
24184
+ }
24185
+ }
24186
+ function RecipeAddonComponent_div_0_Template(rf, ctx) {
24187
+ if (rf & 1) {
24188
+ var _r8_1 = i0.ɵɵgetCurrentView();
24189
+ i0.ɵɵelementStart(0, "div", 2);
24190
+ i0.ɵɵelementStart(1, "div", 3);
24191
+ i0.ɵɵelementStart(2, "button", 4);
24192
+ i0.ɵɵlistener("click", function RecipeAddonComponent_div_0_Template_button_click_2_listener() { i0.ɵɵrestoreView(_r8_1); var ctx_r7 = i0.ɵɵnextContext(); return ctx_r7.hideAddon.emit(); });
24193
+ i0.ɵɵelement(3, "ng-miam-icon", 5);
24194
+ i0.ɵɵelementStart(4, "span");
24195
+ i0.ɵɵi18n(5, 6);
24196
+ i0.ɵɵelementEnd();
24197
+ i0.ɵɵelementEnd();
24198
+ i0.ɵɵtemplate(6, RecipeAddonComponent_div_0_img_6_Template, 1, 1, "img", 7);
24199
+ i0.ɵɵelementEnd();
24200
+ i0.ɵɵelementStart(7, "div", 8);
24201
+ i0.ɵɵtemplate(8, RecipeAddonComponent_div_0_iframe_8_Template, 2, 3, "iframe", 9);
24202
+ i0.ɵɵtemplate(9, RecipeAddonComponent_div_0_ng_template_9_Template, 1, 1, "ng-template", null, 10, i0.ɵɵtemplateRefExtractor);
24203
+ i0.ɵɵelementEnd();
24204
+ i0.ɵɵelementEnd();
24205
+ }
24206
+ if (rf & 2) {
24207
+ var _r5 = i0.ɵɵreference(10);
24237
24208
  var ctx_r0 = i0.ɵɵnextContext();
24238
- i0.ɵɵpropertyInterpolate("src", ctx_r0.recipe.sponsorLogoUrl, i0.ɵɵsanitizeUrl);
24209
+ i0.ɵɵadvance(3);
24210
+ i0.ɵɵproperty("iconName", ctx_r0.icon.ChevronDown);
24211
+ i0.ɵɵadvance(3);
24212
+ i0.ɵɵproperty("ngIf", ctx_r0.recipe == null ? null : ctx_r0.recipe.sponsorLogoUrl);
24213
+ i0.ɵɵadvance(2);
24214
+ i0.ɵɵproperty("ngIf", (ctx_r0.sponsorBlocks == null ? null : ctx_r0.sponsorBlocks.length) === 0)("ngIfElse", _r5);
24215
+ }
24216
+ }
24217
+ function RecipeAddonComponent_ng_template_1_Template(rf, ctx) {
24218
+ if (rf & 1) {
24219
+ i0.ɵɵelementStart(0, "div", 14);
24220
+ i0.ɵɵelement(1, "ng-miam-loader");
24221
+ i0.ɵɵelementEnd();
24239
24222
  }
24240
24223
  }
24241
24224
  var RecipeAddonComponent = /** @class */ (function () {
24242
- function RecipeAddonComponent() {
24243
- this.icon = exports.Icon;
24225
+ function RecipeAddonComponent(sponsorBlocksService, cdr) {
24226
+ this.sponsorBlocksService = sponsorBlocksService;
24227
+ this.cdr = cdr;
24244
24228
  this.hideAddon = new i0.EventEmitter();
24229
+ this.icon = exports.Icon;
24230
+ this.loading = true;
24245
24231
  }
24232
+ RecipeAddonComponent.prototype.ngOnInit = function () {
24233
+ if (this.recipe.sponsors.length > 0) {
24234
+ this.getSponsorBlocks();
24235
+ }
24236
+ };
24237
+ RecipeAddonComponent.prototype.getSponsorBlocks = function () {
24238
+ var _this = this;
24239
+ this.sponsorBlocksService.all({
24240
+ remotefilter: {
24241
+ 'sponsor-id': this.recipe.sponsors[0].id
24242
+ },
24243
+ include: ['sponsor', 'sponsor-block-type']
24244
+ }).pipe(operators.skipWhile(function (result) { return result.is_loading; })).subscribe(function (blocks) {
24245
+ _this.sponsorBlocks = blocks.data.sort(function (block1, block2) { return block1.position - block2.position; });
24246
+ _this.loading = false;
24247
+ _this.cdr.detectChanges();
24248
+ });
24249
+ };
24246
24250
  return RecipeAddonComponent;
24247
24251
  }());
24248
- RecipeAddonComponent.ɵfac = function RecipeAddonComponent_Factory(t) { return new (t || RecipeAddonComponent)(); };
24249
- RecipeAddonComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeAddonComponent, selectors: [["ng-miam-recipe-addon"]], inputs: { recipe: "recipe" }, outputs: { hideAddon: "hideAddon" }, decls: 10, vars: 5, consts: function () {
24252
+ RecipeAddonComponent.ɵfac = function RecipeAddonComponent_Factory(t) { return new (t || RecipeAddonComponent)(i0.ɵɵdirectiveInject(SponsorBlockService), i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
24253
+ RecipeAddonComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeAddonComponent, selectors: [["ng-miam-recipe-addon"]], inputs: { recipe: "recipe" }, outputs: { hideAddon: "hideAddon" }, decls: 3, vars: 2, consts: function () {
24250
24254
  var i18n_0;
24251
24255
  if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
24252
- var MSG_EXTERNAL_8168765646794661881$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_ADDON_RECIPE_ADDON_COMPONENT_TS_1 = goog.getMsg("Retour");
24253
- i18n_0 = MSG_EXTERNAL_8168765646794661881$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_ADDON_RECIPE_ADDON_COMPONENT_TS_1;
24256
+ var MSG_EXTERNAL_8168765646794661881$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_ADDON_RECIPE_ADDON_COMPONENT_TS__1 = goog.getMsg("Retour");
24257
+ i18n_0 = MSG_EXTERNAL_8168765646794661881$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_ADDON_RECIPE_ADDON_COMPONENT_TS__1;
24254
24258
  }
24255
24259
  else {
24256
24260
  i18n_0 = $localize(templateObject_1$F || (templateObject_1$F = __makeTemplateObject([":\u241F7582755e46cff3b0d29465ce750a51c9b841ae9f\u241F8168765646794661881:Retour"], [":\u241F7582755e46cff3b0d29465ce750a51c9b841ae9f\u241F8168765646794661881:Retour"])));
24257
24261
  }
24258
- return [[1, "recipe-addon"], [1, "recipe-addon__header"], [1, "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_0, [3, "src", 4, "ngIf"], [1, "recipe-addon__content"], ["frameBorder", "0", 1, "recipe-addon__content__iframe", 3, "src"], [3, "src"]];
24262
+ return [["class", "miam-recipe-addon", 4, "ngIf", "ngIfElse"], ["isLoading", ""], [1, "miam-recipe-addon"], [1, "miam-recipe-addon__header"], [1, "m-button-secondary", 3, "click"], ["primaryColor", "var(--m-color-primary)", 3, "iconName"], i18n_0, [3, "src", 4, "ngIf"], [1, "miam-recipe-addon__content"], ["class", "miam-recipe-addon__content__iframe", "frameBorder", "0", 3, "src", 4, "ngIf", "ngIfElse"], ["storytelling", ""], [3, "src"], ["frameBorder", "0", 1, "miam-recipe-addon__content__iframe", 3, "src"], [3, "sponsorBlocks"], [1, "miam-recipe-addon__loader"]];
24259
24263
  }, template: function RecipeAddonComponent_Template(rf, ctx) {
24260
24264
  if (rf & 1) {
24261
- i0.ɵɵelementStart(0, "div", 0);
24262
- i0.ɵɵelementStart(1, "div", 1);
24263
- i0.ɵɵelementStart(2, "button", 2);
24264
- i0.ɵɵlistener("click", function RecipeAddonComponent_Template_button_click_2_listener() { return ctx.hideAddon.emit(); });
24265
- i0.ɵɵelement(3, "ng-miam-icon", 3);
24266
- i0.ɵɵelementStart(4, "span");
24267
- i0.ɵɵi18n(5, 4);
24268
- i0.ɵɵelementEnd();
24269
- i0.ɵɵelementEnd();
24270
- i0.ɵɵtemplate(6, RecipeAddonComponent_img_6_Template, 1, 1, "img", 5);
24271
- i0.ɵɵelementEnd();
24272
- i0.ɵɵelementStart(7, "div", 6);
24273
- i0.ɵɵelement(8, "iframe", 7);
24274
- i0.ɵɵpipe(9, "safe");
24275
- i0.ɵɵelementEnd();
24276
- i0.ɵɵelementEnd();
24265
+ i0.ɵɵtemplate(0, RecipeAddonComponent_div_0_Template, 11, 4, "div", 0);
24266
+ i0.ɵɵtemplate(1, RecipeAddonComponent_ng_template_1_Template, 2, 0, "ng-template", null, 1, i0.ɵɵtemplateRefExtractor);
24277
24267
  }
24278
24268
  if (rf & 2) {
24279
- i0.ɵɵadvance(3);
24280
- i0.ɵɵproperty("iconName", ctx.icon.ChevronDown);
24281
- i0.ɵɵadvance(3);
24282
- i0.ɵɵproperty("ngIf", ctx.recipe == null ? null : ctx.recipe.sponsorLogoUrl);
24283
- i0.ɵɵadvance(2);
24284
- i0.ɵɵproperty("src", i0.ɵɵpipeBind1(9, 3, ctx.recipe == null ? null : ctx.recipe.attributes["informational-page-html"]), i0.ɵɵsanitizeResourceUrl);
24269
+ var _r1 = i0.ɵɵreference(2);
24270
+ i0.ɵɵproperty("ngIf", !ctx.loading)("ngIfElse", _r1);
24285
24271
  }
24286
- }, directives: [IconComponent, i2.NgIf], pipes: [SafePipe], styles: [".recipe-addon{display:flex;flex-direction:column;height:100%;width:100%}.recipe-addon .recipe-addon__header{align-items:center;box-shadow:0 8px 28px rgba(0,0,0,.07);display:flex;justify-content:space-between;padding:26px 80px 26px 16px;width:100%}@media (max-width:1023px){.recipe-addon .recipe-addon__header{padding:16px 80px 16px 16px}}.recipe-addon .recipe-addon__header button{background-color:transparent;border:none;color:var(--m-color-black);font-size:19px;font-weight:700;max-width:150px;padding:0}.recipe-addon .recipe-addon__header button ng-miam-icon{height:16px;margin:0;transform:rotate(90deg) scale(1.5)}.recipe-addon .recipe-addon__header button ng-miam-icon svg path{fill:var(--m-color-black)}.recipe-addon .recipe-addon__header button ng-miam-icon svg path:first-of-type{fill:transparent}.recipe-addon .recipe-addon__header button:hover{background-color:transparent;border:none}.recipe-addon .recipe-addon__header button:hover ng-miam-icon svg path{fill:var(--m-color-black)}.recipe-addon .recipe-addon__header button:hover ng-miam-icon svg path:first-of-type{fill:transparent}.recipe-addon .recipe-addon__header button span{margin-left:8px}.recipe-addon .recipe-addon__header img{height:25px}.recipe-addon .recipe-addon__content{flex:1 1;height:100%;margin-right:8px;overflow-x:hidden;overflow-y:auto;padding-top:16px;width:calc(100% - 8px)}.recipe-addon .recipe-addon__content::-webkit-scrollbar-button{height:20px}.recipe-addon .recipe-addon__content::-webkit-scrollbar-track{background:var(--m-color-grey)}.recipe-addon .recipe-addon__content::-webkit-scrollbar{cursor:-webkit-grab;height:7px;width:5px}.recipe-addon .recipe-addon__content::-webkit-scrollbar-thumb{background:var(--m-color-primary);border-radius:5px}.recipe-addon .recipe-addon__content .recipe-addon__content__iframe{height:calc(100vh - 98px);width:100%}"], encapsulation: 2, changeDetection: 0 });
24272
+ }, directives: [i2.NgIf, IconComponent, SponsorStorytellingComponent, LoaderComponent], pipes: [SafePipe], styles: [".miam-recipe-addon{display:flex;flex-direction:column;height:100%;width:100%}.miam-recipe-addon .miam-recipe-addon__header{align-items:center;box-shadow:0 8px 28px rgba(0,0,0,.07);display:flex;justify-content:space-between;padding:26px 80px 26px 16px;width:100%}@media (max-width:1023px){.miam-recipe-addon .miam-recipe-addon__header{padding:16px 80px 16px 16px}}.miam-recipe-addon .miam-recipe-addon__header button{background-color:transparent;border:none;color:var(--m-color-black);font-size:19px;font-weight:700;max-width:150px;padding:0}.miam-recipe-addon .miam-recipe-addon__header button ng-miam-icon{height:16px;margin:0;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;flex:1 1;height:100%;margin-right:8px;overflow-x:hidden;overflow-y:auto;padding-top:16px;width:calc(100% - 8px)}.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(100vh - 98px);width:100%}.miam-recipe-addon__loader{align-items:center;display:flex;height:100%;justify-content:center;width:100%}"], encapsulation: 2, changeDetection: 0 });
24287
24273
  /*@__PURE__*/ (function () {
24288
24274
  i0.ɵsetClassMetadata(RecipeAddonComponent, [{
24289
24275
  type: i0.Component,
@@ -24294,7 +24280,7 @@
24294
24280
  encapsulation: i0.ViewEncapsulation.None,
24295
24281
  changeDetection: i0.ChangeDetectionStrategy.OnPush
24296
24282
  }]
24297
- }], function () { return []; }, { recipe: [{
24283
+ }], function () { return [{ type: SponsorBlockService }, { type: i0.ChangeDetectorRef }]; }, { recipe: [{
24298
24284
  type: i0.Input
24299
24285
  }], hideAddon: [{
24300
24286
  type: i0.Output
@@ -25148,7 +25134,7 @@
25148
25134
  }
25149
25135
  if (rf & 2) {
25150
25136
  var ctx_r10 = i0.ɵɵnextContext(3);
25151
- i0.ɵɵproperty("recipe", ctx_r10.recipe);
25137
+ i0.ɵɵproperty("hasStorytelling", ctx_r10.sponsorHasStorytelling)("recipe", ctx_r10.recipe);
25152
25138
  }
25153
25139
  }
25154
25140
  var _c3$2 = function (a0, a1) { return { "sponsor": a0, "tags": a1 }; };
@@ -25349,7 +25335,7 @@
25349
25335
  i0.ɵɵelementStart(1, "div", 16, 17);
25350
25336
  i0.ɵɵelementStart(3, "div", 18);
25351
25337
  i0.ɵɵelementStart(4, "div", 19);
25352
- i0.ɵɵtemplate(5, RecipeDetailsComponent_div_0_div_11_ng_miam_addon_link_5_Template, 1, 1, "ng-miam-addon-link", 20);
25338
+ i0.ɵɵtemplate(5, RecipeDetailsComponent_div_0_div_11_ng_miam_addon_link_5_Template, 1, 2, "ng-miam-addon-link", 20);
25353
25339
  i0.ɵɵelementEnd();
25354
25340
  i0.ɵɵelementStart(6, "div", 21);
25355
25341
  i0.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_11_img_7_Template, 1, 5, "img", 22);
@@ -25488,7 +25474,7 @@
25488
25474
  };
25489
25475
  var RecipeDetailsComponent = /** @class */ (function (_super) {
25490
25476
  __extends(RecipeDetailsComponent, _super);
25491
- function RecipeDetailsComponent(cdr, recipeService, groceriesListsService, userService, posService, recipeEventsService, mediaMatcher, contextService, analyticsService, toasterService) {
25477
+ function RecipeDetailsComponent(cdr, recipeService, groceriesListsService, userService, posService, recipeEventsService, mediaMatcher, contextService, analyticsService, toasterService, sponsorBlocksService) {
25492
25478
  var _this = _super.call(this, analyticsService) || this;
25493
25479
  _this.cdr = cdr;
25494
25480
  _this.recipeService = recipeService;
@@ -25500,6 +25486,7 @@
25500
25486
  _this.contextService = contextService;
25501
25487
  _this.analyticsService = analyticsService;
25502
25488
  _this.toasterService = toasterService;
25489
+ _this.sponsorBlocksService = sponsorBlocksService;
25503
25490
  _this.previewAllowed = true;
25504
25491
  _this.ingredientsPictures = false;
25505
25492
  _this.displayTagsIcons = false;
@@ -25520,6 +25507,7 @@
25520
25507
  _this.icon = exports.Icon;
25521
25508
  _this.addButtonLoading = false;
25522
25509
  _this.titleInHeader = false;
25510
+ _this.sponsorHasStorytelling = false;
25523
25511
  _this.subscriptions = [];
25524
25512
  return _this;
25525
25513
  }
@@ -25553,16 +25541,18 @@
25553
25541
  };
25554
25542
  RecipeDetailsComponent.prototype.fetchRecipe = function () {
25555
25543
  var _this = this;
25556
- this.subscriptions.push(this.recipeService.get(this.recipeId, { include: recipeIncludes$5, fields: recipeSparseFields$5 }).pipe(operators.skipWhile(function (result) { return result.is_loading; })).subscribe(function (result) {
25544
+ this.subscriptions.push(this.recipeService.get(this.recipeId, { include: recipeIncludes$5, fields: recipeSparseFields$5 }).pipe(operators.skipWhile(function (result) { return result.is_loading; }), operators.tap(function (result) {
25557
25545
  _this.recipe = result;
25558
25546
  _this.analyticsService.sendEventWhenReady(_this.analyticsService.EVENT_RECIPE_DISPLAY, _this.originTrace.originPath, _this.props());
25559
25547
  _this.pageview();
25560
- _this.cdr.detectChanges();
25561
25548
  _this.setupYoutubePlayer();
25562
25549
  setTimeout(function () {
25563
25550
  _this.initScrollListenerOnTitle();
25564
25551
  });
25565
- }));
25552
+ }), operators.switchMap(function () { return _this.sponsorBlocksService.all({
25553
+ remotefilter: { 'sponsor-id': _this.recipe.sponsors[0].id },
25554
+ page: { number: 1, size: 1 }
25555
+ }).pipe(operators.skipWhile(function (result) { return result.is_loading; }), operators.tap(function (result) { return _this.sponsorHasStorytelling = !!result.data.length; })); })).subscribe(function () { return _this.cdr.detectChanges(); }));
25566
25556
  };
25567
25557
  RecipeDetailsComponent.prototype.setupYoutubePlayer = function () {
25568
25558
  var _this = this;
@@ -25703,7 +25693,7 @@
25703
25693
  };
25704
25694
  return RecipeDetailsComponent;
25705
25695
  }(EventTracerComponent));
25706
- RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(i1$2.MediaMatcher), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(ToasterService)); };
25696
+ RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef), i0.ɵɵdirectiveInject(RecipesService), i0.ɵɵdirectiveInject(GroceriesListsService), i0.ɵɵdirectiveInject(UserService), i0.ɵɵdirectiveInject(PointOfSalesService), i0.ɵɵdirectiveInject(RecipeEventsService), i0.ɵɵdirectiveInject(i1$2.MediaMatcher), i0.ɵɵdirectiveInject(ContextService), i0.ɵɵdirectiveInject(AnalyticsService), i0.ɵɵdirectiveInject(ToasterService), i0.ɵɵdirectiveInject(SponsorBlockService)); };
25707
25697
  RecipeDetailsComponent.ɵcmp = i0.ɵɵdefineComponent({ type: RecipeDetailsComponent, selectors: [["ng-miam-recipe-details"]], viewQuery: function RecipeDetailsComponent_Query(rf, ctx) {
25708
25698
  if (rf & 1) {
25709
25699
  i0.ɵɵviewQuery(_c0$v, true);
@@ -25737,7 +25727,7 @@
25737
25727
  else {
25738
25728
  i18n_6 = $localize(templateObject_3$t || (templateObject_3$t = __makeTemplateObject([":\u241Fe3d3d7039794cbbd2e16e8548bfbf9ee8fa29247\u241F1225769932237505428:Ajouter les ingr\u00E9dients"], [":\u241Fe3d3d7039794cbbd2e16e8548bfbf9ee8fa29247\u241F1225769932237505428:Ajouter les ingr\u00E9dients"])));
25739
25729
  }
25740
- return [["class", "miam-recipe-details", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details"], ["mainContainer", ""], [1, "miam-recipe-details__header"], [1, "miam-recipe-details__bookmark"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg", 4, "ngIf", "ngIfElse"], ["stamp", ""], [1, "miam-recipe-details__title"], [4, "ngIf"], [1, "miam-recipe-details__header__link", 3, "href"], i18n_1, ["class", "miam-recipe-details__container", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-stamp.svg"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__summary"], ["topContainerImg", ""], [1, "miam-recipe-details__summary__container"], [1, "miam-recipe-details__sponsor"], [3, "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__picture"], [3, "src", "ngClass", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__actionbar"], [1, "miam-recipe-details__actionbar__group"], ["class", "miam-recipe-details__actions__icon like", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", "print", 3, "width", "height", "iconName", "click"], ["class", "miam-recipe-details__actions__icon help", "primaryColor", "var(--m-color-grey02)", "secondaryColor", "var(--m-color-grey07)", 3, "width", "height", "iconName", "click", 4, "ngIf"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced", 4, "ngIf"], [3, "recipe", 4, "ngIf"], [1, "miam-recipe-details__action__container"], [1, "miam-recipe-details__price"], [3, "recipe", "serves", "guestsText", 4, "ngIf"], ["class", "miam-recipe-details__addbasket", 3, "ngClass", "click", 4, "ngIf"], ["id", "miam-recipe-details__content", 1, "miam-recipe-details__content"], ["class", "miam-recipe-details__title", "id", "miam-recipe-details__title", 4, "ngIf"], ["class", "miam-recipe-details__content__description", 4, "ngIf"], [3, "recipe", "ingredientsPictures", "displayGuests", "guestsUpdated"], [1, "miam-recipe-details__content__image", 3, "href"], [3, "src"], [3, "recipe", "showAddon"], [3, "src", "ngClass"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__filigrane"], [1, "miam-recipe-details__actions__icon", "like", 3, "recipe", "originTrace", "width", "height"], ["primaryColor", "var(--m-color-grey02)", "secondaryColor", "var(--m-color-grey07)", 1, "miam-recipe-details__actions__icon", "help", 3, "width", "height", "iconName", "click"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced"], [3, "recipe"], [3, "recipe", "serves", "guestsText"], [1, "miam-recipe-details__addbasket", 3, "ngClass", "click"], ["class", "miam-recipe-details__addbasket__cta", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-recipe-details__addbasket__cta"], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf"], i18n_4, i18n_6, ["primaryColor", "#fff", 3, "width", "height", "iconName"], ["id", "miam-recipe-details__title", 1, "miam-recipe-details__title"], [1, "miam-recipe-details__content__description"], [3, "recipe", "hideAddon"]];
25730
+ return [["class", "miam-recipe-details", 4, "ngIf", "ngIfElse"], ["addon", ""], [1, "miam-recipe-details"], ["mainContainer", ""], [1, "miam-recipe-details__header"], [1, "miam-recipe-details__bookmark"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg", 4, "ngIf", "ngIfElse"], ["stamp", ""], [1, "miam-recipe-details__title"], [4, "ngIf"], [1, "miam-recipe-details__header__link", 3, "href"], i18n_1, ["class", "miam-recipe-details__container", 4, "ngIf"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-bookmark.svg"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/recipe-details/recipe-details-stamp.svg"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__summary"], ["topContainerImg", ""], [1, "miam-recipe-details__summary__container"], [1, "miam-recipe-details__sponsor"], [3, "hasStorytelling", "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__picture"], [3, "src", "ngClass", 4, "ngIf"], [3, "videoId", "width", "height", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__actionbar"], [1, "miam-recipe-details__actionbar__group"], ["class", "miam-recipe-details__actions__icon like", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], ["primaryColor", "var(--m-color-primary)", 1, "miam-recipe-details__actions__icon", "print", 3, "width", "height", "iconName", "click"], ["class", "miam-recipe-details__actions__icon help", "primaryColor", "var(--m-color-grey02)", "secondaryColor", "var(--m-color-grey07)", 3, "width", "height", "iconName", "click", 4, "ngIf"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced", 4, "ngIf"], [3, "recipe", 4, "ngIf"], [1, "miam-recipe-details__action__container"], [1, "miam-recipe-details__price"], [3, "recipe", "serves", "guestsText", 4, "ngIf"], ["class", "miam-recipe-details__addbasket", 3, "ngClass", "click", 4, "ngIf"], ["id", "miam-recipe-details__content", 1, "miam-recipe-details__content"], ["class", "miam-recipe-details__title", "id", "miam-recipe-details__title", 4, "ngIf"], ["class", "miam-recipe-details__content__description", 4, "ngIf"], [3, "recipe", "ingredientsPictures", "displayGuests", "guestsUpdated"], [1, "miam-recipe-details__content__image", 3, "href"], [3, "src"], [3, "hasStorytelling", "recipe", "showAddon"], [3, "src", "ngClass"], [3, "videoId", "width", "height"], [1, "miam-recipe-details__picture__filigrane"], [1, "miam-recipe-details__actions__icon", "like", 3, "recipe", "originTrace", "width", "height"], ["primaryColor", "var(--m-color-grey02)", "secondaryColor", "var(--m-color-grey07)", 1, "miam-recipe-details__actions__icon", "help", 3, "width", "height", "iconName", "click"], [3, "recipe", "displayTags", "displayTagsIcons", "reduced"], [3, "recipe"], [3, "recipe", "serves", "guestsText"], [1, "miam-recipe-details__addbasket", 3, "ngClass", "click"], ["class", "miam-recipe-details__addbasket__cta", 4, "ngIf", "ngIfElse"], ["addLoader", ""], [1, "miam-recipe-details__addbasket__cta"], ["primaryColor", "#fff", 3, "width", "height", "iconName", 4, "ngIf"], i18n_4, i18n_6, ["primaryColor", "#fff", 3, "width", "height", "iconName"], ["id", "miam-recipe-details__title", 1, "miam-recipe-details__title"], [1, "miam-recipe-details__content__description"], [3, "recipe", "hideAddon"]];
25741
25731
  }, template: function RecipeDetailsComponent_Template(rf, ctx) {
25742
25732
  if (rf & 1) {
25743
25733
  i0.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 12, 5, "div", 0);
@@ -25758,7 +25748,7 @@
25758
25748
  encapsulation: i0.ViewEncapsulation.None,
25759
25749
  changeDetection: i0.ChangeDetectionStrategy.OnPush
25760
25750
  }]
25761
- }], function () { return [{ type: i0.ChangeDetectorRef }, { type: RecipesService }, { type: GroceriesListsService }, { type: UserService }, { type: PointOfSalesService }, { type: RecipeEventsService }, { type: i1$2.MediaMatcher }, { type: ContextService }, { type: AnalyticsService }, { type: ToasterService }]; }, { recipeId: [{
25751
+ }], function () { return [{ type: i0.ChangeDetectorRef }, { type: RecipesService }, { type: GroceriesListsService }, { type: UserService }, { type: PointOfSalesService }, { type: RecipeEventsService }, { type: i1$2.MediaMatcher }, { type: ContextService }, { type: AnalyticsService }, { type: ToasterService }, { type: SponsorBlockService }]; }, { recipeId: [{
25762
25752
  type: i0.Input
25763
25753
  }], forcedRecipe: [{
25764
25754
  type: i0.Input
@@ -25805,13 +25795,16 @@
25805
25795
  'recipe-details': RecipeDetailsComponent,
25806
25796
  'recipe-details-ingredients': RecipeDetailsIngredientsComponent,
25807
25797
  'recipe-details-steps': RecipeDetailsStepsComponent,
25808
- 'recipe-details-infos': RecipeDetailsInfosComponent
25798
+ 'recipe-details-infos': RecipeDetailsInfosComponent,
25799
+ 'sponsor-storytelling': SponsorStorytellingComponent
25809
25800
  };
25810
25801
  Object.keys(webComponents).map(function (compName) {
25811
25802
  var name = "webc-miam-" + compName;
25812
25803
  // Avoid duplicate error
25813
25804
  if (!customElements.get(name)) {
25805
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
25814
25806
  var comp = webComponents[compName];
25807
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-argument
25815
25808
  var ngElement = elements.createCustomElement(comp, { injector: injector });
25816
25809
  customElements.define(name, ngElement);
25817
25810
  }
@@ -25832,7 +25825,8 @@
25832
25825
  RecipeDetailsComponent,
25833
25826
  RecipeAddonComponent,
25834
25827
  RecipeDetailsStepsComponent,
25835
- RecipeDetailsInfosComponent], imports: [i2.CommonModule,
25828
+ RecipeDetailsInfosComponent,
25829
+ SponsorStorytellingComponent], imports: [i2.CommonModule,
25836
25830
  i3.FormsModule,
25837
25831
  UtilsModule,
25838
25832
  ComponentsModule,
@@ -25840,7 +25834,8 @@
25840
25834
  RecipeDetailsComponent,
25841
25835
  RecipeAddonComponent,
25842
25836
  RecipeDetailsStepsComponent,
25843
- RecipeDetailsInfosComponent] });
25837
+ RecipeDetailsInfosComponent,
25838
+ SponsorStorytellingComponent] });
25844
25839
  })();
25845
25840
  /*@__PURE__*/ (function () {
25846
25841
  i0.ɵsetClassMetadata(RecipeDetailsModule, [{
@@ -25858,14 +25853,16 @@
25858
25853
  RecipeDetailsComponent,
25859
25854
  RecipeAddonComponent,
25860
25855
  RecipeDetailsStepsComponent,
25861
- RecipeDetailsInfosComponent
25856
+ RecipeDetailsInfosComponent,
25857
+ SponsorStorytellingComponent
25862
25858
  ],
25863
25859
  exports: [
25864
25860
  RecipeDetailsIngredientsComponent,
25865
25861
  RecipeDetailsComponent,
25866
25862
  RecipeAddonComponent,
25867
25863
  RecipeDetailsStepsComponent,
25868
- RecipeDetailsInfosComponent
25864
+ RecipeDetailsInfosComponent,
25865
+ SponsorStorytellingComponent
25869
25866
  ]
25870
25867
  }]
25871
25868
  }], function () { return [{ type: i0.Injector }]; }, null);
@@ -26490,7 +26487,7 @@
26490
26487
  i0.ɵɵproperty("ngIf", i0.ɵɵpipeBind1(2, 1, line_r8));
26491
26488
  }
26492
26489
  }
26493
- var _c6$3 = function (a0) { return { rotate: a0 }; };
26490
+ var _c6$2 = function (a0) { return { rotate: a0 }; };
26494
26491
  var _c7$1 = function (a0) { return { wrap: a0 }; };
26495
26492
  function RecipesHistoryComponent_div_6_Template(rf, ctx) {
26496
26493
  if (rf & 1) {
@@ -26517,7 +26514,7 @@
26517
26514
  i0.ɵɵadvance(3);
26518
26515
  i0.ɵɵtextInterpolate(i0.ɵɵpipeBind1(4, 5, group_r6.date));
26519
26516
  i0.ɵɵadvance(2);
26520
- i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c6$3, !group_r6.show));
26517
+ i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(7, _c6$2, !group_r6.show));
26521
26518
  i0.ɵɵadvance(1);
26522
26519
  i0.ɵɵproperty("iconName", ctx_r2.icon.ChevronDown);
26523
26520
  i0.ɵɵadvance(1);
@@ -26944,48 +26941,6 @@
26944
26941
  })();
26945
26942
  var templateObject_1$N, templateObject_2$E;
26946
26943
 
26947
- function SponsorStorytellingComponent_ng_miam_sponsor_block_container_1_Template(rf, ctx) {
26948
- if (rf & 1) {
26949
- i0.ɵɵelement(0, "ng-miam-sponsor-block-container", 2);
26950
- }
26951
- if (rf & 2) {
26952
- var block_r1 = ctx.$implicit;
26953
- i0.ɵɵproperty("sponsorBlock", block_r1)("ngStyle", block_r1 == null ? null : block_r1.style);
26954
- }
26955
- }
26956
- var SponsorStorytellingComponent = /** @class */ (function () {
26957
- function SponsorStorytellingComponent(cdr) {
26958
- this.cdr = cdr;
26959
- }
26960
- return SponsorStorytellingComponent;
26961
- }());
26962
- SponsorStorytellingComponent.ɵfac = function SponsorStorytellingComponent_Factory(t) { return new (t || SponsorStorytellingComponent)(i0.ɵɵdirectiveInject(i0.ChangeDetectorRef)); };
26963
- SponsorStorytellingComponent.ɵcmp = i0.ɵɵdefineComponent({ type: SponsorStorytellingComponent, selectors: [["ng-miam-sponsor-storytelling"]], inputs: { sponsorBlocks: "sponsorBlocks" }, decls: 2, vars: 1, consts: [[1, "sponsor-storytelling"], [3, "sponsorBlock", "ngStyle", 4, "ngFor", "ngForOf"], [3, "sponsorBlock", "ngStyle"]], template: function SponsorStorytellingComponent_Template(rf, ctx) {
26964
- if (rf & 1) {
26965
- i0.ɵɵelementStart(0, "div", 0);
26966
- i0.ɵɵtemplate(1, SponsorStorytellingComponent_ng_miam_sponsor_block_container_1_Template, 1, 2, "ng-miam-sponsor-block-container", 1);
26967
- i0.ɵɵelementEnd();
26968
- }
26969
- if (rf & 2) {
26970
- i0.ɵɵadvance(1);
26971
- i0.ɵɵproperty("ngForOf", ctx.sponsorBlocks);
26972
- }
26973
- }, directives: [i2.NgForOf, SponsorBlockContainerComponent, i2.NgStyle], styles: [".sponsor-storytelling{border-radius:8px;display:grid;gap:24px;grid-template-columns:repeat(10,1fr);grid-template-rows:auto;height:-webkit-fit-content;height:-moz-fit-content;height:fit-content;width:100%}"], encapsulation: 2, changeDetection: 0 });
26974
- /*@__PURE__*/ (function () {
26975
- i0.ɵsetClassMetadata(SponsorStorytellingComponent, [{
26976
- type: i0.Component,
26977
- args: [{
26978
- selector: 'ng-miam-sponsor-storytelling',
26979
- templateUrl: './sponsor-storytelling.component.html',
26980
- styleUrls: ['./sponsor-storytelling.component.scss'],
26981
- encapsulation: i0.ViewEncapsulation.None,
26982
- changeDetection: i0.ChangeDetectionStrategy.OnPush
26983
- }]
26984
- }], function () { return [{ type: i0.ChangeDetectorRef }]; }, { sponsorBlocks: [{
26985
- type: i0.Input
26986
- }] });
26987
- })();
26988
-
26989
26944
  function ToasterStackComponent_ng_miam_toaster_1_Template(rf, ctx) {
26990
26945
  if (rf & 1) {
26991
26946
  var _r4_1 = i0.ɵɵgetCurrentView();
@@ -27056,8 +27011,7 @@
27056
27011
  RecipesHistoryComponent,
27057
27012
  RecipeHelperComponent,
27058
27013
  RecipeTagsComponent,
27059
- ToasterStackComponent,
27060
- SponsorStorytellingComponent
27014
+ ToasterStackComponent
27061
27015
  ];
27062
27016
  // Tag names as imported in client application
27063
27017
  // Warning : do not use caps, use dashed case only
@@ -27072,8 +27026,7 @@
27072
27026
  'recipes-history',
27073
27027
  'recipe-helper',
27074
27028
  'recipe-tags',
27075
- 'toaster-stack',
27076
- 'sponsor-storytelling'
27029
+ 'toaster-stack'
27077
27030
  ];
27078
27031
  var WEBC_MODULES = [
27079
27032
  BasketPreviewModule,
@@ -27097,7 +27050,7 @@
27097
27050
  ComponentsModule,
27098
27051
  i3$1.CalendarModule.forRoot({
27099
27052
  provide: i3$1.DateAdapter,
27100
- useFactory: dateFns.adapterFactory,
27053
+ useFactory: dateFns.adapterFactory
27101
27054
  }),
27102
27055
  UtilsModule,
27103
27056
  i9.YouTubePlayerModule
@@ -27119,8 +27072,7 @@
27119
27072
  RecipesHistoryComponent,
27120
27073
  RecipeHelperComponent,
27121
27074
  RecipeTagsComponent,
27122
- ToasterStackComponent,
27123
- SponsorStorytellingComponent], imports: [BasketPreviewModule,
27075
+ ToasterStackComponent], imports: [BasketPreviewModule,
27124
27076
  ListScanModule,
27125
27077
  RecipeDetailsModule,
27126
27078
  MealsPlannerModule,
@@ -27146,13 +27098,13 @@
27146
27098
  RecipesHistoryComponent,
27147
27099
  RecipeHelperComponent,
27148
27100
  RecipeTagsComponent,
27149
- ToasterStackComponent,
27150
- SponsorStorytellingComponent] });
27101
+ ToasterStackComponent] });
27151
27102
  })();
27152
27103
  /*@__PURE__*/ (function () {
27153
27104
  i0.ɵsetClassMetadata(WebComponentsModule, [{
27154
27105
  type: i0.NgModule,
27155
27106
  args: [{
27107
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
27156
27108
  imports: WEBC_MODULES.concat([
27157
27109
  i2.CommonModule,
27158
27110
  i3.FormsModule,
@@ -27160,12 +27112,13 @@
27160
27112
  ComponentsModule,
27161
27113
  i3$1.CalendarModule.forRoot({
27162
27114
  provide: i3$1.DateAdapter,
27163
- useFactory: dateFns.adapterFactory,
27115
+ useFactory: dateFns.adapterFactory
27164
27116
  }),
27165
27117
  UtilsModule,
27166
27118
  i9.YouTubePlayerModule
27167
27119
  ]),
27168
27120
  declarations: WEB_COMPONENTS,
27121
+ // eslint-disable-next-line @typescript-eslint/no-unsafe-assignment
27169
27122
  exports: WEBC_MODULES.concat(WEB_COMPONENTS)
27170
27123
  }]
27171
27124
  }], null, null);