@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.
package/dist/index.js CHANGED
@@ -389,6 +389,13 @@ const getAddress = (address, t) => {
389
389
  var _address$locality, _address$locality2, _address$city;
390
390
  return `${address !== null && address !== void 0 && address.doorNo ? `${address === null || address === void 0 ? void 0 : address.doorNo}, ` : ""}${address !== null && address !== void 0 && address.street ? `${address === null || address === void 0 ? void 0 : address.street}, ` : ""}${address !== null && address !== void 0 && address.landmark ? `${address === null || address === void 0 ? void 0 : address.landmark}, ` : ""}${address !== null && address !== void 0 && (_address$locality = address.locality) !== null && _address$locality !== void 0 && _address$locality.code ? t(`TENANTS_MOHALLA_${address === null || address === void 0 ? void 0 : (_address$locality2 = address.locality) === null || _address$locality2 === void 0 ? void 0 : _address$locality2.code}`) : ""}${address !== null && address !== void 0 && (_address$city = address.city) !== null && _address$city !== void 0 && _address$city.code || address !== null && address !== void 0 && address.city ? `, ${t((address === null || address === void 0 ? void 0 : address.city.code) || (address === null || address === void 0 ? void 0 : address.city))}` : ""}${address !== null && address !== void 0 && address.pincode ? `, ${address.pincode}` : " "}`;
391
391
  };
392
+ const formatPropertyAddress = (address, t) => {
393
+ var _Digit2, _Digit2$Utils, _Digit2$Utils$pt;
394
+ if ((_Digit2 = Digit) !== null && _Digit2 !== void 0 && (_Digit2$Utils = _Digit2.Utils) !== null && _Digit2$Utils !== void 0 && (_Digit2$Utils$pt = _Digit2$Utils.pt) !== null && _Digit2$Utils$pt !== void 0 && _Digit2$Utils$pt.formatPropertyAddress) {
395
+ return Digit.Utils.pt.formatPropertyAddress(address, t) || getAddress(address, t);
396
+ }
397
+ return getAddress(address, t);
398
+ };
392
399
  const convertDateToEpoch = function (dateString, dayStartOrEnd) {
393
400
  if (dayStartOrEnd === void 0) {
394
401
  dayStartOrEnd = "dayend";
@@ -441,12 +448,11 @@ const getPattern = type => {
441
448
  case "WSOnlyNumbers":
442
449
  return /^[0-9]*$/i;
443
450
  case "Name":
444
- case "Name":
445
- return /^[^{0-9}^\$\"<>?\\~!@#$%^()+={}\[\]*,/_:;]{1,50}$/i;
451
+ return /^[a-zA-Z\s]{1,50}$/;
446
452
  case "MobileNo":
447
- return /^[6789][0-9]{9}$/i;
453
+ return /^[6-9][0-9]{9}$/;
448
454
  case "MobileNoWithPrivacy":
449
- return /^[6789][*]{7}[0-9]{2}|[6789][0-9]{9}$/i;
455
+ return /^([6-9][*]{7}[0-9]{2}|[6-9][0-9]{9})$/;
450
456
  case "Amount":
451
457
  return /^[0-9]{0,8}$/i;
452
458
  case "NonZeroAmount":
@@ -549,7 +555,7 @@ const getFiles = function (filesArray, tenant) {
549
555
  };
550
556
  const createPayloadOfWS = function (data) {
551
557
  try {
552
- var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$waterConnection, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _connectionDetailsObj, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj2, _data$applicationSele8, _useDetailsObject$cat, _data$applicationSele9, _data$applicationSele0, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$applicationSele25, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
558
+ var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$waterConnection, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _connectionDetailsObj, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj2, _data$applicationSele8, _useDetailsObject$cat, _data$applicationSele9, _data$applicationSele0, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$applicationSele25, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
553
559
  const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
554
560
  const isCitizen = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.type) === "CITIZEN" || (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$roles = userInfo.roles) === null || _userInfo$roles === void 0 ? void 0 : _userInfo$roles.some(role => role.code === "CITIZEN"));
555
561
  data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : (_data$cpt$details$own = _data$cpt$details.owners) === null || _data$cpt$details$own === void 0 ? void 0 : _data$cpt$details$own.forEach(owner => {
@@ -725,7 +731,7 @@ const createPayloadOfWS = function (data) {
725
731
  delete payload.additionalDetails.proposedWaterClosets;
726
732
  sessionStorage.setItem("WS_DOCUMENTS_INOF", JSON.stringify(allDocuments));
727
733
  sessionStorage.setItem("WS_PROPERTY_INOF", JSON.stringify((data === null || data === void 0 ? void 0 : (_data$cpt18 = data.cpt) === null || _data$cpt18 === void 0 ? void 0 : _data$cpt18.details) || {}));
728
- payload = (_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;
734
+ payload = (_Digit3 = Digit) !== null && _Digit3 !== void 0 && (_Digit3$Customization = _Digit3.Customizations) !== null && _Digit3$Customization !== void 0 && (_Digit3$Customization2 = _Digit3$Customization.WS) !== null && _Digit3$Customization2 !== void 0 && _Digit3$Customization2.customiseCreatePayloadOfWS ? (_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$Customization = _Digit4.Customizations) === null || _Digit4$Customization === void 0 ? void 0 : (_Digit4$Customization2 = _Digit4$Customization.WS) === null || _Digit4$Customization2 === void 0 ? void 0 : _Digit4$Customization2.customiseCreatePayloadOfWS(data, payload) : payload;
729
735
  return Promise.resolve(payload);
730
736
  } catch (e) {
731
737
  return Promise.reject(e);
@@ -733,7 +739,7 @@ const createPayloadOfWS = function (data) {
733
739
  };
734
740
  const updatePayloadOfWS = function (data, type) {
735
741
  try {
736
- var _data$additionalDetai, _data$additionalDetai2, _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
742
+ var _data$additionalDetai, _data$additionalDetai2, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
737
743
  let payload = {
738
744
  ...data,
739
745
  processInstance: {
@@ -752,7 +758,7 @@ const updatePayloadOfWS = function (data, type) {
752
758
  }
753
759
  }
754
760
  };
755
- payload = (_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;
761
+ payload = (_Digit5 = Digit) !== null && _Digit5 !== void 0 && (_Digit5$Customization = _Digit5.Customizations) !== null && _Digit5$Customization !== void 0 && (_Digit5$Customization2 = _Digit5$Customization.WS) !== null && _Digit5$Customization2 !== void 0 && _Digit5$Customization2.customiseUpdatePayloadOfWS ? (_Digit6 = Digit) === null || _Digit6 === void 0 ? void 0 : (_Digit6$Customization = _Digit6.Customizations) === null || _Digit6$Customization === void 0 ? void 0 : (_Digit6$Customization2 = _Digit6$Customization.WS) === null || _Digit6$Customization2 === void 0 ? void 0 : _Digit6$Customization2.customiseUpdatePayloadOfWS(data, payload, type) : payload;
756
762
  return Promise.resolve(payload);
757
763
  } catch (e) {
758
764
  return Promise.reject(e);
@@ -832,7 +838,7 @@ const getAllDocumentsForUpdate = data => {
832
838
  return allDocuments;
833
839
  };
834
840
  const convertToWSUpdate = data => {
835
- var _data$WaterConnection, _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$djbEmployee11, _data$djbEmployee12, _data$djbEmployee13, _data$djbEmployee14, _data$djbEmployee15, _data$djbEmployee16, _data$djbEmployee17, _data$djbEmployee18, _data$djbEmployee19, _data$djbEmployee20, _data$djbEmployee21, _data$djbEmployee22, _data$djbEmployee23, _data$djbEmployee24, _data$djbEmployee24$d, _data$djbEmployee25, _data$disability2, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
841
+ var _data$WaterConnection, _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$djbEmployee11, _data$djbEmployee12, _data$djbEmployee13, _data$djbEmployee14, _data$djbEmployee15, _data$djbEmployee16, _data$djbEmployee17, _data$djbEmployee18, _data$djbEmployee19, _data$djbEmployee20, _data$djbEmployee21, _data$djbEmployee22, _data$djbEmployee23, _data$djbEmployee24, _data$djbEmployee24$d, _data$djbEmployee25, _data$disability2, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
836
842
  let formdata = {
837
843
  WaterConnection: {
838
844
  ...(data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnectionResult) === null || _data$WaterConnection === void 0 ? void 0 : (_data$WaterConnection2 = _data$WaterConnection.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]),
@@ -859,11 +865,11 @@ const convertToWSUpdate = data => {
859
865
  }
860
866
  }
861
867
  };
862
- formdata = (_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;
868
+ formdata = (_Digit7 = Digit) !== null && _Digit7 !== void 0 && (_Digit7$Customization = _Digit7.Customizations) !== null && _Digit7$Customization !== void 0 && (_Digit7$Customization2 = _Digit7$Customization.WS) !== null && _Digit7$Customization2 !== void 0 && _Digit7$Customization2.customiseWSUpdate ? (_Digit8 = Digit) === null || _Digit8 === void 0 ? void 0 : (_Digit8$Customization = _Digit8.Customizations) === null || _Digit8$Customization === void 0 ? void 0 : (_Digit8$Customization2 = _Digit8$Customization.WS) === null || _Digit8$Customization2 === void 0 ? void 0 : _Digit8$Customization2.customiseWSUpdate(data, formdata) : formdata;
863
869
  return formdata;
864
870
  };
865
871
  const convertToEditWSUpdate = data => {
866
- var _data$WaterConnection6, _data$WaterConnection7, _data$additionalDetai3, _data$additionalDetai4, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai5, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai6, _waterResult$addition3, _data$djbEmployee26, _data$djbEmployee27, _data$djbEmployee28, _data$djbEmployee29, _data$djbEmployee30, _data$djbEmployee31, _data$djbEmployee32, _data$djbEmployee33, _data$djbEmployee34, _data$djbEmployee35, _data$djbEmployee36, _data$djbEmployee37, _data$djbEmployee38, _data$djbEmployee39, _data$djbEmployee39$d, _data$djbEmployee40, _data$disability3, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
872
+ var _data$WaterConnection6, _data$WaterConnection7, _data$additionalDetai3, _data$additionalDetai4, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai5, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai6, _waterResult$addition3, _data$djbEmployee26, _data$djbEmployee27, _data$djbEmployee28, _data$djbEmployee29, _data$djbEmployee30, _data$djbEmployee31, _data$djbEmployee32, _data$djbEmployee33, _data$djbEmployee34, _data$djbEmployee35, _data$djbEmployee36, _data$djbEmployee37, _data$djbEmployee38, _data$djbEmployee39, _data$djbEmployee39$d, _data$djbEmployee40, _data$disability3, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
867
873
  let waterResult = data === null || data === void 0 ? void 0 : (_data$WaterConnection6 = data.WaterConnectionResult) === null || _data$WaterConnection6 === void 0 ? void 0 : (_data$WaterConnection7 = _data$WaterConnection6.WaterConnection) === null || _data$WaterConnection7 === void 0 ? void 0 : _data$WaterConnection7[0];
868
874
  let formdata = {
869
875
  WaterConnection: {
@@ -957,11 +963,11 @@ const convertToEditWSUpdate = data => {
957
963
  assignes: []
958
964
  }
959
965
  };
960
- formdata = (_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;
966
+ formdata = (_Digit9 = Digit) !== null && _Digit9 !== void 0 && (_Digit9$Customization = _Digit9.Customizations) !== null && _Digit9$Customization !== void 0 && (_Digit9$Customization2 = _Digit9$Customization.WS) !== null && _Digit9$Customization2 !== void 0 && _Digit9$Customization2.customiseEditWSUpdate ? (_Digit0 = Digit) === null || _Digit0 === void 0 ? void 0 : (_Digit0$Customization = _Digit0.Customizations) === null || _Digit0$Customization === void 0 ? void 0 : (_Digit0$Customization2 = _Digit0$Customization.WS) === null || _Digit0$Customization2 === void 0 ? void 0 : _Digit0$Customization2.customiseEditWSUpdate(data, formdata) : formdata;
961
967
  return formdata;
962
968
  };
963
969
  const convertToEditSWUpdate = data => {
964
- var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai7, _data$additionalDetai8, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai9, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai0, _SewerageResult$addit3, _data$djbEmployee41, _data$djbEmployee42, _data$djbEmployee43, _data$djbEmployee44, _data$djbEmployee45, _data$djbEmployee46, _data$djbEmployee47, _data$djbEmployee48, _data$djbEmployee49, _data$djbEmployee50, _data$djbEmployee51, _data$djbEmployee52, _data$djbEmployee53, _data$djbEmployee54, _data$djbEmployee54$d, _data$djbEmployee55, _data$disability4, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _data$ConnectionHolde32, _data$ConnectionHolde33, _data$ConnectionHolde34, _data$ConnectionHolde35, _data$ConnectionHolde36, _data$ConnectionHolde37, _data$ConnectionHolde38, _data$ConnectionHolde39, _data$ConnectionHolde40, _data$ConnectionHolde41, _data$ConnectionHolde42, _data$ConnectionHolde43, _data$ConnectionHolde44, _data$ConnectionHolde45, _data$ConnectionHolde46, _data$ConnectionHolde47, _data$ConnectionHolde48, _data$ConnectionHolde49, _data$ConnectionHolde50, _data$ConnectionHolde51, _data$ConnectionHolde52, _data$ConnectionHolde53, _data$ConnectionHolde54, _data$ConnectionHolde55, _data$ConnectionHolde56, _data$ConnectionHolde57, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
970
+ var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai7, _data$additionalDetai8, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai9, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai0, _SewerageResult$addit3, _data$djbEmployee41, _data$djbEmployee42, _data$djbEmployee43, _data$djbEmployee44, _data$djbEmployee45, _data$djbEmployee46, _data$djbEmployee47, _data$djbEmployee48, _data$djbEmployee49, _data$djbEmployee50, _data$djbEmployee51, _data$djbEmployee52, _data$djbEmployee53, _data$djbEmployee54, _data$djbEmployee54$d, _data$djbEmployee55, _data$disability4, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _data$ConnectionHolde32, _data$ConnectionHolde33, _data$ConnectionHolde34, _data$ConnectionHolde35, _data$ConnectionHolde36, _data$ConnectionHolde37, _data$ConnectionHolde38, _data$ConnectionHolde39, _data$ConnectionHolde40, _data$ConnectionHolde41, _data$ConnectionHolde42, _data$ConnectionHolde43, _data$ConnectionHolde44, _data$ConnectionHolde45, _data$ConnectionHolde46, _data$ConnectionHolde47, _data$ConnectionHolde48, _data$ConnectionHolde49, _data$ConnectionHolde50, _data$ConnectionHolde51, _data$ConnectionHolde52, _data$ConnectionHolde53, _data$ConnectionHolde54, _data$ConnectionHolde55, _data$ConnectionHolde56, _data$ConnectionHolde57, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4, _Digit1, _Digit1$Customization, _Digit1$Customization2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2;
965
971
  let SewerageResult = data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnectionResult) === null || _data$SewerageConnect === void 0 ? void 0 : (_data$SewerageConnect2 = _data$SewerageConnect.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0];
966
972
  let formdata = {
967
973
  SewerageConnection: {
@@ -1055,11 +1061,11 @@ const convertToEditSWUpdate = data => {
1055
1061
  assignes: []
1056
1062
  }
1057
1063
  };
1058
- formdata = (_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;
1064
+ formdata = (_Digit1 = Digit) !== null && _Digit1 !== void 0 && (_Digit1$Customization = _Digit1.Customizations) !== null && _Digit1$Customization !== void 0 && (_Digit1$Customization2 = _Digit1$Customization.WS) !== null && _Digit1$Customization2 !== void 0 && _Digit1$Customization2.customiseEditSWUpdate ? (_Digit10 = Digit) === null || _Digit10 === void 0 ? void 0 : (_Digit10$Customizatio = _Digit10.Customizations) === null || _Digit10$Customizatio === void 0 ? void 0 : (_Digit10$Customizatio2 = _Digit10$Customizatio.WS) === null || _Digit10$Customizatio2 === void 0 ? void 0 : _Digit10$Customizatio2.customiseEditSWUpdate(data, formdata) : formdata;
1059
1065
  return formdata;
1060
1066
  };
1061
1067
  const convertToSWUpdate = data => {
1062
- var _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$djbEmployee56, _data$djbEmployee57, _data$djbEmployee58, _data$djbEmployee59, _data$djbEmployee60, _data$djbEmployee61, _data$djbEmployee62, _data$djbEmployee63, _data$djbEmployee64, _data$djbEmployee65, _data$djbEmployee66, _data$djbEmployee67, _data$djbEmployee68, _data$djbEmployee69, _data$djbEmployee69$d, _data$djbEmployee70, _data$disability5, _Digit1, _Digit1$Customization, _Digit1$Customization2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2;
1068
+ var _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$djbEmployee56, _data$djbEmployee57, _data$djbEmployee58, _data$djbEmployee59, _data$djbEmployee60, _data$djbEmployee61, _data$djbEmployee62, _data$djbEmployee63, _data$djbEmployee64, _data$djbEmployee65, _data$djbEmployee66, _data$djbEmployee67, _data$djbEmployee68, _data$djbEmployee69, _data$djbEmployee69$d, _data$djbEmployee70, _data$disability5, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
1063
1069
  let formdata = {
1064
1070
  SewerageConnection: {
1065
1071
  ...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnectionResult) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3.SewerageConnections) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4[0]),
@@ -1087,12 +1093,12 @@ const convertToSWUpdate = data => {
1087
1093
  }
1088
1094
  }
1089
1095
  };
1090
- formdata = (_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;
1096
+ formdata = (_Digit11 = Digit) !== null && _Digit11 !== void 0 && (_Digit11$Customizatio = _Digit11.Customizations) !== null && _Digit11$Customizatio !== void 0 && (_Digit11$Customizatio2 = _Digit11$Customizatio.WS) !== null && _Digit11$Customizatio2 !== void 0 && _Digit11$Customizatio2.customiseSWUpdate ? (_Digit12 = Digit) === null || _Digit12 === void 0 ? void 0 : (_Digit12$Customizatio = _Digit12.Customizations) === null || _Digit12$Customizatio === void 0 ? void 0 : (_Digit12$Customizatio2 = _Digit12$Customizatio.WS) === null || _Digit12$Customizatio2 === void 0 ? void 0 : _Digit12$Customizatio2.customiseSWUpdate(data, formdata) : formdata;
1091
1097
  return formdata;
1092
1098
  };
1093
1099
  const createPayloadOfWSDisconnection = function (data, storeData, service) {
1094
1100
  try {
1095
- var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason, _data$reason$value, _data$reason2, _data$reason3, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _storeData$applicatio39, _storeData$applicatio40, _plumberInfo, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _data$type3, _data$type3$value, _data$reason4, _data$reason4$value, _data$reason5, _data$reason6, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _plumberInfo2, _storeData$applicatio68, _storeData$applicatio69, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
1101
+ var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason, _data$reason$value, _data$reason2, _data$reason3, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _storeData$applicatio39, _storeData$applicatio40, _plumberInfo, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _data$type3, _data$type3$value, _data$reason4, _data$reason4$value, _data$reason5, _data$reason6, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _plumberInfo2, _storeData$applicatio68, _storeData$applicatio69, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
1096
1102
  const user = (_Digit$UserService$ge8 = Digit.UserService.getUser()) === null || _Digit$UserService$ge8 === void 0 ? void 0 : (_Digit$UserService$ge9 = _Digit$UserService$ge8.info) === null || _Digit$UserService$ge9 === void 0 ? void 0 : _Digit$UserService$ge9.type;
1097
1103
  let plumberInfo = [];
1098
1104
  if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio = storeData.applicationData) === null || _storeData$applicatio === void 0 ? void 0 : (_storeData$applicatio2 = _storeData$applicatio.plumberInfo) === null || _storeData$applicatio2 === void 0 ? void 0 : _storeData$applicatio2.length) > 0) {
@@ -1193,7 +1199,7 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
1193
1199
  disconnectRequest: true
1194
1200
  };
1195
1201
  let returnObject = (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "WATER" ? wsPayload : swPayload;
1196
- returnObject = (_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;
1202
+ returnObject = (_Digit13 = Digit) !== null && _Digit13 !== void 0 && (_Digit13$Customizatio = _Digit13.Customizations) !== null && _Digit13$Customizatio !== void 0 && (_Digit13$Customizatio2 = _Digit13$Customizatio.WS) !== null && _Digit13$Customizatio2 !== void 0 && _Digit13$Customizatio2.customiseCreatePayloadOfWSDisconnection ? (_Digit14 = Digit) === null || _Digit14 === void 0 ? void 0 : (_Digit14$Customizatio = _Digit14.Customizations) === null || _Digit14$Customizatio === void 0 ? void 0 : (_Digit14$Customizatio2 = _Digit14$Customizatio.WS) === null || _Digit14$Customizatio2 === void 0 ? void 0 : _Digit14$Customizatio2.customiseCreatePayloadOfWSDisconnection(data, returnObject, service) : returnObject;
1197
1203
  return Promise.resolve(returnObject);
1198
1204
  } catch (e) {
1199
1205
  return Promise.reject(e);
@@ -1311,7 +1317,7 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
1311
1317
  };
1312
1318
  const createPayloadOfWSReSubmitDisconnection = function (data, storeData, service) {
1313
1319
  try {
1314
- var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type4, _data$type4$value, _data$reason13, _data$reason13$value, _data$reason14, _data$reason15, _storeData$applicatio149, _storeData$applicatio150, _storeData$applicatio151, _storeData$applicatio152, _data$type5, _data$type5$value, _data$reason16, _data$reason16$value, _data$reason17, _data$reason18, _storeData$applicatio157, _storeData$applicatio158, _storeData$applicatio159, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
1320
+ var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type4, _data$type4$value, _data$reason13, _data$reason13$value, _data$reason14, _data$reason15, _storeData$applicatio149, _storeData$applicatio150, _storeData$applicatio151, _storeData$applicatio152, _data$type5, _data$type5$value, _data$reason16, _data$reason16$value, _data$reason17, _data$reason18, _storeData$applicatio157, _storeData$applicatio158, _storeData$applicatio159, _Digit15, _Digit15$Customizatio, _Digit15$Customizatio2, _Digit16, _Digit16$Customizatio, _Digit16$Customizatio2;
1315
1321
  const user = (_Digit$UserService$ge10 = Digit.UserService.getUser()) === null || _Digit$UserService$ge10 === void 0 ? void 0 : (_Digit$UserService$ge11 = _Digit$UserService$ge10.info) === null || _Digit$UserService$ge11 === void 0 ? void 0 : _Digit$UserService$ge11.type;
1316
1322
  let wsPayload = {
1317
1323
  WaterConnection: {
@@ -1363,7 +1369,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
1363
1369
  disconnectRequest: true
1364
1370
  };
1365
1371
  let returnObject = (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "WATER" ? wsPayload : swPayload;
1366
- returnObject = (_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;
1372
+ returnObject = (_Digit15 = Digit) !== null && _Digit15 !== void 0 && (_Digit15$Customizatio = _Digit15.Customizations) !== null && _Digit15$Customizatio !== void 0 && (_Digit15$Customizatio2 = _Digit15$Customizatio.WS) !== null && _Digit15$Customizatio2 !== void 0 && _Digit15$Customizatio2.customiseCreatePayloadOfWSReSubmitDisconnection ? (_Digit16 = Digit) === null || _Digit16 === void 0 ? void 0 : (_Digit16$Customizatio = _Digit16.Customizations) === null || _Digit16$Customizatio === void 0 ? void 0 : (_Digit16$Customizatio2 = _Digit16$Customizatio.WS) === null || _Digit16$Customizatio2 === void 0 ? void 0 : _Digit16$Customizatio2.customiseCreatePayloadOfWSReSubmitDisconnection(data, returnObject, service) : returnObject;
1367
1373
  return Promise.resolve(returnObject);
1368
1374
  } catch (e) {
1369
1375
  return Promise.reject(e);
@@ -1371,7 +1377,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
1371
1377
  };
1372
1378
  const updatePayloadOfWSDisconnection = function (data, type) {
1373
1379
  try {
1374
- var _data$plumberInfo, _data$plumberInfo2, _Digit15, _Digit15$Customizatio, _Digit15$Customizatio2, _Digit16, _Digit16$Customizatio, _Digit16$Customizatio2;
1380
+ var _data$plumberInfo, _data$plumberInfo2, _Digit17, _Digit17$Customizatio, _Digit17$Customizatio2, _Digit18, _Digit18$Customizatio, _Digit18$Customizatio2;
1375
1381
  let payload = {
1376
1382
  ...data,
1377
1383
  plumberInfo: data !== null && data !== void 0 && (_data$plumberInfo = data.plumberInfo) !== null && _data$plumberInfo !== void 0 && _data$plumberInfo[0] ? [{
@@ -1385,7 +1391,7 @@ const updatePayloadOfWSDisconnection = function (data, type) {
1385
1391
  action: "SUBMIT_APPLICATION"
1386
1392
  }
1387
1393
  };
1388
- payload = (_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;
1394
+ payload = (_Digit17 = Digit) !== null && _Digit17 !== void 0 && (_Digit17$Customizatio = _Digit17.Customizations) !== null && _Digit17$Customizatio !== void 0 && (_Digit17$Customizatio2 = _Digit17$Customizatio.WS) !== null && _Digit17$Customizatio2 !== void 0 && _Digit17$Customizatio2.customiseUpdatePayloadOfWSDisconnection ? (_Digit18 = Digit) === null || _Digit18 === void 0 ? void 0 : (_Digit18$Customizatio = _Digit18.Customizations) === null || _Digit18$Customizatio === void 0 ? void 0 : (_Digit18$Customizatio2 = _Digit18$Customizatio.WS) === null || _Digit18$Customizatio2 === void 0 ? void 0 : _Digit18$Customizatio2.customiseUpdatePayloadOfWSDisconnection(data, payload, type) : payload;
1389
1395
  return Promise.resolve(payload);
1390
1396
  } catch (e) {
1391
1397
  return Promise.reject(e);
@@ -8364,34 +8370,52 @@ const WSMyApplications = () => {
8364
8370
  return GetCell(t(`CS_${(_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.applicationStatus}`) || t("CS_NA"));
8365
8371
  }
8366
8372
  }, {
8367
- Header: t("WS_SLA"),
8373
+ Header: t("WS_APPLICATION_CREATED_TIME"),
8368
8374
  disableSortBy: true,
8369
8375
  Cell: _ref6 => {
8370
- var _row$original8;
8376
+ var _row$original8, _row$original8$auditD;
8371
8377
  let {
8372
8378
  row
8373
8379
  } = _ref6;
8374
- const slaDays = Math.round(((_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : _row$original8.sla) / (24 * 60 * 60 * 1000));
8375
- return GetCell(slaDays ? `${slaDays} Days` : t("CS_NA"));
8380
+ const createdTime = (_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : (_row$original8$auditD = _row$original8.auditDetails) === null || _row$original8$auditD === void 0 ? void 0 : _row$original8$auditD.createdTime;
8381
+ return GetCell(createdTime ? new Date(createdTime).toLocaleString("en-IN", {
8382
+ day: "2-digit",
8383
+ month: "2-digit",
8384
+ year: "numeric",
8385
+ hour: "2-digit",
8386
+ minute: "2-digit",
8387
+ hour12: true
8388
+ }) : t("CS_NA"));
8376
8389
  }
8377
8390
  }, {
8378
- Header: t("dueAmount"),
8391
+ Header: t("WS_SLA"),
8379
8392
  disableSortBy: true,
8380
8393
  Cell: _ref7 => {
8381
8394
  var _row$original9;
8382
8395
  let {
8383
8396
  row
8384
8397
  } = _ref7;
8385
- const 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 !== "");
8386
- return GetCell(dueAmounts.length > 0 ? dueAmounts.map(amount => `₹${Number(amount).toLocaleString("en-IN")}`).join(", ") : t("CS_NA"));
8398
+ const slaDays = Math.round(((_row$original9 = row.original) === null || _row$original9 === void 0 ? void 0 : _row$original9.sla) / (24 * 60 * 60 * 1000));
8399
+ return GetCell(slaDays ? `${slaDays} Days` : t("CS_NA"));
8387
8400
  }
8388
8401
  }, {
8389
- Header: t("WS_VIEW_DETAILS"),
8402
+ Header: t("dueAmount"),
8390
8403
  disableSortBy: true,
8391
8404
  Cell: _ref8 => {
8405
+ var _row$original0;
8392
8406
  let {
8393
8407
  row
8394
8408
  } = _ref8;
8409
+ const dueAmounts = (((_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0.dueVerification) || []).map(item => item === null || item === void 0 ? void 0 : item.dueAmount).filter(amount => amount !== null && amount !== undefined && amount !== "");
8410
+ return GetCell(dueAmounts.length > 0 ? dueAmounts.map(amount => `₹${Number(amount).toLocaleString("en-IN")}`).join(", ") : t("CS_NA"));
8411
+ }
8412
+ }, {
8413
+ Header: t("WS_VIEW_DETAILS"),
8414
+ disableSortBy: true,
8415
+ Cell: _ref9 => {
8416
+ let {
8417
+ row
8418
+ } = _ref9;
8395
8419
  const application = row.original;
8396
8420
  return /*#__PURE__*/React__default.createElement("span", {
8397
8421
  className: "link"
@@ -8402,11 +8426,11 @@ const WSMyApplications = () => {
8402
8426
  }, {
8403
8427
  Header: t("MAKE_PAYMENT"),
8404
8428
  disableSortBy: true,
8405
- Cell: _ref9 => {
8429
+ Cell: _ref0 => {
8406
8430
  var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$applicat7, _application$applicat8, _application$connecti, _application$property, _application$property2, _application$applicat9;
8407
8431
  let {
8408
8432
  row
8409
- } = _ref9;
8433
+ } = _ref0;
8410
8434
  const application = row.original;
8411
8435
  const isMutation = application === null || application === void 0 ? void 0 : (_application$applicat = application.applicationType) === null || _application$applicat === void 0 ? void 0 : _application$applicat.includes("MUTATION");
8412
8436
  const isReconnection = (application === null || application === void 0 ? void 0 : (_application$applicat2 = application.applicationType) === null || _application$applicat2 === void 0 ? void 0 : _application$applicat2.includes("RECONNECT")) || (application === null || application === void 0 ? void 0 : (_application$applicat3 = application.applicationNo) === null || _application$applicat3 === void 0 ? void 0 : _application$applicat3.includes("RC"));
@@ -8539,8 +8563,8 @@ const WSMyApplications = () => {
8539
8563
  label: "SEWERAGE",
8540
8564
  count: sewerageCount,
8541
8565
  color: "#F59E0B"
8542
- }, ...Object.entries(statusCounts).map((_ref0, idx) => {
8543
- let [status, count] = _ref0;
8566
+ }, ...Object.entries(statusCounts).map((_ref1, idx) => {
8567
+ let [status, count] = _ref1;
8544
8568
  const colors = ["#10B981", "#A855F7", "#EF4444", "#64748B", "#F97316", "#06B6D4"];
8545
8569
  return {
8546
8570
  label: status === "UNKNOWN" ? "UNKNOWN" : `CS_${status}`,
@@ -8653,7 +8677,8 @@ const WSMyApplications = () => {
8653
8677
  onNextPage: () => setPageOffset(pageOffset + pageSize),
8654
8678
  onPrevPage: () => setPageOffset(pageOffset - pageSize),
8655
8679
  pageSizeLimit: pageSize,
8656
- disableSort: true
8680
+ disableSort: true,
8681
+ autoSort: false
8657
8682
  }) : /*#__PURE__*/React__default.createElement("p", {
8658
8683
  style: {
8659
8684
  marginLeft: "16px",
@@ -9088,28 +9113,25 @@ const WSResponse = props => {
9088
9113
  let filters = getQueryStringParams(location.search);
9089
9114
  const [waterApplicationData, setWaterApplicationData] = React.useState({});
9090
9115
  const [sewerageApplicationData, setSewerageApplicationData] = React.useState({});
9116
+ const hasWaterApp = !!(filters !== null && filters !== void 0 && filters.applicationNumber);
9117
+ const hasSewerageApp = !!(filters !== null && filters !== void 0 && filters.applicationNumber1);
9091
9118
  const {
9092
9119
  isLoading: waterLoading,
9093
9120
  isError: waterError,
9094
9121
  data: waterApplicationDetails
9095
- } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber, "WATER", {
9096
- enabled: filters !== null && filters !== void 0 && filters.applicationNumber ? true : false
9122
+ } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber, "WATER", {}, {
9123
+ enabled: hasWaterApp
9097
9124
  });
9098
9125
  const {
9099
9126
  isLoading: sewerageLoading,
9100
9127
  isError: sewerageError,
9101
9128
  data: sewerageApplicationDetails
9102
- } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber1, "SEWERAGE", {
9103
- enabled: filters !== null && filters !== void 0 && filters.applicationNumber1 ? true : false
9129
+ } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber1, "SEWERAGE", {}, {
9130
+ enabled: hasSewerageApp
9104
9131
  });
9105
- React.useEffect(function () {
9106
- try {
9107
- setWaterApplicationData(waterApplicationDetails);
9108
- setSewerageApplicationData(sewerageApplicationDetails);
9109
- return Promise.resolve();
9110
- } catch (e) {
9111
- return Promise.reject(e);
9112
- }
9132
+ React.useEffect(() => {
9133
+ setWaterApplicationData(waterApplicationDetails);
9134
+ setSewerageApplicationData(sewerageApplicationDetails);
9113
9135
  }, [waterApplicationDetails, sewerageApplicationDetails]);
9114
9136
  const {
9115
9137
  data: oldDataWater
@@ -9137,6 +9159,9 @@ const WSResponse = props => {
9137
9159
  });
9138
9160
  const oldApplicationWater = oldDataWater === null || oldDataWater === void 0 ? void 0 : (_oldDataWater$WaterCo = oldDataWater.WaterConnection) === null || _oldDataWater$WaterCo === void 0 ? void 0 : _oldDataWater$WaterCo[(oldDataWater === null || oldDataWater === void 0 ? void 0 : (_oldDataWater$WaterCo2 = oldDataWater.WaterConnection) === null || _oldDataWater$WaterCo2 === void 0 ? void 0 : _oldDataWater$WaterCo2.length) - 1];
9139
9161
  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];
9162
+ const isLoading = hasWaterApp && waterLoading || hasSewerageApp && sewerageLoading;
9163
+ const isError = !hasWaterApp && !hasSewerageApp || hasWaterApp && waterError || hasSewerageApp && sewerageError;
9164
+ const isSuccess = !isLoading && !isError;
9140
9165
  const handleAckPdfDownloadWater = function () {
9141
9166
  try {
9142
9167
  var _waterApplicationData4, _waterApplicationData5, _waterApplicationData6;
@@ -9193,13 +9218,16 @@ const WSResponse = props => {
9193
9218
  let isEmployee = window.location.href.includes("/employee");
9194
9219
  history.push(isEmployee ? `/digit-ui/employee` : `/digit-ui/citizen`);
9195
9220
  };
9221
+ if (isLoading) {
9222
+ return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
9223
+ }
9196
9224
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Banner, {
9197
- message: t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL"),
9198
- applicationNumber: filters === null || filters === void 0 ? void 0 : filters.applicationNumber,
9199
- applicationNumberOne: filters === null || filters === void 0 ? void 0 : filters.applicationNumber1,
9200
- info: filters !== null && filters !== void 0 && filters.applicationNumber ? t("WS_WATER_APPLICATION_NUMBER_LABEL") : "",
9201
- infoOne: filters !== null && filters !== void 0 && filters.applicationNumber1 ? t("WS_SEWERAGE_APPLICATION_NUMBER_LABEL") : "",
9202
- successful: true,
9225
+ message: isSuccess ? t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL") : t("WS_APPLICATION_SUBMIT_FAILED_LABEL"),
9226
+ applicationNumber: isSuccess ? filters === null || filters === void 0 ? void 0 : filters.applicationNumber : undefined,
9227
+ applicationNumberOne: isSuccess ? filters === null || filters === void 0 ? void 0 : filters.applicationNumber1 : undefined,
9228
+ info: isSuccess && filters !== null && filters !== void 0 && filters.applicationNumber ? t("WS_WATER_APPLICATION_NUMBER_LABEL") : "",
9229
+ infoOne: isSuccess && filters !== null && filters !== void 0 && filters.applicationNumber1 ? t("WS_SEWERAGE_APPLICATION_NUMBER_LABEL") : "",
9230
+ successful: isSuccess,
9203
9231
  style: {
9204
9232
  padding: "10px"
9205
9233
  },
@@ -9209,7 +9237,7 @@ const WSResponse = props => {
9209
9237
  infoOneStyles: {
9210
9238
  paddingTop: "20px"
9211
9239
  }
9212
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
9240
+ }), isSuccess && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
9213
9241
  style: {
9214
9242
  paddingBottom: "10px",
9215
9243
  marginBottom: "10px"
@@ -9252,7 +9280,7 @@ const WSResponse = props => {
9252
9280
  }, /*#__PURE__*/React__default.createElement("path", {
9253
9281
  d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
9254
9282
  fill: "#a82227"
9255
- })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React__default.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
9283
+ })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React__default.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" && /*#__PURE__*/React__default.createElement("div", {
9256
9284
  style: {
9257
9285
  marginTop: "10px"
9258
9286
  }
@@ -9265,8 +9293,8 @@ const WSResponse = props => {
9265
9293
  let consumerCodeOriginal = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData1 = waterApplicationData.applicationData) !== null && _waterApplicationData1 !== void 0 && (_waterApplicationData10 = _waterApplicationData1.applicationNo) !== null && _waterApplicationData10 !== void 0 && _waterApplicationData10.includes("DC") ? waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData11 = waterApplicationData.applicationData) === null || _waterApplicationData11 === void 0 ? void 0 : _waterApplicationData11.connectionNo : waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData12 = waterApplicationData.applicationData) === null || _waterApplicationData12 === void 0 ? void 0 : _waterApplicationData12.applicationNo;
9266
9294
  let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9267
9295
  let tenantId = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData13 = waterApplicationData.applicationData) === null || _waterApplicationData13 === void 0 ? void 0 : _waterApplicationData13.tenantId;
9268
- let consumerName = (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData14 = waterApplicationData.applicationData) === null || _waterApplicationData14 === void 0 ? void 0 : (_waterApplicationData15 = _waterApplicationData14.connectionHolders) === null || _waterApplicationData15 === void 0 ? void 0 : _waterApplicationData15.map(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(","));
9269
- 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;
9296
+ 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(","));
9297
+ let isDisconnectFlow = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData18 = waterApplicationData.applicationData) === null || _waterApplicationData18 === void 0 ? void 0 : (_waterApplicationData19 = _waterApplicationData18.applicationNo) === null || _waterApplicationData19 === void 0 ? void 0 : _waterApplicationData19.includes("DC");
9270
9298
  if (isEmployee) {
9271
9299
  history.push({
9272
9300
  pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
@@ -9281,7 +9309,7 @@ const WSResponse = props => {
9281
9309
  });
9282
9310
  }
9283
9311
  }
9284
- })) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React__default.createElement("div", {
9312
+ })), (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" && /*#__PURE__*/React__default.createElement("div", {
9285
9313
  style: {
9286
9314
  marginTop: "10px",
9287
9315
  marginLeft: "10px"
@@ -9295,8 +9323,8 @@ const WSResponse = props => {
9295
9323
  let consumerCodeOriginal = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD1 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD1 !== void 0 && (_sewerageApplicationD10 = _sewerageApplicationD1.applicationNo) !== null && _sewerageApplicationD10 !== void 0 && _sewerageApplicationD10.includes("DC") ? sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD11 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD11 === void 0 ? void 0 : _sewerageApplicationD11.connectionNo : sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD12 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD12 === void 0 ? void 0 : _sewerageApplicationD12.applicationNo;
9296
9324
  let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9297
9325
  let tenantId = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD13 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD13 === void 0 ? void 0 : _sewerageApplicationD13.tenantId;
9298
- let consumerName = (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD14 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD14 === void 0 ? void 0 : (_sewerageApplicationD15 = _sewerageApplicationD14.connectionHolders) === null || _sewerageApplicationD15 === void 0 ? void 0 : _sewerageApplicationD15.map(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(","));
9299
- 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;
9326
+ 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(","));
9327
+ let isDisconnectFlow = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD18 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD18 === void 0 ? void 0 : (_sewerageApplicationD19 = _sewerageApplicationD18.applicationNo) === null || _sewerageApplicationD19 === void 0 ? void 0 : _sewerageApplicationD19.includes("DC");
9300
9328
  if (isEmployee) {
9301
9329
  history.push({
9302
9330
  pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
@@ -9311,7 +9339,13 @@ const WSResponse = props => {
9311
9339
  });
9312
9340
  }
9313
9341
  }
9314
- })) : null), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
9342
+ })))), isError && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
9343
+ style: {
9344
+ paddingBottom: "10px",
9345
+ marginBottom: "10px",
9346
+ color: "#B91900"
9347
+ }
9348
+ }, t("WS_APPLICATION_SUBMIT_FAILED_DESC")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
9315
9349
  style: {
9316
9350
  display: "flex",
9317
9351
  justifyContent: "flex-end",
@@ -14596,7 +14630,7 @@ const ConnectionDetails$1 = _props => {
14596
14630
  name: "name",
14597
14631
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.name,
14598
14632
  rules: {
14599
- validate: e => e && getPattern("Name").test(e) || !e ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14633
+ validate: e => !e || !e.trim() ? t("REQUIRED_FIELD") : e.includes("*") || /^[a-zA-Z\s]{1,50}$/.test(e) ? true : t("WS_NAME_ERROR_MESSAGE") || t("PT_NAME_ERROR_MESSAGE") || "Only alphabets are allowed",
14600
14634
  required: t("REQUIRED_FIELD")
14601
14635
  },
14602
14636
  isMandatory: true,
@@ -14607,8 +14641,10 @@ const ConnectionDetails$1 = _props => {
14607
14641
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "name",
14608
14642
  errorStyle: localFormState.touched.name && errors !== null && errors !== void 0 && (_errors$name = errors.name) !== null && _errors$name !== void 0 && _errors$name.message ? true : false,
14609
14643
  onChange: e => {
14610
- setName(e.target.value);
14611
- props.onChange(e.target.value);
14644
+ const val = e.target.value;
14645
+ const cleanVal = val && val.includes("*") ? val : val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
14646
+ setName(cleanVal);
14647
+ props.onChange(cleanVal);
14612
14648
  setFocusIndex({
14613
14649
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14614
14650
  type: "name"
@@ -14648,6 +14684,9 @@ const ConnectionDetails$1 = _props => {
14648
14684
  control: control,
14649
14685
  name: "middleName",
14650
14686
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.middleName,
14687
+ rules: {
14688
+ 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"
14689
+ },
14651
14690
  render: props => {
14652
14691
  var _errors$middleName;
14653
14692
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
@@ -14655,8 +14694,10 @@ const ConnectionDetails$1 = _props => {
14655
14694
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "middleName",
14656
14695
  errorStyle: localFormState.touched.middleName && errors !== null && errors !== void 0 && (_errors$middleName = errors.middleName) !== null && _errors$middleName !== void 0 && _errors$middleName.message ? true : false,
14657
14696
  onChange: e => {
14658
- setMiddleName(e.target.value);
14659
- props.onChange(e.target.value);
14697
+ const val = e.target.value;
14698
+ const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
14699
+ setMiddleName(cleanVal);
14700
+ props.onChange(cleanVal);
14660
14701
  setFocusIndex({
14661
14702
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14662
14703
  type: "middleName"
@@ -14675,6 +14716,9 @@ const ConnectionDetails$1 = _props => {
14675
14716
  control: control,
14676
14717
  name: "lastName",
14677
14718
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.lastName,
14719
+ rules: {
14720
+ 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"
14721
+ },
14678
14722
  render: props => {
14679
14723
  var _errors$lastName;
14680
14724
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
@@ -14682,8 +14726,10 @@ const ConnectionDetails$1 = _props => {
14682
14726
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "lastName",
14683
14727
  errorStyle: localFormState.touched.lastName && errors !== null && errors !== void 0 && (_errors$lastName = errors.lastName) !== null && _errors$lastName !== void 0 && _errors$lastName.message ? true : false,
14684
14728
  onChange: e => {
14685
- setLastName(e.target.value);
14686
- props.onChange(e.target.value);
14729
+ const val = e.target.value;
14730
+ const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
14731
+ setLastName(cleanVal);
14732
+ props.onChange(cleanVal);
14687
14733
  setFocusIndex({
14688
14734
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14689
14735
  type: "lastName"
@@ -14765,7 +14811,12 @@ const ConnectionDetails$1 = _props => {
14765
14811
  name: "mobileNumber",
14766
14812
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.mobileNumber,
14767
14813
  rules: {
14768
- validate: e => e && getPattern("MobileNoWithPrivacy").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14814
+ validate: e => {
14815
+ if (!e || !e.trim()) return t("REQUIRED_FIELD");
14816
+ if (e.includes("*")) return true;
14817
+ if (/^[6-9]\d{9}$/.test(e)) return true;
14818
+ return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
14819
+ },
14769
14820
  required: t("REQUIRED_FIELD")
14770
14821
  },
14771
14822
  isMandatory: true,
@@ -14775,18 +14826,23 @@ const ConnectionDetails$1 = _props => {
14775
14826
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
14776
14827
  name: "mobileNumber",
14777
14828
  value: mobileValue || "",
14829
+ maxlength: 10,
14830
+ maxLength: 10,
14778
14831
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "mobileNumber",
14779
14832
  errorStyle: localFormState.touched.mobileNumber && (errors === null || errors === void 0 ? void 0 : (_errors$mobileNumber = errors.mobileNumber) === null || _errors$mobileNumber === void 0 ? void 0 : _errors$mobileNumber.message),
14780
14833
  onChange: val => {
14781
- setMobileNumber(val);
14782
- props.onChange(val);
14834
+ const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
14835
+ setMobileNumber(cleanVal);
14836
+ props.onChange(cleanVal);
14783
14837
  setFocusIndex({
14784
14838
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14785
14839
  type: "mobileNumber"
14786
14840
  });
14787
14841
  if (isWatsappSameAsMobile) {
14788
- setWatsAppMobileNumber(val);
14789
- setValue("watsAppMobileNumber", val);
14842
+ setWatsAppMobileNumber(cleanVal);
14843
+ setValue("watsAppMobileNumber", cleanVal, {
14844
+ shouldValidate: true
14845
+ });
14790
14846
  }
14791
14847
  },
14792
14848
  onBlur: props.onBlur,
@@ -14826,7 +14882,12 @@ const ConnectionDetails$1 = _props => {
14826
14882
  name: "watsAppMobileNumber",
14827
14883
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.watsAppMobileNumber,
14828
14884
  rules: {
14829
- validate: e => e && getPattern("MobileNoWithPrivacy").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14885
+ validate: e => {
14886
+ if (!e || !e.trim()) return t("REQUIRED_FIELD");
14887
+ if (e.includes("*")) return true;
14888
+ if (/^[6-9]\d{9}$/.test(e)) return true;
14889
+ return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
14890
+ },
14830
14891
  required: t("REQUIRED_FIELD")
14831
14892
  },
14832
14893
  isMandatory: true,
@@ -14836,11 +14897,14 @@ const ConnectionDetails$1 = _props => {
14836
14897
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
14837
14898
  name: "watsAppMobileNumber",
14838
14899
  value: watsAppmobileValue || "",
14900
+ maxlength: 10,
14901
+ maxLength: 10,
14839
14902
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "watsAppMobileNumber",
14840
14903
  errorStyle: localFormState.touched.watsAppMobileNumber && (errors === null || errors === void 0 ? void 0 : (_errors$watsAppMobile = errors.watsAppMobileNumber) === null || _errors$watsAppMobile === void 0 ? void 0 : _errors$watsAppMobile.message),
14841
14904
  onChange: val => {
14842
- setWatsAppMobileNumber(val);
14843
- props.onChange(val);
14905
+ const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
14906
+ setWatsAppMobileNumber(cleanVal);
14907
+ props.onChange(cleanVal);
14844
14908
  setFocusIndex({
14845
14909
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14846
14910
  type: "watsAppMobileNumber"
@@ -14896,11 +14960,16 @@ const ConnectionDetails$1 = _props => {
14896
14960
  type: "isWatsappSameAsMobile"
14897
14961
  });
14898
14962
  if (e.target.checked) {
14899
- setWatsAppMobileNumber(mobileNumber);
14900
- setValue("watsAppMobileNumber", mobileNumber);
14963
+ const currentMobile = getValues("mobileNumber") || mobileNumber;
14964
+ setWatsAppMobileNumber(currentMobile);
14965
+ setValue("watsAppMobileNumber", currentMobile, {
14966
+ shouldValidate: true
14967
+ });
14901
14968
  } else {
14902
14969
  setWatsAppMobileNumber("");
14903
- setValue("watsAppMobileNumber", "");
14970
+ setValue("watsAppMobileNumber", "", {
14971
+ shouldValidate: true
14972
+ });
14904
14973
  }
14905
14974
  },
14906
14975
  checked: isWatsappSameAsMobile,
@@ -16660,7 +16729,7 @@ const PlumberDetails = _props => {
16660
16729
  name: "plumberName",
16661
16730
  defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.plumberName,
16662
16731
  rules: {
16663
- validate: e => e && getPattern("Name").test(e) || !e ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
16732
+ validate: e => !e || !e.trim() ? t("REQUIRED_FIELD") : /^[a-zA-Z\s]{1,50}$/.test(e) ? true : t("WS_NAME_ERROR_MESSAGE") || t("PT_NAME_ERROR_MESSAGE") || "Only alphabets are allowed",
16664
16733
  required: t("REQUIRED_FIELD")
16665
16734
  },
16666
16735
  isMandatory: true,
@@ -16671,7 +16740,9 @@ const PlumberDetails = _props => {
16671
16740
  autoFocus: focusIndex.index === (plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key) && focusIndex.type === "plumberName",
16672
16741
  errorStyle: localFormState.touched.plumberName && errors !== null && errors !== void 0 && (_errors$plumberName = errors.plumberName) !== null && _errors$plumberName !== void 0 && _errors$plumberName.message ? true : false,
16673
16742
  onChange: e => {
16674
- props.onChange(e.target.value);
16743
+ const val = e.target.value;
16744
+ const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
16745
+ props.onChange(cleanVal);
16675
16746
  setFocusIndex({
16676
16747
  index: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key,
16677
16748
  type: "plumberName"
@@ -16697,7 +16768,12 @@ const PlumberDetails = _props => {
16697
16768
  name: "plumberMobileNo",
16698
16769
  defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.plumberMobileNo,
16699
16770
  rules: {
16700
- validate: e => e && getPattern("MobileNoWithPrivacy").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
16771
+ validate: e => {
16772
+ if (!e || !e.trim()) return t("REQUIRED_FIELD");
16773
+ if (e.includes("*")) return true;
16774
+ if (/^[6-9]\d{9}$/.test(e)) return true;
16775
+ return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
16776
+ },
16701
16777
  required: t("REQUIRED_FIELD")
16702
16778
  },
16703
16779
  type: "mobileNumber",
@@ -16725,10 +16801,14 @@ const PlumberDetails = _props => {
16725
16801
  },
16726
16802
  type: "mobileNumber",
16727
16803
  value: props.value,
16804
+ maxlength: 10,
16805
+ maxLength: 10,
16728
16806
  autoFocus: focusIndex.index === (plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key) && focusIndex.type === "plumberMobileNo",
16729
16807
  errorStyle: localFormState.touched.plumberMobileNo && errors !== null && errors !== void 0 && (_errors$plumberMobile = errors.plumberMobileNo) !== null && _errors$plumberMobile !== void 0 && _errors$plumberMobile.message ? true : false,
16730
16808
  onChange: e => {
16731
- props.onChange(e.target.value);
16809
+ const val = e.target.value;
16810
+ const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
16811
+ props.onChange(cleanVal);
16732
16812
  setFocusIndex({
16733
16813
  index: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key,
16734
16814
  type: "plumberMobileNo"
@@ -19030,6 +19110,24 @@ const WSDocumentsEmployee = _ref => {
19030
19110
  whiteSpace: "nowrap"
19031
19111
  }
19032
19112
  }, t("WS_DOWNLOAD_DOCUMENT"))) : null;
19113
+ const uploadInfoBanner = /*#__PURE__*/React__default.createElement("div", {
19114
+ style: {
19115
+ display: "flex",
19116
+ alignItems: "center",
19117
+ gap: "10px",
19118
+ marginBottom: "16px",
19119
+ padding: "10px 14px",
19120
+ backgroundColor: "#e8f4fd",
19121
+ borderLeft: "4px solid #00497e",
19122
+ borderRadius: "4px"
19123
+ }
19124
+ }, /*#__PURE__*/React__default.createElement("span", {
19125
+ style: {
19126
+ fontSize: "14px",
19127
+ color: "#00497e",
19128
+ fontWeight: "600"
19129
+ }
19130
+ }, "\u2139\uFE0F ", t("WS_DOCUMENT_UPLOAD_INSTRUCTION") || "Maximum upload size: 5MB per document. Supported formats: PDF, JPG, PNG."));
19033
19131
  if (userType === "citizen") {
19034
19132
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Timeline, {
19035
19133
  currentStep: 3
@@ -19039,7 +19137,7 @@ const WSDocumentsEmployee = _ref => {
19039
19137
  onSelect: goNext,
19040
19138
  onSkip: () => onSelect(),
19041
19139
  isDisabled: enableSubmit
19042
- }, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
19140
+ }, uploadInfoBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
19043
19141
  label: error,
19044
19142
  onClose: () => setError(null),
19045
19143
  error: true
@@ -19048,7 +19146,7 @@ const WSDocumentsEmployee = _ref => {
19048
19146
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
19049
19147
  title: t("WS_DOCUMENTS"),
19050
19148
  defaultOpen: true
19051
- }, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
19149
+ }, uploadInfoBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
19052
19150
  label: error,
19053
19151
  onClose: () => setError(null),
19054
19152
  error: true
@@ -19197,10 +19295,15 @@ function SelectDocument(_ref2) {
19197
19295
  }
19198
19296
  }, []);
19199
19297
  function selectfile(e, newFile) {
19200
- if (newFile) {
19201
- setFile(newFile);
19202
- } else {
19203
- setFile(e.target.files[0]);
19298
+ var _e$target, _e$target$files;
19299
+ 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]);
19300
+ if (selectedFile) {
19301
+ if (selectedFile.size > 5242880) {
19302
+ setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB");
19303
+ if (e !== null && e !== void 0 && e.target) e.target.value = "";
19304
+ return;
19305
+ }
19306
+ setFile(selectedFile);
19204
19307
  }
19205
19308
  setIsCameraFile(false);
19206
19309
  }
@@ -19313,8 +19416,9 @@ function SelectDocument(_ref2) {
19313
19416
  setFile(null);
19314
19417
  } else {
19315
19418
  const _temp5 = function () {
19316
- if (file.size >= 5242880) {
19317
- setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
19419
+ if (file.size > 5242880) {
19420
+ setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB");
19421
+ setFile(null);
19318
19422
  } else {
19319
19423
  const _temp4 = function () {
19320
19424
  if ((doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && !file.type.match(/image\/(jpeg|png)/i) && !file.name.match(/\.(jpg|jpeg|png)$/i)) {
@@ -19497,6 +19601,13 @@ function SelectDocument(_ref2) {
19497
19601
  }, t(`${doc === null || doc === void 0 ? void 0 : (_doc$i18nKey2 = doc.i18nKey) === null || _doc$i18nKey2 === void 0 ? void 0 : _doc$i18nKey2.replaceAll(".", "_")}_UPLOAD_DOCUMENT`), (doc === null || doc === void 0 ? void 0 : doc.required) && /*#__PURE__*/React__default.createElement("span", {
19498
19602
  className: "check-page-link-button"
19499
19603
  }, "*"))), /*#__PURE__*/React__default.createElement("div", {
19604
+ style: {
19605
+ fontSize: "12px",
19606
+ color: "#666",
19607
+ marginTop: "-2px",
19608
+ marginBottom: "4px"
19609
+ }
19610
+ }, t("WS_DOCUMENT_MAX_SIZE_MESSAGE") || "Allowed formats: PDF, JPG, PNG | Max file size: 5MB"), /*#__PURE__*/React__default.createElement("div", {
19500
19611
  className: "field",
19501
19612
  style: {
19502
19613
  display: "flex",
@@ -22607,25 +22718,27 @@ const WSDisconnectionForm = _ref => {
22607
22718
  ...waterConnectionUpdate,
22608
22719
  disconnectRequest: true
22609
22720
  };
22610
- return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
22611
- onError: (error, variables) => {
22612
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
22613
- setIsEnableLoader(false);
22614
- setError({
22615
- key: "error",
22616
- 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
22617
- });
22618
- setTimeout(closeToastOfError, 5000);
22619
- },
22620
- onSuccess: (data, variables) => {
22621
- var _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4;
22622
- Digit.SessionStorage.set("WS_DISCONNECTION", {
22623
- ...applicationData,
22624
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
22625
- });
22626
- 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}`);
22627
- }
22628
- })).then(function () {});
22721
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
22722
+ return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
22723
+ onError: (error, variables) => {
22724
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
22725
+ setIsEnableLoader(false);
22726
+ setError({
22727
+ key: "error",
22728
+ 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
22729
+ });
22730
+ setTimeout(closeToastOfError, 5000);
22731
+ },
22732
+ onSuccess: (data, variables) => {
22733
+ var _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4;
22734
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
22735
+ ...applicationData,
22736
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
22737
+ });
22738
+ 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}`);
22739
+ }
22740
+ })).then(function () {});
22741
+ });
22629
22742
  });
22630
22743
  } catch (e) {
22631
22744
  return Promise.reject(e);
@@ -22662,25 +22775,27 @@ const WSDisconnectionForm = _ref => {
22662
22775
  ...sewerageConnectionUpdate,
22663
22776
  disconnectRequest: true
22664
22777
  };
22665
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
22666
- onError: (error, variables) => {
22667
- var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
22668
- setIsEnableLoader(false);
22669
- setError({
22670
- key: "error",
22671
- 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
22672
- });
22673
- setTimeout(closeToastOfError, 5000);
22674
- },
22675
- onSuccess: (data, variables) => {
22676
- var _data$SewerageConnect2, _data$SewerageConnect3, _data$SewerageConnect4;
22677
- Digit.SessionStorage.set("WS_DISCONNECTION", {
22678
- ...applicationData,
22679
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
22680
- });
22681
- 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}`);
22682
- }
22683
- })).then(function () {});
22778
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
22779
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
22780
+ onError: (error, variables) => {
22781
+ var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
22782
+ setIsEnableLoader(false);
22783
+ setError({
22784
+ key: "error",
22785
+ 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
22786
+ });
22787
+ setTimeout(closeToastOfError, 5000);
22788
+ },
22789
+ onSuccess: (data, variables) => {
22790
+ var _data$SewerageConnect2, _data$SewerageConnect3, _data$SewerageConnect4;
22791
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
22792
+ ...applicationData,
22793
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
22794
+ });
22795
+ 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}`);
22796
+ }
22797
+ })).then(function () {});
22798
+ });
22684
22799
  });
22685
22800
  } catch (e) {
22686
22801
  return Promise.reject(e);
@@ -23368,26 +23483,28 @@ const WSRestorationForm = _ref => {
23368
23483
  disconnectRequest: false,
23369
23484
  reconnectRequest: true
23370
23485
  };
23371
- return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
23372
- onError: (error, variables) => {
23373
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3, _error$response4, _error$response4$data, _error$response4$data2, _error$response4$data3;
23374
- setIsEnableLoader(false);
23375
- setError({
23376
- key: "error",
23377
- 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"
23378
- });
23379
- setTimeout(closeToastOfError, 5000);
23380
- },
23381
- onSuccess: (updatedData, variables) => {
23382
- var _updatedData$WaterCon, _updatedData$WaterCon2, _updatedData$WaterCon3;
23383
- setIsEnableLoader(false);
23384
- Digit.SessionStorage.set("WS_DISCONNECTION", {
23385
- ...currentAppData,
23386
- DisconnectionResponse: updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$WaterCon = updatedData.WaterConnection) === null || _updatedData$WaterCon === void 0 ? void 0 : _updatedData$WaterCon[0]
23387
- });
23388
- 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}`);
23389
- }
23390
- })).then(function () {});
23486
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
23487
+ return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
23488
+ onError: (error, variables) => {
23489
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3, _error$response4, _error$response4$data, _error$response4$data2, _error$response4$data3;
23490
+ setIsEnableLoader(false);
23491
+ setError({
23492
+ key: "error",
23493
+ 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"
23494
+ });
23495
+ setTimeout(closeToastOfError, 5000);
23496
+ },
23497
+ onSuccess: (updatedData, variables) => {
23498
+ var _updatedData$WaterCon, _updatedData$WaterCon2, _updatedData$WaterCon3;
23499
+ setIsEnableLoader(false);
23500
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
23501
+ ...currentAppData,
23502
+ DisconnectionResponse: updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$WaterCon = updatedData.WaterConnection) === null || _updatedData$WaterCon === void 0 ? void 0 : _updatedData$WaterCon[0]
23503
+ });
23504
+ 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}`);
23505
+ }
23506
+ })).then(function () {});
23507
+ });
23391
23508
  });
23392
23509
  } catch (e) {
23393
23510
  return Promise.reject(e);
@@ -23428,26 +23545,28 @@ const WSRestorationForm = _ref => {
23428
23545
  disconnectRequest: false,
23429
23546
  reconnectRequest: true
23430
23547
  };
23431
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
23432
- onError: (error, variables) => {
23433
- var _error$response7, _error$response7$data, _error$response7$data2, _error$response7$data3, _error$response8, _error$response8$data, _error$response8$data2, _error$response8$data3;
23434
- setIsEnableLoader(false);
23435
- setError({
23436
- key: "error",
23437
- 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"
23438
- });
23439
- setTimeout(closeToastOfError, 5000);
23440
- },
23441
- onSuccess: (updatedData, variables) => {
23442
- var _updatedData$Sewerage, _updatedData$Sewerage2, _updatedData$Sewerage3;
23443
- setIsEnableLoader(false);
23444
- Digit.SessionStorage.set("WS_DISCONNECTION", {
23445
- ...currentAppData,
23446
- DisconnectionResponse: updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$Sewerage = updatedData.SewerageConnections) === null || _updatedData$Sewerage === void 0 ? void 0 : _updatedData$Sewerage[0]
23447
- });
23448
- 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}`);
23449
- }
23450
- })).then(function () {});
23548
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
23549
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
23550
+ onError: (error, variables) => {
23551
+ var _error$response7, _error$response7$data, _error$response7$data2, _error$response7$data3, _error$response8, _error$response8$data, _error$response8$data2, _error$response8$data3;
23552
+ setIsEnableLoader(false);
23553
+ setError({
23554
+ key: "error",
23555
+ 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"
23556
+ });
23557
+ setTimeout(closeToastOfError, 5000);
23558
+ },
23559
+ onSuccess: (updatedData, variables) => {
23560
+ var _updatedData$Sewerage, _updatedData$Sewerage2, _updatedData$Sewerage3;
23561
+ setIsEnableLoader(false);
23562
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
23563
+ ...currentAppData,
23564
+ DisconnectionResponse: updatedData === null || updatedData === void 0 ? void 0 : (_updatedData$Sewerage = updatedData.SewerageConnections) === null || _updatedData$Sewerage === void 0 ? void 0 : _updatedData$Sewerage[0]
23565
+ });
23566
+ 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}`);
23567
+ }
23568
+ })).then(function () {});
23569
+ });
23451
23570
  });
23452
23571
  } catch (e) {
23453
23572
  return Promise.reject(e);
@@ -23770,15 +23889,17 @@ const WSRestorationForm = _ref => {
23770
23889
  reconnectRequest: true,
23771
23890
  disconnectRequest: false
23772
23891
  };
23773
- return Promise.resolve(executeMutation(updateMutation, updatePayload)).then(function (updateResponse) {
23774
- var _updateResponse$respo;
23775
- const finalConnection = (updateResponse === null || updateResponse === void 0 ? void 0 : (_updateResponse$respo = updateResponse[responseKey]) === null || _updateResponse$respo === void 0 ? void 0 : _updateResponse$respo[0]) || createdConnection;
23776
- Digit.SessionStorage.set("WS_DISCONNECTION", {
23777
- ...applicationData,
23778
- DisconnectionResponse: finalConnection
23892
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
23893
+ return Promise.resolve(executeMutation(updateMutation, updatePayload)).then(function (updateResponse) {
23894
+ var _updateResponse$respo;
23895
+ const finalConnection = (updateResponse === null || updateResponse === void 0 ? void 0 : (_updateResponse$respo = updateResponse[responseKey]) === null || _updateResponse$respo === void 0 ? void 0 : _updateResponse$respo[0]) || createdConnection;
23896
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
23897
+ ...applicationData,
23898
+ DisconnectionResponse: finalConnection
23899
+ });
23900
+ 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);
23901
+ history.push(responsePath);
23779
23902
  });
23780
- 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);
23781
- history.push(responsePath);
23782
23903
  });
23783
23904
  });
23784
23905
  });
@@ -25447,11 +25568,12 @@ const WSDjbEmployee = _ref => {
25447
25568
  const _temp3 = function () {
25448
25569
  if (file) {
25449
25570
  const _temp2 = function () {
25450
- if (file.size >= 5242880) {
25571
+ if (file.size > 5242880) {
25451
25572
  setErrorUpload({
25452
25573
  key: "error",
25453
- message: "CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"
25574
+ message: t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB"
25454
25575
  });
25576
+ setFile(null);
25455
25577
  } else {
25456
25578
  const _temp = _catch(function () {
25457
25579
  setUploadedFile(null);
@@ -25467,14 +25589,14 @@ const WSDjbEmployee = _ref => {
25467
25589
  } else {
25468
25590
  setErrorUpload({
25469
25591
  key: "error",
25470
- message: "CS_FILE_UPLOAD_ERROR"
25592
+ message: t("CS_FILE_UPLOAD_ERROR") || "File Upload Error"
25471
25593
  });
25472
25594
  }
25473
25595
  });
25474
25596
  }, function () {
25475
25597
  setErrorUpload({
25476
25598
  key: "error",
25477
- message: "CS_FILE_UPLOAD_ERROR"
25599
+ message: t("CS_FILE_UPLOAD_ERROR") || "File Upload Error"
25478
25600
  });
25479
25601
  });
25480
25602
  if (_temp && _temp.then) return _temp.then(function () {});
@@ -25490,7 +25612,19 @@ const WSDjbEmployee = _ref => {
25490
25612
  })();
25491
25613
  }, [file]);
25492
25614
  function selectfile(e) {
25493
- setFile(e.target.files[0]);
25615
+ var _e$target, _e$target$files;
25616
+ 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];
25617
+ if (selected) {
25618
+ if (selected.size > 5242880) {
25619
+ setErrorUpload({
25620
+ key: "error",
25621
+ message: t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB"
25622
+ });
25623
+ if (e !== null && e !== void 0 && e.target) e.target.value = "";
25624
+ return;
25625
+ }
25626
+ setFile(selected);
25627
+ }
25494
25628
  }
25495
25629
  React.useEffect(() => {
25496
25630
  const isEmployeeMode = userType === "employee" || window.location.href.includes("edit-application") || window.location.href.includes("modify-connection") || window.location.href.includes("old-application");
@@ -25625,9 +25759,16 @@ const WSDjbEmployee = _ref => {
25625
25759
  })
25626
25760
  }), (localFormState === null || localFormState === void 0 ? void 0 : (_localFormState$touch2 = localFormState.touched) === null || _localFormState$touch2 === void 0 ? void 0 : _localFormState$touch2.designation) && !(formValue !== null && formValue !== void 0 && (_formValue$designatio = formValue.designation) !== null && _formValue$designatio !== void 0 && (_formValue$designatio2 = _formValue$designatio.trim) !== null && _formValue$designatio2 !== void 0 && _formValue$designatio2.call(_formValue$designatio)) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25627
25761
  style: errorStyle
25628
- }, t("CORE_COMMON_REQUIRED_ERRMSG"))))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("Upload Employee ID Document"), isDjbEmployee && /*#__PURE__*/React__default.createElement("span", {
25762
+ }, t("CORE_COMMON_REQUIRED_ERRMSG"))))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("Upload Employee ID Document"), isDjbEmployee && /*#__PURE__*/React__default.createElement("span", {
25629
25763
  className: "check-page-link-button"
25630
25764
  }, " *")), /*#__PURE__*/React__default.createElement("div", {
25765
+ style: {
25766
+ fontSize: "12px",
25767
+ color: "#666",
25768
+ marginTop: "-2px",
25769
+ marginBottom: "4px"
25770
+ }
25771
+ }, t("WS_DOCUMENT_MAX_SIZE_MESSAGE") || "Allowed formats: PDF, JPG, PNG | Max file size: 5MB")), /*#__PURE__*/React__default.createElement("div", {
25631
25772
  className: "field",
25632
25773
  style: {
25633
25774
  width: "100%"
@@ -27910,6 +28051,13 @@ const SearchApplication = _ref => {
27910
28051
  const GetCell = value => /*#__PURE__*/React__default.createElement("span", {
27911
28052
  className: "cell-text"
27912
28053
  }, value);
28054
+ const sortedData = React.useMemo(() => {
28055
+ if (!Array.isArray(data)) return data;
28056
+ return [...data].sort((a, b) => {
28057
+ var _b$auditDetails, _b$auditDetails2, _a$auditDetails, _a$auditDetails2;
28058
+ 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);
28059
+ });
28060
+ }, [data]);
27913
28061
  const columns = React.useMemo(() => [{
27914
28062
  Header: t("WS_MYCONNECTIONS_CONSUMER_NO"),
27915
28063
  disableSortBy: true,
@@ -28094,7 +28242,7 @@ const SearchApplication = _ref => {
28094
28242
  }
28095
28243
  }, text))) : resultOk ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Table, {
28096
28244
  t: t,
28097
- data: data,
28245
+ data: sortedData,
28098
28246
  totalRecords: count,
28099
28247
  columns: columns,
28100
28248
  getCellProps: cellInfo => {
@@ -28113,6 +28261,7 @@ const SearchApplication = _ref => {
28113
28261
  pageSizeLimit: getValues("limit"),
28114
28262
  onSort: onSort,
28115
28263
  disableSort: false,
28264
+ autoSort: false,
28116
28265
  sortParams: [{
28117
28266
  id: getValues("sortBy"),
28118
28267
  desc: getValues("sortOrder") === "DESC" ? true : false
@@ -28291,14 +28440,14 @@ const MobileSearchWater = _ref => {
28291
28440
  return [];
28292
28441
  }
28293
28442
  return data === null || data === void 0 ? void 0 : data.map(data => {
28294
- var _data$status, _data$status2;
28443
+ var _data$status, _data$property, _data$status2;
28295
28444
  return {
28296
28445
  [t("WS_MYCONNECTIONS_CONSUMER_NO")]: GetStatusLinkCell(data) || t(`${"WS_NA"}`),
28297
28446
  [t("WS_COMMON_TABLE_COL_SERVICE_LABEL")]: t(`WS_${data === null || data === void 0 ? void 0 : data.service}`),
28298
28447
  [t("WS_COMMON_TABLE_COL_OWN_NAME_LABEL")]: (data === null || data === void 0 ? void 0 : data.owner) || t(`${"WS_NA"}`),
28299
28448
  [t("WS_COMMON_TABLE_COL_STATUS_LABEL")]: t(`WS_${data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()}`),
28300
28449
  [t("WS_COMMON_TABLE_COL_AMT_DUE_LABEL")]: (data === null || data === void 0 ? void 0 : data.due) || t(`${"WS_NA"}`),
28301
- [t("WS_COMMON_TABLE_COL_ADDRESS")]: (data === null || data === void 0 ? void 0 : data.address) || t(`${"WS_NA"}`),
28450
+ [t("WS_COMMON_TABLE_COL_ADDRESS")]: formatPropertyAddress((data === null || data === void 0 ? void 0 : (_data$property = data.property) === null || _data$property === void 0 ? void 0 : _data$property.address) || (data === null || data === void 0 ? void 0 : data.propertyAddress), t) || (data === null || data === void 0 ? void 0 : data.address) || t(`${"WS_NA"}`),
28302
28451
  [t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL")]: (data === null || data === void 0 ? void 0 : (_data$status2 = data.status) === null || _data$status2 === void 0 ? void 0 : _data$status2.toUpperCase()) === "INACTIVE" ? t(`${"WS_NA"}`) : data !== null && data !== void 0 && data.dueDate ? convertEpochToDate(data === null || data === void 0 ? void 0 : data.dueDate) : t(`${"WS_NA"}`),
28303
28452
  [t("WS_COMMON_TABLE_COL_ACTION_LABEL")]: data !== null && data !== void 0 && data.due ? getActionItems(data === null || data === void 0 ? void 0 : data.status, data) : t(`${"WS_NA"}`)
28304
28453
  };
@@ -28515,36 +28664,69 @@ const SearchWaterConnection = _ref => {
28515
28664
  Header: t("WS_COMMON_TABLE_COL_ADDRESS"),
28516
28665
  disableSortBy: true,
28517
28666
  Cell: _ref7 => {
28518
- var _row$original1;
28667
+ var _row$original1, _row$original10, _row$original11, _property$owners, _property$owners$, _row$original12;
28519
28668
  let {
28520
28669
  row
28521
28670
  } = _ref7;
28522
- return GetCell(`${((_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1["address"]) || "NA"}`);
28671
+ const property = (_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1.property;
28672
+ 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);
28673
+ const formattedAddress = formatPropertyAddress(propertyAddress, t) || ((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11["address"]) || t("CS_NA");
28674
+ 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;
28675
+ 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);
28676
+ if (ownerUuid && propId) {
28677
+ var _String;
28678
+ const privacy = {
28679
+ uuid: ownerUuid,
28680
+ fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
28681
+ model: "Property",
28682
+ hide: !propertyAddress,
28683
+ showValue: true,
28684
+ loadData: {
28685
+ serviceName: "/property-services/property/_search",
28686
+ requestBody: {},
28687
+ requestParam: {
28688
+ tenantId: tenantId,
28689
+ propertyIds: propId
28690
+ },
28691
+ jsonPath: "Properties[0].address.street",
28692
+ isArray: false,
28693
+ d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}), t)
28694
+ }
28695
+ };
28696
+ return /*#__PURE__*/React__default.createElement("span", {
28697
+ className: "cell-text"
28698
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
28699
+ value: formattedAddress,
28700
+ iseyevisible: (_String = String(formattedAddress)) === null || _String === void 0 ? void 0 : _String.includes("*"),
28701
+ privacy: privacy
28702
+ }));
28703
+ }
28704
+ return GetCell(formattedAddress);
28523
28705
  }
28524
28706
  }, {
28525
28707
  Header: t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL"),
28526
28708
  disableSortBy: true,
28527
28709
  Cell: _ref8 => {
28528
- var _row$original10, _row$original10$statu, _row$original11, _row$original12;
28710
+ var _row$original13, _row$original13$statu, _row$original14, _row$original15;
28529
28711
  let {
28530
28712
  row
28531
28713
  } = _ref8;
28532
- 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()) || "";
28533
- 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);
28714
+ 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()) || "";
28715
+ const dueDate = ((_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.dueDate) === "NA" ? t("WS_NA") : convertEpochToDate((_row$original15 = row.original) === null || _row$original15 === void 0 ? void 0 : _row$original15.dueDate);
28534
28716
  return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
28535
28717
  }
28536
28718
  }, {
28537
28719
  Header: t("WS_COMMON_TABLE_COL_ACTION_LABEL"),
28538
28720
  disableSortBy: true,
28539
28721
  Cell: _ref9 => {
28540
- var _row$original13;
28722
+ var _row$original16;
28541
28723
  let {
28542
28724
  row
28543
28725
  } = _ref9;
28544
- const amount = (_row$original13 = row.original) === null || _row$original13 === void 0 ? void 0 : _row$original13.due;
28726
+ const amount = (_row$original16 = row.original) === null || _row$original16 === void 0 ? void 0 : _row$original16.due;
28545
28727
  if (amount || amount === 0) {
28546
- var _row$original14;
28547
- return GetCell(getActionItem((_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.status, row));
28728
+ var _row$original17;
28729
+ return GetCell(getActionItem((_row$original17 = row.original) === null || _row$original17 === void 0 ? void 0 : _row$original17.status, row));
28548
28730
  } else {
28549
28731
  return GetCell(t(`${"WS_NA"}`));
28550
28732
  }
@@ -28555,14 +28737,14 @@ const SearchWaterConnection = _ref => {
28555
28737
  disableSortBy: true,
28556
28738
  accessor: "connectionNo",
28557
28739
  Cell: _ref0 => {
28558
- var _row$original15, _row$original16, _row$original17;
28740
+ var _row$original18, _row$original19, _row$original20;
28559
28741
  let {
28560
28742
  row
28561
28743
  } = _ref0;
28562
28744
  return /*#__PURE__*/React__default.createElement("div", null, row.original["connectionNo"] ? /*#__PURE__*/React__default.createElement("span", {
28563
28745
  className: "link"
28564
28746
  }, /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
28565
- 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`
28747
+ to: `/digit-ui/employee/ws/connection-details?applicationNumber=${row.original["connectionNo"]}&tenantId=${tenantId}&service=${(_row$original18 = row.original) === null || _row$original18 === void 0 ? void 0 : _row$original18["service"]}&connectionType=${(_row$original19 = row.original) === null || _row$original19 === void 0 ? void 0 : _row$original19["connectionType"]}&due=${((_row$original20 = row.original) === null || _row$original20 === void 0 ? void 0 : _row$original20.due) || 0}&from=WS_SEWERAGE_CONNECTION_SEARCH_LABEL`
28566
28748
  }, row.original["connectionNo"] || "NA")) : /*#__PURE__*/React__default.createElement("span", null, t("NA")));
28567
28749
  }
28568
28750
  }, {
@@ -28578,11 +28760,11 @@ const SearchWaterConnection = _ref => {
28578
28760
  Header: t("WS_COMMON_TABLE_COL_propertyId_LABEL"),
28579
28761
  disableSortBy: true,
28580
28762
  Cell: _ref10 => {
28581
- var _row$original18, _row$original18$prope;
28763
+ var _row$original21, _row$original21$prope;
28582
28764
  let {
28583
28765
  row
28584
28766
  } = _ref10;
28585
- 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()}`));
28767
+ return GetCell(t(`WS_${(_row$original21 = row.original) === null || _row$original21 === void 0 ? void 0 : (_row$original21$prope = _row$original21["propertyId"]) === null || _row$original21$prope === void 0 ? void 0 : _row$original21$prope.toUpperCase()}`));
28586
28768
  }
28587
28769
  }, {
28588
28770
  Header: t("WS_COMMON_TABLE_COL_ACTION_LABEL"),
@@ -28612,18 +28794,18 @@ const SearchWaterConnection = _ref => {
28612
28794
  }
28613
28795
  };
28614
28796
  return Promise.resolve(Digit.WSService.WSSewsearchDemandGen(payload, window.location.href.includes("ws/sewerage/search-demand") ? "sw" : "ws")).then(function (data) {
28615
- var _row$original19, _row$original20, _row$original21;
28797
+ var _row$original22, _row$original23, _row$original24;
28616
28798
  setShowToast({
28617
28799
  label: `${data}`
28618
28800
  });
28619
- 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`);
28801
+ history.push(`/digit-ui/employee/payment/collect/SW/${encodeURIComponent((_row$original22 = row.original) === null || _row$original22 === void 0 ? void 0 : _row$original22["connectionNo"])}/${(_row$original23 = row.original) === null || _row$original23 === void 0 ? void 0 : _row$original23["tenantId"]}?tenantId=${(_row$original24 = row.original) === null || _row$original24 === void 0 ? void 0 : _row$original24["tenantId"]}?workflow=WS&ISWSCON`);
28620
28802
  });
28621
28803
  } catch (e) {
28622
28804
  return Promise.reject(e);
28623
28805
  }
28624
28806
  };
28625
28807
  const getActionItem = (status, row) => {
28626
- var _row$original22, _row$original23, _row$original24, _row$original25, _row$original26, _row$original27, _row$original28, _row$original29, _row$original30;
28808
+ var _row$original25, _row$original26, _row$original27, _row$original28, _row$original29, _row$original30, _row$original31, _row$original32, _row$original33;
28627
28809
  const userInfo = Digit.UserService.getUser();
28628
28810
  const userRoles = userInfo.info.roles.map(roleData => roleData.code);
28629
28811
  const isUserAllowedToAddMeterReading = userRoles.filter(role => role === "WS_CEMP" || role === "SW_CEMP").length > 0;
@@ -28632,13 +28814,13 @@ const SearchWaterConnection = _ref => {
28632
28814
  case "Active":
28633
28815
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement("span", {
28634
28816
  className: "link"
28635
- }, ((_row$original22 = row.original) === null || _row$original22 === void 0 ? void 0 : _row$original22.service) === "WATER" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
28817
+ }, ((_row$original25 = row.original) === null || _row$original25 === void 0 ? void 0 : _row$original25.service) === "WATER" ? /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
28636
28818
  to: {
28637
- 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`
28819
+ pathname: `/digit-ui/employee/payment/collect/${((_row$original26 = row.original) === null || _row$original26 === void 0 ? void 0 : _row$original26["service"]) === "WATER" ? "WS" : "SW"}/${encodeURIComponent((_row$original27 = row.original) === null || _row$original27 === void 0 ? void 0 : _row$original27["connectionNo"])}/${(_row$original28 = row.original) === null || _row$original28 === void 0 ? void 0 : _row$original28["tenantId"]}?tenantId=${(_row$original29 = row.original) === null || _row$original29 === void 0 ? void 0 : _row$original29["tenantId"]}?workflow=WS&ISWSCON`
28638
28820
  }
28639
28821
  }, t(`${"WS_COMMON_COLLECT_LABEL"}`), " ") : /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
28640
28822
  to: {
28641
- 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`
28823
+ pathname: `/digit-ui/employee/payment/collect/${((_row$original30 = row.original) === null || _row$original30 === void 0 ? void 0 : _row$original30["service"]) === "WATER" ? "WS" : "SW"}/${encodeURIComponent((_row$original31 = row.original) === null || _row$original31 === void 0 ? void 0 : _row$original31["connectionNo"])}/${(_row$original32 = row.original) === null || _row$original32 === void 0 ? void 0 : _row$original32["tenantId"]}?tenantId=${(_row$original33 = row.original) === null || _row$original33 === void 0 ? void 0 : _row$original33["tenantId"]}?workflow=SW&ISWSCON`
28642
28824
  }
28643
28825
  }, t(`${"WS_COMMON_COLLECT_LABEL"}`), " ")));
28644
28826
  }
@@ -28752,6 +28934,7 @@ const SearchWaterConnection = _ref => {
28752
28934
  pageSizeLimit: getValues("limit"),
28753
28935
  onSort: onSort,
28754
28936
  disableSort: false,
28937
+ autoSort: false,
28755
28938
  sortParams: [{
28756
28939
  id: getValues("sortBy"),
28757
28940
  desc: getValues("sortOrder") === "DESC" ? true : false
@@ -28777,6 +28960,7 @@ const SearchWaterConnection = _ref => {
28777
28960
  pageSizeLimit: getValues("limit"),
28778
28961
  onSort: onSort,
28779
28962
  disableSort: false,
28963
+ autoSort: false,
28780
28964
  sortParams: [{
28781
28965
  id: getValues("sortBy"),
28782
28966
  desc: getValues("sortOrder") === "DESC" ? true : false
@@ -34651,27 +34835,27 @@ const checkForNA$2 = value => {
34651
34835
  return value ? value : "CS_NA";
34652
34836
  };
34653
34837
  const WSApplicationDetails = () => {
34654
- var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect6, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$WaterConnection10, _data$SewerageConnect1, _data$SewerageConnect10, _data$WaterConnection11, _data$WaterConnection12, _data$SewerageConnect11, _data$SewerageConnect12, _data$WaterConnection13, _data$SewerageConnect13, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _appDetailsData$appli, _data$WaterConnection38, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect34, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _appDetailsData$appli2, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _applicationData$addi, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect113, _data$SewerageConnect114, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect117, _data$SewerageConnect118, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _applicationData$addi4, _applicationData$addi5, _applicationData$addi6, _applicationData$prop, _applicationData$prop2, _applicationData$prop3, _applicationData$addi7, _applicationData$addi8, _applicationData$prop4, _applicationData$prop5, _applicationData$addi9, _applicationData$addi0, _applicationData$prop6, _applicationData$prop7, _applicationData$dueV, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$WaterConnection177, _data$SewerageConnect171, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$WaterConnection185, _data$WaterConnection186, _data$SewerageConnect178, _data$SewerageConnect179, _data$WaterConnection187, _data$WaterConnection188, _data$SewerageConnect180;
34838
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect6, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$WaterConnection10, _data$SewerageConnect1, _data$SewerageConnect10, _data$WaterConnection11, _data$WaterConnection12, _data$SewerageConnect11, _data$SewerageConnect12, _data$WaterConnection13, _data$SewerageConnect13, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _appDetailsData$appli, _data$WaterConnection38, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect34, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _appDetailsData$appli2, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _applicationData$addi, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect113, _data$SewerageConnect114, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties9, _PTData$Properties9$, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect117, _data$SewerageConnect118, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties0, _PTData$Properties0$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties1, _PTData$Properties1$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties10, _PTData$Properties10$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _applicationData$addi4, _applicationData$addi5, _applicationData$addi6, _applicationData$prop, _applicationData$prop2, _applicationData$prop3, _applicationData$addi7, _applicationData$addi8, _applicationData$prop4, _applicationData$prop5, _applicationData$addi9, _applicationData$addi0, _applicationData$prop6, _applicationData$prop7, _applicationData$dueV, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$WaterConnection177, _data$SewerageConnect171, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$WaterConnection185, _data$WaterConnection186, _data$SewerageConnect178, _data$SewerageConnect179, _data$WaterConnection187, _data$WaterConnection188, _data$SewerageConnect180;
34655
34839
  const getDisconnectionNoticeSearch = function () {
34656
34840
  try {
34657
34841
  var _data$WaterConnection190, _data$WaterConnection191, _data$SewerageConnect182, _data$SewerageConnect183;
34658
34842
  let key = "ws-waterdisconnectionnotice";
34659
34843
  let details = {};
34660
34844
  if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
34661
- var _data$WaterConnection189, _PTData$Properties11;
34845
+ var _data$WaterConnection189, _PTData$Properties12;
34662
34846
  details = {
34663
34847
  WaterConnection: [{
34664
34848
  ...(data === null || data === void 0 ? void 0 : (_data$WaterConnection189 = data.WaterConnection) === null || _data$WaterConnection189 === void 0 ? void 0 : _data$WaterConnection189[0]),
34665
- property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : _PTData$Properties11[0]
34849
+ property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
34666
34850
  }]
34667
34851
  };
34668
34852
  } else {
34669
- var _data$SewerageConnect181, _PTData$Properties12;
34853
+ var _data$SewerageConnect181, _PTData$Properties13;
34670
34854
  key = "ws-seweragedisconnectionnotice";
34671
34855
  details = {
34672
34856
  SewerageConnection: [{
34673
34857
  ...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect181 = data.SewerageConnections) === null || _data$SewerageConnect181 === void 0 ? void 0 : _data$SewerageConnect181[0]),
34674
- property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
34858
+ property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties13 = PTData.Properties) === null || _PTData$Properties13 === void 0 ? void 0 : _PTData$Properties13[0]
34675
34859
  }]
34676
34860
  };
34677
34861
  }
@@ -35276,13 +35460,13 @@ const WSApplicationDetails = () => {
35276
35460
  }
35277
35461
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35278
35462
  label: t("WS_PROPERTY_ADDRESS"),
35279
- 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"),
35463
+ text: formatPropertyAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties6 = PTData.Properties) === null || _PTData$Properties6 === void 0 ? void 0 : (_PTData$Properties6$ = _PTData$Properties6[0]) === null || _PTData$Properties6$ === void 0 ? void 0 : _PTData$Properties6$.address) || t("CS_NA"),
35280
35464
  textStyle: {
35281
35465
  wordBreak: "break-word"
35282
35466
  },
35283
35467
  privacy: {
35284
35468
  uuid: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties7 = PTData.Properties) === null || _PTData$Properties7 === void 0 ? void 0 : (_PTData$Properties7$ = _PTData$Properties7[0]) === null || _PTData$Properties7$ === void 0 ? void 0 : (_PTData$Properties7$$ = _PTData$Properties7$.owners) === null || _PTData$Properties7$$ === void 0 ? void 0 : (_PTData$Properties7$$2 = _PTData$Properties7$$[0]) === null || _PTData$Properties7$$2 === void 0 ? void 0 : _PTData$Properties7$$2.uuid,
35285
- fieldName: ["doorNo", "street", "landmark"],
35469
+ fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
35286
35470
  model: "Property",
35287
35471
  hide: !(PTData !== null && PTData !== void 0 && (_PTData$Properties8 = PTData.Properties) !== null && _PTData$Properties8 !== void 0 && (_PTData$Properties8$ = _PTData$Properties8[0]) !== null && _PTData$Properties8$ !== void 0 && _PTData$Properties8$.address),
35288
35472
  showValue: true,
@@ -35291,14 +35475,11 @@ const WSApplicationDetails = () => {
35291
35475
  requestBody: {},
35292
35476
  requestParam: {
35293
35477
  tenantId: tenantId,
35294
- mobileNumber: userMobileNumber
35478
+ propertyIds: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : _PTData$Properties9$.propertyId
35295
35479
  },
35296
35480
  jsonPath: "Properties[0].address.street",
35297
35481
  isArray: false,
35298
- d: res => {
35299
- let resultString = (lodash.get(res, "Properties[0].address.doorNo") ? `${lodash.get(res, "Properties[0].address.doorNo")}, ` : "") + (lodash.get(res, "Properties[0].address.street") ? `${lodash.get(res, "Properties[0].address.street")}, ` : "") + (lodash.get(res, "Properties[0].address.landmark") ? `${lodash.get(res, "Properties[0].address.landmark")}` : "");
35300
- return resultString;
35301
- }
35482
+ d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}))
35302
35483
  }
35303
35484
  }
35304
35485
  }), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
@@ -35385,16 +35566,16 @@ const WSApplicationDetails = () => {
35385
35566
  text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType)))}`
35386
35567
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35387
35568
  label: t("WS_PROPERTY_CATEGORY"),
35388
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe === void 0 ? void 0 : _propertyAdditionalDe.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe2 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe2 === void 0 ? void 0 : _propertyAdditionalDe2.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$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)))}`
35569
+ text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe === void 0 ? void 0 : _propertyAdditionalDe.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe2 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe2 === void 0 ? void 0 : _propertyAdditionalDe2.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : _PTData$Properties0$.usageCategory)))}`
35389
35570
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35390
35571
  label: t("WS_PROPERTY_TYPE"),
35391
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe3 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe3 === void 0 ? void 0 : _propertyAdditionalDe3.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe4 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe4 === void 0 ? void 0 : _propertyAdditionalDe4.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyType) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$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)))}`
35572
+ text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe3 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe3 === void 0 ? void 0 : _propertyAdditionalDe3.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe4 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe4 === void 0 ? void 0 : _propertyAdditionalDe4.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyType) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : _PTData$Properties1$.propertyType)))}`
35392
35573
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35393
35574
  label: t("WS_WATER_CONNECTION_USAGE_TYPE"),
35394
35575
  text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe5 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe5 === void 0 ? void 0 : _propertyAdditionalDe5.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe6 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe6 === void 0 ? void 0 : _propertyAdditionalDe6.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.waterConnectionUsageType)))}`
35395
35576
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35396
35577
  label: t("WS_NUMBER_OF_FLOORS"),
35397
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$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)))}`
35578
+ text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : _PTData$Properties10$.noOfFloors)))}`
35398
35579
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
35399
35580
  label: t("WS_PLOT_AREA"),
35400
35581
  text: `${t(checkForNA$2(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))}`
@@ -35605,10 +35786,10 @@ const WSApplicationDetails = () => {
35605
35786
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
35606
35787
  label: t("MAKE_PAYMENT"),
35607
35788
  onSubmit: () => {
35608
- var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
35789
+ var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _PTData$Properties11, _PTData$Properties11$, _PTData$Properties11$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
35609
35790
  history.push({
35610
35791
  pathname: `/digit-ui/citizen/payment/collect/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService}/${stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+")}`,
35611
- search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : (_data$WaterConnection137 = _data$WaterConnection136[0]) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : (_data$SewerageConnect132 = _data$SewerageConnect131[0]) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : (_data$WaterConnection139 = _data$WaterConnection138[0]) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139.connectionHolders) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : (_data$SewerageConnect134 = _data$SewerageConnect133[0]) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134.connectionHolders) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$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}`,
35792
+ search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : (_data$WaterConnection137 = _data$WaterConnection136[0]) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : (_data$SewerageConnect132 = _data$SewerageConnect131[0]) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : (_data$WaterConnection139 = _data$WaterConnection138[0]) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139.connectionHolders) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : (_data$SewerageConnect134 = _data$SewerageConnect133[0]) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134.connectionHolders) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : (_PTData$Properties11$ = _PTData$Properties11[0]) === null || _PTData$Properties11$ === void 0 ? void 0 : (_PTData$Properties11$2 = _PTData$Properties11$.owners) === null || _PTData$Properties11$2 === void 0 ? void 0 : _PTData$Properties11$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
35612
35793
  state: {
35613
35794
  fromApplicationDetails: true
35614
35795
  }
@@ -39636,25 +39817,27 @@ const CheckPage$1 = () => {
39636
39817
  ...waterConnectionUpdate,
39637
39818
  disconnectRequest: true
39638
39819
  };
39639
- return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
39640
- onError: (error, variables) => {
39641
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
39642
- setIsEnableLoader(false);
39643
- setError({
39644
- key: "error",
39645
- 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
39646
- });
39647
- setTimeout(closeToastOfError, 5000);
39648
- },
39649
- onSuccess: (data, variables) => {
39650
- var _data$WaterConnection2;
39651
- Digit.SessionStorage.set("WS_DISCONNECTION", {
39652
- ...value,
39653
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
39654
- });
39655
- history.push(`/digit-ui/citizen/ws/disconnect-acknowledge`);
39656
- }
39657
- })).then(function () {});
39820
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
39821
+ return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
39822
+ onError: (error, variables) => {
39823
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
39824
+ setIsEnableLoader(false);
39825
+ setError({
39826
+ key: "error",
39827
+ 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
39828
+ });
39829
+ setTimeout(closeToastOfError, 5000);
39830
+ },
39831
+ onSuccess: (data, variables) => {
39832
+ var _data$WaterConnection2;
39833
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
39834
+ ...value,
39835
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
39836
+ });
39837
+ history.push(`/digit-ui/citizen/ws/disconnect-acknowledge`);
39838
+ }
39839
+ })).then(function () {});
39840
+ });
39658
39841
  });
39659
39842
  } catch (e) {
39660
39843
  return Promise.reject(e);
@@ -39691,25 +39874,27 @@ const CheckPage$1 = () => {
39691
39874
  ...sewerageConnectionUpdate,
39692
39875
  disconnectRequest: true
39693
39876
  };
39694
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
39695
- onError: (error, variables) => {
39696
- var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
39697
- setIsEnableLoader(false);
39698
- setError({
39699
- key: "error",
39700
- 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
39701
- });
39702
- setTimeout(closeToastOfError, 5000);
39703
- },
39704
- onSuccess: (data, variables) => {
39705
- var _data$SewerageConnect2;
39706
- Digit.SessionStorage.set("WS_DISCONNECTION", {
39707
- ...value,
39708
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
39709
- });
39710
- history.push(`/digit-ui/citizen/ws/disconnect-acknowledge`);
39711
- }
39712
- })).then(function () {});
39877
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
39878
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
39879
+ onError: (error, variables) => {
39880
+ var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
39881
+ setIsEnableLoader(false);
39882
+ setError({
39883
+ key: "error",
39884
+ 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
39885
+ });
39886
+ setTimeout(closeToastOfError, 5000);
39887
+ },
39888
+ onSuccess: (data, variables) => {
39889
+ var _data$SewerageConnect2;
39890
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
39891
+ ...value,
39892
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
39893
+ });
39894
+ history.push(`/digit-ui/citizen/ws/disconnect-acknowledge`);
39895
+ }
39896
+ })).then(function () {});
39897
+ });
39713
39898
  });
39714
39899
  } catch (e) {
39715
39900
  return Promise.reject(e);
@@ -39875,25 +40060,27 @@ const CheckPage$2 = () => {
39875
40060
  disconnectRequest: false,
39876
40061
  reconnectRequest: true
39877
40062
  };
39878
- return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
39879
- onError: (error, variables) => {
39880
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
39881
- setIsEnableLoader(false);
39882
- setError({
39883
- key: "error",
39884
- 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
39885
- });
39886
- setTimeout(closeToastOfError, 5000);
39887
- },
39888
- onSuccess: (data, variables) => {
39889
- var _data$WaterConnection2;
39890
- Digit.SessionStorage.set("WS_DISCONNECTION", {
39891
- ...value,
39892
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
39893
- });
39894
- history.push(`/digit-ui/citizen/ws/restoration-acknowledge`);
39895
- }
39896
- })).then(function () {});
40063
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
40064
+ return Promise.resolve(waterUpdateMutation(waterConnectionUpdate, {
40065
+ onError: (error, variables) => {
40066
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response4, _error$response4$data, _error$response4$data2;
40067
+ setIsEnableLoader(false);
40068
+ setError({
40069
+ key: "error",
40070
+ 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
40071
+ });
40072
+ setTimeout(closeToastOfError, 5000);
40073
+ },
40074
+ onSuccess: (data, variables) => {
40075
+ var _data$WaterConnection2;
40076
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
40077
+ ...value,
40078
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
40079
+ });
40080
+ history.push(`/digit-ui/citizen/ws/restoration-acknowledge`);
40081
+ }
40082
+ })).then(function () {});
40083
+ });
39897
40084
  });
39898
40085
  } catch (e) {
39899
40086
  return Promise.reject(e);
@@ -39937,25 +40124,27 @@ const CheckPage$2 = () => {
39937
40124
  disconnectRequest: false,
39938
40125
  reconnectRequest: true
39939
40126
  };
39940
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
39941
- onError: (error, variables) => {
39942
- var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
39943
- setIsEnableLoader(false);
39944
- setError({
39945
- key: "error",
39946
- 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
39947
- });
39948
- setTimeout(closeToastOfError, 5000);
39949
- },
39950
- onSuccess: (data, variables) => {
39951
- var _data$SewerageConnect2;
39952
- Digit.SessionStorage.set("WS_DISCONNECTION", {
39953
- ...value,
39954
- DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
39955
- });
39956
- history.push(`/digit-ui/citizen/ws/restoration-acknowledge`);
39957
- }
39958
- })).then(function () {});
40127
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
40128
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
40129
+ onError: (error, variables) => {
40130
+ var _error$response7, _error$response7$data, _error$response7$data2, _error$response8, _error$response8$data, _error$response8$data2;
40131
+ setIsEnableLoader(false);
40132
+ setError({
40133
+ key: "error",
40134
+ 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
40135
+ });
40136
+ setTimeout(closeToastOfError, 5000);
40137
+ },
40138
+ onSuccess: (data, variables) => {
40139
+ var _data$SewerageConnect2;
40140
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
40141
+ ...value,
40142
+ DisconnectionResponse: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
40143
+ });
40144
+ history.push(`/digit-ui/citizen/ws/restoration-acknowledge`);
40145
+ }
40146
+ })).then(function () {});
40147
+ });
39959
40148
  });
39960
40149
  } catch (e) {
39961
40150
  return Promise.reject(e);
@@ -44096,82 +44285,86 @@ const NewApplication = () => {
44096
44285
  disconnectRequest: false,
44097
44286
  reconnectRequest: false
44098
44287
  };
44099
- waterUpdateMutation(waterConnectionUpdate, {
44100
- onError: error => {
44101
- var _error$response2, _error$response2$data, _error$response2$data2;
44102
- setIsEnableLoader(false);
44103
- setShowToast({
44104
- key: "error",
44105
- 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
44106
- });
44107
- setTimeout(closeToastOfError, 5000);
44108
- },
44109
- onSuccess: function (waterUpdateData) {
44110
- try {
44111
- setAppDetails(prev => {
44112
- var _waterUpdateData$Wate;
44113
- return {
44114
- ...prev,
44115
- waterConnection: waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : _waterUpdateData$Wate[0]
44116
- };
44288
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
44289
+ waterUpdateMutation(waterConnectionUpdate, {
44290
+ onError: error => {
44291
+ var _error$response2, _error$response2$data, _error$response2$data2;
44292
+ setIsEnableLoader(false);
44293
+ setShowToast({
44294
+ key: "error",
44295
+ 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
44117
44296
  });
44118
- return Promise.resolve(sewerageMutation(sewerageConnection, {
44119
- onError: error => {
44120
- var _error$response3, _error$response3$data, _error$response3$data2;
44121
- setIsEnableLoader(false);
44122
- setShowToast({
44123
- key: "error",
44124
- 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
44125
- });
44126
- setTimeout(closeToastOfError, 5000);
44127
- },
44128
- onSuccess: function (sewerageData) {
44129
- try {
44130
- var _sewerageData$Sewerag;
44131
- 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) {
44132
- let sewerageConnectionUpdate = {
44133
- SewerageConnection: response,
44134
- disconnectRequest: false,
44135
- reconnectRequest: false
44136
- };
44137
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
44138
- onError: error => {
44139
- var _error$response4, _error$response4$data, _error$response4$data2;
44140
- setIsEnableLoader(false);
44141
- setShowToast({
44142
- key: "error",
44143
- 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
44144
- });
44145
- setTimeout(closeToastOfError, 5000);
44146
- },
44147
- onSuccess: function (sewerageUpdateData) {
44148
- try {
44149
- var _waterUpdateData$Wate2, _waterUpdateData$Wate3, _sewerageUpdateData$S2, _sewerageUpdateData$S3;
44150
- setAppDetails(prev => {
44151
- var _sewerageUpdateData$S;
44152
- return {
44153
- ...prev,
44154
- sewerageConnection: sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : _sewerageUpdateData$S[0]
44155
- };
44156
- });
44157
- window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44158
- 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}`);
44159
- return Promise.resolve();
44160
- } catch (e) {
44161
- return Promise.reject(e);
44162
- }
44163
- }
44164
- })).then(function () {});
44297
+ setTimeout(closeToastOfError, 5000);
44298
+ },
44299
+ onSuccess: function (waterUpdateData) {
44300
+ try {
44301
+ setAppDetails(prev => {
44302
+ var _waterUpdateData$Wate;
44303
+ return {
44304
+ ...prev,
44305
+ waterConnection: waterUpdateData === null || waterUpdateData === void 0 ? void 0 : (_waterUpdateData$Wate = waterUpdateData.WaterConnection) === null || _waterUpdateData$Wate === void 0 ? void 0 : _waterUpdateData$Wate[0]
44306
+ };
44307
+ });
44308
+ return Promise.resolve(sewerageMutation(sewerageConnection, {
44309
+ onError: error => {
44310
+ var _error$response3, _error$response3$data, _error$response3$data2;
44311
+ setIsEnableLoader(false);
44312
+ setShowToast({
44313
+ key: "error",
44314
+ 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
44165
44315
  });
44166
- } catch (e) {
44167
- return Promise.reject(e);
44316
+ setTimeout(closeToastOfError, 5000);
44317
+ },
44318
+ onSuccess: function (sewerageData) {
44319
+ try {
44320
+ var _sewerageData$Sewerag;
44321
+ 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) {
44322
+ let sewerageConnectionUpdate = {
44323
+ SewerageConnection: response,
44324
+ disconnectRequest: false,
44325
+ reconnectRequest: false
44326
+ };
44327
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
44328
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
44329
+ onError: error => {
44330
+ var _error$response4, _error$response4$data, _error$response4$data2;
44331
+ setIsEnableLoader(false);
44332
+ setShowToast({
44333
+ key: "error",
44334
+ 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
44335
+ });
44336
+ setTimeout(closeToastOfError, 5000);
44337
+ },
44338
+ onSuccess: function (sewerageUpdateData) {
44339
+ try {
44340
+ var _waterUpdateData$Wate2, _waterUpdateData$Wate3, _sewerageUpdateData$S2, _sewerageUpdateData$S3;
44341
+ setAppDetails(prev => {
44342
+ var _sewerageUpdateData$S;
44343
+ return {
44344
+ ...prev,
44345
+ sewerageConnection: sewerageUpdateData === null || sewerageUpdateData === void 0 ? void 0 : (_sewerageUpdateData$S = sewerageUpdateData.SewerageConnections) === null || _sewerageUpdateData$S === void 0 ? void 0 : _sewerageUpdateData$S[0]
44346
+ };
44347
+ });
44348
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44349
+ 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}`);
44350
+ return Promise.resolve();
44351
+ } catch (e) {
44352
+ return Promise.reject(e);
44353
+ }
44354
+ }
44355
+ })).then(function () {});
44356
+ });
44357
+ });
44358
+ } catch (e) {
44359
+ return Promise.reject(e);
44360
+ }
44168
44361
  }
44169
- }
44170
- })).then(function () {});
44171
- } catch (e) {
44172
- return Promise.reject(e);
44362
+ })).then(function () {});
44363
+ } catch (e) {
44364
+ return Promise.reject(e);
44365
+ }
44173
44366
  }
44174
- }
44367
+ });
44175
44368
  });
44176
44369
  });
44177
44370
  } catch (e) {
@@ -44205,28 +44398,30 @@ const NewApplication = () => {
44205
44398
  let waterConnectionUpdate = {
44206
44399
  WaterConnection: response
44207
44400
  };
44208
- waterUpdateMutation(waterConnectionUpdate, {
44209
- onError: error => {
44210
- var _error$response6, _error$response6$data, _error$response6$data2;
44211
- setIsEnableLoader(false);
44212
- setShowToast({
44213
- key: "error",
44214
- 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
44215
- });
44216
- setTimeout(closeToastOfError, 5000);
44217
- },
44218
- onSuccess: data => {
44219
- var _data$WaterConnection3, _data$WaterConnection4;
44220
- setAppDetails(prev => {
44221
- var _data$WaterConnection2;
44222
- return {
44223
- ...prev,
44224
- waterConnection: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
44225
- };
44226
- });
44227
- window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44228
- 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}`);
44229
- }
44401
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
44402
+ waterUpdateMutation(waterConnectionUpdate, {
44403
+ onError: error => {
44404
+ var _error$response6, _error$response6$data, _error$response6$data2;
44405
+ setIsEnableLoader(false);
44406
+ setShowToast({
44407
+ key: "error",
44408
+ 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
44409
+ });
44410
+ setTimeout(closeToastOfError, 5000);
44411
+ },
44412
+ onSuccess: data => {
44413
+ var _data$WaterConnection3, _data$WaterConnection4;
44414
+ setAppDetails(prev => {
44415
+ var _data$WaterConnection2;
44416
+ return {
44417
+ ...prev,
44418
+ waterConnection: data === null || data === void 0 ? void 0 : (_data$WaterConnection2 = data.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]
44419
+ };
44420
+ });
44421
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44422
+ 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}`);
44423
+ }
44424
+ });
44230
44425
  });
44231
44426
  });
44232
44427
  } catch (e) {
@@ -44260,29 +44455,31 @@ const NewApplication = () => {
44260
44455
  let sewerageConnectionUpdate = {
44261
44456
  SewerageConnection: response
44262
44457
  };
44263
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
44264
- onError: error => {
44265
- var _error$response8, _error$response8$data, _error$response8$data2;
44266
- setIsEnableLoader(false);
44267
- setShowToast({
44268
- key: "error",
44269
- 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
44270
- });
44271
- setTimeout(closeToastOfError, 5000);
44272
- },
44273
- onSuccess: data => {
44274
- var _data$SewerageConnect3, _data$SewerageConnect4;
44275
- setAppDetails(prev => {
44276
- var _data$SewerageConnect2;
44277
- return {
44278
- ...prev,
44279
- sewerageConnection: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
44280
- };
44281
- });
44282
- window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44283
- 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}`);
44284
- }
44285
- })).then(function () {});
44458
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
44459
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
44460
+ onError: error => {
44461
+ var _error$response8, _error$response8$data, _error$response8$data2;
44462
+ setIsEnableLoader(false);
44463
+ setShowToast({
44464
+ key: "error",
44465
+ 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
44466
+ });
44467
+ setTimeout(closeToastOfError, 5000);
44468
+ },
44469
+ onSuccess: data => {
44470
+ var _data$SewerageConnect3, _data$SewerageConnect4;
44471
+ setAppDetails(prev => {
44472
+ var _data$SewerageConnect2;
44473
+ return {
44474
+ ...prev,
44475
+ sewerageConnection: data === null || data === void 0 ? void 0 : (_data$SewerageConnect2 = data.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0]
44476
+ };
44477
+ });
44478
+ window.sessionStorage.removeItem(FORM_STORAGE_KEY);
44479
+ 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}`);
44480
+ }
44481
+ })).then(function () {});
44482
+ });
44286
44483
  });
44287
44484
  } catch (e) {
44288
44485
  return Promise.reject(e);
@@ -53107,7 +53304,7 @@ function ApplicationDetailsToast(_ref) {
53107
53304
  }
53108
53305
 
53109
53306
  function ApplicationDetailsActionBar(_ref) {
53110
- 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$;
53307
+ 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$;
53111
53308
  let {
53112
53309
  workflowDetails,
53113
53310
  displayMenu,
@@ -53169,30 +53366,50 @@ function ApplicationDetailsActionBar(_ref) {
53169
53366
  return (_e$roles2 = e.roles) === null || _e$roles2 === void 0 ? void 0 : _e$roles2.includes(role);
53170
53367
  })) || !e.roles;
53171
53368
  }));
53172
- 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;
53173
- if (completelySatisfied !== undefined) {
53369
+ 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);
53370
+ const hasDirectSendBack = (_actions = actions) === null || _actions === void 0 ? void 0 : _actions.some(e => e.action === "SEND_BACK_TO_CITIZEN_DIRECT");
53371
+ 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;
53372
+ if (!isMutationOrReconnection && hasDirectSendBack && completelySatisfied !== undefined) {
53174
53373
  if (completelySatisfied === true) {
53175
- var _actions;
53176
- actions = (_actions = actions) === null || _actions === void 0 ? void 0 : _actions.filter(e => e.action !== "SEND_BACK_TO_CITIZEN");
53177
- } else if (completelySatisfied === false) {
53178
53374
  var _actions2;
53179
- actions = (_actions2 = actions) === null || _actions2 === void 0 ? void 0 : _actions2.filter(e => e.action !== "SEND_BACK_TO_CITIZEN_DIRECT");
53375
+ actions = (_actions2 = actions) === null || _actions2 === void 0 ? void 0 : _actions2.filter(e => e.action !== "SEND_BACK_TO_CITIZEN");
53376
+ } else if (completelySatisfied === false) {
53377
+ var _actions3;
53378
+ actions = (_actions3 = actions) === null || _actions3 === void 0 ? void 0 : _actions3.filter(e => e.action !== "SEND_BACK_TO_CITIZEN_DIRECT");
53180
53379
  }
53181
53380
  }
53381
+ (_actions4 = actions) === null || _actions4 === void 0 ? void 0 : _actions4.forEach(action => {
53382
+ if ((action === null || action === void 0 ? void 0 : action.action) === "SEND_BACK_TO_CITIZEN" && !action.forcedName) {
53383
+ const primaryKey = forcedActionPrefix ? `${forcedActionPrefix}_SEND_BACK_TO_CITIZEN` : `WF_EMPLOYEE_${businessService === null || businessService === void 0 ? void 0 : businessService.toUpperCase()}_SEND_BACK_TO_CITIZEN`;
53384
+ const translatedPrimary = t(primaryKey);
53385
+ if (translatedPrimary && translatedPrimary !== primaryKey) {
53386
+ action.forcedName = primaryKey;
53387
+ } else {
53388
+ 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"];
53389
+ for (const fbKey of fallbackKeys) {
53390
+ const trans = t(fbKey);
53391
+ if (trans && trans !== fbKey) {
53392
+ action.forcedName = fbKey;
53393
+ break;
53394
+ }
53395
+ }
53396
+ }
53397
+ }
53398
+ });
53182
53399
  const closeMenu = () => {
53183
53400
  setDisplayMenu(false);
53184
53401
  };
53185
53402
  Digit.Hooks.useClickOutside(menuRef, closeMenu, displayMenu);
53186
- 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) {
53403
+ 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) {
53187
53404
  isMenuBotton = false;
53188
53405
  isSingleButton = true;
53189
- } else if (((_actions6 = actions) === null || _actions6 === void 0 ? void 0 : _actions6.length) > 0) {
53406
+ } else if (((_actions8 = actions) === null || _actions8 === void 0 ? void 0 : _actions8.length) > 0) {
53190
53407
  isMenuBotton = true;
53191
53408
  isSingleButton = false;
53192
53409
  }
53193
53410
  const Session = Digit.SessionStorage.get("User");
53194
53411
  const uuid = Session === null || Session === void 0 ? void 0 : (_Session$info = Session.info) === null || _Session$info === void 0 ? void 0 : _Session$info.uuid;
53195
- 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;
53412
+ 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;
53196
53413
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && isMenuBotton && !isSingleButton && !isAction && /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
53197
53414
  style: {
53198
53415
  ...ActionBarStyle
@@ -53230,13 +53447,13 @@ function ApplicationDetailsActionBar(_ref) {
53230
53447
  fontSize: "18px"
53231
53448
  },
53232
53449
  className: "submit-bar",
53233
- name: (_actions7 = actions) === null || _actions7 === void 0 ? void 0 : (_actions7$ = _actions7[0]) === null || _actions7$ === void 0 ? void 0 : _actions7$.action,
53234
- value: (_actions8 = actions) === null || _actions8 === void 0 ? void 0 : (_actions8$ = _actions8[0]) === null || _actions8$ === void 0 ? void 0 : _actions8$.action,
53450
+ name: (_actions9 = actions) === null || _actions9 === void 0 ? void 0 : (_actions9$ = _actions9[0]) === null || _actions9$ === void 0 ? void 0 : _actions9$.action,
53451
+ value: (_actions0 = actions) === null || _actions0 === void 0 ? void 0 : (_actions0$ = _actions0[0]) === null || _actions0$ === void 0 ? void 0 : _actions0$.action,
53235
53452
  onClick: e => {
53236
- var _actions9;
53237
- onActionSelect(((_actions9 = actions) === null || _actions9 === void 0 ? void 0 : _actions9[0]) || {});
53453
+ var _actions1;
53454
+ onActionSelect(((_actions1 = actions) === null || _actions1 === void 0 ? void 0 : _actions1[0]) || {});
53238
53455
  }
53239
- }, 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}`))));
53456
+ }, 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}`))));
53240
53457
  }
53241
53458
 
53242
53459
  const Close$f = () => /*#__PURE__*/React__default.createElement("svg", {
@@ -55257,7 +55474,7 @@ const SearchWater = _ref => {
55257
55474
  config,
55258
55475
  bussinessService: businessServ,
55259
55476
  t,
55260
- shortAddress: true
55477
+ shortAddress: false
55261
55478
  });
55262
55479
  const isMobile = window.Digit.Utils.browser.isMobile();
55263
55480
  if (result !== null && result !== void 0 && result.isLoading && isMobile) {
@@ -56779,21 +56996,23 @@ const ModifyApplication = () => {
56779
56996
  reconnectRequest: false,
56780
56997
  disconnectRequest: false
56781
56998
  };
56782
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
56783
- onError: (error, variables) => {
56784
- setIsEnableLoader(false);
56785
- setShowToast({
56786
- key: "error",
56787
- message: error !== null && error !== void 0 && error.message ? error.message : error
56788
- });
56789
- setTimeout(closeToastOfError, 5000);
56790
- },
56791
- onSuccess: (data, variables) => {
56792
- var _data$SewerageConnect2, _data$SewerageConnect3;
56793
- clearSessionFormData();
56794
- 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}`);
56795
- }
56796
- })).then(function () {});
56999
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
57000
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
57001
+ onError: (error, variables) => {
57002
+ setIsEnableLoader(false);
57003
+ setShowToast({
57004
+ key: "error",
57005
+ message: error !== null && error !== void 0 && error.message ? error.message : error
57006
+ });
57007
+ setTimeout(closeToastOfError, 5000);
57008
+ },
57009
+ onSuccess: (data, variables) => {
57010
+ var _data$SewerageConnect2, _data$SewerageConnect3;
57011
+ clearSessionFormData();
57012
+ 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}`);
57013
+ }
57014
+ })).then(function () {});
57015
+ });
56797
57016
  });
56798
57017
  } catch (e) {
56799
57018
  return Promise.reject(e);
@@ -56848,21 +57067,23 @@ const ModifyApplication = () => {
56848
57067
  reconnectRequest: false,
56849
57068
  disconnectRequest: false
56850
57069
  };
56851
- waterUpdateMutation(waterConnectionUpdate, {
56852
- onError: (error, variables) => {
56853
- var _error$response5, _error$response5$data, _error$response5$data2, _error$response6, _error$response6$data, _error$response6$data2;
56854
- setIsEnableLoader(false);
56855
- setShowToast({
56856
- key: "error",
56857
- 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
56858
- });
56859
- setTimeout(closeToastOfError, 5000);
56860
- },
56861
- onSuccess: (data, variables) => {
56862
- var _data$WaterConnection2, _data$WaterConnection3;
56863
- clearSessionFormData();
56864
- 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}`);
56865
- }
57070
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
57071
+ waterUpdateMutation(waterConnectionUpdate, {
57072
+ onError: (error, variables) => {
57073
+ var _error$response5, _error$response5$data, _error$response5$data2, _error$response6, _error$response6$data, _error$response6$data2;
57074
+ setIsEnableLoader(false);
57075
+ setShowToast({
57076
+ key: "error",
57077
+ 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
57078
+ });
57079
+ setTimeout(closeToastOfError, 5000);
57080
+ },
57081
+ onSuccess: (data, variables) => {
57082
+ var _data$WaterConnection2, _data$WaterConnection3;
57083
+ clearSessionFormData();
57084
+ 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}`);
57085
+ }
57086
+ });
56866
57087
  });
56867
57088
  });
56868
57089
  } catch (e) {
@@ -59888,94 +60109,103 @@ const MutationApplication = () => {
59888
60109
  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"
59889
60110
  });
59890
60111
  },
59891
- onSuccess: data => {
59892
- var _data$response, _data$response$data;
59893
- 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) {
59894
- var _data$response2, _data$response2$data, _apiErrors$2;
59895
- setIsSubmitting(false);
59896
- 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;
59897
- 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";
59898
- setShowToast({
59899
- key: "error",
59900
- message: errorMessage
59901
- });
59902
- return;
59903
- }
59904
- if (data !== null && data !== void 0 && data.Errors && data.Errors.length > 0) {
59905
- setIsSubmitting(false);
59906
- setShowToast({
59907
- key: "error",
59908
- message: data.Errors[0].message || "Failed to submit application"
59909
- });
59910
- } else {
59911
- var _data$WaterConnection, _data$SewerageConnect, _updatePayload2, _updatePayload2$docum, _Digit2, _Digit2$Customization, _Digit2$Customization2;
59912
- const updateMutation = resolvedServiceType === "WATER" ? waterUpdateMutation : sewerageUpdateMutation;
59913
- 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];
59914
- let updatePayload = {
59915
- ...createdConnection,
59916
- dateEffectiveFrom: (createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.dateEffectiveFrom) || Date.now(),
59917
- processInstance: {
59918
- ...(createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.processInstance),
59919
- action: "APPLY_MUTATION"
59920
- }
59921
- };
59922
- const combinedExistingDocs = [...existingDocs, ...((createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.documents) || [])];
59923
- 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) {
59924
- updatePayload.documents = mapExistingDocIdsToPayload(updatePayload.documents, combinedExistingDocs);
59925
- }
59926
- 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) {
59927
- updatePayload = Digit.Customizations.WS.customiseUpdatePayloadOfWS(createdConnection, updatePayload, resolvedServiceType);
60112
+ onSuccess: function (data) {
60113
+ try {
60114
+ var _data$response, _data$response$data;
60115
+ 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) {
60116
+ var _data$response2, _data$response2$data, _apiErrors$2;
60117
+ setIsSubmitting(false);
60118
+ 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;
60119
+ 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";
60120
+ setShowToast({
60121
+ key: "error",
60122
+ message: errorMessage
60123
+ });
60124
+ return Promise.resolve();
59928
60125
  }
59929
- let reqDetailsUpdate = resolvedServiceType === "WATER" ? {
59930
- WaterConnection: updatePayload,
59931
- reconnectRequest: false,
59932
- disconnectRequest: false
59933
- } : {
59934
- SewerageConnection: updatePayload,
59935
- reconnectRequest: false,
59936
- disconnectRequest: false
59937
- };
59938
- updateMutation(reqDetailsUpdate, {
59939
- onError: error => {
59940
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
60126
+ const _temp2 = function () {
60127
+ if (data !== null && data !== void 0 && data.Errors && data.Errors.length > 0) {
59941
60128
  setIsSubmitting(false);
59942
60129
  setShowToast({
59943
60130
  key: "error",
59944
- 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"
60131
+ message: data.Errors[0].message || "Failed to submit application"
59945
60132
  });
59946
- },
59947
- onSuccess: updateData => {
59948
- var _updateData$response4, _updateData$response5, _updateData$WaterConn3, _updateData$WaterConn4, _updateData$SewerageC3, _updateData$SewerageC4;
59949
- setIsSubmitting(false);
59950
- 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) {
59951
- var _updateData$response6, _updateData$response7, _apiErrors$3;
59952
- 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;
59953
- 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";
59954
- setShowToast({
59955
- key: "error",
59956
- message: errorMessage
59957
- });
59958
- return;
60133
+ } else {
60134
+ var _data$WaterConnection, _data$SewerageConnect, _updatePayload2, _updatePayload2$docum, _Digit2, _Digit2$Customization, _Digit2$Customization2;
60135
+ const updateMutation = resolvedServiceType === "WATER" ? waterUpdateMutation : sewerageUpdateMutation;
60136
+ 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];
60137
+ let updatePayload = {
60138
+ ...createdConnection,
60139
+ dateEffectiveFrom: (createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.dateEffectiveFrom) || Date.now(),
60140
+ processInstance: {
60141
+ ...(createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.processInstance),
60142
+ action: "APPLY_MUTATION"
60143
+ }
60144
+ };
60145
+ const combinedExistingDocs = [...existingDocs, ...((createdConnection === null || createdConnection === void 0 ? void 0 : createdConnection.documents) || [])];
60146
+ 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) {
60147
+ updatePayload.documents = mapExistingDocIdsToPayload(updatePayload.documents, combinedExistingDocs);
59959
60148
  }
59960
- if (updateData !== null && updateData !== void 0 && updateData.Errors && updateData.Errors.length > 0) {
59961
- setShowToast({
59962
- key: "error",
59963
- message: updateData.Errors[0].message || "Failed to update workflow"
59964
- });
59965
- return;
60149
+ 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) {
60150
+ updatePayload = Digit.Customizations.WS.customiseUpdatePayloadOfWS(createdConnection, updatePayload, resolvedServiceType);
59966
60151
  }
59967
- clearSessionFormData();
59968
- clearFormData();
59969
- clearCompletedSteps();
59970
- clearAuthKNumber();
59971
- clearAuthMobileNumber();
59972
- clearAuthServiceType();
59973
- clearAuthActiveConnection();
59974
- 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;
59975
- setGeneratedAppNo(newAppNo);
59976
- history.push(`${path}/submission`);
60152
+ let reqDetailsUpdate = resolvedServiceType === "WATER" ? {
60153
+ WaterConnection: updatePayload,
60154
+ reconnectRequest: false,
60155
+ disconnectRequest: false
60156
+ } : {
60157
+ SewerageConnection: updatePayload,
60158
+ reconnectRequest: false,
60159
+ disconnectRequest: false
60160
+ };
60161
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
60162
+ updateMutation(reqDetailsUpdate, {
60163
+ onError: error => {
60164
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
60165
+ setIsSubmitting(false);
60166
+ setShowToast({
60167
+ key: "error",
60168
+ 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"
60169
+ });
60170
+ },
60171
+ onSuccess: updateData => {
60172
+ var _updateData$response4, _updateData$response5, _updateData$WaterConn3, _updateData$WaterConn4, _updateData$SewerageC3, _updateData$SewerageC4;
60173
+ setIsSubmitting(false);
60174
+ 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) {
60175
+ var _updateData$response6, _updateData$response7, _apiErrors$3;
60176
+ 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;
60177
+ 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";
60178
+ setShowToast({
60179
+ key: "error",
60180
+ message: errorMessage
60181
+ });
60182
+ return;
60183
+ }
60184
+ if (updateData !== null && updateData !== void 0 && updateData.Errors && updateData.Errors.length > 0) {
60185
+ setShowToast({
60186
+ key: "error",
60187
+ message: updateData.Errors[0].message || "Failed to update workflow"
60188
+ });
60189
+ return;
60190
+ }
60191
+ clearSessionFormData();
60192
+ clearFormData();
60193
+ clearCompletedSteps();
60194
+ clearAuthKNumber();
60195
+ clearAuthMobileNumber();
60196
+ clearAuthServiceType();
60197
+ clearAuthActiveConnection();
60198
+ 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;
60199
+ setGeneratedAppNo(newAppNo);
60200
+ history.push(`${path}/submission`);
60201
+ }
60202
+ });
60203
+ });
59977
60204
  }
59978
- });
60205
+ }();
60206
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
60207
+ } catch (e) {
60208
+ return Promise.reject(e);
59979
60209
  }
59980
60210
  }
59981
60211
  })).then(function () {});
@@ -61758,22 +61988,55 @@ const SearchWaterConnectionIntegrated = _ref => {
61758
61988
  Header: t("WS_COMMON_TABLE_COL_ADDRESS"),
61759
61989
  disableSortBy: true,
61760
61990
  Cell: _ref7 => {
61761
- var _row$original0;
61991
+ var _row$original0, _row$original1, _row$original10, _property$owners, _property$owners$, _row$original11;
61762
61992
  let {
61763
61993
  row
61764
61994
  } = _ref7;
61765
- return GetCell(`${((_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0["address"]) || "NA"}`);
61995
+ const property = (_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0.property;
61996
+ 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);
61997
+ const formattedAddress = formatPropertyAddress(propertyAddress, t) || ((_row$original10 = row.original) === null || _row$original10 === void 0 ? void 0 : _row$original10["address"]) || t("CS_NA");
61998
+ 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;
61999
+ 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);
62000
+ if (ownerUuid && propId) {
62001
+ var _String;
62002
+ const privacy = {
62003
+ uuid: ownerUuid,
62004
+ fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
62005
+ model: "Property",
62006
+ hide: !propertyAddress,
62007
+ showValue: true,
62008
+ loadData: {
62009
+ serviceName: "/property-services/property/_search",
62010
+ requestBody: {},
62011
+ requestParam: {
62012
+ tenantId: tenantId,
62013
+ propertyIds: propId
62014
+ },
62015
+ jsonPath: "Properties[0].address.street",
62016
+ isArray: false,
62017
+ d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}), t)
62018
+ }
62019
+ };
62020
+ return /*#__PURE__*/React__default.createElement("span", {
62021
+ className: "cell-text"
62022
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
62023
+ value: formattedAddress,
62024
+ iseyevisible: (_String = String(formattedAddress)) === null || _String === void 0 ? void 0 : _String.includes("*"),
62025
+ privacy: privacy
62026
+ }));
62027
+ }
62028
+ return GetCell(formattedAddress);
61766
62029
  }
61767
62030
  }, {
61768
62031
  Header: t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL"),
61769
62032
  disableSortBy: true,
61770
62033
  Cell: _ref8 => {
61771
- var _row$original1, _row$original1$status, _row$original10, _row$original11;
62034
+ var _row$original12, _row$original12$statu, _row$original13, _row$original14;
61772
62035
  let {
61773
62036
  row
61774
62037
  } = _ref8;
61775
- 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()) || "";
61776
- 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);
62038
+ 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()) || "";
62039
+ const dueDate = ((_row$original13 = row.original) === null || _row$original13 === void 0 ? void 0 : _row$original13.dueDate) === "NA" ? t("WS_NA") : convertEpochToDate((_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.dueDate);
61777
62040
  return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
61778
62041
  }
61779
62042
  }], []);
@@ -61821,6 +62084,7 @@ const SearchWaterConnectionIntegrated = _ref => {
61821
62084
  pageSizeLimit: getValues("limit"),
61822
62085
  onSort: onSort,
61823
62086
  disableSort: false,
62087
+ autoSort: false,
61824
62088
  sortParams: [{
61825
62089
  id: getValues("sortBy"),
61826
62090
  desc: getValues("sortOrder") === "DESC" ? true : false
@@ -62855,66 +63119,70 @@ const OLDApplication = () => {
62855
63119
  disconnectRequest: false,
62856
63120
  reconnectRequest: false
62857
63121
  };
62858
- waterUpdateMutation(waterConnectionUpdate, {
62859
- onError: error => {
62860
- var _error$response2, _error$response2$data, _error$response2$data2, _error$response2$data3;
62861
- setIsEnableLoader(false);
62862
- setShowToast({
62863
- key: "error",
62864
- 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"
62865
- });
62866
- },
62867
- onSuccess: function (waterUpdateData) {
62868
- try {
62869
- return Promise.resolve(sewerageMutation(sewerageConnection, {
62870
- onError: error => {
62871
- var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
62872
- setIsEnableLoader(false);
62873
- setShowToast({
62874
- key: "error",
62875
- 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"
62876
- });
62877
- },
62878
- onSuccess: function (sewerageData) {
62879
- try {
62880
- var _sewerageData$Sewerag;
62881
- 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) {
62882
- let sewerageConnectionUpdate = {
62883
- SewerageConnection: response,
62884
- disconnectRequest: false,
62885
- reconnectRequest: false
62886
- };
62887
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
62888
- onError: error => {
62889
- var _error$response4, _error$response4$data, _error$response4$data2, _error$response4$data3;
62890
- setIsEnableLoader(false);
62891
- setShowToast({
62892
- key: "error",
62893
- 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"
62894
- });
62895
- },
62896
- onSuccess: function (sewerageUpdateData) {
62897
- try {
62898
- var _waterUpdateData$Wate, _waterUpdateData$Wate2, _sewerageUpdateData$S, _sewerageUpdateData$S2;
62899
- clearSessionFormData();
62900
- sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
62901
- 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}`);
62902
- return Promise.resolve();
62903
- } catch (e) {
62904
- return Promise.reject(e);
62905
- }
62906
- }
62907
- })).then(function () {});
63122
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
63123
+ waterUpdateMutation(waterConnectionUpdate, {
63124
+ onError: error => {
63125
+ var _error$response2, _error$response2$data, _error$response2$data2, _error$response2$data3;
63126
+ setIsEnableLoader(false);
63127
+ setShowToast({
63128
+ key: "error",
63129
+ 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"
63130
+ });
63131
+ },
63132
+ onSuccess: function (waterUpdateData) {
63133
+ try {
63134
+ return Promise.resolve(sewerageMutation(sewerageConnection, {
63135
+ onError: error => {
63136
+ var _error$response3, _error$response3$data, _error$response3$data2, _error$response3$data3;
63137
+ setIsEnableLoader(false);
63138
+ setShowToast({
63139
+ key: "error",
63140
+ 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"
62908
63141
  });
62909
- } catch (e) {
62910
- return Promise.reject(e);
63142
+ },
63143
+ onSuccess: function (sewerageData) {
63144
+ try {
63145
+ var _sewerageData$Sewerag;
63146
+ 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) {
63147
+ let sewerageConnectionUpdate = {
63148
+ SewerageConnection: response,
63149
+ disconnectRequest: false,
63150
+ reconnectRequest: false
63151
+ };
63152
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
63153
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
63154
+ onError: error => {
63155
+ var _error$response4, _error$response4$data, _error$response4$data2, _error$response4$data3;
63156
+ setIsEnableLoader(false);
63157
+ setShowToast({
63158
+ key: "error",
63159
+ 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"
63160
+ });
63161
+ },
63162
+ onSuccess: function (sewerageUpdateData) {
63163
+ try {
63164
+ var _waterUpdateData$Wate, _waterUpdateData$Wate2, _sewerageUpdateData$S, _sewerageUpdateData$S2;
63165
+ clearSessionFormData();
63166
+ sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
63167
+ 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}`);
63168
+ return Promise.resolve();
63169
+ } catch (e) {
63170
+ return Promise.reject(e);
63171
+ }
63172
+ }
63173
+ })).then(function () {});
63174
+ });
63175
+ });
63176
+ } catch (e) {
63177
+ return Promise.reject(e);
63178
+ }
62911
63179
  }
62912
- }
62913
- })).then(function () {});
62914
- } catch (e) {
62915
- return Promise.reject(e);
63180
+ })).then(function () {});
63181
+ } catch (e) {
63182
+ return Promise.reject(e);
63183
+ }
62916
63184
  }
62917
- }
63185
+ });
62918
63186
  });
62919
63187
  });
62920
63188
  } catch (e) {
@@ -62948,22 +63216,24 @@ const OLDApplication = () => {
62948
63216
  let waterConnectionUpdate = {
62949
63217
  WaterConnection: response
62950
63218
  };
62951
- waterUpdateMutation(waterConnectionUpdate, {
62952
- onError: error => {
62953
- var _error$response6, _error$response6$data, _error$response6$data2, _error$response6$data3;
62954
- setIsEnableLoader(false);
62955
- console.error("[WS] waterUpdateMutation error", error);
62956
- setShowToast({
62957
- key: "error",
62958
- 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"
62959
- });
62960
- },
62961
- onSuccess: data => {
62962
- var _data$WaterConnection2, _data$WaterConnection3;
62963
- clearSessionFormData();
62964
- sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
62965
- 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}`);
62966
- }
63219
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
63220
+ waterUpdateMutation(waterConnectionUpdate, {
63221
+ onError: error => {
63222
+ var _error$response6, _error$response6$data, _error$response6$data2, _error$response6$data3;
63223
+ setIsEnableLoader(false);
63224
+ console.error("[WS] waterUpdateMutation error", error);
63225
+ setShowToast({
63226
+ key: "error",
63227
+ 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"
63228
+ });
63229
+ },
63230
+ onSuccess: data => {
63231
+ var _data$WaterConnection2, _data$WaterConnection3;
63232
+ clearSessionFormData();
63233
+ sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
63234
+ 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}`);
63235
+ }
63236
+ });
62967
63237
  });
62968
63238
  });
62969
63239
  } catch (e) {
@@ -62997,23 +63267,25 @@ const OLDApplication = () => {
62997
63267
  let sewerageConnectionUpdate = {
62998
63268
  SewerageConnection: response
62999
63269
  };
63000
- return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
63001
- onError: error => {
63002
- var _error$response8, _error$response8$data, _error$response8$data2, _error$response8$data3;
63003
- setIsEnableLoader(false);
63004
- console.error("[WS] sewerageUpdateMutation error", error);
63005
- setShowToast({
63006
- key: "error",
63007
- 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"
63008
- });
63009
- },
63010
- onSuccess: data => {
63011
- var _data$SewerageConnect2, _data$SewerageConnect3;
63012
- clearSessionFormData();
63013
- sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
63014
- 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}`);
63015
- }
63016
- })).then(function () {});
63270
+ return Promise.resolve(new Promise(resolve => setTimeout(resolve, 5000))).then(function () {
63271
+ return Promise.resolve(sewerageUpdateMutation(sewerageConnectionUpdate, {
63272
+ onError: error => {
63273
+ var _error$response8, _error$response8$data, _error$response8$data2, _error$response8$data3;
63274
+ setIsEnableLoader(false);
63275
+ console.error("[WS] sewerageUpdateMutation error", error);
63276
+ setShowToast({
63277
+ key: "error",
63278
+ 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"
63279
+ });
63280
+ },
63281
+ onSuccess: data => {
63282
+ var _data$SewerageConnect2, _data$SewerageConnect3;
63283
+ clearSessionFormData();
63284
+ sessionStorage.removeItem("WS_OTP_VERIFIED_PROPERTY_ID");
63285
+ 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}`);
63286
+ }
63287
+ })).then(function () {});
63288
+ });
63017
63289
  });
63018
63290
  } catch (e) {
63019
63291
  return Promise.reject(e);