@djb25/digit-ui-module-ws 1.0.83 → 1.0.85
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 +829 -412
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +830 -413
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -534,7 +534,7 @@ const getFiles = function (filesArray, tenant) {
|
|
|
534
534
|
};
|
|
535
535
|
const createPayloadOfWS = function (data) {
|
|
536
536
|
try {
|
|
537
|
-
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj, _useDetailsObject$cat, _data$applicationSele8, _data$applicationSele9, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele0, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
|
|
537
|
+
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj, _useDetailsObject$cat, _data$applicationSele8, _data$applicationSele9, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele0, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
|
|
538
538
|
const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
|
|
539
539
|
const isCitizen = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.type) === "CITIZEN" || (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$roles = userInfo.roles) === null || _userInfo$roles === void 0 ? void 0 : _userInfo$roles.some(role => role.code === "CITIZEN"));
|
|
540
540
|
data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : (_data$cpt$details$own = _data$cpt$details.owners) === null || _data$cpt$details$own === void 0 ? void 0 : _data$cpt$details$own.forEach(owner => {
|
|
@@ -645,7 +645,8 @@ const createPayloadOfWS = function (data) {
|
|
|
645
645
|
name: details === null || details === void 0 ? void 0 : details.plumberName,
|
|
646
646
|
mobileNumber: details === null || details === void 0 ? void 0 : details.plumberMobileNo
|
|
647
647
|
})),
|
|
648
|
-
additionalDetails: _extends({}, useDetailsObject, data === null || data === void 0 ? void 0 : data.djbEmployee, {
|
|
648
|
+
additionalDetails: _extends({}, useDetailsObject, data === null || data === void 0 ? void 0 : data.djbEmployee, data === null || data === void 0 ? void 0 : data.disability, {
|
|
649
|
+
isDivyangjan: !!(data !== null && data !== void 0 && (_data$disability = data.disability) !== null && _data$disability !== void 0 && _data$disability.isDivyangjan),
|
|
649
650
|
document: (data === null || data === void 0 ? void 0 : (_data$djbEmployee4 = data.djbEmployee) === null || _data$djbEmployee4 === void 0 ? void 0 : (_data$djbEmployee4$do = _data$djbEmployee4.document) === null || _data$djbEmployee4$do === void 0 ? void 0 : _data$djbEmployee4$do.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$djbEmployee5 = data.djbEmployee) === null || _data$djbEmployee5 === void 0 ? void 0 : _data$djbEmployee5.document) || undefined
|
|
650
651
|
}, data === null || data === void 0 ? void 0 : data.bankDetails, data === null || data === void 0 ? void 0 : data.declarationData, data === null || data === void 0 ? void 0 : data.declaration, {
|
|
651
652
|
zro: (data === null || data === void 0 ? void 0 : (_data$zro = data.zro) === null || _data$zro === void 0 ? void 0 : _data$zro.code) || (data === null || data === void 0 ? void 0 : data.zro),
|
|
@@ -11323,7 +11324,9 @@ const App$1 = _ref2 => {
|
|
|
11323
11324
|
}))
|
|
11324
11325
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
11325
11326
|
path: path + "/consumption-details",
|
|
11326
|
-
component:
|
|
11327
|
+
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
11328
|
+
layoutClass: "action"
|
|
11329
|
+
}, /*#__PURE__*/React__default.createElement(WSConsumptionDetails, null))
|
|
11327
11330
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
11328
11331
|
path: path + "/modify-application",
|
|
11329
11332
|
component: WSModifyApplication
|
|
@@ -18050,6 +18053,14 @@ const UploadFileDigiLocker = props => {
|
|
|
18050
18053
|
};
|
|
18051
18054
|
|
|
18052
18055
|
const DIGILOCKER_SUPPORTED_CODES = ["AADHAAR", "AADHAR", "DRIVING", "DRVLC", "PAN"];
|
|
18056
|
+
const ENVIRONMENT_FILE_STORE_IDS = {
|
|
18057
|
+
uat: "261542df-8dae-41e7-aa17-00cd288faf3b",
|
|
18058
|
+
dev: "0d394691-45ed-4036-97e8-8de8b0f166b1"
|
|
18059
|
+
};
|
|
18060
|
+
const getEnvironmentFileStoreId = () => {
|
|
18061
|
+
const hostname = window.location.hostname.toLowerCase();
|
|
18062
|
+
return hostname.includes("uat") ? ENVIRONMENT_FILE_STORE_IDS.uat : ENVIRONMENT_FILE_STORE_IDS.dev;
|
|
18063
|
+
};
|
|
18053
18064
|
const isDigiLockerEligible = function (code) {
|
|
18054
18065
|
if (code === void 0) {
|
|
18055
18066
|
code = "";
|
|
@@ -18057,8 +18068,26 @@ const isDigiLockerEligible = function (code) {
|
|
|
18057
18068
|
const upper = code.toUpperCase();
|
|
18058
18069
|
return DIGILOCKER_SUPPORTED_CODES.some(keyword => upper.includes(keyword));
|
|
18059
18070
|
};
|
|
18071
|
+
const isOtherDocument = function (code) {
|
|
18072
|
+
if (code === void 0) {
|
|
18073
|
+
code = "";
|
|
18074
|
+
}
|
|
18075
|
+
return code.toUpperCase().includes("OTHER");
|
|
18076
|
+
};
|
|
18077
|
+
const removeDuplicateOtherDocuments = function (documentList) {
|
|
18078
|
+
if (documentList === void 0) {
|
|
18079
|
+
documentList = [];
|
|
18080
|
+
}
|
|
18081
|
+
const documentTypes = new Set();
|
|
18082
|
+
return documentList.filter(document => {
|
|
18083
|
+
if (!isOtherDocument(document === null || document === void 0 ? void 0 : document.documentType)) return true;
|
|
18084
|
+
if (documentTypes.has(document.documentType)) return false;
|
|
18085
|
+
documentTypes.add(document.documentType);
|
|
18086
|
+
return true;
|
|
18087
|
+
});
|
|
18088
|
+
};
|
|
18060
18089
|
const WSDocumentsEmployee = _ref => {
|
|
18061
|
-
var
|
|
18090
|
+
var _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData3;
|
|
18062
18091
|
let t = _ref.t,
|
|
18063
18092
|
config = _ref.config,
|
|
18064
18093
|
onSelect = _ref.onSelect,
|
|
@@ -18068,7 +18097,10 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18068
18097
|
clearFormErrors = _ref.clearErrors,
|
|
18069
18098
|
formState = _ref.formState;
|
|
18070
18099
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
18071
|
-
const _useState = React.useState(
|
|
18100
|
+
const _useState = React.useState(() => {
|
|
18101
|
+
var _formData$documents, _formData$DocumentsRe;
|
|
18102
|
+
return removeDuplicateOtherDocuments(userType === "citizen" ? (formData === null || formData === void 0 ? void 0 : (_formData$documents = formData.documents) === null || _formData$documents === void 0 ? void 0 : _formData$documents.documents) || (formData === null || formData === void 0 ? void 0 : formData.documents) || [] : (formData === null || formData === void 0 ? void 0 : (_formData$DocumentsRe = formData.DocumentsRequired) === null || _formData$DocumentsRe === void 0 ? void 0 : _formData$DocumentsRe.documents) || []);
|
|
18103
|
+
}),
|
|
18072
18104
|
documents = _useState[0],
|
|
18073
18105
|
setDocuments = _useState[1];
|
|
18074
18106
|
const _useState2 = React.useState(true),
|
|
@@ -18095,8 +18127,19 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18095
18127
|
onSelect(config.key, documentStep);
|
|
18096
18128
|
} else {
|
|
18097
18129
|
onSelect(config.key, {
|
|
18098
|
-
documents
|
|
18130
|
+
documents: removeDuplicateOtherDocuments(documents)
|
|
18131
|
+
});
|
|
18132
|
+
}
|
|
18133
|
+
};
|
|
18134
|
+
const downloadDocument = function () {
|
|
18135
|
+
try {
|
|
18136
|
+
return Promise.resolve(Digit.UploadServices.DownloadFile(getEnvironmentFileStoreId(), "dl", "NOC for New Delhi Jal Board Connection.pdf")).then(function (downloaded) {
|
|
18137
|
+
if (!downloaded) {
|
|
18138
|
+
setError(t("CS_FILE_DOWNLOAD_ERROR") || "PDF download failed");
|
|
18139
|
+
}
|
|
18099
18140
|
});
|
|
18141
|
+
} catch (e) {
|
|
18142
|
+
return Promise.reject(e);
|
|
18100
18143
|
}
|
|
18101
18144
|
};
|
|
18102
18145
|
React.useEffect(() => {
|
|
@@ -18155,7 +18198,8 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18155
18198
|
setFormError: setFormError,
|
|
18156
18199
|
clearFormErrors: clearFormErrors,
|
|
18157
18200
|
config: config,
|
|
18158
|
-
formState: formState
|
|
18201
|
+
formState: formState,
|
|
18202
|
+
isOtherDocument: isOtherDocument(document === null || document === void 0 ? void 0 : document.code)
|
|
18159
18203
|
});
|
|
18160
18204
|
}));
|
|
18161
18205
|
if (userType === "citizen") {
|
|
@@ -18176,14 +18220,32 @@ const WSDocumentsEmployee = _ref => {
|
|
|
18176
18220
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
18177
18221
|
title: t("WS_DOCUMENTS"),
|
|
18178
18222
|
defaultOpen: true
|
|
18179
|
-
},
|
|
18223
|
+
}, /*#__PURE__*/React__default.createElement("button", {
|
|
18224
|
+
type: "button",
|
|
18225
|
+
onClick: event => {
|
|
18226
|
+
event.stopPropagation();
|
|
18227
|
+
downloadDocument();
|
|
18228
|
+
},
|
|
18229
|
+
style: {
|
|
18230
|
+
cursor: "pointer",
|
|
18231
|
+
color: "#fff",
|
|
18232
|
+
fontWeight: "bold",
|
|
18233
|
+
padding: "6px 14px",
|
|
18234
|
+
border: "1px solid #00497e",
|
|
18235
|
+
borderRadius: "4px",
|
|
18236
|
+
backgroundColor: "#00497e",
|
|
18237
|
+
marginLeft: "auto",
|
|
18238
|
+
marginRight: "32px",
|
|
18239
|
+
whiteSpace: "nowrap"
|
|
18240
|
+
}
|
|
18241
|
+
}, t("WS_DOWNLOAD_DOCUMENT")), innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
18180
18242
|
label: error,
|
|
18181
18243
|
onClose: () => setError(null),
|
|
18182
18244
|
error: true
|
|
18183
18245
|
}));
|
|
18184
18246
|
};
|
|
18185
18247
|
function SelectDocument(_ref2) {
|
|
18186
|
-
var _formData$ConnectionD, _doc$i18nKey, _selectedDocument$cod2, _selectedDocument$cod3, _selectedDocument$cod4, _selectedDocument$cod5, _selectedDocument$cod6, _selectedDocument$cod7, _selectedDocument$cod8, _selectedDocument$cod9, _selectedDocument$cod0, _selectedDocument$cod1, _selectedDocument$cod10, _selectedDocument$cod11, _selectedDocument$cod12, _selectedDocument$cod13, _selectedDocument$cod14, _selectedDocument$cod15, _doc$i18nKey2
|
|
18248
|
+
var _formData$ConnectionD, _doc$i18nKey, _selectedDocument$cod2, _selectedDocument$cod3, _selectedDocument$cod4, _selectedDocument$cod5, _selectedDocument$cod6, _selectedDocument$cod7, _selectedDocument$cod8, _selectedDocument$cod9, _selectedDocument$cod0, _selectedDocument$cod1, _selectedDocument$cod10, _selectedDocument$cod11, _selectedDocument$cod12, _selectedDocument$cod13, _selectedDocument$cod14, _selectedDocument$cod15, _doc$i18nKey2;
|
|
18187
18249
|
let t = _ref2.t,
|
|
18188
18250
|
doc = _ref2.document,
|
|
18189
18251
|
setDocuments = _ref2.setDocuments,
|
|
@@ -18194,11 +18256,17 @@ function SelectDocument(_ref2) {
|
|
|
18194
18256
|
clearFormErrors = _ref2.clearFormErrors,
|
|
18195
18257
|
config = _ref2.config,
|
|
18196
18258
|
formState = _ref2.formState,
|
|
18197
|
-
id = _ref2.id
|
|
18259
|
+
id = _ref2.id,
|
|
18260
|
+
_ref2$isOtherDocument = _ref2.isOtherDocument,
|
|
18261
|
+
isOther = _ref2$isOtherDocument === void 0 ? false : _ref2$isOtherDocument;
|
|
18198
18262
|
const fileRef = React.useRef();
|
|
18199
|
-
const
|
|
18263
|
+
const otherUploadedDocuments = isOther ? (documents === null || documents === void 0 ? void 0 : documents.filter(item => {
|
|
18200
18264
|
var _item$documentType;
|
|
18201
18265
|
return item === null || item === void 0 ? void 0 : (_item$documentType = item.documentType) === null || _item$documentType === void 0 ? void 0 : _item$documentType.includes(doc === null || doc === void 0 ? void 0 : doc.code);
|
|
18266
|
+
})) || [] : [];
|
|
18267
|
+
const filteredDocument = isOther ? null : documents === null || documents === void 0 ? void 0 : documents.filter(item => {
|
|
18268
|
+
var _item$documentType2;
|
|
18269
|
+
return item === null || item === void 0 ? void 0 : (_item$documentType2 = item.documentType) === null || _item$documentType2 === void 0 ? void 0 : _item$documentType2.includes(doc === null || doc === void 0 ? void 0 : doc.code);
|
|
18202
18270
|
})[0];
|
|
18203
18271
|
const _useState4 = React.useState(() => {
|
|
18204
18272
|
var _filteredDocument$doc, _doc$dropdownData2;
|
|
@@ -18217,10 +18285,10 @@ function SelectDocument(_ref2) {
|
|
|
18217
18285
|
const _useState5 = React.useState(null),
|
|
18218
18286
|
file = _useState5[0],
|
|
18219
18287
|
setFile = _useState5[1];
|
|
18220
|
-
const _useState6 = React.useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null),
|
|
18288
|
+
const _useState6 = React.useState(() => isOther ? null : (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId) || null),
|
|
18221
18289
|
uploadedFile = _useState6[0],
|
|
18222
18290
|
setUploadedFile = _useState6[1];
|
|
18223
|
-
const _useState7 = React.useState(() => (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentUid) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentNumber) || ""),
|
|
18291
|
+
const _useState7 = React.useState(() => isOther ? "" : (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentUid) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentNumber) || ""),
|
|
18224
18292
|
documentUid = _useState7[0],
|
|
18225
18293
|
setDocumentUid = _useState7[1];
|
|
18226
18294
|
const _useState8 = React.useState(false),
|
|
@@ -18279,12 +18347,23 @@ function SelectDocument(_ref2) {
|
|
|
18279
18347
|
setShowCamera(false);
|
|
18280
18348
|
};
|
|
18281
18349
|
const handleSelectDocument = value => setSelectedDocument(value);
|
|
18282
|
-
const
|
|
18350
|
+
const removeUploadedDocument = fileStoreId => {
|
|
18351
|
+
setDocuments(previousDocuments => previousDocuments.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== fileStoreId));
|
|
18352
|
+
if (fileStoreId === uploadedFile) {
|
|
18353
|
+
setUploadedFile(null);
|
|
18354
|
+
setFile(null);
|
|
18355
|
+
setDocumentUid("");
|
|
18356
|
+
}
|
|
18357
|
+
};
|
|
18358
|
+
const viewDocument = function (fileStoreId) {
|
|
18359
|
+
if (fileStoreId === void 0) {
|
|
18360
|
+
fileStoreId = uploadedFile;
|
|
18361
|
+
}
|
|
18283
18362
|
try {
|
|
18284
18363
|
const _temp2 = function () {
|
|
18285
|
-
if (
|
|
18364
|
+
if (fileStoreId) {
|
|
18286
18365
|
const _temp = _catch(function () {
|
|
18287
|
-
return Promise.resolve(Digit.UploadServices.FileFetchbyid(
|
|
18366
|
+
return Promise.resolve(Digit.UploadServices.FileFetchbyid(fileStoreId, Digit.ULBService.getStateId())).then(function (res) {
|
|
18288
18367
|
if (res !== null && res !== void 0 && res.data) {
|
|
18289
18368
|
var _res$headers, _res$headers2;
|
|
18290
18369
|
const contentType = ((_res$headers = res.headers) === null || _res$headers === void 0 ? void 0 : _res$headers["content-type"]) || ((_res$headers2 = res.headers) === null || _res$headers2 === void 0 ? void 0 : _res$headers2["Content-Type"]) || "";
|
|
@@ -18336,6 +18415,7 @@ function SelectDocument(_ref2) {
|
|
|
18336
18415
|
var dropDownData = dropdownData;
|
|
18337
18416
|
const _useState15 = React.useState(false),
|
|
18338
18417
|
isHidden = _useState15[0];
|
|
18418
|
+
const documentDisplayName = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.name) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || (doc === null || doc === void 0 ? void 0 : doc.i18nKey) || (doc === null || doc === void 0 ? void 0 : doc.name) || (doc === null || doc === void 0 ? void 0 : doc.code);
|
|
18339
18419
|
const addError = () => {
|
|
18340
18420
|
var _formState$errors, _formState$errors$con;
|
|
18341
18421
|
let type = formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : (_formState$errors$con = _formState$errors[config.key]) === null || _formState$errors$con === void 0 ? void 0 : _formState$errors$con.type;
|
|
@@ -18365,7 +18445,7 @@ function SelectDocument(_ref2) {
|
|
|
18365
18445
|
React.useEffect(() => {
|
|
18366
18446
|
if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
|
|
18367
18447
|
setDocuments(prev => {
|
|
18368
|
-
const filteredDocumentsByDocumentType = prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
|
|
18448
|
+
const filteredDocumentsByDocumentType = isOther ? prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId)) : prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
|
|
18369
18449
|
if ((uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.length) === 0 || uploadedFile === null) {
|
|
18370
18450
|
return filteredDocumentsByDocumentType;
|
|
18371
18451
|
}
|
|
@@ -18374,6 +18454,7 @@ function SelectDocument(_ref2) {
|
|
|
18374
18454
|
documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
18375
18455
|
fileStoreId: uploadedFile,
|
|
18376
18456
|
fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || "",
|
|
18457
|
+
documentName: (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "",
|
|
18377
18458
|
documentUid: documentUid,
|
|
18378
18459
|
documentNumber: documentUid,
|
|
18379
18460
|
i18nKey: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
@@ -18403,48 +18484,60 @@ function SelectDocument(_ref2) {
|
|
|
18403
18484
|
(function () {
|
|
18404
18485
|
try {
|
|
18405
18486
|
setError(null);
|
|
18406
|
-
const
|
|
18487
|
+
const _temp7 = function () {
|
|
18407
18488
|
if (file) {
|
|
18408
|
-
const
|
|
18409
|
-
|
|
18410
|
-
|
|
18489
|
+
const isDuplicateDocument = isOther && documents.some(item => (item === null || item === void 0 ? void 0 : item.documentType) === (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
|
|
18490
|
+
const _temp6 = function () {
|
|
18491
|
+
if (isDuplicateDocument) {
|
|
18492
|
+
const documentNameKey = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "This";
|
|
18493
|
+
const translatedDocumentName = t(documentNameKey);
|
|
18494
|
+
const documentName = translatedDocumentName === documentNameKey ? documentNameKey.replaceAll("_", " ") : translatedDocumentName;
|
|
18495
|
+
setError("Document \"" + documentName + "\" has already been uploaded.");
|
|
18496
|
+
setFile(null);
|
|
18411
18497
|
} else {
|
|
18412
|
-
const
|
|
18413
|
-
if (
|
|
18414
|
-
setError(t("
|
|
18415
|
-
setFile(null);
|
|
18498
|
+
const _temp5 = function () {
|
|
18499
|
+
if (file.size >= 5242880) {
|
|
18500
|
+
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
18416
18501
|
} else {
|
|
18417
|
-
const
|
|
18418
|
-
|
|
18419
|
-
|
|
18420
|
-
|
|
18421
|
-
|
|
18422
|
-
|
|
18423
|
-
|
|
18424
|
-
|
|
18425
|
-
|
|
18426
|
-
|
|
18502
|
+
const _temp4 = function () {
|
|
18503
|
+
if ((doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && !file.type.match(/image\/(jpeg|png)/i) && !file.name.match(/\.(jpg|jpeg|png)$/i)) {
|
|
18504
|
+
setError(t("WS_ONLY_JPG_PNG_ALLOWED") || "Only JPG and PNG files are allowed for Applicant Photo");
|
|
18505
|
+
setFile(null);
|
|
18506
|
+
} else {
|
|
18507
|
+
const _temp3 = _finallyRethrows(function () {
|
|
18508
|
+
return _catch(function () {
|
|
18509
|
+
setUploadedFile(null);
|
|
18510
|
+
setIsUploading(true);
|
|
18511
|
+
return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getStateId())).then(function (response) {
|
|
18512
|
+
var _response$data, _response$data$files;
|
|
18513
|
+
if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
|
|
18514
|
+
var _response$data2, _response$data2$files;
|
|
18515
|
+
setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId);
|
|
18516
|
+
} else {
|
|
18517
|
+
setError(t("CS_FILE_UPLOAD_ERROR"));
|
|
18518
|
+
}
|
|
18519
|
+
});
|
|
18520
|
+
}, function () {
|
|
18427
18521
|
setError(t("CS_FILE_UPLOAD_ERROR"));
|
|
18428
|
-
}
|
|
18522
|
+
});
|
|
18523
|
+
}, function (_wasThrown, _result) {
|
|
18524
|
+
setIsUploading(false);
|
|
18525
|
+
if (_wasThrown) throw _result;
|
|
18526
|
+
return _result;
|
|
18429
18527
|
});
|
|
18430
|
-
|
|
18431
|
-
|
|
18432
|
-
|
|
18433
|
-
|
|
18434
|
-
setIsUploading(false);
|
|
18435
|
-
if (_wasThrown) throw _result;
|
|
18436
|
-
return _result;
|
|
18437
|
-
});
|
|
18438
|
-
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
18528
|
+
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
18529
|
+
}
|
|
18530
|
+
}();
|
|
18531
|
+
if (_temp4 && _temp4.then) return _temp4.then(function () {});
|
|
18439
18532
|
}
|
|
18440
18533
|
}();
|
|
18441
|
-
if (
|
|
18534
|
+
if (_temp5 && _temp5.then) return _temp5.then(function () {});
|
|
18442
18535
|
}
|
|
18443
18536
|
}();
|
|
18444
|
-
if (
|
|
18537
|
+
if (_temp6 && _temp6.then) return _temp6.then(function () {});
|
|
18445
18538
|
}
|
|
18446
18539
|
}();
|
|
18447
|
-
return
|
|
18540
|
+
return _temp7 && _temp7.then ? _temp7.then(function () {}) : void 0;
|
|
18448
18541
|
} catch (e) {
|
|
18449
18542
|
Promise.reject(e);
|
|
18450
18543
|
}
|
|
@@ -18570,11 +18663,35 @@ function SelectDocument(_ref2) {
|
|
|
18570
18663
|
gap: "8px",
|
|
18571
18664
|
gridColumn: "span 1"
|
|
18572
18665
|
}
|
|
18666
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
18667
|
+
style: {
|
|
18668
|
+
display: "flex",
|
|
18669
|
+
alignItems: "center",
|
|
18670
|
+
justifyContent: "space-between"
|
|
18671
|
+
}
|
|
18573
18672
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
18574
18673
|
style: {
|
|
18575
18674
|
margin: 0
|
|
18576
18675
|
}
|
|
18577
|
-
},
|
|
18676
|
+
}, t((doc === null || doc === void 0 ? void 0 : (_doc$i18nKey2 = doc.i18nKey) === null || _doc$i18nKey2 === void 0 ? void 0 : _doc$i18nKey2.replaceAll(".", "_")) + "_UPLOAD_DOCUMENT"), doc !== null && doc !== void 0 && doc.required ? "*" : ""), isOther && /*#__PURE__*/React__default.createElement("button", {
|
|
18677
|
+
type: "button",
|
|
18678
|
+
onClick: () => {
|
|
18679
|
+
setUploadedFile(null);
|
|
18680
|
+
setFile(null);
|
|
18681
|
+
setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
|
|
18682
|
+
setDocumentUid("");
|
|
18683
|
+
setDocNumberError(null);
|
|
18684
|
+
},
|
|
18685
|
+
style: {
|
|
18686
|
+
border: "1px solid #00497e",
|
|
18687
|
+
background: "#fff",
|
|
18688
|
+
color: "#00497e",
|
|
18689
|
+
borderRadius: "4px",
|
|
18690
|
+
padding: "4px 10px",
|
|
18691
|
+
cursor: "pointer",
|
|
18692
|
+
fontWeight: "bold"
|
|
18693
|
+
}
|
|
18694
|
+
}, "+ Add")), /*#__PURE__*/React__default.createElement("div", {
|
|
18578
18695
|
className: "field",
|
|
18579
18696
|
style: {
|
|
18580
18697
|
display: "flex",
|
|
@@ -18603,7 +18720,7 @@ function SelectDocument(_ref2) {
|
|
|
18603
18720
|
buttonType: "button",
|
|
18604
18721
|
error: !uploadedFile,
|
|
18605
18722
|
accept: (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? "image/jpeg, image/png, .jpg, .jpeg, .png" : "image/*, .pdf, .png, .jpeg, .jpg",
|
|
18606
|
-
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t("CS_COMMON_DOCUMENT"), {
|
|
18723
|
+
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t(documentDisplayName || "CS_COMMON_DOCUMENT"), {
|
|
18607
18724
|
fileStoreId: uploadedFile
|
|
18608
18725
|
}]] : undefined,
|
|
18609
18726
|
removeTargetedFile: () => {
|
|
@@ -18635,7 +18752,7 @@ function SelectDocument(_ref2) {
|
|
|
18635
18752
|
buttonType: "button",
|
|
18636
18753
|
error: !uploadedFile,
|
|
18637
18754
|
accept: (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? "image/jpeg, image/png, .jpg, .jpeg, .png" : "image/*, .pdf, .png, .jpeg, .jpg",
|
|
18638
|
-
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t("CS_COMMON_DOCUMENT"), {
|
|
18755
|
+
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t(documentDisplayName || "CS_COMMON_DOCUMENT"), {
|
|
18639
18756
|
fileStoreId: uploadedFile
|
|
18640
18757
|
}]] : undefined,
|
|
18641
18758
|
removeTargetedFile: () => {
|
|
@@ -18645,7 +18762,47 @@ function SelectDocument(_ref2) {
|
|
|
18645
18762
|
setIsDocumentUidLocked(false);
|
|
18646
18763
|
setDocumentUid("");
|
|
18647
18764
|
}
|
|
18648
|
-
})))
|
|
18765
|
+
}))), (isOther ? otherUploadedDocuments : uploadedFile ? [{
|
|
18766
|
+
fileStoreId: uploadedFile,
|
|
18767
|
+
fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName),
|
|
18768
|
+
documentNumber: documentUid
|
|
18769
|
+
}] : []).map((uploadedDocument, index) => /*#__PURE__*/React__default.createElement("div", {
|
|
18770
|
+
key: uploadedDocument.fileStoreId || index,
|
|
18771
|
+
style: {
|
|
18772
|
+
display: "flex",
|
|
18773
|
+
alignItems: "center",
|
|
18774
|
+
gap: "12px",
|
|
18775
|
+
marginTop: "4px",
|
|
18776
|
+
color: "#00497e"
|
|
18777
|
+
}
|
|
18778
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
18779
|
+
style: {
|
|
18780
|
+
fontWeight: "bold"
|
|
18781
|
+
}
|
|
18782
|
+
}, uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName ? t(uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName) : t("CS_COMMON_DOCUMENT"), " - ", uploadedDocument.fileName || t("CS_COMMON_DOCUMENT")), uploadedDocument.documentNumber && /*#__PURE__*/React__default.createElement("span", null, uploadedDocument.documentNumber), /*#__PURE__*/React__default.createElement("button", {
|
|
18783
|
+
type: "button",
|
|
18784
|
+
onClick: () => viewDocument(uploadedDocument.fileStoreId),
|
|
18785
|
+
title: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
18786
|
+
style: {
|
|
18787
|
+
border: "none",
|
|
18788
|
+
background: "transparent",
|
|
18789
|
+
color: "#00497e",
|
|
18790
|
+
cursor: "pointer",
|
|
18791
|
+
padding: 0
|
|
18792
|
+
}
|
|
18793
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), /*#__PURE__*/React__default.createElement("button", {
|
|
18794
|
+
type: "button",
|
|
18795
|
+
onClick: () => removeUploadedDocument(uploadedDocument.fileStoreId),
|
|
18796
|
+
title: "Remove Document",
|
|
18797
|
+
style: {
|
|
18798
|
+
border: "none",
|
|
18799
|
+
background: "transparent",
|
|
18800
|
+
color: "#d32f2f",
|
|
18801
|
+
cursor: "pointer",
|
|
18802
|
+
padding: 0,
|
|
18803
|
+
fontSize: "18px"
|
|
18804
|
+
}
|
|
18805
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RemoveIcon, null))))), /*#__PURE__*/React__default.createElement("div", {
|
|
18649
18806
|
style: {
|
|
18650
18807
|
display: "flex",
|
|
18651
18808
|
flexDirection: "column",
|
|
@@ -18698,21 +18855,7 @@ function SelectDocument(_ref2) {
|
|
|
18698
18855
|
fontWeight: "bold",
|
|
18699
18856
|
fontSize: "14px"
|
|
18700
18857
|
}
|
|
18701
|
-
}, "\u2714 Uploaded")),
|
|
18702
|
-
onClick: viewDocument,
|
|
18703
|
-
style: {
|
|
18704
|
-
display: "flex",
|
|
18705
|
-
alignItems: "center",
|
|
18706
|
-
gap: "8px",
|
|
18707
|
-
cursor: "pointer",
|
|
18708
|
-
color: "#00497e",
|
|
18709
|
-
fontWeight: "bold",
|
|
18710
|
-
padding: "8px 16px",
|
|
18711
|
-
border: "1px solid #00497e",
|
|
18712
|
-
borderRadius: "4px",
|
|
18713
|
-
backgroundColor: "#fff"
|
|
18714
|
-
}
|
|
18715
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null), /*#__PURE__*/React__default.createElement("span", null, t("WS_VIEW_DOCUMENT") || "View Document")))), showCamera && /*#__PURE__*/React__default.createElement(CameraCaptureModal, {
|
|
18858
|
+
}, "\u2714 Uploaded")))), showCamera && /*#__PURE__*/React__default.createElement(CameraCaptureModal, {
|
|
18716
18859
|
onCapture: handleCapture,
|
|
18717
18860
|
onClose: () => setShowCamera(false),
|
|
18718
18861
|
t: t
|
|
@@ -18788,7 +18931,7 @@ const CameraCaptureModal = _ref4 => {
|
|
|
18788
18931
|
React.useEffect(() => {
|
|
18789
18932
|
const startCamera = function () {
|
|
18790
18933
|
try {
|
|
18791
|
-
const
|
|
18934
|
+
const _temp8 = _catch(function () {
|
|
18792
18935
|
return Promise.resolve(navigator.mediaDevices.getUserMedia({
|
|
18793
18936
|
video: true
|
|
18794
18937
|
})).then(function (mediaStream) {
|
|
@@ -18801,7 +18944,7 @@ const CameraCaptureModal = _ref4 => {
|
|
|
18801
18944
|
setError(t("WS_CAMERA_ACCESS_ERROR") || "Camera Access Error");
|
|
18802
18945
|
console.error("Error accessing camera: ", err);
|
|
18803
18946
|
});
|
|
18804
|
-
return Promise.resolve(
|
|
18947
|
+
return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
|
|
18805
18948
|
} catch (e) {
|
|
18806
18949
|
return Promise.reject(e);
|
|
18807
18950
|
}
|
|
@@ -23549,6 +23692,61 @@ const WSDjbEmployee = _ref => {
|
|
|
23549
23692
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, FormContent);
|
|
23550
23693
|
};
|
|
23551
23694
|
|
|
23695
|
+
const WSDivyangjan = _ref => {
|
|
23696
|
+
var _formData$disability, _formData$additionalD;
|
|
23697
|
+
let config = _ref.config,
|
|
23698
|
+
onSelect = _ref.onSelect,
|
|
23699
|
+
userType = _ref.userType,
|
|
23700
|
+
formData = _ref.formData;
|
|
23701
|
+
const _useTranslation = reactI18next.useTranslation(),
|
|
23702
|
+
t = _useTranslation.t;
|
|
23703
|
+
const _useForm = reactHookForm.useForm({
|
|
23704
|
+
defaultValues: {
|
|
23705
|
+
isDivyangjan: !!(formData !== null && formData !== void 0 && (_formData$disability = formData.disability) !== null && _formData$disability !== void 0 && _formData$disability.isDivyangjan || formData !== null && formData !== void 0 && (_formData$additionalD = formData.additionalDetails) !== null && _formData$additionalD !== void 0 && _formData$additionalD.isDivyangjan)
|
|
23706
|
+
}
|
|
23707
|
+
}),
|
|
23708
|
+
control = _useForm.control,
|
|
23709
|
+
watch = _useForm.watch;
|
|
23710
|
+
const formValue = watch();
|
|
23711
|
+
const onSelectRef = React.useRef(onSelect);
|
|
23712
|
+
const goNext = () => onSelect(config.key, {
|
|
23713
|
+
isDivyangjan: !!formValue.isDivyangjan
|
|
23714
|
+
});
|
|
23715
|
+
const onSkip = () => onSelect();
|
|
23716
|
+
React.useEffect(() => {
|
|
23717
|
+
onSelectRef.current = onSelect;
|
|
23718
|
+
}, [onSelect]);
|
|
23719
|
+
React.useEffect(() => {
|
|
23720
|
+
if (userType === "employee") {
|
|
23721
|
+
onSelectRef.current(config.key, {
|
|
23722
|
+
isDivyangjan: !!formValue.isDivyangjan
|
|
23723
|
+
});
|
|
23724
|
+
}
|
|
23725
|
+
}, [config.key, formValue.isDivyangjan, userType]);
|
|
23726
|
+
const content = /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
23727
|
+
title: "Divyangjan/Person with Disability?",
|
|
23728
|
+
defaultOpen: true
|
|
23729
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
23730
|
+
style: {
|
|
23731
|
+
width: "max-content"
|
|
23732
|
+
}
|
|
23733
|
+
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
23734
|
+
control: control,
|
|
23735
|
+
name: "isDivyangjan",
|
|
23736
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
|
|
23737
|
+
label: "Divyangjan/Person with Disability?",
|
|
23738
|
+
checked: !!props.value,
|
|
23739
|
+
onChange: event => props.onChange(event.target.checked)
|
|
23740
|
+
})
|
|
23741
|
+
})));
|
|
23742
|
+
return userType === "citizen" ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
|
|
23743
|
+
t: t,
|
|
23744
|
+
config: config,
|
|
23745
|
+
onSelect: goNext,
|
|
23746
|
+
onSkip: onSkip
|
|
23747
|
+
}, content) : content;
|
|
23748
|
+
};
|
|
23749
|
+
|
|
23552
23750
|
const _excluded$1 = ["t", "config", "onSelect", "formData", "formState", "setError", "clearErrors"];
|
|
23553
23751
|
const NUMBER_PATTERN$1 = /^\d+$/;
|
|
23554
23752
|
const DECIMAL_PATTERN$1 = /^\d+(\.\d{1,2})?$/;
|
|
@@ -27624,12 +27822,25 @@ const newConfig = [{
|
|
|
27624
27822
|
cardText: "",
|
|
27625
27823
|
submitBarLabel: "CS_COMMON_NEXT"
|
|
27626
27824
|
}
|
|
27825
|
+
}, {
|
|
27826
|
+
route: "disability-details",
|
|
27827
|
+
component: "WSDivyangjan",
|
|
27828
|
+
key: "disability",
|
|
27829
|
+
nextStep: "document-details",
|
|
27830
|
+
WATER: "document-details",
|
|
27831
|
+
hideInEmployee: true,
|
|
27832
|
+
texts: {
|
|
27833
|
+
headerCaption: "WS_COMMON_CONNECTION_DETAIL",
|
|
27834
|
+
header: "Divyangjan/Person with Disability?",
|
|
27835
|
+
cardText: "",
|
|
27836
|
+
submitBarLabel: "CS_COMMON_NEXT"
|
|
27837
|
+
}
|
|
27627
27838
|
}, {
|
|
27628
27839
|
route: "djb-employee-details",
|
|
27629
27840
|
component: "WSDjbEmployee",
|
|
27630
27841
|
key: "djbEmployee",
|
|
27631
|
-
nextStep: "
|
|
27632
|
-
WATER: "
|
|
27842
|
+
nextStep: "disability-details",
|
|
27843
|
+
WATER: "disability-details",
|
|
27633
27844
|
hideInEmployee: true,
|
|
27634
27845
|
texts: {
|
|
27635
27846
|
headerCaption: "WS_COMMON_CONNECTION_DETAIL",
|
|
@@ -32078,7 +32289,7 @@ const ViewBreakup = _ref => {
|
|
|
32078
32289
|
title: t("WS_APPLICATION_FEE_HEADER"),
|
|
32079
32290
|
values: amountRows([...((breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : _breakUpData$billSlab.FEE) || []), ...((breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab2 = breakUpData.billSlabData) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.CHARGES) || [])])
|
|
32080
32291
|
}, {
|
|
32081
|
-
title: "
|
|
32292
|
+
title: t("WS_PROPERTY_DETAILS"),
|
|
32082
32293
|
values: propertyRows.map(_ref4 => {
|
|
32083
32294
|
let label = _ref4.label,
|
|
32084
32295
|
value = _ref4.value,
|
|
@@ -32091,10 +32302,10 @@ const ViewBreakup = _ref => {
|
|
|
32091
32302
|
};
|
|
32092
32303
|
})
|
|
32093
32304
|
}, {
|
|
32094
|
-
title: "
|
|
32305
|
+
title: t("WS_TAXES"),
|
|
32095
32306
|
values: amountRows(breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : _breakUpData$billSlab3.TAX)
|
|
32096
32307
|
}, {
|
|
32097
|
-
title: "
|
|
32308
|
+
title: t("WS_WATER_DEMAND_DETAILS"),
|
|
32098
32309
|
values: waterDemandRows.map(_ref5 => {
|
|
32099
32310
|
let label = _ref5.label,
|
|
32100
32311
|
value = _ref5.value,
|
|
@@ -32107,7 +32318,7 @@ const ViewBreakup = _ref => {
|
|
|
32107
32318
|
};
|
|
32108
32319
|
})
|
|
32109
32320
|
}, {
|
|
32110
|
-
title: "
|
|
32321
|
+
title: t("WS_INFRASTRUCTURE_CHARGE_DETAILS"),
|
|
32111
32322
|
values: infrastructureChargeRows.map(_ref6 => {
|
|
32112
32323
|
let label = _ref6.label,
|
|
32113
32324
|
value = _ref6.value,
|
|
@@ -32120,7 +32331,7 @@ const ViewBreakup = _ref => {
|
|
|
32120
32331
|
};
|
|
32121
32332
|
})
|
|
32122
32333
|
}, {
|
|
32123
|
-
title: "
|
|
32334
|
+
title: t("WS_TOTAL"),
|
|
32124
32335
|
values: [{
|
|
32125
32336
|
title: t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
32126
32337
|
value: "\u20B9" + formatNumber(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount)
|
|
@@ -32163,134 +32374,135 @@ const ViewBreakup = _ref => {
|
|
|
32163
32374
|
const propertyDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat = breakUpData.calculationDetail) === null || _breakUpData$calculat === void 0 ? void 0 : _breakUpData$calculat.propertyDetail;
|
|
32164
32375
|
const waterDemandDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat2 = breakUpData.calculationDetail) === null || _breakUpData$calculat2 === void 0 ? void 0 : _breakUpData$calculat2.waterDemandDetail;
|
|
32165
32376
|
const infrastructureChargeDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat3 = breakUpData.calculationDetail) === null || _breakUpData$calculat3 === void 0 ? void 0 : _breakUpData$calculat3.infrastructureChargeDetail;
|
|
32377
|
+
const isValidValue = value => value !== null && value !== undefined && value !== "" && value !== 0 && value !== "0" && value !== "0.0";
|
|
32166
32378
|
const propertyRows = propertyDetail ? [{
|
|
32167
|
-
label: "
|
|
32379
|
+
label: t("WS_PROPERTY_ID"),
|
|
32168
32380
|
value: propertyDetail.propertyId,
|
|
32169
32381
|
isText: true
|
|
32170
32382
|
}, {
|
|
32171
|
-
label: "
|
|
32383
|
+
label: t("WS_PROPERTY_TYPE"),
|
|
32172
32384
|
value: propertyDetail.propertyType,
|
|
32173
32385
|
isText: true
|
|
32174
32386
|
}, {
|
|
32175
|
-
label: "
|
|
32387
|
+
label: t("WS_PLOT_AREA"),
|
|
32176
32388
|
value: propertyDetail.landArea,
|
|
32177
32389
|
unit: " (sq. meter.)"
|
|
32178
32390
|
}, {
|
|
32179
|
-
label: "
|
|
32391
|
+
label: t("WS_BUILT_UP_AREA"),
|
|
32180
32392
|
value: propertyDetail.superBuiltUpArea,
|
|
32181
32393
|
unit: " (sq. meter.)"
|
|
32182
|
-
}, {
|
|
32183
|
-
label: "
|
|
32394
|
+
}, isValidValue(propertyDetail.farArea) ? {
|
|
32395
|
+
label: t("WS_FAR_AREA"),
|
|
32184
32396
|
value: propertyDetail.farArea,
|
|
32185
32397
|
isText: true
|
|
32186
|
-
}, {
|
|
32187
|
-
label: "
|
|
32398
|
+
} : null, isValidValue(propertyDetail.coveredArea) ? {
|
|
32399
|
+
label: t("WS_COVERED_AREA"),
|
|
32188
32400
|
value: propertyDetail.coveredArea,
|
|
32189
32401
|
isText: true
|
|
32190
|
-
}, {
|
|
32191
|
-
label: "
|
|
32402
|
+
} : null, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
|
|
32403
|
+
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
32192
32404
|
value: propertyDetail.numberOfDwellingUnits,
|
|
32193
32405
|
isText: true
|
|
32194
|
-
}, {
|
|
32195
|
-
label: "
|
|
32406
|
+
} : null, isValidValue(propertyDetail.numberOfBeds) ? {
|
|
32407
|
+
label: t("WS_NUMBER_OF_BEDS"),
|
|
32196
32408
|
value: propertyDetail.numberOfBeds,
|
|
32197
32409
|
isText: true
|
|
32198
|
-
}, {
|
|
32199
|
-
label: "
|
|
32410
|
+
} : null, isValidValue(propertyDetail.numberOfRooms) ? {
|
|
32411
|
+
label: t("WS_NUMBER_OF_ROOMS"),
|
|
32200
32412
|
value: propertyDetail.numberOfRooms,
|
|
32201
32413
|
isText: true
|
|
32202
|
-
}, {
|
|
32203
|
-
label: "
|
|
32414
|
+
} : null, isValidValue(propertyDetail.numberOfStudents) ? {
|
|
32415
|
+
label: t("WS_NUMBER_OF_STUDENTS"),
|
|
32204
32416
|
value: propertyDetail.numberOfStudents,
|
|
32205
32417
|
isText: true
|
|
32206
|
-
}, {
|
|
32207
|
-
label: "
|
|
32418
|
+
} : null, isValidValue(propertyDetail.numberOfStaff) ? {
|
|
32419
|
+
label: t("WS_NUMBER_OF_STAFF"),
|
|
32208
32420
|
value: propertyDetail.numberOfStaff,
|
|
32209
32421
|
isText: true
|
|
32210
|
-
}, {
|
|
32211
|
-
label: "
|
|
32422
|
+
} : null, {
|
|
32423
|
+
label: t("WS_USAGE_CATEGORY"),
|
|
32212
32424
|
value: propertyDetail.usageCategory,
|
|
32213
32425
|
isText: true
|
|
32214
|
-
}] : [];
|
|
32426
|
+
}].filter(Boolean) : [];
|
|
32215
32427
|
const waterDemandRows = waterDemandDetail ? [{
|
|
32216
|
-
label: "
|
|
32428
|
+
label: t("WS_CALCULATED_OCCUPANCY"),
|
|
32217
32429
|
value: waterDemandDetail.calculatedOccupancy,
|
|
32218
32430
|
unit: " person"
|
|
32219
32431
|
}, {
|
|
32220
|
-
label: "
|
|
32432
|
+
label: t("WS_APPLIED_LPCD"),
|
|
32221
32433
|
value: waterDemandDetail.chosenLpcd,
|
|
32222
32434
|
unit: " LPD"
|
|
32223
32435
|
}, {
|
|
32224
|
-
label: "
|
|
32436
|
+
label: t("WS_BASE_DEMAND"),
|
|
32225
32437
|
value: waterDemandDetail.baseDemand,
|
|
32226
32438
|
unit: " LPD"
|
|
32227
32439
|
}, {
|
|
32228
|
-
label: "
|
|
32440
|
+
label: t("WS_CONTINGENCY_FLOATING_OCCUPANCY"),
|
|
32229
32441
|
value: waterDemandDetail.contingencyPercentage,
|
|
32230
32442
|
unit: "%"
|
|
32231
32443
|
}, {
|
|
32232
|
-
label: "
|
|
32444
|
+
label: t("WS_TOTAL_WATER_DEMAND"),
|
|
32233
32445
|
value: waterDemandDetail.totalWaterDemandLPD,
|
|
32234
32446
|
unit: " LPD"
|
|
32235
32447
|
}] : [];
|
|
32236
32448
|
const infrastructureChargeRows = infrastructureChargeDetail ? [{
|
|
32237
|
-
label: "
|
|
32449
|
+
label: t("WS_COLONY_CATEGORY"),
|
|
32238
32450
|
value: infrastructureChargeDetail.colonyCategory,
|
|
32239
32451
|
isText: true
|
|
32240
32452
|
}, {
|
|
32241
|
-
label: "
|
|
32453
|
+
label: t("WS_PLOT_AREA"),
|
|
32242
32454
|
value: infrastructureChargeDetail.plotArea,
|
|
32243
32455
|
unit: " (sq. meter.)"
|
|
32244
32456
|
}, {
|
|
32245
|
-
label: "
|
|
32457
|
+
label: t("WS_WATER_RATE"),
|
|
32246
32458
|
value: infrastructureChargeDetail.waterRatePerLPD,
|
|
32247
32459
|
currency: true
|
|
32248
32460
|
}, {
|
|
32249
|
-
label: "
|
|
32461
|
+
label: t("WS_SEWER_RATE"),
|
|
32250
32462
|
value: infrastructureChargeDetail.sewerRatePerLPD,
|
|
32251
32463
|
currency: true
|
|
32252
32464
|
}, {
|
|
32253
|
-
label: "
|
|
32465
|
+
label: t("WS_WATER_INFRA_CHARGES"),
|
|
32254
32466
|
value: infrastructureChargeDetail.waterComponentIFC,
|
|
32255
32467
|
currency: true
|
|
32256
32468
|
}, {
|
|
32257
|
-
label: "
|
|
32469
|
+
label: t("WS_SEWER_INFRA_CHARGES"),
|
|
32258
32470
|
value: infrastructureChargeDetail.sewerComponentIFC,
|
|
32259
32471
|
currency: true
|
|
32260
32472
|
}, ...(infrastructureChargeDetail.rebateAmount > 0 ? [{
|
|
32261
|
-
label: "
|
|
32473
|
+
label: t("WS_REBATE"),
|
|
32262
32474
|
value: infrastructureChargeDetail.rebatePercentage,
|
|
32263
32475
|
unit: "%"
|
|
32264
32476
|
}, {
|
|
32265
|
-
label: "
|
|
32477
|
+
label: t("WS_REBATE_AMOUNT"),
|
|
32266
32478
|
value: infrastructureChargeDetail.rebateAmount,
|
|
32267
32479
|
currency: true
|
|
32268
32480
|
}] : []), ...(infrastructureChargeDetail.institutionalRebateApplied ? [{
|
|
32269
|
-
label: "
|
|
32481
|
+
label: t("WS_INSTITUTIONAL_REBATE"),
|
|
32270
32482
|
value: infrastructureChargeDetail.institutionalRebatePercentage,
|
|
32271
32483
|
unit: "%"
|
|
32272
32484
|
}, {
|
|
32273
|
-
label: "
|
|
32485
|
+
label: t("WS_INSTITUTIONAL_REBATE_AMOUNT"),
|
|
32274
32486
|
value: infrastructureChargeDetail.institutionalRebateAmount,
|
|
32275
32487
|
currency: true
|
|
32276
32488
|
}, {
|
|
32277
|
-
label: "
|
|
32489
|
+
label: t("WS_INSTITUTIONAL_REBATE_REASON"),
|
|
32278
32490
|
value: t(infrastructureChargeDetail.institutionalRebateReason),
|
|
32279
32491
|
isText: true
|
|
32280
32492
|
}] : []), ...(infrastructureChargeDetail.dwellingRebateApplied ? [{
|
|
32281
|
-
label: "
|
|
32493
|
+
label: t("WS_DWELLING_REBATE"),
|
|
32282
32494
|
value: infrastructureChargeDetail.dwellingRebatePercentage,
|
|
32283
32495
|
unit: "%"
|
|
32284
32496
|
}, {
|
|
32285
|
-
label: "
|
|
32497
|
+
label: t("WS_DWELLING_REBATE_AMOUNT"),
|
|
32286
32498
|
value: infrastructureChargeDetail.dwellingRebateAmount,
|
|
32287
32499
|
currency: true
|
|
32288
32500
|
}, {
|
|
32289
|
-
label: "
|
|
32501
|
+
label: t("WS_DWELLING_REBATE_REASON"),
|
|
32290
32502
|
value: t(infrastructureChargeDetail.dwellingRebateReason),
|
|
32291
32503
|
isText: true
|
|
32292
32504
|
}] : []), {
|
|
32293
|
-
label: "
|
|
32505
|
+
label: t("WS_NET_IFC"),
|
|
32294
32506
|
value: infrastructureChargeDetail.netIFC,
|
|
32295
32507
|
currency: true
|
|
32296
32508
|
}] : [];
|
|
@@ -32381,19 +32593,19 @@ const ViewBreakup = _ref => {
|
|
|
32381
32593
|
style: {
|
|
32382
32594
|
margin: "10px 0px"
|
|
32383
32595
|
}
|
|
32384
|
-
}, "
|
|
32596
|
+
}, t("WS_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(DetailRows, {
|
|
32385
32597
|
rows: propertyRows
|
|
32386
32598
|
})), waterDemandRows.length > 0 && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
32387
32599
|
style: {
|
|
32388
32600
|
margin: "10px 0px"
|
|
32389
32601
|
}
|
|
32390
|
-
}, "
|
|
32602
|
+
}, t("WS_WATER_DEMAND_DETAILS")), /*#__PURE__*/React__default.createElement(DetailRows, {
|
|
32391
32603
|
rows: waterDemandRows
|
|
32392
32604
|
})), infrastructureChargeRows.length > 0 && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
32393
32605
|
style: {
|
|
32394
32606
|
margin: "10px 0px"
|
|
32395
32607
|
}
|
|
32396
|
-
}, "
|
|
32608
|
+
}, t("WS_INFRASTRUCTURE_CHARGE_DETAILS")), /*#__PURE__*/React__default.createElement(DetailRows, {
|
|
32397
32609
|
rows: infrastructureChargeRows
|
|
32398
32610
|
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
32399
32611
|
style: {
|
|
@@ -32424,31 +32636,31 @@ const checkForNA$1 = value => {
|
|
|
32424
32636
|
return value ? value : "CS_NA";
|
|
32425
32637
|
};
|
|
32426
32638
|
const WSApplicationDetails = () => {
|
|
32427
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect121, _data$SewerageConnect122, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect125, _data$SewerageConnect126, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$WaterConnection152, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$SewerageConnect147, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect148, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect150, _data$SewerageConnect151, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178;
|
|
32639
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$SewerageConnect133, _data$SewerageConnect134, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186;
|
|
32428
32640
|
const getDisconnectionNoticeSearch = function () {
|
|
32429
32641
|
try {
|
|
32430
|
-
var _data$
|
|
32642
|
+
var _data$WaterConnection188, _data$WaterConnection189, _data$SewerageConnect182, _data$SewerageConnect183;
|
|
32431
32643
|
let key = "ws-waterdisconnectionnotice";
|
|
32432
32644
|
let details = {};
|
|
32433
32645
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
32434
|
-
var _data$
|
|
32646
|
+
var _data$WaterConnection187, _PTData$Properties11;
|
|
32435
32647
|
details = {
|
|
32436
|
-
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
32437
|
-
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32648
|
+
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection187 = data.WaterConnection) === null || _data$WaterConnection187 === void 0 ? void 0 : _data$WaterConnection187[0], {
|
|
32649
|
+
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : _PTData$Properties11[0]
|
|
32438
32650
|
})]
|
|
32439
32651
|
};
|
|
32440
32652
|
} else {
|
|
32441
|
-
var _data$
|
|
32653
|
+
var _data$SewerageConnect181, _PTData$Properties12;
|
|
32442
32654
|
key = "ws-seweragedisconnectionnotice";
|
|
32443
32655
|
details = {
|
|
32444
|
-
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
32445
|
-
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32656
|
+
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect181 = data.SewerageConnections) === null || _data$SewerageConnect181 === void 0 ? void 0 : _data$SewerageConnect181[0], {
|
|
32657
|
+
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
|
|
32446
32658
|
})]
|
|
32447
32659
|
};
|
|
32448
32660
|
}
|
|
32449
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
32450
|
-
var _data$
|
|
32451
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
32661
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection188 = data.WaterConnection) === null || _data$WaterConnection188 === void 0 ? void 0 : (_data$WaterConnection189 = _data$WaterConnection188[0]) === null || _data$WaterConnection189 === void 0 ? void 0 : _data$WaterConnection189.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect182 = data.SewerageConnections) === null || _data$SewerageConnect182 === void 0 ? void 0 : (_data$SewerageConnect183 = _data$SewerageConnect182[0]) === null || _data$SewerageConnect183 === void 0 ? void 0 : _data$SewerageConnect183.tenantId), details, key)).then(function (response) {
|
|
32662
|
+
var _data$WaterConnection190, _data$WaterConnection191, _data$SewerageConnect184, _data$SewerageConnect185;
|
|
32663
|
+
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection190 = data.WaterConnection) === null || _data$WaterConnection190 === void 0 ? void 0 : (_data$WaterConnection191 = _data$WaterConnection190[0]) === null || _data$WaterConnection191 === void 0 ? void 0 : _data$WaterConnection191.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect184 = data.SewerageConnections) === null || _data$SewerageConnect184 === void 0 ? void 0 : (_data$SewerageConnect185 = _data$SewerageConnect184[0]) === null || _data$SewerageConnect185 === void 0 ? void 0 : _data$SewerageConnect185.tenantId), {
|
|
32452
32664
|
fileStoreIds: response.filestoreIds[0]
|
|
32453
32665
|
})).then(function (fileStore) {
|
|
32454
32666
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -32529,9 +32741,10 @@ const WSApplicationDetails = () => {
|
|
|
32529
32741
|
const additionalDetails = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.additionalDetails) || {};
|
|
32530
32742
|
const connectionDetails = additionalDetails;
|
|
32531
32743
|
const useDetails = additionalDetails;
|
|
32744
|
+
const propertyAdditionalDetails = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : _PTData$Properties$.additionalDetails) || {};
|
|
32532
32745
|
const djbEmployee = additionalDetails;
|
|
32533
32746
|
const bankDetails = additionalDetails;
|
|
32534
|
-
const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32747
|
+
const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties2 = PTData.Properties) === null || _PTData$Properties2 === void 0 ? void 0 : (_PTData$Properties2$ = _PTData$Properties2[0]) === null || _PTData$Properties2$ === void 0 ? void 0 : _PTData$Properties2$.address) || additionalDetails;
|
|
32535
32748
|
const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
|
|
32536
32749
|
privacy: {
|
|
32537
32750
|
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection13 = data.WaterConnection) === null || _data$WaterConnection13 === void 0 ? void 0 : (_data$WaterConnection14 = _data$WaterConnection13[0]) === null || _data$WaterConnection14 === void 0 ? void 0 : (_data$WaterConnection15 = _data$WaterConnection14.connectionHolders) === null || _data$WaterConnection15 === void 0 ? void 0 : (_data$WaterConnection16 = _data$WaterConnection15[0]) === null || _data$WaterConnection16 === void 0 ? void 0 : _data$WaterConnection16.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect13 = data.SewerageConnections) === null || _data$SewerageConnect13 === void 0 ? void 0 : (_data$SewerageConnect14 = _data$SewerageConnect13[0]) === null || _data$SewerageConnect14 === void 0 ? void 0 : (_data$SewerageConnect15 = _data$SewerageConnect14.connectionHolders) === null || _data$SewerageConnect15 === void 0 ? void 0 : (_data$SewerageConnect16 = _data$SewerageConnect15[0]) === null || _data$SewerageConnect16 === void 0 ? void 0 : _data$SewerageConnect16.uuid,
|
|
@@ -32553,10 +32766,10 @@ const WSApplicationDetails = () => {
|
|
|
32553
32766
|
}
|
|
32554
32767
|
const handleDownloadPdf = function () {
|
|
32555
32768
|
try {
|
|
32556
|
-
var _data$WaterConnection19, _data$WaterConnection20, _data$SewerageConnect19, _data$SewerageConnect20, _data$WaterConnection21, _data$SewerageConnect21, _PTData$
|
|
32769
|
+
var _data$WaterConnection19, _data$WaterConnection20, _data$SewerageConnect19, _data$SewerageConnect20, _data$WaterConnection21, _data$SewerageConnect21, _PTData$Properties3;
|
|
32557
32770
|
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection19 = data.WaterConnection) === null || _data$WaterConnection19 === void 0 ? void 0 : (_data$WaterConnection20 = _data$WaterConnection19[0]) === null || _data$WaterConnection20 === void 0 ? void 0 : _data$WaterConnection20.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect19 = data.SewerageConnections) === null || _data$SewerageConnect19 === void 0 ? void 0 : (_data$SewerageConnect20 = _data$SewerageConnect19[0]) === null || _data$SewerageConnect20 === void 0 ? void 0 : _data$SewerageConnect20.tenantId);
|
|
32558
32771
|
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection21 = data.WaterConnection) === null || _data$WaterConnection21 === void 0 ? void 0 : _data$WaterConnection21[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect21 = data.SewerageConnections) === null || _data$SewerageConnect21 === void 0 ? void 0 : _data$SewerageConnect21[0]);
|
|
32559
|
-
const PDFdata = getWSAcknowledgementData(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32772
|
+
const PDFdata = getWSAcknowledgementData(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties3 = PTData.Properties) === null || _PTData$Properties3 === void 0 ? void 0 : _PTData$Properties3[0]), tenantInfo, t);
|
|
32560
32773
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
32561
32774
|
setShowOptions(false);
|
|
32562
32775
|
return Promise.resolve();
|
|
@@ -32566,10 +32779,10 @@ const WSApplicationDetails = () => {
|
|
|
32566
32779
|
};
|
|
32567
32780
|
const handleDownloadDisconnectPdf = function () {
|
|
32568
32781
|
try {
|
|
32569
|
-
var _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection24, _data$SewerageConnect24, _PTData$
|
|
32782
|
+
var _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection24, _data$SewerageConnect24, _PTData$Properties4;
|
|
32570
32783
|
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection22 = data.WaterConnection) === null || _data$WaterConnection22 === void 0 ? void 0 : (_data$WaterConnection23 = _data$WaterConnection22[0]) === null || _data$WaterConnection23 === void 0 ? void 0 : _data$WaterConnection23.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect22 = data.SewerageConnections) === null || _data$SewerageConnect22 === void 0 ? void 0 : (_data$SewerageConnect23 = _data$SewerageConnect22[0]) === null || _data$SewerageConnect23 === void 0 ? void 0 : _data$SewerageConnect23.tenantId);
|
|
32571
32784
|
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection24 = data.WaterConnection) === null || _data$WaterConnection24 === void 0 ? void 0 : _data$WaterConnection24[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect24 = data.SewerageConnections) === null || _data$SewerageConnect24 === void 0 ? void 0 : _data$SewerageConnect24[0]);
|
|
32572
|
-
const PDFdata = getWSDisconnectionApplicationForm(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32785
|
+
const PDFdata = getWSDisconnectionApplicationForm(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties4 = PTData.Properties) === null || _PTData$Properties4 === void 0 ? void 0 : _PTData$Properties4[0]), tenantInfo, t);
|
|
32573
32786
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
32574
32787
|
setShowOptions(false);
|
|
32575
32788
|
return Promise.resolve();
|
|
@@ -32847,14 +33060,26 @@ const WSApplicationDetails = () => {
|
|
|
32847
33060
|
textStyle: {
|
|
32848
33061
|
whiteSpace: "pre"
|
|
32849
33062
|
}
|
|
33063
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33064
|
+
label: t("WS_OWN_DETAIL_MIDDLE_NAME"),
|
|
33065
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection86 = data.WaterConnection) === null || _data$WaterConnection86 === void 0 ? void 0 : (_data$WaterConnection87 = _data$WaterConnection86[0]) === null || _data$WaterConnection87 === void 0 ? void 0 : (_data$WaterConnection88 = _data$WaterConnection87.connectionHolders) === null || _data$WaterConnection88 === void 0 ? void 0 : (_data$WaterConnection89 = _data$WaterConnection88[0]) === null || _data$WaterConnection89 === void 0 ? void 0 : _data$WaterConnection89.middleName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect81 = data.SewerageConnections) === null || _data$SewerageConnect81 === void 0 ? void 0 : (_data$SewerageConnect82 = _data$SewerageConnect81[0]) === null || _data$SewerageConnect82 === void 0 ? void 0 : (_data$SewerageConnect83 = _data$SewerageConnect82.connectionHolders) === null || _data$SewerageConnect83 === void 0 ? void 0 : (_data$SewerageConnect84 = _data$SewerageConnect83[0]) === null || _data$SewerageConnect84 === void 0 ? void 0 : _data$SewerageConnect84.middleName),
|
|
33066
|
+
textStyle: {
|
|
33067
|
+
whiteSpace: "pre"
|
|
33068
|
+
}
|
|
33069
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33070
|
+
label: t("WS_OWN_DETAIL_LAST_NAME"),
|
|
33071
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection90 = data.WaterConnection) === null || _data$WaterConnection90 === void 0 ? void 0 : (_data$WaterConnection91 = _data$WaterConnection90[0]) === null || _data$WaterConnection91 === void 0 ? void 0 : (_data$WaterConnection92 = _data$WaterConnection91.connectionHolders) === null || _data$WaterConnection92 === void 0 ? void 0 : (_data$WaterConnection93 = _data$WaterConnection92[0]) === null || _data$WaterConnection93 === void 0 ? void 0 : _data$WaterConnection93.lastName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect85 = data.SewerageConnections) === null || _data$SewerageConnect85 === void 0 ? void 0 : (_data$SewerageConnect86 = _data$SewerageConnect85[0]) === null || _data$SewerageConnect86 === void 0 ? void 0 : (_data$SewerageConnect87 = _data$SewerageConnect86.connectionHolders) === null || _data$SewerageConnect87 === void 0 ? void 0 : (_data$SewerageConnect88 = _data$SewerageConnect87[0]) === null || _data$SewerageConnect88 === void 0 ? void 0 : _data$SewerageConnect88.lastName),
|
|
33072
|
+
textStyle: {
|
|
33073
|
+
whiteSpace: "pre"
|
|
33074
|
+
}
|
|
32850
33075
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32851
33076
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
32852
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
33077
|
+
text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection94 = data.WaterConnection) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94[0]) === null || _data$WaterConnection95 === void 0 ? void 0 : (_data$WaterConnection96 = _data$WaterConnection95.connectionHolders) === null || _data$WaterConnection96 === void 0 ? void 0 : (_data$WaterConnection97 = _data$WaterConnection96[0]) === null || _data$WaterConnection97 === void 0 ? void 0 : _data$WaterConnection97.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect89 = data.SewerageConnections) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89[0]) === null || _data$SewerageConnect90 === void 0 ? void 0 : (_data$SewerageConnect91 = _data$SewerageConnect90.connectionHolders) === null || _data$SewerageConnect91 === void 0 ? void 0 : (_data$SewerageConnect92 = _data$SewerageConnect91[0]) === null || _data$SewerageConnect92 === void 0 ? void 0 : _data$SewerageConnect92.gender)),
|
|
32853
33078
|
textStyle: {
|
|
32854
33079
|
whiteSpace: "pre"
|
|
32855
33080
|
},
|
|
32856
33081
|
privacy: {
|
|
32857
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33082
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection98 = data.WaterConnection) === null || _data$WaterConnection98 === void 0 ? void 0 : (_data$WaterConnection99 = _data$WaterConnection98[0]) === null || _data$WaterConnection99 === void 0 ? void 0 : (_data$WaterConnection100 = _data$WaterConnection99.connectionHolders) === null || _data$WaterConnection100 === void 0 ? void 0 : (_data$WaterConnection101 = _data$WaterConnection100[0]) === null || _data$WaterConnection101 === void 0 ? void 0 : _data$WaterConnection101.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect93 = data.SewerageConnections) === null || _data$SewerageConnect93 === void 0 ? void 0 : (_data$SewerageConnect94 = _data$SewerageConnect93[0]) === null || _data$SewerageConnect94 === void 0 ? void 0 : (_data$SewerageConnect95 = _data$SewerageConnect94.connectionHolders) === null || _data$SewerageConnect95 === void 0 ? void 0 : (_data$SewerageConnect96 = _data$SewerageConnect95[0]) === null || _data$SewerageConnect96 === void 0 ? void 0 : _data$SewerageConnect96.uuid,
|
|
32858
33083
|
fieldName: "gender",
|
|
32859
33084
|
model: "WnSConnectionOwner",
|
|
32860
33085
|
showValue: false,
|
|
@@ -32871,12 +33096,12 @@ const WSApplicationDetails = () => {
|
|
|
32871
33096
|
}
|
|
32872
33097
|
}), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32873
33098
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
32874
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33099
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection102 = data.WaterConnection) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102[0]) === null || _data$WaterConnection103 === void 0 ? void 0 : (_data$WaterConnection104 = _data$WaterConnection103.connectionHolders) === null || _data$WaterConnection104 === void 0 ? void 0 : (_data$WaterConnection105 = _data$WaterConnection104[0]) === null || _data$WaterConnection105 === void 0 ? void 0 : _data$WaterConnection105.fatherOrHusbandName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect97 = data.SewerageConnections) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97[0]) === null || _data$SewerageConnect98 === void 0 ? void 0 : (_data$SewerageConnect99 = _data$SewerageConnect98.connectionHolders) === null || _data$SewerageConnect99 === void 0 ? void 0 : (_data$SewerageConnect100 = _data$SewerageConnect99[0]) === null || _data$SewerageConnect100 === void 0 ? void 0 : _data$SewerageConnect100.fatherOrHusbandName) || t("CS_NA"),
|
|
32875
33100
|
textStyle: {
|
|
32876
33101
|
whiteSpace: "pre"
|
|
32877
33102
|
},
|
|
32878
33103
|
privacy: {
|
|
32879
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33104
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection106 = data.WaterConnection) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106[0]) === null || _data$WaterConnection107 === void 0 ? void 0 : (_data$WaterConnection108 = _data$WaterConnection107.connectionHolders) === null || _data$WaterConnection108 === void 0 ? void 0 : (_data$WaterConnection109 = _data$WaterConnection108[0]) === null || _data$WaterConnection109 === void 0 ? void 0 : _data$WaterConnection109.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect101 = data.SewerageConnections) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101[0]) === null || _data$SewerageConnect102 === void 0 ? void 0 : (_data$SewerageConnect103 = _data$SewerageConnect102.connectionHolders) === null || _data$SewerageConnect103 === void 0 ? void 0 : (_data$SewerageConnect104 = _data$SewerageConnect103[0]) === null || _data$SewerageConnect104 === void 0 ? void 0 : _data$SewerageConnect104.uuid,
|
|
32880
33105
|
fieldName: "fatherOrHusbandName",
|
|
32881
33106
|
model: "WnSConnectionOwner",
|
|
32882
33107
|
showValue: false,
|
|
@@ -32893,12 +33118,12 @@ const WSApplicationDetails = () => {
|
|
|
32893
33118
|
}
|
|
32894
33119
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32895
33120
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
32896
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33121
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection110 = data.WaterConnection) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110[0]) === null || _data$WaterConnection111 === void 0 ? void 0 : (_data$WaterConnection112 = _data$WaterConnection111.connectionHolders) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112[0]) === null || _data$WaterConnection113 === void 0 ? void 0 : _data$WaterConnection113.relationship) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect105 = data.SewerageConnections) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105[0]) === null || _data$SewerageConnect106 === void 0 ? void 0 : (_data$SewerageConnect107 = _data$SewerageConnect106.connectionHolders) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107[0]) === null || _data$SewerageConnect108 === void 0 ? void 0 : _data$SewerageConnect108.relationship) || t("CS_NA"),
|
|
32897
33122
|
textStyle: {
|
|
32898
33123
|
whiteSpace: "pre"
|
|
32899
33124
|
},
|
|
32900
33125
|
privacy: {
|
|
32901
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33126
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection114 = data.WaterConnection) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114[0]) === null || _data$WaterConnection115 === void 0 ? void 0 : (_data$WaterConnection116 = _data$WaterConnection115.connectionHolders) === null || _data$WaterConnection116 === void 0 ? void 0 : (_data$WaterConnection117 = _data$WaterConnection116[0]) === null || _data$WaterConnection117 === void 0 ? void 0 : _data$WaterConnection117.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect109 = data.SewerageConnections) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109[0]) === null || _data$SewerageConnect110 === void 0 ? void 0 : (_data$SewerageConnect111 = _data$SewerageConnect110.connectionHolders) === null || _data$SewerageConnect111 === void 0 ? void 0 : (_data$SewerageConnect112 = _data$SewerageConnect111[0]) === null || _data$SewerageConnect112 === void 0 ? void 0 : _data$SewerageConnect112.uuid,
|
|
32902
33127
|
fieldName: "relationship",
|
|
32903
33128
|
model: "WnSConnection",
|
|
32904
33129
|
showValue: false,
|
|
@@ -32915,9 +33140,9 @@ const WSApplicationDetails = () => {
|
|
|
32915
33140
|
}
|
|
32916
33141
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32917
33142
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
32918
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33143
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection118 = data.WaterConnection) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118[0]) === null || _data$WaterConnection119 === void 0 ? void 0 : (_data$WaterConnection120 = _data$WaterConnection119.connectionHolders) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120[0]) === null || _data$WaterConnection121 === void 0 ? void 0 : _data$WaterConnection121.correspondenceAddress) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect113 = data.SewerageConnections) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113[0]) === null || _data$SewerageConnect114 === void 0 ? void 0 : (_data$SewerageConnect115 = _data$SewerageConnect114.connectionHolders) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115[0]) === null || _data$SewerageConnect116 === void 0 ? void 0 : _data$SewerageConnect116.correspondenceAddress) || t("CS_NA"),
|
|
32919
33144
|
privacy: {
|
|
32920
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33145
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection122 = data.WaterConnection) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122[0]) === null || _data$WaterConnection123 === void 0 ? void 0 : (_data$WaterConnection124 = _data$WaterConnection123.connectionHolders) === null || _data$WaterConnection124 === void 0 ? void 0 : (_data$WaterConnection125 = _data$WaterConnection124[0]) === null || _data$WaterConnection125 === void 0 ? void 0 : _data$WaterConnection125.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect117 = data.SewerageConnections) === null || _data$SewerageConnect117 === void 0 ? void 0 : (_data$SewerageConnect118 = _data$SewerageConnect117[0]) === null || _data$SewerageConnect118 === void 0 ? void 0 : (_data$SewerageConnect119 = _data$SewerageConnect118.connectionHolders) === null || _data$SewerageConnect119 === void 0 ? void 0 : (_data$SewerageConnect120 = _data$SewerageConnect119[0]) === null || _data$SewerageConnect120 === void 0 ? void 0 : _data$SewerageConnect120.uuid,
|
|
32921
33146
|
fieldName: "correspondenceAddress",
|
|
32922
33147
|
model: "WnSConnectionOwner",
|
|
32923
33148
|
showValue: false,
|
|
@@ -32934,12 +33159,12 @@ const WSApplicationDetails = () => {
|
|
|
32934
33159
|
}
|
|
32935
33160
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32936
33161
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
32937
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33162
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection126 = data.WaterConnection) === null || _data$WaterConnection126 === void 0 ? void 0 : (_data$WaterConnection127 = _data$WaterConnection126[0]) === null || _data$WaterConnection127 === void 0 ? void 0 : (_data$WaterConnection128 = _data$WaterConnection127.connectionHolders) === null || _data$WaterConnection128 === void 0 ? void 0 : (_data$WaterConnection129 = _data$WaterConnection128[0]) === null || _data$WaterConnection129 === void 0 ? void 0 : _data$WaterConnection129.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect121 = data.SewerageConnections) === null || _data$SewerageConnect121 === void 0 ? void 0 : (_data$SewerageConnect122 = _data$SewerageConnect121[0]) === null || _data$SewerageConnect122 === void 0 ? void 0 : (_data$SewerageConnect123 = _data$SewerageConnect122.connectionHolders) === null || _data$SewerageConnect123 === void 0 ? void 0 : (_data$SewerageConnect124 = _data$SewerageConnect123[0]) === null || _data$SewerageConnect124 === void 0 ? void 0 : _data$SewerageConnect124.emailId) || "NA",
|
|
32938
33163
|
textStyle: {
|
|
32939
33164
|
whiteSpace: "pre"
|
|
32940
33165
|
},
|
|
32941
33166
|
privacy: {
|
|
32942
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33167
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection130 = data.WaterConnection) === null || _data$WaterConnection130 === void 0 ? void 0 : (_data$WaterConnection131 = _data$WaterConnection130[0]) === null || _data$WaterConnection131 === void 0 ? void 0 : (_data$WaterConnection132 = _data$WaterConnection131.connectionHolders) === null || _data$WaterConnection132 === void 0 ? void 0 : (_data$WaterConnection133 = _data$WaterConnection132[0]) === null || _data$WaterConnection133 === void 0 ? void 0 : _data$WaterConnection133.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect125 = data.SewerageConnections) === null || _data$SewerageConnect125 === void 0 ? void 0 : (_data$SewerageConnect126 = _data$SewerageConnect125[0]) === null || _data$SewerageConnect126 === void 0 ? void 0 : (_data$SewerageConnect127 = _data$SewerageConnect126.connectionHolders) === null || _data$SewerageConnect127 === void 0 ? void 0 : (_data$SewerageConnect128 = _data$SewerageConnect127[0]) === null || _data$SewerageConnect128 === void 0 ? void 0 : _data$SewerageConnect128.uuid,
|
|
32943
33168
|
fieldName: "connectionHoldersEmailId",
|
|
32944
33169
|
model: "WnSConnectionOwner",
|
|
32945
33170
|
showValue: false,
|
|
@@ -32960,30 +33185,30 @@ const WSApplicationDetails = () => {
|
|
|
32960
33185
|
}
|
|
32961
33186
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32962
33187
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
32963
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33188
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection134 = data.WaterConnection) === null || _data$WaterConnection134 === void 0 ? void 0 : (_data$WaterConnection135 = _data$WaterConnection134[0]) === null || _data$WaterConnection135 === void 0 ? void 0 : _data$WaterConnection135.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect129 = data.SewerageConnections) === null || _data$SewerageConnect129 === void 0 ? void 0 : (_data$SewerageConnect130 = _data$SewerageConnect129[0]) === null || _data$SewerageConnect130 === void 0 ? void 0 : _data$SewerageConnect130.propertyId),
|
|
32964
33189
|
textStyle: {
|
|
32965
33190
|
wordBreak: "break-word"
|
|
32966
33191
|
}
|
|
32967
33192
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32968
33193
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
32969
|
-
text: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
33194
|
+
text: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties5 = PTData.Properties) === null || _PTData$Properties5 === void 0 ? void 0 : (_PTData$Properties5$ = _PTData$Properties5[0]) === null || _PTData$Properties5$ === void 0 ? void 0 : (_PTData$Properties5$$ = _PTData$Properties5$.owners.sort((a, b) => {
|
|
32970
33195
|
var _a$additionalDetails, _b$additionalDetails;
|
|
32971
33196
|
return (a === null || a === void 0 ? void 0 : (_a$additionalDetails = a.additionalDetails) === null || _a$additionalDetails === void 0 ? void 0 : _a$additionalDetails.ownerSequence) - (b === null || b === void 0 ? void 0 : (_b$additionalDetails = b.additionalDetails) === null || _b$additionalDetails === void 0 ? void 0 : _b$additionalDetails.ownerSequence);
|
|
32972
|
-
})) === null || _PTData$
|
|
33197
|
+
})) === null || _PTData$Properties5$$ === void 0 ? void 0 : (_PTData$Properties5$$2 = _PTData$Properties5$$[0]) === null || _PTData$Properties5$$2 === void 0 ? void 0 : _PTData$Properties5$$2.name,
|
|
32973
33198
|
textStyle: {
|
|
32974
33199
|
whiteSpace: "pre"
|
|
32975
33200
|
}
|
|
32976
33201
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32977
33202
|
label: t("WS_PROPERTY_ADDRESS"),
|
|
32978
|
-
text: getAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
33203
|
+
text: getAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties6 = PTData.Properties) === null || _PTData$Properties6 === void 0 ? void 0 : (_PTData$Properties6$ = _PTData$Properties6[0]) === null || _PTData$Properties6$ === void 0 ? void 0 : _PTData$Properties6$.address, t) || t("CS_NA"),
|
|
32979
33204
|
textStyle: {
|
|
32980
33205
|
wordBreak: "break-word"
|
|
32981
33206
|
},
|
|
32982
33207
|
privacy: {
|
|
32983
|
-
uuid: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
33208
|
+
uuid: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties7 = PTData.Properties) === null || _PTData$Properties7 === void 0 ? void 0 : (_PTData$Properties7$ = _PTData$Properties7[0]) === null || _PTData$Properties7$ === void 0 ? void 0 : (_PTData$Properties7$$ = _PTData$Properties7$.owners) === null || _PTData$Properties7$$ === void 0 ? void 0 : (_PTData$Properties7$$2 = _PTData$Properties7$$[0]) === null || _PTData$Properties7$$2 === void 0 ? void 0 : _PTData$Properties7$$2.uuid,
|
|
32984
33209
|
fieldName: ["doorNo", "street", "landmark"],
|
|
32985
33210
|
model: "Property",
|
|
32986
|
-
hide: !(PTData !== null && PTData !== void 0 && (_PTData$
|
|
33211
|
+
hide: !(PTData !== null && PTData !== void 0 && (_PTData$Properties8 = PTData.Properties) !== null && _PTData$Properties8 !== void 0 && (_PTData$Properties8$ = _PTData$Properties8[0]) !== null && _PTData$Properties8$ !== void 0 && _PTData$Properties8$.address),
|
|
32987
33212
|
showValue: true,
|
|
32988
33213
|
loadData: {
|
|
32989
33214
|
serviceName: "/property-services/property/_search",
|
|
@@ -33001,7 +33226,7 @@ const WSApplicationDetails = () => {
|
|
|
33001
33226
|
}
|
|
33002
33227
|
}
|
|
33003
33228
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33004
|
-
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33229
|
+
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : (_data$WaterConnection137 = _data$WaterConnection136[0]) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : (_data$SewerageConnect132 = _data$SewerageConnect131[0]) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132.propertyId)) + "&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : (_data$WaterConnection139 = _data$WaterConnection138[0]) === null || _data$WaterConnection139 === void 0 ? void 0 : _data$WaterConnection139.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : (_data$SewerageConnect134 = _data$SewerageConnect133[0]) === null || _data$SewerageConnect134 === void 0 ? void 0 : _data$SewerageConnect134.tenantId))
|
|
33005
33230
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
33006
33231
|
style: {
|
|
33007
33232
|
textAlign: "left"
|
|
@@ -33081,16 +33306,16 @@ const WSApplicationDetails = () => {
|
|
|
33081
33306
|
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType)))
|
|
33082
33307
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33083
33308
|
label: t("WS_PROPERTY_CATEGORY"),
|
|
33084
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory)))
|
|
33309
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe === void 0 ? void 0 : _propertyAdditionalDe.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe2 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe2 === void 0 ? void 0 : _propertyAdditionalDe2.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : _PTData$Properties9$.usageCategory)))
|
|
33085
33310
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33086
33311
|
label: t("WS_PROPERTY_TYPE"),
|
|
33087
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType)))
|
|
33312
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe3 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe3 === void 0 ? void 0 : _propertyAdditionalDe3.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe4 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe4 === void 0 ? void 0 : _propertyAdditionalDe4.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyType) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : _PTData$Properties0$.propertyType)))
|
|
33088
33313
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33089
33314
|
label: t("WS_WATER_CONNECTION_USAGE_TYPE"),
|
|
33090
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType)))
|
|
33315
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe5 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe5 === void 0 ? void 0 : _propertyAdditionalDe5.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe6 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe6 === void 0 ? void 0 : _propertyAdditionalDe6.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.waterConnectionUsageType)))
|
|
33091
33316
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33092
33317
|
label: t("WS_NUMBER_OF_FLOORS"),
|
|
33093
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors)))
|
|
33318
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : _PTData$Properties1$.noOfFloors)))
|
|
33094
33319
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33095
33320
|
label: t("WS_PLOT_AREA"),
|
|
33096
33321
|
text: "" + t(checkForNA$1(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))
|
|
@@ -33161,7 +33386,7 @@ const WSApplicationDetails = () => {
|
|
|
33161
33386
|
styles: {
|
|
33162
33387
|
fontSize: "28px"
|
|
33163
33388
|
}
|
|
33164
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
33389
|
+
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection140 = data.WaterConnection) === null || _data$WaterConnection140 === void 0 ? void 0 : (_data$WaterConnection141 = _data$WaterConnection140[0]) === null || _data$WaterConnection141 === void 0 ? void 0 : _data$WaterConnection141.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection142 = data.WaterConnection) === null || _data$WaterConnection142 === void 0 ? void 0 : (_data$WaterConnection143 = _data$WaterConnection142[0]) === null || _data$WaterConnection143 === void 0 ? void 0 : _data$WaterConnection143.documents.reduce((acc, current) => {
|
|
33165
33390
|
const x = acc.find(item => item.documentType === current.documentType);
|
|
33166
33391
|
if (!x) {
|
|
33167
33392
|
return acc.concat([current]);
|
|
@@ -33169,11 +33394,11 @@ const WSApplicationDetails = () => {
|
|
|
33169
33394
|
return acc;
|
|
33170
33395
|
}
|
|
33171
33396
|
}, []).map((doc, index, array) => {
|
|
33172
|
-
var _doc$documentType, _data$
|
|
33397
|
+
var _doc$documentType, _data$WaterConnection144, _data$WaterConnection145;
|
|
33173
33398
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
33174
33399
|
key: "doc-" + index
|
|
33175
33400
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
33176
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33401
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection144 = data.WaterConnection) === null || _data$WaterConnection144 === void 0 ? void 0 : (_data$WaterConnection145 = _data$WaterConnection144[0]) === null || _data$WaterConnection145 === void 0 ? void 0 : _data$WaterConnection145.documents,
|
|
33177
33402
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33178
33403
|
index: index
|
|
33179
33404
|
}), array.length != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
@@ -33185,7 +33410,7 @@ const WSApplicationDetails = () => {
|
|
|
33185
33410
|
marginBottom: "20px"
|
|
33186
33411
|
}
|
|
33187
33412
|
}) : null)));
|
|
33188
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
33413
|
+
})), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect135 = data.SewerageConnections) === null || _data$SewerageConnect135 === void 0 ? void 0 : (_data$SewerageConnect136 = _data$SewerageConnect135[0]) === null || _data$SewerageConnect136 === void 0 ? void 0 : _data$SewerageConnect136.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect137 = data.SewerageConnections) === null || _data$SewerageConnect137 === void 0 ? void 0 : (_data$SewerageConnect138 = _data$SewerageConnect137[0]) === null || _data$SewerageConnect138 === void 0 ? void 0 : _data$SewerageConnect138.documents.reduce((acc, current) => {
|
|
33189
33414
|
const x = acc.find(item => item.documentType === current.documentType);
|
|
33190
33415
|
if (!x) {
|
|
33191
33416
|
return acc.concat([current]);
|
|
@@ -33193,11 +33418,11 @@ const WSApplicationDetails = () => {
|
|
|
33193
33418
|
return acc;
|
|
33194
33419
|
}
|
|
33195
33420
|
}, []).map((doc, index, array) => {
|
|
33196
|
-
var _doc$documentType2, _data$
|
|
33421
|
+
var _doc$documentType2, _data$SewerageConnect139, _data$SewerageConnect140;
|
|
33197
33422
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
33198
33423
|
key: "doc-" + index
|
|
33199
33424
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
33200
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33425
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect139 = data.SewerageConnections) === null || _data$SewerageConnect139 === void 0 ? void 0 : (_data$SewerageConnect140 = _data$SewerageConnect139[0]) === null || _data$SewerageConnect140 === void 0 ? void 0 : _data$SewerageConnect140.documents,
|
|
33201
33426
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33202
33427
|
index: index
|
|
33203
33428
|
}), array.length != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
@@ -33209,40 +33434,40 @@ const WSApplicationDetails = () => {
|
|
|
33209
33434
|
marginBottom: "20px"
|
|
33210
33435
|
}
|
|
33211
33436
|
}) : null)));
|
|
33212
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
33437
|
+
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33213
33438
|
to: {
|
|
33214
33439
|
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService) + "/" + stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+"),
|
|
33215
|
-
search: "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33440
|
+
search: "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155.connectionHolders) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150.connectionHolders) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false) + "&consumerCode=" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode),
|
|
33216
33441
|
state: {
|
|
33217
33442
|
fromApplicationDetails: true
|
|
33218
33443
|
}
|
|
33219
33444
|
}
|
|
33220
33445
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33221
33446
|
label: t("MAKE_PAYMENT")
|
|
33222
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
33447
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection157 = data.WaterConnection) !== null && _data$WaterConnection157 !== void 0 && (_data$WaterConnection158 = _data$WaterConnection157[0]) !== null && _data$WaterConnection158 !== void 0 && _data$WaterConnection158.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection159 = data.WaterConnection) !== null && _data$WaterConnection159 !== void 0 && (_data$WaterConnection160 = _data$WaterConnection159[0]) !== null && _data$WaterConnection160 !== void 0 && _data$WaterConnection160.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect152 = data.SewerageConnections) !== null && _data$SewerageConnect152 !== void 0 && (_data$SewerageConnect153 = _data$SewerageConnect152[0]) !== null && _data$SewerageConnect153 !== void 0 && _data$SewerageConnect153.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect154 = data.SewerageConnections) !== null && _data$SewerageConnect154 !== void 0 && (_data$SewerageConnect155 = _data$SewerageConnect154[0]) !== null && _data$SewerageConnect155 !== void 0 && _data$SewerageConnect155.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33223
33448
|
to: {
|
|
33224
|
-
pathname: isMutation ? "/digit-ui/citizen/ws/mutation-application" : "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33225
|
-
search: isMutation ? "?applicationNumber=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33449
|
+
pathname: isMutation ? "/digit-ui/citizen/ws/mutation-application" : "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection161 = data.WaterConnection) === null || _data$WaterConnection161 === void 0 ? void 0 : (_data$WaterConnection162 = _data$WaterConnection161[0]) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.tenantId)),
|
|
33450
|
+
search: isMutation ? "?applicationNumber=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection163 = data.WaterConnection) === null || _data$WaterConnection163 === void 0 ? void 0 : (_data$WaterConnection164 = _data$WaterConnection163[0]) === null || _data$WaterConnection164 === void 0 ? void 0 : _data$WaterConnection164.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect158 = data.SewerageConnections) === null || _data$SewerageConnect158 === void 0 ? void 0 : (_data$SewerageConnect159 = _data$SewerageConnect158[0]) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159.applicationNo)) + "&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection165 = data.WaterConnection) === null || _data$WaterConnection165 === void 0 ? void 0 : (_data$WaterConnection166 = _data$WaterConnection165[0]) === null || _data$WaterConnection166 === void 0 ? void 0 : _data$WaterConnection166.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect160 = data.SewerageConnections) === null || _data$SewerageConnect160 === void 0 ? void 0 : (_data$SewerageConnect161 = _data$SewerageConnect160[0]) === null || _data$SewerageConnect161 === void 0 ? void 0 : _data$SewerageConnect161.tenantId)) + "&service=" + (data !== null && data !== void 0 && (_data$WaterConnection167 = data.WaterConnection) !== null && _data$WaterConnection167 !== void 0 && _data$WaterConnection167[0] ? "WATER" : "SEWERAGE") + "&propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection168 = data.WaterConnection) === null || _data$WaterConnection168 === void 0 ? void 0 : (_data$WaterConnection169 = _data$WaterConnection168[0]) === null || _data$WaterConnection169 === void 0 ? void 0 : _data$WaterConnection169.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect162 = data.SewerageConnections) === null || _data$SewerageConnect162 === void 0 ? void 0 : (_data$SewerageConnect163 = _data$SewerageConnect162[0]) === null || _data$SewerageConnect163 === void 0 ? void 0 : _data$SewerageConnect163.propertyId)) : "",
|
|
33226
33451
|
state: {
|
|
33227
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33452
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection170 = data.WaterConnection) === null || _data$WaterConnection170 === void 0 ? void 0 : (_data$WaterConnection171 = _data$WaterConnection170[0]) === null || _data$WaterConnection171 === void 0 ? void 0 : _data$WaterConnection171.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : _data$SewerageConnect165.applicationNo))
|
|
33228
33453
|
}
|
|
33229
33454
|
}
|
|
33230
33455
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33231
33456
|
label: t("COMMON_EDIT")
|
|
33232
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
33457
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection172 = data.WaterConnection) !== null && _data$WaterConnection172 !== void 0 && (_data$WaterConnection173 = _data$WaterConnection172[0]) !== null && _data$WaterConnection173 !== void 0 && _data$WaterConnection173.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection174 = data.WaterConnection) !== null && _data$WaterConnection174 !== void 0 && (_data$WaterConnection175 = _data$WaterConnection174[0]) !== null && _data$WaterConnection175 !== void 0 && _data$WaterConnection175.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect166 = data.SewerageConnections) !== null && _data$SewerageConnect166 !== void 0 && (_data$SewerageConnect167 = _data$SewerageConnect166[0]) !== null && _data$SewerageConnect167 !== void 0 && _data$SewerageConnect167.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect168 = data.SewerageConnections) !== null && _data$SewerageConnect168 !== void 0 && (_data$SewerageConnect169 = _data$SewerageConnect168[0]) !== null && _data$SewerageConnect169 !== void 0 && _data$SewerageConnect169.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33233
33458
|
to: {
|
|
33234
33459
|
pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
|
|
33235
33460
|
state: {
|
|
33236
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33461
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection176 = data.WaterConnection) === null || _data$WaterConnection176 === void 0 ? void 0 : (_data$WaterConnection177 = _data$WaterConnection176[0]) === null || _data$WaterConnection177 === void 0 ? void 0 : _data$WaterConnection177.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect170 = data.SewerageConnections) === null || _data$SewerageConnect170 === void 0 ? void 0 : (_data$SewerageConnect171 = _data$SewerageConnect170[0]) === null || _data$SewerageConnect171 === void 0 ? void 0 : _data$SewerageConnect171.applicationNo))
|
|
33237
33462
|
}
|
|
33238
33463
|
}
|
|
33239
33464
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33240
33465
|
label: t("RESUBMIT_APPLICATION"),
|
|
33241
33466
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
33242
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
33467
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect172 = data.SewerageConnections) === null || _data$SewerageConnect172 === void 0 ? void 0 : _data$SewerageConnect172[0],
|
|
33243
33468
|
serviceType: "SEWERAGE",
|
|
33244
33469
|
WSDisconnectionForm: {
|
|
33245
|
-
type: data !== null && data !== void 0 && (_data$
|
|
33470
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect173 = data.SewerageConnections) !== null && _data$SewerageConnect173 !== void 0 && (_data$SewerageConnect174 = _data$SewerageConnect173[0]) !== null && _data$SewerageConnect174 !== void 0 && _data$SewerageConnect174.isDisconnectionTemporary ? {
|
|
33246
33471
|
code: "type",
|
|
33247
33472
|
value: {
|
|
33248
33473
|
name: "Temporary",
|
|
@@ -33259,18 +33484,18 @@ const WSApplicationDetails = () => {
|
|
|
33259
33484
|
code: "Permanent"
|
|
33260
33485
|
}
|
|
33261
33486
|
},
|
|
33262
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
33487
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect175 = data.SewerageConnections) === null || _data$SewerageConnect175 === void 0 ? void 0 : (_data$SewerageConnect176 = _data$SewerageConnect175[0]) === null || _data$SewerageConnect176 === void 0 ? void 0 : _data$SewerageConnect176.dateEffectiveFrom, true),
|
|
33263
33488
|
reason: {
|
|
33264
33489
|
code: "reason",
|
|
33265
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33490
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect177 = data.SewerageConnections) === null || _data$SewerageConnect177 === void 0 ? void 0 : (_data$SewerageConnect178 = _data$SewerageConnect177[0]) === null || _data$SewerageConnect178 === void 0 ? void 0 : _data$SewerageConnect178.disconnectionReason
|
|
33266
33491
|
},
|
|
33267
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
33492
|
+
documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect179 = data.SewerageConnections) === null || _data$SewerageConnect179 === void 0 ? void 0 : (_data$SewerageConnect180 = _data$SewerageConnect179[0]) === null || _data$SewerageConnect180 === void 0 ? void 0 : _data$SewerageConnect180.documents
|
|
33268
33493
|
}
|
|
33269
33494
|
} : {
|
|
33270
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
33495
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection178 = data.WaterConnection) === null || _data$WaterConnection178 === void 0 ? void 0 : _data$WaterConnection178[0],
|
|
33271
33496
|
serviceType: "WATER",
|
|
33272
33497
|
WSDisconnectionForm: {
|
|
33273
|
-
type: data !== null && data !== void 0 && (_data$
|
|
33498
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection179 = data.WaterConnection) !== null && _data$WaterConnection179 !== void 0 && (_data$WaterConnection180 = _data$WaterConnection179[0]) !== null && _data$WaterConnection180 !== void 0 && _data$WaterConnection180.isDisconnectionTemporary ? {
|
|
33274
33499
|
code: "type",
|
|
33275
33500
|
value: {
|
|
33276
33501
|
name: "Temporary",
|
|
@@ -33287,12 +33512,12 @@ const WSApplicationDetails = () => {
|
|
|
33287
33512
|
code: "Permanent"
|
|
33288
33513
|
}
|
|
33289
33514
|
},
|
|
33290
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
33515
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection181 = data.WaterConnection) === null || _data$WaterConnection181 === void 0 ? void 0 : (_data$WaterConnection182 = _data$WaterConnection181[0]) === null || _data$WaterConnection182 === void 0 ? void 0 : _data$WaterConnection182.dateEffectiveFrom, true),
|
|
33291
33516
|
reason: {
|
|
33292
33517
|
code: "reason",
|
|
33293
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33518
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection183 = data.WaterConnection) === null || _data$WaterConnection183 === void 0 ? void 0 : (_data$WaterConnection184 = _data$WaterConnection183[0]) === null || _data$WaterConnection184 === void 0 ? void 0 : _data$WaterConnection184.disconnectionReason
|
|
33294
33519
|
},
|
|
33295
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
33520
|
+
documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection185 = data.WaterConnection) === null || _data$WaterConnection185 === void 0 ? void 0 : (_data$WaterConnection186 = _data$WaterConnection185[0]) === null || _data$WaterConnection186 === void 0 ? void 0 : _data$WaterConnection186.documents
|
|
33296
33521
|
}
|
|
33297
33522
|
})
|
|
33298
33523
|
})) : null)))));
|
|
@@ -35146,6 +35371,7 @@ const CheckPage = _ref => {
|
|
|
35146
35371
|
const propertyAddress = (value === null || value === void 0 ? void 0 : value.propertyLocationDetails) || {};
|
|
35147
35372
|
const useDetails = (value === null || value === void 0 ? void 0 : (_value$waterConnectio = value.waterConnection) === null || _value$waterConnectio === void 0 ? void 0 : _value$waterConnectio.useDetails) || {};
|
|
35148
35373
|
const djbEmployee = (value === null || value === void 0 ? void 0 : value.djbEmployee) || {};
|
|
35374
|
+
const disability = (value === null || value === void 0 ? void 0 : value.disability) || (value === null || value === void 0 ? void 0 : value.additionalDetails) || {};
|
|
35149
35375
|
const bankDetails = (value === null || value === void 0 ? void 0 : value.bankDetails) || {};
|
|
35150
35376
|
const additionalDetails = {};
|
|
35151
35377
|
const checkForNA = val => val ? val : "CS_NA";
|
|
@@ -35453,7 +35679,15 @@ const CheckPage = _ref => {
|
|
|
35453
35679
|
},
|
|
35454
35680
|
onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
|
|
35455
35681
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
35456
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null,
|
|
35682
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, "Divyangjan/Person with Disability?"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
35683
|
+
style: {
|
|
35684
|
+
marginTop: "10px",
|
|
35685
|
+
marginBottom: "30px"
|
|
35686
|
+
}
|
|
35687
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
35688
|
+
label: "Divyangjan/Person with Disability?",
|
|
35689
|
+
text: "" + (disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO"))
|
|
35690
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
35457
35691
|
style: {
|
|
35458
35692
|
marginTop: "10px",
|
|
35459
35693
|
marginBottom: "30px"
|
|
@@ -36907,20 +37141,22 @@ const getAddress$1 = (address, t) => {
|
|
|
36907
37141
|
return (address !== null && address !== void 0 && address.doorNo ? (address === null || address === void 0 ? void 0 : address.doorNo) + ", " : "") + " " + (address !== null && address !== void 0 && address.street ? (address === null || address === void 0 ? void 0 : address.street) + ", " : "") + (address !== null && address !== void 0 && address.landmark ? (address === null || address === void 0 ? void 0 : address.landmark) + ", " : "") + t(Digit.Utils.pt.getMohallaLocale(address === null || address === void 0 ? void 0 : address.locality.code, address === null || address === void 0 ? void 0 : address.tenantId)) + ", " + t(Digit.Utils.pt.getCityLocale(address === null || address === void 0 ? void 0 : address.tenantId)) + (address !== null && address !== void 0 && address.pincode && t(address === null || address === void 0 ? void 0 : address.pincode) ? ", " + address.pincode : " ");
|
|
36908
37142
|
};
|
|
36909
37143
|
const WSInfoPage = () => {
|
|
36910
|
-
var
|
|
37144
|
+
var _user$info, _user$info$userName, _user$info2, _propertyDetails$Prop;
|
|
36911
37145
|
const _useTranslation = reactI18next.useTranslation(),
|
|
36912
37146
|
t = _useTranslation.t;
|
|
36913
37147
|
const history = reactRouterDom.useHistory();
|
|
36914
37148
|
const location = reactRouterDom.useLocation();
|
|
36915
37149
|
const match = reactRouterDom.useRouteMatch();
|
|
36916
37150
|
const isEmployee = window.location.href.includes("/employee");
|
|
37151
|
+
const user = Digit.UserService.getUser();
|
|
37152
|
+
const userMobileNumber = user !== null && user !== void 0 && (_user$info = user.info) !== null && _user$info !== void 0 && (_user$info$userName = _user$info.userName) !== null && _user$info$userName !== void 0 && _user$info$userName.match(/^[0-9]{10}$/) ? user.info.userName : user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : _user$info2.mobileNumber;
|
|
36917
37153
|
const _useState = React.useState(null),
|
|
36918
37154
|
hasProperty = _useState[0],
|
|
36919
37155
|
setHasProperty = _useState[1];
|
|
36920
37156
|
const _useState2 = React.useState(null),
|
|
36921
37157
|
selectedProperty = _useState2[0],
|
|
36922
37158
|
setSelectedProperty = _useState2[1];
|
|
36923
|
-
const _useState3 = React.useState(""),
|
|
37159
|
+
const _useState3 = React.useState(isEmployee ? "" : userMobileNumber || ""),
|
|
36924
37160
|
searchMobileNumber = _useState3[0],
|
|
36925
37161
|
setSearchMobileNumber = _useState3[1];
|
|
36926
37162
|
const _useState4 = React.useState(false),
|
|
@@ -36938,9 +37174,11 @@ const WSInfoPage = () => {
|
|
|
36938
37174
|
const _useState8 = React.useState(null),
|
|
36939
37175
|
showToast = _useState8[0],
|
|
36940
37176
|
setShowToast = _useState8[1];
|
|
37177
|
+
React.useEffect(() => {
|
|
37178
|
+
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
37179
|
+
}, []);
|
|
36941
37180
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
36942
|
-
const
|
|
36943
|
-
const mobileNumberToSearch = isEmployee ? searchMobileNumber : userMobileNumber;
|
|
37181
|
+
const mobileNumberToSearch = searchMobileNumber;
|
|
36944
37182
|
const _Digit$Hooks$pt$usePr = Digit.Hooks.pt.usePropertySearch({
|
|
36945
37183
|
filters: {
|
|
36946
37184
|
mobileNumber: mobileNumberToSearch
|
|
@@ -36966,6 +37204,7 @@ const WSInfoPage = () => {
|
|
|
36966
37204
|
const isEmployee = window.location.href.includes("/employee");
|
|
36967
37205
|
const baseUrl = isEmployee ? "/digit-ui/employee/ws" : "/digit-ui/citizen/ws";
|
|
36968
37206
|
if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
|
|
37207
|
+
sessionStorage.setItem("WS_OTP_VERIFIED_PROPERTY_ID", selectedProperty.propertyId);
|
|
36969
37208
|
history.push(baseUrl + "/old-application?propertyId=" + selectedProperty.propertyId);
|
|
36970
37209
|
} else {
|
|
36971
37210
|
history.push(baseUrl + "/old-application");
|
|
@@ -36984,7 +37223,7 @@ const WSInfoPage = () => {
|
|
|
36984
37223
|
mobileNumber: mobileNumberToSearch,
|
|
36985
37224
|
tenantId: "dl",
|
|
36986
37225
|
type: "register",
|
|
36987
|
-
userType:
|
|
37226
|
+
userType: "EMPLOYEE"
|
|
36988
37227
|
}
|
|
36989
37228
|
};
|
|
36990
37229
|
return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function (response) {
|
|
@@ -37118,11 +37357,7 @@ const WSInfoPage = () => {
|
|
|
37118
37357
|
if (e.stopPropagation) e.stopPropagation();
|
|
37119
37358
|
}
|
|
37120
37359
|
if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && selectedProperty) {
|
|
37121
|
-
|
|
37122
|
-
proceedToNext();
|
|
37123
|
-
} else {
|
|
37124
|
-
handleSendOtp(e);
|
|
37125
|
-
}
|
|
37360
|
+
handleSendOtp(e);
|
|
37126
37361
|
} else if ((hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty) {
|
|
37127
37362
|
return;
|
|
37128
37363
|
} else {
|
|
@@ -37231,7 +37466,26 @@ const WSInfoPage = () => {
|
|
|
37231
37466
|
style: {
|
|
37232
37467
|
marginBottom: "24px"
|
|
37233
37468
|
}
|
|
37234
|
-
}, isEmployee && /*#__PURE__*/React__default.createElement("div", {
|
|
37469
|
+
}, !isEmployee && /*#__PURE__*/React__default.createElement("div", {
|
|
37470
|
+
style: {
|
|
37471
|
+
marginBottom: "16px"
|
|
37472
|
+
}
|
|
37473
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Label, null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
37474
|
+
t: t,
|
|
37475
|
+
type: "number",
|
|
37476
|
+
isMandatory: false,
|
|
37477
|
+
name: "mobileNumber",
|
|
37478
|
+
value: searchMobileNumber,
|
|
37479
|
+
onChange: e => {
|
|
37480
|
+
const val = e.target.value.replace(/\D/g, "").slice(0, 10);
|
|
37481
|
+
setSearchMobileNumber(val);
|
|
37482
|
+
setSelectedProperty(null);
|
|
37483
|
+
setShowOtpVerification(false);
|
|
37484
|
+
setOtp("");
|
|
37485
|
+
},
|
|
37486
|
+
placeholder: t("Enter mobile number"),
|
|
37487
|
+
maxLength: 10
|
|
37488
|
+
})), isEmployee && /*#__PURE__*/React__default.createElement("div", {
|
|
37235
37489
|
style: {
|
|
37236
37490
|
display: "flex",
|
|
37237
37491
|
flexDirection: "column",
|
|
@@ -38642,6 +38896,7 @@ const DEFAULT_SECTION_STATE = {
|
|
|
38642
38896
|
applicant: true,
|
|
38643
38897
|
contact: true,
|
|
38644
38898
|
djbEmployee: true,
|
|
38899
|
+
disability: true,
|
|
38645
38900
|
governmentEmployee: true,
|
|
38646
38901
|
address: true,
|
|
38647
38902
|
usage: true,
|
|
@@ -38694,6 +38949,9 @@ const DEFAULT_FORM_VALUES = {
|
|
|
38694
38949
|
retirementDate: "",
|
|
38695
38950
|
officeNameAndAddress: ""
|
|
38696
38951
|
},
|
|
38952
|
+
disability: {
|
|
38953
|
+
isDivyangjan: false
|
|
38954
|
+
},
|
|
38697
38955
|
governmentEmployee: {
|
|
38698
38956
|
isGovernmentEmployee: false,
|
|
38699
38957
|
organizationName: "",
|
|
@@ -38847,6 +39105,7 @@ const buildDefaultValues = () => ({
|
|
|
38847
39105
|
applicant: _extends({}, DEFAULT_FORM_VALUES.applicant),
|
|
38848
39106
|
contact: _extends({}, DEFAULT_FORM_VALUES.contact),
|
|
38849
39107
|
djbEmployee: _extends({}, DEFAULT_FORM_VALUES.djbEmployee),
|
|
39108
|
+
disability: _extends({}, DEFAULT_FORM_VALUES.disability),
|
|
38850
39109
|
propertyAddress: _extends({}, DEFAULT_FORM_VALUES.propertyAddress),
|
|
38851
39110
|
useDetails: _extends({}, DEFAULT_FORM_VALUES.useDetails),
|
|
38852
39111
|
bankDetails: _extends({}, DEFAULT_FORM_VALUES.bankDetails),
|
|
@@ -39112,7 +39371,7 @@ const FileUploadField = _ref6 => {
|
|
|
39112
39371
|
})))));
|
|
39113
39372
|
};
|
|
39114
39373
|
const NewApplication = () => {
|
|
39115
|
-
var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
|
|
39374
|
+
var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$bankDetai, _formValues$bankDetai2, _formValues$bankDetai3, _formValues$bankDetai4, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
|
|
39116
39375
|
const _useTranslation2 = reactI18next.useTranslation(),
|
|
39117
39376
|
t = _useTranslation2.t;
|
|
39118
39377
|
const history = reactRouterDom.useHistory();
|
|
@@ -39154,6 +39413,7 @@ const NewApplication = () => {
|
|
|
39154
39413
|
setWaterAndSewerageBoth = _useState12[1];
|
|
39155
39414
|
const _useState13 = React.useState(new URLSearchParams(location.search).get("propertyId")),
|
|
39156
39415
|
propertyId = _useState13[0];
|
|
39416
|
+
const initialPropertyQuery = React.useRef(location.search);
|
|
39157
39417
|
const initialFormValues = buildDefaultValues();
|
|
39158
39418
|
const _useState14 = React.useState(""),
|
|
39159
39419
|
city = _useState14[0],
|
|
@@ -39246,6 +39506,7 @@ const NewApplication = () => {
|
|
|
39246
39506
|
applicant: React__default.useRef(null),
|
|
39247
39507
|
contact: React__default.useRef(null),
|
|
39248
39508
|
djbEmployee: React__default.useRef(null),
|
|
39509
|
+
disability: React__default.useRef(null),
|
|
39249
39510
|
governmentEmployee: React__default.useRef(null),
|
|
39250
39511
|
propertyAddress: React__default.useRef(null),
|
|
39251
39512
|
useDetails: React__default.useRef(null),
|
|
@@ -39321,7 +39582,11 @@ const NewApplication = () => {
|
|
|
39321
39582
|
sectionId: "djbEmployee",
|
|
39322
39583
|
route: "djb-employee",
|
|
39323
39584
|
actions: "For DJB Employee"
|
|
39324
|
-
}] : []),
|
|
39585
|
+
}] : []), {
|
|
39586
|
+
sectionId: "disability",
|
|
39587
|
+
route: "disability",
|
|
39588
|
+
actions: "Divyangjan/Person with Disability"
|
|
39589
|
+
}, ...(isGovernmentEmployee ? [{
|
|
39325
39590
|
sectionId: "governmentEmployee",
|
|
39326
39591
|
route: "government-employee",
|
|
39327
39592
|
actions: "For Government Employee"
|
|
@@ -39402,6 +39667,12 @@ const NewApplication = () => {
|
|
|
39402
39667
|
sewerageMutation = _Digit$Hooks$ws$useWa2.mutate;
|
|
39403
39668
|
const _Digit$Hooks$ws$useWS4 = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE"),
|
|
39404
39669
|
sewerageUpdateMutation = _Digit$Hooks$ws$useWS4.mutate;
|
|
39670
|
+
React.useEffect(() => {
|
|
39671
|
+
if (location.search !== initialPropertyQuery.current) {
|
|
39672
|
+
window.sessionStorage.removeItem(FORM_STORAGE_KEY);
|
|
39673
|
+
history.replace("/digit-ui/employee/ws/info");
|
|
39674
|
+
}
|
|
39675
|
+
}, [history, location.search]);
|
|
39405
39676
|
React.useEffect(() => {
|
|
39406
39677
|
if (!isGovernmentOrganization) {
|
|
39407
39678
|
setValue("applicant.governmentOrganizationName", "");
|
|
@@ -40474,6 +40745,23 @@ const NewApplication = () => {
|
|
|
40474
40745
|
minHeight: "96px"
|
|
40475
40746
|
}
|
|
40476
40747
|
})))), /*#__PURE__*/React__default.createElement(SectionCard, {
|
|
40748
|
+
description: "Please indicate whether the applicant is a Divyangjan/Person with Disability.",
|
|
40749
|
+
isOpen: collapsedSections.disability,
|
|
40750
|
+
onToggle: toggleSection,
|
|
40751
|
+
sectionKey: "disability",
|
|
40752
|
+
title: "Divyangjan/Person with Disability?",
|
|
40753
|
+
sectionRef: sectionRefs.disability
|
|
40754
|
+
}, /*#__PURE__*/React__default.createElement(FieldBlock, {
|
|
40755
|
+
label: "Divyangjan/Person with Disability?"
|
|
40756
|
+
}, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
40757
|
+
control: control,
|
|
40758
|
+
name: "disability.isDivyangjan",
|
|
40759
|
+
render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
|
|
40760
|
+
checked: !!props.value,
|
|
40761
|
+
label: "Divyangjan/Person with Disability?",
|
|
40762
|
+
onChange: event => props.onChange(event.target.checked)
|
|
40763
|
+
})
|
|
40764
|
+
}))), /*#__PURE__*/React__default.createElement(SectionCard, {
|
|
40477
40765
|
description: t("WS_PROPERTY_ADDRESS_DESC"),
|
|
40478
40766
|
isOpen: collapsedSections.address,
|
|
40479
40767
|
onToggle: toggleSection,
|
|
@@ -41295,7 +41583,17 @@ const NewApplication = () => {
|
|
|
41295
41583
|
isFullWidth: true,
|
|
41296
41584
|
label: "Office Name & Address",
|
|
41297
41585
|
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$djbEmploy5 = formValues.djbEmployee) === null || _formValues$djbEmploy5 === void 0 ? void 0 : _formValues$djbEmploy5.officeNameAndAddress
|
|
41298
|
-
})) : null),
|
|
41586
|
+
})) : null), /*#__PURE__*/React__default.createElement(SectionCard, {
|
|
41587
|
+
description: "Divyangjan/Person with Disability declaration.",
|
|
41588
|
+
isOpen: collapsedSections.disability,
|
|
41589
|
+
onToggle: toggleSection,
|
|
41590
|
+
sectionKey: "disability",
|
|
41591
|
+
title: "Divyangjan/Person with Disability?",
|
|
41592
|
+
onEditClick: () => handleSectionEdit("disability")
|
|
41593
|
+
}, /*#__PURE__*/React__default.createElement(PreviewItem, {
|
|
41594
|
+
label: "Divyangjan/Person with Disability?",
|
|
41595
|
+
value: formValues === null || formValues === void 0 ? void 0 : (_formValues$disabilit = formValues.disability) === null || _formValues$disabilit === void 0 ? void 0 : _formValues$disabilit.isDivyangjan
|
|
41596
|
+
})), (formValues === null || formValues === void 0 ? void 0 : (_formValues$governmen = formValues.governmentEmployee) === null || _formValues$governmen === void 0 ? void 0 : _formValues$governmen.isGovernmentEmployee) && /*#__PURE__*/React__default.createElement(SectionCard, {
|
|
41299
41597
|
description: "Government employee organization details.",
|
|
41300
41598
|
isOpen: collapsedSections.governmentEmployee,
|
|
41301
41599
|
onToggle: toggleSection,
|
|
@@ -43483,6 +43781,8 @@ const ActionModal$5 = _ref => {
|
|
|
43483
43781
|
submitAction = _ref.submitAction,
|
|
43484
43782
|
applicationData = _ref.applicationData,
|
|
43485
43783
|
businessService = _ref.businessService,
|
|
43784
|
+
approvalChecklist = _ref.approvalChecklist,
|
|
43785
|
+
showApprovalChecklist = _ref.showApprovalChecklist,
|
|
43486
43786
|
cardClassName = _ref.cardClassName,
|
|
43487
43787
|
cardFormWrapperClassName = _ref.cardFormWrapperClassName,
|
|
43488
43788
|
cardFormClassName = _ref.cardFormClassName,
|
|
@@ -43585,7 +43885,7 @@ const ActionModal$5 = _ref => {
|
|
|
43585
43885
|
})();
|
|
43586
43886
|
}, [file]);
|
|
43587
43887
|
function submit(data) {
|
|
43588
|
-
var _applicationData4, _applicationData0,
|
|
43888
|
+
var _applicationData4, _applicationData0, _applicationData10, _applicationData10$ap, _applicationData11, _applicationData11$pr, _applicationData12, _applicationData12$pr, _applicationData14, _applicationData15;
|
|
43589
43889
|
let commentValue = (data === null || data === void 0 ? void 0 : data.comments) || "";
|
|
43590
43890
|
if (isReasonRequiredAction) {
|
|
43591
43891
|
var _commentValue;
|
|
@@ -43672,36 +43972,45 @@ const ActionModal$5 = _ref => {
|
|
|
43672
43972
|
}] : []
|
|
43673
43973
|
})
|
|
43674
43974
|
});
|
|
43675
|
-
if (
|
|
43975
|
+
if (showApprovalChecklist) {
|
|
43976
|
+
var _applicationData1;
|
|
43977
|
+
applicationData.additionalDetails = _extends({}, (_applicationData1 = applicationData) === null || _applicationData1 === void 0 ? void 0 : _applicationData1.additionalDetails, {
|
|
43978
|
+
waterPipelineFacility: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.waterPipelineFacility) === true,
|
|
43979
|
+
infrastructureChargesApplicable: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.infrastructureChargesApplicable) === true,
|
|
43980
|
+
rainWaterHarvesting: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.rainWaterHarvesting) === true,
|
|
43981
|
+
bulkConnectionVerification: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.bulkConnectionVerification) === true
|
|
43982
|
+
});
|
|
43983
|
+
}
|
|
43984
|
+
if (data !== null && data !== void 0 && data.date && (_applicationData10 = applicationData) !== null && _applicationData10 !== void 0 && (_applicationData10$ap = _applicationData10.applicationType) !== null && _applicationData10$ap !== void 0 && _applicationData10$ap.includes("DISCONNECT")) {
|
|
43676
43985
|
const disconnectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
43677
43986
|
applicationData.disconnectionExecutionDate = convertDateToEpochNew$1(disconnectionExecutionDate);
|
|
43678
43987
|
} else if (data !== null && data !== void 0 && data.date) {
|
|
43679
43988
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
43680
43989
|
applicationData.connectionExecutionDate = convertDateToEpochNew$1(connectionExecutionDate);
|
|
43681
43990
|
}
|
|
43682
|
-
if (((
|
|
43683
|
-
var
|
|
43684
|
-
((
|
|
43991
|
+
if (((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : (_applicationData11$pr = _applicationData11.processInstance) === null || _applicationData11$pr === void 0 ? void 0 : _applicationData11$pr.businessService) == "DisconnectWSConnection" || ((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : (_applicationData12$pr = _applicationData12.processInstance) === null || _applicationData12$pr === void 0 ? void 0 : _applicationData12$pr.businessService) == "DisconnectSWConnection" || window.location.href.includes("disconnection")) {
|
|
43992
|
+
var _applicationData13;
|
|
43993
|
+
((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.serviceType) == "WATER" ? submitAction({
|
|
43685
43994
|
WaterConnection: applicationData,
|
|
43686
43995
|
disconnectRequest: true
|
|
43687
43996
|
}) : submitAction({
|
|
43688
43997
|
SewerageConnection: applicationData,
|
|
43689
43998
|
disconnectRequest: true
|
|
43690
43999
|
});
|
|
43691
|
-
} else if (((
|
|
44000
|
+
} else if (((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
43692
44001
|
submitAction({
|
|
43693
44002
|
SewerageConnection: applicationData,
|
|
43694
44003
|
disconnectRequest: false,
|
|
43695
44004
|
reconnectRequest: true
|
|
43696
44005
|
});
|
|
43697
|
-
} else if (((
|
|
44006
|
+
} else if (((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : _applicationData15.applicationType) == "WATER_RECONNECTION") {
|
|
43698
44007
|
submitAction({
|
|
43699
44008
|
WaterConnection: applicationData,
|
|
43700
44009
|
disconnectRequest: false,
|
|
43701
44010
|
reconnectRequest: true
|
|
43702
44011
|
});
|
|
43703
44012
|
} else {
|
|
43704
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10,
|
|
44013
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData16;
|
|
43705
44014
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
43706
44015
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
43707
44016
|
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) || "";
|
|
@@ -43710,7 +44019,7 @@ const ActionModal$5 = _ref => {
|
|
|
43710
44019
|
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) || "";
|
|
43711
44020
|
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) || "";
|
|
43712
44021
|
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) || "";
|
|
43713
|
-
((
|
|
44022
|
+
((_applicationData16 = applicationData) === null || _applicationData16 === void 0 ? void 0 : _applicationData16.serviceType) == "WATER" ? submitAction({
|
|
43714
44023
|
WaterConnection: applicationData,
|
|
43715
44024
|
disconnectRequest: false,
|
|
43716
44025
|
reconnectRequest: false
|
|
@@ -43722,8 +44031,8 @@ const ActionModal$5 = _ref => {
|
|
|
43722
44031
|
}
|
|
43723
44032
|
}
|
|
43724
44033
|
React.useEffect(() => {
|
|
43725
|
-
var
|
|
43726
|
-
if (((
|
|
44034
|
+
var _applicationData17, _applicationData17$pr, _applicationData18, _applicationData18$pr;
|
|
44035
|
+
if (((_applicationData17 = applicationData) === null || _applicationData17 === void 0 ? void 0 : (_applicationData17$pr = _applicationData17.processInstance) === null || _applicationData17$pr === void 0 ? void 0 : _applicationData17$pr.businessService) == "DisconnectWSConnection" || ((_applicationData18 = applicationData) === null || _applicationData18 === void 0 ? void 0 : (_applicationData18$pr = _applicationData18.processInstance) === null || _applicationData18$pr === void 0 ? void 0 : _applicationData18$pr.businessService) == "DisconnectSWConnection") {
|
|
43727
44036
|
if (action) {
|
|
43728
44037
|
setConfig(configWSDisConnectApplication({
|
|
43729
44038
|
t,
|
|
@@ -43755,11 +44064,12 @@ const ActionModal$5 = _ref => {
|
|
|
43755
44064
|
selectedReason,
|
|
43756
44065
|
setSelectedReason,
|
|
43757
44066
|
otherReasonText,
|
|
43758
|
-
setOtherReasonText
|
|
44067
|
+
setOtherReasonText,
|
|
44068
|
+
applicationData
|
|
43759
44069
|
}));
|
|
43760
44070
|
}
|
|
43761
44071
|
}
|
|
43762
|
-
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText]);
|
|
44072
|
+
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText, showApprovalChecklist, approvalChecklist, applicationData]);
|
|
43763
44073
|
return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
43764
44074
|
headerBarMain: /*#__PURE__*/React__default.createElement(Heading$5, {
|
|
43765
44075
|
label: t(config.label.heading)
|
|
@@ -45826,9 +46136,9 @@ function PropertyDocuments(_ref) {
|
|
|
45826
46136
|
var _document$values;
|
|
45827
46137
|
document === null || document === void 0 ? void 0 : (_document$values = document.values) === null || _document$values === void 0 ? void 0 : _document$values.forEach(value => {
|
|
45828
46138
|
if (!value.isPhoto) {
|
|
45829
|
-
var _ref2, _checkedMap$value$fil, _value$originalDoc;
|
|
46139
|
+
var _ref2, _ref3, _checkedMap$value$fil, _value$originalDoc;
|
|
45830
46140
|
requiredDocsCount++;
|
|
45831
|
-
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;
|
|
46141
|
+
const isChecked = (_ref2 = (_ref3 = (_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.isVerified) != null ? _ref3 : value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.isVerified) != null ? _ref2 : false;
|
|
45832
46142
|
if (isChecked) {
|
|
45833
46143
|
checkedCount++;
|
|
45834
46144
|
}
|
|
@@ -45866,6 +46176,7 @@ function PropertyDocuments(_ref) {
|
|
|
45866
46176
|
const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("/obps") || window.location.href.includes("employee/ws");
|
|
45867
46177
|
const isWSLocation = window.location.href.includes("employee/ws");
|
|
45868
46178
|
const isStakeholderApplication = window.location.href.includes("stakeholder");
|
|
46179
|
+
const canVerifyDocuments = ["PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationStatus);
|
|
45869
46180
|
const getDocSubType = documentType => {
|
|
45870
46181
|
if (!documentType) return "";
|
|
45871
46182
|
const parts = documentType.split(".");
|
|
@@ -46072,7 +46383,7 @@ function PropertyDocuments(_ref) {
|
|
|
46072
46383
|
style: {
|
|
46073
46384
|
cursor: "pointer"
|
|
46074
46385
|
}
|
|
46075
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), !isPhoto && ((
|
|
46386
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), !isPhoto && ((_ref4, _ref5, _checkedMap$value$fil2, _value$originalDoc2, _value$isVerified, _value$originalDoc3, _ref6, _ref7, _checkedMap$value$fil3, _value$originalDoc4) => {
|
|
46076
46387
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
46077
46388
|
onClick: () => {
|
|
46078
46389
|
if (fileUrl) {
|
|
@@ -46104,7 +46415,7 @@ function PropertyDocuments(_ref) {
|
|
|
46104
46415
|
y1: "15",
|
|
46105
46416
|
x2: "12",
|
|
46106
46417
|
y2: "3"
|
|
46107
|
-
}))),
|
|
46418
|
+
}))), canVerifyDocuments && /*#__PURE__*/React__default.createElement("label", {
|
|
46108
46419
|
style: {
|
|
46109
46420
|
display: "flex",
|
|
46110
46421
|
alignItems: "center",
|
|
@@ -46114,19 +46425,20 @@ function PropertyDocuments(_ref) {
|
|
|
46114
46425
|
margin: 0
|
|
46115
46426
|
}
|
|
46116
46427
|
}, /*#__PURE__*/React__default.createElement("input", {
|
|
46117
|
-
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),
|
|
46428
|
+
key: "chk-" + (value === null || value === void 0 ? void 0 : value.fileStoreId) + "-" + ((_value$isVerified = value === null || value === void 0 ? void 0 : value.isVerified) != null ? _value$isVerified : value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified),
|
|
46118
46429
|
type: "checkbox",
|
|
46119
46430
|
className: "verify-doc-checkbox",
|
|
46120
46431
|
style: {
|
|
46121
46432
|
width: "18px",
|
|
46122
46433
|
height: "18px",
|
|
46123
|
-
accentColor: "#
|
|
46124
|
-
cursor: applicationStatus
|
|
46434
|
+
accentColor: "#1a67a3",
|
|
46435
|
+
cursor: applicationStatus === "PENDING_FOR_CONNECTION_ACTIVATION" ? "not-allowed" : "pointer"
|
|
46125
46436
|
},
|
|
46126
|
-
disabled: applicationStatus
|
|
46127
|
-
checked:
|
|
46437
|
+
disabled: applicationStatus === "PENDING_FOR_CONNECTION_ACTIVATION",
|
|
46438
|
+
checked: (_ref6 = (_ref7 = (_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.isVerified) != null ? _ref7 : value === null || value === void 0 ? void 0 : (_value$originalDoc4 = value.originalDoc) === null || _value$originalDoc4 === void 0 ? void 0 : _value$originalDoc4.isVerified) != null ? _ref6 : false,
|
|
46128
46439
|
onChange: e => {
|
|
46129
46440
|
const checked = e.target.checked;
|
|
46441
|
+
value.isVerified = checked;
|
|
46130
46442
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
46131
46443
|
value.originalDoc.isVerified = checked;
|
|
46132
46444
|
}
|
|
@@ -47223,8 +47535,8 @@ const DueVerification = _ref => {
|
|
|
47223
47535
|
return newData;
|
|
47224
47536
|
});
|
|
47225
47537
|
}, [applicationData]);
|
|
47226
|
-
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus)
|
|
47227
|
-
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "
|
|
47538
|
+
const isPendingApproval = ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_ZRO_APPROVAL"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
47539
|
+
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_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);
|
|
47228
47540
|
const columns = React.useMemo(() => {
|
|
47229
47541
|
const baseColumns = [{
|
|
47230
47542
|
Header: t("K No."),
|
|
@@ -47273,6 +47585,51 @@ const DueVerification = _ref => {
|
|
|
47273
47585
|
const _useState4 = React.useState(null),
|
|
47274
47586
|
showToast = _useState4[0],
|
|
47275
47587
|
setShowToast = _useState4[1];
|
|
47588
|
+
const _useState5 = React.useState(null),
|
|
47589
|
+
zroDropdownOptions = _useState5[0],
|
|
47590
|
+
setZroDropdownOptions = _useState5[1];
|
|
47591
|
+
const _useState6 = React.useState(null),
|
|
47592
|
+
selectedZroOption = _useState6[0],
|
|
47593
|
+
setSelectedZroOption = _useState6[1];
|
|
47594
|
+
const isZROApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_ZRO_APPROVAL";
|
|
47595
|
+
React.useEffect(() => {
|
|
47596
|
+
let isMounted = true;
|
|
47597
|
+
const fetchDueVerification = function () {
|
|
47598
|
+
try {
|
|
47599
|
+
return Promise.resolve(function () {
|
|
47600
|
+
if (isZROApproval && applicationData !== null && applicationData !== void 0 && applicationData.applicationNo) {
|
|
47601
|
+
return _catch(function () {
|
|
47602
|
+
return Promise.resolve(checkDueVerification({
|
|
47603
|
+
DueVerification: {
|
|
47604
|
+
applicationNo: applicationData.applicationNo
|
|
47605
|
+
}
|
|
47606
|
+
})).then(function (response) {
|
|
47607
|
+
if (!isMounted) return;
|
|
47608
|
+
const dueVerifications = Array.isArray(response) ? response : (response === null || response === void 0 ? void 0 : response.DueVerifications) || (response === null || response === void 0 ? void 0 : response.dueVerifications) || (response === null || response === void 0 ? void 0 : response.dueVerification) || [];
|
|
47609
|
+
if (dueVerifications && dueVerifications.length > 0) {
|
|
47610
|
+
const options = dueVerifications.map(item => _extends({
|
|
47611
|
+
code: item.kno,
|
|
47612
|
+
name: item.kno
|
|
47613
|
+
}, item));
|
|
47614
|
+
setZroDropdownOptions(options);
|
|
47615
|
+
} else {
|
|
47616
|
+
setZroDropdownOptions([]);
|
|
47617
|
+
}
|
|
47618
|
+
});
|
|
47619
|
+
}, function (error) {
|
|
47620
|
+
console.error("Error auto-fetching due verification:", error);
|
|
47621
|
+
});
|
|
47622
|
+
}
|
|
47623
|
+
}());
|
|
47624
|
+
} catch (e) {
|
|
47625
|
+
return Promise.reject(e);
|
|
47626
|
+
}
|
|
47627
|
+
};
|
|
47628
|
+
fetchDueVerification();
|
|
47629
|
+
return () => {
|
|
47630
|
+
isMounted = false;
|
|
47631
|
+
};
|
|
47632
|
+
}, [isZROApproval, applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo]);
|
|
47276
47633
|
const handleAdd = function () {
|
|
47277
47634
|
try {
|
|
47278
47635
|
return Promise.resolve(function () {
|
|
@@ -47362,13 +47719,23 @@ const DueVerification = _ref => {
|
|
|
47362
47719
|
style: {
|
|
47363
47720
|
color: "red"
|
|
47364
47721
|
}
|
|
47365
|
-
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
47722
|
+
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
47723
|
+
option: zroDropdownOptions,
|
|
47724
|
+
select: val => {
|
|
47725
|
+
setSelectedZroOption(val);
|
|
47726
|
+
setKno(val.code);
|
|
47727
|
+
},
|
|
47728
|
+
selected: selectedZroOption,
|
|
47729
|
+
optionKey: "name",
|
|
47730
|
+
t: t,
|
|
47731
|
+
placeholder: t("WS_SELECT_KNO_PLACEHOLDER") || "Select K No."
|
|
47732
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
47366
47733
|
type: "text",
|
|
47367
47734
|
value: kno,
|
|
47368
47735
|
onChange: e => setKno(e.target.value),
|
|
47369
47736
|
style: {
|
|
47370
47737
|
width: "100%",
|
|
47371
|
-
|
|
47738
|
+
marginTop: "10px"
|
|
47372
47739
|
}
|
|
47373
47740
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
47374
47741
|
style: {
|
|
@@ -47383,9 +47750,10 @@ const DueVerification = _ref => {
|
|
|
47383
47750
|
padding: "8px 24px",
|
|
47384
47751
|
borderRadius: "4px",
|
|
47385
47752
|
border: "none",
|
|
47386
|
-
cursor: "pointer"
|
|
47753
|
+
cursor: "pointer",
|
|
47754
|
+
color: "white"
|
|
47387
47755
|
}
|
|
47388
|
-
},
|
|
47756
|
+
}, "Search"))), tableData.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
47389
47757
|
style: {
|
|
47390
47758
|
marginTop: "15px",
|
|
47391
47759
|
overflowX: "auto"
|
|
@@ -47408,148 +47776,81 @@ const DueVerification = _ref => {
|
|
|
47408
47776
|
}));
|
|
47409
47777
|
};
|
|
47410
47778
|
|
|
47411
|
-
const
|
|
47412
|
-
|
|
47413
|
-
|
|
47414
|
-
|
|
47415
|
-
|
|
47416
|
-
|
|
47417
|
-
|
|
47418
|
-
|
|
47419
|
-
|
|
47420
|
-
|
|
47421
|
-
|
|
47422
|
-
|
|
47423
|
-
|
|
47424
|
-
|
|
47425
|
-
|
|
47426
|
-
|
|
47427
|
-
|
|
47428
|
-
|
|
47429
|
-
|
|
47430
|
-
|
|
47431
|
-
|
|
47432
|
-
|
|
47433
|
-
|
|
47434
|
-
|
|
47435
|
-
}
|
|
47436
|
-
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
47437
|
-
let matchedType = null;
|
|
47438
|
-
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
47439
|
-
if (inspectionCode) {
|
|
47440
|
-
matchedType = [{
|
|
47441
|
-
i18nKey: "New Connection Visit",
|
|
47442
|
-
code: "new_connection_visit"
|
|
47443
|
-
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
47444
|
-
}
|
|
47445
|
-
setInspectionType(matchedType || defaultInspectionType);
|
|
47446
|
-
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
47447
|
-
if (dateValue && typeof dateValue === 'number') {
|
|
47448
|
-
const d = new Date(dateValue);
|
|
47449
|
-
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
47450
|
-
} else if (dateValue && typeof dateValue === 'string' && dateValue.includes('-')) ; else if (dateValue) {
|
|
47451
|
-
const num = Number(dateValue);
|
|
47452
|
-
if (!isNaN(num)) {
|
|
47453
|
-
const d = new Date(num);
|
|
47454
|
-
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
47455
|
-
}
|
|
47456
|
-
}
|
|
47457
|
-
setInspectionDate(dateValue);
|
|
47458
|
-
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
47459
|
-
}
|
|
47460
|
-
}, [applicationData]);
|
|
47461
|
-
const inspectionTypeOptions = [{
|
|
47462
|
-
i18nKey: "New Connection Visit",
|
|
47463
|
-
code: "new_connection_visit"
|
|
47779
|
+
const getWSCurrentState = (applicationData, workflowDetails) => {
|
|
47780
|
+
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0;
|
|
47781
|
+
return (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.processInstances) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2[0]) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.state) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.ProcessInstances) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.state) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.actionState) === null || _workflowDetails$data0 === void 0 ? void 0 : _workflowDetails$data0.state) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status);
|
|
47782
|
+
};
|
|
47783
|
+
const isWSApprovalChecklistState = (applicationData, workflowDetails) => getWSCurrentState(applicationData, workflowDetails) === "PENDING_FOR_EE_APPROVAL";
|
|
47784
|
+
const getWSApprovalChecklistFields = applicationData => {
|
|
47785
|
+
var _applicationData$addi, _applicationData$addi2, _applicationData$prop, _applicationData$prop2;
|
|
47786
|
+
const plotArea = Number((applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi = applicationData.additionalDetails) === null || _applicationData$addi === void 0 ? void 0 : _applicationData$addi.plotArea) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi2 = applicationData.additionalDetails) === null || _applicationData$addi2 === void 0 ? void 0 : _applicationData$addi2.plotSize) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop = applicationData.property) === null || _applicationData$prop === void 0 ? void 0 : _applicationData$prop.landArea) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop2 = applicationData.property) === null || _applicationData$prop2 === void 0 ? void 0 : _applicationData$prop2.plotArea) || 0);
|
|
47787
|
+
return [{
|
|
47788
|
+
name: "waterPipelineFacility",
|
|
47789
|
+
label: "Water Pipeline Facility",
|
|
47790
|
+
isMandatory: true
|
|
47791
|
+
}, {
|
|
47792
|
+
name: "infrastructureChargesApplicable",
|
|
47793
|
+
label: "Infrastructure Charges Applicable",
|
|
47794
|
+
isMandatory: plotArea > 200
|
|
47795
|
+
}, {
|
|
47796
|
+
name: "rainWaterHarvesting",
|
|
47797
|
+
label: "Rainwater Harvesting",
|
|
47798
|
+
isMandatory: false
|
|
47799
|
+
}, {
|
|
47800
|
+
name: "bulkConnectionVerification",
|
|
47801
|
+
label: "Bulk Connection Verification",
|
|
47802
|
+
isMandatory: false
|
|
47464
47803
|
}];
|
|
47465
|
-
|
|
47466
|
-
|
|
47467
|
-
|
|
47468
|
-
|
|
47469
|
-
}
|
|
47470
|
-
|
|
47471
|
-
|
|
47472
|
-
|
|
47473
|
-
|
|
47474
|
-
|
|
47475
|
-
|
|
47476
|
-
|
|
47477
|
-
|
|
47478
|
-
|
|
47479
|
-
|
|
47480
|
-
|
|
47481
|
-
|
|
47804
|
+
};
|
|
47805
|
+
const isWSApprovalChecklistComplete = function (applicationData, values) {
|
|
47806
|
+
if (values === void 0) {
|
|
47807
|
+
values = {};
|
|
47808
|
+
}
|
|
47809
|
+
return getWSApprovalChecklistFields(applicationData).filter(field => field.isMandatory).every(field => {
|
|
47810
|
+
var _values;
|
|
47811
|
+
return ((_values = values) === null || _values === void 0 ? void 0 : _values[field.name]) === true;
|
|
47812
|
+
});
|
|
47813
|
+
};
|
|
47814
|
+
const WSApprovalChecklist = _ref => {
|
|
47815
|
+
let applicationData = _ref.applicationData,
|
|
47816
|
+
showApprovalChecklist = _ref.showApprovalChecklist,
|
|
47817
|
+
_ref$values = _ref.values,
|
|
47818
|
+
values = _ref$values === void 0 ? {} : _ref$values,
|
|
47819
|
+
onChange = _ref.onChange;
|
|
47820
|
+
if (!showApprovalChecklist) return null;
|
|
47482
47821
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
47483
47822
|
style: {
|
|
47484
|
-
|
|
47823
|
+
marginTop: "24px",
|
|
47824
|
+
padding: "16px",
|
|
47825
|
+
border: "1px solid #D6D5D4",
|
|
47826
|
+
borderRadius: "4px",
|
|
47827
|
+
background: "#FAFAFA"
|
|
47485
47828
|
}
|
|
47486
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
47829
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
47487
47830
|
style: {
|
|
47488
|
-
|
|
47489
|
-
|
|
47490
|
-
|
|
47831
|
+
margin: "0 0 16px",
|
|
47832
|
+
color: "#0B0C0C",
|
|
47833
|
+
fontSize: "20px"
|
|
47491
47834
|
}
|
|
47492
|
-
},
|
|
47835
|
+
}, "Approval Checklist"), /*#__PURE__*/React__default.createElement("div", {
|
|
47493
47836
|
style: {
|
|
47494
47837
|
display: "flex",
|
|
47495
|
-
|
|
47496
|
-
|
|
47497
|
-
|
|
47498
|
-
|
|
47499
|
-
|
|
47500
|
-
|
|
47501
|
-
|
|
47502
|
-
|
|
47503
|
-
|
|
47504
|
-
|
|
47505
|
-
|
|
47506
|
-
marginBottom: "8px",
|
|
47507
|
-
display: "inline-block"
|
|
47508
|
-
}
|
|
47509
|
-
}, t("Inspection Type")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
47510
|
-
option: inspectionTypeOptions,
|
|
47511
|
-
optionKey: "i18nKey",
|
|
47512
|
-
selected: inspectionType,
|
|
47513
|
-
select: handleInspectionTypeChange,
|
|
47514
|
-
t: t,
|
|
47515
|
-
disable: readOnly
|
|
47516
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
47517
|
-
style: {
|
|
47518
|
-
flex: 1
|
|
47519
|
-
}
|
|
47520
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
47521
|
-
style: {
|
|
47522
|
-
fontSize: "16px",
|
|
47523
|
-
marginBottom: "8px",
|
|
47524
|
-
display: "inline-block"
|
|
47525
|
-
}
|
|
47526
|
-
}, t("Inspection Date")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.DatePicker, {
|
|
47527
|
-
date: inspectionDate,
|
|
47528
|
-
onChange: handleInspectionDateChange,
|
|
47529
|
-
disabled: readOnly
|
|
47530
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
47531
|
-
style: {
|
|
47532
|
-
display: "flex"
|
|
47533
|
-
}
|
|
47534
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
47535
|
-
style: {
|
|
47536
|
-
flex: 1
|
|
47537
|
-
}
|
|
47538
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
47539
|
-
style: {
|
|
47540
|
-
fontSize: "16px",
|
|
47541
|
-
marginBottom: "8px",
|
|
47542
|
-
display: "inline-block"
|
|
47543
|
-
}
|
|
47544
|
-
}, t("Inspector Name")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
47545
|
-
value: inspectorName,
|
|
47546
|
-
onChange: handleInspectorNameChange,
|
|
47547
|
-
disabled: readOnly
|
|
47838
|
+
flexDirection: "column",
|
|
47839
|
+
gap: "14px"
|
|
47840
|
+
}
|
|
47841
|
+
}, getWSApprovalChecklistFields(applicationData).map(field => /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
|
|
47842
|
+
key: field.name,
|
|
47843
|
+
pageType: "employee",
|
|
47844
|
+
label: "" + field.label + (field.isMandatory ? " *" : ""),
|
|
47845
|
+
checked: (values === null || values === void 0 ? void 0 : values[field.name]) === true,
|
|
47846
|
+
onChange: event => onChange(_extends({}, values, {
|
|
47847
|
+
[field.name]: event.target.checked
|
|
47848
|
+
}))
|
|
47548
47849
|
}))));
|
|
47549
47850
|
};
|
|
47550
47851
|
|
|
47551
47852
|
function ApplicationDetailsContent(_ref) {
|
|
47552
|
-
var _applicationDetails$a, _workflowDetails$
|
|
47853
|
+
var _applicationDetails$a, _applicationDetails$a2, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _workflowDetails$data20, _workflowDetails$data21, _workflowDetails$data29, _workflowDetails$data30;
|
|
47553
47854
|
let applicationDetails = _ref.applicationDetails,
|
|
47554
47855
|
workflowDetails = _ref.workflowDetails,
|
|
47555
47856
|
isDataLoading = _ref.isDataLoading,
|
|
@@ -47563,7 +47864,11 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47563
47864
|
paymentsList = _ref.paymentsList,
|
|
47564
47865
|
oldValue = _ref.oldValue,
|
|
47565
47866
|
_ref$isInfoLabel = _ref.isInfoLabel,
|
|
47566
|
-
isInfoLabel = _ref$isInfoLabel === void 0 ? false : _ref$isInfoLabel
|
|
47867
|
+
isInfoLabel = _ref$isInfoLabel === void 0 ? false : _ref$isInfoLabel,
|
|
47868
|
+
approvalChecklist = _ref.approvalChecklist,
|
|
47869
|
+
onApprovalChecklistChange = _ref.onApprovalChecklistChange,
|
|
47870
|
+
_ref$showApprovalChec = _ref.showApprovalChecklist,
|
|
47871
|
+
showApprovalChecklist = _ref$showApprovalChec === void 0 ? false : _ref$showApprovalChec;
|
|
47567
47872
|
const _useTranslation = reactI18next.useTranslation(),
|
|
47568
47873
|
t = _useTranslation.t;
|
|
47569
47874
|
const _useState = React.useState(false),
|
|
@@ -47725,6 +48030,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47725
48030
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc")) {
|
|
47726
48031
|
return {
|
|
47727
48032
|
justifyContent: "space-between",
|
|
48033
|
+
gap: "24px",
|
|
47728
48034
|
fontSize: "16px",
|
|
47729
48035
|
lineHeight: "19px",
|
|
47730
48036
|
color: "#0B0C0C"
|
|
@@ -47732,6 +48038,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47732
48038
|
} else if (checkLocation) {
|
|
47733
48039
|
return {
|
|
47734
48040
|
justifyContent: "space-between",
|
|
48041
|
+
gap: "24px",
|
|
47735
48042
|
fontSize: "16px",
|
|
47736
48043
|
lineHeight: "19px",
|
|
47737
48044
|
color: "#0B0C0C"
|
|
@@ -47817,6 +48124,10 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47817
48124
|
const handleViewClick = data => {
|
|
47818
48125
|
setShowPopup(true);
|
|
47819
48126
|
};
|
|
48127
|
+
const documentsDetailIndex = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.findIndex(detail => {
|
|
48128
|
+
var _detail$additionalDet;
|
|
48129
|
+
return detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.documents;
|
|
48130
|
+
});
|
|
47820
48131
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
47821
48132
|
style: {
|
|
47822
48133
|
position: "relative"
|
|
@@ -47829,8 +48140,8 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47829
48140
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
47830
48141
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
47831
48142
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
47832
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
47833
|
-
var _detail$title, _detail$values, _detail$
|
|
48143
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationDetails) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.map((detail, index) => {
|
|
48144
|
+
var _detail$title, _detail$values, _detail$additionalDet2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _detail$additionalDet3, _applicationDetails$a6, _applicationDetails$a7, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _detail$additionalDet20, _applicationData$appl, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
|
|
47834
48145
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
47835
48146
|
key: index
|
|
47836
48147
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -48021,49 +48332,47 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48021
48332
|
}), value.title === "PT_TOTAL_DUES" ? /*#__PURE__*/React__default.createElement(ArrearSummary, {
|
|
48022
48333
|
bill: (_fetchBillData$Bill = fetchBillData.Bill) === null || _fetchBillData$Bill === void 0 ? void 0 : _fetchBillData$Bill[0]
|
|
48023
48334
|
}) : "");
|
|
48024
|
-
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React__default.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48335
|
+
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React__default.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.inspectionReport) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
48025
48336
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
48026
48337
|
paymentsList: paymentsList
|
|
48027
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48028
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48029
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48030
|
-
floors: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48031
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48032
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48033
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48034
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48035
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48338
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationData) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.additionalDetails) === null || _applicationDetails$a4 === void 0 ? void 0 : (_applicationDetails$a5 = _applicationDetails$a4.fieldinspection_pending) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.fiReport) && /*#__PURE__*/React__default.createElement(InspectionReport, {
|
|
48339
|
+
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : (_applicationDetails$a7 = _applicationDetails$a6.additionalDetails) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.fieldinspection_pending
|
|
48340
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors) && /*#__PURE__*/React__default.createElement(PropertyFloors, {
|
|
48341
|
+
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.floors
|
|
48342
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet6 = detail.additionalDetails) === null || _detail$additionalDet6 === void 0 ? void 0 : _detail$additionalDet6.units) && /*#__PURE__*/React__default.createElement(TLTradeUnits, {
|
|
48343
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.units
|
|
48344
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.accessories) && /*#__PURE__*/React__default.createElement(TLTradeAccessories, {
|
|
48345
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.accessories
|
|
48346
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React__default.createElement(PermissionCheck, {
|
|
48036
48347
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
48037
48348
|
t: t,
|
|
48038
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48039
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48349
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.permissions
|
|
48350
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.obpsDocuments) && /*#__PURE__*/React__default.createElement(BPADocuments, {
|
|
48040
48351
|
t: t,
|
|
48041
48352
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
48042
48353
|
docs: detail.additionalDetails.obpsDocuments,
|
|
48043
48354
|
bpaActionsDetails: workflowDetails
|
|
48044
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48355
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.noc) && /*#__PURE__*/React__default.createElement(NOCDocuments, {
|
|
48045
48356
|
t: t,
|
|
48046
48357
|
isNoc: true,
|
|
48047
48358
|
NOCdata: detail.values,
|
|
48048
48359
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
48049
48360
|
docs: detail.additionalDetails.noc,
|
|
48050
|
-
noc: (_detail$
|
|
48361
|
+
noc: (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.data,
|
|
48051
48362
|
bpaActionsDetails: workflowDetails
|
|
48052
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48363
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.scruntinyDetails) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
48053
48364
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
48054
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48365
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.buildingExtractionDetails) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
48055
48366
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
48056
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48367
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.subOccupancyTableDetails) && /*#__PURE__*/React__default.createElement(SubOccupancyTable, {
|
|
48057
48368
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
48058
48369
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
48059
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48060
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48061
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48062
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48063
|
-
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
48064
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48065
|
-
applicationData: applicationData
|
|
48066
|
-
}), " ", (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, {
|
|
48370
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.documentsWithUrl) && /*#__PURE__*/React__default.createElement(DocumentsPreview, {
|
|
48371
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documentsWithUrl
|
|
48372
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents) && index === documentsDetailIndex && /*#__PURE__*/React__default.createElement(PropertyDocuments, {
|
|
48373
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents,
|
|
48374
|
+
applicationStatus: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.actionState) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.processInstances) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.state) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.ProcessInstances) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0[0]) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1.state) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.state) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status)
|
|
48375
|
+
}), (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$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, {
|
|
48067
48376
|
applicationData: applicationData
|
|
48068
48377
|
}), (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, {
|
|
48069
48378
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
@@ -48081,23 +48390,28 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48081
48390
|
wsAdditionalDetails: detail,
|
|
48082
48391
|
workflowDetails: workflowDetails
|
|
48083
48392
|
}));
|
|
48084
|
-
}),
|
|
48393
|
+
}), showApprovalChecklist && /*#__PURE__*/React__default.createElement(WSApprovalChecklist, {
|
|
48394
|
+
applicationData: applicationData,
|
|
48395
|
+
showApprovalChecklist: showApprovalChecklist,
|
|
48396
|
+
values: approvalChecklist,
|
|
48397
|
+
onChange: onApprovalChecklistChange
|
|
48398
|
+
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.timeline) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
48085
48399
|
id: "timeline"
|
|
48086
48400
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
48087
48401
|
style: {
|
|
48088
48402
|
marginBottom: "16px",
|
|
48089
48403
|
marginTop: "32px"
|
|
48090
48404
|
}
|
|
48091
|
-
}, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
48405
|
+
}, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data13 = workflowDetails.data) !== null && _workflowDetails$data13 !== void 0 && _workflowDetails$data13.timeline && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data14 = workflowDetails.data) === null || _workflowDetails$data14 === void 0 ? void 0 : (_workflowDetails$data15 = _workflowDetails$data14.timeline) === null || _workflowDetails$data15 === void 0 ? void 0 : _workflowDetails$data15.length) === 1 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckPoint, {
|
|
48092
48406
|
isCompleted: true,
|
|
48093
|
-
label: t("" + timelineStatusPrefix + (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48094
|
-
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48095
|
-
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48096
|
-
var _workflowDetails$
|
|
48407
|
+
label: t("" + timelineStatusPrefix + (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data16 = workflowDetails.data) === null || _workflowDetails$data16 === void 0 ? void 0 : (_workflowDetails$data17 = _workflowDetails$data16.timeline[0]) === null || _workflowDetails$data17 === void 0 ? void 0 : _workflowDetails$data17.state)),
|
|
48408
|
+
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data18 = workflowDetails.data) === null || _workflowDetails$data18 === void 0 ? void 0 : _workflowDetails$data18.timeline[0], workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : _workflowDetails$data19.timeline)
|
|
48409
|
+
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data20 = workflowDetails.data) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.timeline) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : _workflowDetails$data21.timeline.slice(0, showAllTimeline ? workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data.timeline.length : 2).map((checkpoint, index, arr) => {
|
|
48410
|
+
var _workflowDetails$data28;
|
|
48097
48411
|
let timelineStatusPostfix = "";
|
|
48098
48412
|
if (window.location.href.includes("/obps/")) {
|
|
48099
|
-
var _workflowDetails$
|
|
48100
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
48413
|
+
var _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27;
|
|
48414
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data22 = workflowDetails.data) !== null && _workflowDetails$data22 !== void 0 && (_workflowDetails$data23 = _workflowDetails$data22.timeline[index - 1]) !== null && _workflowDetails$data23 !== void 0 && (_workflowDetails$data24 = _workflowDetails$data23.state) !== null && _workflowDetails$data24 !== void 0 && _workflowDetails$data24.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data25 = workflowDetails.data) !== null && _workflowDetails$data25 !== void 0 && (_workflowDetails$data26 = _workflowDetails$data25.timeline[index - 1]) !== null && _workflowDetails$data26 !== void 0 && (_workflowDetails$data27 = _workflowDetails$data26.state) !== null && _workflowDetails$data27 !== void 0 && _workflowDetails$data27.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = "_NOT_DONE";else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = "_BY_ARCHITECT_DONE";else timelineStatusPostfix = index === 0 ? "" : "_DONE";
|
|
48101
48415
|
}
|
|
48102
48416
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
48103
48417
|
key: index
|
|
@@ -48106,9 +48420,9 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48106
48420
|
isCompleted: index === 0,
|
|
48107
48421
|
info: checkpoint.comment,
|
|
48108
48422
|
label: t("" + timelineStatusPrefix + ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "REOPEN" ? checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction : checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint[statusAttribute]) + timelineStatusPostfix),
|
|
48109
|
-
customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48423
|
+
customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data28 = workflowDetails.data) === null || _workflowDetails$data28 === void 0 ? void 0 : _workflowDetails$data28.timeline)
|
|
48110
48424
|
}));
|
|
48111
|
-
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48425
|
+
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data29 = workflowDetails.data) === null || _workflowDetails$data29 === void 0 ? void 0 : (_workflowDetails$data30 = _workflowDetails$data29.timeline) === null || _workflowDetails$data30 === void 0 ? void 0 : _workflowDetails$data30.length) > 2 && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
48112
48426
|
label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
|
|
48113
48427
|
onClick: toggleTimeline
|
|
48114
48428
|
})))), /*#__PURE__*/React__default.createElement("div", null, showPopup && /*#__PURE__*/React__default.createElement(RenewPopup, {
|
|
@@ -48225,7 +48539,9 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48225
48539
|
_ref$MenuStyle = _ref.MenuStyle,
|
|
48226
48540
|
MenuStyle = _ref$MenuStyle === void 0 ? {} : _ref$MenuStyle,
|
|
48227
48541
|
isAction = _ref.isAction,
|
|
48228
|
-
applicationDetails = _ref.applicationDetails
|
|
48542
|
+
applicationDetails = _ref.applicationDetails,
|
|
48543
|
+
_ref$isApprovalCheckl = _ref.isApprovalChecklistValid,
|
|
48544
|
+
isApprovalChecklistValid = _ref$isApprovalCheckl === void 0 ? false : _ref$isApprovalCheckl;
|
|
48229
48545
|
const _useTranslation = reactI18next.useTranslation(),
|
|
48230
48546
|
t = _useTranslation.t;
|
|
48231
48547
|
let user = Digit.UserService.getUser();
|
|
@@ -48234,7 +48550,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48234
48550
|
if (typeof window !== "undefined" && typeof window.isDocumentsVerified !== "undefined") {
|
|
48235
48551
|
return !window.isDocumentsVerified;
|
|
48236
48552
|
}
|
|
48237
|
-
return
|
|
48553
|
+
return false;
|
|
48238
48554
|
}),
|
|
48239
48555
|
isSubmitDisabled = _React$useState[0],
|
|
48240
48556
|
setIsSubmitDisabled = _React$useState[1];
|
|
@@ -48299,7 +48615,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48299
48615
|
ref: menuRef,
|
|
48300
48616
|
label: t("WF_TAKE_ACTION"),
|
|
48301
48617
|
onSubmit: () => setDisplayMenu(!displayMenu),
|
|
48302
|
-
disabled: isSubmitDisabled
|
|
48618
|
+
disabled: isSubmitDisabled || !isApprovalChecklistValid
|
|
48303
48619
|
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
48304
48620
|
style: {
|
|
48305
48621
|
color: "red",
|
|
@@ -48310,7 +48626,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48310
48626
|
ref: menuRef,
|
|
48311
48627
|
label: t("WF_TAKE_ACTION"),
|
|
48312
48628
|
onSubmit: () => setDisplayMenu(!displayMenu),
|
|
48313
|
-
disabled: isSubmitDisabled
|
|
48629
|
+
disabled: isSubmitDisabled || !isApprovalChecklistValid
|
|
48314
48630
|
})), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isMenuBotton && isSingleButton && !isAction && /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
|
|
48315
48631
|
style: _extends({}, ActionBarStyle)
|
|
48316
48632
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
@@ -48433,6 +48749,9 @@ const ApplicationDetails = props => {
|
|
|
48433
48749
|
const _useState5 = React.useState(false),
|
|
48434
48750
|
isWarningPop = _useState5[0],
|
|
48435
48751
|
setWarningPopUp = _useState5[1];
|
|
48752
|
+
const _useState6 = React.useState({}),
|
|
48753
|
+
approvalChecklist = _useState6[0],
|
|
48754
|
+
setApprovalChecklist = _useState6[1];
|
|
48436
48755
|
const applicationDetails = props.applicationDetails,
|
|
48437
48756
|
showToast = props.showToast,
|
|
48438
48757
|
setShowToast = props.setShowToast,
|
|
@@ -48460,6 +48779,29 @@ const ApplicationDetails = props => {
|
|
|
48460
48779
|
clearDataDetails = props.clearDataDetails,
|
|
48461
48780
|
_props$isAction = props.isAction,
|
|
48462
48781
|
isAction = _props$isAction === void 0 ? false : _props$isAction;
|
|
48782
|
+
const currentWorkflowState = getWSCurrentState(applicationData, workflowDetails);
|
|
48783
|
+
const showApprovalChecklist = moduleCode === "WS" && isWSApprovalChecklistState(applicationData, workflowDetails);
|
|
48784
|
+
const approvalChecklistValid = (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || !showApprovalChecklist || isWSApprovalChecklistComplete(applicationData, approvalChecklist);
|
|
48785
|
+
const seededKeyRef = React.useRef(null);
|
|
48786
|
+
React.useEffect(() => {
|
|
48787
|
+
const seedKey = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo) + "__" + currentWorkflowState;
|
|
48788
|
+
if (showApprovalChecklist) {
|
|
48789
|
+
if (seededKeyRef.current !== seedKey) {
|
|
48790
|
+
seededKeyRef.current = seedKey;
|
|
48791
|
+
const initialChecklist = getWSApprovalChecklistFields(applicationData).reduce((values, field) => {
|
|
48792
|
+
var _applicationData$addi;
|
|
48793
|
+
values[field.name] = (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi = applicationData.additionalDetails) === null || _applicationData$addi === void 0 ? void 0 : _applicationData$addi[field.name]) === true;
|
|
48794
|
+
return values;
|
|
48795
|
+
}, {});
|
|
48796
|
+
setApprovalChecklist(initialChecklist);
|
|
48797
|
+
}
|
|
48798
|
+
} else {
|
|
48799
|
+
if (seededKeyRef.current !== null) {
|
|
48800
|
+
seededKeyRef.current = null;
|
|
48801
|
+
setApprovalChecklist({});
|
|
48802
|
+
}
|
|
48803
|
+
}
|
|
48804
|
+
}, [applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo, currentWorkflowState, showApprovalChecklist]);
|
|
48463
48805
|
React.useEffect(() => {
|
|
48464
48806
|
if (showToast) {
|
|
48465
48807
|
workflowDetails.revalidate();
|
|
@@ -48667,7 +49009,10 @@ const ApplicationDetails = props => {
|
|
|
48667
49009
|
paymentsList: paymentsList,
|
|
48668
49010
|
showTimeLine: showTimeLine,
|
|
48669
49011
|
oldValue: oldValue,
|
|
48670
|
-
isInfoLabel: isInfoLabel
|
|
49012
|
+
isInfoLabel: isInfoLabel,
|
|
49013
|
+
approvalChecklist: approvalChecklist,
|
|
49014
|
+
onApprovalChecklistChange: setApprovalChecklist,
|
|
49015
|
+
showApprovalChecklist: showApprovalChecklist
|
|
48671
49016
|
}), showModal ? /*#__PURE__*/React__default.createElement(ActionModal$c, {
|
|
48672
49017
|
t: t,
|
|
48673
49018
|
action: selectedAction,
|
|
@@ -48680,7 +49025,8 @@ const ApplicationDetails = props => {
|
|
|
48680
49025
|
submitAction: submitAction,
|
|
48681
49026
|
actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline,
|
|
48682
49027
|
businessService: businessService,
|
|
48683
|
-
|
|
49028
|
+
approvalChecklist: approvalChecklist,
|
|
49029
|
+
showApprovalChecklist: showApprovalChecklist,
|
|
48684
49030
|
moduleCode: moduleCode,
|
|
48685
49031
|
cardFormWrapperClassName: "modal-form"
|
|
48686
49032
|
}) : null, isWarningPop ? /*#__PURE__*/React__default.createElement(ApplicationDetailsWarningPopup, {
|
|
@@ -48704,7 +49050,8 @@ const ApplicationDetails = props => {
|
|
|
48704
49050
|
forcedActionPrefix: forcedActionPrefix,
|
|
48705
49051
|
ActionBarStyle: ActionBarStyle,
|
|
48706
49052
|
MenuStyle: MenuStyle,
|
|
48707
|
-
applicationDetails: applicationDetails
|
|
49053
|
+
applicationDetails: applicationDetails,
|
|
49054
|
+
isApprovalChecklistValid: approvalChecklistValid
|
|
48708
49055
|
})) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null));
|
|
48709
49056
|
};
|
|
48710
49057
|
|
|
@@ -50367,7 +50714,7 @@ const EditApplication$1 = () => {
|
|
|
50367
50714
|
};
|
|
50368
50715
|
|
|
50369
50716
|
const ConsumptionDetails = _ref => {
|
|
50370
|
-
var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _details$4, _details$5;
|
|
50717
|
+
var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _DJBReadingQualityCod, _DJBReadingQualityCod2, _DJBReadingQualityCod3, _details$4, _details$5;
|
|
50371
50718
|
const _useTranslation = reactI18next.useTranslation(),
|
|
50372
50719
|
t = _useTranslation.t;
|
|
50373
50720
|
const user = Digit.UserService.getUser();
|
|
@@ -50408,11 +50755,14 @@ const ConsumptionDetails = _ref => {
|
|
|
50408
50755
|
selectedConsumtion = _useState9[0],
|
|
50409
50756
|
setConsumption = _useState9[1];
|
|
50410
50757
|
const _useState0 = React.useState(""),
|
|
50411
|
-
|
|
50412
|
-
|
|
50413
|
-
const _useState1 = React.useState(
|
|
50414
|
-
|
|
50415
|
-
|
|
50758
|
+
selectReadingQualityCode = _useState0[0],
|
|
50759
|
+
setSelectReadingQualityCode = _useState0[1];
|
|
50760
|
+
const _useState1 = React.useState(""),
|
|
50761
|
+
currentBillingPeriod = _useState1[0],
|
|
50762
|
+
setBillingPeriod = _useState1[1];
|
|
50763
|
+
const _useState10 = React.useState(false),
|
|
50764
|
+
isAddMeterReadingButtonEnable = _useState10[0],
|
|
50765
|
+
setisAddMeterReadingButtonEnable = _useState10[1];
|
|
50416
50766
|
const userInfo = Digit.UserService.getUser();
|
|
50417
50767
|
const userRoles = userInfo.info.roles.map(roleData => roleData.code);
|
|
50418
50768
|
const isUserAllowedToAddMeterReading = userRoles.filter(role => role === "WS_CEMP" || role === "SW_CEMP").length > 0;
|
|
@@ -50429,6 +50779,8 @@ const ConsumptionDetails = _ref => {
|
|
|
50429
50779
|
const _Digit$Hooks$ws$useGe2 = Digit.Hooks.ws.useGetBillingPeriodValidation(tenantId),
|
|
50430
50780
|
billingPeriodLoading = _Digit$Hooks$ws$useGe2.isLoading,
|
|
50431
50781
|
mdmsBillingPeriod = _Digit$Hooks$ws$useGe2.data;
|
|
50782
|
+
const _Digit$Hooks$ws$useDj = Digit.Hooks.ws.useDjbReadingQualityCodeList(tenantId),
|
|
50783
|
+
DJBReadingQualityCode = _Digit$Hooks$ws$useDj.data;
|
|
50432
50784
|
let connectionFilters = {
|
|
50433
50785
|
connectionNumber: applicationNo
|
|
50434
50786
|
};
|
|
@@ -50534,6 +50886,7 @@ const ConsumptionDetails = _ref => {
|
|
|
50534
50886
|
lastReading: meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReading,
|
|
50535
50887
|
lastReadingDate: meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate,
|
|
50536
50888
|
meterStatus: selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code,
|
|
50889
|
+
readingQualityCode: selectReadingQualityCode === null || selectReadingQualityCode === void 0 ? void 0 : selectReadingQualityCode.code,
|
|
50537
50890
|
tenantId: meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.tenantId
|
|
50538
50891
|
};
|
|
50539
50892
|
let meterReadingsPayload = {
|
|
@@ -50581,6 +50934,13 @@ const ConsumptionDetails = _ref => {
|
|
|
50581
50934
|
code: status,
|
|
50582
50935
|
i18nKey: "WS_SERVICES_CALCULATION_METERSTATUS_" + Digit.Utils.locale.getTransformedLocale(status)
|
|
50583
50936
|
}));
|
|
50937
|
+
const ReadingQualityCodeList = DJBReadingQualityCode === null || DJBReadingQualityCode === void 0 ? void 0 : (_DJBReadingQualityCod = DJBReadingQualityCode.MdmsRes) === null || _DJBReadingQualityCod === void 0 ? void 0 : (_DJBReadingQualityCod2 = _DJBReadingQualityCod["ws-services-calculation"]) === null || _DJBReadingQualityCod2 === void 0 ? void 0 : (_DJBReadingQualityCod3 = _DJBReadingQualityCod2.DJBReadingQualityCode) === null || _DJBReadingQualityCod3 === void 0 ? void 0 : _DJBReadingQualityCod3.map(status => {
|
|
50938
|
+
const statusCode = typeof status === "object" ? status.code : status;
|
|
50939
|
+
return {
|
|
50940
|
+
code: statusCode,
|
|
50941
|
+
i18nKey: "WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_" + Digit.Utils.locale.getTransformedLocale(statusCode)
|
|
50942
|
+
};
|
|
50943
|
+
});
|
|
50584
50944
|
const onFormValueChange = (setValue, formData, formState) => {
|
|
50585
50945
|
if ((selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code) === "Working") {
|
|
50586
50946
|
var _details$2;
|
|
@@ -50677,6 +51037,21 @@ const ConsumptionDetails = _ref => {
|
|
|
50677
51037
|
disabled: selectMeterStatus.code === "Working" ? false : true
|
|
50678
51038
|
}))
|
|
50679
51039
|
}
|
|
51040
|
+
}, {
|
|
51041
|
+
label: "" + t("WS_READING_QUALITY_CODE"),
|
|
51042
|
+
isMandatory: true,
|
|
51043
|
+
type: "dropdown",
|
|
51044
|
+
populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
51045
|
+
option: ReadingQualityCodeList,
|
|
51046
|
+
autoComplete: "off",
|
|
51047
|
+
optionKey: "i18nKey",
|
|
51048
|
+
id: "readingQualityCode",
|
|
51049
|
+
select: e => {
|
|
51050
|
+
setSelectReadingQualityCode(e);
|
|
51051
|
+
},
|
|
51052
|
+
selected: selectReadingQualityCode,
|
|
51053
|
+
t: t
|
|
51054
|
+
})
|
|
50680
51055
|
}, {
|
|
50681
51056
|
label: t("WS_SERV_DETAIL_CONSUMP"),
|
|
50682
51057
|
isMandatory: false,
|
|
@@ -50756,6 +51131,11 @@ const ConsumptionDetails = _ref => {
|
|
|
50756
51131
|
label: "" + t("WS_CONSUMPTION_DETAILS_METER_STATUS_LABEL"),
|
|
50757
51132
|
text: (application === null || application === void 0 ? void 0 : application.meterStatus) || t("NA"),
|
|
50758
51133
|
className: "border-none"
|
|
51134
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
51135
|
+
key: t("WS_READING_QUALITY_CODE"),
|
|
51136
|
+
label: "" + t("WS_READING_QUALITY_CODE"),
|
|
51137
|
+
text: (application === null || application === void 0 ? void 0 : application.readingQualityCode) || t("NA"),
|
|
51138
|
+
className: "border-none"
|
|
50759
51139
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
50760
51140
|
key: t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL"),
|
|
50761
51141
|
label: "" + t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL"),
|
|
@@ -50813,7 +51193,7 @@ const ConsumptionDetails = _ref => {
|
|
|
50813
51193
|
cardStyle: {
|
|
50814
51194
|
marginLeft: "0px",
|
|
50815
51195
|
marginRight: "0px",
|
|
50816
|
-
marginTop: "
|
|
51196
|
+
marginTop: "0px"
|
|
50817
51197
|
},
|
|
50818
51198
|
className: "BPAemployeeCard",
|
|
50819
51199
|
noBoxShadow: true,
|
|
@@ -56042,7 +56422,7 @@ const openFilePDF = fileId => {
|
|
|
56042
56422
|
}).catch(error => console.error("Error fetching file:", error));
|
|
56043
56423
|
};
|
|
56044
56424
|
const CheckPage$4 = _ref2 => {
|
|
56045
|
-
var _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
|
|
56425
|
+
var _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
|
|
56046
56426
|
let data = _ref2.data,
|
|
56047
56427
|
onSubmit = _ref2.onSubmit,
|
|
56048
56428
|
onEdit = _ref2.onEdit;
|
|
@@ -56122,6 +56502,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
56122
56502
|
const documents = (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir = data.DocumentsRequired) === null || _data$DocumentsRequir === void 0 ? void 0 : _data$DocumentsRequir.documents) || (data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : _data$documents.documents) || [];
|
|
56123
56503
|
const declaration = (data === null || data === void 0 ? void 0 : data.declarationData) || (data === null || data === void 0 ? void 0 : data.declaration) || {};
|
|
56124
56504
|
const djbEmployee = (data === null || data === void 0 ? void 0 : (_data$djbEmployee = data.djbEmployee) === null || _data$djbEmployee === void 0 ? void 0 : _data$djbEmployee.djbEmployee) || (data === null || data === void 0 ? void 0 : data.djbEmployee) || {};
|
|
56505
|
+
const disability = (data === null || data === void 0 ? void 0 : (_data$disability = data.disability) === null || _data$disability === void 0 ? void 0 : _data$disability.disability) || (data === null || data === void 0 ? void 0 : data.disability) || (data === null || data === void 0 ? void 0 : data.additionalDetails) || {};
|
|
56125
56506
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
56126
56507
|
className: "overflow-y-scroll"
|
|
56127
56508
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, null, t("WS_COMMON_SUMMARY")), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
@@ -56349,7 +56730,15 @@ const CheckPage$4 = _ref2 => {
|
|
|
56349
56730
|
},
|
|
56350
56731
|
onClick: () => openFilePDF(djbEmployee === null || djbEmployee === void 0 ? void 0 : djbEmployee.document)
|
|
56351
56732
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
|
|
56352
|
-
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null,
|
|
56733
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, "Divyangjan/Person with Disability?"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
56734
|
+
style: {
|
|
56735
|
+
marginTop: "10px",
|
|
56736
|
+
marginBottom: "30px"
|
|
56737
|
+
}
|
|
56738
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
56739
|
+
label: "Divyangjan/Person with Disability?",
|
|
56740
|
+
text: disability !== null && disability !== void 0 && disability.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")
|
|
56741
|
+
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
|
|
56353
56742
|
style: {
|
|
56354
56743
|
marginTop: "10px",
|
|
56355
56744
|
marginBottom: "30px"
|
|
@@ -56492,6 +56881,7 @@ const OLDApplication = () => {
|
|
|
56492
56881
|
const _useTranslation = reactI18next.useTranslation(),
|
|
56493
56882
|
t = _useTranslation.t;
|
|
56494
56883
|
const history = reactRouterDom.useHistory();
|
|
56884
|
+
const location = reactRouterDom.useLocation();
|
|
56495
56885
|
const _useState = React.useState(false),
|
|
56496
56886
|
isEnableLoader = _useState[0],
|
|
56497
56887
|
setIsEnableLoader = _useState[1];
|
|
@@ -56540,9 +56930,12 @@ const OLDApplication = () => {
|
|
|
56540
56930
|
let _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSConfigMDMS.WSCreateConfig(stateId, {}),
|
|
56541
56931
|
newConfig = _Digit$Hooks$ws$useWS.data,
|
|
56542
56932
|
isLoading = _Digit$Hooks$ws$useWS.isLoading;
|
|
56543
|
-
const
|
|
56933
|
+
const requestedPropertyId = new URLSearchParams(location.search).get("propertyId");
|
|
56934
|
+
const _useState5 = React.useState(requestedPropertyId),
|
|
56544
56935
|
propertyId = _useState5[0],
|
|
56545
56936
|
setPropertyId = _useState5[1];
|
|
56937
|
+
const initialPropertyId = React.useRef(requestedPropertyId);
|
|
56938
|
+
const verifiedPropertyId = React.useRef(sessionStorage.getItem("WS_OTP_VERIFIED_PROPERTY_ID"));
|
|
56546
56939
|
const _Digit$Hooks$useSessi = Digit.Hooks.useSessionStorage("PT_CREATE_EMP_WS_NEW_FORM", {}),
|
|
56547
56940
|
sessionFormData = _Digit$Hooks$useSessi[0],
|
|
56548
56941
|
setSessionFormData = _Digit$Hooks$useSessi[1],
|
|
@@ -56557,9 +56950,16 @@ const OLDApplication = () => {
|
|
|
56557
56950
|
propertyIds: propertyId
|
|
56558
56951
|
},
|
|
56559
56952
|
tenantId: tenantId,
|
|
56560
|
-
enabled: propertyId && propertyId
|
|
56953
|
+
enabled: propertyId && propertyId === requestedPropertyId && propertyId === verifiedPropertyId.current
|
|
56561
56954
|
}),
|
|
56562
56955
|
propertyDetails = _Digit$Hooks$pt$usePr.data;
|
|
56956
|
+
React.useEffect(() => {
|
|
56957
|
+
if (requestedPropertyId !== initialPropertyId.current || requestedPropertyId && requestedPropertyId !== verifiedPropertyId.current) {
|
|
56958
|
+
clearSessionFormData();
|
|
56959
|
+
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
56960
|
+
history.replace("/digit-ui/employee/ws/info");
|
|
56961
|
+
}
|
|
56962
|
+
}, [clearSessionFormData, history, requestedPropertyId]);
|
|
56563
56963
|
React.useEffect(() => {
|
|
56564
56964
|
sessionStorage.removeItem("FORMSTATE_ERRORS");
|
|
56565
56965
|
}, []);
|
|
@@ -56569,7 +56969,7 @@ const OLDApplication = () => {
|
|
|
56569
56969
|
if (config) {
|
|
56570
56970
|
var _config$body;
|
|
56571
56971
|
const allCreateSections = (config === null || config === void 0 ? void 0 : (_config$body = config.body) === null || _config$body === void 0 ? void 0 : _config$body.filter(section => section === null || section === void 0 ? void 0 : section.isCreateConnection)) || [];
|
|
56572
|
-
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSDjbEmployee", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
|
|
56972
|
+
const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSDjbEmployee", "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSBankDetails", "WSDocumentsEmployee", "WSDeclaration"];
|
|
56573
56973
|
const reorderedBody = [];
|
|
56574
56974
|
desiredComponentOrder.forEach(compName => {
|
|
56575
56975
|
const section = allCreateSections.find(s => {
|
|
@@ -56635,6 +57035,19 @@ const OLDApplication = () => {
|
|
|
56635
57035
|
withoutLabel: true
|
|
56636
57036
|
}]
|
|
56637
57037
|
});
|
|
57038
|
+
} else if (compName === "WSDivyangjan") {
|
|
57039
|
+
reorderedBody.push({
|
|
57040
|
+
isCreateConnection: true,
|
|
57041
|
+
body: [{
|
|
57042
|
+
type: "component",
|
|
57043
|
+
key: "disability",
|
|
57044
|
+
component: "WSDivyangjan",
|
|
57045
|
+
withoutLabel: true,
|
|
57046
|
+
texts: {
|
|
57047
|
+
header: "Divyangjan/Person with Disability?"
|
|
57048
|
+
}
|
|
57049
|
+
}]
|
|
57050
|
+
});
|
|
56638
57051
|
}
|
|
56639
57052
|
});
|
|
56640
57053
|
allCreateSections.forEach(section => {
|
|
@@ -56899,6 +57312,7 @@ const OLDApplication = () => {
|
|
|
56899
57312
|
try {
|
|
56900
57313
|
var _waterUpdateData$Wate, _waterUpdateData$Wate2, _sewerageUpdateData$S, _sewerageUpdateData$S2;
|
|
56901
57314
|
clearSessionFormData();
|
|
57315
|
+
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
56902
57316
|
history.push(basePath + "/ws-response?applicationNumber=" + (waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : (_waterUpdateData$Wate2 = _waterUpdateData$Wate[0]) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : _waterUpdateData$Wate2.applicationNo) + "&applicationNumber1=" + (sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : (_sewerageUpdateData$S2 = _sewerageUpdateData$S[0]) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : _sewerageUpdateData$S2.applicationNo));
|
|
56903
57317
|
return Promise.resolve();
|
|
56904
57318
|
} catch (e) {
|
|
@@ -56962,6 +57376,7 @@ const OLDApplication = () => {
|
|
|
56962
57376
|
onSuccess: data => {
|
|
56963
57377
|
var _data$WaterConnection2, _data$WaterConnection3;
|
|
56964
57378
|
clearSessionFormData();
|
|
57379
|
+
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
56965
57380
|
history.push(basePath + "/ws-response?applicationNumber=" + (data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : (_data$WaterConnection3 = _data$WaterConnection2[0]) === null || _data$WaterConnection3 === void 0 ? void 0 : _data$WaterConnection3.applicationNo));
|
|
56966
57381
|
}
|
|
56967
57382
|
});
|
|
@@ -57010,6 +57425,7 @@ const OLDApplication = () => {
|
|
|
57010
57425
|
onSuccess: data => {
|
|
57011
57426
|
var _data$SewerageConnect2, _data$SewerageConnect3;
|
|
57012
57427
|
clearSessionFormData();
|
|
57428
|
+
sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
|
|
57013
57429
|
history.push(basePath + "/ws-response?applicationNumber1=" + (data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : (_data$SewerageConnect3 = _data$SewerageConnect2[0]) === null || _data$SewerageConnect3 === void 0 ? void 0 : _data$SewerageConnect3.applicationNo));
|
|
57014
57430
|
}
|
|
57015
57431
|
})).then(function () {});
|
|
@@ -57235,7 +57651,8 @@ const componentsToRegister = {
|
|
|
57235
57651
|
WSSearchIntegrated: SearchIntegrated,
|
|
57236
57652
|
WSSearchWaterConnectionViewIntegrated: SearchWaterConnectionViewIntegrated,
|
|
57237
57653
|
WSBulkBillGeneration: BulkBillGeneration,
|
|
57238
|
-
WSOLDApplication: OLDApplication
|
|
57654
|
+
WSOLDApplication: OLDApplication,
|
|
57655
|
+
WSDivyangjan: WSDivyangjan
|
|
57239
57656
|
};
|
|
57240
57657
|
const initWSComponents = () => {
|
|
57241
57658
|
Object.entries(componentsToRegister).forEach(_ref3 => {
|