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