@ikas/storefront 0.1.22-alpha.6 → 0.1.22-alpha.8
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/build/index.es.js +4 -5
- package/build/index.js +4 -5
- package/package.json +1 -1
package/build/index.es.js
CHANGED
|
@@ -45612,7 +45612,6 @@ var IkasPage = observer(function (_a) {
|
|
|
45612
45612
|
}, []);
|
|
45613
45613
|
useEffect(function () {
|
|
45614
45614
|
var handleRouteChange = function () {
|
|
45615
|
-
console.log("route change");
|
|
45616
45615
|
//@ts-ignore
|
|
45617
45616
|
IkasStorefrontConfig.store.customerStore.routeChangeInit();
|
|
45618
45617
|
};
|
|
@@ -69801,11 +69800,11 @@ var CartItem = observer(function (_a) {
|
|
|
69801
69800
|
var _b, _c;
|
|
69802
69801
|
var vm = _a.vm, currencyCode = _a.currencyCode, cartItem = _a.cartItem;
|
|
69803
69802
|
var t = useTranslation().t;
|
|
69804
|
-
var
|
|
69805
|
-
|
|
69806
|
-
|
|
69803
|
+
var adjustmentAmounts = (_b = vm.checkout.adjustments) === null || _b === void 0 ? void 0 : _b.map(function (a) {
|
|
69804
|
+
var _a;
|
|
69805
|
+
return ((_a = a.appliedOrderLines) === null || _a === void 0 ? void 0 : _a.filter(function (aol) { return aol.orderLineId === cartItem.id; }).reduce(function (total, current) { return total + (current.amount || 0); }, 0)) || 0;
|
|
69807
69806
|
});
|
|
69808
|
-
var adjustmentTotal =
|
|
69807
|
+
var adjustmentTotal = adjustmentAmounts === null || adjustmentAmounts === void 0 ? void 0 : adjustmentAmounts.reduce(function (total, current) { return total + current; }, 0);
|
|
69809
69808
|
return (createElement("div", { className: styles$e.CheckoutItem },
|
|
69810
69809
|
createElement("div", { className: styles$e.ImageContainer },
|
|
69811
69810
|
createElement("img", { className: styles$e.Image, src: (_c = cartItem.variant.mainImage) === null || _c === void 0 ? void 0 : _c.thumbnailSrc })),
|
package/build/index.js
CHANGED
|
@@ -45591,7 +45591,6 @@ var IkasPage = mobxReactLite.observer(function (_a) {
|
|
|
45591
45591
|
}, []);
|
|
45592
45592
|
React.useEffect(function () {
|
|
45593
45593
|
var handleRouteChange = function () {
|
|
45594
|
-
console.log("route change");
|
|
45595
45594
|
//@ts-ignore
|
|
45596
45595
|
IkasStorefrontConfig.store.customerStore.routeChangeInit();
|
|
45597
45596
|
};
|
|
@@ -69780,11 +69779,11 @@ var CartItem = mobxReactLite.observer(function (_a) {
|
|
|
69780
69779
|
var _b, _c;
|
|
69781
69780
|
var vm = _a.vm, currencyCode = _a.currencyCode, cartItem = _a.cartItem;
|
|
69782
69781
|
var t = useTranslation().t;
|
|
69783
|
-
var
|
|
69784
|
-
|
|
69785
|
-
|
|
69782
|
+
var adjustmentAmounts = (_b = vm.checkout.adjustments) === null || _b === void 0 ? void 0 : _b.map(function (a) {
|
|
69783
|
+
var _a;
|
|
69784
|
+
return ((_a = a.appliedOrderLines) === null || _a === void 0 ? void 0 : _a.filter(function (aol) { return aol.orderLineId === cartItem.id; }).reduce(function (total, current) { return total + (current.amount || 0); }, 0)) || 0;
|
|
69786
69785
|
});
|
|
69787
|
-
var adjustmentTotal =
|
|
69786
|
+
var adjustmentTotal = adjustmentAmounts === null || adjustmentAmounts === void 0 ? void 0 : adjustmentAmounts.reduce(function (total, current) { return total + current; }, 0);
|
|
69788
69787
|
return (React.createElement("div", { className: styles$e.CheckoutItem },
|
|
69789
69788
|
React.createElement("div", { className: styles$e.ImageContainer },
|
|
69790
69789
|
React.createElement("img", { className: styles$e.Image, src: (_c = cartItem.variant.mainImage) === null || _c === void 0 ? void 0 : _c.thumbnailSrc })),
|