ng-miam 8.1.2 → 8.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/ng-miam.umd.js +1018 -690
- package/bundles/ng-miam.umd.js.map +1 -1
- package/bundles/ng-miam.umd.min.js +1 -1
- package/bundles/ng-miam.umd.min.js.map +1 -1
- package/esm2015/lib/_components/addon-link/addon-link.component.js +19 -16
- package/esm2015/lib/_components/modal/modal.component.js +27 -51
- package/esm2015/lib/_components/product-card/product-card.component.js +84 -71
- package/esm2015/lib/_components/products-picker/products-picker.component.js +46 -44
- package/esm2015/lib/_services/basket-actions.service.js +74 -0
- package/esm2015/lib/_services/baskets.service.js +17 -4
- package/esm2015/lib/_services/context.service.js +4 -2
- package/esm2015/lib/_services/recipe-details.service.js +186 -69
- package/esm2015/lib/_services/user.service.js +2 -2
- package/esm2015/lib/_types/builded/miam-interface.js +1 -1
- package/esm2015/lib/_utils/directives/index.js +2 -1
- package/esm2015/lib/_utils/directives/load-on-scroll.directive.js +47 -0
- package/esm2015/lib/_utils/utils.module.js +10 -6
- package/esm2015/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.js +180 -152
- package/esm2015/lib/_web-components/basket-preview/replace-item/replace-item.component.js +18 -12
- package/esm2015/lib/_web-components/meals-planner/meals-planner-form/meals-planner-form.component.js +18 -13
- package/esm2015/lib/_web-components/meals-planner/meals-planner.component.js +22 -23
- package/esm2015/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.js +98 -82
- package/esm2015/lib/_web-components/recipe-details/recipe-details.component.js +145 -137
- package/esm2015/lib/_web-components/recipe-modal/recipe-modal.component.js +8 -4
- package/fesm2015/ng-miam.js +934 -633
- package/fesm2015/ng-miam.js.map +1 -1
- package/lib/_components/components.module.d.ts +2 -1
- package/lib/_components/components.module.d.ts.map +1 -1
- package/lib/_components/modal/modal.component.d.ts +7 -6
- package/lib/_components/modal/modal.component.d.ts.map +1 -1
- package/lib/_components/product-card/product-card.component.d.ts +10 -9
- package/lib/_components/product-card/product-card.component.d.ts.map +1 -1
- package/lib/_services/basket-actions.service.d.ts +51 -0
- package/lib/_services/basket-actions.service.d.ts.map +1 -0
- package/lib/_services/baskets.service.d.ts +6 -1
- package/lib/_services/baskets.service.d.ts.map +1 -1
- package/lib/_services/context.service.d.ts +1 -0
- package/lib/_services/context.service.d.ts.map +1 -1
- package/lib/_services/recipe-details.service.d.ts +30 -10
- package/lib/_services/recipe-details.service.d.ts.map +1 -1
- package/lib/_types/builded/miam-interface.d.ts +5 -0
- package/lib/_types/builded/miam-interface.d.ts.map +1 -1
- package/lib/_utils/directives/index.d.ts +1 -0
- package/lib/_utils/directives/index.d.ts.map +1 -1
- package/lib/_utils/directives/load-on-scroll.directive.d.ts +18 -0
- package/lib/_utils/directives/load-on-scroll.directive.d.ts.map +1 -0
- package/lib/_utils/utils.module.d.ts +2 -1
- package/lib/_utils/utils.module.d.ts.map +1 -1
- package/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.d.ts +2 -1
- package/lib/_web-components/basket-preview/basket-preview-line/basket-preview-line.component.d.ts.map +1 -1
- package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts +1 -2
- package/lib/_web-components/basket-preview/replace-item/replace-item.component.d.ts.map +1 -1
- package/lib/_web-components/meals-planner/meals-planner-form/meals-planner-form.component.d.ts +2 -1
- package/lib/_web-components/meals-planner/meals-planner-form/meals-planner-form.component.d.ts.map +1 -1
- package/lib/_web-components/meals-planner/meals-planner.component.d.ts +6 -7
- package/lib/_web-components/meals-planner/meals-planner.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts +6 -14
- package/lib/_web-components/recipe-catalog/catalog-list/catalog-list.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts +4 -3
- package/lib/_web-components/recipe-details/recipe-details.component.d.ts.map +1 -1
- package/lib/_web-components/recipe-modal/recipe-modal.component.d.ts.map +1 -1
- package/package.json +1 -1
package/bundles/ng-miam.umd.js
CHANGED
|
@@ -2418,7 +2418,7 @@
|
|
|
2418
2418
|
_this.initRoles();
|
|
2419
2419
|
return rxjs.forkJoin([
|
|
2420
2420
|
_this.initProvider(),
|
|
2421
|
-
_this.initSupplier()
|
|
2421
|
+
_this.initSupplier(),
|
|
2422
2422
|
]);
|
|
2423
2423
|
}));
|
|
2424
2424
|
};
|
|
@@ -3659,6 +3659,18 @@
|
|
|
3659
3659
|
enumerable: false,
|
|
3660
3660
|
configurable: true
|
|
3661
3661
|
});
|
|
3662
|
+
Object.defineProperty(BasketsService.prototype, "waitForBasketEntries", {
|
|
3663
|
+
/**
|
|
3664
|
+
* To use when needing to be sure that basket was fetched before doing an action that doesn't need to stay subscribed to basket$
|
|
3665
|
+
* This method is meant to be an equivalent of basket$.value but asynchronous
|
|
3666
|
+
*/
|
|
3667
|
+
get: function () {
|
|
3668
|
+
var _this = this;
|
|
3669
|
+
return this._entries$.pipe(operators.skipWhile(function (b) { return !b || !_this.basketInitCalled; }), operators.take(1));
|
|
3670
|
+
},
|
|
3671
|
+
enumerable: false,
|
|
3672
|
+
configurable: true
|
|
3673
|
+
});
|
|
3662
3674
|
/** ************************************** QUEUE UTILS TO LOCK MORE ACTIONS OR DISPLAY LOADERS ************************************** **/
|
|
3663
3675
|
// Util method to avoid repeating too much for the next 6 methods
|
|
3664
3676
|
BasketsService.prototype.subjectContainsRecipeId = function (subject, type, recipeId) {
|
|
@@ -3847,11 +3859,18 @@
|
|
|
3847
3859
|
* Fetches the BasketEntry for an ingredient if it exists
|
|
3848
3860
|
* Returns a fake BasketEntry with id = -1 if it doesn't exist
|
|
3849
3861
|
*/
|
|
3850
|
-
BasketsService.prototype.basketEntryFromIngredient = function (ingredientId) {
|
|
3862
|
+
BasketsService.prototype.basketEntryFromIngredient = function (ingredientId, guests, onlyQuantity) {
|
|
3851
3863
|
var _this = this;
|
|
3864
|
+
if (onlyQuantity === void 0) { onlyQuantity = false; }
|
|
3852
3865
|
return this.waitForBasket.pipe(operators.switchMap(function (basket) {
|
|
3853
|
-
var url = environment$1.miamAPI + "/api/v1/baskets/" + basket.id + "/basket-entries/from-ingredient?ingredient_id=" + ingredientId;
|
|
3854
|
-
|
|
3866
|
+
var url = environment$1.miamAPI + "/api/v1/baskets/" + basket.id + "/basket-entries/from-ingredient?ingredient_id=" + ingredientId + "&guests=" + guests;
|
|
3867
|
+
if (onlyQuantity) {
|
|
3868
|
+
url += "&fields[basket-entries]=quantity";
|
|
3869
|
+
}
|
|
3870
|
+
else {
|
|
3871
|
+
url += '&include=selected-item';
|
|
3872
|
+
}
|
|
3873
|
+
return _this.http.get(url);
|
|
3855
3874
|
}), operators.skipWhile(function (result) { return result.is_loading || !result; }), operators.map(function (res) {
|
|
3856
3875
|
var entry = _this.basketEntriesService.new();
|
|
3857
3876
|
entry.fill(res);
|
|
@@ -5040,8 +5059,10 @@
|
|
|
5040
5059
|
else {
|
|
5041
5060
|
_this.icons.push({ icon: icon, url: url });
|
|
5042
5061
|
}
|
|
5043
|
-
}
|
|
5062
|
+
},
|
|
5063
|
+
setDefaultScrollElementGetter: function (callback) { return _this.defaultScrollElementGetter = callback; }
|
|
5044
5064
|
};
|
|
5065
|
+
this.defaultScrollElementGetter = function () { return document.body; };
|
|
5045
5066
|
this.isSmallScreen$.next(!this.mediaMatcher.matchMedia(SMALL_SCREEN_BP).matches);
|
|
5046
5067
|
this.breakpointObserver.observe(SMALL_SCREEN_BP).subscribe(function (BPChange) { return _this.isSmallScreen$.next(!BPChange.matches); });
|
|
5047
5068
|
this.icons = [];
|
|
@@ -6632,22 +6653,24 @@
|
|
|
6632
6653
|
function AddonLinkComponent_ng_template_3_Template(rf, ctx) {
|
|
6633
6654
|
if (rf & 1) {
|
|
6634
6655
|
i0__namespace.ɵɵelementStart(0, "span");
|
|
6635
|
-
i0__namespace.ɵɵ
|
|
6656
|
+
i0__namespace.ɵɵelementStart(1, "span");
|
|
6657
|
+
i0__namespace.ɵɵi18n(2, 6);
|
|
6658
|
+
i0__namespace.ɵɵelementEnd();
|
|
6659
|
+
i0__namespace.ɵɵelementStart(3, "span", 7);
|
|
6660
|
+
i0__namespace.ɵɵtext(4);
|
|
6636
6661
|
i0__namespace.ɵɵelementEnd();
|
|
6637
|
-
i0__namespace.ɵɵelementStart(2, "span");
|
|
6638
|
-
i0__namespace.ɵɵtext(3);
|
|
6639
6662
|
i0__namespace.ɵɵelementEnd();
|
|
6640
6663
|
}
|
|
6641
6664
|
if (rf & 2) {
|
|
6642
6665
|
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
6643
|
-
i0__namespace.ɵɵadvance(
|
|
6644
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.recipe.sponsorName, "
|
|
6666
|
+
i0__namespace.ɵɵadvance(4);
|
|
6667
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r2.recipe.sponsorName, "");
|
|
6645
6668
|
}
|
|
6646
6669
|
}
|
|
6647
6670
|
function AddonLinkComponent_span_5_Template(rf, ctx) {
|
|
6648
6671
|
if (rf & 1) {
|
|
6649
6672
|
var _r6_1 = i0__namespace.ɵɵgetCurrentView();
|
|
6650
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
6673
|
+
i0__namespace.ɵɵelementStart(0, "span", 8);
|
|
6651
6674
|
i0__namespace.ɵɵlistener("click", function AddonLinkComponent_span_5_Template_span_click_0_listener() { i0__namespace.ɵɵrestoreView(_r6_1); var ctx_r5 = i0__namespace.ɵɵnextContext(); return ctx_r5.showAddon.emit(); });
|
|
6652
6675
|
i0__namespace.ɵɵtext(1, " En savoir plus ");
|
|
6653
6676
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -6655,14 +6678,15 @@
|
|
|
6655
6678
|
}
|
|
6656
6679
|
function AddonLinkComponent_div_6_Template(rf, ctx) {
|
|
6657
6680
|
if (rf & 1) {
|
|
6658
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
6659
|
-
i0__namespace.ɵɵelement(1, "img",
|
|
6681
|
+
i0__namespace.ɵɵelementStart(0, "div", 9);
|
|
6682
|
+
i0__namespace.ɵɵelement(1, "img", 10);
|
|
6660
6683
|
i0__namespace.ɵɵelementEnd();
|
|
6661
6684
|
}
|
|
6662
6685
|
if (rf & 2) {
|
|
6663
6686
|
var ctx_r4 = i0__namespace.ɵɵnextContext();
|
|
6664
6687
|
i0__namespace.ɵɵadvance(1);
|
|
6665
6688
|
i0__namespace.ɵɵpropertyInterpolate("src", ctx_r4.recipe.sponsorLogoUrl, i0__namespace.ɵɵsanitizeUrl);
|
|
6689
|
+
i0__namespace.ɵɵproperty("alt", ctx_r4.recipe.sponsorName + " logo");
|
|
6666
6690
|
}
|
|
6667
6691
|
}
|
|
6668
6692
|
var AddonLinkComponent = /** @class */ (function () {
|
|
@@ -6680,22 +6704,22 @@
|
|
|
6680
6704
|
AddonLinkComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: AddonLinkComponent, selectors: [["ng-miam-addon-link"]], inputs: { recipe: "recipe", hasStorytelling: "hasStorytelling" }, outputs: { showAddon: "showAddon" }, features: [i0__namespace.ɵɵNgOnChangesFeature], decls: 7, vars: 4, consts: function () {
|
|
6681
6705
|
var i18n_0;
|
|
6682
6706
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
6683
|
-
var
|
|
6684
|
-
i18n_0 =
|
|
6707
|
+
var MSG_EXTERNAL_346178670015862382$$LIB__COMPONENTS_ADDON_LINK_ADDON_LINK_COMPONENT_TS__1 = goog.getMsg("Cette recette vous est propos\u00E9e par notre partenaire");
|
|
6708
|
+
i18n_0 = MSG_EXTERNAL_346178670015862382$$LIB__COMPONENTS_ADDON_LINK_ADDON_LINK_COMPONENT_TS__1;
|
|
6685
6709
|
}
|
|
6686
6710
|
else {
|
|
6687
|
-
i18n_0 = $localize(templateObject_1$H || (templateObject_1$H = __makeTemplateObject([":\
|
|
6711
|
+
i18n_0 = $localize(templateObject_1$H || (templateObject_1$H = __makeTemplateObject([":\u241F592a6ddb645d9971d03862cb6b8b323a3d9a0be2\u241F346178670015862382:Cette recette vous est propos\u00E9e par notre partenaire"], [":\u241F592a6ddb645d9971d03862cb6b8b323a3d9a0be2\u241F346178670015862382:Cette recette vous est propos\u00E9e par notre partenaire"])));
|
|
6688
6712
|
}
|
|
6689
|
-
return [[1, "miam-addon-link"], [1, "miam-addon-link__info"], [4, "ngIf", "ngIfElse"], ["sponsorsedLink", ""], ["class", "miam-addon-link__link", 3, "click", 4, "ngIf"], ["class", "miam-addon-link__logo", 4, "ngIf"], i18n_0, [1, "miam-addon-link__link", 3, "click"], [1, "miam-addon-link__logo"], [3, "src"]];
|
|
6713
|
+
return [[1, "miam-addon-link"], [1, "miam-addon-link__info"], [4, "ngIf", "ngIfElse"], ["sponsorsedLink", ""], ["class", "miam-addon-link__link", 3, "click", 4, "ngIf"], ["class", "miam-addon-link__logo", 4, "ngIf"], i18n_0, [1, "miam-addon-link__sponsor-name"], [1, "miam-addon-link__link", 3, "click"], [1, "miam-addon-link__logo"], [3, "src", "alt"]];
|
|
6690
6714
|
}, template: function AddonLinkComponent_Template(rf, ctx) {
|
|
6691
6715
|
if (rf & 1) {
|
|
6692
6716
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
6693
6717
|
i0__namespace.ɵɵelementStart(1, "div", 1);
|
|
6694
6718
|
i0__namespace.ɵɵtemplate(2, AddonLinkComponent_span_2_Template, 2, 1, "span", 2);
|
|
6695
|
-
i0__namespace.ɵɵtemplate(3, AddonLinkComponent_ng_template_3_Template,
|
|
6719
|
+
i0__namespace.ɵɵtemplate(3, AddonLinkComponent_ng_template_3_Template, 5, 1, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
|
|
6696
6720
|
i0__namespace.ɵɵtemplate(5, AddonLinkComponent_span_5_Template, 2, 0, "span", 4);
|
|
6697
6721
|
i0__namespace.ɵɵelementEnd();
|
|
6698
|
-
i0__namespace.ɵɵtemplate(6, AddonLinkComponent_div_6_Template, 2,
|
|
6722
|
+
i0__namespace.ɵɵtemplate(6, AddonLinkComponent_div_6_Template, 2, 2, "div", 5);
|
|
6699
6723
|
i0__namespace.ɵɵelementEnd();
|
|
6700
6724
|
}
|
|
6701
6725
|
if (rf & 2) {
|
|
@@ -6707,7 +6731,7 @@
|
|
|
6707
6731
|
i0__namespace.ɵɵadvance(1);
|
|
6708
6732
|
i0__namespace.ɵɵproperty("ngIf", ctx.recipe == null ? null : ctx.recipe.sponsorLogoUrl);
|
|
6709
6733
|
}
|
|
6710
|
-
}, directives: [i2__namespace$1.NgIf], styles: [".miam-addon-link{flex-direction:row;padding:12px 16px;font-size:16px}.miam-addon-link,.miam-addon-link .miam-addon-link__info{display:flex;align-items:center;justify-content:space-between}.miam-addon-link .miam-addon-link__info{flex-direction:row;flex:1}@media (max-width:1023px){.miam-addon-link .miam-addon-link__info{flex-direction:column;align-items:flex-start}}.miam-addon-link .miam-addon-link__info .miam-addon-link__link{color:var(--m-color-primary);cursor:pointer;-webkit-tap-highlight-color:transparent;white-space:nowrap;margin-left:16px}@media (max-width:1023px){.miam-addon-link .miam-addon-link__info .miam-addon-link__link{margin-left:unset;margin-top:8px}}.miam-addon-link .miam-addon-link__logo{width:auto;height:48px;justify-content:flex-end;display:flex;order:2;align-items:center;padding-left:16px}.miam-addon-link .miam-addon-link__logo img{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}"], encapsulation: 2, changeDetection: 0 });
|
|
6734
|
+
}, directives: [i2__namespace$1.NgIf], styles: [".miam-addon-link{flex-direction:row;padding:12px 16px;font-size:16px}.miam-addon-link,.miam-addon-link .miam-addon-link__info{display:flex;align-items:center;justify-content:space-between}.miam-addon-link .miam-addon-link__info{flex-direction:row;flex:1}.miam-addon-link .miam-addon-link__info .miam-addon-link__sponsor-name{white-space:nowrap}@media (max-width:1023px){.miam-addon-link .miam-addon-link__info{flex-direction:column;align-items:flex-start}}.miam-addon-link .miam-addon-link__info .miam-addon-link__link{color:var(--m-color-primary);cursor:pointer;-webkit-tap-highlight-color:transparent;white-space:nowrap;margin-left:16px}@media (max-width:1023px){.miam-addon-link .miam-addon-link__info .miam-addon-link__link{margin-left:unset;margin-top:8px}}.miam-addon-link .miam-addon-link__logo{width:auto;height:48px;justify-content:flex-end;display:flex;order:2;align-items:center;padding-left:16px}.miam-addon-link .miam-addon-link__logo img{max-height:100%;max-width:100%;-o-object-fit:contain;object-fit:contain}"], encapsulation: 2, changeDetection: 0 });
|
|
6711
6735
|
(function () {
|
|
6712
6736
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(AddonLinkComponent, [{
|
|
6713
6737
|
type: i0.Component,
|
|
@@ -7202,6 +7226,55 @@
|
|
|
7202
7226
|
}] });
|
|
7203
7227
|
})();
|
|
7204
7228
|
|
|
7229
|
+
var LoadOnScrollDirective = /** @class */ (function () {
|
|
7230
|
+
function LoadOnScrollDirective(el) {
|
|
7231
|
+
this.el = el;
|
|
7232
|
+
this.marginRoot = '0px'; // https://developer.mozilla.org/en-US/docs/Web/API/Intersection_Observer_API#rootmargin
|
|
7233
|
+
this.threshold = 0; // 0 <= x < 1;
|
|
7234
|
+
this.isLoading = false;
|
|
7235
|
+
this.loadMore = new i0.EventEmitter();
|
|
7236
|
+
this.emitted = false;
|
|
7237
|
+
}
|
|
7238
|
+
LoadOnScrollDirective.prototype.ngOnInit = function () {
|
|
7239
|
+
this.intersectionObserver();
|
|
7240
|
+
};
|
|
7241
|
+
LoadOnScrollDirective.prototype.ngAfterViewInit = function () {
|
|
7242
|
+
this.observer.observe(this.el.nativeElement);
|
|
7243
|
+
};
|
|
7244
|
+
LoadOnScrollDirective.prototype.intersectionObserver = function () {
|
|
7245
|
+
var _this = this;
|
|
7246
|
+
var options = {
|
|
7247
|
+
root: null,
|
|
7248
|
+
rootMargin: this.marginRoot,
|
|
7249
|
+
threshold: this.threshold,
|
|
7250
|
+
};
|
|
7251
|
+
this.observer = new IntersectionObserver(function (entries) {
|
|
7252
|
+
if (entries[0].isIntersecting && !_this.isLoading) {
|
|
7253
|
+
_this.loadMore.emit();
|
|
7254
|
+
}
|
|
7255
|
+
}, options);
|
|
7256
|
+
};
|
|
7257
|
+
return LoadOnScrollDirective;
|
|
7258
|
+
}());
|
|
7259
|
+
LoadOnScrollDirective.ɵfac = function LoadOnScrollDirective_Factory(t) { return new (t || LoadOnScrollDirective)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
|
|
7260
|
+
LoadOnScrollDirective.ɵdir = i0__namespace.ɵɵdefineDirective({ type: LoadOnScrollDirective, selectors: [["", "ngMiamLoadOnScroll", ""]], inputs: { marginRoot: "marginRoot", threshold: "threshold", isLoading: "isLoading" }, outputs: { loadMore: "loadMore" } });
|
|
7261
|
+
(function () {
|
|
7262
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(LoadOnScrollDirective, [{
|
|
7263
|
+
type: i0.Directive,
|
|
7264
|
+
args: [{
|
|
7265
|
+
selector: '[ngMiamLoadOnScroll]'
|
|
7266
|
+
}]
|
|
7267
|
+
}], function () { return [{ type: i0__namespace.ElementRef }]; }, { marginRoot: [{
|
|
7268
|
+
type: i0.Input
|
|
7269
|
+
}], threshold: [{
|
|
7270
|
+
type: i0.Input
|
|
7271
|
+
}], isLoading: [{
|
|
7272
|
+
type: i0.Input
|
|
7273
|
+
}], loadMore: [{
|
|
7274
|
+
type: i0.Output
|
|
7275
|
+
}] });
|
|
7276
|
+
})();
|
|
7277
|
+
|
|
7205
7278
|
var _c0$s = ["counterInput"];
|
|
7206
7279
|
function CounterInputComponent_img_3_Template(rf, ctx) {
|
|
7207
7280
|
if (rf & 1) {
|
|
@@ -7414,7 +7487,7 @@
|
|
|
7414
7487
|
i0__namespace.ɵɵelementEnd();
|
|
7415
7488
|
}
|
|
7416
7489
|
}
|
|
7417
|
-
var _c4$
|
|
7490
|
+
var _c4$5 = function (a0, a1) { return { "image-container-mode": a0, "dragover-mode": a1 }; };
|
|
7418
7491
|
var DragDropInputComponent = /** @class */ (function () {
|
|
7419
7492
|
function DragDropInputComponent(cdr) {
|
|
7420
7493
|
this.cdr = cdr;
|
|
@@ -7542,7 +7615,7 @@
|
|
|
7542
7615
|
}
|
|
7543
7616
|
if (rf & 2) {
|
|
7544
7617
|
var _r1 = i0__namespace.ɵɵreference(3);
|
|
7545
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(6, _c4$
|
|
7618
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(6, _c4$5, ctx.imageUrl, ctx.isDragover && !ctx.imageUrl));
|
|
7546
7619
|
i0__namespace.ɵɵadvance(1);
|
|
7547
7620
|
i0__namespace.ɵɵproperty("ngIf", !ctx.photoMode && !ctx.bigImageWarning)("ngIfElse", _r1);
|
|
7548
7621
|
i0__namespace.ɵɵadvance(5);
|
|
@@ -7688,15 +7761,81 @@
|
|
|
7688
7761
|
}], function () { return [{ type: i1__namespace.HttpClient }]; }, null);
|
|
7689
7762
|
})();
|
|
7690
7763
|
|
|
7764
|
+
var BasketActionsService = /** @class */ (function () {
|
|
7765
|
+
function BasketActionsService(context, userService, posService, basketsService, recipesService) {
|
|
7766
|
+
this.context = context;
|
|
7767
|
+
this.userService = userService;
|
|
7768
|
+
this.posService = posService;
|
|
7769
|
+
this.basketsService = basketsService;
|
|
7770
|
+
this.recipesService = recipesService;
|
|
7771
|
+
this.shouldExecuteBasketAction = new rxjs.BehaviorSubject(undefined);
|
|
7772
|
+
this.subscriptions = new rxjs.Subscription();
|
|
7773
|
+
this.subscriptions.add(this.canExecuteStoredMethod().subscribe());
|
|
7774
|
+
}
|
|
7775
|
+
/**
|
|
7776
|
+
* Stores the method and its arguments if the user is not logged in or doesn't have a PoS Set
|
|
7777
|
+
*/
|
|
7778
|
+
BasketActionsService.prototype.storeMethodIfCallbackNeeded = function (method) {
|
|
7779
|
+
var _this = this;
|
|
7780
|
+
return this.isLoggedAndHasPos().pipe(operators.take(1), operators.map(function (res) {
|
|
7781
|
+
if ((!res[0] || !res[1])) {
|
|
7782
|
+
localStorage.setItem('_miam/storeCallbackMethod', JSON.stringify(method));
|
|
7783
|
+
}
|
|
7784
|
+
return _this.context.hookCallback(res[0], res[1]);
|
|
7785
|
+
}));
|
|
7786
|
+
};
|
|
7787
|
+
/**
|
|
7788
|
+
* Executes a stored method if the user is logged in and has a PoS.
|
|
7789
|
+
*/
|
|
7790
|
+
BasketActionsService.prototype.canExecuteStoredMethod = function () {
|
|
7791
|
+
var _this = this;
|
|
7792
|
+
return this.basketsService.waitForBasketEntries.pipe(operators.switchMap(function () { return _this.isLoggedAndHasPos().pipe(operators.skipWhile(function (res) { return !res[0] || !res[1]; }), operators.take(1), operators.map(function () { return _this.getStoredMethod(); })); }));
|
|
7793
|
+
};
|
|
7794
|
+
/**
|
|
7795
|
+
* Check if the user is logged in and has a point of sale.
|
|
7796
|
+
*/
|
|
7797
|
+
BasketActionsService.prototype.isLoggedAndHasPos = function () {
|
|
7798
|
+
return rxjs.combineLatest([
|
|
7799
|
+
this.userService.isLogged$,
|
|
7800
|
+
this.posService.posWasInitialized()
|
|
7801
|
+
]);
|
|
7802
|
+
};
|
|
7803
|
+
/**
|
|
7804
|
+
* Executes the stored method by retrieving the stored data from local storage,
|
|
7805
|
+
* parsing it, and iterating over each request. Depending on the method name,
|
|
7806
|
+
* either adds recipes to the basket or ingredients to the basket.
|
|
7807
|
+
*/
|
|
7808
|
+
BasketActionsService.prototype.getStoredMethod = function () {
|
|
7809
|
+
if (localStorage.getItem('_miam/storeCallbackMethod')) {
|
|
7810
|
+
var parsedStoredData = JSON.parse(localStorage.getItem('_miam/storeCallbackMethod'));
|
|
7811
|
+
this.shouldExecuteBasketAction.next(parsedStoredData);
|
|
7812
|
+
this.recipesService.display(parsedStoredData.arguments.recipeId, { previewAllowed: true, previewMode: false }, { originPath: '', props: {} });
|
|
7813
|
+
localStorage.removeItem('_miam/storeCallbackMethod');
|
|
7814
|
+
}
|
|
7815
|
+
};
|
|
7816
|
+
return BasketActionsService;
|
|
7817
|
+
}());
|
|
7818
|
+
BasketActionsService.ɵfac = function BasketActionsService_Factory(t) { return new (t || BasketActionsService)(i0__namespace.ɵɵinject(ContextService), i0__namespace.ɵɵinject(UserService), i0__namespace.ɵɵinject(PointOfSalesService), i0__namespace.ɵɵinject(BasketsService), i0__namespace.ɵɵinject(RecipesService)); };
|
|
7819
|
+
BasketActionsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: BasketActionsService, factory: BasketActionsService.ɵfac, providedIn: 'root' });
|
|
7820
|
+
(function () {
|
|
7821
|
+
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BasketActionsService, [{
|
|
7822
|
+
type: i0.Injectable,
|
|
7823
|
+
args: [{
|
|
7824
|
+
providedIn: 'root'
|
|
7825
|
+
}]
|
|
7826
|
+
}], function () { return [{ type: ContextService }, { type: UserService }, { type: PointOfSalesService }, { type: BasketsService }, { type: RecipesService }]; }, null);
|
|
7827
|
+
})();
|
|
7828
|
+
|
|
7691
7829
|
var RecipeDetailsService = /** @class */ (function () {
|
|
7692
|
-
function RecipeDetailsService(basketsService, recipeService, analyticsService,
|
|
7830
|
+
function RecipeDetailsService(basketsService, recipeService, analyticsService, ignoredBasketsService, basketActionsService, contextService, posService, itemsService) {
|
|
7693
7831
|
this.basketsService = basketsService;
|
|
7694
7832
|
this.recipeService = recipeService;
|
|
7695
7833
|
this.analyticsService = analyticsService;
|
|
7696
|
-
this.posService = posService;
|
|
7697
|
-
this.userService = userService;
|
|
7698
7834
|
this.ignoredBasketsService = ignoredBasketsService;
|
|
7835
|
+
this.basketActionsService = basketActionsService;
|
|
7699
7836
|
this.contextService = contextService;
|
|
7837
|
+
this.posService = posService;
|
|
7838
|
+
this.itemsService = itemsService;
|
|
7700
7839
|
this.productsByCategory = {
|
|
7701
7840
|
toPickProducts: [],
|
|
7702
7841
|
oftenIgnoredProducts: [],
|
|
@@ -7704,6 +7843,8 @@
|
|
|
7704
7843
|
};
|
|
7705
7844
|
this.products = [];
|
|
7706
7845
|
this.allIngredientsToBasketLoading$ = new rxjs.BehaviorSubject(false);
|
|
7846
|
+
this.ingredientToBasketLoading$ = new rxjs.BehaviorSubject(false);
|
|
7847
|
+
this.updateIngredientFromBasketLoading$ = new rxjs.BehaviorSubject(false);
|
|
7707
7848
|
this.productsLoading$ = new rxjs.BehaviorSubject(false);
|
|
7708
7849
|
this.recipeLoading$ = new rxjs.BehaviorSubject(false);
|
|
7709
7850
|
this.basketEntryToReplace$ = new rxjs.BehaviorSubject(null);
|
|
@@ -7712,9 +7853,12 @@
|
|
|
7712
7853
|
this.onlyShowPreparation = false;
|
|
7713
7854
|
this.productsByCategory$ = new rxjs.BehaviorSubject(this.productsByCategory);
|
|
7714
7855
|
this.products$ = new rxjs.BehaviorSubject(this.products);
|
|
7856
|
+
this.recipePrice = { remaining: 0, inBasket: 0 };
|
|
7857
|
+
this.subscriptions = new rxjs.Subscription();
|
|
7715
7858
|
this.initDefaultState();
|
|
7716
7859
|
this.listenBasketPreview();
|
|
7717
7860
|
this.resetOnHide();
|
|
7861
|
+
this.executeActionFromStorage();
|
|
7718
7862
|
}
|
|
7719
7863
|
Object.defineProperty(RecipeDetailsService.prototype, "remainingBasketEntries", {
|
|
7720
7864
|
get: function () {
|
|
@@ -7768,6 +7912,13 @@
|
|
|
7768
7912
|
enumerable: false,
|
|
7769
7913
|
configurable: true
|
|
7770
7914
|
});
|
|
7915
|
+
Object.defineProperty(RecipeDetailsService.prototype, "ingredientToBasketLoading", {
|
|
7916
|
+
set: function (isLoading) {
|
|
7917
|
+
this.ingredientToBasketLoading$.next(isLoading);
|
|
7918
|
+
},
|
|
7919
|
+
enumerable: false,
|
|
7920
|
+
configurable: true
|
|
7921
|
+
});
|
|
7771
7922
|
Object.defineProperty(RecipeDetailsService.prototype, "allIngredientsToBasketLoading", {
|
|
7772
7923
|
set: function (isLoading) {
|
|
7773
7924
|
this.allIngredientsToBasketLoading$.next(isLoading);
|
|
@@ -7775,6 +7926,13 @@
|
|
|
7775
7926
|
enumerable: false,
|
|
7776
7927
|
configurable: true
|
|
7777
7928
|
});
|
|
7929
|
+
Object.defineProperty(RecipeDetailsService.prototype, "updateIngredientFromBasketLoading", {
|
|
7930
|
+
set: function (isLoading) {
|
|
7931
|
+
this.updateIngredientFromBasketLoading$.next(isLoading);
|
|
7932
|
+
},
|
|
7933
|
+
enumerable: false,
|
|
7934
|
+
configurable: true
|
|
7935
|
+
});
|
|
7778
7936
|
RecipeDetailsService.prototype.initDefaultState = function () {
|
|
7779
7937
|
this.productsByCategory = {
|
|
7780
7938
|
toPickProducts: [],
|
|
@@ -7782,23 +7940,43 @@
|
|
|
7782
7940
|
unavailableProducts: []
|
|
7783
7941
|
};
|
|
7784
7942
|
this.products = [];
|
|
7943
|
+
this.recipePrice = {
|
|
7944
|
+
remaining: 0,
|
|
7945
|
+
inBasket: 0
|
|
7946
|
+
};
|
|
7785
7947
|
this.totalProducts = 0;
|
|
7786
7948
|
this.allIngredientsToBasketLoading$.next(false);
|
|
7949
|
+
this.ingredientToBasketLoading$.next(false);
|
|
7950
|
+
this.updateIngredientFromBasketLoading$.next(false);
|
|
7787
7951
|
this.productsLoading$.next(false);
|
|
7788
7952
|
this.recipeLoading$.next(false);
|
|
7789
7953
|
this.basketEntryToReplace$.next(null);
|
|
7790
7954
|
this.productsByCategory$.next(this.productsByCategory);
|
|
7791
7955
|
this.products$.next(this.products);
|
|
7792
7956
|
};
|
|
7957
|
+
RecipeDetailsService.prototype.executeActionFromStorage = function () {
|
|
7958
|
+
var _this = this;
|
|
7959
|
+
this.productsByCategory$.pipe(operators.skipWhile(function (products) { return products.toPickProducts.length === 0; }), operators.take(1), operators.switchMap(function () { return _this.basketActionsService.shouldExecuteBasketAction.pipe(operators.skipWhile(function (method) { return !method; })); })).subscribe(function (parsedMethod) {
|
|
7960
|
+
if (parsedMethod.method === 'addRecipeToBasket') {
|
|
7961
|
+
_this.recipe.modifiedGuests = parsedMethod.arguments.guests || _this.recipe.modifiedGuests;
|
|
7962
|
+
_this.addAllIngredientsToBasket(parsedMethod.arguments.eventTrace);
|
|
7963
|
+
}
|
|
7964
|
+
});
|
|
7965
|
+
};
|
|
7793
7966
|
RecipeDetailsService.prototype.resetOnHide = function () {
|
|
7794
7967
|
var _this = this;
|
|
7795
7968
|
var previousRecipe = this.recipe;
|
|
7796
|
-
this.recipeService.displayedRecipe$.subscribe(function (toDisplay) {
|
|
7969
|
+
this.subscriptions.add(this.recipeService.displayedRecipe$.subscribe(function (toDisplay) {
|
|
7797
7970
|
if ((toDisplay === null || toDisplay === void 0 ? void 0 : toDisplay.recipe) && toDisplay.recipe.id !== (previousRecipe === null || previousRecipe === void 0 ? void 0 : previousRecipe.id)) {
|
|
7798
7971
|
previousRecipe = toDisplay.recipe;
|
|
7799
|
-
_this.
|
|
7972
|
+
_this.posService.posWasInitialized().pipe(operators.take(1)).subscribe(function (hasPos) {
|
|
7973
|
+
var isHookOk = _this.contextService.hookCallback(true, hasPos);
|
|
7974
|
+
if (isHookOk) {
|
|
7975
|
+
_this.initDefaultState();
|
|
7976
|
+
}
|
|
7977
|
+
});
|
|
7800
7978
|
}
|
|
7801
|
-
});
|
|
7979
|
+
}));
|
|
7802
7980
|
};
|
|
7803
7981
|
/**
|
|
7804
7982
|
* Sets the products by category.
|
|
@@ -7812,32 +7990,25 @@
|
|
|
7812
7990
|
*/
|
|
7813
7991
|
RecipeDetailsService.prototype.setProductsByCategory = function () {
|
|
7814
7992
|
var _this = this;
|
|
7815
|
-
this.
|
|
7816
|
-
|
|
7817
|
-
|
|
7818
|
-
|
|
7819
|
-
|
|
7993
|
+
this.subscriptions.add(this.fetchProductPrices().subscribe(function (prices) {
|
|
7994
|
+
_this.totalProducts = _this.products.length;
|
|
7995
|
+
_this.productsByCategory = {
|
|
7996
|
+
toPickProducts: [],
|
|
7997
|
+
oftenIgnoredProducts: [],
|
|
7998
|
+
unavailableProducts: []
|
|
7999
|
+
};
|
|
8000
|
+
_this.recipePrice = {
|
|
8001
|
+
remaining: 0,
|
|
8002
|
+
inBasket: 0
|
|
8003
|
+
};
|
|
8004
|
+
_this.categorizeProducts(prices);
|
|
8005
|
+
}));
|
|
8006
|
+
};
|
|
8007
|
+
RecipeDetailsService.prototype.calculateProductPrice = function (product, price) {
|
|
8008
|
+
product.price = {
|
|
8009
|
+
unit: +price.toFixed(2),
|
|
8010
|
+
total: +(price * product.basketEntry.quantity).toFixed(2)
|
|
7820
8011
|
};
|
|
7821
|
-
// Iterate over each product in the entriesWithIngredients array
|
|
7822
|
-
this.products.forEach(function (product) {
|
|
7823
|
-
var basketEntry = product.basketEntry;
|
|
7824
|
-
var id = basketEntry.id, selectedItem = basketEntry.selectedItem, status = basketEntry.status;
|
|
7825
|
-
// Check if the product is ignored
|
|
7826
|
-
_this.isIngredientIgnored(product);
|
|
7827
|
-
// Check if the product is unavailable
|
|
7828
|
-
if (id === '-1' && !selectedItem) {
|
|
7829
|
-
_this.productsByCategory.unavailableProducts.push(product);
|
|
7830
|
-
}
|
|
7831
|
-
// Check if the product is often ignored based on groceriesEntryStatus
|
|
7832
|
-
else if (status === 'often_deleted') {
|
|
7833
|
-
_this.productsByCategory.oftenIgnoredProducts.push(product);
|
|
7834
|
-
}
|
|
7835
|
-
// Add the product to the toPickProducts category
|
|
7836
|
-
else {
|
|
7837
|
-
_this.productsByCategory.toPickProducts.push(product);
|
|
7838
|
-
}
|
|
7839
|
-
});
|
|
7840
|
-
this.productsByCategory$.next(this.productsByCategory);
|
|
7841
8012
|
};
|
|
7842
8013
|
RecipeDetailsService.prototype.isProductsByCategorySet = function () {
|
|
7843
8014
|
return this.productsByCategory.toPickProducts.length > 0 ||
|
|
@@ -7849,15 +8020,24 @@
|
|
|
7849
8020
|
*
|
|
7850
8021
|
* @return An observable that emits the products in the basket.
|
|
7851
8022
|
*/
|
|
7852
|
-
RecipeDetailsService.prototype.getIngredientsBasketEntries = function () {
|
|
8023
|
+
RecipeDetailsService.prototype.getIngredientsBasketEntries = function (fromInit) {
|
|
7853
8024
|
var _this = this;
|
|
8025
|
+
if (fromInit === void 0) { fromInit = false; }
|
|
7854
8026
|
if (!this.recipe) {
|
|
7855
8027
|
return rxjs.of([]);
|
|
7856
8028
|
}
|
|
7857
|
-
|
|
8029
|
+
if (!fromInit) {
|
|
8030
|
+
this.ingredientToBasketLoading = true;
|
|
8031
|
+
}
|
|
8032
|
+
var basketEntries$ = this.recipe.ingredients.map(function (ingredient) { return _this.basketsService.basketEntryFromIngredient(ingredient.id, _this.recipe.modifiedGuests, !fromInit).pipe(operators.map(function (basketEntry) { return ({ ingredient: ingredient, basketEntry: basketEntry }); })); });
|
|
7858
8033
|
return rxjs.forkJoin(basketEntries$).pipe(operators.tap(function (basketEntriesResult) {
|
|
7859
|
-
|
|
7860
|
-
|
|
8034
|
+
if (fromInit) {
|
|
8035
|
+
_this.products = basketEntriesResult;
|
|
8036
|
+
_this.setProductsByCategory();
|
|
8037
|
+
}
|
|
8038
|
+
else {
|
|
8039
|
+
_this.updatePriceOnGuestChange(basketEntriesResult);
|
|
8040
|
+
}
|
|
7861
8041
|
}), operators.switchMap(function () { return rxjs.of(_this.products); }));
|
|
7862
8042
|
};
|
|
7863
8043
|
RecipeDetailsService.prototype.ingredientRemoved = function (ingredient, eventTrace) {
|
|
@@ -7877,8 +8057,18 @@
|
|
|
7877
8057
|
};
|
|
7878
8058
|
RecipeDetailsService.prototype.addAllIngredientsToBasket = function (eventTrace) {
|
|
7879
8059
|
var _this = this;
|
|
7880
|
-
this.
|
|
7881
|
-
|
|
8060
|
+
this.subscriptions.add(this.canAddProductToBasket({
|
|
8061
|
+
method: 'addRecipeToBasket',
|
|
8062
|
+
arguments: {
|
|
8063
|
+
recipeId: this.recipe.id, guests: this.recipe.modifiedGuests,
|
|
8064
|
+
eventTrace: eventTrace
|
|
8065
|
+
}
|
|
8066
|
+
}, eventTrace).subscribe(function (passed) {
|
|
8067
|
+
if (passed) {
|
|
8068
|
+
_this.allIngredientsToBasketLoading = true;
|
|
8069
|
+
_this.basketsService.addIngredientsToBasket(_this.recipe.id, _this.remainingProducts(), eventTrace);
|
|
8070
|
+
}
|
|
8071
|
+
}));
|
|
7882
8072
|
};
|
|
7883
8073
|
// If the recipe is already in basket, update the number of guests (= append recipe to list again)
|
|
7884
8074
|
RecipeDetailsService.prototype.updateGuests = function (eventTrace) {
|
|
@@ -7893,16 +8083,6 @@
|
|
|
7893
8083
|
});
|
|
7894
8084
|
this.recipeService.displayedRecipeChanged$.next();
|
|
7895
8085
|
};
|
|
7896
|
-
RecipeDetailsService.prototype.remainingProducts = function () {
|
|
7897
|
-
var _this = this;
|
|
7898
|
-
return this.remainingBasketEntries.reduce(function (result, be) {
|
|
7899
|
-
var p = _this.products.find(function (product) { return product.basketEntry.name === be.name; });
|
|
7900
|
-
if (p) {
|
|
7901
|
-
result.push({ ingredientId: p.ingredient.id, entry: p.basketEntry });
|
|
7902
|
-
}
|
|
7903
|
-
return result;
|
|
7904
|
-
}, []);
|
|
7905
|
-
};
|
|
7906
8086
|
RecipeDetailsService.prototype.replaceBasketEntry = function (basketEntry, ignoreSelected) {
|
|
7907
8087
|
this.basketEntryToReplace = {
|
|
7908
8088
|
ingredient: this.products[this.products.findIndex(function (p) { return p.basketEntry.name === basketEntry.name; })].ingredient,
|
|
@@ -7915,18 +8095,60 @@
|
|
|
7915
8095
|
* @param eventTrace needed to add recipe to basket
|
|
7916
8096
|
* @returns [islogged: boolean, posWasInitialized: boolean, recipeIsInBasket: boolean]
|
|
7917
8097
|
*/
|
|
7918
|
-
RecipeDetailsService.prototype.canAddProductToBasket = function (eventTrace) {
|
|
8098
|
+
RecipeDetailsService.prototype.canAddProductToBasket = function (method, eventTrace) {
|
|
7919
8099
|
var _this = this;
|
|
7920
|
-
return
|
|
7921
|
-
|
|
7922
|
-
this.posService.posWasInitialized().pipe(operators.take(1)),
|
|
7923
|
-
this.basketsService.recipeIsInBasket(this.recipe.id).pipe(operators.take(1))
|
|
7924
|
-
]).pipe(operators.tap(function (res) {
|
|
7925
|
-
var isHookOk = _this.contextService.hookCallback(res[0], res[1]);
|
|
7926
|
-
if (isHookOk && !res[2]) {
|
|
8100
|
+
return this.basketActionsService.storeMethodIfCallbackNeeded(method).pipe(operators.switchMap(function (canAdd) { return _this.basketsService.recipeIsInBasket(_this.recipe.id).pipe(operators.take(1), operators.map(function (isInBasket) {
|
|
8101
|
+
if (canAdd && !isInBasket) {
|
|
7927
8102
|
_this.basketsService.addRecipesToBasket([_this.recipe.id], _this.recipe.modifiedGuests, eventTrace, false);
|
|
7928
8103
|
}
|
|
7929
|
-
|
|
8104
|
+
return canAdd;
|
|
8105
|
+
})); }));
|
|
8106
|
+
};
|
|
8107
|
+
RecipeDetailsService.prototype.updateRecipePrice = function (product, ignore) {
|
|
8108
|
+
if (ignore === void 0) { ignore = false; }
|
|
8109
|
+
if (ignore) {
|
|
8110
|
+
this.recipePrice.remaining = this.recipePrice.remaining - product.price.total;
|
|
8111
|
+
}
|
|
8112
|
+
else {
|
|
8113
|
+
this.recipePrice = {
|
|
8114
|
+
remaining: this.recipePrice.remaining + (product.basketEntry.status === 'initial' && product.price.total),
|
|
8115
|
+
inBasket: this.recipePrice.inBasket + (product.basketEntry.status === 'active' && product.price.total)
|
|
8116
|
+
};
|
|
8117
|
+
}
|
|
8118
|
+
};
|
|
8119
|
+
RecipeDetailsService.prototype.unsubscribe = function () {
|
|
8120
|
+
this.subscriptions.unsubscribe();
|
|
8121
|
+
};
|
|
8122
|
+
RecipeDetailsService.prototype.remainingProducts = function () {
|
|
8123
|
+
var _this = this;
|
|
8124
|
+
return this.remainingBasketEntries.reduce(function (result, be) {
|
|
8125
|
+
var p = _this.products.find(function (product) { return product.basketEntry.name === be.name; });
|
|
8126
|
+
if (p) {
|
|
8127
|
+
result.push({ ingredientId: p.ingredient.id, entry: p.basketEntry });
|
|
8128
|
+
}
|
|
8129
|
+
return result;
|
|
8130
|
+
}, []);
|
|
8131
|
+
};
|
|
8132
|
+
RecipeDetailsService.prototype.updatePriceOnGuestChange = function (basketEntriesResult) {
|
|
8133
|
+
var _this = this;
|
|
8134
|
+
this.recipePrice = {
|
|
8135
|
+
remaining: 0,
|
|
8136
|
+
inBasket: 0
|
|
8137
|
+
};
|
|
8138
|
+
basketEntriesResult.forEach(function (product, index) {
|
|
8139
|
+
_this.products[index].basketEntry.quantity = product.basketEntry.quantity;
|
|
8140
|
+
_this.calculateProductPrice(_this.products[index], _this.products[index].price.unit);
|
|
8141
|
+
if (_this.products[index].basketEntry.status === 'initial' || _this.products[index].basketEntry.status === 'active') {
|
|
8142
|
+
_this.updateRecipePrice(_this.products[index]);
|
|
8143
|
+
}
|
|
8144
|
+
});
|
|
8145
|
+
// check if the recipe is in the basket, if not, stop the loading, if yes, loading is stopped on the basketPreview listener
|
|
8146
|
+
this.basketsService.recipeIsInBasket(this.recipe.id).pipe(operators.take(1)).subscribe(function (inBasket) {
|
|
8147
|
+
if (!inBasket) {
|
|
8148
|
+
_this.updateIngredientFromBasketLoading = false;
|
|
8149
|
+
_this.ingredientToBasketLoading = false;
|
|
8150
|
+
}
|
|
8151
|
+
});
|
|
7930
8152
|
};
|
|
7931
8153
|
RecipeDetailsService.prototype.basketEntryForIngredient = function (ingredient) {
|
|
7932
8154
|
return this.products.find(function (p) { return p.ingredient.id === ingredient.id; }).basketEntry;
|
|
@@ -7936,11 +8158,11 @@
|
|
|
7936
8158
|
*/
|
|
7937
8159
|
RecipeDetailsService.prototype.listenBasketPreview = function () {
|
|
7938
8160
|
var _this = this;
|
|
7939
|
-
this.basketsService._basketPreview$.subscribe(function (basketPreviewLines) {
|
|
7940
|
-
var _a;
|
|
8161
|
+
this.subscriptions.add(this.basketsService._basketPreview$.subscribe(function (basketPreviewLines) {
|
|
8162
|
+
var _a, _b;
|
|
7941
8163
|
if (basketPreviewLines) {
|
|
7942
8164
|
var entriesForRecipe_1 = basketPreviewLines.find(function (basketPreviewLine) { var _a; return basketPreviewLine.id === ((_a = _this.recipe) === null || _a === void 0 ? void 0 : _a.id); });
|
|
7943
|
-
if ((_a = entriesForRecipe_1 === null || entriesForRecipe_1 === void 0 ? void 0 : entriesForRecipe_1.entries) === null || _a === void 0 ? void 0 : _a.all) {
|
|
8165
|
+
if (((_b = (_a = entriesForRecipe_1 === null || entriesForRecipe_1 === void 0 ? void 0 : entriesForRecipe_1.entries) === null || _a === void 0 ? void 0 : _a.all) === null || _b === void 0 ? void 0 : _b.length) > 0) {
|
|
7944
8166
|
_this.products.forEach(function (product) {
|
|
7945
8167
|
var _a;
|
|
7946
8168
|
product.basketEntry = (_a = entriesForRecipe_1.entries.all.find(function (basketEntry) { return basketEntry.name === product.basketEntry.name; })) !== null && _a !== void 0 ? _a : product.basketEntry;
|
|
@@ -7948,16 +8170,62 @@
|
|
|
7948
8170
|
_this.setProductsByCategory();
|
|
7949
8171
|
}
|
|
7950
8172
|
}
|
|
7951
|
-
});
|
|
8173
|
+
}));
|
|
7952
8174
|
};
|
|
7953
8175
|
RecipeDetailsService.prototype.isIngredientIgnored = function (product) {
|
|
7954
8176
|
if (this.ignoredBasketsService.isIngredientIgnored(product.ingredient.id)) {
|
|
7955
8177
|
product.basketEntry.status = 'ignored';
|
|
7956
8178
|
}
|
|
7957
8179
|
};
|
|
8180
|
+
RecipeDetailsService.prototype.fetchProductPrices = function () {
|
|
8181
|
+
var _this = this;
|
|
8182
|
+
return rxjs.forkJoin(this.products.map(function (product) { return product.basketEntry.selectedItem
|
|
8183
|
+
? _this.itemsService.getPriceForItem(product.basketEntry.selectedItem.id)
|
|
8184
|
+
: rxjs.of({ price: '0' }); }));
|
|
8185
|
+
};
|
|
8186
|
+
RecipeDetailsService.prototype.categorizeProducts = function (prices) {
|
|
8187
|
+
var _this = this;
|
|
8188
|
+
// Iterate over each product in the entriesWithIngredients array
|
|
8189
|
+
this.products.forEach(function (product, index) {
|
|
8190
|
+
var basketEntry = product.basketEntry;
|
|
8191
|
+
var id = basketEntry.id, selectedItem = basketEntry.selectedItem, status = basketEntry.status;
|
|
8192
|
+
// Check if the product is ignored
|
|
8193
|
+
_this.isIngredientIgnored(product);
|
|
8194
|
+
_this.calculateProductPrice(product, +prices[index].price);
|
|
8195
|
+
_this.correctProductState(product);
|
|
8196
|
+
// Check if the product is unavailable
|
|
8197
|
+
if (id === '-1' && !selectedItem) {
|
|
8198
|
+
_this.productsByCategory.unavailableProducts.push(product);
|
|
8199
|
+
}
|
|
8200
|
+
// Check if the product is often ignored based on groceriesEntryStatus
|
|
8201
|
+
else if (status === 'often_deleted') {
|
|
8202
|
+
_this.productsByCategory.oftenIgnoredProducts.push(product);
|
|
8203
|
+
}
|
|
8204
|
+
// Add the product to the toPickProducts category
|
|
8205
|
+
else {
|
|
8206
|
+
_this.productsByCategory.toPickProducts.push(product);
|
|
8207
|
+
_this.updateRecipePrice(product);
|
|
8208
|
+
}
|
|
8209
|
+
});
|
|
8210
|
+
this.updateIngredientFromBasketLoading = false;
|
|
8211
|
+
this.ingredientToBasketLoading = false;
|
|
8212
|
+
this.productsByCategory$.next(this.productsByCategory);
|
|
8213
|
+
};
|
|
8214
|
+
RecipeDetailsService.prototype.correctProductState = function (product) {
|
|
8215
|
+
if (!['often_deleted', 'deleted', 'ignored'].includes(product.basketEntry.status)) {
|
|
8216
|
+
var _c = product.basketEntry, id = _c.id, selectedItem = _c.selectedItem, recipesIds = _c.recipesIds;
|
|
8217
|
+
if (id === '-1') {
|
|
8218
|
+
product.basketEntry.status = selectedItem ? 'initial' : 'unavailable';
|
|
8219
|
+
}
|
|
8220
|
+
else {
|
|
8221
|
+
var isRecipeActive = recipesIds.includes(+this.recipe.id);
|
|
8222
|
+
product.basketEntry.status = isRecipeActive ? 'active' : 'initial';
|
|
8223
|
+
}
|
|
8224
|
+
}
|
|
8225
|
+
};
|
|
7958
8226
|
return RecipeDetailsService;
|
|
7959
8227
|
}());
|
|
7960
|
-
RecipeDetailsService.ɵfac = function RecipeDetailsService_Factory(t) { return new (t || RecipeDetailsService)(i0__namespace.ɵɵinject(BasketsService), i0__namespace.ɵɵinject(RecipesService), i0__namespace.ɵɵinject(AnalyticsService), i0__namespace.ɵɵinject(
|
|
8228
|
+
RecipeDetailsService.ɵfac = function RecipeDetailsService_Factory(t) { return new (t || RecipeDetailsService)(i0__namespace.ɵɵinject(BasketsService), i0__namespace.ɵɵinject(RecipesService), i0__namespace.ɵɵinject(AnalyticsService), i0__namespace.ɵɵinject(IgnoredIngredientsService), i0__namespace.ɵɵinject(BasketActionsService), i0__namespace.ɵɵinject(ContextService), i0__namespace.ɵɵinject(PointOfSalesService), i0__namespace.ɵɵinject(ItemsService)); };
|
|
7961
8229
|
RecipeDetailsService.ɵprov = i0__namespace.ɵɵdefineInjectable({ token: RecipeDetailsService, factory: RecipeDetailsService.ɵfac, providedIn: 'root' });
|
|
7962
8230
|
(function () {
|
|
7963
8231
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeDetailsService, [{
|
|
@@ -7965,7 +8233,7 @@
|
|
|
7965
8233
|
args: [{
|
|
7966
8234
|
providedIn: 'root'
|
|
7967
8235
|
}]
|
|
7968
|
-
}], function () { return [{ type: BasketsService }, { type: RecipesService }, { type: AnalyticsService }, { type:
|
|
8236
|
+
}], function () { return [{ type: BasketsService }, { type: RecipesService }, { type: AnalyticsService }, { type: IgnoredIngredientsService }, { type: BasketActionsService }, { type: ContextService }, { type: PointOfSalesService }, { type: ItemsService }]; }, null);
|
|
7969
8237
|
})();
|
|
7970
8238
|
|
|
7971
8239
|
var ScrollingService = /** @class */ (function () {
|
|
@@ -8506,7 +8774,7 @@
|
|
|
8506
8774
|
i0__namespace.ɵɵproperty("ngIf", ctx_r3.confirmButtonIsLoading);
|
|
8507
8775
|
}
|
|
8508
8776
|
}
|
|
8509
|
-
var _c4$
|
|
8777
|
+
var _c4$4 = function (a0, a1) { return { "with-header": a0, "without-header": a1 }; };
|
|
8510
8778
|
function ModalComponent_ng_container_0_Template(rf, ctx) {
|
|
8511
8779
|
if (rf & 1) {
|
|
8512
8780
|
var _r14_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -8540,7 +8808,7 @@
|
|
|
8540
8808
|
i0__namespace.ɵɵadvance(1);
|
|
8541
8809
|
i0__namespace.ɵɵproperty("ngClass", ctx_r0.modalStyle);
|
|
8542
8810
|
i0__namespace.ɵɵadvance(2);
|
|
8543
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(5, _c4$
|
|
8811
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(5, _c4$4, !ctx_r0.noHeaderMode, ctx_r0.noHeaderMode));
|
|
8544
8812
|
i0__namespace.ɵɵadvance(3);
|
|
8545
8813
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.title);
|
|
8546
8814
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -8549,9 +8817,10 @@
|
|
|
8549
8817
|
i0__namespace.ɵɵproperty("ngIf", ctx_r0.cancelButtonText || ctx_r0.confirmButtonText);
|
|
8550
8818
|
}
|
|
8551
8819
|
}
|
|
8552
|
-
var _c5
|
|
8820
|
+
var _c5 = ["*"];
|
|
8553
8821
|
var ModalComponent = /** @class */ (function () {
|
|
8554
|
-
function ModalComponent() {
|
|
8822
|
+
function ModalComponent(contextService) {
|
|
8823
|
+
this.contextService = contextService;
|
|
8555
8824
|
this.modalStyle = 'center';
|
|
8556
8825
|
this.ctaColor = 'primary';
|
|
8557
8826
|
this.close = new i0.EventEmitter();
|
|
@@ -8563,40 +8832,29 @@
|
|
|
8563
8832
|
this.pagePosition = { x: 0, y: 0 };
|
|
8564
8833
|
this.currentPath = '';
|
|
8565
8834
|
}
|
|
8835
|
+
Object.defineProperty(ModalComponent.prototype, "display", {
|
|
8836
|
+
get: function () {
|
|
8837
|
+
return this._display;
|
|
8838
|
+
},
|
|
8839
|
+
set: function (isDisplayed) {
|
|
8840
|
+
this._display = isDisplayed;
|
|
8841
|
+
var defaultScrollElement = this.contextService.defaultScrollElementGetter();
|
|
8842
|
+
if (isDisplayed) {
|
|
8843
|
+
defaultScrollElement === null || defaultScrollElement === void 0 ? void 0 : defaultScrollElement.classList.add('miam-no-scroll');
|
|
8844
|
+
}
|
|
8845
|
+
else {
|
|
8846
|
+
defaultScrollElement === null || defaultScrollElement === void 0 ? void 0 : defaultScrollElement.classList.remove('miam-no-scroll');
|
|
8847
|
+
}
|
|
8848
|
+
},
|
|
8849
|
+
enumerable: false,
|
|
8850
|
+
configurable: true
|
|
8851
|
+
});
|
|
8566
8852
|
ModalComponent.prototype.ngOnInit = function () {
|
|
8567
8853
|
this.observeNavigation();
|
|
8568
8854
|
};
|
|
8569
8855
|
ModalComponent.prototype.ngOnDestroy = function () {
|
|
8570
8856
|
this.mutationObserver.disconnect();
|
|
8571
8857
|
};
|
|
8572
|
-
ModalComponent.prototype.onScroll = function (event) {
|
|
8573
|
-
if (event.ctrlKey) {
|
|
8574
|
-
return;
|
|
8575
|
-
}
|
|
8576
|
-
if (this.display) {
|
|
8577
|
-
event.preventDefault();
|
|
8578
|
-
this.scrollFirstScrollableElement(event.target, event.deltaX, event.deltaY);
|
|
8579
|
-
}
|
|
8580
|
-
};
|
|
8581
|
-
ModalComponent.prototype.onTouchStart = function (event) {
|
|
8582
|
-
if (this.display) {
|
|
8583
|
-
this.setPagePosition(event);
|
|
8584
|
-
}
|
|
8585
|
-
};
|
|
8586
|
-
ModalComponent.prototype.onTouchMove = function (event) {
|
|
8587
|
-
if (this.display) {
|
|
8588
|
-
event.preventDefault();
|
|
8589
|
-
var deltaX = this.pagePosition.x - event.touches[0].pageX;
|
|
8590
|
-
var deltaY = this.pagePosition.y - event.touches[0].pageY;
|
|
8591
|
-
this.scrollFirstScrollableElement(event.target, deltaX, deltaY);
|
|
8592
|
-
this.setPagePosition(event);
|
|
8593
|
-
}
|
|
8594
|
-
};
|
|
8595
|
-
ModalComponent.prototype.onKeyDown = function (event) {
|
|
8596
|
-
if (this.display) {
|
|
8597
|
-
this.preventDefaultForScrollKeys(event);
|
|
8598
|
-
}
|
|
8599
|
-
};
|
|
8600
8858
|
ModalComponent.prototype.onEscapeDown = function () {
|
|
8601
8859
|
if (this.display) {
|
|
8602
8860
|
this.onClose();
|
|
@@ -8664,12 +8922,12 @@
|
|
|
8664
8922
|
};
|
|
8665
8923
|
return ModalComponent;
|
|
8666
8924
|
}());
|
|
8667
|
-
ModalComponent.ɵfac = function ModalComponent_Factory(t) { return new (t || ModalComponent)(); };
|
|
8925
|
+
ModalComponent.ɵfac = function ModalComponent_Factory(t) { return new (t || ModalComponent)(i0__namespace.ɵɵdirectiveInject(ContextService)); };
|
|
8668
8926
|
ModalComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ModalComponent, selectors: [["ng-miam-modal"]], hostBindings: function ModalComponent_HostBindings(rf, ctx) {
|
|
8669
8927
|
if (rf & 1) {
|
|
8670
|
-
i0__namespace.ɵɵlistener("
|
|
8928
|
+
i0__namespace.ɵɵlistener("keydown.escape", function ModalComponent_keydown_escape_HostBindingHandler() { return ctx.onEscapeDown(); }, false, i0__namespace.ɵɵresolveWindow);
|
|
8671
8929
|
}
|
|
8672
|
-
}, inputs: { recipesCount: "recipesCount",
|
|
8930
|
+
}, inputs: { recipesCount: "recipesCount", confirmButtonIsLoading: "confirmButtonIsLoading", cancelButtonIsLoading: "cancelButtonIsLoading", confirmButtonDisabled: "confirmButtonDisabled", cancelButtonDisabled: "cancelButtonDisabled", noHeaderMode: "noHeaderMode", containerElement: "containerElement", title: "title", confirmButtonText: "confirmButtonText", cancelButtonText: "cancelButtonText", modalStyle: "modalStyle", ctaColor: "ctaColor", display: "display" }, outputs: { close: "close", cancel: "cancel", confirm: "confirm" }, ngContentSelectors: _c5, decls: 1, vars: 1, consts: function () {
|
|
8673
8931
|
var i18n_0;
|
|
8674
8932
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
8675
8933
|
var MSG_EXTERNAL_3775647930168967606$$LIB__COMPONENTS_MODAL_MODAL_COMPONENT_TS___1 = goog.getMsg("Utilis\u00E9 dans ");
|
|
@@ -8695,7 +8953,7 @@
|
|
|
8695
8953
|
if (rf & 2) {
|
|
8696
8954
|
i0__namespace.ɵɵproperty("ngIf", ctx.display);
|
|
8697
8955
|
}
|
|
8698
|
-
}, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgClass, LoaderComponent], styles: [".miam-modal__container .miam-shadow-overlay{position:fixed;background:var(--miam-ds-color-neutral-black);animation-name:show;animation-duration:.3s;opacity:.6;animation-timing-function:ease-in-out;z-index:var(--m-z-index-modal-overlay);top:0;left:0;width:100vw;height:100dvh;-webkit-tap-highlight-color:transparent}@keyframes show{0%{opacity:0}to{opacity:.6}}.miam-modal__container .miam-modal{z-index:var(--m-z-index-modal);position:fixed;overflow:hidden;background-color:var(--miam-ds-color-background-primary);display:flex;flex-direction:column}@media print{.miam-modal__container .miam-modal{overflow-y:unset!important;position:unset!important;height:unset!important}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__close-icon{display:none}}.miam-modal__container .miam-modal.with-header .miam-modal__content-container .miam-modal__content{margin-top:24px;margin-bottom:24px}.miam-modal__container .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__title{display:none}.miam-modal__container .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{position:absolute;top:0;right:0;z-index:var(--m-z-index-position-absolute-high)}.miam-modal__container .miam-modal .miam-modal__content-container{position:relative;height:100%;display:flex;flex-direction:column;overflow:hidden}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header{display:flex;flex-direction:row;justify-content:space-between}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header .miam-modal__title{font-weight:900;overflow:hidden;text-overflow:ellipsis;align-self:center}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:8px;padding:16px;background:50%/24px no-repeat url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg)}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content__scroll-protection{overflow:hidden;height:100%;display:flex}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content{width:100%;overflow-y:auto;overflow-x:hidden;scrollbar-color:var(--miam-ds-color-primary-100),var(--miam-ds-color-primary);scrollbar-width:thin;-ms-overflow-style:none;scrollbar-width:none}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content::-webkit-scrollbar{display:none}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__actions{display:flex;justify-content:flex-end;flex-direction:row}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__actions button+button{margin-left:12px}.miam-modal__container.center .miam-modal{height:auto;min-width:464px;width:600px;max-width:700px;max-height:96dvh;box-sizing:border-box;top:50%;left:50%;right:unset;transform:translate(-50%,-50%);border-radius:8px;background-color:var(--miam-ds-color-neutral-white);padding:24px}.miam-modal__container.right .miam-modal{right:0;animation-name:openRightDrawer}@keyframes openRightDrawer{0%{right:-1200px}to{right:0}}.miam-modal__container.left .miam-modal{left:0;animation-name:openLeftDrawer}@keyframes openLeftDrawer{0%{left:-1200px}to{left:0}}.miam-modal__container.left .miam-modal,.miam-modal__container.right .miam-modal{animation-duration:.5s;animation-timing-function:cubic-bezier(.75,0,.2,1);height:100%;width:1000px;top:0}.miam-modal__container.left .miam-modal .miam-modal__content-container,.miam-modal__container.right .miam-modal .miam-modal__content-container{height:100%;box-sizing:border-box}.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__content,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__content{height:100%;box-sizing:border-box;margin:unset}.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions{padding:24px;border-top:1px solid var(--miam-ds-color-border)}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__header,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__header{border-bottom:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:unset}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__content,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__content{padding:24px}.miam-modal__container.left .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon,.miam-modal__container.right .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:24px}.miam-modal__container.left.small-width .miam-modal,.miam-modal__container.right.small-width .miam-modal{min-width:680px;max-width:680px}.miam-modal__container.left.tiny-width .miam-modal,.miam-modal__container.right.tiny-width .miam-modal{min-width:360px;max-width:360px}@media (max-width:1023px){.miam-modal__container.center .miam-modal{min-width:unset;transform:unset;border-radius:unset;padding:unset}.miam-modal__container.center .miam-modal.with-header .miam-modal__content-container .miam-modal__header{border-bottom:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.center .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:unset}.miam-modal__container.center .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:24px}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__content{box-sizing:border-box;height:100%;margin:unset;padding:24px}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions{border-top:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.center .miam-modal,.miam-modal__container.left .miam-modal,.miam-modal__container.left.small-width .miam-modal,.miam-modal__container.left.tiny-width .miam-modal,.miam-modal__container.right .miam-modal,.miam-modal__container.right.small-width .miam-modal,.miam-modal__container.right.tiny-width .miam-modal{max-width:100vw;max-height:100dvh;width:100vw;height:100dvh;top:0;bottom:0;right:0;animation-name:openBottomSheet;animation-duration:.5s;animation-timing-function:cubic-bezier(.075,.82,.165,1)}@keyframes openBottomSheet{0%{transform:translateY(100%)}to{transform:translateY(0)}}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions{flex-direction:column-reverse}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary{background-color:var(--miam-ds-color-primary)}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary{background-color:transparent}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button{margin-left:unset;margin-bottom:12px}}"], encapsulation: 2, changeDetection: 0 });
|
|
8956
|
+
}, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgClass, LoaderComponent], styles: [".miam-no-scroll{overflow:hidden}.miam-modal__container .miam-shadow-overlay{position:fixed;background:var(--miam-ds-color-neutral-black);animation-name:show;animation-duration:.3s;opacity:.6;animation-timing-function:ease-in-out;z-index:var(--m-z-index-modal-overlay);top:0;left:0;width:100vw;height:100dvh;-webkit-tap-highlight-color:transparent}@keyframes show{0%{opacity:0}to{opacity:.6}}.miam-modal__container .miam-modal{z-index:var(--m-z-index-modal);position:fixed;overflow:hidden;background-color:var(--miam-ds-color-background-primary);display:flex;flex-direction:column}@media print{.miam-modal__container .miam-modal{overflow-y:unset!important;position:unset!important;height:unset!important}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__close-icon{display:none}}.miam-modal__container .miam-modal.with-header .miam-modal__content-container .miam-modal__content{margin-top:24px;margin-bottom:24px}.miam-modal__container .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__title{display:none}.miam-modal__container .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{position:absolute;top:0;right:0;z-index:var(--m-z-index-position-absolute-high)}.miam-modal__container .miam-modal .miam-modal__content-container{position:relative;height:100%;display:flex;flex-direction:column;overflow:hidden}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header{display:flex;flex-direction:row;justify-content:space-between}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header .miam-modal__title{font-weight:900;overflow:hidden;text-overflow:ellipsis;align-self:center}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:8px;padding:16px;background:50%/24px no-repeat url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg)}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content__scroll-protection{overflow:hidden;height:100%;display:flex}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__content{width:100%;overflow-y:auto;overflow-x:hidden;scrollbar-color:var(--miam-ds-color-primary-100),var(--miam-ds-color-primary)}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__actions{display:flex;justify-content:flex-end;flex-direction:row}.miam-modal__container .miam-modal .miam-modal__content-container .miam-modal__actions button+button{margin-left:12px}.miam-modal__container.center .miam-modal{height:auto;min-width:464px;width:600px;max-width:700px;max-height:96dvh;box-sizing:border-box;top:50%;left:50%;right:unset;transform:translate(-50%,-50%);border-radius:8px;background-color:var(--miam-ds-color-neutral-white);padding:24px}.miam-modal__container.right .miam-modal{right:0;animation-name:openRightDrawer}@keyframes openRightDrawer{0%{right:-1200px}to{right:0}}.miam-modal__container.left .miam-modal{left:0;animation-name:openLeftDrawer}@keyframes openLeftDrawer{0%{left:-1200px}to{left:0}}.miam-modal__container.left .miam-modal,.miam-modal__container.right .miam-modal{animation-duration:.5s;animation-timing-function:cubic-bezier(.75,0,.2,1);height:100%;width:1000px;top:0}.miam-modal__container.left .miam-modal .miam-modal__content-container,.miam-modal__container.right .miam-modal .miam-modal__content-container{height:100%;box-sizing:border-box}.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__content,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__content{height:100%;box-sizing:border-box;margin:unset}.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions{padding:24px;border-top:1px solid var(--miam-ds-color-border)}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__header,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__header{border-bottom:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:unset}.miam-modal__container.left .miam-modal.with-header .miam-modal__content-container .miam-modal__content,.miam-modal__container.right .miam-modal.with-header .miam-modal__content-container .miam-modal__content{padding:16px}.miam-modal__container.left .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon,.miam-modal__container.right .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:24px}.miam-modal__container.left.small-width .miam-modal,.miam-modal__container.right.small-width .miam-modal{min-width:680px;max-width:680px}.miam-modal__container.left.tiny-width .miam-modal,.miam-modal__container.right.tiny-width .miam-modal{min-width:360px;max-width:360px}@media (max-width:1023px){.miam-modal__container.center .miam-modal{min-width:unset;transform:unset;border-radius:unset;padding:unset}.miam-modal__container.center .miam-modal.with-header .miam-modal__content-container .miam-modal__header{border-bottom:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.center .miam-modal.with-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:unset}.miam-modal__container.center .miam-modal.without-header .miam-modal__content-container .miam-modal__header .miam-modal__close-icon{margin:24px}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__content{box-sizing:border-box;height:100%;margin:unset;padding:24px}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions{border-top:1px solid var(--miam-ds-color-border);padding:24px}.miam-modal__container.center .miam-modal,.miam-modal__container.left .miam-modal,.miam-modal__container.left.small-width .miam-modal,.miam-modal__container.left.tiny-width .miam-modal,.miam-modal__container.right .miam-modal,.miam-modal__container.right.small-width .miam-modal,.miam-modal__container.right.tiny-width .miam-modal{max-width:100vw;max-height:100dvh;width:100vw;height:100dvh;top:0;bottom:0;right:0;animation-name:openBottomSheet;animation-duration:.5s;animation-timing-function:cubic-bezier(.075,.82,.165,1)}@keyframes openBottomSheet{0%{transform:translateY(100%)}to{transform:translateY(0)}}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions{flex-direction:column-reverse}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.primary{background-color:var(--miam-ds-color-primary)}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button:hover.secondary{background-color:transparent}.miam-modal__container.center .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.left.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right.small-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button,.miam-modal__container.right.tiny-width .miam-modal .miam-modal__content-container .miam-modal__actions .miam-ds-button+button{margin-left:unset;margin-bottom:12px}}"], encapsulation: 2, changeDetection: 0 });
|
|
8699
8957
|
(function () {
|
|
8700
8958
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ModalComponent, [{
|
|
8701
8959
|
type: i0.Component,
|
|
@@ -8706,9 +8964,7 @@
|
|
|
8706
8964
|
encapsulation: i0.ViewEncapsulation.None,
|
|
8707
8965
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
8708
8966
|
}]
|
|
8709
|
-
}],
|
|
8710
|
-
type: i0.Input
|
|
8711
|
-
}], display: [{
|
|
8967
|
+
}], function () { return [{ type: ContextService }]; }, { recipesCount: [{
|
|
8712
8968
|
type: i0.Input
|
|
8713
8969
|
}], confirmButtonIsLoading: [{
|
|
8714
8970
|
type: i0.Input
|
|
@@ -8738,18 +8994,8 @@
|
|
|
8738
8994
|
type: i0.Output
|
|
8739
8995
|
}], confirm: [{
|
|
8740
8996
|
type: i0.Output
|
|
8741
|
-
}],
|
|
8742
|
-
type: i0.
|
|
8743
|
-
args: ['wheel', ['$event']]
|
|
8744
|
-
}], onTouchStart: [{
|
|
8745
|
-
type: i0.HostListener,
|
|
8746
|
-
args: ['touchstart', ['$event']]
|
|
8747
|
-
}], onTouchMove: [{
|
|
8748
|
-
type: i0.HostListener,
|
|
8749
|
-
args: ['touchmove', ['$event']]
|
|
8750
|
-
}], onKeyDown: [{
|
|
8751
|
-
type: i0.HostListener,
|
|
8752
|
-
args: ['window:keydown', ['$event']]
|
|
8997
|
+
}], display: [{
|
|
8998
|
+
type: i0.Input
|
|
8753
8999
|
}], onEscapeDown: [{
|
|
8754
9000
|
type: i0.HostListener,
|
|
8755
9001
|
args: ['window:keydown.escape']
|
|
@@ -8932,7 +9178,7 @@
|
|
|
8932
9178
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r30.getImportances());
|
|
8933
9179
|
}
|
|
8934
9180
|
}
|
|
8935
|
-
var _c12$
|
|
9181
|
+
var _c12$1 = function (a0) { return { clickable: a0 }; };
|
|
8936
9182
|
function ListInputComponent_ul_4_ng_template_2_li_0_label_17_img_1_Template(rf, ctx) {
|
|
8937
9183
|
if (rf & 1) {
|
|
8938
9184
|
i0__namespace.ɵɵelement(0, "img", 54);
|
|
@@ -8940,7 +9186,7 @@
|
|
|
8940
9186
|
if (rf & 2) {
|
|
8941
9187
|
var row_r26 = i0__namespace.ɵɵnextContext(2).$implicit;
|
|
8942
9188
|
var ctx_r49 = i0__namespace.ɵɵnextContext(3);
|
|
8943
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c12$
|
|
9189
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(2, _c12$1, ctx_r49.ingredientsPictures.editable))("src", row_r26.controls.attributes.controls["picture-url"].value, i0__namespace.ɵɵsanitizeUrl);
|
|
8944
9190
|
}
|
|
8945
9191
|
}
|
|
8946
9192
|
function ListInputComponent_ul_4_ng_template_2_li_0_label_17_ng_miam_icon_2_Template(rf, ctx) {
|
|
@@ -9498,7 +9744,7 @@
|
|
|
9498
9744
|
i18n_8 = MSG_EXTERNAL_5233517838396324976$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS__9;
|
|
9499
9745
|
}
|
|
9500
9746
|
else {
|
|
9501
|
-
i18n_8 = $localize(templateObject_5$
|
|
9747
|
+
i18n_8 = $localize(templateObject_5$f || (templateObject_5$f = __makeTemplateObject([":\u241F94ad94596b2f40b07222d1e40355a44b6a1af29a\u241F5233517838396324976:Ingr\u00E9dients"], [":\u241F94ad94596b2f40b07222d1e40355a44b6a1af29a\u241F5233517838396324976:Ingr\u00E9dients"])));
|
|
9502
9748
|
}
|
|
9503
9749
|
var i18n_10;
|
|
9504
9750
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -9562,7 +9808,7 @@
|
|
|
9562
9808
|
i18n_25 = MSG_EXTERNAL_8809298342961585850$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS__26;
|
|
9563
9809
|
}
|
|
9564
9810
|
else {
|
|
9565
|
-
i18n_25 = $localize(templateObject_13$
|
|
9811
|
+
i18n_25 = $localize(templateObject_13$3 || (templateObject_13$3 = __makeTemplateObject([":\u241Fb4b270d65d094739a4c3233b238db0a8a536dc5e\u241F8809298342961585850:Une ligne correspond \u00E0 une \u00E9tape."], [":\u241Fb4b270d65d094739a4c3233b238db0a8a536dc5e\u241F8809298342961585850:Une ligne correspond \u00E0 une \u00E9tape."])));
|
|
9566
9812
|
}
|
|
9567
9813
|
var i18n_27;
|
|
9568
9814
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -9570,7 +9816,7 @@
|
|
|
9570
9816
|
i18n_27 = MSG_EXTERNAL_2641984252780881638$$LIB__COMPONENTS_LIST_INPUT_LIST_INPUT_COMPONENT_TS__28;
|
|
9571
9817
|
}
|
|
9572
9818
|
else {
|
|
9573
|
-
i18n_27 = $localize(templateObject_14$
|
|
9819
|
+
i18n_27 = $localize(templateObject_14$3 || (templateObject_14$3 = __makeTemplateObject([":\u241F0f9865a02f057092ee28211beb813f850707f3d5\u241F2641984252780881638:Votre image est trop lourde (la taille doit \u00EAtre inf\u00E9rieure \u00E0 500 Ko). Merci d\u2019en ajouter une plus l\u00E9g\u00E8re."], [":\u241F0f9865a02f057092ee28211beb813f850707f3d5\u241F2641984252780881638:Votre image est trop lourde (la taille doit \u00EAtre inf\u00E9rieure \u00E0 500 Ko). Merci d\u2019en ajouter une plus l\u00E9g\u00E8re."])));
|
|
9574
9820
|
}
|
|
9575
9821
|
return [[1, "miam-list-input"], [1, "miam-list-input__list", 3, "formGroup"], ["class", "miam-list-input__list__label", 4, "ngIf"], ["class", "miam-list-input__container m-default-card", "cdkDropList", "", 3, "cdkDropListDropped", 4, "ngIf", "ngIfElse"], ["hintPlaceholder", ""], [1, "miam-list-input__actions"], ["matInput", "", "class", "m-input", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", 3, "formControl", "keydown.enter", 4, "ngIf"], ["matInput", "", "class", "m-input", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", "placeholder", i18n_0, 3, "formControl", "keydown.enter", 4, "ngIf"], ["matInput", "", "class", "m-input", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", "placeholder", i18n_2, 3, "formControl", "keydown.enter", 4, "ngIf"], [1, "m-button-primary", 3, "mousedown", "mouseup"], i18n_4, [1, "miam-list-input__instructions__direction"], ["class", "miam-list-input__actions__instructions", 4, "ngIf"], ["title", i18n_6, "confirmButtonText", "Fermer", "modalStyle", "right", 3, "noHeaderMode", "display", "close", "confirm", 4, "ngIf"], [1, "miam-list-input__list__label"], i18n_8, i18n_10, ["cdkDropList", "", 1, "miam-list-input__container", "m-default-card", 3, "cdkDropListDropped"], [4, "ngIf", "ngIfElse"], ["ingredientRow", ""], ["cdkDrag", "", 4, "ngFor", "ngForOf", "ngForTrackBy"], ["cdkDrag", ""], [3, "formGroup"], [1, "miam-list-input__container__row", "m-default-card"], ["primaryColor", "var(--m-color-grey05)", "cdkDragHandle", "", 1, "miam-list-input__row__grip", 3, "iconName"], ["cdkTextareaAutosize", "true", "cdkAutosizeMinRows", "1", "cdkAutosizeMaxRows", "50", "formControlName", "description", 1, "m-input", 3, "blur"], ["autosize", "cdkTextareaAutosize"], [1, "miam-list-input__row__trash", 3, "iconName", "click"], ["class", "miam-list-input__row__placeholder", 4, "cdkDragPlaceholder"], ["class", "miam-list-input__row__preview m-default-card", 4, "cdkDragPreview"], [1, "miam-list-input__row__placeholder"], [1, "miam-list-input__row__preview", "m-default-card"], ["primaryColor", "var(--m-color-grey05)", "cdkDragHandle", "", 3, "iconName"], [1, "miam-list-input__preview__text", "m-body-typo"], [1, "miam-list-input__container__row", "m-default-card", 3, "formGroupName"], [1, "miam-list-input__row__left"], [1, "miam-list-input__row__right"], [1, "m-input", 3, "ngClass", "ngModel", "formControl"], [3, "value", 4, "ngFor", "ngForOf"], ["maxSize", "4", "autoWidthInput", "", 1, "m-input", 3, "ngModel", "formControl", "ngModelChange"], ["maxSize", "8", "autoWidthInput", "", 1, "m-input", 3, "ngClass", "formControl"], ["class", "miam-list-input__importance", 4, "ngIf"], [1, "miam-list-input__row__controls"], [3, "for", 4, "ngIf"], ["type", "file", "accept", "image/jpeg, image/png, image/webp", 3, "id", "change", 4, "ngIf"], ["primaryColor", "var(--m-color-grey05)", 1, "miam-list-input__row__trash", 3, "iconName", "click"], [3, "value"], [1, "miam-list-input__importance"], ["class", "miam-list-input__importance__radio", 4, "ngFor", "ngForOf"], [1, "miam-list-input__importance__radio"], ["type", "radio", 3, "name", "id", "value", "formControl", "click"], [3, "for"], ["class", "miam-list-input__row__picture", 3, "ngClass", "src", 4, "ngIf"], ["class", "miam-list-input__row__trash", "primaryColor", "var(--m-color-grey05)", 3, "iconName", 4, "ngIf"], [1, "miam-list-input__row__picture", 3, "ngClass", "src"], ["primaryColor", "var(--m-color-grey05)", 1, "miam-list-input__row__trash", 3, "iconName"], ["type", "file", "accept", "image/jpeg, image/png, image/webp", 3, "id", "change"], ["primaryColor", "var(--m-color-grey-text-dark)", "cdkDragHandle", "", 3, "iconName"], [1, "m-body-typo"], [1, "miam-list-input__placeholder", "miam-list-input__container", "m-default-card"], ["primaryColor", "var(--m-color-grey-text-dark)", 3, "width", "height", "iconName"], [1, "miam-list-input__placeholder__hint", "m-body-typo"], i18n_13, [4, "ngIf"], i18n_15, i18n_17, ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", 1, "m-input", 3, "formControl", "keydown.enter"], ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", "placeholder", i18n_0, 1, "m-input", 3, "formControl", "keydown.enter"], ["matInput", "", "cdkTextareaAutosize", "", "cdkAutosizeMinRows", "4", "cdkAutosizeMaxRows", "4", "placeholder", i18n_2, 1, "m-input", 3, "formControl", "keydown.enter"], [1, "miam-list-input__actions__instructions"], i18n_19, i18n_21, i18n_23, i18n_25, ["title", i18n_6, "confirmButtonText", "Fermer", "modalStyle", "right", 3, "noHeaderMode", "display", "close", "confirm"], [1, "miam-list-input__picture__warning"], i18n_27];
|
|
9576
9822
|
}, template: function ListInputComponent_Template(rf, ctx) {
|
|
@@ -9655,7 +9901,7 @@
|
|
|
9655
9901
|
type: i0.Output
|
|
9656
9902
|
}] });
|
|
9657
9903
|
})();
|
|
9658
|
-
var templateObject_1$D, templateObject_2$x, templateObject_3$p, templateObject_4$j, templateObject_5$
|
|
9904
|
+
var templateObject_1$D, templateObject_2$x, templateObject_3$p, templateObject_4$j, templateObject_5$f, templateObject_6$c, templateObject_7$9, templateObject_8$7, templateObject_9$6, templateObject_10$4, templateObject_11$4, templateObject_12$3, templateObject_13$3, templateObject_14$3;
|
|
9659
9905
|
|
|
9660
9906
|
var MealsPlannerLinkComponent = /** @class */ (function () {
|
|
9661
9907
|
function MealsPlannerLinkComponent(context) {
|
|
@@ -10407,7 +10653,7 @@
|
|
|
10407
10653
|
i18n_8 = MSG_EXTERNAL_7733455880752157102$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS____9;
|
|
10408
10654
|
}
|
|
10409
10655
|
else {
|
|
10410
|
-
i18n_8 = $localize(templateObject_5$
|
|
10656
|
+
i18n_8 = $localize(templateObject_5$e || (templateObject_5$e = __makeTemplateObject([":\u241Fccfd103e2bbd9a80c6d3a226332a77c93c88d871\u241F7733455880752157102:Chef interm\u00E9diaire"], [":\u241Fccfd103e2bbd9a80c6d3a226332a77c93c88d871\u241F7733455880752157102:Chef interm\u00E9diaire"])));
|
|
10411
10657
|
}
|
|
10412
10658
|
var i18n_10;
|
|
10413
10659
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -10471,7 +10717,7 @@
|
|
|
10471
10717
|
i18n_24 = MSG_EXTERNAL_2987005241567363499$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS____25;
|
|
10472
10718
|
}
|
|
10473
10719
|
else {
|
|
10474
|
-
i18n_24 = $localize(templateObject_13$
|
|
10720
|
+
i18n_24 = $localize(templateObject_13$2 || (templateObject_13$2 = __makeTemplateObject([":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"], [":\u241F06a1a41b1f201e9c0039e7a5a4a6412a1bc3665f\u241F2987005241567363499:Moins de 30 min"])));
|
|
10475
10721
|
}
|
|
10476
10722
|
var i18n_26;
|
|
10477
10723
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -10479,7 +10725,7 @@
|
|
|
10479
10725
|
i18n_26 = MSG_EXTERNAL_6215037527102325488$$LIB__COMPONENTS_RECIPE_FILTERS_RECIPE_FILTERS_COMPONENT_TS____27;
|
|
10480
10726
|
}
|
|
10481
10727
|
else {
|
|
10482
|
-
i18n_26 = $localize(templateObject_14$
|
|
10728
|
+
i18n_26 = $localize(templateObject_14$2 || (templateObject_14$2 = __makeTemplateObject([":\u241F1621eb3798ceefdacca0efee8561de66c85229df\u241F6215037527102325488:Moins de 1 h"], [":\u241F1621eb3798ceefdacca0efee8561de66c85229df\u241F6215037527102325488:Moins de 1 h"])));
|
|
10483
10729
|
}
|
|
10484
10730
|
var i18n_28;
|
|
10485
10731
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -10593,7 +10839,7 @@
|
|
|
10593
10839
|
type: i0.Output
|
|
10594
10840
|
}] });
|
|
10595
10841
|
})();
|
|
10596
|
-
var templateObject_1$B, templateObject_2$v, templateObject_3$n, templateObject_4$i, templateObject_5$
|
|
10842
|
+
var templateObject_1$B, templateObject_2$v, templateObject_3$n, templateObject_4$i, templateObject_5$e, templateObject_6$b, templateObject_7$8, templateObject_8$6, templateObject_9$5, templateObject_10$3, templateObject_11$3, templateObject_12$2, templateObject_13$2, templateObject_14$2, templateObject_15$1, templateObject_16$1, templateObject_17$1, templateObject_18$1;
|
|
10597
10843
|
|
|
10598
10844
|
function RecipePricingComponent_div_0_div_10_span_1_Template(rf, ctx) {
|
|
10599
10845
|
if (rf & 1) {
|
|
@@ -12212,7 +12458,7 @@
|
|
|
12212
12458
|
if (rf & 2) {
|
|
12213
12459
|
var ctx_r7 = i0__namespace.ɵɵnextContext(3);
|
|
12214
12460
|
i0__namespace.ɵɵadvance(1);
|
|
12215
|
-
i0__namespace.ɵɵproperty("value", ctx_r7.basketEntry.quantity)("minusLoading", ctx_r7.counterMinusLoading);
|
|
12461
|
+
i0__namespace.ɵɵproperty("value", ctx_r7.product.basketEntry.quantity)("minusLoading", ctx_r7.counterMinusLoading);
|
|
12216
12462
|
}
|
|
12217
12463
|
}
|
|
12218
12464
|
function ProductCardComponent_div_0_ng_container_11_Template(rf, ctx) {
|
|
@@ -12238,7 +12484,7 @@
|
|
|
12238
12484
|
i0__namespace.ɵɵtemplate(13, ProductCardComponent_div_0_ng_container_11_div_13_Template, 3, 0, "div", 17);
|
|
12239
12485
|
i0__namespace.ɵɵelementEnd();
|
|
12240
12486
|
i0__namespace.ɵɵelementStart(14, "button", 18);
|
|
12241
|
-
i0__namespace.ɵɵlistener("click", function ProductCardComponent_div_0_ng_container_11_Template_button_click_14_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(2); return ctx_r16.replaceProduct(ctx_r16.basketEntry.status === "initial"); });
|
|
12487
|
+
i0__namespace.ɵɵlistener("click", function ProductCardComponent_div_0_ng_container_11_Template_button_click_14_listener() { i0__namespace.ɵɵrestoreView(_r17_1); var ctx_r16 = i0__namespace.ɵɵnextContext(2); return ctx_r16.replaceProduct(ctx_r16.product.basketEntry.status === "initial"); });
|
|
12242
12488
|
i0__namespace.ɵɵelementStart(15, "span");
|
|
12243
12489
|
i0__namespace.ɵɵtext(16, "Remplacer");
|
|
12244
12490
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12260,21 +12506,21 @@
|
|
|
12260
12506
|
if (rf & 2) {
|
|
12261
12507
|
var ctx_r1 = i0__namespace.ɵɵnextContext(2);
|
|
12262
12508
|
i0__namespace.ɵɵadvance(3);
|
|
12263
|
-
i0__namespace.ɵɵproperty("src", ctx_r1.basketEntry.selectedItem.attributes.image, i0__namespace.ɵɵsanitizeUrl);
|
|
12509
|
+
i0__namespace.ɵɵproperty("src", ctx_r1.product.basketEntry.selectedItem.attributes.image, i0__namespace.ɵɵsanitizeUrl);
|
|
12264
12510
|
i0__namespace.ɵɵadvance(3);
|
|
12265
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.basketEntry.selectedItem.attributes.brand, " ");
|
|
12511
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.product.basketEntry.selectedItem.attributes.brand, " ");
|
|
12266
12512
|
i0__namespace.ɵɵadvance(2);
|
|
12267
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.basketEntry.selectedItem.attributes.name, " ");
|
|
12513
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r1.product.basketEntry.selectedItem.attributes.name, " ");
|
|
12268
12514
|
i0__namespace.ɵɵadvance(3);
|
|
12269
|
-
i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind2(12, 9, ctx_r1.basketEntry.selectedItem.capacityVolume, "1.0-2"), " ", ctx_r1.basketEntry.selectedItem.capacityUnit, " ");
|
|
12515
|
+
i0__namespace.ɵɵtextInterpolate2(" ", i0__namespace.ɵɵpipeBind2(12, 9, ctx_r1.product.basketEntry.selectedItem.capacityVolume, "1.0-2"), " ", ctx_r1.product.basketEntry.selectedItem.capacityUnit, " ");
|
|
12270
12516
|
i0__namespace.ɵɵadvance(2);
|
|
12271
12517
|
i0__namespace.ɵɵproperty("ngIf", ctx_r1.isSponsored);
|
|
12272
12518
|
i0__namespace.ɵɵadvance(6);
|
|
12273
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(20, 12, ctx_r1.
|
|
12519
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(20, 12, ctx_r1.product.price.unit, ctx_r1.product.basketEntry.selectedItem.attributes.currency), " ");
|
|
12274
12520
|
i0__namespace.ɵɵadvance(3);
|
|
12275
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r1.basketEntry.status === "initial");
|
|
12521
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.product.basketEntry.status === "initial");
|
|
12276
12522
|
i0__namespace.ɵɵadvance(1);
|
|
12277
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r1.basketEntry.status === "active");
|
|
12523
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r1.product.basketEntry.status === "active");
|
|
12278
12524
|
}
|
|
12279
12525
|
}
|
|
12280
12526
|
function ProductCardComponent_div_0_ng_template_12_ng_container_0_Template(rf, ctx) {
|
|
@@ -12309,9 +12555,9 @@
|
|
|
12309
12555
|
}
|
|
12310
12556
|
if (rf & 2) {
|
|
12311
12557
|
var ctx_r3 = i0__namespace.ɵɵnextContext(2);
|
|
12312
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r3.basketEntry.status === "ignored" || ctx_r3.basketEntry.status === "deleted" || ctx_r3.basketEntry.status === "often_deleted");
|
|
12558
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r3.product.basketEntry.status === "ignored" || ctx_r3.product.basketEntry.status === "deleted" || ctx_r3.product.basketEntry.status === "often_deleted");
|
|
12313
12559
|
i0__namespace.ɵɵadvance(1);
|
|
12314
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r3.basketEntry.status === "unavailable");
|
|
12560
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r3.product.basketEntry.status === "unavailable");
|
|
12315
12561
|
}
|
|
12316
12562
|
}
|
|
12317
12563
|
function ProductCardComponent_div_0_div_14_Template(rf, ctx) {
|
|
@@ -12358,30 +12604,30 @@
|
|
|
12358
12604
|
if (rf & 2) {
|
|
12359
12605
|
var _r2 = i0__namespace.ɵɵreference(13);
|
|
12360
12606
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
12361
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(13, _c0$9, ctx_r0.basketEntry.status === "active", ctx_r0.basketEntry.status === "ignored" || ctx_r0.basketEntry.status === "deleted" || ctx_r0.basketEntry.status === "often_deleted" || ctx_r0.basketEntry.status === "unavailable"));
|
|
12607
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(13, _c0$9, ctx_r0.product.basketEntry.status === "active", ctx_r0.product.basketEntry.status === "ignored" || ctx_r0.product.basketEntry.status === "deleted" || ctx_r0.product.basketEntry.status === "often_deleted" || ctx_r0.product.basketEntry.status === "unavailable"));
|
|
12362
12608
|
i0__namespace.ɵɵadvance(1);
|
|
12363
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(16, _c0$9, ctx_r0.basketEntry.status === "active", ctx_r0.basketEntry.status === "ignored" || ctx_r0.basketEntry.status === "deleted" || ctx_r0.basketEntry.status === "often_deleted" || ctx_r0.basketEntry.status === "unavailable"));
|
|
12609
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(16, _c0$9, ctx_r0.product.basketEntry.status === "active", ctx_r0.product.basketEntry.status === "ignored" || ctx_r0.product.basketEntry.status === "deleted" || ctx_r0.product.basketEntry.status === "often_deleted" || ctx_r0.product.basketEntry.status === "unavailable"));
|
|
12364
12610
|
i0__namespace.ɵɵadvance(1);
|
|
12365
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(19, _c1$5, ctx_r0.basketEntry.status === "ignored" || ctx_r0.basketEntry.status === "deleted" || ctx_r0.basketEntry.status === "often_deleted" || ctx_r0.basketEntry.status === "unavailable"));
|
|
12611
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(19, _c1$5, ctx_r0.product.basketEntry.status === "ignored" || ctx_r0.product.basketEntry.status === "deleted" || ctx_r0.product.basketEntry.status === "often_deleted" || ctx_r0.product.basketEntry.status === "unavailable"));
|
|
12366
12612
|
i0__namespace.ɵɵadvance(1);
|
|
12367
|
-
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 11, ctx_r0.basketEntry.name), " ");
|
|
12613
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind1(4, 11, ctx_r0.product.basketEntry.name), " ");
|
|
12368
12614
|
i0__namespace.ɵɵadvance(2);
|
|
12369
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(21, _c1$5, ctx_r0.basketEntry.status === "ignored" || ctx_r0.basketEntry.status === "deleted" || ctx_r0.basketEntry.status === "often_deleted" || ctx_r0.basketEntry.status === "unavailable"));
|
|
12615
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(21, _c1$5, ctx_r0.product.basketEntry.status === "ignored" || ctx_r0.product.basketEntry.status === "deleted" || ctx_r0.product.basketEntry.status === "often_deleted" || ctx_r0.product.basketEntry.status === "unavailable"));
|
|
12370
12616
|
i0__namespace.ɵɵadvance(2);
|
|
12371
12617
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.modifiedIngQty, " ");
|
|
12372
12618
|
i0__namespace.ɵɵadvance(2);
|
|
12373
|
-
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.ingredient.attributes.unit, " ");
|
|
12619
|
+
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r0.product.ingredient.attributes.unit, " ");
|
|
12374
12620
|
i0__namespace.ɵɵadvance(1);
|
|
12375
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(23, _c2$3, !(ctx_r0.basketEntry.status === "initial" || ctx_r0.basketEntry.status === "active")));
|
|
12621
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(23, _c2$3, !(ctx_r0.product.basketEntry.status === "initial" || ctx_r0.product.basketEntry.status === "active")));
|
|
12376
12622
|
i0__namespace.ɵɵadvance(1);
|
|
12377
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.basketEntry.status === "initial" || ctx_r0.basketEntry.status === "active")("ngIfElse", _r2);
|
|
12623
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.product.basketEntry.status === "initial" || ctx_r0.product.basketEntry.status === "active")("ngIfElse", _r2);
|
|
12378
12624
|
i0__namespace.ɵɵadvance(3);
|
|
12379
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.recipesIncludingIngredient > 1 && ctx_r0.basketEntry.status === "active");
|
|
12625
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.recipesIncludingIngredient > 1 && ctx_r0.product.basketEntry.status === "active");
|
|
12380
12626
|
}
|
|
12381
12627
|
}
|
|
12382
12628
|
var ProductCardComponent = /** @class */ (function (_super) {
|
|
12383
12629
|
__extends(ProductCardComponent, _super);
|
|
12384
|
-
function ProductCardComponent(cdr, basketsService, recipeDetailsService, recipesService, analyticsService, itemsService, ignoredBasketsService, elementRef) {
|
|
12630
|
+
function ProductCardComponent(cdr, basketsService, recipeDetailsService, recipesService, analyticsService, itemsService, ignoredBasketsService, basketActionsService, elementRef) {
|
|
12385
12631
|
var _this = _super.call(this, analyticsService) || this;
|
|
12386
12632
|
_this.cdr = cdr;
|
|
12387
12633
|
_this.basketsService = basketsService;
|
|
@@ -12390,6 +12636,7 @@
|
|
|
12390
12636
|
_this.analyticsService = analyticsService;
|
|
12391
12637
|
_this.itemsService = itemsService;
|
|
12392
12638
|
_this.ignoredBasketsService = ignoredBasketsService;
|
|
12639
|
+
_this.basketActionsService = basketActionsService;
|
|
12393
12640
|
_this.elementRef = elementRef;
|
|
12394
12641
|
_this.subscriptions = [];
|
|
12395
12642
|
_this.recipesIncludingIngredient = 0;
|
|
@@ -12397,21 +12644,20 @@
|
|
|
12397
12644
|
_this.loadingAddToBasket = false;
|
|
12398
12645
|
_this.counterMinusLoading = false;
|
|
12399
12646
|
_this.disabled = false;
|
|
12400
|
-
_this.updatedPrice = '';
|
|
12401
12647
|
_this.isSponsored = false;
|
|
12648
|
+
// Both below are used only for stored actions
|
|
12649
|
+
_this.searchString = '';
|
|
12402
12650
|
return _this;
|
|
12403
12651
|
}
|
|
12404
12652
|
ProductCardComponent.prototype.ngOnInit = function () {
|
|
12405
12653
|
var _this = this;
|
|
12406
|
-
this.subscriptions.push(this.recipeDetailsService.productsByCategory$.subscribe(function () { return _this.isProductSponsored(); }), this.loadOnRecipesActions(), this.loadOnIngredientsRemoval(), this.updateIngredientQuantityOnRecipeChange());
|
|
12654
|
+
this.subscriptions.push(this.recipeDetailsService.productsByCategory$.subscribe(function () { return _this.isProductSponsored(); }), this.executeActionFromStorage(), this.loadOnRecipesActions(), this.loadOnIngredientsRemoval(), this.updateIngredientQuantityOnRecipeChange());
|
|
12407
12655
|
};
|
|
12408
12656
|
ProductCardComponent.prototype.ngOnChanges = function (changes) {
|
|
12409
|
-
this.updatePriceForItem();
|
|
12410
|
-
this.getProductCardState();
|
|
12411
12657
|
this.recipesIncludingIngredient = this.isInXRecipes();
|
|
12412
12658
|
this.loadingAddToBasket = false;
|
|
12413
12659
|
if (changes.ingredient) {
|
|
12414
|
-
this.modifiedIngQty = +this.ingredient.quantity;
|
|
12660
|
+
this.modifiedIngQty = +this.product.ingredient.quantity;
|
|
12415
12661
|
}
|
|
12416
12662
|
this.cdr.detectChanges();
|
|
12417
12663
|
};
|
|
@@ -12419,6 +12665,17 @@
|
|
|
12419
12665
|
var _a;
|
|
12420
12666
|
(_a = this.subscriptions) === null || _a === void 0 ? void 0 : _a.forEach(function (sub) { return sub.unsubscribe(); });
|
|
12421
12667
|
};
|
|
12668
|
+
ProductCardComponent.prototype.executeActionFromStorage = function () {
|
|
12669
|
+
var _this = this;
|
|
12670
|
+
return this.recipeDetailsService.productsByCategory$.pipe(operators.skipWhile(function (products) { return products.toPickProducts.length === 0; }), operators.take(1), operators.switchMap(function () { return _this.basketActionsService.shouldExecuteBasketAction.pipe(operators.skipWhile(function (method) { return !method; })); })).subscribe(function (parsedMethod) {
|
|
12671
|
+
if (parsedMethod.method === 'addIngredientToBasket' &&
|
|
12672
|
+
parsedMethod.arguments.ingredientId === _this.product.ingredient.id &&
|
|
12673
|
+
_this.product.basketEntry.status === 'initial') {
|
|
12674
|
+
_this.replaceItemForStoredAction(parsedMethod);
|
|
12675
|
+
_this.addToBasket();
|
|
12676
|
+
}
|
|
12677
|
+
});
|
|
12678
|
+
};
|
|
12422
12679
|
ProductCardComponent.prototype.updateIngredientQuantityOnRecipeChange = function () {
|
|
12423
12680
|
var _this = this;
|
|
12424
12681
|
return this.recipesService.displayedRecipeChanged$.subscribe(function () {
|
|
@@ -12427,63 +12684,53 @@
|
|
|
12427
12684
|
_this.isProductSponsored();
|
|
12428
12685
|
// If the recipe-details is displayed solo, recipesService.displayedRecipe$ has no value, so modifiedIngQty will be NaN
|
|
12429
12686
|
if (recipe) {
|
|
12430
|
-
_this.modifiedIngQty = +((_b = recipe.modifiedIngredients.find(function (i) { return i.name === _this.ingredient.attributes.name; })) === null || _b === void 0 ? void 0 : _b.qty.toFixed(2));
|
|
12687
|
+
_this.modifiedIngQty = +((_b = recipe.modifiedIngredients.find(function (i) { return i.name === _this.product.ingredient.attributes.name; })) === null || _b === void 0 ? void 0 : _b.qty.toFixed(2));
|
|
12431
12688
|
}
|
|
12432
12689
|
_this.cdr.detectChanges();
|
|
12433
12690
|
});
|
|
12434
12691
|
};
|
|
12435
|
-
ProductCardComponent.prototype.updatePriceForItem = function () {
|
|
12436
|
-
var _this = this;
|
|
12437
|
-
if (this.basketEntry.selectedItem) {
|
|
12438
|
-
this.subscriptions.push(this.itemsService.getPriceForItem(this.basketEntry.selectedItem.id).pipe(operators.tap(function (response) { return _this.updatedPrice = response.price; })).subscribe(function () {
|
|
12439
|
-
_this.cdr.detectChanges();
|
|
12440
|
-
}));
|
|
12441
|
-
}
|
|
12442
|
-
};
|
|
12443
|
-
ProductCardComponent.prototype.getProductCardState = function () {
|
|
12444
|
-
if (!['often_deleted', 'deleted', 'ignored'].includes(this.basketEntry.status)) {
|
|
12445
|
-
var _c = this.basketEntry, id = _c.id, selectedItem = _c.selectedItem, recipesIds = _c.recipesIds;
|
|
12446
|
-
if (id === '-1') {
|
|
12447
|
-
this.basketEntry.status = selectedItem ? 'initial' : 'unavailable';
|
|
12448
|
-
}
|
|
12449
|
-
else {
|
|
12450
|
-
var isRecipeActive = recipesIds.includes(+this.recipeDetailsService.recipe.id);
|
|
12451
|
-
this.basketEntry.status = isRecipeActive ? 'active' : 'initial';
|
|
12452
|
-
}
|
|
12453
|
-
}
|
|
12454
|
-
};
|
|
12455
12692
|
ProductCardComponent.prototype.counterChanged = function (newCount) {
|
|
12456
12693
|
if (newCount === 0) {
|
|
12457
|
-
this.recipeDetailsService.ingredientRemoved(this.ingredient, this.eventTrace());
|
|
12694
|
+
this.recipeDetailsService.ingredientRemoved(this.product.ingredient, this.eventTrace());
|
|
12458
12695
|
this.cdr.detectChanges();
|
|
12459
12696
|
}
|
|
12460
12697
|
else {
|
|
12461
|
-
this.recipeDetailsService.updateProductQuantity(this.basketEntry, newCount, this.eventTrace());
|
|
12698
|
+
this.recipeDetailsService.updateProductQuantity(this.product.basketEntry, newCount, this.eventTrace());
|
|
12462
12699
|
}
|
|
12700
|
+
this.recipeDetailsService.updateIngredientFromBasketLoading = true;
|
|
12463
12701
|
};
|
|
12464
12702
|
ProductCardComponent.prototype.addToBasket = function () {
|
|
12465
12703
|
var _this = this;
|
|
12466
|
-
this.loadingAddToBasket = true;
|
|
12467
12704
|
var recipe = this.recipeDetailsService.recipe;
|
|
12468
|
-
this.subscriptions.push(this.recipeDetailsService.canAddProductToBasket(
|
|
12469
|
-
|
|
12705
|
+
this.subscriptions.push(this.recipeDetailsService.canAddProductToBasket({
|
|
12706
|
+
method: 'addIngredientToBasket',
|
|
12707
|
+
arguments: {
|
|
12708
|
+
recipeId: recipe.id, ingredientId: this.product.ingredient.id, entry: this.product.basketEntry, eventTrace: this.eventTrace()
|
|
12709
|
+
}
|
|
12710
|
+
}, this.eventTrace()).subscribe(function (res) {
|
|
12711
|
+
if (res) {
|
|
12712
|
+
_this.loadingAddToBasket = true;
|
|
12713
|
+
_this.recipeDetailsService.ingredientToBasketLoading = true;
|
|
12714
|
+
_this.basketsService.addIngredientsToBasket(recipe.id, [{ ingredientId: _this.product.ingredient.id, entry: _this.product.basketEntry }], _this.eventTrace(), _this.previousItem, _this.searchString);
|
|
12715
|
+
}
|
|
12470
12716
|
}));
|
|
12471
12717
|
};
|
|
12472
12718
|
ProductCardComponent.prototype.ignoreProduct = function () {
|
|
12473
|
-
this.basketEntry.status = 'ignored';
|
|
12474
|
-
this.ignoredBasketsService.addIgnoredIngredients(this.ingredient.id);
|
|
12719
|
+
this.product.basketEntry.status = 'ignored';
|
|
12720
|
+
this.ignoredBasketsService.addIgnoredIngredients(this.product.ingredient.id);
|
|
12721
|
+
this.recipeDetailsService.updateRecipePrice(this.product, true);
|
|
12475
12722
|
this.recipeDetailsService.updateFooterDisplay$.next();
|
|
12476
12723
|
this.cdr.detectChanges();
|
|
12477
12724
|
};
|
|
12478
12725
|
ProductCardComponent.prototype.replaceProduct = function (ignoreSelected) {
|
|
12479
12726
|
this.recipeDetailsService.scrollBackToElementId = this.elementRef.nativeElement.id;
|
|
12480
|
-
this.recipeDetailsService.replaceBasketEntry(this.basketEntry, ignoreSelected);
|
|
12727
|
+
this.recipeDetailsService.replaceBasketEntry(this.product.basketEntry, ignoreSelected);
|
|
12481
12728
|
};
|
|
12482
12729
|
ProductCardComponent.prototype.isInXRecipes = function () {
|
|
12483
|
-
if (this.basketEntry.status !== 'active') {
|
|
12730
|
+
if (this.product.basketEntry.status !== 'active') {
|
|
12484
12731
|
return 1;
|
|
12485
12732
|
}
|
|
12486
|
-
return this.basketEntry.recipesIds.length;
|
|
12733
|
+
return this.product.basketEntry.recipesIds.length;
|
|
12487
12734
|
};
|
|
12488
12735
|
ProductCardComponent.prototype.currentPath = function () {
|
|
12489
12736
|
return '';
|
|
@@ -12502,25 +12749,38 @@
|
|
|
12502
12749
|
};
|
|
12503
12750
|
ProductCardComponent.prototype.loadOnIngredientsRemoval = function () {
|
|
12504
12751
|
var _this = this;
|
|
12505
|
-
return this.basketsService.ingredientWillBeRemoved(this.ingredient.id).subscribe(function (isLoading) {
|
|
12752
|
+
return this.basketsService.ingredientWillBeRemoved(this.product.ingredient.id).subscribe(function (isLoading) {
|
|
12506
12753
|
_this.counterMinusLoading = isLoading;
|
|
12507
12754
|
_this.cdr.detectChanges();
|
|
12508
12755
|
});
|
|
12509
12756
|
};
|
|
12510
12757
|
ProductCardComponent.prototype.isProductSponsored = function () {
|
|
12511
12758
|
var _a;
|
|
12512
|
-
this.isSponsored = this.recipeDetailsService.isSponsored && ((_a = this.ingredient.forcedEans) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
12759
|
+
this.isSponsored = this.recipeDetailsService.isSponsored && ((_a = this.product.ingredient.forcedEans) === null || _a === void 0 ? void 0 : _a.length) > 0;
|
|
12513
12760
|
this.cdr.detectChanges();
|
|
12514
12761
|
};
|
|
12762
|
+
ProductCardComponent.prototype.replaceItemForStoredAction = function (parsedMethod) {
|
|
12763
|
+
if (parsedMethod.arguments.entry.relationships['selected-item'].data.id !== this.product.basketEntry.selectedItem.id) {
|
|
12764
|
+
if (this.product.basketEntry.status === 'ignored') {
|
|
12765
|
+
this.ignoredBasketsService.removeIngredientFromIgnored(this.product.ingredient.id);
|
|
12766
|
+
}
|
|
12767
|
+
this.previousItem = this.product.basketEntry.selectedItem;
|
|
12768
|
+
if (this.product.basketEntry.selectedItem) {
|
|
12769
|
+
this.product.basketEntry.removeRelationship('selected-item', this.product.basketEntry.selectedItem.id);
|
|
12770
|
+
}
|
|
12771
|
+
this.searchString = parsedMethod.arguments.searchString || '';
|
|
12772
|
+
this.product.basketEntry.addRelationship(parsedMethod.arguments.entry.relationships['selected-item'].data, 'selected-item');
|
|
12773
|
+
}
|
|
12774
|
+
};
|
|
12515
12775
|
return ProductCardComponent;
|
|
12516
12776
|
}(EventTracerComponent));
|
|
12517
|
-
ProductCardComponent.ɵfac = function ProductCardComponent_Factory(t) { return new (t || ProductCardComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(ItemsService), i0__namespace.ɵɵdirectiveInject(IgnoredIngredientsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
|
|
12518
|
-
ProductCardComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ProductCardComponent, selectors: [["ng-miam-product-card"]], inputs: {
|
|
12777
|
+
ProductCardComponent.ɵfac = function ProductCardComponent_Factory(t) { return new (t || ProductCardComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(ItemsService), i0__namespace.ɵɵdirectiveInject(IgnoredIngredientsService), i0__namespace.ɵɵdirectiveInject(BasketActionsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef)); };
|
|
12778
|
+
ProductCardComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ProductCardComponent, selectors: [["ng-miam-product-card"]], inputs: { product: "product" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 1, vars: 1, consts: [["class", "miam-product-card__container", 3, "ngClass", 4, "ngIf"], [1, "miam-product-card__container", 3, "ngClass"], [1, "miam-product-card__header", 3, "ngClass"], [1, "miam-product-card__header-name", "miam-ds-text", "size-l", "weight-xxl", 3, "ngClass"], [1, "miam-product-card__header-quantity", "miam-ds-text", "size-s", "weight-l", 3, "ngClass"], [1, "miam-product-card__content", 3, "ngClass"], [4, "ngIf", "ngIfElse"], ["disabledProduct", ""], ["class", "miam-product-card__footer", 4, "ngIf"], [1, "miam-product-card__selected-product"], [1, "miam-product-card__picture-column"], ["alt", "product picture", 1, "miam-product-card__picture", 3, "src"], [1, "miam-product-card__info-column"], [1, "miam-ds-text", "size-xs", "weight-xl", "miam-product-card__details", "product-brand"], [1, "miam-ds-text", "size-xs", "miam-product-card__details", "product-fullname"], [1, "miam-product-card__badges"], [1, "miam-ds-badge"], ["class", "miam-ds-badge outline", 4, "ngIf"], [1, "miam-ds-button", "ghost", 3, "click"], [1, "miam-product-card__lower-action"], [1, "miam-product-card__price", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-product-card__cta"], [4, "ngIf"], [1, "miam-ds-badge", "outline"], [1, "miam-ds-button", "miam-product-card__ignore-product", "ghost", "small", 3, "click"], [1, "miam-product-card__disabled-text"], ["class", "miam-ds-button miam-product-card__add-product square primary", 3, "disabled", "click", 4, "ngIf"], ["class", "miam-ds-button miam-product-card__loading-button square primary", 4, "ngIf"], [1, "miam-ds-button", "miam-product-card__add-product", "square", "primary", 3, "disabled", "click"], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], [1, "miam-ds-button", "miam-product-card__loading-button", "square", "primary"], [1, "miam-ds-loader"], ["minRange", "0", 3, "value", "minusLoading", "valueChange"], [1, "miam-ds-text", "miam-product-card__disabled-text"], [1, "miam-product-card__footer"], [1, "miam-ds-text", "size-xs", "weight-xl", "light-text"]], template: function ProductCardComponent_Template(rf, ctx) {
|
|
12519
12779
|
if (rf & 1) {
|
|
12520
12780
|
i0__namespace.ɵɵtemplate(0, ProductCardComponent_div_0_Template, 15, 25, "div", 0);
|
|
12521
12781
|
}
|
|
12522
12782
|
if (rf & 2) {
|
|
12523
|
-
i0__namespace.ɵɵproperty("ngIf", ctx.basketEntry);
|
|
12783
|
+
i0__namespace.ɵɵproperty("ngIf", ctx.product.basketEntry);
|
|
12524
12784
|
}
|
|
12525
12785
|
}, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgClass, CounterInputComponent], pipes: [CapitalizeFirstLetterPipe, i2__namespace$1.DecimalPipe, i2__namespace$1.CurrencyPipe, i2__namespace$1.AsyncPipe], styles: [".miam-product-card__container{display:flex;flex-direction:column;box-sizing:border-box;height:100%;border-radius:8px;overflow:hidden;border:1px solid var(--miam-ds-color-primary-100,#e4eaec);background:var(--miam-ds-color-primary-text,#fff);transition:all .3s}.miam-product-card__container.added{border:1px solid var(--miam-ds-color-primary,#24748f);background:var(--miam-ds-color-primary-text,#fff)}.miam-product-card__container .miam-product-card__header{display:flex;flex-direction:row;align-items:center;justify-content:space-between;gap:8px;padding:8px;color:var(--miam-ds-color-neutral-black,#1f3543);background:var(--miam-ds-color-primary-100,#e4eaec);transition:all .3s}.miam-product-card__container .miam-product-card__header.added{background:var(--miam-ds-color-primary,#24748f);color:var(--core-background-background-primary,#fff)}.miam-product-card__container .miam-product-card__header.disabled{background:var(--miam-ds-color-neutral-200,#d9dde1)}.miam-product-card__container .miam-product-card__header .miam-product-card__header-quantity{text-align:right}.miam-product-card__container .miam-product-card__content{padding:8px 12px;height:100%;display:flex;flex-direction:column;gap:12px;background-color:var(--miam-ds-color-neutral-white,#fff);transition:background-color .3s}.miam-product-card__container .miam-product-card__content.disabled{justify-content:center;align-items:center;gap:12px;padding:12px;text-align:center;background-color:var(--miam-ds-color-neutral-200,#d9dde1)}@media (max-width:1023px){.miam-product-card__container .miam-product-card__content{padding:12px}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content{padding:12px}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{display:flex;align-items:center;justify-content:center;flex-direction:column;height:100%}@media (max-width:1023px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:16px}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product{flex-direction:row;justify-content:flex-start;align-items:flex-start;gap:16px}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__picture{height:72px;width:72px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{display:flex;flex-direction:column;align-items:center;justify-content:center}@media (max-width:1023px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{align-items:flex-start}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column{align-items:flex-start}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details{font-size:12px!important;overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-brand{text-transform:uppercase}@media screen{.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__details.product-fullname{height:36px}}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__info-column .miam-product-card__link{font-size:14px}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__badges{display:flex;gap:8px;margin:8px 0}.miam-product-card__container .miam-product-card__content .miam-product-card__selected-product .miam-product-card__badges .miam-product-card__badge-text{color:var(--miam-ds-color-neutral-black,#1f3543);font-size:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action{display:flex;align-items:center;justify-content:space-between;gap:8px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta{display:flex;align-items:center;gap:12px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.square{padding:8px}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-product-card__loading-button{padding:14px}@media (max-width:1024px){.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}@media (min-width:1023px) and (max-height:800px){.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__cta .miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-product-card__container .miam-product-card__content .miam-product-card__lower-action .miam-product-card__price{color:var(--miam-ds-color-primary,#24748f)}.miam-product-card__container .miam-product-card__disabled-text{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.65}.miam-product-card__container .miam-product-card__footer{display:flex;flex-direction:column;align-items:center;background:var(--miam-ds-color-primary-50,#f0f3f4);padding:8px}.miam-product-card__container .miam-product-card__footer .light-text{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.5}"], encapsulation: 2, changeDetection: 0 });
|
|
12526
12786
|
(function () {
|
|
@@ -12533,9 +12793,7 @@
|
|
|
12533
12793
|
encapsulation: i0.ViewEncapsulation.None,
|
|
12534
12794
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
12535
12795
|
}]
|
|
12536
|
-
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: RecipesService }, { type: AnalyticsService }, { type: ItemsService }, { type: IgnoredIngredientsService }, { type: i0__namespace.ElementRef }]; }, {
|
|
12537
|
-
type: i0.Input
|
|
12538
|
-
}], ingredient: [{
|
|
12796
|
+
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: BasketsService }, { type: RecipeDetailsService }, { type: RecipesService }, { type: AnalyticsService }, { type: ItemsService }, { type: IgnoredIngredientsService }, { type: BasketActionsService }, { type: i0__namespace.ElementRef }]; }, { product: [{
|
|
12539
12797
|
type: i0.Input
|
|
12540
12798
|
}] });
|
|
12541
12799
|
})();
|
|
@@ -12635,22 +12893,22 @@
|
|
|
12635
12893
|
|
|
12636
12894
|
function ProductsPickerComponent_div_5_Template(rf, ctx) {
|
|
12637
12895
|
if (rf & 1) {
|
|
12638
|
-
i0__namespace.ɵɵelement(0, "div",
|
|
12896
|
+
i0__namespace.ɵɵelement(0, "div", 11);
|
|
12639
12897
|
}
|
|
12640
12898
|
}
|
|
12641
12899
|
function ProductsPickerComponent_div_7_ng_miam_product_card_1_Template(rf, ctx) {
|
|
12642
12900
|
if (rf & 1) {
|
|
12643
|
-
i0__namespace.ɵɵelement(0, "ng-miam-product-card",
|
|
12901
|
+
i0__namespace.ɵɵelement(0, "ng-miam-product-card", 14);
|
|
12644
12902
|
}
|
|
12645
12903
|
if (rf & 2) {
|
|
12646
12904
|
var product_r8 = ctx.$implicit;
|
|
12647
|
-
i0__namespace.ɵɵproperty("id", "miam_" + product_r8.basketEntry.nameId + "_product_card")("
|
|
12905
|
+
i0__namespace.ɵɵproperty("id", "miam_" + product_r8.basketEntry.nameId + "_product_card")("product", product_r8);
|
|
12648
12906
|
}
|
|
12649
12907
|
}
|
|
12650
12908
|
function ProductsPickerComponent_div_7_Template(rf, ctx) {
|
|
12651
12909
|
if (rf & 1) {
|
|
12652
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
12653
|
-
i0__namespace.ɵɵtemplate(1, ProductsPickerComponent_div_7_ng_miam_product_card_1_Template, 1,
|
|
12910
|
+
i0__namespace.ɵɵelementStart(0, "div", 12);
|
|
12911
|
+
i0__namespace.ɵɵtemplate(1, ProductsPickerComponent_div_7_ng_miam_product_card_1_Template, 1, 2, "ng-miam-product-card", 13);
|
|
12654
12912
|
i0__namespace.ɵɵelementEnd();
|
|
12655
12913
|
}
|
|
12656
12914
|
if (rf & 2) {
|
|
@@ -12659,33 +12917,33 @@
|
|
|
12659
12917
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r1.recipeDetailsService.productsByCategory.toPickProducts)("ngForTrackBy", ctx_r1.trackByFn);
|
|
12660
12918
|
}
|
|
12661
12919
|
}
|
|
12662
|
-
function
|
|
12920
|
+
function ProductsPickerComponent_ng_container_10_ng_miam_product_card_7_Template(rf, ctx) {
|
|
12663
12921
|
if (rf & 1) {
|
|
12664
|
-
i0__namespace.ɵɵelement(0, "ng-miam-product-card",
|
|
12922
|
+
i0__namespace.ɵɵelement(0, "ng-miam-product-card", 14);
|
|
12665
12923
|
}
|
|
12666
12924
|
if (rf & 2) {
|
|
12667
12925
|
var product_r10 = ctx.$implicit;
|
|
12668
|
-
i0__namespace.ɵɵproperty("id", "miam_" + product_r10.basketEntry.nameId + "_product_card")("
|
|
12926
|
+
i0__namespace.ɵɵproperty("id", "miam_" + product_r10.basketEntry.nameId + "_product_card")("product", product_r10);
|
|
12669
12927
|
}
|
|
12670
12928
|
}
|
|
12671
|
-
function
|
|
12929
|
+
function ProductsPickerComponent_ng_container_10_Template(rf, ctx) {
|
|
12672
12930
|
if (rf & 1) {
|
|
12673
12931
|
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
12674
|
-
i0__namespace.ɵɵ
|
|
12675
|
-
i0__namespace.ɵɵelementStart(1, "ng-miam-accordion",
|
|
12676
|
-
i0__namespace.ɵɵlistener("isCollapsedChange", function
|
|
12932
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
12933
|
+
i0__namespace.ɵɵelementStart(1, "ng-miam-accordion", 15);
|
|
12934
|
+
i0__namespace.ɵɵlistener("isCollapsedChange", function ProductsPickerComponent_ng_container_10_Template_ng_miam_accordion_isCollapsedChange_1_listener() { i0__namespace.ɵɵrestoreView(_r12_1); var ctx_r11 = i0__namespace.ɵɵnextContext(); return ctx_r11.cdr.detectChanges(); });
|
|
12677
12935
|
i0__namespace.ɵɵelementStart(2, "ng-miam-accordion-title");
|
|
12678
12936
|
i0__namespace.ɵɵelementStart(3, "span", 2);
|
|
12679
12937
|
i0__namespace.ɵɵtext(4, " D\u00E9j\u00E0 dans le placard ");
|
|
12680
12938
|
i0__namespace.ɵɵelementEnd();
|
|
12681
12939
|
i0__namespace.ɵɵelementEnd();
|
|
12682
12940
|
i0__namespace.ɵɵelementStart(5, "ng-miam-accordion-content");
|
|
12683
|
-
i0__namespace.ɵɵelementStart(6, "div",
|
|
12684
|
-
i0__namespace.ɵɵtemplate(7,
|
|
12685
|
-
i0__namespace.ɵɵelementEnd();
|
|
12941
|
+
i0__namespace.ɵɵelementStart(6, "div", 12);
|
|
12942
|
+
i0__namespace.ɵɵtemplate(7, ProductsPickerComponent_ng_container_10_ng_miam_product_card_7_Template, 1, 2, "ng-miam-product-card", 13);
|
|
12686
12943
|
i0__namespace.ɵɵelementEnd();
|
|
12687
12944
|
i0__namespace.ɵɵelementEnd();
|
|
12688
12945
|
i0__namespace.ɵɵelementEnd();
|
|
12946
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
12689
12947
|
}
|
|
12690
12948
|
if (rf & 2) {
|
|
12691
12949
|
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
@@ -12695,31 +12953,31 @@
|
|
|
12695
12953
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r2.recipeDetailsService.productsByCategory.oftenIgnoredProducts)("ngForTrackBy", ctx_r2.trackByFn);
|
|
12696
12954
|
}
|
|
12697
12955
|
}
|
|
12698
|
-
function
|
|
12956
|
+
function ProductsPickerComponent_ng_container_11_ng_miam_product_card_6_Template(rf, ctx) {
|
|
12699
12957
|
if (rf & 1) {
|
|
12700
|
-
i0__namespace.ɵɵelement(0, "ng-miam-product-card",
|
|
12958
|
+
i0__namespace.ɵɵelement(0, "ng-miam-product-card", 14);
|
|
12701
12959
|
}
|
|
12702
12960
|
if (rf & 2) {
|
|
12703
12961
|
var product_r14 = ctx.$implicit;
|
|
12704
|
-
i0__namespace.ɵɵproperty("id", "miam_" + product_r14.basketEntry.nameId + "_product_card")("
|
|
12962
|
+
i0__namespace.ɵɵproperty("id", "miam_" + product_r14.basketEntry.nameId + "_product_card")("product", product_r14);
|
|
12705
12963
|
}
|
|
12706
12964
|
}
|
|
12707
|
-
function
|
|
12965
|
+
function ProductsPickerComponent_ng_container_11_Template(rf, ctx) {
|
|
12708
12966
|
if (rf & 1) {
|
|
12709
12967
|
var _r16_1 = i0__namespace.ɵɵgetCurrentView();
|
|
12710
|
-
i0__namespace.ɵɵ
|
|
12711
|
-
i0__namespace.ɵɵelementStart(1, "ng-miam-accordion",
|
|
12712
|
-
i0__namespace.ɵɵlistener("isCollapsedChange", function
|
|
12968
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
12969
|
+
i0__namespace.ɵɵelementStart(1, "ng-miam-accordion", 16);
|
|
12970
|
+
i0__namespace.ɵɵlistener("isCollapsedChange", function ProductsPickerComponent_ng_container_11_Template_ng_miam_accordion_isCollapsedChange_1_listener() { i0__namespace.ɵɵrestoreView(_r16_1); var ctx_r15 = i0__namespace.ɵɵnextContext(); return ctx_r15.cdr.detectChanges(); });
|
|
12713
12971
|
i0__namespace.ɵɵelementStart(2, "ng-miam-accordion-title");
|
|
12714
12972
|
i0__namespace.ɵɵtext(3, " Articles indisponibles ");
|
|
12715
12973
|
i0__namespace.ɵɵelementEnd();
|
|
12716
12974
|
i0__namespace.ɵɵelementStart(4, "ng-miam-accordion-content");
|
|
12717
|
-
i0__namespace.ɵɵelementStart(5, "div",
|
|
12718
|
-
i0__namespace.ɵɵtemplate(6,
|
|
12719
|
-
i0__namespace.ɵɵelementEnd();
|
|
12975
|
+
i0__namespace.ɵɵelementStart(5, "div", 12);
|
|
12976
|
+
i0__namespace.ɵɵtemplate(6, ProductsPickerComponent_ng_container_11_ng_miam_product_card_6_Template, 1, 2, "ng-miam-product-card", 13);
|
|
12720
12977
|
i0__namespace.ɵɵelementEnd();
|
|
12721
12978
|
i0__namespace.ɵɵelementEnd();
|
|
12722
12979
|
i0__namespace.ɵɵelementEnd();
|
|
12980
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
12723
12981
|
}
|
|
12724
12982
|
if (rf & 2) {
|
|
12725
12983
|
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
@@ -12729,12 +12987,12 @@
|
|
|
12729
12987
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r3.recipeDetailsService.productsByCategory.unavailableProducts)("ngForTrackBy", ctx_r3.trackByFn);
|
|
12730
12988
|
}
|
|
12731
12989
|
}
|
|
12732
|
-
function
|
|
12990
|
+
function ProductsPickerComponent_a_13_Template(rf, ctx) {
|
|
12733
12991
|
if (rf & 1) {
|
|
12734
|
-
i0__namespace.ɵɵelementStart(0, "a",
|
|
12735
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
12992
|
+
i0__namespace.ɵɵelementStart(0, "a", 17);
|
|
12993
|
+
i0__namespace.ɵɵelementStart(1, "button", 18);
|
|
12736
12994
|
i0__namespace.ɵɵelementStart(2, "span");
|
|
12737
|
-
i0__namespace.ɵɵi18n(3,
|
|
12995
|
+
i0__namespace.ɵɵi18n(3, 19);
|
|
12738
12996
|
i0__namespace.ɵɵelementEnd();
|
|
12739
12997
|
i0__namespace.ɵɵelementEnd();
|
|
12740
12998
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -12744,13 +13002,13 @@
|
|
|
12744
13002
|
i0__namespace.ɵɵproperty("href", ctx_r4.contextService.catalogUrl, i0__namespace.ɵɵsanitizeUrl);
|
|
12745
13003
|
}
|
|
12746
13004
|
}
|
|
12747
|
-
function
|
|
13005
|
+
function ProductsPickerComponent_ng_template_14_Template(rf, ctx) {
|
|
12748
13006
|
if (rf & 1) {
|
|
12749
13007
|
var _r18_1 = i0__namespace.ɵɵgetCurrentView();
|
|
12750
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
12751
|
-
i0__namespace.ɵɵlistener("click", function
|
|
13008
|
+
i0__namespace.ɵɵelementStart(0, "button", 20);
|
|
13009
|
+
i0__namespace.ɵɵlistener("click", function ProductsPickerComponent_ng_template_14_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.closeRecipeModal(); });
|
|
12752
13010
|
i0__namespace.ɵɵelementStart(1, "span");
|
|
12753
|
-
i0__namespace.ɵɵi18n(2,
|
|
13011
|
+
i0__namespace.ɵɵi18n(2, 21);
|
|
12754
13012
|
i0__namespace.ɵɵelementEnd();
|
|
12755
13013
|
i0__namespace.ɵɵelementEnd();
|
|
12756
13014
|
}
|
|
@@ -12808,7 +13066,7 @@
|
|
|
12808
13066
|
return ProductsPickerComponent;
|
|
12809
13067
|
}());
|
|
12810
13068
|
ProductsPickerComponent.ɵfac = function ProductsPickerComponent_Factory(t) { return new (t || ProductsPickerComponent)(i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef)); };
|
|
12811
|
-
ProductsPickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ProductsPickerComponent, selectors: [["ng-miam-products-picker"]], outputs: { closeModal: "closeModal" }, decls:
|
|
13069
|
+
ProductsPickerComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: ProductsPickerComponent, selectors: [["ng-miam-products-picker"]], outputs: { closeModal: "closeModal" }, decls: 16, vars: 11, consts: function () {
|
|
12812
13070
|
var i18n_0;
|
|
12813
13071
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
12814
13072
|
var MSG_EXTERNAL_7935172570546041466$$LIB__COMPONENTS_PRODUCTS_PICKER_PRODUCTS_PICKER_COMPONENT_TS__1 = goog.getMsg("Voir plus d'id\u00E9es repas");
|
|
@@ -12825,7 +13083,7 @@
|
|
|
12825
13083
|
else {
|
|
12826
13084
|
i18n_2 = $localize(templateObject_2$s || (templateObject_2$s = __makeTemplateObject([":\u241Fe98c28a19e26d5768391fd181582d011334dac18\u241F7935172570546041466:Voir plus d'id\u00E9es repas"], [":\u241Fe98c28a19e26d5768391fd181582d011334dac18\u241F7935172570546041466:Voir plus d'id\u00E9es repas"])));
|
|
12827
13085
|
}
|
|
12828
|
-
return [[1, "miam-products-picker__container"], [1, "miam-products-picker__header"], [1, "miam-ds-text", "weight-xxl"], [1, "miam-products-picker__header-text"], ["class", " miam-ds-loader miam-products-picker__loader", 4, "ngIf"], ["class", "miam-products-picker__list", 4, "ngIf"], [4, "ngIf"], [1, "miam-products-picker__more"], ["class", "miam-products-picker__more-anchor", 3, "href", 4, "ngIf", "ngIfElse"], ["noAnchor", ""], [1, "miam-ds-loader", "miam-products-picker__loader"], [1, "miam-products-picker__list"], ["class", "miam-products-picker__items", 3, "id", "
|
|
13086
|
+
return [[1, "miam-products-picker__container"], [1, "miam-products-picker__header"], [1, "miam-ds-text", "weight-xxl"], [1, "miam-products-picker__header-text"], ["class", " miam-ds-loader miam-products-picker__loader", 4, "ngIf"], ["class", "miam-products-picker__list", 4, "ngIf"], [1, "miam-products-picker__secondary-list"], [4, "ngIf"], [1, "miam-products-picker__more"], ["class", "miam-products-picker__more-anchor", 3, "href", 4, "ngIf", "ngIfElse"], ["noAnchor", ""], [1, "miam-ds-loader", "miam-products-picker__loader"], [1, "miam-products-picker__list"], ["class", "miam-products-picker__items", 3, "id", "product", 4, "ngFor", "ngForOf", "ngForTrackBy"], [1, "miam-products-picker__items", 3, "id", "product"], [1, "miam-products-picker__often-ignored-list", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-products-picker__unavailable-list", 3, "isCollapsed", "isCollapsedChange"], [1, "miam-products-picker__more-anchor", 3, "href"], [1, "miam-ds-button", "secondary"], i18n_0, [1, "miam-ds-button", "secondary", 3, "click"], i18n_2];
|
|
12829
13087
|
}, template: function ProductsPickerComponent_Template(rf, ctx) {
|
|
12830
13088
|
if (rf & 1) {
|
|
12831
13089
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -12840,30 +13098,32 @@
|
|
|
12840
13098
|
i0__namespace.ɵɵpipe(6, "async");
|
|
12841
13099
|
i0__namespace.ɵɵtemplate(7, ProductsPickerComponent_div_7_Template, 2, 2, "div", 5);
|
|
12842
13100
|
i0__namespace.ɵɵpipe(8, "async");
|
|
12843
|
-
i0__namespace.ɵɵ
|
|
12844
|
-
i0__namespace.ɵɵtemplate(10,
|
|
12845
|
-
i0__namespace.ɵɵ
|
|
12846
|
-
i0__namespace.ɵɵ
|
|
12847
|
-
i0__namespace.ɵɵ
|
|
13101
|
+
i0__namespace.ɵɵelementStart(9, "div", 6);
|
|
13102
|
+
i0__namespace.ɵɵtemplate(10, ProductsPickerComponent_ng_container_10_Template, 8, 3, "ng-container", 7);
|
|
13103
|
+
i0__namespace.ɵɵtemplate(11, ProductsPickerComponent_ng_container_11_Template, 7, 3, "ng-container", 7);
|
|
13104
|
+
i0__namespace.ɵɵelementEnd();
|
|
13105
|
+
i0__namespace.ɵɵelementStart(12, "div", 8);
|
|
13106
|
+
i0__namespace.ɵɵtemplate(13, ProductsPickerComponent_a_13_Template, 4, 1, "a", 9);
|
|
13107
|
+
i0__namespace.ɵɵtemplate(14, ProductsPickerComponent_ng_template_14_Template, 3, 0, "ng-template", null, 10, i0__namespace.ɵɵtemplateRefExtractor);
|
|
12848
13108
|
i0__namespace.ɵɵelementEnd();
|
|
12849
13109
|
i0__namespace.ɵɵelementEnd();
|
|
12850
13110
|
}
|
|
12851
13111
|
if (rf & 2) {
|
|
12852
|
-
var _r5 = i0__namespace.ɵɵreference(
|
|
13112
|
+
var _r5 = i0__namespace.ɵɵreference(15);
|
|
12853
13113
|
i0__namespace.ɵɵadvance(4);
|
|
12854
13114
|
i0__namespace.ɵɵtextInterpolate1("", ctx.recipeDetailsService.totalProducts, " ingr\u00E9dients");
|
|
12855
13115
|
i0__namespace.ɵɵadvance(1);
|
|
12856
13116
|
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(6, 7, ctx.recipeDetailsService.productsLoading$));
|
|
12857
13117
|
i0__namespace.ɵɵadvance(2);
|
|
12858
13118
|
i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(8, 9, ctx.recipeDetailsService.productsLoading$));
|
|
12859
|
-
i0__namespace.ɵɵadvance(
|
|
13119
|
+
i0__namespace.ɵɵadvance(3);
|
|
12860
13120
|
i0__namespace.ɵɵproperty("ngIf", ctx.recipeDetailsService.productsByCategory.oftenIgnoredProducts.length > 0);
|
|
12861
13121
|
i0__namespace.ɵɵadvance(1);
|
|
12862
13122
|
i0__namespace.ɵɵproperty("ngIf", ctx.recipeDetailsService.productsByCategory.unavailableProducts.length > 0);
|
|
12863
13123
|
i0__namespace.ɵɵadvance(2);
|
|
12864
13124
|
i0__namespace.ɵɵproperty("ngIf", !ctx.isAlreadyOnCatalogPage())("ngIfElse", _r5);
|
|
12865
13125
|
}
|
|
12866
|
-
}, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, ProductCardComponent, AccordionComponent, AccordionTitleDirective, AccordionContentDirective], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-products-picker__container{display:flex;flex-direction:column;gap:16px;padding:16px}.miam-products-picker__container .miam-products-picker__loader{margin:0 auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-products-picker__container .miam-products-picker__header{display:flex;justify-content:space-between;align-items:center}.miam-products-picker__container .miam-products-picker__header .miam-products-picker__header-text{font-size:16px;line-height:150%;color:var(--miam-ds-color-neutral-black,#1f3543)}@media (min-width:1024px){.miam-products-picker__container .miam-products-picker__header .miam-products-picker__header-text{font-size:20px;line-height:120%}}.miam-products-picker__container .miam-products-picker__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(
|
|
13126
|
+
}, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, ProductCardComponent, AccordionComponent, AccordionTitleDirective, AccordionContentDirective], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-products-picker__container{display:flex;flex-direction:column;gap:16px;padding:16px}.miam-products-picker__container .miam-products-picker__loader{margin:0 auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-products-picker__container .miam-products-picker__header{display:flex;justify-content:space-between;align-items:center}.miam-products-picker__container .miam-products-picker__header .miam-products-picker__header-text{font-size:16px;line-height:150%;color:var(--miam-ds-color-neutral-black,#1f3543)}@media (min-width:1024px){.miam-products-picker__container .miam-products-picker__header .miam-products-picker__header-text{font-size:20px;line-height:120%}}.miam-products-picker__container .miam-products-picker__list{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));grid-gap:16px}@media (max-width:640px){.miam-products-picker__container .miam-products-picker__list{grid-gap:8px}}.miam-products-picker__container .miam-products-picker__secondary-list{display:flex;flex-direction:column}.miam-products-picker__container .miam-products-picker__more{display:flex;justify-content:center}.miam-products-picker__container .miam-products-picker__more .miam-products-picker__more-anchor{text-decoration:inherit}"], encapsulation: 2, changeDetection: 0 });
|
|
12867
13127
|
(function () {
|
|
12868
13128
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(ProductsPickerComponent, [{
|
|
12869
13129
|
type: i0.Component,
|
|
@@ -12896,14 +13156,16 @@
|
|
|
12896
13156
|
AutowidthInputDirective,
|
|
12897
13157
|
ExtendedDatePipe,
|
|
12898
13158
|
ReachTopDirective,
|
|
12899
|
-
InViewportDirective
|
|
13159
|
+
InViewportDirective,
|
|
13160
|
+
LoadOnScrollDirective], exports: [ReadableFloatNumberPipe,
|
|
12900
13161
|
EllipsisPipe,
|
|
12901
13162
|
SafePipe,
|
|
12902
13163
|
CapitalizeFirstLetterPipe,
|
|
12903
13164
|
AutowidthInputDirective,
|
|
12904
13165
|
ExtendedDatePipe,
|
|
12905
13166
|
ReachTopDirective,
|
|
12906
|
-
InViewportDirective
|
|
13167
|
+
InViewportDirective,
|
|
13168
|
+
LoadOnScrollDirective] });
|
|
12907
13169
|
})();
|
|
12908
13170
|
(function () {
|
|
12909
13171
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(UtilsModule, [{
|
|
@@ -12918,7 +13180,8 @@
|
|
|
12918
13180
|
AutowidthInputDirective,
|
|
12919
13181
|
ExtendedDatePipe,
|
|
12920
13182
|
ReachTopDirective,
|
|
12921
|
-
InViewportDirective
|
|
13183
|
+
InViewportDirective,
|
|
13184
|
+
LoadOnScrollDirective
|
|
12922
13185
|
],
|
|
12923
13186
|
exports: [
|
|
12924
13187
|
ReadableFloatNumberPipe,
|
|
@@ -12928,7 +13191,8 @@
|
|
|
12928
13191
|
AutowidthInputDirective,
|
|
12929
13192
|
ExtendedDatePipe,
|
|
12930
13193
|
ReachTopDirective,
|
|
12931
|
-
InViewportDirective
|
|
13194
|
+
InViewportDirective,
|
|
13195
|
+
LoadOnScrollDirective
|
|
12932
13196
|
]
|
|
12933
13197
|
}]
|
|
12934
13198
|
}], null, null);
|
|
@@ -13141,7 +13405,7 @@
|
|
|
13141
13405
|
i0__namespace.ɵɵelement(0, "ng-miam-loader");
|
|
13142
13406
|
}
|
|
13143
13407
|
}
|
|
13144
|
-
var _c10 = function (a0) { return { loading: a0 }; };
|
|
13408
|
+
var _c10$2 = function (a0) { return { loading: a0 }; };
|
|
13145
13409
|
function BasketPreviewDisabledComponent_div_10_div_1_button_4_Template(rf, ctx) {
|
|
13146
13410
|
if (rf & 1) {
|
|
13147
13411
|
var _r12_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -13156,7 +13420,7 @@
|
|
|
13156
13420
|
if (rf & 2) {
|
|
13157
13421
|
var entry_r5 = i0__namespace.ɵɵnextContext().$implicit;
|
|
13158
13422
|
var ctx_r6 = i0__namespace.ɵɵnextContext(2);
|
|
13159
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c10, ctx_r6.loading[entry_r5.id]));
|
|
13423
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(4, _c10$2, ctx_r6.loading[entry_r5.id]));
|
|
13160
13424
|
i0__namespace.ɵɵadvance(1);
|
|
13161
13425
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r6.loading[entry_r5.id]);
|
|
13162
13426
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -13197,7 +13461,7 @@
|
|
|
13197
13461
|
i0__namespace.ɵɵproperty("ngForOf", ctx_r3.entries);
|
|
13198
13462
|
}
|
|
13199
13463
|
}
|
|
13200
|
-
var _c11
|
|
13464
|
+
var _c11 = function (a0) { return { "miam-basket-preview-disabled__chevron__down": a0 }; };
|
|
13201
13465
|
var MODES_CONFIG = {
|
|
13202
13466
|
unavailable: { cssClass: 'unavailable' },
|
|
13203
13467
|
removed: { cssClass: 'removed' },
|
|
@@ -13293,7 +13557,7 @@
|
|
|
13293
13557
|
i18n_8 = MSG_EXTERNAL_7632520172633395699$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_DISABLED_BASKET_PREVIEW_DISABLED_COMPONENT_TS_____9;
|
|
13294
13558
|
}
|
|
13295
13559
|
else {
|
|
13296
|
-
i18n_8 = $localize(templateObject_5$
|
|
13560
|
+
i18n_8 = $localize(templateObject_5$d || (templateObject_5$d = __makeTemplateObject([":\u241Fe31c09107c2be79ac21e40a68b0f4ab125f4ab8b\u241F7632520172633395699: au panier"], [":\u241Fe31c09107c2be79ac21e40a68b0f4ab125f4ab8b\u241F7632520172633395699: au panier"])));
|
|
13297
13561
|
}
|
|
13298
13562
|
return [[1, "miam-basket-preview-disabled"], [1, "miam-basket-preview-disabled__header", 3, "ngClass", "click"], [1, "miam-basket-preview-disabled__header__caption"], ["class", "miam-basket-preview-disabled__header__caption__text", 4, "ngIf"], [1, "miam-basket-preview-disabled__header__caption__number"], [1, "miam-basket-preview-disabled__header__chevron", 3, "ngClass"], ["height", "32", "width", "32", "primaryColor", "#fff", 3, "iconName"], [4, "ngIf"], [1, "miam-basket-preview-disabled__header__caption__text"], i18n_0, i18n_2, i18n_4, ["class", "miam-basket-preview-disabled__entry", 4, "ngFor", "ngForOf"], [1, "miam-basket-preview-disabled__entry"], [1, "text-muted"], ["class", "m-button-grey", 3, "ngClass", "click", 4, "ngIf"], [1, "m-button-grey", 3, "ngClass", "click"], i18n_6, i18n_8];
|
|
13299
13563
|
}, template: function BasketPreviewDisabledComponent_Template(rf, ctx) {
|
|
@@ -13328,7 +13592,7 @@
|
|
|
13328
13592
|
i0__namespace.ɵɵadvance(2);
|
|
13329
13593
|
i0__namespace.ɵɵtextInterpolate1(" (", ctx.entries.length, ") ");
|
|
13330
13594
|
i0__namespace.ɵɵadvance(1);
|
|
13331
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c11
|
|
13595
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(8, _c11, !ctx.reduced));
|
|
13332
13596
|
i0__namespace.ɵɵadvance(1);
|
|
13333
13597
|
i0__namespace.ɵɵproperty("iconName", ctx.icon.ChevronDown);
|
|
13334
13598
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -13359,19 +13623,19 @@
|
|
|
13359
13623
|
args: ['window:resize', ['$event']]
|
|
13360
13624
|
}] });
|
|
13361
13625
|
})();
|
|
13362
|
-
var templateObject_1$x, templateObject_2$r, templateObject_3$k, templateObject_4$h, templateObject_5$
|
|
13626
|
+
var templateObject_1$x, templateObject_2$r, templateObject_3$k, templateObject_4$h, templateObject_5$d;
|
|
13363
13627
|
|
|
13364
|
-
function
|
|
13628
|
+
function BasketPreviewLineComponent_ng_container_0_img_32_Template(rf, ctx) {
|
|
13365
13629
|
if (rf & 1) {
|
|
13366
|
-
i0__namespace.ɵɵelement(0, "img",
|
|
13630
|
+
i0__namespace.ɵɵelement(0, "img", 25);
|
|
13367
13631
|
}
|
|
13368
13632
|
}
|
|
13369
|
-
function
|
|
13633
|
+
function BasketPreviewLineComponent_ng_container_0_ng_template_33_Template(rf, ctx) {
|
|
13370
13634
|
if (rf & 1) {
|
|
13371
|
-
i0__namespace.ɵɵelement(0, "div",
|
|
13635
|
+
i0__namespace.ɵɵelement(0, "div", 26);
|
|
13372
13636
|
}
|
|
13373
13637
|
}
|
|
13374
|
-
var
|
|
13638
|
+
var _c8$2 = function (a0) { return { "disabled": a0 }; };
|
|
13375
13639
|
function BasketPreviewLineComponent_ng_container_0_Template(rf, ctx) {
|
|
13376
13640
|
if (rf & 1) {
|
|
13377
13641
|
var _r7_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -13408,27 +13672,40 @@
|
|
|
13408
13672
|
i0__namespace.ɵɵi18n(20, 14);
|
|
13409
13673
|
i0__namespace.ɵɵelementEnd();
|
|
13410
13674
|
i0__namespace.ɵɵelementEnd();
|
|
13411
|
-
i0__namespace.ɵɵ
|
|
13675
|
+
i0__namespace.ɵɵelementStart(21, "span", 15);
|
|
13676
|
+
i0__namespace.ɵɵtext(22);
|
|
13677
|
+
i0__namespace.ɵɵpipe(23, "currency");
|
|
13678
|
+
i0__namespace.ɵɵelementEnd();
|
|
13679
|
+
i0__namespace.ɵɵelementStart(24, "div", 16);
|
|
13680
|
+
i0__namespace.ɵɵelementStart(25, "span");
|
|
13681
|
+
i0__namespace.ɵɵi18n(26, 17);
|
|
13682
|
+
i0__namespace.ɵɵelementEnd();
|
|
13683
|
+
i0__namespace.ɵɵtext(27);
|
|
13684
|
+
i0__namespace.ɵɵpipe(28, "currency");
|
|
13685
|
+
i0__namespace.ɵɵelementStart(29, "span");
|
|
13686
|
+
i0__namespace.ɵɵi18n(30, 18);
|
|
13687
|
+
i0__namespace.ɵɵelementEnd();
|
|
13688
|
+
i0__namespace.ɵɵelementEnd();
|
|
13412
13689
|
i0__namespace.ɵɵelementEnd();
|
|
13413
|
-
i0__namespace.ɵɵelementStart(
|
|
13414
|
-
i0__namespace.ɵɵlistener("click", function
|
|
13415
|
-
i0__namespace.ɵɵtemplate(
|
|
13416
|
-
i0__namespace.ɵɵtemplate(
|
|
13690
|
+
i0__namespace.ɵɵelementStart(31, "button", 19);
|
|
13691
|
+
i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_0_Template_button_click_31_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r9 = i0__namespace.ɵɵnextContext(); return ctx_r9.removeLine($event); });
|
|
13692
|
+
i0__namespace.ɵɵtemplate(32, BasketPreviewLineComponent_ng_container_0_img_32_Template, 1, 0, "img", 20);
|
|
13693
|
+
i0__namespace.ɵɵtemplate(33, BasketPreviewLineComponent_ng_container_0_ng_template_33_Template, 1, 0, "ng-template", null, 21, i0__namespace.ɵɵtemplateRefExtractor);
|
|
13417
13694
|
i0__namespace.ɵɵelementEnd();
|
|
13418
13695
|
i0__namespace.ɵɵelementEnd();
|
|
13419
|
-
i0__namespace.ɵɵelementStart(
|
|
13420
|
-
i0__namespace.ɵɵlistener("click", function
|
|
13421
|
-
i0__namespace.ɵɵelementStart(
|
|
13422
|
-
i0__namespace.ɵɵi18n(
|
|
13696
|
+
i0__namespace.ɵɵelementStart(35, "button", 22);
|
|
13697
|
+
i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_container_0_Template_button_click_35_listener($event) { i0__namespace.ɵɵrestoreView(_r7_1); var ctx_r10 = i0__namespace.ɵɵnextContext(); return ctx_r10.toggleRecipeDisplay($event); });
|
|
13698
|
+
i0__namespace.ɵɵelementStart(36, "span");
|
|
13699
|
+
i0__namespace.ɵɵi18n(37, 23);
|
|
13423
13700
|
i0__namespace.ɵɵelementEnd();
|
|
13424
|
-
i0__namespace.ɵɵelement(
|
|
13701
|
+
i0__namespace.ɵɵelement(38, "img", 24);
|
|
13425
13702
|
i0__namespace.ɵɵelementEnd();
|
|
13426
13703
|
i0__namespace.ɵɵelementEnd();
|
|
13427
13704
|
i0__namespace.ɵɵelementEnd();
|
|
13428
13705
|
i0__namespace.ɵɵelementContainerEnd();
|
|
13429
13706
|
}
|
|
13430
13707
|
if (rf & 2) {
|
|
13431
|
-
var _r4 = i0__namespace.ɵɵreference(
|
|
13708
|
+
var _r4 = i0__namespace.ɵɵreference(34);
|
|
13432
13709
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
13433
13710
|
i0__namespace.ɵɵadvance(1);
|
|
13434
13711
|
i0__namespace.ɵɵpropertyInterpolate("id", ctx_r0.line.id);
|
|
@@ -13440,17 +13717,19 @@
|
|
|
13440
13717
|
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind1(15, 10, ctx_r0.line.title));
|
|
13441
13718
|
i0__namespace.ɵɵadvance(4);
|
|
13442
13719
|
i0__namespace.ɵɵtextInterpolate(ctx_r0.countProducts);
|
|
13443
|
-
i0__namespace.ɵɵadvance(
|
|
13444
|
-
i0__namespace.ɵɵ
|
|
13445
|
-
i0__namespace.ɵɵadvance(
|
|
13446
|
-
i0__namespace.ɵɵ
|
|
13720
|
+
i0__namespace.ɵɵadvance(4);
|
|
13721
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(23, 12, ctx_r0.line.price, ctx_r0.suppliersService.supplier$.value.currency));
|
|
13722
|
+
i0__namespace.ɵɵadvance(5);
|
|
13723
|
+
i0__namespace.ɵɵtextInterpolate(i0__namespace.ɵɵpipeBind2(28, 15, +ctx_r0.line.price / +ctx_r0.line.count, ctx_r0.suppliersService.supplier$.value.currency));
|
|
13724
|
+
i0__namespace.ɵɵadvance(4);
|
|
13725
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(18, _c8$2, ctx_r0.disableRemove));
|
|
13447
13726
|
i0__namespace.ɵɵadvance(1);
|
|
13448
13727
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r0.removing)("ngIfElse", _r4);
|
|
13449
13728
|
}
|
|
13450
13729
|
}
|
|
13451
13730
|
function BasketPreviewLineComponent_ng_template_1_button_3_ng_miam_icon_1_Template(rf, ctx) {
|
|
13452
13731
|
if (rf & 1) {
|
|
13453
|
-
i0__namespace.ɵɵelement(0, "ng-miam-icon",
|
|
13732
|
+
i0__namespace.ɵɵelement(0, "ng-miam-icon", 53);
|
|
13454
13733
|
}
|
|
13455
13734
|
if (rf & 2) {
|
|
13456
13735
|
var ctx_r26 = i0__namespace.ɵɵnextContext(3);
|
|
@@ -13459,32 +13738,32 @@
|
|
|
13459
13738
|
}
|
|
13460
13739
|
function BasketPreviewLineComponent_ng_template_1_button_3_ng_template_2_Template(rf, ctx) {
|
|
13461
13740
|
if (rf & 1) {
|
|
13462
|
-
i0__namespace.ɵɵelement(0, "div",
|
|
13741
|
+
i0__namespace.ɵɵelement(0, "div", 26);
|
|
13463
13742
|
}
|
|
13464
13743
|
}
|
|
13465
|
-
var
|
|
13744
|
+
var _c9$1 = function (a0, a1) { return { "disabled": a0, "loading": a1 }; };
|
|
13466
13745
|
function BasketPreviewLineComponent_ng_template_1_button_3_Template(rf, ctx) {
|
|
13467
13746
|
if (rf & 1) {
|
|
13468
13747
|
var _r30_1 = i0__namespace.ɵɵgetCurrentView();
|
|
13469
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
13748
|
+
i0__namespace.ɵɵelementStart(0, "button", 51);
|
|
13470
13749
|
i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_button_3_Template_button_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r30_1); var ctx_r29 = i0__namespace.ɵɵnextContext(2); return ctx_r29.removeLine($event); });
|
|
13471
|
-
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_button_3_ng_miam_icon_1_Template, 1, 3, "ng-miam-icon",
|
|
13472
|
-
i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_button_3_ng_template_2_Template, 1, 0, "ng-template", null,
|
|
13750
|
+
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_button_3_ng_miam_icon_1_Template, 1, 3, "ng-miam-icon", 52);
|
|
13751
|
+
i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_button_3_ng_template_2_Template, 1, 0, "ng-template", null, 21, i0__namespace.ɵɵtemplateRefExtractor);
|
|
13473
13752
|
i0__namespace.ɵɵelementEnd();
|
|
13474
13753
|
}
|
|
13475
13754
|
if (rf & 2) {
|
|
13476
13755
|
var _r27 = i0__namespace.ɵɵreference(3);
|
|
13477
13756
|
var ctx_r11 = i0__namespace.ɵɵnextContext(2);
|
|
13478
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(3,
|
|
13757
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction2(3, _c9$1, ctx_r11.disableRemove, ctx_r11.removing));
|
|
13479
13758
|
i0__namespace.ɵɵadvance(1);
|
|
13480
13759
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r11.removing)("ngIfElse", _r27);
|
|
13481
13760
|
}
|
|
13482
13761
|
}
|
|
13483
13762
|
function BasketPreviewLineComponent_ng_template_1_div_7_Template(rf, ctx) {
|
|
13484
13763
|
if (rf & 1) {
|
|
13485
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13764
|
+
i0__namespace.ɵɵelementStart(0, "div", 54);
|
|
13486
13765
|
i0__namespace.ɵɵelementStart(1, "span");
|
|
13487
|
-
i0__namespace.ɵɵi18n(2,
|
|
13766
|
+
i0__namespace.ɵɵi18n(2, 55);
|
|
13488
13767
|
i0__namespace.ɵɵelementEnd();
|
|
13489
13768
|
i0__namespace.ɵɵelementEnd();
|
|
13490
13769
|
}
|
|
@@ -13503,7 +13782,7 @@
|
|
|
13503
13782
|
}
|
|
13504
13783
|
function BasketPreviewLineComponent_ng_template_1_div_14_span_1_Template(rf, ctx) {
|
|
13505
13784
|
if (rf & 1) {
|
|
13506
|
-
i0__namespace.ɵɵelementStart(0, "span",
|
|
13785
|
+
i0__namespace.ɵɵelementStart(0, "span", 58);
|
|
13507
13786
|
i0__namespace.ɵɵtext(1);
|
|
13508
13787
|
i0__namespace.ɵɵelementEnd();
|
|
13509
13788
|
}
|
|
@@ -13516,7 +13795,7 @@
|
|
|
13516
13795
|
function BasketPreviewLineComponent_ng_template_1_div_14_Template(rf, ctx) {
|
|
13517
13796
|
if (rf & 1) {
|
|
13518
13797
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
13519
|
-
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_14_span_1_Template, 2, 1, "span",
|
|
13798
|
+
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_14_span_1_Template, 2, 1, "span", 56);
|
|
13520
13799
|
i0__namespace.ɵɵelementStart(2, "span");
|
|
13521
13800
|
i0__namespace.ɵɵtext(3);
|
|
13522
13801
|
i0__namespace.ɵɵpipe(4, "async");
|
|
@@ -13525,7 +13804,7 @@
|
|
|
13525
13804
|
i0__namespace.ɵɵtext(6, " /");
|
|
13526
13805
|
i0__namespace.ɵɵelementEnd();
|
|
13527
13806
|
i0__namespace.ɵɵelementStart(7, "span");
|
|
13528
|
-
i0__namespace.ɵɵi18n(8,
|
|
13807
|
+
i0__namespace.ɵɵi18n(8, 57);
|
|
13529
13808
|
i0__namespace.ɵɵelementEnd();
|
|
13530
13809
|
i0__namespace.ɵɵelementEnd();
|
|
13531
13810
|
}
|
|
@@ -13540,28 +13819,28 @@
|
|
|
13540
13819
|
function BasketPreviewLineComponent_ng_template_1_div_16_span_1_Template(rf, ctx) {
|
|
13541
13820
|
if (rf & 1) {
|
|
13542
13821
|
i0__namespace.ɵɵelementStart(0, "span");
|
|
13543
|
-
i0__namespace.ɵɵi18n(1,
|
|
13822
|
+
i0__namespace.ɵɵi18n(1, 60);
|
|
13544
13823
|
i0__namespace.ɵɵelementEnd();
|
|
13545
13824
|
}
|
|
13546
13825
|
}
|
|
13547
13826
|
function BasketPreviewLineComponent_ng_template_1_div_16_span_2_Template(rf, ctx) {
|
|
13548
13827
|
if (rf & 1) {
|
|
13549
13828
|
i0__namespace.ɵɵelementStart(0, "span");
|
|
13550
|
-
i0__namespace.ɵɵi18n(1,
|
|
13829
|
+
i0__namespace.ɵɵi18n(1, 61);
|
|
13551
13830
|
i0__namespace.ɵɵelementEnd();
|
|
13552
13831
|
}
|
|
13553
13832
|
}
|
|
13554
|
-
var
|
|
13833
|
+
var _c18$1 = function (a0) { return { "expanded": a0 }; };
|
|
13555
13834
|
function BasketPreviewLineComponent_ng_template_1_div_16_Template(rf, ctx) {
|
|
13556
13835
|
if (rf & 1) {
|
|
13557
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13558
|
-
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_16_span_1_Template, 2, 0, "span",
|
|
13559
|
-
i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_16_span_2_Template, 2, 0, "span",
|
|
13836
|
+
i0__namespace.ɵɵelementStart(0, "div", 59);
|
|
13837
|
+
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_16_span_1_Template, 2, 0, "span", 36);
|
|
13838
|
+
i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_16_span_2_Template, 2, 0, "span", 36);
|
|
13560
13839
|
i0__namespace.ɵɵelementEnd();
|
|
13561
13840
|
}
|
|
13562
13841
|
if (rf & 2) {
|
|
13563
13842
|
var ctx_r15 = i0__namespace.ɵɵnextContext(2);
|
|
13564
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(3,
|
|
13843
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(3, _c18$1, ctx_r15.expanded));
|
|
13565
13844
|
i0__namespace.ɵɵadvance(1);
|
|
13566
13845
|
i0__namespace.ɵɵproperty("ngIf", ctx_r15.expanded);
|
|
13567
13846
|
i0__namespace.ɵɵadvance(1);
|
|
@@ -13570,26 +13849,26 @@
|
|
|
13570
13849
|
}
|
|
13571
13850
|
function BasketPreviewLineComponent_ng_template_1_div_17_Template(rf, ctx) {
|
|
13572
13851
|
if (rf & 1) {
|
|
13573
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13574
|
-
i0__namespace.ɵɵi18n(1,
|
|
13852
|
+
i0__namespace.ɵɵelementStart(0, "div", 62);
|
|
13853
|
+
i0__namespace.ɵɵi18n(1, 63);
|
|
13575
13854
|
i0__namespace.ɵɵelementEnd();
|
|
13576
13855
|
}
|
|
13577
13856
|
}
|
|
13578
|
-
var
|
|
13857
|
+
var _c23$1 = function (a0) { return { "disable": a0 }; };
|
|
13579
13858
|
function BasketPreviewLineComponent_ng_template_1_div_18_Template(rf, ctx) {
|
|
13580
13859
|
if (rf & 1) {
|
|
13581
13860
|
var _r36_1 = i0__namespace.ɵɵgetCurrentView();
|
|
13582
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13861
|
+
i0__namespace.ɵɵelementStart(0, "div", 64);
|
|
13583
13862
|
i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_div_18_Template_div_click_0_listener() { i0__namespace.ɵɵrestoreView(_r36_1); var ctx_r35 = i0__namespace.ɵɵnextContext(2); return ctx_r35.changeProduct(ctx_r35.line); });
|
|
13584
|
-
i0__namespace.ɵɵelementStart(1, "a",
|
|
13585
|
-
i0__namespace.ɵɵi18n(2,
|
|
13863
|
+
i0__namespace.ɵɵelementStart(1, "a", 65);
|
|
13864
|
+
i0__namespace.ɵɵi18n(2, 66);
|
|
13586
13865
|
i0__namespace.ɵɵelementEnd();
|
|
13587
13866
|
i0__namespace.ɵɵelementEnd();
|
|
13588
13867
|
}
|
|
13589
13868
|
if (rf & 2) {
|
|
13590
13869
|
var ctx_r17 = i0__namespace.ɵɵnextContext(2);
|
|
13591
13870
|
i0__namespace.ɵɵadvance(1);
|
|
13592
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(1,
|
|
13871
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(1, _c23$1, ctx_r17.disableItemSelector));
|
|
13593
13872
|
}
|
|
13594
13873
|
}
|
|
13595
13874
|
function BasketPreviewLineComponent_ng_template_1_div_19_span_2_Template(rf, ctx) {
|
|
@@ -13606,9 +13885,9 @@
|
|
|
13606
13885
|
}
|
|
13607
13886
|
function BasketPreviewLineComponent_ng_template_1_div_19_Template(rf, ctx) {
|
|
13608
13887
|
if (rf & 1) {
|
|
13609
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13610
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
13611
|
-
i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_19_span_2_Template, 2, 1, "span",
|
|
13888
|
+
i0__namespace.ɵɵelementStart(0, "div", 67);
|
|
13889
|
+
i0__namespace.ɵɵelementStart(1, "div", 68);
|
|
13890
|
+
i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_19_span_2_Template, 2, 1, "span", 69);
|
|
13612
13891
|
i0__namespace.ɵɵelementEnd();
|
|
13613
13892
|
i0__namespace.ɵɵelementEnd();
|
|
13614
13893
|
}
|
|
@@ -13620,7 +13899,7 @@
|
|
|
13620
13899
|
}
|
|
13621
13900
|
function BasketPreviewLineComponent_ng_template_1_div_21_Template(rf, ctx) {
|
|
13622
13901
|
if (rf & 1) {
|
|
13623
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13902
|
+
i0__namespace.ɵɵelementStart(0, "div", 70);
|
|
13624
13903
|
i0__namespace.ɵɵelementStart(1, "span");
|
|
13625
13904
|
i0__namespace.ɵɵtext(2);
|
|
13626
13905
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -13645,7 +13924,7 @@
|
|
|
13645
13924
|
}
|
|
13646
13925
|
function BasketPreviewLineComponent_ng_template_1_ng_template_22_Template(rf, ctx) {
|
|
13647
13926
|
if (rf & 1) {
|
|
13648
|
-
i0__namespace.ɵɵelement(0, "ng-miam-recipe-pricing",
|
|
13927
|
+
i0__namespace.ɵɵelement(0, "ng-miam-recipe-pricing", 71);
|
|
13649
13928
|
}
|
|
13650
13929
|
if (rf & 2) {
|
|
13651
13930
|
var ctx_r21 = i0__namespace.ɵɵnextContext(2);
|
|
@@ -13654,30 +13933,30 @@
|
|
|
13654
13933
|
}
|
|
13655
13934
|
function BasketPreviewLineComponent_ng_template_1_div_25_Template(rf, ctx) {
|
|
13656
13935
|
if (rf & 1) {
|
|
13657
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13658
|
-
i0__namespace.ɵɵi18n(1,
|
|
13936
|
+
i0__namespace.ɵɵelementStart(0, "div", 72);
|
|
13937
|
+
i0__namespace.ɵɵi18n(1, 73);
|
|
13659
13938
|
i0__namespace.ɵɵelementEnd();
|
|
13660
13939
|
}
|
|
13661
13940
|
}
|
|
13662
13941
|
function BasketPreviewLineComponent_ng_template_1_div_27_span_1_Template(rf, ctx) {
|
|
13663
13942
|
if (rf & 1) {
|
|
13664
13943
|
i0__namespace.ɵɵelementStart(0, "span");
|
|
13665
|
-
i0__namespace.ɵɵi18n(1,
|
|
13944
|
+
i0__namespace.ɵɵi18n(1, 75);
|
|
13666
13945
|
i0__namespace.ɵɵelementEnd();
|
|
13667
13946
|
}
|
|
13668
13947
|
}
|
|
13669
13948
|
function BasketPreviewLineComponent_ng_template_1_div_27_span_2_Template(rf, ctx) {
|
|
13670
13949
|
if (rf & 1) {
|
|
13671
13950
|
i0__namespace.ɵɵelementStart(0, "span");
|
|
13672
|
-
i0__namespace.ɵɵi18n(1,
|
|
13951
|
+
i0__namespace.ɵɵi18n(1, 76);
|
|
13673
13952
|
i0__namespace.ɵɵelementEnd();
|
|
13674
13953
|
}
|
|
13675
13954
|
}
|
|
13676
13955
|
function BasketPreviewLineComponent_ng_template_1_div_27_Template(rf, ctx) {
|
|
13677
13956
|
if (rf & 1) {
|
|
13678
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13679
|
-
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_27_span_1_Template, 2, 0, "span",
|
|
13680
|
-
i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_27_span_2_Template, 2, 0, "span",
|
|
13957
|
+
i0__namespace.ɵɵelementStart(0, "div", 74);
|
|
13958
|
+
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_27_span_1_Template, 2, 0, "span", 36);
|
|
13959
|
+
i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_27_span_2_Template, 2, 0, "span", 36);
|
|
13681
13960
|
i0__namespace.ɵɵelementEnd();
|
|
13682
13961
|
}
|
|
13683
13962
|
if (rf & 2) {
|
|
@@ -13691,10 +13970,10 @@
|
|
|
13691
13970
|
function BasketPreviewLineComponent_ng_template_1_div_28_Template(rf, ctx) {
|
|
13692
13971
|
if (rf & 1) {
|
|
13693
13972
|
var _r42_1 = i0__namespace.ɵɵgetCurrentView();
|
|
13694
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
13695
|
-
i0__namespace.ɵɵelementStart(1, "button",
|
|
13973
|
+
i0__namespace.ɵɵelementStart(0, "div", 77);
|
|
13974
|
+
i0__namespace.ɵɵelementStart(1, "button", 78);
|
|
13696
13975
|
i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_div_28_Template_button_click_1_listener($event) { i0__namespace.ɵɵrestoreView(_r42_1); var ctx_r41 = i0__namespace.ɵɵnextContext(2); return ctx_r41.toggleRecipeDisplay($event, true); });
|
|
13697
|
-
i0__namespace.ɵɵelement(2, "ng-miam-icon",
|
|
13976
|
+
i0__namespace.ɵɵelement(2, "ng-miam-icon", 79);
|
|
13698
13977
|
i0__namespace.ɵɵelementEnd();
|
|
13699
13978
|
i0__namespace.ɵɵelementEnd();
|
|
13700
13979
|
}
|
|
@@ -13707,7 +13986,7 @@
|
|
|
13707
13986
|
function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template(rf, ctx) {
|
|
13708
13987
|
if (rf & 1) {
|
|
13709
13988
|
var _r52_1 = i0__namespace.ɵɵgetCurrentView();
|
|
13710
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-line",
|
|
13989
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-line", 86);
|
|
13711
13990
|
i0__namespace.ɵɵlistener("removed", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_removed_0_listener($event) { i0__namespace.ɵɵrestoreView(_r52_1); var ctx_r51 = i0__namespace.ɵɵnextContext(4); return ctx_r51.deleteEntry($event.record); })("replaceItem", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template_ng_miam_basket_preview_line_replaceItem_0_listener() { i0__namespace.ɵɵrestoreView(_r52_1); var ctx_r53 = i0__namespace.ɵɵnextContext(4); return ctx_r53.replaceItem.emit(ctx_r53.line); });
|
|
13712
13991
|
i0__namespace.ɵɵelementEnd();
|
|
13713
13992
|
}
|
|
@@ -13719,7 +13998,7 @@
|
|
|
13719
13998
|
}
|
|
13720
13999
|
function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_3_Template(rf, ctx) {
|
|
13721
14000
|
if (rf & 1) {
|
|
13722
|
-
i0__namespace.ɵɵelement(0, "ng-miam-basket-preview-disabled",
|
|
14001
|
+
i0__namespace.ɵɵelement(0, "ng-miam-basket-preview-disabled", 87);
|
|
13723
14002
|
}
|
|
13724
14003
|
if (rf & 2) {
|
|
13725
14004
|
var ctx_r47 = i0__namespace.ɵɵnextContext(4);
|
|
@@ -13729,7 +14008,7 @@
|
|
|
13729
14008
|
function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template(rf, ctx) {
|
|
13730
14009
|
if (rf & 1) {
|
|
13731
14010
|
var _r55_1 = i0__namespace.ɵɵgetCurrentView();
|
|
13732
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-disabled",
|
|
14011
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 88);
|
|
13733
14012
|
i0__namespace.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0__namespace.ɵɵrestoreView(_r55_1); var ctx_r54 = i0__namespace.ɵɵnextContext(4); return ctx_r54.addEntry($event); });
|
|
13734
14013
|
i0__namespace.ɵɵelementEnd();
|
|
13735
14014
|
}
|
|
@@ -13741,7 +14020,7 @@
|
|
|
13741
14020
|
function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template(rf, ctx) {
|
|
13742
14021
|
if (rf & 1) {
|
|
13743
14022
|
var _r57_1 = i0__namespace.ɵɵgetCurrentView();
|
|
13744
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-disabled",
|
|
14023
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-basket-preview-disabled", 89);
|
|
13745
14024
|
i0__namespace.ɵɵlistener("entryAdded", function BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template_ng_miam_basket_preview_disabled_entryAdded_0_listener($event) { i0__namespace.ɵɵrestoreView(_r57_1); var ctx_r56 = i0__namespace.ɵɵnextContext(4); return ctx_r56.addEntry($event); });
|
|
13746
14025
|
i0__namespace.ɵɵelementEnd();
|
|
13747
14026
|
}
|
|
@@ -13753,11 +14032,11 @@
|
|
|
13753
14032
|
function BasketPreviewLineComponent_ng_template_1_div_29_div_1_Template(rf, ctx) {
|
|
13754
14033
|
if (rf & 1) {
|
|
13755
14034
|
i0__namespace.ɵɵelementStart(0, "div");
|
|
13756
|
-
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template, 1, 6, "ng-miam-basket-preview-line",
|
|
14035
|
+
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_line_1_Template, 1, 6, "ng-miam-basket-preview-line", 82);
|
|
13757
14036
|
i0__namespace.ɵɵpipe(2, "async");
|
|
13758
|
-
i0__namespace.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 2, "ng-miam-basket-preview-disabled",
|
|
13759
|
-
i0__namespace.ɵɵtemplate(4, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 2, "ng-miam-basket-preview-disabled",
|
|
13760
|
-
i0__namespace.ɵɵtemplate(5, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 3, "ng-miam-basket-preview-disabled",
|
|
14037
|
+
i0__namespace.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_3_Template, 1, 2, "ng-miam-basket-preview-disabled", 83);
|
|
14038
|
+
i0__namespace.ɵɵtemplate(4, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_4_Template, 1, 2, "ng-miam-basket-preview-disabled", 84);
|
|
14039
|
+
i0__namespace.ɵɵtemplate(5, BasketPreviewLineComponent_ng_template_1_div_29_div_1_ng_miam_basket_preview_disabled_5_Template, 1, 3, "ng-miam-basket-preview-disabled", 85);
|
|
13761
14040
|
i0__namespace.ɵɵelementEnd();
|
|
13762
14041
|
}
|
|
13763
14042
|
if (rf & 2) {
|
|
@@ -13774,19 +14053,19 @@
|
|
|
13774
14053
|
}
|
|
13775
14054
|
function BasketPreviewLineComponent_ng_template_1_div_29_ng_template_2_Template(rf, ctx) {
|
|
13776
14055
|
if (rf & 1) {
|
|
13777
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
14056
|
+
i0__namespace.ɵɵelementStart(0, "div", 90);
|
|
13778
14057
|
i0__namespace.ɵɵelement(1, "ng-miam-loader");
|
|
13779
14058
|
i0__namespace.ɵɵelementStart(2, "div");
|
|
13780
|
-
i0__namespace.ɵɵi18n(3,
|
|
14059
|
+
i0__namespace.ɵɵi18n(3, 91);
|
|
13781
14060
|
i0__namespace.ɵɵelementEnd();
|
|
13782
14061
|
i0__namespace.ɵɵelementEnd();
|
|
13783
14062
|
}
|
|
13784
14063
|
}
|
|
13785
14064
|
function BasketPreviewLineComponent_ng_template_1_div_29_Template(rf, ctx) {
|
|
13786
14065
|
if (rf & 1) {
|
|
13787
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
14066
|
+
i0__namespace.ɵɵelementStart(0, "div", 80);
|
|
13788
14067
|
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_div_29_div_1_Template, 6, 6, "div", 0);
|
|
13789
|
-
i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_29_ng_template_2_Template, 4, 0, "ng-template", null,
|
|
14068
|
+
i0__namespace.ɵɵtemplate(2, BasketPreviewLineComponent_ng_template_1_div_29_ng_template_2_Template, 4, 0, "ng-template", null, 81, i0__namespace.ɵɵtemplateRefExtractor);
|
|
13790
14069
|
i0__namespace.ɵɵelementEnd();
|
|
13791
14070
|
}
|
|
13792
14071
|
if (rf & 2) {
|
|
@@ -13796,69 +14075,69 @@
|
|
|
13796
14075
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r25.loading)("ngIfElse", _r44);
|
|
13797
14076
|
}
|
|
13798
14077
|
}
|
|
13799
|
-
var
|
|
13800
|
-
var
|
|
14078
|
+
var _c32 = function (a0, a1, a2) { return { clickable: a0, expanded: a1, elevate: a2 }; };
|
|
14079
|
+
var _c33 = function (a0) { return { "with-inline-tag": a0 }; };
|
|
13801
14080
|
function BasketPreviewLineComponent_ng_template_1_Template(rf, ctx) {
|
|
13802
14081
|
if (rf & 1) {
|
|
13803
14082
|
var _r59_1 = i0__namespace.ɵɵgetCurrentView();
|
|
13804
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
14083
|
+
i0__namespace.ɵɵelementStart(0, "div", 27);
|
|
13805
14084
|
i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_Template_div_click_0_listener($event) { i0__namespace.ɵɵrestoreView(_r59_1); var ctx_r58 = i0__namespace.ɵɵnextContext(); return ctx_r58.line.displayMode ? ctx_r58.toggleRecipeDisplay($event) : ctx_r58.toggleExpanded($event); });
|
|
13806
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
13807
|
-
i0__namespace.ɵɵelementStart(2, "div",
|
|
13808
|
-
i0__namespace.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_button_3_Template, 4, 6, "button",
|
|
13809
|
-
i0__namespace.ɵɵelementStart(4, "div",
|
|
14085
|
+
i0__namespace.ɵɵelementStart(1, "div", 28);
|
|
14086
|
+
i0__namespace.ɵɵelementStart(2, "div", 29);
|
|
14087
|
+
i0__namespace.ɵɵtemplate(3, BasketPreviewLineComponent_ng_template_1_button_3_Template, 4, 6, "button", 30);
|
|
14088
|
+
i0__namespace.ɵɵelementStart(4, "div", 31);
|
|
13810
14089
|
i0__namespace.ɵɵelementStart(5, "img", 5);
|
|
13811
14090
|
i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_Template_img_click_5_listener($event) { i0__namespace.ɵɵrestoreView(_r59_1); var ctx_r60 = i0__namespace.ɵɵnextContext(); return ctx_r60.toggleRecipeDisplay($event); });
|
|
13812
14091
|
i0__namespace.ɵɵelementEnd();
|
|
13813
14092
|
i0__namespace.ɵɵelementEnd();
|
|
13814
|
-
i0__namespace.ɵɵelementStart(6, "div",
|
|
13815
|
-
i0__namespace.ɵɵtemplate(7, BasketPreviewLineComponent_ng_template_1_div_7_Template, 3, 0, "div",
|
|
13816
|
-
i0__namespace.ɵɵelementStart(8, "div",
|
|
14093
|
+
i0__namespace.ɵɵelementStart(6, "div", 32);
|
|
14094
|
+
i0__namespace.ɵɵtemplate(7, BasketPreviewLineComponent_ng_template_1_div_7_Template, 3, 0, "div", 33);
|
|
14095
|
+
i0__namespace.ɵɵelementStart(8, "div", 34);
|
|
13817
14096
|
i0__namespace.ɵɵlistener("click", function BasketPreviewLineComponent_ng_template_1_Template_div_click_8_listener($event) { i0__namespace.ɵɵrestoreView(_r59_1); var ctx_r61 = i0__namespace.ɵɵnextContext(); return ctx_r61.toggleRecipeDisplay($event); });
|
|
13818
14097
|
i0__namespace.ɵɵelementStart(9, "strong");
|
|
13819
14098
|
i0__namespace.ɵɵtext(10);
|
|
13820
14099
|
i0__namespace.ɵɵpipe(11, "capitalizeFirstLetter");
|
|
13821
14100
|
i0__namespace.ɵɵelementEnd();
|
|
13822
14101
|
i0__namespace.ɵɵelementEnd();
|
|
13823
|
-
i0__namespace.ɵɵelementStart(12, "div",
|
|
13824
|
-
i0__namespace.ɵɵtemplate(13, BasketPreviewLineComponent_ng_template_1_div_13_Template, 2, 1, "div",
|
|
13825
|
-
i0__namespace.ɵɵtemplate(14, BasketPreviewLineComponent_ng_template_1_div_14_Template, 9, 4, "div",
|
|
14102
|
+
i0__namespace.ɵɵelementStart(12, "div", 35);
|
|
14103
|
+
i0__namespace.ɵɵtemplate(13, BasketPreviewLineComponent_ng_template_1_div_13_Template, 2, 1, "div", 36);
|
|
14104
|
+
i0__namespace.ɵɵtemplate(14, BasketPreviewLineComponent_ng_template_1_div_14_Template, 9, 4, "div", 36);
|
|
13826
14105
|
i0__namespace.ɵɵelementEnd();
|
|
13827
|
-
i0__namespace.ɵɵelementStart(15, "div",
|
|
13828
|
-
i0__namespace.ɵɵtemplate(16, BasketPreviewLineComponent_ng_template_1_div_16_Template, 3, 5, "div",
|
|
13829
|
-
i0__namespace.ɵɵtemplate(17, BasketPreviewLineComponent_ng_template_1_div_17_Template, 2, 0, "div",
|
|
13830
|
-
i0__namespace.ɵɵtemplate(18, BasketPreviewLineComponent_ng_template_1_div_18_Template, 3, 3, "div",
|
|
13831
|
-
i0__namespace.ɵɵtemplate(19, BasketPreviewLineComponent_ng_template_1_div_19_Template, 3, 1, "div",
|
|
14106
|
+
i0__namespace.ɵɵelementStart(15, "div", 37);
|
|
14107
|
+
i0__namespace.ɵɵtemplate(16, BasketPreviewLineComponent_ng_template_1_div_16_Template, 3, 5, "div", 38);
|
|
14108
|
+
i0__namespace.ɵɵtemplate(17, BasketPreviewLineComponent_ng_template_1_div_17_Template, 2, 0, "div", 39);
|
|
14109
|
+
i0__namespace.ɵɵtemplate(18, BasketPreviewLineComponent_ng_template_1_div_18_Template, 3, 3, "div", 40);
|
|
14110
|
+
i0__namespace.ɵɵtemplate(19, BasketPreviewLineComponent_ng_template_1_div_19_Template, 3, 1, "div", 41);
|
|
13832
14111
|
i0__namespace.ɵɵelementEnd();
|
|
13833
14112
|
i0__namespace.ɵɵelementEnd();
|
|
13834
14113
|
i0__namespace.ɵɵelementEnd();
|
|
13835
|
-
i0__namespace.ɵɵelementStart(20, "div",
|
|
13836
|
-
i0__namespace.ɵɵtemplate(21, BasketPreviewLineComponent_ng_template_1_div_21_Template, 8, 5, "div",
|
|
13837
|
-
i0__namespace.ɵɵtemplate(22, BasketPreviewLineComponent_ng_template_1_ng_template_22_Template, 1, 2, "ng-template", null,
|
|
13838
|
-
i0__namespace.ɵɵelementStart(24, "div",
|
|
13839
|
-
i0__namespace.ɵɵtemplate(25, BasketPreviewLineComponent_ng_template_1_div_25_Template, 2, 0, "div",
|
|
13840
|
-
i0__namespace.ɵɵelementStart(26, "ng-miam-counter-input",
|
|
14114
|
+
i0__namespace.ɵɵelementStart(20, "div", 42);
|
|
14115
|
+
i0__namespace.ɵɵtemplate(21, BasketPreviewLineComponent_ng_template_1_div_21_Template, 8, 5, "div", 43);
|
|
14116
|
+
i0__namespace.ɵɵtemplate(22, BasketPreviewLineComponent_ng_template_1_ng_template_22_Template, 1, 2, "ng-template", null, 44, i0__namespace.ɵɵtemplateRefExtractor);
|
|
14117
|
+
i0__namespace.ɵɵelementStart(24, "div", 45);
|
|
14118
|
+
i0__namespace.ɵɵtemplate(25, BasketPreviewLineComponent_ng_template_1_div_25_Template, 2, 0, "div", 46);
|
|
14119
|
+
i0__namespace.ɵɵelementStart(26, "ng-miam-counter-input", 47);
|
|
13841
14120
|
i0__namespace.ɵɵlistener("valueChange", function BasketPreviewLineComponent_ng_template_1_Template_ng_miam_counter_input_valueChange_26_listener($event) { i0__namespace.ɵɵrestoreView(_r59_1); var ctx_r62 = i0__namespace.ɵɵnextContext(); return ctx_r62.changeCount($event); });
|
|
13842
14121
|
i0__namespace.ɵɵelementEnd();
|
|
13843
|
-
i0__namespace.ɵɵtemplate(27, BasketPreviewLineComponent_ng_template_1_div_27_Template, 3, 2, "div",
|
|
14122
|
+
i0__namespace.ɵɵtemplate(27, BasketPreviewLineComponent_ng_template_1_div_27_Template, 3, 2, "div", 48);
|
|
13844
14123
|
i0__namespace.ɵɵelementEnd();
|
|
13845
|
-
i0__namespace.ɵɵtemplate(28, BasketPreviewLineComponent_ng_template_1_div_28_Template, 3, 3, "div",
|
|
14124
|
+
i0__namespace.ɵɵtemplate(28, BasketPreviewLineComponent_ng_template_1_div_28_Template, 3, 3, "div", 49);
|
|
13846
14125
|
i0__namespace.ɵɵelementEnd();
|
|
13847
14126
|
i0__namespace.ɵɵelementEnd();
|
|
13848
14127
|
i0__namespace.ɵɵelementEnd();
|
|
13849
|
-
i0__namespace.ɵɵtemplate(29, BasketPreviewLineComponent_ng_template_1_div_29_Template, 4, 2, "div",
|
|
14128
|
+
i0__namespace.ɵɵtemplate(29, BasketPreviewLineComponent_ng_template_1_div_29_Template, 4, 2, "div", 50);
|
|
13850
14129
|
}
|
|
13851
14130
|
if (rf & 2) {
|
|
13852
14131
|
var _r20 = i0__namespace.ɵɵreference(23);
|
|
13853
14132
|
var ctx_r2 = i0__namespace.ɵɵnextContext();
|
|
13854
14133
|
i0__namespace.ɵɵpropertyInterpolate("id", ctx_r2.line.id);
|
|
13855
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction3(24,
|
|
14134
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction3(24, _c32, ctx_r2.line.hasEntries() || ctx_r2.line.displayMode, ctx_r2.expanded, ctx_r2.selectItem));
|
|
13856
14135
|
i0__namespace.ɵɵadvance(3);
|
|
13857
14136
|
i0__namespace.ɵɵproperty("ngIf", !ctx_r2.uniqueLine && !ctx_r2.line.displayMode);
|
|
13858
14137
|
i0__namespace.ɵɵadvance(2);
|
|
13859
14138
|
i0__namespace.ɵɵproperty("src", ctx_r2.line.picture, i0__namespace.ɵɵsanitizeUrl);
|
|
13860
14139
|
i0__namespace.ɵɵadvance(1);
|
|
13861
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(28,
|
|
14140
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(28, _c33, ctx_r2.line.inlineTag));
|
|
13862
14141
|
i0__namespace.ɵɵadvance(1);
|
|
13863
14142
|
i0__namespace.ɵɵproperty("ngIf", ctx_r2.sponsorised);
|
|
13864
14143
|
i0__namespace.ɵɵadvance(3);
|
|
@@ -13891,7 +14170,7 @@
|
|
|
13891
14170
|
}
|
|
13892
14171
|
var BasketPreviewLineComponent = /** @class */ (function (_super) {
|
|
13893
14172
|
__extends(BasketPreviewLineComponent, _super);
|
|
13894
|
-
function BasketPreviewLineComponent(cdr, recipesService, basketsService, analyticsService, posService, userService, contextService, elementRef, supplierService) {
|
|
14173
|
+
function BasketPreviewLineComponent(cdr, recipesService, basketsService, analyticsService, posService, userService, contextService, suppliersService, elementRef, supplierService) {
|
|
13895
14174
|
var _this = _super.call(this, analyticsService) || this;
|
|
13896
14175
|
_this.cdr = cdr;
|
|
13897
14176
|
_this.recipesService = recipesService;
|
|
@@ -13900,6 +14179,7 @@
|
|
|
13900
14179
|
_this.posService = posService;
|
|
13901
14180
|
_this.userService = userService;
|
|
13902
14181
|
_this.contextService = contextService;
|
|
14182
|
+
_this.suppliersService = suppliersService;
|
|
13903
14183
|
_this.elementRef = elementRef;
|
|
13904
14184
|
_this.supplierService = supplierService;
|
|
13905
14185
|
_this.displayTotalPricing = true;
|
|
@@ -13956,7 +14236,7 @@
|
|
|
13956
14236
|
fields: { recipe: ['number-of-guests'], ingredients: ['name', 'quantity', 'unit'] }
|
|
13957
14237
|
}).pipe(operators.switchMap(function (recipe) {
|
|
13958
14238
|
_this.legacyRecipe = recipe;
|
|
13959
|
-
var requests = recipe.relationships.ingredients.data.map(function (ing) { return _this.basketsService.basketEntryFromIngredient(ing.id).pipe(operators.tap(function (entry) {
|
|
14239
|
+
var requests = recipe.relationships.ingredients.data.map(function (ing) { return _this.basketsService.basketEntryFromIngredient(ing.id, _this.line.count).pipe(operators.tap(function (entry) {
|
|
13960
14240
|
if (_this.legacyIngredientsEntries === undefined) {
|
|
13961
14241
|
_this.legacyIngredientsEntries = [];
|
|
13962
14242
|
}
|
|
@@ -14167,7 +14447,7 @@
|
|
|
14167
14447
|
};
|
|
14168
14448
|
return BasketPreviewLineComponent;
|
|
14169
14449
|
}(EventTracerComponent));
|
|
14170
|
-
BasketPreviewLineComponent.ɵfac = function BasketPreviewLineComponent_Factory(t) { return new (t || BasketPreviewLineComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(SuppliersService)); };
|
|
14450
|
+
BasketPreviewLineComponent.ɵfac = function BasketPreviewLineComponent_Factory(t) { return new (t || BasketPreviewLineComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(AnalyticsService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ElementRef), i0__namespace.ɵɵdirectiveInject(SuppliersService)); };
|
|
14171
14451
|
BasketPreviewLineComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: BasketPreviewLineComponent, selectors: [["ng-miam-basket-preview-line"]], inputs: { line: "line", uniqueLine: "uniqueLine", blockStates: "blockStates", displayTotalPricing: "displayTotalPricing", recipesAlwaysExpanded: "recipesAlwaysExpanded", itemsAlwaysExpanded: "itemsAlwaysExpanded", displayItemsUnitaryPrice: "displayItemsUnitaryPrice", sponsorised: "sponsorised", legacyMode: "legacyMode" }, outputs: { removed: "removed", countChanged: "countChanged", replaceItem: "replaceItem", showRecipe: "showRecipe" }, features: [i0__namespace.ɵɵInheritDefinitionFeature], decls: 3, vars: 2, consts: function () {
|
|
14172
14452
|
var i18n_0;
|
|
14173
14453
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -14179,103 +14459,119 @@
|
|
|
14179
14459
|
}
|
|
14180
14460
|
var i18n_2;
|
|
14181
14461
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14182
|
-
var
|
|
14183
|
-
i18n_2 =
|
|
14462
|
+
var MSG_EXTERNAL_2861269811387022272$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__3 = goog.getMsg("soit ");
|
|
14463
|
+
i18n_2 = MSG_EXTERNAL_2861269811387022272$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__3;
|
|
14184
14464
|
}
|
|
14185
14465
|
else {
|
|
14186
|
-
i18n_2 = $localize(templateObject_2$q || (templateObject_2$q = __makeTemplateObject([":\
|
|
14466
|
+
i18n_2 = $localize(templateObject_2$q || (templateObject_2$q = __makeTemplateObject([":\u241F2706048545fce399fb75b672add0eb745e09ada5\u241F2861269811387022272:soit "], [":\u241F2706048545fce399fb75b672add0eb745e09ada5\u241F2861269811387022272:soit "])));
|
|
14187
14467
|
}
|
|
14188
|
-
var
|
|
14468
|
+
var i18n_4;
|
|
14189
14469
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14190
|
-
var
|
|
14191
|
-
|
|
14470
|
+
var MSG_EXTERNAL_795612159703082771$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__5 = goog.getMsg("/pers");
|
|
14471
|
+
i18n_4 = MSG_EXTERNAL_795612159703082771$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__5;
|
|
14192
14472
|
}
|
|
14193
14473
|
else {
|
|
14194
|
-
|
|
14474
|
+
i18n_4 = $localize(templateObject_3$j || (templateObject_3$j = __makeTemplateObject([":\u241F1c70617413b748533642488f2e142c2f06296f8f\u241F795612159703082771:/pers"], [":\u241F1c70617413b748533642488f2e142c2f06296f8f\u241F795612159703082771:/pers"])));
|
|
14195
14475
|
}
|
|
14196
|
-
var
|
|
14476
|
+
var i18n_6;
|
|
14197
14477
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14198
|
-
var
|
|
14199
|
-
|
|
14478
|
+
var MSG_EXTERNAL_6749102764655247912$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__7 = goog.getMsg("Voir les produits");
|
|
14479
|
+
i18n_6 = MSG_EXTERNAL_6749102764655247912$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS__7;
|
|
14200
14480
|
}
|
|
14201
14481
|
else {
|
|
14202
|
-
|
|
14482
|
+
i18n_6 = $localize(templateObject_4$g || (templateObject_4$g = __makeTemplateObject([":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"], [":\u241Fd68184b8cb73679ad3ecea9935d57f739bea4871\u241F6749102764655247912:Voir les produits"])));
|
|
14203
14483
|
}
|
|
14204
14484
|
var i18n_10;
|
|
14205
14485
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14206
|
-
var
|
|
14207
|
-
i18n_10 =
|
|
14486
|
+
var MSG_EXTERNAL_8545968125113919212$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___11 = goog.getMsg("Sponsoris\u00E9");
|
|
14487
|
+
i18n_10 = MSG_EXTERNAL_8545968125113919212$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___11;
|
|
14208
14488
|
}
|
|
14209
14489
|
else {
|
|
14210
|
-
i18n_10 = $localize(templateObject_5$
|
|
14490
|
+
i18n_10 = $localize(templateObject_5$c || (templateObject_5$c = __makeTemplateObject([":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"], [":\u241F5eb3efea30c37fe427894692cd5e01d298767657\u241F8545968125113919212:Sponsoris\u00E9"])));
|
|
14211
14491
|
}
|
|
14212
14492
|
var i18n_12;
|
|
14213
14493
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14214
|
-
var
|
|
14215
|
-
i18n_12 =
|
|
14494
|
+
var MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___13 = goog.getMsg(" personne ");
|
|
14495
|
+
i18n_12 = MSG_EXTERNAL_943969525955903510$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___13;
|
|
14216
14496
|
}
|
|
14217
14497
|
else {
|
|
14218
|
-
i18n_12 = $localize(templateObject_6$a || (templateObject_6$a = __makeTemplateObject([":\
|
|
14498
|
+
i18n_12 = $localize(templateObject_6$a || (templateObject_6$a = __makeTemplateObject([":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "], [":\u241F464df96417b29e18e7c92bd6bbe85ec8ae81101a\u241F943969525955903510: personne "])));
|
|
14219
14499
|
}
|
|
14220
|
-
var
|
|
14500
|
+
var i18n_14;
|
|
14221
14501
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14222
|
-
var
|
|
14223
|
-
|
|
14502
|
+
var MSG_EXTERNAL_7216398619205393425$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____15 = goog.getMsg("Masquer le d\u00E9tail");
|
|
14503
|
+
i18n_14 = MSG_EXTERNAL_7216398619205393425$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____15;
|
|
14224
14504
|
}
|
|
14225
14505
|
else {
|
|
14226
|
-
|
|
14506
|
+
i18n_14 = $localize(templateObject_7$7 || (templateObject_7$7 = __makeTemplateObject([":\u241F4785d2ed6aa646690f46eb4fe02a1916a39cdbb8\u241F7216398619205393425:Masquer le d\u00E9tail"], [":\u241F4785d2ed6aa646690f46eb4fe02a1916a39cdbb8\u241F7216398619205393425:Masquer le d\u00E9tail"])));
|
|
14227
14507
|
}
|
|
14228
|
-
var
|
|
14508
|
+
var i18n_16;
|
|
14229
14509
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14230
|
-
var
|
|
14231
|
-
|
|
14510
|
+
var MSG_EXTERNAL_1356308905753232069$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____17 = goog.getMsg("Voir le d\u00E9tail");
|
|
14511
|
+
i18n_16 = MSG_EXTERNAL_1356308905753232069$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____17;
|
|
14232
14512
|
}
|
|
14233
14513
|
else {
|
|
14234
|
-
|
|
14514
|
+
i18n_16 = $localize(templateObject_8$5 || (templateObject_8$5 = __makeTemplateObject([":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"], [":\u241F1afb0c360aa8eb58699c70b4f81b79db9b304633\u241F1356308905753232069:Voir le d\u00E9tail"])));
|
|
14235
14515
|
}
|
|
14236
|
-
var
|
|
14516
|
+
var i18n_19;
|
|
14237
14517
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14238
|
-
var
|
|
14239
|
-
|
|
14518
|
+
var MSG_EXTERNAL_5882806197320246536$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___20 = goog.getMsg(" Voir la recette ");
|
|
14519
|
+
i18n_19 = MSG_EXTERNAL_5882806197320246536$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___20;
|
|
14240
14520
|
}
|
|
14241
14521
|
else {
|
|
14242
|
-
|
|
14522
|
+
i18n_19 = $localize(templateObject_9$4 || (templateObject_9$4 = __makeTemplateObject([":\u241Fb13efa64234089d6652cd83ff1b3dc829f22a13e\u241F5882806197320246536: Voir la recette "], [":\u241Fb13efa64234089d6652cd83ff1b3dc829f22a13e\u241F5882806197320246536: Voir la recette "])));
|
|
14243
14523
|
}
|
|
14244
|
-
var
|
|
14524
|
+
var i18n_21;
|
|
14245
14525
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14246
|
-
var
|
|
14247
|
-
|
|
14526
|
+
var MSG_EXTERNAL_2014297263214357463$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___22 = goog.getMsg("Changer d'article");
|
|
14527
|
+
i18n_21 = MSG_EXTERNAL_2014297263214357463$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___22;
|
|
14248
14528
|
}
|
|
14249
14529
|
else {
|
|
14250
|
-
|
|
14530
|
+
i18n_21 = $localize(templateObject_10$2 || (templateObject_10$2 = __makeTemplateObject([":\u241Fc0482d798065c40279036142ef812ebf3942d280\u241F2014297263214357463:Changer d'article"], [":\u241Fc0482d798065c40279036142ef812ebf3942d280\u241F2014297263214357463:Changer d'article"])));
|
|
14251
14531
|
}
|
|
14252
14532
|
var i18n_24;
|
|
14253
14533
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14254
|
-
var
|
|
14255
|
-
i18n_24 =
|
|
14534
|
+
var MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___25 = goog.getMsg("pour");
|
|
14535
|
+
i18n_24 = MSG_EXTERNAL_6410345110451741598$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS___25;
|
|
14256
14536
|
}
|
|
14257
14537
|
else {
|
|
14258
|
-
i18n_24 = $localize(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject([":\
|
|
14538
|
+
i18n_24 = $localize(templateObject_11$2 || (templateObject_11$2 = __makeTemplateObject([":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"], [":\u241F1987d6d2d7b60e267f6d65eb3c4cdb5c975d5f54\u241F6410345110451741598:pour"])));
|
|
14259
14539
|
}
|
|
14260
14540
|
var i18n_26;
|
|
14261
14541
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14262
|
-
var
|
|
14263
|
-
i18n_26 =
|
|
14542
|
+
var MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____27 = goog.getMsg("personnes");
|
|
14543
|
+
i18n_26 = MSG_EXTERNAL_3397501349112812891$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____27;
|
|
14544
|
+
}
|
|
14545
|
+
else {
|
|
14546
|
+
i18n_26 = $localize(templateObject_12$1 || (templateObject_12$1 = __makeTemplateObject([":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"], [":\u241F63e53fe349a9d568182157b18cf3140aca246d62\u241F3397501349112812891:personnes"])));
|
|
14547
|
+
}
|
|
14548
|
+
var i18n_28;
|
|
14549
|
+
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14550
|
+
var MSG_EXTERNAL_2884439310873584392$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____29 = goog.getMsg("personne");
|
|
14551
|
+
i18n_28 = MSG_EXTERNAL_2884439310873584392$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____29;
|
|
14552
|
+
}
|
|
14553
|
+
else {
|
|
14554
|
+
i18n_28 = $localize(templateObject_13$1 || (templateObject_13$1 = __makeTemplateObject([":\u241F1d52fd9a90536a68517dea0fee46df2e64971d3f\u241F2884439310873584392:personne"], [":\u241F1d52fd9a90536a68517dea0fee46df2e64971d3f\u241F2884439310873584392:personne"])));
|
|
14555
|
+
}
|
|
14556
|
+
var i18n_30;
|
|
14557
|
+
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
14558
|
+
var MSG_EXTERNAL_8327069019640670106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____31 = goog.getMsg("Calcul des ingr\u00E9dients...");
|
|
14559
|
+
i18n_30 = MSG_EXTERNAL_8327069019640670106$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_LINE_BASKET_PREVIEW_LINE_COMPONENT_TS____31;
|
|
14264
14560
|
}
|
|
14265
14561
|
else {
|
|
14266
|
-
|
|
14562
|
+
i18n_30 = $localize(templateObject_14$1 || (templateObject_14$1 = __makeTemplateObject([":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."], [":\u241F1eacd4f46056d28691469ea02279e20c0642e699\u241F8327069019640670106:Calcul des ingr\u00E9dients..."])));
|
|
14267
14563
|
}
|
|
14268
|
-
return [[4, "ngIf", "ngIfElse"], ["legacyView", ""], [1, "miam-basket-preview-line", 3, "id"], [1, "miam-basket-preview-line__left"], [1, "miam-basket-preview-line__picture"], ["alt", "recipe picture", 3, "src", "click"], [1, "miam-basket-preview-line__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/recipe-counter.svg", "alt", "people"], [1, "miam-basket-preview-line__right"], [1, "miam-basket-preview-line__top"], [1, "miam-basket-preview-line__infos"], [1, "miam-basket-preview-line__title", "miam-ds-text", "weight-xxl", "size-m", 3, "click"], [1, "miam-basket-preview-line__product-count", "miam-ds-text", "weight-l", "size-s"], i18n_0, [
|
|
14564
|
+
return [[4, "ngIf", "ngIfElse"], ["legacyView", ""], [1, "miam-basket-preview-line", 3, "id"], [1, "miam-basket-preview-line__left"], [1, "miam-basket-preview-line__picture"], ["alt", "recipe picture", 3, "src", "click"], [1, "miam-basket-preview-line__counter"], [1, "miam-ds-text", "weight-xxl", "size-m"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/recipe-counter.svg", "alt", "people"], [1, "miam-basket-preview-line__right"], [1, "miam-basket-preview-line__top"], [1, "miam-basket-preview-line__infos"], [1, "miam-basket-preview-line__title", "miam-ds-text", "weight-xxl", "size-m", 3, "click"], [1, "miam-basket-preview-line__product-count", "miam-ds-text", "weight-l", "size-s"], i18n_0, [1, "miam-basket-preview-line__price-label", "miam-ds-text", "weight-xxl"], [1, "miam-basket-preview-line__price-per-person-label", "miam-ds-text", "weight-l", "size-xs"], i18n_2, i18n_4, [1, "miam-basket-preview-line__remove", "miam-ds-button", "ghost", 3, "ngClass", "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "remove recipe", 4, "ngIf", "ngIfElse"], ["removeLoader", ""], [1, "miam-basket-preview-line__link", "miam-ds-button", "ghost", 3, "click"], i18n_6, ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/arrow-right.svg", "alt", "arrow right"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/trash.svg", "alt", "remove recipe"], [1, "miam-ds-loader"], [1, "miam-basket-preview-line", "legacy", 3, "id", "ngClass", "click"], [1, "miam-basket-preview-line__item"], [1, "miam-basket-preview-line__item__left"], ["class", "miam-ds-button ghost square miam-basket-preview-line__item__remove", 3, "ngClass", "click", 4, "ngIf"], [1, "miam-basket-preview-line__item__picture"], [1, "miam-basket-preview-line__item__details", 3, "ngClass"], ["class", "miam-basket-preview-line__item__sponsorised", 4, "ngIf"], [1, "miam-basket-preview-line__item__title", 3, "click"], [1, "miam-basket-preview-line__item__description"], [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, "value", "minRange", "disable", "valueChange"], ["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-ds-button", "ghost", "square", "miam-basket-preview-line__item__remove", 3, "ngClass", "click"], [3, "iconName", "height", "width", 4, "ngIf", "ngIfElse"], [3, "iconName", "height", "width"], [1, "miam-basket-preview-line__item__sponsorised"], i18n_10, ["class", "miam-basket-preview-line__item__description__part", 4, "ngFor", "ngForOf"], i18n_12, [1, "miam-basket-preview-line__item__description__part"], [1, "miam-basket-preview-line__item__showDetails", 3, "ngClass"], i18n_14, i18n_16, [1, "miam-basket-preview-line__item__showDetails"], i18n_19, [1, "miam-basket-preview-line__item__change", 3, "click"], [1, "miam-basket-preview-line__item__change__link", 3, "ngClass"], i18n_21, [1, "miam-basket-preview-line__item__inlineTag__container"], [1, "miam-basket-preview-line__item__inlineTag"], [4, "ngFor", "ngForOf"], [1, "miam-basket-preview-line__item__price"], [3, "recipeId", "serves"], [1, "miam-basket-preview-line__item__count__for"], i18n_24, [1, "miam-basket-preview-line__item__count__people"], i18n_26, i18n_28, [1, "miam-basket-preview-line__add__button"], [1, "m-button-primary", 3, "click"], ["primaryColor", "#fff", 3, "width", "height", "iconName"], [1, "miam-basket-preview-lines"], ["loader", ""], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "legacyMode", "removed", "replaceItem", 4, "ngFor", "ngForOf"], ["mode", "unavailable", 3, "entries", "alwaysExpanded", 4, "ngIf"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded", 4, "ngIf"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded", 4, "ngIf"], [3, "line", "sponsorised", "displayItemsUnitaryPrice", "originTrace", "blockStates", "legacyMode", "removed", "replaceItem"], ["mode", "unavailable", 3, "entries", "alwaysExpanded"], ["mode", "oftenDeleted", 3, "entries", "alwaysExpanded", "entryAdded"], ["mode", "removed", 3, "entries", "alwaysExpanded", "reduced", "entryAdded"], [1, "miam-basket-preview-line__loader-container"], i18n_30];
|
|
14269
14565
|
}, template: function BasketPreviewLineComponent_Template(rf, ctx) {
|
|
14270
14566
|
if (rf & 1) {
|
|
14271
|
-
i0__namespace.ɵɵtemplate(0, BasketPreviewLineComponent_ng_container_0_Template,
|
|
14567
|
+
i0__namespace.ɵɵtemplate(0, BasketPreviewLineComponent_ng_container_0_Template, 39, 20, "ng-container", 0);
|
|
14272
14568
|
i0__namespace.ɵɵtemplate(1, BasketPreviewLineComponent_ng_template_1_Template, 30, 30, "ng-template", null, 1, i0__namespace.ɵɵtemplateRefExtractor);
|
|
14273
14569
|
}
|
|
14274
14570
|
if (rf & 2) {
|
|
14275
14571
|
var _r1 = i0__namespace.ɵɵreference(2);
|
|
14276
14572
|
i0__namespace.ɵɵproperty("ngIf", !ctx.legacyMode)("ngIfElse", _r1);
|
|
14277
14573
|
}
|
|
14278
|
-
}, directives: [i2__namespace$1.NgIf, RecipePricingComponent, i2__namespace$1.NgClass, CounterInputComponent, IconComponent, i2__namespace$1.NgForOf, BasketPreviewLineComponent, BasketPreviewDisabledComponent, LoaderComponent], pipes: [CapitalizeFirstLetterPipe, i2__namespace$1.AsyncPipe], styles: [".miam-basket-preview-line:not(.legacy){display:flex;padding:12px;align-items:flex-start;gap:16px;align-self:stretch;border-radius:12px;border:1px solid var(--border-primary,#d6e1ec);background:var(--surface-primary,#fff)}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{position:relative;width:144px;height:144px}@media (max-width:360px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{width:112px;height:112px}}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture{height:100%;width:100%;border-radius:12px;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;border-radius:12px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter{position:absolute;right:8px;bottom:8px;display:flex;padding:4px 8px;align-items:center;gap:4px;border-radius:100px;background:var(--miam-ds-color-neutral-white,#fff);color:var(--miam-color-neutral-black);height:-moz-fit-content;height:fit-content}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter span{line-height:100%}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter img{width:16px;height:16px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top{display:flex;align-items:flex-start;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;color:var(--miam-ds-color-neutral-black,#02182b);text-overflow:ellipsis;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__product-count{display:flex;color:var(--text-subtle,rgba(31,53,67,.5));gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-recipe-pricing .miam-recipe-pricing__wrapper{gap:4px;align-items:flex-end;flex-wrap:nowrap}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__subline{font-size:12px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove{flex-shrink:0}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove .miam-loader,.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove img{height:24px;width:24px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link{padding:4px 16px;gap:8px}@media (max-width:375px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link img{display:none}}:root{--price-color:var(--miam-price-color,green) ;--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line.legacy{overflow:hidden;padding-left:10px;-webkit-tap-highlight-color:transparent}.miam-basket-preview-line.legacy.clickable{cursor:pointer;border-radius:4px;margin-bottom:6px;border:1px solid var(--m-color-grey);box-shadow:none;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.legacy.expanded{position:relative;background:#fff;box-shadow:var(--m-shadow-small);border-color:var(--m-color-grey);margin-top:10px;margin-bottom:15px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left{gap:16px;display:flex;align-items:center;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{align-self:center}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove.disabled{filter:opacity(.3)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .miam-ds-loader{width:16px;height:16px;background-position-x:8px;background-size:8px 8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:130px;height:100px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__sponsorised{display:flex;justify-content:center;align-items:center;padding:4px 12px;border-radius:100px;background-color:var(--m-color-grey);font-size:14px;font-weight:500;line-height:150%;width:-moz-fit-content;width:fit-content;margin-bottom:8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--m-font-size-medium)}@media (min-width:1022px){.miam-basket-preview-line.legacy .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.legacy .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.legacy .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.legacy .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.legacy .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.legacy .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{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;width:-moz-max-content;width:max-content;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy .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{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line.legacy .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.legacy .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{pointer-events:none;color:var(--m-color-grey-text)}.miam-basket-preview-line.legacy .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{display:flex;align-items:center;height:22px;padding:1px 16px;font-size:var(--m-font-size-small);border-radius:100px;background-color:var(--tag-color)}.miam-basket-preview-line.legacy .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.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right{max-width:330px;position:relative;display:flex;align-items:center;justify-content:flex-end;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 20px;font-size:var(--m-font-size-large);font-weight:700;white-space:nowrap;color:var(--price-color)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{text-align:center;font-size:var(--m-font-size-small)}.miam-basket-preview-line.legacy .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.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{margin-bottom:2px;padding-left:20px;font-weight:700;color:var(--m-color-slate)}.miam-basket-preview-line.legacy .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.legacy .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{margin-bottom:20px;border-left:1px solid var(--m-color-grey);overflow:hidden;margin-left:20px}.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{width:50px;height:50px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.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{font-size:16px;color:var(--m-color-grey-text)}.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{padding:10px;display:flex;flex-direction:column;justify-content:center;align-items:center}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;position:relative;padding:0 0 52px}.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{position:absolute;right:18px;margin:0;bottom:58px;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;width:33%;position:absolute;top:16px}.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__actions{position:absolute;bottom:8px;left:0}.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;text-align:center;padding:1px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{justify-content:flex-start;padding-left:38%;flex-direction:column-reverse;align-items:flex-start}.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;position:relative;padding:0}.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{position:relative;right:unset;margin-right:15px;bottom: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;width:72px;position:relative;top: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 img{width:72px;height:72px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.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{position:relative;bottom:unset;flex-direction:column;gap:8px}}@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 });
|
|
14574
|
+
}, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgClass, CounterInputComponent, IconComponent, i2__namespace$1.NgForOf, RecipePricingComponent, BasketPreviewLineComponent, BasketPreviewDisabledComponent, LoaderComponent], pipes: [CapitalizeFirstLetterPipe, i2__namespace$1.CurrencyPipe, i2__namespace$1.AsyncPipe], styles: [".miam-basket-preview-line:not(.legacy){display:flex;padding:12px;align-items:flex-start;gap:16px;align-self:stretch;border-radius:12px;border:1px solid var(--border-primary,#d6e1ec);background:var(--surface-primary,#fff)}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{position:relative;width:144px;height:144px}@media (max-width:360px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left{width:112px;height:112px}}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture{height:100%;width:100%;border-radius:12px;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__picture img{height:100%;width:100%;-o-object-fit:cover;object-fit:cover;border-radius:12px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter{position:absolute;right:8px;bottom:8px;display:flex;padding:4px 8px;align-items:center;gap:4px;border-radius:100px;background:var(--miam-ds-color-neutral-white,#fff);color:var(--miam-color-neutral-black);height:-moz-fit-content;height:fit-content}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter span{line-height:100%}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__left .miam-basket-preview-line__counter img{width:16px;height:16px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right{display:flex;flex-direction:column;align-items:flex-end;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top{display:flex;align-items:flex-start;gap:8px;flex:1 0 0;align-self:stretch}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos{display:flex;flex-direction:column;align-items:flex-start;flex:1 0 0;gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;align-self:stretch;overflow:hidden;color:var(--miam-ds-color-neutral-black,#02182b);text-overflow:ellipsis;cursor:pointer}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__product-count{display:flex;color:var(--text-subtle,rgba(31,53,67,.5));gap:4px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__price-label{color:var(--miam-ds-color-primary,#24748f)}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__infos .miam-basket-preview-line__price-per-person-label{color:var(--text-subtle,rgba(31,53,67,.5))}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove{flex-shrink:0}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove .miam-loader,.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__top .miam-basket-preview-line__remove img{height:24px;width:24px}.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link{padding:4px 16px;gap:8px}@media (max-width:375px){.miam-basket-preview-line:not(.legacy) .miam-basket-preview-line__right .miam-basket-preview-line__link img{display:none}}:root{--price-color:var(--miam-price-color,green) ;--tag-color:var(--miam-tag-color,#fcecce)}.miam-basket-preview-line.legacy{overflow:hidden;padding-left:10px;-webkit-tap-highlight-color:transparent}.miam-basket-preview-line.legacy.clickable{cursor:pointer;border-radius:4px;margin-bottom:6px;border:1px solid var(--m-color-grey);box-shadow:none;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy.elevate{position:relative;z-index:var(--m-z-index-modal)}.miam-basket-preview-line.legacy.expanded{position:relative;background:#fff;box-shadow:var(--m-shadow-small);border-color:var(--m-color-grey);margin-top:10px;margin-bottom:15px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item{display:flex;justify-content:space-between;padding:16px 0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable{cursor:pointer}.miam-basket-preview-line.legacy .miam-basket-preview-line__item.clickable.expanded{padding-bottom:0}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left{gap:16px;display:flex;align-items:center;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove{align-self:center}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove.disabled{filter:opacity(.3)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__remove .miam-ds-loader{width:16px;height:16px;background-position-x:8px;background-size:8px 8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__picture img{width:130px;height:100px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__sponsorised{display:flex;justify-content:center;align-items:center;padding:4px 12px;border-radius:100px;background-color:var(--m-color-grey);font-size:14px;font-weight:500;line-height:150%;width:-moz-fit-content;width:fit-content;margin-bottom:8px}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__left .miam-basket-preview-line__item__details .miam-basket-preview-line__item__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:var(--m-font-size-medium)}@media (min-width:1022px){.miam-basket-preview-line.legacy .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.legacy .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.legacy .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.legacy .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.legacy .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.legacy .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{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;width:-moz-max-content;width:max-content;transition:var(--m-default-transition)}.miam-basket-preview-line.legacy .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{margin:2px 30px 0 0;color:var(--m-color-grey-text);text-decoration:underline;cursor:pointer;transition:var(--m-default-transition)}@media (min-width:1022px){.miam-basket-preview-line.legacy .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.legacy .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{pointer-events:none;color:var(--m-color-grey-text)}.miam-basket-preview-line.legacy .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{display:flex;align-items:center;height:22px;padding:1px 16px;font-size:var(--m-font-size-small);border-radius:100px;background-color:var(--tag-color)}.miam-basket-preview-line.legacy .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.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right{max-width:330px;position:relative;display:flex;align-items:center;justify-content:flex-end;width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__price{margin:0 20px;font-size:var(--m-font-size-large);font-weight:700;white-space:nowrap;color:var(--price-color)}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right ng-miam-recipe-pricing{width:100%}.miam-basket-preview-line.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count{text-align:center;font-size:var(--m-font-size-small)}.miam-basket-preview-line.legacy .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.legacy .miam-basket-preview-line__item .miam-basket-preview-line__item__right .miam-basket-preview-line__item__count .miam-basket-preview-line__item__count__people{margin-bottom:2px;padding-left:20px;font-weight:700;color:var(--m-color-slate)}.miam-basket-preview-line.legacy .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.legacy .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__left,.miam-basket-preview-line.legacy .miam-basket-preview-line__item:hover .miam-basket-preview-line__item__showDetails{color:var(--m-color-primary)}}.miam-basket-preview-lines{margin-bottom:20px;border-left:1px solid var(--m-color-grey);overflow:hidden;margin-left:20px}.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:hover,.miam-basket-preview-lines .miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__left .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{width:50px;height:50px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.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{font-size:16px;color:var(--m-color-grey-text)}.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{padding:10px;display:flex;flex-direction:column;justify-content:center;align-items:center}@media (max-width:1022px){.miam-basket-preview-line .miam-basket-preview-line__item{flex-direction:column;height:204px;position:relative;padding:0 0 52px}.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{position:absolute;right:18px;margin:0;bottom:58px;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;width:33%;position:absolute;top:16px}.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__actions{position:absolute;bottom:8px;left:0}.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;text-align:center;padding:1px}.miam-basket-preview-line .miam-basket-preview-line__item .miam-basket-preview-line__item__right{justify-content:flex-start;padding-left:38%;flex-direction:column-reverse;align-items:flex-start}.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;position:relative;padding:0}.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{position:relative;right:unset;margin-right:15px;bottom: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;width:72px;position:relative;top: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 img{width:72px;height:72px;-o-object-fit:cover;object-fit:cover;border-radius:var(--m-border-radius)}.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{position:relative;bottom:unset;flex-direction:column;gap:8px}}@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 });
|
|
14279
14575
|
(function () {
|
|
14280
14576
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(BasketPreviewLineComponent, [{
|
|
14281
14577
|
type: i0.Component,
|
|
@@ -14286,7 +14582,7 @@
|
|
|
14286
14582
|
encapsulation: i0.ViewEncapsulation.None,
|
|
14287
14583
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
14288
14584
|
}]
|
|
14289
|
-
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: RecipesService }, { type: BasketsService }, { type: AnalyticsService }, { type: PointOfSalesService }, { type: UserService }, { type: ContextService }, { type: i0__namespace.ElementRef }, { type: SuppliersService }]; }, { line: [{
|
|
14585
|
+
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: RecipesService }, { type: BasketsService }, { type: AnalyticsService }, { type: PointOfSalesService }, { type: UserService }, { type: ContextService }, { type: SuppliersService }, { type: i0__namespace.ElementRef }, { type: SuppliersService }]; }, { line: [{
|
|
14290
14586
|
type: i0.Input
|
|
14291
14587
|
}], uniqueLine: [{
|
|
14292
14588
|
type: i0.Input
|
|
@@ -14314,7 +14610,7 @@
|
|
|
14314
14610
|
type: i0.Output
|
|
14315
14611
|
}] });
|
|
14316
14612
|
})();
|
|
14317
|
-
var templateObject_1$w, templateObject_2$q, templateObject_3$j, templateObject_4$g, templateObject_5$
|
|
14613
|
+
var templateObject_1$w, templateObject_2$q, templateObject_3$j, templateObject_4$g, templateObject_5$c, templateObject_6$a, templateObject_7$7, templateObject_8$5, templateObject_9$4, templateObject_10$2, templateObject_11$2, templateObject_12$1, templateObject_13$1, templateObject_14$1;
|
|
14318
14614
|
|
|
14319
14615
|
function ReplaceItemComponent_span_3_Template(rf, ctx) {
|
|
14320
14616
|
if (rf & 1) {
|
|
@@ -14512,13 +14808,6 @@
|
|
|
14512
14808
|
ReplaceItemComponent.prototype.currentProps = function () {
|
|
14513
14809
|
return { entry_name: this.basketEntry.name };
|
|
14514
14810
|
};
|
|
14515
|
-
ReplaceItemComponent.prototype.onSearchKeydown = function (event) {
|
|
14516
|
-
if (event.key === ' ') {
|
|
14517
|
-
event.preventDefault();
|
|
14518
|
-
this.searchString += ' ';
|
|
14519
|
-
}
|
|
14520
|
-
this.onSearchInputChange();
|
|
14521
|
-
};
|
|
14522
14811
|
ReplaceItemComponent.prototype.setupSearchObservable = function () {
|
|
14523
14812
|
var _this = this;
|
|
14524
14813
|
this.subscriptions.push(this.searchSubject.pipe(operators.debounceTime(200), operators.filter(function (search) { return search.length >= 3; }), operators.distinctUntilChanged(), operators.tap(function () {
|
|
@@ -14554,8 +14843,21 @@
|
|
|
14554
14843
|
};
|
|
14555
14844
|
ReplaceItemComponent.prototype.addToBasket = function () {
|
|
14556
14845
|
var _this = this;
|
|
14557
|
-
this.subscriptions.push(this.recipeDetailsService.canAddProductToBasket(
|
|
14558
|
-
|
|
14846
|
+
this.subscriptions.push(this.recipeDetailsService.canAddProductToBasket({
|
|
14847
|
+
method: 'addIngredientToBasket',
|
|
14848
|
+
arguments: {
|
|
14849
|
+
recipeId: this.recipe.id,
|
|
14850
|
+
ingredientId: this.ingredient.id,
|
|
14851
|
+
entry: this.basketEntry,
|
|
14852
|
+
eventTrace: this.eventTrace(),
|
|
14853
|
+
searchString: this.searchString
|
|
14854
|
+
}
|
|
14855
|
+
}, this.eventTrace()).subscribe(function (passed) {
|
|
14856
|
+
if (passed) {
|
|
14857
|
+
_this.recipeDetailsService.ingredientToBasketLoading = _this.basketEntry.status === 'initial';
|
|
14858
|
+
_this.recipeDetailsService.updateIngredientFromBasketLoading = _this.basketEntry.status !== 'initial';
|
|
14859
|
+
_this.basketsService.addIngredientsToBasket(_this.recipe.id, [{ ingredientId: _this.ingredient.id, entry: _this.basketEntry }], _this.eventTrace(), _this.previousItem, _this.searchString);
|
|
14860
|
+
}
|
|
14559
14861
|
}));
|
|
14560
14862
|
this.cdr.detectChanges();
|
|
14561
14863
|
};
|
|
@@ -14646,9 +14948,9 @@
|
|
|
14646
14948
|
i18n_9 = MSG_EXTERNAL_5308134879633194724$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_REPLACE_ITEM_REPLACE_ITEM_COMPONENT_TS__10;
|
|
14647
14949
|
}
|
|
14648
14950
|
else {
|
|
14649
|
-
i18n_9 = $localize(templateObject_5$
|
|
14951
|
+
i18n_9 = $localize(templateObject_5$b || (templateObject_5$b = __makeTemplateObject([":\u241F0b93781999a48f1d48c2780cb91b6f63b2583b51\u241F5308134879633194724:Essayez avec un autre mot-cl\u00E9s"], [":\u241F0b93781999a48f1d48c2780cb91b6f63b2583b51\u241F5308134879633194724:Essayez avec un autre mot-cl\u00E9s"])));
|
|
14650
14952
|
}
|
|
14651
|
-
return [[1, "miam-replace-item__header", "miam-ds-text", "weight-xxl"], [1, "miam-ds-button", "ghost", "square", 3, "click"], ["width", "24", "height", "24", "primaryColor", "var(--miam-ds-color-primary-500)", 3, "iconName"], [4, "ngIf", "ngIfElse"], ["addProduct", ""], [1, "miam-replace-item__top-container"], [1, "miam-replace-item__searchbar"], ["width", "20", "height", "20", 3, "iconName"], ["type", "text", "placeholder", "Rechercher un produit de substitution", 1, "miam-replace-item__searchbar__input", "miam-ds-text", "size-m", "weight-l", 3, "ngModel", "ngModelChange"
|
|
14953
|
+
return [[1, "miam-replace-item__header", "miam-ds-text", "weight-xxl"], [1, "miam-ds-button", "ghost", "square", 3, "click"], ["width", "24", "height", "24", "primaryColor", "var(--miam-ds-color-primary-500)", 3, "iconName"], [4, "ngIf", "ngIfElse"], ["addProduct", ""], [1, "miam-replace-item__top-container"], [1, "miam-replace-item__searchbar"], ["width", "20", "height", "20", 3, "iconName"], ["type", "text", "placeholder", "Rechercher un produit de substitution", 1, "miam-replace-item__searchbar__input", "miam-ds-text", "size-m", "weight-l", 3, "ngModel", "ngModelChange"], [1, "miam-ds-loader"], [1, "miam-replace-item__product-banner"], [1, "miam-replace-item__banner-product-name", "miam-ds-text", "size-s"], [1, "miam-replace-item__banner-quantity", "miam-ds-text", "weight-xxl"], [1, "miam-replace-item__product-list"], ["class", "miam-replace-item__product-item", 3, "ngClass", 4, "ngFor", "ngForOf"], [4, "ngIf"], i18n_0, i18n_2, [1, "miam-replace-item__product-item", 3, "ngClass"], [1, "miam-replace-item__card-upper-section"], [1, "miam-replace-item__product-image-container"], ["alt", "product to replace", 1, "miam-replace-item__product-image", 3, "src"], [1, "miam-replace-item__product-info"], [1, "miam-replace-item__product-brand", "miam-ds-text", "size-xs", "weight-xl"], [1, "miam-replace-item__product-brand-text"], [1, "miam-replace-item__product-name", "miam-ds-text", "size-xs"], [1, "miam-replace-item__product-name-text"], [1, "miam-ds-badge"], [1, "miam-replace-item__product-quantity", "miam-ds-text", "size-xs"], [1, "miam-replace-item__card-lower-section"], [1, "miam-replace-item__product-price", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-replace-item__cta", "miam-ds-button", "small", "primary", 3, "disabled", "click"], ["class", "miam-ds-loader", 4, "ngIf", "ngIfElse"], ["defaultSelectButton", ""], [1, "miam-replace-item__error"], [1, "miam-replace-item__error-image-container", "small-img"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/images/product-issue.png", "alt", "issue with product", 1, "miam-replace-item__error-image"], [1, "miam-replace-item__issue-title"], i18n_5, [1, "miam-replace-item__error-image-container"], i18n_7, [1, "miam-replace-item__issue-description", "miam-ds-text", "weight-xxl"], i18n_9];
|
|
14652
14954
|
}, template: function ReplaceItemComponent_Template(rf, ctx) {
|
|
14653
14955
|
if (rf & 1) {
|
|
14654
14956
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
@@ -14663,7 +14965,7 @@
|
|
|
14663
14965
|
i0__namespace.ɵɵelementStart(7, "div", 6);
|
|
14664
14966
|
i0__namespace.ɵɵelement(8, "ng-miam-icon", 7);
|
|
14665
14967
|
i0__namespace.ɵɵelementStart(9, "input", 8);
|
|
14666
|
-
i0__namespace.ɵɵlistener("ngModelChange", function ReplaceItemComponent_Template_input_ngModelChange_9_listener($event) { return ctx.searchString = $event; })("
|
|
14968
|
+
i0__namespace.ɵɵlistener("ngModelChange", function ReplaceItemComponent_Template_input_ngModelChange_9_listener($event) { return ctx.searchString = $event; })("ngModelChange", function ReplaceItemComponent_Template_input_ngModelChange_9_listener() { return ctx.onSearchInputChange(); });
|
|
14667
14969
|
i0__namespace.ɵɵelementEnd();
|
|
14668
14970
|
i0__namespace.ɵɵelement(10, "div", 9);
|
|
14669
14971
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -14765,7 +15067,7 @@
|
|
|
14765
15067
|
args: ['@slide']
|
|
14766
15068
|
}] });
|
|
14767
15069
|
})();
|
|
14768
|
-
var templateObject_1$v, templateObject_2$p, templateObject_3$i, templateObject_4$f, templateObject_5$
|
|
15070
|
+
var templateObject_1$v, templateObject_2$p, templateObject_3$i, templateObject_4$f, templateObject_5$b;
|
|
14769
15071
|
|
|
14770
15072
|
function BasketPreviewBlockComponent_div_2_ng_container_1_div_1_Template(rf, ctx) {
|
|
14771
15073
|
if (rf & 1) {
|
|
@@ -15151,7 +15453,7 @@
|
|
|
15151
15453
|
i18n_9 = MSG_EXTERNAL_5143648071312042408$$LIB__WEB_COMPONENTS_BASKET_PREVIEW_BASKET_PREVIEW_BLOCK_BASKET_PREVIEW_BLOCK_COMPONENT_TS_____10;
|
|
15152
15454
|
}
|
|
15153
15455
|
else {
|
|
15154
|
-
i18n_9 = $localize(templateObject_5$
|
|
15456
|
+
i18n_9 = $localize(templateObject_5$a || (templateObject_5$a = __makeTemplateObject([":\u241F523c6748d32ce2079498ff4de01387f2d6515c44\u241F5143648071312042408:Chargement du repas..."], [":\u241F523c6748d32ce2079498ff4de01387f2d6515c44\u241F5143648071312042408:Chargement du repas..."])));
|
|
15155
15457
|
}
|
|
15156
15458
|
var i18n_11;
|
|
15157
15459
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -15229,7 +15531,7 @@
|
|
|
15229
15531
|
args: [BasketPreviewLineComponent]
|
|
15230
15532
|
}] });
|
|
15231
15533
|
})();
|
|
15232
|
-
var templateObject_1$u, templateObject_2$o, templateObject_3$h, templateObject_4$e, templateObject_5$
|
|
15534
|
+
var templateObject_1$u, templateObject_2$o, templateObject_3$h, templateObject_4$e, templateObject_5$a, templateObject_6$9, templateObject_7$6, templateObject_8$4;
|
|
15233
15535
|
|
|
15234
15536
|
var BasketPreviewModule = /** @class */ (function () {
|
|
15235
15537
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -15819,7 +16121,7 @@
|
|
|
15819
16121
|
i18n_8 = MSG_EXTERNAL_7013342739706915791$$LIB__WEB_COMPONENTS_LIST_SCAN_INGREDIENTS_LIST_INGREDIENTS_LIST_COMPONENT_TS__9;
|
|
15820
16122
|
}
|
|
15821
16123
|
else {
|
|
15822
|
-
i18n_8 = $localize(templateObject_5$
|
|
16124
|
+
i18n_8 = $localize(templateObject_5$9 || (templateObject_5$9 = __makeTemplateObject([":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"], [":\u241Fac0d6812963be073dd69ed4976e8f61da7354f14\u241F7013342739706915791:Quantit\u00E9"])));
|
|
15823
16125
|
}
|
|
15824
16126
|
var i18n_10;
|
|
15825
16127
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -15895,7 +16197,7 @@
|
|
|
15895
16197
|
type: i0.Output
|
|
15896
16198
|
}] });
|
|
15897
16199
|
})();
|
|
15898
|
-
var templateObject_1$r, templateObject_2$m, templateObject_3$g, templateObject_4$d, templateObject_5$
|
|
16200
|
+
var templateObject_1$r, templateObject_2$m, templateObject_3$g, templateObject_4$d, templateObject_5$9, templateObject_6$8;
|
|
15899
16201
|
|
|
15900
16202
|
function ListScanBasketPreviewComponent_span_4_Template(rf, ctx) {
|
|
15901
16203
|
if (rf & 1) {
|
|
@@ -16483,7 +16785,7 @@
|
|
|
16483
16785
|
i0__namespace.ɵɵtextInterpolate(number_r14);
|
|
16484
16786
|
}
|
|
16485
16787
|
}
|
|
16486
|
-
var _c12
|
|
16788
|
+
var _c12 = function () { return [1, 2, 3, 4, 5, 6, 7, 8, 9]; };
|
|
16487
16789
|
function MealsPlannerFormComponent_ng_template_29_Template(rf, ctx) {
|
|
16488
16790
|
if (rf & 1) {
|
|
16489
16791
|
var _r16_1 = i0__namespace.ɵɵgetCurrentView();
|
|
@@ -16502,7 +16804,7 @@
|
|
|
16502
16804
|
i0__namespace.ɵɵadvance(1);
|
|
16503
16805
|
i0__namespace.ɵɵtextInterpolate(ctx_r2.form.value.guestsCount);
|
|
16504
16806
|
i0__namespace.ɵɵadvance(1);
|
|
16505
|
-
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpureFunction0(3, _c12
|
|
16807
|
+
i0__namespace.ɵɵproperty("ngForOf", i0__namespace.ɵɵpureFunction0(3, _c12));
|
|
16506
16808
|
}
|
|
16507
16809
|
}
|
|
16508
16810
|
function MealsPlannerFormComponent_ng_miam_counter_input_39_Template(rf, ctx) {
|
|
@@ -16651,14 +16953,20 @@
|
|
|
16651
16953
|
MealsPlannerFormComponent.prototype.ngOnDestroy = function () {
|
|
16652
16954
|
this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
16653
16955
|
};
|
|
16654
|
-
MealsPlannerFormComponent.prototype.currentPath = function () {
|
|
16956
|
+
MealsPlannerFormComponent.prototype.currentPath = function () {
|
|
16957
|
+
return '';
|
|
16958
|
+
};
|
|
16959
|
+
MealsPlannerFormComponent.prototype.hasPos = function () {
|
|
16960
|
+
var _this = this;
|
|
16961
|
+
return this.posService.posWasInitialized().pipe(operators.take(1), operators.tap(function (posWasInitialized) { return _this.context.hookCallback(true, posWasInitialized); }));
|
|
16962
|
+
};
|
|
16655
16963
|
MealsPlannerFormComponent.prototype.fetchRecipesNumbers = function () {
|
|
16656
16964
|
var _this = this;
|
|
16657
|
-
|
|
16658
|
-
|
|
16659
|
-
|
|
16660
|
-
|
|
16661
|
-
return _this.recipesService.maxPlannableRecipes(_this.form.value.budget, _this.form.value.guestsCount, logged ? false : undefined).pipe(operators.tap(function (maxRecipes) {
|
|
16965
|
+
return this.hasPos().pipe(operators.switchMap(function (hasPos) {
|
|
16966
|
+
if (!hasPos || !_this.form.value.guestsCount || !_this.form.value.budget) {
|
|
16967
|
+
return rxjs.of(null);
|
|
16968
|
+
}
|
|
16969
|
+
return _this.userService.isLogged$.asObservable().pipe(operators.take(2)).pipe(operators.switchMap(function (logged) { return _this.recipesService.maxPlannableRecipes(_this.form.value.budget, _this.form.value.guestsCount, logged ? false : undefined).pipe(operators.tap(function (maxRecipes) {
|
|
16662
16970
|
var numbers = [];
|
|
16663
16971
|
for (var i = 1; i <= maxRecipes; i++) {
|
|
16664
16972
|
numbers.push(i);
|
|
@@ -16668,7 +16976,7 @@
|
|
|
16668
16976
|
_this.updateRecipesCount(maxRecipes);
|
|
16669
16977
|
}
|
|
16670
16978
|
_this.noRecipesAvailable = maxRecipes < 1;
|
|
16671
|
-
}));
|
|
16979
|
+
})); }));
|
|
16672
16980
|
}));
|
|
16673
16981
|
};
|
|
16674
16982
|
MealsPlannerFormComponent.prototype.submit = function () {
|
|
@@ -16679,9 +16987,9 @@
|
|
|
16679
16987
|
]).subscribe(function (res) {
|
|
16680
16988
|
var isHookOk = _this.context.hookCallback(res[0], res[1]);
|
|
16681
16989
|
sessionStorage.setItem('miam-meals-planner-form', JSON.stringify({
|
|
16682
|
-
budget:
|
|
16683
|
-
guestsCount:
|
|
16684
|
-
recipesCount:
|
|
16990
|
+
budget: +_this.form.get('budget').value,
|
|
16991
|
+
guestsCount: +_this.form.get('guestsCount').value,
|
|
16992
|
+
recipesCount: +_this.form.get('recipesCount').value,
|
|
16685
16993
|
}));
|
|
16686
16994
|
if (isHookOk) {
|
|
16687
16995
|
sessionStorage.removeItem('miam-meals-planner-form');
|
|
@@ -16694,7 +17002,7 @@
|
|
|
16694
17002
|
}));
|
|
16695
17003
|
};
|
|
16696
17004
|
MealsPlannerFormComponent.prototype.updateView = function () {
|
|
16697
|
-
if (
|
|
17005
|
+
if (+this.form.get('budget').value > 999) {
|
|
16698
17006
|
this.form.get('budget').patchValue(999);
|
|
16699
17007
|
}
|
|
16700
17008
|
this.cdr.detectChanges();
|
|
@@ -16752,7 +17060,7 @@
|
|
|
16752
17060
|
i18n_8 = MSG_EXTERNAL_6105149763216124630$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_FORM_MEALS_PLANNER_FORM_COMPONENT_TS_9;
|
|
16753
17061
|
}
|
|
16754
17062
|
else {
|
|
16755
|
-
i18n_8 = $localize(templateObject_5$
|
|
17063
|
+
i18n_8 = $localize(templateObject_5$8 || (templateObject_5$8 = __makeTemplateObject([":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"], [":\u241F54db9980698d46d77cbe00eb3a20ac4d5407c95d\u241F6105149763216124630:Planifier"])));
|
|
16756
17064
|
}
|
|
16757
17065
|
var i18n_10;
|
|
16758
17066
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -16952,7 +17260,7 @@
|
|
|
16952
17260
|
type: i0.Output
|
|
16953
17261
|
}] });
|
|
16954
17262
|
})();
|
|
16955
|
-
var templateObject_1$o, templateObject_2$j, templateObject_3$d, templateObject_4$b, templateObject_5$
|
|
17263
|
+
var templateObject_1$o, templateObject_2$j, templateObject_3$d, templateObject_4$b, templateObject_5$8, templateObject_6$7, templateObject_7$5, templateObject_8$3, templateObject_9$3, templateObject_10$1, templateObject_11$1;
|
|
16956
17264
|
|
|
16957
17265
|
function RecipeCardCtaComponent_div_0_span_2_Template(rf, ctx) {
|
|
16958
17266
|
if (rf & 1) {
|
|
@@ -18115,7 +18423,7 @@
|
|
|
18115
18423
|
i18n_8 = MSG_EXTERNAL_3503734824800029552$$LIB__WEB_COMPONENTS_MEALS_PLANNER_MEALS_PLANNER_BASKET_PREVIEW_MEALS_PLANNER_BASKET_PREVIEW_COMPONENT_TS___9;
|
|
18116
18424
|
}
|
|
18117
18425
|
else {
|
|
18118
|
-
i18n_8 = $localize(templateObject_5$
|
|
18426
|
+
i18n_8 = $localize(templateObject_5$7 || (templateObject_5$7 = __makeTemplateObject([":\u241F4f168d78d73759138d43c58ec329dc9a1cfcd316\u241F3503734824800029552:Finaliser"], [":\u241F4f168d78d73759138d43c58ec329dc9a1cfcd316\u241F3503734824800029552:Finaliser"])));
|
|
18119
18427
|
}
|
|
18120
18428
|
return [["class", "miam-meals-planner-basket-preview", 4, "ngIf"], [1, "miam-meals-planner-basket-preview"], [1, "miam-meals-planner-basket-preview__content"], [1, "miam-meals-planner-basket-preview__title"], i18n_0, ["class", "miam-meals-planner-basket-preview__ingredients-regrouped", 4, "ngIf"], [3, "originTrace", "recipesIds", "displayItemsUnitaryPrice", "legacyMode", "loading"], [1, "miam-meals-planner-basket-preview__actions"], ["class", "miam-meals-planner-basket-preview__progress-bar", 3, "unit", "value", "max", 4, "ngIf"], ["class", "m-button-primary reverse", 3, "disabled", 4, "ngIf"], [1, "m-button-primary", 3, "disabled"], ["href", "/", 4, "ngIf", "ngIfElse"], ["antiInflation", ""], [1, "miam-meals-planner-basket-preview__ingredients-regrouped"], [1, "miam-meals-planner-basket-preview__ingredients-regrouped__title"], i18n_2, [1, "miam-meals-planner-basket-preview__progress-bar", 3, "unit", "value", "max"], [1, "m-button-primary", "reverse", 3, "disabled"], [3, "href"], [1, "miam-meals-planner-basket-preview__button-text"], i18n_4, ["href", "/"], i18n_6, [3, "click"], i18n_8];
|
|
18121
18429
|
}, template: function MealsPlannerBasketPreviewComponent_Template(rf, ctx) {
|
|
@@ -18148,7 +18456,7 @@
|
|
|
18148
18456
|
type: i0.Output
|
|
18149
18457
|
}] });
|
|
18150
18458
|
})();
|
|
18151
|
-
var templateObject_1$k, templateObject_2$g, templateObject_3$c, templateObject_4$a, templateObject_5$
|
|
18459
|
+
var templateObject_1$k, templateObject_2$g, templateObject_3$c, templateObject_4$a, templateObject_5$7;
|
|
18152
18460
|
|
|
18153
18461
|
var RecipeFilters = /** @class */ (function () {
|
|
18154
18462
|
function RecipeFilters(filters) {
|
|
@@ -18377,9 +18685,9 @@
|
|
|
18377
18685
|
i0__namespace.ɵɵelementEnd();
|
|
18378
18686
|
}
|
|
18379
18687
|
if (rf & 2) {
|
|
18380
|
-
var
|
|
18688
|
+
var ctx_r12 = i0__namespace.ɵɵnextContext(3);
|
|
18381
18689
|
i0__namespace.ɵɵadvance(4);
|
|
18382
|
-
i0__namespace.ɵɵtextInterpolate1("\"",
|
|
18690
|
+
i0__namespace.ɵɵtextInterpolate1("\"", ctx_r12.filters.search, "\"");
|
|
18383
18691
|
}
|
|
18384
18692
|
}
|
|
18385
18693
|
function CatalogListComponent_div_1_div_2_Template(rf, ctx) {
|
|
@@ -18399,9 +18707,9 @@
|
|
|
18399
18707
|
i0__namespace.ɵɵelementEnd();
|
|
18400
18708
|
}
|
|
18401
18709
|
if (rf & 2) {
|
|
18402
|
-
var
|
|
18710
|
+
var ctx_r7 = i0__namespace.ɵɵnextContext(2);
|
|
18403
18711
|
i0__namespace.ɵɵadvance(4);
|
|
18404
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
18712
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r7.isSearching());
|
|
18405
18713
|
}
|
|
18406
18714
|
}
|
|
18407
18715
|
function CatalogListComponent_div_1_ng_template_3_div_0_Template(rf, ctx) {
|
|
@@ -18422,9 +18730,9 @@
|
|
|
18422
18730
|
}
|
|
18423
18731
|
if (rf & 2) {
|
|
18424
18732
|
i0__namespace.ɵɵnextContext();
|
|
18425
|
-
var
|
|
18426
|
-
var
|
|
18427
|
-
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 2,
|
|
18733
|
+
var _r10 = i0__namespace.ɵɵreference(6);
|
|
18734
|
+
var ctx_r9 = i0__namespace.ɵɵnextContext();
|
|
18735
|
+
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(1, 2, ctx_r9.userService.isLogged$))("ngIfElse", _r10);
|
|
18428
18736
|
}
|
|
18429
18737
|
}
|
|
18430
18738
|
function CatalogListComponent_div_1_ng_template_5_Template(rf, ctx) {
|
|
@@ -18446,50 +18754,98 @@
|
|
|
18446
18754
|
i0__namespace.ɵɵelementEnd();
|
|
18447
18755
|
}
|
|
18448
18756
|
if (rf & 2) {
|
|
18449
|
-
var
|
|
18757
|
+
var _r8 = i0__namespace.ɵɵreference(4);
|
|
18450
18758
|
var ctx_r0 = i0__namespace.ɵɵnextContext();
|
|
18451
18759
|
i0__namespace.ɵɵadvance(1);
|
|
18452
18760
|
i0__namespace.ɵɵproperty("width", 279)("height", 243)("iconName", ctx_r0.icon.NoRecipeFound);
|
|
18453
18761
|
i0__namespace.ɵɵadvance(1);
|
|
18454
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r0.isFiltering())("ngIfElse",
|
|
18762
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r0.isFiltering())("ngIfElse", _r8);
|
|
18455
18763
|
}
|
|
18456
18764
|
}
|
|
18457
18765
|
function CatalogListComponent_ng_miam_card_create_recipe_3_Template(rf, ctx) {
|
|
18458
18766
|
if (rf & 1) {
|
|
18459
|
-
var
|
|
18767
|
+
var _r15_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18460
18768
|
i0__namespace.ɵɵelementStart(0, "ng-miam-card-create-recipe", 23);
|
|
18461
|
-
i0__namespace.ɵɵlistener("clicked", function CatalogListComponent_ng_miam_card_create_recipe_3_Template_ng_miam_card_create_recipe_clicked_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
18769
|
+
i0__namespace.ɵɵlistener("clicked", function CatalogListComponent_ng_miam_card_create_recipe_3_Template_ng_miam_card_create_recipe_clicked_0_listener() { i0__namespace.ɵɵrestoreView(_r15_1); var ctx_r14 = i0__namespace.ɵɵnextContext(); return ctx_r14.recipeActionTriggered.emit({ action: "CREATE", recipe: null }); });
|
|
18462
18770
|
i0__namespace.ɵɵelementEnd();
|
|
18463
18771
|
}
|
|
18464
18772
|
}
|
|
18465
|
-
function
|
|
18773
|
+
function CatalogListComponent_ng_template_4_Template(rf, ctx) {
|
|
18466
18774
|
if (rf & 1) {
|
|
18467
|
-
var
|
|
18775
|
+
var _r18_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18468
18776
|
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-card", 24);
|
|
18469
|
-
i0__namespace.ɵɵlistener("addToMealsPlanner", function
|
|
18777
|
+
i0__namespace.ɵɵlistener("addToMealsPlanner", function CatalogListComponent_ng_template_4_Template_ng_miam_recipe_card_addToMealsPlanner_0_listener($event) { i0__namespace.ɵɵrestoreView(_r18_1); var ctx_r17 = i0__namespace.ɵɵnextContext(); return ctx_r17.addToMealsPlanner.emit($event); })("actionTriggered", function CatalogListComponent_ng_template_4_Template_ng_miam_recipe_card_actionTriggered_0_listener($event) { i0__namespace.ɵɵrestoreView(_r18_1); var recipe_r16 = ctx.recipe; var ctx_r19 = i0__namespace.ɵɵnextContext(); return ctx_r19.recipeActionTriggered.emit({ action: $event, recipe: recipe_r16 }); });
|
|
18470
18778
|
i0__namespace.ɵɵelementEnd();
|
|
18471
18779
|
}
|
|
18472
18780
|
if (rf & 2) {
|
|
18473
|
-
var
|
|
18474
|
-
var
|
|
18475
|
-
i0__namespace.ɵɵproperty("recipe",
|
|
18781
|
+
var recipe_r16 = ctx.recipe;
|
|
18782
|
+
var ctx_r3 = i0__namespace.ɵɵnextContext();
|
|
18783
|
+
i0__namespace.ɵɵproperty("recipe", recipe_r16)("originTrace", ctx_r3.eventTrace())("displayPricing", ctx_r3.displayPricing)("previewAllowed", !ctx_r3.addRecipeMode)("addRecipeMode", ctx_r3.addRecipeMode)("displayGuests", ctx_r3.displayGuests)("helpButtonAllowed", ctx_r3.helpButtonAllowed);
|
|
18784
|
+
}
|
|
18785
|
+
}
|
|
18786
|
+
var _c10$1 = function (a0) { return { recipe: a0 }; };
|
|
18787
|
+
function CatalogListComponent_ng_container_6_ng_container_1_Template(rf, ctx) {
|
|
18788
|
+
if (rf & 1) {
|
|
18789
|
+
var _r25_1 = i0__namespace.ɵɵgetCurrentView();
|
|
18790
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
18791
|
+
i0__namespace.ɵɵelementStart(1, "div", 27);
|
|
18792
|
+
i0__namespace.ɵɵlistener("loadMore", function CatalogListComponent_ng_container_6_ng_container_1_Template_div_loadMore_1_listener() { i0__namespace.ɵɵrestoreView(_r25_1); var ctx_r24 = i0__namespace.ɵɵnextContext(2); return ctx_r24.autoloadContentIfNecessary(); });
|
|
18793
|
+
i0__namespace.ɵɵpipe(2, "async");
|
|
18794
|
+
i0__namespace.ɵɵelementContainer(3, 28);
|
|
18795
|
+
i0__namespace.ɵɵelementEnd();
|
|
18796
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
18797
|
+
}
|
|
18798
|
+
if (rf & 2) {
|
|
18799
|
+
var recipe_r20 = i0__namespace.ɵɵnextContext().$implicit;
|
|
18800
|
+
var ctx_r22 = i0__namespace.ɵɵnextContext();
|
|
18801
|
+
var _r2 = i0__namespace.ɵɵreference(5);
|
|
18802
|
+
i0__namespace.ɵɵadvance(1);
|
|
18803
|
+
i0__namespace.ɵɵproperty("isLoading", i0__namespace.ɵɵpipeBind1(2, 3, ctx_r22.loading));
|
|
18804
|
+
i0__namespace.ɵɵadvance(2);
|
|
18805
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(5, _c10$1, recipe_r20));
|
|
18476
18806
|
}
|
|
18477
18807
|
}
|
|
18478
|
-
function
|
|
18808
|
+
function CatalogListComponent_ng_container_6_ng_container_2_Template(rf, ctx) {
|
|
18479
18809
|
if (rf & 1) {
|
|
18480
|
-
i0__namespace.ɵɵ
|
|
18810
|
+
i0__namespace.ɵɵelementContainer(0, 28);
|
|
18481
18811
|
}
|
|
18482
18812
|
if (rf & 2) {
|
|
18483
|
-
var
|
|
18484
|
-
i0__namespace.ɵɵ
|
|
18813
|
+
var recipe_r20 = i0__namespace.ɵɵnextContext().$implicit;
|
|
18814
|
+
i0__namespace.ɵɵnextContext();
|
|
18815
|
+
var _r2 = i0__namespace.ɵɵreference(5);
|
|
18816
|
+
i0__namespace.ɵɵproperty("ngTemplateOutlet", _r2)("ngTemplateOutletContext", i0__namespace.ɵɵpureFunction1(2, _c10$1, recipe_r20));
|
|
18485
18817
|
}
|
|
18486
18818
|
}
|
|
18487
|
-
function
|
|
18819
|
+
function CatalogListComponent_ng_container_6_Template(rf, ctx) {
|
|
18488
18820
|
if (rf & 1) {
|
|
18489
|
-
i0__namespace.ɵɵ
|
|
18821
|
+
i0__namespace.ɵɵelementContainerStart(0);
|
|
18822
|
+
i0__namespace.ɵɵtemplate(1, CatalogListComponent_ng_container_6_ng_container_1_Template, 4, 7, "ng-container", 25);
|
|
18823
|
+
i0__namespace.ɵɵtemplate(2, CatalogListComponent_ng_container_6_ng_container_2_Template, 1, 4, "ng-container", 26);
|
|
18824
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
18825
|
+
}
|
|
18826
|
+
if (rf & 2) {
|
|
18827
|
+
var isLast_r21 = ctx.last;
|
|
18828
|
+
i0__namespace.ɵɵadvance(1);
|
|
18829
|
+
i0__namespace.ɵɵproperty("ngIf", isLast_r21);
|
|
18830
|
+
i0__namespace.ɵɵadvance(1);
|
|
18831
|
+
i0__namespace.ɵɵproperty("ngIf", !isLast_r21);
|
|
18832
|
+
}
|
|
18833
|
+
}
|
|
18834
|
+
function CatalogListComponent_ng_miam_catalog_article_card_7_Template(rf, ctx) {
|
|
18835
|
+
if (rf & 1) {
|
|
18836
|
+
i0__namespace.ɵɵelement(0, "ng-miam-catalog-article-card", 29);
|
|
18837
|
+
}
|
|
18838
|
+
if (rf & 2) {
|
|
18839
|
+
var article_r28 = ctx.$implicit;
|
|
18840
|
+
i0__namespace.ɵɵproperty("article", article_r28);
|
|
18841
|
+
}
|
|
18842
|
+
}
|
|
18843
|
+
function CatalogListComponent_div_8_Template(rf, ctx) {
|
|
18844
|
+
if (rf & 1) {
|
|
18845
|
+
i0__namespace.ɵɵelementStart(0, "div", 30);
|
|
18490
18846
|
i0__namespace.ɵɵelement(1, "ng-miam-loader");
|
|
18491
18847
|
i0__namespace.ɵɵelementStart(2, "div");
|
|
18492
|
-
i0__namespace.ɵɵi18n(3,
|
|
18848
|
+
i0__namespace.ɵɵi18n(3, 31);
|
|
18493
18849
|
i0__namespace.ɵɵelementEnd();
|
|
18494
18850
|
i0__namespace.ɵɵelementEnd();
|
|
18495
18851
|
}
|
|
@@ -18504,10 +18860,9 @@
|
|
|
18504
18860
|
_c$1);
|
|
18505
18861
|
var CatalogListComponent = /** @class */ (function (_super) {
|
|
18506
18862
|
__extends(CatalogListComponent, _super);
|
|
18507
|
-
function CatalogListComponent(recipesService,
|
|
18863
|
+
function CatalogListComponent(recipesService, articlesService, userService, context, cdr, analyticsService) {
|
|
18508
18864
|
var _this = _super.call(this, analyticsService) || this;
|
|
18509
18865
|
_this.recipesService = recipesService;
|
|
18510
|
-
_this.recipeLikesService = recipeLikesService;
|
|
18511
18866
|
_this.articlesService = articlesService;
|
|
18512
18867
|
_this.userService = userService;
|
|
18513
18868
|
_this.context = context;
|
|
@@ -18552,10 +18907,6 @@
|
|
|
18552
18907
|
enumerable: false,
|
|
18553
18908
|
configurable: true
|
|
18554
18909
|
});
|
|
18555
|
-
CatalogListComponent.prototype.ngOnInit = function () {
|
|
18556
|
-
this.bottomAnchor = document.getElementById('miam-catalog-list__anchor');
|
|
18557
|
-
this.initLoadOnScroll();
|
|
18558
|
-
};
|
|
18559
18910
|
CatalogListComponent.prototype.ngOnChanges = function (changes) {
|
|
18560
18911
|
var changesKeys = Object.keys(changes);
|
|
18561
18912
|
// Prevents reload loop in angular, because originTrace and excludedRecipesIds are passed as methods so they keep refreshing the DOM
|
|
@@ -18572,27 +18923,11 @@
|
|
|
18572
18923
|
CatalogListComponent.prototype.currentPath = function () {
|
|
18573
18924
|
return this.filters.eventPath();
|
|
18574
18925
|
};
|
|
18575
|
-
CatalogListComponent.prototype.initLoadOnScroll = function () {
|
|
18576
|
-
var _this = this;
|
|
18577
|
-
// Receive an event each time the anchor enters/leaves the viewport
|
|
18578
|
-
this.intersectionObserver = new IntersectionObserver(function () { _this.autoloadContentIfNecessary(); }, {});
|
|
18579
|
-
// Receive an event each time an attribute/child is added/deleted/updated in the parent div of the recipes
|
|
18580
|
-
// i.e. will be triggered each time new recipes are displayed
|
|
18581
|
-
this.mutationObserver = new MutationObserver(function () { _this.autoloadContentIfNecessary(); });
|
|
18582
|
-
this.intersectionObserver.observe(this.bottomAnchor);
|
|
18583
|
-
this.mutationObserver.observe(document.getElementsByClassName('miam-catalog-list__cards')[0], { attributes: true, childList: true, subtree: false } // subtree false => changes on children won't trigger the callback
|
|
18584
|
-
);
|
|
18585
|
-
};
|
|
18586
|
-
CatalogListComponent.prototype.anchorIsOnScreen = function () {
|
|
18587
|
-
var viewportHeight = window.innerHeight || document.documentElement.clientHeight;
|
|
18588
|
-
var rect = this.bottomAnchor.getBoundingClientRect();
|
|
18589
|
-
return (rect.top <= viewportHeight && rect.bottom >= 0);
|
|
18590
|
-
};
|
|
18591
18926
|
CatalogListComponent.prototype.autoloadContentIfNecessary = function () {
|
|
18592
18927
|
var _this = this;
|
|
18593
18928
|
this.subscriptions.push(this.loading.pipe(operators.take(1), operators.filter(function (loading) { return !loading; })).subscribe(function () {
|
|
18594
|
-
if (
|
|
18595
|
-
(_this.articles.length > 0 && !_this.noMoreArticles))
|
|
18929
|
+
if ((_this.currentRecipes.length > 0 && !_this.noMoreRecipes) ||
|
|
18930
|
+
(_this.articles.length > 0 && !_this.noMoreArticles)) {
|
|
18596
18931
|
// At component initial load, 2 calls will be made for the first two recipes page
|
|
18597
18932
|
// This is to avoid making the loader spin twice
|
|
18598
18933
|
_this.loadMore(_this.lastPage > 2);
|
|
@@ -18603,6 +18938,7 @@
|
|
|
18603
18938
|
if (loader === void 0) { loader = true; }
|
|
18604
18939
|
if (loader) {
|
|
18605
18940
|
this.loading.next(true);
|
|
18941
|
+
this.cdr.detectChanges();
|
|
18606
18942
|
}
|
|
18607
18943
|
this.lastPage++;
|
|
18608
18944
|
this.loadContent();
|
|
@@ -18679,33 +19015,16 @@
|
|
|
18679
19015
|
};
|
|
18680
19016
|
CatalogListComponent.prototype.ngOnDestroy = function () {
|
|
18681
19017
|
this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
18682
|
-
this.intersectionObserver.disconnect();
|
|
18683
|
-
this.mutationObserver.disconnect();
|
|
18684
19018
|
};
|
|
18685
19019
|
CatalogListComponent.prototype.isSearching = function () {
|
|
18686
19020
|
return this.filters.search && this.filters.search !== '';
|
|
18687
19021
|
};
|
|
18688
19022
|
CatalogListComponent.prototype.isFieldEmpty = function (recipeFilter) {
|
|
18689
|
-
var e_1, _c;
|
|
18690
19023
|
if (!recipeFilter) {
|
|
18691
19024
|
return true;
|
|
18692
19025
|
}
|
|
18693
|
-
|
|
18694
|
-
|
|
18695
|
-
var f = recipeFilter_1_1.value;
|
|
18696
|
-
if (f.value) {
|
|
18697
|
-
return false;
|
|
18698
|
-
}
|
|
18699
|
-
}
|
|
18700
|
-
}
|
|
18701
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
18702
|
-
finally {
|
|
18703
|
-
try {
|
|
18704
|
-
if (recipeFilter_1_1 && !recipeFilter_1_1.done && (_c = recipeFilter_1.return)) _c.call(recipeFilter_1);
|
|
18705
|
-
}
|
|
18706
|
-
finally { if (e_1) throw e_1.error; }
|
|
18707
|
-
}
|
|
18708
|
-
return true;
|
|
19026
|
+
// if recipeFilter has at least one filter with value, return false
|
|
19027
|
+
return !recipeFilter.some(function (f) { return f.value; });
|
|
18709
19028
|
};
|
|
18710
19029
|
CatalogListComponent.prototype.isFiltering = function () {
|
|
18711
19030
|
return this.isSearching() ||
|
|
@@ -18713,6 +19032,9 @@
|
|
|
18713
19032
|
!this.isFieldEmpty(this.filters.cost) ||
|
|
18714
19033
|
!this.isFieldEmpty(this.filters.time);
|
|
18715
19034
|
};
|
|
19035
|
+
CatalogListComponent.prototype.trackByFn = function (index, recipe) {
|
|
19036
|
+
return recipe.id;
|
|
19037
|
+
};
|
|
18716
19038
|
CatalogListComponent.prototype.props = function () {
|
|
18717
19039
|
var _a, _b;
|
|
18718
19040
|
if (!((_a = this.filters) === null || _a === void 0 ? void 0 : _a.search)) {
|
|
@@ -18748,7 +19070,7 @@
|
|
|
18748
19070
|
};
|
|
18749
19071
|
return CatalogListComponent;
|
|
18750
19072
|
}(EventTracerComponent));
|
|
18751
|
-
CatalogListComponent.ɵfac = function CatalogListComponent_Factory(t) { return new (t || CatalogListComponent)(i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(
|
|
19073
|
+
CatalogListComponent.ɵfac = function CatalogListComponent_Factory(t) { return new (t || CatalogListComponent)(i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(ArticlesService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(AnalyticsService)); };
|
|
18752
19074
|
CatalogListComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: CatalogListComponent, selectors: [["ng-miam-catalog-list"]], viewQuery: function CatalogListComponent_Query(rf, ctx) {
|
|
18753
19075
|
if (rf & 1) {
|
|
18754
19076
|
i0__namespace.ɵɵviewQuery(RecipeCardComponent, 1);
|
|
@@ -18757,7 +19079,7 @@
|
|
|
18757
19079
|
var _t = void 0;
|
|
18758
19080
|
i0__namespace.ɵɵqueryRefresh(_t = i0__namespace.ɵɵloadQuery()) && (ctx.recipeCards = _t);
|
|
18759
19081
|
}
|
|
18760
|
-
}, inputs: { filters: "filters", insertCreateCard: "insertCreateCard", randomMode: "randomMode", modifiedGuests: "modifiedGuests", displayPricing: "displayPricing", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", addRecipeMode: "addRecipeMode", excludedRecipesIds: "excludedRecipesIds" }, outputs: { addToMealsPlanner: "addToMealsPlanner", filterRemoved: "filterRemoved", recipeActionTriggered: "recipeActionTriggered", loading: "loading" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls:
|
|
19082
|
+
}, inputs: { filters: "filters", insertCreateCard: "insertCreateCard", randomMode: "randomMode", modifiedGuests: "modifiedGuests", displayPricing: "displayPricing", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", addRecipeMode: "addRecipeMode", excludedRecipesIds: "excludedRecipesIds" }, outputs: { addToMealsPlanner: "addToMealsPlanner", filterRemoved: "filterRemoved", recipeActionTriggered: "recipeActionTriggered", loading: "loading" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 10, vars: 10, consts: function () {
|
|
18761
19083
|
var i18n_0;
|
|
18762
19084
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
18763
19085
|
var MSG_EXTERNAL_2565683500171826824$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___1 = goog.getMsg("D\u00E9sol\u00E9, aucune proposition trouv\u00E9e");
|
|
@@ -18796,43 +19118,43 @@
|
|
|
18796
19118
|
i18n_8 = MSG_EXTERNAL_4851375363781203983$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS___9;
|
|
18797
19119
|
}
|
|
18798
19120
|
else {
|
|
18799
|
-
i18n_8 = $localize(templateObject_5$
|
|
19121
|
+
i18n_8 = $localize(templateObject_5$6 || (templateObject_5$6 = __makeTemplateObject([":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."], [":\u241Fcdf437ced0967505680ee7fbb9fe6583203edb25\u241F4851375363781203983:D\u00E9sol\u00E9, vous devez \u00EAtre connect\u00E9 pour acc\u00E9der au contenu de cette page."])));
|
|
18800
19122
|
}
|
|
18801
|
-
var
|
|
19123
|
+
var i18n_11;
|
|
18802
19124
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
18803
|
-
var MSG_EXTERNAL_1875448131572248295$$
|
|
18804
|
-
|
|
19125
|
+
var MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__12 = goog.getMsg(" Chargement des r\u00E9sultats... ");
|
|
19126
|
+
i18n_11 = MSG_EXTERNAL_1875448131572248295$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_LIST_CATALOG_LIST_COMPONENT_TS__12;
|
|
18805
19127
|
}
|
|
18806
19128
|
else {
|
|
18807
|
-
|
|
19129
|
+
i18n_11 = $localize(templateObject_6$6 || (templateObject_6$6 = __makeTemplateObject([":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "], [":\u241F834498e5698b366d53cba7a7f98b06a12967862c\u241F1875448131572248295: Chargement des r\u00E9sultats... "])));
|
|
18808
19130
|
}
|
|
18809
|
-
return [[1, "miam-catalog-list__cards"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__card", 3, "clicked", 4, "ngIf"], [
|
|
19131
|
+
return [[1, "miam-catalog-list__cards"], ["class", "miam-catalog-list__notFound", 4, "ngIf"], ["class", "miam-catalog-list__card", 3, "clicked", 4, "ngIf"], ["recipeCard", ""], [4, "ngFor", "ngForOf", "ngForTrackBy"], [3, "article", 4, "ngFor", "ngForOf"], ["class", "miam-catalog-list__loader", 4, "ngIf"], [1, "miam-catalog-list__notFound"], [1, "miam-catalog-list__notFound__icon", 3, "width", "height", "iconName"], [4, "ngIf", "ngIfElse"], ["notFiltering", ""], ["notLogged", ""], [1, "miam-catalog-list__notFound__title1", "filtering"], i18n_0, ["class", "miam-catalog-list__notFound__searching", 4, "ngIf"], [1, "miam-catalog-list__notFound__title2"], i18n_2, [1, "miam-catalog-list__notFound__searching"], i18n_4, [1, "miam-catalog-list__notFound__title1", "not-filtering"], i18n_6, [1, "miam-catalog-list__notFound__title1", "not-logged"], i18n_8, [1, "miam-catalog-list__card", 3, "clicked"], [3, "recipe", "originTrace", "displayPricing", "previewAllowed", "addRecipeMode", "displayGuests", "helpButtonAllowed", "addToMealsPlanner", "actionTriggered"], [4, "ngIf"], [3, "ngTemplateOutlet", "ngTemplateOutletContext", 4, "ngIf"], ["ngMiamLoadOnScroll", "", "marginRoot", "600px", 3, "isLoading", "loadMore"], [3, "ngTemplateOutlet", "ngTemplateOutletContext"], [3, "article"], [1, "miam-catalog-list__loader"], i18n_11];
|
|
18810
19132
|
}, template: function CatalogListComponent_Template(rf, ctx) {
|
|
18811
19133
|
if (rf & 1) {
|
|
18812
19134
|
i0__namespace.ɵɵelementStart(0, "div", 0);
|
|
18813
19135
|
i0__namespace.ɵɵtemplate(1, CatalogListComponent_div_1_Template, 7, 5, "div", 1);
|
|
18814
19136
|
i0__namespace.ɵɵpipe(2, "async");
|
|
18815
19137
|
i0__namespace.ɵɵtemplate(3, CatalogListComponent_ng_miam_card_create_recipe_3_Template, 1, 0, "ng-miam-card-create-recipe", 2);
|
|
18816
|
-
i0__namespace.ɵɵtemplate(4,
|
|
18817
|
-
i0__namespace.ɵɵtemplate(
|
|
18818
|
-
i0__namespace.ɵɵtemplate(
|
|
18819
|
-
i0__namespace.ɵɵ
|
|
18820
|
-
i0__namespace.ɵɵ
|
|
19138
|
+
i0__namespace.ɵɵtemplate(4, CatalogListComponent_ng_template_4_Template, 1, 7, "ng-template", null, 3, i0__namespace.ɵɵtemplateRefExtractor);
|
|
19139
|
+
i0__namespace.ɵɵtemplate(6, CatalogListComponent_ng_container_6_Template, 3, 2, "ng-container", 4);
|
|
19140
|
+
i0__namespace.ɵɵtemplate(7, CatalogListComponent_ng_miam_catalog_article_card_7_Template, 1, 1, "ng-miam-catalog-article-card", 5);
|
|
19141
|
+
i0__namespace.ɵɵtemplate(8, CatalogListComponent_div_8_Template, 4, 0, "div", 6);
|
|
19142
|
+
i0__namespace.ɵɵpipe(9, "async");
|
|
18821
19143
|
i0__namespace.ɵɵelementEnd();
|
|
18822
19144
|
}
|
|
18823
19145
|
if (rf & 2) {
|
|
18824
19146
|
i0__namespace.ɵɵadvance(1);
|
|
18825
|
-
i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(2,
|
|
19147
|
+
i0__namespace.ɵɵproperty("ngIf", !i0__namespace.ɵɵpipeBind1(2, 6, ctx.loading) && ctx.currentRecipes.length === 0 && ctx.articles.length === 0);
|
|
18826
19148
|
i0__namespace.ɵɵadvance(2);
|
|
18827
19149
|
i0__namespace.ɵɵproperty("ngIf", ctx.insertCreateCard && ctx.currentRecipes.length !== 0);
|
|
18828
|
-
i0__namespace.ɵɵadvance(
|
|
18829
|
-
i0__namespace.ɵɵproperty("ngForOf", ctx.currentRecipes);
|
|
19150
|
+
i0__namespace.ɵɵadvance(3);
|
|
19151
|
+
i0__namespace.ɵɵproperty("ngForOf", ctx.currentRecipes)("ngForTrackBy", ctx.trackByFn);
|
|
18830
19152
|
i0__namespace.ɵɵadvance(1);
|
|
18831
19153
|
i0__namespace.ɵɵproperty("ngForOf", ctx.articles);
|
|
18832
19154
|
i0__namespace.ɵɵadvance(1);
|
|
18833
|
-
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(
|
|
19155
|
+
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(9, 8, ctx.loading));
|
|
18834
19156
|
}
|
|
18835
|
-
}, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, IconComponent, CardCreateRecipeComponent, RecipeCardComponent, CatalogArticleCardComponent, LoaderComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-catalog-list__cards{display:grid;grid-template-columns:repeat(auto-fill,var(--m-catalog-card-width));justify-content:center;gap:16px;position:relative;width:100%;box-sizing:border-box}.miam-catalog-list__cards .miam-catalog-list__notFound{display:flex;flex-direction:column;width:100%;justify-content:center;text-align:center;padding:36px 0 0}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{margin-top:36px;font-size:24px;font-weight:700;color:var(--m-color-primary)}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering{display:flex;justify-content:center}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering .miam-catalog-list__notFound__searching span{margin-left:5px}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title2{font-size:22px;color:var(--m-color-grey-text)}.miam-catalog-list__cards .miam-catalog-list__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-list__cards .miam-catalog-list__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-catalog-list__cards #miam-catalog-list__anchor{position:relative;bottom:0;height:600px;margin-top:-600px}"], encapsulation: 2, changeDetection: 0 });
|
|
19157
|
+
}, directives: [i2__namespace$1.NgIf, i2__namespace$1.NgForOf, IconComponent, CardCreateRecipeComponent, RecipeCardComponent, LoadOnScrollDirective, i2__namespace$1.NgTemplateOutlet, CatalogArticleCardComponent, LoaderComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-catalog-list__cards{display:grid;grid-template-columns:repeat(auto-fill,var(--m-catalog-card-width));justify-content:center;gap:16px;position:relative;width:100%;box-sizing:border-box}.miam-catalog-list__cards .miam-catalog-list__notFound{display:flex;flex-direction:column;width:100%;justify-content:center;text-align:center;padding:36px 0 0}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1{margin-top:36px;font-size:24px;font-weight:700;color:var(--m-color-primary)}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering{display:flex;justify-content:center}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title1.filtering .miam-catalog-list__notFound__searching span{margin-left:5px}.miam-catalog-list__cards .miam-catalog-list__notFound .miam-catalog-list__notFound__title2{font-size:22px;color:var(--m-color-grey-text)}.miam-catalog-list__cards .miam-catalog-list__loader{width:100%;font-size:20px;font-weight:700;color:var(--m-color-grey-text);text-align:center}.miam-catalog-list__cards .miam-catalog-list__loader .miam-loader{margin-top:80px;margin-bottom:16px;margin-left:calc(50% - 40px);height:80px;width:80px}.miam-catalog-list__cards #miam-catalog-list__anchor{position:relative;bottom:0;height:600px;margin-top:-600px}"], encapsulation: 2, changeDetection: 0 });
|
|
18836
19158
|
(function () {
|
|
18837
19159
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(CatalogListComponent, [{
|
|
18838
19160
|
type: i0.Component,
|
|
@@ -18843,7 +19165,7 @@
|
|
|
18843
19165
|
encapsulation: i0.ViewEncapsulation.None,
|
|
18844
19166
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
18845
19167
|
}]
|
|
18846
|
-
}], function () { return [{ type: RecipesService }, { type:
|
|
19168
|
+
}], function () { return [{ type: RecipesService }, { type: ArticlesService }, { type: UserService }, { type: ContextService }, { type: i0__namespace.ChangeDetectorRef }, { type: AnalyticsService }]; }, { filters: [{
|
|
18847
19169
|
type: i0.Input
|
|
18848
19170
|
}], insertCreateCard: [{
|
|
18849
19171
|
type: i0.Input
|
|
@@ -18874,7 +19196,7 @@
|
|
|
18874
19196
|
args: [RecipeCardComponent]
|
|
18875
19197
|
}] });
|
|
18876
19198
|
})();
|
|
18877
|
-
var templateObject_1$i, templateObject_2$f, templateObject_3$b, templateObject_4$9, templateObject_5$
|
|
19199
|
+
var templateObject_1$i, templateObject_2$f, templateObject_3$b, templateObject_4$9, templateObject_5$6, templateObject_6$6;
|
|
18878
19200
|
|
|
18879
19201
|
function MealsPlannerCatalogComponent_div_14_Template(rf, ctx) {
|
|
18880
19202
|
if (rf & 1) {
|
|
@@ -19419,7 +19741,9 @@
|
|
|
19419
19741
|
this.subscriptions.forEach(function (s) { return s.unsubscribe(); });
|
|
19420
19742
|
this.recipeDetailsService.onlyShowPreparation = false;
|
|
19421
19743
|
};
|
|
19422
|
-
MealsPlannerComponent.prototype.currentPath = function () {
|
|
19744
|
+
MealsPlannerComponent.prototype.currentPath = function () {
|
|
19745
|
+
return 'miam/recipes/meals-planner';
|
|
19746
|
+
};
|
|
19423
19747
|
// TODO: cut into more methods
|
|
19424
19748
|
MealsPlannerComponent.prototype.addRecipes = function () {
|
|
19425
19749
|
var _this = this;
|
|
@@ -20247,7 +20571,7 @@
|
|
|
20247
20571
|
i18n_8 = MSG_EXTERNAL_7387753154079259338$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_CATALOG_HEADER_CATALOG_HEADER_COMPONENT_TS___9;
|
|
20248
20572
|
}
|
|
20249
20573
|
else {
|
|
20250
|
-
i18n_8 = $localize(templateObject_5$
|
|
20574
|
+
i18n_8 = $localize(templateObject_5$5 || (templateObject_5$5 = __makeTemplateObject([":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"], [":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"])));
|
|
20251
20575
|
}
|
|
20252
20576
|
var i18n_10;
|
|
20253
20577
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20382,7 +20706,7 @@
|
|
|
20382
20706
|
type: i0.Output
|
|
20383
20707
|
}] });
|
|
20384
20708
|
})();
|
|
20385
|
-
var templateObject_1$d, templateObject_2$a, templateObject_3$8, templateObject_4$7, templateObject_5$
|
|
20709
|
+
var templateObject_1$d, templateObject_2$a, templateObject_3$8, templateObject_4$7, templateObject_5$5, templateObject_6$5, templateObject_7$4, templateObject_8$2, templateObject_9$2;
|
|
20386
20710
|
|
|
20387
20711
|
function RecipeFormComponent_form_0_ng_template_3_Template(rf, ctx) {
|
|
20388
20712
|
if (rf & 1) {
|
|
@@ -20903,7 +21227,7 @@
|
|
|
20903
21227
|
i18n_8 = MSG_EXTERNAL_4142863621251590306$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_FORM_RECIPE_FORM_COMPONENT_TS___9;
|
|
20904
21228
|
}
|
|
20905
21229
|
else {
|
|
20906
|
-
i18n_8 = $localize(templateObject_5$
|
|
21230
|
+
i18n_8 = $localize(templateObject_5$4 || (templateObject_5$4 = __makeTemplateObject([":\u241Ffb8b4b6668befda8fc42e047c9b246d4777a881b\u241F4142863621251590306:Ajouter une photo"], [":\u241Ffb8b4b6668befda8fc42e047c9b246d4777a881b\u241F4142863621251590306:Ajouter une photo"])));
|
|
20907
21231
|
}
|
|
20908
21232
|
var i18n_10;
|
|
20909
21233
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -20984,7 +21308,7 @@
|
|
|
20984
21308
|
type: i0.Output
|
|
20985
21309
|
}] });
|
|
20986
21310
|
})();
|
|
20987
|
-
var templateObject_1$c, templateObject_2$9, templateObject_3$7, templateObject_4$6, templateObject_5$
|
|
21311
|
+
var templateObject_1$c, templateObject_2$9, templateObject_3$7, templateObject_4$6, templateObject_5$4, templateObject_6$4, templateObject_7$3, templateObject_8$1, templateObject_9$1;
|
|
20988
21312
|
|
|
20989
21313
|
function TagsCreatorComponent_ng_miam_modal_0_Template(rf, ctx) {
|
|
20990
21314
|
if (rf & 1) {
|
|
@@ -21348,7 +21672,7 @@
|
|
|
21348
21672
|
i18n_8 = MSG_EXTERNAL_2575761888491507638$$LIB__WEB_COMPONENTS_RECIPE_CREATION_TAGS_SELECTOR_TAGS_SELECTOR_COMPONENT_TS__9;
|
|
21349
21673
|
}
|
|
21350
21674
|
else {
|
|
21351
|
-
i18n_8 = $localize(templateObject_5$
|
|
21675
|
+
i18n_8 = $localize(templateObject_5$3 || (templateObject_5$3 = __makeTemplateObject([":\u241F13a158067c29e5c5211ea07d687c286c5ba99516\u241F2575761888491507638: Famille d'ingr\u00E9dients "], [":\u241F13a158067c29e5c5211ea07d687c286c5ba99516\u241F2575761888491507638: Famille d'ingr\u00E9dients "])));
|
|
21352
21676
|
}
|
|
21353
21677
|
var i18n_10;
|
|
21354
21678
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -21399,7 +21723,7 @@
|
|
|
21399
21723
|
type: i0.Output
|
|
21400
21724
|
}] });
|
|
21401
21725
|
})();
|
|
21402
|
-
var templateObject_1$a, templateObject_2$7, templateObject_3$5, templateObject_4$4, templateObject_5$
|
|
21726
|
+
var templateObject_1$a, templateObject_2$7, templateObject_3$5, templateObject_4$4, templateObject_5$3, templateObject_6$3, templateObject_7$2;
|
|
21403
21727
|
|
|
21404
21728
|
var _c0$4 = ["topAnchor"];
|
|
21405
21729
|
var _c1$2 = ["stepperLinks"];
|
|
@@ -21916,7 +22240,7 @@
|
|
|
21916
22240
|
i18n_11 = MSG_EXTERNAL_4078662097036588656$$LIB__WEB_COMPONENTS_RECIPE_CREATION_RECIPE_STEPPER_RECIPE_STEPPER_COMPONENT_TS_12;
|
|
21917
22241
|
}
|
|
21918
22242
|
else {
|
|
21919
|
-
i18n_11 = $localize(templateObject_5$
|
|
22243
|
+
i18n_11 = $localize(templateObject_5$2 || (templateObject_5$2 = __makeTemplateObject([":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"], [":\u241F49375178588cf9deb7d988b78a2c8f00026e7285\u241F4078662097036588656:Image trop volumineuse"])));
|
|
21920
22244
|
}
|
|
21921
22245
|
var i18n_13;
|
|
21922
22246
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -22176,7 +22500,7 @@
|
|
|
22176
22500
|
args: ['step']
|
|
22177
22501
|
}] });
|
|
22178
22502
|
})();
|
|
22179
|
-
var templateObject_1$9, templateObject_2$6, templateObject_3$4, templateObject_4$3, templateObject_5$
|
|
22503
|
+
var templateObject_1$9, templateObject_2$6, templateObject_3$4, templateObject_4$3, templateObject_5$2, templateObject_6$2, templateObject_7$1, templateObject_8, templateObject_9, templateObject_10, templateObject_11, templateObject_12, templateObject_13, templateObject_14, templateObject_15, templateObject_16, templateObject_17, templateObject_18, templateObject_19, templateObject_20, templateObject_21, templateObject_22, templateObject_23;
|
|
22180
22504
|
|
|
22181
22505
|
var _c0$3 = ["miamCatalogTopAnchor"];
|
|
22182
22506
|
function RecipeCatalogComponent_div_2_div_4_Template(rf, ctx) {
|
|
@@ -22800,7 +23124,7 @@
|
|
|
22800
23124
|
i18n_9 = MSG_EXTERNAL_7387753154079259338$$LIB__WEB_COMPONENTS_RECIPE_CATALOG_RECIPE_CATALOG_COMPONENT_TS____10;
|
|
22801
23125
|
}
|
|
22802
23126
|
else {
|
|
22803
|
-
i18n_9 = $localize(templateObject_5$
|
|
23127
|
+
i18n_9 = $localize(templateObject_5$1 || (templateObject_5$1 = __makeTemplateObject([":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"], [":\u241F1e0415ec0e248029811bbeb6a2892c6bf701f9be\u241F7387753154079259338:Votre s\u00E9lection"])));
|
|
22804
23128
|
}
|
|
22805
23129
|
var i18n_11;
|
|
22806
23130
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
@@ -22856,7 +23180,7 @@
|
|
|
22856
23180
|
type: i0.Input
|
|
22857
23181
|
}] });
|
|
22858
23182
|
})();
|
|
22859
|
-
var templateObject_1$8, templateObject_2$5, templateObject_3$3, templateObject_4$2, templateObject_5$
|
|
23183
|
+
var templateObject_1$8, templateObject_2$5, templateObject_3$3, templateObject_4$2, templateObject_5$1, templateObject_6$1;
|
|
22860
23184
|
|
|
22861
23185
|
var RecipeCreationModule = /** @class */ (function () {
|
|
22862
23186
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -23644,7 +23968,7 @@
|
|
|
23644
23968
|
}
|
|
23645
23969
|
function RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_10_Template(rf, ctx) {
|
|
23646
23970
|
if (rf & 1) {
|
|
23647
|
-
i0__namespace.ɵɵelement(0, "ng-miam-like-button",
|
|
23971
|
+
i0__namespace.ɵɵelement(0, "ng-miam-like-button", 45);
|
|
23648
23972
|
}
|
|
23649
23973
|
if (rf & 2) {
|
|
23650
23974
|
var ctx_r6 = i0__namespace.ɵɵnextContext(3);
|
|
@@ -23653,7 +23977,7 @@
|
|
|
23653
23977
|
}
|
|
23654
23978
|
function RecipeDetailsComponent_div_0_div_3_img_14_Template(rf, ctx) {
|
|
23655
23979
|
if (rf & 1) {
|
|
23656
|
-
i0__namespace.ɵɵelement(0, "img",
|
|
23980
|
+
i0__namespace.ɵɵelement(0, "img", 46);
|
|
23657
23981
|
}
|
|
23658
23982
|
if (rf & 2) {
|
|
23659
23983
|
var ctx_r7 = i0__namespace.ɵɵnextContext(3);
|
|
@@ -23662,7 +23986,7 @@
|
|
|
23662
23986
|
}
|
|
23663
23987
|
function RecipeDetailsComponent_div_0_div_3_youtube_player_15_Template(rf, ctx) {
|
|
23664
23988
|
if (rf & 1) {
|
|
23665
|
-
i0__namespace.ɵɵelement(0, "youtube-player",
|
|
23989
|
+
i0__namespace.ɵɵelement(0, "youtube-player", 47);
|
|
23666
23990
|
}
|
|
23667
23991
|
if (rf & 2) {
|
|
23668
23992
|
var ctx_r8 = i0__namespace.ɵɵnextContext(3);
|
|
@@ -23671,8 +23995,8 @@
|
|
|
23671
23995
|
}
|
|
23672
23996
|
function RecipeDetailsComponent_div_0_div_3_div_16_Template(rf, ctx) {
|
|
23673
23997
|
if (rf & 1) {
|
|
23674
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
23675
|
-
i0__namespace.ɵɵelement(1, "img",
|
|
23998
|
+
i0__namespace.ɵɵelementStart(0, "div", 48);
|
|
23999
|
+
i0__namespace.ɵɵelement(1, "img", 49);
|
|
23676
24000
|
i0__namespace.ɵɵelementEnd();
|
|
23677
24001
|
}
|
|
23678
24002
|
if (rf & 2) {
|
|
@@ -23683,9 +24007,9 @@
|
|
|
23683
24007
|
}
|
|
23684
24008
|
function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template(rf, ctx) {
|
|
23685
24009
|
if (rf & 1) {
|
|
23686
|
-
var
|
|
23687
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-addon-link",
|
|
23688
|
-
i0__namespace.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template_ng_miam_addon_link_showAddon_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
24010
|
+
var _r19_1 = i0__namespace.ɵɵgetCurrentView();
|
|
24011
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-addon-link", 50);
|
|
24012
|
+
i0__namespace.ɵɵlistener("showAddon", function RecipeDetailsComponent_div_0_div_3_ng_miam_addon_link_18_Template_ng_miam_addon_link_showAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r19_1); var ctx_r18 = i0__namespace.ɵɵnextContext(3); return ctx_r18.toggleAddon(); });
|
|
23689
24013
|
i0__namespace.ɵɵelementEnd();
|
|
23690
24014
|
}
|
|
23691
24015
|
if (rf & 2) {
|
|
@@ -23695,7 +24019,7 @@
|
|
|
23695
24019
|
}
|
|
23696
24020
|
function RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_27_Template(rf, ctx) {
|
|
23697
24021
|
if (rf & 1) {
|
|
23698
|
-
i0__namespace.ɵɵelement(0, "ng-miam-like-button",
|
|
24022
|
+
i0__namespace.ɵɵelement(0, "ng-miam-like-button", 51);
|
|
23699
24023
|
}
|
|
23700
24024
|
if (rf & 2) {
|
|
23701
24025
|
var ctx_r11 = i0__namespace.ɵɵnextContext(3);
|
|
@@ -23704,17 +24028,17 @@
|
|
|
23704
24028
|
}
|
|
23705
24029
|
function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template(rf, ctx) {
|
|
23706
24030
|
if (rf & 1) {
|
|
23707
|
-
var
|
|
23708
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-products-picker",
|
|
23709
|
-
i0__namespace.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template_ng_miam_products_picker_closeModal_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
24031
|
+
var _r21_1 = i0__namespace.ɵɵgetCurrentView();
|
|
24032
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-products-picker", 52);
|
|
24033
|
+
i0__namespace.ɵɵlistener("closeModal", function RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template_ng_miam_products_picker_closeModal_0_listener() { i0__namespace.ɵɵrestoreView(_r21_1); var ctx_r20 = i0__namespace.ɵɵnextContext(3); return ctx_r20.onClose(); });
|
|
23710
24034
|
i0__namespace.ɵɵelementEnd();
|
|
23711
24035
|
}
|
|
23712
24036
|
}
|
|
23713
24037
|
function RecipeDetailsComponent_div_0_div_3_div_36_Template(rf, ctx) {
|
|
23714
24038
|
if (rf & 1) {
|
|
23715
|
-
i0__namespace.ɵɵelementStart(0, "div",
|
|
23716
|
-
i0__namespace.ɵɵelement(1, "ng-miam-recipe-details-ingredients",
|
|
23717
|
-
i0__namespace.ɵɵelement(2, "ng-miam-recipe-details-steps",
|
|
24039
|
+
i0__namespace.ɵɵelementStart(0, "div", 53);
|
|
24040
|
+
i0__namespace.ɵɵelement(1, "ng-miam-recipe-details-ingredients", 54);
|
|
24041
|
+
i0__namespace.ɵɵelement(2, "ng-miam-recipe-details-steps", 55);
|
|
23718
24042
|
i0__namespace.ɵɵelementEnd();
|
|
23719
24043
|
}
|
|
23720
24044
|
if (rf & 2) {
|
|
@@ -23725,135 +24049,130 @@
|
|
|
23725
24049
|
i0__namespace.ɵɵproperty("recipe", ctx_r13.recipeDetailsService.recipe);
|
|
23726
24050
|
}
|
|
23727
24051
|
}
|
|
23728
|
-
function
|
|
24052
|
+
function RecipeDetailsComponent_div_0_div_3_button_39_span_7_Template(rf, ctx) {
|
|
23729
24053
|
if (rf & 1) {
|
|
23730
|
-
i0__namespace.ɵɵelementStart(0, "
|
|
23731
|
-
i0__namespace.ɵɵ
|
|
23732
|
-
i0__namespace.ɵɵi18n(2, 62);
|
|
23733
|
-
i0__namespace.ɵɵelementEnd();
|
|
24054
|
+
i0__namespace.ɵɵelementStart(0, "span");
|
|
24055
|
+
i0__namespace.ɵɵi18n(1, 63);
|
|
23734
24056
|
i0__namespace.ɵɵelementEnd();
|
|
23735
24057
|
}
|
|
23736
24058
|
}
|
|
23737
|
-
function
|
|
24059
|
+
function RecipeDetailsComponent_div_0_div_3_button_39_span_8_Template(rf, ctx) {
|
|
23738
24060
|
if (rf & 1) {
|
|
23739
24061
|
i0__namespace.ɵɵelementStart(0, "span");
|
|
23740
24062
|
i0__namespace.ɵɵi18n(1, 64);
|
|
23741
24063
|
i0__namespace.ɵɵelementEnd();
|
|
23742
24064
|
}
|
|
23743
24065
|
}
|
|
23744
|
-
function
|
|
24066
|
+
function RecipeDetailsComponent_div_0_div_3_button_39_Template(rf, ctx) {
|
|
23745
24067
|
if (rf & 1) {
|
|
23746
|
-
i0__namespace.ɵɵ
|
|
23747
|
-
i0__namespace.ɵɵ
|
|
24068
|
+
var _r25_1 = i0__namespace.ɵɵgetCurrentView();
|
|
24069
|
+
i0__namespace.ɵɵelementStart(0, "button", 56);
|
|
24070
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_button_39_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r25_1); var ctx_r24 = i0__namespace.ɵɵnextContext(3); return ctx_r24.recipeDetailsService.addAllIngredientsToBasket(ctx_r24.eventTrace()); });
|
|
24071
|
+
i0__namespace.ɵɵelement(1, "img", 57);
|
|
24072
|
+
i0__namespace.ɵɵelementStart(2, "div", 58);
|
|
24073
|
+
i0__namespace.ɵɵelementStart(3, "span");
|
|
24074
|
+
i0__namespace.ɵɵi18n(4, 59);
|
|
23748
24075
|
i0__namespace.ɵɵelementEnd();
|
|
23749
|
-
|
|
23750
|
-
|
|
23751
|
-
|
|
23752
|
-
|
|
23753
|
-
i0__namespace.ɵɵ
|
|
23754
|
-
i0__namespace.ɵɵelementStart(
|
|
23755
|
-
i0__namespace.ɵɵ
|
|
24076
|
+
i0__namespace.ɵɵelementStart(5, "span");
|
|
24077
|
+
i0__namespace.ɵɵtext(6);
|
|
24078
|
+
i0__namespace.ɵɵelementEnd();
|
|
24079
|
+
i0__namespace.ɵɵtemplate(7, RecipeDetailsComponent_div_0_div_3_button_39_span_7_Template, 2, 0, "span", 60);
|
|
24080
|
+
i0__namespace.ɵɵtemplate(8, RecipeDetailsComponent_div_0_div_3_button_39_span_8_Template, 2, 0, "span", 60);
|
|
24081
|
+
i0__namespace.ɵɵelementStart(9, "div", 61);
|
|
24082
|
+
i0__namespace.ɵɵtext(10, " ( ");
|
|
24083
|
+
i0__namespace.ɵɵelementStart(11, "span");
|
|
24084
|
+
i0__namespace.ɵɵpipe(12, "async");
|
|
24085
|
+
i0__namespace.ɵɵtext(13);
|
|
24086
|
+
i0__namespace.ɵɵpipe(14, "currency");
|
|
24087
|
+
i0__namespace.ɵɵelementEnd();
|
|
24088
|
+
i0__namespace.ɵɵelement(15, "div", 62);
|
|
24089
|
+
i0__namespace.ɵɵpipe(16, "async");
|
|
24090
|
+
i0__namespace.ɵɵtext(17, " ) ");
|
|
23756
24091
|
i0__namespace.ɵɵelementEnd();
|
|
23757
|
-
i0__namespace.ɵɵelementStart(3, "span");
|
|
23758
|
-
i0__namespace.ɵɵtext(4);
|
|
23759
24092
|
i0__namespace.ɵɵelementEnd();
|
|
23760
|
-
i0__namespace.ɵɵtemplate(5, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_ng_template_3_span_5_Template, 2, 0, "span", 41);
|
|
23761
|
-
i0__namespace.ɵɵtemplate(6, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_ng_template_3_span_6_Template, 2, 0, "span", 41);
|
|
23762
24093
|
i0__namespace.ɵɵelementEnd();
|
|
23763
24094
|
}
|
|
23764
24095
|
if (rf & 2) {
|
|
23765
|
-
var
|
|
23766
|
-
i0__namespace.ɵɵadvance(
|
|
23767
|
-
i0__namespace.ɵɵtextInterpolate(
|
|
24096
|
+
var ctx_r14 = i0__namespace.ɵɵnextContext(3);
|
|
24097
|
+
i0__namespace.ɵɵadvance(6);
|
|
24098
|
+
i0__namespace.ɵɵtextInterpolate(ctx_r14.recipeDetailsService.remainingBasketEntries.length);
|
|
23768
24099
|
i0__namespace.ɵɵadvance(1);
|
|
23769
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
24100
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length <= 1);
|
|
23770
24101
|
i0__namespace.ɵɵadvance(1);
|
|
23771
|
-
i0__namespace.ɵɵproperty("ngIf",
|
|
23772
|
-
|
|
23773
|
-
|
|
23774
|
-
function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_Template(rf, ctx) {
|
|
23775
|
-
if (rf & 1) {
|
|
23776
|
-
var _r29_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23777
|
-
i0__namespace.ɵɵelementStart(0, "button", 57);
|
|
23778
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r28 = i0__namespace.ɵɵnextContext(4); return ctx_r28.recipeDetailsService.addAllIngredientsToBasket(ctx_r28.eventTrace()); });
|
|
23779
|
-
i0__namespace.ɵɵelement(1, "img", 58);
|
|
23780
|
-
i0__namespace.ɵɵtemplate(2, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_div_2_Template, 3, 0, "div", 59);
|
|
23781
|
-
i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_ng_container_38_button_1_ng_template_3_Template, 7, 3, "ng-template", null, 60, i0__namespace.ɵɵtemplateRefExtractor);
|
|
23782
|
-
i0__namespace.ɵɵelementEnd();
|
|
23783
|
-
}
|
|
23784
|
-
if (rf & 2) {
|
|
23785
|
-
var _r24 = i0__namespace.ɵɵreference(4);
|
|
23786
|
-
var ctx_r20 = i0__namespace.ɵɵnextContext(4);
|
|
24102
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length > 1);
|
|
24103
|
+
i0__namespace.ɵɵadvance(3);
|
|
24104
|
+
i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(12, 8, ctx_r14.recipeDetailsService.ingredientToBasketLoading$));
|
|
23787
24105
|
i0__namespace.ɵɵadvance(2);
|
|
23788
|
-
i0__namespace.ɵɵ
|
|
24106
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(14, 10, ctx_r14.recipeDetailsService.recipePrice.remaining, ctx_r14.suppliersService.supplier$.value.currency), " ");
|
|
24107
|
+
i0__namespace.ɵɵadvance(2);
|
|
24108
|
+
i0__namespace.ɵɵclassProp("hidden", !i0__namespace.ɵɵpipeBind1(16, 13, ctx_r14.recipeDetailsService.ingredientToBasketLoading$));
|
|
23789
24109
|
}
|
|
23790
24110
|
}
|
|
23791
|
-
function
|
|
24111
|
+
function RecipeDetailsComponent_div_0_div_3_button_41_Template(rf, ctx) {
|
|
23792
24112
|
if (rf & 1) {
|
|
23793
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
23794
|
-
i0__namespace.ɵɵelement(1, "div",
|
|
24113
|
+
i0__namespace.ɵɵelementStart(0, "button", 65);
|
|
24114
|
+
i0__namespace.ɵɵelement(1, "div", 62);
|
|
23795
24115
|
i0__namespace.ɵɵelementEnd();
|
|
23796
24116
|
}
|
|
23797
24117
|
}
|
|
23798
|
-
function
|
|
24118
|
+
function RecipeDetailsComponent_div_0_div_3_button_43_Template(rf, ctx) {
|
|
23799
24119
|
if (rf & 1) {
|
|
23800
|
-
var
|
|
23801
|
-
i0__namespace.ɵɵelementStart(0, "button",
|
|
23802
|
-
i0__namespace.ɵɵlistener("click", function
|
|
23803
|
-
i0__namespace.ɵɵelementStart(1, "div",
|
|
24120
|
+
var _r27_1 = i0__namespace.ɵɵgetCurrentView();
|
|
24121
|
+
i0__namespace.ɵɵelementStart(0, "button", 66);
|
|
24122
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_button_43_Template_button_click_0_listener() { i0__namespace.ɵɵrestoreView(_r27_1); var ctx_r26 = i0__namespace.ɵɵnextContext(3); return ctx_r26.onClose(); });
|
|
24123
|
+
i0__namespace.ɵɵelementStart(1, "div", 58);
|
|
23804
24124
|
i0__namespace.ɵɵelementStart(2, "span");
|
|
23805
|
-
i0__namespace.ɵɵi18n(3,
|
|
24125
|
+
i0__namespace.ɵɵi18n(3, 67);
|
|
23806
24126
|
i0__namespace.ɵɵelementEnd();
|
|
23807
24127
|
i0__namespace.ɵɵelementEnd();
|
|
23808
24128
|
i0__namespace.ɵɵelementEnd();
|
|
23809
24129
|
}
|
|
23810
24130
|
}
|
|
23811
|
-
function
|
|
24131
|
+
function RecipeDetailsComponent_div_0_div_3_div_44_Template(rf, ctx) {
|
|
23812
24132
|
if (rf & 1) {
|
|
23813
|
-
i0__namespace.ɵɵ
|
|
23814
|
-
i0__namespace.ɵɵ
|
|
23815
|
-
i0__namespace.ɵɵ
|
|
23816
|
-
i0__namespace.ɵɵ
|
|
24133
|
+
i0__namespace.ɵɵelementStart(0, "div", 68);
|
|
24134
|
+
i0__namespace.ɵɵelementStart(1, "div", 69);
|
|
24135
|
+
i0__namespace.ɵɵelementStart(2, "span");
|
|
24136
|
+
i0__namespace.ɵɵpipe(3, "async");
|
|
23817
24137
|
i0__namespace.ɵɵpipe(4, "async");
|
|
23818
|
-
i0__namespace.ɵɵ
|
|
23819
|
-
i0__namespace.ɵɵ
|
|
24138
|
+
i0__namespace.ɵɵtext(5);
|
|
24139
|
+
i0__namespace.ɵɵpipe(6, "currency");
|
|
24140
|
+
i0__namespace.ɵɵelementEnd();
|
|
24141
|
+
i0__namespace.ɵɵelement(7, "div", 70);
|
|
24142
|
+
i0__namespace.ɵɵpipe(8, "async");
|
|
24143
|
+
i0__namespace.ɵɵpipe(9, "async");
|
|
24144
|
+
i0__namespace.ɵɵelementEnd();
|
|
24145
|
+
i0__namespace.ɵɵelementStart(10, "span", 71);
|
|
24146
|
+
i0__namespace.ɵɵtext(11, "dans mon panier");
|
|
24147
|
+
i0__namespace.ɵɵelementEnd();
|
|
24148
|
+
i0__namespace.ɵɵelementEnd();
|
|
23820
24149
|
}
|
|
23821
24150
|
if (rf & 2) {
|
|
23822
|
-
var
|
|
23823
|
-
i0__namespace.ɵɵadvance(1);
|
|
23824
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r14.recipeDetailsService.remainingBasketEntries.length > 0 && !i0__namespace.ɵɵpipeBind1(2, 3, ctx_r14.recipeDetailsService.allIngredientsToBasketLoading$));
|
|
24151
|
+
var ctx_r17 = i0__namespace.ɵɵnextContext(3);
|
|
23825
24152
|
i0__namespace.ɵɵadvance(2);
|
|
23826
|
-
i0__namespace.ɵɵ
|
|
24153
|
+
i0__namespace.ɵɵclassProp("hidden", i0__namespace.ɵɵpipeBind1(3, 5, ctx_r17.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(4, 7, ctx_r17.recipeDetailsService.updateIngredientFromBasketLoading$));
|
|
24154
|
+
i0__namespace.ɵɵadvance(3);
|
|
24155
|
+
i0__namespace.ɵɵtextInterpolate1(" ", i0__namespace.ɵɵpipeBind2(6, 9, ctx_r17.recipeDetailsService.recipePrice.inBasket, ctx_r17.suppliersService.supplier$.value.currency), " ");
|
|
23827
24156
|
i0__namespace.ɵɵadvance(2);
|
|
23828
|
-
i0__namespace.ɵɵ
|
|
23829
|
-
}
|
|
23830
|
-
}
|
|
23831
|
-
function RecipeDetailsComponent_div_0_div_3_ng_miam_recipe_pricing_39_Template(rf, ctx) {
|
|
23832
|
-
if (rf & 1) {
|
|
23833
|
-
i0__namespace.ɵɵelement(0, "ng-miam-recipe-pricing", 70);
|
|
23834
|
-
}
|
|
23835
|
-
if (rf & 2) {
|
|
23836
|
-
var ctx_r15 = i0__namespace.ɵɵnextContext(3);
|
|
23837
|
-
i0__namespace.ɵɵproperty("fetchPricingOnScroll", false)("recipeId", ctx_r15.recipeDetailsService.recipe == null ? null : ctx_r15.recipeDetailsService.recipe.id)("serves", ctx_r15.recipeDetailsService.recipe == null ? null : ctx_r15.recipeDetailsService.recipe.modifiedGuests)("guestsText", ctx_r15.pricingGuestsText);
|
|
24157
|
+
i0__namespace.ɵɵclassProp("hidden", !(i0__namespace.ɵɵpipeBind1(8, 12, ctx_r17.recipeDetailsService.ingredientToBasketLoading$) || i0__namespace.ɵɵpipeBind1(9, 14, ctx_r17.recipeDetailsService.updateIngredientFromBasketLoading$)));
|
|
23838
24158
|
}
|
|
23839
24159
|
}
|
|
23840
|
-
var
|
|
23841
|
-
var
|
|
23842
|
-
var _c13 = function (a0, a1) { return { "center": a0, "hidden": a1 }; };
|
|
24160
|
+
var _c9 = function (a0) { return { "hidden": a0 }; };
|
|
24161
|
+
var _c10 = function () { return ["Je fais mes courses", "Je cuisine"]; };
|
|
23843
24162
|
function RecipeDetailsComponent_div_0_div_3_Template(rf, ctx) {
|
|
23844
24163
|
if (rf & 1) {
|
|
23845
|
-
var
|
|
24164
|
+
var _r29_1 = i0__namespace.ɵɵgetCurrentView();
|
|
23846
24165
|
i0__namespace.ɵɵelementStart(0, "div", 7);
|
|
23847
24166
|
i0__namespace.ɵɵelementStart(1, "div", 8, 9);
|
|
23848
24167
|
i0__namespace.ɵɵelementStart(3, "div", 10);
|
|
23849
24168
|
i0__namespace.ɵɵelementStart(4, "div", 11);
|
|
23850
24169
|
i0__namespace.ɵɵelementStart(5, "button", 12);
|
|
23851
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(
|
|
24170
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_5_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r28 = i0__namespace.ɵɵnextContext(2); return ctx_r28.onClose(); });
|
|
23852
24171
|
i0__namespace.ɵɵelement(6, "img", 13);
|
|
23853
24172
|
i0__namespace.ɵɵelementEnd();
|
|
23854
24173
|
i0__namespace.ɵɵelementStart(7, "div", 14);
|
|
23855
24174
|
i0__namespace.ɵɵelementStart(8, "button", 15);
|
|
23856
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_8_listener() { i0__namespace.ɵɵrestoreView(
|
|
24175
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_8_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r30 = i0__namespace.ɵɵnextContext(2); return ctx_r30.onClose(); });
|
|
23857
24176
|
i0__namespace.ɵɵelement(9, "img", 16);
|
|
23858
24177
|
i0__namespace.ɵɵelementEnd();
|
|
23859
24178
|
i0__namespace.ɵɵtemplate(10, RecipeDetailsComponent_div_0_div_3_ng_miam_like_button_10_Template, 1, 3, "ng-miam-like-button", 17);
|
|
@@ -23861,7 +24180,7 @@
|
|
|
23861
24180
|
i0__namespace.ɵɵelementEnd();
|
|
23862
24181
|
i0__namespace.ɵɵelementEnd();
|
|
23863
24182
|
i0__namespace.ɵɵelementStart(12, "ng-miam-counter-input", 18);
|
|
23864
|
-
i0__namespace.ɵɵlistener("valueChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_counter_input_valueChange_12_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
24183
|
+
i0__namespace.ɵɵlistener("valueChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_counter_input_valueChange_12_listener($event) { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r31 = i0__namespace.ɵɵnextContext(2); return ctx_r31.updateGuests($event); });
|
|
23865
24184
|
i0__namespace.ɵɵtext(13, " > ");
|
|
23866
24185
|
i0__namespace.ɵɵelementEnd();
|
|
23867
24186
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23876,7 +24195,7 @@
|
|
|
23876
24195
|
i0__namespace.ɵɵelementStart(20, "div", 25);
|
|
23877
24196
|
i0__namespace.ɵɵelementStart(21, "div", 26);
|
|
23878
24197
|
i0__namespace.ɵɵelementStart(22, "button", 27);
|
|
23879
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_22_listener() { i0__namespace.ɵɵrestoreView(
|
|
24198
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_22_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r32 = i0__namespace.ɵɵnextContext(2); return ctx_r32.onClose(); });
|
|
23880
24199
|
i0__namespace.ɵɵelement(23, "img", 28);
|
|
23881
24200
|
i0__namespace.ɵɵelementEnd();
|
|
23882
24201
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23888,7 +24207,7 @@
|
|
|
23888
24207
|
i0__namespace.ɵɵpipe(28, "async");
|
|
23889
24208
|
i0__namespace.ɵɵelementStart(29, "div", 32);
|
|
23890
24209
|
i0__namespace.ɵɵelementStart(30, "button", 33);
|
|
23891
|
-
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_30_listener() { i0__namespace.ɵɵrestoreView(
|
|
24210
|
+
i0__namespace.ɵɵlistener("click", function RecipeDetailsComponent_div_0_div_3_Template_button_click_30_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r33 = i0__namespace.ɵɵnextContext(2); return ctx_r33.onClose(); });
|
|
23892
24211
|
i0__namespace.ɵɵelement(31, "img", 34);
|
|
23893
24212
|
i0__namespace.ɵɵelementEnd();
|
|
23894
24213
|
i0__namespace.ɵɵelementEnd();
|
|
@@ -23897,21 +24216,27 @@
|
|
|
23897
24216
|
i0__namespace.ɵɵelement(32, "ng-miam-recipe-details-infos", 35);
|
|
23898
24217
|
i0__namespace.ɵɵelementStart(33, "div", 36);
|
|
23899
24218
|
i0__namespace.ɵɵelementStart(34, "ng-miam-slider-tabs", 37);
|
|
23900
|
-
i0__namespace.ɵɵlistener("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener($event) { i0__namespace.ɵɵrestoreView(
|
|
24219
|
+
i0__namespace.ɵɵlistener("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener($event) { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r34 = i0__namespace.ɵɵnextContext(2); return ctx_r34.activeTabIndex = $event; })("selectedTabIndexChange", function RecipeDetailsComponent_div_0_div_3_Template_ng_miam_slider_tabs_selectedTabIndexChange_34_listener() { i0__namespace.ɵɵrestoreView(_r29_1); var ctx_r35 = i0__namespace.ɵɵnextContext(2); return ctx_r35.cdr.detectChanges(); });
|
|
23901
24220
|
i0__namespace.ɵɵelementEnd();
|
|
23902
24221
|
i0__namespace.ɵɵelementEnd();
|
|
23903
24222
|
i0__namespace.ɵɵtemplate(35, RecipeDetailsComponent_div_0_div_3_ng_miam_products_picker_35_Template, 1, 0, "ng-miam-products-picker", 38);
|
|
23904
24223
|
i0__namespace.ɵɵtemplate(36, RecipeDetailsComponent_div_0_div_3_div_36_Template, 3, 2, "div", 39);
|
|
23905
24224
|
i0__namespace.ɵɵelementStart(37, "div", 40);
|
|
23906
|
-
i0__namespace.ɵɵ
|
|
23907
|
-
i0__namespace.ɵɵtemplate(39,
|
|
24225
|
+
i0__namespace.ɵɵelementContainerStart(38);
|
|
24226
|
+
i0__namespace.ɵɵtemplate(39, RecipeDetailsComponent_div_0_div_3_button_39_Template, 18, 15, "button", 41);
|
|
24227
|
+
i0__namespace.ɵɵpipe(40, "async");
|
|
24228
|
+
i0__namespace.ɵɵtemplate(41, RecipeDetailsComponent_div_0_div_3_button_41_Template, 2, 0, "button", 42);
|
|
24229
|
+
i0__namespace.ɵɵpipe(42, "async");
|
|
24230
|
+
i0__namespace.ɵɵtemplate(43, RecipeDetailsComponent_div_0_div_3_button_43_Template, 4, 0, "button", 43);
|
|
24231
|
+
i0__namespace.ɵɵelementContainerEnd();
|
|
24232
|
+
i0__namespace.ɵɵtemplate(44, RecipeDetailsComponent_div_0_div_3_div_44_Template, 12, 16, "div", 44);
|
|
23908
24233
|
i0__namespace.ɵɵelementEnd();
|
|
23909
24234
|
i0__namespace.ɵɵelementEnd();
|
|
23910
24235
|
}
|
|
23911
24236
|
if (rf & 2) {
|
|
23912
24237
|
var ctx_r4 = i0__namespace.ɵɵnextContext(2);
|
|
23913
24238
|
i0__namespace.ɵɵadvance(10);
|
|
23914
|
-
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(11,
|
|
24239
|
+
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(11, 20, ctx_r4.userService.isLogged$));
|
|
23915
24240
|
i0__namespace.ɵɵadvance(2);
|
|
23916
24241
|
i0__namespace.ɵɵproperty("floating", true)("value", ctx_r4.recipeDetailsService.recipe.modifiedGuests)("minRange", 1);
|
|
23917
24242
|
i0__namespace.ɵɵadvance(2);
|
|
@@ -23925,21 +24250,23 @@
|
|
|
23925
24250
|
i0__namespace.ɵɵadvance(7);
|
|
23926
24251
|
i0__namespace.ɵɵtextInterpolate1(" ", ctx_r4.recipeDetailsService.recipe == null ? null : ctx_r4.recipeDetailsService.recipe.attributes["title"], " ");
|
|
23927
24252
|
i0__namespace.ɵɵadvance(2);
|
|
23928
|
-
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(28,
|
|
24253
|
+
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(28, 22, ctx_r4.userService.isLogged$));
|
|
23929
24254
|
i0__namespace.ɵɵadvance(5);
|
|
23930
24255
|
i0__namespace.ɵɵproperty("recipe", ctx_r4.recipeDetailsService.recipe);
|
|
23931
24256
|
i0__namespace.ɵɵadvance(1);
|
|
23932
|
-
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(
|
|
24257
|
+
i0__namespace.ɵɵproperty("ngClass", i0__namespace.ɵɵpureFunction1(28, _c9, ctx_r4.recipeDetailsService.onlyShowPreparation));
|
|
23933
24258
|
i0__namespace.ɵɵadvance(1);
|
|
23934
|
-
i0__namespace.ɵɵproperty("tabs", i0__namespace.ɵɵpureFunction0(
|
|
24259
|
+
i0__namespace.ɵɵproperty("tabs", i0__namespace.ɵɵpureFunction0(30, _c10))("selectedTabIndex", ctx_r4.activeTabIndex);
|
|
23935
24260
|
i0__namespace.ɵɵadvance(1);
|
|
23936
24261
|
i0__namespace.ɵɵproperty("ngIf", ctx_r4.activeTabIndex === 0);
|
|
23937
24262
|
i0__namespace.ɵɵadvance(1);
|
|
23938
24263
|
i0__namespace.ɵɵproperty("ngIf", ctx_r4.activeTabIndex === 1);
|
|
23939
|
-
i0__namespace.ɵɵadvance(
|
|
23940
|
-
i0__namespace.ɵɵproperty("
|
|
23941
|
-
i0__namespace.ɵɵadvance(
|
|
23942
|
-
i0__namespace.ɵɵproperty("ngIf", ctx_r4.
|
|
24264
|
+
i0__namespace.ɵɵadvance(3);
|
|
24265
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.remainingBasketEntries.length > 0 && !i0__namespace.ɵɵpipeBind1(40, 24, ctx_r4.recipeDetailsService.allIngredientsToBasketLoading$));
|
|
24266
|
+
i0__namespace.ɵɵadvance(2);
|
|
24267
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.remainingBasketEntries.length > 0 && i0__namespace.ɵɵpipeBind1(42, 26, ctx_r4.recipeDetailsService.allIngredientsToBasketLoading$));
|
|
24268
|
+
i0__namespace.ɵɵadvance(2);
|
|
24269
|
+
i0__namespace.ɵɵproperty("ngIf", ctx_r4.recipeDetailsService.remainingBasketEntries.length === 0);
|
|
23943
24270
|
i0__namespace.ɵɵadvance(1);
|
|
23944
24271
|
i0__namespace.ɵɵproperty("ngIf", ctx_r4.showPrice());
|
|
23945
24272
|
}
|
|
@@ -23949,7 +24276,7 @@
|
|
|
23949
24276
|
i0__namespace.ɵɵelementStart(0, "div", 3);
|
|
23950
24277
|
i0__namespace.ɵɵtemplate(1, RecipeDetailsComponent_div_0_div_1_Template, 1, 0, "div", 4);
|
|
23951
24278
|
i0__namespace.ɵɵpipe(2, "async");
|
|
23952
|
-
i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_Template,
|
|
24279
|
+
i0__namespace.ɵɵtemplate(3, RecipeDetailsComponent_div_0_div_3_Template, 45, 31, "div", 5);
|
|
23953
24280
|
i0__namespace.ɵɵpipe(4, "async");
|
|
23954
24281
|
i0__namespace.ɵɵelementEnd();
|
|
23955
24282
|
}
|
|
@@ -23963,9 +24290,9 @@
|
|
|
23963
24290
|
}
|
|
23964
24291
|
function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template(rf, ctx) {
|
|
23965
24292
|
if (rf & 1) {
|
|
23966
|
-
var
|
|
23967
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-addon",
|
|
23968
|
-
i0__namespace.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
24293
|
+
var _r37_1 = i0__namespace.ɵɵgetCurrentView();
|
|
24294
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-recipe-addon", 72);
|
|
24295
|
+
i0__namespace.ɵɵlistener("hideAddon", function RecipeDetailsComponent_ng_miam_recipe_addon_2_Template_ng_miam_recipe_addon_hideAddon_0_listener() { i0__namespace.ɵɵrestoreView(_r37_1); var ctx_r36 = i0__namespace.ɵɵnextContext(); return ctx_r36.toggleAddon(); });
|
|
23969
24296
|
i0__namespace.ɵɵelementEnd();
|
|
23970
24297
|
}
|
|
23971
24298
|
if (rf & 2) {
|
|
@@ -23975,9 +24302,9 @@
|
|
|
23975
24302
|
}
|
|
23976
24303
|
function RecipeDetailsComponent_ng_miam_replace_item_3_Template(rf, ctx) {
|
|
23977
24304
|
if (rf & 1) {
|
|
23978
|
-
var
|
|
23979
|
-
i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item",
|
|
23980
|
-
i0__namespace.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_3_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(
|
|
24305
|
+
var _r39_1 = i0__namespace.ɵɵgetCurrentView();
|
|
24306
|
+
i0__namespace.ɵɵelementStart(0, "ng-miam-replace-item", 73);
|
|
24307
|
+
i0__namespace.ɵɵlistener("selected", function RecipeDetailsComponent_ng_miam_replace_item_3_Template_ng_miam_replace_item_selected_0_listener() { i0__namespace.ɵɵrestoreView(_r39_1); var ctx_r38 = i0__namespace.ɵɵnextContext(); return ctx_r38.recipeDetailsService.basketEntryToReplace = null; });
|
|
23981
24308
|
i0__namespace.ɵɵelementEnd();
|
|
23982
24309
|
}
|
|
23983
24310
|
if (rf & 2) {
|
|
@@ -23996,13 +24323,14 @@
|
|
|
23996
24323
|
};
|
|
23997
24324
|
var RecipeDetailsComponent = /** @class */ (function (_super) {
|
|
23998
24325
|
__extends(RecipeDetailsComponent, _super);
|
|
23999
|
-
function RecipeDetailsComponent(cdr, recipesService, basketsService, userService, posService, contextService, recipeDetailsService, sponsorBlocksService, analyticsService) {
|
|
24326
|
+
function RecipeDetailsComponent(cdr, recipesService, basketsService, userService, posService, suppliersService, contextService, recipeDetailsService, sponsorBlocksService, analyticsService) {
|
|
24000
24327
|
var _this = _super.call(this, analyticsService) || this;
|
|
24001
24328
|
_this.cdr = cdr;
|
|
24002
24329
|
_this.recipesService = recipesService;
|
|
24003
24330
|
_this.basketsService = basketsService;
|
|
24004
24331
|
_this.userService = userService;
|
|
24005
24332
|
_this.posService = posService;
|
|
24333
|
+
_this.suppliersService = suppliersService;
|
|
24006
24334
|
_this.contextService = contextService;
|
|
24007
24335
|
_this.recipeDetailsService = recipeDetailsService;
|
|
24008
24336
|
_this.sponsorBlocksService = sponsorBlocksService;
|
|
@@ -24070,10 +24398,13 @@
|
|
|
24070
24398
|
this.recipeDetailsService.displayEventWasSent = false;
|
|
24071
24399
|
this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
24072
24400
|
};
|
|
24073
|
-
RecipeDetailsComponent.prototype.getProducts = function () {
|
|
24401
|
+
RecipeDetailsComponent.prototype.getProducts = function (fromInit) {
|
|
24074
24402
|
var _this = this;
|
|
24075
|
-
|
|
24076
|
-
|
|
24403
|
+
if (fromInit === void 0) { fromInit = false; }
|
|
24404
|
+
if (fromInit) {
|
|
24405
|
+
this.recipeDetailsService.productsLoading = true;
|
|
24406
|
+
}
|
|
24407
|
+
this.subscriptions.push(this.recipeDetailsService.getIngredientsBasketEntries(fromInit).subscribe(function () {
|
|
24077
24408
|
_this.recipeDetailsService.productsLoading = false;
|
|
24078
24409
|
_this.cdr.detectChanges();
|
|
24079
24410
|
}));
|
|
@@ -24088,7 +24419,7 @@
|
|
|
24088
24419
|
_this.recipeDetailsService.recipe = result;
|
|
24089
24420
|
_this.recipeDetailsService.recipeLoading = false;
|
|
24090
24421
|
_this.recipeDetailsService.recipe.modifiedGuests = +_this.guestNumber || +result.guests;
|
|
24091
|
-
_this.getProducts();
|
|
24422
|
+
_this.getProducts(true);
|
|
24092
24423
|
_this.sendDisplayRecipeEvent();
|
|
24093
24424
|
_this.setupYoutubePlayer();
|
|
24094
24425
|
setTimeout(function () {
|
|
@@ -24152,6 +24483,7 @@
|
|
|
24152
24483
|
RecipeDetailsComponent.prototype.updateGuests = function (guests) {
|
|
24153
24484
|
this.recipeDetailsService.recipe.modifiedGuests = guests;
|
|
24154
24485
|
this.recipeDetailsService.updateGuests(this.eventTrace());
|
|
24486
|
+
this.getProducts(false);
|
|
24155
24487
|
this.cdr.detectChanges();
|
|
24156
24488
|
};
|
|
24157
24489
|
RecipeDetailsComponent.prototype.toggleAddon = function () {
|
|
@@ -24198,7 +24530,7 @@
|
|
|
24198
24530
|
};
|
|
24199
24531
|
return RecipeDetailsComponent;
|
|
24200
24532
|
}(EventTracerComponent));
|
|
24201
|
-
RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(SponsorBlockService), i0__namespace.ɵɵdirectiveInject(AnalyticsService)); };
|
|
24533
|
+
RecipeDetailsComponent.ɵfac = function RecipeDetailsComponent_Factory(t) { return new (t || RecipeDetailsComponent)(i0__namespace.ɵɵdirectiveInject(i0__namespace.ChangeDetectorRef), i0__namespace.ɵɵdirectiveInject(RecipesService), i0__namespace.ɵɵdirectiveInject(BasketsService), i0__namespace.ɵɵdirectiveInject(UserService), i0__namespace.ɵɵdirectiveInject(PointOfSalesService), i0__namespace.ɵɵdirectiveInject(SuppliersService), i0__namespace.ɵɵdirectiveInject(ContextService), i0__namespace.ɵɵdirectiveInject(RecipeDetailsService), i0__namespace.ɵɵdirectiveInject(SponsorBlockService), i0__namespace.ɵɵdirectiveInject(AnalyticsService)); };
|
|
24202
24534
|
RecipeDetailsComponent.ɵcmp = i0__namespace.ɵɵdefineComponent({ type: RecipeDetailsComponent, selectors: [["ng-miam-recipe-details"]], viewQuery: function RecipeDetailsComponent_Query(rf, ctx) {
|
|
24203
24535
|
if (rf & 1) {
|
|
24204
24536
|
i0__namespace.ɵɵviewQuery(_c0$1, 1);
|
|
@@ -24210,45 +24542,37 @@
|
|
|
24210
24542
|
}, inputs: { recipeId: "recipeId", guestNumber: "guestNumber", previewAllowed: "previewAllowed", ingredientsPictures: "ingredientsPictures", forceDisplayTags: "forceDisplayTags", displayTagsIcons: "displayTagsIcons", displayPricing: "displayPricing", displayGuests: "displayGuests", helpButtonAllowed: "helpButtonAllowed", stepsOnLeftSide: "stepsOnLeftSide", cookingTimeAsPrimaryInfo: "cookingTimeAsPrimaryInfo", moreRecipesImageURL: "moreRecipesImageURL", pricingGuestsText: "pricingGuestsText" }, outputs: { recipeAdded: "recipeAdded", recipeError: "recipeError" }, features: [i0__namespace.ɵɵInheritDefinitionFeature, i0__namespace.ɵɵNgOnChangesFeature], decls: 5, vars: 7, consts: function () {
|
|
24211
24543
|
var i18n_1;
|
|
24212
24544
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
24213
|
-
var
|
|
24214
|
-
i18n_1 =
|
|
24545
|
+
var MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____2 = goog.getMsg("Ajouter");
|
|
24546
|
+
i18n_1 = MSG_EXTERNAL_70397346439942337$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____2;
|
|
24215
24547
|
}
|
|
24216
24548
|
else {
|
|
24217
|
-
i18n_1 = $localize(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject([":\
|
|
24549
|
+
i18n_1 = $localize(templateObject_1$4 || (templateObject_1$4 = __makeTemplateObject([":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"], [":\u241F8aa969e69241c7c5838b40348f913519d6349371\u241F70397346439942337:Ajouter"])));
|
|
24218
24550
|
}
|
|
24219
24551
|
var i18n_3;
|
|
24220
24552
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
24221
|
-
var
|
|
24222
|
-
i18n_3 =
|
|
24553
|
+
var MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____4 = goog.getMsg("produit");
|
|
24554
|
+
i18n_3 = MSG_EXTERNAL_5144484951400113194$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____4;
|
|
24223
24555
|
}
|
|
24224
24556
|
else {
|
|
24225
|
-
i18n_3 = $localize(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject([":\
|
|
24557
|
+
i18n_3 = $localize(templateObject_2$2 || (templateObject_2$2 = __makeTemplateObject([":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"], [":\u241F84c216d92afc9edd2b3bd2175d38197737ff86c5\u241F5144484951400113194:produit"])));
|
|
24226
24558
|
}
|
|
24227
24559
|
var i18n_5;
|
|
24228
24560
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
24229
|
-
var
|
|
24230
|
-
i18n_5 =
|
|
24561
|
+
var MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____6 = goog.getMsg("produits");
|
|
24562
|
+
i18n_5 = MSG_EXTERNAL_1112144680738962826$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____6;
|
|
24231
24563
|
}
|
|
24232
24564
|
else {
|
|
24233
|
-
i18n_5 = $localize(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject([":\
|
|
24565
|
+
i18n_5 = $localize(templateObject_3$2 || (templateObject_3$2 = __makeTemplateObject([":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"], [":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"])));
|
|
24234
24566
|
}
|
|
24235
24567
|
var i18n_7;
|
|
24236
24568
|
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
24237
|
-
var
|
|
24238
|
-
i18n_7 =
|
|
24239
|
-
}
|
|
24240
|
-
else {
|
|
24241
|
-
i18n_7 = $localize(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject([":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"], [":\u241F2571d7fbaeed8646df6ee852fb5d94185b0efd88\u241F1112144680738962826:produits"])));
|
|
24242
|
-
}
|
|
24243
|
-
var i18n_9;
|
|
24244
|
-
if (typeof ngI18nClosureMode !== "undefined" && ngI18nClosureMode) {
|
|
24245
|
-
var MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____10 = goog.getMsg("Continuer mes courses");
|
|
24246
|
-
i18n_9 = MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS_____10;
|
|
24569
|
+
var MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____8 = goog.getMsg("Continuer mes courses");
|
|
24570
|
+
i18n_7 = MSG_EXTERNAL_2001694451572573558$$LIB__WEB_COMPONENTS_RECIPE_DETAILS_RECIPE_DETAILS_COMPONENT_TS____8;
|
|
24247
24571
|
}
|
|
24248
24572
|
else {
|
|
24249
|
-
|
|
24573
|
+
i18n_7 = $localize(templateObject_4$1 || (templateObject_4$1 = __makeTemplateObject([":\u241F0e81a4e1efd31ae65483ef21f4fa59c2dce0e6f1\u241F2001694451572573558:Continuer mes courses"], [":\u241F0e81a4e1efd31ae65483ef21f4fa59c2dce0e6f1\u241F2001694451572573558:Continuer mes courses"])));
|
|
24250
24574
|
}
|
|
24251
|
-
return [["class", "miam-recipe-details", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected", 4, "ngIf"], [1, "miam-recipe-details"], ["class", "miam-ds-loader miam-recipe-details__loader", 4, "ngIf"], ["class", "miam-recipe-details__container", 4, "ngIf"], [1, "miam-ds-loader", "miam-recipe-details__loader"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__picture"], ["topContainerImg", ""], [1, "miam-recipe-details__banner_buttons"], [1, "miam-recipe-details__top-button-wrapper"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "modal close button", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__mobile-header-buttons"], [1, "miam-recipe-details__back-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal back button", 1, "miam-recipe-details__back-icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], ["alt", "recipe picture", "class", "miam-recipe-details__picture-img", 3, "src", 4, "ngIf"], [3, "videoId", "width", "height", "playerVars", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__sponsor"], [3, "hasStorytelling", "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__sponsor-separator"], ["ngMiamReachTop", "", 1, "miam-recipe-details__title-container"], [1, "miam-recipe-details__back-button-mobile-container"], [1, "miam-recipe-details__back-button", "miam-ds-button", "small", "square", "ghost", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal close button", 1, "miam-recipe-details__back-icon"], [1, "miam-recipe-details__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-recipe-details__actions__icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__hideable-actions"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "ghost", 3, "click"], ["alt", "modal close button", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], [3, "tabs", "selectedTabIndex", "selectedTabIndexChange"], [3, "closeModal", 4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], [1, "miam-recipe-details__footer", 3, "
|
|
24575
|
+
return [["class", "miam-recipe-details", 4, "ngIf"], [3, "recipe", "hideAddon", 4, "ngIf"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected", 4, "ngIf"], [1, "miam-recipe-details"], ["class", "miam-ds-loader miam-recipe-details__loader", 4, "ngIf"], ["class", "miam-recipe-details__container", 4, "ngIf"], [1, "miam-ds-loader", "miam-recipe-details__loader"], [1, "miam-recipe-details__container"], [1, "miam-recipe-details__picture"], ["topContainerImg", ""], [1, "miam-recipe-details__banner_buttons"], [1, "miam-recipe-details__top-button-wrapper"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", "alt", "modal close button", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__mobile-header-buttons"], [1, "miam-recipe-details__back-button", "miam-ds-button", "square", "primary", "reverse", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal back button", 1, "miam-recipe-details__back-icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__guest-counter", 3, "floating", "value", "minRange", "valueChange"], ["alt", "recipe picture", "class", "miam-recipe-details__picture-img", 3, "src", 4, "ngIf"], [3, "videoId", "width", "height", "playerVars", 4, "ngIf"], ["class", "miam-recipe-details__picture__filigrane", 4, "ngIf"], [1, "miam-recipe-details__sponsor"], [3, "hasStorytelling", "recipe", "showAddon", 4, "ngIf"], [1, "miam-recipe-details__sponsor-separator"], ["ngMiamReachTop", "", 1, "miam-recipe-details__title-container"], [1, "miam-recipe-details__back-button-mobile-container"], [1, "miam-recipe-details__back-button", "miam-ds-button", "small", "square", "ghost", 3, "click"], ["src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-primary.svg", "alt", "modal close button", 1, "miam-recipe-details__back-icon"], [1, "miam-recipe-details__title", "miam-ds-text", "size-xl", "weight-xxl"], [1, "miam-recipe-details__actions__icon"], ["class", "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height", 4, "ngIf"], [1, "miam-recipe-details__hideable-actions"], [1, "miam-recipe-details__close-button", "miam-ds-button", "square", "ghost", 3, "click"], ["alt", "modal close button", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross_primary.svg", 1, "miam-recipe-details__close-icon"], [1, "miam-recipe-details__infos", 3, "recipe"], [1, "miam-recipe-details__tabs", 3, "ngClass"], [3, "tabs", "selectedTabIndex", "selectedTabIndexChange"], [3, "closeModal", 4, "ngIf"], ["class", "miam-recipe-details__preparation-tab", 4, "ngIf"], [1, "miam-recipe-details__footer"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 3, "click", 4, "ngIf"], ["class", "miam-recipe-details__add-to-basket-cta miam-ds-button primary", 4, "ngIf"], ["class", "miam-ds-button secondary", 3, "click", 4, "ngIf"], ["class", "miam-recipe-details__price", 4, "ngIf"], [1, "miam-recipe-details__like-button", 3, "recipe", "width", "height"], ["alt", "recipe picture", 1, "miam-recipe-details__picture-img", 3, "src"], [3, "videoId", "width", "height", "playerVars"], [1, "miam-recipe-details__picture__filigrane"], ["alt", "filigrane logo", 3, "src"], [3, "hasStorytelling", "recipe", "showAddon"], [1, "miam-recipe-details__like-button", 3, "recipe", "originTrace", "width", "height"], [3, "closeModal"], [1, "miam-recipe-details__preparation-tab"], [3, "ingredients"], [3, "recipe"], [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary", 3, "click"], ["alt", "basket icon", "src", "https://storage.googleapis.com/assets.miam.tech/generic/icons/Basket.svg"], [1, "miam-recipe-details__add-to-basket-cta__text"], i18n_1, [4, "ngIf"], [1, "miam-recipe-details__add-to-basket-remaining-price"], [1, "miam-ds-loader"], i18n_3, i18n_5, [1, "miam-recipe-details__add-to-basket-cta", "miam-ds-button", "primary"], [1, "miam-ds-button", "secondary", 3, "click"], i18n_7, [1, "miam-recipe-details__price"], [1, "miam-recipe-details__price-label", "miam-ds-text", "size-l", "weight-xxl"], [1, "miam-ds-loader", "primary"], [1, "miam-recipe-details__price-in-basket-label", "miam-ds-text", "size-xs"], [3, "recipe", "hideAddon"], [3, "recipe", "basketEntry", "ingredient", "ignoreSelected", "loadOnSelect", "selected"]];
|
|
24252
24576
|
}, template: function RecipeDetailsComponent_Template(rf, ctx) {
|
|
24253
24577
|
if (rf & 1) {
|
|
24254
24578
|
i0__namespace.ɵɵtemplate(0, RecipeDetailsComponent_div_0_Template, 5, 6, "div", 0);
|
|
@@ -24264,7 +24588,7 @@
|
|
|
24264
24588
|
i0__namespace.ɵɵadvance(1);
|
|
24265
24589
|
i0__namespace.ɵɵproperty("ngIf", i0__namespace.ɵɵpipeBind1(4, 5, ctx.recipeDetailsService.basketEntryToReplace$));
|
|
24266
24590
|
}
|
|
24267
|
-
}, directives: [i2__namespace$1.NgIf, CounterInputComponent, ReachTopDirective, RecipeDetailsInfosComponent, i2__namespace$1.NgClass, SliderTabsComponent, LikeButtonComponent, i8__namespace.YouTubePlayer, AddonLinkComponent, ProductsPickerComponent, RecipeDetailsIngredientsComponent, RecipeDetailsStepsComponent, RecipePricingComponent, RecipeAddonComponent, ReplaceItemComponent], pipes: [i2__namespace$1.AsyncPipe], styles: [".miam-recipe-details{min-height:100dvh}.miam-recipe-details .miam-recipe-details__loader{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-recipe-details .miam-recipe-details__container{position:relative}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sponsor-separator{border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);margin:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{position:relative;max-height:600px;display:flex}@media (min-width:1023px) and (max-height:1000px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:400px}}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:300px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{position:absolute;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px;top:16px;right:16px;left:16px;bottom:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{flex:1;width:100%;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:flex;justify-content:space-between;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button{transform:rotate(90deg);border-radius:100%;height:40px;width:40px;position:sticky;top:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button .miam-recipe-details__back-icon{display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button:hover img.miam-recipe-details__back-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__like-button{position:absolute;top:0;right:0}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__guest-counter .miam-counter-input{padding:2px}}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{top:24px;right:24px;left:24px;bottom:24px;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{width:inherit}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:flex;position:sticky;top:24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button:hover img.miam-recipe-details__close-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__picture-img{width:100%;max-height:100%;-o-object-position:center;object-position:center;-o-object-fit:cover;object-fit:cover}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{z-index:2;display:flex;justify-content:space-between;align-items:center;position:sticky;top:-1px;padding:16px;overflow:hidden;background:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{width:100%;transition:font-size .3s;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{display:flex;position:absolute;right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__close-button{margin-left:16px;padding:8px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:12px 16px;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{position:relative;top:unset;right:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__like-button{margin-right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:64px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{justify-content:flex-start}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:flex;align-items:center;justify-content:center;max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-icon{transform:rotate(90deg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__hideable-actions{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:4px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container{overflow:visible;max-width:48px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-button{margin:8px 0;width:40px;height:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:14px;font-weight:500}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{max-width:40px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__infos{padding:8px 16px 16px;display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs{padding:8px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer{box-sizing:border-box;background:var(--miam-ds-color-neutral-white,#fff);border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px;position:sticky;bottom:0;display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;z-index:2;height:80px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.center{justify-content:center}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta{display:flex;gap:8px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta.miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text{display:flex;gap:4px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{align-items:flex-end}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{color:var(--miam-ds-color-primary-700);margin-right:4px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{flex-direction:column;align-items:flex-start}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__preparation-tab{padding:16px;display:flex;flex-direction:column;gap:24px}"], encapsulation: 2, changeDetection: 0 });
|
|
24591
|
+
}, directives: [i2__namespace$1.NgIf, CounterInputComponent, ReachTopDirective, RecipeDetailsInfosComponent, i2__namespace$1.NgClass, SliderTabsComponent, LikeButtonComponent, i8__namespace.YouTubePlayer, AddonLinkComponent, ProductsPickerComponent, RecipeDetailsIngredientsComponent, RecipeDetailsStepsComponent, RecipeAddonComponent, ReplaceItemComponent], pipes: [i2__namespace$1.AsyncPipe, i2__namespace$1.CurrencyPipe], styles: [".miam-recipe-details{min-height:100dvh}.miam-recipe-details .miam-recipe-details__loader{position:absolute;top:0;left:0;right:0;bottom:0;margin:auto;width:40px;height:40px;background-position-x:20px;background-size:20px 20px}.miam-recipe-details .miam-recipe-details__container{position:relative}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__sponsor-separator{border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);margin:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{position:relative;max-height:600px;display:flex}@media (min-width:1023px) and (max-height:1000px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:400px}}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture{max-height:300px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{position:absolute;display:flex;flex-direction:row;justify-content:space-between;align-items:flex-end;gap:24px;top:16px;right:16px;left:16px;bottom:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{flex:1;width:100%;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:flex;justify-content:space-between;height:100%}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button{transform:rotate(90deg);border-radius:100%;height:40px;width:40px;position:sticky;top:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button .miam-recipe-details__back-icon{display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__back-button:hover img.miam-recipe-details__back-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/chevron-down-white.svg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons .miam-recipe-details__like-button{position:absolute;top:0;right:0}@media (min-width:1023px) and (max-height:800px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__guest-counter .miam-counter-input{padding:2px}}@media (min-width:1023px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons{top:24px;right:24px;left:24px;bottom:24px;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper{width:inherit}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__mobile-header-buttons{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button{display:flex;position:sticky;top:24px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__banner_buttons .miam-recipe-details__top-button-wrapper .miam-recipe-details__close-button:hover img.miam-recipe-details__close-icon{content:url(https://storage.googleapis.com/assets.miam.tech/generic/icons/Cross.svg)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__picture .miam-recipe-details__picture-img{width:100%;max-height:100%;-o-object-position:center;object-position:center;-o-object-fit:cover;object-fit:cover}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{z-index:2;display:flex;justify-content:space-between;align-items:center;position:sticky;top:-1px;padding:16px;overflow:hidden;background:var(--miam-ds-color-neutral-white,#fff);transition:padding .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{width:100%;transition:font-size .3s;color:var(--miam-ds-color-neutral-black,#1f3543)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{display:flex;position:absolute;right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon .miam-recipe-details__close-button{margin-left:16px;padding:8px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:12px 16px;border-bottom:1px solid var(--miam-ds-color-neutral-200,#d9dde1)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{position:relative;top:unset;right:unset}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__like-button{margin-right:16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon .miam-recipe-details__hideable-actions{max-width:64px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container{justify-content:flex-start}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container{display:flex;align-items:center;justify-content:center;max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-icon{transform:rotate(90deg)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__title{font-size:20px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__actions__icon{max-width:0;overflow:hidden;transition:max-width .3s}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container .miam-recipe-details__hideable-actions{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned{padding:4px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container{overflow:visible;max-width:48px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__back-button-mobile-container .miam-recipe-details__back-button{margin:8px 0;width:40px;height:40px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__title{font-size:14px;font-weight:500}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__title-container.is-pinned .miam-recipe-details__actions__icon{max-width:40px}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__infos{padding:8px 16px 16px;display:block}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs{padding:8px 16px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__tabs.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer{box-sizing:border-box;background:var(--miam-ds-color-neutral-white,#fff);border-top:1px solid var(--miam-ds-color-neutral-200,#d9dde1);padding:16px 12px;position:sticky;bottom:0;display:flex;flex-direction:row-reverse;justify-content:space-between;align-items:center;z-index:2;height:80px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.center{justify-content:center}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer.hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta{display:flex;gap:8px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta.miam-ds-button.primary:hover{background-color:var(--miam-ds-color-primary)}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text{display:flex;gap:4px}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price{display:flex}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__add-to-basket-cta .miam-recipe-details__add-to-basket-cta__text .miam-recipe-details__add-to-basket-remaining-price .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{align-items:flex-end}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper .miam-recipe-pricing__wrapper__price{color:var(--miam-ds-color-primary-700);margin-right:4px}@media (max-width:1024px){.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer ng-miam-recipe-pricing .miam-recipe-pricing__wrapper{flex-direction:column;align-items:flex-start}}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price{display:flex;flex-direction:column}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label{color:var(--miam-ds-color-primary,#24748f)}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-label .hidden{display:none}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__footer .miam-recipe-details__price .miam-recipe-details__price-in-basket-label{color:var(--miam-ds-color-neutral-black,#1f3543);opacity:.65}.miam-recipe-details .miam-recipe-details__container .miam-recipe-details__preparation-tab{padding:16px;display:flex;flex-direction:column;gap:24px}"], encapsulation: 2, changeDetection: 0 });
|
|
24268
24592
|
(function () {
|
|
24269
24593
|
(typeof ngDevMode === "undefined" || ngDevMode) && i0__namespace.ɵsetClassMetadata(RecipeDetailsComponent, [{
|
|
24270
24594
|
type: i0.Component,
|
|
@@ -24275,7 +24599,7 @@
|
|
|
24275
24599
|
encapsulation: i0.ViewEncapsulation.None,
|
|
24276
24600
|
changeDetection: i0.ChangeDetectionStrategy.OnPush
|
|
24277
24601
|
}]
|
|
24278
|
-
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: RecipesService }, { type: BasketsService }, { type: UserService }, { type: PointOfSalesService }, { type: ContextService }, { type: RecipeDetailsService }, { type: SponsorBlockService }, { type: AnalyticsService }]; }, { recipeId: [{
|
|
24602
|
+
}], function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: RecipesService }, { type: BasketsService }, { type: UserService }, { type: PointOfSalesService }, { type: SuppliersService }, { type: ContextService }, { type: RecipeDetailsService }, { type: SponsorBlockService }, { type: AnalyticsService }]; }, { recipeId: [{
|
|
24279
24603
|
type: i0.Input
|
|
24280
24604
|
}], guestNumber: [{
|
|
24281
24605
|
type: i0.Input
|
|
@@ -24310,7 +24634,7 @@
|
|
|
24310
24634
|
args: ['topContainerImg']
|
|
24311
24635
|
}] });
|
|
24312
24636
|
})();
|
|
24313
|
-
var templateObject_1$4, templateObject_2$2, templateObject_3$2, templateObject_4$1
|
|
24637
|
+
var templateObject_1$4, templateObject_2$2, templateObject_3$2, templateObject_4$1;
|
|
24314
24638
|
|
|
24315
24639
|
var RecipeDetailsModule = /** @class */ (function () {
|
|
24316
24640
|
// Create custom elements so the WebComponents can be interpreted by the browser regardless of the js framework used
|
|
@@ -25313,6 +25637,7 @@
|
|
|
25313
25637
|
};
|
|
25314
25638
|
RecipeModalComponent.prototype.ngOnDestroy = function () {
|
|
25315
25639
|
this.subscriptions.forEach(function (sub) { return sub.unsubscribe(); });
|
|
25640
|
+
this.recipeDetailsService.unsubscribe();
|
|
25316
25641
|
};
|
|
25317
25642
|
RecipeModalComponent.prototype.listenToRecipeDisplayed = function () {
|
|
25318
25643
|
var _this = this;
|
|
@@ -25324,7 +25649,8 @@
|
|
|
25324
25649
|
_this.previewMode.next(result.previewMode);
|
|
25325
25650
|
_this.previewAllowed = result.previewAllowed;
|
|
25326
25651
|
_this.show = true;
|
|
25327
|
-
|
|
25652
|
+
// Put back if/when printing is reimplemented
|
|
25653
|
+
// this.printService.prepareForPrint(this.elRef);
|
|
25328
25654
|
}
|
|
25329
25655
|
else {
|
|
25330
25656
|
_this.show = false;
|
|
@@ -25339,7 +25665,8 @@
|
|
|
25339
25665
|
_this.displayGuestsInDetails = result.displayGuests;
|
|
25340
25666
|
_this.helpButtonAllowedInDetails = result.helpButtonAllowed;
|
|
25341
25667
|
_this.show = true;
|
|
25342
|
-
|
|
25668
|
+
// Put back if/when printing is reimplemented
|
|
25669
|
+
// this.printService.prepareForPrint(this.elRef);
|
|
25343
25670
|
(_a = _this.detailsComponent) === null || _a === void 0 ? void 0 : _a.cdr.markForCheck();
|
|
25344
25671
|
if (_this.detailsComponent) {
|
|
25345
25672
|
_this.detailsComponent.showDetail = true;
|
|
@@ -25363,7 +25690,8 @@
|
|
|
25363
25690
|
this.recipe = null; // trigger again a change on recipe if we re-open the view
|
|
25364
25691
|
this.previewMode.next(false);
|
|
25365
25692
|
this.recipesService.hide();
|
|
25366
|
-
|
|
25693
|
+
// Put back if/when printing is reimplemented
|
|
25694
|
+
// this.printService.dismissPrinting();
|
|
25367
25695
|
this.hasChangesOnClose.emit(this.basketChangedSinceOpened);
|
|
25368
25696
|
this.basketChangedSinceOpened = false;
|
|
25369
25697
|
this.cdr.detectChanges();
|