@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.modern.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState, useMemo, useEffect, useRef, Fragment as Fragment$2, useReducer, useCallback } from 'react';
|
|
2
2
|
import { useTranslation } from 'react-i18next';
|
|
3
3
|
import { Link, useHistory, useLocation, Switch, Route, useRouteMatch, Redirect, useParams } from 'react-router-dom';
|
|
4
|
-
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox,
|
|
4
|
+
import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, SearchForm, SearchField, Dropdown, TextInput, Table, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, VerticalTimeline, CollapsibleCardPage, LabelFieldPair, CardLabel, CardLabelError, CheckBox, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, DatePicker, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, WrapUnMaskComponent, MobileNumber, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, Header, FilterFormField, RemoveableTag as RemoveableTag$1, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, CloseSvg, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, PDFSvg, GenericFileIcon, EditIcon, Label, CardSectionSubText, DownloadIcon, CardLabelDesc, FormComposer, MultiUploadWrapper, Close as Close$f, BreakLine, AddIcon, CheckPoint, ConnectingCheckPoints, Menu, ButtonSelector as ButtonSelector$1, CitizenHomeCard } from '@djb25/digit-ui-react-components';
|
|
5
5
|
import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
|
|
6
6
|
import { read, utils as utils$1 } from 'xlsx';
|
|
7
7
|
import { useQueryClient, useQuery } from 'react-query';
|
|
@@ -8402,7 +8402,7 @@ const getDocumentDetails = (application, t) => {
|
|
|
8402
8402
|
};
|
|
8403
8403
|
const getWSAcknowledgementData = function (application, property, tenantInfo, t) {
|
|
8404
8404
|
try {
|
|
8405
|
-
var _application$
|
|
8405
|
+
var _application$tradeLic17, _application$tradeLic18;
|
|
8406
8406
|
function _temp2() {
|
|
8407
8407
|
return Promise.resolve(getHeaderDetails(application, t, tenantInfo)).then(function (header) {
|
|
8408
8408
|
return {
|
|
@@ -8417,7 +8417,7 @@ const getWSAcknowledgementData = function (application, property, tenantInfo, t)
|
|
|
8417
8417
|
};
|
|
8418
8418
|
});
|
|
8419
8419
|
}
|
|
8420
|
-
const filesArray = application === null || application === void 0 ? void 0 : (_application$
|
|
8420
|
+
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);
|
|
8421
8421
|
let res;
|
|
8422
8422
|
const _temp = function () {
|
|
8423
8423
|
if (filesArray) {
|
|
@@ -8984,7 +8984,7 @@ const App = _ref => {
|
|
|
8984
8984
|
}, {
|
|
8985
8985
|
path: "/digit-ui/citizen/ws/my-connections",
|
|
8986
8986
|
label: t("WS_MYCONNECTIONS_HEADER"),
|
|
8987
|
-
show: location.pathname.includes("/my-connections")
|
|
8987
|
+
show: location.pathname.includes("/my-connections") || location.pathname.includes("/connection/details")
|
|
8988
8988
|
}, {
|
|
8989
8989
|
path: "/digit-ui/citizen/ws/my-bills",
|
|
8990
8990
|
label: t("CS_WS_MY_BILLS"),
|
|
@@ -9001,6 +9001,10 @@ const App = _ref => {
|
|
|
9001
9001
|
path: location.pathname,
|
|
9002
9002
|
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
9003
9003
|
show: location.pathname.includes("/connection/application")
|
|
9004
|
+
}, {
|
|
9005
|
+
path: location.pathname,
|
|
9006
|
+
label: t("WS_COMMON_CONNECTION_DETAIL"),
|
|
9007
|
+
show: location.pathname.includes("/connection/details")
|
|
9004
9008
|
}, {
|
|
9005
9009
|
path: location.pathname,
|
|
9006
9010
|
label: t("WS_APPLICATION_DETAILS_HEADER"),
|
|
@@ -9097,7 +9101,9 @@ const App = _ref => {
|
|
|
9097
9101
|
component: WSCitizenEditApplication
|
|
9098
9102
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9099
9103
|
path: path + "/old-application",
|
|
9100
|
-
component:
|
|
9104
|
+
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
9105
|
+
layoutClass: "action"
|
|
9106
|
+
}, /*#__PURE__*/React.createElement(WSOLDApplication, null))
|
|
9101
9107
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
9102
9108
|
path: path + "/info",
|
|
9103
9109
|
component: WSInfoPage
|
|
@@ -11116,7 +11122,9 @@ const App$1 = _ref2 => {
|
|
|
11116
11122
|
component: WSModifyApplicationDetails
|
|
11117
11123
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
11118
11124
|
path: path + "/connection-details",
|
|
11119
|
-
component:
|
|
11125
|
+
component: () => /*#__PURE__*/React.createElement(LayoutWrapper, {
|
|
11126
|
+
layoutClass: "action"
|
|
11127
|
+
}, /*#__PURE__*/React.createElement(WSGetConnectionDetails, null))
|
|
11120
11128
|
}), /*#__PURE__*/React.createElement(PrivateRoute, {
|
|
11121
11129
|
path: path + "/bill-amendment",
|
|
11122
11130
|
component: () => /*#__PURE__*/React.createElement(WSApplicationBillAmendment, {
|
|
@@ -17963,7 +17971,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
17963
17971
|
}));
|
|
17964
17972
|
};
|
|
17965
17973
|
function SelectDocument(_ref2) {
|
|
17966
|
-
var _formData$ConnectionD, _doc$i18nKey, _doc$i18nKey2, _doc$i18nKey3;
|
|
17974
|
+
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;
|
|
17967
17975
|
let t = _ref2.t,
|
|
17968
17976
|
doc = _ref2.document,
|
|
17969
17977
|
setDocuments = _ref2.setDocuments,
|
|
@@ -18026,6 +18034,29 @@ function SelectDocument(_ref2) {
|
|
|
18026
18034
|
const _useState13 = useState(false),
|
|
18027
18035
|
digiLockerUpload = _useState13[0],
|
|
18028
18036
|
setDigilockerUpload = _useState13[1];
|
|
18037
|
+
const _useState14 = useState(null),
|
|
18038
|
+
docNumberError = _useState14[0],
|
|
18039
|
+
setDocNumberError = _useState14[1];
|
|
18040
|
+
const validateDocumentNumber = (value, docTypeCode, isReq, hasFile) => {
|
|
18041
|
+
if (!isReq && !hasFile && (!value || !value.trim())) return null;
|
|
18042
|
+
if (!value || !value.trim()) return t("WS_DOCUMENT_NUMBER_REQUIRED") || "Document number is required";
|
|
18043
|
+
const trimmed = value.trim();
|
|
18044
|
+
const upperCode = (docTypeCode || "").toUpperCase();
|
|
18045
|
+
if (upperCode.includes("AADHAAR") || upperCode.includes("AADHAR")) {
|
|
18046
|
+
if (!/^\d{12}$/.test(trimmed)) return t("WS_AADHAAR_VALIDATION_ERROR") || "Aadhaar number must be exactly 12 digits";
|
|
18047
|
+
} else if (upperCode.includes("PAN")) {
|
|
18048
|
+
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";
|
|
18049
|
+
} else if (upperCode.includes("VOTER") || upperCode.includes("VOTERID")) {
|
|
18050
|
+
if (!/^[A-Z]{3}\d{7}$/.test(trimmed.toUpperCase())) return t("WS_VOTERID_VALIDATION_ERROR") || "Voter ID must be in format ABC1234567";
|
|
18051
|
+
} else if (upperCode.includes("DRIVING") || upperCode.includes("DRVLC")) {
|
|
18052
|
+
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)";
|
|
18053
|
+
} else if (upperCode.includes("PASSPORT")) {
|
|
18054
|
+
if (!/^[A-Z]{1}\d{7}$/.test(trimmed.toUpperCase())) return t("WS_PASSPORT_VALIDATION_ERROR") || "Passport must be 8 characters (e.g. A1234567)";
|
|
18055
|
+
} else {
|
|
18056
|
+
if (trimmed.length < 3) return t("WS_DOC_NO_MIN_LENGTH") || "Document number must be at least 3 characters";
|
|
18057
|
+
}
|
|
18058
|
+
return null;
|
|
18059
|
+
};
|
|
18029
18060
|
useEffect(() => {
|
|
18030
18061
|
const eligible = isDigiLockerEligible((selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "");
|
|
18031
18062
|
setDigilockerUpload(eligible);
|
|
@@ -18091,8 +18122,8 @@ function SelectDocument(_ref2) {
|
|
|
18091
18122
|
}
|
|
18092
18123
|
const dropdownData = doc.dropdownData;
|
|
18093
18124
|
var dropDownData = dropdownData;
|
|
18094
|
-
const
|
|
18095
|
-
isHidden =
|
|
18125
|
+
const _useState15 = useState(false),
|
|
18126
|
+
isHidden = _useState15[0];
|
|
18096
18127
|
const addError = () => {
|
|
18097
18128
|
var _formState$errors, _formState$errors$con;
|
|
18098
18129
|
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;
|
|
@@ -18140,10 +18171,15 @@ function SelectDocument(_ref2) {
|
|
|
18140
18171
|
return data;
|
|
18141
18172
|
});
|
|
18142
18173
|
}
|
|
18174
|
+
const err = validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, doc === null || doc === void 0 ? void 0 : doc.required, !!uploadedFile);
|
|
18143
18175
|
if (!isHidden) {
|
|
18144
|
-
if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code)) && doc !== null && doc !== void 0 && doc.required) {
|
|
18176
|
+
if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) || err) && doc !== null && doc !== void 0 && doc.required) {
|
|
18145
18177
|
addError();
|
|
18146
|
-
} else if (
|
|
18178
|
+
} else if (err) {
|
|
18179
|
+
addError();
|
|
18180
|
+
} else if (uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code && !err) {
|
|
18181
|
+
removeError();
|
|
18182
|
+
} else if (!(doc !== null && doc !== void 0 && doc.required) && !err) {
|
|
18147
18183
|
removeError();
|
|
18148
18184
|
}
|
|
18149
18185
|
} else if (isHidden) {
|
|
@@ -18213,7 +18249,17 @@ function SelectDocument(_ref2) {
|
|
|
18213
18249
|
width: "100%",
|
|
18214
18250
|
marginBottom: "20px"
|
|
18215
18251
|
}
|
|
18216
|
-
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React.createElement(
|
|
18252
|
+
}, doc !== null && doc !== void 0 && doc.hasDropdown ? /*#__PURE__*/React.createElement("div", {
|
|
18253
|
+
style: {
|
|
18254
|
+
display: "flex",
|
|
18255
|
+
flexDirection: "column",
|
|
18256
|
+
gap: "8px"
|
|
18257
|
+
}
|
|
18258
|
+
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
18259
|
+
style: {
|
|
18260
|
+
margin: 0
|
|
18261
|
+
}
|
|
18262
|
+
}, 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.createElement(Dropdown, {
|
|
18217
18263
|
id: "doc-" + (doc === null || doc === void 0 ? void 0 : doc.code),
|
|
18218
18264
|
key: "doc-" + (doc === null || doc === void 0 ? void 0 : doc.code),
|
|
18219
18265
|
className: "form-field",
|
|
@@ -18227,13 +18273,36 @@ function SelectDocument(_ref2) {
|
|
|
18227
18273
|
select: handleSelectDocument,
|
|
18228
18274
|
optionKey: "i18nKey",
|
|
18229
18275
|
t: t
|
|
18230
|
-
})) : null, (doc === null || doc === void 0 ? void 0 : doc.code) !== "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React.createElement(
|
|
18276
|
+
})) : null, (doc === null || doc === void 0 ? void 0 : doc.code) !== "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React.createElement("div", {
|
|
18277
|
+
style: {
|
|
18278
|
+
display: "flex",
|
|
18279
|
+
flexDirection: "column",
|
|
18280
|
+
gap: "8px"
|
|
18281
|
+
}
|
|
18282
|
+
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
18283
|
+
style: {
|
|
18284
|
+
margin: 0
|
|
18285
|
+
}
|
|
18286
|
+
}, 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.createElement("div", {
|
|
18231
18287
|
className: "field"
|
|
18232
18288
|
}, /*#__PURE__*/React.createElement(TextInput, {
|
|
18233
18289
|
type: "text",
|
|
18234
18290
|
value: documentUid,
|
|
18235
18291
|
onChange: e => {
|
|
18236
|
-
if (!isDocumentUidLocked)
|
|
18292
|
+
if (!isDocumentUidLocked) {
|
|
18293
|
+
var _selectedDocument$cod;
|
|
18294
|
+
let val = e.target.value;
|
|
18295
|
+
const upperCode = (selectedDocument === null || selectedDocument === void 0 ? void 0 : (_selectedDocument$cod = selectedDocument.code) === null || _selectedDocument$cod === void 0 ? void 0 : _selectedDocument$cod.toUpperCase()) || "";
|
|
18296
|
+
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;
|
|
18297
|
+
if (val.length > maxLen) {
|
|
18298
|
+
val = val.substring(0, maxLen);
|
|
18299
|
+
}
|
|
18300
|
+
setDocumentUid(val);
|
|
18301
|
+
setDocNumberError(null);
|
|
18302
|
+
}
|
|
18303
|
+
},
|
|
18304
|
+
onBlur: () => {
|
|
18305
|
+
setDocNumberError(validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, doc === null || doc === void 0 ? void 0 : doc.required, !!uploadedFile));
|
|
18237
18306
|
},
|
|
18238
18307
|
placeholder: t("WS_IDENTITY_NO_PLACEHOLDER"),
|
|
18239
18308
|
disabled: isDocumentUidLocked,
|
|
@@ -18241,8 +18310,58 @@ function SelectDocument(_ref2) {
|
|
|
18241
18310
|
backgroundColor: "#f0f0f0",
|
|
18242
18311
|
cursor: "not-allowed",
|
|
18243
18312
|
color: "#555"
|
|
18244
|
-
} : {
|
|
18245
|
-
|
|
18313
|
+
} : docNumberError ? {
|
|
18314
|
+
border: "1px solid #d32f2f"
|
|
18315
|
+
} : {},
|
|
18316
|
+
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
|
|
18317
|
+
}), docNumberError && /*#__PURE__*/React.createElement("div", {
|
|
18318
|
+
style: {
|
|
18319
|
+
fontSize: "12px",
|
|
18320
|
+
color: "#d32f2f",
|
|
18321
|
+
marginTop: "4px"
|
|
18322
|
+
}
|
|
18323
|
+
}, 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.createElement("div", {
|
|
18324
|
+
style: {
|
|
18325
|
+
fontSize: "11px",
|
|
18326
|
+
color: "#000000",
|
|
18327
|
+
marginTop: "4px"
|
|
18328
|
+
}
|
|
18329
|
+
}, 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.createElement("div", {
|
|
18330
|
+
style: {
|
|
18331
|
+
fontSize: "11px",
|
|
18332
|
+
color: "#000000",
|
|
18333
|
+
marginTop: "4px"
|
|
18334
|
+
}
|
|
18335
|
+
}, 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.createElement("div", {
|
|
18336
|
+
style: {
|
|
18337
|
+
fontSize: "11px",
|
|
18338
|
+
color: "#000000",
|
|
18339
|
+
marginTop: "4px"
|
|
18340
|
+
}
|
|
18341
|
+
}, 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.createElement("div", {
|
|
18342
|
+
style: {
|
|
18343
|
+
fontSize: "11px",
|
|
18344
|
+
color: "#000000",
|
|
18345
|
+
marginTop: "4px"
|
|
18346
|
+
}
|
|
18347
|
+
}, 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.createElement("div", {
|
|
18348
|
+
style: {
|
|
18349
|
+
fontSize: "11px",
|
|
18350
|
+
color: "#000000",
|
|
18351
|
+
marginTop: "4px"
|
|
18352
|
+
}
|
|
18353
|
+
}, t("WS_PASSPORT_VALIDATION_ERROR") || "Format: A1234567"))), /*#__PURE__*/React.createElement("div", {
|
|
18354
|
+
style: {
|
|
18355
|
+
display: "flex",
|
|
18356
|
+
flexDirection: "column",
|
|
18357
|
+
gap: "8px",
|
|
18358
|
+
gridColumn: "span 1"
|
|
18359
|
+
}
|
|
18360
|
+
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
18361
|
+
style: {
|
|
18362
|
+
margin: 0
|
|
18363
|
+
}
|
|
18364
|
+
}, 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.createElement("div", {
|
|
18246
18365
|
className: "field",
|
|
18247
18366
|
style: {
|
|
18248
18367
|
display: "flex",
|
|
@@ -18313,19 +18432,25 @@ function SelectDocument(_ref2) {
|
|
|
18313
18432
|
setIsDocumentUidLocked(false);
|
|
18314
18433
|
setDocumentUid("");
|
|
18315
18434
|
}
|
|
18316
|
-
})),
|
|
18317
|
-
onClick: viewDocument,
|
|
18435
|
+
})))), /*#__PURE__*/React.createElement("div", {
|
|
18318
18436
|
style: {
|
|
18319
|
-
|
|
18437
|
+
display: "flex",
|
|
18438
|
+
flexDirection: "column",
|
|
18439
|
+
gap: "8px",
|
|
18440
|
+
gridColumn: "span 1"
|
|
18320
18441
|
}
|
|
18321
|
-
}, /*#__PURE__*/React.createElement(
|
|
18442
|
+
}, /*#__PURE__*/React.createElement(CardLabel, {
|
|
18443
|
+
style: {
|
|
18444
|
+
margin: 0
|
|
18445
|
+
}
|
|
18446
|
+
}, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? t("WS_CLICK_APPLICANT_PHOTO") || "Click Applicant Photo" : "\u00A0"), /*#__PURE__*/React.createElement("div", {
|
|
18322
18447
|
style: {
|
|
18323
|
-
flex: 1,
|
|
18324
18448
|
display: "flex",
|
|
18325
|
-
|
|
18326
|
-
|
|
18449
|
+
alignItems: "center",
|
|
18450
|
+
gap: "20px",
|
|
18451
|
+
height: "100%"
|
|
18327
18452
|
}
|
|
18328
|
-
},
|
|
18453
|
+
}, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React.createElement("div", {
|
|
18329
18454
|
style: {
|
|
18330
18455
|
display: "flex",
|
|
18331
18456
|
alignItems: "center",
|
|
@@ -18360,7 +18485,21 @@ function SelectDocument(_ref2) {
|
|
|
18360
18485
|
fontWeight: "bold",
|
|
18361
18486
|
fontSize: "14px"
|
|
18362
18487
|
}
|
|
18363
|
-
}, "\u2714 Uploaded"))
|
|
18488
|
+
}, "\u2714 Uploaded")), uploadedFile && /*#__PURE__*/React.createElement("div", {
|
|
18489
|
+
onClick: viewDocument,
|
|
18490
|
+
style: {
|
|
18491
|
+
display: "flex",
|
|
18492
|
+
alignItems: "center",
|
|
18493
|
+
gap: "8px",
|
|
18494
|
+
cursor: "pointer",
|
|
18495
|
+
color: "#00497e",
|
|
18496
|
+
fontWeight: "bold",
|
|
18497
|
+
padding: "8px 16px",
|
|
18498
|
+
border: "1px solid #00497e",
|
|
18499
|
+
borderRadius: "4px",
|
|
18500
|
+
backgroundColor: "#fff"
|
|
18501
|
+
}
|
|
18502
|
+
}, /*#__PURE__*/React.createElement(ViewsIcon, null), /*#__PURE__*/React.createElement("span", null, t("WS_VIEW_DOCUMENT") || "View Document")))), showCamera && /*#__PURE__*/React.createElement(CameraCaptureModal, {
|
|
18364
18503
|
onCapture: handleCapture,
|
|
18365
18504
|
onClose: () => setShowCamera(false),
|
|
18366
18505
|
t: t
|
|
@@ -18427,12 +18566,12 @@ const CameraCaptureModal = _ref4 => {
|
|
|
18427
18566
|
t = _ref4.t;
|
|
18428
18567
|
const videoRef = useRef(null);
|
|
18429
18568
|
const canvasRef = useRef(null);
|
|
18430
|
-
const _useState15 = useState(null),
|
|
18431
|
-
stream = _useState15[0],
|
|
18432
|
-
setStream = _useState15[1];
|
|
18433
18569
|
const _useState16 = useState(null),
|
|
18434
|
-
|
|
18435
|
-
|
|
18570
|
+
stream = _useState16[0],
|
|
18571
|
+
setStream = _useState16[1];
|
|
18572
|
+
const _useState17 = useState(null),
|
|
18573
|
+
error = _useState17[0],
|
|
18574
|
+
setError = _useState17[1];
|
|
18436
18575
|
useEffect(() => {
|
|
18437
18576
|
const startCamera = function () {
|
|
18438
18577
|
try {
|
|
@@ -33229,7 +33368,7 @@ const ConnectionDetails$5 = () => {
|
|
|
33229
33368
|
const applicationDownloadObject = {
|
|
33230
33369
|
order: 2,
|
|
33231
33370
|
label: t("WS_APPLICATION"),
|
|
33232
|
-
onClick: () => handleDownloadPdf
|
|
33371
|
+
onClick: () => handleDownloadPdf()
|
|
33233
33372
|
};
|
|
33234
33373
|
const receiptApplicationFeeDownloadObject = {
|
|
33235
33374
|
order: 3,
|
|
@@ -33350,27 +33489,27 @@ const ConnectionDetails$5 = () => {
|
|
|
33350
33489
|
}
|
|
33351
33490
|
sessionStorage.setItem("ApplicationNoState", (_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.applicationNo);
|
|
33352
33491
|
let serviceType = (_state4 = state) !== null && _state4 !== void 0 && (_state4$applicationTy = _state4.applicationType) !== null && _state4$applicationTy !== void 0 && _state4$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
|
|
33353
|
-
return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(
|
|
33354
|
-
|
|
33492
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, checkifPrivacyenabled && /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
33493
|
+
t: t
|
|
33494
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
33495
|
+
className: "hide-seperator"
|
|
33496
|
+
}, /*#__PURE__*/React.createElement(Card, null, downloadOptions && downloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
33355
33497
|
style: {
|
|
33356
|
-
|
|
33357
|
-
|
|
33498
|
+
position: "absolute",
|
|
33499
|
+
right: "24px",
|
|
33500
|
+
zIndex: 11
|
|
33358
33501
|
}
|
|
33359
|
-
},
|
|
33502
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
33360
33503
|
ref: menuRef
|
|
33361
33504
|
}, /*#__PURE__*/React.createElement(MultiLink, {
|
|
33362
|
-
|
|
33505
|
+
label: t("CS_COMMON_DOWNLOAD"),
|
|
33506
|
+
className: "multilinkWrapper employee-mulitlink-main-divNew",
|
|
33363
33507
|
onHeadClick: () => setShowOptions(!showOptions),
|
|
33364
33508
|
displayOptions: showOptions,
|
|
33365
33509
|
options: downloadOptions,
|
|
33366
|
-
|
|
33367
|
-
|
|
33368
|
-
|
|
33369
|
-
}))), checkifPrivacyenabled && /*#__PURE__*/React.createElement(WSInfoLabel, {
|
|
33370
|
-
t: t
|
|
33371
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
33372
|
-
className: "hide-seperator"
|
|
33373
|
-
}, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
33510
|
+
downloadBtnClassName: "employee-download-btn-className",
|
|
33511
|
+
optionsClassName: "employee-options-btn-className"
|
|
33512
|
+
}))), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
|
|
33374
33513
|
className: "border-none",
|
|
33375
33514
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
33376
33515
|
text: (_state5 = state) === null || _state5 === void 0 ? void 0 : _state5.connectionNo
|
|
@@ -33767,47 +33906,27 @@ const ConnectionDetails$5 = () => {
|
|
|
33767
33906
|
marginBottom: "20px"
|
|
33768
33907
|
}
|
|
33769
33908
|
}) : null)));
|
|
33770
|
-
})), (((_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.createElement(
|
|
33909
|
+
})), (((_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.createElement("div", {
|
|
33771
33910
|
style: {
|
|
33772
|
-
position: "relative",
|
|
33773
|
-
boxShadow: "none",
|
|
33774
|
-
minWidth: "240px",
|
|
33775
|
-
maxWidth: "620px",
|
|
33776
|
-
padding: "0px",
|
|
33777
|
-
marginTop: "15px",
|
|
33778
33911
|
display: "flex",
|
|
33779
|
-
|
|
33780
|
-
|
|
33781
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
33782
|
-
style: {
|
|
33912
|
+
justifyContent: "flex-end",
|
|
33913
|
+
marginTop: "15px",
|
|
33783
33914
|
width: "100%"
|
|
33784
33915
|
}
|
|
33785
33916
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
33786
|
-
style: {
|
|
33787
|
-
width: "100%"
|
|
33788
|
-
},
|
|
33789
33917
|
label: t("WS_DISCONNECTION_BUTTON"),
|
|
33790
33918
|
onSubmit: onActionSelect
|
|
33791
|
-
}))
|
|
33792
|
-
style: {
|
|
33793
|
-
position: "relative",
|
|
33794
|
-
boxShadow: "none",
|
|
33795
|
-
minWidth: "240px",
|
|
33796
|
-
maxWidth: "310px",
|
|
33797
|
-
padding: "0px",
|
|
33798
|
-
marginTop: "15px"
|
|
33799
|
-
}
|
|
33800
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
33919
|
+
})) : ((_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.createElement("div", {
|
|
33801
33920
|
style: {
|
|
33921
|
+
display: "flex",
|
|
33922
|
+
justifyContent: "flex-end",
|
|
33923
|
+
marginTop: "15px",
|
|
33802
33924
|
width: "100%"
|
|
33803
33925
|
}
|
|
33804
33926
|
}, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
33805
|
-
style: {
|
|
33806
|
-
width: "100%"
|
|
33807
|
-
},
|
|
33808
33927
|
label: t("WS_RECONNECTION_BUTTON"),
|
|
33809
33928
|
onSubmit: onActionSelectRestoration
|
|
33810
|
-
}))
|
|
33929
|
+
})), showModal ? /*#__PURE__*/React.createElement(Modal, {
|
|
33811
33930
|
open: showModal,
|
|
33812
33931
|
headerBarMain: /*#__PURE__*/React.createElement(Heading, {
|
|
33813
33932
|
label: t("WS_PENDING_DUES_LABEL")
|
|
@@ -38244,7 +38363,7 @@ const FileUploadField = _ref6 => {
|
|
|
38244
38363
|
})))));
|
|
38245
38364
|
};
|
|
38246
38365
|
const NewApplication = () => {
|
|
38247
|
-
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;
|
|
38366
|
+
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;
|
|
38248
38367
|
const _useTranslation2 = useTranslation(),
|
|
38249
38368
|
t = _useTranslation2.t;
|
|
38250
38369
|
const history = useHistory();
|
|
@@ -40277,9 +40396,6 @@ const NewApplication = () => {
|
|
|
40277
40396
|
})), /*#__PURE__*/React.createElement(Controller, {
|
|
40278
40397
|
control: control,
|
|
40279
40398
|
name: "declaration.signatureFile",
|
|
40280
|
-
rules: {
|
|
40281
|
-
validate: value => !!value || "Signature upload is required."
|
|
40282
|
-
},
|
|
40283
40399
|
render: props => /*#__PURE__*/React.createElement(FileUploadField, {
|
|
40284
40400
|
error: getFieldError("declaration.signatureFile"),
|
|
40285
40401
|
id: "signature-file",
|
|
@@ -40287,7 +40403,6 @@ const NewApplication = () => {
|
|
|
40287
40403
|
label: "Upload Signature",
|
|
40288
40404
|
onDelete: () => clearUploadedFile("declaration.signatureFile", props.onChange),
|
|
40289
40405
|
onUpload: event => uploadFile(event, "declaration.signatureFile", props.onChange),
|
|
40290
|
-
required: true,
|
|
40291
40406
|
value: props.value
|
|
40292
40407
|
})
|
|
40293
40408
|
})))), previewMode && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SectionCard, {
|
|
@@ -40599,7 +40714,7 @@ const NewApplication = () => {
|
|
|
40599
40714
|
onSubmit: onReset,
|
|
40600
40715
|
style: secondaryButtonStyle
|
|
40601
40716
|
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
40602
|
-
disabled: hasPendingUpload,
|
|
40717
|
+
disabled: hasPendingUpload || !(formValues !== null && formValues !== void 0 && (_formValues$declarati4 = formValues.declaration) !== null && _formValues$declarati4 !== void 0 && _formValues$declarati4.agree),
|
|
40603
40718
|
label: hasPendingUpload ? "Uploading..." : "Preview",
|
|
40604
40719
|
onSubmit: handleSubmit(onPreview)
|
|
40605
40720
|
})) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(SubmitBar, {
|
|
@@ -40607,7 +40722,7 @@ const NewApplication = () => {
|
|
|
40607
40722
|
onSubmit: onEdit,
|
|
40608
40723
|
style: secondaryButtonStyle
|
|
40609
40724
|
}), /*#__PURE__*/React.createElement(SubmitBar, {
|
|
40610
|
-
disabled: hasPendingUpload,
|
|
40725
|
+
disabled: hasPendingUpload || !(formValues !== null && formValues !== void 0 && (_formValues$declarati5 = formValues.declaration) !== null && _formValues$declarati5 !== void 0 && _formValues$declarati5.agree),
|
|
40611
40726
|
label: hasPendingUpload ? "Uploading..." : "Submit",
|
|
40612
40727
|
onSubmit: handleSubmit(onSubmit)
|
|
40613
40728
|
}))), showToast ? /*#__PURE__*/React.createElement(Toast, {
|
|
@@ -47721,7 +47836,7 @@ const ApplicationDetails = props => {
|
|
|
47721
47836
|
};
|
|
47722
47837
|
|
|
47723
47838
|
const ApplicationDetails$1 = () => {
|
|
47724
|
-
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$
|
|
47839
|
+
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;
|
|
47725
47840
|
const getRecieptSearch = function (tenantId, payments, consumerCodes, receiptKey) {
|
|
47726
47841
|
try {
|
|
47727
47842
|
let response = null;
|
|
@@ -47915,8 +48030,9 @@ const ApplicationDetails$1 = () => {
|
|
|
47915
48030
|
};
|
|
47916
48031
|
}
|
|
47917
48032
|
if ((action === null || action === void 0 ? void 0 : action.action) === "RESUBMIT_APPLICATION") {
|
|
47918
|
-
var _applicationDetails$p11, _servicesMasterData$w, _userConfig$, _userConfig$2;
|
|
47919
|
-
|
|
48033
|
+
var _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$p11, _applicationDetails$p12, _servicesMasterData$w, _userConfig$, _userConfig$2;
|
|
48034
|
+
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");
|
|
48035
|
+
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);
|
|
47920
48036
|
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) || [];
|
|
47921
48037
|
const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$ = userConfig[0]) === null || _userConfig$ === void 0 ? void 0 : _userConfig$.roles) || [];
|
|
47922
48038
|
const mdmsApplicationStatus = userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$2 = userConfig[0]) === null || _userConfig$2 === void 0 ? void 0 : _userConfig$2.status;
|
|
@@ -47925,9 +48041,9 @@ const ApplicationDetails$1 = () => {
|
|
|
47925
48041
|
isFieldInspector = ifUserRoleExists(role);
|
|
47926
48042
|
if (isFieldInspector) return false;else return true;
|
|
47927
48043
|
});
|
|
47928
|
-
if (isFieldInspector && appStatus === mdmsApplicationStatus) {
|
|
47929
|
-
var _applicationDetails$
|
|
47930
|
-
pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48044
|
+
if (!isMutation && isFieldInspector && appStatus === mdmsApplicationStatus) {
|
|
48045
|
+
var _applicationDetails$p13;
|
|
48046
|
+
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);
|
|
47931
48047
|
}
|
|
47932
48048
|
action.redirectionUrll = {
|
|
47933
48049
|
action: "ACTIVATE_CONNECTION",
|
|
@@ -47939,18 +48055,19 @@ const ApplicationDetails$1 = () => {
|
|
|
47939
48055
|
};
|
|
47940
48056
|
}
|
|
47941
48057
|
if ((action === null || action === void 0 ? void 0 : action.action) === "SUBMIT_APPLICATION") {
|
|
47942
|
-
var _applicationDetails$
|
|
48058
|
+
var _applicationDetails$p14;
|
|
47943
48059
|
action.redirectionUrll = {
|
|
47944
48060
|
action: "ACTIVATE_CONNECTION",
|
|
47945
|
-
pathname: "/digit-ui/employee/ws/modify-application-edit?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48061
|
+
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),
|
|
47946
48062
|
state: applicationDetails
|
|
47947
48063
|
};
|
|
47948
48064
|
}
|
|
47949
48065
|
});
|
|
47950
48066
|
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 => {
|
|
47951
48067
|
if ((action === null || action === void 0 ? void 0 : action.action) === "EDIT") {
|
|
47952
|
-
var _applicationDetails$
|
|
47953
|
-
|
|
48068
|
+
var _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$p15, _applicationDetails$p16, _servicesMasterData$w2, _userConfig$3, _userConfig$4;
|
|
48069
|
+
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");
|
|
48070
|
+
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);
|
|
47954
48071
|
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) || [];
|
|
47955
48072
|
const editApplicationUserRole = (userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$3 = userConfig[0]) === null || _userConfig$3 === void 0 ? void 0 : _userConfig$3.roles) || [];
|
|
47956
48073
|
const mdmsApplicationStatus = userConfig === null || userConfig === void 0 ? void 0 : (_userConfig$4 = userConfig[0]) === null || _userConfig$4 === void 0 ? void 0 : _userConfig$4.status;
|
|
@@ -47959,9 +48076,9 @@ const ApplicationDetails$1 = () => {
|
|
|
47959
48076
|
isFieldInspector = ifUserRoleExists(role);
|
|
47960
48077
|
if (isFieldInspector) return false;else return true;
|
|
47961
48078
|
});
|
|
47962
|
-
if (isFieldInspector && appStatus === mdmsApplicationStatus) {
|
|
47963
|
-
var _applicationDetails$
|
|
47964
|
-
pathName = "/digit-ui/employee/ws/edit-application-by-config?applicationNumber=" + applicationNumber + "&service=" + serviceType + "&propertyId=" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48079
|
+
if (!isMutation && isFieldInspector && appStatus === mdmsApplicationStatus) {
|
|
48080
|
+
var _applicationDetails$p17;
|
|
48081
|
+
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);
|
|
47965
48082
|
}
|
|
47966
48083
|
action.redirectionUrll = {
|
|
47967
48084
|
action: "ACTIVATE_CONNECTION",
|
|
@@ -48030,10 +48147,10 @@ const ApplicationDetails$1 = () => {
|
|
|
48030
48147
|
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];
|
|
48031
48148
|
const handleDownloadPdf = function () {
|
|
48032
48149
|
try {
|
|
48033
|
-
var _applicationDetails$
|
|
48034
|
-
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48150
|
+
var _applicationDetails$a12, _applicationDetails$a13, _applicationDetails$a14;
|
|
48151
|
+
const tenantInfo = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a12 = applicationDetails.applicationData) === null || _applicationDetails$a12 === void 0 ? void 0 : _applicationDetails$a12.tenantId;
|
|
48035
48152
|
let result = applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData;
|
|
48036
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
48153
|
+
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_")) {
|
|
48037
48154
|
const PDFdata = getWSAcknowledgementData$1(_extends({}, result), _extends({}, applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.propertyDetails), tenantInfo, t, oldApplication);
|
|
48038
48155
|
PDFdata.then(ress => Digit.Utils.pdf.generateModifyPdf(ress));
|
|
48039
48156
|
return Promise.resolve();
|
|
@@ -48047,10 +48164,10 @@ const ApplicationDetails$1 = () => {
|
|
|
48047
48164
|
};
|
|
48048
48165
|
const handleEstimateDownload = function () {
|
|
48049
48166
|
try {
|
|
48050
|
-
const _temp2 = function (_applicationDetails$
|
|
48051
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
48052
|
-
var _applicationDetails$
|
|
48053
|
-
getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48167
|
+
const _temp2 = function (_applicationDetails$a15, _applicationDetails$a16) {
|
|
48168
|
+
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) {
|
|
48169
|
+
var _applicationDetails$a17, _applicationDetails$a18;
|
|
48170
|
+
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);
|
|
48054
48171
|
} else {
|
|
48055
48172
|
const warningCount = sessionStorage.getItem("WARINIG_COUNT") || "0";
|
|
48056
48173
|
const warningCountDetails = JSON.parse(warningCount);
|
|
@@ -48108,8 +48225,8 @@ const ApplicationDetails$1 = () => {
|
|
|
48108
48225
|
order: 2,
|
|
48109
48226
|
label: t("WS_SANCTION_LETTER"),
|
|
48110
48227
|
onClick: () => {
|
|
48111
|
-
var _applicationDetails$
|
|
48112
|
-
return getFiles([applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48228
|
+
var _applicationDetails$a19, _applicationDetails$a20;
|
|
48229
|
+
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);
|
|
48113
48230
|
}
|
|
48114
48231
|
};
|
|
48115
48232
|
const applicationDownloadObject = {
|
|
@@ -48121,8 +48238,8 @@ const ApplicationDetails$1 = () => {
|
|
|
48121
48238
|
order: 4,
|
|
48122
48239
|
label: t("DOWNLOAD_RECEIPT_HEADER"),
|
|
48123
48240
|
onClick: () => {
|
|
48124
|
-
var _reciept_data$Payment, _applicationDetails$
|
|
48125
|
-
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$
|
|
48241
|
+
var _reciept_data$Payment, _applicationDetails$a21;
|
|
48242
|
+
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);
|
|
48126
48243
|
}
|
|
48127
48244
|
};
|
|
48128
48245
|
switch (appStatus) {
|
|
@@ -48137,7 +48254,7 @@ const ApplicationDetails$1 = () => {
|
|
|
48137
48254
|
break;
|
|
48138
48255
|
case "PENDING_FOR_CONNECTION_ACTIVATION":
|
|
48139
48256
|
case "CONNECTION_ACTIVATED":
|
|
48140
|
-
if (applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$
|
|
48257
|
+
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];
|
|
48141
48258
|
break;
|
|
48142
48259
|
case "REJECTED":
|
|
48143
48260
|
dowloadOptions = [applicationDownloadObject];
|
|
@@ -48183,12 +48300,12 @@ const ApplicationDetails$1 = () => {
|
|
|
48183
48300
|
mutate: mutate,
|
|
48184
48301
|
id: "timeline",
|
|
48185
48302
|
workflowDetails: workflowDetails,
|
|
48186
|
-
businessService: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48303
|
+
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(),
|
|
48187
48304
|
moduleCode: "WS",
|
|
48188
48305
|
showToast: showToast,
|
|
48189
48306
|
setShowToast: setShowToast,
|
|
48190
48307
|
closeToast: closeToast,
|
|
48191
|
-
timelineStatusPrefix: "WF_" + (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48308
|
+
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()) + "_",
|
|
48192
48309
|
oldValue: res,
|
|
48193
48310
|
isInfoLabel: checkforPrivacyenablement(),
|
|
48194
48311
|
clearDataDetails: clearDataDetails,
|
|
@@ -48481,7 +48598,10 @@ const GetConnectionDetails = () => {
|
|
|
48481
48598
|
};
|
|
48482
48599
|
return /*#__PURE__*/React.createElement(Fragment$2, null, /*#__PURE__*/React.createElement("div", {
|
|
48483
48600
|
style: {
|
|
48484
|
-
position: "relative"
|
|
48601
|
+
position: "relative",
|
|
48602
|
+
width: "100%",
|
|
48603
|
+
height: "100%",
|
|
48604
|
+
overflowY: "scroll"
|
|
48485
48605
|
}
|
|
48486
48606
|
}, dowloadOptions && dowloadOptions.length > 0 && /*#__PURE__*/React.createElement("div", {
|
|
48487
48607
|
style: {
|
|
@@ -52254,7 +52374,7 @@ const Step5_Submission = _ref => {
|
|
|
52254
52374
|
flexWrap: "wrap",
|
|
52255
52375
|
gap: "6px"
|
|
52256
52376
|
}
|
|
52257
|
-
}, /*#__PURE__*/React.createElement("span", null, "\u2705"), " Your application has been submitted successfully!"), /*#__PURE__*/React.createElement("div", {
|
|
52377
|
+
}, /*#__PURE__*/React.createElement("span", null, "\u2705"), " Your application has been submitted successfully to the respective Zonal Officer !"), /*#__PURE__*/React.createElement("div", {
|
|
52258
52378
|
style: {
|
|
52259
52379
|
color: "#666",
|
|
52260
52380
|
marginTop: "4px",
|
|
@@ -52367,7 +52487,8 @@ const MutationApplication = () => {
|
|
|
52367
52487
|
}),
|
|
52368
52488
|
isWorkflowLoading = _useQuery.isLoading,
|
|
52369
52489
|
workflowData = _useQuery.data;
|
|
52370
|
-
const
|
|
52490
|
+
const isEmployee = window.location.href.includes("/employee/");
|
|
52491
|
+
const isEditFlow = !!editApplicationNumber && (isEmployee || (workflowData === null || workflowData === void 0 ? void 0 : workflowData.action) === "SEND_BACK_TO_CITIZEN");
|
|
52371
52492
|
const querySearchParam = isEditFlow ? editApplicationNumber : authKNumber;
|
|
52372
52493
|
const fallbackServiceType = serviceType || authServiceType;
|
|
52373
52494
|
const businessService = (fallbackServiceType === null || fallbackServiceType === void 0 ? void 0 : fallbackServiceType.toUpperCase()) === "SEWERAGE" ? "SW" : "WS";
|
|
@@ -52451,7 +52572,8 @@ const MutationApplication = () => {
|
|
|
52451
52572
|
}, [applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a4 = applicationDetails.applicationData) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.id]);
|
|
52452
52573
|
useEffect(() => {
|
|
52453
52574
|
const isCitizen = window.location.href.includes("/citizen/");
|
|
52454
|
-
|
|
52575
|
+
const isEmployee = window.location.href.includes("/employee/");
|
|
52576
|
+
if ((isCitizen || isEmployee) && isEditFlow && applicationDetails !== null && applicationDetails !== void 0 && applicationDetails.applicationData) {
|
|
52455
52577
|
const data = applicationDetails.applicationData;
|
|
52456
52578
|
const holders = (data === null || data === void 0 ? void 0 : data.connectionHolders) || [];
|
|
52457
52579
|
const primaryHolder = holders.find(h => h.isPrimaryOwner) || holders[0] || {};
|
|
@@ -52464,6 +52586,36 @@ const MutationApplication = () => {
|
|
|
52464
52586
|
return ["AADHAAR", "VOTERID", "VOTER_ID", "PAN", "DRIVING_LICENSE", "PASSPORT"].includes((_d$documentType = d.documentType) === null || _d$documentType === void 0 ? void 0 : _d$documentType.toUpperCase());
|
|
52465
52587
|
});
|
|
52466
52588
|
const mutationDoc = documents.find(d => d.documentType === "REGISTERED_SALE_DEED" || d.documentType === "SALE_DEED" || d.documentType === "GIFT_DEED" || d.documentType === "WILL");
|
|
52589
|
+
const reasonOptions = [{
|
|
52590
|
+
code: "SALE_PURCHASE",
|
|
52591
|
+
i18nKey: "Purchase of Property"
|
|
52592
|
+
}, {
|
|
52593
|
+
code: "DEVOLUTION_INHERITANCE",
|
|
52594
|
+
i18nKey: "Devolution/Inheritance"
|
|
52595
|
+
}, {
|
|
52596
|
+
code: "OTHER",
|
|
52597
|
+
i18nKey: "Other Reason(Gift Deed, Lease Agreement, etc)"
|
|
52598
|
+
}];
|
|
52599
|
+
const relationshipOptions = [{
|
|
52600
|
+
code: "BLOOD_RELATION",
|
|
52601
|
+
i18nKey: "Blood Relation (Son / Daughter / Spouse)"
|
|
52602
|
+
}, {
|
|
52603
|
+
code: "LEGAL_HEIR",
|
|
52604
|
+
i18nKey: "Legal Heir"
|
|
52605
|
+
}, {
|
|
52606
|
+
code: "OTHER",
|
|
52607
|
+
i18nKey: "Other"
|
|
52608
|
+
}];
|
|
52609
|
+
const reasonCode = additionalDetails.reasonForNameChange;
|
|
52610
|
+
const reasonObj = reasonOptions.find(o => o.code === reasonCode) || (reasonCode ? {
|
|
52611
|
+
code: reasonCode,
|
|
52612
|
+
i18nKey: reasonCode
|
|
52613
|
+
} : null);
|
|
52614
|
+
const relationCode = additionalDetails.relationshipWithExistingConsumer;
|
|
52615
|
+
const relationObj = relationshipOptions.find(o => o.code === relationCode) || (relationCode ? {
|
|
52616
|
+
code: relationCode,
|
|
52617
|
+
i18nKey: relationCode
|
|
52618
|
+
} : null);
|
|
52467
52619
|
return {
|
|
52468
52620
|
proposedNewConsumerName: primaryHolder.name || "",
|
|
52469
52621
|
gender: primaryHolder.gender ? {
|
|
@@ -52472,21 +52624,18 @@ const MutationApplication = () => {
|
|
|
52472
52624
|
} : null,
|
|
52473
52625
|
newOwnerMobileNumber: primaryHolder.mobileNumber || "",
|
|
52474
52626
|
newOwnerEmailAddress: primaryHolder.emailId || "",
|
|
52475
|
-
reasonForNameChange:
|
|
52476
|
-
|
|
52477
|
-
|
|
52478
|
-
|
|
52479
|
-
|
|
52480
|
-
code: additionalDetails.
|
|
52481
|
-
i18nKey: additionalDetails.
|
|
52482
|
-
} : null
|
|
52483
|
-
saleDeedDocumentId: (mutationDoc === null || mutationDoc === void 0 ? void 0 : mutationDoc.fileStoreId) || additionalDetails.saleDeedDocumentId || "",
|
|
52484
|
-
identityProofDocumentId: (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.fileStoreId) || "",
|
|
52485
|
-
identityProofType: identityDoc !== null && identityDoc !== void 0 && identityDoc.documentType ? {
|
|
52627
|
+
reasonForNameChange: reasonObj,
|
|
52628
|
+
relationshipWithExistingConsumer: relationObj,
|
|
52629
|
+
saleDeedDocumentId: additionalDetails.saleDeedDocumentId || (mutationDoc === null || mutationDoc === void 0 ? void 0 : mutationDoc.fileStoreId) || "",
|
|
52630
|
+
identityProofDocumentId: additionalDetails.identityProofDocumentId || (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.fileStoreId) || "",
|
|
52631
|
+
identityProofType: additionalDetails.identityProofDocumentName ? {
|
|
52632
|
+
code: additionalDetails.identityProofDocumentName,
|
|
52633
|
+
i18nKey: additionalDetails.identityProofDocumentName
|
|
52634
|
+
} : identityDoc !== null && identityDoc !== void 0 && identityDoc.documentType ? {
|
|
52486
52635
|
code: identityDoc.documentType,
|
|
52487
52636
|
i18nKey: identityDoc.documentType
|
|
52488
52637
|
} : null,
|
|
52489
|
-
documentNumber: additionalDetails.identityProofNumber || (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.documentUid) || ""
|
|
52638
|
+
documentNumber: additionalDetails.identityProofDocumentNumber || additionalDetails.identityProofNumber || (identityDoc === null || identityDoc === void 0 ? void 0 : identityDoc.documentUid) || ""
|
|
52490
52639
|
};
|
|
52491
52640
|
});
|
|
52492
52641
|
}
|
|
@@ -52583,7 +52732,7 @@ const MutationApplication = () => {
|
|
|
52583
52732
|
});
|
|
52584
52733
|
}
|
|
52585
52734
|
if (mutDetails.identityProofDocumentId) {
|
|
52586
|
-
var _mutDetails$identityP;
|
|
52735
|
+
var _mutDetails$identityP, _mutDetails$identityP2;
|
|
52587
52736
|
if (!convertAppData.documents) convertAppData.documents = [];
|
|
52588
52737
|
convertAppData.documents.push({
|
|
52589
52738
|
documentType: ((_mutDetails$identityP = mutDetails.identityProofType) === null || _mutDetails$identityP === void 0 ? void 0 : _mutDetails$identityP.code) || "IDENTITY_PROOF",
|
|
@@ -52592,6 +52741,10 @@ const MutationApplication = () => {
|
|
|
52592
52741
|
documentNumber: mutDetails.documentNumber,
|
|
52593
52742
|
status: "ACTIVE"
|
|
52594
52743
|
});
|
|
52744
|
+
if (!convertAppData.additionalDetails) convertAppData.additionalDetails = {};
|
|
52745
|
+
convertAppData.additionalDetails.identityProofDocumentNumber = mutDetails.documentNumber || "";
|
|
52746
|
+
convertAppData.additionalDetails.identityProofDocumentName = ((_mutDetails$identityP2 = mutDetails.identityProofType) === null || _mutDetails$identityP2 === void 0 ? void 0 : _mutDetails$identityP2.code) || "IDENTITY_PROOF";
|
|
52747
|
+
convertAppData.additionalDetails.identityProofDocumentId = mutDetails.identityProofDocumentId || "";
|
|
52595
52748
|
}
|
|
52596
52749
|
}
|
|
52597
52750
|
convertAppData.applicationType = resolvedServiceType === "WATER" ? "MUTATION_WATER_CONNECTION" : "MUTATION_SEWERAGE_CONNECTION";
|
|
@@ -55083,6 +55236,7 @@ const CheckPage$4 = _ref2 => {
|
|
|
55083
55236
|
};
|
|
55084
55237
|
|
|
55085
55238
|
const OLDApplication = () => {
|
|
55239
|
+
var _sessionFormData$decl;
|
|
55086
55240
|
const _useTranslation = useTranslation(),
|
|
55087
55241
|
t = _useTranslation.t;
|
|
55088
55242
|
const history = useHistory();
|
|
@@ -55294,7 +55448,7 @@ const OLDApplication = () => {
|
|
|
55294
55448
|
}).length > 0)) {
|
|
55295
55449
|
console.warn("[WS] onSubmit EXIT: formState errors blocking submit", formStateErros);
|
|
55296
55450
|
setShowToast({
|
|
55297
|
-
|
|
55451
|
+
key: "error",
|
|
55298
55452
|
message: "PLEASE_FILL_MANDATORY_DETAILS"
|
|
55299
55453
|
});
|
|
55300
55454
|
return;
|
|
@@ -55677,7 +55831,8 @@ const OLDApplication = () => {
|
|
|
55677
55831
|
defaultValues: sessionFormData,
|
|
55678
55832
|
noCard: true,
|
|
55679
55833
|
noBreakLine: true,
|
|
55680
|
-
cardFormWrapperClassName: "new-application-card"
|
|
55834
|
+
cardFormWrapperClassName: "new-application-card",
|
|
55835
|
+
isDisabled: !(sessionFormData !== null && sessionFormData !== void 0 && (_sessionFormData$decl = sessionFormData.declarationData) !== null && _sessionFormData$decl !== void 0 && _sessionFormData$decl.agree)
|
|
55681
55836
|
}), showToast && /*#__PURE__*/React.createElement(Toast, {
|
|
55682
55837
|
isDleteBtn: true,
|
|
55683
55838
|
duration: 5000,
|