@salesgenterp/ui-components 0.4.387 → 0.4.389
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/dist/index.js +12 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +12 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -9450,7 +9450,11 @@ var StaticPageList = function StaticPageList(_ref) {
|
|
|
9450
9450
|
lg: 3,
|
|
9451
9451
|
item: true,
|
|
9452
9452
|
key: i
|
|
9453
|
-
}, /*#__PURE__*/React__default.createElement(material.Card,
|
|
9453
|
+
}, /*#__PURE__*/React__default.createElement(material.Card, {
|
|
9454
|
+
style: {
|
|
9455
|
+
height: '100%'
|
|
9456
|
+
}
|
|
9457
|
+
}, /*#__PURE__*/React__default.createElement(material.CardActionArea, null, /*#__PURE__*/React__default.createElement("a", {
|
|
9454
9458
|
href: itemLink && itemLink(item) || "/" + paramCase.paramCase((item === null || item === void 0 ? void 0 : item.urlAlias) || (item === null || item === void 0 ? void 0 : item.title) || (item === null || item === void 0 ? void 0 : item.header))
|
|
9455
9459
|
}, /*#__PURE__*/React__default.createElement(TitleContainer$2, null, /*#__PURE__*/React__default.createElement("img", {
|
|
9456
9460
|
alt: item === null || item === void 0 ? void 0 : item.title,
|
|
@@ -9490,7 +9494,7 @@ var StaticPageList = function StaticPageList(_ref) {
|
|
|
9490
9494
|
}
|
|
9491
9495
|
}, "Not found")))));
|
|
9492
9496
|
};
|
|
9493
|
-
var TitleContainer$2 = styled__default.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n
|
|
9497
|
+
var TitleContainer$2 = styled__default.div(_templateObject$H || (_templateObject$H = _taggedTemplateLiteralLoose(["\n padding: 1.2rem;\n cursor: pointer;\n color: #323232;\n img {\n max-width: 100%;\n }\n &:hover {\n img {\n transform: scale(1.01);\n }\n }\n"])));
|
|
9494
9498
|
|
|
9495
9499
|
var _excluded$6 = ["userName", "children", "style"];
|
|
9496
9500
|
var colors$1 = ['#FFB900', '#D83B01', '#B50E0E', '#E81123', '#B4009E', '#5C2D91', '#0078D7', '#00B4FF', '#008272', '#107C10'];
|
|
@@ -11421,7 +11425,8 @@ var PaypalComponent = function PaypalComponent(_ref) {
|
|
|
11421
11425
|
paymentWithPaypal = _ref.paymentWithPaypal,
|
|
11422
11426
|
paymentInfo = _ref.paymentInfo,
|
|
11423
11427
|
onSubmit = _ref.onSubmit,
|
|
11424
|
-
orderTotal = _ref.orderTotal
|
|
11428
|
+
orderTotal = _ref.orderTotal,
|
|
11429
|
+
storeCredits = _ref.storeCredits;
|
|
11425
11430
|
var isScriptInitialized;
|
|
11426
11431
|
var paypalInterval;
|
|
11427
11432
|
var renderPaypalScripts = function renderPaypalScripts(paypalClientId) {
|
|
@@ -11476,6 +11481,7 @@ var PaypalComponent = function PaypalComponent(_ref) {
|
|
|
11476
11481
|
return Promise.resolve(renderPaypalScripts(paypalObject.customerId)).then(function () {
|
|
11477
11482
|
window.paypal.Buttons({
|
|
11478
11483
|
createOrder: function createOrder(data, actions) {
|
|
11484
|
+
var _ref2;
|
|
11479
11485
|
if (erLocalStorage.getItem('checkoutIsTermsAccepted') !== 'true') {
|
|
11480
11486
|
throw {
|
|
11481
11487
|
message: 'Please accept terms and conditions.'
|
|
@@ -11484,7 +11490,7 @@ var PaypalComponent = function PaypalComponent(_ref) {
|
|
|
11484
11490
|
return actions.order.create({
|
|
11485
11491
|
purchase_units: [{
|
|
11486
11492
|
amount: {
|
|
11487
|
-
value: (orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalAmount) || 0
|
|
11493
|
+
value: storeCredits && storeCredits < (orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalAmount) ? (_ref2 = (orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalAmount) - storeCredits) === null || _ref2 === void 0 ? void 0 : _ref2.toFixed(2) : (orderTotal === null || orderTotal === void 0 ? void 0 : orderTotal.totalAmount) || 0
|
|
11488
11494
|
}
|
|
11489
11495
|
}]
|
|
11490
11496
|
});
|
|
@@ -11879,7 +11885,8 @@ var Step4 = function Step4(_ref) {
|
|
|
11879
11885
|
paymentWithPaypal: paymentWithPaypal,
|
|
11880
11886
|
paymentInfo: selectedPaymentMethod,
|
|
11881
11887
|
onSubmit: onSubmitPaypal,
|
|
11882
|
-
orderTotal: orderTotal
|
|
11888
|
+
orderTotal: orderTotal,
|
|
11889
|
+
storeCredits: storeCredits
|
|
11883
11890
|
})))))));
|
|
11884
11891
|
};
|
|
11885
11892
|
|