@salesgenterp/ui-components 0.4.279 → 0.4.280
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 +7 -5
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -5
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -822,7 +822,7 @@ var APIStaticPage = function APIStaticPage(_ref) {
|
|
|
822
822
|
if (id) {
|
|
823
823
|
return Promise.resolve(API$1({
|
|
824
824
|
apiEndPoint: apiEndPoint,
|
|
825
|
-
url: "/staticPage/" + id
|
|
825
|
+
url: "/ecommerce/staticPage/" + id
|
|
826
826
|
})).then(function (response) {
|
|
827
827
|
setStaticPage(response);
|
|
828
828
|
var _temp = function (_response$title) {
|
|
@@ -9470,7 +9470,7 @@ var Step2 = function Step2(_ref) {
|
|
|
9470
9470
|
paddingBottom: '1rem'
|
|
9471
9471
|
}, modifyOptions === null || modifyOptions === void 0 ? void 0 : modifyOptions.map(function (option, i) {
|
|
9472
9472
|
return deliveryOption(option, i);
|
|
9473
|
-
})), method !== null && method !== void 0 && method.freeShippingLimit ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", null, "Free shipping on orders over", ' ', /*#__PURE__*/React__default.createElement("b", null, renderMoney(method === null || method === void 0 ? void 0 : method.freeShippingLimit)))) : null, showShippingPriceRangeLimit && (method === null || method === void 0 ? void 0 : method.shippingPriceRange) && /*#__PURE__*/React__default.createElement(material.Stack, {
|
|
9473
|
+
})), (method === null || method === void 0 ? void 0 : method.description) && /*#__PURE__*/React__default.createElement("span", null, method === null || method === void 0 ? void 0 : method.description), method !== null && method !== void 0 && method.freeShippingLimit ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", null, "Free shipping on orders over", ' ', /*#__PURE__*/React__default.createElement("b", null, renderMoney(method === null || method === void 0 ? void 0 : method.freeShippingLimit)))) : null, showShippingPriceRangeLimit && (method === null || method === void 0 ? void 0 : method.shippingPriceRange) && /*#__PURE__*/React__default.createElement(material.Stack, {
|
|
9474
9474
|
flexDirection: "column",
|
|
9475
9475
|
width: "100%",
|
|
9476
9476
|
alignItems: 'flex-start',
|
|
@@ -9872,7 +9872,7 @@ var PaymentForm = /*#__PURE__*/function (_React$Component) {
|
|
|
9872
9872
|
}(React__default.Component);
|
|
9873
9873
|
|
|
9874
9874
|
var Step3 = function Step3(_ref) {
|
|
9875
|
-
var _store$, _selectedMethod$name, _styles$button2;
|
|
9875
|
+
var _store$, _selectedMethod$name, _filter, _styles$button2;
|
|
9876
9876
|
var apiEndPoint = _ref.apiEndPoint,
|
|
9877
9877
|
token = _ref.token,
|
|
9878
9878
|
authoriseDotNet = _ref.authoriseDotNet,
|
|
@@ -9993,7 +9993,9 @@ var Step3 = function Step3(_ref) {
|
|
|
9993
9993
|
className: "medium"
|
|
9994
9994
|
}, "Store Credits: ", /*#__PURE__*/React__default.createElement("span", {
|
|
9995
9995
|
className: "bold "
|
|
9996
|
-
}, "$", storeCr === null || storeCr === void 0 ? void 0 : storeCr.toFixed(2)))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null), /*#__PURE__*/React__default.createElement(StepsContent, null,
|
|
9996
|
+
}, "$", storeCr === null || storeCr === void 0 ? void 0 : storeCr.toFixed(2)))) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null), /*#__PURE__*/React__default.createElement(StepsContent, null, (_filter = lodash.filter(payments, {
|
|
9997
|
+
ecommerce: true
|
|
9998
|
+
})) === null || _filter === void 0 ? void 0 : _filter.map(function (payment, i) {
|
|
9997
9999
|
var _payment$name;
|
|
9998
10000
|
if (payment !== null && payment !== void 0 && (_payment$name = payment.name) !== null && _payment$name !== void 0 && _payment$name.toLowerCase().includes('card')) {
|
|
9999
10001
|
var _styles$input, _styles$button, _creditCardListData$p, _creditCardListData$p2;
|
|
@@ -10078,7 +10080,7 @@ var Step3 = function Step3(_ref) {
|
|
|
10078
10080
|
className: "innerCircle"
|
|
10079
10081
|
})), /*#__PURE__*/React__default.createElement("p", null, payment === null || payment === void 0 ? void 0 : payment.name));
|
|
10080
10082
|
}
|
|
10081
|
-
}), /*#__PURE__*/React__default.createElement(ButtonRow, {
|
|
10083
|
+
}), (selectedMethod === null || selectedMethod === void 0 ? void 0 : selectedMethod.description) && /*#__PURE__*/React__default.createElement("span", null, selectedMethod === null || selectedMethod === void 0 ? void 0 : selectedMethod.description), /*#__PURE__*/React__default.createElement(ButtonRow, {
|
|
10082
10084
|
handleBack: handleBack,
|
|
10083
10085
|
handleNext: function handleNext() {
|
|
10084
10086
|
setPaymentDetails(useStoreCr, useStoreCr && storeCredits > total ? null : selectedMethod, isCard && card);
|