@djb25/digit-ui-module-ws 1.0.93 → 1.0.95

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
@@ -516,7 +516,7 @@ const getFiles = function (filesArray, tenant) {
516
516
  };
517
517
  const createPayloadOfWS = function (data) {
518
518
  try {
519
- var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _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, _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, _connectionDetailsObj, _useDetailsObject$cat, _data$applicationSele8, _data$applicationSele9, _connectionHolder$own2, _useDetailsObject$noO, _data$applicationSele0, _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$contact5, _data$documents2, _data$documents3, _data$documents4, _data$cpt18, _Digit, _Digit$Customizations, _Digit$Customizations2, _Digit2, _Digit2$Customization, _Digit2$Customization2;
519
+ var _Digit$UserService$ge, _userInfo$roles, _data$cpt, _data$cpt$details, _data$cpt$details$own, _data$applicationSele, _data$ConnectionDetai, _data$ConnectionDetai2, _ref, _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, _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, _connectionDetailsObj, _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;
520
520
  const userInfo = (_Digit$UserService$ge = Digit.UserService.getUser()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.info;
521
521
  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"));
522
522
  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 => {
@@ -575,7 +575,7 @@ const createPayloadOfWS = function (data) {
575
575
  watsAppMobileNumber: (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.watsAppMobileNumber) || "",
576
576
  isWatsappSameAsMobile: (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.isWatsappSameAsMobile) || false,
577
577
  ownerType: (connectionHolder === null || connectionHolder === void 0 ? void 0 : (_connectionHolder$own = connectionHolder.ownerType) === null || _connectionHolder$own === void 0 ? void 0 : _connectionHolder$own.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.ownerType) || "",
578
- relationship: (connectionHolder === null || connectionHolder === void 0 ? void 0 : (_connectionHolder$rel = connectionHolder.relationship) === null || _connectionHolder$rel === void 0 ? void 0 : _connectionHolder$rel.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.relationship) || "OTHERS",
578
+ relationship: (connectionHolder === null || connectionHolder === void 0 ? void 0 : (_connectionHolder$rel = connectionHolder.relationship) === null || _connectionHolder$rel === void 0 ? void 0 : _connectionHolder$rel.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.relationship) || "OTHER",
579
579
  sameAsPropertyAddress: (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.sameAsOwnerDetails) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.sameAsPropertyAddress) || false
580
580
  }] : [{
581
581
  correspondenceAddress: (data === null || data === void 0 ? void 0 : (_data$propertyAddress = data.propertyAddress) === null || _data$propertyAddress === void 0 ? void 0 : _data$propertyAddress.address) || "",
@@ -586,7 +586,7 @@ const createPayloadOfWS = function (data) {
586
586
  watsAppMobileNumber: (data === null || data === void 0 ? void 0 : (_data$contact2 = data.contact) === null || _data$contact2 === void 0 ? void 0 : _data$contact2.watsAppMobileNumber) || "",
587
587
  isWatsappSameAsMobile: (data === null || data === void 0 ? void 0 : (_data$contact3 = data.contact) === null || _data$contact3 === void 0 ? void 0 : _data$contact3.isWatsappSameAsMobile) || false,
588
588
  ownerType: (data === null || data === void 0 ? void 0 : (_data$applicationSele2 = data.applicationSelection) === null || _data$applicationSele2 === void 0 ? void 0 : (_data$applicationSele3 = _data$applicationSele2.categoryType) === null || _data$applicationSele3 === void 0 ? void 0 : _data$applicationSele3.code) || "",
589
- relationship: "OTHERS",
589
+ relationship: "OTHER",
590
590
  sameAsPropertyAddress: true,
591
591
  emailId: (data === null || data === void 0 ? void 0 : (_data$contact4 = data.contact) === null || _data$contact4 === void 0 ? void 0 : _data$contact4.emailId) || ""
592
592
  }],
@@ -653,18 +653,22 @@ const createPayloadOfWS = function (data) {
653
653
  locality: (data === null || data === void 0 ? void 0 : (_data$propertyAddress14 = data.propertyAddress) === null || _data$propertyAddress14 === void 0 ? void 0 : (_data$propertyAddress15 = _data$propertyAddress14.locality) === null || _data$propertyAddress15 === void 0 ? void 0 : _data$propertyAddress15.code) || (data === null || data === void 0 ? void 0 : (_data$cpt17 = data.cpt) === null || _data$cpt17 === void 0 ? void 0 : (_data$cpt17$details = _data$cpt17.details) === null || _data$cpt17$details === void 0 ? void 0 : (_data$cpt17$details$a = _data$cpt17$details.address) === null || _data$cpt17$details$a === void 0 ? void 0 : (_data$cpt17$details$a2 = _data$cpt17$details$a.locality) === null || _data$cpt17$details$a2 === void 0 ? void 0 : _data$cpt17$details$a2.code),
654
654
  detailsProvidedBy: (data === null || data === void 0 ? void 0 : (_data$plumberDetails2 = data.plumberDetails) === null || _data$plumberDetails2 === void 0 ? void 0 : (_data$plumberDetails3 = _data$plumberDetails2[0]) === null || _data$plumberDetails3 === void 0 ? void 0 : (_data$plumberDetails4 = _data$plumberDetails3.detailsProvidedBy) === null || _data$plumberDetails4 === void 0 ? void 0 : _data$plumberDetails4.code) || (data === null || data === void 0 ? void 0 : (_data$plumberDetails5 = data.plumberDetails) === null || _data$plumberDetails5 === void 0 ? void 0 : (_data$plumberDetails6 = _data$plumberDetails5[0]) === null || _data$plumberDetails6 === void 0 ? void 0 : _data$plumberDetails6.detailsProvidedBy) || "",
655
655
  applicantType: data === null || data === void 0 ? void 0 : (_data$applicationSele4 = data.applicationSelection) === null || _data$applicationSele4 === void 0 ? void 0 : (_data$applicationSele5 = _data$applicationSele4.applicantType) === null || _data$applicationSele5 === void 0 ? void 0 : _data$applicationSele5.code,
656
- connectionType: (data === null || data === void 0 ? void 0 : (_data$applicationSele6 = data.applicationSelection) === null || _data$applicationSele6 === void 0 ? void 0 : (_data$applicationSele7 = _data$applicationSele6.connectionType) === null || _data$applicationSele7 === void 0 ? void 0 : _data$applicationSele7.code) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : (_connectionDetailsObj = connectionDetailsObject.connectionType) === null || _connectionDetailsObj === void 0 ? void 0 : _connectionDetailsObj.code) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.connectionType) || "Metered",
657
- categoryType: (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : (_useDetailsObject$cat = useDetailsObject.categoryType) === null || _useDetailsObject$cat === void 0 ? void 0 : _useDetailsObject$cat.code) || (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : useDetailsObject.categoryType) || (data === null || data === void 0 ? void 0 : (_data$applicationSele8 = data.applicationSelection) === null || _data$applicationSele8 === void 0 ? void 0 : (_data$applicationSele9 = _data$applicationSele8.categoryType) === null || _data$applicationSele9 === void 0 ? void 0 : _data$applicationSele9.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : (_connectionHolder$own2 = connectionHolder.ownerType) === null || _connectionHolder$own2 === void 0 ? void 0 : _connectionHolder$own2.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.ownerType),
656
+ connectionType: (data === null || data === void 0 ? void 0 : (_data$applicationSele6 = data.applicationSelection) === null || _data$applicationSele6 === void 0 ? void 0 : (_data$applicationSele7 = _data$applicationSele6.connectionType) === null || _data$applicationSele7 === void 0 ? void 0 : _data$applicationSele7.code) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : (_connectionDetailsObj = connectionDetailsObject.connectionType) === null || _connectionDetailsObj === void 0 ? void 0 : _connectionDetailsObj.code) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.connectionType) || "Permanent",
657
+ waterDemandType: (data === null || data === void 0 ? void 0 : (_data$applicationSele8 = data.applicationSelection) === null || _data$applicationSele8 === void 0 ? void 0 : _data$applicationSele8.waterDemandType) || (connectionDetailsObject === null || connectionDetailsObject === void 0 ? void 0 : connectionDetailsObject.waterDemandType) || (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : useDetailsObject.waterDemandType) || {
658
+ code: "NON_BULK",
659
+ i18nKey: "WS_WATER_DEMAND_NON_BULK"
660
+ },
661
+ categoryType: (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : (_useDetailsObject$cat = useDetailsObject.categoryType) === null || _useDetailsObject$cat === void 0 ? void 0 : _useDetailsObject$cat.code) || (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : useDetailsObject.categoryType) || (data === null || data === void 0 ? void 0 : (_data$applicationSele9 = data.applicationSelection) === null || _data$applicationSele9 === void 0 ? void 0 : (_data$applicationSele0 = _data$applicationSele9.categoryType) === null || _data$applicationSele0 === void 0 ? void 0 : _data$applicationSele0.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : (_connectionHolder$own2 = connectionHolder.ownerType) === null || _connectionHolder$own2 === void 0 ? void 0 : _connectionHolder$own2.code) || (connectionHolder === null || connectionHolder === void 0 ? void 0 : connectionHolder.ownerType),
658
662
  noOfFloors: (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : (_useDetailsObject$noO = useDetailsObject.noOfFloors) === null || _useDetailsObject$noO === void 0 ? void 0 : _useDetailsObject$noO.code) || (useDetailsObject === null || useDetailsObject === void 0 ? void 0 : useDetailsObject.noOfFloors),
659
- subCategory: data === null || data === void 0 ? void 0 : (_data$applicationSele0 = data.applicationSelection) === null || _data$applicationSele0 === void 0 ? void 0 : (_data$applicationSele1 = _data$applicationSele0.subCategory) === null || _data$applicationSele1 === void 0 ? void 0 : _data$applicationSele1.code,
660
- domesticType: data === null || data === void 0 ? void 0 : (_data$applicationSele10 = data.applicationSelection) === null || _data$applicationSele10 === void 0 ? void 0 : (_data$applicationSele11 = _data$applicationSele10.domesticType) === null || _data$applicationSele11 === void 0 ? void 0 : _data$applicationSele11.code,
661
- temporaryConnection: data === null || data === void 0 ? void 0 : (_data$applicationSele12 = data.applicationSelection) === null || _data$applicationSele12 === void 0 ? void 0 : (_data$applicationSele13 = _data$applicationSele12.temporaryConnection) === null || _data$applicationSele13 === void 0 ? void 0 : _data$applicationSele13.code,
662
- ownerAuthorizationDoc: data === null || data === void 0 ? void 0 : (_data$applicationSele14 = data.applicationSelection) === null || _data$applicationSele14 === void 0 ? void 0 : (_data$applicationSele15 = _data$applicationSele14.ownerAuthorizationDoc) === null || _data$applicationSele15 === void 0 ? void 0 : (_data$applicationSele16 = _data$applicationSele15[0]) === null || _data$applicationSele16 === void 0 ? void 0 : (_data$applicationSele17 = _data$applicationSele16[1]) === null || _data$applicationSele17 === void 0 ? void 0 : _data$applicationSele17.fileStoreId,
663
- ownerContactNumber: data === null || data === void 0 ? void 0 : (_data$applicationSele18 = data.applicationSelection) === null || _data$applicationSele18 === void 0 ? void 0 : _data$applicationSele18.ownerContactNumber,
664
- isOwnerVerified: data === null || data === void 0 ? void 0 : (_data$applicationSele19 = data.applicationSelection) === null || _data$applicationSele19 === void 0 ? void 0 : _data$applicationSele19.isOwnerVerified,
665
- commercialType: data === null || data === void 0 ? void 0 : (_data$applicationSele20 = data.applicationSelection) === null || _data$applicationSele20 === void 0 ? void 0 : (_data$applicationSele21 = _data$applicationSele20.commercialType) === null || _data$applicationSele21 === void 0 ? void 0 : _data$applicationSele21.code,
666
- govtOrganization: data === null || data === void 0 ? void 0 : (_data$applicationSele22 = data.applicationSelection) === null || _data$applicationSele22 === void 0 ? void 0 : _data$applicationSele22.govtOrganization,
667
- departmentType: data === null || data === void 0 ? void 0 : (_data$applicationSele23 = data.applicationSelection) === null || _data$applicationSele23 === void 0 ? void 0 : (_data$applicationSele24 = _data$applicationSele23.departmentType) === null || _data$applicationSele24 === void 0 ? void 0 : _data$applicationSele24.code,
663
+ subCategory: data === null || data === void 0 ? void 0 : (_data$applicationSele1 = data.applicationSelection) === null || _data$applicationSele1 === void 0 ? void 0 : (_data$applicationSele10 = _data$applicationSele1.subCategory) === null || _data$applicationSele10 === void 0 ? void 0 : _data$applicationSele10.code,
664
+ domesticType: data === null || data === void 0 ? void 0 : (_data$applicationSele11 = data.applicationSelection) === null || _data$applicationSele11 === void 0 ? void 0 : (_data$applicationSele12 = _data$applicationSele11.domesticType) === null || _data$applicationSele12 === void 0 ? void 0 : _data$applicationSele12.code,
665
+ temporaryConnection: data === null || data === void 0 ? void 0 : (_data$applicationSele13 = data.applicationSelection) === null || _data$applicationSele13 === void 0 ? void 0 : (_data$applicationSele14 = _data$applicationSele13.temporaryConnection) === null || _data$applicationSele14 === void 0 ? void 0 : _data$applicationSele14.code,
666
+ ownerAuthorizationDoc: data === null || data === void 0 ? void 0 : (_data$applicationSele15 = data.applicationSelection) === null || _data$applicationSele15 === void 0 ? void 0 : (_data$applicationSele16 = _data$applicationSele15.ownerAuthorizationDoc) === null || _data$applicationSele16 === void 0 ? void 0 : (_data$applicationSele17 = _data$applicationSele16[0]) === null || _data$applicationSele17 === void 0 ? void 0 : (_data$applicationSele18 = _data$applicationSele17[1]) === null || _data$applicationSele18 === void 0 ? void 0 : _data$applicationSele18.fileStoreId,
667
+ ownerContactNumber: data === null || data === void 0 ? void 0 : (_data$applicationSele19 = data.applicationSelection) === null || _data$applicationSele19 === void 0 ? void 0 : _data$applicationSele19.ownerContactNumber,
668
+ isOwnerVerified: data === null || data === void 0 ? void 0 : (_data$applicationSele20 = data.applicationSelection) === null || _data$applicationSele20 === void 0 ? void 0 : _data$applicationSele20.isOwnerVerified,
669
+ commercialType: data === null || data === void 0 ? void 0 : (_data$applicationSele21 = data.applicationSelection) === null || _data$applicationSele21 === void 0 ? void 0 : (_data$applicationSele22 = _data$applicationSele21.commercialType) === null || _data$applicationSele22 === void 0 ? void 0 : _data$applicationSele22.code,
670
+ govtOrganization: data === null || data === void 0 ? void 0 : (_data$applicationSele23 = data.applicationSelection) === null || _data$applicationSele23 === void 0 ? void 0 : _data$applicationSele23.govtOrganization,
671
+ departmentType: data === null || data === void 0 ? void 0 : (_data$applicationSele24 = data.applicationSelection) === null || _data$applicationSele24 === void 0 ? void 0 : (_data$applicationSele25 = _data$applicationSele24.departmentType) === null || _data$applicationSele25 === void 0 ? void 0 : _data$applicationSele25.code,
668
672
  governmentEmployee: data === null || data === void 0 ? void 0 : data.governmentEmployee,
669
673
  whatsAppNumber: data === null || data === void 0 ? void 0 : (_data$contact5 = data.contact) === null || _data$contact5 === void 0 ? void 0 : _data$contact5.whatsAppNumber,
670
674
  identityProofNumber: data === null || data === void 0 ? void 0 : (_data$documents2 = data.documents) === null || _data$documents2 === void 0 ? void 0 : _data$documents2.identityProofNumber,
@@ -694,7 +698,7 @@ const createPayloadOfWS = function (data) {
694
698
  };
695
699
  const updatePayloadOfWS = function (data, type) {
696
700
  try {
697
- var _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
701
+ var _data$additionalDetai, _data$additionalDetai2, _Digit3, _Digit3$Customization, _Digit3$Customization2, _Digit4, _Digit4$Customization, _Digit4$Customization2;
698
702
  let payload = {
699
703
  ...data,
700
704
  processInstance: {
@@ -703,7 +707,15 @@ const updatePayloadOfWS = function (data, type) {
703
707
  },
704
708
  documents: JSON.parse(sessionStorage.getItem("WS_DOCUMENTS_INOF") && sessionStorage.getItem("WS_DOCUMENTS_INOF") !== "undefined" ? sessionStorage.getItem("WS_DOCUMENTS_INOF") : "null"),
705
709
  property: JSON.parse(sessionStorage.getItem("WS_PROPERTY_INOF") && sessionStorage.getItem("WS_PROPERTY_INOF") !== "undefined" ? sessionStorage.getItem("WS_PROPERTY_INOF") : "null"),
706
- connectionType: type === "WATER" ? data === null || data === void 0 ? void 0 : data.connectionType : "Non Metered"
710
+ connectionType: type === "WATER" ? (data === null || data === void 0 ? void 0 : data.connectionType) || "Permanent" : "Non Metered",
711
+ additionalDetails: {
712
+ ...(data === null || data === void 0 ? void 0 : data.additionalDetails),
713
+ connectionType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai = data.additionalDetails) === null || _data$additionalDetai === void 0 ? void 0 : _data$additionalDetai.connectionType) || "Permanent",
714
+ waterDemandType: (data === null || data === void 0 ? void 0 : (_data$additionalDetai2 = data.additionalDetails) === null || _data$additionalDetai2 === void 0 ? void 0 : _data$additionalDetai2.waterDemandType) || {
715
+ code: "NON_BULK",
716
+ i18nKey: "WS_WATER_DEMAND_NON_BULK"
717
+ }
718
+ }
707
719
  };
708
720
  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;
709
721
  return Promise.resolve(payload);
@@ -715,34 +727,72 @@ const getAllDocumentsForUpdate = data => {
715
727
  var _data$documents5, _data$djbEmployee6, _data$governmentEmplo5;
716
728
  let allDocuments = Array.isArray(data === null || data === void 0 ? void 0 : (_data$documents5 = data.documents) === null || _data$documents5 === void 0 ? void 0 : _data$documents5.documents) ? [...data.documents.documents] : Array.isArray(data === null || data === void 0 ? void 0 : data.documents) ? [...data.documents] : [];
717
729
  if (data !== null && data !== void 0 && (_data$djbEmployee6 = data.djbEmployee) !== null && _data$djbEmployee6 !== void 0 && _data$djbEmployee6.document) {
718
- var _data$djbEmployee7, _data$djbEmployee7$do, _data$djbEmployee8;
719
- allDocuments.push({
720
- documentType: "OWNER.DJB_EMPLOYEE_ID",
721
- fileStoreId: (data === null || data === void 0 ? void 0 : (_data$djbEmployee7 = data.djbEmployee) === null || _data$djbEmployee7 === void 0 ? void 0 : (_data$djbEmployee7$do = _data$djbEmployee7.document) === null || _data$djbEmployee7$do === void 0 ? void 0 : _data$djbEmployee7$do.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$djbEmployee8 = data.djbEmployee) === null || _data$djbEmployee8 === void 0 ? void 0 : _data$djbEmployee8.document),
722
- documentUid: "",
723
- status: "ACTIVE"
724
- });
730
+ var _data$djbEmployee7;
731
+ const isDjbEmp = String(data === null || data === void 0 ? void 0 : (_data$djbEmployee7 = data.djbEmployee) === null || _data$djbEmployee7 === void 0 ? void 0 : _data$djbEmployee7.isDjbEmployee) === "true";
732
+ let existingIndex = allDocuments.findIndex(doc => doc.documentType === "OWNER.DJB_EMPLOYEE_ID");
733
+ if (isDjbEmp) {
734
+ if (existingIndex !== -1) {
735
+ var _data$djbEmployee8, _data$djbEmployee8$do, _data$djbEmployee9;
736
+ allDocuments[existingIndex] = {
737
+ ...allDocuments[existingIndex],
738
+ fileStoreId: (data === null || data === void 0 ? void 0 : (_data$djbEmployee8 = data.djbEmployee) === null || _data$djbEmployee8 === void 0 ? void 0 : (_data$djbEmployee8$do = _data$djbEmployee8.document) === null || _data$djbEmployee8$do === void 0 ? void 0 : _data$djbEmployee8$do.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$djbEmployee9 = data.djbEmployee) === null || _data$djbEmployee9 === void 0 ? void 0 : _data$djbEmployee9.document),
739
+ status: "ACTIVE"
740
+ };
741
+ } else {
742
+ var _data$djbEmployee0, _data$djbEmployee0$do, _data$djbEmployee1;
743
+ allDocuments.push({
744
+ documentType: "OWNER.DJB_EMPLOYEE_ID",
745
+ fileStoreId: (data === null || data === void 0 ? void 0 : (_data$djbEmployee0 = data.djbEmployee) === null || _data$djbEmployee0 === void 0 ? void 0 : (_data$djbEmployee0$do = _data$djbEmployee0.document) === null || _data$djbEmployee0$do === void 0 ? void 0 : _data$djbEmployee0$do.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$djbEmployee1 = data.djbEmployee) === null || _data$djbEmployee1 === void 0 ? void 0 : _data$djbEmployee1.document),
746
+ documentUid: "",
747
+ status: "ACTIVE"
748
+ });
749
+ }
750
+ } else {
751
+ if (existingIndex !== -1) {
752
+ allDocuments[existingIndex].status = "INACTIVE";
753
+ }
754
+ }
725
755
  }
726
756
  if (data !== null && data !== void 0 && (_data$governmentEmplo5 = data.governmentEmployee) !== null && _data$governmentEmplo5 !== void 0 && _data$governmentEmplo5.organizationDocument) {
727
- var _data$governmentEmplo6, _data$governmentEmplo7, _data$governmentEmplo8;
728
- allDocuments.push({
729
- documentType: "OWNER.GOVERNMENT_EMPLOYEE_ID",
730
- fileStoreId: (data === null || data === void 0 ? void 0 : (_data$governmentEmplo6 = data.governmentEmployee) === null || _data$governmentEmplo6 === void 0 ? void 0 : (_data$governmentEmplo7 = _data$governmentEmplo6.organizationDocument) === null || _data$governmentEmplo7 === void 0 ? void 0 : _data$governmentEmplo7.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$governmentEmplo8 = data.governmentEmployee) === null || _data$governmentEmplo8 === void 0 ? void 0 : _data$governmentEmplo8.organizationDocument),
731
- documentUid: "",
732
- status: "ACTIVE"
733
- });
757
+ let existingIndex = allDocuments.findIndex(doc => doc.documentType === "OWNER.GOVERNMENT_EMPLOYEE_ID");
758
+ if (existingIndex !== -1) {
759
+ var _data$governmentEmplo6, _data$governmentEmplo7, _data$governmentEmplo8;
760
+ allDocuments[existingIndex] = {
761
+ ...allDocuments[existingIndex],
762
+ fileStoreId: (data === null || data === void 0 ? void 0 : (_data$governmentEmplo6 = data.governmentEmployee) === null || _data$governmentEmplo6 === void 0 ? void 0 : (_data$governmentEmplo7 = _data$governmentEmplo6.organizationDocument) === null || _data$governmentEmplo7 === void 0 ? void 0 : _data$governmentEmplo7.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$governmentEmplo8 = data.governmentEmployee) === null || _data$governmentEmplo8 === void 0 ? void 0 : _data$governmentEmplo8.organizationDocument),
763
+ status: "ACTIVE"
764
+ };
765
+ } else {
766
+ var _data$governmentEmplo9, _data$governmentEmplo0, _data$governmentEmplo1;
767
+ allDocuments.push({
768
+ documentType: "OWNER.GOVERNMENT_EMPLOYEE_ID",
769
+ fileStoreId: (data === null || data === void 0 ? void 0 : (_data$governmentEmplo9 = data.governmentEmployee) === null || _data$governmentEmplo9 === void 0 ? void 0 : (_data$governmentEmplo0 = _data$governmentEmplo9.organizationDocument) === null || _data$governmentEmplo0 === void 0 ? void 0 : _data$governmentEmplo0.fileStoreId) || (data === null || data === void 0 ? void 0 : (_data$governmentEmplo1 = data.governmentEmployee) === null || _data$governmentEmplo1 === void 0 ? void 0 : _data$governmentEmplo1.organizationDocument),
770
+ documentUid: "",
771
+ status: "ACTIVE"
772
+ });
773
+ }
734
774
  }
735
775
  const connectionDetailsArray = Array.isArray(data === null || data === void 0 ? void 0 : data.ConnectionDetails) ? data.ConnectionDetails : data !== null && data !== void 0 && data.ConnectionDetails ? Object.values(data.ConnectionDetails).filter(i => typeof i === "object") : [];
736
776
  const connectionDetail = (connectionDetailsArray === null || connectionDetailsArray === void 0 ? void 0 : connectionDetailsArray[0]) || (data === null || data === void 0 ? void 0 : data.ConnectionDetails) || {};
737
777
  if (connectionDetail !== null && connectionDetail !== void 0 && connectionDetail.orgDeptDocument) {
738
- var _connectionDetail$org2;
739
778
  let documentType = "OWNER.ORGANIZATION_DOCUMENT";
740
- allDocuments.push({
741
- documentType: documentType,
742
- fileStoreId: (connectionDetail === null || connectionDetail === void 0 ? void 0 : (_connectionDetail$org2 = connectionDetail.orgDeptDocument) === null || _connectionDetail$org2 === void 0 ? void 0 : _connectionDetail$org2.fileStoreId) || (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument),
743
- documentUid: "",
744
- status: "ACTIVE"
745
- });
779
+ let existingIndex = allDocuments.findIndex(doc => doc.documentType === documentType);
780
+ if (existingIndex !== -1) {
781
+ var _connectionDetail$org2;
782
+ allDocuments[existingIndex] = {
783
+ ...allDocuments[existingIndex],
784
+ fileStoreId: (connectionDetail === null || connectionDetail === void 0 ? void 0 : (_connectionDetail$org2 = connectionDetail.orgDeptDocument) === null || _connectionDetail$org2 === void 0 ? void 0 : _connectionDetail$org2.fileStoreId) || (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument),
785
+ status: "ACTIVE"
786
+ };
787
+ } else {
788
+ var _connectionDetail$org3;
789
+ allDocuments.push({
790
+ documentType: documentType,
791
+ fileStoreId: (connectionDetail === null || connectionDetail === void 0 ? void 0 : (_connectionDetail$org3 = connectionDetail.orgDeptDocument) === null || _connectionDetail$org3 === void 0 ? void 0 : _connectionDetail$org3.fileStoreId) || (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument),
792
+ documentUid: "",
793
+ status: "ACTIVE"
794
+ });
795
+ }
746
796
  }
747
797
  return allDocuments;
748
798
  };
@@ -941,7 +991,7 @@ const convertToSWUpdate = data => {
941
991
  };
942
992
  const createPayloadOfWSDisconnection = function (data, storeData, service) {
943
993
  try {
944
- 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$value, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _plumberInfo, _storeData$applicatio39, _storeData$applicatio40, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio48, _storeData$applicatio49, _storeData$applicatio50, _data$type3, _data$type3$value, _data$reason$value2, _storeData$applicatio51, _storeData$applicatio52, _storeData$applicatio53, _storeData$applicatio54, _storeData$applicatio55, _storeData$applicatio56, _plumberInfo2, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _storeData$applicatio60, _storeData$applicatio61, _storeData$applicatio62, _storeData$applicatio63, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
994
+ 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$value, _storeData$applicatio31, _storeData$applicatio32, _storeData$applicatio33, _storeData$applicatio34, _storeData$applicatio35, _storeData$applicatio36, _storeData$applicatio37, _storeData$applicatio38, _plumberInfo, _storeData$applicatio39, _storeData$applicatio40, _storeData$applicatio41, _storeData$applicatio42, _storeData$applicatio43, _storeData$applicatio44, _storeData$applicatio45, _storeData$applicatio46, _storeData$applicatio47, _storeData$applicatio50, _storeData$applicatio51, _storeData$applicatio52, _storeData$applicatio53, _storeData$applicatio54, _storeData$applicatio55, _data$type3, _data$type3$value, _data$reason$value2, _storeData$applicatio56, _storeData$applicatio57, _storeData$applicatio58, _storeData$applicatio59, _storeData$applicatio60, _storeData$applicatio61, _plumberInfo2, _storeData$applicatio62, _storeData$applicatio63, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio66, _storeData$applicatio67, _storeData$applicatio68, _storeData$applicatio69, _Digit11, _Digit11$Customizatio, _Digit11$Customizatio2, _Digit12, _Digit12$Customizatio, _Digit12$Customizatio2;
945
995
  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;
946
996
  let plumberInfo = [];
947
997
  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) {
@@ -983,10 +1033,10 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
983
1033
  noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio41 = storeData.applicationData) === null || _storeData$applicatio41 === void 0 ? void 0 : _storeData$applicatio41.noOfTaps,
984
1034
  additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio42 = storeData.applicationData) === null || _storeData$applicatio42 === void 0 ? void 0 : _storeData$applicatio42.additionalDetails,
985
1035
  tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio43 = storeData.applicationData) === null || _storeData$applicatio43 === void 0 ? void 0 : _storeData$applicatio43.tenantId,
986
- connectionType: storeData.applicationData.connectionType || null,
987
- waterSource: storeData.applicationData.waterSource || null,
1036
+ connectionType: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio44 = storeData.applicationData) === null || _storeData$applicatio44 === void 0 ? void 0 : _storeData$applicatio44.connectionType) || null,
1037
+ waterSource: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio45 = storeData.applicationData) === null || _storeData$applicatio45 === void 0 ? void 0 : _storeData$applicatio45.waterSource) || null,
988
1038
  processInstance: {
989
- ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio44 = storeData.applicationData) === null || _storeData$applicatio44 === void 0 ? void 0 : _storeData$applicatio44.processInstance),
1039
+ ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio46 = storeData.applicationData) === null || _storeData$applicatio46 === void 0 ? void 0 : _storeData$applicatio46.processInstance),
990
1040
  businessService: "DisconnectWSConnection",
991
1041
  action: "INITIATE"
992
1042
  },
@@ -994,18 +1044,19 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
994
1044
  },
995
1045
  disconnectRequest: true
996
1046
  };
997
- if (storeData.applicationData.connectionType) {
998
- if (storeData.applicationData.meterInstallationDate) wsPayload.WaterConnection.meterInstallationDate = storeData.applicationData.meterInstallationDate;
999
- if (storeData.applicationData.meterId) wsPayload.WaterConnection.meterId = storeData.applicationData.meterId;
1047
+ if (storeData !== null && storeData !== void 0 && (_storeData$applicatio47 = storeData.applicationData) !== null && _storeData$applicatio47 !== void 0 && _storeData$applicatio47.connectionType) {
1048
+ var _storeData$applicatio48, _storeData$applicatio49;
1049
+ if (storeData !== null && storeData !== void 0 && (_storeData$applicatio48 = storeData.applicationData) !== null && _storeData$applicatio48 !== void 0 && _storeData$applicatio48.meterInstallationDate) wsPayload.WaterConnection.meterInstallationDate = storeData.applicationData.meterInstallationDate;
1050
+ if (storeData !== null && storeData !== void 0 && (_storeData$applicatio49 = storeData.applicationData) !== null && _storeData$applicatio49 !== void 0 && _storeData$applicatio49.meterId) wsPayload.WaterConnection.meterId = storeData.applicationData.meterId;
1000
1051
  }
1001
1052
  let swPayload = {
1002
1053
  SewerageConnection: {
1003
- id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio45 = storeData.applicationData) === null || _storeData$applicatio45 === void 0 ? void 0 : _storeData$applicatio45.id,
1004
- applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio46 = storeData.applicationData) === null || _storeData$applicatio46 === void 0 ? void 0 : _storeData$applicatio46.applicationNo,
1005
- applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio47 = storeData.applicationData) === null || _storeData$applicatio47 === void 0 ? void 0 : _storeData$applicatio47.applicationStatus,
1006
- status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio48 = storeData.applicationData) === null || _storeData$applicatio48 === void 0 ? void 0 : _storeData$applicatio48.status,
1007
- connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio49 = storeData.applicationData) === null || _storeData$applicatio49 === void 0 ? void 0 : _storeData$applicatio49.connectionNo,
1008
- connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio50 = storeData.applicationData) === null || _storeData$applicatio50 === void 0 ? void 0 : _storeData$applicatio50.connectionHolders,
1054
+ id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio50 = storeData.applicationData) === null || _storeData$applicatio50 === void 0 ? void 0 : _storeData$applicatio50.id,
1055
+ applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio51 = storeData.applicationData) === null || _storeData$applicatio51 === void 0 ? void 0 : _storeData$applicatio51.applicationNo,
1056
+ applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio52 = storeData.applicationData) === null || _storeData$applicatio52 === void 0 ? void 0 : _storeData$applicatio52.applicationStatus,
1057
+ status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio53 = storeData.applicationData) === null || _storeData$applicatio53 === void 0 ? void 0 : _storeData$applicatio53.status,
1058
+ connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio54 = storeData.applicationData) === null || _storeData$applicatio54 === void 0 ? void 0 : _storeData$applicatio54.connectionNo,
1059
+ connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio55 = storeData.applicationData) === null || _storeData$applicatio55 === void 0 ? void 0 : _storeData$applicatio55.connectionHolders,
1009
1060
  applicationType: "DISCONNECT_SEWERAGE_CONNECTION",
1010
1061
  dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
1011
1062
  isdisconnection: true,
@@ -1014,25 +1065,25 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
1014
1065
  documents: data === null || data === void 0 ? void 0 : data.documents,
1015
1066
  water: false,
1016
1067
  sewerage: true,
1017
- proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio51 = storeData.applicationData) === null || _storeData$applicatio51 === void 0 ? void 0 : _storeData$applicatio51.proposedWaterClosets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio52 = storeData.applicationData) === null || _storeData$applicatio52 === void 0 ? void 0 : _storeData$applicatio52.proposedWaterClosets),
1018
- proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio53 = storeData.applicationData) === null || _storeData$applicatio53 === void 0 ? void 0 : _storeData$applicatio53.proposedToilets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio54 = storeData.applicationData) === null || _storeData$applicatio54 === void 0 ? void 0 : _storeData$applicatio54.proposedToilets),
1068
+ proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio56 = storeData.applicationData) === null || _storeData$applicatio56 === void 0 ? void 0 : _storeData$applicatio56.proposedWaterClosets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio57 = storeData.applicationData) === null || _storeData$applicatio57 === void 0 ? void 0 : _storeData$applicatio57.proposedWaterClosets),
1069
+ proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio58 = storeData.applicationData) === null || _storeData$applicatio58 === void 0 ? void 0 : _storeData$applicatio58.proposedToilets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio59 = storeData.applicationData) === null || _storeData$applicatio59 === void 0 ? void 0 : _storeData$applicatio59.proposedToilets),
1019
1070
  service: "Sewerage",
1020
- property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio55 = storeData.applicationData) === null || _storeData$applicatio55 === void 0 ? void 0 : _storeData$applicatio55.property,
1021
- propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio56 = storeData.applicationData) === null || _storeData$applicatio56 === void 0 ? void 0 : _storeData$applicatio56.propertyId,
1071
+ property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio60 = storeData.applicationData) === null || _storeData$applicatio60 === void 0 ? void 0 : _storeData$applicatio60.property,
1072
+ propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio61 = storeData.applicationData) === null || _storeData$applicatio61 === void 0 ? void 0 : _storeData$applicatio61.propertyId,
1022
1073
  oldConnectionNo: null,
1023
1074
  plumberInfo: ((_plumberInfo2 = plumberInfo) === null || _plumberInfo2 === void 0 ? void 0 : _plumberInfo2.length) > 0 ? plumberInfo : null,
1024
- roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio57 = storeData.applicationData) === null || _storeData$applicatio57 === void 0 ? void 0 : _storeData$applicatio57.roadCuttingInfo,
1075
+ roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio62 = storeData.applicationData) === null || _storeData$applicatio62 === void 0 ? void 0 : _storeData$applicatio62.roadCuttingInfo,
1025
1076
  roadCuttingArea: null,
1026
1077
  roadType: null,
1027
- connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio58 = storeData.applicationData) === null || _storeData$applicatio58 === void 0 ? void 0 : _storeData$applicatio58.connectionExecutionDate,
1028
- noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio59 = storeData.applicationData) === null || _storeData$applicatio59 === void 0 ? void 0 : _storeData$applicatio59.noOfWaterClosets,
1029
- noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio60 = storeData.applicationData) === null || _storeData$applicatio60 === void 0 ? void 0 : _storeData$applicatio60.noOfToilets,
1030
- additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio61 = storeData.applicationData) === null || _storeData$applicatio61 === void 0 ? void 0 : _storeData$applicatio61.additionalDetails,
1031
- tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio62 = storeData.applicationData) === null || _storeData$applicatio62 === void 0 ? void 0 : _storeData$applicatio62.tenantId,
1078
+ connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio63 = storeData.applicationData) === null || _storeData$applicatio63 === void 0 ? void 0 : _storeData$applicatio63.connectionExecutionDate,
1079
+ noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio64 = storeData.applicationData) === null || _storeData$applicatio64 === void 0 ? void 0 : _storeData$applicatio64.noOfWaterClosets,
1080
+ noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio65 = storeData.applicationData) === null || _storeData$applicatio65 === void 0 ? void 0 : _storeData$applicatio65.noOfToilets,
1081
+ additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio66 = storeData.applicationData) === null || _storeData$applicatio66 === void 0 ? void 0 : _storeData$applicatio66.additionalDetails,
1082
+ tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio67 = storeData.applicationData) === null || _storeData$applicatio67 === void 0 ? void 0 : _storeData$applicatio67.tenantId,
1032
1083
  connectionType: "Non Metered",
1033
- waterSource: storeData.applicationData.waterSource || null,
1084
+ waterSource: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio68 = storeData.applicationData) === null || _storeData$applicatio68 === void 0 ? void 0 : _storeData$applicatio68.waterSource) || null,
1034
1085
  processInstance: {
1035
- ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio63 = storeData.applicationData) === null || _storeData$applicatio63 === void 0 ? void 0 : _storeData$applicatio63.processInstance),
1086
+ ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio69 = storeData.applicationData) === null || _storeData$applicatio69 === void 0 ? void 0 : _storeData$applicatio69.processInstance),
1036
1087
  businessService: "DisconnectSWConnection",
1037
1088
  action: "INITIATE"
1038
1089
  },
@@ -1049,26 +1100,26 @@ const createPayloadOfWSDisconnection = function (data, storeData, service) {
1049
1100
  };
1050
1101
  const createPayloadOfWSReconnection = function (data, storeData, service) {
1051
1102
  try {
1052
- var _Digit$UserService$ge0, _Digit$UserService$ge1, _storeData$applicatio64, _storeData$applicatio65, _storeData$applicatio90, _storeData$applicatio91, _storeData$applicatio92, _storeData$applicatio93, _storeData$applicatio94, _storeData$applicatio95, _data$type4, _data$type4$value, _data$type5, _data$type5$value, _data$reason$value3, _storeData$applicatio96, _storeData$applicatio97, _storeData$applicatio98, _storeData$applicatio99, _storeData$applicatio100, _storeData$applicatio101, _storeData$applicatio102, _storeData$applicatio103, _plumberInfo3, _storeData$applicatio104, _storeData$applicatio105, _storeData$applicatio106, _storeData$applicatio107, _storeData$applicatio108, _storeData$applicatio109, _storeData$applicatio110, _storeData$applicatio111, _storeData$applicatio112, _storeData$applicatio113, _storeData$applicatio114, _storeData$applicatio115, _data$type6, _data$type6$value, _data$reason$value4, _storeData$applicatio116, _storeData$applicatio117, _storeData$applicatio118, _storeData$applicatio119, _storeData$applicatio120, _storeData$applicatio121, _plumberInfo4, _storeData$applicatio122, _storeData$applicatio123, _storeData$applicatio124, _storeData$applicatio125, _storeData$applicatio126, _storeData$applicatio127, _storeData$applicatio128;
1103
+ var _Digit$UserService$ge0, _Digit$UserService$ge1, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio96, _storeData$applicatio97, _storeData$applicatio98, _storeData$applicatio99, _storeData$applicatio100, _storeData$applicatio101, _data$type4, _data$type4$value, _data$type5, _data$type5$value, _data$reason$value3, _storeData$applicatio102, _storeData$applicatio103, _storeData$applicatio104, _storeData$applicatio105, _storeData$applicatio106, _storeData$applicatio107, _storeData$applicatio108, _storeData$applicatio109, _plumberInfo3, _storeData$applicatio110, _storeData$applicatio111, _storeData$applicatio112, _storeData$applicatio113, _storeData$applicatio114, _storeData$applicatio115, _storeData$applicatio116, _storeData$applicatio117, _storeData$applicatio118, _storeData$applicatio119, _storeData$applicatio120, _storeData$applicatio121, _data$type6, _data$type6$value, _data$reason$value4, _storeData$applicatio122, _storeData$applicatio123, _storeData$applicatio124, _storeData$applicatio125, _storeData$applicatio126, _storeData$applicatio127, _plumberInfo4, _storeData$applicatio128, _storeData$applicatio129, _storeData$applicatio130, _storeData$applicatio131, _storeData$applicatio132, _storeData$applicatio133, _storeData$applicatio134;
1053
1104
  const user = (_Digit$UserService$ge0 = Digit.UserService.getUser()) === null || _Digit$UserService$ge0 === void 0 ? void 0 : (_Digit$UserService$ge1 = _Digit$UserService$ge0.info) === null || _Digit$UserService$ge1 === void 0 ? void 0 : _Digit$UserService$ge1.type;
1054
1105
  let plumberInfo = [];
1055
- if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio64 = storeData.applicationData) === null || _storeData$applicatio64 === void 0 ? void 0 : (_storeData$applicatio65 = _storeData$applicatio64.plumberInfo) === null || _storeData$applicatio65 === void 0 ? void 0 : _storeData$applicatio65.length) > 0) {
1056
- var _storeData$applicatio66, _storeData$applicatio67, _storeData$applicatio68, _storeData$applicatio69, _storeData$applicatio70, _storeData$applicatio71, _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _storeData$applicatio76, _storeData$applicatio77, _storeData$applicatio78, _storeData$applicatio79, _storeData$applicatio80, _storeData$applicatio81, _storeData$applicatio82, _storeData$applicatio83, _storeData$applicatio84, _storeData$applicatio85, _storeData$applicatio86, _storeData$applicatio87, _storeData$applicatio88, _storeData$applicatio89;
1106
+ if ((storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio70 = storeData.applicationData) === null || _storeData$applicatio70 === void 0 ? void 0 : (_storeData$applicatio71 = _storeData$applicatio70.plumberInfo) === null || _storeData$applicatio71 === void 0 ? void 0 : _storeData$applicatio71.length) > 0) {
1107
+ var _storeData$applicatio72, _storeData$applicatio73, _storeData$applicatio74, _storeData$applicatio75, _storeData$applicatio76, _storeData$applicatio77, _storeData$applicatio78, _storeData$applicatio79, _storeData$applicatio80, _storeData$applicatio81, _storeData$applicatio82, _storeData$applicatio83, _storeData$applicatio84, _storeData$applicatio85, _storeData$applicatio86, _storeData$applicatio87, _storeData$applicatio88, _storeData$applicatio89, _storeData$applicatio90, _storeData$applicatio91, _storeData$applicatio92, _storeData$applicatio93, _storeData$applicatio94, _storeData$applicatio95;
1057
1108
  let plumberInfoData = {};
1058
- if (storeData !== null && storeData !== void 0 && (_storeData$applicatio66 = storeData.applicationData) !== null && _storeData$applicatio66 !== void 0 && (_storeData$applicatio67 = _storeData$applicatio66.plumberInfo) !== null && _storeData$applicatio67 !== void 0 && (_storeData$applicatio68 = _storeData$applicatio67[0]) !== null && _storeData$applicatio68 !== void 0 && _storeData$applicatio68.licenseNo) plumberInfoData.licenseNo = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio69 = storeData.applicationData) === null || _storeData$applicatio69 === void 0 ? void 0 : (_storeData$applicatio70 = _storeData$applicatio69.plumberInfo) === null || _storeData$applicatio70 === void 0 ? void 0 : (_storeData$applicatio71 = _storeData$applicatio70[0]) === null || _storeData$applicatio71 === void 0 ? void 0 : _storeData$applicatio71.licenseNo;
1059
- if (storeData !== null && storeData !== void 0 && (_storeData$applicatio72 = storeData.applicationData) !== null && _storeData$applicatio72 !== void 0 && (_storeData$applicatio73 = _storeData$applicatio72.plumberInfo) !== null && _storeData$applicatio73 !== void 0 && (_storeData$applicatio74 = _storeData$applicatio73[0]) !== null && _storeData$applicatio74 !== void 0 && _storeData$applicatio74.mobileNumber) plumberInfoData.mobileNumber = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio75 = storeData.applicationData) === null || _storeData$applicatio75 === void 0 ? void 0 : (_storeData$applicatio76 = _storeData$applicatio75.plumberInfo) === null || _storeData$applicatio76 === void 0 ? void 0 : (_storeData$applicatio77 = _storeData$applicatio76[0]) === null || _storeData$applicatio77 === void 0 ? void 0 : _storeData$applicatio77.mobileNumber;
1060
- if (storeData !== null && storeData !== void 0 && (_storeData$applicatio78 = storeData.applicationData) !== null && _storeData$applicatio78 !== void 0 && (_storeData$applicatio79 = _storeData$applicatio78.plumberInfo) !== null && _storeData$applicatio79 !== void 0 && (_storeData$applicatio80 = _storeData$applicatio79[0]) !== null && _storeData$applicatio80 !== void 0 && _storeData$applicatio80.id) plumberInfoData.id = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio81 = storeData.applicationData) === null || _storeData$applicatio81 === void 0 ? void 0 : (_storeData$applicatio82 = _storeData$applicatio81.plumberInfo) === null || _storeData$applicatio82 === void 0 ? void 0 : (_storeData$applicatio83 = _storeData$applicatio82[0]) === null || _storeData$applicatio83 === void 0 ? void 0 : _storeData$applicatio83.id;
1061
- if (storeData !== null && storeData !== void 0 && (_storeData$applicatio84 = storeData.applicationData) !== null && _storeData$applicatio84 !== void 0 && (_storeData$applicatio85 = _storeData$applicatio84.plumberInfo) !== null && _storeData$applicatio85 !== void 0 && (_storeData$applicatio86 = _storeData$applicatio85[0]) !== null && _storeData$applicatio86 !== void 0 && _storeData$applicatio86.name) plumberInfoData.name = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio87 = storeData.applicationData) === null || _storeData$applicatio87 === void 0 ? void 0 : (_storeData$applicatio88 = _storeData$applicatio87.plumberInfo) === null || _storeData$applicatio88 === void 0 ? void 0 : (_storeData$applicatio89 = _storeData$applicatio88[0]) === null || _storeData$applicatio89 === void 0 ? void 0 : _storeData$applicatio89.name;
1109
+ if (storeData !== null && storeData !== void 0 && (_storeData$applicatio72 = storeData.applicationData) !== null && _storeData$applicatio72 !== void 0 && (_storeData$applicatio73 = _storeData$applicatio72.plumberInfo) !== null && _storeData$applicatio73 !== void 0 && (_storeData$applicatio74 = _storeData$applicatio73[0]) !== null && _storeData$applicatio74 !== void 0 && _storeData$applicatio74.licenseNo) plumberInfoData.licenseNo = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio75 = storeData.applicationData) === null || _storeData$applicatio75 === void 0 ? void 0 : (_storeData$applicatio76 = _storeData$applicatio75.plumberInfo) === null || _storeData$applicatio76 === void 0 ? void 0 : (_storeData$applicatio77 = _storeData$applicatio76[0]) === null || _storeData$applicatio77 === void 0 ? void 0 : _storeData$applicatio77.licenseNo;
1110
+ if (storeData !== null && storeData !== void 0 && (_storeData$applicatio78 = storeData.applicationData) !== null && _storeData$applicatio78 !== void 0 && (_storeData$applicatio79 = _storeData$applicatio78.plumberInfo) !== null && _storeData$applicatio79 !== void 0 && (_storeData$applicatio80 = _storeData$applicatio79[0]) !== null && _storeData$applicatio80 !== void 0 && _storeData$applicatio80.mobileNumber) plumberInfoData.mobileNumber = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio81 = storeData.applicationData) === null || _storeData$applicatio81 === void 0 ? void 0 : (_storeData$applicatio82 = _storeData$applicatio81.plumberInfo) === null || _storeData$applicatio82 === void 0 ? void 0 : (_storeData$applicatio83 = _storeData$applicatio82[0]) === null || _storeData$applicatio83 === void 0 ? void 0 : _storeData$applicatio83.mobileNumber;
1111
+ if (storeData !== null && storeData !== void 0 && (_storeData$applicatio84 = storeData.applicationData) !== null && _storeData$applicatio84 !== void 0 && (_storeData$applicatio85 = _storeData$applicatio84.plumberInfo) !== null && _storeData$applicatio85 !== void 0 && (_storeData$applicatio86 = _storeData$applicatio85[0]) !== null && _storeData$applicatio86 !== void 0 && _storeData$applicatio86.id) plumberInfoData.id = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio87 = storeData.applicationData) === null || _storeData$applicatio87 === void 0 ? void 0 : (_storeData$applicatio88 = _storeData$applicatio87.plumberInfo) === null || _storeData$applicatio88 === void 0 ? void 0 : (_storeData$applicatio89 = _storeData$applicatio88[0]) === null || _storeData$applicatio89 === void 0 ? void 0 : _storeData$applicatio89.id;
1112
+ if (storeData !== null && storeData !== void 0 && (_storeData$applicatio90 = storeData.applicationData) !== null && _storeData$applicatio90 !== void 0 && (_storeData$applicatio91 = _storeData$applicatio90.plumberInfo) !== null && _storeData$applicatio91 !== void 0 && (_storeData$applicatio92 = _storeData$applicatio91[0]) !== null && _storeData$applicatio92 !== void 0 && _storeData$applicatio92.name) plumberInfoData.name = storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio93 = storeData.applicationData) === null || _storeData$applicatio93 === void 0 ? void 0 : (_storeData$applicatio94 = _storeData$applicatio93.plumberInfo) === null || _storeData$applicatio94 === void 0 ? void 0 : (_storeData$applicatio95 = _storeData$applicatio94[0]) === null || _storeData$applicatio95 === void 0 ? void 0 : _storeData$applicatio95.name;
1062
1113
  plumberInfo = [plumberInfoData];
1063
1114
  }
1064
1115
  let wsPayload = {
1065
1116
  WaterConnection: {
1066
- id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio90 = storeData.applicationData) === null || _storeData$applicatio90 === void 0 ? void 0 : _storeData$applicatio90.id,
1067
- applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio91 = storeData.applicationData) === null || _storeData$applicatio91 === void 0 ? void 0 : _storeData$applicatio91.applicationNo,
1068
- applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio92 = storeData.applicationData) === null || _storeData$applicatio92 === void 0 ? void 0 : _storeData$applicatio92.applicationStatus,
1069
- status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio93 = storeData.applicationData) === null || _storeData$applicatio93 === void 0 ? void 0 : _storeData$applicatio93.status,
1070
- connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio94 = storeData.applicationData) === null || _storeData$applicatio94 === void 0 ? void 0 : _storeData$applicatio94.connectionNo,
1071
- connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio95 = storeData.applicationData) === null || _storeData$applicatio95 === void 0 ? void 0 : _storeData$applicatio95.connectionHolders,
1117
+ id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio96 = storeData.applicationData) === null || _storeData$applicatio96 === void 0 ? void 0 : _storeData$applicatio96.id,
1118
+ applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio97 = storeData.applicationData) === null || _storeData$applicatio97 === void 0 ? void 0 : _storeData$applicatio97.applicationNo,
1119
+ applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio98 = storeData.applicationData) === null || _storeData$applicatio98 === void 0 ? void 0 : _storeData$applicatio98.applicationStatus,
1120
+ status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio99 = storeData.applicationData) === null || _storeData$applicatio99 === void 0 ? void 0 : _storeData$applicatio99.status,
1121
+ connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio100 = storeData.applicationData) === null || _storeData$applicatio100 === void 0 ? void 0 : _storeData$applicatio100.connectionNo,
1122
+ connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio101 = storeData.applicationData) === null || _storeData$applicatio101 === void 0 ? void 0 : _storeData$applicatio101.connectionHolders,
1072
1123
  applicationType: "WATER_RECONNECTION",
1073
1124
  dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
1074
1125
  isdisconnection: true,
@@ -1077,24 +1128,24 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
1077
1128
  documents: data === null || data === void 0 ? void 0 : data.documents,
1078
1129
  water: true,
1079
1130
  sewerage: false,
1080
- proposedTaps: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio96 = storeData.applicationData) === null || _storeData$applicatio96 === void 0 ? void 0 : _storeData$applicatio96.proposedTaps) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio97 = storeData.applicationData) === null || _storeData$applicatio97 === void 0 ? void 0 : _storeData$applicatio97.proposedTaps),
1081
- proposedPipeSize: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio98 = storeData.applicationData) === null || _storeData$applicatio98 === void 0 ? void 0 : (_storeData$applicatio99 = _storeData$applicatio98.proposedPipeSize) === null || _storeData$applicatio99 === void 0 ? void 0 : _storeData$applicatio99.size) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio100 = storeData.applicationData) === null || _storeData$applicatio100 === void 0 ? void 0 : (_storeData$applicatio101 = _storeData$applicatio100.proposedPipeSize) === null || _storeData$applicatio101 === void 0 ? void 0 : _storeData$applicatio101.size),
1131
+ proposedTaps: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio102 = storeData.applicationData) === null || _storeData$applicatio102 === void 0 ? void 0 : _storeData$applicatio102.proposedTaps) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio103 = storeData.applicationData) === null || _storeData$applicatio103 === void 0 ? void 0 : _storeData$applicatio103.proposedTaps),
1132
+ proposedPipeSize: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio104 = storeData.applicationData) === null || _storeData$applicatio104 === void 0 ? void 0 : (_storeData$applicatio105 = _storeData$applicatio104.proposedPipeSize) === null || _storeData$applicatio105 === void 0 ? void 0 : _storeData$applicatio105.size) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio106 = storeData.applicationData) === null || _storeData$applicatio106 === void 0 ? void 0 : (_storeData$applicatio107 = _storeData$applicatio106.proposedPipeSize) === null || _storeData$applicatio107 === void 0 ? void 0 : _storeData$applicatio107.size),
1082
1133
  service: "Water",
1083
- property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio102 = storeData.applicationData) === null || _storeData$applicatio102 === void 0 ? void 0 : _storeData$applicatio102.property,
1084
- propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio103 = storeData.applicationData) === null || _storeData$applicatio103 === void 0 ? void 0 : _storeData$applicatio103.propertyId,
1134
+ property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio108 = storeData.applicationData) === null || _storeData$applicatio108 === void 0 ? void 0 : _storeData$applicatio108.property,
1135
+ propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio109 = storeData.applicationData) === null || _storeData$applicatio109 === void 0 ? void 0 : _storeData$applicatio109.propertyId,
1085
1136
  oldConnectionNo: null,
1086
1137
  plumberInfo: ((_plumberInfo3 = plumberInfo) === null || _plumberInfo3 === void 0 ? void 0 : _plumberInfo3.length) > 0 ? plumberInfo : null,
1087
- roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio104 = storeData.applicationData) === null || _storeData$applicatio104 === void 0 ? void 0 : _storeData$applicatio104.roadCuttingInfo,
1138
+ roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio110 = storeData.applicationData) === null || _storeData$applicatio110 === void 0 ? void 0 : _storeData$applicatio110.roadCuttingInfo,
1088
1139
  roadCuttingArea: null,
1089
1140
  roadType: null,
1090
- connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio105 = storeData.applicationData) === null || _storeData$applicatio105 === void 0 ? void 0 : _storeData$applicatio105.connectionExecutionDate,
1091
- noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio106 = storeData.applicationData) === null || _storeData$applicatio106 === void 0 ? void 0 : _storeData$applicatio106.noOfTaps,
1092
- additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio107 = storeData.applicationData) === null || _storeData$applicatio107 === void 0 ? void 0 : _storeData$applicatio107.additionalDetails,
1093
- tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio108 = storeData.applicationData) === null || _storeData$applicatio108 === void 0 ? void 0 : _storeData$applicatio108.tenantId,
1141
+ connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio111 = storeData.applicationData) === null || _storeData$applicatio111 === void 0 ? void 0 : _storeData$applicatio111.connectionExecutionDate,
1142
+ noOfTaps: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio112 = storeData.applicationData) === null || _storeData$applicatio112 === void 0 ? void 0 : _storeData$applicatio112.noOfTaps,
1143
+ additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio113 = storeData.applicationData) === null || _storeData$applicatio113 === void 0 ? void 0 : _storeData$applicatio113.additionalDetails,
1144
+ tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio114 = storeData.applicationData) === null || _storeData$applicatio114 === void 0 ? void 0 : _storeData$applicatio114.tenantId,
1094
1145
  connectionType: storeData.applicationData.connectionType || null,
1095
1146
  waterSource: storeData.applicationData.waterSource || null,
1096
1147
  processInstance: {
1097
- ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio109 = storeData.applicationData) === null || _storeData$applicatio109 === void 0 ? void 0 : _storeData$applicatio109.processInstance),
1148
+ ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio115 = storeData.applicationData) === null || _storeData$applicatio115 === void 0 ? void 0 : _storeData$applicatio115.processInstance),
1098
1149
  action: "INITIATE",
1099
1150
  businessService: "WSReconnection"
1100
1151
  },
@@ -1108,12 +1159,12 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
1108
1159
  }
1109
1160
  let swPayload = {
1110
1161
  SewerageConnection: {
1111
- id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio110 = storeData.applicationData) === null || _storeData$applicatio110 === void 0 ? void 0 : _storeData$applicatio110.id,
1112
- applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio111 = storeData.applicationData) === null || _storeData$applicatio111 === void 0 ? void 0 : _storeData$applicatio111.applicationNo,
1113
- applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio112 = storeData.applicationData) === null || _storeData$applicatio112 === void 0 ? void 0 : _storeData$applicatio112.applicationStatus,
1114
- status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio113 = storeData.applicationData) === null || _storeData$applicatio113 === void 0 ? void 0 : _storeData$applicatio113.status,
1115
- connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio114 = storeData.applicationData) === null || _storeData$applicatio114 === void 0 ? void 0 : _storeData$applicatio114.connectionNo,
1116
- connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio115 = storeData.applicationData) === null || _storeData$applicatio115 === void 0 ? void 0 : _storeData$applicatio115.connectionHolders,
1162
+ id: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio116 = storeData.applicationData) === null || _storeData$applicatio116 === void 0 ? void 0 : _storeData$applicatio116.id,
1163
+ applicationNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio117 = storeData.applicationData) === null || _storeData$applicatio117 === void 0 ? void 0 : _storeData$applicatio117.applicationNo,
1164
+ applicationStatus: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio118 = storeData.applicationData) === null || _storeData$applicatio118 === void 0 ? void 0 : _storeData$applicatio118.applicationStatus,
1165
+ status: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio119 = storeData.applicationData) === null || _storeData$applicatio119 === void 0 ? void 0 : _storeData$applicatio119.status,
1166
+ connectionNo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio120 = storeData.applicationData) === null || _storeData$applicatio120 === void 0 ? void 0 : _storeData$applicatio120.connectionNo,
1167
+ connectionHolders: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio121 = storeData.applicationData) === null || _storeData$applicatio121 === void 0 ? void 0 : _storeData$applicatio121.connectionHolders,
1117
1168
  applicationType: "WATER_RECONNECTION",
1118
1169
  dateEffectiveFrom: convertDateToEpoch(data === null || data === void 0 ? void 0 : data.date),
1119
1170
  isdisconnection: true,
@@ -1122,25 +1173,25 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
1122
1173
  documents: data === null || data === void 0 ? void 0 : data.documents,
1123
1174
  water: false,
1124
1175
  sewerage: true,
1125
- proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio116 = storeData.applicationData) === null || _storeData$applicatio116 === void 0 ? void 0 : _storeData$applicatio116.proposedWaterClosets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio117 = storeData.applicationData) === null || _storeData$applicatio117 === void 0 ? void 0 : _storeData$applicatio117.proposedWaterClosets),
1126
- proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio118 = storeData.applicationData) === null || _storeData$applicatio118 === void 0 ? void 0 : _storeData$applicatio118.proposedToilets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio119 = storeData.applicationData) === null || _storeData$applicatio119 === void 0 ? void 0 : _storeData$applicatio119.proposedToilets),
1176
+ proposedWaterClosets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio122 = storeData.applicationData) === null || _storeData$applicatio122 === void 0 ? void 0 : _storeData$applicatio122.proposedWaterClosets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio123 = storeData.applicationData) === null || _storeData$applicatio123 === void 0 ? void 0 : _storeData$applicatio123.proposedWaterClosets),
1177
+ proposedToilets: (storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio124 = storeData.applicationData) === null || _storeData$applicatio124 === void 0 ? void 0 : _storeData$applicatio124.proposedToilets) && Number(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio125 = storeData.applicationData) === null || _storeData$applicatio125 === void 0 ? void 0 : _storeData$applicatio125.proposedToilets),
1127
1178
  service: "Sewerage",
1128
- property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio120 = storeData.applicationData) === null || _storeData$applicatio120 === void 0 ? void 0 : _storeData$applicatio120.property,
1129
- propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio121 = storeData.applicationData) === null || _storeData$applicatio121 === void 0 ? void 0 : _storeData$applicatio121.propertyId,
1179
+ property: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio126 = storeData.applicationData) === null || _storeData$applicatio126 === void 0 ? void 0 : _storeData$applicatio126.property,
1180
+ propertyId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio127 = storeData.applicationData) === null || _storeData$applicatio127 === void 0 ? void 0 : _storeData$applicatio127.propertyId,
1130
1181
  oldConnectionNo: null,
1131
1182
  plumberInfo: ((_plumberInfo4 = plumberInfo) === null || _plumberInfo4 === void 0 ? void 0 : _plumberInfo4.length) > 0 ? plumberInfo : null,
1132
- roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio122 = storeData.applicationData) === null || _storeData$applicatio122 === void 0 ? void 0 : _storeData$applicatio122.roadCuttingInfo,
1183
+ roadCuttingInfo: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio128 = storeData.applicationData) === null || _storeData$applicatio128 === void 0 ? void 0 : _storeData$applicatio128.roadCuttingInfo,
1133
1184
  roadCuttingArea: null,
1134
1185
  roadType: null,
1135
- connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio123 = storeData.applicationData) === null || _storeData$applicatio123 === void 0 ? void 0 : _storeData$applicatio123.connectionExecutionDate,
1136
- noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio124 = storeData.applicationData) === null || _storeData$applicatio124 === void 0 ? void 0 : _storeData$applicatio124.noOfWaterClosets,
1137
- noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio125 = storeData.applicationData) === null || _storeData$applicatio125 === void 0 ? void 0 : _storeData$applicatio125.noOfToilets,
1138
- additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio126 = storeData.applicationData) === null || _storeData$applicatio126 === void 0 ? void 0 : _storeData$applicatio126.additionalDetails,
1139
- tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio127 = storeData.applicationData) === null || _storeData$applicatio127 === void 0 ? void 0 : _storeData$applicatio127.tenantId,
1186
+ connectionExecutionDate: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio129 = storeData.applicationData) === null || _storeData$applicatio129 === void 0 ? void 0 : _storeData$applicatio129.connectionExecutionDate,
1187
+ noOfWaterClosets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio130 = storeData.applicationData) === null || _storeData$applicatio130 === void 0 ? void 0 : _storeData$applicatio130.noOfWaterClosets,
1188
+ noOfToilets: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio131 = storeData.applicationData) === null || _storeData$applicatio131 === void 0 ? void 0 : _storeData$applicatio131.noOfToilets,
1189
+ additionalDetails: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio132 = storeData.applicationData) === null || _storeData$applicatio132 === void 0 ? void 0 : _storeData$applicatio132.additionalDetails,
1190
+ tenantId: storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio133 = storeData.applicationData) === null || _storeData$applicatio133 === void 0 ? void 0 : _storeData$applicatio133.tenantId,
1140
1191
  connectionType: "Non Metered",
1141
1192
  waterSource: storeData.applicationData.waterSource || null,
1142
1193
  processInstance: {
1143
- ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio128 = storeData.applicationData) === null || _storeData$applicatio128 === void 0 ? void 0 : _storeData$applicatio128.processInstance),
1194
+ ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio134 = storeData.applicationData) === null || _storeData$applicatio134 === void 0 ? void 0 : _storeData$applicatio134.processInstance),
1144
1195
  action: "INITIATE",
1145
1196
  businessService: "SWReconnection"
1146
1197
  },
@@ -1156,7 +1207,7 @@ const createPayloadOfWSReconnection = function (data, storeData, service) {
1156
1207
  };
1157
1208
  const createPayloadOfWSReSubmitDisconnection = function (data, storeData, service) {
1158
1209
  try {
1159
- var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type7, _data$type7$value, _data$reason$value5, _storeData$applicatio129, _data$type8, _data$type8$value, _data$reason$value6, _storeData$applicatio130, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
1210
+ var _Digit$UserService$ge10, _Digit$UserService$ge11, _data$type7, _data$type7$value, _data$reason$value5, _storeData$applicatio135, _data$type8, _data$type8$value, _data$reason$value6, _storeData$applicatio136, _Digit13, _Digit13$Customizatio, _Digit13$Customizatio2, _Digit14, _Digit14$Customizatio, _Digit14$Customizatio2;
1160
1211
  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;
1161
1212
  let wsPayload = {
1162
1213
  WaterConnection: {
@@ -1169,7 +1220,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
1169
1220
  sewerage: false,
1170
1221
  service: "Water",
1171
1222
  processInstance: {
1172
- ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio129 = storeData.applicationData) === null || _storeData$applicatio129 === void 0 ? void 0 : _storeData$applicatio129.processInstance),
1223
+ ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio135 = storeData.applicationData) === null || _storeData$applicatio135 === void 0 ? void 0 : _storeData$applicatio135.processInstance),
1173
1224
  action: "RESUBMIT_APPLICATION"
1174
1225
  },
1175
1226
  channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
@@ -1192,7 +1243,7 @@ const createPayloadOfWSReSubmitDisconnection = function (data, storeData, servic
1192
1243
  sewerage: true,
1193
1244
  service: "Sewerage",
1194
1245
  processInstance: {
1195
- ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio130 = storeData.applicationData) === null || _storeData$applicatio130 === void 0 ? void 0 : _storeData$applicatio130.processInstance),
1246
+ ...(storeData === null || storeData === void 0 ? void 0 : (_storeData$applicatio136 = storeData.applicationData) === null || _storeData$applicatio136 === void 0 ? void 0 : _storeData$applicatio136.processInstance),
1196
1247
  action: "RESUBMIT_APPLICATION"
1197
1248
  },
1198
1249
  channel: (user === null || user === void 0 ? void 0 : user.toUpperCase()) === "CITIZEN" ? "CITIZEN" : "CFC_COUNTER"
@@ -11638,6 +11689,16 @@ const BILLSBreadCrumbs = _ref => {
11638
11689
  path: `/digit-ui/employee/ws/new-disconnection/docsrequired`,
11639
11690
  label: t("WS_NEW_DISCONNECTION_DOCS_REQUIRED"),
11640
11691
  show: location.pathname.includes("/new-disconnection/docsrequired") ? true : false
11692
+ }, {
11693
+ path: `/digit-ui/employee/ws/new-disconnection/k-number`,
11694
+ label: `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / K Number Verification`,
11695
+ show: location.pathname.includes("/new-disconnection/k-number") ? true : false,
11696
+ isBack: true
11697
+ }, {
11698
+ path: `/digit-ui/employee/ws/new-disconnection/consumer-details`,
11699
+ label: `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / Consumer Details`,
11700
+ show: location.pathname.includes("/new-disconnection/consumer-details") ? true : false,
11701
+ isBack: true
11641
11702
  }, {
11642
11703
  path: `/digit-ui/employee/ws/new-disconnection/application-form`,
11643
11704
  label: isMobile ? `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / ${t("WS_NEW_DISCONNECTION_APPLICATION")}` : `${t("WS_NEW_DISCONNECTION_DOCS_REQUIRED")} / ${t("WS_NEW_DISCONNECTION_APPLICATION")}`,
@@ -11807,14 +11868,14 @@ const App$1 = _ref2 => {
11807
11868
  const WSApplicationDetailsBillAmendment = (_Digit1 = Digit) === null || _Digit1 === void 0 ? void 0 : (_Digit1$ComponentRegi = _Digit1.ComponentRegistryService) === null || _Digit1$ComponentRegi === void 0 ? void 0 : _Digit1$ComponentRegi.getComponent("WSApplicationDetailsBillAmendment");
11808
11869
  const WSSearch = (_Digit10 = Digit) === null || _Digit10 === void 0 ? void 0 : (_Digit10$ComponentReg = _Digit10.ComponentRegistryService) === null || _Digit10$ComponentReg === void 0 ? void 0 : _Digit10$ComponentReg.getComponent("WSSearch");
11809
11870
  const WSSearchWater = (_Digit11 = Digit) === null || _Digit11 === void 0 ? void 0 : (_Digit11$ComponentReg = _Digit11.ComponentRegistryService) === null || _Digit11$ComponentReg === void 0 ? void 0 : _Digit11$ComponentReg.getComponent("WSSearchWater");
11810
- const WSEditApplication = (_Digit12 = Digit) === null || _Digit12 === void 0 ? void 0 : (_Digit12$ComponentReg = _Digit12.ComponentRegistryService) === null || _Digit12$ComponentReg === void 0 ? void 0 : _Digit12$ComponentReg.getComponent("WSEditApplication");
11871
+ const WSEditApplication = (_Digit12 = Digit) === null || _Digit12 === void 0 ? void 0 : (_Digit12$ComponentReg = _Digit12.ComponentRegistryService) === null || _Digit12$ComponentReg === void 0 ? void 0 : _Digit12$ComponentReg.getComponent("WSCitizenEditApplication");
11811
11872
  const WSConsumptionDetails = (_Digit13 = Digit) === null || _Digit13 === void 0 ? void 0 : (_Digit13$ComponentReg = _Digit13.ComponentRegistryService) === null || _Digit13$ComponentReg === void 0 ? void 0 : _Digit13$ComponentReg.getComponent("WSConsumptionDetails");
11812
11873
  const WSModifyApplication = (_Digit14 = Digit) === null || _Digit14 === void 0 ? void 0 : (_Digit14$ComponentReg = _Digit14.ComponentRegistryService) === null || _Digit14$ComponentReg === void 0 ? void 0 : _Digit14$ComponentReg.getComponent("WSModifyApplication");
11813
11874
  const WSEditModifyApplication = (_Digit15 = Digit) === null || _Digit15 === void 0 ? void 0 : (_Digit15$ComponentReg = _Digit15.ComponentRegistryService) === null || _Digit15$ComponentReg === void 0 ? void 0 : _Digit15$ComponentReg.getComponent("WSEditModifyApplication");
11814
11875
  const WSMutationApplication = (_Digit16 = Digit) === null || _Digit16 === void 0 ? void 0 : (_Digit16$ComponentReg = _Digit16.ComponentRegistryService) === null || _Digit16$ComponentReg === void 0 ? void 0 : _Digit16$ComponentReg.getComponent("WSMutationApplication");
11815
11876
  const WSDisconnectionApplication = (_Digit17 = Digit) === null || _Digit17 === void 0 ? void 0 : (_Digit17$ComponentReg = _Digit17.ComponentRegistryService) === null || _Digit17$ComponentReg === void 0 ? void 0 : _Digit17$ComponentReg.getComponent("WSDisconnectionApplication");
11816
11877
  const WSRestorationApplication = (_Digit18 = Digit) === null || _Digit18 === void 0 ? void 0 : (_Digit18$ComponentReg = _Digit18.ComponentRegistryService) === null || _Digit18$ComponentReg === void 0 ? void 0 : _Digit18$ComponentReg.getComponent("WSRestorationApplication");
11817
- const WSEditApplicationByConfig = (_Digit19 = Digit) === null || _Digit19 === void 0 ? void 0 : (_Digit19$ComponentReg = _Digit19.ComponentRegistryService) === null || _Digit19$ComponentReg === void 0 ? void 0 : _Digit19$ComponentReg.getComponent("WSEditApplicationByConfig");
11878
+ const WSEditApplicationByConfig = (_Digit19 = Digit) === null || _Digit19 === void 0 ? void 0 : (_Digit19$ComponentReg = _Digit19.ComponentRegistryService) === null || _Digit19$ComponentReg === void 0 ? void 0 : _Digit19$ComponentReg.getComponent("WSCitizenEditApplication");
11818
11879
  const WSBillIAmendMentInbox = (_Digit20 = Digit) === null || _Digit20 === void 0 ? void 0 : (_Digit20$ComponentReg = _Digit20.ComponentRegistryService) === null || _Digit20$ComponentReg === void 0 ? void 0 : _Digit20$ComponentReg.getComponent("WSBillIAmendMentInbox");
11819
11880
  const WSGetDisconnectionDetails = (_Digit21 = Digit) === null || _Digit21 === void 0 ? void 0 : (_Digit21$ComponentReg = _Digit21.ComponentRegistryService) === null || _Digit21$ComponentReg === void 0 ? void 0 : _Digit21$ComponentReg.getComponent("WSGetDisconnectionDetails");
11820
11881
  const WSModifyApplicationDetails = (_Digit22 = Digit) === null || _Digit22 === void 0 ? void 0 : (_Digit22$ComponentReg = _Digit22.ComponentRegistryService) === null || _Digit22$ComponentReg === void 0 ? void 0 : _Digit22$ComponentReg.getComponent("WSModifyApplicationDetails");
@@ -11826,7 +11887,7 @@ const App$1 = _ref2 => {
11826
11887
  const CPTCreateProperty = (_Digit28 = Digit) === null || _Digit28 === void 0 ? void 0 : (_Digit28$ComponentReg = _Digit28.ComponentRegistryService) === null || _Digit28$ComponentReg === void 0 ? void 0 : _Digit28$ComponentReg.getComponent("CPTCreateProperty");
11827
11888
  const CPTAcknowledgement = (_Digit29 = Digit) === null || _Digit29 === void 0 ? void 0 : (_Digit29$ComponentReg = _Digit29.ComponentRegistryService) === null || _Digit29$ComponentReg === void 0 ? void 0 : _Digit29$ComponentReg.getComponent("CPTAcknowledgement");
11828
11889
  const WSInfoPage = (_Digit30 = Digit) === null || _Digit30 === void 0 ? void 0 : (_Digit30$ComponentReg = _Digit30.ComponentRegistryService) === null || _Digit30$ComponentReg === void 0 ? void 0 : _Digit30$ComponentReg.getComponent("WSInfoPage");
11829
- const locationCheck = window.location.href.includes("/employee/ws/new-application") || window.location.href.includes("/employee/ws/modify-application") || window.location.href.includes("/employee/ws/mutation-application") || window.location.href.includes("/employee/ws/edit-application") || window.location.href.includes("/employee/ws/activate-connection") || window.location.href.includes("/employee/ws/application-details") || window.location.href.includes("/employee/ws/modify-details") || window.location.href.includes("/employee/ws/ws-response") || window.location.href.includes("/employee/ws/new-disconnection/application-form") || window.location.href.includes("/employee/ws/ws-disconnection-response") || window.location.href.includes("/employee/ws/consumption-details") || window.location.href.includes("/employee/ws/edit-disconnection-application") || window.location.href.includes("/employee/ws/config-by-disconnection-application") || window.location.href.includes("/employee/ws/resubmit-disconnection-application") || window.location.href.includes("/employee/ws/water/bulk-bill");
11890
+ const locationCheck = window.location.href.includes("/employee/ws/new-application") || window.location.href.includes("/employee/ws/modify-application") || window.location.href.includes("/employee/ws/mutation-application") || window.location.href.includes("/employee/ws/edit-application") || window.location.href.includes("/employee/ws/activate-connection") || window.location.href.includes("/employee/ws/application-details") || window.location.href.includes("/employee/ws/modify-details") || window.location.href.includes("/employee/ws/ws-response") || window.location.href.includes("/employee/ws/new-disconnection/application-form") || window.location.href.includes("/employee/ws/new-disconnection/k-number") || window.location.href.includes("/employee/ws/new-disconnection/consumer-details") || window.location.href.includes("/employee/ws/ws-disconnection-response") || window.location.href.includes("/employee/ws/consumption-details") || window.location.href.includes("/employee/ws/edit-disconnection-application") || window.location.href.includes("/employee/ws/config-by-disconnection-application") || window.location.href.includes("/employee/ws/resubmit-disconnection-application") || window.location.href.includes("/employee/ws/water/bulk-bill");
11830
11891
  const locationCheckReqDocs = window.location.href.includes("/employee/ws/create-application") || window.location.href.includes("/employee/ws/new-disconnection/docsrequired");
11831
11892
  return /*#__PURE__*/React__default.createElement("div", {
11832
11893
  className: "app-container"
@@ -12851,8 +12912,8 @@ const createConnectionDetails = () => ({
12851
12912
  i18nKey: "Exhibition"
12852
12913
  },
12853
12914
  waterDemandType: {
12854
- code: "BULK",
12855
- i18nKey: "WS_WATER_DEMAND_BULK"
12915
+ code: "NON_BULK",
12916
+ i18nKey: "WS_WATER_DEMAND_NON_BULK"
12856
12917
  },
12857
12918
  applicantType: {
12858
12919
  code: "OWNER",
@@ -13027,7 +13088,7 @@ const WSConnectionDetails = _ref => {
13027
13088
  }, commonProps))));
13028
13089
  };
13029
13090
  const ConnectionDetails = _props => {
13030
- var _formData$DocumentsRe, _formValue$connection, _formValue$categoryTy, _formValue$categoryTy2, _formValue$domesticTy;
13091
+ var _formData$DocumentsRe;
13031
13092
  const {
13032
13093
  connectionDetail,
13033
13094
  focusIndex,
@@ -13079,8 +13140,8 @@ const ConnectionDetails = _props => {
13079
13140
  i18nKey: "Exhibition"
13080
13141
  },
13081
13142
  waterDemandType: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterDemandType) || {
13082
- code: "BULK",
13083
- i18nKey: "WS_WATER_DEMAND_BULK"
13143
+ code: "NON_BULK",
13144
+ i18nKey: "WS_WATER_DEMAND_NON_BULK"
13084
13145
  },
13085
13146
  applicantType: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.applicantType) || {
13086
13147
  code: "OWNER",
@@ -13110,18 +13171,6 @@ const ConnectionDetails = _props => {
13110
13171
  const [showDocModal, setShowDocModal] = React.useState(false);
13111
13172
  const [docFileUrl, setDocFileUrl] = React.useState("");
13112
13173
  const [docFileType, setDocFileType] = React.useState("");
13113
- const handleSelectFile = e => {
13114
- var _e$target$files;
13115
- const selectedFile = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
13116
- if (selectedFile) {
13117
- if (selectedFile.size >= 5242880) {
13118
- setFileUploadError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "Maximum file size exceeded (5MB)");
13119
- } else {
13120
- setFile(selectedFile);
13121
- setFileUploadError(null);
13122
- }
13123
- }
13124
- };
13125
13174
  React.useEffect(() => {
13126
13175
  (function () {
13127
13176
  try {
@@ -13152,38 +13201,6 @@ const ConnectionDetails = _props => {
13152
13201
  }
13153
13202
  })();
13154
13203
  }, [file]);
13155
- const viewDocument = function () {
13156
- try {
13157
- const _temp4 = function () {
13158
- if (uploadedFile) {
13159
- const _temp3 = _catch(function () {
13160
- return Promise.resolve(Digit.UploadServices.FileFetchbyid(uploadedFile, Digit.ULBService.getStateId())).then(function (res) {
13161
- if (res !== null && res !== void 0 && res.data) {
13162
- const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
13163
- type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
13164
- });
13165
- const fileURL = URL.createObjectURL(blob);
13166
- setDocFileUrl(fileURL);
13167
- const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
13168
- if (contentType.toLowerCase().includes("pdf")) {
13169
- setDocFileType("pdf");
13170
- } else {
13171
- setDocFileType("image");
13172
- }
13173
- setShowDocModal(true);
13174
- }
13175
- });
13176
- }, function (err) {
13177
- console.error("Failed to fetch file URL via FileFetchbyid", err);
13178
- });
13179
- if (_temp3 && _temp3.then) return _temp3.then(function () {});
13180
- }
13181
- }();
13182
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
13183
- } catch (e) {
13184
- return Promise.reject(e);
13185
- }
13186
- };
13187
13204
  React.useEffect(() => {
13188
13205
  trigger();
13189
13206
  }, []);
@@ -13258,7 +13275,9 @@ const ConnectionDetails = _props => {
13258
13275
  defaultOpen: true
13259
13276
  }, /*#__PURE__*/React__default.createElement("div", {
13260
13277
  className: "formcomposer-section-grid"
13261
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_SERVICE_TYPE")}*`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13278
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_SERVICE_TYPE")}`, /*#__PURE__*/React__default.createElement("span", {
13279
+ className: "check-page-link-button"
13280
+ }, "*")), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13262
13281
  control: control,
13263
13282
  name: "serviceType",
13264
13283
  defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceType) || "",
@@ -13274,81 +13293,12 @@ const ConnectionDetails = _props => {
13274
13293
  onChange: () => {},
13275
13294
  style: {
13276
13295
  backgroundColor: "#eee"
13277
- }
13296
+ },
13297
+ placeholder: t("WS_SERVICE_TYPE_PLACEHOLDER")
13278
13298
  })
13279
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_CONNECTION_TYPE")}*`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13280
- control: control,
13281
- name: "connectionType",
13282
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.connectionType) || "",
13283
- rules: {
13284
- required: t("REQUIRED_FIELD")
13285
- },
13286
- isMandatory: true,
13287
- render: props => {
13288
- var _errors$connectionTyp;
13289
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
13290
- className: "form-field",
13291
- selected: getValues("connectionType"),
13292
- disable: false,
13293
- option: connectionTypeList,
13294
- errorStyle: localFormState.touched.connectionType && errors !== null && errors !== void 0 && (_errors$connectionTyp = errors.connectionType) !== null && _errors$connectionTyp !== void 0 && _errors$connectionTyp.message ? true : false,
13295
- select: e => {
13296
- props.onChange(e);
13297
- },
13298
- optionKey: "i18nKey",
13299
- onBlur: props.onBlur,
13300
- t: t
13301
- });
13302
- }
13303
- })), (formValue === null || formValue === void 0 ? void 0 : (_formValue$connection = formValue.connectionType) === null || _formValue$connection === void 0 ? void 0 : _formValue$connection.code) === "Temporary" && /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_TEMPORARY_TYPE")}*`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13304
- control: control,
13305
- name: "temporaryType",
13306
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.temporaryType) || "",
13307
- rules: {
13308
- required: t("REQUIRED_FIELD")
13309
- },
13310
- isMandatory: true,
13311
- render: props => {
13312
- var _errors$temporaryType;
13313
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
13314
- className: "form-field",
13315
- selected: getValues("temporaryType"),
13316
- disable: false,
13317
- option: temporaryTypeList,
13318
- errorStyle: localFormState.touched.temporaryType && errors !== null && errors !== void 0 && (_errors$temporaryType = errors.temporaryType) !== null && _errors$temporaryType !== void 0 && _errors$temporaryType.message ? true : false,
13319
- select: e => {
13320
- props.onChange(e);
13321
- },
13322
- optionKey: "i18nKey",
13323
- onBlur: props.onBlur,
13324
- t: t
13325
- });
13326
- }
13327
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_WATER_DEMAND_TYPE")}*`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13328
- control: control,
13329
- name: "waterDemandType",
13330
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterDemandType) || "",
13331
- rules: {
13332
- required: t("REQUIRED_FIELD")
13333
- },
13334
- isMandatory: true,
13335
- render: props => {
13336
- var _errors$waterDemandTy;
13337
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
13338
- className: "form-field",
13339
- selected: getValues("waterDemandType"),
13340
- disable: false,
13341
- option: waterDemandTypeList,
13342
- errorStyle: localFormState.touched.waterDemandType && errors !== null && errors !== void 0 && (_errors$waterDemandTy = errors.waterDemandType) !== null && _errors$waterDemandTy !== void 0 && _errors$waterDemandTy.message ? true : false,
13343
- select: e => {
13344
- props.onChange(e);
13345
- },
13346
- optionKey: "i18nKey",
13347
- onBlur: props.onBlur,
13348
- t: t
13349
- });
13350
- }
13351
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_APPLICANT_TYPE")}*`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13299
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_APPLICANT_TYPE")}`, /*#__PURE__*/React__default.createElement("span", {
13300
+ className: "check-page-link-button"
13301
+ }, "*")), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13352
13302
  control: control,
13353
13303
  name: "applicantType",
13354
13304
  defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.applicantType) || "",
@@ -13369,187 +13319,11 @@ const ConnectionDetails = _props => {
13369
13319
  },
13370
13320
  optionKey: "i18nKey",
13371
13321
  onBlur: props.onBlur,
13372
- t: t
13373
- });
13374
- }
13375
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${(formValue === null || formValue === void 0 ? void 0 : (_formValue$categoryTy = formValue.categoryType) === null || _formValue$categoryTy === void 0 ? void 0 : _formValue$categoryTy.code) === "NON_DOMESTIC" || (formValue === null || formValue === void 0 ? void 0 : (_formValue$categoryTy2 = formValue.categoryType) === null || _formValue$categoryTy2 === void 0 ? void 0 : _formValue$categoryTy2.name) === "Non-Domestic" ? t("WS_NON_DOMESTIC_TYPE") : t("WS_DOMESTIC_TYPE")}*`), /*#__PURE__*/React__default.createElement("div", {
13376
- className: "field"
13377
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13378
- control: control,
13379
- name: "domesticType",
13380
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.domesticType) || "",
13381
- rules: {
13382
- required: t("REQUIRED_FIELD")
13383
- },
13384
- isMandatory: true,
13385
- render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
13386
- className: "form-field",
13387
- style: {
13388
- display: "flex",
13389
- gap: "2rem",
13390
- alignItems: "center"
13391
- },
13392
- options: [{
13393
- i18nKey: "WS_DOMESTIC_TYPE_DOMESTIC",
13394
- code: "INDIVIDUAL"
13395
- }, {
13396
- i18nKey: "WS_DOMESTIC_TYPE_NON_DOMESTIC",
13397
- code: "ORGANIZATION"
13398
- }],
13399
- optionsKey: "i18nKey",
13400
- selectedOption: getValues("domesticType"),
13401
- onSelect: e => {
13402
- props.onChange(e);
13403
- },
13404
- t: t,
13405
- isDependent: true
13406
- })
13407
- }))), (formValue === null || formValue === void 0 ? void 0 : (_formValue$domesticTy = formValue.domesticType) === null || _formValue$domesticTy === void 0 ? void 0 : _formValue$domesticTy.code) === "ORGANIZATION" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_DEPARTMENT_TYPE")}*`), /*#__PURE__*/React__default.createElement("div", {
13408
- className: "field"
13409
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13410
- control: control,
13411
- name: "departmentType",
13412
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.departmentType) || {
13413
- i18nKey: "WS_DEPARTMENT_TYPE_GOVERNMENT",
13414
- code: "GOVERNMENT"
13415
- },
13416
- rules: {
13417
- required: t("REQUIRED_FIELD")
13418
- },
13419
- isMandatory: true,
13420
- render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
13421
- className: "form-field",
13422
- style: {
13423
- display: "flex",
13424
- gap: "2rem",
13425
- alignItems: "center"
13426
- },
13427
- options: [{
13428
- i18nKey: "WS_DEPARTMENT_TYPE_GOVERNMENT",
13429
- code: "GOVERNMENT"
13430
- }, {
13431
- i18nKey: "WS_DEPARTMENT_TYPE_NON_GOVERNMENT",
13432
- code: "NON_GOVERNMENT"
13433
- }],
13434
- optionsKey: "i18nKey",
13435
- selectedOption: getValues("departmentType"),
13436
- onSelect: e => {
13437
- props.onChange(e);
13438
- },
13439
- t: t,
13440
- isDependent: true
13441
- })
13442
- }))), /*#__PURE__*/React__default.createElement("div", {
13443
- style: {
13444
- color: "#3257F2",
13445
- fontWeight: "700",
13446
- fontSize: "1.5rem",
13447
- gridColumn: "span 2"
13448
- }
13449
- }, t("WS_DEPARTMENT_ORGANIZATION_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_ORGANIZATION_DEPARTMENT_NAME")}*`), /*#__PURE__*/React__default.createElement("div", {
13450
- className: "field"
13451
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13452
- control: control,
13453
- name: "institutionName",
13454
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.institutionName) || "",
13455
- rules: {
13456
- required: t("REQUIRED_FIELD")
13457
- },
13458
- isMandatory: true,
13459
- render: props => {
13460
- var _errors$institutionNa;
13461
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
13462
- value: props.value,
13463
- placeholder: t("WS_ORGANIZATION_DEPARTMENT_NAME_PLACEHOLDER"),
13464
- autoFocus: focusIndex.index === (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key) && focusIndex.type === "institutionName",
13465
- errorStyle: localFormState.touched.institutionName && errors !== null && errors !== void 0 && (_errors$institutionNa = errors.institutionName) !== null && _errors$institutionNa !== void 0 && _errors$institutionNa.message ? true : false,
13466
- onChange: e => {
13467
- props.onChange(e.target.value);
13468
- setFocusIndex({
13469
- index: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key,
13470
- type: "institutionName"
13471
- });
13472
- },
13473
- onBlur: props.onBlur
13474
- });
13475
- }
13476
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_NATURE_OF_WORK")}*`), /*#__PURE__*/React__default.createElement("div", {
13477
- className: "field"
13478
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13479
- control: control,
13480
- name: "natureOfWork",
13481
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.natureOfWork) || "",
13482
- rules: {
13483
- required: t("REQUIRED_FIELD")
13484
- },
13485
- isMandatory: true,
13486
- render: props => {
13487
- var _errors$natureOfWork;
13488
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
13489
- value: props.value,
13490
- placeholder: t("WS_NATURE_OF_WORK_PLACEHOLDER"),
13491
- autoFocus: focusIndex.index === (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key) && focusIndex.type === "natureOfWork",
13492
- errorStyle: localFormState.touched.natureOfWork && errors !== null && errors !== void 0 && (_errors$natureOfWork = errors.natureOfWork) !== null && _errors$natureOfWork !== void 0 && _errors$natureOfWork.message ? true : false,
13493
- onChange: e => {
13494
- props.onChange(e.target.value);
13495
- setFocusIndex({
13496
- index: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key,
13497
- type: "natureOfWork"
13498
- });
13499
- },
13500
- onBlur: props.onBlur
13322
+ t: t,
13323
+ placeholder: t("WS_APPLICANT_TYPE_PLACEHOLDER")
13501
13324
  });
13502
13325
  }
13503
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_ORG_DEPT_DOCUMENT")}*`), /*#__PURE__*/React__default.createElement("div", {
13504
- className: "field",
13505
- style: {
13506
- display: "flex",
13507
- gap: "10px",
13508
- alignItems: "center"
13509
- }
13510
- }, /*#__PURE__*/React__default.createElement("div", {
13511
- style: {
13512
- flex: 1
13513
- }
13514
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13515
- control: control,
13516
- name: "orgDeptDocument",
13517
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument) || "",
13518
- rules: {
13519
- required: t("REQUIRED_FIELD")
13520
- },
13521
- isMandatory: true,
13522
- render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
13523
- id: "orgDeptDocument",
13524
- onUpload: handleSelectFile,
13525
- onDelete: () => {
13526
- setUploadedFile(null);
13527
- setFile(null);
13528
- props.onChange(null);
13529
- },
13530
- message: uploadedFile ? `1 ${t("WS_ACTION_FILEUPLOADED")}` : t("WS_ACTION_NO_FILEUPLOADED"),
13531
- accept: "image/*, .pdf",
13532
- uploadedFiles: uploadedFile && !file ? [[(connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocumentName) || "Document", {
13533
- fileStoreId: uploadedFile
13534
- }]] : undefined,
13535
- removeTargetedFile: () => {
13536
- setUploadedFile(null);
13537
- setFile(null);
13538
- props.onChange(null);
13539
- }
13540
- })
13541
- })), uploadedFile && /*#__PURE__*/React__default.createElement("div", {
13542
- onClick: viewDocument,
13543
- style: {
13544
- cursor: "pointer"
13545
- }
13546
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)))), fileUploadError && /*#__PURE__*/React__default.createElement("div", {
13547
- style: {
13548
- color: "red",
13549
- fontSize: "12px",
13550
- marginTop: "4px"
13551
- }
13552
- }, fileUploadError))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
13326
+ }))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
13553
13327
  open: showDocModal,
13554
13328
  headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
13555
13329
  headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
@@ -14259,7 +14033,7 @@ const WSConnectionHolderDetails = _ref => {
14259
14033
  }, commonProps))));
14260
14034
  };
14261
14035
  const ConnectionDetails$1 = _props => {
14262
- var _errors$name2, _errors$name3, _errors$middleName2, _errors$middleName3, _errors$lastName2, _errors$lastName3, _errors$gender2, _errors$gender3, _errors$guardian2, _errors$guardian3, _errors$relationship2, _errors$relationship3, _errors$mobileNumber2, _errors$mobileNumber3, _errors$watsAppMobile2, _errors$watsAppMobile3, _errors$emailId2, _errors$emailId3;
14036
+ var _errors$name2, _errors$name3, _errors$middleName2, _errors$middleName3, _errors$lastName2, _errors$lastName3, _errors$gender2, _errors$gender3, _errors$mobileNumber2, _errors$mobileNumber3, _errors$watsAppMobile2, _errors$watsAppMobile3, _errors$emailId2, _errors$emailId3;
14263
14037
  const {
14264
14038
  connectionHolderDetail,
14265
14039
  focusIndex,
@@ -14440,7 +14214,9 @@ const ConnectionDetails$1 = _props => {
14440
14214
  defaultOpen: true
14441
14215
  }, !sameAsOwnerDetails ? /*#__PURE__*/React__default.createElement("div", {
14442
14216
  className: "formcomposer-section-grid"
14443
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_OWN_DETAIL_NAME")}*`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
14217
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_OWN_DETAIL_NAME")}`, " ", /*#__PURE__*/React__default.createElement("span", {
14218
+ className: "check-page-link-button"
14219
+ }, "*")), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
14444
14220
  control: control,
14445
14221
  name: "name",
14446
14222
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.name,
@@ -14466,7 +14242,8 @@ const ConnectionDetails$1 = _props => {
14466
14242
  labelStyle: {
14467
14243
  marginTop: "unset"
14468
14244
  },
14469
- onBlur: props.onBlur
14245
+ onBlur: props.onBlur,
14246
+ placeholder: t("WS_OWN_DETAIL_NAME")
14470
14247
  }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14471
14248
  unmaskField: e => {
14472
14249
  setName(e);
@@ -14513,7 +14290,8 @@ const ConnectionDetails$1 = _props => {
14513
14290
  labelStyle: {
14514
14291
  marginTop: "unset"
14515
14292
  },
14516
- onBlur: props.onBlur
14293
+ onBlur: props.onBlur,
14294
+ placeholder: t("WS_OWN_DETAIL_MIDDLE_NAME")
14517
14295
  }));
14518
14296
  }
14519
14297
  })), localFormState.touched.middleName && (errors === null || errors === void 0 ? void 0 : (_errors$middleName2 = errors.middleName) === null || _errors$middleName2 === void 0 ? void 0 : _errors$middleName2.message) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
@@ -14539,12 +14317,15 @@ const ConnectionDetails$1 = _props => {
14539
14317
  labelStyle: {
14540
14318
  marginTop: "unset"
14541
14319
  },
14542
- onBlur: props.onBlur
14320
+ onBlur: props.onBlur,
14321
+ placeholder: t("WS_OWN_DETAIL_LAST_NAME")
14543
14322
  }));
14544
14323
  }
14545
14324
  })), localFormState.touched.lastName && (errors === null || errors === void 0 ? void 0 : (_errors$lastName2 = errors.lastName) === null || _errors$lastName2 === void 0 ? void 0 : _errors$lastName2.message) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
14546
14325
  style: errorStyle
14547
- }, errors === null || errors === void 0 ? void 0 : (_errors$lastName3 = errors.lastName) === null || _errors$lastName3 === void 0 ? void 0 : _errors$lastName3.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")}*`), /*#__PURE__*/React__default.createElement("div", {
14326
+ }, errors === null || errors === void 0 ? void 0 : (_errors$lastName3 = errors.lastName) === null || _errors$lastName3 === void 0 ? void 0 : _errors$lastName3.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")}`, " ", /*#__PURE__*/React__default.createElement("span", {
14327
+ className: "check-page-link-button"
14328
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
14548
14329
  className: "field"
14549
14330
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
14550
14331
  control: control,
@@ -14568,7 +14349,8 @@ const ConnectionDetails$1 = _props => {
14568
14349
  },
14569
14350
  optionKey: "i18nKey",
14570
14351
  onBlur: props.onBlur,
14571
- t: t
14352
+ t: t,
14353
+ placeholder: t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")
14572
14354
  }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14573
14355
  unmaskField: e => {
14574
14356
  const r = {
@@ -14599,116 +14381,9 @@ const ConnectionDetails$1 = _props => {
14599
14381
  }
14600
14382
  }))), localFormState.touched.gender && (errors === null || errors === void 0 ? void 0 : (_errors$gender2 = errors.gender) === null || _errors$gender2 === void 0 ? void 0 : _errors$gender2.message) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
14601
14383
  style: errorStyle
14602
- }, errors === null || errors === void 0 ? void 0 : (_errors$gender3 = errors.gender) === null || _errors$gender3 === void 0 ? void 0 : _errors$gender3.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_OWN_DETAIL_GUARDIAN_LABEL")}*`), /*#__PURE__*/React__default.createElement("div", {
14603
- className: "field"
14604
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
14605
- control: control,
14606
- name: "guardian",
14607
- defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.guardian,
14608
- rules: {
14609
- validate: e => e && getPattern("Name").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14610
- required: t("REQUIRED_FIELD")
14611
- },
14612
- isMandatory: true,
14613
- render: props => {
14614
- var _errors$guardian, _getValues2, _formData$ConnectionD11, _formData$ConnectionD12, _formData$cpt3, _formData$cpt3$detail, _formData$ConnectionD13, _formData$ConnectionD14, _formData$ConnectionD15, _formData$ConnectionD16;
14615
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
14616
- value: getValues("guardian") || "",
14617
- autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "guardian",
14618
- errorStyle: localFormState.touched.guardian && errors !== null && errors !== void 0 && (_errors$guardian = errors.guardian) !== null && _errors$guardian !== void 0 && _errors$guardian.message ? true : false,
14619
- onChange: e => {
14620
- setGuardian(e.target.value);
14621
- props.onChange(e.target.value);
14622
- setFocusIndex({
14623
- index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14624
- type: "guardian"
14625
- });
14626
- },
14627
- labelStyle: {
14628
- marginTop: "unset"
14629
- },
14630
- onBlur: props.onBlur
14631
- }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14632
- unmaskField: e => {
14633
- setGuardian(e);
14634
- props.onChange(e);
14635
- },
14636
- iseyevisible: (_getValues2 = getValues("guardian")) !== null && _getValues2 !== void 0 && _getValues2.includes("*") ? true : false,
14637
- privacy: {
14638
- uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
14639
- fieldName: "fatherOrHusbandName",
14640
- model: "WnSConnectionOwner",
14641
- loadData: {
14642
- serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD11 = formData.ConnectionDetails) !== null && _formData$ConnectionD11 !== void 0 && (_formData$ConnectionD12 = _formData$ConnectionD11[0]) !== null && _formData$ConnectionD12 !== void 0 && _formData$ConnectionD12.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
14643
- requestBody: {},
14644
- requestParam: {
14645
- tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt3 = formData.cpt) === null || _formData$cpt3 === void 0 ? void 0 : (_formData$cpt3$detail = _formData$cpt3.details) === null || _formData$cpt3$detail === void 0 ? void 0 : _formData$cpt3$detail.tenantId,
14646
- applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD13 = formData.ConnectionDetails) === null || _formData$ConnectionD13 === void 0 ? void 0 : (_formData$ConnectionD14 = _formData$ConnectionD13[0]) === null || _formData$ConnectionD14 === void 0 ? void 0 : _formData$ConnectionD14.applicationNo
14647
- },
14648
- jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD15 = formData.ConnectionDetails) !== null && _formData$ConnectionD15 !== void 0 && (_formData$ConnectionD16 = _formData$ConnectionD15[0]) !== null && _formData$ConnectionD16 !== void 0 && _formData$ConnectionD16.water ? "WaterConnection[0].connectionHolders[0].fatherOrHusbandName" : "SewerageConnections[0].connectionHolders[0].fatherOrHusbandName",
14649
- isArray: false
14650
- }
14651
- }
14652
- })));
14653
- }
14654
- }))), localFormState.touched.guardian && (errors === null || errors === void 0 ? void 0 : (_errors$guardian2 = errors.guardian) === null || _errors$guardian2 === void 0 ? void 0 : _errors$guardian2.message) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
14655
- style: errorStyle
14656
- }, errors === null || errors === void 0 ? void 0 : (_errors$guardian3 = errors.guardian) === null || _errors$guardian3 === void 0 ? void 0 : _errors$guardian3.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_CONN_HOLDER_OWN_DETAIL_RELATION_LABEL")}*`), /*#__PURE__*/React__default.createElement("div", {
14657
- className: "field"
14658
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
14659
- control: control,
14660
- name: "relationship",
14661
- defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.relationship,
14662
- rules: {
14663
- required: t("REQUIRED_FIELD")
14664
- },
14665
- isMandatory: true,
14666
- render: props => {
14667
- var _errors$relationship, _relationship$i18nKey, _formData$ConnectionD17, _formData$ConnectionD18, _formData$cpt4, _formData$cpt4$detail, _formData$ConnectionD19, _formData$ConnectionD20, _formData$ConnectionD21, _formData$ConnectionD22;
14668
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
14669
- className: "form-field",
14670
- selected: getValues("relationship"),
14671
- disable: false,
14672
- option: GuardianOptions,
14673
- errorStyle: localFormState.touched.relationship && errors !== null && errors !== void 0 && (_errors$relationship = errors.relationship) !== null && _errors$relationship !== void 0 && _errors$relationship.message ? true : false,
14674
- select: e => {
14675
- setRelationship(e);
14676
- props.onChange(e);
14677
- },
14678
- optionKey: "i18nKey",
14679
- onBlur: props.onBlur,
14680
- t: t
14681
- }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14682
- unmaskField: e => {
14683
- const r = {
14684
- code: e,
14685
- i18nKey: `COMMON_MASTERS_OWNERTYPE_${e}`,
14686
- name: e
14687
- };
14688
- setRelationship(r);
14689
- props.onChange(r);
14690
- },
14691
- iseyevisible: relationship !== null && relationship !== void 0 && (_relationship$i18nKey = relationship.i18nKey) !== null && _relationship$i18nKey !== void 0 && _relationship$i18nKey.includes("*") ? true : false,
14692
- privacy: {
14693
- uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
14694
- fieldName: "relationship",
14695
- model: "WnSConnection",
14696
- loadData: {
14697
- serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD17 = formData.ConnectionDetails) !== null && _formData$ConnectionD17 !== void 0 && (_formData$ConnectionD18 = _formData$ConnectionD17[0]) !== null && _formData$ConnectionD18 !== void 0 && _formData$ConnectionD18.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
14698
- requestBody: {},
14699
- requestParam: {
14700
- tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt4 = formData.cpt) === null || _formData$cpt4 === void 0 ? void 0 : (_formData$cpt4$detail = _formData$cpt4.details) === null || _formData$cpt4$detail === void 0 ? void 0 : _formData$cpt4$detail.tenantId,
14701
- applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD19 = formData.ConnectionDetails) === null || _formData$ConnectionD19 === void 0 ? void 0 : (_formData$ConnectionD20 = _formData$ConnectionD19[0]) === null || _formData$ConnectionD20 === void 0 ? void 0 : _formData$ConnectionD20.applicationNo
14702
- },
14703
- jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD21 = formData.ConnectionDetails) !== null && _formData$ConnectionD21 !== void 0 && (_formData$ConnectionD22 = _formData$ConnectionD21[0]) !== null && _formData$ConnectionD22 !== void 0 && _formData$ConnectionD22.water ? "WaterConnection[0].connectionHolders[0].relationship" : "SewerageConnections[0].connectionHolders[0].relationship",
14704
- isArray: false
14705
- }
14706
- }
14707
- })));
14708
- }
14709
- }))), localFormState.touched.relationship && (errors === null || errors === void 0 ? void 0 : (_errors$relationship2 = errors.relationship) === null || _errors$relationship2 === void 0 ? void 0 : _errors$relationship2.message) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
14710
- style: errorStyle
14711
- }, errors === null || errors === void 0 ? void 0 : (_errors$relationship3 = errors.relationship) === null || _errors$relationship3 === void 0 ? void 0 : _errors$relationship3.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("CORE_COMMON_MOBILE_NUMBER")}*`), /*#__PURE__*/React__default.createElement("div", {
14384
+ }, errors === null || errors === void 0 ? void 0 : (_errors$gender3 = errors.gender) === null || _errors$gender3 === void 0 ? void 0 : _errors$gender3.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("CORE_COMMON_MOBILE_NUMBER")}`, " ", /*#__PURE__*/React__default.createElement("span", {
14385
+ className: "check-page-link-button"
14386
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
14712
14387
  className: "field"
14713
14388
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
14714
14389
  control: control,
@@ -14720,7 +14395,7 @@ const ConnectionDetails$1 = _props => {
14720
14395
  },
14721
14396
  isMandatory: true,
14722
14397
  render: props => {
14723
- var _errors$mobileNumber, _formData$ConnectionD23, _formData$ConnectionD24, _formData$cpt5, _formData$cpt5$detail, _formData$ConnectionD25, _formData$ConnectionD26, _formData$ConnectionD27, _formData$ConnectionD28;
14398
+ var _errors$mobileNumber, _formData$ConnectionD11, _formData$ConnectionD12, _formData$cpt3, _formData$cpt3$detail, _formData$ConnectionD13, _formData$ConnectionD14, _formData$ConnectionD15, _formData$ConnectionD16;
14724
14399
  const mobileValue = getValues("mobileNumber");
14725
14400
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
14726
14401
  name: "mobileNumber",
@@ -14740,7 +14415,8 @@ const ConnectionDetails$1 = _props => {
14740
14415
  }
14741
14416
  },
14742
14417
  onBlur: props.onBlur,
14743
- hideSpan: false
14418
+ hideSpan: false,
14419
+ placeholder: t("CORE_COMMON_MOBILE_NUMBER")
14744
14420
  }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14745
14421
  value: mobileValue,
14746
14422
  unmaskField: e => {
@@ -14752,13 +14428,13 @@ const ConnectionDetails$1 = _props => {
14752
14428
  fieldName: "connectionHoldersMobileNumber",
14753
14429
  model: "WnSConnectionOwner",
14754
14430
  loadData: {
14755
- serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD23 = formData.ConnectionDetails) !== null && _formData$ConnectionD23 !== void 0 && (_formData$ConnectionD24 = _formData$ConnectionD23[0]) !== null && _formData$ConnectionD24 !== void 0 && _formData$ConnectionD24.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
14431
+ serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD11 = formData.ConnectionDetails) !== null && _formData$ConnectionD11 !== void 0 && (_formData$ConnectionD12 = _formData$ConnectionD11[0]) !== null && _formData$ConnectionD12 !== void 0 && _formData$ConnectionD12.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
14756
14432
  requestBody: {},
14757
14433
  requestParam: {
14758
- tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt5 = formData.cpt) === null || _formData$cpt5 === void 0 ? void 0 : (_formData$cpt5$detail = _formData$cpt5.details) === null || _formData$cpt5$detail === void 0 ? void 0 : _formData$cpt5$detail.tenantId,
14759
- applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD25 = formData.ConnectionDetails) === null || _formData$ConnectionD25 === void 0 ? void 0 : (_formData$ConnectionD26 = _formData$ConnectionD25[0]) === null || _formData$ConnectionD26 === void 0 ? void 0 : _formData$ConnectionD26.applicationNo
14434
+ tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt3 = formData.cpt) === null || _formData$cpt3 === void 0 ? void 0 : (_formData$cpt3$detail = _formData$cpt3.details) === null || _formData$cpt3$detail === void 0 ? void 0 : _formData$cpt3$detail.tenantId,
14435
+ applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD13 = formData.ConnectionDetails) === null || _formData$ConnectionD13 === void 0 ? void 0 : (_formData$ConnectionD14 = _formData$ConnectionD13[0]) === null || _formData$ConnectionD14 === void 0 ? void 0 : _formData$ConnectionD14.applicationNo
14760
14436
  },
14761
- jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD27 = formData.ConnectionDetails) !== null && _formData$ConnectionD27 !== void 0 && (_formData$ConnectionD28 = _formData$ConnectionD27[0]) !== null && _formData$ConnectionD28 !== void 0 && _formData$ConnectionD28.water ? "WaterConnection[0].connectionHolders[0].mobileNumber" : "SewerageConnections[0].connectionHolders[0].mobileNumber",
14437
+ jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD15 = formData.ConnectionDetails) !== null && _formData$ConnectionD15 !== void 0 && (_formData$ConnectionD16 = _formData$ConnectionD15[0]) !== null && _formData$ConnectionD16 !== void 0 && _formData$ConnectionD16.water ? "WaterConnection[0].connectionHolders[0].mobileNumber" : "SewerageConnections[0].connectionHolders[0].mobileNumber",
14762
14438
  isArray: false
14763
14439
  }
14764
14440
  }
@@ -14778,7 +14454,7 @@ const ConnectionDetails$1 = _props => {
14778
14454
  },
14779
14455
  isMandatory: true,
14780
14456
  render: props => {
14781
- var _errors$watsAppMobile, _formData$ConnectionD29, _formData$ConnectionD30, _formData$cpt6, _formData$cpt6$detail, _formData$ConnectionD31, _formData$ConnectionD32, _formData$ConnectionD33, _formData$ConnectionD34;
14457
+ var _errors$watsAppMobile, _formData$ConnectionD17, _formData$ConnectionD18, _formData$cpt4, _formData$cpt4$detail, _formData$ConnectionD19, _formData$ConnectionD20, _formData$ConnectionD21, _formData$ConnectionD22;
14782
14458
  const watsAppmobileValue = getValues("watsAppMobileNumber");
14783
14459
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
14784
14460
  name: "watsAppMobileNumber",
@@ -14795,6 +14471,7 @@ const ConnectionDetails$1 = _props => {
14795
14471
  },
14796
14472
  onBlur: props.onBlur,
14797
14473
  hideSpan: false,
14474
+ placeholder: t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER"),
14798
14475
  disable: isWatsappSameAsMobile
14799
14476
  }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14800
14477
  value: watsAppmobileValue,
@@ -14807,13 +14484,13 @@ const ConnectionDetails$1 = _props => {
14807
14484
  fieldName: "connectionHoldersMobileNumber",
14808
14485
  model: "WnSConnectionOwner",
14809
14486
  loadData: {
14810
- serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD29 = formData.ConnectionDetails) !== null && _formData$ConnectionD29 !== void 0 && (_formData$ConnectionD30 = _formData$ConnectionD29[0]) !== null && _formData$ConnectionD30 !== void 0 && _formData$ConnectionD30.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
14487
+ serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD17 = formData.ConnectionDetails) !== null && _formData$ConnectionD17 !== void 0 && (_formData$ConnectionD18 = _formData$ConnectionD17[0]) !== null && _formData$ConnectionD18 !== void 0 && _formData$ConnectionD18.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
14811
14488
  requestBody: {},
14812
14489
  requestParam: {
14813
- tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt6 = formData.cpt) === null || _formData$cpt6 === void 0 ? void 0 : (_formData$cpt6$detail = _formData$cpt6.details) === null || _formData$cpt6$detail === void 0 ? void 0 : _formData$cpt6$detail.tenantId,
14814
- applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD31 = formData.ConnectionDetails) === null || _formData$ConnectionD31 === void 0 ? void 0 : (_formData$ConnectionD32 = _formData$ConnectionD31[0]) === null || _formData$ConnectionD32 === void 0 ? void 0 : _formData$ConnectionD32.applicationNo
14490
+ tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt4 = formData.cpt) === null || _formData$cpt4 === void 0 ? void 0 : (_formData$cpt4$detail = _formData$cpt4.details) === null || _formData$cpt4$detail === void 0 ? void 0 : _formData$cpt4$detail.tenantId,
14491
+ applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD19 = formData.ConnectionDetails) === null || _formData$ConnectionD19 === void 0 ? void 0 : (_formData$ConnectionD20 = _formData$ConnectionD19[0]) === null || _formData$ConnectionD20 === void 0 ? void 0 : _formData$ConnectionD20.applicationNo
14815
14492
  },
14816
- jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD33 = formData.ConnectionDetails) !== null && _formData$ConnectionD33 !== void 0 && (_formData$ConnectionD34 = _formData$ConnectionD33[0]) !== null && _formData$ConnectionD34 !== void 0 && _formData$ConnectionD34.water ? "WaterConnection[0].connectionHolders[0].mobileNumber" : "SewerageConnections[0].connectionHolders[0].mobileNumber",
14493
+ jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD21 = formData.ConnectionDetails) !== null && _formData$ConnectionD21 !== void 0 && (_formData$ConnectionD22 = _formData$ConnectionD21[0]) !== null && _formData$ConnectionD22 !== void 0 && _formData$ConnectionD22.water ? "WaterConnection[0].connectionHolders[0].mobileNumber" : "SewerageConnections[0].connectionHolders[0].mobileNumber",
14817
14494
  isArray: false
14818
14495
  }
14819
14496
  }
@@ -14866,7 +14543,7 @@ const ConnectionDetails$1 = _props => {
14866
14543
  },
14867
14544
  isMandatory: false,
14868
14545
  render: props => {
14869
- var _errors$emailId, _getValues3, _formData$ConnectionD35, _formData$ConnectionD36, _formData$cpt7, _formData$cpt7$detail, _formData$ConnectionD37, _formData$ConnectionD38, _formData$ConnectionD39, _formData$ConnectionD40;
14546
+ var _errors$emailId, _getValues2, _formData$ConnectionD23, _formData$ConnectionD24, _formData$cpt5, _formData$cpt5$detail, _formData$ConnectionD25, _formData$ConnectionD26, _formData$ConnectionD27, _formData$ConnectionD28;
14870
14547
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
14871
14548
  value: getValues("emailId") || "",
14872
14549
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "emailId",
@@ -14883,25 +14560,26 @@ const ConnectionDetails$1 = _props => {
14883
14560
  labelStyle: {
14884
14561
  marginTop: "unset"
14885
14562
  },
14886
- onBlur: props.onBlur
14563
+ onBlur: props.onBlur,
14564
+ placeholder: t("WS_EMAIL_ID")
14887
14565
  }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14888
14566
  unmaskField: e => {
14889
14567
  setEmailId(e);
14890
14568
  props.onChange(e);
14891
14569
  },
14892
- iseyevisible: (_getValues3 = getValues("emailId")) !== null && _getValues3 !== void 0 && _getValues3.includes("*") ? true : false,
14570
+ iseyevisible: (_getValues2 = getValues("emailId")) !== null && _getValues2 !== void 0 && _getValues2.includes("*") ? true : false,
14893
14571
  privacy: {
14894
14572
  uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
14895
14573
  fieldName: "emailId",
14896
14574
  model: "WnSConnectionOwner",
14897
14575
  loadData: {
14898
- serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD35 = formData.ConnectionDetails) !== null && _formData$ConnectionD35 !== void 0 && (_formData$ConnectionD36 = _formData$ConnectionD35[0]) !== null && _formData$ConnectionD36 !== void 0 && _formData$ConnectionD36.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
14576
+ serviceName: formData !== null && formData !== void 0 && (_formData$ConnectionD23 = formData.ConnectionDetails) !== null && _formData$ConnectionD23 !== void 0 && (_formData$ConnectionD24 = _formData$ConnectionD23[0]) !== null && _formData$ConnectionD24 !== void 0 && _formData$ConnectionD24.water ? "/ws-services/wc/_search" : "/sw-services/swc/_search",
14899
14577
  requestBody: {},
14900
14578
  requestParam: {
14901
- tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt7 = formData.cpt) === null || _formData$cpt7 === void 0 ? void 0 : (_formData$cpt7$detail = _formData$cpt7.details) === null || _formData$cpt7$detail === void 0 ? void 0 : _formData$cpt7$detail.tenantId,
14902
- applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD37 = formData.ConnectionDetails) === null || _formData$ConnectionD37 === void 0 ? void 0 : (_formData$ConnectionD38 = _formData$ConnectionD37[0]) === null || _formData$ConnectionD38 === void 0 ? void 0 : _formData$ConnectionD38.applicationNo
14579
+ tenantId: formData === null || formData === void 0 ? void 0 : (_formData$cpt5 = formData.cpt) === null || _formData$cpt5 === void 0 ? void 0 : (_formData$cpt5$detail = _formData$cpt5.details) === null || _formData$cpt5$detail === void 0 ? void 0 : _formData$cpt5$detail.tenantId,
14580
+ applicationNumber: formData === null || formData === void 0 ? void 0 : (_formData$ConnectionD25 = formData.ConnectionDetails) === null || _formData$ConnectionD25 === void 0 ? void 0 : (_formData$ConnectionD26 = _formData$ConnectionD25[0]) === null || _formData$ConnectionD26 === void 0 ? void 0 : _formData$ConnectionD26.applicationNo
14903
14581
  },
14904
- jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD39 = formData.ConnectionDetails) !== null && _formData$ConnectionD39 !== void 0 && (_formData$ConnectionD40 = _formData$ConnectionD39[0]) !== null && _formData$ConnectionD40 !== void 0 && _formData$ConnectionD40.water ? "WaterConnection[0].connectionHolders[0].emailId" : "SewerageConnections[0].connectionHolders[0].emailId",
14582
+ jsonPath: formData !== null && formData !== void 0 && (_formData$ConnectionD27 = formData.ConnectionDetails) !== null && _formData$ConnectionD27 !== void 0 && (_formData$ConnectionD28 = _formData$ConnectionD27[0]) !== null && _formData$ConnectionD28 !== void 0 && _formData$ConnectionD28.water ? "WaterConnection[0].connectionHolders[0].emailId" : "SewerageConnections[0].connectionHolders[0].emailId",
14905
14583
  isArray: false
14906
14584
  }
14907
14585
  }
@@ -18793,7 +18471,7 @@ const removeDuplicateOtherDocuments = function (documentList) {
18793
18471
  });
18794
18472
  };
18795
18473
  const WSDocumentsEmployee = _ref => {
18796
- var _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData3, _formData$ConnectionD, _formData$ConnectionD2, _formData$ConnectionD3;
18474
+ var _applicationDetailsDa, _applicationDetailsDa2, _wsDocs$wsDocsData3, _wsDocs$wsDocsData3$f, _formData$ConnectionD, _formData$ConnectionD2, _formData$ConnectionD3;
18797
18475
  let {
18798
18476
  t,
18799
18477
  config,
@@ -18848,9 +18526,9 @@ const WSDocumentsEmployee = _ref => {
18848
18526
  }
18849
18527
  };
18850
18528
  React.useEffect(() => {
18851
- var _wsDocs$wsDocsData;
18529
+ var _wsDocs$wsDocsData, _wsDocs$wsDocsData$fi;
18852
18530
  let count = 0;
18853
- wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData === void 0 ? void 0 : _wsDocs$wsDocsData.map(doc => {
18531
+ wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData === void 0 ? void 0 : (_wsDocs$wsDocsData$fi = _wsDocs$wsDocsData.filter(doc => doc.code !== "OWNER.APPLICANTPHOTO")) === null || _wsDocs$wsDocsData$fi === void 0 ? void 0 : _wsDocs$wsDocsData$fi.map(doc => {
18854
18532
  let isRequired = false;
18855
18533
  documents.map(data => {
18856
18534
  if (doc.required && data !== null && data !== void 0 && data.documentType.includes(doc.code)) isRequired = true;
@@ -18870,8 +18548,8 @@ const WSDocumentsEmployee = _ref => {
18870
18548
  var _applicationDetailsDa3;
18871
18549
  const documentsData = (applicationDetailsData === null || applicationDetailsData === void 0 ? void 0 : (_applicationDetailsDa3 = applicationDetailsData.applicationData) === null || _applicationDetailsDa3 === void 0 ? void 0 : _applicationDetailsDa3.documents) || [];
18872
18550
  documentsData === null || documentsData === void 0 ? void 0 : documentsData.map(documentData => {
18873
- var _wsDocs$wsDocsData2;
18874
- wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData2 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData2 === void 0 ? void 0 : _wsDocs$wsDocsData2.forEach(docData => {
18551
+ var _wsDocs$wsDocsData2, _wsDocs$wsDocsData2$f;
18552
+ wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData2 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData2 === void 0 ? void 0 : (_wsDocs$wsDocsData2$f = _wsDocs$wsDocsData2.filter(doc => doc.code !== "OWNER.APPLICANTPHOTO")) === null || _wsDocs$wsDocsData2$f === void 0 ? void 0 : _wsDocs$wsDocsData2$f.forEach(docData => {
18875
18553
  var _docData$code, _docData$code2, _docData$code3, _docData$code4, _documentData$documen, _documentData$documen2, _documentData$documen3, _documentData$documen4;
18876
18554
  const docType = docData !== null && docData !== void 0 && (_docData$code = docData.code) !== null && _docData$code !== void 0 && _docData$code.split(".")[1] ? (docData === null || docData === void 0 ? void 0 : (_docData$code2 = docData.code) === null || _docData$code2 === void 0 ? void 0 : _docData$code2.split(".")[0]) + "." + (docData === null || docData === void 0 ? void 0 : (_docData$code3 = docData.code) === null || _docData$code3 === void 0 ? void 0 : _docData$code3.split(".")[1]) : docData === null || docData === void 0 ? void 0 : (_docData$code4 = docData.code) === null || _docData$code4 === void 0 ? void 0 : _docData$code4.split(".")[0];
18877
18555
  const dataDocType = documentData !== null && documentData !== void 0 && (_documentData$documen = documentData.documentType) !== null && _documentData$documen !== void 0 && _documentData$documen.split(".")[1] ? (documentData === null || documentData === void 0 ? void 0 : (_documentData$documen2 = documentData.documentType) === null || _documentData$documen2 === void 0 ? void 0 : _documentData$documen2.split(".")[0]) + "." + (documentData === null || documentData === void 0 ? void 0 : (_documentData$documen3 = documentData.documentType) === null || _documentData$documen3 === void 0 ? void 0 : _documentData$documen3.split(".")[1]) : documentData === null || documentData === void 0 ? void 0 : (_documentData$documen4 = documentData.documentType) === null || _documentData$documen4 === void 0 ? void 0 : _documentData$documen4.split(".")[0];
@@ -18889,7 +18567,7 @@ const WSDocumentsEmployee = _ref => {
18889
18567
  }
18890
18568
  const innerContent = /*#__PURE__*/React__default.createElement("div", {
18891
18569
  className: "formcomposer-section-grid ws-doc-upload"
18892
- }, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData3 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData3 === void 0 ? void 0 : _wsDocs$wsDocsData3.map((document, index) => {
18570
+ }, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$wsDocsData3 = wsDocs[wsDocsData]) === null || _wsDocs$wsDocsData3 === void 0 ? void 0 : (_wsDocs$wsDocsData3$f = _wsDocs$wsDocsData3.filter(doc => doc.code !== "OWNER.APPLICANTPHOTO")) === null || _wsDocs$wsDocsData3$f === void 0 ? void 0 : _wsDocs$wsDocsData3$f.map((document, index) => {
18893
18571
  return /*#__PURE__*/React__default.createElement(SelectDocument, {
18894
18572
  key: index,
18895
18573
  document: document,
@@ -19046,11 +18724,6 @@ function SelectDocument(_ref2) {
19046
18724
  const eligible = isDigiLockerEligible((selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "");
19047
18725
  setDigilockerUpload(eligible);
19048
18726
  }, [selectedDocument]);
19049
- const handleCapture = capturedFile => {
19050
- setFile(capturedFile);
19051
- setIsCameraFile(true);
19052
- setShowCamera(false);
19053
- };
19054
18727
  const handleSelectDocument = value => setSelectedDocument(value);
19055
18728
  const removeUploadedDocument = fileStoreId => {
19056
18729
  setDocuments(previousDocuments => previousDocuments.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== fileStoreId));
@@ -19155,9 +18828,9 @@ function SelectDocument(_ref2) {
19155
18828
  React.useEffect(() => {
19156
18829
  if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
19157
18830
  setDocuments(prev => {
19158
- const filteredDocumentsByDocumentType = isOther ? prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileStoreId)) : prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
18831
+ const filteredDocumentsByDocumentType = prev === null || prev === void 0 ? void 0 : prev.filter(item => (item === null || item === void 0 ? void 0 : item.documentType) !== (selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code));
19159
18832
  if ((uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.length) === 0 || uploadedFile === null) {
19160
- return filteredDocumentsByDocumentType;
18833
+ return isOther ? prev : filteredDocumentsByDocumentType;
19161
18834
  }
19162
18835
  const filteredDocumentsByFileStoreId = filteredDocumentsByDocumentType === null || filteredDocumentsByDocumentType === void 0 ? void 0 : filteredDocumentsByDocumentType.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== uploadedFile);
19163
18836
  const data = [...filteredDocumentsByFileStoreId, {
@@ -19176,15 +18849,21 @@ function SelectDocument(_ref2) {
19176
18849
  });
19177
18850
  }
19178
18851
  const err = validateDocumentNumber(documentUid, selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code, doc === null || doc === void 0 ? void 0 : doc.required, !!uploadedFile);
18852
+ const hasOtherUploaded = isOther && (documents === null || documents === void 0 ? void 0 : documents.some(item => {
18853
+ var _item$documentType3;
18854
+ return item === null || item === void 0 ? void 0 : (_item$documentType3 = item.documentType) === null || _item$documentType3 === void 0 ? void 0 : _item$documentType3.includes(doc === null || doc === void 0 ? void 0 : doc.code);
18855
+ }));
19179
18856
  if (!isHidden) {
19180
- if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) || err) && doc !== null && doc !== void 0 && doc.required) {
18857
+ if (err) {
19181
18858
  addError();
19182
- } else if (err) {
18859
+ } else if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code)) && doc !== null && doc !== void 0 && doc.required && !hasOtherUploaded) {
19183
18860
  addError();
19184
18861
  } else if (uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code && !err) {
19185
18862
  removeError();
19186
18863
  } else if (!(doc !== null && doc !== void 0 && doc.required) && !err) {
19187
18864
  removeError();
18865
+ } else if (hasOtherUploaded) {
18866
+ removeError();
19188
18867
  }
19189
18868
  } else if (isHidden) {
19190
18869
  removeError();
@@ -19275,7 +18954,9 @@ function SelectDocument(_ref2) {
19275
18954
  style: {
19276
18955
  margin: 0
19277
18956
  }
19278
- }, doc !== null && doc !== void 0 && doc.required ? `${t(doc === null || doc === void 0 ? void 0 : doc.i18nKey)}*` : `${t(doc === null || doc === void 0 ? void 0 : doc.i18nKey)}`), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
18957
+ }, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey), (doc === null || doc === void 0 ? void 0 : doc.required) && /*#__PURE__*/React__default.createElement("span", {
18958
+ className: "check-page-link-button"
18959
+ }, "*")), " ", /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
19279
18960
  id: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
19280
18961
  key: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
19281
18962
  className: "form-field",
@@ -19289,7 +18970,8 @@ function SelectDocument(_ref2) {
19289
18970
  }),
19290
18971
  select: handleSelectDocument,
19291
18972
  optionKey: "i18nKey",
19292
- t: t
18973
+ t: t,
18974
+ placeholder: t("PT_MUTATION_SELECT_DOC_LABEL")
19293
18975
  })) : null, (doc === null || doc === void 0 ? void 0 : doc.code) !== "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React__default.createElement("div", {
19294
18976
  style: {
19295
18977
  display: "flex",
@@ -19384,30 +19066,14 @@ function SelectDocument(_ref2) {
19384
19066
  style: {
19385
19067
  margin: 0
19386
19068
  }
19387
- }, 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 && doc.required ? "*" : ""), isOther && /*#__PURE__*/React__default.createElement("button", {
19388
- type: "button",
19389
- onClick: () => {
19390
- setUploadedFile(null);
19391
- setFile(null);
19392
- setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
19393
- setDocumentUid("");
19394
- setDocNumberError(null);
19395
- },
19396
- style: {
19397
- border: "1px solid #00497e",
19398
- background: "#fff",
19399
- color: "#00497e",
19400
- borderRadius: "4px",
19401
- padding: "4px 10px",
19402
- cursor: "pointer",
19403
- fontWeight: "bold"
19404
- }
19405
- }, "+ Add")), /*#__PURE__*/React__default.createElement("div", {
19069
+ }, 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", {
19070
+ className: "check-page-link-button"
19071
+ }, "*"))), /*#__PURE__*/React__default.createElement("div", {
19406
19072
  className: "field",
19407
19073
  style: {
19408
19074
  display: "flex",
19409
- gap: "20px",
19410
- alignItems: "center",
19075
+ gap: "10px",
19076
+ alignItems: "flex-start",
19411
19077
  width: "100%"
19412
19078
  }
19413
19079
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -19435,11 +19101,15 @@ function SelectDocument(_ref2) {
19435
19101
  fileStoreId: uploadedFile
19436
19102
  }]] : undefined,
19437
19103
  removeTargetedFile: () => {
19438
- setUploadedFile(null);
19439
- setFile(null);
19440
- setIsCameraFile(false);
19441
- setIsDocumentUidLocked(false);
19442
- setDocumentUid("");
19104
+ if (isOther && uploadedFile) {
19105
+ removeUploadedDocument(uploadedFile);
19106
+ } else {
19107
+ setUploadedFile(null);
19108
+ setFile(null);
19109
+ setIsCameraFile(false);
19110
+ setIsDocumentUidLocked(false);
19111
+ setDocumentUid("");
19112
+ }
19443
19113
  },
19444
19114
  documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
19445
19115
  onDocumentNumber: num => {
@@ -19467,13 +19137,49 @@ function SelectDocument(_ref2) {
19467
19137
  fileStoreId: uploadedFile
19468
19138
  }]] : undefined,
19469
19139
  removeTargetedFile: () => {
19140
+ if (isOther && uploadedFile) {
19141
+ removeUploadedDocument(uploadedFile);
19142
+ } else {
19143
+ setUploadedFile(null);
19144
+ setFile(null);
19145
+ setIsCameraFile(false);
19146
+ setIsDocumentUidLocked(false);
19147
+ setDocumentUid("");
19148
+ }
19149
+ }
19150
+ })), isOther && /*#__PURE__*/React__default.createElement("button", {
19151
+ type: "button",
19152
+ onClick: () => {
19153
+ if (!uploadedFile) {
19154
+ setError(t("WS_PLEASE_UPLOAD_FILE_FIRST") || "Please upload a file first.");
19155
+ return;
19156
+ }
19157
+ if (doc !== null && doc !== void 0 && doc.hasDropdown && !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code)) {
19158
+ setError(t("WS_PLEASE_SELECT_DOCUMENT_TYPE") || "Please select a document type.");
19159
+ return;
19160
+ }
19161
+ if (docNumberError) {
19162
+ setError(docNumberError);
19163
+ return;
19164
+ }
19470
19165
  setUploadedFile(null);
19471
19166
  setFile(null);
19472
- setIsCameraFile(false);
19473
- setIsDocumentUidLocked(false);
19167
+ setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
19474
19168
  setDocumentUid("");
19169
+ setDocNumberError(null);
19170
+ setIsDocumentUidLocked(false);
19171
+ },
19172
+ style: {
19173
+ border: "1px solid #00497e",
19174
+ background: "#fff",
19175
+ color: "#00497e",
19176
+ borderRadius: "4px",
19177
+ padding: "6px 12px",
19178
+ cursor: "pointer",
19179
+ fontWeight: "bold",
19180
+ marginTop: "2px"
19475
19181
  }
19476
- }))), (isOther ? otherUploadedDocuments : uploadedFile ? [{
19182
+ }, "+ ", t("NEW_DOCUMENT_TEXT") || "Add Document")), (isOther ? otherUploadedDocuments : uploadedFile ? [{
19477
19183
  fileStoreId: uploadedFile,
19478
19184
  fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName),
19479
19185
  documentNumber: documentUid
@@ -19490,7 +19196,7 @@ function SelectDocument(_ref2) {
19490
19196
  style: {
19491
19197
  fontWeight: "bold"
19492
19198
  }
19493
- }, uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName ? t((uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName).replaceAll('.', '_')) : t("CS_COMMON_DOCUMENT"), uploadedDocument.fileName ? ` - ${uploadedDocument.fileName}` : ""), uploadedDocument.documentNumber && /*#__PURE__*/React__default.createElement("span", null, uploadedDocument.documentNumber), /*#__PURE__*/React__default.createElement("button", {
19199
+ }, uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName ? t((uploadedDocument.documentName || uploadedDocument.i18nKey || uploadedDocument.documentType || documentDisplayName).replaceAll(".", "_")) : t("CS_COMMON_DOCUMENT"), uploadedDocument.fileName ? ` - ${uploadedDocument.fileName}` : ""), uploadedDocument.documentNumber && /*#__PURE__*/React__default.createElement("span", null, uploadedDocument.documentNumber), /*#__PURE__*/React__default.createElement("button", {
19494
19200
  type: "button",
19495
19201
  onClick: () => viewDocument(uploadedDocument.fileStoreId),
19496
19202
  title: t("WS_VIEW_DOCUMENT") || "View Document",
@@ -19513,64 +19219,7 @@ function SelectDocument(_ref2) {
19513
19219
  padding: 0,
19514
19220
  fontSize: "18px"
19515
19221
  }
19516
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RemoveIcon, null))))), /*#__PURE__*/React__default.createElement("div", {
19517
- style: {
19518
- display: "flex",
19519
- flexDirection: "column",
19520
- gap: "8px",
19521
- gridColumn: "span 1"
19522
- }
19523
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
19524
- style: {
19525
- margin: 0
19526
- }
19527
- }, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? t("WS_CLICK_APPLICANT_PHOTO") || "Click Applicant Photo" : "\u00A0"), /*#__PURE__*/React__default.createElement("div", {
19528
- style: {
19529
- display: "flex",
19530
- alignItems: "center",
19531
- gap: "20px",
19532
- height: "100%"
19533
- }
19534
- }, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React__default.createElement("div", {
19535
- style: {
19536
- display: "flex",
19537
- alignItems: "center",
19538
- gap: "10px"
19539
- }
19540
- }, /*#__PURE__*/React__default.createElement("button", {
19541
- type: "button",
19542
- style: {
19543
- display: "flex",
19544
- alignItems: "center",
19545
- justifyContent: "center",
19546
- gap: "8px",
19547
- padding: "6px 16px",
19548
- background: "#f0f0f0",
19549
- border: "1px solid #ccc",
19550
- borderRadius: "2px",
19551
- cursor: isUploading ? "not-allowed" : "pointer",
19552
- width: "fit-content",
19553
- opacity: isUploading ? 0.5 : 1
19554
- },
19555
- onClick: () => !isUploading && setShowCamera(true),
19556
- disabled: isUploading
19557
- }, /*#__PURE__*/React__default.createElement("span", null, "\uD83D\uDCF8"), " ", t("WS_CLICK_PHOTO") || "Click Photo"), isUploading && /*#__PURE__*/React__default.createElement("span", {
19558
- style: {
19559
- color: "#00497e",
19560
- fontWeight: "bold",
19561
- fontSize: "14px"
19562
- }
19563
- }, t("CS_COMMON_UPLOADING") || "Uploading..."), uploadedFile && !isUploading && /*#__PURE__*/React__default.createElement("span", {
19564
- style: {
19565
- color: "green",
19566
- fontWeight: "bold",
19567
- fontSize: "14px"
19568
- }
19569
- }, "\u2714 Uploaded")))), showCamera && /*#__PURE__*/React__default.createElement(CameraCaptureModal, {
19570
- onCapture: handleCapture,
19571
- onClose: () => setShowCamera(false),
19572
- t: t
19573
- }), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
19222
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RemoveIcon, null))))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
19574
19223
  open: showDocModal,
19575
19224
  headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
19576
19225
  headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
@@ -19627,126 +19276,6 @@ function SelectDocument(_ref2) {
19627
19276
  }
19628
19277
  }))));
19629
19278
  }
19630
- const CameraCaptureModal = _ref3 => {
19631
- let {
19632
- onCapture,
19633
- onClose,
19634
- t
19635
- } = _ref3;
19636
- const videoRef = React.useRef(null);
19637
- const canvasRef = React.useRef(null);
19638
- const [stream, setStream] = React.useState(null);
19639
- const [error, setError] = React.useState(null);
19640
- React.useEffect(() => {
19641
- const startCamera = function () {
19642
- try {
19643
- const _temp8 = _catch(function () {
19644
- return Promise.resolve(navigator.mediaDevices.getUserMedia({
19645
- video: true
19646
- })).then(function (mediaStream) {
19647
- if (videoRef.current) {
19648
- videoRef.current.srcObject = mediaStream;
19649
- }
19650
- setStream(mediaStream);
19651
- });
19652
- }, function (err) {
19653
- setError(t("WS_CAMERA_ACCESS_ERROR") || "Camera Access Error");
19654
- console.error("Error accessing camera: ", err);
19655
- });
19656
- return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
19657
- } catch (e) {
19658
- return Promise.reject(e);
19659
- }
19660
- };
19661
- startCamera();
19662
- return () => {
19663
- if (stream) {
19664
- stream.getTracks().forEach(track => track.stop());
19665
- }
19666
- };
19667
- }, []);
19668
- const capturePhoto = () => {
19669
- if (videoRef.current && canvasRef.current) {
19670
- const context = canvasRef.current.getContext("2d");
19671
- canvasRef.current.width = videoRef.current.videoWidth;
19672
- canvasRef.current.height = videoRef.current.videoHeight;
19673
- context.translate(canvasRef.current.width, 0);
19674
- context.scale(-1, 1);
19675
- context.drawImage(videoRef.current, 0, 0, canvasRef.current.width, canvasRef.current.height);
19676
- canvasRef.current.toBlob(blob => {
19677
- const file = new File([blob], "applicant_photo.jpg", {
19678
- type: "image/jpeg"
19679
- });
19680
- onCapture(file);
19681
- }, "image/jpeg");
19682
- }
19683
- };
19684
- return /*#__PURE__*/React__default.createElement("div", {
19685
- style: {
19686
- position: "fixed",
19687
- top: 0,
19688
- left: 0,
19689
- width: "100%",
19690
- height: "100%",
19691
- backgroundColor: "rgba(0,0,0,0.8)",
19692
- zIndex: 9999,
19693
- display: "flex",
19694
- flexDirection: "column",
19695
- alignItems: "center",
19696
- justifyContent: "center"
19697
- }
19698
- }, error ? /*#__PURE__*/React__default.createElement("div", {
19699
- style: {
19700
- color: "white",
19701
- marginBottom: "20px"
19702
- }
19703
- }, error) : /*#__PURE__*/React__default.createElement("video", {
19704
- ref: videoRef,
19705
- autoPlay: true,
19706
- playsInline: true,
19707
- style: {
19708
- maxWidth: "100%",
19709
- maxHeight: "80%",
19710
- backgroundColor: "black",
19711
- transform: "scaleX(-1)"
19712
- }
19713
- }), /*#__PURE__*/React__default.createElement("canvas", {
19714
- ref: canvasRef,
19715
- style: {
19716
- display: "none"
19717
- }
19718
- }), /*#__PURE__*/React__default.createElement("div", {
19719
- style: {
19720
- marginTop: "20px",
19721
- display: "flex",
19722
- gap: "20px"
19723
- }
19724
- }, !error && /*#__PURE__*/React__default.createElement("button", {
19725
- type: "button",
19726
- onClick: capturePhoto,
19727
- style: {
19728
- padding: "10px 20px",
19729
- background: "#00497e",
19730
- color: "white",
19731
- border: "none",
19732
- borderRadius: "4px",
19733
- cursor: "pointer",
19734
- fontWeight: "bold"
19735
- }
19736
- }, t("WS_CAPTURE_PHOTO") || "Capture"), /*#__PURE__*/React__default.createElement("button", {
19737
- type: "button",
19738
- onClick: onClose,
19739
- style: {
19740
- padding: "10px 20px",
19741
- background: "white",
19742
- color: "#00497e",
19743
- border: "1px solid #00497e",
19744
- borderRadius: "4px",
19745
- cursor: "pointer",
19746
- fontWeight: "bold"
19747
- }
19748
- }, t("CS_COMMON_CANCEL") || "Cancel")));
19749
- };
19750
19279
 
19751
19280
  const createConnectionDetails$2 = () => ({
19752
19281
  water: true,
@@ -20216,6 +19745,7 @@ const WSDisconnectionDocsRequired = _ref => {
20216
19745
  t
20217
19746
  } = reactI18next.useTranslation();
20218
19747
  const history = reactRouterDom.useHistory();
19748
+ const location = reactRouterDom.useLocation();
20219
19749
  const match = reactRouterDom.useRouteMatch();
20220
19750
  const tenantId = Digit.ULBService.getStateId();
20221
19751
  const {
@@ -20283,7 +19813,8 @@ const WSDisconnectionDocsRequired = _ref => {
20283
19813
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
20284
19814
  label: t(`CS_COMMON_NEXT`),
20285
19815
  onSubmit: () => {
20286
- history.push(match.path.replace("docsrequired", "application-form"));
19816
+ history.push(`${match.path.replace("docsrequired", "application-form")}${location.search}`);
19817
+ history.push(`${match.path.replace("docsrequired", "k-number")}${location.search}`);
20287
19818
  }
20288
19819
  })));
20289
19820
  }
@@ -20332,7 +19863,8 @@ const WSDisconnectionDocsRequired = _ref => {
20332
19863
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
20333
19864
  label: t("ACTION_TEST_APPLY"),
20334
19865
  onSubmit: () => {
20335
- history.push(match.path.replace("docsrequired", "application-form"));
19866
+ history.push(`${match.path.replace("docsrequired", "application-form")}${location.search}`);
19867
+ history.push(`${match.path.replace("docsrequired", "k-number")}${location.search}`);
20336
19868
  },
20337
19869
  style: {
20338
19870
  margin: "10px 10px 0px 0px"
@@ -20341,6 +19873,556 @@ const WSDisconnectionDocsRequired = _ref => {
20341
19873
  }))));
20342
19874
  };
20343
19875
 
19876
+ const WSDisconnectionKNumber = _ref => {
19877
+ const history = reactRouterDom.useHistory();
19878
+ const location = reactRouterDom.useLocation();
19879
+ const match = reactRouterDom.useRouteMatch();
19880
+ const stored = Digit.SessionStorage.get("WS_DISCONNECTION");
19881
+ const queryParams = new URLSearchParams(location.search);
19882
+ const isFromConnectionDetails = queryParams.get("from") === "connection-details";
19883
+ const connectionNumberFromQuery = queryParams.get("connectionNumber") || "";
19884
+ const [kNumber, setKNumber] = React.useState(() => {
19885
+ var _stored$applicationDa;
19886
+ return isFromConnectionDetails ? connectionNumberFromQuery || (stored === null || stored === void 0 ? void 0 : (_stored$applicationDa = stored.applicationData) === null || _stored$applicationDa === void 0 ? void 0 : _stored$applicationDa.connectionNo) || (stored === null || stored === void 0 ? void 0 : stored.connectionNo) || "" : "";
19887
+ });
19888
+ const [isLoading, setIsLoading] = React.useState(false);
19889
+ const [showToast, setShowToast] = React.useState(null);
19890
+ const isMobileView = window.innerWidth < 768;
19891
+ const handleProceed = function () {
19892
+ try {
19893
+ var _stored$applicationDa2;
19894
+ const connectionNumber = kNumber || connectionNumberFromQuery || (stored === null || stored === void 0 ? void 0 : (_stored$applicationDa2 = stored.applicationData) === null || _stored$applicationDa2 === void 0 ? void 0 : _stored$applicationDa2.connectionNo) || (stored === null || stored === void 0 ? void 0 : stored.connectionNo) || "";
19895
+ const trimmed = connectionNumber.trim();
19896
+ if (!trimmed) {
19897
+ setShowToast({
19898
+ key: "warning",
19899
+ message: "Please enter K Number / Connection ID"
19900
+ });
19901
+ return Promise.resolve();
19902
+ }
19903
+ setIsLoading(true);
19904
+ return Promise.resolve(_catch(function () {
19905
+ const tenantId = Digit.ULBService.getCurrentTenantId() || "dl";
19906
+ const params = {
19907
+ connectionNumber: trimmed,
19908
+ searchType: "CONNECTION",
19909
+ isConnectionSearch: true
19910
+ };
19911
+ let detectedServiceType = "WATER";
19912
+ return Promise.resolve(Digit.WSService.search({
19913
+ tenantId,
19914
+ filters: params,
19915
+ businessService: "WS"
19916
+ }).catch(() => null)).then(function (wsResponse) {
19917
+ var _waterResponse$WaterC;
19918
+ function _temp2() {
19919
+ var _connection, _connection$connectio, _connection$connectio2, _connection2;
19920
+ if (!connection) {
19921
+ setIsLoading(false);
19922
+ setShowToast({
19923
+ key: "error",
19924
+ message: "Active connection not found for the given K Number"
19925
+ });
19926
+ return;
19927
+ }
19928
+ const fetchedMobileNumber = ((_connection = connection) === null || _connection === void 0 ? void 0 : (_connection$connectio = _connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : (_connection$connectio2 = _connection$connectio[0]) === null || _connection$connectio2 === void 0 ? void 0 : _connection$connectio2.mobileNumber) || ((_connection2 = connection) === null || _connection2 === void 0 ? void 0 : _connection2.mobileNumber);
19929
+ if (!fetchedMobileNumber || fetchedMobileNumber.length !== 10) {
19930
+ setIsLoading(false);
19931
+ setShowToast({
19932
+ key: "error",
19933
+ message: "No valid registered mobile number found for this connection"
19934
+ });
19935
+ return;
19936
+ }
19937
+ const userType = Digit.UserService.getType().toUpperCase();
19938
+ const payload = {
19939
+ otp: {
19940
+ mobileNumber: fetchedMobileNumber,
19941
+ tenantId: "dl",
19942
+ type: "register",
19943
+ userType: userType
19944
+ }
19945
+ };
19946
+ return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
19947
+ var _connection3;
19948
+ const existingData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
19949
+ connection.serviceType = detectedServiceType;
19950
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
19951
+ ...existingData,
19952
+ kNumber: trimmed,
19953
+ serviceType: detectedServiceType,
19954
+ applicationData: connection,
19955
+ connectionNo: (_connection3 = connection) === null || _connection3 === void 0 ? void 0 : _connection3.connectionNo
19956
+ });
19957
+ setIsLoading(false);
19958
+ history.push(match.path.replace("k-number", "consumer-details"), {
19959
+ connection
19960
+ });
19961
+ });
19962
+ }
19963
+ const waterResponse = (wsResponse === null || wsResponse === void 0 ? void 0 : wsResponse.data) || wsResponse;
19964
+ let connection = waterResponse === null || waterResponse === void 0 ? void 0 : (_waterResponse$WaterC = waterResponse.WaterConnection) === null || _waterResponse$WaterC === void 0 ? void 0 : _waterResponse$WaterC.find(c => c.applicationStatus === "CONNECTION_ACTIVATED");
19965
+ const _temp = function () {
19966
+ if (!connection) {
19967
+ return Promise.resolve(Digit.WSService.search({
19968
+ tenantId,
19969
+ filters: params,
19970
+ businessService: "SW"
19971
+ }).catch(() => null)).then(function (swResponse) {
19972
+ var _sewerageResponse$Sew;
19973
+ const sewerageResponse = (swResponse === null || swResponse === void 0 ? void 0 : swResponse.data) || swResponse;
19974
+ connection = sewerageResponse === null || sewerageResponse === void 0 ? void 0 : (_sewerageResponse$Sew = sewerageResponse.SewerageConnections) === null || _sewerageResponse$Sew === void 0 ? void 0 : _sewerageResponse$Sew.find(c => c.applicationStatus === "CONNECTION_ACTIVATED");
19975
+ if (connection) detectedServiceType = "SEWERAGE";
19976
+ });
19977
+ }
19978
+ }();
19979
+ return _temp && _temp.then ? _temp.then(_temp2) : _temp2(_temp);
19980
+ });
19981
+ }, function (err) {
19982
+ var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
19983
+ setIsLoading(false);
19984
+ setShowToast({
19985
+ key: "error",
19986
+ message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || "Failed to search connection"
19987
+ });
19988
+ }));
19989
+ } catch (e) {
19990
+ return Promise.reject(e);
19991
+ }
19992
+ };
19993
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
19994
+ style: {
19995
+ marginBottom: "20px",
19996
+ padding: isMobileView ? "12px" : "24px"
19997
+ }
19998
+ }, /*#__PURE__*/React__default.createElement("div", {
19999
+ style: {
20000
+ display: "flex",
20001
+ alignItems: "center",
20002
+ marginBottom: "8px",
20003
+ gap: "10px"
20004
+ }
20005
+ }, /*#__PURE__*/React__default.createElement("div", {
20006
+ style: {
20007
+ width: "36px",
20008
+ height: "36px",
20009
+ borderRadius: "50%",
20010
+ backgroundColor: "#00497e",
20011
+ color: "#fff",
20012
+ display: "flex",
20013
+ alignItems: "center",
20014
+ justifyContent: "center",
20015
+ fontWeight: "bold",
20016
+ fontSize: "16px",
20017
+ flexShrink: 0
20018
+ }
20019
+ }, "1"), /*#__PURE__*/React__default.createElement("h2", {
20020
+ style: {
20021
+ fontSize: isMobileView ? "16px" : "20px",
20022
+ fontWeight: "700",
20023
+ margin: 0,
20024
+ color: "#0B0C0C"
20025
+ }
20026
+ }, "Connection Authentication")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
20027
+ style: {
20028
+ fontSize: isMobileView ? "13px" : "14px",
20029
+ marginBottom: "20px",
20030
+ color: "#6C6C6C"
20031
+ }
20032
+ }, "Please enter your K Number to verify and proceed with the disconnection application."), /*#__PURE__*/React__default.createElement("div", {
20033
+ style: {
20034
+ padding: isMobileView ? "14px" : "20px",
20035
+ backgroundColor: "#f9f9f9",
20036
+ borderRadius: "8px",
20037
+ borderLeft: "4px solid #00497e",
20038
+ marginBottom: "8px"
20039
+ }
20040
+ }, /*#__PURE__*/React__default.createElement("div", {
20041
+ style: {
20042
+ marginBottom: "16px"
20043
+ }
20044
+ }, /*#__PURE__*/React__default.createElement("div", {
20045
+ style: {
20046
+ fontWeight: "600",
20047
+ marginBottom: "8px",
20048
+ fontSize: isMobileView ? "13px" : "14px",
20049
+ color: "#0B0C0C"
20050
+ }
20051
+ }, "K Number / Connection ID ", /*#__PURE__*/React__default.createElement("span", {
20052
+ style: {
20053
+ color: "#d4351c"
20054
+ }
20055
+ }, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
20056
+ value: kNumber,
20057
+ disabled: isFromConnectionDetails,
20058
+ onChange: e => setKNumber(e.target.value),
20059
+ placeholder: "Enter K Number (e.g. WS/105/2020/0001)",
20060
+ style: {
20061
+ width: "100%"
20062
+ }
20063
+ })), /*#__PURE__*/React__default.createElement("div", {
20064
+ style: {
20065
+ display: "flex",
20066
+ justifyContent: isMobileView ? "stretch" : "flex-end"
20067
+ }
20068
+ }, /*#__PURE__*/React__default.createElement("button", {
20069
+ onClick: handleProceed,
20070
+ disabled: isLoading,
20071
+ style: {
20072
+ padding: isMobileView ? "12px 16px" : "10px 28px",
20073
+ backgroundColor: isLoading ? "#6C6C6C" : "#00497e",
20074
+ color: "#fff",
20075
+ border: "none",
20076
+ borderRadius: "4px",
20077
+ cursor: isLoading ? "not-allowed" : "pointer",
20078
+ fontWeight: "bold",
20079
+ fontSize: isMobileView ? "14px" : "15px",
20080
+ width: isMobileView ? "100%" : "auto",
20081
+ transition: "background-color 0.2s"
20082
+ }
20083
+ }, isLoading ? "Searching..." : "Proceed \u2192")))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
20084
+ error: showToast.key === "error",
20085
+ warning: showToast.key === "warning",
20086
+ label: showToast.message,
20087
+ onClose: () => setShowToast(null),
20088
+ isDleteBtn: true
20089
+ }));
20090
+ };
20091
+
20092
+ const WSDisconnectionConsumerDetails = _ref => {
20093
+ var _location$state, _connection$additiona, _connection$connectio, _connection$property, _propertyAddress$loca;
20094
+ const history = reactRouterDom.useHistory();
20095
+ const location = reactRouterDom.useLocation();
20096
+ const match = reactRouterDom.useRouteMatch();
20097
+ const [otp, setOtp] = React.useState("");
20098
+ const [showToast, setShowToast] = React.useState(null);
20099
+ const [isLoading, setIsLoading] = React.useState(false);
20100
+ const applicationData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
20101
+ const connection = ((_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.connection) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationData) || {};
20102
+ const isMobileView = window.innerWidth < 768;
20103
+ const getMaskedName = name => {
20104
+ if (!name) return "NA";
20105
+ return name.split("").map((char, i) => i % 2 === 1 && char !== " " ? "*" : char).join("");
20106
+ };
20107
+ const getMaskedPhone = phone => {
20108
+ if (!phone || phone.length < 4) return "NA";
20109
+ return `******${phone.slice(-4)}`;
20110
+ };
20111
+ const connectionNo = (connection === null || connection === void 0 ? void 0 : connection.connectionNo) || "NA";
20112
+ const meterId = (connection === null || connection === void 0 ? void 0 : connection.meterId) || (connection === null || connection === void 0 ? void 0 : (_connection$additiona = connection.additionalDetails) === null || _connection$additiona === void 0 ? void 0 : _connection$additiona.meterId) || "NA";
20113
+ const connectionStatus = (connection === null || connection === void 0 ? void 0 : connection.applicationStatus) || "NA";
20114
+ const holder = (connection === null || connection === void 0 ? void 0 : (_connection$connectio = connection.connectionHolders) === null || _connection$connectio === void 0 ? void 0 : _connection$connectio[0]) || {};
20115
+ const registeredName = getMaskedName(holder === null || holder === void 0 ? void 0 : holder.name);
20116
+ const mobileNumber = (holder === null || holder === void 0 ? void 0 : holder.mobileNumber) || (connection === null || connection === void 0 ? void 0 : connection.mobileNumber) || "";
20117
+ const registeredPhone = getMaskedPhone(mobileNumber);
20118
+ const propertyAddress = (connection === null || connection === void 0 ? void 0 : (_connection$property = connection.property) === null || _connection$property === void 0 ? void 0 : _connection$property.address) || (connection === null || connection === void 0 ? void 0 : connection.address) || {};
20119
+ const formattedAddress = [(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.houseNo) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.doorNo), propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.buildingName, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.street, propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$loca = propertyAddress.locality) === null || _propertyAddress$loca === void 0 ? void 0 : _propertyAddress$loca.name, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.city, propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.pincode].filter(Boolean).join(", ") || "NA";
20120
+ const handleResendOtp = function () {
20121
+ try {
20122
+ const _temp = _catch(function () {
20123
+ const userType = Digit.UserService.getType().toUpperCase();
20124
+ const payload = {
20125
+ otp: {
20126
+ mobileNumber: mobileNumber,
20127
+ tenantId: "dl",
20128
+ type: "register",
20129
+ userType: userType
20130
+ }
20131
+ };
20132
+ return Promise.resolve(Digit.UserService.sendOtp(payload, "dl")).then(function () {
20133
+ setShowToast({
20134
+ key: "warning",
20135
+ message: "OTP resent to registered mobile number"
20136
+ });
20137
+ });
20138
+ }, function (err) {
20139
+ var _err$response, _err$response$data, _err$response$data$Er, _err$response$data$Er2;
20140
+ setShowToast({
20141
+ key: "error",
20142
+ message: (err === null || err === void 0 ? void 0 : (_err$response = err.response) === null || _err$response === void 0 ? void 0 : (_err$response$data = _err$response.data) === null || _err$response$data === void 0 ? void 0 : (_err$response$data$Er = _err$response$data.Errors) === null || _err$response$data$Er === void 0 ? void 0 : (_err$response$data$Er2 = _err$response$data$Er[0]) === null || _err$response$data$Er2 === void 0 ? void 0 : _err$response$data$Er2.message) || "Failed to resend OTP"
20143
+ });
20144
+ });
20145
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
20146
+ } catch (e) {
20147
+ return Promise.reject(e);
20148
+ }
20149
+ };
20150
+ const handleVerify = function () {
20151
+ try {
20152
+ if (!otp || otp.length < 6) {
20153
+ setShowToast({
20154
+ key: "warning",
20155
+ message: "Please enter a valid 6-digit OTP"
20156
+ });
20157
+ return Promise.resolve();
20158
+ }
20159
+ setIsLoading(true);
20160
+ const _temp2 = _catch(function () {
20161
+ const userType = Digit.UserService.getType().toUpperCase();
20162
+ const payload = {
20163
+ otp: {
20164
+ otp: otp,
20165
+ mobileNumber: mobileNumber,
20166
+ tenantId: "dl",
20167
+ userType: userType
20168
+ }
20169
+ };
20170
+ return Promise.resolve(Digit.UserService.validateOtp(payload)).then(function () {
20171
+ var _connection$additiona2, _connection$additiona3;
20172
+ Digit.SessionStorage.set("WS_DISCONNECTION", {
20173
+ ...applicationData,
20174
+ applicationData: connection,
20175
+ connectionNo: connection === null || connection === void 0 ? void 0 : connection.connectionNo,
20176
+ serviceType: (connection === null || connection === void 0 ? void 0 : (_connection$additiona2 = connection.additionalDetails) === null || _connection$additiona2 === void 0 ? void 0 : (_connection$additiona3 = _connection$additiona2.serviceType) === null || _connection$additiona3 === void 0 ? void 0 : _connection$additiona3.code) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType)
20177
+ });
20178
+ setIsLoading(false);
20179
+ history.push(match.path.replace("consumer-details", "application-form"), {
20180
+ connection
20181
+ });
20182
+ });
20183
+ }, function (err) {
20184
+ var _err$response2, _err$response2$data, _err$response2$data$E, _err$response2$data$E2;
20185
+ setIsLoading(false);
20186
+ setShowToast({
20187
+ key: "error",
20188
+ message: (err === null || err === void 0 ? void 0 : (_err$response2 = err.response) === null || _err$response2 === void 0 ? void 0 : (_err$response2$data = _err$response2.data) === null || _err$response2$data === void 0 ? void 0 : (_err$response2$data$E = _err$response2$data.Errors) === null || _err$response2$data$E === void 0 ? void 0 : (_err$response2$data$E2 = _err$response2$data$E[0]) === null || _err$response2$data$E2 === void 0 ? void 0 : _err$response2$data$E2.message) || err.message || "Failed to verify OTP"
20189
+ });
20190
+ });
20191
+ return Promise.resolve(_temp2 && _temp2.then ? _temp2.then(function () {}) : void 0);
20192
+ } catch (e) {
20193
+ return Promise.reject(e);
20194
+ }
20195
+ };
20196
+ const infoItem = {
20197
+ display: "flex",
20198
+ flexDirection: "column",
20199
+ minWidth: 0
20200
+ };
20201
+ const infoLabel = {
20202
+ color: "#6C6C6C",
20203
+ fontSize: isMobileView ? "11px" : "13px",
20204
+ marginBottom: "4px"
20205
+ };
20206
+ const infoValue = {
20207
+ fontWeight: "bold",
20208
+ wordBreak: "break-word",
20209
+ fontSize: isMobileView ? "13px" : "14px",
20210
+ color: "#0B0C0C"
20211
+ };
20212
+ const statusColor = (connectionStatus === null || connectionStatus === void 0 ? void 0 : connectionStatus.toLowerCase()) === "connection_activated" ? "#28a745" : "#dc3545";
20213
+ return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
20214
+ style: {
20215
+ marginBottom: "20px",
20216
+ padding: isMobileView ? "12px" : "24px"
20217
+ }
20218
+ }, /*#__PURE__*/React__default.createElement("div", {
20219
+ style: {
20220
+ padding: isMobileView ? "10px 12px" : "12px 16px",
20221
+ backgroundColor: "#fff3cd",
20222
+ color: "#856404",
20223
+ borderRadius: "8px",
20224
+ border: "1px solid #ffeeba",
20225
+ marginBottom: "20px",
20226
+ display: "flex",
20227
+ alignItems: "flex-start",
20228
+ gap: "10px"
20229
+ }
20230
+ }, /*#__PURE__*/React__default.createElement("span", {
20231
+ style: {
20232
+ fontSize: "18px",
20233
+ flexShrink: 0
20234
+ }
20235
+ }, "\u2139\uFE0F"), /*#__PURE__*/React__default.createElement("span", {
20236
+ style: {
20237
+ fontWeight: "500",
20238
+ fontSize: isMobileView ? "12px" : "13px",
20239
+ lineHeight: "1.5"
20240
+ }
20241
+ }, "Please verify the connection details below. The OTP has been sent to the registered mobile number on this connection.")), /*#__PURE__*/React__default.createElement("div", {
20242
+ style: {
20243
+ display: "flex",
20244
+ alignItems: "center",
20245
+ marginBottom: "20px",
20246
+ gap: "10px"
20247
+ }
20248
+ }, /*#__PURE__*/React__default.createElement("div", {
20249
+ style: {
20250
+ width: "36px",
20251
+ height: "36px",
20252
+ borderRadius: "50%",
20253
+ backgroundColor: "#00497e",
20254
+ color: "#fff",
20255
+ display: "flex",
20256
+ alignItems: "center",
20257
+ justifyContent: "center",
20258
+ fontWeight: "bold",
20259
+ fontSize: "16px",
20260
+ flexShrink: 0
20261
+ }
20262
+ }, "2"), /*#__PURE__*/React__default.createElement("h2", {
20263
+ style: {
20264
+ fontSize: isMobileView ? "16px" : "20px",
20265
+ fontWeight: "700",
20266
+ margin: 0,
20267
+ color: "#0B0C0C"
20268
+ }
20269
+ }, "Connection Details")), /*#__PURE__*/React__default.createElement("div", {
20270
+ style: {
20271
+ padding: isMobileView ? "12px" : "20px",
20272
+ backgroundColor: "#f9f9f9",
20273
+ borderRadius: "8px",
20274
+ borderLeft: "4px solid #00497e",
20275
+ marginBottom: "24px"
20276
+ }
20277
+ }, /*#__PURE__*/React__default.createElement("div", {
20278
+ style: {
20279
+ display: "grid",
20280
+ gridTemplateColumns: isMobileView ? "1fr 1fr" : "repeat(auto-fill, minmax(180px, 1fr))",
20281
+ gap: isMobileView ? "14px" : "20px"
20282
+ }
20283
+ }, /*#__PURE__*/React__default.createElement("div", {
20284
+ style: infoItem
20285
+ }, /*#__PURE__*/React__default.createElement("div", {
20286
+ style: infoLabel
20287
+ }, "Connection Number"), /*#__PURE__*/React__default.createElement("div", {
20288
+ style: infoValue
20289
+ }, connectionNo)), /*#__PURE__*/React__default.createElement("div", {
20290
+ style: infoItem
20291
+ }, /*#__PURE__*/React__default.createElement("div", {
20292
+ style: infoLabel
20293
+ }, "Current Owner Name"), /*#__PURE__*/React__default.createElement("div", {
20294
+ style: infoValue
20295
+ }, registeredName)), /*#__PURE__*/React__default.createElement("div", {
20296
+ style: {
20297
+ ...infoItem,
20298
+ gridColumn: isMobileView ? "1 / -1" : undefined
20299
+ }
20300
+ }, /*#__PURE__*/React__default.createElement("div", {
20301
+ style: infoLabel
20302
+ }, "Property Address"), /*#__PURE__*/React__default.createElement("div", {
20303
+ style: infoValue
20304
+ }, formattedAddress)), /*#__PURE__*/React__default.createElement("div", {
20305
+ style: infoItem
20306
+ }, /*#__PURE__*/React__default.createElement("div", {
20307
+ style: infoLabel
20308
+ }, "Connection Status"), /*#__PURE__*/React__default.createElement("div", {
20309
+ style: {
20310
+ ...infoValue,
20311
+ color: statusColor
20312
+ }
20313
+ }, connectionStatus === null || connectionStatus === void 0 ? void 0 : connectionStatus.replace(/_/g, " "))), /*#__PURE__*/React__default.createElement("div", {
20314
+ style: infoItem
20315
+ }, /*#__PURE__*/React__default.createElement("div", {
20316
+ style: infoLabel
20317
+ }, "Meter Number"), /*#__PURE__*/React__default.createElement("div", {
20318
+ style: infoValue
20319
+ }, meterId)), /*#__PURE__*/React__default.createElement("div", {
20320
+ style: infoItem
20321
+ }, /*#__PURE__*/React__default.createElement("div", {
20322
+ style: infoLabel
20323
+ }, "Registered Mobile"), /*#__PURE__*/React__default.createElement("div", {
20324
+ style: infoValue
20325
+ }, registeredPhone)))), /*#__PURE__*/React__default.createElement("div", {
20326
+ style: {
20327
+ borderTop: "1px solid #e0e0e0",
20328
+ paddingTop: "20px"
20329
+ }
20330
+ }, /*#__PURE__*/React__default.createElement("div", {
20331
+ style: {
20332
+ display: "flex",
20333
+ alignItems: "center",
20334
+ gap: "10px",
20335
+ marginBottom: "16px"
20336
+ }
20337
+ }, /*#__PURE__*/React__default.createElement("div", {
20338
+ style: {
20339
+ width: "36px",
20340
+ height: "36px",
20341
+ borderRadius: "50%",
20342
+ backgroundColor: "#00497e",
20343
+ color: "#fff",
20344
+ display: "flex",
20345
+ alignItems: "center",
20346
+ justifyContent: "center",
20347
+ fontWeight: "bold",
20348
+ fontSize: "16px",
20349
+ flexShrink: 0
20350
+ }
20351
+ }, "3"), /*#__PURE__*/React__default.createElement("h3", {
20352
+ style: {
20353
+ fontSize: isMobileView ? "14px" : "16px",
20354
+ fontWeight: "700",
20355
+ margin: 0,
20356
+ color: "#0B0C0C"
20357
+ }
20358
+ }, "OTP Verification")), /*#__PURE__*/React__default.createElement("div", {
20359
+ style: {
20360
+ marginBottom: "16px"
20361
+ }
20362
+ }, /*#__PURE__*/React__default.createElement("label", {
20363
+ style: {
20364
+ display: "block",
20365
+ fontWeight: "500",
20366
+ fontSize: isMobileView ? "13px" : "14px",
20367
+ marginBottom: "8px",
20368
+ color: "#0B0C0C"
20369
+ }
20370
+ }, "Enter OTP sent to +91 ", getMaskedPhone(mobileNumber), " ", /*#__PURE__*/React__default.createElement("span", {
20371
+ style: {
20372
+ color: "#d4351c"
20373
+ }
20374
+ }, "*")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
20375
+ value: otp,
20376
+ onChange: e => setOtp(e.target.value.replace(/\D/g, "").slice(0, 6)),
20377
+ placeholder: "Enter 6-digit OTP",
20378
+ maxLength: 6,
20379
+ style: {
20380
+ width: "100%"
20381
+ }
20382
+ }), /*#__PURE__*/React__default.createElement("div", {
20383
+ style: {
20384
+ fontSize: "12px",
20385
+ color: "#6C6C6C",
20386
+ marginTop: "6px"
20387
+ }
20388
+ }, "Didn't receive OTP?", " ", /*#__PURE__*/React__default.createElement("span", {
20389
+ style: {
20390
+ color: "#00497e",
20391
+ cursor: "pointer",
20392
+ fontWeight: "600",
20393
+ textDecoration: "underline"
20394
+ },
20395
+ onClick: handleResendOtp
20396
+ }, "Resend OTP"))), /*#__PURE__*/React__default.createElement("div", {
20397
+ style: {
20398
+ display: "flex",
20399
+ justifyContent: isMobileView ? "stretch" : "flex-end"
20400
+ }
20401
+ }, /*#__PURE__*/React__default.createElement("button", {
20402
+ onClick: handleVerify,
20403
+ disabled: isLoading || otp.length < 6,
20404
+ style: {
20405
+ padding: isMobileView ? "12px 16px" : "10px 28px",
20406
+ backgroundColor: isLoading || otp.length < 6 ? "#6c757d" : "#00497e",
20407
+ color: "#fff",
20408
+ border: "none",
20409
+ borderRadius: "4px",
20410
+ cursor: isLoading || otp.length < 6 ? "not-allowed" : "pointer",
20411
+ fontWeight: "bold",
20412
+ fontSize: isMobileView ? "14px" : "15px",
20413
+ width: isMobileView ? "100%" : "auto",
20414
+ transition: "background-color 0.2s",
20415
+ opacity: isLoading || otp.length < 6 ? 0.5 : 1
20416
+ }
20417
+ }, isLoading ? "Verifying..." : "Verify & Proceed \u2192")))), showToast && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
20418
+ error: showToast.key === "error",
20419
+ warning: showToast.key === "warning",
20420
+ label: showToast.message,
20421
+ onClose: () => setShowToast(null),
20422
+ isDleteBtn: true
20423
+ }));
20424
+ };
20425
+
20344
20426
  let actions$1 = [];
20345
20427
  const getAction$1 = flow => {
20346
20428
  switch (flow) {
@@ -21868,7 +21950,7 @@ function cleanEscapedString(input) {
21868
21950
  }
21869
21951
 
21870
21952
  const WSDisconnectionForm = _ref => {
21871
- var _applicationData$WSDi, _applicationData$appl2, _disconnectionData$ty8, _disconnectionData$ty9, _disconnectionData$ty0, _disconnectionData$ty1, _disconnectionData$ty10, _disconnectionData$re6, _disconnectionData$re7, _disconnectionData$re8, _wsDocs$Disconnection;
21953
+ var _location$state, _applicationData$appl, _applicationData$appl2, _applicationData$appl3, _applicationData$appl4, _applicationData$appl5, _applicationData$WSDi, _applicationData$appl6, _disconnectionData$ty8, _disconnectionData$ty9, _disconnectionData$ty0, _disconnectionData$ty1, _disconnectionData$ty10, _disconnectionData$re6, _disconnectionData$re7, _disconnectionData$re8, _wsDocs$Disconnection, _disconnectionData$re9, _disconnectionData$re0, _disconnectionData$ty11, _disconnectionData$ty12, _disconnectionData$ty13, _disconnectionData$ty14;
21872
21954
  let {
21873
21955
  t,
21874
21956
  config,
@@ -21878,7 +21960,13 @@ const WSDisconnectionForm = _ref => {
21878
21960
  const stateCode = Digit.ULBService.getStateId();
21879
21961
  const tenantId = Digit.ULBService.getCurrentTenantId();
21880
21962
  const isMobile = window.Digit.Utils.browser.isMobile();
21881
- const applicationData = Digit.SessionStorage.get("WS_DISCONNECTION");
21963
+ const storedApplicationData = Digit.SessionStorage.get("WS_DISCONNECTION") || {};
21964
+ const location = reactRouterDom.useLocation();
21965
+ const applicationData = {
21966
+ ...storedApplicationData,
21967
+ applicationData: ((_location$state = location.state) === null || _location$state === void 0 ? void 0 : _location$state.connection) || storedApplicationData.applicationData || {}
21968
+ };
21969
+ const serviceType = (applicationData === null || applicationData === void 0 ? void 0 : applicationData.serviceType) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicationData) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.serviceType) || (applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl2 = applicationData.applicationData) === null || _applicationData$appl2 === void 0 ? void 0 : (_applicationData$appl3 = _applicationData$appl2.additionalDetails) === null || _applicationData$appl3 === void 0 ? void 0 : (_applicationData$appl4 = _applicationData$appl3.serviceType) === null || _applicationData$appl4 === void 0 ? void 0 : _applicationData$appl4.code) || (applicationData !== null && applicationData !== void 0 && (_applicationData$appl5 = applicationData.applicationData) !== null && _applicationData$appl5 !== void 0 && _applicationData$appl5.sewerage ? "SEWERAGE" : "WATER");
21882
21970
  const history = reactRouterDom.useHistory();
21883
21971
  const match = reactRouterDom.useRouteMatch();
21884
21972
  const [disconnectionData, setDisconnectionData] = React.useState({
@@ -21979,14 +22067,6 @@ const WSDisconnectionForm = _ref => {
21979
22067
  const handleSubmit = () => onSelect(config.key, {
21980
22068
  WSDisConnectionForm: disconnectionData
21981
22069
  });
21982
- const handleEmployeeSubmit = () => {
21983
- onSelect(config.key, {
21984
- WSDisConnectionForm: {
21985
- ...disconnectionData,
21986
- documents: documents
21987
- }
21988
- });
21989
- };
21990
22070
  const onSkip = () => onSelect();
21991
22071
  const filedChange = val => {
21992
22072
  const oldData = {
@@ -22033,8 +22113,7 @@ const WSDisconnectionForm = _ref => {
22033
22113
  setError(null);
22034
22114
  }, 3000);
22035
22115
  } else {
22036
- var _applicationData$appl;
22037
- return Promise.resolve(createPayloadOfWSDisconnection(data, applicationData, applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl = applicationData.applicationData) === null || _applicationData$appl === void 0 ? void 0 : _applicationData$appl.serviceType)).then(function (payload) {
22116
+ return Promise.resolve(createPayloadOfWSDisconnection(data, applicationData, serviceType)).then(function (payload) {
22038
22117
  const _temp4 = function (_payload$WaterConnect) {
22039
22118
  if (payload !== null && payload !== void 0 && (_payload$WaterConnect = payload.WaterConnection) !== null && _payload$WaterConnect !== void 0 && _payload$WaterConnect.water) {
22040
22119
  const _temp = function () {
@@ -22313,29 +22392,111 @@ const WSDisconnectionForm = _ref => {
22313
22392
  onClose: () => setError(null)
22314
22393
  }))));
22315
22394
  }
22316
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.FormStep, {
22317
- config: config,
22318
- onSelect: handleEmployeeSubmit,
22319
- onSkip: onSkip,
22320
- t: t
22321
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t("CS_TITLE_APPLICATION_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
22395
+ const isMobileForm = window.Digit.Utils.browser.isMobile();
22396
+ const sectionStyle = {
22397
+ padding: isMobileForm ? "12px" : "20px",
22398
+ backgroundColor: "#f9f9f9",
22399
+ borderRadius: "8px",
22400
+ borderLeft: "4px solid #00497e",
22401
+ marginBottom: "24px",
22402
+ width: "100%"
22403
+ };
22404
+ const headerFlexStyle = {
22405
+ display: "flex",
22406
+ alignItems: "center",
22407
+ gap: "10px",
22408
+ marginBottom: "16px"
22409
+ };
22410
+ const numberBadgeStyle = {
22411
+ width: "32px",
22412
+ height: "32px",
22413
+ borderRadius: "50%",
22414
+ backgroundColor: "#00497e",
22415
+ color: "#fff",
22416
+ display: "flex",
22417
+ alignItems: "center",
22418
+ justifyContent: "center",
22419
+ fontWeight: "bold",
22420
+ fontSize: "14px",
22421
+ flexShrink: 0
22422
+ };
22423
+ const fieldStyle = {
22424
+ display: "flex",
22425
+ flexDirection: isMobileForm ? "column" : "row",
22426
+ alignItems: isMobileForm ? "flex-start" : "center",
22427
+ justifyContent: "space-between",
22428
+ gap: "10px",
22429
+ width: "100%",
22430
+ marginBottom: "16px"
22431
+ };
22432
+ const labelStyle = {
22433
+ fontWeight: "700",
22434
+ color: "#0B0C0C",
22435
+ fontSize: "16px",
22436
+ margin: 0,
22437
+ display: "flex",
22438
+ alignItems: "center",
22439
+ width: isMobileForm ? "100%" : "30%"
22440
+ };
22441
+ const inputWrapperStyle = {
22442
+ width: isMobileForm ? "100%" : "65%"
22443
+ };
22444
+ return /*#__PURE__*/React__default.createElement("div", {
22445
+ style: {
22446
+ width: "100%"
22447
+ }
22448
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Card, {
22449
+ style: {
22450
+ padding: isMobileForm ? "12px" : "24px"
22451
+ }
22452
+ }, /*#__PURE__*/React__default.createElement("div", {
22453
+ style: sectionStyle
22454
+ }, /*#__PURE__*/React__default.createElement("div", {
22455
+ style: headerFlexStyle
22456
+ }, /*#__PURE__*/React__default.createElement("div", {
22457
+ style: numberBadgeStyle
22458
+ }, "1"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
22459
+ style: {
22460
+ margin: 0
22461
+ }
22462
+ }, t("CS_TITLE_APPLICATION_DETAILS"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
22322
22463
  key: t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
22323
- label: `${t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL")}`,
22324
- text: applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl2 = applicationData.applicationData) === null || _applicationData$appl2 === void 0 ? void 0 : _applicationData$appl2.connectionNo,
22464
+ label: t("PDF_STATIC_LABEL_CONSUMER_NUMBER_LABEL"),
22465
+ text: applicationData === null || applicationData === void 0 ? void 0 : (_applicationData$appl6 = applicationData.applicationData) === null || _applicationData$appl6 === void 0 ? void 0 : _applicationData$appl6.connectionNo,
22325
22466
  className: "border-none"
22326
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, null, t("WS_DISCONNECTION_TYPE") + "*", /*#__PURE__*/React__default.createElement("div", {
22327
- className: `tooltip`,
22467
+ }))), /*#__PURE__*/React__default.createElement("div", {
22468
+ style: sectionStyle
22469
+ }, /*#__PURE__*/React__default.createElement("div", {
22470
+ style: headerFlexStyle
22471
+ }, /*#__PURE__*/React__default.createElement("div", {
22472
+ style: numberBadgeStyle
22473
+ }, "2"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
22328
22474
  style: {
22329
- marginLeft: "8px"
22475
+ margin: 0
22476
+ }
22477
+ }, t("WS_DISCONNECTION_TYPE"), " *", /*#__PURE__*/React__default.createElement("div", {
22478
+ className: "tooltip",
22479
+ style: {
22480
+ marginLeft: "8px",
22481
+ position: "relative",
22482
+ top: "2px",
22483
+ display: "inline-block"
22330
22484
  }
22331
22485
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.InfoIcon, null), /*#__PURE__*/React__default.createElement("span", {
22332
22486
  className: "tooltiptext",
22333
22487
  style: {
22334
- whiteSpace: Digit.Utils.browser.isMobile() ? "unset" : "nowrap",
22488
+ whiteSpace: isMobileForm ? "unset" : "nowrap",
22335
22489
  fontSize: "medium",
22336
- width: Digit.Utils.browser.isMobile() && window.location.href.includes("/employee") ? "200px" : ""
22490
+ width: isMobileForm ? "250px" : "400px"
22337
22491
  }
22338
- }, `${t(`WS_DISCONNECTION_PERMANENT_TOOLTIP`)}`, /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("br", null), `${t(`WS_DISCONNECTION_TEMPORARY_TOOLTIP`)}`))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
22492
+ }, t("WS_DISCONNECTION_PERMANENT_TOOLTIP"), /*#__PURE__*/React__default.createElement("br", null), /*#__PURE__*/React__default.createElement("br", null), t("WS_DISCONNECTION_TEMPORARY_TOOLTIP"))))), /*#__PURE__*/React__default.createElement("div", {
22493
+ style: {
22494
+ display: "flex",
22495
+ flexWrap: "wrap",
22496
+ gap: "16px",
22497
+ paddingLeft: isMobileForm ? "0" : "42px"
22498
+ }
22499
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
22339
22500
  t: t,
22340
22501
  options: disconnectionTypeList,
22341
22502
  optionsKey: "i18nKey",
@@ -22349,78 +22510,99 @@ const WSDisconnectionForm = _ref => {
22349
22510
  labelKey: "WS_DISCONNECTION_TYPE",
22350
22511
  style: {
22351
22512
  display: "flex",
22352
- gap: "0px 3rem"
22513
+ flexWrap: "wrap",
22514
+ gap: "1rem",
22515
+ margin: 0
22353
22516
  },
22354
- inputStyle: isMobile ? {
22517
+ inputStyle: isMobileForm ? {
22355
22518
  marginLeft: "unset"
22356
22519
  } : {}
22357
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
22520
+ }))), /*#__PURE__*/React__default.createElement("div", {
22521
+ style: sectionStyle
22522
+ }, /*#__PURE__*/React__default.createElement("div", {
22523
+ style: headerFlexStyle
22524
+ }, /*#__PURE__*/React__default.createElement("div", {
22525
+ style: numberBadgeStyle
22526
+ }, "3"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
22358
22527
  style: {
22359
- marginTop: "-5px",
22360
- fontWeight: "700",
22361
- display: "inline"
22362
- },
22363
- className: "card-label-smaller"
22364
- }, t("WS_DISCONNECTION_PROPOSED_DATE") + "*", /*#__PURE__*/React__default.createElement("div", {
22365
- className: `tooltip`,
22528
+ margin: 0
22529
+ }
22530
+ }, t("WS_DISCONNECTION_PROPOSED_DATE"))), /*#__PURE__*/React__default.createElement("div", {
22366
22531
  style: {
22367
- position: "absolute",
22368
- marginLeft: "4px"
22532
+ paddingLeft: isMobileForm ? "0" : "42px"
22533
+ }
22534
+ }, /*#__PURE__*/React__default.createElement("div", {
22535
+ style: fieldStyle
22536
+ }, /*#__PURE__*/React__default.createElement("h4", {
22537
+ style: labelStyle
22538
+ }, t("WS_DISCONNECTION_PROPOSED_DATE"), " *", /*#__PURE__*/React__default.createElement("div", {
22539
+ className: "tooltip",
22540
+ style: {
22541
+ marginLeft: "8px",
22542
+ position: "relative",
22543
+ top: "2px"
22369
22544
  }
22370
22545
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.InfoIcon, null), /*#__PURE__*/React__default.createElement("span", {
22371
22546
  className: "tooltiptext",
22372
22547
  style: {
22373
- whiteSpace: Digit.Utils.browser.isMobile() ? "unset" : "nowrap",
22374
- fontSize: "medium"
22548
+ whiteSpace: isMobileForm ? "unset" : "nowrap",
22549
+ fontSize: "medium",
22550
+ width: isMobileForm ? "200px" : "300px"
22375
22551
  }
22376
22552
  }, t("SHOULD_BE_DATE") + " " + (slaData === null || slaData === void 0 ? void 0 : slaData.slaDays) + " " + t("DAYS_OF_APPLICATION_DATE")))), /*#__PURE__*/React__default.createElement("div", {
22377
- className: "field"
22553
+ style: inputWrapperStyle
22378
22554
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.DatePicker, {
22379
22555
  date: disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.date,
22380
- onChange: date => {
22381
- setDisconnectionData({
22382
- ...disconnectionData,
22383
- date: date
22384
- });
22385
- }
22386
- }))), ((_disconnectionData$ty1 = disconnectionData.type) === null || _disconnectionData$ty1 === void 0 ? void 0 : (_disconnectionData$ty10 = _disconnectionData$ty1.value) === null || _disconnectionData$ty10 === void 0 ? void 0 : _disconnectionData$ty10.code) === "Temporary" ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
22387
- style: {
22388
- marginTop: "-5px",
22389
- fontWeight: "700",
22390
- display: "inline"
22391
- },
22392
- className: "card-label-smaller"
22393
- }, t("WS_DISCONNECTION_PROPOSED_END_DATE") + "*", /*#__PURE__*/React__default.createElement("div", {
22394
- className: `tooltip`,
22556
+ onChange: date => setDisconnectionData({
22557
+ ...disconnectionData,
22558
+ date: date
22559
+ })
22560
+ }))), ((_disconnectionData$ty1 = disconnectionData.type) === null || _disconnectionData$ty1 === void 0 ? void 0 : (_disconnectionData$ty10 = _disconnectionData$ty1.value) === null || _disconnectionData$ty10 === void 0 ? void 0 : _disconnectionData$ty10.code) === "Temporary" && /*#__PURE__*/React__default.createElement("div", {
22561
+ style: fieldStyle
22562
+ }, /*#__PURE__*/React__default.createElement("h4", {
22563
+ style: labelStyle
22564
+ }, t("WS_DISCONNECTION_PROPOSED_END_DATE"), " *", /*#__PURE__*/React__default.createElement("div", {
22565
+ className: "tooltip",
22395
22566
  style: {
22396
- position: "absolute",
22397
- marginLeft: "4px"
22567
+ marginLeft: "8px",
22568
+ position: "relative",
22569
+ top: "2px"
22398
22570
  }
22399
22571
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.InfoIcon, null), /*#__PURE__*/React__default.createElement("span", {
22400
22572
  className: "tooltiptext",
22401
22573
  style: {
22402
- whiteSpace: Digit.Utils.browser.isMobile() ? "unset" : "nowrap",
22403
- fontSize: "medium"
22574
+ whiteSpace: isMobileForm ? "unset" : "nowrap",
22575
+ fontSize: "medium",
22576
+ width: isMobileForm ? "200px" : "300px"
22404
22577
  }
22405
- }, t("SHOULD_BE_DATE") + " " + " " + t("DAYS_OF_APPLICATION_END_DATE")))), /*#__PURE__*/React__default.createElement("div", {
22406
- className: "field"
22578
+ }, t("SHOULD_BE_DATE") + " " + t("DAYS_OF_APPLICATION_END_DATE")))), /*#__PURE__*/React__default.createElement("div", {
22579
+ style: inputWrapperStyle
22407
22580
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.DatePicker, {
22408
22581
  date: disconnectionData === null || disconnectionData === void 0 ? void 0 : disconnectionData.endDate,
22409
- onChange: date => {
22410
- setDisconnectionData({
22411
- ...disconnectionData,
22412
- endDate: date
22413
- });
22582
+ onChange: date => setDisconnectionData({
22583
+ ...disconnectionData,
22584
+ endDate: date
22585
+ })
22586
+ }))))), /*#__PURE__*/React__default.createElement("div", {
22587
+ style: sectionStyle
22588
+ }, /*#__PURE__*/React__default.createElement("div", {
22589
+ style: headerFlexStyle
22590
+ }, /*#__PURE__*/React__default.createElement("div", {
22591
+ style: numberBadgeStyle
22592
+ }, "4"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
22593
+ style: {
22594
+ margin: 0
22414
22595
  }
22415
- }))) : "", /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
22596
+ }, t("WS_DISCONNECTION_REASON"), " *")), /*#__PURE__*/React__default.createElement("div", {
22416
22597
  style: {
22417
- marginTop: "-5px",
22418
- fontWeight: "700",
22419
- display: "inline"
22420
- },
22421
- className: "card-label-smaller"
22422
- }, t("WS_DISCONNECTION_REASON") + "*"), /*#__PURE__*/React__default.createElement("div", {
22423
- className: "field"
22598
+ paddingLeft: isMobileForm ? "0" : "42px"
22599
+ }
22600
+ }, /*#__PURE__*/React__default.createElement("div", {
22601
+ style: fieldStyle
22602
+ }, /*#__PURE__*/React__default.createElement("h4", {
22603
+ style: labelStyle
22604
+ }, t("WS_DISCONNECTION_REASON"), " *"), /*#__PURE__*/React__default.createElement("div", {
22605
+ style: inputWrapperStyle
22424
22606
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
22425
22607
  option: disconnectionReasonList,
22426
22608
  isMandatory: false,
@@ -22434,32 +22616,41 @@ const WSDisconnectionForm = _ref => {
22434
22616
  value: e
22435
22617
  }),
22436
22618
  labelKey: "WS_DISCONNECTION_REASON"
22437
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
22619
+ }))))), /*#__PURE__*/React__default.createElement("div", {
22620
+ style: sectionStyle
22621
+ }, /*#__PURE__*/React__default.createElement("div", {
22622
+ style: headerFlexStyle
22623
+ }, /*#__PURE__*/React__default.createElement("div", {
22624
+ style: numberBadgeStyle
22625
+ }, "5"), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSectionHeader, {
22438
22626
  style: {
22439
- marginBottom: "8px"
22627
+ margin: 0
22440
22628
  }
22441
- }, t("WS_DISCONNECTION_DOCUMENTS") + "*"), wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((document, index) => {
22442
- return /*#__PURE__*/React__default.createElement(SelectDocument$1, {
22443
- key: index,
22444
- document: document,
22445
- t: t,
22446
- error: docError,
22447
- setError: setDocError,
22448
- setDocuments: setDocuments,
22449
- documents: documents,
22450
- setCheckRequiredFields: setCheckRequiredFields
22451
- });
22452
- }), docError && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
22453
- error: (docError === null || docError === void 0 ? void 0 : docError.key) === "error" ? true : false,
22629
+ }, t("WS_DISCONNECTION_DOCUMENTS"), " *")), /*#__PURE__*/React__default.createElement("div", {
22630
+ style: {
22631
+ paddingLeft: isMobileForm ? "0" : "42px"
22632
+ }
22633
+ }, wsDocs === null || wsDocs === void 0 ? void 0 : (_wsDocs$Disconnection = wsDocs.DisconnectionDocuments) === null || _wsDocs$Disconnection === void 0 ? void 0 : _wsDocs$Disconnection.map((document, index) => /*#__PURE__*/React__default.createElement(SelectDocument$1, {
22634
+ key: index,
22635
+ document: document,
22636
+ t: t,
22637
+ error: docError,
22638
+ setError: setDocError,
22639
+ setDocuments: setDocuments,
22640
+ documents: documents,
22641
+ setCheckRequiredFields: setCheckRequiredFields,
22642
+ isMobileForm: isMobileForm
22643
+ })))), docError && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
22644
+ error: (docError === null || docError === void 0 ? void 0 : docError.key) === "error",
22454
22645
  label: t(docError === null || docError === void 0 ? void 0 : docError.message),
22455
22646
  warning: docError === null || docError === void 0 ? void 0 : docError.warning,
22456
22647
  onClose: () => setDocError(null)
22457
22648
  }), error && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Toast, {
22458
- error: (error === null || error === void 0 ? void 0 : error.key) === "error" ? true : false,
22649
+ error: (error === null || error === void 0 ? void 0 : error.key) === "error",
22459
22650
  label: t(error === null || error === void 0 ? void 0 : error.message),
22460
22651
  warning: error === null || error === void 0 ? void 0 : error.warning,
22461
22652
  onClose: () => setError(null)
22462
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
22653
+ }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, {
22463
22654
  style: {
22464
22655
  display: "flex",
22465
22656
  justifyContent: "flex-end",
@@ -22468,10 +22659,11 @@ const WSDisconnectionForm = _ref => {
22468
22659
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
22469
22660
  label: t("ACTION_TEST_SUBMIT"),
22470
22661
  onSubmit: () => onSubmit(disconnectionData),
22662
+ disabled: wsDocsLoading || documents.length < 2 || !(disconnectionData !== null && disconnectionData !== void 0 && (_disconnectionData$re9 = disconnectionData.reason) !== null && _disconnectionData$re9 !== void 0 && (_disconnectionData$re0 = _disconnectionData$re9.value) !== null && _disconnectionData$re0 !== void 0 && _disconnectionData$re0.code) || !(disconnectionData !== null && disconnectionData !== void 0 && disconnectionData.date) || !(disconnectionData !== null && disconnectionData !== void 0 && (_disconnectionData$ty11 = disconnectionData.type) !== null && _disconnectionData$ty11 !== void 0 && (_disconnectionData$ty12 = _disconnectionData$ty11.value) !== null && _disconnectionData$ty12 !== void 0 && _disconnectionData$ty12.code) || (disconnectionData === null || disconnectionData === void 0 ? void 0 : (_disconnectionData$ty13 = disconnectionData.type) === null || _disconnectionData$ty13 === void 0 ? void 0 : (_disconnectionData$ty14 = _disconnectionData$ty13.value) === null || _disconnectionData$ty14 === void 0 ? void 0 : _disconnectionData$ty14.code) === "Temporary" && !(disconnectionData !== null && disconnectionData !== void 0 && disconnectionData.endDate),
22471
22663
  style: {
22472
22664
  margin: "10px 10px 0px 0px"
22473
22665
  }
22474
- })));
22666
+ }))));
22475
22667
  };
22476
22668
  function SelectDocument$1(_ref2) {
22477
22669
  var _doc$dropdownData;
@@ -22483,7 +22675,8 @@ function SelectDocument$1(_ref2) {
22483
22675
  error,
22484
22676
  setError,
22485
22677
  documents,
22486
- setCheckRequiredFields
22678
+ setCheckRequiredFields,
22679
+ isMobileForm
22487
22680
  } = _ref2;
22488
22681
  const filteredDocument = documents === null || documents === void 0 ? void 0 : documents.filter(item => {
22489
22682
  var _item$documentType;
@@ -22562,19 +22755,41 @@ function SelectDocument$1(_ref2) {
22562
22755
  }
22563
22756
  })();
22564
22757
  }, [file]);
22758
+ const fieldStyle = {
22759
+ display: "flex",
22760
+ flexDirection: isMobileForm ? "column" : "row",
22761
+ alignItems: isMobileForm ? "flex-start" : "flex-start",
22762
+ justifyContent: "space-between",
22763
+ gap: "10px",
22764
+ width: "100%",
22765
+ marginBottom: "16px"
22766
+ };
22767
+ const labelStyle = {
22768
+ fontWeight: "700",
22769
+ color: "#0B0C0C",
22770
+ fontSize: "16px",
22771
+ margin: 0,
22772
+ display: "flex",
22773
+ alignItems: "center",
22774
+ width: isMobileForm ? "100%" : "30%"
22775
+ };
22776
+ const inputWrapperStyle = {
22777
+ width: isMobileForm ? "100%" : "65%"
22778
+ };
22565
22779
  return /*#__PURE__*/React__default.createElement("div", {
22566
22780
  style: {
22567
22781
  marginBottom: "24px"
22568
22782
  }
22569
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
22783
+ }, /*#__PURE__*/React__default.createElement("div", {
22784
+ style: fieldStyle
22785
+ }, /*#__PURE__*/React__default.createElement("h4", {
22786
+ style: labelStyle
22787
+ }, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey), " *"), /*#__PURE__*/React__default.createElement("div", {
22788
+ style: inputWrapperStyle
22789
+ }, /*#__PURE__*/React__default.createElement("div", {
22570
22790
  style: {
22571
- marginTop: "-5px",
22572
- fontWeight: "700",
22573
- display: "inline"
22574
- },
22575
- className: "card-label-smaller"
22576
- }, t(doc === null || doc === void 0 ? void 0 : doc.i18nKey) + "*"), /*#__PURE__*/React__default.createElement("div", {
22577
- className: "field"
22791
+ marginBottom: "8px"
22792
+ }
22578
22793
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
22579
22794
  t: t,
22580
22795
  isMandatory: false,
@@ -22582,7 +22797,7 @@ function SelectDocument$1(_ref2) {
22582
22797
  selected: selectedDocument,
22583
22798
  optionKey: "i18nKey",
22584
22799
  select: handleSelectDocument
22585
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
22800
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
22586
22801
  id: `noc-doc-1-${key}`,
22587
22802
  extraStyleName: "propertyCreate",
22588
22803
  accept: "image/*, .pdf, .png, .jpeg, .jpg",
@@ -24057,76 +24272,9 @@ const WSDeclaration = _ref => {
24057
24272
  return () => clearTimeout(timer);
24058
24273
  }
24059
24274
  }, [formValue, signatureFileStoreId, signatureFile, config === null || config === void 0 ? void 0 : config.key, onSelect]);
24060
- const onUploadSignature = function (e) {
24061
- try {
24062
- var _e$target$files;
24063
- const file = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
24064
- const _temp3 = function () {
24065
- if (file) {
24066
- const _temp2 = function () {
24067
- if (file.size >= 5242880) {} else {
24068
- const _temp = _catch(function () {
24069
- return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getStateId())).then(function (response) {
24070
- var _response$data, _response$data$files;
24071
- if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
24072
- var _response$data2, _response$data2$files;
24073
- const fsId = response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId;
24074
- setSignatureFileStoreId(fsId);
24075
- setSignatureFile(file);
24076
- setValue("signatureFileStoreId", fsId);
24077
- setValue("signatureFile", file);
24078
- setValue("signatureFileName", file.name);
24079
- }
24080
- });
24081
- }, function (err) {
24082
- console.error("Signature upload failed", err);
24083
- });
24084
- if (_temp && _temp.then) return _temp.then(function () {});
24085
- }
24086
- }();
24087
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
24088
- }
24089
- }();
24090
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
24091
- } catch (e) {
24092
- return Promise.reject(e);
24093
- }
24094
- };
24095
24275
  const [showDocModal, setShowDocModal] = React.useState(false);
24096
24276
  const [docFileUrl, setDocFileUrl] = React.useState("");
24097
24277
  const [docFileType, setDocFileType] = React.useState("");
24098
- const viewDocument = function () {
24099
- try {
24100
- const _temp5 = function () {
24101
- if (signatureFileStoreId) {
24102
- const _temp4 = _catch(function () {
24103
- return Promise.resolve(Digit.UploadServices.FileFetchbyid(signatureFileStoreId, Digit.ULBService.getStateId())).then(function (res) {
24104
- if (res !== null && res !== void 0 && res.data) {
24105
- const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
24106
- type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
24107
- });
24108
- const fileURL = URL.createObjectURL(blob);
24109
- setDocFileUrl(fileURL);
24110
- const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
24111
- if (contentType.toLowerCase().includes("pdf")) {
24112
- setDocFileType("pdf");
24113
- } else {
24114
- setDocFileType("image");
24115
- }
24116
- setShowDocModal(true);
24117
- }
24118
- });
24119
- }, function (err) {
24120
- console.error("Failed to fetch file URL via FileFetchbyid", err);
24121
- });
24122
- if (_temp4 && _temp4.then) return _temp4.then(function () {});
24123
- }
24124
- }();
24125
- return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(function () {}) : void 0);
24126
- } catch (e) {
24127
- return Promise.reject(e);
24128
- }
24129
- };
24130
24278
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
24131
24279
  title: t("WS_DECLARATION"),
24132
24280
  defaultOpen: true
@@ -24181,102 +24329,7 @@ const WSDeclaration = _ref => {
24181
24329
  select: props.onChange,
24182
24330
  t: t
24183
24331
  })
24184
- })))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_UPLOAD_SIGNATURE_FILE")), /*#__PURE__*/React__default.createElement("div", {
24185
- className: "field",
24186
- style: {
24187
- display: "flex",
24188
- gap: "10px",
24189
- alignItems: "center"
24190
- }
24191
- }, /*#__PURE__*/React__default.createElement("div", {
24192
- style: {
24193
- flex: 1
24194
- }
24195
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
24196
- onUpload: onUploadSignature,
24197
- onDelete: () => {
24198
- setSignatureFile(null);
24199
- setSignatureFileStoreId(null);
24200
- setValue("signatureFile", null);
24201
- setValue("signatureFileStoreId", null);
24202
- },
24203
- id: "ws-declaration-signature",
24204
- message: signatureFileStoreId ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`CS_ACTION_NO_FILEUPLOADED`),
24205
- textStyles: {
24206
- width: "100%"
24207
- },
24208
- buttonType: "button",
24209
- accept: "image/*, .pdf, .png, .jpeg, .jpg",
24210
- uploadedFiles: signatureFileStoreId && !signatureFile ? [[(formValue === null || formValue === void 0 ? void 0 : formValue.signatureFileName) || "Document", {
24211
- fileStoreId: signatureFileStoreId
24212
- }]] : undefined,
24213
- removeTargetedFile: () => {
24214
- setSignatureFile(null);
24215
- setSignatureFileStoreId(null);
24216
- setValue("signatureFile", null);
24217
- setValue("signatureFileStoreId", null);
24218
- setValue("signatureFileName", "");
24219
- }
24220
- })), signatureFileStoreId && /*#__PURE__*/React__default.createElement("div", {
24221
- onClick: viewDocument,
24222
- style: {
24223
- cursor: "pointer"
24224
- }
24225
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null))))))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
24226
- open: showDocModal,
24227
- headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
24228
- headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
24229
- className: "icon-bg-secondary",
24230
- onClick: () => setShowDocModal(false),
24231
- style: {
24232
- cursor: "pointer",
24233
- padding: "5px"
24234
- }
24235
- }, /*#__PURE__*/React__default.createElement("svg", {
24236
- xmlns: "http://www.w3.org/2000/svg",
24237
- viewBox: "0 0 24 24",
24238
- fill: "#FFFFFF",
24239
- width: "24",
24240
- height: "24"
24241
- }, /*#__PURE__*/React__default.createElement("path", {
24242
- d: "M0 0h24v24H0V0z",
24243
- fill: "none"
24244
- }), /*#__PURE__*/React__default.createElement("path", {
24245
- d: "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12 19 6.41z"
24246
- }))),
24247
- center: true,
24248
- actionCancelOnSubmit: () => setShowDocModal(false),
24249
- actionCancelLabel: t("CS_COMMON_CLOSE") || "Close",
24250
- popupStyles: {
24251
- width: "80%",
24252
- maxWidth: "800px"
24253
- }
24254
- }, /*#__PURE__*/React__default.createElement("div", {
24255
- style: {
24256
- display: "flex",
24257
- justifyContent: "center",
24258
- alignItems: "center",
24259
- padding: "20px",
24260
- minHeight: "300px"
24261
- }
24262
- }, docFileType === "pdf" ? /*#__PURE__*/React__default.createElement("iframe", {
24263
- src: docFileUrl,
24264
- title: "Document Preview",
24265
- width: "100%",
24266
- height: "500px",
24267
- style: {
24268
- border: "none"
24269
- }
24270
- }) : /*#__PURE__*/React__default.createElement("img", {
24271
- src: docFileUrl,
24272
- alt: "Document Preview",
24273
- style: {
24274
- maxWidth: "100%",
24275
- maxHeight: "500px",
24276
- objectFit: "contain",
24277
- borderRadius: "4px"
24278
- }
24279
- }))));
24332
+ })))))));
24280
24333
  };
24281
24334
 
24282
24335
  const WSDjbEmployee = _ref => {
@@ -24328,27 +24381,52 @@ const WSDjbEmployee = _ref => {
24328
24381
  return (formData === null || formData === void 0 ? void 0 : (_formData$djbEmployee1 = formData.djbEmployee) === null || _formData$djbEmployee1 === void 0 ? void 0 : _formData$djbEmployee1.document) || (formData === null || formData === void 0 ? void 0 : (_formData$additionalD1 = formData.additionalDetails) === null || _formData$additionalD1 === void 0 ? void 0 : _formData$additionalD1.document) || null;
24329
24382
  });
24330
24383
  const [errorUpload, setErrorUpload] = React.useState(null);
24384
+ const handleView = function (fileStoreId, tenantId) {
24385
+ try {
24386
+ const _temp = _catch(function () {
24387
+ return Promise.resolve(Digit.UploadServices.Filefetch([fileStoreId], tenantId)).then(function (response) {
24388
+ var _response$data, _response$data$fileSt, _response$data$fileSt2;
24389
+ const url = response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$fileSt = _response$data.fileStoreIds) === null || _response$data$fileSt === void 0 ? void 0 : (_response$data$fileSt2 = _response$data$fileSt[0]) === null || _response$data$fileSt2 === void 0 ? void 0 : _response$data$fileSt2.url;
24390
+ if (url) {
24391
+ const differentFormats = (url === null || url === void 0 ? void 0 : url.split(",")) || [];
24392
+ let fileURL = "";
24393
+ differentFormats.map(link => {
24394
+ if (!link.includes("large") && !link.includes("medium") && !link.includes("small")) {
24395
+ fileURL = link;
24396
+ }
24397
+ });
24398
+ window.open(fileURL || differentFormats[0], "_blank");
24399
+ }
24400
+ });
24401
+ }, function (error) {
24402
+ console.error("Error fetching file URL:", error);
24403
+ });
24404
+ return Promise.resolve(_temp && _temp.then ? _temp.then(function () {}) : void 0);
24405
+ } catch (e) {
24406
+ return Promise.reject(e);
24407
+ }
24408
+ };
24331
24409
  React.useEffect(() => {
24332
24410
  (function () {
24333
24411
  try {
24334
24412
  setErrorUpload(null);
24335
- const _temp3 = function () {
24413
+ const _temp4 = function () {
24336
24414
  if (file) {
24337
- const _temp2 = function () {
24415
+ const _temp3 = function () {
24338
24416
  if (file.size >= 5242880) {
24339
24417
  setErrorUpload({
24340
24418
  key: "error",
24341
24419
  message: "CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"
24342
24420
  });
24343
24421
  } else {
24344
- const _temp = _catch(function () {
24422
+ const _temp2 = _catch(function () {
24345
24423
  setUploadedFile(null);
24346
24424
  return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0])).then(function (response) {
24347
- var _response$data, _response$data$files;
24348
- if ((response === null || response === void 0 ? void 0 : (_response$data = response.data) === null || _response$data === void 0 ? void 0 : (_response$data$files = _response$data.files) === null || _response$data$files === void 0 ? void 0 : _response$data$files.length) > 0) {
24349
- var _response$data2, _response$data2$files, _response$data3, _response$data3$files;
24350
- setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files[0]) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.fileStoreId);
24351
- setValue("document", response === null || response === void 0 ? void 0 : (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : (_response$data3$files = _response$data3.files[0]) === null || _response$data3$files === void 0 ? void 0 : _response$data3$files.fileStoreId);
24425
+ var _response$data2, _response$data2$files;
24426
+ if ((response === null || response === void 0 ? void 0 : (_response$data2 = response.data) === null || _response$data2 === void 0 ? void 0 : (_response$data2$files = _response$data2.files) === null || _response$data2$files === void 0 ? void 0 : _response$data2$files.length) > 0) {
24427
+ var _response$data3, _response$data3$files, _response$data4, _response$data4$files;
24428
+ setUploadedFile(response === null || response === void 0 ? void 0 : (_response$data3 = response.data) === null || _response$data3 === void 0 ? void 0 : (_response$data3$files = _response$data3.files[0]) === null || _response$data3$files === void 0 ? void 0 : _response$data3$files.fileStoreId);
24429
+ setValue("document", response === null || response === void 0 ? void 0 : (_response$data4 = response.data) === null || _response$data4 === void 0 ? void 0 : (_response$data4$files = _response$data4.files[0]) === null || _response$data4$files === void 0 ? void 0 : _response$data4$files.fileStoreId);
24352
24430
  } else {
24353
24431
  setErrorUpload({
24354
24432
  key: "error",
@@ -24362,13 +24440,13 @@ const WSDjbEmployee = _ref => {
24362
24440
  message: "CS_FILE_UPLOAD_ERROR"
24363
24441
  });
24364
24442
  });
24365
- if (_temp && _temp.then) return _temp.then(function () {});
24443
+ if (_temp2 && _temp2.then) return _temp2.then(function () {});
24366
24444
  }
24367
24445
  }();
24368
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
24446
+ if (_temp3 && _temp3.then) return _temp3.then(function () {});
24369
24447
  }
24370
24448
  }();
24371
- return _temp3 && _temp3.then ? _temp3.then(function () {}) : void 0;
24449
+ return _temp4 && _temp4.then ? _temp4.then(function () {}) : void 0;
24372
24450
  } catch (e) {
24373
24451
  Promise.reject(e);
24374
24452
  }
@@ -24421,7 +24499,7 @@ const WSDjbEmployee = _ref => {
24421
24499
  })
24422
24500
  })), isDjbEmployee && /*#__PURE__*/React__default.createElement("div", {
24423
24501
  className: "formcomposer-section-grid"
24424
- }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_EMPLOYEE_ID") + " *"), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24502
+ }, /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_EMPLOYEE_ID")), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24425
24503
  control: control,
24426
24504
  name: "employeeId",
24427
24505
  rules: {
@@ -24430,9 +24508,10 @@ const WSDjbEmployee = _ref => {
24430
24508
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24431
24509
  value: props.value,
24432
24510
  onChange: e => props.onChange(e.target.value),
24433
- onBlur: props.onBlur
24511
+ onBlur: props.onBlur,
24512
+ placeholder: t("WS_EMPLOYEE_ID")
24434
24513
  })
24435
- }))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_DATE_OF_RETIREMENT") + " *"), /*#__PURE__*/React__default.createElement("div", {
24514
+ }))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_DATE_OF_RETIREMENT")), /*#__PURE__*/React__default.createElement("div", {
24436
24515
  className: "field"
24437
24516
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24438
24517
  control: control,
@@ -24444,7 +24523,7 @@ const WSDjbEmployee = _ref => {
24444
24523
  date: props.value,
24445
24524
  onChange: date => props.onChange(date)
24446
24525
  })
24447
- })))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_EMPLOYEE_DESIGNATION") + " *"), /*#__PURE__*/React__default.createElement("div", {
24526
+ })))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_EMPLOYEE_DESIGNATION")), /*#__PURE__*/React__default.createElement("div", {
24448
24527
  className: "field"
24449
24528
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24450
24529
  control: control,
@@ -24455,9 +24534,10 @@ const WSDjbEmployee = _ref => {
24455
24534
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24456
24535
  value: props.value,
24457
24536
  onChange: e => props.onChange(e.target.value),
24458
- onBlur: props.onBlur
24537
+ onBlur: props.onBlur,
24538
+ placeholder: t("WS_EMPLOYEE_DESIGNATION")
24459
24539
  })
24460
- })))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_UPLOAD_EMPLOYEE_ID_DOC") + " *"), /*#__PURE__*/React__default.createElement("div", {
24540
+ })))), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, t("WS_UPLOAD_EMPLOYEE_ID_DOC")), /*#__PURE__*/React__default.createElement("div", {
24461
24541
  className: "field"
24462
24542
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24463
24543
  control: control,
@@ -24468,6 +24548,7 @@ const WSDjbEmployee = _ref => {
24468
24548
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
24469
24549
  id: "employee-doc",
24470
24550
  extraStyleName: "propertyCreate",
24551
+ placeholder: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
24471
24552
  accept: "image/*, .pdf, .png, .jpeg, .jpg",
24472
24553
  onUpload: e => {
24473
24554
  selectfile(e);
@@ -24478,9 +24559,62 @@ const WSDjbEmployee = _ref => {
24478
24559
  props.onChange("");
24479
24560
  },
24480
24561
  message: uploadedFile ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
24481
- error: errorUpload
24562
+ error: errorUpload,
24563
+ uploadedFiles: uploadedFile && !file ? [[(file === null || file === void 0 ? void 0 : file.name) || t("WS_UPLOAD_EMPLOYEE_ID_DOC"), {
24564
+ fileStoreId: uploadedFile
24565
+ }]] : undefined
24482
24566
  })
24483
- }))))));
24567
+ }), uploadedFile && /*#__PURE__*/React__default.createElement("div", {
24568
+ style: {
24569
+ marginTop: "16px",
24570
+ display: "flex",
24571
+ alignItems: "center",
24572
+ gap: "16px",
24573
+ background: "#F3F4F6",
24574
+ padding: "8px 16px",
24575
+ borderRadius: "8px",
24576
+ width: "fit-content",
24577
+ border: "1px solid #E5E7EB"
24578
+ }
24579
+ }, /*#__PURE__*/React__default.createElement("span", {
24580
+ style: {
24581
+ fontSize: "14px",
24582
+ color: "#374151",
24583
+ fontWeight: "600"
24584
+ }
24585
+ }, (file === null || file === void 0 ? void 0 : file.name) || t("WS_UPLOAD_EMPLOYEE_ID_DOC")), /*#__PURE__*/React__default.createElement("div", {
24586
+ style: {
24587
+ display: "flex",
24588
+ gap: "10px"
24589
+ }
24590
+ }, /*#__PURE__*/React__default.createElement("button", {
24591
+ type: "button",
24592
+ onClick: () => handleView(uploadedFile, tenantId),
24593
+ title: t("WS_VIEW_DOCUMENT") || "View Document",
24594
+ style: {
24595
+ border: "none",
24596
+ background: "transparent",
24597
+ color: "#00497e",
24598
+ cursor: "pointer",
24599
+ padding: 0
24600
+ }
24601
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)), /*#__PURE__*/React__default.createElement("button", {
24602
+ type: "button",
24603
+ onClick: () => {
24604
+ setUploadedFile(null);
24605
+ setFile(null);
24606
+ setValue("document", "");
24607
+ },
24608
+ title: "Remove Document",
24609
+ style: {
24610
+ border: "none",
24611
+ background: "transparent",
24612
+ color: "#d32f2f",
24613
+ cursor: "pointer",
24614
+ padding: 0,
24615
+ fontSize: "18px"
24616
+ }
24617
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RemoveIcon, null)))))))));
24484
24618
  if (userType === "citizen") {
24485
24619
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Timeline, {
24486
24620
  currentStep: 2
@@ -24564,7 +24698,7 @@ const DECIMAL_PATTERN$1 = /^\d+(\.\d{1,2})?$/;
24564
24698
  const normalizeCode = value => String(value || "").replace(/[._\s-]/g, "").toUpperCase();
24565
24699
  const getCode = value => typeof value === "object" ? (value === null || value === void 0 ? void 0 : value.code) || (value === null || value === void 0 ? void 0 : value.value) : value;
24566
24700
  const PropertyWaterConnection = _ref => {
24567
- var _formData$cpt3, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _formValue$useDetails3, _formValue$useDetails4, _formValue$useDetails5, _formValue$useDetails6, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11, _errors$useDetails12;
24701
+ var _formData$cpt3, _errors$useDetails, _errors$useDetails2, _errors$useDetails3, _errors$useDetails4, _errors$useDetails5, _errors$useDetails6, _errors$useDetails7, _errors$useDetails8, _errors$useDetails9, _errors$useDetails0, _errors$useDetails1, _errors$useDetails10, _errors$useDetails11;
24568
24702
  let {
24569
24703
  t,
24570
24704
  config,
@@ -24617,7 +24751,7 @@ const PropertyWaterConnection = _ref => {
24617
24751
  categories.forEach(data => data.i18nKey = data.i18nKey || `WS_CATEGORY_${data.code}`);
24618
24752
  setCategoryTypeList(categories);
24619
24753
  }, [wsServicesMastersData]);
24620
- const isPropertyFound = window.location.href.includes("ws/old-application") || window.location.href.includes("/edit-application/");
24754
+ const isPropertyFound = window.location.href.includes("ws/old-application") || window.location.href.includes("/edit-application");
24621
24755
  React.useEffect(() => {
24622
24756
  if (props.register) {
24623
24757
  props.register({
@@ -24817,7 +24951,9 @@ const PropertyWaterConnection = _ref => {
24817
24951
  style: props.style
24818
24952
  }, /*#__PURE__*/React__default.createElement("div", {
24819
24953
  className: "formcomposer-section-grid"
24820
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_CATEGORY_TYPE")}*`), /*#__PURE__*/React__default.createElement("div", {
24954
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_CATEGORY_TYPE")}`, " ", /*#__PURE__*/React__default.createElement("span", {
24955
+ className: "check-page-link-button"
24956
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
24821
24957
  className: "form-field"
24822
24958
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24823
24959
  control: control,
@@ -24832,11 +24968,14 @@ const PropertyWaterConnection = _ref => {
24832
24968
  select: props.onChange,
24833
24969
  t: t,
24834
24970
  onBlur: props.onBlur,
24835
- disable: isPropertyFound
24971
+ disable: isPropertyFound,
24972
+ placeholder: t("WS_CATEGORY_TYPE")
24836
24973
  })
24837
24974
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails = errors.useDetails) === null || _errors$useDetails === void 0 ? void 0 : _errors$useDetails.categoryType) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24838
24975
  style: errorStyle
24839
- }, errors.useDetails.categoryType.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_PROPERTY_CATEGORY")}*`), /*#__PURE__*/React__default.createElement("div", {
24976
+ }, errors.useDetails.categoryType.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_PROPERTY_CATEGORY")}`, " ", /*#__PURE__*/React__default.createElement("span", {
24977
+ className: "check-page-link-button"
24978
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
24840
24979
  className: "form-field"
24841
24980
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24842
24981
  control: control,
@@ -24851,11 +24990,14 @@ const PropertyWaterConnection = _ref => {
24851
24990
  select: props.onChange,
24852
24991
  t: t,
24853
24992
  onBlur: props.onBlur,
24854
- disable: isPropertyFound
24993
+ disable: isPropertyFound,
24994
+ placeholder: t("WS_PROPERTY_CATEGORY")
24855
24995
  })
24856
24996
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails2 = errors.useDetails) === null || _errors$useDetails2 === void 0 ? void 0 : _errors$useDetails2.propertyCategory) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24857
24997
  style: errorStyle
24858
- }, errors.useDetails.propertyCategory.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_PROPERTY_TYPE")}*`), /*#__PURE__*/React__default.createElement("div", {
24998
+ }, errors.useDetails.propertyCategory.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_PROPERTY_TYPE")}`, " ", /*#__PURE__*/React__default.createElement("span", {
24999
+ className: "check-page-link-button"
25000
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
24859
25001
  className: "form-field"
24860
25002
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24861
25003
  control: control,
@@ -24870,11 +25012,14 @@ const PropertyWaterConnection = _ref => {
24870
25012
  select: props.onChange,
24871
25013
  t: t,
24872
25014
  onBlur: props.onBlur,
24873
- disable: isPropertyFound
25015
+ disable: isPropertyFound,
25016
+ placeholder: t("WS_PROPERTY_TYPE")
24874
25017
  })
24875
25018
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails3 = errors.useDetails) === null || _errors$useDetails3 === void 0 ? void 0 : _errors$useDetails3.propertyType) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24876
25019
  style: errorStyle
24877
- }, errors.useDetails.propertyType.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_WATER_CONNECTION_USAGE_TYPE")}*`), /*#__PURE__*/React__default.createElement("div", {
25020
+ }, errors.useDetails.propertyType.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_WATER_CONNECTION_USAGE_TYPE")}`, " ", /*#__PURE__*/React__default.createElement("span", {
25021
+ className: "check-page-link-button"
25022
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
24878
25023
  className: "form-field"
24879
25024
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24880
25025
  control: control,
@@ -24889,15 +25034,21 @@ const PropertyWaterConnection = _ref => {
24889
25034
  select: props.onChange,
24890
25035
  t: t,
24891
25036
  onBlur: props.onBlur,
24892
- disable: isPropertyFound
25037
+ disable: isPropertyFound,
25038
+ placeholder: t("WS_WATER_CONNECTION_USAGE_TYPE")
24893
25039
  })
24894
25040
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails4 = errors.useDetails) === null || _errors$useDetails4 === void 0 ? void 0 : _errors$useDetails4.WaterConnectionUsageType) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24895
25041
  style: errorStyle
24896
- }, errors.useDetails.WaterConnectionUsageType.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_NUMBER_OF_FLOORS")}`), /*#__PURE__*/React__default.createElement("div", {
25042
+ }, errors.useDetails.WaterConnectionUsageType.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_NUMBER_OF_FLOORS")}`, " ", /*#__PURE__*/React__default.createElement("span", {
25043
+ className: "check-page-link-button"
25044
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
24897
25045
  className: "form-field"
24898
25046
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24899
25047
  control: control,
24900
25048
  name: "useDetails.noOfFloors",
25049
+ rules: {
25050
+ required: t("REQUIRED_FIELD")
25051
+ },
24901
25052
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
24902
25053
  option: floorOptions,
24903
25054
  optionKey: "name",
@@ -24905,11 +25056,14 @@ const PropertyWaterConnection = _ref => {
24905
25056
  select: props.onChange,
24906
25057
  t: t,
24907
25058
  onBlur: props.onBlur,
24908
- disable: isPropertyFound
25059
+ disable: isPropertyFound,
25060
+ placeholder: t("WS_NUMBER_OF_FLOORS")
24909
25061
  })
24910
25062
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails5 = errors.useDetails) === null || _errors$useDetails5 === void 0 ? void 0 : _errors$useDetails5.noOfFloors) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24911
25063
  style: errorStyle
24912
- }, errors.useDetails.noOfFloors.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_PLOT_AREA")}`), /*#__PURE__*/React__default.createElement("div", {
25064
+ }, errors.useDetails.noOfFloors.message), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_PLOT_AREA")}`, " ", /*#__PURE__*/React__default.createElement("span", {
25065
+ className: "check-page-link-button"
25066
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
24913
25067
  className: "form-field"
24914
25068
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24915
25069
  t: t,
@@ -24919,11 +25073,17 @@ const PropertyWaterConnection = _ref => {
24919
25073
  message: t("ERR_INVALID_DECIMAL")
24920
25074
  }
24921
25075
  }),
25076
+ rules: {
25077
+ required: t("REQUIRED_FIELD")
25078
+ },
24922
25079
  name: "useDetails.plotArea",
24923
- disabled: isPropertyFound
25080
+ disabled: isPropertyFound,
25081
+ placeholder: t("WS_PLOT_AREA")
24924
25082
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails6 = errors.useDetails) === null || _errors$useDetails6 === void 0 ? void 0 : _errors$useDetails6.plotArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24925
25083
  style: errorStyle
24926
- }, errors.useDetails.plotArea.message), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_BUILT_UP_AREA")}`), /*#__PURE__*/React__default.createElement("div", {
25084
+ }, errors.useDetails.plotArea.message), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_BUILT_UP_AREA")}`, " ", /*#__PURE__*/React__default.createElement("span", {
25085
+ className: "check-page-link-button"
25086
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
24927
25087
  className: "form-field"
24928
25088
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24929
25089
  t: t,
@@ -24934,37 +25094,16 @@ const PropertyWaterConnection = _ref => {
24934
25094
  }
24935
25095
  }),
24936
25096
  name: "useDetails.builtUpArea",
24937
- disabled: isPropertyFound
25097
+ rules: {
25098
+ required: t("REQUIRED_FIELD")
25099
+ },
25100
+ disabled: isPropertyFound,
25101
+ placeholder: t("WS_BUILT_UP_AREA")
24938
25102
  }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails7 = errors.useDetails) === null || _errors$useDetails7 === void 0 ? void 0 : _errors$useDetails7.builtUpArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24939
25103
  style: errorStyle
24940
- }, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_FAR_AREA")}`), /*#__PURE__*/React__default.createElement("div", {
24941
- className: "form-field"
24942
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
24943
- t: t,
24944
- inputRef: register({
24945
- pattern: {
24946
- value: DECIMAL_PATTERN$1,
24947
- message: t("ERR_INVALID_DECIMAL")
24948
- },
24949
- validate: value => {
24950
- var _formValue$useDetails, _formValue$useDetails2;
24951
- if (formValue !== null && formValue !== void 0 && (_formValue$useDetails = formValue.useDetails) !== null && _formValue$useDetails !== void 0 && _formValue$useDetails.builtUpArea && parseFloat(value) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails2 = formValue.useDetails) === null || _formValue$useDetails2 === void 0 ? void 0 : _formValue$useDetails2.builtUpArea)) {
24952
- return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
24953
- }
24954
- }
24955
- }),
24956
- name: "useDetails.farArea",
24957
- disabled: isPropertyFound
24958
- }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.farArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24959
- style: errorStyle
24960
- }, errors.useDetails.farArea.message), (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails3 = formValue.useDetails) === null || _formValue$useDetails3 === void 0 ? void 0 : _formValue$useDetails3.farArea) && (formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails4 = formValue.useDetails) === null || _formValue$useDetails4 === void 0 ? void 0 : _formValue$useDetails4.builtUpArea) && parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails5 = formValue.useDetails) === null || _formValue$useDetails5 === void 0 ? void 0 : _formValue$useDetails5.farArea) > parseFloat(formValue === null || formValue === void 0 ? void 0 : (_formValue$useDetails6 = formValue.useDetails) === null || _formValue$useDetails6 === void 0 ? void 0 : _formValue$useDetails6.builtUpArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24961
- style: {
24962
- width: "70%",
24963
- marginLeft: "30%",
24964
- fontSize: "12px",
24965
- marginTop: "5px"
24966
- }
24967
- }, t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_SELECT_YEAR_OF_CONSTRUCTION")}*`), /*#__PURE__*/React__default.createElement("div", {
25104
+ }, errors.useDetails.builtUpArea.message)), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_SELECT_YEAR_OF_CONSTRUCTION")}`, " ", /*#__PURE__*/React__default.createElement("span", {
25105
+ className: "check-page-link-button"
25106
+ }, "*")), /*#__PURE__*/React__default.createElement("div", {
24968
25107
  className: "form-field"
24969
25108
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
24970
25109
  control: control,
@@ -24979,9 +25118,10 @@ const PropertyWaterConnection = _ref => {
24979
25118
  select: props.onChange,
24980
25119
  t: t,
24981
25120
  onBlur: props.onBlur,
24982
- disable: isPropertyFound
25121
+ disable: isPropertyFound,
25122
+ placeholder: t("WS_SELECT_YEAR_OF_CONSTRUCTION")
24983
25123
  })
24984
- }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails9 = errors.useDetails) === null || _errors$useDetails9 === void 0 ? void 0 : _errors$useDetails9.SelectYearofConstruction) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25124
+ }))), (errors === null || errors === void 0 ? void 0 : (_errors$useDetails8 = errors.useDetails) === null || _errors$useDetails8 === void 0 ? void 0 : _errors$useDetails8.SelectYearofConstruction) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24985
25125
  style: errorStyle
24986
25126
  }, errors.useDetails.SelectYearofConstruction.message), isDwellingUnit ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_NUMBER_OF_DWELLING_UNITS")}`), /*#__PURE__*/React__default.createElement("div", {
24987
25127
  className: "form-field"
@@ -24994,8 +25134,9 @@ const PropertyWaterConnection = _ref => {
24994
25134
  }
24995
25135
  }),
24996
25136
  name: "useDetails.NumberofDwellingUnits",
24997
- disabled: isPropertyFound
24998
- }))) : null, isDwellingUnit && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails0 = errors.useDetails) === null || _errors$useDetails0 === void 0 ? void 0 : _errors$useDetails0.NumberofDwellingUnits) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25137
+ disabled: isPropertyFound,
25138
+ placeholder: t("WS_NUMBER_OF_DWELLING_UNITS")
25139
+ }))) : null, isDwellingUnit && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails9 = errors.useDetails) === null || _errors$useDetails9 === void 0 ? void 0 : _errors$useDetails9.NumberofDwellingUnits) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
24999
25140
  style: errorStyle
25000
25141
  }, errors.useDetails.NumberofDwellingUnits.message), isHotelRestaurantProperty ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_NUMBER_OF_ROOMS")}*`), /*#__PURE__*/React__default.createElement("div", {
25001
25142
  className: "form-field"
@@ -25009,8 +25150,9 @@ const PropertyWaterConnection = _ref => {
25009
25150
  required: isHotelRestaurantProperty ? t("REQUIRED_FIELD") : false
25010
25151
  }),
25011
25152
  name: "useDetails.NumberofRooms",
25012
- disabled: isPropertyFound
25013
- }))) : null, isHotelRestaurantProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails1 = errors.useDetails) === null || _errors$useDetails1 === void 0 ? void 0 : _errors$useDetails1.NumberofRooms) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25153
+ disabled: isPropertyFound,
25154
+ placeholder: t("WS_NUMBER_OF_ROOMS")
25155
+ }))) : null, isHotelRestaurantProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails0 = errors.useDetails) === null || _errors$useDetails0 === void 0 ? void 0 : _errors$useDetails0.NumberofRooms) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25014
25156
  style: errorStyle
25015
25157
  }, errors.useDetails.NumberofRooms.message), isHospitalProperty ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_NUMBER_OF_BEDS")}*`), /*#__PURE__*/React__default.createElement("div", {
25016
25158
  className: "form-field"
@@ -25024,8 +25166,9 @@ const PropertyWaterConnection = _ref => {
25024
25166
  required: isHospitalProperty ? t("REQUIRED_FIELD") : false
25025
25167
  }),
25026
25168
  name: "useDetails.numberOfBeds",
25027
- disabled: isPropertyFound
25028
- }))) : null, isHospitalProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails10 = errors.useDetails) === null || _errors$useDetails10 === void 0 ? void 0 : _errors$useDetails10.numberOfBeds) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25169
+ disabled: isPropertyFound,
25170
+ placeholder: t("WS_NUMBER_OF_BEDS")
25171
+ }))) : null, isHospitalProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails1 = errors.useDetails) === null || _errors$useDetails1 === void 0 ? void 0 : _errors$useDetails1.numberOfBeds) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25029
25172
  style: errorStyle
25030
25173
  }, errors.useDetails.numberOfBeds.message), isSchoolCollegeProperty ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_NUMBER_OF_STUDENTS")}`), /*#__PURE__*/React__default.createElement("div", {
25031
25174
  className: "form-field"
@@ -25038,8 +25181,9 @@ const PropertyWaterConnection = _ref => {
25038
25181
  }
25039
25182
  }),
25040
25183
  name: "useDetails.numberOfStudents",
25041
- disabled: isPropertyFound
25042
- }))) : null, isSchoolCollegeProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails11 = errors.useDetails) === null || _errors$useDetails11 === void 0 ? void 0 : _errors$useDetails11.numberOfStudents) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25184
+ disabled: isPropertyFound,
25185
+ placeholder: t("WS_NUMBER_OF_STUDENTS")
25186
+ }))) : null, isSchoolCollegeProperty && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails10 = errors.useDetails) === null || _errors$useDetails10 === void 0 ? void 0 : _errors$useDetails10.numberOfStudents) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25043
25187
  style: errorStyle
25044
25188
  }, errors.useDetails.numberOfStudents.message), isServentHouse ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_SERVENT_HOUSE")}`), /*#__PURE__*/React__default.createElement("div", {
25045
25189
  className: "form-field"
@@ -25052,8 +25196,9 @@ const PropertyWaterConnection = _ref => {
25052
25196
  }
25053
25197
  }),
25054
25198
  name: "useDetails.servantQuarterArea",
25055
- disabled: isPropertyFound
25056
- }))) : null, isServentHouse && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails12 = errors.useDetails) === null || _errors$useDetails12 === void 0 ? void 0 : _errors$useDetails12.servantQuarterArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25199
+ disabled: isPropertyFound,
25200
+ placeholder: t("WS_SERVENT_HOUSE")
25201
+ }))) : null, isServentHouse && (errors === null || errors === void 0 ? void 0 : (_errors$useDetails11 = errors.useDetails) === null || _errors$useDetails11 === void 0 ? void 0 : _errors$useDetails11.servantQuarterArea) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabelError, {
25057
25202
  style: errorStyle
25058
25203
  }, errors.useDetails.servantQuarterArea.message)));
25059
25204
  };
@@ -27875,6 +28020,7 @@ const WSCard = () => {
27875
28020
  const [totalCount, setTotalCount] = React.useState(0);
27876
28021
  sessionStorage.removeItem("Digit.PT_CREATE_EMP_WS_NEW_FORM");
27877
28022
  sessionStorage.removeItem("IsDetailsExists");
28023
+ sessionStorage.removeItem("Digit.WS_DISCONNECTION");
27878
28024
  const filterFormDefaultValues = {
27879
28025
  businessService: ["NewWS1", "ModifyWSConnection", "DisconnectWSConnection", "mutationWSConnection"],
27880
28026
  moduleName: "ws-services",
@@ -27955,6 +28101,10 @@ const WSCard = () => {
27955
28101
  label: t("WS_ZRO_VERIFICATION"),
27956
28102
  link: `/digit-ui/employee/ws/zro-application`,
27957
28103
  roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
28104
+ }, {
28105
+ label: t("WS_DISCONNECTION"),
28106
+ link: `/digit-ui/employee/ws/new-disconnection`,
28107
+ roles: ["WS_CEMP", "WS_APPROVER", "WS_FIELD_INSPECTOR", "WS_DOC_VERIFIER", "WS_CLERK", "SW_CEMP", "SW_APPROVER", "SW_FIELD_INSPECTOR", "SW_DOC_VERIFIER", "SW_CLERK"]
27958
28108
  }].filter(link => link.roles ? checkForEmployee(link.roles) : true)
27959
28109
  };
27960
28110
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.EmployeeModuleCard, propsForModuleCard);
@@ -29429,7 +29579,7 @@ const WSCreate = () => {
29429
29579
  let {
29430
29580
  data: newConfig$1
29431
29581
  } = Digit.Hooks.ws.useWSConfigMDMS.getFormConfig(stateId, []);
29432
- let isModifyEdit = window.location.href.includes("/modify-connection/") || window.location.href.includes("/edit-application/");
29582
+ let isModifyEdit = window.location.href.includes("/modify-connection") || window.location.href.includes("/edit-application");
29433
29583
  const goNext = skipStep => {
29434
29584
  var _params$cptId, _params$cpt, _params$cpt$details, _params$cpt2, _params$cpt2$details;
29435
29585
  const currentPath = pathname.split("/").pop();
@@ -29549,6 +29699,20 @@ const newConfig$1 = [{
29549
29699
  key: "data",
29550
29700
  type: "component",
29551
29701
  withoutLabel: true,
29702
+ nextStep: "k-number"
29703
+ }, {
29704
+ route: "k-number",
29705
+ component: "WSDisconnectionKNumber",
29706
+ key: "WSDisconnectionKNumber",
29707
+ type: "component",
29708
+ withoutLabel: true,
29709
+ nextStep: "consumer-details"
29710
+ }, {
29711
+ route: "consumer-details",
29712
+ component: "WSDisconnectionConsumerDetails",
29713
+ key: "WSDisconnectionConsumerDetails",
29714
+ type: "component",
29715
+ withoutLabel: true,
29552
29716
  nextStep: "application-form"
29553
29717
  }, {
29554
29718
  route: "application-form",
@@ -32604,15 +32768,7 @@ const ViewBreakup = _ref => {
32604
32768
  label: t("WS_BUILT_UP_AREA"),
32605
32769
  value: propertyDetail.superBuiltUpArea,
32606
32770
  unit: " (sq. meter.)"
32607
- }, isValidValue(propertyDetail.farArea) ? {
32608
- label: t("WS_FAR_AREA"),
32609
- value: propertyDetail.farArea,
32610
- isText: true
32611
- } : null, isValidValue(propertyDetail.coveredArea) ? {
32612
- label: t("WS_COVERED_AREA"),
32613
- value: propertyDetail.coveredArea,
32614
- isText: true
32615
- } : null, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
32771
+ }, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
32616
32772
  label: t("WS_NUMBER_OF_DWELLING_UNITS"),
32617
32773
  value: propertyDetail.numberOfDwellingUnits,
32618
32774
  isText: true
@@ -32849,7 +33005,7 @@ const checkForNA$1 = value => {
32849
33005
  return value ? value : "CS_NA";
32850
33006
  };
32851
33007
  const WSApplicationDetails = () => {
32852
- 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$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$SewerageConnect10, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$WaterConnection14, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect15, _data$SewerageConnect16, _appDetailsData$appli, _data$WaterConnection35, _data$WaterConnection36, _data$SewerageConnect31, _data$SewerageConnect32, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$co, _connectionDetails$co2, _connectionDetails$wa, _connectionDetails$wa2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$do2, _connectionDetails$do3, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection69, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect64, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$WaterConnection111, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$SewerageConnect114, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect127, _data$SewerageConnect128, _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$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _propertyAddress$city, _propertyAddress$city2, _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, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$WaterConnection144, _data$WaterConnection145, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect139, _data$SewerageConnect140, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection155, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184;
33008
+ 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$SewerageConnect6, _data$SewerageConnect7, _data$WaterConnection8, _data$WaterConnection9, _data$SewerageConnect8, _data$SewerageConnect9, _data$WaterConnection0, _data$WaterConnection1, _data$SewerageConnect0, _data$SewerageConnect1, _data$WaterConnection10, _data$SewerageConnect10, _PTData$Properties, _PTData$Properties$, _PTData$Properties2, _PTData$Properties2$, _data$WaterConnection11, _data$WaterConnection12, _data$WaterConnection13, _data$WaterConnection14, _data$SewerageConnect11, _data$SewerageConnect12, _data$SewerageConnect13, _data$SewerageConnect14, _data$WaterConnection15, _data$WaterConnection16, _data$SewerageConnect15, _data$SewerageConnect16, _appDetailsData$appli, _data$WaterConnection35, _data$WaterConnection36, _data$SewerageConnect31, _data$SewerageConnect32, _data$WaterConnection37, _data$WaterConnection38, _data$SewerageConnect33, _data$SewerageConnect34, _data$WaterConnection39, _data$WaterConnection40, _data$SewerageConnect35, _data$SewerageConnect36, _data$WaterConnection41, _data$WaterConnection42, _data$SewerageConnect37, _data$SewerageConnect38, _data$WaterConnection43, _data$WaterConnection44, _data$SewerageConnect39, _data$WaterConnection45, _data$WaterConnection46, _data$SewerageConnect40, _data$SewerageConnect41, _data$WaterConnection47, _data$WaterConnection48, _data$SewerageConnect42, _data$SewerageConnect43, _data$WaterConnection49, _data$WaterConnection50, _data$SewerageConnect44, _data$SewerageConnect45, _data$WaterConnection51, _data$WaterConnection52, _data$SewerageConnect46, _data$SewerageConnect47, _data$WaterConnection53, _data$WaterConnection54, _data$SewerageConnect48, _data$SewerageConnect49, _data$WaterConnection55, _data$WaterConnection56, _data$SewerageConnect50, _data$SewerageConnect51, _data$WaterConnection57, _data$WaterConnection58, _data$SewerageConnect52, _data$SewerageConnect53, _data$WaterConnection59, _data$WaterConnection60, _data$SewerageConnect54, _data$SewerageConnect55, _data$WaterConnection61, _data$WaterConnection62, _data$SewerageConnect56, _data$SewerageConnect57, _data$WaterConnection63, _data$WaterConnection64, _data$SewerageConnect58, _data$SewerageConnect59, _data$WaterConnection65, _data$WaterConnection66, _data$WaterConnection67, _data$WaterConnection68, _data$SewerageConnect60, _data$SewerageConnect61, _data$SewerageConnect62, _data$SewerageConnect63, _connectionDetails$se, _connectionDetails$se2, _connectionDetails$ap, _connectionDetails$ap2, _connectionDetails$do, _connectionDetails$de, _connectionDetails$de2, _data$WaterConnection69, _data$WaterConnection70, _data$WaterConnection71, _data$SewerageConnect64, _data$SewerageConnect65, _data$SewerageConnect66, _data$WaterConnection72, _data$WaterConnection73, _data$WaterConnection74, _data$WaterConnection75, _data$SewerageConnect67, _data$SewerageConnect68, _data$SewerageConnect69, _data$SewerageConnect70, _data$WaterConnection76, _data$WaterConnection77, _data$WaterConnection78, _data$WaterConnection79, _data$SewerageConnect71, _data$SewerageConnect72, _data$SewerageConnect73, _data$SewerageConnect74, _data$WaterConnection80, _data$WaterConnection81, _data$WaterConnection82, _data$WaterConnection83, _data$SewerageConnect75, _data$SewerageConnect76, _data$SewerageConnect77, _data$SewerageConnect78, _data$WaterConnection84, _data$WaterConnection85, _data$WaterConnection86, _data$WaterConnection87, _data$SewerageConnect79, _data$SewerageConnect80, _data$SewerageConnect81, _data$SewerageConnect82, _data$WaterConnection88, _data$WaterConnection89, _data$WaterConnection90, _data$WaterConnection91, _data$SewerageConnect83, _data$SewerageConnect84, _data$SewerageConnect85, _data$SewerageConnect86, _data$WaterConnection92, _data$WaterConnection93, _data$WaterConnection94, _data$WaterConnection95, _data$SewerageConnect87, _data$SewerageConnect88, _data$SewerageConnect89, _data$SewerageConnect90, _data$WaterConnection96, _data$WaterConnection97, _data$WaterConnection98, _data$WaterConnection99, _data$SewerageConnect91, _data$SewerageConnect92, _data$SewerageConnect93, _data$SewerageConnect94, _data$WaterConnection100, _data$WaterConnection101, _data$WaterConnection102, _data$WaterConnection103, _data$SewerageConnect95, _data$SewerageConnect96, _data$SewerageConnect97, _data$SewerageConnect98, _data$WaterConnection104, _data$WaterConnection105, _data$WaterConnection106, _data$WaterConnection107, _data$SewerageConnect99, _data$SewerageConnect100, _data$SewerageConnect101, _data$SewerageConnect102, _data$WaterConnection108, _data$WaterConnection109, _data$WaterConnection110, _data$WaterConnection111, _data$SewerageConnect103, _data$SewerageConnect104, _data$SewerageConnect105, _data$SewerageConnect106, _data$WaterConnection112, _data$WaterConnection113, _data$WaterConnection114, _data$WaterConnection115, _data$SewerageConnect107, _data$SewerageConnect108, _data$SewerageConnect109, _data$SewerageConnect110, _data$WaterConnection116, _data$WaterConnection117, _data$WaterConnection118, _data$WaterConnection119, _data$SewerageConnect111, _data$SewerageConnect112, _data$SewerageConnect113, _data$SewerageConnect114, _data$WaterConnection120, _data$WaterConnection121, _data$WaterConnection122, _data$WaterConnection123, _data$SewerageConnect115, _data$SewerageConnect116, _data$SewerageConnect117, _data$SewerageConnect118, _data$WaterConnection124, _data$WaterConnection125, _data$WaterConnection126, _data$WaterConnection127, _data$SewerageConnect119, _data$SewerageConnect120, _data$SewerageConnect121, _data$SewerageConnect122, _data$WaterConnection128, _data$WaterConnection129, _data$WaterConnection130, _data$WaterConnection131, _data$SewerageConnect123, _data$SewerageConnect124, _data$SewerageConnect125, _data$SewerageConnect126, _data$WaterConnection132, _data$WaterConnection133, _data$SewerageConnect127, _data$SewerageConnect128, _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$WaterConnection134, _data$WaterConnection135, _data$SewerageConnect129, _data$SewerageConnect130, _data$WaterConnection136, _data$WaterConnection137, _data$SewerageConnect131, _data$SewerageConnect132, _propertyAddress$city, _propertyAddress$city2, _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, _data$WaterConnection138, _data$WaterConnection139, _data$WaterConnection140, _data$WaterConnection141, _data$SewerageConnect133, _data$SewerageConnect134, _data$SewerageConnect135, _data$SewerageConnect136, _data$WaterConnection144, _data$WaterConnection145, _data$WaterConnection146, _data$WaterConnection147, _data$WaterConnection148, _data$WaterConnection149, _data$SewerageConnect139, _data$SewerageConnect140, _data$SewerageConnect141, _data$SewerageConnect142, _data$SewerageConnect143, _data$SewerageConnect144, _data$WaterConnection155, _data$WaterConnection156, _data$WaterConnection157, _data$WaterConnection158, _data$SewerageConnect150, _data$SewerageConnect151, _data$SewerageConnect152, _data$SewerageConnect153, _data$WaterConnection159, _data$WaterConnection160, _data$SewerageConnect154, _data$SewerageConnect155, _data$WaterConnection161, _data$WaterConnection162, _data$SewerageConnect156, _data$SewerageConnect157, _data$WaterConnection163, _data$WaterConnection164, _data$SewerageConnect158, _data$SewerageConnect159, _data$WaterConnection165, _data$WaterConnection166, _data$WaterConnection167, _data$SewerageConnect160, _data$SewerageConnect161, _data$WaterConnection168, _data$WaterConnection169, _data$SewerageConnect162, _data$SewerageConnect163, _data$WaterConnection170, _data$WaterConnection171, _data$WaterConnection172, _data$WaterConnection173, _data$SewerageConnect164, _data$SewerageConnect165, _data$SewerageConnect166, _data$SewerageConnect167, _data$WaterConnection174, _data$WaterConnection175, _data$SewerageConnect168, _data$SewerageConnect169, _data$SewerageConnect170, _data$SewerageConnect171, _data$SewerageConnect172, _data$SewerageConnect173, _data$SewerageConnect174, _data$SewerageConnect175, _data$SewerageConnect176, _data$SewerageConnect177, _data$SewerageConnect178, _data$WaterConnection176, _data$WaterConnection177, _data$WaterConnection178, _data$WaterConnection179, _data$WaterConnection180, _data$WaterConnection181, _data$WaterConnection182, _data$WaterConnection183, _data$WaterConnection184;
32853
33009
  const getDisconnectionNoticeSearch = function () {
32854
33010
  try {
32855
33011
  var _data$WaterConnection186, _data$WaterConnection187, _data$SewerageConnect180, _data$SewerageConnect181;
@@ -33240,22 +33396,13 @@ const WSApplicationDetails = () => {
33240
33396
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33241
33397
  label: t("WS_SERVICE_TYPE"),
33242
33398
  text: `${t(checkForNA$1(connectionDetails !== null && connectionDetails !== void 0 && (_connectionDetails$se = connectionDetails.serviceType) !== null && _connectionDetails$se !== void 0 && _connectionDetails$se.code ? `WS_APPLICATION_TYPE_${connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$se2 = connectionDetails.serviceType) === null || _connectionDetails$se2 === void 0 ? void 0 : _connectionDetails$se2.code}` : connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.serviceType ? `WS_APPLICATION_TYPE_${connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.serviceType}` : applicationData !== null && applicationData !== void 0 && applicationData.applicationType ? `WS_APPLICATION_TYPE_${applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationType}` : "NA"))}`
33243
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33244
- label: t("WS_CONNECTION_TYPE"),
33245
- text: `${t(checkForNA$1((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$co = connectionDetails.connectionType) === null || _connectionDetails$co === void 0 ? void 0 : _connectionDetails$co.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$co2 = connectionDetails.connectionType) === null || _connectionDetails$co2 === void 0 ? void 0 : _connectionDetails$co2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.connectionType)))}`
33246
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33247
- label: t("WS_WATER_DEMAND_TYPE"),
33248
- text: `${t(checkForNA$1((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$wa = connectionDetails.waterDemandType) === null || _connectionDetails$wa === void 0 ? void 0 : _connectionDetails$wa.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$wa2 = connectionDetails.waterDemandType) === null || _connectionDetails$wa2 === void 0 ? void 0 : _connectionDetails$wa2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.waterDemandType)))}`
33249
33399
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33250
33400
  label: t("WS_APPLICANT_TYPE"),
33251
33401
  text: `${t(checkForNA$1((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ap = connectionDetails.applicantType) === null || _connectionDetails$ap === void 0 ? void 0 : _connectionDetails$ap.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$ap2 = connectionDetails.applicantType) === null || _connectionDetails$ap2 === void 0 ? void 0 : _connectionDetails$ap2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.applicantType)))}`
33252
33402
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33253
33403
  label: t("WS_DIVYANGJAN"),
33254
33404
  text: `${connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
33255
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33256
- label: t("WS_SERVICE_TYPE"),
33257
- text: `${t(checkForNA$1((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do = connectionDetails.domesticType) === null || _connectionDetails$do === void 0 ? void 0 : _connectionDetails$do.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do2 = connectionDetails.domesticType) === null || _connectionDetails$do2 === void 0 ? void 0 : _connectionDetails$do2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.domesticType)))}`
33258
- }), (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do3 = connectionDetails.domesticType) === null || _connectionDetails$do3 === void 0 ? void 0 : _connectionDetails$do3.code) === "ORGANIZATION" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33405
+ }), (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$do = connectionDetails.domesticType) === null || _connectionDetails$do === void 0 ? void 0 : _connectionDetails$do.code) === "ORGANIZATION" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33259
33406
  label: t("WS_DEPARTMENT_TYPE"),
33260
33407
  text: `${t(checkForNA$1((connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$de = connectionDetails.departmentType) === null || _connectionDetails$de === void 0 ? void 0 : _connectionDetails$de.i18nKey) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : (_connectionDetails$de2 = connectionDetails.departmentType) === null || _connectionDetails$de2 === void 0 ? void 0 : _connectionDetails$de2.code) || (connectionDetails === null || connectionDetails === void 0 ? void 0 : connectionDetails.departmentType)))}`
33261
33408
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
@@ -35699,7 +35846,7 @@ const getPath$3 = (path, params) => {
35699
35846
  };
35700
35847
  const getEditDetails = (waterResult, sewerageresult, t) => {
35701
35848
  if (waterResult) {
35702
- var _waterResult$connecti, _waterResult$connecti2, _waterResult$connecti3, _waterResult$connecti4, _waterResult$connecti5, _waterResult$connecti6, _waterResult$connecti7, _waterResult$connecti8, _waterResult$connecti9, _waterResult$connecti0, _waterResult$connecti1, _waterResult$connecti10, _waterResult$connecti11, _waterResult$connecti12, _waterResult$connecti13, _waterResult$connecti14, _waterResult$connecti15, _waterResult$connecti16, _waterResult$connecti17, _waterResult$connecti18, _waterResult$connecti19, _waterResult$connecti20, _waterResult$connecti21, _waterResult$connecti22, _waterResult$connecti23, _waterResult$connecti24, _waterResult$connecti25, _waterResult$connecti26, _waterResult$connecti27, _waterResult$connecti28, _waterResult$connecti29, _waterResult$connecti30, _waterResult$connecti31, _waterResult$connecti32, _waterResult$property, _waterResult$property2, _waterResult$property3, _waterResult$property4, _waterResult$property5, _waterResult$property6, _waterResult$property7, _waterResult$property8, _waterResult$property9, _waterResult$property0, _waterResult$property1, _waterResult$property10, _waterResult$property11, _waterResult$property12, _waterResult$property13, _waterResult$property14, _waterResult$property15, _waterResult$property16, _waterResult$property17, _waterResult$property18, _waterResult$property19, _waterResult$property20, _waterResult$property21, _waterResult$property22, _waterResult$property23, _waterResult$property24, _waterResult$property25, _waterResult$property26, _waterResult$property27, _waterResult$property28, _waterResult$connecti33, _waterResult$connecti34, _waterResult$connecti35, _waterResult$connecti36, _waterResult$connecti37, _waterResult$connecti38, _waterResult$applicat, _waterResult$addition, _waterResult$addition2, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16, _waterResult$addition17, _waterResult$addition18, _waterResult$addition19, _waterResult$addition20, _waterResult$addition21, _waterResult$addition22, _waterResult$addition23;
35849
+ var _waterResult$connecti, _waterResult$connecti2, _waterResult$connecti3, _waterResult$connecti4, _waterResult$connecti5, _waterResult$connecti6, _waterResult$connecti7, _waterResult$connecti8, _waterResult$connecti9, _waterResult$connecti0, _waterResult$connecti1, _waterResult$connecti10, _waterResult$connecti11, _waterResult$connecti12, _waterResult$connecti13, _waterResult$connecti14, _waterResult$connecti15, _waterResult$connecti16, _waterResult$connecti17, _waterResult$connecti18, _waterResult$connecti19, _waterResult$connecti20, _waterResult$connecti21, _waterResult$connecti22, _waterResult$connecti23, _waterResult$connecti24, _waterResult$connecti25, _waterResult$connecti26, _waterResult$connecti27, _waterResult$connecti28, _waterResult$connecti29, _waterResult$connecti30, _waterResult$connecti31, _waterResult$connecti32, _waterResult$property, _waterResult$property2, _waterResult$property3, _waterResult$property4, _waterResult$property5, _waterResult$property6, _waterResult$property7, _waterResult$property8, _waterResult$property9, _waterResult$property0, _waterResult$property1, _waterResult$property10, _waterResult$property11, _waterResult$property12, _waterResult$property13, _waterResult$property14, _waterResult$property15, _waterResult$property16, _waterResult$property17, _waterResult$property18, _waterResult$property19, _waterResult$property20, _waterResult$property21, _waterResult$property22, _waterResult$property23, _waterResult$property24, _waterResult$property25, _waterResult$property26, _waterResult$property27, _waterResult$property28, _waterResult$connecti33, _waterResult$connecti34, _waterResult$connecti35, _waterResult$connecti36, _waterResult$connecti37, _waterResult$connecti38, _waterResult$applicat, _waterResult$addition, _waterResult$addition2, _waterResult$addition3, _waterResult$addition4, _waterResult$addition5, _waterResult$addition6, _waterResult$addition7, _waterResult$addition8, _waterResult$addition9, _waterResult$addition0, _waterResult$addition1, _waterResult$addition10, _waterResult$addition11, _waterResult$addition12, _waterResult$addition13, _waterResult$addition14, _waterResult$addition15, _waterResult$addition16, _waterResult$addition17, _waterResult$addition18, _waterResult$addition19, _waterResult$addition20, _waterResult$addition21, _waterResult$addition22, _waterResult$addition23, _waterResult$addition24;
35703
35850
  waterResult.ConnectionHolderDetails = waterResult !== null && waterResult !== void 0 && waterResult.connectionHolders ? [{
35704
35851
  ...(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti = waterResult.connectionHolders) === null || _waterResult$connecti === void 0 ? void 0 : _waterResult$connecti[0]),
35705
35852
  address: waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti2 = waterResult.connectionHolders) === null || _waterResult$connecti2 === void 0 ? void 0 : (_waterResult$connecti3 = _waterResult$connecti2[0]) === null || _waterResult$connecti3 === void 0 ? void 0 : _waterResult$connecti3.correspondenceAddress,
@@ -35824,10 +35971,11 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
35824
35971
  isDjbEmployee: String(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition19 = waterResult.additionalDetails) === null || _waterResult$addition19 === void 0 ? void 0 : _waterResult$addition19.isDjbEmployee) === "true",
35825
35972
  employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition20 = waterResult.additionalDetails) === null || _waterResult$addition20 === void 0 ? void 0 : _waterResult$addition20.employeeId) || "",
35826
35973
  designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.designation) || "",
35827
- dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition22 = waterResult.additionalDetails) === null || _waterResult$addition22 === void 0 ? void 0 : _waterResult$addition22.dor) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition23 = waterResult.additionalDetails) === null || _waterResult$addition23 === void 0 ? void 0 : _waterResult$addition23.dorDate) || ""
35974
+ dor: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition22 = waterResult.additionalDetails) === null || _waterResult$addition22 === void 0 ? void 0 : _waterResult$addition22.dor) || (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition23 = waterResult.additionalDetails) === null || _waterResult$addition23 === void 0 ? void 0 : _waterResult$addition23.dorDate) || "",
35975
+ document: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition24 = waterResult.additionalDetails) === null || _waterResult$addition24 === void 0 ? void 0 : _waterResult$addition24.document) || ""
35828
35976
  };
35829
35977
  } else if (sewerageresult) {
35830
- var _sewerageresult$conne, _sewerageresult$conne2, _sewerageresult$conne3, _sewerageresult$conne4, _sewerageresult$conne5, _sewerageresult$conne6, _sewerageresult$conne7, _sewerageresult$conne8, _sewerageresult$conne9, _sewerageresult$conne0, _sewerageresult$conne1, _sewerageresult$conne10, _sewerageresult$conne11, _sewerageresult$conne12, _sewerageresult$conne13, _sewerageresult$conne14, _sewerageresult$conne15, _sewerageresult$conne16, _sewerageresult$conne17, _sewerageresult$conne18, _sewerageresult$conne19, _sewerageresult$conne20, _sewerageresult$conne21, _sewerageresult$conne22, _sewerageresult$conne23, _sewerageresult$conne24, _sewerageresult$conne25, _sewerageresult$conne26, _sewerageresult$conne27, _sewerageresult$conne28, _sewerageresult$conne29, _sewerageresult$conne30, _sewerageresult$conne31, _sewerageresult$conne32, _sewerageresult$prope, _sewerageresult$prope2, _sewerageresult$prope3, _sewerageresult$prope4, _sewerageresult$prope5, _sewerageresult$prope6, _sewerageresult$prope7, _sewerageresult$prope8, _sewerageresult$prope9, _sewerageresult$prope0, _sewerageresult$prope1, _sewerageresult$prope10, _sewerageresult$prope11, _sewerageresult$prope12, _sewerageresult$prope13, _sewerageresult$prope14, _sewerageresult$prope15, _sewerageresult$prope16, _sewerageresult$prope17, _sewerageresult$prope18, _sewerageresult$prope19, _sewerageresult$prope20, _sewerageresult$prope21, _sewerageresult$prope22, _sewerageresult$prope23, _sewerageresult$prope24, _sewerageresult$prope25, _sewerageresult$prope26, _sewerageresult$prope27, _sewerageresult$prope28, _sewerageresult$conne33, _sewerageresult$conne34, _sewerageresult$conne35, _sewerageresult$conne36, _sewerageresult$conne37, _sewerageresult$conne38, _sewerageresult$addit, _sewerageresult$addit2, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16, _sewerageresult$addit17, _sewerageresult$addit18, _sewerageresult$addit19, _sewerageresult$addit20, _sewerageresult$addit21, _sewerageresult$addit22, _sewerageresult$addit23;
35978
+ var _sewerageresult$conne, _sewerageresult$conne2, _sewerageresult$conne3, _sewerageresult$conne4, _sewerageresult$conne5, _sewerageresult$conne6, _sewerageresult$conne7, _sewerageresult$conne8, _sewerageresult$conne9, _sewerageresult$conne0, _sewerageresult$conne1, _sewerageresult$conne10, _sewerageresult$conne11, _sewerageresult$conne12, _sewerageresult$conne13, _sewerageresult$conne14, _sewerageresult$conne15, _sewerageresult$conne16, _sewerageresult$conne17, _sewerageresult$conne18, _sewerageresult$conne19, _sewerageresult$conne20, _sewerageresult$conne21, _sewerageresult$conne22, _sewerageresult$conne23, _sewerageresult$conne24, _sewerageresult$conne25, _sewerageresult$conne26, _sewerageresult$conne27, _sewerageresult$conne28, _sewerageresult$conne29, _sewerageresult$conne30, _sewerageresult$conne31, _sewerageresult$conne32, _sewerageresult$prope, _sewerageresult$prope2, _sewerageresult$prope3, _sewerageresult$prope4, _sewerageresult$prope5, _sewerageresult$prope6, _sewerageresult$prope7, _sewerageresult$prope8, _sewerageresult$prope9, _sewerageresult$prope0, _sewerageresult$prope1, _sewerageresult$prope10, _sewerageresult$prope11, _sewerageresult$prope12, _sewerageresult$prope13, _sewerageresult$prope14, _sewerageresult$prope15, _sewerageresult$prope16, _sewerageresult$prope17, _sewerageresult$prope18, _sewerageresult$prope19, _sewerageresult$prope20, _sewerageresult$prope21, _sewerageresult$prope22, _sewerageresult$prope23, _sewerageresult$prope24, _sewerageresult$prope25, _sewerageresult$prope26, _sewerageresult$prope27, _sewerageresult$prope28, _sewerageresult$conne33, _sewerageresult$conne34, _sewerageresult$conne35, _sewerageresult$conne36, _sewerageresult$conne37, _sewerageresult$conne38, _sewerageresult$addit, _sewerageresult$addit2, _sewerageresult$addit3, _sewerageresult$addit4, _sewerageresult$addit5, _sewerageresult$addit6, _sewerageresult$addit7, _sewerageresult$addit8, _sewerageresult$addit9, _sewerageresult$addit0, _sewerageresult$addit1, _sewerageresult$addit10, _sewerageresult$addit11, _sewerageresult$addit12, _sewerageresult$addit13, _sewerageresult$addit14, _sewerageresult$addit15, _sewerageresult$addit16, _sewerageresult$addit17, _sewerageresult$addit18, _sewerageresult$addit19, _sewerageresult$addit20, _sewerageresult$addit21, _sewerageresult$addit22, _sewerageresult$addit23, _sewerageresult$addit24;
35831
35979
  sewerageresult.ConnectionHolderDetails = sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionHolders ? [{
35832
35980
  ...(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne = sewerageresult.connectionHolders) === null || _sewerageresult$conne === void 0 ? void 0 : _sewerageresult$conne[0]),
35833
35981
  address: sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne2 = sewerageresult.connectionHolders) === null || _sewerageresult$conne2 === void 0 ? void 0 : (_sewerageresult$conne3 = _sewerageresult$conne2[0]) === null || _sewerageresult$conne3 === void 0 ? void 0 : _sewerageresult$conne3.correspondenceAddress,
@@ -35947,7 +36095,8 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
35947
36095
  isDjbEmployee: String(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit19 = sewerageresult.additionalDetails) === null || _sewerageresult$addit19 === void 0 ? void 0 : _sewerageresult$addit19.isDjbEmployee) === "true",
35948
36096
  employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit20 = sewerageresult.additionalDetails) === null || _sewerageresult$addit20 === void 0 ? void 0 : _sewerageresult$addit20.employeeId) || "",
35949
36097
  designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.designation) || "",
35950
- dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit22 = sewerageresult.additionalDetails) === null || _sewerageresult$addit22 === void 0 ? void 0 : _sewerageresult$addit22.dor) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit23 = sewerageresult.additionalDetails) === null || _sewerageresult$addit23 === void 0 ? void 0 : _sewerageresult$addit23.dorDate) || ""
36098
+ dor: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit22 = sewerageresult.additionalDetails) === null || _sewerageresult$addit22 === void 0 ? void 0 : _sewerageresult$addit22.dor) || (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit23 = sewerageresult.additionalDetails) === null || _sewerageresult$addit23 === void 0 ? void 0 : _sewerageresult$addit23.dorDate) || "",
36099
+ document: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit24 = sewerageresult.additionalDetails) === null || _sewerageresult$addit24 === void 0 ? void 0 : _sewerageresult$addit24.document) || ""
35951
36100
  };
35952
36101
  }
35953
36102
  if (waterResult) return {
@@ -35964,14 +36113,17 @@ const EditApplication = _ref => {
35964
36113
  t
35965
36114
  } = reactI18next.useTranslation();
35966
36115
  let {
35967
- tenantId
36116
+ tenantId: tenantIdFromUrl
35968
36117
  } = reactRouterDom.useParams();
36118
+ const searchParams = new URLSearchParams(reactRouterDom.useLocation().search);
36119
+ const applicationNumberParam = searchParams.get("applicationNumber");
36120
+ let tenantId = tenantIdFromUrl || searchParams.get("tenantId") || Digit.ULBService.getCurrentTenantId();
35969
36121
  const {
35970
36122
  pathname,
35971
36123
  state
35972
36124
  } = reactRouterDom.useLocation();
35973
36125
  const history = reactRouterDom.useHistory();
35974
- let applicationNumber = (state === null || state === void 0 ? void 0 : state.id) || sessionStorage.getItem("ApplicationNoState");
36126
+ let applicationNumber = applicationNumberParam || (state === null || state === void 0 ? void 0 : state.id) || sessionStorage.getItem("ApplicationNoState");
35975
36127
  let config = [];
35976
36128
  let waterapplication = {};
35977
36129
  let sewerageapplication = {};
@@ -36016,12 +36168,12 @@ const EditApplication = _ref => {
36016
36168
  }, {
36017
36169
  enabled: applicationNumber && applicationNumber.includes("SW") ? true : false
36018
36170
  });
36019
- let isModifyEdit = window.location.href.includes("/modify-connection/") || window.location.href.includes("/edit-application/");
36171
+ let isModifyEdit = window.location.href.includes("/modify-connection") || window.location.href.includes("/edit-application");
36020
36172
  React.useEffect(() => {
36021
36173
  var _waterapplication, _sewerageapplication;
36022
36174
  waterapplication = Waterresult;
36023
36175
  sewerageapplication = Sewarageresult;
36024
- if ((Waterresult && waterapplication || Sewarageresult && sewerageapplication) && (!(Object.keys(params).length > 0) || waterapplication && (params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_waterapplication = waterapplication) === null || _waterapplication === void 0 ? void 0 : _waterapplication.applicationNo) || sewerageapplication && (params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_sewerageapplication = sewerageapplication) === null || _sewerageapplication === void 0 ? void 0 : _sewerageapplication.applicationNo))) {
36176
+ if ((Waterresult && waterapplication || Sewarageresult && sewerageapplication) && (!(Object.keys(params).length > 0) || waterapplication && ((params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_waterapplication = waterapplication) === null || _waterapplication === void 0 ? void 0 : _waterapplication.applicationNo) || !(params !== null && params !== void 0 && params.DocumentsRequired)) || sewerageapplication && ((params === null || params === void 0 ? void 0 : params.applicationNo) !== ((_sewerageapplication = sewerageapplication) === null || _sewerageapplication === void 0 ? void 0 : _sewerageapplication.applicationNo) || !(params !== null && params !== void 0 && params.DocumentsRequired)))) {
36025
36177
  waterapplication = Waterresult;
36026
36178
  sewerageapplication = Sewarageresult;
36027
36179
  if (window.location.href.includes("edit-application")) {
@@ -36114,7 +36266,7 @@ const EditApplication = _ref => {
36114
36266
  }]
36115
36267
  };
36116
36268
  });
36117
- if ((Waterresult && Object.keys(Waterresult).length > 0 || !Sewarageresult) && Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || configLoading || Object.keys(params).length === 0) {
36269
+ if ((Waterresult && Object.keys(Waterresult).length > 0 || !Sewarageresult) && Waterresult !== null && Waterresult !== void 0 && Waterresult.isLoading || Sewarageresult !== null && Sewarageresult !== void 0 && Sewarageresult.isLoading || configLoading || Object.keys(params).length === 0 || !(params !== null && params !== void 0 && params.DocumentsRequired)) {
36118
36270
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
36119
36271
  }
36120
36272
  const Acknowledgement = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSAcknowledgement");
@@ -36248,7 +36400,7 @@ const CheckPage = _ref => {
36248
36400
  cpt
36249
36401
  } = value;
36250
36402
  let routeLink = `/digit-ui/citizen/ws/create-application`;
36251
- if (window.location.href.includes("/edit-application/")) routeLink = `/digit-ui/citizen/ws/edit-application/${value === null || value === void 0 ? void 0 : value.tenantId}`;
36403
+ if (window.location.href.includes("/edit-application")) routeLink = `/digit-ui/citizen/ws/edit-application/${value === null || value === void 0 ? void 0 : value.tenantId}`;
36252
36404
  function routeTo(jumpTo) {
36253
36405
  location.href = jumpTo;
36254
36406
  }
@@ -37079,7 +37231,7 @@ const WSAcknowledgement = _ref => {
37079
37231
  const tenantId = Digit.ULBService.getCurrentTenantId();
37080
37232
  const WSmutation = Digit.Hooks.ws.useWSUpdateAPI("WATER");
37081
37233
  const SWmutation = Digit.Hooks.ws.useWSUpdateAPI("SEWERAGE");
37082
- let isEdit = window.location.href.includes("/edit-application/") || window.location.href.includes("/modify-connection/");
37234
+ let isEdit = window.location.href.includes("/edit-application") || window.location.href.includes("/modify-connection");
37083
37235
  const {
37084
37236
  data: storeData
37085
37237
  } = Digit.Hooks.useStore.getInitData();
@@ -37190,7 +37342,7 @@ const WSAcknowledgement = _ref => {
37190
37342
  onClick: handleDownloadPdfSewerage
37191
37343
  }), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
37192
37344
  to: {
37193
- pathname: `/digit-ui/citizen`
37345
+ pathname: `/digit-ui/${window.location.pathname.includes("employee") ? "employee" : "citizen"}`
37194
37346
  }
37195
37347
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
37196
37348
  label: t("CORE_COMMON_GO_TO_HOME")
@@ -37206,7 +37358,7 @@ const CheckPage$1 = () => {
37206
37358
  const value = Digit.SessionStorage.get("WS_DISCONNECTION");
37207
37359
  const [documents, setDocuments] = React.useState(value.WSDisconnectionForm.documents || []);
37208
37360
  let routeLink = `/digit-ui/citizen/ws/disconnect-application`;
37209
- if (window.location.href.includes("/edit-application/")) routeLink = `/digit-ui/citizen/ws/edit-disconnect-application`;
37361
+ if (window.location.href.includes("/edit-application")) routeLink = `/digit-ui/citizen/ws/edit-disconnect-application`;
37210
37362
  function routeTo(jumpTo) {
37211
37363
  location.href = jumpTo;
37212
37364
  }
@@ -38421,7 +38573,7 @@ const WSInfoPage = () => {
38421
38573
  setOtp("");
38422
38574
  setIsMobileVerified(false);
38423
38575
  },
38424
- placeholder: t("WS_ENTER_MOBILE_NUMBER") || "Enter mobile number",
38576
+ placeholder: t("CORE_COMMON_PHONE_NUMBER_PLACEHOLDER") || "Enter mobile number",
38425
38577
  maxLength: 10,
38426
38578
  disabled: isMobileVerified
38427
38579
  })), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && !isMobileVerified && !showOtpVerification && /*#__PURE__*/React__default.createElement("button", {
@@ -38623,7 +38775,7 @@ const WSInfoPage = () => {
38623
38775
  marginBottom: "24px",
38624
38776
  lineHeight: "2"
38625
38777
  }
38626
- }, /*#__PURE__*/React__default.createElement("li", null, t("WS_SERVICE_TYPE")), /*#__PURE__*/React__default.createElement("li", null, t("WS_CONNECTION_TYPE")), /*#__PURE__*/React__default.createElement("li", null, t("WS_WATER_DEMAND_TYPE")), /*#__PURE__*/React__default.createElement("li", null, t("WS_APPLICANT_TYPE")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DIVYANGJAN")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOMESTIC_TYPE"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
38778
+ }, /*#__PURE__*/React__default.createElement("li", null, t("WS_SERVICE_TYPE")), /*#__PURE__*/React__default.createElement("li", null, t("WS_APPLICANT_TYPE")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DIVYANGJAN"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
38627
38779
  style: {
38628
38780
  marginTop: "0",
38629
38781
  marginBottom: "0"
@@ -38635,7 +38787,7 @@ const WSInfoPage = () => {
38635
38787
  marginBottom: "24px",
38636
38788
  lineHeight: "2"
38637
38789
  }
38638
- }, /*#__PURE__*/React__default.createElement("li", null, t("WS_OWN_DETAIL_NAME")), /*#__PURE__*/React__default.createElement("li", null, t("WS_OWN_DETAIL_MIDDLE_NAME")), /*#__PURE__*/React__default.createElement("li", null, t("WS_OWN_DETAIL_LAST_NAME")), /*#__PURE__*/React__default.createElement("li", null, t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")), /*#__PURE__*/React__default.createElement("li", null, t("WS_OWN_DETAIL_GUARDIAN_LABEL")), /*#__PURE__*/React__default.createElement("li", null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React__default.createElement("li", null, t("WS_EMAIL_ID"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
38790
+ }, /*#__PURE__*/React__default.createElement("li", null, t("WS_OWN_DETAIL_NAME")), /*#__PURE__*/React__default.createElement("li", null, t("WS_OWN_DETAIL_MIDDLE_NAME")), /*#__PURE__*/React__default.createElement("li", null, t("WS_OWN_DETAIL_LAST_NAME")), /*#__PURE__*/React__default.createElement("li", null, t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")), /*#__PURE__*/React__default.createElement("li", null, t("CORE_COMMON_MOBILE_NUMBER")), /*#__PURE__*/React__default.createElement("li", null, t("WS_EMAIL_ID"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
38639
38791
  style: {
38640
38792
  marginTop: "0",
38641
38793
  marginBottom: "0"
@@ -38647,7 +38799,7 @@ const WSInfoPage = () => {
38647
38799
  marginBottom: "24px",
38648
38800
  lineHeight: "2"
38649
38801
  }
38650
- }, /*#__PURE__*/React__default.createElement("li", null, t("WS_ZRO_LOCATION")), /*#__PURE__*/React__default.createElement("li", null, t("COMMON_ADDRESS_TYPE")), /*#__PURE__*/React__default.createElement("li", null, t("CITY")), /*#__PURE__*/React__default.createElement("li", null, t("PINCODE")), /*#__PURE__*/React__default.createElement("li", null, t("LOCALITY")), /*#__PURE__*/React__default.createElement("li", null, t("SubLocality")), /*#__PURE__*/React__default.createElement("li", null, t("STREET_NAME")), /*#__PURE__*/React__default.createElement("li", null, t("ADDRESS_LINE1")), /*#__PURE__*/React__default.createElement("li", null, t("ADDRESS_LINE2")), /*#__PURE__*/React__default.createElement("li", null, t("HOUSE_NO")), /*#__PURE__*/React__default.createElement("li", null, t("LATITUDE")), /*#__PURE__*/React__default.createElement("li", null, t("LONGITUDE")), /*#__PURE__*/React__default.createElement("li", null, t("ASSEMBLY")), /*#__PURE__*/React__default.createElement("li", null, t("WARD")), /*#__PURE__*/React__default.createElement("li", null, t("ZONE")), /*#__PURE__*/React__default.createElement("li", null, t("LANDMARK"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
38802
+ }, /*#__PURE__*/React__default.createElement("li", null, t("COMMON_ADDRESS_TYPE")), /*#__PURE__*/React__default.createElement("li", null, t("CITY")), /*#__PURE__*/React__default.createElement("li", null, t("PINCODE")), /*#__PURE__*/React__default.createElement("li", null, t("LOCALITY")), /*#__PURE__*/React__default.createElement("li", null, t("SubLocality")), /*#__PURE__*/React__default.createElement("li", null, t("STREET_NAME")), /*#__PURE__*/React__default.createElement("li", null, t("ADDRESS_LINE1")), /*#__PURE__*/React__default.createElement("li", null, t("ADDRESS_LINE2")), /*#__PURE__*/React__default.createElement("li", null, t("HOUSE_NO")), /*#__PURE__*/React__default.createElement("li", null, t("LATITUDE")), /*#__PURE__*/React__default.createElement("li", null, t("LONGITUDE")), /*#__PURE__*/React__default.createElement("li", null, t("ASSEMBLY")), /*#__PURE__*/React__default.createElement("li", null, t("WARD")), /*#__PURE__*/React__default.createElement("li", null, t("ZONE")), /*#__PURE__*/React__default.createElement("li", null, t("LANDMARK"))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, {
38651
38803
  style: {
38652
38804
  marginTop: "0",
38653
38805
  marginBottom: "0"
@@ -38691,7 +38843,7 @@ const WSInfoPage = () => {
38691
38843
  marginBottom: "24px",
38692
38844
  lineHeight: "2"
38693
38845
  }
38694
- }, /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_IDENTITY_PROOF")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_ADDRESS_PROOF")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_ELECTRICITY_BILL")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_PLUMBER_REPORT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_BUILDING_PLAN")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_PROPERTY_TAX_RECEIPT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_APPLICANT_PHOTOGRAPH")))), !hasProperty || (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
38846
+ }, /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_IDENTITY_PROOF")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_ADDRESS_PROOF")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_ELECTRICITY_BILL")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_PLUMBER_REPORT")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_BUILDING_PLAN")), /*#__PURE__*/React__default.createElement("li", null, t("WS_DOC_PROPERTY_TAX_RECEIPT")))), !hasProperty || (hasProperty === null || hasProperty === void 0 ? void 0 : hasProperty.code) === "YES" && !selectedProperty ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
38695
38847
  label: t("CS_COMMON_NEXT"),
38696
38848
  onSubmit: () => {},
38697
38849
  disabled: true
@@ -39769,7 +39921,7 @@ const ViewIcon = () => /*#__PURE__*/React__default.createElement("svg", {
39769
39921
  cy: "12",
39770
39922
  r: "3"
39771
39923
  }));
39772
- const CameraCaptureModal$1 = _ref => {
39924
+ const CameraCaptureModal = _ref => {
39773
39925
  let {
39774
39926
  onCapture,
39775
39927
  onClose,
@@ -40405,7 +40557,7 @@ const FileUploadField = _ref6 => {
40405
40557
  })))));
40406
40558
  };
40407
40559
  const NewApplication = () => {
40408
- var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch5, _watch7, _watch9, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
40560
+ var _Digit$SessionStorage, _getFieldError, _getFieldError2, _getFieldError3, _getFieldError4, _getFieldError5, _getFieldError6, _getFieldError7, _getFieldError8, _getFieldError9, _getFieldError0, _getFieldError1, _getFieldError10, _getFieldError11, _watch, _watch3, _watch4, _watch6, _watch8, _watch0, _formValues$applicati, _formValues$applicati2, _formValues$applicati3, _formValues$applicati4, _formValues$applicati5, _formValues$applicati6, _formValues$applicati7, _formValues$applicati8, _formValues$applicati9, _formValues$applicati0, _formValues$applicati1, _formValues$applicati10, _formValues$applicati11, _formValues$applicati12, _formValues$applicati13, _formValues$applicati14, _formValues$applicati15, _formValues$applicati16, _formValues$applicati17, _formValues$applicati18, _formValues$applicati19, _formValues$applicati20, _formValues$applicati21, _formValues$applicati22, _formValues$applicati23, _formValues$applicant, _formValues$applicant2, _formValues$applicant3, _formValues$applicant4, _formValues$applicant5, _formValues$applicant6, _formValues$applicant7, _formValues$useDetail, _formValues$applicant8, _formValues$contact, _formValues$contact2, _formValues$contact3, _formValues$documents, _formValues$djbEmploy, _formValues$djbEmploy2, _formValues$djbEmploy3, _formValues$djbEmploy4, _formValues$djbEmploy5, _formValues$disabilit, _formValues$governmen, _formValues$governmen2, _formValues$governmen3, _formValues$governmen4, _formValues$propertyA, _formValues$propertyA2, _formValues$propertyA3, _formValues$propertyA4, _formValues$propertyA5, _formValues$propertyA6, _formValues$propertyA7, _formValues$propertyA8, _formValues$propertyA9, _formValues$propertyA0, _formValues$propertyA1, _formValues$useDetail2, _formValues$useDetail3, _formValues$useDetail4, _formValues$useDetail5, _formValues$useDetail6, _formValues$useDetail7, _formValues$useDetail8, _formValues$useDetail9, _formValues$useDetail0, _formValues$useDetail1, _formValues$useDetail10, _formValues$useDetail11, _formValues$documents2, _formValues$documents3, _formValues$documents4, _formValues$documents5, _formValues$documents6, _formValues$documents7, _formValues$documents8, _formValues$documents9, _formValues$documents0, _formValues$documents1, _formValues$declarati, _formValues$declarati2, _formValues$declarati3, _formValues$declarati4, _formValues$declarati5;
40409
40561
  const {
40410
40562
  t
40411
40563
  } = reactI18next.useTranslation();
@@ -42269,45 +42421,15 @@ const NewApplication = () => {
42269
42421
  background: "#F3F4F6",
42270
42422
  padding: "4px 12px",
42271
42423
  borderRadius: "20px",
42272
- width: "fit-content",
42273
- border: "1px solid #E5E7EB"
42424
+ width: "fit-content"
42274
42425
  }
42275
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
42426
+ }, /*#__PURE__*/React__default.createElement("span", {
42276
42427
  style: {
42277
- margin: 0,
42278
42428
  fontSize: "14px",
42279
- color: "#374151",
42280
- fontWeight: "500"
42429
+ fontWeight: "500",
42430
+ color: "#0B0C0C"
42281
42431
  }
42282
- }, watch("documents.applicantPhoto").fileName), /*#__PURE__*/React__default.createElement("div", {
42283
- onClick: () => clearUploadedFile("documents.applicantPhoto", val => setValue("documents.applicantPhoto", val)),
42284
- style: {
42285
- cursor: "pointer",
42286
- display: "flex",
42287
- alignItems: "center",
42288
- color: "#6B7280"
42289
- },
42290
- title: "Remove Photo"
42291
- }, /*#__PURE__*/React__default.createElement("svg", {
42292
- width: "16",
42293
- height: "16",
42294
- viewBox: "0 0 24 24",
42295
- fill: "none",
42296
- stroke: "currentColor",
42297
- strokeWidth: "3",
42298
- strokeLinecap: "round",
42299
- strokeLinejoin: "round"
42300
- }, /*#__PURE__*/React__default.createElement("line", {
42301
- x1: "18",
42302
- y1: "6",
42303
- x2: "6",
42304
- y2: "18"
42305
- }), /*#__PURE__*/React__default.createElement("line", {
42306
- x1: "6",
42307
- y1: "6",
42308
- x2: "18",
42309
- y2: "18"
42310
- }))))), /*#__PURE__*/React__default.createElement(FieldBlock, {
42432
+ }, ((_watch4 = watch("documents.applicantPhoto")) === null || _watch4 === void 0 ? void 0 : _watch4.fileName) || "Applicant_Photo.jpg"))), /*#__PURE__*/React__default.createElement(FieldBlock, {
42311
42433
  error: getFieldError("documents.proofOfIdentity"),
42312
42434
  label: "Proof of Identity *",
42313
42435
  required: true
@@ -42353,10 +42475,10 @@ const NewApplication = () => {
42353
42475
  type: "button",
42354
42476
  className: "document-action-btn",
42355
42477
  onClick: () => {
42356
- var _watch4;
42357
- return handleView((_watch4 = watch("documents.identityProofFile")) === null || _watch4 === void 0 ? void 0 : _watch4.fileStoreId, stateId);
42478
+ var _watch5;
42479
+ return handleView((_watch5 = watch("documents.identityProofFile")) === null || _watch5 === void 0 ? void 0 : _watch5.fileStoreId, stateId);
42358
42480
  },
42359
- disabled: !((_watch5 = watch("documents.identityProofFile")) !== null && _watch5 !== void 0 && _watch5.fileStoreId)
42481
+ disabled: !((_watch6 = watch("documents.identityProofFile")) !== null && _watch6 !== void 0 && _watch6.fileStoreId)
42360
42482
  }, /*#__PURE__*/React__default.createElement(ViewIcon, null), " View")), /*#__PURE__*/React__default.createElement(FieldBlock, {
42361
42483
  error: getFieldError("documents.ownershipStatus"),
42362
42484
  label: "Proof of Ownership *",
@@ -42403,10 +42525,10 @@ const NewApplication = () => {
42403
42525
  type: "button",
42404
42526
  className: "document-action-btn",
42405
42527
  onClick: () => {
42406
- var _watch6;
42407
- return handleView((_watch6 = watch("documents.ownershipDocumentFile")) === null || _watch6 === void 0 ? void 0 : _watch6.fileStoreId, stateId);
42528
+ var _watch7;
42529
+ return handleView((_watch7 = watch("documents.ownershipDocumentFile")) === null || _watch7 === void 0 ? void 0 : _watch7.fileStoreId, stateId);
42408
42530
  },
42409
- disabled: !((_watch7 = watch("documents.ownershipDocumentFile")) !== null && _watch7 !== void 0 && _watch7.fileStoreId)
42531
+ disabled: !((_watch8 = watch("documents.ownershipDocumentFile")) !== null && _watch8 !== void 0 && _watch8.fileStoreId)
42410
42532
  }, /*#__PURE__*/React__default.createElement(ViewIcon, null), " View")), /*#__PURE__*/React__default.createElement(FieldBlock, {
42411
42533
  error: getFieldError("documents.otherDocument"),
42412
42534
  label: "Other"
@@ -42449,10 +42571,10 @@ const NewApplication = () => {
42449
42571
  type: "button",
42450
42572
  className: "document-action-btn",
42451
42573
  onClick: () => {
42452
- var _watch8;
42453
- return handleView((_watch8 = watch("documents.otherDocumentFile")) === null || _watch8 === void 0 ? void 0 : _watch8.fileStoreId, stateId);
42574
+ var _watch9;
42575
+ return handleView((_watch9 = watch("documents.otherDocumentFile")) === null || _watch9 === void 0 ? void 0 : _watch9.fileStoreId, stateId);
42454
42576
  },
42455
- disabled: !((_watch9 = watch("documents.otherDocumentFile")) !== null && _watch9 !== void 0 && _watch9.fileStoreId)
42577
+ disabled: !((_watch0 = watch("documents.otherDocumentFile")) !== null && _watch0 !== void 0 && _watch0.fileStoreId)
42456
42578
  }, /*#__PURE__*/React__default.createElement(ViewIcon, null), " View"))), /*#__PURE__*/React__default.createElement(SectionCard, {
42457
42579
  description: "Declaration and undertaking to be signed by the applicant.",
42458
42580
  isOpen: collapsedSections.declaration,
@@ -42815,7 +42937,7 @@ const NewApplication = () => {
42815
42937
  label: showToast === null || showToast === void 0 ? void 0 : showToast.message,
42816
42938
  onClose: closeToast,
42817
42939
  warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning
42818
- }) : null, showCamera && /*#__PURE__*/React__default.createElement(CameraCaptureModal$1, {
42940
+ }) : null, showCamera && /*#__PURE__*/React__default.createElement(CameraCaptureModal, {
42819
42941
  onCapture: handleCapture,
42820
42942
  onClose: () => setShowCamera(false),
42821
42943
  t: t
@@ -47172,7 +47294,7 @@ function PropertyDocuments(_ref) {
47172
47294
  });
47173
47295
  });
47174
47296
  const allChecked = requiredDocsCount === 0 || checkedCount === requiredDocsCount;
47175
- const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION" || applicationStatus === "PENDING_APPROVAL_FOR_MUTATION" || applicationStatus === "PENDING_FOR_ZRO_APPROVAL";
47297
+ const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION" || applicationStatus === "PENDING_APPROVAL_FOR_MUTATION" || applicationStatus === "PENDING_FOR_ZRO_APPROVAL" || applicationStatus === "PENDING_FOR_CITIZEN_ACTION";
47176
47298
  const finalVerified = isDocVerifState ? allChecked : true;
47177
47299
  window.isDocumentsVerified = finalVerified;
47178
47300
  window.dispatchEvent(new CustomEvent("DOCUMENTS_VERIFIED", {
@@ -47202,7 +47324,7 @@ function PropertyDocuments(_ref) {
47202
47324
  const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("/obps") || window.location.href.includes("employee/ws");
47203
47325
  const isWSLocation = window.location.href.includes("/ws/") || window.location.href.includes("employee/ws") || window.location.href.includes("citizen/ws");
47204
47326
  const isStakeholderApplication = window.location.href.includes("stakeholder");
47205
- const canVerifyDocuments = ["PENDING_FOR_DOCUMENT_VERIFICATION", "PENDING_APPROVAL_FOR_MUTATION", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationStatus);
47327
+ const canVerifyDocuments = ["PENDING_FOR_DOCUMENT_VERIFICATION", "PENDING_APPROVAL_FOR_MUTATION", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_CITIZEN_ACTION"].includes(applicationStatus);
47206
47328
  const getDocSubType = documentType => {
47207
47329
  if (!documentType) return "";
47208
47330
  const parts = documentType.split(".");
@@ -48628,7 +48750,7 @@ const DueVerification = _ref => {
48628
48750
  });
48629
48751
  }, [applicationData]);
48630
48752
  const isPendingApproval = ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_ZRO_APPROVAL"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
48631
- const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
48753
+ const isActivation = ["PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "PENDING_FOR_CONNECTION_ACTIVATION", "CONNECTION_ACTIVATED", "PENDING_FOR_CITIZEN_ACTION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
48632
48754
  const columns = React.useMemo(() => {
48633
48755
  const baseColumns = [{
48634
48756
  Header: t("K No."),
@@ -49523,7 +49645,7 @@ function ApplicationDetailsContent(_ref) {
49523
49645
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : _detail$additionalDet18.documents) && index === documentsDetailIndex && /*#__PURE__*/React__default.createElement(PropertyDocuments, {
49524
49646
  documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents,
49525
49647
  applicationStatus: (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data3 = workflowDetails.data) === null || _workflowDetails$data3 === void 0 ? void 0 : (_workflowDetails$data4 = _workflowDetails$data3.actionState) === null || _workflowDetails$data4 === void 0 ? void 0 : _workflowDetails$data4.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data5 = workflowDetails.data) === null || _workflowDetails$data5 === void 0 ? void 0 : (_workflowDetails$data6 = _workflowDetails$data5.processInstances) === null || _workflowDetails$data6 === void 0 ? void 0 : (_workflowDetails$data7 = _workflowDetails$data6[0]) === null || _workflowDetails$data7 === void 0 ? void 0 : (_workflowDetails$data8 = _workflowDetails$data7.state) === null || _workflowDetails$data8 === void 0 ? void 0 : _workflowDetails$data8.state) || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data9 = workflowDetails.data) === null || _workflowDetails$data9 === void 0 ? void 0 : (_workflowDetails$data0 = _workflowDetails$data9.ProcessInstances) === null || _workflowDetails$data0 === void 0 ? void 0 : (_workflowDetails$data1 = _workflowDetails$data0[0]) === null || _workflowDetails$data1 === void 0 ? void 0 : (_workflowDetails$data10 = _workflowDetails$data1.state) === null || _workflowDetails$data10 === void 0 ? void 0 : _workflowDetails$data10.state) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) || (applicationData === null || applicationData === void 0 ? void 0 : applicationData.status)
49526
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationType) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(DueVerification, {
49648
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.documents) && !(applicationData !== null && applicationData !== void 0 && (_applicationData$appl = applicationData.applicationType) !== null && _applicationData$appl !== void 0 && _applicationData$appl.includes("MUTATION")) && !(businessService !== null && businessService !== void 0 && businessService.includes("MUTATION")) && ["PENDING_FOR_FIELD_INSPECTION", "PENDING_APPROVAL_FOR_CONNECTION", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_RECONNECTION", "PENDING_FOR_DUE_VERIFICATION", "PENDING_FOR_BILLING_CLERK_REVIEW", "PENDING_FOR_ASO_APPROVAL", "PENDING_FOR_ZRO_APPROVAL", "PENDING_FOR_AE_APPROVAL", "PENDING_FOR_FINAL_PAYMENT", "CONNECTION_ACTIVATED", "PENDING_FOR_CONNECTION_ACTIVATION", "PENDING_FOR_CITIZEN_ACTION"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus) && /*#__PURE__*/React__default.createElement(DueVerification, {
49527
49649
  applicationData: applicationData
49528
49650
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : _detail$additionalDet21.taxHeadEstimatesCalculation) && /*#__PURE__*/React__default.createElement(PropertyEstimates, {
49529
49651
  taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
@@ -50709,16 +50831,16 @@ const ApplicationDetails$1 = () => {
50709
50831
  };
50710
50832
 
50711
50833
  const GetConnectionDetails = () => {
50712
- var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _mdmsCommonmastersDat, _applicationDetails$a14, _applicationDetails$a17, _applicationDetails$f5, _applicationDetails$p2, _applicationDetails$p3, _applicationDetails$a18, _applicationDetails$a19, _applicationDetails$a20, _applicationDetails$f6, _applicationDetails$f7;
50834
+ var _applicationDetails$a, _applicationDetails$a2, _applicationDetails$a3, _applicationDetails$a4, _applicationDetails$a5, _applicationDetails$a6, _applicationDetails$a7, _applicationDetails$a8, _applicationDetails$a9, _applicationDetails$a0, _applicationDetails$a1, _applicationDetails$a10, _applicationDetails$a11, _applicationDetails$a12, _mdmsCommonmastersDat, _applicationDetails$a14, _applicationDetails$a18, _applicationDetails$f5, _applicationDetails$p2, _applicationDetails$p3, _applicationDetails$a19, _applicationDetails$a20, _applicationDetails$a21, _applicationDetails$f6, _applicationDetails$f7;
50713
50835
  const getBillSearch = function () {
50714
50836
  try {
50715
50837
  const _temp = function (_applicationDetails$f8) {
50716
50838
  if ((applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f8 = applicationDetails.fetchBillsData) === null || _applicationDetails$f8 === void 0 ? void 0 : _applicationDetails$f8.length) > 0) {
50717
- var _applicationDetails$a21;
50839
+ var _applicationDetails$a22;
50718
50840
  const service = serviceType === "WATER" ? "WS" : "SW";
50719
50841
  let wsSearchFilters = {
50720
50842
  isConnectionSearch: true,
50721
- connectionNumber: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a21 = applicationDetails.applicationData) === null || _applicationDetails$a21 === void 0 ? void 0 : _applicationDetails$a21.connectionNo
50843
+ connectionNumber: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a22 = applicationDetails.applicationData) === null || _applicationDetails$a22 === void 0 ? void 0 : _applicationDetails$a22.connectionNo
50722
50844
  };
50723
50845
  return Promise.resolve(Digit.WSService.search({
50724
50846
  tenantId,
@@ -50731,8 +50853,8 @@ const GetConnectionDetails = () => {
50731
50853
  bussinessService: service
50732
50854
  };
50733
50855
  if ((wsConnectionDetails === null || wsConnectionDetails === void 0 ? void 0 : (_wsConnectionDetails$5 = wsConnectionDetails.WaterConnection) === null || _wsConnectionDetails$5 === void 0 ? void 0 : _wsConnectionDetails$5.length) > 0 || (wsConnectionDetails === null || wsConnectionDetails === void 0 ? void 0 : (_wsConnectionDetails$6 = wsConnectionDetails.SewerageConnections) === null || _wsConnectionDetails$6 === void 0 ? void 0 : _wsConnectionDetails$6.length) > 0) {
50734
- var _applicationDetails$a22;
50735
- downloadAndOpenPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a22 = applicationDetails.applicationData) === null || _applicationDetails$a22 === void 0 ? void 0 : _applicationDetails$a22.connectionNo, filters);
50856
+ var _applicationDetails$a23;
50857
+ downloadAndOpenPdf(applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a23 = applicationDetails.applicationData) === null || _applicationDetails$a23 === void 0 ? void 0 : _applicationDetails$a23.connectionNo, filters);
50736
50858
  }
50737
50859
  });
50738
50860
  }
@@ -50909,8 +51031,10 @@ const GetConnectionDetails = () => {
50909
51031
  var _billData$, _applicationDetails$f3;
50910
51032
  console.log("due", due, applicationDetails);
50911
51033
  if (((_billData$ = billData[0]) === null || _billData$ === void 0 ? void 0 : _billData$.status) === "ACTIVE" || (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$f3 = applicationDetails.fetchBillsData) === null || _applicationDetails$f3 === void 0 ? void 0 : _applicationDetails$f3.length) <= 0 || due == "0" || due < 0) {
51034
+ var _applicationDetails$a17;
50912
51035
  Digit.SessionStorage.set("WS_DISCONNECTION", applicationDetails);
50913
- history.push(`${pathname}`);
51036
+ const connectionNumber = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a17 = applicationDetails.applicationData) === null || _applicationDetails$a17 === void 0 ? void 0 : _applicationDetails$a17.connectionNo) || applicationNumber;
51037
+ history.push(`${pathname}?from=connection-details&connectionNumber=${encodeURIComponent(connectionNumber)}`);
50914
51038
  } else {
50915
51039
  setshowModal(true);
50916
51040
  }
@@ -50944,7 +51068,7 @@ const GetConnectionDetails = () => {
50944
51068
  getRestorationButton();
50945
51069
  }
50946
51070
  }
50947
- const checkApplicationStatusForDisconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a17 = applicationDetails.applicationData) === null || _applicationDetails$a17 === void 0 ? void 0 : _applicationDetails$a17.status) === "Active" ? true : false;
51071
+ const checkApplicationStatusForDisconnection = (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a18 = applicationDetails.applicationData) === null || _applicationDetails$a18 === void 0 ? void 0 : _applicationDetails$a18.status) === "Active" ? true : false;
50948
51072
  const showAction = checkApplicationStatusForDisconnection ? actionConfig : actionConfig.filter(item => item !== "DISCONNECTION_BUTTON");
50949
51073
  const showActionRestoration = ["RESTORATION_BUTTON"];
50950
51074
  let dowloadOptions = [];
@@ -51028,7 +51152,7 @@ const GetConnectionDetails = () => {
51028
51152
  ref: actionMenuRef,
51029
51153
  label: t("WF_TAKE_ACTION"),
51030
51154
  onSubmit: () => setDisplayMenu(!displayMenu)
51031
- })) : applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a18 = applicationDetails.applicationData) !== null && _applicationDetails$a18 !== void 0 && _applicationDetails$a18.isDisconnectionTemporary && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a19 = applicationDetails.applicationData) === null || _applicationDetails$a19 === void 0 ? void 0 : _applicationDetails$a19.status) !== "Active" && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a20 = applicationDetails.applicationData) === null || _applicationDetails$a20 === void 0 ? void 0 : _applicationDetails$a20.applicationStatus) == "DISCONNECTION_EXECUTED" ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, displayMenu ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Menu, {
51155
+ })) : applicationDetails !== null && applicationDetails !== void 0 && (_applicationDetails$a19 = applicationDetails.applicationData) !== null && _applicationDetails$a19 !== void 0 && _applicationDetails$a19.isDisconnectionTemporary && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a20 = applicationDetails.applicationData) === null || _applicationDetails$a20 === void 0 ? void 0 : _applicationDetails$a20.status) !== "Active" && (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a21 = applicationDetails.applicationData) === null || _applicationDetails$a21 === void 0 ? void 0 : _applicationDetails$a21.applicationStatus) == "DISCONNECTION_EXECUTED" ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, displayMenu ? /*#__PURE__*/React__default.createElement(digitUiReactComponents.Menu, {
51032
51156
  options: showActionRestoration,
51033
51157
  localeKeyPrefix: "WS",
51034
51158
  t: t,
@@ -51254,7 +51378,7 @@ const ActivateConnection = () => {
51254
51378
  setShowToast(false);
51255
51379
  }, 3000);
51256
51380
  } else {
51257
- var _Object$keys, _details3, _formDetails$connecti, _formDetails$connecti2, _formDetails$connecti3, _formDetails$connecti4, _formDetails$connecti5, _formDetails$connecti6, _formDetails$connecti7, _formDetails$connecti8, _formDetails$connecti9, _formDetails$connecti0, _formDetails$connecti1, _formDetails$connecti10, _formDetails$connecti11, _formDetails$connecti12, _formDetails$connecti13, _formDetails$connecti14, _formDetails$connecti15, _formDetails$connecti16, _formDetails$connecti17, _formDetails$connecti18, _formDetails$connecti19, _formDetails$connecti20, _formDetails$connecti21, _formDetails$connecti22, _formDetails$connecti23, _formDetails$connecti24, _formDetails$connecti25, _formDetails$connecti26, _formDetails$connecti27, _formDetails$connecti28, _formDetails$plumberD, _formDetails$plumberD2, _formDetails$plumberD3, _formDetails$plumberD4, _formDetails$plumberD5, _formDetails$plumberD6, _formData$plumberInfo, _formDetails$plumberD7, _formDetails$plumberD8, _formDetails$plumberD9, _formDetails$plumberD0, _formDetails$plumberD1, _formDetails$plumberD10, _formDetails$plumberD11, _formDetails$plumberD12, _formDetails$plumberD13, _formDetails$plumberD14, _formDetails$plumberD15, _formDetails$plumberD16, _formDetails$plumberD17, _formDetails$plumberD18, _formDetails$activati9, _formDetails$activati0, _formDetails$activati1, _formDetails$activati10;
51381
+ var _Object$keys, _details3, _formDetails$connecti, _formDetails$connecti2, _formDetails$connecti3, _formDetails$connecti4, _formDetails$connecti5, _formDetails$connecti6, _formDetails$connecti7, _formDetails$connecti8, _formDetails$connecti9, _formDetails$connecti0, _formDetails$connecti1, _formDetails$connecti10, _formDetails$connecti11, _formDetails$connecti12, _formDetails$connecti13, _formDetails$connecti14, _formDetails$connecti15, _formDetails$connecti16, _formDetails$connecti17, _formDetails$connecti18, _formDetails$connecti19, _formDetails$connecti20, _formDetails$connecti21, _formDetails$connecti22, _formDetails$connecti23, _formDetails$connecti24, _formDetails$connecti25, _formDetails$connecti26, _formDetails$connecti27, _formDetails$connecti28, _formDetails$plumberD, _formDetails$plumberD2, _formDetails$plumberD3, _formData$plumberInfo, _formDetails$plumberD7, _formDetails$plumberD8, _formDetails$plumberD9, _formDetails$plumberD0, _formDetails$plumberD1, _formDetails$plumberD10, _formDetails$plumberD11, _formDetails$plumberD12, _formDetails$plumberD13, _formDetails$plumberD14, _formDetails$plumberD15, _formDetails$plumberD16, _formDetails$activati9, _formDetails$activati0, _formDetails$activati1, _formDetails$activati10;
51258
51382
  function _temp4() {
51259
51383
  var _formDetails$activati, _formDetails$activati2, _formDetails$activati3, _formDetails$activati4;
51260
51384
  function _temp2() {
@@ -51324,11 +51448,15 @@ const ActivateConnection = () => {
51324
51448
  if (formDetails !== null && formDetails !== void 0 && (_formDetails$connecti17 = formDetails.connectionDetails) !== null && _formDetails$connecti17 !== void 0 && (_formDetails$connecti18 = _formDetails$connecti17[0]) !== null && _formDetails$connecti18 !== void 0 && _formDetails$connecti18.noOfTaps) formData.noOfTaps = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$connecti19 = formDetails.connectionDetails) === null || _formDetails$connecti19 === void 0 ? void 0 : (_formDetails$connecti20 = _formDetails$connecti19[0]) === null || _formDetails$connecti20 === void 0 ? void 0 : _formDetails$connecti20.noOfTaps;
51325
51449
  if (formDetails !== null && formDetails !== void 0 && (_formDetails$connecti21 = formDetails.connectionDetails) !== null && _formDetails$connecti21 !== void 0 && (_formDetails$connecti22 = _formDetails$connecti21[0]) !== null && _formDetails$connecti22 !== void 0 && _formDetails$connecti22.noOfWaterClosets) formData.noOfWaterClosets = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$connecti23 = formDetails.connectionDetails) === null || _formDetails$connecti23 === void 0 ? void 0 : (_formDetails$connecti24 = _formDetails$connecti23[0]) === null || _formDetails$connecti24 === void 0 ? void 0 : _formDetails$connecti24.noOfWaterClosets;
51326
51450
  if (formDetails !== null && formDetails !== void 0 && (_formDetails$connecti25 = formDetails.connectionDetails) !== null && _formDetails$connecti25 !== void 0 && (_formDetails$connecti26 = _formDetails$connecti25[0]) !== null && _formDetails$connecti26 !== void 0 && _formDetails$connecti26.noOfToilets) formData.noOfToilets = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$connecti27 = formDetails.connectionDetails) === null || _formDetails$connecti27 === void 0 ? void 0 : (_formDetails$connecti28 = _formDetails$connecti27[0]) === null || _formDetails$connecti28 === void 0 ? void 0 : _formDetails$connecti28.noOfToilets;
51327
- if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD = formDetails.plumberDetails) !== null && _formDetails$plumberD !== void 0 && (_formDetails$plumberD2 = _formDetails$plumberD[0]) !== null && _formDetails$plumberD2 !== void 0 && (_formDetails$plumberD3 = _formDetails$plumberD2.detailsProvidedBy) !== null && _formDetails$plumberD3 !== void 0 && _formDetails$plumberD3.code) formData.additionalDetails.detailsProvidedBy = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD4 = formDetails.plumberDetails) === null || _formDetails$plumberD4 === void 0 ? void 0 : (_formDetails$plumberD5 = _formDetails$plumberD4[0]) === null || _formDetails$plumberD5 === void 0 ? void 0 : (_formDetails$plumberD6 = _formDetails$plumberD5.detailsProvidedBy) === null || _formDetails$plumberD6 === void 0 ? void 0 : _formDetails$plumberD6.code;
51328
- if (!(formData !== null && formData !== void 0 && (_formData$plumberInfo = formData.plumberInfo) !== null && _formData$plumberInfo !== void 0 && _formData$plumberInfo[0]) && (formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD7 = formDetails.plumberDetails) === null || _formDetails$plumberD7 === void 0 ? void 0 : (_formDetails$plumberD8 = _formDetails$plumberD7.detailsProvidedBy) === null || _formDetails$plumberD8 === void 0 ? void 0 : _formDetails$plumberD8.code) == "ULB") formData.plumberInfo = [{}];
51329
- if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD9 = formDetails.plumberDetails) !== null && _formDetails$plumberD9 !== void 0 && (_formDetails$plumberD0 = _formDetails$plumberD9[0]) !== null && _formDetails$plumberD0 !== void 0 && _formDetails$plumberD0.plumberName) formData.plumberInfo[0].name = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD1 = formDetails.plumberDetails) === null || _formDetails$plumberD1 === void 0 ? void 0 : (_formDetails$plumberD10 = _formDetails$plumberD1[0]) === null || _formDetails$plumberD10 === void 0 ? void 0 : _formDetails$plumberD10.plumberName;
51330
- if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD11 = formDetails.plumberDetails) !== null && _formDetails$plumberD11 !== void 0 && (_formDetails$plumberD12 = _formDetails$plumberD11[0]) !== null && _formDetails$plumberD12 !== void 0 && _formDetails$plumberD12.plumberLicenseNo) formData.plumberInfo[0].licenseNo = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD13 = formDetails.plumberDetails) === null || _formDetails$plumberD13 === void 0 ? void 0 : (_formDetails$plumberD14 = _formDetails$plumberD13[0]) === null || _formDetails$plumberD14 === void 0 ? void 0 : _formDetails$plumberD14.plumberLicenseNo;
51331
- if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD15 = formDetails.plumberDetails) !== null && _formDetails$plumberD15 !== void 0 && (_formDetails$plumberD16 = _formDetails$plumberD15[0]) !== null && _formDetails$plumberD16 !== void 0 && _formDetails$plumberD16.plumberMobileNo) formData.plumberInfo[0].mobileNumber = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD17 = formDetails.plumberDetails) === null || _formDetails$plumberD17 === void 0 ? void 0 : (_formDetails$plumberD18 = _formDetails$plumberD17[0]) === null || _formDetails$plumberD18 === void 0 ? void 0 : _formDetails$plumberD18.plumberMobileNo;
51451
+ if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD = formDetails.plumberDetails) !== null && _formDetails$plumberD !== void 0 && (_formDetails$plumberD2 = _formDetails$plumberD[0]) !== null && _formDetails$plumberD2 !== void 0 && (_formDetails$plumberD3 = _formDetails$plumberD2.detailsProvidedBy) !== null && _formDetails$plumberD3 !== void 0 && _formDetails$plumberD3.code) {
51452
+ var _formDetails$plumberD4, _formDetails$plumberD5, _formDetails$plumberD6;
51453
+ if (!formData.additionalDetails) formData.additionalDetails = {};
51454
+ formData.additionalDetails.detailsProvidedBy = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD4 = formDetails.plumberDetails) === null || _formDetails$plumberD4 === void 0 ? void 0 : (_formDetails$plumberD5 = _formDetails$plumberD4[0]) === null || _formDetails$plumberD5 === void 0 ? void 0 : (_formDetails$plumberD6 = _formDetails$plumberD5.detailsProvidedBy) === null || _formDetails$plumberD6 === void 0 ? void 0 : _formDetails$plumberD6.code;
51455
+ }
51456
+ if (!(formData !== null && formData !== void 0 && formData.plumberInfo) || !(formData !== null && formData !== void 0 && (_formData$plumberInfo = formData.plumberInfo) !== null && _formData$plumberInfo !== void 0 && _formData$plumberInfo[0])) formData.plumberInfo = [{}];
51457
+ if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD7 = formDetails.plumberDetails) !== null && _formDetails$plumberD7 !== void 0 && (_formDetails$plumberD8 = _formDetails$plumberD7[0]) !== null && _formDetails$plumberD8 !== void 0 && _formDetails$plumberD8.plumberName) formData.plumberInfo[0].name = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD9 = formDetails.plumberDetails) === null || _formDetails$plumberD9 === void 0 ? void 0 : (_formDetails$plumberD0 = _formDetails$plumberD9[0]) === null || _formDetails$plumberD0 === void 0 ? void 0 : _formDetails$plumberD0.plumberName;
51458
+ if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD1 = formDetails.plumberDetails) !== null && _formDetails$plumberD1 !== void 0 && (_formDetails$plumberD10 = _formDetails$plumberD1[0]) !== null && _formDetails$plumberD10 !== void 0 && _formDetails$plumberD10.plumberLicenseNo) formData.plumberInfo[0].licenseNo = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD11 = formDetails.plumberDetails) === null || _formDetails$plumberD11 === void 0 ? void 0 : (_formDetails$plumberD12 = _formDetails$plumberD11[0]) === null || _formDetails$plumberD12 === void 0 ? void 0 : _formDetails$plumberD12.plumberLicenseNo;
51459
+ if (formDetails !== null && formDetails !== void 0 && (_formDetails$plumberD13 = formDetails.plumberDetails) !== null && _formDetails$plumberD13 !== void 0 && (_formDetails$plumberD14 = _formDetails$plumberD13[0]) !== null && _formDetails$plumberD14 !== void 0 && _formDetails$plumberD14.plumberMobileNo) formData.plumberInfo[0].mobileNumber = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$plumberD15 = formDetails.plumberDetails) === null || _formDetails$plumberD15 === void 0 ? void 0 : (_formDetails$plumberD16 = _formDetails$plumberD15[0]) === null || _formDetails$plumberD16 === void 0 ? void 0 : _formDetails$plumberD16.plumberMobileNo;
51332
51460
  if (formDetails !== null && formDetails !== void 0 && (_formDetails$activati9 = formDetails.activationDetails) !== null && _formDetails$activati9 !== void 0 && (_formDetails$activati0 = _formDetails$activati9[0]) !== null && _formDetails$activati0 !== void 0 && _formDetails$activati0.meterId) formData.meterId = formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$activati1 = formDetails.activationDetails) === null || _formDetails$activati1 === void 0 ? void 0 : (_formDetails$activati10 = _formDetails$activati1[0]) === null || _formDetails$activati10 === void 0 ? void 0 : _formDetails$activati10.meterId;
51333
51461
  const _temp3 = function (_formDetails$activati11, _formDetails$activati12, _formDetails$activati13, _formDetails$activati14) {
51334
51462
  if (formDetails !== null && formDetails !== void 0 && (_formDetails$activati11 = formDetails.activationDetails) !== null && _formDetails$activati11 !== void 0 && (_formDetails$activati12 = _formDetails$activati11[0]) !== null && _formDetails$activati12 !== void 0 && _formDetails$activati12.meterInstallationDate) return Promise.resolve(getConvertedDate(formDetails === null || formDetails === void 0 ? void 0 : (_formDetails$activati13 = formDetails.activationDetails) === null || _formDetails$activati13 === void 0 ? void 0 : (_formDetails$activati14 = _formDetails$activati13[0]) === null || _formDetails$activati14 === void 0 ? void 0 : _formDetails$activati14.meterInstallationDate)).then(function (_getConvertedDate) {
@@ -56420,20 +56548,12 @@ const DisconnectionApplication = () => {
56420
56548
  t
56421
56549
  } = reactI18next.useTranslation();
56422
56550
  const match = reactRouterDom.useRouteMatch();
56423
- const stateId = Digit.ULBService.getStateId();
56424
- let {
56425
- data: newConfig,
56426
- isLoading
56427
- } = Digit.Hooks.ws.useWSConfigMDMS.WSDisconnectionConfig(stateId, {});
56551
+ const location = reactRouterDom.useLocation();
56428
56552
  let config = [];
56429
- if (!isLoading && newConfig.length > 0) {
56430
- newConfig.forEach(obj => {
56431
- config = config.concat(obj.body.filter(a => !a.hideInCitizen));
56432
- });
56433
- config.indexRoute = "docsrequired";
56434
- } else {
56435
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
56436
- }
56553
+ newConfig$1.filter(e => e.head === "NEW_DISCONNECTION").forEach(obj => {
56554
+ config = config.concat(obj.body.filter(a => !a.hideInEmployee));
56555
+ });
56556
+ config.indexRoute = "docsrequired";
56437
56557
  return /*#__PURE__*/React__default.createElement(reactRouterDom.Switch, null, config.map((routeObj, index) => {
56438
56558
  const {
56439
56559
  component,
@@ -56457,7 +56577,7 @@ const DisconnectionApplication = () => {
56457
56577
  userType: "employee"
56458
56578
  }));
56459
56579
  }), /*#__PURE__*/React__default.createElement(reactRouterDom.Route, null, /*#__PURE__*/React__default.createElement(reactRouterDom.Redirect, {
56460
- to: `${getPath$5(match.path, match.params)}/${config.indexRoute}`
56580
+ to: `${getPath$5(match.path, match.params)}/${config.indexRoute}${location.search}`
56461
56581
  })));
56462
56582
  };
56463
56583
 
@@ -58260,7 +58380,7 @@ const openFilePDF = fileId => {
58260
58380
  }).catch(error => console.error("Error fetching file:", error));
58261
58381
  };
58262
58382
  const CheckPage$4 = _ref2 => {
58263
- var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$c, _connectionDetails5, _connectionDetails5$c, _connectionDetails6, _connectionDetails7, _connectionDetails7$w, _connectionDetails8, _connectionDetails8$w, _connectionDetails9, _connectionDetails0, _connectionDetails0$a, _connectionDetails1, _connectionDetails1$a, _connectionDetails10, _connectionDetails11, _connectionDetails11$, _connectionDetails12, _connectionDetails12$, _connectionDetails13, _connectionDetails14, _connectionDetails14$, _connectionDetails15, _connectionDetails15$, _connectionDetails16, _connectionDetails16$, _connectionDetails17, _connectionDetails18, _connectionDetails19, _connectionDetails20, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails8$relat, _holderDetails9, _holderDetails9$relat, _holderDetails0, _holderDetails1, _holderDetails10, _holderDetails11, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2, _declaration$signatur;
58383
+ var _Digit$UserService$ge, _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _data$disability, _connectionDetails, _connectionDetails$se, _connectionDetails2, _connectionDetails2$s, _connectionDetails3, _connectionDetails4, _connectionDetails4$a, _connectionDetails5, _connectionDetails5$a, _connectionDetails6, _holderDetails, _holderDetails2, _holderDetails3, _holderDetails4, _holderDetails4$gende, _holderDetails5, _holderDetails5$gende, _holderDetails6, _holderDetails7, _holderDetails8, _holderDetails9, _propertyAddress, _propertyAddress$zro, _propertyAddress2, _propertyAddress3, _propertyAddress4, _propertyAddress4$add, _propertyAddress5, _propertyAddress5$add, _propertyAddress6, _propertyAddress6$add, _propertyAddress7, _propertyAddress8, _propertyAddress8$cit, _propertyAddress9, _propertyAddress9$cit, _propertyAddress0, _propertyAddress1, _propertyAddress10, _propertyAddress11, _propertyAddress11$lo, _propertyAddress12, _propertyAddress12$lo, _propertyAddress13, _propertyAddress14, _propertyAddress14$su, _propertyAddress15, _propertyAddress15$su, _propertyAddress16, _propertyAddress17, _propertyAddress18, _propertyAddress19, _propertyAddress20, _propertyAddress21, _propertyAddress22, _propertyAddress23, _propertyAddress24, _propertyAddress25, _propertyAddress26, _propertyAddress26$as, _propertyAddress27, _propertyAddress27$as, _propertyAddress28, _propertyAddress29, _propertyAddress29$bl, _propertyAddress30, _propertyAddress30$bl, _propertyAddress31, _propertyAddress32, _propertyAddress32$wa, _propertyAddress33, _propertyAddress33$wa, _propertyAddress34, _propertyAddress35, _propertyAddress35$zo, _propertyAddress36, _propertyAddress36$zo, _propertyAddress37, _propertyAddress38, _propertyAddress39, _propertyAddress40, _propertyAddress41, _useDetails$categoryT, _useDetails$categoryT2, _useDetails$propertyC, _useDetails$propertyC2, _useDetails$propertyT, _useDetails$propertyT2, _useDetails$WaterConn, _useDetails$WaterConn2, _useDetails$waterConn, _useDetails$waterConn2, _useDetails$noOfFloor, _useDetails$noOfFloor2, _useDetails$SelectYea, _useDetails$SelectYea2, _useDetails$SelectYea3, _useDetails$construct, _useDetails$construct2, _declaration$submitte, _declaration$submitte2;
58264
58384
  let {
58265
58385
  data,
58266
58386
  onSubmit,
@@ -58274,52 +58394,6 @@ const CheckPage$4 = _ref2 => {
58274
58394
  const [docFileType, setDocFileType] = React.useState("");
58275
58395
  const [formState, setFormState] = React.useState(JSON.parse(sessionStorage.getItem("FORMSTATE_ERRORS")) || {});
58276
58396
  const isCitizen = ((_Digit$UserService$ge = Digit.UserService.getType()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.toUpperCase()) === "CITIZEN";
58277
- const handleViewDocument = function (fileStoreId) {
58278
- try {
58279
- const _temp3 = function () {
58280
- if (fileStoreId) {
58281
- const _temp2 = function () {
58282
- if (typeof fileStoreId === "object" && fileStoreId.type) {
58283
- const fileURL = URL.createObjectURL(fileStoreId);
58284
- setDocFileUrl(fileURL);
58285
- if (fileStoreId.type.includes("pdf")) {
58286
- setDocFileType("pdf");
58287
- } else {
58288
- setDocFileType("image");
58289
- }
58290
- setShowDocModal(true);
58291
- } else {
58292
- const _temp = _catch(function () {
58293
- return Promise.resolve(Digit.UploadServices.FileFetchbyid(fileStoreId, Digit.ULBService.getStateId())).then(function (res) {
58294
- if (res !== null && res !== void 0 && res.data) {
58295
- const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
58296
- type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
58297
- });
58298
- const fileURL = URL.createObjectURL(blob);
58299
- setDocFileUrl(fileURL);
58300
- const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
58301
- if (contentType.toLowerCase().includes("pdf")) {
58302
- setDocFileType("pdf");
58303
- } else {
58304
- setDocFileType("image");
58305
- }
58306
- setShowDocModal(true);
58307
- }
58308
- });
58309
- }, function (err) {
58310
- console.error("Failed to fetch file URL via FileFetchbyid", err);
58311
- });
58312
- if (_temp && _temp.then) return _temp.then(function () {});
58313
- }
58314
- }();
58315
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
58316
- }
58317
- }();
58318
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
58319
- } catch (e) {
58320
- return Promise.reject(e);
58321
- }
58322
- };
58323
58397
  const cpt = (data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : _data$cpt.details) || {};
58324
58398
  let propertyAddress = (data === null || data === void 0 ? void 0 : data.propertyAddress) || {};
58325
58399
  if (Object.keys(propertyAddress).length === 0) {
@@ -58363,43 +58437,10 @@ const CheckPage$4 = _ref2 => {
58363
58437
  actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
58364
58438
  onClick: onEdit
58365
58439
  })
58366
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58367
- label: t("WS_CONNECTION_TYPE"),
58368
- text: `${t(checkForNA(((_connectionDetails4 = connectionDetails) === null || _connectionDetails4 === void 0 ? void 0 : (_connectionDetails4$c = _connectionDetails4.connectionType) === null || _connectionDetails4$c === void 0 ? void 0 : _connectionDetails4$c.i18nKey) || ((_connectionDetails5 = connectionDetails) === null || _connectionDetails5 === void 0 ? void 0 : (_connectionDetails5$c = _connectionDetails5.connectionType) === null || _connectionDetails5$c === void 0 ? void 0 : _connectionDetails5$c.code) || ((_connectionDetails6 = connectionDetails) === null || _connectionDetails6 === void 0 ? void 0 : _connectionDetails6.connectionType)))}`
58369
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58370
- label: t("WS_WATER_DEMAND_TYPE"),
58371
- text: `${t(checkForNA(((_connectionDetails7 = connectionDetails) === null || _connectionDetails7 === void 0 ? void 0 : (_connectionDetails7$w = _connectionDetails7.waterDemandType) === null || _connectionDetails7$w === void 0 ? void 0 : _connectionDetails7$w.i18nKey) || ((_connectionDetails8 = connectionDetails) === null || _connectionDetails8 === void 0 ? void 0 : (_connectionDetails8$w = _connectionDetails8.waterDemandType) === null || _connectionDetails8$w === void 0 ? void 0 : _connectionDetails8$w.code) || ((_connectionDetails9 = connectionDetails) === null || _connectionDetails9 === void 0 ? void 0 : _connectionDetails9.waterDemandType)))}`
58372
58440
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58373
58441
  label: t("WS_APPLICANT_TYPE"),
58374
- text: `${t(checkForNA(((_connectionDetails0 = connectionDetails) === null || _connectionDetails0 === void 0 ? void 0 : (_connectionDetails0$a = _connectionDetails0.applicantType) === null || _connectionDetails0$a === void 0 ? void 0 : _connectionDetails0$a.i18nKey) || ((_connectionDetails1 = connectionDetails) === null || _connectionDetails1 === void 0 ? void 0 : (_connectionDetails1$a = _connectionDetails1.applicantType) === null || _connectionDetails1$a === void 0 ? void 0 : _connectionDetails1$a.code) || ((_connectionDetails10 = connectionDetails) === null || _connectionDetails10 === void 0 ? void 0 : _connectionDetails10.applicantType)))}`
58375
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58376
- label: t("WS_SERVICE_TYPE"),
58377
- text: `${t(checkForNA(((_connectionDetails11 = connectionDetails) === null || _connectionDetails11 === void 0 ? void 0 : (_connectionDetails11$ = _connectionDetails11.domesticType) === null || _connectionDetails11$ === void 0 ? void 0 : _connectionDetails11$.i18nKey) || ((_connectionDetails12 = connectionDetails) === null || _connectionDetails12 === void 0 ? void 0 : (_connectionDetails12$ = _connectionDetails12.domesticType) === null || _connectionDetails12$ === void 0 ? void 0 : _connectionDetails12$.code) || ((_connectionDetails13 = connectionDetails) === null || _connectionDetails13 === void 0 ? void 0 : _connectionDetails13.domesticType)))}`
58378
- }), ((_connectionDetails14 = connectionDetails) === null || _connectionDetails14 === void 0 ? void 0 : (_connectionDetails14$ = _connectionDetails14.domesticType) === null || _connectionDetails14$ === void 0 ? void 0 : _connectionDetails14$.code) === "ORGANIZATION" && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58379
- label: t("WS_DEPARTMENT_TYPE"),
58380
- text: `${t(checkForNA(((_connectionDetails15 = connectionDetails) === null || _connectionDetails15 === void 0 ? void 0 : (_connectionDetails15$ = _connectionDetails15.departmentType) === null || _connectionDetails15$ === void 0 ? void 0 : _connectionDetails15$.i18nKey) || ((_connectionDetails16 = connectionDetails) === null || _connectionDetails16 === void 0 ? void 0 : (_connectionDetails16$ = _connectionDetails16.departmentType) === null || _connectionDetails16$ === void 0 ? void 0 : _connectionDetails16$.code) || ((_connectionDetails17 = connectionDetails) === null || _connectionDetails17 === void 0 ? void 0 : _connectionDetails17.departmentType)))}`
58381
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58382
- label: t("WS_ORGANIZATION_DEPARTMENT_NAME"),
58383
- text: `${t(checkForNA((_connectionDetails18 = connectionDetails) === null || _connectionDetails18 === void 0 ? void 0 : _connectionDetails18.institutionName))}`
58384
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58385
- label: t("WS_NATURE_OF_WORK"),
58386
- text: `${t(checkForNA((_connectionDetails19 = connectionDetails) === null || _connectionDetails19 === void 0 ? void 0 : _connectionDetails19.natureOfWork))}`
58387
- }), ((_connectionDetails20 = connectionDetails) === null || _connectionDetails20 === void 0 ? void 0 : _connectionDetails20.orgDeptDocument) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58388
- label: t("WS_ORG_DEPT_DOCUMENT"),
58389
- text: /*#__PURE__*/React__default.createElement("span", {
58390
- style: {
58391
- display: "flex",
58392
- alignItems: "center",
58393
- gap: "8px",
58394
- cursor: "pointer",
58395
- color: "#f47738"
58396
- },
58397
- onClick: () => {
58398
- var _connectionDetails21;
58399
- return openFilePDF((_connectionDetails21 = connectionDetails) === null || _connectionDetails21 === void 0 ? void 0 : _connectionDetails21.orgDeptDocument);
58400
- }
58401
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
58402
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
58442
+ text: `${t(checkForNA(((_connectionDetails4 = connectionDetails) === null || _connectionDetails4 === void 0 ? void 0 : (_connectionDetails4$a = _connectionDetails4.applicantType) === null || _connectionDetails4$a === void 0 ? void 0 : _connectionDetails4$a.i18nKey) || ((_connectionDetails5 = connectionDetails) === null || _connectionDetails5 === void 0 ? void 0 : (_connectionDetails5$a = _connectionDetails5.applicantType) === null || _connectionDetails5$a === void 0 ? void 0 : _connectionDetails5$a.code) || ((_connectionDetails6 = connectionDetails) === null || _connectionDetails6 === void 0 ? void 0 : _connectionDetails6.applicantType)))}`
58443
+ })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_COMMON_CONNECTION_HOLDER_DETAILS_HEADER")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
58403
58444
  style: {
58404
58445
  marginTop: "10px",
58405
58446
  marginBottom: "30px"
@@ -58419,21 +58460,15 @@ const CheckPage$4 = _ref2 => {
58419
58460
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58420
58461
  label: t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL"),
58421
58462
  text: `${t(checkForNA(((_holderDetails4 = holderDetails) === null || _holderDetails4 === void 0 ? void 0 : (_holderDetails4$gende = _holderDetails4.gender) === null || _holderDetails4$gende === void 0 ? void 0 : _holderDetails4$gende.i18nKey) || ((_holderDetails5 = holderDetails) === null || _holderDetails5 === void 0 ? void 0 : (_holderDetails5$gende = _holderDetails5.gender) === null || _holderDetails5$gende === void 0 ? void 0 : _holderDetails5$gende.code) || ((_holderDetails6 = holderDetails) === null || _holderDetails6 === void 0 ? void 0 : _holderDetails6.gender)))}`
58422
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58423
- label: t("WS_OWN_DETAIL_GUARDIAN_LABEL"),
58424
- text: `${t(checkForNA((_holderDetails7 = holderDetails) === null || _holderDetails7 === void 0 ? void 0 : _holderDetails7.guardian))}`
58425
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58426
- label: t("WS_CONN_HOLDER_OWN_DETAIL_RELATION_LABEL"),
58427
- text: `${t(checkForNA(((_holderDetails8 = holderDetails) === null || _holderDetails8 === void 0 ? void 0 : (_holderDetails8$relat = _holderDetails8.relationship) === null || _holderDetails8$relat === void 0 ? void 0 : _holderDetails8$relat.i18nKey) || ((_holderDetails9 = holderDetails) === null || _holderDetails9 === void 0 ? void 0 : (_holderDetails9$relat = _holderDetails9.relationship) === null || _holderDetails9$relat === void 0 ? void 0 : _holderDetails9$relat.code) || ((_holderDetails0 = holderDetails) === null || _holderDetails0 === void 0 ? void 0 : _holderDetails0.relationship)))}`
58428
58463
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58429
58464
  label: t("CORE_COMMON_MOBILE_NUMBER"),
58430
- text: `${t(checkForNA((_holderDetails1 = holderDetails) === null || _holderDetails1 === void 0 ? void 0 : _holderDetails1.mobileNumber))}`
58465
+ text: `${t(checkForNA((_holderDetails7 = holderDetails) === null || _holderDetails7 === void 0 ? void 0 : _holderDetails7.mobileNumber))}`
58431
58466
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58432
58467
  label: t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER"),
58433
- text: `${t(checkForNA((_holderDetails10 = holderDetails) === null || _holderDetails10 === void 0 ? void 0 : _holderDetails10.watsAppMobileNumber))}`
58468
+ text: `${t(checkForNA((_holderDetails8 = holderDetails) === null || _holderDetails8 === void 0 ? void 0 : _holderDetails8.watsAppMobileNumber))}`
58434
58469
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58435
58470
  label: t("WS_EMAIL_ID"),
58436
- text: `${t(checkForNA((_holderDetails11 = holderDetails) === null || _holderDetails11 === void 0 ? void 0 : _holderDetails11.emailId))}`
58471
+ text: `${t(checkForNA((_holderDetails9 = holderDetails) === null || _holderDetails9 === void 0 ? void 0 : _holderDetails9.emailId))}`
58437
58472
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
58438
58473
  style: {
58439
58474
  marginTop: "10px",
@@ -58612,21 +58647,7 @@ const CheckPage$4 = _ref2 => {
58612
58647
  actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
58613
58648
  onClick: onEdit
58614
58649
  })
58615
- }), ((declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileStoreId) || (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFile)) && /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58616
- label: t("WS_UPLOAD_SIGNATURE_FILE"),
58617
- text: (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileName) || (declaration === null || declaration === void 0 ? void 0 : (_declaration$signatur = declaration.signatureFile) === null || _declaration$signatur === void 0 ? void 0 : _declaration$signatur.name) || "Document"
58618
58650
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58619
- text: /*#__PURE__*/React__default.createElement("span", {
58620
- style: {
58621
- display: "flex",
58622
- alignItems: "center",
58623
- gap: "8px",
58624
- cursor: "pointer",
58625
- color: "#f47738"
58626
- },
58627
- onClick: () => handleViewDocument((declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileStoreId) || (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFile))
58628
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
58629
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
58630
58651
  label: t("WS_I_AGREE_TO_ALL_DECLARATIONS"),
58631
58652
  text: declaration !== null && declaration !== void 0 && declaration.agree ? t("Yes") : t("No")
58632
58653
  }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
@@ -58774,7 +58795,7 @@ const OLDApplication = () => {
58774
58795
  if (config) {
58775
58796
  var _config$body;
58776
58797
  const allCreateSections = (config === null || config === void 0 ? void 0 : (_config$body = config.body) === null || _config$body === void 0 ? void 0 : _config$body.filter(section => section === null || section === void 0 ? void 0 : section.isCreateConnection)) || [];
58777
- const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSDjbEmployee", "WSDivyangjan", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee", "WSDeclaration"];
58798
+ const desiredComponentOrder = ["CPTPropertySearchNSummary", "WSConnectionDetails", "WSConnectionHolderDetails", "WSDjbEmployee", "WSDivyangjan", "WSPropertyLocationDetails", "PropertyWaterConnection", "WSActivationPlumberDetails", "WSRoadCuttingDetails", "WSDocumentsEmployee", "WSDeclaration"];
58778
58799
  const reorderedBody = [];
58779
58800
  desiredComponentOrder.forEach(compName => {
58780
58801
  const section = allCreateSections.find(s => {
@@ -59410,6 +59431,8 @@ const componentsToRegister = {
59410
59431
  WSDocumentsEmployee,
59411
59432
  WSEditConnectionDetails,
59412
59433
  WSDisconnectionDocsRequired,
59434
+ WSDisconnectionKNumber,
59435
+ WSDisconnectionConsumerDetails,
59413
59436
  WSDisconnectionForm,
59414
59437
  WSRestorationForm,
59415
59438
  WSDisconnectionDocumentsForm,