@djb25/digit-ui-module-vendor 1.0.82 → 1.0.83
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 +162 -134
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +162 -134
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -751,8 +751,7 @@ const RegisteredVendorSearch = _ref => {
|
|
|
751
751
|
searchParams = _ref.searchParams,
|
|
752
752
|
isInboxPage = _ref.isInboxPage,
|
|
753
753
|
selectedTab = _ref.selectedTab,
|
|
754
|
-
matchedRoles = _ref.matchedRoles
|
|
755
|
-
ekycVendorCount = _ref.ekycVendorCount;
|
|
754
|
+
matchedRoles = _ref.matchedRoles;
|
|
756
755
|
const storedSearchParams = isInboxPage ? Digit.SessionStorage.get("vendor/inbox/searchParams") : Digit.SessionStorage.get("vendor/search/searchParams");
|
|
757
756
|
const _useTranslation = reactI18next.useTranslation(),
|
|
758
757
|
t = _useTranslation.t;
|
|
@@ -814,13 +813,7 @@ const RegisteredVendorSearch = _ref => {
|
|
|
814
813
|
const userPath = userType === null || userType === void 0 ? void 0 : userType.toLowerCase();
|
|
815
814
|
switch (action) {
|
|
816
815
|
case "VENDOR":
|
|
817
|
-
|
|
818
|
-
setShowToast({
|
|
819
|
-
key: "error",
|
|
820
|
-
action: "You can't create more than 3 eKYC vendors. Please delete an existing vendor before creating a new one."
|
|
821
|
-
});
|
|
822
|
-
return;
|
|
823
|
-
} else return history.push("/digit-ui/" + userPath + "/vendor/registry/new-vendor");
|
|
816
|
+
return history.push("/digit-ui/" + userPath + "/vendor/registry/new-vendor");
|
|
824
817
|
case "VEHICLE":
|
|
825
818
|
return history.push("/digit-ui/" + userPath + "/vendor/registry/new-vehicle");
|
|
826
819
|
case "DRIVER":
|
|
@@ -5003,7 +4996,7 @@ const AddVendor = () => {
|
|
|
5003
4996
|
key: "error",
|
|
5004
4997
|
action: "INVALID_CONTRACT_DATE"
|
|
5005
4998
|
});
|
|
5006
|
-
} else if (!isInvalid && showToast) {
|
|
4999
|
+
} else if (!isInvalid && (showToast === null || showToast === void 0 ? void 0 : showToast.action) === "INVALID_CONTRACT_DATE") {
|
|
5007
5000
|
setShowToast(null);
|
|
5008
5001
|
}
|
|
5009
5002
|
}
|
|
@@ -5041,132 +5034,166 @@ const AddVendor = () => {
|
|
|
5041
5034
|
const closeToast = () => {
|
|
5042
5035
|
setShowToast(null);
|
|
5043
5036
|
};
|
|
5044
|
-
const
|
|
5045
|
-
|
|
5046
|
-
|
|
5047
|
-
|
|
5048
|
-
|
|
5049
|
-
const street = address === null || address === void 0 ? void 0 : address.streetName;
|
|
5050
|
-
const doorNo = address === null || address === void 0 ? void 0 : address.houseNo;
|
|
5051
|
-
const landmark = address === null || address === void 0 ? void 0 : address.landmark;
|
|
5052
|
-
const city = address === null || address === void 0 ? void 0 : (_address$city = address.city) === null || _address$city === void 0 ? void 0 : _address$city.name;
|
|
5053
|
-
const state = address === null || address === void 0 ? void 0 : (_address$city2 = address.city) === null || _address$city2 === void 0 ? void 0 : _address$city2.name;
|
|
5054
|
-
const district = address === null || address === void 0 ? void 0 : (_address$city3 = address.city) === null || _address$city3 === void 0 ? void 0 : _address$city3.name;
|
|
5055
|
-
const region = address === null || address === void 0 ? void 0 : (_address$city4 = address.city) === null || _address$city4 === void 0 ? void 0 : _address$city4.name;
|
|
5056
|
-
const localityCode = address === null || address === void 0 ? void 0 : (_address$locality = address.locality) === null || _address$locality === void 0 ? void 0 : _address$locality.code;
|
|
5057
|
-
const localityName = address === null || address === void 0 ? void 0 : (_address$locality2 = address.locality) === null || _address$locality2 === void 0 ? void 0 : _address$locality2.name;
|
|
5058
|
-
const localityArea = address === null || address === void 0 ? void 0 : address.subLocality;
|
|
5059
|
-
const wardCode = address === null || address === void 0 ? void 0 : (_address$ward = address.ward) === null || _address$ward === void 0 ? void 0 : _address$ward.code;
|
|
5060
|
-
const wardName = address === null || address === void 0 ? void 0 : (_address$ward2 = address.ward) === null || _address$ward2 === void 0 ? void 0 : _address$ward2.name;
|
|
5061
|
-
const subLocality = (address === null || address === void 0 ? void 0 : address.subLocality) || (address === null || address === void 0 ? void 0 : (_address$subLocality = address.subLocality) === null || _address$subLocality === void 0 ? void 0 : _address$subLocality.name) || (address === null || address === void 0 ? void 0 : address.subLocality);
|
|
5062
|
-
const addressLine1 = address === null || address === void 0 ? void 0 : address.addressLine1;
|
|
5063
|
-
const addressLine2 = address === null || address === void 0 ? void 0 : address.addressLine2;
|
|
5064
|
-
const actualAssembly = address === null || address === void 0 ? void 0 : address.actualAssembly;
|
|
5065
|
-
const actualWard = address === null || address === void 0 ? void 0 : address.actualWard;
|
|
5066
|
-
const actualZone = address === null || address === void 0 ? void 0 : address.actualZone;
|
|
5067
|
-
const name = mergedData === null || mergedData === void 0 ? void 0 : mergedData.vendorName;
|
|
5068
|
-
const plotNo = mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$plotNo = mergedData.plotNo) === null || _mergedData$plotNo === void 0 ? void 0 : _mergedData$plotNo.trim();
|
|
5069
|
-
const buildingName = mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$buildingN = mergedData.buildingName) === null || _mergedData$buildingN === void 0 ? void 0 : _mergedData$buildingN.trim();
|
|
5070
|
-
const emailId = mergedData === null || mergedData === void 0 ? void 0 : mergedData.emailId;
|
|
5071
|
-
const phone = mergedData === null || mergedData === void 0 ? void 0 : mergedData.phone;
|
|
5072
|
-
const isEkyc = (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$serviceTy = mergedData.serviceType) === null || _mergedData$serviceTy === void 0 ? void 0 : _mergedData$serviceTy.code) === "EKYC";
|
|
5073
|
-
let vendorData = {
|
|
5074
|
-
tenantId: tenantId,
|
|
5075
|
-
name,
|
|
5076
|
-
agencyType: "ULB",
|
|
5077
|
-
paymentPreference: "post-service",
|
|
5078
|
-
address: {
|
|
5079
|
-
tenantId: tenantId,
|
|
5080
|
-
landmark,
|
|
5081
|
-
doorNo,
|
|
5082
|
-
plotNo,
|
|
5083
|
-
street,
|
|
5084
|
-
city,
|
|
5085
|
-
district,
|
|
5086
|
-
region,
|
|
5087
|
-
state,
|
|
5088
|
-
country: "india",
|
|
5089
|
-
pincode,
|
|
5090
|
-
buildingName,
|
|
5091
|
-
locality: {
|
|
5092
|
-
code: localityCode || "",
|
|
5093
|
-
name: localityName || "",
|
|
5094
|
-
label: "Locality",
|
|
5095
|
-
area: localityArea || ""
|
|
5096
|
-
},
|
|
5097
|
-
subLocality: subLocality,
|
|
5098
|
-
addressLine1: addressLine1,
|
|
5099
|
-
addressLine2: addressLine2,
|
|
5100
|
-
actualAssembly,
|
|
5101
|
-
actualWard,
|
|
5102
|
-
actualZone,
|
|
5103
|
-
ward: wardCode ? {
|
|
5104
|
-
code: wardCode,
|
|
5105
|
-
name: wardName
|
|
5106
|
-
} : undefined,
|
|
5107
|
-
geoLocation: {
|
|
5108
|
-
latitude: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$address = mergedData.address) === null || _mergedData$address === void 0 ? void 0 : _mergedData$address.latitude) || 28.6139,
|
|
5109
|
-
longitude: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$address2 = mergedData.address) === null || _mergedData$address2 === void 0 ? void 0 : _mergedData$address2.longitude) || 77.209
|
|
5110
|
-
}
|
|
5111
|
-
},
|
|
5112
|
-
owner: {
|
|
5113
|
-
tenantId: "dl",
|
|
5114
|
-
name: (mergedData === null || mergedData === void 0 ? void 0 : mergedData.ownerName) || name,
|
|
5115
|
-
fatherOrHusbandName: (mergedData === null || mergedData === void 0 ? void 0 : mergedData.fatherOrHusbandName) || name,
|
|
5116
|
-
relationship: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$relations = mergedData.relationship) === null || _mergedData$relations === void 0 ? void 0 : _mergedData$relations.code) || "OTHER",
|
|
5117
|
-
gender: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$gender = mergedData.gender) === null || _mergedData$gender === void 0 ? void 0 : _mergedData$gender.code) || "MALE",
|
|
5118
|
-
dob: mergedData !== null && mergedData !== void 0 && mergedData.dob ? new Date(mergedData.dob).getTime() : new Date("1/1/1970").getTime(),
|
|
5119
|
-
emailId: emailId || "",
|
|
5120
|
-
mobileNumber: phone
|
|
5121
|
-
},
|
|
5122
|
-
additionalDetails: {
|
|
5123
|
-
serviceType: isEkyc ? "ekyc" : mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$serviceTy2 = mergedData.serviceType) === null || _mergedData$serviceTy2 === void 0 ? void 0 : _mergedData$serviceTy2.code
|
|
5124
|
-
},
|
|
5125
|
-
vehicles: [],
|
|
5126
|
-
drivers: [],
|
|
5127
|
-
source: isEkyc ? "eKYC Portal" : "WhatsApp"
|
|
5128
|
-
};
|
|
5129
|
-
if (isEkyc) {
|
|
5130
|
-
var _mergedData$zoneIds, _mergedData$clusterId;
|
|
5131
|
-
vendorData = _extends({}, vendorData, {
|
|
5132
|
-
zoneIds: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$zoneIds = mergedData.zoneIds) === null || _mergedData$zoneIds === void 0 ? void 0 : _mergedData$zoneIds.map(z => z === null || z === void 0 ? void 0 : z.code)) || [],
|
|
5133
|
-
clusterIds: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$clusterId = mergedData.clusterIds) === null || _mergedData$clusterId === void 0 ? void 0 : _mergedData$clusterId.map(c => {
|
|
5134
|
-
var _c$;
|
|
5135
|
-
return c === null || c === void 0 ? void 0 : (_c$ = c[1]) === null || _c$ === void 0 ? void 0 : _c$.code;
|
|
5136
|
-
})) || [],
|
|
5137
|
-
contractStartDate: mergedData.contractStartDate ? new Date(mergedData.contractStartDate).getTime() : null,
|
|
5138
|
-
contractEndDate: mergedData.contractEndDate ? new Date(mergedData.contractEndDate).getTime() : null
|
|
5139
|
-
});
|
|
5140
|
-
}
|
|
5141
|
-
const payload = {
|
|
5142
|
-
vendor: vendorData
|
|
5143
|
-
};
|
|
5144
|
-
if (isEkyc) {
|
|
5145
|
-
payload.RequestInfo = {
|
|
5146
|
-
apiId: "Rainmaker",
|
|
5147
|
-
msgId: "ekyc-vendor-create"
|
|
5148
|
-
};
|
|
5149
|
-
}
|
|
5150
|
-
mutate(payload, {
|
|
5151
|
-
onError: error => {
|
|
5152
|
-
setShowToast({
|
|
5153
|
-
key: "error",
|
|
5154
|
-
action: (error === null || error === void 0 ? void 0 : error.message) || error
|
|
5155
|
-
});
|
|
5037
|
+
const _Digit$Hooks$fsm$useV2 = Digit.Hooks.fsm.useVendorSearch({
|
|
5038
|
+
tenantId,
|
|
5039
|
+
filters: {
|
|
5040
|
+
status: "ACTIVE,DISABLED",
|
|
5041
|
+
serviceType: "ekyc"
|
|
5156
5042
|
},
|
|
5157
|
-
|
|
5158
|
-
|
|
5159
|
-
|
|
5160
|
-
|
|
5161
|
-
|
|
5162
|
-
|
|
5163
|
-
|
|
5164
|
-
|
|
5165
|
-
|
|
5043
|
+
config: {
|
|
5044
|
+
enabled: false
|
|
5045
|
+
}
|
|
5046
|
+
}),
|
|
5047
|
+
refetch = _Digit$Hooks$fsm$useV2.refetch;
|
|
5048
|
+
const onSubmit = function (data) {
|
|
5049
|
+
try {
|
|
5050
|
+
var _address$city, _address$city2, _address$city3, _address$city4, _address$locality, _address$locality2, _address$ward, _address$ward2, _address$subLocality, _mergedData$plotNo, _mergedData$buildingN, _mergedData$serviceTy, _mergedData$address, _mergedData$address2, _mergedData$relations, _mergedData$gender, _mergedData$serviceTy2;
|
|
5051
|
+
let _exit = false;
|
|
5052
|
+
function _temp2(_result) {
|
|
5053
|
+
if (_exit) return _result;
|
|
5054
|
+
const payload = {
|
|
5055
|
+
vendor: vendorData
|
|
5056
|
+
};
|
|
5057
|
+
if (isEkyc) {
|
|
5058
|
+
payload.RequestInfo = {
|
|
5059
|
+
apiId: "Rainmaker",
|
|
5060
|
+
msgId: "ekyc-vendor-create"
|
|
5061
|
+
};
|
|
5062
|
+
}
|
|
5063
|
+
mutate(payload, {
|
|
5064
|
+
onError: error => {
|
|
5065
|
+
setShowToast({
|
|
5066
|
+
key: "error",
|
|
5067
|
+
action: (error === null || error === void 0 ? void 0 : error.message) || error
|
|
5068
|
+
});
|
|
5069
|
+
},
|
|
5070
|
+
onSuccess: () => {
|
|
5071
|
+
history.push({
|
|
5072
|
+
pathname: "/digit-ui/" + userType + "/vendor/search-vendor",
|
|
5073
|
+
state: {
|
|
5074
|
+
showSuccessToast: true,
|
|
5075
|
+
message: {
|
|
5076
|
+
key: "success",
|
|
5077
|
+
action: "ES_VENDOR_ADD_VENDOR"
|
|
5078
|
+
}
|
|
5079
|
+
}
|
|
5080
|
+
});
|
|
5166
5081
|
}
|
|
5167
5082
|
});
|
|
5168
5083
|
}
|
|
5169
|
-
|
|
5084
|
+
const mergedData = data;
|
|
5085
|
+
const address = mergedData === null || mergedData === void 0 ? void 0 : mergedData.propertyAddress;
|
|
5086
|
+
const pincode = address === null || address === void 0 ? void 0 : address.pincode;
|
|
5087
|
+
const street = address === null || address === void 0 ? void 0 : address.streetName;
|
|
5088
|
+
const doorNo = address === null || address === void 0 ? void 0 : address.houseNo;
|
|
5089
|
+
const landmark = address === null || address === void 0 ? void 0 : address.landmark;
|
|
5090
|
+
const city = address === null || address === void 0 ? void 0 : (_address$city = address.city) === null || _address$city === void 0 ? void 0 : _address$city.name;
|
|
5091
|
+
const state = address === null || address === void 0 ? void 0 : (_address$city2 = address.city) === null || _address$city2 === void 0 ? void 0 : _address$city2.name;
|
|
5092
|
+
const district = address === null || address === void 0 ? void 0 : (_address$city3 = address.city) === null || _address$city3 === void 0 ? void 0 : _address$city3.name;
|
|
5093
|
+
const region = address === null || address === void 0 ? void 0 : (_address$city4 = address.city) === null || _address$city4 === void 0 ? void 0 : _address$city4.name;
|
|
5094
|
+
const localityCode = address === null || address === void 0 ? void 0 : (_address$locality = address.locality) === null || _address$locality === void 0 ? void 0 : _address$locality.code;
|
|
5095
|
+
const localityName = address === null || address === void 0 ? void 0 : (_address$locality2 = address.locality) === null || _address$locality2 === void 0 ? void 0 : _address$locality2.name;
|
|
5096
|
+
const localityArea = address === null || address === void 0 ? void 0 : address.subLocality;
|
|
5097
|
+
const wardCode = address === null || address === void 0 ? void 0 : (_address$ward = address.ward) === null || _address$ward === void 0 ? void 0 : _address$ward.code;
|
|
5098
|
+
const wardName = address === null || address === void 0 ? void 0 : (_address$ward2 = address.ward) === null || _address$ward2 === void 0 ? void 0 : _address$ward2.name;
|
|
5099
|
+
const subLocality = (address === null || address === void 0 ? void 0 : address.subLocality) || (address === null || address === void 0 ? void 0 : (_address$subLocality = address.subLocality) === null || _address$subLocality === void 0 ? void 0 : _address$subLocality.name) || (address === null || address === void 0 ? void 0 : address.subLocality);
|
|
5100
|
+
const addressLine1 = address === null || address === void 0 ? void 0 : address.addressLine1;
|
|
5101
|
+
const addressLine2 = address === null || address === void 0 ? void 0 : address.addressLine2;
|
|
5102
|
+
const actualAssembly = address === null || address === void 0 ? void 0 : address.actualAssembly;
|
|
5103
|
+
const actualWard = address === null || address === void 0 ? void 0 : address.actualWard;
|
|
5104
|
+
const actualZone = address === null || address === void 0 ? void 0 : address.actualZone;
|
|
5105
|
+
const name = mergedData === null || mergedData === void 0 ? void 0 : mergedData.vendorName;
|
|
5106
|
+
const plotNo = mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$plotNo = mergedData.plotNo) === null || _mergedData$plotNo === void 0 ? void 0 : _mergedData$plotNo.trim();
|
|
5107
|
+
const buildingName = mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$buildingN = mergedData.buildingName) === null || _mergedData$buildingN === void 0 ? void 0 : _mergedData$buildingN.trim();
|
|
5108
|
+
const emailId = mergedData === null || mergedData === void 0 ? void 0 : mergedData.emailId;
|
|
5109
|
+
const phone = mergedData === null || mergedData === void 0 ? void 0 : mergedData.phone;
|
|
5110
|
+
const isEkyc = (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$serviceTy = mergedData.serviceType) === null || _mergedData$serviceTy === void 0 ? void 0 : _mergedData$serviceTy.code) === "EKYC";
|
|
5111
|
+
let vendorData = {
|
|
5112
|
+
tenantId: tenantId,
|
|
5113
|
+
name,
|
|
5114
|
+
agencyType: "ULB",
|
|
5115
|
+
paymentPreference: "post-service",
|
|
5116
|
+
address: {
|
|
5117
|
+
tenantId: tenantId,
|
|
5118
|
+
landmark,
|
|
5119
|
+
doorNo,
|
|
5120
|
+
plotNo,
|
|
5121
|
+
street,
|
|
5122
|
+
city,
|
|
5123
|
+
district,
|
|
5124
|
+
region,
|
|
5125
|
+
state,
|
|
5126
|
+
country: "india",
|
|
5127
|
+
pincode,
|
|
5128
|
+
buildingName,
|
|
5129
|
+
locality: {
|
|
5130
|
+
code: localityCode || "",
|
|
5131
|
+
name: localityName || "",
|
|
5132
|
+
label: "Locality",
|
|
5133
|
+
area: localityArea || ""
|
|
5134
|
+
},
|
|
5135
|
+
subLocality: subLocality,
|
|
5136
|
+
addressLine1: addressLine1,
|
|
5137
|
+
addressLine2: addressLine2,
|
|
5138
|
+
actualAssembly,
|
|
5139
|
+
actualWard,
|
|
5140
|
+
actualZone,
|
|
5141
|
+
ward: wardCode ? {
|
|
5142
|
+
code: wardCode,
|
|
5143
|
+
name: wardName
|
|
5144
|
+
} : undefined,
|
|
5145
|
+
geoLocation: {
|
|
5146
|
+
latitude: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$address = mergedData.address) === null || _mergedData$address === void 0 ? void 0 : _mergedData$address.latitude) || 28.6139,
|
|
5147
|
+
longitude: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$address2 = mergedData.address) === null || _mergedData$address2 === void 0 ? void 0 : _mergedData$address2.longitude) || 77.209
|
|
5148
|
+
}
|
|
5149
|
+
},
|
|
5150
|
+
owner: {
|
|
5151
|
+
tenantId: "dl",
|
|
5152
|
+
name: (mergedData === null || mergedData === void 0 ? void 0 : mergedData.ownerName) || name,
|
|
5153
|
+
fatherOrHusbandName: (mergedData === null || mergedData === void 0 ? void 0 : mergedData.fatherOrHusbandName) || name,
|
|
5154
|
+
relationship: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$relations = mergedData.relationship) === null || _mergedData$relations === void 0 ? void 0 : _mergedData$relations.code) || "OTHER",
|
|
5155
|
+
gender: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$gender = mergedData.gender) === null || _mergedData$gender === void 0 ? void 0 : _mergedData$gender.code) || "MALE",
|
|
5156
|
+
dob: mergedData !== null && mergedData !== void 0 && mergedData.dob ? new Date(mergedData.dob).getTime() : new Date("1/1/1970").getTime(),
|
|
5157
|
+
emailId: emailId || "",
|
|
5158
|
+
mobileNumber: phone
|
|
5159
|
+
},
|
|
5160
|
+
additionalDetails: {
|
|
5161
|
+
serviceType: isEkyc ? "ekyc" : mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$serviceTy2 = mergedData.serviceType) === null || _mergedData$serviceTy2 === void 0 ? void 0 : _mergedData$serviceTy2.code
|
|
5162
|
+
},
|
|
5163
|
+
vehicles: [],
|
|
5164
|
+
drivers: [],
|
|
5165
|
+
source: isEkyc ? "eKYC Portal" : "WhatsApp"
|
|
5166
|
+
};
|
|
5167
|
+
const _temp = function () {
|
|
5168
|
+
if (isEkyc) {
|
|
5169
|
+
return Promise.resolve(refetch()).then(function (_ref) {
|
|
5170
|
+
var _mergedData$zoneIds, _mergedData$clusterId;
|
|
5171
|
+
let data = _ref.data;
|
|
5172
|
+
if ((data === null || data === void 0 ? void 0 : data.totalCount) >= 3) {
|
|
5173
|
+
setShowToast({
|
|
5174
|
+
key: "error",
|
|
5175
|
+
message: t("EKYC_VENDOR_LIMIT"),
|
|
5176
|
+
duration: 5000
|
|
5177
|
+
});
|
|
5178
|
+
_exit = true;
|
|
5179
|
+
return;
|
|
5180
|
+
}
|
|
5181
|
+
vendorData = _extends({}, vendorData, {
|
|
5182
|
+
zoneIds: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$zoneIds = mergedData.zoneIds) === null || _mergedData$zoneIds === void 0 ? void 0 : _mergedData$zoneIds.map(z => z === null || z === void 0 ? void 0 : z.code)) || [],
|
|
5183
|
+
clusterIds: (mergedData === null || mergedData === void 0 ? void 0 : (_mergedData$clusterId = mergedData.clusterIds) === null || _mergedData$clusterId === void 0 ? void 0 : _mergedData$clusterId.map(c => {
|
|
5184
|
+
var _c$;
|
|
5185
|
+
return c === null || c === void 0 ? void 0 : (_c$ = c[1]) === null || _c$ === void 0 ? void 0 : _c$.code;
|
|
5186
|
+
})) || [],
|
|
5187
|
+
contractStartDate: mergedData.contractStartDate ? new Date(mergedData.contractStartDate).getTime() : null,
|
|
5188
|
+
contractEndDate: mergedData.contractEndDate ? new Date(mergedData.contractEndDate).getTime() : null
|
|
5189
|
+
});
|
|
5190
|
+
});
|
|
5191
|
+
}
|
|
5192
|
+
}();
|
|
5193
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp));
|
|
5194
|
+
} catch (e) {
|
|
5195
|
+
return Promise.reject(e);
|
|
5196
|
+
}
|
|
5170
5197
|
};
|
|
5171
5198
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.VerticalTimeline, {
|
|
5172
5199
|
config: [{
|
|
@@ -5200,8 +5227,9 @@ const AddVendor = () => {
|
|
|
5200
5227
|
noBreakLine: true
|
|
5201
5228
|
}), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
5202
5229
|
error: showToast.key === "error",
|
|
5203
|
-
label: showToast.
|
|
5204
|
-
onClose: closeToast
|
|
5230
|
+
label: showToast.message,
|
|
5231
|
+
onClose: closeToast,
|
|
5232
|
+
duration: showToast.duration || 5000
|
|
5205
5233
|
})));
|
|
5206
5234
|
};
|
|
5207
5235
|
|