@djb25/digit-ui-module-ws 1.0.108 → 1.0.110

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -386,6 +386,13 @@ const getAddress = (address, t) => {
386
386
  var _address$locality, _address$locality2, _address$city;
387
387
  return `${address !== null && address !== void 0 && address.doorNo ? `${address === null || address === void 0 ? void 0 : address.doorNo}, ` : ""}${address !== null && address !== void 0 && address.street ? `${address === null || address === void 0 ? void 0 : address.street}, ` : ""}${address !== null && address !== void 0 && address.landmark ? `${address === null || address === void 0 ? void 0 : address.landmark}, ` : ""}${address !== null && address !== void 0 && (_address$locality = address.locality) !== null && _address$locality !== void 0 && _address$locality.code ? t(`TENANTS_MOHALLA_${address === null || address === void 0 ? void 0 : (_address$locality2 = address.locality) === null || _address$locality2 === void 0 ? void 0 : _address$locality2.code}`) : ""}${address !== null && address !== void 0 && (_address$city = address.city) !== null && _address$city !== void 0 && _address$city.code || address !== null && address !== void 0 && address.city ? `, ${t((address === null || address === void 0 ? void 0 : address.city.code) || (address === null || address === void 0 ? void 0 : address.city))}` : ""}${address !== null && address !== void 0 && address.pincode ? `, ${address.pincode}` : " "}`;
388
388
  };
389
+ const formatPropertyAddress = (address, t) => {
390
+ var _Digit2, _Digit2$Utils, _Digit2$Utils$pt;
391
+ if ((_Digit2 = Digit) !== null && _Digit2 !== void 0 && (_Digit2$Utils = _Digit2.Utils) !== null && _Digit2$Utils !== void 0 && (_Digit2$Utils$pt = _Digit2$Utils.pt) !== null && _Digit2$Utils$pt !== void 0 && _Digit2$Utils$pt.formatPropertyAddress) {
392
+ return Digit.Utils.pt.formatPropertyAddress(address, t) || getAddress(address, t);
393
+ }
394
+ return getAddress(address, t);
395
+ };
389
396
  const convertDateToEpoch = function (dateString, dayStartOrEnd) {
390
397
  if (dayStartOrEnd === void 0) {
391
398
  dayStartOrEnd = "dayend";
@@ -438,12 +445,11 @@ const getPattern = type => {
438
445
  case "WSOnlyNumbers":
439
446
  return /^[0-9]*$/i;
440
447
  case "Name":
441
- case "Name":
442
- return /^[^{0-9}^\$\"<>?\\~!@#$%^()+={}\[\]*,/_:;]{1,50}$/i;
448
+ return /^[a-zA-Z\s]{1,50}$/;
443
449
  case "MobileNo":
444
- return /^[6789][0-9]{9}$/i;
450
+ return /^[6-9][0-9]{9}$/;
445
451
  case "MobileNoWithPrivacy":
446
- return /^[6789][*]{7}[0-9]{2}|[6789][0-9]{9}$/i;
452
+ return /^([6-9][*]{7}[0-9]{2}|[6-9][0-9]{9})$/;
447
453
  case "Amount":
448
454
  return /^[0-9]{0,8}$/i;
449
455
  case "NonZeroAmount":
@@ -546,7 +552,7 @@ const getFiles = function (filesArray, tenant) {
546
552
  };
547
553
  const createPayloadOfWS = function (data) {
548
554
  try {
549
- var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$waterConnection, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _connectionDetailsObj, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj2, _data$applicationSele8, _useDetailsObject$cat, _data$applicationSele9, _data$applicationSele0, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$applicationSele25, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
555
+ var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _data$waterConnection, _data$ConnectionHolde, _data$documents, _data$djbEmployee, _data$governmentEmplo, _connectionHolder$gen, _data$cpt2, _data$cpt2$details, _data$cpt2$details$ow, _data$cpt2$details$ow2, _connectionHolder$own, _connectionHolder$rel, _data$propertyAddress, _data$applicant, _data$useDetails, _data$useDetails$gend, _data$contact, _data$applicant2, _data$applicant3, _data$applicant4, _data$contact2, _data$contact3, _data$applicationSele2, _data$applicationSele3, _data$contact4, _data$cpt3, _data$cpt4, _data$cpt4$details, _data$propertyAddress2, _data$propertyAddress3, _data$propertyAddress4, _data$cpt5, _data$cpt5$details, _data$cpt5$details$ad, _data$propertyAddress5, _data$cpt6, _data$cpt6$details, _data$cpt6$details$ad, _data$propertyAddress6, _data$cpt7, _data$cpt7$details, _data$cpt7$details$ad, _data$propertyAddress7, _data$cpt8, _data$cpt8$details, _data$cpt8$details$ad, _data$propertyAddress8, _data$cpt9, _data$cpt9$details, _data$cpt9$details$ad, _data$propertyAddress9, _data$cpt0, _data$cpt0$details, _data$cpt0$details$ad, _data$propertyAddress0, _data$cpt1, _data$cpt1$details, _data$cpt1$details$ad, _data$propertyAddress1, _data$cpt10, _data$cpt10$details, _data$cpt10$details$a, _data$propertyAddress10, _data$cpt11, _data$cpt11$details, _data$cpt11$details$a, _data$cpt12, _data$cpt12$details, _data$cpt12$details$a, _data$propertyAddress11, _data$cpt13, _data$cpt13$details, _data$cpt13$details$a, _data$cpt13$details$a2, _data$propertyAddress12, _data$cpt14, _data$cpt14$details, _data$cpt14$details$a, _data$cpt14$details$a2, _data$propertyAddress13, _data$cpt15, _data$cpt15$details, _data$cpt15$details$a, _data$cpt15$details$a2, _data$cpt16, _data$cpt16$details, _data$roadCuttingDeta, _data$plumberDetails, _data$disability, _data$djbEmployee4, _data$djbEmployee4$do, _data$djbEmployee5, _connectionDetailsObj, _data$zro, _data$propertyAddress14, _data$propertyAddress15, _data$cpt17, _data$cpt17$details, _data$cpt17$details$a, _data$cpt17$details$a2, _data$plumberDetails2, _data$plumberDetails3, _data$plumberDetails4, _data$plumberDetails5, _data$plumberDetails6, _data$applicationSele4, _data$applicationSele5, _data$applicationSele6, _data$applicationSele7, _connectionDetailsObj2, _data$applicationSele8, _useDetailsObject$cat, _data$applicationSele9, _data$applicationSele0, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele1, _data$applicationSele10, _data$applicationSele11, _data$applicationSele12, _data$applicationSele13, _data$applicationSele14, _data$applicationSele15, _data$applicationSele16, _data$applicationSele17, _data$applicationSele18, _data$applicationSele19, _data$applicationSele20, _data$applicationSele21, _data$applicationSele22, _data$applicationSele23, _data$applicationSele24, _data$applicationSele25, _data$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
550
556
  const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
551
557
  const isCitizen = (userInfo === null || userInfo === void 0 ? void 0 : userInfo.type) === "CITIZEN" || (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$roles = userInfo.roles) === null || _userInfo$roles === void 0 ? void 0 : _userInfo$roles.some(role => role.code === "CITIZEN"));
552
558
  data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : (_data$cpt$details = _data$cpt.details) === null || _data$cpt$details === void 0 ? void 0 : (_data$cpt$details$own = _data$cpt$details.owners) === null || _data$cpt$details$own === void 0 ? void 0 : _data$cpt$details$own.forEach(owner => {
@@ -722,7 +728,7 @@ const createPayloadOfWS = function (data) {
722
728
  delete payload.additionalDetails.proposedWaterClosets;
723
729
  sessionStorage.setItem("WS_DOCUMENTS_INOF", JSON.stringify(allDocuments));
724
730
  sessionStorage.setItem("WS_PROPERTY_INOF", JSON.stringify((data === null || data === void 0 ? void 0 : (_data$cpt18 = data.cpt) === null || _data$cpt18 === void 0 ? void 0 : _data$cpt18.details) || {}));
725
- payload = (_Digit = Digit) !== null && _Digit !== void 0 && (_Digit$Customizations = _Digit.Customizations) !== null && _Digit$Customizations !== void 0 && (_Digit$Customizations2 = _Digit$Customizations.WS) !== null && _Digit$Customizations2 !== void 0 && _Digit$Customizations2.customiseCreatePayloadOfWS ? (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$Customization = _Digit2.Customizations) === null || _Digit2$Customization === void 0 ? void 0 : (_Digit2$Customization2 = _Digit2$Customization.WS) === null || _Digit2$Customization2 === void 0 ? void 0 : _Digit2$Customization2.customiseCreatePayloadOfWS(data, payload) : payload;
731
+ payload = (_Digit3 = Digit) !== null && _Digit3 !== void 0 && (_Digit3$Customization = _Digit3.Customizations) !== null && _Digit3$Customization !== void 0 && (_Digit3$Customization2 = _Digit3$Customization.WS) !== null && _Digit3$Customization2 !== void 0 && _Digit3$Customization2.customiseCreatePayloadOfWS ? (_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$Customization = _Digit4.Customizations) === null || _Digit4$Customization === void 0 ? void 0 : (_Digit4$Customization2 = _Digit4$Customization.WS) === null || _Digit4$Customization2 === void 0 ? void 0 : _Digit4$Customization2.customiseCreatePayloadOfWS(data, payload) : payload;
726
732
  return Promise.resolve(payload);
727
733
  } catch (e) {
728
734
  return Promise.reject(e);
@@ -730,7 +736,7 @@ const createPayloadOfWS = function (data) {
730
736
  };
731
737
  const updatePayloadOfWS = function (data, type) {
732
738
  try {
733
- var _data$additionalDetai, _data$additionalDetai2, _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
739
+ var _data$additionalDetai, _data$additionalDetai2, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
734
740
  let payload = {
735
741
  ...data,
736
742
  processInstance: {
@@ -749,7 +755,7 @@ const updatePayloadOfWS = function (data, type) {
749
755
  }
750
756
  }
751
757
  };
752
- payload = (_Digit3 = Digit) !== null && _Digit3 !== void 0 && (_Digit3$Customization = _Digit3.Customizations) !== null && _Digit3$Customization !== void 0 && (_Digit3$Customization2 = _Digit3$Customization.WS) !== null && _Digit3$Customization2 !== void 0 && _Digit3$Customization2.customiseUpdatePayloadOfWS ? (_Digit4 = Digit) === null || _Digit4 === void 0 ? void 0 : (_Digit4$Customization = _Digit4.Customizations) === null || _Digit4$Customization === void 0 ? void 0 : (_Digit4$Customization2 = _Digit4$Customization.WS) === null || _Digit4$Customization2 === void 0 ? void 0 : _Digit4$Customization2.customiseUpdatePayloadOfWS(data, payload, type) : payload;
758
+ payload = (_Digit5 = Digit) !== null && _Digit5 !== void 0 && (_Digit5$Customization = _Digit5.Customizations) !== null && _Digit5$Customization !== void 0 && (_Digit5$Customization2 = _Digit5$Customization.WS) !== null && _Digit5$Customization2 !== void 0 && _Digit5$Customization2.customiseUpdatePayloadOfWS ? (_Digit6 = Digit) === null || _Digit6 === void 0 ? void 0 : (_Digit6$Customization = _Digit6.Customizations) === null || _Digit6$Customization === void 0 ? void 0 : (_Digit6$Customization2 = _Digit6$Customization.WS) === null || _Digit6$Customization2 === void 0 ? void 0 : _Digit6$Customization2.customiseUpdatePayloadOfWS(data, payload, type) : payload;
753
759
  return Promise.resolve(payload);
754
760
  } catch (e) {
755
761
  return Promise.reject(e);
@@ -829,7 +835,7 @@ const getAllDocumentsForUpdate = data => {
829
835
  return allDocuments;
830
836
  };
831
837
  const convertToWSUpdate = data => {
832
- var _data$WaterConnection, _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$djbEmployee11, _data$djbEmployee12, _data$djbEmployee13, _data$djbEmployee14, _data$djbEmployee15, _data$djbEmployee16, _data$djbEmployee17, _data$djbEmployee18, _data$djbEmployee19, _data$djbEmployee20, _data$djbEmployee21, _data$djbEmployee22, _data$djbEmployee23, _data$djbEmployee24, _data$djbEmployee24$d, _data$djbEmployee25, _data$disability2, _Digit5, _Digit5$Customization, _Digit5$Customization2, _Digit6, _Digit6$Customization, _Digit6$Customization2;
838
+ var _data$WaterConnection, _data$WaterConnection2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$djbEmployee11, _data$djbEmployee12, _data$djbEmployee13, _data$djbEmployee14, _data$djbEmployee15, _data$djbEmployee16, _data$djbEmployee17, _data$djbEmployee18, _data$djbEmployee19, _data$djbEmployee20, _data$djbEmployee21, _data$djbEmployee22, _data$djbEmployee23, _data$djbEmployee24, _data$djbEmployee24$d, _data$djbEmployee25, _data$disability2, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
833
839
  let formdata = {
834
840
  WaterConnection: {
835
841
  ...(data === null || data === void 0 ? void 0 : (_data$WaterConnection = data.WaterConnectionResult) === null || _data$WaterConnection === void 0 ? void 0 : (_data$WaterConnection2 = _data$WaterConnection.WaterConnection) === null || _data$WaterConnection2 === void 0 ? void 0 : _data$WaterConnection2[0]),
@@ -856,11 +862,11 @@ const convertToWSUpdate = data => {
856
862
  }
857
863
  }
858
864
  };
859
- formdata = (_Digit5 = Digit) !== null && _Digit5 !== void 0 && (_Digit5$Customization = _Digit5.Customizations) !== null && _Digit5$Customization !== void 0 && (_Digit5$Customization2 = _Digit5$Customization.WS) !== null && _Digit5$Customization2 !== void 0 && _Digit5$Customization2.customiseWSUpdate ? (_Digit6 = Digit) === null || _Digit6 === void 0 ? void 0 : (_Digit6$Customization = _Digit6.Customizations) === null || _Digit6$Customization === void 0 ? void 0 : (_Digit6$Customization2 = _Digit6$Customization.WS) === null || _Digit6$Customization2 === void 0 ? void 0 : _Digit6$Customization2.customiseWSUpdate(data, formdata) : formdata;
865
+ formdata = (_Digit7 = Digit) !== null && _Digit7 !== void 0 && (_Digit7$Customization = _Digit7.Customizations) !== null && _Digit7$Customization !== void 0 && (_Digit7$Customization2 = _Digit7$Customization.WS) !== null && _Digit7$Customization2 !== void 0 && _Digit7$Customization2.customiseWSUpdate ? (_Digit8 = Digit) === null || _Digit8 === void 0 ? void 0 : (_Digit8$Customization = _Digit8.Customizations) === null || _Digit8$Customization === void 0 ? void 0 : (_Digit8$Customization2 = _Digit8$Customization.WS) === null || _Digit8$Customization2 === void 0 ? void 0 : _Digit8$Customization2.customiseWSUpdate(data, formdata) : formdata;
860
866
  return formdata;
861
867
  };
862
868
  const convertToEditWSUpdate = data => {
863
- var _data$WaterConnection6, _data$WaterConnection7, _data$additionalDetai3, _data$additionalDetai4, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai5, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai6, _waterResult$addition3, _data$djbEmployee26, _data$djbEmployee27, _data$djbEmployee28, _data$djbEmployee29, _data$djbEmployee30, _data$djbEmployee31, _data$djbEmployee32, _data$djbEmployee33, _data$djbEmployee34, _data$djbEmployee35, _data$djbEmployee36, _data$djbEmployee37, _data$djbEmployee38, _data$djbEmployee39, _data$djbEmployee39$d, _data$djbEmployee40, _data$disability3, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2, _Digit7, _Digit7$Customization, _Digit7$Customization2, _Digit8, _Digit8$Customization, _Digit8$Customization2;
869
+ var _data$WaterConnection6, _data$WaterConnection7, _data$additionalDetai3, _data$additionalDetai4, _waterResult$addition, _data$ConnectionDetai3, _data$ConnectionDetai4, _data$ConnectionDetai5, _data$ConnectionDetai6, _data$ConnectionDetai7, _data$additionalDetai5, _waterResult$addition2, _data$ConnectionDetai8, _data$ConnectionDetai9, _data$additionalDetai6, _waterResult$addition3, _data$djbEmployee26, _data$djbEmployee27, _data$djbEmployee28, _data$djbEmployee29, _data$djbEmployee30, _data$djbEmployee31, _data$djbEmployee32, _data$djbEmployee33, _data$djbEmployee34, _data$djbEmployee35, _data$djbEmployee36, _data$djbEmployee37, _data$djbEmployee38, _data$djbEmployee39, _data$djbEmployee39$d, _data$djbEmployee40, _data$disability3, _data$ConnectionHolde2, _data$ConnectionHolde3, _data$ConnectionHolde4, _data$ConnectionHolde5, _data$ConnectionHolde6, _data$ConnectionHolde7, _data$ConnectionHolde8, _data$ConnectionHolde9, _data$ConnectionHolde0, _data$ConnectionHolde1, _data$ConnectionHolde10, _data$ConnectionHolde11, _data$ConnectionHolde12, _data$ConnectionHolde13, _data$ConnectionHolde14, _data$ConnectionHolde15, _data$ConnectionHolde16, _data$ConnectionHolde17, _data$ConnectionHolde18, _data$ConnectionHolde19, _data$ConnectionHolde20, _data$ConnectionHolde21, _data$ConnectionHolde22, _data$ConnectionHolde23, _data$ConnectionHolde24, _data$ConnectionHolde25, _data$ConnectionHolde26, _data$ConnectionHolde27, _data$ConnectionHolde28, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _data$waterConectionD, _data$waterConectionD2, _data$waterConectionD3, _data$applicationType, _data$applicationType2, _data$serviceName, _waterResult$serviceN, _data$sewerageConnect, _data$sewerageConnect2, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
864
870
  let waterResult = data === null || data === void 0 ? void 0 : (_data$WaterConnection6 = data.WaterConnectionResult) === null || _data$WaterConnection6 === void 0 ? void 0 : (_data$WaterConnection7 = _data$WaterConnection6.WaterConnection) === null || _data$WaterConnection7 === void 0 ? void 0 : _data$WaterConnection7[0];
865
871
  let formdata = {
866
872
  WaterConnection: {
@@ -954,11 +960,11 @@ const convertToEditWSUpdate = data => {
954
960
  assignes: []
955
961
  }
956
962
  };
957
- formdata = (_Digit7 = Digit) !== null && _Digit7 !== void 0 && (_Digit7$Customization = _Digit7.Customizations) !== null && _Digit7$Customization !== void 0 && (_Digit7$Customization2 = _Digit7$Customization.WS) !== null && _Digit7$Customization2 !== void 0 && _Digit7$Customization2.customiseEditWSUpdate ? (_Digit8 = Digit) === null || _Digit8 === void 0 ? void 0 : (_Digit8$Customization = _Digit8.Customizations) === null || _Digit8$Customization === void 0 ? void 0 : (_Digit8$Customization2 = _Digit8$Customization.WS) === null || _Digit8$Customization2 === void 0 ? void 0 : _Digit8$Customization2.customiseEditWSUpdate(data, formdata) : formdata;
963
+ formdata = (_Digit9 = Digit) !== null && _Digit9 !== void 0 && (_Digit9$Customization = _Digit9.Customizations) !== null && _Digit9$Customization !== void 0 && (_Digit9$Customization2 = _Digit9$Customization.WS) !== null && _Digit9$Customization2 !== void 0 && _Digit9$Customization2.customiseEditWSUpdate ? (_Digit0 = Digit) === null || _Digit0 === void 0 ? void 0 : (_Digit0$Customization = _Digit0.Customizations) === null || _Digit0$Customization === void 0 ? void 0 : (_Digit0$Customization2 = _Digit0$Customization.WS) === null || _Digit0$Customization2 === void 0 ? void 0 : _Digit0$Customization2.customiseEditWSUpdate(data, formdata) : formdata;
958
964
  return formdata;
959
965
  };
960
966
  const convertToEditSWUpdate = data => {
961
- var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai7, _data$additionalDetai8, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai9, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai0, _SewerageResult$addit3, _data$djbEmployee41, _data$djbEmployee42, _data$djbEmployee43, _data$djbEmployee44, _data$djbEmployee45, _data$djbEmployee46, _data$djbEmployee47, _data$djbEmployee48, _data$djbEmployee49, _data$djbEmployee50, _data$djbEmployee51, _data$djbEmployee52, _data$djbEmployee53, _data$djbEmployee54, _data$djbEmployee54$d, _data$djbEmployee55, _data$disability4, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _data$ConnectionHolde32, _data$ConnectionHolde33, _data$ConnectionHolde34, _data$ConnectionHolde35, _data$ConnectionHolde36, _data$ConnectionHolde37, _data$ConnectionHolde38, _data$ConnectionHolde39, _data$ConnectionHolde40, _data$ConnectionHolde41, _data$ConnectionHolde42, _data$ConnectionHolde43, _data$ConnectionHolde44, _data$ConnectionHolde45, _data$ConnectionHolde46, _data$ConnectionHolde47, _data$ConnectionHolde48, _data$ConnectionHolde49, _data$ConnectionHolde50, _data$ConnectionHolde51, _data$ConnectionHolde52, _data$ConnectionHolde53, _data$ConnectionHolde54, _data$ConnectionHolde55, _data$ConnectionHolde56, _data$ConnectionHolde57, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4, _Digit9, _Digit9$Customization, _Digit9$Customization2, _Digit0, _Digit0$Customization, _Digit0$Customization2;
967
+ var _data$SewerageConnect, _data$SewerageConnect2, _data$additionalDetai7, _data$additionalDetai8, _SewerageResult$addit, _data$ConnectionDetai0, _data$ConnectionDetai1, _data$ConnectionDetai10, _data$ConnectionDetai11, _data$ConnectionDetai12, _data$additionalDetai9, _SewerageResult$addit2, _data$ConnectionDetai13, _data$ConnectionDetai14, _data$additionalDetai0, _SewerageResult$addit3, _data$djbEmployee41, _data$djbEmployee42, _data$djbEmployee43, _data$djbEmployee44, _data$djbEmployee45, _data$djbEmployee46, _data$djbEmployee47, _data$djbEmployee48, _data$djbEmployee49, _data$djbEmployee50, _data$djbEmployee51, _data$djbEmployee52, _data$djbEmployee53, _data$djbEmployee54, _data$djbEmployee54$d, _data$djbEmployee55, _data$disability4, _data$ConnectionHolde29, _data$ConnectionHolde30, _data$ConnectionHolde31, _data$ConnectionHolde32, _data$ConnectionHolde33, _data$ConnectionHolde34, _data$ConnectionHolde35, _data$ConnectionHolde36, _data$ConnectionHolde37, _data$ConnectionHolde38, _data$ConnectionHolde39, _data$ConnectionHolde40, _data$ConnectionHolde41, _data$ConnectionHolde42, _data$ConnectionHolde43, _data$ConnectionHolde44, _data$ConnectionHolde45, _data$ConnectionHolde46, _data$ConnectionHolde47, _data$ConnectionHolde48, _data$ConnectionHolde49, _data$ConnectionHolde50, _data$ConnectionHolde51, _data$ConnectionHolde52, _data$ConnectionHolde53, _data$ConnectionHolde54, _data$ConnectionHolde55, _data$ConnectionHolde56, _data$ConnectionHolde57, _Digit$UserService$ge5, _Digit$UserService$ge6, _Digit$UserService$ge7, _data$waterConectionD4, _data$waterConectionD5, _data$waterConectionD6, _data$applicationType3, _data$applicationType4, _data$serviceName2, _SewerageResult$servi, _data$sewerageConnect3, _data$sewerageConnect4, _Digit1, _Digit1$Customization, _Digit1$Customization2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2;
962
968
  let SewerageResult = data === null || data === void 0 ? void 0 : (_data$SewerageConnect = data.SewerageConnectionResult) === null || _data$SewerageConnect === void 0 ? void 0 : (_data$SewerageConnect2 = _data$SewerageConnect.SewerageConnections) === null || _data$SewerageConnect2 === void 0 ? void 0 : _data$SewerageConnect2[0];
963
969
  let formdata = {
964
970
  SewerageConnection: {
@@ -1052,11 +1058,11 @@ const convertToEditSWUpdate = data => {
1052
1058
  assignes: []
1053
1059
  }
1054
1060
  };
1055
- formdata = (_Digit9 = Digit) !== null && _Digit9 !== void 0 && (_Digit9$Customization = _Digit9.Customizations) !== null && _Digit9$Customization !== void 0 && (_Digit9$Customization2 = _Digit9$Customization.WS) !== null && _Digit9$Customization2 !== void 0 && _Digit9$Customization2.customiseEditSWUpdate ? (_Digit0 = Digit) === null || _Digit0 === void 0 ? void 0 : (_Digit0$Customization = _Digit0.Customizations) === null || _Digit0$Customization === void 0 ? void 0 : (_Digit0$Customization2 = _Digit0$Customization.WS) === null || _Digit0$Customization2 === void 0 ? void 0 : _Digit0$Customization2.customiseEditSWUpdate(data, formdata) : formdata;
1061
+ formdata = (_Digit1 = Digit) !== null && _Digit1 !== void 0 && (_Digit1$Customization = _Digit1.Customizations) !== null && _Digit1$Customization !== void 0 && (_Digit1$Customization2 = _Digit1$Customization.WS) !== null && _Digit1$Customization2 !== void 0 && _Digit1$Customization2.customiseEditSWUpdate ? (_Digit10 = Digit) === null || _Digit10 === void 0 ? void 0 : (_Digit10$Customizatio = _Digit10.Customizations) === null || _Digit10$Customizatio === void 0 ? void 0 : (_Digit10$Customizatio2 = _Digit10$Customizatio.WS) === null || _Digit10$Customizatio2 === void 0 ? void 0 : _Digit10$Customizatio2.customiseEditSWUpdate(data, formdata) : formdata;
1056
1062
  return formdata;
1057
1063
  };
1058
1064
  const convertToSWUpdate = data => {
1059
- var _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$djbEmployee56, _data$djbEmployee57, _data$djbEmployee58, _data$djbEmployee59, _data$djbEmployee60, _data$djbEmployee61, _data$djbEmployee62, _data$djbEmployee63, _data$djbEmployee64, _data$djbEmployee65, _data$djbEmployee66, _data$djbEmployee67, _data$djbEmployee68, _data$djbEmployee69, _data$djbEmployee69$d, _data$djbEmployee70, _data$disability5, _Digit1, _Digit1$Customization, _Digit1$Customization2, _Digit10, _Digit10$Customizatio, _Digit10$Customizatio2;
1065
+ var _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$SewerageConnect6, _data$SewerageConnect7, _data$djbEmployee56, _data$djbEmployee57, _data$djbEmployee58, _data$djbEmployee59, _data$djbEmployee60, _data$djbEmployee61, _data$djbEmployee62, _data$djbEmployee63, _data$djbEmployee64, _data$djbEmployee65, _data$djbEmployee66, _data$djbEmployee67, _data$djbEmployee68, _data$djbEmployee69, _data$djbEmployee69$d, _data$djbEmployee70, _data$disability5, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
1060
1066
  let formdata = {
1061
1067
  SewerageConnection: {
1062
1068
  ...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect3 = data.SewerageConnectionResult) === null || _data$SewerageConnect3 === void 0 ? void 0 : (_data$SewerageConnect4 = _data$SewerageConnect3.SewerageConnections) === null || _data$SewerageConnect4 === void 0 ? void 0 : _data$SewerageConnect4[0]),
@@ -1084,12 +1090,12 @@ const convertToSWUpdate = data => {
1084
1090
  }
1085
1091
  }
1086
1092
  };
1087
- formdata = (_Digit1 = Digit) !== null && _Digit1 !== void 0 && (_Digit1$Customization = _Digit1.Customizations) !== null && _Digit1$Customization !== void 0 && (_Digit1$Customization2 = _Digit1$Customization.WS) !== null && _Digit1$Customization2 !== void 0 && _Digit1$Customization2.customiseSWUpdate ? (_Digit10 = Digit) === null || _Digit10 === void 0 ? void 0 : (_Digit10$Customizatio = _Digit10.Customizations) === null || _Digit10$Customizatio === void 0 ? void 0 : (_Digit10$Customizatio2 = _Digit10$Customizatio.WS) === null || _Digit10$Customizatio2 === void 0 ? void 0 : _Digit10$Customizatio2.customiseSWUpdate(data, formdata) : formdata;
1093
+ formdata = (_Digit11 = Digit) !== null && _Digit11 !== void 0 && (_Digit11$Customizatio = _Digit11.Customizations) !== null && _Digit11$Customizatio !== void 0 && (_Digit11$Customizatio2 = _Digit11$Customizatio.WS) !== null && _Digit11$Customizatio2 !== void 0 && _Digit11$Customizatio2.customiseSWUpdate ? (_Digit12 = Digit) === null || _Digit12 === void 0 ? void 0 : (_Digit12$Customizatio = _Digit12.Customizations) === null || _Digit12$Customizatio === void 0 ? void 0 : (_Digit12$Customizatio2 = _Digit12$Customizatio.WS) === null || _Digit12$Customizatio2 === void 0 ? void 0 : _Digit12$Customizatio2.customiseSWUpdate(data, formdata) : formdata;
1088
1094
  return formdata;
1089
1095
  };
1090
1096
  const createPayloadOfWSDisconnection = function (data, storeData, service) {
1091
1097
  try {
1092
- var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason, _data$reason$value, _data$reason2, _data$reason3, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _storeData$applicatio39, _storeData$applicatio40, _plumberInfo, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _data$type3, _data$type3$value, _data$reason4, _data$reason4$value, _data$reason5, _data$reason6, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _plumberInfo2, _storeData$applicatio68, _storeData$applicatio69, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
1098
+ var _Digit$UserService$ge8, _Digit$UserService$ge9, _storeData$applicatio, _storeData$applicatio2, _storeData$applicatio25, _storeData$applicatio26, _storeData$applicatio27, _storeData$applicatio28, _storeData$applicatio29, _storeData$applicatio30, _data$type, _data$type$value, _data$type2, _data$type2$value, _data$reason, _data$reason$value, _data$reason2, _data$reason3, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _storeData$applicatio39, _storeData$applicatio40, _plumberInfo, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _data$type3, _data$type3$value, _data$reason4, _data$reason4$value, _data$reason5, _data$reason6, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _plumberInfo2, _storeData$applicatio68, _storeData$applicatio69, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
1093
1099
  const user = (_Digit$UserService$ge8 = Digit.UserService.getUser()) === null || _Digit$UserService$ge8 === void 0 ? void 0 : (_Digit$UserService$ge9 = _Digit$UserService$ge8.info) === null || _Digit$UserService$ge9 === void 0 ? void 0 : _Digit$UserService$ge9.type;
1094
1100
  let plumberInfo = [];
1095
1101
  if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio = storeData.applicationData) === null || _storeData$applicatio === void 0 ? void 0 : (_storeData$applicatio2 = _storeData$applicatio.plumberInfo) === null || _storeData$applicatio2 === void 0 ? void 0 : _storeData$applicatio2.length) > 0) {
@@ -1190,7 +1196,7 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
1190
1196
  disconnectRequest: true
1191
1197
  };
1192
1198
  let returnObject = (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "WATER" ? wsPayload : swPayload;
1193
- returnObject = (_Digit11 = Digit) !== null && _Digit11 !== void 0 && (_Digit11$Customizatio = _Digit11.Customizations) !== null && _Digit11$Customizatio !== void 0 && (_Digit11$Customizatio2 = _Digit11$Customizatio.WS) !== null && _Digit11$Customizatio2 !== void 0 && _Digit11$Customizatio2.customiseCreatePayloadOfWSDisconnection ? (_Digit12 = Digit) === null || _Digit12 === void 0 ? void 0 : (_Digit12$Customizatio = _Digit12.Customizations) === null || _Digit12$Customizatio === void 0 ? void 0 : (_Digit12$Customizatio2 = _Digit12$Customizatio.WS) === null || _Digit12$Customizatio2 === void 0 ? void 0 : _Digit12$Customizatio2.customiseCreatePayloadOfWSDisconnection(data, returnObject, service) : returnObject;
1199
+ returnObject = (_Digit13 = Digit) !== null && _Digit13 !== void 0 && (_Digit13$Customizatio = _Digit13.Customizations) !== null && _Digit13$Customizatio !== void 0 && (_Digit13$Customizatio2 = _Digit13$Customizatio.WS) !== null && _Digit13$Customizatio2 !== void 0 && _Digit13$Customizatio2.customiseCreatePayloadOfWSDisconnection ? (_Digit14 = Digit) === null || _Digit14 === void 0 ? void 0 : (_Digit14$Customizatio = _Digit14.Customizations) === null || _Digit14$Customizatio === void 0 ? void 0 : (_Digit14$Customizatio2 = _Digit14$Customizatio.WS) === null || _Digit14$Customizatio2 === void 0 ? void 0 : _Digit14$Customizatio2.customiseCreatePayloadOfWSDisconnection(data, returnObject, service) : returnObject;
1194
1200
  return Promise.resolve(returnObject);
1195
1201
  } catch (e) {
1196
1202
  return Promise.reject(e);
@@ -1308,7 +1314,7 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
1308
1314
  };
1309
1315
  const createPayloadOfWSReSubmitDisconnection = function (data, storeData, service) {
1310
1316
  try {
1311
- var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type4, _data$type4$value, _data$reason13, _data$reason13$value, _data$reason14, _data$reason15, _storeData$applicatio149, _storeData$applicatio150, _storeData$applicatio151, _storeData$applicatio152, _data$type5, _data$type5$value, _data$reason16, _data$reason16$value, _data$reason17, _data$reason18, _storeData$applicatio157, _storeData$applicatio158, _storeData$applicatio159, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
1317
+ var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type4, _data$type4$value, _data$reason13, _data$reason13$value, _data$reason14, _data$reason15, _storeData$applicatio149, _storeData$applicatio150, _storeData$applicatio151, _storeData$applicatio152, _data$type5, _data$type5$value, _data$reason16, _data$reason16$value, _data$reason17, _data$reason18, _storeData$applicatio157, _storeData$applicatio158, _storeData$applicatio159, _Digit15, _Digit15$Customizatio, _Digit15$Customizatio2, _Digit16, _Digit16$Customizatio, _Digit16$Customizatio2;
1312
1318
  const user = (_Digit$UserService$ge10 = Digit.UserService.getUser()) === null || _Digit$UserService$ge10 === void 0 ? void 0 : (_Digit$UserService$ge11 = _Digit$UserService$ge10.info) === null || _Digit$UserService$ge11 === void 0 ? void 0 : _Digit$UserService$ge11.type;
1313
1319
  let wsPayload = {
1314
1320
  WaterConnection: {
@@ -1360,7 +1366,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
1360
1366
  disconnectRequest: true
1361
1367
  };
1362
1368
  let returnObject = (service === null || service === void 0 ? void 0 : service.toUpperCase()) === "WATER" ? wsPayload : swPayload;
1363
- returnObject = (_Digit13 = Digit) !== null && _Digit13 !== void 0 && (_Digit13$Customizatio = _Digit13.Customizations) !== null && _Digit13$Customizatio !== void 0 && (_Digit13$Customizatio2 = _Digit13$Customizatio.WS) !== null && _Digit13$Customizatio2 !== void 0 && _Digit13$Customizatio2.customiseCreatePayloadOfWSReSubmitDisconnection ? (_Digit14 = Digit) === null || _Digit14 === void 0 ? void 0 : (_Digit14$Customizatio = _Digit14.Customizations) === null || _Digit14$Customizatio === void 0 ? void 0 : (_Digit14$Customizatio2 = _Digit14$Customizatio.WS) === null || _Digit14$Customizatio2 === void 0 ? void 0 : _Digit14$Customizatio2.customiseCreatePayloadOfWSReSubmitDisconnection(data, returnObject, service) : returnObject;
1369
+ returnObject = (_Digit15 = Digit) !== null && _Digit15 !== void 0 && (_Digit15$Customizatio = _Digit15.Customizations) !== null && _Digit15$Customizatio !== void 0 && (_Digit15$Customizatio2 = _Digit15$Customizatio.WS) !== null && _Digit15$Customizatio2 !== void 0 && _Digit15$Customizatio2.customiseCreatePayloadOfWSReSubmitDisconnection ? (_Digit16 = Digit) === null || _Digit16 === void 0 ? void 0 : (_Digit16$Customizatio = _Digit16.Customizations) === null || _Digit16$Customizatio === void 0 ? void 0 : (_Digit16$Customizatio2 = _Digit16$Customizatio.WS) === null || _Digit16$Customizatio2 === void 0 ? void 0 : _Digit16$Customizatio2.customiseCreatePayloadOfWSReSubmitDisconnection(data, returnObject, service) : returnObject;
1364
1370
  return Promise.resolve(returnObject);
1365
1371
  } catch (e) {
1366
1372
  return Promise.reject(e);
@@ -1368,7 +1374,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
1368
1374
  };
1369
1375
  const updatePayloadOfWSDisconnection = function (data, type) {
1370
1376
  try {
1371
- var _data$plumberInfo, _data$plumberInfo2, _Digit15, _Digit15$Customizatio, _Digit15$Customizatio2, _Digit16, _Digit16$Customizatio, _Digit16$Customizatio2;
1377
+ var _data$plumberInfo, _data$plumberInfo2, _Digit17, _Digit17$Customizatio, _Digit17$Customizatio2, _Digit18, _Digit18$Customizatio, _Digit18$Customizatio2;
1372
1378
  let payload = {
1373
1379
  ...data,
1374
1380
  plumberInfo: data !== null && data !== void 0 && (_data$plumberInfo = data.plumberInfo) !== null && _data$plumberInfo !== void 0 && _data$plumberInfo[0] ? [{
@@ -1382,7 +1388,7 @@ const updatePayloadOfWSDisconnection = function (data, type) {
1382
1388
  action: "SUBMIT_APPLICATION"
1383
1389
  }
1384
1390
  };
1385
- payload = (_Digit15 = Digit) !== null && _Digit15 !== void 0 && (_Digit15$Customizatio = _Digit15.Customizations) !== null && _Digit15$Customizatio !== void 0 && (_Digit15$Customizatio2 = _Digit15$Customizatio.WS) !== null && _Digit15$Customizatio2 !== void 0 && _Digit15$Customizatio2.customiseUpdatePayloadOfWSDisconnection ? (_Digit16 = Digit) === null || _Digit16 === void 0 ? void 0 : (_Digit16$Customizatio = _Digit16.Customizations) === null || _Digit16$Customizatio === void 0 ? void 0 : (_Digit16$Customizatio2 = _Digit16$Customizatio.WS) === null || _Digit16$Customizatio2 === void 0 ? void 0 : _Digit16$Customizatio2.customiseUpdatePayloadOfWSDisconnection(data, payload, type) : payload;
1391
+ payload = (_Digit17 = Digit) !== null && _Digit17 !== void 0 && (_Digit17$Customizatio = _Digit17.Customizations) !== null && _Digit17$Customizatio !== void 0 && (_Digit17$Customizatio2 = _Digit17$Customizatio.WS) !== null && _Digit17$Customizatio2 !== void 0 && _Digit17$Customizatio2.customiseUpdatePayloadOfWSDisconnection ? (_Digit18 = Digit) === null || _Digit18 === void 0 ? void 0 : (_Digit18$Customizatio = _Digit18.Customizations) === null || _Digit18$Customizatio === void 0 ? void 0 : (_Digit18$Customizatio2 = _Digit18$Customizatio.WS) === null || _Digit18$Customizatio2 === void 0 ? void 0 : _Digit18$Customizatio2.customiseUpdatePayloadOfWSDisconnection(data, payload, type) : payload;
1386
1392
  return Promise.resolve(payload);
1387
1393
  } catch (e) {
1388
1394
  return Promise.reject(e);
@@ -8361,34 +8367,52 @@ const WSMyApplications = () => {
8361
8367
  return GetCell(t(`CS_${(_row$original7 = row.original) === null || _row$original7 === void 0 ? void 0 : _row$original7.applicationStatus}`) || t("CS_NA"));
8362
8368
  }
8363
8369
  }, {
8364
- Header: t("WS_SLA"),
8370
+ Header: t("WS_APPLICATION_CREATED_TIME"),
8365
8371
  disableSortBy: true,
8366
8372
  Cell: _ref6 => {
8367
- var _row$original8;
8373
+ var _row$original8, _row$original8$auditD;
8368
8374
  let {
8369
8375
  row
8370
8376
  } = _ref6;
8371
- const slaDays = Math.round(((_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : _row$original8.sla) / (24 * 60 * 60 * 1000));
8372
- return GetCell(slaDays ? `${slaDays} Days` : t("CS_NA"));
8377
+ const createdTime = (_row$original8 = row.original) === null || _row$original8 === void 0 ? void 0 : (_row$original8$auditD = _row$original8.auditDetails) === null || _row$original8$auditD === void 0 ? void 0 : _row$original8$auditD.createdTime;
8378
+ return GetCell(createdTime ? new Date(createdTime).toLocaleString("en-IN", {
8379
+ day: "2-digit",
8380
+ month: "2-digit",
8381
+ year: "numeric",
8382
+ hour: "2-digit",
8383
+ minute: "2-digit",
8384
+ hour12: true
8385
+ }) : t("CS_NA"));
8373
8386
  }
8374
8387
  }, {
8375
- Header: t("dueAmount"),
8388
+ Header: t("WS_SLA"),
8376
8389
  disableSortBy: true,
8377
8390
  Cell: _ref7 => {
8378
8391
  var _row$original9;
8379
8392
  let {
8380
8393
  row
8381
8394
  } = _ref7;
8382
- const dueAmounts = (((_row$original9 = row.original) === null || _row$original9 === void 0 ? void 0 : _row$original9.dueVerification) || []).map(item => item === null || item === void 0 ? void 0 : item.dueAmount).filter(amount => amount !== null && amount !== undefined && amount !== "");
8383
- return GetCell(dueAmounts.length > 0 ? dueAmounts.map(amount => `₹${Number(amount).toLocaleString("en-IN")}`).join(", ") : t("CS_NA"));
8395
+ const slaDays = Math.round(((_row$original9 = row.original) === null || _row$original9 === void 0 ? void 0 : _row$original9.sla) / (24 * 60 * 60 * 1000));
8396
+ return GetCell(slaDays ? `${slaDays} Days` : t("CS_NA"));
8384
8397
  }
8385
8398
  }, {
8386
- Header: t("WS_VIEW_DETAILS"),
8399
+ Header: t("dueAmount"),
8387
8400
  disableSortBy: true,
8388
8401
  Cell: _ref8 => {
8402
+ var _row$original0;
8389
8403
  let {
8390
8404
  row
8391
8405
  } = _ref8;
8406
+ const dueAmounts = (((_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0.dueVerification) || []).map(item => item === null || item === void 0 ? void 0 : item.dueAmount).filter(amount => amount !== null && amount !== undefined && amount !== "");
8407
+ return GetCell(dueAmounts.length > 0 ? dueAmounts.map(amount => `₹${Number(amount).toLocaleString("en-IN")}`).join(", ") : t("CS_NA"));
8408
+ }
8409
+ }, {
8410
+ Header: t("WS_VIEW_DETAILS"),
8411
+ disableSortBy: true,
8412
+ Cell: _ref9 => {
8413
+ let {
8414
+ row
8415
+ } = _ref9;
8392
8416
  const application = row.original;
8393
8417
  return /*#__PURE__*/React.createElement("span", {
8394
8418
  className: "link"
@@ -8399,11 +8423,11 @@ const WSMyApplications = () => {
8399
8423
  }, {
8400
8424
  Header: t("MAKE_PAYMENT"),
8401
8425
  disableSortBy: true,
8402
- Cell: _ref9 => {
8426
+ Cell: _ref0 => {
8403
8427
  var _application$applicat, _application$applicat2, _application$applicat3, _application$applicat4, _application$applicat5, _application$applicat6, _application$applicat7, _application$applicat8, _application$connecti, _application$property, _application$property2, _application$applicat9;
8404
8428
  let {
8405
8429
  row
8406
- } = _ref9;
8430
+ } = _ref0;
8407
8431
  const application = row.original;
8408
8432
  const isMutation = application === null || application === void 0 ? void 0 : (_application$applicat = application.applicationType) === null || _application$applicat === void 0 ? void 0 : _application$applicat.includes("MUTATION");
8409
8433
  const isReconnection = (application === null || application === void 0 ? void 0 : (_application$applicat2 = application.applicationType) === null || _application$applicat2 === void 0 ? void 0 : _application$applicat2.includes("RECONNECT")) || (application === null || application === void 0 ? void 0 : (_application$applicat3 = application.applicationNo) === null || _application$applicat3 === void 0 ? void 0 : _application$applicat3.includes("RC"));
@@ -8536,8 +8560,8 @@ const WSMyApplications = () => {
8536
8560
  label: "SEWERAGE",
8537
8561
  count: sewerageCount,
8538
8562
  color: "#F59E0B"
8539
- }, ...Object.entries(statusCounts).map((_ref0, idx) => {
8540
- let [status, count] = _ref0;
8563
+ }, ...Object.entries(statusCounts).map((_ref1, idx) => {
8564
+ let [status, count] = _ref1;
8541
8565
  const colors = ["#10B981", "#A855F7", "#EF4444", "#64748B", "#F97316", "#06B6D4"];
8542
8566
  return {
8543
8567
  label: status === "UNKNOWN" ? "UNKNOWN" : `CS_${status}`,
@@ -9085,28 +9109,25 @@ const WSResponse = props => {
9085
9109
  let filters = getQueryStringParams(location.search);
9086
9110
  const [waterApplicationData, setWaterApplicationData] = useState({});
9087
9111
  const [sewerageApplicationData, setSewerageApplicationData] = useState({});
9112
+ const hasWaterApp = !!(filters !== null && filters !== void 0 && filters.applicationNumber);
9113
+ const hasSewerageApp = !!(filters !== null && filters !== void 0 && filters.applicationNumber1);
9088
9114
  const {
9089
9115
  isLoading: waterLoading,
9090
9116
  isError: waterError,
9091
9117
  data: waterApplicationDetails
9092
- } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber, "WATER", {
9093
- enabled: filters !== null && filters !== void 0 && filters.applicationNumber ? true : false
9118
+ } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber, "WATER", {}, {
9119
+ enabled: hasWaterApp
9094
9120
  });
9095
9121
  const {
9096
9122
  isLoading: sewerageLoading,
9097
9123
  isError: sewerageError,
9098
9124
  data: sewerageApplicationDetails
9099
- } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber1, "SEWERAGE", {
9100
- enabled: filters !== null && filters !== void 0 && filters.applicationNumber1 ? true : false
9125
+ } = Digit.Hooks.ws.useWSDetailsPage(t, tenantId, filters === null || filters === void 0 ? void 0 : filters.applicationNumber1, "SEWERAGE", {}, {
9126
+ enabled: hasSewerageApp
9101
9127
  });
9102
- useEffect(function () {
9103
- try {
9104
- setWaterApplicationData(waterApplicationDetails);
9105
- setSewerageApplicationData(sewerageApplicationDetails);
9106
- return Promise.resolve();
9107
- } catch (e) {
9108
- return Promise.reject(e);
9109
- }
9128
+ useEffect(() => {
9129
+ setWaterApplicationData(waterApplicationDetails);
9130
+ setSewerageApplicationData(sewerageApplicationDetails);
9110
9131
  }, [waterApplicationDetails, sewerageApplicationDetails]);
9111
9132
  const {
9112
9133
  data: oldDataWater
@@ -9134,6 +9155,9 @@ const WSResponse = props => {
9134
9155
  });
9135
9156
  const oldApplicationWater = oldDataWater === null || oldDataWater === void 0 ? void 0 : (_oldDataWater$WaterCo = oldDataWater.WaterConnection) === null || _oldDataWater$WaterCo === void 0 ? void 0 : _oldDataWater$WaterCo[(oldDataWater === null || oldDataWater === void 0 ? void 0 : (_oldDataWater$WaterCo2 = oldDataWater.WaterConnection) === null || _oldDataWater$WaterCo2 === void 0 ? void 0 : _oldDataWater$WaterCo2.length) - 1];
9136
9157
  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];
9158
+ const isLoading = hasWaterApp && waterLoading || hasSewerageApp && sewerageLoading;
9159
+ const isError = !hasWaterApp && !hasSewerageApp || hasWaterApp && waterError || hasSewerageApp && sewerageError;
9160
+ const isSuccess = !isLoading && !isError;
9137
9161
  const handleAckPdfDownloadWater = function () {
9138
9162
  try {
9139
9163
  var _waterApplicationData4, _waterApplicationData5, _waterApplicationData6;
@@ -9190,13 +9214,16 @@ const WSResponse = props => {
9190
9214
  let isEmployee = window.location.href.includes("/employee");
9191
9215
  history.push(isEmployee ? `/digit-ui/employee` : `/digit-ui/citizen`);
9192
9216
  };
9217
+ if (isLoading) {
9218
+ return /*#__PURE__*/React.createElement(Loader, null);
9219
+ }
9193
9220
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(Banner, {
9194
- message: t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL"),
9195
- applicationNumber: filters === null || filters === void 0 ? void 0 : filters.applicationNumber,
9196
- applicationNumberOne: filters === null || filters === void 0 ? void 0 : filters.applicationNumber1,
9197
- info: filters !== null && filters !== void 0 && filters.applicationNumber ? t("WS_WATER_APPLICATION_NUMBER_LABEL") : "",
9198
- infoOne: filters !== null && filters !== void 0 && filters.applicationNumber1 ? t("WS_SEWERAGE_APPLICATION_NUMBER_LABEL") : "",
9199
- successful: true,
9221
+ message: isSuccess ? t("WS_APPLICATION_SUBMITTED_SUCCESSFULLY_LABEL") : t("WS_APPLICATION_SUBMIT_FAILED_LABEL"),
9222
+ applicationNumber: isSuccess ? filters === null || filters === void 0 ? void 0 : filters.applicationNumber : undefined,
9223
+ applicationNumberOne: isSuccess ? filters === null || filters === void 0 ? void 0 : filters.applicationNumber1 : undefined,
9224
+ info: isSuccess && filters !== null && filters !== void 0 && filters.applicationNumber ? t("WS_WATER_APPLICATION_NUMBER_LABEL") : "",
9225
+ infoOne: isSuccess && filters !== null && filters !== void 0 && filters.applicationNumber1 ? t("WS_SEWERAGE_APPLICATION_NUMBER_LABEL") : "",
9226
+ successful: isSuccess,
9200
9227
  style: {
9201
9228
  padding: "10px"
9202
9229
  },
@@ -9206,7 +9233,7 @@ const WSResponse = props => {
9206
9233
  infoOneStyles: {
9207
9234
  paddingTop: "20px"
9208
9235
  }
9209
- }), /*#__PURE__*/React.createElement(CardText, {
9236
+ }), isSuccess && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardText, {
9210
9237
  style: {
9211
9238
  paddingBottom: "10px",
9212
9239
  marginBottom: "10px"
@@ -9249,7 +9276,7 @@ const WSResponse = props => {
9249
9276
  }, /*#__PURE__*/React.createElement("path", {
9250
9277
  d: "M19.3334 8H14V0H6.00002V8H0.666687L10 17.3333L19.3334 8ZM0.666687 20V22.6667H19.3334V20H0.666687Z",
9251
9278
  fill: "#a82227"
9252
- })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement("div", {
9279
+ })), t("WS_PRINT_SEWERAGE_APPLICATION_LABEL"))), /*#__PURE__*/React.createElement("div", null, (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData8 = waterApplicationData.applicationData) === null || _waterApplicationData8 === void 0 ? void 0 : _waterApplicationData8.applicationStatus) === "PENDING_FOR_PAYMENT" && /*#__PURE__*/React.createElement("div", {
9253
9280
  style: {
9254
9281
  marginTop: "10px"
9255
9282
  }
@@ -9262,8 +9289,8 @@ const WSResponse = props => {
9262
9289
  let consumerCodeOriginal = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData1 = waterApplicationData.applicationData) !== null && _waterApplicationData1 !== void 0 && (_waterApplicationData10 = _waterApplicationData1.applicationNo) !== null && _waterApplicationData10 !== void 0 && _waterApplicationData10.includes("DC") ? waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData11 = waterApplicationData.applicationData) === null || _waterApplicationData11 === void 0 ? void 0 : _waterApplicationData11.connectionNo : waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData12 = waterApplicationData.applicationData) === null || _waterApplicationData12 === void 0 ? void 0 : _waterApplicationData12.applicationNo;
9263
9290
  let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9264
9291
  let tenantId = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData13 = waterApplicationData.applicationData) === null || _waterApplicationData13 === void 0 ? void 0 : _waterApplicationData13.tenantId;
9265
- let consumerName = (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData14 = waterApplicationData.applicationData) === null || _waterApplicationData14 === void 0 ? void 0 : (_waterApplicationData15 = _waterApplicationData14.connectionHolders) === null || _waterApplicationData15 === void 0 ? void 0 : _waterApplicationData15.map(owner => owner.name).join(",")) || (waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData16 = waterApplicationData.propertyDetails) === null || _waterApplicationData16 === void 0 ? void 0 : (_waterApplicationData17 = _waterApplicationData16.owners) === null || _waterApplicationData17 === void 0 ? void 0 : _waterApplicationData17.map(owner => owner.name).join(","));
9266
- let isDisconnectFlow = waterApplicationData !== null && waterApplicationData !== void 0 && (_waterApplicationData18 = waterApplicationData.applicationData) !== null && _waterApplicationData18 !== void 0 && (_waterApplicationData19 = _waterApplicationData18.applicationNo) !== null && _waterApplicationData19 !== void 0 && _waterApplicationData19.includes("DC") ? true : false;
9292
+ 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(","));
9293
+ let isDisconnectFlow = waterApplicationData === null || waterApplicationData === void 0 ? void 0 : (_waterApplicationData18 = waterApplicationData.applicationData) === null || _waterApplicationData18 === void 0 ? void 0 : (_waterApplicationData19 = _waterApplicationData18.applicationNo) === null || _waterApplicationData19 === void 0 ? void 0 : _waterApplicationData19.includes("DC");
9267
9294
  if (isEmployee) {
9268
9295
  history.push({
9269
9296
  pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
@@ -9278,7 +9305,7 @@ const WSResponse = props => {
9278
9305
  });
9279
9306
  }
9280
9307
  }
9281
- })) : null, (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" ? /*#__PURE__*/React.createElement("div", {
9308
+ })), (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD8 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD8 === void 0 ? void 0 : _sewerageApplicationD8.applicationStatus) === "PENDING_FOR_PAYMENT" && /*#__PURE__*/React.createElement("div", {
9282
9309
  style: {
9283
9310
  marginTop: "10px",
9284
9311
  marginLeft: "10px"
@@ -9292,8 +9319,8 @@ const WSResponse = props => {
9292
9319
  let consumerCodeOriginal = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD1 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD1 !== void 0 && (_sewerageApplicationD10 = _sewerageApplicationD1.applicationNo) !== null && _sewerageApplicationD10 !== void 0 && _sewerageApplicationD10.includes("DC") ? sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD11 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD11 === void 0 ? void 0 : _sewerageApplicationD11.connectionNo : sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD12 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD12 === void 0 ? void 0 : _sewerageApplicationD12.applicationNo;
9293
9320
  let consumerCode = stringReplaceAll(consumerCodeOriginal, "/", "+");
9294
9321
  let tenantId = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD13 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD13 === void 0 ? void 0 : _sewerageApplicationD13.tenantId;
9295
- let consumerName = (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD14 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD14 === void 0 ? void 0 : (_sewerageApplicationD15 = _sewerageApplicationD14.connectionHolders) === null || _sewerageApplicationD15 === void 0 ? void 0 : _sewerageApplicationD15.map(owner => owner.name).join(",")) || (sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD16 = sewerageApplicationData.propertyDetails) === null || _sewerageApplicationD16 === void 0 ? void 0 : (_sewerageApplicationD17 = _sewerageApplicationD16.owners) === null || _sewerageApplicationD17 === void 0 ? void 0 : _sewerageApplicationD17.map(owner => owner.name).join(","));
9296
- let isDisconnectFlow = sewerageApplicationData !== null && sewerageApplicationData !== void 0 && (_sewerageApplicationD18 = sewerageApplicationData.applicationData) !== null && _sewerageApplicationD18 !== void 0 && (_sewerageApplicationD19 = _sewerageApplicationD18.applicationNo) !== null && _sewerageApplicationD19 !== void 0 && _sewerageApplicationD19.includes("DC") ? true : false;
9322
+ 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(","));
9323
+ let isDisconnectFlow = sewerageApplicationData === null || sewerageApplicationData === void 0 ? void 0 : (_sewerageApplicationD18 = sewerageApplicationData.applicationData) === null || _sewerageApplicationD18 === void 0 ? void 0 : (_sewerageApplicationD19 = _sewerageApplicationD18.applicationNo) === null || _sewerageApplicationD19 === void 0 ? void 0 : _sewerageApplicationD19.includes("DC");
9297
9324
  if (isEmployee) {
9298
9325
  history.push({
9299
9326
  pathname: `/digit-ui/employee/payment/collect/${businessService}/${encodeURIComponent(consumerCodeOriginal)}/${tenantId}`,
@@ -9308,7 +9335,13 @@ const WSResponse = props => {
9308
9335
  });
9309
9336
  }
9310
9337
  }
9311
- })) : null), /*#__PURE__*/React.createElement(ActionBar, {
9338
+ })))), isError && /*#__PURE__*/React.createElement(CardText, {
9339
+ style: {
9340
+ paddingBottom: "10px",
9341
+ marginBottom: "10px",
9342
+ color: "#B91900"
9343
+ }
9344
+ }, t("WS_APPLICATION_SUBMIT_FAILED_DESC")), /*#__PURE__*/React.createElement(ActionBar, {
9312
9345
  style: {
9313
9346
  display: "flex",
9314
9347
  justifyContent: "flex-end",
@@ -14593,7 +14626,7 @@ const ConnectionDetails$1 = _props => {
14593
14626
  name: "name",
14594
14627
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.name,
14595
14628
  rules: {
14596
- validate: e => e && getPattern("Name").test(e) || !e ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14629
+ validate: e => !e || !e.trim() ? t("REQUIRED_FIELD") : e.includes("*") || /^[a-zA-Z\s]{1,50}$/.test(e) ? true : t("WS_NAME_ERROR_MESSAGE") || t("PT_NAME_ERROR_MESSAGE") || "Only alphabets are allowed",
14597
14630
  required: t("REQUIRED_FIELD")
14598
14631
  },
14599
14632
  isMandatory: true,
@@ -14604,8 +14637,10 @@ const ConnectionDetails$1 = _props => {
14604
14637
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "name",
14605
14638
  errorStyle: localFormState.touched.name && errors !== null && errors !== void 0 && (_errors$name = errors.name) !== null && _errors$name !== void 0 && _errors$name.message ? true : false,
14606
14639
  onChange: e => {
14607
- setName(e.target.value);
14608
- props.onChange(e.target.value);
14640
+ const val = e.target.value;
14641
+ const cleanVal = val && val.includes("*") ? val : val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
14642
+ setName(cleanVal);
14643
+ props.onChange(cleanVal);
14609
14644
  setFocusIndex({
14610
14645
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14611
14646
  type: "name"
@@ -14645,6 +14680,9 @@ const ConnectionDetails$1 = _props => {
14645
14680
  control: control,
14646
14681
  name: "middleName",
14647
14682
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.middleName,
14683
+ rules: {
14684
+ 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"
14685
+ },
14648
14686
  render: props => {
14649
14687
  var _errors$middleName;
14650
14688
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
@@ -14652,8 +14690,10 @@ const ConnectionDetails$1 = _props => {
14652
14690
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "middleName",
14653
14691
  errorStyle: localFormState.touched.middleName && errors !== null && errors !== void 0 && (_errors$middleName = errors.middleName) !== null && _errors$middleName !== void 0 && _errors$middleName.message ? true : false,
14654
14692
  onChange: e => {
14655
- setMiddleName(e.target.value);
14656
- props.onChange(e.target.value);
14693
+ const val = e.target.value;
14694
+ const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
14695
+ setMiddleName(cleanVal);
14696
+ props.onChange(cleanVal);
14657
14697
  setFocusIndex({
14658
14698
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14659
14699
  type: "middleName"
@@ -14672,6 +14712,9 @@ const ConnectionDetails$1 = _props => {
14672
14712
  control: control,
14673
14713
  name: "lastName",
14674
14714
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.lastName,
14715
+ rules: {
14716
+ 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"
14717
+ },
14675
14718
  render: props => {
14676
14719
  var _errors$lastName;
14677
14720
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(TextInput, {
@@ -14679,8 +14722,10 @@ const ConnectionDetails$1 = _props => {
14679
14722
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "lastName",
14680
14723
  errorStyle: localFormState.touched.lastName && errors !== null && errors !== void 0 && (_errors$lastName = errors.lastName) !== null && _errors$lastName !== void 0 && _errors$lastName.message ? true : false,
14681
14724
  onChange: e => {
14682
- setLastName(e.target.value);
14683
- props.onChange(e.target.value);
14725
+ const val = e.target.value;
14726
+ const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
14727
+ setLastName(cleanVal);
14728
+ props.onChange(cleanVal);
14684
14729
  setFocusIndex({
14685
14730
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14686
14731
  type: "lastName"
@@ -14762,7 +14807,12 @@ const ConnectionDetails$1 = _props => {
14762
14807
  name: "mobileNumber",
14763
14808
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.mobileNumber,
14764
14809
  rules: {
14765
- validate: e => e && getPattern("MobileNoWithPrivacy").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14810
+ validate: e => {
14811
+ if (!e || !e.trim()) return t("REQUIRED_FIELD");
14812
+ if (e.includes("*")) return true;
14813
+ if (/^[6-9]\d{9}$/.test(e)) return true;
14814
+ return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
14815
+ },
14766
14816
  required: t("REQUIRED_FIELD")
14767
14817
  },
14768
14818
  isMandatory: true,
@@ -14772,18 +14822,23 @@ const ConnectionDetails$1 = _props => {
14772
14822
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileNumber, {
14773
14823
  name: "mobileNumber",
14774
14824
  value: mobileValue || "",
14825
+ maxlength: 10,
14826
+ maxLength: 10,
14775
14827
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "mobileNumber",
14776
14828
  errorStyle: localFormState.touched.mobileNumber && (errors === null || errors === void 0 ? void 0 : (_errors$mobileNumber = errors.mobileNumber) === null || _errors$mobileNumber === void 0 ? void 0 : _errors$mobileNumber.message),
14777
14829
  onChange: val => {
14778
- setMobileNumber(val);
14779
- props.onChange(val);
14830
+ const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
14831
+ setMobileNumber(cleanVal);
14832
+ props.onChange(cleanVal);
14780
14833
  setFocusIndex({
14781
14834
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14782
14835
  type: "mobileNumber"
14783
14836
  });
14784
14837
  if (isWatsappSameAsMobile) {
14785
- setWatsAppMobileNumber(val);
14786
- setValue("watsAppMobileNumber", val);
14838
+ setWatsAppMobileNumber(cleanVal);
14839
+ setValue("watsAppMobileNumber", cleanVal, {
14840
+ shouldValidate: true
14841
+ });
14787
14842
  }
14788
14843
  },
14789
14844
  onBlur: props.onBlur,
@@ -14823,7 +14878,12 @@ const ConnectionDetails$1 = _props => {
14823
14878
  name: "watsAppMobileNumber",
14824
14879
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.watsAppMobileNumber,
14825
14880
  rules: {
14826
- validate: e => e && getPattern("MobileNoWithPrivacy").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14881
+ validate: e => {
14882
+ if (!e || !e.trim()) return t("REQUIRED_FIELD");
14883
+ if (e.includes("*")) return true;
14884
+ if (/^[6-9]\d{9}$/.test(e)) return true;
14885
+ return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
14886
+ },
14827
14887
  required: t("REQUIRED_FIELD")
14828
14888
  },
14829
14889
  isMandatory: true,
@@ -14833,11 +14893,14 @@ const ConnectionDetails$1 = _props => {
14833
14893
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(MobileNumber, {
14834
14894
  name: "watsAppMobileNumber",
14835
14895
  value: watsAppmobileValue || "",
14896
+ maxlength: 10,
14897
+ maxLength: 10,
14836
14898
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "watsAppMobileNumber",
14837
14899
  errorStyle: localFormState.touched.watsAppMobileNumber && (errors === null || errors === void 0 ? void 0 : (_errors$watsAppMobile = errors.watsAppMobileNumber) === null || _errors$watsAppMobile === void 0 ? void 0 : _errors$watsAppMobile.message),
14838
14900
  onChange: val => {
14839
- setWatsAppMobileNumber(val);
14840
- props.onChange(val);
14901
+ const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
14902
+ setWatsAppMobileNumber(cleanVal);
14903
+ props.onChange(cleanVal);
14841
14904
  setFocusIndex({
14842
14905
  index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14843
14906
  type: "watsAppMobileNumber"
@@ -14893,11 +14956,16 @@ const ConnectionDetails$1 = _props => {
14893
14956
  type: "isWatsappSameAsMobile"
14894
14957
  });
14895
14958
  if (e.target.checked) {
14896
- setWatsAppMobileNumber(mobileNumber);
14897
- setValue("watsAppMobileNumber", mobileNumber);
14959
+ const currentMobile = getValues("mobileNumber") || mobileNumber;
14960
+ setWatsAppMobileNumber(currentMobile);
14961
+ setValue("watsAppMobileNumber", currentMobile, {
14962
+ shouldValidate: true
14963
+ });
14898
14964
  } else {
14899
14965
  setWatsAppMobileNumber("");
14900
- setValue("watsAppMobileNumber", "");
14966
+ setValue("watsAppMobileNumber", "", {
14967
+ shouldValidate: true
14968
+ });
14901
14969
  }
14902
14970
  },
14903
14971
  checked: isWatsappSameAsMobile,
@@ -16657,7 +16725,7 @@ const PlumberDetails = _props => {
16657
16725
  name: "plumberName",
16658
16726
  defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.plumberName,
16659
16727
  rules: {
16660
- validate: e => e && getPattern("Name").test(e) || !e ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
16728
+ validate: e => !e || !e.trim() ? t("REQUIRED_FIELD") : /^[a-zA-Z\s]{1,50}$/.test(e) ? true : t("WS_NAME_ERROR_MESSAGE") || t("PT_NAME_ERROR_MESSAGE") || "Only alphabets are allowed",
16661
16729
  required: t("REQUIRED_FIELD")
16662
16730
  },
16663
16731
  isMandatory: true,
@@ -16668,7 +16736,9 @@ const PlumberDetails = _props => {
16668
16736
  autoFocus: focusIndex.index === (plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key) && focusIndex.type === "plumberName",
16669
16737
  errorStyle: localFormState.touched.plumberName && errors !== null && errors !== void 0 && (_errors$plumberName = errors.plumberName) !== null && _errors$plumberName !== void 0 && _errors$plumberName.message ? true : false,
16670
16738
  onChange: e => {
16671
- props.onChange(e.target.value);
16739
+ const val = e.target.value;
16740
+ const cleanVal = val.replace(/[^a-zA-Z\s]/g, "").slice(0, 50);
16741
+ props.onChange(cleanVal);
16672
16742
  setFocusIndex({
16673
16743
  index: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key,
16674
16744
  type: "plumberName"
@@ -16694,7 +16764,12 @@ const PlumberDetails = _props => {
16694
16764
  name: "plumberMobileNo",
16695
16765
  defaultValue: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.plumberMobileNo,
16696
16766
  rules: {
16697
- validate: e => e && getPattern("MobileNoWithPrivacy").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
16767
+ validate: e => {
16768
+ if (!e || !e.trim()) return t("REQUIRED_FIELD");
16769
+ if (e.includes("*")) return true;
16770
+ if (/^[6-9]\d{9}$/.test(e)) return true;
16771
+ return t("CORE_COMMON_PHONENO_INVALID") || "Please enter a valid 10-digit mobile number";
16772
+ },
16698
16773
  required: t("REQUIRED_FIELD")
16699
16774
  },
16700
16775
  type: "mobileNumber",
@@ -16722,10 +16797,14 @@ const PlumberDetails = _props => {
16722
16797
  },
16723
16798
  type: "mobileNumber",
16724
16799
  value: props.value,
16800
+ maxlength: 10,
16801
+ maxLength: 10,
16725
16802
  autoFocus: focusIndex.index === (plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key) && focusIndex.type === "plumberMobileNo",
16726
16803
  errorStyle: localFormState.touched.plumberMobileNo && errors !== null && errors !== void 0 && (_errors$plumberMobile = errors.plumberMobileNo) !== null && _errors$plumberMobile !== void 0 && _errors$plumberMobile.message ? true : false,
16727
16804
  onChange: e => {
16728
- props.onChange(e.target.value);
16805
+ const val = e.target.value;
16806
+ const cleanVal = val && val.includes("*") ? val : (val || "").replace(/[^0-9]/g, "").slice(0, 10);
16807
+ props.onChange(cleanVal);
16729
16808
  setFocusIndex({
16730
16809
  index: plumberDetail === null || plumberDetail === void 0 ? void 0 : plumberDetail.key,
16731
16810
  type: "plumberMobileNo"
@@ -19027,6 +19106,24 @@ const WSDocumentsEmployee = _ref => {
19027
19106
  whiteSpace: "nowrap"
19028
19107
  }
19029
19108
  }, t("WS_DOWNLOAD_DOCUMENT"))) : null;
19109
+ const uploadInfoBanner = /*#__PURE__*/React.createElement("div", {
19110
+ style: {
19111
+ display: "flex",
19112
+ alignItems: "center",
19113
+ gap: "10px",
19114
+ marginBottom: "16px",
19115
+ padding: "10px 14px",
19116
+ backgroundColor: "#e8f4fd",
19117
+ borderLeft: "4px solid #00497e",
19118
+ borderRadius: "4px"
19119
+ }
19120
+ }, /*#__PURE__*/React.createElement("span", {
19121
+ style: {
19122
+ fontSize: "14px",
19123
+ color: "#00497e",
19124
+ fontWeight: "600"
19125
+ }
19126
+ }, "\u2139\uFE0F ", t("WS_DOCUMENT_UPLOAD_INSTRUCTION") || "Maximum upload size: 5MB per document. Supported formats: PDF, JPG, PNG."));
19030
19127
  if (userType === "citizen") {
19031
19128
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Timeline, {
19032
19129
  currentStep: 3
@@ -19036,7 +19133,7 @@ const WSDocumentsEmployee = _ref => {
19036
19133
  onSelect: goNext,
19037
19134
  onSkip: () => onSelect(),
19038
19135
  isDisabled: enableSubmit
19039
- }, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
19136
+ }, uploadInfoBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
19040
19137
  label: error,
19041
19138
  onClose: () => setError(null),
19042
19139
  error: true
@@ -19045,7 +19142,7 @@ const WSDocumentsEmployee = _ref => {
19045
19142
  return /*#__PURE__*/React.createElement(CollapsibleCardPage, {
19046
19143
  title: t("WS_DOCUMENTS"),
19047
19144
  defaultOpen: true
19048
- }, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
19145
+ }, uploadInfoBanner, nocDownloadSection, innerContent, error && /*#__PURE__*/React.createElement(Toast, {
19049
19146
  label: error,
19050
19147
  onClose: () => setError(null),
19051
19148
  error: true
@@ -19194,10 +19291,15 @@ function SelectDocument(_ref2) {
19194
19291
  }
19195
19292
  }, []);
19196
19293
  function selectfile(e, newFile) {
19197
- if (newFile) {
19198
- setFile(newFile);
19199
- } else {
19200
- setFile(e.target.files[0]);
19294
+ var _e$target, _e$target$files;
19295
+ 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]);
19296
+ if (selectedFile) {
19297
+ if (selectedFile.size > 5242880) {
19298
+ setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB");
19299
+ if (e !== null && e !== void 0 && e.target) e.target.value = "";
19300
+ return;
19301
+ }
19302
+ setFile(selectedFile);
19201
19303
  }
19202
19304
  setIsCameraFile(false);
19203
19305
  }
@@ -19310,8 +19412,9 @@ function SelectDocument(_ref2) {
19310
19412
  setFile(null);
19311
19413
  } else {
19312
19414
  const _temp5 = function () {
19313
- if (file.size >= 5242880) {
19314
- setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"));
19415
+ if (file.size > 5242880) {
19416
+ setError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB");
19417
+ setFile(null);
19315
19418
  } else {
19316
19419
  const _temp4 = function () {
19317
19420
  if ((doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && !file.type.match(/image\/(jpeg|png)/i) && !file.name.match(/\.(jpg|jpeg|png)$/i)) {
@@ -19494,6 +19597,13 @@ function SelectDocument(_ref2) {
19494
19597
  }, t(`${doc === null || doc === void 0 ? void 0 : (_doc$i18nKey2 = doc.i18nKey) === null || _doc$i18nKey2 === void 0 ? void 0 : _doc$i18nKey2.replaceAll(".", "_")}_UPLOAD_DOCUMENT`), (doc === null || doc === void 0 ? void 0 : doc.required) && /*#__PURE__*/React.createElement("span", {
19495
19598
  className: "check-page-link-button"
19496
19599
  }, "*"))), /*#__PURE__*/React.createElement("div", {
19600
+ style: {
19601
+ fontSize: "12px",
19602
+ color: "#666",
19603
+ marginTop: "-2px",
19604
+ marginBottom: "4px"
19605
+ }
19606
+ }, t("WS_DOCUMENT_MAX_SIZE_MESSAGE") || "Allowed formats: PDF, JPG, PNG | Max file size: 5MB"), /*#__PURE__*/React.createElement("div", {
19497
19607
  className: "field",
19498
19608
  style: {
19499
19609
  display: "flex",
@@ -25444,11 +25554,12 @@ const WSDjbEmployee = _ref => {
25444
25554
  const _temp3 = function () {
25445
25555
  if (file) {
25446
25556
  const _temp2 = function () {
25447
- if (file.size >= 5242880) {
25557
+ if (file.size > 5242880) {
25448
25558
  setErrorUpload({
25449
25559
  key: "error",
25450
- message: "CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"
25560
+ message: t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB"
25451
25561
  });
25562
+ setFile(null);
25452
25563
  } else {
25453
25564
  const _temp = _catch(function () {
25454
25565
  setUploadedFile(null);
@@ -25464,14 +25575,14 @@ const WSDjbEmployee = _ref => {
25464
25575
  } else {
25465
25576
  setErrorUpload({
25466
25577
  key: "error",
25467
- message: "CS_FILE_UPLOAD_ERROR"
25578
+ message: t("CS_FILE_UPLOAD_ERROR") || "File Upload Error"
25468
25579
  });
25469
25580
  }
25470
25581
  });
25471
25582
  }, function () {
25472
25583
  setErrorUpload({
25473
25584
  key: "error",
25474
- message: "CS_FILE_UPLOAD_ERROR"
25585
+ message: t("CS_FILE_UPLOAD_ERROR") || "File Upload Error"
25475
25586
  });
25476
25587
  });
25477
25588
  if (_temp && _temp.then) return _temp.then(function () {});
@@ -25487,7 +25598,19 @@ const WSDjbEmployee = _ref => {
25487
25598
  })();
25488
25599
  }, [file]);
25489
25600
  function selectfile(e) {
25490
- setFile(e.target.files[0]);
25601
+ var _e$target, _e$target$files;
25602
+ 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];
25603
+ if (selected) {
25604
+ if (selected.size > 5242880) {
25605
+ setErrorUpload({
25606
+ key: "error",
25607
+ message: t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "File size should not exceed 5MB"
25608
+ });
25609
+ if (e !== null && e !== void 0 && e.target) e.target.value = "";
25610
+ return;
25611
+ }
25612
+ setFile(selected);
25613
+ }
25491
25614
  }
25492
25615
  useEffect(() => {
25493
25616
  const isEmployeeMode = userType === "employee" || window.location.href.includes("edit-application") || window.location.href.includes("modify-connection") || window.location.href.includes("old-application");
@@ -25622,9 +25745,16 @@ const WSDjbEmployee = _ref => {
25622
25745
  })
25623
25746
  }), (localFormState === null || localFormState === void 0 ? void 0 : (_localFormState$touch2 = localFormState.touched) === null || _localFormState$touch2 === void 0 ? void 0 : _localFormState$touch2.designation) && !(formValue !== null && formValue !== void 0 && (_formValue$designatio = formValue.designation) !== null && _formValue$designatio !== void 0 && (_formValue$designatio2 = _formValue$designatio.trim) !== null && _formValue$designatio2 !== void 0 && _formValue$designatio2.call(_formValue$designatio)) && /*#__PURE__*/React.createElement(CardLabelError, {
25624
25747
  style: errorStyle
25625
- }, t("CORE_COMMON_REQUIRED_ERRMSG"))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement(CardLabel, null, t("Upload Employee ID Document"), isDjbEmployee && /*#__PURE__*/React.createElement("span", {
25748
+ }, t("CORE_COMMON_REQUIRED_ERRMSG"))))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(LabelFieldPair, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t("Upload Employee ID Document"), isDjbEmployee && /*#__PURE__*/React.createElement("span", {
25626
25749
  className: "check-page-link-button"
25627
25750
  }, " *")), /*#__PURE__*/React.createElement("div", {
25751
+ style: {
25752
+ fontSize: "12px",
25753
+ color: "#666",
25754
+ marginTop: "-2px",
25755
+ marginBottom: "4px"
25756
+ }
25757
+ }, t("WS_DOCUMENT_MAX_SIZE_MESSAGE") || "Allowed formats: PDF, JPG, PNG | Max file size: 5MB")), /*#__PURE__*/React.createElement("div", {
25628
25758
  className: "field",
25629
25759
  style: {
25630
25760
  width: "100%"
@@ -28288,14 +28418,14 @@ const MobileSearchWater = _ref => {
28288
28418
  return [];
28289
28419
  }
28290
28420
  return data === null || data === void 0 ? void 0 : data.map(data => {
28291
- var _data$status, _data$status2;
28421
+ var _data$status, _data$property, _data$status2;
28292
28422
  return {
28293
28423
  [t("WS_MYCONNECTIONS_CONSUMER_NO")]: GetStatusLinkCell(data) || t(`${"WS_NA"}`),
28294
28424
  [t("WS_COMMON_TABLE_COL_SERVICE_LABEL")]: t(`WS_${data === null || data === void 0 ? void 0 : data.service}`),
28295
28425
  [t("WS_COMMON_TABLE_COL_OWN_NAME_LABEL")]: (data === null || data === void 0 ? void 0 : data.owner) || t(`${"WS_NA"}`),
28296
28426
  [t("WS_COMMON_TABLE_COL_STATUS_LABEL")]: t(`WS_${data === null || data === void 0 ? void 0 : (_data$status = data.status) === null || _data$status === void 0 ? void 0 : _data$status.toUpperCase()}`),
28297
28427
  [t("WS_COMMON_TABLE_COL_AMT_DUE_LABEL")]: (data === null || data === void 0 ? void 0 : data.due) || t(`${"WS_NA"}`),
28298
- [t("WS_COMMON_TABLE_COL_ADDRESS")]: (data === null || data === void 0 ? void 0 : data.address) || t(`${"WS_NA"}`),
28428
+ [t("WS_COMMON_TABLE_COL_ADDRESS")]: formatPropertyAddress((data === null || data === void 0 ? void 0 : (_data$property = data.property) === null || _data$property === void 0 ? void 0 : _data$property.address) || (data === null || data === void 0 ? void 0 : data.propertyAddress), t) || (data === null || data === void 0 ? void 0 : data.address) || t(`${"WS_NA"}`),
28299
28429
  [t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL")]: (data === null || data === void 0 ? void 0 : (_data$status2 = data.status) === null || _data$status2 === void 0 ? void 0 : _data$status2.toUpperCase()) === "INACTIVE" ? t(`${"WS_NA"}`) : data !== null && data !== void 0 && data.dueDate ? convertEpochToDate(data === null || data === void 0 ? void 0 : data.dueDate) : t(`${"WS_NA"}`),
28300
28430
  [t("WS_COMMON_TABLE_COL_ACTION_LABEL")]: data !== null && data !== void 0 && data.due ? getActionItems(data === null || data === void 0 ? void 0 : data.status, data) : t(`${"WS_NA"}`)
28301
28431
  };
@@ -28512,36 +28642,69 @@ const SearchWaterConnection = _ref => {
28512
28642
  Header: t("WS_COMMON_TABLE_COL_ADDRESS"),
28513
28643
  disableSortBy: true,
28514
28644
  Cell: _ref7 => {
28515
- var _row$original1;
28645
+ var _row$original1, _row$original10, _row$original11, _property$owners, _property$owners$, _row$original12;
28516
28646
  let {
28517
28647
  row
28518
28648
  } = _ref7;
28519
- return GetCell(`${((_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1["address"]) || "NA"}`);
28649
+ const property = (_row$original1 = row.original) === null || _row$original1 === void 0 ? void 0 : _row$original1.property;
28650
+ 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);
28651
+ const formattedAddress = formatPropertyAddress(propertyAddress, t) || ((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11["address"]) || t("CS_NA");
28652
+ 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;
28653
+ 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);
28654
+ if (ownerUuid && propId) {
28655
+ var _String;
28656
+ const privacy = {
28657
+ uuid: ownerUuid,
28658
+ fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
28659
+ model: "Property",
28660
+ hide: !propertyAddress,
28661
+ showValue: true,
28662
+ loadData: {
28663
+ serviceName: "/property-services/property/_search",
28664
+ requestBody: {},
28665
+ requestParam: {
28666
+ tenantId: tenantId,
28667
+ propertyIds: propId
28668
+ },
28669
+ jsonPath: "Properties[0].address.street",
28670
+ isArray: false,
28671
+ d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}), t)
28672
+ }
28673
+ };
28674
+ return /*#__PURE__*/React.createElement("span", {
28675
+ className: "cell-text"
28676
+ }, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
28677
+ value: formattedAddress,
28678
+ iseyevisible: (_String = String(formattedAddress)) === null || _String === void 0 ? void 0 : _String.includes("*"),
28679
+ privacy: privacy
28680
+ }));
28681
+ }
28682
+ return GetCell(formattedAddress);
28520
28683
  }
28521
28684
  }, {
28522
28685
  Header: t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL"),
28523
28686
  disableSortBy: true,
28524
28687
  Cell: _ref8 => {
28525
- var _row$original10, _row$original10$statu, _row$original11, _row$original12;
28688
+ var _row$original13, _row$original13$statu, _row$original14, _row$original15;
28526
28689
  let {
28527
28690
  row
28528
28691
  } = _ref8;
28529
- const status = ((_row$original10 = row.original) === null || _row$original10 === void 0 ? void 0 : (_row$original10$statu = _row$original10["status"]) === null || _row$original10$statu === void 0 ? void 0 : _row$original10$statu.toUpperCase()) || "";
28530
- const dueDate = ((_row$original11 = row.original) === null || _row$original11 === void 0 ? void 0 : _row$original11.dueDate) === "NA" ? t("WS_NA") : convertEpochToDate((_row$original12 = row.original) === null || _row$original12 === void 0 ? void 0 : _row$original12.dueDate);
28692
+ 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()) || "";
28693
+ const dueDate = ((_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.dueDate) === "NA" ? t("WS_NA") : convertEpochToDate((_row$original15 = row.original) === null || _row$original15 === void 0 ? void 0 : _row$original15.dueDate);
28531
28694
  return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
28532
28695
  }
28533
28696
  }, {
28534
28697
  Header: t("WS_COMMON_TABLE_COL_ACTION_LABEL"),
28535
28698
  disableSortBy: true,
28536
28699
  Cell: _ref9 => {
28537
- var _row$original13;
28700
+ var _row$original16;
28538
28701
  let {
28539
28702
  row
28540
28703
  } = _ref9;
28541
- const amount = (_row$original13 = row.original) === null || _row$original13 === void 0 ? void 0 : _row$original13.due;
28704
+ const amount = (_row$original16 = row.original) === null || _row$original16 === void 0 ? void 0 : _row$original16.due;
28542
28705
  if (amount || amount === 0) {
28543
- var _row$original14;
28544
- return GetCell(getActionItem((_row$original14 = row.original) === null || _row$original14 === void 0 ? void 0 : _row$original14.status, row));
28706
+ var _row$original17;
28707
+ return GetCell(getActionItem((_row$original17 = row.original) === null || _row$original17 === void 0 ? void 0 : _row$original17.status, row));
28545
28708
  } else {
28546
28709
  return GetCell(t(`${"WS_NA"}`));
28547
28710
  }
@@ -28552,14 +28715,14 @@ const SearchWaterConnection = _ref => {
28552
28715
  disableSortBy: true,
28553
28716
  accessor: "connectionNo",
28554
28717
  Cell: _ref0 => {
28555
- var _row$original15, _row$original16, _row$original17;
28718
+ var _row$original18, _row$original19, _row$original20;
28556
28719
  let {
28557
28720
  row
28558
28721
  } = _ref0;
28559
28722
  return /*#__PURE__*/React.createElement("div", null, row.original["connectionNo"] ? /*#__PURE__*/React.createElement("span", {
28560
28723
  className: "link"
28561
28724
  }, /*#__PURE__*/React.createElement(Link, {
28562
- to: `/digit-ui/employee/ws/connection-details?applicationNumber=${row.original["connectionNo"]}&tenantId=${tenantId}&service=${(_row$original15 = row.original) === null || _row$original15 === void 0 ? void 0 : _row$original15["service"]}&connectionType=${(_row$original16 = row.original) === null || _row$original16 === void 0 ? void 0 : _row$original16["connectionType"]}&due=${((_row$original17 = row.original) === null || _row$original17 === void 0 ? void 0 : _row$original17.due) || 0}&from=WS_SEWERAGE_CONNECTION_SEARCH_LABEL`
28725
+ to: `/digit-ui/employee/ws/connection-details?applicationNumber=${row.original["connectionNo"]}&tenantId=${tenantId}&service=${(_row$original18 = row.original) === null || _row$original18 === void 0 ? void 0 : _row$original18["service"]}&connectionType=${(_row$original19 = row.original) === null || _row$original19 === void 0 ? void 0 : _row$original19["connectionType"]}&due=${((_row$original20 = row.original) === null || _row$original20 === void 0 ? void 0 : _row$original20.due) || 0}&from=WS_SEWERAGE_CONNECTION_SEARCH_LABEL`
28563
28726
  }, row.original["connectionNo"] || "NA")) : /*#__PURE__*/React.createElement("span", null, t("NA")));
28564
28727
  }
28565
28728
  }, {
@@ -28575,11 +28738,11 @@ const SearchWaterConnection = _ref => {
28575
28738
  Header: t("WS_COMMON_TABLE_COL_propertyId_LABEL"),
28576
28739
  disableSortBy: true,
28577
28740
  Cell: _ref10 => {
28578
- var _row$original18, _row$original18$prope;
28741
+ var _row$original21, _row$original21$prope;
28579
28742
  let {
28580
28743
  row
28581
28744
  } = _ref10;
28582
- return GetCell(t(`WS_${(_row$original18 = row.original) === null || _row$original18 === void 0 ? void 0 : (_row$original18$prope = _row$original18["propertyId"]) === null || _row$original18$prope === void 0 ? void 0 : _row$original18$prope.toUpperCase()}`));
28745
+ return GetCell(t(`WS_${(_row$original21 = row.original) === null || _row$original21 === void 0 ? void 0 : (_row$original21$prope = _row$original21["propertyId"]) === null || _row$original21$prope === void 0 ? void 0 : _row$original21$prope.toUpperCase()}`));
28583
28746
  }
28584
28747
  }, {
28585
28748
  Header: t("WS_COMMON_TABLE_COL_ACTION_LABEL"),
@@ -28609,18 +28772,18 @@ const SearchWaterConnection = _ref => {
28609
28772
  }
28610
28773
  };
28611
28774
  return Promise.resolve(Digit.WSService.WSSewsearchDemandGen(payload, window.location.href.includes("ws/sewerage/search-demand") ? "sw" : "ws")).then(function (data) {
28612
- var _row$original19, _row$original20, _row$original21;
28775
+ var _row$original22, _row$original23, _row$original24;
28613
28776
  setShowToast({
28614
28777
  label: `${data}`
28615
28778
  });
28616
- history.push(`/digit-ui/employee/payment/collect/SW/${encodeURIComponent((_row$original19 = row.original) === null || _row$original19 === void 0 ? void 0 : _row$original19["connectionNo"])}/${(_row$original20 = row.original) === null || _row$original20 === void 0 ? void 0 : _row$original20["tenantId"]}?tenantId=${(_row$original21 = row.original) === null || _row$original21 === void 0 ? void 0 : _row$original21["tenantId"]}?workflow=WS&ISWSCON`);
28779
+ history.push(`/digit-ui/employee/payment/collect/SW/${encodeURIComponent((_row$original22 = row.original) === null || _row$original22 === void 0 ? void 0 : _row$original22["connectionNo"])}/${(_row$original23 = row.original) === null || _row$original23 === void 0 ? void 0 : _row$original23["tenantId"]}?tenantId=${(_row$original24 = row.original) === null || _row$original24 === void 0 ? void 0 : _row$original24["tenantId"]}?workflow=WS&ISWSCON`);
28617
28780
  });
28618
28781
  } catch (e) {
28619
28782
  return Promise.reject(e);
28620
28783
  }
28621
28784
  };
28622
28785
  const getActionItem = (status, row) => {
28623
- var _row$original22, _row$original23, _row$original24, _row$original25, _row$original26, _row$original27, _row$original28, _row$original29, _row$original30;
28786
+ var _row$original25, _row$original26, _row$original27, _row$original28, _row$original29, _row$original30, _row$original31, _row$original32, _row$original33;
28624
28787
  const userInfo = Digit.UserService.getUser();
28625
28788
  const userRoles = userInfo.info.roles.map(roleData => roleData.code);
28626
28789
  const isUserAllowedToAddMeterReading = userRoles.filter(role => role === "WS_CEMP" || role === "SW_CEMP").length > 0;
@@ -28629,13 +28792,13 @@ const SearchWaterConnection = _ref => {
28629
28792
  case "Active":
28630
28793
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("span", {
28631
28794
  className: "link"
28632
- }, ((_row$original22 = row.original) === null || _row$original22 === void 0 ? void 0 : _row$original22.service) === "WATER" ? /*#__PURE__*/React.createElement(Link, {
28795
+ }, ((_row$original25 = row.original) === null || _row$original25 === void 0 ? void 0 : _row$original25.service) === "WATER" ? /*#__PURE__*/React.createElement(Link, {
28633
28796
  to: {
28634
- pathname: `/digit-ui/employee/payment/collect/${((_row$original23 = row.original) === null || _row$original23 === void 0 ? void 0 : _row$original23["service"]) === "WATER" ? "WS" : "SW"}/${encodeURIComponent((_row$original24 = row.original) === null || _row$original24 === void 0 ? void 0 : _row$original24["connectionNo"])}/${(_row$original25 = row.original) === null || _row$original25 === void 0 ? void 0 : _row$original25["tenantId"]}?tenantId=${(_row$original26 = row.original) === null || _row$original26 === void 0 ? void 0 : _row$original26["tenantId"]}?workflow=WS&ISWSCON`
28797
+ pathname: `/digit-ui/employee/payment/collect/${((_row$original26 = row.original) === null || _row$original26 === void 0 ? void 0 : _row$original26["service"]) === "WATER" ? "WS" : "SW"}/${encodeURIComponent((_row$original27 = row.original) === null || _row$original27 === void 0 ? void 0 : _row$original27["connectionNo"])}/${(_row$original28 = row.original) === null || _row$original28 === void 0 ? void 0 : _row$original28["tenantId"]}?tenantId=${(_row$original29 = row.original) === null || _row$original29 === void 0 ? void 0 : _row$original29["tenantId"]}?workflow=WS&ISWSCON`
28635
28798
  }
28636
28799
  }, t(`${"WS_COMMON_COLLECT_LABEL"}`), " ") : /*#__PURE__*/React.createElement(Link, {
28637
28800
  to: {
28638
- pathname: `/digit-ui/employee/payment/collect/${((_row$original27 = row.original) === null || _row$original27 === void 0 ? void 0 : _row$original27["service"]) === "WATER" ? "WS" : "SW"}/${encodeURIComponent((_row$original28 = row.original) === null || _row$original28 === void 0 ? void 0 : _row$original28["connectionNo"])}/${(_row$original29 = row.original) === null || _row$original29 === void 0 ? void 0 : _row$original29["tenantId"]}?tenantId=${(_row$original30 = row.original) === null || _row$original30 === void 0 ? void 0 : _row$original30["tenantId"]}?workflow=SW&ISWSCON`
28801
+ pathname: `/digit-ui/employee/payment/collect/${((_row$original30 = row.original) === null || _row$original30 === void 0 ? void 0 : _row$original30["service"]) === "WATER" ? "WS" : "SW"}/${encodeURIComponent((_row$original31 = row.original) === null || _row$original31 === void 0 ? void 0 : _row$original31["connectionNo"])}/${(_row$original32 = row.original) === null || _row$original32 === void 0 ? void 0 : _row$original32["tenantId"]}?tenantId=${(_row$original33 = row.original) === null || _row$original33 === void 0 ? void 0 : _row$original33["tenantId"]}?workflow=SW&ISWSCON`
28639
28802
  }
28640
28803
  }, t(`${"WS_COMMON_COLLECT_LABEL"}`), " ")));
28641
28804
  }
@@ -34648,27 +34811,27 @@ const checkForNA$2 = value => {
34648
34811
  return value ? value : "CS_NA";
34649
34812
  };
34650
34813
  const WSApplicationDetails = () => {
34651
- var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect6, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$WaterConnection10, _data$SewerageConnect1, _data$SewerageConnect10, _data$WaterConnection11, _data$WaterConnection12, _data$SewerageConnect11, _data$SewerageConnect12, _data$WaterConnection13, _data$SewerageConnect13, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _appDetailsData$appli, _data$WaterConnection38, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect34, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _appDetailsData$appli2, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _applicationData$addi, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect113, _data$SewerageConnect114, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect117, _data$SewerageConnect118, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties9, _PTData$Properties9$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties0, _PTData$Properties0$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties1, _PTData$Properties1$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _applicationData$addi4, _applicationData$addi5, _applicationData$addi6, _applicationData$prop, _applicationData$prop2, _applicationData$prop3, _applicationData$addi7, _applicationData$addi8, _applicationData$prop4, _applicationData$prop5, _applicationData$addi9, _applicationData$addi0, _applicationData$prop6, _applicationData$prop7, _applicationData$dueV, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$WaterConnection177, _data$SewerageConnect171, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$WaterConnection185, _data$WaterConnection186, _data$SewerageConnect178, _data$SewerageConnect179, _data$WaterConnection187, _data$WaterConnection188, _data$SewerageConnect180;
34814
+ var _user$info, _user$info$userName, _user$info2, _user$info3, _Digit$SessionStorage, _user$info4, _data$WaterConnection, _data$WaterConnection2, _data$SewerageConnect, _data$SewerageConnect2, _data$WaterConnection3, _data$WaterConnection4, _data$WaterConnection5, _data$SewerageConnect3, _data$SewerageConnect4, _data$SewerageConnect5, _data$WaterConnection6, _data$WaterConnection7, _data$WaterConnection8, _data$SewerageConnect6, _data$SewerageConnect7, _data$SewerageConnect8, _data$WaterConnection9, _data$WaterConnection0, _data$SewerageConnect9, _data$SewerageConnect0, _data$WaterConnection1, _data$WaterConnection10, _data$SewerageConnect1, _data$SewerageConnect10, _data$WaterConnection11, _data$WaterConnection12, _data$SewerageConnect11, _data$SewerageConnect12, _data$WaterConnection13, _data$SewerageConnect13, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection14, _data$WaterConnection15, _data$WaterConnection16, _data$WaterConnection17, _data$SewerageConnect14, _data$SewerageConnect15, _data$SewerageConnect16, _data$SewerageConnect17, _data$WaterConnection18, _data$WaterConnection19, _data$SewerageConnect18, _data$SewerageConnect19, _appDetailsData$appli, _data$WaterConnection38, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect34, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _appDetailsData$appli2, _data$WaterConnection43, _data$WaterConnection44, _data$WaterConnection45, _data$SewerageConnect39, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection46, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$SewerageConnect44, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$WaterConnection57, _data$SewerageConnect50, _data$SewerageConnect51, _data$SewerageConnect52, _data$WaterConnection58, _data$WaterConnection59, _data$SewerageConnect53, _data$SewerageConnect54, _data$WaterConnection60, _data$WaterConnection61, _data$SewerageConnect55, _data$SewerageConnect56, _data$WaterConnection62, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect57, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$SewerageConnect60, _data$SewerageConnect61, _data$WaterConnection67, _data$WaterConnection68, _data$WaterConnection69, _data$SewerageConnect62, _data$SewerageConnect63, _data$SewerageConnect64, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$WaterConnection75, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$SewerageConnect70, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$ad, _connectionDetails$ad2, _connectionDetails$ad3, _applicationData$addi, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection79, _data$WaterConnection80, _data$WaterConnection81, _data$SewerageConnect74, _data$SewerageConnect75, _data$SewerageConnect76, _data$WaterConnection82, _data$WaterConnection83, _data$WaterConnection84, _data$WaterConnection85, _data$SewerageConnect77, _data$SewerageConnect78, _data$SewerageConnect79, _data$SewerageConnect80, _data$WaterConnection86, _data$WaterConnection87, _data$WaterConnection88, _data$WaterConnection89, _data$SewerageConnect81, _data$SewerageConnect82, _data$SewerageConnect83, _data$SewerageConnect84, _data$WaterConnection90, _data$WaterConnection91, _data$WaterConnection92, _data$WaterConnection93, _data$SewerageConnect85, _data$SewerageConnect86, _data$SewerageConnect87, _data$SewerageConnect88, _data$WaterConnection94, _data$WaterConnection95, _data$WaterConnection96, _data$WaterConnection97, _data$SewerageConnect89, _data$SewerageConnect90, _data$SewerageConnect91, _data$SewerageConnect92, _data$WaterConnection98, _data$WaterConnection99, _data$WaterConnection100, _data$WaterConnection101, _data$SewerageConnect93, _data$SewerageConnect94, _data$SewerageConnect95, _data$SewerageConnect96, _data$WaterConnection102, _data$WaterConnection103, _data$WaterConnection104, _data$WaterConnection105, _data$SewerageConnect97, _data$SewerageConnect98, _data$SewerageConnect99, _data$SewerageConnect100, _data$WaterConnection106, _data$WaterConnection107, _data$WaterConnection108, _data$WaterConnection109, _data$SewerageConnect101, _data$SewerageConnect102, _data$SewerageConnect103, _data$SewerageConnect104, _data$WaterConnection110, _data$WaterConnection111, _data$WaterConnection112, _data$WaterConnection113, _data$SewerageConnect105, _data$SewerageConnect106, _data$SewerageConnect107, _data$SewerageConnect108, _data$WaterConnection114, _data$WaterConnection115, _data$WaterConnection116, _data$WaterConnection117, _data$SewerageConnect109, _data$SewerageConnect110, _data$SewerageConnect111, _data$SewerageConnect112, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect113, _data$SewerageConnect114, _PTData$Properties5, _PTData$Properties5$, _PTData$Properties5$$, _PTData$Properties5$$2, _PTData$Properties6, _PTData$Properties6$, _PTData$Properties7, _PTData$Properties7$, _PTData$Properties7$$, _PTData$Properties7$$2, _PTData$Properties8, _PTData$Properties8$, _PTData$Properties9, _PTData$Properties9$, _data$WaterConnection120, _data$WaterConnection121, _data$SewerageConnect115, _data$SewerageConnect116, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect117, _data$SewerageConnect118, _propertyAddress$city, _propertyAddress$city2, _propertyAddress$city3, _propertyAddress$city4, _propertyAddress$loca, _propertyAddress$loca2, _propertyAddress$subL, _propertyAddress$subL2, _propertyAddress$asse, _propertyAddress$asse2, _propertyAddress$bloc, _propertyAddress$bloc2, _propertyAddress$ward, _propertyAddress$ward2, _propertyAddress$zone, _propertyAddress$zone2, _propertyAddress$zone3, _propertyAddress$zone4, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _propertyAdditionalDe, _propertyAdditionalDe2, _PTData$Properties0, _PTData$Properties0$, _useDetails$propertyT, _useDetails$propertyT2, _propertyAdditionalDe3, _propertyAdditionalDe4, _PTData$Properties1, _PTData$Properties1$, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _propertyAdditionalDe5, _propertyAdditionalDe6, _useDetails$noOfFloor, _useDetails$noOfFloor2, _PTData$Properties10, _PTData$Properties10$, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _useDetails$propertyC3, _useDetails$propertyC4, _applicationData$addi4, _applicationData$addi5, _applicationData$addi6, _applicationData$prop, _applicationData$prop2, _applicationData$prop3, _applicationData$addi7, _applicationData$addi8, _applicationData$prop4, _applicationData$prop5, _applicationData$addi9, _applicationData$addi0, _applicationData$prop6, _applicationData$prop7, _applicationData$dueV, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection130, _data$WaterConnection131, _data$WaterConnection132, _data$WaterConnection133, _data$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect125, _data$SewerageConnect126, _data$SewerageConnect127, _data$SewerageConnect128, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection141, _data$WaterConnection142, _data$WaterConnection143, _data$WaterConnection144, _data$WaterConnection145, _data$SewerageConnect136, _data$SewerageConnect137, _data$SewerageConnect138, _data$SewerageConnect139, _data$SewerageConnect140, _data$WaterConnection146, _data$WaterConnection147, _data$SewerageConnect141, _data$SewerageConnect142, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection150, _data$WaterConnection151, _data$SewerageConnect145, _data$SewerageConnect146, _data$WaterConnection152, _data$WaterConnection153, _data$WaterConnection154, _data$SewerageConnect147, _data$SewerageConnect148, _data$WaterConnection155, _data$WaterConnection156, _data$SewerageConnect149, _data$SewerageConnect150, _data$WaterConnection157, _data$WaterConnection158, _data$WaterConnection159, _data$WaterConnection160, _data$WaterConnection161, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection162, _data$WaterConnection163, _data$SewerageConnect156, _data$SewerageConnect157, _data$SewerageConnect158, _data$SewerageConnect159, _data$SewerageConnect160, _data$SewerageConnect161, _data$SewerageConnect162, _data$SewerageConnect163, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$WaterConnection164, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$WaterConnection168, _data$WaterConnection169, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$WaterConnection174, _data$WaterConnection175, _data$WaterConnection176, _data$SewerageConnect167, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$WaterConnection177, _data$SewerageConnect171, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$WaterConnection185, _data$WaterConnection186, _data$SewerageConnect178, _data$SewerageConnect179, _data$WaterConnection187, _data$WaterConnection188, _data$SewerageConnect180;
34652
34815
  const getDisconnectionNoticeSearch = function () {
34653
34816
  try {
34654
34817
  var _data$WaterConnection190, _data$WaterConnection191, _data$SewerageConnect182, _data$SewerageConnect183;
34655
34818
  let key = "ws-waterdisconnectionnotice";
34656
34819
  let details = {};
34657
34820
  if (applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("WS")) {
34658
- var _data$WaterConnection189, _PTData$Properties11;
34821
+ var _data$WaterConnection189, _PTData$Properties12;
34659
34822
  details = {
34660
34823
  WaterConnection: [{
34661
34824
  ...(data === null || data === void 0 ? void 0 : (_data$WaterConnection189 = data.WaterConnection) === null || _data$WaterConnection189 === void 0 ? void 0 : _data$WaterConnection189[0]),
34662
- property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : _PTData$Properties11[0]
34825
+ property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
34663
34826
  }]
34664
34827
  };
34665
34828
  } else {
34666
- var _data$SewerageConnect181, _PTData$Properties12;
34829
+ var _data$SewerageConnect181, _PTData$Properties13;
34667
34830
  key = "ws-seweragedisconnectionnotice";
34668
34831
  details = {
34669
34832
  SewerageConnection: [{
34670
34833
  ...(data === null || data === void 0 ? void 0 : (_data$SewerageConnect181 = data.SewerageConnections) === null || _data$SewerageConnect181 === void 0 ? void 0 : _data$SewerageConnect181[0]),
34671
- property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties12 = PTData.Properties) === null || _PTData$Properties12 === void 0 ? void 0 : _PTData$Properties12[0]
34834
+ property: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties13 = PTData.Properties) === null || _PTData$Properties13 === void 0 ? void 0 : _PTData$Properties13[0]
34672
34835
  }]
34673
34836
  };
34674
34837
  }
@@ -35273,13 +35436,13 @@ const WSApplicationDetails = () => {
35273
35436
  }
35274
35437
  }), /*#__PURE__*/React.createElement(Row, {
35275
35438
  label: t("WS_PROPERTY_ADDRESS"),
35276
- text: getAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties6 = PTData.Properties) === null || _PTData$Properties6 === void 0 ? void 0 : (_PTData$Properties6$ = _PTData$Properties6[0]) === null || _PTData$Properties6$ === void 0 ? void 0 : _PTData$Properties6$.address, t) || t("CS_NA"),
35439
+ text: formatPropertyAddress(PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties6 = PTData.Properties) === null || _PTData$Properties6 === void 0 ? void 0 : (_PTData$Properties6$ = _PTData$Properties6[0]) === null || _PTData$Properties6$ === void 0 ? void 0 : _PTData$Properties6$.address) || t("CS_NA"),
35277
35440
  textStyle: {
35278
35441
  wordBreak: "break-word"
35279
35442
  },
35280
35443
  privacy: {
35281
35444
  uuid: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties7 = PTData.Properties) === null || _PTData$Properties7 === void 0 ? void 0 : (_PTData$Properties7$ = _PTData$Properties7[0]) === null || _PTData$Properties7$ === void 0 ? void 0 : (_PTData$Properties7$$ = _PTData$Properties7$.owners) === null || _PTData$Properties7$$ === void 0 ? void 0 : (_PTData$Properties7$$2 = _PTData$Properties7$$[0]) === null || _PTData$Properties7$$2 === void 0 ? void 0 : _PTData$Properties7$$2.uuid,
35282
- fieldName: ["doorNo", "street", "landmark"],
35445
+ fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
35283
35446
  model: "Property",
35284
35447
  hide: !(PTData !== null && PTData !== void 0 && (_PTData$Properties8 = PTData.Properties) !== null && _PTData$Properties8 !== void 0 && (_PTData$Properties8$ = _PTData$Properties8[0]) !== null && _PTData$Properties8$ !== void 0 && _PTData$Properties8$.address),
35285
35448
  showValue: true,
@@ -35288,14 +35451,11 @@ const WSApplicationDetails = () => {
35288
35451
  requestBody: {},
35289
35452
  requestParam: {
35290
35453
  tenantId: tenantId,
35291
- mobileNumber: userMobileNumber
35454
+ propertyIds: PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : _PTData$Properties9$.propertyId
35292
35455
  },
35293
35456
  jsonPath: "Properties[0].address.street",
35294
35457
  isArray: false,
35295
- d: res => {
35296
- let resultString = (lodash.get(res, "Properties[0].address.doorNo") ? `${lodash.get(res, "Properties[0].address.doorNo")}, ` : "") + (lodash.get(res, "Properties[0].address.street") ? `${lodash.get(res, "Properties[0].address.street")}, ` : "") + (lodash.get(res, "Properties[0].address.landmark") ? `${lodash.get(res, "Properties[0].address.landmark")}` : "");
35297
- return resultString;
35298
- }
35458
+ d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}))
35299
35459
  }
35300
35460
  }
35301
35461
  }), /*#__PURE__*/React.createElement(Link, {
@@ -35382,16 +35542,16 @@ const WSApplicationDetails = () => {
35382
35542
  text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT = useDetails.categoryType) === null || _useDetails$categoryT === void 0 ? void 0 : _useDetails$categoryT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$categoryT2 = useDetails.categoryType) === null || _useDetails$categoryT2 === void 0 ? void 0 : _useDetails$categoryT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.categoryType)))}`
35383
35543
  }), /*#__PURE__*/React.createElement(Row, {
35384
35544
  label: t("WS_PROPERTY_CATEGORY"),
35385
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe === void 0 ? void 0 : _propertyAdditionalDe.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe2 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe2 === void 0 ? void 0 : _propertyAdditionalDe2.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties9 = PTData.Properties) === null || _PTData$Properties9 === void 0 ? void 0 : (_PTData$Properties9$ = _PTData$Properties9[0]) === null || _PTData$Properties9$ === void 0 ? void 0 : _PTData$Properties9$.usageCategory)))}`
35545
+ text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC = useDetails.propertyCategory) === null || _useDetails$propertyC === void 0 ? void 0 : _useDetails$propertyC.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyC2 = useDetails.propertyCategory) === null || _useDetails$propertyC2 === void 0 ? void 0 : _useDetails$propertyC2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyCategory) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe === void 0 ? void 0 : _propertyAdditionalDe.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe2 = propertyAdditionalDetails.propertyCategory) === null || _propertyAdditionalDe2 === void 0 ? void 0 : _propertyAdditionalDe2.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyCategory) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : _PTData$Properties0$.usageCategory)))}`
35386
35546
  }), /*#__PURE__*/React.createElement(Row, {
35387
35547
  label: t("WS_PROPERTY_TYPE"),
35388
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe3 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe3 === void 0 ? void 0 : _propertyAdditionalDe3.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe4 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe4 === void 0 ? void 0 : _propertyAdditionalDe4.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyType) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties0 = PTData.Properties) === null || _PTData$Properties0 === void 0 ? void 0 : (_PTData$Properties0$ = _PTData$Properties0[0]) === null || _PTData$Properties0$ === void 0 ? void 0 : _PTData$Properties0$.propertyType)))}`
35548
+ text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT = useDetails.propertyType) === null || _useDetails$propertyT === void 0 ? void 0 : _useDetails$propertyT.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$propertyT2 = useDetails.propertyType) === null || _useDetails$propertyT2 === void 0 ? void 0 : _useDetails$propertyT2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.propertyType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe3 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe3 === void 0 ? void 0 : _propertyAdditionalDe3.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe4 = propertyAdditionalDetails.propertyType) === null || _propertyAdditionalDe4 === void 0 ? void 0 : _propertyAdditionalDe4.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.propertyType) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : _PTData$Properties1$.propertyType)))}`
35389
35549
  }), /*#__PURE__*/React.createElement(Row, {
35390
35550
  label: t("WS_WATER_CONNECTION_USAGE_TYPE"),
35391
35551
  text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn === void 0 ? void 0 : _useDetails$WaterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$WaterConn2 = useDetails.WaterConnectionUsageType) === null || _useDetails$WaterConn2 === void 0 ? void 0 : _useDetails$WaterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.WaterConnectionUsageType) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn === void 0 ? void 0 : _useDetails$waterConn.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$waterConn2 = useDetails.waterConnectionUsageType) === null || _useDetails$waterConn2 === void 0 ? void 0 : _useDetails$waterConn2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.waterConnectionUsageType) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe5 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe5 === void 0 ? void 0 : _propertyAdditionalDe5.name) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : (_propertyAdditionalDe6 = propertyAdditionalDetails.waterConnectionUsageType) === null || _propertyAdditionalDe6 === void 0 ? void 0 : _propertyAdditionalDe6.code) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.waterConnectionUsageType)))}`
35392
35552
  }), /*#__PURE__*/React.createElement(Row, {
35393
35553
  label: t("WS_NUMBER_OF_FLOORS"),
35394
- text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties1 = PTData.Properties) === null || _PTData$Properties1 === void 0 ? void 0 : (_PTData$Properties1$ = _PTData$Properties1[0]) === null || _PTData$Properties1$ === void 0 ? void 0 : _PTData$Properties1$.noOfFloors)))}`
35554
+ text: `${t(checkForNA$2((useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor = useDetails.noOfFloors) === null || _useDetails$noOfFloor === void 0 ? void 0 : _useDetails$noOfFloor.i18nKey) || (useDetails === null || useDetails === void 0 ? void 0 : (_useDetails$noOfFloor2 = useDetails.noOfFloors) === null || _useDetails$noOfFloor2 === void 0 ? void 0 : _useDetails$noOfFloor2.code) || (useDetails === null || useDetails === void 0 ? void 0 : useDetails.noOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.numberOfFloors) || (propertyAdditionalDetails === null || propertyAdditionalDetails === void 0 ? void 0 : propertyAdditionalDetails.noOfFloors) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : _PTData$Properties10$.noOfFloors)))}`
35395
35555
  }), /*#__PURE__*/React.createElement(Row, {
35396
35556
  label: t("WS_PLOT_AREA"),
35397
35557
  text: `${t(checkForNA$2(useDetails === null || useDetails === void 0 ? void 0 : useDetails.plotArea))}`
@@ -35602,10 +35762,10 @@ const WSApplicationDetails = () => {
35602
35762
  }, /*#__PURE__*/React.createElement(SubmitBar, {
35603
35763
  label: t("MAKE_PAYMENT"),
35604
35764
  onSubmit: () => {
35605
- var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _PTData$Properties10, _PTData$Properties10$, _PTData$Properties10$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
35765
+ var _paymentDetails$data, _paymentDetails$data$, _paymentDetails$data$2, _paymentDetails$data2, _paymentDetails$data3, _paymentDetails$data4, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _PTData$Properties11, _PTData$Properties11$, _PTData$Properties11$2, _paymentDetails$data5, _paymentDetails$data6, _paymentDetails$data7;
35606
35766
  history.push({
35607
35767
  pathname: `/digit-ui/citizen/payment/collect/${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data = paymentDetails.data) === null || _paymentDetails$data === void 0 ? void 0 : (_paymentDetails$data$ = _paymentDetails$data.Bill) === null || _paymentDetails$data$ === void 0 ? void 0 : (_paymentDetails$data$2 = _paymentDetails$data$[0]) === null || _paymentDetails$data$2 === void 0 ? void 0 : _paymentDetails$data$2.businessService}/${stringReplaceAll(paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data2 = paymentDetails.data) === null || _paymentDetails$data2 === void 0 ? void 0 : (_paymentDetails$data3 = _paymentDetails$data2.Bill) === null || _paymentDetails$data3 === void 0 ? void 0 : (_paymentDetails$data4 = _paymentDetails$data3[0]) === null || _paymentDetails$data4 === void 0 ? void 0 : _paymentDetails$data4.consumerCode, "/", "+")}`,
35608
- search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : (_data$WaterConnection137 = _data$WaterConnection136[0]) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : (_data$SewerageConnect132 = _data$SewerageConnect131[0]) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : (_data$WaterConnection139 = _data$WaterConnection138[0]) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139.connectionHolders) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : (_data$SewerageConnect134 = _data$SewerageConnect133[0]) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134.connectionHolders) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties10 = PTData.Properties) === null || _PTData$Properties10 === void 0 ? void 0 : (_PTData$Properties10$ = _PTData$Properties10[0]) === null || _PTData$Properties10$ === void 0 ? void 0 : (_PTData$Properties10$2 = _PTData$Properties10$.owners) === null || _PTData$Properties10$2 === void 0 ? void 0 : _PTData$Properties10$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
35768
+ search: `?workflow=WNS&tenantId=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection136 = data.WaterConnection) === null || _data$WaterConnection136 === void 0 ? void 0 : (_data$WaterConnection137 = _data$WaterConnection136[0]) === null || _data$WaterConnection137 === void 0 ? void 0 : _data$WaterConnection137.tenantId) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect131 = data.SewerageConnections) === null || _data$SewerageConnect131 === void 0 ? void 0 : (_data$SewerageConnect132 = _data$SewerageConnect131[0]) === null || _data$SewerageConnect132 === void 0 ? void 0 : _data$SewerageConnect132.tenantId)}&ConsumerName=${(data === null || data === void 0 ? void 0 : (_data$WaterConnection138 = data.WaterConnection) === null || _data$WaterConnection138 === void 0 ? void 0 : (_data$WaterConnection139 = _data$WaterConnection138[0]) === null || _data$WaterConnection139 === void 0 ? void 0 : (_data$WaterConnection140 = _data$WaterConnection139.connectionHolders) === null || _data$WaterConnection140 === void 0 ? void 0 : _data$WaterConnection140.map(owner => owner.name).join(",")) || (data === null || data === void 0 ? void 0 : (_data$SewerageConnect133 = data.SewerageConnections) === null || _data$SewerageConnect133 === void 0 ? void 0 : (_data$SewerageConnect134 = _data$SewerageConnect133[0]) === null || _data$SewerageConnect134 === void 0 ? void 0 : (_data$SewerageConnect135 = _data$SewerageConnect134.connectionHolders) === null || _data$SewerageConnect135 === void 0 ? void 0 : _data$SewerageConnect135.map(owner => owner.name).join(",")) || (PTData === null || PTData === void 0 ? void 0 : (_PTData$Properties11 = PTData.Properties) === null || _PTData$Properties11 === void 0 ? void 0 : (_PTData$Properties11$ = _PTData$Properties11[0]) === null || _PTData$Properties11$ === void 0 ? void 0 : (_PTData$Properties11$2 = _PTData$Properties11$.owners) === null || _PTData$Properties11$2 === void 0 ? void 0 : _PTData$Properties11$2.map(owner => owner.name).join(","))}&isDisoconnectFlow=${applicationNobyData !== null && applicationNobyData !== void 0 && applicationNobyData.includes("DC") ? true : false}&consumerCode=${paymentDetails === null || paymentDetails === void 0 ? void 0 : (_paymentDetails$data5 = paymentDetails.data) === null || _paymentDetails$data5 === void 0 ? void 0 : (_paymentDetails$data6 = _paymentDetails$data5.Bill) === null || _paymentDetails$data6 === void 0 ? void 0 : (_paymentDetails$data7 = _paymentDetails$data6[0]) === null || _paymentDetails$data7 === void 0 ? void 0 : _paymentDetails$data7.consumerCode}`,
35609
35769
  state: {
35610
35770
  fromApplicationDetails: true
35611
35771
  }
@@ -40257,7 +40417,7 @@ const config$2 = [{
40257
40417
  }];
40258
40418
 
40259
40419
  const WNSMyBills = _ref => {
40260
- var _Digit$UserService$ge, _Digit$SessionStorage, _Digit$UserService$ge2, _Digit$UserService$ge3, _location$state, _Digit$UserService$ge4, _userInfo$userName, _searchResults, _searchResults2, _searchResults3;
40420
+ var _location$state, _Digit$SessionStorage, _Digit$UserService$ge, _Digit$UserService$ge2, _Digit$UserService$ge3, _Digit$UserService$ge4, _location$state2, _Digit$UserService$ge5, _userInfo$userName, _searchResults, _searchResults2, _searchResults3;
40261
40421
  let {
40262
40422
  template,
40263
40423
  header,
@@ -40271,25 +40431,26 @@ const WNSMyBills = _ref => {
40271
40431
  const {
40272
40432
  tenantId: _tenantId
40273
40433
  } = Digit.Hooks.useQueryParams();
40274
- let {
40275
- tenantId
40276
- } = ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info) || (location === null || location === void 0 ? void 0 : location.state) || {
40277
- tenantId: _tenantId
40278
- } || {};
40279
- tenantId = ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || ((_Digit$UserService$ge2 = Digit.UserService.getUser()) === null || _Digit$UserService$ge2 === void 0 ? void 0 : (_Digit$UserService$ge3 = _Digit$UserService$ge2.info) === null || _Digit$UserService$ge3 === void 0 ? void 0 : _Digit$UserService$ge3.permanentCity) || tenantId;
40280
- if (!tenantId && !(location !== null && location !== void 0 && (_location$state = location.state) !== null && _location$state !== void 0 && _location$state.fromSearchResults)) {
40434
+ const queryTenantId = _tenantId || (location === null || location === void 0 ? void 0 : (_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.tenantId);
40435
+ let tenantId = queryTenantId || ((_Digit$SessionStorage = Digit.SessionStorage.get("CITIZEN.COMMON.HOME.CITY")) === null || _Digit$SessionStorage === void 0 ? void 0 : _Digit$SessionStorage.code) || ((_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : (_Digit$UserService$ge2 = _Digit$UserService$ge.info) === null || _Digit$UserService$ge2 === void 0 ? void 0 : _Digit$UserService$ge2.permanentCity) || ((_Digit$UserService$ge3 = Digit.UserService.getUser()) === null || _Digit$UserService$ge3 === void 0 ? void 0 : (_Digit$UserService$ge4 = _Digit$UserService$ge3.info) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.tenantId) || Digit.ULBService.getCurrentTenantId();
40436
+ if (!tenantId || tenantId === "dl") {
40437
+ tenantId = "dl.djb";
40438
+ }
40439
+ if (!tenantId && !(location !== null && location !== void 0 && (_location$state2 = location.state) !== null && _location$state2 !== void 0 && _location$state2.fromSearchResults)) {
40281
40440
  history.replace(`/digit-ui/citizen/login`, {
40282
- from: url
40441
+ from: location.pathname
40283
40442
  });
40284
40443
  }
40285
40444
  let filters = {};
40286
- const userInfo = ((_Digit$UserService$ge4 = Digit.UserService.getUser()) === null || _Digit$UserService$ge4 === void 0 ? void 0 : _Digit$UserService$ge4.info) || {};
40445
+ const userInfo = ((_Digit$UserService$ge5 = Digit.UserService.getUser()) === null || _Digit$UserService$ge5 === void 0 ? void 0 : _Digit$UserService$ge5.info) || {};
40287
40446
  const mobileNumber = userInfo !== null && userInfo !== void 0 && (_userInfo$userName = userInfo.userName) !== null && _userInfo$userName !== void 0 && _userInfo$userName.match(/^[0-9]{10}$/) ? userInfo === null || userInfo === void 0 ? void 0 : userInfo.userName : userInfo === null || userInfo === void 0 ? void 0 : userInfo.mobileNumber;
40288
40447
  filters = {
40289
40448
  ...filters,
40290
- searchType: "CONNECTION"
40449
+ searchType: "CONNECTION",
40450
+ tenantId
40291
40451
  };
40292
40452
  const params = {
40453
+ tenantId,
40293
40454
  mobileNumber,
40294
40455
  ...filters
40295
40456
  };
@@ -40319,8 +40480,8 @@ const WNSMyBills = _ref => {
40319
40480
  const onSubmit = data => {
40320
40481
  history.push(`/digit-ui/citizen/payment/my-bills/${data === null || data === void 0 ? void 0 : data.ConsumerNumber.split("/")[0]}/${stringReplaceAll(data === null || data === void 0 ? void 0 : data.ConsumerNumber, "/", "+")}?workflow=WNS&tenantId=${tenantId}&ConsumerName=${data === null || data === void 0 ? void 0 : data.ConsumerName}`);
40321
40482
  };
40322
- let searchResults = Waterresult && Sewarageresult ? Waterresult.concat(Sewarageresult) : [];
40323
- searchResults = (_searchResults = searchResults) === null || _searchResults === void 0 ? void 0 : _searchResults.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.AmountDue) && (ob === null || ob === void 0 ? void 0 : ob.AmountDue) !== "0");
40483
+ let searchResults = (Waterresult || []).concat(Sewarageresult || []);
40484
+ searchResults = (_searchResults = searchResults) === null || _searchResults === void 0 ? void 0 : _searchResults.filter(ob => (ob === null || ob === void 0 ? void 0 : ob.ConsumerNumber) && (ob === null || ob === void 0 ? void 0 : ob.hasBill) !== false);
40324
40485
  return /*#__PURE__*/React.createElement("div", {
40325
40486
  style: {
40326
40487
  marginTop: "16px"
@@ -40659,7 +40820,6 @@ const WSInfoPage = () => {
40659
40820
  className: "ws-info-container"
40660
40821
  }, /*#__PURE__*/React.createElement("style", null, `
40661
40822
  .ws-info-container {
40662
- margin: 0 auto;
40663
40823
  padding: 8px 4px 32px 4px;
40664
40824
  color: #0b0c0c;
40665
40825
  box-sizing: border-box;
@@ -40680,27 +40840,27 @@ const WSInfoPage = () => {
40680
40840
  flex-wrap: wrap;
40681
40841
  gap: 10px;
40682
40842
  align-items: center;
40683
- margin-bottom: 12px;
40843
+ margin-bottom: 20px;
40684
40844
  }
40685
40845
  .ws-service-tag {
40686
- background: #e8f3fa;
40687
- color: #0b4d82;
40688
- font-size: 12px;
40846
+ background: #e0f2fe;
40847
+ color: #0369a1;
40848
+ font-size: 11.5px;
40689
40849
  font-weight: 700;
40690
40850
  text-transform: uppercase;
40691
40851
  letter-spacing: 0.5px;
40692
- padding: 4px 12px;
40693
- border-radius: 14px;
40694
- border: 1px solid #c9e0f5;
40852
+ padding: 5px 14px;
40853
+ border-radius: 20px;
40854
+ border: 1px solid #bae6fd;
40695
40855
  }
40696
40856
  .ws-portal-tag {
40697
- background: #f4f5f7;
40698
- color: #505a5f;
40699
- font-size: 12px;
40857
+ background: #f1f5f9;
40858
+ color: #475569;
40859
+ font-size: 11.5px;
40700
40860
  font-weight: 600;
40701
- padding: 4px 12px;
40702
- border-radius: 14px;
40703
- border: 1px solid #e1e4e8;
40861
+ padding: 5px 14px;
40862
+ border-radius: 20px;
40863
+ border: 1px solid #e2e8f0;
40704
40864
  }
40705
40865
  .ws-page-title {
40706
40866
  font-size: 26px;
@@ -40763,57 +40923,61 @@ const WSInfoPage = () => {
40763
40923
  }
40764
40924
  .ws-card {
40765
40925
  background: #ffffff;
40766
- border: 1px solid #dce4ec;
40926
+ border: 1px solid #e2e8f0;
40767
40927
  border-radius: 12px;
40768
- padding: 24px;
40769
- margin-bottom: 24px;
40770
- box-shadow: 0 2px 10px rgba(11, 77, 130, 0.04);
40928
+ padding: 24px 28px;
40929
+ margin-bottom: 20px;
40930
+ box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04);
40771
40931
  }
40772
40932
  .ws-step-header {
40773
40933
  display: flex;
40774
40934
  align-items: flex-start;
40775
- gap: 14px;
40776
- margin-bottom: 18px;
40777
- padding-bottom: 16px;
40778
- border-bottom: 1px solid #eef2f5;
40935
+ gap: 16px;
40936
+ margin-bottom: 20px;
40937
+ padding-bottom: 18px;
40938
+ border-bottom: 1px solid #f1f5f9;
40779
40939
  }
40780
40940
  .ws-step-num-badge {
40781
- background: #1a67a3;
40941
+ background: linear-gradient(135deg, #1a67a3 0%, #0c4a79 100%);
40782
40942
  color: #ffffff;
40783
- font-size: 16px;
40943
+ font-size: 15px;
40784
40944
  font-weight: 700;
40785
- width: 32px;
40786
- height: 32px;
40945
+ width: 34px;
40946
+ height: 34px;
40787
40947
  border-radius: 50%;
40788
40948
  display: flex;
40789
40949
  align-items: center;
40790
40950
  justify-content: center;
40791
40951
  flex-shrink: 0;
40792
- box-shadow: 0 2px 4px rgba(26, 103, 163, 0.25);
40952
+ box-shadow: 0 2px 6px rgba(26, 103, 163, 0.25);
40793
40953
  }
40794
40954
  .ws-step-title {
40795
- font-size: 19px;
40955
+ font-size: 18px;
40796
40956
  font-weight: 700;
40797
- color: #0b0c0c;
40957
+ color: #0f172a;
40798
40958
  margin: 0 0 4px 0;
40799
40959
  }
40800
40960
  .ws-step-subtitle {
40801
- font-size: 14px;
40802
- color: #505a5f;
40961
+ font-size: 13.5px;
40962
+ color: #475569;
40803
40963
  margin: 0;
40804
40964
  line-height: 1.5;
40805
40965
  }
40806
40966
  .ws-question-container {
40807
40967
  background: #f8fafc;
40808
40968
  border: 1px solid #e2e8f0;
40809
- border-radius: 8px;
40810
- padding: 18px 20px;
40969
+ border-radius: 10px;
40970
+ padding: 18px 22px;
40811
40971
  margin-bottom: 20px;
40972
+ transition: border-color 0.2s ease;
40973
+ }
40974
+ .ws-question-container:hover {
40975
+ border-color: #cbd5e1;
40812
40976
  }
40813
40977
  .ws-question-label {
40814
- font-size: 15.5px;
40978
+ font-size: 15px;
40815
40979
  font-weight: 700;
40816
- color: #0b0c0c;
40980
+ color: #0f172a;
40817
40981
  display: block;
40818
40982
  margin-bottom: 12px;
40819
40983
  }
@@ -41191,39 +41355,67 @@ const WSInfoPage = () => {
41191
41355
  white-space: nowrap;
41192
41356
  }
41193
41357
  .ws-digilocker-box {
41358
+ display: flex;
41359
+ align-items: center;
41360
+ justify-content: space-between;
41361
+ gap: 20px;
41362
+ flex-wrap: wrap;
41194
41363
  background: linear-gradient(135deg, #f0f7ff 0%, #e0f2fe 100%);
41195
41364
  border: 1px solid #bae6fd;
41196
- border-radius: 10px;
41197
- padding: 18px;
41198
- margin-top: 16px;
41365
+ border-radius: 12px;
41366
+ padding: 18px 24px;
41367
+ margin-bottom: 20px;
41368
+ box-shadow: 0 2px 8px rgba(3, 105, 161, 0.06);
41199
41369
  }
41200
- .ws-digilocker-header {
41370
+ .ws-digilocker-content {
41201
41371
  display: flex;
41202
- gap: 12px;
41203
- align-items: flex-start;
41204
- margin-bottom: 14px;
41372
+ align-items: center;
41373
+ gap: 14px;
41374
+ flex: 1;
41375
+ min-width: 280px;
41205
41376
  }
41206
41377
  .ws-dl-icon-circle {
41207
- width: 36px;
41208
- height: 36px;
41378
+ width: 44px;
41379
+ height: 44px;
41209
41380
  background: #ffffff;
41381
+ border: 1px solid #bae6fd;
41210
41382
  border-radius: 50%;
41211
41383
  display: flex;
41212
41384
  align-items: center;
41213
41385
  justify-content: center;
41214
41386
  flex-shrink: 0;
41215
- box-shadow: 0 1px 3px rgba(0,0,0,0.06);
41387
+ box-shadow: 0 2px 4px rgba(3, 105, 161, 0.1);
41388
+ }
41389
+ .ws-dl-info {
41390
+ display: flex;
41391
+ flex-direction: column;
41392
+ gap: 3px;
41393
+ }
41394
+ .ws-dl-title-wrap {
41395
+ display: flex;
41396
+ align-items: center;
41397
+ gap: 10px;
41216
41398
  }
41217
41399
  .ws-dl-title {
41218
- font-size: 15px;
41400
+ font-size: 15.5px;
41219
41401
  font-weight: 700;
41220
41402
  color: #0369a1;
41221
- margin-bottom: 2px;
41403
+ margin: 0;
41404
+ }
41405
+ .ws-dl-pill {
41406
+ background: #0284c7;
41407
+ color: #ffffff;
41408
+ font-size: 10px;
41409
+ font-weight: 700;
41410
+ letter-spacing: 0.5px;
41411
+ padding: 2px 8px;
41412
+ border-radius: 10px;
41222
41413
  }
41223
41414
  .ws-dl-sub {
41224
- font-size: 12.5px;
41415
+ font-size: 13px;
41225
41416
  color: #334155;
41226
41417
  line-height: 1.45;
41418
+ margin: 0;
41227
41419
  }
41228
41420
  .ws-btn {
41229
41421
  display: inline-flex;
@@ -41265,10 +41457,26 @@ const WSInfoPage = () => {
41265
41457
  .ws-btn-digilocker {
41266
41458
  background: #003366;
41267
41459
  color: #ffffff;
41268
- width: 100%;
41460
+ width: auto;
41461
+ padding: 11px 22px;
41462
+ border-radius: 8px;
41463
+ font-size: 14px;
41464
+ font-weight: 600;
41465
+ display: inline-flex;
41466
+ align-items: center;
41467
+ justify-content: center;
41468
+ gap: 8px;
41469
+ cursor: pointer;
41470
+ white-space: nowrap;
41471
+ box-shadow: 0 2px 6px rgba(0, 51, 102, 0.2);
41472
+ transition: all 0.2s ease;
41473
+ flex-shrink: 0;
41474
+ border: none;
41269
41475
  }
41270
41476
  .ws-btn-digilocker:hover {
41271
41477
  background: #002244;
41478
+ transform: translateY(-1px);
41479
+ box-shadow: 0 4px 10px rgba(0, 51, 102, 0.3);
41272
41480
  }
41273
41481
  .ws-btn:disabled {
41274
41482
  opacity: 0.55;
@@ -41276,11 +41484,11 @@ const WSInfoPage = () => {
41276
41484
  }
41277
41485
  .ws-action-card {
41278
41486
  background: #ffffff;
41279
- border: 1px solid #dce4ec;
41487
+ border: 1px solid #e2e8f0;
41280
41488
  border-radius: 12px;
41281
41489
  padding: 18px 24px;
41282
41490
  margin-top: 10px;
41283
- box-shadow: 0 4px 12px rgba(11, 77, 130, 0.08);
41491
+ box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
41284
41492
  }
41285
41493
  .ws-action-content {
41286
41494
  display: flex;
@@ -41291,34 +41499,75 @@ const WSInfoPage = () => {
41291
41499
  }
41292
41500
  .ws-action-hint {
41293
41501
  flex: 1;
41294
- min-width: 250px;
41502
+ min-width: 280px;
41295
41503
  }
41296
- .ws-hint-text {
41297
- font-size: 14px;
41298
- font-weight: 600;
41504
+ .ws-hint-badge {
41505
+ display: inline-flex;
41506
+ align-items: center;
41507
+ gap: 10px;
41508
+ font-size: 13.5px;
41509
+ font-weight: 500;
41510
+ padding: 9px 16px;
41511
+ border-radius: 8px;
41512
+ line-height: 1.4;
41299
41513
  }
41300
41514
  .ws-hint-warning {
41301
- color: #b45309;
41515
+ background: #fffbeb;
41516
+ color: #92400e;
41517
+ border: 1px solid #fde68a;
41518
+ }
41519
+ .ws-hint-warning svg {
41520
+ color: #d97706;
41521
+ flex-shrink: 0;
41522
+ }
41523
+ .ws-hint-info {
41524
+ background: #eff6ff;
41525
+ color: #1e40af;
41526
+ border: 1px solid #bfdbfe;
41527
+ }
41528
+ .ws-hint-info svg {
41529
+ color: #2563eb;
41530
+ flex-shrink: 0;
41302
41531
  }
41303
41532
  .ws-hint-success {
41304
- color: #047857;
41533
+ background: #f0fdf4;
41534
+ color: #166534;
41535
+ border: 1px solid #bbf7d0;
41536
+ }
41537
+ .ws-hint-success svg {
41538
+ color: #16a34a;
41539
+ flex-shrink: 0;
41305
41540
  }
41306
41541
  .ws-btn-next {
41307
- background: #00703c;
41542
+ display: inline-flex;
41543
+ align-items: center;
41544
+ gap: 8px;
41545
+ padding: 12px 26px;
41546
+ font-size: 14.5px;
41547
+ font-weight: 600;
41548
+ border-radius: 8px;
41549
+ border: none;
41550
+ cursor: pointer;
41551
+ white-space: nowrap;
41552
+ transition: all 0.2s ease;
41553
+ }
41554
+ .ws-btn-next:not(:disabled) {
41555
+ background: linear-gradient(135deg, #1a67a3 0%, #0d4a75 100%);
41308
41556
  color: #ffffff;
41309
- font-size: 15px;
41310
- padding: 12px 28px;
41311
- border-radius: 6px;
41312
- box-shadow: 0 2px 4px rgba(0, 112, 60, 0.2);
41557
+ box-shadow: 0 4px 12px rgba(26, 103, 163, 0.25);
41313
41558
  }
41314
- .ws-btn-next:hover:not(:disabled) {
41315
- background: #005a30;
41559
+ .ws-btn-next:not(:disabled):hover {
41560
+ background: linear-gradient(135deg, #155587 0%, #09375a 100%);
41561
+ box-shadow: 0 6px 16px rgba(26, 103, 163, 0.35);
41562
+ transform: translateY(-1px);
41316
41563
  }
41317
41564
  .ws-btn-disabled {
41318
- background: #94a3b8 !important;
41319
- color: #f1f5f9 !important;
41565
+ background: #e2e8f0 !important;
41566
+ color: #94a3b8 !important;
41320
41567
  cursor: not-allowed !important;
41321
41568
  box-shadow: none !important;
41569
+ border: 1px solid #cbd5e1 !important;
41570
+ transform: none !important;
41322
41571
  }
41323
41572
  @media (max-width: 900px) {
41324
41573
  .ws-checklist-grid {
@@ -41588,314 +41837,121 @@ const WSInfoPage = () => {
41588
41837
  type: "button",
41589
41838
  onClick: handleCreateProperty
41590
41839
  }, t("Register New Property")))), /*#__PURE__*/React.createElement("div", {
41591
- className: "ws-card"
41592
- }, /*#__PURE__*/React.createElement("div", {
41593
- className: "ws-checklist-header"
41840
+ className: "ws-digilocker-box"
41594
41841
  }, /*#__PURE__*/React.createElement("div", {
41595
- className: "ws-checklist-title-row"
41596
- }, /*#__PURE__*/React.createElement("span", {
41597
- className: "ws-section-badge"
41598
- }, t("Application Checklist")), /*#__PURE__*/React.createElement("h2", {
41599
- className: "ws-checklist-title"
41600
- }, t("What You Will Need During The Application"))), /*#__PURE__*/React.createElement("div", {
41601
- className: "ws-confused-user-explainer"
41842
+ className: "ws-digilocker-content"
41602
41843
  }, /*#__PURE__*/React.createElement("div", {
41603
- className: "ws-explainer-icon"
41844
+ className: "ws-dl-icon-circle"
41604
41845
  }, /*#__PURE__*/React.createElement("svg", {
41605
41846
  width: "22",
41606
41847
  height: "22",
41607
41848
  viewBox: "0 0 24 24",
41608
41849
  fill: "none",
41609
- stroke: "#16a34a",
41610
- strokeWidth: "2",
41611
- strokeLinecap: "round",
41612
- strokeLinejoin: "round"
41613
- }, /*#__PURE__*/React.createElement("circle", {
41614
- cx: "12",
41615
- cy: "12",
41616
- r: "10"
41617
- }), /*#__PURE__*/React.createElement("path", {
41618
- d: "M12 16v-4"
41619
- }), /*#__PURE__*/React.createElement("path", {
41620
- d: "M12 8h.01"
41621
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("p", {
41622
- className: "ws-explainer-desc"
41623
- }, t("The items below outline the exact information you will enter and the supporting documents you will upload in the upcoming application screens. You do NOT need to fill them in on this screen—this checklist helps you gather all details and keep scanned copies ready in advance for a fast, hassle-free submission."))))), /*#__PURE__*/React.createElement("div", {
41624
- className: "ws-checklist-grid"
41850
+ stroke: "#003366",
41851
+ strokeWidth: "2"
41852
+ }, /*#__PURE__*/React.createElement("path", {
41853
+ d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"
41854
+ }))), /*#__PURE__*/React.createElement("div", {
41855
+ className: "ws-dl-info"
41625
41856
  }, /*#__PURE__*/React.createElement("div", {
41626
- className: "ws-checklist-column"
41857
+ className: "ws-dl-title-wrap"
41858
+ }, /*#__PURE__*/React.createElement("span", {
41859
+ className: "ws-dl-title"
41860
+ }, t("Fast-Track with DigiLocker")), /*#__PURE__*/React.createElement("span", {
41861
+ className: "ws-dl-pill"
41862
+ }, t("RECOMMENDED"))), /*#__PURE__*/React.createElement("p", {
41863
+ className: "ws-dl-sub"
41864
+ }, t("Fetch your verified Aadhaar, Electricity Bill, and Identity documents directly without manual upload.")))), /*#__PURE__*/React.createElement("button", {
41865
+ type: "button",
41866
+ className: "ws-btn ws-btn-digilocker",
41867
+ onClick: handleDigiLockerLogin
41868
+ }, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDD10"), /*#__PURE__*/React.createElement("span", null, t("DigiLocker Consent")))), /*#__PURE__*/React.createElement("div", {
41869
+ className: "ws-action-card"
41627
41870
  }, /*#__PURE__*/React.createElement("div", {
41628
- className: "ws-col-header"
41871
+ className: "ws-action-content"
41629
41872
  }, /*#__PURE__*/React.createElement("div", {
41630
- className: "ws-col-icon-wrap",
41631
- style: {
41632
- background: "#e0f2fe",
41633
- color: "#0369a1"
41634
- }
41873
+ className: "ws-action-hint"
41874
+ }, !hasProperty ? /*#__PURE__*/React.createElement("div", {
41875
+ className: "ws-hint-badge ws-hint-warning"
41635
41876
  }, /*#__PURE__*/React.createElement("svg", {
41636
- width: "20",
41637
- height: "20",
41877
+ width: "18",
41878
+ height: "18",
41638
41879
  viewBox: "0 0 24 24",
41639
41880
  fill: "none",
41640
41881
  stroke: "currentColor",
41641
41882
  strokeWidth: "2"
41642
- }, /*#__PURE__*/React.createElement("path", {
41643
- d: "M11 4H4a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14a2 2 0 0 0 2-2v-7"
41644
- }), /*#__PURE__*/React.createElement("path", {
41645
- d: "M18.5 2.5a2.121 2.121 0 0 1 3 3L12 15l-4 1 1-4 9.5-9.5z"
41646
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h3", {
41647
- className: "ws-col-title"
41648
- }, t("1. Information You Will Fill In")), /*#__PURE__*/React.createElement("p", {
41649
- className: "ws-col-subtitle"
41650
- }, t("Fields asked across the application stages")))), /*#__PURE__*/React.createElement("div", {
41651
- className: "ws-group-cards-list"
41652
- }, /*#__PURE__*/React.createElement("div", {
41653
- className: "ws-group-card"
41654
- }, /*#__PURE__*/React.createElement("div", {
41655
- className: "ws-group-title"
41656
- }, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDCA7"), /*#__PURE__*/React.createElement("span", null, t("Connection Details"))), /*#__PURE__*/React.createElement("div", {
41657
- className: "ws-tag-grid"
41658
- }, /*#__PURE__*/React.createElement("span", {
41659
- className: "ws-tag-item"
41660
- }, t("Request Type")), /*#__PURE__*/React.createElement("span", {
41661
- className: "ws-tag-item"
41662
- }, t("Applicant Type")), /*#__PURE__*/React.createElement("span", {
41663
- className: "ws-tag-item"
41664
- }, t("Is Divyangjan / Person with Disability?")))), /*#__PURE__*/React.createElement("div", {
41665
- className: "ws-group-card"
41666
- }, /*#__PURE__*/React.createElement("div", {
41667
- className: "ws-group-title"
41668
- }, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDC64"), /*#__PURE__*/React.createElement("span", null, t("Connection Holder Details"))), /*#__PURE__*/React.createElement("div", {
41669
- className: "ws-tag-grid"
41670
- }, /*#__PURE__*/React.createElement("span", {
41671
- className: "ws-tag-item"
41672
- }, t("Name")), /*#__PURE__*/React.createElement("span", {
41673
- className: "ws-tag-item"
41674
- }, t("Middle Name")), /*#__PURE__*/React.createElement("span", {
41675
- className: "ws-tag-item"
41676
- }, t("Last Name")), /*#__PURE__*/React.createElement("span", {
41677
- className: "ws-tag-item"
41678
- }, t("Gender")), /*#__PURE__*/React.createElement("span", {
41679
- className: "ws-tag-item"
41680
- }, t("Mobile Number")), /*#__PURE__*/React.createElement("span", {
41681
- className: "ws-tag-item"
41682
- }, t("Email ID")))), /*#__PURE__*/React.createElement("div", {
41683
- className: "ws-group-card"
41684
- }, /*#__PURE__*/React.createElement("div", {
41685
- className: "ws-group-title"
41686
- }, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDCCD"), /*#__PURE__*/React.createElement("span", null, t("Property Address & Location"))), /*#__PURE__*/React.createElement("div", {
41687
- className: "ws-tag-grid"
41688
- }, /*#__PURE__*/React.createElement("span", {
41689
- className: "ws-tag-item"
41690
- }, t("Address Type")), /*#__PURE__*/React.createElement("span", {
41691
- className: "ws-tag-item"
41692
- }, t("City")), /*#__PURE__*/React.createElement("span", {
41693
- className: "ws-tag-item"
41694
- }, t("Pincode")), /*#__PURE__*/React.createElement("span", {
41695
- className: "ws-tag-item"
41696
- }, t("Locality")), /*#__PURE__*/React.createElement("span", {
41697
- className: "ws-tag-item"
41698
- }, t("Sub-Locality")), /*#__PURE__*/React.createElement("span", {
41699
- className: "ws-tag-item"
41700
- }, t("Street Name / Gali")), /*#__PURE__*/React.createElement("span", {
41701
- className: "ws-tag-item"
41702
- }, t("Address Line 1")), /*#__PURE__*/React.createElement("span", {
41703
- className: "ws-tag-item"
41704
- }, t("Address Line 2")), /*#__PURE__*/React.createElement("span", {
41705
- className: "ws-tag-item"
41706
- }, t("House No.")), /*#__PURE__*/React.createElement("span", {
41707
- className: "ws-tag-item"
41708
- }, t("Latitude")), /*#__PURE__*/React.createElement("span", {
41709
- className: "ws-tag-item"
41710
- }, t("Longitude")), /*#__PURE__*/React.createElement("span", {
41711
- className: "ws-tag-item"
41712
- }, t("Assembly")), /*#__PURE__*/React.createElement("span", {
41713
- className: "ws-tag-item"
41714
- }, t("Ward")), /*#__PURE__*/React.createElement("span", {
41715
- className: "ws-tag-item"
41716
- }, t("Zone")), /*#__PURE__*/React.createElement("span", {
41717
- className: "ws-tag-item"
41718
- }, t("Landmark")))), /*#__PURE__*/React.createElement("div", {
41719
- className: "ws-group-card"
41720
- }, /*#__PURE__*/React.createElement("div", {
41721
- className: "ws-group-title"
41722
- }, /*#__PURE__*/React.createElement("span", null, "\uD83C\uDFE2"), /*#__PURE__*/React.createElement("span", null, t("Property & Connection Usage"))), /*#__PURE__*/React.createElement("div", {
41723
- className: "ws-tag-grid"
41724
- }, /*#__PURE__*/React.createElement("span", {
41725
- className: "ws-tag-item"
41726
- }, t("Category Type")), /*#__PURE__*/React.createElement("span", {
41727
- className: "ws-tag-item"
41728
- }, t("Property Category")), /*#__PURE__*/React.createElement("span", {
41729
- className: "ws-tag-item"
41730
- }, t("Property Type")), /*#__PURE__*/React.createElement("span", {
41731
- className: "ws-tag-item"
41732
- }, t("Water Usage Type")), /*#__PURE__*/React.createElement("span", {
41733
- className: "ws-tag-item"
41734
- }, t("Number of Floors")), /*#__PURE__*/React.createElement("span", {
41735
- className: "ws-tag-item"
41736
- }, t("Plot Area")), /*#__PURE__*/React.createElement("span", {
41737
- className: "ws-tag-item"
41738
- }, t("Built-up Area")), /*#__PURE__*/React.createElement("span", {
41739
- className: "ws-tag-item"
41740
- }, t("Year of Construction")), /*#__PURE__*/React.createElement("span", {
41741
- className: "ws-tag-item"
41742
- }, t("Dwelling Units")))), /*#__PURE__*/React.createElement("div", {
41743
- className: "ws-group-card"
41744
- }, /*#__PURE__*/React.createElement("div", {
41745
- className: "ws-group-title"
41746
- }, /*#__PURE__*/React.createElement("span", null, "\uD83C\uDFDB\uFE0F"), /*#__PURE__*/React.createElement("span", null, t("DJB Employee Details (if applicable)"))), /*#__PURE__*/React.createElement("div", {
41747
- className: "ws-tag-grid"
41748
- }, /*#__PURE__*/React.createElement("span", {
41749
- className: "ws-tag-item"
41750
- }, t("Employee ID")), /*#__PURE__*/React.createElement("span", {
41751
- className: "ws-tag-item"
41752
- }, t("Employee Designation")))))), /*#__PURE__*/React.createElement("div", {
41753
- className: "ws-checklist-column"
41754
- }, /*#__PURE__*/React.createElement("div", {
41755
- className: "ws-col-header"
41756
- }, /*#__PURE__*/React.createElement("div", {
41757
- className: "ws-col-icon-wrap",
41758
- style: {
41759
- background: "#fef3c7",
41760
- color: "#b45309"
41761
- }
41883
+ }, /*#__PURE__*/React.createElement("circle", {
41884
+ cx: "12",
41885
+ cy: "12",
41886
+ r: "10"
41887
+ }), /*#__PURE__*/React.createElement("line", {
41888
+ x1: "12",
41889
+ y1: "8",
41890
+ x2: "12",
41891
+ y2: "12"
41892
+ }), /*#__PURE__*/React.createElement("line", {
41893
+ x1: "12",
41894
+ y1: "16",
41895
+ x2: "12.01",
41896
+ y2: "16"
41897
+ })), /*#__PURE__*/React.createElement("span", null, t("Please select whether you have an existing property in Step 1 to continue."))) : (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement("div", {
41898
+ className: "ws-hint-badge ws-hint-warning"
41762
41899
  }, /*#__PURE__*/React.createElement("svg", {
41763
- width: "20",
41764
- height: "20",
41900
+ width: "18",
41901
+ height: "18",
41765
41902
  viewBox: "0 0 24 24",
41766
41903
  fill: "none",
41767
41904
  stroke: "currentColor",
41768
41905
  strokeWidth: "2"
41769
- }, /*#__PURE__*/React.createElement("path", {
41770
- d: "M14 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V8z"
41771
- }), /*#__PURE__*/React.createElement("polyline", {
41772
- points: "14 2 14 8 20 8"
41906
+ }, /*#__PURE__*/React.createElement("circle", {
41907
+ cx: "12",
41908
+ cy: "12",
41909
+ r: "10"
41773
41910
  }), /*#__PURE__*/React.createElement("line", {
41774
- x1: "16",
41775
- y1: "13",
41776
- x2: "8",
41777
- y2: "13"
41911
+ x1: "12",
41912
+ y1: "8",
41913
+ x2: "12",
41914
+ y2: "12"
41778
41915
  }), /*#__PURE__*/React.createElement("line", {
41779
- x1: "16",
41780
- y1: "17",
41781
- x2: "8",
41782
- y2: "17"
41783
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("h3", {
41784
- className: "ws-col-title"
41785
- }, t("2. Documents to Upload")), /*#__PURE__*/React.createElement("p", {
41786
- className: "ws-col-subtitle"
41787
- }, t("Keep clear scanned files ready (PDF/JPG/PNG, ≤ 5MB)")))), /*#__PURE__*/React.createElement("div", {
41788
- className: "ws-docs-cards-list"
41789
- }, /*#__PURE__*/React.createElement("div", {
41790
- className: "ws-doc-item-card"
41791
- }, /*#__PURE__*/React.createElement("div", {
41792
- className: "ws-doc-badge"
41793
- }, "\uD83E\uDEAA"), /*#__PURE__*/React.createElement("div", {
41794
- className: "ws-doc-info"
41795
- }, /*#__PURE__*/React.createElement("div", {
41796
- className: "ws-doc-name"
41797
- }, t("Proof of Identity")), /*#__PURE__*/React.createElement("div", {
41798
- className: "ws-doc-desc"
41799
- }, t("Aadhaar Card, Voter ID, PAN Card, or Passport"))), /*#__PURE__*/React.createElement("span", {
41800
- className: "ws-req-pill"
41801
- }, t("Mandatory"))), /*#__PURE__*/React.createElement("div", {
41802
- className: "ws-doc-item-card"
41803
- }, /*#__PURE__*/React.createElement("div", {
41804
- className: "ws-doc-badge"
41805
- }, "\uD83C\uDFE0"), /*#__PURE__*/React.createElement("div", {
41806
- className: "ws-doc-info"
41807
- }, /*#__PURE__*/React.createElement("div", {
41808
- className: "ws-doc-name"
41809
- }, t("Proof of Address / Ownership")), /*#__PURE__*/React.createElement("div", {
41810
- className: "ws-doc-desc"
41811
- }, t("Registered Sale Deed, Conveyance Deed, or Allotment Letter"))), /*#__PURE__*/React.createElement("span", {
41812
- className: "ws-req-pill"
41813
- }, t("Mandatory"))), /*#__PURE__*/React.createElement("div", {
41814
- className: "ws-doc-item-card"
41815
- }, /*#__PURE__*/React.createElement("div", {
41816
- className: "ws-doc-badge"
41817
- }, "\u26A1"), /*#__PURE__*/React.createElement("div", {
41818
- className: "ws-doc-info"
41819
- }, /*#__PURE__*/React.createElement("div", {
41820
- className: "ws-doc-name"
41821
- }, t("Electricity Bill")), /*#__PURE__*/React.createElement("div", {
41822
- className: "ws-doc-desc"
41823
- }, t("Latest paid electricity bill of the premises"))), /*#__PURE__*/React.createElement("span", {
41824
- className: "ws-req-pill"
41825
- }, t("Mandatory"))), /*#__PURE__*/React.createElement("div", {
41826
- className: "ws-doc-item-card"
41827
- }, /*#__PURE__*/React.createElement("div", {
41828
- className: "ws-doc-badge"
41829
- }, "\uD83D\uDD27"), /*#__PURE__*/React.createElement("div", {
41830
- className: "ws-doc-info"
41831
- }, /*#__PURE__*/React.createElement("div", {
41832
- className: "ws-doc-name"
41833
- }, t("Plumber Report")), /*#__PURE__*/React.createElement("div", {
41834
- className: "ws-doc-desc"
41835
- }, t("Completion certificate from a licensed plumber"))), /*#__PURE__*/React.createElement("span", {
41836
- className: "ws-opt-pill"
41837
- }, t("As Applicable"))), /*#__PURE__*/React.createElement("div", {
41838
- className: "ws-doc-item-card"
41839
- }, /*#__PURE__*/React.createElement("div", {
41840
- className: "ws-doc-badge"
41841
- }, "\uD83D\uDCD0"), /*#__PURE__*/React.createElement("div", {
41842
- className: "ws-doc-info"
41843
- }, /*#__PURE__*/React.createElement("div", {
41844
- className: "ws-doc-name"
41845
- }, t("Building Plan")), /*#__PURE__*/React.createElement("div", {
41846
- className: "ws-doc-desc"
41847
- }, t("Sanctioned / approved layout plan of the structure"))), /*#__PURE__*/React.createElement("span", {
41848
- className: "ws-opt-pill"
41849
- }, t("As Applicable"))), /*#__PURE__*/React.createElement("div", {
41850
- className: "ws-doc-item-card"
41851
- }, /*#__PURE__*/React.createElement("div", {
41852
- className: "ws-doc-badge"
41853
- }, "\uD83E\uDDFE"), /*#__PURE__*/React.createElement("div", {
41854
- className: "ws-doc-info"
41855
- }, /*#__PURE__*/React.createElement("div", {
41856
- className: "ws-doc-name"
41857
- }, t("Property Tax Receipt")), /*#__PURE__*/React.createElement("div", {
41858
- className: "ws-doc-desc"
41859
- }, t("Latest property tax receipt / assessment notice"))), /*#__PURE__*/React.createElement("span", {
41860
- className: "ws-opt-pill"
41861
- }, t("As Applicable")))), /*#__PURE__*/React.createElement("div", {
41862
- className: "ws-digilocker-box"
41863
- }, /*#__PURE__*/React.createElement("div", {
41864
- className: "ws-digilocker-header"
41865
- }, /*#__PURE__*/React.createElement("div", {
41866
- className: "ws-dl-icon-circle"
41916
+ x1: "12",
41917
+ y1: "16",
41918
+ x2: "12.01",
41919
+ y2: "16"
41920
+ })), /*#__PURE__*/React.createElement("span", null, t("Please verify your mobile number and select a property from the dropdown to proceed."))) : (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" ? /*#__PURE__*/React.createElement("div", {
41921
+ className: "ws-hint-badge ws-hint-info"
41867
41922
  }, /*#__PURE__*/React.createElement("svg", {
41868
- width: "22",
41869
- height: "22",
41923
+ width: "18",
41924
+ height: "18",
41870
41925
  viewBox: "0 0 24 24",
41871
41926
  fill: "none",
41872
- stroke: "#003366",
41927
+ stroke: "currentColor",
41873
41928
  strokeWidth: "2"
41874
- }, /*#__PURE__*/React.createElement("path", {
41875
- d: "M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10z"
41876
- }))), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement("div", {
41877
- className: "ws-dl-title"
41878
- }, t("Fast-Track with DigiLocker")), /*#__PURE__*/React.createElement("div", {
41879
- className: "ws-dl-sub"
41880
- }, t("Fetch your verified Aadhaar, Electricity Bill, and Identity documents directly without manual upload.")))), /*#__PURE__*/React.createElement("button", {
41881
- type: "button",
41882
- className: "ws-btn ws-btn-digilocker",
41883
- onClick: handleDigiLockerLogin
41884
- }, /*#__PURE__*/React.createElement("span", null, "\uD83D\uDD10"), /*#__PURE__*/React.createElement("span", null, t("DigiLocker Consent"))))))), /*#__PURE__*/React.createElement("div", {
41885
- className: "ws-action-card"
41886
- }, /*#__PURE__*/React.createElement("div", {
41887
- className: "ws-action-content"
41888
- }, /*#__PURE__*/React.createElement("div", {
41889
- className: "ws-action-hint"
41890
- }, !hasProperty ? /*#__PURE__*/React.createElement("span", {
41891
- className: "ws-hint-text ws-hint-warning"
41892
- }, "\u26A0\uFE0F ", t("Please select whether you have an existing property in Step 1 to continue.")) : (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React.createElement("span", {
41893
- className: "ws-hint-text ws-hint-warning"
41894
- }, "\u26A0\uFE0F ", t("Please verify your mobile number and select a property from the dropdown to proceed.")) : (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "NO" ? /*#__PURE__*/React.createElement("span", {
41895
- className: "ws-hint-text ws-hint-warning"
41896
- }, "\u2139\uFE0F ", t("Please register your property using the button in Step 1 before applying.")) : /*#__PURE__*/React.createElement("span", {
41897
- className: "ws-hint-text ws-hint-success"
41898
- }, "\u2713 ", t("All prerequisites verified! You are ready to start the application form."))), /*#__PURE__*/React.createElement("div", {
41929
+ }, /*#__PURE__*/React.createElement("circle", {
41930
+ cx: "12",
41931
+ cy: "12",
41932
+ r: "10"
41933
+ }), /*#__PURE__*/React.createElement("line", {
41934
+ x1: "12",
41935
+ y1: "16",
41936
+ x2: "12",
41937
+ y2: "12"
41938
+ }), /*#__PURE__*/React.createElement("line", {
41939
+ x1: "12",
41940
+ y1: "8",
41941
+ x2: "12.01",
41942
+ y2: "8"
41943
+ })), /*#__PURE__*/React.createElement("span", null, t("Please register your property using the button in Step 1 before applying."))) : /*#__PURE__*/React.createElement("div", {
41944
+ className: "ws-hint-badge ws-hint-success"
41945
+ }, /*#__PURE__*/React.createElement("svg", {
41946
+ width: "18",
41947
+ height: "18",
41948
+ viewBox: "0 0 24 24",
41949
+ fill: "none",
41950
+ stroke: "currentColor",
41951
+ strokeWidth: "2.5"
41952
+ }, /*#__PURE__*/React.createElement("polyline", {
41953
+ points: "20 6 9 17 4 12"
41954
+ })), /*#__PURE__*/React.createElement("span", null, t("All prerequisites verified! You are ready to start the application form.")))), /*#__PURE__*/React.createElement("div", {
41899
41955
  className: "ws-action-buttons"
41900
41956
  }, /*#__PURE__*/React.createElement("button", {
41901
41957
  type: "button",
@@ -55358,7 +55414,7 @@ const SearchWater = _ref => {
55358
55414
  config,
55359
55415
  bussinessService: businessServ,
55360
55416
  t,
55361
- shortAddress: true
55417
+ shortAddress: false
55362
55418
  });
55363
55419
  const isMobile = window.Digit.Utils.browser.isMobile();
55364
55420
  if (result !== null && result !== void 0 && result.isLoading && isMobile) {
@@ -55619,7 +55675,7 @@ const EditApplication$1 = () => {
55619
55675
  };
55620
55676
 
55621
55677
  const ConsumptionDetails$1 = _ref => {
55622
- var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _mdmsMeterStatus$Mdms4, _DJBReadingQualityCod, _DJBReadingQualityCod2, _DJBReadingQualityCod3, _DJBReadingQualityCod4, _details$4, _details$5, _meterReadingDetailsD, _meterReadingDetailsD2, _meterReadingDetailsD3, _meterReadingDetailsD4, _meterReadingDetailsD5, _meterReadingDetailsD6, _meterReadingDetailsD7, _meterReadingDetailsD8, _meterReadingDetailsD9, _meterReadingDetailsD0, _meterReadingDetailsD1, _meterReadingDetailsD10, _meterReadingDetailsD11, _meterReadingDetailsD12, _meterReadingDetailsD13, _meterReadingDetailsD14, _meterReadingDetailsD15, _meterReadingDetailsD16, _meterReadingDetailsD17, _meterReadingDetailsD18, _meterReadingDetailsD19, _meterReadingDetailsD20, _meterReadingDetailsD21, _meterReadingDetailsD22, _meterReadingDetailsD23, _meterReadingDetailsD24, _meterReadingDetailsD25, _meterReadingDetailsD26, _meterReadingDetailsD27, _meterReadingDetailsD28, _meterReadingDetailsD29, _meterReadingDetailsD30, _meterReadingDetailsD31, _meterReadingDetailsD32, _meterReadingDetailsD33, _meterReadingDetailsD34, _meterReadingDetailsD35, _meterReadingDetailsD36, _meterReadingDetailsD37, _meterReadingDetailsD38, _meterReadingDetailsD39, _meterReadingDetailsD40, _meterReadingDetailsD41, _meterReadingDetailsD42, _meterReadingDetailsD43, _meterReadingDetailsD44, _meterReadingDetailsD45, _meterReadingDetailsD46, _meterReadingDetailsD47, _meterReadingDetailsD48, _meterReadingDetailsD49, _meterReadingDetailsD50, _meterReadingDetailsD51, _meterReadingDetailsD52, _meterReadingDetailsD53, _meterReadingDetailsD54, _meterReadingDetailsD55, _meterReadingDetailsD56, _meterReadingDetailsD57, _meterReadingDetailsD58, _meterReadingDetailsD59, _meterReadingDetailsD60, _meterReadingDetailsD61, _meterReadingDetailsD62, _meterReadingDetailsD63, _meterReadingDetailsD64, _meterReadingDetailsD65, _meterReadingDetailsD66, _meterReadingDetailsD67, _meterReadingDetailsD68, _meterReadingDetailsD69, _meterReadingDetailsD70, _meterReadingDetailsD71, _meterReadingDetailsD72, _meterReadingDetailsD73, _meterReadingDetailsD74, _meterReadingDetailsD75, _meterReadingDetailsD76, _meterReadingDetailsD77, _meterReadingDetailsD78, _meterReadingDetailsD79, _meterReadingDetailsD80, _meterReadingDetailsD81, _meterReadingDetailsD82;
55678
+ var _user$info, _mdmsBillingPeriod$Md, _mdmsBillingPeriod$Md2, _mdmsBillingPeriod$Md3, _details$4, _details$5, _meterReadingDetailsD, _meterReadingDetailsD2, _meterReadingDetailsD3, _meterReadingDetailsD4, _meterReadingDetailsD5, _meterReadingDetailsD6, _meterReadingDetailsD7, _meterReadingDetailsD8, _meterReadingDetailsD9, _meterReadingDetailsD0, _meterReadingDetailsD1, _meterReadingDetailsD10, _meterReadingDetailsD11, _meterReadingDetailsD12, _meterReadingDetailsD13, _meterReadingDetailsD14, _meterReadingDetailsD15, _meterReadingDetailsD16, _meterReadingDetailsD17, _meterReadingDetailsD18, _meterReadingDetailsD19, _meterReadingDetailsD20, _meterReadingDetailsD21, _meterReadingDetailsD22, _meterReadingDetailsD23, _meterReadingDetailsD24, _meterReadingDetailsD25, _meterReadingDetailsD26, _meterReadingDetailsD27, _meterReadingDetailsD28, _meterReadingDetailsD29, _meterReadingDetailsD30, _meterReadingDetailsD31, _meterReadingDetailsD32, _meterReadingDetailsD33, _meterReadingDetailsD34, _meterReadingDetailsD35, _meterReadingDetailsD36, _meterReadingDetailsD37, _meterReadingDetailsD38, _meterReadingDetailsD39, _meterReadingDetailsD40, _meterReadingDetailsD41, _meterReadingDetailsD42, _meterReadingDetailsD43, _meterReadingDetailsD44, _meterReadingDetailsD45, _meterReadingDetailsD46, _meterReadingDetailsD47, _meterReadingDetailsD48, _meterReadingDetailsD49, _meterReadingDetailsD50, _meterReadingDetailsD51, _meterReadingDetailsD52, _meterReadingDetailsD53, _meterReadingDetailsD54, _meterReadingDetailsD55, _meterReadingDetailsD56, _meterReadingDetailsD57, _meterReadingDetailsD58, _meterReadingDetailsD59, _meterReadingDetailsD60, _meterReadingDetailsD61, _meterReadingDetailsD62, _meterReadingDetailsD63, _meterReadingDetailsD64, _meterReadingDetailsD65, _meterReadingDetailsD66, _meterReadingDetailsD67, _meterReadingDetailsD68, _meterReadingDetailsD69, _meterReadingDetailsD70, _meterReadingDetailsD71, _meterReadingDetailsD72, _meterReadingDetailsD73, _meterReadingDetailsD74, _meterReadingDetailsD75, _meterReadingDetailsD76, _meterReadingDetailsD77, _meterReadingDetailsD78, _meterReadingDetailsD79, _meterReadingDetailsD80, _meterReadingDetailsD81, _meterReadingDetailsD82;
55623
55679
  const {
55624
55680
  t
55625
55681
  } = useTranslation();
@@ -55756,17 +55812,30 @@ const ConsumptionDetails$1 = _ref => {
55756
55812
  };
55757
55813
  const getBillingPeriodFromMdms = mdmsBillingPeriod === null || mdmsBillingPeriod === void 0 ? void 0 : (_mdmsBillingPeriod$Md = mdmsBillingPeriod.MdmsRes) === null || _mdmsBillingPeriod$Md === void 0 ? void 0 : (_mdmsBillingPeriod$Md2 = _mdmsBillingPeriod$Md["ws-services-masters"]) === null || _mdmsBillingPeriod$Md2 === void 0 ? void 0 : (_mdmsBillingPeriod$Md3 = _mdmsBillingPeriod$Md2.billingPeriod) === null || _mdmsBillingPeriod$Md3 === void 0 ? void 0 : _mdmsBillingPeriod$Md3.filter(e => e.connectionType === "Metered");
55758
55814
  const popUp = () => {
55759
- var _response$meterReadin, _response$meterReadin2;
55815
+ var _response$meterReadin;
55760
55816
  setOpenModal(true);
55761
- setMeterDetails(response === null || response === void 0 ? void 0 : response.meterReadings[0]);
55762
- setSelectMeterStatus({
55763
- code: response === null || response === void 0 ? void 0 : (_response$meterReadin = response.meterReadings[0]) === null || _response$meterReadin === void 0 ? void 0 : _response$meterReadin.meterStatus,
55764
- i18nKey: `WS_SERVICES_CALCULATION_METERSTATUS_${Digit.Utils.locale.getTransformedLocale(response === null || response === void 0 ? void 0 : (_response$meterReadin2 = response.meterReadings[0]) === null || _response$meterReadin2 === void 0 ? void 0 : _response$meterReadin2.meterStatus)}`
55765
- });
55766
- setBillingPeriod(`${getDate(meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate)} - ${getDate(convertDateToEpoch(Digit.Utils.date.getDate()))}`);
55817
+ const firstReading = response === null || response === void 0 ? void 0 : (_response$meterReadin = response.meterReadings) === null || _response$meterReadin === void 0 ? void 0 : _response$meterReadin[0];
55818
+ setMeterDetails(firstReading);
55819
+ const initialStatus = firstReading !== null && firstReading !== void 0 && firstReading.meterStatus ? {
55820
+ code: firstReading === null || firstReading === void 0 ? void 0 : firstReading.meterStatus,
55821
+ i18nKey: `WS_SERVICES_CALCULATION_METERSTATUS_${Digit.Utils.locale.getTransformedLocale(firstReading === null || firstReading === void 0 ? void 0 : firstReading.meterStatus)}`
55822
+ } : "";
55823
+ setSelectMeterStatus(initialStatus);
55824
+ setBillingPeriod(`${getDate(firstReading === null || firstReading === void 0 ? void 0 : firstReading.currentReadingDate)} - ${getDate(convertDateToEpoch(Digit.Utils.date.getDate()))}`);
55825
+ if (((initialStatus === null || initialStatus === void 0 ? void 0 : initialStatus.code) || "").toLowerCase() === "working") {
55826
+ const okOption = ReadingQualityCodeList === null || ReadingQualityCodeList === void 0 ? void 0 : ReadingQualityCodeList.find(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
55827
+ setSelectReadingQualityCode(okOption || {
55828
+ code: "OK",
55829
+ i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale("OK")}`
55830
+ });
55831
+ } else {
55832
+ setSelectReadingQualityCode("");
55833
+ }
55767
55834
  };
55768
55835
  const closeModal = () => {
55769
55836
  setOpenModal(false);
55837
+ setSelectMeterStatus("");
55838
+ setSelectReadingQualityCode("");
55770
55839
  };
55771
55840
  const closeToast = () => {
55772
55841
  setShowToast(false);
@@ -55777,7 +55846,16 @@ const ConsumptionDetails$1 = _ref => {
55777
55846
  let fromDate = parseInt(meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate);
55778
55847
  let selectedDate = parseInt(convertDateToEpoch(data === null || data === void 0 ? void 0 : data.currentReadingDate));
55779
55848
  let toDate = parseInt(convertDateToEpoch(Digit.Utils.date.getDate()));
55780
- if ((selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code) === "Working") {
55849
+ if (!(selectReadingQualityCode !== null && selectReadingQualityCode !== void 0 && selectReadingQualityCode.code)) {
55850
+ setShowToast({
55851
+ key: "error",
55852
+ message: t("ERR_READING_QUALITY_CODE_REQUIRED")
55853
+ });
55854
+ setError(t("ERR_READING_QUALITY_CODE_REQUIRED"));
55855
+ setTimeout(closeToast, 5000);
55856
+ return Promise.resolve();
55857
+ }
55858
+ if (isWorkingMeter) {
55781
55859
  var _details$;
55782
55860
  if (!(data !== null && data !== void 0 && data.currentReading) || (data === null || data === void 0 ? void 0 : data.currentReading) == null || (data === null || data === void 0 ? void 0 : data.currentReading) === "") {
55783
55861
  setShowToast({
@@ -55861,22 +55939,52 @@ const ConsumptionDetails$1 = _ref => {
55861
55939
  return Promise.reject(e);
55862
55940
  }
55863
55941
  };
55864
- let optionsList = mdmsMeterStatus === null || mdmsMeterStatus === void 0 ? void 0 : (_mdmsMeterStatus$Mdms = mdmsMeterStatus.MdmsRes) === null || _mdmsMeterStatus$Mdms === void 0 ? void 0 : (_mdmsMeterStatus$Mdms2 = _mdmsMeterStatus$Mdms["ws-services-calculation"]) === null || _mdmsMeterStatus$Mdms2 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms3 = _mdmsMeterStatus$Mdms2.MeterStatus) === null || _mdmsMeterStatus$Mdms3 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms4 = _mdmsMeterStatus$Mdms3.filter(status => typeof status === "object" ? (status === null || status === void 0 ? void 0 : status.active) === true || (status === null || status === void 0 ? void 0 : status.active) === "true" : true)) === null || _mdmsMeterStatus$Mdms4 === void 0 ? void 0 : _mdmsMeterStatus$Mdms4.map(status => {
55865
- const statusCode = typeof status === "object" ? status.name || status.code : status;
55866
- return {
55867
- code: statusCode,
55868
- i18nKey: `WS_SERVICES_CALCULATION_METERSTATUS_${Digit.Utils.locale.getTransformedLocale(statusCode)}`
55869
- };
55870
- });
55871
- const ReadingQualityCodeList = DJBReadingQualityCode === null || DJBReadingQualityCode === void 0 ? void 0 : (_DJBReadingQualityCod = DJBReadingQualityCode.MdmsRes) === null || _DJBReadingQualityCod === void 0 ? void 0 : (_DJBReadingQualityCod2 = _DJBReadingQualityCod["ws-services-calculation"]) === null || _DJBReadingQualityCod2 === void 0 ? void 0 : (_DJBReadingQualityCod3 = _DJBReadingQualityCod2.DJBReadingQualityCode) === null || _DJBReadingQualityCod3 === void 0 ? void 0 : (_DJBReadingQualityCod4 = _DJBReadingQualityCod3.filter(status => typeof status === "object" ? (status === null || status === void 0 ? void 0 : status.active) === true || (status === null || status === void 0 ? void 0 : status.active) === "true" : true)) === null || _DJBReadingQualityCod4 === void 0 ? void 0 : _DJBReadingQualityCod4.map(status => {
55872
- const statusCode = typeof status === "object" ? status.code : status;
55873
- return {
55874
- code: statusCode,
55875
- i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale(statusCode)}`
55876
- };
55877
- });
55942
+ const isWorkingMeter = ((selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code) || "").toLowerCase() === "working";
55943
+ const optionsList = useMemo(() => {
55944
+ var _mdmsMeterStatus$Mdms, _mdmsMeterStatus$Mdms2, _mdmsMeterStatus$Mdms3, _mdmsMeterStatus$Mdms4;
55945
+ return (mdmsMeterStatus === null || mdmsMeterStatus === void 0 ? void 0 : (_mdmsMeterStatus$Mdms = mdmsMeterStatus.MdmsRes) === null || _mdmsMeterStatus$Mdms === void 0 ? void 0 : (_mdmsMeterStatus$Mdms2 = _mdmsMeterStatus$Mdms["ws-services-calculation"]) === null || _mdmsMeterStatus$Mdms2 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms3 = _mdmsMeterStatus$Mdms2.MeterStatus) === null || _mdmsMeterStatus$Mdms3 === void 0 ? void 0 : (_mdmsMeterStatus$Mdms4 = _mdmsMeterStatus$Mdms3.filter(status => typeof status === "object" ? (status === null || status === void 0 ? void 0 : status.active) === true || (status === null || status === void 0 ? void 0 : status.active) === "true" : true)) === null || _mdmsMeterStatus$Mdms4 === void 0 ? void 0 : _mdmsMeterStatus$Mdms4.map(status => {
55946
+ const statusCode = typeof status === "object" ? status.name || status.code : status;
55947
+ return {
55948
+ code: statusCode,
55949
+ i18nKey: `WS_SERVICES_CALCULATION_METERSTATUS_${Digit.Utils.locale.getTransformedLocale(statusCode)}`
55950
+ };
55951
+ })) || [];
55952
+ }, [mdmsMeterStatus]);
55953
+ const ReadingQualityCodeList = useMemo(() => {
55954
+ var _DJBReadingQualityCod, _DJBReadingQualityCod2, _DJBReadingQualityCod3, _DJBReadingQualityCod4;
55955
+ return (DJBReadingQualityCode === null || DJBReadingQualityCode === void 0 ? void 0 : (_DJBReadingQualityCod = DJBReadingQualityCode.MdmsRes) === null || _DJBReadingQualityCod === void 0 ? void 0 : (_DJBReadingQualityCod2 = _DJBReadingQualityCod["ws-services-calculation"]) === null || _DJBReadingQualityCod2 === void 0 ? void 0 : (_DJBReadingQualityCod3 = _DJBReadingQualityCod2.DJBReadingQualityCode) === null || _DJBReadingQualityCod3 === void 0 ? void 0 : (_DJBReadingQualityCod4 = _DJBReadingQualityCod3.filter(status => typeof status === "object" ? (status === null || status === void 0 ? void 0 : status.active) === true || (status === null || status === void 0 ? void 0 : status.active) === "true" : true)) === null || _DJBReadingQualityCod4 === void 0 ? void 0 : _DJBReadingQualityCod4.map(status => {
55956
+ const statusCode = typeof status === "object" ? status.code || status.name : status;
55957
+ return {
55958
+ code: statusCode,
55959
+ i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale(statusCode)}`
55960
+ };
55961
+ })) || [];
55962
+ }, [DJBReadingQualityCode]);
55963
+ const filteredReadingQualityCodeList = useMemo(() => {
55964
+ if (!ReadingQualityCodeList || ReadingQualityCodeList.length === 0) return [];
55965
+ if (isWorkingMeter) {
55966
+ return ReadingQualityCodeList.filter(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
55967
+ }
55968
+ if (selectMeterStatus !== null && selectMeterStatus !== void 0 && selectMeterStatus.code) {
55969
+ return ReadingQualityCodeList.filter(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() !== "ok");
55970
+ }
55971
+ return ReadingQualityCodeList;
55972
+ }, [ReadingQualityCodeList, isWorkingMeter, selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code]);
55973
+ useEffect(() => {
55974
+ if (!openModal) return;
55975
+ if (isWorkingMeter) {
55976
+ const okOption = ReadingQualityCodeList === null || ReadingQualityCodeList === void 0 ? void 0 : ReadingQualityCodeList.find(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
55977
+ if (okOption && ((selectReadingQualityCode === null || selectReadingQualityCode === void 0 ? void 0 : selectReadingQualityCode.code) || "").toLowerCase() !== "ok") {
55978
+ setSelectReadingQualityCode(okOption);
55979
+ }
55980
+ } else if (selectMeterStatus !== null && selectMeterStatus !== void 0 && selectMeterStatus.code) {
55981
+ if (((selectReadingQualityCode === null || selectReadingQualityCode === void 0 ? void 0 : selectReadingQualityCode.code) || "").toLowerCase() === "ok") {
55982
+ setSelectReadingQualityCode("");
55983
+ }
55984
+ }
55985
+ }, [openModal, isWorkingMeter, selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code, ReadingQualityCodeList]);
55878
55986
  const onFormValueChange = (setValue, formData, formState) => {
55879
- if ((selectMeterStatus === null || selectMeterStatus === void 0 ? void 0 : selectMeterStatus.code) === "Working") {
55987
+ if (isWorkingMeter) {
55880
55988
  var _details$2;
55881
55989
  setCurrentReading(formData === null || formData === void 0 ? void 0 : formData.currentReading);
55882
55990
  setBillingPeriod(`${getDate(meterDetails === null || meterDetails === void 0 ? void 0 : meterDetails.currentReadingDate)} - ${getDate(formData === null || formData === void 0 ? void 0 : formData.currentReadingDate)}`);
@@ -55924,6 +56032,15 @@ const ConsumptionDetails$1 = _ref => {
55924
56032
  select: e => {
55925
56033
  setSelectMeterStatus(e);
55926
56034
  setConsumption("");
56035
+ if (((e === null || e === void 0 ? void 0 : e.code) || "").toLowerCase() === "working") {
56036
+ const okOption = ReadingQualityCodeList === null || ReadingQualityCodeList === void 0 ? void 0 : ReadingQualityCodeList.find(item => ((item === null || item === void 0 ? void 0 : item.code) || "").toLowerCase() === "ok");
56037
+ setSelectReadingQualityCode(okOption || {
56038
+ code: "OK",
56039
+ i18nKey: `WS_SERVICES_CALCULATION_DJBREADINGQUALITYCODE_${Digit.Utils.locale.getTransformedLocale("OK")}`
56040
+ });
56041
+ } else {
56042
+ setSelectReadingQualityCode("");
56043
+ }
55927
56044
  },
55928
56045
  selected: selectMeterStatus,
55929
56046
  t: t
@@ -55944,24 +56061,24 @@ const ConsumptionDetails$1 = _ref => {
55944
56061
  }))
55945
56062
  }, {
55946
56063
  label: t("WS_CONSUMPTION_DETAILS_CURRENT_READING_LABEL"),
55947
- isMandatory: selectMeterStatus.code === "Working" ? true : false,
55948
- disable: selectMeterStatus.code === "Working" ? false : true,
56064
+ isMandatory: isWorkingMeter ? true : false,
56065
+ disable: isWorkingMeter ? false : true,
55949
56066
  type: "number",
55950
56067
  populators: {
55951
56068
  name: "currentReading",
55952
- ...(tempObj = selectMeterStatus.code === "Working" ? {} : {
56069
+ ...(tempObj = isWorkingMeter ? {} : {
55953
56070
  value: ""
55954
56071
  })
55955
56072
  }
55956
56073
  }, {
55957
56074
  label: t("WS_CONSUMPTION_DETAILS_CURRENT_READING_DATE_LABEL"),
55958
- isMandatory: selectMeterStatus.code === "Working" ? true : false,
55959
- disable: selectMeterStatus.code === "Working" ? false : true,
56075
+ isMandatory: isWorkingMeter ? true : false,
56076
+ disable: isWorkingMeter ? false : true,
55960
56077
  type: "custom",
55961
56078
  populators: {
55962
56079
  name: "currentReadingDate",
55963
56080
  validation: {
55964
- required: selectMeterStatus.code === "Working" ? true : false
56081
+ required: isWorkingMeter ? true : false
55965
56082
  },
55966
56083
  customProps: {},
55967
56084
  defaultValue: Digit.Utils.date.getDate(),
@@ -55969,7 +56086,7 @@ const ConsumptionDetails$1 = _ref => {
55969
56086
  onChange: props.onChange,
55970
56087
  date: props.value
55971
56088
  }, customProps, {
55972
- disabled: selectMeterStatus.code === "Working" ? false : true
56089
+ disabled: isWorkingMeter ? false : true
55973
56090
  }))
55974
56091
  }
55975
56092
  }, {
@@ -55977,7 +56094,7 @@ const ConsumptionDetails$1 = _ref => {
55977
56094
  isMandatory: true,
55978
56095
  type: "dropdown",
55979
56096
  populators: /*#__PURE__*/React.createElement(Dropdown, {
55980
- option: ReadingQualityCodeList,
56097
+ option: filteredReadingQualityCodeList,
55981
56098
  autoComplete: "off",
55982
56099
  optionKey: "i18nKey",
55983
56100
  id: "readingQualityCode",
@@ -55991,9 +56108,9 @@ const ConsumptionDetails$1 = _ref => {
55991
56108
  label: t("WS_SERV_DETAIL_CONSUMP"),
55992
56109
  isMandatory: false,
55993
56110
  type: "number",
55994
- disable: selectMeterStatus.code === "Working" ? true : false,
56111
+ disable: isWorkingMeter ? true : false,
55995
56112
  populators: {
55996
- ...(tempObj1 = selectMeterStatus.code === "Working" ? {
56113
+ ...(tempObj1 = isWorkingMeter ? {
55997
56114
  name: "consumption",
55998
56115
  value: selectedConsumtion
55999
56116
  } : {
@@ -61798,22 +61915,55 @@ const SearchWaterConnectionIntegrated = _ref => {
61798
61915
  Header: t("WS_COMMON_TABLE_COL_ADDRESS"),
61799
61916
  disableSortBy: true,
61800
61917
  Cell: _ref7 => {
61801
- var _row$original0;
61918
+ var _row$original0, _row$original1, _row$original10, _property$owners, _property$owners$, _row$original11;
61802
61919
  let {
61803
61920
  row
61804
61921
  } = _ref7;
61805
- return GetCell(`${((_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0["address"]) || "NA"}`);
61922
+ const property = (_row$original0 = row.original) === null || _row$original0 === void 0 ? void 0 : _row$original0.property;
61923
+ 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);
61924
+ const formattedAddress = formatPropertyAddress(propertyAddress, t) || ((_row$original10 = row.original) === null || _row$original10 === void 0 ? void 0 : _row$original10["address"]) || t("CS_NA");
61925
+ 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;
61926
+ 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);
61927
+ if (ownerUuid && propId) {
61928
+ var _String;
61929
+ const privacy = {
61930
+ uuid: ownerUuid,
61931
+ fieldName: ["houseNo", "buildingName", "street", "landmark", "locality", "subLocality", "block", "zone", "pincode"],
61932
+ model: "Property",
61933
+ hide: !propertyAddress,
61934
+ showValue: true,
61935
+ loadData: {
61936
+ serviceName: "/property-services/property/_search",
61937
+ requestBody: {},
61938
+ requestParam: {
61939
+ tenantId: tenantId,
61940
+ propertyIds: propId
61941
+ },
61942
+ jsonPath: "Properties[0].address.street",
61943
+ isArray: false,
61944
+ d: res => formatPropertyAddress(lodash.get(res, "Properties[0].address", {}), t)
61945
+ }
61946
+ };
61947
+ return /*#__PURE__*/React.createElement("span", {
61948
+ className: "cell-text"
61949
+ }, /*#__PURE__*/React.createElement(WrapUnMaskComponent, {
61950
+ value: formattedAddress,
61951
+ iseyevisible: (_String = String(formattedAddress)) === null || _String === void 0 ? void 0 : _String.includes("*"),
61952
+ privacy: privacy
61953
+ }));
61954
+ }
61955
+ return GetCell(formattedAddress);
61806
61956
  }
61807
61957
  }, {
61808
61958
  Header: t("WS_COMMON_TABLE_COL_DUE_DATE_LABEL"),
61809
61959
  disableSortBy: true,
61810
61960
  Cell: _ref8 => {
61811
- var _row$original1, _row$original1$status, _row$original10, _row$original11;
61961
+ var _row$original12, _row$original12$statu, _row$original13, _row$original14;
61812
61962
  let {
61813
61963
  row
61814
61964
  } = _ref8;
61815
- 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()) || "";
61816
- 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);
61965
+ 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()) || "";
61966
+ 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);
61817
61967
  return GetCell(status === "INACTIVE" ? t("WS_NA") : t(`${dueDate}`));
61818
61968
  }
61819
61969
  }], []);