@djb25/digit-ui-module-ws 1.0.84 → 1.0.85
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +429 -326
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +430 -327
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -11324,7 +11324,9 @@ const App$1 = _ref2 => {
|
|
|
11324
11324
|
}))
|
|
11325
11325
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
11326
11326
|
path: path + "/consumption-details",
|
|
11327
|
-
component:
|
|
11327
|
+
component: () => /*#__PURE__*/React__default.createElement(digitUiReactComponents.LayoutWrapper, {
|
|
11328
|
+
layoutClass: "action"
|
|
11329
|
+
}, /*#__PURE__*/React__default.createElement(WSConsumptionDetails, null))
|
|
11328
11330
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.PrivateRoute, {
|
|
11329
11331
|
path: path + "/modify-application",
|
|
11330
11332
|
component: WSModifyApplication
|
|
@@ -18413,6 +18415,7 @@ function SelectDocument(_ref2) {
|
|
|
18413
18415
|
var dropDownData = dropdownData;
|
|
18414
18416
|
const _useState15 = React.useState(false),
|
|
18415
18417
|
isHidden = _useState15[0];
|
|
18418
|
+
const documentDisplayName = (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.i18nKey) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.name) || (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || (doc === null || doc === void 0 ? void 0 : doc.i18nKey) || (doc === null || doc === void 0 ? void 0 : doc.name) || (doc === null || doc === void 0 ? void 0 : doc.code);
|
|
18416
18419
|
const addError = () => {
|
|
18417
18420
|
var _formState$errors, _formState$errors$con;
|
|
18418
18421
|
let type = formState === null || formState === void 0 ? void 0 : (_formState$errors = formState.errors) === null || _formState$errors === void 0 ? void 0 : (_formState$errors$con = _formState$errors[config.key]) === null || _formState$errors$con === void 0 ? void 0 : _formState$errors$con.type;
|
|
@@ -18717,7 +18720,7 @@ function SelectDocument(_ref2) {
|
|
|
18717
18720
|
buttonType: "button",
|
|
18718
18721
|
error: !uploadedFile,
|
|
18719
18722
|
accept: (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? "image/jpeg, image/png, .jpg, .jpeg, .png" : "image/*, .pdf, .png, .jpeg, .jpg",
|
|
18720
|
-
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t("CS_COMMON_DOCUMENT"), {
|
|
18723
|
+
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t(documentDisplayName || "CS_COMMON_DOCUMENT"), {
|
|
18721
18724
|
fileStoreId: uploadedFile
|
|
18722
18725
|
}]] : undefined,
|
|
18723
18726
|
removeTargetedFile: () => {
|
|
@@ -18749,7 +18752,7 @@ function SelectDocument(_ref2) {
|
|
|
18749
18752
|
buttonType: "button",
|
|
18750
18753
|
error: !uploadedFile,
|
|
18751
18754
|
accept: (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? "image/jpeg, image/png, .jpg, .jpeg, .png" : "image/*, .pdf, .png, .jpeg, .jpg",
|
|
18752
|
-
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t("CS_COMMON_DOCUMENT"), {
|
|
18755
|
+
uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t(documentDisplayName || "CS_COMMON_DOCUMENT"), {
|
|
18753
18756
|
fileStoreId: uploadedFile
|
|
18754
18757
|
}]] : undefined,
|
|
18755
18758
|
removeTargetedFile: () => {
|
|
@@ -18776,7 +18779,7 @@ function SelectDocument(_ref2) {
|
|
|
18776
18779
|
style: {
|
|
18777
18780
|
fontWeight: "bold"
|
|
18778
18781
|
}
|
|
18779
|
-
}, uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType ? t(uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType) : t("CS_COMMON_DOCUMENT"), " - ", uploadedDocument.fileName || t("CS_COMMON_DOCUMENT")), uploadedDocument.documentNumber && /*#__PURE__*/React__default.createElement("span", null, uploadedDocument.documentNumber), /*#__PURE__*/React__default.createElement("button", {
|
|
18782
|
+
}, uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName ? t(uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName) : t("CS_COMMON_DOCUMENT"), " - ", uploadedDocument.fileName || t("CS_COMMON_DOCUMENT")), uploadedDocument.documentNumber && /*#__PURE__*/React__default.createElement("span", null, uploadedDocument.documentNumber), /*#__PURE__*/React__default.createElement("button", {
|
|
18780
18783
|
type: "button",
|
|
18781
18784
|
onClick: () => viewDocument(uploadedDocument.fileStoreId),
|
|
18782
18785
|
title: t("WS_VIEW_DOCUMENT") || "View Document",
|
|
@@ -23705,17 +23708,21 @@ const WSDivyangjan = _ref => {
|
|
|
23705
23708
|
control = _useForm.control,
|
|
23706
23709
|
watch = _useForm.watch;
|
|
23707
23710
|
const formValue = watch();
|
|
23711
|
+
const onSelectRef = React.useRef(onSelect);
|
|
23708
23712
|
const goNext = () => onSelect(config.key, {
|
|
23709
23713
|
isDivyangjan: !!formValue.isDivyangjan
|
|
23710
23714
|
});
|
|
23711
23715
|
const onSkip = () => onSelect();
|
|
23716
|
+
React.useEffect(() => {
|
|
23717
|
+
onSelectRef.current = onSelect;
|
|
23718
|
+
}, [onSelect]);
|
|
23712
23719
|
React.useEffect(() => {
|
|
23713
23720
|
if (userType === "employee") {
|
|
23714
|
-
|
|
23721
|
+
onSelectRef.current(config.key, {
|
|
23715
23722
|
isDivyangjan: !!formValue.isDivyangjan
|
|
23716
23723
|
});
|
|
23717
23724
|
}
|
|
23718
|
-
}, [config.key, formValue.isDivyangjan,
|
|
23725
|
+
}, [config.key, formValue.isDivyangjan, userType]);
|
|
23719
23726
|
const content = /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
23720
23727
|
title: "Divyangjan/Person with Disability?",
|
|
23721
23728
|
defaultOpen: true
|
|
@@ -32282,7 +32289,7 @@ const ViewBreakup = _ref => {
|
|
|
32282
32289
|
title: t("WS_APPLICATION_FEE_HEADER"),
|
|
32283
32290
|
values: amountRows([...((breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab = breakUpData.billSlabData) === null || _breakUpData$billSlab === void 0 ? void 0 : _breakUpData$billSlab.FEE) || []), ...((breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab2 = breakUpData.billSlabData) === null || _breakUpData$billSlab2 === void 0 ? void 0 : _breakUpData$billSlab2.CHARGES) || [])])
|
|
32284
32291
|
}, {
|
|
32285
|
-
title: "
|
|
32292
|
+
title: t("WS_PROPERTY_DETAILS"),
|
|
32286
32293
|
values: propertyRows.map(_ref4 => {
|
|
32287
32294
|
let label = _ref4.label,
|
|
32288
32295
|
value = _ref4.value,
|
|
@@ -32295,10 +32302,10 @@ const ViewBreakup = _ref => {
|
|
|
32295
32302
|
};
|
|
32296
32303
|
})
|
|
32297
32304
|
}, {
|
|
32298
|
-
title: "
|
|
32305
|
+
title: t("WS_TAXES"),
|
|
32299
32306
|
values: amountRows(breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$billSlab3 = breakUpData.billSlabData) === null || _breakUpData$billSlab3 === void 0 ? void 0 : _breakUpData$billSlab3.TAX)
|
|
32300
32307
|
}, {
|
|
32301
|
-
title: "
|
|
32308
|
+
title: t("WS_WATER_DEMAND_DETAILS"),
|
|
32302
32309
|
values: waterDemandRows.map(_ref5 => {
|
|
32303
32310
|
let label = _ref5.label,
|
|
32304
32311
|
value = _ref5.value,
|
|
@@ -32311,7 +32318,7 @@ const ViewBreakup = _ref => {
|
|
|
32311
32318
|
};
|
|
32312
32319
|
})
|
|
32313
32320
|
}, {
|
|
32314
|
-
title: "
|
|
32321
|
+
title: t("WS_INFRASTRUCTURE_CHARGE_DETAILS"),
|
|
32315
32322
|
values: infrastructureChargeRows.map(_ref6 => {
|
|
32316
32323
|
let label = _ref6.label,
|
|
32317
32324
|
value = _ref6.value,
|
|
@@ -32324,7 +32331,7 @@ const ViewBreakup = _ref => {
|
|
|
32324
32331
|
};
|
|
32325
32332
|
})
|
|
32326
32333
|
}, {
|
|
32327
|
-
title: "
|
|
32334
|
+
title: t("WS_TOTAL"),
|
|
32328
32335
|
values: [{
|
|
32329
32336
|
title: t("PDF_STATIC_LABEL_CONSOLIDATED_TLAPP_TOTAL_AMOUNT"),
|
|
32330
32337
|
value: "\u20B9" + formatNumber(breakUpData === null || breakUpData === void 0 ? void 0 : breakUpData.totalAmount)
|
|
@@ -32367,134 +32374,135 @@ const ViewBreakup = _ref => {
|
|
|
32367
32374
|
const propertyDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat = breakUpData.calculationDetail) === null || _breakUpData$calculat === void 0 ? void 0 : _breakUpData$calculat.propertyDetail;
|
|
32368
32375
|
const waterDemandDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat2 = breakUpData.calculationDetail) === null || _breakUpData$calculat2 === void 0 ? void 0 : _breakUpData$calculat2.waterDemandDetail;
|
|
32369
32376
|
const infrastructureChargeDetail = breakUpData === null || breakUpData === void 0 ? void 0 : (_breakUpData$calculat3 = breakUpData.calculationDetail) === null || _breakUpData$calculat3 === void 0 ? void 0 : _breakUpData$calculat3.infrastructureChargeDetail;
|
|
32377
|
+
const isValidValue = value => value !== null && value !== undefined && value !== "" && value !== 0 && value !== "0" && value !== "0.0";
|
|
32370
32378
|
const propertyRows = propertyDetail ? [{
|
|
32371
|
-
label: "
|
|
32379
|
+
label: t("WS_PROPERTY_ID"),
|
|
32372
32380
|
value: propertyDetail.propertyId,
|
|
32373
32381
|
isText: true
|
|
32374
32382
|
}, {
|
|
32375
|
-
label: "
|
|
32383
|
+
label: t("WS_PROPERTY_TYPE"),
|
|
32376
32384
|
value: propertyDetail.propertyType,
|
|
32377
32385
|
isText: true
|
|
32378
32386
|
}, {
|
|
32379
|
-
label: "
|
|
32387
|
+
label: t("WS_PLOT_AREA"),
|
|
32380
32388
|
value: propertyDetail.landArea,
|
|
32381
32389
|
unit: " (sq. meter.)"
|
|
32382
32390
|
}, {
|
|
32383
|
-
label: "
|
|
32391
|
+
label: t("WS_BUILT_UP_AREA"),
|
|
32384
32392
|
value: propertyDetail.superBuiltUpArea,
|
|
32385
32393
|
unit: " (sq. meter.)"
|
|
32386
|
-
}, {
|
|
32387
|
-
label: "
|
|
32394
|
+
}, isValidValue(propertyDetail.farArea) ? {
|
|
32395
|
+
label: t("WS_FAR_AREA"),
|
|
32388
32396
|
value: propertyDetail.farArea,
|
|
32389
32397
|
isText: true
|
|
32390
|
-
}, {
|
|
32391
|
-
label: "
|
|
32398
|
+
} : null, isValidValue(propertyDetail.coveredArea) ? {
|
|
32399
|
+
label: t("WS_COVERED_AREA"),
|
|
32392
32400
|
value: propertyDetail.coveredArea,
|
|
32393
32401
|
isText: true
|
|
32394
|
-
}, {
|
|
32395
|
-
label: "
|
|
32402
|
+
} : null, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
|
|
32403
|
+
label: t("WS_NUMBER_OF_DWELLING_UNITS"),
|
|
32396
32404
|
value: propertyDetail.numberOfDwellingUnits,
|
|
32397
32405
|
isText: true
|
|
32398
|
-
}, {
|
|
32399
|
-
label: "
|
|
32406
|
+
} : null, isValidValue(propertyDetail.numberOfBeds) ? {
|
|
32407
|
+
label: t("WS_NUMBER_OF_BEDS"),
|
|
32400
32408
|
value: propertyDetail.numberOfBeds,
|
|
32401
32409
|
isText: true
|
|
32402
|
-
}, {
|
|
32403
|
-
label: "
|
|
32410
|
+
} : null, isValidValue(propertyDetail.numberOfRooms) ? {
|
|
32411
|
+
label: t("WS_NUMBER_OF_ROOMS"),
|
|
32404
32412
|
value: propertyDetail.numberOfRooms,
|
|
32405
32413
|
isText: true
|
|
32406
|
-
}, {
|
|
32407
|
-
label: "
|
|
32414
|
+
} : null, isValidValue(propertyDetail.numberOfStudents) ? {
|
|
32415
|
+
label: t("WS_NUMBER_OF_STUDENTS"),
|
|
32408
32416
|
value: propertyDetail.numberOfStudents,
|
|
32409
32417
|
isText: true
|
|
32410
|
-
}, {
|
|
32411
|
-
label: "
|
|
32418
|
+
} : null, isValidValue(propertyDetail.numberOfStaff) ? {
|
|
32419
|
+
label: t("WS_NUMBER_OF_STAFF"),
|
|
32412
32420
|
value: propertyDetail.numberOfStaff,
|
|
32413
32421
|
isText: true
|
|
32414
|
-
}, {
|
|
32415
|
-
label: "
|
|
32422
|
+
} : null, {
|
|
32423
|
+
label: t("WS_USAGE_CATEGORY"),
|
|
32416
32424
|
value: propertyDetail.usageCategory,
|
|
32417
32425
|
isText: true
|
|
32418
|
-
}] : [];
|
|
32426
|
+
}].filter(Boolean) : [];
|
|
32419
32427
|
const waterDemandRows = waterDemandDetail ? [{
|
|
32420
|
-
label: "
|
|
32428
|
+
label: t("WS_CALCULATED_OCCUPANCY"),
|
|
32421
32429
|
value: waterDemandDetail.calculatedOccupancy,
|
|
32422
32430
|
unit: " person"
|
|
32423
32431
|
}, {
|
|
32424
|
-
label: "
|
|
32432
|
+
label: t("WS_APPLIED_LPCD"),
|
|
32425
32433
|
value: waterDemandDetail.chosenLpcd,
|
|
32426
32434
|
unit: " LPD"
|
|
32427
32435
|
}, {
|
|
32428
|
-
label: "
|
|
32436
|
+
label: t("WS_BASE_DEMAND"),
|
|
32429
32437
|
value: waterDemandDetail.baseDemand,
|
|
32430
32438
|
unit: " LPD"
|
|
32431
32439
|
}, {
|
|
32432
|
-
label: "
|
|
32440
|
+
label: t("WS_CONTINGENCY_FLOATING_OCCUPANCY"),
|
|
32433
32441
|
value: waterDemandDetail.contingencyPercentage,
|
|
32434
32442
|
unit: "%"
|
|
32435
32443
|
}, {
|
|
32436
|
-
label: "
|
|
32444
|
+
label: t("WS_TOTAL_WATER_DEMAND"),
|
|
32437
32445
|
value: waterDemandDetail.totalWaterDemandLPD,
|
|
32438
32446
|
unit: " LPD"
|
|
32439
32447
|
}] : [];
|
|
32440
32448
|
const infrastructureChargeRows = infrastructureChargeDetail ? [{
|
|
32441
|
-
label: "
|
|
32449
|
+
label: t("WS_COLONY_CATEGORY"),
|
|
32442
32450
|
value: infrastructureChargeDetail.colonyCategory,
|
|
32443
32451
|
isText: true
|
|
32444
32452
|
}, {
|
|
32445
|
-
label: "
|
|
32453
|
+
label: t("WS_PLOT_AREA"),
|
|
32446
32454
|
value: infrastructureChargeDetail.plotArea,
|
|
32447
32455
|
unit: " (sq. meter.)"
|
|
32448
32456
|
}, {
|
|
32449
|
-
label: "
|
|
32457
|
+
label: t("WS_WATER_RATE"),
|
|
32450
32458
|
value: infrastructureChargeDetail.waterRatePerLPD,
|
|
32451
32459
|
currency: true
|
|
32452
32460
|
}, {
|
|
32453
|
-
label: "
|
|
32461
|
+
label: t("WS_SEWER_RATE"),
|
|
32454
32462
|
value: infrastructureChargeDetail.sewerRatePerLPD,
|
|
32455
32463
|
currency: true
|
|
32456
32464
|
}, {
|
|
32457
|
-
label: "
|
|
32465
|
+
label: t("WS_WATER_INFRA_CHARGES"),
|
|
32458
32466
|
value: infrastructureChargeDetail.waterComponentIFC,
|
|
32459
32467
|
currency: true
|
|
32460
32468
|
}, {
|
|
32461
|
-
label: "
|
|
32469
|
+
label: t("WS_SEWER_INFRA_CHARGES"),
|
|
32462
32470
|
value: infrastructureChargeDetail.sewerComponentIFC,
|
|
32463
32471
|
currency: true
|
|
32464
32472
|
}, ...(infrastructureChargeDetail.rebateAmount > 0 ? [{
|
|
32465
|
-
label: "
|
|
32473
|
+
label: t("WS_REBATE"),
|
|
32466
32474
|
value: infrastructureChargeDetail.rebatePercentage,
|
|
32467
32475
|
unit: "%"
|
|
32468
32476
|
}, {
|
|
32469
|
-
label: "
|
|
32477
|
+
label: t("WS_REBATE_AMOUNT"),
|
|
32470
32478
|
value: infrastructureChargeDetail.rebateAmount,
|
|
32471
32479
|
currency: true
|
|
32472
32480
|
}] : []), ...(infrastructureChargeDetail.institutionalRebateApplied ? [{
|
|
32473
|
-
label: "
|
|
32481
|
+
label: t("WS_INSTITUTIONAL_REBATE"),
|
|
32474
32482
|
value: infrastructureChargeDetail.institutionalRebatePercentage,
|
|
32475
32483
|
unit: "%"
|
|
32476
32484
|
}, {
|
|
32477
|
-
label: "
|
|
32485
|
+
label: t("WS_INSTITUTIONAL_REBATE_AMOUNT"),
|
|
32478
32486
|
value: infrastructureChargeDetail.institutionalRebateAmount,
|
|
32479
32487
|
currency: true
|
|
32480
32488
|
}, {
|
|
32481
|
-
label: "
|
|
32489
|
+
label: t("WS_INSTITUTIONAL_REBATE_REASON"),
|
|
32482
32490
|
value: t(infrastructureChargeDetail.institutionalRebateReason),
|
|
32483
32491
|
isText: true
|
|
32484
32492
|
}] : []), ...(infrastructureChargeDetail.dwellingRebateApplied ? [{
|
|
32485
|
-
label: "
|
|
32493
|
+
label: t("WS_DWELLING_REBATE"),
|
|
32486
32494
|
value: infrastructureChargeDetail.dwellingRebatePercentage,
|
|
32487
32495
|
unit: "%"
|
|
32488
32496
|
}, {
|
|
32489
|
-
label: "
|
|
32497
|
+
label: t("WS_DWELLING_REBATE_AMOUNT"),
|
|
32490
32498
|
value: infrastructureChargeDetail.dwellingRebateAmount,
|
|
32491
32499
|
currency: true
|
|
32492
32500
|
}, {
|
|
32493
|
-
label: "
|
|
32501
|
+
label: t("WS_DWELLING_REBATE_REASON"),
|
|
32494
32502
|
value: t(infrastructureChargeDetail.dwellingRebateReason),
|
|
32495
32503
|
isText: true
|
|
32496
32504
|
}] : []), {
|
|
32497
|
-
label: "
|
|
32505
|
+
label: t("WS_NET_IFC"),
|
|
32498
32506
|
value: infrastructureChargeDetail.netIFC,
|
|
32499
32507
|
currency: true
|
|
32500
32508
|
}] : [];
|
|
@@ -32585,19 +32593,19 @@ const ViewBreakup = _ref => {
|
|
|
32585
32593
|
style: {
|
|
32586
32594
|
margin: "10px 0px"
|
|
32587
32595
|
}
|
|
32588
|
-
}, "
|
|
32596
|
+
}, t("WS_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(DetailRows, {
|
|
32589
32597
|
rows: propertyRows
|
|
32590
32598
|
})), waterDemandRows.length > 0 && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
32591
32599
|
style: {
|
|
32592
32600
|
margin: "10px 0px"
|
|
32593
32601
|
}
|
|
32594
|
-
}, "
|
|
32602
|
+
}, t("WS_WATER_DEMAND_DETAILS")), /*#__PURE__*/React__default.createElement(DetailRows, {
|
|
32595
32603
|
rows: waterDemandRows
|
|
32596
32604
|
})), infrastructureChargeRows.length > 0 && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
32597
32605
|
style: {
|
|
32598
32606
|
margin: "10px 0px"
|
|
32599
32607
|
}
|
|
32600
|
-
}, "
|
|
32608
|
+
}, t("WS_INFRASTRUCTURE_CHARGE_DETAILS")), /*#__PURE__*/React__default.createElement(DetailRows, {
|
|
32601
32609
|
rows: infrastructureChargeRows
|
|
32602
32610
|
})), /*#__PURE__*/React__default.createElement("hr", {
|
|
32603
32611
|
style: {
|
|
@@ -32628,31 +32636,31 @@ const checkForNA$1 = value => {
|
|
|
32628
32636
|
return value ? value : "CS_NA";
|
|
32629
32637
|
};
|
|
32630
32638
|
const WSApplicationDetails = () => {
|
|
32631
|
-
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect121, _data$SewerageConnect122, _PTData$Properties4, _PTData$Properties4$, _PTData$Properties4$$, _PTData$Properties4$$2, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties6$$, _PTData$Properties6$$2, _PTData$Properties7, _PTData$Properties7$, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect125, _data$SewerageConnect126, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties8$$, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$WaterConnection152, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _data$SewerageConnect147, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect148, _data$SewerageConnect149, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect150, _data$SewerageConnect151, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178;
|
|
32639
|
+
var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$SewerageConnect3, _data$SewerageConnect4, _data$WaterConnection5, _data$WaterConnection6, _data$WaterConnection7, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$WaterConnection11, _data$SewerageConnect10, _data$SewerageConnect11, _data$WaterConnection12, _data$SewerageConnect12, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection13, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect13, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$WaterConnection17, _data$WaterConnection18, _data$SewerageConnect17, _data$SewerageConnect18, _appDetailsData$appli, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$SewerageConnect40, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$WaterConnection70, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$SewerageConnect65, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection71, _data$WaterConnection72, _data$WaterConnection73, _data$SewerageConnect66, _data$SewerageConnect67, _data$SewerageConnect68, _data$WaterConnection74, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$SewerageConnect69, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$WaterConnection78, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect73, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect113, _data$SewerageConnect114, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$WaterConnection124, _data$WaterConnection125, _data$SewerageConnect117, _data$SewerageConnect118, _data$SewerageConnect119, _data$SewerageConnect120, _data$WaterConnection126, _data$WaterConnection127, _data$WaterConnection128, _data$WaterConnection129, _data$SewerageConnect121, _data$SewerageConnect122, _data$SewerageConnect123, _data$SewerageConnect124, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$SewerageConnect133, _data$SewerageConnect134, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _data$WaterConnection140, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$SewerageConnect135, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$SewerageConnect145, _data$SewerageConnect146, _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection152, _data$WaterConnection153, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection154, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$SewerageConnect151, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$SewerageConnect164, _data$SewerageConnect165, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect166, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$WaterConnection176, _data$WaterConnection177, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$SewerageConnect179, _data$SewerageConnect180, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$WaterConnection185, _data$WaterConnection186;
|
|
32632
32640
|
const getDisconnectionNoticeSearch = function () {
|
|
32633
32641
|
try {
|
|
32634
|
-
var _data$
|
|
32642
|
+
var _data$WaterConnection188, _data$WaterConnection189, _data$SewerageConnect182, _data$SewerageConnect183;
|
|
32635
32643
|
let key = "ws-waterdisconnectionnotice";
|
|
32636
32644
|
let details = {};
|
|
32637
32645
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
32638
|
-
var _data$
|
|
32646
|
+
var _data$WaterConnection187, _PTData$Properties11;
|
|
32639
32647
|
details = {
|
|
32640
|
-
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
32641
|
-
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32648
|
+
WaterConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$WaterConnection187 = data.WaterConnection) === null || _data$WaterConnection187 === void 0 ? void 0 : _data$WaterConnection187[0], {
|
|
32649
|
+
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : _PTData$Properties11[0]
|
|
32642
32650
|
})]
|
|
32643
32651
|
};
|
|
32644
32652
|
} else {
|
|
32645
|
-
var _data$
|
|
32653
|
+
var _data$SewerageConnect181, _PTData$Properties12;
|
|
32646
32654
|
key = "ws-seweragedisconnectionnotice";
|
|
32647
32655
|
details = {
|
|
32648
|
-
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$
|
|
32649
|
-
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32656
|
+
SewerageConnection: [_extends({}, data === null || data === void 0 ? void 0 : (_data$SewerageConnect181 = data.SewerageConnections) === null || _data$SewerageConnect181 === void 0 ? void 0 : _data$SewerageConnect181[0], {
|
|
32657
|
+
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
|
|
32650
32658
|
})]
|
|
32651
32659
|
};
|
|
32652
32660
|
}
|
|
32653
|
-
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$
|
|
32654
|
-
var _data$
|
|
32655
|
-
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$
|
|
32661
|
+
return Promise.resolve(Digit.WSService.WSDisconnectionNotice((data === null || data === void 0 ? void 0 : (_data$WaterConnection188 = data.WaterConnection) === null || _data$WaterConnection188 === void 0 ? void 0 : (_data$WaterConnection189 = _data$WaterConnection188[0]) === null || _data$WaterConnection189 === void 0 ? void 0 : _data$WaterConnection189.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect182 = data.SewerageConnections) === null || _data$SewerageConnect182 === void 0 ? void 0 : (_data$SewerageConnect183 = _data$SewerageConnect182[0]) === null || _data$SewerageConnect183 === void 0 ? void 0 : _data$SewerageConnect183.tenantId), details, key)).then(function (response) {
|
|
32662
|
+
var _data$WaterConnection190, _data$WaterConnection191, _data$SewerageConnect184, _data$SewerageConnect185;
|
|
32663
|
+
return Promise.resolve(Digit.PaymentService.printReciept((data === null || data === void 0 ? void 0 : (_data$WaterConnection190 = data.WaterConnection) === null || _data$WaterConnection190 === void 0 ? void 0 : (_data$WaterConnection191 = _data$WaterConnection190[0]) === null || _data$WaterConnection191 === void 0 ? void 0 : _data$WaterConnection191.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect184 = data.SewerageConnections) === null || _data$SewerageConnect184 === void 0 ? void 0 : (_data$SewerageConnect185 = _data$SewerageConnect184[0]) === null || _data$SewerageConnect185 === void 0 ? void 0 : _data$SewerageConnect185.tenantId), {
|
|
32656
32664
|
fileStoreIds: response.filestoreIds[0]
|
|
32657
32665
|
})).then(function (fileStore) {
|
|
32658
32666
|
window.open(fileStore[response === null || response === void 0 ? void 0 : response.filestoreIds[0]], "_blank");
|
|
@@ -32733,9 +32741,10 @@ const WSApplicationDetails = () => {
|
|
|
32733
32741
|
const additionalDetails = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.additionalDetails) || {};
|
|
32734
32742
|
const connectionDetails = additionalDetails;
|
|
32735
32743
|
const useDetails = additionalDetails;
|
|
32744
|
+
const propertyAdditionalDetails = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties = PTData.Properties) === null || _PTData$Properties === void 0 ? void 0 : (_PTData$Properties$ = _PTData$Properties[0]) === null || _PTData$Properties$ === void 0 ? void 0 : _PTData$Properties$.additionalDetails) || {};
|
|
32736
32745
|
const djbEmployee = additionalDetails;
|
|
32737
32746
|
const bankDetails = additionalDetails;
|
|
32738
|
-
const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32747
|
+
const propertyAddress = (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties2 = PTData.Properties) === null || _PTData$Properties2 === void 0 ? void 0 : (_PTData$Properties2$ = _PTData$Properties2[0]) === null || _PTData$Properties2$ === void 0 ? void 0 : _PTData$Properties2$.address) || additionalDetails;
|
|
32739
32748
|
const checkifPrivacyenabled = Digit.Hooks.ws.useToCheckPrivacyEnablement({
|
|
32740
32749
|
privacy: {
|
|
32741
32750
|
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection13 = data.WaterConnection) === null || _data$WaterConnection13 === void 0 ? void 0 : (_data$WaterConnection14 = _data$WaterConnection13[0]) === null || _data$WaterConnection14 === void 0 ? void 0 : (_data$WaterConnection15 = _data$WaterConnection14.connectionHolders) === null || _data$WaterConnection15 === void 0 ? void 0 : (_data$WaterConnection16 = _data$WaterConnection15[0]) === null || _data$WaterConnection16 === void 0 ? void 0 : _data$WaterConnection16.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect13 = data.SewerageConnections) === null || _data$SewerageConnect13 === void 0 ? void 0 : (_data$SewerageConnect14 = _data$SewerageConnect13[0]) === null || _data$SewerageConnect14 === void 0 ? void 0 : (_data$SewerageConnect15 = _data$SewerageConnect14.connectionHolders) === null || _data$SewerageConnect15 === void 0 ? void 0 : (_data$SewerageConnect16 = _data$SewerageConnect15[0]) === null || _data$SewerageConnect16 === void 0 ? void 0 : _data$SewerageConnect16.uuid,
|
|
@@ -32757,10 +32766,10 @@ const WSApplicationDetails = () => {
|
|
|
32757
32766
|
}
|
|
32758
32767
|
const handleDownloadPdf = function () {
|
|
32759
32768
|
try {
|
|
32760
|
-
var _data$WaterConnection19, _data$WaterConnection20, _data$SewerageConnect19, _data$SewerageConnect20, _data$WaterConnection21, _data$SewerageConnect21, _PTData$
|
|
32769
|
+
var _data$WaterConnection19, _data$WaterConnection20, _data$SewerageConnect19, _data$SewerageConnect20, _data$WaterConnection21, _data$SewerageConnect21, _PTData$Properties3;
|
|
32761
32770
|
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection19 = data.WaterConnection) === null || _data$WaterConnection19 === void 0 ? void 0 : (_data$WaterConnection20 = _data$WaterConnection19[0]) === null || _data$WaterConnection20 === void 0 ? void 0 : _data$WaterConnection20.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect19 = data.SewerageConnections) === null || _data$SewerageConnect19 === void 0 ? void 0 : (_data$SewerageConnect20 = _data$SewerageConnect19[0]) === null || _data$SewerageConnect20 === void 0 ? void 0 : _data$SewerageConnect20.tenantId);
|
|
32762
32771
|
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection21 = data.WaterConnection) === null || _data$WaterConnection21 === void 0 ? void 0 : _data$WaterConnection21[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect21 = data.SewerageConnections) === null || _data$SewerageConnect21 === void 0 ? void 0 : _data$SewerageConnect21[0]);
|
|
32763
|
-
const PDFdata = getWSAcknowledgementData(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32772
|
+
const PDFdata = getWSAcknowledgementData(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties3 = PTData.Properties) === null || _PTData$Properties3 === void 0 ? void 0 : _PTData$Properties3[0]), tenantInfo, t);
|
|
32764
32773
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
32765
32774
|
setShowOptions(false);
|
|
32766
32775
|
return Promise.resolve();
|
|
@@ -32770,10 +32779,10 @@ const WSApplicationDetails = () => {
|
|
|
32770
32779
|
};
|
|
32771
32780
|
const handleDownloadDisconnectPdf = function () {
|
|
32772
32781
|
try {
|
|
32773
|
-
var _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection24, _data$SewerageConnect24, _PTData$
|
|
32782
|
+
var _data$WaterConnection22, _data$WaterConnection23, _data$SewerageConnect22, _data$SewerageConnect23, _data$WaterConnection24, _data$SewerageConnect24, _PTData$Properties4;
|
|
32774
32783
|
const tenantInfo = (data === null || data === void 0 ? void 0 : (_data$WaterConnection22 = data.WaterConnection) === null || _data$WaterConnection22 === void 0 ? void 0 : (_data$WaterConnection23 = _data$WaterConnection22[0]) === null || _data$WaterConnection23 === void 0 ? void 0 : _data$WaterConnection23.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect22 = data.SewerageConnections) === null || _data$SewerageConnect22 === void 0 ? void 0 : (_data$SewerageConnect23 = _data$SewerageConnect22[0]) === null || _data$SewerageConnect23 === void 0 ? void 0 : _data$SewerageConnect23.tenantId);
|
|
32775
32784
|
let res = (data === null || data === void 0 ? void 0 : (_data$WaterConnection24 = data.WaterConnection) === null || _data$WaterConnection24 === void 0 ? void 0 : _data$WaterConnection24[0]) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect24 = data.SewerageConnections) === null || _data$SewerageConnect24 === void 0 ? void 0 : _data$SewerageConnect24[0]);
|
|
32776
|
-
const PDFdata = getWSDisconnectionApplicationForm(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
32785
|
+
const PDFdata = getWSDisconnectionApplicationForm(_extends({}, res), _extends({}, PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties4 = PTData.Properties) === null || _PTData$Properties4 === void 0 ? void 0 : _PTData$Properties4[0]), tenantInfo, t);
|
|
32777
32786
|
PDFdata.then(ress => Digit.Utils.pdf.generatev1(ress));
|
|
32778
32787
|
setShowOptions(false);
|
|
32779
32788
|
return Promise.resolve();
|
|
@@ -33051,14 +33060,26 @@ const WSApplicationDetails = () => {
|
|
|
33051
33060
|
textStyle: {
|
|
33052
33061
|
whiteSpace: "pre"
|
|
33053
33062
|
}
|
|
33063
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33064
|
+
label: t("WS_OWN_DETAIL_MIDDLE_NAME"),
|
|
33065
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection86 = data.WaterConnection) === null || _data$WaterConnection86 === void 0 ? void 0 : (_data$WaterConnection87 = _data$WaterConnection86[0]) === null || _data$WaterConnection87 === void 0 ? void 0 : (_data$WaterConnection88 = _data$WaterConnection87.connectionHolders) === null || _data$WaterConnection88 === void 0 ? void 0 : (_data$WaterConnection89 = _data$WaterConnection88[0]) === null || _data$WaterConnection89 === void 0 ? void 0 : _data$WaterConnection89.middleName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect81 = data.SewerageConnections) === null || _data$SewerageConnect81 === void 0 ? void 0 : (_data$SewerageConnect82 = _data$SewerageConnect81[0]) === null || _data$SewerageConnect82 === void 0 ? void 0 : (_data$SewerageConnect83 = _data$SewerageConnect82.connectionHolders) === null || _data$SewerageConnect83 === void 0 ? void 0 : (_data$SewerageConnect84 = _data$SewerageConnect83[0]) === null || _data$SewerageConnect84 === void 0 ? void 0 : _data$SewerageConnect84.middleName),
|
|
33066
|
+
textStyle: {
|
|
33067
|
+
whiteSpace: "pre"
|
|
33068
|
+
}
|
|
33069
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33070
|
+
label: t("WS_OWN_DETAIL_LAST_NAME"),
|
|
33071
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection90 = data.WaterConnection) === null || _data$WaterConnection90 === void 0 ? void 0 : (_data$WaterConnection91 = _data$WaterConnection90[0]) === null || _data$WaterConnection91 === void 0 ? void 0 : (_data$WaterConnection92 = _data$WaterConnection91.connectionHolders) === null || _data$WaterConnection92 === void 0 ? void 0 : (_data$WaterConnection93 = _data$WaterConnection92[0]) === null || _data$WaterConnection93 === void 0 ? void 0 : _data$WaterConnection93.lastName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect85 = data.SewerageConnections) === null || _data$SewerageConnect85 === void 0 ? void 0 : (_data$SewerageConnect86 = _data$SewerageConnect85[0]) === null || _data$SewerageConnect86 === void 0 ? void 0 : (_data$SewerageConnect87 = _data$SewerageConnect86.connectionHolders) === null || _data$SewerageConnect87 === void 0 ? void 0 : (_data$SewerageConnect88 = _data$SewerageConnect87[0]) === null || _data$SewerageConnect88 === void 0 ? void 0 : _data$SewerageConnect88.lastName),
|
|
33072
|
+
textStyle: {
|
|
33073
|
+
whiteSpace: "pre"
|
|
33074
|
+
}
|
|
33054
33075
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33055
33076
|
label: t("WS_OWN_DETAIL_GENDER_LABEL"),
|
|
33056
|
-
text: t((data === null || data === void 0 ? void 0 : (_data$
|
|
33077
|
+
text: t((data === null || data === void 0 ? void 0 : (_data$WaterConnection94 = data.WaterConnection) === null || _data$WaterConnection94 === void 0 ? void 0 : (_data$WaterConnection95 = _data$WaterConnection94[0]) === null || _data$WaterConnection95 === void 0 ? void 0 : (_data$WaterConnection96 = _data$WaterConnection95.connectionHolders) === null || _data$WaterConnection96 === void 0 ? void 0 : (_data$WaterConnection97 = _data$WaterConnection96[0]) === null || _data$WaterConnection97 === void 0 ? void 0 : _data$WaterConnection97.gender) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect89 = data.SewerageConnections) === null || _data$SewerageConnect89 === void 0 ? void 0 : (_data$SewerageConnect90 = _data$SewerageConnect89[0]) === null || _data$SewerageConnect90 === void 0 ? void 0 : (_data$SewerageConnect91 = _data$SewerageConnect90.connectionHolders) === null || _data$SewerageConnect91 === void 0 ? void 0 : (_data$SewerageConnect92 = _data$SewerageConnect91[0]) === null || _data$SewerageConnect92 === void 0 ? void 0 : _data$SewerageConnect92.gender)),
|
|
33057
33078
|
textStyle: {
|
|
33058
33079
|
whiteSpace: "pre"
|
|
33059
33080
|
},
|
|
33060
33081
|
privacy: {
|
|
33061
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33082
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection98 = data.WaterConnection) === null || _data$WaterConnection98 === void 0 ? void 0 : (_data$WaterConnection99 = _data$WaterConnection98[0]) === null || _data$WaterConnection99 === void 0 ? void 0 : (_data$WaterConnection100 = _data$WaterConnection99.connectionHolders) === null || _data$WaterConnection100 === void 0 ? void 0 : (_data$WaterConnection101 = _data$WaterConnection100[0]) === null || _data$WaterConnection101 === void 0 ? void 0 : _data$WaterConnection101.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect93 = data.SewerageConnections) === null || _data$SewerageConnect93 === void 0 ? void 0 : (_data$SewerageConnect94 = _data$SewerageConnect93[0]) === null || _data$SewerageConnect94 === void 0 ? void 0 : (_data$SewerageConnect95 = _data$SewerageConnect94.connectionHolders) === null || _data$SewerageConnect95 === void 0 ? void 0 : (_data$SewerageConnect96 = _data$SewerageConnect95[0]) === null || _data$SewerageConnect96 === void 0 ? void 0 : _data$SewerageConnect96.uuid,
|
|
33062
33083
|
fieldName: "gender",
|
|
33063
33084
|
model: "WnSConnectionOwner",
|
|
33064
33085
|
showValue: false,
|
|
@@ -33075,12 +33096,12 @@ const WSApplicationDetails = () => {
|
|
|
33075
33096
|
}
|
|
33076
33097
|
}), !isMutation && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33077
33098
|
label: t("WS_OWN_DETAIL_FATHER_OR_HUSBAND_NAME"),
|
|
33078
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33099
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection102 = data.WaterConnection) === null || _data$WaterConnection102 === void 0 ? void 0 : (_data$WaterConnection103 = _data$WaterConnection102[0]) === null || _data$WaterConnection103 === void 0 ? void 0 : (_data$WaterConnection104 = _data$WaterConnection103.connectionHolders) === null || _data$WaterConnection104 === void 0 ? void 0 : (_data$WaterConnection105 = _data$WaterConnection104[0]) === null || _data$WaterConnection105 === void 0 ? void 0 : _data$WaterConnection105.fatherOrHusbandName) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect97 = data.SewerageConnections) === null || _data$SewerageConnect97 === void 0 ? void 0 : (_data$SewerageConnect98 = _data$SewerageConnect97[0]) === null || _data$SewerageConnect98 === void 0 ? void 0 : (_data$SewerageConnect99 = _data$SewerageConnect98.connectionHolders) === null || _data$SewerageConnect99 === void 0 ? void 0 : (_data$SewerageConnect100 = _data$SewerageConnect99[0]) === null || _data$SewerageConnect100 === void 0 ? void 0 : _data$SewerageConnect100.fatherOrHusbandName) || t("CS_NA"),
|
|
33079
33100
|
textStyle: {
|
|
33080
33101
|
whiteSpace: "pre"
|
|
33081
33102
|
},
|
|
33082
33103
|
privacy: {
|
|
33083
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33104
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection106 = data.WaterConnection) === null || _data$WaterConnection106 === void 0 ? void 0 : (_data$WaterConnection107 = _data$WaterConnection106[0]) === null || _data$WaterConnection107 === void 0 ? void 0 : (_data$WaterConnection108 = _data$WaterConnection107.connectionHolders) === null || _data$WaterConnection108 === void 0 ? void 0 : (_data$WaterConnection109 = _data$WaterConnection108[0]) === null || _data$WaterConnection109 === void 0 ? void 0 : _data$WaterConnection109.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect101 = data.SewerageConnections) === null || _data$SewerageConnect101 === void 0 ? void 0 : (_data$SewerageConnect102 = _data$SewerageConnect101[0]) === null || _data$SewerageConnect102 === void 0 ? void 0 : (_data$SewerageConnect103 = _data$SewerageConnect102.connectionHolders) === null || _data$SewerageConnect103 === void 0 ? void 0 : (_data$SewerageConnect104 = _data$SewerageConnect103[0]) === null || _data$SewerageConnect104 === void 0 ? void 0 : _data$SewerageConnect104.uuid,
|
|
33084
33105
|
fieldName: "fatherOrHusbandName",
|
|
33085
33106
|
model: "WnSConnectionOwner",
|
|
33086
33107
|
showValue: false,
|
|
@@ -33097,12 +33118,12 @@ const WSApplicationDetails = () => {
|
|
|
33097
33118
|
}
|
|
33098
33119
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33099
33120
|
label: t("WS_OWN_DETAIL_RELATION_LABEL"),
|
|
33100
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33121
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection110 = data.WaterConnection) === null || _data$WaterConnection110 === void 0 ? void 0 : (_data$WaterConnection111 = _data$WaterConnection110[0]) === null || _data$WaterConnection111 === void 0 ? void 0 : (_data$WaterConnection112 = _data$WaterConnection111.connectionHolders) === null || _data$WaterConnection112 === void 0 ? void 0 : (_data$WaterConnection113 = _data$WaterConnection112[0]) === null || _data$WaterConnection113 === void 0 ? void 0 : _data$WaterConnection113.relationship) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect105 = data.SewerageConnections) === null || _data$SewerageConnect105 === void 0 ? void 0 : (_data$SewerageConnect106 = _data$SewerageConnect105[0]) === null || _data$SewerageConnect106 === void 0 ? void 0 : (_data$SewerageConnect107 = _data$SewerageConnect106.connectionHolders) === null || _data$SewerageConnect107 === void 0 ? void 0 : (_data$SewerageConnect108 = _data$SewerageConnect107[0]) === null || _data$SewerageConnect108 === void 0 ? void 0 : _data$SewerageConnect108.relationship) || t("CS_NA"),
|
|
33101
33122
|
textStyle: {
|
|
33102
33123
|
whiteSpace: "pre"
|
|
33103
33124
|
},
|
|
33104
33125
|
privacy: {
|
|
33105
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33126
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection114 = data.WaterConnection) === null || _data$WaterConnection114 === void 0 ? void 0 : (_data$WaterConnection115 = _data$WaterConnection114[0]) === null || _data$WaterConnection115 === void 0 ? void 0 : (_data$WaterConnection116 = _data$WaterConnection115.connectionHolders) === null || _data$WaterConnection116 === void 0 ? void 0 : (_data$WaterConnection117 = _data$WaterConnection116[0]) === null || _data$WaterConnection117 === void 0 ? void 0 : _data$WaterConnection117.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect109 = data.SewerageConnections) === null || _data$SewerageConnect109 === void 0 ? void 0 : (_data$SewerageConnect110 = _data$SewerageConnect109[0]) === null || _data$SewerageConnect110 === void 0 ? void 0 : (_data$SewerageConnect111 = _data$SewerageConnect110.connectionHolders) === null || _data$SewerageConnect111 === void 0 ? void 0 : (_data$SewerageConnect112 = _data$SewerageConnect111[0]) === null || _data$SewerageConnect112 === void 0 ? void 0 : _data$SewerageConnect112.uuid,
|
|
33106
33127
|
fieldName: "relationship",
|
|
33107
33128
|
model: "WnSConnection",
|
|
33108
33129
|
showValue: false,
|
|
@@ -33119,9 +33140,9 @@ const WSApplicationDetails = () => {
|
|
|
33119
33140
|
}
|
|
33120
33141
|
})), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33121
33142
|
label: t("WS_OWN_DETAIL_CROSADD"),
|
|
33122
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33143
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection118 = data.WaterConnection) === null || _data$WaterConnection118 === void 0 ? void 0 : (_data$WaterConnection119 = _data$WaterConnection118[0]) === null || _data$WaterConnection119 === void 0 ? void 0 : (_data$WaterConnection120 = _data$WaterConnection119.connectionHolders) === null || _data$WaterConnection120 === void 0 ? void 0 : (_data$WaterConnection121 = _data$WaterConnection120[0]) === null || _data$WaterConnection121 === void 0 ? void 0 : _data$WaterConnection121.correspondenceAddress) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect113 = data.SewerageConnections) === null || _data$SewerageConnect113 === void 0 ? void 0 : (_data$SewerageConnect114 = _data$SewerageConnect113[0]) === null || _data$SewerageConnect114 === void 0 ? void 0 : (_data$SewerageConnect115 = _data$SewerageConnect114.connectionHolders) === null || _data$SewerageConnect115 === void 0 ? void 0 : (_data$SewerageConnect116 = _data$SewerageConnect115[0]) === null || _data$SewerageConnect116 === void 0 ? void 0 : _data$SewerageConnect116.correspondenceAddress) || t("CS_NA"),
|
|
33123
33144
|
privacy: {
|
|
33124
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33145
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection122 = data.WaterConnection) === null || _data$WaterConnection122 === void 0 ? void 0 : (_data$WaterConnection123 = _data$WaterConnection122[0]) === null || _data$WaterConnection123 === void 0 ? void 0 : (_data$WaterConnection124 = _data$WaterConnection123.connectionHolders) === null || _data$WaterConnection124 === void 0 ? void 0 : (_data$WaterConnection125 = _data$WaterConnection124[0]) === null || _data$WaterConnection125 === void 0 ? void 0 : _data$WaterConnection125.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect117 = data.SewerageConnections) === null || _data$SewerageConnect117 === void 0 ? void 0 : (_data$SewerageConnect118 = _data$SewerageConnect117[0]) === null || _data$SewerageConnect118 === void 0 ? void 0 : (_data$SewerageConnect119 = _data$SewerageConnect118.connectionHolders) === null || _data$SewerageConnect119 === void 0 ? void 0 : (_data$SewerageConnect120 = _data$SewerageConnect119[0]) === null || _data$SewerageConnect120 === void 0 ? void 0 : _data$SewerageConnect120.uuid,
|
|
33125
33146
|
fieldName: "correspondenceAddress",
|
|
33126
33147
|
model: "WnSConnectionOwner",
|
|
33127
33148
|
showValue: false,
|
|
@@ -33138,12 +33159,12 @@ const WSApplicationDetails = () => {
|
|
|
33138
33159
|
}
|
|
33139
33160
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33140
33161
|
label: t("WS_OWN_DETAIL_EMAIL_ID_LABEL"),
|
|
33141
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33162
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection126 = data.WaterConnection) === null || _data$WaterConnection126 === void 0 ? void 0 : (_data$WaterConnection127 = _data$WaterConnection126[0]) === null || _data$WaterConnection127 === void 0 ? void 0 : (_data$WaterConnection128 = _data$WaterConnection127.connectionHolders) === null || _data$WaterConnection128 === void 0 ? void 0 : (_data$WaterConnection129 = _data$WaterConnection128[0]) === null || _data$WaterConnection129 === void 0 ? void 0 : _data$WaterConnection129.emailId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect121 = data.SewerageConnections) === null || _data$SewerageConnect121 === void 0 ? void 0 : (_data$SewerageConnect122 = _data$SewerageConnect121[0]) === null || _data$SewerageConnect122 === void 0 ? void 0 : (_data$SewerageConnect123 = _data$SewerageConnect122.connectionHolders) === null || _data$SewerageConnect123 === void 0 ? void 0 : (_data$SewerageConnect124 = _data$SewerageConnect123[0]) === null || _data$SewerageConnect124 === void 0 ? void 0 : _data$SewerageConnect124.emailId) || "NA",
|
|
33142
33163
|
textStyle: {
|
|
33143
33164
|
whiteSpace: "pre"
|
|
33144
33165
|
},
|
|
33145
33166
|
privacy: {
|
|
33146
|
-
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$
|
|
33167
|
+
uuid: applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS") ? data === null || data === void 0 ? void 0 : (_data$WaterConnection130 = data.WaterConnection) === null || _data$WaterConnection130 === void 0 ? void 0 : (_data$WaterConnection131 = _data$WaterConnection130[0]) === null || _data$WaterConnection131 === void 0 ? void 0 : (_data$WaterConnection132 = _data$WaterConnection131.connectionHolders) === null || _data$WaterConnection132 === void 0 ? void 0 : (_data$WaterConnection133 = _data$WaterConnection132[0]) === null || _data$WaterConnection133 === void 0 ? void 0 : _data$WaterConnection133.uuid : data === null || data === void 0 ? void 0 : (_data$SewerageConnect125 = data.SewerageConnections) === null || _data$SewerageConnect125 === void 0 ? void 0 : (_data$SewerageConnect126 = _data$SewerageConnect125[0]) === null || _data$SewerageConnect126 === void 0 ? void 0 : (_data$SewerageConnect127 = _data$SewerageConnect126.connectionHolders) === null || _data$SewerageConnect127 === void 0 ? void 0 : (_data$SewerageConnect128 = _data$SewerageConnect127[0]) === null || _data$SewerageConnect128 === void 0 ? void 0 : _data$SewerageConnect128.uuid,
|
|
33147
33168
|
fieldName: "connectionHoldersEmailId",
|
|
33148
33169
|
model: "WnSConnectionOwner",
|
|
33149
33170
|
showValue: false,
|
|
@@ -33164,30 +33185,30 @@ const WSApplicationDetails = () => {
|
|
|
33164
33185
|
}
|
|
33165
33186
|
}, t("WS_COMMON_PROPERTY_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33166
33187
|
label: t("WS_PROPERTY_ID_LABEL"),
|
|
33167
|
-
text: (data === null || data === void 0 ? void 0 : (_data$
|
|
33188
|
+
text: (data === null || data === void 0 ? void 0 : (_data$WaterConnection134 = data.WaterConnection) === null || _data$WaterConnection134 === void 0 ? void 0 : (_data$WaterConnection135 = _data$WaterConnection134[0]) === null || _data$WaterConnection135 === void 0 ? void 0 : _data$WaterConnection135.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect129 = data.SewerageConnections) === null || _data$SewerageConnect129 === void 0 ? void 0 : (_data$SewerageConnect130 = _data$SewerageConnect129[0]) === null || _data$SewerageConnect130 === void 0 ? void 0 : _data$SewerageConnect130.propertyId),
|
|
33168
33189
|
textStyle: {
|
|
33169
33190
|
wordBreak: "break-word"
|
|
33170
33191
|
}
|
|
33171
33192
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33172
33193
|
label: t("WS_OWN_DETAIL_OWN_NAME_LABEL"),
|
|
33173
|
-
text: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
33194
|
+
text: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties5 = PTData.Properties) === null || _PTData$Properties5 === void 0 ? void 0 : (_PTData$Properties5$ = _PTData$Properties5[0]) === null || _PTData$Properties5$ === void 0 ? void 0 : (_PTData$Properties5$$ = _PTData$Properties5$.owners.sort((a, b) => {
|
|
33174
33195
|
var _a$additionalDetails, _b$additionalDetails;
|
|
33175
33196
|
return (a === null || a === void 0 ? void 0 : (_a$additionalDetails = a.additionalDetails) === null || _a$additionalDetails === void 0 ? void 0 : _a$additionalDetails.ownerSequence) - (b === null || b === void 0 ? void 0 : (_b$additionalDetails = b.additionalDetails) === null || _b$additionalDetails === void 0 ? void 0 : _b$additionalDetails.ownerSequence);
|
|
33176
|
-
})) === null || _PTData$
|
|
33197
|
+
})) === null || _PTData$Properties5$$ === void 0 ? void 0 : (_PTData$Properties5$$2 = _PTData$Properties5$$[0]) === null || _PTData$Properties5$$2 === void 0 ? void 0 : _PTData$Properties5$$2.name,
|
|
33177
33198
|
textStyle: {
|
|
33178
33199
|
whiteSpace: "pre"
|
|
33179
33200
|
}
|
|
33180
33201
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33181
33202
|
label: t("WS_PROPERTY_ADDRESS"),
|
|
33182
|
-
text: getAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
33203
|
+
text: getAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties6 = PTData.Properties) === null || _PTData$Properties6 === void 0 ? void 0 : (_PTData$Properties6$ = _PTData$Properties6[0]) === null || _PTData$Properties6$ === void 0 ? void 0 : _PTData$Properties6$.address, t) || t("CS_NA"),
|
|
33183
33204
|
textStyle: {
|
|
33184
33205
|
wordBreak: "break-word"
|
|
33185
33206
|
},
|
|
33186
33207
|
privacy: {
|
|
33187
|
-
uuid: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
33208
|
+
uuid: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties7 = PTData.Properties) === null || _PTData$Properties7 === void 0 ? void 0 : (_PTData$Properties7$ = _PTData$Properties7[0]) === null || _PTData$Properties7$ === void 0 ? void 0 : (_PTData$Properties7$$ = _PTData$Properties7$.owners) === null || _PTData$Properties7$$ === void 0 ? void 0 : (_PTData$Properties7$$2 = _PTData$Properties7$$[0]) === null || _PTData$Properties7$$2 === void 0 ? void 0 : _PTData$Properties7$$2.uuid,
|
|
33188
33209
|
fieldName: ["doorNo", "street", "landmark"],
|
|
33189
33210
|
model: "Property",
|
|
33190
|
-
hide: !(PTData !== null && PTData !== void 0 && (_PTData$
|
|
33211
|
+
hide: !(PTData !== null && PTData !== void 0 && (_PTData$Properties8 = PTData.Properties) !== null && _PTData$Properties8 !== void 0 && (_PTData$Properties8$ = _PTData$Properties8[0]) !== null && _PTData$Properties8$ !== void 0 && _PTData$Properties8$.address),
|
|
33191
33212
|
showValue: true,
|
|
33192
33213
|
loadData: {
|
|
33193
33214
|
serviceName: "/property-services/property/_search",
|
|
@@ -33205,7 +33226,7 @@ const WSApplicationDetails = () => {
|
|
|
33205
33226
|
}
|
|
33206
33227
|
}
|
|
33207
33228
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33208
|
-
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33229
|
+
to: "/digit-ui/citizen/commonpt/view-property?propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : (_data$WaterConnection137 = _data$WaterConnection136[0]) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : (_data$SewerageConnect132 = _data$SewerageConnect131[0]) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132.propertyId)) + "&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : (_data$WaterConnection139 = _data$WaterConnection138[0]) === null || _data$WaterConnection139 === void 0 ? void 0 : _data$WaterConnection139.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : (_data$SewerageConnect134 = _data$SewerageConnect133[0]) === null || _data$SewerageConnect134 === void 0 ? void 0 : _data$SewerageConnect134.tenantId))
|
|
33209
33230
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
33210
33231
|
style: {
|
|
33211
33232
|
textAlign: "left"
|
|
@@ -33285,16 +33306,16 @@ const WSApplicationDetails = () => {
|
|
|
33285
33306
|
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType)))
|
|
33286
33307
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33287
33308
|
label: t("WS_PROPERTY_CATEGORY"),
|
|
33288
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory)))
|
|
33309
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe === void 0 ? void 0 : _propertyAdditionalDe.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe2 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe2 === void 0 ? void 0 : _propertyAdditionalDe2.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : _PTData$Properties9$.usageCategory)))
|
|
33289
33310
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33290
33311
|
label: t("WS_PROPERTY_TYPE"),
|
|
33291
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType)))
|
|
33312
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe3 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe3 === void 0 ? void 0 : _propertyAdditionalDe3.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe4 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe4 === void 0 ? void 0 : _propertyAdditionalDe4.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyType) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : _PTData$Properties0$.propertyType)))
|
|
33292
33313
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33293
33314
|
label: t("WS_WATER_CONNECTION_USAGE_TYPE"),
|
|
33294
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType)))
|
|
33315
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe5 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe5 === void 0 ? void 0 : _propertyAdditionalDe5.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe6 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe6 === void 0 ? void 0 : _propertyAdditionalDe6.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.waterConnectionUsageType)))
|
|
33295
33316
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33296
33317
|
label: t("WS_NUMBER_OF_FLOORS"),
|
|
33297
|
-
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors)))
|
|
33318
|
+
text: "" + t(checkForNA$1((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : _PTData$Properties1$.noOfFloors)))
|
|
33298
33319
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
33299
33320
|
label: t("WS_PLOT_AREA"),
|
|
33300
33321
|
text: "" + t(checkForNA$1(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))
|
|
@@ -33365,7 +33386,7 @@ const WSApplicationDetails = () => {
|
|
|
33365
33386
|
styles: {
|
|
33366
33387
|
fontSize: "28px"
|
|
33367
33388
|
}
|
|
33368
|
-
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$
|
|
33389
|
+
}, t("WS_COMMON_DOCUMENT_DETAILS")), (data === null || data === void 0 ? void 0 : (_data$WaterConnection140 = data.WaterConnection) === null || _data$WaterConnection140 === void 0 ? void 0 : (_data$WaterConnection141 = _data$WaterConnection140[0]) === null || _data$WaterConnection141 === void 0 ? void 0 : _data$WaterConnection141.documents) && (data === null || data === void 0 ? void 0 : (_data$WaterConnection142 = data.WaterConnection) === null || _data$WaterConnection142 === void 0 ? void 0 : (_data$WaterConnection143 = _data$WaterConnection142[0]) === null || _data$WaterConnection143 === void 0 ? void 0 : _data$WaterConnection143.documents.reduce((acc, current) => {
|
|
33369
33390
|
const x = acc.find(item => item.documentType === current.documentType);
|
|
33370
33391
|
if (!x) {
|
|
33371
33392
|
return acc.concat([current]);
|
|
@@ -33373,11 +33394,11 @@ const WSApplicationDetails = () => {
|
|
|
33373
33394
|
return acc;
|
|
33374
33395
|
}
|
|
33375
33396
|
}, []).map((doc, index, array) => {
|
|
33376
|
-
var _doc$documentType, _data$
|
|
33397
|
+
var _doc$documentType, _data$WaterConnection144, _data$WaterConnection145;
|
|
33377
33398
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
33378
33399
|
key: "doc-" + index
|
|
33379
33400
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType = doc.documentType) === null || _doc$documentType === void 0 ? void 0 : _doc$documentType.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
33380
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33401
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection144 = data.WaterConnection) === null || _data$WaterConnection144 === void 0 ? void 0 : (_data$WaterConnection145 = _data$WaterConnection144[0]) === null || _data$WaterConnection145 === void 0 ? void 0 : _data$WaterConnection145.documents,
|
|
33381
33402
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33382
33403
|
index: index
|
|
33383
33404
|
}), array.length != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
@@ -33389,7 +33410,7 @@ const WSApplicationDetails = () => {
|
|
|
33389
33410
|
marginBottom: "20px"
|
|
33390
33411
|
}
|
|
33391
33412
|
}) : null)));
|
|
33392
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
33413
|
+
})), (data === null || data === void 0 ? void 0 : (_data$SewerageConnect135 = data.SewerageConnections) === null || _data$SewerageConnect135 === void 0 ? void 0 : (_data$SewerageConnect136 = _data$SewerageConnect135[0]) === null || _data$SewerageConnect136 === void 0 ? void 0 : _data$SewerageConnect136.documents) && (data === null || data === void 0 ? void 0 : (_data$SewerageConnect137 = data.SewerageConnections) === null || _data$SewerageConnect137 === void 0 ? void 0 : (_data$SewerageConnect138 = _data$SewerageConnect137[0]) === null || _data$SewerageConnect138 === void 0 ? void 0 : _data$SewerageConnect138.documents.reduce((acc, current) => {
|
|
33393
33414
|
const x = acc.find(item => item.documentType === current.documentType);
|
|
33394
33415
|
if (!x) {
|
|
33395
33416
|
return acc.concat([current]);
|
|
@@ -33397,11 +33418,11 @@ const WSApplicationDetails = () => {
|
|
|
33397
33418
|
return acc;
|
|
33398
33419
|
}
|
|
33399
33420
|
}, []).map((doc, index, array) => {
|
|
33400
|
-
var _doc$documentType2, _data$
|
|
33421
|
+
var _doc$documentType2, _data$SewerageConnect139, _data$SewerageConnect140;
|
|
33401
33422
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
33402
33423
|
key: "doc-" + index
|
|
33403
33424
|
}, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t(doc === null || doc === void 0 ? void 0 : (_doc$documentType2 = doc.documentType) === null || _doc$documentType2 === void 0 ? void 0 : _doc$documentType2.split(".").slice(0, 2).join("_"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(WSDocument, {
|
|
33404
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33425
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect139 = data.SewerageConnections) === null || _data$SewerageConnect139 === void 0 ? void 0 : (_data$SewerageConnect140 = _data$SewerageConnect139[0]) === null || _data$SewerageConnect140 === void 0 ? void 0 : _data$SewerageConnect140.documents,
|
|
33405
33426
|
Code: doc === null || doc === void 0 ? void 0 : doc.documentType,
|
|
33406
33427
|
index: index
|
|
33407
33428
|
}), array.length != index + 1 ? /*#__PURE__*/React__default.createElement("hr", {
|
|
@@ -33413,40 +33434,40 @@ const WSApplicationDetails = () => {
|
|
|
33413
33434
|
marginBottom: "20px"
|
|
33414
33435
|
}
|
|
33415
33436
|
}) : null)));
|
|
33416
|
-
})), (data === null || data === void 0 ? void 0 : (_data$
|
|
33437
|
+
})), (data === null || data === void 0 ? void 0 : (_data$WaterConnection146 = data.WaterConnection) === null || _data$WaterConnection146 === void 0 ? void 0 : (_data$WaterConnection147 = _data$WaterConnection146[0]) === null || _data$WaterConnection147 === void 0 ? void 0 : _data$WaterConnection147.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection148 = data.WaterConnection) === null || _data$WaterConnection148 === void 0 ? void 0 : (_data$WaterConnection149 = _data$WaterConnection148[0]) === null || _data$WaterConnection149 === void 0 ? void 0 : _data$WaterConnection149.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$WaterConnection150 = data.WaterConnection) === null || _data$WaterConnection150 === void 0 ? void 0 : (_data$WaterConnection151 = _data$WaterConnection150[0]) === null || _data$WaterConnection151 === void 0 ? void 0 : _data$WaterConnection151.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect141 = data.SewerageConnections) === null || _data$SewerageConnect141 === void 0 ? void 0 : (_data$SewerageConnect142 = _data$SewerageConnect141[0]) === null || _data$SewerageConnect142 === void 0 ? void 0 : _data$SewerageConnect142.applicationStatus) === "PENDING_FOR_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect143 = data.SewerageConnections) === null || _data$SewerageConnect143 === void 0 ? void 0 : (_data$SewerageConnect144 = _data$SewerageConnect143[0]) === null || _data$SewerageConnect144 === void 0 ? void 0 : _data$SewerageConnect144.applicationStatus) === "PENDING_FOR_FINAL_PAYMENT" || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect145 = data.SewerageConnections) === null || _data$SewerageConnect145 === void 0 ? void 0 : (_data$SewerageConnect146 = _data$SewerageConnect145[0]) === null || _data$SewerageConnect146 === void 0 ? void 0 : _data$SewerageConnect146.applicationStatus) === "PENDING_FOR_ADDITIONAL_PAYMENT" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33417
33438
|
to: {
|
|
33418
33439
|
pathname: "/digit-ui/citizen/payment/my-bills/" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService) + "/" + stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+"),
|
|
33419
|
-
search: "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33440
|
+
search: "?workflow=WNS&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection152 = data.WaterConnection) === null || _data$WaterConnection152 === void 0 ? void 0 : (_data$WaterConnection153 = _data$WaterConnection152[0]) === null || _data$WaterConnection153 === void 0 ? void 0 : _data$WaterConnection153.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect147 = data.SewerageConnections) === null || _data$SewerageConnect147 === void 0 ? void 0 : (_data$SewerageConnect148 = _data$SewerageConnect147[0]) === null || _data$SewerageConnect148 === void 0 ? void 0 : _data$SewerageConnect148.tenantId)) + "&ConsumerName=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection154 = data.WaterConnection) === null || _data$WaterConnection154 === void 0 ? void 0 : (_data$WaterConnection155 = _data$WaterConnection154[0]) === null || _data$WaterConnection155 === void 0 ? void 0 : (_data$WaterConnection156 = _data$WaterConnection155.connectionHolders) === null || _data$WaterConnection156 === void 0 ? void 0 : _data$WaterConnection156.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect149 = data.SewerageConnections) === null || _data$SewerageConnect149 === void 0 ? void 0 : (_data$SewerageConnect150 = _data$SewerageConnect149[0]) === null || _data$SewerageConnect150 === void 0 ? void 0 : (_data$SewerageConnect151 = _data$SewerageConnect150.connectionHolders) === null || _data$SewerageConnect151 === void 0 ? void 0 : _data$SewerageConnect151.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))) + "&isDisoconnectFlow=" + (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false) + "&consumerCode=" + (paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode),
|
|
33420
33441
|
state: {
|
|
33421
33442
|
fromApplicationDetails: true
|
|
33422
33443
|
}
|
|
33423
33444
|
}
|
|
33424
33445
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33425
33446
|
label: t("MAKE_PAYMENT")
|
|
33426
|
-
})) : null, !(data !== null && data !== void 0 && (_data$
|
|
33447
|
+
})) : null, !(data !== null && data !== void 0 && (_data$WaterConnection157 = data.WaterConnection) !== null && _data$WaterConnection157 !== void 0 && (_data$WaterConnection158 = _data$WaterConnection157[0]) !== null && _data$WaterConnection158 !== void 0 && _data$WaterConnection158.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$WaterConnection159 = data.WaterConnection) !== null && _data$WaterConnection159 !== void 0 && (_data$WaterConnection160 = _data$WaterConnection159[0]) !== null && _data$WaterConnection160 !== void 0 && _data$WaterConnection160.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || !(data !== null && data !== void 0 && (_data$SewerageConnect152 = data.SewerageConnections) !== null && _data$SewerageConnect152 !== void 0 && (_data$SewerageConnect153 = _data$SewerageConnect152[0]) !== null && _data$SewerageConnect153 !== void 0 && _data$SewerageConnect153.applicationType.includes("DISCONNECT")) && data !== null && data !== void 0 && (_data$SewerageConnect154 = data.SewerageConnections) !== null && _data$SewerageConnect154 !== void 0 && (_data$SewerageConnect155 = _data$SewerageConnect154[0]) !== null && _data$SewerageConnect155 !== void 0 && _data$SewerageConnect155.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33427
33448
|
to: {
|
|
33428
|
-
pathname: isMutation ? "/digit-ui/citizen/ws/mutation-application" : "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33429
|
-
search: isMutation ? "?applicationNumber=" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33449
|
+
pathname: isMutation ? "/digit-ui/citizen/ws/mutation-application" : "/digit-ui/citizen/ws/edit-application/" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection161 = data.WaterConnection) === null || _data$WaterConnection161 === void 0 ? void 0 : (_data$WaterConnection162 = _data$WaterConnection161[0]) === null || _data$WaterConnection162 === void 0 ? void 0 : _data$WaterConnection162.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect156 = data.SewerageConnections) === null || _data$SewerageConnect156 === void 0 ? void 0 : (_data$SewerageConnect157 = _data$SewerageConnect156[0]) === null || _data$SewerageConnect157 === void 0 ? void 0 : _data$SewerageConnect157.tenantId)),
|
|
33450
|
+
search: isMutation ? "?applicationNumber=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection163 = data.WaterConnection) === null || _data$WaterConnection163 === void 0 ? void 0 : (_data$WaterConnection164 = _data$WaterConnection163[0]) === null || _data$WaterConnection164 === void 0 ? void 0 : _data$WaterConnection164.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect158 = data.SewerageConnections) === null || _data$SewerageConnect158 === void 0 ? void 0 : (_data$SewerageConnect159 = _data$SewerageConnect158[0]) === null || _data$SewerageConnect159 === void 0 ? void 0 : _data$SewerageConnect159.applicationNo)) + "&tenantId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection165 = data.WaterConnection) === null || _data$WaterConnection165 === void 0 ? void 0 : (_data$WaterConnection166 = _data$WaterConnection165[0]) === null || _data$WaterConnection166 === void 0 ? void 0 : _data$WaterConnection166.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect160 = data.SewerageConnections) === null || _data$SewerageConnect160 === void 0 ? void 0 : (_data$SewerageConnect161 = _data$SewerageConnect160[0]) === null || _data$SewerageConnect161 === void 0 ? void 0 : _data$SewerageConnect161.tenantId)) + "&service=" + (data !== null && data !== void 0 && (_data$WaterConnection167 = data.WaterConnection) !== null && _data$WaterConnection167 !== void 0 && _data$WaterConnection167[0] ? "WATER" : "SEWERAGE") + "&propertyId=" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection168 = data.WaterConnection) === null || _data$WaterConnection168 === void 0 ? void 0 : (_data$WaterConnection169 = _data$WaterConnection168[0]) === null || _data$WaterConnection169 === void 0 ? void 0 : _data$WaterConnection169.propertyId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect162 = data.SewerageConnections) === null || _data$SewerageConnect162 === void 0 ? void 0 : (_data$SewerageConnect163 = _data$SewerageConnect162[0]) === null || _data$SewerageConnect163 === void 0 ? void 0 : _data$SewerageConnect163.propertyId)) : "",
|
|
33430
33451
|
state: {
|
|
33431
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33452
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection170 = data.WaterConnection) === null || _data$WaterConnection170 === void 0 ? void 0 : (_data$WaterConnection171 = _data$WaterConnection170[0]) === null || _data$WaterConnection171 === void 0 ? void 0 : _data$WaterConnection171.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect164 = data.SewerageConnections) === null || _data$SewerageConnect164 === void 0 ? void 0 : (_data$SewerageConnect165 = _data$SewerageConnect164[0]) === null || _data$SewerageConnect165 === void 0 ? void 0 : _data$SewerageConnect165.applicationNo))
|
|
33432
33453
|
}
|
|
33433
33454
|
}
|
|
33434
33455
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33435
33456
|
label: t("COMMON_EDIT")
|
|
33436
|
-
})) : null, data !== null && data !== void 0 && (_data$
|
|
33457
|
+
})) : null, data !== null && data !== void 0 && (_data$WaterConnection172 = data.WaterConnection) !== null && _data$WaterConnection172 !== void 0 && (_data$WaterConnection173 = _data$WaterConnection172[0]) !== null && _data$WaterConnection173 !== void 0 && _data$WaterConnection173.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$WaterConnection174 = data.WaterConnection) !== null && _data$WaterConnection174 !== void 0 && (_data$WaterConnection175 = _data$WaterConnection174[0]) !== null && _data$WaterConnection175 !== void 0 && _data$WaterConnection175.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") || data !== null && data !== void 0 && (_data$SewerageConnect166 = data.SewerageConnections) !== null && _data$SewerageConnect166 !== void 0 && (_data$SewerageConnect167 = _data$SewerageConnect166[0]) !== null && _data$SewerageConnect167 !== void 0 && _data$SewerageConnect167.applicationType.includes("DISCONNECT") && data !== null && data !== void 0 && (_data$SewerageConnect168 = data.SewerageConnections) !== null && _data$SewerageConnect168 !== void 0 && (_data$SewerageConnect169 = _data$SewerageConnect168[0]) !== null && _data$SewerageConnect169 !== void 0 && _data$SewerageConnect169.applicationStatus.includes("PENDING_FOR_CITIZEN_ACTION") ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
33437
33458
|
to: {
|
|
33438
33459
|
pathname: "/digit-ui/citizen/ws/resubmit-disconnect-application",
|
|
33439
33460
|
state: {
|
|
33440
|
-
id: "" + ((data === null || data === void 0 ? void 0 : (_data$
|
|
33461
|
+
id: "" + ((data === null || data === void 0 ? void 0 : (_data$WaterConnection176 = data.WaterConnection) === null || _data$WaterConnection176 === void 0 ? void 0 : (_data$WaterConnection177 = _data$WaterConnection176[0]) === null || _data$WaterConnection177 === void 0 ? void 0 : _data$WaterConnection177.applicationNo) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect170 = data.SewerageConnections) === null || _data$SewerageConnect170 === void 0 ? void 0 : (_data$SewerageConnect171 = _data$SewerageConnect170[0]) === null || _data$SewerageConnect171 === void 0 ? void 0 : _data$SewerageConnect171.applicationNo))
|
|
33441
33462
|
}
|
|
33442
33463
|
}
|
|
33443
33464
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
33444
33465
|
label: t("RESUBMIT_APPLICATION"),
|
|
33445
33466
|
onSubmit: Digit.SessionStorage.set("WS_DISCONNECTION", applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("SW") ? {
|
|
33446
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
33467
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$SewerageConnect172 = data.SewerageConnections) === null || _data$SewerageConnect172 === void 0 ? void 0 : _data$SewerageConnect172[0],
|
|
33447
33468
|
serviceType: "SEWERAGE",
|
|
33448
33469
|
WSDisconnectionForm: {
|
|
33449
|
-
type: data !== null && data !== void 0 && (_data$
|
|
33470
|
+
type: data !== null && data !== void 0 && (_data$SewerageConnect173 = data.SewerageConnections) !== null && _data$SewerageConnect173 !== void 0 && (_data$SewerageConnect174 = _data$SewerageConnect173[0]) !== null && _data$SewerageConnect174 !== void 0 && _data$SewerageConnect174.isDisconnectionTemporary ? {
|
|
33450
33471
|
code: "type",
|
|
33451
33472
|
value: {
|
|
33452
33473
|
name: "Temporary",
|
|
@@ -33463,18 +33484,18 @@ const WSApplicationDetails = () => {
|
|
|
33463
33484
|
code: "Permanent"
|
|
33464
33485
|
}
|
|
33465
33486
|
},
|
|
33466
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
33487
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$SewerageConnect175 = data.SewerageConnections) === null || _data$SewerageConnect175 === void 0 ? void 0 : (_data$SewerageConnect176 = _data$SewerageConnect175[0]) === null || _data$SewerageConnect176 === void 0 ? void 0 : _data$SewerageConnect176.dateEffectiveFrom, true),
|
|
33467
33488
|
reason: {
|
|
33468
33489
|
code: "reason",
|
|
33469
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33490
|
+
value: data === null || data === void 0 ? void 0 : (_data$SewerageConnect177 = data.SewerageConnections) === null || _data$SewerageConnect177 === void 0 ? void 0 : (_data$SewerageConnect178 = _data$SewerageConnect177[0]) === null || _data$SewerageConnect178 === void 0 ? void 0 : _data$SewerageConnect178.disconnectionReason
|
|
33470
33491
|
},
|
|
33471
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
33492
|
+
documents: data === null || data === void 0 ? void 0 : (_data$SewerageConnect179 = data.SewerageConnections) === null || _data$SewerageConnect179 === void 0 ? void 0 : (_data$SewerageConnect180 = _data$SewerageConnect179[0]) === null || _data$SewerageConnect180 === void 0 ? void 0 : _data$SewerageConnect180.documents
|
|
33472
33493
|
}
|
|
33473
33494
|
} : {
|
|
33474
|
-
applicationData: data === null || data === void 0 ? void 0 : (_data$
|
|
33495
|
+
applicationData: data === null || data === void 0 ? void 0 : (_data$WaterConnection178 = data.WaterConnection) === null || _data$WaterConnection178 === void 0 ? void 0 : _data$WaterConnection178[0],
|
|
33475
33496
|
serviceType: "WATER",
|
|
33476
33497
|
WSDisconnectionForm: {
|
|
33477
|
-
type: data !== null && data !== void 0 && (_data$
|
|
33498
|
+
type: data !== null && data !== void 0 && (_data$WaterConnection179 = data.WaterConnection) !== null && _data$WaterConnection179 !== void 0 && (_data$WaterConnection180 = _data$WaterConnection179[0]) !== null && _data$WaterConnection180 !== void 0 && _data$WaterConnection180.isDisconnectionTemporary ? {
|
|
33478
33499
|
code: "type",
|
|
33479
33500
|
value: {
|
|
33480
33501
|
name: "Temporary",
|
|
@@ -33491,12 +33512,12 @@ const WSApplicationDetails = () => {
|
|
|
33491
33512
|
code: "Permanent"
|
|
33492
33513
|
}
|
|
33493
33514
|
},
|
|
33494
|
-
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$
|
|
33515
|
+
date: convertEpochToDateDMY(data === null || data === void 0 ? void 0 : (_data$WaterConnection181 = data.WaterConnection) === null || _data$WaterConnection181 === void 0 ? void 0 : (_data$WaterConnection182 = _data$WaterConnection181[0]) === null || _data$WaterConnection182 === void 0 ? void 0 : _data$WaterConnection182.dateEffectiveFrom, true),
|
|
33495
33516
|
reason: {
|
|
33496
33517
|
code: "reason",
|
|
33497
|
-
value: data === null || data === void 0 ? void 0 : (_data$
|
|
33518
|
+
value: data === null || data === void 0 ? void 0 : (_data$WaterConnection183 = data.WaterConnection) === null || _data$WaterConnection183 === void 0 ? void 0 : (_data$WaterConnection184 = _data$WaterConnection183[0]) === null || _data$WaterConnection184 === void 0 ? void 0 : _data$WaterConnection184.disconnectionReason
|
|
33498
33519
|
},
|
|
33499
|
-
documents: data === null || data === void 0 ? void 0 : (_data$
|
|
33520
|
+
documents: data === null || data === void 0 ? void 0 : (_data$WaterConnection185 = data.WaterConnection) === null || _data$WaterConnection185 === void 0 ? void 0 : (_data$WaterConnection186 = _data$WaterConnection185[0]) === null || _data$WaterConnection186 === void 0 ? void 0 : _data$WaterConnection186.documents
|
|
33500
33521
|
}
|
|
33501
33522
|
})
|
|
33502
33523
|
})) : null)))));
|
|
@@ -43760,6 +43781,8 @@ const ActionModal$5 = _ref => {
|
|
|
43760
43781
|
submitAction = _ref.submitAction,
|
|
43761
43782
|
applicationData = _ref.applicationData,
|
|
43762
43783
|
businessService = _ref.businessService,
|
|
43784
|
+
approvalChecklist = _ref.approvalChecklist,
|
|
43785
|
+
showApprovalChecklist = _ref.showApprovalChecklist,
|
|
43763
43786
|
cardClassName = _ref.cardClassName,
|
|
43764
43787
|
cardFormWrapperClassName = _ref.cardFormWrapperClassName,
|
|
43765
43788
|
cardFormClassName = _ref.cardFormClassName,
|
|
@@ -43862,7 +43885,7 @@ const ActionModal$5 = _ref => {
|
|
|
43862
43885
|
})();
|
|
43863
43886
|
}, [file]);
|
|
43864
43887
|
function submit(data) {
|
|
43865
|
-
var _applicationData4, _applicationData0,
|
|
43888
|
+
var _applicationData4, _applicationData0, _applicationData10, _applicationData10$ap, _applicationData11, _applicationData11$pr, _applicationData12, _applicationData12$pr, _applicationData14, _applicationData15;
|
|
43866
43889
|
let commentValue = (data === null || data === void 0 ? void 0 : data.comments) || "";
|
|
43867
43890
|
if (isReasonRequiredAction) {
|
|
43868
43891
|
var _commentValue;
|
|
@@ -43949,36 +43972,45 @@ const ActionModal$5 = _ref => {
|
|
|
43949
43972
|
}] : []
|
|
43950
43973
|
})
|
|
43951
43974
|
});
|
|
43952
|
-
if (
|
|
43975
|
+
if (showApprovalChecklist) {
|
|
43976
|
+
var _applicationData1;
|
|
43977
|
+
applicationData.additionalDetails = _extends({}, (_applicationData1 = applicationData) === null || _applicationData1 === void 0 ? void 0 : _applicationData1.additionalDetails, {
|
|
43978
|
+
waterPipelineFacility: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.waterPipelineFacility) === true,
|
|
43979
|
+
infrastructureChargesApplicable: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.infrastructureChargesApplicable) === true,
|
|
43980
|
+
rainWaterHarvesting: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.rainWaterHarvesting) === true,
|
|
43981
|
+
bulkConnectionVerification: (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.bulkConnectionVerification) === true
|
|
43982
|
+
});
|
|
43983
|
+
}
|
|
43984
|
+
if (data !== null && data !== void 0 && data.date && (_applicationData10 = applicationData) !== null && _applicationData10 !== void 0 && (_applicationData10$ap = _applicationData10.applicationType) !== null && _applicationData10$ap !== void 0 && _applicationData10$ap.includes("DISCONNECT")) {
|
|
43953
43985
|
const disconnectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
43954
43986
|
applicationData.disconnectionExecutionDate = convertDateToEpochNew$1(disconnectionExecutionDate);
|
|
43955
43987
|
} else if (data !== null && data !== void 0 && data.date) {
|
|
43956
43988
|
const connectionExecutionDate = cloneDeep_1(data === null || data === void 0 ? void 0 : data.date);
|
|
43957
43989
|
applicationData.connectionExecutionDate = convertDateToEpochNew$1(connectionExecutionDate);
|
|
43958
43990
|
}
|
|
43959
|
-
if (((
|
|
43960
|
-
var
|
|
43961
|
-
((
|
|
43991
|
+
if (((_applicationData11 = applicationData) === null || _applicationData11 === void 0 ? void 0 : (_applicationData11$pr = _applicationData11.processInstance) === null || _applicationData11$pr === void 0 ? void 0 : _applicationData11$pr.businessService) == "DisconnectWSConnection" || ((_applicationData12 = applicationData) === null || _applicationData12 === void 0 ? void 0 : (_applicationData12$pr = _applicationData12.processInstance) === null || _applicationData12$pr === void 0 ? void 0 : _applicationData12$pr.businessService) == "DisconnectSWConnection" || window.location.href.includes("disconnection")) {
|
|
43992
|
+
var _applicationData13;
|
|
43993
|
+
((_applicationData13 = applicationData) === null || _applicationData13 === void 0 ? void 0 : _applicationData13.serviceType) == "WATER" ? submitAction({
|
|
43962
43994
|
WaterConnection: applicationData,
|
|
43963
43995
|
disconnectRequest: true
|
|
43964
43996
|
}) : submitAction({
|
|
43965
43997
|
SewerageConnection: applicationData,
|
|
43966
43998
|
disconnectRequest: true
|
|
43967
43999
|
});
|
|
43968
|
-
} else if (((
|
|
44000
|
+
} else if (((_applicationData14 = applicationData) === null || _applicationData14 === void 0 ? void 0 : _applicationData14.applicationType) == "SEWERAGE_RECONNECTION") {
|
|
43969
44001
|
submitAction({
|
|
43970
44002
|
SewerageConnection: applicationData,
|
|
43971
44003
|
disconnectRequest: false,
|
|
43972
44004
|
reconnectRequest: true
|
|
43973
44005
|
});
|
|
43974
|
-
} else if (((
|
|
44006
|
+
} else if (((_applicationData15 = applicationData) === null || _applicationData15 === void 0 ? void 0 : _applicationData15.applicationType) == "WATER_RECONNECTION") {
|
|
43975
44007
|
submitAction({
|
|
43976
44008
|
WaterConnection: applicationData,
|
|
43977
44009
|
disconnectRequest: false,
|
|
43978
44010
|
reconnectRequest: true
|
|
43979
44011
|
});
|
|
43980
44012
|
} else {
|
|
43981
|
-
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10,
|
|
44013
|
+
var _parsedAdhocRebateDat, _parsedAdhocRebateDat2, _parsedAdhocRebateDat3, _parsedAdhocRebateDat4, _parsedAdhocRebateDat5, _parsedAdhocRebateDat6, _parsedAdhocRebateDat7, _parsedAdhocRebateDat8, _parsedAdhocRebateDat9, _parsedAdhocRebateDat0, _parsedAdhocRebateDat1, _parsedAdhocRebateDat10, _applicationData16;
|
|
43982
44014
|
const adhocRebateData = sessionStorage.getItem("Digit.ADHOC_ADD_REBATE_DATA");
|
|
43983
44015
|
const parsedAdhocRebateData = adhocRebateData ? JSON.parse(adhocRebateData) : "";
|
|
43984
44016
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat !== void 0 && _parsedAdhocRebateDat.adhocPenalty) applicationData.additionalDetails.adhocPenalty = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat2 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat2 === void 0 ? void 0 : _parsedAdhocRebateDat2.adhocPenalty) || "";
|
|
@@ -43987,7 +44019,7 @@ const ActionModal$5 = _ref => {
|
|
|
43987
44019
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat7 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat7 !== void 0 && _parsedAdhocRebateDat7.adhocRebate) applicationData.additionalDetails.adhocRebate = parseInt(parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat8 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat8 === void 0 ? void 0 : _parsedAdhocRebateDat8.adhocRebate) || "";
|
|
43988
44020
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat9 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat9 !== void 0 && _parsedAdhocRebateDat9.adhocRebateComment) applicationData.additionalDetails.adhocRebateComment = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat0 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat0 === void 0 ? void 0 : _parsedAdhocRebateDat0.adhocRebateComment) || "";
|
|
43989
44021
|
if (parsedAdhocRebateData !== null && parsedAdhocRebateData !== void 0 && (_parsedAdhocRebateDat1 = parsedAdhocRebateData.value) !== null && _parsedAdhocRebateDat1 !== void 0 && _parsedAdhocRebateDat1.adhocRebateReason) applicationData.additionalDetails.adhocRebateReason = (parsedAdhocRebateData === null || parsedAdhocRebateData === void 0 ? void 0 : (_parsedAdhocRebateDat10 = parsedAdhocRebateData.value) === null || _parsedAdhocRebateDat10 === void 0 ? void 0 : _parsedAdhocRebateDat10.adhocRebateReason) || "";
|
|
43990
|
-
((
|
|
44022
|
+
((_applicationData16 = applicationData) === null || _applicationData16 === void 0 ? void 0 : _applicationData16.serviceType) == "WATER" ? submitAction({
|
|
43991
44023
|
WaterConnection: applicationData,
|
|
43992
44024
|
disconnectRequest: false,
|
|
43993
44025
|
reconnectRequest: false
|
|
@@ -43999,8 +44031,8 @@ const ActionModal$5 = _ref => {
|
|
|
43999
44031
|
}
|
|
44000
44032
|
}
|
|
44001
44033
|
React.useEffect(() => {
|
|
44002
|
-
var
|
|
44003
|
-
if (((
|
|
44034
|
+
var _applicationData17, _applicationData17$pr, _applicationData18, _applicationData18$pr;
|
|
44035
|
+
if (((_applicationData17 = applicationData) === null || _applicationData17 === void 0 ? void 0 : (_applicationData17$pr = _applicationData17.processInstance) === null || _applicationData17$pr === void 0 ? void 0 : _applicationData17$pr.businessService) == "DisconnectWSConnection" || ((_applicationData18 = applicationData) === null || _applicationData18 === void 0 ? void 0 : (_applicationData18$pr = _applicationData18.processInstance) === null || _applicationData18$pr === void 0 ? void 0 : _applicationData18$pr.businessService) == "DisconnectSWConnection") {
|
|
44004
44036
|
if (action) {
|
|
44005
44037
|
setConfig(configWSDisConnectApplication({
|
|
44006
44038
|
t,
|
|
@@ -44032,11 +44064,12 @@ const ActionModal$5 = _ref => {
|
|
|
44032
44064
|
selectedReason,
|
|
44033
44065
|
setSelectedReason,
|
|
44034
44066
|
otherReasonText,
|
|
44035
|
-
setOtherReasonText
|
|
44067
|
+
setOtherReasonText,
|
|
44068
|
+
applicationData
|
|
44036
44069
|
}));
|
|
44037
44070
|
}
|
|
44038
44071
|
}
|
|
44039
|
-
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText]);
|
|
44072
|
+
}, [action, approvers, uploadedFile, error, isReasonRequiredAction, selectedReason, otherReasonText, showApprovalChecklist, approvalChecklist, applicationData]);
|
|
44040
44073
|
return action && config.form ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
|
|
44041
44074
|
headerBarMain: /*#__PURE__*/React__default.createElement(Heading$5, {
|
|
44042
44075
|
label: t(config.label.heading)
|
|
@@ -46103,9 +46136,9 @@ function PropertyDocuments(_ref) {
|
|
|
46103
46136
|
var _document$values;
|
|
46104
46137
|
document === null || document === void 0 ? void 0 : (_document$values = document.values) === null || _document$values === void 0 ? void 0 : _document$values.forEach(value => {
|
|
46105
46138
|
if (!value.isPhoto) {
|
|
46106
|
-
var _ref2, _checkedMap$value$fil, _value$originalDoc;
|
|
46139
|
+
var _ref2, _ref3, _checkedMap$value$fil, _value$originalDoc;
|
|
46107
46140
|
requiredDocsCount++;
|
|
46108
|
-
const isChecked = (_ref2 = (_checkedMap$value$fil = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil : value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.isVerified) != null ? _ref2 : false;
|
|
46141
|
+
const isChecked = (_ref2 = (_ref3 = (_checkedMap$value$fil = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil : value === null || value === void 0 ? void 0 : value.isVerified) != null ? _ref3 : value === null || value === void 0 ? void 0 : (_value$originalDoc = value.originalDoc) === null || _value$originalDoc === void 0 ? void 0 : _value$originalDoc.isVerified) != null ? _ref2 : false;
|
|
46109
46142
|
if (isChecked) {
|
|
46110
46143
|
checkedCount++;
|
|
46111
46144
|
}
|
|
@@ -46143,6 +46176,7 @@ function PropertyDocuments(_ref) {
|
|
|
46143
46176
|
const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("/obps") || window.location.href.includes("employee/ws");
|
|
46144
46177
|
const isWSLocation = window.location.href.includes("employee/ws");
|
|
46145
46178
|
const isStakeholderApplication = window.location.href.includes("stakeholder");
|
|
46179
|
+
const canVerifyDocuments = ["PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationStatus);
|
|
46146
46180
|
const getDocSubType = documentType => {
|
|
46147
46181
|
if (!documentType) return "";
|
|
46148
46182
|
const parts = documentType.split(".");
|
|
@@ -46349,7 +46383,7 @@ function PropertyDocuments(_ref) {
|
|
|
46349
46383
|
style: {
|
|
46350
46384
|
cursor: "pointer"
|
|
46351
46385
|
}
|
|
46352
|
-
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), !isPhoto && ((
|
|
46386
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), !isPhoto && ((_ref4, _ref5, _checkedMap$value$fil2, _value$originalDoc2, _value$isVerified, _value$originalDoc3, _ref6, _ref7, _checkedMap$value$fil3, _value$originalDoc4) => {
|
|
46353
46387
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
46354
46388
|
onClick: () => {
|
|
46355
46389
|
if (fileUrl) {
|
|
@@ -46381,7 +46415,7 @@ function PropertyDocuments(_ref) {
|
|
|
46381
46415
|
y1: "15",
|
|
46382
46416
|
x2: "12",
|
|
46383
46417
|
y2: "3"
|
|
46384
|
-
}))),
|
|
46418
|
+
}))), canVerifyDocuments && /*#__PURE__*/React__default.createElement("label", {
|
|
46385
46419
|
style: {
|
|
46386
46420
|
display: "flex",
|
|
46387
46421
|
alignItems: "center",
|
|
@@ -46391,19 +46425,20 @@ function PropertyDocuments(_ref) {
|
|
|
46391
46425
|
margin: 0
|
|
46392
46426
|
}
|
|
46393
46427
|
}, /*#__PURE__*/React__default.createElement("input", {
|
|
46394
|
-
key: "chk-" + (value === null || value === void 0 ? void 0 : value.fileStoreId) + "-" + (value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified),
|
|
46428
|
+
key: "chk-" + (value === null || value === void 0 ? void 0 : value.fileStoreId) + "-" + ((_value$isVerified = value === null || value === void 0 ? void 0 : value.isVerified) != null ? _value$isVerified : value === null || value === void 0 ? void 0 : (_value$originalDoc3 = value.originalDoc) === null || _value$originalDoc3 === void 0 ? void 0 : _value$originalDoc3.isVerified),
|
|
46395
46429
|
type: "checkbox",
|
|
46396
46430
|
className: "verify-doc-checkbox",
|
|
46397
46431
|
style: {
|
|
46398
46432
|
width: "18px",
|
|
46399
46433
|
height: "18px",
|
|
46400
|
-
accentColor: "#
|
|
46401
|
-
cursor: applicationStatus
|
|
46434
|
+
accentColor: "#1a67a3",
|
|
46435
|
+
cursor: applicationStatus === "PENDING_FOR_CONNECTION_ACTIVATION" ? "not-allowed" : "pointer"
|
|
46402
46436
|
},
|
|
46403
|
-
disabled: applicationStatus
|
|
46404
|
-
checked:
|
|
46437
|
+
disabled: applicationStatus === "PENDING_FOR_CONNECTION_ACTIVATION",
|
|
46438
|
+
checked: (_ref6 = (_ref7 = (_checkedMap$value$fil3 = checkedMap[value === null || value === void 0 ? void 0 : value.fileStoreId]) != null ? _checkedMap$value$fil3 : value === null || value === void 0 ? void 0 : value.isVerified) != null ? _ref7 : value === null || value === void 0 ? void 0 : (_value$originalDoc4 = value.originalDoc) === null || _value$originalDoc4 === void 0 ? void 0 : _value$originalDoc4.isVerified) != null ? _ref6 : false,
|
|
46405
46439
|
onChange: e => {
|
|
46406
46440
|
const checked = e.target.checked;
|
|
46441
|
+
value.isVerified = checked;
|
|
46407
46442
|
if (value !== null && value !== void 0 && value.originalDoc) {
|
|
46408
46443
|
value.originalDoc.isVerified = checked;
|
|
46409
46444
|
}
|
|
@@ -47500,8 +47535,8 @@ const DueVerification = _ref => {
|
|
|
47500
47535
|
return newData;
|
|
47501
47536
|
});
|
|
47502
47537
|
}, [applicationData]);
|
|
47503
|
-
const isPendingApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus)
|
|
47504
|
-
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "
|
|
47538
|
+
const isPendingApproval = ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_ZRO_APPROVAL"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
47539
|
+
const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
|
|
47505
47540
|
const columns = React.useMemo(() => {
|
|
47506
47541
|
const baseColumns = [{
|
|
47507
47542
|
Header: t("K No."),
|
|
@@ -47550,6 +47585,51 @@ const DueVerification = _ref => {
|
|
|
47550
47585
|
const _useState4 = React.useState(null),
|
|
47551
47586
|
showToast = _useState4[0],
|
|
47552
47587
|
setShowToast = _useState4[1];
|
|
47588
|
+
const _useState5 = React.useState(null),
|
|
47589
|
+
zroDropdownOptions = _useState5[0],
|
|
47590
|
+
setZroDropdownOptions = _useState5[1];
|
|
47591
|
+
const _useState6 = React.useState(null),
|
|
47592
|
+
selectedZroOption = _useState6[0],
|
|
47593
|
+
setSelectedZroOption = _useState6[1];
|
|
47594
|
+
const isZROApproval = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) === "PENDING_FOR_ZRO_APPROVAL";
|
|
47595
|
+
React.useEffect(() => {
|
|
47596
|
+
let isMounted = true;
|
|
47597
|
+
const fetchDueVerification = function () {
|
|
47598
|
+
try {
|
|
47599
|
+
return Promise.resolve(function () {
|
|
47600
|
+
if (isZROApproval && applicationData !== null && applicationData !== void 0 && applicationData.applicationNo) {
|
|
47601
|
+
return _catch(function () {
|
|
47602
|
+
return Promise.resolve(checkDueVerification({
|
|
47603
|
+
DueVerification: {
|
|
47604
|
+
applicationNo: applicationData.applicationNo
|
|
47605
|
+
}
|
|
47606
|
+
})).then(function (response) {
|
|
47607
|
+
if (!isMounted) return;
|
|
47608
|
+
const dueVerifications = Array.isArray(response) ? response : (response === null || response === void 0 ? void 0 : response.DueVerifications) || (response === null || response === void 0 ? void 0 : response.dueVerifications) || (response === null || response === void 0 ? void 0 : response.dueVerification) || [];
|
|
47609
|
+
if (dueVerifications && dueVerifications.length > 0) {
|
|
47610
|
+
const options = dueVerifications.map(item => _extends({
|
|
47611
|
+
code: item.kno,
|
|
47612
|
+
name: item.kno
|
|
47613
|
+
}, item));
|
|
47614
|
+
setZroDropdownOptions(options);
|
|
47615
|
+
} else {
|
|
47616
|
+
setZroDropdownOptions([]);
|
|
47617
|
+
}
|
|
47618
|
+
});
|
|
47619
|
+
}, function (error) {
|
|
47620
|
+
console.error("Error auto-fetching due verification:", error);
|
|
47621
|
+
});
|
|
47622
|
+
}
|
|
47623
|
+
}());
|
|
47624
|
+
} catch (e) {
|
|
47625
|
+
return Promise.reject(e);
|
|
47626
|
+
}
|
|
47627
|
+
};
|
|
47628
|
+
fetchDueVerification();
|
|
47629
|
+
return () => {
|
|
47630
|
+
isMounted = false;
|
|
47631
|
+
};
|
|
47632
|
+
}, [isZROApproval, applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo]);
|
|
47553
47633
|
const handleAdd = function () {
|
|
47554
47634
|
try {
|
|
47555
47635
|
return Promise.resolve(function () {
|
|
@@ -47639,13 +47719,23 @@ const DueVerification = _ref => {
|
|
|
47639
47719
|
style: {
|
|
47640
47720
|
color: "red"
|
|
47641
47721
|
}
|
|
47642
|
-
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.
|
|
47722
|
+
}, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
47723
|
+
option: zroDropdownOptions,
|
|
47724
|
+
select: val => {
|
|
47725
|
+
setSelectedZroOption(val);
|
|
47726
|
+
setKno(val.code);
|
|
47727
|
+
},
|
|
47728
|
+
selected: selectedZroOption,
|
|
47729
|
+
optionKey: "name",
|
|
47730
|
+
t: t,
|
|
47731
|
+
placeholder: t("WS_SELECT_KNO_PLACEHOLDER") || "Select K No."
|
|
47732
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
47643
47733
|
type: "text",
|
|
47644
47734
|
value: kno,
|
|
47645
47735
|
onChange: e => setKno(e.target.value),
|
|
47646
47736
|
style: {
|
|
47647
47737
|
width: "100%",
|
|
47648
|
-
|
|
47738
|
+
marginTop: "10px"
|
|
47649
47739
|
}
|
|
47650
47740
|
})), /*#__PURE__*/React__default.createElement("div", {
|
|
47651
47741
|
style: {
|
|
@@ -47660,9 +47750,10 @@ const DueVerification = _ref => {
|
|
|
47660
47750
|
padding: "8px 24px",
|
|
47661
47751
|
borderRadius: "4px",
|
|
47662
47752
|
border: "none",
|
|
47663
|
-
cursor: "pointer"
|
|
47753
|
+
cursor: "pointer",
|
|
47754
|
+
color: "white"
|
|
47664
47755
|
}
|
|
47665
|
-
},
|
|
47756
|
+
}, "Search"))), tableData.length > 0 && /*#__PURE__*/React__default.createElement("div", {
|
|
47666
47757
|
style: {
|
|
47667
47758
|
marginTop: "15px",
|
|
47668
47759
|
overflowX: "auto"
|
|
@@ -47685,148 +47776,81 @@ const DueVerification = _ref => {
|
|
|
47685
47776
|
}));
|
|
47686
47777
|
};
|
|
47687
47778
|
|
|
47688
|
-
const
|
|
47689
|
-
|
|
47690
|
-
|
|
47691
|
-
|
|
47692
|
-
|
|
47693
|
-
|
|
47694
|
-
|
|
47695
|
-
|
|
47696
|
-
|
|
47697
|
-
|
|
47698
|
-
|
|
47699
|
-
|
|
47700
|
-
|
|
47701
|
-
|
|
47702
|
-
|
|
47703
|
-
|
|
47704
|
-
|
|
47705
|
-
|
|
47706
|
-
|
|
47707
|
-
|
|
47708
|
-
|
|
47709
|
-
|
|
47710
|
-
|
|
47711
|
-
|
|
47712
|
-
}
|
|
47713
|
-
const apiInspectionType = applicationData.inspectionInformation.inspectionType;
|
|
47714
|
-
let matchedType = null;
|
|
47715
|
-
const inspectionCode = typeof apiInspectionType === "object" && apiInspectionType !== null ? apiInspectionType.code : apiInspectionType;
|
|
47716
|
-
if (inspectionCode) {
|
|
47717
|
-
matchedType = [{
|
|
47718
|
-
i18nKey: "New Connection Visit",
|
|
47719
|
-
code: "new_connection_visit"
|
|
47720
|
-
}].find(opt => opt.code === inspectionCode || opt.i18nKey === inspectionCode);
|
|
47721
|
-
}
|
|
47722
|
-
setInspectionType(matchedType || defaultInspectionType);
|
|
47723
|
-
let dateValue = applicationData.inspectionInformation.inspectionDate || "";
|
|
47724
|
-
if (dateValue && typeof dateValue === 'number') {
|
|
47725
|
-
const d = new Date(dateValue);
|
|
47726
|
-
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
47727
|
-
} else if (dateValue && typeof dateValue === 'string' && dateValue.includes('-')) ; else if (dateValue) {
|
|
47728
|
-
const num = Number(dateValue);
|
|
47729
|
-
if (!isNaN(num)) {
|
|
47730
|
-
const d = new Date(num);
|
|
47731
|
-
dateValue = d.getFullYear() + "-" + String(d.getMonth() + 1).padStart(2, '0') + "-" + String(d.getDate()).padStart(2, '0');
|
|
47732
|
-
}
|
|
47733
|
-
}
|
|
47734
|
-
setInspectionDate(dateValue);
|
|
47735
|
-
setInspectorName(applicationData.inspectionInformation.inspectorName || "");
|
|
47736
|
-
}
|
|
47737
|
-
}, [applicationData]);
|
|
47738
|
-
const inspectionTypeOptions = [{
|
|
47739
|
-
i18nKey: "New Connection Visit",
|
|
47740
|
-
code: "new_connection_visit"
|
|
47779
|
+
const getWSCurrentState = (applicationData, workflowDetails) => {
|
|
47780
|
+
var _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0;
|
|
47781
|
+
return (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.processInstances) === null || _workflowDetails$data2 === void 0 ? void 0 : (_workflowDetails$data3 = _workflowDetails$data2[0]) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.state) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.ProcessInstances) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.state) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.actionState) === null || _workflowDetails$data0 === void 0 ? void 0 : _workflowDetails$data0.state) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status);
|
|
47782
|
+
};
|
|
47783
|
+
const isWSApprovalChecklistState = (applicationData, workflowDetails) => getWSCurrentState(applicationData, workflowDetails) === "PENDING_FOR_EE_APPROVAL";
|
|
47784
|
+
const getWSApprovalChecklistFields = applicationData => {
|
|
47785
|
+
var _applicationData$addi, _applicationData$addi2, _applicationData$prop, _applicationData$prop2;
|
|
47786
|
+
const plotArea = Number((applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi = applicationData.additionalDetails) === null || _applicationData$addi === void 0 ? void 0 : _applicationData$addi.plotArea) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi2 = applicationData.additionalDetails) === null || _applicationData$addi2 === void 0 ? void 0 : _applicationData$addi2.plotSize) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop = applicationData.property) === null || _applicationData$prop === void 0 ? void 0 : _applicationData$prop.landArea) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$prop2 = applicationData.property) === null || _applicationData$prop2 === void 0 ? void 0 : _applicationData$prop2.plotArea) || 0);
|
|
47787
|
+
return [{
|
|
47788
|
+
name: "waterPipelineFacility",
|
|
47789
|
+
label: "Water Pipeline Facility",
|
|
47790
|
+
isMandatory: true
|
|
47791
|
+
}, {
|
|
47792
|
+
name: "infrastructureChargesApplicable",
|
|
47793
|
+
label: "Infrastructure Charges Applicable",
|
|
47794
|
+
isMandatory: plotArea > 200
|
|
47795
|
+
}, {
|
|
47796
|
+
name: "rainWaterHarvesting",
|
|
47797
|
+
label: "Rainwater Harvesting",
|
|
47798
|
+
isMandatory: false
|
|
47799
|
+
}, {
|
|
47800
|
+
name: "bulkConnectionVerification",
|
|
47801
|
+
label: "Bulk Connection Verification",
|
|
47802
|
+
isMandatory: false
|
|
47741
47803
|
}];
|
|
47742
|
-
|
|
47743
|
-
|
|
47744
|
-
|
|
47745
|
-
|
|
47746
|
-
}
|
|
47747
|
-
|
|
47748
|
-
|
|
47749
|
-
|
|
47750
|
-
|
|
47751
|
-
|
|
47752
|
-
|
|
47753
|
-
|
|
47754
|
-
|
|
47755
|
-
|
|
47756
|
-
|
|
47757
|
-
|
|
47758
|
-
|
|
47804
|
+
};
|
|
47805
|
+
const isWSApprovalChecklistComplete = function (applicationData, values) {
|
|
47806
|
+
if (values === void 0) {
|
|
47807
|
+
values = {};
|
|
47808
|
+
}
|
|
47809
|
+
return getWSApprovalChecklistFields(applicationData).filter(field => field.isMandatory).every(field => {
|
|
47810
|
+
var _values;
|
|
47811
|
+
return ((_values = values) === null || _values === void 0 ? void 0 : _values[field.name]) === true;
|
|
47812
|
+
});
|
|
47813
|
+
};
|
|
47814
|
+
const WSApprovalChecklist = _ref => {
|
|
47815
|
+
let applicationData = _ref.applicationData,
|
|
47816
|
+
showApprovalChecklist = _ref.showApprovalChecklist,
|
|
47817
|
+
_ref$values = _ref.values,
|
|
47818
|
+
values = _ref$values === void 0 ? {} : _ref$values,
|
|
47819
|
+
onChange = _ref.onChange;
|
|
47820
|
+
if (!showApprovalChecklist) return null;
|
|
47759
47821
|
return /*#__PURE__*/React__default.createElement("div", {
|
|
47760
47822
|
style: {
|
|
47761
|
-
|
|
47823
|
+
marginTop: "24px",
|
|
47824
|
+
padding: "16px",
|
|
47825
|
+
border: "1px solid #D6D5D4",
|
|
47826
|
+
borderRadius: "4px",
|
|
47827
|
+
background: "#FAFAFA"
|
|
47762
47828
|
}
|
|
47763
|
-
}, /*#__PURE__*/React__default.createElement(
|
|
47829
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
|
|
47764
47830
|
style: {
|
|
47765
|
-
|
|
47766
|
-
|
|
47767
|
-
|
|
47831
|
+
margin: "0 0 16px",
|
|
47832
|
+
color: "#0B0C0C",
|
|
47833
|
+
fontSize: "20px"
|
|
47768
47834
|
}
|
|
47769
|
-
},
|
|
47835
|
+
}, "Approval Checklist"), /*#__PURE__*/React__default.createElement("div", {
|
|
47770
47836
|
style: {
|
|
47771
47837
|
display: "flex",
|
|
47772
|
-
|
|
47773
|
-
|
|
47774
|
-
|
|
47775
|
-
|
|
47776
|
-
|
|
47777
|
-
|
|
47778
|
-
|
|
47779
|
-
|
|
47780
|
-
|
|
47781
|
-
|
|
47782
|
-
|
|
47783
|
-
marginBottom: "8px",
|
|
47784
|
-
display: "inline-block"
|
|
47785
|
-
}
|
|
47786
|
-
}, t("Inspection Type")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
47787
|
-
option: inspectionTypeOptions,
|
|
47788
|
-
optionKey: "i18nKey",
|
|
47789
|
-
selected: inspectionType,
|
|
47790
|
-
select: handleInspectionTypeChange,
|
|
47791
|
-
t: t,
|
|
47792
|
-
disable: readOnly
|
|
47793
|
-
})), /*#__PURE__*/React__default.createElement("div", {
|
|
47794
|
-
style: {
|
|
47795
|
-
flex: 1
|
|
47796
|
-
}
|
|
47797
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
47798
|
-
style: {
|
|
47799
|
-
fontSize: "16px",
|
|
47800
|
-
marginBottom: "8px",
|
|
47801
|
-
display: "inline-block"
|
|
47802
|
-
}
|
|
47803
|
-
}, t("Inspection Date")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.DatePicker, {
|
|
47804
|
-
date: inspectionDate,
|
|
47805
|
-
onChange: handleInspectionDateChange,
|
|
47806
|
-
disabled: readOnly
|
|
47807
|
-
}))), /*#__PURE__*/React__default.createElement("div", {
|
|
47808
|
-
style: {
|
|
47809
|
-
display: "flex"
|
|
47810
|
-
}
|
|
47811
|
-
}, /*#__PURE__*/React__default.createElement("div", {
|
|
47812
|
-
style: {
|
|
47813
|
-
flex: 1
|
|
47814
|
-
}
|
|
47815
|
-
}, /*#__PURE__*/React__default.createElement("span", {
|
|
47816
|
-
style: {
|
|
47817
|
-
fontSize: "16px",
|
|
47818
|
-
marginBottom: "8px",
|
|
47819
|
-
display: "inline-block"
|
|
47820
|
-
}
|
|
47821
|
-
}, t("Inspector Name")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
47822
|
-
value: inspectorName,
|
|
47823
|
-
onChange: handleInspectorNameChange,
|
|
47824
|
-
disabled: readOnly
|
|
47838
|
+
flexDirection: "column",
|
|
47839
|
+
gap: "14px"
|
|
47840
|
+
}
|
|
47841
|
+
}, getWSApprovalChecklistFields(applicationData).map(field => /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckBox, {
|
|
47842
|
+
key: field.name,
|
|
47843
|
+
pageType: "employee",
|
|
47844
|
+
label: "" + field.label + (field.isMandatory ? " *" : ""),
|
|
47845
|
+
checked: (values === null || values === void 0 ? void 0 : values[field.name]) === true,
|
|
47846
|
+
onChange: event => onChange(_extends({}, values, {
|
|
47847
|
+
[field.name]: event.target.checked
|
|
47848
|
+
}))
|
|
47825
47849
|
}))));
|
|
47826
47850
|
};
|
|
47827
47851
|
|
|
47828
47852
|
function ApplicationDetailsContent(_ref) {
|
|
47829
|
-
var _applicationDetails$a, _workflowDetails$
|
|
47853
|
+
var _applicationDetails$a, _applicationDetails$a2, _workflowDetails$data11, _workflowDetails$data12, _workflowDetails$data13, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data16, _workflowDetails$data17, _workflowDetails$data18, _workflowDetails$data19, _workflowDetails$data20, _workflowDetails$data21, _workflowDetails$data29, _workflowDetails$data30;
|
|
47830
47854
|
let applicationDetails = _ref.applicationDetails,
|
|
47831
47855
|
workflowDetails = _ref.workflowDetails,
|
|
47832
47856
|
isDataLoading = _ref.isDataLoading,
|
|
@@ -47840,7 +47864,11 @@ function ApplicationDetailsContent(_ref) {
|
|
|
47840
47864
|
paymentsList = _ref.paymentsList,
|
|
47841
47865
|
oldValue = _ref.oldValue,
|
|
47842
47866
|
_ref$isInfoLabel = _ref.isInfoLabel,
|
|
47843
|
-
isInfoLabel = _ref$isInfoLabel === void 0 ? false : _ref$isInfoLabel
|
|
47867
|
+
isInfoLabel = _ref$isInfoLabel === void 0 ? false : _ref$isInfoLabel,
|
|
47868
|
+
approvalChecklist = _ref.approvalChecklist,
|
|
47869
|
+
onApprovalChecklistChange = _ref.onApprovalChecklistChange,
|
|
47870
|
+
_ref$showApprovalChec = _ref.showApprovalChecklist,
|
|
47871
|
+
showApprovalChecklist = _ref$showApprovalChec === void 0 ? false : _ref$showApprovalChec;
|
|
47844
47872
|
const _useTranslation = reactI18next.useTranslation(),
|
|
47845
47873
|
t = _useTranslation.t;
|
|
47846
47874
|
const _useState = React.useState(false),
|
|
@@ -48002,6 +48030,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48002
48030
|
if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc")) {
|
|
48003
48031
|
return {
|
|
48004
48032
|
justifyContent: "space-between",
|
|
48033
|
+
gap: "24px",
|
|
48005
48034
|
fontSize: "16px",
|
|
48006
48035
|
lineHeight: "19px",
|
|
48007
48036
|
color: "#0B0C0C"
|
|
@@ -48009,6 +48038,7 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48009
48038
|
} else if (checkLocation) {
|
|
48010
48039
|
return {
|
|
48011
48040
|
justifyContent: "space-between",
|
|
48041
|
+
gap: "24px",
|
|
48012
48042
|
fontSize: "16px",
|
|
48013
48043
|
lineHeight: "19px",
|
|
48014
48044
|
color: "#0B0C0C"
|
|
@@ -48094,6 +48124,10 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48094
48124
|
const handleViewClick = data => {
|
|
48095
48125
|
setShowPopup(true);
|
|
48096
48126
|
};
|
|
48127
|
+
const documentsDetailIndex = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationDetails) === null || _applicationDetails$a === void 0 ? void 0 : _applicationDetails$a.findIndex(detail => {
|
|
48128
|
+
var _detail$additionalDet;
|
|
48129
|
+
return detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.documents;
|
|
48130
|
+
});
|
|
48097
48131
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
|
|
48098
48132
|
style: {
|
|
48099
48133
|
position: "relative"
|
|
@@ -48106,8 +48140,8 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48106
48140
|
infoClickLable: "WS_CLICK_ON_LABEL",
|
|
48107
48141
|
infoClickInfoLabel: getClickInfoDetails(),
|
|
48108
48142
|
infoClickInfoLabel1: getClickInfoDetails1()
|
|
48109
|
-
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48110
|
-
var _detail$title, _detail$values, _detail$
|
|
48143
|
+
}) : null, applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a2 = applicationDetails.applicationDetails) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.map((detail, index) => {
|
|
48144
|
+
var _detail$title, _detail$values, _detail$additionalDet2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _detail$additionalDet3, _applicationDetails$a6, _applicationDetails$a7, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _workflowDetails$data, _workflowDetails$data2, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17, _detail$additionalDet18, _detail$additionalDet19, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _workflowDetails$data9, _workflowDetails$data0, _workflowDetails$data1, _workflowDetails$data10, _detail$additionalDet20, _applicationData$appl, _detail$additionalDet21, _detail$additionalDet22, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _detail$additionalDet29;
|
|
48111
48145
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
48112
48146
|
key: index
|
|
48113
48147
|
}, /*#__PURE__*/React__default.createElement("div", {
|
|
@@ -48298,49 +48332,47 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48298
48332
|
}), value.title === "PT_TOTAL_DUES" ? /*#__PURE__*/React__default.createElement(ArrearSummary, {
|
|
48299
48333
|
bill: (_fetchBillData$Bill = fetchBillData.Bill) === null || _fetchBillData$Bill === void 0 ? void 0 : _fetchBillData$Bill[0]
|
|
48300
48334
|
}) : "");
|
|
48301
|
-
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React__default.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48335
|
+
})))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React__default.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.inspectionReport) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
48302
48336
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
48303
48337
|
paymentsList: paymentsList
|
|
48304
|
-
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48305
|
-
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$
|
|
48306
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48307
|
-
floors: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48308
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48309
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48310
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48311
|
-
units: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48312
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48338
|
+
}), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationData) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.additionalDetails) === null || _applicationDetails$a4 === void 0 ? void 0 : (_applicationDetails$a5 = _applicationDetails$a4.fieldinspection_pending) === null || _applicationDetails$a5 === void 0 ? void 0 : _applicationDetails$a5.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.fiReport) && /*#__PURE__*/React__default.createElement(InspectionReport, {
|
|
48339
|
+
fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a6 = applicationDetails.applicationData) === null || _applicationDetails$a6 === void 0 ? void 0 : (_applicationDetails$a7 = _applicationDetails$a6.additionalDetails) === null || _applicationDetails$a7 === void 0 ? void 0 : _applicationDetails$a7.fieldinspection_pending
|
|
48340
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors) && /*#__PURE__*/React__default.createElement(PropertyFloors, {
|
|
48341
|
+
floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.floors
|
|
48342
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet6 = detail.additionalDetails) === null || _detail$additionalDet6 === void 0 ? void 0 : _detail$additionalDet6.units) && /*#__PURE__*/React__default.createElement(TLTradeUnits, {
|
|
48343
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.units
|
|
48344
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.accessories) && /*#__PURE__*/React__default.createElement(TLTradeAccessories, {
|
|
48345
|
+
units: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.accessories
|
|
48346
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.permissions) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : (_workflowDetails$data2 = _workflowDetails$data.nextActions) === null || _workflowDetails$data2 === void 0 ? void 0 : _workflowDetails$data2.length) > 0 && /*#__PURE__*/React__default.createElement(PermissionCheck, {
|
|
48313
48347
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
48314
48348
|
t: t,
|
|
48315
|
-
permissions: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48316
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48349
|
+
permissions: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.permissions
|
|
48350
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.obpsDocuments) && /*#__PURE__*/React__default.createElement(BPADocuments, {
|
|
48317
48351
|
t: t,
|
|
48318
48352
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
48319
48353
|
docs: detail.additionalDetails.obpsDocuments,
|
|
48320
48354
|
bpaActionsDetails: workflowDetails
|
|
48321
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48355
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : _detail$additionalDet11.noc) && /*#__PURE__*/React__default.createElement(NOCDocuments, {
|
|
48322
48356
|
t: t,
|
|
48323
48357
|
isNoc: true,
|
|
48324
48358
|
NOCdata: detail.values,
|
|
48325
48359
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData,
|
|
48326
48360
|
docs: detail.additionalDetails.noc,
|
|
48327
|
-
noc: (_detail$
|
|
48361
|
+
noc: (_detail$additionalDet12 = detail.additionalDetails) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.data,
|
|
48328
48362
|
bpaActionsDetails: workflowDetails
|
|
48329
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48363
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.scruntinyDetails) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
48330
48364
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
48331
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48365
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : _detail$additionalDet14.buildingExtractionDetails) && /*#__PURE__*/React__default.createElement(ScruntinyDetails, {
|
|
48332
48366
|
scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
|
|
48333
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48367
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet15 = detail.additionalDetails) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.subOccupancyTableDetails) && /*#__PURE__*/React__default.createElement(SubOccupancyTable, {
|
|
48334
48368
|
edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
|
|
48335
48369
|
applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
|
|
48336
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48337
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48338
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48339
|
-
documents: detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48340
|
-
applicationStatus: applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus
|
|
48341
|
-
}), (detail === null || detail === void 0 ? void 0 : (_detail$
|
|
48342
|
-
applicationData: applicationData
|
|
48343
|
-
}), " ", (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl2 = applicationData.applicationType) !== null && _applicationData$appl2 !== void 0 && _applicationData$appl2.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(InspectionInformation, {
|
|
48370
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : _detail$additionalDet16.documentsWithUrl) && /*#__PURE__*/React__default.createElement(DocumentsPreview, {
|
|
48371
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet17 = detail.additionalDetails) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.documentsWithUrl
|
|
48372
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents) && index === documentsDetailIndex && /*#__PURE__*/React__default.createElement(PropertyDocuments, {
|
|
48373
|
+
documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents,
|
|
48374
|
+
applicationStatus: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.actionState) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.processInstances) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.state) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.ProcessInstances) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0[0]) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1.state) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.state) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status)
|
|
48375
|
+
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationType) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(DueVerification, {
|
|
48344
48376
|
applicationData: applicationData
|
|
48345
48377
|
}), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React__default.createElement(PropertyEstimates, {
|
|
48346
48378
|
taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
|
|
@@ -48358,23 +48390,28 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48358
48390
|
wsAdditionalDetails: detail,
|
|
48359
48391
|
workflowDetails: workflowDetails
|
|
48360
48392
|
}));
|
|
48361
|
-
}),
|
|
48393
|
+
}), showApprovalChecklist && /*#__PURE__*/React__default.createElement(WSApprovalChecklist, {
|
|
48394
|
+
applicationData: applicationData,
|
|
48395
|
+
showApprovalChecklist: showApprovalChecklist,
|
|
48396
|
+
values: approvalChecklist,
|
|
48397
|
+
onChange: onApprovalChecklistChange
|
|
48398
|
+
}), showTimeLine && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data11 = workflowDetails.data) === null || _workflowDetails$data11 === void 0 ? void 0 : (_workflowDetails$data12 = _workflowDetails$data11.timeline) === null || _workflowDetails$data12 === void 0 ? void 0 : _workflowDetails$data12.length) > 0 && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isDataLoading) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isDataLoading && /*#__PURE__*/React__default.createElement(React.Fragment, null, /*#__PURE__*/React__default.createElement("div", {
|
|
48362
48399
|
id: "timeline"
|
|
48363
48400
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
|
|
48364
48401
|
style: {
|
|
48365
48402
|
marginBottom: "16px",
|
|
48366
48403
|
marginTop: "32px"
|
|
48367
48404
|
}
|
|
48368
|
-
}, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
48405
|
+
}, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data13 = workflowDetails.data) !== null && _workflowDetails$data13 !== void 0 && _workflowDetails$data13.timeline && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data14 = workflowDetails.data) === null || _workflowDetails$data14 === void 0 ? void 0 : (_workflowDetails$data15 = _workflowDetails$data14.timeline) === null || _workflowDetails$data15 === void 0 ? void 0 : _workflowDetails$data15.length) === 1 ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.CheckPoint, {
|
|
48369
48406
|
isCompleted: true,
|
|
48370
|
-
label: t("" + timelineStatusPrefix + (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48371
|
-
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48372
|
-
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48373
|
-
var _workflowDetails$
|
|
48407
|
+
label: t("" + timelineStatusPrefix + (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data16 = workflowDetails.data) === null || _workflowDetails$data16 === void 0 ? void 0 : (_workflowDetails$data17 = _workflowDetails$data16.timeline[0]) === null || _workflowDetails$data17 === void 0 ? void 0 : _workflowDetails$data17.state)),
|
|
48408
|
+
customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data18 = workflowDetails.data) === null || _workflowDetails$data18 === void 0 ? void 0 : _workflowDetails$data18.timeline[0], workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data19 = workflowDetails.data) === null || _workflowDetails$data19 === void 0 ? void 0 : _workflowDetails$data19.timeline)
|
|
48409
|
+
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data20 = workflowDetails.data) === null || _workflowDetails$data20 === void 0 ? void 0 : _workflowDetails$data20.timeline) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data21 = workflowDetails.data) === null || _workflowDetails$data21 === void 0 ? void 0 : _workflowDetails$data21.timeline.slice(0, showAllTimeline ? workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data.timeline.length : 2).map((checkpoint, index, arr) => {
|
|
48410
|
+
var _workflowDetails$data28;
|
|
48374
48411
|
let timelineStatusPostfix = "";
|
|
48375
48412
|
if (window.location.href.includes("/obps/")) {
|
|
48376
|
-
var _workflowDetails$
|
|
48377
|
-
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$
|
|
48413
|
+
var _workflowDetails$data22, _workflowDetails$data23, _workflowDetails$data24, _workflowDetails$data25, _workflowDetails$data26, _workflowDetails$data27;
|
|
48414
|
+
if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data22 = workflowDetails.data) !== null && _workflowDetails$data22 !== void 0 && (_workflowDetails$data23 = _workflowDetails$data22.timeline[index - 1]) !== null && _workflowDetails$data23 !== void 0 && (_workflowDetails$data24 = _workflowDetails$data23.state) !== null && _workflowDetails$data24 !== void 0 && _workflowDetails$data24.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data25 = workflowDetails.data) !== null && _workflowDetails$data25 !== void 0 && (_workflowDetails$data26 = _workflowDetails$data25.timeline[index - 1]) !== null && _workflowDetails$data26 !== void 0 && (_workflowDetails$data27 = _workflowDetails$data26.state) !== null && _workflowDetails$data27 !== void 0 && _workflowDetails$data27.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = "_NOT_DONE";else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = "_BY_ARCHITECT_DONE";else timelineStatusPostfix = index === 0 ? "" : "_DONE";
|
|
48378
48415
|
}
|
|
48379
48416
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, {
|
|
48380
48417
|
key: index
|
|
@@ -48383,9 +48420,9 @@ function ApplicationDetailsContent(_ref) {
|
|
|
48383
48420
|
isCompleted: index === 0,
|
|
48384
48421
|
info: checkpoint.comment,
|
|
48385
48422
|
label: t("" + timelineStatusPrefix + ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "REOPEN" ? checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction : checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint[statusAttribute]) + timelineStatusPostfix),
|
|
48386
|
-
customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48423
|
+
customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data28 = workflowDetails.data) === null || _workflowDetails$data28 === void 0 ? void 0 : _workflowDetails$data28.timeline)
|
|
48387
48424
|
}));
|
|
48388
|
-
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$
|
|
48425
|
+
}))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data29 = workflowDetails.data) === null || _workflowDetails$data29 === void 0 ? void 0 : (_workflowDetails$data30 = _workflowDetails$data29.timeline) === null || _workflowDetails$data30 === void 0 ? void 0 : _workflowDetails$data30.length) > 2 && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LinkButton, {
|
|
48389
48426
|
label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
|
|
48390
48427
|
onClick: toggleTimeline
|
|
48391
48428
|
})))), /*#__PURE__*/React__default.createElement("div", null, showPopup && /*#__PURE__*/React__default.createElement(RenewPopup, {
|
|
@@ -48502,7 +48539,9 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48502
48539
|
_ref$MenuStyle = _ref.MenuStyle,
|
|
48503
48540
|
MenuStyle = _ref$MenuStyle === void 0 ? {} : _ref$MenuStyle,
|
|
48504
48541
|
isAction = _ref.isAction,
|
|
48505
|
-
applicationDetails = _ref.applicationDetails
|
|
48542
|
+
applicationDetails = _ref.applicationDetails,
|
|
48543
|
+
_ref$isApprovalCheckl = _ref.isApprovalChecklistValid,
|
|
48544
|
+
isApprovalChecklistValid = _ref$isApprovalCheckl === void 0 ? false : _ref$isApprovalCheckl;
|
|
48506
48545
|
const _useTranslation = reactI18next.useTranslation(),
|
|
48507
48546
|
t = _useTranslation.t;
|
|
48508
48547
|
let user = Digit.UserService.getUser();
|
|
@@ -48511,7 +48550,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48511
48550
|
if (typeof window !== "undefined" && typeof window.isDocumentsVerified !== "undefined") {
|
|
48512
48551
|
return !window.isDocumentsVerified;
|
|
48513
48552
|
}
|
|
48514
|
-
return
|
|
48553
|
+
return false;
|
|
48515
48554
|
}),
|
|
48516
48555
|
isSubmitDisabled = _React$useState[0],
|
|
48517
48556
|
setIsSubmitDisabled = _React$useState[1];
|
|
@@ -48576,7 +48615,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48576
48615
|
ref: menuRef,
|
|
48577
48616
|
label: t("WF_TAKE_ACTION"),
|
|
48578
48617
|
onSubmit: () => setDisplayMenu(!displayMenu),
|
|
48579
|
-
disabled: isSubmitDisabled
|
|
48618
|
+
disabled: isSubmitDisabled || !isApprovalChecklistValid
|
|
48580
48619
|
}) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
|
|
48581
48620
|
style: {
|
|
48582
48621
|
color: "red",
|
|
@@ -48587,7 +48626,7 @@ function ApplicationDetailsActionBar(_ref) {
|
|
|
48587
48626
|
ref: menuRef,
|
|
48588
48627
|
label: t("WF_TAKE_ACTION"),
|
|
48589
48628
|
onSubmit: () => setDisplayMenu(!displayMenu),
|
|
48590
|
-
disabled: isSubmitDisabled
|
|
48629
|
+
disabled: isSubmitDisabled || !isApprovalChecklistValid
|
|
48591
48630
|
})), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isMenuBotton && isSingleButton && !isAction && /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
|
|
48592
48631
|
style: _extends({}, ActionBarStyle)
|
|
48593
48632
|
}, /*#__PURE__*/React__default.createElement("button", {
|
|
@@ -48710,6 +48749,9 @@ const ApplicationDetails = props => {
|
|
|
48710
48749
|
const _useState5 = React.useState(false),
|
|
48711
48750
|
isWarningPop = _useState5[0],
|
|
48712
48751
|
setWarningPopUp = _useState5[1];
|
|
48752
|
+
const _useState6 = React.useState({}),
|
|
48753
|
+
approvalChecklist = _useState6[0],
|
|
48754
|
+
setApprovalChecklist = _useState6[1];
|
|
48713
48755
|
const applicationDetails = props.applicationDetails,
|
|
48714
48756
|
showToast = props.showToast,
|
|
48715
48757
|
setShowToast = props.setShowToast,
|
|
@@ -48737,6 +48779,29 @@ const ApplicationDetails = props => {
|
|
|
48737
48779
|
clearDataDetails = props.clearDataDetails,
|
|
48738
48780
|
_props$isAction = props.isAction,
|
|
48739
48781
|
isAction = _props$isAction === void 0 ? false : _props$isAction;
|
|
48782
|
+
const currentWorkflowState = getWSCurrentState(applicationData, workflowDetails);
|
|
48783
|
+
const showApprovalChecklist = moduleCode === "WS" && isWSApprovalChecklistState(applicationData, workflowDetails);
|
|
48784
|
+
const approvalChecklistValid = (workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || !showApprovalChecklist || isWSApprovalChecklistComplete(applicationData, approvalChecklist);
|
|
48785
|
+
const seededKeyRef = React.useRef(null);
|
|
48786
|
+
React.useEffect(() => {
|
|
48787
|
+
const seedKey = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo) + "__" + currentWorkflowState;
|
|
48788
|
+
if (showApprovalChecklist) {
|
|
48789
|
+
if (seededKeyRef.current !== seedKey) {
|
|
48790
|
+
seededKeyRef.current = seedKey;
|
|
48791
|
+
const initialChecklist = getWSApprovalChecklistFields(applicationData).reduce((values, field) => {
|
|
48792
|
+
var _applicationData$addi;
|
|
48793
|
+
values[field.name] = (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi = applicationData.additionalDetails) === null || _applicationData$addi === void 0 ? void 0 : _applicationData$addi[field.name]) === true;
|
|
48794
|
+
return values;
|
|
48795
|
+
}, {});
|
|
48796
|
+
setApprovalChecklist(initialChecklist);
|
|
48797
|
+
}
|
|
48798
|
+
} else {
|
|
48799
|
+
if (seededKeyRef.current !== null) {
|
|
48800
|
+
seededKeyRef.current = null;
|
|
48801
|
+
setApprovalChecklist({});
|
|
48802
|
+
}
|
|
48803
|
+
}
|
|
48804
|
+
}, [applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationNo, currentWorkflowState, showApprovalChecklist]);
|
|
48740
48805
|
React.useEffect(() => {
|
|
48741
48806
|
if (showToast) {
|
|
48742
48807
|
workflowDetails.revalidate();
|
|
@@ -48944,7 +49009,10 @@ const ApplicationDetails = props => {
|
|
|
48944
49009
|
paymentsList: paymentsList,
|
|
48945
49010
|
showTimeLine: showTimeLine,
|
|
48946
49011
|
oldValue: oldValue,
|
|
48947
|
-
isInfoLabel: isInfoLabel
|
|
49012
|
+
isInfoLabel: isInfoLabel,
|
|
49013
|
+
approvalChecklist: approvalChecklist,
|
|
49014
|
+
onApprovalChecklistChange: setApprovalChecklist,
|
|
49015
|
+
showApprovalChecklist: showApprovalChecklist
|
|
48948
49016
|
}), showModal ? /*#__PURE__*/React__default.createElement(ActionModal$c, {
|
|
48949
49017
|
t: t,
|
|
48950
49018
|
action: selectedAction,
|
|
@@ -48957,7 +49025,8 @@ const ApplicationDetails = props => {
|
|
|
48957
49025
|
submitAction: submitAction,
|
|
48958
49026
|
actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data = workflowDetails.data) === null || _workflowDetails$data === void 0 ? void 0 : _workflowDetails$data.timeline,
|
|
48959
49027
|
businessService: businessService,
|
|
48960
|
-
|
|
49028
|
+
approvalChecklist: approvalChecklist,
|
|
49029
|
+
showApprovalChecklist: showApprovalChecklist,
|
|
48961
49030
|
moduleCode: moduleCode,
|
|
48962
49031
|
cardFormWrapperClassName: "modal-form"
|
|
48963
49032
|
}) : null, isWarningPop ? /*#__PURE__*/React__default.createElement(ApplicationDetailsWarningPopup, {
|
|
@@ -48981,7 +49050,8 @@ const ApplicationDetails = props => {
|
|
|
48981
49050
|
forcedActionPrefix: forcedActionPrefix,
|
|
48982
49051
|
ActionBarStyle: ActionBarStyle,
|
|
48983
49052
|
MenuStyle: MenuStyle,
|
|
48984
|
-
applicationDetails: applicationDetails
|
|
49053
|
+
applicationDetails: applicationDetails,
|
|
49054
|
+
isApprovalChecklistValid: approvalChecklistValid
|
|
48985
49055
|
})) : /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null));
|
|
48986
49056
|
};
|
|
48987
49057
|
|
|
@@ -50644,7 +50714,7 @@ const EditApplication$1 = () => {
|
|
|
50644
50714
|
};
|
|
50645
50715
|
|
|
50646
50716
|
const ConsumptionDetails = _ref => {
|
|
50647
|
-
var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _details$4, _details$5;
|
|
50717
|
+
var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _DJBReadingQualityCod, _DJBReadingQualityCod2, _DJBReadingQualityCod3, _details$4, _details$5;
|
|
50648
50718
|
const _useTranslation = reactI18next.useTranslation(),
|
|
50649
50719
|
t = _useTranslation.t;
|
|
50650
50720
|
const user = Digit.UserService.getUser();
|
|
@@ -50685,11 +50755,14 @@ const ConsumptionDetails = _ref => {
|
|
|
50685
50755
|
selectedConsumtion = _useState9[0],
|
|
50686
50756
|
setConsumption = _useState9[1];
|
|
50687
50757
|
const _useState0 = React.useState(""),
|
|
50688
|
-
|
|
50689
|
-
|
|
50690
|
-
const _useState1 = React.useState(
|
|
50691
|
-
|
|
50692
|
-
|
|
50758
|
+
selectReadingQualityCode = _useState0[0],
|
|
50759
|
+
setSelectReadingQualityCode = _useState0[1];
|
|
50760
|
+
const _useState1 = React.useState(""),
|
|
50761
|
+
currentBillingPeriod = _useState1[0],
|
|
50762
|
+
setBillingPeriod = _useState1[1];
|
|
50763
|
+
const _useState10 = React.useState(false),
|
|
50764
|
+
isAddMeterReadingButtonEnable = _useState10[0],
|
|
50765
|
+
setisAddMeterReadingButtonEnable = _useState10[1];
|
|
50693
50766
|
const userInfo = Digit.UserService.getUser();
|
|
50694
50767
|
const userRoles = userInfo.info.roles.map(roleData => roleData.code);
|
|
50695
50768
|
const isUserAllowedToAddMeterReading = userRoles.filter(role => role === "WS_CEMP" || role === "SW_CEMP").length > 0;
|
|
@@ -50706,6 +50779,8 @@ const ConsumptionDetails = _ref => {
|
|
|
50706
50779
|
const _Digit$Hooks$ws$useGe2 = Digit.Hooks.ws.useGetBillingPeriodValidation(tenantId),
|
|
50707
50780
|
billingPeriodLoading = _Digit$Hooks$ws$useGe2.isLoading,
|
|
50708
50781
|
mdmsBillingPeriod = _Digit$Hooks$ws$useGe2.data;
|
|
50782
|
+
const _Digit$Hooks$ws$useDj = Digit.Hooks.ws.useDjbReadingQualityCodeList(tenantId),
|
|
50783
|
+
DJBReadingQualityCode = _Digit$Hooks$ws$useDj.data;
|
|
50709
50784
|
let connectionFilters = {
|
|
50710
50785
|
connectionNumber: applicationNo
|
|
50711
50786
|
};
|
|
@@ -50811,6 +50886,7 @@ const ConsumptionDetails = _ref => {
|
|
|
50811
50886
|
lastReading: meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReading,
|
|
50812
50887
|
lastReadingDate: meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate,
|
|
50813
50888
|
meterStatus: selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code,
|
|
50889
|
+
readingQualityCode: selectReadingQualityCode === null || selectReadingQualityCode === void 0 ? void 0 : selectReadingQualityCode.code,
|
|
50814
50890
|
tenantId: meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.tenantId
|
|
50815
50891
|
};
|
|
50816
50892
|
let meterReadingsPayload = {
|
|
@@ -50858,6 +50934,13 @@ const ConsumptionDetails = _ref => {
|
|
|
50858
50934
|
code: status,
|
|
50859
50935
|
i18nKey: "WS_SERVICES_CALCULATION_METERSTATUS_" + Digit.Utils.locale.getTransformedLocale(status)
|
|
50860
50936
|
}));
|
|
50937
|
+
const ReadingQualityCodeList = DJBReadingQualityCode === null || DJBReadingQualityCode === void 0 ? void 0 : (_DJBReadingQualityCod = DJBReadingQualityCode.MdmsRes) === null || _DJBReadingQualityCod === void 0 ? void 0 : (_DJBReadingQualityCod2 = _DJBReadingQualityCod["ws-services-calculation"]) === null || _DJBReadingQualityCod2 === void 0 ? void 0 : (_DJBReadingQualityCod3 = _DJBReadingQualityCod2.DJBReadingQualityCode) === null || _DJBReadingQualityCod3 === void 0 ? void 0 : _DJBReadingQualityCod3.map(status => {
|
|
50938
|
+
const statusCode = typeof status === "object" ? status.code : status;
|
|
50939
|
+
return {
|
|
50940
|
+
code: statusCode,
|
|
50941
|
+
i18nKey: "WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_" + Digit.Utils.locale.getTransformedLocale(statusCode)
|
|
50942
|
+
};
|
|
50943
|
+
});
|
|
50861
50944
|
const onFormValueChange = (setValue, formData, formState) => {
|
|
50862
50945
|
if ((selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code) === "Working") {
|
|
50863
50946
|
var _details$2;
|
|
@@ -50954,6 +51037,21 @@ const ConsumptionDetails = _ref => {
|
|
|
50954
51037
|
disabled: selectMeterStatus.code === "Working" ? false : true
|
|
50955
51038
|
}))
|
|
50956
51039
|
}
|
|
51040
|
+
}, {
|
|
51041
|
+
label: "" + t("WS_READING_QUALITY_CODE"),
|
|
51042
|
+
isMandatory: true,
|
|
51043
|
+
type: "dropdown",
|
|
51044
|
+
populators: /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
|
|
51045
|
+
option: ReadingQualityCodeList,
|
|
51046
|
+
autoComplete: "off",
|
|
51047
|
+
optionKey: "i18nKey",
|
|
51048
|
+
id: "readingQualityCode",
|
|
51049
|
+
select: e => {
|
|
51050
|
+
setSelectReadingQualityCode(e);
|
|
51051
|
+
},
|
|
51052
|
+
selected: selectReadingQualityCode,
|
|
51053
|
+
t: t
|
|
51054
|
+
})
|
|
50957
51055
|
}, {
|
|
50958
51056
|
label: t("WS_SERV_DETAIL_CONSUMP"),
|
|
50959
51057
|
isMandatory: false,
|
|
@@ -51033,6 +51131,11 @@ const ConsumptionDetails = _ref => {
|
|
|
51033
51131
|
label: "" + t("WS_CONSUMPTION_DETAILS_METER_STATUS_LABEL"),
|
|
51034
51132
|
text: (application === null || application === void 0 ? void 0 : application.meterStatus) || t("NA"),
|
|
51035
51133
|
className: "border-none"
|
|
51134
|
+
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
51135
|
+
key: t("WS_READING_QUALITY_CODE"),
|
|
51136
|
+
label: "" + t("WS_READING_QUALITY_CODE"),
|
|
51137
|
+
text: (application === null || application === void 0 ? void 0 : application.readingQualityCode) || t("NA"),
|
|
51138
|
+
className: "border-none"
|
|
51036
51139
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
51037
51140
|
key: t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL"),
|
|
51038
51141
|
label: "" + t("WS_CONSUMPTION_DETAILS_LAST_READING_LABEL"),
|
|
@@ -51090,7 +51193,7 @@ const ConsumptionDetails = _ref => {
|
|
|
51090
51193
|
cardStyle: {
|
|
51091
51194
|
marginLeft: "0px",
|
|
51092
51195
|
marginRight: "0px",
|
|
51093
|
-
marginTop: "
|
|
51196
|
+
marginTop: "0px"
|
|
51094
51197
|
},
|
|
51095
51198
|
className: "BPAemployeeCard",
|
|
51096
51199
|
noBoxShadow: true,
|