@djb25/digit-ui-module-wt 1.0.79 → 1.0.81
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 +743 -155
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +743 -155
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -3543,7 +3543,125 @@ const WTDesktopInbox = _ref => {
|
|
|
3543
3543
|
const _useState4 = React.useState(false),
|
|
3544
3544
|
isSidebarCollapsed = _useState4[0],
|
|
3545
3545
|
setIsSidebarCollapsed = _useState4[1];
|
|
3546
|
-
const
|
|
3546
|
+
const _useState5 = React.useState(false),
|
|
3547
|
+
showImageModal = _useState5[0],
|
|
3548
|
+
setShowImageModal = _useState5[1];
|
|
3549
|
+
const _useState6 = React.useState({
|
|
3550
|
+
startUrl: null,
|
|
3551
|
+
endUrl: null,
|
|
3552
|
+
bookingNo: "",
|
|
3553
|
+
isLoading: false
|
|
3554
|
+
}),
|
|
3555
|
+
imageModalData = _useState6[0],
|
|
3556
|
+
setImageModalData = _useState6[1];
|
|
3557
|
+
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
3558
|
+
const fetchImageUrl = React.useCallback(function (fileStoreId) {
|
|
3559
|
+
try {
|
|
3560
|
+
let _exit = false;
|
|
3561
|
+
if (!fileStoreId) return Promise.resolve(null);
|
|
3562
|
+
const _temp = _catch(function () {
|
|
3563
|
+
return Promise.resolve(Digit.UploadServices.Filefetch([fileStoreId], tenantId)).then(function (res) {
|
|
3564
|
+
var _res$data, _res$data2, _res$data2$fileStoreI, _res$data2$fileStoreI2;
|
|
3565
|
+
if (res !== null && res !== void 0 && (_res$data = res.data) !== null && _res$data !== void 0 && _res$data[fileStoreId]) {
|
|
3566
|
+
const _res$data$fileStoreId = res.data[fileStoreId].split(",")[0];
|
|
3567
|
+
_exit = true;
|
|
3568
|
+
return _res$data$fileStoreId;
|
|
3569
|
+
}
|
|
3570
|
+
if (res !== null && res !== void 0 && (_res$data2 = res.data) !== null && _res$data2 !== void 0 && (_res$data2$fileStoreI = _res$data2.fileStoreIds) !== null && _res$data2$fileStoreI !== void 0 && (_res$data2$fileStoreI2 = _res$data2$fileStoreI[0]) !== null && _res$data2$fileStoreI2 !== void 0 && _res$data2$fileStoreI2.url) {
|
|
3571
|
+
const _res$data$fileStoreId2 = res.data.fileStoreIds[0].url.split(",")[0];
|
|
3572
|
+
_exit = true;
|
|
3573
|
+
return _res$data$fileStoreId2;
|
|
3574
|
+
}
|
|
3575
|
+
});
|
|
3576
|
+
}, function (err) {
|
|
3577
|
+
console.error("Error fetching image URL:", err);
|
|
3578
|
+
});
|
|
3579
|
+
return Promise.resolve(_temp && _temp.then ? _temp.then(function (_result) {
|
|
3580
|
+
return _exit ? _result : null;
|
|
3581
|
+
}) : _exit ? _temp : null);
|
|
3582
|
+
} catch (e) {
|
|
3583
|
+
return Promise.reject(e);
|
|
3584
|
+
}
|
|
3585
|
+
}, [tenantId]);
|
|
3586
|
+
const handleViewImage = React.useCallback(function (_ref2) {
|
|
3587
|
+
let startFileStoreId = _ref2.startFileStoreId,
|
|
3588
|
+
endFileStoreId = _ref2.endFileStoreId,
|
|
3589
|
+
bookingNo = _ref2.bookingNo;
|
|
3590
|
+
try {
|
|
3591
|
+
setShowImageModal(true);
|
|
3592
|
+
setImageModalData({
|
|
3593
|
+
startUrl: null,
|
|
3594
|
+
endUrl: null,
|
|
3595
|
+
bookingNo: bookingNo || "",
|
|
3596
|
+
isLoading: true
|
|
3597
|
+
});
|
|
3598
|
+
const _temp2 = _catch(function () {
|
|
3599
|
+
return Promise.resolve(Promise.all([fetchImageUrl(startFileStoreId), fetchImageUrl(endFileStoreId)])).then(function (_ref3) {
|
|
3600
|
+
let startUrl = _ref3[0],
|
|
3601
|
+
endUrl = _ref3[1];
|
|
3602
|
+
setImageModalData({
|
|
3603
|
+
startUrl,
|
|
3604
|
+
endUrl,
|
|
3605
|
+
bookingNo: bookingNo || "",
|
|
3606
|
+
isLoading: false
|
|
3607
|
+
});
|
|
3608
|
+
});
|
|
3609
|
+
}, function (err) {
|
|
3610
|
+
console.error("Error loading images:", err);
|
|
3611
|
+
setImageModalData(prev => _extends({}, prev, {
|
|
3612
|
+
isLoading: false
|
|
3613
|
+
}));
|
|
3614
|
+
});
|
|
3615
|
+
return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
|
|
3616
|
+
} catch (e) {
|
|
3617
|
+
return Promise.reject(e);
|
|
3618
|
+
}
|
|
3619
|
+
}, [fetchImageUrl]);
|
|
3620
|
+
const downloadImage = React.useCallback(function (url, filename) {
|
|
3621
|
+
try {
|
|
3622
|
+
if (!url) return Promise.resolve();
|
|
3623
|
+
const _temp3 = _catch(function () {
|
|
3624
|
+
return Promise.resolve(fetch(url)).then(function (response) {
|
|
3625
|
+
return Promise.resolve(response.blob()).then(function (blob) {
|
|
3626
|
+
const blobUrl = URL.createObjectURL(blob);
|
|
3627
|
+
const link = document.createElement("a");
|
|
3628
|
+
link.href = blobUrl;
|
|
3629
|
+
link.download = filename;
|
|
3630
|
+
document.body.appendChild(link);
|
|
3631
|
+
link.click();
|
|
3632
|
+
document.body.removeChild(link);
|
|
3633
|
+
URL.revokeObjectURL(blobUrl);
|
|
3634
|
+
});
|
|
3635
|
+
});
|
|
3636
|
+
}, function (err) {
|
|
3637
|
+
console.error("Error downloading image:", err);
|
|
3638
|
+
window.open(url, "_blank");
|
|
3639
|
+
});
|
|
3640
|
+
return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
|
|
3641
|
+
} catch (e) {
|
|
3642
|
+
return Promise.reject(e);
|
|
3643
|
+
}
|
|
3644
|
+
}, []);
|
|
3645
|
+
const handleDownloadImage = React.useCallback(function (_ref4) {
|
|
3646
|
+
let startFileStoreId = _ref4.startFileStoreId,
|
|
3647
|
+
endFileStoreId = _ref4.endFileStoreId,
|
|
3648
|
+
bookingNo = _ref4.bookingNo;
|
|
3649
|
+
try {
|
|
3650
|
+
return Promise.resolve(Promise.all([fetchImageUrl(startFileStoreId), fetchImageUrl(endFileStoreId)])).then(function (_ref5) {
|
|
3651
|
+
let startUrl = _ref5[0],
|
|
3652
|
+
endUrl = _ref5[1];
|
|
3653
|
+
const prefix = bookingNo || "trip";
|
|
3654
|
+
if (startUrl) downloadImage(startUrl, prefix + "_start_trip.jpg");
|
|
3655
|
+
if (endUrl) downloadImage(endUrl, prefix + "_end_trip.jpg");
|
|
3656
|
+
});
|
|
3657
|
+
} catch (e) {
|
|
3658
|
+
return Promise.reject(e);
|
|
3659
|
+
}
|
|
3660
|
+
}, [fetchImageUrl, downloadImage]);
|
|
3661
|
+
const columns = React__default.useMemo(() => props.isSearch ? tableConfig.searchColumns(props) : tableConfig.inboxColumns(_extends({}, props, {
|
|
3662
|
+
onViewImage: handleViewImage,
|
|
3663
|
+
onDownloadImage: handleDownloadImage
|
|
3664
|
+
})) || [], [handleViewImage, handleDownloadImage]);
|
|
3547
3665
|
const inboxCsvColumns = React__default.useMemo(() => {
|
|
3548
3666
|
var _columns$, _columns$2, _columns$3, _columns$4, _columns$find3;
|
|
3549
3667
|
const csvColumns = [{
|
|
@@ -3913,7 +4031,223 @@ const WTDesktopInbox = _ref => {
|
|
|
3913
4031
|
minWidth: 0,
|
|
3914
4032
|
overflowX: "auto"
|
|
3915
4033
|
}
|
|
3916
|
-
}, result))
|
|
4034
|
+
}, result)), showImageModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
4035
|
+
headerBarMain: /*#__PURE__*/React__default.createElement("h1", {
|
|
4036
|
+
className: "heading-m",
|
|
4037
|
+
style: {
|
|
4038
|
+
margin: 0,
|
|
4039
|
+
color: "#0B2559"
|
|
4040
|
+
}
|
|
4041
|
+
}, t("WT_DELIVERY_IMAGES"), " ", imageModalData.bookingNo ? "\u2014 " + imageModalData.bookingNo : ""),
|
|
4042
|
+
headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
|
|
4043
|
+
onClick: () => {
|
|
4044
|
+
setShowImageModal(false);
|
|
4045
|
+
setImageModalData({
|
|
4046
|
+
startUrl: null,
|
|
4047
|
+
endUrl: null,
|
|
4048
|
+
bookingNo: "",
|
|
4049
|
+
isLoading: false
|
|
4050
|
+
});
|
|
4051
|
+
},
|
|
4052
|
+
style: {
|
|
4053
|
+
cursor: "pointer",
|
|
4054
|
+
width: "32px",
|
|
4055
|
+
height: "32px",
|
|
4056
|
+
display: "flex",
|
|
4057
|
+
alignItems: "center",
|
|
4058
|
+
justifyContent: "center",
|
|
4059
|
+
borderRadius: "50%",
|
|
4060
|
+
background: "rgba(0,0,0,0.08)",
|
|
4061
|
+
transition: "background 0.2s ease"
|
|
4062
|
+
},
|
|
4063
|
+
onMouseEnter: e => e.currentTarget.style.background = "rgba(0,0,0,0.15)",
|
|
4064
|
+
onMouseLeave: e => e.currentTarget.style.background = "rgba(0,0,0,0.08)"
|
|
4065
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
4066
|
+
width: "18",
|
|
4067
|
+
height: "18",
|
|
4068
|
+
viewBox: "0 0 24 24",
|
|
4069
|
+
fill: "none",
|
|
4070
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
4071
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
4072
|
+
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z",
|
|
4073
|
+
fill: "#333"
|
|
4074
|
+
}))),
|
|
4075
|
+
hideSubmit: true,
|
|
4076
|
+
actionCancelLabel: t("CS_COMMON_CLOSE"),
|
|
4077
|
+
actionCancelOnSubmit: () => {
|
|
4078
|
+
setShowImageModal(false);
|
|
4079
|
+
setImageModalData({
|
|
4080
|
+
startUrl: null,
|
|
4081
|
+
endUrl: null,
|
|
4082
|
+
bookingNo: "",
|
|
4083
|
+
isLoading: false
|
|
4084
|
+
});
|
|
4085
|
+
},
|
|
4086
|
+
popmoduleClassName: "wt-delivery-image-modal"
|
|
4087
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4088
|
+
style: {
|
|
4089
|
+
minHeight: "200px",
|
|
4090
|
+
padding: "16px"
|
|
4091
|
+
}
|
|
4092
|
+
}, imageModalData.isLoading ? /*#__PURE__*/React__default.createElement("div", {
|
|
4093
|
+
style: {
|
|
4094
|
+
display: "flex",
|
|
4095
|
+
justifyContent: "center",
|
|
4096
|
+
alignItems: "center",
|
|
4097
|
+
minHeight: "200px"
|
|
4098
|
+
}
|
|
4099
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null)) : /*#__PURE__*/React__default.createElement("div", {
|
|
4100
|
+
style: {
|
|
4101
|
+
display: "flex",
|
|
4102
|
+
gap: "32px",
|
|
4103
|
+
justifyContent: "center",
|
|
4104
|
+
flexWrap: "wrap"
|
|
4105
|
+
}
|
|
4106
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
4107
|
+
style: {
|
|
4108
|
+
display: "flex",
|
|
4109
|
+
flexDirection: "column",
|
|
4110
|
+
alignItems: "center",
|
|
4111
|
+
gap: "12px"
|
|
4112
|
+
}
|
|
4113
|
+
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
4114
|
+
style: {
|
|
4115
|
+
margin: 0,
|
|
4116
|
+
fontSize: "15px",
|
|
4117
|
+
fontWeight: "700",
|
|
4118
|
+
color: "#0B2559",
|
|
4119
|
+
letterSpacing: "0.3px"
|
|
4120
|
+
}
|
|
4121
|
+
}, t("WT_START_TRIP_IMAGE")), imageModalData.startUrl ? /*#__PURE__*/React__default.createElement("div", {
|
|
4122
|
+
style: {
|
|
4123
|
+
position: "relative",
|
|
4124
|
+
borderRadius: "10px",
|
|
4125
|
+
overflow: "hidden",
|
|
4126
|
+
boxShadow: "0 4px 16px rgba(0,0,0,0.12)"
|
|
4127
|
+
}
|
|
4128
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
4129
|
+
src: imageModalData.startUrl,
|
|
4130
|
+
alt: "Start Trip",
|
|
4131
|
+
style: {
|
|
4132
|
+
maxWidth: "360px",
|
|
4133
|
+
maxHeight: "400px",
|
|
4134
|
+
objectFit: "contain",
|
|
4135
|
+
display: "block"
|
|
4136
|
+
}
|
|
4137
|
+
}), /*#__PURE__*/React__default.createElement("button", {
|
|
4138
|
+
type: "button",
|
|
4139
|
+
onClick: () => downloadImage(imageModalData.startUrl, (imageModalData.bookingNo || "trip") + "_start.jpg"),
|
|
4140
|
+
style: {
|
|
4141
|
+
position: "absolute",
|
|
4142
|
+
bottom: "10px",
|
|
4143
|
+
right: "10px",
|
|
4144
|
+
display: "inline-flex",
|
|
4145
|
+
alignItems: "center",
|
|
4146
|
+
gap: "4px",
|
|
4147
|
+
padding: "6px 12px",
|
|
4148
|
+
fontSize: "12px",
|
|
4149
|
+
fontWeight: "600",
|
|
4150
|
+
color: "#fff",
|
|
4151
|
+
background: "rgba(0,0,0,0.6)",
|
|
4152
|
+
border: "none",
|
|
4153
|
+
borderRadius: "6px",
|
|
4154
|
+
cursor: "pointer",
|
|
4155
|
+
backdropFilter: "blur(4px)"
|
|
4156
|
+
}
|
|
4157
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
4158
|
+
width: "14",
|
|
4159
|
+
height: "14",
|
|
4160
|
+
viewBox: "0 0 24 24",
|
|
4161
|
+
fill: "none"
|
|
4162
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
4163
|
+
d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",
|
|
4164
|
+
fill: "#fff"
|
|
4165
|
+
})), t("CS_COMMON_DOWNLOAD"))) : /*#__PURE__*/React__default.createElement("div", {
|
|
4166
|
+
style: {
|
|
4167
|
+
width: "200px",
|
|
4168
|
+
height: "200px",
|
|
4169
|
+
display: "flex",
|
|
4170
|
+
alignItems: "center",
|
|
4171
|
+
justifyContent: "center",
|
|
4172
|
+
background: "#f8fafc",
|
|
4173
|
+
borderRadius: "10px",
|
|
4174
|
+
border: "2px dashed #e2e8f0",
|
|
4175
|
+
color: "#94a3b8",
|
|
4176
|
+
fontSize: "13px"
|
|
4177
|
+
}
|
|
4178
|
+
}, t("CS_NO_IMAGE_AVAILABLE"))), /*#__PURE__*/React__default.createElement("div", {
|
|
4179
|
+
style: {
|
|
4180
|
+
display: "flex",
|
|
4181
|
+
flexDirection: "column",
|
|
4182
|
+
alignItems: "center",
|
|
4183
|
+
gap: "12px"
|
|
4184
|
+
}
|
|
4185
|
+
}, /*#__PURE__*/React__default.createElement("h3", {
|
|
4186
|
+
style: {
|
|
4187
|
+
margin: 0,
|
|
4188
|
+
fontSize: "15px",
|
|
4189
|
+
fontWeight: "700",
|
|
4190
|
+
color: "#0B2559",
|
|
4191
|
+
letterSpacing: "0.3px"
|
|
4192
|
+
}
|
|
4193
|
+
}, t("WT_END_TRIP_IMAGE")), imageModalData.endUrl ? /*#__PURE__*/React__default.createElement("div", {
|
|
4194
|
+
style: {
|
|
4195
|
+
position: "relative",
|
|
4196
|
+
borderRadius: "10px",
|
|
4197
|
+
overflow: "hidden",
|
|
4198
|
+
boxShadow: "0 4px 16px rgba(0,0,0,0.12)"
|
|
4199
|
+
}
|
|
4200
|
+
}, /*#__PURE__*/React__default.createElement("img", {
|
|
4201
|
+
src: imageModalData.endUrl,
|
|
4202
|
+
alt: "End Trip",
|
|
4203
|
+
style: {
|
|
4204
|
+
maxWidth: "360px",
|
|
4205
|
+
maxHeight: "400px",
|
|
4206
|
+
objectFit: "contain",
|
|
4207
|
+
display: "block"
|
|
4208
|
+
}
|
|
4209
|
+
}), /*#__PURE__*/React__default.createElement("button", {
|
|
4210
|
+
type: "button",
|
|
4211
|
+
onClick: () => downloadImage(imageModalData.endUrl, (imageModalData.bookingNo || "trip") + "_end.jpg"),
|
|
4212
|
+
style: {
|
|
4213
|
+
position: "absolute",
|
|
4214
|
+
bottom: "10px",
|
|
4215
|
+
right: "10px",
|
|
4216
|
+
display: "inline-flex",
|
|
4217
|
+
alignItems: "center",
|
|
4218
|
+
gap: "4px",
|
|
4219
|
+
padding: "6px 12px",
|
|
4220
|
+
fontSize: "12px",
|
|
4221
|
+
fontWeight: "600",
|
|
4222
|
+
color: "#fff",
|
|
4223
|
+
background: "rgba(0,0,0,0.6)",
|
|
4224
|
+
border: "none",
|
|
4225
|
+
borderRadius: "6px",
|
|
4226
|
+
cursor: "pointer",
|
|
4227
|
+
backdropFilter: "blur(4px)"
|
|
4228
|
+
}
|
|
4229
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
4230
|
+
width: "14",
|
|
4231
|
+
height: "14",
|
|
4232
|
+
viewBox: "0 0 24 24",
|
|
4233
|
+
fill: "none"
|
|
4234
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
4235
|
+
d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",
|
|
4236
|
+
fill: "#fff"
|
|
4237
|
+
})), t("CS_COMMON_DOWNLOAD"))) : /*#__PURE__*/React__default.createElement("div", {
|
|
4238
|
+
style: {
|
|
4239
|
+
width: "200px",
|
|
4240
|
+
height: "200px",
|
|
4241
|
+
display: "flex",
|
|
4242
|
+
alignItems: "center",
|
|
4243
|
+
justifyContent: "center",
|
|
4244
|
+
background: "#f8fafc",
|
|
4245
|
+
borderRadius: "10px",
|
|
4246
|
+
border: "2px dashed #e2e8f0",
|
|
4247
|
+
color: "#94a3b8",
|
|
4248
|
+
fontSize: "13px"
|
|
4249
|
+
}
|
|
4250
|
+
}, t("CS_NO_IMAGE_AVAILABLE")))))));
|
|
3917
4251
|
};
|
|
3918
4252
|
|
|
3919
4253
|
const SortBy = props => {
|
|
@@ -7158,7 +7492,13 @@ const AddFillingPointMetaData = _ref => {
|
|
|
7158
7492
|
key: input.name
|
|
7159
7493
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
7160
7494
|
className: "card-label-smaller"
|
|
7161
|
-
}, t(input.label), input.isMandatory ?
|
|
7495
|
+
}, t(input.label), input.isMandatory ? /*#__PURE__*/React__default.createElement("span", {
|
|
7496
|
+
className: "check-page-link-button",
|
|
7497
|
+
style: {
|
|
7498
|
+
color: "red",
|
|
7499
|
+
fontWeight: "bold"
|
|
7500
|
+
}
|
|
7501
|
+
}, " * ") : ""), /*#__PURE__*/React__default.createElement("div", {
|
|
7162
7502
|
style: {
|
|
7163
7503
|
display: "flex"
|
|
7164
7504
|
}
|
|
@@ -17732,12 +18072,26 @@ const WTApplicationDetails = () => {
|
|
|
17732
18072
|
}))));
|
|
17733
18073
|
};
|
|
17734
18074
|
|
|
18075
|
+
const isDeliveredStatus = row => {
|
|
18076
|
+
var _row$searchData, _row$workflowData, _row$workflowData$sta;
|
|
18077
|
+
const bookingStatus = (row === null || row === void 0 ? void 0 : (_row$searchData = row.searchData) === null || _row$searchData === void 0 ? void 0 : _row$searchData.bookingStatus) || (row === null || row === void 0 ? void 0 : (_row$workflowData = row.workflowData) === null || _row$workflowData === void 0 ? void 0 : (_row$workflowData$sta = _row$workflowData.state) === null || _row$workflowData$sta === void 0 ? void 0 : _row$workflowData$sta.applicationStatus) || "";
|
|
18078
|
+
return ["TANKER_DELIVERED", "DELIVERED"].includes(bookingStatus.toUpperCase());
|
|
18079
|
+
};
|
|
18080
|
+
const getTripReportFileIds = row => {
|
|
18081
|
+
var _row$searchData2, _row$searchData2$driv;
|
|
18082
|
+
const tripReport = row === null || row === void 0 ? void 0 : (_row$searchData2 = row.searchData) === null || _row$searchData2 === void 0 ? void 0 : (_row$searchData2$driv = _row$searchData2.driverTripReport) === null || _row$searchData2$driv === void 0 ? void 0 : _row$searchData2$driv[0];
|
|
18083
|
+
return {
|
|
18084
|
+
startFileStoreId: (tripReport === null || tripReport === void 0 ? void 0 : tripReport.startFileStoreId) || null,
|
|
18085
|
+
endFileStoreId: (tripReport === null || tripReport === void 0 ? void 0 : tripReport.endFileStoreId) || null,
|
|
18086
|
+
hasImages: !!(tripReport !== null && tripReport !== void 0 && tripReport.startFileStoreId || tripReport !== null && tripReport !== void 0 && tripReport.endFileStoreId)
|
|
18087
|
+
};
|
|
18088
|
+
};
|
|
17735
18089
|
const GetCell = value => /*#__PURE__*/React__default.createElement("span", {
|
|
17736
18090
|
className: "cell-text"
|
|
17737
18091
|
}, value);
|
|
17738
18092
|
const getCreatedTime = row => {
|
|
17739
|
-
var _row$
|
|
17740
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18093
|
+
var _row$searchData3, _row$searchData3$audi, _row$workflowData2, _row$workflowData2$au;
|
|
18094
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData3 = row.searchData) === null || _row$searchData3 === void 0 ? void 0 : (_row$searchData3$audi = _row$searchData3.auditDetails) === null || _row$searchData3$audi === void 0 ? void 0 : _row$searchData3$audi.createdTime) || (row === null || row === void 0 ? void 0 : (_row$workflowData2 = row.workflowData) === null || _row$workflowData2 === void 0 ? void 0 : (_row$workflowData2$au = _row$workflowData2.auditDetails) === null || _row$workflowData2$au === void 0 ? void 0 : _row$workflowData2$au.createdTime);
|
|
17741
18095
|
};
|
|
17742
18096
|
const getFormattedCreatedAt = row => {
|
|
17743
18097
|
const createdTime = getCreatedTime(row);
|
|
@@ -17745,8 +18099,8 @@ const getFormattedCreatedAt = row => {
|
|
|
17745
18099
|
return Digit.DateUtils.ConvertEpochToDate(createdTime) + " " + Digit.DateUtils.ConvertEpochToTimeInHours(createdTime);
|
|
17746
18100
|
};
|
|
17747
18101
|
const getDeliveryDateTime = row => {
|
|
17748
|
-
var _row$
|
|
17749
|
-
const driverTripReport = row === null || row === void 0 ? void 0 : (_row$
|
|
18102
|
+
var _row$searchData4;
|
|
18103
|
+
const driverTripReport = row === null || row === void 0 ? void 0 : (_row$searchData4 = row.searchData) === null || _row$searchData4 === void 0 ? void 0 : _row$searchData4.driverTripReport;
|
|
17750
18104
|
if (Array.isArray(driverTripReport) && driverTripReport.length > 0) {
|
|
17751
18105
|
var _driverTripReport$, _driverTripReport$$au;
|
|
17752
18106
|
const lastModifiedTime = (_driverTripReport$ = driverTripReport[0]) === null || _driverTripReport$ === void 0 ? void 0 : (_driverTripReport$$au = _driverTripReport$.auditDetails) === null || _driverTripReport$$au === void 0 ? void 0 : _driverTripReport$$au.lastModifiedTime;
|
|
@@ -17788,8 +18142,8 @@ const TableConfig = t => ({
|
|
|
17788
18142
|
Header: t("WT_BOOKING_NO"),
|
|
17789
18143
|
id: "bookingNo",
|
|
17790
18144
|
accessor: row => {
|
|
17791
|
-
var _row$
|
|
17792
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18145
|
+
var _row$searchData5;
|
|
18146
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData5 = row.searchData) === null || _row$searchData5 === void 0 ? void 0 : _row$searchData5["bookingNo"]) || "";
|
|
17793
18147
|
},
|
|
17794
18148
|
Cell: _ref => {
|
|
17795
18149
|
var _row$original, _row$original$searchD, _row$original2, _row$original2$search;
|
|
@@ -17808,8 +18162,8 @@ const TableConfig = t => ({
|
|
|
17808
18162
|
Header: window.location.href.includes("fixed-point") ? t("WT_FIXED_POINT_NAME") : t("WT_APPLICANT_NAME"),
|
|
17809
18163
|
id: "applicantName",
|
|
17810
18164
|
accessor: row => {
|
|
17811
|
-
var _row$
|
|
17812
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18165
|
+
var _row$searchData6, _row$searchData6$appl;
|
|
18166
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData6 = row.searchData) === null || _row$searchData6 === void 0 ? void 0 : (_row$searchData6$appl = _row$searchData6.applicantDetail) === null || _row$searchData6$appl === void 0 ? void 0 : _row$searchData6$appl["name"]) || "";
|
|
17813
18167
|
},
|
|
17814
18168
|
Cell: row => {
|
|
17815
18169
|
var _row$cell, _row$cell$row, _row$cell$row$origina, _row$cell$row$origina2, _row$cell$row$origina3;
|
|
@@ -17823,8 +18177,8 @@ const TableConfig = t => ({
|
|
|
17823
18177
|
Header: t("WT_MOBILE_NUMBER"),
|
|
17824
18178
|
id: "mobileNumber",
|
|
17825
18179
|
accessor: row => {
|
|
17826
|
-
var _row$
|
|
17827
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18180
|
+
var _row$searchData7, _row$searchData7$appl;
|
|
18181
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData7 = row.searchData) === null || _row$searchData7 === void 0 ? void 0 : (_row$searchData7$appl = _row$searchData7.applicantDetail) === null || _row$searchData7$appl === void 0 ? void 0 : _row$searchData7$appl["mobileNumber"]) || "";
|
|
17828
18182
|
},
|
|
17829
18183
|
Cell: row => {
|
|
17830
18184
|
var _row$cell2, _row$cell2$row, _row$cell2$row$origin, _row$cell2$row$origin2, _row$cell2$row$origin3;
|
|
@@ -17838,8 +18192,8 @@ const TableConfig = t => ({
|
|
|
17838
18192
|
Header: t("LOCALITY"),
|
|
17839
18193
|
id: "localityCode",
|
|
17840
18194
|
accessor: row => {
|
|
17841
|
-
var _row$
|
|
17842
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18195
|
+
var _row$searchData8;
|
|
18196
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData8 = row.searchData) === null || _row$searchData8 === void 0 ? void 0 : _row$searchData8["localityCode"]) || "";
|
|
17843
18197
|
},
|
|
17844
18198
|
Cell: _ref2 => {
|
|
17845
18199
|
var _row$original3, _row$original3$search, _row$original4, _row$original4$search;
|
|
@@ -17854,8 +18208,8 @@ const TableConfig = t => ({
|
|
|
17854
18208
|
Header: t("Filling Point"),
|
|
17855
18209
|
id: "fillingPoint",
|
|
17856
18210
|
accessor: row => {
|
|
17857
|
-
var _row$
|
|
17858
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18211
|
+
var _row$searchData9, _row$searchData9$fill, _row$searchData0;
|
|
18212
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData9 = row.searchData) === null || _row$searchData9 === void 0 ? void 0 : (_row$searchData9$fill = _row$searchData9.fillingPointMetadata) === null || _row$searchData9$fill === void 0 ? void 0 : _row$searchData9$fill.name) || (row === null || row === void 0 ? void 0 : (_row$searchData0 = row.searchData) === null || _row$searchData0 === void 0 ? void 0 : _row$searchData0.fillingPointName) || "-";
|
|
17859
18213
|
},
|
|
17860
18214
|
Cell: _ref3 => {
|
|
17861
18215
|
var _row$original5, _row$original5$search, _row$original5$search2, _row$original6, _row$original6$search;
|
|
@@ -17880,8 +18234,8 @@ const TableConfig = t => ({
|
|
|
17880
18234
|
Header: t("WT_STATUS"),
|
|
17881
18235
|
id: "applicationStatus",
|
|
17882
18236
|
accessor: row => {
|
|
17883
|
-
var _row$
|
|
17884
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18237
|
+
var _row$workflowData3, _row$workflowData3$st;
|
|
18238
|
+
return (row === null || row === void 0 ? void 0 : (_row$workflowData3 = row.workflowData) === null || _row$workflowData3 === void 0 ? void 0 : (_row$workflowData3$st = _row$workflowData3.state) === null || _row$workflowData3$st === void 0 ? void 0 : _row$workflowData3$st["applicationStatus"]) || "";
|
|
17885
18239
|
},
|
|
17886
18240
|
Cell: _ref5 => {
|
|
17887
18241
|
var _row$original8, _row$original8$workfl, _row$original8$workfl2;
|
|
@@ -17931,6 +18285,128 @@ const TableConfig = t => ({
|
|
|
17931
18285
|
return GetCell(getDriverNameFromSearchData(row === null || row === void 0 ? void 0 : (_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1.searchData));
|
|
17932
18286
|
},
|
|
17933
18287
|
mobileCell: original => GetMobCell(getDriverNameFromSearchData(original === null || original === void 0 ? void 0 : original.searchData))
|
|
18288
|
+
}, {
|
|
18289
|
+
Header: t("WT_DELIVERY_IMAGES"),
|
|
18290
|
+
id: "deliveryImages",
|
|
18291
|
+
disableSortBy: true,
|
|
18292
|
+
accessor: () => "",
|
|
18293
|
+
Cell: _ref0 => {
|
|
18294
|
+
let row = _ref0.row;
|
|
18295
|
+
const original = row === null || row === void 0 ? void 0 : row.original;
|
|
18296
|
+
const delivered = isDeliveredStatus(original);
|
|
18297
|
+
const _getTripReportFileIds = getTripReportFileIds(original),
|
|
18298
|
+
startFileStoreId = _getTripReportFileIds.startFileStoreId,
|
|
18299
|
+
endFileStoreId = _getTripReportFileIds.endFileStoreId,
|
|
18300
|
+
hasImages = _getTripReportFileIds.hasImages;
|
|
18301
|
+
if (!delivered || !hasImages) {
|
|
18302
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
18303
|
+
className: "cell-text",
|
|
18304
|
+
style: {
|
|
18305
|
+
color: "#94a3b8"
|
|
18306
|
+
}
|
|
18307
|
+
}, t("CS_NA"));
|
|
18308
|
+
}
|
|
18309
|
+
return /*#__PURE__*/React__default.createElement("div", {
|
|
18310
|
+
style: {
|
|
18311
|
+
display: "flex",
|
|
18312
|
+
gap: "8px",
|
|
18313
|
+
alignItems: "center",
|
|
18314
|
+
flexWrap: "wrap"
|
|
18315
|
+
}
|
|
18316
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
18317
|
+
type: "button",
|
|
18318
|
+
title: t("WT_VIEW_IMAGES"),
|
|
18319
|
+
onClick: () => {
|
|
18320
|
+
var _props$onViewImage, _original$searchData1;
|
|
18321
|
+
return (_props$onViewImage = props.onViewImage) === null || _props$onViewImage === void 0 ? void 0 : _props$onViewImage.call(props, {
|
|
18322
|
+
startFileStoreId,
|
|
18323
|
+
endFileStoreId,
|
|
18324
|
+
bookingNo: original === null || original === void 0 ? void 0 : (_original$searchData1 = original.searchData) === null || _original$searchData1 === void 0 ? void 0 : _original$searchData1.bookingNo
|
|
18325
|
+
});
|
|
18326
|
+
},
|
|
18327
|
+
style: {
|
|
18328
|
+
display: "inline-flex",
|
|
18329
|
+
alignItems: "center",
|
|
18330
|
+
gap: "4px",
|
|
18331
|
+
padding: "4px 10px",
|
|
18332
|
+
fontSize: "12px",
|
|
18333
|
+
fontWeight: "600",
|
|
18334
|
+
color: "#0B2559",
|
|
18335
|
+
background: "#EFF6FF",
|
|
18336
|
+
border: "1px solid #BFDBFE",
|
|
18337
|
+
borderRadius: "6px",
|
|
18338
|
+
cursor: "pointer",
|
|
18339
|
+
transition: "all 0.15s ease",
|
|
18340
|
+
whiteSpace: "nowrap"
|
|
18341
|
+
},
|
|
18342
|
+
onMouseEnter: e => {
|
|
18343
|
+
e.currentTarget.style.background = "#DBEAFE";
|
|
18344
|
+
e.currentTarget.style.borderColor = "#93C5FD";
|
|
18345
|
+
},
|
|
18346
|
+
onMouseLeave: e => {
|
|
18347
|
+
e.currentTarget.style.background = "#EFF6FF";
|
|
18348
|
+
e.currentTarget.style.borderColor = "#BFDBFE";
|
|
18349
|
+
}
|
|
18350
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
18351
|
+
width: "14",
|
|
18352
|
+
height: "14",
|
|
18353
|
+
viewBox: "0 0 24 24",
|
|
18354
|
+
fill: "none",
|
|
18355
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
18356
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18357
|
+
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z",
|
|
18358
|
+
fill: "currentColor"
|
|
18359
|
+
})), t("ES_COMMON_VIEW")), /*#__PURE__*/React__default.createElement("button", {
|
|
18360
|
+
type: "button",
|
|
18361
|
+
title: t("WT_DOWNLOAD_IMAGES"),
|
|
18362
|
+
onClick: () => {
|
|
18363
|
+
var _props$onDownloadImag, _original$searchData10;
|
|
18364
|
+
return (_props$onDownloadImag = props.onDownloadImage) === null || _props$onDownloadImag === void 0 ? void 0 : _props$onDownloadImag.call(props, {
|
|
18365
|
+
startFileStoreId,
|
|
18366
|
+
endFileStoreId,
|
|
18367
|
+
bookingNo: original === null || original === void 0 ? void 0 : (_original$searchData10 = original.searchData) === null || _original$searchData10 === void 0 ? void 0 : _original$searchData10.bookingNo
|
|
18368
|
+
});
|
|
18369
|
+
},
|
|
18370
|
+
style: {
|
|
18371
|
+
display: "inline-flex",
|
|
18372
|
+
alignItems: "center",
|
|
18373
|
+
gap: "4px",
|
|
18374
|
+
padding: "4px 10px",
|
|
18375
|
+
fontSize: "12px",
|
|
18376
|
+
fontWeight: "600",
|
|
18377
|
+
color: "#065F46",
|
|
18378
|
+
background: "#ECFDF5",
|
|
18379
|
+
border: "1px solid #A7F3D0",
|
|
18380
|
+
borderRadius: "6px",
|
|
18381
|
+
cursor: "pointer",
|
|
18382
|
+
transition: "all 0.15s ease",
|
|
18383
|
+
whiteSpace: "nowrap"
|
|
18384
|
+
},
|
|
18385
|
+
onMouseEnter: e => {
|
|
18386
|
+
e.currentTarget.style.background = "#D1FAE5";
|
|
18387
|
+
e.currentTarget.style.borderColor = "#6EE7B7";
|
|
18388
|
+
},
|
|
18389
|
+
onMouseLeave: e => {
|
|
18390
|
+
e.currentTarget.style.background = "#ECFDF5";
|
|
18391
|
+
e.currentTarget.style.borderColor = "#A7F3D0";
|
|
18392
|
+
}
|
|
18393
|
+
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
18394
|
+
width: "14",
|
|
18395
|
+
height: "14",
|
|
18396
|
+
viewBox: "0 0 24 24",
|
|
18397
|
+
fill: "none",
|
|
18398
|
+
xmlns: "http://www.w3.org/2000/svg"
|
|
18399
|
+
}, /*#__PURE__*/React__default.createElement("path", {
|
|
18400
|
+
d: "M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z",
|
|
18401
|
+
fill: "currentColor"
|
|
18402
|
+
})), t("CS_COMMON_DOWNLOAD")));
|
|
18403
|
+
},
|
|
18404
|
+
mobileCell: original => {
|
|
18405
|
+
const delivered = isDeliveredStatus(original);
|
|
18406
|
+
const _getTripReportFileIds2 = getTripReportFileIds(original),
|
|
18407
|
+
hasImages = _getTripReportFileIds2.hasImages;
|
|
18408
|
+
return GetMobCell(delivered && hasImages ? "📷" : "-");
|
|
18409
|
+
}
|
|
17934
18410
|
}] : [])],
|
|
17935
18411
|
serviceRequestIdKey: original => {
|
|
17936
18412
|
var _original$t, _original$t$props;
|
|
@@ -17942,12 +18418,12 @@ const TableConfig = t => ({
|
|
|
17942
18418
|
Header: t("MT_BOOKING_NO"),
|
|
17943
18419
|
id: "bookingNo",
|
|
17944
18420
|
accessor: row => {
|
|
17945
|
-
var _row$
|
|
17946
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18421
|
+
var _row$searchData1;
|
|
18422
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData1 = row.searchData) === null || _row$searchData1 === void 0 ? void 0 : _row$searchData1["bookingNo"]) || "";
|
|
17947
18423
|
},
|
|
17948
|
-
Cell:
|
|
18424
|
+
Cell: _ref1 => {
|
|
17949
18425
|
var _row$original10, _row$original10$searc, _row$original11, _row$original11$searc;
|
|
17950
|
-
let row =
|
|
18426
|
+
let row = _ref1.row;
|
|
17951
18427
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
|
|
17952
18428
|
className: "link"
|
|
17953
18429
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
@@ -17955,65 +18431,65 @@ const TableConfig = t => ({
|
|
|
17955
18431
|
}, (_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : (_row$original11$searc = _row$original11.searchData) === null || _row$original11$searc === void 0 ? void 0 : _row$original11$searc["bookingNo"])));
|
|
17956
18432
|
},
|
|
17957
18433
|
mobileCell: original => {
|
|
17958
|
-
var _original$
|
|
17959
|
-
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$
|
|
18434
|
+
var _original$searchData11;
|
|
18435
|
+
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$searchData11 = original.searchData) === null || _original$searchData11 === void 0 ? void 0 : _original$searchData11["bookingNo"]);
|
|
17960
18436
|
}
|
|
17961
18437
|
}, {
|
|
17962
18438
|
Header: t("MT_APPLICANT_NAME"),
|
|
17963
18439
|
id: "applicantName",
|
|
17964
18440
|
accessor: row => {
|
|
17965
|
-
var _row$
|
|
17966
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18441
|
+
var _row$searchData10, _row$searchData10$app;
|
|
18442
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData10 = row.searchData) === null || _row$searchData10 === void 0 ? void 0 : (_row$searchData10$app = _row$searchData10.applicantDetail) === null || _row$searchData10$app === void 0 ? void 0 : _row$searchData10$app["name"]) || "";
|
|
17967
18443
|
},
|
|
17968
18444
|
Cell: row => {
|
|
17969
18445
|
var _row$cell3, _row$cell3$row, _row$cell3$row$origin, _row$cell3$row$origin2, _row$cell3$row$origin3;
|
|
17970
18446
|
return GetCell("" + (row === null || row === void 0 ? void 0 : (_row$cell3 = row.cell) === null || _row$cell3 === void 0 ? void 0 : (_row$cell3$row = _row$cell3.row) === null || _row$cell3$row === void 0 ? void 0 : (_row$cell3$row$origin = _row$cell3$row.original) === null || _row$cell3$row$origin === void 0 ? void 0 : (_row$cell3$row$origin2 = _row$cell3$row$origin.searchData) === null || _row$cell3$row$origin2 === void 0 ? void 0 : (_row$cell3$row$origin3 = _row$cell3$row$origin2.applicantDetail) === null || _row$cell3$row$origin3 === void 0 ? void 0 : _row$cell3$row$origin3["name"]));
|
|
17971
18447
|
},
|
|
17972
18448
|
mobileCell: original => {
|
|
17973
|
-
var _original$
|
|
17974
|
-
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$
|
|
18449
|
+
var _original$searchData12, _original$searchData13;
|
|
18450
|
+
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$searchData12 = original.searchData) === null || _original$searchData12 === void 0 ? void 0 : (_original$searchData13 = _original$searchData12.applicantDetail) === null || _original$searchData13 === void 0 ? void 0 : _original$searchData13["name"]);
|
|
17975
18451
|
}
|
|
17976
18452
|
}, {
|
|
17977
18453
|
Header: t("MT_MOBILE_NUMBER"),
|
|
17978
18454
|
id: "mobileNumber",
|
|
17979
18455
|
accessor: row => {
|
|
17980
|
-
var _row$
|
|
17981
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18456
|
+
var _row$searchData11, _row$searchData11$app;
|
|
18457
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData11 = row.searchData) === null || _row$searchData11 === void 0 ? void 0 : (_row$searchData11$app = _row$searchData11.applicantDetail) === null || _row$searchData11$app === void 0 ? void 0 : _row$searchData11$app["mobileNumber"]) || "";
|
|
17982
18458
|
},
|
|
17983
18459
|
Cell: row => {
|
|
17984
18460
|
var _row$cell4, _row$cell4$row, _row$cell4$row$origin, _row$cell4$row$origin2, _row$cell4$row$origin3;
|
|
17985
18461
|
return GetCell("" + (row === null || row === void 0 ? void 0 : (_row$cell4 = row.cell) === null || _row$cell4 === void 0 ? void 0 : (_row$cell4$row = _row$cell4.row) === null || _row$cell4$row === void 0 ? void 0 : (_row$cell4$row$origin = _row$cell4$row.original) === null || _row$cell4$row$origin === void 0 ? void 0 : (_row$cell4$row$origin2 = _row$cell4$row$origin.searchData) === null || _row$cell4$row$origin2 === void 0 ? void 0 : (_row$cell4$row$origin3 = _row$cell4$row$origin2.applicantDetail) === null || _row$cell4$row$origin3 === void 0 ? void 0 : _row$cell4$row$origin3["mobileNumber"]));
|
|
17986
18462
|
},
|
|
17987
18463
|
mobileCell: original => {
|
|
17988
|
-
var _original$
|
|
17989
|
-
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$
|
|
18464
|
+
var _original$searchData14, _original$searchData15;
|
|
18465
|
+
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$searchData14 = original.searchData) === null || _original$searchData14 === void 0 ? void 0 : (_original$searchData15 = _original$searchData14.applicantDetail) === null || _original$searchData15 === void 0 ? void 0 : _original$searchData15["mobileNumber"]);
|
|
17990
18466
|
}
|
|
17991
18467
|
}, {
|
|
17992
18468
|
Header: t("LOCALITY"),
|
|
17993
18469
|
id: "localityCode",
|
|
17994
18470
|
accessor: row => {
|
|
17995
|
-
var _row$
|
|
17996
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18471
|
+
var _row$searchData12;
|
|
18472
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData12 = row.searchData) === null || _row$searchData12 === void 0 ? void 0 : _row$searchData12["localityCode"]) || "";
|
|
17997
18473
|
},
|
|
17998
|
-
Cell:
|
|
18474
|
+
Cell: _ref10 => {
|
|
17999
18475
|
var _row$original12, _row$original12$searc, _row$original13, _row$original13$searc;
|
|
18000
|
-
let row =
|
|
18476
|
+
let row = _ref10.row;
|
|
18001
18477
|
return GetCell(getLocalityTranslation((_row$original12 = row.original) === null || _row$original12 === void 0 ? void 0 : (_row$original12$searc = _row$original12.searchData) === null || _row$original12$searc === void 0 ? void 0 : _row$original12$searc["localityCode"], (_row$original13 = row.original) === null || _row$original13 === void 0 ? void 0 : (_row$original13$searc = _row$original13.searchData) === null || _row$original13$searc === void 0 ? void 0 : _row$original13$searc.tenantId, t));
|
|
18002
18478
|
},
|
|
18003
18479
|
mobileCell: original => {
|
|
18004
|
-
var _original$
|
|
18005
|
-
return GetMobCell(getLocalityTranslation(original === null || original === void 0 ? void 0 : (_original$
|
|
18480
|
+
var _original$searchData16, _original$searchData17;
|
|
18481
|
+
return GetMobCell(getLocalityTranslation(original === null || original === void 0 ? void 0 : (_original$searchData16 = original.searchData) === null || _original$searchData16 === void 0 ? void 0 : _original$searchData16["localityCode"], original === null || original === void 0 ? void 0 : (_original$searchData17 = original.searchData) === null || _original$searchData17 === void 0 ? void 0 : _original$searchData17.tenantId, t));
|
|
18006
18482
|
}
|
|
18007
18483
|
}, {
|
|
18008
18484
|
Header: t("MT_STATUS"),
|
|
18009
18485
|
id: "applicationStatus",
|
|
18010
18486
|
accessor: row => {
|
|
18011
|
-
var _row$
|
|
18012
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18487
|
+
var _row$workflowData4, _row$workflowData4$st;
|
|
18488
|
+
return (row === null || row === void 0 ? void 0 : (_row$workflowData4 = row.workflowData) === null || _row$workflowData4 === void 0 ? void 0 : (_row$workflowData4$st = _row$workflowData4.state) === null || _row$workflowData4$st === void 0 ? void 0 : _row$workflowData4$st["applicationStatus"]) || "";
|
|
18013
18489
|
},
|
|
18014
|
-
Cell:
|
|
18490
|
+
Cell: _ref11 => {
|
|
18015
18491
|
var _row$original15, _row$original15$workf, _row$original15$workf2;
|
|
18016
|
-
let row =
|
|
18492
|
+
let row = _ref11.row;
|
|
18017
18493
|
return GetCell(t("" + (row === null || row === void 0 ? void 0 : (_row$original15 = row.original) === null || _row$original15 === void 0 ? void 0 : (_row$original15$workf = _row$original15.workflowData) === null || _row$original15$workf === void 0 ? void 0 : (_row$original15$workf2 = _row$original15$workf.state) === null || _row$original15$workf2 === void 0 ? void 0 : _row$original15$workf2["applicationStatus"])));
|
|
18018
18494
|
},
|
|
18019
18495
|
mobileCell: original => {
|
|
@@ -18031,12 +18507,12 @@ const TableConfig = t => ({
|
|
|
18031
18507
|
Header: t("MT_BOOKING_NO"),
|
|
18032
18508
|
id: "bookingNo",
|
|
18033
18509
|
accessor: row => {
|
|
18034
|
-
var _row$
|
|
18035
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18510
|
+
var _row$searchData13;
|
|
18511
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData13 = row.searchData) === null || _row$searchData13 === void 0 ? void 0 : _row$searchData13["bookingNo"]) || "";
|
|
18036
18512
|
},
|
|
18037
|
-
Cell:
|
|
18513
|
+
Cell: _ref12 => {
|
|
18038
18514
|
var _row$original16, _row$original16$searc, _row$original17, _row$original17$searc;
|
|
18039
|
-
let row =
|
|
18515
|
+
let row = _ref12.row;
|
|
18040
18516
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
|
|
18041
18517
|
className: "link"
|
|
18042
18518
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
@@ -18044,65 +18520,65 @@ const TableConfig = t => ({
|
|
|
18044
18520
|
}, (_row$original17 = row.original) === null || _row$original17 === void 0 ? void 0 : (_row$original17$searc = _row$original17.searchData) === null || _row$original17$searc === void 0 ? void 0 : _row$original17$searc["bookingNo"])));
|
|
18045
18521
|
},
|
|
18046
18522
|
mobileCell: original => {
|
|
18047
|
-
var _original$
|
|
18048
|
-
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$
|
|
18523
|
+
var _original$searchData18;
|
|
18524
|
+
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$searchData18 = original.searchData) === null || _original$searchData18 === void 0 ? void 0 : _original$searchData18["bookingNo"]);
|
|
18049
18525
|
}
|
|
18050
18526
|
}, {
|
|
18051
18527
|
Header: t("MT_APPLICANT_NAME"),
|
|
18052
18528
|
id: "applicantName",
|
|
18053
18529
|
accessor: row => {
|
|
18054
|
-
var _row$
|
|
18055
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18530
|
+
var _row$searchData14, _row$searchData14$app;
|
|
18531
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData14 = row.searchData) === null || _row$searchData14 === void 0 ? void 0 : (_row$searchData14$app = _row$searchData14.applicantDetail) === null || _row$searchData14$app === void 0 ? void 0 : _row$searchData14$app["name"]) || "";
|
|
18056
18532
|
},
|
|
18057
18533
|
Cell: row => {
|
|
18058
18534
|
var _row$cell5, _row$cell5$row, _row$cell5$row$origin, _row$cell5$row$origin2, _row$cell5$row$origin3;
|
|
18059
18535
|
return GetCell("" + (row === null || row === void 0 ? void 0 : (_row$cell5 = row.cell) === null || _row$cell5 === void 0 ? void 0 : (_row$cell5$row = _row$cell5.row) === null || _row$cell5$row === void 0 ? void 0 : (_row$cell5$row$origin = _row$cell5$row.original) === null || _row$cell5$row$origin === void 0 ? void 0 : (_row$cell5$row$origin2 = _row$cell5$row$origin.searchData) === null || _row$cell5$row$origin2 === void 0 ? void 0 : (_row$cell5$row$origin3 = _row$cell5$row$origin2.applicantDetail) === null || _row$cell5$row$origin3 === void 0 ? void 0 : _row$cell5$row$origin3["name"]));
|
|
18060
18536
|
},
|
|
18061
18537
|
mobileCell: original => {
|
|
18062
|
-
var _original$
|
|
18063
|
-
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$
|
|
18538
|
+
var _original$searchData19, _original$searchData20;
|
|
18539
|
+
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$searchData19 = original.searchData) === null || _original$searchData19 === void 0 ? void 0 : (_original$searchData20 = _original$searchData19.applicantDetail) === null || _original$searchData20 === void 0 ? void 0 : _original$searchData20["name"]);
|
|
18064
18540
|
}
|
|
18065
18541
|
}, {
|
|
18066
18542
|
Header: t("MT_MOBILE_NUMBER"),
|
|
18067
18543
|
id: "mobileNumber",
|
|
18068
18544
|
accessor: row => {
|
|
18069
|
-
var _row$
|
|
18070
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18545
|
+
var _row$searchData15, _row$searchData15$app;
|
|
18546
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData15 = row.searchData) === null || _row$searchData15 === void 0 ? void 0 : (_row$searchData15$app = _row$searchData15.applicantDetail) === null || _row$searchData15$app === void 0 ? void 0 : _row$searchData15$app["mobileNumber"]) || "";
|
|
18071
18547
|
},
|
|
18072
18548
|
Cell: row => {
|
|
18073
18549
|
var _row$cell6, _row$cell6$row, _row$cell6$row$origin, _row$cell6$row$origin2, _row$cell6$row$origin3;
|
|
18074
18550
|
return GetCell("" + (row === null || row === void 0 ? void 0 : (_row$cell6 = row.cell) === null || _row$cell6 === void 0 ? void 0 : (_row$cell6$row = _row$cell6.row) === null || _row$cell6$row === void 0 ? void 0 : (_row$cell6$row$origin = _row$cell6$row.original) === null || _row$cell6$row$origin === void 0 ? void 0 : (_row$cell6$row$origin2 = _row$cell6$row$origin.searchData) === null || _row$cell6$row$origin2 === void 0 ? void 0 : (_row$cell6$row$origin3 = _row$cell6$row$origin2.applicantDetail) === null || _row$cell6$row$origin3 === void 0 ? void 0 : _row$cell6$row$origin3["mobileNumber"]));
|
|
18075
18551
|
},
|
|
18076
18552
|
mobileCell: original => {
|
|
18077
|
-
var _original$
|
|
18078
|
-
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$
|
|
18553
|
+
var _original$searchData21, _original$searchData22;
|
|
18554
|
+
return GetMobCell(original === null || original === void 0 ? void 0 : (_original$searchData21 = original.searchData) === null || _original$searchData21 === void 0 ? void 0 : (_original$searchData22 = _original$searchData21.applicantDetail) === null || _original$searchData22 === void 0 ? void 0 : _original$searchData22["mobileNumber"]);
|
|
18079
18555
|
}
|
|
18080
18556
|
}, {
|
|
18081
18557
|
Header: t("LOCALITY"),
|
|
18082
18558
|
id: "localityCode",
|
|
18083
18559
|
accessor: row => {
|
|
18084
|
-
var _row$
|
|
18085
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18560
|
+
var _row$searchData16;
|
|
18561
|
+
return (row === null || row === void 0 ? void 0 : (_row$searchData16 = row.searchData) === null || _row$searchData16 === void 0 ? void 0 : _row$searchData16["localityCode"]) || "";
|
|
18086
18562
|
},
|
|
18087
|
-
Cell:
|
|
18563
|
+
Cell: _ref13 => {
|
|
18088
18564
|
var _row$original18, _row$original18$searc, _row$original19, _row$original19$searc;
|
|
18089
|
-
let row =
|
|
18565
|
+
let row = _ref13.row;
|
|
18090
18566
|
return GetCell(getLocalityTranslation((_row$original18 = row.original) === null || _row$original18 === void 0 ? void 0 : (_row$original18$searc = _row$original18.searchData) === null || _row$original18$searc === void 0 ? void 0 : _row$original18$searc["localityCode"], (_row$original19 = row.original) === null || _row$original19 === void 0 ? void 0 : (_row$original19$searc = _row$original19.searchData) === null || _row$original19$searc === void 0 ? void 0 : _row$original19$searc.tenantId, t));
|
|
18091
18567
|
},
|
|
18092
18568
|
mobileCell: original => {
|
|
18093
|
-
var _original$
|
|
18094
|
-
return GetMobCell(getLocalityTranslation(original === null || original === void 0 ? void 0 : (_original$
|
|
18569
|
+
var _original$searchData23, _original$searchData24;
|
|
18570
|
+
return GetMobCell(getLocalityTranslation(original === null || original === void 0 ? void 0 : (_original$searchData23 = original.searchData) === null || _original$searchData23 === void 0 ? void 0 : _original$searchData23["localityCode"], original === null || original === void 0 ? void 0 : (_original$searchData24 = original.searchData) === null || _original$searchData24 === void 0 ? void 0 : _original$searchData24.tenantId, t));
|
|
18095
18571
|
}
|
|
18096
18572
|
}, {
|
|
18097
18573
|
Header: t("MT_STATUS"),
|
|
18098
18574
|
id: "applicationStatus",
|
|
18099
18575
|
accessor: row => {
|
|
18100
|
-
var _row$
|
|
18101
|
-
return (row === null || row === void 0 ? void 0 : (_row$
|
|
18576
|
+
var _row$workflowData5, _row$workflowData5$st;
|
|
18577
|
+
return (row === null || row === void 0 ? void 0 : (_row$workflowData5 = row.workflowData) === null || _row$workflowData5 === void 0 ? void 0 : (_row$workflowData5$st = _row$workflowData5.state) === null || _row$workflowData5$st === void 0 ? void 0 : _row$workflowData5$st["applicationStatus"]) || "";
|
|
18102
18578
|
},
|
|
18103
|
-
Cell:
|
|
18579
|
+
Cell: _ref14 => {
|
|
18104
18580
|
var _row$original21, _row$original21$workf, _row$original21$workf2;
|
|
18105
|
-
let row =
|
|
18581
|
+
let row = _ref14.row;
|
|
18106
18582
|
return GetCell(t("" + (row === null || row === void 0 ? void 0 : (_row$original21 = row.original) === null || _row$original21 === void 0 ? void 0 : (_row$original21$workf = _row$original21.workflowData) === null || _row$original21$workf === void 0 ? void 0 : (_row$original21$workf2 = _row$original21$workf.state) === null || _row$original21$workf2 === void 0 ? void 0 : _row$original21$workf2["applicationStatus"])));
|
|
18107
18583
|
},
|
|
18108
18584
|
mobileCell: original => {
|
|
@@ -19654,8 +20130,70 @@ const configWSApproverApplication = _ref => {
|
|
|
19654
20130
|
uploadedFile = _ref.uploadedFile,
|
|
19655
20131
|
setUploadedFile = _ref.setUploadedFile,
|
|
19656
20132
|
businessService = _ref.businessService,
|
|
19657
|
-
error = _ref.error
|
|
20133
|
+
error = _ref.error,
|
|
20134
|
+
isReasonRequiredAction = _ref.isReasonRequiredAction,
|
|
20135
|
+
selectedReason = _ref.selectedReason,
|
|
20136
|
+
setSelectedReason = _ref.setSelectedReason,
|
|
20137
|
+
otherReasonText = _ref.otherReasonText,
|
|
20138
|
+
setOtherReasonText = _ref.setOtherReasonText;
|
|
19658
20139
|
if (action !== null && action !== void 0 && (_action$action = action.action) !== null && _action$action !== void 0 && _action$action.includes("SEND_BACK") || (action === null || action === void 0 ? void 0 : action.action) == "APPROVE_FOR_CONNECTION") ;
|
|
20140
|
+
const reasonOptions = [{
|
|
20141
|
+
code: "INCOMPLETE_DOCUMENTS",
|
|
20142
|
+
name: "Incomplete / Incorrect Documents",
|
|
20143
|
+
i18nKey: "WS_MUTATION_REASON_INCOMPLETE_DOCUMENTS"
|
|
20144
|
+
}, {
|
|
20145
|
+
code: "MISMATCH_DETAILS",
|
|
20146
|
+
name: "Mismatch in Owner / Consumer Details",
|
|
20147
|
+
i18nKey: "WS_MUTATION_REASON_MISMATCH_DETAILS"
|
|
20148
|
+
}, {
|
|
20149
|
+
code: "INVALID_PROOF",
|
|
20150
|
+
name: "Invalid / Unverified Proof Provided",
|
|
20151
|
+
i18nKey: "WS_MUTATION_REASON_INVALID_PROOF"
|
|
20152
|
+
}, {
|
|
20153
|
+
code: "OTHER",
|
|
20154
|
+
name: "Other",
|
|
20155
|
+
i18nKey: "WS_MUTATION_REASON_OTHER"
|
|
20156
|
+
}];
|
|
20157
|
+
const commentsField = isReasonRequiredAction ? [{
|
|
20158
|
+
label: t("WF_REASON_LABEL") || t("Reason"),
|
|
20159
|
+
isMandatory: true,
|
|
20160
|
+
populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
20161
|
+
option: reasonOptions,
|
|
20162
|
+
autoComplete: "off",
|
|
20163
|
+
optionKey: "name",
|
|
20164
|
+
id: "mutationActionReason",
|
|
20165
|
+
select: val => {
|
|
20166
|
+
setSelectedReason(val);
|
|
20167
|
+
if ((val === null || val === void 0 ? void 0 : val.code) !== "OTHER") {
|
|
20168
|
+
setOtherReasonText("");
|
|
20169
|
+
}
|
|
20170
|
+
},
|
|
20171
|
+
selected: selectedReason,
|
|
20172
|
+
t: t,
|
|
20173
|
+
placeholder: t("WF_SELECT_REASON_PLACEHOLDER") || "Select Reason"
|
|
20174
|
+
})
|
|
20175
|
+
}, ...((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER" ? [{
|
|
20176
|
+
label: t("WF_OTHER_REASON_LABEL") || t("Please specify reason"),
|
|
20177
|
+
isMandatory: true,
|
|
20178
|
+
populators: /*#__PURE__*/React__default.createElement("textarea", {
|
|
20179
|
+
className: "employee-card-input",
|
|
20180
|
+
style: {
|
|
20181
|
+
width: "100%",
|
|
20182
|
+
height: "80px",
|
|
20183
|
+
resize: "vertical",
|
|
20184
|
+
marginTop: "4px"
|
|
20185
|
+
},
|
|
20186
|
+
value: otherReasonText,
|
|
20187
|
+
onChange: e => setOtherReasonText(e.target.value),
|
|
20188
|
+
placeholder: t("WF_ENTER_OTHER_REASON_PLACEHOLDER") || "Enter reason details..."
|
|
20189
|
+
})
|
|
20190
|
+
}] : [])] : [{
|
|
20191
|
+
label: t("WF_COMMON_COMMENTS"),
|
|
20192
|
+
type: "textarea",
|
|
20193
|
+
populators: {
|
|
20194
|
+
name: "comments"
|
|
20195
|
+
}
|
|
20196
|
+
}];
|
|
19659
20197
|
return {
|
|
19660
20198
|
label: {
|
|
19661
20199
|
heading: "WF_" + (action === null || action === void 0 ? void 0 : action.action) + "_APPLICATION",
|
|
@@ -19663,13 +20201,7 @@ const configWSApproverApplication = _ref => {
|
|
|
19663
20201
|
cancel: "CS_COMMON_CANCEL"
|
|
19664
20202
|
},
|
|
19665
20203
|
form: [{
|
|
19666
|
-
body: [{
|
|
19667
|
-
label: t("WF_COMMON_COMMENTS"),
|
|
19668
|
-
type: "textarea",
|
|
19669
|
-
populators: {
|
|
19670
|
-
name: "comments"
|
|
19671
|
-
}
|
|
19672
|
-
}, {
|
|
20204
|
+
body: [...commentsField, {
|
|
19673
20205
|
label: t("WS_APPROVAL_CHECKLIST_BUTTON_UP_FILE"),
|
|
19674
20206
|
populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
|
|
19675
20207
|
id: "workflow-doc",
|
|
@@ -21929,7 +22461,7 @@ const convertDateToEpochNew = function (dateString, dayStartOrEnd) {
|
|
|
21929
22461
|
}
|
|
21930
22462
|
};
|
|
21931
22463
|
const ActionModal$5 = _ref => {
|
|
21932
|
-
var _action$assigneeRoles, _action$assigneeRoles2;
|
|
22464
|
+
var _action$assigneeRoles, _action$assigneeRoles2, _applicationData, _applicationData$appl, _applicationData2, _applicationData2$bus, _applicationData3, _applicationData3$app, _action$action, _action$action2;
|
|
21933
22465
|
let t = _ref.t,
|
|
21934
22466
|
action = _ref.action,
|
|
21935
22467
|
tenantId = _ref.tenantId,
|
|
@@ -21971,6 +22503,14 @@ const ActionModal$5 = _ref => {
|
|
|
21971
22503
|
const _useState7 = React.useState(null),
|
|
21972
22504
|
error = _useState7[0],
|
|
21973
22505
|
setError = _useState7[1];
|
|
22506
|
+
const _useState8 = React.useState(null),
|
|
22507
|
+
selectedReason = _useState8[0],
|
|
22508
|
+
setSelectedReason = _useState8[1];
|
|
22509
|
+
const _useState9 = React.useState(""),
|
|
22510
|
+
otherReasonText = _useState9[0],
|
|
22511
|
+
setOtherReasonText = _useState9[1];
|
|
22512
|
+
const isMutationApp = ((_applicationData = applicationData) === null || _applicationData === void 0 ? void 0 : (_applicationData$appl = _applicationData.applicationType) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.includes("MUTATION")) || ((_applicationData2 = applicationData) === null || _applicationData2 === void 0 ? void 0 : (_applicationData2$bus = _applicationData2.businessService) === null || _applicationData2$bus === void 0 ? void 0 : _applicationData2$bus.includes("MUTATION")) || (businessService === null || businessService === void 0 ? void 0 : businessService.includes("MUTATION")) || ((_applicationData3 = applicationData) === null || _applicationData3 === void 0 ? void 0 : (_applicationData3$app = _applicationData3.applicationNo) === null || _applicationData3$app === void 0 ? void 0 : _applicationData3$app.includes("MUT"));
|
|
22513
|
+
const isReasonRequiredAction = isMutationApp && ((action === null || action === void 0 ? void 0 : (_action$action = action.action) === null || _action$action === void 0 ? void 0 : _action$action.includes("SEND_BACK")) || (action === null || action === void 0 ? void 0 : (_action$action2 = action.action) === null || _action$action2 === void 0 ? void 0 : _action$action2.includes("REJECT")));
|
|
21974
22514
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
21975
22515
|
const isEmployee = window.location.href.includes("/employee");
|
|
21976
22516
|
React.useEffect(() => {
|
|
@@ -22031,24 +22571,40 @@ const ActionModal$5 = _ref => {
|
|
|
22031
22571
|
})();
|
|
22032
22572
|
}, [file]);
|
|
22033
22573
|
function submit(data) {
|
|
22034
|
-
var
|
|
22035
|
-
|
|
22036
|
-
|
|
22037
|
-
|
|
22038
|
-
|
|
22574
|
+
var _applicationData4, _applicationData0, _applicationData1, _applicationData1$app, _applicationData10, _applicationData10$pr, _applicationData11, _applicationData11$pr, _applicationData13, _applicationData14;
|
|
22575
|
+
let commentValue = (data === null || data === void 0 ? void 0 : data.comments) || "";
|
|
22576
|
+
if (isReasonRequiredAction) {
|
|
22577
|
+
if (!selectedReason) {
|
|
22578
|
+
setError(t("PLEASE_SELECT_REASON") || "Please select a reason");
|
|
22579
|
+
return;
|
|
22580
|
+
}
|
|
22581
|
+
if ((selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code) === "OTHER") {
|
|
22582
|
+
if (!otherReasonText || otherReasonText.trim() === "") {
|
|
22583
|
+
setError(t("PLEASE_ENTER_REASON") || "Please enter the reason");
|
|
22584
|
+
return;
|
|
22585
|
+
}
|
|
22586
|
+
commentValue = otherReasonText.trim();
|
|
22587
|
+
} else {
|
|
22588
|
+
commentValue = (selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.name) || (selectedReason !== null && selectedReason !== void 0 && selectedReason.i18nKey ? t(selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.i18nKey) : selectedReason === null || selectedReason === void 0 ? void 0 : selectedReason.code);
|
|
22589
|
+
}
|
|
22590
|
+
}
|
|
22591
|
+
if ((_applicationData4 = applicationData) !== null && _applicationData4 !== void 0 && _applicationData4.isBillAmend) {
|
|
22592
|
+
var _applicationData5, _applicationData5$bil, _applicationData6, _applicationData7, _applicationData7$bil, _applicationData8, _applicationData8$app, _applicationData9, _applicationData9$app;
|
|
22593
|
+
const comments = commentValue || (data !== null && data !== void 0 && data.comments ? data.comments : null);
|
|
22594
|
+
const additionalDetails = _extends({}, (_applicationData5 = applicationData) === null || _applicationData5 === void 0 ? void 0 : (_applicationData5$bil = _applicationData5.billAmendmentDetails) === null || _applicationData5$bil === void 0 ? void 0 : _applicationData5$bil.additionalDetails, {
|
|
22039
22595
|
comments
|
|
22040
22596
|
});
|
|
22041
|
-
const amendment = _extends({}, (
|
|
22597
|
+
const amendment = _extends({}, (_applicationData6 = applicationData) === null || _applicationData6 === void 0 ? void 0 : _applicationData6.billAmendmentDetails, {
|
|
22042
22598
|
workflow: {
|
|
22043
|
-
businessId: (
|
|
22599
|
+
businessId: (_applicationData7 = applicationData) === null || _applicationData7 === void 0 ? void 0 : (_applicationData7$bil = _applicationData7.billAmendmentDetails) === null || _applicationData7$bil === void 0 ? void 0 : _applicationData7$bil.amendmentId,
|
|
22044
22600
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
22045
22601
|
tenantId: tenantId,
|
|
22046
|
-
businessService: (
|
|
22047
|
-
moduleName: (
|
|
22602
|
+
businessService: (_applicationData8 = applicationData) !== null && _applicationData8 !== void 0 && (_applicationData8$app = _applicationData8.applicationType) !== null && _applicationData8$app !== void 0 && _applicationData8$app.includes("WATER") ? "WS.AMENDMENT" : "SW.AMENDMENT",
|
|
22603
|
+
moduleName: (_applicationData9 = applicationData) !== null && _applicationData9 !== void 0 && (_applicationData9$app = _applicationData9.applicationType) !== null && _applicationData9$app !== void 0 && _applicationData9$app.includes("WATER") ? "WS" : "SW",
|
|
22048
22604
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
22049
22605
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
22050
22606
|
}],
|
|
22051
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
22607
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
22052
22608
|
documents: uploadedFile ? [{
|
|
22053
22609
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
22054
22610
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -22056,7 +22612,7 @@ const ActionModal$5 = _ref => {
|
|
|
22056
22612
|
}] : []
|
|
22057
22613
|
},
|
|
22058
22614
|
additionalDetails,
|
|
22059
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
22615
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
22060
22616
|
wfDocuments: uploadedFile ? [{
|
|
22061
22617
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
22062
22618
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -22067,7 +22623,7 @@ const ActionModal$5 = _ref => {
|
|
|
22067
22623
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
22068
22624
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
22069
22625
|
}],
|
|
22070
|
-
comment: (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
22626
|
+
comment: commentValue || (data === null || data === void 0 ? void 0 : data.comments) || "",
|
|
22071
22627
|
documents: uploadedFile ? [{
|
|
22072
22628
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
22073
22629
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -22082,7 +22638,7 @@ const ActionModal$5 = _ref => {
|
|
|
22082
22638
|
}
|
|
22083
22639
|
applicationData = _extends({}, applicationData, {
|
|
22084
22640
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
22085
|
-
comment:
|
|
22641
|
+
comment: commentValue,
|
|
22086
22642
|
assignee: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid],
|
|
22087
22643
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
22088
22644
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
@@ -22092,12 +22648,12 @@ const ActionModal$5 = _ref => {
|
|
|
22092
22648
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
22093
22649
|
fileStoreId: uploadedFile
|
|
22094
22650
|
}] : null,
|
|
22095
|
-
processInstance: _extends({}, (
|
|
22651
|
+
processInstance: _extends({}, (_applicationData0 = applicationData) === null || _applicationData0 === void 0 ? void 0 : _applicationData0.processInstance, {
|
|
22096
22652
|
action: action === null || action === void 0 ? void 0 : action.action,
|
|
22097
22653
|
assignes: !(selectedApprover !== null && selectedApprover !== void 0 && selectedApprover.uuid) ? [] : [{
|
|
22098
22654
|
uuid: selectedApprover === null || selectedApprover === void 0 ? void 0 : selectedApprover.uuid
|
|
22099
22655
|
}],
|
|
22100
|
-
comment:
|
|
22656
|
+
comment: commentValue,
|
|
22101
22657
|
documents: uploadedFile ? [{
|
|
22102
22658
|
documentType: (action === null || action === void 0 ? void 0 : action.action) + " DOC",
|
|
22103
22659
|
fileName: file === null || file === void 0 ? void 0 : file.name,
|
|
@@ -22105,36 +22661,36 @@ const ActionModal$5 = _ref => {
|
|
|
22105
22661
|
}] : []
|
|
22106
22662
|
})
|
|
22107
22663
|
});
|
|
22108
|
-
if (data !== null && data !== void 0 && data.date && (
|
|
22664
|
+
if (data !== null && data !== void 0 && data.date && (_applicationData1 = applicationData) !== null && _applicationData1 !== void 0 && (_applicationData1$app = _applicationData1.applicationType) !== null && _applicationData1$app !== void 0 && _applicationData1$app.includes("DISCONNECT")) {
|
|
22109
22665
|
const disconnectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
22110
22666
|
applicationData.disconnectionExecutionDate = convertDateToEpochNew(disconnectionExecutionDate);
|
|
22111
22667
|
} else if (data !== null && data !== void 0 && data.date) {
|
|
22112
22668
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
22113
22669
|
applicationData.connectionExecutionDate = convertDateToEpochNew(connectionExecutionDate);
|
|
22114
22670
|
}
|
|
22115
|
-
if (((
|
|
22116
|
-
var
|
|
22117
|
-
((
|
|
22671
|
+
if (((_applicationData10 = applicationData) === null || _applicationData10 === void 0 ? void 0 : (_applicationData10$pr = _applicationData10.processInstance) === null || _applicationData10$pr === void 0 ? void 0 : _applicationData10$pr.businessService) == "DisconnectWSConnection" || ((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : (_applicationData11$pr = _applicationData11.processInstance) === null || _applicationData11$pr === void 0 ? void 0 : _applicationData11$pr.businessService) == "DisconnectSWConnection" || window.location.href.includes("disconnection")) {
|
|
22672
|
+
var _applicationData12;
|
|
22673
|
+
((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : _applicationData12.serviceType) == "WATER" ? submitAction({
|
|
22118
22674
|
WaterConnection: applicationData,
|
|
22119
22675
|
disconnectRequest: true
|
|
22120
22676
|
}) : submitAction({
|
|
22121
22677
|
SewerageConnection: applicationData,
|
|
22122
22678
|
disconnectRequest: true
|
|
22123
22679
|
});
|
|
22124
|
-
} else if (((
|
|
22680
|
+
} else if (((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
22125
22681
|
submitAction({
|
|
22126
22682
|
SewerageConnection: applicationData,
|
|
22127
22683
|
disconnectRequest: false,
|
|
22128
22684
|
reconnectRequest: true
|
|
22129
22685
|
});
|
|
22130
|
-
} else if (((
|
|
22686
|
+
} else if (((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.applicationType) == "WATER_RECONNECTION") {
|
|
22131
22687
|
submitAction({
|
|
22132
22688
|
WaterConnection: applicationData,
|
|
22133
22689
|
disconnectRequest: false,
|
|
22134
22690
|
reconnectRequest: true
|
|
22135
22691
|
});
|
|
22136
22692
|
} else {
|
|
22137
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10,
|
|
22693
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData15;
|
|
22138
22694
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
22139
22695
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
22140
22696
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat !== void 0 && _parsedAdhocRebateDat.adhocPenalty) applicationData.additionalDetails.adhocPenalty = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat2 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat2 === void 0 ? void 0 : _parsedAdhocRebateDat2.adhocPenalty) || "";
|
|
@@ -22143,7 +22699,7 @@ const ActionModal$5 = _ref => {
|
|
|
22143
22699
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
|
|
22144
22700
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat0 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat0 === void 0 ? void 0 : _parsedAdhocRebateDat0.adhocRebateComment) || "";
|
|
22145
22701
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat1 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat1 !== void 0 && _parsedAdhocRebateDat1.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateReason) || "";
|
|
22146
|
-
((
|
|
22702
|
+
((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : _applicationData15.serviceType) == "WATER" ? submitAction({
|
|
22147
22703
|
WaterConnection: applicationData,
|
|
22148
22704
|
disconnectRequest: false,
|
|
22149
22705
|
reconnectRequest: false
|
|
@@ -22155,8 +22711,8 @@ const ActionModal$5 = _ref => {
|
|
|
22155
22711
|
}
|
|
22156
22712
|
}
|
|
22157
22713
|
React.useEffect(() => {
|
|
22158
|
-
var
|
|
22159
|
-
if (((
|
|
22714
|
+
var _applicationData16, _applicationData16$pr, _applicationData17, _applicationData17$pr;
|
|
22715
|
+
if (((_applicationData16 = applicationData) === null || _applicationData16 === void 0 ? void 0 : (_applicationData16$pr = _applicationData16.processInstance) === null || _applicationData16$pr === void 0 ? void 0 : _applicationData16$pr.businessService) == "DisconnectWSConnection" || ((_applicationData17 = applicationData) === null || _applicationData17 === void 0 ? void 0 : (_applicationData17$pr = _applicationData17.processInstance) === null || _applicationData17$pr === void 0 ? void 0 : _applicationData17$pr.businessService) == "DisconnectSWConnection") {
|
|
22160
22716
|
if (action) {
|
|
22161
22717
|
setConfig(configWSDisConnectApplication({
|
|
22162
22718
|
t,
|
|
@@ -22183,11 +22739,16 @@ const ActionModal$5 = _ref => {
|
|
|
22183
22739
|
uploadedFile,
|
|
22184
22740
|
setUploadedFile,
|
|
22185
22741
|
businessService,
|
|
22186
|
-
error
|
|
22742
|
+
error,
|
|
22743
|
+
isReasonRequiredAction,
|
|
22744
|
+
selectedReason,
|
|
22745
|
+
setSelectedReason,
|
|
22746
|
+
otherReasonText,
|
|
22747
|
+
setOtherReasonText
|
|
22187
22748
|
}));
|
|
22188
22749
|
}
|
|
22189
22750
|
}
|
|
22190
|
-
}, [action, approvers, uploadedFile, error]);
|
|
22751
|
+
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText]);
|
|
22191
22752
|
return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
22192
22753
|
headerBarMain: /*#__PURE__*/React__default.createElement(Heading$6, {
|
|
22193
22754
|
label: t(config.label.heading)
|
|
@@ -22204,7 +22765,13 @@ const ActionModal$5 = _ref => {
|
|
|
22204
22765
|
width: "100%",
|
|
22205
22766
|
height: "auto"
|
|
22206
22767
|
} : {}
|
|
22207
|
-
}, PTALoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
22768
|
+
}, PTALoading ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
22769
|
+
style: {
|
|
22770
|
+
marginBottom: "12px",
|
|
22771
|
+
marginLeft: "12px",
|
|
22772
|
+
marginRight: "12px"
|
|
22773
|
+
}
|
|
22774
|
+
}, error), /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormComposer, {
|
|
22208
22775
|
config: config.form,
|
|
22209
22776
|
noBoxShadow: true,
|
|
22210
22777
|
inline: true,
|
|
@@ -22216,7 +22783,7 @@ const ActionModal$5 = _ref => {
|
|
|
22216
22783
|
cardFormWrapperClassName: cardFormWrapperClassName,
|
|
22217
22784
|
cardClassName: cardClassName,
|
|
22218
22785
|
formClassName: formClassName
|
|
22219
|
-
})) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
22786
|
+
}))) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
22220
22787
|
};
|
|
22221
22788
|
|
|
22222
22789
|
const Heading$7 = props => {
|
|
@@ -24248,9 +24815,9 @@ function PropertyDocuments(_ref) {
|
|
|
24248
24815
|
var _document$values;
|
|
24249
24816
|
document === null || document === void 0 ? void 0 : (_document$values = document.values) === null || _document$values === void 0 ? void 0 : _document$values.forEach(value => {
|
|
24250
24817
|
if (!value.isPhoto) {
|
|
24251
|
-
var _ref2, _checkedMap$value$
|
|
24818
|
+
var _ref2, _checkedMap$value$fil, _value$originalDoc;
|
|
24252
24819
|
requiredDocsCount++;
|
|
24253
|
-
const isChecked = (_ref2 = (_checkedMap$value$
|
|
24820
|
+
const isChecked = (_ref2 = (_checkedMap$value$fil = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil : value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.isVerified) != null ? _ref2 : false;
|
|
24254
24821
|
if (isChecked) {
|
|
24255
24822
|
checkedCount++;
|
|
24256
24823
|
}
|
|
@@ -24258,7 +24825,7 @@ function PropertyDocuments(_ref) {
|
|
|
24258
24825
|
});
|
|
24259
24826
|
});
|
|
24260
24827
|
const allChecked = requiredDocsCount === 0 || checkedCount === requiredDocsCount;
|
|
24261
|
-
const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION";
|
|
24828
|
+
const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION" || applicationStatus === "PENDING_APPROVAL_FOR_MUTATION";
|
|
24262
24829
|
const finalVerified = isDocVerifState ? allChecked : true;
|
|
24263
24830
|
window.isDocumentsVerified = finalVerified;
|
|
24264
24831
|
window.dispatchEvent(new CustomEvent("DOCUMENTS_VERIFIED", {
|
|
@@ -24494,7 +25061,7 @@ function PropertyDocuments(_ref) {
|
|
|
24494
25061
|
style: {
|
|
24495
25062
|
cursor: "pointer"
|
|
24496
25063
|
}
|
|
24497
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$
|
|
25064
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), !isPhoto && ((_ref3, _checkedMap$value$fil2, _value$originalDoc2, _value$originalDoc3, _ref4, _checkedMap$value$fil3, _value$originalDoc4) => {
|
|
24498
25065
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
24499
25066
|
onClick: () => {
|
|
24500
25067
|
if (fileUrl) {
|
|
@@ -24536,26 +25103,25 @@ function PropertyDocuments(_ref) {
|
|
|
24536
25103
|
margin: 0
|
|
24537
25104
|
}
|
|
24538
25105
|
}, /*#__PURE__*/React__default.createElement("input", {
|
|
24539
|
-
key: "chk-" + (value === null || value === void 0 ? void 0 :
|
|
25106
|
+
key: "chk-" + (value === null || value === void 0 ? void 0 : value.fileStoreId) + "-" + (value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified),
|
|
24540
25107
|
type: "checkbox",
|
|
24541
25108
|
className: "verify-doc-checkbox",
|
|
24542
25109
|
style: {
|
|
24543
25110
|
width: "18px",
|
|
24544
25111
|
height: "18px",
|
|
24545
25112
|
accentColor: "#F47738",
|
|
24546
|
-
cursor: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" ? "not-allowed" : "pointer"
|
|
25113
|
+
cursor: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" ? "not-allowed" : "pointer"
|
|
24547
25114
|
},
|
|
24548
|
-
disabled: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION",
|
|
24549
|
-
|
|
25115
|
+
disabled: applicationStatus && applicationStatus !== "PENDING_FOR_DOCUMENT_VERIFICATION" && applicationStatus !== "PENDING_APPROVAL_FOR_MUTATION" && applicationStatus !== "ACTIVATE_MUTATION",
|
|
25116
|
+
checked: applicationStatus === "PENDING_FOR_MUTATION_ACTIVATION" || ((_ref4 = (_checkedMap$value$fil3 = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil3 : value === null || value === void 0 ? void 0 : (_value$originalDoc4 = value.originalDoc) === null || _value$originalDoc4 === void 0 ? void 0 : _value$originalDoc4.isVerified) != null ? _ref4 : false),
|
|
24550
25117
|
onChange: e => {
|
|
24551
|
-
var _value$originalDoc8;
|
|
24552
25118
|
const checked = e.target.checked;
|
|
24553
25119
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
24554
25120
|
value.originalDoc.isVerified = checked;
|
|
24555
25121
|
}
|
|
24556
|
-
if (value !== null && value !== void 0 &&
|
|
25122
|
+
if (value !== null && value !== void 0 && value.fileStoreId) {
|
|
24557
25123
|
setCheckedMap(prev => _extends({}, prev, {
|
|
24558
|
-
[value.
|
|
25124
|
+
[value.fileStoreId]: checked
|
|
24559
25125
|
}));
|
|
24560
25126
|
}
|
|
24561
25127
|
}
|
|
@@ -25338,7 +25904,7 @@ const Rebate_menu = [{
|
|
|
25338
25904
|
value: "Others"
|
|
25339
25905
|
}];
|
|
25340
25906
|
const WSFeeEstimation = _ref => {
|
|
25341
|
-
var _wsAdditionalDetails$,
|
|
25907
|
+
var _wsAdditionalDetails$, _fields$adhocPenaltyR, _fields$adhocRebateRe;
|
|
25342
25908
|
let wsAdditionalDetails = _ref.wsAdditionalDetails;
|
|
25343
25909
|
const _useTranslation = reactI18next.useTranslation(),
|
|
25344
25910
|
t = _useTranslation.t;
|
|
@@ -25369,23 +25935,23 @@ const WSFeeEstimation = _ref => {
|
|
|
25369
25935
|
var _wsAdditionalDetails$2, _wsAdditionalDetails$3, _sessionFormData$bill;
|
|
25370
25936
|
const data = _extends({}, wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : _wsAdditionalDetails$3.additionalDetails);
|
|
25371
25937
|
if ((sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill = sessionFormData.billDetails) === null || _sessionFormData$bill === void 0 ? void 0 : _sessionFormData$bill.length) > 0) {
|
|
25372
|
-
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0;
|
|
25373
|
-
const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || [];
|
|
25938
|
+
var _sessionFormData$bill2, _sessionFormData$bill3, _sessionFormData$bill4, _sessionFormData$bill5, _sessionFormData$bill6, _sessionFormData$bill7, _sessionFormData$bill8, _sessionFormData$bill9, _sessionFormData$bill0, _sessionFormData$bill1, _sessionFormData$bill10;
|
|
25939
|
+
const billAccountDetails = (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill2 = sessionFormData.billDetails) === null || _sessionFormData$bill2 === void 0 ? void 0 : (_sessionFormData$bill3 = _sessionFormData$bill2[0]) === null || _sessionFormData$bill3 === void 0 ? void 0 : _sessionFormData$bill3.billAccountDetails) || (sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill4 = sessionFormData.billDetails) === null || _sessionFormData$bill4 === void 0 ? void 0 : (_sessionFormData$bill5 = _sessionFormData$bill4[0]) === null || _sessionFormData$bill5 === void 0 ? void 0 : _sessionFormData$bill5.taxHeadEstimates) || [];
|
|
25374
25940
|
const values = billAccountDetails.length > 0 ? billAccountDetails.map(bill => ({
|
|
25375
25941
|
title: bill === null || bill === void 0 ? void 0 : bill.taxHeadCode,
|
|
25376
25942
|
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", Number(bill === null || bill === void 0 ? void 0 : bill.amount).toFixed(2))
|
|
25377
25943
|
})) : [{
|
|
25378
25944
|
title: "WS_APPLICATION_FEE_HEADER",
|
|
25379
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
25945
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill6 = sessionFormData.billDetails) === null || _sessionFormData$bill6 === void 0 ? void 0 : (_sessionFormData$bill7 = _sessionFormData$bill6[0]) === null || _sessionFormData$bill7 === void 0 ? void 0 : _sessionFormData$bill7.fee)
|
|
25380
25946
|
}, {
|
|
25381
25947
|
title: "WS_SERVICE_FEE_HEADER",
|
|
25382
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
25948
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill8 = sessionFormData.billDetails) === null || _sessionFormData$bill8 === void 0 ? void 0 : (_sessionFormData$bill9 = _sessionFormData$bill8[0]) === null || _sessionFormData$bill9 === void 0 ? void 0 : _sessionFormData$bill9.charge)
|
|
25383
25949
|
}, {
|
|
25384
25950
|
title: "WS_TAX_HEADER",
|
|
25385
|
-
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
25951
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9", sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill0 = sessionFormData.billDetails) === null || _sessionFormData$bill0 === void 0 ? void 0 : (_sessionFormData$bill1 = _sessionFormData$bill0[0]) === null || _sessionFormData$bill1 === void 0 ? void 0 : _sessionFormData$bill1.taxAmount)
|
|
25386
25952
|
}];
|
|
25387
25953
|
setValues(values);
|
|
25388
|
-
setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$
|
|
25954
|
+
setBillDetails(sessionFormData === null || sessionFormData === void 0 ? void 0 : (_sessionFormData$bill10 = sessionFormData.billDetails) === null || _sessionFormData$bill10 === void 0 ? void 0 : _sessionFormData$bill10[0]);
|
|
25389
25955
|
} else {
|
|
25390
25956
|
setSessionFormData(data);
|
|
25391
25957
|
setFields(data);
|
|
@@ -25555,17 +26121,7 @@ const WSFeeEstimation = _ref => {
|
|
|
25555
26121
|
} : {
|
|
25556
26122
|
color: "#2E9E8F"
|
|
25557
26123
|
}
|
|
25558
|
-
}))),
|
|
25559
|
-
onClick: e => {
|
|
25560
|
-
showPopUp(true);
|
|
25561
|
-
}
|
|
25562
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
25563
|
-
className: "add-details-link hover-button",
|
|
25564
|
-
style: {
|
|
25565
|
-
cursor: "pointer",
|
|
25566
|
-
color: "#a82227"
|
|
25567
|
-
}
|
|
25568
|
-
}, t("WS_PAYMENT_ADD_REBATE_PENALTY"))) : null, popup && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
26124
|
+
}))), popup && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
25569
26125
|
headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
|
|
25570
26126
|
label: t("PT_ADD_REBATE_PENALITY")
|
|
25571
26127
|
}),
|
|
@@ -25847,7 +26403,7 @@ const ViewBreakup = _ref => {
|
|
|
25847
26403
|
}
|
|
25848
26404
|
return rows.map(row => ({
|
|
25849
26405
|
title: t(row === null || row === void 0 ? void 0 : row.taxHeadCode),
|
|
25850
|
-
value: "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount)
|
|
26406
|
+
value: /*#__PURE__*/React__default.createElement("span", null, "\u20B9" + formatNumber(row === null || row === void 0 ? void 0 : row.amount))
|
|
25851
26407
|
}));
|
|
25852
26408
|
};
|
|
25853
26409
|
const connectionHolder = wsAdditionalDetails === null || wsAdditionalDetails === void 0 ? void 0 : (_wsAdditionalDetails$2 = wsAdditionalDetails.additionalDetails) === null || _wsAdditionalDetails$2 === void 0 ? void 0 : (_wsAdditionalDetails$3 = _wsAdditionalDetails$2.appDetails) === null || _wsAdditionalDetails$3 === void 0 ? void 0 : (_wsAdditionalDetails$4 = _wsAdditionalDetails$3.connectionHolders) === null || _wsAdditionalDetails$4 === void 0 ? void 0 : _wsAdditionalDetails$4[0];
|
|
@@ -26049,7 +26605,7 @@ const ViewBreakup = _ref => {
|
|
|
26049
26605
|
label: "Sewer Infra Charges",
|
|
26050
26606
|
value: infrastructureChargeDetail.sewerComponentIFC,
|
|
26051
26607
|
currency: true
|
|
26052
|
-
}, {
|
|
26608
|
+
}, ...(infrastructureChargeDetail.rebateAmount > 0 ? [{
|
|
26053
26609
|
label: "Rebate",
|
|
26054
26610
|
value: infrastructureChargeDetail.rebatePercentage,
|
|
26055
26611
|
unit: "%"
|
|
@@ -26057,7 +26613,31 @@ const ViewBreakup = _ref => {
|
|
|
26057
26613
|
label: "Rebate amount",
|
|
26058
26614
|
value: infrastructureChargeDetail.rebateAmount,
|
|
26059
26615
|
currency: true
|
|
26616
|
+
}] : []), ...(infrastructureChargeDetail.institutionalRebateApplied ? [{
|
|
26617
|
+
label: "Institutional rebate",
|
|
26618
|
+
value: infrastructureChargeDetail.institutionalRebatePercentage,
|
|
26619
|
+
unit: "%"
|
|
26620
|
+
}, {
|
|
26621
|
+
label: "Institutional rebate amount",
|
|
26622
|
+
value: infrastructureChargeDetail.institutionalRebateAmount,
|
|
26623
|
+
currency: true
|
|
26624
|
+
}, {
|
|
26625
|
+
label: "Institutional rebate reason",
|
|
26626
|
+
value: t(infrastructureChargeDetail.institutionalRebateReason),
|
|
26627
|
+
isText: true
|
|
26628
|
+
}] : []), ...(infrastructureChargeDetail.dwellingRebateApplied ? [{
|
|
26629
|
+
label: "Dwelling rebate",
|
|
26630
|
+
value: infrastructureChargeDetail.dwellingRebatePercentage,
|
|
26631
|
+
unit: "%"
|
|
26060
26632
|
}, {
|
|
26633
|
+
label: "Dwelling rebate amount",
|
|
26634
|
+
value: infrastructureChargeDetail.dwellingRebateAmount,
|
|
26635
|
+
currency: true
|
|
26636
|
+
}, {
|
|
26637
|
+
label: "Dwelling rebate reason",
|
|
26638
|
+
value: t(infrastructureChargeDetail.dwellingRebateReason),
|
|
26639
|
+
isText: true
|
|
26640
|
+
}] : []), {
|
|
26061
26641
|
label: "Net IFC",
|
|
26062
26642
|
value: infrastructureChargeDetail.netIFC,
|
|
26063
26643
|
currency: true
|
|
@@ -26481,8 +27061,8 @@ const DueVerification = _ref => {
|
|
|
26481
27061
|
return newData;
|
|
26482
27062
|
});
|
|
26483
27063
|
}, [applicationData]);
|
|
26484
|
-
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "
|
|
26485
|
-
const isActivation = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus)
|
|
27064
|
+
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_FIELD_INSPECTION";
|
|
27065
|
+
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
26486
27066
|
const columns = React.useMemo(() => {
|
|
26487
27067
|
const baseColumns = [{
|
|
26488
27068
|
Header: t("K No."),
|
|
@@ -26500,7 +27080,7 @@ const DueVerification = _ref => {
|
|
|
26500
27080
|
Header: t("Total Amount"),
|
|
26501
27081
|
accessor: "totalAmount"
|
|
26502
27082
|
}];
|
|
26503
|
-
if (isPendingApproval) {
|
|
27083
|
+
if (isPendingApproval || isActivation) {
|
|
26504
27084
|
baseColumns.push({
|
|
26505
27085
|
Header: t("Remarks"),
|
|
26506
27086
|
accessor: "remarks",
|
|
@@ -26519,7 +27099,7 @@ const DueVerification = _ref => {
|
|
|
26519
27099
|
});
|
|
26520
27100
|
}
|
|
26521
27101
|
return baseColumns;
|
|
26522
|
-
}, [t, handleRemarkChange, isPendingApproval]);
|
|
27102
|
+
}, [t, handleRemarkChange, isPendingApproval, isActivation]);
|
|
26523
27103
|
React.useEffect(() => {
|
|
26524
27104
|
if (applicationData !== null && applicationData !== void 0 && applicationData.dueVerification && Array.isArray(applicationData.dueVerification)) {
|
|
26525
27105
|
setTableData(applicationData.dueVerification);
|
|
@@ -26621,7 +27201,11 @@ const InspectionInformation = _ref => {
|
|
|
26621
27201
|
let applicationData = _ref.applicationData;
|
|
26622
27202
|
const _useTranslation = reactI18next.useTranslation(),
|
|
26623
27203
|
t = _useTranslation.t;
|
|
26624
|
-
const
|
|
27204
|
+
const defaultInspectionType = {
|
|
27205
|
+
i18nKey: "New Connection Visit",
|
|
27206
|
+
code: "new_connection_visit"
|
|
27207
|
+
};
|
|
27208
|
+
const _useState = React.useState(defaultInspectionType),
|
|
26625
27209
|
inspectionType = _useState[0],
|
|
26626
27210
|
setInspectionType = _useState[1];
|
|
26627
27211
|
const _useState2 = React.useState(""),
|
|
@@ -26631,20 +27215,23 @@ const InspectionInformation = _ref => {
|
|
|
26631
27215
|
inspectorName = _useState3[0],
|
|
26632
27216
|
setInspectorName = _useState3[1];
|
|
26633
27217
|
React.useEffect(() => {
|
|
26634
|
-
if (applicationData
|
|
27218
|
+
if (applicationData) {
|
|
27219
|
+
if (!applicationData.inspectionInformation) {
|
|
27220
|
+
applicationData.inspectionInformation = {};
|
|
27221
|
+
}
|
|
27222
|
+
if (!applicationData.inspectionInformation.inspectionType) {
|
|
27223
|
+
applicationData.inspectionInformation.inspectionType = defaultInspectionType;
|
|
27224
|
+
}
|
|
26635
27225
|
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
26636
27226
|
let matchedType = null;
|
|
26637
27227
|
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
26638
27228
|
if (inspectionCode) {
|
|
26639
27229
|
matchedType = [{
|
|
26640
|
-
i18nKey: "ES_COMMON_SELECT",
|
|
26641
|
-
code: ""
|
|
26642
|
-
}, {
|
|
26643
27230
|
i18nKey: "New Connection Visit",
|
|
26644
27231
|
code: "new_connection_visit"
|
|
26645
27232
|
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
26646
27233
|
}
|
|
26647
|
-
setInspectionType(matchedType ||
|
|
27234
|
+
setInspectionType(matchedType || defaultInspectionType);
|
|
26648
27235
|
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
26649
27236
|
if (dateValue && typeof dateValue === 'number') {
|
|
26650
27237
|
const d = new Date(dateValue);
|
|
@@ -26661,9 +27248,6 @@ const InspectionInformation = _ref => {
|
|
|
26661
27248
|
}
|
|
26662
27249
|
}, [applicationData]);
|
|
26663
27250
|
const inspectionTypeOptions = [{
|
|
26664
|
-
i18nKey: "ES_COMMON_SELECT",
|
|
26665
|
-
code: ""
|
|
26666
|
-
}, {
|
|
26667
27251
|
i18nKey: "New Connection Visit",
|
|
26668
27252
|
code: "new_connection_visit"
|
|
26669
27253
|
}];
|
|
@@ -26683,7 +27267,7 @@ const InspectionInformation = _ref => {
|
|
|
26683
27267
|
if (!applicationData.inspectionInformation) applicationData.inspectionInformation = {};
|
|
26684
27268
|
applicationData.inspectionInformation.inspectorName = val;
|
|
26685
27269
|
};
|
|
26686
|
-
const readOnly = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus)
|
|
27270
|
+
const readOnly = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
26687
27271
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
26688
27272
|
style: {
|
|
26689
27273
|
marginBottom: "20px"
|
|
@@ -26759,6 +27343,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
26759
27343
|
workflowDetails = _ref.workflowDetails,
|
|
26760
27344
|
isDataLoading = _ref.isDataLoading,
|
|
26761
27345
|
applicationData = _ref.applicationData,
|
|
27346
|
+
businessService = _ref.businessService,
|
|
26762
27347
|
timelineStatusPrefix = _ref.timelineStatusPrefix,
|
|
26763
27348
|
_ref$showTimeLine = _ref.showTimeLine,
|
|
26764
27349
|
showTimeLine = _ref$showTimeLine === void 0 ? true : _ref$showTimeLine,
|
|
@@ -27034,7 +27619,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
27034
27619
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
27035
27620
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
27036
27621
|
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.map((detail, index) => {
|
|
27037
|
-
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
|
|
27622
|
+
var _detail$title, _detail$values, _detail$additionalDet, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _detail$additionalDet2, _applicationDetails$a5, _applicationDetails$a6, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _applicationData$appl, _detail$additionalDet20, _applicationData$appl2, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
|
|
27038
27623
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
27039
27624
|
key: index
|
|
27040
27625
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -27265,9 +27850,9 @@ function ApplicationDetailsContent(_ref) {
|
|
|
27265
27850
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documents) && /*#__PURE__*/React__default.createElement(PropertyDocuments, {
|
|
27266
27851
|
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents,
|
|
27267
27852
|
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
27268
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && (
|
|
27853
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationType) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(DueVerification, {
|
|
27269
27854
|
applicationData: applicationData
|
|
27270
|
-
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && (
|
|
27855
|
+
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl2 = applicationData.applicationType) !== null && _applicationData$appl2 !== void 0 && _applicationData$appl2.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(InspectionInformation, {
|
|
27271
27856
|
applicationData: applicationData
|
|
27272
27857
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React__default.createElement(PropertyEstimates, {
|
|
27273
27858
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
@@ -27438,7 +28023,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
27438
28023
|
if (typeof window !== "undefined" && typeof window.isDocumentsVerified !== "undefined") {
|
|
27439
28024
|
return !window.isDocumentsVerified;
|
|
27440
28025
|
}
|
|
27441
|
-
return
|
|
28026
|
+
return true;
|
|
27442
28027
|
}),
|
|
27443
28028
|
isSubmitDisabled = _React$useState[0],
|
|
27444
28029
|
setIsSubmitDisabled = _React$useState[1];
|
|
@@ -27451,7 +28036,10 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
27451
28036
|
};
|
|
27452
28037
|
if (typeof window !== "undefined") {
|
|
27453
28038
|
window.addEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
|
|
27454
|
-
return () =>
|
|
28039
|
+
return () => {
|
|
28040
|
+
window.removeEventListener("DOCUMENTS_VERIFIED", handleDocVerification);
|
|
28041
|
+
delete window.isDocumentsVerified;
|
|
28042
|
+
};
|
|
27455
28043
|
}
|
|
27456
28044
|
}, []);
|
|
27457
28045
|
if (window.location.href.includes("/obps") || window.location.href.includes("/noc")) {
|