@djb25/digit-ui-module-ws 1.0.94 → 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
  };
@@ -11818,14 +11868,14 @@ const App$1 = _ref2 => {
11818
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");
11819
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");
11820
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");
11821
- 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");
11822
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");
11823
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");
11824
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");
11825
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");
11826
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");
11827
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");
11828
- 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");
11829
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");
11830
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");
11831
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");
@@ -12862,8 +12912,8 @@ const createConnectionDetails = () => ({
12862
12912
  i18nKey: "Exhibition"
12863
12913
  },
12864
12914
  waterDemandType: {
12865
- code: "BULK",
12866
- i18nKey: "WS_WATER_DEMAND_BULK"
12915
+ code: "NON_BULK",
12916
+ i18nKey: "WS_WATER_DEMAND_NON_BULK"
12867
12917
  },
12868
12918
  applicantType: {
12869
12919
  code: "OWNER",
@@ -13038,7 +13088,7 @@ const WSConnectionDetails = _ref => {
13038
13088
  }, commonProps))));
13039
13089
  };
13040
13090
  const ConnectionDetails = _props => {
13041
- var _formData$DocumentsRe, _formValue$connection, _formValue$categoryTy, _formValue$categoryTy2, _formValue$domesticTy;
13091
+ var _formData$DocumentsRe;
13042
13092
  const {
13043
13093
  connectionDetail,
13044
13094
  focusIndex,
@@ -13090,8 +13140,8 @@ const ConnectionDetails = _props => {
13090
13140
  i18nKey: "Exhibition"
13091
13141
  },
13092
13142
  waterDemandType: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterDemandType) || {
13093
- code: "BULK",
13094
- i18nKey: "WS_WATER_DEMAND_BULK"
13143
+ code: "NON_BULK",
13144
+ i18nKey: "WS_WATER_DEMAND_NON_BULK"
13095
13145
  },
13096
13146
  applicantType: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.applicantType) || {
13097
13147
  code: "OWNER",
@@ -13121,18 +13171,6 @@ const ConnectionDetails = _props => {
13121
13171
  const [showDocModal, setShowDocModal] = React.useState(false);
13122
13172
  const [docFileUrl, setDocFileUrl] = React.useState("");
13123
13173
  const [docFileType, setDocFileType] = React.useState("");
13124
- const handleSelectFile = e => {
13125
- var _e$target$files;
13126
- const selectedFile = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
13127
- if (selectedFile) {
13128
- if (selectedFile.size >= 5242880) {
13129
- setFileUploadError(t("CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED") || "Maximum file size exceeded (5MB)");
13130
- } else {
13131
- setFile(selectedFile);
13132
- setFileUploadError(null);
13133
- }
13134
- }
13135
- };
13136
13174
  React.useEffect(() => {
13137
13175
  (function () {
13138
13176
  try {
@@ -13163,38 +13201,6 @@ const ConnectionDetails = _props => {
13163
13201
  }
13164
13202
  })();
13165
13203
  }, [file]);
13166
- const viewDocument = function () {
13167
- try {
13168
- const _temp4 = function () {
13169
- if (uploadedFile) {
13170
- const _temp3 = _catch(function () {
13171
- return Promise.resolve(Digit.UploadServices.FileFetchbyid(uploadedFile, Digit.ULBService.getStateId())).then(function (res) {
13172
- if (res !== null && res !== void 0 && res.data) {
13173
- const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
13174
- type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
13175
- });
13176
- const fileURL = URL.createObjectURL(blob);
13177
- setDocFileUrl(fileURL);
13178
- const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
13179
- if (contentType.toLowerCase().includes("pdf")) {
13180
- setDocFileType("pdf");
13181
- } else {
13182
- setDocFileType("image");
13183
- }
13184
- setShowDocModal(true);
13185
- }
13186
- });
13187
- }, function (err) {
13188
- console.error("Failed to fetch file URL via FileFetchbyid", err);
13189
- });
13190
- if (_temp3 && _temp3.then) return _temp3.then(function () {});
13191
- }
13192
- }();
13193
- return Promise.resolve(_temp4 && _temp4.then ? _temp4.then(function () {}) : void 0);
13194
- } catch (e) {
13195
- return Promise.reject(e);
13196
- }
13197
- };
13198
13204
  React.useEffect(() => {
13199
13205
  trigger();
13200
13206
  }, []);
@@ -13269,7 +13275,9 @@ const ConnectionDetails = _props => {
13269
13275
  defaultOpen: true
13270
13276
  }, /*#__PURE__*/React__default.createElement("div", {
13271
13277
  className: "formcomposer-section-grid"
13272
- }, /*#__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, {
13273
13281
  control: control,
13274
13282
  name: "serviceType",
13275
13283
  defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.serviceType) || "",
@@ -13285,81 +13293,12 @@ const ConnectionDetails = _props => {
13285
13293
  onChange: () => {},
13286
13294
  style: {
13287
13295
  backgroundColor: "#eee"
13288
- }
13296
+ },
13297
+ placeholder: t("WS_SERVICE_TYPE_PLACEHOLDER")
13289
13298
  })
13290
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_CONNECTION_TYPE")}*`), /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13291
- control: control,
13292
- name: "connectionType",
13293
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.connectionType) || "",
13294
- rules: {
13295
- required: t("REQUIRED_FIELD")
13296
- },
13297
- isMandatory: true,
13298
- render: props => {
13299
- var _errors$connectionTyp;
13300
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
13301
- className: "form-field",
13302
- selected: getValues("connectionType"),
13303
- disable: false,
13304
- option: connectionTypeList,
13305
- errorStyle: localFormState.touched.connectionType && errors !== null && errors !== void 0 && (_errors$connectionTyp = errors.connectionType) !== null && _errors$connectionTyp !== void 0 && _errors$connectionTyp.message ? true : false,
13306
- select: e => {
13307
- props.onChange(e);
13308
- },
13309
- optionKey: "i18nKey",
13310
- onBlur: props.onBlur,
13311
- t: t
13312
- });
13313
- }
13314
- })), (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, {
13315
- control: control,
13316
- name: "temporaryType",
13317
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.temporaryType) || "",
13318
- rules: {
13319
- required: t("REQUIRED_FIELD")
13320
- },
13321
- isMandatory: true,
13322
- render: props => {
13323
- var _errors$temporaryType;
13324
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
13325
- className: "form-field",
13326
- selected: getValues("temporaryType"),
13327
- disable: false,
13328
- option: temporaryTypeList,
13329
- errorStyle: localFormState.touched.temporaryType && errors !== null && errors !== void 0 && (_errors$temporaryType = errors.temporaryType) !== null && _errors$temporaryType !== void 0 && _errors$temporaryType.message ? true : false,
13330
- select: e => {
13331
- props.onChange(e);
13332
- },
13333
- optionKey: "i18nKey",
13334
- onBlur: props.onBlur,
13335
- t: t
13336
- });
13337
- }
13338
- })), /*#__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, {
13339
- control: control,
13340
- name: "waterDemandType",
13341
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.waterDemandType) || "",
13342
- rules: {
13343
- required: t("REQUIRED_FIELD")
13344
- },
13345
- isMandatory: true,
13346
- render: props => {
13347
- var _errors$waterDemandTy;
13348
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
13349
- className: "form-field",
13350
- selected: getValues("waterDemandType"),
13351
- disable: false,
13352
- option: waterDemandTypeList,
13353
- errorStyle: localFormState.touched.waterDemandType && errors !== null && errors !== void 0 && (_errors$waterDemandTy = errors.waterDemandType) !== null && _errors$waterDemandTy !== void 0 && _errors$waterDemandTy.message ? true : false,
13354
- select: e => {
13355
- props.onChange(e);
13356
- },
13357
- optionKey: "i18nKey",
13358
- onBlur: props.onBlur,
13359
- t: t
13360
- });
13361
- }
13362
- })), /*#__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, {
13363
13302
  control: control,
13364
13303
  name: "applicantType",
13365
13304
  defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.applicantType) || "",
@@ -13380,187 +13319,11 @@ const ConnectionDetails = _props => {
13380
13319
  },
13381
13320
  optionKey: "i18nKey",
13382
13321
  onBlur: props.onBlur,
13383
- t: t
13384
- });
13385
- }
13386
- })), /*#__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", {
13387
- className: "field"
13388
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13389
- control: control,
13390
- name: "domesticType",
13391
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.domesticType) || "",
13392
- rules: {
13393
- required: t("REQUIRED_FIELD")
13394
- },
13395
- isMandatory: true,
13396
- render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
13397
- className: "form-field",
13398
- style: {
13399
- display: "flex",
13400
- gap: "2rem",
13401
- alignItems: "center"
13402
- },
13403
- options: [{
13404
- i18nKey: "WS_DOMESTIC_TYPE_DOMESTIC",
13405
- code: "INDIVIDUAL"
13406
- }, {
13407
- i18nKey: "WS_DOMESTIC_TYPE_NON_DOMESTIC",
13408
- code: "ORGANIZATION"
13409
- }],
13410
- optionsKey: "i18nKey",
13411
- selectedOption: getValues("domesticType"),
13412
- onSelect: e => {
13413
- props.onChange(e);
13414
- },
13415
- t: t,
13416
- isDependent: true
13417
- })
13418
- }))), (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", {
13419
- className: "field"
13420
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13421
- control: control,
13422
- name: "departmentType",
13423
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.departmentType) || {
13424
- i18nKey: "WS_DEPARTMENT_TYPE_GOVERNMENT",
13425
- code: "GOVERNMENT"
13426
- },
13427
- rules: {
13428
- required: t("REQUIRED_FIELD")
13429
- },
13430
- isMandatory: true,
13431
- render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.RadioButtons, {
13432
- className: "form-field",
13433
- style: {
13434
- display: "flex",
13435
- gap: "2rem",
13436
- alignItems: "center"
13437
- },
13438
- options: [{
13439
- i18nKey: "WS_DEPARTMENT_TYPE_GOVERNMENT",
13440
- code: "GOVERNMENT"
13441
- }, {
13442
- i18nKey: "WS_DEPARTMENT_TYPE_NON_GOVERNMENT",
13443
- code: "NON_GOVERNMENT"
13444
- }],
13445
- optionsKey: "i18nKey",
13446
- selectedOption: getValues("departmentType"),
13447
- onSelect: e => {
13448
- props.onChange(e);
13449
- },
13450
- t: t,
13451
- isDependent: true
13452
- })
13453
- }))), /*#__PURE__*/React__default.createElement("div", {
13454
- style: {
13455
- color: "#3257F2",
13456
- fontWeight: "700",
13457
- fontSize: "1.5rem",
13458
- gridColumn: "span 2"
13459
- }
13460
- }, 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", {
13461
- className: "field"
13462
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13463
- control: control,
13464
- name: "institutionName",
13465
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.institutionName) || "",
13466
- rules: {
13467
- required: t("REQUIRED_FIELD")
13468
- },
13469
- isMandatory: true,
13470
- render: props => {
13471
- var _errors$institutionNa;
13472
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
13473
- value: props.value,
13474
- placeholder: t("WS_ORGANIZATION_DEPARTMENT_NAME_PLACEHOLDER"),
13475
- autoFocus: focusIndex.index === (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key) && focusIndex.type === "institutionName",
13476
- errorStyle: localFormState.touched.institutionName && errors !== null && errors !== void 0 && (_errors$institutionNa = errors.institutionName) !== null && _errors$institutionNa !== void 0 && _errors$institutionNa.message ? true : false,
13477
- onChange: e => {
13478
- props.onChange(e.target.value);
13479
- setFocusIndex({
13480
- index: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key,
13481
- type: "institutionName"
13482
- });
13483
- },
13484
- onBlur: props.onBlur
13485
- });
13486
- }
13487
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_NATURE_OF_WORK")}*`), /*#__PURE__*/React__default.createElement("div", {
13488
- className: "field"
13489
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13490
- control: control,
13491
- name: "natureOfWork",
13492
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.natureOfWork) || "",
13493
- rules: {
13494
- required: t("REQUIRED_FIELD")
13495
- },
13496
- isMandatory: true,
13497
- render: props => {
13498
- var _errors$natureOfWork;
13499
- return /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
13500
- value: props.value,
13501
- placeholder: t("WS_NATURE_OF_WORK_PLACEHOLDER"),
13502
- autoFocus: focusIndex.index === (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key) && focusIndex.type === "natureOfWork",
13503
- errorStyle: localFormState.touched.natureOfWork && errors !== null && errors !== void 0 && (_errors$natureOfWork = errors.natureOfWork) !== null && _errors$natureOfWork !== void 0 && _errors$natureOfWork.message ? true : false,
13504
- onChange: e => {
13505
- props.onChange(e.target.value);
13506
- setFocusIndex({
13507
- index: connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.key,
13508
- type: "natureOfWork"
13509
- });
13510
- },
13511
- onBlur: props.onBlur
13322
+ t: t,
13323
+ placeholder: t("WS_APPLICANT_TYPE_PLACEHOLDER")
13512
13324
  });
13513
13325
  }
13514
- }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.LabelFieldPair, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, null, `${t("WS_ORG_DEPT_DOCUMENT")}*`), /*#__PURE__*/React__default.createElement("div", {
13515
- className: "field",
13516
- style: {
13517
- display: "flex",
13518
- gap: "10px",
13519
- alignItems: "center"
13520
- }
13521
- }, /*#__PURE__*/React__default.createElement("div", {
13522
- style: {
13523
- flex: 1
13524
- }
13525
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
13526
- control: control,
13527
- name: "orgDeptDocument",
13528
- defaultValue: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument) || "",
13529
- rules: {
13530
- required: t("REQUIRED_FIELD")
13531
- },
13532
- isMandatory: true,
13533
- render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
13534
- id: "orgDeptDocument",
13535
- onUpload: handleSelectFile,
13536
- onDelete: () => {
13537
- setUploadedFile(null);
13538
- setFile(null);
13539
- props.onChange(null);
13540
- },
13541
- message: uploadedFile ? `1 ${t("WS_ACTION_FILEUPLOADED")}` : t("WS_ACTION_NO_FILEUPLOADED"),
13542
- accept: "image/*, .pdf",
13543
- uploadedFiles: uploadedFile && !file ? [[(connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocumentName) || "Document", {
13544
- fileStoreId: uploadedFile
13545
- }]] : undefined,
13546
- removeTargetedFile: () => {
13547
- setUploadedFile(null);
13548
- setFile(null);
13549
- props.onChange(null);
13550
- }
13551
- })
13552
- })), uploadedFile && /*#__PURE__*/React__default.createElement("div", {
13553
- onClick: viewDocument,
13554
- style: {
13555
- cursor: "pointer"
13556
- }
13557
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null)))), fileUploadError && /*#__PURE__*/React__default.createElement("div", {
13558
- style: {
13559
- color: "red",
13560
- fontSize: "12px",
13561
- marginTop: "4px"
13562
- }
13563
- }, fileUploadError))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
13326
+ }))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
13564
13327
  open: showDocModal,
13565
13328
  headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
13566
13329
  headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
@@ -14270,7 +14033,7 @@ const WSConnectionHolderDetails = _ref => {
14270
14033
  }, commonProps))));
14271
14034
  };
14272
14035
  const ConnectionDetails$1 = _props => {
14273
- 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;
14274
14037
  const {
14275
14038
  connectionHolderDetail,
14276
14039
  focusIndex,
@@ -14451,7 +14214,9 @@ const ConnectionDetails$1 = _props => {
14451
14214
  defaultOpen: true
14452
14215
  }, !sameAsOwnerDetails ? /*#__PURE__*/React__default.createElement("div", {
14453
14216
  className: "formcomposer-section-grid"
14454
- }, /*#__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, {
14455
14220
  control: control,
14456
14221
  name: "name",
14457
14222
  defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.name,
@@ -14477,7 +14242,8 @@ const ConnectionDetails$1 = _props => {
14477
14242
  labelStyle: {
14478
14243
  marginTop: "unset"
14479
14244
  },
14480
- onBlur: props.onBlur
14245
+ onBlur: props.onBlur,
14246
+ placeholder: t("WS_OWN_DETAIL_NAME")
14481
14247
  }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14482
14248
  unmaskField: e => {
14483
14249
  setName(e);
@@ -14524,7 +14290,8 @@ const ConnectionDetails$1 = _props => {
14524
14290
  labelStyle: {
14525
14291
  marginTop: "unset"
14526
14292
  },
14527
- onBlur: props.onBlur
14293
+ onBlur: props.onBlur,
14294
+ placeholder: t("WS_OWN_DETAIL_MIDDLE_NAME")
14528
14295
  }));
14529
14296
  }
14530
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, {
@@ -14550,12 +14317,15 @@ const ConnectionDetails$1 = _props => {
14550
14317
  labelStyle: {
14551
14318
  marginTop: "unset"
14552
14319
  },
14553
- onBlur: props.onBlur
14320
+ onBlur: props.onBlur,
14321
+ placeholder: t("WS_OWN_DETAIL_LAST_NAME")
14554
14322
  }));
14555
14323
  }
14556
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, {
14557
14325
  style: errorStyle
14558
- }, 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", {
14559
14329
  className: "field"
14560
14330
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
14561
14331
  control: control,
@@ -14579,7 +14349,8 @@ const ConnectionDetails$1 = _props => {
14579
14349
  },
14580
14350
  optionKey: "i18nKey",
14581
14351
  onBlur: props.onBlur,
14582
- t: t
14352
+ t: t,
14353
+ placeholder: t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL")
14583
14354
  }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14584
14355
  unmaskField: e => {
14585
14356
  const r = {
@@ -14610,116 +14381,9 @@ const ConnectionDetails$1 = _props => {
14610
14381
  }
14611
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, {
14612
14383
  style: errorStyle
14613
- }, 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", {
14614
- className: "field"
14615
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
14616
- control: control,
14617
- name: "guardian",
14618
- defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.guardian,
14619
- rules: {
14620
- validate: e => e && getPattern("Name").test(e) || !e || e.includes("*") ? true : t("ERR_DEFAULT_INPUT_FIELD_MSG"),
14621
- required: t("REQUIRED_FIELD")
14622
- },
14623
- isMandatory: true,
14624
- render: props => {
14625
- var _errors$guardian, _getValues2, _formData$ConnectionD11, _formData$ConnectionD12, _formData$cpt3, _formData$cpt3$detail, _formData$ConnectionD13, _formData$ConnectionD14, _formData$ConnectionD15, _formData$ConnectionD16;
14626
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
14627
- value: getValues("guardian") || "",
14628
- autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "guardian",
14629
- errorStyle: localFormState.touched.guardian && errors !== null && errors !== void 0 && (_errors$guardian = errors.guardian) !== null && _errors$guardian !== void 0 && _errors$guardian.message ? true : false,
14630
- onChange: e => {
14631
- setGuardian(e.target.value);
14632
- props.onChange(e.target.value);
14633
- setFocusIndex({
14634
- index: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key,
14635
- type: "guardian"
14636
- });
14637
- },
14638
- labelStyle: {
14639
- marginTop: "unset"
14640
- },
14641
- onBlur: props.onBlur
14642
- }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14643
- unmaskField: e => {
14644
- setGuardian(e);
14645
- props.onChange(e);
14646
- },
14647
- iseyevisible: (_getValues2 = getValues("guardian")) !== null && _getValues2 !== void 0 && _getValues2.includes("*") ? true : false,
14648
- privacy: {
14649
- uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
14650
- fieldName: "fatherOrHusbandName",
14651
- model: "WnSConnectionOwner",
14652
- loadData: {
14653
- 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",
14654
- requestBody: {},
14655
- requestParam: {
14656
- 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,
14657
- 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
14658
- },
14659
- 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",
14660
- isArray: false
14661
- }
14662
- }
14663
- })));
14664
- }
14665
- }))), 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, {
14666
- style: errorStyle
14667
- }, 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", {
14668
- className: "field"
14669
- }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
14670
- control: control,
14671
- name: "relationship",
14672
- defaultValue: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.relationship,
14673
- rules: {
14674
- required: t("REQUIRED_FIELD")
14675
- },
14676
- isMandatory: true,
14677
- render: props => {
14678
- var _errors$relationship, _relationship$i18nKey, _formData$ConnectionD17, _formData$ConnectionD18, _formData$cpt4, _formData$cpt4$detail, _formData$ConnectionD19, _formData$ConnectionD20, _formData$ConnectionD21, _formData$ConnectionD22;
14679
- return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
14680
- className: "form-field",
14681
- selected: getValues("relationship"),
14682
- disable: false,
14683
- option: GuardianOptions,
14684
- errorStyle: localFormState.touched.relationship && errors !== null && errors !== void 0 && (_errors$relationship = errors.relationship) !== null && _errors$relationship !== void 0 && _errors$relationship.message ? true : false,
14685
- select: e => {
14686
- setRelationship(e);
14687
- props.onChange(e);
14688
- },
14689
- optionKey: "i18nKey",
14690
- onBlur: props.onBlur,
14691
- t: t
14692
- }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14693
- unmaskField: e => {
14694
- const r = {
14695
- code: e,
14696
- i18nKey: `COMMON_MASTERS_OWNERTYPE_${e}`,
14697
- name: e
14698
- };
14699
- setRelationship(r);
14700
- props.onChange(r);
14701
- },
14702
- iseyevisible: relationship !== null && relationship !== void 0 && (_relationship$i18nKey = relationship.i18nKey) !== null && _relationship$i18nKey !== void 0 && _relationship$i18nKey.includes("*") ? true : false,
14703
- privacy: {
14704
- uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
14705
- fieldName: "relationship",
14706
- model: "WnSConnection",
14707
- loadData: {
14708
- 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",
14709
- requestBody: {},
14710
- requestParam: {
14711
- 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,
14712
- 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
14713
- },
14714
- 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",
14715
- isArray: false
14716
- }
14717
- }
14718
- })));
14719
- }
14720
- }))), 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, {
14721
- style: errorStyle
14722
- }, 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", {
14723
14387
  className: "field"
14724
14388
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
14725
14389
  control: control,
@@ -14731,7 +14395,7 @@ const ConnectionDetails$1 = _props => {
14731
14395
  },
14732
14396
  isMandatory: true,
14733
14397
  render: props => {
14734
- 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;
14735
14399
  const mobileValue = getValues("mobileNumber");
14736
14400
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
14737
14401
  name: "mobileNumber",
@@ -14751,7 +14415,8 @@ const ConnectionDetails$1 = _props => {
14751
14415
  }
14752
14416
  },
14753
14417
  onBlur: props.onBlur,
14754
- hideSpan: false
14418
+ hideSpan: false,
14419
+ placeholder: t("CORE_COMMON_MOBILE_NUMBER")
14755
14420
  }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14756
14421
  value: mobileValue,
14757
14422
  unmaskField: e => {
@@ -14763,13 +14428,13 @@ const ConnectionDetails$1 = _props => {
14763
14428
  fieldName: "connectionHoldersMobileNumber",
14764
14429
  model: "WnSConnectionOwner",
14765
14430
  loadData: {
14766
- 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",
14767
14432
  requestBody: {},
14768
14433
  requestParam: {
14769
- 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,
14770
- 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
14771
14436
  },
14772
- 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",
14773
14438
  isArray: false
14774
14439
  }
14775
14440
  }
@@ -14789,7 +14454,7 @@ const ConnectionDetails$1 = _props => {
14789
14454
  },
14790
14455
  isMandatory: true,
14791
14456
  render: props => {
14792
- 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;
14793
14458
  const watsAppmobileValue = getValues("watsAppMobileNumber");
14794
14459
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.MobileNumber, {
14795
14460
  name: "watsAppMobileNumber",
@@ -14806,6 +14471,7 @@ const ConnectionDetails$1 = _props => {
14806
14471
  },
14807
14472
  onBlur: props.onBlur,
14808
14473
  hideSpan: false,
14474
+ placeholder: t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER"),
14809
14475
  disable: isWatsappSameAsMobile
14810
14476
  }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14811
14477
  value: watsAppmobileValue,
@@ -14818,13 +14484,13 @@ const ConnectionDetails$1 = _props => {
14818
14484
  fieldName: "connectionHoldersMobileNumber",
14819
14485
  model: "WnSConnectionOwner",
14820
14486
  loadData: {
14821
- 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",
14822
14488
  requestBody: {},
14823
14489
  requestParam: {
14824
- 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,
14825
- 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
14826
14492
  },
14827
- 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",
14828
14494
  isArray: false
14829
14495
  }
14830
14496
  }
@@ -14877,7 +14543,7 @@ const ConnectionDetails$1 = _props => {
14877
14543
  },
14878
14544
  isMandatory: false,
14879
14545
  render: props => {
14880
- 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;
14881
14547
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
14882
14548
  value: getValues("emailId") || "",
14883
14549
  autoFocus: focusIndex.index === (connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.key) && focusIndex.type === "emailId",
@@ -14894,25 +14560,26 @@ const ConnectionDetails$1 = _props => {
14894
14560
  labelStyle: {
14895
14561
  marginTop: "unset"
14896
14562
  },
14897
- onBlur: props.onBlur
14563
+ onBlur: props.onBlur,
14564
+ placeholder: t("WS_EMAIL_ID")
14898
14565
  }), checkifPrivacyValid() && /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.WrapUnMaskComponent, {
14899
14566
  unmaskField: e => {
14900
14567
  setEmailId(e);
14901
14568
  props.onChange(e);
14902
14569
  },
14903
- 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,
14904
14571
  privacy: {
14905
14572
  uuid: connectionHolderDetail === null || connectionHolderDetail === void 0 ? void 0 : connectionHolderDetail.uuid,
14906
14573
  fieldName: "emailId",
14907
14574
  model: "WnSConnectionOwner",
14908
14575
  loadData: {
14909
- 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",
14910
14577
  requestBody: {},
14911
14578
  requestParam: {
14912
- 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,
14913
- 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
14914
14581
  },
14915
- 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",
14916
14583
  isArray: false
14917
14584
  }
14918
14585
  }
@@ -18804,7 +18471,7 @@ const removeDuplicateOtherDocuments = function (documentList) {
18804
18471
  });
18805
18472
  };
18806
18473
  const WSDocumentsEmployee = _ref => {
18807
- 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;
18808
18475
  let {
18809
18476
  t,
18810
18477
  config,
@@ -18859,9 +18526,9 @@ const WSDocumentsEmployee = _ref => {
18859
18526
  }
18860
18527
  };
18861
18528
  React.useEffect(() => {
18862
- var _wsDocs$wsDocsData;
18529
+ var _wsDocs$wsDocsData, _wsDocs$wsDocsData$fi;
18863
18530
  let count = 0;
18864
- 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 => {
18865
18532
  let isRequired = false;
18866
18533
  documents.map(data => {
18867
18534
  if (doc.required && data !== null && data !== void 0 && data.documentType.includes(doc.code)) isRequired = true;
@@ -18881,8 +18548,8 @@ const WSDocumentsEmployee = _ref => {
18881
18548
  var _applicationDetailsDa3;
18882
18549
  const documentsData = (applicationDetailsData === null || applicationDetailsData === void 0 ? void 0 : (_applicationDetailsDa3 = applicationDetailsData.applicationData) === null || _applicationDetailsDa3 === void 0 ? void 0 : _applicationDetailsDa3.documents) || [];
18883
18550
  documentsData === null || documentsData === void 0 ? void 0 : documentsData.map(documentData => {
18884
- var _wsDocs$wsDocsData2;
18885
- 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 => {
18886
18553
  var _docData$code, _docData$code2, _docData$code3, _docData$code4, _documentData$documen, _documentData$documen2, _documentData$documen3, _documentData$documen4;
18887
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];
18888
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];
@@ -18900,7 +18567,7 @@ const WSDocumentsEmployee = _ref => {
18900
18567
  }
18901
18568
  const innerContent = /*#__PURE__*/React__default.createElement("div", {
18902
18569
  className: "formcomposer-section-grid ws-doc-upload"
18903
- }, 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) => {
18904
18571
  return /*#__PURE__*/React__default.createElement(SelectDocument, {
18905
18572
  key: index,
18906
18573
  document: document,
@@ -19057,11 +18724,6 @@ function SelectDocument(_ref2) {
19057
18724
  const eligible = isDigiLockerEligible((selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code) || "");
19058
18725
  setDigilockerUpload(eligible);
19059
18726
  }, [selectedDocument]);
19060
- const handleCapture = capturedFile => {
19061
- setFile(capturedFile);
19062
- setIsCameraFile(true);
19063
- setShowCamera(false);
19064
- };
19065
18727
  const handleSelectDocument = value => setSelectedDocument(value);
19066
18728
  const removeUploadedDocument = fileStoreId => {
19067
18729
  setDocuments(previousDocuments => previousDocuments.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== fileStoreId));
@@ -19166,9 +18828,9 @@ function SelectDocument(_ref2) {
19166
18828
  React.useEffect(() => {
19167
18829
  if (selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) {
19168
18830
  setDocuments(prev => {
19169
- 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));
19170
18832
  if ((uploadedFile === null || uploadedFile === void 0 ? void 0 : uploadedFile.length) === 0 || uploadedFile === null) {
19171
- return filteredDocumentsByDocumentType;
18833
+ return isOther ? prev : filteredDocumentsByDocumentType;
19172
18834
  }
19173
18835
  const filteredDocumentsByFileStoreId = filteredDocumentsByDocumentType === null || filteredDocumentsByDocumentType === void 0 ? void 0 : filteredDocumentsByDocumentType.filter(item => (item === null || item === void 0 ? void 0 : item.fileStoreId) !== uploadedFile);
19174
18836
  const data = [...filteredDocumentsByFileStoreId, {
@@ -19187,15 +18849,21 @@ function SelectDocument(_ref2) {
19187
18849
  });
19188
18850
  }
19189
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
+ }));
19190
18856
  if (!isHidden) {
19191
- if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code) || err) && doc !== null && doc !== void 0 && doc.required) {
18857
+ if (err) {
19192
18858
  addError();
19193
- } else if (err) {
18859
+ } else if ((!uploadedFile || !(selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code)) && doc !== null && doc !== void 0 && doc.required && !hasOtherUploaded) {
19194
18860
  addError();
19195
18861
  } else if (uploadedFile && selectedDocument !== null && selectedDocument !== void 0 && selectedDocument.code && !err) {
19196
18862
  removeError();
19197
18863
  } else if (!(doc !== null && doc !== void 0 && doc.required) && !err) {
19198
18864
  removeError();
18865
+ } else if (hasOtherUploaded) {
18866
+ removeError();
19199
18867
  }
19200
18868
  } else if (isHidden) {
19201
18869
  removeError();
@@ -19286,7 +18954,9 @@ function SelectDocument(_ref2) {
19286
18954
  style: {
19287
18955
  margin: 0
19288
18956
  }
19289
- }, 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, {
19290
18960
  id: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
19291
18961
  key: `doc-${doc === null || doc === void 0 ? void 0 : doc.code}`,
19292
18962
  className: "form-field",
@@ -19300,7 +18970,8 @@ function SelectDocument(_ref2) {
19300
18970
  }),
19301
18971
  select: handleSelectDocument,
19302
18972
  optionKey: "i18nKey",
19303
- t: t
18973
+ t: t,
18974
+ placeholder: t("PT_MUTATION_SELECT_DOC_LABEL")
19304
18975
  })) : null, (doc === null || doc === void 0 ? void 0 : doc.code) !== "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React__default.createElement("div", {
19305
18976
  style: {
19306
18977
  display: "flex",
@@ -19395,30 +19066,14 @@ function SelectDocument(_ref2) {
19395
19066
  style: {
19396
19067
  margin: 0
19397
19068
  }
19398
- }, 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", {
19399
- type: "button",
19400
- onClick: () => {
19401
- setUploadedFile(null);
19402
- setFile(null);
19403
- setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
19404
- setDocumentUid("");
19405
- setDocNumberError(null);
19406
- },
19407
- style: {
19408
- border: "1px solid #00497e",
19409
- background: "#fff",
19410
- color: "#00497e",
19411
- borderRadius: "4px",
19412
- padding: "4px 10px",
19413
- cursor: "pointer",
19414
- fontWeight: "bold"
19415
- }
19416
- }, "+ 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", {
19417
19072
  className: "field",
19418
19073
  style: {
19419
19074
  display: "flex",
19420
- gap: "20px",
19421
- alignItems: "center",
19075
+ gap: "10px",
19076
+ alignItems: "flex-start",
19422
19077
  width: "100%"
19423
19078
  }
19424
19079
  }, /*#__PURE__*/React__default.createElement("div", {
@@ -19446,11 +19101,15 @@ function SelectDocument(_ref2) {
19446
19101
  fileStoreId: uploadedFile
19447
19102
  }]] : undefined,
19448
19103
  removeTargetedFile: () => {
19449
- setUploadedFile(null);
19450
- setFile(null);
19451
- setIsCameraFile(false);
19452
- setIsDocumentUidLocked(false);
19453
- 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
+ }
19454
19113
  },
19455
19114
  documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
19456
19115
  onDocumentNumber: num => {
@@ -19478,13 +19137,49 @@ function SelectDocument(_ref2) {
19478
19137
  fileStoreId: uploadedFile
19479
19138
  }]] : undefined,
19480
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
+ }
19481
19165
  setUploadedFile(null);
19482
19166
  setFile(null);
19483
- setIsCameraFile(false);
19484
- setIsDocumentUidLocked(false);
19167
+ setSelectedDocument(doc !== null && doc !== void 0 && doc.hasDropdown ? {} : doc);
19485
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"
19486
19181
  }
19487
- }))), (isOther ? otherUploadedDocuments : uploadedFile ? [{
19182
+ }, "+ ", t("NEW_DOCUMENT_TEXT") || "Add Document")), (isOther ? otherUploadedDocuments : uploadedFile ? [{
19488
19183
  fileStoreId: uploadedFile,
19489
19184
  fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName),
19490
19185
  documentNumber: documentUid
@@ -19501,7 +19196,7 @@ function SelectDocument(_ref2) {
19501
19196
  style: {
19502
19197
  fontWeight: "bold"
19503
19198
  }
19504
- }, 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", {
19505
19200
  type: "button",
19506
19201
  onClick: () => viewDocument(uploadedDocument.fileStoreId),
19507
19202
  title: t("WS_VIEW_DOCUMENT") || "View Document",
@@ -19524,64 +19219,7 @@ function SelectDocument(_ref2) {
19524
19219
  padding: 0,
19525
19220
  fontSize: "18px"
19526
19221
  }
19527
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RemoveIcon, null))))), /*#__PURE__*/React__default.createElement("div", {
19528
- style: {
19529
- display: "flex",
19530
- flexDirection: "column",
19531
- gap: "8px",
19532
- gridColumn: "span 1"
19533
- }
19534
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardLabel, {
19535
- style: {
19536
- margin: 0
19537
- }
19538
- }, (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", {
19539
- style: {
19540
- display: "flex",
19541
- alignItems: "center",
19542
- gap: "20px",
19543
- height: "100%"
19544
- }
19545
- }, (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" && /*#__PURE__*/React__default.createElement("div", {
19546
- style: {
19547
- display: "flex",
19548
- alignItems: "center",
19549
- gap: "10px"
19550
- }
19551
- }, /*#__PURE__*/React__default.createElement("button", {
19552
- type: "button",
19553
- style: {
19554
- display: "flex",
19555
- alignItems: "center",
19556
- justifyContent: "center",
19557
- gap: "8px",
19558
- padding: "6px 16px",
19559
- background: "#f0f0f0",
19560
- border: "1px solid #ccc",
19561
- borderRadius: "2px",
19562
- cursor: isUploading ? "not-allowed" : "pointer",
19563
- width: "fit-content",
19564
- opacity: isUploading ? 0.5 : 1
19565
- },
19566
- onClick: () => !isUploading && setShowCamera(true),
19567
- disabled: isUploading
19568
- }, /*#__PURE__*/React__default.createElement("span", null, "\uD83D\uDCF8"), " ", t("WS_CLICK_PHOTO") || "Click Photo"), isUploading && /*#__PURE__*/React__default.createElement("span", {
19569
- style: {
19570
- color: "#00497e",
19571
- fontWeight: "bold",
19572
- fontSize: "14px"
19573
- }
19574
- }, t("CS_COMMON_UPLOADING") || "Uploading..."), uploadedFile && !isUploading && /*#__PURE__*/React__default.createElement("span", {
19575
- style: {
19576
- color: "green",
19577
- fontWeight: "bold",
19578
- fontSize: "14px"
19579
- }
19580
- }, "\u2714 Uploaded")))), showCamera && /*#__PURE__*/React__default.createElement(CameraCaptureModal, {
19581
- onCapture: handleCapture,
19582
- onClose: () => setShowCamera(false),
19583
- t: t
19584
- }), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
19222
+ }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.RemoveIcon, null))))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
19585
19223
  open: showDocModal,
19586
19224
  headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
19587
19225
  headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
@@ -19638,126 +19276,6 @@ function SelectDocument(_ref2) {
19638
19276
  }
19639
19277
  }))));
19640
19278
  }
19641
- const CameraCaptureModal = _ref3 => {
19642
- let {
19643
- onCapture,
19644
- onClose,
19645
- t
19646
- } = _ref3;
19647
- const videoRef = React.useRef(null);
19648
- const canvasRef = React.useRef(null);
19649
- const [stream, setStream] = React.useState(null);
19650
- const [error, setError] = React.useState(null);
19651
- React.useEffect(() => {
19652
- const startCamera = function () {
19653
- try {
19654
- const _temp8 = _catch(function () {
19655
- return Promise.resolve(navigator.mediaDevices.getUserMedia({
19656
- video: true
19657
- })).then(function (mediaStream) {
19658
- if (videoRef.current) {
19659
- videoRef.current.srcObject = mediaStream;
19660
- }
19661
- setStream(mediaStream);
19662
- });
19663
- }, function (err) {
19664
- setError(t("WS_CAMERA_ACCESS_ERROR") || "Camera Access Error");
19665
- console.error("Error accessing camera: ", err);
19666
- });
19667
- return Promise.resolve(_temp8 && _temp8.then ? _temp8.then(function () {}) : void 0);
19668
- } catch (e) {
19669
- return Promise.reject(e);
19670
- }
19671
- };
19672
- startCamera();
19673
- return () => {
19674
- if (stream) {
19675
- stream.getTracks().forEach(track => track.stop());
19676
- }
19677
- };
19678
- }, []);
19679
- const capturePhoto = () => {
19680
- if (videoRef.current && canvasRef.current) {
19681
- const context = canvasRef.current.getContext("2d");
19682
- canvasRef.current.width = videoRef.current.videoWidth;
19683
- canvasRef.current.height = videoRef.current.videoHeight;
19684
- context.translate(canvasRef.current.width, 0);
19685
- context.scale(-1, 1);
19686
- context.drawImage(videoRef.current, 0, 0, canvasRef.current.width, canvasRef.current.height);
19687
- canvasRef.current.toBlob(blob => {
19688
- const file = new File([blob], "applicant_photo.jpg", {
19689
- type: "image/jpeg"
19690
- });
19691
- onCapture(file);
19692
- }, "image/jpeg");
19693
- }
19694
- };
19695
- return /*#__PURE__*/React__default.createElement("div", {
19696
- style: {
19697
- position: "fixed",
19698
- top: 0,
19699
- left: 0,
19700
- width: "100%",
19701
- height: "100%",
19702
- backgroundColor: "rgba(0,0,0,0.8)",
19703
- zIndex: 9999,
19704
- display: "flex",
19705
- flexDirection: "column",
19706
- alignItems: "center",
19707
- justifyContent: "center"
19708
- }
19709
- }, error ? /*#__PURE__*/React__default.createElement("div", {
19710
- style: {
19711
- color: "white",
19712
- marginBottom: "20px"
19713
- }
19714
- }, error) : /*#__PURE__*/React__default.createElement("video", {
19715
- ref: videoRef,
19716
- autoPlay: true,
19717
- playsInline: true,
19718
- style: {
19719
- maxWidth: "100%",
19720
- maxHeight: "80%",
19721
- backgroundColor: "black",
19722
- transform: "scaleX(-1)"
19723
- }
19724
- }), /*#__PURE__*/React__default.createElement("canvas", {
19725
- ref: canvasRef,
19726
- style: {
19727
- display: "none"
19728
- }
19729
- }), /*#__PURE__*/React__default.createElement("div", {
19730
- style: {
19731
- marginTop: "20px",
19732
- display: "flex",
19733
- gap: "20px"
19734
- }
19735
- }, !error && /*#__PURE__*/React__default.createElement("button", {
19736
- type: "button",
19737
- onClick: capturePhoto,
19738
- style: {
19739
- padding: "10px 20px",
19740
- background: "#00497e",
19741
- color: "white",
19742
- border: "none",
19743
- borderRadius: "4px",
19744
- cursor: "pointer",
19745
- fontWeight: "bold"
19746
- }
19747
- }, t("WS_CAPTURE_PHOTO") || "Capture"), /*#__PURE__*/React__default.createElement("button", {
19748
- type: "button",
19749
- onClick: onClose,
19750
- style: {
19751
- padding: "10px 20px",
19752
- background: "white",
19753
- color: "#00497e",
19754
- border: "1px solid #00497e",
19755
- borderRadius: "4px",
19756
- cursor: "pointer",
19757
- fontWeight: "bold"
19758
- }
19759
- }, t("CS_COMMON_CANCEL") || "Cancel")));
19760
- };
19761
19279
 
19762
19280
  const createConnectionDetails$2 = () => ({
19763
19281
  water: true,
@@ -24754,76 +24272,9 @@ const WSDeclaration = _ref => {
24754
24272
  return () => clearTimeout(timer);
24755
24273
  }
24756
24274
  }, [formValue, signatureFileStoreId, signatureFile, config === null || config === void 0 ? void 0 : config.key, onSelect]);
24757
- const onUploadSignature = function (e) {
24758
- try {
24759
- var _e$target$files;
24760
- const file = (_e$target$files = e.target.files) === null || _e$target$files === void 0 ? void 0 : _e$target$files[0];
24761
- const _temp3 = function () {
24762
- if (file) {
24763
- const _temp2 = function () {
24764
- if (file.size >= 5242880) {} else {
24765
- const _temp = _catch(function () {
24766
- return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, Digit.ULBService.getStateId())).then(function (response) {
24767
- var _response$data, _response$data$files;
24768
- 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) {
24769
- var _response$data2, _response$data2$files;
24770
- 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;
24771
- setSignatureFileStoreId(fsId);
24772
- setSignatureFile(file);
24773
- setValue("signatureFileStoreId", fsId);
24774
- setValue("signatureFile", file);
24775
- setValue("signatureFileName", file.name);
24776
- }
24777
- });
24778
- }, function (err) {
24779
- console.error("Signature upload failed", err);
24780
- });
24781
- if (_temp && _temp.then) return _temp.then(function () {});
24782
- }
24783
- }();
24784
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
24785
- }
24786
- }();
24787
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
24788
- } catch (e) {
24789
- return Promise.reject(e);
24790
- }
24791
- };
24792
24275
  const [showDocModal, setShowDocModal] = React.useState(false);
24793
24276
  const [docFileUrl, setDocFileUrl] = React.useState("");
24794
24277
  const [docFileType, setDocFileType] = React.useState("");
24795
- const viewDocument = function () {
24796
- try {
24797
- const _temp5 = function () {
24798
- if (signatureFileStoreId) {
24799
- const _temp4 = _catch(function () {
24800
- return Promise.resolve(Digit.UploadServices.FileFetchbyid(signatureFileStoreId, Digit.ULBService.getStateId())).then(function (res) {
24801
- if (res !== null && res !== void 0 && res.data) {
24802
- const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
24803
- type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
24804
- });
24805
- const fileURL = URL.createObjectURL(blob);
24806
- setDocFileUrl(fileURL);
24807
- const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
24808
- if (contentType.toLowerCase().includes("pdf")) {
24809
- setDocFileType("pdf");
24810
- } else {
24811
- setDocFileType("image");
24812
- }
24813
- setShowDocModal(true);
24814
- }
24815
- });
24816
- }, function (err) {
24817
- console.error("Failed to fetch file URL via FileFetchbyid", err);
24818
- });
24819
- if (_temp4 && _temp4.then) return _temp4.then(function () {});
24820
- }
24821
- }();
24822
- return Promise.resolve(_temp5 && _temp5.then ? _temp5.then(function () {}) : void 0);
24823
- } catch (e) {
24824
- return Promise.reject(e);
24825
- }
24826
- };
24827
24278
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CollapsibleCardPage, {
24828
24279
  title: t("WS_DECLARATION"),
24829
24280
  defaultOpen: true
@@ -24878,102 +24329,7 @@ const WSDeclaration = _ref => {
24878
24329
  select: props.onChange,
24879
24330
  t: t
24880
24331
  })
24881
- })))), /*#__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", {
24882
- className: "field",
24883
- style: {
24884
- display: "flex",
24885
- gap: "10px",
24886
- alignItems: "center"
24887
- }
24888
- }, /*#__PURE__*/React__default.createElement("div", {
24889
- style: {
24890
- flex: 1
24891
- }
24892
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
24893
- onUpload: onUploadSignature,
24894
- onDelete: () => {
24895
- setSignatureFile(null);
24896
- setSignatureFileStoreId(null);
24897
- setValue("signatureFile", null);
24898
- setValue("signatureFileStoreId", null);
24899
- },
24900
- id: "ws-declaration-signature",
24901
- message: signatureFileStoreId ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`CS_ACTION_NO_FILEUPLOADED`),
24902
- textStyles: {
24903
- width: "100%"
24904
- },
24905
- buttonType: "button",
24906
- accept: "image/*, .pdf, .png, .jpeg, .jpg",
24907
- uploadedFiles: signatureFileStoreId && !signatureFile ? [[(formValue === null || formValue === void 0 ? void 0 : formValue.signatureFileName) || "Document", {
24908
- fileStoreId: signatureFileStoreId
24909
- }]] : undefined,
24910
- removeTargetedFile: () => {
24911
- setSignatureFile(null);
24912
- setSignatureFileStoreId(null);
24913
- setValue("signatureFile", null);
24914
- setValue("signatureFileStoreId", null);
24915
- setValue("signatureFileName", "");
24916
- }
24917
- })), signatureFileStoreId && /*#__PURE__*/React__default.createElement("div", {
24918
- onClick: viewDocument,
24919
- style: {
24920
- cursor: "pointer"
24921
- }
24922
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.ViewsIcon, null))))))), showDocModal && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Modal, {
24923
- open: showDocModal,
24924
- headerBarMain: t("WS_VIEW_DOCUMENT") || "View Document",
24925
- headerBarEnd: /*#__PURE__*/React__default.createElement("div", {
24926
- className: "icon-bg-secondary",
24927
- onClick: () => setShowDocModal(false),
24928
- style: {
24929
- cursor: "pointer",
24930
- padding: "5px"
24931
- }
24932
- }, /*#__PURE__*/React__default.createElement("svg", {
24933
- xmlns: "http://www.w3.org/2000/svg",
24934
- viewBox: "0 0 24 24",
24935
- fill: "#FFFFFF",
24936
- width: "24",
24937
- height: "24"
24938
- }, /*#__PURE__*/React__default.createElement("path", {
24939
- d: "M0 0h24v24H0V0z",
24940
- fill: "none"
24941
- }), /*#__PURE__*/React__default.createElement("path", {
24942
- 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"
24943
- }))),
24944
- center: true,
24945
- actionCancelOnSubmit: () => setShowDocModal(false),
24946
- actionCancelLabel: t("CS_COMMON_CLOSE") || "Close",
24947
- popupStyles: {
24948
- width: "80%",
24949
- maxWidth: "800px"
24950
- }
24951
- }, /*#__PURE__*/React__default.createElement("div", {
24952
- style: {
24953
- display: "flex",
24954
- justifyContent: "center",
24955
- alignItems: "center",
24956
- padding: "20px",
24957
- minHeight: "300px"
24958
- }
24959
- }, docFileType === "pdf" ? /*#__PURE__*/React__default.createElement("iframe", {
24960
- src: docFileUrl,
24961
- title: "Document Preview",
24962
- width: "100%",
24963
- height: "500px",
24964
- style: {
24965
- border: "none"
24966
- }
24967
- }) : /*#__PURE__*/React__default.createElement("img", {
24968
- src: docFileUrl,
24969
- alt: "Document Preview",
24970
- style: {
24971
- maxWidth: "100%",
24972
- maxHeight: "500px",
24973
- objectFit: "contain",
24974
- borderRadius: "4px"
24975
- }
24976
- }))));
24332
+ })))))));
24977
24333
  };
24978
24334
 
24979
24335
  const WSDjbEmployee = _ref => {
@@ -25025,27 +24381,52 @@ const WSDjbEmployee = _ref => {
25025
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;
25026
24382
  });
25027
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
+ };
25028
24409
  React.useEffect(() => {
25029
24410
  (function () {
25030
24411
  try {
25031
24412
  setErrorUpload(null);
25032
- const _temp3 = function () {
24413
+ const _temp4 = function () {
25033
24414
  if (file) {
25034
- const _temp2 = function () {
24415
+ const _temp3 = function () {
25035
24416
  if (file.size >= 5242880) {
25036
24417
  setErrorUpload({
25037
24418
  key: "error",
25038
24419
  message: "CS_MAXIMUM_UPLOAD_SIZE_EXCEEDED"
25039
24420
  });
25040
24421
  } else {
25041
- const _temp = _catch(function () {
24422
+ const _temp2 = _catch(function () {
25042
24423
  setUploadedFile(null);
25043
24424
  return Promise.resolve(Digit.UploadServices.Filestorage("WS", file, tenantId === null || tenantId === void 0 ? void 0 : tenantId.split(".")[0])).then(function (response) {
25044
- var _response$data, _response$data$files;
25045
- 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) {
25046
- var _response$data2, _response$data2$files, _response$data3, _response$data3$files;
25047
- 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);
25048
- 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);
25049
24430
  } else {
25050
24431
  setErrorUpload({
25051
24432
  key: "error",
@@ -25059,13 +24440,13 @@ const WSDjbEmployee = _ref => {
25059
24440
  message: "CS_FILE_UPLOAD_ERROR"
25060
24441
  });
25061
24442
  });
25062
- if (_temp && _temp.then) return _temp.then(function () {});
24443
+ if (_temp2 && _temp2.then) return _temp2.then(function () {});
25063
24444
  }
25064
24445
  }();
25065
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
24446
+ if (_temp3 && _temp3.then) return _temp3.then(function () {});
25066
24447
  }
25067
24448
  }();
25068
- return _temp3 && _temp3.then ? _temp3.then(function () {}) : void 0;
24449
+ return _temp4 && _temp4.then ? _temp4.then(function () {}) : void 0;
25069
24450
  } catch (e) {
25070
24451
  Promise.reject(e);
25071
24452
  }
@@ -25118,7 +24499,7 @@ const WSDjbEmployee = _ref => {
25118
24499
  })
25119
24500
  })), isDjbEmployee && /*#__PURE__*/React__default.createElement("div", {
25120
24501
  className: "formcomposer-section-grid"
25121
- }, /*#__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, {
25122
24503
  control: control,
25123
24504
  name: "employeeId",
25124
24505
  rules: {
@@ -25127,9 +24508,10 @@ const WSDjbEmployee = _ref => {
25127
24508
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
25128
24509
  value: props.value,
25129
24510
  onChange: e => props.onChange(e.target.value),
25130
- onBlur: props.onBlur
24511
+ onBlur: props.onBlur,
24512
+ placeholder: t("WS_EMPLOYEE_ID")
25131
24513
  })
25132
- }))), /*#__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", {
25133
24515
  className: "field"
25134
24516
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
25135
24517
  control: control,
@@ -25141,7 +24523,7 @@ const WSDjbEmployee = _ref => {
25141
24523
  date: props.value,
25142
24524
  onChange: date => props.onChange(date)
25143
24525
  })
25144
- })))), /*#__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", {
25145
24527
  className: "field"
25146
24528
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
25147
24529
  control: control,
@@ -25152,9 +24534,10 @@ const WSDjbEmployee = _ref => {
25152
24534
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
25153
24535
  value: props.value,
25154
24536
  onChange: e => props.onChange(e.target.value),
25155
- onBlur: props.onBlur
24537
+ onBlur: props.onBlur,
24538
+ placeholder: t("WS_EMPLOYEE_DESIGNATION")
25156
24539
  })
25157
- })))), /*#__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", {
25158
24541
  className: "field"
25159
24542
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
25160
24543
  control: control,
@@ -25165,6 +24548,7 @@ const WSDjbEmployee = _ref => {
25165
24548
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.UploadFile, {
25166
24549
  id: "employee-doc",
25167
24550
  extraStyleName: "propertyCreate",
24551
+ placeholder: t("WS_UPLOAD_EMPLOYEE_ID_DOC"),
25168
24552
  accept: "image/*, .pdf, .png, .jpeg, .jpg",
25169
24553
  onUpload: e => {
25170
24554
  selectfile(e);
@@ -25175,9 +24559,62 @@ const WSDjbEmployee = _ref => {
25175
24559
  props.onChange("");
25176
24560
  },
25177
24561
  message: uploadedFile ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
25178
- 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
25179
24566
  })
25180
- }))))));
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)))))))));
25181
24618
  if (userType === "citizen") {
25182
24619
  return /*#__PURE__*/React__default.createElement("div", null, /*#__PURE__*/React__default.createElement(Timeline, {
25183
24620
  currentStep: 2
@@ -25261,7 +24698,7 @@ const DECIMAL_PATTERN$1 = /^\d+(\.\d{1,2})?$/;
25261
24698
  const normalizeCode = value => String(value || "").replace(/[._\s-]/g, "").toUpperCase();
25262
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;
25263
24700
  const PropertyWaterConnection = _ref => {
25264
- 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;
25265
24702
  let {
25266
24703
  t,
25267
24704
  config,
@@ -25314,7 +24751,7 @@ const PropertyWaterConnection = _ref => {
25314
24751
  categories.forEach(data => data.i18nKey = data.i18nKey || `WS_CATEGORY_${data.code}`);
25315
24752
  setCategoryTypeList(categories);
25316
24753
  }, [wsServicesMastersData]);
25317
- 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");
25318
24755
  React.useEffect(() => {
25319
24756
  if (props.register) {
25320
24757
  props.register({
@@ -25514,7 +24951,9 @@ const PropertyWaterConnection = _ref => {
25514
24951
  style: props.style
25515
24952
  }, /*#__PURE__*/React__default.createElement("div", {
25516
24953
  className: "formcomposer-section-grid"
25517
- }, /*#__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", {
25518
24957
  className: "form-field"
25519
24958
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
25520
24959
  control: control,
@@ -25529,11 +24968,14 @@ const PropertyWaterConnection = _ref => {
25529
24968
  select: props.onChange,
25530
24969
  t: t,
25531
24970
  onBlur: props.onBlur,
25532
- disable: isPropertyFound
24971
+ disable: isPropertyFound,
24972
+ placeholder: t("WS_CATEGORY_TYPE")
25533
24973
  })
25534
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, {
25535
24975
  style: errorStyle
25536
- }, 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", {
25537
24979
  className: "form-field"
25538
24980
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
25539
24981
  control: control,
@@ -25548,11 +24990,14 @@ const PropertyWaterConnection = _ref => {
25548
24990
  select: props.onChange,
25549
24991
  t: t,
25550
24992
  onBlur: props.onBlur,
25551
- disable: isPropertyFound
24993
+ disable: isPropertyFound,
24994
+ placeholder: t("WS_PROPERTY_CATEGORY")
25552
24995
  })
25553
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, {
25554
24997
  style: errorStyle
25555
- }, 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", {
25556
25001
  className: "form-field"
25557
25002
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
25558
25003
  control: control,
@@ -25567,11 +25012,14 @@ const PropertyWaterConnection = _ref => {
25567
25012
  select: props.onChange,
25568
25013
  t: t,
25569
25014
  onBlur: props.onBlur,
25570
- disable: isPropertyFound
25015
+ disable: isPropertyFound,
25016
+ placeholder: t("WS_PROPERTY_TYPE")
25571
25017
  })
25572
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, {
25573
25019
  style: errorStyle
25574
- }, 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", {
25575
25023
  className: "form-field"
25576
25024
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
25577
25025
  control: control,
@@ -25586,15 +25034,21 @@ const PropertyWaterConnection = _ref => {
25586
25034
  select: props.onChange,
25587
25035
  t: t,
25588
25036
  onBlur: props.onBlur,
25589
- disable: isPropertyFound
25037
+ disable: isPropertyFound,
25038
+ placeholder: t("WS_WATER_CONNECTION_USAGE_TYPE")
25590
25039
  })
25591
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, {
25592
25041
  style: errorStyle
25593
- }, 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", {
25594
25045
  className: "form-field"
25595
25046
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
25596
25047
  control: control,
25597
25048
  name: "useDetails.noOfFloors",
25049
+ rules: {
25050
+ required: t("REQUIRED_FIELD")
25051
+ },
25598
25052
  render: props => /*#__PURE__*/React__default.createElement(digitUiReactComponents.Dropdown, {
25599
25053
  option: floorOptions,
25600
25054
  optionKey: "name",
@@ -25602,11 +25056,14 @@ const PropertyWaterConnection = _ref => {
25602
25056
  select: props.onChange,
25603
25057
  t: t,
25604
25058
  onBlur: props.onBlur,
25605
- disable: isPropertyFound
25059
+ disable: isPropertyFound,
25060
+ placeholder: t("WS_NUMBER_OF_FLOORS")
25606
25061
  })
25607
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, {
25608
25063
  style: errorStyle
25609
- }, 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", {
25610
25067
  className: "form-field"
25611
25068
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
25612
25069
  t: t,
@@ -25616,11 +25073,17 @@ const PropertyWaterConnection = _ref => {
25616
25073
  message: t("ERR_INVALID_DECIMAL")
25617
25074
  }
25618
25075
  }),
25076
+ rules: {
25077
+ required: t("REQUIRED_FIELD")
25078
+ },
25619
25079
  name: "useDetails.plotArea",
25620
- disabled: isPropertyFound
25080
+ disabled: isPropertyFound,
25081
+ placeholder: t("WS_PLOT_AREA")
25621
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, {
25622
25083
  style: errorStyle
25623
- }, 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", {
25624
25087
  className: "form-field"
25625
25088
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
25626
25089
  t: t,
@@ -25631,37 +25094,16 @@ const PropertyWaterConnection = _ref => {
25631
25094
  }
25632
25095
  }),
25633
25096
  name: "useDetails.builtUpArea",
25634
- disabled: isPropertyFound
25097
+ rules: {
25098
+ required: t("REQUIRED_FIELD")
25099
+ },
25100
+ disabled: isPropertyFound,
25101
+ placeholder: t("WS_BUILT_UP_AREA")
25635
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, {
25636
25103
  style: errorStyle
25637
- }, 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", {
25638
- className: "form-field"
25639
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.TextInput, {
25640
- t: t,
25641
- inputRef: register({
25642
- pattern: {
25643
- value: DECIMAL_PATTERN$1,
25644
- message: t("ERR_INVALID_DECIMAL")
25645
- },
25646
- validate: value => {
25647
- var _formValue$useDetails, _formValue$useDetails2;
25648
- 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)) {
25649
- return t("WS_FAR_AREA_IS_SMALLER_THAN_BUILT_UP_AREA");
25650
- }
25651
- }
25652
- }),
25653
- name: "useDetails.farArea",
25654
- disabled: isPropertyFound
25655
- }))), (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, {
25656
- style: errorStyle
25657
- }, 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, {
25658
- style: {
25659
- width: "70%",
25660
- marginLeft: "30%",
25661
- fontSize: "12px",
25662
- marginTop: "5px"
25663
- }
25664
- }, 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", {
25665
25107
  className: "form-field"
25666
25108
  }, /*#__PURE__*/React__default.createElement(reactHookForm.Controller, {
25667
25109
  control: control,
@@ -25676,9 +25118,10 @@ const PropertyWaterConnection = _ref => {
25676
25118
  select: props.onChange,
25677
25119
  t: t,
25678
25120
  onBlur: props.onBlur,
25679
- disable: isPropertyFound
25121
+ disable: isPropertyFound,
25122
+ placeholder: t("WS_SELECT_YEAR_OF_CONSTRUCTION")
25680
25123
  })
25681
- }))), (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, {
25682
25125
  style: errorStyle
25683
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", {
25684
25127
  className: "form-field"
@@ -25691,8 +25134,9 @@ const PropertyWaterConnection = _ref => {
25691
25134
  }
25692
25135
  }),
25693
25136
  name: "useDetails.NumberofDwellingUnits",
25694
- disabled: isPropertyFound
25695
- }))) : 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, {
25696
25140
  style: errorStyle
25697
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", {
25698
25142
  className: "form-field"
@@ -25706,8 +25150,9 @@ const PropertyWaterConnection = _ref => {
25706
25150
  required: isHotelRestaurantProperty ? t("REQUIRED_FIELD") : false
25707
25151
  }),
25708
25152
  name: "useDetails.NumberofRooms",
25709
- disabled: isPropertyFound
25710
- }))) : 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, {
25711
25156
  style: errorStyle
25712
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", {
25713
25158
  className: "form-field"
@@ -25721,8 +25166,9 @@ const PropertyWaterConnection = _ref => {
25721
25166
  required: isHospitalProperty ? t("REQUIRED_FIELD") : false
25722
25167
  }),
25723
25168
  name: "useDetails.numberOfBeds",
25724
- disabled: isPropertyFound
25725
- }))) : 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, {
25726
25172
  style: errorStyle
25727
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", {
25728
25174
  className: "form-field"
@@ -25735,8 +25181,9 @@ const PropertyWaterConnection = _ref => {
25735
25181
  }
25736
25182
  }),
25737
25183
  name: "useDetails.numberOfStudents",
25738
- disabled: isPropertyFound
25739
- }))) : 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, {
25740
25187
  style: errorStyle
25741
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", {
25742
25189
  className: "form-field"
@@ -25749,8 +25196,9 @@ const PropertyWaterConnection = _ref => {
25749
25196
  }
25750
25197
  }),
25751
25198
  name: "useDetails.servantQuarterArea",
25752
- disabled: isPropertyFound
25753
- }))) : 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, {
25754
25202
  style: errorStyle
25755
25203
  }, errors.useDetails.servantQuarterArea.message)));
25756
25204
  };
@@ -30131,7 +29579,7 @@ const WSCreate = () => {
30131
29579
  let {
30132
29580
  data: newConfig$1
30133
29581
  } = Digit.Hooks.ws.useWSConfigMDMS.getFormConfig(stateId, []);
30134
- 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");
30135
29583
  const goNext = skipStep => {
30136
29584
  var _params$cptId, _params$cpt, _params$cpt$details, _params$cpt2, _params$cpt2$details;
30137
29585
  const currentPath = pathname.split("/").pop();
@@ -33320,15 +32768,7 @@ const ViewBreakup = _ref => {
33320
32768
  label: t("WS_BUILT_UP_AREA"),
33321
32769
  value: propertyDetail.superBuiltUpArea,
33322
32770
  unit: " (sq. meter.)"
33323
- }, isValidValue(propertyDetail.farArea) ? {
33324
- label: t("WS_FAR_AREA"),
33325
- value: propertyDetail.farArea,
33326
- isText: true
33327
- } : null, isValidValue(propertyDetail.coveredArea) ? {
33328
- label: t("WS_COVERED_AREA"),
33329
- value: propertyDetail.coveredArea,
33330
- isText: true
33331
- } : null, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
32771
+ }, isValidValue(propertyDetail.numberOfDwellingUnits) ? {
33332
32772
  label: t("WS_NUMBER_OF_DWELLING_UNITS"),
33333
32773
  value: propertyDetail.numberOfDwellingUnits,
33334
32774
  isText: true
@@ -33565,7 +33005,7 @@ const checkForNA$1 = value => {
33565
33005
  return value ? value : "CS_NA";
33566
33006
  };
33567
33007
  const WSApplicationDetails = () => {
33568
- 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;
33569
33009
  const getDisconnectionNoticeSearch = function () {
33570
33010
  try {
33571
33011
  var _data$WaterConnection186, _data$WaterConnection187, _data$SewerageConnect180, _data$SewerageConnect181;
@@ -33956,22 +33396,13 @@ const WSApplicationDetails = () => {
33956
33396
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33957
33397
  label: t("WS_SERVICE_TYPE"),
33958
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"))}`
33959
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33960
- label: t("WS_CONNECTION_TYPE"),
33961
- 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)))}`
33962
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33963
- label: t("WS_WATER_DEMAND_TYPE"),
33964
- 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)))}`
33965
33399
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33966
33400
  label: t("WS_APPLICANT_TYPE"),
33967
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)))}`
33968
33402
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33969
33403
  label: t("WS_DIVYANGJAN"),
33970
33404
  text: `${connectionDetails !== null && connectionDetails !== void 0 && connectionDetails.isDivyangjan ? t("CORE_COMMON_YES") : t("CORE_COMMON_NO")}`
33971
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
33972
- label: t("WS_SERVICE_TYPE"),
33973
- 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)))}`
33974
- }), (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, {
33975
33406
  label: t("WS_DEPARTMENT_TYPE"),
33976
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)))}`
33977
33408
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
@@ -36415,7 +35846,7 @@ const getPath$3 = (path, params) => {
36415
35846
  };
36416
35847
  const getEditDetails = (waterResult, sewerageresult, t) => {
36417
35848
  if (waterResult) {
36418
- 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;
36419
35850
  waterResult.ConnectionHolderDetails = waterResult !== null && waterResult !== void 0 && waterResult.connectionHolders ? [{
36420
35851
  ...(waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$connecti = waterResult.connectionHolders) === null || _waterResult$connecti === void 0 ? void 0 : _waterResult$connecti[0]),
36421
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,
@@ -36540,10 +35971,11 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
36540
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",
36541
35972
  employeeId: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition20 = waterResult.additionalDetails) === null || _waterResult$addition20 === void 0 ? void 0 : _waterResult$addition20.employeeId) || "",
36542
35973
  designation: (waterResult === null || waterResult === void 0 ? void 0 : (_waterResult$addition21 = waterResult.additionalDetails) === null || _waterResult$addition21 === void 0 ? void 0 : _waterResult$addition21.designation) || "",
36543
- 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) || ""
36544
35976
  };
36545
35977
  } else if (sewerageresult) {
36546
- 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;
36547
35979
  sewerageresult.ConnectionHolderDetails = sewerageresult !== null && sewerageresult !== void 0 && sewerageresult.connectionHolders ? [{
36548
35980
  ...(sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$conne = sewerageresult.connectionHolders) === null || _sewerageresult$conne === void 0 ? void 0 : _sewerageresult$conne[0]),
36549
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,
@@ -36663,7 +36095,8 @@ const getEditDetails = (waterResult, sewerageresult, t) => {
36663
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",
36664
36096
  employeeId: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit20 = sewerageresult.additionalDetails) === null || _sewerageresult$addit20 === void 0 ? void 0 : _sewerageresult$addit20.employeeId) || "",
36665
36097
  designation: (sewerageresult === null || sewerageresult === void 0 ? void 0 : (_sewerageresult$addit21 = sewerageresult.additionalDetails) === null || _sewerageresult$addit21 === void 0 ? void 0 : _sewerageresult$addit21.designation) || "",
36666
- 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) || ""
36667
36100
  };
36668
36101
  }
36669
36102
  if (waterResult) return {
@@ -36680,14 +36113,17 @@ const EditApplication = _ref => {
36680
36113
  t
36681
36114
  } = reactI18next.useTranslation();
36682
36115
  let {
36683
- tenantId
36116
+ tenantId: tenantIdFromUrl
36684
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();
36685
36121
  const {
36686
36122
  pathname,
36687
36123
  state
36688
36124
  } = reactRouterDom.useLocation();
36689
36125
  const history = reactRouterDom.useHistory();
36690
- 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");
36691
36127
  let config = [];
36692
36128
  let waterapplication = {};
36693
36129
  let sewerageapplication = {};
@@ -36732,12 +36168,12 @@ const EditApplication = _ref => {
36732
36168
  }, {
36733
36169
  enabled: applicationNumber && applicationNumber.includes("SW") ? true : false
36734
36170
  });
36735
- 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");
36736
36172
  React.useEffect(() => {
36737
36173
  var _waterapplication, _sewerageapplication;
36738
36174
  waterapplication = Waterresult;
36739
36175
  sewerageapplication = Sewarageresult;
36740
- 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)))) {
36741
36177
  waterapplication = Waterresult;
36742
36178
  sewerageapplication = Sewarageresult;
36743
36179
  if (window.location.href.includes("edit-application")) {
@@ -36830,7 +36266,7 @@ const EditApplication = _ref => {
36830
36266
  }]
36831
36267
  };
36832
36268
  });
36833
- 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)) {
36834
36270
  return /*#__PURE__*/React__default.createElement(digitUiReactComponents.Loader, null);
36835
36271
  }
36836
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");
@@ -36964,7 +36400,7 @@ const CheckPage = _ref => {
36964
36400
  cpt
36965
36401
  } = value;
36966
36402
  let routeLink = `/digit-ui/citizen/ws/create-application`;
36967
- 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}`;
36968
36404
  function routeTo(jumpTo) {
36969
36405
  location.href = jumpTo;
36970
36406
  }
@@ -37795,7 +37231,7 @@ const WSAcknowledgement = _ref => {
37795
37231
  const tenantId = Digit.ULBService.getCurrentTenantId();
37796
37232
  const WSmutation = Digit.Hooks.ws.useWSUpdateAPI("WATER");
37797
37233
  const SWmutation = Digit.Hooks.ws.useWSUpdateAPI("SEWERAGE");
37798
- 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");
37799
37235
  const {
37800
37236
  data: storeData
37801
37237
  } = Digit.Hooks.useStore.getInitData();
@@ -37906,7 +37342,7 @@ const WSAcknowledgement = _ref => {
37906
37342
  onClick: handleDownloadPdfSewerage
37907
37343
  }), /*#__PURE__*/React__default.createElement(reactRouterDom.Link, {
37908
37344
  to: {
37909
- pathname: `/digit-ui/citizen`
37345
+ pathname: `/digit-ui/${window.location.pathname.includes("employee") ? "employee" : "citizen"}`
37910
37346
  }
37911
37347
  }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
37912
37348
  label: t("CORE_COMMON_GO_TO_HOME")
@@ -37922,7 +37358,7 @@ const CheckPage$1 = () => {
37922
37358
  const value = Digit.SessionStorage.get("WS_DISCONNECTION");
37923
37359
  const [documents, setDocuments] = React.useState(value.WSDisconnectionForm.documents || []);
37924
37360
  let routeLink = `/digit-ui/citizen/ws/disconnect-application`;
37925
- 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`;
37926
37362
  function routeTo(jumpTo) {
37927
37363
  location.href = jumpTo;
37928
37364
  }
@@ -39137,7 +38573,7 @@ const WSInfoPage = () => {
39137
38573
  setOtp("");
39138
38574
  setIsMobileVerified(false);
39139
38575
  },
39140
- placeholder: t("WS_ENTER_MOBILE_NUMBER") || "Enter mobile number",
38576
+ placeholder: t("CORE_COMMON_PHONE_NUMBER_PLACEHOLDER") || "Enter mobile number",
39141
38577
  maxLength: 10,
39142
38578
  disabled: isMobileVerified
39143
38579
  })), (searchMobileNumber === null || searchMobileNumber === void 0 ? void 0 : searchMobileNumber.length) === 10 && !isMobileVerified && !showOtpVerification && /*#__PURE__*/React__default.createElement("button", {
@@ -39339,7 +38775,7 @@ const WSInfoPage = () => {
39339
38775
  marginBottom: "24px",
39340
38776
  lineHeight: "2"
39341
38777
  }
39342
- }, /*#__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, {
39343
38779
  style: {
39344
38780
  marginTop: "0",
39345
38781
  marginBottom: "0"
@@ -39351,7 +38787,7 @@ const WSInfoPage = () => {
39351
38787
  marginBottom: "24px",
39352
38788
  lineHeight: "2"
39353
38789
  }
39354
- }, /*#__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, {
39355
38791
  style: {
39356
38792
  marginTop: "0",
39357
38793
  marginBottom: "0"
@@ -39363,7 +38799,7 @@ const WSInfoPage = () => {
39363
38799
  marginBottom: "24px",
39364
38800
  lineHeight: "2"
39365
38801
  }
39366
- }, /*#__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, {
39367
38803
  style: {
39368
38804
  marginTop: "0",
39369
38805
  marginBottom: "0"
@@ -39407,7 +38843,7 @@ const WSInfoPage = () => {
39407
38843
  marginBottom: "24px",
39408
38844
  lineHeight: "2"
39409
38845
  }
39410
- }, /*#__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, {
39411
38847
  label: t("CS_COMMON_NEXT"),
39412
38848
  onSubmit: () => {},
39413
38849
  disabled: true
@@ -40485,7 +39921,7 @@ const ViewIcon = () => /*#__PURE__*/React__default.createElement("svg", {
40485
39921
  cy: "12",
40486
39922
  r: "3"
40487
39923
  }));
40488
- const CameraCaptureModal$1 = _ref => {
39924
+ const CameraCaptureModal = _ref => {
40489
39925
  let {
40490
39926
  onCapture,
40491
39927
  onClose,
@@ -41121,7 +40557,7 @@ const FileUploadField = _ref6 => {
41121
40557
  })))));
41122
40558
  };
41123
40559
  const NewApplication = () => {
41124
- 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;
41125
40561
  const {
41126
40562
  t
41127
40563
  } = reactI18next.useTranslation();
@@ -42985,45 +42421,15 @@ const NewApplication = () => {
42985
42421
  background: "#F3F4F6",
42986
42422
  padding: "4px 12px",
42987
42423
  borderRadius: "20px",
42988
- width: "fit-content",
42989
- border: "1px solid #E5E7EB"
42424
+ width: "fit-content"
42990
42425
  }
42991
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardText, {
42426
+ }, /*#__PURE__*/React__default.createElement("span", {
42992
42427
  style: {
42993
- margin: 0,
42994
42428
  fontSize: "14px",
42995
- color: "#374151",
42996
- fontWeight: "500"
42429
+ fontWeight: "500",
42430
+ color: "#0B0C0C"
42997
42431
  }
42998
- }, watch("documents.applicantPhoto").fileName), /*#__PURE__*/React__default.createElement("div", {
42999
- onClick: () => clearUploadedFile("documents.applicantPhoto", val => setValue("documents.applicantPhoto", val)),
43000
- style: {
43001
- cursor: "pointer",
43002
- display: "flex",
43003
- alignItems: "center",
43004
- color: "#6B7280"
43005
- },
43006
- title: "Remove Photo"
43007
- }, /*#__PURE__*/React__default.createElement("svg", {
43008
- width: "16",
43009
- height: "16",
43010
- viewBox: "0 0 24 24",
43011
- fill: "none",
43012
- stroke: "currentColor",
43013
- strokeWidth: "3",
43014
- strokeLinecap: "round",
43015
- strokeLinejoin: "round"
43016
- }, /*#__PURE__*/React__default.createElement("line", {
43017
- x1: "18",
43018
- y1: "6",
43019
- x2: "6",
43020
- y2: "18"
43021
- }), /*#__PURE__*/React__default.createElement("line", {
43022
- x1: "6",
43023
- y1: "6",
43024
- x2: "18",
43025
- y2: "18"
43026
- }))))), /*#__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, {
43027
42433
  error: getFieldError("documents.proofOfIdentity"),
43028
42434
  label: "Proof of Identity *",
43029
42435
  required: true
@@ -43069,10 +42475,10 @@ const NewApplication = () => {
43069
42475
  type: "button",
43070
42476
  className: "document-action-btn",
43071
42477
  onClick: () => {
43072
- var _watch4;
43073
- 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);
43074
42480
  },
43075
- disabled: !((_watch5 = watch("documents.identityProofFile")) !== null && _watch5 !== void 0 && _watch5.fileStoreId)
42481
+ disabled: !((_watch6 = watch("documents.identityProofFile")) !== null && _watch6 !== void 0 && _watch6.fileStoreId)
43076
42482
  }, /*#__PURE__*/React__default.createElement(ViewIcon, null), " View")), /*#__PURE__*/React__default.createElement(FieldBlock, {
43077
42483
  error: getFieldError("documents.ownershipStatus"),
43078
42484
  label: "Proof of Ownership *",
@@ -43119,10 +42525,10 @@ const NewApplication = () => {
43119
42525
  type: "button",
43120
42526
  className: "document-action-btn",
43121
42527
  onClick: () => {
43122
- var _watch6;
43123
- 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);
43124
42530
  },
43125
- disabled: !((_watch7 = watch("documents.ownershipDocumentFile")) !== null && _watch7 !== void 0 && _watch7.fileStoreId)
42531
+ disabled: !((_watch8 = watch("documents.ownershipDocumentFile")) !== null && _watch8 !== void 0 && _watch8.fileStoreId)
43126
42532
  }, /*#__PURE__*/React__default.createElement(ViewIcon, null), " View")), /*#__PURE__*/React__default.createElement(FieldBlock, {
43127
42533
  error: getFieldError("documents.otherDocument"),
43128
42534
  label: "Other"
@@ -43165,10 +42571,10 @@ const NewApplication = () => {
43165
42571
  type: "button",
43166
42572
  className: "document-action-btn",
43167
42573
  onClick: () => {
43168
- var _watch8;
43169
- 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);
43170
42576
  },
43171
- disabled: !((_watch9 = watch("documents.otherDocumentFile")) !== null && _watch9 !== void 0 && _watch9.fileStoreId)
42577
+ disabled: !((_watch0 = watch("documents.otherDocumentFile")) !== null && _watch0 !== void 0 && _watch0.fileStoreId)
43172
42578
  }, /*#__PURE__*/React__default.createElement(ViewIcon, null), " View"))), /*#__PURE__*/React__default.createElement(SectionCard, {
43173
42579
  description: "Declaration and undertaking to be signed by the applicant.",
43174
42580
  isOpen: collapsedSections.declaration,
@@ -43531,7 +42937,7 @@ const NewApplication = () => {
43531
42937
  label: showToast === null || showToast === void 0 ? void 0 : showToast.message,
43532
42938
  onClose: closeToast,
43533
42939
  warning: showToast === null || showToast === void 0 ? void 0 : showToast.warning
43534
- }) : null, showCamera && /*#__PURE__*/React__default.createElement(CameraCaptureModal$1, {
42940
+ }) : null, showCamera && /*#__PURE__*/React__default.createElement(CameraCaptureModal, {
43535
42941
  onCapture: handleCapture,
43536
42942
  onClose: () => setShowCamera(false),
43537
42943
  t: t
@@ -47888,7 +47294,7 @@ function PropertyDocuments(_ref) {
47888
47294
  });
47889
47295
  });
47890
47296
  const allChecked = requiredDocsCount === 0 || checkedCount === requiredDocsCount;
47891
- 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";
47892
47298
  const finalVerified = isDocVerifState ? allChecked : true;
47893
47299
  window.isDocumentsVerified = finalVerified;
47894
47300
  window.dispatchEvent(new CustomEvent("DOCUMENTS_VERIFIED", {
@@ -47918,7 +47324,7 @@ function PropertyDocuments(_ref) {
47918
47324
  const checkLocation = window.location.href.includes("employee/tl") || window.location.href.includes("/obps") || window.location.href.includes("employee/ws");
47919
47325
  const isWSLocation = window.location.href.includes("/ws/") || window.location.href.includes("employee/ws") || window.location.href.includes("citizen/ws");
47920
47326
  const isStakeholderApplication = window.location.href.includes("stakeholder");
47921
- 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);
47922
47328
  const getDocSubType = documentType => {
47923
47329
  if (!documentType) return "";
47924
47330
  const parts = documentType.split(".");
@@ -49344,7 +48750,7 @@ const DueVerification = _ref => {
49344
48750
  });
49345
48751
  }, [applicationData]);
49346
48752
  const isPendingApproval = ["PENDING_FOR_FIELD_INSPECTION", "PENDING_FOR_ZRO_APPROVAL"].includes(applicationData === null || applicationData === void 0 ? void 0 : applicationData.applicationStatus);
49347
- 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);
49348
48754
  const columns = React.useMemo(() => {
49349
48755
  const baseColumns = [{
49350
48756
  Header: t("K No."),
@@ -50239,7 +49645,7 @@ function ApplicationDetailsContent(_ref) {
50239
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, {
50240
49646
  documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet19 = detail.additionalDetails) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.documents,
50241
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)
50242
- }), (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, {
50243
49649
  applicationData: applicationData
50244
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, {
50245
49651
  taxHeadEstimatesCalculation: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet22 = detail.additionalDetails) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.taxHeadEstimatesCalculation
@@ -51972,7 +51378,7 @@ const ActivateConnection = () => {
51972
51378
  setShowToast(false);
51973
51379
  }, 3000);
51974
51380
  } else {
51975
- 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;
51976
51382
  function _temp4() {
51977
51383
  var _formDetails$activati, _formDetails$activati2, _formDetails$activati3, _formDetails$activati4;
51978
51384
  function _temp2() {
@@ -52042,11 +51448,15 @@ const ActivateConnection = () => {
52042
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;
52043
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;
52044
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;
52045
- 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;
52046
- 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 = [{}];
52047
- 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;
52048
- 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;
52049
- 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;
52050
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;
52051
51461
  const _temp3 = function (_formDetails$activati11, _formDetails$activati12, _formDetails$activati13, _formDetails$activati14) {
52052
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) {
@@ -58970,7 +58380,7 @@ const openFilePDF = fileId => {
58970
58380
  }).catch(error => console.error("Error fetching file:", error));
58971
58381
  };
58972
58382
  const CheckPage$4 = _ref2 => {
58973
- 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;
58974
58384
  let {
58975
58385
  data,
58976
58386
  onSubmit,
@@ -58984,52 +58394,6 @@ const CheckPage$4 = _ref2 => {
58984
58394
  const [docFileType, setDocFileType] = React.useState("");
58985
58395
  const [formState, setFormState] = React.useState(JSON.parse(sessionStorage.getItem("FORMSTATE_ERRORS")) || {});
58986
58396
  const isCitizen = ((_Digit$UserService$ge = Digit.UserService.getType()) === null || _Digit$UserService$ge === void 0 ? void 0 : _Digit$UserService$ge.toUpperCase()) === "CITIZEN";
58987
- const handleViewDocument = function (fileStoreId) {
58988
- try {
58989
- const _temp3 = function () {
58990
- if (fileStoreId) {
58991
- const _temp2 = function () {
58992
- if (typeof fileStoreId === "object" && fileStoreId.type) {
58993
- const fileURL = URL.createObjectURL(fileStoreId);
58994
- setDocFileUrl(fileURL);
58995
- if (fileStoreId.type.includes("pdf")) {
58996
- setDocFileType("pdf");
58997
- } else {
58998
- setDocFileType("image");
58999
- }
59000
- setShowDocModal(true);
59001
- } else {
59002
- const _temp = _catch(function () {
59003
- return Promise.resolve(Digit.UploadServices.FileFetchbyid(fileStoreId, Digit.ULBService.getStateId())).then(function (res) {
59004
- if (res !== null && res !== void 0 && res.data) {
59005
- const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
59006
- type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
59007
- });
59008
- const fileURL = URL.createObjectURL(blob);
59009
- setDocFileUrl(fileURL);
59010
- const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
59011
- if (contentType.toLowerCase().includes("pdf")) {
59012
- setDocFileType("pdf");
59013
- } else {
59014
- setDocFileType("image");
59015
- }
59016
- setShowDocModal(true);
59017
- }
59018
- });
59019
- }, function (err) {
59020
- console.error("Failed to fetch file URL via FileFetchbyid", err);
59021
- });
59022
- if (_temp && _temp.then) return _temp.then(function () {});
59023
- }
59024
- }();
59025
- if (_temp2 && _temp2.then) return _temp2.then(function () {});
59026
- }
59027
- }();
59028
- return Promise.resolve(_temp3 && _temp3.then ? _temp3.then(function () {}) : void 0);
59029
- } catch (e) {
59030
- return Promise.reject(e);
59031
- }
59032
- };
59033
58397
  const cpt = (data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : _data$cpt.details) || {};
59034
58398
  let propertyAddress = (data === null || data === void 0 ? void 0 : data.propertyAddress) || {};
59035
58399
  if (Object.keys(propertyAddress).length === 0) {
@@ -59073,43 +58437,10 @@ const CheckPage$4 = _ref2 => {
59073
58437
  actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
59074
58438
  onClick: onEdit
59075
58439
  })
59076
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59077
- label: t("WS_CONNECTION_TYPE"),
59078
- 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)))}`
59079
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59080
- label: t("WS_WATER_DEMAND_TYPE"),
59081
- 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)))}`
59082
58440
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59083
58441
  label: t("WS_APPLICANT_TYPE"),
59084
- 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)))}`
59085
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59086
- label: t("WS_SERVICE_TYPE"),
59087
- 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)))}`
59088
- }), ((_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, {
59089
- label: t("WS_DEPARTMENT_TYPE"),
59090
- 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)))}`
59091
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59092
- label: t("WS_ORGANIZATION_DEPARTMENT_NAME"),
59093
- text: `${t(checkForNA((_connectionDetails18 = connectionDetails) === null || _connectionDetails18 === void 0 ? void 0 : _connectionDetails18.institutionName))}`
59094
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59095
- label: t("WS_NATURE_OF_WORK"),
59096
- text: `${t(checkForNA((_connectionDetails19 = connectionDetails) === null || _connectionDetails19 === void 0 ? void 0 : _connectionDetails19.natureOfWork))}`
59097
- }), ((_connectionDetails20 = connectionDetails) === null || _connectionDetails20 === void 0 ? void 0 : _connectionDetails20.orgDeptDocument) && /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59098
- label: t("WS_ORG_DEPT_DOCUMENT"),
59099
- text: /*#__PURE__*/React__default.createElement("span", {
59100
- style: {
59101
- display: "flex",
59102
- alignItems: "center",
59103
- gap: "8px",
59104
- cursor: "pointer",
59105
- color: "#f47738"
59106
- },
59107
- onClick: () => {
59108
- var _connectionDetails21;
59109
- return openFilePDF((_connectionDetails21 = connectionDetails) === null || _connectionDetails21 === void 0 ? void 0 : _connectionDetails21.orgDeptDocument);
59110
- }
59111
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
59112
- }))), /*#__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, {
59113
58444
  style: {
59114
58445
  marginTop: "10px",
59115
58446
  marginBottom: "30px"
@@ -59129,21 +58460,15 @@ const CheckPage$4 = _ref2 => {
59129
58460
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59130
58461
  label: t("WS_CONN_HOLDER_OWN_DETAIL_GENDER_LABEL"),
59131
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)))}`
59132
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59133
- label: t("WS_OWN_DETAIL_GUARDIAN_LABEL"),
59134
- text: `${t(checkForNA((_holderDetails7 = holderDetails) === null || _holderDetails7 === void 0 ? void 0 : _holderDetails7.guardian))}`
59135
- }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59136
- label: t("WS_CONN_HOLDER_OWN_DETAIL_RELATION_LABEL"),
59137
- 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)))}`
59138
58463
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59139
58464
  label: t("CORE_COMMON_MOBILE_NUMBER"),
59140
- 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))}`
59141
58466
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59142
58467
  label: t("CORE_COMMON_WHATSAPP_MOBILE_NUMBER"),
59143
- 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))}`
59144
58469
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59145
58470
  label: t("WS_EMAIL_ID"),
59146
- 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))}`
59147
58472
  })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.CardSubHeader, null, t("WS_PROPERTY_AND_WATER_CONNECTION_USE_DETAILS")), /*#__PURE__*/React__default.createElement(digitUiReactComponents.StatusTable, {
59148
58473
  style: {
59149
58474
  marginTop: "10px",
@@ -59322,21 +58647,7 @@ const CheckPage$4 = _ref2 => {
59322
58647
  actionButton: /*#__PURE__*/React__default.createElement(ActionButton$1, {
59323
58648
  onClick: onEdit
59324
58649
  })
59325
- }), ((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, {
59326
- label: t("WS_UPLOAD_SIGNATURE_FILE"),
59327
- 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"
59328
58650
  }), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59329
- text: /*#__PURE__*/React__default.createElement("span", {
59330
- style: {
59331
- display: "flex",
59332
- alignItems: "center",
59333
- gap: "8px",
59334
- cursor: "pointer",
59335
- color: "#f47738"
59336
- },
59337
- onClick: () => handleViewDocument((declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileStoreId) || (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFile))
59338
- }, /*#__PURE__*/React__default.createElement(digitUiReactComponents.GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
59339
- })), /*#__PURE__*/React__default.createElement(digitUiReactComponents.Row, {
59340
58651
  label: t("WS_I_AGREE_TO_ALL_DECLARATIONS"),
59341
58652
  text: declaration !== null && declaration !== void 0 && declaration.agree ? t("Yes") : t("No")
59342
58653
  }))), /*#__PURE__*/React__default.createElement(digitUiReactComponents.ActionBar, null, /*#__PURE__*/React__default.createElement(digitUiReactComponents.SubmitBar, {
@@ -59484,7 +58795,7 @@ const OLDApplication = () => {
59484
58795
  if (config) {
59485
58796
  var _config$body;
59486
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)) || [];
59487
- 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"];
59488
58799
  const reorderedBody = [];
59489
58800
  desiredComponentOrder.forEach(compName => {
59490
58801
  const section = allCreateSections.find(s => {