@djb25/digit-ui-module-ws 1.0.37 → 1.0.39

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.
@@ -1,7 +1,7 @@
1
1
  import React, { useState, useEffect, useRef, useMemo, Fragment as Fragment$1, useReducer, useCallback } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import { Link, useHistory, useLocation, Switch, Route, useRouteMatch, Redirect, useParams } from 'react-router-dom';
4
- import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, Banner, CardText, ActionBar, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, HomeIcon, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, CardLabel, TextInput, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, LabelFieldPair, DatePicker, CollapsibleCardPage, Dropdown, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, CardLabelError, WrapUnMaskComponent, MobileNumber, CheckBox, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, GenericFileIcon, EditIcon, Label, AddressDetails, CardSectionSubText, DownloadIcon, CardLabelDesc, VerticalTimeline, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
4
+ import { Loader, Card, KeyNote, SubmitBar, InfoBannerIcon, Header, Banner, CardText, ActionBar, HomeIcon, AppContainer, ModuleHeader, ArrowLeft, PrivateRoute, LayoutWrapper, PrintBtnCommon, MultiLink, LinkButton, Toast, TickMark, FormStep, CardLabel, TextInput, RadioOrSelect, CardHeader, CitizenInfoLabel, CardSubHeader, LabelFieldPair, DatePicker, CollapsibleCardPage, Dropdown, RadioButtons, UploadFile, ViewsIcon, Modal, DeleteIcon, CardLabelError, WrapUnMaskComponent, MobileNumber, CheckBox, StatusTable, Row, CardSectionHeader, InfoIcon, TextArea, SearchField, FilterFormField, RemoveableTag, MultiSelectDropdown, InboxComposer, DropIcon, WSICon, EmployeeModuleCard, SearchAction, PopUp, DetailsCard, SearchForm, CloseSvg, Table, Localities, DownloadBtnCommon, CollectionIcon, ResponseComposer, TelePhone, DisplayPhotos, CheckPoint, ConnectingCheckPoints, ActionLinks, PDFSvg, GenericFileIcon, EditIcon, Label, AddressDetails, CardSectionSubText, DownloadIcon, CardLabelDesc, VerticalTimeline, FormComposer, MultiUploadWrapper, Close as Close$e, BreakLine, Menu, ButtonSelector, CitizenHomeCard } from '@djb25/digit-ui-react-components';
5
5
  import { useForm, Controller, useWatch, useFormContext } from 'react-hook-form';
6
6
  import { read, utils as utils$1 } from 'xlsx';
7
7
  import { useQueryClient } from 'react-query';
@@ -1748,11 +1748,8 @@ const ifUserRoleExists = role => {
1748
1748
  return true;
1749
1749
  } else return false;
1750
1750
  };
1751
- const checkForNotNull = (value = "") => {
1752
- return value && value != null && value != undefined && value != "" ? true : false;
1753
- };
1754
1751
  const checkForNA = (value = "") => {
1755
- return checkForNotNull(value) ? value : "CS_NA";
1752
+ return value && value != null && value !== undefined && value !== "" && value !== "Image" ? value : " NA";
1756
1753
  };
1757
1754
 
1758
1755
  var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
@@ -8431,17 +8428,21 @@ const App = ({
8431
8428
  const {
8432
8429
  t
8433
8430
  } = useTranslation();
8431
+ let isMobile = window.Digit.Utils.browser.isMobile();
8434
8432
  let isCommonPTPropertyScreen = window.location.href.includes("/ws/create-application/property-details");
8435
8433
  let isAcknowledgement = window.location.href.includes("/acknowledgement") || window.location.href.includes("/disconnect-acknowledge");
8436
8434
  const WSDisconnectAcknowledgement = (_Digit = Digit) === null || _Digit === void 0 ? void 0 : (_Digit$ComponentRegis = _Digit.ComponentRegistryService) === null || _Digit$ComponentRegis === void 0 ? void 0 : _Digit$ComponentRegis.getComponent("WSDisconnectAcknowledgement");
8437
8435
  const WSRestorationAcknowledgement = (_Digit2 = Digit) === null || _Digit2 === void 0 ? void 0 : (_Digit2$ComponentRegi = _Digit2.ComponentRegistryService) === null || _Digit2$ComponentRegi === void 0 ? void 0 : _Digit2$ComponentRegi.getComponent("WSRestorationAcknowledgement");
8438
8436
  const crumbs = [{
8439
- path: "/digit-ui/citizen",
8440
- label: t("CS_COMMON_HOME"),
8441
- show: true
8437
+ path: "/digit-ui/employee",
8438
+ show: true,
8439
+ style: isMobile ? {
8440
+ width: "20%"
8441
+ } : {},
8442
+ icon: HomeIcon
8442
8443
  }, {
8443
8444
  path: "/digit-ui/citizen/ws/create-application",
8444
- label: t("CS_WS_CREATE_APPLICATION"),
8445
+ label: t("WS_COMMON_APPL_NEW_CONNECTION"),
8445
8446
  show: location.pathname.includes("/create-application") || location.pathname.includes("/info")
8446
8447
  }, {
8447
8448
  path: "/digit-ui/citizen/ws/search",
@@ -8449,7 +8450,7 @@ const App = ({
8449
8450
  show: location.pathname.includes("/search")
8450
8451
  }, {
8451
8452
  path: "/digit-ui/citizen/ws/my-applications",
8452
- label: t("CS_WS_MY_APPLICATIONS"),
8453
+ label: t("CS_HOME_MY_APPLICATIONS"),
8453
8454
  show: location.pathname.includes("/my-applications")
8454
8455
  }, {
8455
8456
  path: "/digit-ui/citizen/ws/my-connections",
@@ -8465,7 +8466,7 @@ const App = ({
8465
8466
  show: location.pathname.includes("/my-payments")
8466
8467
  }, {
8467
8468
  path: "/digit-ui/citizen/ws/old-application",
8468
- label: t("WS_OLD_APPLICATION"),
8469
+ label: t("WS_COMMON_APPL_NEW_CONNECTION"),
8469
8470
  show: location.pathname.includes("/old-application")
8470
8471
  }];
8471
8472
  const getDynamicBreadcrumbs = () => {
@@ -10834,7 +10835,8 @@ const ConnectionDetails = _props => {
10834
10835
  },
10835
10836
  institutionName: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.institutionName) || "",
10836
10837
  natureOfWork: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.natureOfWork) || "",
10837
- orgDeptDocument: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument) || ""
10838
+ orgDeptDocument: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocument) || "",
10839
+ orgDeptDocumentName: (connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocumentName) || ""
10838
10840
  }
10839
10841
  });
10840
10842
  const formValue = watch();
@@ -10870,6 +10872,7 @@ const ConnectionDetails = _props => {
10870
10872
  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;
10871
10873
  setUploadedFile(fsId);
10872
10874
  setValue("orgDeptDocument", fsId);
10875
+ setValue("orgDeptDocumentName", file.name);
10873
10876
  } else {
10874
10877
  setFileUploadError(t("CS_FILE_UPLOAD_ERROR") || "File Upload Error");
10875
10878
  }
@@ -11252,7 +11255,15 @@ const ConnectionDetails = _props => {
11252
11255
  props.onChange(null);
11253
11256
  },
11254
11257
  message: uploadedFile ? `1 ${t("WS_ACTION_FILEUPLOADED")}` : t("WS_ACTION_NO_FILEUPLOADED"),
11255
- accept: "image/*, .pdf"
11258
+ accept: "image/*, .pdf",
11259
+ uploadedFiles: uploadedFile && !file ? [[(connectionDetail === null || connectionDetail === void 0 ? void 0 : connectionDetail.orgDeptDocumentName) || "Document", {
11260
+ fileStoreId: uploadedFile
11261
+ }]] : undefined,
11262
+ removeTargetedFile: () => {
11263
+ setUploadedFile(null);
11264
+ setFile(null);
11265
+ props.onChange(null);
11266
+ }
11256
11267
  })
11257
11268
  })), uploadedFile && /*#__PURE__*/React.createElement("div", {
11258
11269
  onClick: viewDocument,
@@ -15161,7 +15172,10 @@ function SelectDocument({
15161
15172
  if (filteredDocument && doc !== null && doc !== void 0 && doc.dropdownData) {
15162
15173
  var _doc$dropdownData;
15163
15174
  const match = doc === null || doc === void 0 ? void 0 : (_doc$dropdownData = doc.dropdownData) === null || _doc$dropdownData === void 0 ? void 0 : _doc$dropdownData.find(d => d.code === filteredDocument.documentType);
15164
- if (match) return match;
15175
+ if (match) return {
15176
+ ...filteredDocument,
15177
+ ...match
15178
+ };
15165
15179
  }
15166
15180
  return filteredDocument ? {
15167
15181
  ...filteredDocument,
@@ -15215,7 +15229,10 @@ function SelectDocument({
15215
15229
  var _doc$dropdownData3;
15216
15230
  match = doc === null || doc === void 0 ? void 0 : (_doc$dropdownData3 = doc.dropdownData) === null || _doc$dropdownData3 === void 0 ? void 0 : _doc$dropdownData3.find(d => d.code === filteredDocument.documentType);
15217
15231
  }
15218
- setSelectedDocument(match ? match : filteredDocument ? {
15232
+ setSelectedDocument(match ? {
15233
+ ...filteredDocument,
15234
+ ...match
15235
+ } : filteredDocument ? {
15219
15236
  ...filteredDocument,
15220
15237
  code: filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.documentType,
15221
15238
  i18nKey: filteredDocument === null || filteredDocument === void 0 ? void 0 : (_filteredDocument$doc2 = filteredDocument.documentType) === null || _filteredDocument$doc2 === void 0 ? void 0 : _filteredDocument$doc2.replaceAll(".", "_")
@@ -15268,6 +15285,7 @@ function SelectDocument({
15268
15285
  const data = [...filteredDocumentsByFileStoreId, {
15269
15286
  documentType: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
15270
15287
  fileStoreId: uploadedFile,
15288
+ fileName: (file === null || file === void 0 ? void 0 : file.name) || (filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || "",
15271
15289
  documentUid: documentUid,
15272
15290
  i18nKey: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.code,
15273
15291
  id: selectedDocument === null || selectedDocument === void 0 ? void 0 : selectedDocument.id,
@@ -15378,7 +15396,7 @@ function SelectDocument({
15378
15396
  buttonType: "button",
15379
15397
  error: !uploadedFile,
15380
15398
  accept: (doc === null || doc === void 0 ? void 0 : doc.code) === "OWNER.APPLICANTPHOTO" ? "image/jpeg, image/png, .jpg, .jpeg, .png" : "image/*, .pdf, .png, .jpeg, .jpg",
15381
- uploadedFiles: uploadedFile && file && isCameraFile ? [[(file === null || file === void 0 ? void 0 : file.name) || "applicant_photo.jpg", {
15399
+ uploadedFiles: uploadedFile && !file ? [[(filteredDocument === null || filteredDocument === void 0 ? void 0 : filteredDocument.fileName) || (file === null || file === void 0 ? void 0 : file.name) || t("CS_COMMON_DOCUMENT"), {
15382
15400
  fileStoreId: uploadedFile
15383
15401
  }]] : undefined,
15384
15402
  removeTargetedFile: () => {
@@ -19637,7 +19655,7 @@ const WSDeclaration = ({
19637
19655
  clearErrors,
19638
19656
  tenantId
19639
19657
  }) => {
19640
- var _formData$declaration, _formData$declaration2, _formData$declaration3, _formData$declaration4, _formData$declaration5, _formData$declaration6, _formData$declaration7, _formData$declaration8, _formData$declaration0;
19658
+ var _formData$declaration, _formData$declaration2, _formData$declaration3, _formData$declaration4, _formData$declaration5, _formData$declaration6, _formData$declaration7, _formData$declaration8, _formData$declaration9, _formData$declaration1;
19641
19659
  const {
19642
19660
  t
19643
19661
  } = useTranslation();
@@ -19659,7 +19677,8 @@ const WSDeclaration = ({
19659
19677
  },
19660
19678
  signatureFile: (formData === null || formData === void 0 ? void 0 : (_formData$declaration5 = formData.declarationData) === null || _formData$declaration5 === void 0 ? void 0 : _formData$declaration5.signatureFile) || null,
19661
19679
  signatureFileStoreId: (formData === null || formData === void 0 ? void 0 : (_formData$declaration6 = formData.declarationData) === null || _formData$declaration6 === void 0 ? void 0 : _formData$declaration6.signatureFileStoreId) || null,
19662
- declarations: (formData === null || formData === void 0 ? void 0 : (_formData$declaration7 = formData.declarationData) === null || _formData$declaration7 === void 0 ? void 0 : _formData$declaration7.declarations) || Array(9).fill((formData === null || formData === void 0 ? void 0 : (_formData$declaration8 = formData.declarationData) === null || _formData$declaration8 === void 0 ? void 0 : _formData$declaration8.agree) || false)
19680
+ signatureFileName: (formData === null || formData === void 0 ? void 0 : (_formData$declaration7 = formData.declarationData) === null || _formData$declaration7 === void 0 ? void 0 : _formData$declaration7.signatureFileName) || "",
19681
+ declarations: (formData === null || formData === void 0 ? void 0 : (_formData$declaration8 = formData.declarationData) === null || _formData$declaration8 === void 0 ? void 0 : _formData$declaration8.declarations) || Array(9).fill((formData === null || formData === void 0 ? void 0 : (_formData$declaration9 = formData.declarationData) === null || _formData$declaration9 === void 0 ? void 0 : _formData$declaration9.agree) || false)
19663
19682
  }
19664
19683
  });
19665
19684
  const formValue = watch();
@@ -19679,14 +19698,14 @@ const WSDeclaration = ({
19679
19698
  i18nKey: "WS_SUBMITTED_BY_SELF"
19680
19699
  }];
19681
19700
  useEffect(() => {
19682
- var _formData$declaration9;
19683
- const fsId = (formData === null || formData === void 0 ? void 0 : (_formData$declaration9 = formData.declarationData) === null || _formData$declaration9 === void 0 ? void 0 : _formData$declaration9.signatureFileStoreId) || null;
19701
+ var _formData$declaration0;
19702
+ const fsId = (formData === null || formData === void 0 ? void 0 : (_formData$declaration0 = formData.declarationData) === null || _formData$declaration0 === void 0 ? void 0 : _formData$declaration0.signatureFileStoreId) || null;
19684
19703
  const currentFsId = signatureFileStoreId || null;
19685
19704
  if (fsId !== currentFsId) {
19686
19705
  setSignatureFileStoreId(fsId);
19687
19706
  setValue("signatureFileStoreId", fsId);
19688
19707
  }
19689
- }, [formData === null || formData === void 0 ? void 0 : (_formData$declaration0 = formData.declarationData) === null || _formData$declaration0 === void 0 ? void 0 : _formData$declaration0.signatureFileStoreId]);
19708
+ }, [formData === null || formData === void 0 ? void 0 : (_formData$declaration1 = formData.declarationData) === null || _formData$declaration1 === void 0 ? void 0 : _formData$declaration1.signatureFileStoreId]);
19690
19709
  const lastSentValue = React.useRef((formData === null || formData === void 0 ? void 0 : formData.declarationData) || null);
19691
19710
  useEffect(() => {
19692
19711
  const currentValues = {
@@ -19695,8 +19714,8 @@ const WSDeclaration = ({
19695
19714
  signatureFile
19696
19715
  };
19697
19716
  if (!lodash.isEqual(lastSentValue.current, currentValues)) {
19698
- lastSentValue.current = currentValues;
19699
19717
  const timer = setTimeout(() => {
19718
+ lastSentValue.current = currentValues;
19700
19719
  onSelect(config === null || config === void 0 ? void 0 : config.key, currentValues);
19701
19720
  }, 200);
19702
19721
  return () => clearTimeout(timer);
@@ -19717,6 +19736,7 @@ const WSDeclaration = ({
19717
19736
  setSignatureFile(file);
19718
19737
  setValue("signatureFileStoreId", fsId);
19719
19738
  setValue("signatureFile", file);
19739
+ setValue("signatureFileName", file.name);
19720
19740
  }
19721
19741
  } catch (err) {
19722
19742
  console.error("Signature upload failed", err);
@@ -19829,7 +19849,17 @@ const WSDeclaration = ({
19829
19849
  width: "100%"
19830
19850
  },
19831
19851
  buttonType: "button",
19832
- accept: "image/*, .pdf, .png, .jpeg, .jpg"
19852
+ accept: "image/*, .pdf, .png, .jpeg, .jpg",
19853
+ uploadedFiles: signatureFileStoreId && !signatureFile ? [[(formValue === null || formValue === void 0 ? void 0 : formValue.signatureFileName) || "Document", {
19854
+ fileStoreId: signatureFileStoreId
19855
+ }]] : undefined,
19856
+ removeTargetedFile: () => {
19857
+ setSignatureFile(null);
19858
+ setSignatureFileStoreId(null);
19859
+ setValue("signatureFile", null);
19860
+ setValue("signatureFileStoreId", null);
19861
+ setValue("signatureFileName", "");
19862
+ }
19833
19863
  })), signatureFileStoreId && /*#__PURE__*/React.createElement("div", {
19834
19864
  onClick: viewDocument,
19835
19865
  style: {
@@ -28326,7 +28356,7 @@ const WSApplicationDetails = () => {
28326
28356
  label: t("COMMON_ADDRESS_TYPE"),
28327
28357
  text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr = propertyAddress.addressType) === null || _propertyAddress$addr === void 0 ? void 0 : _propertyAddress$addr.i18nKey) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr2 = propertyAddress.addressType) === null || _propertyAddress$addr2 === void 0 ? void 0 : _propertyAddress$addr2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.addressType)))}`
28328
28358
  }), /*#__PURE__*/React.createElement(Row, {
28329
- label: t("CITY"),
28359
+ label: t("CORE_COMMON_PROFILE_CITY"),
28330
28360
  text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city = propertyAddress.city) === null || _propertyAddress$city === void 0 ? void 0 : _propertyAddress$city.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city2 = propertyAddress.city) === null || _propertyAddress$city2 === void 0 ? void 0 : _propertyAddress$city2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.city)))}`
28331
28361
  }), /*#__PURE__*/React.createElement(Row, {
28332
28362
  label: t("PINCODE"),
@@ -28350,28 +28380,28 @@ const WSApplicationDetails = () => {
28350
28380
  label: t("HOUSE_NO"),
28351
28381
  text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.houseNo) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.doorNo)))}`
28352
28382
  }), /*#__PURE__*/React.createElement(Row, {
28353
- label: t("LATITUDE"),
28383
+ label: t("LATITUDE_GEOTAG"),
28354
28384
  text: `${t(checkForNA$1(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.latitude))}`
28355
28385
  }), /*#__PURE__*/React.createElement(Row, {
28356
- label: t("LONGITUDE"),
28386
+ label: t("LONGITUDE_GEOTAG"),
28357
28387
  text: `${t(checkForNA$1(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.longitude))}`
28358
28388
  }), /*#__PURE__*/React.createElement(Row, {
28359
- label: t("ASSEMBLY"),
28389
+ label: t("COMMON_ASSEMBLY"),
28360
28390
  text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse = propertyAddress.assembly) === null || _propertyAddress$asse === void 0 ? void 0 : _propertyAddress$asse.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse2 = propertyAddress.assembly) === null || _propertyAddress$asse2 === void 0 ? void 0 : _propertyAddress$asse2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
28361
28391
  }), /*#__PURE__*/React.createElement(Row, {
28362
- label: t("WARD"),
28392
+ label: t("COMMON_WARD"),
28363
28393
  text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc = propertyAddress.block) === null || _propertyAddress$bloc === void 0 ? void 0 : _propertyAddress$bloc.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc2 = propertyAddress.block) === null || _propertyAddress$bloc2 === void 0 ? void 0 : _propertyAddress$bloc2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.block) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward = propertyAddress.ward) === null || _propertyAddress$ward === void 0 ? void 0 : _propertyAddress$ward.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward2 = propertyAddress.ward) === null || _propertyAddress$ward2 === void 0 ? void 0 : _propertyAddress$ward2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.ward) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
28364
28394
  }), /*#__PURE__*/React.createElement(Row, {
28365
- label: t("ZONE"),
28395
+ label: t("COMMON_ZONE"),
28366
28396
  text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone = propertyAddress.zone) === null || _propertyAddress$zone === void 0 ? void 0 : _propertyAddress$zone.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone2 = propertyAddress.zone) === null || _propertyAddress$zone2 === void 0 ? void 0 : _propertyAddress$zone2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
28367
28397
  }), /*#__PURE__*/React.createElement(Row, {
28368
- label: t("ACTUAL ASSEMBLY"),
28398
+ label: t("COMMON_CURRENT_ASSEMBLY"),
28369
28399
  text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
28370
28400
  }), /*#__PURE__*/React.createElement(Row, {
28371
- label: t("ACTUAL WARD"),
28401
+ label: t("COMMON_CURRENT_WARD"),
28372
28402
  text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
28373
28403
  }), /*#__PURE__*/React.createElement(Row, {
28374
- label: t("ACTUAL ZONE"),
28404
+ label: t("COMMON_CURRENT_ZONE"),
28375
28405
  text: `${t(checkForNA$1((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))}`
28376
28406
  }), /*#__PURE__*/React.createElement(Row, {
28377
28407
  label: t("LANDMARK"),
@@ -30596,7 +30626,7 @@ const CheckPage = ({
30596
30626
  label: t("COMMON_ADDRESS_TYPE"),
30597
30627
  text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr = propertyAddress.addressType) === null || _propertyAddress$addr === void 0 ? void 0 : _propertyAddress$addr.i18nKey) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$addr2 = propertyAddress.addressType) === null || _propertyAddress$addr2 === void 0 ? void 0 : _propertyAddress$addr2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.addressType)))}`
30598
30628
  }), /*#__PURE__*/React.createElement(Row, {
30599
- label: t("CITY"),
30629
+ label: t("CORE_COMMON_PROFILE_CITY"),
30600
30630
  text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city = propertyAddress.city) === null || _propertyAddress$city === void 0 ? void 0 : _propertyAddress$city.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$city2 = propertyAddress.city) === null || _propertyAddress$city2 === void 0 ? void 0 : _propertyAddress$city2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.city)))}`
30601
30631
  }), /*#__PURE__*/React.createElement(Row, {
30602
30632
  label: t("PINCODE"),
@@ -30620,28 +30650,28 @@ const CheckPage = ({
30620
30650
  label: t("HOUSE_NO"),
30621
30651
  text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.houseNo) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.doorNo)))}`
30622
30652
  }), /*#__PURE__*/React.createElement(Row, {
30623
- label: t("LATITUDE"),
30653
+ label: t("LATITUDE_GEOTAG"),
30624
30654
  text: `${t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.latitude))}`
30625
30655
  }), /*#__PURE__*/React.createElement(Row, {
30626
- label: t("LONGITUDE"),
30656
+ label: t("LONGITUDE_GEOTAG"),
30627
30657
  text: `${t(checkForNA(propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.longitude))}`
30628
30658
  }), /*#__PURE__*/React.createElement(Row, {
30629
- label: t("ASSEMBLY"),
30659
+ label: t("COMMON_ASSEMBLY"),
30630
30660
  text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse = propertyAddress.assembly) === null || _propertyAddress$asse === void 0 ? void 0 : _propertyAddress$asse.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$asse2 = propertyAddress.assembly) === null || _propertyAddress$asse2 === void 0 ? void 0 : _propertyAddress$asse2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
30631
30661
  }), /*#__PURE__*/React.createElement(Row, {
30632
- label: t("WARD"),
30662
+ label: t("COMMON_WARD"),
30633
30663
  text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc = propertyAddress.block) === null || _propertyAddress$bloc === void 0 ? void 0 : _propertyAddress$bloc.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$bloc2 = propertyAddress.block) === null || _propertyAddress$bloc2 === void 0 ? void 0 : _propertyAddress$bloc2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.block) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward = propertyAddress.ward) === null || _propertyAddress$ward === void 0 ? void 0 : _propertyAddress$ward.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$ward2 = propertyAddress.ward) === null || _propertyAddress$ward2 === void 0 ? void 0 : _propertyAddress$ward2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.ward) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
30634
30664
  }), /*#__PURE__*/React.createElement(Row, {
30635
- label: t("ZONE"),
30665
+ label: t("COMMON_ZONE"),
30636
30666
  text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone = propertyAddress.zone) === null || _propertyAddress$zone === void 0 ? void 0 : _propertyAddress$zone.name) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : (_propertyAddress$zone2 = propertyAddress.zone) === null || _propertyAddress$zone2 === void 0 ? void 0 : _propertyAddress$zone2.code) || (propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
30637
30667
  }), /*#__PURE__*/React.createElement(Row, {
30638
- label: t("ACTUAL ASSEMBLY"),
30668
+ label: t("COMMON_CURRENT_ASSEMBLY"),
30639
30669
  text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
30640
30670
  }), /*#__PURE__*/React.createElement(Row, {
30641
- label: t("ACTUAL WARD"),
30671
+ label: t("COMMON_CURRENT_WARD"),
30642
30672
  text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
30643
30673
  }), /*#__PURE__*/React.createElement(Row, {
30644
- label: t("ACTUAL ZONE"),
30674
+ label: t("COMMON_CURRENT_ZONE"),
30645
30675
  text: `${t(checkForNA((propertyAddress === null || propertyAddress === void 0 ? void 0 : propertyAddress.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))}`
30646
30676
  }), /*#__PURE__*/React.createElement(Row, {
30647
30677
  label: t("LANDMARK"),
@@ -31999,8 +32029,11 @@ const WSInfoPage = () => {
31999
32029
  name: "mobileNumber",
32000
32030
  value: searchMobileNumber,
32001
32031
  onChange: e => {
32002
- setSearchMobileNumber(e.target.value);
32003
- setSelectedProperty(null);
32032
+ const val = e.target.value;
32033
+ if (val.length <= 10) {
32034
+ setSearchMobileNumber(val);
32035
+ setSelectedProperty(null);
32036
+ }
32004
32037
  },
32005
32038
  placeholder: t("Enter mobile number"),
32006
32039
  maxLength: 10
@@ -40355,11 +40388,13 @@ function PropertyDocuments({
40355
40388
  });
40356
40389
  });
40357
40390
  const allChecked = requiredDocsCount === 0 || checkedCount === requiredDocsCount;
40358
- window.isDocumentsVerified = allChecked;
40391
+ const isDocVerifState = !applicationStatus || applicationStatus === "PENDING_FOR_DOCUMENT_VERIFICATION";
40392
+ const finalVerified = isDocVerifState ? allChecked : true;
40393
+ window.isDocumentsVerified = finalVerified;
40359
40394
  window.dispatchEvent(new CustomEvent("DOCUMENTS_VERIFIED", {
40360
- detail: allChecked
40395
+ detail: finalVerified
40361
40396
  }));
40362
- }, [checkedMap, documents]);
40397
+ }, [checkedMap, documents, applicationStatus]);
40363
40398
  useEffect(() => {
40364
40399
  var _acc;
40365
40400
  let acc = [];
@@ -43096,6 +43131,9 @@ function ApplicationDetailsActionBar({
43096
43131
  return false;
43097
43132
  });
43098
43133
  React.useEffect(() => {
43134
+ if (typeof window !== "undefined" && typeof window.isDocumentsVerified !== "undefined") {
43135
+ setIsSubmitDisabled(!window.isDocumentsVerified);
43136
+ }
43099
43137
  const handleDocVerification = e => {
43100
43138
  setIsSubmitDisabled(!e.detail);
43101
43139
  };
@@ -47752,13 +47790,47 @@ const CheckPage$4 = ({
47752
47790
  onSubmit,
47753
47791
  onEdit
47754
47792
  }) => {
47755
- var _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _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;
47793
+ var _data$cpt, _data$ConnectionDetai, _data$connectionDetai, _data$ConnectionHolde, _data$connectionHolde, _data$useDetails, _data$bankDetails, _data$DocumentsRequir, _data$documents, _data$djbEmployee, _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;
47756
47794
  const {
47757
47795
  t
47758
47796
  } = useTranslation();
47759
47797
  const [showDocModal, setShowDocModal] = useState(false);
47760
47798
  const [docFileUrl, setDocFileUrl] = useState("");
47761
47799
  const [docFileType, setDocFileType] = useState("");
47800
+ const handleViewDocument = async fileStoreId => {
47801
+ if (fileStoreId) {
47802
+ if (typeof fileStoreId === "object" && fileStoreId.type) {
47803
+ const fileURL = URL.createObjectURL(fileStoreId);
47804
+ setDocFileUrl(fileURL);
47805
+ if (fileStoreId.type.includes("pdf")) {
47806
+ setDocFileType("pdf");
47807
+ } else {
47808
+ setDocFileType("image");
47809
+ }
47810
+ setShowDocModal(true);
47811
+ } else {
47812
+ try {
47813
+ const res = await Digit.UploadServices.FileFetchbyid(fileStoreId, Digit.ULBService.getStateId());
47814
+ if (res !== null && res !== void 0 && res.data) {
47815
+ const blob = res.data instanceof Blob ? res.data : new Blob([res.data], {
47816
+ type: res.headers["content-type"] || res.headers["Content-Type"] || "image/jpeg"
47817
+ });
47818
+ const fileURL = URL.createObjectURL(blob);
47819
+ setDocFileUrl(fileURL);
47820
+ const contentType = res.headers["content-type"] || res.headers["Content-Type"] || "";
47821
+ if (contentType.toLowerCase().includes("pdf")) {
47822
+ setDocFileType("pdf");
47823
+ } else {
47824
+ setDocFileType("image");
47825
+ }
47826
+ setShowDocModal(true);
47827
+ }
47828
+ } catch (err) {
47829
+ console.error("Failed to fetch file URL via FileFetchbyid", err);
47830
+ }
47831
+ }
47832
+ }
47833
+ };
47762
47834
  const cpt = (data === null || data === void 0 ? void 0 : (_data$cpt = data.cpt) === null || _data$cpt === void 0 ? void 0 : _data$cpt.details) || {};
47763
47835
  let propertyAddress = (data === null || data === void 0 ? void 0 : data.propertyAddress) || {};
47764
47836
  if (Object.keys(propertyAddress).length === 0) {
@@ -47776,6 +47848,7 @@ const CheckPage$4 = ({
47776
47848
  const useDetails = (data === null || data === void 0 ? void 0 : (_data$useDetails = data.useDetails) === null || _data$useDetails === void 0 ? void 0 : _data$useDetails.useDetails) || (data === null || data === void 0 ? void 0 : data.useDetails) || {};
47777
47849
  const bankDetails = (data === null || data === void 0 ? void 0 : (_data$bankDetails = data.bankDetails) === null || _data$bankDetails === void 0 ? void 0 : _data$bankDetails.bankDetails) || (data === null || data === void 0 ? void 0 : data.bankDetails) || {};
47778
47850
  const documents = (data === null || data === void 0 ? void 0 : (_data$DocumentsRequir = data.DocumentsRequired) === null || _data$DocumentsRequir === void 0 ? void 0 : _data$DocumentsRequir.documents) || (data === null || data === void 0 ? void 0 : (_data$documents = data.documents) === null || _data$documents === void 0 ? void 0 : _data$documents.documents) || [];
47851
+ const declaration = (data === null || data === void 0 ? void 0 : data.declarationData) || (data === null || data === void 0 ? void 0 : data.declaration) || {};
47779
47852
  const djbEmployee = (data === null || data === void 0 ? void 0 : (_data$djbEmployee = data.djbEmployee) === null || _data$djbEmployee === void 0 ? void 0 : _data$djbEmployee.djbEmployee) || (data === null || data === void 0 ? void 0 : data.djbEmployee) || {};
47780
47853
  return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Card, {
47781
47854
  className: "overflow-y-scroll"
@@ -47887,7 +47960,7 @@ const CheckPage$4 = ({
47887
47960
  label: t("COMMON_ADDRESS_TYPE"),
47888
47961
  text: `${t(checkForNA(((_propertyAddress5 = propertyAddress) === null || _propertyAddress5 === void 0 ? void 0 : (_propertyAddress5$add = _propertyAddress5.addressType) === null || _propertyAddress5$add === void 0 ? void 0 : _propertyAddress5$add.i18nKey) || ((_propertyAddress6 = propertyAddress) === null || _propertyAddress6 === void 0 ? void 0 : (_propertyAddress6$add = _propertyAddress6.addressType) === null || _propertyAddress6$add === void 0 ? void 0 : _propertyAddress6$add.code) || ((_propertyAddress7 = propertyAddress) === null || _propertyAddress7 === void 0 ? void 0 : _propertyAddress7.addressType)))}`
47889
47962
  }), /*#__PURE__*/React.createElement(Row, {
47890
- label: t("CITY"),
47963
+ label: t("CORE_COMMON_PROFILE_CITY"),
47891
47964
  text: `${t(checkForNA(((_propertyAddress8 = propertyAddress) === null || _propertyAddress8 === void 0 ? void 0 : (_propertyAddress8$cit = _propertyAddress8.city) === null || _propertyAddress8$cit === void 0 ? void 0 : _propertyAddress8$cit.name) || ((_propertyAddress9 = propertyAddress) === null || _propertyAddress9 === void 0 ? void 0 : (_propertyAddress9$cit = _propertyAddress9.city) === null || _propertyAddress9$cit === void 0 ? void 0 : _propertyAddress9$cit.code) || ((_propertyAddress0 = propertyAddress) === null || _propertyAddress0 === void 0 ? void 0 : _propertyAddress0.city)))}`
47892
47965
  }), /*#__PURE__*/React.createElement(Row, {
47893
47966
  label: t("PINCODE"),
@@ -47911,28 +47984,28 @@ const CheckPage$4 = ({
47911
47984
  label: t("HOUSE_NO"),
47912
47985
  text: `${t(checkForNA(((_propertyAddress22 = propertyAddress) === null || _propertyAddress22 === void 0 ? void 0 : _propertyAddress22.houseNo) || ((_propertyAddress23 = propertyAddress) === null || _propertyAddress23 === void 0 ? void 0 : _propertyAddress23.doorNo)))}`
47913
47986
  }), /*#__PURE__*/React.createElement(Row, {
47914
- label: t("LATITUDE"),
47987
+ label: t("LATITUDE_GEOTAG"),
47915
47988
  text: `${t(checkForNA((_propertyAddress24 = propertyAddress) === null || _propertyAddress24 === void 0 ? void 0 : _propertyAddress24.latitude))}`
47916
47989
  }), /*#__PURE__*/React.createElement(Row, {
47917
- label: t("LONGITUDE"),
47990
+ label: t("LONGITUDE_GEOTAG"),
47918
47991
  text: `${t(checkForNA((_propertyAddress25 = propertyAddress) === null || _propertyAddress25 === void 0 ? void 0 : _propertyAddress25.longitude))}`
47919
47992
  }), /*#__PURE__*/React.createElement(Row, {
47920
- label: t("ASSEMBLY"),
47993
+ label: t("COMMON_ASSEMBLY"),
47921
47994
  text: `${t(checkForNA(((_propertyAddress26 = propertyAddress) === null || _propertyAddress26 === void 0 ? void 0 : (_propertyAddress26$as = _propertyAddress26.assembly) === null || _propertyAddress26$as === void 0 ? void 0 : _propertyAddress26$as.name) || ((_propertyAddress27 = propertyAddress) === null || _propertyAddress27 === void 0 ? void 0 : (_propertyAddress27$as = _propertyAddress27.assembly) === null || _propertyAddress27$as === void 0 ? void 0 : _propertyAddress27$as.code) || ((_propertyAddress28 = propertyAddress) === null || _propertyAddress28 === void 0 ? void 0 : _propertyAddress28.assembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.assembly)))}`
47922
47995
  }), /*#__PURE__*/React.createElement(Row, {
47923
- label: t("WARD"),
47996
+ label: t("COMMON_WARD"),
47924
47997
  text: `${t(checkForNA(((_propertyAddress29 = propertyAddress) === null || _propertyAddress29 === void 0 ? void 0 : (_propertyAddress29$bl = _propertyAddress29.block) === null || _propertyAddress29$bl === void 0 ? void 0 : _propertyAddress29$bl.name) || ((_propertyAddress30 = propertyAddress) === null || _propertyAddress30 === void 0 ? void 0 : (_propertyAddress30$bl = _propertyAddress30.block) === null || _propertyAddress30$bl === void 0 ? void 0 : _propertyAddress30$bl.code) || ((_propertyAddress31 = propertyAddress) === null || _propertyAddress31 === void 0 ? void 0 : _propertyAddress31.block) || ((_propertyAddress32 = propertyAddress) === null || _propertyAddress32 === void 0 ? void 0 : (_propertyAddress32$wa = _propertyAddress32.ward) === null || _propertyAddress32$wa === void 0 ? void 0 : _propertyAddress32$wa.name) || ((_propertyAddress33 = propertyAddress) === null || _propertyAddress33 === void 0 ? void 0 : (_propertyAddress33$wa = _propertyAddress33.ward) === null || _propertyAddress33$wa === void 0 ? void 0 : _propertyAddress33$wa.code) || ((_propertyAddress34 = propertyAddress) === null || _propertyAddress34 === void 0 ? void 0 : _propertyAddress34.ward) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.ward)))}`
47925
47998
  }), /*#__PURE__*/React.createElement(Row, {
47926
- label: t("ZONE"),
47999
+ label: t("COMMON_ZONE"),
47927
48000
  text: `${t(checkForNA(((_propertyAddress35 = propertyAddress) === null || _propertyAddress35 === void 0 ? void 0 : (_propertyAddress35$zo = _propertyAddress35.zone) === null || _propertyAddress35$zo === void 0 ? void 0 : _propertyAddress35$zo.name) || ((_propertyAddress36 = propertyAddress) === null || _propertyAddress36 === void 0 ? void 0 : (_propertyAddress36$zo = _propertyAddress36.zone) === null || _propertyAddress36$zo === void 0 ? void 0 : _propertyAddress36$zo.code) || ((_propertyAddress37 = propertyAddress) === null || _propertyAddress37 === void 0 ? void 0 : _propertyAddress37.zone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.zone)))}`
47928
48001
  }), /*#__PURE__*/React.createElement(Row, {
47929
- label: t("ACTUAL ASSEMBLY"),
48002
+ label: t("COMMON_CURRENT_ASSEMBLY"),
47930
48003
  text: `${t(checkForNA(((_propertyAddress38 = propertyAddress) === null || _propertyAddress38 === void 0 ? void 0 : _propertyAddress38.actualAssembly) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualAssembly)))}`
47931
48004
  }), /*#__PURE__*/React.createElement(Row, {
47932
- label: t("ACTUAL WARD"),
48005
+ label: t("COMMON_CURRENT_WARD"),
47933
48006
  text: `${t(checkForNA(((_propertyAddress39 = propertyAddress) === null || _propertyAddress39 === void 0 ? void 0 : _propertyAddress39.actualWard) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualWard)))}`
47934
48007
  }), /*#__PURE__*/React.createElement(Row, {
47935
- label: t("ACTUAL ZONE"),
48008
+ label: t("COMMON_CURRENT_ZONE"),
47936
48009
  text: `${t(checkForNA(((_propertyAddress40 = propertyAddress) === null || _propertyAddress40 === void 0 ? void 0 : _propertyAddress40.actualZone) || (additionalDetails === null || additionalDetails === void 0 ? void 0 : additionalDetails.actualZone)))}`
47937
48010
  }), /*#__PURE__*/React.createElement(Row, {
47938
48011
  label: t("LANDMARK"),
@@ -48039,6 +48112,34 @@ const CheckPage$4 = ({
48039
48112
  onClick: () => openFilePDF((doc === null || doc === void 0 ? void 0 : doc.fileStoreId) || (doc === null || doc === void 0 ? void 0 : doc.documentUid))
48040
48113
  }, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
48041
48114
  }));
48115
+ })), /*#__PURE__*/React.createElement(CardSubHeader, null, t("WS_DECLARATION")), /*#__PURE__*/React.createElement(StatusTable, {
48116
+ style: {
48117
+ marginTop: "10px",
48118
+ marginBottom: "30px"
48119
+ }
48120
+ }, /*#__PURE__*/React.createElement(Row, {
48121
+ label: t("WS_SUBMITTED_BY"),
48122
+ text: `${t((declaration === null || declaration === void 0 ? void 0 : (_declaration$submitte = declaration.submittedBy) === null || _declaration$submitte === void 0 ? void 0 : _declaration$submitte.name) || (declaration === null || declaration === void 0 ? void 0 : (_declaration$submitte2 = declaration.submittedBy) === null || _declaration$submitte2 === void 0 ? void 0 : _declaration$submitte2.code) || (declaration === null || declaration === void 0 ? void 0 : declaration.submittedBy))}`,
48123
+ actionButton: /*#__PURE__*/React.createElement(ActionButton, {
48124
+ onClick: onEdit
48125
+ })
48126
+ }), ((declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileStoreId) || (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFile)) && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
48127
+ label: t("WS_UPLOAD_SIGNATURE_FILE"),
48128
+ 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"
48129
+ }), /*#__PURE__*/React.createElement(Row, {
48130
+ text: /*#__PURE__*/React.createElement("span", {
48131
+ style: {
48132
+ display: "flex",
48133
+ alignItems: "center",
48134
+ gap: "8px",
48135
+ cursor: "pointer",
48136
+ color: "#f47738"
48137
+ },
48138
+ onClick: () => handleViewDocument((declaration === null || declaration === void 0 ? void 0 : declaration.signatureFileStoreId) || (declaration === null || declaration === void 0 ? void 0 : declaration.signatureFile))
48139
+ }, /*#__PURE__*/React.createElement(GenericFileIcon, null), " ", t("CS_COMMON_VIEW"))
48140
+ })), /*#__PURE__*/React.createElement(Row, {
48141
+ label: t("WS_I_AGREE_TO_ALL_DECLARATIONS"),
48142
+ text: declaration !== null && declaration !== void 0 && declaration.agree ? t("Yes") : t("No")
48042
48143
  }))), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
48043
48144
  label: t("CS_COMMON_SUBMIT"),
48044
48145
  onSubmit: onSubmit,
@@ -48390,8 +48491,8 @@ const OLDApplication = () => {
48390
48491
  return (d === null || d === void 0 ? void 0 : (_d$documentType2 = d.documentType) === null || _d$documentType2 === void 0 ? void 0 : _d$documentType2.includes("ADDRESSPROOF")) || (d === null || d === void 0 ? void 0 : (_d$documentType3 = d.documentType) === null || _d$documentType3 === void 0 ? void 0 : _d$documentType3.includes("OWNERSHIPPROOF"));
48391
48492
  });
48392
48493
  const otherDoc = docs.find(d => {
48393
- var _d$documentType4, _d$documentType5;
48394
- return !(d !== null && d !== void 0 && (_d$documentType4 = d.documentType) !== null && _d$documentType4 !== void 0 && _d$documentType4.includes("IDENTITYPROOF")) && !(d !== null && d !== void 0 && (_d$documentType5 = d.documentType) !== null && _d$documentType5 !== void 0 && _d$documentType5.includes("ADDRESSPROOF"));
48494
+ var _d$documentType4;
48495
+ return d === null || d === void 0 ? void 0 : (_d$documentType4 = d.documentType) === null || _d$documentType4 === void 0 ? void 0 : _d$documentType4.includes("OTHERDOCUMENTS");
48395
48496
  });
48396
48497
  data.documents = {
48397
48498
  documents: docs,
@@ -48684,7 +48785,7 @@ const OLDApplication = () => {
48684
48785
  className: "employee-form-section-wrapper"
48685
48786
  }, /*#__PURE__*/React.createElement(VerticalTimeline, {
48686
48787
  config: timelineConfig,
48687
- currentActiveIndex: 4,
48788
+ currentActiveIndex: 9,
48688
48789
  showFinalStep: false
48689
48790
  }), /*#__PURE__*/React.createElement(CheckPage$4, {
48690
48791
  data: sessionFormData,