@djb25/digit-ui-module-ws 1.0.69 → 1.0.71
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 +363 -359
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +364 -360
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -7746,7 +7746,7 @@ var lodash = createCommonjsModule(function (module, exports) {
|
|
|
7746
7746
|
});
|
|
7747
7747
|
|
|
7748
7748
|
const WSApplication = _ref => {
|
|
7749
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6, _application$
|
|
7749
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$applicat7, _application$connecti, _application$property, _application$property2, _application$property3, _application$property4, _application$property5, _application$property6, _application$applicat8, _application$connecti2, _application$connecti3, _PTData$Properties, _PTData$Properties$, _PTData$Properties$$o, _application$applicat9, _application$applicat0;
|
|
7750
7750
|
let application = _ref.application;
|
|
7751
7751
|
const _useTranslation = reactI18next.useTranslation(),
|
|
7752
7752
|
t = _useTranslation.t;
|
|
@@ -7777,9 +7777,9 @@ const WSApplication = _ref => {
|
|
|
7777
7777
|
privacy: Digit.Utils.getPrivacyObject()
|
|
7778
7778
|
}),
|
|
7779
7779
|
PTData = _Digit$Hooks$pt$usePr.data;
|
|
7780
|
-
const businessService = application !== null && application !== void 0 && (_application$applicat2 = application.applicationNo) !== null && _application$applicat2 !== void 0 && _application$applicat2.includes("SW") ? application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$
|
|
7780
|
+
const businessService = application !== null && application !== void 0 && (_application$applicat2 = application.applicationNo) !== null && _application$applicat2 !== void 0 && _application$applicat2.includes("SW") ? application !== null && application !== void 0 && (_application$applicat3 = application.applicationNo) !== null && _application$applicat3 !== void 0 && _application$applicat3.includes("DC") ? "SW" : application !== null && application !== void 0 && (_application$applicat4 = application.applicationNo) !== null && _application$applicat4 !== void 0 && _application$applicat4.includes("MUT") ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : application !== null && application !== void 0 && (_application$applicat5 = application.applicationNo) !== null && _application$applicat5 !== void 0 && _application$applicat5.includes("DC") ? "WS" : application !== null && application !== void 0 && (_application$applicat6 = application.applicationNo) !== null && _application$applicat6 !== void 0 && _application$applicat6.includes("MUT") ? "WS.MUTATION" : "WS.ONE_TIME_FEE";
|
|
7781
7781
|
const fetchBillParams = {
|
|
7782
|
-
consumerCode: application !== null && application !== void 0 && (_application$
|
|
7782
|
+
consumerCode: application !== null && application !== void 0 && (_application$applicat7 = application.applicationNo) !== null && _application$applicat7 !== void 0 && _application$applicat7.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.connectionNo
|
|
7783
7783
|
};
|
|
7784
7784
|
if (isLoading) {
|
|
7785
7785
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
@@ -7834,7 +7834,8 @@ const WSApplication = _ref => {
|
|
|
7834
7834
|
label: t("WS_VIEW_DETAILS_LABEL")
|
|
7835
7835
|
})), (application === null || application === void 0 ? void 0 : application.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
7836
7836
|
to: {
|
|
7837
|
-
pathname: "/digit-ui/citizen/payment/my-bills/" + businessService + "/" + (application !== null && application !== void 0 && (_application$
|
|
7837
|
+
pathname: "/digit-ui/citizen/payment/my-bills/" + businessService + "/" + (application !== null && application !== void 0 && (_application$applicat8 = application.applicationNo) !== null && _application$applicat8 !== void 0 && _application$applicat8.includes("DC") ? stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.connectionNo, "/", "+") : stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+") || stringReplaceAll(application === null || application === void 0 ? void 0 : application.applicationNo, "/", "+")),
|
|
7838
|
+
search: "?workflow=WNS&tenantId=" + (application === null || application === void 0 ? void 0 : application.tenantId) + "&ConsumerName=" + ((application === null || application === void 0 ? void 0 : (_application$connecti2 = application.connectionHolders) === null || _application$connecti2 === void 0 ? void 0 : _application$connecti2.map(owner => owner.name).join(",")) || (application === null || application === void 0 ? void 0 : (_application$connecti3 = application.connectionHolders) === null || _application$connecti3 === void 0 ? void 0 : _application$connecti3.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : (_PTData$Properties$$o = _PTData$Properties$.owners) === null || _PTData$Properties$$o === void 0 ? void 0 : _PTData$Properties$$o.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (application !== null && application !== void 0 && (_application$applicat9 = application.applicationNo) !== null && _application$applicat9 !== void 0 && _application$applicat9.includes("DC") ? true : false) + "&consumerCode=" + (application !== null && application !== void 0 && (_application$applicat0 = application.applicationNo) !== null && _application$applicat0 !== void 0 && _application$applicat0.includes("DC") ? application === null || application === void 0 ? void 0 : application.connectionNo : application === null || application === void 0 ? void 0 : application.applicationNo),
|
|
7838
7839
|
state: {}
|
|
7839
7840
|
}
|
|
7840
7841
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -8879,7 +8880,7 @@ const WSResponse = props => {
|
|
|
8879
8880
|
};
|
|
8880
8881
|
|
|
8881
8882
|
const App = _ref => {
|
|
8882
|
-
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _user$info, _user$info$userName, _user$info2, _user$info3, _wsData$WaterConnecti, _wsData$WaterConnecti2, _swData$SewerageConne, _swData$SewerageConne2, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg;
|
|
8883
|
+
var _Digit, _Digit$ComponentRegis, _Digit2, _Digit2$ComponentRegi, _user$info, _user$info$userName, _user$info2, _user$info3, _wsData$WaterConnecti, _wsData$WaterConnecti2, _swData$SewerageConne, _swData$SewerageConne2, _Digit3, _Digit3$ComponentRegi, _Digit4, _Digit4$ComponentRegi, _Digit5, _Digit5$ComponentRegi, _Digit6, _Digit6$ComponentRegi, _Digit7, _Digit7$ComponentRegi, _Digit8, _Digit8$ComponentRegi, _Digit9, _Digit9$ComponentRegi, _Digit0, _Digit0$ComponentRegi, _Digit1, _Digit1$ComponentRegi, _Digit10, _Digit10$ComponentReg, _Digit11, _Digit11$ComponentReg, _Digit12, _Digit12$ComponentReg, _Digit13, _Digit13$ComponentReg, _Digit14, _Digit14$ComponentReg, _Digit15, _Digit15$ComponentReg, _Digit16, _Digit16$ComponentReg, _Digit17, _Digit17$ComponentReg;
|
|
8883
8884
|
let path = _ref.path;
|
|
8884
8885
|
const location = reactRouterDom.useLocation();
|
|
8885
8886
|
const _useTranslation = reactI18next.useTranslation(),
|
|
@@ -9027,6 +9028,7 @@ const App = _ref => {
|
|
|
9027
9028
|
const WNSMyBillsComponent = (_Digit14 = Digit) === null || _Digit14 === void 0 ? void 0 : (_Digit14$ComponentReg = _Digit14.ComponentRegistryService) === null || _Digit14$ComponentReg === void 0 ? void 0 : _Digit14$ComponentReg.getComponent("WNSMyBillsComponent");
|
|
9028
9029
|
const WSOLDApplication = (_Digit15 = Digit) === null || _Digit15 === void 0 ? void 0 : (_Digit15$ComponentReg = _Digit15.ComponentRegistryService) === null || _Digit15$ComponentReg === void 0 ? void 0 : _Digit15$ComponentReg.getComponent("WSOLDApplication");
|
|
9029
9030
|
const WSInfoPage = (_Digit16 = Digit) === null || _Digit16 === void 0 ? void 0 : (_Digit16$ComponentReg = _Digit16.ComponentRegistryService) === null || _Digit16$ComponentReg === void 0 ? void 0 : _Digit16$ComponentReg.getComponent("WSInfoPage");
|
|
9031
|
+
const WSMutationApplication = (_Digit17 = Digit) === null || _Digit17 === void 0 ? void 0 : (_Digit17$ComponentReg = _Digit17.ComponentRegistryService) === null || _Digit17$ComponentReg === void 0 ? void 0 : _Digit17$ComponentReg.getComponent("WSMutationApplication");
|
|
9030
9032
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.AppContainer, null, /*#__PURE__*/React__default.createElement("div", {
|
|
9031
9033
|
className: "ground-container employee-app-container form-container"
|
|
9032
9034
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ModuleHeader, {
|
|
@@ -9105,6 +9107,9 @@ const App = _ref => {
|
|
|
9105
9107
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9106
9108
|
path: path + "/ws-response",
|
|
9107
9109
|
component: WSResponse
|
|
9110
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
9111
|
+
path: path + "/mutation-application",
|
|
9112
|
+
component: WSMutationApplication
|
|
9108
9113
|
})))))));
|
|
9109
9114
|
};
|
|
9110
9115
|
|
|
@@ -17415,14 +17420,8 @@ const UploadFileDigiLocker = props => {
|
|
|
17415
17420
|
showToast = _useState4[0],
|
|
17416
17421
|
setShowToast = _useState4[1];
|
|
17417
17422
|
const _useState5 = React.useState(null),
|
|
17418
|
-
|
|
17419
|
-
|
|
17420
|
-
const _useState6 = React.useState(false),
|
|
17421
|
-
showDigiLockerPreview = _useState6[0],
|
|
17422
|
-
setShowDigiLockerPreview = _useState6[1];
|
|
17423
|
-
const _useState7 = React.useState(null),
|
|
17424
|
-
digiLockerFilename = _useState7[0],
|
|
17425
|
-
setDigiLockerFilename = _useState7[1];
|
|
17423
|
+
digiLockerFilename = _useState5[0],
|
|
17424
|
+
setDigiLockerFilename = _useState5[1];
|
|
17426
17425
|
const user_type = Digit.SessionStorage.get("userType");
|
|
17427
17426
|
const _Digit$Hooks$createTo = Digit.Hooks.createTokenAPI("document");
|
|
17428
17427
|
let extraStyles = {};
|
|
@@ -17437,12 +17436,11 @@ const UploadFileDigiLocker = props => {
|
|
|
17437
17436
|
extraStyles = getCitizenStyles("OBPS");
|
|
17438
17437
|
const handleDelete = () => {
|
|
17439
17438
|
inpRef.current.value = "";
|
|
17440
|
-
if (digiLockerPreviewUrl) {
|
|
17441
|
-
URL.revokeObjectURL(digiLockerPreviewUrl);
|
|
17442
|
-
setDigiLockerPreviewUrl(null);
|
|
17443
|
-
}
|
|
17444
17439
|
setDigiLockerFilename(null);
|
|
17445
17440
|
setHasFile(false);
|
|
17441
|
+
if (props.onDocumentNumber) {
|
|
17442
|
+
props.onDocumentNumber("");
|
|
17443
|
+
}
|
|
17446
17444
|
props.onDelete();
|
|
17447
17445
|
};
|
|
17448
17446
|
const handleEmpty = () => {
|
|
@@ -17457,11 +17455,6 @@ const UploadFileDigiLocker = props => {
|
|
|
17457
17455
|
}
|
|
17458
17456
|
React.useEffect(() => handleEmpty(), [inpRef === null || inpRef === void 0 ? void 0 : (_inpRef$current = inpRef.current) === null || _inpRef$current === void 0 ? void 0 : _inpRef$current.files]);
|
|
17459
17457
|
React.useEffect(() => handleChange(), [props.message]);
|
|
17460
|
-
React.useEffect(() => {
|
|
17461
|
-
return () => {
|
|
17462
|
-
if (digiLockerPreviewUrl) URL.revokeObjectURL(digiLockerPreviewUrl);
|
|
17463
|
-
};
|
|
17464
|
-
}, [digiLockerPreviewUrl]);
|
|
17465
17458
|
const dataURItoBlob = dataURI => {
|
|
17466
17459
|
var b64Data = dataURI.split(",")[1].replace(/\s/g, "");
|
|
17467
17460
|
var binary = atob(b64Data);
|
|
@@ -17512,7 +17505,7 @@ const UploadFileDigiLocker = props => {
|
|
|
17512
17505
|
};
|
|
17513
17506
|
const aliases = DOCTYPE_ALIASES[doctype] || [doctype];
|
|
17514
17507
|
let uri = res1.IssuedDoc.filter(item => aliases.some(alias => item.doctype === alias));
|
|
17515
|
-
const
|
|
17508
|
+
const _temp1 = function () {
|
|
17516
17509
|
if ((uri === null || uri === void 0 ? void 0 : uri.length) > 0) {
|
|
17517
17510
|
const uriStr = uri[0].uri || "";
|
|
17518
17511
|
const parts = uriStr.split("-");
|
|
@@ -17529,120 +17522,162 @@ const UploadFileDigiLocker = props => {
|
|
|
17529
17522
|
TokenReq: TokenReqNew
|
|
17530
17523
|
}, tenantId)).then(function (res2) {
|
|
17531
17524
|
var _res2$headers;
|
|
17532
|
-
function _temp6() {
|
|
17533
|
-
const filename = doctype + "_" + (uri[0].name || "document") + ".pdf";
|
|
17534
|
-
if (blobData && blobData.size > 0) convertToFile(e, blobData, filename);else setShowToast({
|
|
17535
|
-
error: true,
|
|
17536
|
-
label: "Failed to read document from DigiLocker."
|
|
17537
|
-
});
|
|
17538
|
-
}
|
|
17539
17525
|
console.log("[DigiLocker] uriFile response:", res2);
|
|
17540
17526
|
let blobData = null;
|
|
17541
17527
|
let contentType = (res2 === null || res2 === void 0 ? void 0 : (_res2$headers = res2.headers) === null || _res2$headers === void 0 ? void 0 : _res2$headers["content-type"]) || "";
|
|
17542
17528
|
let isJsonString = contentType.includes("application/json");
|
|
17543
|
-
const
|
|
17529
|
+
const _temp0 = function () {
|
|
17544
17530
|
if (res2 !== null && res2 !== void 0 && res2.data) {
|
|
17545
|
-
function
|
|
17546
|
-
|
|
17547
|
-
|
|
17548
|
-
|
|
17549
|
-
|
|
17550
|
-
|
|
17551
|
-
}
|
|
17552
|
-
}
|
|
17553
|
-
const firstBytes = new Uint8Array(res2.data, 0, 3);
|
|
17554
|
-
if (firstBytes[0] === 34 && firstBytes[1] === 37 && firstBytes[2] === 80) {
|
|
17555
|
-
isJsonString = true;
|
|
17531
|
+
function _temp9() {
|
|
17532
|
+
const filename = doctype + "_" + (uri[0].name || "document") + ".pdf";
|
|
17533
|
+
if (blobData && blobData.size > 0) convertToFile(e, blobData, filename);else setShowToast({
|
|
17534
|
+
error: true,
|
|
17535
|
+
label: "Failed to read document from DigiLocker."
|
|
17536
|
+
});
|
|
17556
17537
|
}
|
|
17557
|
-
const
|
|
17558
|
-
if (
|
|
17559
|
-
const
|
|
17560
|
-
const
|
|
17561
|
-
|
|
17562
|
-
|
|
17563
|
-
|
|
17564
|
-
|
|
17565
|
-
|
|
17566
|
-
|
|
17567
|
-
|
|
17568
|
-
|
|
17569
|
-
|
|
17570
|
-
|
|
17571
|
-
|
|
17572
|
-
if (!obj || typeof obj !== "object") return null;
|
|
17573
|
-
for (let key in obj) {
|
|
17574
|
-
if (["doccontent", "filecontent", "base64"].includes(key.toLowerCase())) return obj[key];
|
|
17575
|
-
const found = findBase64(obj[key]);
|
|
17576
|
-
if (found && typeof found === "string") return found;
|
|
17577
|
-
}
|
|
17578
|
-
return null;
|
|
17579
|
-
};
|
|
17580
|
-
const _temp2 = function () {
|
|
17581
|
-
if (typeof jsonObj === "string") {
|
|
17582
|
-
if (jsonObj.startsWith("%PDF")) {
|
|
17583
|
-
console.log("[DigiLocker] Response is a literal PDF string. Trying to salvage corrupted bytes...");
|
|
17584
|
-
const len = jsonObj.length;
|
|
17585
|
-
const arr = new Uint8Array(len);
|
|
17586
|
-
for (let i = 0; i < len; i++) {
|
|
17587
|
-
arr[i] = jsonObj.charCodeAt(i) & 0xFF;
|
|
17588
|
-
}
|
|
17589
|
-
blobData = new Blob([arr], {
|
|
17590
|
-
type: "application/pdf"
|
|
17591
|
-
});
|
|
17592
|
-
} else {
|
|
17593
|
-
const dataUri = jsonObj.startsWith("data:") ? jsonObj : "data:application/pdf;base64," + jsonObj;
|
|
17594
|
-
try {
|
|
17595
|
-
blobData = dataURItoBlob(dataUri);
|
|
17596
|
-
} catch (e) {
|
|
17597
|
-
console.error("Failed to parse string as base64", e);
|
|
17538
|
+
const _temp8 = function () {
|
|
17539
|
+
if (res2 !== null && res2 !== void 0 && res2.data) {
|
|
17540
|
+
const rawBytes = new Uint8Array(res2.data);
|
|
17541
|
+
const _temp7 = function () {
|
|
17542
|
+
if (rawBytes.length > 5 && rawBytes[0] === 0x22 && rawBytes[1] === 0x25 && rawBytes[2] === 0x50 && rawBytes[3] === 0x44 && rawBytes[4] === 0x46) {
|
|
17543
|
+
console.log("[DigiLocker] Response is a JSON-encoded binary PDF string. Unescaping bytes...");
|
|
17544
|
+
const unescaped = new Uint8Array(rawBytes.length);
|
|
17545
|
+
let outIdx = 0;
|
|
17546
|
+
for (let i = 1; i < rawBytes.length - 1; i++) {
|
|
17547
|
+
if (rawBytes[i] === 0x5c) {
|
|
17548
|
+
i++;
|
|
17549
|
+
const next = rawBytes[i];
|
|
17550
|
+
if (next === 0x6e) unescaped[outIdx++] = 0x0a;else if (next === 0x72) unescaped[outIdx++] = 0x0d;else if (next === 0x74) unescaped[outIdx++] = 0x09;else if (next === 0x22) unescaped[outIdx++] = 0x22;else if (next === 0x5c) unescaped[outIdx++] = 0x5c;else if (next === 0x62) unescaped[outIdx++] = 0x08;else if (next === 0x66) unescaped[outIdx++] = 0x0c;else unescaped[outIdx++] = next;
|
|
17551
|
+
} else {
|
|
17552
|
+
unescaped[outIdx++] = rawBytes[i];
|
|
17598
17553
|
}
|
|
17599
17554
|
}
|
|
17555
|
+
blobData = new Blob([unescaped.slice(0, outIdx)], {
|
|
17556
|
+
type: "application/pdf"
|
|
17557
|
+
});
|
|
17600
17558
|
} else {
|
|
17601
|
-
const
|
|
17602
|
-
|
|
17603
|
-
|
|
17604
|
-
|
|
17605
|
-
|
|
17606
|
-
var _fileRes$headers;
|
|
17607
|
-
blobData = (fileRes === null || fileRes === void 0 ? void 0 : fileRes.data) instanceof Blob ? fileRes.data : new Blob([(fileRes === null || fileRes === void 0 ? void 0 : fileRes.data) || ""], {
|
|
17608
|
-
type: (fileRes === null || fileRes === void 0 ? void 0 : (_fileRes$headers = fileRes.headers) === null || _fileRes$headers === void 0 ? void 0 : _fileRes$headers["content-type"]) || "application/pdf"
|
|
17609
|
-
});
|
|
17559
|
+
const _temp6 = function () {
|
|
17560
|
+
if (rawBytes.length > 4 && rawBytes[0] === 0x25 && rawBytes[1] === 0x50 && rawBytes[2] === 0x44 && rawBytes[3] === 0x46) {
|
|
17561
|
+
console.log("[DigiLocker] Response is a raw binary PDF.");
|
|
17562
|
+
blobData = new Blob([res2.data], {
|
|
17563
|
+
type: "application/pdf"
|
|
17610
17564
|
});
|
|
17611
17565
|
} else {
|
|
17612
|
-
const
|
|
17613
|
-
|
|
17614
|
-
|
|
17615
|
-
|
|
17616
|
-
|
|
17617
|
-
}
|
|
17618
|
-
|
|
17619
|
-
|
|
17566
|
+
const decoder = new TextDecoder("utf-8");
|
|
17567
|
+
const textStr = decoder.decode(res2.data);
|
|
17568
|
+
let parsedJson = null;
|
|
17569
|
+
try {
|
|
17570
|
+
parsedJson = JSON.parse(textStr);
|
|
17571
|
+
} catch (e) {}
|
|
17572
|
+
const _temp5 = function () {
|
|
17573
|
+
if (parsedJson) {
|
|
17574
|
+
const _temp4 = function () {
|
|
17575
|
+
if (Array.isArray(parsedJson)) {
|
|
17576
|
+
console.log("[DigiLocker] Response is a JSON array of bytes.");
|
|
17577
|
+
const arr = new Uint8Array(parsedJson);
|
|
17578
|
+
blobData = new Blob([arr], {
|
|
17579
|
+
type: "application/pdf"
|
|
17580
|
+
});
|
|
17581
|
+
} else {
|
|
17582
|
+
const _temp3 = function () {
|
|
17583
|
+
if (typeof parsedJson === "string") {
|
|
17584
|
+
console.log("[DigiLocker] Response is a base64 string in JSON.");
|
|
17585
|
+
const dataUri = parsedJson.startsWith("data:") ? parsedJson : "data:application/pdf;base64," + parsedJson;
|
|
17586
|
+
try {
|
|
17587
|
+
blobData = dataURItoBlob(dataUri);
|
|
17588
|
+
} catch (e) {
|
|
17589
|
+
console.error("Failed to parse JSON string as base64", e);
|
|
17590
|
+
}
|
|
17591
|
+
} else {
|
|
17592
|
+
const _temp2 = function () {
|
|
17593
|
+
if (typeof parsedJson === "object") {
|
|
17594
|
+
const findFileStoreId = obj => {
|
|
17595
|
+
if (!obj || typeof obj !== "object") return null;
|
|
17596
|
+
for (let key in obj) {
|
|
17597
|
+
if (key.toLowerCase() === "filestoreid") return obj[key];
|
|
17598
|
+
const found = findFileStoreId(obj[key]);
|
|
17599
|
+
if (found) return found;
|
|
17600
|
+
}
|
|
17601
|
+
return null;
|
|
17602
|
+
};
|
|
17603
|
+
const findBase64 = obj => {
|
|
17604
|
+
if (!obj || typeof obj !== "object") return null;
|
|
17605
|
+
for (let key in obj) {
|
|
17606
|
+
if (["doccontent", "filecontent", "base64"].includes(key.toLowerCase())) return obj[key];
|
|
17607
|
+
const found = findBase64(obj[key]);
|
|
17608
|
+
if (found && typeof found === "string") return found;
|
|
17609
|
+
}
|
|
17610
|
+
return null;
|
|
17611
|
+
};
|
|
17612
|
+
const fsId = findFileStoreId(parsedJson);
|
|
17613
|
+
const _temp = function () {
|
|
17614
|
+
if (fsId) {
|
|
17615
|
+
console.log("[DigiLocker] Got fileStoreId from JSON:", fsId);
|
|
17616
|
+
return Promise.resolve(Digit.UploadServices.FileFetchbyid(fsId, Digit.ULBService.getStateId())).then(function (fileRes) {
|
|
17617
|
+
var _fileRes$headers;
|
|
17618
|
+
blobData = (fileRes === null || fileRes === void 0 ? void 0 : fileRes.data) instanceof Blob ? fileRes.data : new Blob([(fileRes === null || fileRes === void 0 ? void 0 : fileRes.data) || ""], {
|
|
17619
|
+
type: (fileRes === null || fileRes === void 0 ? void 0 : (_fileRes$headers = fileRes.headers) === null || _fileRes$headers === void 0 ? void 0 : _fileRes$headers["content-type"]) || "application/pdf"
|
|
17620
|
+
});
|
|
17621
|
+
});
|
|
17622
|
+
} else {
|
|
17623
|
+
const b64 = findBase64(parsedJson);
|
|
17624
|
+
if (b64 && typeof b64 === "string") {
|
|
17625
|
+
console.log("[DigiLocker] Got base64 content from JSON field");
|
|
17626
|
+
const dataUri = b64.startsWith("data:") ? b64 : "data:application/pdf;base64," + b64;
|
|
17627
|
+
blobData = dataURItoBlob(dataUri);
|
|
17628
|
+
} else {
|
|
17629
|
+
console.log("[DigiLocker] JSON did not contain filestoreid or base64.");
|
|
17630
|
+
}
|
|
17631
|
+
}
|
|
17632
|
+
}();
|
|
17633
|
+
if (_temp && _temp.then) return _temp.then(function () {});
|
|
17634
|
+
}
|
|
17635
|
+
}();
|
|
17636
|
+
if (_temp2 && _temp2.then) return _temp2.then(function () {});
|
|
17637
|
+
}
|
|
17638
|
+
}();
|
|
17639
|
+
if (_temp3 && _temp3.then) return _temp3.then(function () {});
|
|
17640
|
+
}
|
|
17641
|
+
}();
|
|
17642
|
+
if (_temp4 && _temp4.then) return _temp4.then(function () {});
|
|
17643
|
+
} else {
|
|
17644
|
+
if (textStr.startsWith("JVBERi0x")) {
|
|
17645
|
+
console.log("[DigiLocker] Response is a raw base64 string.");
|
|
17646
|
+
try {
|
|
17647
|
+
blobData = dataURItoBlob("data:application/pdf;base64," + textStr);
|
|
17648
|
+
} catch (e) {
|
|
17649
|
+
console.error("Failed to parse raw text as base64", e);
|
|
17650
|
+
}
|
|
17651
|
+
} else {
|
|
17652
|
+
console.log("[DigiLocker] Response is unknown format, attempting binary PDF fallback.");
|
|
17653
|
+
blobData = new Blob([res2.data], {
|
|
17654
|
+
type: "application/pdf"
|
|
17655
|
+
});
|
|
17656
|
+
}
|
|
17657
|
+
}
|
|
17658
|
+
}();
|
|
17659
|
+
if (_temp5 && _temp5.then) return _temp5.then(function () {});
|
|
17620
17660
|
}
|
|
17621
17661
|
}();
|
|
17622
|
-
if (
|
|
17662
|
+
if (_temp6 && _temp6.then) return _temp6.then(function () {});
|
|
17623
17663
|
}
|
|
17624
17664
|
}();
|
|
17625
|
-
if (
|
|
17626
|
-
} else {
|
|
17627
|
-
console.log("[DigiLocker] Treating response as raw binary PDF.", contentType);
|
|
17628
|
-
blobData = new Blob([res2.data], {
|
|
17629
|
-
type: "application/pdf"
|
|
17630
|
-
});
|
|
17665
|
+
if (_temp7 && _temp7.then) return _temp7.then(function () {});
|
|
17631
17666
|
}
|
|
17632
17667
|
}();
|
|
17633
|
-
return
|
|
17668
|
+
return _temp8 && _temp8.then ? _temp8.then(_temp9) : _temp9(_temp8);
|
|
17669
|
+
} else {
|
|
17670
|
+
setShowToast({
|
|
17671
|
+
error: true,
|
|
17672
|
+
label: "Selected document (" + ((props === null || props === void 0 ? void 0 : props.documentType) || doctype) + ") is not available in your DigiLocker."
|
|
17673
|
+
});
|
|
17634
17674
|
}
|
|
17635
17675
|
}();
|
|
17636
|
-
|
|
17637
|
-
});
|
|
17638
|
-
} else {
|
|
17639
|
-
setShowToast({
|
|
17640
|
-
error: true,
|
|
17641
|
-
label: "Selected document (" + ((props === null || props === void 0 ? void 0 : props.documentType) || doctype) + ") is not available in your DigiLocker."
|
|
17676
|
+
if (_temp0 && _temp0.then) return _temp0.then(function () {});
|
|
17642
17677
|
});
|
|
17643
17678
|
}
|
|
17644
17679
|
}();
|
|
17645
|
-
if (
|
|
17680
|
+
if (_temp1 && _temp1.then) return _temp1.then(function () {});
|
|
17646
17681
|
});
|
|
17647
17682
|
}, function (error) {
|
|
17648
17683
|
console.error("DigiLocker Fetch Error:", error);
|
|
@@ -17659,8 +17694,6 @@ const UploadFileDigiLocker = props => {
|
|
|
17659
17694
|
if (filename === void 0) {
|
|
17660
17695
|
filename = "document.pdf";
|
|
17661
17696
|
}
|
|
17662
|
-
const previewUrl = URL.createObjectURL(blob);
|
|
17663
|
-
setDigiLockerPreviewUrl(previewUrl);
|
|
17664
17697
|
var reader = new FileReader();
|
|
17665
17698
|
reader.readAsDataURL(blob);
|
|
17666
17699
|
reader.onloadend = function () {
|
|
@@ -17735,30 +17768,7 @@ const UploadFileDigiLocker = props => {
|
|
|
17735
17768
|
style: {
|
|
17736
17769
|
width: "20px"
|
|
17737
17770
|
}
|
|
17738
|
-
}), t("CS_COMMON_FETCH_FROM_DIGILOCKER"))),
|
|
17739
|
-
type: "button",
|
|
17740
|
-
title: t("WS_VIEW_DOCUMENT") || "Preview document",
|
|
17741
|
-
onClick: () => setShowDigiLockerPreview(true),
|
|
17742
|
-
style: {
|
|
17743
|
-
background: "none",
|
|
17744
|
-
border: "none",
|
|
17745
|
-
cursor: "pointer",
|
|
17746
|
-
display: "flex",
|
|
17747
|
-
alignItems: "center",
|
|
17748
|
-
padding: "4px"
|
|
17749
|
-
}
|
|
17750
|
-
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
17751
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17752
|
-
height: "22",
|
|
17753
|
-
viewBox: "0 0 24 24",
|
|
17754
|
-
width: "22",
|
|
17755
|
-
fill: "#00497e"
|
|
17756
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
17757
|
-
d: "M0 0h24v24H0z",
|
|
17758
|
-
fill: "none"
|
|
17759
|
-
}), /*#__PURE__*/React__default.createElement("path", {
|
|
17760
|
-
d: "M12 4.5C7 4.5 2.73 7.61 1 12c1.73 4.39 6 7.5 11 7.5s9.27-3.11 11-7.5c-1.73-4.39-6-7.5-11-7.5zM12 17c-2.76 0-5-2.24-5-5s2.24-5 5-5 5 2.24 5 5-2.24 5-5 5zm0-8c-1.66 0-3 1.34-3 3s1.34 3 3 3 3-1.34 3-3-1.34-3-3-3z"
|
|
17761
|
-
})))), props === null || props === void 0 ? void 0 : (_props$uploadedFiles = props.uploadedFiles) === null || _props$uploadedFiles === void 0 ? void 0 : _props$uploadedFiles.map((file, index) => {
|
|
17771
|
+
}), t("CS_COMMON_FETCH_FROM_DIGILOCKER")))), props === null || props === void 0 ? void 0 : (_props$uploadedFiles = props.uploadedFiles) === null || _props$uploadedFiles === void 0 ? void 0 : _props$uploadedFiles.map((file, index) => {
|
|
17762
17772
|
var _extraStyles3;
|
|
17763
17773
|
const fileDetailsData = file[1];
|
|
17764
17774
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -17817,72 +17827,7 @@ const UploadFileDigiLocker = props => {
|
|
|
17817
17827
|
warning: showToast.warning,
|
|
17818
17828
|
label: t(showToast.label),
|
|
17819
17829
|
onClose: () => setShowToast(null)
|
|
17820
|
-
})
|
|
17821
|
-
style: {
|
|
17822
|
-
position: "fixed",
|
|
17823
|
-
top: 0,
|
|
17824
|
-
left: 0,
|
|
17825
|
-
width: "100%",
|
|
17826
|
-
height: "100%",
|
|
17827
|
-
backgroundColor: "rgba(0,0,0,0.7)",
|
|
17828
|
-
zIndex: 9999,
|
|
17829
|
-
display: "flex",
|
|
17830
|
-
flexDirection: "column",
|
|
17831
|
-
alignItems: "center",
|
|
17832
|
-
justifyContent: "center"
|
|
17833
|
-
},
|
|
17834
|
-
onClick: () => setShowDigiLockerPreview(false)
|
|
17835
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
17836
|
-
style: {
|
|
17837
|
-
background: "#fff",
|
|
17838
|
-
borderRadius: "8px",
|
|
17839
|
-
width: "85%",
|
|
17840
|
-
maxWidth: "860px",
|
|
17841
|
-
overflow: "hidden",
|
|
17842
|
-
boxShadow: "0 8px 32px rgba(0,0,0,0.4)"
|
|
17843
|
-
},
|
|
17844
|
-
onClick: ev => ev.stopPropagation()
|
|
17845
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
17846
|
-
style: {
|
|
17847
|
-
display: "flex",
|
|
17848
|
-
justifyContent: "space-between",
|
|
17849
|
-
alignItems: "center",
|
|
17850
|
-
padding: "12px 16px",
|
|
17851
|
-
background: "#00497e"
|
|
17852
|
-
}
|
|
17853
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
17854
|
-
style: {
|
|
17855
|
-
color: "#fff",
|
|
17856
|
-
fontWeight: "bold",
|
|
17857
|
-
fontSize: "14px"
|
|
17858
|
-
}
|
|
17859
|
-
}, t("WS_VIEW_DOCUMENT") || "View Document"), /*#__PURE__*/React__default.createElement("button", {
|
|
17860
|
-
type: "button",
|
|
17861
|
-
onClick: () => setShowDigiLockerPreview(false),
|
|
17862
|
-
style: {
|
|
17863
|
-
background: "none",
|
|
17864
|
-
border: "none",
|
|
17865
|
-
cursor: "pointer",
|
|
17866
|
-
padding: "4px"
|
|
17867
|
-
}
|
|
17868
|
-
}, /*#__PURE__*/React__default.createElement("svg", {
|
|
17869
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
17870
|
-
viewBox: "0 0 24 24",
|
|
17871
|
-
fill: "#fff",
|
|
17872
|
-
width: "22",
|
|
17873
|
-
height: "22"
|
|
17874
|
-
}, /*#__PURE__*/React__default.createElement("path", {
|
|
17875
|
-
d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
|
|
17876
|
-
})))), /*#__PURE__*/React__default.createElement("embed", {
|
|
17877
|
-
src: digiLockerPreviewUrl,
|
|
17878
|
-
type: "application/pdf",
|
|
17879
|
-
width: "100%",
|
|
17880
|
-
height: "520px",
|
|
17881
|
-
style: {
|
|
17882
|
-
border: "none",
|
|
17883
|
-
display: "block"
|
|
17884
|
-
}
|
|
17885
|
-
}))));
|
|
17830
|
+
}));
|
|
17886
17831
|
};
|
|
17887
17832
|
|
|
17888
17833
|
const DIGILOCKER_SUPPORTED_CODES = ["AADHAAR", "AADHAR", "DRIVING", "DRVLC", "PAN"];
|
|
@@ -18317,6 +18262,7 @@ function SelectDocument(_ref2) {
|
|
|
18317
18262
|
setFile(null);
|
|
18318
18263
|
setIsCameraFile(false);
|
|
18319
18264
|
setIsDocumentUidLocked(false);
|
|
18265
|
+
setDocumentUid("");
|
|
18320
18266
|
},
|
|
18321
18267
|
id: id,
|
|
18322
18268
|
message: uploadedFile ? "1 " + t("CS_ACTION_FILEUPLOADED") : t("CS_ACTION_NO_FILEUPLOADED"),
|
|
@@ -18334,6 +18280,7 @@ function SelectDocument(_ref2) {
|
|
|
18334
18280
|
setFile(null);
|
|
18335
18281
|
setIsCameraFile(false);
|
|
18336
18282
|
setIsDocumentUidLocked(false);
|
|
18283
|
+
setDocumentUid("");
|
|
18337
18284
|
},
|
|
18338
18285
|
documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
|
|
18339
18286
|
onDocumentNumber: num => {
|
|
@@ -18346,6 +18293,8 @@ function SelectDocument(_ref2) {
|
|
|
18346
18293
|
setUploadedFile(null);
|
|
18347
18294
|
setFile(null);
|
|
18348
18295
|
setIsCameraFile(false);
|
|
18296
|
+
setIsDocumentUidLocked(false);
|
|
18297
|
+
setDocumentUid("");
|
|
18349
18298
|
},
|
|
18350
18299
|
id: id,
|
|
18351
18300
|
message: uploadedFile ? "1 " + t("CS_ACTION_FILEUPLOADED") : t("CS_ACTION_NO_FILEUPLOADED"),
|
|
@@ -18362,6 +18311,8 @@ function SelectDocument(_ref2) {
|
|
|
18362
18311
|
setUploadedFile(null);
|
|
18363
18312
|
setFile(null);
|
|
18364
18313
|
setIsCameraFile(false);
|
|
18314
|
+
setIsDocumentUidLocked(false);
|
|
18315
|
+
setDocumentUid("");
|
|
18365
18316
|
}
|
|
18366
18317
|
})), uploadedFile && /*#__PURE__*/React__default.createElement("div", {
|
|
18367
18318
|
onClick: viewDocument,
|
|
@@ -18439,6 +18390,7 @@ function SelectDocument(_ref2) {
|
|
|
18439
18390
|
center: true,
|
|
18440
18391
|
actionCancelOnSubmit: () => setShowDocModal(false),
|
|
18441
18392
|
actionCancelLabel: t("CS_COMMON_CLOSE") || "Close",
|
|
18393
|
+
hideSubmit: true,
|
|
18442
18394
|
popupStyles: {
|
|
18443
18395
|
width: "80%",
|
|
18444
18396
|
maxWidth: "800px"
|
|
@@ -31939,31 +31891,31 @@ const checkForNA$1 = value => {
|
|
|
31939
31891
|
return value ? value : "CS_NA";
|
|
31940
31892
|
};
|
|
31941
31893
|
const WSApplicationDetails = () => {
|
|
31942
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$SewerageConnect5, _data$SewerageConnect6, _data$
|
|
31894
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect121, _data$SewerageConnect122, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect125, _data$SewerageConnect126, _propertyAddress$zro, _propertyAddress$addi, _propertyAddress$addr, _propertyAddress$addr2, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection151, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect146, _data$SewerageConnect147, _data$SewerageConnect148, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect150, _data$SewerageConnect151, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect154, _data$SewerageConnect155, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173;
|
|
31943
31895
|
const getDisconnectionNoticeSearch = function () {
|
|
31944
31896
|
try {
|
|
31945
|
-
var _data$
|
|
31897
|
+
var _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect170, _data$SewerageConnect171;
|
|
31946
31898
|
let key = "ws-waterdisconnectionnotice";
|
|
31947
31899
|
let details = {};
|
|
31948
31900
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
31949
|
-
var _data$
|
|
31901
|
+
var _data$WaterConnection174, _PTData$Properties9;
|
|
31950
31902
|
details = {
|
|
31951
|
-
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
31903
|
+
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection174 = data.WaterConnection) === null || _data$WaterConnection174 === void 0 ? void 0 : _data$WaterConnection174[0], {
|
|
31952
31904
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : _PTData$Properties9[0]
|
|
31953
31905
|
})]
|
|
31954
31906
|
};
|
|
31955
31907
|
} else {
|
|
31956
|
-
var _data$
|
|
31908
|
+
var _data$SewerageConnect169, _PTData$Properties0;
|
|
31957
31909
|
key = "ws-seweragedisconnectionnotice";
|
|
31958
31910
|
details = {
|
|
31959
|
-
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
31911
|
+
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect169 = data.SewerageConnections) === null || _data$SewerageConnect169 === void 0 ? void 0 : _data$SewerageConnect169[0], {
|
|
31960
31912
|
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : _PTData$Properties0[0]
|
|
31961
31913
|
})]
|
|
31962
31914
|
};
|
|
31963
31915
|
}
|
|
31964
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
31965
|
-
var _data$
|
|
31966
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
31916
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection175 = data.WaterConnection) === null || _data$WaterConnection175 === void 0 ? void 0 : (_data$WaterConnection176 = _data$WaterConnection175[0]) === null || _data$WaterConnection176 === void 0 ? void 0 : _data$WaterConnection176.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect170 = data.SewerageConnections) === null || _data$SewerageConnect170 === void 0 ? void 0 : (_data$SewerageConnect171 = _data$SewerageConnect170[0]) === null || _data$SewerageConnect171 === void 0 ? void 0 : _data$SewerageConnect171.tenantId), details, key)).then(function (response) {
|
|
31917
|
+
var _data$WaterConnection177, _data$WaterConnection178, _data$SewerageConnect172, _data$SewerageConnect173;
|
|
31918
|
+
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection177 = data.WaterConnection) === null || _data$WaterConnection177 === void 0 ? void 0 : (_data$WaterConnection178 = _data$WaterConnection177[0]) === null || _data$WaterConnection178 === void 0 ? void 0 : _data$WaterConnection178.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect172 = data.SewerageConnections) === null || _data$SewerageConnect172 === void 0 ? void 0 : (_data$SewerageConnect173 = _data$SewerageConnect172[0]) === null || _data$SewerageConnect173 === void 0 ? void 0 : _data$SewerageConnect173.tenantId), {
|
|
31967
31919
|
fileStoreIds: response.filestoreIds[0]
|
|
31968
31920
|
})).then(function (fileStore) {
|
|
31969
31921
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -32015,16 +31967,17 @@ const WSApplicationDetails = () => {
|
|
|
32015
31967
|
}
|
|
32016
31968
|
}),
|
|
32017
31969
|
generatePdfKey = _Digit$Hooks$useCommo.data;
|
|
31970
|
+
const isMutation = (data === null || data === void 0 ? void 0 : (_data$WaterConnection5 = data.WaterConnection) === null || _data$WaterConnection5 === void 0 ? void 0 : (_data$WaterConnection6 = _data$WaterConnection5[0]) === null || _data$WaterConnection6 === void 0 ? void 0 : (_data$WaterConnection7 = _data$WaterConnection6.applicationType) === null || _data$WaterConnection7 === void 0 ? void 0 : _data$WaterConnection7.includes("MUTATION")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect5 = data.SewerageConnections) === null || _data$SewerageConnect5 === void 0 ? void 0 : (_data$SewerageConnect6 = _data$SewerageConnect5[0]) === null || _data$SewerageConnect6 === void 0 ? void 0 : (_data$SewerageConnect7 = _data$SewerageConnect6.applicationType) === null || _data$SewerageConnect7 === void 0 ? void 0 : _data$SewerageConnect7.includes("MUTATION"));
|
|
32018
31971
|
const paymentDetails = Digit.Hooks.useFetchBillsForBuissnessService(_extends({
|
|
32019
|
-
businessService: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? "SW" : "SW.ONE_TIME_FEE" : applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? "WS" : "WS.ONE_TIME_FEE"
|
|
31972
|
+
businessService: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? "SW" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE" : applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? "WS" : isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE"
|
|
32020
31973
|
}, fetchBillParams, {
|
|
32021
31974
|
tenantId: tenantId
|
|
32022
31975
|
}), {
|
|
32023
|
-
enabled: data !== null && data !== void 0 && (_data$
|
|
31976
|
+
enabled: data !== null && data !== void 0 && (_data$WaterConnection8 = data.WaterConnection) !== null && _data$WaterConnection8 !== void 0 && (_data$WaterConnection9 = _data$WaterConnection8[0]) !== null && _data$WaterConnection9 !== void 0 && _data$WaterConnection9.applicationNo || data !== null && data !== void 0 && (_data$SewerageConnect8 = data.SewerageConnections) !== null && _data$SewerageConnect8 !== void 0 && (_data$SewerageConnect9 = _data$SewerageConnect8[0]) !== null && _data$SewerageConnect9 !== void 0 && _data$SewerageConnect9.applicationNo ? true : false,
|
|
32024
31977
|
retry: false
|
|
32025
31978
|
});
|
|
32026
|
-
const propertyId = (data === null || data === void 0 ? void 0 : (_data$
|
|
32027
|
-
const propertyTenantId = (data === null || data === void 0 ? void 0 : (_data$
|
|
31979
|
+
const propertyId = (data === null || data === void 0 ? void 0 : (_data$WaterConnection0 = data.WaterConnection) === null || _data$WaterConnection0 === void 0 ? void 0 : (_data$WaterConnection1 = _data$WaterConnection0[0]) === null || _data$WaterConnection1 === void 0 ? void 0 : _data$WaterConnection1.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect0 = data.SewerageConnections) === null || _data$SewerageConnect0 === void 0 ? void 0 : (_data$SewerageConnect1 = _data$SewerageConnect0[0]) === null || _data$SewerageConnect1 === void 0 ? void 0 : _data$SewerageConnect1.propertyId);
|
|
31980
|
+
const propertyTenantId = (data === null || data === void 0 ? void 0 : (_data$WaterConnection10 = data.WaterConnection) === null || _data$WaterConnection10 === void 0 ? void 0 : (_data$WaterConnection11 = _data$WaterConnection10[0]) === null || _data$WaterConnection11 === void 0 ? void 0 : _data$WaterConnection11.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect10 = data.SewerageConnections) === null || _data$SewerageConnect10 === void 0 ? void 0 : (_data$SewerageConnect11 = _data$SewerageConnect10[0]) === null || _data$SewerageConnect11 === void 0 ? void 0 : _data$SewerageConnect11.tenantId) || tenantId;
|
|
32028
31981
|
const _Digit$Hooks$pt$usePr = Digit.Hooks.pt.usePropertySearch({
|
|
32029
31982
|
filters: {
|
|
32030
31983
|
propertyIds: propertyId
|
|
@@ -32039,7 +31992,7 @@ const WSApplicationDetails = () => {
|
|
|
32039
31992
|
privacy: Digit.Utils.getPrivacyObject()
|
|
32040
31993
|
}),
|
|
32041
31994
|
PTData = _Digit$Hooks$pt$usePr.data;
|
|
32042
|
-
const applicationData = (data === null || data === void 0 ? void 0 : (_data$
|
|
31995
|
+
const applicationData = (data === null || data === void 0 ? void 0 : (_data$WaterConnection12 = data.WaterConnection) === null || _data$WaterConnection12 === void 0 ? void 0 : _data$WaterConnection12[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect12 = data.SewerageConnections) === null || _data$SewerageConnect12 === void 0 ? void 0 : _data$SewerageConnect12[0]);
|
|
32043
31996
|
const additionalDetails = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.additionalDetails) || {};
|
|
32044
31997
|
const connectionDetails = additionalDetails;
|
|
32045
31998
|
const useDetails = additionalDetails;
|
|
@@ -32048,12 +32001,12 @@ const WSApplicationDetails = () => {
|
|
|
32048
32001
|
const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : _PTData$Properties$.address) || additionalDetails;
|
|
32049
32002
|
const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
|
|
32050
32003
|
privacy: {
|
|
32051
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
32004
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection13 = data.WaterConnection) === null || _data$WaterConnection13 === void 0 ? void 0 : (_data$WaterConnection14 = _data$WaterConnection13[0]) === null || _data$WaterConnection14 === void 0 ? void 0 : (_data$WaterConnection15 = _data$WaterConnection14.connectionHolders) === null || _data$WaterConnection15 === void 0 ? void 0 : (_data$WaterConnection16 = _data$WaterConnection15[0]) === null || _data$WaterConnection16 === void 0 ? void 0 : _data$WaterConnection16.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect13 = data.SewerageConnections) === null || _data$SewerageConnect13 === void 0 ? void 0 : (_data$SewerageConnect14 = _data$SewerageConnect13[0]) === null || _data$SewerageConnect14 === void 0 ? void 0 : (_data$SewerageConnect15 = _data$SewerageConnect14.connectionHolders) === null || _data$SewerageConnect15 === void 0 ? void 0 : (_data$SewerageConnect16 = _data$SewerageConnect15[0]) === null || _data$SewerageConnect16 === void 0 ? void 0 : _data$SewerageConnect16.uuid,
|
|
32052
32005
|
fieldName: "connectionHoldersMobileNumber",
|
|
32053
32006
|
model: "WnSConnectionOwner"
|
|
32054
32007
|
}
|
|
32055
32008
|
}) || false;
|
|
32056
|
-
const applicationStatus = (data === null || data === void 0 ? void 0 : (_data$
|
|
32009
|
+
const applicationStatus = (data === null || data === void 0 ? void 0 : (_data$WaterConnection17 = data.WaterConnection) === null || _data$WaterConnection17 === void 0 ? void 0 : (_data$WaterConnection18 = _data$WaterConnection17[0]) === null || _data$WaterConnection18 === void 0 ? void 0 : _data$WaterConnection18.applicationStatus) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect17 = data.SewerageConnections) === null || _data$SewerageConnect17 === void 0 ? void 0 : (_data$SewerageConnect18 = _data$SewerageConnect17[0]) === null || _data$SewerageConnect18 === void 0 ? void 0 : _data$SewerageConnect18.applicationStatus);
|
|
32057
32010
|
const isPaid = applicationStatus && applicationStatus !== "INITIATED" && applicationStatus !== "PENDING_FOR_PAYMENT" && applicationStatus !== "PENDING_FOR_FINAL_PAYMENT" && applicationStatus !== "PENDING_FOR_ADDITIONAL_PAYMENT" ? true : false;
|
|
32058
32011
|
const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, applicationNobyData, applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? "SEWERAGE" : "WATER", user),
|
|
32059
32012
|
isAppDetailsLoading = _Digit$Hooks$ws$useWS.isLoading,
|
|
@@ -32067,9 +32020,9 @@ const WSApplicationDetails = () => {
|
|
|
32067
32020
|
}
|
|
32068
32021
|
const handleDownloadPdf = function () {
|
|
32069
32022
|
try {
|
|
32070
|
-
var _data$
|
|
32071
|
-
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$
|
|
32072
|
-
let res = (data === null || data === void 0 ? void 0 : (_data$
|
|
32023
|
+
var _data$WaterConnection19, _data$WaterConnection20, _data$SewerageConnect19, _data$SewerageConnect20, _data$WaterConnection21, _data$SewerageConnect21, _PTData$Properties2;
|
|
32024
|
+
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection19 = data.WaterConnection) === null || _data$WaterConnection19 === void 0 ? void 0 : (_data$WaterConnection20 = _data$WaterConnection19[0]) === null || _data$WaterConnection20 === void 0 ? void 0 : _data$WaterConnection20.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect19 = data.SewerageConnections) === null || _data$SewerageConnect19 === void 0 ? void 0 : (_data$SewerageConnect20 = _data$SewerageConnect19[0]) === null || _data$SewerageConnect20 === void 0 ? void 0 : _data$SewerageConnect20.tenantId);
|
|
32025
|
+
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection21 = data.WaterConnection) === null || _data$WaterConnection21 === void 0 ? void 0 : _data$WaterConnection21[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect21 = data.SewerageConnections) === null || _data$SewerageConnect21 === void 0 ? void 0 : _data$SewerageConnect21[0]);
|
|
32073
32026
|
const PDFdata = getWSAcknowledgementData(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties2 = PTData.Properties) === null || _PTData$Properties2 === void 0 ? void 0 : _PTData$Properties2[0]), tenantInfo, t);
|
|
32074
32027
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
32075
32028
|
setShowOptions(false);
|
|
@@ -32080,9 +32033,9 @@ const WSApplicationDetails = () => {
|
|
|
32080
32033
|
};
|
|
32081
32034
|
const handleDownloadDisconnectPdf = function () {
|
|
32082
32035
|
try {
|
|
32083
|
-
var _data$
|
|
32084
|
-
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$
|
|
32085
|
-
let res = (data === null || data === void 0 ? void 0 : (_data$
|
|
32036
|
+
var _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection24, _data$SewerageConnect24, _PTData$Properties3;
|
|
32037
|
+
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection22 = data.WaterConnection) === null || _data$WaterConnection22 === void 0 ? void 0 : (_data$WaterConnection23 = _data$WaterConnection22[0]) === null || _data$WaterConnection23 === void 0 ? void 0 : _data$WaterConnection23.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect22 = data.SewerageConnections) === null || _data$SewerageConnect22 === void 0 ? void 0 : (_data$SewerageConnect23 = _data$SewerageConnect22[0]) === null || _data$SewerageConnect23 === void 0 ? void 0 : _data$SewerageConnect23.tenantId);
|
|
32038
|
+
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection24 = data.WaterConnection) === null || _data$WaterConnection24 === void 0 ? void 0 : _data$WaterConnection24[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect24 = data.SewerageConnections) === null || _data$SewerageConnect24 === void 0 ? void 0 : _data$SewerageConnect24[0]);
|
|
32086
32039
|
const PDFdata = getWSDisconnectionApplicationForm(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties3 = PTData.Properties) === null || _PTData$Properties3 === void 0 ? void 0 : _PTData$Properties3[0]), tenantInfo, t);
|
|
32087
32040
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
32088
32041
|
setShowOptions(false);
|
|
@@ -32093,12 +32046,12 @@ const WSApplicationDetails = () => {
|
|
|
32093
32046
|
};
|
|
32094
32047
|
const printApplicationReceipts = function () {
|
|
32095
32048
|
try {
|
|
32096
|
-
var _data$
|
|
32049
|
+
var _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$WaterConnection28, _data$SewerageConnect25, _data$SewerageConnect26;
|
|
32097
32050
|
const tenantId = Digit.ULBService.getCurrentTenantId();
|
|
32098
32051
|
const state = Digit.ULBService.getStateId();
|
|
32099
|
-
let key = data !== null && data !== void 0 && (_data$
|
|
32052
|
+
let key = data !== null && data !== void 0 && (_data$WaterConnection25 = data.WaterConnection) !== null && _data$WaterConnection25 !== void 0 && _data$WaterConnection25[0] ? isMutation ? "WS.MUTATION" : "WS.ONE_TIME_FEE" : isMutation ? "SW.MUTATION" : "SW.ONE_TIME_FEE";
|
|
32100
32053
|
return Promise.resolve(Digit.PaymentService.getReciept(tenantId, key, {
|
|
32101
|
-
consumerCodes: data !== null && data !== void 0 && (_data$
|
|
32054
|
+
consumerCodes: data !== null && data !== void 0 && (_data$WaterConnection26 = data.WaterConnection) !== null && _data$WaterConnection26 !== void 0 && _data$WaterConnection26[0] ? data === null || data === void 0 ? void 0 : (_data$WaterConnection27 = data.WaterConnection) === null || _data$WaterConnection27 === void 0 ? void 0 : (_data$WaterConnection28 = _data$WaterConnection27[0]) === null || _data$WaterConnection28 === void 0 ? void 0 : _data$WaterConnection28.applicationNo : data === null || data === void 0 ? void 0 : (_data$SewerageConnect25 = data.SewerageConnections) === null || _data$SewerageConnect25 === void 0 ? void 0 : (_data$SewerageConnect26 = _data$SewerageConnect25[0]) === null || _data$SewerageConnect26 === void 0 ? void 0 : _data$SewerageConnect26.applicationNo
|
|
32102
32055
|
})).then(function (payments) {
|
|
32103
32056
|
var _payments$Payments$;
|
|
32104
32057
|
function _temp2() {
|
|
@@ -32131,16 +32084,16 @@ const WSApplicationDetails = () => {
|
|
|
32131
32084
|
order: 1,
|
|
32132
32085
|
label: t("WS_ESTIMATION_NOTICE"),
|
|
32133
32086
|
onClick: () => {
|
|
32134
|
-
var _data$
|
|
32135
|
-
return data !== null && data !== void 0 && (_data$
|
|
32087
|
+
var _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$WaterConnection32, _data$SewerageConnect27, _data$SewerageConnect28, _data$SewerageConnect29;
|
|
32088
|
+
return data !== null && data !== void 0 && (_data$WaterConnection29 = data.WaterConnection) !== null && _data$WaterConnection29 !== void 0 && _data$WaterConnection29[0] ? getFiles([data === null || data === void 0 ? void 0 : (_data$WaterConnection30 = data.WaterConnection) === null || _data$WaterConnection30 === void 0 ? void 0 : (_data$WaterConnection31 = _data$WaterConnection30[0]) === null || _data$WaterConnection31 === void 0 ? void 0 : (_data$WaterConnection32 = _data$WaterConnection31.additionalDetails) === null || _data$WaterConnection32 === void 0 ? void 0 : _data$WaterConnection32.estimationFileStoreId], tenantId) : getFiles([data === null || data === void 0 ? void 0 : (_data$SewerageConnect27 = data.SewerageConnections) === null || _data$SewerageConnect27 === void 0 ? void 0 : (_data$SewerageConnect28 = _data$SewerageConnect27[0]) === null || _data$SewerageConnect28 === void 0 ? void 0 : (_data$SewerageConnect29 = _data$SewerageConnect28.additionalDetails) === null || _data$SewerageConnect29 === void 0 ? void 0 : _data$SewerageConnect29.estimationFileStoreId], tenantId);
|
|
32136
32089
|
}
|
|
32137
32090
|
};
|
|
32138
32091
|
const sanctionDownloadObject = {
|
|
32139
32092
|
order: 2,
|
|
32140
32093
|
label: t("WS_SANCTION_LETTER"),
|
|
32141
32094
|
onClick: () => {
|
|
32142
|
-
var _data$
|
|
32143
|
-
return data !== null && data !== void 0 && (_data$
|
|
32095
|
+
var _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$WaterConnection36, _data$SewerageConnect30, _data$SewerageConnect31, _data$SewerageConnect32;
|
|
32096
|
+
return data !== null && data !== void 0 && (_data$WaterConnection33 = data.WaterConnection) !== null && _data$WaterConnection33 !== void 0 && _data$WaterConnection33[0] ? getFiles([data === null || data === void 0 ? void 0 : (_data$WaterConnection34 = data.WaterConnection) === null || _data$WaterConnection34 === void 0 ? void 0 : (_data$WaterConnection35 = _data$WaterConnection34[0]) === null || _data$WaterConnection35 === void 0 ? void 0 : (_data$WaterConnection36 = _data$WaterConnection35.additionalDetails) === null || _data$WaterConnection36 === void 0 ? void 0 : _data$WaterConnection36.sanctionFileStoreId], tenantId) : getFiles([data === null || data === void 0 ? void 0 : (_data$SewerageConnect30 = data.SewerageConnections) === null || _data$SewerageConnect30 === void 0 ? void 0 : (_data$SewerageConnect31 = _data$SewerageConnect30[0]) === null || _data$SewerageConnect31 === void 0 ? void 0 : (_data$SewerageConnect32 = _data$SewerageConnect31.additionalDetails) === null || _data$SewerageConnect32 === void 0 ? void 0 : _data$SewerageConnect32.sanctionFileStoreId], tenantId);
|
|
32144
32097
|
}
|
|
32145
32098
|
};
|
|
32146
32099
|
const applicationDownloadObject = {
|
|
@@ -32162,11 +32115,11 @@ const WSApplicationDetails = () => {
|
|
|
32162
32115
|
label: t("WS_DISCONNECTION_NOTICE_LABEL"),
|
|
32163
32116
|
onClick: () => getDisconnectionNoticeSearch()
|
|
32164
32117
|
}];
|
|
32165
|
-
const isDisconnection = (data === null || data === void 0 ? void 0 : (_data$
|
|
32166
|
-
const appStatus = (data === null || data === void 0 ? void 0 : (_data$
|
|
32118
|
+
const isDisconnection = (data === null || data === void 0 ? void 0 : (_data$WaterConnection37 = data.WaterConnection) === null || _data$WaterConnection37 === void 0 ? void 0 : (_data$WaterConnection38 = _data$WaterConnection37[0].applicationType) === null || _data$WaterConnection38 === void 0 ? void 0 : _data$WaterConnection38.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect33 = data.SewerageConnections) === null || _data$SewerageConnect33 === void 0 ? void 0 : (_data$SewerageConnect34 = _data$SewerageConnect33[0].applicationType) === null || _data$SewerageConnect34 === void 0 ? void 0 : _data$SewerageConnect34.includes("DISCONNECT"));
|
|
32119
|
+
const appStatus = (data === null || data === void 0 ? void 0 : (_data$WaterConnection39 = data.WaterConnection) === null || _data$WaterConnection39 === void 0 ? void 0 : (_data$WaterConnection40 = _data$WaterConnection39[0]) === null || _data$WaterConnection40 === void 0 ? void 0 : _data$WaterConnection40.applicationStatus) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect35 = data.SewerageConnections) === null || _data$SewerageConnect35 === void 0 ? void 0 : (_data$SewerageConnect36 = _data$SewerageConnect35[0]) === null || _data$SewerageConnect36 === void 0 ? void 0 : _data$SewerageConnect36.applicationStatus);
|
|
32167
32120
|
switch (appStatus) {
|
|
32168
32121
|
case "PENDING_FOR_DOCUMENT_VERIFICATION":
|
|
32169
|
-
if (data !== null && data !== void 0 && (_data$
|
|
32122
|
+
if (data !== null && data !== void 0 && (_data$WaterConnection41 = data.WaterConnection) !== null && _data$WaterConnection41 !== void 0 && (_data$WaterConnection42 = _data$WaterConnection41[0].applicationType) !== null && _data$WaterConnection42 !== void 0 && _data$WaterConnection42.includes("DISCONNECT") || data !== null && data !== void 0 && (_data$SewerageConnect37 = data.SewerageConnections) !== null && _data$SewerageConnect37 !== void 0 && (_data$SewerageConnect38 = _data$SewerageConnect37[0].applicationType) !== null && _data$SewerageConnect38 !== void 0 && _data$SewerageConnect38.includes("DISCONNECT")) {
|
|
32170
32123
|
downloadOptions = disconnectionNoticeNApplicationFormOptions;
|
|
32171
32124
|
} else {
|
|
32172
32125
|
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
@@ -32190,7 +32143,7 @@ const WSApplicationDetails = () => {
|
|
|
32190
32143
|
case "PENDING_FOR_DISCONNECTION_EXECUTION":
|
|
32191
32144
|
case "DISCONNECTION_EXECUTED":
|
|
32192
32145
|
case "PENDING_FOR_PAYMENT":
|
|
32193
|
-
if (data !== null && data !== void 0 && (_data$
|
|
32146
|
+
if (data !== null && data !== void 0 && (_data$WaterConnection43 = data.WaterConnection) !== null && _data$WaterConnection43 !== void 0 && (_data$WaterConnection44 = _data$WaterConnection43[0].applicationType) !== null && _data$WaterConnection44 !== void 0 && _data$WaterConnection44.includes("DISCONNECT") || data !== null && data !== void 0 && (_data$SewerageConnect39 = data.SewerageConnections) !== null && _data$SewerageConnect39 !== void 0 && (_data$SewerageConnect40 = _data$SewerageConnect39[0].applicationType) !== null && _data$SewerageConnect40 !== void 0 && _data$SewerageConnect40.includes("DISCONNECT")) {
|
|
32194
32147
|
downloadOptions = disconnectionNoticeNApplicationFormOptions;
|
|
32195
32148
|
} else {
|
|
32196
32149
|
downloadOptions = downloadOptions.concat(applicationDownloadObject);
|
|
@@ -32203,7 +32156,7 @@ const WSApplicationDetails = () => {
|
|
|
32203
32156
|
downloadOptions.sort(function (a, b) {
|
|
32204
32157
|
return a.order - b.order;
|
|
32205
32158
|
});
|
|
32206
|
-
let serviceType = data && data !== null && data !== void 0 && (_data$
|
|
32159
|
+
let serviceType = data && data !== null && data !== void 0 && (_data$WaterConnection45 = data.WaterConnection) !== null && _data$WaterConnection45 !== void 0 && _data$WaterConnection45[0] ? "WATER" : "SEWERAGE";
|
|
32207
32160
|
sessionStorage.setItem("ApplicationNoState", applicationNobyData);
|
|
32208
32161
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
32209
32162
|
className: "employee-main-application-details",
|
|
@@ -32220,8 +32173,8 @@ const WSApplicationDetails = () => {
|
|
|
32220
32173
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement("div", {
|
|
32221
32174
|
id: "timeline"
|
|
32222
32175
|
}, /*#__PURE__*/React__default.createElement(WSWFApplicationTimeline, {
|
|
32223
|
-
application: (data === null || data === void 0 ? void 0 : (_data$
|
|
32224
|
-
id: (data === null || data === void 0 ? void 0 : (_data$
|
|
32176
|
+
application: (data === null || data === void 0 ? void 0 : (_data$WaterConnection46 = data.WaterConnection) === null || _data$WaterConnection46 === void 0 ? void 0 : _data$WaterConnection46[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect41 = data.SewerageConnections) === null || _data$SewerageConnect41 === void 0 ? void 0 : _data$SewerageConnect41[0]),
|
|
32177
|
+
id: (data === null || data === void 0 ? void 0 : (_data$WaterConnection47 = data.WaterConnection) === null || _data$WaterConnection47 === void 0 ? void 0 : (_data$WaterConnection48 = _data$WaterConnection47[0]) === null || _data$WaterConnection48 === void 0 ? void 0 : _data$WaterConnection48.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect42 = data.SewerageConnections) === null || _data$SewerageConnect42 === void 0 ? void 0 : (_data$SewerageConnect43 = _data$SewerageConnect42[0]) === null || _data$SewerageConnect43 === void 0 ? void 0 : _data$SewerageConnect43.applicationNo),
|
|
32225
32178
|
paymentbuttonenabled: false
|
|
32226
32179
|
})))), /*#__PURE__*/React__default.createElement("div", {
|
|
32227
32180
|
style: {
|
|
@@ -32254,35 +32207,35 @@ const WSApplicationDetails = () => {
|
|
|
32254
32207
|
className: "hide-seperator"
|
|
32255
32208
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32256
32209
|
label: t("WS_MYCONNECTIONS_APPLICATION_NO"),
|
|
32257
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
32210
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection49 = data.WaterConnection) === null || _data$WaterConnection49 === void 0 ? void 0 : (_data$WaterConnection50 = _data$WaterConnection49[0]) === null || _data$WaterConnection50 === void 0 ? void 0 : _data$WaterConnection50.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect44 = data.SewerageConnections) === null || _data$SewerageConnect44 === void 0 ? void 0 : (_data$SewerageConnect45 = _data$SewerageConnect44[0]) === null || _data$SewerageConnect45 === void 0 ? void 0 : _data$SewerageConnect45.applicationNo),
|
|
32258
32211
|
textStyle: {}
|
|
32259
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
32212
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection51 = data.WaterConnection) === null || _data$WaterConnection51 === void 0 ? void 0 : (_data$WaterConnection52 = _data$WaterConnection51[0].applicationType) === null || _data$WaterConnection52 === void 0 ? void 0 : _data$WaterConnection52.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect46 = data.SewerageConnections) === null || _data$SewerageConnect46 === void 0 ? void 0 : (_data$SewerageConnect47 = _data$SewerageConnect46[0].applicationType) === null || _data$SewerageConnect47 === void 0 ? void 0 : _data$SewerageConnect47.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32260
32213
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
32261
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
32214
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection53 = data.WaterConnection) === null || _data$WaterConnection53 === void 0 ? void 0 : (_data$WaterConnection54 = _data$WaterConnection53[0]) === null || _data$WaterConnection54 === void 0 ? void 0 : _data$WaterConnection54.connectionNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect48 = data.SewerageConnections) === null || _data$SewerageConnect48 === void 0 ? void 0 : (_data$SewerageConnect49 = _data$SewerageConnect48[0]) === null || _data$SewerageConnect49 === void 0 ? void 0 : _data$SewerageConnect49.connectionNo),
|
|
32262
32215
|
textStyle: {
|
|
32263
32216
|
wordBreak: "break-word"
|
|
32264
32217
|
}
|
|
32265
32218
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32266
32219
|
label: t("WS_SERVICE_NAME_LABEL"),
|
|
32267
|
-
text: t("WS_APPLICATION_TYPE_" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
32220
|
+
text: t("WS_APPLICATION_TYPE_" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection55 = data.WaterConnection) === null || _data$WaterConnection55 === void 0 ? void 0 : (_data$WaterConnection56 = _data$WaterConnection55[0]) === null || _data$WaterConnection56 === void 0 ? void 0 : _data$WaterConnection56.applicationType) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect50 = data.SewerageConnections) === null || _data$SewerageConnect50 === void 0 ? void 0 : (_data$SewerageConnect51 = _data$SewerageConnect50[0]) === null || _data$SewerageConnect51 === void 0 ? void 0 : _data$SewerageConnect51.applicationType))),
|
|
32268
32221
|
textStyle: {
|
|
32269
32222
|
wordBreak: "break-word"
|
|
32270
32223
|
}
|
|
32271
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
32224
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection57 = data.WaterConnection) === null || _data$WaterConnection57 === void 0 ? void 0 : (_data$WaterConnection58 = _data$WaterConnection57[0].applicationType) === null || _data$WaterConnection58 === void 0 ? void 0 : _data$WaterConnection58.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect52 = data.SewerageConnections) === null || _data$SewerageConnect52 === void 0 ? void 0 : (_data$SewerageConnect53 = _data$SewerageConnect52[0].applicationType) === null || _data$SewerageConnect53 === void 0 ? void 0 : _data$SewerageConnect53.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32272
32225
|
label: t("WS_DISCONNECTION_PROPOSED_DATE"),
|
|
32273
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
32226
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection59 = data.WaterConnection) === null || _data$WaterConnection59 === void 0 ? void 0 : (_data$WaterConnection60 = _data$WaterConnection59[0]) === null || _data$WaterConnection60 === void 0 ? void 0 : _data$WaterConnection60.dateEffectiveFrom) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect54 = data.SewerageConnections) === null || _data$SewerageConnect54 === void 0 ? void 0 : (_data$SewerageConnect55 = _data$SewerageConnect54[0]) === null || _data$SewerageConnect55 === void 0 ? void 0 : _data$SewerageConnect55.dateEffectiveFrom),
|
|
32274
32227
|
textStyle: {
|
|
32275
32228
|
wordBreak: "break-word"
|
|
32276
32229
|
}
|
|
32277
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
32230
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection61 = data.WaterConnection) === null || _data$WaterConnection61 === void 0 ? void 0 : (_data$WaterConnection62 = _data$WaterConnection61[0].applicationType) === null || _data$WaterConnection62 === void 0 ? void 0 : _data$WaterConnection62.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect56 = data.SewerageConnections) === null || _data$SewerageConnect56 === void 0 ? void 0 : (_data$SewerageConnect57 = _data$SewerageConnect56[0].applicationType) === null || _data$SewerageConnect57 === void 0 ? void 0 : _data$SewerageConnect57.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32278
32231
|
label: t("WS_DISCONNECTION_EXECUTED_DATE"),
|
|
32279
|
-
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$
|
|
32232
|
+
text: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$WaterConnection63 = data.WaterConnection) === null || _data$WaterConnection63 === void 0 ? void 0 : (_data$WaterConnection64 = _data$WaterConnection63[0]) === null || _data$WaterConnection64 === void 0 ? void 0 : _data$WaterConnection64.disconnectionExecutionDate) : convertEpochToDate(data === null || data === void 0 ? void 0 : (_data$SewerageConnect58 = data.SewerageConnections) === null || _data$SewerageConnect58 === void 0 ? void 0 : (_data$SewerageConnect59 = _data$SewerageConnect58[0]) === null || _data$SewerageConnect59 === void 0 ? void 0 : _data$SewerageConnect59.disconnectionExecutionDate),
|
|
32280
32233
|
textStyle: {
|
|
32281
32234
|
wordBreak: "break-word"
|
|
32282
32235
|
}
|
|
32283
|
-
}), ((data === null || data === void 0 ? void 0 : (_data$
|
|
32236
|
+
}), ((data === null || data === void 0 ? void 0 : (_data$WaterConnection65 = data.WaterConnection) === null || _data$WaterConnection65 === void 0 ? void 0 : (_data$WaterConnection66 = _data$WaterConnection65[0].applicationType) === null || _data$WaterConnection66 === void 0 ? void 0 : _data$WaterConnection66.includes("DISCONNECT")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect60 = data.SewerageConnections) === null || _data$SewerageConnect60 === void 0 ? void 0 : (_data$SewerageConnect61 = _data$SewerageConnect60[0].applicationType) === null || _data$SewerageConnect61 === void 0 ? void 0 : _data$SewerageConnect61.includes("DISCONNECT"))) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32284
32237
|
label: t("WS_DISCONNECTION_REASON"),
|
|
32285
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
32238
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection67 = data.WaterConnection) === null || _data$WaterConnection67 === void 0 ? void 0 : (_data$WaterConnection68 = _data$WaterConnection67[0]) === null || _data$WaterConnection68 === void 0 ? void 0 : _data$WaterConnection68.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$WaterConnection69 = data.WaterConnection) === null || _data$WaterConnection69 === void 0 ? void 0 : (_data$WaterConnection70 = _data$WaterConnection69[0]) === null || _data$WaterConnection70 === void 0 ? void 0 : _data$WaterConnection70.disconnectionReason : (data === null || data === void 0 ? void 0 : (_data$SewerageConnect62 = data.SewerageConnections) === null || _data$SewerageConnect62 === void 0 ? void 0 : (_data$SewerageConnect63 = _data$SewerageConnect62[0]) === null || _data$SewerageConnect63 === void 0 ? void 0 : _data$SewerageConnect63.disconnectionReason) != null ? data === null || data === void 0 ? void 0 : (_data$SewerageConnect64 = data.SewerageConnections) === null || _data$SewerageConnect64 === void 0 ? void 0 : (_data$SewerageConnect65 = _data$SewerageConnect64[0]) === null || _data$SewerageConnect65 === void 0 ? void 0 : _data$SewerageConnect65.disconnectionReason : t("NA"),
|
|
32286
32239
|
textStyle: {
|
|
32287
32240
|
wordBreak: "break-word"
|
|
32288
32241
|
}
|
|
@@ -32331,18 +32284,18 @@ const WSApplicationDetails = () => {
|
|
|
32331
32284
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32332
32285
|
label: t("WS_NATURE_OF_WORK"),
|
|
32333
32286
|
text: "" + t(checkForNA$1(connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.natureOfWork))
|
|
32334
|
-
}))), (data === null || data === void 0 ? void 0 : (_data$
|
|
32287
|
+
}))), (data === null || data === void 0 ? void 0 : (_data$WaterConnection71 = data.WaterConnection) === null || _data$WaterConnection71 === void 0 ? void 0 : (_data$WaterConnection72 = _data$WaterConnection71[0]) === null || _data$WaterConnection72 === void 0 ? void 0 : (_data$WaterConnection73 = _data$WaterConnection72.connectionHolders) === null || _data$WaterConnection73 === void 0 ? void 0 : _data$WaterConnection73.length) > 0 || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect66 = data.SewerageConnections) === null || _data$SewerageConnect66 === void 0 ? void 0 : (_data$SewerageConnect67 = _data$SewerageConnect66[0]) === null || _data$SewerageConnect67 === void 0 ? void 0 : (_data$SewerageConnect68 = _data$SewerageConnect67.connectionHolders) === null || _data$SewerageConnect68 === void 0 ? void 0 : _data$SewerageConnect68.length) > 0 ? /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
32335
32288
|
styles: {
|
|
32336
32289
|
fontSize: "28px"
|
|
32337
32290
|
}
|
|
32338
32291
|
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32339
32292
|
label: t("WS_OWN_DETAIL_MOBILE_NO_LABEL"),
|
|
32340
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
32293
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection74 = data.WaterConnection) === null || _data$WaterConnection74 === void 0 ? void 0 : (_data$WaterConnection75 = _data$WaterConnection74[0]) === null || _data$WaterConnection75 === void 0 ? void 0 : (_data$WaterConnection76 = _data$WaterConnection75.connectionHolders) === null || _data$WaterConnection76 === void 0 ? void 0 : (_data$WaterConnection77 = _data$WaterConnection76[0]) === null || _data$WaterConnection77 === void 0 ? void 0 : _data$WaterConnection77.mobileNumber) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect69 = data.SewerageConnections) === null || _data$SewerageConnect69 === void 0 ? void 0 : (_data$SewerageConnect70 = _data$SewerageConnect69[0]) === null || _data$SewerageConnect70 === void 0 ? void 0 : (_data$SewerageConnect71 = _data$SewerageConnect70.connectionHolders) === null || _data$SewerageConnect71 === void 0 ? void 0 : (_data$SewerageConnect72 = _data$SewerageConnect71[0]) === null || _data$SewerageConnect72 === void 0 ? void 0 : _data$SewerageConnect72.mobileNumber),
|
|
32341
32294
|
textStyle: {
|
|
32342
32295
|
whiteSpace: "pre"
|
|
32343
32296
|
},
|
|
32344
32297
|
privacy: {
|
|
32345
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
32298
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection78 = data.WaterConnection) === null || _data$WaterConnection78 === void 0 ? void 0 : (_data$WaterConnection79 = _data$WaterConnection78[0]) === null || _data$WaterConnection79 === void 0 ? void 0 : (_data$WaterConnection80 = _data$WaterConnection79.connectionHolders) === null || _data$WaterConnection80 === void 0 ? void 0 : (_data$WaterConnection81 = _data$WaterConnection80[0]) === null || _data$WaterConnection81 === void 0 ? void 0 : _data$WaterConnection81.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect73 = data.SewerageConnections) === null || _data$SewerageConnect73 === void 0 ? void 0 : (_data$SewerageConnect74 = _data$SewerageConnect73[0]) === null || _data$SewerageConnect74 === void 0 ? void 0 : (_data$SewerageConnect75 = _data$SewerageConnect74.connectionHolders) === null || _data$SewerageConnect75 === void 0 ? void 0 : (_data$SewerageConnect76 = _data$SewerageConnect75[0]) === null || _data$SewerageConnect76 === void 0 ? void 0 : _data$SewerageConnect76.uuid,
|
|
32346
32299
|
fieldName: "connectionHoldersMobileNumber",
|
|
32347
32300
|
model: "WnSConnectionOwner",
|
|
32348
32301
|
showValue: false,
|
|
@@ -32359,18 +32312,18 @@ const WSApplicationDetails = () => {
|
|
|
32359
32312
|
}
|
|
32360
32313
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32361
32314
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
32362
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
32315
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection82 = data.WaterConnection) === null || _data$WaterConnection82 === void 0 ? void 0 : (_data$WaterConnection83 = _data$WaterConnection82[0]) === null || _data$WaterConnection83 === void 0 ? void 0 : (_data$WaterConnection84 = _data$WaterConnection83.connectionHolders) === null || _data$WaterConnection84 === void 0 ? void 0 : (_data$WaterConnection85 = _data$WaterConnection84[0]) === null || _data$WaterConnection85 === void 0 ? void 0 : _data$WaterConnection85.name) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect77 = data.SewerageConnections) === null || _data$SewerageConnect77 === void 0 ? void 0 : (_data$SewerageConnect78 = _data$SewerageConnect77[0]) === null || _data$SewerageConnect78 === void 0 ? void 0 : (_data$SewerageConnect79 = _data$SewerageConnect78.connectionHolders) === null || _data$SewerageConnect79 === void 0 ? void 0 : (_data$SewerageConnect80 = _data$SewerageConnect79[0]) === null || _data$SewerageConnect80 === void 0 ? void 0 : _data$SewerageConnect80.name),
|
|
32363
32316
|
textStyle: {
|
|
32364
32317
|
whiteSpace: "pre"
|
|
32365
32318
|
}
|
|
32366
32319
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32367
32320
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
32368
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
32321
|
+
text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection86 = data.WaterConnection) === null || _data$WaterConnection86 === void 0 ? void 0 : (_data$WaterConnection87 = _data$WaterConnection86[0]) === null || _data$WaterConnection87 === void 0 ? void 0 : (_data$WaterConnection88 = _data$WaterConnection87.connectionHolders) === null || _data$WaterConnection88 === void 0 ? void 0 : (_data$WaterConnection89 = _data$WaterConnection88[0]) === null || _data$WaterConnection89 === void 0 ? void 0 : _data$WaterConnection89.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect81 = data.SewerageConnections) === null || _data$SewerageConnect81 === void 0 ? void 0 : (_data$SewerageConnect82 = _data$SewerageConnect81[0]) === null || _data$SewerageConnect82 === void 0 ? void 0 : (_data$SewerageConnect83 = _data$SewerageConnect82.connectionHolders) === null || _data$SewerageConnect83 === void 0 ? void 0 : (_data$SewerageConnect84 = _data$SewerageConnect83[0]) === null || _data$SewerageConnect84 === void 0 ? void 0 : _data$SewerageConnect84.gender)),
|
|
32369
32322
|
textStyle: {
|
|
32370
32323
|
whiteSpace: "pre"
|
|
32371
32324
|
},
|
|
32372
32325
|
privacy: {
|
|
32373
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
32326
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection90 = data.WaterConnection) === null || _data$WaterConnection90 === void 0 ? void 0 : (_data$WaterConnection91 = _data$WaterConnection90[0]) === null || _data$WaterConnection91 === void 0 ? void 0 : (_data$WaterConnection92 = _data$WaterConnection91.connectionHolders) === null || _data$WaterConnection92 === void 0 ? void 0 : (_data$WaterConnection93 = _data$WaterConnection92[0]) === null || _data$WaterConnection93 === void 0 ? void 0 : _data$WaterConnection93.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect85 = data.SewerageConnections) === null || _data$SewerageConnect85 === void 0 ? void 0 : (_data$SewerageConnect86 = _data$SewerageConnect85[0]) === null || _data$SewerageConnect86 === void 0 ? void 0 : (_data$SewerageConnect87 = _data$SewerageConnect86.connectionHolders) === null || _data$SewerageConnect87 === void 0 ? void 0 : (_data$SewerageConnect88 = _data$SewerageConnect87[0]) === null || _data$SewerageConnect88 === void 0 ? void 0 : _data$SewerageConnect88.uuid,
|
|
32374
32327
|
fieldName: "gender",
|
|
32375
32328
|
model: "WnSConnectionOwner",
|
|
32376
32329
|
showValue: false,
|
|
@@ -32387,12 +32340,12 @@ const WSApplicationDetails = () => {
|
|
|
32387
32340
|
}
|
|
32388
32341
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32389
32342
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
32390
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
32343
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection94 = data.WaterConnection) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94[0]) === null || _data$WaterConnection95 === void 0 ? void 0 : (_data$WaterConnection96 = _data$WaterConnection95.connectionHolders) === null || _data$WaterConnection96 === void 0 ? void 0 : (_data$WaterConnection97 = _data$WaterConnection96[0]) === null || _data$WaterConnection97 === void 0 ? void 0 : _data$WaterConnection97.fatherOrHusbandName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect89 = data.SewerageConnections) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89[0]) === null || _data$SewerageConnect90 === void 0 ? void 0 : (_data$SewerageConnect91 = _data$SewerageConnect90.connectionHolders) === null || _data$SewerageConnect91 === void 0 ? void 0 : (_data$SewerageConnect92 = _data$SewerageConnect91[0]) === null || _data$SewerageConnect92 === void 0 ? void 0 : _data$SewerageConnect92.fatherOrHusbandName) || t("CS_NA"),
|
|
32391
32344
|
textStyle: {
|
|
32392
32345
|
whiteSpace: "pre"
|
|
32393
32346
|
},
|
|
32394
32347
|
privacy: {
|
|
32395
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
32348
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection98 = data.WaterConnection) === null || _data$WaterConnection98 === void 0 ? void 0 : (_data$WaterConnection99 = _data$WaterConnection98[0]) === null || _data$WaterConnection99 === void 0 ? void 0 : (_data$WaterConnection100 = _data$WaterConnection99.connectionHolders) === null || _data$WaterConnection100 === void 0 ? void 0 : (_data$WaterConnection101 = _data$WaterConnection100[0]) === null || _data$WaterConnection101 === void 0 ? void 0 : _data$WaterConnection101.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect93 = data.SewerageConnections) === null || _data$SewerageConnect93 === void 0 ? void 0 : (_data$SewerageConnect94 = _data$SewerageConnect93[0]) === null || _data$SewerageConnect94 === void 0 ? void 0 : (_data$SewerageConnect95 = _data$SewerageConnect94.connectionHolders) === null || _data$SewerageConnect95 === void 0 ? void 0 : (_data$SewerageConnect96 = _data$SewerageConnect95[0]) === null || _data$SewerageConnect96 === void 0 ? void 0 : _data$SewerageConnect96.uuid,
|
|
32396
32349
|
fieldName: "fatherOrHusbandName",
|
|
32397
32350
|
model: "WnSConnectionOwner",
|
|
32398
32351
|
showValue: false,
|
|
@@ -32409,12 +32362,12 @@ const WSApplicationDetails = () => {
|
|
|
32409
32362
|
}
|
|
32410
32363
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32411
32364
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
32412
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
32365
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection102 = data.WaterConnection) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102[0]) === null || _data$WaterConnection103 === void 0 ? void 0 : (_data$WaterConnection104 = _data$WaterConnection103.connectionHolders) === null || _data$WaterConnection104 === void 0 ? void 0 : (_data$WaterConnection105 = _data$WaterConnection104[0]) === null || _data$WaterConnection105 === void 0 ? void 0 : _data$WaterConnection105.relationship) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect97 = data.SewerageConnections) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97[0]) === null || _data$SewerageConnect98 === void 0 ? void 0 : (_data$SewerageConnect99 = _data$SewerageConnect98.connectionHolders) === null || _data$SewerageConnect99 === void 0 ? void 0 : (_data$SewerageConnect100 = _data$SewerageConnect99[0]) === null || _data$SewerageConnect100 === void 0 ? void 0 : _data$SewerageConnect100.relationship) || t("CS_NA"),
|
|
32413
32366
|
textStyle: {
|
|
32414
32367
|
whiteSpace: "pre"
|
|
32415
32368
|
},
|
|
32416
32369
|
privacy: {
|
|
32417
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
32370
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection106 = data.WaterConnection) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106[0]) === null || _data$WaterConnection107 === void 0 ? void 0 : (_data$WaterConnection108 = _data$WaterConnection107.connectionHolders) === null || _data$WaterConnection108 === void 0 ? void 0 : (_data$WaterConnection109 = _data$WaterConnection108[0]) === null || _data$WaterConnection109 === void 0 ? void 0 : _data$WaterConnection109.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect101 = data.SewerageConnections) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101[0]) === null || _data$SewerageConnect102 === void 0 ? void 0 : (_data$SewerageConnect103 = _data$SewerageConnect102.connectionHolders) === null || _data$SewerageConnect103 === void 0 ? void 0 : (_data$SewerageConnect104 = _data$SewerageConnect103[0]) === null || _data$SewerageConnect104 === void 0 ? void 0 : _data$SewerageConnect104.uuid,
|
|
32418
32371
|
fieldName: "relationship",
|
|
32419
32372
|
model: "WnSConnection",
|
|
32420
32373
|
showValue: false,
|
|
@@ -32431,9 +32384,9 @@ const WSApplicationDetails = () => {
|
|
|
32431
32384
|
}
|
|
32432
32385
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32433
32386
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
32434
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
32387
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection110 = data.WaterConnection) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110[0]) === null || _data$WaterConnection111 === void 0 ? void 0 : (_data$WaterConnection112 = _data$WaterConnection111.connectionHolders) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112[0]) === null || _data$WaterConnection113 === void 0 ? void 0 : _data$WaterConnection113.correspondenceAddress) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect105 = data.SewerageConnections) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105[0]) === null || _data$SewerageConnect106 === void 0 ? void 0 : (_data$SewerageConnect107 = _data$SewerageConnect106.connectionHolders) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107[0]) === null || _data$SewerageConnect108 === void 0 ? void 0 : _data$SewerageConnect108.correspondenceAddress) || t("CS_NA"),
|
|
32435
32388
|
privacy: {
|
|
32436
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
32389
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection114 = data.WaterConnection) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114[0]) === null || _data$WaterConnection115 === void 0 ? void 0 : (_data$WaterConnection116 = _data$WaterConnection115.connectionHolders) === null || _data$WaterConnection116 === void 0 ? void 0 : (_data$WaterConnection117 = _data$WaterConnection116[0]) === null || _data$WaterConnection117 === void 0 ? void 0 : _data$WaterConnection117.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect109 = data.SewerageConnections) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109[0]) === null || _data$SewerageConnect110 === void 0 ? void 0 : (_data$SewerageConnect111 = _data$SewerageConnect110.connectionHolders) === null || _data$SewerageConnect111 === void 0 ? void 0 : (_data$SewerageConnect112 = _data$SewerageConnect111[0]) === null || _data$SewerageConnect112 === void 0 ? void 0 : _data$SewerageConnect112.uuid,
|
|
32437
32390
|
fieldName: "correspondenceAddress",
|
|
32438
32391
|
model: "WnSConnectionOwner",
|
|
32439
32392
|
showValue: false,
|
|
@@ -32450,12 +32403,12 @@ const WSApplicationDetails = () => {
|
|
|
32450
32403
|
}
|
|
32451
32404
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32452
32405
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
32453
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
32406
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection118 = data.WaterConnection) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118[0]) === null || _data$WaterConnection119 === void 0 ? void 0 : (_data$WaterConnection120 = _data$WaterConnection119.connectionHolders) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120[0]) === null || _data$WaterConnection121 === void 0 ? void 0 : _data$WaterConnection121.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect113 = data.SewerageConnections) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113[0]) === null || _data$SewerageConnect114 === void 0 ? void 0 : (_data$SewerageConnect115 = _data$SewerageConnect114.connectionHolders) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115[0]) === null || _data$SewerageConnect116 === void 0 ? void 0 : _data$SewerageConnect116.emailId) || "NA",
|
|
32454
32407
|
textStyle: {
|
|
32455
32408
|
whiteSpace: "pre"
|
|
32456
32409
|
},
|
|
32457
32410
|
privacy: {
|
|
32458
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
32411
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection122 = data.WaterConnection) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122[0]) === null || _data$WaterConnection123 === void 0 ? void 0 : (_data$WaterConnection124 = _data$WaterConnection123.connectionHolders) === null || _data$WaterConnection124 === void 0 ? void 0 : (_data$WaterConnection125 = _data$WaterConnection124[0]) === null || _data$WaterConnection125 === void 0 ? void 0 : _data$WaterConnection125.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect117 = data.SewerageConnections) === null || _data$SewerageConnect117 === void 0 ? void 0 : (_data$SewerageConnect118 = _data$SewerageConnect117[0]) === null || _data$SewerageConnect118 === void 0 ? void 0 : (_data$SewerageConnect119 = _data$SewerageConnect118.connectionHolders) === null || _data$SewerageConnect119 === void 0 ? void 0 : (_data$SewerageConnect120 = _data$SewerageConnect119[0]) === null || _data$SewerageConnect120 === void 0 ? void 0 : _data$SewerageConnect120.uuid,
|
|
32459
32412
|
fieldName: "connectionHoldersEmailId",
|
|
32460
32413
|
model: "WnSConnectionOwner",
|
|
32461
32414
|
showValue: false,
|
|
@@ -32476,7 +32429,7 @@ const WSApplicationDetails = () => {
|
|
|
32476
32429
|
}
|
|
32477
32430
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
32478
32431
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
32479
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
32432
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection126 = data.WaterConnection) === null || _data$WaterConnection126 === void 0 ? void 0 : (_data$WaterConnection127 = _data$WaterConnection126[0]) === null || _data$WaterConnection127 === void 0 ? void 0 : _data$WaterConnection127.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect121 = data.SewerageConnections) === null || _data$SewerageConnect121 === void 0 ? void 0 : (_data$SewerageConnect122 = _data$SewerageConnect121[0]) === null || _data$SewerageConnect122 === void 0 ? void 0 : _data$SewerageConnect122.propertyId),
|
|
32480
32433
|
textStyle: {
|
|
32481
32434
|
wordBreak: "break-word"
|
|
32482
32435
|
}
|
|
@@ -32517,7 +32470,7 @@ const WSApplicationDetails = () => {
|
|
|
32517
32470
|
}
|
|
32518
32471
|
}
|
|
32519
32472
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
32520
|
-
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
32473
|
+
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection128 = data.WaterConnection) === null || _data$WaterConnection128 === void 0 ? void 0 : (_data$WaterConnection129 = _data$WaterConnection128[0]) === null || _data$WaterConnection129 === void 0 ? void 0 : _data$WaterConnection129.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect123 = data.SewerageConnections) === null || _data$SewerageConnect123 === void 0 ? void 0 : (_data$SewerageConnect124 = _data$SewerageConnect123[0]) === null || _data$SewerageConnect124 === void 0 ? void 0 : _data$SewerageConnect124.propertyId)) + "&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection130 = data.WaterConnection) === null || _data$WaterConnection130 === void 0 ? void 0 : (_data$WaterConnection131 = _data$WaterConnection130[0]) === null || _data$WaterConnection131 === void 0 ? void 0 : _data$WaterConnection131.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect125 = data.SewerageConnections) === null || _data$SewerageConnect125 === void 0 ? void 0 : (_data$SewerageConnect126 = _data$SewerageConnect125[0]) === null || _data$SewerageConnect126 === void 0 ? void 0 : _data$SewerageConnect126.tenantId))
|
|
32521
32474
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
32522
32475
|
style: {
|
|
32523
32476
|
textAlign: "left"
|
|
@@ -32671,15 +32624,15 @@ const WSApplicationDetails = () => {
|
|
|
32671
32624
|
styles: {
|
|
32672
32625
|
fontSize: "28px"
|
|
32673
32626
|
}
|
|
32674
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
32675
|
-
var _doc$documentType, _data$
|
|
32627
|
+
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection132 = data.WaterConnection) === null || _data$WaterConnection132 === void 0 ? void 0 : (_data$WaterConnection133 = _data$WaterConnection132[0]) === null || _data$WaterConnection133 === void 0 ? void 0 : _data$WaterConnection133.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection134 = data.WaterConnection) === null || _data$WaterConnection134 === void 0 ? void 0 : (_data$WaterConnection135 = _data$WaterConnection134[0]) === null || _data$WaterConnection135 === void 0 ? void 0 : _data$WaterConnection135.documents.map((doc, index) => {
|
|
32628
|
+
var _doc$documentType, _data$WaterConnection136, _data$WaterConnection137, _data$WaterConnection138, _data$WaterConnection139;
|
|
32676
32629
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
32677
32630
|
key: "doc-" + index
|
|
32678
32631
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
32679
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
32632
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : (_data$WaterConnection137 = _data$WaterConnection136[0]) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137.documents,
|
|
32680
32633
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
32681
32634
|
index: index
|
|
32682
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
32635
|
+
}), (data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : (_data$WaterConnection139 = _data$WaterConnection138[0]) === null || _data$WaterConnection139 === void 0 ? void 0 : _data$WaterConnection139.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
32683
32636
|
style: {
|
|
32684
32637
|
color: "#cccccc",
|
|
32685
32638
|
backgroundColor: "#cccccc",
|
|
@@ -32688,15 +32641,15 @@ const WSApplicationDetails = () => {
|
|
|
32688
32641
|
marginBottom: "20px"
|
|
32689
32642
|
}
|
|
32690
32643
|
}) : null)));
|
|
32691
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
32692
|
-
var _doc$documentType2, _data$
|
|
32644
|
+
})), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect127 = data.SewerageConnections) === null || _data$SewerageConnect127 === void 0 ? void 0 : (_data$SewerageConnect128 = _data$SewerageConnect127[0]) === null || _data$SewerageConnect128 === void 0 ? void 0 : _data$SewerageConnect128.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect129 = data.SewerageConnections) === null || _data$SewerageConnect129 === void 0 ? void 0 : (_data$SewerageConnect130 = _data$SewerageConnect129[0]) === null || _data$SewerageConnect130 === void 0 ? void 0 : _data$SewerageConnect130.documents.map((doc, index) => {
|
|
32645
|
+
var _doc$documentType2, _data$SewerageConnect131, _data$SewerageConnect132, _data$SewerageConnect133, _data$SewerageConnect134;
|
|
32693
32646
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
32694
32647
|
key: "doc-" + index
|
|
32695
32648
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
32696
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
32649
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : (_data$SewerageConnect132 = _data$SewerageConnect131[0]) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132.documents,
|
|
32697
32650
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
32698
32651
|
index: index
|
|
32699
|
-
}), (data === null || data === void 0 ? void 0 : (_data$
|
|
32652
|
+
}), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : (_data$SewerageConnect134 = _data$SewerageConnect133[0]) === null || _data$SewerageConnect134 === void 0 ? void 0 : _data$SewerageConnect134.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
32700
32653
|
style: {
|
|
32701
32654
|
color: "white",
|
|
32702
32655
|
backgroundColor: "white",
|
|
@@ -32705,36 +32658,37 @@ const WSApplicationDetails = () => {
|
|
|
32705
32658
|
marginBottom: "20px"
|
|
32706
32659
|
}
|
|
32707
32660
|
}) : null)));
|
|
32708
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
32661
|
+
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection140 = data.WaterConnection) === null || _data$WaterConnection140 === void 0 ? void 0 : (_data$WaterConnection141 = _data$WaterConnection140[0]) === null || _data$WaterConnection141 === void 0 ? void 0 : _data$WaterConnection141.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection142 = data.WaterConnection) === null || _data$WaterConnection142 === void 0 ? void 0 : (_data$WaterConnection143 = _data$WaterConnection142[0]) === null || _data$WaterConnection143 === void 0 ? void 0 : _data$WaterConnection143.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection144 = data.WaterConnection) === null || _data$WaterConnection144 === void 0 ? void 0 : (_data$WaterConnection145 = _data$WaterConnection144[0]) === null || _data$WaterConnection145 === void 0 ? void 0 : _data$WaterConnection145.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect135 = data.SewerageConnections) === null || _data$SewerageConnect135 === void 0 ? void 0 : (_data$SewerageConnect136 = _data$SewerageConnect135[0]) === null || _data$SewerageConnect136 === void 0 ? void 0 : _data$SewerageConnect136.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect137 = data.SewerageConnections) === null || _data$SewerageConnect137 === void 0 ? void 0 : (_data$SewerageConnect138 = _data$SewerageConnect137[0]) === null || _data$SewerageConnect138 === void 0 ? void 0 : _data$SewerageConnect138.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect139 = data.SewerageConnections) === null || _data$SewerageConnect139 === void 0 ? void 0 : (_data$SewerageConnect140 = _data$SewerageConnect139[0]) === null || _data$SewerageConnect140 === void 0 ? void 0 : _data$SewerageConnect140.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
32709
32662
|
to: {
|
|
32710
|
-
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService) + "/" +
|
|
32663
|
+
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService) + "/" + stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+"),
|
|
32664
|
+
search: "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : (_data$WaterConnection150 = _data$WaterConnection149.connectionHolders) === null || _data$WaterConnection150 === void 0 ? void 0 : _data$WaterConnection150.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : (_data$SewerageConnect145 = _data$SewerageConnect144.connectionHolders) === null || _data$SewerageConnect145 === void 0 ? void 0 : _data$SewerageConnect145.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties8 = PTData.Properties) === null || _PTData$Properties8 === void 0 ? void 0 : (_PTData$Properties8$ = _PTData$Properties8[0]) === null || _PTData$Properties8$ === void 0 ? void 0 : (_PTData$Properties8$$ = _PTData$Properties8$.owners) === null || _PTData$Properties8$$ === void 0 ? void 0 : _PTData$Properties8$$.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false) + "&consumerCode=" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode),
|
|
32711
32665
|
state: {}
|
|
32712
32666
|
}
|
|
32713
32667
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
32714
32668
|
label: t("MAKE_PAYMENT")
|
|
32715
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
32669
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection151 = data.WaterConnection) !== null && _data$WaterConnection151 !== void 0 && (_data$WaterConnection152 = _data$WaterConnection151[0]) !== null && _data$WaterConnection152 !== void 0 && _data$WaterConnection152.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection153 = data.WaterConnection) !== null && _data$WaterConnection153 !== void 0 && (_data$WaterConnection154 = _data$WaterConnection153[0]) !== null && _data$WaterConnection154 !== void 0 && _data$WaterConnection154.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect146 = data.SewerageConnections) !== null && _data$SewerageConnect146 !== void 0 && (_data$SewerageConnect147 = _data$SewerageConnect146[0]) !== null && _data$SewerageConnect147 !== void 0 && _data$SewerageConnect147.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect148 = data.SewerageConnections) !== null && _data$SewerageConnect148 !== void 0 && (_data$SewerageConnect149 = _data$SewerageConnect148[0]) !== null && _data$SewerageConnect149 !== void 0 && _data$SewerageConnect149.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
32716
32670
|
to: {
|
|
32717
|
-
pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
32671
|
+
pathname: "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection155 = data.WaterConnection) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155[0]) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect150 = data.SewerageConnections) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150[0]) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.tenantId)),
|
|
32718
32672
|
state: {
|
|
32719
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
32673
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection157 = data.WaterConnection) === null || _data$WaterConnection157 === void 0 ? void 0 : (_data$WaterConnection158 = _data$WaterConnection157[0]) === null || _data$WaterConnection158 === void 0 ? void 0 : _data$WaterConnection158.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect152 = data.SewerageConnections) === null || _data$SewerageConnect152 === void 0 ? void 0 : (_data$SewerageConnect153 = _data$SewerageConnect152[0]) === null || _data$SewerageConnect153 === void 0 ? void 0 : _data$SewerageConnect153.applicationNo))
|
|
32720
32674
|
}
|
|
32721
32675
|
}
|
|
32722
32676
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
32723
32677
|
label: t("COMMON_EDIT")
|
|
32724
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
32678
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection159 = data.WaterConnection) !== null && _data$WaterConnection159 !== void 0 && (_data$WaterConnection160 = _data$WaterConnection159[0]) !== null && _data$WaterConnection160 !== void 0 && _data$WaterConnection160.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection161 = data.WaterConnection) !== null && _data$WaterConnection161 !== void 0 && (_data$WaterConnection162 = _data$WaterConnection161[0]) !== null && _data$WaterConnection162 !== void 0 && _data$WaterConnection162.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect154 = data.SewerageConnections) !== null && _data$SewerageConnect154 !== void 0 && (_data$SewerageConnect155 = _data$SewerageConnect154[0]) !== null && _data$SewerageConnect155 !== void 0 && _data$SewerageConnect155.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect156 = data.SewerageConnections) !== null && _data$SewerageConnect156 !== void 0 && (_data$SewerageConnect157 = _data$SewerageConnect156[0]) !== null && _data$SewerageConnect157 !== void 0 && _data$SewerageConnect157.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
32725
32679
|
to: {
|
|
32726
32680
|
pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
|
|
32727
32681
|
state: {
|
|
32728
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
32682
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection163 = data.WaterConnection) === null || _data$WaterConnection163 === void 0 ? void 0 : (_data$WaterConnection164 = _data$WaterConnection163[0]) === null || _data$WaterConnection164 === void 0 ? void 0 : _data$WaterConnection164.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect158 = data.SewerageConnections) === null || _data$SewerageConnect158 === void 0 ? void 0 : (_data$SewerageConnect159 = _data$SewerageConnect158[0]) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159.applicationNo))
|
|
32729
32683
|
}
|
|
32730
32684
|
}
|
|
32731
32685
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
32732
32686
|
label: t("RESUBMIT_APPLICATION"),
|
|
32733
32687
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
32734
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
32688
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect160 = data.SewerageConnections) === null || _data$SewerageConnect160 === void 0 ? void 0 : _data$SewerageConnect160[0],
|
|
32735
32689
|
serviceType: "SEWERAGE",
|
|
32736
32690
|
WSDisconnectionForm: {
|
|
32737
|
-
type: data !== null && data !== void 0 && (_data$
|
|
32691
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect161 = data.SewerageConnections) !== null && _data$SewerageConnect161 !== void 0 && (_data$SewerageConnect162 = _data$SewerageConnect161[0]) !== null && _data$SewerageConnect162 !== void 0 && _data$SewerageConnect162.isDisconnectionTemporary ? {
|
|
32738
32692
|
code: "type",
|
|
32739
32693
|
value: {
|
|
32740
32694
|
name: "Temporary",
|
|
@@ -32751,18 +32705,18 @@ const WSApplicationDetails = () => {
|
|
|
32751
32705
|
code: "Permanent"
|
|
32752
32706
|
}
|
|
32753
32707
|
},
|
|
32754
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
32708
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect163 = data.SewerageConnections) === null || _data$SewerageConnect163 === void 0 ? void 0 : (_data$SewerageConnect164 = _data$SewerageConnect163[0]) === null || _data$SewerageConnect164 === void 0 ? void 0 : _data$SewerageConnect164.dateEffectiveFrom, true),
|
|
32755
32709
|
reason: {
|
|
32756
32710
|
code: "reason",
|
|
32757
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
32711
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect165 = data.SewerageConnections) === null || _data$SewerageConnect165 === void 0 ? void 0 : (_data$SewerageConnect166 = _data$SewerageConnect165[0]) === null || _data$SewerageConnect166 === void 0 ? void 0 : _data$SewerageConnect166.disconnectionReason
|
|
32758
32712
|
},
|
|
32759
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
32713
|
+
documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect167 = data.SewerageConnections) === null || _data$SewerageConnect167 === void 0 ? void 0 : (_data$SewerageConnect168 = _data$SewerageConnect167[0]) === null || _data$SewerageConnect168 === void 0 ? void 0 : _data$SewerageConnect168.documents
|
|
32760
32714
|
}
|
|
32761
32715
|
} : {
|
|
32762
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
32716
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection165 = data.WaterConnection) === null || _data$WaterConnection165 === void 0 ? void 0 : _data$WaterConnection165[0],
|
|
32763
32717
|
serviceType: "WATER",
|
|
32764
32718
|
WSDisconnectionForm: {
|
|
32765
|
-
type: data !== null && data !== void 0 && (_data$
|
|
32719
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection166 = data.WaterConnection) !== null && _data$WaterConnection166 !== void 0 && (_data$WaterConnection167 = _data$WaterConnection166[0]) !== null && _data$WaterConnection167 !== void 0 && _data$WaterConnection167.isDisconnectionTemporary ? {
|
|
32766
32720
|
code: "type",
|
|
32767
32721
|
value: {
|
|
32768
32722
|
name: "Temporary",
|
|
@@ -32779,12 +32733,12 @@ const WSApplicationDetails = () => {
|
|
|
32779
32733
|
code: "Permanent"
|
|
32780
32734
|
}
|
|
32781
32735
|
},
|
|
32782
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
32736
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection168 = data.WaterConnection) === null || _data$WaterConnection168 === void 0 ? void 0 : (_data$WaterConnection169 = _data$WaterConnection168[0]) === null || _data$WaterConnection169 === void 0 ? void 0 : _data$WaterConnection169.dateEffectiveFrom, true),
|
|
32783
32737
|
reason: {
|
|
32784
32738
|
code: "reason",
|
|
32785
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
32739
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection170 = data.WaterConnection) === null || _data$WaterConnection170 === void 0 ? void 0 : (_data$WaterConnection171 = _data$WaterConnection170[0]) === null || _data$WaterConnection171 === void 0 ? void 0 : _data$WaterConnection171.disconnectionReason
|
|
32786
32740
|
},
|
|
32787
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
32741
|
+
documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection172 = data.WaterConnection) === null || _data$WaterConnection172 === void 0 ? void 0 : (_data$WaterConnection173 = _data$WaterConnection172[0]) === null || _data$WaterConnection173 === void 0 ? void 0 : _data$WaterConnection173.documents
|
|
32788
32742
|
}
|
|
32789
32743
|
})
|
|
32790
32744
|
})) : null)))));
|
|
@@ -33127,7 +33081,7 @@ const getConnectionDetailsPDF = function (application, property, tenantInfo, t)
|
|
|
33127
33081
|
};
|
|
33128
33082
|
|
|
33129
33083
|
const ConnectionDetails$5 = () => {
|
|
33130
|
-
var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Sewer, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2,
|
|
33084
|
+
var _Digit$SessionStorage, _user$info, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection, _data$WaterConnection2, _Object$keys, _connectionData$Water, _connectionData$Sewer, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _state, _state$applicationNo, _state2, _state5, _state6, _state6$applicationTy, _state7, _state8, _state9, _state0, _state0$applicationTy, _state1, _state10, _state11, _state12, _state12$applicationT, _state13, _state14, _state15, _state16, _state17, _state17$applicationT, _state18, _state18$waterSource, _state18$waterSource$, _state19, _state20, _state20$waterSource, _state20$waterSource$, _state21, _state22, _state23, _state24, _state24$additionalDe, _state25, _state25$applicationT, _state26, _state26$additionalDe, _state26$additionalDe2, _state27, _state27$additionalDe, _state27$additionalDe2, _state28, _state28$additionalDe, _state29, _state29$additionalDe, _state30, _state30$additionalDe, _state30$additionalDe2, _state31, _state31$additionalDe, _state32, _state33, _state34, _state35, _state35$property, _state35$property$own, _PTData$Properties2, _PTData$Properties2$, _PTData$Properties3, _PTData$Properties3$, _PTData$Properties3$$, _PTData$Properties3$$2, _PTData$Properties4, _PTData$Properties4$, _user$info2, _user$info2$userName, _user$info3, _user$info4, _state36, _state36$additionalDe, _state36$additionalDe2, _state37, _state37$additionalDe, _state37$additionalDe2, _state38, _state38$additionalDe, _state39, _state39$additionalDe, _state40, _state40$additionalDe, _state41, _state41$additionalDe, _state42, _state42$additionalDe, _state43, _state44, _state45, _state46, _state46$connectionHo, _state46$connectionHo2, _data$WaterConnection16, _data$WaterConnection17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect0, _data$SewerageConnect1, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection20, _data$WaterConnection21, _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$WaterConnection24, _data$WaterConnection25, _data$WaterConnection26, _data$WaterConnection27, _data$SewerageConnect16, _data$SewerageConnect17, _data$SewerageConnect18, _data$SewerageConnect19, _data$WaterConnection28, _data$WaterConnection29, _data$WaterConnection30, _data$WaterConnection31, _data$SewerageConnect20, _data$SewerageConnect21, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection32, _data$WaterConnection33, _data$WaterConnection34, _data$WaterConnection35, _data$SewerageConnect24, _data$SewerageConnect25, _data$SewerageConnect26, _data$SewerageConnect27, _data$WaterConnection36, _data$WaterConnection37, _data$WaterConnection38, _data$WaterConnection39, _data$SewerageConnect28, _data$SewerageConnect29, _data$SewerageConnect30, _data$SewerageConnect31, _data$WaterConnection40, _data$WaterConnection41, _data$WaterConnection42, _data$WaterConnection43, _data$SewerageConnect32, _data$SewerageConnect33, _data$SewerageConnect34, _data$SewerageConnect35, _data$WaterConnection44, _data$WaterConnection45, _data$WaterConnection46, _data$WaterConnection47, _data$SewerageConnect36, _data$SewerageConnect37, _data$SewerageConnect38, _data$SewerageConnect39, _data$WaterConnection48, _data$WaterConnection49, _data$WaterConnection50, _data$WaterConnection51, _data$SewerageConnect40, _data$SewerageConnect41, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection52, _data$WaterConnection53, _data$WaterConnection54, _data$WaterConnection55, _data$SewerageConnect44, _data$SewerageConnect45, _data$SewerageConnect46, _data$SewerageConnect47, _state47, _state47$additionalDe, _state48, _state48$additionalDe, _state49, _state49$additionalDe, _state50, _state50$additionalDe, _state51, _state51$additionalDe, _state52, _state53, _state56, _state57, _state58, _state59, _state60, _state61, _paymentDetails$data17, _paymentDetails$data18;
|
|
33131
33085
|
const _useTranslation = reactI18next.useTranslation(),
|
|
33132
33086
|
t = _useTranslation.t;
|
|
33133
33087
|
const menuRef = React.useRef();
|
|
@@ -33370,6 +33324,11 @@ const ConnectionDetails$5 = () => {
|
|
|
33370
33324
|
function onActionSelectRestoration() {
|
|
33371
33325
|
getRestorationButton();
|
|
33372
33326
|
}
|
|
33327
|
+
function onActionSelectMutation() {
|
|
33328
|
+
var _state3, _state4;
|
|
33329
|
+
let pathname = "/digit-ui/citizen/ws/mutation-application?applicationNumber=" + ((_state3 = state) === null || _state3 === void 0 ? void 0 : _state3.connectionNo) + "&service=" + (isSW ? "SEWERAGE" : "WATER") + "&propertyId=" + ((_state4 = state) === null || _state4 === void 0 ? void 0 : _state4.propertyId) + "&from=WS_COMMON_CONNECTION_DETAIL";
|
|
33330
|
+
history.push(pathname);
|
|
33331
|
+
}
|
|
33373
33332
|
const Close = () => /*#__PURE__*/React__default.createElement("svg", {
|
|
33374
33333
|
xmlns: "http://www.w3.org/2000/svg",
|
|
33375
33334
|
viewBox: "0 0 24 24",
|
|
@@ -33397,8 +33356,8 @@ const ConnectionDetails$5 = () => {
|
|
|
33397
33356
|
if (isLoading || isPTLoading) {
|
|
33398
33357
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
33399
33358
|
}
|
|
33400
|
-
sessionStorage.setItem("ApplicationNoState", (
|
|
33401
|
-
let serviceType = (
|
|
33359
|
+
sessionStorage.setItem("ApplicationNoState", (_state5 = state) === null || _state5 === void 0 ? void 0 : _state5.applicationNo);
|
|
33360
|
+
let serviceType = (_state6 = state) !== null && _state6 !== void 0 && (_state6$applicationTy = _state6.applicationType) !== null && _state6$applicationTy !== void 0 && _state6$applicationTy.includes("WATER") ? "WATER" : "SEWERAGE";
|
|
33402
33361
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
33403
33362
|
className: "cardHeaderWithOptions",
|
|
33404
33363
|
style: {
|
|
@@ -33422,18 +33381,18 @@ const ConnectionDetails$5 = () => {
|
|
|
33422
33381
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33423
33382
|
className: "border-none",
|
|
33424
33383
|
label: t("WS_MYCONNECTIONS_CONSUMER_NO"),
|
|
33425
|
-
text: (
|
|
33384
|
+
text: (_state7 = state) === null || _state7 === void 0 ? void 0 : _state7.connectionNo
|
|
33426
33385
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33427
33386
|
className: "border-none",
|
|
33428
33387
|
label: t("WS_SERVICE_NAME_LABEL"),
|
|
33429
|
-
text: t("WS_APPLICATION_TYPE_" + ((
|
|
33388
|
+
text: t("WS_APPLICATION_TYPE_" + ((_state8 = state) === null || _state8 === void 0 ? void 0 : _state8.applicationType)),
|
|
33430
33389
|
textStyle: {
|
|
33431
33390
|
wordBreak: "break-word"
|
|
33432
33391
|
}
|
|
33433
33392
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33434
33393
|
className: "border-none",
|
|
33435
33394
|
label: t("WS_STATUS"),
|
|
33436
|
-
text: ((
|
|
33395
|
+
text: ((_state9 = state) === null || _state9 === void 0 ? void 0 : _state9.status) || "NA",
|
|
33437
33396
|
textStyle: {
|
|
33438
33397
|
whiteSpace: "pre"
|
|
33439
33398
|
}
|
|
@@ -33441,127 +33400,127 @@ const ConnectionDetails$5 = () => {
|
|
|
33441
33400
|
styles: {
|
|
33442
33401
|
fontSize: "28px"
|
|
33443
33402
|
}
|
|
33444
|
-
}, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, ((
|
|
33403
|
+
}, t("WS_COMMON_CONNECTION_DETAIL")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, ((_state0 = state) === null || _state0 === void 0 ? void 0 : (_state0$applicationTy = _state0.applicationType) === null || _state0$applicationTy === void 0 ? void 0 : _state0$applicationTy.includes("WATER")) && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33445
33404
|
className: "border-none",
|
|
33446
33405
|
label: t("WS_COMMON_TABLE_COL_CONNECTIONTYPE_LABEL"),
|
|
33447
|
-
text: ((
|
|
33406
|
+
text: ((_state1 = state) === null || _state1 === void 0 ? void 0 : _state1.connectionType) || t("NA"),
|
|
33448
33407
|
textStyle: {
|
|
33449
33408
|
whiteSpace: "pre"
|
|
33450
33409
|
}
|
|
33451
33410
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33452
33411
|
className: "border-none",
|
|
33453
33412
|
label: t("WS_SERV_DETAIL_NO_OF_TAPS"),
|
|
33454
|
-
text: (
|
|
33413
|
+
text: (_state10 = state) === null || _state10 === void 0 ? void 0 : _state10.noOfTaps,
|
|
33455
33414
|
textStyle: {
|
|
33456
33415
|
whiteSpace: "pre"
|
|
33457
33416
|
}
|
|
33458
33417
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33459
33418
|
className: "border-none",
|
|
33460
33419
|
label: t("WS_PIPE_SIZE_IN_INCHES_LABEL"),
|
|
33461
|
-
text: ((
|
|
33420
|
+
text: ((_state11 = state) === null || _state11 === void 0 ? void 0 : _state11.pipeSize) || "NA",
|
|
33462
33421
|
textStyle: {
|
|
33463
33422
|
whiteSpace: "pre"
|
|
33464
33423
|
}
|
|
33465
|
-
})), ((
|
|
33424
|
+
})), ((_state12 = state) === null || _state12 === void 0 ? void 0 : (_state12$applicationT = _state12.applicationType) === null || _state12$applicationT === void 0 ? void 0 : _state12$applicationT.includes("SEWERAGE")) && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33466
33425
|
className: "border-none",
|
|
33467
33426
|
label: t("WS_CONN_DETAIL_WATER_CLOSETS"),
|
|
33468
|
-
text: (
|
|
33427
|
+
text: (_state13 = state) === null || _state13 === void 0 ? void 0 : _state13.proposedWaterClosets,
|
|
33469
33428
|
textStyle: {
|
|
33470
33429
|
whiteSpace: "pre"
|
|
33471
33430
|
}
|
|
33472
33431
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33473
33432
|
className: "border-none",
|
|
33474
33433
|
label: t("WS_SERV_DETAIL_NO_OF_TOILETS"),
|
|
33475
|
-
text: ((
|
|
33434
|
+
text: ((_state14 = state) === null || _state14 === void 0 ? void 0 : _state14.proposedToilets) || t("CS_NA"),
|
|
33476
33435
|
textStyle: {
|
|
33477
33436
|
whiteSpace: "pre"
|
|
33478
33437
|
}
|
|
33479
33438
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33480
33439
|
className: "border-none",
|
|
33481
33440
|
label: t("WS_SERV_DETAIL_CONN_EXECUTION_DATE"),
|
|
33482
|
-
text: (
|
|
33441
|
+
text: (_state15 = state) !== null && _state15 !== void 0 && _state15.connectionExecutionDate ? Digit.DateUtils.ConvertEpochToDate((_state16 = state) === null || _state16 === void 0 ? void 0 : _state16.connectionExecutionDate) : t("CS_NA"),
|
|
33483
33442
|
textStyle: {
|
|
33484
33443
|
whiteSpace: "pre"
|
|
33485
33444
|
}
|
|
33486
|
-
})), ((
|
|
33445
|
+
})), ((_state17 = state) === null || _state17 === void 0 ? void 0 : (_state17$applicationT = _state17.applicationType) === null || _state17$applicationT === void 0 ? void 0 : _state17$applicationT.includes("WATER")) && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33487
33446
|
className: "border-none",
|
|
33488
33447
|
label: t("WS_SERV_DETAIL_WATER_SOURCE"),
|
|
33489
|
-
text: t("WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((
|
|
33448
|
+
text: t("WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((_state18 = state) === null || _state18 === void 0 ? void 0 : (_state18$waterSource = _state18.waterSource) === null || _state18$waterSource === void 0 ? void 0 : (_state18$waterSource$ = _state18$waterSource.split(".")) === null || _state18$waterSource$ === void 0 ? void 0 : _state18$waterSource$[0], ".", "_")) || t("WS_SERVICES_MASTERS_WATERSOURCE_" + stringReplaceAll((_state19 = state) === null || _state19 === void 0 ? void 0 : _state19.waterSource, ".", "_")) || t("CS_NA"),
|
|
33490
33449
|
textStyle: {
|
|
33491
33450
|
whiteSpace: "pre"
|
|
33492
33451
|
}
|
|
33493
33452
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33494
33453
|
className: "border-none",
|
|
33495
33454
|
label: t("WS_SERV_DETAIL_WATER_SUB_SOURCE"),
|
|
33496
|
-
text: t((
|
|
33455
|
+
text: t((_state20 = state) === null || _state20 === void 0 ? void 0 : (_state20$waterSource = _state20.waterSource) === null || _state20$waterSource === void 0 ? void 0 : (_state20$waterSource$ = _state20$waterSource.split(".")) === null || _state20$waterSource$ === void 0 ? void 0 : _state20$waterSource$[1]) || t("CS_NA"),
|
|
33497
33456
|
textStyle: {
|
|
33498
33457
|
whiteSpace: "pre"
|
|
33499
33458
|
}
|
|
33500
33459
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33501
33460
|
className: "border-none",
|
|
33502
33461
|
label: t("WS_SERV_DETAIL_CONN_EXECUTION_DATE"),
|
|
33503
|
-
text: Digit.DateUtils.ConvertEpochToDate((
|
|
33462
|
+
text: Digit.DateUtils.ConvertEpochToDate((_state21 = state) === null || _state21 === void 0 ? void 0 : _state21.connectionExecutionDate) || t("NA"),
|
|
33504
33463
|
textStyle: {
|
|
33505
33464
|
whiteSpace: "pre"
|
|
33506
33465
|
}
|
|
33507
33466
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33508
33467
|
className: "border-none",
|
|
33509
33468
|
label: t("WS_SERV_DETAIL_METER_ID"),
|
|
33510
|
-
text: (
|
|
33469
|
+
text: (_state22 = state) === null || _state22 === void 0 ? void 0 : _state22.meterId,
|
|
33511
33470
|
textStyle: {
|
|
33512
33471
|
whiteSpace: "pre"
|
|
33513
33472
|
}
|
|
33514
33473
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33515
33474
|
className: "border-none",
|
|
33516
33475
|
label: t("WS_ADDN_DETAIL_METER_INSTALL_DATE"),
|
|
33517
|
-
text: Digit.DateUtils.ConvertEpochToDate((
|
|
33476
|
+
text: Digit.DateUtils.ConvertEpochToDate((_state23 = state) === null || _state23 === void 0 ? void 0 : _state23.meterInstallationDate) || "NA",
|
|
33518
33477
|
textStyle: {
|
|
33519
33478
|
whiteSpace: "pre"
|
|
33520
33479
|
}
|
|
33521
33480
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33522
33481
|
className: "border-none",
|
|
33523
33482
|
label: t("WS_ADDN_DETAILS_INITIAL_METER_READING"),
|
|
33524
|
-
text: ((
|
|
33483
|
+
text: ((_state24 = state) === null || _state24 === void 0 ? void 0 : (_state24$additionalDe = _state24.additionalDetails) === null || _state24$additionalDe === void 0 ? void 0 : _state24$additionalDe.initialMeterReading) || "NA",
|
|
33525
33484
|
textStyle: {
|
|
33526
33485
|
whiteSpace: "pre"
|
|
33527
33486
|
}
|
|
33528
|
-
})), ((
|
|
33487
|
+
})), ((_state25 = state) === null || _state25 === void 0 ? void 0 : (_state25$applicationT = _state25.applicationType) === null || _state25$applicationT === void 0 ? void 0 : _state25$applicationT.includes("WATER")) && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33529
33488
|
className: "border-none",
|
|
33530
33489
|
label: t("WS_WATER_DEMAND_TYPE"),
|
|
33531
|
-
text: (
|
|
33490
|
+
text: (_state26 = state) !== null && _state26 !== void 0 && (_state26$additionalDe = _state26.additionalDetails) !== null && _state26$additionalDe !== void 0 && (_state26$additionalDe2 = _state26$additionalDe.waterDemandType) !== null && _state26$additionalDe2 !== void 0 && _state26$additionalDe2.i18nKey ? t((_state27 = state) === null || _state27 === void 0 ? void 0 : (_state27$additionalDe = _state27.additionalDetails) === null || _state27$additionalDe === void 0 ? void 0 : (_state27$additionalDe2 = _state27$additionalDe.waterDemandType) === null || _state27$additionalDe2 === void 0 ? void 0 : _state27$additionalDe2.i18nKey) : "NA",
|
|
33532
33491
|
textStyle: {
|
|
33533
33492
|
whiteSpace: "pre"
|
|
33534
33493
|
}
|
|
33535
33494
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33536
33495
|
className: "border-none",
|
|
33537
33496
|
label: t("WS_CATEGORY_TYPE"),
|
|
33538
|
-
text: ((
|
|
33497
|
+
text: ((_state28 = state) === null || _state28 === void 0 ? void 0 : (_state28$additionalDe = _state28.additionalDetails) === null || _state28$additionalDe === void 0 ? void 0 : _state28$additionalDe.categoryType) || "NA",
|
|
33539
33498
|
textStyle: {
|
|
33540
33499
|
whiteSpace: "pre"
|
|
33541
33500
|
}
|
|
33542
33501
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33543
33502
|
className: "border-none",
|
|
33544
33503
|
label: t("WS_ZRO_NAME"),
|
|
33545
|
-
text: ((
|
|
33504
|
+
text: ((_state29 = state) === null || _state29 === void 0 ? void 0 : (_state29$additionalDe = _state29.additionalDetails) === null || _state29$additionalDe === void 0 ? void 0 : _state29$additionalDe.zro) || "NA",
|
|
33546
33505
|
textStyle: {
|
|
33547
33506
|
whiteSpace: "pre"
|
|
33548
33507
|
}
|
|
33549
33508
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33550
33509
|
className: "border-none",
|
|
33551
33510
|
label: t("WS_CONNECTION_USAGE_TYPE"),
|
|
33552
|
-
text: ((
|
|
33511
|
+
text: ((_state30 = state) === null || _state30 === void 0 ? void 0 : (_state30$additionalDe = _state30.additionalDetails) === null || _state30$additionalDe === void 0 ? void 0 : (_state30$additionalDe2 = _state30$additionalDe.WaterConnectionUsageType) === null || _state30$additionalDe2 === void 0 ? void 0 : _state30$additionalDe2.name) || "NA",
|
|
33553
33512
|
textStyle: {
|
|
33554
33513
|
whiteSpace: "pre"
|
|
33555
33514
|
}
|
|
33556
33515
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33557
33516
|
className: "border-none",
|
|
33558
33517
|
label: t("WS_TEMPORARY_CONNECTION"),
|
|
33559
|
-
text: ((
|
|
33518
|
+
text: ((_state31 = state) === null || _state31 === void 0 ? void 0 : (_state31$additionalDe = _state31.additionalDetails) === null || _state31$additionalDe === void 0 ? void 0 : _state31$additionalDe.temporaryConnection) || "NA",
|
|
33560
33519
|
textStyle: {
|
|
33561
33520
|
whiteSpace: "pre"
|
|
33562
33521
|
}
|
|
33563
|
-
})), ((
|
|
33564
|
-
to: "/digit-ui/citizen/ws/consumption/details?applicationNo=" + ((
|
|
33522
|
+
})), ((_state32 = state) === null || _state32 === void 0 ? void 0 : _state32.connectionType) === "Metered" && /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33523
|
+
to: "/digit-ui/citizen/ws/consumption/details?applicationNo=" + ((_state33 = state) === null || _state33 === void 0 ? void 0 : _state33.connectionNo)
|
|
33565
33524
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
33566
33525
|
style: {
|
|
33567
33526
|
textAlign: "left",
|
|
@@ -33576,11 +33535,11 @@ const ConnectionDetails$5 = () => {
|
|
|
33576
33535
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33577
33536
|
className: "border-none",
|
|
33578
33537
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
33579
|
-
text: (
|
|
33538
|
+
text: (_state34 = state) === null || _state34 === void 0 ? void 0 : _state34.propertyId
|
|
33580
33539
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33581
33540
|
className: "border-none",
|
|
33582
33541
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
33583
|
-
text: (
|
|
33542
|
+
text: (_state35 = state) === null || _state35 === void 0 ? void 0 : (_state35$property = _state35.property) === null || _state35$property === void 0 ? void 0 : (_state35$property$own = _state35$property.owners) === null || _state35$property$own === void 0 ? void 0 : _state35$property$own.map(owner => owner.name).join(","),
|
|
33584
33543
|
textStyle: {
|
|
33585
33544
|
whiteSpace: "pre"
|
|
33586
33545
|
}
|
|
@@ -33615,33 +33574,33 @@ const ConnectionDetails$5 = () => {
|
|
|
33615
33574
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33616
33575
|
className: "border-none",
|
|
33617
33576
|
label: t("WS_PROPERTY_TYPE"),
|
|
33618
|
-
text: ((
|
|
33577
|
+
text: ((_state36 = state) === null || _state36 === void 0 ? void 0 : (_state36$additionalDe = _state36.additionalDetails) === null || _state36$additionalDe === void 0 ? void 0 : (_state36$additionalDe2 = _state36$additionalDe.propertyType) === null || _state36$additionalDe2 === void 0 ? void 0 : _state36$additionalDe2.name) || "NA"
|
|
33619
33578
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33620
33579
|
className: "border-none",
|
|
33621
33580
|
label: t("WS_PROPERTY_CATEGORY"),
|
|
33622
|
-
text: ((
|
|
33581
|
+
text: ((_state37 = state) === null || _state37 === void 0 ? void 0 : (_state37$additionalDe = _state37.additionalDetails) === null || _state37$additionalDe === void 0 ? void 0 : (_state37$additionalDe2 = _state37$additionalDe.propertyCategory) === null || _state37$additionalDe2 === void 0 ? void 0 : _state37$additionalDe2.name) || "NA"
|
|
33623
33582
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33624
33583
|
className: "border-none",
|
|
33625
33584
|
label: t("WS_PLOT_AREA"),
|
|
33626
|
-
text: ((
|
|
33585
|
+
text: ((_state38 = state) === null || _state38 === void 0 ? void 0 : (_state38$additionalDe = _state38.additionalDetails) === null || _state38$additionalDe === void 0 ? void 0 : _state38$additionalDe.plotArea) || "NA"
|
|
33627
33586
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33628
33587
|
className: "border-none",
|
|
33629
33588
|
label: t("WS_BUILT_UP_AREA"),
|
|
33630
|
-
text: ((
|
|
33589
|
+
text: ((_state39 = state) === null || _state39 === void 0 ? void 0 : (_state39$additionalDe = _state39.additionalDetails) === null || _state39$additionalDe === void 0 ? void 0 : _state39$additionalDe.builtUpArea) || "NA"
|
|
33631
33590
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33632
33591
|
className: "border-none",
|
|
33633
33592
|
label: t("WS_NO_OF_FLOORS"),
|
|
33634
|
-
text: ((
|
|
33593
|
+
text: ((_state40 = state) === null || _state40 === void 0 ? void 0 : (_state40$additionalDe = _state40.additionalDetails) === null || _state40$additionalDe === void 0 ? void 0 : _state40$additionalDe.noOfFloors) || "NA"
|
|
33635
33594
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33636
33595
|
className: "border-none",
|
|
33637
33596
|
label: t("WS_NO_OF_DWELLING_UNITS"),
|
|
33638
|
-
text: ((
|
|
33597
|
+
text: ((_state41 = state) === null || _state41 === void 0 ? void 0 : (_state41$additionalDe = _state41.additionalDetails) === null || _state41$additionalDe === void 0 ? void 0 : _state41$additionalDe.NumberofDwellingUnits) || "NA"
|
|
33639
33598
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33640
33599
|
className: "border-none",
|
|
33641
33600
|
label: t("WS_LOCALITY"),
|
|
33642
|
-
text: ((
|
|
33601
|
+
text: ((_state42 = state) === null || _state42 === void 0 ? void 0 : (_state42$additionalDe = _state42.additionalDetails) === null || _state42$additionalDe === void 0 ? void 0 : _state42$additionalDe.locality) || "NA"
|
|
33643
33602
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33644
|
-
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((
|
|
33603
|
+
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((_state43 = state) === null || _state43 === void 0 ? void 0 : _state43.propertyId) + "&tenantId=" + ((_state44 = state) === null || _state44 === void 0 ? void 0 : _state44.tenantId)
|
|
33645
33604
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
33646
33605
|
style: {
|
|
33647
33606
|
textAlign: "left",
|
|
@@ -33653,10 +33612,10 @@ const ConnectionDetails$5 = () => {
|
|
|
33653
33612
|
styles: {
|
|
33654
33613
|
fontSize: "28px"
|
|
33655
33614
|
}
|
|
33656
|
-
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (
|
|
33615
|
+
}, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), (_state45 = state) !== null && _state45 !== void 0 && _state45.connectionHolders ? /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33657
33616
|
className: "border-none",
|
|
33658
33617
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
33659
|
-
text: (
|
|
33618
|
+
text: (_state46 = state) === null || _state46 === void 0 ? void 0 : (_state46$connectionHo = _state46.connectionHolders) === null || _state46$connectionHo === void 0 ? void 0 : (_state46$connectionHo2 = _state46$connectionHo[0]) === null || _state46$connectionHo2 === void 0 ? void 0 : _state46$connectionHo2.name,
|
|
33660
33619
|
textStyle: {
|
|
33661
33620
|
whiteSpace: "pre"
|
|
33662
33621
|
}
|
|
@@ -33782,32 +33741,32 @@ const ConnectionDetails$5 = () => {
|
|
|
33782
33741
|
}, t("WS_COMMON_BANK_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33783
33742
|
className: "border-none",
|
|
33784
33743
|
label: t("WS_BANK_NAME"),
|
|
33785
|
-
text: ((
|
|
33744
|
+
text: ((_state47 = state) === null || _state47 === void 0 ? void 0 : (_state47$additionalDe = _state47.additionalDetails) === null || _state47$additionalDe === void 0 ? void 0 : _state47$additionalDe.bankName) || "NA"
|
|
33786
33745
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33787
33746
|
className: "border-none",
|
|
33788
33747
|
label: t("WS_BANK_BRANCH_NAME"),
|
|
33789
|
-
text: ((
|
|
33748
|
+
text: ((_state48 = state) === null || _state48 === void 0 ? void 0 : (_state48$additionalDe = _state48.additionalDetails) === null || _state48$additionalDe === void 0 ? void 0 : _state48$additionalDe.bankBranchName) || "NA"
|
|
33790
33749
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33791
33750
|
className: "border-none",
|
|
33792
33751
|
label: t("WS_BANK_ACCOUNT_NUMBER"),
|
|
33793
|
-
text: ((
|
|
33752
|
+
text: ((_state49 = state) === null || _state49 === void 0 ? void 0 : (_state49$additionalDe = _state49.additionalDetails) === null || _state49$additionalDe === void 0 ? void 0 : _state49$additionalDe.accountNumber) || ((_state50 = state) === null || _state50 === void 0 ? void 0 : (_state50$additionalDe = _state50.additionalDetails) === null || _state50$additionalDe === void 0 ? void 0 : _state50$additionalDe.bankAccountNumber) || "NA"
|
|
33794
33753
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33795
33754
|
className: "border-none",
|
|
33796
33755
|
label: t("WS_BANK_IFSC_CODE"),
|
|
33797
|
-
text: ((
|
|
33756
|
+
text: ((_state51 = state) === null || _state51 === void 0 ? void 0 : (_state51$additionalDe = _state51.additionalDetails) === null || _state51$additionalDe === void 0 ? void 0 : _state51$additionalDe.ifscCode) || "NA"
|
|
33798
33757
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardHeader, {
|
|
33799
33758
|
styles: {
|
|
33800
33759
|
fontSize: "28px"
|
|
33801
33760
|
}
|
|
33802
|
-
}, t("WS_COMMON_BANK_DETAILS")), ((
|
|
33803
|
-
var _doc$documentType,
|
|
33761
|
+
}, t("WS_COMMON_BANK_DETAILS")), ((_state52 = state) === null || _state52 === void 0 ? void 0 : _state52.documents) && ((_state53 = state) === null || _state53 === void 0 ? void 0 : _state53.documents.map((doc, index) => {
|
|
33762
|
+
var _doc$documentType, _state54, _state55;
|
|
33804
33763
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
33805
33764
|
key: "doc-" + index
|
|
33806
33765
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
33807
|
-
value: (
|
|
33766
|
+
value: (_state54 = state) === null || _state54 === void 0 ? void 0 : _state54.documents,
|
|
33808
33767
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33809
33768
|
index: index
|
|
33810
|
-
}), ((
|
|
33769
|
+
}), ((_state55 = state) === null || _state55 === void 0 ? void 0 : _state55.documents.length) != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
33811
33770
|
style: {
|
|
33812
33771
|
color: "#cccccc",
|
|
33813
33772
|
backgroundColor: "#cccccc",
|
|
@@ -33816,26 +33775,38 @@ const ConnectionDetails$5 = () => {
|
|
|
33816
33775
|
marginBottom: "20px"
|
|
33817
33776
|
}
|
|
33818
33777
|
}) : null)));
|
|
33819
|
-
})), (((
|
|
33778
|
+
})), (((_state56 = state) === null || _state56 === void 0 ? void 0 : _state56.status) !== "inactive" || ((_state57 = state) === null || _state57 === void 0 ? void 0 : _state57.applicationStatus) !== "Inactive" || ((_state58 = state) === null || _state58 === void 0 ? void 0 : _state58.applicationStatus) !== "INACTIVE") && !isDisconnectionDone ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
|
|
33820
33779
|
style: {
|
|
33821
33780
|
position: "relative",
|
|
33822
33781
|
boxShadow: "none",
|
|
33823
33782
|
minWidth: "240px",
|
|
33824
|
-
maxWidth: "
|
|
33783
|
+
maxWidth: "620px",
|
|
33825
33784
|
padding: "0px",
|
|
33826
|
-
marginTop: "15px"
|
|
33785
|
+
marginTop: "15px",
|
|
33786
|
+
display: "flex",
|
|
33787
|
+
gap: "10px"
|
|
33827
33788
|
}
|
|
33828
33789
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
33829
33790
|
style: {
|
|
33830
33791
|
width: "100%"
|
|
33831
33792
|
}
|
|
33793
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33794
|
+
style: {
|
|
33795
|
+
width: "100%"
|
|
33796
|
+
},
|
|
33797
|
+
label: t("WS_MUTATION_BUTTON"),
|
|
33798
|
+
onSubmit: onActionSelectMutation
|
|
33799
|
+
})), /*#__PURE__*/React__default.createElement("div", {
|
|
33800
|
+
style: {
|
|
33801
|
+
width: "100%"
|
|
33802
|
+
}
|
|
33832
33803
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33833
33804
|
style: {
|
|
33834
33805
|
width: "100%"
|
|
33835
33806
|
},
|
|
33836
33807
|
label: t("WS_DISCONNECTION_BUTTON"),
|
|
33837
33808
|
onSubmit: onActionSelect
|
|
33838
|
-
}))) : ((
|
|
33809
|
+
}))) : ((_state59 = state) === null || _state59 === void 0 ? void 0 : _state59.applicationStatus) == "DISCONNECTION_EXECUTED" && ((_state60 = state) === null || _state60 === void 0 ? void 0 : _state60.status) == "Inactive" && ((_state61 = state) === null || _state61 === void 0 ? void 0 : _state61.isDisconnectionTemporary) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
|
|
33839
33810
|
style: {
|
|
33840
33811
|
position: "relative",
|
|
33841
33812
|
boxShadow: "none",
|
|
@@ -33867,8 +33838,8 @@ const ConnectionDetails$5 = () => {
|
|
|
33867
33838
|
actionSingleLabel: t("COMMON_MAKE_PAYMENT"),
|
|
33868
33839
|
hideSubmit: true,
|
|
33869
33840
|
actionSingleSubmit: () => {
|
|
33870
|
-
var
|
|
33871
|
-
history.push("/digit-ui/citizen/payment/collect/" + (isSW ? "SW" : "WS") + "/" + encodeURIComponent((
|
|
33841
|
+
var _state62, _state63;
|
|
33842
|
+
history.push("/digit-ui/citizen/payment/collect/" + (isSW ? "SW" : "WS") + "/" + encodeURIComponent((_state62 = state) === null || _state62 === void 0 ? void 0 : _state62.connectionNo) + "/" + tenantId + "?consumerCode=" + ((_state63 = state) === null || _state63 === void 0 ? void 0 : _state63.connectionNo) + "&&tenantId=" + tenantId + "&&workflow=WNS");
|
|
33872
33843
|
setshowModal(false);
|
|
33873
33844
|
},
|
|
33874
33845
|
popupStyles: mobileView ? {
|
|
@@ -51939,7 +51910,7 @@ const Step5_Submission = _ref => {
|
|
|
51939
51910
|
};
|
|
51940
51911
|
|
|
51941
51912
|
const MutationApplication = () => {
|
|
51942
|
-
var _state, _details$applicationD, _applicationDetails$a, _applicationDetails$a3, _applicationDetails$a4;
|
|
51913
|
+
var _Digit$SessionStorage, _user$info, _state, _user$info2, _user$info2$userName, _user$info3, _user$info4, _details$applicationD, _applicationDetails$a, _applicationDetails$a3, _applicationDetails$a4;
|
|
51943
51914
|
const _useTranslation = reactI18next.useTranslation(),
|
|
51944
51915
|
t = _useTranslation.t;
|
|
51945
51916
|
let _useLocation = reactRouterDom.useLocation(),
|
|
@@ -51964,13 +51935,46 @@ const MutationApplication = () => {
|
|
|
51964
51935
|
setIsSubmitting = _useState5[1];
|
|
51965
51936
|
const _useState6 = React.useState(new Set()),
|
|
51966
51937
|
setCompletedSteps = _useState6[1];
|
|
51967
|
-
|
|
51938
|
+
const user = Digit.UserService.getUser();
|
|
51939
|
+
let tenantId = (filters === null || filters === void 0 ? void 0 : filters.tenantId) || ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || (user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : _user$info.permanentCity) || Digit.ULBService.getCurrentTenantId();
|
|
51968
51940
|
const applicationNumber = filters === null || filters === void 0 ? void 0 : filters.applicationNumber;
|
|
51969
51941
|
const serviceType = filters === null || filters === void 0 ? void 0 : filters.service;
|
|
51970
|
-
|
|
51971
|
-
|
|
51972
|
-
|
|
51973
|
-
|
|
51942
|
+
const details = cloneDeep_1((_state = state) === null || _state === void 0 ? void 0 : _state.data);
|
|
51943
|
+
const mobileNumber = user !== null && user !== void 0 && (_user$info2 = user.info) !== null && _user$info2 !== void 0 && (_user$info2$userName = _user$info2.userName) !== null && _user$info2$userName !== void 0 && _user$info2$userName.match(/^[0-9]{10}$/) ? user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : _user$info3.userName : user === null || user === void 0 ? void 0 : (_user$info4 = user.info) === null || _user$info4 === void 0 ? void 0 : _user$info4.mobileNumber;
|
|
51944
|
+
const hasStateData = !!(details !== null && details !== void 0 && (_details$applicationD = details.applicationData) !== null && _details$applicationD !== void 0 && _details$applicationD.id);
|
|
51945
|
+
const wsSearchNumber = (details === null || details === void 0 ? void 0 : details.applicationNo) || applicationNumber;
|
|
51946
|
+
const businessService = (serviceType === null || serviceType === void 0 ? void 0 : serviceType.toUpperCase()) === "SEWERAGE" ? "SW" : "WS";
|
|
51947
|
+
const _useQuery = reactQuery.useQuery(["WS_MUTATION_DIRECT_SEARCH", wsSearchNumber, tenantId, mobileNumber, businessService], function () {
|
|
51948
|
+
try {
|
|
51949
|
+
if (!wsSearchNumber) return Promise.resolve(null);
|
|
51950
|
+
const params = {
|
|
51951
|
+
connectionNumber: wsSearchNumber
|
|
51952
|
+
};
|
|
51953
|
+
Object.keys(params).forEach(k => params[k] == null && delete params[k]);
|
|
51954
|
+
return Promise.resolve(Digit.WSService.search({
|
|
51955
|
+
tenantId,
|
|
51956
|
+
filters: params,
|
|
51957
|
+
businessService
|
|
51958
|
+
})).then(function (rawData) {
|
|
51959
|
+
var _rawData$WaterConnect, _rawData$SewerageConn;
|
|
51960
|
+
const wsData = businessService === "WS" ? rawData === null || rawData === void 0 ? void 0 : (_rawData$WaterConnect = rawData.WaterConnection) === null || _rawData$WaterConnect === void 0 ? void 0 : _rawData$WaterConnect[0] : rawData === null || rawData === void 0 ? void 0 : (_rawData$SewerageConn = rawData.SewerageConnections) === null || _rawData$SewerageConn === void 0 ? void 0 : _rawData$SewerageConn[0];
|
|
51961
|
+
return wsData ? {
|
|
51962
|
+
applicationData: wsData,
|
|
51963
|
+
WaterConnection: rawData === null || rawData === void 0 ? void 0 : rawData.WaterConnection,
|
|
51964
|
+
SewerageConnections: rawData === null || rawData === void 0 ? void 0 : rawData.SewerageConnections,
|
|
51965
|
+
propertyDetails: null,
|
|
51966
|
+
processInstancesDetails: []
|
|
51967
|
+
} : null;
|
|
51968
|
+
});
|
|
51969
|
+
} catch (e) {
|
|
51970
|
+
return Promise.reject(e);
|
|
51971
|
+
}
|
|
51972
|
+
}, {
|
|
51973
|
+
enabled: !!wsSearchNumber && !hasStateData
|
|
51974
|
+
}),
|
|
51975
|
+
isDetailsLoading = _useQuery.isLoading,
|
|
51976
|
+
fetchedApplicationDetails = _useQuery.data;
|
|
51977
|
+
const applicationDetails = hasStateData ? details : fetchedApplicationDetails;
|
|
51974
51978
|
const _useState7 = React.useState(new URLSearchParams(reactRouterDom.useLocation().search).get("propertyId") || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.propertyId)),
|
|
51975
51979
|
propertyId = _useState7[0];
|
|
51976
51980
|
const _Digit$Hooks$pt$usePr = Digit.Hooks.pt.usePropertySearch({
|
|
@@ -52031,10 +52035,10 @@ const MutationApplication = () => {
|
|
|
52031
52035
|
waterMutation = _Digit$Hooks$ws$useWa.mutate;
|
|
52032
52036
|
const _Digit$Hooks$ws$useWa2 = Digit.Hooks.ws.useWaterCreateAPI("SEWERAGE"),
|
|
52033
52037
|
sewerageMutation = _Digit$Hooks$ws$useWa2.mutate;
|
|
52034
|
-
const _Digit$Hooks$ws$
|
|
52035
|
-
waterUpdateMutation = _Digit$Hooks$ws$
|
|
52036
|
-
const _Digit$Hooks$ws$
|
|
52037
|
-
sewerageUpdateMutation = _Digit$Hooks$ws$
|
|
52038
|
+
const _Digit$Hooks$ws$useWS = Digit.Hooks.ws.useWSApplicationActions("WATER"),
|
|
52039
|
+
waterUpdateMutation = _Digit$Hooks$ws$useWS.mutate;
|
|
52040
|
+
const _Digit$Hooks$ws$useWS2 = Digit.Hooks.ws.useWSApplicationActions("SEWERAGE"),
|
|
52041
|
+
sewerageUpdateMutation = _Digit$Hooks$ws$useWS2.mutate;
|
|
52038
52042
|
const handleNextStep2 = data => {
|
|
52039
52043
|
setFormData(prev => _extends({}, prev, data));
|
|
52040
52044
|
setCompletedSteps(prev => new Set([...prev, 2]));
|