@djb25/digit-ui-module-ws 1.0.109 → 1.0.110
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 +333 -140
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +333 -140
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -389,6 +389,13 @@ const getAddress = (address, t) => {
|
|
|
389
389
|
var _address$locality, _address$locality2, _address$city;
|
|
390
390
|
return `${address !== null && address !== void 0 && address.doorNo ? `${address === null || address === void 0 ? void 0 : address.doorNo}, ` : ""}${address !== null && address !== void 0 && address.street ? `${address === null || address === void 0 ? void 0 : address.street}, ` : ""}${address !== null && address !== void 0 && address.landmark ? `${address === null || address === void 0 ? void 0 : address.landmark}, ` : ""}${address !== null && address !== void 0 && (_address$locality = address.locality) !== null && _address$locality !== void 0 && _address$locality.code ? t(`TENANTS_MOHALLA_${address === null || address === void 0 ? void 0 : (_address$locality2 = address.locality) === null || _address$locality2 === void 0 ? void 0 : _address$locality2.code}`) : ""}${address !== null && address !== void 0 && (_address$city = address.city) !== null && _address$city !== void 0 && _address$city.code || address !== null && address !== void 0 && address.city ? `, ${t((address === null || address === void 0 ? void 0 : address.city.code) || (address === null || address === void 0 ? void 0 : address.city))}` : ""}${address !== null && address !== void 0 && address.pincode ? `, ${address.pincode}` : " "}`;
|
|
391
391
|
};
|
|
392
|
+
const formatPropertyAddress = (address, t) => {
|
|
393
|
+
var _Digit2, _Digit2$Utils, _Digit2$Utils$pt;
|
|
394
|
+
if ((_Digit2 = Digit) !== null && _Digit2 !== void 0 && (_Digit2$Utils = _Digit2.Utils) !== null && _Digit2$Utils !== void 0 && (_Digit2$Utils$pt = _Digit2$Utils.pt) !== null && _Digit2$Utils$pt !== void 0 && _Digit2$Utils$pt.formatPropertyAddress) {
|
|
395
|
+
return Digit.Utils.pt.formatPropertyAddress(address, t) || getAddress(address, t);
|
|
396
|
+
}
|
|
397
|
+
return getAddress(address, t);
|
|
398
|
+
};
|
|
392
399
|
const convertDateToEpoch = function (dateString, dayStartOrEnd) {
|
|
393
400
|
if (dayStartOrEnd === void 0) {
|
|
394
401
|
dayStartOrEnd = "dayend";
|
|
@@ -441,12 +448,11 @@ const getPattern = type => {
|
|
|
441
448
|
case "WSOnlyNumbers":
|
|
442
449
|
return /^[0-9]*$/i;
|
|
443
450
|
case "Name":
|
|
444
|
-
|
|
445
|
-
return /^[^{0-9}^\$\"<>?\\~!@#$%^()+={}\[\]*,/_:;]{1,50}$/i;
|
|
451
|
+
return /^[a-zA-Z\s]{1,50}$/;
|
|
446
452
|
case "MobileNo":
|
|
447
|
-
return /^[
|
|
453
|
+
return /^[6-9][0-9]{9}$/;
|
|
448
454
|
case "MobileNoWithPrivacy":
|
|
449
|
-
return /^[
|
|
455
|
+
return /^([6-9][*]{7}[0-9]{2}|[6-9][0-9]{9})$/;
|
|
450
456
|
case "Amount":
|
|
451
457
|
return /^[0-9]{0,8}$/i;
|
|
452
458
|
case "NonZeroAmount":
|
|
@@ -549,7 +555,7 @@ const getFiles = function (filesArray, tenant) {
|
|
|
549
555
|
};
|
|
550
556
|
const createPayloadOfWS = function (data) {
|
|
551
557
|
try {
|
|
552
|
-
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$waterConnection, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _connectionDetailsObj, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj2, _data$applicationSele8, _useDetailsObject$cat, _data$applicationSele9, _data$applicationSele0, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$applicationSele25, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18,
|
|
558
|
+
var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$waterConnection, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _connectionDetailsObj, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj2, _data$applicationSele8, _useDetailsObject$cat, _data$applicationSele9, _data$applicationSele0, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$applicationSele25, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
|
|
553
559
|
const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
|
|
554
560
|
const isCitizen = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.type) === "CITIZEN" || (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$roles = userInfo.roles) === null || _userInfo$roles === void 0 ? void 0 : _userInfo$roles.some(role => role.code === "CITIZEN"));
|
|
555
561
|
data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : (_data$cpt$details$own = _data$cpt$details.owners) === null || _data$cpt$details$own === void 0 ? void 0 : _data$cpt$details$own.forEach(owner => {
|
|
@@ -725,7 +731,7 @@ const createPayloadOfWS = function (data) {
|
|
|
725
731
|
delete payload.additionalDetails.proposedWaterClosets;
|
|
726
732
|
sessionStorage.setItem("WS_DOCUMENTS_INOF", JSON.stringify(allDocuments));
|
|
727
733
|
sessionStorage.setItem("WS_PROPERTY_INOF", JSON.stringify((data === null || data === void 0 ? void 0 : (_data$cpt18 = data.cpt) === null || _data$cpt18 === void 0 ? void 0 : _data$cpt18.details) || {}));
|
|
728
|
-
payload = (
|
|
734
|
+
payload = (_Digit3 = Digit) !== null && _Digit3 !== void 0 && (_Digit3$Customization = _Digit3.Customizations) !== null && _Digit3$Customization !== void 0 && (_Digit3$Customization2 = _Digit3$Customization.WS) !== null && _Digit3$Customization2 !== void 0 && _Digit3$Customization2.customiseCreatePayloadOfWS ? (_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$Customization = _Digit4.Customizations) === null || _Digit4$Customization === void 0 ? void 0 : (_Digit4$Customization2 = _Digit4$Customization.WS) === null || _Digit4$Customization2 === void 0 ? void 0 : _Digit4$Customization2.customiseCreatePayloadOfWS(data, payload) : payload;
|
|
729
735
|
return Promise.resolve(payload);
|
|
730
736
|
} catch (e) {
|
|
731
737
|
return Promise.reject(e);
|
|
@@ -733,7 +739,7 @@ const createPayloadOfWS = function (data) {
|
|
|
733
739
|
};
|
|
734
740
|
const updatePayloadOfWS = function (data, type) {
|
|
735
741
|
try {
|
|
736
|
-
var _data$additionalDetai, _data$additionalDetai2,
|
|
742
|
+
var _data$additionalDetai, _data$additionalDetai2, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
|
|
737
743
|
let payload = {
|
|
738
744
|
...data,
|
|
739
745
|
processInstance: {
|
|
@@ -752,7 +758,7 @@ const updatePayloadOfWS = function (data, type) {
|
|
|
752
758
|
}
|
|
753
759
|
}
|
|
754
760
|
};
|
|
755
|
-
payload = (
|
|
761
|
+
payload = (_Digit5 = Digit) !== null && _Digit5 !== void 0 && (_Digit5$Customization = _Digit5.Customizations) !== null && _Digit5$Customization !== void 0 && (_Digit5$Customization2 = _Digit5$Customization.WS) !== null && _Digit5$Customization2 !== void 0 && _Digit5$Customization2.customiseUpdatePayloadOfWS ? (_Digit6 = Digit) === null || _Digit6 === void 0 ? void 0 : (_Digit6$Customization = _Digit6.Customizations) === null || _Digit6$Customization === void 0 ? void 0 : (_Digit6$Customization2 = _Digit6$Customization.WS) === null || _Digit6$Customization2 === void 0 ? void 0 : _Digit6$Customization2.customiseUpdatePayloadOfWS(data, payload, type) : payload;
|
|
756
762
|
return Promise.resolve(payload);
|
|
757
763
|
} catch (e) {
|
|
758
764
|
return Promise.reject(e);
|
|
@@ -832,7 +838,7 @@ const getAllDocumentsForUpdate = data => {
|
|
|
832
838
|
return allDocuments;
|
|
833
839
|
};
|
|
834
840
|
const convertToWSUpdate = data => {
|
|
835
|
-
var _data$WaterConnection, _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$djbEmployee11, _data$djbEmployee12, _data$djbEmployee13, _data$djbEmployee14, _data$djbEmployee15, _data$djbEmployee16, _data$djbEmployee17, _data$djbEmployee18, _data$djbEmployee19, _data$djbEmployee20, _data$djbEmployee21, _data$djbEmployee22, _data$djbEmployee23, _data$djbEmployee24, _data$djbEmployee24$d, _data$djbEmployee25, _data$disability2,
|
|
841
|
+
var _data$WaterConnection, _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$djbEmployee11, _data$djbEmployee12, _data$djbEmployee13, _data$djbEmployee14, _data$djbEmployee15, _data$djbEmployee16, _data$djbEmployee17, _data$djbEmployee18, _data$djbEmployee19, _data$djbEmployee20, _data$djbEmployee21, _data$djbEmployee22, _data$djbEmployee23, _data$djbEmployee24, _data$djbEmployee24$d, _data$djbEmployee25, _data$disability2, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
|
|
836
842
|
let formdata = {
|
|
837
843
|
WaterConnection: {
|
|
838
844
|
...(data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnectionResult) === null || _data$WaterConnection === void 0 ? void 0 : (_data$WaterConnection2 = _data$WaterConnection.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]),
|
|
@@ -859,11 +865,11 @@ const convertToWSUpdate = data => {
|
|
|
859
865
|
}
|
|
860
866
|
}
|
|
861
867
|
};
|
|
862
|
-
formdata = (
|
|
868
|
+
formdata = (_Digit7 = Digit) !== null && _Digit7 !== void 0 && (_Digit7$Customization = _Digit7.Customizations) !== null && _Digit7$Customization !== void 0 && (_Digit7$Customization2 = _Digit7$Customization.WS) !== null && _Digit7$Customization2 !== void 0 && _Digit7$Customization2.customiseWSUpdate ? (_Digit8 = Digit) === null || _Digit8 === void 0 ? void 0 : (_Digit8$Customization = _Digit8.Customizations) === null || _Digit8$Customization === void 0 ? void 0 : (_Digit8$Customization2 = _Digit8$Customization.WS) === null || _Digit8$Customization2 === void 0 ? void 0 : _Digit8$Customization2.customiseWSUpdate(data, formdata) : formdata;
|
|
863
869
|
return formdata;
|
|
864
870
|
};
|
|
865
871
|
const convertToEditWSUpdate = data => {
|
|
866
|
-
var _data$WaterConnection6, _data$WaterConnection7, _data$additionalDetai3, _data$additionalDetai4, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai5, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai6, _waterResult$addition3, _data$djbEmployee26, _data$djbEmployee27, _data$djbEmployee28, _data$djbEmployee29, _data$djbEmployee30, _data$djbEmployee31, _data$djbEmployee32, _data$djbEmployee33, _data$djbEmployee34, _data$djbEmployee35, _data$djbEmployee36, _data$djbEmployee37, _data$djbEmployee38, _data$djbEmployee39, _data$djbEmployee39$d, _data$djbEmployee40, _data$disability3, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2,
|
|
872
|
+
var _data$WaterConnection6, _data$WaterConnection7, _data$additionalDetai3, _data$additionalDetai4, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai5, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai6, _waterResult$addition3, _data$djbEmployee26, _data$djbEmployee27, _data$djbEmployee28, _data$djbEmployee29, _data$djbEmployee30, _data$djbEmployee31, _data$djbEmployee32, _data$djbEmployee33, _data$djbEmployee34, _data$djbEmployee35, _data$djbEmployee36, _data$djbEmployee37, _data$djbEmployee38, _data$djbEmployee39, _data$djbEmployee39$d, _data$djbEmployee40, _data$disability3, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
|
|
867
873
|
let waterResult = data === null || data === void 0 ? void 0 : (_data$WaterConnection6 = data.WaterConnectionResult) === null || _data$WaterConnection6 === void 0 ? void 0 : (_data$WaterConnection7 = _data$WaterConnection6.WaterConnection) === null || _data$WaterConnection7 === void 0 ? void 0 : _data$WaterConnection7[0];
|
|
868
874
|
let formdata = {
|
|
869
875
|
WaterConnection: {
|
|
@@ -957,11 +963,11 @@ const convertToEditWSUpdate = data => {
|
|
|
957
963
|
assignes: []
|
|
958
964
|
}
|
|
959
965
|
};
|
|
960
|
-
formdata = (
|
|
966
|
+
formdata = (_Digit9 = Digit) !== null && _Digit9 !== void 0 && (_Digit9$Customization = _Digit9.Customizations) !== null && _Digit9$Customization !== void 0 && (_Digit9$Customization2 = _Digit9$Customization.WS) !== null && _Digit9$Customization2 !== void 0 && _Digit9$Customization2.customiseEditWSUpdate ? (_Digit0 = Digit) === null || _Digit0 === void 0 ? void 0 : (_Digit0$Customization = _Digit0.Customizations) === null || _Digit0$Customization === void 0 ? void 0 : (_Digit0$Customization2 = _Digit0$Customization.WS) === null || _Digit0$Customization2 === void 0 ? void 0 : _Digit0$Customization2.customiseEditWSUpdate(data, formdata) : formdata;
|
|
961
967
|
return formdata;
|
|
962
968
|
};
|
|
963
969
|
const convertToEditSWUpdate = data => {
|
|
964
|
-
var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai7, _data$additionalDetai8, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai9, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai0, _SewerageResult$addit3, _data$djbEmployee41, _data$djbEmployee42, _data$djbEmployee43, _data$djbEmployee44, _data$djbEmployee45, _data$djbEmployee46, _data$djbEmployee47, _data$djbEmployee48, _data$djbEmployee49, _data$djbEmployee50, _data$djbEmployee51, _data$djbEmployee52, _data$djbEmployee53, _data$djbEmployee54, _data$djbEmployee54$d, _data$djbEmployee55, _data$disability4, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _data$ConnectionHolde32, _data$ConnectionHolde33, _data$ConnectionHolde34, _data$ConnectionHolde35, _data$ConnectionHolde36, _data$ConnectionHolde37, _data$ConnectionHolde38, _data$ConnectionHolde39, _data$ConnectionHolde40, _data$ConnectionHolde41, _data$ConnectionHolde42, _data$ConnectionHolde43, _data$ConnectionHolde44, _data$ConnectionHolde45, _data$ConnectionHolde46, _data$ConnectionHolde47, _data$ConnectionHolde48, _data$ConnectionHolde49, _data$ConnectionHolde50, _data$ConnectionHolde51, _data$ConnectionHolde52, _data$ConnectionHolde53, _data$ConnectionHolde54, _data$ConnectionHolde55, _data$ConnectionHolde56, _data$ConnectionHolde57, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4,
|
|
970
|
+
var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai7, _data$additionalDetai8, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai9, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai0, _SewerageResult$addit3, _data$djbEmployee41, _data$djbEmployee42, _data$djbEmployee43, _data$djbEmployee44, _data$djbEmployee45, _data$djbEmployee46, _data$djbEmployee47, _data$djbEmployee48, _data$djbEmployee49, _data$djbEmployee50, _data$djbEmployee51, _data$djbEmployee52, _data$djbEmployee53, _data$djbEmployee54, _data$djbEmployee54$d, _data$djbEmployee55, _data$disability4, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _data$ConnectionHolde32, _data$ConnectionHolde33, _data$ConnectionHolde34, _data$ConnectionHolde35, _data$ConnectionHolde36, _data$ConnectionHolde37, _data$ConnectionHolde38, _data$ConnectionHolde39, _data$ConnectionHolde40, _data$ConnectionHolde41, _data$ConnectionHolde42, _data$ConnectionHolde43, _data$ConnectionHolde44, _data$ConnectionHolde45, _data$ConnectionHolde46, _data$ConnectionHolde47, _data$ConnectionHolde48, _data$ConnectionHolde49, _data$ConnectionHolde50, _data$ConnectionHolde51, _data$ConnectionHolde52, _data$ConnectionHolde53, _data$ConnectionHolde54, _data$ConnectionHolde55, _data$ConnectionHolde56, _data$ConnectionHolde57, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4, _Digit1, _Digit1$Customization, _Digit1$Customization2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2;
|
|
965
971
|
let SewerageResult = data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnectionResult) === null || _data$SewerageConnect === void 0 ? void 0 : (_data$SewerageConnect2 = _data$SewerageConnect.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0];
|
|
966
972
|
let formdata = {
|
|
967
973
|
SewerageConnection: {
|
|
@@ -1055,11 +1061,11 @@ const convertToEditSWUpdate = data => {
|
|
|
1055
1061
|
assignes: []
|
|
1056
1062
|
}
|
|
1057
1063
|
};
|
|
1058
|
-
formdata = (
|
|
1064
|
+
formdata = (_Digit1 = Digit) !== null && _Digit1 !== void 0 && (_Digit1$Customization = _Digit1.Customizations) !== null && _Digit1$Customization !== void 0 && (_Digit1$Customization2 = _Digit1$Customization.WS) !== null && _Digit1$Customization2 !== void 0 && _Digit1$Customization2.customiseEditSWUpdate ? (_Digit10 = Digit) === null || _Digit10 === void 0 ? void 0 : (_Digit10$Customizatio = _Digit10.Customizations) === null || _Digit10$Customizatio === void 0 ? void 0 : (_Digit10$Customizatio2 = _Digit10$Customizatio.WS) === null || _Digit10$Customizatio2 === void 0 ? void 0 : _Digit10$Customizatio2.customiseEditSWUpdate(data, formdata) : formdata;
|
|
1059
1065
|
return formdata;
|
|
1060
1066
|
};
|
|
1061
1067
|
const convertToSWUpdate = data => {
|
|
1062
|
-
var _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$djbEmployee56, _data$djbEmployee57, _data$djbEmployee58, _data$djbEmployee59, _data$djbEmployee60, _data$djbEmployee61, _data$djbEmployee62, _data$djbEmployee63, _data$djbEmployee64, _data$djbEmployee65, _data$djbEmployee66, _data$djbEmployee67, _data$djbEmployee68, _data$djbEmployee69, _data$djbEmployee69$d, _data$djbEmployee70, _data$disability5,
|
|
1068
|
+
var _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$djbEmployee56, _data$djbEmployee57, _data$djbEmployee58, _data$djbEmployee59, _data$djbEmployee60, _data$djbEmployee61, _data$djbEmployee62, _data$djbEmployee63, _data$djbEmployee64, _data$djbEmployee65, _data$djbEmployee66, _data$djbEmployee67, _data$djbEmployee68, _data$djbEmployee69, _data$djbEmployee69$d, _data$djbEmployee70, _data$disability5, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
|
|
1063
1069
|
let formdata = {
|
|
1064
1070
|
SewerageConnection: {
|
|
1065
1071
|
...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnectionResult) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3.SewerageConnections) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4[0]),
|
|
@@ -1087,12 +1093,12 @@ const convertToSWUpdate = data => {
|
|
|
1087
1093
|
}
|
|
1088
1094
|
}
|
|
1089
1095
|
};
|
|
1090
|
-
formdata = (
|
|
1096
|
+
formdata = (_Digit11 = Digit) !== null && _Digit11 !== void 0 && (_Digit11$Customizatio = _Digit11.Customizations) !== null && _Digit11$Customizatio !== void 0 && (_Digit11$Customizatio2 = _Digit11$Customizatio.WS) !== null && _Digit11$Customizatio2 !== void 0 && _Digit11$Customizatio2.customiseSWUpdate ? (_Digit12 = Digit) === null || _Digit12 === void 0 ? void 0 : (_Digit12$Customizatio = _Digit12.Customizations) === null || _Digit12$Customizatio === void 0 ? void 0 : (_Digit12$Customizatio2 = _Digit12$Customizatio.WS) === null || _Digit12$Customizatio2 === void 0 ? void 0 : _Digit12$Customizatio2.customiseSWUpdate(data, formdata) : formdata;
|
|
1091
1097
|
return formdata;
|
|
1092
1098
|
};
|
|
1093
1099
|
const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
1094
1100
|
try {
|
|
1095
|
-
var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason, _data$reason$value, _data$reason2, _data$reason3, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _storeData$applicatio39, _storeData$applicatio40, _plumberInfo, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _data$type3, _data$type3$value, _data$reason4, _data$reason4$value, _data$reason5, _data$reason6, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _plumberInfo2, _storeData$applicatio68, _storeData$applicatio69, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75,
|
|
1101
|
+
var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason, _data$reason$value, _data$reason2, _data$reason3, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _storeData$applicatio39, _storeData$applicatio40, _plumberInfo, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _data$type3, _data$type3$value, _data$reason4, _data$reason4$value, _data$reason5, _data$reason6, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _plumberInfo2, _storeData$applicatio68, _storeData$applicatio69, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
|
|
1096
1102
|
const user = (_Digit$UserService$ge8 = Digit.UserService.getUser()) === null || _Digit$UserService$ge8 === void 0 ? void 0 : (_Digit$UserService$ge9 = _Digit$UserService$ge8.info) === null || _Digit$UserService$ge9 === void 0 ? void 0 : _Digit$UserService$ge9.type;
|
|
1097
1103
|
let plumberInfo = [];
|
|
1098
1104
|
if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio = storeData.applicationData) === null || _storeData$applicatio === void 0 ? void 0 : (_storeData$applicatio2 = _storeData$applicatio.plumberInfo) === null || _storeData$applicatio2 === void 0 ? void 0 : _storeData$applicatio2.length) > 0) {
|
|
@@ -1193,7 +1199,7 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
|
|
|
1193
1199
|
disconnectRequest: true
|
|
1194
1200
|
};
|
|
1195
1201
|
let returnObject = (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "WATER" ? wsPayload : swPayload;
|
|
1196
|
-
returnObject = (
|
|
1202
|
+
returnObject = (_Digit13 = Digit) !== null && _Digit13 !== void 0 && (_Digit13$Customizatio = _Digit13.Customizations) !== null && _Digit13$Customizatio !== void 0 && (_Digit13$Customizatio2 = _Digit13$Customizatio.WS) !== null && _Digit13$Customizatio2 !== void 0 && _Digit13$Customizatio2.customiseCreatePayloadOfWSDisconnection ? (_Digit14 = Digit) === null || _Digit14 === void 0 ? void 0 : (_Digit14$Customizatio = _Digit14.Customizations) === null || _Digit14$Customizatio === void 0 ? void 0 : (_Digit14$Customizatio2 = _Digit14$Customizatio.WS) === null || _Digit14$Customizatio2 === void 0 ? void 0 : _Digit14$Customizatio2.customiseCreatePayloadOfWSDisconnection(data, returnObject, service) : returnObject;
|
|
1197
1203
|
return Promise.resolve(returnObject);
|
|
1198
1204
|
} catch (e) {
|
|
1199
1205
|
return Promise.reject(e);
|
|
@@ -1311,7 +1317,7 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
|
|
|
1311
1317
|
};
|
|
1312
1318
|
const createPayloadOfWSReSubmitDisconnection = function (data, storeData, service) {
|
|
1313
1319
|
try {
|
|
1314
|
-
var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type4, _data$type4$value, _data$reason13, _data$reason13$value, _data$reason14, _data$reason15, _storeData$applicatio149, _storeData$applicatio150, _storeData$applicatio151, _storeData$applicatio152, _data$type5, _data$type5$value, _data$reason16, _data$reason16$value, _data$reason17, _data$reason18, _storeData$applicatio157, _storeData$applicatio158, _storeData$applicatio159,
|
|
1320
|
+
var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type4, _data$type4$value, _data$reason13, _data$reason13$value, _data$reason14, _data$reason15, _storeData$applicatio149, _storeData$applicatio150, _storeData$applicatio151, _storeData$applicatio152, _data$type5, _data$type5$value, _data$reason16, _data$reason16$value, _data$reason17, _data$reason18, _storeData$applicatio157, _storeData$applicatio158, _storeData$applicatio159, _Digit15, _Digit15$Customizatio, _Digit15$Customizatio2, _Digit16, _Digit16$Customizatio, _Digit16$Customizatio2;
|
|
1315
1321
|
const user = (_Digit$UserService$ge10 = Digit.UserService.getUser()) === null || _Digit$UserService$ge10 === void 0 ? void 0 : (_Digit$UserService$ge11 = _Digit$UserService$ge10.info) === null || _Digit$UserService$ge11 === void 0 ? void 0 : _Digit$UserService$ge11.type;
|
|
1316
1322
|
let wsPayload = {
|
|
1317
1323
|
WaterConnection: {
|
|
@@ -1363,7 +1369,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
|
|
|
1363
1369
|
disconnectRequest: true
|
|
1364
1370
|
};
|
|
1365
1371
|
let returnObject = (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "WATER" ? wsPayload : swPayload;
|
|
1366
|
-
returnObject = (
|
|
1372
|
+
returnObject = (_Digit15 = Digit) !== null && _Digit15 !== void 0 && (_Digit15$Customizatio = _Digit15.Customizations) !== null && _Digit15$Customizatio !== void 0 && (_Digit15$Customizatio2 = _Digit15$Customizatio.WS) !== null && _Digit15$Customizatio2 !== void 0 && _Digit15$Customizatio2.customiseCreatePayloadOfWSReSubmitDisconnection ? (_Digit16 = Digit) === null || _Digit16 === void 0 ? void 0 : (_Digit16$Customizatio = _Digit16.Customizations) === null || _Digit16$Customizatio === void 0 ? void 0 : (_Digit16$Customizatio2 = _Digit16$Customizatio.WS) === null || _Digit16$Customizatio2 === void 0 ? void 0 : _Digit16$Customizatio2.customiseCreatePayloadOfWSReSubmitDisconnection(data, returnObject, service) : returnObject;
|
|
1367
1373
|
return Promise.resolve(returnObject);
|
|
1368
1374
|
} catch (e) {
|
|
1369
1375
|
return Promise.reject(e);
|
|
@@ -1371,7 +1377,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
|
|
|
1371
1377
|
};
|
|
1372
1378
|
const updatePayloadOfWSDisconnection = function (data, type) {
|
|
1373
1379
|
try {
|
|
1374
|
-
var _data$plumberInfo, _data$plumberInfo2,
|
|
1380
|
+
var _data$plumberInfo, _data$plumberInfo2, _Digit17, _Digit17$Customizatio, _Digit17$Customizatio2, _Digit18, _Digit18$Customizatio, _Digit18$Customizatio2;
|
|
1375
1381
|
let payload = {
|
|
1376
1382
|
...data,
|
|
1377
1383
|
plumberInfo: data !== null && data !== void 0 && (_data$plumberInfo = data.plumberInfo) !== null && _data$plumberInfo !== void 0 && _data$plumberInfo[0] ? [{
|
|
@@ -1385,7 +1391,7 @@ const updatePayloadOfWSDisconnection = function (data, type) {
|
|
|
1385
1391
|
action: "SUBMIT_APPLICATION"
|
|
1386
1392
|
}
|
|
1387
1393
|
};
|
|
1388
|
-
payload = (
|
|
1394
|
+
payload = (_Digit17 = Digit) !== null && _Digit17 !== void 0 && (_Digit17$Customizatio = _Digit17.Customizations) !== null && _Digit17$Customizatio !== void 0 && (_Digit17$Customizatio2 = _Digit17$Customizatio.WS) !== null && _Digit17$Customizatio2 !== void 0 && _Digit17$Customizatio2.customiseUpdatePayloadOfWSDisconnection ? (_Digit18 = Digit) === null || _Digit18 === void 0 ? void 0 : (_Digit18$Customizatio = _Digit18.Customizations) === null || _Digit18$Customizatio === void 0 ? void 0 : (_Digit18$Customizatio2 = _Digit18$Customizatio.WS) === null || _Digit18$Customizatio2 === void 0 ? void 0 : _Digit18$Customizatio2.customiseUpdatePayloadOfWSDisconnection(data, payload, type) : payload;
|
|
1389
1395
|
return Promise.resolve(payload);
|
|
1390
1396
|
} catch (e) {
|
|
1391
1397
|
return Promise.reject(e);
|
|
@@ -8364,34 +8370,52 @@ const WSMyApplications = () => {
|
|
|
8364
8370
|
return GetCell(t(`CS_${(_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.applicationStatus}`) || t("CS_NA"));
|
|
8365
8371
|
}
|
|
8366
8372
|
}, {
|
|
8367
|
-
Header: t("
|
|
8373
|
+
Header: t("WS_APPLICATION_CREATED_TIME"),
|
|
8368
8374
|
disableSortBy: true,
|
|
8369
8375
|
Cell: _ref6 => {
|
|
8370
|
-
var _row$original8;
|
|
8376
|
+
var _row$original8, _row$original8$auditD;
|
|
8371
8377
|
let {
|
|
8372
8378
|
row
|
|
8373
8379
|
} = _ref6;
|
|
8374
|
-
const
|
|
8375
|
-
return GetCell(
|
|
8380
|
+
const createdTime = (_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : (_row$original8$auditD = _row$original8.auditDetails) === null || _row$original8$auditD === void 0 ? void 0 : _row$original8$auditD.createdTime;
|
|
8381
|
+
return GetCell(createdTime ? new Date(createdTime).toLocaleString("en-IN", {
|
|
8382
|
+
day: "2-digit",
|
|
8383
|
+
month: "2-digit",
|
|
8384
|
+
year: "numeric",
|
|
8385
|
+
hour: "2-digit",
|
|
8386
|
+
minute: "2-digit",
|
|
8387
|
+
hour12: true
|
|
8388
|
+
}) : t("CS_NA"));
|
|
8376
8389
|
}
|
|
8377
8390
|
}, {
|
|
8378
|
-
Header: t("
|
|
8391
|
+
Header: t("WS_SLA"),
|
|
8379
8392
|
disableSortBy: true,
|
|
8380
8393
|
Cell: _ref7 => {
|
|
8381
8394
|
var _row$original9;
|
|
8382
8395
|
let {
|
|
8383
8396
|
row
|
|
8384
8397
|
} = _ref7;
|
|
8385
|
-
const
|
|
8386
|
-
return GetCell(
|
|
8398
|
+
const slaDays = Math.round(((_row$original9 = row.original) === null || _row$original9 === void 0 ? void 0 : _row$original9.sla) / (24 * 60 * 60 * 1000));
|
|
8399
|
+
return GetCell(slaDays ? `${slaDays} Days` : t("CS_NA"));
|
|
8387
8400
|
}
|
|
8388
8401
|
}, {
|
|
8389
|
-
Header: t("
|
|
8402
|
+
Header: t("dueAmount"),
|
|
8390
8403
|
disableSortBy: true,
|
|
8391
8404
|
Cell: _ref8 => {
|
|
8405
|
+
var _row$original0;
|
|
8392
8406
|
let {
|
|
8393
8407
|
row
|
|
8394
8408
|
} = _ref8;
|
|
8409
|
+
const dueAmounts = (((_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0.dueVerification) || []).map(item => item === null || item === void 0 ? void 0 : item.dueAmount).filter(amount => amount !== null && amount !== undefined && amount !== "");
|
|
8410
|
+
return GetCell(dueAmounts.length > 0 ? dueAmounts.map(amount => `₹${Number(amount).toLocaleString("en-IN")}`).join(", ") : t("CS_NA"));
|
|
8411
|
+
}
|
|
8412
|
+
}, {
|
|
8413
|
+
Header: t("WS_VIEW_DETAILS"),
|
|
8414
|
+
disableSortBy: true,
|
|
8415
|
+
Cell: _ref9 => {
|
|
8416
|
+
let {
|
|
8417
|
+
row
|
|
8418
|
+
} = _ref9;
|
|
8395
8419
|
const application = row.original;
|
|
8396
8420
|
return /*#__PURE__*/React__default.createElement("span", {
|
|
8397
8421
|
className: "link"
|
|
@@ -8402,11 +8426,11 @@ const WSMyApplications = () => {
|
|
|
8402
8426
|
}, {
|
|
8403
8427
|
Header: t("MAKE_PAYMENT"),
|
|
8404
8428
|
disableSortBy: true,
|
|
8405
|
-
Cell:
|
|
8429
|
+
Cell: _ref0 => {
|
|
8406
8430
|
var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$applicat7, _application$applicat8, _application$connecti, _application$property, _application$property2, _application$applicat9;
|
|
8407
8431
|
let {
|
|
8408
8432
|
row
|
|
8409
|
-
} =
|
|
8433
|
+
} = _ref0;
|
|
8410
8434
|
const application = row.original;
|
|
8411
8435
|
const isMutation = application === null || application === void 0 ? void 0 : (_application$applicat = application.applicationType) === null || _application$applicat === void 0 ? void 0 : _application$applicat.includes("MUTATION");
|
|
8412
8436
|
const isReconnection = (application === null || application === void 0 ? void 0 : (_application$applicat2 = application.applicationType) === null || _application$applicat2 === void 0 ? void 0 : _application$applicat2.includes("RECONNECT")) || (application === null || application === void 0 ? void 0 : (_application$applicat3 = application.applicationNo) === null || _application$applicat3 === void 0 ? void 0 : _application$applicat3.includes("RC"));
|
|
@@ -8539,8 +8563,8 @@ const WSMyApplications = () => {
|
|
|
8539
8563
|
label: "SEWERAGE",
|
|
8540
8564
|
count: sewerageCount,
|
|
8541
8565
|
color: "#F59E0B"
|
|
8542
|
-
}, ...Object.entries(statusCounts).map((
|
|
8543
|
-
let [status, count] =
|
|
8566
|
+
}, ...Object.entries(statusCounts).map((_ref1, idx) => {
|
|
8567
|
+
let [status, count] = _ref1;
|
|
8544
8568
|
const colors = ["#10B981", "#A855F7", "#EF4444", "#64748B", "#F97316", "#06B6D4"];
|
|
8545
8569
|
return {
|
|
8546
8570
|
label: status === "UNKNOWN" ? "UNKNOWN" : `CS_${status}`,
|
|
@@ -9088,28 +9112,25 @@ const WSResponse = props => {
|
|
|
9088
9112
|
let filters = getQueryStringParams(location.search);
|
|
9089
9113
|
const [waterApplicationData, setWaterApplicationData] = React.useState({});
|
|
9090
9114
|
const [sewerageApplicationData, setSewerageApplicationData] = React.useState({});
|
|
9115
|
+
const hasWaterApp = !!(filters !== null && filters !== void 0 && filters.applicationNumber);
|
|
9116
|
+
const hasSewerageApp = !!(filters !== null && filters !== void 0 && filters.applicationNumber1);
|
|
9091
9117
|
const {
|
|
9092
9118
|
isLoading: waterLoading,
|
|
9093
9119
|
isError: waterError,
|
|
9094
9120
|
data: waterApplicationDetails
|
|
9095
|
-
} = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber, "WATER", {
|
|
9096
|
-
enabled:
|
|
9121
|
+
} = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber, "WATER", {}, {
|
|
9122
|
+
enabled: hasWaterApp
|
|
9097
9123
|
});
|
|
9098
9124
|
const {
|
|
9099
9125
|
isLoading: sewerageLoading,
|
|
9100
9126
|
isError: sewerageError,
|
|
9101
9127
|
data: sewerageApplicationDetails
|
|
9102
|
-
} = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber1, "SEWERAGE", {
|
|
9103
|
-
enabled:
|
|
9128
|
+
} = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber1, "SEWERAGE", {}, {
|
|
9129
|
+
enabled: hasSewerageApp
|
|
9104
9130
|
});
|
|
9105
|
-
React.useEffect(
|
|
9106
|
-
|
|
9107
|
-
|
|
9108
|
-
setSewerageApplicationData(sewerageApplicationDetails);
|
|
9109
|
-
return Promise.resolve();
|
|
9110
|
-
} catch (e) {
|
|
9111
|
-
return Promise.reject(e);
|
|
9112
|
-
}
|
|
9131
|
+
React.useEffect(() => {
|
|
9132
|
+
setWaterApplicationData(waterApplicationDetails);
|
|
9133
|
+
setSewerageApplicationData(sewerageApplicationDetails);
|
|
9113
9134
|
}, [waterApplicationDetails, sewerageApplicationDetails]);
|
|
9114
9135
|
const {
|
|
9115
9136
|
data: oldDataWater
|
|
@@ -9137,6 +9158,9 @@ const WSResponse = props => {
|
|
|
9137
9158
|
});
|
|
9138
9159
|
const oldApplicationWater = oldDataWater === null || oldDataWater === void 0 ? void 0 : (_oldDataWater$WaterCo = oldDataWater.WaterConnection) === null || _oldDataWater$WaterCo === void 0 ? void 0 : _oldDataWater$WaterCo[(oldDataWater === null || oldDataWater === void 0 ? void 0 : (_oldDataWater$WaterCo2 = oldDataWater.WaterConnection) === null || _oldDataWater$WaterCo2 === void 0 ? void 0 : _oldDataWater$WaterCo2.length) - 1];
|
|
9139
9160
|
const oldApplicationSew = oldDataSew === null || oldDataSew === void 0 ? void 0 : (_oldDataSew$SewerageC = oldDataSew.SewerageConnections) === null || _oldDataSew$SewerageC === void 0 ? void 0 : _oldDataSew$SewerageC[(oldDataSew === null || oldDataSew === void 0 ? void 0 : (_oldDataSew$SewerageC2 = oldDataSew.SewerageConnections) === null || _oldDataSew$SewerageC2 === void 0 ? void 0 : _oldDataSew$SewerageC2.length) - 1];
|
|
9161
|
+
const isLoading = hasWaterApp && waterLoading || hasSewerageApp && sewerageLoading;
|
|
9162
|
+
const isError = !hasWaterApp && !hasSewerageApp || hasWaterApp && waterError || hasSewerageApp && sewerageError;
|
|
9163
|
+
const isSuccess = !isLoading && !isError;
|
|
9140
9164
|
const handleAckPdfDownloadWater = function () {
|
|
9141
9165
|
try {
|
|
9142
9166
|
var _waterApplicationData4, _waterApplicationData5, _waterApplicationData6;
|
|
@@ -9193,13 +9217,16 @@ const WSResponse = props => {
|
|
|
9193
9217
|
let isEmployee = window.location.href.includes("/employee");
|
|
9194
9218
|
history.push(isEmployee ? `/digit-ui/employee` : `/digit-ui/citizen`);
|
|
9195
9219
|
};
|
|
9220
|
+
if (isLoading) {
|
|
9221
|
+
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
|
|
9222
|
+
}
|
|
9196
9223
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Banner, {
|
|
9197
|
-
message: t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL"),
|
|
9198
|
-
applicationNumber: filters === null || filters === void 0 ? void 0 : filters.applicationNumber,
|
|
9199
|
-
applicationNumberOne: filters === null || filters === void 0 ? void 0 : filters.applicationNumber1,
|
|
9200
|
-
info: filters !== null && filters !== void 0 && filters.applicationNumber ? t("WS_WATER_APPLICATION_NUMBER_LABEL") : "",
|
|
9201
|
-
infoOne: filters !== null && filters !== void 0 && filters.applicationNumber1 ? t("WS_SEWERAGE_APPLICATION_NUMBER_LABEL") : "",
|
|
9202
|
-
successful:
|
|
9224
|
+
message: isSuccess ? t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL") : t("WS_APPLICATION_SUBMIT_FAILED_LABEL"),
|
|
9225
|
+
applicationNumber: isSuccess ? filters === null || filters === void 0 ? void 0 : filters.applicationNumber : undefined,
|
|
9226
|
+
applicationNumberOne: isSuccess ? filters === null || filters === void 0 ? void 0 : filters.applicationNumber1 : undefined,
|
|
9227
|
+
info: isSuccess && filters !== null && filters !== void 0 && filters.applicationNumber ? t("WS_WATER_APPLICATION_NUMBER_LABEL") : "",
|
|
9228
|
+
infoOne: isSuccess && filters !== null && filters !== void 0 && filters.applicationNumber1 ? t("WS_SEWERAGE_APPLICATION_NUMBER_LABEL") : "",
|
|
9229
|
+
successful: isSuccess,
|
|
9203
9230
|
style: {
|
|
9204
9231
|
padding: "10px"
|
|
9205
9232
|
},
|
|
@@ -9209,7 +9236,7 @@ const WSResponse = props => {
|
|
|
9209
9236
|
infoOneStyles: {
|
|
9210
9237
|
paddingTop: "20px"
|
|
9211
9238
|
}
|
|
9212
|
-
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
|
|
9239
|
+
}), isSuccess && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
|
|
9213
9240
|
style: {
|
|
9214
9241
|
paddingBottom: "10px",
|
|
9215
9242
|
marginBottom: "10px"
|
|
@@ -9252,7 +9279,7 @@ const WSResponse = props => {
|
|
|
9252
9279
|
}, /*#__PURE__*/React__default.createElement("path", {
|
|
9253
9280
|
d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
|
|
9254
9281
|
fill: "#a82227"
|
|
9255
|
-
})), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React__default.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT"
|
|
9282
|
+
})), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React__default.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" && /*#__PURE__*/React__default.createElement("div", {
|
|
9256
9283
|
style: {
|
|
9257
9284
|
marginTop: "10px"
|
|
9258
9285
|
}
|
|
@@ -9265,8 +9292,8 @@ const WSResponse = props => {
|
|
|
9265
9292
|
let consumerCodeOriginal = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData1 = waterApplicationData.applicationData) !== null && _waterApplicationData1 !== void 0 && (_waterApplicationData10 = _waterApplicationData1.applicationNo) !== null && _waterApplicationData10 !== void 0 && _waterApplicationData10.includes("DC") ? waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData11 = waterApplicationData.applicationData) === null || _waterApplicationData11 === void 0 ? void 0 : _waterApplicationData11.connectionNo : waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData12 = waterApplicationData.applicationData) === null || _waterApplicationData12 === void 0 ? void 0 : _waterApplicationData12.applicationNo;
|
|
9266
9293
|
let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
|
|
9267
9294
|
let tenantId = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData13 = waterApplicationData.applicationData) === null || _waterApplicationData13 === void 0 ? void 0 : _waterApplicationData13.tenantId;
|
|
9268
|
-
let consumerName = (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData14 = waterApplicationData.applicationData) === null || _waterApplicationData14 === void 0 ? void 0 : (_waterApplicationData15 = _waterApplicationData14.connectionHolders) === null || _waterApplicationData15 === void 0 ? void 0 : _waterApplicationData15.map(
|
|
9269
|
-
let isDisconnectFlow = waterApplicationData
|
|
9295
|
+
let consumerName = (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData14 = waterApplicationData.applicationData) === null || _waterApplicationData14 === void 0 ? void 0 : (_waterApplicationData15 = _waterApplicationData14.connectionHolders) === null || _waterApplicationData15 === void 0 ? void 0 : _waterApplicationData15.map(o => o.name).join(",")) || (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData16 = waterApplicationData.propertyDetails) === null || _waterApplicationData16 === void 0 ? void 0 : (_waterApplicationData17 = _waterApplicationData16.owners) === null || _waterApplicationData17 === void 0 ? void 0 : _waterApplicationData17.map(o => o.name).join(","));
|
|
9296
|
+
let isDisconnectFlow = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData18 = waterApplicationData.applicationData) === null || _waterApplicationData18 === void 0 ? void 0 : (_waterApplicationData19 = _waterApplicationData18.applicationNo) === null || _waterApplicationData19 === void 0 ? void 0 : _waterApplicationData19.includes("DC");
|
|
9270
9297
|
if (isEmployee) {
|
|
9271
9298
|
history.push({
|
|
9272
9299
|
pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
|
|
@@ -9281,7 +9308,7 @@ const WSResponse = props => {
|
|
|
9281
9308
|
});
|
|
9282
9309
|
}
|
|
9283
9310
|
}
|
|
9284
|
-
}))
|
|
9311
|
+
})), (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" && /*#__PURE__*/React__default.createElement("div", {
|
|
9285
9312
|
style: {
|
|
9286
9313
|
marginTop: "10px",
|
|
9287
9314
|
marginLeft: "10px"
|
|
@@ -9295,8 +9322,8 @@ const WSResponse = props => {
|
|
|
9295
9322
|
let consumerCodeOriginal = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD1 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD1 !== void 0 && (_sewerageApplicationD10 = _sewerageApplicationD1.applicationNo) !== null && _sewerageApplicationD10 !== void 0 && _sewerageApplicationD10.includes("DC") ? sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD11 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD11 === void 0 ? void 0 : _sewerageApplicationD11.connectionNo : sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD12 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD12 === void 0 ? void 0 : _sewerageApplicationD12.applicationNo;
|
|
9296
9323
|
let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
|
|
9297
9324
|
let tenantId = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD13 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD13 === void 0 ? void 0 : _sewerageApplicationD13.tenantId;
|
|
9298
|
-
let consumerName = (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD14 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD14 === void 0 ? void 0 : (_sewerageApplicationD15 = _sewerageApplicationD14.connectionHolders) === null || _sewerageApplicationD15 === void 0 ? void 0 : _sewerageApplicationD15.map(
|
|
9299
|
-
let isDisconnectFlow = sewerageApplicationData
|
|
9325
|
+
let consumerName = (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD14 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD14 === void 0 ? void 0 : (_sewerageApplicationD15 = _sewerageApplicationD14.connectionHolders) === null || _sewerageApplicationD15 === void 0 ? void 0 : _sewerageApplicationD15.map(o => o.name).join(",")) || (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD16 = sewerageApplicationData.propertyDetails) === null || _sewerageApplicationD16 === void 0 ? void 0 : (_sewerageApplicationD17 = _sewerageApplicationD16.owners) === null || _sewerageApplicationD17 === void 0 ? void 0 : _sewerageApplicationD17.map(o => o.name).join(","));
|
|
9326
|
+
let isDisconnectFlow = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD18 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD18 === void 0 ? void 0 : (_sewerageApplicationD19 = _sewerageApplicationD18.applicationNo) === null || _sewerageApplicationD19 === void 0 ? void 0 : _sewerageApplicationD19.includes("DC");
|
|
9300
9327
|
if (isEmployee) {
|
|
9301
9328
|
history.push({
|
|
9302
9329
|
pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
|
|
@@ -9311,7 +9338,13 @@ const WSResponse = props => {
|
|
|
9311
9338
|
});
|
|
9312
9339
|
}
|
|
9313
9340
|
}
|
|
9314
|
-
}))
|
|
9341
|
+
})))), isError && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
|
|
9342
|
+
style: {
|
|
9343
|
+
paddingBottom: "10px",
|
|
9344
|
+
marginBottom: "10px",
|
|
9345
|
+
color: "#B91900"
|
|
9346
|
+
}
|
|
9347
|
+
}, t("WS_APPLICATION_SUBMIT_FAILED_DESC")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
|
|
9315
9348
|
style: {
|
|
9316
9349
|
display: "flex",
|
|
9317
9350
|
justifyContent: "flex-end",
|
|
@@ -14596,7 +14629,7 @@ const ConnectionDetails$1 = _props => {
|
|
|
14596
14629
|
name: "name",
|
|
14597
14630
|
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.name,
|
|
14598
14631
|
rules: {
|
|
14599
|
-
validate: e => e
|
|
14632
|
+
validate: e => !e || !e.trim() ? t("REQUIRED_FIELD") : e.includes("*") || /^[a-zA-Z\s]{1,50}$/.test(e) ? true : t("WS_NAME_ERROR_MESSAGE") || t("PT_NAME_ERROR_MESSAGE") || "Only alphabets are allowed",
|
|
14600
14633
|
required: t("REQUIRED_FIELD")
|
|
14601
14634
|
},
|
|
14602
14635
|
isMandatory: true,
|
|
@@ -14607,8 +14640,10 @@ const ConnectionDetails$1 = _props => {
|
|
|
14607
14640
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "name",
|
|
14608
14641
|
errorStyle: localFormState.touched.name && errors !== null && errors !== void 0 && (_errors$name = errors.name) !== null && _errors$name !== void 0 && _errors$name.message ? true : false,
|
|
14609
14642
|
onChange: e => {
|
|
14610
|
-
|
|
14611
|
-
|
|
14643
|
+
const val = e.target.value;
|
|
14644
|
+
const cleanVal = val && val.includes("*") ? val : val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
|
|
14645
|
+
setName(cleanVal);
|
|
14646
|
+
props.onChange(cleanVal);
|
|
14612
14647
|
setFocusIndex({
|
|
14613
14648
|
index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
|
|
14614
14649
|
type: "name"
|
|
@@ -14648,6 +14683,9 @@ const ConnectionDetails$1 = _props => {
|
|
|
14648
14683
|
control: control,
|
|
14649
14684
|
name: "middleName",
|
|
14650
14685
|
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.middleName,
|
|
14686
|
+
rules: {
|
|
14687
|
+
validate: e => !e || !e.trim() || /^[a-zA-Z\s]{1,50}$/.test(e) ? true : t("WS_NAME_ERROR_MESSAGE") || t("PT_NAME_ERROR_MESSAGE") || "Only alphabets are allowed"
|
|
14688
|
+
},
|
|
14651
14689
|
render: props => {
|
|
14652
14690
|
var _errors$middleName;
|
|
14653
14691
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
@@ -14655,8 +14693,10 @@ const ConnectionDetails$1 = _props => {
|
|
|
14655
14693
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "middleName",
|
|
14656
14694
|
errorStyle: localFormState.touched.middleName && errors !== null && errors !== void 0 && (_errors$middleName = errors.middleName) !== null && _errors$middleName !== void 0 && _errors$middleName.message ? true : false,
|
|
14657
14695
|
onChange: e => {
|
|
14658
|
-
|
|
14659
|
-
|
|
14696
|
+
const val = e.target.value;
|
|
14697
|
+
const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
|
|
14698
|
+
setMiddleName(cleanVal);
|
|
14699
|
+
props.onChange(cleanVal);
|
|
14660
14700
|
setFocusIndex({
|
|
14661
14701
|
index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
|
|
14662
14702
|
type: "middleName"
|
|
@@ -14675,6 +14715,9 @@ const ConnectionDetails$1 = _props => {
|
|
|
14675
14715
|
control: control,
|
|
14676
14716
|
name: "lastName",
|
|
14677
14717
|
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.lastName,
|
|
14718
|
+
rules: {
|
|
14719
|
+
validate: e => !e || !e.trim() || /^[a-zA-Z\s]{1,50}$/.test(e) ? true : t("WS_NAME_ERROR_MESSAGE") || t("PT_NAME_ERROR_MESSAGE") || "Only alphabets are allowed"
|
|
14720
|
+
},
|
|
14678
14721
|
render: props => {
|
|
14679
14722
|
var _errors$lastName;
|
|
14680
14723
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
|
|
@@ -14682,8 +14725,10 @@ const ConnectionDetails$1 = _props => {
|
|
|
14682
14725
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "lastName",
|
|
14683
14726
|
errorStyle: localFormState.touched.lastName && errors !== null && errors !== void 0 && (_errors$lastName = errors.lastName) !== null && _errors$lastName !== void 0 && _errors$lastName.message ? true : false,
|
|
14684
14727
|
onChange: e => {
|
|
14685
|
-
|
|
14686
|
-
|
|
14728
|
+
const val = e.target.value;
|
|
14729
|
+
const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
|
|
14730
|
+
setLastName(cleanVal);
|
|
14731
|
+
props.onChange(cleanVal);
|
|
14687
14732
|
setFocusIndex({
|
|
14688
14733
|
index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
|
|
14689
14734
|
type: "lastName"
|
|
@@ -14765,7 +14810,12 @@ const ConnectionDetails$1 = _props => {
|
|
|
14765
14810
|
name: "mobileNumber",
|
|
14766
14811
|
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.mobileNumber,
|
|
14767
14812
|
rules: {
|
|
14768
|
-
validate: e =>
|
|
14813
|
+
validate: e => {
|
|
14814
|
+
if (!e || !e.trim()) return t("REQUIRED_FIELD");
|
|
14815
|
+
if (e.includes("*")) return true;
|
|
14816
|
+
if (/^[6-9]\d{9}$/.test(e)) return true;
|
|
14817
|
+
return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
|
|
14818
|
+
},
|
|
14769
14819
|
required: t("REQUIRED_FIELD")
|
|
14770
14820
|
},
|
|
14771
14821
|
isMandatory: true,
|
|
@@ -14775,18 +14825,23 @@ const ConnectionDetails$1 = _props => {
|
|
|
14775
14825
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
|
|
14776
14826
|
name: "mobileNumber",
|
|
14777
14827
|
value: mobileValue || "",
|
|
14828
|
+
maxlength: 10,
|
|
14829
|
+
maxLength: 10,
|
|
14778
14830
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "mobileNumber",
|
|
14779
14831
|
errorStyle: localFormState.touched.mobileNumber && (errors === null || errors === void 0 ? void 0 : (_errors$mobileNumber = errors.mobileNumber) === null || _errors$mobileNumber === void 0 ? void 0 : _errors$mobileNumber.message),
|
|
14780
14832
|
onChange: val => {
|
|
14781
|
-
|
|
14782
|
-
|
|
14833
|
+
const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
|
|
14834
|
+
setMobileNumber(cleanVal);
|
|
14835
|
+
props.onChange(cleanVal);
|
|
14783
14836
|
setFocusIndex({
|
|
14784
14837
|
index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
|
|
14785
14838
|
type: "mobileNumber"
|
|
14786
14839
|
});
|
|
14787
14840
|
if (isWatsappSameAsMobile) {
|
|
14788
|
-
setWatsAppMobileNumber(
|
|
14789
|
-
setValue("watsAppMobileNumber",
|
|
14841
|
+
setWatsAppMobileNumber(cleanVal);
|
|
14842
|
+
setValue("watsAppMobileNumber", cleanVal, {
|
|
14843
|
+
shouldValidate: true
|
|
14844
|
+
});
|
|
14790
14845
|
}
|
|
14791
14846
|
},
|
|
14792
14847
|
onBlur: props.onBlur,
|
|
@@ -14826,7 +14881,12 @@ const ConnectionDetails$1 = _props => {
|
|
|
14826
14881
|
name: "watsAppMobileNumber",
|
|
14827
14882
|
defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.watsAppMobileNumber,
|
|
14828
14883
|
rules: {
|
|
14829
|
-
validate: e =>
|
|
14884
|
+
validate: e => {
|
|
14885
|
+
if (!e || !e.trim()) return t("REQUIRED_FIELD");
|
|
14886
|
+
if (e.includes("*")) return true;
|
|
14887
|
+
if (/^[6-9]\d{9}$/.test(e)) return true;
|
|
14888
|
+
return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
|
|
14889
|
+
},
|
|
14830
14890
|
required: t("REQUIRED_FIELD")
|
|
14831
14891
|
},
|
|
14832
14892
|
isMandatory: true,
|
|
@@ -14836,11 +14896,14 @@ const ConnectionDetails$1 = _props => {
|
|
|
14836
14896
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
|
|
14837
14897
|
name: "watsAppMobileNumber",
|
|
14838
14898
|
value: watsAppmobileValue || "",
|
|
14899
|
+
maxlength: 10,
|
|
14900
|
+
maxLength: 10,
|
|
14839
14901
|
autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "watsAppMobileNumber",
|
|
14840
14902
|
errorStyle: localFormState.touched.watsAppMobileNumber && (errors === null || errors === void 0 ? void 0 : (_errors$watsAppMobile = errors.watsAppMobileNumber) === null || _errors$watsAppMobile === void 0 ? void 0 : _errors$watsAppMobile.message),
|
|
14841
14903
|
onChange: val => {
|
|
14842
|
-
|
|
14843
|
-
|
|
14904
|
+
const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
|
|
14905
|
+
setWatsAppMobileNumber(cleanVal);
|
|
14906
|
+
props.onChange(cleanVal);
|
|
14844
14907
|
setFocusIndex({
|
|
14845
14908
|
index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
|
|
14846
14909
|
type: "watsAppMobileNumber"
|
|
@@ -14896,11 +14959,16 @@ const ConnectionDetails$1 = _props => {
|
|
|
14896
14959
|
type: "isWatsappSameAsMobile"
|
|
14897
14960
|
});
|
|
14898
14961
|
if (e.target.checked) {
|
|
14899
|
-
|
|
14900
|
-
|
|
14962
|
+
const currentMobile = getValues("mobileNumber") || mobileNumber;
|
|
14963
|
+
setWatsAppMobileNumber(currentMobile);
|
|
14964
|
+
setValue("watsAppMobileNumber", currentMobile, {
|
|
14965
|
+
shouldValidate: true
|
|
14966
|
+
});
|
|
14901
14967
|
} else {
|
|
14902
14968
|
setWatsAppMobileNumber("");
|
|
14903
|
-
setValue("watsAppMobileNumber", ""
|
|
14969
|
+
setValue("watsAppMobileNumber", "", {
|
|
14970
|
+
shouldValidate: true
|
|
14971
|
+
});
|
|
14904
14972
|
}
|
|
14905
14973
|
},
|
|
14906
14974
|
checked: isWatsappSameAsMobile,
|
|
@@ -16660,7 +16728,7 @@ const PlumberDetails = _props => {
|
|
|
16660
16728
|
name: "plumberName",
|
|
16661
16729
|
defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.plumberName,
|
|
16662
16730
|
rules: {
|
|
16663
|
-
validate: e => e
|
|
16731
|
+
validate: e => !e || !e.trim() ? t("REQUIRED_FIELD") : /^[a-zA-Z\s]{1,50}$/.test(e) ? true : t("WS_NAME_ERROR_MESSAGE") || t("PT_NAME_ERROR_MESSAGE") || "Only alphabets are allowed",
|
|
16664
16732
|
required: t("REQUIRED_FIELD")
|
|
16665
16733
|
},
|
|
16666
16734
|
isMandatory: true,
|
|
@@ -16671,7 +16739,9 @@ const PlumberDetails = _props => {
|
|
|
16671
16739
|
autoFocus: focusIndex.index === (plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key) && focusIndex.type === "plumberName",
|
|
16672
16740
|
errorStyle: localFormState.touched.plumberName && errors !== null && errors !== void 0 && (_errors$plumberName = errors.plumberName) !== null && _errors$plumberName !== void 0 && _errors$plumberName.message ? true : false,
|
|
16673
16741
|
onChange: e => {
|
|
16674
|
-
|
|
16742
|
+
const val = e.target.value;
|
|
16743
|
+
const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
|
|
16744
|
+
props.onChange(cleanVal);
|
|
16675
16745
|
setFocusIndex({
|
|
16676
16746
|
index: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key,
|
|
16677
16747
|
type: "plumberName"
|
|
@@ -16697,7 +16767,12 @@ const PlumberDetails = _props => {
|
|
|
16697
16767
|
name: "plumberMobileNo",
|
|
16698
16768
|
defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.plumberMobileNo,
|
|
16699
16769
|
rules: {
|
|
16700
|
-
validate: e =>
|
|
16770
|
+
validate: e => {
|
|
16771
|
+
if (!e || !e.trim()) return t("REQUIRED_FIELD");
|
|
16772
|
+
if (e.includes("*")) return true;
|
|
16773
|
+
if (/^[6-9]\d{9}$/.test(e)) return true;
|
|
16774
|
+
return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
|
|
16775
|
+
},
|
|
16701
16776
|
required: t("REQUIRED_FIELD")
|
|
16702
16777
|
},
|
|
16703
16778
|
type: "mobileNumber",
|
|
@@ -16725,10 +16800,14 @@ const PlumberDetails = _props => {
|
|
|
16725
16800
|
},
|
|
16726
16801
|
type: "mobileNumber",
|
|
16727
16802
|
value: props.value,
|
|
16803
|
+
maxlength: 10,
|
|
16804
|
+
maxLength: 10,
|
|
16728
16805
|
autoFocus: focusIndex.index === (plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key) && focusIndex.type === "plumberMobileNo",
|
|
16729
16806
|
errorStyle: localFormState.touched.plumberMobileNo && errors !== null && errors !== void 0 && (_errors$plumberMobile = errors.plumberMobileNo) !== null && _errors$plumberMobile !== void 0 && _errors$plumberMobile.message ? true : false,
|
|
16730
16807
|
onChange: e => {
|
|
16731
|
-
|
|
16808
|
+
const val = e.target.value;
|
|
16809
|
+
const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
|
|
16810
|
+
props.onChange(cleanVal);
|
|
16732
16811
|
setFocusIndex({
|
|
16733
16812
|
index: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key,
|
|
16734
16813
|
type: "plumberMobileNo"
|
|
@@ -19030,6 +19109,24 @@ const WSDocumentsEmployee = _ref => {
|
|
|
19030
19109
|
whiteSpace: "nowrap"
|
|
19031
19110
|
}
|
|
19032
19111
|
}, t("WS_DOWNLOAD_DOCUMENT"))) : null;
|
|
19112
|
+
const uploadInfoBanner = /*#__PURE__*/React__default.createElement("div", {
|
|
19113
|
+
style: {
|
|
19114
|
+
display: "flex",
|
|
19115
|
+
alignItems: "center",
|
|
19116
|
+
gap: "10px",
|
|
19117
|
+
marginBottom: "16px",
|
|
19118
|
+
padding: "10px 14px",
|
|
19119
|
+
backgroundColor: "#e8f4fd",
|
|
19120
|
+
borderLeft: "4px solid #00497e",
|
|
19121
|
+
borderRadius: "4px"
|
|
19122
|
+
}
|
|
19123
|
+
}, /*#__PURE__*/React__default.createElement("span", {
|
|
19124
|
+
style: {
|
|
19125
|
+
fontSize: "14px",
|
|
19126
|
+
color: "#00497e",
|
|
19127
|
+
fontWeight: "600"
|
|
19128
|
+
}
|
|
19129
|
+
}, "\u2139\uFE0F ", t("WS_DOCUMENT_UPLOAD_INSTRUCTION") || "Maximum upload size: 5MB per document. Supported formats: PDF, JPG, PNG."));
|
|
19033
19130
|
if (userType === "citizen") {
|
|
19034
19131
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Timeline, {
|
|
19035
19132
|
currentStep: 3
|
|
@@ -19039,7 +19136,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
19039
19136
|
onSelect: goNext,
|
|
19040
19137
|
onSkip: () => onSelect(),
|
|
19041
19138
|
isDisabled: enableSubmit
|
|
19042
|
-
}, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
19139
|
+
}, uploadInfoBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
19043
19140
|
label: error,
|
|
19044
19141
|
onClose: () => setError(null),
|
|
19045
19142
|
error: true
|
|
@@ -19048,7 +19145,7 @@ const WSDocumentsEmployee = _ref => {
|
|
|
19048
19145
|
return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
|
|
19049
19146
|
title: t("WS_DOCUMENTS"),
|
|
19050
19147
|
defaultOpen: true
|
|
19051
|
-
}, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
19148
|
+
}, uploadInfoBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
|
|
19052
19149
|
label: error,
|
|
19053
19150
|
onClose: () => setError(null),
|
|
19054
19151
|
error: true
|
|
@@ -19197,10 +19294,15 @@ function SelectDocument(_ref2) {
|
|
|
19197
19294
|
}
|
|
19198
19295
|
}, []);
|
|
19199
19296
|
function selectfile(e, newFile) {
|
|
19200
|
-
|
|
19201
|
-
|
|
19202
|
-
|
|
19203
|
-
|
|
19297
|
+
var _e$target, _e$target$files;
|
|
19298
|
+
const selectedFile = newFile || (e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : (_e$target$files = _e$target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0]);
|
|
19299
|
+
if (selectedFile) {
|
|
19300
|
+
if (selectedFile.size > 5242880) {
|
|
19301
|
+
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB");
|
|
19302
|
+
if (e !== null && e !== void 0 && e.target) e.target.value = "";
|
|
19303
|
+
return;
|
|
19304
|
+
}
|
|
19305
|
+
setFile(selectedFile);
|
|
19204
19306
|
}
|
|
19205
19307
|
setIsCameraFile(false);
|
|
19206
19308
|
}
|
|
@@ -19313,8 +19415,9 @@ function SelectDocument(_ref2) {
|
|
|
19313
19415
|
setFile(null);
|
|
19314
19416
|
} else {
|
|
19315
19417
|
const _temp5 = function () {
|
|
19316
|
-
if (file.size
|
|
19317
|
-
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
|
|
19418
|
+
if (file.size > 5242880) {
|
|
19419
|
+
setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB");
|
|
19420
|
+
setFile(null);
|
|
19318
19421
|
} else {
|
|
19319
19422
|
const _temp4 = function () {
|
|
19320
19423
|
if ((doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && !file.type.match(/image\/(jpeg|png)/i) && !file.name.match(/\.(jpg|jpeg|png)$/i)) {
|
|
@@ -19497,6 +19600,13 @@ function SelectDocument(_ref2) {
|
|
|
19497
19600
|
}, t(`${doc === null || doc === void 0 ? void 0 : (_doc$i18nKey2 = doc.i18nKey) === null || _doc$i18nKey2 === void 0 ? void 0 : _doc$i18nKey2.replaceAll(".", "_")}_UPLOAD_DOCUMENT`), (doc === null || doc === void 0 ? void 0 : doc.required) && /*#__PURE__*/React__default.createElement("span", {
|
|
19498
19601
|
className: "check-page-link-button"
|
|
19499
19602
|
}, "*"))), /*#__PURE__*/React__default.createElement("div", {
|
|
19603
|
+
style: {
|
|
19604
|
+
fontSize: "12px",
|
|
19605
|
+
color: "#666",
|
|
19606
|
+
marginTop: "-2px",
|
|
19607
|
+
marginBottom: "4px"
|
|
19608
|
+
}
|
|
19609
|
+
}, t("WS_DOCUMENT_MAX_SIZE_MESSAGE") || "Allowed formats: PDF, JPG, PNG | Max file size: 5MB"), /*#__PURE__*/React__default.createElement("div", {
|
|
19500
19610
|
className: "field",
|
|
19501
19611
|
style: {
|
|
19502
19612
|
display: "flex",
|
|
@@ -25447,11 +25557,12 @@ const WSDjbEmployee = _ref => {
|
|
|
25447
25557
|
const _temp3 = function () {
|
|
25448
25558
|
if (file) {
|
|
25449
25559
|
const _temp2 = function () {
|
|
25450
|
-
if (file.size
|
|
25560
|
+
if (file.size > 5242880) {
|
|
25451
25561
|
setErrorUpload({
|
|
25452
25562
|
key: "error",
|
|
25453
|
-
message: "CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"
|
|
25563
|
+
message: t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB"
|
|
25454
25564
|
});
|
|
25565
|
+
setFile(null);
|
|
25455
25566
|
} else {
|
|
25456
25567
|
const _temp = _catch(function () {
|
|
25457
25568
|
setUploadedFile(null);
|
|
@@ -25467,14 +25578,14 @@ const WSDjbEmployee = _ref => {
|
|
|
25467
25578
|
} else {
|
|
25468
25579
|
setErrorUpload({
|
|
25469
25580
|
key: "error",
|
|
25470
|
-
message: "CS_FILE_UPLOAD_ERROR"
|
|
25581
|
+
message: t("CS_FILE_UPLOAD_ERROR") || "File Upload Error"
|
|
25471
25582
|
});
|
|
25472
25583
|
}
|
|
25473
25584
|
});
|
|
25474
25585
|
}, function () {
|
|
25475
25586
|
setErrorUpload({
|
|
25476
25587
|
key: "error",
|
|
25477
|
-
message: "CS_FILE_UPLOAD_ERROR"
|
|
25588
|
+
message: t("CS_FILE_UPLOAD_ERROR") || "File Upload Error"
|
|
25478
25589
|
});
|
|
25479
25590
|
});
|
|
25480
25591
|
if (_temp && _temp.then) return _temp.then(function () {});
|
|
@@ -25490,7 +25601,19 @@ const WSDjbEmployee = _ref => {
|
|
|
25490
25601
|
})();
|
|
25491
25602
|
}, [file]);
|
|
25492
25603
|
function selectfile(e) {
|
|
25493
|
-
|
|
25604
|
+
var _e$target, _e$target$files;
|
|
25605
|
+
const selected = e === null || e === void 0 ? void 0 : (_e$target = e.target) === null || _e$target === void 0 ? void 0 : (_e$target$files = _e$target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
|
|
25606
|
+
if (selected) {
|
|
25607
|
+
if (selected.size > 5242880) {
|
|
25608
|
+
setErrorUpload({
|
|
25609
|
+
key: "error",
|
|
25610
|
+
message: t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB"
|
|
25611
|
+
});
|
|
25612
|
+
if (e !== null && e !== void 0 && e.target) e.target.value = "";
|
|
25613
|
+
return;
|
|
25614
|
+
}
|
|
25615
|
+
setFile(selected);
|
|
25616
|
+
}
|
|
25494
25617
|
}
|
|
25495
25618
|
React.useEffect(() => {
|
|
25496
25619
|
const isEmployeeMode = userType === "employee" || window.location.href.includes("edit-application") || window.location.href.includes("modify-connection") || window.location.href.includes("old-application");
|
|
@@ -25625,9 +25748,16 @@ const WSDjbEmployee = _ref => {
|
|
|
25625
25748
|
})
|
|
25626
25749
|
}), (localFormState === null || localFormState === void 0 ? void 0 : (_localFormState$touch2 = localFormState.touched) === null || _localFormState$touch2 === void 0 ? void 0 : _localFormState$touch2.designation) && !(formValue !== null && formValue !== void 0 && (_formValue$designatio = formValue.designation) !== null && _formValue$designatio !== void 0 && (_formValue$designatio2 = _formValue$designatio.trim) !== null && _formValue$designatio2 !== void 0 && _formValue$designatio2.call(_formValue$designatio)) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
|
|
25627
25750
|
style: errorStyle
|
|
25628
|
-
}, t("CORE_COMMON_REQUIRED_ERRMSG"))))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("Upload Employee ID Document"), isDjbEmployee && /*#__PURE__*/React__default.createElement("span", {
|
|
25751
|
+
}, t("CORE_COMMON_REQUIRED_ERRMSG"))))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("Upload Employee ID Document"), isDjbEmployee && /*#__PURE__*/React__default.createElement("span", {
|
|
25629
25752
|
className: "check-page-link-button"
|
|
25630
25753
|
}, " *")), /*#__PURE__*/React__default.createElement("div", {
|
|
25754
|
+
style: {
|
|
25755
|
+
fontSize: "12px",
|
|
25756
|
+
color: "#666",
|
|
25757
|
+
marginTop: "-2px",
|
|
25758
|
+
marginBottom: "4px"
|
|
25759
|
+
}
|
|
25760
|
+
}, t("WS_DOCUMENT_MAX_SIZE_MESSAGE") || "Allowed formats: PDF, JPG, PNG | Max file size: 5MB")), /*#__PURE__*/React__default.createElement("div", {
|
|
25631
25761
|
className: "field",
|
|
25632
25762
|
style: {
|
|
25633
25763
|
width: "100%"
|
|
@@ -28291,14 +28421,14 @@ const MobileSearchWater = _ref => {
|
|
|
28291
28421
|
return [];
|
|
28292
28422
|
}
|
|
28293
28423
|
return data === null || data === void 0 ? void 0 : data.map(data => {
|
|
28294
|
-
var _data$status, _data$status2;
|
|
28424
|
+
var _data$status, _data$property, _data$status2;
|
|
28295
28425
|
return {
|
|
28296
28426
|
[t("WS_MYCONNECTIONS_CONSUMER_NO")]: GetStatusLinkCell(data) || t(`${"WS_NA"}`),
|
|
28297
28427
|
[t("WS_COMMON_TABLE_COL_SERVICE_LABEL")]: t(`WS_${data === null || data === void 0 ? void 0 : data.service}`),
|
|
28298
28428
|
[t("WS_COMMON_TABLE_COL_OWN_NAME_LABEL")]: (data === null || data === void 0 ? void 0 : data.owner) || t(`${"WS_NA"}`),
|
|
28299
28429
|
[t("WS_COMMON_TABLE_COL_STATUS_LABEL")]: t(`WS_${data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()}`),
|
|
28300
28430
|
[t("WS_COMMON_TABLE_COL_AMT_DUE_LABEL")]: (data === null || data === void 0 ? void 0 : data.due) || t(`${"WS_NA"}`),
|
|
28301
|
-
[t("WS_COMMON_TABLE_COL_ADDRESS")]: (data === null || data === void 0 ? void 0 : data.address) || t(`${"WS_NA"}`),
|
|
28431
|
+
[t("WS_COMMON_TABLE_COL_ADDRESS")]: formatPropertyAddress((data === null || data === void 0 ? void 0 : (_data$property = data.property) === null || _data$property === void 0 ? void 0 : _data$property.address) || (data === null || data === void 0 ? void 0 : data.propertyAddress), t) || (data === null || data === void 0 ? void 0 : data.address) || t(`${"WS_NA"}`),
|
|
28302
28432
|
[t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL")]: (data === null || data === void 0 ? void 0 : (_data$status2 = data.status) === null || _data$status2 === void 0 ? void 0 : _data$status2.toUpperCase()) === "INACTIVE" ? t(`${"WS_NA"}`) : data !== null && data !== void 0 && data.dueDate ? convertEpochToDate(data === null || data === void 0 ? void 0 : data.dueDate) : t(`${"WS_NA"}`),
|
|
28303
28433
|
[t("WS_COMMON_TABLE_COL_ACTION_LABEL")]: data !== null && data !== void 0 && data.due ? getActionItems(data === null || data === void 0 ? void 0 : data.status, data) : t(`${"WS_NA"}`)
|
|
28304
28434
|
};
|
|
@@ -28515,36 +28645,69 @@ const SearchWaterConnection = _ref => {
|
|
|
28515
28645
|
Header: t("WS_COMMON_TABLE_COL_ADDRESS"),
|
|
28516
28646
|
disableSortBy: true,
|
|
28517
28647
|
Cell: _ref7 => {
|
|
28518
|
-
var _row$original1;
|
|
28648
|
+
var _row$original1, _row$original10, _row$original11, _property$owners, _property$owners$, _row$original12;
|
|
28519
28649
|
let {
|
|
28520
28650
|
row
|
|
28521
28651
|
} = _ref7;
|
|
28522
|
-
|
|
28652
|
+
const property = (_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1.property;
|
|
28653
|
+
const propertyAddress = ((_row$original10 = row.original) === null || _row$original10 === void 0 ? void 0 : _row$original10.propertyAddress) || (property === null || property === void 0 ? void 0 : property.address);
|
|
28654
|
+
const formattedAddress = formatPropertyAddress(propertyAddress, t) || ((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11["address"]) || t("CS_NA");
|
|
28655
|
+
const ownerUuid = property === null || property === void 0 ? void 0 : (_property$owners = property.owners) === null || _property$owners === void 0 ? void 0 : (_property$owners$ = _property$owners[0]) === null || _property$owners$ === void 0 ? void 0 : _property$owners$.uuid;
|
|
28656
|
+
const propId = ((_row$original12 = row.original) === null || _row$original12 === void 0 ? void 0 : _row$original12.propertyId) || (property === null || property === void 0 ? void 0 : property.propertyId);
|
|
28657
|
+
if (ownerUuid && propId) {
|
|
28658
|
+
var _String;
|
|
28659
|
+
const privacy = {
|
|
28660
|
+
uuid: ownerUuid,
|
|
28661
|
+
fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
|
|
28662
|
+
model: "Property",
|
|
28663
|
+
hide: !propertyAddress,
|
|
28664
|
+
showValue: true,
|
|
28665
|
+
loadData: {
|
|
28666
|
+
serviceName: "/property-services/property/_search",
|
|
28667
|
+
requestBody: {},
|
|
28668
|
+
requestParam: {
|
|
28669
|
+
tenantId: tenantId,
|
|
28670
|
+
propertyIds: propId
|
|
28671
|
+
},
|
|
28672
|
+
jsonPath: "Properties[0].address.street",
|
|
28673
|
+
isArray: false,
|
|
28674
|
+
d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}), t)
|
|
28675
|
+
}
|
|
28676
|
+
};
|
|
28677
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
28678
|
+
className: "cell-text"
|
|
28679
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
|
|
28680
|
+
value: formattedAddress,
|
|
28681
|
+
iseyevisible: (_String = String(formattedAddress)) === null || _String === void 0 ? void 0 : _String.includes("*"),
|
|
28682
|
+
privacy: privacy
|
|
28683
|
+
}));
|
|
28684
|
+
}
|
|
28685
|
+
return GetCell(formattedAddress);
|
|
28523
28686
|
}
|
|
28524
28687
|
}, {
|
|
28525
28688
|
Header: t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL"),
|
|
28526
28689
|
disableSortBy: true,
|
|
28527
28690
|
Cell: _ref8 => {
|
|
28528
|
-
var _row$
|
|
28691
|
+
var _row$original13, _row$original13$statu, _row$original14, _row$original15;
|
|
28529
28692
|
let {
|
|
28530
28693
|
row
|
|
28531
28694
|
} = _ref8;
|
|
28532
|
-
const status = ((_row$
|
|
28533
|
-
const dueDate = ((_row$
|
|
28695
|
+
const status = ((_row$original13 = row.original) === null || _row$original13 === void 0 ? void 0 : (_row$original13$statu = _row$original13["status"]) === null || _row$original13$statu === void 0 ? void 0 : _row$original13$statu.toUpperCase()) || "";
|
|
28696
|
+
const dueDate = ((_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.dueDate) === "NA" ? t("WS_NA") : convertEpochToDate((_row$original15 = row.original) === null || _row$original15 === void 0 ? void 0 : _row$original15.dueDate);
|
|
28534
28697
|
return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
|
|
28535
28698
|
}
|
|
28536
28699
|
}, {
|
|
28537
28700
|
Header: t("WS_COMMON_TABLE_COL_ACTION_LABEL"),
|
|
28538
28701
|
disableSortBy: true,
|
|
28539
28702
|
Cell: _ref9 => {
|
|
28540
|
-
var _row$
|
|
28703
|
+
var _row$original16;
|
|
28541
28704
|
let {
|
|
28542
28705
|
row
|
|
28543
28706
|
} = _ref9;
|
|
28544
|
-
const amount = (_row$
|
|
28707
|
+
const amount = (_row$original16 = row.original) === null || _row$original16 === void 0 ? void 0 : _row$original16.due;
|
|
28545
28708
|
if (amount || amount === 0) {
|
|
28546
|
-
var _row$
|
|
28547
|
-
return GetCell(getActionItem((_row$
|
|
28709
|
+
var _row$original17;
|
|
28710
|
+
return GetCell(getActionItem((_row$original17 = row.original) === null || _row$original17 === void 0 ? void 0 : _row$original17.status, row));
|
|
28548
28711
|
} else {
|
|
28549
28712
|
return GetCell(t(`${"WS_NA"}`));
|
|
28550
28713
|
}
|
|
@@ -28555,14 +28718,14 @@ const SearchWaterConnection = _ref => {
|
|
|
28555
28718
|
disableSortBy: true,
|
|
28556
28719
|
accessor: "connectionNo",
|
|
28557
28720
|
Cell: _ref0 => {
|
|
28558
|
-
var _row$
|
|
28721
|
+
var _row$original18, _row$original19, _row$original20;
|
|
28559
28722
|
let {
|
|
28560
28723
|
row
|
|
28561
28724
|
} = _ref0;
|
|
28562
28725
|
return /*#__PURE__*/React__default.createElement("div", null, row.original["connectionNo"] ? /*#__PURE__*/React__default.createElement("span", {
|
|
28563
28726
|
className: "link"
|
|
28564
28727
|
}, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28565
|
-
to: `/digit-ui/employee/ws/connection-details?applicationNumber=${row.original["connectionNo"]}&tenantId=${tenantId}&service=${(_row$
|
|
28728
|
+
to: `/digit-ui/employee/ws/connection-details?applicationNumber=${row.original["connectionNo"]}&tenantId=${tenantId}&service=${(_row$original18 = row.original) === null || _row$original18 === void 0 ? void 0 : _row$original18["service"]}&connectionType=${(_row$original19 = row.original) === null || _row$original19 === void 0 ? void 0 : _row$original19["connectionType"]}&due=${((_row$original20 = row.original) === null || _row$original20 === void 0 ? void 0 : _row$original20.due) || 0}&from=WS_SEWERAGE_CONNECTION_SEARCH_LABEL`
|
|
28566
28729
|
}, row.original["connectionNo"] || "NA")) : /*#__PURE__*/React__default.createElement("span", null, t("NA")));
|
|
28567
28730
|
}
|
|
28568
28731
|
}, {
|
|
@@ -28578,11 +28741,11 @@ const SearchWaterConnection = _ref => {
|
|
|
28578
28741
|
Header: t("WS_COMMON_TABLE_COL_propertyId_LABEL"),
|
|
28579
28742
|
disableSortBy: true,
|
|
28580
28743
|
Cell: _ref10 => {
|
|
28581
|
-
var _row$
|
|
28744
|
+
var _row$original21, _row$original21$prope;
|
|
28582
28745
|
let {
|
|
28583
28746
|
row
|
|
28584
28747
|
} = _ref10;
|
|
28585
|
-
return GetCell(t(`WS_${(_row$
|
|
28748
|
+
return GetCell(t(`WS_${(_row$original21 = row.original) === null || _row$original21 === void 0 ? void 0 : (_row$original21$prope = _row$original21["propertyId"]) === null || _row$original21$prope === void 0 ? void 0 : _row$original21$prope.toUpperCase()}`));
|
|
28586
28749
|
}
|
|
28587
28750
|
}, {
|
|
28588
28751
|
Header: t("WS_COMMON_TABLE_COL_ACTION_LABEL"),
|
|
@@ -28612,18 +28775,18 @@ const SearchWaterConnection = _ref => {
|
|
|
28612
28775
|
}
|
|
28613
28776
|
};
|
|
28614
28777
|
return Promise.resolve(Digit.WSService.WSSewsearchDemandGen(payload, window.location.href.includes("ws/sewerage/search-demand") ? "sw" : "ws")).then(function (data) {
|
|
28615
|
-
var _row$
|
|
28778
|
+
var _row$original22, _row$original23, _row$original24;
|
|
28616
28779
|
setShowToast({
|
|
28617
28780
|
label: `${data}`
|
|
28618
28781
|
});
|
|
28619
|
-
history.push(`/digit-ui/employee/payment/collect/SW/${encodeURIComponent((_row$
|
|
28782
|
+
history.push(`/digit-ui/employee/payment/collect/SW/${encodeURIComponent((_row$original22 = row.original) === null || _row$original22 === void 0 ? void 0 : _row$original22["connectionNo"])}/${(_row$original23 = row.original) === null || _row$original23 === void 0 ? void 0 : _row$original23["tenantId"]}?tenantId=${(_row$original24 = row.original) === null || _row$original24 === void 0 ? void 0 : _row$original24["tenantId"]}?workflow=WS&ISWSCON`);
|
|
28620
28783
|
});
|
|
28621
28784
|
} catch (e) {
|
|
28622
28785
|
return Promise.reject(e);
|
|
28623
28786
|
}
|
|
28624
28787
|
};
|
|
28625
28788
|
const getActionItem = (status, row) => {
|
|
28626
|
-
var _row$
|
|
28789
|
+
var _row$original25, _row$original26, _row$original27, _row$original28, _row$original29, _row$original30, _row$original31, _row$original32, _row$original33;
|
|
28627
28790
|
const userInfo = Digit.UserService.getUser();
|
|
28628
28791
|
const userRoles = userInfo.info.roles.map(roleData => roleData.code);
|
|
28629
28792
|
const isUserAllowedToAddMeterReading = userRoles.filter(role => role === "WS_CEMP" || role === "SW_CEMP").length > 0;
|
|
@@ -28632,13 +28795,13 @@ const SearchWaterConnection = _ref => {
|
|
|
28632
28795
|
case "Active":
|
|
28633
28796
|
return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
|
|
28634
28797
|
className: "link"
|
|
28635
|
-
}, ((_row$
|
|
28798
|
+
}, ((_row$original25 = row.original) === null || _row$original25 === void 0 ? void 0 : _row$original25.service) === "WATER" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28636
28799
|
to: {
|
|
28637
|
-
pathname: `/digit-ui/employee/payment/collect/${((_row$
|
|
28800
|
+
pathname: `/digit-ui/employee/payment/collect/${((_row$original26 = row.original) === null || _row$original26 === void 0 ? void 0 : _row$original26["service"]) === "WATER" ? "WS" : "SW"}/${encodeURIComponent((_row$original27 = row.original) === null || _row$original27 === void 0 ? void 0 : _row$original27["connectionNo"])}/${(_row$original28 = row.original) === null || _row$original28 === void 0 ? void 0 : _row$original28["tenantId"]}?tenantId=${(_row$original29 = row.original) === null || _row$original29 === void 0 ? void 0 : _row$original29["tenantId"]}?workflow=WS&ISWSCON`
|
|
28638
28801
|
}
|
|
28639
28802
|
}, t(`${"WS_COMMON_COLLECT_LABEL"}`), " ") : /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
28640
28803
|
to: {
|
|
28641
|
-
pathname: `/digit-ui/employee/payment/collect/${((_row$
|
|
28804
|
+
pathname: `/digit-ui/employee/payment/collect/${((_row$original30 = row.original) === null || _row$original30 === void 0 ? void 0 : _row$original30["service"]) === "WATER" ? "WS" : "SW"}/${encodeURIComponent((_row$original31 = row.original) === null || _row$original31 === void 0 ? void 0 : _row$original31["connectionNo"])}/${(_row$original32 = row.original) === null || _row$original32 === void 0 ? void 0 : _row$original32["tenantId"]}?tenantId=${(_row$original33 = row.original) === null || _row$original33 === void 0 ? void 0 : _row$original33["tenantId"]}?workflow=SW&ISWSCON`
|
|
28642
28805
|
}
|
|
28643
28806
|
}, t(`${"WS_COMMON_COLLECT_LABEL"}`), " ")));
|
|
28644
28807
|
}
|
|
@@ -34651,27 +34814,27 @@ const checkForNA$2 = value => {
|
|
|
34651
34814
|
return value ? value : "CS_NA";
|
|
34652
34815
|
};
|
|
34653
34816
|
const WSApplicationDetails = () => {
|
|
34654
|
-
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$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect6, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$WaterConnection10, _data$SewerageConnect1, _data$SewerageConnect10, _data$WaterConnection11, _data$WaterConnection12, _data$SewerageConnect11, _data$SewerageConnect12, _data$WaterConnection13, _data$SewerageConnect13, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _appDetailsData$appli, _data$WaterConnection38, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect34, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _appDetailsData$appli2, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _applicationData$addi, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _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$SewerageConnect113, _data$SewerageConnect114, _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$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect117, _data$SewerageConnect118, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _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, _useDetails$propertyC3, _useDetails$propertyC4, _applicationData$addi4, _applicationData$addi5, _applicationData$addi6, _applicationData$prop, _applicationData$prop2, _applicationData$prop3, _applicationData$addi7, _applicationData$addi8, _applicationData$prop4, _applicationData$prop5, _applicationData$addi9, _applicationData$addi0, _applicationData$prop6, _applicationData$prop7, _applicationData$dueV, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$WaterConnection177, _data$SewerageConnect171, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$WaterConnection185, _data$WaterConnection186, _data$SewerageConnect178, _data$SewerageConnect179, _data$WaterConnection187, _data$WaterConnection188, _data$SewerageConnect180;
|
|
34817
|
+
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$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect6, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$WaterConnection10, _data$SewerageConnect1, _data$SewerageConnect10, _data$WaterConnection11, _data$WaterConnection12, _data$SewerageConnect11, _data$SewerageConnect12, _data$WaterConnection13, _data$SewerageConnect13, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _appDetailsData$appli, _data$WaterConnection38, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect34, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _appDetailsData$appli2, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _applicationData$addi, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _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$SewerageConnect113, _data$SewerageConnect114, _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$, _PTData$Properties9, _PTData$Properties9$, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect117, _data$SewerageConnect118, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _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$Properties0, _PTData$Properties0$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties1, _PTData$Properties1$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties10, _PTData$Properties10$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _applicationData$addi4, _applicationData$addi5, _applicationData$addi6, _applicationData$prop, _applicationData$prop2, _applicationData$prop3, _applicationData$addi7, _applicationData$addi8, _applicationData$prop4, _applicationData$prop5, _applicationData$addi9, _applicationData$addi0, _applicationData$prop6, _applicationData$prop7, _applicationData$dueV, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$WaterConnection177, _data$SewerageConnect171, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$WaterConnection185, _data$WaterConnection186, _data$SewerageConnect178, _data$SewerageConnect179, _data$WaterConnection187, _data$WaterConnection188, _data$SewerageConnect180;
|
|
34655
34818
|
const getDisconnectionNoticeSearch = function () {
|
|
34656
34819
|
try {
|
|
34657
34820
|
var _data$WaterConnection190, _data$WaterConnection191, _data$SewerageConnect182, _data$SewerageConnect183;
|
|
34658
34821
|
let key = "ws-waterdisconnectionnotice";
|
|
34659
34822
|
let details = {};
|
|
34660
34823
|
if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
|
|
34661
|
-
var _data$WaterConnection189, _PTData$
|
|
34824
|
+
var _data$WaterConnection189, _PTData$Properties12;
|
|
34662
34825
|
details = {
|
|
34663
34826
|
WaterConnection: [{
|
|
34664
34827
|
...(data === null || data === void 0 ? void 0 : (_data$WaterConnection189 = data.WaterConnection) === null || _data$WaterConnection189 === void 0 ? void 0 : _data$WaterConnection189[0]),
|
|
34665
|
-
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
34828
|
+
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
|
|
34666
34829
|
}]
|
|
34667
34830
|
};
|
|
34668
34831
|
} else {
|
|
34669
|
-
var _data$SewerageConnect181, _PTData$
|
|
34832
|
+
var _data$SewerageConnect181, _PTData$Properties13;
|
|
34670
34833
|
key = "ws-seweragedisconnectionnotice";
|
|
34671
34834
|
details = {
|
|
34672
34835
|
SewerageConnection: [{
|
|
34673
34836
|
...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect181 = data.SewerageConnections) === null || _data$SewerageConnect181 === void 0 ? void 0 : _data$SewerageConnect181[0]),
|
|
34674
|
-
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
34837
|
+
property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties13 = PTData.Properties) === null || _PTData$Properties13 === void 0 ? void 0 : _PTData$Properties13[0]
|
|
34675
34838
|
}]
|
|
34676
34839
|
};
|
|
34677
34840
|
}
|
|
@@ -35276,13 +35439,13 @@ const WSApplicationDetails = () => {
|
|
|
35276
35439
|
}
|
|
35277
35440
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
35278
35441
|
label: t("WS_PROPERTY_ADDRESS"),
|
|
35279
|
-
text:
|
|
35442
|
+
text: formatPropertyAddress(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("CS_NA"),
|
|
35280
35443
|
textStyle: {
|
|
35281
35444
|
wordBreak: "break-word"
|
|
35282
35445
|
},
|
|
35283
35446
|
privacy: {
|
|
35284
35447
|
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,
|
|
35285
|
-
fieldName: ["
|
|
35448
|
+
fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
|
|
35286
35449
|
model: "Property",
|
|
35287
35450
|
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),
|
|
35288
35451
|
showValue: true,
|
|
@@ -35291,14 +35454,11 @@ const WSApplicationDetails = () => {
|
|
|
35291
35454
|
requestBody: {},
|
|
35292
35455
|
requestParam: {
|
|
35293
35456
|
tenantId: tenantId,
|
|
35294
|
-
|
|
35457
|
+
propertyIds: 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$.propertyId
|
|
35295
35458
|
},
|
|
35296
35459
|
jsonPath: "Properties[0].address.street",
|
|
35297
35460
|
isArray: false,
|
|
35298
|
-
d: res => {
|
|
35299
|
-
let resultString = (lodash.get(res, "Properties[0].address.doorNo") ? `${lodash.get(res, "Properties[0].address.doorNo")}, ` : "") + (lodash.get(res, "Properties[0].address.street") ? `${lodash.get(res, "Properties[0].address.street")}, ` : "") + (lodash.get(res, "Properties[0].address.landmark") ? `${lodash.get(res, "Properties[0].address.landmark")}` : "");
|
|
35300
|
-
return resultString;
|
|
35301
|
-
}
|
|
35461
|
+
d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}))
|
|
35302
35462
|
}
|
|
35303
35463
|
}
|
|
35304
35464
|
}), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
|
|
@@ -35385,16 +35545,16 @@ const WSApplicationDetails = () => {
|
|
|
35385
35545
|
text: `${t(checkForNA$2((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)))}`
|
|
35386
35546
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
35387
35547
|
label: t("WS_PROPERTY_CATEGORY"),
|
|
35388
|
-
text: `${t(checkForNA$2((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$
|
|
35548
|
+
text: `${t(checkForNA$2((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$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : _PTData$Properties0$.usageCategory)))}`
|
|
35389
35549
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
35390
35550
|
label: t("WS_PROPERTY_TYPE"),
|
|
35391
|
-
text: `${t(checkForNA$2((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$
|
|
35551
|
+
text: `${t(checkForNA$2((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$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : _PTData$Properties1$.propertyType)))}`
|
|
35392
35552
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
35393
35553
|
label: t("WS_WATER_CONNECTION_USAGE_TYPE"),
|
|
35394
35554
|
text: `${t(checkForNA$2((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)))}`
|
|
35395
35555
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
35396
35556
|
label: t("WS_NUMBER_OF_FLOORS"),
|
|
35397
|
-
text: `${t(checkForNA$2((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$
|
|
35557
|
+
text: `${t(checkForNA$2((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$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : _PTData$Properties10$.noOfFloors)))}`
|
|
35398
35558
|
}), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
|
|
35399
35559
|
label: t("WS_PLOT_AREA"),
|
|
35400
35560
|
text: `${t(checkForNA$2(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))}`
|
|
@@ -35605,10 +35765,10 @@ const WSApplicationDetails = () => {
|
|
|
35605
35765
|
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
|
|
35606
35766
|
label: t("MAKE_PAYMENT"),
|
|
35607
35767
|
onSubmit: () => {
|
|
35608
|
-
var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _PTData$
|
|
35768
|
+
var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _PTData$Properties11, _PTData$Properties11$, _PTData$Properties11$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
|
|
35609
35769
|
history.push({
|
|
35610
35770
|
pathname: `/digit-ui/citizen/payment/collect/${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, "/", "+")}`,
|
|
35611
|
-
search: `?workflow=WNS&tenantId=${(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.tenantId) || (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.tenantId)}&ConsumerName=${(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$WaterConnection140 = _data$WaterConnection139.connectionHolders) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.map(owner => owner.name).join(",")) || (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$SewerageConnect135 = _data$SewerageConnect134.connectionHolders) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$
|
|
35771
|
+
search: `?workflow=WNS&tenantId=${(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.tenantId) || (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.tenantId)}&ConsumerName=${(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$WaterConnection140 = _data$WaterConnection139.connectionHolders) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.map(owner => owner.name).join(",")) || (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$SewerageConnect135 = _data$SewerageConnect134.connectionHolders) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : (_PTData$Properties11$ = _PTData$Properties11[0]) === null || _PTData$Properties11$ === void 0 ? void 0 : (_PTData$Properties11$2 = _PTData$Properties11$.owners) === null || _PTData$Properties11$2 === void 0 ? void 0 : _PTData$Properties11$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}`,
|
|
35612
35772
|
state: {
|
|
35613
35773
|
fromApplicationDetails: true
|
|
35614
35774
|
}
|
|
@@ -55257,7 +55417,7 @@ const SearchWater = _ref => {
|
|
|
55257
55417
|
config,
|
|
55258
55418
|
bussinessService: businessServ,
|
|
55259
55419
|
t,
|
|
55260
|
-
shortAddress:
|
|
55420
|
+
shortAddress: false
|
|
55261
55421
|
});
|
|
55262
55422
|
const isMobile = window.Digit.Utils.browser.isMobile();
|
|
55263
55423
|
if (result !== null && result !== void 0 && result.isLoading && isMobile) {
|
|
@@ -61758,22 +61918,55 @@ const SearchWaterConnectionIntegrated = _ref => {
|
|
|
61758
61918
|
Header: t("WS_COMMON_TABLE_COL_ADDRESS"),
|
|
61759
61919
|
disableSortBy: true,
|
|
61760
61920
|
Cell: _ref7 => {
|
|
61761
|
-
var _row$original0;
|
|
61921
|
+
var _row$original0, _row$original1, _row$original10, _property$owners, _property$owners$, _row$original11;
|
|
61762
61922
|
let {
|
|
61763
61923
|
row
|
|
61764
61924
|
} = _ref7;
|
|
61765
|
-
|
|
61925
|
+
const property = (_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0.property;
|
|
61926
|
+
const propertyAddress = ((_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1.propertyAddress) || (property === null || property === void 0 ? void 0 : property.address);
|
|
61927
|
+
const formattedAddress = formatPropertyAddress(propertyAddress, t) || ((_row$original10 = row.original) === null || _row$original10 === void 0 ? void 0 : _row$original10["address"]) || t("CS_NA");
|
|
61928
|
+
const ownerUuid = property === null || property === void 0 ? void 0 : (_property$owners = property.owners) === null || _property$owners === void 0 ? void 0 : (_property$owners$ = _property$owners[0]) === null || _property$owners$ === void 0 ? void 0 : _property$owners$.uuid;
|
|
61929
|
+
const propId = ((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11.propertyId) || (property === null || property === void 0 ? void 0 : property.propertyId);
|
|
61930
|
+
if (ownerUuid && propId) {
|
|
61931
|
+
var _String;
|
|
61932
|
+
const privacy = {
|
|
61933
|
+
uuid: ownerUuid,
|
|
61934
|
+
fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
|
|
61935
|
+
model: "Property",
|
|
61936
|
+
hide: !propertyAddress,
|
|
61937
|
+
showValue: true,
|
|
61938
|
+
loadData: {
|
|
61939
|
+
serviceName: "/property-services/property/_search",
|
|
61940
|
+
requestBody: {},
|
|
61941
|
+
requestParam: {
|
|
61942
|
+
tenantId: tenantId,
|
|
61943
|
+
propertyIds: propId
|
|
61944
|
+
},
|
|
61945
|
+
jsonPath: "Properties[0].address.street",
|
|
61946
|
+
isArray: false,
|
|
61947
|
+
d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}), t)
|
|
61948
|
+
}
|
|
61949
|
+
};
|
|
61950
|
+
return /*#__PURE__*/React__default.createElement("span", {
|
|
61951
|
+
className: "cell-text"
|
|
61952
|
+
}, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
|
|
61953
|
+
value: formattedAddress,
|
|
61954
|
+
iseyevisible: (_String = String(formattedAddress)) === null || _String === void 0 ? void 0 : _String.includes("*"),
|
|
61955
|
+
privacy: privacy
|
|
61956
|
+
}));
|
|
61957
|
+
}
|
|
61958
|
+
return GetCell(formattedAddress);
|
|
61766
61959
|
}
|
|
61767
61960
|
}, {
|
|
61768
61961
|
Header: t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL"),
|
|
61769
61962
|
disableSortBy: true,
|
|
61770
61963
|
Cell: _ref8 => {
|
|
61771
|
-
var _row$
|
|
61964
|
+
var _row$original12, _row$original12$statu, _row$original13, _row$original14;
|
|
61772
61965
|
let {
|
|
61773
61966
|
row
|
|
61774
61967
|
} = _ref8;
|
|
61775
|
-
const status = ((_row$
|
|
61776
|
-
const dueDate = ((_row$
|
|
61968
|
+
const status = ((_row$original12 = row.original) === null || _row$original12 === void 0 ? void 0 : (_row$original12$statu = _row$original12["status"]) === null || _row$original12$statu === void 0 ? void 0 : _row$original12$statu.toUpperCase()) || "";
|
|
61969
|
+
const dueDate = ((_row$original13 = row.original) === null || _row$original13 === void 0 ? void 0 : _row$original13.dueDate) === "NA" ? t("WS_NA") : convertEpochToDate((_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.dueDate);
|
|
61777
61970
|
return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
|
|
61778
61971
|
}
|
|
61779
61972
|
}], []);
|