@salesgenterp/ui-components 0.4.527 → 0.4.528
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 +25 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +25 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12518,6 +12518,29 @@ var Step3 = function Step3(_ref) {
|
|
|
12518
12518
|
})));
|
|
12519
12519
|
};
|
|
12520
12520
|
|
|
12521
|
+
var erSessionStorage = {
|
|
12522
|
+
setItem: function setItem(key, value) {
|
|
12523
|
+
sessionStorage.setItem(key, value);
|
|
12524
|
+
},
|
|
12525
|
+
getItem: function getItem(key) {
|
|
12526
|
+
return sessionStorage.getItem(key);
|
|
12527
|
+
},
|
|
12528
|
+
removeItem: function removeItem(key) {
|
|
12529
|
+
sessionStorage.removeItem(key);
|
|
12530
|
+
},
|
|
12531
|
+
setJSONItem: function setJSONItem(key, value) {
|
|
12532
|
+
value = JSON.stringify(value);
|
|
12533
|
+
sessionStorage.setItem(key, value);
|
|
12534
|
+
},
|
|
12535
|
+
getJSONItem: function getJSONItem(key) {
|
|
12536
|
+
var returnValue = {};
|
|
12537
|
+
try {
|
|
12538
|
+
returnValue = JSON.parse(sessionStorage.getItem(key));
|
|
12539
|
+
} catch (e) {}
|
|
12540
|
+
return returnValue;
|
|
12541
|
+
}
|
|
12542
|
+
};
|
|
12543
|
+
|
|
12521
12544
|
var _templateObject$N, _templateObject2$y;
|
|
12522
12545
|
var ConsentForm = function ConsentForm(_ref) {
|
|
12523
12546
|
var apiEndPoint = _ref.apiEndPoint,
|
|
@@ -12762,7 +12785,7 @@ var PaypalComponent = function PaypalComponent(_ref) {
|
|
|
12762
12785
|
window.paypal.Buttons({
|
|
12763
12786
|
createOrder: function createOrder(data, actions) {
|
|
12764
12787
|
var _ref2;
|
|
12765
|
-
if (
|
|
12788
|
+
if (erSessionStorage.getItem('checkoutIsTermsAccepted') !== 'true') {
|
|
12766
12789
|
throw {
|
|
12767
12790
|
message: 'Please accept terms and conditions.'
|
|
12768
12791
|
};
|
|
@@ -13124,7 +13147,7 @@ var Step4 = function Step4(_ref) {
|
|
|
13124
13147
|
setChecked(function (checked) {
|
|
13125
13148
|
return !checked;
|
|
13126
13149
|
});
|
|
13127
|
-
|
|
13150
|
+
erSessionStorage.setItem('checkoutIsTermsAccepted', !checked);
|
|
13128
13151
|
},
|
|
13129
13152
|
required: true
|
|
13130
13153
|
}), /*#__PURE__*/React__default.createElement("p", null, "I Accept the \xA0", /*#__PURE__*/React__default.createElement("span", {
|