@mseva/digit-ui-module-obps 1.0.72 → 1.0.73

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, { Fragment, useMemo, useState, useEffect, useCallback, useReducer, useRef } from 'react';
2
2
  import { useTranslation } from 'react-i18next';
3
3
  import { Link as Link$1, useLocation, useHistory, useParams, Switch, Route, useRouteMatch, Redirect } from 'react-router-dom';
4
- import { SearchField, TextInput, MobileNumber, CardLabelError, Dropdown, DatePicker, SubmitBar, Loader, SearchAction, PopUp, Card, DetailsCard, Header, SearchForm, Table, Toast as Toast$1, CloseSvg, KeyNote, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, LinkButton, MultiLink, CardLabel, Banner, CardText, ActionBar, FilterFormField, RadioButtons, RemoveableTag, MultiSelectDropdown, CheckBox, CaseIcon, InboxComposer, LabelFieldPair, TextArea, CardSubHeader, StatusTable, Row, Menu, BackButton, PrivateRoute, BPAHomeIcon, EDCRIcon, BPAIcon, CitizenHomeCard, FormStep, UploadFile, TickMark, Label, SearchIconSvg, CardHeader, CitizenInfoLabel, SearchIcon, DeleteIcon, RadioOrSelect, PDFSvg as PDFSvg$2, MultiUploadWrapper, LocationSearchCard, CardCaption, Modal, FormComposer, ButtonSelector, OTPInput, ImageViewer, BreadCrumb, OBPSIconSolidBg, EmployeeModuleCard as EmployeeModuleCard$1, ArrowDown, Close as Close$e, BreakLine, EditIcon, OBPSIcon } from '@mseva/digit-ui-react-components';
4
+ import { SearchField, TextInput, MobileNumber, CardLabelError, Dropdown, DatePicker, SubmitBar, Loader, SearchAction, PopUp, Card, DetailsCard, Header, SearchForm, Table, Toast as Toast$1, CloseSvg, KeyNote, TelePhone, DisplayPhotos, CardSectionHeader, CheckPoint, ConnectingCheckPoints, LinkButton, MultiLink, CardLabel, Banner, CardText as CardText$1, ActionBar, FilterFormField, RadioButtons, RemoveableTag, MultiSelectDropdown, CheckBox, CaseIcon, InboxComposer, LabelFieldPair, TextArea, CardSubHeader, StatusTable, Row, Menu, BackButton, PrivateRoute, BPAHomeIcon, EDCRIcon, BPAIcon, CitizenHomeCard, FormStep, UploadFile, TickMark, Label, SearchIconSvg, CardHeader, CitizenInfoLabel, ButtonSelector, SearchIcon, DeleteIcon, RadioOrSelect, PDFSvg as PDFSvg$2, MultiUploadWrapper, LocationSearchCard, CardCaption, Modal, FormComposer, OTPInput, ImageViewer, BreadCrumb, OBPSIconSolidBg, EmployeeModuleCard as EmployeeModuleCard$1, ArrowDown, Close as Close$e, BreakLine, EditIcon, OBPSIcon } from '@mseva/digit-ui-react-components';
5
5
  import { useWatch, useForm, Controller, useFormContext, useFieldArray } from 'react-hook-form';
6
6
  import { useQueryClient, useQuery } from 'react-query';
7
7
  import { useDispatch, useSelector } from 'react-redux';
@@ -3698,7 +3698,7 @@ const OBPSResponse = props => {
3698
3698
  fontSize: "32px",
3699
3699
  wordBreak: "break-word"
3700
3700
  }
3701
- }), /*#__PURE__*/React.createElement(CardText, {
3701
+ }), /*#__PURE__*/React.createElement(CardText$1, {
3702
3702
  style: {
3703
3703
  paddingBottom: "10px",
3704
3704
  marginBottom: "10px"
@@ -14036,7 +14036,7 @@ const EmployeeModuleCard = ({
14036
14036
  const BPACitizenHomeScreen = ({
14037
14037
  parentRoute
14038
14038
  }) => {
14039
- var _userInfo$info, _userInfo$info$roles, _sortParams$5, _sortParams$6;
14039
+ var _userInfo$info, _userInfo$info$roles, _Digit$UserService, _user$info, _user$info$roles, _user$info2, _user$info2$roles, _user$info3, _user$info3$roles, _user$info3$roles$fin, _sortParams$5, _sortParams$6;
14040
14040
  const userInfo = Digit.UserService.getUser();
14041
14041
  const userRoles = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info = userInfo.info) === null || _userInfo$info === void 0 ? void 0 : (_userInfo$info$roles = _userInfo$info.roles) === null || _userInfo$info$roles === void 0 ? void 0 : _userInfo$info$roles.map(roleData => roleData.code);
14042
14042
  const stateCode = Digit.ULBService.getStateId();
@@ -14058,6 +14058,15 @@ const BPACitizenHomeScreen = ({
14058
14058
  } = Digit.Hooks.obps.useMDMS(state, "BPA", ["homePageUrlLinks"]);
14059
14059
  const [showToast, setShowToast] = useState(null);
14060
14060
  const [totalCount, setTotalCount] = useState("-");
14061
+ const user = (_Digit$UserService = Digit.UserService) === null || _Digit$UserService === void 0 ? void 0 : _Digit$UserService.getUser();
14062
+ const tenantId = localStorage.getItem("CITIZEN.CITY");
14063
+ const isUserRegistered = (user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles = _user$info.roles) === null || _user$info$roles === void 0 ? void 0 : _user$info$roles.some(role => (role === null || role === void 0 ? void 0 : role.code) === "BPA_ARCHITECT")) || (user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : (_user$info2$roles = _user$info2.roles) === null || _user$info2$roles === void 0 ? void 0 : _user$info2$roles.some(role => {
14064
+ var _role$code;
14065
+ return role === null || role === void 0 ? void 0 : (_role$code = role.code) === null || _role$code === void 0 ? void 0 : _role$code.includes("BPA");
14066
+ })) && (user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : (_user$info3$roles = _user$info3.roles) === null || _user$info3$roles === void 0 ? void 0 : (_user$info3$roles$fin = _user$info3$roles.find(role => {
14067
+ var _role$code2;
14068
+ return role === null || role === void 0 ? void 0 : (_role$code2 = role.code) === null || _role$code2 === void 0 ? void 0 : _role$code2.includes("BPA");
14069
+ })) === null || _user$info3$roles$fin === void 0 ? void 0 : _user$info3$roles$fin.tenantId) === tenantId;
14061
14070
  const closeToast = () => {
14062
14071
  window.location.replace("/digit-ui/citizen/all-services");
14063
14072
  setShowToast(null);
@@ -14139,13 +14148,14 @@ const BPACitizenHomeScreen = ({
14139
14148
  });
14140
14149
  });
14141
14150
  const uniqueRoles = roles === null || roles === void 0 ? void 0 : roles.filter((item, i, ar) => ar.indexOf(item) === i);
14151
+ console.log("uniqueRoles", uniqueRoles);
14142
14152
  let isRoute = false;
14143
14153
  uniqueRoles === null || uniqueRoles === void 0 ? void 0 : uniqueRoles.map(unRole => {
14144
14154
  if (userRoles !== null && userRoles !== void 0 && userRoles.includes(unRole) && !isRoute) {
14145
14155
  isRoute = true;
14146
14156
  }
14147
14157
  });
14148
- if (!isRoute) {
14158
+ if (!isUserRegistered) {
14149
14159
  setStakeholderRoles(false);
14150
14160
  setShowToast({
14151
14161
  key: "true",
@@ -14942,6 +14952,10 @@ const BasicDetails = ({
14942
14952
  console.log("riskType", riskType, mdmsData === null || mdmsData === void 0 ? void 0 : (_mdmsData$BPA2 = mdmsData.BPA) === null || _mdmsData$BPA2 === void 0 ? void 0 : _mdmsData$BPA2.RiskTypeComputation, basicData === null || basicData === void 0 ? void 0 : (_basicData$planDetail4 = basicData.planDetail) === null || _basicData$planDetail4 === void 0 ? void 0 : (_basicData$planDetail5 = _basicData$planDetail4.plot) === null || _basicData$planDetail5 === void 0 ? void 0 : _basicData$planDetail5.area, basicData === null || basicData === void 0 ? void 0 : (_basicData$planDetail6 = basicData.planDetail) === null || _basicData$planDetail6 === void 0 ? void 0 : _basicData$planDetail6.blocks);
14943
14953
  useEffect(() => {
14944
14954
  sessionStorage.removeItem("ArchitectConsentdocFilestoreid");
14955
+ window.scrollTo({
14956
+ top: 0,
14957
+ behavior: "smooth"
14958
+ });
14945
14959
  }, []);
14946
14960
  const handleKeyPress = async event => {
14947
14961
  if (event.key === "Enter") {
@@ -15260,7 +15274,7 @@ const DocsRequired = ({
15260
15274
  if (isLoading) {
15261
15275
  return /*#__PURE__*/React.createElement(Loader, null);
15262
15276
  }
15263
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, checkingUrl ? t(`BPA_OOCUPANCY_CERTIFICATE_APP_LABEL`) : t(`OBPS_NEW_BUILDING_PERMIT`)), /*#__PURE__*/React.createElement(CardText, {
15277
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, checkingUrl ? t(`BPA_OOCUPANCY_CERTIFICATE_APP_LABEL`) : t(`OBPS_NEW_BUILDING_PERMIT`)), /*#__PURE__*/React.createElement(CardText$1, {
15264
15278
  style: {
15265
15279
  color: "#0B0C0C",
15266
15280
  marginTop: "12px",
@@ -15589,6 +15603,7 @@ const PlotDetails = ({
15589
15603
  const [materialused, setMaterialUsed] = useState("");
15590
15604
  const [materialusedinfloor, setMaterialUsedInFloor] = useState("");
15591
15605
  const [materialusedinroofs, setMaterialUsedInRoofs] = useState("");
15606
+ const [estimatedCost, setEstimatedCost] = useState("");
15592
15607
  const checkingFlow = formData === null || formData === void 0 ? void 0 : (_formData$uiFlow = formData.uiFlow) === null || _formData$uiFlow === void 0 ? void 0 : _formData$uiFlow.flow;
15593
15608
  const state = Digit.ULBService.getStateId();
15594
15609
  const [errors, setErrors] = useState({});
@@ -15647,6 +15662,12 @@ const PlotDetails = ({
15647
15662
  color: "red"
15648
15663
  }
15649
15664
  }, errors[errorKey]));
15665
+ useEffect(() => {
15666
+ window.scrollTo({
15667
+ top: 0,
15668
+ behavior: "smooth"
15669
+ });
15670
+ }, []);
15650
15671
  useEffect(() => {
15651
15672
  if (isEditApplication) {
15652
15673
  const newConfig = {
@@ -15729,6 +15750,7 @@ const PlotDetails = ({
15729
15750
  setMaterialUsed((details === null || details === void 0 ? void 0 : details.materialused) || "");
15730
15751
  setMaterialUsedInFloor((details === null || details === void 0 ? void 0 : details.materialusedinfloor) || "");
15731
15752
  setMaterialUsedInRoofs((details === null || details === void 0 ? void 0 : details.materialusedinroofs) || "");
15753
+ setEstimatedCost((details === null || details === void 0 ? void 0 : details.estimatedCost) || "");
15732
15754
  }
15733
15755
  }, [currentStepData === null || currentStepData === void 0 ? void 0 : currentStepData.createdResponse]);
15734
15756
  useEffect(() => {
@@ -15805,11 +15827,16 @@ const PlotDetails = ({
15805
15827
  if (!materialusedinroofs.trim()) {
15806
15828
  newErrors.materialusedinroofs = t("BPA_MATERIAL_USED_IN_ROOFS_REQUIRED");
15807
15829
  }
15830
+ if (!estimatedCost.trim()) {
15831
+ newErrors.estimatedCost = t("BPA_ESTIMATED_COST_IS_REQUIRED");
15832
+ } else if (isNaN(estimatedCost)) {
15833
+ newErrors.estimatedCost = t("BPA_ESTIMATED_COST_INVALID");
15834
+ }
15808
15835
  setErrors(newErrors);
15809
15836
  return Object.keys(newErrors).length === 0;
15810
15837
  };
15811
15838
  const handleSubmit = async () => {
15812
- var _userInfo$info3, _currentStepData$cpt12, _currentStepData$cpt13, _currentStepData$cpt14, _currentStepData$cpt15, _currentStepData$cpt16, _currentStepData$cpt17, _currentStepData$cpt18, _currentStepData$cpt19, _currentStepData$cpt20, _currentStepData$cpt21, _currentStepData$cpt22, _currentStepData$crea10, _currentStepData$crea11, _currentStepData$cpt23, _currentStepData$cpt24, _currentStepData$crea12, _currentStepData$crea13, _currentStepData$cpt25, _currentStepData$cpt26, _currentStepData$cpt27, _currentStepData$crea14, _currentStepData$crea15, _currentStepData$Basi3, _currentStepData$Basi4, _currentStepData$Basi5, _currentStepData$Basi6, _currentStepData$Basi7, _currentStepData$Basi8, _currentStepData$Basi9, _formData$data, _currentStepData$crea16, _data$planDetail5, _data$planDetail5$pla, _data$planDetail5$pla2, _data$planDetail6, _data$planDetail6$blo, _data$planDetail6$blo2, _data$planDetail6$blo3, _data$planDetail6$blo4, _data$planDetail7, _data$planDetail7$pla, _data$planDetail8, _data$planDetail8$blo, _data$planDetail8$blo2, _data$planDetail8$blo3, _data$planDetail8$blo4, _approvedLicense$trad, _approvedLicense$trad2, _approvedLicense$trad3, _data$planDetail9, _data$planDetail9$pla, _data$planDetail9$pla2, _data$planDetail0, _data$planDetail0$blo, _data$planDetail0$blo2, _data$planDetail0$blo3, _data$planDetail0$blo4, _data$planDetail1, _data$planDetail1$pla, _data$planDetail10, _data$planDetail10$bl, _data$planDetail10$bl2, _data$planDetail10$bl3, _data$planDetail10$bl4, _approvedLicense$trad4, _approvedLicense$trad5, _approvedLicense$trad6, _currentStepData$Basi0, _userInfo$info4, _formData$data2, _formData$data3;
15839
+ var _userInfo$info3, _userInfo$info4, _currentStepData$cpt12, _currentStepData$cpt13, _currentStepData$cpt14, _currentStepData$cpt15, _currentStepData$cpt16, _currentStepData$cpt17, _currentStepData$cpt18, _currentStepData$cpt19, _currentStepData$cpt20, _currentStepData$cpt21, _currentStepData$cpt22, _currentStepData$crea10, _currentStepData$crea11, _currentStepData$cpt23, _currentStepData$cpt24, _currentStepData$crea12, _currentStepData$crea13, _currentStepData$cpt25, _currentStepData$cpt26, _currentStepData$cpt27, _currentStepData$crea14, _currentStepData$crea15, _currentStepData$Basi3, _currentStepData$Basi4, _currentStepData$Basi5, _currentStepData$Basi6, _currentStepData$Basi7, _currentStepData$Basi8, _currentStepData$Basi9, _formData$data, _currentStepData$crea16, _data$planDetail5, _data$planDetail5$pla, _data$planDetail5$pla2, _data$planDetail6, _data$planDetail6$blo, _data$planDetail6$blo2, _data$planDetail6$blo3, _data$planDetail6$blo4, _data$planDetail7, _data$planDetail7$pla, _data$planDetail8, _data$planDetail8$blo, _data$planDetail8$blo2, _data$planDetail8$blo3, _data$planDetail8$blo4, _approvedLicense$trad, _approvedLicense$trad2, _approvedLicense$trad3, _data$planDetail9, _data$planDetail9$pla, _data$planDetail9$pla2, _data$planDetail0, _data$planDetail0$blo, _data$planDetail0$blo2, _data$planDetail0$blo3, _data$planDetail0$blo4, _data$planDetail1, _data$planDetail1$pla, _data$planDetail10, _data$planDetail10$bl, _data$planDetail10$bl2, _data$planDetail10$bl3, _data$planDetail10$bl4, _approvedLicense$trad4, _approvedLicense$trad5, _approvedLicense$trad6, _currentStepData$Basi0, _userInfo$info5, _formData$data2, _formData$data3;
15813
15840
  if (!validate()) return;
15814
15841
  const userInfo = Digit.UserService.getUser();
15815
15842
  const applicationType = (data === null || data === void 0 ? void 0 : data.appliactionType) || "";
@@ -15823,10 +15850,10 @@ const PlotDetails = ({
15823
15850
  if (isSelfCertificationRequired === "undefined" || isSelfCertificationRequired === null) {
15824
15851
  isSelfCertificationRequired = "false";
15825
15852
  }
15826
- const stakeholderName = JSON.parse(sessionStorage.getItem("BPA_STAKEHOLDER_NAME")) || null;
15853
+ const stakeholderName = (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info3 = userInfo.info) === null || _userInfo$info3 === void 0 ? void 0 : _userInfo$info3.name) || null;
15827
15854
  const stakeholderRegistrationNumber = JSON.parse(sessionStorage.getItem("BPA_STAKEHOLDER_REGISTRATION_NUMBER")) || null;
15828
15855
  const stakeholderAddress = JSON.parse(sessionStorage.getItem("BPA_STAKEHOLDER_ADDRESS")) || null;
15829
- const architectMobileNumber = (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info3 = userInfo.info) === null || _userInfo$info3 === void 0 ? void 0 : _userInfo$info3.mobileNumber) || "";
15856
+ const architectMobileNumber = (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info4 = userInfo.info) === null || _userInfo$info4 === void 0 ? void 0 : _userInfo$info4.mobileNumber) || "";
15830
15857
  const propertyuid = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt12 = currentStepData.cpt) === null || _currentStepData$cpt12 === void 0 ? void 0 : (_currentStepData$cpt13 = _currentStepData$cpt12.details) === null || _currentStepData$cpt13 === void 0 ? void 0 : _currentStepData$cpt13.propertyId) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt14 = currentStepData.cpt) === null || _currentStepData$cpt14 === void 0 ? void 0 : _currentStepData$cpt14.id) || null;
15831
15858
  const address = {
15832
15859
  ...(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt15 = currentStepData.cpt) === null || _currentStepData$cpt15 === void 0 ? void 0 : (_currentStepData$cpt16 = _currentStepData$cpt15.details) === null || _currentStepData$cpt16 === void 0 ? void 0 : _currentStepData$cpt16.address),
@@ -15868,6 +15895,7 @@ const PlotDetails = ({
15868
15895
  materialused,
15869
15896
  materialusedinfloor,
15870
15897
  materialusedinroofs,
15898
+ estimatedCost,
15871
15899
  area: data === null || data === void 0 ? void 0 : (_data$planDetail5 = data.planDetail) === null || _data$planDetail5 === void 0 ? void 0 : (_data$planDetail5$pla = _data$planDetail5.planInformation) === null || _data$planDetail5$pla === void 0 ? void 0 : (_data$planDetail5$pla2 = _data$planDetail5$pla.plotArea) === null || _data$planDetail5$pla2 === void 0 ? void 0 : _data$planDetail5$pla2.toString(),
15872
15900
  height: data === null || data === void 0 ? void 0 : (_data$planDetail6 = data.planDetail) === null || _data$planDetail6 === void 0 ? void 0 : (_data$planDetail6$blo = _data$planDetail6.blocks) === null || _data$planDetail6$blo === void 0 ? void 0 : (_data$planDetail6$blo2 = _data$planDetail6$blo[0]) === null || _data$planDetail6$blo2 === void 0 ? void 0 : (_data$planDetail6$blo3 = _data$planDetail6$blo2.building) === null || _data$planDetail6$blo3 === void 0 ? void 0 : (_data$planDetail6$blo4 = _data$planDetail6$blo3.buildingHeight) === null || _data$planDetail6$blo4 === void 0 ? void 0 : _data$planDetail6$blo4.toString(),
15873
15901
  usage: data === null || data === void 0 ? void 0 : (_data$planDetail7 = data.planDetail) === null || _data$planDetail7 === void 0 ? void 0 : (_data$planDetail7$pla = _data$planDetail7.planInformation) === null || _data$planDetail7$pla === void 0 ? void 0 : _data$planDetail7$pla.occupancy,
@@ -15900,6 +15928,7 @@ const PlotDetails = ({
15900
15928
  materialused,
15901
15929
  materialusedinfloor,
15902
15930
  materialusedinroofs,
15931
+ estimatedCost,
15903
15932
  area: data === null || data === void 0 ? void 0 : (_data$planDetail9 = data.planDetail) === null || _data$planDetail9 === void 0 ? void 0 : (_data$planDetail9$pla = _data$planDetail9.planInformation) === null || _data$planDetail9$pla === void 0 ? void 0 : (_data$planDetail9$pla2 = _data$planDetail9$pla.plotArea) === null || _data$planDetail9$pla2 === void 0 ? void 0 : _data$planDetail9$pla2.toString(),
15904
15933
  height: data === null || data === void 0 ? void 0 : (_data$planDetail0 = data.planDetail) === null || _data$planDetail0 === void 0 ? void 0 : (_data$planDetail0$blo = _data$planDetail0.blocks) === null || _data$planDetail0$blo === void 0 ? void 0 : (_data$planDetail0$blo2 = _data$planDetail0$blo[0]) === null || _data$planDetail0$blo2 === void 0 ? void 0 : (_data$planDetail0$blo3 = _data$planDetail0$blo2.building) === null || _data$planDetail0$blo3 === void 0 ? void 0 : (_data$planDetail0$blo4 = _data$planDetail0$blo3.buildingHeight) === null || _data$planDetail0$blo4 === void 0 ? void 0 : _data$planDetail0$blo4.toString(),
15905
15934
  usage: data === null || data === void 0 ? void 0 : (_data$planDetail1 = data.planDetail) === null || _data$planDetail1 === void 0 ? void 0 : (_data$planDetail1$pla = _data$planDetail1.planInformation) === null || _data$planDetail1$pla === void 0 ? void 0 : _data$planDetail1$pla.occupancy,
@@ -15920,7 +15949,7 @@ const PlotDetails = ({
15920
15949
  };
15921
15950
  const edcrNumber = data === null || data === void 0 ? void 0 : data.edcrNumber;
15922
15951
  const riskType = currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi0 = currentStepData.BasicDetails) === null || _currentStepData$Basi0 === void 0 ? void 0 : _currentStepData$Basi0.riskType;
15923
- const accountId = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info4 = userInfo.info) === null || _userInfo$info4 === void 0 ? void 0 : _userInfo$info4.uuid;
15952
+ const accountId = userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info5 = userInfo.info) === null || _userInfo$info5 === void 0 ? void 0 : _userInfo$info5.uuid;
15924
15953
  const workflowAction = formData !== null && formData !== void 0 && (_formData$data2 = formData.data) !== null && _formData$data2 !== void 0 && _formData$data2.applicationNo ? "SAVE_AS_DRAFT" : "INITIATE";
15925
15954
  console.log("Submitting form:", {
15926
15955
  BPA: {
@@ -16082,7 +16111,7 @@ const PlotDetails = ({
16082
16111
  fontSize: "12px",
16083
16112
  color: "red"
16084
16113
  }
16085
- }, errors["isClubbedPlot"]), renderField(t("BPA_BOUNDARY_LAND_REG_DETAIL_LABEL") + "*", registrationDetails, setRegistrationDetails, "registrationDetails", "Enter Proposed Site Address ..."), renderField(t("BPA_BOUNDARY_WALL_LENGTH_LABEL_INPUT") + "*", boundaryWallLength, setBoundaryWallLength, "boundaryWallLength", "Enter boundary wall length (in meters)", data === null || data === void 0 ? void 0 : (_data$planDetail15 = data.planDetail) === null || _data$planDetail15 === void 0 ? void 0 : (_data$planDetail15$pl = _data$planDetail15.planInformation) === null || _data$planDetail15$pl === void 0 ? void 0 : _data$planDetail15$pl.plotBndryWallLength), renderField(t("BPA_WARD_NUMBER_LABEL") + "*", wardnumber, setWardNumber, "wardnumber", "Ward Number", currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt29 = currentStepData.cpt) === null || _currentStepData$cpt29 === void 0 ? void 0 : (_currentStepData$cpt30 = _currentStepData$cpt29.zonalMapping) === null || _currentStepData$cpt30 === void 0 ? void 0 : _currentStepData$cpt30.ward), renderField(t("BPA_ZONE_NUMBER_LABEL") + "*", zonenumber, setZoneNumber, "zonenumber", "Zone Number", currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt31 = currentStepData.cpt) === null || _currentStepData$cpt31 === void 0 ? void 0 : (_currentStepData$cpt32 = _currentStepData$cpt31.zonalMapping) === null || _currentStepData$cpt32 === void 0 ? void 0 : _currentStepData$cpt32.zone), renderField(t("BPA_KHASRA_NUMBER_LABEL") + "*", khasraNumber, setKhasraNumber, "khasraNumber", "Khasra Number", true), renderField(t("BPA_ARCHITECT_ID") + "*", architectid, setArchitectId, "architectid", "Architect ID", true), renderField(t("BPA_NUMBER_OF_BATHS") + "*", bathnumber, setBathNumber, "bathnumber", "Number of Bathrooms"), renderField(t("BPA_NUMBER_OF_KITCHENS") + "*", kitchenNumber, setKitchenNumber, "kitchenNumber", "Number of Kitchens"), renderField(t("BPA_APPROX_INHABITANTS_FOR_ACCOMODATION") + "*", approxinhabitants, setApproxInhabitants, "approxinhabitants", "Approximate inhabitants"), renderField(t("BPA_DISTANCE_FROM_SEWER") + "*", distancefromsewer, setDistanceFromSewer, "distancefromsewer", "Distance from sewer (in meters)"), renderField(t("BPA_SOURCE_OF_WATER") + "*", sourceofwater, setSourceOfWater, "sourceofwater", "Source of Water"), renderField(t("BPA_NUMBER_OF_WATER_CLOSETS") + "*", watercloset, setWaterCloset, "watercloset", "Water Closet"), renderField(t("BPA_MATERIAL_TO-BE_USED_IN_WALLS") + "*", materialused, setMaterialUsed, "materialused", "e.g. Cement, Bricks, etc"), renderField(t("BPA_MATERIAL_TO-BE_USED_IN_FLOOR") + "*", materialusedinfloor, setMaterialUsedInFloor, "materialusedinfloor", "e.g. Cement, Bricks, etc"), renderField(t("BPA_MATERIAL_TO-BE_USED_IN_ROOFS") + "*", materialusedinroofs, setMaterialUsedInRoofs, "materialusedinroofs", "e.g. Cement, Bricks, etc"), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
16114
+ }, errors["isClubbedPlot"]), renderField(t("BPA_BOUNDARY_LAND_REG_DETAIL_LABEL") + "*", registrationDetails, setRegistrationDetails, "registrationDetails", "Enter Proposed Site Address ..."), renderField(t("BPA_BOUNDARY_WALL_LENGTH_LABEL_INPUT") + "*", boundaryWallLength, setBoundaryWallLength, "boundaryWallLength", "Enter boundary wall length (in meters)", data === null || data === void 0 ? void 0 : (_data$planDetail15 = data.planDetail) === null || _data$planDetail15 === void 0 ? void 0 : (_data$planDetail15$pl = _data$planDetail15.planInformation) === null || _data$planDetail15$pl === void 0 ? void 0 : _data$planDetail15$pl.plotBndryWallLength), renderField(t("BPA_WARD_NUMBER_LABEL") + "*", wardnumber, setWardNumber, "wardnumber", "Ward Number", currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt29 = currentStepData.cpt) === null || _currentStepData$cpt29 === void 0 ? void 0 : (_currentStepData$cpt30 = _currentStepData$cpt29.zonalMapping) === null || _currentStepData$cpt30 === void 0 ? void 0 : _currentStepData$cpt30.ward), renderField(t("BPA_ZONE_NUMBER_LABEL") + "*", zonenumber, setZoneNumber, "zonenumber", "Zone Number", currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$cpt31 = currentStepData.cpt) === null || _currentStepData$cpt31 === void 0 ? void 0 : (_currentStepData$cpt32 = _currentStepData$cpt31.zonalMapping) === null || _currentStepData$cpt32 === void 0 ? void 0 : _currentStepData$cpt32.zone), renderField(t("BPA_KHASRA_NUMBER_LABEL") + "*", khasraNumber, setKhasraNumber, "khasraNumber", "Khasra Number", true), renderField(t("BPA_ARCHITECT_ID") + "*", architectid, setArchitectId, "architectid", "Architect ID", true), renderField(t("BPA_NUMBER_OF_BATHS") + "*", bathnumber, setBathNumber, "bathnumber", "Number of Bathrooms"), renderField(t("BPA_NUMBER_OF_KITCHENS") + "*", kitchenNumber, setKitchenNumber, "kitchenNumber", "Number of Kitchens"), renderField(t("BPA_APPROX_INHABITANTS_FOR_ACCOMODATION") + "*", approxinhabitants, setApproxInhabitants, "approxinhabitants", "Approximate inhabitants"), renderField(t("BPA_DISTANCE_FROM_SEWER") + "*", distancefromsewer, setDistanceFromSewer, "distancefromsewer", "Distance from sewer (in meters)"), renderField(t("BPA_SOURCE_OF_WATER") + "*", sourceofwater, setSourceOfWater, "sourceofwater", "Source of Water"), renderField(t("BPA_NUMBER_OF_WATER_CLOSETS") + "*", watercloset, setWaterCloset, "watercloset", "Water Closet"), renderField(t("BPA_MATERIAL_TO-BE_USED_IN_WALLS") + "*", materialused, setMaterialUsed, "materialused", "e.g. Cement, Bricks, etc"), renderField(t("BPA_MATERIAL_TO-BE_USED_IN_FLOOR") + "*", materialusedinfloor, setMaterialUsedInFloor, "materialusedinfloor", "e.g. Cement, Bricks, etc"), renderField(t("BPA_MATERIAL_TO-BE_USED_IN_ROOFS") + "*", materialusedinroofs, setMaterialUsedInRoofs, "materialusedinroofs", "e.g. Cement, Bricks, etc"), renderField(t("BPA_ESTIMATED_COST_LABEL") + "*", estimatedCost, setEstimatedCost, "estimatedCost", "Please Provide Estimated Cost"), /*#__PURE__*/React.createElement(ActionBar, null, /*#__PURE__*/React.createElement(SubmitBar, {
16086
16115
  label: "Back",
16087
16116
  style: {
16088
16117
  border: "1px solid",
@@ -16129,6 +16158,12 @@ const ScrutinyDetails = ({
16129
16158
  const isMobile = window.Digit.Utils.browser.isMobile();
16130
16159
  const [apiLoading, setApiLoading] = useState(false);
16131
16160
  console.log(subOccupancy, data, "OCCUPANCY");
16161
+ useEffect(() => {
16162
+ window.scrollTo({
16163
+ top: 0,
16164
+ behavior: "smooth"
16165
+ });
16166
+ }, []);
16132
16167
  useEffect(() => {
16133
16168
  var _currentStepData$Basi2;
16134
16169
  if (!isMdmsLoading && currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi2 = currentStepData.BasicDetails) !== null && _currentStepData$Basi2 !== void 0 && _currentStepData$Basi2.occupancyType) {
@@ -16462,15 +16497,7 @@ const ScrutinyDetails = ({
16462
16497
  routeTo(data === null || data === void 0 ? void 0 : data.planReport);
16463
16498
  }
16464
16499
  })
16465
- })), /*#__PURE__*/React.createElement("hr", {
16466
- style: {
16467
- color: "#cccccc",
16468
- backgroundColor: "#cccccc",
16469
- height: "2px",
16470
- marginTop: "20px",
16471
- marginBottom: "20px"
16472
- }
16473
- }), /*#__PURE__*/React.createElement(CardSubHeader, {
16500
+ })), /*#__PURE__*/React.createElement(CardSubHeader, {
16474
16501
  style: headingStyle
16475
16502
  }, checkingFlow === "OCBPA" ? t("BPA_ACTUAL_BUILDING_EXTRACT_HEADER") : t("BPA_BUILDING_EXTRACT_HEADER")), /*#__PURE__*/React.createElement(StatusTable, {
16476
16503
  style: {
@@ -16488,15 +16515,7 @@ const ScrutinyDetails = ({
16488
16515
  className: "border-none",
16489
16516
  label: t("BPA_HEIGHT_FROM_GROUND_BUILDING"),
16490
16517
  text: data !== null && data !== void 0 && (_data$planDetail4 = data.planDetail) !== null && _data$planDetail4 !== void 0 && (_data$planDetail4$blo = _data$planDetail4.blocks) !== null && _data$planDetail4$blo !== void 0 && (_data$planDetail4$blo2 = _data$planDetail4$blo[0]) !== null && _data$planDetail4$blo2 !== void 0 && (_data$planDetail4$blo3 = _data$planDetail4$blo2.building) !== null && _data$planDetail4$blo3 !== void 0 && _data$planDetail4$blo3.declaredBuildingHeight ? `${Number(data === null || data === void 0 ? void 0 : (_data$planDetail5 = data.planDetail) === null || _data$planDetail5 === void 0 ? void 0 : (_data$planDetail5$blo = _data$planDetail5.blocks) === null || _data$planDetail5$blo === void 0 ? void 0 : (_data$planDetail5$blo2 = _data$planDetail5$blo[0]) === null || _data$planDetail5$blo2 === void 0 ? void 0 : (_data$planDetail5$blo3 = _data$planDetail5$blo2.building) === null || _data$planDetail5$blo3 === void 0 ? void 0 : _data$planDetail5$blo3.declaredBuildingHeight).toFixed(2)} ${t("BPA_MTRS_LABEL")}` : t("NA")
16491
- })), /*#__PURE__*/React.createElement("hr", {
16492
- style: {
16493
- color: "#cccccc",
16494
- backgroundColor: "#cccccc",
16495
- height: "2px",
16496
- marginTop: "20px",
16497
- marginBottom: "20px"
16498
- }
16499
- }), /*#__PURE__*/React.createElement(CardSubHeader, {
16518
+ })), /*#__PURE__*/React.createElement(CardSubHeader, {
16500
16519
  style: headingStyle
16501
16520
  }, checkingFlow === "OCBPA" ? t("BPA_ACTUAL_BUILDING_FAR_ECS") : t("BPA_ACTUAL_BUILDING_FAR_ECS")), /*#__PURE__*/React.createElement(StatusTable, {
16502
16521
  style: {
@@ -16518,20 +16537,12 @@ const ScrutinyDetails = ({
16518
16537
  className: "border-none",
16519
16538
  label: t("BPA_ECS_PROVIDED"),
16520
16539
  text: (data === null || data === void 0 ? void 0 : (_data$planDetail1 = data.planDetail) === null || _data$planDetail1 === void 0 ? void 0 : (_data$planDetail1$rep = _data$planDetail1.reportOutput) === null || _data$planDetail1$rep === void 0 ? void 0 : (_data$planDetail1$rep2 = _data$planDetail1$rep.scrutinyDetails) === null || _data$planDetail1$rep2 === void 0 ? void 0 : (_data$planDetail1$rep3 = _data$planDetail1$rep2.find(item => (item === null || item === void 0 ? void 0 : item.key) === "Common_Parking")) === null || _data$planDetail1$rep3 === void 0 ? void 0 : (_data$planDetail1$rep4 = _data$planDetail1$rep3.detail) === null || _data$planDetail1$rep4 === void 0 ? void 0 : (_data$planDetail1$rep5 = _data$planDetail1$rep4.find(item => (item === null || item === void 0 ? void 0 : item.Description) === "Parking")) === null || _data$planDetail1$rep5 === void 0 ? void 0 : _data$planDetail1$rep5.Provided) || "NA"
16521
- })), /*#__PURE__*/React.createElement("hr", {
16522
- style: {
16523
- color: "#cccccc",
16524
- backgroundColor: "#cccccc",
16525
- height: "2px",
16526
- marginTop: "20px",
16527
- marginBottom: "20px"
16528
- }
16529
- }), /*#__PURE__*/React.createElement(CardSubHeader, {
16540
+ })), /*#__PURE__*/React.createElement(CardSubHeader, {
16530
16541
  style: headingStyle
16531
16542
  }, t("BPA_OCC_SUBOCC_HEADER")), data === null || data === void 0 ? void 0 : (_data$planDetail10 = data.planDetail) === null || _data$planDetail10 === void 0 ? void 0 : (_data$planDetail10$bl = _data$planDetail10.blocks) === null || _data$planDetail10$bl === void 0 ? void 0 : _data$planDetail10$bl.map((block, index) => /*#__PURE__*/React.createElement("div", {
16532
16543
  key: index,
16533
16544
  style: {
16534
- marginTop: "20px"
16545
+ marginTop: "5px"
16535
16546
  }
16536
16547
  }, /*#__PURE__*/React.createElement(CardSubHeader, {
16537
16548
  style: headingStyle
@@ -16562,15 +16573,7 @@ const ScrutinyDetails = ({
16562
16573
  style: {}
16563
16574
  };
16564
16575
  }
16565
- })))), /*#__PURE__*/React.createElement("hr", {
16566
- style: {
16567
- color: "#cccccc",
16568
- backgroundColor: "#cccccc",
16569
- height: "2px",
16570
- marginTop: "20px",
16571
- marginBottom: "20px"
16572
- }
16573
- }), /*#__PURE__*/React.createElement(CardSubHeader, {
16576
+ })))), /*#__PURE__*/React.createElement(CardSubHeader, {
16574
16577
  style: headingStyle
16575
16578
  }, t("BPA_APP_DETAILS_DEMOLITION_DETAILS_LABEL")), /*#__PURE__*/React.createElement(StatusTable, {
16576
16579
  style: {
@@ -16600,6 +16603,272 @@ const ScrutinyDetails = ({
16600
16603
  })));
16601
16604
  };
16602
16605
 
16606
+ const getRandomId = () => {
16607
+ return Math.floor((Math.random() || 1) * 139);
16608
+ };
16609
+ const getCitizenStyles = value => {
16610
+ let citizenStyles = {};
16611
+ if (value == "propertyCreate") {
16612
+ citizenStyles = {
16613
+ textStyles: {
16614
+ whiteSpace: "nowrap",
16615
+ width: "100%",
16616
+ overflow: "hidden",
16617
+ textOverflow: "ellipsis",
16618
+ width: "80%"
16619
+ },
16620
+ tagStyles: {
16621
+ width: "90%",
16622
+ flexWrap: "nowrap"
16623
+ },
16624
+ inputStyles: {
16625
+ width: "44%",
16626
+ minHeight: "2rem",
16627
+ maxHeight: "3rem",
16628
+ top: "20%"
16629
+ },
16630
+ buttonStyles: {
16631
+ height: "auto",
16632
+ minHeight: "2rem",
16633
+ width: "40%",
16634
+ maxHeight: "3rem"
16635
+ },
16636
+ tagContainerStyles: {
16637
+ width: "60%",
16638
+ display: "flex",
16639
+ marginTop: "0px"
16640
+ },
16641
+ closeIconStyles: {
16642
+ width: "20px"
16643
+ },
16644
+ containerStyles: {
16645
+ padding: "10px",
16646
+ marginTop: "0px"
16647
+ }
16648
+ };
16649
+ } else if (value == "IP") {
16650
+ citizenStyles = {
16651
+ textStyles: {
16652
+ whiteSpace: "nowrap",
16653
+ maxWidth: "250px",
16654
+ overflow: "hidden",
16655
+ textOverflow: "ellipsis"
16656
+ },
16657
+ tagStyles: {
16658
+ marginLeft: "-30px"
16659
+ },
16660
+ inputStyles: {},
16661
+ closeIconStyles: {
16662
+ position: "absolute",
16663
+ marginTop: "-12px"
16664
+ },
16665
+ buttonStyles: {},
16666
+ tagContainerStyles: {}
16667
+ };
16668
+ } else if (value == "OBPS") {
16669
+ citizenStyles = {
16670
+ containerStyles: {
16671
+ display: "flex",
16672
+ justifyContent: "flex-start",
16673
+ alignItems: "center",
16674
+ flexWrap: "wrap",
16675
+ margin: "0px",
16676
+ padding: "0px"
16677
+ },
16678
+ tagContainerStyles: {
16679
+ margin: "0px",
16680
+ display: "flex",
16681
+ justifyContent: "center",
16682
+ padding: "0px",
16683
+ width: "46%"
16684
+ },
16685
+ tagStyles: {
16686
+ height: "auto",
16687
+ padding: "5px",
16688
+ margin: 0,
16689
+ width: "100%",
16690
+ margin: "5px"
16691
+ },
16692
+ textStyles: {
16693
+ wordBreak: "break-word",
16694
+ height: "auto",
16695
+ lineHeight: "16px",
16696
+ overflow: "hidden",
16697
+ maxHeight: "34px"
16698
+ },
16699
+ inputStyles: {
16700
+ width: "43%",
16701
+ minHeight: "42px",
16702
+ maxHeight: "42px",
16703
+ top: "5px",
16704
+ left: "5px"
16705
+ },
16706
+ buttonStyles: {
16707
+ height: "auto",
16708
+ minHeight: "40px",
16709
+ width: "43%",
16710
+ maxHeight: "40px",
16711
+ margin: "5px",
16712
+ padding: "0px"
16713
+ },
16714
+ closeIconStyles: {
16715
+ width: "20px"
16716
+ },
16717
+ uploadFile: {
16718
+ minHeight: "50px"
16719
+ }
16720
+ };
16721
+ } else {
16722
+ citizenStyles = {
16723
+ textStyles: {},
16724
+ tagStyles: {},
16725
+ inputStyles: {},
16726
+ buttonStyles: {},
16727
+ tagContainerStyles: {}
16728
+ };
16729
+ }
16730
+ return citizenStyles;
16731
+ };
16732
+ const CustomUploadFile = props => {
16733
+ var _inpRef$current, _extraStyles, _extraStyles2, _extraStyles3, _extraStyles4, _props$uploadedFiles, _extraStyles6, _extraStyles7;
16734
+ const {
16735
+ t
16736
+ } = useTranslation();
16737
+ const inpRef = useRef();
16738
+ const [hasFile, setHasFile] = useState(false);
16739
+ const [prevSate, setprevSate] = useState(null);
16740
+ const user_type = Digit.SessionStorage.get("userType");
16741
+ let extraStyles = {};
16742
+ const handleChange = () => {
16743
+ if (inpRef.current.files[0]) {
16744
+ setHasFile(true);
16745
+ setprevSate(inpRef.current.files[0]);
16746
+ } else setHasFile(false);
16747
+ };
16748
+ const stateCode = Digit.ULBService.getStateId();
16749
+ extraStyles = getCitizenStyles("OBPS");
16750
+ const handleDelete = () => {
16751
+ inpRef.current.value = "";
16752
+ props.onDelete();
16753
+ };
16754
+ const handleEmpty = () => {
16755
+ if (inpRef.current.files.length <= 0 && prevSate !== null) {
16756
+ inpRef.current.value = "";
16757
+ props.onDelete();
16758
+ }
16759
+ };
16760
+ if (props.uploadMessage && inpRef.current.value) {
16761
+ handleDelete();
16762
+ setHasFile(false);
16763
+ }
16764
+ useEffect(() => handleEmpty(), [inpRef === null || inpRef === void 0 ? void 0 : (_inpRef$current = inpRef.current) === null || _inpRef$current === void 0 ? void 0 : _inpRef$current.files]);
16765
+ useEffect(() => handleChange(), [props.message]);
16766
+ function routeTo(filestoreId) {
16767
+ getUrlForDocumentView(filestoreId);
16768
+ }
16769
+ const getUrlForDocumentView = async filestoreId => {
16770
+ if ((filestoreId === null || filestoreId === void 0 ? void 0 : filestoreId.length) === 0) return;
16771
+ try {
16772
+ const result = await Digit.UploadServices.Filefetch([filestoreId], stateCode);
16773
+ if (result !== null && result !== void 0 && result.data) {
16774
+ const fileUrl = result.data[filestoreId];
16775
+ if (fileUrl) {
16776
+ window.open(fileUrl, "_blank");
16777
+ } else {
16778
+ if (props !== null && props !== void 0 && props.setError) {
16779
+ props === null || props === void 0 ? void 0 : props.setError(t("CS_FILE_FETCH_ERROR"));
16780
+ } else {
16781
+ console.error(t("CS_FILE_FETCH_ERROR"));
16782
+ }
16783
+ }
16784
+ } else {
16785
+ if (props !== null && props !== void 0 && props.setError) {
16786
+ props === null || props === void 0 ? void 0 : props.setError(t("CS_FILE_FETCH_ERROR"));
16787
+ } else {
16788
+ console.error(t("CS_FILE_FETCH_ERROR"));
16789
+ }
16790
+ }
16791
+ } catch (e) {
16792
+ if (props !== null && props !== void 0 && props.setError) {
16793
+ props === null || props === void 0 ? void 0 : props.setError(t("CS_FILE_FETCH_ERROR"));
16794
+ } else {
16795
+ console.error(t("CS_FILE_FETCH_ERROR"));
16796
+ }
16797
+ }
16798
+ };
16799
+ const showHint = (props === null || props === void 0 ? void 0 : props.showHint) || false;
16800
+ console.log("customFileUpload", props);
16801
+ return /*#__PURE__*/React.createElement(Fragment, null, showHint && /*#__PURE__*/React.createElement("p", {
16802
+ className: "cell-text"
16803
+ }, t(props === null || props === void 0 ? void 0 : props.hintText)), /*#__PURE__*/React.createElement("div", {
16804
+ className: `upload-file ${user_type === "employee" ? "" : "upload-file-max-width"} ${props.disabled ? " disabled" : ""}`,
16805
+ style: (_extraStyles = extraStyles) !== null && _extraStyles !== void 0 && _extraStyles.uploadFile ? (_extraStyles2 = extraStyles) === null || _extraStyles2 === void 0 ? void 0 : _extraStyles2.uploadFile : {}
16806
+ }, /*#__PURE__*/React.createElement("div", {
16807
+ style: extraStyles ? (_extraStyles3 = extraStyles) === null || _extraStyles3 === void 0 ? void 0 : _extraStyles3.containerStyles : null
16808
+ }, /*#__PURE__*/React.createElement(ButtonSelector, {
16809
+ theme: "border",
16810
+ label: t("CS_COMMON_CHOOSE_FILE"),
16811
+ style: {
16812
+ ...(extraStyles ? (_extraStyles4 = extraStyles) === null || _extraStyles4 === void 0 ? void 0 : _extraStyles4.buttonStyles : {}),
16813
+ ...(props.disabled ? {
16814
+ display: "none"
16815
+ } : {})
16816
+ },
16817
+ textStyles: props === null || props === void 0 ? void 0 : props.textStyles,
16818
+ type: props.buttonType
16819
+ }), props === null || props === void 0 ? void 0 : (_props$uploadedFiles = props.uploadedFiles) === null || _props$uploadedFiles === void 0 ? void 0 : _props$uploadedFiles.map((file, index) => {
16820
+ var _extraStyles5;
16821
+ const fileDetailsData = file[1];
16822
+ return /*#__PURE__*/React.createElement("div", {
16823
+ className: "tag-container",
16824
+ style: extraStyles ? (_extraStyles5 = extraStyles) === null || _extraStyles5 === void 0 ? void 0 : _extraStyles5.tagContainerStyles : null
16825
+ }, /*#__PURE__*/React.createElement(RemoveableTag, {
16826
+ extraStyles: extraStyles,
16827
+ key: index,
16828
+ text: file[0],
16829
+ onClick: e => props === null || props === void 0 ? void 0 : props.removeTargetedFile(fileDetailsData, e)
16830
+ }));
16831
+ }), !props.uploadedFile || props.error ? /*#__PURE__*/React.createElement("h2", {
16832
+ className: "file-upload-status"
16833
+ }, t("ES_NO_FILE_SELECTED_LABEL")) : /*#__PURE__*/React.createElement("div", {
16834
+ className: "tag-container",
16835
+ style: extraStyles ? (_extraStyles6 = extraStyles) === null || _extraStyles6 === void 0 ? void 0 : _extraStyles6.tagContainerStyles : null
16836
+ }, /*#__PURE__*/React.createElement(SubmitBar, {
16837
+ onSubmit: () => {
16838
+ routeTo(props.uploadedFile);
16839
+ },
16840
+ label: t("CS_VIEW_DOCUMENT")
16841
+ }))), /*#__PURE__*/React.createElement("input", {
16842
+ className: props.disabled ? "disabled" : "" + "input-mirror-selector-button",
16843
+ style: extraStyles ? {
16844
+ ...((_extraStyles7 = extraStyles) === null || _extraStyles7 === void 0 ? void 0 : _extraStyles7.inputStyles),
16845
+ ...(props === null || props === void 0 ? void 0 : props.inputStyles)
16846
+ } : {
16847
+ ...(props === null || props === void 0 ? void 0 : props.inputStyles)
16848
+ },
16849
+ ref: inpRef,
16850
+ type: "file",
16851
+ id: props.id || `document-${getRandomId()}`,
16852
+ name: "file",
16853
+ multiple: props.multiple,
16854
+ accept: props.accept,
16855
+ disabled: props.disabled,
16856
+ onChange: e => props.onUpload(e),
16857
+ onClick: event => {
16858
+ const {
16859
+ target = {}
16860
+ } = event || {};
16861
+ target.value = "";
16862
+ }
16863
+ })), props.iserror && /*#__PURE__*/React.createElement("p", {
16864
+ style: {
16865
+ color: "red"
16866
+ }
16867
+ }, props.iserror), (props === null || props === void 0 ? void 0 : props.showHintBelow) && /*#__PURE__*/React.createElement("p", {
16868
+ className: "cell-text"
16869
+ }, t(props === null || props === void 0 ? void 0 : props.hintText)));
16870
+ };
16871
+
16603
16872
  const BPANewBuildingdetails = ({
16604
16873
  t,
16605
16874
  config,
@@ -16679,6 +16948,12 @@ const BPANewBuildingdetails = ({
16679
16948
  const [ecbcCertificateFile, setEcbcCertificateFile] = useState((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea41 = currentStepData.createdResponse) === null || _currentStepData$crea41 === void 0 ? void 0 : (_currentStepData$crea42 = _currentStepData$crea41.additionalDetails) === null || _currentStepData$crea42 === void 0 ? void 0 : _currentStepData$crea42.ecbcCertificateFile) || null);
16680
16949
  const [ecbcCertificateFileObj, setEcbcCertificateFileObj] = useState(null);
16681
16950
  const [apiLoading, setApiLoading] = useState(false);
16951
+ useEffect(() => {
16952
+ window.scrollTo({
16953
+ top: 0,
16954
+ behavior: "smooth"
16955
+ });
16956
+ }, []);
16682
16957
  useEffect(() => {
16683
16958
  var _currentStepData$Loca0, _currentStepData$Loca1, _currentStepData$Loca10, _currentStepData$Loca14, _currentStepData$Loca15, _currentStepData$Loca16, _currentStepData$Loca20, _currentStepData$Loca21, _currentStepData$Loca22;
16684
16959
  if (UlbName === "" && currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Loca0 = currentStepData.LocationDetails) !== null && _currentStepData$Loca0 !== void 0 && (_currentStepData$Loca1 = _currentStepData$Loca0.selectedCity) !== null && _currentStepData$Loca1 !== void 0 && (_currentStepData$Loca10 = _currentStepData$Loca1.city) !== null && _currentStepData$Loca10 !== void 0 && _currentStepData$Loca10.name) {
@@ -17467,13 +17742,14 @@ const BPANewBuildingdetails = ({
17467
17742
  style: {
17468
17743
  marginBottom: "15px"
17469
17744
  }
17470
- }, /*#__PURE__*/React.createElement(UploadFile, {
17745
+ }, /*#__PURE__*/React.createElement(CustomUploadFile, {
17471
17746
  id: "noc-doc",
17472
17747
  onUpload: selectfile,
17473
17748
  onDelete: () => {
17474
17749
  setUploadedFile(null);
17475
17750
  setFile("");
17476
17751
  },
17752
+ uploadedFile: uploadedFile,
17477
17753
  message: uploadedFile ? `1 ${t(`FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
17478
17754
  error: errors.file
17479
17755
  }), errors.NocNumber && /*#__PURE__*/React.createElement(ErrorMessage, {
@@ -17543,13 +17819,14 @@ const BPANewBuildingdetails = ({
17543
17819
  })
17544
17820
  }), /*#__PURE__*/React.createElement(ErrorMessage, {
17545
17821
  error: errors.greenbuilding
17546
- }), (greenbuilding === null || greenbuilding === void 0 ? void 0 : greenbuilding.code) === "YES" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(UploadFile, {
17822
+ }), (greenbuilding === null || greenbuilding === void 0 ? void 0 : greenbuilding.code) === "YES" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CustomUploadFile, {
17547
17823
  id: "green-building-doc",
17548
17824
  onUpload: selectfiles,
17549
17825
  onDelete: () => {
17550
17826
  setGreenUploadedFile(null);
17551
17827
  setFiles("");
17552
17828
  },
17829
+ uploadedFile: greenuploadedFile,
17553
17830
  message: greenuploadedFile ? `1 ${t(`FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`),
17554
17831
  error: errors.files
17555
17832
  }), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_SELECT_RATINGS")} *`), /*#__PURE__*/React.createElement(Controller, {
@@ -17638,7 +17915,7 @@ const BPANewBuildingdetails = ({
17638
17915
  error: errors.ecbcAirConditioned
17639
17916
  }), ((ecbcElectricalLoad === null || ecbcElectricalLoad === void 0 ? void 0 : ecbcElectricalLoad.code) === "YES" || (ecbcDemandLoad === null || ecbcDemandLoad === void 0 ? void 0 : ecbcDemandLoad.code) === "YES" || (ecbcAirConditioned === null || ecbcAirConditioned === void 0 ? void 0 : ecbcAirConditioned.code) === "YES") && /*#__PURE__*/React.createElement("div", {
17640
17917
  className: "field"
17641
- }, /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_UPLOAD_ECBC_DOCUMENT")} *`), /*#__PURE__*/React.createElement(UploadFile, {
17918
+ }, /*#__PURE__*/React.createElement(CardLabel, null, `${t("BPA_UPLOAD_ECBC_DOCUMENT")} *`), /*#__PURE__*/React.createElement(CustomUploadFile, {
17642
17919
  id: "ecbc-certificate",
17643
17920
  accept: ".pdf,.jpg,.png",
17644
17921
  onUpload: selectEcbcCertificateFile,
@@ -17646,6 +17923,7 @@ const BPANewBuildingdetails = ({
17646
17923
  setEcbcCertificateFile(null);
17647
17924
  setEcbcCertificateFileObj(null);
17648
17925
  },
17926
+ uploadedFile: ecbcCertificateFile,
17649
17927
  message: ecbcCertificateFile ? `1 ${t(`FILEUPLOADED`)}` : t(`ES_NO_FILE_SELECTED_LABEL`)
17650
17928
  }), errors.ecbcCertificateFile && /*#__PURE__*/React.createElement("p", {
17651
17929
  className: "error",
@@ -17690,7 +17968,7 @@ const OwnerDetails = ({
17690
17968
  onGoBack
17691
17969
  }) => {
17692
17970
  var _ownershipCategory$co, _formData$owners6, _formData$owners6$own, _currentStepData$crea0, _currentStepData$crea1;
17693
- console.log("formdatatstd", formData);
17971
+ console.log("formdatatstd", currentStepData);
17694
17972
  let validation = {};
17695
17973
  sessionStorage.removeItem("currentPincode");
17696
17974
  const isedittrade = window.location.href.includes("edit-application");
@@ -17946,6 +18224,10 @@ const OwnerDetails = ({
17946
18224
  }
17947
18225
  }, [genderList]);
17948
18226
  useEffect(() => {
18227
+ window.scrollTo({
18228
+ top: 0,
18229
+ behavior: "smooth"
18230
+ });
17949
18231
  try {
17950
18232
  var _parsed$value, _parsed$value$data, _parsed$data;
17951
18233
  const raw = sessionStorage.getItem("Digit.BUILDING_PERMIT");
@@ -18280,7 +18562,7 @@ const OwnerDetails = ({
18280
18562
  isValid = false;
18281
18563
  }
18282
18564
  owners.forEach((owner, index) => {
18283
- var _owner$gender, _owner$additionalDeta, _owner$additionalDeta2;
18565
+ var _owner$name, _currentStepData$Basi, _currentStepData$Basi2, _currentStepData$Basi3, _currentStepData$Basi4, _currentStepData$Basi5, _owner$gender, _owner$additionalDeta, _owner$additionalDeta2;
18284
18566
  if (!(owner !== null && owner !== void 0 && owner.mobileNumber)) {
18285
18567
  newErrors[`mobileNumber_${index}`] = t("Mobile number is required");
18286
18568
  isValid = false;
@@ -18289,6 +18571,10 @@ const OwnerDetails = ({
18289
18571
  newErrors[`name_${index}`] = t("Name is required");
18290
18572
  isValid = false;
18291
18573
  }
18574
+ if (owner !== null && owner !== void 0 && owner.isPrimaryOwner && owner !== null && owner !== void 0 && owner.name && !((owner === null || owner === void 0 ? void 0 : (_owner$name = owner.name) === null || _owner$name === void 0 ? void 0 : _owner$name.trim()) === (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi = currentStepData.BasicDetails) === null || _currentStepData$Basi === void 0 ? void 0 : (_currentStepData$Basi2 = _currentStepData$Basi.edcrDetails) === null || _currentStepData$Basi2 === void 0 ? void 0 : (_currentStepData$Basi3 = _currentStepData$Basi2.planDetail) === null || _currentStepData$Basi3 === void 0 ? void 0 : (_currentStepData$Basi4 = _currentStepData$Basi3.edcrRequest) === null || _currentStepData$Basi4 === void 0 ? void 0 : (_currentStepData$Basi5 = _currentStepData$Basi4.applicantName) === null || _currentStepData$Basi5 === void 0 ? void 0 : _currentStepData$Basi5.trim()))) {
18575
+ newErrors[`name_${index}`] = t("PRIMARY_OWNER_APPLICANT_NAME_VALIDATION_MESSAGE");
18576
+ isValid = false;
18577
+ }
18292
18578
  if (!(owner !== null && owner !== void 0 && (_owner$gender = owner.gender) !== null && _owner$gender !== void 0 && _owner$gender.code)) {
18293
18579
  newErrors[`gender_${index}`] = t("Gender is required");
18294
18580
  isValid = false;
@@ -18400,27 +18686,6 @@ const OwnerDetails = ({
18400
18686
  }));
18401
18687
  if (flag == 0) return false;else return true;
18402
18688
  }
18403
- function routeTo(filestoreId) {
18404
- getUrlForDocumentView(filestoreId);
18405
- }
18406
- const getUrlForDocumentView = async filestoreId => {
18407
- if ((filestoreId === null || filestoreId === void 0 ? void 0 : filestoreId.length) === 0) return;
18408
- try {
18409
- const result = await Digit.UploadServices.Filefetch([filestoreId], stateId);
18410
- if (result !== null && result !== void 0 && result.data) {
18411
- const fileUrl = result.data[filestoreId];
18412
- if (fileUrl) {
18413
- window.open(fileUrl, "_blank");
18414
- } else {
18415
- setError(t("CS_FILE_FETCH_ERROR"));
18416
- }
18417
- } else {
18418
- setError(t("CS_FILE_FETCH_ERROR"));
18419
- }
18420
- } catch (e) {
18421
- setError(t("CS_FILE_FETCH_ERROR"));
18422
- }
18423
- };
18424
18689
  if (apiLoading) return /*#__PURE__*/React.createElement(Loader, null);
18425
18690
  return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(FormStep, {
18426
18691
  config: {
@@ -18448,7 +18713,7 @@ const OwnerDetails = ({
18448
18713
  labelKey: "PT_OWNERSHIP",
18449
18714
  isDependent: true
18450
18715
  })), fields.map((field, index) => {
18451
- var _fields$index, _fields$index$additio, _fields$index2, _fields$index2$additi, _fields$index4, _fields$index4$additi, _fields$index5, _fields$index5$additi;
18716
+ var _fields$index, _fields$index$additio, _fields$index2, _fields$index2$additi, _fields$index3, _fields$index3$additi, _fields$index4, _fields$index4$additi;
18452
18717
  return /*#__PURE__*/React.createElement("div", {
18453
18718
  key: `${field}-${index}`
18454
18719
  }, /*#__PURE__*/React.createElement("div", {
@@ -18580,7 +18845,7 @@ const OwnerDetails = ({
18580
18845
  flexDirection: Webview ? "row" : "column",
18581
18846
  gap: "15px"
18582
18847
  }
18583
- }, /*#__PURE__*/React.createElement(UploadFile, {
18848
+ }, /*#__PURE__*/React.createElement(CustomUploadFile, {
18584
18849
  id: `document-upload-${index}`,
18585
18850
  onUpload: selectDocumentFile(index),
18586
18851
  onDelete: () => {
@@ -18594,17 +18859,12 @@ const OwnerDetails = ({
18594
18859
  [`documentFile_${index}`]: "Document upload is required"
18595
18860
  }));
18596
18861
  },
18597
- message: fields !== null && fields !== void 0 && (_fields$index = fields[index]) !== null && _fields$index !== void 0 && (_fields$index$additio = _fields$index.additionalDetails) !== null && _fields$index$additio !== void 0 && _fields$index$additio.documentFile || documentUploadedFiles[index] ? `1 ${t("FILEUPLOADED")}` : t("ES_NO_FILE_SELECTED_LABEL"),
18862
+ uploadedFile: (fields === null || fields === void 0 ? void 0 : (_fields$index = fields[index]) === null || _fields$index === void 0 ? void 0 : (_fields$index$additio = _fields$index.additionalDetails) === null || _fields$index$additio === void 0 ? void 0 : _fields$index$additio.documentFile) || documentUploadedFiles[index],
18863
+ message: fields !== null && fields !== void 0 && (_fields$index2 = fields[index]) !== null && _fields$index2 !== void 0 && (_fields$index2$additi = _fields$index2.additionalDetails) !== null && _fields$index2$additi !== void 0 && _fields$index2$additi.documentFile || documentUploadedFiles[index] ? `1 ${t("FILEUPLOADED")}` : t("ES_NO_FILE_SELECTED_LABEL"),
18598
18864
  error: errors[`documentFile_${index}`],
18599
18865
  uploadMessage: "",
18600
18866
  accept: ".pdf"
18601
- }), fields !== null && fields !== void 0 && (_fields$index2 = fields[index]) !== null && _fields$index2 !== void 0 && (_fields$index2$additi = _fields$index2.additionalDetails) !== null && _fields$index2$additi !== void 0 && _fields$index2$additi.documentFile ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SubmitBar, {
18602
- onSubmit: () => {
18603
- var _fields$index3, _fields$index3$additi;
18604
- routeTo(fields === null || fields === void 0 ? void 0 : (_fields$index3 = fields[index]) === null || _fields$index3 === void 0 ? void 0 : (_fields$index3$additi = _fields$index3.additionalDetails) === null || _fields$index3$additi === void 0 ? void 0 : _fields$index3$additi.documentFile);
18605
- },
18606
- label: t("CS_VIEW_DOCUMENT")
18607
- })) : null), /*#__PURE__*/React.createElement(ErrorMessage, {
18867
+ })), /*#__PURE__*/React.createElement(ErrorMessage, {
18608
18868
  message: errors[`documentFile_${index}`]
18609
18869
  }), /*#__PURE__*/React.createElement(CardLabel, {
18610
18870
  style: {
@@ -18616,7 +18876,7 @@ const OwnerDetails = ({
18616
18876
  flexDirection: Webview ? "row" : "column",
18617
18877
  gap: "15px"
18618
18878
  }
18619
- }, /*#__PURE__*/React.createElement(UploadFile, {
18879
+ }, /*#__PURE__*/React.createElement(CustomUploadFile, {
18620
18880
  id: `photo-upload-${index}`,
18621
18881
  onUpload: selectPhotoFile(index),
18622
18882
  onDelete: () => {
@@ -18630,17 +18890,12 @@ const OwnerDetails = ({
18630
18890
  [`ownerPhoto_${index}`]: "Owner photo is required"
18631
18891
  }));
18632
18892
  },
18893
+ uploadedFile: (fields === null || fields === void 0 ? void 0 : (_fields$index3 = fields[index]) === null || _fields$index3 === void 0 ? void 0 : (_fields$index3$additi = _fields$index3.additionalDetails) === null || _fields$index3$additi === void 0 ? void 0 : _fields$index3$additi.ownerPhoto) || photoUploadedFiles[index],
18633
18894
  message: fields !== null && fields !== void 0 && (_fields$index4 = fields[index]) !== null && _fields$index4 !== void 0 && (_fields$index4$additi = _fields$index4.additionalDetails) !== null && _fields$index4$additi !== void 0 && _fields$index4$additi.ownerPhoto || photoUploadedFiles[index] ? `1 ${t("FILEUPLOADED")}` : t("ES_NO_FILE_SELECTED_LABEL"),
18634
18895
  error: errors[`ownerPhoto_${index}`],
18635
18896
  uploadMessage: "",
18636
18897
  accept: "image/*"
18637
- }), fields !== null && fields !== void 0 && (_fields$index5 = fields[index]) !== null && _fields$index5 !== void 0 && (_fields$index5$additi = _fields$index5.additionalDetails) !== null && _fields$index5$additi !== void 0 && _fields$index5$additi.ownerPhoto ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SubmitBar, {
18638
- onSubmit: () => {
18639
- var _fields$index6, _fields$index6$additi;
18640
- routeTo(fields === null || fields === void 0 ? void 0 : (_fields$index6 = fields[index]) === null || _fields$index6 === void 0 ? void 0 : (_fields$index6$additi = _fields$index6.additionalDetails) === null || _fields$index6$additi === void 0 ? void 0 : _fields$index6$additi.ownerPhoto);
18641
- },
18642
- label: t("CS_VIEW_DOCUMENT")
18643
- })) : null), /*#__PURE__*/React.createElement(ErrorMessage, {
18898
+ })), /*#__PURE__*/React.createElement(ErrorMessage, {
18644
18899
  message: errors[`ownerPhoto_${index}`]
18645
18900
  }), /*#__PURE__*/React.createElement(CardLabel, {
18646
18901
  style: {
@@ -18672,7 +18927,7 @@ const OwnerDetails = ({
18672
18927
  pattern: "^[a-zA-Z ]*$",
18673
18928
  type: "text",
18674
18929
  title: "Invalid name format"
18675
- })), field.authorizedPerson && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("Authorization Letter (PDF, Max 5MB)")}`), /*#__PURE__*/React.createElement(UploadFile, {
18930
+ })), field.authorizedPerson && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardLabel, null, `${t("Authorization Letter (PDF, Max 5MB)")}`), /*#__PURE__*/React.createElement(CustomUploadFile, {
18676
18931
  id: `auth-letter-${index}`,
18677
18932
  onUpload: selectAuthLetterFile(index),
18678
18933
  onDelete: () => {
@@ -18688,6 +18943,7 @@ const OwnerDetails = ({
18688
18943
  }));
18689
18944
  }
18690
18945
  },
18946
+ uploadedFile: authLetterUploadedFiles[index],
18691
18947
  message: authLetterUploadedFiles[index] ? `1 ${t("FILEUPLOADED")}` : t("ES_NO_FILE_SELECTED_LABEL"),
18692
18948
  uploadMessage: "",
18693
18949
  accept: ".pdf"
@@ -19025,6 +19281,12 @@ const DocumentDetails = ({
19025
19281
  };
19026
19282
  const onSkip = () => onSelect();
19027
19283
  function onAdd() {}
19284
+ useEffect(() => {
19285
+ window.scrollTo({
19286
+ top: 0,
19287
+ behavior: "smooth"
19288
+ });
19289
+ }, []);
19028
19290
  useEffect(() => {
19029
19291
  const allRequiredDocumentsCode = bpaTaxDocuments.filter(e => e.required).map(e => e.code);
19030
19292
  const reqDocumentEntered = allRequiredDocumentsCode.filter(reqCode => documents.reduce((acc, doc) => {
@@ -19181,27 +19443,6 @@ function SelectDocument({
19181
19443
  }
19182
19444
  })();
19183
19445
  }, [file]);
19184
- function routeTo(filestoreId) {
19185
- getUrlForDocumentView(filestoreId);
19186
- }
19187
- const getUrlForDocumentView = async filestoreId => {
19188
- if ((filestoreId === null || filestoreId === void 0 ? void 0 : filestoreId.length) === 0) return;
19189
- try {
19190
- const result = await Digit.UploadServices.Filefetch([filestoreId], stateId);
19191
- if (result !== null && result !== void 0 && result.data) {
19192
- const fileUrl = result.data[filestoreId];
19193
- if (fileUrl) {
19194
- window.open(fileUrl, "_blank");
19195
- } else {
19196
- setError(t("CS_FILE_FETCH_ERROR"));
19197
- }
19198
- } else {
19199
- setError(t("CS_FILE_FETCH_ERROR"));
19200
- }
19201
- } catch (e) {
19202
- setError(t("CS_FILE_FETCH_ERROR"));
19203
- }
19204
- };
19205
19446
  return /*#__PURE__*/React.createElement("div", {
19206
19447
  style: {
19207
19448
  marginBottom: "24px"
@@ -19218,23 +19459,19 @@ function SelectDocument({
19218
19459
  flexDirection: "column",
19219
19460
  gap: "10px"
19220
19461
  }
19221
- }, /*#__PURE__*/React.createElement(UploadFile, {
19462
+ }, /*#__PURE__*/React.createElement(CustomUploadFile, {
19222
19463
  id: "tl-doc",
19223
19464
  onUpload: selectfile,
19224
19465
  onDelete: () => {
19225
19466
  setUploadedFile(null);
19226
19467
  },
19468
+ uploadedFile: uploadedFile,
19227
19469
  message: uploadedFile ? `1 ${t(`CS_ACTION_FILEUPLOADED`)}` : t(`CS_ACTION_NO_FILEUPLOADED`),
19228
19470
  textStyles: {
19229
19471
  width: "100%"
19230
19472
  },
19231
19473
  accept: "image/*,.pdf"
19232
- }), uploadedFile ? /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(SubmitBar, {
19233
- onSubmit: () => {
19234
- routeTo(uploadedFile);
19235
- },
19236
- label: t("CS_VIEW_DOCUMENT")
19237
- })) : null)));
19474
+ }))));
19238
19475
  }
19239
19476
 
19240
19477
  const NOCDetails = ({
@@ -19765,6 +20002,12 @@ const LocationDetails = ({
19765
20002
  }
19766
20003
  console.log("formData in location page", selectedCity, currentStepData, allCities);
19767
20004
  const isMobile = window.Digit.Utils.browser.isMobile();
20005
+ useEffect(() => {
20006
+ window.scrollTo({
20007
+ top: 0,
20008
+ behavior: "smooth"
20009
+ });
20010
+ }, []);
19768
20011
  useEffect(() => {
19769
20012
  if (typeof selectedCity === "string") {
19770
20013
  if (selectedCity !== null && selectedCity !== void 0 && selectedCity.includes("pb.")) {
@@ -20078,7 +20321,8 @@ const LocationDetails = ({
20078
20321
  const sectionStyle = {
20079
20322
  backgroundColor: "#ffffff",
20080
20323
  borderRadius: "8px",
20081
- boxShadow: "0 2px 4px rgba(0, 0, 0, 0.05)"
20324
+ boxShadow: "0 2px 4px rgba(0, 0, 0, 0.05)",
20325
+ maxHeight: "130px"
20082
20326
  };
20083
20327
  const headingStyle = {
20084
20328
  fontSize: "1.5rem",
@@ -20160,7 +20404,11 @@ const LocationDetails = ({
20160
20404
  labelKey: `${stringReplaceAll(selectedCity === null || selectedCity === void 0 ? void 0 : selectedCity.code, ".", "_").toUpperCase()}_REVENUE`,
20161
20405
  disabled: propertyData !== null && propertyData !== void 0 && propertyData.address ? true : false
20162
20406
  }))), /*#__PURE__*/React.createElement("div", {
20163
- style: sectionStyle
20407
+ style: {
20408
+ backgroundColor: "#ffffff",
20409
+ borderRadius: "8px",
20410
+ boxShadow: "0 2px 4px rgba(0, 0, 0, 0.05)"
20411
+ }
20164
20412
  }, /*#__PURE__*/React.createElement("h2", {
20165
20413
  style: headingStyle
20166
20414
  }, t("BPA_LOC_SITE_PHOTOGRAPH")), /*#__PURE__*/React.createElement(UploadFile, {
@@ -20288,7 +20536,7 @@ const StakeholderDocsRequired = ({
20288
20536
  info: t("CS_FILE_APPLICATION_INFO_LABEL"),
20289
20537
  text: t(`OBPS_DOCS_FILE_SIZE`),
20290
20538
  className: "info-banner-wrap-citizen-override"
20291
- }), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardText, {
20539
+ }), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardText$1, {
20292
20540
  style: {
20293
20541
  color: "#0B0C0C",
20294
20542
  marginTop: "12px",
@@ -20351,7 +20599,7 @@ const OCEDCRDocsRequired = ({
20351
20599
  const goNext = () => {
20352
20600
  onSelect();
20353
20601
  };
20354
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`BPA_OC_NEW_BUILDING_CONSTRUCTION_LABEL`)), /*#__PURE__*/React.createElement(CardText, {
20602
+ return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardHeader, null, t(`BPA_OC_NEW_BUILDING_CONSTRUCTION_LABEL`)), /*#__PURE__*/React.createElement(CardText$1, {
20355
20603
  style: {
20356
20604
  color: "#0B0C0C",
20357
20605
  marginTop: "12px",
@@ -20493,7 +20741,7 @@ const OCeDCRScrutiny = ({
20493
20741
  isDisabled: !permitNumber,
20494
20742
  onAdd: onAdd,
20495
20743
  isMultipleAllow: true
20496
- }, /*#__PURE__*/React.createElement(CardCaption, null, `${t("BPA_OC_NEW_BUILDING_CONSTRUCTION_LABEL")}`), /*#__PURE__*/React.createElement(CardHeader, null, `${t("BPA_OC_EDCR_SCRUTINY_LABEL")}`), /*#__PURE__*/React.createElement(CardText, null, `${t("BPA_PROVIDE_BPN_AND_BPD_APP_LABEL")}`), /*#__PURE__*/React.createElement(CardLabel, null, `${t("EDCR_BUILDING_PERMIT_NUM_LABEL")} *`), /*#__PURE__*/React.createElement(TextInput, Object.assign({
20744
+ }, /*#__PURE__*/React.createElement(CardCaption, null, `${t("BPA_OC_NEW_BUILDING_CONSTRUCTION_LABEL")}`), /*#__PURE__*/React.createElement(CardHeader, null, `${t("BPA_OC_EDCR_SCRUTINY_LABEL")}`), /*#__PURE__*/React.createElement(CardText$1, null, `${t("BPA_PROVIDE_BPN_AND_BPD_APP_LABEL")}`), /*#__PURE__*/React.createElement(CardLabel, null, `${t("EDCR_BUILDING_PERMIT_NUM_LABEL")} *`), /*#__PURE__*/React.createElement(TextInput, Object.assign({
20497
20745
  isMandatory: false,
20498
20746
  optionKey: "i18nKey",
20499
20747
  t: t,
@@ -20981,7 +21229,7 @@ const newConfig = [{
20981
21229
  const CreateEDCR = ({
20982
21230
  parentRoute
20983
21231
  }) => {
20984
- var _userInfo$info, _userInfo$info$roles, _newConfig, _newConfig2, _Digit, _Digit$ComponentRegis;
21232
+ var _userInfo$info, _userInfo$info$roles, _Digit$UserService, _user$info, _user$info$roles, _user$info2, _user$info2$roles, _user$info3, _user$info3$roles, _user$info3$roles$fin, _newConfig, _newConfig2, _Digit, _Digit$ComponentRegis;
20985
21233
  const queryClient = useQueryClient();
20986
21234
  const match = useRouteMatch();
20987
21235
  const {
@@ -21009,6 +21257,15 @@ const CreateEDCR = ({
21009
21257
  let {
21010
21258
  data: newConfig$1
21011
21259
  } = Digit.Hooks.obps.SearchMdmsTypes.getFormConfig(stateId, []);
21260
+ const user = (_Digit$UserService = Digit.UserService) === null || _Digit$UserService === void 0 ? void 0 : _Digit$UserService.getUser();
21261
+ const tenantId = localStorage.getItem("CITIZEN.CITY");
21262
+ const isUserRegistered = (user === null || user === void 0 ? void 0 : (_user$info = user.info) === null || _user$info === void 0 ? void 0 : (_user$info$roles = _user$info.roles) === null || _user$info$roles === void 0 ? void 0 : _user$info$roles.some(role => (role === null || role === void 0 ? void 0 : role.code) === "BPA_ARCHITECT")) || (user === null || user === void 0 ? void 0 : (_user$info2 = user.info) === null || _user$info2 === void 0 ? void 0 : (_user$info2$roles = _user$info2.roles) === null || _user$info2$roles === void 0 ? void 0 : _user$info2$roles.some(role => {
21263
+ var _role$code;
21264
+ return role === null || role === void 0 ? void 0 : (_role$code = role.code) === null || _role$code === void 0 ? void 0 : _role$code.includes("BPA");
21265
+ })) && (user === null || user === void 0 ? void 0 : (_user$info3 = user.info) === null || _user$info3 === void 0 ? void 0 : (_user$info3$roles = _user$info3.roles) === null || _user$info3$roles === void 0 ? void 0 : (_user$info3$roles$fin = _user$info3$roles.find(role => {
21266
+ var _role$code2;
21267
+ return role === null || role === void 0 ? void 0 : (_role$code2 = role.code) === null || _role$code2 === void 0 ? void 0 : _role$code2.includes("BPA");
21268
+ })) === null || _user$info3$roles$fin === void 0 ? void 0 : _user$info3$roles$fin.tenantId) === tenantId;
21012
21269
  useEffect(() => {
21013
21270
  if (!stakeHolderDetailsLoading) {
21014
21271
  var _stakeHolderDetails$S, _stakeHolderDetails$S2;
@@ -21026,7 +21283,7 @@ const CreateEDCR = ({
21026
21283
  isRoute = true;
21027
21284
  }
21028
21285
  });
21029
- if (!isRoute) {
21286
+ if (!isUserRegistered) {
21030
21287
  setStakeholderRoles(false);
21031
21288
  setShowToast({
21032
21289
  key: "true",
@@ -22663,11 +22920,10 @@ const BPAApplicationTimeline = props => {
22663
22920
  window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
22664
22921
  }
22665
22922
  const getTimelineCaptions = checkpoint => {
22666
- var _checkpoint$auditDeta, _checkpoint$auditDeta2, _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$assignes2, _checkpoint$assignes3;
22923
+ var _checkpoint$auditDeta, _checkpoint$auditDeta2, _checkpoint$assignes, _checkpoint$assignes$;
22667
22924
  const caption = {
22668
22925
  date: (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified) + " " + (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta2 = checkpoint.auditDetails) === null || _checkpoint$auditDeta2 === void 0 ? void 0 : _checkpoint$auditDeta2.timing),
22669
22926
  name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes = checkpoint.assignes) === null || _checkpoint$assignes === void 0 ? void 0 : (_checkpoint$assignes$ = _checkpoint$assignes[0]) === null || _checkpoint$assignes$ === void 0 ? void 0 : _checkpoint$assignes$.name,
22670
- mobileNumber: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes2 = checkpoint.assignes) === null || _checkpoint$assignes2 === void 0 ? void 0 : (_checkpoint$assignes3 = _checkpoint$assignes2[0]) === null || _checkpoint$assignes3 === void 0 ? void 0 : _checkpoint$assignes3.mobileNumber,
22671
22927
  comment: t(checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.comment),
22672
22928
  wfComment: checkpoint.wfComment,
22673
22929
  thumbnailsToShow: checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.thumbnailsToShow
@@ -23195,7 +23451,7 @@ const getDocuments$1 = fiDocuments => {
23195
23451
  }];
23196
23452
  return returnDocuments;
23197
23453
  };
23198
- function InspectionReport({
23454
+ function InspectionReport$1({
23199
23455
  fiReport,
23200
23456
  isCitizen = false
23201
23457
  }) {
@@ -23581,7 +23837,7 @@ const CitizenConsent = ({
23581
23837
  </div>
23582
23838
 
23583
23839
  <div style="margin-top:-52px;">
23584
- <p style="margin-bottom:-32px;"><strong>To,</strong></p>
23840
+ <p style="margin-bottom:-32px;"><strong>To</strong></p>
23585
23841
  <p style="margin-bottom:-32px;"><strong>${ulbselection || "<ULB Type>"}</strong></p>
23586
23842
  <p style="margin-bottom:-32px;"><b>${(data === null || data === void 0 ? void 0 : (_data$applicationData18 = data.applicationData) === null || _data$applicationData18 === void 0 ? void 0 : (_data$applicationData19 = _data$applicationData18.additionalDetails) === null || _data$applicationData19 === void 0 ? void 0 : _data$applicationData19.UlbName) || "<ULB Name>"}</b></p>
23587
23843
  </div>
@@ -24444,13 +24700,6 @@ const BpaApplicationDetail = () => {
24444
24700
  });
24445
24701
  const ecbcDocumentsData = useMemo(() => {
24446
24702
  const docs = getDocsFromFileUrls(fileUrls) || [];
24447
- if (docs.length === 0) {
24448
- return [{
24449
- id: 0,
24450
- title: t("CS_NA"),
24451
- fileUrl: null
24452
- }];
24453
- }
24454
24703
  return docs.map((doc, index) => ({
24455
24704
  id: index,
24456
24705
  title: doc.title ? t(doc.title) : t("CS_NA"),
@@ -25632,7 +25881,7 @@ const BpaApplicationDetail = () => {
25632
25881
  autoSort: true,
25633
25882
  manualPagination: false,
25634
25883
  isPaginationRequired: false
25635
- }), pdfLoading || isFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
25884
+ }), (ecbcDocumentsData === null || ecbcDocumentsData === void 0 ? void 0 : ecbcDocumentsData.length) > 0 && /*#__PURE__*/React.createElement("div", null, pdfLoading || isFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
25636
25885
  className: "customTable table-border-style",
25637
25886
  t: t,
25638
25887
  data: ecbcDocumentsData,
@@ -25644,7 +25893,7 @@ const BpaApplicationDetail = () => {
25644
25893
  autoSort: true,
25645
25894
  manualPagination: false,
25646
25895
  isPaginationRequired: false
25647
- })), detail !== null && detail !== void 0 && detail.isFieldInspection && (data === null || data === void 0 ? void 0 : (_data$applicationData90 = data.applicationData) === null || _data$applicationData90 === void 0 ? void 0 : (_data$applicationData91 = _data$applicationData90.additionalDetails) === null || _data$applicationData91 === void 0 ? void 0 : (_data$applicationData92 = _data$applicationData91.fieldinspection_pending) === null || _data$applicationData92 === void 0 ? void 0 : _data$applicationData92.length) > 0 ? /*#__PURE__*/React.createElement(InspectionReport, {
25896
+ }))), detail !== null && detail !== void 0 && detail.isFieldInspection && (data === null || data === void 0 ? void 0 : (_data$applicationData90 = data.applicationData) === null || _data$applicationData90 === void 0 ? void 0 : (_data$applicationData91 = _data$applicationData90.additionalDetails) === null || _data$applicationData91 === void 0 ? void 0 : (_data$applicationData92 = _data$applicationData91.fieldinspection_pending) === null || _data$applicationData92 === void 0 ? void 0 : _data$applicationData92.length) > 0 ? /*#__PURE__*/React.createElement(InspectionReport$1, {
25648
25897
  isCitizen: true,
25649
25898
  fiReport: data === null || data === void 0 ? void 0 : (_data$applicationData93 = data.applicationData) === null || _data$applicationData93 === void 0 ? void 0 : (_data$applicationData94 = _data$applicationData93.additionalDetails) === null || _data$applicationData94 === void 0 ? void 0 : _data$applicationData94.fieldinspection_pending
25650
25899
  }) : null, (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : (_detail$additionalDet19 = _detail$additionalDet18.noc) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.length) > 0 ? detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.noc.map((nocob, ind) => {
@@ -25720,8 +25969,8 @@ const BpaApplicationDetail = () => {
25720
25969
  fontWeight: 700,
25721
25970
  marginBottom: "10px"
25722
25971
  }
25723
- }) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardText, null, t("BPA_NO_DOCUMENTS_UPLOADED_LABEL")))));
25724
- }) : null, !(detail !== null && detail !== void 0 && detail.isTitleVisible) && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : (_detail$additionalDet24 = _detail$additionalDet23.permit) === null || _detail$additionalDet24 === void 0 ? void 0 : _detail$additionalDet24.length) > 0 ? detail === null || detail === void 0 ? void 0 : (_detail$additionalDet25 = detail.additionalDetails) === null || _detail$additionalDet25 === void 0 ? void 0 : (_detail$additionalDet26 = _detail$additionalDet25.permit) === null || _detail$additionalDet26 === void 0 ? void 0 : _detail$additionalDet26.map(value => /*#__PURE__*/React.createElement(CardText, {
25972
+ }) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardText$1, null, t("BPA_NO_DOCUMENTS_UPLOADED_LABEL")))));
25973
+ }) : null, !(detail !== null && detail !== void 0 && detail.isTitleVisible) && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : (_detail$additionalDet24 = _detail$additionalDet23.permit) === null || _detail$additionalDet24 === void 0 ? void 0 : _detail$additionalDet24.length) > 0 ? detail === null || detail === void 0 ? void 0 : (_detail$additionalDet25 = detail.additionalDetails) === null || _detail$additionalDet25 === void 0 ? void 0 : (_detail$additionalDet26 = _detail$additionalDet25.permit) === null || _detail$additionalDet26 === void 0 ? void 0 : _detail$additionalDet26.map(value => /*#__PURE__*/React.createElement(CardText$1, {
25725
25974
  key: value === null || value === void 0 ? void 0 : value.title
25726
25975
  }, value === null || value === void 0 ? void 0 : value.title)) : null, (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet27 = detail.additionalDetails) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.inspectionReport) && (detail === null || detail === void 0 ? void 0 : detail.isFeeDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
25727
25976
  scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
@@ -25843,7 +26092,12 @@ const BpaApplicationDetail = () => {
25843
26092
  setError: setError,
25844
26093
  adjustedAmounts: adjustedAmounts,
25845
26094
  setAdjustedAmounts: setAdjustedAmounts
25846
- })), ((_workflowDetails32 = workflowDetails) === null || _workflowDetails32 === void 0 ? void 0 : (_workflowDetails32$da = _workflowDetails32.data) === null || _workflowDetails32$da === void 0 ? void 0 : (_workflowDetails32$da2 = _workflowDetails32$da.actionState) === null || _workflowDetails32$da2 === void 0 ? void 0 : _workflowDetails32$da2.state) === "CITIZEN_APPROVAL_PENDING" && isUserCitizen && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t("ARCHITECT_SHOULD_VERIFY_HIMSELF_BY_CLICKING_BELOW_BUTTON")), /*#__PURE__*/React.createElement("br", null)), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CheckBox, {
26095
+ })), ((_workflowDetails32 = workflowDetails) === null || _workflowDetails32 === void 0 ? void 0 : (_workflowDetails32$da = _workflowDetails32.data) === null || _workflowDetails32$da === void 0 ? void 0 : (_workflowDetails32$da2 = _workflowDetails32$da.actionState) === null || _workflowDetails32$da2 === void 0 ? void 0 : _workflowDetails32$da2.state) === "CITIZEN_APPROVAL_PENDING" && isUserCitizen && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
26096
+ style: {
26097
+ fontSize: "20px",
26098
+ marginTop: "20px"
26099
+ }
26100
+ }, t("BPA_OWNER_UNDERTAKING")), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardLabel, null, t("ARCHITECT_SHOULD_VERIFY_HIMSELF_BY_CLICKING_BELOW_BUTTON")), /*#__PURE__*/React.createElement("br", null)), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CheckBox, {
25847
26101
  label: checkLabels(),
25848
26102
  onChange: setdeclarationhandler,
25849
26103
  styles: {
@@ -28761,7 +29015,7 @@ const StakeholderResponse = props => {
28761
29015
  fontSize: "32px",
28762
29016
  wordBreak: "break-word"
28763
29017
  }
28764
- }), /*#__PURE__*/React.createElement(CardText, {
29018
+ }), /*#__PURE__*/React.createElement(CardText$1, {
28765
29019
  style: {
28766
29020
  paddingBottom: "10px",
28767
29021
  marginBottom: "10px"
@@ -29155,7 +29409,7 @@ const createUnitDetails = () => ({
29155
29409
  Documents: [],
29156
29410
  key: Date.now()
29157
29411
  });
29158
- const InspectionReport$1 = ({
29412
+ const InspectionReport$2 = ({
29159
29413
  config,
29160
29414
  onSelect,
29161
29415
  userType,
@@ -34624,7 +34878,7 @@ const styles$1 = {
34624
34878
  color: " rgba(11, 12, 12, var(--text-opacity))"
34625
34879
  }
34626
34880
  };
34627
- const ArrearSummary$1 = ({
34881
+ const ArrearSummary = ({
34628
34882
  bill: _bill = {}
34629
34883
  }) => {
34630
34884
  var _bill$billDetails, _sortedBillDetails, _arrears$toFixed;
@@ -35704,7 +35958,7 @@ function ApplicationDetailsContent({
35704
35958
  textStyle: {
35705
35959
  wordBreak: "break-all"
35706
35960
  }
35707
- }), value.title === "PT_TOTAL_DUES" ? /*#__PURE__*/React.createElement(ArrearSummary$1, {
35961
+ }), value.title === "PT_TOTAL_DUES" ? /*#__PURE__*/React.createElement(ArrearSummary, {
35708
35962
  bill: (_fetchBillData$Bill = fetchBillData.Bill) === null || _fetchBillData$Bill === void 0 ? void 0 : _fetchBillData$Bill[0]
35709
35963
  }) : "");
35710
35964
  })))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
@@ -35712,7 +35966,7 @@ function ApplicationDetailsContent({
35712
35966
  paymentsList: paymentsList,
35713
35967
  additionalDetails: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a10 = applicationDetails.applicationData) === null || _applicationDetails$a10 === void 0 ? void 0 : _applicationDetails$a10.additionalDetails,
35714
35968
  applicationData: applicationDetails === null || applicationDetails === void 0 ? void 0 : applicationDetails.applicationData
35715
- }), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a11 = applicationDetails.applicationData) === null || _applicationDetails$a11 === void 0 ? void 0 : (_applicationDetails$a12 = _applicationDetails$a11.additionalDetails) === null || _applicationDetails$a12 === void 0 ? void 0 : (_applicationDetails$a13 = _applicationDetails$a12.fieldinspection_pending) === null || _applicationDetails$a13 === void 0 ? void 0 : _applicationDetails$a13.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React.createElement(InspectionReport, {
35969
+ }), (applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a11 = applicationDetails.applicationData) === null || _applicationDetails$a11 === void 0 ? void 0 : (_applicationDetails$a12 = _applicationDetails$a11.additionalDetails) === null || _applicationDetails$a12 === void 0 ? void 0 : (_applicationDetails$a13 = _applicationDetails$a12.fieldinspection_pending) === null || _applicationDetails$a13 === void 0 ? void 0 : _applicationDetails$a13.length) > 0 && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.fiReport) && /*#__PURE__*/React.createElement(InspectionReport$1, {
35716
35970
  fiReport: applicationDetails === null || applicationDetails === void 0 ? void 0 : (_applicationDetails$a14 = applicationDetails.applicationData) === null || _applicationDetails$a14 === void 0 ? void 0 : (_applicationDetails$a15 = _applicationDetails$a14.additionalDetails) === null || _applicationDetails$a15 === void 0 ? void 0 : _applicationDetails$a15.fieldinspection_pending
35717
35971
  }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.floors) && /*#__PURE__*/React.createElement(PropertyFloors, {
35718
35972
  floors: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.floors
@@ -37308,7 +37562,7 @@ function orderBy(collection, iteratees, orders, guard) {
37308
37562
  var orderBy_1 = orderBy;
37309
37563
 
37310
37564
  const BpaApplicationDetail$1 = () => {
37311
- var _user, _user$info, _user$info$roles, _data$applicationData24, _data$applicationData25, _data$applicationData26, _data$applicationData27, _data$BPA, _data$applicationData46, _data$applicationData49, _data$applicationData50, _pdfDetails$pdfFiles, _mdmsData$BPA, _userInfo$info, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data18, _workflowDetails$data19, _data$collectionBillD, _data$applicationData66, _data$collectionBillD2, _data$applicationData71, _data$collectionBillD3, _data$applicationData76, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data30, _workflowDetails$data31, _data$applicationDeta7, _workflowDetails$data34, _workflowDetails$data35, _workflowDetails$data36, _workflowDetails$data37, _workflowDetails$data38, _actions$, _actions$$redirection, _workflowDetails$data39, _data$applicationDeta8, _workflowDetails$data40, _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45, _workflowDetails$data46, _workflowDetails$data47, _workflowDetails$data48, _workflowDetails$data49, _workflowDetails$data50, _workflowDetails$data58, _workflowDetails$data59, _workflowDetails$data60, _workflowDetails$data61, _workflowDetails$data62, _data$applicationData78, _blockReason$BPA, _workflowDetails$data63, _workflowDetails$data64, _workflowDetails$data65, _ref, _workflowDetails$data66, _workflowDetails$data67, _data$applicationData79, _data$applicationData80, _userInfo$info2;
37565
+ var _user, _user$info, _user$info$roles, _data$applicationData24, _data$applicationData25, _data$applicationData26, _data$applicationData27, _data$BPA, _data$applicationData46, _data$applicationData49, _data$applicationData50, _pdfDetails$pdfFiles, _mdmsData$BPA, _userInfo$info, _workflowDetails$data14, _workflowDetails$data15, _workflowDetails$data18, _workflowDetails$data19, _data$collectionBillD, _data$applicationData66, _data$collectionBillD2, _data$applicationData71, _data$collectionBillD3, _data$applicationData76, _workflowDetails$data26, _workflowDetails$data27, _workflowDetails$data30, _workflowDetails$data31, _data$applicationDeta7, _workflowDetails$data34, _workflowDetails$data35, _workflowDetails$data36, _workflowDetails$data37, _workflowDetails$data38, _actions$, _actions$$redirection, _data$applicationDeta8, _workflowDetails$data48, _workflowDetails$data49, _workflowDetails$data50, _workflowDetails$data51, _workflowDetails$data52, _data$applicationData82, _blockReason$BPA, _workflowDetails$data53, _workflowDetails$data54, _workflowDetails$data55, _ref, _workflowDetails$data56, _workflowDetails$data57, _data$applicationData83, _data$applicationData84, _userInfo$info2;
37312
37566
  const {
37313
37567
  id
37314
37568
  } = useParams();
@@ -37661,14 +37915,35 @@ const BpaApplicationDetail$1 = () => {
37661
37915
  fileUrl: ((_doc$values = doc.values) === null || _doc$values === void 0 ? void 0 : (_doc$values$ = _doc$values[0]) === null || _doc$values$ === void 0 ? void 0 : _doc$values$.fileURL) || null
37662
37916
  };
37663
37917
  });
37918
+ const documentsColumnsOwner = [{
37919
+ Header: t("BPA_OWNER_DETAILS_LABEL"),
37920
+ accessor: "title",
37921
+ Cell: ({
37922
+ value
37923
+ }) => t(value) || t("CS_NA")
37924
+ }, {
37925
+ Header: t(" "),
37926
+ accessor: "fileUrl",
37927
+ Cell: ({
37928
+ value
37929
+ }) => value ? /*#__PURE__*/React.createElement(LinkButton, {
37930
+ style: {
37931
+ float: "right",
37932
+ display: "inline",
37933
+ background: "#fff"
37934
+ },
37935
+ label: t("View"),
37936
+ onClick: () => routeTo(value)
37937
+ }) : t("CS_NA")
37938
+ }];
37664
37939
  const documentsColumns = [{
37665
- Header: t("BPA_DOCUMENT_NAME"),
37940
+ Header: t("BPA_DOCUMENT_DETAILS_LABEL"),
37666
37941
  accessor: "title",
37667
37942
  Cell: ({
37668
37943
  value
37669
- }) => value || t("CS_NA")
37944
+ }) => t(value) || t("CS_NA")
37670
37945
  }, {
37671
- Header: t("BPA_DOCUMENT_FILE"),
37946
+ Header: t(" "),
37672
37947
  accessor: "fileUrl",
37673
37948
  Cell: ({
37674
37949
  value
@@ -37682,6 +37957,50 @@ const BpaApplicationDetail$1 = () => {
37682
37957
  onClick: () => routeTo(value)
37683
37958
  }) : t("CS_NA")
37684
37959
  }];
37960
+ const documentsColumnsECBC = [{
37961
+ Header: t("BPA_ECBC_DETAILS_LABEL"),
37962
+ accessor: "title",
37963
+ Cell: ({
37964
+ value
37965
+ }) => t(value) || t("CS_NA")
37966
+ }, {
37967
+ Header: t(" "),
37968
+ accessor: "fileUrl",
37969
+ Cell: ({
37970
+ value
37971
+ }) => value ? /*#__PURE__*/React.createElement(LinkButton, {
37972
+ style: {
37973
+ float: "right",
37974
+ display: "inline",
37975
+ background: "#fff"
37976
+ },
37977
+ label: t("View"),
37978
+ onClick: () => routeTo(value)
37979
+ }) : t("CS_NA")
37980
+ }];
37981
+ const documentsColumnsEDCR = [{
37982
+ Header: t("BPA_DOCUMENT_DETAILS_LABEL"),
37983
+ accessor: "title",
37984
+ Cell: ({
37985
+ value
37986
+ }) => t(value) || t("CS_NA")
37987
+ }, {
37988
+ Header: t(" "),
37989
+ accessor: "value",
37990
+ Cell: ({
37991
+ value
37992
+ }) => {
37993
+ return value ? /*#__PURE__*/React.createElement(LinkButton, {
37994
+ style: {
37995
+ float: "right",
37996
+ display: "inline",
37997
+ background: "#fff"
37998
+ },
37999
+ label: t("View"),
38000
+ onClick: () => routeTo(value)
38001
+ }) : t("CS_NA");
38002
+ }
38003
+ }];
37685
38004
  const ecbcDocumentsData = useMemo(() => {
37686
38005
  const docs = getDocsFromFileUrls(fileUrls) || [];
37687
38006
  if (docs.length === 0) {
@@ -37989,40 +38308,6 @@ const BpaApplicationDetail$1 = () => {
37989
38308
  return false;
37990
38309
  });
37991
38310
  data.applicationDetails = results;
37992
- const toggleTimeline = () => {
37993
- setShowAllTimeline(prev => !prev);
37994
- };
37995
- const getMainDivStyles = () => {
37996
- if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc") || window.location.href.includes("employee/ws")) {
37997
- return {
37998
- lineHeight: "19px",
37999
- maxWidth: "950px",
38000
- minWidth: "280px"
38001
- };
38002
- } else {
38003
- return {
38004
- lineHeight: "19px",
38005
- maxWidth: "600px",
38006
- minWidth: "280px"
38007
- };
38008
- }
38009
- };
38010
- const getTableStyles = () => {
38011
- if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc")) {
38012
- return {
38013
- position: "relative",
38014
- marginTop: "19px"
38015
- };
38016
- } else {
38017
- return {
38018
- position: "relative",
38019
- marginTop: "19px"
38020
- };
38021
- }
38022
- };
38023
- const getTextValue = value => {
38024
- if (value !== null && value !== void 0 && value.skip) return value.value;else if (value !== null && value !== void 0 && value.isUnit) return value !== null && value !== void 0 && value.value ? `${getTranslatedValues(value === null || value === void 0 ? void 0 : value.value, value === null || value === void 0 ? void 0 : value.isNotTranslated)} ${t(value === null || value === void 0 ? void 0 : value.isUnit)}` : t("N/A");else return value !== null && value !== void 0 && value.value ? getTranslatedValues(value === null || value === void 0 ? void 0 : value.value, value === null || value === void 0 ? void 0 : value.isNotTranslated) : t("N/A");
38025
- };
38026
38311
  const getTranslatedValues = (dataValue, isNotTranslated) => {
38027
38312
  if (dataValue) {
38028
38313
  return !isNotTranslated ? t(dataValue) : dataValue;
@@ -38030,67 +38315,6 @@ const BpaApplicationDetail$1 = () => {
38030
38315
  return t("NA");
38031
38316
  }
38032
38317
  };
38033
- const getRowStyles = () => {
38034
- if (window.location.href.includes("employee/obps") || window.location.href.includes("employee/noc")) {
38035
- return {
38036
- justifyContent: "space-between",
38037
- fontSize: "16px",
38038
- lineHeight: "19px",
38039
- color: "#0B0C0C"
38040
- };
38041
- } else if (checkLocation) {
38042
- return {
38043
- justifyContent: "space-between",
38044
- fontSize: "16px",
38045
- lineHeight: "19px",
38046
- color: "#0B0C0C"
38047
- };
38048
- } else {
38049
- return {};
38050
- }
38051
- };
38052
- function OpenImage(imageSource, index, thumbnailsToShow) {
38053
- var _thumbnailsToShow$ful;
38054
- window.open(thumbnailsToShow === null || thumbnailsToShow === void 0 ? void 0 : (_thumbnailsToShow$ful = thumbnailsToShow.fullImage) === null || _thumbnailsToShow$ful === void 0 ? void 0 : _thumbnailsToShow$ful[0], "_blank");
38055
- }
38056
- const getTimelineCaptions = (checkpoint, index = 0, timeline) => {
38057
- var _checkpoint$assignes, _checkpoint$assignes$, _checkpoint$auditDeta, _checkpoint$auditDeta2, _checkpoint$assignes2, _checkpoint$assignes3;
38058
- const privacy = {
38059
- uuid: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes = checkpoint.assignes) === null || _checkpoint$assignes === void 0 ? void 0 : (_checkpoint$assignes$ = _checkpoint$assignes[0]) === null || _checkpoint$assignes$ === void 0 ? void 0 : _checkpoint$assignes$.uuid,
38060
- fieldName: "mobileNumber",
38061
- model: "User",
38062
- showValue: false,
38063
- loadData: {
38064
- serviceName: "/egov-workflow-v2/egov-wf/process/_search",
38065
- requestBody: {},
38066
- requestParam: {
38067
- tenantId: data === null || data === void 0 ? void 0 : data.tenantId,
38068
- businessIds: data === null || data === void 0 ? void 0 : data.applicationNo,
38069
- history: true
38070
- },
38071
- jsonPath: "ProcessInstances[0].assignes[0].mobileNumber",
38072
- isArray: false,
38073
- d: res => {
38074
- let resultstring = "";
38075
- resultstring = `+91 ${_.get(res, `ProcessInstances[${index}].assignes[0].mobileNumber`)}`;
38076
- return resultstring;
38077
- }
38078
- }
38079
- };
38080
- const previousCheckpoint = timeline === null || timeline === void 0 ? void 0 : timeline[index - 1];
38081
- const caption = {
38082
- date: (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta = checkpoint.auditDetails) === null || _checkpoint$auditDeta === void 0 ? void 0 : _checkpoint$auditDeta.lastModified) + " " + (checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$auditDeta2 = checkpoint.auditDetails) === null || _checkpoint$auditDeta2 === void 0 ? void 0 : _checkpoint$auditDeta2.timing),
38083
- name: checkpoint === null || checkpoint === void 0 ? void 0 : (_checkpoint$assignes2 = checkpoint.assignes) === null || _checkpoint$assignes2 === void 0 ? void 0 : (_checkpoint$assignes3 = _checkpoint$assignes2[0]) === null || _checkpoint$assignes3 === void 0 ? void 0 : _checkpoint$assignes3.name,
38084
- comment: t(checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.comment),
38085
- wfComment: previousCheckpoint ? previousCheckpoint === null || previousCheckpoint === void 0 ? void 0 : previousCheckpoint.wfComment : [],
38086
- thumbnailsToShow: checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.thumbnailsToShow
38087
- };
38088
- return /*#__PURE__*/React.createElement(TLCaption, {
38089
- data: caption,
38090
- OpenImage: OpenImage,
38091
- privacy: privacy
38092
- });
38093
- };
38094
38318
  const closeModal = () => {
38095
38319
  setSelectedAction(null);
38096
38320
  setShowModal(false);
@@ -38279,8 +38503,6 @@ const BpaApplicationDetail$1 = () => {
38279
38503
  if ((window.location.href.includes("/obps") || window.location.href.includes("/noc")) && (actions === null || actions === void 0 ? void 0 : actions.length) == 1 || actions !== null && actions !== void 0 && (_actions$ = actions[0]) !== null && _actions$ !== void 0 && (_actions$$redirection = _actions$.redirectionUrl) !== null && _actions$$redirection !== void 0 && _actions$$redirection.pathname.includes("/pt/property-details/") && (actions === null || actions === void 0 ? void 0 : actions.length) == 1) ;
38280
38504
  console.log("applicationDetailsData", actions, workflowDetails);
38281
38505
  if (isLoading || bpaDocsLoading || isEnableLoader) return /*#__PURE__*/React.createElement(Loader, null);
38282
- const timelineStatusPrefix = workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data39 = workflowDetails.data) === null || _workflowDetails$data39 === void 0 ? void 0 : _workflowDetails$data39.applicationBusinessService;
38283
- const statusAttribute = "status";
38284
38506
  return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
38285
38507
  className: "employee-main-application-details"
38286
38508
  }, /*#__PURE__*/React.createElement("div", {
@@ -38307,160 +38529,119 @@ const BpaApplicationDetail$1 = () => {
38307
38529
  color: "#A52A2A"
38308
38530
  },
38309
38531
  onClick: handleViewTimeline
38310
- }))), /*#__PURE__*/React.createElement(Card, null, data === null || data === void 0 ? void 0 : (_data$applicationDeta8 = data.applicationDetails) === null || _data$applicationDeta8 === void 0 ? void 0 : _data$applicationDeta8.map((detail, index) => {
38311
- var _detail$values2, _detail$additionalDet, _data$applicationData77, _detail$additionalDet2, _detail$additionalDet3, _detail$additionalDet4, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12;
38312
- return /*#__PURE__*/React.createElement(React.Fragment, {
38532
+ }))), data === null || data === void 0 ? void 0 : (_data$applicationDeta8 = data.applicationDetails) === null || _data$applicationDeta8 === void 0 ? void 0 : _data$applicationDeta8.filter(ob => {
38533
+ var _Object$keys;
38534
+ return ((_Object$keys = Object.keys(ob)) === null || _Object$keys === void 0 ? void 0 : _Object$keys.length) > 0;
38535
+ }).map((detail, index, arr) => {
38536
+ var _detail$additionalDet, _detail$additionalDet2, _detail$additionalDet3, _detail$additionalDet4, _detail$values2, _detail$values3, _detail$additionalDet5, _detail$additionalDet6, _detail$additionalDet7, _detail$additionalDet8, _detail$additionalDet9, _detail$additionalDet0, _detail$additionalDet1, _detail$additionalDet10, _detail$additionalDet11, _detail$additionalDet12, _detail$additionalDet13, _data$applicationData77, _data$applicationData78, _data$applicationData79, _data$applicationData80, _data$applicationData81, _detail$additionalDet18, _detail$additionalDet19, _detail$additionalDet20, _detail$additionalDet23, _detail$additionalDet24, _detail$additionalDet25, _detail$additionalDet26, _detail$additionalDet27, _detail$additionalDet28, _workflowDetails$data40, _workflowDetails$data41, _workflowDetails$data42, _workflowDetails$data43, _workflowDetails$data44, _workflowDetails$data45, _workflowDetails$data46, _workflowDetails$data47;
38537
+ console.log("detailforme", detail);
38538
+ return /*#__PURE__*/React.createElement("div", {
38313
38539
  key: index
38314
- }, /*#__PURE__*/React.createElement("div", {
38315
- style: getMainDivStyles()
38316
- }, index === 0 && !detail.asSectionHeader ? /*#__PURE__*/React.createElement(CardSubHeader, {
38317
- style: {
38318
- marginBottom: "16px",
38319
- fontSize: "24px"
38320
- }
38321
- }, t(detail.title)) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(CardSectionHeader, {
38322
- style: index == 0 && checkLocation ? {
38323
- marginBottom: "16px",
38324
- fontSize: "24px"
38325
- } : {
38326
- marginBottom: "16px",
38327
- marginTop: "32px",
38328
- fontSize: "24px"
38329
- }
38330
- }, t(detail === null || detail === void 0 ? void 0 : detail.title), detail !== null && detail !== void 0 && detail.Component ? /*#__PURE__*/React.createElement(detail.Component, null) : null)), (detail === null || detail === void 0 ? void 0 : detail.isTable) && /*#__PURE__*/React.createElement("table", {
38331
- style: {
38332
- tableLayout: "fixed",
38333
- width: "100%",
38334
- borderCollapse: "collapse"
38335
- }
38336
- }, /*#__PURE__*/React.createElement("tr", {
38540
+ }, (detail === null || detail === void 0 ? void 0 : detail.title) === "BPA_APPLICANT_DETAILS_HEADER" && /*#__PURE__*/React.createElement(CitizenAndArchitectPhoto, {
38541
+ data: data === null || data === void 0 ? void 0 : data.applicationData
38542
+ }), !(detail !== null && detail !== void 0 && detail.isNotAllowed) ? /*#__PURE__*/React.createElement(Card, {
38543
+ key: index
38544
+ }, !(detail !== null && detail !== void 0 && detail.isTitleVisible) ? /*#__PURE__*/React.createElement(CardSubHeader, {
38337
38545
  style: {
38338
- textAlign: "left"
38546
+ fontSize: "20px",
38547
+ marginTop: "20px"
38339
38548
  }
38340
- }, detail === null || detail === void 0 ? void 0 : detail.headers.map(header => /*#__PURE__*/React.createElement("th", {
38549
+ }, t(detail === null || detail === void 0 ? void 0 : detail.title)) : null, /*#__PURE__*/React.createElement("div", {
38550
+ style: detail !== null && detail !== void 0 && detail.isBackGroundColor ? {
38551
+ marginTop: "19px",
38552
+ background: "#FAFAFA",
38553
+ border: "1px solid #D6D5D4",
38554
+ borderRadius: "4px",
38555
+ padding: "8px",
38556
+ lineHeight: "19px",
38557
+ maxWidth: "950px",
38558
+ minWidth: "280px"
38559
+ } : {}
38560
+ }, !(detail !== null && detail !== void 0 && detail.isFeeDetails) && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : (_detail$additionalDet2 = _detail$additionalDet.values) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.length) > 0 ? detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : (_detail$additionalDet4 = _detail$additionalDet3.values) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.map(value => /*#__PURE__*/React.createElement("div", {
38561
+ key: value === null || value === void 0 ? void 0 : value.title
38562
+ }, !(detail !== null && detail !== void 0 && detail.isTitleRepeat) && value !== null && value !== void 0 && value.isHeader ? /*#__PURE__*/React.createElement(CardSubHeader, {
38341
38563
  style: {
38342
- padding: "10px",
38343
- paddingLeft: "0px"
38564
+ fontSize: "20px",
38565
+ marginTop: "20px"
38344
38566
  }
38345
- }, t(header)))), detail === null || detail === void 0 ? void 0 : detail.tableRows.map((row, index) => {
38346
- if (index === (detail === null || detail === void 0 ? void 0 : detail.tableRows.length) - 1) {
38347
- return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("hr", {
38348
- style: {
38349
- width: "370%",
38350
- marginTop: "15px"
38351
- },
38352
- className: "underline"
38353
- }), /*#__PURE__*/React.createElement("tr", null, row.map(element => /*#__PURE__*/React.createElement("td", {
38567
+ }, t(value === null || value === void 0 ? void 0 : value.title)) : null)) : null, /*#__PURE__*/React.createElement(StatusTable, null, detail !== null && detail !== void 0 && detail.isCommon && (detail === null || detail === void 0 ? void 0 : (_detail$values2 = detail.values) === null || _detail$values2 === void 0 ? void 0 : _detail$values2.length) > 0 ? detail === null || detail === void 0 ? void 0 : (_detail$values3 = detail.values) === null || _detail$values3 === void 0 ? void 0 : _detail$values3.map(value => {
38568
+ if (value !== null && value !== void 0 && value.isUnit) return /*#__PURE__*/React.createElement(Row, {
38569
+ className: "border-none",
38570
+ label: t(value === null || value === void 0 ? void 0 : value.title),
38571
+ text: value !== null && value !== void 0 && value.value ? `${getTranslatedValues(value === null || value === void 0 ? void 0 : value.value, value === null || value === void 0 ? void 0 : value.isNotTranslated)} ${t(value === null || value === void 0 ? void 0 : value.isUnit)}` : t("CS_NA")
38572
+ });
38573
+ if (value !== null && value !== void 0 && value.isLink) return /*#__PURE__*/React.createElement(Row, {
38574
+ className: "border-none",
38575
+ label: t(value === null || value === void 0 ? void 0 : value.title),
38576
+ text: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
38577
+ to: value === null || value === void 0 ? void 0 : value.to
38578
+ }, /*#__PURE__*/React.createElement("span", {
38579
+ className: "link",
38354
38580
  style: {
38355
- textAlign: "left"
38356
- }
38357
- }, t(element)))));
38358
- }
38359
- return /*#__PURE__*/React.createElement("tr", null, row.map(element => /*#__PURE__*/React.createElement("td", {
38360
- style: {
38361
- paddingTop: "20px",
38362
- textAlign: "left"
38363
- }
38364
- }, t(element))));
38365
- })), /*#__PURE__*/React.createElement(StatusTable, {
38366
- style: getTableStyles()
38367
- }, (detail === null || detail === void 0 ? void 0 : detail.title) && !(detail !== null && detail !== void 0 && detail.title.includes("NOC")) && (detail === null || detail === void 0 ? void 0 : (_detail$values2 = detail.values) === null || _detail$values2 === void 0 ? void 0 : _detail$values2.map((value, index) => {
38368
- var _detail$values4, _fetchBillData$Bill;
38369
- if (value.map === true && value.value !== "N/A") {
38370
- return /*#__PURE__*/React.createElement(Row, {
38371
- labelStyle: {
38372
- wordBreak: "break-all"
38373
- },
38374
- textStyle: {
38375
- wordBreak: "break-all"
38376
- },
38377
- key: t(value.title),
38378
- label: t(value.title),
38379
- text: /*#__PURE__*/React.createElement("img", {
38380
- src: t(value.value),
38381
- alt: "",
38382
- privacy: value === null || value === void 0 ? void 0 : value.privacy
38383
- })
38384
- });
38385
- }
38386
- if ((value === null || value === void 0 ? void 0 : value.isLink) == true) {
38387
- var _detail$values3;
38388
- return /*#__PURE__*/React.createElement(Row, {
38389
- key: t(value.title),
38390
- label: window.location.href.includes("tl") || window.location.href.includes("ws") ? /*#__PURE__*/React.createElement("div", {
38391
- style: {
38392
- width: "200%"
38393
- }
38394
- }, /*#__PURE__*/React.createElement(Link, {
38395
- to: value === null || value === void 0 ? void 0 : value.to
38396
- }, /*#__PURE__*/React.createElement("span", {
38397
- className: "link",
38398
- style: {
38399
- color: "#a82227"
38400
- }
38401
- }, t(value === null || value === void 0 ? void 0 : value.title)))) : isNocLocation || isBPALocation ? `${t(value.title)}` : t(value.title),
38402
- text: /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Link, {
38403
- to: value === null || value === void 0 ? void 0 : value.to
38404
- }, /*#__PURE__*/React.createElement("span", {
38405
- className: "link",
38406
- style: {
38407
- color: "#a82227"
38408
- }
38409
- }, value === null || value === void 0 ? void 0 : value.value))),
38410
- last: index === (detail === null || detail === void 0 ? void 0 : (_detail$values3 = detail.values) === null || _detail$values3 === void 0 ? void 0 : _detail$values3.length) - 1,
38411
- caption: value.caption,
38412
- className: "border-none",
38413
- rowContainerStyle: getRowStyles(),
38414
- labelStyle: {
38415
- wordBreak: "break-all"
38416
- },
38417
- textStyle: {
38418
- wordBreak: "break-all"
38581
+ color: "#a82227"
38419
38582
  }
38420
- });
38421
- }
38422
- return /*#__PURE__*/React.createElement("div", null, window.location.href.includes("modify") ? /*#__PURE__*/React.createElement(Row, {
38423
- className: "border-none",
38424
- key: `${value.title}`,
38425
- label: `${t(`${value.title}`)}`,
38426
- privacy: value === null || value === void 0 ? void 0 : value.privacy,
38427
- text: value !== null && value !== void 0 && value.oldValue ? value === null || value === void 0 ? void 0 : value.oldValue : value !== null && value !== void 0 && value.value ? value === null || value === void 0 ? void 0 : value.value : "",
38428
- labelStyle: {
38429
- wordBreak: "break-all"
38430
- },
38431
- textStyle: {
38432
- wordBreak: "break-all"
38433
- }
38434
- }) : /*#__PURE__*/React.createElement(Row, {
38435
- key: t(value.title),
38436
- label: t(value.title),
38437
- text: getTextValue(value),
38438
- last: index === (detail === null || detail === void 0 ? void 0 : (_detail$values4 = detail.values) === null || _detail$values4 === void 0 ? void 0 : _detail$values4.length) - 1,
38439
- caption: value.caption,
38583
+ }, value === null || value === void 0 ? void 0 : value.value)))
38584
+ });else return /*#__PURE__*/React.createElement(Row, {
38440
38585
  className: "border-none",
38441
- privacy: value === null || value === void 0 ? void 0 : value.privacy,
38442
- rowContainerStyle: getRowStyles(),
38443
- labelStyle: {
38444
- wordBreak: "break-all"
38445
- },
38446
- textStyle: {
38447
- wordBreak: "break-all"
38448
- }
38449
- }), value.title === "PT_TOTAL_DUES" ? /*#__PURE__*/React.createElement(ArrearSummary, {
38450
- bill: (_fetchBillData$Bill = fetchBillData.Bill) === null || _fetchBillData$Bill === void 0 ? void 0 : _fetchBillData$Bill[0]
38451
- }) : "");
38452
- })))), (detail === null || detail === void 0 ? void 0 : detail.belowComponent) && /*#__PURE__*/React.createElement(detail.belowComponent, null), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet = detail.additionalDetails) === null || _detail$additionalDet === void 0 ? void 0 : _detail$additionalDet.inspectionReport) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
38453
- scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
38454
- additionalDetails: data === null || data === void 0 ? void 0 : (_data$applicationData77 = data.applicationData) === null || _data$applicationData77 === void 0 ? void 0 : _data$applicationData77.additionalDetails,
38586
+ label: t(value === null || value === void 0 ? void 0 : value.title),
38587
+ text: getTranslatedValues(value === null || value === void 0 ? void 0 : value.value, value === null || value === void 0 ? void 0 : value.isNotTranslated) || t("CS_NA")
38588
+ });
38589
+ }) : null, !(detail !== null && detail !== void 0 && detail.isFeeDetails) && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : (_detail$additionalDet6 = _detail$additionalDet5.values) === null || _detail$additionalDet6 === void 0 ? void 0 : _detail$additionalDet6.length) > 0 ? detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : (_detail$additionalDet8 = _detail$additionalDet7.values) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.map(value => /*#__PURE__*/React.createElement("div", {
38590
+ key: value === null || value === void 0 ? void 0 : value.title
38591
+ }, !(detail !== null && detail !== void 0 && detail.isTitleRepeat) && !(value !== null && value !== void 0 && value.isHeader) && !(value !== null && value !== void 0 && value.isUnit) ? /*#__PURE__*/React.createElement(Row, {
38592
+ className: "border-none",
38593
+ label: t(value === null || value === void 0 ? void 0 : value.title),
38594
+ textStyle: (value === null || value === void 0 ? void 0 : value.value) === "Paid" ? {
38595
+ color: "darkgreen"
38596
+ } : (value === null || value === void 0 ? void 0 : value.value) === "Unpaid" ? {
38597
+ color: "red"
38598
+ } : {},
38599
+ text: value !== null && value !== void 0 && value.value ? getTranslatedValues(value === null || value === void 0 ? void 0 : value.value, value === null || value === void 0 ? void 0 : value.isNotTranslated) : t("CS_NA")
38600
+ }) : null, !(detail !== null && detail !== void 0 && detail.isTitleRepeat) && value !== null && value !== void 0 && value.isUnit ? /*#__PURE__*/React.createElement(Row, {
38601
+ className: "border-none",
38602
+ label: t(value === null || value === void 0 ? void 0 : value.title),
38603
+ text: value !== null && value !== void 0 && value.value ? `${getTranslatedValues(value === null || value === void 0 ? void 0 : value.value, value === null || value === void 0 ? void 0 : value.isNotTranslated)} ${t(value === null || value === void 0 ? void 0 : value.isUnit)}` : t("CS_NA")
38604
+ }) : null)) : null, detail !== null && detail !== void 0 && detail.isSubOccupancyTable && detail !== null && detail !== void 0 && (_detail$additionalDet9 = detail.additionalDetails) !== null && _detail$additionalDet9 !== void 0 && _detail$additionalDet9.subOccupancyTableDetails ? /*#__PURE__*/React.createElement(SubOccupancyTable, {
38605
+ edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
38455
38606
  applicationData: data === null || data === void 0 ? void 0 : data.applicationData
38456
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet2 = detail.additionalDetails) === null || _detail$additionalDet2 === void 0 ? void 0 : _detail$additionalDet2.owners) && /*#__PURE__*/React.createElement(PropertyOwners, {
38457
- owners: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet3 = detail.additionalDetails) === null || _detail$additionalDet3 === void 0 ? void 0 : _detail$additionalDet3.owners
38458
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet4 = detail.additionalDetails) === null || _detail$additionalDet4 === void 0 ? void 0 : _detail$additionalDet4.obpsDocuments) && /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_DOCUMENT_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
38459
- style: {
38460
- border: "0.5px solid #eaeaea",
38461
- margin: "0 0 16px 0"
38462
- }
38463
- }), pdfLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
38607
+ }) : null, detail !== null && detail !== void 0 && detail.isScrutinyDetails && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : (_detail$additionalDet1 = _detail$additionalDet0.scruntinyDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : _detail$additionalDet1.length) > 0 ?
38608
+ /*#__PURE__*/
38609
+ React.createElement(Table, {
38610
+ className: "customTable table-border-style",
38611
+ t: t,
38612
+ data: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet10 = detail.additionalDetails) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.scruntinyDetails,
38613
+ columns: documentsColumnsEDCR,
38614
+ getCellProps: () => ({
38615
+ style: {}
38616
+ }),
38617
+ disableSort: false,
38618
+ autoSort: true,
38619
+ manualPagination: false,
38620
+ isPaginationRequired: false
38621
+ }) : null, detail !== null && detail !== void 0 && detail.isOwnerDetails && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : (_detail$additionalDet12 = _detail$additionalDet11.owners) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.length) > 0 ? detail === null || detail === void 0 ? void 0 : (_detail$additionalDet13 = detail.additionalDetails) === null || _detail$additionalDet13 === void 0 ? void 0 : _detail$additionalDet13.owners.map((owner, index) => {
38622
+ var _detail$additionalDet14, _detail$additionalDet15, _detail$additionalDet16, _detail$additionalDet17;
38623
+ return /*#__PURE__*/React.createElement("div", {
38624
+ key: index,
38625
+ style: (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet14 = detail.additionalDetails) === null || _detail$additionalDet14 === void 0 ? void 0 : (_detail$additionalDet15 = _detail$additionalDet14.owners) === null || _detail$additionalDet15 === void 0 ? void 0 : _detail$additionalDet15.length) > 1 ? {
38626
+ marginTop: "19px",
38627
+ background: "#FAFAFA",
38628
+ border: "1px solid #D6D5D4",
38629
+ borderRadius: "4px",
38630
+ padding: "8px",
38631
+ lineHeight: "19px",
38632
+ maxWidth: "950px",
38633
+ minWidth: "280px"
38634
+ } : {}
38635
+ }, (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet16 = detail.additionalDetails) === null || _detail$additionalDet16 === void 0 ? void 0 : (_detail$additionalDet17 = _detail$additionalDet16.owners) === null || _detail$additionalDet17 === void 0 ? void 0 : _detail$additionalDet17.length) > 1 ? /*#__PURE__*/React.createElement(Row, {
38636
+ className: "border-none",
38637
+ label: `${t("Owner")} - ${index + 1}`
38638
+ }) : null, owner === null || owner === void 0 ? void 0 : owner.values.map(value => /*#__PURE__*/React.createElement(Row, {
38639
+ className: "border-none",
38640
+ label: t(value === null || value === void 0 ? void 0 : value.title),
38641
+ text: getTranslatedValues(value === null || value === void 0 ? void 0 : value.value, value === null || value === void 0 ? void 0 : value.isNotTranslated) || t("CS_NA"),
38642
+ key: value === null || value === void 0 ? void 0 : value.title
38643
+ })));
38644
+ }) : null, (detail === null || detail === void 0 ? void 0 : detail.title) === "BPA_DOCUMENT_DETAILS_LABEL" && /*#__PURE__*/React.createElement(Fragment, null, pdfLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
38464
38645
  className: "customTable table-border-style",
38465
38646
  t: t,
38466
38647
  data: documentsData,
@@ -38472,16 +38653,11 @@ const BpaApplicationDetail$1 = () => {
38472
38653
  autoSort: true,
38473
38654
  manualPagination: false,
38474
38655
  isPaginationRequired: false
38475
- })), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_ECBC_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
38476
- style: {
38477
- border: "0.5px solid #eaeaea",
38478
- margin: "0 0 16px 0"
38479
- }
38480
- }), pdfLoading || isFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
38656
+ }), (ecbcDocumentsData === null || ecbcDocumentsData === void 0 ? void 0 : ecbcDocumentsData.length) > 0 && /*#__PURE__*/React.createElement("div", null, pdfLoading || isFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
38481
38657
  className: "customTable table-border-style",
38482
38658
  t: t,
38483
38659
  data: ecbcDocumentsData,
38484
- columns: documentsColumns,
38660
+ columns: documentsColumnsECBC,
38485
38661
  getCellProps: () => ({
38486
38662
  style: {}
38487
38663
  }),
@@ -38489,16 +38665,115 @@ const BpaApplicationDetail$1 = () => {
38489
38665
  autoSort: true,
38490
38666
  manualPagination: false,
38491
38667
  isPaginationRequired: false
38492
- })), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(CardHeader, null, t("BPA_OWNER_DETAILS_LABEL")), /*#__PURE__*/React.createElement("hr", {
38668
+ }))), detail !== null && detail !== void 0 && detail.isFieldInspection && (data === null || data === void 0 ? void 0 : (_data$applicationData77 = data.applicationData) === null || _data$applicationData77 === void 0 ? void 0 : (_data$applicationData78 = _data$applicationData77.additionalDetails) === null || _data$applicationData78 === void 0 ? void 0 : (_data$applicationData79 = _data$applicationData78.fieldinspection_pending) === null || _data$applicationData79 === void 0 ? void 0 : _data$applicationData79.length) > 0 ? /*#__PURE__*/React.createElement(InspectionReport, {
38669
+ isCitizen: true,
38670
+ fiReport: data === null || data === void 0 ? void 0 : (_data$applicationData80 = data.applicationData) === null || _data$applicationData80 === void 0 ? void 0 : (_data$applicationData81 = _data$applicationData80.additionalDetails) === null || _data$applicationData81 === void 0 ? void 0 : _data$applicationData81.fieldinspection_pending
38671
+ }) : null, (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet18 = detail.additionalDetails) === null || _detail$additionalDet18 === void 0 ? void 0 : (_detail$additionalDet19 = _detail$additionalDet18.noc) === null || _detail$additionalDet19 === void 0 ? void 0 : _detail$additionalDet19.length) > 0 ? detail === null || detail === void 0 ? void 0 : (_detail$additionalDet20 = detail.additionalDetails) === null || _detail$additionalDet20 === void 0 ? void 0 : _detail$additionalDet20.noc.map((nocob, ind) => {
38672
+ var _detail$additionalDet21, _detail$additionalDet22, _detail$values4, _detail$values4$, _detail$values5, _detail$values5$, _detail$values6, _detail$values6$, _detail$values7, _detail$values7$, _detail$values8, _detail$values8$, _detail$values9, _detail$values9$, _detail$values0, _detail$values0$, _detail$values1, _detail$values1$, _detail$values10, _detail$values10$, _detail$values11, _detail$values11$, _detail$values12, _detail$values12$, _detail$values13, _detail$values13$, _detail$values14, _detail$values14$, _detail$values15, _detail$values15$, _detail$values16, _detail$values16$, _detail$values17, _detail$values17$, _detail$values18, _detail$values18$, _detail$values19, _detail$values19$, _detail$values20, _detail$values20$, _detail$values21, _detail$values21$;
38673
+ return /*#__PURE__*/React.createElement("div", {
38674
+ key: ind,
38675
+ style: {
38676
+ marginTop: "19px",
38677
+ background: "#FAFAFA",
38678
+ border: "1px solid #D6D5D4",
38679
+ borderRadius: "4px",
38680
+ padding: "8px",
38681
+ lineHeight: "19px",
38682
+ maxWidth: "960px",
38683
+ minWidth: "280px"
38684
+ }
38685
+ }, /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
38686
+ className: "border-none",
38687
+ label: t(`${`BPA_${detail === null || detail === void 0 ? void 0 : (_detail$additionalDet21 = detail.additionalDetails) === null || _detail$additionalDet21 === void 0 ? void 0 : (_detail$additionalDet22 = _detail$additionalDet21.data) === null || _detail$additionalDet22 === void 0 ? void 0 : _detail$additionalDet22.nocType}_HEADER`}`),
38688
+ labelStyle: {
38689
+ fontSize: "20px"
38690
+ }
38691
+ }), /*#__PURE__*/React.createElement(Row, {
38692
+ className: "border-none",
38693
+ label: t(`${detail === null || detail === void 0 ? void 0 : (_detail$values4 = detail.values) === null || _detail$values4 === void 0 ? void 0 : (_detail$values4$ = _detail$values4[0]) === null || _detail$values4$ === void 0 ? void 0 : _detail$values4$.title}`),
38694
+ textStyle: {
38695
+ marginLeft: "10px"
38696
+ },
38697
+ text: getTranslatedValues(detail === null || detail === void 0 ? void 0 : (_detail$values5 = detail.values) === null || _detail$values5 === void 0 ? void 0 : (_detail$values5$ = _detail$values5[0]) === null || _detail$values5$ === void 0 ? void 0 : _detail$values5$.value, detail === null || detail === void 0 ? void 0 : (_detail$values6 = detail.values) === null || _detail$values6 === void 0 ? void 0 : (_detail$values6$ = _detail$values6[0]) === null || _detail$values6$ === void 0 ? void 0 : _detail$values6$.isNotTranslated)
38698
+ }), /*#__PURE__*/React.createElement(Row, {
38699
+ className: "border-none",
38700
+ label: t(`${detail === null || detail === void 0 ? void 0 : (_detail$values7 = detail.values) === null || _detail$values7 === void 0 ? void 0 : (_detail$values7$ = _detail$values7[1]) === null || _detail$values7$ === void 0 ? void 0 : _detail$values7$.title}`),
38701
+ textStyle: (detail === null || detail === void 0 ? void 0 : (_detail$values8 = detail.values) === null || _detail$values8 === void 0 ? void 0 : (_detail$values8$ = _detail$values8[1]) === null || _detail$values8$ === void 0 ? void 0 : _detail$values8$.value) == "APPROVED" || (detail === null || detail === void 0 ? void 0 : (_detail$values9 = detail.values) === null || _detail$values9 === void 0 ? void 0 : (_detail$values9$ = _detail$values9[1]) === null || _detail$values9$ === void 0 ? void 0 : _detail$values9$.value) == "AUTO_APPROVED" ? {
38702
+ marginLeft: "10px",
38703
+ color: "#00703C"
38704
+ } : {
38705
+ marginLeft: "10px",
38706
+ color: "#D4351C"
38707
+ },
38708
+ text: getTranslatedValues(detail === null || detail === void 0 ? void 0 : (_detail$values0 = detail.values) === null || _detail$values0 === void 0 ? void 0 : (_detail$values0$ = _detail$values0[1]) === null || _detail$values0$ === void 0 ? void 0 : _detail$values0$.value, detail === null || detail === void 0 ? void 0 : (_detail$values1 = detail.values) === null || _detail$values1 === void 0 ? void 0 : (_detail$values1$ = _detail$values1[1]) === null || _detail$values1$ === void 0 ? void 0 : _detail$values1$.isNotTranslated)
38709
+ }), detail !== null && detail !== void 0 && (_detail$values10 = detail.values) !== null && _detail$values10 !== void 0 && (_detail$values10$ = _detail$values10[2]) !== null && _detail$values10$ !== void 0 && _detail$values10$.value ? /*#__PURE__*/React.createElement(Row, {
38710
+ className: "border-none",
38711
+ label: t(`${detail === null || detail === void 0 ? void 0 : (_detail$values11 = detail.values) === null || _detail$values11 === void 0 ? void 0 : (_detail$values11$ = _detail$values11[2]) === null || _detail$values11$ === void 0 ? void 0 : _detail$values11$.title}`),
38712
+ textStyle: {
38713
+ marginLeft: "10px"
38714
+ },
38715
+ text: getTranslatedValues(detail === null || detail === void 0 ? void 0 : (_detail$values12 = detail.values) === null || _detail$values12 === void 0 ? void 0 : (_detail$values12$ = _detail$values12[2]) === null || _detail$values12$ === void 0 ? void 0 : _detail$values12$.value, detail === null || detail === void 0 ? void 0 : (_detail$values13 = detail.values) === null || _detail$values13 === void 0 ? void 0 : (_detail$values13$ = _detail$values13[2]) === null || _detail$values13$ === void 0 ? void 0 : _detail$values13$.isNotTranslated)
38716
+ }) : null, detail !== null && detail !== void 0 && (_detail$values14 = detail.values) !== null && _detail$values14 !== void 0 && (_detail$values14$ = _detail$values14[3]) !== null && _detail$values14$ !== void 0 && _detail$values14$.value ? /*#__PURE__*/React.createElement(Row, {
38717
+ className: "border-none",
38718
+ label: t(`${detail === null || detail === void 0 ? void 0 : (_detail$values15 = detail.values) === null || _detail$values15 === void 0 ? void 0 : (_detail$values15$ = _detail$values15[3]) === null || _detail$values15$ === void 0 ? void 0 : _detail$values15$.title}`),
38719
+ textStyle: {
38720
+ marginLeft: "10px"
38721
+ },
38722
+ text: getTranslatedValues(detail === null || detail === void 0 ? void 0 : (_detail$values16 = detail.values) === null || _detail$values16 === void 0 ? void 0 : (_detail$values16$ = _detail$values16[3]) === null || _detail$values16$ === void 0 ? void 0 : _detail$values16$.value, detail === null || detail === void 0 ? void 0 : (_detail$values17 = detail.values) === null || _detail$values17 === void 0 ? void 0 : (_detail$values17$ = _detail$values17[3]) === null || _detail$values17$ === void 0 ? void 0 : _detail$values17$.isNotTranslated)
38723
+ }) : null, detail !== null && detail !== void 0 && (_detail$values18 = detail.values) !== null && _detail$values18 !== void 0 && (_detail$values18$ = _detail$values18[3]) !== null && _detail$values18$ !== void 0 && _detail$values18$.value ? /*#__PURE__*/React.createElement(Row, {
38724
+ className: "border-none",
38725
+ label: t(`${detail === null || detail === void 0 ? void 0 : (_detail$values19 = detail.values) === null || _detail$values19 === void 0 ? void 0 : (_detail$values19$ = _detail$values19[4]) === null || _detail$values19$ === void 0 ? void 0 : _detail$values19$.title}`),
38726
+ textStyle: {
38727
+ marginLeft: "10px"
38728
+ },
38729
+ text: getTranslatedValues(detail === null || detail === void 0 ? void 0 : (_detail$values20 = detail.values) === null || _detail$values20 === void 0 ? void 0 : (_detail$values20$ = _detail$values20[4]) === null || _detail$values20$ === void 0 ? void 0 : _detail$values20$.value, detail === null || detail === void 0 ? void 0 : (_detail$values21 = detail.values) === null || _detail$values21 === void 0 ? void 0 : (_detail$values21$ = _detail$values21[4]) === null || _detail$values21$ === void 0 ? void 0 : _detail$values21$.isNotTranslated)
38730
+ }) : null, /*#__PURE__*/React.createElement(Row, {
38731
+ className: "border-none",
38732
+ label: t(`${nocob === null || nocob === void 0 ? void 0 : nocob.title}`)
38733
+ })), /*#__PURE__*/React.createElement(StatusTable, null, nocob !== null && nocob !== void 0 && nocob.values ? /*#__PURE__*/React.createElement(DocumentsPreview, {
38734
+ documents: getOrderDocuments(nocob === null || nocob === void 0 ? void 0 : nocob.values, true),
38735
+ svgStyles: {},
38736
+ isSendBackFlow: false,
38737
+ isHrLine: true,
38738
+ titleStyles: {
38739
+ fontSize: "18px",
38740
+ lineHeight: "24px",
38741
+ fontWeight: 700,
38742
+ marginBottom: "10px"
38743
+ }
38744
+ }) : /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(CardText, null, t("BPA_NO_DOCUMENTS_UPLOADED_LABEL")))));
38745
+ }) : null, !(detail !== null && detail !== void 0 && detail.isTitleVisible) && (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet23 = detail.additionalDetails) === null || _detail$additionalDet23 === void 0 ? void 0 : (_detail$additionalDet24 = _detail$additionalDet23.permit) === null || _detail$additionalDet24 === void 0 ? void 0 : _detail$additionalDet24.length) > 0 ? detail === null || detail === void 0 ? void 0 : (_detail$additionalDet25 = detail.additionalDetails) === null || _detail$additionalDet25 === void 0 ? void 0 : (_detail$additionalDet26 = _detail$additionalDet25.permit) === null || _detail$additionalDet26 === void 0 ? void 0 : _detail$additionalDet26.map(value => /*#__PURE__*/React.createElement(CardText, {
38746
+ key: value === null || value === void 0 ? void 0 : value.title
38747
+ }, value === null || value === void 0 ? void 0 : value.title)) : null, (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet27 = detail.additionalDetails) === null || _detail$additionalDet27 === void 0 ? void 0 : _detail$additionalDet27.inspectionReport) && (detail === null || detail === void 0 ? void 0 : detail.isFeeDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
38748
+ scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
38749
+ paymentsList: []
38750
+ }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet28 = detail.additionalDetails) === null || _detail$additionalDet28 === void 0 ? void 0 : _detail$additionalDet28.inspectionReport) && (detail === null || detail === void 0 ? void 0 : detail.isFeeDetails) && ((workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data40 = workflowDetails.data) === null || _workflowDetails$data40 === void 0 ? void 0 : (_workflowDetails$data41 = _workflowDetails$data40.actionState) === null || _workflowDetails$data41 === void 0 ? void 0 : (_workflowDetails$data42 = _workflowDetails$data41.nextActions) === null || _workflowDetails$data42 === void 0 ? void 0 : (_workflowDetails$data43 = _workflowDetails$data42[0]) === null || _workflowDetails$data43 === void 0 ? void 0 : _workflowDetails$data43.state) == "POST_PAYMENT_CITIZEN_APPROVAL_PENDING" || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data44 = workflowDetails.data) === null || _workflowDetails$data44 === void 0 ? void 0 : (_workflowDetails$data45 = _workflowDetails$data44.actionState) === null || _workflowDetails$data45 === void 0 ? void 0 : _workflowDetails$data45.state) == "POST_PAYMENT_CITIZEN_APPROVAL_PENDING" || (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data46 = workflowDetails.data) === null || _workflowDetails$data46 === void 0 ? void 0 : (_workflowDetails$data47 = _workflowDetails$data46.actionState) === null || _workflowDetails$data47 === void 0 ? void 0 : _workflowDetails$data47.state) == "POST_PAYMENT_INPROGRESS") && /*#__PURE__*/React.createElement("div", {
38493
38751
  style: {
38494
- border: "0.5px solid #eaeaea",
38495
- margin: "0 0 16px 0"
38752
+ marginTop: "19px",
38753
+ background: "#FAFAFA",
38754
+ border: "1px solid #D6D5D4",
38755
+ borderRadius: "4px",
38756
+ padding: "8px",
38757
+ lineHeight: "19px",
38758
+ maxWidth: "950px",
38759
+ minWidth: "280px"
38496
38760
  }
38497
- }), pdfLoading || isOwnerFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
38761
+ }, /*#__PURE__*/React.createElement(Row, {
38762
+ className: "border-none",
38763
+ label: t(`BLOCKING_REASON`),
38764
+ labelStyle: {
38765
+ fontSize: "15px"
38766
+ },
38767
+ text: (data === null || data === void 0 ? void 0 : data.applicationData.additionalDetails.blockingReason) || "NA"
38768
+ }, " "))), (detail === null || detail === void 0 ? void 0 : detail.title) === "BPA_APPLICANT_DETAILS_HEADER" && /*#__PURE__*/React.createElement("div", {
38769
+ style: {
38770
+ marginTop: "5px"
38771
+ }
38772
+ }, pdfLoading || isOwnerFileLoading ? /*#__PURE__*/React.createElement(Loader, null) : /*#__PURE__*/React.createElement(Table, {
38498
38773
  className: "customTable table-border-style",
38499
38774
  t: t,
38500
38775
  data: ownerDocumentsData,
38501
- columns: documentsColumns,
38776
+ columns: documentsColumnsOwner,
38502
38777
  getCellProps: () => ({
38503
38778
  style: {}
38504
38779
  }),
@@ -38506,60 +38781,17 @@ const BpaApplicationDetail$1 = () => {
38506
38781
  autoSort: true,
38507
38782
  manualPagination: false,
38508
38783
  isPaginationRequired: false
38509
- }))), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet5 = detail.additionalDetails) === null || _detail$additionalDet5 === void 0 ? void 0 : _detail$additionalDet5.scruntinyDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
38510
- scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
38511
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet6 = detail.additionalDetails) === null || _detail$additionalDet6 === void 0 ? void 0 : _detail$additionalDet6.buildingExtractionDetails) && /*#__PURE__*/React.createElement(ScruntinyDetails, {
38512
- scrutinyDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails
38513
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet7 = detail.additionalDetails) === null || _detail$additionalDet7 === void 0 ? void 0 : _detail$additionalDet7.subOccupancyTableDetails) && /*#__PURE__*/React.createElement(SubOccupancyTable, {
38514
- edcrDetails: detail === null || detail === void 0 ? void 0 : detail.additionalDetails,
38515
- applicationData: data === null || data === void 0 ? void 0 : data.applicationData
38516
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet8 = detail.additionalDetails) === null || _detail$additionalDet8 === void 0 ? void 0 : _detail$additionalDet8.documentsWithUrl) && /*#__PURE__*/React.createElement(DocumentsPreview, {
38517
- documents: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet9 = detail.additionalDetails) === null || _detail$additionalDet9 === void 0 ? void 0 : _detail$additionalDet9.documentsWithUrl
38518
- }), (detail === null || detail === void 0 ? void 0 : (_detail$additionalDet0 = detail.additionalDetails) === null || _detail$additionalDet0 === void 0 ? void 0 : _detail$additionalDet0.redirectUrl) && /*#__PURE__*/React.createElement("div", {
38519
- style: {
38520
- fontSize: "16px",
38521
- lineHeight: "24px",
38522
- fontWeight: "400",
38523
- padding: "10px 0px"
38524
- }
38525
- }, /*#__PURE__*/React.createElement(Link, {
38526
- to: detail === null || detail === void 0 ? void 0 : (_detail$additionalDet1 = detail.additionalDetails) === null || _detail$additionalDet1 === void 0 ? void 0 : (_detail$additionalDet10 = _detail$additionalDet1.redirectUrl) === null || _detail$additionalDet10 === void 0 ? void 0 : _detail$additionalDet10.url
38527
- }, /*#__PURE__*/React.createElement("span", {
38528
- className: "link",
38529
- style: {
38530
- color: "#a82227"
38531
- }
38532
- }, detail === null || detail === void 0 ? void 0 : (_detail$additionalDet11 = detail.additionalDetails) === null || _detail$additionalDet11 === void 0 ? void 0 : (_detail$additionalDet12 = _detail$additionalDet11.redirectUrl) === null || _detail$additionalDet12 === void 0 ? void 0 : _detail$additionalDet12.title))));
38533
- })), /*#__PURE__*/React.createElement(Card, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data40 = workflowDetails.data) === null || _workflowDetails$data40 === void 0 ? void 0 : (_workflowDetails$data41 = _workflowDetails$data40.timeline) === null || _workflowDetails$data41 === void 0 ? void 0 : _workflowDetails$data41.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isLoading && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
38784
+ })))) : null);
38785
+ }), /*#__PURE__*/React.createElement(Card, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data48 = workflowDetails.data) === null || _workflowDetails$data48 === void 0 ? void 0 : (_workflowDetails$data49 = _workflowDetails$data48.timeline) === null || _workflowDetails$data49 === void 0 ? void 0 : _workflowDetails$data49.length) > 0 && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(BreakLine, null), ((workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.isLoading) || isLoading) && /*#__PURE__*/React.createElement(Loader, null), !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && !isLoading && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
38534
38786
  id: "timeline"
38535
38787
  }, /*#__PURE__*/React.createElement(CardSectionHeader, {
38536
38788
  style: {
38537
38789
  marginBottom: "16px",
38538
38790
  marginTop: "32px"
38539
38791
  }
38540
- }, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data42 = workflowDetails.data) !== null && _workflowDetails$data42 !== void 0 && _workflowDetails$data42.timeline && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data43 = workflowDetails.data) === null || _workflowDetails$data43 === void 0 ? void 0 : (_workflowDetails$data44 = _workflowDetails$data43.timeline) === null || _workflowDetails$data44 === void 0 ? void 0 : _workflowDetails$data44.length) === 1 ? /*#__PURE__*/React.createElement(CheckPoint, {
38541
- isCompleted: true,
38542
- label: t(`${timelineStatusPrefix}${workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data45 = workflowDetails.data) === null || _workflowDetails$data45 === void 0 ? void 0 : (_workflowDetails$data46 = _workflowDetails$data45.timeline[0]) === null || _workflowDetails$data46 === void 0 ? void 0 : _workflowDetails$data46.state}`),
38543
- customChild: getTimelineCaptions(workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data47 = workflowDetails.data) === null || _workflowDetails$data47 === void 0 ? void 0 : _workflowDetails$data47.timeline[0], workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data48 = workflowDetails.data) === null || _workflowDetails$data48 === void 0 ? void 0 : _workflowDetails$data48.timeline)
38544
- }) : /*#__PURE__*/React.createElement(ConnectingCheckPoints, null, (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data49 = workflowDetails.data) === null || _workflowDetails$data49 === void 0 ? void 0 : _workflowDetails$data49.timeline) && (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data50 = workflowDetails.data) === null || _workflowDetails$data50 === void 0 ? void 0 : _workflowDetails$data50.timeline.slice(0, showAllTimeline ? workflowDetails === null || workflowDetails === void 0 ? void 0 : workflowDetails.data.timeline.length : 2).filter(item => (item === null || item === void 0 ? void 0 : item.performedAction) !== "SAVE_AS_DRAFT").map((checkpoint, index, arr) => {
38545
- var _workflowDetails$data57;
38546
- let timelineStatusPostfix = "";
38547
- if (window.location.href.includes("/obps/")) {
38548
- var _workflowDetails$data51, _workflowDetails$data52, _workflowDetails$data53, _workflowDetails$data54, _workflowDetails$data55, _workflowDetails$data56;
38549
- if (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data51 = workflowDetails.data) !== null && _workflowDetails$data51 !== void 0 && (_workflowDetails$data52 = _workflowDetails$data51.timeline[index - 1]) !== null && _workflowDetails$data52 !== void 0 && (_workflowDetails$data53 = _workflowDetails$data52.state) !== null && _workflowDetails$data53 !== void 0 && _workflowDetails$data53.includes("BACK_FROM") || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data54 = workflowDetails.data) !== null && _workflowDetails$data54 !== void 0 && (_workflowDetails$data55 = _workflowDetails$data54.timeline[index - 1]) !== null && _workflowDetails$data55 !== void 0 && (_workflowDetails$data56 = _workflowDetails$data55.state) !== null && _workflowDetails$data56 !== void 0 && _workflowDetails$data56.includes("SEND_TO_CITIZEN")) timelineStatusPostfix = `_NOT_DONE`;else if ((checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "SEND_TO_ARCHITECT") timelineStatusPostfix = `_BY_ARCHITECT_DONE`;else timelineStatusPostfix = index == 0 ? "" : `_DONE`;
38550
- }
38551
- return /*#__PURE__*/React.createElement(React.Fragment, {
38552
- key: index
38553
- }, /*#__PURE__*/React.createElement(CheckPoint, {
38554
- keyValue: index,
38555
- isCompleted: index === 0,
38556
- info: checkpoint.comment,
38557
- label: t(`${timelineStatusPrefix}${(checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction) === "REOPEN" ? checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint.performedAction : checkpoint === null || checkpoint === void 0 ? void 0 : checkpoint[statusAttribute]}${timelineStatusPostfix}`),
38558
- customChild: getTimelineCaptions(checkpoint, index, workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data57 = workflowDetails.data) === null || _workflowDetails$data57 === void 0 ? void 0 : _workflowDetails$data57.timeline)
38559
- }));
38560
- }))), (workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data58 = workflowDetails.data) === null || _workflowDetails$data58 === void 0 ? void 0 : (_workflowDetails$data59 = _workflowDetails$data58.timeline) === null || _workflowDetails$data59 === void 0 ? void 0 : _workflowDetails$data59.length) > 2 && /*#__PURE__*/React.createElement(LinkButton, {
38561
- label: showAllTimeline ? t("COLLAPSE") : t("VIEW_TIMELINE"),
38562
- onClick: toggleTimeline
38792
+ }, t("ES_APPLICATION_DETAILS_APPLICATION_TIMELINE")), /*#__PURE__*/React.createElement(BPAApplicationTimeline, {
38793
+ application: data === null || data === void 0 ? void 0 : data.applicationData,
38794
+ id: id
38563
38795
  }))))), /*#__PURE__*/React.createElement(Card, {
38564
38796
  style: {
38565
38797
  padding: "20px",
@@ -38596,13 +38828,13 @@ const BpaApplicationDetail$1 = () => {
38596
38828
  applicationData: data === null || data === void 0 ? void 0 : data.applicationData,
38597
38829
  closeModal: closeModal,
38598
38830
  submitAction: submitAction,
38599
- actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data60 = workflowDetails.data) === null || _workflowDetails$data60 === void 0 ? void 0 : _workflowDetails$data60.timeline,
38600
- businessService: workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data61 = workflowDetails.data) !== null && _workflowDetails$data61 !== void 0 && _workflowDetails$data61.applicationBusinessService ? workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data62 = workflowDetails.data) === null || _workflowDetails$data62 === void 0 ? void 0 : _workflowDetails$data62.applicationBusinessService : data === null || data === void 0 ? void 0 : (_data$applicationData78 = data.applicationData) === null || _data$applicationData78 === void 0 ? void 0 : _data$applicationData78.businessService,
38831
+ actionData: workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data50 = workflowDetails.data) === null || _workflowDetails$data50 === void 0 ? void 0 : _workflowDetails$data50.timeline,
38832
+ businessService: workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data51 = workflowDetails.data) !== null && _workflowDetails$data51 !== void 0 && _workflowDetails$data51.applicationBusinessService ? workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data52 = workflowDetails.data) === null || _workflowDetails$data52 === void 0 ? void 0 : _workflowDetails$data52.applicationBusinessService : data === null || data === void 0 ? void 0 : (_data$applicationData82 = data.applicationData) === null || _data$applicationData82 === void 0 ? void 0 : _data$applicationData82.businessService,
38601
38833
  workflowDetails: workflowDetails,
38602
38834
  moduleCode: "BPA",
38603
38835
  blockReason: blockReason === null || blockReason === void 0 ? void 0 : (_blockReason$BPA = blockReason.BPA) === null || _blockReason$BPA === void 0 ? void 0 : _blockReason$BPA.BlockReason
38604
- }) : null, !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data63 = workflowDetails.data) !== null && _workflowDetails$data63 !== void 0 && (_workflowDetails$data64 = _workflowDetails$data63.actionState) !== null && _workflowDetails$data64 !== void 0 && _workflowDetails$data64.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data65 = workflowDetails.data) !== null && _workflowDetails$data65 !== void 0 && _workflowDetails$data65.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
38605
- localeKeyPrefix: `WF_EMPLOYEE_${(_ref = workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data66 = workflowDetails.data) !== null && _workflowDetails$data66 !== void 0 && _workflowDetails$data66.applicationBusinessService ? workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data67 = workflowDetails.data) === null || _workflowDetails$data67 === void 0 ? void 0 : _workflowDetails$data67.applicationBusinessService : data === null || data === void 0 ? void 0 : (_data$applicationData79 = data.applicationData) === null || _data$applicationData79 === void 0 ? void 0 : _data$applicationData79.businessService) === null || _ref === void 0 ? void 0 : _ref.toUpperCase()}`,
38836
+ }) : null, !(workflowDetails !== null && workflowDetails !== void 0 && workflowDetails.isLoading) && /*#__PURE__*/React.createElement(ActionBar, null, displayMenu && (workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data53 = workflowDetails.data) !== null && _workflowDetails$data53 !== void 0 && (_workflowDetails$data54 = _workflowDetails$data53.actionState) !== null && _workflowDetails$data54 !== void 0 && _workflowDetails$data54.nextActions || workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data55 = workflowDetails.data) !== null && _workflowDetails$data55 !== void 0 && _workflowDetails$data55.nextActions) ? /*#__PURE__*/React.createElement(Menu, {
38837
+ localeKeyPrefix: `WF_EMPLOYEE_${(_ref = workflowDetails !== null && workflowDetails !== void 0 && (_workflowDetails$data56 = workflowDetails.data) !== null && _workflowDetails$data56 !== void 0 && _workflowDetails$data56.applicationBusinessService ? workflowDetails === null || workflowDetails === void 0 ? void 0 : (_workflowDetails$data57 = workflowDetails.data) === null || _workflowDetails$data57 === void 0 ? void 0 : _workflowDetails$data57.applicationBusinessService : data === null || data === void 0 ? void 0 : (_data$applicationData83 = data.applicationData) === null || _data$applicationData83 === void 0 ? void 0 : _data$applicationData83.businessService) === null || _ref === void 0 ? void 0 : _ref.toUpperCase()}`,
38606
38838
  options: actions,
38607
38839
  optionKey: "action",
38608
38840
  t: t,
@@ -38611,7 +38843,7 @@ const BpaApplicationDetail$1 = () => {
38611
38843
  ref: menuRef,
38612
38844
  label: t("WF_TAKE_ACTION"),
38613
38845
  onSubmit: () => setDisplayMenu(!displayMenu)
38614
- })), (data === null || data === void 0 ? void 0 : (_data$applicationData80 = data.applicationData) === null || _data$applicationData80 === void 0 ? void 0 : _data$applicationData80.status) === "FIELDINSPECTION_INPROGRESS" && (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info2 = userInfo.info) === null || _userInfo$info2 === void 0 ? void 0 : _userInfo$info2.roles.filter(role => role.code === "BPA_FIELD_INSPECTOR")).length > 0 && /*#__PURE__*/React.createElement(FormComposer, {
38846
+ })), (data === null || data === void 0 ? void 0 : (_data$applicationData84 = data.applicationData) === null || _data$applicationData84 === void 0 ? void 0 : _data$applicationData84.status) === "FIELDINSPECTION_INPROGRESS" && (userInfo === null || userInfo === void 0 ? void 0 : (_userInfo$info2 = userInfo.info) === null || _userInfo$info2 === void 0 ? void 0 : _userInfo$info2.roles.filter(role => role.code === "BPA_FIELD_INSPECTOR")).length > 0 && /*#__PURE__*/React.createElement(FormComposer, {
38615
38847
  heading: t(""),
38616
38848
  isDisabled: !canSubmit,
38617
38849
  config: configs.map(config => {
@@ -38645,7 +38877,7 @@ const Architectconcent = ({
38645
38877
  formData,
38646
38878
  onSelect
38647
38879
  }) => {
38648
- var _user$info, _user$info2, _currentStepData$crea, _currentStepData$crea2, _currentStepData$crea3, _currentStepData$crea4, _currentStepData$crea5, _currentStepData$crea6, _currentStepData$crea7, _currentStepData$crea8, _currentStepData$crea9, _currentStepData$crea0, _currentStepData$crea1, _currentStepData$crea10, _user$info3, _user$info3$roles, _user$info3$roles$fin, _currentStepData$crea11, _currentStepData$crea12, _currentStepData$crea13, _currentStepData$crea14, _currentStepData$crea15, _currentStepData$crea16, _currentStepData$crea17, _currentStepData$crea18, _currentStepData$crea19, _currentStepData$crea20, _currentStepData$crea21, _currentStepData$crea22, _currentStepData$time, _currentStepData$time2, _currentStepData$crea25, _currentStepData$crea26, _currentStepData$crea27, _currentStepData$crea28, _currentStepData$Loca, _currentStepData$Loca2, _currentStepData$Loca3, _currentStepData$Loca4, _currentStepData$Loca5, _currentStepData$Loca6, _currentStepData$Loca7, _currentStepData$Loca8, _currentStepData$Loca9, _currentStepData$Basi, _currentStepData$Basi2, _currentStepData$Basi3, _currentStepData$Basi4, _currentStepData$crea29, _currentStepData$crea30, _currentStepData$crea31, _currentStepData$crea32, _currentStepData$Plot, _currentStepData$Plot2, _currentStepData$Plot3, _currentStepData$Plot4, _user$info4;
38880
+ var _user$info, _user$info2, _currentStepData$crea, _currentStepData$crea2, _currentStepData$crea3, _currentStepData$crea4, _currentStepData$crea5, _currentStepData$crea6, _currentStepData$crea7, _currentStepData$crea8, _currentStepData$crea9, _currentStepData$crea0, _currentStepData$crea1, _currentStepData$crea10, _user$info3, _user$info3$roles, _user$info3$roles$fin, _currentStepData$crea11, _currentStepData$crea12, _currentStepData$crea13, _currentStepData$crea14, _currentStepData$crea15, _currentStepData$crea16, _currentStepData$crea17, _currentStepData$crea18, _currentStepData$crea19, _currentStepData$crea20, _currentStepData$crea21, _currentStepData$crea22, _currentStepData$Time, _currentStepData$Time2, _currentStepData$crea25, _currentStepData$crea26, _currentStepData$crea27, _currentStepData$crea28, _currentStepData$Loca, _currentStepData$Loca2, _currentStepData$Loca3, _currentStepData$Loca4, _currentStepData$Loca5, _currentStepData$Loca6, _currentStepData$Loca7, _currentStepData$Loca8, _currentStepData$Loca9, _currentStepData$Basi, _currentStepData$Basi2, _currentStepData$Basi3, _currentStepData$Basi4, _currentStepData$crea29, _currentStepData$crea30, _currentStepData$crea31, _currentStepData$crea32, _currentStepData$Plot, _currentStepData$Plot2, _currentStepData$Plot3, _currentStepData$Plot4, _user$info4;
38649
38881
  const {
38650
38882
  state
38651
38883
  } = useLocation();
@@ -38681,8 +38913,8 @@ const Architectconcent = ({
38681
38913
  const ward = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea17 = currentStepData.createdResponse) === null || _currentStepData$crea17 === void 0 ? void 0 : (_currentStepData$crea18 = _currentStepData$crea17.additionalDetails) === null || _currentStepData$crea18 === void 0 ? void 0 : _currentStepData$crea18.wardnumber) || "";
38682
38914
  const area = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea19 = currentStepData.createdResponse) === null || _currentStepData$crea19 === void 0 ? void 0 : (_currentStepData$crea20 = _currentStepData$crea19.additionalDetails) === null || _currentStepData$crea20 === void 0 ? void 0 : _currentStepData$crea20.area) || "";
38683
38915
  const zone = (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea21 = currentStepData.createdResponse) === null || _currentStepData$crea21 === void 0 ? void 0 : (_currentStepData$crea22 = _currentStepData$crea21.additionalDetails) === null || _currentStepData$crea22 === void 0 ? void 0 : _currentStepData$crea22.zonenumber) || "";
38684
- const [TimeStamp, setOTPVerifiedTimestamp] = useState((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$time = currentStepData.timeStamp) === null || _currentStepData$time === void 0 ? void 0 : _currentStepData$time.TimeStamp) || "");
38685
- const [isArchitectDeclared, setIsArchitectDeclared] = useState((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$time2 = currentStepData.timeStamp) === null || _currentStepData$time2 === void 0 ? void 0 : _currentStepData$time2.isArchitectDeclared) || "");
38916
+ const [TimeStamp, setOTPVerifiedTimestamp] = useState((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time = currentStepData.TimeStamp) === null || _currentStepData$Time === void 0 ? void 0 : _currentStepData$Time.TimeStamp) || "");
38917
+ const [isArchitectDeclared, setIsArchitectDeclared] = useState((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time2 = currentStepData.TimeStamp) === null || _currentStepData$Time2 === void 0 ? void 0 : _currentStepData$Time2.isArchitectDeclared) || "");
38686
38918
  const parseFormattedTimestamp = str => {
38687
38919
  const [day, monthName, year,, time, period] = str === null || str === void 0 ? void 0 : str.split(" ");
38688
38920
  const [hour, minute, second] = time === null || time === void 0 ? void 0 : time.split(":");
@@ -38696,15 +38928,15 @@ const Architectconcent = ({
38696
38928
  const DateOnly = TimeStamp === "" ? "" : `${String(d === null || d === void 0 ? void 0 : d.getDate()).padStart(2, "0")}/${String((d === null || d === void 0 ? void 0 : d.getMonth()) + 1).padStart(2, "0")}/${d === null || d === void 0 ? void 0 : d.getFullYear()}`;
38697
38929
  console.log(currentStepData, isArchitectDeclared, TimeStamp, "PARAM");
38698
38930
  useEffect(() => {
38699
- var _currentStepData$Time, _currentStepData$Time3;
38931
+ var _currentStepData$Time3, _currentStepData$Time5;
38700
38932
  console.log("currentStepDataInArchitectConsent", currentStepData);
38701
- if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Time = currentStepData.Timestamp) !== null && _currentStepData$Time !== void 0 && _currentStepData$Time.TimeStamp) {
38702
- var _currentStepData$Time2;
38703
- setTimeout(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time2 = currentStepData.Timestamp) === null || _currentStepData$Time2 === void 0 ? void 0 : _currentStepData$Time2.TimeStamp);
38704
- }
38705
- if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Time3 = currentStepData.Timestamp) !== null && _currentStepData$Time3 !== void 0 && _currentStepData$Time3.isArchitectDeclared) {
38933
+ if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Time3 = currentStepData.Timestamp) !== null && _currentStepData$Time3 !== void 0 && _currentStepData$Time3.TimeStamp) {
38706
38934
  var _currentStepData$Time4;
38707
- setIsArchitectDeclared(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time4 = currentStepData.Timestamp) === null || _currentStepData$Time4 === void 0 ? void 0 : _currentStepData$Time4.isArchitectDeclared);
38935
+ setOTPVerifiedTimestamp(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time4 = currentStepData.Timestamp) === null || _currentStepData$Time4 === void 0 ? void 0 : _currentStepData$Time4.TimeStamp);
38936
+ }
38937
+ if (currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Time5 = currentStepData.Timestamp) !== null && _currentStepData$Time5 !== void 0 && _currentStepData$Time5.isArchitectDeclared) {
38938
+ var _currentStepData$Time6;
38939
+ setIsArchitectDeclared(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Time6 = currentStepData.Timestamp) === null || _currentStepData$Time6 === void 0 ? void 0 : _currentStepData$Time6.isArchitectDeclared);
38708
38940
  }
38709
38941
  }, [currentStepData]);
38710
38942
  useEffect(() => {
@@ -38742,7 +38974,7 @@ const Architectconcent = ({
38742
38974
  </div>
38743
38975
 
38744
38976
  <div style="margin-top:-52px;">
38745
- <p style="margin-bottom:-32px;"><strong>To:</strong></p>
38977
+ <p style="margin-bottom:-32px;"><strong>To</strong></p>
38746
38978
  <p style="margin-bottom:-32px;"><strong>${(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea27 = currentStepData.createdResponse) === null || _currentStepData$crea27 === void 0 ? void 0 : (_currentStepData$crea28 = _currentStepData$crea27.additionalDetails) === null || _currentStepData$crea28 === void 0 ? void 0 : _currentStepData$crea28.Ulblisttype) === "Municipal Corporation" ? "The Municipal Commissioner" : "The Executive officer"}</strong></p>
38747
38979
  <p style="margin-bottom:-32px;">${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Loca = currentStepData.LocationDetails) === null || _currentStepData$Loca === void 0 ? void 0 : (_currentStepData$Loca2 = _currentStepData$Loca.selectedCity) === null || _currentStepData$Loca2 === void 0 ? void 0 : (_currentStepData$Loca3 = _currentStepData$Loca2.city) === null || _currentStepData$Loca3 === void 0 ? void 0 : _currentStepData$Loca3.ulbType}</p>
38748
38980
  <p style="margin-bottom:-32px;">${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Loca4 = currentStepData.LocationDetails) === null || _currentStepData$Loca4 === void 0 ? void 0 : (_currentStepData$Loca5 = _currentStepData$Loca4.selectedCity) === null || _currentStepData$Loca5 === void 0 ? void 0 : (_currentStepData$Loca6 = _currentStepData$Loca5.city) === null || _currentStepData$Loca6 === void 0 ? void 0 : _currentStepData$Loca6.districtName}</p>
@@ -38860,7 +39092,7 @@ const Architectconcent = ({
38860
39092
  }, "architectconsent");
38861
39093
  if (result !== null && result !== void 0 && (_result$filestoreIds = result.filestoreIds) !== null && _result$filestoreIds !== void 0 && _result$filestoreIds[0]) {
38862
39094
  var _result$filestoreIds2;
38863
- alert("File Uploaded Successfully");
39095
+ alert(t("File Uploaded Successfully"));
38864
39096
  onSelect({
38865
39097
  isArchitectDeclared: result === null || result === void 0 ? void 0 : (_result$filestoreIds2 = result.filestoreIds) === null || _result$filestoreIds2 === void 0 ? void 0 : _result$filestoreIds2[0],
38866
39098
  TimeStamp: timestamp
@@ -42791,7 +43023,7 @@ const OBPSService = {
42791
43023
  };
42792
43024
  },
42793
43025
  BPADetailsPage: async (tenantId, filters) => {
42794
- var _response$BPA, _response$BPA$, _response$BPA$$docume, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA2$$addit2, _response$BPA3, _response$BPA3$, _response$BPA3$$addit, _response$BPA4, _response$BPA4$, _response$BPA4$$addit, _mdmsRes$BPA, _edcr$planDetail2, _edcr$planDetail2$plo, _edcr$planDetail3, _response$BPA5, _response$BPA5$, _bpaResponse$BPA, _bpaResponse$BPA$, _bpaResponse$BPA2, _bpaResponse$BPA2$, _bpaResponse$BPA3, _bpaResponse$BPA3$, _appDocumentFileStore, _appBusinessService, _fetchBillRes, _fetchBillRes$Bill, _BPA$additionalDetail, _BPA$additionalDetail2, _BPA$additionalDetail3, _BPA$additionalDetail4, _BPA$additionalDetail5, _BPA$additionalDetail6, _BPA$additionalDetail7, _permitcondn, _permitcondn2, _BPA$auditDetails, _BPA$auditDetails2, _edcr$planDetail4, _edcr$planDetail4$pla, _BPA$additionalDetail1, _edcr$planDetail5, _edcr$planDetail5$pla, _edcr$planDetail6, _edcr$planDetail6$pla, _edcr$planDetail7, _edcr$planDetail7$pla, _edcr$planDetail8, _edcr$planDetail8$pla, _BPA$additionalDetail10, _BPA$additionalDetail11, _edcr$planDetail9, _edcr$planDetail9$blo, _edcr$planDetail9$blo2, _edcr$planDetail9$blo3, _edcr$planDetail0, _edcr$planDetail0$blo, _edcr$planDetail0$blo2, _edcr$planDetail0$blo3, _edcr$planDetail1, _edcr$planDetail1$blo, _edcr$planDetail1$blo2, _edcr$planDetail1$blo3, _edcr$planDetail10, _edcr$planDetail10$pl, _BPA$landInfo, _BPA$landInfo$address, _BPA$landInfo2, _BPA$landInfo2$addres, _BPA$landInfo3, _BPA$landInfo3$addres, _BPA$landInfo3$addres2, _BPA$landInfo4, _BPA$landInfo4$addres, _BPA$landInfo4$addres2, _BPA$landInfo5, _BPA$landInfo5$addres, _BPA$landInfo5$addres2, _BPA$landInfo5$addres3, _BPA$landInfo5$addres4, _BPA$landInfo6, _BPA$landInfo6$addres, _BPA$landInfo6$addres2, _BPA$landInfo7, _BPA$landInfo7$addres, _BPA$landInfo7$addres2, _BPA$landInfo7$addres3, _BPA$landInfo7$addres4, _BPA$landInfo8, _BPA$landInfo8$owners, _BPA$landInfo9, _BPA$landInfo9$owners, _BPA$landInfo1, _BPA$landInfo1$owners, _BPA$documents, _BPA$additionalDetail12, _BPA$additionalDetail13, _BPA$additionalDetail14, _BPA$additionalDetail15, _BPA$additionalDetail16, _BPA$additionalDetail17, _BPA$additionalDetail18, _billDetails$addition, _billDetails$addition2, _details;
43026
+ var _response$BPA, _response$BPA$, _response$BPA$$docume, _response$BPA2, _response$BPA2$, _response$BPA2$$addit, _response$BPA2$$addit2, _response$BPA3, _response$BPA3$, _response$BPA3$$addit, _response$BPA4, _response$BPA4$, _response$BPA4$$addit, _mdmsRes$BPA, _edcr$planDetail2, _edcr$planDetail2$plo, _edcr$planDetail3, _response$BPA5, _response$BPA5$, _bpaResponse$BPA, _bpaResponse$BPA$, _bpaResponse$BPA2, _bpaResponse$BPA2$, _bpaResponse$BPA3, _bpaResponse$BPA3$, _appDocumentFileStore, _appBusinessService, _fetchBillRes, _fetchBillRes$Bill, _BPA$additionalDetail, _BPA$additionalDetail2, _BPA$additionalDetail3, _BPA$additionalDetail4, _BPA$additionalDetail5, _BPA$additionalDetail6, _BPA$additionalDetail7, _permitcondn, _permitcondn2, _BPA$auditDetails, _BPA$auditDetails2, _edcr$planDetail4, _edcr$planDetail4$pla, _BPA$additionalDetail1, _edcr$planDetail5, _edcr$planDetail5$pla, _edcr$planDetail6, _edcr$planDetail6$pla, _edcr$planDetail7, _edcr$planDetail7$pla, _edcr$planDetail8, _edcr$planDetail8$pla, _BPA$additionalDetail10, _BPA$additionalDetail11, _BPA$additionalDetail12, _BPA$additionalDetail13, _BPA$landInfo, _BPA$landInfo$address, _BPA$landInfo2, _BPA$landInfo2$addres, _BPA$landInfo3, _BPA$landInfo3$addres, _BPA$landInfo3$addres2, _BPA$landInfo4, _BPA$landInfo4$addres, _BPA$landInfo4$addres2, _BPA$landInfo5, _BPA$landInfo5$addres, _BPA$landInfo5$addres2, _BPA$landInfo5$addres3, _BPA$landInfo5$addres4, _BPA$landInfo6, _BPA$landInfo6$addres, _BPA$landInfo6$addres2, _BPA$landInfo7, _BPA$landInfo7$addres, _BPA$landInfo7$addres2, _BPA$landInfo7$addres3, _BPA$landInfo7$addres4, _BPA$additionalDetail14, _BPA$additionalDetail15, _BPA$additionalDetail16, _BPA$additionalDetail17, _BPA$additionalDetail18, _BPA$additionalDetail19, _BPA$additionalDetail20, _BPA$additionalDetail21, _BPA$additionalDetail22, _BPA$additionalDetail23, _BPA$additionalDetail24, _BPA$additionalDetail25, _BPA$additionalDetail26, _BPA$additionalDetail27, _BPA$additionalDetail28, _BPA$additionalDetail29, _BPA$additionalDetail30, _BPA$additionalDetail31, _BPA$additionalDetail32, _BPA$additionalDetail33, _BPA$additionalDetail34, _BPA$additionalDetail35, _BPA$additionalDetail36, _BPA$additionalDetail37, _BPA$additionalDetail38, _BPA$additionalDetail39, _BPA$additionalDetail40, _BPA$additionalDetail41, _BPA$additionalDetail42, _BPA$additionalDetail43, _BPA$additionalDetail44, _BPA$additionalDetail45, _BPA$additionalDetail46, _edcr$planDetail9, _edcr$planDetail9$blo, _edcr$planDetail9$blo2, _edcr$planDetail9$blo3, _edcr$planDetail0, _edcr$planDetail0$blo, _edcr$planDetail0$blo2, _edcr$planDetail0$blo3, _edcr$planDetail1, _edcr$planDetail1$blo, _edcr$planDetail1$blo2, _edcr$planDetail1$blo3, _edcr$planDetail10, _edcr$planDetail10$pl, _BPA$landInfo8, _BPA$landInfo8$owners, _BPA$landInfo9, _BPA$landInfo9$owners, _BPA$landInfo1, _BPA$landInfo1$owners, _BPA$documents, _BPA$additionalDetail47, _BPA$additionalDetail48, _BPA$additionalDetail49, _BPA$additionalDetail50, _BPA$additionalDetail51, _BPA$additionalDetail52, _BPA$additionalDetail53, _billDetails$addition, _billDetails$addition2, _details;
42795
43027
  console.log("edcrInHooks");
42796
43028
  const response = await OBPSService.BPASearch(tenantId, filters);
42797
43029
  console.log(response, "APPP");
@@ -43115,7 +43347,7 @@ const OBPSService = {
43115
43347
  }]
43116
43348
  };
43117
43349
  const plotDetails = {
43118
- title: "BPA_PLOT_DETAILS_TITLE",
43350
+ title: "BPA_PLOT_AND_SITE_DETAILS_TITLE",
43119
43351
  asSectionHeader: true,
43120
43352
  isCommon: true,
43121
43353
  values: [{
@@ -43131,13 +43363,158 @@ const OBPSService = {
43131
43363
  title: "BPA_KHATHA_NUMBER_LABEL",
43132
43364
  value: (edcr === null || edcr === void 0 ? void 0 : (_edcr$planDetail8 = edcr.planDetail) === null || _edcr$planDetail8 === void 0 ? void 0 : (_edcr$planDetail8$pla = _edcr$planDetail8.planInformation) === null || _edcr$planDetail8$pla === void 0 ? void 0 : _edcr$planDetail8$pla.khatuniNo) || "NA",
43133
43365
  isNotTranslated: true
43366
+ }, {
43367
+ title: "PROPERTY_ID",
43368
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail10 = BPA.additionalDetails) === null || _BPA$additionalDetail10 === void 0 ? void 0 : _BPA$additionalDetail10.propertyuid) || "NA",
43369
+ isNotTranslated: true
43370
+ }, {
43371
+ title: "BPA_IS_CLUBBED_PLOT_LABEL",
43372
+ value: BPA !== null && BPA !== void 0 && (_BPA$additionalDetail11 = BPA.additionalDetails) !== null && _BPA$additionalDetail11 !== void 0 && _BPA$additionalDetail11.isClubbedPlot ? "YES" : "NO",
43373
+ isNotTranslated: true
43134
43374
  }, {
43135
43375
  title: "BPA_BOUNDARY_LAND_REG_DETAIL_LABEL",
43136
- value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail10 = BPA.additionalDetails) === null || _BPA$additionalDetail10 === void 0 ? void 0 : _BPA$additionalDetail10.registrationDetails) || "NA",
43376
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail12 = BPA.additionalDetails) === null || _BPA$additionalDetail12 === void 0 ? void 0 : _BPA$additionalDetail12.registrationDetails) || "NA",
43137
43377
  isNotTranslated: true
43138
43378
  }, {
43139
43379
  title: "BPA_BOUNDARY_WALL_LENGTH_LABEL",
43140
- value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail11 = BPA.additionalDetails) === null || _BPA$additionalDetail11 === void 0 ? void 0 : _BPA$additionalDetail11.boundaryWallLength) || "NA",
43380
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail13 = BPA.additionalDetails) === null || _BPA$additionalDetail13 === void 0 ? void 0 : _BPA$additionalDetail13.boundaryWallLength) || "NA",
43381
+ isNotTranslated: true
43382
+ }, {
43383
+ title: "BPA_DETAILS_PIN_LABEL",
43384
+ value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo = BPA.landInfo) === null || _BPA$landInfo === void 0 ? void 0 : (_BPA$landInfo$address = _BPA$landInfo.address) === null || _BPA$landInfo$address === void 0 ? void 0 : _BPA$landInfo$address.pincode
43385
+ }, {
43386
+ title: "BPA_CITY_LABEL",
43387
+ value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo2 = BPA.landInfo) === null || _BPA$landInfo2 === void 0 ? void 0 : (_BPA$landInfo2$addres = _BPA$landInfo2.address) === null || _BPA$landInfo2$addres === void 0 ? void 0 : _BPA$landInfo2$addres.city
43388
+ }, {
43389
+ title: "BPA_LOC_MOHALLA_LABEL",
43390
+ value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo3 = BPA.landInfo) === null || _BPA$landInfo3 === void 0 ? void 0 : (_BPA$landInfo3$addres = _BPA$landInfo3.address) === null || _BPA$landInfo3$addres === void 0 ? void 0 : (_BPA$landInfo3$addres2 = _BPA$landInfo3$addres.locality) === null || _BPA$landInfo3$addres2 === void 0 ? void 0 : _BPA$landInfo3$addres2.name
43391
+ }, {
43392
+ title: "BPA_LAT",
43393
+ value: BPA !== null && BPA !== void 0 && (_BPA$landInfo4 = BPA.landInfo) !== null && _BPA$landInfo4 !== void 0 && (_BPA$landInfo4$addres = _BPA$landInfo4.address) !== null && _BPA$landInfo4$addres !== void 0 && (_BPA$landInfo4$addres2 = _BPA$landInfo4$addres.geoLocation) !== null && _BPA$landInfo4$addres2 !== void 0 && _BPA$landInfo4$addres2.latitude ? BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo5 = BPA.landInfo) === null || _BPA$landInfo5 === void 0 ? void 0 : (_BPA$landInfo5$addres = _BPA$landInfo5.address) === null || _BPA$landInfo5$addres === void 0 ? void 0 : (_BPA$landInfo5$addres2 = _BPA$landInfo5$addres.geoLocation) === null || _BPA$landInfo5$addres2 === void 0 ? void 0 : (_BPA$landInfo5$addres3 = _BPA$landInfo5$addres2.latitude) === null || _BPA$landInfo5$addres3 === void 0 ? void 0 : (_BPA$landInfo5$addres4 = _BPA$landInfo5$addres3.toFixed(6)) === null || _BPA$landInfo5$addres4 === void 0 ? void 0 : _BPA$landInfo5$addres4.toString() : "NA"
43394
+ }, {
43395
+ title: "BPA_LONG",
43396
+ value: BPA !== null && BPA !== void 0 && (_BPA$landInfo6 = BPA.landInfo) !== null && _BPA$landInfo6 !== void 0 && (_BPA$landInfo6$addres = _BPA$landInfo6.address) !== null && _BPA$landInfo6$addres !== void 0 && (_BPA$landInfo6$addres2 = _BPA$landInfo6$addres.geoLocation) !== null && _BPA$landInfo6$addres2 !== void 0 && _BPA$landInfo6$addres2.longitude ? BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo7 = BPA.landInfo) === null || _BPA$landInfo7 === void 0 ? void 0 : (_BPA$landInfo7$addres = _BPA$landInfo7.address) === null || _BPA$landInfo7$addres === void 0 ? void 0 : (_BPA$landInfo7$addres2 = _BPA$landInfo7$addres.geoLocation) === null || _BPA$landInfo7$addres2 === void 0 ? void 0 : (_BPA$landInfo7$addres3 = _BPA$landInfo7$addres2.longitude) === null || _BPA$landInfo7$addres3 === void 0 ? void 0 : (_BPA$landInfo7$addres4 = _BPA$landInfo7$addres3.toFixed(6)) === null || _BPA$landInfo7$addres4 === void 0 ? void 0 : _BPA$landInfo7$addres4.toString() : "NA"
43397
+ }, {
43398
+ title: "BPA_WARD_NUMBER_LABEL",
43399
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail14 = BPA.additionalDetails) === null || _BPA$additionalDetail14 === void 0 ? void 0 : _BPA$additionalDetail14.wardnumber) || "NA",
43400
+ isNotTranslated: true
43401
+ }, {
43402
+ title: "BPA_ZONE_NUMBER_LABEL",
43403
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail15 = BPA.additionalDetails) === null || _BPA$additionalDetail15 === void 0 ? void 0 : _BPA$additionalDetail15.zonenumber) || "NA",
43404
+ isNotTranslated: true
43405
+ }, {
43406
+ title: "BPA_KHASRA_NUMBER_LABEL",
43407
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail16 = BPA.additionalDetails) === null || _BPA$additionalDetail16 === void 0 ? void 0 : _BPA$additionalDetail16.khasraNumber) || "NA",
43408
+ isNotTranslated: true
43409
+ }, {
43410
+ title: "BPA_ARCHITECT_ID",
43411
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail17 = BPA.additionalDetails) === null || _BPA$additionalDetail17 === void 0 ? void 0 : _BPA$additionalDetail17.architectid) || "NA",
43412
+ isNotTranslated: true
43413
+ }, {
43414
+ title: "BPA_NUMBER_OF_BATHS",
43415
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail18 = BPA.additionalDetails) === null || _BPA$additionalDetail18 === void 0 ? void 0 : _BPA$additionalDetail18.bathnumber) || "NA",
43416
+ isNotTranslated: true
43417
+ }, {
43418
+ title: "BPA_NUMBER_OF_KITCHENS",
43419
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail19 = BPA.additionalDetails) === null || _BPA$additionalDetail19 === void 0 ? void 0 : _BPA$additionalDetail19.kitchenNumber) || "NA",
43420
+ isNotTranslated: true
43421
+ }, {
43422
+ title: "BPA_APPROX_INHABITANTS_FOR_ACCOMODATION",
43423
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail20 = BPA.additionalDetails) === null || _BPA$additionalDetail20 === void 0 ? void 0 : _BPA$additionalDetail20.approxinhabitants) || "NA",
43424
+ isNotTranslated: true
43425
+ }, {
43426
+ title: "BPA_DISTANCE_FROM_SEWER",
43427
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail21 = BPA.additionalDetails) === null || _BPA$additionalDetail21 === void 0 ? void 0 : _BPA$additionalDetail21.distancefromsewer) || "NA",
43428
+ isNotTranslated: true
43429
+ }, {
43430
+ title: "BPA_SOURCE_OF_WATER",
43431
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail22 = BPA.additionalDetails) === null || _BPA$additionalDetail22 === void 0 ? void 0 : _BPA$additionalDetail22.sourceofwater) || "NA",
43432
+ isNotTranslated: true
43433
+ }, {
43434
+ title: "BPA_NUMBER_OF_WATER_CLOSETS",
43435
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail23 = BPA.additionalDetails) === null || _BPA$additionalDetail23 === void 0 ? void 0 : _BPA$additionalDetail23.watercloset) || "NA",
43436
+ isNotTranslated: true
43437
+ }, {
43438
+ title: "BPA_MATERIAL_TO-BE_USED_IN_WALLS",
43439
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail24 = BPA.additionalDetails) === null || _BPA$additionalDetail24 === void 0 ? void 0 : _BPA$additionalDetail24.materialused) || "NA",
43440
+ isNotTranslated: true
43441
+ }, {
43442
+ title: "BPA_MATERIAL_TO-BE_USED_IN_FLOOR",
43443
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail25 = BPA.additionalDetails) === null || _BPA$additionalDetail25 === void 0 ? void 0 : _BPA$additionalDetail25.materialusedinfloor) || "NA",
43444
+ isNotTranslated: true
43445
+ }, {
43446
+ title: "BPA_MATERIAL_TO-BE_USED_IN_ROOFS",
43447
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail26 = BPA.additionalDetails) === null || _BPA$additionalDetail26 === void 0 ? void 0 : _BPA$additionalDetail26.materialusedinroofs) || "NA",
43448
+ isNotTranslated: true
43449
+ }, {
43450
+ title: "BPA_ESTIMATED_COST_LABEL",
43451
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail27 = BPA.additionalDetails) === null || _BPA$additionalDetail27 === void 0 ? void 0 : _BPA$additionalDetail27.estimatedCost) || "NA",
43452
+ isNotTranslated: true
43453
+ }]
43454
+ };
43455
+ const additionalDetail = {
43456
+ title: "BPA_ADDITIONAL_BUILDING_DETAILS",
43457
+ asSectionHeader: true,
43458
+ isCommon: true,
43459
+ values: [{
43460
+ title: "BPA_ULB_NAME",
43461
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail28 = BPA.additionalDetails) === null || _BPA$additionalDetail28 === void 0 ? void 0 : _BPA$additionalDetail28.UlbName) || "NA",
43462
+ isNotTranslated: true
43463
+ }, {
43464
+ title: "BPA_ULB_TYPE",
43465
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail29 = BPA.additionalDetails) === null || _BPA$additionalDetail29 === void 0 ? void 0 : _BPA$additionalDetail29.Ulblisttype) || "NA",
43466
+ isNotTranslated: true
43467
+ }, {
43468
+ title: "BPA_APPROVED_COLONY",
43469
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail30 = BPA.additionalDetails) === null || _BPA$additionalDetail30 === void 0 ? void 0 : _BPA$additionalDetail30.approvedColony) || "NA",
43470
+ isNotTranslated: true
43471
+ }, ...((BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail31 = BPA.additionalDetails) === null || _BPA$additionalDetail31 === void 0 ? void 0 : _BPA$additionalDetail31.approvedColony) === "YES" ? [{
43472
+ title: "BPA_APPROVED_COLONY_NAME",
43473
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail32 = BPA.additionalDetails) === null || _BPA$additionalDetail32 === void 0 ? void 0 : _BPA$additionalDetail32.nameofApprovedcolony) || "NA",
43474
+ isNotTranslated: true
43475
+ }] : []), {
43476
+ title: "BPA_MASTER_PLAN",
43477
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail33 = BPA.additionalDetails) === null || _BPA$additionalDetail33 === void 0 ? void 0 : _BPA$additionalDetail33.masterPlan) || "NA",
43478
+ isNotTranslated: true
43479
+ }, ...((BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail34 = BPA.additionalDetails) === null || _BPA$additionalDetail34 === void 0 ? void 0 : _BPA$additionalDetail34.masterPlan) === "YES" ? [{
43480
+ title: "BPA_USE",
43481
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail35 = BPA.additionalDetails) === null || _BPA$additionalDetail35 === void 0 ? void 0 : _BPA$additionalDetail35.use) || "NA",
43482
+ isNotTranslated: true
43483
+ }] : []), {
43484
+ title: "BPA_PURCHASED_FAR",
43485
+ value: BPA !== null && BPA !== void 0 && (_BPA$additionalDetail36 = BPA.additionalDetails) !== null && _BPA$additionalDetail36 !== void 0 && _BPA$additionalDetail36.purchasedFAR ? "YES" : "NO",
43486
+ isNotTranslated: true
43487
+ }, ...(BPA !== null && BPA !== void 0 && (_BPA$additionalDetail37 = BPA.additionalDetails) !== null && _BPA$additionalDetail37 !== void 0 && _BPA$additionalDetail37.purchasedFAR ? [{
43488
+ title: "BPA_PROVIDED_FAR",
43489
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail38 = BPA.additionalDetails) === null || _BPA$additionalDetail38 === void 0 ? void 0 : _BPA$additionalDetail38.providedFAR) || "NA",
43490
+ isNotTranslated: true
43491
+ }] : []), {
43492
+ title: "BPA_GREEN_BUIDINGS",
43493
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail39 = BPA.additionalDetails) === null || _BPA$additionalDetail39 === void 0 ? void 0 : _BPA$additionalDetail39.greenbuilding) || "NA",
43494
+ isNotTranslated: true
43495
+ }, ...((BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail40 = BPA.additionalDetails) === null || _BPA$additionalDetail40 === void 0 ? void 0 : _BPA$additionalDetail40.greenbuilding) === "YES" ? [{
43496
+ title: "BPA_SELECTED_RATINGS",
43497
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail41 = BPA.additionalDetails) === null || _BPA$additionalDetail41 === void 0 ? void 0 : _BPA$additionalDetail41.rating) || "NA",
43498
+ isNotTranslated: true
43499
+ }] : []), {
43500
+ title: "BPA_RESTRICTED_AREA",
43501
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail42 = BPA.additionalDetails) === null || _BPA$additionalDetail42 === void 0 ? void 0 : _BPA$additionalDetail42.restrictedArea) || "NA",
43502
+ isNotTranslated: true
43503
+ }, {
43504
+ title: "BPA_PROPOSED_SITE_TYPE",
43505
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail43 = BPA.additionalDetails) === null || _BPA$additionalDetail43 === void 0 ? void 0 : _BPA$additionalDetail43.proposedSite) || "NA",
43506
+ isNotTranslated: true
43507
+ }, {
43508
+ title: "ECBC - Proposed Connected Electrical Load is above 100 Kw",
43509
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail44 = BPA.additionalDetails) === null || _BPA$additionalDetail44 === void 0 ? void 0 : _BPA$additionalDetail44.ecbcElectricalLoad) || "NA",
43510
+ isNotTranslated: true
43511
+ }, {
43512
+ title: "ECBC - Proposed Demand of Electrical Load is above 120 Kw",
43513
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail45 = BPA.additionalDetails) === null || _BPA$additionalDetail45 === void 0 ? void 0 : _BPA$additionalDetail45.ecbcDemandLoad) || "NA",
43514
+ isNotTranslated: true
43515
+ }, {
43516
+ title: "ECBC - Proposed Air Conditioned Area above 500 sq.mt",
43517
+ value: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail46 = BPA.additionalDetails) === null || _BPA$additionalDetail46 === void 0 ? void 0 : _BPA$additionalDetail46.ecbcAirConditioned) || "NA",
43141
43518
  isNotTranslated: true
43142
43519
  }]
43143
43520
  };
@@ -43227,27 +43604,6 @@ const OBPSService = {
43227
43604
  }
43228
43605
  };
43229
43606
  console.log("Log 3");
43230
- const addressDetails = {
43231
- title: "BPA_NEW_TRADE_DETAILS_HEADER_DETAILS",
43232
- asSectionHeader: true,
43233
- isCommon: true,
43234
- values: [{
43235
- title: "BPA_DETAILS_PIN_LABEL",
43236
- value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo = BPA.landInfo) === null || _BPA$landInfo === void 0 ? void 0 : (_BPA$landInfo$address = _BPA$landInfo.address) === null || _BPA$landInfo$address === void 0 ? void 0 : _BPA$landInfo$address.pincode
43237
- }, {
43238
- title: "BPA_CITY_LABEL",
43239
- value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo2 = BPA.landInfo) === null || _BPA$landInfo2 === void 0 ? void 0 : (_BPA$landInfo2$addres = _BPA$landInfo2.address) === null || _BPA$landInfo2$addres === void 0 ? void 0 : _BPA$landInfo2$addres.city
43240
- }, {
43241
- title: "BPA_LOC_MOHALLA_LABEL",
43242
- value: BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo3 = BPA.landInfo) === null || _BPA$landInfo3 === void 0 ? void 0 : (_BPA$landInfo3$addres = _BPA$landInfo3.address) === null || _BPA$landInfo3$addres === void 0 ? void 0 : (_BPA$landInfo3$addres2 = _BPA$landInfo3$addres.locality) === null || _BPA$landInfo3$addres2 === void 0 ? void 0 : _BPA$landInfo3$addres2.name
43243
- }, {
43244
- title: "BPA_LAT",
43245
- value: BPA !== null && BPA !== void 0 && (_BPA$landInfo4 = BPA.landInfo) !== null && _BPA$landInfo4 !== void 0 && (_BPA$landInfo4$addres = _BPA$landInfo4.address) !== null && _BPA$landInfo4$addres !== void 0 && (_BPA$landInfo4$addres2 = _BPA$landInfo4$addres.geoLocation) !== null && _BPA$landInfo4$addres2 !== void 0 && _BPA$landInfo4$addres2.latitude ? BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo5 = BPA.landInfo) === null || _BPA$landInfo5 === void 0 ? void 0 : (_BPA$landInfo5$addres = _BPA$landInfo5.address) === null || _BPA$landInfo5$addres === void 0 ? void 0 : (_BPA$landInfo5$addres2 = _BPA$landInfo5$addres.geoLocation) === null || _BPA$landInfo5$addres2 === void 0 ? void 0 : (_BPA$landInfo5$addres3 = _BPA$landInfo5$addres2.latitude) === null || _BPA$landInfo5$addres3 === void 0 ? void 0 : (_BPA$landInfo5$addres4 = _BPA$landInfo5$addres3.toFixed(6)) === null || _BPA$landInfo5$addres4 === void 0 ? void 0 : _BPA$landInfo5$addres4.toString() : "NA"
43246
- }, {
43247
- title: "BPA_LONG",
43248
- value: BPA !== null && BPA !== void 0 && (_BPA$landInfo6 = BPA.landInfo) !== null && _BPA$landInfo6 !== void 0 && (_BPA$landInfo6$addres = _BPA$landInfo6.address) !== null && _BPA$landInfo6$addres !== void 0 && (_BPA$landInfo6$addres2 = _BPA$landInfo6$addres.geoLocation) !== null && _BPA$landInfo6$addres2 !== void 0 && _BPA$landInfo6$addres2.longitude ? BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo7 = BPA.landInfo) === null || _BPA$landInfo7 === void 0 ? void 0 : (_BPA$landInfo7$addres = _BPA$landInfo7.address) === null || _BPA$landInfo7$addres === void 0 ? void 0 : (_BPA$landInfo7$addres2 = _BPA$landInfo7$addres.geoLocation) === null || _BPA$landInfo7$addres2 === void 0 ? void 0 : (_BPA$landInfo7$addres3 = _BPA$landInfo7$addres2.longitude) === null || _BPA$landInfo7$addres3 === void 0 ? void 0 : (_BPA$landInfo7$addres4 = _BPA$landInfo7$addres3.toFixed(6)) === null || _BPA$landInfo7$addres4 === void 0 ? void 0 : _BPA$landInfo7$addres4.toString() : "NA"
43249
- }]
43250
- };
43251
43607
  const checkOwnerLength = (BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo8 = BPA.landInfo) === null || _BPA$landInfo8 === void 0 ? void 0 : (_BPA$landInfo8$owners = _BPA$landInfo8.owners) === null || _BPA$landInfo8$owners === void 0 ? void 0 : _BPA$landInfo8$owners.length) || 1;
43252
43608
  if ((BPA === null || BPA === void 0 ? void 0 : (_BPA$landInfo9 = BPA.landInfo) === null || _BPA$landInfo9 === void 0 ? void 0 : (_BPA$landInfo9$owners = _BPA$landInfo9.owners) === null || _BPA$landInfo9$owners === void 0 ? void 0 : _BPA$landInfo9$owners.length) > 0) {
43253
43609
  var _BPA$landInfo0, _BPA$landInfo0$owners;
@@ -43332,7 +43688,7 @@ const OBPSService = {
43332
43688
  console.log("Log 1");
43333
43689
  let val;
43334
43690
  var i;
43335
- inspectionReport && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail12 = BPA.additionalDetails) === null || _BPA$additionalDetail12 === void 0 ? void 0 : (_BPA$additionalDetail13 = _BPA$additionalDetail12.fieldinspection_pending) === null || _BPA$additionalDetail13 === void 0 ? void 0 : (_BPA$additionalDetail14 = _BPA$additionalDetail13[0]) === null || _BPA$additionalDetail14 === void 0 ? void 0 : _BPA$additionalDetail14.questions.length) > 0 && inspectionReport.map((ob, index) => {
43691
+ inspectionReport && (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail47 = BPA.additionalDetails) === null || _BPA$additionalDetail47 === void 0 ? void 0 : (_BPA$additionalDetail48 = _BPA$additionalDetail47.fieldinspection_pending) === null || _BPA$additionalDetail48 === void 0 ? void 0 : (_BPA$additionalDetail49 = _BPA$additionalDetail48[0]) === null || _BPA$additionalDetail49 === void 0 ? void 0 : _BPA$additionalDetail49.questions.length) > 0 && inspectionReport.map((ob, index) => {
43336
43692
  if (ob.title.includes("FI_REPORT")) ;else if (ob.title.includes("CHECK_LIST")) ;else {
43337
43693
  var _ob$additionalDetails, _ob$additionalDetails2;
43338
43694
  let improvedDoc = [...((_ob$additionalDetails = ob.additionalDetails.obpsDocuments) === null || _ob$additionalDetails === void 0 ? void 0 : (_ob$additionalDetails2 = _ob$additionalDetails[0]) === null || _ob$additionalDetails2 === void 0 ? void 0 : _ob$additionalDetails2.values)];
@@ -43350,14 +43706,14 @@ const OBPSService = {
43350
43706
  const fiReports = {
43351
43707
  title: "",
43352
43708
  isFieldInspection: true,
43353
- isNotAllowed: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail15 = BPA.additionalDetails) === null || _BPA$additionalDetail15 === void 0 ? void 0 : (_BPA$additionalDetail16 = _BPA$additionalDetail15.fieldinspection_pending) === null || _BPA$additionalDetail16 === void 0 ? void 0 : _BPA$additionalDetail16.length) > 0 ? false : true,
43709
+ isNotAllowed: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail50 = BPA.additionalDetails) === null || _BPA$additionalDetail50 === void 0 ? void 0 : (_BPA$additionalDetail51 = _BPA$additionalDetail50.fieldinspection_pending) === null || _BPA$additionalDetail51 === void 0 ? void 0 : _BPA$additionalDetail51.length) > 0 ? false : true,
43354
43710
  additionalDetails: {
43355
43711
  values: [],
43356
- fiReport: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail17 = BPA.additionalDetails) === null || _BPA$additionalDetail17 === void 0 ? void 0 : (_BPA$additionalDetail18 = _BPA$additionalDetail17.fieldinspection_pending) === null || _BPA$additionalDetail18 === void 0 ? void 0 : _BPA$additionalDetail18.length) > 0 ? true : false
43712
+ fiReport: (BPA === null || BPA === void 0 ? void 0 : (_BPA$additionalDetail52 = BPA.additionalDetails) === null || _BPA$additionalDetail52 === void 0 ? void 0 : (_BPA$additionalDetail53 = _BPA$additionalDetail52.fieldinspection_pending) === null || _BPA$additionalDetail53 === void 0 ? void 0 : _BPA$additionalDetail53.length) > 0 ? true : false
43357
43713
  }
43358
43714
  };
43359
43715
  if ((BPA === null || BPA === void 0 ? void 0 : BPA.businessService) !== "BPA_OC") {
43360
- details = [...details, applicationDetailsInfo, ownerDetails, basicDetails, plotDetails, addressDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports, ...nocDetails, approvalChecksDetails, PermitConditions];
43716
+ details = [...details, applicationDetailsInfo, ownerDetails, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, additionalDetail, documentDetails, fiReports, ...nocDetails, approvalChecksDetails, PermitConditions];
43361
43717
  } else {
43362
43718
  details = [...details, applicationDetailsInfo, basicDetails, plotDetails, scrutinyDetails, buildingExtractionDetails, subOccupancyTableDetails, demolitionAreaDetails, documentDetails, fiReports, ...nocDetails, PermitConditions];
43363
43719
  }
@@ -46011,7 +46367,7 @@ function OBPSDocument({
46011
46367
  color: "#505A5F"
46012
46368
  }
46013
46369
  }, `${t(Code)}`) : null);
46014
- })) : /*#__PURE__*/React.createElement(CardText, null, t("BPA_NO_DOCUMENTS_UPLOADED_LABEL")))));
46370
+ })) : /*#__PURE__*/React.createElement(CardText$1, null, t("BPA_NO_DOCUMENTS_UPLOADED_LABEL")))));
46015
46371
  }
46016
46372
 
46017
46373
  const CheckPage$3 = ({
@@ -46349,6 +46705,12 @@ const EDCRAcknowledgement = props => {
46349
46705
  const history = useHistory();
46350
46706
  const [showToast, setShowToast] = useState(false);
46351
46707
  console.log("D++++++++");
46708
+ useEffect(() => {
46709
+ window.scrollTo({
46710
+ top: 0,
46711
+ behavior: "smooth"
46712
+ });
46713
+ }, []);
46352
46714
  useEffect(() => {
46353
46715
  var _props$data;
46354
46716
  console.log("props.data.type =>", props === null || props === void 0 ? void 0 : (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.type);
@@ -46465,7 +46827,7 @@ const EDCRAcknowledgement = props => {
46465
46827
  width: "100%",
46466
46828
  padding: "10px"
46467
46829
  }
46468
- }), /*#__PURE__*/React.createElement(CardText, {
46830
+ }), /*#__PURE__*/React.createElement(CardText$1, {
46469
46831
  style: {
46470
46832
  padding: "0px 8px",
46471
46833
  marginBottom: "10px"
@@ -46538,12 +46900,12 @@ const EDCRAcknowledgement = props => {
46538
46900
  width: "100%",
46539
46901
  padding: "10px"
46540
46902
  }
46541
- }), /*#__PURE__*/React.createElement(CardText, {
46903
+ }), /*#__PURE__*/React.createElement(CardText$1, {
46542
46904
  style: {
46543
46905
  padding: "0px 8px",
46544
46906
  marginBottom: "10px"
46545
46907
  }
46546
- }, t("EDCR_ACKNOWLEDGEMENT_REJECTED_MESSAGE_TEXT_LABEL")), /*#__PURE__*/React.createElement(CardText, {
46908
+ }, t("EDCR_ACKNOWLEDGEMENT_REJECTED_MESSAGE_TEXT_LABEL")), /*#__PURE__*/React.createElement(CardText$1, {
46547
46909
  style: {
46548
46910
  padding: "0px 8px",
46549
46911
  marginBottom: "10px"
@@ -46691,7 +47053,7 @@ const EDCRAcknowledgement$1 = props => {
46691
47053
  width: "100%",
46692
47054
  padding: "10px"
46693
47055
  }
46694
- }), /*#__PURE__*/React.createElement(CardText, {
47056
+ }), /*#__PURE__*/React.createElement(CardText$1, {
46695
47057
  style: {
46696
47058
  padding: "0px 8px",
46697
47059
  marginBottom: "10px"
@@ -46763,12 +47125,12 @@ const EDCRAcknowledgement$1 = props => {
46763
47125
  width: "100%",
46764
47126
  padding: "10px"
46765
47127
  }
46766
- }), /*#__PURE__*/React.createElement(CardText, {
47128
+ }), /*#__PURE__*/React.createElement(CardText$1, {
46767
47129
  style: {
46768
47130
  padding: "0px 8px",
46769
47131
  marginBottom: "10px"
46770
47132
  }
46771
- }, t("EDCR_ACKNOWLEDGEMENT_REJECTED_MESSAGE_TEXT_LABEL")), /*#__PURE__*/React.createElement(CardText, {
47133
+ }, t("EDCR_ACKNOWLEDGEMENT_REJECTED_MESSAGE_TEXT_LABEL")), /*#__PURE__*/React.createElement(CardText$1, {
46772
47134
  style: {
46773
47135
  padding: "0px 8px",
46774
47136
  marginBottom: "10px"
@@ -47052,7 +47414,7 @@ const OBPSAcknowledgement = ({
47052
47414
  data: mutation1.data,
47053
47415
  isSuccess: mutation1.isSuccess,
47054
47416
  isLoading: mutation1.isIdle || mutation1.isLoading
47055
- }), mutation1.isSuccess && /*#__PURE__*/React.createElement(CardText, null, getCardText(t, mutation1.data)), !mutation1.isSuccess && /*#__PURE__*/React.createElement(CardText, null, t("CS_FILE_PROPERTY_FAILED_RESPONSE")), /*#__PURE__*/React.createElement(Link$1, {
47417
+ }), mutation1.isSuccess && /*#__PURE__*/React.createElement(CardText$1, null, getCardText(t, mutation1.data)), !mutation1.isSuccess && /*#__PURE__*/React.createElement(CardText$1, null, t("CS_FILE_PROPERTY_FAILED_RESPONSE")), /*#__PURE__*/React.createElement(Link$1, {
47056
47418
  to: {
47057
47419
  pathname: `/digit-ui/citizen`
47058
47420
  }
@@ -47153,7 +47515,7 @@ const OBPSAcknowledgement$1 = ({
47153
47515
  data: mutation1.data,
47154
47516
  isSuccess: mutation1.isSuccess,
47155
47517
  isLoading: mutation1.isIdle || mutation1.isLoading
47156
- }), mutation1.isSuccess && /*#__PURE__*/React.createElement(CardText, null, getCardText$1(t, mutation1.data)), !mutation1.isSuccess && /*#__PURE__*/React.createElement(CardText, null, t(Digit.Utils.locale.getTransformedLocale(mutation1.error.message))), /*#__PURE__*/React.createElement(Link$1, {
47518
+ }), mutation1.isSuccess && /*#__PURE__*/React.createElement(CardText$1, null, getCardText$1(t, mutation1.data)), !mutation1.isSuccess && /*#__PURE__*/React.createElement(CardText$1, null, t(Digit.Utils.locale.getTransformedLocale(mutation1.error.message))), /*#__PURE__*/React.createElement(Link$1, {
47157
47519
  to: {
47158
47520
  pathname: `/digit-ui/citizen`
47159
47521
  }
@@ -47186,7 +47548,7 @@ const Acknowledgement = props => {
47186
47548
  headerStyles: {
47187
47549
  fontSize: "32px"
47188
47550
  }
47189
- }), /*#__PURE__*/React.createElement(CardText, null, getAppAction == "BPA_SUBMIT_APP" ? t(`BPA_SUBMIT_SUB_HEADER_${bpaBusinessService}_${bpaAction}_${typeOfArchitect ? typeOfArchitect : "ARCHITECT"}_${stringReplaceAll(bpaStatus, " ", "_").toUpperCase()}`) : t(`BPA_SUB_HEADER_${bpaBusinessService}_${bpaAction}_${typeOfArchitect ? typeOfArchitect : "ARCHITECT"}_${stringReplaceAll(bpaStatus, " ", "_").toUpperCase()}`)), /*#__PURE__*/React.createElement("div", {
47551
+ }), /*#__PURE__*/React.createElement(CardText$1, null, getAppAction == "BPA_SUBMIT_APP" ? t(`BPA_SUBMIT_SUB_HEADER_${bpaBusinessService}_${bpaAction}_${typeOfArchitect ? typeOfArchitect : "ARCHITECT"}_${stringReplaceAll(bpaStatus, " ", "_").toUpperCase()}`) : t(`BPA_SUB_HEADER_${bpaBusinessService}_${bpaAction}_${typeOfArchitect ? typeOfArchitect : "ARCHITECT"}_${stringReplaceAll(bpaStatus, " ", "_").toUpperCase()}`)), /*#__PURE__*/React.createElement("div", {
47190
47552
  style: {
47191
47553
  marginTop: "12px",
47192
47554
  padding: "10px"
@@ -47291,7 +47653,7 @@ const AcknowledgementContent = ({
47291
47653
  data: dataToDisplay,
47292
47654
  isSuccess: isSuccess,
47293
47655
  isLoading: mutation.isLoading
47294
- }), isSuccess && /*#__PURE__*/React.createElement(CardText, null, `${t(`TRADELICENSE_TRADETYPE_${licenseType}`)}${t(`CS_FILE_STAKEHOLDER_RESPONSE`)}`), !isSuccess && /*#__PURE__*/React.createElement(CardText, null, t("CS_FILE_PROPERTY_FAILED_RESPONSE")), /*#__PURE__*/React.createElement("div", {
47656
+ }), isSuccess && /*#__PURE__*/React.createElement(CardText$1, null, `${t(`TRADELICENSE_TRADETYPE_${licenseType}`)}${t(`CS_FILE_STAKEHOLDER_RESPONSE`)}`), !isSuccess && /*#__PURE__*/React.createElement(CardText$1, null, t("CS_FILE_PROPERTY_FAILED_RESPONSE")), /*#__PURE__*/React.createElement("div", {
47295
47657
  style: {
47296
47658
  display: "flex",
47297
47659
  flexDirection: "row",
@@ -51250,7 +51612,7 @@ const SummaryDetails = ({
51250
51612
  currentStepData,
51251
51613
  onGoBack
51252
51614
  }) => {
51253
- var _user$info, _currentStepData$Time, _currentStepData$crea12, _currentStepData$crea33, _currentStepData$crea36, _currentStepData$Time6, _currentStepData$crea37, _currentStepData$crea38, _currentStepData$crea39, _currentStepData$crea40, _pdfDetails$pdfFiles, _currentStepData$crea41, _currentStepData$crea42, _user$info6, _user$info6$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _currentStepData$crea58, _currentStepData$crea61, _currentStepData$crea62, _currentStepData$crea63, _currentStepData$crea64, _currentStepData$crea65, _currentStepData$crea66, _currentStepData$crea67, _currentStepData$crea68, _currentStepData$crea69, _currentStepData$crea70, _currentStepData$crea71, _currentStepData$Basi, _currentStepData$Basi2, _currentStepData$Basi3, _currentStepData$Basi4, _currentStepData$Basi5, _currentStepData$Basi6, _currentStepData$Basi7, _currentStepData$Basi8, _currentStepData$Basi9, _currentStepData$Basi0, _currentStepData$Basi1, _currentStepData$Basi10, _currentStepData$Basi11, _currentStepData$Basi12, _currentStepData$Basi13, _currentStepData$Basi14, _currentStepData$Basi15, _currentStepData$Basi16, _currentStepData$Basi17, _currentStepData$Basi18, _currentStepData$Basi19, _currentStepData$crea76, _currentStepData$crea77, _currentStepData$crea78, _currentStepData$crea79, _currentStepData$Basi20, _currentStepData$Basi21, _currentStepData$Basi22, _currentStepData$Basi23, _currentStepData$crea80, _currentStepData$crea81, _currentStepData$crea82, _currentStepData$crea83, _currentStepData$crea84, _currentStepData$crea85, _currentStepData$crea86, _currentStepData$Loca, _currentStepData$Loca2, _currentStepData$crea87, _currentStepData$crea88, _currentStepData$crea89, _currentStepData$crea90, _currentStepData$crea91, _currentStepData$crea92, _currentStepData$crea93, _currentStepData$crea94, _currentStepData$crea95, _currentStepData$crea96, _currentStepData$crea97, _currentStepData$crea98, _currentStepData$crea99, _currentStepData$crea100, _currentStepData$crea101, _currentStepData$crea102, _currentStepData$crea103, _currentStepData$crea104, _currentStepData$crea105, _currentStepData$crea106, _currentStepData$crea107, _currentStepData$crea108, _currentStepData$crea109, _currentStepData$crea110, _currentStepData$crea111, _currentStepData$crea112, _currentStepData$crea113, _currentStepData$crea114, _currentStepData$Basi24, _currentStepData$Basi25, _currentStepData$Basi26, _currentStepData$Basi27, _currentStepData$Basi28, _currentStepData$Basi29, _currentStepData$Basi32, _currentStepData$Basi33, _currentStepData$Basi36, _currentStepData$Basi37, _currentStepData$Basi38, _currentStepData$Basi39, _currentStepData$Basi40, _currentStepData$Basi41, _currentStepData$Basi42, _currentStepData$Basi43, _currentStepData$Basi44, _currentStepData$Basi45, _currentStepData$Basi46, _currentStepData$Basi47, _currentStepData$Basi48, _currentStepData$Basi49, _currentStepData$Basi50, _currentStepData$Basi51, _currentStepData$Basi52, _currentStepData$Basi53, _currentStepData$Basi54, _currentStepData$Basi55, _currentStepData$Basi56, _currentStepData$Basi57, _currentStepData$Basi58, _currentStepData$Basi59, _currentStepData$Basi60, _currentStepData$Basi61, _currentStepData$Basi62, _currentStepData$Basi63, _currentStepData$Basi64, _currentStepData$Basi65, _currentStepData$Basi66, _currentStepData$Basi67, _currentStepData$Basi68, _currentStepData$Basi69, _currentStepData$Basi70, _currentStepData$Basi71, _currentStepData$Basi72, _currentStepData$Basi73, _currentStepData$Basi74, _currentStepData$Basi75, _currentStepData$Basi76, _currentStepData$Basi77, _currentStepData$Basi78, _currentStepData$Basi79, _currentStepData$Basi80, _currentStepData$Basi81, _currentStepData$Basi82, _currentStepData$Basi83, _currentStepData$Basi84, _currentStepData$Basi85, _currentStepData$Basi86, _currentStepData$Basi87, _currentStepData$Basi88, _currentStepData$Basi89, _currentStepData$Basi90, _currentStepData$Basi91, _currentStepData$Basi92, _currentStepData$Basi93, _currentStepData$Basi94, _currentStepData$Basi95, _currentStepData$Basi100, _currentStepData$Basi101, _currentStepData$Basi102, _currentStepData$Basi103, _currentStepData$Basi104, _currentStepData$Basi105, _currentStepData$Basi106, _currentStepData$Basi107, _currentStepData$crea115, _currentStepData$crea116, _currentStepData$crea117, _currentStepData$crea118, _currentStepData$crea119, _currentStepData$crea120, _currentStepData$crea121, _currentStepData$crea122, _currentStepData$crea123, _currentStepData$crea124, _currentStepData$crea125, _currentStepData$crea126, _currentStepData$crea127, _currentStepData$crea128, _currentStepData$Basi108, _currentStepData$Basi109, _currentStepData$Basi110, _currentStepData$crea129, _currentStepData$crea130, _currentStepData$crea131, _currentStepData$crea132, _currentStepData$crea133, _currentStepData$crea134, _currentStepData$crea135, _currentStepData$crea136, _currentStepData$crea137, _currentStepData$crea138, _currentStepData$crea139, _currentStepData$crea140, _currentStepData$crea141, _currentStepData$crea142, _currentStepData$crea143, _currentStepData$crea144, _currentStepData$crea145, _currentStepData$crea146, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
51615
+ var _user$info, _currentStepData$Time, _currentStepData$crea12, _currentStepData$crea33, _currentStepData$crea36, _currentStepData$Time6, _currentStepData$crea37, _currentStepData$crea38, _currentStepData$crea39, _currentStepData$crea40, _pdfDetails$pdfFiles, _currentStepData$crea41, _currentStepData$crea42, _user$info6, _user$info6$roles, _workflowDetails$data, _workflowDetails$data2, _workflowDetails$data3, _workflowDetails$data4, _workflowDetails$data5, _currentStepData$crea58, _currentStepData$crea61, _currentStepData$crea62, _currentStepData$crea63, _currentStepData$crea64, _currentStepData$crea65, _currentStepData$crea66, _currentStepData$crea67, _currentStepData$crea68, _currentStepData$crea69, _currentStepData$crea70, _currentStepData$crea71, _currentStepData$Basi, _currentStepData$Basi2, _currentStepData$Basi3, _currentStepData$Basi4, _currentStepData$Basi5, _currentStepData$Basi6, _currentStepData$Basi7, _currentStepData$Basi8, _currentStepData$Basi9, _currentStepData$Basi0, _currentStepData$Basi1, _currentStepData$Basi10, _currentStepData$Basi11, _currentStepData$Basi12, _currentStepData$Basi13, _currentStepData$Basi14, _currentStepData$Basi15, _currentStepData$Basi16, _currentStepData$Basi17, _currentStepData$Basi18, _currentStepData$Basi19, _currentStepData$crea76, _currentStepData$crea77, _currentStepData$crea78, _currentStepData$crea79, _currentStepData$Basi20, _currentStepData$Basi21, _currentStepData$Basi22, _currentStepData$Basi23, _currentStepData$crea80, _currentStepData$crea81, _currentStepData$crea82, _currentStepData$crea83, _currentStepData$crea84, _currentStepData$crea85, _currentStepData$crea86, _currentStepData$crea87, _currentStepData$crea88, _currentStepData$crea89, _currentStepData$crea90, _currentStepData$crea91, _currentStepData$crea92, _currentStepData$crea93, _currentStepData$crea94, _currentStepData$crea95, _currentStepData$crea96, _currentStepData$crea97, _currentStepData$crea98, _currentStepData$crea99, _currentStepData$crea100, _currentStepData$crea101, _currentStepData$crea102, _currentStepData$crea103, _currentStepData$crea104, _currentStepData$crea105, _currentStepData$crea106, _currentStepData$crea107, _currentStepData$crea108, _currentStepData$crea109, _currentStepData$crea110, _currentStepData$crea111, _currentStepData$crea112, _currentStepData$Loca, _currentStepData$Loca2, _currentStepData$Basi24, _currentStepData$Basi25, _currentStepData$Basi26, _currentStepData$Basi27, _currentStepData$crea113, _currentStepData$crea114, _currentStepData$crea115, _currentStepData$crea116, _currentStepData$crea117, _currentStepData$crea118, _currentStepData$crea119, _currentStepData$crea120, _currentStepData$crea121, _currentStepData$crea122, _currentStepData$crea123, _currentStepData$crea124, _currentStepData$crea125, _currentStepData$crea126, _currentStepData$crea127, _currentStepData$crea128, _currentStepData$crea129, _currentStepData$crea130, _currentStepData$crea131, _currentStepData$crea132, _currentStepData$crea133, _currentStepData$crea134, _currentStepData$crea135, _currentStepData$crea136, _currentStepData$Basi28, _currentStepData$Basi29, _currentStepData$Basi30, _currentStepData$Basi31, _currentStepData$Basi32, _currentStepData$Basi33, _currentStepData$Basi36, _currentStepData$Basi37, _currentStepData$Basi40, _currentStepData$Basi41, _currentStepData$Basi42, _currentStepData$Basi43, _currentStepData$Basi44, _currentStepData$Basi45, _currentStepData$Basi46, _currentStepData$Basi47, _currentStepData$Basi48, _currentStepData$Basi49, _currentStepData$Basi50, _currentStepData$Basi51, _currentStepData$Basi52, _currentStepData$Basi53, _currentStepData$Basi54, _currentStepData$Basi55, _currentStepData$Basi56, _currentStepData$Basi57, _currentStepData$Basi58, _currentStepData$Basi59, _currentStepData$Basi60, _currentStepData$Basi61, _currentStepData$Basi62, _currentStepData$Basi63, _currentStepData$Basi64, _currentStepData$Basi65, _currentStepData$Basi66, _currentStepData$Basi67, _currentStepData$Basi68, _currentStepData$Basi69, _currentStepData$Basi70, _currentStepData$Basi71, _currentStepData$Basi72, _currentStepData$Basi73, _currentStepData$Basi74, _currentStepData$Basi75, _currentStepData$Basi76, _currentStepData$Basi77, _currentStepData$Basi78, _currentStepData$Basi79, _currentStepData$Basi80, _currentStepData$Basi81, _currentStepData$Basi82, _currentStepData$Basi83, _currentStepData$Basi84, _currentStepData$Basi85, _currentStepData$Basi86, _currentStepData$Basi87, _currentStepData$Basi88, _currentStepData$Basi89, _currentStepData$Basi90, _currentStepData$Basi91, _currentStepData$Basi92, _currentStepData$Basi93, _currentStepData$Basi94, _currentStepData$Basi95, _currentStepData$Basi100, _currentStepData$Basi101, _currentStepData$Basi102, _currentStepData$Basi103, _currentStepData$Basi104, _currentStepData$Basi105, _currentStepData$Basi106, _currentStepData$Basi107, _currentStepData$crea137, _currentStepData$crea138, _currentStepData$crea139, _currentStepData$crea140, _currentStepData$crea141, _currentStepData$crea142, _currentStepData$crea143, _currentStepData$crea144, _currentStepData$crea145, _currentStepData$crea146, _currentStepData$crea147, _currentStepData$crea148, _currentStepData$crea149, _currentStepData$crea150, _currentStepData$crea151, _currentStepData$crea152, _currentStepData$Basi108, _currentStepData$Basi109, _currentStepData$Basi110, _currentStepData$crea153, _currentStepData$crea154, _currentStepData$crea155, _currentStepData$crea156, _currentStepData$crea157, _currentStepData$crea158, _currentStepData$crea159, _currentStepData$crea160, _currentStepData$crea161, _currentStepData$crea162, _currentStepData$crea163, _currentStepData$crea164, _currentStepData$crea165, _currentStepData$crea166, _currentStepData$crea167, _currentStepData$crea168, _currentStepData$crea169, _currentStepData$crea170, _currentStepData$crea171, _currentStepData$crea172, _currentStepData$crea173, _currentStepData$crea174, _currentStepData$crea175, _currentStepData$crea176, _currentStepData$crea177, _currentStepData$crea178, _currentStepData$crea179, _currentStepData$crea180, _currentStepData$crea181, _currentStepData$crea182, _currentStepData$crea183, _currentStepData$crea184, _currentStepData$crea185, _currentStepData$crea186, _currentStepData$crea187, _currentStepData$crea188, _workflowDetails$data6, _workflowDetails$data7, _workflowDetails$data8;
51254
51616
  const {
51255
51617
  t
51256
51618
  } = useTranslation();
@@ -51335,6 +51697,12 @@ const SummaryDetails = ({
51335
51697
  };
51336
51698
  Digit.Hooks.useClickOutside(menuRef, closeMenu, displayMenu);
51337
51699
  let acceptFormat = ".pdf";
51700
+ useEffect(() => {
51701
+ window.scrollTo({
51702
+ top: 0,
51703
+ behavior: "smooth"
51704
+ });
51705
+ }, []);
51338
51706
  useEffect(() => {
51339
51707
  if (!userSelected) {
51340
51708
  return;
@@ -51578,13 +51946,6 @@ const SummaryDetails = ({
51578
51946
  });
51579
51947
  const ecbcDocumentsData = useMemo(() => {
51580
51948
  const docs = getDocsFromFileUrls(fileUrls) || [];
51581
- if (docs.length === 0) {
51582
- return [{
51583
- id: 0,
51584
- title: t("CS_NA"),
51585
- fileUrl: null
51586
- }];
51587
- }
51588
51949
  return docs.map((doc, index) => ({
51589
51950
  id: index,
51590
51951
  title: doc.title ? t(doc.title) : t("CS_NA"),
@@ -51599,6 +51960,8 @@ const SummaryDetails = ({
51599
51960
  console.log("setdeclarationhandler", e, isOTPVerified);
51600
51961
  setShowTermsPopup(true);
51601
51962
  setAgree(true);
51963
+ } else {
51964
+ setAgree(true);
51602
51965
  }
51603
51966
  };
51604
51967
  const checkLabels = () => {
@@ -52032,7 +52395,7 @@ const SummaryDetails = ({
52032
52395
  fontSize: "20px",
52033
52396
  marginTop: "20px"
52034
52397
  }
52035
- }, t("BPA_PLOT_DETAILS_TITLE")), /*#__PURE__*/React.createElement("hr", {
52398
+ }, t("BPA_PLOT_AND_SITE_DETAILS_TITLE")), /*#__PURE__*/React.createElement("hr", {
52036
52399
  style: {
52037
52400
  border: "0.5px solid #eaeaea",
52038
52401
  margin: "0 0 16px 0"
@@ -52065,45 +52428,82 @@ const SummaryDetails = ({
52065
52428
  className: "border-none",
52066
52429
  label: t(`BPA_WARD_NUMBER_LABEL`),
52067
52430
  text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea82 = currentStepData.createdResponse) === null || _currentStepData$crea82 === void 0 ? void 0 : (_currentStepData$crea83 = _currentStepData$crea82.additionalDetails) === null || _currentStepData$crea83 === void 0 ? void 0 : _currentStepData$crea83.wardnumber) || t("CS_NA")
52068
- }))), /*#__PURE__*/React.createElement(Card, {
52069
- style: {
52070
- padding: "20px",
52071
- marginBottom: "30px",
52072
- borderRadius: "12px",
52073
- boxShadow: "0 4px 12px rgba(0,0,0,0.08)",
52074
- border: "1px solid #f0f0f0",
52075
- background: "#fff"
52076
- }
52077
- }, /*#__PURE__*/React.createElement(CardSubHeader, {
52078
- style: {
52079
- fontSize: "20px",
52080
- marginTop: "20px"
52081
- }
52082
- }, t("BPA_NEW_TRADE_DETAILS_HEADER_DETAILS")), /*#__PURE__*/React.createElement("hr", {
52083
- style: {
52084
- border: "0.5px solid #eaeaea",
52085
- margin: "0 0 16px 0"
52086
- }
52087
- }), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
52431
+ }), /*#__PURE__*/React.createElement(Row, {
52432
+ className: "border-none",
52433
+ label: t(`BPA_WARD_NUMBER_LABEL`),
52434
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea84 = currentStepData.createdResponse) === null || _currentStepData$crea84 === void 0 ? void 0 : (_currentStepData$crea85 = _currentStepData$crea84.additionalDetails) === null || _currentStepData$crea85 === void 0 ? void 0 : _currentStepData$crea85.zonenumber) || t("CS_NA")
52435
+ }), /*#__PURE__*/React.createElement(Row, {
52436
+ className: "border-none",
52437
+ label: t(`BPA_KHASRA_NUMBER_LABEL`),
52438
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea86 = currentStepData.createdResponse) === null || _currentStepData$crea86 === void 0 ? void 0 : (_currentStepData$crea87 = _currentStepData$crea86.additionalDetails) === null || _currentStepData$crea87 === void 0 ? void 0 : _currentStepData$crea87.khasraNumber) || t("CS_NA")
52439
+ }), /*#__PURE__*/React.createElement(Row, {
52440
+ className: "border-none",
52441
+ label: t(`BPA_ARCHITECT_ID`),
52442
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea88 = currentStepData.createdResponse) === null || _currentStepData$crea88 === void 0 ? void 0 : (_currentStepData$crea89 = _currentStepData$crea88.additionalDetails) === null || _currentStepData$crea89 === void 0 ? void 0 : _currentStepData$crea89.architectid) || t("CS_NA")
52443
+ }), /*#__PURE__*/React.createElement(Row, {
52444
+ className: "border-none",
52445
+ label: t(`BPA_NUMBER_OF_BATHS`),
52446
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea90 = currentStepData.createdResponse) === null || _currentStepData$crea90 === void 0 ? void 0 : (_currentStepData$crea91 = _currentStepData$crea90.additionalDetails) === null || _currentStepData$crea91 === void 0 ? void 0 : _currentStepData$crea91.bathnumber) || t("CS_NA")
52447
+ }), /*#__PURE__*/React.createElement(Row, {
52448
+ className: "border-none",
52449
+ label: t(`BPA_NUMBER_OF_KITCHENS`),
52450
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea92 = currentStepData.createdResponse) === null || _currentStepData$crea92 === void 0 ? void 0 : (_currentStepData$crea93 = _currentStepData$crea92.additionalDetails) === null || _currentStepData$crea93 === void 0 ? void 0 : _currentStepData$crea93.kitchenNumber) || t("CS_NA")
52451
+ }), /*#__PURE__*/React.createElement(Row, {
52452
+ className: "border-none",
52453
+ label: t(`BPA_APPROX_INHABITANTS_FOR_ACCOMODATION`),
52454
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea94 = currentStepData.createdResponse) === null || _currentStepData$crea94 === void 0 ? void 0 : (_currentStepData$crea95 = _currentStepData$crea94.additionalDetails) === null || _currentStepData$crea95 === void 0 ? void 0 : _currentStepData$crea95.approxinhabitants) || t("CS_NA")
52455
+ }), /*#__PURE__*/React.createElement(Row, {
52456
+ className: "border-none",
52457
+ label: t(`BPA_DISTANCE_FROM_SEWER`),
52458
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea96 = currentStepData.createdResponse) === null || _currentStepData$crea96 === void 0 ? void 0 : (_currentStepData$crea97 = _currentStepData$crea96.additionalDetails) === null || _currentStepData$crea97 === void 0 ? void 0 : _currentStepData$crea97.distancefromsewer) || t("CS_NA")
52459
+ }), /*#__PURE__*/React.createElement(Row, {
52460
+ className: "border-none",
52461
+ label: t(`BPA_SOURCE_OF_WATER`),
52462
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea98 = currentStepData.createdResponse) === null || _currentStepData$crea98 === void 0 ? void 0 : (_currentStepData$crea99 = _currentStepData$crea98.additionalDetails) === null || _currentStepData$crea99 === void 0 ? void 0 : _currentStepData$crea99.sourceofwater) || t("CS_NA")
52463
+ }), /*#__PURE__*/React.createElement(Row, {
52464
+ className: "border-none",
52465
+ label: t(`BPA_NUMBER_OF_WATER_CLOSETS`),
52466
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea100 = currentStepData.createdResponse) === null || _currentStepData$crea100 === void 0 ? void 0 : (_currentStepData$crea101 = _currentStepData$crea100.additionalDetails) === null || _currentStepData$crea101 === void 0 ? void 0 : _currentStepData$crea101.watercloset) || t("CS_NA")
52467
+ }), /*#__PURE__*/React.createElement(Row, {
52468
+ className: "border-none",
52469
+ label: t(`BPA_MATERIAL_TO-BE_USED_IN_WALLS`),
52470
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea102 = currentStepData.createdResponse) === null || _currentStepData$crea102 === void 0 ? void 0 : (_currentStepData$crea103 = _currentStepData$crea102.additionalDetails) === null || _currentStepData$crea103 === void 0 ? void 0 : _currentStepData$crea103.materialused) || t("CS_NA")
52471
+ }), /*#__PURE__*/React.createElement(Row, {
52472
+ className: "border-none",
52473
+ label: t(`BPA_MATERIAL_TO-BE_USED_IN_FLOOR`),
52474
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea104 = currentStepData.createdResponse) === null || _currentStepData$crea104 === void 0 ? void 0 : (_currentStepData$crea105 = _currentStepData$crea104.additionalDetails) === null || _currentStepData$crea105 === void 0 ? void 0 : _currentStepData$crea105.materialusedinfloor) || t("CS_NA")
52475
+ }), /*#__PURE__*/React.createElement(Row, {
52476
+ className: "border-none",
52477
+ label: t(`BPA_MATERIAL_TO-BE_USED_IN_ROOFS`),
52478
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea106 = currentStepData.createdResponse) === null || _currentStepData$crea106 === void 0 ? void 0 : (_currentStepData$crea107 = _currentStepData$crea106.additionalDetails) === null || _currentStepData$crea107 === void 0 ? void 0 : _currentStepData$crea107.materialusedinroofs) || t("CS_NA")
52479
+ }), /*#__PURE__*/React.createElement(Row, {
52480
+ className: "border-none",
52481
+ label: t(`BPA_ESTIMATED_COST_LABEL`),
52482
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea108 = currentStepData.createdResponse) === null || _currentStepData$crea108 === void 0 ? void 0 : (_currentStepData$crea109 = _currentStepData$crea108.additionalDetails) === null || _currentStepData$crea109 === void 0 ? void 0 : _currentStepData$crea109.estimatedCost) || t("CS_NA")
52483
+ }), /*#__PURE__*/React.createElement(Row, {
52088
52484
  className: "border-none",
52089
52485
  label: t(`BPA_DETAILS_PIN_LABEL`),
52090
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea84 = currentStepData.createdResponse) === null || _currentStepData$crea84 === void 0 ? void 0 : (_currentStepData$crea85 = _currentStepData$crea84.landInfo) === null || _currentStepData$crea85 === void 0 ? void 0 : (_currentStepData$crea86 = _currentStepData$crea85.address) === null || _currentStepData$crea86 === void 0 ? void 0 : _currentStepData$crea86.pincode) || t("CS_NA")
52486
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea110 = currentStepData.createdResponse) === null || _currentStepData$crea110 === void 0 ? void 0 : (_currentStepData$crea111 = _currentStepData$crea110.landInfo) === null || _currentStepData$crea111 === void 0 ? void 0 : (_currentStepData$crea112 = _currentStepData$crea111.address) === null || _currentStepData$crea112 === void 0 ? void 0 : _currentStepData$crea112.pincode) || t("CS_NA")
52091
52487
  }), /*#__PURE__*/React.createElement(Row, {
52092
52488
  className: "border-none",
52093
52489
  label: t(`BPA_CITY_LABEL`),
52094
52490
  text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Loca = currentStepData.LocationDetails) === null || _currentStepData$Loca === void 0 ? void 0 : (_currentStepData$Loca2 = _currentStepData$Loca.selectedCity) === null || _currentStepData$Loca2 === void 0 ? void 0 : _currentStepData$Loca2.name) || t("CS_NA")
52491
+ }), /*#__PURE__*/React.createElement(Row, {
52492
+ className: "border-none",
52493
+ label: t("BPA_DISTRICT"),
52494
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi24 = currentStepData.BasicDetails) === null || _currentStepData$Basi24 === void 0 ? void 0 : (_currentStepData$Basi25 = _currentStepData$Basi24.edcrDetails) === null || _currentStepData$Basi25 === void 0 ? void 0 : (_currentStepData$Basi26 = _currentStepData$Basi25.planDetail) === null || _currentStepData$Basi26 === void 0 ? void 0 : (_currentStepData$Basi27 = _currentStepData$Basi26.planInfoProperties) === null || _currentStepData$Basi27 === void 0 ? void 0 : _currentStepData$Basi27.DISTRICT) || t("CS_NA")
52095
52495
  }), /*#__PURE__*/React.createElement(Row, {
52096
52496
  className: "border-none",
52097
52497
  label: t(`BPA_LOC_MOHALLA_LABEL`),
52098
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea87 = currentStepData.createdResponse) === null || _currentStepData$crea87 === void 0 ? void 0 : (_currentStepData$crea88 = _currentStepData$crea87.landInfo) === null || _currentStepData$crea88 === void 0 ? void 0 : (_currentStepData$crea89 = _currentStepData$crea88.address) === null || _currentStepData$crea89 === void 0 ? void 0 : (_currentStepData$crea90 = _currentStepData$crea89.locality) === null || _currentStepData$crea90 === void 0 ? void 0 : _currentStepData$crea90.name) || t("CS_NA")
52498
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea113 = currentStepData.createdResponse) === null || _currentStepData$crea113 === void 0 ? void 0 : (_currentStepData$crea114 = _currentStepData$crea113.landInfo) === null || _currentStepData$crea114 === void 0 ? void 0 : (_currentStepData$crea115 = _currentStepData$crea114.address) === null || _currentStepData$crea115 === void 0 ? void 0 : (_currentStepData$crea116 = _currentStepData$crea115.locality) === null || _currentStepData$crea116 === void 0 ? void 0 : _currentStepData$crea116.name) || t("CS_NA")
52099
52499
  }), /*#__PURE__*/React.createElement(Row, {
52100
52500
  className: "border-none",
52101
52501
  label: t(`BPA_LAT`),
52102
- text: currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea91 = currentStepData.createdResponse) !== null && _currentStepData$crea91 !== void 0 && (_currentStepData$crea92 = _currentStepData$crea91.landInfo) !== null && _currentStepData$crea92 !== void 0 && (_currentStepData$crea93 = _currentStepData$crea92.address) !== null && _currentStepData$crea93 !== void 0 && (_currentStepData$crea94 = _currentStepData$crea93.address) !== null && _currentStepData$crea94 !== void 0 && (_currentStepData$crea95 = _currentStepData$crea94.geoLocation) !== null && _currentStepData$crea95 !== void 0 && _currentStepData$crea95.latitude ? currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea96 = currentStepData.createdResponse) === null || _currentStepData$crea96 === void 0 ? void 0 : (_currentStepData$crea97 = _currentStepData$crea96.landInfo) === null || _currentStepData$crea97 === void 0 ? void 0 : (_currentStepData$crea98 = _currentStepData$crea97.address) === null || _currentStepData$crea98 === void 0 ? void 0 : (_currentStepData$crea99 = _currentStepData$crea98.address) === null || _currentStepData$crea99 === void 0 ? void 0 : (_currentStepData$crea100 = _currentStepData$crea99.geoLocation) === null || _currentStepData$crea100 === void 0 ? void 0 : (_currentStepData$crea101 = _currentStepData$crea100.latitude) === null || _currentStepData$crea101 === void 0 ? void 0 : (_currentStepData$crea102 = _currentStepData$crea101.toFixed(6)) === null || _currentStepData$crea102 === void 0 ? void 0 : _currentStepData$crea102.toString() : t("CS_NA")
52502
+ text: currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea117 = currentStepData.createdResponse) !== null && _currentStepData$crea117 !== void 0 && (_currentStepData$crea118 = _currentStepData$crea117.landInfo) !== null && _currentStepData$crea118 !== void 0 && (_currentStepData$crea119 = _currentStepData$crea118.address) !== null && _currentStepData$crea119 !== void 0 && (_currentStepData$crea120 = _currentStepData$crea119.geoLocation) !== null && _currentStepData$crea120 !== void 0 && _currentStepData$crea120.latitude ? currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea121 = currentStepData.createdResponse) === null || _currentStepData$crea121 === void 0 ? void 0 : (_currentStepData$crea122 = _currentStepData$crea121.landInfo) === null || _currentStepData$crea122 === void 0 ? void 0 : (_currentStepData$crea123 = _currentStepData$crea122.address) === null || _currentStepData$crea123 === void 0 ? void 0 : (_currentStepData$crea124 = _currentStepData$crea123.geoLocation) === null || _currentStepData$crea124 === void 0 ? void 0 : (_currentStepData$crea125 = _currentStepData$crea124.latitude) === null || _currentStepData$crea125 === void 0 ? void 0 : (_currentStepData$crea126 = _currentStepData$crea125.toFixed(6)) === null || _currentStepData$crea126 === void 0 ? void 0 : _currentStepData$crea126.toString() : t("CS_NA")
52103
52503
  }), /*#__PURE__*/React.createElement(Row, {
52104
52504
  className: "border-none",
52105
52505
  label: t(`BPA_LONG`),
52106
- text: currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea103 = currentStepData.createdResponse) !== null && _currentStepData$crea103 !== void 0 && (_currentStepData$crea104 = _currentStepData$crea103.landInfo) !== null && _currentStepData$crea104 !== void 0 && (_currentStepData$crea105 = _currentStepData$crea104.address) !== null && _currentStepData$crea105 !== void 0 && (_currentStepData$crea106 = _currentStepData$crea105.address) !== null && _currentStepData$crea106 !== void 0 && (_currentStepData$crea107 = _currentStepData$crea106.geoLocation) !== null && _currentStepData$crea107 !== void 0 && _currentStepData$crea107.longitude ? currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea108 = currentStepData.createdResponse) === null || _currentStepData$crea108 === void 0 ? void 0 : (_currentStepData$crea109 = _currentStepData$crea108.landInfo) === null || _currentStepData$crea109 === void 0 ? void 0 : (_currentStepData$crea110 = _currentStepData$crea109.address) === null || _currentStepData$crea110 === void 0 ? void 0 : (_currentStepData$crea111 = _currentStepData$crea110.address) === null || _currentStepData$crea111 === void 0 ? void 0 : (_currentStepData$crea112 = _currentStepData$crea111.geoLocation) === null || _currentStepData$crea112 === void 0 ? void 0 : (_currentStepData$crea113 = _currentStepData$crea112.longitude) === null || _currentStepData$crea113 === void 0 ? void 0 : (_currentStepData$crea114 = _currentStepData$crea113.toFixed(6)) === null || _currentStepData$crea114 === void 0 ? void 0 : _currentStepData$crea114.toString() : t("CS_NA")
52506
+ text: currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea127 = currentStepData.createdResponse) !== null && _currentStepData$crea127 !== void 0 && (_currentStepData$crea128 = _currentStepData$crea127.landInfo) !== null && _currentStepData$crea128 !== void 0 && (_currentStepData$crea129 = _currentStepData$crea128.address) !== null && _currentStepData$crea129 !== void 0 && (_currentStepData$crea130 = _currentStepData$crea129.geoLocation) !== null && _currentStepData$crea130 !== void 0 && _currentStepData$crea130.longitude ? currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea131 = currentStepData.createdResponse) === null || _currentStepData$crea131 === void 0 ? void 0 : (_currentStepData$crea132 = _currentStepData$crea131.landInfo) === null || _currentStepData$crea132 === void 0 ? void 0 : (_currentStepData$crea133 = _currentStepData$crea132.address) === null || _currentStepData$crea133 === void 0 ? void 0 : (_currentStepData$crea134 = _currentStepData$crea133.geoLocation) === null || _currentStepData$crea134 === void 0 ? void 0 : (_currentStepData$crea135 = _currentStepData$crea134.longitude) === null || _currentStepData$crea135 === void 0 ? void 0 : (_currentStepData$crea136 = _currentStepData$crea135.toFixed(6)) === null || _currentStepData$crea136 === void 0 ? void 0 : _currentStepData$crea136.toString() : t("CS_NA")
52107
52507
  }))), /*#__PURE__*/React.createElement(Card, null, /*#__PURE__*/React.createElement(CardSubHeader, {
52108
52508
  style: {
52109
52509
  fontSize: "20px",
@@ -52151,7 +52551,7 @@ const SummaryDetails = ({
52151
52551
  textAlign: "right",
52152
52552
  color: "#555"
52153
52553
  }
52154
- }, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi24 = currentStepData.BasicDetails) === null || _currentStepData$Basi24 === void 0 ? void 0 : (_currentStepData$Basi25 = _currentStepData$Basi24.scrutinyNumber) === null || _currentStepData$Basi25 === void 0 ? void 0 : _currentStepData$Basi25.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi26 = currentStepData.BasicDetails) === null || _currentStepData$Basi26 === void 0 ? void 0 : (_currentStepData$Basi27 = _currentStepData$Basi26.edcrDetails) === null || _currentStepData$Basi27 === void 0 ? void 0 : _currentStepData$Basi27.edcrNumber) || t("CS_NA"))), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
52554
+ }, (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi28 = currentStepData.BasicDetails) === null || _currentStepData$Basi28 === void 0 ? void 0 : (_currentStepData$Basi29 = _currentStepData$Basi28.scrutinyNumber) === null || _currentStepData$Basi29 === void 0 ? void 0 : _currentStepData$Basi29.edcrNumber) || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi30 = currentStepData.BasicDetails) === null || _currentStepData$Basi30 === void 0 ? void 0 : (_currentStepData$Basi31 = _currentStepData$Basi30.edcrDetails) === null || _currentStepData$Basi31 === void 0 ? void 0 : _currentStepData$Basi31.edcrNumber) || t("CS_NA"))), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
52155
52555
  style: {
52156
52556
  padding: "12px 8px",
52157
52557
  fontWeight: "600",
@@ -52162,11 +52562,11 @@ const SummaryDetails = ({
52162
52562
  padding: "12px 8px",
52163
52563
  textAlign: "right"
52164
52564
  }
52165
- }, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi28 = currentStepData.BasicDetails) !== null && _currentStepData$Basi28 !== void 0 && (_currentStepData$Basi29 = _currentStepData$Basi28.edcrDetails) !== null && _currentStepData$Basi29 !== void 0 && _currentStepData$Basi29.updatedDxfFile ? /*#__PURE__*/React.createElement(LinkButton, {
52565
+ }, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi32 = currentStepData.BasicDetails) !== null && _currentStepData$Basi32 !== void 0 && (_currentStepData$Basi33 = _currentStepData$Basi32.edcrDetails) !== null && _currentStepData$Basi33 !== void 0 && _currentStepData$Basi33.updatedDxfFile ? /*#__PURE__*/React.createElement(LinkButton, {
52166
52566
  label: t("View"),
52167
52567
  onClick: () => {
52168
- var _currentStepData$Basi30, _currentStepData$Basi31;
52169
- return routeTo(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi30 = currentStepData.BasicDetails) === null || _currentStepData$Basi30 === void 0 ? void 0 : (_currentStepData$Basi31 = _currentStepData$Basi30.edcrDetails) === null || _currentStepData$Basi31 === void 0 ? void 0 : _currentStepData$Basi31.updatedDxfFile);
52568
+ var _currentStepData$Basi34, _currentStepData$Basi35;
52569
+ return routeTo(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi34 = currentStepData.BasicDetails) === null || _currentStepData$Basi34 === void 0 ? void 0 : (_currentStepData$Basi35 = _currentStepData$Basi34.edcrDetails) === null || _currentStepData$Basi35 === void 0 ? void 0 : _currentStepData$Basi35.updatedDxfFile);
52170
52570
  }
52171
52571
  }) : t("CS_NA"))), /*#__PURE__*/React.createElement("tr", null, /*#__PURE__*/React.createElement("td", {
52172
52572
  style: {
@@ -52179,11 +52579,11 @@ const SummaryDetails = ({
52179
52579
  padding: "12px 8px",
52180
52580
  textAlign: "right"
52181
52581
  }
52182
- }, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi32 = currentStepData.BasicDetails) !== null && _currentStepData$Basi32 !== void 0 && (_currentStepData$Basi33 = _currentStepData$Basi32.edcrDetails) !== null && _currentStepData$Basi33 !== void 0 && _currentStepData$Basi33.planReport ? /*#__PURE__*/React.createElement(LinkButton, {
52582
+ }, currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi36 = currentStepData.BasicDetails) !== null && _currentStepData$Basi36 !== void 0 && (_currentStepData$Basi37 = _currentStepData$Basi36.edcrDetails) !== null && _currentStepData$Basi37 !== void 0 && _currentStepData$Basi37.planReport ? /*#__PURE__*/React.createElement(LinkButton, {
52183
52583
  label: t("View"),
52184
52584
  onClick: () => {
52185
- var _currentStepData$Basi34, _currentStepData$Basi35;
52186
- return routeTo(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi34 = currentStepData.BasicDetails) === null || _currentStepData$Basi34 === void 0 ? void 0 : (_currentStepData$Basi35 = _currentStepData$Basi34.edcrDetails) === null || _currentStepData$Basi35 === void 0 ? void 0 : _currentStepData$Basi35.planReport);
52585
+ var _currentStepData$Basi38, _currentStepData$Basi39;
52586
+ return routeTo(currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi38 = currentStepData.BasicDetails) === null || _currentStepData$Basi38 === void 0 ? void 0 : (_currentStepData$Basi39 = _currentStepData$Basi38.edcrDetails) === null || _currentStepData$Basi39 === void 0 ? void 0 : _currentStepData$Basi39.planReport);
52187
52587
  }
52188
52588
  }) : t("CS_NA"))))))), /*#__PURE__*/React.createElement(Card, {
52189
52589
  style: {
@@ -52202,15 +52602,11 @@ const SummaryDetails = ({
52202
52602
  }, t("BPA_PLAN_INFORMATION_PROPERTIES")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
52203
52603
  className: "border-none",
52204
52604
  label: t("BPA_PLOT_AREA_M2"),
52205
- text: currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi36 = currentStepData.BasicDetails) !== null && _currentStepData$Basi36 !== void 0 && (_currentStepData$Basi37 = _currentStepData$Basi36.edcrDetails) !== null && _currentStepData$Basi37 !== void 0 && (_currentStepData$Basi38 = _currentStepData$Basi37.planDetail) !== null && _currentStepData$Basi38 !== void 0 && (_currentStepData$Basi39 = _currentStepData$Basi38.plot) !== null && _currentStepData$Basi39 !== void 0 && _currentStepData$Basi39.area ? `${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi40 = currentStepData.BasicDetails) === null || _currentStepData$Basi40 === void 0 ? void 0 : (_currentStepData$Basi41 = _currentStepData$Basi40.edcrDetails) === null || _currentStepData$Basi41 === void 0 ? void 0 : (_currentStepData$Basi42 = _currentStepData$Basi41.planDetail) === null || _currentStepData$Basi42 === void 0 ? void 0 : (_currentStepData$Basi43 = _currentStepData$Basi42.plot) === null || _currentStepData$Basi43 === void 0 ? void 0 : _currentStepData$Basi43.area} ${t(`BPA_SQ_MTRS_LABEL`)}` : t("CS_NA")
52605
+ text: currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi40 = currentStepData.BasicDetails) !== null && _currentStepData$Basi40 !== void 0 && (_currentStepData$Basi41 = _currentStepData$Basi40.edcrDetails) !== null && _currentStepData$Basi41 !== void 0 && (_currentStepData$Basi42 = _currentStepData$Basi41.planDetail) !== null && _currentStepData$Basi42 !== void 0 && (_currentStepData$Basi43 = _currentStepData$Basi42.plot) !== null && _currentStepData$Basi43 !== void 0 && _currentStepData$Basi43.area ? `${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi44 = currentStepData.BasicDetails) === null || _currentStepData$Basi44 === void 0 ? void 0 : (_currentStepData$Basi45 = _currentStepData$Basi44.edcrDetails) === null || _currentStepData$Basi45 === void 0 ? void 0 : (_currentStepData$Basi46 = _currentStepData$Basi45.planDetail) === null || _currentStepData$Basi46 === void 0 ? void 0 : (_currentStepData$Basi47 = _currentStepData$Basi46.plot) === null || _currentStepData$Basi47 === void 0 ? void 0 : _currentStepData$Basi47.area} ${t(`BPA_SQ_MTRS_LABEL`)}` : t("CS_NA")
52206
52606
  }), /*#__PURE__*/React.createElement(Row, {
52207
52607
  className: "border-none",
52208
52608
  label: t("BPA_KHATUNI_NUMBER"),
52209
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi44 = currentStepData.BasicDetails) === null || _currentStepData$Basi44 === void 0 ? void 0 : (_currentStepData$Basi45 = _currentStepData$Basi44.edcrDetails) === null || _currentStepData$Basi45 === void 0 ? void 0 : (_currentStepData$Basi46 = _currentStepData$Basi45.planDetail) === null || _currentStepData$Basi46 === void 0 ? void 0 : (_currentStepData$Basi47 = _currentStepData$Basi46.planInfoProperties) === null || _currentStepData$Basi47 === void 0 ? void 0 : _currentStepData$Basi47.KHATUNI_NO) || t("CS_NA")
52210
- }), /*#__PURE__*/React.createElement(Row, {
52211
- className: "border-none",
52212
- label: t("BPA_DISTRICT"),
52213
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi48 = currentStepData.BasicDetails) === null || _currentStepData$Basi48 === void 0 ? void 0 : (_currentStepData$Basi49 = _currentStepData$Basi48.edcrDetails) === null || _currentStepData$Basi49 === void 0 ? void 0 : (_currentStepData$Basi50 = _currentStepData$Basi49.planDetail) === null || _currentStepData$Basi50 === void 0 ? void 0 : (_currentStepData$Basi51 = _currentStepData$Basi50.planInfoProperties) === null || _currentStepData$Basi51 === void 0 ? void 0 : _currentStepData$Basi51.DISTRICT) || t("CS_NA")
52609
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi48 = currentStepData.BasicDetails) === null || _currentStepData$Basi48 === void 0 ? void 0 : (_currentStepData$Basi49 = _currentStepData$Basi48.edcrDetails) === null || _currentStepData$Basi49 === void 0 ? void 0 : (_currentStepData$Basi50 = _currentStepData$Basi49.planDetail) === null || _currentStepData$Basi50 === void 0 ? void 0 : (_currentStepData$Basi51 = _currentStepData$Basi50.planInfoProperties) === null || _currentStepData$Basi51 === void 0 ? void 0 : _currentStepData$Basi51.KHATUNI_NO) || t("CS_NA")
52214
52610
  }), /*#__PURE__*/React.createElement(Row, {
52215
52611
  className: "border-none",
52216
52612
  label: t("BPA_AREA_TYPE"),
@@ -52337,23 +52733,6 @@ const SummaryDetails = ({
52337
52733
  className: "border-none",
52338
52734
  label: t("BPA_APPLICATION_DEMOLITION_AREA_LABEL"),
52339
52735
  text: currentStepData !== null && currentStepData !== void 0 && (_currentStepData$Basi100 = currentStepData.BasicDetails) !== null && _currentStepData$Basi100 !== void 0 && (_currentStepData$Basi101 = _currentStepData$Basi100.edcrDetails) !== null && _currentStepData$Basi101 !== void 0 && (_currentStepData$Basi102 = _currentStepData$Basi101.planDetail) !== null && _currentStepData$Basi102 !== void 0 && (_currentStepData$Basi103 = _currentStepData$Basi102.planInformation) !== null && _currentStepData$Basi103 !== void 0 && _currentStepData$Basi103.demolitionArea ? `${currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$Basi104 = currentStepData.BasicDetails) === null || _currentStepData$Basi104 === void 0 ? void 0 : (_currentStepData$Basi105 = _currentStepData$Basi104.edcrDetails) === null || _currentStepData$Basi105 === void 0 ? void 0 : (_currentStepData$Basi106 = _currentStepData$Basi105.planDetail) === null || _currentStepData$Basi106 === void 0 ? void 0 : (_currentStepData$Basi107 = _currentStepData$Basi106.planInformation) === null || _currentStepData$Basi107 === void 0 ? void 0 : _currentStepData$Basi107.demolitionArea} ${t("BPA_SQ_MTRS_LABEL")}` : t("CS_NA")
52340
- })), /*#__PURE__*/React.createElement(CardSubHeader, {
52341
- style: {
52342
- fontSize: "20px",
52343
- marginTop: "20px"
52344
- }
52345
- }, t("BPA_APP_DETAILS_ECBC_DETAILS_LABEL")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
52346
- className: "border-none",
52347
- label: t(`ECBC - Proposed Connected Electrical Load is above 100 Kw`),
52348
- text: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea115 = currentStepData.createdResponse) === null || _currentStepData$crea115 === void 0 ? void 0 : (_currentStepData$crea116 = _currentStepData$crea115.additionalDetails) === null || _currentStepData$crea116 === void 0 ? void 0 : _currentStepData$crea116.ecbcElectricalLoad
52349
- }), /*#__PURE__*/React.createElement(Row, {
52350
- className: "border-none",
52351
- label: t(`ECBC - Proposed Demand of Electrical Load is above 120 Kw`),
52352
- text: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea117 = currentStepData.createdResponse) === null || _currentStepData$crea117 === void 0 ? void 0 : (_currentStepData$crea118 = _currentStepData$crea117.additionalDetails) === null || _currentStepData$crea118 === void 0 ? void 0 : _currentStepData$crea118.ecbcDemandLoad
52353
- }), /*#__PURE__*/React.createElement(Row, {
52354
- className: "border-none",
52355
- label: t(`ECBC - Proposed Air Conditioned Area above 500 sq.mt`),
52356
- text: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea119 = currentStepData.createdResponse) === null || _currentStepData$crea119 === void 0 ? void 0 : (_currentStepData$crea120 = _currentStepData$crea119.additionalDetails) === null || _currentStepData$crea120 === void 0 ? void 0 : _currentStepData$crea120.ecbcAirConditioned
52357
52736
  }))), /*#__PURE__*/React.createElement(Card, {
52358
52737
  style: {
52359
52738
  padding: "20px",
@@ -52376,19 +52755,27 @@ const SummaryDetails = ({
52376
52755
  }), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
52377
52756
  className: "border-none",
52378
52757
  label: t(`BPA_APPROVED_COLONY_LABEL`),
52379
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea121 = currentStepData.createdResponse) === null || _currentStepData$crea121 === void 0 ? void 0 : (_currentStepData$crea122 = _currentStepData$crea121.additionalDetails) === null || _currentStepData$crea122 === void 0 ? void 0 : _currentStepData$crea122.approvedColony) || t("CS_NA")
52758
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea137 = currentStepData.createdResponse) === null || _currentStepData$crea137 === void 0 ? void 0 : (_currentStepData$crea138 = _currentStepData$crea137.additionalDetails) === null || _currentStepData$crea138 === void 0 ? void 0 : _currentStepData$crea138.approvedColony) || t("CS_NA")
52759
+ }), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea139 = currentStepData.createdResponse) === null || _currentStepData$crea139 === void 0 ? void 0 : (_currentStepData$crea140 = _currentStepData$crea139.additionalDetails) === null || _currentStepData$crea140 === void 0 ? void 0 : _currentStepData$crea140.approvedColony) === "YES" && /*#__PURE__*/React.createElement(Row, {
52760
+ className: "border-none",
52761
+ label: t(`BPA_APPROVED_COLONY_NAME`),
52762
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea141 = currentStepData.createdResponse) === null || _currentStepData$crea141 === void 0 ? void 0 : (_currentStepData$crea142 = _currentStepData$crea141.additionalDetails) === null || _currentStepData$crea142 === void 0 ? void 0 : _currentStepData$crea142.nameofApprovedcolony) || t("CS_NA")
52380
52763
  }), /*#__PURE__*/React.createElement(Row, {
52381
52764
  className: "border-none",
52382
52765
  label: t(`BPA_ULB_TYPE_LABEL`),
52383
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea123 = currentStepData.createdResponse) === null || _currentStepData$crea123 === void 0 ? void 0 : (_currentStepData$crea124 = _currentStepData$crea123.additionalDetails) === null || _currentStepData$crea124 === void 0 ? void 0 : _currentStepData$crea124.Ulblisttype) || t("CS_NA")
52766
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea143 = currentStepData.createdResponse) === null || _currentStepData$crea143 === void 0 ? void 0 : (_currentStepData$crea144 = _currentStepData$crea143.additionalDetails) === null || _currentStepData$crea144 === void 0 ? void 0 : _currentStepData$crea144.Ulblisttype) || t("CS_NA")
52384
52767
  }), /*#__PURE__*/React.createElement(Row, {
52385
52768
  className: "border-none",
52386
52769
  label: t(`BPA_ULB_NAME_LABEL`),
52387
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea125 = currentStepData.createdResponse) === null || _currentStepData$crea125 === void 0 ? void 0 : (_currentStepData$crea126 = _currentStepData$crea125.additionalDetails) === null || _currentStepData$crea126 === void 0 ? void 0 : _currentStepData$crea126.UlbName) || t("CS_NA")
52770
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea145 = currentStepData.createdResponse) === null || _currentStepData$crea145 === void 0 ? void 0 : (_currentStepData$crea146 = _currentStepData$crea145.additionalDetails) === null || _currentStepData$crea146 === void 0 ? void 0 : _currentStepData$crea146.UlbName) || t("CS_NA")
52388
52771
  }), /*#__PURE__*/React.createElement(Row, {
52389
52772
  className: "border-none",
52390
- label: t(`BPA_DISTRICT_LABEL`),
52391
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea127 = currentStepData.createdResponse) === null || _currentStepData$crea127 === void 0 ? void 0 : (_currentStepData$crea128 = _currentStepData$crea127.additionalDetails) === null || _currentStepData$crea128 === void 0 ? void 0 : _currentStepData$crea128.District) || t("CS_NA")
52773
+ label: t(`BPA_MASTER_PLAN`),
52774
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea147 = currentStepData.createdResponse) === null || _currentStepData$crea147 === void 0 ? void 0 : (_currentStepData$crea148 = _currentStepData$crea147.additionalDetails) === null || _currentStepData$crea148 === void 0 ? void 0 : _currentStepData$crea148.masterPlan) || t("CS_NA")
52775
+ }), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea149 = currentStepData.createdResponse) === null || _currentStepData$crea149 === void 0 ? void 0 : (_currentStepData$crea150 = _currentStepData$crea149.additionalDetails) === null || _currentStepData$crea150 === void 0 ? void 0 : _currentStepData$crea150.masterPlan) === "YES" && /*#__PURE__*/React.createElement(Row, {
52776
+ className: "border-none",
52777
+ label: t(`BPA_USE`),
52778
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea151 = currentStepData.createdResponse) === null || _currentStepData$crea151 === void 0 ? void 0 : (_currentStepData$crea152 = _currentStepData$crea151.additionalDetails) === null || _currentStepData$crea152 === void 0 ? void 0 : _currentStepData$crea152.use) || t("CS_NA")
52392
52779
  }), /*#__PURE__*/React.createElement(Row, {
52393
52780
  className: "border-none",
52394
52781
  label: t(`BPA_CORE_AREA_LABEL`),
@@ -52396,32 +52783,61 @@ const SummaryDetails = ({
52396
52783
  }), /*#__PURE__*/React.createElement(Row, {
52397
52784
  className: "border-none",
52398
52785
  label: t(`BPA_PROPOSED_SITE_LABEL`),
52399
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea129 = currentStepData.createdResponse) === null || _currentStepData$crea129 === void 0 ? void 0 : (_currentStepData$crea130 = _currentStepData$crea129.additionalDetails) === null || _currentStepData$crea130 === void 0 ? void 0 : _currentStepData$crea130.proposedSite) || t("CS_NA")
52400
- }), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea131 = currentStepData.createdResponse) === null || _currentStepData$crea131 === void 0 ? void 0 : (_currentStepData$crea132 = _currentStepData$crea131.additionalDetails) === null || _currentStepData$crea132 === void 0 ? void 0 : _currentStepData$crea132.schemes) === "SCHEME" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
52786
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea153 = currentStepData.createdResponse) === null || _currentStepData$crea153 === void 0 ? void 0 : (_currentStepData$crea154 = _currentStepData$crea153.additionalDetails) === null || _currentStepData$crea154 === void 0 ? void 0 : _currentStepData$crea154.proposedSite) || t("CS_NA")
52787
+ }), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea155 = currentStepData.createdResponse) === null || _currentStepData$crea155 === void 0 ? void 0 : (_currentStepData$crea156 = _currentStepData$crea155.additionalDetails) === null || _currentStepData$crea156 === void 0 ? void 0 : _currentStepData$crea156.schemes) === "SCHEME" && /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Row, {
52401
52788
  className: "border-none",
52402
52789
  label: t(`BPA_SCHEME_TYPE_LABEL`),
52403
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea133 = currentStepData.createdResponse) === null || _currentStepData$crea133 === void 0 ? void 0 : (_currentStepData$crea134 = _currentStepData$crea133.additionalDetails) === null || _currentStepData$crea134 === void 0 ? void 0 : _currentStepData$crea134.schemesselection) || t("CS_NA")
52790
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea157 = currentStepData.createdResponse) === null || _currentStepData$crea157 === void 0 ? void 0 : (_currentStepData$crea158 = _currentStepData$crea157.additionalDetails) === null || _currentStepData$crea158 === void 0 ? void 0 : _currentStepData$crea158.schemesselection) || t("CS_NA")
52404
52791
  }), /*#__PURE__*/React.createElement(Row, {
52405
52792
  className: "border-none",
52406
52793
  label: t(`BPA_SCHEME_NAME_LABEL`),
52407
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea135 = currentStepData.createdResponse) === null || _currentStepData$crea135 === void 0 ? void 0 : (_currentStepData$crea136 = _currentStepData$crea135.additionalDetails) === null || _currentStepData$crea136 === void 0 ? void 0 : _currentStepData$crea136.schemeName) || t("CS_NA")
52794
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea159 = currentStepData.createdResponse) === null || _currentStepData$crea159 === void 0 ? void 0 : (_currentStepData$crea160 = _currentStepData$crea159.additionalDetails) === null || _currentStepData$crea160 === void 0 ? void 0 : _currentStepData$crea160.schemeName) || t("CS_NA")
52408
52795
  }), /*#__PURE__*/React.createElement(Row, {
52409
52796
  className: "border-none",
52410
52797
  label: t(`BPA_TRANFERRED_SCHEME_LABEL`),
52411
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea137 = currentStepData.createdResponse) === null || _currentStepData$crea137 === void 0 ? void 0 : (_currentStepData$crea138 = _currentStepData$crea137.additionalDetails) === null || _currentStepData$crea138 === void 0 ? void 0 : _currentStepData$crea138.transferredscheme) || t("CS_NA")
52798
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea161 = currentStepData.createdResponse) === null || _currentStepData$crea161 === void 0 ? void 0 : (_currentStepData$crea162 = _currentStepData$crea161.additionalDetails) === null || _currentStepData$crea162 === void 0 ? void 0 : _currentStepData$crea162.transferredscheme) || t("CS_NA")
52412
52799
  })), /*#__PURE__*/React.createElement(Row, {
52413
52800
  className: "border-none",
52414
52801
  label: t(`BPA_PURCHASED_FAR_LABEL`),
52415
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea139 = currentStepData.createdResponse) === null || _currentStepData$crea139 === void 0 ? void 0 : (_currentStepData$crea140 = _currentStepData$crea139.additionalDetails) === null || _currentStepData$crea140 === void 0 ? void 0 : _currentStepData$crea140.purchasedFAR) || t("CS_NA")
52802
+ text: currentStepData !== null && currentStepData !== void 0 && (_currentStepData$crea163 = currentStepData.createdResponse) !== null && _currentStepData$crea163 !== void 0 && (_currentStepData$crea164 = _currentStepData$crea163.additionalDetails) !== null && _currentStepData$crea164 !== void 0 && _currentStepData$crea164.purchasedFAR ? "YES" : "NO"
52803
+ }), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea165 = currentStepData.createdResponse) === null || _currentStepData$crea165 === void 0 ? void 0 : (_currentStepData$crea166 = _currentStepData$crea165.additionalDetails) === null || _currentStepData$crea166 === void 0 ? void 0 : _currentStepData$crea166.purchasedFAR) && /*#__PURE__*/React.createElement(Row, {
52804
+ className: "border-none",
52805
+ label: t(`BPA_PROVIDED_FAR`),
52806
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea167 = currentStepData.createdResponse) === null || _currentStepData$crea167 === void 0 ? void 0 : (_currentStepData$crea168 = _currentStepData$crea167.additionalDetails) === null || _currentStepData$crea168 === void 0 ? void 0 : _currentStepData$crea168.providedFAR) || t("CS_NA")
52416
52807
  }), /*#__PURE__*/React.createElement(Row, {
52417
52808
  className: "border-none",
52418
52809
  label: t(`BPA_MASTER_PLAN_LABEL`),
52419
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea141 = currentStepData.createdResponse) === null || _currentStepData$crea141 === void 0 ? void 0 : (_currentStepData$crea142 = _currentStepData$crea141.additionalDetails) === null || _currentStepData$crea142 === void 0 ? void 0 : _currentStepData$crea142.masterPlan) || t("CS_NA")
52810
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea169 = currentStepData.createdResponse) === null || _currentStepData$crea169 === void 0 ? void 0 : (_currentStepData$crea170 = _currentStepData$crea169.additionalDetails) === null || _currentStepData$crea170 === void 0 ? void 0 : _currentStepData$crea170.masterPlan) || t("CS_NA")
52811
+ }), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea171 = currentStepData.createdResponse) === null || _currentStepData$crea171 === void 0 ? void 0 : (_currentStepData$crea172 = _currentStepData$crea171.additionalDetails) === null || _currentStepData$crea172 === void 0 ? void 0 : _currentStepData$crea172.masterPlan) === "YES" && /*#__PURE__*/React.createElement(Row, {
52812
+ className: "border-none",
52813
+ label: t(`BPA_USE`),
52814
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea173 = currentStepData.createdResponse) === null || _currentStepData$crea173 === void 0 ? void 0 : (_currentStepData$crea174 = _currentStepData$crea173.additionalDetails) === null || _currentStepData$crea174 === void 0 ? void 0 : _currentStepData$crea174.use) || t("CS_NA")
52420
52815
  }), /*#__PURE__*/React.createElement(Row, {
52421
52816
  className: "border-none",
52422
52817
  label: t(`BPA_GREEN_BUILDING_LABEL`),
52423
- text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea143 = currentStepData.createdResponse) === null || _currentStepData$crea143 === void 0 ? void 0 : (_currentStepData$crea144 = _currentStepData$crea143.additionalDetails) === null || _currentStepData$crea144 === void 0 ? void 0 : _currentStepData$crea144.greenbuilding) || t("CS_NA")
52424
- }))), /*#__PURE__*/React.createElement(Card, {
52818
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea175 = currentStepData.createdResponse) === null || _currentStepData$crea175 === void 0 ? void 0 : (_currentStepData$crea176 = _currentStepData$crea175.additionalDetails) === null || _currentStepData$crea176 === void 0 ? void 0 : _currentStepData$crea176.greenbuilding) || t("CS_NA")
52819
+ }), (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea177 = currentStepData.createdResponse) === null || _currentStepData$crea177 === void 0 ? void 0 : (_currentStepData$crea178 = _currentStepData$crea177.additionalDetails) === null || _currentStepData$crea178 === void 0 ? void 0 : _currentStepData$crea178.greenbuilding) === "YES" && /*#__PURE__*/React.createElement(Row, {
52820
+ className: "border-none",
52821
+ label: t(`BPA_SELECTED_RATINGS`),
52822
+ text: (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea179 = currentStepData.createdResponse) === null || _currentStepData$crea179 === void 0 ? void 0 : (_currentStepData$crea180 = _currentStepData$crea179.additionalDetails) === null || _currentStepData$crea180 === void 0 ? void 0 : _currentStepData$crea180.rating) || t("CS_NA")
52823
+ })), /*#__PURE__*/React.createElement(CardSubHeader, {
52824
+ style: {
52825
+ fontSize: "20px",
52826
+ marginTop: "20px"
52827
+ }
52828
+ }, t("BPA_APP_DETAILS_ECBC_DETAILS_LABEL")), /*#__PURE__*/React.createElement(StatusTable, null, /*#__PURE__*/React.createElement(Row, {
52829
+ className: "border-none",
52830
+ label: t(`ECBC - Proposed Connected Electrical Load is above 100 Kw`),
52831
+ text: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea181 = currentStepData.createdResponse) === null || _currentStepData$crea181 === void 0 ? void 0 : (_currentStepData$crea182 = _currentStepData$crea181.additionalDetails) === null || _currentStepData$crea182 === void 0 ? void 0 : _currentStepData$crea182.ecbcElectricalLoad
52832
+ }), /*#__PURE__*/React.createElement(Row, {
52833
+ className: "border-none",
52834
+ label: t(`ECBC - Proposed Demand of Electrical Load is above 120 Kw`),
52835
+ text: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea183 = currentStepData.createdResponse) === null || _currentStepData$crea183 === void 0 ? void 0 : (_currentStepData$crea184 = _currentStepData$crea183.additionalDetails) === null || _currentStepData$crea184 === void 0 ? void 0 : _currentStepData$crea184.ecbcDemandLoad
52836
+ }), /*#__PURE__*/React.createElement(Row, {
52837
+ className: "border-none",
52838
+ label: t(`ECBC - Proposed Air Conditioned Area above 500 sq.mt`),
52839
+ text: currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea185 = currentStepData.createdResponse) === null || _currentStepData$crea185 === void 0 ? void 0 : (_currentStepData$crea186 = _currentStepData$crea185.additionalDetails) === null || _currentStepData$crea186 === void 0 ? void 0 : _currentStepData$crea186.ecbcAirConditioned
52840
+ }))), (ecbcDocumentsData === null || ecbcDocumentsData === void 0 ? void 0 : ecbcDocumentsData.length) > 0 && /*#__PURE__*/React.createElement(Card, {
52425
52841
  style: {
52426
52842
  padding: "20px",
52427
52843
  marginBottom: "30px",
@@ -52506,7 +52922,7 @@ const SummaryDetails = ({
52506
52922
  border: "1px solid #f0f0f0",
52507
52923
  background: "#fff"
52508
52924
  }
52509
- }, ((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea145 = currentStepData.createdResponse) === null || _currentStepData$crea145 === void 0 ? void 0 : _currentStepData$crea145.status) === "INITIATED" || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea146 = currentStepData.createdResponse) === null || _currentStepData$crea146 === void 0 ? void 0 : _currentStepData$crea146.status) === "BLOCKED") && /*#__PURE__*/React.createElement(CardSubHeader, {
52925
+ }, ((currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea187 = currentStepData.createdResponse) === null || _currentStepData$crea187 === void 0 ? void 0 : _currentStepData$crea187.status) === "INITIATED" || (currentStepData === null || currentStepData === void 0 ? void 0 : (_currentStepData$crea188 = currentStepData.createdResponse) === null || _currentStepData$crea188 === void 0 ? void 0 : _currentStepData$crea188.status) === "BLOCKED") && /*#__PURE__*/React.createElement(CardSubHeader, {
52510
52926
  style: {
52511
52927
  fontSize: "20px",
52512
52928
  marginTop: "20px"
@@ -53032,7 +53448,7 @@ const CustomLandingPage = () => {
53032
53448
  style: cardStyle,
53033
53449
  onMouseEnter: handleMouseEnter,
53034
53450
  onMouseLeave: handleMouseLeave
53035
- }, /*#__PURE__*/React.createElement(CardText, {
53451
+ }, /*#__PURE__*/React.createElement(CardText$1, {
53036
53452
  style: {
53037
53453
  ...cardTextStyle,
53038
53454
  marginBottom: index === 0 || index === 2 ? '16px' : '0'
@@ -54478,7 +54894,7 @@ const componentsToRegister = {
54478
54894
  StakeholderDocuments,
54479
54895
  OCBasicDetails,
54480
54896
  OBPSSearchApplication,
54481
- InspectionReport: InspectionReport$1,
54897
+ InspectionReport: InspectionReport$2,
54482
54898
  BPAInbox: Inbox,
54483
54899
  LayoutInbox,
54484
54900
  StakeholderInbox: Inbox$1,