@djb25/digit-ui-module-ws 1.0.109 → 1.0.111

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.
@@ -386,6 +386,13 @@ const getAddress = (address, t) => {
386
386
  var _address$locality, _address$locality2, _address$city;
387
387
  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}` : " "}`;
388
388
  };
389
+ const formatPropertyAddress = (address, t) => {
390
+ var _Digit2, _Digit2$Utils, _Digit2$Utils$pt;
391
+ 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) {
392
+ return Digit.Utils.pt.formatPropertyAddress(address, t) || getAddress(address, t);
393
+ }
394
+ return getAddress(address, t);
395
+ };
389
396
  const convertDateToEpoch = function (dateString, dayStartOrEnd) {
390
397
  if (dayStartOrEnd === void 0) {
391
398
  dayStartOrEnd = "dayend";
@@ -438,12 +445,11 @@ const getPattern = type => {
438
445
  case "WSOnlyNumbers":
439
446
  return /^[0-9]*$/i;
440
447
  case "Name":
441
- case "Name":
442
- return /^[^{0-9}^\$\"<>?\\~!@#$%^()+={}\[\]*,/_:;]{1,50}$/i;
448
+ return /^[a-zA-Z\s]{1,50}$/;
443
449
  case "MobileNo":
444
- return /^[6789][0-9]{9}$/i;
450
+ return /^[6-9][0-9]{9}$/;
445
451
  case "MobileNoWithPrivacy":
446
- return /^[6789][*]{7}[0-9]{2}|[6789][0-9]{9}$/i;
452
+ return /^([6-9][*]{7}[0-9]{2}|[6-9][0-9]{9})$/;
447
453
  case "Amount":
448
454
  return /^[0-9]{0,8}$/i;
449
455
  case "NonZeroAmount":
@@ -546,7 +552,7 @@ const getFiles = function (filesArray, tenant) {
546
552
  };
547
553
  const createPayloadOfWS = function (data) {
548
554
  try {
549
- 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, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
555
+ 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;
550
556
  const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
551
557
  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"));
552
558
  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 => {
@@ -722,7 +728,7 @@ const createPayloadOfWS = function (data) {
722
728
  delete payload.additionalDetails.proposedWaterClosets;
723
729
  sessionStorage.setItem("WS_DOCUMENTS_INOF", JSON.stringify(allDocuments));
724
730
  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) || {}));
725
- payload = (_Digit = Digit) !== null && _Digit !== void 0 && (_Digit$Customizations = _Digit.Customizations) !== null && _Digit$Customizations !== void 0 && (_Digit$Customizations2 = _Digit$Customizations.WS) !== null && _Digit$Customizations2 !== void 0 && _Digit$Customizations2.customiseCreatePayloadOfWS ? (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$Customization = _Digit2.Customizations) === null || _Digit2$Customization === void 0 ? void 0 : (_Digit2$Customization2 = _Digit2$Customization.WS) === null || _Digit2$Customization2 === void 0 ? void 0 : _Digit2$Customization2.customiseCreatePayloadOfWS(data, payload) : payload;
731
+ 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;
726
732
  return Promise.resolve(payload);
727
733
  } catch (e) {
728
734
  return Promise.reject(e);
@@ -730,7 +736,7 @@ const createPayloadOfWS = function (data) {
730
736
  };
731
737
  const updatePayloadOfWS = function (data, type) {
732
738
  try {
733
- var _data$additionalDetai, _data$additionalDetai2, _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
739
+ var _data$additionalDetai, _data$additionalDetai2, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
734
740
  let payload = {
735
741
  ...data,
736
742
  processInstance: {
@@ -749,7 +755,7 @@ const updatePayloadOfWS = function (data, type) {
749
755
  }
750
756
  }
751
757
  };
752
- 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.customiseUpdatePayloadOfWS ? (_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.customiseUpdatePayloadOfWS(data, payload, type) : payload;
758
+ 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;
753
759
  return Promise.resolve(payload);
754
760
  } catch (e) {
755
761
  return Promise.reject(e);
@@ -829,7 +835,7 @@ const getAllDocumentsForUpdate = data => {
829
835
  return allDocuments;
830
836
  };
831
837
  const convertToWSUpdate = data => {
832
- 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, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
838
+ 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;
833
839
  let formdata = {
834
840
  WaterConnection: {
835
841
  ...(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]),
@@ -856,11 +862,11 @@ const convertToWSUpdate = data => {
856
862
  }
857
863
  }
858
864
  };
859
- formdata = (_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.customiseWSUpdate ? (_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.customiseWSUpdate(data, formdata) : formdata;
865
+ 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;
860
866
  return formdata;
861
867
  };
862
868
  const convertToEditWSUpdate = data => {
863
- 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, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
869
+ 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;
864
870
  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];
865
871
  let formdata = {
866
872
  WaterConnection: {
@@ -954,11 +960,11 @@ const convertToEditWSUpdate = data => {
954
960
  assignes: []
955
961
  }
956
962
  };
957
- 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.customiseEditWSUpdate ? (_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.customiseEditWSUpdate(data, formdata) : formdata;
963
+ 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;
958
964
  return formdata;
959
965
  };
960
966
  const convertToEditSWUpdate = data => {
961
- 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, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
967
+ 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;
962
968
  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];
963
969
  let formdata = {
964
970
  SewerageConnection: {
@@ -1052,11 +1058,11 @@ const convertToEditSWUpdate = data => {
1052
1058
  assignes: []
1053
1059
  }
1054
1060
  };
1055
- 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.customiseEditSWUpdate ? (_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.customiseEditSWUpdate(data, formdata) : formdata;
1061
+ 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;
1056
1062
  return formdata;
1057
1063
  };
1058
1064
  const convertToSWUpdate = data => {
1059
- 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, _Digit1, _Digit1$Customization, _Digit1$Customization2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2;
1065
+ 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;
1060
1066
  let formdata = {
1061
1067
  SewerageConnection: {
1062
1068
  ...(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]),
@@ -1084,12 +1090,12 @@ const convertToSWUpdate = data => {
1084
1090
  }
1085
1091
  }
1086
1092
  };
1087
- 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.customiseSWUpdate ? (_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.customiseSWUpdate(data, formdata) : formdata;
1093
+ 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;
1088
1094
  return formdata;
1089
1095
  };
1090
1096
  const createPayloadOfWSDisconnection = function (data, storeData, service) {
1091
1097
  try {
1092
- 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, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
1098
+ 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;
1093
1099
  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;
1094
1100
  let plumberInfo = [];
1095
1101
  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) {
@@ -1190,7 +1196,7 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
1190
1196
  disconnectRequest: true
1191
1197
  };
1192
1198
  let returnObject = (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "WATER" ? wsPayload : swPayload;
1193
- returnObject = (_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.customiseCreatePayloadOfWSDisconnection ? (_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.customiseCreatePayloadOfWSDisconnection(data, returnObject, service) : returnObject;
1199
+ 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;
1194
1200
  return Promise.resolve(returnObject);
1195
1201
  } catch (e) {
1196
1202
  return Promise.reject(e);
@@ -1308,7 +1314,7 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
1308
1314
  };
1309
1315
  const createPayloadOfWSReSubmitDisconnection = function (data, storeData, service) {
1310
1316
  try {
1311
- 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, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
1317
+ 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;
1312
1318
  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;
1313
1319
  let wsPayload = {
1314
1320
  WaterConnection: {
@@ -1360,7 +1366,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
1360
1366
  disconnectRequest: true
1361
1367
  };
1362
1368
  let returnObject = (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "WATER" ? wsPayload : swPayload;
1363
- 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.customiseCreatePayloadOfWSReSubmitDisconnection ? (_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.customiseCreatePayloadOfWSReSubmitDisconnection(data, returnObject, service) : returnObject;
1369
+ 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;
1364
1370
  return Promise.resolve(returnObject);
1365
1371
  } catch (e) {
1366
1372
  return Promise.reject(e);
@@ -1368,7 +1374,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
1368
1374
  };
1369
1375
  const updatePayloadOfWSDisconnection = function (data, type) {
1370
1376
  try {
1371
- var _data$plumberInfo, _data$plumberInfo2, _Digit15, _Digit15$Customizatio, _Digit15$Customizatio2, _Digit16, _Digit16$Customizatio, _Digit16$Customizatio2;
1377
+ var _data$plumberInfo, _data$plumberInfo2, _Digit17, _Digit17$Customizatio, _Digit17$Customizatio2, _Digit18, _Digit18$Customizatio, _Digit18$Customizatio2;
1372
1378
  let payload = {
1373
1379
  ...data,
1374
1380
  plumberInfo: data !== null && data !== void 0 && (_data$plumberInfo = data.plumberInfo) !== null && _data$plumberInfo !== void 0 && _data$plumberInfo[0] ? [{
@@ -1382,7 +1388,7 @@ const updatePayloadOfWSDisconnection = function (data, type) {
1382
1388
  action: "SUBMIT_APPLICATION"
1383
1389
  }
1384
1390
  };
1385
- payload = (_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.customiseUpdatePayloadOfWSDisconnection ? (_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.customiseUpdatePayloadOfWSDisconnection(data, payload, type) : payload;
1391
+ 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;
1386
1392
  return Promise.resolve(payload);
1387
1393
  } catch (e) {
1388
1394
  return Promise.reject(e);
@@ -8361,34 +8367,52 @@ const WSMyApplications = () => {
8361
8367
  return GetCell(t(`CS_${(_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.applicationStatus}`) || t("CS_NA"));
8362
8368
  }
8363
8369
  }, {
8364
- Header: t("WS_SLA"),
8370
+ Header: t("WS_APPLICATION_CREATED_TIME"),
8365
8371
  disableSortBy: true,
8366
8372
  Cell: _ref6 => {
8367
- var _row$original8;
8373
+ var _row$original8, _row$original8$auditD;
8368
8374
  let {
8369
8375
  row
8370
8376
  } = _ref6;
8371
- const slaDays = Math.round(((_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : _row$original8.sla) / (24 * 60 * 60 * 1000));
8372
- return GetCell(slaDays ? `${slaDays} Days` : t("CS_NA"));
8377
+ 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;
8378
+ return GetCell(createdTime ? new Date(createdTime).toLocaleString("en-IN", {
8379
+ day: "2-digit",
8380
+ month: "2-digit",
8381
+ year: "numeric",
8382
+ hour: "2-digit",
8383
+ minute: "2-digit",
8384
+ hour12: true
8385
+ }) : t("CS_NA"));
8373
8386
  }
8374
8387
  }, {
8375
- Header: t("dueAmount"),
8388
+ Header: t("WS_SLA"),
8376
8389
  disableSortBy: true,
8377
8390
  Cell: _ref7 => {
8378
8391
  var _row$original9;
8379
8392
  let {
8380
8393
  row
8381
8394
  } = _ref7;
8382
- const dueAmounts = (((_row$original9 = row.original) === null || _row$original9 === void 0 ? void 0 : _row$original9.dueVerification) || []).map(item => item === null || item === void 0 ? void 0 : item.dueAmount).filter(amount => amount !== null && amount !== undefined && amount !== "");
8383
- return GetCell(dueAmounts.length > 0 ? dueAmounts.map(amount => `₹${Number(amount).toLocaleString("en-IN")}`).join(", ") : t("CS_NA"));
8395
+ const slaDays = Math.round(((_row$original9 = row.original) === null || _row$original9 === void 0 ? void 0 : _row$original9.sla) / (24 * 60 * 60 * 1000));
8396
+ return GetCell(slaDays ? `${slaDays} Days` : t("CS_NA"));
8384
8397
  }
8385
8398
  }, {
8386
- Header: t("WS_VIEW_DETAILS"),
8399
+ Header: t("dueAmount"),
8387
8400
  disableSortBy: true,
8388
8401
  Cell: _ref8 => {
8402
+ var _row$original0;
8389
8403
  let {
8390
8404
  row
8391
8405
  } = _ref8;
8406
+ 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 !== "");
8407
+ return GetCell(dueAmounts.length > 0 ? dueAmounts.map(amount => `₹${Number(amount).toLocaleString("en-IN")}`).join(", ") : t("CS_NA"));
8408
+ }
8409
+ }, {
8410
+ Header: t("WS_VIEW_DETAILS"),
8411
+ disableSortBy: true,
8412
+ Cell: _ref9 => {
8413
+ let {
8414
+ row
8415
+ } = _ref9;
8392
8416
  const application = row.original;
8393
8417
  return /*#__PURE__*/React.createElement("span", {
8394
8418
  className: "link"
@@ -8399,11 +8423,11 @@ const WSMyApplications = () => {
8399
8423
  }, {
8400
8424
  Header: t("MAKE_PAYMENT"),
8401
8425
  disableSortBy: true,
8402
- Cell: _ref9 => {
8426
+ Cell: _ref0 => {
8403
8427
  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;
8404
8428
  let {
8405
8429
  row
8406
- } = _ref9;
8430
+ } = _ref0;
8407
8431
  const application = row.original;
8408
8432
  const isMutation = application === null || application === void 0 ? void 0 : (_application$applicat = application.applicationType) === null || _application$applicat === void 0 ? void 0 : _application$applicat.includes("MUTATION");
8409
8433
  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"));
@@ -8536,8 +8560,8 @@ const WSMyApplications = () => {
8536
8560
  label: "SEWERAGE",
8537
8561
  count: sewerageCount,
8538
8562
  color: "#F59E0B"
8539
- }, ...Object.entries(statusCounts).map((_ref0, idx) => {
8540
- let [status, count] = _ref0;
8563
+ }, ...Object.entries(statusCounts).map((_ref1, idx) => {
8564
+ let [status, count] = _ref1;
8541
8565
  const colors = ["#10B981", "#A855F7", "#EF4444", "#64748B", "#F97316", "#06B6D4"];
8542
8566
  return {
8543
8567
  label: status === "UNKNOWN" ? "UNKNOWN" : `CS_${status}`,
@@ -8650,7 +8674,8 @@ const WSMyApplications = () => {
8650
8674
  onNextPage: () => setPageOffset(pageOffset + pageSize),
8651
8675
  onPrevPage: () => setPageOffset(pageOffset - pageSize),
8652
8676
  pageSizeLimit: pageSize,
8653
- disableSort: true
8677
+ disableSort: true,
8678
+ autoSort: false
8654
8679
  }) : /*#__PURE__*/React.createElement("p", {
8655
8680
  style: {
8656
8681
  marginLeft: "16px",
@@ -9085,28 +9110,25 @@ const WSResponse = props => {
9085
9110
  let filters = getQueryStringParams(location.search);
9086
9111
  const [waterApplicationData, setWaterApplicationData] = useState({});
9087
9112
  const [sewerageApplicationData, setSewerageApplicationData] = useState({});
9113
+ const hasWaterApp = !!(filters !== null && filters !== void 0 && filters.applicationNumber);
9114
+ const hasSewerageApp = !!(filters !== null && filters !== void 0 && filters.applicationNumber1);
9088
9115
  const {
9089
9116
  isLoading: waterLoading,
9090
9117
  isError: waterError,
9091
9118
  data: waterApplicationDetails
9092
- } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber, "WATER", {
9093
- enabled: filters !== null && filters !== void 0 && filters.applicationNumber ? true : false
9119
+ } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber, "WATER", {}, {
9120
+ enabled: hasWaterApp
9094
9121
  });
9095
9122
  const {
9096
9123
  isLoading: sewerageLoading,
9097
9124
  isError: sewerageError,
9098
9125
  data: sewerageApplicationDetails
9099
- } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber1, "SEWERAGE", {
9100
- enabled: filters !== null && filters !== void 0 && filters.applicationNumber1 ? true : false
9126
+ } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber1, "SEWERAGE", {}, {
9127
+ enabled: hasSewerageApp
9101
9128
  });
9102
- useEffect(function () {
9103
- try {
9104
- setWaterApplicationData(waterApplicationDetails);
9105
- setSewerageApplicationData(sewerageApplicationDetails);
9106
- return Promise.resolve();
9107
- } catch (e) {
9108
- return Promise.reject(e);
9109
- }
9129
+ useEffect(() => {
9130
+ setWaterApplicationData(waterApplicationDetails);
9131
+ setSewerageApplicationData(sewerageApplicationDetails);
9110
9132
  }, [waterApplicationDetails, sewerageApplicationDetails]);
9111
9133
  const {
9112
9134
  data: oldDataWater
@@ -9134,6 +9156,9 @@ const WSResponse = props => {
9134
9156
  });
9135
9157
  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];
9136
9158
  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];
9159
+ const isLoading = hasWaterApp && waterLoading || hasSewerageApp && sewerageLoading;
9160
+ const isError = !hasWaterApp && !hasSewerageApp || hasWaterApp && waterError || hasSewerageApp && sewerageError;
9161
+ const isSuccess = !isLoading && !isError;
9137
9162
  const handleAckPdfDownloadWater = function () {
9138
9163
  try {
9139
9164
  var _waterApplicationData4, _waterApplicationData5, _waterApplicationData6;
@@ -9190,13 +9215,16 @@ const WSResponse = props => {
9190
9215
  let isEmployee = window.location.href.includes("/employee");
9191
9216
  history.push(isEmployee ? `/digit-ui/employee` : `/digit-ui/citizen`);
9192
9217
  };
9218
+ if (isLoading) {
9219
+ return /*#__PURE__*/React.createElement(Loader, null);
9220
+ }
9193
9221
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
9194
- message: t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL"),
9195
- applicationNumber: filters === null || filters === void 0 ? void 0 : filters.applicationNumber,
9196
- applicationNumberOne: filters === null || filters === void 0 ? void 0 : filters.applicationNumber1,
9197
- info: filters !== null && filters !== void 0 && filters.applicationNumber ? t("WS_WATER_APPLICATION_NUMBER_LABEL") : "",
9198
- infoOne: filters !== null && filters !== void 0 && filters.applicationNumber1 ? t("WS_SEWERAGE_APPLICATION_NUMBER_LABEL") : "",
9199
- successful: true,
9222
+ message: isSuccess ? t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL") : t("WS_APPLICATION_SUBMIT_FAILED_LABEL"),
9223
+ applicationNumber: isSuccess ? filters === null || filters === void 0 ? void 0 : filters.applicationNumber : undefined,
9224
+ applicationNumberOne: isSuccess ? filters === null || filters === void 0 ? void 0 : filters.applicationNumber1 : undefined,
9225
+ info: isSuccess && filters !== null && filters !== void 0 && filters.applicationNumber ? t("WS_WATER_APPLICATION_NUMBER_LABEL") : "",
9226
+ infoOne: isSuccess && filters !== null && filters !== void 0 && filters.applicationNumber1 ? t("WS_SEWERAGE_APPLICATION_NUMBER_LABEL") : "",
9227
+ successful: isSuccess,
9200
9228
  style: {
9201
9229
  padding: "10px"
9202
9230
  },
@@ -9206,7 +9234,7 @@ const WSResponse = props => {
9206
9234
  infoOneStyles: {
9207
9235
  paddingTop: "20px"
9208
9236
  }
9209
- }), /*#__PURE__*/React.createElement(CardText, {
9237
+ }), isSuccess && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardText, {
9210
9238
  style: {
9211
9239
  paddingBottom: "10px",
9212
9240
  marginBottom: "10px"
@@ -9249,7 +9277,7 @@ const WSResponse = props => {
9249
9277
  }, /*#__PURE__*/React.createElement("path", {
9250
9278
  d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
9251
9279
  fill: "#a82227"
9252
- })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.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.createElement("div", {
9280
+ })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.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.createElement("div", {
9253
9281
  style: {
9254
9282
  marginTop: "10px"
9255
9283
  }
@@ -9262,8 +9290,8 @@ const WSResponse = props => {
9262
9290
  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;
9263
9291
  let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9264
9292
  let tenantId = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData13 = waterApplicationData.applicationData) === null || _waterApplicationData13 === void 0 ? void 0 : _waterApplicationData13.tenantId;
9265
- 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(owner => owner.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(owner => owner.name).join(","));
9266
- let isDisconnectFlow = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData18 = waterApplicationData.applicationData) !== null && _waterApplicationData18 !== void 0 && (_waterApplicationData19 = _waterApplicationData18.applicationNo) !== null && _waterApplicationData19 !== void 0 && _waterApplicationData19.includes("DC") ? true : false;
9293
+ 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(","));
9294
+ 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");
9267
9295
  if (isEmployee) {
9268
9296
  history.push({
9269
9297
  pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
@@ -9278,7 +9306,7 @@ const WSResponse = props => {
9278
9306
  });
9279
9307
  }
9280
9308
  }
9281
- })) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement("div", {
9309
+ })), (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" && /*#__PURE__*/React.createElement("div", {
9282
9310
  style: {
9283
9311
  marginTop: "10px",
9284
9312
  marginLeft: "10px"
@@ -9292,8 +9320,8 @@ const WSResponse = props => {
9292
9320
  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;
9293
9321
  let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9294
9322
  let tenantId = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD13 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD13 === void 0 ? void 0 : _sewerageApplicationD13.tenantId;
9295
- 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(owner => owner.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(owner => owner.name).join(","));
9296
- let isDisconnectFlow = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD18 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD18 !== void 0 && (_sewerageApplicationD19 = _sewerageApplicationD18.applicationNo) !== null && _sewerageApplicationD19 !== void 0 && _sewerageApplicationD19.includes("DC") ? true : false;
9323
+ 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(","));
9324
+ 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");
9297
9325
  if (isEmployee) {
9298
9326
  history.push({
9299
9327
  pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
@@ -9308,7 +9336,13 @@ const WSResponse = props => {
9308
9336
  });
9309
9337
  }
9310
9338
  }
9311
- })) : null), /*#__PURE__*/React.createElement(ActionBar, {
9339
+ })))), isError && /*#__PURE__*/React.createElement(CardText, {
9340
+ style: {
9341
+ paddingBottom: "10px",
9342
+ marginBottom: "10px",
9343
+ color: "#B91900"
9344
+ }
9345
+ }, t("WS_APPLICATION_SUBMIT_FAILED_DESC")), /*#__PURE__*/React.createElement(ActionBar, {
9312
9346
  style: {
9313
9347
  display: "flex",
9314
9348
  justifyContent: "flex-end",
@@ -14593,7 +14627,7 @@ const ConnectionDetails$1 = _props => {
14593
14627
  name: "name",
14594
14628
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.name,
14595
14629
  rules: {
14596
- validate: e => e && getPattern("Name").test(e) || !e ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14630
+ 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",
14597
14631
  required: t("REQUIRED_FIELD")
14598
14632
  },
14599
14633
  isMandatory: true,
@@ -14604,8 +14638,10 @@ const ConnectionDetails$1 = _props => {
14604
14638
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "name",
14605
14639
  errorStyle: localFormState.touched.name && errors !== null && errors !== void 0 && (_errors$name = errors.name) !== null && _errors$name !== void 0 && _errors$name.message ? true : false,
14606
14640
  onChange: e => {
14607
- setName(e.target.value);
14608
- props.onChange(e.target.value);
14641
+ const val = e.target.value;
14642
+ const cleanVal = val && val.includes("*") ? val : val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
14643
+ setName(cleanVal);
14644
+ props.onChange(cleanVal);
14609
14645
  setFocusIndex({
14610
14646
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14611
14647
  type: "name"
@@ -14645,6 +14681,9 @@ const ConnectionDetails$1 = _props => {
14645
14681
  control: control,
14646
14682
  name: "middleName",
14647
14683
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.middleName,
14684
+ rules: {
14685
+ 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"
14686
+ },
14648
14687
  render: props => {
14649
14688
  var _errors$middleName;
14650
14689
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
@@ -14652,8 +14691,10 @@ const ConnectionDetails$1 = _props => {
14652
14691
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "middleName",
14653
14692
  errorStyle: localFormState.touched.middleName && errors !== null && errors !== void 0 && (_errors$middleName = errors.middleName) !== null && _errors$middleName !== void 0 && _errors$middleName.message ? true : false,
14654
14693
  onChange: e => {
14655
- setMiddleName(e.target.value);
14656
- props.onChange(e.target.value);
14694
+ const val = e.target.value;
14695
+ const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
14696
+ setMiddleName(cleanVal);
14697
+ props.onChange(cleanVal);
14657
14698
  setFocusIndex({
14658
14699
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14659
14700
  type: "middleName"
@@ -14672,6 +14713,9 @@ const ConnectionDetails$1 = _props => {
14672
14713
  control: control,
14673
14714
  name: "lastName",
14674
14715
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.lastName,
14716
+ rules: {
14717
+ 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"
14718
+ },
14675
14719
  render: props => {
14676
14720
  var _errors$lastName;
14677
14721
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
@@ -14679,8 +14723,10 @@ const ConnectionDetails$1 = _props => {
14679
14723
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "lastName",
14680
14724
  errorStyle: localFormState.touched.lastName && errors !== null && errors !== void 0 && (_errors$lastName = errors.lastName) !== null && _errors$lastName !== void 0 && _errors$lastName.message ? true : false,
14681
14725
  onChange: e => {
14682
- setLastName(e.target.value);
14683
- props.onChange(e.target.value);
14726
+ const val = e.target.value;
14727
+ const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
14728
+ setLastName(cleanVal);
14729
+ props.onChange(cleanVal);
14684
14730
  setFocusIndex({
14685
14731
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14686
14732
  type: "lastName"
@@ -14762,7 +14808,12 @@ const ConnectionDetails$1 = _props => {
14762
14808
  name: "mobileNumber",
14763
14809
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.mobileNumber,
14764
14810
  rules: {
14765
- validate: e => e && getPattern("MobileNoWithPrivacy").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14811
+ validate: e => {
14812
+ if (!e || !e.trim()) return t("REQUIRED_FIELD");
14813
+ if (e.includes("*")) return true;
14814
+ if (/^[6-9]\d{9}$/.test(e)) return true;
14815
+ return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
14816
+ },
14766
14817
  required: t("REQUIRED_FIELD")
14767
14818
  },
14768
14819
  isMandatory: true,
@@ -14772,18 +14823,23 @@ const ConnectionDetails$1 = _props => {
14772
14823
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileNumber, {
14773
14824
  name: "mobileNumber",
14774
14825
  value: mobileValue || "",
14826
+ maxlength: 10,
14827
+ maxLength: 10,
14775
14828
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "mobileNumber",
14776
14829
  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),
14777
14830
  onChange: val => {
14778
- setMobileNumber(val);
14779
- props.onChange(val);
14831
+ const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
14832
+ setMobileNumber(cleanVal);
14833
+ props.onChange(cleanVal);
14780
14834
  setFocusIndex({
14781
14835
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14782
14836
  type: "mobileNumber"
14783
14837
  });
14784
14838
  if (isWatsappSameAsMobile) {
14785
- setWatsAppMobileNumber(val);
14786
- setValue("watsAppMobileNumber", val);
14839
+ setWatsAppMobileNumber(cleanVal);
14840
+ setValue("watsAppMobileNumber", cleanVal, {
14841
+ shouldValidate: true
14842
+ });
14787
14843
  }
14788
14844
  },
14789
14845
  onBlur: props.onBlur,
@@ -14823,7 +14879,12 @@ const ConnectionDetails$1 = _props => {
14823
14879
  name: "watsAppMobileNumber",
14824
14880
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.watsAppMobileNumber,
14825
14881
  rules: {
14826
- validate: e => e && getPattern("MobileNoWithPrivacy").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14882
+ validate: e => {
14883
+ if (!e || !e.trim()) return t("REQUIRED_FIELD");
14884
+ if (e.includes("*")) return true;
14885
+ if (/^[6-9]\d{9}$/.test(e)) return true;
14886
+ return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
14887
+ },
14827
14888
  required: t("REQUIRED_FIELD")
14828
14889
  },
14829
14890
  isMandatory: true,
@@ -14833,11 +14894,14 @@ const ConnectionDetails$1 = _props => {
14833
14894
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileNumber, {
14834
14895
  name: "watsAppMobileNumber",
14835
14896
  value: watsAppmobileValue || "",
14897
+ maxlength: 10,
14898
+ maxLength: 10,
14836
14899
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "watsAppMobileNumber",
14837
14900
  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),
14838
14901
  onChange: val => {
14839
- setWatsAppMobileNumber(val);
14840
- props.onChange(val);
14902
+ const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
14903
+ setWatsAppMobileNumber(cleanVal);
14904
+ props.onChange(cleanVal);
14841
14905
  setFocusIndex({
14842
14906
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14843
14907
  type: "watsAppMobileNumber"
@@ -14893,11 +14957,16 @@ const ConnectionDetails$1 = _props => {
14893
14957
  type: "isWatsappSameAsMobile"
14894
14958
  });
14895
14959
  if (e.target.checked) {
14896
- setWatsAppMobileNumber(mobileNumber);
14897
- setValue("watsAppMobileNumber", mobileNumber);
14960
+ const currentMobile = getValues("mobileNumber") || mobileNumber;
14961
+ setWatsAppMobileNumber(currentMobile);
14962
+ setValue("watsAppMobileNumber", currentMobile, {
14963
+ shouldValidate: true
14964
+ });
14898
14965
  } else {
14899
14966
  setWatsAppMobileNumber("");
14900
- setValue("watsAppMobileNumber", "");
14967
+ setValue("watsAppMobileNumber", "", {
14968
+ shouldValidate: true
14969
+ });
14901
14970
  }
14902
14971
  },
14903
14972
  checked: isWatsappSameAsMobile,
@@ -16657,7 +16726,7 @@ const PlumberDetails = _props => {
16657
16726
  name: "plumberName",
16658
16727
  defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.plumberName,
16659
16728
  rules: {
16660
- validate: e => e && getPattern("Name").test(e) || !e ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
16729
+ 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",
16661
16730
  required: t("REQUIRED_FIELD")
16662
16731
  },
16663
16732
  isMandatory: true,
@@ -16668,7 +16737,9 @@ const PlumberDetails = _props => {
16668
16737
  autoFocus: focusIndex.index === (plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key) && focusIndex.type === "plumberName",
16669
16738
  errorStyle: localFormState.touched.plumberName && errors !== null && errors !== void 0 && (_errors$plumberName = errors.plumberName) !== null && _errors$plumberName !== void 0 && _errors$plumberName.message ? true : false,
16670
16739
  onChange: e => {
16671
- props.onChange(e.target.value);
16740
+ const val = e.target.value;
16741
+ const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
16742
+ props.onChange(cleanVal);
16672
16743
  setFocusIndex({
16673
16744
  index: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key,
16674
16745
  type: "plumberName"
@@ -16694,7 +16765,12 @@ const PlumberDetails = _props => {
16694
16765
  name: "plumberMobileNo",
16695
16766
  defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.plumberMobileNo,
16696
16767
  rules: {
16697
- validate: e => e && getPattern("MobileNoWithPrivacy").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
16768
+ validate: e => {
16769
+ if (!e || !e.trim()) return t("REQUIRED_FIELD");
16770
+ if (e.includes("*")) return true;
16771
+ if (/^[6-9]\d{9}$/.test(e)) return true;
16772
+ return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
16773
+ },
16698
16774
  required: t("REQUIRED_FIELD")
16699
16775
  },
16700
16776
  type: "mobileNumber",
@@ -16722,10 +16798,14 @@ const PlumberDetails = _props => {
16722
16798
  },
16723
16799
  type: "mobileNumber",
16724
16800
  value: props.value,
16801
+ maxlength: 10,
16802
+ maxLength: 10,
16725
16803
  autoFocus: focusIndex.index === (plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key) && focusIndex.type === "plumberMobileNo",
16726
16804
  errorStyle: localFormState.touched.plumberMobileNo && errors !== null && errors !== void 0 && (_errors$plumberMobile = errors.plumberMobileNo) !== null && _errors$plumberMobile !== void 0 && _errors$plumberMobile.message ? true : false,
16727
16805
  onChange: e => {
16728
- props.onChange(e.target.value);
16806
+ const val = e.target.value;
16807
+ const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
16808
+ props.onChange(cleanVal);
16729
16809
  setFocusIndex({
16730
16810
  index: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key,
16731
16811
  type: "plumberMobileNo"
@@ -19027,6 +19107,24 @@ const WSDocumentsEmployee = _ref => {
19027
19107
  whiteSpace: "nowrap"
19028
19108
  }
19029
19109
  }, t("WS_DOWNLOAD_DOCUMENT"))) : null;
19110
+ const uploadInfoBanner = /*#__PURE__*/React.createElement("div", {
19111
+ style: {
19112
+ display: "flex",
19113
+ alignItems: "center",
19114
+ gap: "10px",
19115
+ marginBottom: "16px",
19116
+ padding: "10px 14px",
19117
+ backgroundColor: "#e8f4fd",
19118
+ borderLeft: "4px solid #00497e",
19119
+ borderRadius: "4px"
19120
+ }
19121
+ }, /*#__PURE__*/React.createElement("span", {
19122
+ style: {
19123
+ fontSize: "14px",
19124
+ color: "#00497e",
19125
+ fontWeight: "600"
19126
+ }
19127
+ }, "\u2139\uFE0F ", t("WS_DOCUMENT_UPLOAD_INSTRUCTION") || "Maximum upload size: 5MB per document. Supported formats: PDF, JPG, PNG."));
19030
19128
  if (userType === "citizen") {
19031
19129
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Timeline, {
19032
19130
  currentStep: 3
@@ -19036,7 +19134,7 @@ const WSDocumentsEmployee = _ref => {
19036
19134
  onSelect: goNext,
19037
19135
  onSkip: () => onSelect(),
19038
19136
  isDisabled: enableSubmit
19039
- }, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
19137
+ }, uploadInfoBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
19040
19138
  label: error,
19041
19139
  onClose: () => setError(null),
19042
19140
  error: true
@@ -19045,7 +19143,7 @@ const WSDocumentsEmployee = _ref => {
19045
19143
  return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
19046
19144
  title: t("WS_DOCUMENTS"),
19047
19145
  defaultOpen: true
19048
- }, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
19146
+ }, uploadInfoBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
19049
19147
  label: error,
19050
19148
  onClose: () => setError(null),
19051
19149
  error: true
@@ -19194,10 +19292,15 @@ function SelectDocument(_ref2) {
19194
19292
  }
19195
19293
  }, []);
19196
19294
  function selectfile(e, newFile) {
19197
- if (newFile) {
19198
- setFile(newFile);
19199
- } else {
19200
- setFile(e.target.files[0]);
19295
+ var _e$target, _e$target$files;
19296
+ 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]);
19297
+ if (selectedFile) {
19298
+ if (selectedFile.size > 5242880) {
19299
+ setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB");
19300
+ if (e !== null && e !== void 0 && e.target) e.target.value = "";
19301
+ return;
19302
+ }
19303
+ setFile(selectedFile);
19201
19304
  }
19202
19305
  setIsCameraFile(false);
19203
19306
  }
@@ -19310,8 +19413,9 @@ function SelectDocument(_ref2) {
19310
19413
  setFile(null);
19311
19414
  } else {
19312
19415
  const _temp5 = function () {
19313
- if (file.size >= 5242880) {
19314
- setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
19416
+ if (file.size > 5242880) {
19417
+ setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB");
19418
+ setFile(null);
19315
19419
  } else {
19316
19420
  const _temp4 = function () {
19317
19421
  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)) {
@@ -19494,6 +19598,13 @@ function SelectDocument(_ref2) {
19494
19598
  }, 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.createElement("span", {
19495
19599
  className: "check-page-link-button"
19496
19600
  }, "*"))), /*#__PURE__*/React.createElement("div", {
19601
+ style: {
19602
+ fontSize: "12px",
19603
+ color: "#666",
19604
+ marginTop: "-2px",
19605
+ marginBottom: "4px"
19606
+ }
19607
+ }, t("WS_DOCUMENT_MAX_SIZE_MESSAGE") || "Allowed formats: PDF, JPG, PNG | Max file size: 5MB"), /*#__PURE__*/React.createElement("div", {
19497
19608
  className: "field",
19498
19609
  style: {
19499
19610
  display: "flex",
@@ -22604,25 +22715,27 @@ const WSDisconnectionForm = _ref => {
22604
22715
  ...waterConnectionUpdate,
22605
22716
  disconnectRequest: true
22606
22717
  };
22607
- return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
22608
- onError: (error, variables) => {
22609
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
22610
- setIsEnableLoader(false);
22611
- setError({
22612
- key: "error",
22613
- message: error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.Errors) !== null && _error$response3$data2 !== void 0 && _error$response3$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message : error
22614
- });
22615
- setTimeout(closeToastOfError, 5000);
22616
- },
22617
- onSuccess: (data, variables) => {
22618
- var _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4;
22619
- Digit.SessionStorage.set("WS_DISCONNECTION", {
22620
- ...applicationData,
22621
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
22622
- });
22623
- history.push(`/digit-ui/employee/ws/ws-disconnection-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnection) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3[0]) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4.applicationNo}`);
22624
- }
22625
- })).then(function () {});
22718
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
22719
+ return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
22720
+ onError: (error, variables) => {
22721
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
22722
+ setIsEnableLoader(false);
22723
+ setError({
22724
+ key: "error",
22725
+ message: error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.Errors) !== null && _error$response3$data2 !== void 0 && _error$response3$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message : error
22726
+ });
22727
+ setTimeout(closeToastOfError, 5000);
22728
+ },
22729
+ onSuccess: (data, variables) => {
22730
+ var _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4;
22731
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
22732
+ ...applicationData,
22733
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
22734
+ });
22735
+ history.push(`/digit-ui/employee/ws/ws-disconnection-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnection) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3[0]) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4.applicationNo}`);
22736
+ }
22737
+ })).then(function () {});
22738
+ });
22626
22739
  });
22627
22740
  } catch (e) {
22628
22741
  return Promise.reject(e);
@@ -22659,25 +22772,27 @@ const WSDisconnectionForm = _ref => {
22659
22772
  ...sewerageConnectionUpdate,
22660
22773
  disconnectRequest: true
22661
22774
  };
22662
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
22663
- onError: (error, variables) => {
22664
- var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
22665
- setIsEnableLoader(false);
22666
- setError({
22667
- key: "error",
22668
- message: error !== null && error !== void 0 && (_error$response7 = error.response) !== null && _error$response7 !== void 0 && (_error$response7$data = _error$response7.data) !== null && _error$response7$data !== void 0 && (_error$response7$data2 = _error$response7$data.Errors) !== null && _error$response7$data2 !== void 0 && _error$response7$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message : error
22669
- });
22670
- setTimeout(closeToastOfError, 5000);
22671
- },
22672
- onSuccess: (data, variables) => {
22673
- var _data$SewerageConnect2, _data$SewerageConnect3, _data$SewerageConnect4;
22674
- Digit.SessionStorage.set("WS_DISCONNECTION", {
22675
- ...applicationData,
22676
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
22677
- });
22678
- history.push(`/digit-ui/employee/ws/ws-disconnection-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnections) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3[0]) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4.applicationNo}`);
22679
- }
22680
- })).then(function () {});
22775
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
22776
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
22777
+ onError: (error, variables) => {
22778
+ var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
22779
+ setIsEnableLoader(false);
22780
+ setError({
22781
+ key: "error",
22782
+ message: error !== null && error !== void 0 && (_error$response7 = error.response) !== null && _error$response7 !== void 0 && (_error$response7$data = _error$response7.data) !== null && _error$response7$data !== void 0 && (_error$response7$data2 = _error$response7$data.Errors) !== null && _error$response7$data2 !== void 0 && _error$response7$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message : error
22783
+ });
22784
+ setTimeout(closeToastOfError, 5000);
22785
+ },
22786
+ onSuccess: (data, variables) => {
22787
+ var _data$SewerageConnect2, _data$SewerageConnect3, _data$SewerageConnect4;
22788
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
22789
+ ...applicationData,
22790
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
22791
+ });
22792
+ history.push(`/digit-ui/employee/ws/ws-disconnection-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnections) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3[0]) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4.applicationNo}`);
22793
+ }
22794
+ })).then(function () {});
22795
+ });
22681
22796
  });
22682
22797
  } catch (e) {
22683
22798
  return Promise.reject(e);
@@ -23365,26 +23480,28 @@ const WSRestorationForm = _ref => {
23365
23480
  disconnectRequest: false,
23366
23481
  reconnectRequest: true
23367
23482
  };
23368
- return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
23369
- onError: (error, variables) => {
23370
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3, _error$response4, _error$response4$data, _error$response4$data2, _error$response4$data3;
23371
- setIsEnableLoader(false);
23372
- setError({
23373
- key: "error",
23374
- message: error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.Errors) !== null && _error$response3$data2 !== void 0 && (_error$response3$data3 = _error$response3$data2[0]) !== null && _error$response3$data3 !== void 0 && _error$response3$data3.message ? error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : (_error$response4$data3 = _error$response4$data2[0]) === null || _error$response4$data3 === void 0 ? void 0 : _error$response4$data3.message : (error === null || error === void 0 ? void 0 : error.message) || "Failed to submit reconnection"
23375
- });
23376
- setTimeout(closeToastOfError, 5000);
23377
- },
23378
- onSuccess: (updatedData, variables) => {
23379
- var _updatedData$WaterCon, _updatedData$WaterCon2, _updatedData$WaterCon3;
23380
- setIsEnableLoader(false);
23381
- Digit.SessionStorage.set("WS_DISCONNECTION", {
23382
- ...currentAppData,
23383
- DisconnectionResponse: updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$WaterCon = updatedData.WaterConnection) === null || _updatedData$WaterCon === void 0 ? void 0 : _updatedData$WaterCon[0]
23384
- });
23385
- history.push(`/digit-ui/employee/ws/ws-restoration-response?applicationNumber=${updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$WaterCon2 = updatedData.WaterConnection) === null || _updatedData$WaterCon2 === void 0 ? void 0 : (_updatedData$WaterCon3 = _updatedData$WaterCon2[0]) === null || _updatedData$WaterCon3 === void 0 ? void 0 : _updatedData$WaterCon3.applicationNo}`);
23386
- }
23387
- })).then(function () {});
23483
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
23484
+ return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
23485
+ onError: (error, variables) => {
23486
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3, _error$response4, _error$response4$data, _error$response4$data2, _error$response4$data3;
23487
+ setIsEnableLoader(false);
23488
+ setError({
23489
+ key: "error",
23490
+ message: error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.Errors) !== null && _error$response3$data2 !== void 0 && (_error$response3$data3 = _error$response3$data2[0]) !== null && _error$response3$data3 !== void 0 && _error$response3$data3.message ? error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : (_error$response4$data3 = _error$response4$data2[0]) === null || _error$response4$data3 === void 0 ? void 0 : _error$response4$data3.message : (error === null || error === void 0 ? void 0 : error.message) || "Failed to submit reconnection"
23491
+ });
23492
+ setTimeout(closeToastOfError, 5000);
23493
+ },
23494
+ onSuccess: (updatedData, variables) => {
23495
+ var _updatedData$WaterCon, _updatedData$WaterCon2, _updatedData$WaterCon3;
23496
+ setIsEnableLoader(false);
23497
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
23498
+ ...currentAppData,
23499
+ DisconnectionResponse: updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$WaterCon = updatedData.WaterConnection) === null || _updatedData$WaterCon === void 0 ? void 0 : _updatedData$WaterCon[0]
23500
+ });
23501
+ history.push(`/digit-ui/employee/ws/ws-restoration-response?applicationNumber=${updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$WaterCon2 = updatedData.WaterConnection) === null || _updatedData$WaterCon2 === void 0 ? void 0 : (_updatedData$WaterCon3 = _updatedData$WaterCon2[0]) === null || _updatedData$WaterCon3 === void 0 ? void 0 : _updatedData$WaterCon3.applicationNo}`);
23502
+ }
23503
+ })).then(function () {});
23504
+ });
23388
23505
  });
23389
23506
  } catch (e) {
23390
23507
  return Promise.reject(e);
@@ -23425,26 +23542,28 @@ const WSRestorationForm = _ref => {
23425
23542
  disconnectRequest: false,
23426
23543
  reconnectRequest: true
23427
23544
  };
23428
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
23429
- onError: (error, variables) => {
23430
- var _error$response7, _error$response7$data, _error$response7$data2, _error$response7$data3, _error$response8, _error$response8$data, _error$response8$data2, _error$response8$data3;
23431
- setIsEnableLoader(false);
23432
- setError({
23433
- key: "error",
23434
- message: error !== null && error !== void 0 && (_error$response7 = error.response) !== null && _error$response7 !== void 0 && (_error$response7$data = _error$response7.data) !== null && _error$response7$data !== void 0 && (_error$response7$data2 = _error$response7$data.Errors) !== null && _error$response7$data2 !== void 0 && (_error$response7$data3 = _error$response7$data2[0]) !== null && _error$response7$data3 !== void 0 && _error$response7$data3.message ? error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : (_error$response8$data3 = _error$response8$data2[0]) === null || _error$response8$data3 === void 0 ? void 0 : _error$response8$data3.message : (error === null || error === void 0 ? void 0 : error.message) || "Failed to submit reconnection"
23435
- });
23436
- setTimeout(closeToastOfError, 5000);
23437
- },
23438
- onSuccess: (updatedData, variables) => {
23439
- var _updatedData$Sewerage, _updatedData$Sewerage2, _updatedData$Sewerage3;
23440
- setIsEnableLoader(false);
23441
- Digit.SessionStorage.set("WS_DISCONNECTION", {
23442
- ...currentAppData,
23443
- DisconnectionResponse: updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$Sewerage = updatedData.SewerageConnections) === null || _updatedData$Sewerage === void 0 ? void 0 : _updatedData$Sewerage[0]
23444
- });
23445
- history.push(`/digit-ui/employee/ws/ws-restoration-response?applicationNumber=${updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$Sewerage2 = updatedData.SewerageConnections) === null || _updatedData$Sewerage2 === void 0 ? void 0 : (_updatedData$Sewerage3 = _updatedData$Sewerage2[0]) === null || _updatedData$Sewerage3 === void 0 ? void 0 : _updatedData$Sewerage3.applicationNo}`);
23446
- }
23447
- })).then(function () {});
23545
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
23546
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
23547
+ onError: (error, variables) => {
23548
+ var _error$response7, _error$response7$data, _error$response7$data2, _error$response7$data3, _error$response8, _error$response8$data, _error$response8$data2, _error$response8$data3;
23549
+ setIsEnableLoader(false);
23550
+ setError({
23551
+ key: "error",
23552
+ message: error !== null && error !== void 0 && (_error$response7 = error.response) !== null && _error$response7 !== void 0 && (_error$response7$data = _error$response7.data) !== null && _error$response7$data !== void 0 && (_error$response7$data2 = _error$response7$data.Errors) !== null && _error$response7$data2 !== void 0 && (_error$response7$data3 = _error$response7$data2[0]) !== null && _error$response7$data3 !== void 0 && _error$response7$data3.message ? error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : (_error$response8$data3 = _error$response8$data2[0]) === null || _error$response8$data3 === void 0 ? void 0 : _error$response8$data3.message : (error === null || error === void 0 ? void 0 : error.message) || "Failed to submit reconnection"
23553
+ });
23554
+ setTimeout(closeToastOfError, 5000);
23555
+ },
23556
+ onSuccess: (updatedData, variables) => {
23557
+ var _updatedData$Sewerage, _updatedData$Sewerage2, _updatedData$Sewerage3;
23558
+ setIsEnableLoader(false);
23559
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
23560
+ ...currentAppData,
23561
+ DisconnectionResponse: updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$Sewerage = updatedData.SewerageConnections) === null || _updatedData$Sewerage === void 0 ? void 0 : _updatedData$Sewerage[0]
23562
+ });
23563
+ history.push(`/digit-ui/employee/ws/ws-restoration-response?applicationNumber=${updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$Sewerage2 = updatedData.SewerageConnections) === null || _updatedData$Sewerage2 === void 0 ? void 0 : (_updatedData$Sewerage3 = _updatedData$Sewerage2[0]) === null || _updatedData$Sewerage3 === void 0 ? void 0 : _updatedData$Sewerage3.applicationNo}`);
23564
+ }
23565
+ })).then(function () {});
23566
+ });
23448
23567
  });
23449
23568
  } catch (e) {
23450
23569
  return Promise.reject(e);
@@ -23767,15 +23886,17 @@ const WSRestorationForm = _ref => {
23767
23886
  reconnectRequest: true,
23768
23887
  disconnectRequest: false
23769
23888
  };
23770
- return Promise.resolve(executeMutation(updateMutation, updatePayload)).then(function (updateResponse) {
23771
- var _updateResponse$respo;
23772
- const finalConnection = (updateResponse === null || updateResponse === void 0 ? void 0 : (_updateResponse$respo = updateResponse[responseKey]) === null || _updateResponse$respo === void 0 ? void 0 : _updateResponse$respo[0]) || createdConnection;
23773
- Digit.SessionStorage.set("WS_DISCONNECTION", {
23774
- ...applicationData,
23775
- DisconnectionResponse: finalConnection
23889
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
23890
+ return Promise.resolve(executeMutation(updateMutation, updatePayload)).then(function (updateResponse) {
23891
+ var _updateResponse$respo;
23892
+ const finalConnection = (updateResponse === null || updateResponse === void 0 ? void 0 : (_updateResponse$respo = updateResponse[responseKey]) === null || _updateResponse$respo === void 0 ? void 0 : _updateResponse$respo[0]) || createdConnection;
23893
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
23894
+ ...applicationData,
23895
+ DisconnectionResponse: finalConnection
23896
+ });
23897
+ const responsePath = userType === "citizen" ? "/digit-ui/citizen/ws/restoration-acknowledge" : "/digit-ui/employee/ws/ws-restoration-response?applicationNumber=" + (finalConnection === null || finalConnection === void 0 ? void 0 : finalConnection.applicationNo);
23898
+ history.push(responsePath);
23776
23899
  });
23777
- const responsePath = userType === "citizen" ? "/digit-ui/citizen/ws/restoration-acknowledge" : "/digit-ui/employee/ws/ws-restoration-response?applicationNumber=" + (finalConnection === null || finalConnection === void 0 ? void 0 : finalConnection.applicationNo);
23778
- history.push(responsePath);
23779
23900
  });
23780
23901
  });
23781
23902
  });
@@ -25444,11 +25565,12 @@ const WSDjbEmployee = _ref => {
25444
25565
  const _temp3 = function () {
25445
25566
  if (file) {
25446
25567
  const _temp2 = function () {
25447
- if (file.size >= 5242880) {
25568
+ if (file.size > 5242880) {
25448
25569
  setErrorUpload({
25449
25570
  key: "error",
25450
- message: "CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"
25571
+ message: t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB"
25451
25572
  });
25573
+ setFile(null);
25452
25574
  } else {
25453
25575
  const _temp = _catch(function () {
25454
25576
  setUploadedFile(null);
@@ -25464,14 +25586,14 @@ const WSDjbEmployee = _ref => {
25464
25586
  } else {
25465
25587
  setErrorUpload({
25466
25588
  key: "error",
25467
- message: "CS_FILE_UPLOAD_ERROR"
25589
+ message: t("CS_FILE_UPLOAD_ERROR") || "File Upload Error"
25468
25590
  });
25469
25591
  }
25470
25592
  });
25471
25593
  }, function () {
25472
25594
  setErrorUpload({
25473
25595
  key: "error",
25474
- message: "CS_FILE_UPLOAD_ERROR"
25596
+ message: t("CS_FILE_UPLOAD_ERROR") || "File Upload Error"
25475
25597
  });
25476
25598
  });
25477
25599
  if (_temp && _temp.then) return _temp.then(function () {});
@@ -25487,7 +25609,19 @@ const WSDjbEmployee = _ref => {
25487
25609
  })();
25488
25610
  }, [file]);
25489
25611
  function selectfile(e) {
25490
- setFile(e.target.files[0]);
25612
+ var _e$target, _e$target$files;
25613
+ 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];
25614
+ if (selected) {
25615
+ if (selected.size > 5242880) {
25616
+ setErrorUpload({
25617
+ key: "error",
25618
+ message: t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB"
25619
+ });
25620
+ if (e !== null && e !== void 0 && e.target) e.target.value = "";
25621
+ return;
25622
+ }
25623
+ setFile(selected);
25624
+ }
25491
25625
  }
25492
25626
  useEffect(() => {
25493
25627
  const isEmployeeMode = userType === "employee" || window.location.href.includes("edit-application") || window.location.href.includes("modify-connection") || window.location.href.includes("old-application");
@@ -25622,9 +25756,16 @@ const WSDjbEmployee = _ref => {
25622
25756
  })
25623
25757
  }), (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.createElement(CardLabelError, {
25624
25758
  style: errorStyle
25625
- }, t("CORE_COMMON_REQUIRED_ERRMSG"))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("Upload Employee ID Document"), isDjbEmployee && /*#__PURE__*/React.createElement("span", {
25759
+ }, t("CORE_COMMON_REQUIRED_ERRMSG"))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t("Upload Employee ID Document"), isDjbEmployee && /*#__PURE__*/React.createElement("span", {
25626
25760
  className: "check-page-link-button"
25627
25761
  }, " *")), /*#__PURE__*/React.createElement("div", {
25762
+ style: {
25763
+ fontSize: "12px",
25764
+ color: "#666",
25765
+ marginTop: "-2px",
25766
+ marginBottom: "4px"
25767
+ }
25768
+ }, t("WS_DOCUMENT_MAX_SIZE_MESSAGE") || "Allowed formats: PDF, JPG, PNG | Max file size: 5MB")), /*#__PURE__*/React.createElement("div", {
25628
25769
  className: "field",
25629
25770
  style: {
25630
25771
  width: "100%"
@@ -27907,6 +28048,13 @@ const SearchApplication = _ref => {
27907
28048
  const GetCell = value => /*#__PURE__*/React.createElement("span", {
27908
28049
  className: "cell-text"
27909
28050
  }, value);
28051
+ const sortedData = useMemo(() => {
28052
+ if (!Array.isArray(data)) return data;
28053
+ return [...data].sort((a, b) => {
28054
+ var _b$auditDetails, _b$auditDetails2, _a$auditDetails, _a$auditDetails2;
28055
+ return ((b === null || b === void 0 ? void 0 : (_b$auditDetails = b.auditDetails) === null || _b$auditDetails === void 0 ? void 0 : _b$auditDetails.createdTime) || (b === null || b === void 0 ? void 0 : (_b$auditDetails2 = b.auditDetails) === null || _b$auditDetails2 === void 0 ? void 0 : _b$auditDetails2.lastModifiedTime) || 0) - ((a === null || a === void 0 ? void 0 : (_a$auditDetails = a.auditDetails) === null || _a$auditDetails === void 0 ? void 0 : _a$auditDetails.createdTime) || (a === null || a === void 0 ? void 0 : (_a$auditDetails2 = a.auditDetails) === null || _a$auditDetails2 === void 0 ? void 0 : _a$auditDetails2.lastModifiedTime) || 0);
28056
+ });
28057
+ }, [data]);
27910
28058
  const columns = useMemo(() => [{
27911
28059
  Header: t("WS_MYCONNECTIONS_CONSUMER_NO"),
27912
28060
  disableSortBy: true,
@@ -28091,7 +28239,7 @@ const SearchApplication = _ref => {
28091
28239
  }
28092
28240
  }, text))) : resultOk ? /*#__PURE__*/React.createElement(Table, {
28093
28241
  t: t,
28094
- data: data,
28242
+ data: sortedData,
28095
28243
  totalRecords: count,
28096
28244
  columns: columns,
28097
28245
  getCellProps: cellInfo => {
@@ -28110,6 +28258,7 @@ const SearchApplication = _ref => {
28110
28258
  pageSizeLimit: getValues("limit"),
28111
28259
  onSort: onSort,
28112
28260
  disableSort: false,
28261
+ autoSort: false,
28113
28262
  sortParams: [{
28114
28263
  id: getValues("sortBy"),
28115
28264
  desc: getValues("sortOrder") === "DESC" ? true : false
@@ -28288,14 +28437,14 @@ const MobileSearchWater = _ref => {
28288
28437
  return [];
28289
28438
  }
28290
28439
  return data === null || data === void 0 ? void 0 : data.map(data => {
28291
- var _data$status, _data$status2;
28440
+ var _data$status, _data$property, _data$status2;
28292
28441
  return {
28293
28442
  [t("WS_MYCONNECTIONS_CONSUMER_NO")]: GetStatusLinkCell(data) || t(`${"WS_NA"}`),
28294
28443
  [t("WS_COMMON_TABLE_COL_SERVICE_LABEL")]: t(`WS_${data === null || data === void 0 ? void 0 : data.service}`),
28295
28444
  [t("WS_COMMON_TABLE_COL_OWN_NAME_LABEL")]: (data === null || data === void 0 ? void 0 : data.owner) || t(`${"WS_NA"}`),
28296
28445
  [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()}`),
28297
28446
  [t("WS_COMMON_TABLE_COL_AMT_DUE_LABEL")]: (data === null || data === void 0 ? void 0 : data.due) || t(`${"WS_NA"}`),
28298
- [t("WS_COMMON_TABLE_COL_ADDRESS")]: (data === null || data === void 0 ? void 0 : data.address) || t(`${"WS_NA"}`),
28447
+ [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"}`),
28299
28448
  [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"}`),
28300
28449
  [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"}`)
28301
28450
  };
@@ -28512,36 +28661,69 @@ const SearchWaterConnection = _ref => {
28512
28661
  Header: t("WS_COMMON_TABLE_COL_ADDRESS"),
28513
28662
  disableSortBy: true,
28514
28663
  Cell: _ref7 => {
28515
- var _row$original1;
28664
+ var _row$original1, _row$original10, _row$original11, _property$owners, _property$owners$, _row$original12;
28516
28665
  let {
28517
28666
  row
28518
28667
  } = _ref7;
28519
- return GetCell(`${((_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1["address"]) || "NA"}`);
28668
+ const property = (_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1.property;
28669
+ 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);
28670
+ const formattedAddress = formatPropertyAddress(propertyAddress, t) || ((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11["address"]) || t("CS_NA");
28671
+ 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;
28672
+ 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);
28673
+ if (ownerUuid && propId) {
28674
+ var _String;
28675
+ const privacy = {
28676
+ uuid: ownerUuid,
28677
+ fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
28678
+ model: "Property",
28679
+ hide: !propertyAddress,
28680
+ showValue: true,
28681
+ loadData: {
28682
+ serviceName: "/property-services/property/_search",
28683
+ requestBody: {},
28684
+ requestParam: {
28685
+ tenantId: tenantId,
28686
+ propertyIds: propId
28687
+ },
28688
+ jsonPath: "Properties[0].address.street",
28689
+ isArray: false,
28690
+ d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}), t)
28691
+ }
28692
+ };
28693
+ return /*#__PURE__*/React.createElement("span", {
28694
+ className: "cell-text"
28695
+ }, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
28696
+ value: formattedAddress,
28697
+ iseyevisible: (_String = String(formattedAddress)) === null || _String === void 0 ? void 0 : _String.includes("*"),
28698
+ privacy: privacy
28699
+ }));
28700
+ }
28701
+ return GetCell(formattedAddress);
28520
28702
  }
28521
28703
  }, {
28522
28704
  Header: t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL"),
28523
28705
  disableSortBy: true,
28524
28706
  Cell: _ref8 => {
28525
- var _row$original10, _row$original10$statu, _row$original11, _row$original12;
28707
+ var _row$original13, _row$original13$statu, _row$original14, _row$original15;
28526
28708
  let {
28527
28709
  row
28528
28710
  } = _ref8;
28529
- const status = ((_row$original10 = row.original) === null || _row$original10 === void 0 ? void 0 : (_row$original10$statu = _row$original10["status"]) === null || _row$original10$statu === void 0 ? void 0 : _row$original10$statu.toUpperCase()) || "";
28530
- const dueDate = ((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11.dueDate) === "NA" ? t("WS_NA") : convertEpochToDate((_row$original12 = row.original) === null || _row$original12 === void 0 ? void 0 : _row$original12.dueDate);
28711
+ 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()) || "";
28712
+ 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);
28531
28713
  return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
28532
28714
  }
28533
28715
  }, {
28534
28716
  Header: t("WS_COMMON_TABLE_COL_ACTION_LABEL"),
28535
28717
  disableSortBy: true,
28536
28718
  Cell: _ref9 => {
28537
- var _row$original13;
28719
+ var _row$original16;
28538
28720
  let {
28539
28721
  row
28540
28722
  } = _ref9;
28541
- const amount = (_row$original13 = row.original) === null || _row$original13 === void 0 ? void 0 : _row$original13.due;
28723
+ const amount = (_row$original16 = row.original) === null || _row$original16 === void 0 ? void 0 : _row$original16.due;
28542
28724
  if (amount || amount === 0) {
28543
- var _row$original14;
28544
- return GetCell(getActionItem((_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.status, row));
28725
+ var _row$original17;
28726
+ return GetCell(getActionItem((_row$original17 = row.original) === null || _row$original17 === void 0 ? void 0 : _row$original17.status, row));
28545
28727
  } else {
28546
28728
  return GetCell(t(`${"WS_NA"}`));
28547
28729
  }
@@ -28552,14 +28734,14 @@ const SearchWaterConnection = _ref => {
28552
28734
  disableSortBy: true,
28553
28735
  accessor: "connectionNo",
28554
28736
  Cell: _ref0 => {
28555
- var _row$original15, _row$original16, _row$original17;
28737
+ var _row$original18, _row$original19, _row$original20;
28556
28738
  let {
28557
28739
  row
28558
28740
  } = _ref0;
28559
28741
  return /*#__PURE__*/React.createElement("div", null, row.original["connectionNo"] ? /*#__PURE__*/React.createElement("span", {
28560
28742
  className: "link"
28561
28743
  }, /*#__PURE__*/React.createElement(Link, {
28562
- to: `/digit-ui/employee/ws/connection-details?applicationNumber=${row.original["connectionNo"]}&tenantId=${tenantId}&service=${(_row$original15 = row.original) === null || _row$original15 === void 0 ? void 0 : _row$original15["service"]}&connectionType=${(_row$original16 = row.original) === null || _row$original16 === void 0 ? void 0 : _row$original16["connectionType"]}&due=${((_row$original17 = row.original) === null || _row$original17 === void 0 ? void 0 : _row$original17.due) || 0}&from=WS_SEWERAGE_CONNECTION_SEARCH_LABEL`
28744
+ 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`
28563
28745
  }, row.original["connectionNo"] || "NA")) : /*#__PURE__*/React.createElement("span", null, t("NA")));
28564
28746
  }
28565
28747
  }, {
@@ -28575,11 +28757,11 @@ const SearchWaterConnection = _ref => {
28575
28757
  Header: t("WS_COMMON_TABLE_COL_propertyId_LABEL"),
28576
28758
  disableSortBy: true,
28577
28759
  Cell: _ref10 => {
28578
- var _row$original18, _row$original18$prope;
28760
+ var _row$original21, _row$original21$prope;
28579
28761
  let {
28580
28762
  row
28581
28763
  } = _ref10;
28582
- return GetCell(t(`WS_${(_row$original18 = row.original) === null || _row$original18 === void 0 ? void 0 : (_row$original18$prope = _row$original18["propertyId"]) === null || _row$original18$prope === void 0 ? void 0 : _row$original18$prope.toUpperCase()}`));
28764
+ 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()}`));
28583
28765
  }
28584
28766
  }, {
28585
28767
  Header: t("WS_COMMON_TABLE_COL_ACTION_LABEL"),
@@ -28609,18 +28791,18 @@ const SearchWaterConnection = _ref => {
28609
28791
  }
28610
28792
  };
28611
28793
  return Promise.resolve(Digit.WSService.WSSewsearchDemandGen(payload, window.location.href.includes("ws/sewerage/search-demand") ? "sw" : "ws")).then(function (data) {
28612
- var _row$original19, _row$original20, _row$original21;
28794
+ var _row$original22, _row$original23, _row$original24;
28613
28795
  setShowToast({
28614
28796
  label: `${data}`
28615
28797
  });
28616
- history.push(`/digit-ui/employee/payment/collect/SW/${encodeURIComponent((_row$original19 = row.original) === null || _row$original19 === void 0 ? void 0 : _row$original19["connectionNo"])}/${(_row$original20 = row.original) === null || _row$original20 === void 0 ? void 0 : _row$original20["tenantId"]}?tenantId=${(_row$original21 = row.original) === null || _row$original21 === void 0 ? void 0 : _row$original21["tenantId"]}?workflow=WS&ISWSCON`);
28798
+ 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`);
28617
28799
  });
28618
28800
  } catch (e) {
28619
28801
  return Promise.reject(e);
28620
28802
  }
28621
28803
  };
28622
28804
  const getActionItem = (status, row) => {
28623
- var _row$original22, _row$original23, _row$original24, _row$original25, _row$original26, _row$original27, _row$original28, _row$original29, _row$original30;
28805
+ var _row$original25, _row$original26, _row$original27, _row$original28, _row$original29, _row$original30, _row$original31, _row$original32, _row$original33;
28624
28806
  const userInfo = Digit.UserService.getUser();
28625
28807
  const userRoles = userInfo.info.roles.map(roleData => roleData.code);
28626
28808
  const isUserAllowedToAddMeterReading = userRoles.filter(role => role === "WS_CEMP" || role === "SW_CEMP").length > 0;
@@ -28629,13 +28811,13 @@ const SearchWaterConnection = _ref => {
28629
28811
  case "Active":
28630
28812
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
28631
28813
  className: "link"
28632
- }, ((_row$original22 = row.original) === null || _row$original22 === void 0 ? void 0 : _row$original22.service) === "WATER" ? /*#__PURE__*/React.createElement(Link, {
28814
+ }, ((_row$original25 = row.original) === null || _row$original25 === void 0 ? void 0 : _row$original25.service) === "WATER" ? /*#__PURE__*/React.createElement(Link, {
28633
28815
  to: {
28634
- pathname: `/digit-ui/employee/payment/collect/${((_row$original23 = row.original) === null || _row$original23 === void 0 ? void 0 : _row$original23["service"]) === "WATER" ? "WS" : "SW"}/${encodeURIComponent((_row$original24 = row.original) === null || _row$original24 === void 0 ? void 0 : _row$original24["connectionNo"])}/${(_row$original25 = row.original) === null || _row$original25 === void 0 ? void 0 : _row$original25["tenantId"]}?tenantId=${(_row$original26 = row.original) === null || _row$original26 === void 0 ? void 0 : _row$original26["tenantId"]}?workflow=WS&ISWSCON`
28816
+ 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`
28635
28817
  }
28636
28818
  }, t(`${"WS_COMMON_COLLECT_LABEL"}`), " ") : /*#__PURE__*/React.createElement(Link, {
28637
28819
  to: {
28638
- pathname: `/digit-ui/employee/payment/collect/${((_row$original27 = row.original) === null || _row$original27 === void 0 ? void 0 : _row$original27["service"]) === "WATER" ? "WS" : "SW"}/${encodeURIComponent((_row$original28 = row.original) === null || _row$original28 === void 0 ? void 0 : _row$original28["connectionNo"])}/${(_row$original29 = row.original) === null || _row$original29 === void 0 ? void 0 : _row$original29["tenantId"]}?tenantId=${(_row$original30 = row.original) === null || _row$original30 === void 0 ? void 0 : _row$original30["tenantId"]}?workflow=SW&ISWSCON`
28820
+ 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`
28639
28821
  }
28640
28822
  }, t(`${"WS_COMMON_COLLECT_LABEL"}`), " ")));
28641
28823
  }
@@ -28749,6 +28931,7 @@ const SearchWaterConnection = _ref => {
28749
28931
  pageSizeLimit: getValues("limit"),
28750
28932
  onSort: onSort,
28751
28933
  disableSort: false,
28934
+ autoSort: false,
28752
28935
  sortParams: [{
28753
28936
  id: getValues("sortBy"),
28754
28937
  desc: getValues("sortOrder") === "DESC" ? true : false
@@ -28774,6 +28957,7 @@ const SearchWaterConnection = _ref => {
28774
28957
  pageSizeLimit: getValues("limit"),
28775
28958
  onSort: onSort,
28776
28959
  disableSort: false,
28960
+ autoSort: false,
28777
28961
  sortParams: [{
28778
28962
  id: getValues("sortBy"),
28779
28963
  desc: getValues("sortOrder") === "DESC" ? true : false
@@ -34648,27 +34832,27 @@ const checkForNA$2 = value => {
34648
34832
  return value ? value : "CS_NA";
34649
34833
  };
34650
34834
  const WSApplicationDetails = () => {
34651
- 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;
34835
+ 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;
34652
34836
  const getDisconnectionNoticeSearch = function () {
34653
34837
  try {
34654
34838
  var _data$WaterConnection190, _data$WaterConnection191, _data$SewerageConnect182, _data$SewerageConnect183;
34655
34839
  let key = "ws-waterdisconnectionnotice";
34656
34840
  let details = {};
34657
34841
  if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
34658
- var _data$WaterConnection189, _PTData$Properties11;
34842
+ var _data$WaterConnection189, _PTData$Properties12;
34659
34843
  details = {
34660
34844
  WaterConnection: [{
34661
34845
  ...(data === null || data === void 0 ? void 0 : (_data$WaterConnection189 = data.WaterConnection) === null || _data$WaterConnection189 === void 0 ? void 0 : _data$WaterConnection189[0]),
34662
- property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : _PTData$Properties11[0]
34846
+ property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
34663
34847
  }]
34664
34848
  };
34665
34849
  } else {
34666
- var _data$SewerageConnect181, _PTData$Properties12;
34850
+ var _data$SewerageConnect181, _PTData$Properties13;
34667
34851
  key = "ws-seweragedisconnectionnotice";
34668
34852
  details = {
34669
34853
  SewerageConnection: [{
34670
34854
  ...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect181 = data.SewerageConnections) === null || _data$SewerageConnect181 === void 0 ? void 0 : _data$SewerageConnect181[0]),
34671
- property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
34855
+ property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties13 = PTData.Properties) === null || _PTData$Properties13 === void 0 ? void 0 : _PTData$Properties13[0]
34672
34856
  }]
34673
34857
  };
34674
34858
  }
@@ -35273,13 +35457,13 @@ const WSApplicationDetails = () => {
35273
35457
  }
35274
35458
  }), /*#__PURE__*/React.createElement(Row, {
35275
35459
  label: t("WS_PROPERTY_ADDRESS"),
35276
- text: getAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties6 = PTData.Properties) === null || _PTData$Properties6 === void 0 ? void 0 : (_PTData$Properties6$ = _PTData$Properties6[0]) === null || _PTData$Properties6$ === void 0 ? void 0 : _PTData$Properties6$.address, t) || t("CS_NA"),
35460
+ 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"),
35277
35461
  textStyle: {
35278
35462
  wordBreak: "break-word"
35279
35463
  },
35280
35464
  privacy: {
35281
35465
  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,
35282
- fieldName: ["doorNo", "street", "landmark"],
35466
+ fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
35283
35467
  model: "Property",
35284
35468
  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),
35285
35469
  showValue: true,
@@ -35288,14 +35472,11 @@ const WSApplicationDetails = () => {
35288
35472
  requestBody: {},
35289
35473
  requestParam: {
35290
35474
  tenantId: tenantId,
35291
- mobileNumber: userMobileNumber
35475
+ 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
35292
35476
  },
35293
35477
  jsonPath: "Properties[0].address.street",
35294
35478
  isArray: false,
35295
- d: res => {
35296
- 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")}` : "");
35297
- return resultString;
35298
- }
35479
+ d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}))
35299
35480
  }
35300
35481
  }
35301
35482
  }), /*#__PURE__*/React.createElement(Link, {
@@ -35382,16 +35563,16 @@ const WSApplicationDetails = () => {
35382
35563
  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)))}`
35383
35564
  }), /*#__PURE__*/React.createElement(Row, {
35384
35565
  label: t("WS_PROPERTY_CATEGORY"),
35385
- 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$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : _PTData$Properties9$.usageCategory)))}`
35566
+ 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)))}`
35386
35567
  }), /*#__PURE__*/React.createElement(Row, {
35387
35568
  label: t("WS_PROPERTY_TYPE"),
35388
- 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$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : _PTData$Properties0$.propertyType)))}`
35569
+ 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)))}`
35389
35570
  }), /*#__PURE__*/React.createElement(Row, {
35390
35571
  label: t("WS_WATER_CONNECTION_USAGE_TYPE"),
35391
35572
  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)))}`
35392
35573
  }), /*#__PURE__*/React.createElement(Row, {
35393
35574
  label: t("WS_NUMBER_OF_FLOORS"),
35394
- 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$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : _PTData$Properties1$.noOfFloors)))}`
35575
+ 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)))}`
35395
35576
  }), /*#__PURE__*/React.createElement(Row, {
35396
35577
  label: t("WS_PLOT_AREA"),
35397
35578
  text: `${t(checkForNA$2(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))}`
@@ -35602,10 +35783,10 @@ const WSApplicationDetails = () => {
35602
35783
  }, /*#__PURE__*/React.createElement(SubmitBar, {
35603
35784
  label: t("MAKE_PAYMENT"),
35604
35785
  onSubmit: () => {
35605
- 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$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
35786
+ 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;
35606
35787
  history.push({
35607
35788
  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, "/", "+")}`,
35608
- 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$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
35789
+ 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}`,
35609
35790
  state: {
35610
35791
  fromApplicationDetails: true
35611
35792
  }
@@ -39633,25 +39814,27 @@ const CheckPage$1 = () => {
39633
39814
  ...waterConnectionUpdate,
39634
39815
  disconnectRequest: true
39635
39816
  };
39636
- return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
39637
- onError: (error, variables) => {
39638
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
39639
- setIsEnableLoader(false);
39640
- setError({
39641
- key: "error",
39642
- message: error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.Errors) !== null && _error$response3$data2 !== void 0 && _error$response3$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message : error
39643
- });
39644
- setTimeout(closeToastOfError, 5000);
39645
- },
39646
- onSuccess: (data, variables) => {
39647
- var _data$WaterConnection2;
39648
- Digit.SessionStorage.set("WS_DISCONNECTION", {
39649
- ...value,
39650
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
39651
- });
39652
- history.push(`/digit-ui/citizen/ws/disconnect-acknowledge`);
39653
- }
39654
- })).then(function () {});
39817
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
39818
+ return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
39819
+ onError: (error, variables) => {
39820
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
39821
+ setIsEnableLoader(false);
39822
+ setError({
39823
+ key: "error",
39824
+ message: error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.Errors) !== null && _error$response3$data2 !== void 0 && _error$response3$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message : error
39825
+ });
39826
+ setTimeout(closeToastOfError, 5000);
39827
+ },
39828
+ onSuccess: (data, variables) => {
39829
+ var _data$WaterConnection2;
39830
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
39831
+ ...value,
39832
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
39833
+ });
39834
+ history.push(`/digit-ui/citizen/ws/disconnect-acknowledge`);
39835
+ }
39836
+ })).then(function () {});
39837
+ });
39655
39838
  });
39656
39839
  } catch (e) {
39657
39840
  return Promise.reject(e);
@@ -39688,25 +39871,27 @@ const CheckPage$1 = () => {
39688
39871
  ...sewerageConnectionUpdate,
39689
39872
  disconnectRequest: true
39690
39873
  };
39691
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
39692
- onError: (error, variables) => {
39693
- var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
39694
- setIsEnableLoader(false);
39695
- setError({
39696
- key: "error",
39697
- message: error !== null && error !== void 0 && (_error$response7 = error.response) !== null && _error$response7 !== void 0 && (_error$response7$data = _error$response7.data) !== null && _error$response7$data !== void 0 && (_error$response7$data2 = _error$response7$data.Errors) !== null && _error$response7$data2 !== void 0 && _error$response7$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message : error
39698
- });
39699
- setTimeout(closeToastOfError, 5000);
39700
- },
39701
- onSuccess: (data, variables) => {
39702
- var _data$SewerageConnect2;
39703
- Digit.SessionStorage.set("WS_DISCONNECTION", {
39704
- ...value,
39705
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
39706
- });
39707
- history.push(`/digit-ui/citizen/ws/disconnect-acknowledge`);
39708
- }
39709
- })).then(function () {});
39874
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
39875
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
39876
+ onError: (error, variables) => {
39877
+ var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
39878
+ setIsEnableLoader(false);
39879
+ setError({
39880
+ key: "error",
39881
+ message: error !== null && error !== void 0 && (_error$response7 = error.response) !== null && _error$response7 !== void 0 && (_error$response7$data = _error$response7.data) !== null && _error$response7$data !== void 0 && (_error$response7$data2 = _error$response7$data.Errors) !== null && _error$response7$data2 !== void 0 && _error$response7$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message : error
39882
+ });
39883
+ setTimeout(closeToastOfError, 5000);
39884
+ },
39885
+ onSuccess: (data, variables) => {
39886
+ var _data$SewerageConnect2;
39887
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
39888
+ ...value,
39889
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
39890
+ });
39891
+ history.push(`/digit-ui/citizen/ws/disconnect-acknowledge`);
39892
+ }
39893
+ })).then(function () {});
39894
+ });
39710
39895
  });
39711
39896
  } catch (e) {
39712
39897
  return Promise.reject(e);
@@ -39872,25 +40057,27 @@ const CheckPage$2 = () => {
39872
40057
  disconnectRequest: false,
39873
40058
  reconnectRequest: true
39874
40059
  };
39875
- return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
39876
- onError: (error, variables) => {
39877
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
39878
- setIsEnableLoader(false);
39879
- setError({
39880
- key: "error",
39881
- message: error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.Errors) !== null && _error$response3$data2 !== void 0 && _error$response3$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message : error
39882
- });
39883
- setTimeout(closeToastOfError, 5000);
39884
- },
39885
- onSuccess: (data, variables) => {
39886
- var _data$WaterConnection2;
39887
- Digit.SessionStorage.set("WS_DISCONNECTION", {
39888
- ...value,
39889
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
39890
- });
39891
- history.push(`/digit-ui/citizen/ws/restoration-acknowledge`);
39892
- }
39893
- })).then(function () {});
40060
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
40061
+ return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
40062
+ onError: (error, variables) => {
40063
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
40064
+ setIsEnableLoader(false);
40065
+ setError({
40066
+ key: "error",
40067
+ message: error !== null && error !== void 0 && (_error$response3 = error.response) !== null && _error$response3 !== void 0 && (_error$response3$data = _error$response3.data) !== null && _error$response3$data !== void 0 && (_error$response3$data2 = _error$response3$data.Errors) !== null && _error$response3$data2 !== void 0 && _error$response3$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message : error
40068
+ });
40069
+ setTimeout(closeToastOfError, 5000);
40070
+ },
40071
+ onSuccess: (data, variables) => {
40072
+ var _data$WaterConnection2;
40073
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
40074
+ ...value,
40075
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
40076
+ });
40077
+ history.push(`/digit-ui/citizen/ws/restoration-acknowledge`);
40078
+ }
40079
+ })).then(function () {});
40080
+ });
39894
40081
  });
39895
40082
  } catch (e) {
39896
40083
  return Promise.reject(e);
@@ -39934,25 +40121,27 @@ const CheckPage$2 = () => {
39934
40121
  disconnectRequest: false,
39935
40122
  reconnectRequest: true
39936
40123
  };
39937
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
39938
- onError: (error, variables) => {
39939
- var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
39940
- setIsEnableLoader(false);
39941
- setError({
39942
- key: "error",
39943
- message: error !== null && error !== void 0 && (_error$response7 = error.response) !== null && _error$response7 !== void 0 && (_error$response7$data = _error$response7.data) !== null && _error$response7$data !== void 0 && (_error$response7$data2 = _error$response7$data.Errors) !== null && _error$response7$data2 !== void 0 && _error$response7$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message : error
39944
- });
39945
- setTimeout(closeToastOfError, 5000);
39946
- },
39947
- onSuccess: (data, variables) => {
39948
- var _data$SewerageConnect2;
39949
- Digit.SessionStorage.set("WS_DISCONNECTION", {
39950
- ...value,
39951
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
39952
- });
39953
- history.push(`/digit-ui/citizen/ws/restoration-acknowledge`);
39954
- }
39955
- })).then(function () {});
40124
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
40125
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
40126
+ onError: (error, variables) => {
40127
+ var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
40128
+ setIsEnableLoader(false);
40129
+ setError({
40130
+ key: "error",
40131
+ message: error !== null && error !== void 0 && (_error$response7 = error.response) !== null && _error$response7 !== void 0 && (_error$response7$data = _error$response7.data) !== null && _error$response7$data !== void 0 && (_error$response7$data2 = _error$response7$data.Errors) !== null && _error$response7$data2 !== void 0 && _error$response7$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message : error
40132
+ });
40133
+ setTimeout(closeToastOfError, 5000);
40134
+ },
40135
+ onSuccess: (data, variables) => {
40136
+ var _data$SewerageConnect2;
40137
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
40138
+ ...value,
40139
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
40140
+ });
40141
+ history.push(`/digit-ui/citizen/ws/restoration-acknowledge`);
40142
+ }
40143
+ })).then(function () {});
40144
+ });
39956
40145
  });
39957
40146
  } catch (e) {
39958
40147
  return Promise.reject(e);
@@ -44093,82 +44282,86 @@ const NewApplication = () => {
44093
44282
  disconnectRequest: false,
44094
44283
  reconnectRequest: false
44095
44284
  };
44096
- waterUpdateMutation(waterConnectionUpdate, {
44097
- onError: error => {
44098
- var _error$response2, _error$response2$data, _error$response2$data2;
44099
- setIsEnableLoader(false);
44100
- setShowToast({
44101
- key: "error",
44102
- message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : _error$response2$data2[0].message) || error
44103
- });
44104
- setTimeout(closeToastOfError, 5000);
44105
- },
44106
- onSuccess: function (waterUpdateData) {
44107
- try {
44108
- setAppDetails(prev => {
44109
- var _waterUpdateData$Wate;
44110
- return {
44111
- ...prev,
44112
- waterConnection: waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : _waterUpdateData$Wate[0]
44113
- };
44285
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
44286
+ waterUpdateMutation(waterConnectionUpdate, {
44287
+ onError: error => {
44288
+ var _error$response2, _error$response2$data, _error$response2$data2;
44289
+ setIsEnableLoader(false);
44290
+ setShowToast({
44291
+ key: "error",
44292
+ message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : _error$response2$data2[0].message) || error
44114
44293
  });
44115
- return Promise.resolve(sewerageMutation(sewerageConnection, {
44116
- onError: error => {
44117
- var _error$response3, _error$response3$data, _error$response3$data2;
44118
- setIsEnableLoader(false);
44119
- setShowToast({
44120
- key: "error",
44121
- message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : _error$response3$data2[0].message) || error
44122
- });
44123
- setTimeout(closeToastOfError, 5000);
44124
- },
44125
- onSuccess: function (sewerageData) {
44126
- try {
44127
- var _sewerageData$Sewerag;
44128
- return Promise.resolve(updatePayloadOfWS(sewerageData === null || sewerageData === void 0 ? void 0 : (_sewerageData$Sewerag = sewerageData.SewerageConnections) === null || _sewerageData$Sewerag === void 0 ? void 0 : _sewerageData$Sewerag[0], "SEWERAGE")).then(function (response) {
44129
- let sewerageConnectionUpdate = {
44130
- SewerageConnection: response,
44131
- disconnectRequest: false,
44132
- reconnectRequest: false
44133
- };
44134
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
44135
- onError: error => {
44136
- var _error$response4, _error$response4$data, _error$response4$data2;
44137
- setIsEnableLoader(false);
44138
- setShowToast({
44139
- key: "error",
44140
- message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message) || error
44141
- });
44142
- setTimeout(closeToastOfError, 5000);
44143
- },
44144
- onSuccess: function (sewerageUpdateData) {
44145
- try {
44146
- var _waterUpdateData$Wate2, _waterUpdateData$Wate3, _sewerageUpdateData$S2, _sewerageUpdateData$S3;
44147
- setAppDetails(prev => {
44148
- var _sewerageUpdateData$S;
44149
- return {
44150
- ...prev,
44151
- sewerageConnection: sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : _sewerageUpdateData$S[0]
44152
- };
44153
- });
44154
- window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44155
- history.push(`/digit-ui/employee/ws/ws-response?applicationNumber=${waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate2 = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : (_waterUpdateData$Wate3 = _waterUpdateData$Wate2[0]) === null || _waterUpdateData$Wate3 === void 0 ? void 0 : _waterUpdateData$Wate3.applicationNo}&applicationNumber1=${sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S2 = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : (_sewerageUpdateData$S3 = _sewerageUpdateData$S2[0]) === null || _sewerageUpdateData$S3 === void 0 ? void 0 : _sewerageUpdateData$S3.applicationNo}`);
44156
- return Promise.resolve();
44157
- } catch (e) {
44158
- return Promise.reject(e);
44159
- }
44160
- }
44161
- })).then(function () {});
44294
+ setTimeout(closeToastOfError, 5000);
44295
+ },
44296
+ onSuccess: function (waterUpdateData) {
44297
+ try {
44298
+ setAppDetails(prev => {
44299
+ var _waterUpdateData$Wate;
44300
+ return {
44301
+ ...prev,
44302
+ waterConnection: waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : _waterUpdateData$Wate[0]
44303
+ };
44304
+ });
44305
+ return Promise.resolve(sewerageMutation(sewerageConnection, {
44306
+ onError: error => {
44307
+ var _error$response3, _error$response3$data, _error$response3$data2;
44308
+ setIsEnableLoader(false);
44309
+ setShowToast({
44310
+ key: "error",
44311
+ message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : _error$response3$data2[0].message) || error
44162
44312
  });
44163
- } catch (e) {
44164
- return Promise.reject(e);
44313
+ setTimeout(closeToastOfError, 5000);
44314
+ },
44315
+ onSuccess: function (sewerageData) {
44316
+ try {
44317
+ var _sewerageData$Sewerag;
44318
+ return Promise.resolve(updatePayloadOfWS(sewerageData === null || sewerageData === void 0 ? void 0 : (_sewerageData$Sewerag = sewerageData.SewerageConnections) === null || _sewerageData$Sewerag === void 0 ? void 0 : _sewerageData$Sewerag[0], "SEWERAGE")).then(function (response) {
44319
+ let sewerageConnectionUpdate = {
44320
+ SewerageConnection: response,
44321
+ disconnectRequest: false,
44322
+ reconnectRequest: false
44323
+ };
44324
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
44325
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
44326
+ onError: error => {
44327
+ var _error$response4, _error$response4$data, _error$response4$data2;
44328
+ setIsEnableLoader(false);
44329
+ setShowToast({
44330
+ key: "error",
44331
+ message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : _error$response4$data2[0].message) || error
44332
+ });
44333
+ setTimeout(closeToastOfError, 5000);
44334
+ },
44335
+ onSuccess: function (sewerageUpdateData) {
44336
+ try {
44337
+ var _waterUpdateData$Wate2, _waterUpdateData$Wate3, _sewerageUpdateData$S2, _sewerageUpdateData$S3;
44338
+ setAppDetails(prev => {
44339
+ var _sewerageUpdateData$S;
44340
+ return {
44341
+ ...prev,
44342
+ sewerageConnection: sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : _sewerageUpdateData$S[0]
44343
+ };
44344
+ });
44345
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44346
+ history.push(`/digit-ui/employee/ws/ws-response?applicationNumber=${waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate2 = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : (_waterUpdateData$Wate3 = _waterUpdateData$Wate2[0]) === null || _waterUpdateData$Wate3 === void 0 ? void 0 : _waterUpdateData$Wate3.applicationNo}&applicationNumber1=${sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S2 = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : (_sewerageUpdateData$S3 = _sewerageUpdateData$S2[0]) === null || _sewerageUpdateData$S3 === void 0 ? void 0 : _sewerageUpdateData$S3.applicationNo}`);
44347
+ return Promise.resolve();
44348
+ } catch (e) {
44349
+ return Promise.reject(e);
44350
+ }
44351
+ }
44352
+ })).then(function () {});
44353
+ });
44354
+ });
44355
+ } catch (e) {
44356
+ return Promise.reject(e);
44357
+ }
44165
44358
  }
44166
- }
44167
- })).then(function () {});
44168
- } catch (e) {
44169
- return Promise.reject(e);
44359
+ })).then(function () {});
44360
+ } catch (e) {
44361
+ return Promise.reject(e);
44362
+ }
44170
44363
  }
44171
- }
44364
+ });
44172
44365
  });
44173
44366
  });
44174
44367
  } catch (e) {
@@ -44202,28 +44395,30 @@ const NewApplication = () => {
44202
44395
  let waterConnectionUpdate = {
44203
44396
  WaterConnection: response
44204
44397
  };
44205
- waterUpdateMutation(waterConnectionUpdate, {
44206
- onError: error => {
44207
- var _error$response6, _error$response6$data, _error$response6$data2;
44208
- setIsEnableLoader(false);
44209
- setShowToast({
44210
- key: "error",
44211
- message: (error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : _error$response6$data2[0].message) || error
44212
- });
44213
- setTimeout(closeToastOfError, 5000);
44214
- },
44215
- onSuccess: data => {
44216
- var _data$WaterConnection3, _data$WaterConnection4;
44217
- setAppDetails(prev => {
44218
- var _data$WaterConnection2;
44219
- return {
44220
- ...prev,
44221
- waterConnection: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
44222
- };
44223
- });
44224
- window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44225
- history.push(`/digit-ui/employee/ws/ws-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnection) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3[0]) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4.applicationNo}`);
44226
- }
44398
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
44399
+ waterUpdateMutation(waterConnectionUpdate, {
44400
+ onError: error => {
44401
+ var _error$response6, _error$response6$data, _error$response6$data2;
44402
+ setIsEnableLoader(false);
44403
+ setShowToast({
44404
+ key: "error",
44405
+ message: (error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : _error$response6$data2[0].message) || error
44406
+ });
44407
+ setTimeout(closeToastOfError, 5000);
44408
+ },
44409
+ onSuccess: data => {
44410
+ var _data$WaterConnection3, _data$WaterConnection4;
44411
+ setAppDetails(prev => {
44412
+ var _data$WaterConnection2;
44413
+ return {
44414
+ ...prev,
44415
+ waterConnection: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
44416
+ };
44417
+ });
44418
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44419
+ history.push(`/digit-ui/employee/ws/ws-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$WaterConnection3 = data.WaterConnection) === null || _data$WaterConnection3 === void 0 ? void 0 : (_data$WaterConnection4 = _data$WaterConnection3[0]) === null || _data$WaterConnection4 === void 0 ? void 0 : _data$WaterConnection4.applicationNo}`);
44420
+ }
44421
+ });
44227
44422
  });
44228
44423
  });
44229
44424
  } catch (e) {
@@ -44257,29 +44452,31 @@ const NewApplication = () => {
44257
44452
  let sewerageConnectionUpdate = {
44258
44453
  SewerageConnection: response
44259
44454
  };
44260
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
44261
- onError: error => {
44262
- var _error$response8, _error$response8$data, _error$response8$data2;
44263
- setIsEnableLoader(false);
44264
- setShowToast({
44265
- key: "error",
44266
- message: (error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message) || error
44267
- });
44268
- setTimeout(closeToastOfError, 5000);
44269
- },
44270
- onSuccess: data => {
44271
- var _data$SewerageConnect3, _data$SewerageConnect4;
44272
- setAppDetails(prev => {
44273
- var _data$SewerageConnect2;
44274
- return {
44275
- ...prev,
44276
- sewerageConnection: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
44277
- };
44278
- });
44279
- window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44280
- history.push(`/digit-ui/employee/ws/ws-response?applicationNumber1=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnections) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3[0]) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4.applicationNo}`);
44281
- }
44282
- })).then(function () {});
44455
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
44456
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
44457
+ onError: error => {
44458
+ var _error$response8, _error$response8$data, _error$response8$data2;
44459
+ setIsEnableLoader(false);
44460
+ setShowToast({
44461
+ key: "error",
44462
+ message: (error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : _error$response8$data2[0].message) || error
44463
+ });
44464
+ setTimeout(closeToastOfError, 5000);
44465
+ },
44466
+ onSuccess: data => {
44467
+ var _data$SewerageConnect3, _data$SewerageConnect4;
44468
+ setAppDetails(prev => {
44469
+ var _data$SewerageConnect2;
44470
+ return {
44471
+ ...prev,
44472
+ sewerageConnection: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
44473
+ };
44474
+ });
44475
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44476
+ history.push(`/digit-ui/employee/ws/ws-response?applicationNumber1=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnections) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3[0]) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4.applicationNo}`);
44477
+ }
44478
+ })).then(function () {});
44479
+ });
44283
44480
  });
44284
44481
  } catch (e) {
44285
44482
  return Promise.reject(e);
@@ -53104,7 +53301,7 @@ function ApplicationDetailsToast(_ref) {
53104
53301
  }
53105
53302
 
53106
53303
  function ApplicationDetailsActionBar(_ref) {
53107
- var _user, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationData$addi, _actions3, _actions4, _actions4$, _actions4$$redirectio, _actions5, _actions6, _Session$info, _applicationDetails$a5, _applicationDetails$a6, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _actions7, _actions7$, _actions8, _actions8$, _actions0, _actions0$;
53304
+ var _user, _user$info, _user$info$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _applicationDetails$a, _applicationDetails$a2, _applicationData$appl, _businessService$toUp, _applicationData$appl2, _applicationDetails$a3, _applicationDetails$a4, _applicationData$appl3, _businessService$toUp2, _applicationData$appl4, _actions, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationData$addi, _actions4, _actions5, _actions6, _actions6$, _actions6$$redirectio, _actions7, _actions8, _Session$info, _applicationDetails$a9, _applicationDetails$a0, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8, _actions9, _actions9$, _actions0, _actions0$, _actions10, _actions10$;
53108
53305
  let {
53109
53306
  workflowDetails,
53110
53307
  displayMenu,
@@ -53166,30 +53363,50 @@ function ApplicationDetailsActionBar(_ref) {
53166
53363
  return (_e$roles2 = e.roles) === null || _e$roles2 === void 0 ? void 0 : _e$roles2.includes(role);
53167
53364
  })) || !e.roles;
53168
53365
  }));
53169
- const completelySatisfied = (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.isFullySatisfied) !== undefined ? approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.isFullySatisfied : showApprovalChecklist ? undefined : (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : (_applicationDetails$a2 = _applicationDetails$a.additionalDetails) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.CompletelySatisfied) !== undefined ? applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationData) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.additionalDetails) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.CompletelySatisfied : applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi = applicationData.additionalDetails) === null || _applicationData$addi === void 0 ? void 0 : _applicationData$addi.CompletelySatisfied;
53170
- if (completelySatisfied !== undefined) {
53366
+ const isMutationOrReconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a = applicationDetails.applicationData) === null || _applicationDetails$a === void 0 ? void 0 : (_applicationDetails$a2 = _applicationDetails$a.applicationType) === null || _applicationDetails$a2 === void 0 ? void 0 : _applicationDetails$a2.includes("MUTATION")) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicationType) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.includes("MUTATION")) || (businessService === null || businessService === void 0 ? void 0 : (_businessService$toUp = businessService.toUpperCase()) === null || _businessService$toUp === void 0 ? void 0 : _businessService$toUp.includes("MUTATION")) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl2 = applicationData.applicationNo) === null || _applicationData$appl2 === void 0 ? void 0 : _applicationData$appl2.includes("MUT")) || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a3 = applicationDetails.applicationData) === null || _applicationDetails$a3 === void 0 ? void 0 : (_applicationDetails$a4 = _applicationDetails$a3.applicationType) === null || _applicationDetails$a4 === void 0 ? void 0 : _applicationDetails$a4.includes("RECONNECT")) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl3 = applicationData.applicationType) === null || _applicationData$appl3 === void 0 ? void 0 : _applicationData$appl3.includes("RECONNECT")) || (businessService === null || businessService === void 0 ? void 0 : (_businessService$toUp2 = businessService.toUpperCase()) === null || _businessService$toUp2 === void 0 ? void 0 : _businessService$toUp2.includes("RECONNECTION")) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl4 = applicationData.applicationNo) === null || _applicationData$appl4 === void 0 ? void 0 : _applicationData$appl4.includes("RC")) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.reconnectRequest);
53367
+ const hasDirectSendBack = (_actions = actions) === null || _actions === void 0 ? void 0 : _actions.some(e => e.action === "SEND_BACK_TO_CITIZEN_DIRECT");
53368
+ const completelySatisfied = isMutationOrReconnection ? undefined : (approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.isFullySatisfied) !== undefined ? approvalChecklist === null || approvalChecklist === void 0 ? void 0 : approvalChecklist.isFullySatisfied : showApprovalChecklist ? undefined : (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : (_applicationDetails$a6 = _applicationDetails$a5.additionalDetails) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.CompletelySatisfied) !== undefined ? applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a7 = applicationDetails.applicationData) === null || _applicationDetails$a7 === void 0 ? void 0 : (_applicationDetails$a8 = _applicationDetails$a7.additionalDetails) === null || _applicationDetails$a8 === void 0 ? void 0 : _applicationDetails$a8.CompletelySatisfied : applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$addi = applicationData.additionalDetails) === null || _applicationData$addi === void 0 ? void 0 : _applicationData$addi.CompletelySatisfied;
53369
+ if (!isMutationOrReconnection && hasDirectSendBack && completelySatisfied !== undefined) {
53171
53370
  if (completelySatisfied === true) {
53172
- var _actions;
53173
- actions = (_actions = actions) === null || _actions === void 0 ? void 0 : _actions.filter(e => e.action !== "SEND_BACK_TO_CITIZEN");
53174
- } else if (completelySatisfied === false) {
53175
53371
  var _actions2;
53176
- actions = (_actions2 = actions) === null || _actions2 === void 0 ? void 0 : _actions2.filter(e => e.action !== "SEND_BACK_TO_CITIZEN_DIRECT");
53372
+ actions = (_actions2 = actions) === null || _actions2 === void 0 ? void 0 : _actions2.filter(e => e.action !== "SEND_BACK_TO_CITIZEN");
53373
+ } else if (completelySatisfied === false) {
53374
+ var _actions3;
53375
+ actions = (_actions3 = actions) === null || _actions3 === void 0 ? void 0 : _actions3.filter(e => e.action !== "SEND_BACK_TO_CITIZEN_DIRECT");
53177
53376
  }
53178
53377
  }
53378
+ (_actions4 = actions) === null || _actions4 === void 0 ? void 0 : _actions4.forEach(action => {
53379
+ if ((action === null || action === void 0 ? void 0 : action.action) === "SEND_BACK_TO_CITIZEN" && !action.forcedName) {
53380
+ const primaryKey = forcedActionPrefix ? `${forcedActionPrefix}_SEND_BACK_TO_CITIZEN` : `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}_SEND_BACK_TO_CITIZEN`;
53381
+ const translatedPrimary = t(primaryKey);
53382
+ if (translatedPrimary && translatedPrimary !== primaryKey) {
53383
+ action.forcedName = primaryKey;
53384
+ } else {
53385
+ const fallbackKeys = ["WF_EMPLOYEE_NEWWS1_SEND_BACK_TO_CITIZEN", "WF_EMPLOYEE_WS_SEND_BACK_TO_CITIZEN", "WF_SEND_BACK_TO_CITIZEN", "ES_COMMON_SEND_BACK", "SEND_BACK_TO_CITIZEN"];
53386
+ for (const fbKey of fallbackKeys) {
53387
+ const trans = t(fbKey);
53388
+ if (trans && trans !== fbKey) {
53389
+ action.forcedName = fbKey;
53390
+ break;
53391
+ }
53392
+ }
53393
+ }
53394
+ }
53395
+ });
53179
53396
  const closeMenu = () => {
53180
53397
  setDisplayMenu(false);
53181
53398
  };
53182
53399
  Digit.Hooks.useClickOutside(menuRef, closeMenu, displayMenu);
53183
- if ((window.location.href.includes("/obps") || window.location.href.includes("/noc")) && ((_actions3 = actions) === null || _actions3 === void 0 ? void 0 : _actions3.length) == 1 || (_actions4 = actions) !== null && _actions4 !== void 0 && (_actions4$ = _actions4[0]) !== null && _actions4$ !== void 0 && (_actions4$$redirectio = _actions4$.redirectionUrl) !== null && _actions4$$redirectio !== void 0 && _actions4$$redirectio.pathname.includes("/pt/property-details/") && ((_actions5 = actions) === null || _actions5 === void 0 ? void 0 : _actions5.length) == 1) {
53400
+ if ((window.location.href.includes("/obps") || window.location.href.includes("/noc")) && ((_actions5 = actions) === null || _actions5 === void 0 ? void 0 : _actions5.length) == 1 || (_actions6 = actions) !== null && _actions6 !== void 0 && (_actions6$ = _actions6[0]) !== null && _actions6$ !== void 0 && (_actions6$$redirectio = _actions6$.redirectionUrl) !== null && _actions6$$redirectio !== void 0 && _actions6$$redirectio.pathname.includes("/pt/property-details/") && ((_actions7 = actions) === null || _actions7 === void 0 ? void 0 : _actions7.length) == 1) {
53184
53401
  isMenuBotton = false;
53185
53402
  isSingleButton = true;
53186
- } else if (((_actions6 = actions) === null || _actions6 === void 0 ? void 0 : _actions6.length) > 0) {
53403
+ } else if (((_actions8 = actions) === null || _actions8 === void 0 ? void 0 : _actions8.length) > 0) {
53187
53404
  isMenuBotton = true;
53188
53405
  isSingleButton = false;
53189
53406
  }
53190
53407
  const Session = Digit.SessionStorage.get("User");
53191
53408
  const uuid = Session === null || Session === void 0 ? void 0 : (_Session$info = Session.info) === null || _Session$info === void 0 ? void 0 : _Session$info.uuid;
53192
- const modified = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a5 = applicationDetails.applicationData) === null || _applicationDetails$a5 === void 0 ? void 0 : (_applicationDetails$a6 = _applicationDetails$a5.auditDetails) === null || _applicationDetails$a6 === void 0 ? void 0 : _applicationDetails$a6.lastModifiedBy;
53409
+ const modified = applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a9 = applicationDetails.applicationData) === null || _applicationDetails$a9 === void 0 ? void 0 : (_applicationDetails$a0 = _applicationDetails$a9.auditDetails) === null || _applicationDetails$a0 === void 0 ? void 0 : _applicationDetails$a0.lastModifiedBy;
53193
53410
  return /*#__PURE__*/React.createElement(React.Fragment, null, !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && isMenuBotton && !isSingleButton && !isAction && /*#__PURE__*/React.createElement(ActionBar, {
53194
53411
  style: {
53195
53412
  ...ActionBarStyle
@@ -53227,13 +53444,13 @@ function ApplicationDetailsActionBar(_ref) {
53227
53444
  fontSize: "18px"
53228
53445
  },
53229
53446
  className: "submit-bar",
53230
- name: (_actions7 = actions) === null || _actions7 === void 0 ? void 0 : (_actions7$ = _actions7[0]) === null || _actions7$ === void 0 ? void 0 : _actions7$.action,
53231
- value: (_actions8 = actions) === null || _actions8 === void 0 ? void 0 : (_actions8$ = _actions8[0]) === null || _actions8$ === void 0 ? void 0 : _actions8$.action,
53447
+ name: (_actions9 = actions) === null || _actions9 === void 0 ? void 0 : (_actions9$ = _actions9[0]) === null || _actions9$ === void 0 ? void 0 : _actions9$.action,
53448
+ value: (_actions0 = actions) === null || _actions0 === void 0 ? void 0 : (_actions0$ = _actions0[0]) === null || _actions0$ === void 0 ? void 0 : _actions0$.action,
53232
53449
  onClick: e => {
53233
- var _actions9;
53234
- onActionSelect(((_actions9 = actions) === null || _actions9 === void 0 ? void 0 : _actions9[0]) || {});
53450
+ var _actions1;
53451
+ onActionSelect(((_actions1 = actions) === null || _actions1 === void 0 ? void 0 : _actions1[0]) || {});
53235
53452
  }
53236
- }, t(`${forcedActionPrefix || `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}`}_${(_actions0 = actions) === null || _actions0 === void 0 ? void 0 : (_actions0$ = _actions0[0]) === null || _actions0$ === void 0 ? void 0 : _actions0$.action}`))));
53453
+ }, t(`${forcedActionPrefix || `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}`}_${(_actions10 = actions) === null || _actions10 === void 0 ? void 0 : (_actions10$ = _actions10[0]) === null || _actions10$ === void 0 ? void 0 : _actions10$.action}`))));
53237
53454
  }
53238
53455
 
53239
53456
  const Close$f = () => /*#__PURE__*/React.createElement("svg", {
@@ -55254,7 +55471,7 @@ const SearchWater = _ref => {
55254
55471
  config,
55255
55472
  bussinessService: businessServ,
55256
55473
  t,
55257
- shortAddress: true
55474
+ shortAddress: false
55258
55475
  });
55259
55476
  const isMobile = window.Digit.Utils.browser.isMobile();
55260
55477
  if (result !== null && result !== void 0 && result.isLoading && isMobile) {
@@ -56776,21 +56993,23 @@ const ModifyApplication = () => {
56776
56993
  reconnectRequest: false,
56777
56994
  disconnectRequest: false
56778
56995
  };
56779
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
56780
- onError: (error, variables) => {
56781
- setIsEnableLoader(false);
56782
- setShowToast({
56783
- key: "error",
56784
- message: error !== null && error !== void 0 && error.message ? error.message : error
56785
- });
56786
- setTimeout(closeToastOfError, 5000);
56787
- },
56788
- onSuccess: (data, variables) => {
56789
- var _data$SewerageConnect2, _data$SewerageConnect3;
56790
- clearSessionFormData();
56791
- history.push(`/digit-ui/employee/ws/ws-response?applicationNumber1=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : (_data$SewerageConnect3 = _data$SewerageConnect2[0]) === null || _data$SewerageConnect3 === void 0 ? void 0 : _data$SewerageConnect3.applicationNo}`);
56792
- }
56793
- })).then(function () {});
56996
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
56997
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
56998
+ onError: (error, variables) => {
56999
+ setIsEnableLoader(false);
57000
+ setShowToast({
57001
+ key: "error",
57002
+ message: error !== null && error !== void 0 && error.message ? error.message : error
57003
+ });
57004
+ setTimeout(closeToastOfError, 5000);
57005
+ },
57006
+ onSuccess: (data, variables) => {
57007
+ var _data$SewerageConnect2, _data$SewerageConnect3;
57008
+ clearSessionFormData();
57009
+ history.push(`/digit-ui/employee/ws/ws-response?applicationNumber1=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : (_data$SewerageConnect3 = _data$SewerageConnect2[0]) === null || _data$SewerageConnect3 === void 0 ? void 0 : _data$SewerageConnect3.applicationNo}`);
57010
+ }
57011
+ })).then(function () {});
57012
+ });
56794
57013
  });
56795
57014
  } catch (e) {
56796
57015
  return Promise.reject(e);
@@ -56845,21 +57064,23 @@ const ModifyApplication = () => {
56845
57064
  reconnectRequest: false,
56846
57065
  disconnectRequest: false
56847
57066
  };
56848
- waterUpdateMutation(waterConnectionUpdate, {
56849
- onError: (error, variables) => {
56850
- var _error$response5, _error$response5$data, _error$response5$data2, _error$response6, _error$response6$data, _error$response6$data2;
56851
- setIsEnableLoader(false);
56852
- setShowToast({
56853
- key: "error",
56854
- message: error !== null && error !== void 0 && (_error$response5 = error.response) !== null && _error$response5 !== void 0 && (_error$response5$data = _error$response5.data) !== null && _error$response5$data !== void 0 && (_error$response5$data2 = _error$response5$data.Errors) !== null && _error$response5$data2 !== void 0 && _error$response5$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : _error$response6$data2[0].message : error
56855
- });
56856
- setTimeout(closeToastOfError, 5000);
56857
- },
56858
- onSuccess: (data, variables) => {
56859
- var _data$WaterConnection2, _data$WaterConnection3;
56860
- clearSessionFormData();
56861
- history.push(`/digit-ui/employee/ws/ws-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : (_data$WaterConnection3 = _data$WaterConnection2[0]) === null || _data$WaterConnection3 === void 0 ? void 0 : _data$WaterConnection3.applicationNo}`);
56862
- }
57067
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
57068
+ waterUpdateMutation(waterConnectionUpdate, {
57069
+ onError: (error, variables) => {
57070
+ var _error$response5, _error$response5$data, _error$response5$data2, _error$response6, _error$response6$data, _error$response6$data2;
57071
+ setIsEnableLoader(false);
57072
+ setShowToast({
57073
+ key: "error",
57074
+ message: error !== null && error !== void 0 && (_error$response5 = error.response) !== null && _error$response5 !== void 0 && (_error$response5$data = _error$response5.data) !== null && _error$response5$data !== void 0 && (_error$response5$data2 = _error$response5$data.Errors) !== null && _error$response5$data2 !== void 0 && _error$response5$data2[0].message ? error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : _error$response6$data2[0].message : error
57075
+ });
57076
+ setTimeout(closeToastOfError, 5000);
57077
+ },
57078
+ onSuccess: (data, variables) => {
57079
+ var _data$WaterConnection2, _data$WaterConnection3;
57080
+ clearSessionFormData();
57081
+ history.push(`/digit-ui/employee/ws/ws-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : (_data$WaterConnection3 = _data$WaterConnection2[0]) === null || _data$WaterConnection3 === void 0 ? void 0 : _data$WaterConnection3.applicationNo}`);
57082
+ }
57083
+ });
56863
57084
  });
56864
57085
  });
56865
57086
  } catch (e) {
@@ -59885,94 +60106,103 @@ const MutationApplication = () => {
59885
60106
  message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : (_error$response2$data3 = _error$response2$data2[0]) === null || _error$response2$data3 === void 0 ? void 0 : _error$response2$data3.message) || "Failed to submit application"
59886
60107
  });
59887
60108
  },
59888
- onSuccess: data => {
59889
- var _data$response, _data$response$data;
59890
- if (data instanceof Error || data !== null && data !== void 0 && data.isAxiosError || data !== null && data !== void 0 && (_data$response = data.response) !== null && _data$response !== void 0 && (_data$response$data = _data$response.data) !== null && _data$response$data !== void 0 && _data$response$data.Errors) {
59891
- var _data$response2, _data$response2$data, _apiErrors$2;
59892
- setIsSubmitting(false);
59893
- const apiErrors = data === null || data === void 0 ? void 0 : (_data$response2 = data.response) === null || _data$response2 === void 0 ? void 0 : (_data$response2$data = _data$response2.data) === null || _data$response2$data === void 0 ? void 0 : _data$response2$data.Errors;
59894
- const errorMessage = (apiErrors === null || apiErrors === void 0 ? void 0 : (_apiErrors$2 = apiErrors[0]) === null || _apiErrors$2 === void 0 ? void 0 : _apiErrors$2.message) || (data === null || data === void 0 ? void 0 : data.message) || "Failed to submit application";
59895
- setShowToast({
59896
- key: "error",
59897
- message: errorMessage
59898
- });
59899
- return;
59900
- }
59901
- if (data !== null && data !== void 0 && data.Errors && data.Errors.length > 0) {
59902
- setIsSubmitting(false);
59903
- setShowToast({
59904
- key: "error",
59905
- message: data.Errors[0].message || "Failed to submit application"
59906
- });
59907
- } else {
59908
- var _data$WaterConnection, _data$SewerageConnect, _updatePayload2, _updatePayload2$docum, _Digit2, _Digit2$Customization, _Digit2$Customization2;
59909
- const updateMutation = resolvedServiceType === "WATER" ? waterUpdateMutation : sewerageUpdateMutation;
59910
- const createdConnection = resolvedServiceType === "WATER" ? data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnection) === null || _data$WaterConnection === void 0 ? void 0 : _data$WaterConnection[0] : data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnections) === null || _data$SewerageConnect === void 0 ? void 0 : _data$SewerageConnect[0];
59911
- let updatePayload = {
59912
- ...createdConnection,
59913
- dateEffectiveFrom: (createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.dateEffectiveFrom) || Date.now(),
59914
- processInstance: {
59915
- ...(createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.processInstance),
59916
- action: "APPLY_MUTATION"
59917
- }
59918
- };
59919
- const combinedExistingDocs = [...existingDocs, ...((createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.documents) || [])];
59920
- if (((_updatePayload2 = updatePayload) === null || _updatePayload2 === void 0 ? void 0 : (_updatePayload2$docum = _updatePayload2.documents) === null || _updatePayload2$docum === void 0 ? void 0 : _updatePayload2$docum.length) > 0 && combinedExistingDocs.length > 0) {
59921
- updatePayload.documents = mapExistingDocIdsToPayload(updatePayload.documents, combinedExistingDocs);
59922
- }
59923
- if ((_Digit2 = Digit) !== null && _Digit2 !== void 0 && (_Digit2$Customization = _Digit2.Customizations) !== null && _Digit2$Customization !== void 0 && (_Digit2$Customization2 = _Digit2$Customization.WS) !== null && _Digit2$Customization2 !== void 0 && _Digit2$Customization2.customiseUpdatePayloadOfWS) {
59924
- updatePayload = Digit.Customizations.WS.customiseUpdatePayloadOfWS(createdConnection, updatePayload, resolvedServiceType);
60109
+ onSuccess: function (data) {
60110
+ try {
60111
+ var _data$response, _data$response$data;
60112
+ if (data instanceof Error || data !== null && data !== void 0 && data.isAxiosError || data !== null && data !== void 0 && (_data$response = data.response) !== null && _data$response !== void 0 && (_data$response$data = _data$response.data) !== null && _data$response$data !== void 0 && _data$response$data.Errors) {
60113
+ var _data$response2, _data$response2$data, _apiErrors$2;
60114
+ setIsSubmitting(false);
60115
+ const apiErrors = data === null || data === void 0 ? void 0 : (_data$response2 = data.response) === null || _data$response2 === void 0 ? void 0 : (_data$response2$data = _data$response2.data) === null || _data$response2$data === void 0 ? void 0 : _data$response2$data.Errors;
60116
+ const errorMessage = (apiErrors === null || apiErrors === void 0 ? void 0 : (_apiErrors$2 = apiErrors[0]) === null || _apiErrors$2 === void 0 ? void 0 : _apiErrors$2.message) || (data === null || data === void 0 ? void 0 : data.message) || "Failed to submit application";
60117
+ setShowToast({
60118
+ key: "error",
60119
+ message: errorMessage
60120
+ });
60121
+ return Promise.resolve();
59925
60122
  }
59926
- let reqDetailsUpdate = resolvedServiceType === "WATER" ? {
59927
- WaterConnection: updatePayload,
59928
- reconnectRequest: false,
59929
- disconnectRequest: false
59930
- } : {
59931
- SewerageConnection: updatePayload,
59932
- reconnectRequest: false,
59933
- disconnectRequest: false
59934
- };
59935
- updateMutation(reqDetailsUpdate, {
59936
- onError: error => {
59937
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
60123
+ const _temp2 = function () {
60124
+ if (data !== null && data !== void 0 && data.Errors && data.Errors.length > 0) {
59938
60125
  setIsSubmitting(false);
59939
60126
  setShowToast({
59940
60127
  key: "error",
59941
- message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : (_error$response3$data3 = _error$response3$data2[0]) === null || _error$response3$data3 === void 0 ? void 0 : _error$response3$data3.message) || "Failed to update workflow"
60128
+ message: data.Errors[0].message || "Failed to submit application"
59942
60129
  });
59943
- },
59944
- onSuccess: updateData => {
59945
- var _updateData$response4, _updateData$response5, _updateData$WaterConn3, _updateData$WaterConn4, _updateData$SewerageC3, _updateData$SewerageC4;
59946
- setIsSubmitting(false);
59947
- if (updateData instanceof Error || updateData !== null && updateData !== void 0 && updateData.isAxiosError || updateData !== null && updateData !== void 0 && (_updateData$response4 = updateData.response) !== null && _updateData$response4 !== void 0 && (_updateData$response5 = _updateData$response4.data) !== null && _updateData$response5 !== void 0 && _updateData$response5.Errors) {
59948
- var _updateData$response6, _updateData$response7, _apiErrors$3;
59949
- const apiErrors = updateData === null || updateData === void 0 ? void 0 : (_updateData$response6 = updateData.response) === null || _updateData$response6 === void 0 ? void 0 : (_updateData$response7 = _updateData$response6.data) === null || _updateData$response7 === void 0 ? void 0 : _updateData$response7.Errors;
59950
- const errorMessage = (apiErrors === null || apiErrors === void 0 ? void 0 : (_apiErrors$3 = apiErrors[0]) === null || _apiErrors$3 === void 0 ? void 0 : _apiErrors$3.message) || (updateData === null || updateData === void 0 ? void 0 : updateData.message) || "Failed to update workflow";
59951
- setShowToast({
59952
- key: "error",
59953
- message: errorMessage
59954
- });
59955
- return;
60130
+ } else {
60131
+ var _data$WaterConnection, _data$SewerageConnect, _updatePayload2, _updatePayload2$docum, _Digit2, _Digit2$Customization, _Digit2$Customization2;
60132
+ const updateMutation = resolvedServiceType === "WATER" ? waterUpdateMutation : sewerageUpdateMutation;
60133
+ const createdConnection = resolvedServiceType === "WATER" ? data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnection) === null || _data$WaterConnection === void 0 ? void 0 : _data$WaterConnection[0] : data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnections) === null || _data$SewerageConnect === void 0 ? void 0 : _data$SewerageConnect[0];
60134
+ let updatePayload = {
60135
+ ...createdConnection,
60136
+ dateEffectiveFrom: (createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.dateEffectiveFrom) || Date.now(),
60137
+ processInstance: {
60138
+ ...(createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.processInstance),
60139
+ action: "APPLY_MUTATION"
60140
+ }
60141
+ };
60142
+ const combinedExistingDocs = [...existingDocs, ...((createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.documents) || [])];
60143
+ if (((_updatePayload2 = updatePayload) === null || _updatePayload2 === void 0 ? void 0 : (_updatePayload2$docum = _updatePayload2.documents) === null || _updatePayload2$docum === void 0 ? void 0 : _updatePayload2$docum.length) > 0 && combinedExistingDocs.length > 0) {
60144
+ updatePayload.documents = mapExistingDocIdsToPayload(updatePayload.documents, combinedExistingDocs);
59956
60145
  }
59957
- if (updateData !== null && updateData !== void 0 && updateData.Errors && updateData.Errors.length > 0) {
59958
- setShowToast({
59959
- key: "error",
59960
- message: updateData.Errors[0].message || "Failed to update workflow"
59961
- });
59962
- return;
60146
+ if ((_Digit2 = Digit) !== null && _Digit2 !== void 0 && (_Digit2$Customization = _Digit2.Customizations) !== null && _Digit2$Customization !== void 0 && (_Digit2$Customization2 = _Digit2$Customization.WS) !== null && _Digit2$Customization2 !== void 0 && _Digit2$Customization2.customiseUpdatePayloadOfWS) {
60147
+ updatePayload = Digit.Customizations.WS.customiseUpdatePayloadOfWS(createdConnection, updatePayload, resolvedServiceType);
59963
60148
  }
59964
- clearSessionFormData();
59965
- clearFormData();
59966
- clearCompletedSteps();
59967
- clearAuthKNumber();
59968
- clearAuthMobileNumber();
59969
- clearAuthServiceType();
59970
- clearAuthActiveConnection();
59971
- const newAppNo = resolvedServiceType === "WATER" ? updateData === null || updateData === void 0 ? void 0 : (_updateData$WaterConn3 = updateData.WaterConnection) === null || _updateData$WaterConn3 === void 0 ? void 0 : (_updateData$WaterConn4 = _updateData$WaterConn3[0]) === null || _updateData$WaterConn4 === void 0 ? void 0 : _updateData$WaterConn4.applicationNo : updateData === null || updateData === void 0 ? void 0 : (_updateData$SewerageC3 = updateData.SewerageConnections) === null || _updateData$SewerageC3 === void 0 ? void 0 : (_updateData$SewerageC4 = _updateData$SewerageC3[0]) === null || _updateData$SewerageC4 === void 0 ? void 0 : _updateData$SewerageC4.applicationNo;
59972
- setGeneratedAppNo(newAppNo);
59973
- history.push(`${path}/submission`);
60149
+ let reqDetailsUpdate = resolvedServiceType === "WATER" ? {
60150
+ WaterConnection: updatePayload,
60151
+ reconnectRequest: false,
60152
+ disconnectRequest: false
60153
+ } : {
60154
+ SewerageConnection: updatePayload,
60155
+ reconnectRequest: false,
60156
+ disconnectRequest: false
60157
+ };
60158
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
60159
+ updateMutation(reqDetailsUpdate, {
60160
+ onError: error => {
60161
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
60162
+ setIsSubmitting(false);
60163
+ setShowToast({
60164
+ key: "error",
60165
+ message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : (_error$response3$data3 = _error$response3$data2[0]) === null || _error$response3$data3 === void 0 ? void 0 : _error$response3$data3.message) || "Failed to update workflow"
60166
+ });
60167
+ },
60168
+ onSuccess: updateData => {
60169
+ var _updateData$response4, _updateData$response5, _updateData$WaterConn3, _updateData$WaterConn4, _updateData$SewerageC3, _updateData$SewerageC4;
60170
+ setIsSubmitting(false);
60171
+ if (updateData instanceof Error || updateData !== null && updateData !== void 0 && updateData.isAxiosError || updateData !== null && updateData !== void 0 && (_updateData$response4 = updateData.response) !== null && _updateData$response4 !== void 0 && (_updateData$response5 = _updateData$response4.data) !== null && _updateData$response5 !== void 0 && _updateData$response5.Errors) {
60172
+ var _updateData$response6, _updateData$response7, _apiErrors$3;
60173
+ const apiErrors = updateData === null || updateData === void 0 ? void 0 : (_updateData$response6 = updateData.response) === null || _updateData$response6 === void 0 ? void 0 : (_updateData$response7 = _updateData$response6.data) === null || _updateData$response7 === void 0 ? void 0 : _updateData$response7.Errors;
60174
+ const errorMessage = (apiErrors === null || apiErrors === void 0 ? void 0 : (_apiErrors$3 = apiErrors[0]) === null || _apiErrors$3 === void 0 ? void 0 : _apiErrors$3.message) || (updateData === null || updateData === void 0 ? void 0 : updateData.message) || "Failed to update workflow";
60175
+ setShowToast({
60176
+ key: "error",
60177
+ message: errorMessage
60178
+ });
60179
+ return;
60180
+ }
60181
+ if (updateData !== null && updateData !== void 0 && updateData.Errors && updateData.Errors.length > 0) {
60182
+ setShowToast({
60183
+ key: "error",
60184
+ message: updateData.Errors[0].message || "Failed to update workflow"
60185
+ });
60186
+ return;
60187
+ }
60188
+ clearSessionFormData();
60189
+ clearFormData();
60190
+ clearCompletedSteps();
60191
+ clearAuthKNumber();
60192
+ clearAuthMobileNumber();
60193
+ clearAuthServiceType();
60194
+ clearAuthActiveConnection();
60195
+ const newAppNo = resolvedServiceType === "WATER" ? updateData === null || updateData === void 0 ? void 0 : (_updateData$WaterConn3 = updateData.WaterConnection) === null || _updateData$WaterConn3 === void 0 ? void 0 : (_updateData$WaterConn4 = _updateData$WaterConn3[0]) === null || _updateData$WaterConn4 === void 0 ? void 0 : _updateData$WaterConn4.applicationNo : updateData === null || updateData === void 0 ? void 0 : (_updateData$SewerageC3 = updateData.SewerageConnections) === null || _updateData$SewerageC3 === void 0 ? void 0 : (_updateData$SewerageC4 = _updateData$SewerageC3[0]) === null || _updateData$SewerageC4 === void 0 ? void 0 : _updateData$SewerageC4.applicationNo;
60196
+ setGeneratedAppNo(newAppNo);
60197
+ history.push(`${path}/submission`);
60198
+ }
60199
+ });
60200
+ });
59974
60201
  }
59975
- });
60202
+ }();
60203
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
60204
+ } catch (e) {
60205
+ return Promise.reject(e);
59976
60206
  }
59977
60207
  }
59978
60208
  })).then(function () {});
@@ -61755,22 +61985,55 @@ const SearchWaterConnectionIntegrated = _ref => {
61755
61985
  Header: t("WS_COMMON_TABLE_COL_ADDRESS"),
61756
61986
  disableSortBy: true,
61757
61987
  Cell: _ref7 => {
61758
- var _row$original0;
61988
+ var _row$original0, _row$original1, _row$original10, _property$owners, _property$owners$, _row$original11;
61759
61989
  let {
61760
61990
  row
61761
61991
  } = _ref7;
61762
- return GetCell(`${((_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0["address"]) || "NA"}`);
61992
+ const property = (_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0.property;
61993
+ 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);
61994
+ const formattedAddress = formatPropertyAddress(propertyAddress, t) || ((_row$original10 = row.original) === null || _row$original10 === void 0 ? void 0 : _row$original10["address"]) || t("CS_NA");
61995
+ 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;
61996
+ 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);
61997
+ if (ownerUuid && propId) {
61998
+ var _String;
61999
+ const privacy = {
62000
+ uuid: ownerUuid,
62001
+ fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
62002
+ model: "Property",
62003
+ hide: !propertyAddress,
62004
+ showValue: true,
62005
+ loadData: {
62006
+ serviceName: "/property-services/property/_search",
62007
+ requestBody: {},
62008
+ requestParam: {
62009
+ tenantId: tenantId,
62010
+ propertyIds: propId
62011
+ },
62012
+ jsonPath: "Properties[0].address.street",
62013
+ isArray: false,
62014
+ d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}), t)
62015
+ }
62016
+ };
62017
+ return /*#__PURE__*/React.createElement("span", {
62018
+ className: "cell-text"
62019
+ }, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
62020
+ value: formattedAddress,
62021
+ iseyevisible: (_String = String(formattedAddress)) === null || _String === void 0 ? void 0 : _String.includes("*"),
62022
+ privacy: privacy
62023
+ }));
62024
+ }
62025
+ return GetCell(formattedAddress);
61763
62026
  }
61764
62027
  }, {
61765
62028
  Header: t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL"),
61766
62029
  disableSortBy: true,
61767
62030
  Cell: _ref8 => {
61768
- var _row$original1, _row$original1$status, _row$original10, _row$original11;
62031
+ var _row$original12, _row$original12$statu, _row$original13, _row$original14;
61769
62032
  let {
61770
62033
  row
61771
62034
  } = _ref8;
61772
- const status = ((_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : (_row$original1$status = _row$original1["status"]) === null || _row$original1$status === void 0 ? void 0 : _row$original1$status.toUpperCase()) || "";
61773
- const dueDate = ((_row$original10 = row.original) === null || _row$original10 === void 0 ? void 0 : _row$original10.dueDate) === "NA" ? t("WS_NA") : convertEpochToDate((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11.dueDate);
62035
+ 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()) || "";
62036
+ 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);
61774
62037
  return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
61775
62038
  }
61776
62039
  }], []);
@@ -61818,6 +62081,7 @@ const SearchWaterConnectionIntegrated = _ref => {
61818
62081
  pageSizeLimit: getValues("limit"),
61819
62082
  onSort: onSort,
61820
62083
  disableSort: false,
62084
+ autoSort: false,
61821
62085
  sortParams: [{
61822
62086
  id: getValues("sortBy"),
61823
62087
  desc: getValues("sortOrder") === "DESC" ? true : false
@@ -62852,66 +63116,70 @@ const OLDApplication = () => {
62852
63116
  disconnectRequest: false,
62853
63117
  reconnectRequest: false
62854
63118
  };
62855
- waterUpdateMutation(waterConnectionUpdate, {
62856
- onError: error => {
62857
- var _error$response2, _error$response2$data, _error$response2$data2, _error$response2$data3;
62858
- setIsEnableLoader(false);
62859
- setShowToast({
62860
- key: "error",
62861
- message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : (_error$response2$data3 = _error$response2$data2[0]) === null || _error$response2$data3 === void 0 ? void 0 : _error$response2$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
62862
- });
62863
- },
62864
- onSuccess: function (waterUpdateData) {
62865
- try {
62866
- return Promise.resolve(sewerageMutation(sewerageConnection, {
62867
- onError: error => {
62868
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
62869
- setIsEnableLoader(false);
62870
- setShowToast({
62871
- key: "error",
62872
- message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : (_error$response3$data3 = _error$response3$data2[0]) === null || _error$response3$data3 === void 0 ? void 0 : _error$response3$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
62873
- });
62874
- },
62875
- onSuccess: function (sewerageData) {
62876
- try {
62877
- var _sewerageData$Sewerag;
62878
- return Promise.resolve(updatePayloadOfWS(sewerageData === null || sewerageData === void 0 ? void 0 : (_sewerageData$Sewerag = sewerageData.SewerageConnections) === null || _sewerageData$Sewerag === void 0 ? void 0 : _sewerageData$Sewerag[0], "SEWERAGE")).then(function (response) {
62879
- let sewerageConnectionUpdate = {
62880
- SewerageConnection: response,
62881
- disconnectRequest: false,
62882
- reconnectRequest: false
62883
- };
62884
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
62885
- onError: error => {
62886
- var _error$response4, _error$response4$data, _error$response4$data2, _error$response4$data3;
62887
- setIsEnableLoader(false);
62888
- setShowToast({
62889
- key: "error",
62890
- message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : (_error$response4$data3 = _error$response4$data2[0]) === null || _error$response4$data3 === void 0 ? void 0 : _error$response4$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
62891
- });
62892
- },
62893
- onSuccess: function (sewerageUpdateData) {
62894
- try {
62895
- var _waterUpdateData$Wate, _waterUpdateData$Wate2, _sewerageUpdateData$S, _sewerageUpdateData$S2;
62896
- clearSessionFormData();
62897
- sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
62898
- history.push(`${basePath}/ws-response?applicationNumber=${waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : (_waterUpdateData$Wate2 = _waterUpdateData$Wate[0]) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : _waterUpdateData$Wate2.applicationNo}&applicationNumber1=${sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : (_sewerageUpdateData$S2 = _sewerageUpdateData$S[0]) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : _sewerageUpdateData$S2.applicationNo}`);
62899
- return Promise.resolve();
62900
- } catch (e) {
62901
- return Promise.reject(e);
62902
- }
62903
- }
62904
- })).then(function () {});
63119
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
63120
+ waterUpdateMutation(waterConnectionUpdate, {
63121
+ onError: error => {
63122
+ var _error$response2, _error$response2$data, _error$response2$data2, _error$response2$data3;
63123
+ setIsEnableLoader(false);
63124
+ setShowToast({
63125
+ key: "error",
63126
+ message: (error === null || error === void 0 ? void 0 : (_error$response2 = error.response) === null || _error$response2 === void 0 ? void 0 : (_error$response2$data = _error$response2.data) === null || _error$response2$data === void 0 ? void 0 : (_error$response2$data2 = _error$response2$data.Errors) === null || _error$response2$data2 === void 0 ? void 0 : (_error$response2$data3 = _error$response2$data2[0]) === null || _error$response2$data3 === void 0 ? void 0 : _error$response2$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
63127
+ });
63128
+ },
63129
+ onSuccess: function (waterUpdateData) {
63130
+ try {
63131
+ return Promise.resolve(sewerageMutation(sewerageConnection, {
63132
+ onError: error => {
63133
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
63134
+ setIsEnableLoader(false);
63135
+ setShowToast({
63136
+ key: "error",
63137
+ message: (error === null || error === void 0 ? void 0 : (_error$response3 = error.response) === null || _error$response3 === void 0 ? void 0 : (_error$response3$data = _error$response3.data) === null || _error$response3$data === void 0 ? void 0 : (_error$response3$data2 = _error$response3$data.Errors) === null || _error$response3$data2 === void 0 ? void 0 : (_error$response3$data3 = _error$response3$data2[0]) === null || _error$response3$data3 === void 0 ? void 0 : _error$response3$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
62905
63138
  });
62906
- } catch (e) {
62907
- return Promise.reject(e);
63139
+ },
63140
+ onSuccess: function (sewerageData) {
63141
+ try {
63142
+ var _sewerageData$Sewerag;
63143
+ return Promise.resolve(updatePayloadOfWS(sewerageData === null || sewerageData === void 0 ? void 0 : (_sewerageData$Sewerag = sewerageData.SewerageConnections) === null || _sewerageData$Sewerag === void 0 ? void 0 : _sewerageData$Sewerag[0], "SEWERAGE")).then(function (response) {
63144
+ let sewerageConnectionUpdate = {
63145
+ SewerageConnection: response,
63146
+ disconnectRequest: false,
63147
+ reconnectRequest: false
63148
+ };
63149
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
63150
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
63151
+ onError: error => {
63152
+ var _error$response4, _error$response4$data, _error$response4$data2, _error$response4$data3;
63153
+ setIsEnableLoader(false);
63154
+ setShowToast({
63155
+ key: "error",
63156
+ message: (error === null || error === void 0 ? void 0 : (_error$response4 = error.response) === null || _error$response4 === void 0 ? void 0 : (_error$response4$data = _error$response4.data) === null || _error$response4$data === void 0 ? void 0 : (_error$response4$data2 = _error$response4$data.Errors) === null || _error$response4$data2 === void 0 ? void 0 : (_error$response4$data3 = _error$response4$data2[0]) === null || _error$response4$data3 === void 0 ? void 0 : _error$response4$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
63157
+ });
63158
+ },
63159
+ onSuccess: function (sewerageUpdateData) {
63160
+ try {
63161
+ var _waterUpdateData$Wate, _waterUpdateData$Wate2, _sewerageUpdateData$S, _sewerageUpdateData$S2;
63162
+ clearSessionFormData();
63163
+ sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
63164
+ history.push(`${basePath}/ws-response?applicationNumber=${waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : (_waterUpdateData$Wate2 = _waterUpdateData$Wate[0]) === null || _waterUpdateData$Wate2 === void 0 ? void 0 : _waterUpdateData$Wate2.applicationNo}&applicationNumber1=${sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : (_sewerageUpdateData$S2 = _sewerageUpdateData$S[0]) === null || _sewerageUpdateData$S2 === void 0 ? void 0 : _sewerageUpdateData$S2.applicationNo}`);
63165
+ return Promise.resolve();
63166
+ } catch (e) {
63167
+ return Promise.reject(e);
63168
+ }
63169
+ }
63170
+ })).then(function () {});
63171
+ });
63172
+ });
63173
+ } catch (e) {
63174
+ return Promise.reject(e);
63175
+ }
62908
63176
  }
62909
- }
62910
- })).then(function () {});
62911
- } catch (e) {
62912
- return Promise.reject(e);
63177
+ })).then(function () {});
63178
+ } catch (e) {
63179
+ return Promise.reject(e);
63180
+ }
62913
63181
  }
62914
- }
63182
+ });
62915
63183
  });
62916
63184
  });
62917
63185
  } catch (e) {
@@ -62945,22 +63213,24 @@ const OLDApplication = () => {
62945
63213
  let waterConnectionUpdate = {
62946
63214
  WaterConnection: response
62947
63215
  };
62948
- waterUpdateMutation(waterConnectionUpdate, {
62949
- onError: error => {
62950
- var _error$response6, _error$response6$data, _error$response6$data2, _error$response6$data3;
62951
- setIsEnableLoader(false);
62952
- console.error("[WS] waterUpdateMutation error", error);
62953
- setShowToast({
62954
- key: "error",
62955
- message: (error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : (_error$response6$data3 = _error$response6$data2[0]) === null || _error$response6$data3 === void 0 ? void 0 : _error$response6$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
62956
- });
62957
- },
62958
- onSuccess: data => {
62959
- var _data$WaterConnection2, _data$WaterConnection3;
62960
- clearSessionFormData();
62961
- sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
62962
- history.push(`${basePath}/ws-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : (_data$WaterConnection3 = _data$WaterConnection2[0]) === null || _data$WaterConnection3 === void 0 ? void 0 : _data$WaterConnection3.applicationNo}`);
62963
- }
63216
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
63217
+ waterUpdateMutation(waterConnectionUpdate, {
63218
+ onError: error => {
63219
+ var _error$response6, _error$response6$data, _error$response6$data2, _error$response6$data3;
63220
+ setIsEnableLoader(false);
63221
+ console.error("[WS] waterUpdateMutation error", error);
63222
+ setShowToast({
63223
+ key: "error",
63224
+ message: (error === null || error === void 0 ? void 0 : (_error$response6 = error.response) === null || _error$response6 === void 0 ? void 0 : (_error$response6$data = _error$response6.data) === null || _error$response6$data === void 0 ? void 0 : (_error$response6$data2 = _error$response6$data.Errors) === null || _error$response6$data2 === void 0 ? void 0 : (_error$response6$data3 = _error$response6$data2[0]) === null || _error$response6$data3 === void 0 ? void 0 : _error$response6$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
63225
+ });
63226
+ },
63227
+ onSuccess: data => {
63228
+ var _data$WaterConnection2, _data$WaterConnection3;
63229
+ clearSessionFormData();
63230
+ sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
63231
+ history.push(`${basePath}/ws-response?applicationNumber=${data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : (_data$WaterConnection3 = _data$WaterConnection2[0]) === null || _data$WaterConnection3 === void 0 ? void 0 : _data$WaterConnection3.applicationNo}`);
63232
+ }
63233
+ });
62964
63234
  });
62965
63235
  });
62966
63236
  } catch (e) {
@@ -62994,23 +63264,25 @@ const OLDApplication = () => {
62994
63264
  let sewerageConnectionUpdate = {
62995
63265
  SewerageConnection: response
62996
63266
  };
62997
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
62998
- onError: error => {
62999
- var _error$response8, _error$response8$data, _error$response8$data2, _error$response8$data3;
63000
- setIsEnableLoader(false);
63001
- console.error("[WS] sewerageUpdateMutation error", error);
63002
- setShowToast({
63003
- key: "error",
63004
- message: (error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : (_error$response8$data3 = _error$response8$data2[0]) === null || _error$response8$data3 === void 0 ? void 0 : _error$response8$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
63005
- });
63006
- },
63007
- onSuccess: data => {
63008
- var _data$SewerageConnect2, _data$SewerageConnect3;
63009
- clearSessionFormData();
63010
- sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
63011
- history.push(`${basePath}/ws-response?applicationNumber1=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : (_data$SewerageConnect3 = _data$SewerageConnect2[0]) === null || _data$SewerageConnect3 === void 0 ? void 0 : _data$SewerageConnect3.applicationNo}`);
63012
- }
63013
- })).then(function () {});
63267
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
63268
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
63269
+ onError: error => {
63270
+ var _error$response8, _error$response8$data, _error$response8$data2, _error$response8$data3;
63271
+ setIsEnableLoader(false);
63272
+ console.error("[WS] sewerageUpdateMutation error", error);
63273
+ setShowToast({
63274
+ key: "error",
63275
+ message: (error === null || error === void 0 ? void 0 : (_error$response8 = error.response) === null || _error$response8 === void 0 ? void 0 : (_error$response8$data = _error$response8.data) === null || _error$response8$data === void 0 ? void 0 : (_error$response8$data2 = _error$response8$data.Errors) === null || _error$response8$data2 === void 0 ? void 0 : (_error$response8$data3 = _error$response8$data2[0]) === null || _error$response8$data3 === void 0 ? void 0 : _error$response8$data3.message) || (error === null || error === void 0 ? void 0 : error.message) || "ERR_UNKNOWN"
63276
+ });
63277
+ },
63278
+ onSuccess: data => {
63279
+ var _data$SewerageConnect2, _data$SewerageConnect3;
63280
+ clearSessionFormData();
63281
+ sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
63282
+ history.push(`${basePath}/ws-response?applicationNumber1=${data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : (_data$SewerageConnect3 = _data$SewerageConnect2[0]) === null || _data$SewerageConnect3 === void 0 ? void 0 : _data$SewerageConnect3.applicationNo}`);
63283
+ }
63284
+ })).then(function () {});
63285
+ });
63014
63286
  });
63015
63287
  } catch (e) {
63016
63288
  return Promise.reject(e);