@djb25/digit-ui-module-ws 1.0.73 → 1.0.75
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 +280 -125
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +281 -126
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -8405,7 +8405,7 @@ const getDocumentDetails = (application, t) => {
|
|
|
8405
8405
|
};
|
|
8406
8406
|
const getWSAcknowledgementData = function (application, property, tenantInfo, t) {
|
|
8407
8407
|
try {
|
|
8408
|
-
var _application$
|
|
8408
|
+
var _application$tradeLic17, _application$tradeLic18;
|
|
8409
8409
|
function _temp2() {
|
|
8410
8410
|
return Promise.resolve(getHeaderDetails(application, t, tenantInfo)).then(function (header) {
|
|
8411
8411
|
return {
|
|
@@ -8420,7 +8420,7 @@ const getWSAcknowledgementData = function (application, property, tenantInfo, t)
|
|
|
8420
8420
|
};
|
|
8421
8421
|
});
|
|
8422
8422
|
}
|
|
8423
|
-
const filesArray = application === null || application === void 0 ? void 0 : (_application$
|
|
8423
|
+
const filesArray = application === null || application === void 0 ? void 0 : (_application$tradeLic17 = application.tradeLicenseDetail) === null || _application$tradeLic17 === void 0 ? void 0 : (_application$tradeLic18 = _application$tradeLic17.applicationDocuments) === null || _application$tradeLic18 === void 0 ? void 0 : _application$tradeLic18.map(value => value === null || value === void 0 ? void 0 : value.fileStoreId);
|
|
8424
8424
|
let res;
|
|
8425
8425
|
const _temp = function () {
|
|
8426
8426
|
if (filesArray) {
|
|
@@ -8987,7 +8987,7 @@ const App = _ref => {
|
|
|
8987
8987
|
}, {
|
|
8988
8988
|
path: "/digit-ui/citizen/ws/my-connections",
|
|
8989
8989
|
label: t("WS_MYCONNECTIONS_HEADER"),
|
|
8990
|
-
show: location.pathname.includes("/my-connections")
|
|
8990
|
+
show: location.pathname.includes("/my-connections") || location.pathname.includes("/connection/details")
|
|
8991
8991
|
}, {
|
|
8992
8992
|
path: "/digit-ui/citizen/ws/my-bills",
|
|
8993
8993
|
label: t("CS_WS_MY_BILLS"),
|
|
@@ -9004,6 +9004,10 @@ const App = _ref => {
|
|
|
9004
9004
|
path: location.pathname,
|
|
9005
9005
|
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
9006
9006
|
show: location.pathname.includes("/connection/application")
|
|
9007
|
+
}, {
|
|
9008
|
+
path: location.pathname,
|
|
9009
|
+
label: t("WS_COMMON_CONNECTION_DETAIL"),
|
|
9010
|
+
show: location.pathname.includes("/connection/details")
|
|
9007
9011
|
}, {
|
|
9008
9012
|
path: location.pathname,
|
|
9009
9013
|
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
@@ -9100,7 +9104,9 @@ const App = _ref => {
|
|
|
9100
9104
|
component: WSCitizenEditApplication
|
|
9101
9105
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9102
9106
|
path: path + "/old-application",
|
|
9103
|
-
component:
|
|
9107
|
+
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
9108
|
+
layoutClass: "action"
|
|
9109
|
+
}, /*#__PURE__*/React__default.createElement(WSOLDApplication, null))
|
|
9104
9110
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9105
9111
|
path: path + "/info",
|
|
9106
9112
|
component: WSInfoPage
|
|
@@ -11119,7 +11125,9 @@ const App$1 = _ref2 => {
|
|
|
11119
11125
|
component: WSModifyApplicationDetails
|
|
11120
11126
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
11121
11127
|
path: path + "/connection-details",
|
|
11122
|
-
component:
|
|
11128
|
+
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
11129
|
+
layoutClass: "action"
|
|
11130
|
+
}, /*#__PURE__*/React__default.createElement(WSGetConnectionDetails, null))
|
|
11123
11131
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
11124
11132
|
path: path + "/bill-amendment",
|
|
11125
11133
|
component: () => /*#__PURE__*/React__default.createElement(WSApplicationBillAmendment, {
|
|
@@ -17966,7 +17974,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
17966
17974
|
}));
|
|
17967
17975
|
};
|
|
17968
17976
|
function SelectDocument(_ref2) {
|
|
17969
|
-
var _formData$ConnectionD, _doc$i18nKey, _doc$i18nKey2, _doc$i18nKey3;
|
|
17977
|
+
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, _doc$i18nKey3;
|
|
17970
17978
|
let t = _ref2.t,
|
|
17971
17979
|
doc = _ref2.document,
|
|
17972
17980
|
setDocuments = _ref2.setDocuments,
|
|
@@ -18029,6 +18037,29 @@ function SelectDocument(_ref2) {
|
|
|
18029
18037
|
const _useState13 = React.useState(false),
|
|
18030
18038
|
digiLockerUpload = _useState13[0],
|
|
18031
18039
|
setDigilockerUpload = _useState13[1];
|
|
18040
|
+
const _useState14 = React.useState(null),
|
|
18041
|
+
docNumberError = _useState14[0],
|
|
18042
|
+
setDocNumberError = _useState14[1];
|
|
18043
|
+
const validateDocumentNumber = (value, docTypeCode, isReq, hasFile) => {
|
|
18044
|
+
if (!isReq && !hasFile && (!value || !value.trim())) return null;
|
|
18045
|
+
if (!value || !value.trim()) return t("WS_DOCUMENT_NUMBER_REQUIRED") || "Document number is required";
|
|
18046
|
+
const trimmed = value.trim();
|
|
18047
|
+
const upperCode = (docTypeCode || "").toUpperCase();
|
|
18048
|
+
if (upperCode.includes("AADHAAR") || upperCode.includes("AADHAR")) {
|
|
18049
|
+
if (!/^\d{12}$/.test(trimmed)) return t("WS_AADHAAR_VALIDATION_ERROR") || "Aadhaar number must be exactly 12 digits";
|
|
18050
|
+
} else if (upperCode.includes("PAN")) {
|
|
18051
|
+
if (!/^[A-Z]{5}[0-9]{4}[A-Z]{1}$/.test(trimmed.toUpperCase())) return t("WS_PAN_VALIDATION_ERROR") || "PAN must be in format ABCDE1234F";
|
|
18052
|
+
} else if (upperCode.includes("VOTER") || upperCode.includes("VOTERID")) {
|
|
18053
|
+
if (!/^[A-Z]{3}\d{7}$/.test(trimmed.toUpperCase())) return t("WS_VOTERID_VALIDATION_ERROR") || "Voter ID must be in format ABC1234567";
|
|
18054
|
+
} else if (upperCode.includes("DRIVING") || upperCode.includes("DRVLC")) {
|
|
18055
|
+
if (!/^[A-Z]{2}\d{13}$/.test(trimmed.toUpperCase())) return t("WS_DRIVING_LICENSE_VALIDATION_ERROR") || "Driving License must be 15 characters (e.g. MH1420110012345)";
|
|
18056
|
+
} else if (upperCode.includes("PASSPORT")) {
|
|
18057
|
+
if (!/^[A-Z]{1}\d{7}$/.test(trimmed.toUpperCase())) return t("WS_PASSPORT_VALIDATION_ERROR") || "Passport must be 8 characters (e.g. A1234567)";
|
|
18058
|
+
} else {
|
|
18059
|
+
if (trimmed.length < 3) return t("WS_DOC_NO_MIN_LENGTH") || "Document number must be at least 3 characters";
|
|
18060
|
+
}
|
|
18061
|
+
return null;
|
|
18062
|
+
};
|
|
18032
18063
|
React.useEffect(() => {
|
|
18033
18064
|
const eligible = isDigiLockerEligible((selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "");
|
|
18034
18065
|
setDigilockerUpload(eligible);
|
|
@@ -18094,8 +18125,8 @@ function SelectDocument(_ref2) {
|
|
|
18094
18125
|
}
|
|
18095
18126
|
const dropdownData = doc.dropdownData;
|
|
18096
18127
|
var dropDownData = dropdownData;
|
|
18097
|
-
const
|
|
18098
|
-
isHidden =
|
|
18128
|
+
const _useState15 = React.useState(false),
|
|
18129
|
+
isHidden = _useState15[0];
|
|
18099
18130
|
const addError = () => {
|
|
18100
18131
|
var _formState$errors, _formState$errors$con;
|
|
18101
18132
|
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;
|
|
@@ -18143,10 +18174,15 @@ function SelectDocument(_ref2) {
|
|
|
18143
18174
|
return data;
|
|
18144
18175
|
});
|
|
18145
18176
|
}
|
|
18177
|
+
const err = validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, doc === null || doc === void 0 ? void 0 : doc.required, !!uploadedFile);
|
|
18146
18178
|
if (!isHidden) {
|
|
18147
|
-
if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code)) && doc !== null && doc !== void 0 && doc.required) {
|
|
18179
|
+
if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) || err) && doc !== null && doc !== void 0 && doc.required) {
|
|
18148
18180
|
addError();
|
|
18149
|
-
} else if (
|
|
18181
|
+
} else if (err) {
|
|
18182
|
+
addError();
|
|
18183
|
+
} else if (uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code && !err) {
|
|
18184
|
+
removeError();
|
|
18185
|
+
} else if (!(doc !== null && doc !== void 0 && doc.required) && !err) {
|
|
18150
18186
|
removeError();
|
|
18151
18187
|
}
|
|
18152
18188
|
} else if (isHidden) {
|
|
@@ -18216,7 +18252,17 @@ function SelectDocument(_ref2) {
|
|
|
18216
18252
|
width: "100%",
|
|
18217
18253
|
marginBottom: "20px"
|
|
18218
18254
|
}
|
|
18219
|
-
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React__default.createElement(
|
|
18255
|
+
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React__default.createElement("div", {
|
|
18256
|
+
style: {
|
|
18257
|
+
display: "flex",
|
|
18258
|
+
flexDirection: "column",
|
|
18259
|
+
gap: "8px"
|
|
18260
|
+
}
|
|
18261
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
18262
|
+
style: {
|
|
18263
|
+
margin: 0
|
|
18264
|
+
}
|
|
18265
|
+
}, doc !== null && doc !== void 0 && doc.required ? t(doc === null || doc === void 0 ? void 0 : doc.i18nKey) + "*" : "" + t(doc === null || doc === void 0 ? void 0 : doc.i18nKey)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
18220
18266
|
id: "doc-" + (doc === null || doc === void 0 ? void 0 : doc.code),
|
|
18221
18267
|
key: "doc-" + (doc === null || doc === void 0 ? void 0 : doc.code),
|
|
18222
18268
|
className: "form-field",
|
|
@@ -18230,13 +18276,36 @@ function SelectDocument(_ref2) {
|
|
|
18230
18276
|
select: handleSelectDocument,
|
|
18231
18277
|
optionKey: "i18nKey",
|
|
18232
18278
|
t: t
|
|
18233
|
-
})) : null, (doc === null || doc === void 0 ? void 0 : doc.code) !== "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React__default.createElement(
|
|
18279
|
+
})) : null, (doc === null || doc === void 0 ? void 0 : doc.code) !== "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React__default.createElement("div", {
|
|
18280
|
+
style: {
|
|
18281
|
+
display: "flex",
|
|
18282
|
+
flexDirection: "column",
|
|
18283
|
+
gap: "8px"
|
|
18284
|
+
}
|
|
18285
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
18286
|
+
style: {
|
|
18287
|
+
margin: 0
|
|
18288
|
+
}
|
|
18289
|
+
}, t((doc === null || doc === void 0 ? void 0 : (_doc$i18nKey = doc.i18nKey) === null || _doc$i18nKey === void 0 ? void 0 : _doc$i18nKey.replaceAll(".", "_")) + "_DOCUMENT_NO")), /*#__PURE__*/React__default.createElement("div", {
|
|
18234
18290
|
className: "field"
|
|
18235
18291
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
18236
18292
|
type: "text",
|
|
18237
18293
|
value: documentUid,
|
|
18238
18294
|
onChange: e => {
|
|
18239
|
-
if (!isDocumentUidLocked)
|
|
18295
|
+
if (!isDocumentUidLocked) {
|
|
18296
|
+
var _selectedDocument$cod;
|
|
18297
|
+
let val = e.target.value;
|
|
18298
|
+
const upperCode = (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod = selectedDocument.code) === null || _selectedDocument$cod === void 0 ? void 0 : _selectedDocument$cod.toUpperCase()) || "";
|
|
18299
|
+
const maxLen = upperCode.includes("AADHAAR") || upperCode.includes("AADHAR") ? 12 : upperCode.includes("PAN") ? 10 : upperCode.includes("VOTER") || upperCode.includes("VOTERID") ? 10 : upperCode.includes("DRIVING") || upperCode.includes("DRVLC") ? 15 : upperCode.includes("PASSPORT") ? 8 : 64;
|
|
18300
|
+
if (val.length > maxLen) {
|
|
18301
|
+
val = val.substring(0, maxLen);
|
|
18302
|
+
}
|
|
18303
|
+
setDocumentUid(val);
|
|
18304
|
+
setDocNumberError(null);
|
|
18305
|
+
}
|
|
18306
|
+
},
|
|
18307
|
+
onBlur: () => {
|
|
18308
|
+
setDocNumberError(validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, doc === null || doc === void 0 ? void 0 : doc.required, !!uploadedFile));
|
|
18240
18309
|
},
|
|
18241
18310
|
placeholder: t("WS_IDENTITY_NO_PLACEHOLDER"),
|
|
18242
18311
|
disabled: isDocumentUidLocked,
|
|
@@ -18244,8 +18313,58 @@ function SelectDocument(_ref2) {
|
|
|
18244
18313
|
backgroundColor: "#f0f0f0",
|
|
18245
18314
|
cursor: "not-allowed",
|
|
18246
18315
|
color: "#555"
|
|
18247
|
-
} : {
|
|
18248
|
-
|
|
18316
|
+
} : docNumberError ? {
|
|
18317
|
+
border: "1px solid #d32f2f"
|
|
18318
|
+
} : {},
|
|
18319
|
+
maxLength: selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod2 = selectedDocument.code) !== null && _selectedDocument$cod2 !== void 0 && _selectedDocument$cod2.toUpperCase().includes("AADHAAR") || selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod3 = selectedDocument.code) !== null && _selectedDocument$cod3 !== void 0 && _selectedDocument$cod3.toUpperCase().includes("AADHAR") ? 12 : selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod4 = selectedDocument.code) !== null && _selectedDocument$cod4 !== void 0 && _selectedDocument$cod4.toUpperCase().includes("PAN") ? 10 : selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod5 = selectedDocument.code) !== null && _selectedDocument$cod5 !== void 0 && _selectedDocument$cod5.toUpperCase().includes("VOTER") || selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod6 = selectedDocument.code) !== null && _selectedDocument$cod6 !== void 0 && _selectedDocument$cod6.toUpperCase().includes("VOTERID") ? 10 : selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod7 = selectedDocument.code) !== null && _selectedDocument$cod7 !== void 0 && _selectedDocument$cod7.toUpperCase().includes("DRIVING") || selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod8 = selectedDocument.code) !== null && _selectedDocument$cod8 !== void 0 && _selectedDocument$cod8.toUpperCase().includes("DRVLC") ? 15 : selectedDocument !== null && selectedDocument !== void 0 && (_selectedDocument$cod9 = selectedDocument.code) !== null && _selectedDocument$cod9 !== void 0 && _selectedDocument$cod9.toUpperCase().includes("PASSPORT") ? 8 : 64
|
|
18320
|
+
}), docNumberError && /*#__PURE__*/React__default.createElement("div", {
|
|
18321
|
+
style: {
|
|
18322
|
+
fontSize: "12px",
|
|
18323
|
+
color: "#d32f2f",
|
|
18324
|
+
marginTop: "4px"
|
|
18325
|
+
}
|
|
18326
|
+
}, docNumberError), ((selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod0 = selectedDocument.code) === null || _selectedDocument$cod0 === void 0 ? void 0 : _selectedDocument$cod0.toUpperCase().includes("AADHAAR")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod1 = selectedDocument.code) === null || _selectedDocument$cod1 === void 0 ? void 0 : _selectedDocument$cod1.toUpperCase().includes("AADHAR"))) && !docNumberError && /*#__PURE__*/React__default.createElement("div", {
|
|
18327
|
+
style: {
|
|
18328
|
+
fontSize: "11px",
|
|
18329
|
+
color: "#000000",
|
|
18330
|
+
marginTop: "4px"
|
|
18331
|
+
}
|
|
18332
|
+
}, t("WS_AADHAAR_VALIDATION_ERROR") || "Format: 12-digit numeric (e.g. 123456789012)"), (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod10 = selectedDocument.code) === null || _selectedDocument$cod10 === void 0 ? void 0 : _selectedDocument$cod10.toUpperCase().includes("PAN")) && !docNumberError && /*#__PURE__*/React__default.createElement("div", {
|
|
18333
|
+
style: {
|
|
18334
|
+
fontSize: "11px",
|
|
18335
|
+
color: "#000000",
|
|
18336
|
+
marginTop: "4px"
|
|
18337
|
+
}
|
|
18338
|
+
}, t("WS_PAN_VALIDATION_ERROR") || "Format: ABCDE1234F"), ((selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod11 = selectedDocument.code) === null || _selectedDocument$cod11 === void 0 ? void 0 : _selectedDocument$cod11.toUpperCase().includes("VOTER")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod12 = selectedDocument.code) === null || _selectedDocument$cod12 === void 0 ? void 0 : _selectedDocument$cod12.toUpperCase().includes("VOTERID"))) && !docNumberError && /*#__PURE__*/React__default.createElement("div", {
|
|
18339
|
+
style: {
|
|
18340
|
+
fontSize: "11px",
|
|
18341
|
+
color: "#000000",
|
|
18342
|
+
marginTop: "4px"
|
|
18343
|
+
}
|
|
18344
|
+
}, t("WS_VOTERID_VALIDATION_ERROR") || "Format: ABC1234567"), ((selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod13 = selectedDocument.code) === null || _selectedDocument$cod13 === void 0 ? void 0 : _selectedDocument$cod13.toUpperCase().includes("DRIVING")) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod14 = selectedDocument.code) === null || _selectedDocument$cod14 === void 0 ? void 0 : _selectedDocument$cod14.toUpperCase().includes("DRVLC"))) && !docNumberError && /*#__PURE__*/React__default.createElement("div", {
|
|
18345
|
+
style: {
|
|
18346
|
+
fontSize: "11px",
|
|
18347
|
+
color: "#000000",
|
|
18348
|
+
marginTop: "4px"
|
|
18349
|
+
}
|
|
18350
|
+
}, t("WS_DRIVING_LICENSE_VALIDATION_ERROR") || "Format: MH1420110012345"), (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod15 = selectedDocument.code) === null || _selectedDocument$cod15 === void 0 ? void 0 : _selectedDocument$cod15.toUpperCase().includes("PASSPORT")) && !docNumberError && /*#__PURE__*/React__default.createElement("div", {
|
|
18351
|
+
style: {
|
|
18352
|
+
fontSize: "11px",
|
|
18353
|
+
color: "#000000",
|
|
18354
|
+
marginTop: "4px"
|
|
18355
|
+
}
|
|
18356
|
+
}, t("WS_PASSPORT_VALIDATION_ERROR") || "Format: A1234567"))), /*#__PURE__*/React__default.createElement("div", {
|
|
18357
|
+
style: {
|
|
18358
|
+
display: "flex",
|
|
18359
|
+
flexDirection: "column",
|
|
18360
|
+
gap: "8px",
|
|
18361
|
+
gridColumn: "span 1"
|
|
18362
|
+
}
|
|
18363
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
18364
|
+
style: {
|
|
18365
|
+
margin: 0
|
|
18366
|
+
}
|
|
18367
|
+
}, doc !== null && doc !== void 0 && doc.required ? t((doc === null || doc === void 0 ? void 0 : (_doc$i18nKey2 = doc.i18nKey) === null || _doc$i18nKey2 === void 0 ? void 0 : _doc$i18nKey2.replaceAll(".", "_")) + "_UPLOAD_DOCUMENT") + "*" : "" + t((doc === null || doc === void 0 ? void 0 : (_doc$i18nKey3 = doc.i18nKey) === null || _doc$i18nKey3 === void 0 ? void 0 : _doc$i18nKey3.replaceAll(".", "_")) + "_UPLOAD_DOCUMENT")), /*#__PURE__*/React__default.createElement("div", {
|
|
18249
18368
|
className: "field",
|
|
18250
18369
|
style: {
|
|
18251
18370
|
display: "flex",
|
|
@@ -18316,19 +18435,25 @@ function SelectDocument(_ref2) {
|
|
|
18316
18435
|
setIsDocumentUidLocked(false);
|
|
18317
18436
|
setDocumentUid("");
|
|
18318
18437
|
}
|
|
18319
|
-
})),
|
|
18320
|
-
onClick: viewDocument,
|
|
18438
|
+
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
18321
18439
|
style: {
|
|
18322
|
-
|
|
18440
|
+
display: "flex",
|
|
18441
|
+
flexDirection: "column",
|
|
18442
|
+
gap: "8px",
|
|
18443
|
+
gridColumn: "span 1"
|
|
18323
18444
|
}
|
|
18324
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
18445
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
18446
|
+
style: {
|
|
18447
|
+
margin: 0
|
|
18448
|
+
}
|
|
18449
|
+
}, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? t("WS_CLICK_APPLICANT_PHOTO") || "Click Applicant Photo" : "\u00A0"), /*#__PURE__*/React__default.createElement("div", {
|
|
18325
18450
|
style: {
|
|
18326
|
-
flex: 1,
|
|
18327
18451
|
display: "flex",
|
|
18328
|
-
|
|
18329
|
-
|
|
18452
|
+
alignItems: "center",
|
|
18453
|
+
gap: "20px",
|
|
18454
|
+
height: "100%"
|
|
18330
18455
|
}
|
|
18331
|
-
},
|
|
18456
|
+
}, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React__default.createElement("div", {
|
|
18332
18457
|
style: {
|
|
18333
18458
|
display: "flex",
|
|
18334
18459
|
alignItems: "center",
|
|
@@ -18363,7 +18488,21 @@ function SelectDocument(_ref2) {
|
|
|
18363
18488
|
fontWeight: "bold",
|
|
18364
18489
|
fontSize: "14px"
|
|
18365
18490
|
}
|
|
18366
|
-
}, "\u2714 Uploaded"))
|
|
18491
|
+
}, "\u2714 Uploaded")), uploadedFile && /*#__PURE__*/React__default.createElement("div", {
|
|
18492
|
+
onClick: viewDocument,
|
|
18493
|
+
style: {
|
|
18494
|
+
display: "flex",
|
|
18495
|
+
alignItems: "center",
|
|
18496
|
+
gap: "8px",
|
|
18497
|
+
cursor: "pointer",
|
|
18498
|
+
color: "#00497e",
|
|
18499
|
+
fontWeight: "bold",
|
|
18500
|
+
padding: "8px 16px",
|
|
18501
|
+
border: "1px solid #00497e",
|
|
18502
|
+
borderRadius: "4px",
|
|
18503
|
+
backgroundColor: "#fff"
|
|
18504
|
+
}
|
|
18505
|
+
}, /*#__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, {
|
|
18367
18506
|
onCapture: handleCapture,
|
|
18368
18507
|
onClose: () => setShowCamera(false),
|
|
18369
18508
|
t: t
|
|
@@ -18430,12 +18569,12 @@ const CameraCaptureModal = _ref4 => {
|
|
|
18430
18569
|
t = _ref4.t;
|
|
18431
18570
|
const videoRef = React.useRef(null);
|
|
18432
18571
|
const canvasRef = React.useRef(null);
|
|
18433
|
-
const _useState15 = React.useState(null),
|
|
18434
|
-
stream = _useState15[0],
|
|
18435
|
-
setStream = _useState15[1];
|
|
18436
18572
|
const _useState16 = React.useState(null),
|
|
18437
|
-
|
|
18438
|
-
|
|
18573
|
+
stream = _useState16[0],
|
|
18574
|
+
setStream = _useState16[1];
|
|
18575
|
+
const _useState17 = React.useState(null),
|
|
18576
|
+
error = _useState17[0],
|
|
18577
|
+
setError = _useState17[1];
|
|
18439
18578
|
React.useEffect(() => {
|
|
18440
18579
|
const startCamera = function () {
|
|
18441
18580
|
try {
|
|
@@ -33232,7 +33371,7 @@ const ConnectionDetails$5 = () => {
|
|
|
33232
33371
|
const applicationDownloadObject = {
|
|
33233
33372
|
order: 2,
|
|
33234
33373
|
label: t("WS_APPLICATION"),
|
|
33235
|
-
onClick: () => handleDownloadPdf
|
|
33374
|
+
onClick: () => handleDownloadPdf()
|
|
33236
33375
|
};
|
|
33237
33376
|
const receiptApplicationFeeDownloadObject = {
|
|
33238
33377
|
order: 3,
|
|
@@ -33353,27 +33492,27 @@ const ConnectionDetails$5 = () => {
|
|
|
33353
33492
|
}
|
|
33354
33493
|
sessionStorage.setItem("ApplicationNoState", (_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.applicationNo);
|
|
33355
33494
|
let serviceType = (_state4 = state) !== null && _state4 !== void 0 && (_state4$applicationTy = _state4.applicationType) !== null && _state4$applicationTy !== void 0 && _state4$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
|
|
33356
|
-
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(
|
|
33357
|
-
|
|
33495
|
+
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, checkifPrivacyenabled && /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
33496
|
+
t: t
|
|
33497
|
+
}), /*#__PURE__*/React__default.createElement("div", {
|
|
33498
|
+
className: "hide-seperator"
|
|
33499
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, downloadOptions && downloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
33358
33500
|
style: {
|
|
33359
|
-
|
|
33360
|
-
|
|
33501
|
+
position: "absolute",
|
|
33502
|
+
right: "24px",
|
|
33503
|
+
zIndex: 11
|
|
33361
33504
|
}
|
|
33362
|
-
},
|
|
33505
|
+
}, /*#__PURE__*/React__default.createElement("div", {
|
|
33363
33506
|
ref: menuRef
|
|
33364
33507
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MultiLink, {
|
|
33365
|
-
|
|
33508
|
+
label: t("CS_COMMON_DOWNLOAD"),
|
|
33509
|
+
className: "multilinkWrapper employee-mulitlink-main-divNew",
|
|
33366
33510
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
33367
33511
|
displayOptions: showOptions,
|
|
33368
33512
|
options: downloadOptions,
|
|
33369
|
-
|
|
33370
|
-
|
|
33371
|
-
|
|
33372
|
-
}))), checkifPrivacyenabled && /*#__PURE__*/React__default.createElement(WSInfoLabel, {
|
|
33373
|
-
t: t
|
|
33374
|
-
}), /*#__PURE__*/React__default.createElement("div", {
|
|
33375
|
-
className: "hide-seperator"
|
|
33376
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33513
|
+
downloadBtnClassName: "employee-download-btn-className",
|
|
33514
|
+
optionsClassName: "employee-options-btn-className"
|
|
33515
|
+
}))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33377
33516
|
className: "border-none",
|
|
33378
33517
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
33379
33518
|
text: (_state5 = state) === null || _state5 === void 0 ? void 0 : _state5.connectionNo
|
|
@@ -33770,47 +33909,27 @@ const ConnectionDetails$5 = () => {
|
|
|
33770
33909
|
marginBottom: "20px"
|
|
33771
33910
|
}
|
|
33772
33911
|
}) : null)));
|
|
33773
|
-
})), (((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.status) !== "inactive" || ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.applicationStatus) !== "Inactive" || ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React__default.createElement(
|
|
33912
|
+
})), (((_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.status) !== "inactive" || ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.applicationStatus) !== "Inactive" || ((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React__default.createElement("div", {
|
|
33774
33913
|
style: {
|
|
33775
|
-
position: "relative",
|
|
33776
|
-
boxShadow: "none",
|
|
33777
|
-
minWidth: "240px",
|
|
33778
|
-
maxWidth: "620px",
|
|
33779
|
-
padding: "0px",
|
|
33780
|
-
marginTop: "15px",
|
|
33781
33914
|
display: "flex",
|
|
33782
|
-
|
|
33783
|
-
|
|
33784
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
33785
|
-
style: {
|
|
33915
|
+
justifyContent: "flex-end",
|
|
33916
|
+
marginTop: "15px",
|
|
33786
33917
|
width: "100%"
|
|
33787
33918
|
}
|
|
33788
33919
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33789
|
-
style: {
|
|
33790
|
-
width: "100%"
|
|
33791
|
-
},
|
|
33792
33920
|
label: t("WS_DISCONNECTION_BUTTON"),
|
|
33793
33921
|
onSubmit: onActionSelect
|
|
33794
|
-
}))
|
|
33795
|
-
style: {
|
|
33796
|
-
position: "relative",
|
|
33797
|
-
boxShadow: "none",
|
|
33798
|
-
minWidth: "240px",
|
|
33799
|
-
maxWidth: "310px",
|
|
33800
|
-
padding: "0px",
|
|
33801
|
-
marginTop: "15px"
|
|
33802
|
-
}
|
|
33803
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
33922
|
+
})) : ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.status) == "Inactive" && ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.isDisconnectionTemporary) && /*#__PURE__*/React__default.createElement("div", {
|
|
33804
33923
|
style: {
|
|
33924
|
+
display: "flex",
|
|
33925
|
+
justifyContent: "flex-end",
|
|
33926
|
+
marginTop: "15px",
|
|
33805
33927
|
width: "100%"
|
|
33806
33928
|
}
|
|
33807
33929
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33808
|
-
style: {
|
|
33809
|
-
width: "100%"
|
|
33810
|
-
},
|
|
33811
33930
|
label: t("WS_RECONNECTION_BUTTON"),
|
|
33812
33931
|
onSubmit: onActionSelectRestoration
|
|
33813
|
-
}))
|
|
33932
|
+
})), showModal ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
33814
33933
|
open: showModal,
|
|
33815
33934
|
headerBarMain: /*#__PURE__*/React__default.createElement(Heading, {
|
|
33816
33935
|
label: t("WS_PENDING_DUES_LABEL")
|
|
@@ -38247,7 +38366,7 @@ const FileUploadField = _ref6 => {
|
|
|
38247
38366
|
})))));
|
|
38248
38367
|
};
|
|
38249
38368
|
const NewApplication = () => {
|
|
38250
|
-
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;
|
|
38369
|
+
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;
|
|
38251
38370
|
const _useTranslation2 = reactI18next.useTranslation(),
|
|
38252
38371
|
t = _useTranslation2.t;
|
|
38253
38372
|
const history = reactRouterDom.useHistory();
|
|
@@ -40280,9 +40399,6 @@ const NewApplication = () => {
|
|
|
40280
40399
|
})), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
|
|
40281
40400
|
control: control,
|
|
40282
40401
|
name: "declaration.signatureFile",
|
|
40283
|
-
rules: {
|
|
40284
|
-
validate: value => !!value || "Signature upload is required."
|
|
40285
|
-
},
|
|
40286
40402
|
render: props => /*#__PURE__*/React__default.createElement(FileUploadField, {
|
|
40287
40403
|
error: getFieldError("declaration.signatureFile"),
|
|
40288
40404
|
id: "signature-file",
|
|
@@ -40290,7 +40406,6 @@ const NewApplication = () => {
|
|
|
40290
40406
|
label: "Upload Signature",
|
|
40291
40407
|
onDelete: () => clearUploadedFile("declaration.signatureFile", props.onChange),
|
|
40292
40408
|
onUpload: event => uploadFile(event, "declaration.signatureFile", props.onChange),
|
|
40293
|
-
required: true,
|
|
40294
40409
|
value: props.value
|
|
40295
40410
|
})
|
|
40296
40411
|
})))), previewMode && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(SectionCard, {
|
|
@@ -40602,7 +40717,7 @@ const NewApplication = () => {
|
|
|
40602
40717
|
onSubmit: onReset,
|
|
40603
40718
|
style: secondaryButtonStyle
|
|
40604
40719
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
40605
|
-
disabled: hasPendingUpload,
|
|
40720
|
+
disabled: hasPendingUpload || !(formValues !== null && formValues !== void 0 && (_formValues$declarati4 = formValues.declaration) !== null && _formValues$declarati4 !== void 0 && _formValues$declarati4.agree),
|
|
40606
40721
|
label: hasPendingUpload ? "Uploading..." : "Preview",
|
|
40607
40722
|
onSubmit: handleSubmit(onPreview)
|
|
40608
40723
|
})) : /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
@@ -40610,7 +40725,7 @@ const NewApplication = () => {
|
|
|
40610
40725
|
onSubmit: onEdit,
|
|
40611
40726
|
style: secondaryButtonStyle
|
|
40612
40727
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
40613
|
-
disabled: hasPendingUpload,
|
|
40728
|
+
disabled: hasPendingUpload || !(formValues !== null && formValues !== void 0 && (_formValues$declarati5 = formValues.declaration) !== null && _formValues$declarati5 !== void 0 && _formValues$declarati5.agree),
|
|
40614
40729
|
label: hasPendingUpload ? "Uploading..." : "Submit",
|
|
40615
40730
|
onSubmit: handleSubmit(onSubmit)
|
|
40616
40731
|
}))), showToast ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
@@ -47724,7 +47839,7 @@ const ApplicationDetails = props => {
|
|
|
47724
47839
|
};
|
|
47725
47840
|
|
|
47726
47841
|
const ApplicationDetails$1 = () => {
|
|
47727
|
-
var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$p8, _applicationDetails$p9, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$
|
|
47842
|
+
var _mdmsCommonmastersDat, _commonPayInfo, _applicationDetails$p4, _applicationDetails$p5, _applicationDetails$p6, _applicationDetails$p7, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _newValueFilter$, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$p8, _applicationDetails$p9, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data21, _workflowDetails$data22, _workflowDetails$data23, _oldData$WaterConnect, _oldData$WaterConnect2, _oldData$SewerageConn, _oldData$SewerageConn2, _applicationDetails$a22, _applicationDetails$a23, _reciept_data$Payment2, _applicationDetails$p18, _applicationDetails$p19, _applicationDetails$p20, _applicationDetails$p21, _applicationDetails$p22, _applicationDetails$p23;
|
|
47728
47843
|
const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
|
|
47729
47844
|
try {
|
|
47730
47845
|
let response = null;
|
|
@@ -47918,8 +48033,9 @@ const ApplicationDetails$1 = () => {
|
|
|
47918
48033
|
};
|
|
47919
48034
|
}
|
|
47920
48035
|
if ((action === null || action === void 0 ? void 0 : action.action) === "RESUBMIT_APPLICATION") {
|
|
47921
|
-
var _applicationDetails$p11, _servicesMasterData$w, _userConfig$, _userConfig$2;
|
|
47922
|
-
|
|
48036
|
+
var _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$p11, _applicationDetails$p12, _servicesMasterData$w, _userConfig$, _userConfig$2;
|
|
48037
|
+
const isMutation = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a0 = applicationDetails.applicationData) === null || _applicationDetails$a0 === void 0 ? void 0 : (_applicationDetails$a1 = _applicationDetails$a0.applicationType) === null || _applicationDetails$a1 === void 0 ? void 0 : _applicationDetails$a1.includes("MUTATION");
|
|
48038
|
+
let pathName = isMutation ? "/digit-ui/employee/ws/mutation-application?applicationNumber=" + applicationNumber + "&tenantId=" + tenantId + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p11 = applicationDetails.propertyDetails) === null || _applicationDetails$p11 === void 0 ? void 0 : _applicationDetails$p11.propertyId) : "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p12 = applicationDetails.propertyDetails) === null || _applicationDetails$p12 === void 0 ? void 0 : _applicationDetails$p12.propertyId);
|
|
47923
48039
|
const userConfig = (servicesMasterData === null || servicesMasterData === void 0 ? void 0 : (_servicesMasterData$w = servicesMasterData["ws-services-masters"]) === null || _servicesMasterData$w === void 0 ? void 0 : _servicesMasterData$w.WSEditApplicationByConfigUser) || [];
|
|
47924
48040
|
const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$ = userConfig[0]) === null || _userConfig$ === void 0 ? void 0 : _userConfig$.roles) || [];
|
|
47925
48041
|
const mdmsApplicationStatus = userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$2 = userConfig[0]) === null || _userConfig$2 === void 0 ? void 0 : _userConfig$2.status;
|
|
@@ -47928,9 +48044,9 @@ const ApplicationDetails$1 = () => {
|
|
|
47928
48044
|
isFieldInspector = ifUserRoleExists(role);
|
|
47929
48045
|
if (isFieldInspector) return false;else return true;
|
|
47930
48046
|
});
|
|
47931
|
-
if (isFieldInspector && appStatus === mdmsApplicationStatus) {
|
|
47932
|
-
var _applicationDetails$
|
|
47933
|
-
pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48047
|
+
if (!isMutation && isFieldInspector && appStatus === mdmsApplicationStatus) {
|
|
48048
|
+
var _applicationDetails$p13;
|
|
48049
|
+
pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p13 = applicationDetails.propertyDetails) === null || _applicationDetails$p13 === void 0 ? void 0 : _applicationDetails$p13.propertyId);
|
|
47934
48050
|
}
|
|
47935
48051
|
action.redirectionUrll = {
|
|
47936
48052
|
action: "ACTIVATE_CONNECTION",
|
|
@@ -47942,18 +48058,19 @@ const ApplicationDetails$1 = () => {
|
|
|
47942
48058
|
};
|
|
47943
48059
|
}
|
|
47944
48060
|
if ((action === null || action === void 0 ? void 0 : action.action) === "SUBMIT_APPLICATION") {
|
|
47945
|
-
var _applicationDetails$
|
|
48061
|
+
var _applicationDetails$p14;
|
|
47946
48062
|
action.redirectionUrll = {
|
|
47947
48063
|
action: "ACTIVATE_CONNECTION",
|
|
47948
|
-
pathname: "/digit-ui/employee/ws/modify-application-edit?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48064
|
+
pathname: "/digit-ui/employee/ws/modify-application-edit?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p14 = applicationDetails.propertyDetails) === null || _applicationDetails$p14 === void 0 ? void 0 : _applicationDetails$p14.propertyId),
|
|
47949
48065
|
state: applicationDetails
|
|
47950
48066
|
};
|
|
47951
48067
|
}
|
|
47952
48068
|
});
|
|
47953
48069
|
workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data7 = workflowDetails.data) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.actionState) === null || _workflowDetails$data8 === void 0 ? void 0 : (_workflowDetails$data9 = _workflowDetails$data8.nextActions) === null || _workflowDetails$data9 === void 0 ? void 0 : _workflowDetails$data9.forEach(action => {
|
|
47954
48070
|
if ((action === null || action === void 0 ? void 0 : action.action) === "EDIT") {
|
|
47955
|
-
var _applicationDetails$
|
|
47956
|
-
|
|
48071
|
+
var _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$p15, _applicationDetails$p16, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
|
|
48072
|
+
const isMutation = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a10 = applicationDetails.applicationData) === null || _applicationDetails$a10 === void 0 ? void 0 : (_applicationDetails$a11 = _applicationDetails$a10.applicationType) === null || _applicationDetails$a11 === void 0 ? void 0 : _applicationDetails$a11.includes("MUTATION");
|
|
48073
|
+
let pathName = isMutation ? "/digit-ui/employee/ws/mutation-application?applicationNumber=" + applicationNumber + "&tenantId=" + tenantId + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p15 = applicationDetails.propertyDetails) === null || _applicationDetails$p15 === void 0 ? void 0 : _applicationDetails$p15.propertyId) : "/digit-ui/employee/ws/edit-application?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p16 = applicationDetails.propertyDetails) === null || _applicationDetails$p16 === void 0 ? void 0 : _applicationDetails$p16.propertyId);
|
|
47957
48074
|
const userConfig = (servicesMasterData === null || servicesMasterData === void 0 ? void 0 : (_servicesMasterData$w2 = servicesMasterData["ws-services-masters"]) === null || _servicesMasterData$w2 === void 0 ? void 0 : _servicesMasterData$w2.WSEditApplicationByConfigUser) || [];
|
|
47958
48075
|
const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$3 = userConfig[0]) === null || _userConfig$3 === void 0 ? void 0 : _userConfig$3.roles) || [];
|
|
47959
48076
|
const mdmsApplicationStatus = userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$4 = userConfig[0]) === null || _userConfig$4 === void 0 ? void 0 : _userConfig$4.status;
|
|
@@ -47962,9 +48079,9 @@ const ApplicationDetails$1 = () => {
|
|
|
47962
48079
|
isFieldInspector = ifUserRoleExists(role);
|
|
47963
48080
|
if (isFieldInspector) return false;else return true;
|
|
47964
48081
|
});
|
|
47965
|
-
if (isFieldInspector && appStatus === mdmsApplicationStatus) {
|
|
47966
|
-
var _applicationDetails$
|
|
47967
|
-
pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48082
|
+
if (!isMutation && isFieldInspector && appStatus === mdmsApplicationStatus) {
|
|
48083
|
+
var _applicationDetails$p17;
|
|
48084
|
+
pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p17 = applicationDetails.propertyDetails) === null || _applicationDetails$p17 === void 0 ? void 0 : _applicationDetails$p17.propertyId);
|
|
47968
48085
|
}
|
|
47969
48086
|
action.redirectionUrll = {
|
|
47970
48087
|
action: "ACTIVATE_CONNECTION",
|
|
@@ -48033,10 +48150,10 @@ const ApplicationDetails$1 = () => {
|
|
|
48033
48150
|
const oldApplication = serviceType === "WATER" ? oldData === null || oldData === void 0 ? void 0 : (_oldData$WaterConnect = oldData.WaterConnection) === null || _oldData$WaterConnect === void 0 ? void 0 : _oldData$WaterConnect[(oldData === null || oldData === void 0 ? void 0 : (_oldData$WaterConnect2 = oldData.WaterConnection) === null || _oldData$WaterConnect2 === void 0 ? void 0 : _oldData$WaterConnect2.length) - 1] : oldData === null || oldData === void 0 ? void 0 : (_oldData$SewerageConn = oldData.SewerageConnections) === null || _oldData$SewerageConn === void 0 ? void 0 : _oldData$SewerageConn[(oldData === null || oldData === void 0 ? void 0 : (_oldData$SewerageConn2 = oldData.SewerageConnections) === null || _oldData$SewerageConn2 === void 0 ? void 0 : _oldData$SewerageConn2.length) - 1];
|
|
48034
48151
|
const handleDownloadPdf = function () {
|
|
48035
48152
|
try {
|
|
48036
|
-
var _applicationDetails$
|
|
48037
|
-
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48153
|
+
var _applicationDetails$a12, _applicationDetails$a13, _applicationDetails$a14;
|
|
48154
|
+
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a12 = applicationDetails.applicationData) === null || _applicationDetails$a12 === void 0 ? void 0 : _applicationDetails$a12.tenantId;
|
|
48038
48155
|
let result = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData;
|
|
48039
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
48156
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a13 = applicationDetails.applicationData) !== null && _applicationDetails$a13 !== void 0 && (_applicationDetails$a14 = _applicationDetails$a13.applicationType) !== null && _applicationDetails$a14 !== void 0 && _applicationDetails$a14.includes("MODIFY_")) {
|
|
48040
48157
|
const PDFdata = getWSAcknowledgementData$1(_extends({}, result), _extends({}, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.propertyDetails), tenantInfo, t, oldApplication);
|
|
48041
48158
|
PDFdata.then(ress => Digit.Utils.pdf.generateModifyPdf(ress));
|
|
48042
48159
|
return Promise.resolve();
|
|
@@ -48050,10 +48167,10 @@ const ApplicationDetails$1 = () => {
|
|
|
48050
48167
|
};
|
|
48051
48168
|
const handleEstimateDownload = function () {
|
|
48052
48169
|
try {
|
|
48053
|
-
const _temp2 = function (_applicationDetails$
|
|
48054
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
48055
|
-
var _applicationDetails$
|
|
48056
|
-
getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48170
|
+
const _temp2 = function (_applicationDetails$a15, _applicationDetails$a16) {
|
|
48171
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a15 = applicationDetails.applicationData) !== null && _applicationDetails$a15 !== void 0 && (_applicationDetails$a16 = _applicationDetails$a15.additionalDetails) !== null && _applicationDetails$a16 !== void 0 && _applicationDetails$a16.estimationFileStoreId) {
|
|
48172
|
+
var _applicationDetails$a17, _applicationDetails$a18;
|
|
48173
|
+
getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a17 = applicationDetails.applicationData) === null || _applicationDetails$a17 === void 0 ? void 0 : (_applicationDetails$a18 = _applicationDetails$a17.additionalDetails) === null || _applicationDetails$a18 === void 0 ? void 0 : _applicationDetails$a18.estimationFileStoreId], applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId);
|
|
48057
48174
|
} else {
|
|
48058
48175
|
const warningCount = sessionStorage.getItem("WARINIG_COUNT") || "0";
|
|
48059
48176
|
const warningCountDetails = JSON.parse(warningCount);
|
|
@@ -48111,8 +48228,8 @@ const ApplicationDetails$1 = () => {
|
|
|
48111
48228
|
order: 2,
|
|
48112
48229
|
label: t("WS_SANCTION_LETTER"),
|
|
48113
48230
|
onClick: () => {
|
|
48114
|
-
var _applicationDetails$
|
|
48115
|
-
return getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48231
|
+
var _applicationDetails$a19, _applicationDetails$a20;
|
|
48232
|
+
return getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a19 = applicationDetails.applicationData) === null || _applicationDetails$a19 === void 0 ? void 0 : (_applicationDetails$a20 = _applicationDetails$a19.additionalDetails) === null || _applicationDetails$a20 === void 0 ? void 0 : _applicationDetails$a20.sanctionFileStoreId], applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.tenantId);
|
|
48116
48233
|
}
|
|
48117
48234
|
};
|
|
48118
48235
|
const applicationDownloadObject = {
|
|
@@ -48124,8 +48241,8 @@ const ApplicationDetails$1 = () => {
|
|
|
48124
48241
|
order: 4,
|
|
48125
48242
|
label: t("DOWNLOAD_RECEIPT_HEADER"),
|
|
48126
48243
|
onClick: () => {
|
|
48127
|
-
var _reciept_data$Payment, _applicationDetails$
|
|
48128
|
-
return getRecieptSearch(Digit.ULBService.getStateId(), reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment[0], applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48244
|
+
var _reciept_data$Payment, _applicationDetails$a21;
|
|
48245
|
+
return getRecieptSearch(Digit.ULBService.getStateId(), reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment = reciept_data.Payments) === null || _reciept_data$Payment === void 0 ? void 0 : _reciept_data$Payment[0], applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a21 = applicationDetails.applicationData) === null || _applicationDetails$a21 === void 0 ? void 0 : _applicationDetails$a21.applicationNo, receiptKey);
|
|
48129
48246
|
}
|
|
48130
48247
|
};
|
|
48131
48248
|
switch (appStatus) {
|
|
@@ -48140,7 +48257,7 @@ const ApplicationDetails$1 = () => {
|
|
|
48140
48257
|
break;
|
|
48141
48258
|
case "PENDING_FOR_CONNECTION_ACTIVATION":
|
|
48142
48259
|
case "CONNECTION_ACTIVATED":
|
|
48143
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
48260
|
+
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a22 = applicationDetails.applicationData) !== null && _applicationDetails$a22 !== void 0 && (_applicationDetails$a23 = _applicationDetails$a22.applicationType) !== null && _applicationDetails$a23 !== void 0 && _applicationDetails$a23.includes("NEW_") && (reciept_data === null || reciept_data === void 0 ? void 0 : (_reciept_data$Payment2 = reciept_data.Payments) === null || _reciept_data$Payment2 === void 0 ? void 0 : _reciept_data$Payment2.length) > 0) dowloadOptions = [sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject, appFeeDownloadReceipt];else dowloadOptions = [sanctionDownloadObject, wsEstimateDownloadObject, applicationDownloadObject];
|
|
48144
48261
|
break;
|
|
48145
48262
|
case "REJECTED":
|
|
48146
48263
|
dowloadOptions = [applicationDownloadObject];
|
|
@@ -48186,12 +48303,12 @@ const ApplicationDetails$1 = () => {
|
|
|
48186
48303
|
mutate: mutate,
|
|
48187
48304
|
id: "timeline",
|
|
48188
48305
|
workflowDetails: workflowDetails,
|
|
48189
|
-
businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48306
|
+
businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p18 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p18 === void 0 ? void 0 : (_applicationDetails$p19 = _applicationDetails$p18[0]) === null || _applicationDetails$p19 === void 0 ? void 0 : (_applicationDetails$p20 = _applicationDetails$p19.businessService) === null || _applicationDetails$p20 === void 0 ? void 0 : _applicationDetails$p20.toUpperCase(),
|
|
48190
48307
|
moduleCode: "WS",
|
|
48191
48308
|
showToast: showToast,
|
|
48192
48309
|
setShowToast: setShowToast,
|
|
48193
48310
|
closeToast: closeToast,
|
|
48194
|
-
timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48311
|
+
timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$p21 = applicationDetails.processInstancesDetails) === null || _applicationDetails$p21 === void 0 ? void 0 : (_applicationDetails$p22 = _applicationDetails$p21[0]) === null || _applicationDetails$p22 === void 0 ? void 0 : (_applicationDetails$p23 = _applicationDetails$p22.businessService) === null || _applicationDetails$p23 === void 0 ? void 0 : _applicationDetails$p23.toUpperCase()) + "_",
|
|
48195
48312
|
oldValue: res,
|
|
48196
48313
|
isInfoLabel: checkforPrivacyenablement(),
|
|
48197
48314
|
clearDataDetails: clearDataDetails,
|
|
@@ -48484,7 +48601,10 @@ const GetConnectionDetails = () => {
|
|
|
48484
48601
|
};
|
|
48485
48602
|
return /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
48486
48603
|
style: {
|
|
48487
|
-
position: "relative"
|
|
48604
|
+
position: "relative",
|
|
48605
|
+
width: "100%",
|
|
48606
|
+
height: "100%",
|
|
48607
|
+
overflowY: "scroll"
|
|
48488
48608
|
}
|
|
48489
48609
|
}, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
48490
48610
|
style: {
|
|
@@ -52257,7 +52377,7 @@ const Step5_Submission = _ref => {
|
|
|
52257
52377
|
flexWrap: "wrap",
|
|
52258
52378
|
gap: "6px"
|
|
52259
52379
|
}
|
|
52260
|
-
}, /*#__PURE__*/React__default.createElement("span", null, "\u2705"), " Your application has been submitted successfully!"), /*#__PURE__*/React__default.createElement("div", {
|
|
52380
|
+
}, /*#__PURE__*/React__default.createElement("span", null, "\u2705"), " Your application has been submitted successfully to the respective Zonal Officer !"), /*#__PURE__*/React__default.createElement("div", {
|
|
52261
52381
|
style: {
|
|
52262
52382
|
color: "#666",
|
|
52263
52383
|
marginTop: "4px",
|
|
@@ -52370,7 +52490,8 @@ const MutationApplication = () => {
|
|
|
52370
52490
|
}),
|
|
52371
52491
|
isWorkflowLoading = _useQuery.isLoading,
|
|
52372
52492
|
workflowData = _useQuery.data;
|
|
52373
|
-
const
|
|
52493
|
+
const isEmployee = window.location.href.includes("/employee/");
|
|
52494
|
+
const isEditFlow = !!editApplicationNumber && (isEmployee || (workflowData === null || workflowData === void 0 ? void 0 : workflowData.action) === "SEND_BACK_TO_CITIZEN");
|
|
52374
52495
|
const querySearchParam = isEditFlow ? editApplicationNumber : authKNumber;
|
|
52375
52496
|
const fallbackServiceType = serviceType || authServiceType;
|
|
52376
52497
|
const businessService = (fallbackServiceType === null || fallbackServiceType === void 0 ? void 0 : fallbackServiceType.toUpperCase()) === "SEWERAGE" ? "SW" : "WS";
|
|
@@ -52454,7 +52575,8 @@ const MutationApplication = () => {
|
|
|
52454
52575
|
}, [applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.id]);
|
|
52455
52576
|
React.useEffect(() => {
|
|
52456
52577
|
const isCitizen = window.location.href.includes("/citizen/");
|
|
52457
|
-
|
|
52578
|
+
const isEmployee = window.location.href.includes("/employee/");
|
|
52579
|
+
if ((isCitizen || isEmployee) && isEditFlow && applicationDetails !== null && applicationDetails !== void 0 && applicationDetails.applicationData) {
|
|
52458
52580
|
const data = applicationDetails.applicationData;
|
|
52459
52581
|
const holders = (data === null || data === void 0 ? void 0 : data.connectionHolders) || [];
|
|
52460
52582
|
const primaryHolder = holders.find(h => h.isPrimaryOwner) || holders[0] || {};
|
|
@@ -52467,6 +52589,36 @@ const MutationApplication = () => {
|
|
|
52467
52589
|
return ["AADHAAR", "VOTERID", "VOTER_ID", "PAN", "DRIVING_LICENSE", "PASSPORT"].includes((_d$documentType = d.documentType) === null || _d$documentType === void 0 ? void 0 : _d$documentType.toUpperCase());
|
|
52468
52590
|
});
|
|
52469
52591
|
const mutationDoc = documents.find(d => d.documentType === "REGISTERED_SALE_DEED" || d.documentType === "SALE_DEED" || d.documentType === "GIFT_DEED" || d.documentType === "WILL");
|
|
52592
|
+
const reasonOptions = [{
|
|
52593
|
+
code: "SALE_PURCHASE",
|
|
52594
|
+
i18nKey: "Purchase of Property"
|
|
52595
|
+
}, {
|
|
52596
|
+
code: "DEVOLUTION_INHERITANCE",
|
|
52597
|
+
i18nKey: "Devolution/Inheritance"
|
|
52598
|
+
}, {
|
|
52599
|
+
code: "OTHER",
|
|
52600
|
+
i18nKey: "Other Reason(Gift Deed, Lease Agreement, etc)"
|
|
52601
|
+
}];
|
|
52602
|
+
const relationshipOptions = [{
|
|
52603
|
+
code: "BLOOD_RELATION",
|
|
52604
|
+
i18nKey: "Blood Relation (Son / Daughter / Spouse)"
|
|
52605
|
+
}, {
|
|
52606
|
+
code: "LEGAL_HEIR",
|
|
52607
|
+
i18nKey: "Legal Heir"
|
|
52608
|
+
}, {
|
|
52609
|
+
code: "OTHER",
|
|
52610
|
+
i18nKey: "Other"
|
|
52611
|
+
}];
|
|
52612
|
+
const reasonCode = additionalDetails.reasonForNameChange;
|
|
52613
|
+
const reasonObj = reasonOptions.find(o => o.code === reasonCode) || (reasonCode ? {
|
|
52614
|
+
code: reasonCode,
|
|
52615
|
+
i18nKey: reasonCode
|
|
52616
|
+
} : null);
|
|
52617
|
+
const relationCode = additionalDetails.relationshipWithExistingConsumer;
|
|
52618
|
+
const relationObj = relationshipOptions.find(o => o.code === relationCode) || (relationCode ? {
|
|
52619
|
+
code: relationCode,
|
|
52620
|
+
i18nKey: relationCode
|
|
52621
|
+
} : null);
|
|
52470
52622
|
return {
|
|
52471
52623
|
proposedNewConsumerName: primaryHolder.name || "",
|
|
52472
52624
|
gender: primaryHolder.gender ? {
|
|
@@ -52475,21 +52627,18 @@ const MutationApplication = () => {
|
|
|
52475
52627
|
} : null,
|
|
52476
52628
|
newOwnerMobileNumber: primaryHolder.mobileNumber || "",
|
|
52477
52629
|
newOwnerEmailAddress: primaryHolder.emailId || "",
|
|
52478
|
-
reasonForNameChange:
|
|
52479
|
-
|
|
52480
|
-
|
|
52481
|
-
|
|
52482
|
-
|
|
52483
|
-
code: additionalDetails.
|
|
52484
|
-
i18nKey: additionalDetails.
|
|
52485
|
-
} : null
|
|
52486
|
-
saleDeedDocumentId: (mutationDoc === null || mutationDoc === void 0 ? void 0 : mutationDoc.fileStoreId) || additionalDetails.saleDeedDocumentId || "",
|
|
52487
|
-
identityProofDocumentId: (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.fileStoreId) || "",
|
|
52488
|
-
identityProofType: identityDoc !== null && identityDoc !== void 0 && identityDoc.documentType ? {
|
|
52630
|
+
reasonForNameChange: reasonObj,
|
|
52631
|
+
relationshipWithExistingConsumer: relationObj,
|
|
52632
|
+
saleDeedDocumentId: additionalDetails.saleDeedDocumentId || (mutationDoc === null || mutationDoc === void 0 ? void 0 : mutationDoc.fileStoreId) || "",
|
|
52633
|
+
identityProofDocumentId: additionalDetails.identityProofDocumentId || (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.fileStoreId) || "",
|
|
52634
|
+
identityProofType: additionalDetails.identityProofDocumentName ? {
|
|
52635
|
+
code: additionalDetails.identityProofDocumentName,
|
|
52636
|
+
i18nKey: additionalDetails.identityProofDocumentName
|
|
52637
|
+
} : identityDoc !== null && identityDoc !== void 0 && identityDoc.documentType ? {
|
|
52489
52638
|
code: identityDoc.documentType,
|
|
52490
52639
|
i18nKey: identityDoc.documentType
|
|
52491
52640
|
} : null,
|
|
52492
|
-
documentNumber: additionalDetails.identityProofNumber || (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.documentUid) || ""
|
|
52641
|
+
documentNumber: additionalDetails.identityProofDocumentNumber || additionalDetails.identityProofNumber || (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.documentUid) || ""
|
|
52493
52642
|
};
|
|
52494
52643
|
});
|
|
52495
52644
|
}
|
|
@@ -52586,7 +52735,7 @@ const MutationApplication = () => {
|
|
|
52586
52735
|
});
|
|
52587
52736
|
}
|
|
52588
52737
|
if (mutDetails.identityProofDocumentId) {
|
|
52589
|
-
var _mutDetails$identityP;
|
|
52738
|
+
var _mutDetails$identityP, _mutDetails$identityP2;
|
|
52590
52739
|
if (!convertAppData.documents) convertAppData.documents = [];
|
|
52591
52740
|
convertAppData.documents.push({
|
|
52592
52741
|
documentType: ((_mutDetails$identityP = mutDetails.identityProofType) === null || _mutDetails$identityP === void 0 ? void 0 : _mutDetails$identityP.code) || "IDENTITY_PROOF",
|
|
@@ -52595,6 +52744,10 @@ const MutationApplication = () => {
|
|
|
52595
52744
|
documentNumber: mutDetails.documentNumber,
|
|
52596
52745
|
status: "ACTIVE"
|
|
52597
52746
|
});
|
|
52747
|
+
if (!convertAppData.additionalDetails) convertAppData.additionalDetails = {};
|
|
52748
|
+
convertAppData.additionalDetails.identityProofDocumentNumber = mutDetails.documentNumber || "";
|
|
52749
|
+
convertAppData.additionalDetails.identityProofDocumentName = ((_mutDetails$identityP2 = mutDetails.identityProofType) === null || _mutDetails$identityP2 === void 0 ? void 0 : _mutDetails$identityP2.code) || "IDENTITY_PROOF";
|
|
52750
|
+
convertAppData.additionalDetails.identityProofDocumentId = mutDetails.identityProofDocumentId || "";
|
|
52598
52751
|
}
|
|
52599
52752
|
}
|
|
52600
52753
|
convertAppData.applicationType = resolvedServiceType === "WATER" ? "MUTATION_WATER_CONNECTION" : "MUTATION_SEWERAGE_CONNECTION";
|
|
@@ -55086,6 +55239,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
55086
55239
|
};
|
|
55087
55240
|
|
|
55088
55241
|
const OLDApplication = () => {
|
|
55242
|
+
var _sessionFormData$decl;
|
|
55089
55243
|
const _useTranslation = reactI18next.useTranslation(),
|
|
55090
55244
|
t = _useTranslation.t;
|
|
55091
55245
|
const history = reactRouterDom.useHistory();
|
|
@@ -55297,7 +55451,7 @@ const OLDApplication = () => {
|
|
|
55297
55451
|
}).length > 0)) {
|
|
55298
55452
|
console.warn("[WS] onSubmit EXIT: formState errors blocking submit", formStateErros);
|
|
55299
55453
|
setShowToast({
|
|
55300
|
-
|
|
55454
|
+
key: "error",
|
|
55301
55455
|
message: "PLEASE_FILL_MANDATORY_DETAILS"
|
|
55302
55456
|
});
|
|
55303
55457
|
return;
|
|
@@ -55680,7 +55834,8 @@ const OLDApplication = () => {
|
|
|
55680
55834
|
defaultValues: sessionFormData,
|
|
55681
55835
|
noCard: true,
|
|
55682
55836
|
noBreakLine: true,
|
|
55683
|
-
cardFormWrapperClassName: "new-application-card"
|
|
55837
|
+
cardFormWrapperClassName: "new-application-card",
|
|
55838
|
+
isDisabled: !(sessionFormData !== null && sessionFormData !== void 0 && (_sessionFormData$decl = sessionFormData.declarationData) !== null && _sessionFormData$decl !== void 0 && _sessionFormData$decl.agree)
|
|
55684
55839
|
}), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
55685
55840
|
isDleteBtn: true,
|
|
55686
55841
|
duration: 5000,
|