@salesgenterp/ui-components 0.4.195 → 0.4.196
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 +5 -7
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +5 -7
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3399,13 +3399,13 @@ var Step2 = function Step2(_ref) {
|
|
|
3399
3399
|
setAddress((_addressList$2 = addressList[0]) === null || _addressList$2 === void 0 ? void 0 : _addressList$2.id);
|
|
3400
3400
|
}, [selectedStore]);
|
|
3401
3401
|
var deliveryOption = function deliveryOption(option, i) {
|
|
3402
|
-
var _styles$input, _styles$input2, _styles$button, _option$amount;
|
|
3402
|
+
var _styles$input, _styles$input2, _styles$button, _option$amount, _option$amount2;
|
|
3403
3403
|
return /*#__PURE__*/React__default.createElement(DeliveryOptionContainer, {
|
|
3404
3404
|
key: i
|
|
3405
3405
|
}, /*#__PURE__*/React__default.createElement(DeliveryOption, {
|
|
3406
3406
|
hovered: (option === null || option === void 0 ? void 0 : option.id) === (method === null || method === void 0 ? void 0 : method.id),
|
|
3407
3407
|
onClick: function onClick() {
|
|
3408
|
-
if (option !== null && option !== void 0 && option.code) {
|
|
3408
|
+
if (option !== null && option !== void 0 && option.code || option !== null && option !== void 0 && option.parentShippingId) {
|
|
3409
3409
|
(option === null || option === void 0 ? void 0 : option.id) === (expandCarrier === null || expandCarrier === void 0 ? void 0 : expandCarrier.id) ? setExpandCarrier(null) : setExpandCarrier(option);
|
|
3410
3410
|
} else {
|
|
3411
3411
|
!(option !== null && option !== void 0 && option.shippingId) && setExpandCarrier(null);
|
|
@@ -3417,7 +3417,7 @@ var Step2 = function Step2(_ref) {
|
|
|
3417
3417
|
border: styles === null || styles === void 0 ? void 0 : (_styles$input2 = styles.input) === null || _styles$input2 === void 0 ? void 0 : _styles$input2.border,
|
|
3418
3418
|
color: styles === null || styles === void 0 ? void 0 : styles.primaryColor,
|
|
3419
3419
|
buttonBg: styles === null || styles === void 0 ? void 0 : (_styles$button = styles.button) === null || _styles$button === void 0 ? void 0 : _styles$button.bg
|
|
3420
|
-
}, !(option !== null && option !== void 0 && option.code) && /*#__PURE__*/React__default.createElement("div", {
|
|
3420
|
+
}, (!(option !== null && option !== void 0 && option.code) || (option === null || option === void 0 ? void 0 : option.parentShippingId)) && /*#__PURE__*/React__default.createElement("div", {
|
|
3421
3421
|
className: "circle"
|
|
3422
3422
|
}, /*#__PURE__*/React__default.createElement("span", {
|
|
3423
3423
|
className: "inner"
|
|
@@ -3425,14 +3425,14 @@ var Step2 = function Step2(_ref) {
|
|
|
3425
3425
|
className: "fill"
|
|
3426
3426
|
}))), /*#__PURE__*/React__default.createElement("p", null, option === null || option === void 0 ? void 0 : option.name), /*#__PURE__*/React__default.createElement("h6", {
|
|
3427
3427
|
className: "amount"
|
|
3428
|
-
}, option !== null && option !== void 0 && option.code ? /*#__PURE__*/React__default.createElement(hi.HiOutlineChevronDown, {
|
|
3428
|
+
}, option !== null && option !== void 0 && option.code ? !(option !== null && option !== void 0 && option.parentShippingId) ? /*#__PURE__*/React__default.createElement(hi.HiOutlineChevronDown, {
|
|
3429
3429
|
className: "dropIcon",
|
|
3430
3430
|
style: (option === null || option === void 0 ? void 0 : option.id) === (expandCarrier === null || expandCarrier === void 0 ? void 0 : expandCarrier.id) ? {
|
|
3431
3431
|
transform: 'rotate(-90deg)'
|
|
3432
3432
|
} : {
|
|
3433
3433
|
transform: 'rotate(0deg)'
|
|
3434
3434
|
}
|
|
3435
|
-
}) : "$" + (option === null || option === void 0 ? void 0 : (_option$amount = option.amount) === null || _option$amount === void 0 ? void 0 : _option$amount.toFixed(2)))), (option === null || option === void 0 ? void 0 : option.id) === (expandCarrier === null || expandCarrier === void 0 ? void 0 : expandCarrier.id) && (option === null || option === void 0 ? void 0 : option.code) && /*#__PURE__*/React__default.createElement(InnerOptionRow, {
|
|
3435
|
+
}) : "$" + (option === null || option === void 0 ? void 0 : (_option$amount = option.amount) === null || _option$amount === void 0 ? void 0 : _option$amount.toFixed(2)) : "$" + (option === null || option === void 0 ? void 0 : (_option$amount2 = option.amount) === null || _option$amount2 === void 0 ? void 0 : _option$amount2.toFixed(2)))), (option === null || option === void 0 ? void 0 : option.id) === (expandCarrier === null || expandCarrier === void 0 ? void 0 : expandCarrier.id) && ((option === null || option === void 0 ? void 0 : option.code) || (option === null || option === void 0 ? void 0 : option.parentShippingId)) && /*#__PURE__*/React__default.createElement(InnerOptionRow, {
|
|
3436
3436
|
carrier: expandCarrier,
|
|
3437
3437
|
shipStore: shipStore,
|
|
3438
3438
|
userStore: selectedStores,
|
|
@@ -3445,8 +3445,6 @@ var Step2 = function Step2(_ref) {
|
|
|
3445
3445
|
shipStore = _ref2.shipStore,
|
|
3446
3446
|
userStore = _ref2.userStore,
|
|
3447
3447
|
cartData = _ref2.cartData;
|
|
3448
|
-
console.log('cartData: ', cartData);
|
|
3449
|
-
console.log('userStore: ', userStore);
|
|
3450
3448
|
var shipObj = {
|
|
3451
3449
|
carrierCode: carrier === null || carrier === void 0 ? void 0 : carrier.code,
|
|
3452
3450
|
serviceCode: carrier === null || carrier === void 0 ? void 0 : carrier.serviceCode,
|